commit b64daea4da5e366fdb84de55104067944ca16467 Author: HalbeBruno Date: Mon Sep 28 18:15:44 2026 -0300 Backup de templates Zabbix 7.0.31 diff --git a/AIX_by_Zabbix_agent.yaml b/AIX_by_Zabbix_agent.yaml new file mode 100644 index 0000000..1e747f9 --- /dev/null +++ b/AIX_by_Zabbix_agent.yaml @@ -0,0 +1,1129 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: 7e6bb0931a72459db9514aa924b420bc + template: 'AIX by Zabbix agent' + name: 'AIX by Zabbix agent' + description: | + This is an official AIX template. It requires Zabbix agent 7.0 or newer. + + Notes on filesystem (FS) discovery: + - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default. + - BTRFS allocates a default of 10% of the volume for its own needs. + - To mitigate potential disasters, FS usage triggers are based on the maximum available space. + - Utilization formula: 'pused = 100 - 100 * (available / total - free + available)' + - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: 4c80c15f5741464882aa238f27bec1bd + name: 'Host name of Zabbix agent running' + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 05849e0fb6504d339f2aebe159427bec + name: 'Zabbix agent ping' + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + - uuid: fe4731720ba64eebbf125929e499209b + name: 'Version of Zabbix agent running' + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: 2c2d08ab5833493ba45ebfe5154f04c1 + name: 'Number of running processes' + key: 'proc.num[,,run]' + description: 'Number of processes in a running state.' + tags: + - tag: component + value: os + - tag: component + value: processes + triggers: + - uuid: 458180bc0f14468386429964f877cce7 + expression: 'avg(/AIX by Zabbix agent/proc.num[,,run],5m)>30' + name: 'AIX: Too many processes running' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 7c64480f840a4778bde5278e1c0a083f + name: 'Number of processes' + key: 'proc.num[]' + description: 'Total number of processes in any state.' + tags: + - tag: component + value: os + - tag: component + value: processes + triggers: + - uuid: 874ef8fe4a6445ff971800d2d9a50541 + expression: 'avg(/AIX by Zabbix agent/proc.num[],5m)>300' + name: 'AIX: Too many processes' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 4a15778222a24f129b8ae7c240a32ded + name: 'Interrupts per second' + key: system.cpu.intr + units: ips + description: 'Number of interrupts processed.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: 4f8665f48aff4fa39e85639fed7b71c5 + name: 'Processor load (1 min average per core)' + key: 'system.cpu.load[percpu,avg1]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + triggers: + - uuid: fdbedf15fe474fd18c045c62cf8cc7d6 + expression: 'avg(/AIX by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5' + name: 'AIX: Processor load is too high' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 6fa2275f1f83456abfe786c8565c7a2d + name: 'Processor load (5 min average per core)' + key: 'system.cpu.load[percpu,avg5]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 02210ac2faaa4f7bb74e995726706abc + name: 'Processor load (15 min average per core)' + key: 'system.cpu.load[percpu,avg15]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 1ad486947da9428abdebcecb83ca3d8b + name: 'Context switches per second' + key: system.cpu.switches + units: sps + description: 'The combined rate at which all processors on the computer are switched from one thread to another.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: f4d10d49fa3c4dababf03d2cb80f044c + name: 'Host name' + key: system.hostname + delay: 1h + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: d1e70b7f465447a3ab575b3fd28755a1 + expression: 'last(/AIX by Zabbix agent/system.hostname,#1)<>last(/AIX by Zabbix agent/system.hostname,#2)' + name: 'AIX: Hostname was changed' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: aebc5bb0264a4f55985c96445964dfc4 + name: 'Host local time' + key: system.localtime + units: unixtime + description: 'The local system time of the host.' + tags: + - tag: component + value: os + - uuid: 081f8986446d43e7a3b72f7084576600 + name: 'CPU available physical processors in the shared pool' + key: 'system.stat[cpu,app]' + value_type: FLOAT + units: '%' + tags: + - tag: component + value: cpu + - uuid: 6a97d56a6c2e45e1b10b97e2395ff30d + name: 'CPU entitled capacity consumed' + key: 'system.stat[cpu,ec]' + value_type: FLOAT + tags: + - tag: component + value: cpu + - uuid: 142f33d7b2c3469c9664fedf4f053616 + name: 'CPU idle time' + key: 'system.stat[cpu,id]' + value_type: FLOAT + units: '%' + tags: + - tag: component + value: cpu + - uuid: 752c952fb18e4a0e8e5e3415b107b9f1 + name: 'CPU logical processor utilization' + key: 'system.stat[cpu,lbusy]' + value_type: FLOAT + units: '%' + tags: + - tag: component + value: cpu + - uuid: 748f1316a33b48658b11dca8f45cfcce + name: 'CPU number of physical processors consumed' + key: 'system.stat[cpu,pc]' + value_type: FLOAT + tags: + - tag: component + value: cpu + - uuid: 2647132edb6647ca9ef43a00ca09ecbd + name: 'CPU system time' + key: 'system.stat[cpu,sy]' + value_type: FLOAT + units: '%' + tags: + - tag: component + value: cpu + - uuid: e990898ddbb74c7b9a8c1c67cb9544cf + name: 'CPU user time' + key: 'system.stat[cpu,us]' + value_type: FLOAT + units: '%' + tags: + - tag: component + value: cpu + - uuid: 2cd7a00570ad487d9cdf39fd198b2c0b + name: 'CPU iowait time' + key: 'system.stat[cpu,wa]' + value_type: FLOAT + units: '%' + tags: + - tag: component + value: cpu + triggers: + - uuid: c030cc99975d4fe3911789e58bbd5050 + expression: 'avg(/AIX by Zabbix agent/system.stat[cpu,wa],5m)>20' + name: 'AIX: Disk I/O is overloaded' + priority: WARNING + description: 'Extended OS wait times for I/O operations may signal potential performance issues with the storage system.' + tags: + - tag: scope + value: performance + - uuid: 6748e4c87589472ca1474f3c7b729e0c + name: 'Amount of data transferred' + key: 'system.stat[disk,bps]' + value_type: FLOAT + units: B + tags: + - tag: component + value: storage + - uuid: bf0180d8f109451db616749990a113a6 + name: 'Number of transfers' + key: 'system.stat[disk,tps]' + value_type: FLOAT + tags: + - tag: component + value: storage + - uuid: 3e1af0261f6a421d8ca554f8eb222716 + name: 'Processor units is entitled to receive' + key: 'system.stat[ent]' + delay: 1h + value_type: FLOAT + tags: + - tag: component + value: cpu + - uuid: 0fe71698a3c74c93a8cb3a937dc7226c + name: 'Kernel thread context switches' + key: 'system.stat[faults,cs]' + value_type: FLOAT + tags: + - tag: component + value: cpu + - uuid: a1e13d2dbd8b4086974ea32a2cd743b1 + name: 'Device interrupts' + key: 'system.stat[faults,in]' + value_type: FLOAT + tags: + - tag: component + value: cpu + - uuid: 883c7a12b1d54f4d8189ca0d9cc43102 + name: 'System calls' + key: 'system.stat[faults,sy]' + value_type: FLOAT + tags: + - tag: component + value: cpu + - uuid: f027ed1c43464d4ab9a13d4b9f647e7e + name: 'Length of the swap queue' + key: 'system.stat[kthr,b]' + value_type: FLOAT + tags: + - tag: component + value: memory + - uuid: 6795c2b6914d4303bf30c71c7405ff7d + name: 'Length of the run queue' + key: 'system.stat[kthr,r]' + value_type: FLOAT + tags: + - tag: component + value: cpu + - uuid: 12142f133863448c9c937c671e183bbb + name: 'Active virtual pages' + key: 'system.stat[memory,avm]' + tags: + - tag: component + value: memory + - uuid: 3b4a5ff768654ff5a87b955684a0d7b5 + name: 'Free real memory' + key: 'system.stat[memory,fre]' + tags: + - tag: component + value: memory + - uuid: bf890bf5cd1748a5af9528a111ba43c4 + name: 'File page-ins per second' + key: 'system.stat[page,fi]' + value_type: FLOAT + tags: + - tag: component + value: memory + - uuid: 19c4f7132b6c46aa9522bd46da3e8f03 + name: 'File page-outs per second' + key: 'system.stat[page,fo]' + value_type: FLOAT + tags: + - tag: component + value: memory + - uuid: 9ff3f7faa76c414aae7c5babb91fe065 + name: 'Pages freed (page replacement)' + key: 'system.stat[page,fr]' + value_type: FLOAT + tags: + - tag: component + value: memory + - uuid: 6009d8a0fc2f486db979b226eb975e78 + name: 'Pages paged in from paging space' + key: 'system.stat[page,pi]' + value_type: FLOAT + tags: + - tag: component + value: memory + - uuid: 26fb1471e08c4c46800e4887d8bccd80 + name: 'Pages paged out to paging space' + key: 'system.stat[page,po]' + value_type: FLOAT + tags: + - tag: component + value: memory + - uuid: 83b1456726d448d6a756e03c0ec02342 + name: 'Pages scanned by page-replacement algorithm' + key: 'system.stat[page,sr]' + value_type: FLOAT + tags: + - tag: component + value: memory + - uuid: d0ef675d313849269890d06c7e003c9e + name: 'System information' + key: system.uname + delay: 1h + value_type: CHAR + trends: '0' + description: 'Information as normally returned by `uname -a`.' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 3a736e64211744aea480a60b2c48a036 + expression: 'last(/AIX by Zabbix agent/system.uname,#1)<>last(/AIX by Zabbix agent/system.uname,#2)' + name: 'AIX: Host information was changed' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 2e0ff86c992c4a098af8cb1bee0f0001 + name: 'System uptime' + key: system.uptime + delay: 10m + units: uptime + tags: + - tag: component + value: os + triggers: + - uuid: 03a2cd88b6a64d3ea4c9bb2abbc4ae2d + expression: 'change(/AIX by Zabbix agent/system.uptime)<0' + name: 'AIX: Server has just been restarted' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 980a59760ef9481298ed35322841f939 + name: 'Number of logged in users' + key: system.users.num + description: 'The number of users who are currently logged in.' + tags: + - tag: component + value: os + - uuid: 4771d6d33c2247d6843198152a7065a8 + name: 'Checksum of /etc/passwd' + key: 'vfs.file.cksum[/etc/passwd,sha256]' + delay: 15m + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: security + triggers: + - uuid: c75ee957fd6c43b2aba9919d5e1af4a1 + expression: 'last(/AIX by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/AIX by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)' + name: 'AIX: /etc/passwd has been changed' + priority: WARNING + tags: + - tag: scope + value: security + - uuid: 95e14453e9ee4b6ea036fab09bf2b194 + name: 'Get filesystems' + key: vfs.fs.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.' + tags: + - tag: component + value: raw + - uuid: 6d4d9deab17b42f4a953c5210acac6f1 + name: 'Available memory' + key: 'vm.memory.size[available]' + units: B + description: 'Defined as free + cached + buffers.' + tags: + - tag: component + value: memory + triggers: + - uuid: 80b6406fb8474fa9801e9dffb2ccd368 + expression: 'last(/AIX by Zabbix agent/vm.memory.size[available])<20M' + name: 'AIX: Lack of available memory on server' + priority: AVERAGE + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 57d30ccd5db64dc8b9498a36efe768e9 + name: 'Total memory' + key: 'vm.memory.size[total]' + delay: 1h + units: B + description: 'Total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 304a3e9bb7594c83b027a32c34aeab28 + name: 'Zabbix agent availability' + type: INTERNAL + key: 'zabbix[host,agent,available]' + description: 'Used for monitoring the availability status of the agent.' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: f0b9ecafede8476b94fd8dcab74cea87 + expression: 'max(/AIX by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0' + name: 'AIX: Zabbix agent is not available' + event_name: 'AIX: Zabbix agent is not available (for {$AGENT.TIMEOUT})' + priority: AVERAGE + description: 'For passive checks only. The availability of the agent(s) and a host is used with `{$AGENT.TIMEOUT}` as the time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 409cce8967b4494bbcc5193a26c69b06 + name: 'Network interface discovery' + key: net.if.discovery + delay: 1h + filter: + conditions: + - macro: '{#IFNAME}' + value: '@Network interfaces for discovery' + formulaid: A + description: 'Used for the discovery of network interfaces.' + item_prototypes: + - uuid: df9710a48eaa4a72911de3971b37c596 + name: 'Interface {#IFNAME}: Incoming network traffic' + key: 'net.if.in[{#IFNAME}]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0704fb302aa94f73bedade3a998a0fa3 + name: 'Interface {#IFNAME}: Outgoing network traffic' + key: 'net.if.out[{#IFNAME}]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + graph_prototypes: + - uuid: 366a988491344fd487561d02ed499fe0 + name: 'Interface {#IFNAME}: Network traffic' + graph_items: + - color: 199C0D + item: + host: 'AIX by Zabbix agent' + key: 'net.if.in[{#IFNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'AIX by Zabbix agent' + key: 'net.if.out[{#IFNAME}]' + - uuid: 4a0b17decdf1449d9463cf00720a843d + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: vfs.fs.dependent.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'The discovery of mounted filesystems with different types.' + item_prototypes: + - uuid: ee5ae5de6f7b40b4a9b064bdc733de91 + name: 'FS [{#FSNAME}]: Inodes: Free, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free metadata space expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.inodes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 185959350a954c35a08ab6a9bf6c1d46 + expression: 'min(/AIX by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + name: 'AIX: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'AIX: {#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 6ce467d05e8745409a177799bed34bb3 + expression: 'min(/AIX by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' + name: 'AIX: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'AIX: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + dependencies: + - name: 'AIX: FS [{#FSNAME}]: Running out of free inodes' + expression: 'min(/AIX by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 13e212598f744a7fa535c23731190c61 + name: 'FS [{#FSNAME}]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + delay: '0' + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.free + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 428b0314dd574df1970dd2cae7e8889b + name: 'FS [{#FSNAME}]: Space: Available, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Deprecated metric. + Space availability expressed as a percentage, calculated using the current and maximum available spaces. + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: deprecated + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: e0c53ff31b8145b5bb887bb61d077fc4 + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pused + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 6b3a81f7c4a24307a099c07fb537a8ca + expression: 'min(/AIX by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'AIX: FS [{#FSNAME}]: Space is critically low' + event_name: 'AIX: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 74a1fc62bfe24b7eabe4e244c70dc384 + expression: 'min(/AIX by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'AIX: FS [{#FSNAME}]: Space is low' + event_name: 'AIX: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'AIX: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/AIX by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 6f6c92bc72014612b2efb92d12d8c425 + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + delay: '0' + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.total + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 915e72271f134684b2d10d05d4035962 + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + delay: '0' + units: B + description: 'Used storage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.used + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 0c21ec9b14884057bdd2080b4871756e + name: 'FS [{#FSNAME}]: Get data' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},data]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Intermediate data of `{#FSNAME}` filesystem.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.fsname==''{#FSNAME}'')].first()' + master_item: + key: vfs.fs.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: cd96a2d7e708495cbc5d11a14ea9c876 + name: 'FS [{#FSNAME}]: Option: Read-only' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},readonly]' + delay: '0' + description: 'The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.' + preprocessing: + - type: JSONPATH + parameters: + - $.options + error_handler: DISCARD_VALUE + - type: REGEX + parameters: + - '(?:^|,)ro\b' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 05ec0e80333d4f7688b71a2865d0365e + expression: 'last(/AIX by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/AIX by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=1' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/AIX by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=0' + name: 'AIX: FS [{#FSNAME}]: Filesystem has become read-only' + priority: AVERAGE + description: 'The filesystem has become read-only, possibly due to an I/O error. Available only for Zabbix agents 6.4 and higher.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 6649ab6a9568418493be79dfb63b07b4 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'AIX by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + - uuid: cfd16b36331145a881249d88e105c731 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'AIX by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'AIX by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'AIX by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + master_item: + key: vfs.fs.get + lld_macro_paths: + - lld_macro: '{#FSNAME}' + path: $.fsname + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'fsname': filesystem.fsname, + 'fstype': filesystem.fstype + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Skip metadata collection for dynamic FS' + step: '1' + filter: + conditions: + - macro: '{#FSTYPE}' + value: ^(btrfs|zfs)$ + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Inodes + discover: NO_DISCOVER + tags: + - tag: class + value: os + - tag: target + value: aix + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 3m + description: 'Timeout after which the agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (in passive mode).' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: 5b5e04508ef3402a9432ec9f3d581179 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AIX by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AIX by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + - type: STRING + name: reference + value: AAAEC + - uuid: 873e38e16ef94f2b9b743a3251db0fbb + name: 'System performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AIX by Zabbix agent' + name: 'AIX: CPU load' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AIX by Zabbix agent' + name: 'AIX: CPU utilization' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AIX by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AIX by Zabbix agent' + name: 'AIX: CPU jumps' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AIX by Zabbix agent' + name: 'AIX: Memory usage' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 4a25a6b3d6e4482ab2a748c79cb55524 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: f2885fb5e52946f8bce8eb96a60f433a + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up + graphs: + - uuid: a3a5bc3b07f34793bb1c8cfc688ba8a9 + name: 'AIX: CPU jumps' + graph_items: + - color: 199C0D + item: + host: 'AIX by Zabbix agent' + key: system.cpu.switches + - sortorder: '1' + color: F63100 + item: + host: 'AIX by Zabbix agent' + key: system.cpu.intr + - uuid: 260417d4613d405986406c272f54a5aa + name: 'AIX: CPU load' + graph_items: + - color: 199C0D + item: + host: 'AIX by Zabbix agent' + key: 'system.cpu.load[percpu,avg1]' + - sortorder: '1' + color: F63100 + item: + host: 'AIX by Zabbix agent' + key: 'system.cpu.load[percpu,avg5]' + - sortorder: '2' + color: 00611C + item: + host: 'AIX by Zabbix agent' + key: 'system.cpu.load[percpu,avg15]' + - uuid: a2eeb8269edf4de7ac13b7ceb1260b75 + name: 'AIX: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'AIX by Zabbix agent' + key: 'system.stat[cpu,ec]' + - sortorder: '1' + color: F63100 + item: + host: 'AIX by Zabbix agent' + key: 'system.stat[cpu,pc]' + - sortorder: '2' + color: 00611C + item: + host: 'AIX by Zabbix agent' + key: 'system.stat[cpu,wa]' + - sortorder: '3' + color: F7941D + item: + host: 'AIX by Zabbix agent' + key: 'system.stat[cpu,sy]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'AIX by Zabbix agent' + key: 'system.stat[cpu,us]' + - sortorder: '5' + color: 6C59DC + item: + host: 'AIX by Zabbix agent' + key: 'system.stat[cpu,id]' + - uuid: 2664343cd69444e0a16850083845838f + name: 'AIX: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'AIX by Zabbix agent' + key: 'vm.memory.size[available]' diff --git a/APC_Smart-UPS_2200_RM_by_SNMP.yaml b/APC_Smart-UPS_2200_RM_by_SNMP.yaml new file mode 100644 index 0000000..e4d0aeb --- /dev/null +++ b/APC_Smart-UPS_2200_RM_by_SNMP.yaml @@ -0,0 +1,1555 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: e8c0b2c40e884f1598d86f3edf020ea7 + template: 'APC Smart-UPS 2200 RM by SNMP' + name: 'APC Smart-UPS 2200 RM by SNMP' + description: | + Template Power APC Smart-UPS 2200 RM + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: 6933bd19628f4699974d5dc4b1637c53 + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 58a0749ef9c94cf9802a62d274b6dad9 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC Smart-UPS: Battery has low capacity' + event_name: 'APC Smart-UPS: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 8ba1d824fdc548b4bca770f4145f7169 + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 147e0b7b466e402ba59d73d66801ef1a + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 4c1107eb93114d9096518dc134e08bdc + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 8370727883de45dfa6b6d79f60cc86b3 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC Smart-UPS: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 05be71fcb7c1484f876229f48649039e + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 078719d0396247bca76d85e1e4c650de + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 2fb002b1a4584aa0bf0389360171893c + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC Smart-UPS: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 05aa81dc53ab45ffaf46580c9f827759 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC Smart-UPS: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: bda8df2bbd2a40dc937b2cd5b8017a68 + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: 1e8c0b3d2d65487199e7fc3e1dde6e50 + expression: 'min(/APC Smart-UPS 2200 RM by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: Battery has high temperature' + event_name: 'APC Smart-UPS: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 805d95a6f256410ca083f31cc480b88b + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: b83275fc1176451dacaa28606edf045a + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: cfd390d57dbc4046a3a6af384420b697 + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: b89b059a430842aebbd3e6af71514303 + expression: 'min(/APC Smart-UPS 2200 RM by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS 2200 RM by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC Smart-UPS 2200 RM by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input frequency' + event_name: 'APC Smart-UPS: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 91a6bc765a954f9e97b855d9dfebd3f7 + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 2dbc2b96d332488cae4cbf87c985c6b0 + expression: 'min(/APC Smart-UPS 2200 RM by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS 2200 RM by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS 2200 RM by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input voltage' + event_name: 'APC Smart-UPS: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 744d345cd3964baf85f8fefed19f9001 + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: df799c65dbe5437aa941de3e6d386b26 + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: edb059eeee004d80a9b42154f16ab18a + expression: 'min(/APC Smart-UPS 2200 RM by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC Smart-UPS: Output load is high' + event_name: 'APC Smart-UPS: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 54d22d1cc362492ebe8695257afc20ec + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 20ffc78c2f314ff58b5e75907605c82f + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC Smart-UPS: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: ec6e892f4c51414f887d428510d889e7 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC Smart-UPS: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: f4cb0ed7e65d4ea29394435cce7600f0 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC Smart-UPS: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: e29c2a37586f474f87c388fa8eaf8b9c + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC Smart-UPS: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: a07afe38040c4fd08488786ca3f529e5 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC Smart-UPS: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 58f44a830386434db0f76553f64ebe67 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC Smart-UPS: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: eb99c49157a948769128bc9eeeaff3fc + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC Smart-UPS: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: b3d77823096e4bf4a06db8f2307284db + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC Smart-UPS: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 000d6b412dd3467aaee40ce230cc059e + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC Smart-UPS: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: f1f86a1f23c745658d0c5d10557f67fc + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC Smart-UPS: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 434d70c967a9447a9fa927fc2867aa6d + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC Smart-UPS: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 4e43a6966bf642e19567dcd3763125e7 + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 94d838cc8cf2438296477c0139a3c152 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 943b146891ac461c92d286704a0864b2 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e5d72eba4dfb41f8ae73904c936dd64b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4dbad4f0de7f47fd996fd4b8de048d46 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: ac995904f95240d9b1f44c27adea5731 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 1ba45d867e3d4bb99eeb8c0c320ef127 + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: d9452c921e4946719726b292d8c0cbd6 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 30153a623f0649e380de8f9ec5086b48 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/system.name[sysName.0],#1)<>last(/APC Smart-UPS 2200 RM by SNMP/system.name[sysName.0],#2) and length(last(/APC Smart-UPS 2200 RM by SNMP/system.name[sysName.0]))>0' + name: 'APC Smart-UPS: System name has changed' + event_name: 'APC Smart-UPS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: f077c3558d24471ca807ea24b3f0c5ea + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 5a393860311b4b64ae5a4ce7cd7000dc + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 4e87619ed81346d497c3c3f548c342b5 + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: d679688992124f6c91c3f70bcc341d2d + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e9dc225935594e8aa25fb80fcfa68e4c + expression: 'max(/APC Smart-UPS 2200 RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC Smart-UPS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 72077c26a51b43a6afea271e70d13004 + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: 76ae1be14ab6402e9495bf0dea6243f2 + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 38aa32616e964db088f4faff12867f1a + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: 153ab66e45ae4bc3bbf33324c111ea5e + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: 2e3adbdd7c9a4f3f9f151d19e69885bf + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 02e19fb51d6949cdb99a6aafa71ff654 + expression: 'find(/APC Smart-UPS 2200 RM by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: 90e566dbc3184ef8b2ff171630a37c8a + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: a4f42d0a944f41349e0d206f1181bd3b + expression: 'find(/APC Smart-UPS 2200 RM by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: 9277c9b4e065400eb31f2ad965bfa2a5 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: cb9603c5b7674e12a1a1ac98d4b73a65 + expression: 'min(/APC Smart-UPS 2200 RM by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 70a45fc5ad1945a89133a4729340bdee + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: e428310ecc5f4a53ab7932bcf1247a30 + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 5bc38e9b268047e09d77fc144395b2df + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: c4bd5c3b0af145448aa2b084738f5149 + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 603b13b89c7b4ad0bd51d63b93501174 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 9e108d20e6c74e8b96d92f4ce0e7c840 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: 007b2f89fc1f445c8e5afb06a176748d + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 87494b17faf349248ed6cffc4c932a0f + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 291c45432792490fb3dbccab1a0b9183 + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: e2cbe8a1fdfe4d368987a8417dc5637b + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: fc4623c5e962448dbffc98301ddcef4b + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 7639c07a79054f9b99687f84db5c95a0 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: a499a1af78a04c77a21c424f3e790787 + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: c6fc64bbdb3845d5b80d868c392259ac + expression: 'last(/APC Smart-UPS 2200 RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: b4e350ad5bb24d7b96091f8b9766cff7 + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: f39e3c1e6b774ada90ca722cb6ca59b4 + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: 2be0a7af3cd34723aa5560cd0f86cb44 + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: dac612b382ce4b93b588e2ba43c01c68 + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 0e9c22ab97cb4db8b96fb907e4b21e04 + expression: 'min(/APC Smart-UPS 2200 RM by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS 2200 RM by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: f56bcd41c5ee4e16b2558563718bf2a6 + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: 193b0c6624a44545b28009ab31463125 + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 3af338de874c439daeba535156033317 + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: a7aecf3b0c2e448b9c09babc79c52380 + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 91ac886a5dda41cdb6a6912672d70625 + expression: 'min(/APC Smart-UPS 2200 RM by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS 2200 RM by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + - tag: target + value: apc-smart-ups-2200-rm + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: 7167da1ce1f04bf89ebfde0ba7b54b20 + name: 'APC Smart-UPS 2200 RM: General' + pages: + - name: 'APC Smart-UPS 2200 RM: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS 2200 RM by SNMP' + name: 'APC Smart-UPS 2200 RM: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS 2200 RM by SNMP' + name: 'APC Smart-UPS 2200 RM: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS 2200 RM by SNMP' + name: 'APC Smart-UPS 2200 RM: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 6940a4d08173433bb4bc8ff3b44e578c + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: add26e1622ed4d1fbdb4a9bdbf7facb8 + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: 2597173167e34be0943fb6c81f2597e5 + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: 7d2a66214d4b4b96890aa9e1c9bcf050 + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: 351383a7383a4472a31c09009cf9d1f5 + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: 3aadc179423b4298b2e8a6e4850466a5 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: f23282a63bec4b1d951f80439947672d + expression: | + (last(/APC Smart-UPS 2200 RM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC Smart-UPS 2200 RM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC Smart-UPS 2200 RM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC Smart-UPS 2200 RM by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC Smart-UPS: Host has been restarted' + event_name: 'APC Smart-UPS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC Smart-UPS: No SNMP data collection' + expression: 'max(/APC Smart-UPS 2200 RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 3ea53e2a8a4b4d6e80cd991a20f20ce8 + name: 'APC Smart-UPS 2200 RM: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS 2200 RM by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: 3d687b2515494fe191fccaaca5c40333 + name: 'APC Smart-UPS 2200 RM: Output' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS 2200 RM by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS 2200 RM by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: 17a289b5764947758d8eb20425e229d2 + name: 'APC Smart-UPS 2200 RM: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS 2200 RM by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS 2200 RM by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/APC_Smart-UPS_3000_XLM_by_SNMP.yaml b/APC_Smart-UPS_3000_XLM_by_SNMP.yaml new file mode 100644 index 0000000..286874d --- /dev/null +++ b/APC_Smart-UPS_3000_XLM_by_SNMP.yaml @@ -0,0 +1,1555 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: eafd78764fde4110b9e46ae184f327ba + template: 'APC Smart-UPS 3000 XLM by SNMP' + name: 'APC Smart-UPS 3000 XLM by SNMP' + description: | + Template Power APC Smart-UPS 3000 XLM + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: 6e8ed2c349d744a1a07928b32cf574c3 + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 13fe1336e40c4bafb8dbd409497abf8f + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC Smart-UPS: Battery has low capacity' + event_name: 'APC Smart-UPS: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 86780568c0594469bc7324c68440cbec + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 1928e58e65a34b188916086bad5b8725 + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: b50a17ab043c404990dd088ac9f74078 + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 4590ac935e044c19978fe01d117e2995 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC Smart-UPS: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: d15c36fb66754791b1014f52171efe1c + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 9fa77fdcbd7343ca904c6282efcb7c72 + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: e98ba83e63d246408aeeda76da62d5a4 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC Smart-UPS: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 51e3281c49454cf997561c857a34a803 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC Smart-UPS: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: bded43c8a4eb4d1b9cf5403d3f3027cd + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: 1c67af712882479bbf7143bd3e16ed77 + expression: 'min(/APC Smart-UPS 3000 XLM by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: Battery has high temperature' + event_name: 'APC Smart-UPS: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: e478bdaa89674f6792e39ff1a2d9a413 + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 7b7d6fdeea2e49c9bb74eb301ecca93a + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: ab28b72c192e48b5819079bd386ba8ea + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 78e47553d4bb488991067f53cc8f8a01 + expression: 'min(/APC Smart-UPS 3000 XLM by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS 3000 XLM by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC Smart-UPS 3000 XLM by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input frequency' + event_name: 'APC Smart-UPS: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: e90dbc034cc447afb4ac1c8ced484882 + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 28ad85fa6035433f9a7ec45a8393b603 + expression: 'min(/APC Smart-UPS 3000 XLM by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS 3000 XLM by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS 3000 XLM by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input voltage' + event_name: 'APC Smart-UPS: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: a8d017e0fa5d4eca838ad068f0dffcd9 + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: a2613c8d71864594a0c94064d99e059e + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: f667172a5cf44ed6b98f2bb38a3f3806 + expression: 'min(/APC Smart-UPS 3000 XLM by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC Smart-UPS: Output load is high' + event_name: 'APC Smart-UPS: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 107461ac37984a708acf7f55ae248d67 + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 80e30d37b1724c6ba1d58cedbcf6307f + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC Smart-UPS: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 9bb143ada4194c0084eb70af7bb2c5dc + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC Smart-UPS: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 7132f256542540acadb0caf90144a29c + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC Smart-UPS: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 737693e5e4274823a9a21ff92a6ca98a + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC Smart-UPS: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: c2fd31cfe3b8474f80b52a2340108b6a + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC Smart-UPS: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 2c3a2e962c1e45f6858e5c1aaecee4a3 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC Smart-UPS: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 59d415b15bbf43de85453f5b2ffb73d7 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC Smart-UPS: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 6811d34cec57401089af9accfd66ca8f + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC Smart-UPS: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 3c96ce14f54a4a59a2568f1f62117e7b + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC Smart-UPS: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 60e83c77157741cbb3d24920e87d7d59 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC Smart-UPS: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: da442de0e8874736aaab88f009aabe76 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC Smart-UPS: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: ebf71f0afed5460ba4c7f66bb162de9f + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 92c2ef138bf148199cdb6d9684b6fa23 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: fbcbe2cffc8c4bb6b11276cdd03376c3 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a312df9175ca45528375398f56fa3b3b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ed6ad4e7036548c09b9a61d875aca9e1 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a5c6c4c44132439abd0e5fd88e3c90cf + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 272883d0a1cd4bb585a6ede50336c873 + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 1f591627fea54a9ebdd8f10cbf39b9ed + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: c9b1f69a882148a180ec1e2600068671 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/system.name[sysName.0],#1)<>last(/APC Smart-UPS 3000 XLM by SNMP/system.name[sysName.0],#2) and length(last(/APC Smart-UPS 3000 XLM by SNMP/system.name[sysName.0]))>0' + name: 'APC Smart-UPS: System name has changed' + event_name: 'APC Smart-UPS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 39dd6b9b815a4a838a43d2ebf3fcc8f9 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f6922cd0f93a4a4288a978ff8336226b + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 0c36d0bb59a44db2b80ae4a4ff2d7c1b + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: edb39f7236d74c6783e0d4b832e0b94b + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 71994587c45546bfb0950606d7f69936 + expression: 'max(/APC Smart-UPS 3000 XLM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC Smart-UPS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 2edf8773186845499a991288d1a7a55b + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: 7ff04c0f873c4c0f9af5aca2bd447cce + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: a0d8d681bfb54c1d9792beaf3f708d69 + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: 35e7da4783e245a2bfff75f3ae79ff5e + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: b86ac9ee81fe40c8995618c387775270 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 400987be93b34a78865685fedb72a5ee + expression: 'find(/APC Smart-UPS 3000 XLM by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: db78c715c220433cb338199d43cb84a0 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 03a100c0bb8d457690e2467c502fcadb + expression: 'find(/APC Smart-UPS 3000 XLM by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: bab950aa54ca425db4593049a64cf56f + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 9760f6a951a64e3fa6c67a9dd751f79a + expression: 'min(/APC Smart-UPS 3000 XLM by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d2983b402dfd4435a4790d560da8f6f6 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 88f5bc98004740fe886f5b1144de2c35 + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 34e5f00097f4448eadf16071cfa234e9 + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 04425d6cc153491d9cb710b875f8c9cb + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 9ba51ee0398444e1bd12cb805c1f7452 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 490e952dfac944afb23eb0e72e081db3 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: 8b740b88389b457eaa4d1d6c768ec8ae + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 29cedff7a5f043caaaa8ff5798b3e925 + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: c64b5cb02dec4873a2e041359da3cdf7 + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 445fa35253b942cf8009460ea67701fd + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 58a2e39cd7fc4fe1bd825ce6086b4931 + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 944fd36a2ad14fd29dd063ad03197cd7 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 1a4473a5e1bf4fbbb5761fdb141769c0 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: af8e01a221b84c73a3f67ab84ed9cfa0 + expression: 'last(/APC Smart-UPS 3000 XLM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: c78cd23b59254174b333514d9c8d28e1 + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: ecca1791b7744f30bfcc1018a10cf1fa + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: a8ed43fa8a4543f8ab116c8886511aa3 + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 593b355efb0a4e40bd3527c24994da0a + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 709ad3894aca49f0be051d338d4ffaed + expression: 'min(/APC Smart-UPS 3000 XLM by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS 3000 XLM by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: c1771434bf6b476280c2f2d15bb52608 + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: 582f567d83e84d64862183c3b1e248f8 + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 32c88f722f074fd699d880a603aaa91b + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 0502345887e54bbc849a9a4e46a571da + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: dbdf66b61dce4b6dbf49371e9b1f8146 + expression: 'min(/APC Smart-UPS 3000 XLM by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS 3000 XLM by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + - tag: target + value: apc-smart-ups-3000-xlm + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: 7379100c7d074f52a8039eea10755630 + name: 'APC Smart-UPS 3000 XLM: General' + pages: + - name: 'APC Smart-UPS 3000 XLM: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS 3000 XLM by SNMP' + name: 'APC Smart-UPS 3000 XLM: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS 3000 XLM by SNMP' + name: 'APC Smart-UPS 3000 XLM: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS 3000 XLM by SNMP' + name: 'APC Smart-UPS 3000 XLM: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 55fecbd639c44c328b4199569a7305ef + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: 1ce6860b108948bda40d514fd4e3ed69 + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: db1fa20d76c8416c83fa0b7fda536fa8 + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: 50b6ae187875406ea8ba1669add70899 + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: 9c5fd52c36f6451ea3f502a871e821d7 + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: 89597d423b454a42aa80fa8f7a20f273 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 15764a5819174d3fadc75436f42650fb + expression: | + (last(/APC Smart-UPS 3000 XLM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC Smart-UPS 3000 XLM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC Smart-UPS 3000 XLM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC Smart-UPS 3000 XLM by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC Smart-UPS: Host has been restarted' + event_name: 'APC Smart-UPS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC Smart-UPS: No SNMP data collection' + expression: 'max(/APC Smart-UPS 3000 XLM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: a7185c07025e46c6a3b86c29d9f749b0 + name: 'APC Smart-UPS 3000 XLM: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS 3000 XLM by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: 3c778f0c837d4979abb39aabe0cb321e + name: 'APC Smart-UPS 3000 XLM: Output' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS 3000 XLM by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS 3000 XLM by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: 5f44db14cfc94ae7adf98f8cf1f4b647 + name: 'APC Smart-UPS 3000 XLM: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS 3000 XLM by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS 3000 XLM by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/APC_Smart-UPS_RT_1000_RM_XL_by_SNMP.yaml b/APC_Smart-UPS_RT_1000_RM_XL_by_SNMP.yaml new file mode 100644 index 0000000..cfcd284 --- /dev/null +++ b/APC_Smart-UPS_RT_1000_RM_XL_by_SNMP.yaml @@ -0,0 +1,1555 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: 340ec6917c274ead8fab36925e57f30a + template: 'APC Smart-UPS RT 1000 RM XL by SNMP' + name: 'APC Smart-UPS RT 1000 RM XL by SNMP' + description: | + Template Power APC Smart-UPS RT 1000 RM XL + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: 94c5c76b7e09402bb221827ee1fea5bc + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 8ab182b26a0443539a1a114767d8acd7 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC Smart-UPS: Battery has low capacity' + event_name: 'APC Smart-UPS: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 1a52452353b443d6b965293fda3b16b9 + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 7a887ae254b04b19bac605bb36141767 + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 8f4351d23be04a3abee1e6edb746a9ec + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: ab0db1327cf04a9c9a9ee757f0869603 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC Smart-UPS: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: f151210b9cd749b2b3e5af2145733c82 + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: a631704123c2498aa8ce973e36c13698 + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: c8787a09c2ea4aeb977b868ae0a3218b + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC Smart-UPS: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 40d1fdcec63d4c3785b5ba77fbd14ee7 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC Smart-UPS: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: c03e15aaf58f4056b88677c44c5d7d87 + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: e2debe06675d4d4584b60b768633887b + expression: 'min(/APC Smart-UPS RT 1000 RM XL by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: Battery has high temperature' + event_name: 'APC Smart-UPS: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 4b456cb5c0224b31a2f8b4bb40d8203b + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 0a12f157ae844129a35084b5ab0a8eab + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 0ceb5a6d71f440fcbd2da06b0cc1bbb3 + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: b29cd7e33c1e4e16b10fe436c1f7e6d6 + expression: 'min(/APC Smart-UPS RT 1000 RM XL by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS RT 1000 RM XL by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC Smart-UPS RT 1000 RM XL by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input frequency' + event_name: 'APC Smart-UPS: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d7281586af02462a9a2f511c0a5741eb + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: d38f2151f0eb486e8d44b72a2e361a5f + expression: 'min(/APC Smart-UPS RT 1000 RM XL by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS RT 1000 RM XL by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS RT 1000 RM XL by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input voltage' + event_name: 'APC Smart-UPS: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 145d3bf81b00427aad5563a4feb7aea1 + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: cd7b2c1b12df4fd19f37485aa380b295 + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 57197c601f8a433d8ccdcb040d047f6f + expression: 'min(/APC Smart-UPS RT 1000 RM XL by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC Smart-UPS: Output load is high' + event_name: 'APC Smart-UPS: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 3170d441ede24494b9570b6d318cc05f + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: e9289d8f4e124097990e2af98e916368 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC Smart-UPS: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 13735964f51d4d1bb17e6b0587a43020 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC Smart-UPS: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: d74ae82199884a7fb4a20b48f3c7ff1f + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC Smart-UPS: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 4df5271075904c228a0372d5f667530e + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC Smart-UPS: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 3f02d9cb7f5142599e59e7781808e5c3 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC Smart-UPS: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 515ad03892694fd4a2f2350a6bb8af6f + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC Smart-UPS: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 2a2d35e4e4674b6aa49068a7970caa03 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC Smart-UPS: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: ef1ddb8869074847b70e8f669883c56b + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC Smart-UPS: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 0d6e4e664ddf425e8c03155802fe45be + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC Smart-UPS: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 12a3a33152824ffe863a8d79c1372195 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC Smart-UPS: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 273c561c2afb4d78be86218e370c9a1f + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC Smart-UPS: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 6c7d7d803647478c8f2a79875457110c + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: d08fb7e3fae84d2cbae64ab9771ffcdc + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: da60acc731a64257a90512b5c70d1e92 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 01302a36cafd421c90d746f785c83f3f + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 60bef30ff568425eb5e4c5e6dc861e79 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: d0351d1bc1dc4f1b853fe64d456b3570 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 866889bb71e949c18520bf8fefd3e7ea + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 482bec6573f249abbb721f2ec90def3b + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: b13b087b9828426aac82a281071ceb8b + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/system.name[sysName.0],#1)<>last(/APC Smart-UPS RT 1000 RM XL by SNMP/system.name[sysName.0],#2) and length(last(/APC Smart-UPS RT 1000 RM XL by SNMP/system.name[sysName.0]))>0' + name: 'APC Smart-UPS: System name has changed' + event_name: 'APC Smart-UPS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 336ef2166914449fafa13ab08fe7c7a1 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 1c00c980ff284fb2bafb8358cc477d13 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 269ce166bb904fa8b11fc2fdf1f67d76 + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: f4f9ebb1e55b41a5a6e470a541e136bc + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 53263bf0536d479785b45883b9b7ab21 + expression: 'max(/APC Smart-UPS RT 1000 RM XL by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC Smart-UPS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 67fa8bb8687b4a36b8d32cda72083966 + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: b144bee7e8464540bbcd8a3c28ce7e9f + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: b4a8277fdf6f4e76a641690aaf6e7faa + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: 9715d1700f5f49ffaf3ff35c666f50cf + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: 2e7f6a940840406cb17bb1af20936326 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: c1eefbeeb0d146c3bea5cae929d0c30b + expression: 'find(/APC Smart-UPS RT 1000 RM XL by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: ad5ce159270e41899665be0a9f9697e1 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 28b8fb69a85549288cf0e26b9ca0a2cf + expression: 'find(/APC Smart-UPS RT 1000 RM XL by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: 1628e49e7f7b468ca2dee87a80321b44 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: fa007fcfbe7c499d8f97a808991f2800 + expression: 'min(/APC Smart-UPS RT 1000 RM XL by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 7c2aec802cfa4b0292e9d1daa94aee05 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 59467725274d4dba8e839d167cabe693 + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 0336e646ea6247ad8ef4254dff64623e + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 137fdf42e0ab476e86e7b0b3bc87d5cc + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 175c1def62ac412eb5f9ef015a9b8ac3 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: e7610cf822674591bea6ed7ba5e4198d + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: 44353bbfcfbe42e59d2e58b544d32b43 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: b97e3012569840f1bb7da5f5403db6e0 + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: d4b34302c7d74f83a409947f2eed37b0 + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 872bd20f6f5d453490324cd8ea5be7c2 + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: e10189271da445a494d274d99269ab75 + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 5e937c991aa146fe98c1a4f868be6b70 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: f8dd227322784a708ae6297e796177f9 + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: b142607d33e9447d88f23fc3ff7dc11d + expression: 'last(/APC Smart-UPS RT 1000 RM XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 11cac46ee1834e7c816a2cd9dcc02e82 + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 525a204918834dbfa788a3681c2d0527 + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: fd698a699cd546418802964c6157290e + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 1baaad88e9064b92b453fb2c1c7d73d5 + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 971301abf4d6457da125fd7ebd903728 + expression: 'min(/APC Smart-UPS RT 1000 RM XL by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS RT 1000 RM XL by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: cbd6b174482c4769887fc1aa2dc2ad5a + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: 84ec9adaa7c94f10b55ae9968449d673 + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 6d1812674e5646f8acf2ea47acf05a6d + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 3c0573d586b24e53aeebb6c44b907bbd + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: d7167a129de146d19218edb85c82c69b + expression: 'min(/APC Smart-UPS RT 1000 RM XL by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS RT 1000 RM XL by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + - tag: target + value: apc-smart-ups-rt-1000-rm-xl + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: 4b5beff567794c0ca4bb0d0b0868e703 + name: 'APC Smart-UPS RT 1000 RM XL: General' + pages: + - name: 'APC Smart-UPS RT 1000 RM XL: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS RT 1000 RM XL by SNMP' + name: 'APC Smart-UPS RT 1000 RM XL: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS RT 1000 RM XL by SNMP' + name: 'APC Smart-UPS RT 1000 RM XL: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS RT 1000 RM XL by SNMP' + name: 'APC Smart-UPS RT 1000 RM XL: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 7cf932d3b9304f2cb151134e9ea3be82 + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: 63c5f0e1601947e5a02abd25a07a9af4 + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: 70d097ce846c45aeb3c8be031c427511 + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: 3424a9229a134b47b8544d611be082fb + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: 05a60d9c47274f5a8f6c92efe8158b8e + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: d4ee88b3cf5d4d95b27be2e7b2f20e3c + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 87ebd137f2744ae6879d6fd9d51314ef + expression: | + (last(/APC Smart-UPS RT 1000 RM XL by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC Smart-UPS RT 1000 RM XL by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC Smart-UPS RT 1000 RM XL by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC Smart-UPS RT 1000 RM XL by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC Smart-UPS: Host has been restarted' + event_name: 'APC Smart-UPS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC Smart-UPS: No SNMP data collection' + expression: 'max(/APC Smart-UPS RT 1000 RM XL by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 566f3eed2c324e5faa80f4170cb40b5b + name: 'APC Smart-UPS RT 1000 RM XL: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS RT 1000 RM XL by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: 09da5776f4ff4e978e488a12f33dc8bc + name: 'APC Smart-UPS RT 1000 RM XL: Output' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS RT 1000 RM XL by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS RT 1000 RM XL by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: df0833759bae450e8125c3fb76519775 + name: 'APC Smart-UPS RT 1000 RM XL: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS RT 1000 RM XL by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS RT 1000 RM XL by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/APC_Smart-UPS_RT_1000_XL_by_SNMP.yaml b/APC_Smart-UPS_RT_1000_XL_by_SNMP.yaml new file mode 100644 index 0000000..b92decc --- /dev/null +++ b/APC_Smart-UPS_RT_1000_XL_by_SNMP.yaml @@ -0,0 +1,1556 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: 32d3c78ff44c4c3c9ff5b893ad7f5fc9 + template: 'APC Smart-UPS RT 1000 XL by SNMP' + name: 'APC Smart-UPS RT 1000 XL by SNMP' + description: | + Template Power APC Smart-UPS RT 1000 XL + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: 6ac68411ef214cc7aa49d39d58ce3c6a + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: b5d618c6090447429191fe4d07e85afa + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC Smart-UPS: Battery has low capacity' + event_name: 'APC Smart-UPS: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 7f3b05afa58142d5b8670c40c196baf8 + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 87b91005f5ff4ba5b0086e25eaa799bd + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 44a33eba233e4bd7ac51ca2dcabf2939 + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: dc92c19a5b7e43a4b155d6d51912aaf8 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC Smart-UPS: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 95749270e6234d6cbd1edb0c5e1118e0 + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 047a5a3a957949d288588eb11f36f25e + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 70c32834ea40487c8f13a55b7ed7c88f + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC Smart-UPS: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: e7aeaae896664729b66b42a94f626f9b + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC Smart-UPS: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: 04cd5e06823846b58ad57e2c358f346e + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: 33695c02cf6141f78e21ca899af10c03 + expression: 'min(/APC Smart-UPS RT 1000 XL by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: Battery has high temperature' + event_name: 'APC Smart-UPS: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 8ee98deaf4bf46afb06f694d19757237 + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 4cb80c94f3d14674bc7a3933c7571eac + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 700a78a4ab3c441496ecafc5ddde6a9d + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 167de2d832984944878767571b0b5fe4 + expression: 'min(/APC Smart-UPS RT 1000 XL by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS RT 1000 XL by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC Smart-UPS RT 1000 XL by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input frequency' + event_name: 'APC Smart-UPS: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: e2b5b824c4704293ad68185971e9fb03 + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: b8741bc0081a4a9db2824c9f93ecb399 + expression: 'min(/APC Smart-UPS RT 1000 XL by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS RT 1000 XL by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS RT 1000 XL by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input voltage' + event_name: 'APC Smart-UPS: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 861757e4bb1a4dc6ac1c8ef94d973328 + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 1d9d7ef724ff41eda4fd536df6af93cb + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: a4faec3975134cd59e83f1ca7fa3ef7d + expression: 'min(/APC Smart-UPS RT 1000 XL by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC Smart-UPS: Output load is high' + event_name: 'APC Smart-UPS: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 3edf5e7776ae4cc6aebcedcbf4ab8d78 + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: deedd977f1ed4b9fbb5cc161dde0c116 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC Smart-UPS: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: a7bbe6ca410743919f7c611a6faec9ba + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC Smart-UPS: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 974042a124b945068c6c16c4a01433dc + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC Smart-UPS: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 90e810043e41467b8460278fc7923397 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC Smart-UPS: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 656ae233f3a946799c3ed3d48914c0b0 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC Smart-UPS: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 3fcbd14931854831ac603a254ffea0c3 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC Smart-UPS: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 65085178eef54189afdaf4937de49177 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC Smart-UPS: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 0aa402907ee446c0a13fa086b500fa87 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC Smart-UPS: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: be6cdd1fc22a4f0eacdbce4361cd6788 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC Smart-UPS: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: b4375fc980ae4bee87531d18ea9a5397 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC Smart-UPS: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 7ae9e31ac32944928065d1cefb2c4e2f + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC Smart-UPS: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: bcb28618699448ea8d9d056bad203a0e + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: d633cd3273e74209a1b0c6b761028e0a + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 50cc8e7cea0c40948c006623dfa94dae + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e0d638ab398f40e8a9555925cd8ba907 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4def354a520e42d78d67b2e8b1cd8eb4 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 031b9d385cae4641b9ecfb76c4174262 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 320221ba30744ca78b8dce03dccd549b + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: e4d9441075954c068b6fd92bbff49cef + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 31bb0ff1ea334cd59d9f8b8f489611ef + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/system.name[sysName.0],#1)<>last(/APC Smart-UPS RT 1000 XL by SNMP/system.name[sysName.0],#2) and length(last(/APC Smart-UPS RT 1000 XL by SNMP/system.name[sysName.0]))>0' + name: 'APC Smart-UPS: System name has changed' + event_name: 'APC Smart-UPS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: bbcb555846df4169bc7aead77403e8eb + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 4e7a9b6aa8dd4371b83bf47f8246cebf + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 9ebb979a5e4a45fd9acf956df034f9be + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: f24fc7ed9ffa4884891a01a0f1565fc4 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 21fc3a198f3b423fa14676278f53a4be + expression: 'max(/APC Smart-UPS RT 1000 XL by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC Smart-UPS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 9389b159502e4242b02a11104124bae5 + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: 202a5c9f91c64011a915157a07245a6d + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: ec66331f2ae64801a3ef51d6dec5a00f + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: 8d1574f1c1d442529509580309153564 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: 3c829e3adec64fb39334dbacc03a3229 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: c353d8e0b0584c6c8ba81514f5c66995 + expression: 'find(/APC Smart-UPS RT 1000 XL by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: 15f52cb076cb414fb794113e9981fdde + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 26535b11c27b4fbe92285b56cbbf5a73 + expression: 'find(/APC Smart-UPS RT 1000 XL by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: e0d8f68302264c1b9420284f3e3a0272 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 7f8613d752524d588e60aa1cab2c60bd + expression: 'min(/APC Smart-UPS RT 1000 XL by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: bca352c952174256b9cfbcffb86fbf90 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 19379361227740c3bf8bc9852886538d + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: d9c8acbf3a90411582404c9d5cfa9f70 + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 1a475822bc324bbf8c4aa15c34734270 + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 40e22c5379f34edf87d1ea52ffae60b8 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: a482de04a5d34807874fc7a7c506dd40 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: dca875c511b04dc1857de74223c4f27b + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 6d1005b2b6ad41369174d93b1ebe1959 + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: c4df3e0e0eba4585bdd01358f9d7f5d9 + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 7d08e2a5df41454f863f5b50a911f819 + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 4774fd152aab49de9064490cf7ec1d0a + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 650a1d16e56c45188c6246e960d62857 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 7518ae06e3a14866b9e6d90a224055f7 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: 65aa8a5380f141498dd9c718972110b3 + expression: 'last(/APC Smart-UPS RT 1000 XL by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: d94425f2025045459af40e8fcb72734e + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 68610f5b6df44229bcb0ad4b0fa1c3f8 + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: d17e9bb868b143dca508c4f79092cd6e + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: cf03abf328754a4082017f480051292f + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 8c9226411afb4b32ba3e9d6232ff4710 + expression: 'min(/APC Smart-UPS RT 1000 XL by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS RT 1000 XL by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: a7b39188df294ec182c3e1f2a2417154 + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: 638c63c2f4ad4cad8ed71a796d78705b + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: ba4a2ae8abea4e2692b9a43231783648 + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 4e22c7f6d7e14b20b3720e082042fd4f + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 58e0697a9a9147a4b1dfda251f2b593e + expression: 'min(/APC Smart-UPS RT 1000 XL by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS RT 1000 XL by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + - tag: target + value: apc-smart-ups-rt-1000-xl + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: 498b4d5a91574c25a798e90c529eb100 + name: 'APC Smart-UPS RT 1000 XL: General' + pages: + - name: 'APC Smart-UPS RT 1000 XL: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS RT 1000 XL by SNMP' + name: 'APC Smart-UPS RT 1000 XL: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS RT 1000 XL by SNMP' + name: 'APC Smart-UPS RT 1000 XL: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS RT 1000 XL by SNMP' + name: 'APC Smart-UPS RT 1000 XL: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: b2af1e2dcb874d43949c383f9b347f36 + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: b06b54b07e6840e5a0c52ba7a6acf86a + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: a62f96735c47467da94b6bcf98cc013d + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: ed12e8780c384caba8035fbb1c78e115 + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: ae2ed0c2c99a4ad496f7a35226e3d4f0 + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: 8cddc4f99ecb4866b1638b82b145ea8b + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 860d3beb50c0400283a71c2c4b4ea5e2 + expression: | + (last(/APC Smart-UPS RT 1000 XL by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC Smart-UPS RT 1000 XL by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC Smart-UPS RT 1000 XL by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC Smart-UPS RT 1000 XL by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC Smart-UPS: Host has been restarted' + event_name: 'APC Smart-UPS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC Smart-UPS: No SNMP data collection' + expression: 'max(/APC Smart-UPS RT 1000 XL by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: a0d8e0338b8d4fd2bd6fdf537373d63c + name: 'APC Smart-UPS RT 1000 XL: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS RT 1000 XL by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: 0817d2550d9642fe95ce182dce5cefd8 + name: 'APC Smart-UPS RT 1000 XL: Output' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS RT 1000 XL by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS RT 1000 XL by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: ce2f4070e7a14d8283d0a8aff0fcd5e6 + name: 'APC Smart-UPS RT 1000 XL: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS RT 1000 XL by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS RT 1000 XL by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/APC_Smart-UPS_SRT_5000_by_SNMP.yaml b/APC_Smart-UPS_SRT_5000_by_SNMP.yaml new file mode 100644 index 0000000..c1b45a3 --- /dev/null +++ b/APC_Smart-UPS_SRT_5000_by_SNMP.yaml @@ -0,0 +1,1555 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: 8ec76aeb703747a5affdf435bc12f572 + template: 'APC Smart-UPS SRT 5000 by SNMP' + name: 'APC Smart-UPS SRT 5000 by SNMP' + description: | + Template Power APC Smart-UPS SRT 5000 + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: f5ca8610803e4aca8c6c3c8f6044ca43 + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 0103da3d5f414d8ba1e9914d5c8d5f76 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC Smart-UPS: Battery has low capacity' + event_name: 'APC Smart-UPS: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 7652aff14f644896be902fe18f3bb46a + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: ee059b1bb6ac486c8c5dd29654899d71 + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: f4d790f93a1c4e75a7ebd3d89d0d9d90 + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 09573345f6ce4d648f56117c8755e368 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC Smart-UPS: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 6aacf5a02a824b9d8b3c2676b126b186 + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: aebc8b49a97243038b97855c5d20edb7 + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 743aef1e53ee464da48d2953ddc3b85c + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC Smart-UPS: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: d648d686ff994625bd17f959c311fddd + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC Smart-UPS: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: 48552e466ee54883ae3cbfd5e549ffc5 + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: e47ba98e74c94bd3886ac65cd1075359 + expression: 'min(/APC Smart-UPS SRT 5000 by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: Battery has high temperature' + event_name: 'APC Smart-UPS: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 560031163d54444cb5ead172e9e238d2 + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 09f34437ff2e422bb62d7ba44b05657c + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: fb816e1a6ff640d69a5465e78febc03e + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 3fa853edcebe42eba858e45f1a4465ee + expression: 'min(/APC Smart-UPS SRT 5000 by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS SRT 5000 by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC Smart-UPS SRT 5000 by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input frequency' + event_name: 'APC Smart-UPS: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 65acc805ec7f4a2883d28f51b32054cc + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 74b42439050b48b6bf41abb5bb39808b + expression: 'min(/APC Smart-UPS SRT 5000 by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS SRT 5000 by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS SRT 5000 by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input voltage' + event_name: 'APC Smart-UPS: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: b0d66c706be8457cbf794171253dd927 + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 5427a9b46ea54920b3fcc7d8ca413e0e + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: e099efa7266f44008819979830147665 + expression: 'min(/APC Smart-UPS SRT 5000 by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC Smart-UPS: Output load is high' + event_name: 'APC Smart-UPS: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: c87c096a38284b82bb0fd8c9dfe871ef + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: edcc1dc962fa4a228b2f5cd3617efbc6 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC Smart-UPS: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 869fed8cdd5a4f369e3b1ff2474280de + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC Smart-UPS: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 378a246b34454d73b2248757be60a7ea + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC Smart-UPS: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 286dc25a245f45c3bdcc64925b41aef6 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC Smart-UPS: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 4d02a4c4f25a4efda7bd30def8364972 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC Smart-UPS: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: ae91f99b089748cdaeb0185e31ffe82e + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC Smart-UPS: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 0bb0ef56d82e4c2a9414468c61fb3a96 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC Smart-UPS: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 6a5a7e4b17384131a337619ec4a9c1e6 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC Smart-UPS: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 232c98b7ca654c91a20d52ce6f21d7a1 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC Smart-UPS: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 65b8d109db8d4448a7ead131581fcbbe + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC Smart-UPS: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 917c1f3c82e044a89f2f56a2c8a602a6 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC Smart-UPS: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 998d1322a2274da19abe10cdcb3c52e0 + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 3892c18baef54c598dc78035f5a7540a + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 7485fd42dd2749028a2d67f315888723 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 0617c89b47454dbd833fcc2b8d570db8 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9d1f4a038ee447639a07f3549ad68840 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a57de4a9da144c2aa880253e4e2b46f9 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 7e81f54bbbdd41ca8f9e010dbddc485f + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 5778610ee61d472d9dc8c8da94f9e301 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 154aad534c35473cb4513cb4e3d4a082 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/system.name[sysName.0],#1)<>last(/APC Smart-UPS SRT 5000 by SNMP/system.name[sysName.0],#2) and length(last(/APC Smart-UPS SRT 5000 by SNMP/system.name[sysName.0]))>0' + name: 'APC Smart-UPS: System name has changed' + event_name: 'APC Smart-UPS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 1b9e4b13cfcb4680b25dd8974900fc17 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 1782e98504114e7c847b6d127b3a3ae1 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: a3069693d6e545978fb877d767dface5 + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 63079124c55f479dad013d0c15077577 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 6e0f9b15effd4c9e9c416a99fd8f4517 + expression: 'max(/APC Smart-UPS SRT 5000 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC Smart-UPS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: af4472b543b54699b6e812de51be2419 + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: a8a07270aac8499391fddfd1b6d517a3 + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: a3716fb0833e4655b63ec4ccc5736950 + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: b68c1b0a33bf4d2c94bd46e25a6b5e46 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: 8629f478f8e44e079b69914b498ce2f5 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: b29f9bd2e80242be940682139f303121 + expression: 'find(/APC Smart-UPS SRT 5000 by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: fd2d784d618a4ad883a4afb8a9b94940 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 0a96a9726cdd4431ad6e6d52e7461d69 + expression: 'find(/APC Smart-UPS SRT 5000 by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: 6b20217de8474cc08ca3818784804109 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: dbb191572a17451296ae4ee8d3aeec73 + expression: 'min(/APC Smart-UPS SRT 5000 by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 7757bd184a7c4c0bbd442c7a3013f6d9 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: e858b8966abc444a914ef60c1708b835 + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: bddad787e7df427b8b225c9af517c3c1 + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 5cab24d2166244fd9528930edbafa677 + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: fc448a3d2ae4462a903863364bec836d + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 3340123b060949a4b806a5a757862026 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: 5ac7c47c37804492947716e5857275c4 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: af55c3c3bc2f45ec9f735de0fb5a4285 + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 415a43bfe1d845f88f0ac15e80a0dc14 + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 4a5c62571e0b4fdaa6c7b85645e06649 + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: e09e9e197d2f4afc83231cb304a26b09 + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 8774e39abe784f6b9fe2f33c30f3fa05 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: d41c9de571ea4b48a1213f98a058c550 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: c9e751b9449f4616beeb36b51cf0a3b9 + expression: 'last(/APC Smart-UPS SRT 5000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 7bc1fa7e114e40ffadd4336a3980e4c2 + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 5971a05073b84056bf4e30dfa3e2e18e + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: 847e044ec924456daf41025d312334bf + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 15de75236e9c44f1bb4bbf4c0425c9c2 + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: b8d5cbee0bc14df58a217b33222aa75d + expression: 'min(/APC Smart-UPS SRT 5000 by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS SRT 5000 by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: e4f2cd7e1f004c4abd5be7e5fc28a9eb + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: 0e4b4159dd0543faa5d93969f8e5753b + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 3d35f771f73545e2806153f33e747bc4 + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: d27c63f29e9b453a9bbdac1c0c8065ae + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 176a3014124f4f23bedbad120cb2b69a + expression: 'min(/APC Smart-UPS SRT 5000 by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS SRT 5000 by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + - tag: target + value: apc-smart-ups-srt-5000 + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: 7f7515c4fbfc4b96bb18f66f6fce2dce + name: 'APC Smart-UPS SRT 5000: General' + pages: + - name: 'APC Smart-UPS SRT 5000: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS SRT 5000 by SNMP' + name: 'APC Smart-UPS SRT 5000: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS SRT 5000 by SNMP' + name: 'APC Smart-UPS SRT 5000: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS SRT 5000 by SNMP' + name: 'APC Smart-UPS SRT 5000: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 41e166e2a5f948488238198920ab4b17 + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: 224af0a6a5db48ef9c8861bc61873ea9 + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: ded19296204545b9ab463d4fc65f3cfd + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: 271d8f0594cf451a8aaa98c84850ebf7 + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: 171d4d5bf01442e391b04f9e448df5a0 + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: 8b4f199f5e704cbea67182d4abf9b8de + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 7793a5e111c6466584ef6610aae707c1 + expression: | + (last(/APC Smart-UPS SRT 5000 by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC Smart-UPS SRT 5000 by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC Smart-UPS SRT 5000 by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC Smart-UPS SRT 5000 by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC Smart-UPS: Host has been restarted' + event_name: 'APC Smart-UPS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC Smart-UPS: No SNMP data collection' + expression: 'max(/APC Smart-UPS SRT 5000 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: fb922a035a6748e28dc892af3331dae4 + name: 'APC Smart-UPS SRT 5000: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS SRT 5000 by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: 4317390560354b369a884abcbce9a026 + name: 'APC Smart-UPS SRT 5000: Output' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS SRT 5000 by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS SRT 5000 by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: 595018e4c5d8406a805aed647cd2f5d1 + name: 'APC Smart-UPS SRT 5000: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS SRT 5000 by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS SRT 5000 by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/APC_Smart-UPS_SRT_8000_by_SNMP.yaml b/APC_Smart-UPS_SRT_8000_by_SNMP.yaml new file mode 100644 index 0000000..edb9ac7 --- /dev/null +++ b/APC_Smart-UPS_SRT_8000_by_SNMP.yaml @@ -0,0 +1,1555 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: b3caafda8c5345cc832ac3be3cefa615 + template: 'APC Smart-UPS SRT 8000 by SNMP' + name: 'APC Smart-UPS SRT 8000 by SNMP' + description: | + Template Power APC Smart-UPS SRT 8000 + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: c4f4a85105f24292a3b566d0d1bcc090 + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 92e6a65ffc6d4a6bae62303ee2796580 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC Smart-UPS: Battery has low capacity' + event_name: 'APC Smart-UPS: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 7d7c2b962e9843b8a6cf72c04ff1e479 + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 552e030c272d43a0998bc2648f15ae44 + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 4cdd4bbff845477194a6d96a31431d23 + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 0e8030c0028144728361153c2b47016b + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC Smart-UPS: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: ae8a19896d21405ca99a5bfbd5de1f95 + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: ceed5ddfc9964aabaebb0b97875b1bd9 + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: cf186014cfd94ccbad3cc4cbd22b6aa1 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC Smart-UPS: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: e1957ee82be847e7bfb171560fc59293 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC Smart-UPS: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: 533041b6831c451cb72991d3fdeca535 + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: 1e883961b65e445997c57870734a58ca + expression: 'min(/APC Smart-UPS SRT 8000 by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: Battery has high temperature' + event_name: 'APC Smart-UPS: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: fa8256c826954defa82083ddc742624e + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 07754bb421d0435995abbc49d4597908 + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 7574344f67544554804c4c68e39d3d72 + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: b9a134c942da46ffba1acdf85a7832e4 + expression: 'min(/APC Smart-UPS SRT 8000 by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS SRT 8000 by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC Smart-UPS SRT 8000 by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input frequency' + event_name: 'APC Smart-UPS: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: c69418651f75413e95645c62fa3fee7f + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 694ab76079b1447b99ef510d80faab6a + expression: 'min(/APC Smart-UPS SRT 8000 by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC Smart-UPS SRT 8000 by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS SRT 8000 by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC Smart-UPS: Unacceptable input voltage' + event_name: 'APC Smart-UPS: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: e4d76d857c4e46fd9b0e97405b17988a + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 0413f6ef89894dc6ba51e42f6a963f94 + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 68f92026e7b345c88bf4aa679f9b642c + expression: 'min(/APC Smart-UPS SRT 8000 by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC Smart-UPS: Output load is high' + event_name: 'APC Smart-UPS: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 11c1742beed041999375e5a1ede42546 + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 9952679fada845228bbbf05bcdada305 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC Smart-UPS: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: ee306606159f4930bcf580b5084c846a + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC Smart-UPS: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: c4623dc4c6ae4c5b9ff4bdf4f43ed8b2 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC Smart-UPS: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 26c0b9b62d864c1ead7b16e0076a7226 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC Smart-UPS: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 5c8408069c03421cb60b388451869b6f + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC Smart-UPS: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 156c5260ed4444c19313ba491ce9352c + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC Smart-UPS: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: c233bc86198140659ec3dd609c94ec94 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC Smart-UPS: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 944e49d1b6d44adc8d720bd689d8c8cf + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC Smart-UPS: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 9b376dbd2d614878b681b42bb2c7fe4d + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC Smart-UPS: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 499ac46836c1454dad3c1ffc5714c073 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC Smart-UPS: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 8a0a5af39647494681e52595d179c336 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC Smart-UPS: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 07059c625de94e618925249492982fb7 + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: ae4579b14c424c0492acbfcb5aa5dd67 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: e4995e72f6b442bd9b8c90f09eb54f16 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 13d3c18413a249d492272a7373ebd772 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4e8b6d6a5aa24159b048d1cf28e9418a + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 25aa469a757347089191eb8e364d4df9 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 57f3c4c2aff04eef83b7a7a53fa9f95c + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 13c26820947442f581c2234c38c052cc + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 852083234a55441aa2fa57b202227bef + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/system.name[sysName.0],#1)<>last(/APC Smart-UPS SRT 8000 by SNMP/system.name[sysName.0],#2) and length(last(/APC Smart-UPS SRT 8000 by SNMP/system.name[sysName.0]))>0' + name: 'APC Smart-UPS: System name has changed' + event_name: 'APC Smart-UPS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 320bdbfd8076411bb1dd63fccddec126 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b59b3801f5584321a1fca9bdb466f191 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 63852531159c44f1beca7facd8f93fa2 + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 567996748402435d80aae37818d4125e + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9a0cb26712c14045a18a0e86de4cdd54 + expression: 'max(/APC Smart-UPS SRT 8000 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC Smart-UPS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 912994ce460742ebbb91c89d28d87d73 + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: e74988ed369b429893ca495a57ae9a52 + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: abfe041a98dc4023b21ec6d9e829a94a + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: b3835f9b8e9c41c98a747c37feaedb50 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: 820d8eda050b41a3a9ba2889e290a28a + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 2d9c4ef006994ebea581b895424203f3 + expression: 'find(/APC Smart-UPS SRT 8000 by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: cf709f051aa242799cf14ba923d9a0c0 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 5358b97f94aa47f59351be88673407a0 + expression: 'find(/APC Smart-UPS SRT 8000 by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: 99c570ed628343e99ac086167cec51ee + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b88678e600694bc19ebaf57472d8658f + expression: 'min(/APC Smart-UPS SRT 8000 by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC Smart-UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 597b33ec3d4c4f79bc0acc36edaa6dec + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 52e5451d8c7a41478ef9dde6a3c16378 + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 418b37fbca594f6288eeccdbe272bad7 + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 53102fe478cf47bd9fbe5240aab7cf65 + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 33f4ac80a8d44752b97bc4f885a8c95f + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 1a2080a561394f8c8a0dc639cbf2c812 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: a53d5dd33e8548d5bcb73ffb936af910 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 0f44bfc0e17b47919e83246046209bbf + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 39f516180a1b4727907b1e2974111fe1 + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 2263b22a266a4db091f05522a024a1e4 + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: b7af85f894194cf39c369fcba0401cc5 + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 9247973676c44377a4fa550990384eeb + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 6b054505c2704c8d8e38b096885bbbe5 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: f56f165d71084b75a716d04337f5fcb1 + expression: 'last(/APC Smart-UPS SRT 8000 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC Smart-UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 84af771eee61470d9a61cede04718d88 + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 10363e965d97464a9344baa5fa7a2f53 + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: a275ab18a7064706bf721498ac7c5605 + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 113adf39a65548abab2da39aec20c169 + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 755f972a32904dbf81a6da77f4ba57f0 + expression: 'min(/APC Smart-UPS SRT 8000 by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS SRT 8000 by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 0a3159e22ba640e2840789b63bee2bda + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: 3b625f8ab9f54dca882534d78ee0e584 + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 99357a267db04c8ca9385aaa15116b79 + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 13315206a94948a09fbb4a9843d2e149 + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 5846a7a3d56f43de8394823ed64a11ae + expression: 'min(/APC Smart-UPS SRT 8000 by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC Smart-UPS SRT 8000 by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC Smart-UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + - tag: target + value: apc-smart-ups-srt-8000 + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: 3a1da069730b43f5a631482f113f3752 + name: 'APC Smart-UPS SRT 8000: General' + pages: + - name: 'APC Smart-UPS SRT 8000: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS SRT 8000 by SNMP' + name: 'APC Smart-UPS SRT 8000: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS SRT 8000 by SNMP' + name: 'APC Smart-UPS SRT 8000: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC Smart-UPS SRT 8000 by SNMP' + name: 'APC Smart-UPS SRT 8000: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 864d59cbfcc8431cb334b812bf7ef3a3 + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: cc42cb7a7fb4417fa1c143e214958c1d + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: a3bbd0be8c7c4dc1aa9accb9f22292c9 + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: f801d4fb07c644e4be1f01e99ba48aa7 + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: 28964e9cf2b849fbb2f8d998cecdacda + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: 12058346f9e046388767c2939bbed2cf + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 6f0fbe74ad4945e987e7ffdfa741d92f + expression: | + (last(/APC Smart-UPS SRT 8000 by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC Smart-UPS SRT 8000 by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC Smart-UPS SRT 8000 by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC Smart-UPS SRT 8000 by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC Smart-UPS: Host has been restarted' + event_name: 'APC Smart-UPS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC Smart-UPS: No SNMP data collection' + expression: 'max(/APC Smart-UPS SRT 8000 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: e040a4ac7b024c4c878c8145b34969aa + name: 'APC Smart-UPS SRT 8000: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS SRT 8000 by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: 7cd3c6f5dcaf40e28cbc0ac9e3c35d7a + name: 'APC Smart-UPS SRT 8000: Output' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS SRT 8000 by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS SRT 8000 by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: 2fe4eba0af2745c994ad3d6abfe30140 + name: 'APC Smart-UPS SRT 8000: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC Smart-UPS SRT 8000 by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC Smart-UPS SRT 8000 by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/APC_UPS_Galaxy_3500_by_SNMP.yaml b/APC_UPS_Galaxy_3500_by_SNMP.yaml new file mode 100644 index 0000000..7a9cddb --- /dev/null +++ b/APC_UPS_Galaxy_3500_by_SNMP.yaml @@ -0,0 +1,1555 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: 5d3971cd973b46e7915d7ae0750bac57 + template: 'APC UPS Galaxy 3500 by SNMP' + name: 'APC UPS Galaxy 3500 by SNMP' + description: | + Template Power APC UPS Galaxy 3500 + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: 70ebcb1dee674a60a1410895d60e8245 + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 1800690ba0504df9940a4e667c846132 + expression: 'last(/APC UPS Galaxy 3500 by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC UPS Galaxy: Battery has low capacity' + event_name: 'APC UPS Galaxy: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 2b417eadc988460a89db04efdaca4ffc + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 98af792142464656b925a452e5ebf1cc + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: b7614652ff6f4e0890f366b8e0831b80 + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: b4d10f8908f4473facde6d2db1520e0f + expression: 'last(/APC UPS Galaxy 3500 by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC UPS Galaxy: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 89cca909c60745fe824d02aa0d4bc3d7 + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 22a95e447ad74d43a191f368346fde59 + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: d84ec0d0b8d84e3294cbe7ffaed0c83e + expression: 'last(/APC UPS Galaxy 3500 by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC UPS Galaxy: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 8f569ce6c916456581e1cb2cdd8d4dba + expression: 'last(/APC UPS Galaxy 3500 by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC UPS Galaxy: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: 7a0a2b5e702f473fa1144eaf499367b2 + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: 0e1f47f0604d4b1b8769e497d7f328b9 + expression: 'min(/APC UPS Galaxy 3500 by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC UPS Galaxy: Battery has high temperature' + event_name: 'APC UPS Galaxy: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 756f727fe8374aeba9d1afd7bbe77f02 + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 9069a1c0d9304e7fa5f2df133dbb46cd + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 3a64740655ca455ab0280592b5f0055f + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 786d9928356e41ad9b6b2de3b4f3a96f + expression: 'min(/APC UPS Galaxy 3500 by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC UPS Galaxy 3500 by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC UPS Galaxy 3500 by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC UPS Galaxy: Unacceptable input frequency' + event_name: 'APC UPS Galaxy: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 89bb663e356c4420bcbe2a9470ae3195 + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: de88ed3b64644d3f9ad1cc3f965757bc + expression: 'min(/APC UPS Galaxy 3500 by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC UPS Galaxy 3500 by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Galaxy 3500 by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC UPS Galaxy: Unacceptable input voltage' + event_name: 'APC UPS Galaxy: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: a6737781029b422ca7a8bbfa0ed80b56 + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 5774ead79e8b4d63a4a31bc091d1c52a + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: fb7ca4b92e714fda95152b698cf1aa92 + expression: 'min(/APC UPS Galaxy 3500 by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC UPS Galaxy: Output load is high' + event_name: 'APC UPS Galaxy: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 8a6c9b134ebc4fd19876cf5d50dfc17b + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: efed1ccf301740c1a29e71cd89e5659f + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC UPS Galaxy: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 44394841911641c4972165b59b8f6a5b + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC UPS Galaxy: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: d60b075bfaaa4aeea2398d058fb79c92 + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC UPS Galaxy: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 4d54e6e979f94801a3c1e9d6080886bb + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC UPS Galaxy: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: eb430f5409a24f89b0a9e56fb28087c4 + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC UPS Galaxy: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 77dbd58283b542cfbca9a9255344e97e + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC UPS Galaxy: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 3856ff4ac1d64f8e80c4e0cbb1e04c1a + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC UPS Galaxy: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 10d8d392f93a492b9be767c7ccdf06ed + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC UPS Galaxy: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 2ab92cb281754de6ad5245509c20056d + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC UPS Galaxy: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 8fabe8958cfd4dbbabd70648dff1be06 + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC UPS Galaxy: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 9846ac1bbf024e63a05a83e2c02de7ba + expression: 'last(/APC UPS Galaxy 3500 by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC UPS Galaxy: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 4ec893da7b8540548d60a91ee7e2df83 + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 7d20aa252c5143c98de837dbd2f0cd53 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: aa5e85ef78504fc080b97342baf6cb35 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f1df592a2b114677a1beabec33ce01f9 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b73fb48b4da84a53b7a4b7e81d6037aa + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b109475e72e74e76846aa478e9937101 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 93b6e128e95a4a96bde38ef15d74d510 + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: d6f2c9770c28487d9fa6af2b63917958 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 811ff6e90d904c8c98feadc89a18e733 + expression: 'last(/APC UPS Galaxy 3500 by SNMP/system.name[sysName.0],#1)<>last(/APC UPS Galaxy 3500 by SNMP/system.name[sysName.0],#2) and length(last(/APC UPS Galaxy 3500 by SNMP/system.name[sysName.0]))>0' + name: 'APC UPS Galaxy: System name has changed' + event_name: 'APC UPS Galaxy: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: fc207a1df4324fcf99ba1da262527fe3 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 5497f3649b9348dca290c55e94f48597 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: ef25b1e818534420920ff6260fa2932e + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: efad5c028c0d4c11b57a19dc04830ea7 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e12b11324a634eeba56db1aec1834d5f + expression: 'max(/APC UPS Galaxy 3500 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC UPS Galaxy: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 54a867c14c814e4ab4803c5a59082e44 + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: 2a60e35fabb44c78bd827e22293166d9 + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 0c8fc55bbe984d919c3b87a096d900d5 + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: a7023eed55484d1d9f0754ccb1ec9f87 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: 41cd82bb312344b7bdb9c7c5aac2eb21 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 94e469f639cb4ae4ab3ac23918cfa651 + expression: 'find(/APC UPS Galaxy 3500 by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC UPS Galaxy: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: 241efd4ef6204c58adc04e4e04660845 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 60bf7de80cd741caa1c622e797da1d69 + expression: 'find(/APC UPS Galaxy 3500 by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC UPS Galaxy: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: a55dd3033a2645aab5592f356043c342 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: bdd4bb9fac784bc0b0dc72db3ac9e040 + expression: 'min(/APC UPS Galaxy 3500 by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC UPS Galaxy: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC UPS Galaxy: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 8ea7d066a5ae4141b4cd0af13d96c40c + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: ffb60da941114174932b219e14892be9 + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: f2bcca2221e94e828755a90f98c98495 + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 1a41c120082948bdb6865413bdc09917 + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 93d474d1badc45d5a48fe0e610744ff6 + expression: 'last(/APC UPS Galaxy 3500 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC UPS Galaxy: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 48fa5f120bd5495185a9d6f86fc823fd + expression: 'last(/APC UPS Galaxy 3500 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC UPS Galaxy: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: b0652e627c10477c9e61786d85560d93 + expression: 'last(/APC UPS Galaxy 3500 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC UPS Galaxy: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: a191d2ff066e4f4ba04aede67cd6876d + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 463ed9f01f3a4cf6ba91f2707baded15 + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: e2200965a13541b1a100e4880d8363ff + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 492835d959d644d7b95fc480cba5d3dc + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 55acc85739e04ebea3414059907ef2e4 + expression: 'last(/APC UPS Galaxy 3500 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC UPS Galaxy: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: e8753aa5ca16449c8dc21af6c8c2a727 + expression: 'last(/APC UPS Galaxy 3500 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC UPS Galaxy: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: d16c60a30b5d46459237eef4df38df9f + expression: 'last(/APC UPS Galaxy 3500 by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC UPS Galaxy: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 2cf2d697c95845ba8ec61af2ec698f4c + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: f16f2ab100614ae6bccf66e5a840c7db + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: 7c0490500bed4258a8663777cd62e378 + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 7356945fc0e94026a2ca04d297fdf953 + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 1824f0be30284d13bad9f895f7adaa0e + expression: 'min(/APC UPS Galaxy 3500 by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Galaxy 3500 by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC UPS Galaxy: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC UPS Galaxy: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 518ca26562f04d7b8e5af9d26317d138 + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: c3888f41e7f246b1a30d21325f814695 + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 3eb001cece8340d59cd0e7f59812f149 + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: f09e23dcb5b24170b356556a36bb39cc + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 675dc7c59e974f7eadd5d1562dec00ce + expression: 'min(/APC UPS Galaxy 3500 by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Galaxy 3500 by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC UPS Galaxy: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC UPS Galaxy: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + - tag: target + value: apc-ups-galaxy-3500 + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: e9b5ac78d15147af9c6ea4b9d44ed57c + name: 'APC UPS Galaxy 3500: General' + pages: + - name: 'APC UPS Galaxy 3500: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Galaxy 3500 by SNMP' + name: 'APC UPS Galaxy 3500: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Galaxy 3500 by SNMP' + name: 'APC UPS Galaxy 3500: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Galaxy 3500 by SNMP' + name: 'APC UPS Galaxy 3500: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 30a78904cbc94fc58609dc1a11aa48ef + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: ace379c23ae247f3b92ccffb9eef920c + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: 19686fc030ee4c6bb69aacd3b9c735ca + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: 80593b554d0a431aa89a0c4960f8565c + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: f41b7d5469e64557ab0cdb81526aeac0 + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: edd7578bf71146dd88770a39eec537e0 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 5c50881846c649dbb47adcfb3dfc7d68 + expression: | + (last(/APC UPS Galaxy 3500 by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC UPS Galaxy 3500 by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC UPS Galaxy 3500 by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC UPS Galaxy 3500 by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC UPS Galaxy: Host has been restarted' + event_name: 'APC UPS Galaxy: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC UPS Galaxy: No SNMP data collection' + expression: 'max(/APC UPS Galaxy 3500 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: c4f0ae3090394d1d8918227f1a002702 + name: 'APC UPS Galaxy 3500: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC UPS Galaxy 3500 by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: d8c7c0451bfd40bf9feb085fb6c5fcf0 + name: 'APC UPS Galaxy 3500: Output' + graph_items: + - color: 199C0D + item: + host: 'APC UPS Galaxy 3500 by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC UPS Galaxy 3500 by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: ad9f9b407ae24dd8ba7d2a652bb21fe7 + name: 'APC UPS Galaxy 3500: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC UPS Galaxy 3500 by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC UPS Galaxy 3500 by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/APC_UPS_Symmetra_LX_by_SNMP.yaml b/APC_UPS_Symmetra_LX_by_SNMP.yaml new file mode 100644 index 0000000..2044f6f --- /dev/null +++ b/APC_UPS_Symmetra_LX_by_SNMP.yaml @@ -0,0 +1,1555 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: 0b9a899ff8f1467c9fdf999d02b9fd77 + template: 'APC UPS Symmetra LX by SNMP' + name: 'APC UPS Symmetra LX by SNMP' + description: | + Template Power APC UPS Symmetra LX + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: 560d838206844447b8f79fd4500557b2 + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: fdece80f2fc44ac1974fafe190ce186f + expression: 'last(/APC UPS Symmetra LX by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC UPS Symmetra: Battery has low capacity' + event_name: 'APC UPS Symmetra: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 3fea9d328d5342b5bae6b643a0b45495 + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: f4bd3a4a637640e29f50ebd36fb510e5 + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 731d350450f742d880d81ff2be69e67e + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: a1bd434a249b48b2ac0ef69ede417a72 + expression: 'last(/APC UPS Symmetra LX by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC UPS Symmetra: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 8340b775b76f4e8aad6d3984c63632e9 + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: c1d818ee115343c8bb41bedb8de7f2bd + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 955d79a0cf5447dd9a11d4608758e983 + expression: 'last(/APC UPS Symmetra LX by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC UPS Symmetra: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 3ca8156ecc1c4ee4b5623c4a085b993f + expression: 'last(/APC UPS Symmetra LX by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC UPS Symmetra: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: 6d581eae836342bb8280eb09d7894533 + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: 5b43659a10644a51861282bc72116f9f + expression: 'min(/APC UPS Symmetra LX by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC UPS Symmetra: Battery has high temperature' + event_name: 'APC UPS Symmetra: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: ab0f5d86a40b421ba136506f7854bbbd + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 13c0d202d19f4b64a52141062c4be6bb + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 05ccf5bd85414ee9b5860c80f6e8323f + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 94a5c26b89e2416f96b61bbfc6e60a97 + expression: 'min(/APC UPS Symmetra LX by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC UPS Symmetra LX by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC UPS Symmetra LX by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC UPS Symmetra: Unacceptable input frequency' + event_name: 'APC UPS Symmetra: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 5764182c547143b3b044ec1adb54c1ce + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 2b640b94d48446609802ce6e57c7bd46 + expression: 'min(/APC UPS Symmetra LX by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC UPS Symmetra LX by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Symmetra LX by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC UPS Symmetra: Unacceptable input voltage' + event_name: 'APC UPS Symmetra: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: bbb33508be95488680bcb644a44626ef + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: d27e991fc0f64b4f9704fb8183567e8d + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 34562b5c734d492c89c386902dfd6e90 + expression: 'min(/APC UPS Symmetra LX by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC UPS Symmetra: Output load is high' + event_name: 'APC UPS Symmetra: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 978a7ee6923c40cd8097afb60c81244f + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 6ade2b9fb9ad432596d16b3df6237ec4 + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC UPS Symmetra: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: da9a0fa7669e454b8ba44c0458a94ea8 + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC UPS Symmetra: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 01a2bcb5f20b4fe889a48e4bed2a2a63 + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC UPS Symmetra: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: d0b154dd92424af8bb841d91d4e7ddd5 + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC UPS Symmetra: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: afc071d0ccfb4226a3c5ee3058270937 + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC UPS Symmetra: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 12259f4a961a40b39de12d0202d41c56 + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC UPS Symmetra: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: ef9d1e4b1ec244f6bcf36d19a9e7c9c7 + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC UPS Symmetra: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: c673928e7b764b5db0fa3168edd2cc67 + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC UPS Symmetra: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: c9b24aa16e124d8c9cd6cfb188ded816 + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC UPS Symmetra: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 02904426801d4d42b3f634267f8697e7 + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC UPS Symmetra: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: fa08f8a60c2c4d88a3f9ebf317fcd06e + expression: 'last(/APC UPS Symmetra LX by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC UPS Symmetra: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 9cf495d14fdf4059b6c35e7857d7a18c + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 102179b315b548e289df3459bc5860c1 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 8dd800fbbcde431aa421eeb5a33eb798 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e8c576f27f4c49ef9acd1ba7198ffbb6 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e5a92d45430b4bd6bdef42870141d141 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 6a06715ef4c44534a0ebc45f4e5adb5b + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 64d56d199021432886452fff5a4c6d22 + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: b15628c68d4c4e8ca761ad9fa7e40a1c + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 61d0836efd33437894e1edd595373f1e + expression: 'last(/APC UPS Symmetra LX by SNMP/system.name[sysName.0],#1)<>last(/APC UPS Symmetra LX by SNMP/system.name[sysName.0],#2) and length(last(/APC UPS Symmetra LX by SNMP/system.name[sysName.0]))>0' + name: 'APC UPS Symmetra: System name has changed' + event_name: 'APC UPS Symmetra: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 0810681a8ae74ad8b28ea38119a93f59 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9f858f7eaed545b8a35ac24e858b0826 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 3f61bd561e7d42fbb55b71df9ea3b5b1 + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 9562f60b1cbd4fe08614221e69efd811 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: aeaaa7e2bd2d46a481f9d8b33ec18cb5 + expression: 'max(/APC UPS Symmetra LX by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC UPS Symmetra: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 35a885d8f181416db86f2ffe73a30f7f + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: b0b3bb219c534b40ad07f89ac8c43797 + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 168bfbfc58ca46509caf54ae3562f0bc + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: 3d2e62971cfb4b0a92b51ece740e1a58 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: b49b4836472f45e3b4947048dcd64cf8 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 2ea1a8d2bd3746dabafed72e1f6216fd + expression: 'find(/APC UPS Symmetra LX by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: df73a5fd0d964c67857178a936c2dc7d + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 3870634ad8c1414dabeebc10c510fba3 + expression: 'find(/APC UPS Symmetra LX by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: 18c46e7d50ee4eefb669705d62e2224c + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 730bdb68d90f4bc6aaf6cb22e04e1845 + expression: 'min(/APC UPS Symmetra LX by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 5fadf217f7444f58ba3dca52bc6cff76 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 598521a7c59d425d9deb58c9829e344e + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 2db30af657574f8f9390002f94b7e249 + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 6182750c55f24110b076d95c2cdbd1fa + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 97b4078788d244d0b501e9465c659ff7 + expression: 'last(/APC UPS Symmetra LX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 86cd9908372045618672d6ff82bca705 + expression: 'last(/APC UPS Symmetra LX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: 4ba13efc27da411785410109340b6a26 + expression: 'last(/APC UPS Symmetra LX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: fc394520f4964a86ac93e87da2fc541b + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 14e6acae826e4e87b68c04beee67a5cb + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 5f5df15d6cc4455083f9fa6932d86656 + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: ecc2e5c49b004027bb9ccd5498e3d169 + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 3155c8cf446c40d896755a25a46ec90b + expression: 'last(/APC UPS Symmetra LX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 9ef9a4dc80c84087b44b5f0e8aa94202 + expression: 'last(/APC UPS Symmetra LX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: 74a3585b0cc74a4887eb3683fb1e6f64 + expression: 'last(/APC UPS Symmetra LX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: f2cd5bb0c8a64b09868ddff9b14e4cbd + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: b4f271299e9a47bf8543863a7d9be479 + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: 161257625bc84427be6cfcd86023c2ec + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 080719150b424168999c21ff597e6948 + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 90e3258375e047b594deb0ecf7300c22 + expression: 'min(/APC UPS Symmetra LX by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Symmetra LX by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 4232ad35daa3403da085f1ba6c7af348 + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: 2834306ba5464ffaa472c0adddc3d829 + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 7b0f22672b38492e92c8551c3009baef + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: a590ab8671574e119fe3335110fdee49 + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: b8c42d5d66d9403eba697920439ae956 + expression: 'min(/APC UPS Symmetra LX by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Symmetra LX by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + - tag: target + value: apc-ups-symmetra-lx + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: ff52b4f8ce124ee78849babbee2797ab + name: 'APC UPS Symmetra LX: General' + pages: + - name: 'APC UPS Symmetra LX: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Symmetra LX by SNMP' + name: 'APC UPS Symmetra LX: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Symmetra LX by SNMP' + name: 'APC UPS Symmetra LX: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Symmetra LX by SNMP' + name: 'APC UPS Symmetra LX: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: aec3362485c242ec928cb8ecfe5e61cf + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: 912d8834176b4fe4a2f6bd12ef3ee3c1 + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: e079fa8cc9614245b0fecf4b8f42feca + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: 24229472978c42739cdbe7aa47e1d34c + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: 8c2c9721615c4408976f7632180ecfe3 + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: 625f28bd49f14e49a1a7a4da01429906 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 9d0c32f93c0c44f69b54c91fabfa1529 + expression: | + (last(/APC UPS Symmetra LX by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC UPS Symmetra LX by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC UPS Symmetra LX by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC UPS Symmetra LX by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC UPS Symmetra: Host has been restarted' + event_name: 'APC UPS Symmetra: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC UPS Symmetra: No SNMP data collection' + expression: 'max(/APC UPS Symmetra LX by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 265f3050b3b94cbeae6fefdae02ea992 + name: 'APC UPS Symmetra LX: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC UPS Symmetra LX by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: 2ef61780d42c4d61bcb89faf08691d08 + name: 'APC UPS Symmetra LX: Output' + graph_items: + - color: 199C0D + item: + host: 'APC UPS Symmetra LX by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC UPS Symmetra LX by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: 4432ed7ca97d4d989b253383037f48ee + name: 'APC UPS Symmetra LX: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC UPS Symmetra LX by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC UPS Symmetra LX by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/APC_UPS_Symmetra_RM_by_SNMP.yaml b/APC_UPS_Symmetra_RM_by_SNMP.yaml new file mode 100644 index 0000000..234c24b --- /dev/null +++ b/APC_UPS_Symmetra_RM_by_SNMP.yaml @@ -0,0 +1,1555 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: 1dac0a88c3774315b90622a48031e369 + template: 'APC UPS Symmetra RM by SNMP' + name: 'APC UPS Symmetra RM by SNMP' + description: | + Template Power APC UPS Symmetra RM + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: e8257d78c2e24e3cb152886d39bca4fe + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: dbfdc4e6eaca4d65adcde13b0682c1c2 + expression: 'last(/APC UPS Symmetra RM by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC UPS Symmetra: Battery has low capacity' + event_name: 'APC UPS Symmetra: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: d26227e3d5754d8493ddaa9c3f5f2b5a + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 138afef586634623974c1cefd45281e9 + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: abb901813d91481baef234496ddece33 + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 0af287bae1ee44ba997a02ae585bdd4b + expression: 'last(/APC UPS Symmetra RM by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC UPS Symmetra: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 80a4e6cf09a147a7b166755aa182fdcd + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 322c3b48bcb74fa5829ef41015308d97 + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: aedb557acbe44390809a27b95919e10f + expression: 'last(/APC UPS Symmetra RM by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC UPS Symmetra: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 1afe1859563f481faa623781028a38ca + expression: 'last(/APC UPS Symmetra RM by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC UPS Symmetra: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: 17ffb34351da46e59d2288cd291a7912 + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: 0b4490eaaf964fdabf228d34d2992d30 + expression: 'min(/APC UPS Symmetra RM by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC UPS Symmetra: Battery has high temperature' + event_name: 'APC UPS Symmetra: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 9ab2309be6cc4eea8697f17e80b015d8 + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 439c87539027462c9b8210a056887885 + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: e16be6095dc24b48bc541325b1675dd0 + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: af166242e3674f2da489a232c7bba6f1 + expression: 'min(/APC UPS Symmetra RM by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC UPS Symmetra RM by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC UPS Symmetra RM by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC UPS Symmetra: Unacceptable input frequency' + event_name: 'APC UPS Symmetra: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: c658b02eea284fcf8e302c20a2256cf0 + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 3b51bbae66914b19a93e7a2da289b056 + expression: 'min(/APC UPS Symmetra RM by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC UPS Symmetra RM by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Symmetra RM by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC UPS Symmetra: Unacceptable input voltage' + event_name: 'APC UPS Symmetra: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 9bcae00165414f4aa15a40bc078aa44d + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 0e5240e578d043609fba4024db8c8df1 + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: a25499c49d0043cda248136eb6307ef9 + expression: 'min(/APC UPS Symmetra RM by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC UPS Symmetra: Output load is high' + event_name: 'APC UPS Symmetra: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 7655b8ff3d5e41f0a5409fcfd646933a + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: f7b0e2f05c9b4b14916f99ecb89fcd49 + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC UPS Symmetra: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 77081726414047a5a1c698fcfbf19e73 + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC UPS Symmetra: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 87beb54ac57848e3896fd715a5918a88 + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC UPS Symmetra: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 5f46c436fab741ec86cb32339e8bd7b4 + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC UPS Symmetra: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: a7457e3d6c6f4e99a3ccc08a1436d34a + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC UPS Symmetra: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 976395b6acea4f5cb4f7f3d4f0bc67af + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC UPS Symmetra: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 72c9677a2157412ebd14004a5e024a3a + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC UPS Symmetra: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 75d189cd8b5944c4b7987931c834e949 + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC UPS Symmetra: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 24e1cfde22da48b0bf28ca2cdf8cd917 + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC UPS Symmetra: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 4fff7b4a29b84cdea245b2704e357f5d + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC UPS Symmetra: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 647178a4cb674815a65517c073b4adee + expression: 'last(/APC UPS Symmetra RM by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC UPS Symmetra: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 8d93b482d7c549f593c41abb9380ce2f + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 39dd21c0f2194acaa9fddbdfccde05dd + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 2d22b58a5c9f4fedbd03862398113546 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 251cc61592f543e3929aef3cb46f1b34 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b3021bc8a0324d4d9683f676131bf136 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 49b8ef5ff3a3400d8f412d4440040461 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: bd0dc104ded94e4cbba3a8557e642caf + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 155feccece4a4625b98efa206ad5e0b1 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: e3cf119c19b54dddb3d26d9b789ea4f5 + expression: 'last(/APC UPS Symmetra RM by SNMP/system.name[sysName.0],#1)<>last(/APC UPS Symmetra RM by SNMP/system.name[sysName.0],#2) and length(last(/APC UPS Symmetra RM by SNMP/system.name[sysName.0]))>0' + name: 'APC UPS Symmetra: System name has changed' + event_name: 'APC UPS Symmetra: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: b4ca2f993709413b9a00fa1389ec9e3c + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f6bd69ea5df144c996f050ded122521e + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 64ab7fd8a79448d580ad24ecf488241c + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: d69889a19b564ed384fc96e8a70971a5 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 56f25581382a43efbddd4aba44aa86b3 + expression: 'max(/APC UPS Symmetra RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC UPS Symmetra: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 82e8f10c883546ef8196e071fdd8df91 + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: 7b7ef64f2c3f4c0abeff433279903426 + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: b615a0d1ef1e49678daa4de77b47623e + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: 28f43e10b50d4709a6790d2f7d0552c2 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: ebaf443cd74f4be282939032a843dcef + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 002caa5fac72437187ab9711eb2fc7ad + expression: 'find(/APC UPS Symmetra RM by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: a415a0d85a1146e6aadfd691fcc5da63 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 9ca2e1e1a81e4e2388f735c03f9bc1de + expression: 'find(/APC UPS Symmetra RM by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: 8d1317fc38034fd78b5cff3b04dce7f1 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b9a868a2f4a0410e9a03744eef9a5515 + expression: 'min(/APC UPS Symmetra RM by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 2694e29b9287464898684b711040d75a + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 3adfddb03546462a9bcfdc5b059a29cc + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: fe2eb706e52849f79781b746db05e753 + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: e80af415f8384d0fa54c6954594b5794 + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 1e6fa00989994e6f885c9ce2fde6ab24 + expression: 'last(/APC UPS Symmetra RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: b8b78dcb3f6d47e583565b7588cf9f4c + expression: 'last(/APC UPS Symmetra RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: ba421cf1871a4bcabb06f92be0a983dc + expression: 'last(/APC UPS Symmetra RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: c2e3e2ea6df84a609acdc3e05d4ea036 + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 8243825c5bbc42639f8796d1082a4a05 + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 22227cb4aa284d9392015e3a2fe20912 + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: a140c9eaef4049278bc5f2bfd28d0339 + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 97ef6f2fc4374174912b16db90b615a8 + expression: 'last(/APC UPS Symmetra RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 39db14da83714689b6bac140a9347c64 + expression: 'last(/APC UPS Symmetra RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: d318122e192a401c95f24ad17d3bda93 + expression: 'last(/APC UPS Symmetra RM by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 69ca20795352489b9efc0a0c0cc1b27f + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 6d6d6b6a71434315a0bbc38b56d47f49 + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: 45def82313f74727826a0db8aa18eecc + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: e6d933f8a79248539fa9b5ce447813b5 + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 341c10188b984ce7aac7bb995847b69e + expression: 'min(/APC UPS Symmetra RM by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Symmetra RM by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: a2da2392f78b4b5ea97370ef0f276973 + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: 16117cb258304fb8bc2660ff4b80cc1c + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 177f5c2dcfac4bb997f778dcd58ba638 + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: cc7c08b1bf924507b6d15cd9105926a5 + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 85551dd4ca0b4ef6994348891ad77b57 + expression: 'min(/APC UPS Symmetra RM by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Symmetra RM by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + - tag: target + value: apc-ups-symmetra-rm + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: c552f644b98249f2980a55fad99572e4 + name: 'APC UPS Symmetra RM: General' + pages: + - name: 'APC UPS Symmetra RM: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Symmetra RM by SNMP' + name: 'APC UPS Symmetra RM: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Symmetra RM by SNMP' + name: 'APC UPS Symmetra RM: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Symmetra RM by SNMP' + name: 'APC UPS Symmetra RM: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 8516e97893ed4f2ebe70766d17eeacde + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: 84387eb0a5ef4523ac5d990eb4a6a796 + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: 58104ecf15d34fe38922f3fe5fa25027 + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: 43715c15fed840fc8e188d062c0ef2da + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: d9b5340729684dd0a450b6de6b14b590 + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: cdf3578a66db4cfda6c36b4bbb295173 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: fb2b4e564040422da234cdb309163b7b + expression: | + (last(/APC UPS Symmetra RM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC UPS Symmetra RM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC UPS Symmetra RM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC UPS Symmetra RM by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC UPS Symmetra: Host has been restarted' + event_name: 'APC UPS Symmetra: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC UPS Symmetra: No SNMP data collection' + expression: 'max(/APC UPS Symmetra RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: ea7ef2682549402eb23b0d9df313ee25 + name: 'APC UPS Symmetra RM: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC UPS Symmetra RM by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: d340e1d477bc4bc4b099c94b1fe6d2da + name: 'APC UPS Symmetra RM: Output' + graph_items: + - color: 199C0D + item: + host: 'APC UPS Symmetra RM by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC UPS Symmetra RM by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: 42f5e7154634464fabafe352508b50db + name: 'APC UPS Symmetra RM: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC UPS Symmetra RM by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC UPS Symmetra RM by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/APC_UPS_Symmetra_RX_by_SNMP.yaml b/APC_UPS_Symmetra_RX_by_SNMP.yaml new file mode 100644 index 0000000..ef02470 --- /dev/null +++ b/APC_UPS_Symmetra_RX_by_SNMP.yaml @@ -0,0 +1,1555 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: 4ffb0f9103084384a98379ed533865e9 + template: 'APC UPS Symmetra RX by SNMP' + name: 'APC UPS Symmetra RX by SNMP' + description: | + Template Power APC UPS Symmetra RX + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: 0f45eeef24724e3b89760b04bfd037ae + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 5626e87891ec4c28a17a6b5965b47e46 + expression: 'last(/APC UPS Symmetra RX by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC UPS Symmetra: Battery has low capacity' + event_name: 'APC UPS Symmetra: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: a40074f9db134bc8bc4bd9800906137d + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: c069bb03f58a47b981448a33a1663463 + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 810c9cd371c14e44b8670ad3f4e003d5 + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: a74eccd4442c401a98ac3c80dd3baa13 + expression: 'last(/APC UPS Symmetra RX by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC UPS Symmetra: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 849b9ffa0c0b4dd59e7c5a544a135fa3 + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: a5ccdee4e5ff49f183adab8a283e88a0 + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 107454c372cb413bad4d4a807c254ae0 + expression: 'last(/APC UPS Symmetra RX by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC UPS Symmetra: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 4a410279dba04d37924eade4bb927228 + expression: 'last(/APC UPS Symmetra RX by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC UPS Symmetra: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: 59cc2d65eca142adb00ec80e237b134e + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: 225ccc34992f4c718277b436bfecdc72 + expression: 'min(/APC UPS Symmetra RX by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC UPS Symmetra: Battery has high temperature' + event_name: 'APC UPS Symmetra: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: ae8516a825b94d90b267371934bc452f + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 598c1b4cc957455b84c2edcbe844e169 + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 8ab48c798ac94773b37228a8f725efd0 + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 03b674d215604dc8acc3449610b05878 + expression: 'min(/APC UPS Symmetra RX by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC UPS Symmetra RX by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC UPS Symmetra RX by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC UPS Symmetra: Unacceptable input frequency' + event_name: 'APC UPS Symmetra: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 5478b17ba84c4f12bc1ffa7dfc507ae1 + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: bf495f3ffefd4e65af488d91b360539c + expression: 'min(/APC UPS Symmetra RX by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC UPS Symmetra RX by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Symmetra RX by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC UPS Symmetra: Unacceptable input voltage' + event_name: 'APC UPS Symmetra: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 71cfc894a29f4bffb1f4199e0010aea0 + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 3ac052b6b4e241d9af470b70212ab8d3 + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: f2790aa869724c5bbeff6031561f2ca4 + expression: 'min(/APC UPS Symmetra RX by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC UPS Symmetra: Output load is high' + event_name: 'APC UPS Symmetra: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: f8e4bcaa71e045e09af82ee739202778 + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 48a2bee152664ede98bed55c05cc437d + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC UPS Symmetra: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: ccd80d5877e0401b8f56f22ca2da2f94 + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC UPS Symmetra: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: e54fd69ac4354716a107d4d094b387f0 + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC UPS Symmetra: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 92df44ef170d471394f4cf8ff6882c39 + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC UPS Symmetra: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: b6f6c160466e43d8b7f210b2efdd8ca3 + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC UPS Symmetra: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 7d6323e1a03a48efb9f349ecd7e10153 + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC UPS Symmetra: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 18a31f11313b47c8ab9e9cd4791c1532 + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC UPS Symmetra: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 142e25b05d1547f0a683f6caee773ef5 + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC UPS Symmetra: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: b6e22e8295c84fbebb8061c96ddd75f9 + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC UPS Symmetra: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 1c97c8ca6d6640fe829bf896f989bd91 + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC UPS Symmetra: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 0683dbba9f4b4480ba15e040b8b83211 + expression: 'last(/APC UPS Symmetra RX by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC UPS Symmetra: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: e7969358cce84f3eb749b1c43d96c583 + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: c892c7f2ddcd4e15b1d5ab907cd70dcf + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 1de71b45323b4eb5bc1a38315d56ce58 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9bca97c1e308421b82f4769151f5177e + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c7522be948bd4f97a47d59cf1e281c56 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: be1280a6b2d84393ad001113bf7c80f2 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 5c5b88814e4c4dc9b90ed4a5e49a91ca + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 3c521e1e94da4dd2bd71719bf20e14b8 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 5224767a1bee42738c49361ddabfed4b + expression: 'last(/APC UPS Symmetra RX by SNMP/system.name[sysName.0],#1)<>last(/APC UPS Symmetra RX by SNMP/system.name[sysName.0],#2) and length(last(/APC UPS Symmetra RX by SNMP/system.name[sysName.0]))>0' + name: 'APC UPS Symmetra: System name has changed' + event_name: 'APC UPS Symmetra: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 4aac942cab30432d81c4df32e01af5e2 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 0d3fcfce413a4f6aaaa2390183ab0c82 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 0e72609b44094aff8acfa58b63ca97ba + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 582ff80b2df049b8acf233ad4dbfe1f1 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c0ad0941746546aeb6de2fee087c8252 + expression: 'max(/APC UPS Symmetra RX by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC UPS Symmetra: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: eddb568fd0e34398bcee7d39a6f76319 + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: 11c16d0e18a745679bcf8546cb8f0641 + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 0c31de1650b94f8cabef339e2ef009e3 + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: 6bd2d90f306e4252b5fc44eab860f4ab + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: c4a7061be8f64f398ad0f3c52db29bbd + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 3a48257337a84a2296db92410a8aed8c + expression: 'find(/APC UPS Symmetra RX by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: 8f5b3a61acad491f8ca6860f6201252d + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 4498d376328e405bad7da5f1832cde8a + expression: 'find(/APC UPS Symmetra RX by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: 346f2ab5b340401880c63a6cb9eec949 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: f710e2b952054f35ab6e3e8e90ab7f83 + expression: 'min(/APC UPS Symmetra RX by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC UPS Symmetra: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 230fc138d8f64c4f9eeee438d42b519e + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 93941e38fd2d4b48bd8b50179692cb56 + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 15f23c88f9b24580add63b69fb8a41de + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 230f3e596bbc4cb6961eda599da74f5e + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 0de21ba7495d41f4834170122620c37d + expression: 'last(/APC UPS Symmetra RX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 69fbc11262f74fdfb49da43bb59c1810 + expression: 'last(/APC UPS Symmetra RX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: 0ce46cad353c4299ad5540a831b5c467 + expression: 'last(/APC UPS Symmetra RX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: f777176e1d7b4e328209aeeced8e680b + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 7cd4c33584004a6d811478e8a83e0898 + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 3a933ac0f9b2425d9929ed244a3ce61a + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: b8a37686d5374b4fa05717987e54c2f6 + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: f27f80f391a04927bb138ba66d48d364 + expression: 'last(/APC UPS Symmetra RX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: a84e1b5140b643ad8bee020d74821255 + expression: 'last(/APC UPS Symmetra RX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: b67ed4a3ce5a49e4ac4079e258d7fe7c + expression: 'last(/APC UPS Symmetra RX by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC UPS Symmetra: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 15e3cf28f89043029e722b1813737c6c + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 88032aa9a832464ca2a077271113e7c9 + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: d6afc20571ce43fa9861ef6c1e17d6c8 + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 6993631adffb41fabc7995bd9158e448 + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 212cf86650fc4c189115da565111f5d3 + expression: 'min(/APC UPS Symmetra RX by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Symmetra RX by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 262343758e9649a8a6fe2b77631f66df + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: 6bed63601e6b426799b860dc5e2ea8b2 + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 5ec8aae1e2b24350b005d0177b164e6b + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 3da95223adfc4d638406c6908bba7063 + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 47069f8d431f45d490674d7ba01d2bb2 + expression: 'min(/APC UPS Symmetra RX by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS Symmetra RX by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC UPS Symmetra: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + - tag: target + value: apc-ups-symmetra-rx + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: d7a209f85029417b9d11a32d808fef96 + name: 'APC UPS Symmetra RX: General' + pages: + - name: 'APC UPS Symmetra RX: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Symmetra RX by SNMP' + name: 'APC UPS Symmetra RX: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Symmetra RX by SNMP' + name: 'APC UPS Symmetra RX: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS Symmetra RX by SNMP' + name: 'APC UPS Symmetra RX: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: e2877a188bd24918992f8c7878550924 + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: 33d83523ceee4f3e916c885ebb33e8b9 + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: c50ef9a9476d47e6935a6026bbb24d06 + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: 96a985d8351f48be86c5b00472b48feb + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: 160f7a39770d492c93403097650c1568 + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: cc7a368057bc47eeb834dc9363183c59 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 990c0545543c42a78022589838a8a1ff + expression: | + (last(/APC UPS Symmetra RX by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC UPS Symmetra RX by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC UPS Symmetra RX by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC UPS Symmetra RX by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC UPS Symmetra: Host has been restarted' + event_name: 'APC UPS Symmetra: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC UPS Symmetra: No SNMP data collection' + expression: 'max(/APC UPS Symmetra RX by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 69ef37f00b0249bb98f381b483280dd1 + name: 'APC UPS Symmetra RX: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC UPS Symmetra RX by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: 782c8a349b7f4f93a65aeaa058454b14 + name: 'APC UPS Symmetra RX: Output' + graph_items: + - color: 199C0D + item: + host: 'APC UPS Symmetra RX by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC UPS Symmetra RX by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: 8bc9d8e4bb284134b67498daccb85d5e + name: 'APC UPS Symmetra RX: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC UPS Symmetra RX by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC UPS Symmetra RX by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/APC_UPS_by_SNMP.yaml b/APC_UPS_by_SNMP.yaml new file mode 100644 index 0000000..d62ce22 --- /dev/null +++ b/APC_UPS_by_SNMP.yaml @@ -0,0 +1,1563 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 3dcd5bbe90534f9e8eb5c2d53756af63 + name: Templates/Power + templates: + - uuid: 3ec55c9966624ef5bc1b50502812d581 + template: 'APC UPS by SNMP' + name: 'APC UPS by SNMP' + description: | + Template Power APC UPS + + MIBs used: + HOST-RESOURCES-MIB + PowerNet-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420730-discussion-thread-for-official-zabbix-template-apc-ups + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Power + items: + - uuid: 96898d48b27946bfa9a623d7d0b028be + name: 'Battery capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.1.0]' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The remaining battery capacity expressed as + percentage of full capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: aa0bbfb321d440438fb421825f23e140 + expression: 'last(/APC UPS by SNMP/battery.capacity[upsHighPrecBatteryCapacity]) < {$BATTERY.CAPACITY.MIN.WARN}' + name: 'APC UPS: Battery has low capacity' + event_name: 'APC UPS: Battery has low capacity (below {$BATTERY.CAPACITY.MIN.WARN}%)' + opdata: 'Current capacity: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 390e33a7623d41d2a8a67752c6d5c733 + name: 'External battery packs count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.5.0]' + key: 'battery.external_packs_count[upsAdvBatteryNumOfBattPacks]' + delay: 1h + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS. If + the UPS does not use smart cells then the agent reports + ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 3d69adaa88e64b8084d38c1482815bf2 + name: 'Battery last replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.3.0]' + key: 'battery.last_replace_date[upsBasicBatteryLastReplaceDate]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The date when the UPS system's batteries were last replaced + in mm/dd/yy (or yyyy) format. For Smart-UPS models, this value + is originally set at the factory. When the UPS batteries + are replaced, this value should be reset by the administrator. + For Symmetra PX 250/500 this OID is read-only and is configurable in the local display only. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: eb74b3671b4d4335ad92bd3b027547b0 + name: 'Battery replace indicator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.4.0]' + key: 'battery.replace_indicator[upsAdvBatteryReplaceIndicator]' + description: | + MIB: PowerNet-MIB + Indicates whether the UPS batteries need replacement. + valuemap: + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 7e40918732e74b5e8bd854422989e77d + expression: 'last(/APC UPS by SNMP/battery.replace_indicator[upsAdvBatteryReplaceIndicator])=2' + name: 'APC UPS: Battery needs replacement' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: f52a3e2ae08c4b2996249c5601b4098d + name: 'Battery runtime remaining' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.3.0]' + key: 'battery.runtime_remaining[upsAdvBatteryRunTimeRemaining]' + value_type: FLOAT + units: s + description: | + MIB: PowerNet-MIB + The UPS battery run time remaining before battery + exhaustion. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: f4106603e47e40548592d60a7b8b3148 + name: 'Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.1.1.0]' + key: 'battery.status[upsBasicBatteryStatus]' + description: | + MIB: PowerNet-MIB + The status of the UPS batteries. A batteryLow(3) value + indicates the UPS will be unable to sustain the current + load, and its services will be lost if power is not restored. + The amount of run time in reserve at the time of low battery + can be configured by the upsAdvConfigLowBatteryRunTime. + A batteryInFaultCondition(4)value indicates that a battery + installed has an internal error condition. + valuemap: + name: 'PowerNet-MIB::upsBasicBatteryStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: 7ae03f3f307b4f11ad2bc0548911cbd3 + expression: 'last(/APC UPS by SNMP/battery.status[upsBasicBatteryStatus])=4' + name: 'APC UPS: Battery has an internal error condition' + priority: AVERAGE + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 1282326bb61d45d88671bbbde3fab8ff + expression: 'last(/APC UPS by SNMP/battery.status[upsBasicBatteryStatus])=3' + name: 'APC UPS: Battery is Low' + priority: AVERAGE + description: 'The UPS will be unable to sustain the current load, and its services will be lost if power is not restored.' + tags: + - tag: scope + value: capacity + - uuid: 7c35a9646eed4e4581edc51d42a9604c + name: 'Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.2.0]' + key: 'battery.temperature[upsHighPrecBatteryTemperature]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + triggers: + - uuid: 36a14fe061d1433e9875373307a4e0f4 + expression: 'min(/APC UPS by SNMP/battery.temperature[upsHighPrecBatteryTemperature],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC UPS: Battery has high temperature' + event_name: 'APC UPS: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: b78d2e9160c74f328b8123ba2031d7bf + name: 'Battery voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.4.0]' + key: 'battery.voltage[upsHighPrecBatteryActualVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The actual battery bus voltage in Volts. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 6ce40beab0b44248868652b0ed543afc + name: 'Input fail cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.2.5.0]' + key: 'input.fail[upsAdvInputLineFailCause]' + description: | + MIB: PowerNet-MIB + The reason for the occurrence of the last transfer to UPS + battery power. The variable is set to: + - noTransfer(1) -- if there is no transfer yet. + - highLineVoltage(2) -- if the transfer to battery is caused + by an over voltage greater than the high transfer voltage. + - brownout(3) -- if the duration of the outage is greater than + five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - blackout(4) -- if the duration of the outage is greater than five + seconds and the line voltage is between 40% of the rated + output voltage and ground. + - smallMomentarySag(5) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and the low transfer voltage. + - deepMomentarySag(6) -- if the duration of the outage is less + than five seconds and the line voltage is between 40% of the + rated output voltage and ground. The variable is set to + - smallMomentarySpike(7) -- if the line failure is caused by a + rate of change of input voltage less than ten volts per cycle. + - largeMomentarySpike(8) -- if the line failure is caused by + a rate of change of input voltage greater than ten volts per cycle. + - selfTest(9) -- if the UPS was commanded to do a self test. + - rateOfVoltageChange(10) -- if the failure is due to the rate of change of + the line voltage. + valuemap: + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 2c0b565f2b6a44a2a91cc61fd220f056 + name: 'Input frequency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.4.0]' + key: 'input.frequency[upsHighPrecInputFrequency]' + value_type: FLOAT + units: Hz + description: | + MIB: PowerNet-MIB + The current input frequency to the UPS system in Hz. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: 1ddd2699b87f452a8893f75f805c0a81 + expression: 'min(/APC UPS by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > 0 and (min(/APC UPS by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) > {$UPS.INPUT_FREQ.MAX.WARN} or max(/APC UPS by SNMP/input.frequency[upsHighPrecInputFrequency],{$TIME.PERIOD}) < {$UPS.INPUT_FREQ.MIN.WARN})' + name: 'APC UPS: Unacceptable input frequency' + event_name: 'APC UPS: Unacceptable input frequency (out of range {$UPS.INPUT_FREQ.MIN.WARN}-{$UPS.INPUT_FREQ.MAX.WARN}Hz for {$TIME.PERIOD})' + opdata: 'Current frequency: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: de84a2fbbb464023a7b73e01895a9e9d + name: 'Input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.3.3.1.0]' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The current utility line voltage in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: f6527c4fed3d41168be23f9367f18405 + expression: 'min(/APC UPS by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > 0 and (min(/APC UPS by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS by SNMP/input.voltage[upsHighPrecInputLineVoltage],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN})' + name: 'APC UPS: Unacceptable input voltage' + event_name: 'APC UPS: Unacceptable input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: a332c87a948045beae13f74984245b86 + name: 'Output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.4.0]' + key: 'output.current[upsHighPrecOutputCurrent]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The current in amperes drawn by the load on the UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: c17c7fd7e6504592869dc14c4a002254 + name: 'Output load' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.3.0]' + key: 'output.load[upsHighPrecOutputLoad]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The current UPS load expressed as percentage + of rated capacity. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + triggers: + - uuid: ebef08a42d1e47ffa82ea586c1a5b3d6 + expression: 'min(/APC UPS by SNMP/output.load[upsHighPrecOutputLoad],{$TIME.PERIOD}) > {$UPS.OUTPUT.MAX.WARN}' + name: 'APC UPS: Output load is high' + event_name: 'APC UPS: Output load is high (over {$UPS.OUTPUT.MAX.WARN}% for {$TIME.PERIOD})' + opdata: 'Current load: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'A battery installed has an internal error condition.' + tags: + - tag: scope + value: notice + - uuid: 0ae99a18a5c24fb0b812353d25459e1f + name: 'Output status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.1.1.0]' + key: 'output.status[upsBasicOutputStatus]' + description: | + MIB: PowerNet-MIB + The current state of the UPS. If the UPS is unable to + determine the state of the UPS this variable is set + to unknown(1). + During self-test most UPSes report onBattery(3) but + some that support it will report onBatteryTest(15). + To determine self-test status across all UPSes, refer + to the upsBasicStateOutputState OID. + valuemap: + name: 'PowerNet-MIB::upsBasicOutputStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + triggers: + - uuid: c0e0b1db9a1f41379c340c122426778d + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=16' + name: 'APC UPS: UPS is Emergency Static Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 381a6a75d9084ff1bfcc30b6870a2682 + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=10' + name: 'APC UPS: UPS is Hardware Failure Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: da75b5277ceb423fac8d90b58d49c21f + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=7' + name: 'APC UPS: UPS is Off' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: b0330f707fc64605934ed95233bd2246 + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=3' + name: 'APC UPS: UPS is on battery' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: f8d75a2fdb6942e6b63831d206c78e56 + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=4' + name: 'APC UPS: UPS is on Smart Boost' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 8eb59b4873e14acfa8e05791ed30c9d1 + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=12' + name: 'APC UPS: UPS is On Smart Trim' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: e06247b357b849d3ad1886f797705320 + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=8' + name: 'APC UPS: UPS is Rebooting' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 9b4424babc284dcabfb44dc725c03f40 + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=11' + name: 'APC UPS: UPS is Sleeping Until Power Return' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 9ac2faafee484894bb304da02d6ab0b2 + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=6' + name: 'APC UPS: UPS is Software Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: ce16d33b10e74b129d22378f96ede052 + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=9' + name: 'APC UPS: UPS is Switched Bypass' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: aa84fc5fd4434101a481481beb616a7c + expression: 'last(/APC UPS by SNMP/output.status[upsBasicOutputStatus])=5' + name: 'APC UPS: UPS is Timed Sleeping' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 37d7eda5664c4ae2b4a126c60a8eb40b + name: 'Output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.4.3.1.0]' + key: 'output.voltage[upsHighPrecOutputVoltage]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage of the UPS system in VAC. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 2c52ba1a964a40e1b4a75582ee6ad43b + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 299e4e11e0374888877e1dc386409726 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ed42f6f2d8c24176b53f38e0a857a129 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b3d5eea37f934efdac4885bcadc73b9b + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 445d7a843340424ab7c09ab001d5865c + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 6030dbee3cc24dbeb15e4b802e89cbc8 + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.1.1.0]' + key: 'system.model[upsBasicIdentModel]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The UPS model name (e.g. 'APC Smart-UPS 600'). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 45a80892f41b411e8457f99b069b59ee + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By + convention, this is the node's fully-qualified domain name. If the name is unknown, + the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: facbfd1f8bb04401b563c162d7fe13a5 + expression: 'last(/APC UPS by SNMP/system.name[sysName.0],#1)<>last(/APC UPS by SNMP/system.name[sysName.0],#2) and length(last(/APC UPS by SNMP/system.name[sysName.0]))>0' + name: 'APC UPS: System name has changed' + event_name: 'APC UPS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 701fa778bc03444aad94343d0dbe048e + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 6780faad9fc9492f9f92915db5161e43 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management + subsystem contained in the entity. This value is allocated within the SMI enterprises + subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what + kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was + assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 + to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 1df309508ac9433397f88120b2895451 + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.1.2.3.0]' + key: 'system.sn[upsAdvIdentSerialNumber]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + An 8-character string identifying the serial number of + the UPS internal microprocessor. This number is set at + the factory. NOTE: This number does NOT correspond to + the serial number on the rear of the UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: ca3275f69f3c4e7c9c71108451c0b64f + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4572d871f1d944bb855b93fdc6de5e88 + expression: 'max(/APC UPS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'APC UPS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 52345d2975214002bdd05a24e43484a8 + name: 'External bad battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6]' + key: battery.packs.bad.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#EXTERNAL_PACKS}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovery of the number of external defective battery packs.' + item_prototypes: + - uuid: c4dccc96218448d696952f6ea5d1f24b + name: '{#SNMPINDEX}: External battery packs bad' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.2.6.0]' + key: 'battery.external_packs_bad[upsAdvBatteryNumOfBadBattPacks.{#SNMPINDEX}]' + delay: 15m + description: | + MIB: PowerNet-MIB + The number of external battery packs connected to the UPS that + are defective. If the UPS does not use smart cells then the + agent reports ERROR_NO_SUCH_NAME. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: f7eb1c82c6694e72b7d28ba4d71d8741 + name: 'External battery packs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CARTRIDGE_STATUS},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7,{#BATTERY_PACK},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.1,{#CARTRIDGE_INDEX},1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.2]' + key: battery.packs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CARTRIDGE_STATUS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + item_prototypes: + - uuid: a168ef9da6504b31a8234b272f1a1a80 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery estimated replace date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.8.{#SNMPINDEX}]' + key: 'battery.estimated_replace_date[upsHighPrecBatteryPackCartridgeReplaceDate.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge estimated battery replace date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - tag: component + value: power + - uuid: fd71d1ceaf524aeaac38de5f63d101fd + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery pack cartridge health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.7.{#SNMPINDEX}]' + key: 'battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: a248194aa30645c5918278b83944b20e + expression: 'find(/APC UPS by SNMP/battery.pack.cartridge_health[upsHighPrecBatteryPackCartridgeHealth.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0)[0|1]{15}$")=1' + name: 'APC UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery lifetime is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge health. + bit 0 Battery lifetime okay + bit 1 Battery lifetime near end, order replacement cartridge + bit 2 Battery lifetime exceeded, replace battery + bit 3 Battery lifetime near end acknowledged, order replacement cartridge + bit 4 Battery lifetime exceeded acknowledged, replace battery + bit 5 Battery measured lifetime near end, order replacement cartridge + bit 6 Battery measured lifetime near end acknowledged, order replacement cartridge + tags: + - tag: scope + value: notice + - uuid: fa05e062413a4c1fba4d35e3006b91f4 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.10.{#SNMPINDEX}]' + key: 'battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery cartridge status. + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 834b1a48cbab46a3bfb0209fb4302674 + expression: 'find(/APC UPS by SNMP/battery.pack.status[upsHighPrecBatteryPackCartridgeStatus.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],,"regexp","^(0{16})$")=0' + name: 'APC UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery status is not okay' + opdata: 'Current bit set: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + The battery cartridge status: + bit 0 Disconnected + bit 1 Overvoltage + bit 2 NeedsReplacement + bit 3 OvertemperatureCritical + bit 4 Charger + bit 5 TemperatureSensor + bit 6 BusSoftStart + bit 7 OvertemperatureWarning + bit 8 GeneralError + bit 9 Communication + bit 10 DisconnectedFrame + bit 11 FirmwareMismatch + tags: + - tag: scope + value: notice + - uuid: 017347865030426e9dde74e9bcf38c76 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.5.{#SNMPINDEX}]' + key: 'battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The current internal UPS temperature in Celsius. + Temperatures below zero read as 0. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 80f084121d56464f90e4a3ef9e198889 + expression: 'min(/APC UPS by SNMP/battery.temperature[upsHighPrecBatteryPackTemperature.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}],{$TIME.PERIOD}) > {$BATTERY.TEMP.MAX.WARN}' + name: 'APC UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature' + event_name: 'APC UPS: {#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Battery has high temperature (over {$BATTERY.TEMP.MAX.WARN}℃ for {$TIME.PERIOD})' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 354c1d6766d6453caeb382cf7ede7951 + name: '{#BATTERY_PACK}.{#CARTRIDGE_INDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.2.3.10.2.1.4.{#SNMPINDEX}]' + key: 'system.sn[upsHighPrecBatteryPackSerialNumber.{#BATTERY_PACK}.{#CARTRIDGE_INDEX}]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: PowerNet-MIB + The battery pack serial number. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 457169b3c43846739614a6ddc7155fda + name: 'External sensor port 1 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR1_NAME},1.3.6.1.4.1.318.1.1.25.1.2.1.3]' + key: external.sensor1.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: ee017a632ee944fe9122e21fa7e7531f + name: '{#EXTERNAL_SENSOR1_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.1.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: 0431cf0a54b449c9b77623b69629920f + name: '{#EXTERNAL_SENSOR1_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 3a40f3cb0a3b411697fe8d37f82404d4 + expression: 'last(/APC UPS by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=3' + name: 'APC UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: 63ba879a2a324ffc958b761f2010ac8e + expression: 'last(/APC UPS by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=4' + name: 'APC UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: dc90cd795879495fa473b71a2ff57b49 + expression: 'last(/APC UPS by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.1.{#SNMPINDEX}])=2' + name: 'APC UPS: {#EXTERNAL_SENSOR1_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: 6de4920e4e87418884a82ff8b40a46ab + name: '{#EXTERNAL_SENSOR1_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.1.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.1.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR1_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 06a853147fe646659d066fff34f67faa + name: 'External sensor port 2 discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#EXTERNAL_SENSOR2_NAME},1.3.6.1.4.1.318.1.1.25.1.2.2.3]' + key: external.sensor2.discovery + delay: 1h + description: uioSensorStatusTable + item_prototypes: + - uuid: 3417b035a4f14ce3992e10029674de8e + name: '{#EXTERNAL_SENSOR2_NAME}: Humidity sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.7.{#SNMPINDEX}]' + key: 'external.sensor.humidity[uioSensorStatusHumidity.2.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The sensor's current humidity reading - a relative humidity + percentage. -1 indicates an invalid reading due to either a + sensor that doesn't read humidity or lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: humidity + - tag: component + value: power + - uuid: d04af1687eb846d18b57af04ab1b594b + name: '{#EXTERNAL_SENSOR2_NAME}: Sensor alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.9.{#SNMPINDEX}]' + key: 'external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}]' + description: | + MIB: PowerNet-MIB + The alarm status of the sensor. Possible values: + uioNormal (1), + uioWarning (2), + uioCritical (3), + sensorStatusNotApplicable (4) + valuemap: + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: power + trigger_prototypes: + - uuid: 8a62bc38e49e4779938c45839a190856 + expression: 'last(/APC UPS by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=3' + name: 'APC UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Critical' + priority: HIGH + description: 'The external sensor has returned a value greater than the critical threshold.' + tags: + - tag: scope + value: notice + - uuid: ca02e8f92e134dce9834bd1d6f3ab469 + expression: 'last(/APC UPS by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=4' + name: 'APC UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Not Applicable' + priority: INFO + description: 'The external sensor does not work or is not connected.' + tags: + - tag: scope + value: notice + - uuid: 36ad29900db7410782daeddb9d7c648f + expression: 'last(/APC UPS by SNMP/external.sensor.status[uioSensorStatusAlarmStatus.2.{#SNMPINDEX}])=2' + name: 'APC UPS: {#EXTERNAL_SENSOR2_NAME}: Sensor has status Warning' + priority: AVERAGE + description: 'The external sensor has returned a value greater than the warning threshold.' + tags: + - tag: scope + value: notice + - uuid: bbf611aad1454b38ad39fa258239394a + name: '{#EXTERNAL_SENSOR2_NAME}: Temperature sensor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.25.1.2.2.6.{#SNMPINDEX}]' + key: 'external.sensor.temperature[uioSensorStatusTemperatureDegC.2.{#SNMPINDEX}]' + value_type: FLOAT + units: ℃ + description: | + MIB: PowerNet-MIB + The sensor's current temperature reading in Celsius. + -1 indicates an invalid reading due to lost communications. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - tag: component + value: temperature + overrides: + - name: Temp + step: '1' + filter: + conditions: + - macro: '{#EXTERNAL_SENSOR2_NAME}' + value: Temp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Humidity + discover: NO_DISCOVER + - uuid: 16e8b3b4d38040a7961b1de4c18a4ea9 + name: 'Input phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.2.3.1.2.1.1]' + key: input.phases.discovery + delay: 1h + description: 'The input phase identifier. OID upsPhaseInputPhaseIndex.1.1' + item_prototypes: + - uuid: a1b8277cd1b248348263c233ab05fd4f + name: '{#PHASEINDEX}: Phase input current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.{#PHASEINDEX}]' + key: 'phase.input.current[upsPhaseInputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The input current in 0.1 amperes, or -0.1 if it's + unsupported by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 40c05eaf739540979d11787a694cb8c9 + name: '{#PHASEINDEX}: Phase input voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The input voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 63c623a2a9af44f38388a17742c87486 + expression: 'min(/APC UPS by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS by SNMP/phase.input.voltage[upsPhaseInputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage' + event_name: 'APC UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} input voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: ba649e1239384e3e8ebe6ae29394aecb + name: 'Output phases discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PHASEINDEX},1.3.6.1.4.1.318.1.1.1.9.3.3.1.2.1.1]' + key: output.phases.discovery + delay: 1h + description: 'The output phase identifier. OID upsPhaseOutputPhaseIndex.1.1' + item_prototypes: + - uuid: cfdded918e444958b5c592efae76b96e + name: '{#PHASEINDEX}: Phase output current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.{#PHASEINDEX}]' + key: 'phase.output.current[upsPhaseOutputCurrent.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: A + description: | + MIB: PowerNet-MIB + The output current in 0.1 amperes drawn + by the load on the UPS, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 262d5cf179e64a2596edd86adc5570e3 + name: '{#PHASEINDEX}: Phase output load, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.{#PHASEINDEX}]' + key: 'phase.output.load.percent[upsPhaseOutputPercentLoad.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: PowerNet-MIB + The percentage of the UPS load capacity in VA at + redundancy @ (n + x) presently being used on this + output phase, or -1 if it's unsupported by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: ab38f845f0e448f0b3638f6728cbf5bf + name: '{#PHASEINDEX}: Phase output voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.{#PHASEINDEX}]' + key: 'phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: PowerNet-MIB + The output voltage in VAC, or -1 if it's unsupported + by this UPS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: feeb23a58ccb4ec1bed9d61f5d2ffc9e + expression: 'min(/APC UPS by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) > {$UPS.INPUT_VOLT.MAX.WARN} or max(/APC UPS by SNMP/phase.output.voltage[upsPhaseOutputVoltage.1.1.{#PHASEINDEX}],{$TIME.PERIOD}) < {$UPS.INPUT_VOLT.MIN.WARN}' + name: 'APC UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage' + event_name: 'APC UPS: {#PHASEINDEX}: Unacceptable phase {#PHASEINDEX} output voltage (out of range {$UPS.INPUT_VOLT.MIN.WARN}-{$UPS.INPUT_VOLT.MAX.WARN}V for {$TIME.PERIOD})' + opdata: 'Current phase {#PHASEINDEX} voltage: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + tags: + - tag: class + value: power + - tag: target + value: apc + macros: + - macro: '{$BATTERY.CAPACITY.MIN.WARN}' + value: '50' + description: 'Minimum battery capacity percentage for trigger expression.' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '55' + description: 'Maximum battery temperature for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TIME.PERIOD}' + value: 15m + description: 'Time period for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MAX.WARN}' + value: '50.3' + description: 'Maximum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_FREQ.MIN.WARN}' + value: '49.7' + description: 'Minimum input frequency for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MAX.WARN}' + value: '243' + description: 'Maximum input voltage for trigger expression.' + - macro: '{$UPS.INPUT_VOLT.MIN.WARN}' + value: '197' + description: 'Minimum input voltage for trigger expression.' + - macro: '{$UPS.OUTPUT.MAX.WARN}' + value: '80' + description: 'Maximum output load in % for trigger expression.' + dashboards: + - uuid: 1cd6a60d856944429e04ce20d5714e88 + name: 'APC UPS: General' + pages: + - name: 'APC UPS: General' + widgets: + - type: graph + name: Voltage + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS by SNMP' + name: 'APC UPS: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Capacity of the UPS batteries' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS by SNMP' + name: 'APC UPS: Capacity of the UPS batteries' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Output + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'APC UPS by SNMP' + name: 'APC UPS: Output' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: a808aadebf964e0cb6b8724bf1165013 + name: 'PowerNet-MIB::uioSensorStatusAlarmStatus' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - value: '4' + newvalue: 'Not applicable' + - uuid: 731b036e41d147ba81bfcfb7e99b561b + name: 'PowerNet-MIB::upsAdvBatteryReplaceIndicator' + mappings: + - value: '1' + newvalue: 'no Battery Needs Replacing' + - value: '2' + newvalue: 'battery Needs Replacing' + - uuid: f310a0bceb06404d9daee67ab578e4b8 + name: 'PowerNet-MIB::upsAdvInputLineFailCause' + mappings: + - value: '1' + newvalue: 'no Transfer' + - value: '2' + newvalue: 'High Line Voltage' + - value: '3' + newvalue: Brownout + - value: '4' + newvalue: Blackout + - value: '5' + newvalue: 'Small Momentary Sag' + - value: '6' + newvalue: 'Deep Momentary Sag' + - value: '7' + newvalue: 'Small Momentary Spike' + - value: '8' + newvalue: 'Large Momentary Spike' + - value: '9' + newvalue: 'Self Test' + - value: '10' + newvalue: 'Rate of Voltage Change' + - uuid: 795c75c652124ad282bad3dfd50b8e39 + name: 'PowerNet-MIB::upsBasicBatteryStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Normal + - value: '3' + newvalue: Low + - value: '4' + newvalue: 'In Fault Condition' + - uuid: c536d9dc64724643a9291c9b601b1eac + name: 'PowerNet-MIB::upsBasicOutputStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: 'On Battery' + - value: '4' + newvalue: 'On Smart Boost' + - value: '5' + newvalue: 'Timed Sleeping' + - value: '6' + newvalue: 'Software Bypass' + - value: '7' + newvalue: 'Off' + - value: '8' + newvalue: Rebooting + - value: '9' + newvalue: 'Switched Bypass' + - value: '10' + newvalue: 'Hardware Failure Bypass' + - value: '11' + newvalue: 'Sleeping Until Power Return' + - value: '12' + newvalue: 'On Smart Trim' + - value: '13' + newvalue: 'Eco Mode' + - value: '14' + newvalue: 'Hot Standby' + - value: '15' + newvalue: 'On Battery Test' + - value: '16' + newvalue: 'Emergency Static Bypass' + - value: '17' + newvalue: 'Static Bypass Standby' + - value: '18' + newvalue: 'Power Saving Mode' + - value: '19' + newvalue: 'Spot Mode' + - value: '20' + newvalue: E-Conversion + - value: '21' + newvalue: 'Charger Spotmode' + - value: '22' + newvalue: 'Inverter Spotmode' + - value: '23' + newvalue: 'Active Load' + - value: '24' + newvalue: 'Battery Discharge Spotmode' + - value: '25' + newvalue: 'Inverter Standby' + - value: '26' + newvalue: 'Charger Only' + - uuid: 781c568d935d40f2a43951488cf2e046 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: b0959bdb606542bcb2952e820ac972c9 + expression: | + (last(/APC UPS by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/APC UPS by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/APC UPS by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/APC UPS by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'APC UPS: Host has been restarted' + event_name: 'APC UPS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'APC UPS: No SNMP data collection' + expression: 'max(/APC UPS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 2f54cf3da7be49108736e46afe0b5904 + name: 'APC UPS: Capacity of the UPS batteries' + type: PIE + graph_items: + - color: 199C0D + item: + host: 'APC UPS by SNMP' + key: 'battery.capacity[upsHighPrecBatteryCapacity]' + - uuid: d4b2320e0515407cb32afa388f91cd29 + name: 'APC UPS: Output' + graph_items: + - color: 199C0D + item: + host: 'APC UPS by SNMP' + key: 'output.current[upsHighPrecOutputCurrent]' + - sortorder: '1' + color: F63100 + item: + host: 'APC UPS by SNMP' + key: 'output.load[upsHighPrecOutputLoad]' + - uuid: 4988c266dc15493592112371b061f9e2 + name: 'APC UPS: Voltage' + graph_items: + - color: 199C0D + item: + host: 'APC UPS by SNMP' + key: 'input.voltage[upsHighPrecInputLineVoltage]' + - sortorder: '1' + color: F63100 + item: + host: 'APC UPS by SNMP' + key: 'output.voltage[upsHighPrecOutputVoltage]' diff --git a/AWS_Backup_Vault_by_HTTP.yaml b/AWS_Backup_Vault_by_HTTP.yaml new file mode 100644 index 0000000..f898684 --- /dev/null +++ b/AWS_Backup_Vault_by_HTTP.yaml @@ -0,0 +1,1755 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 024cf4f0711c4c39a4e016858efc5e37 + template: 'AWS Backup Vault by HTTP' + name: 'AWS Backup Vault by HTTP' + description: | + The template is designed to monitor AWS Backup vaults and jobs by HTTP via Zabbix, and it works without any external scripts. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Cloud + items: + - uuid: cc5d272814ab457c99127d3d42ca8d54 + name: Age + type: DEPENDENT + key: aws.backup_vault.age + delay: '0' + units: uptime + description: 'The age of the vault.' + preprocessing: + - type: JSONPATH + parameters: + - $.CreationDate + - type: JAVASCRIPT + parameters: + - 'return Date.now() / 1000 - value' + master_item: + key: aws.backup_vault.data.get + tags: + - tag: component + value: backup_vault + - uuid: 0a02ff6671484ce4bf32c128aa337f14 + name: 'Get data' + type: SCRIPT + key: aws.backup_vault.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'vault'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, canonical_uri, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS Backup vault ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS Backup vault ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS API. Check debug log for more information.'; + } + } + + return response; + }, + + getVaultData: function () { + var result = AWS.request('GET', '/backup-vaults/' + AWS.params.vault, AWS.params.region, 'backup', ''); + + if (typeof result !== 'object') { + throw 'Cannot get backup vault list from AWS API. Check debug log for more information.'; + } + + if (result === null) { + return []; + } + + return result; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.getVaultData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS Backup vault ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: | + Retrieve AWS backup vault metrics. + More information here: https://docs.aws.amazon.com/aws-backup/latest/devguide/API_BackupVaultListMember.html + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS Backup Vault"}' + - name: vault + value: '{$AWS.BACKUP_VAULT.NAME}' + tags: + - tag: component + value: raw + - uuid: 4bf53a35af804262a4e0250a01d6c962 + name: 'Jobs: Backup' + type: DEPENDENT + key: aws.backup_vault.job.backup.count + delay: '0' + description: 'The number of backup jobs in the vault over the last `{$AWS.BACKUP_JOB.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.job_type == "backup-job")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + - uuid: b1e841181aac401e927b27dc6bca6736 + name: 'Jobs: Failed backup' + type: DEPENDENT + key: aws.backup_vault.job.backup.failed.count + delay: '0' + description: 'The number of failed backup jobs in the vault over the last `{$AWS.BACKUP_JOB.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.job_type == "backup-job" && @.job_state == "FAILED")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + - uuid: d8ea077804634388bcb15bc99ad9839e + name: 'Jobs: Copy' + type: DEPENDENT + key: aws.backup_vault.job.copy.count + delay: '0' + description: 'The number of copy jobs in the vault over the last `{$AWS.BACKUP_JOB.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.job_type == "copy-job")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + triggers: + - uuid: 6a5ed839d0d049f58775e46ee86e83ee + expression: 'change(/AWS Backup Vault by HTTP/aws.backup_vault.job.copy.count)>0' + recovery_mode: NONE + name: 'AWS Backup vault: Copy job has appeared' + opdata: 'Current amount: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'New copy job has appeared.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a2a8734311c84c05b72738ce0d8192f5 + name: 'Jobs: Failed copy' + type: DEPENDENT + key: aws.backup_vault.job.copy.failed.count + delay: '0' + description: 'The number of failed copy jobs in the vault over the last `{$AWS.BACKUP_JOB.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.job_type == "copy-job" && @.job_state == "FAILED")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + - uuid: 81d17a83dddf4a4292428ae0644d83ca + name: 'Get jobs' + type: SCRIPT + key: aws.backup_vault.job.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'vault', 'period'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, canonical_uri, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS Backup vault ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS Backup vault ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS API. Check debug log for more information.'; + } + } + + return response; + }, + + listJobs: function () { + var lld_array = [], + job_types = [ + 'backup-job', + 'copy-job', + 'restore-job' + ], + created_after = Date.now() / 1000 - AWS.params.period * 86400 + payload = { + 'backupVaultName': AWS.params.vault, + 'createdAfter': created_after + }; + + job_types.forEach(function (job_type) { + while (payload.nextToken !== null) { + var result = AWS.request('GET', '/' + job_type + 's', AWS.params.region, 'backup', AWS.prepareParams(payload)); + + payload.nextToken = result.NextToken; + + if (typeof result !== 'object') { + throw 'Cannot get job list from AWS API. Check debug log for more information.'; + } + + switch (job_type) { + case 'backup-job': { + if (typeof result.BackupJobs !== 'object') { + throw 'Cannot get backup job list from AWS API. Check debug log for more information.'; + } + result.BackupJobs.forEach(function (job) { + lld_array.push({ + job_id: AWS.getField(job, 'BackupJobId'), + job_type: job_type, + resource_type: AWS.getField(job, 'ResourceType'), + resource_name: AWS.getField(job, 'ResourceName'), + job_state: AWS.getField(job, 'State'), + job_size: AWS.getField(job, 'BackupSizeInBytes') + }); + }); + break; + } + case 'copy-job': { + if (typeof result.CopyJobs !== 'object') { + throw 'Cannot get copy job list from AWS API. Check debug log for more information.'; + } + result.CopyJobs.forEach(function (job) { + lld_array.push({ + job_id: AWS.getField(job, 'CopyJobId'), + job_type: job_type, + resource_type: AWS.getField(job, 'ResourceType'), + resource_name: AWS.getField(job, 'ResourceName'), + job_state: AWS.getField(job, 'State'), + job_size: AWS.getField(job, 'BackupSizeInBytes') + }); + }); + break; + } + case 'restore-job': { + if (typeof result.RestoreJobs !== 'object') { + throw 'Cannot get restore job list from AWS API. Check debug log for more information.'; + } + result.RestoreJobs.forEach(function (job) { + lld_array.push({ + job_id: AWS.getField(job, 'RestoreJobId'), + job_type: job_type, + resource_type: AWS.getField(job, 'ResourceType'), + resource_name: null, + job_state: AWS.getField(job, 'Status'), + job_size: AWS.getField(job, 'BackupSizeInBytes') + }); + }); + break; + } + } + }; + delete payload.nextToken; + }) + return lld_array; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.listJobs()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS Backup vault ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'Get a list of jobs in the vault.' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: period + value: '{$AWS.BACKUP_JOB.PERIOD}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS Backup Vault"}' + - name: vault + value: '{$AWS.BACKUP_VAULT.NAME}' + tags: + - tag: component + value: raw + - uuid: fa781abfaa014fcdab62321fc9940ac7 + name: 'Jobs: Restore' + type: DEPENDENT + key: aws.backup_vault.job.restore.count + delay: '0' + description: 'The number of restore jobs in the vault over the last `{$AWS.BACKUP_JOB.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.job_type == "restore-job")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + triggers: + - uuid: 31f7e20621f249138df7aea59df927dc + expression: 'change(/AWS Backup Vault by HTTP/aws.backup_vault.job.restore.count)>0' + recovery_mode: NONE + name: 'AWS Backup vault: Restore job has appeared' + opdata: 'Current amount: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'New restore job has appeared.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: acae9cf0a32c42dead1651fc911afc3b + name: 'Jobs: Failed restore' + type: DEPENDENT + key: aws.backup_vault.job.restore.failed.count + delay: '0' + description: 'The number of failed restore jobs in the vault over the last `{$AWS.BACKUP_JOB.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.job_type == "restore-job" && @.job_state == "FAILED")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + - uuid: 5a9a604c70844ab8bffe4bf96ceeb761 + name: 'Jobs: Size, avg' + type: DEPENDENT + key: aws.backup_vault.job.size.avg + delay: '0' + units: B + description: | + The average size, in bytes, of a backup (recovery point). + This value can render differently depending on the resource type as AWS Backup pulls in data information from other AWS services. For example, the value returned may show a value of `0`, which may differ from the anticipated value. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.job_size > 0)].job_size.avg()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + - uuid: 90600e647d2a40ccbe1ced317c03abb4 + name: 'Jobs: Size, max' + type: DEPENDENT + key: aws.backup_vault.job.size.max + delay: '0' + units: B + description: | + The maximum size, in bytes, of a backup (recovery point). + This value can render differently depending on the resource type as AWS Backup pulls in data information from other AWS services. For example, the value returned may show a value of `0`, which may differ from the anticipated value. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.job_size > 0)].job_size.max()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + - uuid: 0ad8090097e64cf3bf28710f423a6164 + name: 'Jobs: Size, min' + type: DEPENDENT + key: aws.backup_vault.job.size.min + delay: '0' + units: B + description: | + The minimum size, in bytes, of a backup (recovery point). + This value can render differently depending on the resource type as AWS Backup pulls in data information from other AWS services. For example, the value returned may show a value of `0`, which may differ from the anticipated value. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.job_size > 0)].job_size.min()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + - uuid: 886b2b55cfbf42d58f01cfad66cc1ad5 + name: 'Jobs: Total' + type: DEPENDENT + key: aws.backup_vault.job.total.count + delay: '0' + description: 'The total number of jobs in the vault over the last `{$AWS.BACKUP_JOB.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - $.length() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + - uuid: 0faeb1eedbb64fa7848a475fb8da1808 + name: 'Lock date' + type: DEPENDENT + key: aws.backup_vault.lock.date + delay: '0' + units: unixtime + description: 'The date and time when AWS Backup Vault Lock configuration becomes immutable, meaning it cannot be changed or deleted.' + preprocessing: + - type: JSONPATH + parameters: + - $.LockDate + - type: NOT_MATCHES_REGEX + parameters: + - 'null' + error_handler: CUSTOM_ERROR + error_handler_params: 'Either the vault is not locked, or the lock date is not specified.' + master_item: + key: aws.backup_vault.data.get + tags: + - tag: component + value: backup_vault + - uuid: 477eb6a9728e4fb4aadd8b9903ef6fb1 + name: 'Lock status' + type: DEPENDENT + key: aws.backup_vault.lock.status + delay: '0' + description: 'Indicates whether AWS Backup Vault Lock is applied to the selected backup vault. When the vault is locked, delete and update operations on recovery points in that vault are prevented.' + valuemap: + name: 'AWS Backup vault lock status' + preprocessing: + - type: JSONPATH + parameters: + - $.Locked + - type: STR_REPLACE + parameters: + - 'false' + - '0' + - type: STR_REPLACE + parameters: + - 'true' + - '1' + master_item: + key: aws.backup_vault.data.get + tags: + - tag: component + value: backup_vault + - uuid: b886025d57d345298e6739972b328223 + name: 'Lock time remain' + type: DEPENDENT + key: aws.backup_vault.lock.time_left + delay: '0' + units: uptime + description: 'The remaining time before AWS Backup Vault Lock configuration becomes immutable, meaning it cannot be changed or deleted.' + preprocessing: + - type: JSONPATH + parameters: + - $.LockDate + - type: NOT_MATCHES_REGEX + parameters: + - 'null' + error_handler: CUSTOM_ERROR + error_handler_params: 'Either the vault is not locked, or the lock date is not specified.' + - type: JAVASCRIPT + parameters: + - | + now = Date.now() / 1000; + if (value > now) { + return value - now + } else { + return 0 + } + master_item: + key: aws.backup_vault.data.get + tags: + - tag: component + value: backup_vault + - uuid: abab51050d0a4fbbb976db8b6fe51494 + name: 'Recovery points' + type: DEPENDENT + key: aws.backup_vault.recovery_points + delay: '0' + description: 'The total number of recovery points in the backup vault.' + preprocessing: + - type: JSONPATH + parameters: + - $.NumberOfRecoveryPoints + - type: NOT_MATCHES_REGEX + parameters: + - 'null' + error_handler: DISCARD_VALUE + master_item: + key: aws.backup_vault.data.get + tags: + - tag: component + value: backup_vault + - uuid: 9d8c6dc0c1dc4b65a2a2edd299bf7855 + name: 'Retention period, max' + type: DEPENDENT + key: aws.backup_vault.retention.max + delay: '0' + units: '!day(s)' + description: 'The maximum retention period that the vault retains its recovery points.' + preprocessing: + - type: JSONPATH + parameters: + - $.MaxRetentionDays + - type: NOT_MATCHES_REGEX + parameters: + - 'null' + error_handler: CUSTOM_ERROR + error_handler_params: 'The vault does not have the maximum retention period set.' + master_item: + key: aws.backup_vault.data.get + tags: + - tag: component + value: backup_vault + - uuid: 6bbb460c7630455db019528e2fa4333b + name: 'Retention period, min' + type: DEPENDENT + key: aws.backup_vault.retention.min + delay: '0' + units: '!day(s)' + description: 'The minimum retention period that the vault retains its recovery points.' + preprocessing: + - type: JSONPATH + parameters: + - $.MinRetentionDays + - type: NOT_MATCHES_REGEX + parameters: + - 'null' + error_handler: CUSTOM_ERROR + error_handler_params: 'The vault does not have the minimum retention period set.' + master_item: + key: aws.backup_vault.data.get + tags: + - tag: component + value: backup_vault + - uuid: b289382581d741e8b420bf6db3eaf073 + name: State + type: DEPENDENT + key: aws.backup_vault.state + delay: '0' + description: | + The current state of the backup vault. + Possible values are: + - Unknown + - Creating + - Available + - Failed + valuemap: + name: 'AWS Backup vault state' + preprocessing: + - type: JSONPATH + parameters: + - $.VaultState + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'CREATING': 1, + 'AVAILABLE': 2, + 'FAILED': 3 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + master_item: + key: aws.backup_vault.data.get + tags: + - tag: component + value: backup_vault + discovery_rules: + - uuid: 1e96003b5bd949f08684cee42c1aa4d7 + name: 'AWS Backup job discovery' + type: DEPENDENT + key: aws.backup_vault.job.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AWS.BACKUP_JOB.RESOURCE_NAME}' + value: '{$AWS.BACKUP_JOB.RESOURCE_NAME.MATCHES}' + formulaid: A + - macro: '{#AWS.BACKUP_JOB.RESOURCE_NAME}' + value: '{$AWS.BACKUP_JOB.RESOURCE_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#AWS.BACKUP_JOB.RESOURCE_TYPE}' + value: '{$AWS.BACKUP_JOB.RESOURCE_TYPE.MATCHES}' + formulaid: C + - macro: '{#AWS.BACKUP_JOB.RESOURCE_TYPE}' + value: '{$AWS.BACKUP_JOB.RESOURCE_TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#AWS.BACKUP_JOB.STATE}' + value: '{$AWS.BACKUP_JOB.STATE.MATCHES}' + formulaid: E + - macro: '{#AWS.BACKUP_JOB.STATE}' + value: '{$AWS.BACKUP_JOB.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + lifetime: '0' + description: 'AWS Backup job discovery.' + item_prototypes: + - uuid: cc978e4977c94e0ca743757d9d254f14 + name: 'Job state [{#AWS.BACKUP_JOB.RESOURCE_NAME}][{#AWS.BACKUP_JOB.ID}]' + type: DEPENDENT + key: 'aws.backup_vault.job.state["{#AWS.BACKUP_JOB.ID}"]' + delay: '0' + description: | + The state of the job. + Possible values are: + - Unknown + - Created + - Pending + - Running + - Aborting + - Aborted + - Completed + - Failed + - Expired + - Partial + valuemap: + name: 'AWS Backup job state' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.job_id == "{#AWS.BACKUP_JOB.ID}")].job_state.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'CREATED': 1, + 'PENDING': 2, + 'RUNNING': 3, + 'ABORTING': 4, + 'ABORTED': 5, + 'COMPLETED': 6, + 'FAILED': 7, + 'EXPIRED ': 8, + 'PARTIAL': 9 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aws.backup_vault.job.get + tags: + - tag: component + value: backup_vault + - tag: job_type + value: '{#AWS.BACKUP_JOB.TYPE}' + - tag: resource_name + value: '{#AWS.BACKUP_JOB.RESOURCE_NAME}' + - tag: resource_type + value: '{#AWS.BACKUP_JOB.RESOURCE_TYPE}' + trigger_prototypes: + - uuid: d32bba2d26514a2381a18415f26c7591 + expression: 'last(/AWS Backup Vault by HTTP/aws.backup_vault.job.state["{#AWS.BACKUP_JOB.ID}"])=7' + name: 'AWS Backup vault: Job failed [{#AWS.BACKUP_JOB.ID}]' + event_name: 'AWS Backup vault: Job type [{#AWS.BACKUP_JOB.TYPE}] for [{#AWS.BACKUP_JOB.RESOURCE_NAME}] with ID [{#AWS.BACKUP_JOB.ID}] has failed.' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Job has failed.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 06182df42e5d4777b8506726c2793dee + expression: 'last(/AWS Backup Vault by HTTP/aws.backup_vault.job.state["{#AWS.BACKUP_JOB.ID}"])=5' + name: 'AWS Backup vault: Job has been aborted [{#AWS.BACKUP_JOB.ID}]' + event_name: 'AWS Backup vault: Job type [{#AWS.BACKUP_JOB.TYPE}] for [{#AWS.BACKUP_JOB.RESOURCE_NAME}] with ID [{#AWS.BACKUP_JOB.ID}] has been aborted.' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Job has been aborted.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e1fb82528ca34849b75200b417036037 + expression: 'last(/AWS Backup Vault by HTTP/aws.backup_vault.job.state["{#AWS.BACKUP_JOB.ID}"])=8' + name: 'AWS Backup vault: Job has expired [{#AWS.BACKUP_JOB.ID}]' + event_name: 'AWS Backup vault: Job type [{#AWS.BACKUP_JOB.TYPE}] for [{#AWS.BACKUP_JOB.RESOURCE_NAME}] with ID [{#AWS.BACKUP_JOB.ID}] has expired.' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Job expired.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e449b1999f09469bbf71e531afebc26b + expression: 'last(/AWS Backup Vault by HTTP/aws.backup_vault.job.state["{#AWS.BACKUP_JOB.ID}"])=0' + name: 'AWS Backup vault: Job is in an unknown state [{#AWS.BACKUP_JOB.ID}]' + event_name: 'AWS Backup vault: Job type [{#AWS.BACKUP_JOB.TYPE}] for [{#AWS.BACKUP_JOB.RESOURCE_NAME}] with ID [{#AWS.BACKUP_JOB.ID}] is in an unknown state.' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Job is in unknown state.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + master_item: + key: aws.backup_vault.job.get + lld_macro_paths: + - lld_macro: '{#AWS.BACKUP_JOB.ID}' + path: $.job_id + - lld_macro: '{#AWS.BACKUP_JOB.RESOURCE_NAME}' + path: $.resource_name + - lld_macro: '{#AWS.BACKUP_JOB.RESOURCE_TYPE}' + path: $.resource_type + - lld_macro: '{#AWS.BACKUP_JOB.STATE}' + path: $.job_state + - lld_macro: '{#AWS.BACKUP_JOB.TYPE}' + path: $.job_type + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Copy job excludes' + step: '1' + filter: + conditions: + - macro: '{#AWS.BACKUP_JOB.TYPE}' + value: '^copy-job&' + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Job aborted' + discover: NO_DISCOVER + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Job expired' + discover: NO_DISCOVER + - name: 'Restore job excludes' + step: '2' + filter: + conditions: + - macro: '{#AWS.BACKUP_JOB.TYPE}' + value: '^restore-job&' + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Job expired' + discover: NO_DISCOVER + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Job partially completed' + discover: NO_DISCOVER + tags: + - tag: class + value: cloud + - tag: target + value: aws + - tag: target + value: backup_vault + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.BACKUP_JOB.PERIOD}' + value: '7' + description: 'The number of days over which to retrieve backup jobs.' + - macro: '{$AWS.BACKUP_JOB.RESOURCE_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable jobs by resource name.' + - macro: '{$AWS.BACKUP_JOB.RESOURCE_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered jobs by resource name.' + - macro: '{$AWS.BACKUP_JOB.RESOURCE_TYPE.MATCHES}' + value: '.*' + description: 'Filter of discoverable jobs by resource type.' + - macro: '{$AWS.BACKUP_JOB.RESOURCE_TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered jobs by resource type.' + - macro: '{$AWS.BACKUP_JOB.STATE.MATCHES}' + value: '.*' + description: 'Filter of discoverable jobs by state.' + - macro: '{$AWS.BACKUP_JOB.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered jobs by state.' + - macro: '{$AWS.BACKUP_VAULT.NAME}' + description: 'AWS backup vault name.' + - macro: '{$AWS.DATA.TIMEOUT}' + value: 60s + description: 'API response timeout.' + - macro: '{$AWS.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, no proxy is used.' + - macro: '{$AWS.REGION}' + value: us-west-1 + description: 'AWS backup vault region code.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + type: SECRET_TEXT + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS Backup Vault", e.g. {$HTTP.TLS.VERIFY:"AWS Backup Vault"}.' + dashboards: + - uuid: 92a5197bbdeb403cabb6dd12eabb7deb + name: 'AWS Backup vault' + pages: + - name: 'Backup vault overview' + widgets: + - type: item + name: 'Vault age' + width: '26' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS Backup Vault by HTTP' + key: aws.backup_vault.age + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Backup jobs' + 'y': '2' + width: '13' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS Backup Vault by HTTP' + key: aws.backup_vault.job.backup.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '60' + - type: itemnavigator + name: 'Jobs grouped' + 'y': '4' + width: '28' + height: '8' + fields: + - type: INTEGER + name: group_by.0.attribute + value: '3' + - type: STRING + name: group_by.0.tag_name + value: resource_type + - type: INTEGER + name: group_by.1.attribute + value: '3' + - type: STRING + name: group_by.1.tag_name + value: resource_name + - type: STRING + name: items.0 + value: 'Job state [*]' + - type: STRING + name: reference + value: DTQLA + - type: INTEGER + name: show_lines + value: '300' + - type: item + name: 'Selected job' + 'y': '12' + width: '28' + height: '1' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Selected job status:' + - type: INTEGER + name: desc_h_pos + value: '0' + - type: INTEGER + name: desc_size + value: '60' + - type: INTEGER + name: desc_v_pos + value: '1' + - type: STRING + name: itemid._reference + value: DTQLA._itemid + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: value_h_pos + value: '2' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Restore jobs' + x: '13' + 'y': '2' + width: '13' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS Backup Vault by HTTP' + key: aws.backup_vault.job.restore.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Recovery points' + x: '26' + width: '13' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS Backup Vault by HTTP' + key: aws.backup_vault.recovery_points + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Copy jobs' + x: '26' + 'y': '2' + width: '13' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS Backup Vault by HTTP' + key: aws.backup_vault.job.copy.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '60' + - type: honeycomb + name: Jobs + x: '28' + 'y': '4' + width: '44' + height: '8' + fields: + - type: STRING + name: items.0 + value: 'Job state [*]' + - type: STRING + name: reference + value: ZMGLG + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: INTEGER + name: show.0 + value: '2' + - type: STRING + name: thresholds.0.color + value: EC1594 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 6AC8FF + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: 6AC8FF + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: 00A1FF + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: STRING + name: thresholds.4.color + value: FFD54F + - type: STRING + name: thresholds.4.threshold + value: '4' + - type: STRING + name: thresholds.5.color + value: BF00FF + - type: STRING + name: thresholds.5.threshold + value: '5' + - type: STRING + name: thresholds.6.color + value: 0EC9AC + - type: STRING + name: thresholds.6.threshold + value: '6' + - type: STRING + name: thresholds.7.color + value: FF465C + - type: STRING + name: thresholds.7.threshold + value: '7' + - type: STRING + name: thresholds.8.color + value: BAE37D + - type: STRING + name: thresholds.8.threshold + value: '8' + - type: item + name: 'Selected job' + x: '28' + 'y': '12' + width: '44' + height: '1' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: '{{ITEM.NAME}.regsub("(Job state \[)(.*)(, )(.*)(\])","Resource: \2, Job ID: \4")}' + - type: INTEGER + name: desc_h_pos + value: '0' + - type: INTEGER + name: desc_size + value: '60' + - type: INTEGER + name: desc_v_pos + value: '1' + - type: STRING + name: itemid._reference + value: ZMGLG._itemid + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: value_h_pos + value: '2' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Average size' + x: '39' + width: '13' + fields: + - type: INTEGER + name: decimal_places + value: '1' + - type: ITEM + name: itemid.0 + value: + host: 'AWS Backup Vault by HTTP' + key: aws.backup_vault.job.size.avg + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Total jobs' + x: '39' + 'y': '2' + width: '13' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS Backup Vault by HTTP' + key: aws.backup_vault.job.total.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Lock status' + x: '52' + width: '20' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS Backup Vault by HTTP' + key: aws.backup_vault.lock.status + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Vault state' + x: '52' + 'y': '2' + width: '20' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS Backup Vault by HTTP' + key: aws.backup_vault.state + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '60' + valuemaps: + - uuid: 0296c0c525304ea2ad91070346669b42 + name: 'AWS Backup job state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Created + - value: '2' + newvalue: Pending + - value: '3' + newvalue: Running + - value: '4' + newvalue: Aborting + - value: '5' + newvalue: Aborted + - value: '6' + newvalue: Completed + - value: '7' + newvalue: Failed + - value: '8' + newvalue: Expired + - value: '9' + newvalue: Partial + - uuid: b5821fcd5f3444198570b8dfb925ce0a + name: 'AWS Backup vault lock status' + mappings: + - value: '0' + newvalue: Unlocked + - value: '1' + newvalue: Locked + - uuid: d591fd3704ff4fc3a7e5ee6b206190ad + name: 'AWS Backup vault state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Creating + - value: '2' + newvalue: Available + - value: '3' + newvalue: Failed diff --git a/AWS_Cost_Explorer_by_HTTP.yaml b/AWS_Cost_Explorer_by_HTTP.yaml new file mode 100644 index 0000000..f9ee49f --- /dev/null +++ b/AWS_Cost_Explorer_by_HTTP.yaml @@ -0,0 +1,966 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: dce23cdaef364e139efa580d8a304ffe + template: 'AWS Cost Explorer by HTTP' + name: 'AWS Cost Explorer by HTTP' + description: | + The template gets AWS Cost Explorer metrics and uses the script item to make HTTP requests to the Cost Explorer API. + The Cost Explorer API can access the historical data over up to 12 months and the data for current month. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Cloud + items: + - uuid: 5bfda2617dfc43edbe524a5c44b39f18 + name: 'Get daily costs' + type: SCRIPT + key: aws.get.daily.costs + delay: 0s;h/6 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('POST', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + + today = new Date(); + AWS.params.end_date = today.toDateString(); + today.setDate(today.getDate() - 1); + AWS.params.start_time = today.toDateString(); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + + }, + + request: function (method, region, service, params, data, target) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + else { + data = JSON.stringify(data); + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/x-amz-json-1.1'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('X-Amz-Target: ' + target); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS Billing ] Sending request: ' + url); + response = request.post(url, data); + Zabbix.log(4, '[ AWS Billing ] Received response with the status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with the status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse the response received from AWS API. Check debug log for more information.'; + } + + return response; + }, + + getCostAndUsage: function () { + var body_raw_cost = { + + 'TimePeriod': { + 'Start': AWS.params.start_time, + 'End': AWS.params.end_date + }, + 'Granularity': 'DAILY', + 'GroupBy': [ + { + 'Type': 'DIMENSION', + 'Key': 'SERVICE' + } + ], + 'Metrics': ['BlendedCost'] + }; + + return AWS.getField(AWS.request('POST', AWS.params.region, 'ce', '', body_raw_cost, 'AWSInsightsIndexService.GetCostAndUsage'), 'ResultsByTime'); + + } + + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getCostAndUsage()); + + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS Billing ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'Get raw data on the daily costs by service.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.BILLING.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS Cost Explorer"}' + tags: + - tag: component + value: raw + - uuid: 7139ce562d3c439e9686ad5b17ed0f1c + name: 'Get monthly costs' + type: SCRIPT + key: aws.get.monthly.costs + delay: 0s;h9 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('POST', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'month'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + + today = new Date(); + AWS.params.end_date = today.toDateString(); + month = today.getMonth(); + today.setMonth(month - params.month); + AWS.params.start_time = new Date(today.getFullYear(), today.getMonth()).toDateString(); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + + }, + + request: function (method, region, service, params, data, target) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + else { + data = JSON.stringify(data); + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/x-amz-json-1.1'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('X-Amz-Target: ' + target); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS Billing ] Sending request: ' + url); + response = request.post(url, data); + Zabbix.log(4, '[ AWS Billing ] Received response with the status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with the status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse the response received from AWS API. Check debug log for more information.'; + } + + return response; + }, + + getCostMonth: function () { + var body_raw_cost = { + 'TimePeriod': { + 'Start': AWS.params.start_time, + 'End': AWS.params.end_date + }, + 'Granularity': 'MONTHLY', + 'Metrics': ['BlendedCost'] + }; + result = AWS.getField(AWS.request('POST', AWS.params.region, 'ce', '', body_raw_cost, 'AWSInsightsIndexService.GetCostAndUsage'), 'ResultsByTime'); + + return result.map(function (data) { + return { + 'amount': AWS.getField(data, 'Total.BlendedCost.Amount'), + 'unit': AWS.getField(data, 'Total.BlendedCost.Unit'), + 'month': AWS.getField(data, 'TimePeriod.Start').slice(0, 7) + }; + }); + }, + + getCostMonthService: function () { + var body_raw_cost = { + 'TimePeriod': { + 'Start': AWS.params.start_time, + 'End': AWS.params.end_date + }, + 'GroupBy': [ + { + 'Type': 'DIMENSION', + 'Key': 'SERVICE' + } + ], + 'Granularity': 'MONTHLY', + 'Metrics': ['BlendedCost'] + }; + MetricData = AWS.getField(AWS.request('POST', AWS.params.region, 'ce', '', body_raw_cost, 'AWSInsightsIndexService.GetCostAndUsage'), 'ResultsByTime'); + var services = []; + MetricData.forEach(function (data) { + month = AWS.getField(data, 'TimePeriod.Start').slice(0, 7); + groups = AWS.getField(data, 'Groups'); + groups.forEach(function (group) { + group.month = month; + services.push(group); + }) + }); + + return services; + } + + }; + + try { + AWS.setParams(JSON.parse(value)); + + monthly_costs = AWS.getCostMonth(); + monthly_service_costs = AWS.getCostMonthService(); + + return JSON.stringify({ monthly_costs, monthly_service_costs }); + + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS Billing ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'Get raw data on the monthly costs by service.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: month + value: '{$AWS.BILLING.MONTH}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.BILLING.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS Cost Explorer"}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 5773c41da90d4a38aff02fccec733741 + name: 'AWS monthly costs by services discovery' + type: DEPENDENT + key: aws.cost.service.monthly.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AWS.BILLING.SERVICE.NAME}' + value: '{$AWS.BILLING.LLD.FILTER.SERVICE.MATCHES}' + formulaid: A + - macro: '{#AWS.BILLING.SERVICE.NAME}' + value: '{$AWS.BILLING.LLD.FILTER.SERVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of monthly costs by services.' + item_prototypes: + - uuid: d01ee8df0e204f1a857b8188df47402a + name: '[{#AWS.BILLING.SERVICE.NAME}]: Month [{#AWS.BILLING.MONTH}] Blended cost' + type: DEPENDENT + key: 'aws.monthly.service.cost["{#AWS.BILLING.SERVICE.NAME}", "{#AWS.BILLING.MONTH}"]' + delay: '0' + value_type: FLOAT + units: '!{#AWS.BILLING.UNIT}' + description: 'The monthly cost by service {#AWS.BILLING.SERVICE.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.monthly_service_costs.[?(@.month == "{#AWS.BILLING.MONTH}")]' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$.[?(@.Keys =~ "{#AWS.BILLING.SERVICE.NAME}")]..Metrics.BlendedCost.Amount.first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.get.monthly.costs + tags: + - tag: component + value: billing + - tag: month + value: '{#AWS.BILLING.MONTH}' + - tag: service + value: '{#AWS.BILLING.SERVICE.NAME}' + graph_prototypes: + - uuid: b267e0ae08d34a7dae730848577aea68 + name: 'AWS Cost: [{#AWS.BILLING.SERVICE.NAME}]: Month [{#AWS.BILLING.MONTH}] Blended cost' + graph_items: + - drawtype: GRADIENT_LINE + color: 2E7D32 + item: + host: 'AWS Cost Explorer by HTTP' + key: 'aws.monthly.service.cost["{#AWS.BILLING.SERVICE.NAME}", "{#AWS.BILLING.MONTH}"]' + master_item: + key: aws.get.monthly.costs + lld_macro_paths: + - lld_macro: '{#AWS.BILLING.MONTH}' + path: $..month.first() + - lld_macro: '{#AWS.BILLING.SERVICE.NAME}' + path: $..Keys.first().first() + - lld_macro: '{#AWS.BILLING.UNIT}' + path: $..Metrics.BlendedCost.Unit.first() + preprocessing: + - type: JSONPATH + parameters: + - $.monthly_service_costs + - uuid: 6e65d15251ea4355ac41ed7956f9e5b0 + name: 'AWS daily costs by services discovery' + type: DEPENDENT + key: aws.daily.services.costs.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AWS.BILLING.SERVICE.NAME}' + value: '{$AWS.BILLING.LLD.FILTER.SERVICE.MATCHES}' + formulaid: A + - macro: '{#AWS.BILLING.SERVICE.NAME}' + value: '{$AWS.BILLING.LLD.FILTER.SERVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of daily blended costs by services.' + item_prototypes: + - uuid: b6e121c3a1eb49858e942beab12660e2 + name: 'Service [{#AWS.BILLING.SERVICE.NAME}]: Blended daily cost' + type: DEPENDENT + key: 'aws.daily.service.cost["{#AWS.BILLING.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: '!{#AWS.BILLING.UNIT}' + description: 'The daily blended cost of the {#AWS.BILLING.SERVICE.NAME} service for the previous day.' + preprocessing: + - type: JSONPATH + parameters: + - '$..Groups..[?(@.Keys =~ "{#AWS.BILLING.SERVICE.NAME}")]..Metrics.BlendedCost.Amount.first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.get.daily.costs + tags: + - tag: component + value: billing + - tag: service + value: '{#AWS.BILLING.SERVICE.NAME}' + graph_prototypes: + - uuid: 71646982ab55405dbc10f200e8050c93 + name: 'AWS Cost: Service [{#AWS.BILLING.SERVICE.NAME}]: Blended daily cost' + graph_items: + - drawtype: GRADIENT_LINE + color: 2E7D32 + item: + host: 'AWS Cost Explorer by HTTP' + key: 'aws.daily.service.cost["{#AWS.BILLING.SERVICE.NAME}"]' + master_item: + key: aws.get.daily.costs + lld_macro_paths: + - lld_macro: '{#AWS.BILLING.SERVICE.NAME}' + path: $..Keys.first().first() + - lld_macro: '{#AWS.BILLING.UNIT}' + path: $..Metrics.BlendedCost.Unit.first() + preprocessing: + - type: JSONPATH + parameters: + - $..Groups.first() + - uuid: b554f00ba68e4ea391f7c7d029efde4f + name: 'AWS monthly costs discovery' + type: DEPENDENT + key: aws.monthly.cost.discovery + delay: '0' + description: 'Discovery of monthly costs.' + item_prototypes: + - uuid: aaf85a53d1804c858fc20189f0483bad + name: '[{#AWS.BILLING.MONTH}]: Blended cost per month' + type: DEPENDENT + key: 'aws.monthly.cost["{#AWS.BILLING.MONTH}"]' + delay: '0' + value_type: FLOAT + units: '!{#AWS.BILLING.UNIT}' + description: 'The blended cost by month {#AWS.BILLING.MONTH}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.monthly_costs.[?(@.month == "{#AWS.BILLING.MONTH}")].amount.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.get.monthly.costs + tags: + - tag: component + value: billing + - tag: month + value: '{#AWS.BILLING.MONTH}' + graph_prototypes: + - uuid: 3e01a98ed70149e3a6a083bb103aa496 + name: 'AWS Cost: [{#AWS.BILLING.MONTH}]: Monthly blended cost' + graph_items: + - drawtype: GRADIENT_LINE + color: 2E7D32 + item: + host: 'AWS Cost Explorer by HTTP' + key: 'aws.monthly.cost["{#AWS.BILLING.MONTH}"]' + master_item: + key: aws.get.monthly.costs + lld_macro_paths: + - lld_macro: '{#AWS.BILLING.MONTH}' + path: $..month.first() + - lld_macro: '{#AWS.BILLING.UNIT}' + path: $..unit.first() + preprocessing: + - type: JSONPATH + parameters: + - $.monthly_costs + tags: + - tag: class + value: cloud + - tag: target + value: aws + - tag: target + value: cost + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.BILLING.LLD.FILTER.SERVICE.MATCHES}' + value: '.*' + description: 'Filter of discoverable discovered billing service by name.' + - macro: '{$AWS.BILLING.LLD.FILTER.SERVICE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered billing service by name.' + - macro: '{$AWS.BILLING.MONTH}' + value: '11' + description: 'Months to get historical data from AWS Cost Explore API, no more than 12 months.' + - macro: '{$AWS.BILLING.REGION}' + value: us-east-1 + description: 'Amazon Billing region code.' + - macro: '{$AWS.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + type: SECRET_TEXT + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS Cost Explorer", e.g. {$HTTP.TLS.VERIFY:"AWS Cost Explorer"}.' + dashboards: + - uuid: e1e4edbf129142b4b27a9471db1ed8e2 + name: 'Overview AWS Costs' + pages: + - name: 'Monthly costs' + widgets: + - type: graphprototype + width: '72' + height: '25' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS Cost Explorer by HTTP' + name: 'AWS Cost: [{#AWS.BILLING.MONTH}]: Monthly blended cost' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '6' + - name: 'Monthly costs by service' + widgets: + - type: graphprototype + width: '72' + height: '25' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS Cost Explorer by HTTP' + name: 'AWS Cost: [{#AWS.BILLING.SERVICE.NAME}]: Month [{#AWS.BILLING.MONTH}] Blended cost' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: rows + value: '6' + - name: 'Daily costs by service' + widgets: + - type: graphprototype + width: '72' + height: '20' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS Cost Explorer by HTTP' + name: 'AWS Cost: Service [{#AWS.BILLING.SERVICE.NAME}]: Blended daily cost' + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: rows + value: '5' diff --git a/AWS_EC2_by_HTTP.yaml b/AWS_EC2_by_HTTP.yaml new file mode 100644 index 0000000..daef085 --- /dev/null +++ b/AWS_EC2_by_HTTP.yaml @@ -0,0 +1,3011 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 7af6d68b223a43d4bf8526cc5dc3fe2e + template: 'AWS EC2 by HTTP' + name: 'AWS EC2 by HTTP' + description: | + Get AWS EC2 and attached AWS EBS volumes metrics and uses the script item to make HTTP requests to the CloudWatch API. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Cloud + items: + - uuid: 22b61bf7ebba43e8aef544385448d18c + name: 'Get alarms check' + type: DEPENDENT + key: aws.ec2.alarms.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the alarm data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.ec2.get_alarms + tags: + - tag: component + value: status + triggers: + - uuid: 1d017a1213fb4bc9896add10a2b97dd6 + expression: 'length(last(/AWS EC2 by HTTP/aws.ec2.alarms.check))>0' + name: 'AWS EC2: Failed to get alarms data' + priority: WARNING + description: 'Failed to get CloudWatch alarms for EC2.' + tags: + - tag: scope + value: availability + - uuid: 0384bacca1e14994a5c38dc55b73e8bb + name: 'Credit CPU: Balance' + type: DEPENDENT + key: aws.ec2.cpu.credit_balance + delay: '0' + value_type: FLOAT + description: | + The number of earned CPU credits that an instance has accrued since it was launched or started. For T2 Standard, the CPUCreditBalance also includes the number of launch credits that have been accrued. + Credits are accrued in the credit balance after they are earned, and removed from the credit balance when they are spent. The credit balance has a maximum limit, determined by the instance size. After the limit is reached, any new credits that are earned are discarded. For T2 Standard, launch credits do not count towards the limit. + The credits in the CPUCreditBalance are available for the instance to spend to burst beyond its baseline CPU utilization. + When an instance is running, credits in the CPUCreditBalance do not expire. When a T3 or T3a instance stops, the CPUCreditBalance value persists for seven days. Thereafter, all accrued credits are lost. When a T2 instance stops, the CPUCreditBalance value does not persist, and all accrued credits are lost. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CPUCreditBalance")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: cpu + - tag: component + value: credit + triggers: + - uuid: 4e67cac1f58a478fb0e47c52b402fd92 + expression: 'max(/AWS EC2 by HTTP/aws.ec2.cpu.credit_balance,5m)<{$AWS.EC2.CPU.CREDIT.BALANCE.MIN.WARN}' + name: 'AWS EC2: Instance CPU Credit balance is too low' + event_name: 'AWS EC2: Instance CPU Credit balance is too low (less {$AWS.EC2.CPU.CREDIT.BALANCE.MIN.WARN} for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The number of earned CPU credits has been less than {$AWS.EC2.CPU.CREDIT.BALANCE.MIN.WARN} in the last 5 minutes.' + tags: + - tag: scope + value: capacity + - uuid: b445a56de3194f6f9b4bf9dd85fcbe52 + name: 'Credit CPU: Usage' + type: DEPENDENT + key: aws.ec2.cpu.credit_usage + delay: '0' + value_type: FLOAT + description: | + The number of CPU credits spent by the instance for CPU utilization. + One CPU credit equals one vCPU running at 100% utilization for one minute or an equivalent combination of vCPUs, utilization, and time (for example, one vCPU running at 50% utilization for two minutes or two vCPUs running at 25% utilization for two minutes). + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CPUCreditUsage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: cpu + - tag: component + value: credit + - uuid: 285ec6451412450c963e3a24d2aa74e1 + name: 'Credit CPU: Surplus balance' + type: DEPENDENT + key: aws.ec2.cpu.surplus_credit_balance + delay: '0' + value_type: FLOAT + description: | + The number of surplus credits that have been spent by an unlimited instance when its CPUCreditBalance value is zero. + The CPUSurplusCreditBalance value is paid down by earned CPU credits. If the number of surplus credits exceeds the maximum number of credits that the instance can earn in a 24-hour period, the spent surplus credits above the maximum incur an additional charge. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CPUSurplusCreditBalance")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: cpu + - tag: component + value: credit + - uuid: 77a32118a77e4836a945c7b0954ef64a + name: 'Credit CPU: Surplus charged' + type: DEPENDENT + key: aws.ec2.cpu.surplus_credit_charged + delay: '0' + value_type: FLOAT + description: | + The number of spent surplus credits that are not paid down by earned CPU credits, and which thus incur an additional charge. + + Spent surplus credits are charged when any of the following occurs: + - The spent surplus credits exceed the maximum number of credits that the instance can earn in a 24-hour period. Spent surplus credits above the maximum are charged at the end of the hour; + - The instance is stopped or terminated; + - The instance is switched from unlimited to standard. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CPUSurplusCreditsCharged")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: cpu + - tag: component + value: credit + triggers: + - uuid: 644ace5510164f329d9af65bd0ed4f34 + expression: 'last(/AWS EC2 by HTTP/aws.ec2.cpu.surplus_credit_charged)>{$AWS.EC2.CPU.CREDIT.SURPLUS.BALANCE.MAX.WARN}' + name: 'AWS EC2: Instance has spent too many CPU surplus credits' + event_name: 'AWS EC2: Instance has spent too many CPU surplus credits (over {$AWS.EC2.CPU.CREDIT.SURPLUS.BALANCE.MAX.WARN} for 15m)''' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The number of spent surplus credits that are not paid down and which thus incur an additional charge is over {$AWS.EC2.CPU.CREDIT.SURPLUS.BALANCE.MAX.WARN}.' + tags: + - tag: scope + value: capacity + - uuid: 7fd871e7eed54845ad069c3e7d3cad56 + name: 'CPU: Utilization' + type: DEPENDENT + key: aws.ec2.cpu_utilization + delay: '0' + value_type: FLOAT + units: '%' + description: | + The percentage of allocated EC2 compute units that are currently in use on the instance. This metric identifies the processing power required to run an application on a selected instance. + Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CPUUtilization")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: cpu + triggers: + - uuid: ea74d00067874b609e4846847033058f + expression: 'min(/AWS EC2 by HTTP/aws.ec2.cpu_utilization,15m)>{$AWS.EC2.CPU.UTIL.WARN.MAX}' + name: 'AWS EC2: High CPU utilization' + event_name: 'AWS EC2: High CPU utilization (over {$AWS.EC2.CPU.UTIL.WARN.MAX}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 49aecab5c7df407b9cbfe80ad8790492 + name: 'Disk: Read bytes, rate' + type: DEPENDENT + key: aws.ec2.disk.read_bytes.rate + delay: '0' + value_type: FLOAT + units: Bps + description: | + Bytes read from all instance store volumes available to the instance. + This metric is used to determine the volume of the data the application reads from the hard disk of the instance. + This can be used to determine the speed of the application. + If there are no instance store volumes, either the value is 0 or the metric is not reported. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DiskReadBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: disk + - uuid: d6bb726f9f1b4d5b889ede0ae2c73613 + name: 'Disk: Read, rate' + type: DEPENDENT + key: aws.ec2.disk.read_ops.rate + delay: '0' + value_type: FLOAT + units: Ops + description: | + Completed read operations from all instance store volumes available to the instance in a specified period of time. + If there are no instance store volumes, either the value is 0 or the metric is not reported. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DiskReadOps")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: disk + - uuid: 95bcfd522147498688555e2cab5c00e2 + name: 'Disk: Write bytes, rate' + type: DEPENDENT + key: aws.ec2.disk_write_bytes.rate + delay: '0' + value_type: FLOAT + units: Bps + description: | + Bytes written to all instance store volumes available to the instance. + This metric is used to determine the volume of the data the application writes onto the hard disk of the instance. + This can be used to determine the speed of the application. + If there are no instance store volumes, either the value is 0 or the metric is not reported. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DiskWriteBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: disk + - uuid: 28496d5aa03742feb85ae000deb616d1 + name: 'Disk: Write ops, rate' + type: DEPENDENT + key: aws.ec2.disk_write_ops.rate + delay: '0' + value_type: FLOAT + units: Ops + description: | + Completed write operations to all instance store volumes available to the instance in a specified period of time. + If there are no instance store volumes, either the value is 0 or the metric is not reported. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DiskWriteOps")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: disk + - uuid: 64180ec5dae84f588006bb1dd0ce6980 + name: 'EBS: Byte balance' + type: DEPENDENT + key: aws.ec2.ebs.byte_balance + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of throughput credits remaining in the burst bucket for Nitro-based instances.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "EBSByteBalance%")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: ebs + triggers: + - uuid: 27f3b00e295d4aeb9a2d0519e95da4e0 + expression: 'max(/AWS EC2 by HTTP/aws.ec2.ebs.byte_balance,5m)<{$AWS.EBS.BYTE.CREDIT.BALANCE.MIN.WARN}' + name: 'AWS EC2: Byte Credit balance is too low' + event_name: 'AWS EC2: Byte Credit balance is too low (less {$AWS.EBS.BYTE.CREDIT.BALANCE.MIN.WARN}% for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 7b8a2b6941d04cde8edc511752755c8f + name: 'EBS: IO balance' + type: DEPENDENT + key: aws.ec2.ebs.io_balance + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of I/O credits remaining in the burst bucket for Nitro-based instances.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "EBSIOBalance%")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: ebs + triggers: + - uuid: f4b9c2238b5443eab31255422bc22d7d + expression: 'max(/AWS EC2 by HTTP/aws.ec2.ebs.io_balance,5m)<{$AWS.EBS.IO.CREDIT.BALANCE.MIN.WARN}' + name: 'AWS EC2: I/O Credit balance is too low' + event_name: 'AWS EC2: I/O Credit balance is too low (less {$AWS.EBS.IO.CREDIT.BALANCE.MIN.WARN}% for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 251c9a3b0afd4930b822f7310f3fda43 + name: 'EBS: Read bytes, rate' + type: DEPENDENT + key: aws.ec2.ebs.read_bytes.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes read from all EBS volumes attached to the instance for Nitro-based instances.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "EBSReadBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: ebs + - uuid: 29eff02b7c464605bc6d69a963d232b5 + name: 'EBS: Read, rate' + type: DEPENDENT + key: aws.ec2.ebs.read_ops.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'Completed read operations from all Amazon EBS volumes attached to the instance for Nitro-based instances.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "EBSReadOps")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: ebs + - uuid: 9dafe0bcfb214d46975f570e2836e9cd + name: 'EBS: Write bytes, rate' + type: DEPENDENT + key: aws.ec2.ebs.write_bytes.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes written to all EBS volumes attached to the instance for Nitro-based instances.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "EBSWriteBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: ebs + - uuid: 2da28e61261746d6b94b244b8f0cf2a8 + name: 'EBS: Write, rate' + type: DEPENDENT + key: aws.ec2.ebs.write_ops.rate + delay: '0' + value_type: FLOAT + description: 'Completed write operations to all EBS volumes attached to the instance in a specified period of time.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "EBSWriteOps")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: ebs + - uuid: 4e0b2ed29500487092148b14245839d4 + name: 'Get instance alarms data' + type: SCRIPT + key: aws.ec2.get_alarms + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path, val) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || data === null || typeof data[step] === 'undefined') { + if (typeof val === 'undefined') { + throw 'Required field was not found: ' + path; + } + return val + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'instance_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS EC2 ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS EC2 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getVolumes: function () { + var payload = { + 'Action': 'DescribeVolumes', + 'Version': '2016-11-15', + 'MaxResults': 100, + 'Filter.1.Name': 'attachment.instance-id', + 'Filter.1.Value': AWS.params.instance_id + }, + value = [], + volumes = [], + volumes_list = []; + + while (payload.NextToken !== '') { + var result = AWS.getField(AWS.request('GET', AWS.params.region, 'ec2', AWS.prepareParams(payload)), 'DescribeVolumesResponse'); + payload.NextToken = result.nextToken || ''; + volumes = AWS.getField(result, 'volumeSet.item', value); + volumes_list.push(Array.isArray(volumes) ? volumes : [volumes]) + + } + var flattenedData = volumes_list.reduce(function (acc, val) { + return acc.concat(val); + }, []); + return flattenedData; + }, + + getAlarms: function () { + var payload = { + 'Action': 'DescribeAlarms', + 'Version': '2010-08-01', + 'MaxRecords': 100 + }, + result = [], + volumes = AWS.getVolumes() + + while (payload.NextToken !== '') { + var alarms = AWS.getField(AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)), 'DescribeAlarmsResponse.DescribeAlarmsResult'); + payload.NextToken = alarms.NextToken || ''; + alarms_list = AWS.getField(alarms, 'MetricAlarms'); + + if (!Array.isArray(alarms_list)) + alarms_list = [alarms_list]; + alarms_list.forEach(function (alarm) { + var dimensions = alarm.Dimensions; + + if (Array.isArray(alarm.Metrics)) { + alarm.Metrics.forEach(function (metric) { + if (typeof metric.MetricStat === 'object' && metric.MetricStat !== null + && typeof metric.MetricStat.Metric === 'object' && metric.MetricStat.Metric !== null + && Array.isArray(metric.MetricStat.Metric.Dimensions)) { + dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions); + } + }); + } + for (var i in dimensions) { + if (dimensions[i].Name === 'InstanceId' && dimensions[i].Value === AWS.params.instance_id) { + result.push(alarm); + break; + } + if (dimensions[i].Name === 'VolumeId' && volumes.indexOf(dimensions[i].Value)) { + result.push(alarm); + break; + } + } + }); + } + + return result; + } + } + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getAlarms()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS EC2 ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'DescribeAlarms API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: instance_id + value: '{$AWS.EC2.INSTANCE.ID}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS EC2"}' + tags: + - tag: component + value: raw + - uuid: 63ab011505f24885b843a9ac48b36a84 + name: 'Get metrics data' + type: SCRIPT + key: aws.ec2.get_metrics + delay: 0s;m/5 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + request_period: 600, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'instance_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareRecursive: function (prefix, param) { + var result = {}; + + if (typeof param === 'object') { + if (Array.isArray(param)) { + param.forEach(function (value, index) { + var nested = AWS.prepareRecursive(prefix + '.member.' + (index + 1), value); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + else { + Object.keys(param).forEach(function (k) { + var nested = AWS.prepareRecursive(prefix + '.' + k, param[k]); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + } + else { + result[prefix] = param; + } + + return result; + }, + + renderPayload: function (period, instance_id) { + var metrics_list = [ + 'StatusCheckFailed:Count', + 'StatusCheckFailed_Instance:Count', + 'StatusCheckFailed_System:Count', + 'CPUUtilization:Percent', + 'NetworkIn:Bytes', + 'NetworkOut:Bytes', + 'NetworkPacketsIn:Count', + 'NetworkPacketsOut:Count', + 'DiskReadOps:Count', + 'DiskWriteOps:Count', + 'DiskReadBytes:Bytes', + 'DiskWriteBytes:Bytes', + 'MetadataNoToken:Count', + 'CPUCreditUsage:Count', + 'CPUCreditBalance:Count', + 'CPUSurplusCreditBalance:Count', + 'CPUSurplusCreditsCharged:Count', + 'EBSReadOps:Count', + 'EBSWriteOps:Count', + 'EBSReadBytes:Bytes', + 'EBSWriteBytes:Bytes', + 'EBSIOBalance %:Percent', + 'EBSByteBalance %:Percent' + ]; + + var metric_payload = []; + metrics_list.forEach(function (metric) { + var parts = metric.split(':', 2); + var name = parts[0].replace(/[^a-zA-Z0-9]/g, ''); + metric_payload.push({ + 'Id': name.charAt(0).toLowerCase() + name.slice(1), + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'AWS/EC2', + 'Dimensions': [ + { + 'Name': 'InstanceId', + 'Value': instance_id + } + ] + }, + 'Period': period, + 'Stat': 'Average', + 'Unit': parts[1] + } + }); + }); + + return metric_payload; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS EC2 ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS EC2 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getMetricsData: function () { + var timestamp = new Date().getTime(), + end_time = new Date(timestamp).toISOString().replace(/\.\d+Z/, 'Z'), + start_time = new Date(timestamp - AWS.request_period * 1000).toISOString().replace(/\.\d+Z/, 'Z'), + payload = AWS.prepareRecursive('MetricDataQueries', AWS.renderPayload(AWS.request_period, AWS.params.instance_id)); + + payload['Action'] = 'GetMetricData'; + payload['Version'] = '2010-08-01'; + payload['StartTime'] = start_time; + payload['EndTime'] = end_time; + payload['ScanBy'] = 'TimestampDescending'; + + result = AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)); + + if (typeof result !== 'object' + || typeof result.GetMetricDataResponse !== 'object' + || typeof result.GetMetricDataResponse.GetMetricDataResult !== 'object' + || typeof result.GetMetricDataResponse.GetMetricDataResult.MetricDataResults !== 'object') { + throw 'Cannot get metrics data from AWS CloudWatch API. Check debug log for more information.'; + } + + return result.GetMetricDataResponse.GetMetricDataResult.MetricDataResults; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS EC2 ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get instance metrics. + Full metrics list related to EC2: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/viewing_metrics_with_cloudwatch.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: instance_id + value: '{$AWS.EC2.INSTANCE.ID}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS EC2"}' + tags: + - tag: component + value: raw + - uuid: 9ec4650b564c41bca9893eca279a8cc7 + name: 'Get volumes data' + type: SCRIPT + key: aws.ec2.get_volumes + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + request_period: 600, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path, val) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || data === null || typeof data[step] === 'undefined') { + if (typeof val === 'undefined') { + throw 'Required field was not found: ' + path; + } + return val + } + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'instance_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS EBS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS EBS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getVolumesData: function () { + var payload = { + 'Action': 'DescribeVolumes', + 'Version': '2016-11-15', + 'Filter.1.Name': 'attachment.instance-id', + 'Filter.1.Value': AWS.params.instance_id, + 'MaxResults': 100 + }, + value = [], + volumes_list = []; + + while (payload.NextToken !== '') { + var result = AWS.getField(AWS.request('GET', AWS.params.region, 'ec2', AWS.prepareParams(payload)), 'DescribeVolumesResponse'), + volumes_set = AWS.getField(result, 'volumeSet'), + volumes = AWS.getField(volumes_set, 'item', value); + volumes_list.push(Array.isArray(volumes) ? volumes : [volumes]); + payload.NextToken = result.nextToken || ''; + } + var flattenedData = volumes_list.reduce(function (acc, val) { + return acc.concat(val); + }, []); + return flattenedData; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getVolumesData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS EBS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get volumes attached to instance. + DescribeVolumes API method: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVolumes.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: instance_id + value: '{$AWS.EC2.INSTANCE.ID}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS EC2"}' + tags: + - tag: component + value: raw + - uuid: adbe9cd98ffa41dda981c7f4e27a0d3b + name: 'Metadata: No token' + type: DEPENDENT + key: aws.ec2.metadata.no_token + delay: '0' + value_type: FLOAT + description: | + The number of times the instance metadata service was successfully accessed using a method that does not use a token. + This metric is used to determine if there are any processes accessing instance metadata that are using Instance Metadata Service Version 1, which does not use a token. + If all requests use token-backed sessions, i.e., Instance Metadata Service Version 2, the value is 0. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "MetadataNoToken")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: metadata + - uuid: 7c264d8d5d934f898f7c745acd429d25 + name: 'EC2 metrics check' + type: DEPENDENT + key: aws.ec2.metrics.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether EC2 metric data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: status + triggers: + - uuid: c2cf3f875aa14416a108dd05df7b053a + expression: 'length(last(/AWS EC2 by HTTP/aws.ec2.metrics.check))>0' + name: 'AWS EC2: Failed to get metrics data' + priority: WARNING + description: 'Failed to get CloudWatch metrics for EC2.' + tags: + - tag: scope + value: availability + - uuid: 2b16d3c6457842d892d06249a5fcd670 + name: 'Network: Bytes in, rate' + type: DEPENDENT + key: aws.ec2.network_in.rate + delay: '0' + value_type: FLOAT + units: Bps + description: | + The number of bytes received on all network interfaces by the instance. + This metric identifies the volume of incoming network traffic to a single instance. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NetworkIn")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: network + - uuid: 87fb8b61f115487696f02e50d98996ac + name: 'Network: Bytes out, rate' + type: DEPENDENT + key: aws.ec2.network_out.rate + delay: '0' + value_type: FLOAT + units: Bps + description: | + The number of bytes sent out on all network interfaces by the instance. + This metric identifies the volume of outgoing network traffic from a single instance. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NetworkOut")].Values.first().first()' + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: network + - uuid: a6b74493528b486782c4b73e080019e1 + name: 'Network: Packets in, rate' + type: DEPENDENT + key: aws.ec2.packets_in.rate + delay: '0' + value_type: FLOAT + description: | + The number of packets received on all network interfaces by the instance. + This metric identifies the volume of incoming traffic in terms of the number of packets on a single instance. + This metric is available for basic monitoring only. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NetworkPacketsIn")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: network + - uuid: 5d998e1680af4410b34fa9071bb7db78 + name: 'Network: Packets out, rate' + type: DEPENDENT + key: aws.ec2.packets_out.rate + delay: '0' + value_type: FLOAT + description: | + The number of packets sent out on all network interfaces by the instance. + This metric identifies the volume of outgoing traffic in terms of the number of packets on a single instance. + This metric is available for basic monitoring only. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NetworkPacketsOut")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return value / 300;' + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: network + - uuid: 30156f76599147eaa5bcd4ca39816bbb + name: 'Status: Check failed' + type: DEPENDENT + key: aws.ec2.status_check_failed + delay: '0' + description: | + Reports whether the instance has passed both the instance status check and the system status check in the last minute. + This metric can be either 0 (passed) or 1 (failed). + valuemap: + name: 'Status check' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "StatusCheckFailed")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: instance + - uuid: b373f0994e784caf8f5f39da20d2f5c8 + name: 'Status: Check failed, instance' + type: DEPENDENT + key: aws.ec2.status_check_failed_instance + delay: '0' + description: | + Reports whether the instance has passed the instance status check in the last minute. + This metric can be either 0 (passed) or 1 (failed). + valuemap: + name: 'Status check' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "StatusCheckFailed_Instance")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: instance + triggers: + - uuid: 0fdd6b02eea948d3a6c958af7f195dc3 + expression: 'last(/AWS EC2 by HTTP/aws.ec2.status_check_failed_instance)=1' + name: 'AWS EC2: Instance status check failed' + priority: AVERAGE + description: | + These checks detect problems that require your involvement to repair. + The following are examples of problems that can cause instance status checks to fail: + + Failed system status checks + Incorrect networking or startup configuration + Exhausted memory + Corrupted file system + Incompatible kernel + tags: + - tag: scope + value: availability + - uuid: c7063824e3a74e6fa55ba21ecba35ca1 + name: 'Status: Check failed, system' + type: DEPENDENT + key: aws.ec2.status_check_failed_system + delay: '0' + description: | + Reports whether the instance has passed the system status check in the last minute. + This metric can be either 0 (passed) or 1 (failed). + valuemap: + name: 'Status check' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "StatusCheckFailed_System")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_metrics + tags: + - tag: component + value: instance + triggers: + - uuid: 723a254ffd72404ea0cc2366ff186c1c + expression: 'last(/AWS EC2 by HTTP/aws.ec2.status_check_failed_system)=1' + name: 'AWS EC2: System status check failed' + priority: AVERAGE + description: | + These checks detect underlying problems with your instance that require AWS involvement to repair. + The following are examples of problems that can cause system status checks to fail: + + Loss of network connectivity + Loss of system power + Software issues on the physical host + Hardware issues on the physical host that impact network reachability + tags: + - tag: scope + value: availability + - uuid: 3c819ed899c044ae8455266292f65632 + name: 'Get volumes info check' + type: DEPENDENT + key: aws.ec2.volumes.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the volume information was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.ec2.get_volumes + tags: + - tag: component + value: status + triggers: + - uuid: 844fb22685804fe7894af7c64b420824 + expression: 'length(last(/AWS EC2 by HTTP/aws.ec2.volumes.check))>0' + name: 'AWS EC2: Failed to get volumes info' + priority: WARNING + description: 'Failed to get CloudWatch volumes for EC2.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 318c50196d2b442e9b702f63e70c0820 + name: 'Instance Alarms discovery' + type: DEPENDENT + key: aws.ec2.alarms.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALARM_NAME}' + value: '{$AWS.EC2.LLD.FILTER.ALARM_NAME.MATCHES}' + formulaid: A + - macro: '{#ALARM_NAME}' + value: '{$AWS.EC2.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.EC2.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + formulaid: C + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.EC2.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery instance and attached EBS volumes alarms.' + item_prototypes: + - uuid: 6294e05dc170431bb3af2caf1ccf6d40 + name: '[{#ALARM_NAME}]: Get metrics' + type: DEPENDENT + key: 'aws.ec2.alarm.get_metrics["{#ALARM_NAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get alarm metrics about the state and its reason.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.AlarmName == "{#ALARM_NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_alarms + tags: + - tag: component + value: raw + - uuid: 87a163166aed40b786785b64122ab365 + name: '[{#ALARM_NAME}]: State' + type: DEPENDENT + key: 'aws.ec2.alarm.state["{#ALARM_NAME}"]' + delay: '0' + description: | + The state value for the alarm. Possible values: 0 (OK), 1 (INSUFFICIENT_DATA), 2 (ALARM). + Alarm description: + {#ALARM_DESCRIPTION} + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - $.StateValue + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: JAVASCRIPT + parameters: + - | + var state = ['OK', 'INSUFFICIENT_DATA', 'ALARM']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + master_item: + key: 'aws.ec2.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: be1301d97b5a47cc81dd6c2b76349f5d + expression: 'last(/AWS EC2 by HTTP/aws.ec2.alarm.state["{#ALARM_NAME}"])=1' + name: 'AWS EC2: [{#ALARM_NAME}] has ''Insufficient data'' state' + priority: INFO + description: 'Either the alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.' + tags: + - tag: scope + value: notice + - uuid: 92a33b49f010464db7e6c7ef586240e9 + name: '[{#ALARM_NAME}]: State reason' + type: DEPENDENT + key: 'aws.ec2.alarm.state_reason["{#ALARM_NAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: | + An explanation for the alarm state, in text format. + Alarm description: + {#ALARM_DESCRIPTION} + preprocessing: + - type: JSONPATH + parameters: + - $.StateReason + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ec2.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: 93813bd6aaf14fcb84068cb2c2e5d47e + expression: 'last(/AWS EC2 by HTTP/aws.ec2.alarm.state["{#ALARM_NAME}"])=2 and length(last(/AWS EC2 by HTTP/aws.ec2.alarm.state_reason["{#ALARM_NAME}"]))>0' + name: 'AWS EC2: [{#ALARM_NAME}] has ''Alarm'' state' + priority: AVERAGE + description: | + Alarm "{#ALARM_NAME}" has 'Alarm' state. + Reason: {ITEM.LASTVALUE2} + tags: + - tag: scope + value: availability + master_item: + key: aws.ec2.get_alarms + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var alarms = JSON.parse(value); + + alarms.forEach(function(alarm) { + + result.push({ + '{#ALARM_DESCRIPTION}': alarm.AlarmDescription !== null ? alarm.AlarmDescription : 'None' , + '{#ALARM_NAME}': alarm.AlarmName, + '{#ALARM_PERIOD}': alarm.Period, + '{#METRIC_NAME}': alarm.MetricName, + '{#ALARM_SERVICE_NAMESPACE}': alarm.Namespace !== null ? alarm.Namespace : 'None' + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 6cf7fc98fea44b0789a5aaa837042699 + name: 'EC2 volumes discovery' + type: DEPENDENT + key: aws.ec2.volumes.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VOLUME_TYPE}' + value: '{$AWS.EC2.LLD.FILTER.VOLUME_TYPE.MATCHES}' + formulaid: A + - macro: '{#VOLUME_TYPE}' + value: '{$AWS.EC2.LLD.FILTER.VOLUME_TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery attached EBS volumes.' + item_prototypes: + - uuid: cc0ece769d954bb590fb1a1a3d20e559 + name: '[{#VOLUME_ID}]: Attachment state' + type: DEPENDENT + key: 'aws.ec2.ebs.attachment_status["{#VOLUME_ID}"]' + delay: '0' + description: 'The attachment state of the volume. Possible values: 0 (attaching), 1 (attached), 2 (detaching).' + valuemap: + name: 'Volume attachment state' + preprocessing: + - type: JSONPATH + parameters: + - '$.attachmentSet..[?(@.instanceId == "{$AWS.EC2.INSTANCE.ID}")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + var state = ['attaching', 'attached', 'detaching']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ec2.ebs.get_volume["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 639e7ddcac6345239fa27549ad35e799 + name: '[{#VOLUME_ID}]: Attachment time' + type: DEPENDENT + key: 'aws.ec2.ebs.attachment_time["{#VOLUME_ID}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The time stamp when the attachment initiated.' + valuemap: + name: 'Volume attachment state' + preprocessing: + - type: JSONPATH + parameters: + - '$.attachmentSet..[?(@.instanceId == "{$AWS.EC2.INSTANCE.ID}")].attachTime.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ec2.ebs.get_volume["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 2df96e6c726e40c6a257c00ae26e8902 + name: '[{#VOLUME_ID}]: Create time' + type: DEPENDENT + key: 'aws.ec2.ebs.create_time["{#VOLUME_ID}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The time stamp when volume creation was initiated.' + preprocessing: + - type: JSONPATH + parameters: + - $.createTime + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ec2.ebs.get_volume["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 141205eac3e4437d824794f8e6c76e90 + name: '[{#VOLUME_ID}]: Device' + type: DEPENDENT + key: 'aws.ec2.ebs.device["{#VOLUME_ID}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The device name specified in the block device mapping (for example, /dev/sda1).' + preprocessing: + - type: JSONPATH + parameters: + - '$.attachmentSet..[?(@.instanceId == "{$AWS.EC2.INSTANCE.ID}")].device.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ec2.ebs.get_volume["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 6145bf692ea0469eb5583485b6622a59 + name: '[{#VOLUME_ID}]: Get volume data' + type: DEPENDENT + key: 'aws.ec2.ebs.get_volume["{#VOLUME_ID}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get data of the "{#VOLUME_ID}" volume.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.volumeId == "{#VOLUME_ID}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ec2.get_volumes + tags: + - tag: component + value: raw + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 95add92252e24ab8b596c539d8090f3d + name: '[{#VOLUME_ID}]: Status' + type: DEPENDENT + key: 'aws.ec2.ebs.status["{#VOLUME_ID}"]' + delay: '0' + description: | + The state of the volume. + Possible values: 0 (creating), 1 (available), 2 (in-use), 3 (deleting), 4 (deleted), 5 (error). + valuemap: + name: 'Volume status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + var state = ['creating', 'available', 'in-use', 'deleting', 'deleted', 'error']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ec2.ebs.get_volume["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + trigger_prototypes: + - uuid: 2d4de438bdaa49b2930496ce6ddbe52d + expression: 'last(/AWS EC2 by HTTP/aws.ec2.ebs.status["{#VOLUME_ID}"])=5' + name: 'AWS EC2: Volume [{#VOLUME_ID}] has ''error'' state' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: fd10966f674e430a9dd70b148dcfa002 + name: '[{#VOLUME_ID}]: Burst balance' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.burst_balance["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Used with General Purpose SSD (gp2), Throughput Optimized HDD (st1), and Cold HDD (sc1) volumes only. + Provides information about the percentage of I/O credits (for gp2) or throughput credits (for st1 and sc1) remaining in the burst bucket. + Data is reported to CloudWatch only when the volume is active. If the volume is not attached, no data is reported. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "BurstBalance")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + trigger_prototypes: + - uuid: 9b2f5687020c4a5987c1b1b35a57d8b9 + expression: 'max(/AWS EC2 by HTTP/aws.ec2.ebs.volume.burst_balance["{#VOLUME_ID}"],5m)<{$AWS.EBS.BURST.CREDIT.BALANCE.MIN.WARN}' + name: 'AWS EC2: Burst balance is too low' + event_name: 'AWS EC2: Burst balance is too low (less {$AWS.EBS.BURST.CREDIT.BALANCE.MIN.WARN}% for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 8b936cef38294799a6826764eae68850 + name: '[{#VOLUME_ID}]: Consumed Read/Write, ops' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.consumed_read_write_ops["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + description: | + Used with Provisioned IOPS SSD volumes only. + The total amount of read and write operations (normalized to 256K capacity units) consumed in a specified period of time. + I/O operations that are smaller than 256K each count as 1 consumed IOPS. I/O operations that are larger than 256K are counted in 256K capacity units. + For example, a 1024K I/O would count as 4 consumed IOPS. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "VolumeConsumedReadWriteOps")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 5476d32c036d49588238cb2d2a4d652f + name: '[{#VOLUME_ID}]: Idle time' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.idle_time["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + units: s + description: | + This metric is not supported with Multi-Attach enabled volumes. + The total number of seconds in a specified period of time when no read or write operations were submitted. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "VolumeIdleTime")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 4dbb00e53cd84b9f88c44c765e73bd85 + name: '[{#VOLUME_ID}]: Queue length' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.queue_length["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + description: 'The number of read and write operation requests waiting to be completed in a specified period of time.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "VolumeQueueLength")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 7313a503be27469ea82733ed965b57e4 + name: '[{#VOLUME_ID}]: Read, bytes' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.read_bytes["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: | + Provides information on the read operations in a specified period of time. + The average size of each read operation during the period, except on volumes attached to a Nitro-based instance, where the average represents the average over the specified period. + For Xen instances, data is reported only when there is read activity on the volume. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "VolumeReadBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 13d3dce70956402c945421c87e8eb784 + name: '[{#VOLUME_ID}]: Read, ops' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.read_ops["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'The total number of read operations in a specified period of time. Note: read operations are counted on completion.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "VolumeReadOps")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 8d0b610ac0e3479a921720ef623ef896 + name: '[{#VOLUME_ID}]: Throughput, pct' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.throughput_percentage["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + This metric is not supported with Multi-Attach enabled volumes. + Used with Provisioned IOPS SSD volumes only. The percentage of I/O operations per second (IOPS) delivered of the total IOPS provisioned for an Amazon EBS volume. + Provisioned IOPS SSD volumes deliver their provisioned performance 99.9 percent of the time. + During a write, if there are no other pending I/O requests in a minute, the metric value will be 100 percent. + Also, a volume's I/O performance may become degraded temporarily due to an action you have taken (for example, creating a snapshot of a volume during peak usage, running the volume on a non-EBS-optimized instance, or accessing data on the volume for the first time). + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "VolumeThroughputPercentage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 58163c98e1b943ceae5fcb52ff85dcfd + name: '[{#VOLUME_ID}]: Read time, total' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.total_read_time["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + units: s + description: | + This metric is not supported with Multi-Attach enabled volumes. + The total number of seconds spent by all read operations that completed in a specified period of time. + If multiple requests are submitted at the same time, this total could be greater than the length of the period. + For example, for a period of 1 minutes (60 seconds): if 150 operations completed during that period, and each operation took 1 second, the value would be 150 seconds. + For Xen instances, data is reported only when there is read activity on the volume. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "VolumeTotalReadTime")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 264a8f7df9e64d219082d5239b90cdf3 + name: '[{#VOLUME_ID}]: Write time, total' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.total_write_time["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + units: s + description: | + This metric is not supported with Multi-Attach enabled volumes. + The total number of seconds spent by all write operations that completed in a specified period of time. + If multiple requests are submitted at the same time, this total could be greater than the length of the period. + For example, for a period of 1 minute (60 seconds): if 150 operations completed during that period, and each operation took 1 second, the value would be 150 seconds. + For Xen instances, data is reported only when there is write activity on the volume. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "VolumeTotalWriteTime")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 459900740e784ca9ba7a8baf5b95734e + name: '[{#VOLUME_ID}]: Write, bytes' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.write_bytes["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: | + Provides information on the write operations in a specified period of time. + The average size of each write operation during the period, except on volumes attached to a Nitro-based instance, where the average represents the average over the specified period. + For Xen instances, data is reported only when there is write activity on the volume. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "VolumeWriteBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 7216494987dc45f59fc3a4b9100e4159 + name: '[{#VOLUME_ID}]: Write, ops' + type: DEPENDENT + key: 'aws.ec2.ebs.volume.write_ops["{#VOLUME_ID}"]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'The total number of write operations in a specified period of time. Note: write operations are counted on completion.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "VolumeWriteOps")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + tags: + - tag: component + value: volumes + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 8b3b008f7f65408fbd49e46186b01cfb + name: '[{#VOLUME_ID}]: Get metrics' + type: SCRIPT + key: 'aws.ec2.get_ebs_metrics["{#VOLUME_ID}"]' + delay: 0s;m/5 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + request_period: 600, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'volume_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareRecursive: function (prefix, param) { + var result = {}; + + if (typeof param === 'object') { + if (Array.isArray(param)) { + param.forEach(function (value, index) { + var nested = AWS.prepareRecursive(prefix + '.member.' + (index + 1), value); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + else { + Object.keys(param).forEach(function (k) { + var nested = AWS.prepareRecursive(prefix + '.' + k, param[k]); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + } + else { + result[prefix] = param; + } + + return result; + }, + + renderPayload: function (period, volume_id) { + var metrics_list = [ + 'VolumeReadBytes:Bytes', + 'VolumeWriteBytes:Bytes', + 'VolumeReadOps:Count', + 'VolumeWriteOps:Count', + 'VolumeTotalReadTime:Seconds', + 'VolumeTotalWriteTime:Seconds', + 'VolumeIdleTime:Seconds', + 'VolumeQueueLength:Count', + 'VolumeThroughputPercentage:Percent', + 'VolumeConsumedReadWriteOps:Count', + 'BurstBalance:Percent' + ]; + + var metric_payload = []; + metrics_list.forEach(function (metric) { + var parts = metric.split(':', 2); + var name = parts[0].replace(/[^a-zA-Z0-9]/g, ''); + metric_payload.push({ + 'Id': name.charAt(0).toLowerCase() + name.slice(1), + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'AWS/EBS', + 'Dimensions': [ + { + 'Name': 'VolumeId', + 'Value': volume_id + } + ] + }, + 'Period': period, + 'Stat': 'Average', + 'Unit': parts[1] + } + }); + }); + + return metric_payload; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS EBS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS EBS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getMetricsData: function () { + var timestamp = new Date().getTime(), + end_time = new Date(timestamp).toISOString().replace(/\.\d+Z/, 'Z'), + start_time = new Date(timestamp - AWS.request_period * 1000).toISOString().replace(/\.\d+Z/, 'Z'), + payload = AWS.prepareRecursive('MetricDataQueries', AWS.renderPayload(AWS.request_period, AWS.params.volume_id)); + + payload['Action'] = 'GetMetricData'; + payload['Version'] = '2010-08-01'; + payload['StartTime'] = start_time; + payload['EndTime'] = end_time; + payload['ScanBy'] = 'TimestampDescending'; + + result = AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)); + + if (typeof result !== 'object' + || typeof result.GetMetricDataResponse !== 'object' + || typeof result.GetMetricDataResponse.GetMetricDataResult !== 'object' + || typeof result.GetMetricDataResponse.GetMetricDataResult.MetricDataResults !== 'object') { + throw 'Cannot get metrics data from AWS CloudWatch API. Check debug log for more information.'; + } + + return result.GetMetricDataResponse.GetMetricDataResult.MetricDataResults; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS EBS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get metrics of EBS volume. + Full metrics list related to EBS: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cloudwatch_ebs.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS EC2"}' + - name: volume_id + value: '{#VOLUME_ID}' + tags: + - tag: component + value: raw + - tag: type + value: '{#VOLUME_TYPE}' + - tag: volume + value: '{#VOLUME_ID}' + graph_prototypes: + - uuid: dbf87c66b9034e1ab40f3a2d4adb1a5a + name: 'AWS EBS: [{#VOLUME_ID}]: Volume read/write bytes' + graph_items: + - color: 199C0D + item: + host: 'AWS EC2 by HTTP' + key: 'aws.ec2.ebs.volume.write_bytes["{#VOLUME_ID}"]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS EC2 by HTTP' + key: 'aws.ec2.ebs.volume.read_bytes["{#VOLUME_ID}"]' + - uuid: 97faf8177efd46f2b90a7078e532f623 + name: 'AWS EBS: [{#VOLUME_ID}]: Volume read/write ops' + graph_items: + - color: 199C0D + item: + host: 'AWS EC2 by HTTP' + key: 'aws.ec2.ebs.volume.write_ops["{#VOLUME_ID}"]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS EC2 by HTTP' + key: 'aws.ec2.ebs.volume.read_ops["{#VOLUME_ID}"]' + - uuid: c27e794ff80a4335874ae9b58c8ce6b8 + name: 'AWS EBS: [{#VOLUME_ID}]: Volume read/write time' + graph_items: + - color: 199C0D + item: + host: 'AWS EC2 by HTTP' + key: 'aws.ec2.ebs.volume.total_write_time["{#VOLUME_ID}"]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS EC2 by HTTP' + key: 'aws.ec2.ebs.volume.total_read_time["{#VOLUME_ID}"]' + master_item: + key: aws.ec2.get_volumes + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var volumes = JSON.parse(value); + + volumes.forEach(function(volume) { + + result.push({ + '{#VOLUME_ID}': volume.volumeId, + '{#VOLUME_TYPE}': volume.volumeType, + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: aws + - tag: target + value: ec2 + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.EBS.BURST.CREDIT.BALANCE.MIN.WARN}' + value: '20' + description: 'Minimum percentage of Byte credits remaining for trigger expression.' + - macro: '{$AWS.EBS.BYTE.CREDIT.BALANCE.MIN.WARN}' + value: '20' + description: 'Minimum percentage of Byte credits remaining for trigger expression.' + - macro: '{$AWS.EBS.IO.CREDIT.BALANCE.MIN.WARN}' + value: '20' + description: 'Minimum percentage of I/O credits remaining for trigger expression.' + - macro: '{$AWS.EC2.CPU.CREDIT.BALANCE.MIN.WARN}' + value: '50' + description: 'Minimum number of free earned CPU credits for trigger expression.' + - macro: '{$AWS.EC2.CPU.CREDIT.SURPLUS.BALANCE.MAX.WARN}' + value: '100' + description: 'Maximum number of spent CPU Surplus credits for trigger expression.' + - macro: '{$AWS.EC2.CPU.UTIL.WARN.MAX}' + value: '85' + description: 'The warning threshold of the CPU utilization expressed in %.' + - macro: '{$AWS.EC2.INSTANCE.ID}' + description: 'EC2 instance ID.' + - macro: '{$AWS.EC2.LLD.FILTER.ALARM_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by name.' + - macro: '{$AWS.EC2.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by name.' + - macro: '{$AWS.EC2.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by namespace.' + - macro: '{$AWS.EC2.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by namespace.' + - macro: '{$AWS.EC2.LLD.FILTER.VOLUME_TYPE.MATCHES}' + value: '.*' + description: 'Filter of discoverable volumes by type.' + - macro: '{$AWS.EC2.LLD.FILTER.VOLUME_TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered volumes by type.' + - macro: '{$AWS.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$AWS.REGION}' + value: us-west-1 + description: 'Amazon EC2 Region code.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS EC2", e.g. {$HTTP.TLS.VERIFY:"AWS EC2"}.' + valuemaps: + - uuid: 50b7fdfdf6de41f4b4b210a07c10cd77 + name: 'Alarm state' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: 'Insufficient data' + - value: '2' + newvalue: Alarm + - value: '255' + newvalue: Unknown + - uuid: d59e4f0c6aaa40bcb5f504f6743d9201 + name: 'Status check' + mappings: + - value: '0' + newvalue: Passed + - value: '1' + newvalue: Failed + - uuid: cf0267337f284182a43db45d823824b7 + name: 'Volume attachment state' + mappings: + - value: '0' + newvalue: Attaching + - value: '1' + newvalue: Attached + - value: '2' + newvalue: Detaching + - value: '255' + newvalue: Unknown + - uuid: 4f31d29791b94e37b065f790609c50b5 + name: 'Volume status' + mappings: + - value: '0' + newvalue: Creating + - value: '1' + newvalue: Available + - value: '2' + newvalue: In-use + - value: '3' + newvalue: Deleting + - value: '4' + newvalue: Deleted + - value: '5' + newvalue: Error + - value: '255' + newvalue: Unknown + graphs: + - uuid: 397c46285f674ac389c59f1c828ae179 + name: 'AWS EC2: Disk read/write bytes' + graph_items: + - color: 199C0D + item: + host: 'AWS EC2 by HTTP' + key: aws.ec2.disk.read_bytes.rate + - sortorder: '1' + color: F63100 + item: + host: 'AWS EC2 by HTTP' + key: aws.ec2.disk_write_bytes.rate + - uuid: 21b7ec1e5e1445e287855e3d1a12c2bc + name: 'AWS EC2: Disk read/write rates' + graph_items: + - color: 199C0D + item: + host: 'AWS EC2 by HTTP' + key: aws.ec2.disk.read_ops.rate + - sortorder: '1' + color: F63100 + item: + host: 'AWS EC2 by HTTP' + key: aws.ec2.disk_write_ops.rate + - uuid: a1244a6a4b6641388546988257e905dc + name: 'AWS EC2: Network packets' + graph_items: + - color: 199C0D + item: + host: 'AWS EC2 by HTTP' + key: aws.ec2.packets_in.rate + - sortorder: '1' + color: F63100 + item: + host: 'AWS EC2 by HTTP' + key: aws.ec2.packets_out.rate + - uuid: 45e96dbc8dff48eeadd18c69b085863f + name: 'AWS EC2: Network traffic' + graph_items: + - color: 199C0D + item: + host: 'AWS EC2 by HTTP' + key: aws.ec2.network_in.rate + - sortorder: '1' + color: F63100 + item: + host: 'AWS EC2 by HTTP' + key: aws.ec2.network_out.rate diff --git a/AWS_ECS_Cluster_by_HTTP.yaml b/AWS_ECS_Cluster_by_HTTP.yaml new file mode 100644 index 0000000..9163928 --- /dev/null +++ b/AWS_ECS_Cluster_by_HTTP.yaml @@ -0,0 +1,2480 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: c94105c23220452baed03ba87f09ca12 + template: 'AWS ECS Cluster by HTTP' + name: 'AWS ECS Cluster by HTTP' + description: | + The template gets AWS ECS Cluster metrics and uses the script item to make HTTP requests to the CloudWatch API. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-7 + groups: + - name: Templates/Cloud + items: + - uuid: 9c4a894d46174d679c58c9a1339dec2f + name: 'Get alarms check' + type: DEPENDENT + key: aws.ecs.alarms.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the alarm data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.ecs.get_alarms + tags: + - tag: component + value: status + triggers: + - uuid: f8ff542b35a345e490910323d5dee19c + expression: 'length(last(/AWS ECS Cluster by HTTP/aws.ecs.alarms.check))>0' + name: 'AWS ECS Cluster: Failed to get alarms data' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch alarms for ECS Cluster.' + tags: + - tag: scope + value: availability + - uuid: c9d2dff2619d41c1a0d1a528fecab461 + name: 'Container Instance Count' + type: DEPENDENT + key: aws.ecs.container_instance_count + delay: '0' + value_type: FLOAT + description: 'The number of EC2 instances running the Amazon ECS agent that are registered with a cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "ContainerInstanceCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: system + - uuid: 161886f00f91479597db4bfaae27db46 + name: 'CPU Reserved' + type: DEPENDENT + key: aws.ecs.cpu_reserved + delay: '0' + value_type: FLOAT + description: | + A number of CPU units reserved by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined CPU reservation in their task definition. + valuemap: + name: 'CPU Reserved' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CpuReserved")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: cpu + - uuid: fc4c44d533304ac3a4f59773c7424324 + name: 'CPU Utilization' + type: DEPENDENT + key: aws.ecs.cpu_utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'Cluster CPU utilization' + preprocessing: + - type: JSONPATH + parameters: + - $.CPUUtilization + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: cpu + triggers: + - uuid: 5395c1d6d27c495a8972d2ea8ca8b02a + expression: 'min(/AWS ECS Cluster by HTTP/aws.ecs.cpu_utilization,15m)>{$AWS.ECS.CLUSTER.CPU.UTIL.WARN}' + name: 'AWS ECS Cluster: High CPU utilization' + event_name: 'AWS ECS Cluster: High CPU utilization (over {$AWS.ECS.CLUSTER.CPU.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 9aefed8b23ee41a7941e41f33fc95ebe + name: 'Get alarms data' + type: SCRIPT + key: aws.ecs.get_alarms + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'cluster_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ECS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ECS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getAlarms: function () { + var payload = { + 'Action': 'DescribeAlarms', + 'Version': '2010-08-01', + 'MaxRecords': 100 + }, + result = []; + + while (payload.NextToken !== '') { + var alarms = AWS.getField(AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)), 'DescribeAlarmsResponse.DescribeAlarmsResult'); + payload.NextToken = alarms.NextToken || ''; + alarms_list = AWS.getField(alarms, 'MetricAlarms'); + + if (!Array.isArray(alarms_list)) + alarms_list = [alarms_list]; + alarms_list.forEach(function (alarm) { + var dimensions = alarm.Dimensions; + + Zabbix.log(4, '[ AWS ECS ] dimensions: ' + JSON.stringify(dimensions)); + if (Array.isArray(alarm.Metrics)) { + alarm.Metrics.forEach(function (metric) { + if (typeof metric.MetricStat === 'object' && metric.MetricStat !== null + && typeof metric.MetricStat.Metric === 'object' && metric.MetricStat.Metric !== null + && Array.isArray(metric.MetricStat.Metric.Dimensions)) { + dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions); + } + }); + } + for (var i in dimensions) { + if (dimensions[i].Name === 'ClusterName' && dimensions[i].Value === AWS.params.cluster_name) { + result.push(alarm); + break; + } + } + }); + } + + return result; + } + } + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getAlarms()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ECS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get alarms data. + DescribeAlarms API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: cluster_name + value: '{$AWS.ECS.CLUSTER.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ECS Cluster"}' + tags: + - tag: component + value: raw + - uuid: fa8f1dc24615438e98cbad686d40eaf7 + name: 'Get cluster services' + type: SCRIPT + key: aws.ecs.get_cluster_services + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'cluster_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/x-www-form-urlencoded'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ECS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ECS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + listServices: function () { + var payload = { + 'Action': 'ListServices', + 'Version': '2014-11-13', + 'maxResults': 100, + 'cluster': AWS.params.cluster_name + }, + services = []; + + while (payload.nextToken !== '') { + var services_list = AWS.getField(AWS.request('GET', AWS.params.region, 'ecs', AWS.prepareParams(payload)), 'ListServicesResponse.ListServicesResult'); + payload.nextToken = services_list.nextToken || ''; + services_arns = AWS.getField(services_list, 'serviceArns'); + + for (k in services_arns) { + id = services_arns[k]; + json = {}; + input = id.split(AWS.params.cluster_name + '/'); + for (var i = 1; i < input.length; i += 2) { + json[input[i]] = input[i + 1]; + } + services.push({ + 'service_name': input[1], + }); + } + }; + + if (Array.isArray(services)) + return services; + else + return [services]; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.listServices()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ECS ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: | + Get cluster services. + Full metrics list related to ECS: https://docs.aws.amazon.com/AmazonECS/latest/userguide/metrics-dimensions.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: cluster_name + value: '{$AWS.ECS.CLUSTER.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ECS Cluster"}' + tags: + - tag: component + value: raw + - uuid: f45389a638c645f8905dc69d6cafb8b3 + name: 'Get cluster metrics' + type: SCRIPT + key: aws.ecs.get_metrics + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + request_period: 600, + metadata: 'http://169.254.169.254/latest/', + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'cluster_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareRecursive: function (prefix, param) { + var result = {}; + + if (typeof param === 'object') { + if (Array.isArray(param)) { + param.forEach(function (value, index) { + var nested = AWS.prepareRecursive(prefix + '.member.' + (index + 1), value); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + else { + Object.keys(param).forEach(function (k) { + var nested = AWS.prepareRecursive(prefix + '.' + k, param[k]); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + } + else { + result[prefix] = param; + } + + return result; + }, + + renderPayload: function (period, cluster_name) { + var metrics_list = [ + 'ContainerInstanceCount:Count', + 'ServiceCount:Count', + 'CpuReserved:None', + 'CpuUtilized:None', + 'MemoryReserved:Megabytes', + 'MemoryUtilized:Megabytes', + 'NetworkRxBytes:Bytes/Second', + 'NetworkTxBytes:Bytes/Second', + 'StorageReadBytes:Bytes', + 'StorageWriteBytes:Bytes', + 'TaskCount:Count' + ]; + + var metric_payload = []; + metrics_list.forEach(function (metric) { + var parts = metric.split(':', 2); + var name = parts[0].replace(/[^a-zA-Z0-9]/g, ''); + metric_payload.push({ + 'Id': name.charAt(0).toLowerCase() + name.slice(1), + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'ECS/ContainerInsights', + 'Dimensions': [ + { + 'Name': 'ClusterName', + 'Value': cluster_name + } + ] + }, + 'Period': period, + 'Stat': 'Average', + 'Unit': parts[1] + } + }); + }); + + return metric_payload; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ECS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ECS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getMetricsData: function () { + var timestamp = new Date().getTime(), + MetricData = [], + CPUUtilization, + MemoryUtilization, + DiskUtilization, + obj = {}, + metrics = ['CpuReserved', 'CpuUtilized', 'MemoryReserved', 'MemoryUtilized'], + end_time = new Date(timestamp).toISOString().replace(/\.\d+Z/, 'Z'), + start_time = new Date(timestamp - AWS.request_period * 1000).toISOString().replace(/\.\d+Z/, 'Z'), + payload = AWS.prepareRecursive('MetricDataQueries', AWS.renderPayload(AWS.request_period, AWS.params.cluster_name)); + + payload['Action'] = 'GetMetricData'; + payload['Version'] = '2010-08-01'; + payload['StartTime'] = start_time; + payload['EndTime'] = end_time; + payload['ScanBy'] = 'TimestampDescending'; + + result = AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)); + MetricData = AWS.getField(result, 'GetMetricDataResponse.GetMetricDataResult.MetricDataResults') + + MetricData.forEach(function (id) { + for (i in metrics) { + if (AWS.getField(id, 'Label') === metrics[i]) { + obj[metrics[i]] = AWS.getField(id, 'Values'); + } + } + }); + CPUUtilization = Math.abs(obj.CpuUtilized * 100 / obj.CpuReserved); + MemoryUtilization = Math.abs(obj.MemoryUtilized * 100 / obj.MemoryReserved); + return ({ MetricData, MemoryUtilization, CPUUtilization, DiskUtilization }); + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ECS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get cluster metrics. + Full metrics list related to ECS: https://docs.aws.amazon.com/AmazonECS/latest/userguide/metrics-dimensions.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: cluster_name + value: '{$AWS.ECS.CLUSTER.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ECS Cluster"}' + tags: + - tag: component + value: raw + - uuid: 0e1c53da0225410ea835f5d471afac13 + name: 'Memory Utilization' + type: DEPENDENT + key: aws.ecs.memory_utilization + delay: '0' + value_type: FLOAT + units: '%' + description: | + The memory being used by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined memory reservation in their task definition. + preprocessing: + - type: JSONPATH + parameters: + - $.MemoryUtilization + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: memory + triggers: + - uuid: a7df755466704f339e5479aeeca3fe30 + expression: 'min(/AWS ECS Cluster by HTTP/aws.ecs.memory_utilization,15m)>{$AWS.ECS.CLUSTER.MEMORY.UTIL.WARN}' + name: 'AWS ECS Cluster: High memory utilization' + event_name: 'AWS ECS Cluster: High memory utilization (over {$AWS.ECS.CLUSTER.MEMORY.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: a214cef0377b4901afc2cb90186e5e46 + name: 'ECS metrics check' + type: DEPENDENT + key: aws.ecs.metrics.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether ECS metric data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: status + triggers: + - uuid: b475c468dbe0477f92b40122321235b0 + expression: 'length(last(/AWS ECS Cluster by HTTP/aws.ecs.metrics.check))>0' + name: 'AWS ECS Cluster: Failed to get metrics data' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch metrics for ECS Cluster.' + tags: + - tag: scope + value: availability + - uuid: 4daa5e7b1bc64b3cbd54d9addea571cd + name: 'Network rx bytes' + type: DEPENDENT + key: aws.ecs.network.rx + delay: '0' + value_type: FLOAT + units: Bps + description: | + The number of bytes received by the resource that is specified by the dimensions that you're using. + This metric is only available for containers in tasks using the awsvpc or bridge network modes. + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "NetworkRxBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: network + - uuid: 59882985019d42009a1993bf8bfd1a31 + name: 'Network tx bytes' + type: DEPENDENT + key: aws.ecs.network.tx + delay: '0' + value_type: FLOAT + units: Bps + description: | + The number of bytes transmitted by the resource that is specified by the dimensions that you're using. + This metric is only available for containers in tasks using the awsvpc or bridge network modes. + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "NetworkTxBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: network + - uuid: 26970ea823294cf2b87a158d8feee872 + name: 'Service Count' + type: DEPENDENT + key: aws.ecs.service_count + delay: '0' + value_type: FLOAT + description: 'The number of services in the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "ServiceCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: system + - uuid: 3cc6d826052c4da49bd8891a99ec2816 + name: 'Task Count' + type: DEPENDENT + key: aws.ecs.task_count + delay: '0' + value_type: FLOAT + description: 'The number of tasks running in the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "TaskCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: system + discovery_rules: + - uuid: 5e1b53e77fd74b61864ed8437c635346 + name: 'Cluster Alarms discovery' + type: DEPENDENT + key: aws.ecs.alarms.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALARM_NAME}' + value: '{$AWS.ECS.LLD.FILTER.ALARM_NAME.MATCHES}' + formulaid: A + - macro: '{#ALARM_NAME}' + value: '{$AWS.ECS.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.ECS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + formulaid: C + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.ECS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery instance alarms.' + item_prototypes: + - uuid: 98d3f64416f746639055abdda6dfc374 + name: '[{#ALARM_NAME}]: Get metrics' + type: DEPENDENT + key: 'aws.ecs.alarm.get_metrics["{#ALARM_NAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get alarm metrics about the state and its reason.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.AlarmName == "{#ALARM_NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_alarms + tags: + - tag: component + value: raw + - uuid: 8a862dd5444f459b88f91a9fdb2ddc5e + name: '[{#ALARM_NAME}]: State' + type: DEPENDENT + key: 'aws.ecs.alarm.state["{#ALARM_NAME}"]' + delay: '0' + description: | + The state value for the alarm. Possible values: 0 (OK), 1 (INSUFFICIENT_DATA), 2 (ALARM). + Alarm description: + {#ALARM_DESCRIPTION} + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - $.StateValue + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: JAVASCRIPT + parameters: + - | + var state = ['OK', 'INSUFFICIENT_DATA', 'ALARM']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + master_item: + key: 'aws.ecs.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: 50061fea24e744298732167898c34e5f + expression: 'last(/AWS ECS Cluster by HTTP/aws.ecs.alarm.state["{#ALARM_NAME}"])=1' + name: 'AWS ECS Cluster: [{#ALARM_NAME}] has ''Insufficient data'' state' + priority: INFO + description: 'Either the alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.' + tags: + - tag: scope + value: notice + - uuid: eacb27b638924fa289e7c119f97879d8 + name: '[{#ALARM_NAME}]: State reason' + type: DEPENDENT + key: 'aws.ecs.alarm.state_reason["{#ALARM_NAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: | + An explanation for the alarm state, in text format. + Alarm description: + {#ALARM_DESCRIPTION} + preprocessing: + - type: JSONPATH + parameters: + - $.StateReason + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ecs.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: 25d14cc75ade4f7881825d5ab7864ca0 + expression: 'last(/AWS ECS Cluster by HTTP/aws.ecs.alarm.state["{#ALARM_NAME}"])=2 and length(last(/AWS ECS Cluster by HTTP/aws.ecs.alarm.state_reason["{#ALARM_NAME}"]))>0' + name: 'AWS ECS Cluster: [{#ALARM_NAME}] has ''Alarm'' state' + priority: AVERAGE + description: | + Alarm "{#ALARM_NAME}" has `Alarm` state. + Reason: {ITEM.LASTVALUE2} + tags: + - tag: scope + value: availability + master_item: + key: aws.ecs.get_alarms + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var alarms = JSON.parse(value); + + alarms.forEach(function(alarm) { + + result.push({ + '{#ALARM_DESCRIPTION}': alarm.AlarmDescription !== null ? alarm.AlarmDescription : 'None' , + '{#ALARM_NAME}': alarm.AlarmName, + '{#ALARM_PERIOD}': alarm.Period, + '{#METRIC_NAME}': alarm.MetricName, + '{#ALARM_SERVICE_NAMESPACE}': alarm.Namespace !== null ? alarm.Namespace : 'None' + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 7ab2cc38ab6f4400b42bee282a7e25e1 + name: 'Cluster Services discovery' + type: DEPENDENT + key: aws.ecs.services.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AWS.ECS.SERVICE.NAME}' + value: '{$AWS.ECS.LLD.FILTER.SERVICE.MATCHES}' + formulaid: A + - macro: '{#AWS.ECS.SERVICE.NAME}' + value: '{$AWS.ECS.LLD.FILTER.SERVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery {$AWS.ECS.CLUSTER.NAME} services.' + item_prototypes: + - uuid: 51de81c8bdcb4359b347e9d9226fcb4b + name: '[{#AWS.ECS.SERVICE.NAME}]: CPU Utilization' + type: DEPENDENT + key: 'aws.ecs.services.cpu.utilization["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + A number of CPU units used by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined CPU reservation in their task definition. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AWS/ECS CPUUtilization")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: cpu + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + trigger_prototypes: + - uuid: 3e8d8d35d5ad4f70ad792fe943a499d2 + expression: 'min(/AWS ECS Cluster by HTTP/aws.ecs.services.cpu.utilization["{#AWS.ECS.SERVICE.NAME}"],15m)>{$AWS.ECS.CLUSTER.SERVICE.CPU.UTIL.WARN}' + name: 'AWS ECS Cluster: [{#AWS.ECS.SERVICE.NAME}]: High CPU utilization' + event_name: 'AWS ECS Cluster: [{#AWS.ECS.SERVICE.NAME}]: High CPU utilization (over {$AWS.ECS.CLUSTER.SERVICE.CPU.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: ba01726f96354fe681fb4d916d461460 + name: '[{#AWS.ECS.SERVICE.NAME}]: CPU Reserved' + type: DEPENDENT + key: 'aws.ecs.services.cpu_reserved["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + description: | + A number of CPU units reserved by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined CPU reservation in their task definition. + valuemap: + name: 'CPU Reserved' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights CpuReserved")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: cpu + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 785fd19ab3344e749ce486e4601f4d8e + name: '[{#AWS.ECS.SERVICE.NAME}]: Desired Task' + type: DEPENDENT + key: 'aws.ecs.services.desired.task["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The desired number of tasks for an {#AWS.ECS.SERVICE.NAME} service.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights DesiredTaskCount")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: d12aae43f0f3446d96e2141a0bf303b8 + name: '[{#AWS.ECS.SERVICE.NAME}]: Get metrics' + type: SCRIPT + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + delay: 0s;m/5 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + request_period: 600, + metadata: 'http://169.254.169.254/latest/', + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'cluster_name', 'service_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareRecursive: function (prefix, param) { + var result = {}; + + if (typeof param === 'object') { + if (Array.isArray(param)) { + param.forEach(function (value, index) { + var nested = AWS.prepareRecursive(prefix + '.member.' + (index + 1), value); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + else { + Object.keys(param).forEach(function (k) { + var nested = AWS.prepareRecursive(prefix + '.' + k, param[k]); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + } + else { + result[prefix] = param; + } + + return result; + }, + + renderPayload: function (period, cluster_name, service_name) { + var metrics_list = [ + 'CpuReserved:None:ECS/ContainerInsights', + 'CpuUtilized:None:ECS/ContainerInsights', + 'CPUUtilization:Percent:AWS/ECS', + 'MemoryUtilization:Percent:AWS/ECS', + 'MemoryReserved:Megabytes:ECS/ContainerInsights', + 'MemoryUtilized:Megabytes:ECS/ContainerInsights', + 'NetworkRxBytes:Bytes/Second:ECS/ContainerInsights', + 'NetworkTxBytes:Bytes/Second:ECS/ContainerInsights', + 'StorageReadBytes:Bytes:ECS/ContainerInsights', + 'StorageWriteBytes:Bytes:ECS/ContainerInsights', + 'DeploymentCount:Count:ECS/ContainerInsights', + 'TaskSetCount:Count:ECS/ContainerInsights', + 'DesiredTaskCount:Count:ECS/ContainerInsights', + 'PendingTaskCount:Count:ECS/ContainerInsights', + 'RunningTaskCount:Count:ECS/ContainerInsights', + 'EphemeralStorageReserved:Gigabytes:ECS/ContainerInsights', + 'EphemeralStorageUtilized:Gigabytes:ECS/ContainerInsights' + ]; + + var metric_payload = []; + metrics_list.forEach(function (metric) { + var parts = metric.split(':', 3); + var name = parts[0].replace(/[^a-zA-Z0-9]/g, ''); + metric_payload.push({ + 'Id': name.charAt(0).toLowerCase() + name.slice(1), + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': parts[2], + 'Dimensions': [ + { + 'Name': 'ClusterName', + 'Value': cluster_name + } + , + { + 'Name': 'ServiceName', + 'Value': service_name + } + ] + }, + 'Period': period, + 'Stat': 'Average', + 'Unit': parts[1] + } + }); + }); + + return metric_payload; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ECS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ECS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getMetricsData: function () { + var timestamp = new Date().getTime(), + end_time = new Date(timestamp).toISOString().replace(/\.\d+Z/, 'Z'), + start_time = new Date(timestamp - AWS.request_period * 1000).toISOString().replace(/\.\d+Z/, 'Z'), + payload = AWS.prepareRecursive('MetricDataQueries', AWS.renderPayload(AWS.request_period, AWS.params.cluster_name, AWS.params.service_name)); + + payload['Action'] = 'GetMetricData'; + payload['Version'] = '2010-08-01'; + payload['StartTime'] = start_time; + payload['EndTime'] = end_time; + payload['ScanBy'] = 'TimestampDescending'; + + result = AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)); + MetricData = AWS.getField(result, 'GetMetricDataResponse.GetMetricDataResult.MetricDataResults') + + return MetricData; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ECS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get metrics of ESC services. + Full metrics list related to ECS : https://docs.aws.amazon.com/ecs/index.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: cluster_name + value: '{$AWS.ECS.CLUSTER.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: service_name + value: '{#AWS.ECS.SERVICE.NAME}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ECS Cluster"}' + tags: + - tag: component + value: raw + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 685671b8a8c34f35ada959c2c6aca1e3 + name: '[{#AWS.ECS.SERVICE.NAME}]: Memory utilization' + type: DEPENDENT + key: 'aws.ecs.services.memory.utilization["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + The memory being used by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined memory reservation in their task definition. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AWS/ECS MemoryUtilization")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: memory + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + trigger_prototypes: + - uuid: a1116a5e75f24b50864a0fb5ea7ad99d + expression: 'min(/AWS ECS Cluster by HTTP/aws.ecs.services.memory.utilization["{#AWS.ECS.SERVICE.NAME}"],15m)>{$AWS.ECS.CLUSTER.SERVICE.MEMORY.UTIL.WARN}' + name: 'AWS ECS Cluster: [{#AWS.ECS.SERVICE.NAME}]: High memory utilization' + event_name: 'AWS ECS Cluster: [{#AWS.ECS.SERVICE.NAME}]: High memory utilization (over {$AWS.ECS.CLUSTER.SERVICE.MEMORY.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 538e0157704e40ffa124d6b74208f71b + name: '[{#AWS.ECS.SERVICE.NAME}]: Memory reserved' + type: DEPENDENT + key: 'aws.ecs.services.memory_reserved["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + The memory that is reserved by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined memory reservation in their task definition. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights MemoryReserved")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: memory + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 80471d41639f4e7a87174cad13f7f3a4 + name: '[{#AWS.ECS.SERVICE.NAME}]: Memory utilized' + type: DEPENDENT + key: 'aws.ecs.services.memory_utilized["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + The memory being used by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined memory reservation in their task definition. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights MemoryUtilized")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: memory + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 52c14dd824174368acc0918d1c4670e4 + name: '[{#AWS.ECS.SERVICE.NAME}]: Network rx bytes' + type: DEPENDENT + key: 'aws.ecs.services.network.rx["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: | + The number of bytes received by the resource that is specified by the dimensions that you're using. + This metric is only available for containers in tasks using the awsvpc or bridge network modes. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights NetworkRxBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: network + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 598337e977b2460ca3ce0844061a619c + name: '[{#AWS.ECS.SERVICE.NAME}]: Network tx bytes' + type: DEPENDENT + key: 'aws.ecs.services.network.tx["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: | + The number of bytes transmitted by the resource that is specified by the dimensions that you're using. + This metric is only available for containers in tasks using the awsvpc or bridge network modes. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights NetworkTxBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: network + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 38d4200dad444b42b77e3fd1fe355007 + name: '[{#AWS.ECS.SERVICE.NAME}]: Pending Task' + type: DEPENDENT + key: 'aws.ecs.services.pending.task["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of tasks currently in the `pending` state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights PendingTaskCount")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 3e1538ea18d7417889536bfce39bc22c + name: '[{#AWS.ECS.SERVICE.NAME}]: Running Task' + type: DEPENDENT + key: 'aws.ecs.services.running.task["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of tasks currently in the `running` state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights RunningTaskCount")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 46b30a391af44cc5b9a70832189ffb2b + name: '[{#AWS.ECS.SERVICE.NAME}]: Task Set' + type: DEPENDENT + key: 'aws.ecs.services.task.set["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of task sets in the {#AWS.ECS.SERVICE.NAME} service.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights TaskSetCount")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + graph_prototypes: + - uuid: e4034a72c2834434b5b15f96469e97ff + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: CPU Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 2196F3 + item: + host: 'AWS ECS Cluster by HTTP' + key: 'aws.ecs.services.cpu.utilization["{#AWS.ECS.SERVICE.NAME}"]' + - uuid: 5c5da1e0886740ed80d43597c2b6ee96 + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: Memory Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 2196F3 + item: + host: 'AWS ECS Cluster by HTTP' + key: 'aws.ecs.services.memory.utilization["{#AWS.ECS.SERVICE.NAME}"]' + - uuid: 2057845fb9b641299c7406f1c1127710 + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: Network' + graph_items: + - color: 199C0D + item: + host: 'AWS ECS Cluster by HTTP' + key: 'aws.ecs.services.network.rx["{#AWS.ECS.SERVICE.NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS ECS Cluster by HTTP' + key: 'aws.ecs.services.network.tx["{#AWS.ECS.SERVICE.NAME}"]' + master_item: + key: aws.ecs.get_cluster_services + lld_macro_paths: + - lld_macro: '{#AWS.ECS.SERVICE.NAME}' + path: $.service_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: aws + - tag: target + value: ecs + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.ECS.CLUSTER.CPU.UTIL.WARN}' + value: '70' + description: 'The warning threshold of the cluster CPU utilization expressed in %.' + - macro: '{$AWS.ECS.CLUSTER.MEMORY.UTIL.WARN}' + value: '70' + description: 'The warning threshold of the cluster memory utilization expressed in %.' + - macro: '{$AWS.ECS.CLUSTER.NAME}' + description: 'ECS cluster name.' + - macro: '{$AWS.ECS.CLUSTER.SERVICE.CPU.UTIL.WARN}' + value: '80' + description: 'The warning threshold of the cluster service CPU utilization expressed in %.' + - macro: '{$AWS.ECS.CLUSTER.SERVICE.MEMORY.UTIL.WARN}' + value: '80' + description: 'The warning threshold of the cluster service memory utilization expressed in %.' + - macro: '{$AWS.ECS.LLD.FILTER.ALARM_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by name.' + - macro: '{$AWS.ECS.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by name.' + - macro: '{$AWS.ECS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by namespace.' + - macro: '{$AWS.ECS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by namespace.' + - macro: '{$AWS.ECS.LLD.FILTER.SERVICE.MATCHES}' + value: '.*' + description: 'Filter of discoverable services by name.' + - macro: '{$AWS.ECS.LLD.FILTER.SERVICE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered services by name.' + - macro: '{$AWS.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$AWS.REGION}' + value: us-west-1 + description: 'Amazon ECS Region code.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + type: SECRET_TEXT + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS ECS Cluster", e.g. {$HTTP.TLS.VERIFY:"AWS ECS Cluster"}.' + dashboards: + - uuid: d06afc9b9488445d887659b67d955384 + name: 'Overview AWS ECS Cluster' + pages: + - name: Cluster + widgets: + - type: item + name: 'Service count' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS ECS Cluster by HTTP' + key: aws.ecs.service_count + - type: INTEGER + name: show.0 + value: '2' + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ECS Cluster by HTTP' + name: 'AWS ECS Cluster: CPU Utilization' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ECS Cluster by HTTP' + name: 'AWS ECS Cluster: Memory Utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ECS Cluster by HTTP' + name: 'AWS ECS Cluster: Network' + - type: STRING + name: reference + value: AAAAA + - type: item + name: 'Task count' + x: '24' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS ECS Cluster by HTTP' + key: aws.ecs.task_count + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'Container instance count' + x: '48' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS ECS Cluster by HTTP' + key: aws.ecs.container_instance_count + - type: INTEGER + name: show.0 + value: '2' + - name: Services + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS ECS Cluster by HTTP' + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: CPU Utilization' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS ECS Cluster by HTTP' + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: Memory Utilization' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS ECS Cluster by HTTP' + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: Network' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: 6b0f40b56f1c49f0beb66ffb85009c15 + name: 'Alarm state' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: 'Insufficient data' + - value: '2' + newvalue: Alarm + - value: '255' + newvalue: Unknown + - uuid: bb1024c6e5a14c05a8a91ea36aff6d99 + name: 'CPU Reserved' + mappings: + - value: '256' + newvalue: '.25 vCPU' + - value: '512' + newvalue: '.5 vCPU' + - value: '1024' + newvalue: '1 vCPU' + - value: '2048' + newvalue: '2 vCPU' + - value: '4096' + newvalue: '4 vCPU' + - value: '8192' + newvalue: '8 vCPU' + - value: '16384' + newvalue: '16 vCPU' + - value: '32768' + newvalue: '32 vCPU' + graphs: + - uuid: e962b86d53c749b6914c3d50fb8757ff + name: 'AWS ECS Cluster: CPU Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 2196F3 + item: + host: 'AWS ECS Cluster by HTTP' + key: aws.ecs.cpu_utilization + - uuid: 5f9d5878b5954d59bee0ca5d977f3dc7 + name: 'AWS ECS Cluster: Memory Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 2196F3 + item: + host: 'AWS ECS Cluster by HTTP' + key: aws.ecs.memory_utilization + - uuid: 503c0a606b1440f4bc02f115196ef9ad + name: 'AWS ECS Cluster: Network' + graph_items: + - color: 199C0D + item: + host: 'AWS ECS Cluster by HTTP' + key: aws.ecs.network.rx + - sortorder: '1' + color: F63100 + item: + host: 'AWS ECS Cluster by HTTP' + key: aws.ecs.network.tx diff --git a/AWS_ECS_Serverless_Cluster_by_HTTP.yaml b/AWS_ECS_Serverless_Cluster_by_HTTP.yaml new file mode 100644 index 0000000..6f4577f --- /dev/null +++ b/AWS_ECS_Serverless_Cluster_by_HTTP.yaml @@ -0,0 +1,2645 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 5e225ad1c2cc4d0bbf75586e7bf8871b + template: 'AWS ECS Serverless Cluster by HTTP' + name: 'AWS ECS Serverless Cluster by HTTP' + description: | + The template gets AWS ECS Serverless Cluster metrics and uses the script item to make HTTP requests to the CloudWatch API. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-7 + groups: + - name: Templates/Cloud + items: + - uuid: eb064f2ac4f54a5baf05940fc58e651f + name: 'Get alarms check' + type: DEPENDENT + key: aws.ecs.alarms.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the alarm data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.ecs.get_alarms + tags: + - tag: component + value: status + triggers: + - uuid: 76b9777749a041049faaa469daf82c4e + expression: 'length(last(/AWS ECS Serverless Cluster by HTTP/aws.ecs.alarms.check))>0' + name: 'AWS ECS Serverless: Failed to get alarms data' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch alarms for ECS Cluster.' + tags: + - tag: scope + value: availability + - uuid: fe542fdbef9d4889a7443ee761a46119 + name: 'Container Instance Count' + type: DEPENDENT + key: aws.ecs.container_instance_count + delay: '0' + value_type: FLOAT + description: 'The number of EC2 instances running the Amazon ECS agent that are registered with a cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "ContainerInstanceCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: system + - uuid: bbfd5c05bd5f49ec984d849b6d45dfdd + name: 'CPU Utilization' + type: DEPENDENT + key: aws.ecs.cpu_utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'Cluster CPU utilization.' + preprocessing: + - type: JSONPATH + parameters: + - $.CPUUtilization + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: cpu + triggers: + - uuid: d8b5d12b4c6b4b2386fe2540dc387fa7 + expression: 'min(/AWS ECS Serverless Cluster by HTTP/aws.ecs.cpu_utilization,15m)>{$AWS.ECS.CLUSTER.CPU.UTIL.WARN}' + name: 'AWS ECS Serverless: High CPU utilization' + event_name: 'AWS ECS Serverless: High CPU utilization (over {$AWS.ECS.CLUSTER.CPU.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 32f0b934b2d14b008780e73371328eac + name: 'Ephemeral Storage Utilization' + type: DEPENDENT + key: aws.ecs.disk.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'The calculated Disk Utilization.' + preprocessing: + - type: JSONPATH + parameters: + - $.DiskUtilization + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: storage + - uuid: d3d2c2df9fd54d24b4598ec247152ca4 + name: 'Ephemeral Storage Reserved' + type: DEPENDENT + key: aws.ecs.ephemeral.storage.reserved + delay: '0' + value_type: FLOAT + units: B + description: | + The number of bytes reserved from ephemeral storage in the resource that is specified by the dimensions that you're using. Ephemeral storage is used for the container root filesystem and any bind mount host volumes defined in the container image and task definition. The amount of ephemeral storage can’t be changed in a running task. + This metric is only available for tasks that run on Fargate Linux platform version 1.4.0 or later. + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "EphemeralStorageReserved")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1073741824' + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: storage + - uuid: 36556a43a93d436db94685441a12273f + name: 'Ephemeral Storage Utilized' + type: DEPENDENT + key: aws.ecs.ephemeral.storage.utilized + delay: '0' + value_type: FLOAT + units: B + description: | + The number of bytes used from ephemeral storage in the resource that is specified by the dimensions that you're using. Ephemeral storage is used for the container root filesystem and any bind mount host volumes defined in the container image and task definition. The amount of ephemeral storage can’t be changed in a running task. + This metric is only available for tasks that run on Fargate Linux platform version 1.4.0 or later. + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "EphemeralStorageUtilized")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1073741824' + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: storage + - uuid: ee28426c92874a99b998198a5539599d + name: 'Get alarms data' + type: SCRIPT + key: aws.ecs.get_alarms + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'cluster_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ECS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ECS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getAlarms: function () { + var payload = { + 'Action': 'DescribeAlarms', + 'Version': '2010-08-01', + 'MaxRecords': 100 + }, + result = []; + + while (payload.NextToken !== '') { + var alarms = AWS.getField(AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)), 'DescribeAlarmsResponse.DescribeAlarmsResult'); + payload.NextToken = alarms.NextToken || ''; + alarms_list = AWS.getField(alarms, 'MetricAlarms'); + + if (!Array.isArray(alarms_list)) + alarms_list = [alarms_list]; + alarms_list.forEach(function (alarm) { + var dimensions = alarm.Dimensions; + + Zabbix.log(4, '[ AWS ECS ] dimensions: ' + JSON.stringify(dimensions)); + if (Array.isArray(alarm.Metrics)) { + alarm.Metrics.forEach(function (metric) { + if (typeof metric.MetricStat === 'object' && metric.MetricStat !== null + && typeof metric.MetricStat.Metric === 'object' && metric.MetricStat.Metric !== null + && Array.isArray(metric.MetricStat.Metric.Dimensions)) { + dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions); + } + }); + } + for (var i in dimensions) { + if (dimensions[i].Name === 'ClusterName' && dimensions[i].Value === AWS.params.cluster_name) { + result.push(alarm); + break; + } + } + }); + } + + return result; + } + } + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getAlarms()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ECS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get alarms data. + DescribeAlarms API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: cluster_name + value: '{$AWS.ECS.CLUSTER.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ECS Serverless Cluster"}' + tags: + - tag: component + value: raw + - uuid: 9818272bc51e4848bba7b2863dda9424 + name: 'Get cluster services' + type: SCRIPT + key: aws.ecs.get_cluster_services + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'cluster_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/x-www-form-urlencoded'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ECS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ECS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + listServices: function () { + var payload = { + 'Action': 'ListServices', + 'Version': '2014-11-13', + 'maxResults': 100, + 'cluster': AWS.params.cluster_name + }, + services = []; + + while (payload.nextToken !== '') { + var services_list = AWS.getField(AWS.request('GET', AWS.params.region, 'ecs', AWS.prepareParams(payload)), 'ListServicesResponse.ListServicesResult'); + payload.nextToken = services_list.nextToken || ''; + services_arns = AWS.getField(services_list, 'serviceArns'); + + for (k in services_arns) { + id = services_arns[k]; + json = {}; + input = id.split(AWS.params.cluster_name + '/'); + for (var i = 1; i < input.length; i += 2) { + json[input[i]] = input[i + 1]; + } + services.push({ + 'service_name': input[1], + }); + } + }; + + if (Array.isArray(services)) + return services; + else + return [services]; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.listServices()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ECS ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: | + Get cluster services. + Full metrics list related to ECS: https://docs.aws.amazon.com/AmazonECS/latest/userguide/metrics-dimensions.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: cluster_name + value: '{$AWS.ECS.CLUSTER.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ECS Serverless Cluster"}' + tags: + - tag: component + value: raw + - uuid: 01f1a371b56e4945b604cd8b396c85f5 + name: 'Get cluster metrics' + type: SCRIPT + key: aws.ecs.get_metrics + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + request_period: 600, + metadata: 'http://169.254.169.254/latest/', + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'cluster_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareRecursive: function (prefix, param) { + var result = {}; + + if (typeof param === 'object') { + if (Array.isArray(param)) { + param.forEach(function (value, index) { + var nested = AWS.prepareRecursive(prefix + '.member.' + (index + 1), value); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + else { + Object.keys(param).forEach(function (k) { + var nested = AWS.prepareRecursive(prefix + '.' + k, param[k]); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + } + else { + result[prefix] = param; + } + + return result; + }, + + renderPayload: function (period, cluster_name) { + var metrics_list = [ + 'ContainerInstanceCount:Count', + 'ServiceCount:Count', + 'CpuReserved:None', + 'CpuUtilized:None', + 'MemoryReserved:Megabytes', + 'MemoryUtilized:Megabytes', + 'NetworkRxBytes:Bytes/Second', + 'NetworkTxBytes:Bytes/Second', + 'StorageReadBytes:Bytes', + 'StorageWriteBytes:Bytes', + 'TaskCount:Count', + 'EphemeralStorageReserved:Gigabytes', + 'EphemeralStorageUtilized:Gigabytes' + ]; + + var metric_payload = []; + metrics_list.forEach(function (metric) { + var parts = metric.split(':', 2); + var name = parts[0].replace(/[^a-zA-Z0-9]/g, ''); + metric_payload.push({ + 'Id': name.charAt(0).toLowerCase() + name.slice(1), + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'ECS/ContainerInsights', + 'Dimensions': [ + { + 'Name': 'ClusterName', + 'Value': cluster_name + } + ] + }, + 'Period': period, + 'Stat': 'Average', + 'Unit': parts[1] + } + }); + }); + + return metric_payload; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ECS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ECS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getMetricsData: function () { + var timestamp = new Date().getTime(), + MetricData = [], + CPUUtilization, + MemoryUtilization, + DiskUtilization, + obj = {}, + metrics = ['CpuReserved', 'CpuUtilized', 'MemoryReserved', 'MemoryUtilized', 'EphemeralStorageReserved', 'EphemeralStorageUtilized'], + end_time = new Date(timestamp).toISOString().replace(/\.\d+Z/, 'Z'), + start_time = new Date(timestamp - AWS.request_period * 1000).toISOString().replace(/\.\d+Z/, 'Z'), + payload = AWS.prepareRecursive('MetricDataQueries', AWS.renderPayload(AWS.request_period, AWS.params.cluster_name)); + + payload['Action'] = 'GetMetricData'; + payload['Version'] = '2010-08-01'; + payload['StartTime'] = start_time; + payload['EndTime'] = end_time; + payload['ScanBy'] = 'TimestampDescending'; + + result = AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)); + MetricData = AWS.getField(result, 'GetMetricDataResponse.GetMetricDataResult.MetricDataResults') + + MetricData.forEach(function (id) { + for (i in metrics) { + if (AWS.getField(id, 'Label') === metrics[i]) { + obj[metrics[i]] = AWS.getField(id, 'Values'); + } + } + }); + CPUUtilization = Math.abs(obj.CpuUtilized * 100 / obj.CpuReserved); + MemoryUtilization = Math.abs(obj.MemoryUtilized * 100 / obj.MemoryReserved); + DiskUtilization = Math.abs(obj.EphemeralStorageUtilized * 100 / obj.EphemeralStorageReserved); + return ({ MetricData, MemoryUtilization, CPUUtilization, DiskUtilization }); + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ECS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get cluster metrics. + Full metrics list related to ECS: https://docs.aws.amazon.com/AmazonECS/latest/userguide/metrics-dimensions.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: cluster_name + value: '{$AWS.ECS.CLUSTER.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ECS Serverless Cluster"}' + tags: + - tag: component + value: raw + - uuid: 66b7893a750144fa9c02391bc6b4c79c + name: 'Memory Utilization' + type: DEPENDENT + key: aws.ecs.memory_utilization + delay: '0' + value_type: FLOAT + units: '%' + description: | + The memory being used by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined memory reservation in their task definition. + preprocessing: + - type: JSONPATH + parameters: + - $.MemoryUtilization + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: memory + triggers: + - uuid: 2f0d82467a754fada1ab4f38ce2c2c5b + expression: 'min(/AWS ECS Serverless Cluster by HTTP/aws.ecs.memory_utilization,15m)>{$AWS.ECS.CLUSTER.MEMORY.UTIL.WARN}' + name: 'AWS ECS Serverless: High memory utilization' + event_name: 'AWS ECS Serverless: High memory utilization (over {$AWS.ECS.CLUSTER.MEMORY.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 852512ccdd9e48f9849ac019d94cdf55 + name: 'ECS metrics check' + type: DEPENDENT + key: aws.ecs.metrics.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether ECS metric data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: status + triggers: + - uuid: 91ce423ddff44f0b8364e6d6470b15c5 + expression: 'length(last(/AWS ECS Serverless Cluster by HTTP/aws.ecs.metrics.check))>0' + name: 'AWS ECS Serverless: Failed to get metrics data' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch metrics for ECS Cluster.' + tags: + - tag: scope + value: availability + - uuid: 203c0c6607034e79ac9038d65cc4ee54 + name: 'Network rx bytes' + type: DEPENDENT + key: aws.ecs.network.rx + delay: '0' + value_type: FLOAT + units: Bps + description: | + The number of bytes received by the resource that is specified by the dimensions that you're using. + This metric is only available for containers in tasks using the awsvpc or bridge network modes. + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "NetworkRxBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: network + - uuid: ff917b212098496e814f259c6bf71146 + name: 'Network tx bytes' + type: DEPENDENT + key: aws.ecs.network.tx + delay: '0' + value_type: FLOAT + units: Bps + description: | + The number of bytes transmitted by the resource that is specified by the dimensions that you're using. + This metric is only available for containers in tasks using the awsvpc or bridge network modes. + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "NetworkTxBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: network + - uuid: b7aa2555bbc24d8587f89e39a4929e7e + name: 'Service Count' + type: DEPENDENT + key: aws.ecs.service_count + delay: '0' + value_type: FLOAT + description: 'The number of services in the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "ServiceCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: system + - uuid: 81d2ab08f2aa4608921269da28778e76 + name: 'Task Count' + type: DEPENDENT + key: aws.ecs.task_count + delay: '0' + value_type: FLOAT + description: 'The number of tasks running in the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.MetricData[?(@.Label == "TaskCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_metrics + tags: + - tag: component + value: system + discovery_rules: + - uuid: 8cc32fccef92436eb0aabf7888e43735 + name: 'Cluster Alarms discovery' + type: DEPENDENT + key: aws.ecs.alarms.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALARM_NAME}' + value: '{$AWS.ECS.LLD.FILTER.ALARM_NAME.MATCHES}' + formulaid: A + - macro: '{#ALARM_NAME}' + value: '{$AWS.ECS.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.ECS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + formulaid: C + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.ECS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery instance alarms.' + item_prototypes: + - uuid: a0cee89be68746ad8ad30de7ba1f444c + name: '[{#ALARM_NAME}]: Get metrics' + type: DEPENDENT + key: 'aws.ecs.alarm.get_metrics["{#ALARM_NAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get alarm metrics about the state and its reason.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.AlarmName == "{#ALARM_NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.ecs.get_alarms + tags: + - tag: component + value: raw + - uuid: 7224b197422a4b8583a4a6ce43117153 + name: '[{#ALARM_NAME}]: State' + type: DEPENDENT + key: 'aws.ecs.alarm.state["{#ALARM_NAME}"]' + delay: '0' + description: | + The state value for the alarm. Possible values: 0 (OK), 1 (INSUFFICIENT_DATA), 2 (ALARM). + Alarm description: + {#ALARM_DESCRIPTION} + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - $.StateValue + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: JAVASCRIPT + parameters: + - | + var state = ['OK', 'INSUFFICIENT_DATA', 'ALARM']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + master_item: + key: 'aws.ecs.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: 78c58e8dddd34d7cbb5a9bdaada6db6d + expression: 'last(/AWS ECS Serverless Cluster by HTTP/aws.ecs.alarm.state["{#ALARM_NAME}"])=1' + name: 'AWS ECS Serverless: [{#ALARM_NAME}] has ''Insufficient data'' state' + priority: INFO + description: 'Either the alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.' + tags: + - tag: scope + value: notice + - uuid: a45dcc184496489aa4564b290392a0b6 + name: '[{#ALARM_NAME}]: State reason' + type: DEPENDENT + key: 'aws.ecs.alarm.state_reason["{#ALARM_NAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: | + An explanation for the alarm state, in text format. + Alarm description: + {#ALARM_DESCRIPTION} + preprocessing: + - type: JSONPATH + parameters: + - $.StateReason + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ecs.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: 64c6b0244f5a49f89465595d74b35880 + expression: 'last(/AWS ECS Serverless Cluster by HTTP/aws.ecs.alarm.state["{#ALARM_NAME}"])=2 and length(last(/AWS ECS Serverless Cluster by HTTP/aws.ecs.alarm.state_reason["{#ALARM_NAME}"]))>0' + name: 'AWS ECS Serverless: [{#ALARM_NAME}] has ''Alarm'' state' + priority: AVERAGE + description: | + Alarm "{#ALARM_NAME}" has 'Alarm' state. + Reason: {ITEM.LASTVALUE2} + tags: + - tag: scope + value: availability + master_item: + key: aws.ecs.get_alarms + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var alarms = JSON.parse(value); + + alarms.forEach(function(alarm) { + + result.push({ + '{#ALARM_DESCRIPTION}': alarm.AlarmDescription !== null ? alarm.AlarmDescription : 'None' , + '{#ALARM_NAME}': alarm.AlarmName, + '{#ALARM_PERIOD}': alarm.Period, + '{#METRIC_NAME}': alarm.MetricName, + '{#ALARM_SERVICE_NAMESPACE}': alarm.Namespace !== null ? alarm.Namespace : 'None' + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: adc6dcb0deef4aa79f8f39f4c8198871 + name: 'Cluster Services discovery' + type: DEPENDENT + key: aws.ecs.services.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AWS.ECS.SERVICE.NAME}' + value: '{$AWS.ECS.LLD.FILTER.SERVICE.MATCHES}' + formulaid: A + - macro: '{#AWS.ECS.SERVICE.NAME}' + value: '{$AWS.ECS.LLD.FILTER.SERVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery {$AWS.ECS.CLUSTER.NAME} services.' + item_prototypes: + - uuid: e098ff8ab20a468ba4a38ff621ff7aa6 + name: '[{#AWS.ECS.SERVICE.NAME}]: CPU Utilization' + type: DEPENDENT + key: 'aws.ecs.services.cpu.utilization["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + A number of CPU units used by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined CPU reservation in their task definition. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AWS/ECS CPUUtilization")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: cpu + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + trigger_prototypes: + - uuid: 9c0d75d7b6ad40e18afa52cbcde3c2d9 + expression: 'min(/AWS ECS Serverless Cluster by HTTP/aws.ecs.services.cpu.utilization["{#AWS.ECS.SERVICE.NAME}"],15m)>{$AWS.ECS.CLUSTER.SERVICE.CPU.UTIL.WARN}' + name: 'AWS ECS Serverless: [{#AWS.ECS.SERVICE.NAME}]: High CPU utilization' + event_name: 'AWS ECS Serverless: [{#AWS.ECS.SERVICE.NAME}]: High CPU utilization (over {$AWS.ECS.CLUSTER.SERVICE.CPU.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: a1e8143735f246cb9daf660bde09e908 + name: '[{#AWS.ECS.SERVICE.NAME}]: CPU Reserved' + type: DEPENDENT + key: 'aws.ecs.services.cpu_reserved["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + description: | + A number of CPU units reserved by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined CPU reservation in their task definition. + valuemap: + name: 'CPU Reserved' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights CpuReserved")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: cpu + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 23f91e8623604201be2e8c194e5f0ba7 + name: '[{#AWS.ECS.SERVICE.NAME}]: Desired Task' + type: DEPENDENT + key: 'aws.ecs.services.desired.task["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The desired number of tasks for an {#AWS.ECS.SERVICE.NAME} service.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights DesiredTaskCount")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 84b099e6e7b243f69a8b840d03b1035e + name: '[{#AWS.ECS.SERVICE.NAME}]: Ephemeral storage reserved' + type: DEPENDENT + key: 'aws.ecs.services.ephemeral.storage.reserved["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + The number of bytes reserved from ephemeral storage in the resource that is specified by the dimensions that you're using. Ephemeral storage is used for the container root filesystem and any bind mount host volumes defined in the container image and task definition. The amount of ephemeral storage can’t be changed in a running task. + This metric is only available for tasks that run on Fargate Linux platform version 1.4.0 or later. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights EphemeralStorageReserved")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1073741824' + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: component + value: storage + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: fa0a602c008346318dd2b747ecd3a6cf + name: '[{#AWS.ECS.SERVICE.NAME}]: Ephemeral storage utilized' + type: DEPENDENT + key: 'aws.ecs.services.ephemeral.storage.utilized["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + The number of bytes used from ephemeral storage in the resource that is specified by the dimensions that you're using. Ephemeral storage is used for the container root filesystem and any bind mount host volumes defined in the container image and task definition. The amount of ephemeral storage can’t be changed in a running task. + This metric is only available for tasks that run on Fargate Linux platform version 1.4.0 or later. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights EphemeralStorageUtilized")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1073741824' + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: component + value: storage + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 0f80f5477ed04dbfbcb241c06854a6ff + name: '[{#AWS.ECS.SERVICE.NAME}]: Get metrics' + type: SCRIPT + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + delay: 0s;m/5 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + request_period: 600, + metadata: 'http://169.254.169.254/latest/', + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'cluster_name', 'service_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareRecursive: function (prefix, param) { + var result = {}; + + if (typeof param === 'object') { + if (Array.isArray(param)) { + param.forEach(function (value, index) { + var nested = AWS.prepareRecursive(prefix + '.member.' + (index + 1), value); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + else { + Object.keys(param).forEach(function (k) { + var nested = AWS.prepareRecursive(prefix + '.' + k, param[k]); + Object.keys(nested).forEach(function (key) { + result[key] = nested[key]; + }); + }); + } + } + else { + result[prefix] = param; + } + + return result; + }, + + renderPayload: function (period, cluster_name, service_name) { + var metrics_list = [ + 'CpuReserved:None:ECS/ContainerInsights', + 'CpuUtilized:None:ECS/ContainerInsights', + 'CPUUtilization:Percent:AWS/ECS', + 'MemoryUtilization:Percent:AWS/ECS', + 'MemoryReserved:Megabytes:ECS/ContainerInsights', + 'MemoryUtilized:Megabytes:ECS/ContainerInsights', + 'NetworkRxBytes:Bytes/Second:ECS/ContainerInsights', + 'NetworkTxBytes:Bytes/Second:ECS/ContainerInsights', + 'StorageReadBytes:Bytes:ECS/ContainerInsights', + 'StorageWriteBytes:Bytes:ECS/ContainerInsights', + 'DeploymentCount:Count:ECS/ContainerInsights', + 'TaskSetCount:Count:ECS/ContainerInsights', + 'DesiredTaskCount:Count:ECS/ContainerInsights', + 'PendingTaskCount:Count:ECS/ContainerInsights', + 'RunningTaskCount:Count:ECS/ContainerInsights', + 'EphemeralStorageReserved:Gigabytes:ECS/ContainerInsights', + 'EphemeralStorageUtilized:Gigabytes:ECS/ContainerInsights' + ]; + + var metric_payload = []; + metrics_list.forEach(function (metric) { + var parts = metric.split(':', 3); + var name = parts[0].replace(/[^a-zA-Z0-9]/g, ''); + metric_payload.push({ + 'Id': name.charAt(0).toLowerCase() + name.slice(1), + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': parts[2], + 'Dimensions': [ + { + 'Name': 'ClusterName', + 'Value': cluster_name + } + , + { + 'Name': 'ServiceName', + 'Value': service_name + } + ] + }, + 'Period': period, + 'Stat': 'Average', + 'Unit': parts[1] + } + }); + }); + + return metric_payload; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ECS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ECS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getMetricsData: function () { + var timestamp = new Date().getTime(), + end_time = new Date(timestamp).toISOString().replace(/\.\d+Z/, 'Z'), + start_time = new Date(timestamp - AWS.request_period * 1000).toISOString().replace(/\.\d+Z/, 'Z'), + payload = AWS.prepareRecursive('MetricDataQueries', AWS.renderPayload(AWS.request_period, AWS.params.cluster_name, AWS.params.service_name)); + + payload['Action'] = 'GetMetricData'; + payload['Version'] = '2010-08-01'; + payload['StartTime'] = start_time; + payload['EndTime'] = end_time; + payload['ScanBy'] = 'TimestampDescending'; + + result = AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)); + MetricData = AWS.getField(result, 'GetMetricDataResponse.GetMetricDataResult.MetricDataResults') + + return MetricData; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ECS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get metrics of ESC services. + Full metrics list related to ECS : https://docs.aws.amazon.com/ecs/index.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: cluster_name + value: '{$AWS.ECS.CLUSTER.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: service_name + value: '{#AWS.ECS.SERVICE.NAME}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ECS Serverless Cluster"}' + tags: + - tag: component + value: raw + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 869a2921e0e44163b45c18786ea92471 + name: '[{#AWS.ECS.SERVICE.NAME}]: Memory utilization' + type: DEPENDENT + key: 'aws.ecs.services.memory.utilization["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + The memory being used by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined memory reservation in their task definition. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AWS/ECS MemoryUtilization")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: memory + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + trigger_prototypes: + - uuid: 7146da954a6d40d4ad8aa83ee3bdb1eb + expression: 'min(/AWS ECS Serverless Cluster by HTTP/aws.ecs.services.memory.utilization["{#AWS.ECS.SERVICE.NAME}"],15m)>{$AWS.ECS.CLUSTER.SERVICE.MEMORY.UTIL.WARN}' + name: 'AWS ECS Serverless: [{#AWS.ECS.SERVICE.NAME}]: High memory utilization' + event_name: 'AWS ECS Serverless: [{#AWS.ECS.SERVICE.NAME}]: High memory utilization (over {$AWS.ECS.CLUSTER.SERVICE.MEMORY.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: bd7bbc9699b8404592a8d67b437f1315 + name: '[{#AWS.ECS.SERVICE.NAME}]: Memory reserved' + type: DEPENDENT + key: 'aws.ecs.services.memory_reserved["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + The memory that is reserved by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined memory reservation in their task definition. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights MemoryReserved")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: memory + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: a00e917d61a24df4b4f0234643667ad9 + name: '[{#AWS.ECS.SERVICE.NAME}]: Memory utilized' + type: DEPENDENT + key: 'aws.ecs.services.memory_utilized["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + The memory being used by tasks in the resource that is specified by the dimension set that you're using. + This metric is only collected for tasks that have a defined memory reservation in their task definition. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights MemoryUtilized")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: memory + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 517dd17172554f3bae93ccb030c75c3a + name: '[{#AWS.ECS.SERVICE.NAME}]: Network rx bytes' + type: DEPENDENT + key: 'aws.ecs.services.network.rx["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: | + The number of bytes received by the resource that is specified by the dimensions that you're using. + This metric is only available for containers in tasks using the awsvpc or bridge network modes. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights NetworkRxBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: network + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: bd99f218853b4f6bac3020d9a7f8a544 + name: '[{#AWS.ECS.SERVICE.NAME}]: Network tx bytes' + type: DEPENDENT + key: 'aws.ecs.services.network.tx["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: | + The number of bytes transmitted by the resource that is specified by the dimensions that you're using. + This metric is only available for containers in tasks using the awsvpc or bridge network modes. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights NetworkTxBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: network + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: e9e3c9ed4ac44d8e8c0f1e3ad55cc114 + name: '[{#AWS.ECS.SERVICE.NAME}]: Pending Task' + type: DEPENDENT + key: 'aws.ecs.services.pending.task["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of tasks currently in the `pending` state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights PendingTaskCount")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: f2f7feb7a3194221aae8ed71b12e49eb + name: '[{#AWS.ECS.SERVICE.NAME}]: Running Task' + type: DEPENDENT + key: 'aws.ecs.services.running.task["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of tasks currently in the `running` state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights RunningTaskCount")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 4c9ea34655f44192be806b3225a38233 + name: '[{#AWS.ECS.SERVICE.NAME}]: Storage read bytes' + type: DEPENDENT + key: 'aws.ecs.services.storage.read.bytes["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'The number of bytes read from storage in the resource that is specified by the dimensions that you''re using.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights StorageReadBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: component + value: storage + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: a240f6821aab42a8aa97a2263f126356 + name: '[{#AWS.ECS.SERVICE.NAME}]: Storage write bytes' + type: DEPENDENT + key: 'aws.ecs.services.storage.write.bytes["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'The number of bytes written to storage in the resource that is specified by the dimensions that you''re using.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights StorageWriteBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: component + value: storage + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + - uuid: 6e80c7b477b648329480ad2dfb19f282 + name: '[{#AWS.ECS.SERVICE.NAME}]: Task Set' + type: DEPENDENT + key: 'aws.ecs.services.task.set["{#AWS.ECS.SERVICE.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of task sets in the {#AWS.ECS.SERVICE.NAME} service.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ECS/ContainerInsights TaskSetCount")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.ecs.services.get_metrics["{#AWS.ECS.SERVICE.NAME}"]' + tags: + - tag: component + value: services + - tag: service + value: '{#AWS.ECS.SERVICE.NAME}' + graph_prototypes: + - uuid: 2c511d8c02bb47e6954bce0e8d35d713 + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: CPU Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 2196F3 + item: + host: 'AWS ECS Serverless Cluster by HTTP' + key: 'aws.ecs.services.cpu.utilization["{#AWS.ECS.SERVICE.NAME}"]' + - uuid: 962375e2a79a4b26b8c1f42f008158ae + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: Memory Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 2196F3 + item: + host: 'AWS ECS Serverless Cluster by HTTP' + key: 'aws.ecs.services.memory.utilization["{#AWS.ECS.SERVICE.NAME}"]' + - uuid: 0823c8464d1d4f0ba4aef10f02c24cb3 + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: Network' + graph_items: + - color: 199C0D + item: + host: 'AWS ECS Serverless Cluster by HTTP' + key: 'aws.ecs.services.network.rx["{#AWS.ECS.SERVICE.NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS ECS Serverless Cluster by HTTP' + key: 'aws.ecs.services.network.tx["{#AWS.ECS.SERVICE.NAME}"]' + master_item: + key: aws.ecs.get_cluster_services + lld_macro_paths: + - lld_macro: '{#AWS.ECS.SERVICE.NAME}' + path: $.service_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: aws + - tag: target + value: ecs + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.ECS.CLUSTER.CPU.UTIL.WARN}' + value: '70' + description: 'The warning threshold of the cluster CPU utilization expressed in %.' + - macro: '{$AWS.ECS.CLUSTER.MEMORY.UTIL.WARN}' + value: '70' + description: 'The warning threshold of the cluster memory utilization expressed in %.' + - macro: '{$AWS.ECS.CLUSTER.NAME}' + description: 'ECS cluster name.' + - macro: '{$AWS.ECS.CLUSTER.SERVICE.CPU.UTIL.WARN}' + value: '80' + description: 'The warning threshold of the cluster service CPU utilization expressed in %.' + - macro: '{$AWS.ECS.CLUSTER.SERVICE.MEMORY.UTIL.WARN}' + value: '80' + description: 'The warning threshold of the cluster service memory utilization expressed in %.' + - macro: '{$AWS.ECS.LLD.FILTER.ALARM_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by name.' + - macro: '{$AWS.ECS.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by name.' + - macro: '{$AWS.ECS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by namespace.' + - macro: '{$AWS.ECS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by namespace.' + - macro: '{$AWS.ECS.LLD.FILTER.SERVICE.MATCHES}' + value: '.*' + description: 'Filter of discoverable services by name.' + - macro: '{$AWS.ECS.LLD.FILTER.SERVICE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered services by name.' + - macro: '{$AWS.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$AWS.REGION}' + value: us-west-1 + description: 'Amazon ECS Region code.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + type: SECRET_TEXT + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS ECS Serverless Cluster", e.g. {$HTTP.TLS.VERIFY:"AWS ECS Serverless Cluster"}.' + dashboards: + - uuid: 21cc12db2b0f4289b0660fcf5538b65d + name: 'Overview AWS ECS Serverless Cluster' + pages: + - name: Cluster + widgets: + - type: item + name: 'Service count' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS ECS Serverless Cluster by HTTP' + key: aws.ecs.service_count + - type: INTEGER + name: show.0 + value: '2' + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ECS Serverless Cluster by HTTP' + name: 'AWS ECS Cluster: CPU Utilization' + - type: STRING + name: reference + value: AAAAD + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ECS Serverless Cluster by HTTP' + name: 'AWS ECS Cluster: Memory Utilization' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ECS Serverless Cluster by HTTP' + name: 'AWS ECS Cluster: Disk Utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ECS Serverless Cluster by HTTP' + name: 'AWS ECS Cluster: Network' + - type: STRING + name: reference + value: AAAAA + - type: item + name: 'Task count' + x: '24' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS ECS Serverless Cluster by HTTP' + key: aws.ecs.task_count + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'Container instance count' + x: '48' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS ECS Serverless Cluster by HTTP' + key: aws.ecs.container_instance_count + - type: INTEGER + name: show.0 + value: '2' + - name: Services + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS ECS Serverless Cluster by HTTP' + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: CPU Utilization' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS ECS Serverless Cluster by HTTP' + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: Memory Utilization' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS ECS Serverless Cluster by HTTP' + name: 'AWS ECS Cluster Service: [{#AWS.ECS.SERVICE.NAME}]: Network' + - type: STRING + name: reference + value: AAAAG + valuemaps: + - uuid: 2de56a6f2b004624976a39e7b58ea193 + name: 'Alarm state' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: 'Insufficient data' + - value: '2' + newvalue: Alarm + - value: '255' + newvalue: Unknown + - uuid: e49859d7e9b1494181dec88a386b4bb2 + name: 'CPU Reserved' + mappings: + - value: '256' + newvalue: '.25 vCPU' + - value: '512' + newvalue: '.5 vCPU' + - value: '1024' + newvalue: '1 vCPU' + - value: '2048' + newvalue: '2 vCPU' + - value: '4096' + newvalue: '4 vCPU' + - value: '8192' + newvalue: '8 vCPU' + - value: '16384' + newvalue: '16 vCPU' + - value: '32768' + newvalue: '32 vCPU' + graphs: + - uuid: 22143acf16da404cbb4a770d47a16e64 + name: 'AWS ECS Cluster: CPU Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 2196F3 + item: + host: 'AWS ECS Serverless Cluster by HTTP' + key: aws.ecs.cpu_utilization + - uuid: e9bb6696b7f34beb9ba207821cb9c4e1 + name: 'AWS ECS Cluster: Disk Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 2196F3 + item: + host: 'AWS ECS Serverless Cluster by HTTP' + key: aws.ecs.disk.utilization + - uuid: fefa5004db6f44c4a10cbebd00a82280 + name: 'AWS ECS Cluster: Memory Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 2196F3 + item: + host: 'AWS ECS Serverless Cluster by HTTP' + key: aws.ecs.memory_utilization + - uuid: b2e46c9ceafd495998fd98957e3f7414 + name: 'AWS ECS Cluster: Network' + graph_items: + - color: 199C0D + item: + host: 'AWS ECS Serverless Cluster by HTTP' + key: aws.ecs.network.rx + - sortorder: '1' + color: F63100 + item: + host: 'AWS ECS Serverless Cluster by HTTP' + key: aws.ecs.network.tx diff --git a/AWS_ELB_Application_Load_Balancer_by_HTTP.yaml b/AWS_ELB_Application_Load_Balancer_by_HTTP.yaml new file mode 100644 index 0000000..6e22cda --- /dev/null +++ b/AWS_ELB_Application_Load_Balancer_by_HTTP.yaml @@ -0,0 +1,3076 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: f59c8b4156ec4386a7c724534ddd384d + template: 'AWS ELB Application Load Balancer by HTTP' + name: 'AWS ELB Application Load Balancer by HTTP' + description: | + The template is designed to monitor AWS ELB Application Load Balancer by HTTP via Zabbix, and it works without any external scripts. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Cloud + items: + - uuid: cf1a45ea7ad74602b675d1fbe137c53d + name: 'Active Connection Count' + type: DEPENDENT + key: aws.elb.alb.active_connection_count + delay: '0' + description: 'The total number of active concurrent TCP connections from clients to the load balancer and from the load balancer to targets.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ActiveConnectionCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: connections + - uuid: 4bd5c4e139374a60a42eb86a343f315e + name: 'Get alarms check' + type: DEPENDENT + key: aws.elb.alb.alarms.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the alarm data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.elb.alb.get_alarms + tags: + - tag: component + value: status + triggers: + - uuid: 3fd832d1a2cc4cff955554cbd8c4b3c7 + expression: 'length(last(/AWS ELB Application Load Balancer by HTTP/aws.elb.alb.alarms.check))>0' + name: 'AWS ELB ALB: Failed to get alarms data' + event_name: 'AWS ELB ALB: Failed to get CloudWatch alarms for Application Load Balancer' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch alarms for Application Load Balancer.' + tags: + - tag: scope + value: availability + - uuid: 0f966c0ff2f344f58a5c049ea2bc503a + name: 'ELB Auth Error' + type: DEPENDENT + key: aws.elb.alb.auth_error + delay: '0' + description: 'The number of user authentications that could not be completed because an authenticate action was misconfigured, the load balancer could not establish a connection with the IdP, or the load balancer could not complete the authentication flow due to an internal error.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ELBAuthError")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: authorization + - tag: component + value: errors + - uuid: 5f516687f9364f2f87b7fd1d2cbc8054 + name: 'ELB Auth Failure' + type: DEPENDENT + key: aws.elb.alb.auth_failure + delay: '0' + description: 'The number of user authentications that could not be completed because the IdP denied access to the user or an authorization code was used more than once.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ELBAuthFailure")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: authorization + - tag: component + value: errors + - uuid: bfae078db4a14fd6a31b94e87552e430 + name: 'ELB Auth Latency' + type: DEPENDENT + key: aws.elb.alb.auth_latency + delay: '0' + value_type: FLOAT + units: ms + description: | + The time elapsed, in milliseconds, to query the IdP for the ID token and user info. + If one or more of these operations fail, this is the time to failure. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ELBAuthLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: authorization + - uuid: 3eed720ae5f948b287cf6ee0bdda41f1 + name: 'ELB Auth Success' + type: DEPENDENT + key: aws.elb.alb.auth_success + delay: '0' + description: | + The number of authenticate actions that were successful. + This metric is incremented at the end of the authentication workflow, after the load balancer has retrieved the user claims from the IdP. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ELBAuthSuccess")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: authorization + - uuid: 8562bd314951443faed4039c2c36b127 + name: 'ELB Auth User Claims Size Exceeded' + type: DEPENDENT + key: aws.elb.alb.auth_user_claims_size_exceeded + delay: '0' + description: 'The number of times that a configured IdP returned user claims that exceeded 11K bytes in size.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ELBAuthUserClaimsSizeExceeded")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: authorization + - tag: component + value: errors + - uuid: 4f06db3a2da446c28228a20ed04847e1 + name: 'Consumed LCUs' + type: DEPENDENT + key: aws.elb.alb.capacity_units + delay: '0' + value_type: FLOAT + description: | + The number of load balancer capacity units (LCU) used by your load balancer. + You pay for the number of LCUs that you use per hour. + More information on Elastic Load Balancing pricing here: https://aws.amazon.com/elasticloadbalancing/pricing/ + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ConsumedLCUs")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: capacity + - uuid: c7e81227b5a648de9413ffcb6b9746ee + name: 'Client TLS Negotiation Error Count' + type: DEPENDENT + key: aws.elb.alb.client_tls_negotiation_error_count + delay: '0' + description: | + The number of TLS connections initiated by the client that did not establish a session with the load balancer due to a TLS error. + Possible causes include a mismatch of ciphers or protocols or the client failing to verify the server certificate and closing the connection. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ClientTLSNegotiationErrorCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: errors + - uuid: 059b7697baba46b2a7f138a1011a0e0c + name: 'Get ELB ALB alarms data' + type: SCRIPT + key: aws.elb.alb.get_alarms + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'arn', 'loadbalancer_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ELB ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ELB ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getAlarms: function () { + var payload = { + 'Action': 'DescribeAlarms', + 'Version': '2010-08-01', + 'MaxRecords': 100 + }, + result = []; + + while (payload.NextToken !== '') { + var alarms = AWS.getField(AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)), 'DescribeAlarmsResponse.DescribeAlarmsResult'); + payload.NextToken = alarms.NextToken || ''; + alarms_list = AWS.getField(alarms, 'MetricAlarms'); + regex = /loadbalancer\/(.+)$/; + + if (!Array.isArray(alarms_list)) + alarms_list = [alarms_list]; + alarms_list.forEach(function (alarm) { + var dimensions = alarm.Dimensions; + + if (Array.isArray(alarm.Metrics)) { + alarm.Metrics.forEach(function (metric) { + if (typeof metric.MetricStat === 'object' && metric.MetricStat !== null + && typeof metric.MetricStat.Metric === 'object' && metric.MetricStat.Metric !== null + && Array.isArray(metric.MetricStat.Metric.Dimensions)) { + dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions); + } + }); + } + for (var i in dimensions) { + if ((dimensions[i].Name === 'LoadBalancer' && dimensions[i].Value === AWS.params.arn.match(regex)[1]) + || (dimensions[i].Name === 'LoadBalancerName' && dimensions[i].Value === AWS.params.loadbalancer_name)) { + result.push(alarm); + break; + } + } + }); + } + + return result; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getAlarms()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ELB Alarms ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: '`DescribeAlarms` API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: arn + value: '{$AWS.ELB.ARN}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: loadbalancer_name + value: '{$AWS.ELB.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ELB Application Load Balancer"}' + tags: + - tag: component + value: raw + - uuid: c7b4e867ff8246058d931ca76d18d4e7 + name: 'Get metrics data' + type: SCRIPT + key: aws.elb.alb.get_metrics + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + request_period: 60, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('POST', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + renderMetricQuery: function (period, arn) { + var metrics_list = [ + 'ActiveConnectionCount:Sum', + 'ClientTLSNegotiationErrorCount:Sum', + 'ConsumedLCUs:Sum', + 'DesyncMitigationMode_NonCompliant_Request_Count:Sum', + 'HTTP_Fixed_Response_Count:Sum', + 'HTTP_Redirect_Count:Sum', + 'HTTP_Redirect_Url_Limit_Exceeded_Count:Sum', + 'HTTPCode_ELB_3XX_Count:Sum', + 'HTTPCode_ELB_4XX_Count:Sum', + 'HTTPCode_ELB_5XX_Count:Sum', + 'HTTPCode_ELB_500_Count:Sum', + 'HTTPCode_ELB_502_Count:Sum', + 'HTTPCode_ELB_503_Count:Sum', + 'HTTPCode_ELB_504_Count:Sum', + 'NewConnectionCount:Sum', + 'ProcessedBytes:Sum', + 'RejectedConnectionCount:Sum', + 'RequestCount:Sum', + 'RuleEvaluations:Sum', + 'TargetResponseTime:Average', + 'TargetTLSNegotiationErrorCount:Sum', + 'TargetConnectionErrorCount:Sum', + 'ELBAuthError:Sum', + 'ELBAuthFailure:Sum', + 'ELBAuthLatency:Sum', + 'ELBAuthSuccess:Sum', + 'ELBAuthUserClaimsSizeExceeded:Sum', + ], + regex = /loadbalancer\/(.+)$/; + + var metric_payload = []; + metrics_list.forEach(function (metric, index) { + var parts = metric.split(':', 2); + metric_payload.push({ + 'Id': 'm' + index, + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'AWS/ApplicationELB', + 'Dimensions': [ + { + 'Name': 'LoadBalancer', + 'Value': arn.match(regex)[1], + } + ] + }, + 'Period': period, + 'Stat': parts[1], + } + }); + }); + + return metric_payload; + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = JSON.stringify([]); + } + else { + data = JSON.stringify(data) + } + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('X-Amz-Target: GraniteServiceVersion20100801.GetMetricData') + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ELB ] Sending request: ' + url); + response = request.post(url, data); + Zabbix.log(4, '[ AWS ELB ] Received response with status code ' + request.getStatus() + ': ' + response); + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + return JSON.parse(response); + }, + + getMetricsData: function () { + var end_time = Math.floor((new Date().getTime()) / 1000), + start_time = end_time - AWS.request_period * 60; + payload = { + 'StartTime': start_time, + 'EndTime': end_time, + 'ScanBy': 'TimestampDescending', + 'MetricDataQueries': AWS.renderMetricQuery(AWS.request_period, AWS.params.arn) + }; + + return AWS.getField(AWS.request('POST', AWS.params.region, 'monitoring', '', payload), 'MetricDataResults'); + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ELB Get metrics] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get ELB Application Load Balancer metrics. + Full metrics list related to Application Load Balancer: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-cloudwatch-metrics.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: arn + value: '{$AWS.ELB.ARN}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ELB Application Load Balancer"}' + tags: + - tag: component + value: raw + - uuid: 9b118d348b934146bab54e2df582e2b0 + name: 'Get target groups' + type: SCRIPT + key: aws.elb.alb.get_target_groups + delay: 0s;m/30 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = JSON.stringify([]); + } + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ELB ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ELB ] Received response with status code ' + request.getStatus() + ': ' + response); + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + return JSON.parse(response); + }, + + listTargetGroups: function () { + var lld_array = [], + regex = /targetgroup\/(.+)$/, + payload = { + 'Action': 'DescribeTargetGroups', + 'LoadBalancerArn': AWS.params.arn, + 'Version': '2015-12-01' + }; + targets = AWS.getField(AWS.request('GET', AWS.params.region, 'elasticloadbalancing', AWS.prepareParams(payload), ''), 'DescribeTargetGroupsResponse.DescribeTargetGroupsResult.TargetGroups'); + + if (!Array.isArray(targets)) + targets = [targets] + + targets.forEach(function (targets) { + lld_array.push( + { + target_name: AWS.getField(targets, 'TargetGroupName'), + target_arn: AWS.getField(targets, 'TargetGroupArn').match(regex)[0], + type: AWS.getField(targets, 'TargetType'), + protocol: AWS.getField(targets, 'Protocol') + } + ) + }); + + return lld_array; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.listTargetGroups()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ELB Target groups ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get ELB target group. + `DescribeTargetGroups` API method: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: arn + value: '{$AWS.ELB.ARN}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ELB Application Load Balancer"}' + tags: + - tag: component + value: raw + - uuid: eabcf1ef1514451087d08d739cf55d94 + name: 'ELB HTTP 3XX Count' + type: DEPENDENT + key: aws.elb.alb.http_3xx_count + delay: '0' + description: | + The number of HTTP 3XX redirection codes that originate from the load balancer. + This count does not include response codes generated by targets. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_ELB_3XX_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: http + - tag: http-code + value: 3xx + - uuid: c714c1f2185b4b0b8b86e3ad336d7888 + name: 'ELB HTTP 4XX Count' + type: DEPENDENT + key: aws.elb.alb.http_4xx_count + delay: '0' + description: | + The number of HTTP 4XX client error codes that originate from the load balancer. + Client errors are generated when requests are malformed or incomplete. These requests were not received by the target, other than in the case where the load balancer returns an HTTP 460 error code. + This count does not include any response codes generated by the targets. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_ELB_4XX_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: http + - tag: http-code + value: 4xx + triggers: + - uuid: 922bd3ab505b420984c93dfdfc417a56 + expression: 'min(/AWS ELB Application Load Balancer by HTTP/aws.elb.alb.http_4xx_count,5m)>{$AWS.HTTP.4XX.FAIL.MAX.WARN}' + name: 'AWS ELB ALB: Too many HTTP 4XX error codes' + event_name: 'AWS ELB ALB: Too many HTTP 4XX error codes (over {$AWS.HTTP.4XX.FAIL.MAX.WARN} for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Too many requests failed with HTTP 4XX code.' + tags: + - tag: scope + value: availability + - uuid: 6395ef49a60546ec8d3ce117867cbb43 + name: 'ELB HTTP 5XX Count' + type: DEPENDENT + key: aws.elb.alb.http_5xx_count + delay: '0' + description: | + The number of HTTP 5XX server error codes that originate from the load balancer. + This count does not include any response codes generated by the targets. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_ELB_5XX_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: http + - tag: http-code + value: 5xx + triggers: + - uuid: 883fc396e7da4806943cd70688c057a3 + expression: 'min(/AWS ELB Application Load Balancer by HTTP/aws.elb.alb.http_5xx_count,5m)>{$AWS.HTTP.5XX.FAIL.MAX.WARN}' + name: 'AWS ELB ALB: Too many HTTP 5XX error codes' + event_name: 'AWS ELB ALB: Too many HTTP 5XX error codes (over {$AWS.HTTP.5XX.FAIL.MAX.WARN} for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Too many requests failed with HTTP 5XX code.' + tags: + - tag: scope + value: availability + - uuid: 7bf9230aa56b4196b386d23358da75ed + name: 'ELB HTTP 500 Count' + type: DEPENDENT + key: aws.elb.alb.http_500_count + delay: '0' + description: 'The number of HTTP 500 error codes that originate from the load balancer.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_ELB_500_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: http + - tag: http-code + value: 5xx + - tag: http-code + value: '500' + - uuid: f89bee8030774615a132d25a6d1b7a2a + name: 'ELB HTTP 502 Count' + type: DEPENDENT + key: aws.elb.alb.http_502_count + delay: '0' + description: 'The number of HTTP 502 error codes that originate from the load balancer.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_ELB_502_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: http + - tag: http-code + value: 5xx + - tag: http-code + value: '502' + - uuid: bca5eaf0b96c496395ed98e8d4705153 + name: 'ELB HTTP 503 Count' + type: DEPENDENT + key: aws.elb.alb.http_503_count + delay: '0' + description: 'The number of HTTP 503 error codes that originate from the load balancer.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_ELB_503_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: http + - tag: http-code + value: 5xx + - tag: http-code + value: '503' + - uuid: 5d1c57a6483c4b84b992f9677f6216c1 + name: 'ELB HTTP 504 Count' + type: DEPENDENT + key: aws.elb.alb.http_504_count + delay: '0' + description: 'The number of HTTP 504 error codes that originate from the load balancer.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_ELB_504_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: http + - tag: http-code + value: 5xx + - tag: http-code + value: '504' + - uuid: 115bdaf06c554f9a8b3a486c28d218cd + name: 'HTTP Fixed Response Count' + type: DEPENDENT + key: aws.elb.alb.http_fixed_response_count + delay: '0' + description: 'The number of fixed-response actions that were successful.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTP_Fixed_Response_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: responses + - uuid: 4edc1d8d4eb84832996943ac571afb5f + name: 'HTTP Redirect Count' + type: DEPENDENT + key: aws.elb.alb.http_redirect_count + delay: '0' + description: 'The number of redirect actions that were successful.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTP_Redirect_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: http + - uuid: fbf24a4f2110416d973a8f11c8770d98 + name: 'HTTP Redirect Url Limit Exceeded Count' + type: DEPENDENT + key: aws.elb.alb.http_redirect_url_limit_exceeded_count + delay: '0' + description: 'The number of redirect actions that could not be completed because the URL in the response location header is larger than 8K bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTP_Redirect_Url_Limit_Exceeded_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: http + - uuid: 7fdd931458ba4fa5b3baff1d67e4a32f + name: 'ALB metrics check' + type: DEPENDENT + key: aws.elb.alb.metrics.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether ALB metric data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: status + triggers: + - uuid: 70282eb6c0c442f9a4f4c49b10f54a4d + expression: 'length(last(/AWS ELB Application Load Balancer by HTTP/aws.elb.alb.metrics.check))>0' + name: 'AWS ELB ALB: Failed to get metrics data' + event_name: 'AWS ELB ALB: Failed to get CloudWatch metrics for Application Load Balancer' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch metrics for Application Load Balancer.' + tags: + - tag: scope + value: availability + - uuid: 740872a3328e4c12827d8fcd16eb43ea + name: 'New Connection Count' + type: DEPENDENT + key: aws.elb.alb.new_connection_count + delay: '0' + description: 'The total number of new TCP connections established from clients to the load balancer and from the load balancer to targets.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NewConnectionCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: connections + - uuid: 4e3cf684607741e39248929e6b917be7 + name: 'Desync Mitigation Mode Non Compliant Request Count' + type: DEPENDENT + key: aws.elb.alb.non_compliant_request_count + delay: '0' + description: 'The number of requests that fail to comply with HTTP protocols.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DesyncMitigationMode_NonCompliant_Request_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: errors + - uuid: 32b5fbc67cec4d739bbd95ba1cd77ab9 + name: 'Processed Bytes' + type: DEPENDENT + key: aws.elb.alb.processed_bytes + delay: '0' + value_type: FLOAT + units: B + description: | + The total number of bytes processed by the load balancer over IPv4 and IPv6 (HTTP header and HTTP payload). + This count includes traffic to and from clients and Lambda functions, and traffic from an Identity Provider (IdP) if user authentication is enabled. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ProcessedBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: capacity + - uuid: ed3c4ebc1faf43ff9be134ae98aac0e9 + name: 'Rejected Connection Count' + type: DEPENDENT + key: aws.elb.alb.rejected_connection_count + delay: '0' + description: 'The number of connections that were rejected because the load balancer had reached its maximum number of connections.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "RejectedConnectionCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: connections + - uuid: 4b5b059c30ef4f8bb4d11a273d071db1 + name: 'Requests Count' + type: DEPENDENT + key: aws.elb.alb.requests_count + delay: '0' + description: | + The number of requests processed over IPv4 and IPv6. + This metric is only incremented for requests where the load balancer node was able to choose a target. + Requests that are rejected before a target is chosen are not reflected in this metric. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "RequestCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: requests + - uuid: b5105b9e48f4482db42ff948f906be6f + name: 'Rule Evaluations' + type: DEPENDENT + key: aws.elb.alb.rule_evaluations + delay: '0' + description: 'The number of rules processed by the load balancer given a request rate averaged over an hour.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "RuleEvaluations")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: requests + - uuid: 09cd066b48544eb7ac818bc6171e3e87 + name: 'Target Connection Error Count' + type: DEPENDENT + key: aws.elb.alb.target_connection_error_count + delay: '0' + description: | + The number of connections that were not successfully established between the load balancer and target. + This metric does not apply if the target is a Lambda function. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "TargetConnectionErrorCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: errors + - uuid: 560c74f7011b4b9c821dfdf7f8d8e93a + name: 'Target Response Time' + type: DEPENDENT + key: aws.elb.alb.target_response_time + delay: '0' + value_type: FLOAT + units: s + description: | + The time elapsed, in seconds, after the request leaves the load balancer until a response from the target is received. + This is equivalent to the `target_processing_time` field in the access logs. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "TargetResponseTime")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: responses + - uuid: 66d56d14553d4de69a63745ab02f2611 + name: 'Target TLS Negotiation Error Count' + type: DEPENDENT + key: aws.elb.alb.target_tls_negotiation_error_count + delay: '0' + description: | + The number of TLS connections initiated by the load balancer that did not establish a session with the target. + Possible causes include a mismatch of ciphers or protocols. This metric does not apply if the target is a Lambda function. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "TargetTLSNegotiationErrorCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_metrics + tags: + - tag: component + value: errors + discovery_rules: + - uuid: 065ef42ebea5448896db5fcc5baa2f81 + name: 'Load Balancer alarm discovery' + type: DEPENDENT + key: aws.elb.alb.alarms.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALARM_NAME}' + value: '{$AWS.ELB.LLD.FILTER.ALARM_NAME.MATCHES}' + formulaid: A + - macro: '{#ALARM_NAME}' + value: '{$AWS.ELB.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.ELB.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + formulaid: C + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.ELB.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Used for the discovery of alarm balancers.' + item_prototypes: + - uuid: fca522690827426bb63f93e90d98aa54 + name: '[{#ALARM_NAME}]: Get metrics' + type: DEPENDENT + key: 'aws.elb.alb.alarm.get_metrics["{#ALARM_NAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get metrics about the alarm state and its reason.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.AlarmName == "{#ALARM_NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.alb.get_alarms + tags: + - tag: component + value: raw + - uuid: 3ef62eb9b0824f8ea3c2c1e8e15ce1fd + name: '[{#ALARM_NAME}]: State' + type: DEPENDENT + key: 'aws.elb.alb.alarm.state["{#ALARM_NAME}"]' + delay: '0' + description: | + The value of the alarm state. Possible values: + 0 - OK; + 1 - INSUFFICIENT_DATA; + 2 - ALARM. + Alarm description: + `{#ALARM_DESCRIPTION}` + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - $.StateValue + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: JAVASCRIPT + parameters: + - | + var state = ['OK', 'INSUFFICIENT_DATA', 'ALARM']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + master_item: + key: 'aws.elb.alb.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: b8bbc96a20bc4ab393d1fa76a3cf5254 + expression: 'last(/AWS ELB Application Load Balancer by HTTP/aws.elb.alb.alarm.state["{#ALARM_NAME}"])=1' + name: 'AWS ELB ALB: [{#ALARM_NAME}] has ''Insufficient data'' state' + event_name: 'AWS ELB ALB: [{#ALARM_NAME}] has ''Insufficient data'' state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Either the alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.' + tags: + - tag: scope + value: notice + - uuid: 8839a61a10f7453ebfdcae0ef16eb37c + name: '[{#ALARM_NAME}]: State reason' + type: DEPENDENT + key: 'aws.elb.alb.alarm.state_reason["{#ALARM_NAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: | + An explanation for the alarm state reason in text format. + Alarm description: + `{#ALARM_DESCRIPTION}` + preprocessing: + - type: JSONPATH + parameters: + - $.StateReason + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.elb.alb.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: a1b8587c80dd41ef8b185cf62e563bcb + expression: 'last(/AWS ELB Application Load Balancer by HTTP/aws.elb.alb.alarm.state["{#ALARM_NAME}"])=2 and length(last(/AWS ELB Application Load Balancer by HTTP/aws.elb.alb.alarm.state_reason["{#ALARM_NAME}"]))>0' + name: 'AWS ELB ALB: [{#ALARM_NAME}] has ''Alarm'' state' + event_name: 'AWS ELB ALB: [{#ALARM_NAME}] has ''Alarm'' state (reason: {ITEM.LASTVALUE2})' + opdata: 'Reason: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: | + The alarm `{#ALARM_NAME}` is in the ALARM state. + Reason: `{ITEM.LASTVALUE2}` + tags: + - tag: scope + value: availability + master_item: + key: aws.elb.alb.get_alarms + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var alarms = JSON.parse(value); + + alarms.forEach(function(alarm) { + + result.push({ + '{#ALARM_DESCRIPTION}': alarm.AlarmDescription !== null ? alarm.AlarmDescription : 'None' , + '{#ALARM_NAME}': alarm.AlarmName, + '{#ALARM_PERIOD}': alarm.Period, + '{#METRIC_NAME}': alarm.MetricName, + '{#ALARM_SERVICE_NAMESPACE}': alarm.Namespace !== null ? alarm.Namespace : 'None' + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 1002081ffffd40828ff5419c50bc16d5 + name: 'Target groups discovery' + type: DEPENDENT + key: aws.elb.alb.target_groups.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AWS.ELB.TARGET.GROUP.NAME}' + value: '{$AWS.ELB.LLD.FILTER.TARGET.GROUP.MATCHES}' + formulaid: A + - macro: '{#AWS.ELB.TARGET.GROUP.NAME}' + value: '{$AWS.ELB.LLD.FILTER.TARGET.GROUP.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of `{$AWS.ELB.TARGET.GROUP.NAME}` target groups.' + item_prototypes: + - uuid: 21d1830526e14fb99b2288d79747d472 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Anomalous Host Count' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.anomalous_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The number of hosts detected with anomalies.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AnomalousHostCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: 306971d2e8fb441d8ae4a658b26304c3 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Get metrics' + type: SCRIPT + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: 0s;m/5 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + request_period: 60, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('POST', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'arn', 'target_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + renderMetricQuery: function (period, arn, target_arn) { + var metrics_list = [ + 'HTTPCode_Target_2XX_Count:Sum', + 'HTTPCode_Target_3XX_Count:Sum', + 'HTTPCode_Target_4XX_Count:Sum', + 'HTTPCode_Target_5XX_Count:Sum', + 'HealthyHostCount:Average', + 'UnHealthyHostCount:Average', + 'HealthyStateRouting:Sum', + 'UnhealthyStateRouting:Sum', + 'UnhealthyRoutingRequestCount:Sum', + 'HealthyStateDNS:Sum', + 'UnhealthyStateDNS:Sum', + 'RequestCountPerTarget:Sum', + 'MitigatedHostCount:Average', + 'AnomalousHostCount:Average', + ], + regex = /loadbalancer\/(.+)$/; + + var metric_payload = []; + metrics_list.forEach(function (metric, index) { + var parts = metric.split(':', 2); + metric_payload.push({ + 'Id': 'm' + index, + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'AWS/ApplicationELB', + 'Dimensions': [ + { + 'Name': 'LoadBalancer', + 'Value': arn.match(regex)[1], + }, + { + 'Name': 'TargetGroup', + 'Value': target_arn + } + ] + }, + 'Period': period, + 'Stat': parts[1], + } + }); + }); + + return metric_payload; + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = JSON.stringify([]); + } + else { + data = JSON.stringify(data) + } + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('X-Amz-Target: GraniteServiceVersion20100801.GetMetricData') + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ELB ] Sending request: ' + url); + response = request.post(url, data); + Zabbix.log(4, '[ AWS ELB ] Received response with status code ' + request.getStatus() + ': ' + response); + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + return JSON.parse(response); + }, + + getMetricsData: function () { + var end_time = Math.floor((new Date().getTime()) / 1000), + start_time = end_time - AWS.request_period * 60; + payload = { + 'StartTime': start_time, + 'EndTime': end_time, + 'ScanBy': 'TimestampDescending', + 'MetricDataQueries': AWS.renderMetricQuery(AWS.request_period, AWS.params.arn, AWS.params.target_arn) + }; + + return AWS.getField(AWS.request('POST', AWS.params.region, 'monitoring', '', payload), 'MetricDataResults'); + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ELB Get targets group metrics] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get the metrics of the ELB target group `{#AWS.ELB.TARGET.GROUP.NAME}`. + Full list of metrics related to AWS ELB here: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-cloudwatch-metrics.html#user-authentication-metric-table + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: arn + value: '{$AWS.ELB.ARN}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: target_arn + value: '{#AWS.ELB.TARGET.GROUP.ARN}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ELB Application Load Balancer"}' + tags: + - tag: component + value: raw + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: e4cd95136bb04981b15a508aa73f5723 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Healthy Host Count' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.healthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The number of targets that are considered healthy.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HealthyHostCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: health + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: b96ad1d2f5064cc99c49eeec3801418e + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Healthy State DNS' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.healthy_state_dns["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The number of zones that meet the DNS healthy state requirements.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HealthyStateDNS")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: health + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: 030c4fe8b7f44bf3a290b1b5da9319d8 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Healthy State Routing' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.healthy_state_routing["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The number of zones that meet the routing healthy state requirements.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HealthyStateRouting")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: health + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: fa9da54b4feb4fc79fbf74c491eb23ba + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: HTTP Code Target 2XX Count' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.http_2xx_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: | + The number of HTTP response 2XX codes generated by the targets. + This does not include any response codes generated by the load balancer. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_Target_2XX_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: http + - tag: component + value: target-groups + - tag: http-code + value: 2xx + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: 50e78304f9e74019b7e06310d6dd2e6f + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: HTTP Code Target 3XX Count' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.http_3xx_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: | + The number of HTTP response 3XX codes generated by the targets. + This does not include any response codes generated by the load balancer. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_Target_3XX_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: http + - tag: component + value: target-groups + - tag: http-code + value: 3xx + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: ec7b92c79c6f441cadb8994b906753f4 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: HTTP Code Target 4XX Count' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.http_4xx_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: | + The number of HTTP response 4XX codes generated by the targets. + This does not include any response codes generated by the load balancer. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_Target_4XX_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: http + - tag: component + value: target-groups + - tag: http-code + value: 4xx + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: c9e61f9d2f12496d90693a83cb829b66 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: HTTP Code Target 5XX Count' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.http_5xx_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: | + The number of HTTP response 5XX codes generated by the targets. + This does not include any response codes generated by the load balancer. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HTTPCode_Target_5XX_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: http + - tag: component + value: target-groups + - tag: http-code + value: 5xx + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: 0ad4d9a933944c7d979da411d24b165e + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Mitigated Host Count' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.mitigated_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The number of targets under mitigation.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "MitigatedHostCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: 31a579ac8de9402bae3a3668779ec6c5 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Request Count Per Target' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.request["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: | + The average request count per target, in a target group. + You must specify the target group using the TargetGroup dimension. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "RequestCountPerTarget")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: requests + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: c158172738084d38aec424505a7a86a5 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy Host Count' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.unhealthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The number of targets that are considered unhealthy.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "UnHealthyHostCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: health + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: 9fea4b63067445d98d29de566d50b0a4 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy Routing Request Count' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.unhealthy_routing_request_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The average request count per target, in a target group.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "UnhealthyRoutingRequestCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: requests + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: f050e9610eb64251b55e843fc5eb5876 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy State DNS' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.unhealthy_state_dns["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The number of zones that do not meet the DNS healthy state requirements and therefore were marked unhealthy in DNS.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "UnhealthyStateDNS")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: health + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: 2a446451893e4f70a0d4ac4b1bb969fb + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy State Routing' + type: DEPENDENT + key: 'aws.elb.alb.target_groups.unhealthy_state_routing["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The number of zones that do not meet the routing healthy state requirements, and therefore the load balancer distributes traffic to all targets in the zone, including the unhealthy targets.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "UnhealthyStateRouting")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.alb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: health + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + graph_prototypes: + - uuid: f426eff334d449ff9ec0a2ff8f6ee103 + name: 'AWS ELB ALB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: Healthy Host' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: 'aws.elb.alb.target_groups.healthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + - uuid: f6f8d317322a420ab4e0025b3b284a98 + name: 'AWS ELB ALB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: Healthy State DNS' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: 'aws.elb.alb.target_groups.healthy_state_dns["{#AWS.ELB.TARGET.GROUP.NAME}"]' + - uuid: 40922ff1845141c7a2488fe24debeae0 + name: 'AWS ELB ALB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: Healthy State Routing' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: 'aws.elb.alb.target_groups.healthy_state_routing["{#AWS.ELB.TARGET.GROUP.NAME}"]' + - uuid: ec38c670cabf422ea79f41866c90ee66 + name: 'AWS ELB ALB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: HTTP Code Target Group' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: 'aws.elb.alb.target_groups.http_2xx_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: 'aws.elb.alb.target_groups.http_3xx_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: 'aws.elb.alb.target_groups.http_4xx_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: 'aws.elb.alb.target_groups.http_5xx_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + - uuid: a2668f5bf6a240a296b047c1b979f9dc + name: 'AWS ELB ALB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy Host' + graph_items: + - drawtype: GRADIENT_LINE + color: FF0000 + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: 'aws.elb.alb.target_groups.unhealthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + - uuid: 54645b74585c4b45a971c13d1127698d + name: 'AWS ELB ALB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy State DNS' + graph_items: + - drawtype: GRADIENT_LINE + color: FF0000 + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: 'aws.elb.alb.target_groups.unhealthy_state_dns["{#AWS.ELB.TARGET.GROUP.NAME}"]' + - uuid: 8da12e20218e4367968b8fcf0f56991a + name: 'AWS ELB ALB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy State Routing' + graph_items: + - drawtype: GRADIENT_LINE + color: FF0000 + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: 'aws.elb.alb.target_groups.unhealthy_state_routing["{#AWS.ELB.TARGET.GROUP.NAME}"]' + master_item: + key: aws.elb.alb.get_target_groups + lld_macro_paths: + - lld_macro: '{#AWS.ELB.TARGET.GROUP.ARN}' + path: $.target_arn + - lld_macro: '{#AWS.ELB.TARGET.GROUP.NAME}' + path: $.target_name + - lld_macro: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + path: $.protocol + - lld_macro: '{#AWS.ELB.TARGET.GROUP.TYPE}' + path: $.type + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: alb + - tag: target + value: aws + - tag: target + value: elb + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.DATA.TIMEOUT}' + value: 60s + description: 'API response timeout.' + - macro: '{$AWS.ELB.ARN}' + description: 'Amazon Resource Names (ARN) of the load balancer.' + - macro: '{$AWS.ELB.LLD.FILTER.ALARM_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by name.' + - macro: '{$AWS.ELB.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by name.' + - macro: '{$AWS.ELB.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by namespace.' + - macro: '{$AWS.ELB.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by namespace.' + - macro: '{$AWS.ELB.LLD.FILTER.TARGET.GROUP.MATCHES}' + value: '.*' + description: 'Filter of discoverable target groups by name.' + - macro: '{$AWS.ELB.LLD.FILTER.TARGET.GROUP.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered target groups by name.' + - macro: '{$AWS.HTTP.4XX.FAIL.MAX.WARN}' + value: '5' + description: 'Maximum number of HTTP request failures for a trigger expression.' + - macro: '{$AWS.HTTP.5XX.FAIL.MAX.WARN}' + value: '5' + description: 'Maximum number of HTTP request failures for a trigger expression.' + - macro: '{$AWS.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, no proxy is used.' + - macro: '{$AWS.REGION}' + value: us-west-1 + description: 'AWS Application Load Balancer region code.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS ELB Application Load Balancer", e.g. {$HTTP.TLS.VERIFY:"AWS ELB Application Load Balancer"}.' + dashboards: + - uuid: 1020fa347dd24a2ba4091528e63639d4 + name: 'Overview AWS ELB Application Load Balancer' + pages: + - name: 'AWS ELB ALB: Metrics' + widgets: + - type: svggraph + name: 'AWS ELB ALB: HTTP Code' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FFA726 + - type: STRING + name: ds.0.color.1 + value: FF465C + - type: STRING + name: ds.0.color.2 + value: FF5722 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.http_3xx_count + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.http_4xx_count + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.http_5xx_count + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: simple_triggers + value: '1' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'AWS ELB ALB: Connection Count' + 'y': '5' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 4CAF50 + - type: STRING + name: ds.0.color.1 + value: 0080FF + - type: STRING + name: ds.0.color.2 + value: CC6600 + - type: STRING + name: ds.0.color.3 + value: B71C1C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.active_connection_count + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.new_connection_count + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.rejected_connection_count + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.target_connection_error_count + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: simple_triggers + value: '1' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'AWS ELB ALB: Requests Count and Response Time' + 'y': '10' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 0080FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.requests_count + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: B0AF07 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.target_response_time + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'AWS ELB ALB: Consumed LCUs and Processed Bytes' + 'y': '15' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 78909C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.capacity_units + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: AB47BC + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.processed_bytes + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: working_time + value: '1' + - name: 'AWS ELB ALB Target Groups: Metrics' + widgets: + - type: piechart + name: 'Healthy Host Count' + width: '12' + height: '4' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color + value: 00FF00 + - type: STRING + name: ds.0.data_set_label + value: 'Healthy Host Count' + - type: STRING + name: ds.0.items.0 + value: '*: Healthy Host Count' + - type: INTEGER + name: legend_aggregation + value: '1' + - type: INTEGER + name: total_show + value: '1' + - type: svggraph + name: 'HTTP Code Target Group' + 'y': '4' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.data_set_label + value: 'HTTP Code Target Group' + - type: STRING + name: ds.0.items.0 + value: '*: HTTP Code Target*' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.type + value: '3' + - type: STRING + name: reference + value: QZUQY + - type: svggraph + name: 'Request Count Per Target' + 'y': '9' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 388E3C + - type: STRING + name: ds.0.data_set_label + value: 'Request Count Per Target' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: '*: Request Count Per Target' + - type: INTEGER + name: ds.0.missingdatafunc + value: '2' + - type: INTEGER + name: ds.0.transparency + value: '7' + - type: INTEGER + name: ds.0.width + value: '6' + - type: STRING + name: reference + value: COJBR + - type: piechart + name: 'Unhealthy Host Count' + x: '12' + width: '12' + height: '4' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.data_set_label + value: 'Unhealthy Host Count' + - type: STRING + name: ds.0.items.0 + value: '*: Unhealthy Host Count' + - type: INTEGER + name: legend_aggregation + value: '1' + - type: INTEGER + name: total_show + value: '1' + - type: piechart + name: 'Healthy State Routing' + x: '24' + width: '12' + height: '4' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color + value: 00897B + - type: STRING + name: ds.0.data_set_label + value: 'Healthy State Routing' + - type: STRING + name: ds.0.items.0 + value: '*: Healthy State Routing' + - type: INTEGER + name: legend_aggregation + value: '1' + - type: INTEGER + name: total_show + value: '1' + - type: piechart + name: 'Unhealthy State Routing' + x: '36' + width: '12' + height: '4' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.data_set_label + value: 'Unhealthy State Routing' + - type: STRING + name: ds.0.items.0 + value: '*: Unhealthy State Routing' + - type: INTEGER + name: legend_aggregation + value: '1' + - type: INTEGER + name: total_show + value: '1' + - type: piechart + name: 'Healthy State DNS' + x: '48' + width: '12' + height: '4' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color + value: '283593' + - type: STRING + name: ds.0.data_set_label + value: 'Healthy State DNS' + - type: STRING + name: ds.0.items.0 + value: '*: Healthy State DNS' + - type: INTEGER + name: legend_aggregation + value: '1' + - type: INTEGER + name: total_show + value: '1' + - type: piechart + name: 'Unhealthy State DNS' + x: '60' + width: '12' + height: '4' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.data_set_label + value: 'Unhealthy State DNS' + - type: STRING + name: ds.0.items.0 + value: '*: Unhealthy State DNS' + - type: INTEGER + name: legend_aggregation + value: '1' + - type: INTEGER + name: total_show + value: '1' + valuemaps: + - uuid: 4bb749152d5d452ead36c5a98c3cac16 + name: 'Alarm state' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: 'Insufficient data' + - value: '2' + newvalue: Alarm + - value: '255' + newvalue: Unknown + graphs: + - uuid: b19f7d65ad1d469d8396b03111d38e52 + name: 'AWS ELB ALB: Connection Count' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.active_connection_count + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.new_connection_count + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.rejected_connection_count + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.target_connection_error_count + - uuid: fb034590cbc34b0aa297b77c1f320684 + name: 'AWS ELB ALB: Consumed LCUs and Processed Bytes' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.capacity_units + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + yaxisside: RIGHT + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.processed_bytes + - uuid: a711d08edbd04abe890ab2b8cdf6d41b + name: 'AWS ELB ALB: HTTP Code' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.http_3xx_count + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.http_4xx_count + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.http_5xx_count + - uuid: 4ee7ac4174b74f869e04dab5d76219ab + name: 'AWS ELB ALB: Requests Count and Response Time' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.requests_count + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + yaxisside: RIGHT + item: + host: 'AWS ELB Application Load Balancer by HTTP' + key: aws.elb.alb.target_response_time diff --git a/AWS_ELB_Network_Load_Balancer_by_HTTP.yaml b/AWS_ELB_Network_Load_Balancer_by_HTTP.yaml new file mode 100644 index 0000000..064e780 --- /dev/null +++ b/AWS_ELB_Network_Load_Balancer_by_HTTP.yaml @@ -0,0 +1,2843 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 4c7d0c6e342b40458611bdb6e9dd958f + template: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB Network Load Balancer by HTTP' + description: | + The template is designed to monitor AWS ELB Network Load Balancer by HTTP via Zabbix, and it works without any external scripts. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Cloud + items: + - uuid: 170a4e084c3748dfa1cfcbb1b168ff4c + name: 'Active Flow Count' + type: DEPENDENT + key: aws.elb.nlb.active_flow_count + delay: '0' + description: | + The total number of concurrent flows (or connections) from clients to targets. + This metric includes connections in the `SYN_SENT` and `ESTABLISHED` states. + TCP connections are not terminated at the load balancer, so a client opening a TCP connection to a target counts as a single flow. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ActiveFlowCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: connections + - uuid: fd00c2998ae145ab821acde0a1515fbb + name: 'Active Flow Count TCP' + type: DEPENDENT + key: aws.elb.nlb.active_flow_count_tcp + delay: '0' + description: | + The total number of concurrent TCP flows (or connections) from clients to targets. + This metric includes connections in the `SYN_SENT` and `ESTABLISHED` states. + TCP connections are not terminated at the load balancer, so a client opening a TCP connection to a target counts as a single flow. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ActiveFlowCount_TCP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: connections + - tag: component + value: tcp + - uuid: 31ae92c16e5643d3a67f392661518723 + name: 'Active Flow Count TLS' + type: DEPENDENT + key: aws.elb.nlb.active_flow_count_tls + delay: '0' + description: | + The total number of concurrent TLS flows (or connections) from clients to targets. + This metric includes connections in the `SYN_SENT` and `ESTABLISHED` states. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ActiveFlowCount_TLS")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: connections + - tag: component + value: tls + - uuid: 7ba1f232eacc41cfa6e38939128b9ee1 + name: 'Active Flow Count UDP' + type: DEPENDENT + key: aws.elb.nlb.active_flow_count_udp + delay: '0' + description: 'The total number of concurrent UDP flows (or connections) from clients to targets.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ActiveFlowCount_UDP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: connections + - tag: component + value: udp + - uuid: 397ce9711a404da48ebdfde65c24ff3b + name: 'Get alarms check' + type: DEPENDENT + key: aws.elb.nlb.alarms.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the alarm data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.elb.nlb.get_alarms + tags: + - tag: component + value: status + triggers: + - uuid: 4319dc0d484b456a9343535db3c079f4 + expression: 'length(last(/AWS ELB Network Load Balancer by HTTP/aws.elb.nlb.alarms.check))>0' + name: 'AWS ELB NLB: Failed to get alarms data' + event_name: 'AWS ELB NLB: Failed to get CloudWatch alarms for Network Load Balancer' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch alarms for Network Load Balancer.' + tags: + - tag: scope + value: availability + - uuid: b2ef5e512e674a969853b389f308664e + name: 'Consumed LCUs' + type: DEPENDENT + key: aws.elb.nlb.capacity_units + delay: '0' + description: | + The number of load balancer capacity units (LCU) used by your load balancer. + You pay for the number of LCUs that you use per hour. + More information on Elastic Load Balancing pricing here: https://aws.amazon.com/elasticloadbalancing/pricing/ + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ConsumedLCUs")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: capacity + - uuid: 33c9d9d275c04811b7dcb6806e8a9d9a + name: 'Consumed LCUs TCP' + type: DEPENDENT + key: aws.elb.nlb.capacity_units_tcp + delay: '0' + description: | + The number of load balancer capacity units (LCU) used by your load balancer for TCP. + You pay for the number of LCUs that you use per hour. + More information on Elastic Load Balancing pricing here: https://aws.amazon.com/elasticloadbalancing/pricing/ + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ConsumedLCUs_TCP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: capacity + - tag: component + value: tcp + - uuid: bbcd303cbf654dc68fb40216994eef84 + name: 'Consumed LCUs TLS' + type: DEPENDENT + key: aws.elb.nlb.capacity_units_tls + delay: '0' + description: | + The number of load balancer capacity units (LCU) used by your load balancer for TLS. + You pay for the number of LCUs that you use per hour. + More information on Elastic Load Balancing pricing here: https://aws.amazon.com/elasticloadbalancing/pricing/ + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ConsumedLCUs_TLS")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: capacity + - tag: component + value: tls + - uuid: 90742c0ffb4844668f59a75f26132b18 + name: 'Consumed LCUs UDP' + type: DEPENDENT + key: aws.elb.nlb.capacity_units_udp + delay: '0' + description: | + The number of load balancer capacity units (LCU) used by your load balancer for UDP. + You pay for the number of LCUs that you use per hour. + More information on Elastic Load Balancing pricing here: https://aws.amazon.com/elasticloadbalancing/pricing/ + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ConsumedLCUs_UDP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: capacity + - tag: component + value: udp + - uuid: 6bbe06db758f40da9c2e0cb825b2aac3 + name: 'Client TLS Negotiation Error Count' + type: DEPENDENT + key: aws.elb.nlb.client_tls_negotiation_error_count + delay: '0' + description: 'The total number of TLS handshakes that failed during negotiation between a client and a TLS listener.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ClientTLSNegotiationErrorCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: health + - tag: component + value: tls + - uuid: 6d74c1a68ea9476dadc39b785f333d5d + name: 'Get ELB NLB alarms data' + type: SCRIPT + key: aws.elb.nlb.get_alarms + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'arn', 'loadbalancer_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ELB ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ELB ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getAlarms: function () { + var payload = { + 'Action': 'DescribeAlarms', + 'Version': '2010-08-01', + 'MaxRecords': 100 + }, + result = []; + + while (payload.NextToken !== '') { + var alarms = AWS.getField(AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)), 'DescribeAlarmsResponse.DescribeAlarmsResult'); + payload.NextToken = alarms.NextToken || ''; + alarms_list = AWS.getField(alarms, 'MetricAlarms'); + regex = /loadbalancer\/(.+)$/; + + if (!Array.isArray(alarms_list)) + alarms_list = [alarms_list]; + alarms_list.forEach(function (alarm) { + var dimensions = alarm.Dimensions; + + if (Array.isArray(alarm.Metrics)) { + alarm.Metrics.forEach(function (metric) { + if (typeof metric.MetricStat === 'object' && metric.MetricStat !== null + && typeof metric.MetricStat.Metric === 'object' && metric.MetricStat.Metric !== null + && Array.isArray(metric.MetricStat.Metric.Dimensions)) { + dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions); + } + }); + } + for (var i in dimensions) { + if ((dimensions[i].Name === 'LoadBalancer' && dimensions[i].Value === AWS.params.arn.match(regex)[1]) + || (dimensions[i].Name === 'LoadBalancerName' && dimensions[i].Value === AWS.params.loadbalancer_name)) { + result.push(alarm); + break; + } + } + }); + } + + return result; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getAlarms()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ELB Alarms ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: '`DescribeAlarms` API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: arn + value: '{$AWS.ELB.ARN}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: loadbalancer_name + value: '{$AWS.ELB.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ELB Network Load Balancer"}' + tags: + - tag: component + value: raw + - uuid: 76d374302b29430c8fe5813656ffd928 + name: 'Get metrics data' + type: SCRIPT + key: aws.elb.nlb.get_metrics + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + request_period: 60, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('POST', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + renderMetricQuery: function (period, arn) { + var metrics_list = [ + 'ActiveFlowCount:Average', + 'ActiveFlowCount_TCP:Average', + 'ActiveFlowCount_TLS:Average', + 'ActiveFlowCount_UDP:Average', + 'ClientTLSNegotiationErrorCount:Sum', + 'ConsumedLCUs:Sum', + 'ConsumedLCUs_TCP:Sum', + 'ConsumedLCUs_TLS:Sum', + 'ConsumedLCUs_UDP:Sum', + 'NewFlowCount:Sum', + 'NewFlowCount_TCP:Sum', + 'NewFlowCount_TLS:Sum', + 'NewFlowCount_UDP:Sum', + 'PeakPacketsPerSecond:Maximum', + 'PortAllocationErrorCount:Sum', + 'SecurityGroupBlockedFlowCount_Inbound_ICMP:Sum', + 'SecurityGroupBlockedFlowCount_Inbound_TCP:Sum', + 'SecurityGroupBlockedFlowCount_Inbound_UDP:Sum', + 'SecurityGroupBlockedFlowCount_Outbound_ICMP:Sum', + 'SecurityGroupBlockedFlowCount_Outbound_TCP:Sum', + 'SecurityGroupBlockedFlowCount_Outbound_UDP:Sum', + 'ProcessedBytes:Sum', + 'ProcessedBytes_TCP:Sum', + 'ProcessedBytes_TLS:Sum', + 'ProcessedBytes_UDP:Sum', + 'ProcessedPackets:Sum', + 'TargetTLSNegotiationErrorCount:Sum', + 'TCP_Client_Reset_Count:Sum', + 'TCP_ELB_Reset_Count:Sum', + 'TCP_Target_Reset_Count:Sum', + 'UnhealthyRoutingFlowCount:Sum' + ], + regex = /loadbalancer\/(.+)$/; + + var metric_payload = []; + metrics_list.forEach(function (metric, index) { + var parts = metric.split(':', 2); + metric_payload.push({ + 'Id': 'm' + index, + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'AWS/NetworkELB', + 'Dimensions': [ + { + 'Name': 'LoadBalancer', + 'Value': arn.match(regex)[1], + } + ] + }, + 'Period': period, + 'Stat': parts[1], + } + }); + }); + + return metric_payload; + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = JSON.stringify([]); + } + else { + data = JSON.stringify(data) + } + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('X-Amz-Target: GraniteServiceVersion20100801.GetMetricData') + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ELB ] Sending request: ' + url); + response = request.post(url, data); + Zabbix.log(4, '[ AWS ELB ] Received response with status code ' + request.getStatus() + ': ' + response); + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + return JSON.parse(response); + }, + + getMetricsData: function () { + var end_time = Math.floor((new Date().getTime()) / 1000), + start_time = end_time - AWS.request_period * 60; + payload = { + 'StartTime': start_time, + 'EndTime': end_time, + 'ScanBy': 'TimestampDescending', + 'MetricDataQueries': AWS.renderMetricQuery(AWS.request_period, AWS.params.arn) + }; + + return AWS.getField(AWS.request('POST', AWS.params.region, 'monitoring', '', payload), 'MetricDataResults'); + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ELB Get metrics] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get ELB Network Load Balancer metrics. + Full metrics list related to Network Load Balancer: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-cloudwatch-metrics.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: arn + value: '{$AWS.ELB.ARN}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ELB Network Load Balancer"}' + tags: + - tag: component + value: raw + - uuid: d80c238267744bc9b46de217acd93842 + name: 'Get target groups' + type: SCRIPT + key: aws.elb.nlb.get_target_groups + delay: 0s;m/30 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = JSON.stringify([]); + } + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ELB ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ELB ] Received response with status code ' + request.getStatus() + ': ' + response); + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + return JSON.parse(response); + }, + + listTargetGroups: function () { + var lld_array = [], + regex = /targetgroup\/(.+)$/, + payload = { + 'Action': 'DescribeTargetGroups', + 'LoadBalancerArn': AWS.params.arn, + 'Version': '2015-12-01' + }; + targets = AWS.getField(AWS.request('GET', AWS.params.region, 'elasticloadbalancing', AWS.prepareParams(payload), ''), 'DescribeTargetGroupsResponse.DescribeTargetGroupsResult.TargetGroups'); + + if (!Array.isArray(targets)) + targets = [targets] + + targets.forEach(function (targets) { + lld_array.push( + { + target_name: AWS.getField(targets, 'TargetGroupName'), + target_arn: AWS.getField(targets, 'TargetGroupArn').match(regex)[0], + type: AWS.getField(targets, 'TargetType'), + protocol: AWS.getField(targets, 'Protocol') + } + ) + }); + + return lld_array; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.listTargetGroups()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ELB Target groups ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get ELB target group. + `DescribeTargetGroups` API method: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: arn + value: '{$AWS.ELB.ARN}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ELB Network Load Balancer"}' + tags: + - tag: component + value: raw + - uuid: 13516270f6124bf09a308bc20565528c + name: 'NLB metrics check' + type: DEPENDENT + key: aws.elb.nlb.metrics.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether NLB metric data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: status + triggers: + - uuid: c2ba26fed3324a2bb9b90493a99db088 + expression: 'length(last(/AWS ELB Network Load Balancer by HTTP/aws.elb.nlb.metrics.check))>0' + name: 'AWS ELB NLB: Failed to get metrics data' + event_name: 'AWS ELB NLB: Failed to get CloudWatch metrics for Network Load Balancer' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch metrics for Network Load Balancer.' + tags: + - tag: scope + value: availability + - uuid: 38a2dca1cca34a1988dd8713552c952b + name: 'New Flow Count' + type: DEPENDENT + key: aws.elb.nlb.new_flow_count + delay: '0' + description: 'The total number of new flows (or connections) established from clients to targets in the specified time period.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NewFlowCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: connections + - uuid: a34d5ded1ec445b89a681a39b854b6cd + name: 'New Flow Count TCP' + type: DEPENDENT + key: aws.elb.nlb.new_flow_count_tcp + delay: '0' + description: 'The total number of new TCP flows (or connections) established from clients to targets in the specified time period.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NewFlowCount_TCP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: connections + - tag: component + value: tcp + - uuid: 25ec5461aa3f477c8698d3b31ed3263c + name: 'New Flow Count TLS' + type: DEPENDENT + key: aws.elb.nlb.new_flow_count_tls + delay: '0' + description: 'The total number of new TLS flows (or connections) established from clients to targets in the specified time period.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NewFlowCount_TLS")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: connections + - tag: component + value: tls + - uuid: 3f8fb9c0de524d0b9f157a9291fd7f27 + name: 'New Flow Count UDP' + type: DEPENDENT + key: aws.elb.nlb.new_flow_count_udp + delay: '0' + description: 'The total number of new UDP flows (or connections) established from clients to targets in the specified time period.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NewFlowCount_UDP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: connections + - tag: component + value: udp + - uuid: ffda7926a52c438c8195f70d772a4f7e + name: 'Peak Packets per second' + type: DEPENDENT + key: aws.elb.nlb.peak_packets.rate + delay: '0' + description: | + Highest average packet rate (packets processed per second), calculated every 10 seconds during the sampling window. + This metric includes health check traffic. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "PeakPacketsPerSecond")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: health + - tag: component + value: traffic + - uuid: e83d4c875f414628987989a8e5e27c9e + name: 'Port Allocation Error Count' + type: DEPENDENT + key: aws.elb.nlb.port_allocation_error_count + delay: '0' + description: | + The total number of ephemeral port allocation errors during a client IP translation operation. A non-zero value indicates dropped client connections. + Note: Network Load Balancers support 55,000 simultaneous connections or about 55,000 connections per minute to each unique target (IP address and port) when performing client address translation. + To fix port allocation errors, add more targets to the target group. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "PortAllocationErrorCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: connections + - tag: component + value: health + - uuid: 38cca57bd12048558d8569e6a9d18492 + name: 'Processed Bytes' + type: DEPENDENT + key: aws.elb.nlb.processed_bytes + delay: '0' + units: B + description: 'The total number of bytes processed by the load balancer, including TCP/IP headers. This count includes traffic to and from targets, minus health check traffic.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ProcessedBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: traffic + - uuid: a6b272d40c3d4b72adcced4aadaa607c + name: 'Processed Bytes TCP' + type: DEPENDENT + key: aws.elb.nlb.processed_bytes_tcp + delay: '0' + units: B + description: 'The total number of bytes processed by TCP listeners.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ProcessedBytes_TCP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: tcp + - tag: component + value: traffic + - uuid: c1e6456cd23446808299396f6368d6a9 + name: 'Processed Bytes TLS' + type: DEPENDENT + key: aws.elb.nlb.processed_bytes_tls + delay: '0' + units: B + description: 'The total number of bytes processed by TLS listeners.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ProcessedBytes_TLS")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: tls + - tag: component + value: traffic + - uuid: 5c5e1be4725d4908adc0c506c98a6cab + name: 'Processed Bytes UDP' + type: DEPENDENT + key: aws.elb.nlb.processed_bytes_udp + delay: '0' + units: B + description: 'The total number of bytes processed by UDP listeners.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ProcessedBytes_UDP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: traffic + - tag: component + value: udp + - uuid: c41394db6dba4693b4c19aebdc2e8f69 + name: 'Processed Packets' + type: DEPENDENT + key: aws.elb.nlb.processed_packets + delay: '0' + description: 'The total number of packets processed by the load balancer. This count includes traffic to and from targets, including health check traffic.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ProcessedPackets")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: traffic + - uuid: 28bb42c1af9d4ee782a4ac1e75194293 + name: 'Security Group Blocked Flow Count Inbound ICMP' + type: DEPENDENT + key: aws.elb.nlb.sg_blocked_inbound_icmp + delay: '0' + description: 'The number of new ICMP messages rejected by the inbound rules of the load balancer security groups.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SecurityGroupBlockedFlowCount_Inbound_ICMP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: icmp + - tag: component + value: security-group + - uuid: 95db8688978d4fc0b3a54c01c34cd0c7 + name: 'Security Group Blocked Flow Count Inbound TCP' + type: DEPENDENT + key: aws.elb.nlb.sg_blocked_inbound_tcp + delay: '0' + description: 'The number of new TCP flows rejected by the inbound rules of the load balancer security groups.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SecurityGroupBlockedFlowCount_Inbound_TCP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: security-group + - tag: component + value: tcp + - uuid: 287e26627214470bba9589af506ca832 + name: 'Security Group Blocked Flow Count Inbound UDP' + type: DEPENDENT + key: aws.elb.nlb.sg_blocked_inbound_udp + delay: '0' + description: 'The number of new UDP flows rejected by the inbound rules of the load balancer security groups.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SecurityGroupBlockedFlowCount_Inbound_UDP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: security-group + - tag: component + value: udp + - uuid: 65a6fb4771114377bcdf93dc09665b2b + name: 'Security Group Blocked Flow Count Outbound ICMP' + type: DEPENDENT + key: aws.elb.nlb.sg_blocked_outbound_icmp + delay: '0' + description: 'The number of new ICMP messages rejected by the outbound rules of the load balancer security groups.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SecurityGroupBlockedFlowCount_Outbound_ICMP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: icmp + - tag: component + value: security-group + - uuid: 343b254cfc1a48cc8e401cd3514c76b3 + name: 'Security Group Blocked Flow Count Outbound TCP' + type: DEPENDENT + key: aws.elb.nlb.sg_blocked_outbound_tcp + delay: '0' + description: 'The number of new TCP flows rejected by the outbound rules of the load balancer security groups.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SecurityGroupBlockedFlowCount_Outbound_TCP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: security-group + - tag: component + value: tcp + - uuid: 5a9126687a964f969270bc1855081a7a + name: 'Security Group Blocked Flow Count Outbound UDP' + type: DEPENDENT + key: aws.elb.nlb.sg_blocked_outbound_udp + delay: '0' + description: 'The number of new UDP flows rejected by the outbound rules of the load balancer security groups.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SecurityGroupBlockedFlowCount_Outbound_UDP")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: security-group + - tag: component + value: udp + - uuid: 583872d175174881a8cdcede4fe641e7 + name: 'Target TLS Negotiation Error Count' + type: DEPENDENT + key: aws.elb.nlb.target_tls_negotiation_error_count + delay: '0' + description: 'The total number of TLS handshakes that failed during negotiation between a TLS listener and a target.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "TargetTLSNegotiationErrorCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: health + - tag: component + value: tls + - uuid: 035021358b9f4ae2b0478d5168fc1501 + name: 'TCP Client Reset Count' + type: DEPENDENT + key: aws.elb.nlb.tcp_client_reset_count + delay: '0' + description: | + The total number of reset (RST) packets sent from a client to a target. + These resets are generated by the client and forwarded by the load balancer. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "TCP_Client_Reset_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: health + - tag: component + value: tcp + - uuid: 84f23b89fb414731979941a9a4701025 + name: 'TCP ELB Reset Count' + type: DEPENDENT + key: aws.elb.nlb.tcp_elb_reset_count + delay: '0' + description: | + The total number of reset (RST) packets generated by the load balancer. + For more information, see: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-troubleshooting.html#elb-reset-count-metric + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "TCP_ELB_Reset_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: health + - tag: component + value: tcp + - uuid: 3318c330736e406c9eec5f581f3fc59b + name: 'TCP Target Reset Count' + type: DEPENDENT + key: aws.elb.nlb.tcp_target_reset_count + delay: '0' + description: | + The total number of reset (RST) packets sent from a target to a client. + These resets are generated by the target and forwarded by the load balancer. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "TCP_Target_Reset_Count")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: health + - tag: component + value: tcp + - uuid: 706019d7a11e48a9aaa1b5484c93fd8e + name: 'Unhealthy Routing Flow Count' + type: DEPENDENT + key: aws.elb.nlb.unhealthy_routing_flow_count + delay: '0' + description: 'The number of flows (or connections) that are routed using the routing failover action (fail open).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "UnhealthyRoutingFlowCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_metrics + tags: + - tag: component + value: health + discovery_rules: + - uuid: 92bef05094464c16b03b37f1f797d436 + name: 'Load Balancer alarm discovery' + type: DEPENDENT + key: aws.elb.nlb.alarms.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALARM_NAME}' + value: '{$AWS.ELB.LLD.FILTER.ALARM_NAME.MATCHES}' + formulaid: A + - macro: '{#ALARM_NAME}' + value: '{$AWS.ELB.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.ELB.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + formulaid: C + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.ELB.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Used for the discovery of alarm balancers.' + item_prototypes: + - uuid: c9f5791fe83743739ab74289126c7843 + name: '[{#ALARM_NAME}]: Get metrics' + type: DEPENDENT + key: 'aws.elb.nlb.alarm.get_metrics["{#ALARM_NAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get metrics about the alarm state and its reason.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.AlarmName == "{#ALARM_NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.elb.nlb.get_alarms + tags: + - tag: component + value: raw + - uuid: 3e039e2d86654095b0c9fa93f7273cab + name: '[{#ALARM_NAME}]: State' + type: DEPENDENT + key: 'aws.elb.nlb.alarm.state["{#ALARM_NAME}"]' + delay: '0' + description: | + The value of the alarm state. Possible values: + 0 - OK; + 1 - INSUFFICIENT_DATA; + 2 - ALARM. + Alarm description: + `{#ALARM_DESCRIPTION}` + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - $.StateValue + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: JAVASCRIPT + parameters: + - | + var state = ['OK', 'INSUFFICIENT_DATA', 'ALARM']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + master_item: + key: 'aws.elb.nlb.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: 0df06bb3cad742368204984c83f3c161 + expression: 'last(/AWS ELB Network Load Balancer by HTTP/aws.elb.nlb.alarm.state["{#ALARM_NAME}"])=1' + name: 'AWS ELB NLB: [{#ALARM_NAME}] has ''Insufficient data'' state' + event_name: 'AWS ELB NLB: [{#ALARM_NAME}] has ''Insufficient data'' state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Either the alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.' + tags: + - tag: scope + value: notice + - uuid: 8be7e86d50be4324ac6b7b8f20350eb0 + name: '[{#ALARM_NAME}]: State reason' + type: DEPENDENT + key: 'aws.elb.nlb.alarm.state_reason["{#ALARM_NAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: | + An explanation for the alarm state reason in text format. + Alarm description: + `{#ALARM_DESCRIPTION}` + preprocessing: + - type: JSONPATH + parameters: + - $.StateReason + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.elb.nlb.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: a4558b07342b4e758cde7866e9027acf + expression: 'last(/AWS ELB Network Load Balancer by HTTP/aws.elb.nlb.alarm.state["{#ALARM_NAME}"])=2 and length(last(/AWS ELB Network Load Balancer by HTTP/aws.elb.nlb.alarm.state_reason["{#ALARM_NAME}"]))>0' + name: 'AWS ELB NLB: [{#ALARM_NAME}] has ''Alarm'' state' + event_name: 'AWS ELB NLB: [{#ALARM_NAME}] has ''Alarm'' state (reason: {ITEM.LASTVALUE2})' + opdata: 'Reason: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: | + The alarm `{#ALARM_NAME}` is in the ALARM state. + Reason: `{ITEM.LASTVALUE2}` + tags: + - tag: scope + value: availability + master_item: + key: aws.elb.nlb.get_alarms + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var alarms = JSON.parse(value); + + alarms.forEach(function(alarm) { + + result.push({ + '{#ALARM_DESCRIPTION}': alarm.AlarmDescription !== null ? alarm.AlarmDescription : 'None' , + '{#ALARM_NAME}': alarm.AlarmName, + '{#ALARM_PERIOD}': alarm.Period, + '{#METRIC_NAME}': alarm.MetricName, + '{#ALARM_SERVICE_NAMESPACE}': alarm.Namespace !== null ? alarm.Namespace : 'None' + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: bc0fa68299464e2ebb031b005bd7041a + name: 'Target groups discovery' + type: DEPENDENT + key: aws.elb.nlb.target_groups.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AWS.ELB.TARGET.GROUP.NAME}' + value: '{$AWS.ELB.LLD.FILTER.TARGET.GROUP.MATCHES}' + formulaid: A + - macro: '{#AWS.ELB.TARGET.GROUP.NAME}' + value: '{$AWS.ELB.LLD.FILTER.TARGET.GROUP.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of `{$AWS.ELB.TARGET.GROUP.NAME}` target groups.' + item_prototypes: + - uuid: 9438a03b48bd4617a2363f83f758f107 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Get metrics' + type: SCRIPT + key: 'aws.elb.nlb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: 0s;m/5 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + request_period: 60, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('POST', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'arn', 'target_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + renderMetricQuery: function (period, arn, target_arn) { + var metrics_list = [ + 'HealthyHostCount:Minimum', + 'UnHealthyHostCount:Maximum' + ], + regex = /loadbalancer\/(.+)$/; + + var metric_payload = []; + metrics_list.forEach(function (metric, index) { + var parts = metric.split(':', 2); + metric_payload.push({ + 'Id': 'm' + index, + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'AWS/NetworkELB', + 'Dimensions': [ + { + 'Name': 'LoadBalancer', + 'Value': arn.match(regex)[1], + }, + { + 'Name': 'TargetGroup', + 'Value': target_arn + } + ] + }, + 'Period': period, + 'Stat': parts[1], + } + }); + }); + + return metric_payload; + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = JSON.stringify([]); + } + else { + data = JSON.stringify(data) + } + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('X-Amz-Target: GraniteServiceVersion20100801.GetMetricData') + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ELB ] Sending request: ' + url); + response = request.post(url, data); + Zabbix.log(4, '[ AWS ELB ] Received response with status code ' + request.getStatus() + ': ' + response); + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + return JSON.parse(response); + }, + + getMetricsData: function () { + var end_time = Math.floor((new Date().getTime()) / 1000), + start_time = end_time - AWS.request_period * 60; + payload = { + 'StartTime': start_time, + 'EndTime': end_time, + 'ScanBy': 'TimestampDescending', + 'MetricDataQueries': AWS.renderMetricQuery(AWS.request_period, AWS.params.arn, AWS.params.target_arn) + }; + + return AWS.getField(AWS.request('POST', AWS.params.region, 'monitoring', '', payload), 'MetricDataResults'); + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ELB Get targets group metrics] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get the metrics of the ELB target group `{#AWS.ELB.TARGET.GROUP.NAME}`. + Full list of metrics related to AWS ELB here: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-cloudwatch-metrics.html#user-authentication-metric-table + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: arn + value: '{$AWS.ELB.ARN}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: target_arn + value: '{#AWS.ELB.TARGET.GROUP.ARN}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS ELB Network Load Balancer"}' + tags: + - tag: component + value: raw + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + - uuid: 8a42548bf31843acb0b021dfa0cf7f38 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Healthy Host Count' + type: DEPENDENT + key: 'aws.elb.nlb.target_groups.healthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The number of targets that are considered healthy.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HealthyHostCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.nlb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: health + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + trigger_prototypes: + - uuid: dd527fbba0a84a1b8abe77dc34f7474c + expression: 'last(/AWS ELB Network Load Balancer by HTTP/aws.elb.nlb.target_groups.healthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]) = 0' + name: 'AWS ELB NLB: [{#AWS.ELB.TARGET.GROUP.NAME}]: Target have become unhealthy' + event_name: 'AWS ELB NLB: [{#AWS.ELB.TARGET.GROUP.NAME}]: Healthy Host Count = 0' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'This trigger helps in identifying when your targets have become unhealthy.' + tags: + - tag: scope + value: availability + - uuid: b5e01700b1a14cd1bcfb676c69490f86 + name: '[{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy Host Count' + type: DEPENDENT + key: 'aws.elb.nlb.target_groups.unhealthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + delay: '0' + description: 'The number of targets that are considered unhealthy.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "UnHealthyHostCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.elb.nlb.target_groups.get_metrics["{#AWS.ELB.TARGET.GROUP.NAME}"]' + tags: + - tag: component + value: health + - tag: component + value: target-groups + - tag: protocol + value: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + - tag: target-group + value: '{#AWS.ELB.TARGET.GROUP.NAME}' + - tag: type + value: '{#AWS.ELB.TARGET.GROUP.TYPE}' + trigger_prototypes: + - uuid: 8de0720e39eb4759bec17431a596c3d4 + expression: 'last(/AWS ELB Network Load Balancer by HTTP/aws.elb.nlb.target_groups.unhealthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]) > {$AWS.ELB.UNHEALTHY.HOST.MAX}' + name: 'AWS ELB NLB: [{#AWS.ELB.TARGET.GROUP.NAME}]: Target have unhealthy host' + event_name: 'AWS ELB NLB: [{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy Host Count > {$AWS.ELB.UNHEALTHY.HOST.MAX}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger allows you to become aware when there are no more registered targets.' + dependencies: + - name: 'AWS ELB NLB: [{#AWS.ELB.TARGET.GROUP.NAME}]: Target have become unhealthy' + expression: 'last(/AWS ELB Network Load Balancer by HTTP/aws.elb.nlb.target_groups.healthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]) = 0' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: c83f16408b0e42b1b985fa02e00d49da + name: 'AWS ELB NLB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: Healthy Host' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: 'aws.elb.nlb.target_groups.healthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + - uuid: 2ddcf506cb344d58a8b2b555c0b90952 + name: 'AWS ELB NLB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy Host' + graph_items: + - drawtype: GRADIENT_LINE + color: FF0000 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: 'aws.elb.nlb.target_groups.unhealthy_host_count["{#AWS.ELB.TARGET.GROUP.NAME}"]' + master_item: + key: aws.elb.nlb.get_target_groups + lld_macro_paths: + - lld_macro: '{#AWS.ELB.TARGET.GROUP.ARN}' + path: $.target_arn + - lld_macro: '{#AWS.ELB.TARGET.GROUP.NAME}' + path: $.target_name + - lld_macro: '{#AWS.ELB.TARGET.GROUP.PROTOCOL}' + path: $.protocol + - lld_macro: '{#AWS.ELB.TARGET.GROUP.TYPE}' + path: $.type + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: aws + - tag: target + value: elb + - tag: target + value: nlb + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.DATA.TIMEOUT}' + value: 60s + description: 'API response timeout.' + - macro: '{$AWS.ELB.ARN}' + description: 'Amazon Resource Names (ARN) of the load balancer.' + - macro: '{$AWS.ELB.LLD.FILTER.ALARM_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by name.' + - macro: '{$AWS.ELB.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by name.' + - macro: '{$AWS.ELB.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by namespace.' + - macro: '{$AWS.ELB.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by namespace.' + - macro: '{$AWS.ELB.LLD.FILTER.TARGET.GROUP.MATCHES}' + value: '.*' + description: 'Filter of discoverable target groups by name.' + - macro: '{$AWS.ELB.LLD.FILTER.TARGET.GROUP.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered target groups by name.' + - macro: '{$AWS.ELB.UNHEALTHY.HOST.MAX}' + value: '0' + description: 'Maximum number of unhealthy hosts for a trigger expression.' + - macro: '{$AWS.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, no proxy is used.' + - macro: '{$AWS.REGION}' + value: us-west-1 + description: 'AWS Network Load Balancer region code.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS ELB Network Load Balancer", e.g. {$HTTP.TLS.VERIFY:"AWS ELB Network Load Balancer"}.' + dashboards: + - uuid: 3b69323b2b8940b0a1fd0ae2ae2dc156 + name: 'Overview AWS ELB Network Load Balancer' + pages: + - name: 'AWS ELB NLB: Main' + widgets: + - type: item + name: 'Port Allocation Error Count' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.port_allocation_error_count + - type: INTEGER + name: show.0 + value: '2' + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Peak Packets per second' + - type: STRING + name: reference + value: BDBEE + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Concurrent Flows Count' + - type: STRING + name: reference + value: CFDBA + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Consumed LCUs and Processed Bytes' + - type: STRING + name: reference + value: DECEC + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Security Group Blocked Flow Count ICMP' + - type: STRING + name: reference + value: ADEED + - type: graphprototype + x: '18' + width: '18' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: Healthy Host' + - type: STRING + name: reference + value: FDEFC + - type: graphprototype + x: '36' + width: '18' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB Target Groups: [{#AWS.ELB.TARGET.GROUP.NAME}]: Unhealthy Host' + - type: STRING + name: reference + value: EAAFA + - type: item + name: 'Unhealthy Routing Flow Count' + x: '54' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.unhealthy_routing_flow_count + - type: INTEGER + name: show.0 + value: '2' + - name: 'AWS ELB NLB: TCP' + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: TCP Reset Count' + - type: STRING + name: reference + value: CCAAA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Consumed LCUs TCP and Processed Bytes TCP' + - type: STRING + name: reference + value: BEEDA + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Concurrent Flows Count TCP' + - type: STRING + name: reference + value: FEBCF + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Security Group Blocked Flow Count TCP' + - type: STRING + name: reference + value: ECBEF + - name: 'AWS ELB NLB: TLS' + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: TLS Negotiation Error Count' + - type: STRING + name: reference + value: CEAFF + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Consumed LCUs TLS and Processed Bytes TLS' + - type: STRING + name: reference + value: DDCEF + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Concurrent Flows Count TLS' + - type: STRING + name: reference + value: FABDD + - name: 'AWS ELB NLB: UDP' + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Consumed LCUs UDP and Processed Bytes UDP' + - type: STRING + name: reference + value: AEAEF + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Concurrent Flows Count UDP' + - type: STRING + name: reference + value: EBDBF + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS ELB Network Load Balancer by HTTP' + name: 'AWS ELB NLB: Security Group Blocked Flow Count UDP' + - type: STRING + name: reference + value: CFFDB + valuemaps: + - uuid: e0e5308401bd4abfa79ba604c0481d2a + name: 'Alarm state' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: 'Insufficient data' + - value: '2' + newvalue: Alarm + - value: '255' + newvalue: Unknown + graphs: + - uuid: 07118e148b0744ec98750733d1b5284c + name: 'AWS ELB NLB: Concurrent Flows Count' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.active_flow_count + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.new_flow_count + - uuid: a13750d46d834d65a881396ecedaa813 + name: 'AWS ELB NLB: Concurrent Flows Count TCP' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.active_flow_count_tcp + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.new_flow_count_tcp + - uuid: 3b4ccb4dc50b4bf49ef45b517a65e6e8 + name: 'AWS ELB NLB: Concurrent Flows Count TLS' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.active_flow_count_tls + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.new_flow_count_tls + - uuid: 670bad5c2264431cb60b3a0b9c5cf111 + name: 'AWS ELB NLB: Concurrent Flows Count UDP' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.active_flow_count_udp + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.new_flow_count_udp + - uuid: c16c89c1a5da4aafbd8151f982cade2d + name: 'AWS ELB NLB: Consumed LCUs and Processed Bytes' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.capacity_units + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + yaxisside: RIGHT + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.processed_bytes + - uuid: c5718fb3ddfd4642ba2dbd914a1fe6ac + name: 'AWS ELB NLB: Consumed LCUs TCP and Processed Bytes TCP' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.capacity_units_tcp + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + yaxisside: RIGHT + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.processed_bytes_tcp + - uuid: 7b5d11acc0dc4d19b4d0a797570400e7 + name: 'AWS ELB NLB: Consumed LCUs TLS and Processed Bytes TLS' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.capacity_units_tls + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + yaxisside: RIGHT + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.processed_bytes_tls + - uuid: 355fb45cbaef4dfb9050ca84fbfba83b + name: 'AWS ELB NLB: Consumed LCUs UDP and Processed Bytes UDP' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.capacity_units_udp + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + yaxisside: RIGHT + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.processed_bytes_udp + - uuid: e2023c7d365b45629ccf61f853229bcb + name: 'AWS ELB NLB: New Flow Count' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.new_flow_count + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.new_flow_count_tcp + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.new_flow_count_tls + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.new_flow_count_udp + - uuid: 457264f4a11a4a4dbac3314875b04ac0 + name: 'AWS ELB NLB: Peak Packets per second' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.peak_packets.rate + - uuid: 7db2aa4f6f454b06ba3c9e01259a1a24 + name: 'AWS ELB NLB: Security Group Blocked Flow Count ICMP' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.sg_blocked_inbound_icmp + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.sg_blocked_outbound_icmp + - uuid: bf724b8819804cb385f6448f2f6133ac + name: 'AWS ELB NLB: Security Group Blocked Flow Count TCP' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.sg_blocked_inbound_tcp + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.sg_blocked_outbound_tcp + - uuid: 3162f3656a154c9280bda0539c6e102c + name: 'AWS ELB NLB: Security Group Blocked Flow Count UDP' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.sg_blocked_inbound_udp + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.sg_blocked_outbound_udp + - uuid: 561b3f02b2964c5d8dce2b2b6d2556d4 + name: 'AWS ELB NLB: TCP Reset Count' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.tcp_client_reset_count + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.tcp_elb_reset_count + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.tcp_target_reset_count + - uuid: 87c58ec6a1ee4c9abde81e10af999d79 + name: 'AWS ELB NLB: TLS Negotiation Error Count' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.client_tls_negotiation_error_count + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'AWS ELB Network Load Balancer by HTTP' + key: aws.elb.nlb.target_tls_negotiation_error_count diff --git a/AWS_Lambda_by_HTTP.yaml b/AWS_Lambda_by_HTTP.yaml new file mode 100644 index 0000000..1dbd116 --- /dev/null +++ b/AWS_Lambda_by_HTTP.yaml @@ -0,0 +1,1339 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: fd36e0a231d343d38a95d1ed789584ca + template: 'AWS Lambda by HTTP' + name: 'AWS Lambda by HTTP' + description: | + The template is designed to monitor AWS Lambda by HTTP via Zabbix, and it works without any external scripts. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Cloud + items: + - uuid: 397bcf955a7449b79dab4770fe17922f + name: 'Get alarms check' + type: DEPENDENT + key: aws.lambda.alarms.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the alarm data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.lambda.get_alarms + tags: + - tag: component + value: status + triggers: + - uuid: 77f2bf7f1086488289b1cf1931e8fd90 + expression: 'length(last(/AWS Lambda by HTTP/aws.lambda.alarms.check))>0' + name: 'AWS Lambda: Failed to get alarms data' + event_name: 'AWS Lambda: Failed to get CloudWatch alarms for the Lambda function' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch alarms for the Lambda function.' + tags: + - tag: scope + value: availability + - uuid: 57c7e41184d74cc98c2eea33bfe28028 + name: 'Async events dropped sum' + type: DEPENDENT + key: aws.lambda.async_events_dropped.sum + delay: '0' + description: 'The number of events that are dropped without successfully executing the function. If you configure a dead-letter queue (DLQ) or an `OnFailure` destination, events are sent there before they''re dropped.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AsyncEventsDropped")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: asynchronous + - uuid: d8000a6335b14e0dae702787e4bf9db2 + name: 'Async events received sum' + type: DEPENDENT + key: aws.lambda.async_events_received.sum + delay: '0' + description: 'The number of events that Lambda successfully queues for processing. This metric provides insight into the number of events that a Lambda function receives.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AsyncEventsReceived")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: asynchronous + - uuid: 48b180f52bbf4c93b64433a97e00a029 + name: 'Async event age average' + type: DEPENDENT + key: aws.lambda.async_event_age.avg + delay: '0' + value_type: FLOAT + units: s + description: 'The time between when Lambda successfully queues the event and when the function is invoked. The value of this metric increases when events are being retried due to invocation failures or throttling.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AsyncEventAge")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: asynchronous + - uuid: 7eaf67dc1859405aa55f22ea8d85e7c5 + name: 'Total concurrent executions' + type: DEPENDENT + key: aws.lambda.concurrent_executions.max + delay: '0' + description: 'The number of function instances that are processing events. If this number reaches your concurrent executions quota for the Region or the reserved concurrency limit on the function, then Lambda will throttle additional invocation requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ConcurrentExecutions")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: concurrency + - uuid: 82536a92c0f84d67aabbe69e38e7f3a2 + name: 'Dead letter errors sum' + type: DEPENDENT + key: aws.lambda.dead_letter_errors.sum + delay: '0' + description: 'For asynchronous invocation, the number of times that Lambda attempts to send an event to a dead-letter queue (DLQ) but fails. Dead-letter errors can occur due to misconfigured resources or size limits.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DeadLetterErrors")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: invocation + - uuid: 370d8ac63e024a94a493c95e528f4604 + name: 'Duration average' + type: DEPENDENT + key: aws.lambda.duration.avg + delay: '0' + value_type: FLOAT + units: s + description: 'The amount of time that your function code spends processing an event. The billed duration for an invocation is the value of `Duration` rounded up to the nearest millisecond. Duration does not include cold start time.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "Duration")].Values.first().first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: performance + - uuid: 1b16f879dc5648d0b50e060d1f056fab + name: 'Errors sum' + type: DEPENDENT + key: aws.lambda.errors.sum + delay: '0' + description: 'The number of invocations that result in a function error. Function errors include exceptions that your code throws and exceptions that the Lambda runtime throws. The runtime returns errors for issues such as timeouts and configuration errors.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "Errors")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: invocation + - uuid: c80b25e889004287b6131c00000a3ad7 + name: 'Get Lambda alarms data' + type: SCRIPT + key: aws.lambda.get_alarms + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS Lambda Alarms ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS Lambda Alarms ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getAlarms: function () { + var payload = { + 'Action': 'DescribeAlarms', + 'Version': '2010-08-01', + 'MaxRecords': 100 + }, + result = []; + + while (payload.NextToken !== '') { + var alarms = AWS.getField(AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)), 'DescribeAlarmsResponse.DescribeAlarmsResult'); + payload.NextToken = alarms.NextToken || ''; + alarms_list = AWS.getField(alarms, 'MetricAlarms'); + + if (!Array.isArray(alarms_list)) + alarms_list = [alarms_list]; + alarms_list.forEach(function (alarm) { + var dimensions = alarm.Dimensions; + + if (Array.isArray(alarm.Metrics)) { + alarm.Metrics.forEach(function (metric) { + if (typeof metric.MetricStat === 'object' && metric.MetricStat !== null + && typeof metric.MetricStat.Metric === 'object' && metric.MetricStat.Metric !== null + && Array.isArray(metric.MetricStat.Metric.Dimensions)) { + dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions); + } + }); + } + for (var i in dimensions) { + if (dimensions[i].Name === 'FunctionName' && dimensions[i].Value === AWS.params.name) { + result.push(alarm); + break; + } + } + }); + } + + return result; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getAlarms()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS Lambda Alarms ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: '`DescribeAlarms` API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: name + value: '{$AWS.LAMBDA.NAME}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS Lambda"}' + tags: + - tag: component + value: raw + - uuid: 24c4972d090f4e72abc473752aac27d8 + name: 'Get metrics data' + type: SCRIPT + key: aws.lambda.get_metrics + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + request_period: 60, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('POST', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + renderMetricQuery: function (period, name) { + var metrics_list = [ + 'AsyncEventsReceived:Average', + 'AsyncEventAge:Average', + 'AsyncEventsDropped:Average', + 'ConcurrentExecutions:Average', + 'UnreservedConcurrentExecutions:Sum', + 'Invocations:Sum', + 'Errors:Sum', + 'Throttles:Sum', + 'Duration:Average' + ]; + + var metric_payload = []; + metrics_list.forEach(function (metric, index) { + var parts = metric.split(':', 2); + metric_payload.push({ + 'Id': 'm' + index, + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'AWS/Lambda', + 'Dimensions': [ + { + 'Name': 'FunctionName', + 'Value': name, + } + ] + }, + 'Period': period, + 'Stat': parts[1], + } + }); + }); + + return metric_payload; + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = JSON.stringify([]); + } + else { + data = JSON.stringify(data) + } + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('X-Amz-Target: GraniteServiceVersion20100801.GetMetricData') + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS Lambda Get metrics ] Sending request: ' + url); + response = request.post(url, data); + Zabbix.log(4, '[ AWS Lambda Get metrics ] Received response with status code ' + request.getStatus() + ': ' + response); + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + return JSON.parse(response); + }, + + getMetricsData: function () { + var end_time = Math.floor((new Date().getTime()) / 1000), + start_time = end_time - AWS.request_period * 60; + payload = { + 'StartTime': start_time, + 'EndTime': end_time, + 'ScanBy': 'TimestampDescending', + 'MetricDataQueries': AWS.renderMetricQuery(AWS.request_period, AWS.params.name) + }; + + return AWS.getField(AWS.request('POST', AWS.params.region, 'monitoring', '', payload), 'MetricDataResults'); + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS Lambda Get metrics ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get Lambda function metrics. + Full metrics list related to the Lambda function: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: name + value: '{$AWS.LAMBDA.NAME}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS Lambda"}' + tags: + - tag: component + value: raw + - uuid: 1bab5865e01b4233bc2bb5cb17516360 + name: 'Invocations sum' + type: DEPENDENT + key: aws.lambda.invocations.sum + delay: '0' + description: 'The number of times that your function code is invoked, including successful invocations and invocations that result in a function error. Invocations aren''t recorded if the invocation request is throttled or otherwise results in an invocation error. The value of `Invocations` equals the number of requests billed.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "Invocations")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: invocation + - uuid: 2bfa15a2c1ef4f66a8b2065e34a1a690 + name: 'Lambda metrics check' + type: DEPENDENT + key: aws.lambda.metrics.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether Lambda metric data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: status + triggers: + - uuid: 95ed5e8c560f4c6e89ed9d1a754ed032 + expression: 'length(last(/AWS Lambda by HTTP/aws.lambda.metrics.check))>0' + name: 'AWS Lambda: Failed to get metrics data' + event_name: 'AWS Lambda: Failed to get CloudWatch metrics for the Lambda function' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch metrics for the Lambda function.' + tags: + - tag: scope + value: availability + - uuid: 9f141ce56187497794d109c030c43a06 + name: 'Throttles sum' + type: DEPENDENT + key: aws.lambda.throttles.sum + delay: '0' + description: 'The number of invocation requests that are throttled. When all function instances are processing requests and no concurrency is available to scale up, Lambda rejects additional requests with a `TooManyRequestsException` error.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "Throttles")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: invocation + - uuid: b0ecd33e96734ac69447c095032dea55 + name: 'Unreserved concurrent executions maximum' + type: DEPENDENT + key: aws.lambda.unreserved_concurrent_executions.max + delay: '0' + description: 'For a Region, the number of events that function without reserved concurrency are processing.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "UnreservedConcurrentExecutions")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.lambda.get_metrics + tags: + - tag: component + value: concurrency + discovery_rules: + - uuid: 7b00199cc6c041f5998c798884305f9e + name: 'Lambda alarm discovery' + type: DEPENDENT + key: aws.lambda.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALARM_NAME}' + value: '{$AWS.LAMBDA.LLD.FILTER.ALARM_NAME.MATCHES}' + formulaid: A + - macro: '{#ALARM_NAME}' + value: '{$AWS.LAMBDA.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.LAMBDA.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + formulaid: C + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.LAMBDA.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Used for the discovery of alarm Lambda functions.' + item_prototypes: + - uuid: 893819314ae34f31bde78612679da46b + name: '[{#ALARM_NAME}]: Get metrics' + type: DEPENDENT + key: 'aws.lambda.alarm.get_metrics["{#ALARM_NAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get metrics about the alarm state and its reason.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.AlarmName == "{#ALARM_NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.lambda.get_alarms + tags: + - tag: component + value: raw + - uuid: 2e34c9ed36c64a6aade389e739340529 + name: '[{#ALARM_NAME}]: State' + type: DEPENDENT + key: 'aws.lambda.alarm.state["{#ALARM_NAME}"]' + delay: '0' + description: | + The value of the alarm state. Possible values: + 0 - OK; + 1 - INSUFFICIENT_DATA; + 2 - ALARM. + Alarm description: + `{#ALARM_DESCRIPTION}` + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - $.StateValue + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: JAVASCRIPT + parameters: + - | + var state = ['OK', 'INSUFFICIENT_DATA', 'ALARM']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + master_item: + key: 'aws.lambda.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: fc0d5744b0284362897a2d3191727d66 + expression: 'last(/AWS Lambda by HTTP/aws.lambda.alarm.state["{#ALARM_NAME}"])=1' + name: 'AWS Lambda: [{#ALARM_NAME}] has ''Insufficient data'' state' + event_name: 'AWS Lambda: [{#ALARM_NAME}] has ''Insufficient data'' state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Either the alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.' + tags: + - tag: scope + value: notice + - uuid: 7a314dfe3f4e4142bf4827f6cb6285bd + name: '[{#ALARM_NAME}]: State reason' + type: DEPENDENT + key: 'aws.lambda.alarm.state_reason["{#ALARM_NAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: | + An explanation for the alarm state reason in text format. + Alarm description: + `{#ALARM_DESCRIPTION}` + preprocessing: + - type: JSONPATH + parameters: + - $.StateReason + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'aws.lambda.alarm.get_metrics["{#ALARM_NAME}"]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: c3ce7372e8cf4ff48eee7f91870dc58d + expression: 'last(/AWS Lambda by HTTP/aws.lambda.alarm.state["{#ALARM_NAME}"])=2 and length(last(/AWS Lambda by HTTP/aws.lambda.alarm.state_reason["{#ALARM_NAME}"]))>0' + name: 'AWS Lambda: [{#ALARM_NAME}] has ''Alarm'' state' + event_name: 'AWS Lambda: [{#ALARM_NAME}] has ''Alarm'' state (reason: {ITEM.LASTVALUE2})' + opdata: 'Reason: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: | + The alarm `{#ALARM_NAME}` is in the ALARM state. + Reason: `{ITEM.LASTVALUE2}` + tags: + - tag: scope + value: availability + master_item: + key: aws.lambda.get_alarms + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var alarms = JSON.parse(value); + + alarms.forEach(function(alarm) { + + result.push({ + '{#ALARM_DESCRIPTION}': alarm.AlarmDescription !== null ? alarm.AlarmDescription : 'None' , + '{#ALARM_NAME}': alarm.AlarmName, + '{#ALARM_PERIOD}': alarm.Period, + '{#METRIC_NAME}': alarm.MetricName, + '{#ALARM_SERVICE_NAMESPACE}': alarm.Namespace !== null ? alarm.Namespace : 'None' + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: aws + - tag: target + value: lambda + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.DATA.TIMEOUT}' + value: 60s + description: 'API response timeout.' + - macro: '{$AWS.LAMBDA.ARN}' + description: 'The Amazon Resource Names (ARN) of the Lambda function.' + - macro: '{$AWS.LAMBDA.LLD.FILTER.ALARM_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by name.' + - macro: '{$AWS.LAMBDA.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by name.' + - macro: '{$AWS.LAMBDA.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by namespace.' + - macro: '{$AWS.LAMBDA.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by namespace.' + - macro: '{$AWS.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, no proxy is used.' + - macro: '{$AWS.REGION}' + value: us-west-1 + description: 'AWS Lambda function region code.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + type: SECRET_TEXT + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS Lambda", e.g. {$HTTP.TLS.VERIFY:"AWS Lambda"}.' + dashboards: + - uuid: aab5dac54efa4d0cbc0f7980220e172e + name: 'Overview AWS Lambda function' + pages: + - name: 'Invocation metrics' + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS Lambda by HTTP' + name: 'AWS Lambda: Invocations' + - type: STRING + name: reference + value: ECCBA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS Lambda by HTTP' + name: 'AWS Lambda: Errors' + - type: STRING + name: reference + value: DBBFF + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS Lambda by HTTP' + name: 'AWS Lambda: Duration' + - type: STRING + name: reference + value: FBDDF + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS Lambda by HTTP' + name: 'AWS Lambda: Throttles' + - type: STRING + name: reference + value: BDAAA + - name: 'Asynchronous invocation metrics' + widgets: + - type: graph + width: '24' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS Lambda by HTTP' + name: 'AWS Lambda: Asynchronous events' + - type: STRING + name: reference + value: CAADA + - type: graph + x: '24' + width: '24' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS Lambda by HTTP' + name: 'AWS Lambda: Async event age' + - type: STRING + name: reference + value: EAFEB + - type: graph + x: '48' + width: '24' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS Lambda by HTTP' + name: 'AWS Lambda: Async dropped events' + - type: STRING + name: reference + value: ECADD + - name: 'Concurrency metrics' + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS Lambda by HTTP' + name: 'AWS Lambda: Concurrent executions' + - type: STRING + name: reference + value: CAECA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'AWS Lambda by HTTP' + name: 'AWS Lambda: Unreserved concurrent executions' + - type: STRING + name: reference + value: CFEBE + valuemaps: + - uuid: a61fdde5c78748339a903f1224524deb + name: 'Alarm state' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: 'Insufficient data' + - value: '2' + newvalue: Alarm + - value: '255' + newvalue: Unknown + graphs: + - uuid: af2dcb92a19a47c2a6f8d1ea78794553 + name: 'AWS Lambda: Async dropped events' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS Lambda by HTTP' + key: aws.lambda.async_events_dropped.sum + - uuid: c6d59fa52671477db6865874acedec1b + name: 'AWS Lambda: Async event age' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS Lambda by HTTP' + key: aws.lambda.async_event_age.avg + - uuid: 2b98a8ff2c584419b962ed0cb3fe8809 + name: 'AWS Lambda: Asynchronous events' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS Lambda by HTTP' + key: aws.lambda.async_events_received.sum + - uuid: 8eb1c4bbb3974048a76e4c84bdfa25a5 + name: 'AWS Lambda: Concurrent executions' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS Lambda by HTTP' + key: aws.lambda.concurrent_executions.max + - uuid: 7e1dad2ad49d4c0487e4e724594331fa + name: 'AWS Lambda: Duration' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS Lambda by HTTP' + key: aws.lambda.duration.avg + - uuid: 07288fd5c2ff4806a6749e114d0cf93d + name: 'AWS Lambda: Errors' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS Lambda by HTTP' + key: aws.lambda.errors.sum + - uuid: cc854ebac57143629b49f1fae3598d8b + name: 'AWS Lambda: Invocations' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS Lambda by HTTP' + key: aws.lambda.invocations.sum + - uuid: c16f61d853474a0f9a251327873ef62e + name: 'AWS Lambda: Throttles' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS Lambda by HTTP' + key: aws.lambda.dead_letter_errors.sum + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'AWS Lambda by HTTP' + key: aws.lambda.throttles.sum + - uuid: d01c132670fb4347b591ddb96900fa99 + name: 'AWS Lambda: Unreserved concurrent executions' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'AWS Lambda by HTTP' + key: aws.lambda.unreserved_concurrent_executions.max diff --git a/AWS_RDS_instance_by_HTTP.yaml b/AWS_RDS_instance_by_HTTP.yaml new file mode 100644 index 0000000..4d40cf0 --- /dev/null +++ b/AWS_RDS_instance_by_HTTP.yaml @@ -0,0 +1,3660 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: c6d9475847f44d9193f8253e5995b8f8 + template: 'AWS RDS instance by HTTP' + name: 'AWS RDS instance by HTTP' + description: | + The template gets AWS RDS instance metrics and uses the script item to make HTTP requests to the CloudWatch API. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Cloud + items: + - uuid: 94471806c4cf482fb66cbe305a0e87a5 + name: 'Get alarms check' + type: DEPENDENT + key: aws.rds.alarms.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the alarm data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_alarms + tags: + - tag: component + value: status + triggers: + - uuid: 112da2ba956740fda7edcd9bd3a8651c + expression: 'length(last(/AWS RDS instance by HTTP/aws.rds.alarms.check))>0' + name: 'AWS RDS: Failed to get alarms data' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch alarms for RDS.' + tags: + - tag: scope + value: availability + - uuid: 9e40764a74e54c3b8bf0e7f75fe5f115 + name: 'Disk: Binlog Usage' + type: DEPENDENT + key: aws.rds.bin_log_disk_usage + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of disk space occupied by binary logs on the master. Applies to MySQL read replicas.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "BinLogDiskUsage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - tag: engine + value: mariadb + - tag: engine + value: mysql + - uuid: 7b7273f5d9144dd1b82c8c3fb649f593 + name: 'Burst balance' + type: DEPENDENT + key: aws.rds.burst_balance + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percent of General Purpose SSD (gp2) burst-bucket I/O credits available.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "BurstBalance")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + triggers: + - uuid: 730337e340cf4b129d4b38f1c7c82cf6 + expression: 'max(/AWS RDS instance by HTTP/aws.rds.burst_balance,5m)<{$AWS.RDS.BURST.CREDIT.BALANCE.MIN.WARN}' + name: 'AWS RDS: Burst balance is too low' + event_name: 'AWS RDS: Burst balance is too low (less {$AWS.RDS.BURST.CREDIT.BALANCE.MIN.WARN}% for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 975ee74af92c4b589f2488d403fdb18d + name: Class + type: DEPENDENT + key: aws.rds.class + delay: '0' + value_type: CHAR + trends: '0' + description: 'Contains the name of the compute and memory capacity class of the DB instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[*].DBInstanceClass.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: instance + - uuid: 83d19e8a062b4890a4897e97bb1d5a24 + name: 'Credit CPU: Balance' + type: DEPENDENT + key: aws.rds.cpu.credit_balance + delay: '0' + value_type: FLOAT + description: | + The number of CPU credits that an instance has accumulated, reported at 5-minute intervals. + You can use this metric to determine how long a DB instance can burst beyond its baseline performance level at a given rate. + When an instance is running, credits in the CPUCreditBalance don't expire. When the instance stops, the CPUCreditBalance does not persist, and all accrued credits are lost. + + This metric applies only to db.t2.small and db.t2.medium instances for Aurora MySQL, and to db.t3 instances for Aurora PostgreSQL. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CPUCreditBalance")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: cpu + - tag: component + value: credit + triggers: + - uuid: 32994f2b06b8491b9b13d0b280e09001 + expression: 'max(/AWS RDS instance by HTTP/aws.rds.cpu.credit_balance,5m)<{$AWS.RDS.CPU.CREDIT.BALANCE.MIN.WARN}' + name: 'AWS RDS: Instance CPU Credit balance is too low' + event_name: 'AWS RDS: Instance CPU Credit balance is too low (less {$AWS.RDS.CPU.CREDIT.BALANCE.MIN.WARN} for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The number of earned CPU credits has been less than {$AWS.RDS.CPU.CREDIT.BALANCE.MIN.WARN} in the last 5 minutes.' + tags: + - tag: scope + value: capacity + - uuid: 14c1c44a312b4343b0ded785a7ae910c + name: 'Credit CPU: Usage' + type: DEPENDENT + key: aws.rds.cpu.credit_usage + delay: '0' + value_type: FLOAT + description: | + The number of CPU credits consumed during the specified period, reported at 5-minute intervals. + This metric measures the amount of time during which physical CPUs have been used for processing instructions by virtual CPUs allocated to the DB instance. + + This metric applies only to db.t2.small and db.t2.medium instances for Aurora MySQL, and to db.t3 instances for Aurora PostgreSQL + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CPUCreditUsage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: cpu + - tag: component + value: credit + - uuid: b69d180c94a34882bd3faa58f8847f65 + name: 'CPU: Utilization' + type: DEPENDENT + key: aws.rds.cpu.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of CPU utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CPUUtilization")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: cpu + triggers: + - uuid: 0272980a53e14f22b06db30af49a1233 + expression: 'min(/AWS RDS instance by HTTP/aws.rds.cpu.utilization,15m)>{$AWS.RDS.CPU.UTIL.WARN.MAX}' + name: 'AWS RDS: High CPU utilization' + event_name: 'AWS RDS: High CPU utilization (over {$AWS.RDS.CPU.UTIL.WARN.MAX}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 8b4cbe054bd04d67bf7bcca006740599 + name: 'Create time' + type: DEPENDENT + key: aws.rds.create_time + delay: '0' + value_type: FLOAT + units: unixtime + description: 'Provides the date and time the DB instance was created.' + preprocessing: + - type: JSONPATH + parameters: + - $..InstanceCreateTime.first() + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: instance + - uuid: 9def6dbb88c249e8bdbac484f2e1cfb0 + name: Connections + type: DEPENDENT + key: aws.rds.database_connections + delay: '0' + value_type: FLOAT + description: | + The number of client network connections to the database instance. + The number of database sessions can be higher than the metric value because the metric value doesn't include the following: + + - Sessions that no longer have a network connection but which the database hasn't cleaned up + - Sessions created by the database engine for its own purposes + - Sessions created by the database engine's parallel execution capabilities + - Sessions created by the database engine job scheduler + - Amazon Aurora/RDS connections + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DatabaseConnections")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: connections + - uuid: a60833d27daf49329c58a4ca0d9affa5 + name: 'Disk: Queue depth' + type: DEPENDENT + key: aws.rds.disk_queue_depth + delay: '0' + value_type: FLOAT + description: 'The number of outstanding read/write requests waiting to access the disk.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DiskQueueDepth")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: 1fb56b1936024dfca328660471827ce2 + name: 'EBS: Byte balance' + type: DEPENDENT + key: aws.rds.ebs_byte_balance + delay: '0' + value_type: FLOAT + units: '%' + description: | + The percentage of throughput credits remaining in the burst bucket of your RDS database. This metric is available for basic monitoring only. + To find the instance sizes that support this metric, see the instance sizes with an asterisk (*) in the EBS optimized by default table (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html#current) in Amazon RDS User Guide for Linux Instances. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "EBSByteBalance%")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: ebs + triggers: + - uuid: b878ee69a01a47a09677b184f8352668 + expression: 'max(/AWS RDS instance by HTTP/aws.rds.ebs_byte_balance,5m)<{$AWS.EBS.BYTE.CREDIT.BALANCE.MIN.WARN}' + name: 'AWS RDS: Byte Credit balance is too low' + event_name: 'AWS RDS: Byte Credit balance is too low (less {$AWS.EBS.BYTE.CREDIT.BALANCE.MIN.WARN}% for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 44eadf0d51244375a302110cb00e8e88 + name: 'EBS: IO balance' + type: DEPENDENT + key: aws.rds.ebs_io_balance + delay: '0' + value_type: FLOAT + units: '%' + description: | + The percentage of I/O credits remaining in the burst bucket of your RDS database. This metric is available for basic monitoring only. + To find the instance sizes that support this metric, see the instance sizes with an asterisk (*) in the EBS optimized by default table (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html#current) in Amazon RDS User Guide for Linux Instances. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "EBSIOBalance%")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: ebs + triggers: + - uuid: 556100b7e8414543bf88017e13fb718f + expression: 'max(/AWS RDS instance by HTTP/aws.rds.ebs_io_balance,5m)<{$AWS.EBS.IO.CREDIT.BALANCE.MIN.WARN}' + name: 'AWS RDS: I/O Credit balance is too low' + event_name: 'AWS RDS: I/O Credit balance is too low (less {$AWS.EBS.IO.CREDIT.BALANCE.MIN.WARN}% for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: cad47e37ddc04100a8a7c3bca5f9049f + name: Engine + type: DEPENDENT + key: aws.rds.engine + delay: '0' + value_type: CHAR + trends: '0' + description: 'Database engine.' + preprocessing: + - type: JSONPATH + parameters: + - $..Engine.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: instance + - uuid: fefdac322230485cb792f295bb1420af + name: 'Engine version' + type: DEPENDENT + key: aws.rds.engine.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the database engine version.' + preprocessing: + - type: JSONPATH + parameters: + - '$[*].EngineVersion.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: instance + - uuid: 5e83a36bcbf64098938ab7bb4725c39c + name: 'Get events check' + type: DEPENDENT + key: aws.rds.events.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the instance event data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_events + tags: + - tag: component + value: status + triggers: + - uuid: 600805420f704d4daca1ac20903f27f5 + expression: 'length(last(/AWS RDS instance by HTTP/aws.rds.events.check))>0' + name: 'AWS RDS: Failed to get events data' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch events for RDS.' + tags: + - tag: scope + value: availability + - uuid: 641677b6f7c147058b1e77967754028f + name: 'SQLServer: Failed agent jobs' + type: DEPENDENT + key: aws.rds.failed_sql_server_agent_jobs_count + delay: '0' + value_type: FLOAT + units: Rpm + description: 'The number of failed Microsoft SQL Server Agent jobs during the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "FailedSQLServerAgentJobsCount")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: application + - tag: engine + value: sqlserver + - uuid: df8b49f346f8468b887526700295a6c4 + name: 'Memory, freeable' + type: DEPENDENT + key: aws.rds.freeable_memory + delay: '0' + value_type: FLOAT + units: B + description: | + The amount of available random access memory. + + For MariaDB, MySQL, Oracle, and PostgreSQL DB instances, this metric reports the value of the MemAvailable field of /proc/meminfo. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "FreeableMemory")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: memory + - uuid: 33dfd559dd93470cabf27f3a9a0968f1 + name: 'Storage: Local free' + type: DEPENDENT + key: aws.rds.free_local_storage + delay: '0' + value_type: FLOAT + units: B + description: | + The amount of local storage available, in bytes. + + Unlike for other DB engines, for Aurora DB instances this metric reports the amount of storage available to each DB instance. + This value depends on the DB instance class. You can increase the amount of free storage space for an instance by choosing a larger DB instance class for your instance. + (This doesn't apply to Aurora Serverless v2.) + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "FreeLocalStorage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: fc3fbf1da0b9481c9eee00838c05157f + name: 'Storage: Space free' + type: DEPENDENT + key: aws.rds.free_storage_space + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of available storage space.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "FreeStorageSpace")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: a2f85e777eae4fe789446de21136c510 + name: 'Get instance alarms data' + type: SCRIPT + key: aws.rds.get_alarms + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'db_instance_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS RDS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS RDS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getAlarms: function () { + var payload = { + 'Action': 'DescribeAlarms', + 'Version': '2010-08-01', + 'MaxRecords': 100 + }, + result = []; + + while (payload.NextToken !== '') { + var alarms = AWS.getField(AWS.request('GET', AWS.params.region, 'monitoring', AWS.prepareParams(payload)), 'DescribeAlarmsResponse.DescribeAlarmsResult'); + payload.NextToken = alarms.NextToken || ''; + alarms_list = AWS.getField(alarms, 'MetricAlarms'); + + if (!Array.isArray(alarms_list)) + alarms_list = [alarms_list]; + alarms_list.forEach(function (alarm) { + var dimensions = alarm.Dimensions; + + if (Array.isArray(alarm.Metrics)) { + alarm.Metrics.forEach(function (metric) { + if (typeof metric.MetricStat === 'object' && metric.MetricStat !== null + && typeof metric.MetricStat.Metric === 'object' && metric.MetricStat.Metric !== null + && Array.isArray(metric.MetricStat.Metric.Dimensions)) { + dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions); + } + }); + } + for (var i in dimensions) { + if (dimensions[i].Name === 'DBInstanceIdentifier' && dimensions[i].Value === AWS.params.db_instance_id) { + result.push(alarm); + break; + } + } + }); + } + + return result; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getAlarms()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS RDS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'DescribeAlarms API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: db_instance_id + value: '{$AWS.RDS.INSTANCE.ID}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS RDS instance"}' + tags: + - tag: component + value: raw + - uuid: f0d1041fa09d4ba38c9d0b39c4b76b0b + name: 'Get instance events data' + type: SCRIPT + key: aws.rds.get_events + delay: 0s;m/10 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'db_instance_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS RDS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS RDS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS RDS API. Check debug log for more information.'; + } + } + + return response; + }, + + getEvents: function () { + var payload = { + 'Action': 'DescribeEvents', + 'Version': '2014-09-01', + 'MaxRecords': 100, + 'Duration': 30, + 'SourceType': 'db-instance', + 'SourceIdentifier': AWS.params.db_instance_id + }, + result = []; + + while (payload.nextToken !== '') { + var events = AWS.getField(AWS.request('GET', AWS.params.region, 'rds', AWS.prepareParams(payload)), 'DescribeEventsResponse.DescribeEventsResult'); + events_list = AWS.getField(events, 'Events'); + + if (!Array.isArray(events_list)) + events_list = [events_list]; + events_list.forEach(function (event) { + event.EventCategories = event.EventCategories.toString(); + result.push(event); + }); + payload.nextToken = events.nextToken || ''; + + + }; + + return result; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getEvents()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS RDS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'DescribeEvents API method: https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeEvents.html' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: db_instance_id + value: '{$AWS.RDS.INSTANCE.ID}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS RDS instance"}' + tags: + - tag: component + value: raw + - uuid: 85ac4a5313994e0f94fe6480d3c85193 + name: 'Get instance info' + type: SCRIPT + key: aws.rds.get_instance_info + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + request_period: 600, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'db_instance_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS RDS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS RDS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS RDS API. Check debug log for more information.'; + } + } + + return response; + }, + + getInstanceData: function () { + var payload = {}; + + payload['Action'] = 'DescribeDBInstances', + payload['Version'] = '2014-10-31', + payload['DBInstanceIdentifier'] = AWS.params.db_instance_id; + + result = AWS.request('GET', AWS.params.region, 'rds', AWS.prepareParams(payload)); + if (typeof result !== 'object' + || typeof result.DescribeDBInstancesResponse !== 'object' + || typeof result.DescribeDBInstancesResponse.DescribeDBInstancesResult !== 'object' + || typeof result.DescribeDBInstancesResponse.DescribeDBInstancesResult.DBInstances !== 'object') { + throw 'Cannot get metrics data from AWS RDS API. Check debug log for more information.'; + } + + return result.DescribeDBInstancesResponse.DescribeDBInstancesResult.DBInstances; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getInstanceData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS RDS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get instance info. + DescribeDBInstances API method: https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstances.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: db_instance_id + value: '{$AWS.RDS.INSTANCE.ID}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS RDS instance"}' + tags: + - tag: component + value: raw + - uuid: b22171fe7de44ac3952468ceb0c1a9b0 + name: 'Get metrics data' + type: SCRIPT + key: aws.rds.get_metrics + delay: 0s;m/5 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + request_period: 600, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('POST', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'db_instance_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + renderMetricQuery: function (period, db_instance_id) { + var metrics_list = [ + 'AbortedClients:Count', + 'ActiveTransactions:Count/Second', + 'AuroraBinlogReplicaLag:Seconds', + 'AuroraReplicaLag:Milliseconds', + 'AuroraReplicaLagMaximum:Milliseconds', + 'AuroraReplicaLagMinimum:Milliseconds', + 'BacktrackWindowActual:Count', + 'BacktrackWindowAlert:Count', + 'BinLogDiskUsage:Bytes', + 'BlockedTransactions:Count/Second', + 'BufferCacheHitRatio:Percent', + 'CheckpointLag:Seconds', + 'CommitLatency:Milliseconds', + 'CommitThroughput:Count/Second', + 'CPUCreditBalance:Count', + 'CPUCreditUsage:Count', + 'CPUUtilization:Percent', + 'DatabaseConnections:Count', + 'DDLLatency:Milliseconds', + 'DDLThroughput:Count/Second', + 'Deadlocks:Count/Second', + 'DeleteLatency:Milliseconds', + 'DeleteThroughput:Count/Second', + 'DiskQueueDepth:Count', + 'DMLLatency:Milliseconds', + 'DMLThroughput:Count/Second', + 'EBSByteBalance%:Percent', + 'EBSIOBalance%:Percent', + 'EngineUptime:Seconds', + 'FailedSQLServerAgentJobsCount:Count/Second', + 'FreeableMemory:Bytes', + 'FreeLocalStorage:Bytes', + 'InsertLatency:Milliseconds', + 'InsertThroughput:Count/Second', + 'LoginFailures:Count/Second', + 'MaximumUsedTransactionIDs:Count', + 'NetworkReceiveThroughput:Bytes/Second', + 'NetworkThroughput:Bytes/Second', + 'NetworkTransmitThroughput:Bytes/Second', + 'NumBinaryLogFiles:Count', + 'Queries:Count/Second', + 'RDSToAuroraPostgreSQLReplicaLag:Seconds', + 'ReadIOPS:Count/Second', + 'ReadLatency:Seconds', + 'ReadLatencyLocalStorage:Seconds', + 'ReadThroughput:Bytes/Second', + 'ReadThroughputLocalStorage:Bytes/Second', + 'ReplicationSlotDiskUsage:Bytes', + 'ResultSetCacheHitRatio:Percent', + 'RollbackSegmentHistoryListLength:Count', + 'RowLockTime:Milliseconds', + 'SelectLatency:Milliseconds', + 'SelectThroughput:Count/Second', + 'StorageNetworkReceiveThroughput:Bytes/Second', + 'StorageNetworkThroughput:Bytes/Second', + 'StorageNetworkTransmitThroughput:Bytes/Second', + 'SumBinaryLogSize:Bytes', + 'SwapUsage:Bytes', + 'TransactionLogsDiskUsage:Bytes', + 'UpdateLatency:Milliseconds', + 'UpdateThroughput:Count/Second', + 'WriteIOPS:Count/Second', + 'WriteLatency:Seconds', + 'WriteThroughput:Bytes/Second', + 'BurstBalance:Percent', + 'FreeStorageSpace:Bytes', + 'OldestReplicationSlotLag:Bytes', + 'ReplicaLag:Seconds', + 'TransactionLogsGeneration:Bytes/Second' + ]; + + var metric_payload = []; + metrics_list.forEach(function (metric) { + var parts = metric.split(':', 2); + var name = parts[0].replace(/[^a-zA-Z0-9]/g, ''); + metric_payload.push({ + 'Id': name.charAt(0).toLowerCase() + name.slice(1), + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'AWS/RDS', + 'Dimensions': [ + { + 'Name': 'DBInstanceIdentifier', + 'Value': db_instance_id + } + ] + }, + 'Period': period, + 'Stat': 'Average', + 'Unit': parts[1] + } + }); + }); + + return metric_payload; + + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + else { + data = JSON.stringify(data); + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('X-Amz-Target: GraniteServiceVersion20100801.GetMetricData'); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS RDS ] Sending request: ' + url); + response = request.post(url, data); + Zabbix.log(4, '[ AWS RDS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getMetricsData: function () { + var payload = {}, + end_time = Math.floor((new Date().getTime()) / 1000), + start_time = end_time - AWS.request_period; + + payload['StartTime'] = start_time; + payload['EndTime'] = end_time; + payload['ScanBy'] = 'TimestampDescending'; + payload['MetricDataQueries'] = AWS.renderMetricQuery(AWS.request_period, AWS.params.db_instance_id); + result = AWS.request('POST', AWS.params.region, 'monitoring', '', payload); + if (typeof result !== 'object' || typeof result.MetricDataResults !== 'object') { + throw 'Cannot get metrics data from AWS CloudWatch API. Check debug log for more information.'; + } + + return result.MetricDataResults; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS RDS ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get instance metrics. + Full metrics list related to RDS: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-metrics.html + Full metrics list related to Amazon Aurora: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.AuroraMySQL.Monitoring.Metrics.html#Aurora.AuroraMySQL.Monitoring.Metrics.instances + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: db_instance_id + value: '{$AWS.RDS.INSTANCE.ID}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{$AWS.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS RDS instance"}' + tags: + - tag: component + value: raw + - uuid: 72fb52bfbcf44ad58df0d49525654cde + name: 'Get instance info check' + type: DEPENDENT + key: aws.rds.instance_info.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the instance information was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: status + triggers: + - uuid: 452195309f1f4211aeb71b43a373f86f + expression: 'length(last(/AWS RDS instance by HTTP/aws.rds.instance_info.check))>0' + name: 'AWS RDS: Failed to get instance data' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch instance info for RDS.' + tags: + - tag: scope + value: availability + - uuid: 8f651a01cd1d4639b6a4ef443285b24c + name: 'RDS metrics check' + type: DEPENDENT + key: aws.rds.metrics.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether RDS metric data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: status + triggers: + - uuid: 54c70842bf314ce2a9c95e0cfc57cc21 + expression: 'length(last(/AWS RDS instance by HTTP/aws.rds.metrics.check))>0' + name: 'AWS RDS: Failed to get metrics data' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch metrics for RDS.' + tags: + - tag: scope + value: availability + - uuid: 4d5ce2d0bb0648a6b4e4df98dc20fb49 + name: 'Network: Receive throughput' + type: DEPENDENT + key: aws.rds.network_receive_throughput.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The incoming (Receive) network traffic on the DB instance, including both customer database traffic and Amazon RDS traffic used for monitoring and replication.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NetworkReceiveThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: network + - uuid: 8de924155ca646e0a63de9fb4184e2b7 + name: 'Network: Throughput' + type: DEPENDENT + key: aws.rds.network_throughput.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The amount of network throughput both received from and transmitted to clients by each instance in the Aurora MySQL DB cluster, in bytes per second. This throughput doesn''t include network traffic between instances in the DB cluster and the cluster volume.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NetworkThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: network + - uuid: a97083537fce49c99caf71d1b0b2926f + name: 'Network: Transmit throughput' + type: DEPENDENT + key: aws.rds.network_transmit_throughput.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The outgoing (Transmit) network traffic on the DB instance, including both customer database traffic and Amazon RDS traffic used for monitoring and replication.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NetworkTransmitThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: network + - uuid: 3f9ac8ce149e4fb2a65580941c4d5428 + name: 'Disk: Read IOPS' + type: DEPENDENT + key: aws.rds.read_iops.rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The average number of disk I/O operations per second. Aurora PostgreSQL-Compatible Edition reports read and write IOPS separately, in 1-minute intervals.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ReadIOPS")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: bd55865999364de890e87da30676adea + name: 'Disk: Read IOPS, local storage' + type: DEPENDENT + key: aws.rds.read_iops_local_storage.rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The average number of disk read I/O operations to local storage per second. Only applies to Multi-AZ DB clusters.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ReadIOPSLocalStorage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: 3ad5d0d0bbbb4e579c74dd54923ccd8b + name: 'Disk: Read latency' + type: DEPENDENT + key: aws.rds.read_latency + delay: '0' + value_type: FLOAT + units: s + description: 'The average amount of time taken per disk I/O operation.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ReadLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: 2d85eb0d8e2641bf95b3c5dbbb125089 + name: 'Disk: Read latency, local storage' + type: DEPENDENT + key: aws.rds.read_latency_local_storage + delay: '0' + value_type: FLOAT + units: s + description: 'The average amount of time taken per disk I/O operation for local storage. Only applies to Multi-AZ DB clusters.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ReadLatencyLocalStorage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: 9253279ef6c34d86a2b1750c8d8b29d0 + name: 'Read replica: State' + type: DEPENDENT + key: aws.rds.read_replica_state + delay: '0' + value_type: CHAR + trends: '0' + description: | + The status of a read replica. If the instance isn't a read replica, this is blank. + Boolean value that is true if the instance is operating normally, or false if the instance is in an error state. + valuemap: + name: 'Read replica state' + preprocessing: + - type: JSONPATH + parameters: + - $..StatusInfos..Normal.first() + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: replication + triggers: + - uuid: 1f4767ba167f43b7ae9730ec834152a4 + expression: 'last(/AWS RDS instance by HTTP/aws.rds.read_replica_state)=0' + name: 'AWS RDS: Read replica in error state' + priority: AVERAGE + description: | + The status of a read replica. + False if the instance is in an error state. + tags: + - tag: scope + value: availability + - uuid: 8fd266a7e4744395b21638b58c939072 + name: 'Read replica: Status' + type: DEPENDENT + key: aws.rds.read_replica_status + delay: '0' + value_type: CHAR + trends: '0' + description: | + The status of a read replica. If the instance isn't a read replica, this is blank. + Status of the DB instance. For a StatusType of read replica, the values can be replicating, replication stop point set, replication stop point reached, error, stopped, or terminated. + preprocessing: + - type: JSONPATH + parameters: + - $..StatusInfos..Status.first() + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: replication + - uuid: 14b63bcb60fd4c91b87357d3f77e71df + name: 'Disk: Read throughput' + type: DEPENDENT + key: aws.rds.read_throughput.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The average number of bytes read from disk per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ReadThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: bc963bae1664421c8874d77b085006a6 + name: 'Disk: Read throughput, local storage' + type: DEPENDENT + key: aws.rds.read_throughput_local_storage.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The average number of bytes read from disk per second for local storage. Only applies to Multi-AZ DB clusters.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ReadThroughputLocalStorage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: 7be22cd083bc401bbbd2d75f2f6816de + name: 'Replication: Lag' + type: DEPENDENT + key: aws.rds.replica_lag + delay: '0' + value_type: FLOAT + units: s + description: 'The amount of time a read replica DB instance lags behind the source DB instance. Applies to MySQL, MariaDB, Oracle, PostgreSQL, and SQL Server read replicas.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ReplicaLag")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: replication + - tag: engine + value: mariadb + - tag: engine + value: mysql + - tag: engine + value: oracle + - tag: engine + value: postgres + - tag: engine + value: sqlserver + - uuid: f6fe45dc205241cb99b1822d3f78cce6 + name: Status + type: DEPENDENT + key: aws.rds.status + delay: '0' + value_type: CHAR + trends: '0' + description: | + Specifies the current state of this database. + All possible status values and their description: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/accessing-monitoring.html#Overview.DBInstance.Status + preprocessing: + - type: JSONPATH + parameters: + - $..DBInstanceStatus.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: instance + - uuid: 2694163a440f40e4a5ec41111f9abf59 + name: 'Storage: Allocated' + type: DEPENDENT + key: aws.rds.storage.allocated + delay: '0' + value_type: FLOAT + units: '!GiB' + description: 'Specifies the allocated storage size specified in gibibytes (GiB).' + preprocessing: + - type: JSONPATH + parameters: + - '$[*].AllocatedStorage.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: storage + - uuid: 1aafa7a752274a1abb30b7b2e067b857 + name: 'Storage: Max allocated' + type: DEPENDENT + key: aws.rds.storage.max_allocated + delay: '0' + value_type: FLOAT + units: '!GiB' + description: | + The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance. + If limit is not specified returns -1. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + return (typeof data.MaxAllocatedStorage === 'undefined') ? -1 : data.MaxAllocatedStorage; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: storage + - uuid: 842f80f586794da39562ceb3cb09d5a4 + name: 'Network: Receive throughput' + type: DEPENDENT + key: aws.rds.storage_network_receive_throughput + delay: '0' + value_type: FLOAT + units: Bps + description: | + The incoming (receive) network traffic on the DB instance, including both customer database traffic and Amazon RDS traffic used for monitoring and replication. + For Amazon Aurora: The amount of network throughput received from the Aurora storage subsystem by each instance in the DB cluster. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "StorageNetworkReceiveThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: network + - uuid: bab141cde0114edf8b02211565df5b1f + name: 'Network: Transmit throughput' + type: DEPENDENT + key: aws.rds.storage_network_transmit_throughput + delay: '0' + value_type: FLOAT + units: Bps + description: | + The outgoing (transmit) network traffic on the DB instance, including both customer database traffic and Amazon RDS traffic used for monitoring and replication. + For Amazon Aurora: The amount of network throughput sent to the Aurora storage subsystem by each instance in the Aurora MySQL DB cluster. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "StorageNetworkTransmitThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: network + - uuid: 6b3a8fd76fe6466395dcc4926d7177b4 + name: 'Storage type' + type: DEPENDENT + key: aws.rds.storage_type + delay: '0' + value_type: CHAR + trends: '0' + description: 'Specifies the storage type associated with DB instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[*].StorageType.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_instance_info + tags: + - tag: component + value: instance + - uuid: f9d1a5169ec54f648937eac63b3ebcbb + name: 'Swap usage' + type: DEPENDENT + key: aws.rds.swap_usage + delay: '0' + value_type: FLOAT + units: B + description: | + The amount of swap space used. + This metric is available for the Aurora PostgreSQL DB instance classes db.t3.medium, db.t3.large, db.r4.large, db.r4.xlarge, db.r5.large, db.r5.xlarge, db.r6g.large, and db.r6g.xlarge. + For Aurora MySQL, this metric applies only to db.t* DB instance classes. + This metric is not available for SQL Server. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SwapUsage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: memory + - uuid: a64c2caccd884f0f9bb7c9c9295baf45 + name: 'Disk: Write IOPS' + type: DEPENDENT + key: aws.rds.write_iops.rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of write records generated per second. This is more or less the number of log records generated by the database. These do not correspond to 8K page writes, and do not correspond to network packets sent.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "WriteIOPS")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: 19dc221c59ec4587af496bd644830869 + name: 'Disk: Write IOPS, local storage' + type: DEPENDENT + key: aws.rds.write_iops_local_storage.rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The average number of disk write I/O operations per second on local storage in a Multi-AZ DB cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "WriteIOPSLocalStorage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: 57e84381425d4706a2bcea41e0373157 + name: 'Disk: Write latency' + type: DEPENDENT + key: aws.rds.write_latency + delay: '0' + value_type: FLOAT + units: s + description: 'The average amount of time taken per disk I/O operation.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "WriteLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: b34b656492e8479ea03b97815d368752 + name: 'Disk: Write latency, local storage' + type: DEPENDENT + key: aws.rds.write_latency_local_storage + delay: '0' + value_type: FLOAT + units: s + description: 'The average amount of time taken per disk I/O operation on local storage in a Multi-AZ DB cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "WriteLatencyLocalStorage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: db6932f63f7843508bb9e5559a69e8c3 + name: 'Disk: Write throughput' + type: DEPENDENT + key: aws.rds.write_throughput.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The average number of bytes written to persistent storage every second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "WriteThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + - uuid: f30df9f386be49948bce7817d56dae09 + name: 'Disk: Write throughput, local storage' + type: DEPENDENT + key: aws.rds.write_throughput_local_storage.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The average number of bytes written to disk per second for local storage.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "WriteThroughputLocalStorage")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: disk + discovery_rules: + - uuid: 29b2b32b0d82450393f77ec7e093ef81 + name: 'Instance Alarms discovery' + type: DEPENDENT + key: aws.rds.alarms.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALARM_NAME}' + value: '{$AWS.RDS.LLD.FILTER.ALARM_NAME.MATCHES}' + formulaid: A + - macro: '{#ALARM_NAME}' + value: '{$AWS.RDS.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.RDS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + formulaid: C + - macro: '{#ALARM_SERVICE_NAMESPACE}' + value: '{$AWS.RDS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery instance alarms.' + item_prototypes: + - uuid: aab5aaf6e27740c6ac92f5494b3aef4b + name: '[{#ALARM_NAME}]: State' + type: DEPENDENT + key: 'aws.rds.alarm.state["{#ALARM_NAME}"]' + delay: '0' + description: | + The state value for the alarm. Possible values: 0 (OK), 1 (INSUFFICIENT_DATA), 2 (ALARM). + Alarm description: + {#ALARM_DESCRIPTION} + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.AlarmName == "{#ALARM_NAME}")].StateValue.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: JAVASCRIPT + parameters: + - | + var state = ['OK', 'INSUFFICIENT_DATA', 'ALARM']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + master_item: + key: aws.rds.get_alarms + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: 7d87b8d84fef4aff8aa9c0fd49e49619 + expression: 'last(/AWS RDS instance by HTTP/aws.rds.alarm.state["{#ALARM_NAME}"])=1' + name: 'AWS RDS: [{#ALARM_NAME}] has ''Insufficient data'' state' + priority: INFO + description: 'Either the alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.' + tags: + - tag: scope + value: notice + - uuid: 6e95f834b2284447b5ab0f6516d29946 + name: '[{#ALARM_NAME}]: State reason' + type: DEPENDENT + key: 'aws.rds.alarm.state_reason["{#ALARM_NAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: | + An explanation for the alarm state, in text format. + Alarm description: + {#ALARM_DESCRIPTION} + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.AlarmName == "{#ALARM_NAME}")].StateReason.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_alarms + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: 0f70f3d91d9c403c9d4c3cfb3283865f + expression: 'last(/AWS RDS instance by HTTP/aws.rds.alarm.state["{#ALARM_NAME}"])=2 and length(last(/AWS RDS instance by HTTP/aws.rds.alarm.state_reason["{#ALARM_NAME}"]))>0' + name: 'AWS RDS: [{#ALARM_NAME}] has ''Alarm'' state' + priority: AVERAGE + description: | + Alarm "{#ALARM_NAME}" has 'Alarm' state. + Reason: {ITEM.LASTVALUE2} + tags: + - tag: scope + value: availability + master_item: + key: aws.rds.get_alarms + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var alarms = JSON.parse(value); + + alarms.forEach(function (alarm) { + + result.push({ + '{#ALARM_DESCRIPTION}': alarm.AlarmDescription !== null ? alarm.AlarmDescription : 'None', + '{#ALARM_NAME}': alarm.AlarmName, + '{#ALARM_PERIOD}': alarm.Period, + '{#METRIC_NAME}': alarm.MetricName, + '{#ALARM_SERVICE_NAMESPACE}': alarm.Namespace !== null ? alarm.Namespace : 'None' + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: f13154dfb6b547718d1bf4b0ed12d35f + name: 'Aurora metrics discovery' + type: DEPENDENT + key: aws.rds.aurora.discovery + delay: '0' + description: | + Discovery Amazon Aurora metrics. + https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.AuroraMySQL.Monitoring.Metrics.html#Aurora.AuroraMySQL.Monitoring.Metrics.instances + item_prototypes: + - uuid: 28df1a214515425099514140a1244cc4 + name: 'Replication: Lag, max' + type: DEPENDENT + key: 'aws.rds.aurora_replica_lag.max[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The maximum amount of lag between the primary instance and each Aurora DB instance in the DB cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AuroraReplicaLagMaximum")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: replication + - tag: engine + value: aurora + - uuid: 39e226420be740bd81712624d4d86882 + name: 'Replication: Lag, min' + type: DEPENDENT + key: 'aws.rds.aurora_replica_lag.min[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The minimum amount of lag between the primary instance and each Aurora DB instance in the DB cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AuroraReplicaLagMinimum")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: replication + - tag: engine + value: aurora + - uuid: 966022d4bc484918b9497d3515c35f9d + name: 'Replication: Lag' + type: DEPENDENT + key: 'aws.rds.aurora_replica_lag[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'For an Aurora replica, the amount of lag when replicating updates from the primary instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AuroraReplicaLag")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: replication + - tag: engine + value: aurora + - uuid: 4a76341c354540b48677c29a92270d57 + name: 'Buffer Cache hit ratio' + type: DEPENDENT + key: 'aws.rds.buffer_cache_hit_ratio[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of requests that are served by the buffer cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "BufferCacheHitRatio")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: cache + - tag: engine + value: aurora + - uuid: a988ecbcb5804916a37e2c4270cf1261 + name: 'Operations: Commit latency' + type: DEPENDENT + key: 'aws.rds.commit_latency[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The amount of latency for commit operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CommitLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora + - uuid: 0892af875af04dbebd3954b37a196605 + name: 'Operations: Commit throughput' + type: DEPENDENT + key: 'aws.rds.commit_throughput.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The average number of commit operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "CommitThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora + - uuid: febdffdd64974deb91185af1bbc78ffd + name: 'Deadlocks, rate' + type: DEPENDENT + key: 'aws.rds.deadlocks.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The average number of deadlocks in the database per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "Deadlocks")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora + - uuid: 24d139d74b034e2096f50943fa003e4f + name: 'Engine uptime' + type: DEPENDENT + key: 'aws.rds.engine_uptime[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: s + description: 'The amount of time that the instance has been running.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "EngineUptime")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: instance + - tag: engine + value: aurora + - uuid: 65ee7a93945d4c7baf6c20137e62b9dc + name: 'Rollback segment history list length' + type: DEPENDENT + key: 'aws.rds.rollback_segment_history_list_length[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The undo logs that record committed transactions with delete-marked records. These records are scheduled to be processed by the InnoDB purge operation.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "RollbackSegmentHistoryListLength")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: application + - tag: engine + value: aurora-mysql + - uuid: 2c1b3f9701f343e5845c78c52e71f72f + name: 'Row lock time' + type: DEPENDENT + key: 'aws.rds.row_locktime[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The total time spent acquiring row locks for InnoDB tables.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "RowLockTime")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: application + - tag: engine + value: aurora-mysql + - uuid: 05218f79a137466392af0652acfe2db5 + name: 'Operations: Select latency' + type: DEPENDENT + key: 'aws.rds.select_latency[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The amount of latency for select queries.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SelectLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora-mysql + - uuid: 849c0bd9b5d940568bc1e71eb6318738 + name: 'Operations: Select throughput' + type: DEPENDENT + key: 'aws.rds.select_throughput.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: rps + description: 'The average number of select queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SelectThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora-mysql + - uuid: 62e6fa21b2f54030bbbd04f268de5737 + name: 'Network: Throughput' + type: DEPENDENT + key: 'aws.rds.storage_network_throughput[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The amount of network throughput received from and sent to the Aurora storage subsystem by each instance in the Aurora MySQL DB cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "StorageNetworkThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: network + - tag: engine + value: aurora + graph_prototypes: + - uuid: 3a753d02e4b8465a9f4da698c2acd387 + name: 'AWS RDS: [{#SINGLETON}]Operations Latency (commit/select)' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.commit_latency[{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.select_latency[{#SINGLETON}]' + - uuid: c856d61be8594efda8f87396c6ba31f9 + name: 'AWS RDS: [{#SINGLETON}]Operations Throughput (commit/select)' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.commit_throughput.rate[{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.select_throughput.rate[{#SINGLETON}]' + master_item: + key: aws.rds.engine + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value.includes(''aurora'') ? [{ ''{#SINGLETON}'': '''' }] : []);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: cb9080a3bf4c4c51936bb8d818f69adc + name: 'Instance Events discovery' + type: DEPENDENT + key: aws.rds.events.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#EVENT_CATEGORY}' + value: '{$AWS.RDS.LLD.FILTER.EVENT_CATEGORY.MATCHES}' + formulaid: A + - macro: '{#EVENT_CATEGORY}' + value: '{$AWS.RDS.LLD.FILTER.EVENT_CATEGORY.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#EVENT_SOURCE_TYPE}' + value: '{$AWS.RDS.LLD.FILTER.EVENT_SOURCE_TYPE.MATCHES}' + formulaid: C + - macro: '{#EVENT_SOURCE_TYPE}' + value: '{$AWS.RDS.LLD.FILTER.EVENT_SOURCE_TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery instance events.' + item_prototypes: + - uuid: 21b9df85f2e841c48204c7cb4fb5caeb + name: '[{#EVENT_CATEGORY}]: {#EVENT_SOURCE_TYPE}/{#EVENT_SOURCE_ID} : Date' + type: DEPENDENT + key: 'aws.rds.event_date["{#EVENT_CATEGORY}/{#EVENT_SOURCE_TYPE}/{#EVENT_SOURCE_ID}"]' + delay: '0' + value_type: FLOAT + units: unixtime + description: 'Provides the text of this event.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.SourceIdentifier == "{#EVENT_SOURCE_ID}" && @.SourceType == "{#EVENT_SOURCE_TYPE}" && @.EventCategories == "{#EVENT_CATEGORY}")].Date' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[-1]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_events + tags: + - tag: component + value: events + - tag: event-categories + value: '{#EVENT_CATEGORY}' + - uuid: 10cf420329fa42c08266a5d38bc7678b + name: '[{#EVENT_CATEGORY}]: {#EVENT_SOURCE_TYPE}/{#EVENT_SOURCE_ID}: Message' + type: DEPENDENT + key: 'aws.rds.event_message["{#EVENT_CATEGORY}/{#EVENT_SOURCE_TYPE}/{#EVENT_SOURCE_ID}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Provides the text of this event.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.SourceIdentifier == "{#EVENT_SOURCE_ID}" && @.SourceType == "{#EVENT_SOURCE_TYPE}" && @.EventCategories == "{#EVENT_CATEGORY}")].Message' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[-1]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.rds.get_events + tags: + - tag: component + value: events + - tag: event-categories + value: '{#EVENT_CATEGORY}' + master_item: + key: aws.rds.get_events + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (event) { + var filter = event.EventCategories + event.SourceIdentifier + event.SourceType; + if (!(lookup[filter])) { + lookup[filter] = 1; + result.push({ + '{#EVENT_CATEGORY}': event.EventCategories, + '{#EVENT_SOURCE_ID}': event.SourceIdentifier, + '{#EVENT_SOURCE_TYPE}': event.SourceType + }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: ec07301eaaad4f32a3759692d96150ab + name: 'Aurora MySQL metrics discovery' + type: DEPENDENT + key: aws.rds.postgresql.discovery + delay: '0' + description: | + Discovery Aurora MySQL metrics. + Storage types: + aurora (for MySQL 5.6-compatible Aurora) + aurora-mysql (for MySQL 5.7-compatible and MySQL 8.0-compatible Aurora) + item_prototypes: + - uuid: 3842a935bedf446d8b8b9a7fd58fc24b + name: 'Connections: Aborted' + type: DEPENDENT + key: 'aws.rds.aurora_clients_aborted[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The number of client connections that have not been closed properly.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AbortedClients")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: connections + - tag: engine + value: aurora-mysql + - uuid: 8b87e0f4f1fc4290a7c72ec382b74941 + name: 'Replication: Binlog lag' + type: DEPENDENT + key: 'aws.rds.aurora_replication_binlog_lag[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The amount of time that a binary log replica DB cluster running on Aurora MySQL-Compatible Edition lags behind the binary log replication source. + A lag means that the source is generating records faster than the replica can apply them. + The metric value indicates the following: + + A high value: The replica is lagging the replication source. + 0 or a value close to 0: The replica process is active and current. + -1: Aurora can't determine the lag, which can happen during replica setup or when the replica is in an error state + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AuroraBinlogReplicaLag")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: replication + - tag: engine + value: aurora-mysql + - uuid: 97f85bd65fc64b66b57b122f8689bc38 + name: 'Transactions: Active, rate' + type: DEPENDENT + key: 'aws.rds.aurora_transactions_active.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: Rps + description: | + The average number of current transactions executing on an Aurora database instance per second. + By default, Aurora doesn't enable this metric. To begin measuring this value, set innodb_monitor_enable='all' in the DB parameter group for a specific DB instance. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ActiveTransactions")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: transactions + - tag: engine + value: aurora-mysql + - uuid: 44ca3ca16bd1450790099a0354e78f13 + name: 'Backtrack: Window, actual' + type: DEPENDENT + key: 'aws.rds.backtrack_window_actual[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: '!minutes' + description: 'The difference between the target backtrack window and the actual backtrack window.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "BacktrackWindowActual")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: backtrack + - tag: engine + value: aurora-mysql + - uuid: 20de520b7f53459db765eb221fcef248 + name: 'Backtrack: Window, alert' + type: DEPENDENT + key: 'aws.rds.backtrack_window_alert[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The number of times that the actual backtrack window is smaller than the target backtrack window for a given period of time.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "BacktrackWindowAlert")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: backtrack + - tag: engine + value: aurora-mysql + - uuid: 570e88d397524dfeb10d6c46cc859404 + name: 'Transactions: Blocked, rate' + type: DEPENDENT + key: 'aws.rds.blocked_transactions.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'The average number of transactions in the database that are blocked per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "BlockedTransactions")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: transactions + - tag: engine + value: aurora-mysql + - uuid: 3033650e795943bfab73e9d7347f3d24 + name: 'DDL: Latency' + type: DEPENDENT + key: 'aws.rds.ddl_latency[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The amount of latency for data definition language (DDL) requests - for example, create, alter, and drop requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DDLLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: requests + - tag: engine + value: aurora-mysql + - uuid: 1ee5fdb6ed004e708ebe5ec8b2d039ba + name: 'DDL: Throughput' + type: DEPENDENT + key: 'aws.rds.ddl_throughput.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'The average number of DDL requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DDLThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: requests + - tag: engine + value: aurora-mysql + - uuid: ab6a2d6f9c04497c86464f10aafa178c + name: 'Operations: Delete latency' + type: DEPENDENT + key: 'aws.rds.delete_latency[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The amount of latency for delete queries.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DeleteLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora-mysql + - uuid: 9a28a1a0e1194d4fb55a5c2e926a7142 + name: 'Operations: Delete throughput' + type: DEPENDENT + key: 'aws.rds.delete_throughput.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'The average number of delete queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DeleteThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora-mysql + - uuid: 0ff7f102065a450cb77030c5f2e9cc76 + name: 'DML: Latency' + type: DEPENDENT + key: 'aws.rds.dml_latency[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The amount of latency for inserts, updates, and deletes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DMLLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: requests + - tag: engine + value: aurora-mysql + - uuid: 97ce5f3d119c4381a99ead5effe6af44 + name: 'DML: Throughput' + type: DEPENDENT + key: 'aws.rds.dml_throughput.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: rate + description: 'The average number of inserts, updates, and deletes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DMLThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: requests + - tag: engine + value: aurora-mysql + - uuid: 182efdd016e9473eb4791e5343043b57 + name: 'Operations: Insert latency' + type: DEPENDENT + key: 'aws.rds.insert_latency[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The amount of latency for insert queries, in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "InsertLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora-mysql + - uuid: db20ce55abbf4f248b8ac40a6f5576ec + name: 'Operations: Insert throughput' + type: DEPENDENT + key: 'aws.rds.insert_throughput.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'The average number of insert queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "InsertThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora-mysql + - uuid: c68d9d4496a84bf883330b1a82b62171 + name: 'Login failures, rate' + type: DEPENDENT + key: 'aws.rds.login_failures.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The average number of failed login attempts per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "LoginFailures")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: application + - tag: engine + value: aurora-mysql + - uuid: c932d4f773c04499b045ddb4b767decb + name: 'Binary log files, number' + type: DEPENDENT + key: 'aws.rds.num_binary_log_files[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The number of binlog files generated.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "NumBinaryLogFiles")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: replication + - tag: engine + value: aurora + - tag: engine + value: mysql + - uuid: c7a191af58644441bfe9aa8579dd9190 + name: 'Queries, rate' + type: DEPENDENT + key: 'aws.rds.queries.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The average number of queries executed per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "Queries")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: queries + - tag: engine + value: aurora-mysql + - uuid: 886f68d6a1eb4953aef3fc4cf1296c62 + name: 'Resultset cache hit ratio' + type: DEPENDENT + key: 'aws.rds.result_set_cache_hit_ratio[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of requests that are served by the Resultset cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ResultSetCacheHitRatio")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: cache + - tag: engine + value: aurora-mysql + - uuid: 3b66ac67006b4229b1d523dfe19fcb1f + name: 'Binary log files, size' + type: DEPENDENT + key: 'aws.rds.sum_binary_log_files[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The total size of the binlog files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SumBinaryLogSize")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: replication + - tag: engine + value: aurora + - tag: engine + value: mysql + - uuid: 44dcd553afe641d1b147426e614a7b41 + name: 'Operations: Update latency' + type: DEPENDENT + key: 'aws.rds.update_latency[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The amount of latency for update queries.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "UpdateLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora + - tag: engine + value: mysql + - uuid: 3a3548d63e1a4aab8853e13645f5898f + name: 'Operations: Update throughput' + type: DEPENDENT + key: 'aws.rds.update_throughput.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'The average number of update queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "UpdateThroughput")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.rds.get_metrics + tags: + - tag: component + value: operations + - tag: engine + value: aurora + - tag: engine + value: mysql + graph_prototypes: + - uuid: 981fd77559f247908b58ffcf883ade78 + name: 'AWS RDS: [{#SINGLETON}]DML/DDL Latency' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.ddl_latency[{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.dml_latency[{#SINGLETON}]' + - uuid: 7277bbc0b7c0427697348c8a182b954f + name: 'AWS RDS: [{#SINGLETON}]DML/DDL Throughput' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.ddl_throughput.rate[{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.dml_throughput.rate[{#SINGLETON}]' + - uuid: 13a9823d2a2444b7867859aacca47022 + name: 'AWS RDS: [{#SINGLETON}]Operations Latency (insert/delete/update)' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.insert_latency[{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.delete_latency[{#SINGLETON}]' + - sortorder: '2' + color: 00611C + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.update_latency[{#SINGLETON}]' + - uuid: 72117fc5b5434711ab15f07f117b22bd + name: 'AWS RDS: [{#SINGLETON}]Operations Throughput(insert/delete/update)' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.insert_throughput.rate[{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.delete_throughput.rate[{#SINGLETON}]' + - sortorder: '2' + color: 00611C + item: + host: 'AWS RDS instance by HTTP' + key: 'aws.rds.update_throughput.rate[{#SINGLETON}]' + master_item: + key: aws.rds.engine + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify((value === ''aurora-mysql'' || value === ''aurora'') ? [{ ''{#SINGLETON}'': '''' }] : []);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: cloud + - tag: target + value: aws + - tag: target + value: rds + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.EBS.BYTE.CREDIT.BALANCE.MIN.WARN}' + value: '20' + description: 'Minimum percentage of Byte credits remaining for trigger expression.' + - macro: '{$AWS.EBS.IO.CREDIT.BALANCE.MIN.WARN}' + value: '20' + description: 'Minimum percentage of I/O credits remaining for trigger expression.' + - macro: '{$AWS.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$AWS.RDS.BURST.CREDIT.BALANCE.MIN.WARN}' + value: '20' + description: 'Minimum percentage of Byte credits remaining for trigger expression.' + - macro: '{$AWS.RDS.CPU.CREDIT.BALANCE.MIN.WARN}' + value: '50' + description: 'Minimum number of free earned CPU credits for trigger expression.' + - macro: '{$AWS.RDS.CPU.UTIL.WARN.MAX}' + value: '85' + description: 'The warning threshold of the CPU utilization expressed in %.' + - macro: '{$AWS.RDS.INSTANCE.ID}' + description: 'RDS DB Instance identifier.' + - macro: '{$AWS.RDS.LLD.FILTER.ALARM_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by name.' + - macro: '{$AWS.RDS.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by name.' + - macro: '{$AWS.RDS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by namespace.' + - macro: '{$AWS.RDS.LLD.FILTER.ALARM_SERVICE_NAMESPACE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by namespace.' + - macro: '{$AWS.RDS.LLD.FILTER.EVENT_CATEGORY.MATCHES}' + value: '.*' + description: 'Filter of discoverable events by category.' + - macro: '{$AWS.RDS.LLD.FILTER.EVENT_CATEGORY.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered events by category.' + - macro: '{$AWS.RDS.LLD.FILTER.EVENT_SOURCE_TYPE.MATCHES}' + value: '.*' + description: 'Filter of discoverable events by source type.' + - macro: '{$AWS.RDS.LLD.FILTER.EVENT_SOURCE_TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered events by source type.' + - macro: '{$AWS.REGION}' + value: us-west-1 + description: 'Amazon RDS Region code.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + type: SECRET_TEXT + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS RDS instance", e.g. {$HTTP.TLS.VERIFY:"AWS RDS instance"}.' + valuemaps: + - uuid: 4ff4cda021a4464ebbebb42b7ee02673 + name: 'Alarm state' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: 'Insufficient data' + - value: '2' + newvalue: Alarm + - value: '255' + newvalue: Unknown + - uuid: 69bbb2cfded14be6ac596408bdd4de37 + name: 'Read replica state' + mappings: + - value: '0' + newvalue: Error + - value: '1' + newvalue: Normal + graphs: + - uuid: f2178fe21bc4454a9d3eee3b17ef11bc + name: 'AWS RDS: Disk read/write IOPS' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.read_iops.rate + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.write_iops.rate + - uuid: e0fbc3a0256c41cf99acb307921f448f + name: 'AWS RDS: Disk read/write latency' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.read_latency + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.write_latency + - uuid: a479a587e0c5484293e939ff56060270 + name: 'AWS RDS: Disk read/write throughput' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.read_throughput.rate + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.write_throughput.rate + - uuid: 4f76da00f7ea417d9156a8ab21b2d61f + name: 'AWS RDS: Local storage read/write IOPS' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.write_iops_local_storage.rate + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.read_iops_local_storage.rate + - uuid: a38ee12797874a57bd30307d1ba7b589 + name: 'AWS RDS: Local storage read/write latency' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.read_latency_local_storage + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.write_latency_local_storage + - uuid: f2a25a07efea46d1836188bf9cdb12d2 + name: 'AWS RDS: Local storage read/write throughput' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.read_throughput_local_storage.rate + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.write_throughput_local_storage.rate + - uuid: 05c0cf7b37664e06a0fd74f62761fe5e + name: 'AWS RDS: Network traffic' + graph_items: + - color: 199C0D + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.network_receive_throughput.rate + - sortorder: '1' + color: F63100 + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.network_transmit_throughput.rate + - sortorder: '2' + color: 00611C + item: + host: 'AWS RDS instance by HTTP' + key: aws.rds.network_throughput.rate diff --git a/AWS_S3_bucket_by_HTTP.yaml b/AWS_S3_bucket_by_HTTP.yaml new file mode 100644 index 0000000..f69e4ff --- /dev/null +++ b/AWS_S3_bucket_by_HTTP.yaml @@ -0,0 +1,1982 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: a14ab6b4e80643fe8daa9d7288658f79 + template: 'AWS S3 bucket by HTTP' + name: 'AWS S3 bucket by HTTP' + description: | + The template gets AWS S3 bucket metrics and uses the script item to make HTTP requests to the CloudWatch API. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Cloud + items: + - uuid: 7ca108eafb0d4b65a304815ee637174e + name: 'Get alarms check' + type: DEPENDENT + key: aws.s3.alarms.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether the alarm data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.s3.get_alarms + tags: + - tag: component + value: status + triggers: + - uuid: a8f8a7518aad4e32b23a8611afc8f48c + expression: 'length(last(/AWS S3 bucket by HTTP/aws.s3.alarms.check))>0' + name: 'AWS S3: Failed to get alarms data' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch alarms for S3 bucket.' + tags: + - tag: scope + value: availability + - uuid: fceb9927715443059269fa4589f90f67 + name: 'Bucket Size' + type: DEPENDENT + key: aws.s3.bucket_size_bytes + delay: '0' + value_type: FLOAT + units: B + description: | + This is a daily metric for the bucket. + The amount of data in bytes stored in a bucket in the STANDARD storage class, INTELLIGENT_TIERING storage class, Standard-Infrequent Access (STANDARD_IA) storage class, OneZone-Infrequent Access (ONEZONE_IA), Reduced Redundancy Storage (RRS) class, S3 Glacier Instant Retrieval storage class, Deep Archive Storage (S3 Glacier Deep Archive) class, or S3 Glacier Flexible Retrieval (GLACIER) storage class. + This value is calculated by summing the size of all objects and metadata in the bucket (both current and noncurrent objects), including the size of all parts for all incomplete multipart uploads to the bucket. + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics[?(@.Label == "StandardStorage BucketSizeBytes")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.s3.get_metrics + tags: + - tag: component + value: storage + - uuid: 6da0ea7130e64a7fb8ae32ee02290cbf + name: 'Get alarms data' + type: SCRIPT + key: aws.s3.get_alarms + delay: 0s;m/1 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('alarms', 'GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['bucket_name', 'request_region'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (get, method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''); + if (get === 'alarms') { + host = service + '.' + region + '.amazonaws.com'; + } else { + host = AWS.params.bucket_name + '.' + service + '.' + region + '.amazonaws.com'; + } + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + token = AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken; + var canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n' + 'x-amz-security-token:' + token + '\n', + signed_headers = 'content-encoding;host;x-amz-date;x-amz-security-token'; + } + else { + var canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date'; + } + if (get === 'location') { + canonical_uri = '/' + AWS.params.bucket_name; + } else { + canonical_uri = '/'; + } + var canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + token); + } + + Zabbix.log(4, '[ AWS S3 ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS S3 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getBucketLocation: function () { + var payload = {}; + payload['location'] = ''; + + result = AWS.request('location', 'GET', AWS.params.request_region, 's3', AWS.prepareParams(payload)); + + if (typeof result !== 'object' + || result.hasOwnProperty('LocationConstraint') === false + ) { + throw 'Cannot get buckets region location data from AWS S3 API. Check debug log for more information.'; + } + + return result.LocationConstraint !== null ? result.LocationConstraint : 'us-east-1'; + }, + + getAlarms: function (region) { + var payload = { + 'Action': 'DescribeAlarms', + 'Version': '2010-08-01', + 'MaxRecords': 100 + }, + result = []; + + while (payload.NextToken !== '') { + var alarms = AWS.getField(AWS.request('alarms', 'GET', region, 'monitoring', AWS.prepareParams(payload)), 'DescribeAlarmsResponse.DescribeAlarmsResult'); + payload.NextToken = alarms.NextToken || ''; + alarms_list = AWS.getField(alarms, 'MetricAlarms'); + + if (!Array.isArray(alarms_list)) + alarms_list = [alarms_list]; + alarms_list.forEach(function (alarm) { + var dimensions = alarm.Dimensions; + + if (Array.isArray(alarm.Metrics)) { + alarm.Metrics.forEach(function (metric) { + if (typeof metric.MetricStat === 'object' && metric.MetricStat !== null + && typeof metric.MetricStat.Metric === 'object' && metric.MetricStat.Metric !== null + && Array.isArray(metric.MetricStat.Metric.Dimensions)) { + dimensions = dimensions.concat(metric.MetricStat.Metric.Dimensions); + } + }); + } + for (var i in dimensions) { + if (dimensions[i].Name === 'BucketName' && dimensions[i].Value === AWS.params.bucket_name) { + result.push(alarm); + break; + } + } + }); + } + + return result; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + var region = AWS.getBucketLocation(); + return JSON.stringify(AWS.getAlarms(region)); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS S3 ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get alarms data. + DescribeAlarms API method: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: bucket_name + value: '{$AWS.S3.BUCKET.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: request_region + value: '{$AWS.REQUEST.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS S3 bucket"}' + tags: + - tag: component + value: raw + - uuid: 598e9dc563334ad6b1d72245a6f8679f + name: 'Get metrics data' + type: SCRIPT + key: aws.s3.get_metrics + delay: 0s;h/8 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + request_period: 2 * 86400, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('credentials', 'GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['bucket_name', 'request_region'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + renderMetricQuery: function (period, bucket_name) { + var metrics_list = [ + 'BucketSizeBytes:Bytes:Average:StandardStorage', + 'NumberOfObjects:Count:Average:AllStorageTypes', + ]; + + var metric_payload = []; + metrics_list.forEach(function (metric, index) { + var parts = metric.split(':', 4); + metric_payload.push({ + 'Id': 'm' + index, + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'AWS/S3', + 'Dimensions': [ + { + 'Name': 'BucketName', + 'Value': bucket_name + }, + { + 'Name': 'StorageType', + 'Value': parts[3] + } + ] + }, + 'Period': period, + 'Stat': parts[2], + 'Unit': parts[1] + } + }); + }); + + return metric_payload; + + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (get, method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + else { + data = JSON.stringify(data) + } + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''); + + if (get === 'metrics' || get === 'credentials') { + host = service + '.' + region + '.amazonaws.com'; + } else { + host = AWS.params.bucket_name + '.' + service + '.' + region + '.amazonaws.com'; + } + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + token = AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken; + var canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n' + 'x-amz-security-token:' + token + '\n', + signed_headers = 'content-encoding;host;x-amz-date;x-amz-security-token'; + } + else { + var canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date'; + } + + var canonical_uri = '/'; + + switch (get) { + case 'location': + canonical_uri = '/' + AWS.params.bucket_name; + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data); + break; + case 'metrics': + canonical_request = method + '\n' + canonical_uri + '\n' + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data); + break; + case 'filter_id': + case 'credentials': + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data); + break; + default: + throw 'Error: Invalid option "get" for request function'; + } + + var credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options); + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + token); + } + + switch (get) { + case 'location': + case 'filter_id': + case 'credentials': + url = 'https://' + host + canonical_uri + '?' + params; + Zabbix.log(4, '[ AWS S3 ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS S3 ] Received response with status code ' + request.getStatus() + ': ' + response); + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + break; + + case 'metrics': + url = 'https://' + host + '/'; + Zabbix.log(4, '[ AWS S3 ] Sending request: ' + url); + request.addHeader('X-Amz-Target: GraniteServiceVersion20100801.GetMetricData'); + response = request.post(url, data); + Zabbix.log(4, '[ AWS S3 ] Received response with status code ' + request.getStatus() + ': ' + response); + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + break; + + default: + throw 'Error: Invalid option "get" for request function'; + } + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getBucketLocation: function (bucket_name) { + var payload = {}; + payload['location'] = ''; + + result = AWS.request('location', 'GET', AWS.params.request_region, 's3', AWS.prepareParams(payload), '', bucket_name); + + if (typeof result !== 'object' + || result.hasOwnProperty('LocationConstraint') === false + ) { + throw 'Cannot get buckets region location data from AWS S3 API. Check debug log for more information.'; + } + + return result.LocationConstraint !== null ? result.LocationConstraint : 'us-east-1'; + }, + + getBucketFilterId: function (region) { + var payload = {}; + payload['metrics'] = ''; + + data = AWS.getField(AWS.request('filter_id', 'GET', region, 's3', AWS.prepareParams(payload), ''), 'ListMetricsConfigurationsResult'); + + if (typeof data === 'object' && data.hasOwnProperty('MetricsConfiguration') === true) { + if (!Array.isArray(data.MetricsConfiguration)) + data.MetricsConfiguration = [data.MetricsConfiguration] + data.MetricsConfiguration.forEach(function (item) { + item.region = region; + }); + } else { data.MetricsConfiguration = ['To view request metrics, create a filter'] } + return data.MetricsConfiguration; + + }, + + getMetricsData: function (region) { + var payload = {}, + end_time = Math.floor((new Date().getTime()) / 1000), + start_time = end_time - AWS.request_period; + payload['StartTime'] = start_time; + payload['EndTime'] = end_time; + payload['ScanBy'] = 'TimestampDescending'; + payload['MetricDataQueries'] = AWS.renderMetricQuery(43200, AWS.params.bucket_name); + + return AWS.getField(AWS.request('metrics', 'POST', region, 'monitoring', '', payload), 'MetricDataResults'); + } + + }; + + try { + AWS.setParams(JSON.parse(value)); + var region = AWS.getBucketLocation(AWS.params.bucket_name), + metrics = AWS.getMetricsData(region), + filter_id = AWS.getBucketFilterId(region); + return JSON.stringify({ metrics, filter_id }); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS S3 ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get bucket metrics. + Full metrics list related to S3: https://docs.aws.amazon.com/AmazonS3/latest/userguide/metrics-dimensions.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: bucket_name + value: '{$AWS.S3.BUCKET.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: request_region + value: '{$AWS.REQUEST.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS S3 bucket"}' + tags: + - tag: component + value: raw + - uuid: 0e22c196ae834d2899068f25316ffed2 + name: 'S3 metrics check' + type: DEPENDENT + key: aws.s3.metrics.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks whether S3 metric data was retrieved correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.s3.get_metrics + tags: + - tag: component + value: status + triggers: + - uuid: a8a0b4187f5f4e22b868dd038f53a2ba + expression: 'length(last(/AWS S3 bucket by HTTP/aws.s3.metrics.check))>0' + name: 'AWS S3: Failed to get metrics data' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get CloudWatch metrics for S3 bucket.' + tags: + - tag: scope + value: availability + - uuid: 75b467e2079c41c5b3e8f79df8c5a9ba + name: 'Number of objects' + type: DEPENDENT + key: aws.s3.number_of_objects + delay: '0' + value_type: FLOAT + description: | + This is a daily metric for the bucket. + The total number of objects stored in a bucket for all storage classes. + This value is calculated by counting all objects in the bucket (both current and noncurrent objects) and the total number of parts for all incomplete multipart uploads to the bucket. + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.[?(@.Label == "AllStorageTypes NumberOfObjects")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: aws.s3.get_metrics + tags: + - tag: component + value: storage + discovery_rules: + - uuid: 26c424a60a7a4975996ccc44601c4ee3 + name: 'Bucket Alarms discovery' + type: DEPENDENT + key: aws.s3.alarms.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALARM_NAME}' + value: '{$AWS.S3.LLD.FILTER.ALARM_NAME.MATCHES}' + formulaid: A + - macro: '{#ALARM_NAME}' + value: '{$AWS.S3.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of bucket alarms.' + item_prototypes: + - uuid: b38bd6e4566445acb52e8ecce4014f0f + name: '[{#ALARM_NAME}]: State' + type: DEPENDENT + key: 'aws.s3.alarm.state["{#ALARM_NAME}"]' + delay: '0' + description: | + The state value for the alarm. Possible values: 0 (OK), 1 (INSUFFICIENT_DATA), 2 (ALARM). + Alarm description: + {#ALARM_DESCRIPTION} + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.AlarmName == "{#ALARM_NAME}")].StateValue.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: JAVASCRIPT + parameters: + - | + var state = ['OK', 'INSUFFICIENT_DATA', 'ALARM']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + master_item: + key: aws.s3.get_alarms + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: 7f0ba96047784510b734c0064d434edc + expression: 'last(/AWS S3 bucket by HTTP/aws.s3.alarm.state["{#ALARM_NAME}"])=1' + name: 'AWS S3: [{#ALARM_NAME}] has ''Insufficient data'' state' + priority: INFO + description: 'Either the alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.' + tags: + - tag: scope + value: notice + - uuid: 7e536a43faf742058d303ffe21cd9a8c + name: '[{#ALARM_NAME}]: State reason' + type: DEPENDENT + key: 'aws.s3.alarm.state_reason["{#ALARM_NAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: | + An explanation for the alarm state, in text format. + Alarm description: + {#ALARM_DESCRIPTION} + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.AlarmName == "{#ALARM_NAME}")].StateReason.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: aws.s3.get_alarms + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: c1b94199b7ac4cc9889ff0e724f7057d + expression: 'last(/AWS S3 bucket by HTTP/aws.s3.alarm.state["{#ALARM_NAME}"])=2 and length(last(/AWS S3 bucket by HTTP/aws.s3.alarm.state_reason["{#ALARM_NAME}"]))>0' + name: 'AWS S3: [{#ALARM_NAME}] has ''Alarm'' state' + priority: AVERAGE + description: | + Alarm "{#ALARM_NAME}" has 'Alarm' state. + Reason: {ITEM.LASTVALUE2} + tags: + - tag: scope + value: availability + master_item: + key: aws.s3.get_alarms + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var alarms = JSON.parse(value); + + alarms.forEach(function(alarm) { + + result.push({ + '{#ALARM_DESCRIPTION}': alarm.AlarmDescription !== null ? alarm.AlarmDescription : 'None' , + '{#ALARM_NAME}': alarm.AlarmName, + '{#ALARM_PERIOD}': alarm.Period, + '{#METRIC_NAME}': alarm.MetricName + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 9ff609d143ae4552b395668718c43191 + name: 'Request Metrics discovery' + type: DEPENDENT + key: aws.s3.configuration.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AWS.S3.FILTER.ID.NAME}' + value: '{$AWS.S3.LLD.FILTER.ID.NAME.MATCHES}' + formulaid: A + - macro: '{#AWS.S3.FILTER.ID.NAME}' + value: '{$AWS.S3.LLD.FILTER.ID.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of request metrics.' + item_prototypes: + - uuid: 7c746594159f4f1c94e8790ed1bdf2af + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Errors, 4xx' + type: DEPENDENT + key: 'aws.s3.4xx_errors["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: | + The number of HTTP 4xx client error status code requests made to an Amazon S3 bucket with a value of either 0 or 1. + The average statistic shows the error rate, and the sum statistic shows the count of that type of error, during each period. + Statistic: Average (reports per request). + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "4xxErrors")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: errors + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 806de74ed57b4797b294ebe8fa509429 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Errors, 5xx' + type: DEPENDENT + key: 'aws.s3.5xx_errors["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: | + The number of HTTP 5xx server error status code requests made to an Amazon S3 bucket with a value of either 0 or 1. + The average statistic shows the error rate, and the sum statistic shows the count of that type of error, during each period. + Statistic: Average (reports per request). + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "5xxErrors")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: errors + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 7530d7ebe61942f4abc29a8ccb3b5516 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: All' + type: DEPENDENT + key: 'aws.s3.all_requests["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: | + The total number of HTTP requests made to an Amazon S3 bucket, regardless of type. + If you're using a metrics configuration with a filter, then this metric only returns the HTTP requests that meet the filter's requirements. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "AllRequests")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - uuid: 8758c16faef9477d8e3ff41426c2761b + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Bytes downloaded' + type: DEPENDENT + key: 'aws.s3.bytes_downloaded["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + The number of bytes downloaded for requests made to an Amazon S3 bucket, where the response includes a body. + Statistic: Average (bytes per request). + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "BytesDownloaded")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 3f5141a7448b43d288a37dfe41a52288 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Replication: Bytes pending' + type: DEPENDENT + key: 'aws.s3.bytes_pending_replication["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'The total number of bytes of objects pending replication for a given replication rule.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "BytesPendingReplication")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: replication + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 99eefab6b9be405ead0e6ea57394a7e3 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Bytes uploaded' + type: DEPENDENT + key: 'aws.s3.bytes_uploaded["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + The number of bytes uploaded that contain a request body, made to an Amazon S3 bucket. + Statistic: Average (bytes per request). + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "BytesUploaded")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: d9deb58254be4add996d3dec97344132 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Delete' + type: DEPENDENT + key: 'aws.s3.delete_requests["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: | + The number of HTTP DELETE requests made for objects in an Amazon S3 bucket. + This also includes Delete Multiple Objects requests. This metric shows the number of requests, not the number of objects deleted. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "DeleteRequests")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: d8c8e91f383747e5b6e73f922f5b3278 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: First byte latency, avg' + type: DEPENDENT + key: 'aws.s3.first_byte_latency.avg["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + units: ms + description: | + The per-request time from the complete request being received by an Amazon S3 bucket to when the response starts to be returned. + Statistic: Average. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "FirstByteLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: latency + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 55cb2316171e43a0aa94e0d203832577 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: First byte latency, p90' + type: DEPENDENT + key: 'aws.s3.first_byte_latency.p90["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + units: ms + description: | + The per-request time from the complete request being received by an Amazon S3 bucket to when the response starts to be returned. + Statistic: 90th percentile. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "FirstByteLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: latency + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: eabbd51547cb4a0484182d42601728c3 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Get request metrics' + type: SCRIPT + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '{$AWS.S3.UPDATE.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + isFloat: function (n) { + n = parseFloat(n); + return Number(n) === n && n % 1 !== 0; + }, + + checkNumber: function checkNumber(string) { + if (typeof string !== "string" || isNaN(string) || AWS.isFloat(string)) { + throw 'Incorrect "timespan" parameter given: ' + string + ' Must be an unsigned number'; + } + return string; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('POST', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['region', 'bucket_name', 'filter_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + + updateInterval = AWS.checkNumber('{$AWS.S3.UPDATE.INTERVAL}'); + + if (updateInterval > 86400 || updateInterval < 1) { + throw 'Incorrect "update interval" parameter given: ' + updateInterval + ' Must be between 1 and 86400 seconds.'; + } + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + renderMetricQuery: function (period, bucket_name, filter_id) { + var metrics_list = [ + 'AllRequests:Count:Sum', + 'GetRequests:Count:Sum', + 'PutRequests:Count:Sum', + 'DeleteRequests:Count:Sum', + 'HeadRequests:Count:Sum', + 'PostRequests:Count:Sum', + 'SelectRequests:Count:Sum', + 'SelectBytesScanned:Bytes:Average', + 'SelectBytesReturned:Bytes:Average', + 'ListRequests:Count:Sum', + 'BytesDownloaded:Bytes:Average', + 'BytesUploaded:Bytes:Average', + '4xxErrors:Count:Average', + '5xxErrors:Count:Average', + 'TotalRequestLatency:Milliseconds:p90', + 'FirstByteLatency:Milliseconds:p90', + 'ReplicationLatency:Seconds:Average', + 'BytesPendingReplication:Bytes:Average', + 'OperationsPendingReplication:Count:Average', + + ]; + + var metric_payload = []; + metrics_list.forEach(function (metric, index) { + var parts = metric.split(':', 3); + metric_payload.push({ + 'Id': 'm' + index, + 'MetricStat': { + 'Metric': { + 'MetricName': parts[0], + 'Namespace': 'AWS/S3', + 'Dimensions': [ + { + 'Name': 'BucketName', + 'Value': bucket_name + }, + { + 'Name': 'FilterId', + 'Value': filter_id + } + ] + }, + 'Period': period, + 'Stat': parts[2], + 'Unit': parts[1] + } + }); + }); + + return metric_payload; + + }, + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + else { + data = JSON.stringify(data) + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_uri = '/'; + + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + token = AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken; + var canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n' + 'x-amz-security-token:' + token + '\n', + signed_headers = 'content-encoding;host;x-amz-date;x-amz-security-token'; + } + else { + var canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date'; + } + + var canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('X-Amz-Target: GraniteServiceVersion20100801.GetMetricData') + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + token); + } + + Zabbix.log(4, '[ AWS S3 ] Sending request: ' + url); + response = request.post(url, data); + Zabbix.log(4, '[ AWS S3 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS CloudWatch API. Check debug log for more information.'; + } + } + + return response; + }, + + getMetricsData: function () { + var payload = {}, + end_time = Math.floor((new Date().getTime()) / 1000), + start_time = end_time - updateInterval; + + payload['StartTime'] = start_time; + payload['EndTime'] = end_time; + payload['ScanBy'] = 'TimestampDescending'; + payload['MetricDataQueries'] = AWS.renderMetricQuery(60, AWS.params.bucket_name, AWS.params.filter_id); + result = AWS.request('POST', AWS.params.region, 'monitoring', '', payload); + if (typeof result !== 'object' || typeof result.MetricDataResults !== 'object') { + throw 'Cannot get metrics data from AWS CloudWatch API. Check debug log for more information.'; + } + + return result.MetricDataResults; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS S3 ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: | + Get bucket request metrics filter: '{#AWS.S3.FILTER.ID.NAME}'. + Full metrics list related to S3: https://docs.aws.amazon.com/AmazonS3/latest/userguide/metrics-dimensions.html + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: bucket_name + value: '{$AWS.S3.BUCKET.NAME}' + - name: filter_id + value: '{#AWS.S3.FILTER.ID.NAME}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region + value: '{#AWS.S3.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS S3 bucket"}' + tags: + - tag: component + value: raw + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: f2cff8aa3c3c4a308296550561b02829 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Get' + type: DEPENDENT + key: 'aws.s3.get_requests["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: | + The number of HTTP GET requests made for objects in an Amazon S3 bucket. This doesn't include list operations. + Paginated list-oriented requests, like List Multipart Uploads, List Parts, Get Bucket Object versions, and others, are not included in this metric. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "GetRequests")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 0d9f59f099cb47c8991cc2e353154dc7 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Head' + type: DEPENDENT + key: 'aws.s3.head_requests["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of HTTP HEAD requests made to an Amazon S3 bucket.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "HeadRequests")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: f9b09dbbf0a44ea9b34a86853a6ebfd0 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: List' + type: DEPENDENT + key: 'aws.s3.list_requests["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of HTTP requests that list the contents of a bucket.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ListRequests")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: ad753554ca7e45629e7eb144a3595228 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Replication: Operations pending' + type: DEPENDENT + key: 'aws.s3.operations_pending_replication["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of operations pending replication for a given replication rule.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "OperationsPendingReplication")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: replication + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 9bb4416c7c454e5486a7ce4e4b4b90f0 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Post' + type: DEPENDENT + key: 'aws.s3.post_requests["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: | + The number of HTTP POST requests made to an Amazon S3 bucket. + Delete Multiple Objects and SELECT Object Content requests are not included in this metric. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "PostRequests")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 88a67025c835410eb54d74be96cf5b4c + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Put' + type: DEPENDENT + key: 'aws.s3.put_requests["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of HTTP PUT requests made for objects in an Amazon S3 bucket.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "PutRequests")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: ac0f6d6f6f2247379d99fa2f4f0ecc11 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Replication: Latency' + type: DEPENDENT + key: 'aws.s3.replication_latency["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'The maximum number of seconds by which the replication destination region is behind the source Region for a given replication rule.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "ReplicationLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: replication + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 23c13e717a2845399068e7c2e627df4f + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Select, bytes returned' + type: DEPENDENT + key: 'aws.s3.select_bytes_returned["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + The number of bytes of data returned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket. + Statistic: Average (bytes per request). + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SelectBytesReturned")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 042e84dc68c54390a3d0427b87d89e47 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Select, bytes scanned' + type: DEPENDENT + key: 'aws.s3.select_bytes_scanned["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + The number of bytes of data scanned with Amazon S3 SELECT Object Content requests in an Amazon S3 bucket. + Statistic: Average (bytes per request). + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SelectBytesScanned")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 616ec102597447cdbe2f21186937dcfe + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Requests: Select' + type: DEPENDENT + key: 'aws.s3.select_requests["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + description: 'The number of Amazon S3 SELECT Object Content requests made for objects in an Amazon S3 bucket.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "SelectRequests")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: effa8475024843249ad213d726323e72 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Total request latency, avg' + type: DEPENDENT + key: 'aws.s3.total_request_latency.avg["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + units: ms + description: | + The elapsed per-request time from the first byte received to the last byte sent to an Amazon S3 bucket. + This includes the time taken to receive the request body and send the response body, which is not included in FirstByteLatency. + Statistic: Average. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "TotalRequestLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: latency + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + - uuid: 886b748066834f01aa2f6f9327fceba0 + name: 'Filter [{#AWS.S3.FILTER.ID.NAME}]: Total request latency, p90' + type: DEPENDENT + key: 'aws.s3.total_request_latency.p90["{#AWS.S3.FILTER.ID.NAME}"]' + delay: '0' + value_type: FLOAT + units: ms + description: | + The elapsed per-request time from the first byte received to the last byte sent to an Amazon S3 bucket. + This includes the time taken to receive the request body and send the response body, which is not included in FirstByteLatency. + Statistic: 90th percentile. + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.Label == "TotalRequestLatency")].Values.first().first()' + error_handler: DISCARD_VALUE + master_item: + key: 'aws.s3.get_metrics["{#AWS.S3.FILTER.ID.NAME}"]' + tags: + - tag: component + value: latency + - tag: component + value: requests + - tag: filter-id + value: '{#AWS.S3.FILTER.ID.NAME}' + master_item: + key: aws.s3.get_metrics + lld_macro_paths: + - lld_macro: '{#AWS.S3.FILTER.ID.NAME}' + path: $.Id + - lld_macro: '{#AWS.S3.REGION}' + path: $.region + preprocessing: + - type: JSONPATH + parameters: + - $.filter_id + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: aws + - tag: target + value: s3 + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$AWS.REQUEST.REGION}' + value: us-east-1 + description: 'Region used in GET request `ListBuckets`.' + - macro: '{$AWS.S3.BUCKET.NAME}' + description: 'S3 bucket name.' + - macro: '{$AWS.S3.LLD.FILTER.ALARM_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable alarms by name.' + - macro: '{$AWS.S3.LLD.FILTER.ALARM_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered alarms by name.' + - macro: '{$AWS.S3.LLD.FILTER.ID.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable request metrics by filter ID name.' + - macro: '{$AWS.S3.LLD.FILTER.ID.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered request metrics by filter ID name.' + - macro: '{$AWS.S3.UPDATE.INTERVAL}' + value: '1800' + description: 'Interval in seconds for getting request metrics. Used in the metric configuration and in the JavaScript API query. Must be between 1 and 86400 seconds.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + type: SECRET_TEXT + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS S3 bucket", e.g. {$HTTP.TLS.VERIFY:"AWS S3 bucket"}.' + valuemaps: + - uuid: 5f232f40f02246ab843c9aacdcf8d5c5 + name: 'Alarm state' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: 'Insufficient data' + - value: '2' + newvalue: Alarm + - value: '255' + newvalue: Unknown diff --git a/AWS_by_HTTP.yaml b/AWS_by_HTTP.yaml new file mode 100644 index 0000000..7bcde1b --- /dev/null +++ b/AWS_by_HTTP.yaml @@ -0,0 +1,2962 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + - uuid: 748ad4d098d447d492bb935c907f652f + name: Databases + - uuid: 137f19e6e2dc4219b33553b812627bc2 + name: 'Virtual machines' + templates: + - uuid: c60e5929ab474f67bbe67dc6b04e709d + template: 'AWS by HTTP' + name: 'AWS by HTTP' + description: | + Get AWS EC2, RDS and S3 instances, AWS ECS clusters, AWS Elastic Load Balancing, Backup vaults. Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Cloud + discovery_rules: + - uuid: 8c687b699ea2421ea51534c9b80c7db7 + name: 'Backup vault discovery' + type: SCRIPT + key: aws.backup_vault.discovery + delay: 12h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['describe_region', 'region_match', 'region_not_match'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, canonical_uri, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS Backup vault ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS Backup vault ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS API. Check debug log for more information.'; + } + } + + return response; + }, + + listRegions: function () { + var payload = { + 'Action': 'DescribeRegions', + 'Version': '2016-11-15' + }; + + regions = AWS.getField(AWS.request('GET', '/', AWS.params.describe_region, 'ec2', AWS.prepareParams(payload)), 'DescribeRegionsResponse.regionInfo.item'); + + if (!Array.isArray(regions)) { + regions = [regions] + } + + return regions + }, + + listVaults: function () { + var lld_array = [], + regions = AWS.listRegions(), + payload = {}; + + regions.forEach(function (region) { + var region_name = AWS.getField(region, 'regionName'); + + if (region_name.match(AWS.params.region_match) === null || + region_name.match(AWS.params.region_not_match) !== null) { + return; + } + + while (payload.nextToken !== null) { + var result = AWS.request('GET', '/backup-vaults', region_name, 'backup', AWS.prepareParams(payload)); + payload.nextToken = result.NextToken; + + if (typeof result !== 'object' || typeof result.BackupVaultList !== 'object') { + throw 'Cannot get backup vault list from AWS API. Check debug log for more information.'; + } + + if (result.BackupVaultList === null) { + return []; + } + + result.BackupVaultList.forEach(function (vault) { + vault.region = region_name; + lld_array.push(vault); + }); + }; + + delete payload.nextToken; + }); + + return lld_array; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + return JSON.stringify(AWS.listVaults()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS Backup vault ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + filter: + evaltype: AND + conditions: + - macro: '{#AWS.BACKUP_VAULT.NAME}' + value: '{$AWS.BACKUP_VAULT.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#AWS.BACKUP_VAULT.NAME}' + value: '{$AWS.BACKUP_VAULT.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#AWS.BACKUP_VAULT.REGION}' + value: '{$AWS.BACKUP_VAULT.LLD.FILTER.REGION.MATCHES}' + formulaid: C + - macro: '{#AWS.BACKUP_VAULT.REGION}' + value: '{$AWS.BACKUP_VAULT.LLD.FILTER.REGION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Get backup vaults.' + host_prototypes: + - uuid: 44f23ddbb22646aea4db43a90646f695 + host: '{#AWS.BACKUP_VAULT.NAME}' + name: '{#AWS.BACKUP_VAULT.NAME}' + group_links: + - group: + name: Applications + templates: + - name: 'AWS Backup Vault by HTTP' + macros: + - macro: '{$AWS.BACKUP_VAULT.NAME}' + value: '{#AWS.BACKUP_VAULT.NAME}' + description: 'Backup vault name.' + - macro: '{$AWS.REGION}' + value: '{#AWS.BACKUP_VAULT.REGION}' + description: 'Backup vault region code.' + tags: + - tag: name + value: '{#AWS.BACKUP_VAULT.NAME}' + - tag: region + value: '{#AWS.BACKUP_VAULT.REGION}' + - tag: service + value: backup_vault + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: describe_region + value: '{$AWS.DESCRIBE.REGION}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region_match + value: '{$AWS.BACKUP_VAULT.LLD.FILTER.REGION.MATCHES}' + - name: region_not_match + value: '{$AWS.BACKUP_VAULT.LLD.FILTER.REGION.NOT_MATCHES}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS"}' + lld_macro_paths: + - lld_macro: '{#AWS.BACKUP_VAULT.NAME}' + path: $.BackupVaultName + - lld_macro: '{#AWS.BACKUP_VAULT.REGION}' + path: $.region + - uuid: c651911bad9244ad9c8d2dad5b0d70e4 + name: 'EC2 instances discovery' + type: SCRIPT + key: aws.ec2.discovery + delay: 12h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['describe_region', 'region_match', 'region_not_match'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS EC2 ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS EC2 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS API. Check debug log for more information.'; + } + } + + return response; + }, + + tagToNameInstances: function (instance) { + try { + var tags = AWS.getField(instance, 'tagSet.item'), + instanceName = AWS.getField(instance, 'instanceId'); + if (!Array.isArray(tags)) + tags = [tags] + tags.forEach( + function (tag) { + if (String(AWS.getField(tag, 'key')) === 'Name') { + instanceName = AWS.getField(tag, 'value'); + } + } + ); + return instanceName; + } + catch (error) { + return AWS.getField(instance, 'instanceId'); + } + }, + + listRegions: function () { + var payload = { + 'Action': 'DescribeRegions', + 'Version': '2016-11-15' + }; + + regions = AWS.getField(AWS.request('GET', AWS.params.describe_region, 'ec2', AWS.prepareParams(payload)), 'DescribeRegionsResponse.regionInfo.item'); + + if (!Array.isArray(regions)) + regions = [regions] + return regions + }, + + listInstances: function () { + var lld_array = [], + regions = AWS.listRegions(), + payload = { + 'Action': 'DescribeInstances', + 'Version': '2016-11-15' + }; + + regions.forEach(function (region) { + var region_name = AWS.getField(region, 'regionName'); + if (region_name.match(AWS.params.region_match) === null || + region_name.match(AWS.params.region_not_match) !== null) + return; + + result = AWS.request('GET', region_name, 'ec2', AWS.prepareParams(payload), ''); + + if (typeof result !== 'object' + || typeof result.DescribeInstancesResponse !== 'object' + || typeof result.DescribeInstancesResponse.reservationSet !== 'object') { + throw 'Cannot get EC2 instance list from AWS API. Check debug log for more information.'; + } + + if (result.DescribeInstancesResponse.reservationSet === null) + return []; + + if (typeof result.DescribeInstancesResponse.reservationSet.item !== 'object') + throw 'Cannot get EC2 instance list from AWS API. Check debug log for more information.'; + + var reservation = result.DescribeInstancesResponse.reservationSet.item + if (!Array.isArray(reservation)) + reservation = [reservation] + + reservation.forEach(function (res_item) { + var instances = AWS.getField(res_item, 'instancesSet.item') + if (!Array.isArray(instances)) + instances = [instances] + instances.forEach(function (instance) { + if (AWS.getField(instance, 'instanceState.name') === 'terminated') return; + lld_array.push( + { + instanceId: AWS.getField(instance, 'instanceId'), + instanceName: AWS.tagToNameInstances(instance), + instanceRegion: region_name + } + ) + }); + }); + }); + + return lld_array; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.listInstances()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS EC2 ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + filter: + evaltype: AND + conditions: + - macro: '{#AWS.EC2.INSTANCE.NAME}' + value: '{$AWS.EC2.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#AWS.EC2.INSTANCE.NAME}' + value: '{$AWS.EC2.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#AWS.EC2.INSTANCE.REGION}' + value: '{$AWS.EC2.LLD.FILTER.REGION.MATCHES}' + formulaid: C + - macro: '{#AWS.EC2.INSTANCE.REGION}' + value: '{$AWS.EC2.LLD.FILTER.REGION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Get EC2 instances.' + host_prototypes: + - uuid: c4c830c727294b07926c39b00cf19046 + host: '{#AWS.EC2.INSTANCE.ID}' + name: '{#AWS.EC2.INSTANCE.NAME}' + group_links: + - group: + name: 'Virtual machines' + templates: + - name: 'AWS EC2 by HTTP' + macros: + - macro: '{$AWS.EC2.INSTANCE.ID}' + value: '{#AWS.EC2.INSTANCE.ID}' + description: 'EC2 instance ID.' + - macro: '{$AWS.REGION}' + value: '{#AWS.EC2.INSTANCE.REGION}' + description: 'Amazon EC2 Region code.' + tags: + - tag: name + value: '{#AWS.EC2.INSTANCE.NAME}' + - tag: region + value: '{#AWS.EC2.INSTANCE.REGION}' + - tag: service + value: ec2 + custom_interfaces: 'YES' + interfaces: + - ip: '{#AWS.EC2.INSTANCE.ID}' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: describe_region + value: '{$AWS.DESCRIBE.REGION}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region_match + value: '{$AWS.EC2.LLD.FILTER.REGION.MATCHES}' + - name: region_not_match + value: '{$AWS.EC2.LLD.FILTER.REGION.NOT_MATCHES}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS"}' + lld_macro_paths: + - lld_macro: '{#AWS.EC2.INSTANCE.ID}' + path: $.instanceId + - lld_macro: '{#AWS.EC2.INSTANCE.NAME}' + path: $.instanceName + - lld_macro: '{#AWS.EC2.INSTANCE.REGION}' + path: $.instanceRegion + - uuid: 44b68894d68c45ec9a5ea787c975ae16 + name: 'ECS clusters discovery' + type: SCRIPT + key: aws.ecs.discovery + delay: 12h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['describe_region', 'region_match', 'region_not_match'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + + }, + + prepareParams: function (params) { + var result = []; + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/x-www-form-urlencoded'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ECS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ECS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS API. Check debug log for more information.'; + } + } + + return response; + + }, + + listRegions: function () { + var payload = { + 'Action': 'DescribeRegions', + 'Version': '2016-11-15' + }; + + regions = AWS.getField(AWS.request('GET', AWS.params.describe_region, 'ec2', AWS.prepareParams(payload)), 'DescribeRegionsResponse.regionInfo.item'); + + if (!Array.isArray(regions)) + regions = [regions] + + return regions + }, + + listClusters: function () { + var data = [], + regions = AWS.listRegions(), + result, + ECSClusters, + payload = { + 'Action': 'ListClusters', + 'Version': '2014-11-13' + }; + + regions.forEach(function (region) { + var region_name = AWS.getField(region, 'regionName'); + if (region_name.match(AWS.params.region_match) === null || + region_name.match(AWS.params.region_not_match) !== null) + return; + + result = AWS.request('GET', region_name, 'ecs', AWS.prepareParams(payload)); + ECSClusters = AWS.getField(result, 'ListClustersResponse.ListClustersResult.clusterArns') + for (k in ECSClusters) { + clusters = ECSClusters[k]; + json = {}; + input = clusters.split('/'); + for (var i = 1; i < input.length; i += 2) { + json[input[i]] = input[i + 1]; + } + data.push({ + 'clusters_name': input[1], + 'region': region_name + }); + } + }); + + return data; + }, + + decribeClusters: function (cluster_name, region_name) { + var payload = { + 'Action': 'DescribeClusters', + 'Version': '2014-11-13', + 'clusters.clusterName': cluster_name, + 'include.statistics': 'STATISTICS' + }; + result = AWS.request('GET', region_name, 'ecs', AWS.prepareParams(payload)); + + return result; + + } + + }; + + try { + AWS.setParams(JSON.parse(value)); + var clusters = AWS.listClusters(), + infrastructure = [], + metrics = ['runningEC2TasksCount', 'pendingEC2TasksCount', 'activeEC2ServiceCount', 'drainingEC2ServiceCount'], + ECSClusters = [], + DescribeClusters = []; + DescribeClusters = clusters.map(function (cluster) { + ECSClusters = AWS.getField(AWS.decribeClusters(cluster.clusters_name, cluster.region), 'DescribeClustersResponse.DescribeClustersResult.clusters') + for (k in ECSClusters) { + var ECS2 = 0; + statistic = AWS.getField(ECSClusters[k], 'statistics'); + statistic.forEach(function (id) { + for (i in metrics) { + if (AWS.getField(id, 'name') === metrics[i]) { + ECS2 += Number(AWS.getField(id, 'value')); + } + } + }) + infrastructure = (ECS2 > 0) ? 'use_ecs2' : 'serverless'; + + return { + 'clusterName': ECSClusters[k].clusterName, + 'status': ECSClusters[k].status, + 'infrastructure': infrastructure, + 'region': cluster.region + } + + } + }) + + return JSON.stringify(DescribeClusters); + + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ECS ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + filter: + evaltype: AND + conditions: + - macro: '{#AWS.ECS.CLUSTER.NAME}' + value: '{$AWS.ECS.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#AWS.ECS.CLUSTER.NAME}' + value: '{$AWS.ECS.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#AWS.ECS.CLUSTER.REGION}' + value: '{$AWS.ECS.LLD.FILTER.REGION.MATCHES}' + formulaid: C + - macro: '{#AWS.ECS.CLUSTER.REGION}' + value: '{$AWS.ECS.LLD.FILTER.REGION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#AWS.ECS.CLUSTER.STATUS}' + value: '{$AWS.ECS.LLD.FILTER.STATUS.MATCHES}' + formulaid: E + - macro: '{#AWS.ECS.CLUSTER.STATUS}' + value: '{$AWS.ECS.LLD.FILTER.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Get ECS clusters.' + host_prototypes: + - uuid: 71072e5a149e45b293946866f8220c07 + host: '{#AWS.ECS.CLUSTER.NAME}' + name: '{#AWS.ECS.CLUSTER.NAME}' + group_links: + - group: + name: Applications + macros: + - macro: '{$AWS.ECS.CLUSTER.NAME}' + value: '{#AWS.ECS.CLUSTER.NAME}' + description: 'ECS cluster name.' + - macro: '{$AWS.REGION}' + value: '{#AWS.ECS.CLUSTER.REGION}' + description: 'ECS cluster region.' + tags: + - tag: name + value: '{#AWS.ECS.CLUSTER.NAME}' + - tag: region + value: '{#AWS.ECS.CLUSTER.REGION}' + - tag: service + value: ecs + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: describe_region + value: '{$AWS.DESCRIBE.REGION}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region_match + value: '{$AWS.ECS.LLD.FILTER.REGION.MATCHES}' + - name: region_not_match + value: '{$AWS.ECS.LLD.FILTER.REGION.NOT_MATCHES}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS"}' + lld_macro_paths: + - lld_macro: '{#AWS.ECS.CLUSTER.INFRASTRUCTURE}' + path: $.infrastructure + - lld_macro: '{#AWS.ECS.CLUSTER.NAME}' + path: $.clusterName + - lld_macro: '{#AWS.ECS.CLUSTER.REGION}' + path: $.region + - lld_macro: '{#AWS.ECS.CLUSTER.STATUS}' + path: $.status + overrides: + - name: Serverless + step: '1' + filter: + conditions: + - macro: '{#AWS.ECS.CLUSTER.INFRASTRUCTURE}' + value: ^serverless$ + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'AWS ECS Serverless Cluster by HTTP' + - name: 'Use EC2 Infrastructure' + step: '2' + filter: + conditions: + - macro: '{#AWS.ECS.CLUSTER.INFRASTRUCTURE}' + value: ^use_ecs2$ + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'AWS ECS Cluster by HTTP' + - uuid: e7ac860c53bf403f9aee8cdd4b099c05 + name: 'ELB load balancers discovery' + type: SCRIPT + key: aws.elb.discovery + delay: 12h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['describe_region', 'region_match', 'region_not_match'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS ELB ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS ELB ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS API. Check debug log for more information.'; + } + } + + return response; + }, + + listRegions: function () { + var payload = { + 'Action': 'DescribeRegions', + 'Version': '2016-11-15' + }; + + regions = AWS.getField(AWS.request('GET', AWS.params.describe_region, 'ec2', AWS.prepareParams(payload)), 'DescribeRegionsResponse.regionInfo.item'); + + if (!Array.isArray(regions)) + regions = [regions] + return regions + }, + + listLoadBalancers: function () { + var lld_array = [], + regions = AWS.listRegions(), + payload = { + 'Action': 'DescribeLoadBalancers', + 'Version': '2015-12-01' + }; + + regions.forEach(function (region) { + var region_name = AWS.getField(region, 'regionName'); + if (region_name.match(AWS.params.region_match) === null || + region_name.match(AWS.params.region_not_match) !== null) + return; + elb = AWS.getField(AWS.request('GET', region_name, 'elasticloadbalancing', AWS.prepareParams(payload)), 'DescribeLoadBalancersResponse.DescribeLoadBalancersResult.LoadBalancers'); + if (!Array.isArray(elb)) + elb = [elb] + + elb.forEach(function (elb) { + lld_array.push( + { + name: AWS.getField(elb, 'LoadBalancerName'), + arn: AWS.getField(elb, 'LoadBalancerArn'), + type: AWS.getField(elb, 'Type'), + state: AWS.getField(elb, 'State.Code'), + dns_name: AWS.getField(elb, 'DNSName'), + region: region_name + } + ) + }); + }); + + return lld_array; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.listLoadBalancers()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS ELB ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + filter: + evaltype: AND + conditions: + - macro: '{#AWS.ELB.NAME}' + value: '{$AWS.ELB.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#AWS.ELB.NAME}' + value: '{$AWS.ELB.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#AWS.ELB.REGION}' + value: '{$AWS.ELB.LLD.FILTER.REGION.MATCHES}' + formulaid: C + - macro: '{#AWS.ELB.REGION}' + value: '{$AWS.ELB.LLD.FILTER.REGION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#AWS.ELB.STATE}' + value: '{$AWS.ELB.LLD.FILTER.STATE.MATCHES}' + formulaid: E + - macro: '{#AWS.ELB.STATE}' + value: '{$AWS.ELB.LLD.FILTER.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Get ELB load balancers.' + host_prototypes: + - uuid: 2c31bc79209e41978f76315406339769 + host: '{#AWS.ELB.NAME}' + name: '{#AWS.ELB.NAME}' + group_links: + - group: + name: Applications + macros: + - macro: '{$AWS.ELB.ARN}' + value: '{#AWS.ELB.ARN}' + description: 'The Amazon Resource Names (ARN) of the load balancers.' + - macro: '{$AWS.ELB.NAME}' + value: '{#AWS.ELB.NAME}' + description: 'ELB load balancer name.' + - macro: '{$AWS.REGION}' + value: '{#AWS.ELB.REGION}' + description: 'ELB load balancer region.' + tags: + - tag: dns-name + value: '{#AWS.ELB.DNS.NAME}' + - tag: name + value: '{#AWS.ELB.NAME}' + - tag: region + value: '{#AWS.ELB.REGION}' + - tag: service + value: elb + - tag: type + value: '{#AWS.ELB.TYPE}' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: describe_region + value: '{$AWS.DESCRIBE.REGION}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region_match + value: '{$AWS.ELB.LLD.FILTER.REGION.MATCHES}' + - name: region_not_match + value: '{$AWS.ELB.LLD.FILTER.REGION.NOT_MATCHES}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS"}' + lld_macro_paths: + - lld_macro: '{#AWS.ELB.ARN}' + path: $.arn + - lld_macro: '{#AWS.ELB.DNS.NAME}' + path: $.dns_name + - lld_macro: '{#AWS.ELB.NAME}' + path: $.name + - lld_macro: '{#AWS.ELB.REGION}' + path: $.region + - lld_macro: '{#AWS.ELB.STATE}' + path: $.state + - lld_macro: '{#AWS.ELB.TYPE}' + path: $.type + overrides: + - name: 'Application Load Balancers' + step: '1' + filter: + conditions: + - macro: '{#AWS.ELB.TYPE}' + value: ^application$ + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'AWS ELB Application Load Balancer by HTTP' + - name: 'Network Load Balancers' + step: '2' + filter: + conditions: + - macro: '{#AWS.ELB.TYPE}' + value: ^network$ + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'AWS ELB Network Load Balancer by HTTP' + - uuid: 691d96408dbc4c5c9235932cdbe70648 + name: 'Lambda discovery' + type: SCRIPT + key: aws.lambda.discovery + delay: 12h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload), '', ''), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['describe_region', 'region_match', 'region_not_match'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data, uri) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/' + uri, + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS Lambda ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS Lambda ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS API. Check debug log for more information.'; + } + } + + return response; + }, + + listRegions: function () { + var payload = { + 'Action': 'DescribeRegions', + 'Version': '2016-11-15' + }; + + regions = AWS.getField(AWS.request('GET', AWS.params.describe_region, 'ec2', AWS.prepareParams(payload), '', ''), 'DescribeRegionsResponse.regionInfo.item'); + + if (!Array.isArray(regions)) + regions = [regions] + + return regions + }, + + listFunctions: function () { + var lldArray = [], + regions = AWS.listRegions(); + payload = { + 'FunctionVersion': 'ALL', + 'MaxItems': '10000' + }; + + regions.forEach(function (region) { + var region_name = AWS.getField(region, 'regionName'); + if (region_name.match(AWS.params.region_match) === null || + region_name.match(AWS.params.region_not_match) !== null) + return; + lambdaFunction = AWS.getField(AWS.request('GET', region_name, 'lambda', AWS.prepareParams(payload), '', '2015-03-31/functions'), 'Functions'); + if (!Array.isArray(lambdaFunction)) + lambdaFunction = [lambdaFunction] + + lambdaFunction.forEach(function (lambdaFunction) { + lldArray.push( + { + name: AWS.getField(lambdaFunction, 'FunctionName'), + arn: AWS.getField(lambdaFunction, 'FunctionArn'), + runtime: AWS.getField(lambdaFunction, 'Runtime'), + version: AWS.getField(lambdaFunction, 'Version'), + region: region_name + } + ) + }); + }); + + return lldArray; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.listFunctions()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS Lambda ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + filter: + evaltype: AND + conditions: + - macro: '{#AWS.LAMBDA.NAME}' + value: '{$AWS.LAMBDA.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#AWS.LAMBDA.NAME}' + value: '{$AWS.LAMBDA.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#AWS.LAMBDA.REGION}' + value: '{$AWS.LAMBDA.LLD.FILTER.REGION.MATCHES}' + formulaid: C + - macro: '{#AWS.LAMBDA.REGION}' + value: '{$AWS.LAMBDA.LLD.FILTER.REGION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#AWS.LAMBDA.RUNTIME}' + value: '{$AWS.LAMBDA.LLD.FILTER.RUNTIME.MATCHES}' + formulaid: E + - macro: '{#AWS.LAMBDA.RUNTIME}' + value: '{$AWS.LAMBDA.LLD.FILTER.RUNTIME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Get Lambda functions.' + host_prototypes: + - uuid: 7b468bda682c402b96fd55210aa85155 + host: '{#AWS.LAMBDA.NAME}' + name: '{#AWS.LAMBDA.NAME}' + group_links: + - group: + name: Applications + templates: + - name: 'AWS Lambda by HTTP' + macros: + - macro: '{$AWS.LAMBDA.ARN}' + value: '{#AWS.LAMBDA.ARN}' + description: 'The Amazon Resource Names (ARN) of the Lambda function.' + - macro: '{$AWS.LAMBDA.NAME}' + value: '{#AWS.LAMBDA.NAME}' + description: 'Lambda function name.' + - macro: '{$AWS.REGION}' + value: '{#AWS.LAMBDA.REGION}' + description: 'Lambda function region.' + tags: + - tag: name + value: '{#AWS.LAMBDA.NAME}' + - tag: region + value: '{#AWS.LAMBDA.REGION}' + - tag: runtime + value: '{#AWS.LAMBDA.RUNTIME}' + - tag: service + value: lambda + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: describe_region + value: '{$AWS.DESCRIBE.REGION}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region_match + value: '{$AWS.LAMBDA.LLD.FILTER.REGION.MATCHES}' + - name: region_not_match + value: '{$AWS.LAMBDA.LLD.FILTER.REGION.NOT_MATCHES}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS"}' + lld_macro_paths: + - lld_macro: '{#AWS.LAMBDA.ARN}' + path: $.arn + - lld_macro: '{#AWS.LAMBDA.NAME}' + path: $.name + - lld_macro: '{#AWS.LAMBDA.REGION}' + path: $.region + - lld_macro: '{#AWS.LAMBDA.RUNTIME}' + path: $.runtime + - lld_macro: '{#AWS.LAMBDA.VERSION}' + path: $.version + - uuid: c1127e674b7548b2802cd8771f3a4768 + name: 'RDS instances discovery' + type: SCRIPT + key: aws.rds.discovery + delay: 12h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['describe_region', 'region_match', 'region_not_match'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com', + canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date', + canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + (AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken)); + } + + Zabbix.log(4, '[ AWS RDS ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS RDS ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS API. Check debug log for more information.'; + } + } + + return response; + }, + + listRegions: function () { + var payload = { + 'Action': 'DescribeRegions', + 'Version': '2016-11-15' + }; + + regions = AWS.getField(AWS.request('GET', AWS.params.describe_region, 'ec2', AWS.prepareParams(payload)), 'DescribeRegionsResponse.regionInfo.item'); + + if (!Array.isArray(regions)) + regions = [regions] + return regions + }, + + listInstances: function () { + var lld_array = [], + regions = AWS.listRegions(), + payload = { + 'Action': 'DescribeDBInstances', + 'Version': '2014-10-31' + }; + + regions.forEach(function (region) { + var region_name = AWS.getField(region, 'regionName'); + if (region_name.match(AWS.params.region_match) === null || + region_name.match(AWS.params.region_not_match) !== null) + return; + + result = AWS.request('GET', region_name, 'rds', AWS.prepareParams(payload)); + + databases = AWS.getField(result, 'DescribeDBInstancesResponse.DescribeDBInstancesResult.DBInstances') + if (!Array.isArray(databases)) + databases = [databases] + + databases.forEach(function (db) { + lld_array.push( + { + DBInstanceIdentifier: AWS.getField(db, 'DBInstanceIdentifier'), + instanceRegion: region_name + } + ) + }); + }); + + return lld_array; + } + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.listInstances()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS RDS ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + filter: + evaltype: AND + conditions: + - macro: '{#AWS.RDS.INSTANCE.ID}' + value: '{$AWS.RDS.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#AWS.RDS.INSTANCE.ID}' + value: '{$AWS.RDS.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#AWS.RDS.REGION}' + value: '{$AWS.RDS.LLD.FILTER.REGION.MATCHES}' + formulaid: C + - macro: '{#AWS.RDS.REGION}' + value: '{$AWS.RDS.LLD.FILTER.REGION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Get RDS instances.' + host_prototypes: + - uuid: 799663c52a644f78aa3b3c14d4cc7235 + host: '{#AWS.RDS.INSTANCE.ID}' + name: '{#AWS.RDS.INSTANCE.ID}' + group_links: + - group: + name: Databases + templates: + - name: 'AWS RDS instance by HTTP' + macros: + - macro: '{$AWS.RDS.INSTANCE.ID}' + value: '{#AWS.RDS.INSTANCE.ID}' + description: 'RDS instance ID.' + - macro: '{$AWS.REGION}' + value: '{#AWS.RDS.REGION}' + description: 'RDS instance region.' + tags: + - tag: name + value: '{#AWS.RDS.INSTANCE.ID}' + - tag: region + value: '{#AWS.RDS.REGION}' + - tag: service + value: rds + custom_interfaces: 'YES' + interfaces: + - ip: '{#AWS.RDS.INSTANCE.ID}' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: describe_region + value: '{$AWS.DESCRIBE.REGION}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: region_match + value: '{$AWS.RDS.LLD.FILTER.REGION.MATCHES}' + - name: region_not_match + value: '{$AWS.RDS.LLD.FILTER.REGION.NOT_MATCHES}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS"}' + lld_macro_paths: + - lld_macro: '{#AWS.RDS.INSTANCE.ID}' + path: $.DBInstanceIdentifier + - lld_macro: '{#AWS.RDS.REGION}' + path: $.instanceRegion + - uuid: ab6a97a108fb4dbc9fd1e07378721ffe + name: 'S3 buckets discovery' + type: SCRIPT + key: aws.s3.discovery + delay: 12h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AWS = { + params: {}, + metadata: 'http://169.254.169.254/latest/', + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getRoleBaseCredentials: function () { + AWS.params['auth_type'] = 'role_base'; + var request = new HttpRequest({SSLVerifyPeer: false, SSLVerifyHost: false}); + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('X-aws-ec2-metadata-token-ttl-seconds: 21600'); + var token = request.put(AWS.metadata + 'api/token'); + + if (request.getStatus() !== 200 || token === null || token === '') { + throw 'Error getting IMDSv2 session token.'; + } + request.addHeader('X-aws-ec2-metadata-token: ' + token); + var IamRoleName = request.get(AWS.metadata + 'meta-data/iam/security-credentials'); + + if (request.getStatus() !== 200 || IamRoleName === null || IamRoleName === '') { + throw 'Error getting security credentials from instance metadata. Role not found.'; + } + + credentials = request.get(AWS.metadata + 'meta-data/iam/security-credentials/' + encodeURI(IamRoleName)); + + if (request.getStatus() !== 200 || credentials === null || credentials === '') { + throw 'Error getting security credentials from instance metadata.'; + } + + try { + credentials = JSON.parse(credentials); + } + catch (error) { + throw 'Failed to parse response received from instance metadata. Check debug log for more information.'; + } + + ['AccessKeyId', 'SecretAccessKey', 'Token'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + }, + + setParams: function (params) { + AWS.tls = new CTlsConfig(params.tls_verify); + AWS.params['proxy'] = params.proxy; + switch (AWS.getField(params, 'auth_type')) { + case 'role_base': + AWS.getRoleBaseCredentials(); + break; + case 'assume_role': + if (typeof params.metadata_auth === 'undefined' || params.metadata_auth === '' || (params.metadata_auth !== 'true' && params.metadata_auth !== 'false')) { + throw 'Required param metadata_auth for assume_role is not set or has invalid value: "' + params.metadata_auth + '". Expected "true" or "false".'; + } + if (params.metadata_auth === 'true') { + AWS.getRoleBaseCredentials(); + AWS.params['SessionToken'] = AWS.params['Token']; + AWS.params['auth_type'] = 'assume_role_metadata'; + + ['sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + if (params.metadata_auth === 'false') { + AWS.params['auth_type'] = 'assume_role'; + + ['AccessKeyId', 'SecretAccessKey', 'sts_region', 'role_arn'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + + const role_arn_regex = /role\/(.+)$/; + const match = AWS.params.role_arn.match(role_arn_regex); + if (!match) { + throw 'Invalid role ARN format.'; + } + + const payload = { + 'Action': 'AssumeRole', + 'Version': '2011-06-15', + 'RoleArn': AWS.params.role_arn, + 'RoleSessionName': match[1] + 'Session', + }; + + credentials = AWS.getField(AWS.request('GET', AWS.params.sts_region, 'sts', AWS.prepareParams(payload)), 'AssumeRoleResponse.AssumeRoleResult.Credentials'); + + ['AccessKeyId', 'SecretAccessKey', 'SessionToken'].forEach(function (field) { + if (typeof credentials !== 'object' || typeof credentials[field] === 'undefined' || credentials[field] === '') { + throw 'Required credentials are not set: "' + field + '".'; + }; + AWS.params[field] = credentials[field]; + }); + break; + default: + AWS.params['auth_type'] = 'access_key'; + ['AccessKeyId', 'SecretAccessKey'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + } + ['request_region'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + AWS.params[field] = params[field]; + }); + }, + + sign: function (key, message) { + var hex = hmac('sha256', key, message); + + if ((hex.length % 2) === 1) { + throw 'Invalid length of a hex string!'; + } + + var result = new Int8Array(hex.length / 2); + for (var i = 0, b = 0; i < hex.length; i += 2, b++) { + result[b] = parseInt(hex.substring(i, i + 2), 16); + } + + return result; + }, + + prepareParams: function (params) { + var result = []; + + Object.keys(params).sort().forEach(function (key) { + if (typeof params[key] !== 'object') { + result.push(key + '=' + encodeURIComponent(params[key])); + } + else { + result.push(prepareObject(key, params[key])); + } + }); + + return result.join('&'); + }, + + request: function (method, region, service, params, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var amzdate = (new Date()).toISOString().replace(/\.\d+Z/, 'Z').replace(/[-:]/g, ''), + date = amzdate.replace(/T\d+Z/, ''), + canonical_uri = '/', + host = service + '.' + region + '.amazonaws.com'; + + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + token = AWS.params.auth_type === 'role_base' ? AWS.params.Token : AWS.params.SessionToken; + var canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n' + 'x-amz-security-token:' + token + '\n', + signed_headers = 'content-encoding;host;x-amz-date;x-amz-security-token'; + } + else { + var canonical_headers = 'content-encoding:amz-1.0\n' + 'host:' + host + '\n' + 'x-amz-date:' + amzdate + '\n', + signed_headers = 'content-encoding;host;x-amz-date'; + } + + var canonical_request = method + '\n' + canonical_uri + '\n' + params + '\n' + canonical_headers + '\n' + signed_headers + '\n' + sha256(data), + credential_scope = date + '/' + region + '/' + service + '/' + 'aws4_request', + request_string = 'AWS4-HMAC-SHA256' + '\n' + amzdate + '\n' + credential_scope + '\n' + sha256(canonical_request), + key = AWS.sign('AWS4' + AWS.params.SecretAccessKey, date), + key = AWS.sign(key, region), + key = AWS.sign(key, service), + key = AWS.sign(key, 'aws4_request'), + request = new HttpRequest(AWS.tls.options), + url = 'https://' + host + canonical_uri + '?' + params; + + if (typeof AWS.params.proxy !== 'undefined' && AWS.params.proxy !== '') { + request.setProxy(AWS.params.proxy); + } + request.addHeader('x-amz-date: ' + amzdate); + request.addHeader('x-amz-content-sha256:' + sha256(data)); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Content-Encoding: amz-1.0'); + request.addHeader('Authorization: ' + 'AWS4-HMAC-SHA256 Credential=' + AWS.params.AccessKeyId + '/' + credential_scope + ', ' + 'SignedHeaders=' + signed_headers + ', ' + 'Signature=' + hmac('sha256', key, request_string)); + if (AWS.params.auth_type === 'role_base' || AWS.params.auth_type === 'assume_role_metadata' || (AWS.params.auth_type === 'assume_role' & !params.includes('AssumeRole'))) { + request.addHeader('X-Amz-Security-Token: ' + token); + } + + Zabbix.log(4, '[ AWS S3 ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ AWS S3 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from AWS API. Check debug log for more information.'; + } + } + + return response; + }, + + listBuckets: function () { + var payload = { + 'Action': 'ListBuckets', + 'Version': '2006-03-01' + }; + + var result = AWS.getField(AWS.request('GET', AWS.params.request_region, 's3', AWS.prepareParams(payload)), 'ListAllMyBucketsResult.Buckets'); + + if (result === null) { + return []; + } + result = AWS.getField(result, 'Bucket'); + + return Array.isArray(result) ? result : [result]; + + } + + }; + + try { + AWS.setParams(JSON.parse(value)); + + return JSON.stringify(AWS.listBuckets()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AWS S3 ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + filter: + evaltype: AND + conditions: + - macro: '{#AWS.S3.NAME}' + value: '{$AWS.S3.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#AWS.S3.NAME}' + value: '{$AWS.S3.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Get S3 bucket instances.' + host_prototypes: + - uuid: e45bd9810ea14718b17b875aad3fc544 + host: '{#AWS.S3.NAME}' + name: '{#AWS.S3.NAME}' + group_links: + - group: + name: Applications + templates: + - name: 'AWS S3 bucket by HTTP' + macros: + - macro: '{$AWS.S3.BUCKET.NAME}' + value: '{#AWS.S3.NAME}' + description: 'S3 bucket name.' + - macro: '{$AWS.S3.FILTER.ID}' + value: '1' + description: 'S3 bucket requests filter identifier.' + tags: + - tag: name + value: '{#AWS.S3.NAME}' + - tag: service + value: s3 + custom_interfaces: 'YES' + interfaces: + - ip: '{#AWS.S3.NAME}' + timeout: '{$AWS.DATA.TIMEOUT}' + parameters: + - name: AccessKeyId + value: '{$AWS.ACCESS.KEY.ID}' + - name: auth_type + value: '{$AWS.AUTH_TYPE}' + - name: metadata_auth + value: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + - name: proxy + value: '{$AWS.PROXY}' + - name: request_region + value: '{$AWS.REQUEST.REGION}' + - name: role_arn + value: '{$AWS.ASSUME.ROLE.ARN}' + - name: SecretAccessKey + value: '{$AWS.SECRET.ACCESS.KEY}' + - name: sts_region + value: '{$AWS.STS.REGION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"AWS"}' + lld_macro_paths: + - lld_macro: '{#AWS.S3.NAME}' + path: $.Name + tags: + - tag: class + value: cloud + - tag: target + value: aws + macros: + - macro: '{$AWS.ACCESS.KEY.ID}' + description: 'Access key ID.' + - macro: '{$AWS.ASSUME.ROLE.ARN}' + description: 'ARN assume role; add when using the `assume_role` authorization method.' + - macro: '{$AWS.ASSUME.ROLE.AUTH.METADATA}' + value: 'false' + description: 'Add when using the `assume_role` through instance metadata or environment authorization method. Possible values: `false`, `true`.' + - macro: '{$AWS.AUTH_TYPE}' + value: access_key + description: 'Authorization method. Possible values: `access_key`, `assume_role`, `role_base`.' + - macro: '{$AWS.BACKUP_VAULT.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable backup vaults by name.' + - macro: '{$AWS.BACKUP_VAULT.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered backup vaults by name.' + - macro: '{$AWS.BACKUP_VAULT.LLD.FILTER.REGION.MATCHES}' + value: '.*' + description: 'Filter of discoverable backup vaults by region.' + - macro: '{$AWS.BACKUP_VAULT.LLD.FILTER.REGION.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered backup vaults by region.' + - macro: '{$AWS.DATA.TIMEOUT}' + value: 60s + description: 'A response timeout for an API.' + - macro: '{$AWS.DESCRIBE.REGION}' + value: us-east-1 + description: 'Region used in POST request `DescribeRegions`.' + - macro: '{$AWS.EC2.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable EC2 instances by namespace.' + - macro: '{$AWS.EC2.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered EC2 instances by namespace.' + - macro: '{$AWS.EC2.LLD.FILTER.REGION.MATCHES}' + value: '.*' + description: 'Filter of discoverable EC2 instances by region.' + - macro: '{$AWS.EC2.LLD.FILTER.REGION.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered EC2 instances by region.' + - macro: '{$AWS.ECS.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable ECS clusters by name.' + - macro: '{$AWS.ECS.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered ECS clusters by name.' + - macro: '{$AWS.ECS.LLD.FILTER.REGION.MATCHES}' + value: '.*' + description: 'Filter of discoverable ECS clusters by region.' + - macro: '{$AWS.ECS.LLD.FILTER.REGION.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered ECS clusters by region.' + - macro: '{$AWS.ECS.LLD.FILTER.STATUS.MATCHES}' + value: ACTIVE + description: 'Filter of discoverable ECS clusters by status.' + - macro: '{$AWS.ECS.LLD.FILTER.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered ECS clusters by status.' + - macro: '{$AWS.ELB.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable ELB load balancers by name.' + - macro: '{$AWS.ELB.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered ELB load balancers by name.' + - macro: '{$AWS.ELB.LLD.FILTER.REGION.MATCHES}' + value: '.*' + description: 'Filter of discoverable ELB load balancers by region.' + - macro: '{$AWS.ELB.LLD.FILTER.REGION.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered ELB load balancers by region.' + - macro: '{$AWS.ELB.LLD.FILTER.STATE.MATCHES}' + value: active + description: 'Filter of discoverable ELB load balancers by status.' + - macro: '{$AWS.ELB.LLD.FILTER.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered ELB load balancer by status.' + - macro: '{$AWS.LAMBDA.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable Lambda functions by name.' + - macro: '{$AWS.LAMBDA.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Lambda functions by name.' + - macro: '{$AWS.LAMBDA.LLD.FILTER.REGION.MATCHES}' + value: '.*' + description: 'Filter of discoverable Lambda functions by region.' + - macro: '{$AWS.LAMBDA.LLD.FILTER.REGION.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Lambda functions by region.' + - macro: '{$AWS.LAMBDA.LLD.FILTER.RUNTIME.MATCHES}' + value: '.*' + description: 'Filter of discoverable Lambda functions by Runtime.' + - macro: '{$AWS.LAMBDA.LLD.FILTER.RUNTIME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Lambda functions by Runtime.' + - macro: '{$AWS.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$AWS.RDS.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable RDS instances by namespace.' + - macro: '{$AWS.RDS.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered RDS instances by namespace.' + - macro: '{$AWS.RDS.LLD.FILTER.REGION.MATCHES}' + value: '.*' + description: 'Filter of discoverable RDS instances by region.' + - macro: '{$AWS.RDS.LLD.FILTER.REGION.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered RDS instances by region.' + - macro: '{$AWS.REQUEST.REGION}' + value: us-east-1 + description: 'Region used in GET request `ListBuckets`.' + - macro: '{$AWS.S3.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable S3 buckets by namespace.' + - macro: '{$AWS.S3.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered S3 buckets by namespace.' + - macro: '{$AWS.SECRET.ACCESS.KEY}' + type: SECRET_TEXT + description: 'Secret access key.' + - macro: '{$AWS.STS.REGION}' + value: us-east-1 + description: 'Region used in assume role request.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "AWS", e.g. {$HTTP.TLS.VERIFY:"AWS"}.' diff --git a/Acronis_Cyber_Protect_Cloud_MSP_by_HTTP.yaml b/Acronis_Cyber_Protect_Cloud_MSP_by_HTTP.yaml new file mode 100644 index 0000000..0540760 --- /dev/null +++ b/Acronis_Cyber_Protect_Cloud_MSP_by_HTTP.yaml @@ -0,0 +1,1663 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: bf3107deff3a4aabab1e1c0ee71a3281 + template: 'Acronis Cyber Protect Cloud MSP by HTTP' + name: 'Acronis Cyber Protect Cloud MSP by HTTP' + description: | + Discovers and monitors alerts, clients, devices using HTTP agent items. + + This template receives API token and datacenter URL from parent host, therefore no additional configuration is necessary. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: dba9a02767be47819f7012f316723fff + name: 'Get alerts' + type: HTTP_AGENT + key: acronis.cpc.alerts.get + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + description: 'Fetches all alerts.' + preprocessing: + - type: JSONPATH + parameters: + - $.items + timeout: 15s + url: '{$ACRONIS.CPC.DATACENTER.URL}{$ACRONIS.CPC.PATH.ALERTS}/alerts' + status_codes: '' + http_proxy: '{$ACRONIS.CPC.HTTP.PROXY}' + headers: + - name: Accept + value: application/json + - name: Authorization + value: 'Bearer {$ACRONIS.CPC.ACCESS_TOKEN}' + - name: X-Application-Secret + value: 5619386d-de56-49ec-8508-f5c399d3b9bd + tags: + - tag: component + value: raw + - uuid: 483f9e040091476ba3857ae2957d83bf + name: 'Alerts with "critical" severity' + type: DEPENDENT + key: acronis.cpc.alerts.severity.crit + delay: '0' + description: 'Gets count of alerts with "critical" severity.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[?(@.severity == ''critical'')].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: acronis.cpc.alerts.get + tags: + - tag: component + value: alert + - tag: component + value: application + - uuid: 4fcefc1b66fe4c56b68cf5712aa727e5 + name: 'Alerts with "error" severity' + type: DEPENDENT + key: acronis.cpc.alerts.severity.err + delay: '0' + description: 'Gets count of alerts with "error" severity.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[?(@.severity == ''error'')].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: acronis.cpc.alerts.get + tags: + - tag: component + value: alert + - tag: component + value: application + - uuid: 06003951452f4687bd0f1c0a395e7a77 + name: 'Alerts with "information" severity' + type: DEPENDENT + key: acronis.cpc.alerts.severity.info + delay: '0' + description: 'Gets count of alerts with "information" severity.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[?(@.severity == ''information'')].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: acronis.cpc.alerts.get + tags: + - tag: component + value: alert + - tag: component + value: application + - uuid: ca3a1c7649874dfdaf191c7063022498 + name: 'Alerts with "ok" severity' + type: DEPENDENT + key: acronis.cpc.alerts.severity.ok + delay: '0' + description: 'Gets count of alerts with "ok" severity.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[?(@.severity == ''ok'')].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: acronis.cpc.alerts.get + tags: + - tag: component + value: alert + - tag: component + value: application + - uuid: a4516d8961b3426f859511e1614c4403 + name: 'Alerts with "warning" severity' + type: DEPENDENT + key: acronis.cpc.alerts.severity.warn + delay: '0' + description: 'Gets count of alerts with "warning" severity.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[?(@.severity == ''warning'')].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: acronis.cpc.alerts.get + tags: + - tag: component + value: alert + - tag: component + value: application + - uuid: 77f25dbbd477458a88f1850701dccc69 + name: 'Get customers' + type: HTTP_AGENT + key: acronis.cpc.customers.get + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + description: 'Fetches all customers.' + preprocessing: + - type: JSONPATH + parameters: + - $.items + timeout: 15s + url: '{$ACRONIS.CPC.DATACENTER.URL}{$ACRONIS.CPC.PATH.ACCOUNT.MANAGEMENT}/tenants' + query_fields: + - name: subtree_root_id + value: '{$ACRONIS.CPC.MSP.TENANT.UUID}' + status_codes: '' + http_proxy: '{$ACRONIS.CPC.HTTP.PROXY}' + headers: + - name: Accept + value: application/json + - name: Authorization + value: 'Bearer {$ACRONIS.CPC.ACCESS_TOKEN}' + - name: X-Application-Secret + value: 5619386d-de56-49ec-8508-f5c399d3b9bd + tags: + - tag: component + value: raw + - uuid: 81b3d23d30964b88aeb3a0911ba0e487 + name: 'Get devices' + type: HTTP_AGENT + key: acronis.cpc.devices.get + history: '0' + value_type: TEXT + trends: '0' + description: 'Fetches all devices.' + preprocessing: + - type: JSONPATH + parameters: + - $.items + timeout: 15s + url: '{$ACRONIS.CPC.DATACENTER.URL}{$ACRONIS.CPC.PATH.RESOURCE.MANAGEMENT}/resources' + query_fields: + - name: type + value: '{$ACRONIS.CPC.DEVICE.RESOURCE.TYPE}' + status_codes: '' + http_proxy: '{$ACRONIS.CPC.HTTP.PROXY}' + headers: + - name: Accept + value: application/json + - name: Authorization + value: 'Bearer {$ACRONIS.CPC.ACCESS_TOKEN}' + - name: X-Application-Secret + value: 5619386d-de56-49ec-8508-f5c399d3b9bd + tags: + - tag: component + value: raw + - uuid: 3697d34ebbb74b90aa7318321ecc27e5 + name: 'Register integration' + type: SCRIPT + key: acronis.cpc.register.integration + delay: 24h + history: '0' + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + + const request_path = '/api/integration_management/v2/status'; + const app_id = '5619386d-de56-49ec-8508-f5c399d3b9bd'; + + function checkParams(params) { + ['api_url', 'api_token', 'tenant_uuid'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + return params; + } + + function getHttpData(url, register, params, api_token, tenant_uuid) { + const request = new HttpRequest(tls.options); + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + api_token); + request.addHeader('X-Application-Secret: ' + app_id); + + if (params['http_proxy']) { + request.setProxy(params['http_proxy']); + Zabbix.log(4, '[ ACRONIS CYBER PROTECT CLOUD API ] Using http proxy: ' + params['http_proxy']); + } + + if (!register) { + const response = request.get(url + '?tenantID=' + encodeURIComponent(tenant_uuid)); + Zabbix.log(4, '[ ACRONIS CYBER PROTECT CLOUD API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + + return response; + + } else { + + const request_body = { + "application_id": app_id, + "module": { + "name": "Zabbix integration with Acronis Cyber Protect Cloud", + "version": "1.0.0" + }, + "vendor_system": { + "name": "Product integrated with Acronis", + "version": "23.07" + }, + "events": [ + { + "category": "activation", + "action": "activated integration", + "activation_event": true + } + ] + }; + + const response = request.post(url + '?tenantID=' + encodeURIComponent(tenant_uuid), JSON.stringify(request_body)); + Zabbix.log(4, '[ ACRONIS CYBER PROTECT CLOUD API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 204) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + + return 1; + } + } + + function parseGetStatusData(http_response) { + const data = JSON.parse(http_response); + if (data['items']) { + data['items'].forEach(function (app) { + if (app['application_id'] && app['application_id'] === app_id) { + return app['active']; + } + }); + return false; + } else { + throw 'Unexpected data structure in HTTP response.'; + } + } + + const params = checkParams(JSON.parse(value)), + tls = new CTlsConfig(params.tls_verify), + url = tls.checkURL(params.api_url), + api_token = params.api_token, + tenant_uuid = params.tenant_uuid; + + const current_activation_status = parseGetStatusData(getHttpData(url + request_path, false, params, api_token, tenant_uuid)); + + if (!current_activation_status) { + return getHttpData(url + request_path, true, params, api_token, tenant_uuid); + } else { + return 0; + } + description: 'Registers integration on Acronis services.' + timeout: 30s + parameters: + - name: api_token + value: '{$ACRONIS.CPC.ACCESS_TOKEN}' + - name: api_url + value: '{$ACRONIS.CPC.DATACENTER.URL}' + - name: tenant_uuid + value: '{$ACRONIS.CPC.MSP.TENANT.UUID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Acronis Cyber Protect Cloud MSP"}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: ee0d74749b93459ca40e477b31b3aa21 + name: 'Acronis CPC: Alerts discovery' + type: DEPENDENT + key: acronis.cpc.alerts.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CATEGORY}' + value: '{$ACRONIS.CPC.ALERT.DISCOVERY.CATEGORY.MATCHES}' + formulaid: A + - macro: '{#CATEGORY}' + value: '{$ACRONIS.CPC.ALERT.DISCOVERY.CATEGORY.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#RESOURCE_NAME}' + value: '{$ACRONIS.CPC.ALERT.DISCOVERY.RESOURCE.MATCHES}' + formulaid: C + - macro: '{#RESOURCE_NAME}' + value: '{$ACRONIS.CPC.ALERT.DISCOVERY.RESOURCE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#SEVERITY}' + value: '{$ACRONIS.CPC.ALERT.DISCOVERY.SEVERITY.MATCHES}' + formulaid: E + - macro: '{#SEVERITY}' + value: '{$ACRONIS.CPC.ALERT.DISCOVERY.SEVERITY.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + lifetime: '0' + description: 'Discovers alerts.' + item_prototypes: + - uuid: b298e768dc0447b4b5c29c99a5852453 + name: 'Alert [{#TYPE}]:[{#ALERT_ID}]: Alert severity' + type: DEPENDENT + key: 'acronis.cpc.alert.severity[{#ALERT_ID}]' + delay: '0' + description: 'Severity for the alert.' + valuemap: + name: 'Alert severity' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#ALERT_ID}")].severity.first()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not find alert severity' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'ok', + 'warning', + 'error', + 'critical', + 'information' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: acronis.cpc.alerts.get + tags: + - tag: category + value: '{#CATEGORY}' + - tag: component + value: alert + - tag: component + value: application + - tag: resource + value: '{#RESOURCE_NAME}' + - tag: severity + value: '{#SEVERITY}' + trigger_prototypes: + - uuid: f72a128c289540869ceeb4eb8a32519b + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.alert.severity[{#ALERT_ID}])=3' + name: 'Acronis: Alert [{#TYPE}]:[{#ALERT_ID}]: Alert has "critical" severity' + event_name: 'Acronis: Alert [{#ALERT_ID}]: "critical" severity' + opdata: 'Alert type: {#TYPE}, Current status: {ITEM.LASTVALUE}' + priority: HIGH + description: 'Alert has "critical" severity.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 360fcc25d3fe442194ddea76db8157be + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.alert.severity[{#ALERT_ID}])=2' + name: 'Acronis: Alert [{#TYPE}]:[{#ALERT_ID}]: Alert has "error" severity' + event_name: 'Acronis: Alert [{#ALERT_ID}]: "error" severity' + opdata: 'Alert type: {#TYPE}, Current status: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'Alert has "error" severity.' + manual_close: 'YES' + dependencies: + - name: 'Acronis: Alert [{#TYPE}]:[{#ALERT_ID}]: Alert has "critical" severity' + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.alert.severity[{#ALERT_ID}])=3' + tags: + - tag: scope + value: notice + - uuid: 687b26d91e6e448d911663f190328fb4 + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.alert.severity[{#ALERT_ID}])=1' + name: 'Acronis: Alert [{#TYPE}]:[{#ALERT_ID}]: Alert has "warning" severity' + event_name: 'Acronis: Alert [{#ALERT_ID}]: "warning" severity' + opdata: 'Alert type: {#TYPE}, Current status: {ITEM.LASTVALUE}' + priority: WARNING + description: 'Alert has "warning" severity.' + manual_close: 'YES' + dependencies: + - name: 'Acronis: Alert [{#TYPE}]:[{#ALERT_ID}]: Alert has "error" severity' + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.alert.severity[{#ALERT_ID}])=2' + tags: + - tag: scope + value: notice + master_item: + key: acronis.cpc.alerts.get + lld_macro_paths: + - lld_macro: '{#ALERT_ID}' + path: $.id + - lld_macro: '{#CATEGORY}' + path: $.category + - lld_macro: '{#RESOURCE_NAME}' + path: $.details.resourceName + - lld_macro: '{#SEVERITY}' + path: $.severity + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4211387734c642f88e236bd588940cc1 + name: 'Acronis CPC: Customer discovery' + type: DEPENDENT + key: acronis.cpc.customer.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#KIND}' + value: '{$ACRONIS.CPC.CUSTOMER.DISCOVERY.KIND.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$ACRONIS.CPC.CUSTOMER.DISCOVERY.NAME.MATCHES}' + formulaid: B + - macro: '{#NAME}' + value: '{$ACRONIS.CPC.CUSTOMER.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Discovers customers.' + item_prototypes: + - uuid: d61dc067880a4317886acd54d0df1da1 + name: 'Customer [{#NAME}]: Enabled status' + type: DEPENDENT + key: 'acronis.cpc.customer.status[{#NAME}]' + delay: '0' + description: 'Enabled status for customer (true or false).' + valuemap: + name: 'True false' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#NAME}")].enabled.first()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not find customer status' + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: acronis.cpc.customers.get + tags: + - tag: component + value: application + - tag: component + value: customer + - tag: customer + value: '{#NAME}' + master_item: + key: acronis.cpc.customers.get + lld_macro_paths: + - lld_macro: '{#KIND}' + path: $.kind + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 67e399a0a6884589adc2618b181024e7 + name: 'Acronis CPC: Device discovery' + type: DEPENDENT + key: acronis.cpc.device.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#TENANT_NAME}' + value: '{$ACRONIS.CPC.DEVICE.DISCOVERY.TENANT.MATCHES}' + formulaid: A + - macro: '{#TENANT_NAME}' + value: '{$ACRONIS.CPC.DEVICE.DISCOVERY.TENANT.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovers devices.' + item_prototypes: + - uuid: 63f8280408c34e029085af75f15c0db3 + name: 'Device [{#NAME}]:[{#ID}]: Agent enabled' + type: DEPENDENT + key: 'acronis.cpc.device.agent.enabled[{#NAME}]' + delay: '0' + description: 'Agent status (enabled or disabled) for the device.' + valuemap: + name: 'True false' + preprocessing: + - type: JSONPATH + parameters: + - '$.context.attributes.[?(@.name == "agent")].kvs.[?(@.key == "enabled")].value.first()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse agent status' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + trigger_prototypes: + - uuid: 7e33ba82ad90436c88beee8d32a3f29d + expression: 'max(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.agent.enabled[{#NAME}],3m) < 1' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Agent disabled' + opdata: 'Current score: {ITEM.LASTVALUE}' + priority: INFO + description: 'Agent for this device is disabled for at least 3 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e1eaefb0e0af4793abadb0b3ad20ff4b + name: 'Device [{#NAME}]:[{#ID}]: Agent online' + type: DEPENDENT + key: 'acronis.cpc.device.agent.online[{#NAME}]' + delay: '0' + description: 'Agent reachability for the device.' + valuemap: + name: 'True false' + preprocessing: + - type: JSONPATH + parameters: + - '$.context.attributes.[?(@.name == "agent")].kvs.[?(@.key == "is_online")].value.first()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse agent reachability status' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + - uuid: 7bc04c3526704b578e2b7561e6c97b6a + name: 'Device [{#NAME}]:[{#ID}]: Agent version' + type: DEPENDENT + key: 'acronis.cpc.device.agent.version[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Agent version for the device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.context.attributes.[?(@.name == "agent")].kvs.[?(@.key == "version")].value.first()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse agent version' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + - uuid: d8c3372e05f3480aaa499b143ab47e87 + name: 'Device [{#NAME}]:[{#ID}]: Next machine backup run' + type: DEPENDENT + key: 'acronis.cpc.device.backup.next[{#NAME}]' + delay: '0' + units: unixtime + description: 'Next scheduled machine backup run for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.backup.machine")].next_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + trigger_prototypes: + - uuid: 6a2c53a89d7748f89956464849d0b7de + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.backup.next[{#NAME}]) < (now() + {$ACRONIS.CPC.OFFSET.SCHEDULED.BACKUP})' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Scheduled machine backup failed to run' + opdata: 'Scheduled: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Scheduled machine backup failed to run.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9fbbfa68438a406d82900d5c8801a756 + name: 'Device [{#NAME}]:[{#ID}]: Previous successful machine backup run' + type: DEPENDENT + key: 'acronis.cpc.device.backup.prev.ok[{#NAME}]' + delay: '0' + units: unixtime + description: 'Previous successful machine backup run for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.backup.machine")].last_success_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + - uuid: cea527353e34488a92dc5d2c082f6710 + name: 'Device [{#NAME}]:[{#ID}]: Previous machine backup run' + type: DEPENDENT + key: 'acronis.cpc.device.backup.prev[{#NAME}]' + delay: '0' + units: unixtime + description: 'Previous machine backup run for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.backup.machine")].last_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + - uuid: b45fb50f8caa40438eecfc4482d80fc2 + name: 'Device [{#NAME}]:[{#ID}]: CyberFit score' + type: DEPENDENT + key: 'acronis.cpc.device.cyberfit[{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Acronis "CyberFit" score for the device. Value of "-1" is assigned if "CyberFit" could not be found for device.' + valuemap: + name: 'CyberFit score' + preprocessing: + - type: JSONPATH + parameters: + - '$.context.attributes.[?(@.name == "cyberfit")].details.[?(@.key == "cyberfit_score_value")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + trigger_prototypes: + - uuid: 0c7edd6256fc48c49316644faef8df0a + expression: | + min(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.cyberfit[{#NAME}],3m) < {$ACRONIS.CPC.CYBERFIT.HIGH} + and + max(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.cyberfit[{#NAME}],3m) <> -1 + name: 'Acronis: Device [{#NAME}]:[{#ID}]: CyberFit score critical' + opdata: 'Current score: {ITEM.LASTVALUE}' + priority: HIGH + description: 'CyberFit score for this device is critical for at least 3 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4c841b8207d642b28dbd365983aac0ec + expression: | + min(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.cyberfit[{#NAME}],3m) < {$ACRONIS.CPC.CYBERFIT.WARN} + and + max(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.cyberfit[{#NAME}],3m) <> -1 + name: 'Acronis: Device [{#NAME}]:[{#ID}]: CyberFit score low' + opdata: 'Current score: {ITEM.LASTVALUE}' + priority: WARNING + description: 'CyberFit score for this device is low for at least 3 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Acronis: Device [{#NAME}]:[{#ID}]: CyberFit score critical' + expression: | + min(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.cyberfit[{#NAME}],3m) < {$ACRONIS.CPC.CYBERFIT.HIGH} + and + max(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.cyberfit[{#NAME}],3m) <> -1 + tags: + - tag: scope + value: notice + - uuid: 1f4d019c271c4272b055253d99d90244 + name: 'Device [{#NAME}]:[{#ID}]: Next patch management run' + type: DEPENDENT + key: 'acronis.cpc.device.patch.next[{#NAME}]' + delay: '0' + units: unixtime + description: 'Next scheduled patch management run for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.security.patch_management")].next_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + trigger_prototypes: + - uuid: 7f82e95335b746c1a061b0ae811165a7 + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.patch.next[{#NAME}]) < (now() + {$ACRONIS.CPC.OFFSET.SCHEDULED.PATCH})' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Scheduled patch management failed to run' + opdata: 'Scheduled: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Scheduled patch management failed to run.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8ff39ea389ec4c53aa572074266536da + name: 'Device [{#NAME}]:[{#ID}]: Previous successful patch management run' + type: DEPENDENT + key: 'acronis.cpc.device.patch.prev.ok[{#NAME}]' + delay: '0' + units: unixtime + description: 'Previous successful patch management run for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.security.patch_management")].last_success_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + - uuid: 81bc4b10c3484673a76e9bb8e012af26 + name: 'Device [{#NAME}]:[{#ID}]: Previous patch management run' + type: DEPENDENT + key: 'acronis.cpc.device.patch.prev[{#NAME}]' + delay: '0' + units: unixtime + description: 'Previous patch management run for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.security.patch_management")].last_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + - uuid: 43dc6e6bb7e042149b356fb6b067f0d5 + name: 'Device [{#NAME}]:[{#ID}]: Protection plan name' + type: DEPENDENT + key: 'acronis.cpc.device.protection.name[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Protection plan name for device.' + preprocessing: + - type: JSONPATH + parameters: + - $.aggregate.names + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse protection plan name' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + - uuid: 98701aa6f99f48c3a769529b2c3c3123 + name: 'Device [{#NAME}]:[{#ID}]: Next antimalware protection scan' + type: DEPENDENT + key: 'acronis.cpc.device.protection.scan.next[{#NAME}]' + delay: '0' + units: unixtime + description: 'Next scheduled antimalware protection scan for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.security.antimalware_protection")].next_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + trigger_prototypes: + - uuid: 75156ffdb1ed4b90b594e50bce8752e5 + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.protection.scan.next[{#NAME}]) < (now() + {$ACRONIS.CPC.OFFSET.SCHEDULED.ANTIMALWARE})' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Scheduled antimalware scan failed to run' + opdata: 'Scheduled: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Scheduled antimalware scan failed to run.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d9510ad24a1a40dfb14313e0e135a247 + name: 'Device [{#NAME}]:[{#ID}]: Previous successful antimalware protection scan' + type: DEPENDENT + key: 'acronis.cpc.device.protection.scan.prev.ok[{#NAME}]' + delay: '0' + units: unixtime + description: 'Previous successful antimalware protection scan for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.security.antimalware_protection")].last_success_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + - uuid: 684b4a46e4d84a588bd84fac3e6cfc55 + name: 'Device [{#NAME}]:[{#ID}]: Previous antimalware protection scan' + type: DEPENDENT + key: 'acronis.cpc.device.protection.scan.prev[{#NAME}]' + delay: '0' + units: unixtime + description: 'Previous antimalware protection scan for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.security.antimalware_protection")].last_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + - uuid: e0a94793d31c4cf08f64c0d230134870 + name: 'Device [{#NAME}]:[{#ID}]: Protection status' + type: DEPENDENT + key: 'acronis.cpc.device.protection.status[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Protection status for device.' + preprocessing: + - type: JSONPATH + parameters: + - $.aggregate.status + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse protection status' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + trigger_prototypes: + - uuid: 0c38a47343cb4df4bda534982f344c15 + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.protection.status[{#NAME}])="error"' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Protection status "error"' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'Device has "error" protection status.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3338e8c43c2149819e0a48156d6ec21a + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.protection.status[{#NAME}])="warning"' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Protection status "warning"' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: WARNING + description: 'Device has "warning" protection status.' + manual_close: 'YES' + dependencies: + - name: 'Acronis: Device [{#NAME}]:[{#ID}]: Protection status "error"' + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.protection.status[{#NAME}])="error"' + tags: + - tag: scope + value: notice + - uuid: 20d93972ca2f47af96aed7ee9aa642af + name: 'Device [{#NAME}]:[{#ID}]: Raw data resources status' + type: HTTP_AGENT + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets statuses for device resources.' + preprocessing: + - type: JSONPATH + parameters: + - '$.items[0]' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse resource status data' + timeout: 15s + url: '{$ACRONIS.CPC.DATACENTER.URL}{$ACRONIS.CPC.PATH.RESOURCE.MANAGEMENT}/resource_statuses' + query_fields: + - name: resource_id + value: '{#ID}' + - name: include_attributes + value: 'true' + status_codes: '' + http_proxy: '{$ACRONIS.CPC.HTTP.PROXY}' + headers: + - name: Accept + value: application/json + - name: Authorization + value: 'Bearer {$ACRONIS.CPC.ACCESS_TOKEN}' + - name: X-Application-Secret + value: 5619386d-de56-49ec-8508-f5c399d3b9bd + tags: + - tag: component + value: raw + - uuid: e6905aa1998a41cfa0e6fda699558ceb + name: 'Device [{#NAME}]:[{#ID}]: Next vulnerability assessment' + type: DEPENDENT + key: 'acronis.cpc.device.vuln.next[{#NAME}]' + delay: '0' + units: unixtime + description: 'Next scheduled vulnerability assessment for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.security.vulnerability_assessment")].next_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + trigger_prototypes: + - uuid: b71001b751594fc5b4b9b38673133171 + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.vuln.next[{#NAME}]) < (now() + {$ACRONIS.CPC.OFFSET.SCHEDULED.VULNERABILITY})' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Scheduled vulnerability assessment failed to run' + opdata: 'Scheduled: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Scheduled vulnerability assessment failed to run.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 36fb3f57c4ae4f5cad01913a453869dc + name: 'Device [{#NAME}]:[{#ID}]: Previous successful vulnerability assessment' + type: DEPENDENT + key: 'acronis.cpc.device.vuln.prev.ok[{#NAME}]' + delay: '0' + units: unixtime + description: 'Previous successful vulnerability assessment for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.security.vulnerability_assessment")].last_success_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + - uuid: 9a45c38169c848fd92b8e6a782ad065b + name: 'Device [{#NAME}]:[{#ID}]: Previous vulnerability assessment' + type: DEPENDENT + key: 'acronis.cpc.device.vuln.prev[{#NAME}]' + delay: '0' + units: unixtime + description: 'Previous vulnerability assessment for device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.policies.[?(@.type == "policy.security.vulnerability_assessment")].last_run.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'acronis.cpc.device.res.status.raw[{#NAME}]' + tags: + - tag: component + value: application + - tag: component + value: device + - tag: resource + value: '{#NAME}' + - tag: tenant + value: '{#TENANT_NAME}' + trigger_prototypes: + - uuid: f0a9c94a81ef4018a76b73cb98780f1f + expression: 'max(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.backup.prev.ok[{#NAME}],1m)<>max(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.backup.prev[{#NAME}],1m)' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Previous machine backup run not successful' + opdata: 'Last scan: {ITEM.LASTVALUE2}, Last OK scan: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Previous machine backup did not run successfully.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5ce3f0bc18cd40878059b48ba436fa6d + expression: 'max(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.patch.prev.ok[{#NAME}],1m)<>max(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.patch.prev[{#NAME}],1m)' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Previous patch management run not successful' + opdata: 'Last scan: {ITEM.LASTVALUE2}, Last OK scan: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Previous patch management run did not run successfully.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b0341da543c34c9491863a6fb8caea0c + expression: 'last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.protection.scan.prev.ok[{#NAME}])<>last(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.protection.scan.prev[{#NAME}])' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Previous protection scan not successful' + opdata: 'Last scan: {ITEM.LASTVALUE2}, Last OK scan: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Device has "error" protection status.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3c0f47531c1a435eb93d01107a6e0b3d + expression: 'max(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.vuln.prev.ok[{#NAME}],1m)<>max(/Acronis Cyber Protect Cloud MSP by HTTP/acronis.cpc.device.vuln.prev[{#NAME}],1m)' + name: 'Acronis: Device [{#NAME}]:[{#ID}]: Previous vulnerability assessment not successful' + opdata: 'Last scan: {ITEM.LASTVALUE2}, Last OK scan: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Previous vulnerability assessment did not run successfully.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: feba1571ed4a47d5a5bbbb16153983b0 + name: 'Device [{#NAME}]:[{#ID}]: CyberFit score' + graph_items: + - color: 199C0D + item: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: 'acronis.cpc.device.cyberfit[{#NAME}]' + master_item: + key: acronis.cpc.devices.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TENANT_NAME}' + path: $.tenant_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: application + - tag: target + value: acronis + - tag: target + value: cyber-protect-cloud + macros: + - macro: '{$ACRONIS.CPC.ACCESS_TOKEN}' + type: SECRET_TEXT + description: 'API access token.' + - macro: '{$ACRONIS.CPC.ALERT.DISCOVERY.CATEGORY.MATCHES}' + value: '.*' + description: 'Sets the alert category regex filter to use in alert discovery for including.' + - macro: '{$ACRONIS.CPC.ALERT.DISCOVERY.CATEGORY.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the alert category regex filter to use in alert discovery for excluding.' + - macro: '{$ACRONIS.CPC.ALERT.DISCOVERY.RESOURCE.MATCHES}' + value: '.*' + description: 'Sets the alert resource name regex filter to use in alert discovery for including.' + - macro: '{$ACRONIS.CPC.ALERT.DISCOVERY.RESOURCE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the alert resource name regex filter to use in alert discovery for excluding.' + - macro: '{$ACRONIS.CPC.ALERT.DISCOVERY.SEVERITY.MATCHES}' + value: '.*' + description: 'Sets the alert severity regex filter to use in alert discovery for including.' + - macro: '{$ACRONIS.CPC.ALERT.DISCOVERY.SEVERITY.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the alert severity regex filter to use in alert discovery for excluding.' + - macro: '{$ACRONIS.CPC.CUSTOMER.DISCOVERY.KIND.MATCHES}' + value: customer + description: 'Sets the customer name regex filter to use in customer discovery for including.' + - macro: '{$ACRONIS.CPC.CUSTOMER.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the customer name regex filter to use in customer discovery for including.' + - macro: '{$ACRONIS.CPC.CUSTOMER.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the customer name regex filter to use in customer discovery for excluding.' + - macro: '{$ACRONIS.CPC.CYBERFIT.HIGH}' + value: '579' + description: 'CyberFit score threshold for "high" severity trigger.' + - macro: '{$ACRONIS.CPC.CYBERFIT.WARN}' + value: '669' + description: 'CyberFit score threshold for "warning" severity trigger.' + - macro: '{$ACRONIS.CPC.DATACENTER.URL}' + description: 'Acronis Cyber Protect Cloud datacenter URL, e.g., https://eu2-cloud.acronis.com.' + - macro: '{$ACRONIS.CPC.DEVICE.DISCOVERY.TENANT.MATCHES}' + value: '.*' + description: 'Sets the tenant name regex filter to use in device discovery for including.' + - macro: '{$ACRONIS.CPC.DEVICE.DISCOVERY.TENANT.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the tenant name regex filter to use in device discovery for excluding.' + - macro: '{$ACRONIS.CPC.DEVICE.RESOURCE.TYPE}' + value: resource.machine + description: 'Comma separated list of resource types for devices retrieval.' + - macro: '{$ACRONIS.CPC.HTTP.PROXY}' + description: 'Sets the HTTP proxy for the authorization item. Host prototypes will also use this value for HTTP proxy. If this parameter is empty, then no proxy is used.' + - macro: '{$ACRONIS.CPC.MSP.TENANT.UUID}' + description: 'UUID for MSP.' + - macro: '{$ACRONIS.CPC.OFFSET.SCHEDULED.ANTIMALWARE}' + value: '-180' + description: 'Offset time in seconds for scheduled antimalware scan trigger check.' + - macro: '{$ACRONIS.CPC.OFFSET.SCHEDULED.BACKUP}' + value: '-180' + description: 'Offset time in seconds for scheduled backup run trigger check.' + - macro: '{$ACRONIS.CPC.OFFSET.SCHEDULED.PATCH}' + value: '-180' + description: 'Offset time in seconds for scheduled patch management run trigger check.' + - macro: '{$ACRONIS.CPC.OFFSET.SCHEDULED.VULNERABILITY}' + value: '-180' + description: 'Offset time in seconds for scheduled vulnerability assessment run trigger check.' + - macro: '{$ACRONIS.CPC.PATH.ACCOUNT.MANAGEMENT}' + value: /api/2 + description: 'Sub-path for the Account Management API.' + - macro: '{$ACRONIS.CPC.PATH.AGENTS}' + value: /api/agent_manager/v2 + description: 'Sub-path for the Agents API.' + - macro: '{$ACRONIS.CPC.PATH.ALERTS}' + value: /api/alert_manager/v1 + description: 'Sub-path for the Alerts API.' + - macro: '{$ACRONIS.CPC.PATH.RESOURCE.MANAGEMENT}' + value: /api/resource_management/v4 + description: 'Sub-path for the Resource Management API.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Acronis Cyber Protect Cloud MSP", e.g. {$HTTP.TLS.VERIFY:"Acronis Cyber Protect Cloud MSP"}.' + dashboards: + - uuid: 711853342bbe4a5b8d145fc96644d1e5 + name: 'Acronis Cyber Protect Cloud Overview' + pages: + - widgets: + - type: item + width: '9' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 1EA7FD + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '"Information" severity alert count' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: acronis.cpc.alerts.severity.info + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: item + 'y': '3' + width: '9' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 66BF3C + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '"OK" severity alert count' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: acronis.cpc.alerts.severity.ok + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: item + 'y': '6' + width: '9' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: E69D00 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '"Warning" severity alert count' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: acronis.cpc.alerts.severity.warn + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: item + 'y': '9' + width: '9' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF4400 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '"Error" severity alert count' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: acronis.cpc.alerts.severity.err + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: item + 'y': '12' + width: '9' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: E23636 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '"Critical" severity alert count' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: acronis.cpc.alerts.severity.crit + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: graph + x: '9' + width: '12' + height: '6' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + name: 'Acronis CPC: Alerts overview' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + x: '9' + 'y': '6' + width: '36' + height: '9' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + name: 'Device [{#NAME}]:[{#ID}]: CyberFit score' + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: rows + value: '2' + - type: graphprototype + x: '21' + width: '24' + height: '6' + fields: + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: 'acronis.cpc.customer.status[{#NAME}]' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + x: '45' + width: '27' + height: '7' + fields: + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: 'acronis.cpc.device.agent.enabled[{#NAME}]' + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + x: '45' + 'y': '7' + width: '27' + height: '8' + fields: + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: 'acronis.cpc.device.agent.online[{#NAME}]' + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: source_type + value: '3' + valuemaps: + - uuid: 0c425866d0ce4412a54b66f215df4cde + name: 'Alert severity' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: Warning + - value: '2' + newvalue: Error + - value: '3' + newvalue: Critical + - value: '4' + newvalue: Information + - value: '10' + newvalue: Unknown + - uuid: 4a5652b3706a45faa2b86ae652425692 + name: 'CyberFit score' + mappings: + - value: '-1' + newvalue: Unavailable + - uuid: df45c606a7ef4f49a3101ad135eef1bc + name: 'True false' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + graphs: + - uuid: 1950de4a315f487f9382d82c2dba1778 + name: 'Acronis CPC: Alerts overview' + type: PIE + graph_items: + - color: 1EA7FD + item: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: acronis.cpc.alerts.severity.info + - sortorder: '1' + color: 66BF3C + item: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: acronis.cpc.alerts.severity.ok + - sortorder: '2' + color: E69D00 + item: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: acronis.cpc.alerts.severity.warn + - sortorder: '3' + color: FF4400 + item: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: acronis.cpc.alerts.severity.err + - sortorder: '4' + color: E8083E + item: + host: 'Acronis Cyber Protect Cloud MSP by HTTP' + key: acronis.cpc.alerts.severity.crit diff --git a/Acronis_Cyber_Protect_Cloud_by_HTTP.yaml b/Acronis_Cyber_Protect_Cloud_by_HTTP.yaml new file mode 100644 index 0000000..c3c04f9 --- /dev/null +++ b/Acronis_Cyber_Protect_Cloud_by_HTTP.yaml @@ -0,0 +1,116 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: d0571c5f2c204b7ab244843040288a35 + template: 'Acronis Cyber Protect Cloud by HTTP' + name: 'Acronis Cyber Protect Cloud by HTTP' + description: | + Requests Acronis Cyber Protect Cloud API access token and creates host prototype for MSP. + + Template uses HTTP item to query Acronis Cyber Protect Cloud API client for authorization. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-0 + groups: + - name: Templates/Applications + items: + - uuid: bce642c2c6e743ccb618c96f6ca533da + name: 'Get access token' + type: HTTP_AGENT + key: acronis.cpc.account_manager.get_token + delay: '{$ACRONIS.CPC.AUTH.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$ACRONIS.CPC.AUTH.CLIENT.ID}' + password: '{$ACRONIS.CPC.AUTH.SECRET}' + description: 'Authorizes API user and receives access token.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + value = JSON.parse(value) + + var list = [] + list.push({'scope': value['scope'].split(':')[3], 'access_token': value['access_token']}) + return JSON.stringify(list); + timeout: 15s + url: '{$ACRONIS.CPC.DATACENTER.URL}{$ACRONIS.CPC.PATH.ACCOUNT.MANAGEMENT}/idp/token' + status_codes: '' + posts: grant_type=client_credentials + http_proxy: '{$ACRONIS.CPC.HTTP.PROXY}' + headers: + - name: Content-Type + value: application/x-www-form-urlencoded + - name: X-Application-Secret + value: 5619386d-de56-49ec-8508-f5c399d3b9bd + request_method: POST + tags: + - tag: component + value: authorization + discovery_rules: + - uuid: d2c30d84c5f44734bc2f0ef38e99a959 + name: 'Acronis CPC: MSP Discovery' + type: DEPENDENT + key: acronis.cpc.lld.msp_discovery + delay: '0' + description: 'Discovers MSP and creates host prototype based on that.' + host_prototypes: + - uuid: bbdc747270f64876bc701dd87c27dbbe + host: 'Acronis CPC MSP {#SCOPE}' + name: 'Acronis CPC MSP {#SCOPE}' + group_links: + - group: + name: Applications + templates: + - name: 'Acronis Cyber Protect Cloud MSP by HTTP' + macros: + - macro: '{$ACRONIS.CPC.ACCESS_TOKEN}' + value: '{#ACCESS_TOKEN}' + description: 'Acronis CPC API access token.' + - macro: '{$ACRONIS.CPC.MSP.TENANT.UUID}' + value: '{#SCOPE}' + description: 'UUID of API client tenant.' + master_item: + key: acronis.cpc.account_manager.get_token + lld_macro_paths: + - lld_macro: '{#ACCESS_TOKEN}' + path: $.access_token + - lld_macro: '{#SCOPE}' + path: $.scope + tags: + - tag: class + value: application + - tag: target + value: acronis + - tag: target + value: cyber-protect-cloud + macros: + - macro: '{$ACRONIS.CPC.AUTH.CLIENT.ID}' + description: 'Client ID for API user access.' + - macro: '{$ACRONIS.CPC.AUTH.INTERVAL}' + value: 110m + description: 'API token regeneration interval, in minutes. By default, Acronis Cyber Protect Cloud tokens expire after 2 hours.' + - macro: '{$ACRONIS.CPC.AUTH.SECRET}' + type: SECRET_TEXT + description: 'Secret for API user access.' + - macro: '{$ACRONIS.CPC.DATACENTER.URL}' + description: 'Acronis Cyber Protect Cloud datacenter URL, e.g., https://eu2-cloud.acronis.com.' + - macro: '{$ACRONIS.CPC.HTTP.PROXY}' + description: 'Sets the HTTP proxy for the authorization item. Host prototypes will also use this value for HTTP proxy. If this parameter is empty, then no proxy is used.' + - macro: '{$ACRONIS.CPC.PATH.ACCOUNT.MANAGEMENT}' + value: /api/2 + description: 'Sub-path for the Account Management API.' diff --git a/Alcatel_Timetra_TiMOS_by_SNMP.yaml b/Alcatel_Timetra_TiMOS_by_SNMP.yaml new file mode 100644 index 0000000..545437a --- /dev/null +++ b/Alcatel_Timetra_TiMOS_by_SNMP.yaml @@ -0,0 +1,1935 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 53044571fb864d87af32473e08c76d0b + template: 'Alcatel Timetra TiMOS by SNMP' + name: 'Alcatel Timetra TiMOS by SNMP' + description: | + Template Net Alcatel Timetra TiMOS + + MIBs used: + EtherLike-MIB + TIMETRA-SYSTEM-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + TIMETRA-CHASSIS-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 832b1a2e21904591bc42d5cda9f3df14 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 72f8bcb4dfde4d338c31c83b72a36129 + expression: 'max(/Alcatel Timetra TiMOS by SNMP/icmpping,#3)=0' + name: 'Alcatel TiMOS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 959946f1885c4e7fbde7ab7200c60858 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 0c0a32b98df84c07acbe51caabc8c012 + expression: 'min(/Alcatel Timetra TiMOS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Alcatel Timetra TiMOS by SNMP/icmppingloss,5m)<100' + name: 'Alcatel TiMOS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Alcatel TiMOS: Unavailable by ICMP ping' + expression: 'max(/Alcatel Timetra TiMOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7f858a8bc36746be89b2e36608cbb643 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 06fd317938784236b3e17b2b4080925d + expression: 'avg(/Alcatel Timetra TiMOS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Alcatel TiMOS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Alcatel TiMOS: High ICMP ping loss' + expression: 'min(/Alcatel Timetra TiMOS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Alcatel Timetra TiMOS by SNMP/icmppingloss,5m)<100' + - name: 'Alcatel TiMOS: Unavailable by ICMP ping' + expression: 'max(/Alcatel Timetra TiMOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8f5bdb3fde9142a9892db396c040f8dd + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 0471357a58ff437e835e02175d6e6ca1 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e28cb751b37e42d29be9f0295bd030b6 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6527.3.1.2.1.1.1.0]' + key: 'system.cpu.util[sgiCpuUsage.0]' + value_type: FLOAT + units: '%' + description: | + MIB: TIMETRA-SYSTEM-MIB + The value of sgiCpuUsage indicates the current CPU utilization for the system. + tags: + - tag: component + value: cpu + triggers: + - uuid: 4167b064eb19478da13531f629082ef1 + expression: 'min(/Alcatel Timetra TiMOS by SNMP/system.cpu.util[sgiCpuUsage.0],5m)>{$CPU.UTIL.CRIT}' + name: 'Alcatel TiMOS: High CPU utilization' + event_name: 'Alcatel TiMOS: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 757c85110dc34eb88265832aba8e7fbf + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2183a57a2c904632bf813c15610765f7 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: MODEL + preprocessing: + - type: REGEX + parameters: + - '^(\w|-|\.|/)+ (\w|-|\.|/)+ (.+) Copyright' + - \3 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 3ea3106277c64428950b4a5b6c4aedd0 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 597b68e7ddb8482280122de489424041 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 0b1d37d4950d40c79433f47dea9677d4 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 5f11cacfd4a94cf696897b3f3fa80601 + expression: 'last(/Alcatel Timetra TiMOS by SNMP/system.name,#1)<>last(/Alcatel Timetra TiMOS by SNMP/system.name,#2) and length(last(/Alcatel Timetra TiMOS by SNMP/system.name))>0' + name: 'Alcatel TiMOS: System name has changed' + event_name: 'Alcatel TiMOS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: e80e3dfbf1a447be87f1b6853c66555b + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f0df5a577f5c46689578302df065a3d6 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9f1c8827a9ef4948808bac9d76add9a8 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.sw.os[sysDescr.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - ^((\w|-|\.|/)+) + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: dd5dc3541a3d402c98a60b25d9e48dd6 + expression: 'last(/Alcatel Timetra TiMOS by SNMP/system.sw.os[sysDescr.0],#1)<>last(/Alcatel Timetra TiMOS by SNMP/system.sw.os[sysDescr.0],#2) and length(last(/Alcatel Timetra TiMOS by SNMP/system.sw.os[sysDescr.0]))>0' + name: 'Alcatel TiMOS: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Alcatel TiMOS: System name has changed' + expression: 'last(/Alcatel Timetra TiMOS by SNMP/system.name,#1)<>last(/Alcatel Timetra TiMOS by SNMP/system.name,#2) and length(last(/Alcatel Timetra TiMOS by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 3f2769066a184d29afd26047039b633c + name: 'Available memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6527.3.1.2.1.1.10.0]' + key: 'vm.memory.available[sgiKbMemoryAvailable.0]' + units: B + description: | + MIB: TIMETRA-SYSTEM-MIB + The value of sgiKbMemoryAvailable indicates the amount of free memory, in kilobytes, in the overall system that is not allocated to memory pools, but is available in case a memory pool needs to grow. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 9005685cea194d7c9702f19040df7b80 + name: 'Total memory' + type: CALCULATED + key: 'vm.memory.total[snmp]' + units: B + params: 'last(//vm.memory.available[sgiKbMemoryAvailable.0])+last(//vm.memory.used[sgiKbMemoryUsed.0])' + description: 'The total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: f5cd1ed0f61f464f86a97485f833d832 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6527.3.1.2.1.1.9.0]' + key: 'vm.memory.used[sgiKbMemoryUsed.0]' + units: B + description: | + MIB: TIMETRA-SYSTEM-MIB + The value of sgiKbMemoryUsed indicates the total pre-allocated pool memory, in kilobytes, currently in use on the system. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: f223ac289a99469e8861219f4254dea6 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[vm.memory.util.0]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[sgiKbMemoryUsed.0])/(last(//vm.memory.available[sgiKbMemoryAvailable.0])+last(//vm.memory.used[sgiKbMemoryUsed.0]))*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: a22f13e245b944e991c2c9850a731a3c + expression: 'min(/Alcatel Timetra TiMOS by SNMP/vm.memory.util[vm.memory.util.0],5m)>{$MEMORY.UTIL.MAX}' + name: 'Alcatel TiMOS: High memory utilization' + event_name: 'Alcatel TiMOS: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: cbcc156906774a109dd3d0cf09c512e9 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 60187191b268499784a70ef1dfe058ae + expression: 'max(/Alcatel Timetra TiMOS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Alcatel TiMOS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Alcatel TiMOS: Unavailable by ICMP ping' + expression: 'max(/Alcatel Timetra TiMOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: fe7fa4ab68b8430c86a3adf6ba2fd048 + name: 'Entity Serial Numbers Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_NAME},1.3.6.1.4.1.6527.3.1.2.2.1.8.1.8,{#ENT_CLASS},1.3.6.1.4.1.6527.3.1.2.2.1.8.1.7,{#ENT_SN},1.3.6.1.4.1.6527.3.1.2.2.1.8.1.5]' + key: entity_sn.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ENT_SN}' + value: .+ + formulaid: A + item_prototypes: + - uuid: ec087163f366430fbd688390bce17980 + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6527.3.1.2.2.1.8.1.5.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[tmnxHwSerialNumber.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: TIMETRA-CHASSIS-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: ccdcfdbe1a6243949857c764aed9c9ea + expression: 'last(/Alcatel Timetra TiMOS by SNMP/system.hw.serialnumber[tmnxHwSerialNumber.{#SNMPINDEX}],#1)<>last(/Alcatel Timetra TiMOS by SNMP/system.hw.serialnumber[tmnxHwSerialNumber.{#SNMPINDEX}],#2) and length(last(/Alcatel Timetra TiMOS by SNMP/system.hw.serialnumber[tmnxHwSerialNumber.{#SNMPINDEX}]))>0' + name: 'Alcatel TiMOS: {#ENT_NAME}: Device has been replaced' + event_name: 'Alcatel TiMOS: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0fa1180b594e401a83927f6c20809a86 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.6527.3.1.2.2.1.4.1.2]' + key: fan.discovery + delay: 1h + filter: + conditions: + - macro: '{#SNMPVALUE}' + value: '[^1]' + formulaid: A + item_prototypes: + - uuid: be9fb466b33f4d078b6aae15123bc7d6 + name: '#{#SNMPINDEX}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6527.3.1.2.2.1.4.1.2.{#SNMPINDEX}]' + key: 'sensor.fan.status[tmnxChassisFanOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: TIMETRA-SYSTEM-MIB + Current status of the Fan tray. + valuemap: + name: 'TIMETRA-CHASSIS-MIB::TmnxDeviceState' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 10f9f5cd2f1b4d09abba3ae48b482eb8 + expression: 'count(/Alcatel Timetra TiMOS by SNMP/sensor.fan.status[tmnxChassisFanOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Alcatel TiMOS: #{#SNMPINDEX}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0caa510db5f54ee5a57c9a40c9d20140 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: cc997c10a3a94fb183bc793367d8da43 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ddabc629599f43f494b67225ccaef4cd + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cc041e8f15eb48c098871bfa91c9edef + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: abdd315e75154954a8d8323a35d42029 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 91b4d7e0133049049efa24835e00b061 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: be432b00cdc044c0a1190e31aecc2b2c + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 67971f7787444822b9ee370a3cc2d3ec + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 92ac574cd0354d9fa886cfcf0f2f048d + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a4bcc6d80080415698d8fd323ff5d484 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Alcatel TiMOS: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 201dd2baef0647f58fbcec0205cce318 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a9467162f7434b8e97cb6645b6a060ae + expression: | + change(/Alcatel Timetra TiMOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Alcatel Timetra TiMOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Alcatel Timetra TiMOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Alcatel Timetra TiMOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Alcatel Timetra TiMOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Alcatel Timetra TiMOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Alcatel Timetra TiMOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Alcatel Timetra TiMOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Alcatel Timetra TiMOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Alcatel Timetra TiMOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Alcatel TiMOS: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Alcatel TiMOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 27e0b7fcaf664410962dc768e0ef7267 + expression: | + (avg(/Alcatel Timetra TiMOS by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Alcatel Timetra TiMOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Alcatel Timetra TiMOS by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Alcatel Timetra TiMOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Alcatel Timetra TiMOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Alcatel Timetra TiMOS by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Alcatel Timetra TiMOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Alcatel Timetra TiMOS by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Alcatel Timetra TiMOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Alcatel TiMOS: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Alcatel TiMOS: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Alcatel TiMOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: ee8dccabf5df45b48a503320131b152e + expression: | + min(/Alcatel Timetra TiMOS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Alcatel Timetra TiMOS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Alcatel Timetra TiMOS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Alcatel Timetra TiMOS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Alcatel TiMOS: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Alcatel TiMOS: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Alcatel TiMOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Alcatel Timetra TiMOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 58eba6a5a57f49608fb62b9d270e98c6 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Alcatel Timetra TiMOS by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Alcatel Timetra TiMOS by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Alcatel Timetra TiMOS by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Alcatel Timetra TiMOS by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Alcatel Timetra TiMOS by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Alcatel Timetra TiMOS by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 078d4ad71e014260aa173288492e7f5d + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: f4d62611a75244c29766118b8856d976 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e5d6ba20229044b98ee8cb33e00de8b0 + expression: 'last(/Alcatel Timetra TiMOS by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'Alcatel TiMOS: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + - uuid: f99bcd2eff1349f08ae23f6f9dbd6cfb + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.6527.3.1.2.2.1.5.1.6]' + key: psu.discovery + delay: 1h + item_prototypes: + - uuid: a52d5ce3437f4f1ca633cc541028ccc7 + name: '#{#SNMPINDEX}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6527.3.1.2.2.1.5.1.6.{#SNMPINDEX}]' + key: 'sensor.psu.status[tmnxChassisPowerSupply1Status.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: TIMETRA-SYSTEM-MIB + The overall status of an equipped power supply. + For AC multiple power supplies, this represents the overall status of the first power supply in the tray (or shelf). + For any other type, this represents the overall status of the power supply. + If tmnxChassisPowerSupply1Status is'deviceStateOk', then all monitored statuses are 'deviceStateOk'. + A value of 'deviceStateFailed' represents a condition where at least one monitored status is in a failed state. + valuemap: + name: 'TIMETRA-CHASSIS-MIB::TmnxDeviceState' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: afbc2020a9f74d6abe52469ac663e057 + expression: 'count(/Alcatel Timetra TiMOS by SNMP/sensor.psu.status[tmnxChassisPowerSupply1Status.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'Alcatel TiMOS: #{#SNMPINDEX}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b73b01d720c7431085657548d620f76e + name: '#{#SNMPINDEX}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6527.3.1.2.2.1.5.1.7.{#SNMPINDEX}]' + key: 'sensor.psu.status[tmnxChassisPowerSupply2Status.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: TIMETRA-SYSTEM-MIB + The overall status of an equipped power supply. + For AC multiple power supplies, this represents the overall status of the second power supply in the tray (or shelf). + For any other type, this field is unused and set to 'deviceNotEquipped'. + If tmnxChassisPowerSupply2Status is 'deviceStateOk', then all monitored statuses are 'deviceStateOk'. + A value of 'deviceStateFailed' represents a condition where at least one monitored status is in a failed state. + valuemap: + name: 'TIMETRA-CHASSIS-MIB::TmnxDeviceState' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: fcbc0ef8f55146daaed6be4ccbd324e7 + expression: 'count(/Alcatel Timetra TiMOS by SNMP/sensor.psu.status[tmnxChassisPowerSupply2Status.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'Alcatel TiMOS: #{#SNMPINDEX}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6382c9595cb446778d23bb273143b27c + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.6527.3.1.2.2.1.8.1.8,{#TEMP_SENSOR},1.3.6.1.4.1.6527.3.1.2.2.1.8.1.17]' + key: temperature.discovery + delay: 1h + filter: + conditions: + - macro: '{#TEMP_SENSOR}' + value: '1' + formulaid: A + item_prototypes: + - uuid: c6a233ce51d44b63963f2345f709e6b3 + name: '{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6527.3.1.2.2.1.8.1.18.{#SNMPINDEX}]' + key: 'sensor.temp.value[tmnxHwTemperature.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: TIMETRA-SYSTEM-MIB + The current temperature reading in degrees celsius from this hardware component's temperature sensor. If this component does not contain a temperature sensor, then the value -1 is returned. + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 8f478386378349e7a4e4586c5ba74c78 + expression: 'avg(/Alcatel Timetra TiMOS by SNMP/sensor.temp.value[tmnxHwTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Alcatel Timetra TiMOS by SNMP/sensor.temp.value[tmnxHwTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'Alcatel TiMOS: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Alcatel TiMOS: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 90ba726922f74d1d971b3f07781fc035 + expression: 'avg(/Alcatel Timetra TiMOS by SNMP/sensor.temp.value[tmnxHwTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Alcatel Timetra TiMOS by SNMP/sensor.temp.value[tmnxHwTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Alcatel TiMOS: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Alcatel TiMOS: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Alcatel TiMOS: {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/Alcatel Timetra TiMOS by SNMP/sensor.temp.value[tmnxHwTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/Alcatel Timetra TiMOS by SNMP/sensor.temp.value[tmnxHwTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6035fc6733614ae1b4ed22c7d73466b0 + expression: 'avg(/Alcatel Timetra TiMOS by SNMP/sensor.temp.value[tmnxHwTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Alcatel Timetra TiMOS by SNMP/sensor.temp.value[tmnxHwTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Alcatel TiMOS: {#SNMPVALUE}: Temperature is too low' + event_name: 'Alcatel TiMOS: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: alcatel + - tag: target + value: alcatel-timetra + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '4' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '4' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '65' + dashboards: + - uuid: 2a5bbc386c5a4b04a0494455a6c9e1a7 + name: 'Alcatel Timetra TiMOS: General' + pages: + - name: 'Alcatel Timetra TiMOS: General' + widgets: + - type: graph + name: 'memory utilization' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Alcatel Timetra TiMOS by SNMP' + name: 'Alcatel Timetra TiMOS: Memory utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'cpu utilization' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Alcatel Timetra TiMOS by SNMP' + name: 'Alcatel Timetra TiMOS: CPU utilization' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: 'memory usage' + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Alcatel Timetra TiMOS by SNMP' + name: 'Alcatel Timetra TiMOS: Memory usage' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: b31f48e2216f441daa0b05561ac2ab6a + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 0a25bc3fe4dd40f8a08962befa8416d1 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: ce3031283a6d458489747bfbf3696ab6 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 2d7b52f7709c460597a1ff44c1e39a1b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 95a194271a584008a81564fd80189c5a + name: 'TIMETRA-CHASSIS-MIB::TmnxDeviceState' + mappings: + - value: '1' + newvalue: deviceStateUnknown + - value: '2' + newvalue: deviceNotEquipped + - value: '3' + newvalue: deviceStateOk + - value: '4' + newvalue: deviceStateFailed + - value: '5' + newvalue: deviceStateOutOfService + - uuid: 03dcc409833146f6a1678df8b1311c40 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 3b6324116e5940b5aaea72adca4dbbf6 + expression: '(last(/Alcatel Timetra TiMOS by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Alcatel Timetra TiMOS by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Alcatel Timetra TiMOS by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Alcatel Timetra TiMOS by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Alcatel TiMOS: Host has been restarted' + event_name: 'Alcatel TiMOS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Alcatel TiMOS: No SNMP data collection' + expression: 'max(/Alcatel Timetra TiMOS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 7300eff1609b497aa7628ed83b36a481 + name: 'Alcatel Timetra TiMOS: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Alcatel Timetra TiMOS by SNMP' + key: 'system.cpu.util[sgiCpuUsage.0]' + - uuid: e404b522555e4f9092930ce870649828 + name: 'Alcatel Timetra TiMOS: Memory usage' + ymin_type_1: FIXED + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Alcatel Timetra TiMOS by SNMP' + key: 'vm.memory.total[snmp]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Alcatel Timetra TiMOS by SNMP' + key: 'vm.memory.available[sgiKbMemoryAvailable.0]' + - uuid: 111cde007d8342f9b743f08f12380ec3 + name: 'Alcatel Timetra TiMOS: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Alcatel Timetra TiMOS by SNMP' + key: 'vm.memory.util[vm.memory.util.0]' diff --git a/Apache_ActiveMQ_by_JMX.yaml b/Apache_ActiveMQ_by_JMX.yaml new file mode 100644 index 0000000..4fe3e73 --- /dev/null +++ b/Apache_ActiveMQ_by_JMX.yaml @@ -0,0 +1,777 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: c87e0a2e0683483ab7c6f3c380e9f840 + template: 'Apache ActiveMQ by JMX' + name: 'Apache ActiveMQ by JMX' + description: | + The template to monitor Apache ActiveMQ by Zabbix that work without any external scripts. + The metrics are collected by JMX. + You can set macro values and add macros with context for specific brokers or destinations following macro description. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/411049-discussion-thread-for-official-zabbix-template-amq + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + discovery_rules: + - uuid: cbd9f98c2c1e412081a546e18066a868 + name: 'Brokers discovery' + type: JMX + key: 'jmx.discovery[beans,"org.apache.activemq:type=Broker,brokerName=*"]' + delay: 1h + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + filter: + evaltype: FORMULA + formula: 'A and B' + conditions: + - macro: '{#JMXBROKERNAME}' + value: '{$ACTIVEMQ.LLD.FILTER.BROKER.MATCHES}' + formulaid: A + - macro: '{#JMXBROKERNAME}' + value: '{$ACTIVEMQ.LLD.FILTER.BROKER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of brokers' + item_prototypes: + - uuid: 29a0f197bfe847d596dad4923364490e + name: 'Broker {#JMXBROKERNAME}: Version' + type: JMX + key: 'jmx[{#JMXOBJ},BrokerVersion]' + value_type: TEXT + trends: '0' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'The version of the broker.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: inventory + trigger_prototypes: + - uuid: 7902d81681874aa3acf33d90316f9864 + expression: 'last(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},BrokerVersion],#1)<>last(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},BrokerVersion],#2) and length(last(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},BrokerVersion]))>0' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Version has been changed' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Broker {#JMXBROKERNAME} version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 85c19ccb8b6a4242a8ba699e76836427 + name: 'Broker {#JMXBROKERNAME}: Memory limit' + type: JMX + key: 'jmx[{#JMXOBJ},MemoryLimit]' + units: B + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Memory limit, in bytes, used for holding undelivered messages before paging to temporary storage.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - uuid: 5e2a5638adf6405087014bfcfc8ffc93 + name: 'Broker {#JMXBROKERNAME}: Memory usage in percents' + type: JMX + key: 'jmx[{#JMXOBJ}, MemoryPercentUsage]' + units: '%' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Percent of memory limit used.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: e805b8cca9744940affc3bdd234a7587 + expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ}, MemoryPercentUsage],{$ACTIVEMQ.MEM.TIME:"{#JMXBROKERNAME}"})>{$ACTIVEMQ.MEM.MAX.HIGH:"{#JMXBROKERNAME}"}' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Memory usage is too high' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Memory usage is too high (over {$ACTIVEMQ.MEM.MAX.HIGH:"{#JMXBROKERNAME}"}%)' + priority: HIGH + tags: + - tag: scope + value: performance + - uuid: 3e741e339fff422fae67b5333faa1e20 + expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ}, MemoryPercentUsage],{$ACTIVEMQ.MEM.TIME:"{#JMXBROKERNAME}"})>{$ACTIVEMQ.MEM.MAX.WARN:"{#JMXBROKERNAME}"}' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Memory usage is too high' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Memory usage is too high (over {$ACTIVEMQ.MEM.MAX.WARN:"{#JMXBROKERNAME}"}%)' + priority: AVERAGE + dependencies: + - name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Memory usage is too high' + expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ}, MemoryPercentUsage],{$ACTIVEMQ.MEM.TIME:"{#JMXBROKERNAME}"})>{$ACTIVEMQ.MEM.MAX.HIGH:"{#JMXBROKERNAME}"}' + tags: + - tag: scope + value: performance + - uuid: 78806476b5cb4ce48f8ca8dbd173c7c3 + name: 'Broker {#JMXBROKERNAME}: Storage limit' + type: JMX + key: 'jmx[{#JMXOBJ},StoreLimit]' + units: B + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Disk limit, in bytes, used for persistent messages before producers are blocked.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: storage + - uuid: fc4c79543a6f4b7b9c22f11b61b644c9 + name: 'Broker {#JMXBROKERNAME}: Storage usage in percents' + type: JMX + key: 'jmx[{#JMXOBJ},StorePercentUsage]' + units: '%' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Percent of store limit used.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: storage + trigger_prototypes: + - uuid: 2e1c9f92c87f446ebab68ac638c713c5 + expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},StorePercentUsage],{$ACTIVEMQ.STORE.TIME:"{#JMXBROKERNAME}"})>{$ACTIVEMQ.STORE.MAX.HIGH:"{#JMXBROKERNAME}"}' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Storage usage is too high' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Storage usage is too high (over {$ACTIVEMQ.STORE.MAX.HIGH:"{#JMXBROKERNAME}"}%)' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 271b33edce84439a91d6a253f45e5bf6 + expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},StorePercentUsage],{$ACTIVEMQ.STORE.TIME:"{#JMXBROKERNAME}"})>{$ACTIVEMQ.STORE.MAX.WARN:"{#JMXBROKERNAME}"}' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Storage usage is too high' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Storage usage is too high (over {$ACTIVEMQ.STORE.MAX.WARN:"{#JMXBROKERNAME}"}%)' + priority: AVERAGE + dependencies: + - name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Storage usage is too high' + expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},StorePercentUsage],{$ACTIVEMQ.STORE.TIME:"{#JMXBROKERNAME}"})>{$ACTIVEMQ.STORE.MAX.HIGH:"{#JMXBROKERNAME}"}' + tags: + - tag: scope + value: capacity + - uuid: 09db80ee80ea47189142130d35a8e1c2 + name: 'Broker {#JMXBROKERNAME}: Temp limit' + type: JMX + key: 'jmx[{#JMXOBJ},TempLimit]' + units: B + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Disk limit, in bytes, used for non-persistent messages and temporary data before producers are blocked.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: storage + - uuid: 95354144839e4d22a82c4e9a1fab83d9 + name: 'Broker {#JMXBROKERNAME}: Temp usage in percents' + type: JMX + key: 'jmx[{#JMXOBJ},TempPercentUsage]' + units: '%' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Percent of temp limit used.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: storage + trigger_prototypes: + - uuid: 422252a81e3e4261bbd7f331f48c6257 + expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},TempPercentUsage],{$ACTIVEMQ.TEMP.TIME:"{#JMXBROKERNAME}"})>{$ACTIVEMQ.TEMP.MAX.HIGH}' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Temp usage is too high' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Temp usage is too high (over {$ACTIVEMQ.TEMP.MAX.WARN:"{#JMXBROKERNAME}"}%)' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: acb8f6e0762f48c2bd4c03f2a55b2f44 + expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},TempPercentUsage],{$ACTIVEMQ.TEMP.TIME:"{#JMXBROKERNAME}"})>{$ACTIVEMQ.TEMP.MAX.WARN}' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Temp usage is too high' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Temp usage is too high (over {$ACTIVEMQ.TEMP.MAX.WARN:"{#JMXBROKERNAME}"}%)' + priority: AVERAGE + dependencies: + - name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Temp usage is too high' + expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},TempPercentUsage],{$ACTIVEMQ.TEMP.TIME:"{#JMXBROKERNAME}"})>{$ACTIVEMQ.TEMP.MAX.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 64ab04e456804e10a6c78c3190807506 + name: 'Broker {#JMXBROKERNAME}: Consumers count total' + type: JMX + key: 'jmx[{#JMXOBJ},TotalConsumerCount]' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Number of consumers attached to this broker.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + trigger_prototypes: + - uuid: 6906f0a1ef804da4a1203ca9d96ab8a0 + expression: 'max(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},TotalConsumerCount],{$ACTIVEMQ.BROKER.CONSUMERS.MIN.TIME:"{#JMXBROKERNAME}"})<{$ACTIVEMQ.BROKER.CONSUMERS.MIN.HIGH:"{#JMXBROKERNAME}"}' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Consumers count is too low' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Consumers count is too low (below {$ACTIVEMQ.BROKER.CONSUMERS.MIN.HIGH:"{#JMXBROKERNAME}"} for {$ACTIVEMQ.BROKER.CONSUMERS.MIN.TIME:"{#JMXBROKERNAME}"})' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 48bc7dab4a1a40d8a823e880018cf8e7 + name: 'Broker {#JMXBROKERNAME}: Messages dequeue rate' + type: JMX + key: 'jmx[{#JMXOBJ},TotalDequeueCount]' + units: messages/sec + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Rate of messages that have been delivered by the broker and acknowledged by consumers.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - uuid: a462499eecbd443e931a9aa831240f65 + name: 'Broker {#JMXBROKERNAME}: Messages enqueue rate' + type: JMX + key: 'jmx[{#JMXOBJ},TotalEnqueueCount]' + units: messages/sec + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Rate of messages that have been sent to the broker.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + trigger_prototypes: + - uuid: a3ab7bca031c45059418fa82a3c67369 + expression: 'avg(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},TotalEnqueueCount],{$ACTIVEMQ.MSG.RATE.WARN.TIME:"{#JMXBROKERNAME}"})>avg(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},TotalEnqueueCount],{$ACTIVEMQ.MSG.RATE.WARN.TIME:"{#JMXBROKERNAME}"})' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Message enqueue rate is higher than dequeue rate' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Message enqueue rate is higher than dequeue rate for {$ACTIVEMQ.MSG.RATE.WARN.TIME:"{#JMXBROKERNAME}"}' + priority: AVERAGE + description: 'Enqueue rate is higher than dequeue rate. It may indicate performance problems.' + tags: + - tag: scope + value: performance + - uuid: 2453d8221cec4e1ead6622c001ac9a8c + name: 'Broker {#JMXBROKERNAME}: Producers count total' + type: JMX + key: 'jmx[{#JMXOBJ},TotalProducerCount]' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Number of producers attached to this broker.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + trigger_prototypes: + - uuid: 2ee6ad72a98143b59d8d1136fffdbe50 + expression: 'max(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},TotalProducerCount],{$ACTIVEMQ.BROKER.PRODUCERS.MIN.TIME:"{#JMXBROKERNAME}"})<{$ACTIVEMQ.BROKER.PRODUCERS.MIN.HIGH:"{#JMXBROKERNAME}"}' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Producers count is too low' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Producers count is too low (below {$ACTIVEMQ.BROKER.PRODUCERS.MIN.HIGH:"{#JMXBROKERNAME}"} for {$ACTIVEMQ.BROKER.PRODUCERS.MIN.TIME:"{#JMXBROKERNAME}"})' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: a46d7281cb234ccaadacbb7d311cbd39 + name: 'Broker {#JMXBROKERNAME}: Uptime' + type: JMX + key: 'jmx[{#JMXOBJ},UptimeMillis]' + units: s + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'The uptime of the broker.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 6abb3813bb52465aa4a5f4bebfe999c3 + expression: 'last(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},UptimeMillis])<10m' + name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Broker has been restarted' + event_name: 'Apache ActiveMQ: Broker {#JMXBROKERNAME}: Broker has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 465b9319e0dc4728a2733c69521e9e81 + name: 'Broker {#JMXBROKERNAME}: Messages rate' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},TotalEnqueueCount]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},TotalDequeueCount]' + - uuid: 9cdb5b2bed724f45a305a8434d28c105 + name: 'Broker {#JMXBROKERNAME}: Producers and consumers' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},TotalProducerCount]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},TotalConsumerCount]' + - uuid: 6b018bbe9d154d2d865b7922eaa7ae28 + name: 'Broker {#JMXBROKERNAME}: Resources usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ}, MemoryPercentUsage]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},StorePercentUsage]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},TempPercentUsage]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: 14432547793d42d2b75c7b08fcbb3545 + name: 'Destinations discovery' + type: JMX + key: 'jmx.discovery[beans,"org.apache.activemq:type=Broker,brokerName=*,destinationType=*,destinationName=*"]' + delay: 1h + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + filter: + evaltype: FORMULA + formula: 'A and B' + conditions: + - macro: '{#JMXDESTINATIONNAME}' + value: '{$ACTIVEMQ.LLD.FILTER.DESTINATION.MATCHES}' + formulaid: A + - macro: '{#JMXDESTINATIONNAME}' + value: '{$ACTIVEMQ.LLD.FILTER.DESTINATION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of destinations' + item_prototypes: + - uuid: fd8129c9a66043d896a70c91c8b0d471 + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Consumers count total on {#JMXBROKERNAME}' + type: JMX + key: 'jmx["org.apache.activemq:type=Broker,brokerName={#JMXBROKERNAME}",{$ACTIVEMQ.TOTAL.CONSUMERS.COUNT: "{#JMXDESTINATIONNAME}"}]' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Number of consumers attached to the broker of this destination. Used to suppress destination''s triggers when the count of consumers on the broker is lower than threshold.' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '{$ACTIVEMQ.BROKER.CONSUMERS.MIN.HIGH}' + error_handler: CUSTOM_VALUE + error_handler_params: '{$ACTIVEMQ.BROKER.CONSUMERS.MIN.HIGH}' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: destination + - uuid: 99f2094b02f848e785e40296958c5450 + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Producers count total on {#JMXBROKERNAME}' + type: JMX + key: 'jmx["org.apache.activemq:type=Broker,brokerName={#JMXBROKERNAME}",{$ACTIVEMQ.TOTAL.PRODUCERS.COUNT: "{#JMXDESTINATIONNAME}"}]' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Number of producers attached to the broker of this destination. Used to suppress destination''s triggers when the count of producers on the broker is lower than threshold.' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '{$ACTIVEMQ.BROKER.PRODUCERS.MIN.HIGH}' + error_handler: CUSTOM_VALUE + error_handler_params: '{$ACTIVEMQ.BROKER.PRODUCERS.MIN.HIGH}' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: destination + - uuid: 5e93e53a0c2d49a49d421ded87b6b1f8 + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Consumers count' + type: JMX + key: 'jmx[{#JMXOBJ},ConsumerCount]' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Number of consumers attached to this destination.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: destination + - uuid: 3536ec77069a434e854415f0a3270e67 + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Messages dequeue rate' + type: JMX + key: 'jmx[{#JMXOBJ},DequeueCount]' + units: messages/sec + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Rate of messages that has been acknowledged (and removed) from the destination.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: destination + - uuid: a6dacc8c4d1f4724bf49c63449992035 + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Messages enqueue rate' + type: JMX + key: 'jmx[{#JMXOBJ},EnqueueCount]' + units: messages/sec + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Rate of messages that have been sent to the destination.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: destination + - uuid: 1c4ea913a9564d74b31ef82314203a15 + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Expired messages count' + type: JMX + key: 'jmx[{#JMXOBJ},ExpiredCount]' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Number of messages that have been expired.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: destination + trigger_prototypes: + - uuid: a498405c5b764c1ea9f0e151adf94ed7 + expression: 'last(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},ExpiredCount])>{$ACTIVEMQ.EXPIRED.WARN:"{#JMXDESTINATIONNAME}"}' + name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Expired messages count is high' + event_name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Expired messages count higher than {$ACTIVEMQ.EXPIRED.WARN:"{#JMXDESTINATIONNAME}"}' + priority: AVERAGE + description: 'This metric represents the number of messages that expired before they could be delivered. If you expect all messages to be delivered and acknowledged within a certain amount of time, you can set an expiration for each message, and investigate if your ExpiredCount metric rises above zero.' + tags: + - tag: scope + value: performance + - uuid: 158fac5a1b3c4f07a4004a733f9b6995 + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Memory usage in percents' + type: JMX + key: 'jmx[{#JMXOBJ},MemoryPercentUsage]' + units: '%' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'The percentage of the memory limit used.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 197ab32730a84f79ba1b1e827a10e175 + expression: 'last(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},MemoryPercentUsage])>{$ACTIVEMQ.MEM.MAX.HIGH:"{#JMXDESTINATIONNAME}"}' + name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Memory usage is too high' + event_name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Memory usage is too high (over {$ACTIVEMQ.MEM.MAX.HIGH:"{#JMXDESTINATIONNAME}"}%)' + priority: HIGH + tags: + - tag: scope + value: performance + - uuid: 1e4e3a969b434c6d972251f8c9b3f2a7 + expression: 'last(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},MemoryPercentUsage])>{$ACTIVEMQ.MEM.MAX.WARN:"{#JMXDESTINATIONNAME}"}' + name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Memory usage is too high' + event_name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Memory usage is too high (over {$ACTIVEMQ.MEM.MAX.WARN:"{#JMXDESTINATIONNAME}"}%)' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: 82ee74872f6e46efbf16ae0705bcf2a6 + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Producers count' + type: JMX + key: 'jmx[{#JMXOBJ},ProducerCount]' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Number of producers attached to this destination.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: destination + - uuid: fdc1e26fbe6545d3bdfc86f6f8c91b8b + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Queue size' + type: JMX + key: 'jmx[{#JMXOBJ},QueueSize]' + username: '{$ACTIVEMQ.USER}' + password: '{$ACTIVEMQ.PASSWORD}' + description: 'Number of messages on this destination, including any that have been dispatched but not acknowledged.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: destination + trigger_prototypes: + - uuid: f1c49943152c407088e3bf288b650b41 + expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},QueueSize],{$ACTIVEMQ.QUEUE.TIME:"{#JMXDESTINATIONNAME}"})>{$ACTIVEMQ.QUEUE.WARN:"{#JMXDESTINATIONNAME}"} and {$ACTIVEMQ.QUEUE.ENABLED:"{#JMXDESTINATIONNAME}"}=1' + name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Queue size is high' + event_name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Queue size higher than {$ACTIVEMQ.QUEUE.WARN:"{#JMXDESTINATIONNAME}"} for {$ACTIVEMQ.QUEUE.TIME:"{#JMXDESTINATIONNAME}"}' + priority: AVERAGE + description: 'Queue size is higher than threshold. It may indicate performance problems.' + tags: + - tag: scope + value: performance + trigger_prototypes: + - uuid: c366d4b329c0471386566d6795c5787f + expression: 'max(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},ConsumerCount],{$ACTIVEMQ.DESTINATION.CONSUMERS.MIN.TIME:"{#JMXDESTINATIONNAME}"})<{$ACTIVEMQ.DESTINATION.CONSUMERS.MIN.HIGH:"{#JMXDESTINATIONNAME}"} and last(/Apache ActiveMQ by JMX/jmx["org.apache.activemq:type=Broker,brokerName={#JMXBROKERNAME}",{$ACTIVEMQ.TOTAL.CONSUMERS.COUNT: "{#JMXDESTINATIONNAME}"}])>{$ACTIVEMQ.BROKER.CONSUMERS.MIN.HIGH:"{#JMXBROKERNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},ConsumerCount],{$ACTIVEMQ.DESTINATION.CONSUMERS.MIN.TIME:"{#JMXDESTINATIONNAME}"})>={$ACTIVEMQ.DESTINATION.CONSUMERS.MIN.HIGH:"{#JMXDESTINATIONNAME}"}' + name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Consumers count is too low' + event_name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Consumers count is too low (below {$ACTIVEMQ.DESTINATION.CONSUMERS.MIN.HIGH:"{#JMXDESTINATIONNAME}"} for {$ACTIVEMQ.DESTINATION.CONSUMERS.MIN.TIME:"{#JMXDESTINATIONNAME}"})' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 344a0b83a5444d009aa56e97c1c0171b + expression: 'avg(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},EnqueueCount],{$ACTIVEMQ.MSG.RATE.WARN.TIME:"{#JMXDESTINATIONNAME}"})>avg(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},DequeueCount],{$ACTIVEMQ.MSG.RATE.WARN.TIME:"{#JMXDESTINATIONNAME}"})' + name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Message enqueue rate is higher than dequeue rate' + event_name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Message enqueue rate is higher than dequeue rate for {$ACTIVEMQ.MSG.RATE.WARN.TIME:"{#JMXDESTINATIONNAME}"}' + priority: AVERAGE + description: 'Enqueue rate is higher than dequeue rate. It may indicate performance problems.' + tags: + - tag: scope + value: notice + - uuid: 725d0270554e4fe59d138becfa3e6377 + expression: 'max(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},ProducerCount],{$ACTIVEMQ.DESTINATION.PRODUCERS.MIN.TIME:"{#JMXDESTINATIONNAME}"})<{$ACTIVEMQ.DESTINATION.PRODUCERS.MIN.HIGH:"{#JMXDESTINATIONNAME}"} and last(/Apache ActiveMQ by JMX/jmx["org.apache.activemq:type=Broker,brokerName={#JMXBROKERNAME}",{$ACTIVEMQ.TOTAL.PRODUCERS.COUNT: "{#JMXDESTINATIONNAME}"}])>{$ACTIVEMQ.BROKER.PRODUCERS.MIN.HIGH:"{#JMXBROKERNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Apache ActiveMQ by JMX/jmx[{#JMXOBJ},ProducerCount],{$ACTIVEMQ.DESTINATION.PRODUCERS.MIN.TIME:"{#JMXDESTINATIONNAME}"})>={$ACTIVEMQ.DESTINATION.PRODUCERS.MIN.HIGH:"{#JMXDESTINATIONNAME}"}' + name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Producers count is too low' + event_name: 'Apache ActiveMQ: {#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Producers count is too low (below {$ACTIVEMQ.DESTINATION.PRODUCERS.MIN.HIGH:"{#JMXDESTINATIONNAME}"} for {$ACTIVEMQ.DESTINATION.PRODUCERS.MIN.TIME:"{#JMXDESTINATIONNAME}"})' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 006f397fbb664f9981b9228808870239 + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Memory usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},MemoryPercentUsage]' + - uuid: 1c9a999ec2b94942ad10f408b470b1a2 + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Messages rate' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},EnqueueCount]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},DequeueCount]' + - uuid: 0854230a67bc4d29b3b3dc2cb7eeaefa + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Producers and consumers' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},ProducerCount]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Apache ActiveMQ by JMX' + key: 'jmx[{#JMXOBJ},ConsumerCount]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: class + value: application + - tag: target + value: apache-activemq + macros: + - macro: '{$ACTIVEMQ.BROKER.CONSUMERS.MIN.HIGH}' + value: '1' + description: 'Minimum amount of consumers for broker. Can be used with broker name as context.' + - macro: '{$ACTIVEMQ.BROKER.CONSUMERS.MIN.TIME}' + value: 5m + description: 'Time during which there may be no consumers on destination. Can be used with broker name as context.' + - macro: '{$ACTIVEMQ.BROKER.PRODUCERS.MIN.HIGH}' + value: '1' + description: 'Minimum amount of producers for broker. Can be used with broker name as context.' + - macro: '{$ACTIVEMQ.BROKER.PRODUCERS.MIN.TIME}' + value: 5m + description: 'Time during which there may be no producers on broker. Can be used with broker name as context.' + - macro: '{$ACTIVEMQ.DESTINATION.CONSUMERS.MIN.HIGH}' + value: '1' + description: 'Minimum amount of consumers for destination. Can be used with destination name as context.' + - macro: '{$ACTIVEMQ.DESTINATION.CONSUMERS.MIN.TIME}' + value: 10m + description: 'Time during which there may be no consumers in destination. Can be used with destination name as context.' + - macro: '{$ACTIVEMQ.DESTINATION.PRODUCERS.MIN.HIGH}' + value: '1' + description: 'Minimum amount of producers for destination. Can be used with destination name as context.' + - macro: '{$ACTIVEMQ.DESTINATION.PRODUCERS.MIN.TIME}' + value: 10m + description: 'Time during which there may be no producers on destination. Can be used with destination name as context.' + - macro: '{$ACTIVEMQ.EXPIRED.WARN}' + value: '0' + description: 'Threshold for expired messages count. Can be used with destination name as context.' + - macro: '{$ACTIVEMQ.LLD.FILTER.BROKER.MATCHES}' + value: '.*' + description: 'Filter of discoverable discovered brokers' + - macro: '{$ACTIVEMQ.LLD.FILTER.BROKER.NOT_MATCHES}' + value: 'CHANGE IF NEEDED' + description: 'Filter to exclude discovered brokers' + - macro: '{$ACTIVEMQ.LLD.FILTER.DESTINATION.MATCHES}' + value: '.*' + description: 'Filter of discoverable discovered destinations' + - macro: '{$ACTIVEMQ.LLD.FILTER.DESTINATION.NOT_MATCHES}' + value: 'CHANGE IF NEEDED' + description: 'Filter to exclude discovered destinations' + - macro: '{$ACTIVEMQ.MEM.MAX.HIGH}' + value: '90' + description: 'Memory threshold for HIGH trigger. Can be used with destination or broker name as context.' + - macro: '{$ACTIVEMQ.MEM.MAX.WARN}' + value: '75' + description: 'Memory threshold for AVERAGE trigger. Can be used with destination or broker name as context.' + - macro: '{$ACTIVEMQ.MEM.TIME}' + value: 5m + description: 'Time during which the metric can be above the threshold. Can be used with destination or broker name as context.' + - macro: '{$ACTIVEMQ.MSG.RATE.WARN.TIME}' + value: 15m + description: 'The time for message enqueue/dequeue rate. Can be used with destination or broker name as context.' + - macro: '{$ACTIVEMQ.PASSWORD}' + value: activemq + description: 'Password for JMX' + - macro: '{$ACTIVEMQ.PORT}' + value: '1099' + description: 'Port for JMX' + - macro: '{$ACTIVEMQ.QUEUE.ENABLED}' + value: '1' + description: 'Use this to disable alerting for specific destination. 1 = enabled, 0 = disabled. Can be used with destination name as context.' + - macro: '{$ACTIVEMQ.QUEUE.TIME}' + value: 10m + description: 'Time during which the QueueSize can be higher than threshold. Can be used with destination name as context.' + - macro: '{$ACTIVEMQ.QUEUE.WARN}' + value: '100' + description: 'Threshold for QueueSize. Can be used with destination name as context.' + - macro: '{$ACTIVEMQ.STORE.MAX.HIGH}' + value: '90' + description: 'Storage threshold for HIGH trigger. Can be used with broker name as context.' + - macro: '{$ACTIVEMQ.STORE.MAX.WARN}' + value: '75' + description: 'Storage threshold for AVERAGE trigger. Can be used with broker name as context.' + - macro: '{$ACTIVEMQ.STORE.TIME}' + value: 5m + description: 'Time during which the metric can be above the threshold. Can be used with destination or broker name as context.' + - macro: '{$ACTIVEMQ.TEMP.MAX.HIGH}' + value: '90' + description: 'Temp threshold for HIGH trigger. Can be used with broker name as context.' + - macro: '{$ACTIVEMQ.TEMP.MAX.WARN}' + value: '75' + description: 'Temp threshold for AVERAGE trigger. Can be used with broker name as context.' + - macro: '{$ACTIVEMQ.TEMP.TIME}' + value: 5m + description: 'Time during which the metric can be above the threshold. Can be used with destination or broker name as context.' + - macro: '{$ACTIVEMQ.TOTAL.CONSUMERS.COUNT}' + value: TotalConsumerCount + description: 'Attribute for TotalConsumerCount per destination. Used to suppress destination''s triggers when the count of consumers on the broker is lower than threshold.' + - macro: '{$ACTIVEMQ.TOTAL.PRODUCERS.COUNT}' + value: TotalProducerCount + description: 'Attribute for TotalProducerCount per destination. Used to suppress destination''s triggers when the count of consumers on the broker is lower than threshold.' + - macro: '{$ACTIVEMQ.USER}' + value: admin + description: 'User for JMX' + dashboards: + - uuid: 292193a9f5fc4a40a78aa304a6ceb536 + name: 'Apache ActiveMQ: Overview' + pages: + - name: General + widgets: + - type: graphprototype + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Apache ActiveMQ by JMX' + name: '{#JMXBROKERNAME}: {#JMXDESTINATIONTYPE} {#JMXDESTINATIONNAME}: Memory usage' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '3' + - type: graphprototype + x: '36' + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Apache ActiveMQ by JMX' + name: 'Broker {#JMXBROKERNAME}: Resources usage' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: rows + value: '3' diff --git a/Apache_Cassandra_by_JMX.yaml b/Apache_Cassandra_by_JMX.yaml new file mode 100644 index 0000000..adc3aff --- /dev/null +++ b/Apache_Cassandra_by_JMX.yaml @@ -0,0 +1,1839 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 5c42de26643c4b43b23a11159df021ce + template: 'Apache Cassandra by JMX' + name: 'Apache Cassandra by JMX' + description: | + The template to monitor Apache Cassandra by Zabbix that work without any external scripts. + It works with both standalone and cluster instances. + The metrics are collected by JMX. + You can set {$CASSANDRA.USER} and {$CASSANDRA.PASSWORD} macros in the template for using on the host level. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/410057-discussion-thread-for-official-zabbix-template-apache-cassandra + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Databases + items: + - uuid: 147ba5946b994324b1f6d88a8d3b6541 + name: 'Cluster - Name' + type: JMX + key: 'jmx["org.apache.cassandra.db:type=StorageService","ClusterName"]' + value_type: CHAR + trends: '0' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cluster + - uuid: 1bd80c1ce70045cbadf60ee06a09a989 + name: Version + type: JMX + key: 'jmx["org.apache.cassandra.db:type=StorageService","ReleaseVersion"]' + value_type: CHAR + trends: '0' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + triggers: + - uuid: 855abdc321c74b6baf672c67f6483c1c + expression: 'last(/Apache Cassandra by JMX/jmx["org.apache.cassandra.db:type=StorageService","ReleaseVersion"],#1)<>last(/Apache Cassandra by JMX/jmx["org.apache.cassandra.db:type=StorageService","ReleaseVersion"],#2) and length(last(/Apache Cassandra by JMX/jmx["org.apache.cassandra.db:type=StorageService","ReleaseVersion"]))>0' + name: 'Apache Cassandra: Version has changed' + event_name: 'Apache Cassandra: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Cassandra version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b202aa02d0b74e8da321a2a19fe33880 + name: 'Compaction - Number of completed tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:name=CompletedTasks,type=Compaction","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of completed compactions since server [re]start.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: compactions + - uuid: 7176e7e8241648d1b7e81a0b4d2d329c + name: 'Commitlog - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:name=PendingTasks,type=CommitLog","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of commit log messages written but yet to be fsync''d.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: commitlog + - uuid: 6e4ad2b5249c465894b87006a38b9542 + name: 'Latency - Read median' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:name=ReadLatency,type=Table","50thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Latency read from disk in milliseconds - median.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: disk + - uuid: a8b0499f15a74102b6ca486dee07e99b + name: 'Latency - Read 75 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:name=ReadLatency,type=Table","75thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Latency read from disk in milliseconds - p75.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: disk + - uuid: 5e3a95a9119149889365691d932b8407 + name: 'Latency - Read 95 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:name=ReadLatency,type=Table","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Latency read from disk in milliseconds - p95.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: disk + - uuid: 70eebcf7274942eeae0a80911b7c9095 + name: 'Commitlog - Total size' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:name=TotalCommitLogSize,type=CommitLog","Value"]' + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Current size, in bytes, used by all the commit log segments.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: commitlog + - uuid: 24e44d0bf8254131a032406ffad86732 + name: 'Compaction - Total compactions completed' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:name=TotalCompactionsCompleted,type=Compaction","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Throughput of completed compactions since server [re]start.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: compactions + - uuid: 31ccd8b50bcb412893e91accb853d755 + name: 'Latency - Write median' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:name=WriteLatency,type=Table","50thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Latency write to disk in milliseconds - median.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: disk + - uuid: 8f0aa624a54d45f5b6c8ead24694fc58 + name: 'Latency - Write 75 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:name=WriteLatency,type=Table","75thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Latency write to disk in milliseconds - p75.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: disk + - uuid: cc084d0142a94262b585d6b4a7b06468 + name: 'Latency - Write 95 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:name=WriteLatency,type=Table","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Latency write to disk in milliseconds - p95.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: disk + - uuid: 934eb483047649449bfa221e3cc610d3 + name: 'KeyCache - Capacity' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Capacity","Value"]' + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Cache capacity in bytes.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: c4f8435dfef0426682781711addbf075 + name: 'KeyCache - Entries' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Entries","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Total number of cache entries.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: b3351f07502d4cb8a16d4fa730a72a6a + name: 'KeyCache - HitRate' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=HitRate","Value"]' + value_type: FLOAT + units: '%' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'All time cache hit rate.' + preprocessing: + - type: MULTIPLIER + parameters: + - '100' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: 3980ae66ea1b415baa24078d26ebeaee + name: 'KeyCache - Hits per second' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Hits","Count"]' + value_type: FLOAT + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Rate of cache hits.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: 6f6980f9267b4bef93e3a37153ef2184 + name: 'KeyCache - requests per second' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Requests","Count"]' + value_type: FLOAT + units: rps + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Rate of cache requests.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: f8fed6058d4b45a7afcaf5a057622c19 + name: 'KeyCache - Size' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Size","Value"]' + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Total size of occupied cache, in bytes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: 574ff464fe6b43cfb1d07e4ad1383c33 + name: 'Client connections - Native' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Client,name=connectedNativeClients","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of clients connected to this nodes native protocol server.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: connections + - uuid: 15d5bd0e534246a7922f8dbcc2a96a21 + name: 'Client connections - Trifts' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Client,name=connectedThriftClients","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of connected to this nodes thrift clients.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: connections + - uuid: 6c1cf4b7835d4c66ac1e42840199594c + name: 'Latency - Client request read median' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Read,name=Latency","50thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Total latency serving data to clients in milliseconds - median.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: requests + - uuid: c0606810baad4e438f6d69508cf11581 + name: 'Latency - Client request read 75 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Read,name=Latency","75thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Total latency serving data to clients in milliseconds - p75.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: requests + - uuid: 4ed583b0546c4897b9ff423e36097046 + name: 'Latency - Client request read 95 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Read,name=Latency","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Total latency serving data to clients in milliseconds - p95.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: requests + - uuid: 4f68953ebaca4d089a11c78e04c9170f + name: 'Client request - Read per second' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Read,name=Latency","Count"]' + value_type: FLOAT + units: rps + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of client requests per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: requests + - uuid: 72cdc0188682483d8c1d837f2c9c475b + name: 'Latency - Client request write median' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Write,name=Latency","50thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Total latency serving write requests from clients in milliseconds - median.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: requests + - uuid: a63545e0bf8d4c87818fe719c299b508 + name: 'Latency - Client request write 75 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Write,name=Latency","75thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Total latency serving write requests from clients in milliseconds - p75.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: requests + - uuid: 955f1f2615a14694bb20eedd07963ada + name: 'Latency - Client request write 95 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Write,name=Latency","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Total latency serving write requests from clients in milliseconds - p95.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: requests + - uuid: d914d6cd66ad48d09197a30819a386f9 + name: 'Client request - Write per second' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Write,name=Latency","Count"]' + value_type: FLOAT + units: rps + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of local write requests per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: requests + - uuid: 30b3ba5b576045dabda9b3a0914a1dc6 + name: 'Client request - Write Timeouts' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Write,name=Timeouts","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of write requests timeouts encountered.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: requests + - uuid: e55942a9ef3c41e8993e8c8d849ff026 + name: 'Compaction - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Compaction,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Estimated number of compactions remaining to perform.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: compactions + triggers: + - uuid: 885035b2fc804615a54bf2eaca19beee + expression: 'min(/Apache Cassandra by JMX/jmx["org.apache.cassandra.metrics:type=Compaction,name=PendingTasks","Value"],15m)>{$CASSANDRA.PENDING_TASKS.MAX.WARN}' + name: 'Apache Cassandra: Many pending tasks' + event_name: 'Apache Cassandra: Many pending tasks (over {$CASSANDRA.PENDING_TASKS.MAX.WARN} for 15m)' + priority: WARNING + dependencies: + - name: 'Apache Cassandra: Too many pending tasks' + expression: 'min(/Apache Cassandra by JMX/jmx["org.apache.cassandra.metrics:type=Compaction,name=PendingTasks","Value"],15m)>{$CASSANDRA.PENDING_TASKS.MAX.HIGH}' + tags: + - tag: scope + value: performance + - uuid: f6696c41e9d24144a1a95f74c94728ae + expression: 'min(/Apache Cassandra by JMX/jmx["org.apache.cassandra.metrics:type=Compaction,name=PendingTasks","Value"],15m)>{$CASSANDRA.PENDING_TASKS.MAX.HIGH}' + name: 'Apache Cassandra: Too many pending tasks' + event_name: 'Apache Cassandra: Too many pending tasks (over {$CASSANDRA.PENDING_TASKS.MAX.HIGH} for 15m)' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: f4686c81fe1b42c2bbe049ec421b4533 + name: 'Dropped messages - Write (Mutation)' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=DroppedMessage,scope=MUTATION,name=Dropped","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of dropped regular writes messages.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: messages + - uuid: 2001c9fa67bc4ec4b693d289edc38cfa + name: 'Dropped messages - Read' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=DroppedMessage,scope=READ,name=Dropped","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of dropped regular reads messages.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: messages + - uuid: b15aa6f290d14fd1bee094325c444e8b + name: 'Storage - Errors' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Storage,name=Exceptions","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of internal exceptions caught. Under normal exceptions this should be zero.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: storage + triggers: + - uuid: c7980b33dc794a70a116bd12219f66c3 + expression: 'min(/Apache Cassandra by JMX/jmx["org.apache.cassandra.metrics:type=Storage,name=Exceptions","Count"],5m)>0' + name: 'Apache Cassandra: Too many storage exceptions' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 31fabd5575074957946328b0257568c6 + name: 'Storage - Used (bytes)' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Storage,name=Load","Count"]' + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Size, in bytes, of the on disk data size this node manages.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: storage + triggers: + - uuid: bda8e216175044ed829670b6bd272785 + expression: 'nodata(/Apache Cassandra by JMX/jmx["org.apache.cassandra.metrics:type=Storage,name=Load","Count"],15m)=1' + name: 'Apache Cassandra: Failed to fetch info data' + event_name: 'Apache Cassandra: Failed to fetch info data (or no data for 15m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 15 minutes' + tags: + - tag: scope + value: availability + - uuid: 3e0332f3770046b5b3ba4216111f3b3f + name: 'Storage - Hints' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Storage,name=TotalHints","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of hint messages written to this node since [re]start. Includes one entry for each host to be hinted per hint.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: storage + - uuid: 6c9721f341904c5abb4d4a4637f6c80c + name: 'Thread pool HintsDispatcher - Currently blocked task' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=HintsDispatcher,name=CurrentlyBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that are currently blocked due to queue saturation but on retry will become unblocked. + HintsDispatcher: Performs hinted handoff. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 0efbb0ab0e3244428f5e5917fa73437c + name: 'Thread pool HintsDispatcher - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=HintsDispatcher,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of queued tasks queued up on this pool. + HintsDispatcher: Performs hinted handoff. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 4eb4e405cc564c9c8a694f085b1905dd + name: 'Thread pool HintsDispatcher - Total blocked tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=HintsDispatcher,name=TotalBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that were blocked due to queue saturation. + HintsDispatcher: Performs hinted handoff. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 7fd397d3d09a494fb0032d97c93dc462 + name: 'Thread pool MemtableFlushWriter - Currently blocked task' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MemtableFlushWriter,name=CurrentlyBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that are currently blocked due to queue saturation but on retry will become unblocked. + MemtableFlushWriter: Writes memtables to disk. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: c0eaf8af68114b0eb1f16e7cb456a442 + name: 'Thread pool MemtableFlushWriter - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MemtableFlushWriter,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of queued tasks queued up on this pool. + MemtableFlushWriter: Writes memtables to disk. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 3e402261b410467cb177b3c02dd237f3 + name: 'Thread pool MemtableFlushWriter - Total blocked tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MemtableFlushWriter,name=TotalBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that were blocked due to queue saturation. + MemtableFlushWriter: Writes memtables to disk. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 868e8d31c8424607a7f0aafd4eff46cf + name: 'Thread pool MemtablePostFlush - Currently blocked task' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MemtablePostFlush,name=CurrentlyBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that are currently blocked due to queue saturation but on retry will become unblocked. + MemtablePostFlush: Cleans up commit log after memtable is written to disk. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 9ddfd1f388ed4c3a9e81558e626f9525 + name: 'Thread pool MemtablePostFlush - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MemtablePostFlush,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of queued tasks queued up on this pool. + MemtablePostFlush: Cleans up commit log after memtable is written to disk. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: e00f5f7ac9904ea4981c44a506005d62 + name: 'Thread pool MemtablePostFlush - Total blocked tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MemtablePostFlush,name=TotalBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that were blocked due to queue saturation. + MemtablePostFlush: Cleans up commit log after memtable is written to disk. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 480f3d158c764cd3877e0b04189eb60c + name: 'Thread pool MigrationStage - Currently blocked task' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MigrationStage,name=CurrentlyBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that are currently blocked due to queue saturation but on retry will become unblocked. + MigrationStage: Runs schema migrations. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: f9b504b8b9f34f70a15691a16ee69e39 + name: 'Thread pool MigrationStage - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MigrationStage,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of queued tasks queued up on this pool. + MigrationStage: Runs schema migrations. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 79bc07acfef846768a036243efd3d954 + name: 'Thread pool MigrationStage - Total blocked tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MigrationStage,name=TotalBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that were blocked due to queue saturation. + MigrationStage: Runs schema migrations. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 94360cbf59cc4978ab64872f9d0a9100 + name: 'Thread pool MiscStage - Currently blocked task' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MiscStage,name=CurrentlyBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that are currently blocked due to queue saturation but on retry will become unblocked. + MiscStage: Miscellaneous tasks run here. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 0a0ee6e0a2de4da5acfa715959dbae9f + name: 'Thread pool MiscStage - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MiscStage,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of queued tasks queued up on this pool. + MiscStage: Miscellaneous tasks run here. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 807494ed64b54f9a95961fa7031e7d7f + name: 'Thread pool MiscStage - Total blocked tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=MiscStage,name=TotalBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that were blocked due to queue saturation. + MiscStage: Miscellaneous tasks run here. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 18b83c6b48164e1f9b8f9ae6058da276 + name: 'Thread pool SecondaryIndexManagement - Currently blocked task' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=SecondaryIndexManagement,name=CurrentlyBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that are currently blocked due to queue saturation but on retry will become unblocked. + SecondaryIndexManagement: Performs updates to secondary indexes. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 622728098a35433bb00b7ab1614665bc + name: 'Thread pool SecondaryIndexManagement - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=SecondaryIndexManagement,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of queued tasks queued up on this pool. + SecondaryIndexManagement: Performs updates to secondary indexes. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 0dbd7303e9a64bc581ef8c6619876d2b + name: 'Thread pool SecondaryIndexManagement - Total blocked tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=internal,scope=SecondaryIndexManagement,name=TotalBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that were blocked due to queue saturation. + SecondaryIndexManagement: Performs updates to secondary indexes. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 1ff2b0f1c6a04cfca0d40a68c5a39476 + name: 'Thread pool CounterMutationStage - Currently blocked task' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=CounterMutationStage,name=CurrentlyBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that are currently blocked due to queue saturation but on retry will become unblocked. + CounterMutationStage: Responsible for counter writes. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: b0cc87b96d0e4f3c8ff2023665d90379 + name: 'Thread pool CounterMutationStage - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=CounterMutationStage,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of queued tasks queued up on this pool. + CounterMutationStage: Responsible for counter writes. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: ab2b8d88ecf54b028b88cd757581a419 + name: 'Thread pool CounterMutationStage - Total blocked tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=CounterMutationStage,name=TotalBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that were blocked due to queue saturation. + CounterMutationStage: Responsible for counter writes. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: ef7d71b026ec4e948acf8d7469b21ee2 + name: 'Thread pool MutationStage - Currently blocked task' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=MutationStage,name=CurrentlyBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that are currently blocked due to queue saturation but on retry will become unblocked. + MutationStage: Responsible for writes (exclude materialized and counter writes). + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: b2eb10fe498847c88b395013e4fb516c + name: 'Thread pool.MutationStage - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=MutationStage,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of queued tasks queued up on this pool. + MutationStage: Responsible for writes (exclude materialized and counter writes). + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: c6e48ac0ece74e31803dd72310306330 + name: 'Thread pool MutationStage - Total blocked tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=MutationStage,name=TotalBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that were blocked due to queue saturation. + MutationStage: Responsible for writes (exclude materialized and counter writes). + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: e588e58881b74123bfa6f2d5d948da93 + name: 'Thread pool ReadStage - Currently blocked task' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=ReadStage,name=CurrentlyBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that are currently blocked due to queue saturation but on retry will become unblocked. + ReadStage: Local reads run on this thread pool. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 2770bde0ee834ddebcd773e265fa0aef + name: 'Thread pool ReadStage - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=ReadStage,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of queued tasks queued up on this pool. + ReadStage: Local reads run on this thread pool. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 9d9b20c6994c40849048cb5d0fe407ad + name: 'Thread pool ReadStage - Total blocked tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=ReadStage,name=TotalBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that were blocked due to queue saturation. + ReadStage: Local reads run on this thread pool. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 49df0b39c6a944d5ab96a946b233c380 + name: 'Thread pool ViewMutationStage - Currently blocked task' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=ViewMutationStage,name=CurrentlyBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that are currently blocked due to queue saturation but on retry will become unblocked. + ViewMutationStage: Responsible for materialized view writes. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 967065e24d2c44be96687cd829ea928c + name: 'Thread pool ViewMutationStage - Pending tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=ViewMutationStage,name=PendingTasks","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of queued tasks queued up on this pool. + ViewMutationStage: Responsible for materialized view writes. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: 5e6719076bbd46f78d3fb9b625a0cdda + name: 'Thread pool ViewMutationStage - Total blocked tasks' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=ViewMutationStage,name=TotalBlockedTasks","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: | + Number of tasks that were blocked due to queue saturation. + ViewMutationStage: Responsible for materialized view writes. + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pools + - uuid: f131a5faad964307aa860e3932ba781d + name: 'Cluster - Nodes down' + type: JMX + key: 'jmx["org.apache.cassandra.net:type=FailureDetector","DownEndpointCount"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cluster + triggers: + - uuid: 42b527f9cf4e444b82575f2ab48926c0 + expression: 'last(/Apache Cassandra by JMX/jmx["org.apache.cassandra.net:type=FailureDetector","DownEndpointCount"])>0' + name: 'Apache Cassandra: There are down nodes in cluster' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: fb35aef03e254d98a3d29e8180a1a5a5 + name: 'Cluster - Nodes up' + type: JMX + key: 'jmx["org.apache.cassandra.net:type=FailureDetector","UpEndpointCount"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cluster + discovery_rules: + - uuid: 504e40d04a024249bfd4ac67891f8a21 + name: Tables + type: JMX + key: 'jmx.discovery[beans,"org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"]' + delay: 1h + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXKEYSPACE}' + value: '{$CASSANDRA.KEY_SPACE.MATCHES}' + formulaid: A + - macro: '{#JMXKEYSPACE}' + value: '{$CASSANDRA.KEY_SPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Info about keyspaces and tables' + item_prototypes: + - uuid: 22c24ee8cfd34623b137c6cad5a2299d + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Bloom filter false ratio' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=BloomFilterFalseRatio","Value"]' + value_type: FLOAT + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The ratio of Bloom filter false positives to total checks.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 417a27c1779a4d08b5673320b1542ad8 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Bytes flushed' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=BytesFlushed","Count"]' + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The amount of data that was flushed since (re)start.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: b6623ca2ba0c4dd9ad2be5fa263896f5 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Col update time delta75 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=ColUpdateTimeDeltaHistogram","75thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The column update time delta - p75.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 685e1bbe10044d9d9ae2b02357ba2934 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Col update time delta 95 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=ColUpdateTimeDeltaHistogram","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The column update time delta - p95.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 71b3b14f8ce7414786fa0bcd471e8842 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Compaction bytes written' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=CompactionBytesWritten","Count"]' + value_type: FLOAT + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The amount of data that was compacted since (re)start.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 9721c8cd9d0f415d9d5ddfeb417cee01 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Compression ratio' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=CompressionRatio","Value"]' + value_type: FLOAT + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The compression ratio for all SSTables.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: b43134f2d2a043f2a61919467619efe2 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: KeyCache hit rate' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=KeyCacheHitRate","Value"]' + value_type: FLOAT + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The key cache hit rate.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: b69ac0bb285a4e8fa82a98f4de2645d2 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Live disk space used' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=LiveDiskSpaceUsed","Count"]' + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The disk space used by "live" SSTables (only counts in use files).' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: bf733ba7ab2045d38a88c6f0650ba1f2 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Live SS Table' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=LiveSSTableCount","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of "live" (in use) SSTables.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: c447d219390a48f2bbbe0d19211472c8 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Max partition size' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=MaxPartitionSize","Value"]' + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The size of the largest compacted partition.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: bdf111fbca884f49a6cda263b8b07feb + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Mean partition size' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=MeanPartitionSize","Value"]' + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The average size of compacted partition.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 1f44ed6c453d44fc811ae310701df4bf + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Pending compactions' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=PendingCompactions","Value"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of pending compactions.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 7e287e5459644536b9420263b4096dd1 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Pending flushes' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=PendingFlushes","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of pending flushes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 1d240e1fe4b245b0b1b2b30d42e5077e + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Read latency 75 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=ReadLatency","75thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Latency read from disk in milliseconds.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 38d31a8a16f04c39a64ee36940ae7eb8 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Read latency 95 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=ReadLatency","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Latency read from disk in milliseconds.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: fdec15a1f86b4943bbd72fb992dfce90 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Read per second' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=ReadLatency","Count"]' + value_type: FLOAT + units: rps + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of client requests per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: a73d2b8f38184698a3ab7a4bb3742b4a + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Row cache hits' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=RowCacheHit","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of row cache hits.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 213ecd18728a40ffbdbeac07daf0e26f + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Out of row cache hits' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=RowCacheHitOutOfRange","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of row cache hits that do not satisfy the query filter and went to disk.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 32df58c8fa3a4ad3ba2e70fc056895ad + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Row cache misses' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=RowCacheMiss","Count"]' + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of table row cache misses.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 529e7683300b4fe9bb46e3f9ed8a9552 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Snapshots size' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=SnapshotsSize","Value"]' + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The disk space truly used by snapshots.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 53e4852850a74163ad797969d3366eb0 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: SS Tables per read 75 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=SSTablesPerReadHistogram","75thPercentile"]' + value_type: FLOAT + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of SSTable data files accessed per read - p75.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 187487b9d35444da989f9e0e3814798a + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: SS Tables per read 95 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=SSTablesPerReadHistogram","95thPercentile"]' + value_type: FLOAT + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of SSTable data files accessed per read - p95.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 592bde2f9eb24d7e80b45f3db965b2e0 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Tombstone scanned 75 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=TombstoneScannedHistogram","75thPercentile"]' + value_type: FLOAT + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of tombstones scanned per read - p75.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 70fedfc2310e4eb19195da72c9ada63d + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Tombstone scanned 95 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=TombstoneScannedHistogram","95thPercentile"]' + value_type: FLOAT + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Number of tombstones scanned per read - p95.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: a20ace3047bd4a238644dbc55d2f8fed + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Disk space used' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=TotalDiskSpaceUsed","Count"]' + units: B + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Disk space used.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: b599e354a5ee417cb056dea424a5792d + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Waiting on free memtable space 75 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=WaitingOnFreeMemtableSpace","75thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The time spent waiting for free memtable space either on- or off-heap - p75.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: af19509867e54f19a64a4b66d054e0cf + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Waiting on free memtable space95 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=WaitingOnFreeMemtableSpace","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The time spent waiting for free memtable space either on- or off-heap - p95.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 141b38b299e14068abc0c175ae4023e6 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Write latency 75 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=WriteLatency","75thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Latency write to disk in milliseconds.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: 8d79071ab7ad49c483efbb7503a4b308 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Write latency 95 percentile' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=WriteLatency","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'Latency write to disk in milliseconds.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + - uuid: c1a9748ab9824626b9a59c323aff9a3d + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Write per second' + type: JMX + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=WriteLatency","Count"]' + value_type: FLOAT + units: rps + username: '{$CASSANDRA.USER}' + password: '{$CASSANDRA.PASSWORD}' + description: 'The number of local write requests per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: tables + - tag: keyspace + value: '{#JMXKEYSPACE}' + - tag: table + value: '{#JMXSCOPE}' + graph_prototypes: + - uuid: 5e293f31be1e46e2ac406afda9ba4d95 + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Read\Write latency' + graph_items: + - color: 199C0D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=ReadLatency","75thPercentile"]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=ReadLatency","95thPercentile"]' + - sortorder: '2' + color: 00611C + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=WriteLatency","75thPercentile"]' + - sortorder: '3' + color: F7941D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=WriteLatency","95thPercentile"]' + - uuid: 1db58a329f9c4306921fbeb6a089cfcf + name: '{#JMXKEYSPACE}.{#JMXSCOPE}: Requests rate' + graph_items: + - color: 199C0D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=WriteLatency","Count"]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=Table,keyspace={#JMXKEYSPACE},scope={#JMXSCOPE},name=ReadLatency","Count"]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: class + value: database + - tag: target + value: apache-cassandra + macros: + - macro: '{$CASSANDRA.KEY_SPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable key spaces' + - macro: '{$CASSANDRA.KEY_SPACE.NOT_MATCHES}' + value: (system|system_auth|system_distributed|system_schema) + description: 'Filter to exclude discovered key spaces' + - macro: '{$CASSANDRA.PASSWORD}' + value: zabbix + - macro: '{$CASSANDRA.PENDING_TASKS.MAX.HIGH}' + value: '500' + - macro: '{$CASSANDRA.PENDING_TASKS.MAX.WARN}' + value: '350' + - macro: '{$CASSANDRA.USER}' + value: zabbix + dashboards: + - uuid: 5358e770431145fb8243033b44de8a72 + name: 'Apache Cassandra: Overview' + pages: + - name: General + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Cassandra by JMX' + name: 'Apache Cassandra: Nodes state' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Cassandra by JMX' + name: 'Apache Cassandra: Dropped Messages' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Cassandra by JMX' + name: 'Apache Cassandra: Client requests Read\Write latency' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Cassandra by JMX' + name: 'Apache Cassandra: Client requests rate' + - type: STRING + name: reference + value: AAAAG + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Cassandra by JMX' + name: 'Apache Cassandra: Client connections' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Cassandra by JMX' + name: 'Apache Cassandra: KeyCache Hit rate' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Cassandra by JMX' + name: 'Apache Cassandra: Tables Read\Write latency' + - type: STRING + name: reference + value: AAAAF + graphs: + - uuid: 445735b15ac84e42b21dbe7c44dce812 + name: 'Apache Cassandra: Client connections' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=Client,name=connectedNativeClients","Value"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=Client,name=connectedThriftClients","Value"]' + - uuid: 2ce1833420ba4abc9bdea906d2c1238b + name: 'Apache Cassandra: Client requests rate' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Write,name=Latency","Count"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Read,name=Latency","Count"]' + - uuid: c30ffc0f46304bf6aab699d39d8d6d4c + name: 'Apache Cassandra: Client requests Read\Write latency' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Read,name=Latency","50thPercentile"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Write,name=Latency","50thPercentile"]' + - sortorder: '2' + color: 00611C + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Read,name=Latency","75thPercentile"]' + - sortorder: '3' + color: F7941D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Read,name=Latency","95thPercentile"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Write,name=Latency","75thPercentile"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=ClientRequest,scope=Write,name=Latency","95thPercentile"]' + - uuid: 5397e6b2349f45169b155e9a99b2b295 + name: 'Apache Cassandra: Dropped Messages' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=DroppedMessage,scope=READ,name=Dropped","Count"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=DroppedMessage,scope=MUTATION,name=Dropped","Count"]' + - uuid: f82e4d8e2f84434e90baff030d46d10e + name: 'Apache Cassandra: KeyCache Hit rate' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Hits","Count"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Requests","Count"]' + - uuid: 0f0f2544748d460b9d526573f7b11d70 + name: 'Apache Cassandra: Nodes state' + graph_items: + - color: 199C0D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.net:type=FailureDetector","UpEndpointCount"]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.net:type=FailureDetector","DownEndpointCount"]' + - uuid: f499150da9ad4376ba528cd4be3af89a + name: 'Apache Cassandra: Tables Read\Write latency' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:name=ReadLatency,type=Table","50thPercentile"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:name=WriteLatency,type=Table","50thPercentile"]' + - sortorder: '2' + color: 00611C + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:name=ReadLatency,type=Table","75thPercentile"]' + - sortorder: '3' + color: F7941D + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:name=ReadLatency,type=Table","95thPercentile"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:name=WriteLatency,type=Table","75thPercentile"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Apache Cassandra by JMX' + key: 'jmx["org.apache.cassandra.metrics:name=WriteLatency,type=Table","95thPercentile"]' diff --git a/Apache_Kafka_by_JMX.yaml b/Apache_Kafka_by_JMX.yaml new file mode 100644 index 0000000..e1a7ede --- /dev/null +++ b/Apache_Kafka_by_JMX.yaml @@ -0,0 +1,1445 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 2eb43a3c9666467683b9ce09d2bd26d7 + template: 'Apache Kafka by JMX' + name: 'Apache Kafka by JMX' + description: | + Official JMX Template for Apache Kafka. + The metrics are collected by JMX. + You can set {$KAFKA.USER} and {$KAFKA.PASSWORD} macros in the template for using on the host level. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: cf096fad8b83431a968095ce8f5d3029 + name: 'Leader election per second' + type: JMX + key: 'jmx["kafka.controller:type=ControllerStats,name=LeaderElectionRateAndTimeMs","Count"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Number of leader elections per second.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: controller + - uuid: 57efca0b4b1e4d1298d7cf77d8d04c98 + name: 'Unclean leader election per second' + type: JMX + key: 'jmx["kafka.controller:type=ControllerStats,name=UncleanLeaderElectionsPerSec","Count"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Number of “unclean” elections per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: controller + triggers: + - uuid: d984a7834d7846f787ca6649bacebf7b + expression: 'last(/Apache Kafka by JMX/jmx["kafka.controller:type=ControllerStats,name=UncleanLeaderElectionsPerSec","Count"])>0' + name: 'Apache Kafka: Unclean leader election detected' + priority: AVERAGE + description: 'Unclean leader elections occur when there is no qualified partition leader among Kafka brokers. If Kafka is configured to allow an unclean leader election, a leader is chosen from the out-of-sync replicas, and any messages that were not synced prior to the loss of the former leader are lost forever. Essentially, unclean leader elections sacrifice consistency for availability.' + tags: + - tag: scope + value: notice + - uuid: 9b3ae38007db4fd5a4e0d3baf026b732 + name: 'Controller state on broker' + type: JMX + key: 'jmx["kafka.controller:type=KafkaController,name=ActiveControllerCount","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'One indicates that the broker is the controller for the cluster.' + valuemap: + name: 'Kafka controller state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: controller + - uuid: 765a10af1fa6444bbeaa7b1669e3c8b2 + name: 'Offline partitions count' + type: JMX + key: 'jmx["kafka.controller:type=KafkaController,name=OfflinePartitionsCount","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Number of partitions that don''t have an active leader.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: controller + triggers: + - uuid: 5eef377125814830be8167d4d74b0d05 + expression: 'last(/Apache Kafka by JMX/jmx["kafka.controller:type=KafkaController,name=OfflinePartitionsCount","Value"]) > 0' + name: 'Apache Kafka: One or more partitions have no leader' + priority: WARNING + description: 'Any partition without an active leader will be completely inaccessible, and both consumers and producers of that partition will be blocked until a leader becomes available.' + tags: + - tag: scope + value: notice + - uuid: 6f4b742f64a04254b607fd49fd7fbfa3 + name: 'Ineligible pending replica deletes' + type: JMX + key: 'jmx["kafka.controller:type=KafkaController,name=ReplicasIneligibleToDeleteCount","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The number of ineligible pending replica deletes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: controller + - uuid: 77069f977a4b4277a13ef329c4cc810f + name: 'Pending replica deletes' + type: JMX + key: 'jmx["kafka.controller:type=KafkaController,name=ReplicasToDeleteCount","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The number of pending replica deletes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: controller + - uuid: ddfd3ce0b846434fb4dddf391b956d6f + name: 'Ineligible pending topic deletes' + type: JMX + key: 'jmx["kafka.controller:type=KafkaController,name=TopicsIneligibleToDeleteCount","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The number of ineligible pending topic deletes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: controller + - uuid: 96c5cb8b0647481e90e0878c8bbc4d4b + name: 'Pending topic deletes' + type: JMX + key: 'jmx["kafka.controller:type=KafkaController,name=TopicsToDeleteCount","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The number of pending topic deletes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: controller + - uuid: c11c8666c0ba4f03b8ba15573b7a6ffd + name: 'Offline log directory count' + type: JMX + key: 'jmx["kafka.log:type=LogManager,name=OfflineLogDirectoryCount","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The number of offline log directories (for example, after a hardware failure).' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: logmanager + triggers: + - uuid: 03fa9ceadba34643b4d3baa7be7c6bb7 + expression: 'last(/Apache Kafka by JMX/jmx["kafka.log:type=LogManager,name=OfflineLogDirectoryCount","Value"]) > 0' + name: 'Apache Kafka: There are offline log directories' + priority: WARNING + description: 'The offline log directory count metric indicate the number of log directories which are offline (due to a hardware failure for example) so that the broker cannot store incoming messages anymore.' + tags: + - tag: scope + value: notice + - uuid: 4fd9235510964af99e3c174c6a18773b + name: 'Fetch-Consumer response send time, p95' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=FetchConsumer","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The time taken, in milliseconds, to send the response for 95th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 3674bdbc6d7742399478a960c1a24647 + name: 'Fetch-Consumer response send time, p99' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=FetchConsumer","99thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The time taken, in milliseconds, to send the response for 99th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 04dea48528bb4f56bfcbf93576ba328f + name: 'Fetch-Consumer response send time, mean' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=FetchConsumer","Mean"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Average time taken, in milliseconds, to send the response.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 57af4d4b76f548e897d9e66459928b40 + name: 'Fetch-Follower response send time, p95' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=FetchFollower","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The time taken, in milliseconds, to send the response for 95th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 5222217c516a4ab9926afd9ddbe6bfdb + name: 'Fetch-Follower response send time, p99' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=FetchFollower","99thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The time taken, in milliseconds, to send the response for 99th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: b11586ce79e846b495ed15a112959685 + name: 'Fetch-Follower response send time, mean' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=FetchFollower","Mean"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Average time taken, in milliseconds, to send the response.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 410c2ecf84fa4f67a9d0b0ca69d77338 + name: 'Produce response send time, p95' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=Produce","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The time taken, in milliseconds, to send the response for 95th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: e5d7139fbd5a4688bba04d5837a21d3b + name: 'Produce response send time, p99' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=Produce","99thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The time taken, in milliseconds, to send the response for 99th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 6e51118940ed4bd192774b8fa44aeb26 + name: 'Produce response send time, mean' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=ResponseSendTimeMs,request=Produce","Mean"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Average time taken, in milliseconds, to send the response.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 10cd80d9dd0e4b918138aa99dcd28b2a + name: 'Temporary memory size in bytes (Fetch), max' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TemporaryMemoryBytes,request=Fetch","Max"]' + units: B + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The maximum of temporary memory used for converting message formats and decompressing messages.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - tag: component + value: request + - uuid: 9034049c16424d81a22b0f0063657ed6 + name: 'Temporary memory size in bytes (Fetch), min' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TemporaryMemoryBytes,request=Fetch","Mean"]' + units: B + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The minimum of temporary memory used for converting message formats and decompressing messages.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - tag: component + value: request + - uuid: 57a5c2d51b4f424baf34ab963eed45a4 + name: 'Temporary memory size in bytes (Produce), max' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TemporaryMemoryBytes,request=Produce","Max"]' + units: B + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The maximum of temporary memory used for converting message formats and decompressing messages.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - tag: component + value: request + - uuid: f28dcdf12db44b30a82b7a1bead52521 + name: 'Temporary memory size in bytes (Produce), avg' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TemporaryMemoryBytes,request=Produce","Mean"]' + units: B + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The amount of temporary memory used for converting message formats and decompressing messages.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - tag: component + value: request + - uuid: eddaa3dce4be472ba2133674c845a53f + name: 'Temporary memory size in bytes (Produce), min' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TemporaryMemoryBytes,request=Produce","Min"]' + units: B + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The minimum of temporary memory used for converting message formats and decompressing messages.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - tag: component + value: request + - uuid: 36b32cc516ce48859fda10b348564446 + name: 'Fetch-Consumer request total time, p95' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchConsumer","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Time in ms to serve the Fetch-Consumer request for 95th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: e08291248e4e42858303c27de441aa1b + name: 'Fetch-Consumer request total time, p99' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchConsumer","99thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Time in ms to serve the specified Fetch-Consumer for 99th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 16c3eb799dca4ed7b167e1127406766e + name: 'Fetch-Consumer request total time, mean' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchConsumer","Mean"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Average time in ms to serve the Fetch-Consumer request.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 01704212d78343c597f92fa151f3372a + name: 'Fetch-Follower request total time, p95' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchFollower","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Time in ms to serve the Fetch-Follower request for 95th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: c7d9215ee14a4d86b5ad38dbad26c247 + name: 'Fetch-Follower request total time, p99' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchFollower","99thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Time in ms to serve the Fetch-Follower request for 99th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 487274528ec646afb5e04f6edd6619b5 + name: 'Fetch-Follower request total time, mean' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchFollower","Mean"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Average time in ms to serve the Fetch-Follower request.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 3680508a52524de08819abc3d81056be + name: 'Produce request total time, p95' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=Produce","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Time in ms to serve the Produce requests for 95th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: b59938aa9192429890367ca1dc2e74b7 + name: 'Produce request total time, p99' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=Produce","99thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Time in ms to serve the Produce requests for 99th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 5bcb9ecd5d77460fb25d2afa5173832b + name: 'Produce request total time, mean' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=Produce","Mean"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Average time in ms to serve the Produce request.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 230f713f85c748bd9d29d8d086fcc80a + name: 'UpdateMetadata request total time, p95' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=UpdateMetadata","95thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Time for update metadata requests for 95th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 8e654055b20748a085178882d7b5bed9 + name: 'UpdateMetadata request total time, p99' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=UpdateMetadata","99thPercentile"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Time for update metadata requests for 99th percentile.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: c66e750dccd0461e82f8a3b5bd432333 + name: 'Fetch-Consumer request total time, mean' + type: JMX + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=UpdateMetadata","Mean"]' + value_type: FLOAT + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Average time for a request to update metadata.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 46a7230e12f8404c813e60fae1eaf91d + name: 'Network processor average idle percent' + type: JMX + key: 'jmx["kafka.network:type=SocketServer,name=NetworkProcessorAvgIdlePercent","Value"]' + value_type: FLOAT + units: '%' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The average percentage of time that the network processors are idle.' + preprocessing: + - type: MULTIPLIER + parameters: + - '100' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: network + triggers: + - uuid: 39bfa825d88145d5a687ba07f6b5596e + expression: 'nodata(/Apache Kafka by JMX/jmx["kafka.network:type=SocketServer,name=NetworkProcessorAvgIdlePercent","Value"],15m)=1' + name: 'Apache Kafka: Failed to fetch info data' + event_name: 'Apache Kafka: Failed to fetch info data (or no data for 15m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 15 minutes' + tags: + - tag: scope + value: availability + - uuid: 91c95d4543ae436d986881e76f090aec + expression: 'max(/Apache Kafka by JMX/jmx["kafka.network:type=SocketServer,name=NetworkProcessorAvgIdlePercent","Value"],15m)<{$KAFKA.NET_PROC_AVG_IDLE.MIN.WARN}' + name: 'Apache Kafka: Network processor average idle percent is too low' + event_name: 'Apache Kafka: Network processor average idle percent is too low (under {$KAFKA.NET_PROC_AVG_IDLE.MIN.WARN} for 15m)' + priority: AVERAGE + description: 'The network processor idle ratio metric indicates the percentage of time the network processor are not in use. The lower this number, the more loaded the broker is.' + tags: + - tag: scope + value: notice + - uuid: deca38d699f44dea90961be921d096e4 + name: Uptime + type: JMX + key: 'jmx["kafka.server:type=app-info","start-time-ms"]' + units: s + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The service uptime expressed in seconds.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (Math.floor((Date.now()-Number(value))/1000))' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: system + triggers: + - uuid: b2fa6148a2b24fa6890b4078c235dcd8 + expression: 'last(/Apache Kafka by JMX/jmx["kafka.server:type=app-info","start-time-ms"])<10m' + name: 'Apache Kafka: Kafka service has been restarted' + event_name: 'Apache Kafka: Kafka service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 75bf053e436e4bb8bb2a94e86a0b194c + name: Version + type: JMX + key: 'jmx["kafka.server:type=app-info","version"]' + value_type: CHAR + trends: '0' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Current version of broker.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: inventory + triggers: + - uuid: 92ecd7eb1eae49d9886ecac7b8f2084a + expression: 'last(/Apache Kafka by JMX/jmx["kafka.server:type=app-info","version"],#1)<>last(/Apache Kafka by JMX/jmx["kafka.server:type=app-info","version"],#2) and length(last(/Apache Kafka by JMX/jmx["kafka.server:type=app-info","version"]))>0' + name: 'Apache Kafka: Version has changed' + event_name: 'Apache Kafka: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Kafka version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 47dcd92e0ca64833af8d8112b7c66731 + name: 'Bytes in per second' + type: JMX + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec","Count"]' + value_type: FLOAT + units: Bps + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The rate at which data sent from producers is consumed by the broker.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - uuid: d71ed49d3a1f4599b239105ab7435724 + name: 'Bytes out per second' + type: JMX + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=BytesOutPerSec","Count"]' + value_type: FLOAT + units: Bps + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The rate at which data is fetched and read from the broker by consumers.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - uuid: 15d9fe23872541f0bb3dd1ce33598a61 + name: 'Bytes rejected per second' + type: JMX + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=BytesRejectedPerSec","Count"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The rate at which bytes rejected per second by the broker.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - uuid: 2ce7bb5db0674cb1a9504c4d8af72a00 + name: 'Client fetch request failed per second' + type: JMX + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=FailedFetchRequestsPerSec","Count"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Number of client fetch request failures per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - uuid: a26150db6e464090910b837b69e6df8f + name: 'Produce requests failed per second' + type: JMX + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=FailedProduceRequestsPerSec","Count"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Number of failed produce requests per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - uuid: 28e488bbe6544d688e741b2ab0397275 + name: 'Messages in per second' + type: JMX + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec","Count"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The rate at which individual messages are consumed by the broker.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - uuid: a3d88b98436040e494911b94ce72de8b + name: 'Requests in producer purgatory' + type: JMX + key: 'jmx["kafka.server:type=DelayedOperationPurgatory,name=PurgatorySize,delayedOperation=Fetch","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Number of requests waiting in producer purgatory.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: d68c2995725745a5b1f3f4507a5fe49c + name: 'Requests in fetch purgatory' + type: JMX + key: 'jmx["kafka.server:type=DelayedOperationPurgatory,name=PurgatorySize,delayedOperation=Produce","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Number of requests waiting in fetch purgatory.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: 2e7433fbf07d415ea40251a29364264c + name: 'Request handler average idle percent' + type: JMX + key: 'jmx["kafka.server:type=KafkaRequestHandlerPool,name=RequestHandlerAvgIdlePercent","OneMinuteRate"]' + value_type: FLOAT + units: '%' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Indicates the percentage of time that the request handler (IO) threads are not in use.' + preprocessing: + - type: MULTIPLIER + parameters: + - '100' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + triggers: + - uuid: 8f070e06520b4b299fcfffa952d318fc + expression: 'max(/Apache Kafka by JMX/jmx["kafka.server:type=KafkaRequestHandlerPool,name=RequestHandlerAvgIdlePercent","OneMinuteRate"],15m)<{$KAFKA.REQUEST_HANDLER_AVG_IDLE.MIN.WARN}' + name: 'Apache Kafka: Request handler average idle percent is too low' + event_name: 'Apache Kafka: Request handler average idle percent is too low (under {$KAFKA.REQUEST_HANDLER_AVG_IDLE.MIN.WARN} for 15m)' + priority: AVERAGE + description: 'The request handler idle ratio metric indicates the percentage of time the request handlers are not in use. The lower this number, the more loaded the broker is.' + tags: + - tag: scope + value: notice + - uuid: fb83a988422c40b792e23b10a0f2ba64 + name: 'Replication maximum lag' + type: JMX + key: 'jmx["kafka.server:type=ReplicaFetcherManager,name=MaxLag,clientId=Replica","Value"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The maximum lag between the time that messages are received by the leader replica and by the follower replicas.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: replica + - uuid: 6125c4144c42452ea20c53c5365ad970 + name: 'ISR expands per second' + type: JMX + key: 'jmx["kafka.server:type=ReplicaManager,name=IsrExpandsPerSec","Count"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The rate at which the number of ISRs in the broker increases.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: replica + - uuid: 81eb0364269b40988404bd902ba409f4 + name: 'ISR shrink per second' + type: JMX + key: 'jmx["kafka.server:type=ReplicaManager,name=IsrShrinksPerSec","Count"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Rate of replicas leaving the ISR pool.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: replica + - uuid: 9489608614ac4d96810362fc52901c55 + name: 'Leader count' + type: JMX + key: 'jmx["kafka.server:type=ReplicaManager,name=LeaderCount","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The number of replicas for which this broker is the leader.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: replica + - uuid: 1a737ce50a274c3696beade89187afd1 + name: 'Partition count' + type: JMX + key: 'jmx["kafka.server:type=ReplicaManager,name=PartitionCount","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The number of partitions in the broker.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: replica + - uuid: 05fb33b225264059a2eef04a91963dbb + name: 'Number of reassigning partitions' + type: JMX + key: 'jmx["kafka.server:type=ReplicaManager,name=ReassigningPartitions","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The number of reassigning leader partitions on a broker.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: replica + - uuid: b22cee3e3aa849a1b5098e18f42b3b3d + name: 'Under minimum ISR partition count' + type: JMX + key: 'jmx["kafka.server:type=ReplicaManager,name=UnderMinIsrPartitionCount","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The number of partitions under the minimum In-Sync Replica (ISR) count.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: replica + triggers: + - uuid: b401a90e75cd4a478d4f8b8cc4f15dc2 + expression: 'last(/Apache Kafka by JMX/jmx["kafka.server:type=ReplicaManager,name=UnderMinIsrPartitionCount","Value"])>0' + name: 'Apache Kafka: There are partitions under the min ISR' + priority: AVERAGE + description: 'The Under min ISR partitions metric displays the number of partitions, where the number of In-Sync Replicas (ISR) is less than the minimum number of in-sync replicas specified. The two most common causes of under-min ISR partitions are that one or more brokers is unresponsive, or the cluster is experiencing performance issues and one or more brokers are falling behind.' + tags: + - tag: scope + value: notice + - uuid: f55e42503d7d4091bd4487a30bb144b9 + name: 'Under replicated partitions' + type: JMX + key: 'jmx["kafka.server:type=ReplicaManager,name=UnderReplicatedPartitions","Value"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The number of partitions that have not been fully replicated in the follower replicas (the number of non-reassigning replicas - the number of ISR > 0).' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: replica + triggers: + - uuid: 0ecd8b4b3db6489b83d4a1f78faee03c + expression: 'last(/Apache Kafka by JMX/jmx["kafka.server:type=ReplicaManager,name=UnderReplicatedPartitions","Value"])>0' + name: 'Apache Kafka: There are under replicated partitions' + priority: AVERAGE + description: 'The Under replicated partitions metric displays the number of partitions that do not have enough replicas to meet the desired replication factor. A partition will also be considered under-replicated if the correct number of replicas exist, but one or more of the replicas have fallen significantly behind the partition leader. The two most common causes of under-replicated partitions are that one or more brokers is unresponsive, or the cluster is experiencing performance issues and one or more brokers have fallen behind.' + tags: + - tag: scope + value: notice + - uuid: c2086b19fcf84c1f948ec80726054dcd + name: 'Request queue size' + type: JMX + key: 'jmx["kafka.server:type=Request","queue-size"]' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The size of the delay queue.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - uuid: e96464452c844cb7bdeaab62f7c7e5ed + name: 'ZooKeeper connection status' + type: JMX + key: 'jmx["kafka.server:type=SessionExpireListener,name=SessionState","Value"]' + value_type: CHAR + trends: '0' + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Connection status of broker''s ZooKeeper session.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: health + - tag: component + value: zookeeper + triggers: + - uuid: 423144ac14694a71b9ab563eacfa840d + expression: 'find(/Apache Kafka by JMX/jmx["kafka.server:type=SessionExpireListener,name=SessionState","Value"],,"regexp","CONNECTED")=0' + name: 'Apache Kafka: Broker is not connected to ZooKeeper' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 9852aa0bf3074a319b83f695a9d0deca + name: 'ZooKeeper disconnect rate' + type: JMX + key: 'jmx["kafka.server:type=SessionExpireListener,name=ZooKeeperDisconnectsPerSec","Count"]' + value_type: FLOAT + units: rps + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'ZooKeeper client disconnect per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: zookeeper + - uuid: 3e612950b2c5476e9634ce11f93dfd61 + name: 'ZooKeeper session expiration rate' + type: JMX + key: 'jmx["kafka.server:type=SessionExpireListener,name=ZooKeeperExpiresPerSec","Count"]' + value_type: FLOAT + units: rps + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'ZooKeeper client session expiration per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: zookeeper + - uuid: e9f647cf41214ef7aab480d349f48c21 + name: 'ZooKeeper readonly rate' + type: JMX + key: 'jmx["kafka.server:type=SessionExpireListener,name=ZooKeeperReadOnlyConnectsPerSec","Count"]' + value_type: FLOAT + units: rps + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'ZooKeeper client readonly per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: zookeeper + - uuid: b156305285bf4d508afd1d9c91ae34c0 + name: 'ZooKeeper sync rate' + type: JMX + key: 'jmx["kafka.server:type=SessionExpireListener,name=ZooKeeperSyncConnectsPerSec","Count"]' + value_type: FLOAT + units: rps + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'ZooKeeper client sync per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: zookeeper + - uuid: 3b6de5f72ed94b928684083fbb65b6cb + name: 'ZooKeeper client request latency' + type: JMX + key: 'jmx["kafka.server:type=ZooKeeperClientMetrics,name=ZooKeeperRequestLatencyMs","Count"]' + units: ms + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Latency in milliseconds for ZooKeeper requests from broker.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: zookeeper + discovery_rules: + - uuid: c4421eb9f9ab4bf2b6d4ba101c897ca7 + name: 'Topic Metrics (read)' + type: JMX + key: 'jmx.discovery[beans,"kafka.server:type=BrokerTopicMetrics,name=BytesOutPerSec,topic=*"]' + delay: 1h + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXTOPIC}' + value: '{$KAFKA.TOPIC.MATCHES}' + formulaid: A + - macro: '{#JMXTOPIC}' + value: '{$KAFKA.TOPIC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 42ad85334b524973afa2fd8f2a135e77 + name: 'Kafka {#JMXTOPIC}: Bytes out per second' + type: JMX + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=BytesOutPerSec,topic={#JMXTOPIC}","Count"]' + value_type: FLOAT + units: Bps + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The rate at which data is fetched and read from the broker by consumers (by topic).' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - tag: component + value: topic + - tag: topic + value: '{#JMXTOPIC}' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: 82037c202489462fa9c4afbb23618315 + name: 'Topic Metrics (errors)' + type: JMX + key: 'jmx.discovery[beans,"kafka.server:type=BrokerTopicMetrics,name=BytesRejectedPerSec,topic=*"]' + delay: 1h + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXTOPIC}' + value: '{$KAFKA.TOPIC.MATCHES}' + formulaid: A + - macro: '{#JMXTOPIC}' + value: '{$KAFKA.TOPIC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: abaf2616581a46158a13a71ffcf67634 + name: 'Kafka {#JMXTOPIC}: Bytes rejected per second' + type: JMX + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=BytesRejectedPerSec,topic={#JMXTOPIC}","Count"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'Rejected bytes rate by topic.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - tag: component + value: topic + - tag: topic + value: '{#JMXTOPIC}' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: d5ec81baadad41f29882757979443b5b + name: 'Topic Metrics (write)' + type: JMX + key: 'jmx.discovery[beans,"kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec,topic=*"]' + delay: 1h + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXTOPIC}' + value: '{$KAFKA.TOPIC.MATCHES}' + formulaid: A + - macro: '{#JMXTOPIC}' + value: '{$KAFKA.TOPIC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 61bb29999ea1465c8125b518507d9e5d + name: 'Kafka {#JMXTOPIC}: Bytes in per second' + type: JMX + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec,topic={#JMXTOPIC}","Count"]' + value_type: FLOAT + units: Bps + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The rate at which data sent from producers is consumed by topic.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - tag: component + value: topic + - tag: topic + value: '{#JMXTOPIC}' + - uuid: 5c18b5eca61b4ed2ae1aae197b7c9958 + name: 'Kafka {#JMXTOPIC}: Messages in per second' + type: JMX + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec,topic={#JMXTOPIC}","Count"]' + value_type: FLOAT + username: '{$KAFKA.USER}' + password: '{$KAFKA.PASSWORD}' + description: 'The rate at which individual messages are consumed by topic.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: broker + - tag: component + value: topic + - tag: topic + value: '{#JMXTOPIC}' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: class + value: application + - tag: target + value: apache-kafka + macros: + - macro: '{$KAFKA.NET_PROC_AVG_IDLE.MIN.WARN}' + value: '30' + description: 'The minimum Network processor average idle percent for trigger expression.' + - macro: '{$KAFKA.PASSWORD}' + value: zabbix + - macro: '{$KAFKA.REQUEST_HANDLER_AVG_IDLE.MIN.WARN}' + value: '30' + description: 'The minimum Request handler average idle percent for trigger expression.' + - macro: '{$KAFKA.TOPIC.MATCHES}' + value: '.*' + description: 'Filter of discoverable topics' + - macro: '{$KAFKA.TOPIC.NOT_MATCHES}' + value: __consumer_offsets + description: 'Filter to exclude discovered topics' + - macro: '{$KAFKA.USER}' + value: zabbix + dashboards: + - uuid: 513a8b1df97f4e58882a5a7796954fc6 + name: 'Kafka: Overview' + pages: + - name: General + widgets: + - type: graph + width: '72' + height: '7' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Kafka by JMX' + name: 'Kafka: Requests performance' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Kafka by JMX' + name: 'Kafka: Requests failed rate' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '12' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Kafka by JMX' + name: 'Kafka: Pending deletes' + - type: STRING + name: reference + value: AAAAD + - type: graph + 'y': '17' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Kafka by JMX' + name: 'Kafka: ISR shrinks/expands rate' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Kafka by JMX' + name: 'Kafka: ZooKeeper connections rate' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + 'y': '12' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Kafka by JMX' + name: 'Kafka: Leader election rate' + - type: STRING + name: reference + value: AAAAE + - type: graph + x: '36' + 'y': '17' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache Kafka by JMX' + name: 'Kafka: Temporary memory size' + - type: STRING + name: reference + value: AAAAG + valuemaps: + - uuid: cf2440fb69c24371b231cb0a69002333 + name: 'Kafka controller state' + mappings: + - value: '0' + newvalue: Inactive + - value: '1' + newvalue: Active + graphs: + - uuid: 0371c1e9aa924fb89bffa87c26e88481 + name: 'Kafka: Broker throughput' + graph_items: + - color: 199C0D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=BytesOutPerSec","Count"]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec","Count"]' + - uuid: 7a7ce78d88bc483ca07efb5c4e639c1f + name: 'Kafka: ISR shrinks/expands rate' + graph_items: + - color: 199C0D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=ReplicaManager,name=IsrShrinksPerSec","Count"]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=ReplicaManager,name=IsrExpandsPerSec","Count"]' + - uuid: bd0b892058df48d5939f2ab9de9c2768 + name: 'Kafka: Leader election rate' + graph_items: + - color: 199C0D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.controller:type=ControllerStats,name=LeaderElectionRateAndTimeMs","Count"]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.controller:type=ControllerStats,name=UncleanLeaderElectionsPerSec","Count"]' + - uuid: de66fc0c0dc44fbca5fa44f9cd4716ff + name: 'Kafka: Pending deletes' + graph_items: + - color: 199C0D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.controller:type=KafkaController,name=TopicsIneligibleToDeleteCount","Value"]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.controller:type=KafkaController,name=TopicsToDeleteCount","Value"]' + - sortorder: '2' + color: 00611C + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.controller:type=KafkaController,name=ReplicasIneligibleToDeleteCount","Value"]' + - sortorder: '3' + color: F7941D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.controller:type=KafkaController,name=ReplicasToDeleteCount","Value"]' + - uuid: 451bd85a6db249f1a43ac38d4361f925 + name: 'Kafka: Purgatory size' + graph_items: + - color: 199C0D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=DelayedOperationPurgatory,name=PurgatorySize,delayedOperation=Fetch","Value"]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=DelayedOperationPurgatory,name=PurgatorySize,delayedOperation=Produce","Value"]' + - uuid: aaef8edde7e34c33acad4e0820991bd6 + name: 'Kafka: Requests failed rate' + graph_items: + - color: 199C0D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=FailedFetchRequestsPerSec","Count"]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=BrokerTopicMetrics,name=FailedProduceRequestsPerSec","Count"]' + - uuid: 35b4211374b74b68aceec66cc875816d + name: 'Kafka: Requests performance' + graph_items: + - color: 199C0D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=UpdateMetadata","95thPercentile"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=UpdateMetadata","99thPercentile"]' + - sortorder: '2' + color: 00611C + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=UpdateMetadata","Mean"]' + - sortorder: '3' + color: F7941D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=Produce","95thPercentile"]' + - sortorder: '4' + drawtype: BOLD_LINE + color: FC6EA3 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=Produce","99thPercentile"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=Produce","Mean"]' + - sortorder: '6' + color: C7A72D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchConsumer","95thPercentile"]' + - sortorder: '7' + drawtype: BOLD_LINE + color: BA2A5D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchConsumer","99thPercentile"]' + - sortorder: '8' + color: F230E0 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchConsumer","Mean"]' + - sortorder: '9' + color: 5CCD18 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchFollower","95thPercentile"]' + - sortorder: '10' + drawtype: BOLD_LINE + color: BB2A02 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchFollower","99thPercentile"]' + - sortorder: '11' + color: AC41A5 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TotalTimeMs,request=FetchFollower","Mean"]' + - uuid: 3b531111e8194edd87d497b9fee7084c + name: 'Kafka: Temporary memory size' + graph_items: + - color: 199C0D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TemporaryMemoryBytes,request=Produce","Min"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TemporaryMemoryBytes,request=Produce","Mean"]' + - sortorder: '2' + color: 00611C + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TemporaryMemoryBytes,request=Produce","Max"]' + - sortorder: '3' + color: F7941D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TemporaryMemoryBytes,request=Fetch","Mean"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.network:type=RequestMetrics,name=TemporaryMemoryBytes,request=Fetch","Max"]' + - uuid: e5f69b35415b49168fba4ffa10e75f25 + name: 'Kafka: ZooKeeper connections rate' + graph_items: + - color: 199C0D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=SessionExpireListener,name=ZooKeeperReadOnlyConnectsPerSec","Count"]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=SessionExpireListener,name=ZooKeeperSyncConnectsPerSec","Count"]' + - sortorder: '2' + color: 00611C + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=SessionExpireListener,name=ZooKeeperExpiresPerSec","Count"]' + - sortorder: '3' + color: F7941D + item: + host: 'Apache Kafka by JMX' + key: 'jmx["kafka.server:type=SessionExpireListener,name=ZooKeeperDisconnectsPerSec","Count"]' diff --git a/Apache_Tomcat_by_JMX.yaml b/Apache_Tomcat_by_JMX.yaml new file mode 100644 index 0000000..cac7982 --- /dev/null +++ b/Apache_Tomcat_by_JMX.yaml @@ -0,0 +1,543 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 3cc8c9ae7055458c9a803597007f70bd + template: 'Apache Tomcat by JMX' + name: 'Apache Tomcat by JMX' + description: | + The template to monitor Apache Tomcat by Zabbix that work without any external scripts. + The metrics are collected by JMX. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/411862-discussion-thread-for-official-zabbix-template-tomcat + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 7f6ec0e48d41456896799f487cd8243e + name: Version + type: JMX + key: 'jmx["Catalina:type=Server",serverInfo]' + value_type: CHAR + trends: '0' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'The version of the Tomcat.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: system + triggers: + - uuid: 152d235652914aa2af78334385334214 + expression: 'last(/Apache Tomcat by JMX/jmx["Catalina:type=Server",serverInfo],#1)<>last(/Apache Tomcat by JMX/jmx["Catalina:type=Server",serverInfo],#2) and length(last(/Apache Tomcat by JMX/jmx["Catalina:type=Server",serverInfo]))>0' + name: 'Apache Tomcat: Version has been changed' + event_name: 'Apache Tomcat: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Tomcat version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: a478be537e5f48fe95310997d0df0eda + name: 'Protocol handlers discovery' + type: JMX + key: 'jmx.discovery[attributes,"Catalina:type=ProtocolHandler,port=*"]' + delay: 1h + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXATTR}' + value: ^name$ + formulaid: A + description: 'Discovery for ProtocolHandler' + item_prototypes: + - uuid: 830f58f8ad6640d989a70c01f7aa2ad8 + name: '{#JMXVALUE}: Gzip compression status' + type: JMX + key: 'jmx[{#JMXOBJ},compression]' + value_type: CHAR + trends: '0' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Gzip compression status on {#JMXNAME}. Enabling gzip compression may save server bandwidth.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: protocol-handler + - tag: protocol-handler + value: '{#JMXVALUE}' + trigger_prototypes: + - uuid: 7d707de73a164f1db6b69e4dcb8c6ae9 + expression: 'find(/Apache Tomcat by JMX/jmx[{#JMXOBJ},compression],,"like","off") = 1' + name: 'Apache Tomcat: {#JMXVALUE}: Gzip compression is disabled' + priority: INFO + description: 'gzip compression is disabled for connector {#JMXVALUE}.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: 77175f79fe844bb8bca66de437a3ba32 + name: 'Global request processors discovery' + type: JMX + key: 'jmx.discovery[beans,"Catalina:type=GlobalRequestProcessor,name=*"]' + delay: 1h + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXNAME}' + value: '{$TOMCAT.LLD.FILTER.REQUEST_PROCESSOR.MATCHES}' + formulaid: A + - macro: '{#JMXNAME}' + value: '{$TOMCAT.LLD.FILTER.REQUEST_PROCESSOR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery for GlobalRequestProcessor' + item_prototypes: + - uuid: d7cb07f3f5e04792850332c416284dd9 + name: '{#JMXNAME}: Bytes received per second' + type: JMX + key: 'jmx[{#JMXOBJ},bytesReceived]' + units: B + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Bytes received rate by processor {#JMXNAME}' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - tag: jmx-name + value: '{#JMXNAME}' + - tag: jmx-type + value: '{#JMXTYPE}' + - uuid: abad7332ed6b417c92f6038ce12ae000 + name: '{#JMXNAME}: Bytes sent per second' + type: JMX + key: 'jmx[{#JMXOBJ},bytesSent]' + units: B + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Bytes sent rate by processor {#JMXNAME}' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - tag: jmx-name + value: '{#JMXNAME}' + - tag: jmx-type + value: '{#JMXTYPE}' + - uuid: 1596a335401d47d6b2bde7a5b0de7b07 + name: '{#JMXNAME}: Errors per second' + type: JMX + key: 'jmx[{#JMXOBJ},errorCount]' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Error rate of request processor {#JMXNAME}' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - tag: jmx-name + value: '{#JMXNAME}' + - tag: jmx-type + value: '{#JMXTYPE}' + - uuid: 985d3eeacd9d404385bfcef693add39a + name: '{#JMXNAME}: Requests processing time' + type: JMX + key: 'jmx[{#JMXOBJ},processingTime]' + units: s + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: | + The total time to process all incoming requests of request processor + {#JMXNAME} + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - tag: jmx-name + value: '{#JMXNAME}' + - tag: jmx-type + value: '{#JMXTYPE}' + - uuid: 8e0307b5063549dab118e0e374a62aad + name: '{#JMXNAME}: Requests per second' + type: JMX + key: 'jmx[{#JMXOBJ},requestCount]' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Rate of requests served by request processor {#JMXNAME}' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: request + - tag: jmx-name + value: '{#JMXNAME}' + - tag: jmx-type + value: '{#JMXTYPE}' + graph_prototypes: + - uuid: 87de97d55baa4be1964652957a051fc2 + name: '{#JMXNAME}: Traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache Tomcat by JMX' + key: 'jmx[{#JMXOBJ},bytesSent]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Apache Tomcat by JMX' + key: 'jmx[{#JMXOBJ},bytesReceived]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: cf1badf064714d9b9e3b7110696432f9 + name: 'Contexts discovery' + type: JMX + key: 'jmx.discovery[beans,"Catalina:type=Manager,host=*,context=*"]' + delay: 1h + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXHOST}' + value: '{$TOMCAT.LLD.FILTER.MANAGER.MATCHES}' + formulaid: A + - macro: '{#JMXHOST}' + value: '{$TOMCAT.LLD.FILTER.MANAGER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery for contexts' + item_prototypes: + - uuid: c20bb67db247471ba686d2ea371b7c73 + name: '{#JMXHOST}{#JMXCONTEXT}: Sessions active' + type: JMX + key: 'jmx[{#JMXOBJ},activeSessions]' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Active sessions of the application.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: context + - tag: jmx-context + value: '{#JMXCONTEXT}' + - tag: jmx-host + value: '{#JMXHOST}' + - uuid: bc3c2a3cff614f3eaf001463df1b2364 + name: '{#JMXHOST}{#JMXCONTEXT}: Sessions allowed maximum' + type: JMX + key: 'jmx[{#JMXOBJ},maxActiveSessions]' + value_type: FLOAT + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'The maximum number of active Sessions allowed, or -1 for no limit.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: context + - tag: jmx-context + value: '{#JMXCONTEXT}' + - tag: jmx-host + value: '{#JMXHOST}' + - uuid: fd8678e68cf440939af2dd8f3568a42f + name: '{#JMXHOST}{#JMXCONTEXT}: Sessions active maximum so far' + type: JMX + key: 'jmx[{#JMXOBJ},maxActive]' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Maximum number of active sessions so far.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: context + - tag: jmx-context + value: '{#JMXCONTEXT}' + - tag: jmx-host + value: '{#JMXHOST}' + - uuid: 34702e2d6b2142ec9aa43bea1059a98a + name: '{#JMXHOST}{#JMXCONTEXT}: Sessions rejected per second' + type: JMX + key: 'jmx[{#JMXOBJ},rejectedSessions]' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Rate of sessions we rejected due to maxActive being reached.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: context + - tag: jmx-context + value: '{#JMXCONTEXT}' + - tag: jmx-host + value: '{#JMXHOST}' + - uuid: eb28f9bd99d440f4a50d1c24ae758029 + name: '{#JMXHOST}{#JMXCONTEXT}: Sessions created per second' + type: JMX + key: 'jmx[{#JMXOBJ},sessionCounter]' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Rate of sessions created by this application per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: context + - tag: jmx-context + value: '{#JMXCONTEXT}' + - tag: jmx-host + value: '{#JMXHOST}' + graph_prototypes: + - uuid: dfd46f5443f9438fb21ae23dfd4010c0 + name: '{#JMXHOST}{#JMXCONTEXT}: Sessions' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache Tomcat by JMX' + key: 'jmx[{#JMXOBJ},maxActive]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Apache Tomcat by JMX' + key: 'jmx[{#JMXOBJ},activeSessions]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Apache Tomcat by JMX' + key: 'jmx[{#JMXOBJ},rejectedSessions]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'Apache Tomcat by JMX' + key: 'jmx[{#JMXOBJ},maxActiveSessions]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: 05752834671f416fb2fdac1006308c3e + name: 'Thread pools discovery' + type: JMX + key: 'jmx.discovery[beans,"Catalina:type=ThreadPool,name=*"]' + delay: 1h + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXNAME}' + value: '{$TOMCAT.LLD.FILTER.THREAD_POOL.MATCHES}' + formulaid: A + - macro: '{#JMXNAME}' + value: '{$TOMCAT.LLD.FILTER.THREAD_POOL.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery for ThreadPool' + item_prototypes: + - uuid: 7d7418c72ced48eca2a92e30021b611b + name: '{#JMXNAME}: Threads count' + type: JMX + key: 'jmx[{#JMXOBJ},currentThreadCount]' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Amount of threads the thread pool has right now, both busy and free.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pool + - tag: jmx-name + value: '{#JMXNAME}' + - tag: jmx-type + value: '{#JMXTYPE}' + - uuid: 35b1e99fbc44448083b5aad0ce1239a1 + name: '{#JMXNAME}: Threads busy' + type: JMX + key: 'jmx[{#JMXOBJ},currentThreadsBusy]' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Number of the requests that are being currently handled.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pool + - tag: jmx-name + value: '{#JMXNAME}' + - tag: jmx-type + value: '{#JMXTYPE}' + - uuid: 32e316ce567c4f94aecb89d9763e4d27 + name: '{#JMXNAME}: Threads limit' + type: JMX + key: 'jmx[{#JMXOBJ},maxThreads]' + username: '{$TOMCAT.USER}' + password: '{$TOMCAT.PASSWORD}' + description: 'Limit of the threads count. When currentThreadsBusy counter reaches the maxThreads limit, no more requests could be handled, and the application chokes.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread-pool + - tag: jmx-name + value: '{#JMXNAME}' + - tag: jmx-type + value: '{#JMXTYPE}' + trigger_prototypes: + - uuid: 7a15296553a447f6aebf4958631b6704 + expression: 'min(/Apache Tomcat by JMX/jmx[{#JMXOBJ},currentThreadsBusy],{$TOMCAT.THREADS.MAX.TIME:"{#JMXNAME}"})>last(/Apache Tomcat by JMX/jmx[{#JMXOBJ},maxThreads])*{$TOMCAT.THREADS.MAX.PCT:"{#JMXNAME}"}/100' + name: 'Apache Tomcat: {#JMXNAME}: Busy worker threads count is high' + event_name: 'Apache Tomcat: {#JMXNAME}: Busy worker threads count are more than {$TOMCAT.THREADS.MAX.PCT:"{#JMXNAME}"}% of the limit for {$TOMCAT.THREADS.MAX.TIME:"{#JMXNAME}"}' + priority: HIGH + description: 'When current threads busy counter reaches the limit, no more requests could be handled, and the application chokes.' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: d8236335204a42488c6221c8b2d31e77 + name: '{#JMXNAME}: Worker threads' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache Tomcat by JMX' + key: 'jmx[{#JMXOBJ},maxThreads]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Apache Tomcat by JMX' + key: 'jmx[{#JMXOBJ},currentThreadCount]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Apache Tomcat by JMX' + key: 'jmx[{#JMXOBJ},currentThreadsBusy]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: class + value: software + - tag: target + value: tomcat + macros: + - macro: '{$TOMCAT.LLD.FILTER.MANAGER.MATCHES}' + value: '.*' + description: 'Filter for discoverable managers.' + - macro: '{$TOMCAT.LLD.FILTER.MANAGER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude managers.' + - macro: '{$TOMCAT.LLD.FILTER.REQUEST_PROCESSOR.MATCHES}' + value: '.*' + description: 'Filter for discoverable global request processors.' + - macro: '{$TOMCAT.LLD.FILTER.REQUEST_PROCESSOR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude global request processors.' + - macro: '{$TOMCAT.LLD.FILTER.THREAD_POOL.MATCHES}' + value: '.*' + description: 'Filter for discoverable thread pools.' + - macro: '{$TOMCAT.LLD.FILTER.THREAD_POOL.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude thread pools.' + - macro: '{$TOMCAT.PASSWORD}' + description: 'Password for JMX' + - macro: '{$TOMCAT.THREADS.MAX.PCT}' + value: '75' + description: 'Threshold for busy worker threads trigger. Can be used with {#JMXNAME} as context.' + - macro: '{$TOMCAT.THREADS.MAX.TIME}' + value: 5m + description: 'The time during which the number of busy threads can exceed the threshold. Can be used with {#JMXNAME} as context.' + - macro: '{$TOMCAT.USER}' + description: 'User for JMX' + dashboards: + - uuid: 330fa4902aed4d45b8747ddb2c8c7d70 + name: 'Tomcat: Overview' + pages: + - name: General + widgets: + - type: graphprototype + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Apache Tomcat by JMX' + name: '{#JMXHOST}{#JMXCONTEXT}: Sessions' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '3' + - type: graphprototype + x: '36' + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Apache Tomcat by JMX' + name: '{#JMXNAME}: Worker threads' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: rows + value: '3' diff --git a/Apache_by_HTTP.yaml b/Apache_by_HTTP.yaml new file mode 100644 index 0000000..469d8b6 --- /dev/null +++ b/Apache_by_HTTP.yaml @@ -0,0 +1,821 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 86702e8bc514434e8c914d50c206cb94 + template: 'Apache by HTTP' + name: 'Apache by HTTP' + description: | + This template is designed for the effortless deployment of Apache monitoring by Zabbix via HTTP and doesn't require any external scripts. + + The template collects metrics by polling 'mod_status' with HTTP agent remotely. + + Setup: + + 1. See the setup instructions for mod_status: + https://httpd.apache.org/docs/current/mod/mod_status.html + + Check the availability of the module with this command line: + httpd -M 2>/dev/null | grep status_module + + This is an example configuration of the Apache web server: + + + SetHandler server-status + Require host example.com + + + 2. Set the hostname or IP address of the Apache status page host in the '{$APACHE.STATUS.HOST}' macro. You can also change the status page port in the '{$APACHE.STATUS.PORT}' macro and status page path in the '{$APACHE.STATUS.PATH}' macro if necessary. + + 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" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: b9fe6f0bbe174e9f81af84a3bc0b0e7c + name: 'Total bytes' + type: DEPENDENT + key: apache.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'The total bytes served.' + preprocessing: + - type: JSONPATH + parameters: + - '$["Total kBytes"]' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: apache.get_status + tags: + - tag: component + value: network + - uuid: b36010be10874cf188eeacc81f2c366f + name: 'Bytes per second' + type: DEPENDENT + key: apache.bytes.rate + delay: '0' + 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: apache.get_status + tags: + - tag: component + value: network + - uuid: e61be8ad92004100aca55fcedd2a3807 + name: 'Get status' + type: HTTP_AGENT + key: apache.get_status + history: 1h + value_type: TEXT + trends: '0' + 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: + - | + 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 + }; + + 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]); + } + } + + output.ServerUptimeSeconds = output.ServerUptimeSeconds || output.Uptime; + output.ServerVersion = output.ServerVersion || output.Server; + + if (typeof output.Scoreboard === 'string') { + for (var i = 0; i < output.Scoreboard.length; i++) { + var char = output.Scoreboard[i]; + + workers[char]++; + } + } + + 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.stringify(output); + url: '{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}' + retrieve_mode: BOTH + tags: + - tag: component + value: raw + triggers: + - uuid: db396445cc5042f89f31dc12cb99c32e + expression: 'nodata(/Apache by HTTP/apache.get_status,30m)=1' + 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 HTTP/net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: 5fb5101de70a43fab50d55f418462255 + name: 'Total requests' + type: DEPENDENT + key: apache.requests + delay: '0' + description: 'The total number of the Apache server accesses.' + preprocessing: + - type: JSONPATH + parameters: + - '$["Total Accesses"]' + master_item: + key: apache.get_status + tags: + - tag: component + value: network + - uuid: ee15f4958040459da53251cc3561ed39 + name: 'Requests per second' + type: DEPENDENT + key: apache.requests.rate + delay: '0' + 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: apache.get_status + tags: + - tag: component + value: network + - uuid: 3dd8ba505d584b028c7ac08d8b959eb3 + name: Uptime + type: DEPENDENT + key: apache.uptime + delay: '0' + units: uptime + description: 'The service uptime expressed in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.ServerUptimeSeconds + master_item: + key: apache.get_status + tags: + - tag: component + value: system + triggers: + - uuid: 76cfa6ebf39f4c8fbd8fde9e0f36d3ed + expression: 'last(/Apache by HTTP/apache.uptime)<10m' + name: 'Apache: Service has been restarted' + event_name: 'Apache: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: fe0de2eb1478482f99b38c13bd20564c + name: Version + type: DEPENDENT + key: apache.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The Apache service version.' + preprocessing: + - type: JSONPATH + parameters: + - $.ServerVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: apache.get_status + tags: + - tag: component + value: system + triggers: + - uuid: 5296d69af0704d0e8a07398f0b4c9685 + expression: 'last(/Apache by HTTP/apache.version,#1)<>last(/Apache by HTTP/apache.version,#2) and length(last(/Apache by HTTP/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: f74ffb92e30e48958b5b82f7dfbe5147 + name: 'Workers idle cleanup' + type: DEPENDENT + key: apache.workers.cleanup + delay: '0' + description: 'The number of workers in cleanup state.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.cleanup + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: d664bee9a330480bbaee7273b871a8d3 + name: 'Workers closing connection' + type: DEPENDENT + key: apache.workers.closing + delay: '0' + description: 'The number of workers in closing state.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.closing + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: a6fb3444585749be998ec840cd8e4511 + name: 'Workers DNS lookup' + type: DEPENDENT + key: apache.workers.dnslookup + delay: '0' + description: 'The number of workers in `dnslookup` state.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.dnslookup + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: fcf771f2a9b64a81a37db679f0494ed3 + name: 'Workers finishing' + type: DEPENDENT + key: apache.workers.finishing + delay: '0' + description: 'The number of workers in finishing state.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.finishing + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: cb81a6a77395444283bc5e065fcbfc2e + name: 'Workers keepalive (read)' + type: DEPENDENT + key: apache.workers.keepalive + delay: '0' + description: 'The number of workers in `keepalive` state.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.keepalive + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: 7fc0002a279b4541af569a03c1aca2ac + name: 'Workers logging' + type: DEPENDENT + key: apache.workers.logging + delay: '0' + description: 'The number of workers in logging state.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.logging + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: 78b0bd7d8bec49549fc003d460af9177 + name: 'Workers reading request' + type: DEPENDENT + key: apache.workers.reading + delay: '0' + description: 'The number of workers in reading state.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.reading + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: 379ac66397b94463ad17b24fbd20c615 + name: 'Workers sending reply' + type: DEPENDENT + key: apache.workers.sending + delay: '0' + description: 'The number of workers in sending state.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.sending + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: 1c90055e02a244fc8d18e73b23daa0f1 + name: 'Workers slot with no current process' + type: DEPENDENT + key: apache.workers.slot + delay: '0' + description: 'The number of slots with no current process.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.slot + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: ae21ea113e8840349aff81ab582d92b4 + name: 'Workers starting up' + type: DEPENDENT + key: apache.workers.starting + delay: '0' + description: 'The number of workers in starting state.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.starting + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: be1a05a6eab84b64ac4d51c966ea91e8 + name: 'Workers waiting for connection' + type: DEPENDENT + key: apache.workers.waiting + delay: '0' + description: 'The number of workers in waiting state.' + preprocessing: + - type: JSONPATH + parameters: + - $.Workers.waiting + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: 1752b9bcf7b34abbaf105f5261638271 + name: 'Total workers busy' + type: DEPENDENT + key: apache.workers_total.busy + delay: '0' + description: 'The total number of busy worker threads/processes.' + preprocessing: + - type: JSONPATH + parameters: + - $.BusyWorkers + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: b1b1c86a12964ae2813c63481e464ec7 + name: 'Total workers idle' + type: DEPENDENT + key: apache.workers_total.idle + delay: '0' + description: 'The total number of idle worker threads/processes.' + preprocessing: + - type: JSONPATH + parameters: + - $.IdleWorkers + master_item: + key: apache.get_status + tags: + - tag: component + value: system + - uuid: 5039d11bc3964d6e9928a0a46dd0b402 + name: 'Service response time' + type: SIMPLE + key: 'net.tcp.service.perf[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"]' + value_type: FLOAT + units: s + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: ffbb564032c7462eb0bb9b4c2f700559 + expression: 'min(/Apache by HTTP/net.tcp.service.perf[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"],5m)>{$APACHE.RESPONSE_TIME.MAX.WARN}' + 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 HTTP/net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"])=0' + tags: + - tag: scope + value: performance + - uuid: fb65918695094026838e2b9e4ca00402 + name: 'Service ping' + type: SIMPLE + key: 'net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: afe2fde35d054333adc8369a0f9af778 + expression: 'last(/Apache by HTTP/net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"])=0' + name: 'Apache: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: eee8abd3174d426092e8bca9b3ba982e + 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: f52700379f9a4ee8b378a2eb9caea070 + name: 'Bytes per request' + type: DEPENDENT + key: 'apache.bytes[per_request{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The average number of client requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.BytesPerReq + master_item: + key: apache.get_status + tags: + - tag: component + value: connection + - uuid: 062d7c941f0c468d8b63fa76ae0610f6 + name: 'Connections async closing' + type: DEPENDENT + key: 'apache.connections[async_closing{#SINGLETON}]' + delay: '0' + description: 'The number of asynchronous connections in closing state (applicable only to the event MPM).' + preprocessing: + - type: JSONPATH + parameters: + - $.ConnsAsyncClosing + master_item: + key: apache.get_status + tags: + - tag: component + value: connection + - uuid: 6cb8b255ad8343a48e622912bc298366 + name: 'Connections async keepalive' + type: DEPENDENT + key: 'apache.connections[async_keep_alive{#SINGLETON}]' + delay: '0' + description: 'The number of asynchronous connections in keepalive state (applicable only to the event MPM).' + preprocessing: + - type: JSONPATH + parameters: + - $.ConnsAsyncKeepAlive + master_item: + key: apache.get_status + tags: + - tag: component + value: connection + - uuid: 997b3452aac24ad6afbad775d649c727 + name: 'Connections async writing' + type: DEPENDENT + key: 'apache.connections[async_writing{#SINGLETON}]' + delay: '0' + description: 'The number of asynchronous connections in writing state (applicable only to the event MPM).' + preprocessing: + - type: JSONPATH + parameters: + - $.ConnsAsyncWriting + master_item: + key: apache.get_status + tags: + - tag: component + value: connection + - uuid: 31cb044eed904ca19150921fe36f3285 + name: 'Connections total' + type: DEPENDENT + key: 'apache.connections[total{#SINGLETON}]' + delay: '0' + description: 'The number of total connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.ConnsTotal + master_item: + key: apache.get_status + tags: + - tag: component + value: connection + - uuid: 34555340f3ad4b878504df188f54a9c9 + name: 'Number of async processes' + type: DEPENDENT + key: 'apache.process[num{#SINGLETON}]' + delay: '0' + description: 'The number of asynchronous processes.' + preprocessing: + - type: JSONPATH + parameters: + - $.Processes + master_item: + key: apache.get_status + tags: + - tag: component + value: system + graph_prototypes: + - uuid: 066b53ed2244414ca3090498eb035c27 + name: 'Apache: Current async connections{#SINGLETON}' + graph_items: + - color: 199C0D + item: + host: 'Apache by HTTP' + key: 'apache.connections[async_closing{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache by HTTP' + key: 'apache.connections[async_keep_alive{#SINGLETON}]' + - sortorder: '2' + color: 00611C + item: + host: 'Apache by HTTP' + key: 'apache.connections[async_writing{#SINGLETON}]' + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'Apache by HTTP' + key: 'apache.connections[total{#SINGLETON}]' + - uuid: dbaa0c2468cc40fca977fb382d19cb78 + name: 'Apache: Current async processes{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache by HTTP' + key: 'apache.process[num{#SINGLETON}]' + master_item: + key: apache.get_status + preprocessing: + - type: JAVASCRIPT + parameters: + - | + return JSON.stringify(JSON.parse(value).ServerMPM === 'event' + ? [{'{#SINGLETON}': ''}] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: software + - tag: target + value: apache + macros: + - 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: '' + description: 'The hostname or IP address of the Apache status page host.' + - 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: a328c9e713424465a8e1adec7322b0dc + name: 'Apache performance' + pages: + - name: General + widgets: + - type: graph + width: '72' + height: '7' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache by HTTP' + name: 'Apache: Worker states' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache by HTTP' + name: 'Apache: Requests per second' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '12' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Apache by HTTP' + name: 'Apache: Current async connections{#SINGLETON}' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache by HTTP' + name: 'Apache: Workers total' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + x: '36' + 'y': '12' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Apache by HTTP' + name: 'Apache: Current async processes{#SINGLETON}' + - type: STRING + name: reference + value: AAAAE + valuemaps: + - uuid: a5d1f911fb264bd4bc087ea582626d7f + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: a3998992f7504a12826e3c4d592836b5 + name: 'Apache: Requests per second' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache by HTTP' + key: apache.requests.rate + - uuid: 1629062b5cd74b67af9a60226a79f8f1 + name: 'Apache: Worker states' + graph_items: + - color: 199C0D + item: + host: 'Apache by HTTP' + key: apache.workers.dnslookup + - sortorder: '1' + color: F63100 + item: + host: 'Apache by HTTP' + key: apache.workers.cleanup + - sortorder: '2' + color: 00611C + item: + host: 'Apache by HTTP' + key: apache.workers.logging + - sortorder: '3' + color: F7941D + item: + host: 'Apache by HTTP' + key: apache.workers.reading + - sortorder: '4' + color: FC6EA3 + item: + host: 'Apache by HTTP' + key: apache.workers.sending + - sortorder: '5' + color: 6C59DC + item: + host: 'Apache by HTTP' + key: apache.workers.starting + - sortorder: '6' + color: C7A72D + item: + host: 'Apache by HTTP' + key: apache.workers.closing + - sortorder: '7' + color: BA2A5D + item: + host: 'Apache by HTTP' + key: apache.workers.finishing + - sortorder: '8' + color: F230E0 + item: + host: 'Apache by HTTP' + key: apache.workers.keepalive + - sortorder: '9' + color: 5CCD18 + item: + host: 'Apache by HTTP' + key: apache.workers.slot + - sortorder: '10' + color: BB2A02 + item: + host: 'Apache by HTTP' + key: apache.workers.waiting + - uuid: 78e59f1b5eb747019f92921ac5ef48b0 + name: 'Apache: Workers total' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'Apache by HTTP' + key: apache.workers_total.busy + - sortorder: '1' + color: F63100 + item: + host: 'Apache by HTTP' + key: apache.workers_total.idle diff --git a/Apache_by_Zabbix_agent.yaml b/Apache_by_Zabbix_agent.yaml new file mode 100644 index 0000000..d2dceaa --- /dev/null +++ b/Apache_by_Zabbix_agent.yaml @@ -0,0 +1,968 @@ +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" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 2d3ebb059bd944ee8a7b95e2c60b08f0 + name: 'Total bytes' + type: DEPENDENT + key: apache.bytes + delay: '0' + 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: 'Bytes per second' + type: DEPENDENT + key: apache.bytes.rate + delay: '0' + 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: 'Total requests' + type: DEPENDENT + key: apache.requests + delay: '0' + 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: 'Requests per second' + type: DEPENDENT + key: apache.requests.rate + delay: '0' + 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: Uptime + type: DEPENDENT + key: apache.uptime + delay: '0' + 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: Service has been restarted' + event_name: 'Apache: Service 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: Version + type: DEPENDENT + key: apache.version + delay: '0' + value_type: CHAR + trends: '0' + 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: 'Workers idle cleanup' + type: DEPENDENT + key: apache.workers.cleanup + delay: '0' + 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: 'Workers closing connection' + type: DEPENDENT + key: apache.workers.closing + delay: '0' + 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: 'Workers DNS lookup' + type: DEPENDENT + key: apache.workers.dnslookup + delay: '0' + 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: 'Workers finishing' + type: DEPENDENT + key: apache.workers.finishing + delay: '0' + 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: 'Workers keepalive (read)' + type: DEPENDENT + key: apache.workers.keepalive + delay: '0' + 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: 'Workers logging' + type: DEPENDENT + key: apache.workers.logging + delay: '0' + 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: 'Workers reading request' + type: DEPENDENT + key: apache.workers.reading + delay: '0' + 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: 'Workers sending reply' + type: DEPENDENT + key: apache.workers.sending + delay: '0' + 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: 'Workers slot with no current process' + type: DEPENDENT + key: apache.workers.slot + delay: '0' + 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: 'Workers starting up' + type: DEPENDENT + key: apache.workers.starting + delay: '0' + 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: 'Workers waiting for connection' + type: DEPENDENT + key: apache.workers.waiting + delay: '0' + 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: 'Total workers busy' + type: DEPENDENT + key: apache.workers_total.busy + delay: '0' + 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: 'Total workers idle' + type: DEPENDENT + key: apache.workers_total.idle + delay: '0' + 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: 'Service response time' + key: 'net.tcp.service.perf[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"]' + value_type: FLOAT + units: s + tags: + - tag: component + value: application + - tag: component + value: health + - uuid: 369f00e2970048c786ce3bd609e65566 + name: 'Service ping' + key: 'net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + - uuid: 99b1a38ed45b4212974b0bea72b076d2 + name: 'Get processes summary' + key: 'proc.get[{$APACHE.PROCESS.NAME.PARAMETER},,,summary]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The aggregated data of summary metrics for all processes.' + tags: + - tag: component + value: raw + - uuid: 115413a0f5ab4caba418ab841ad81eba + name: 'Get status' + key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' + history: 1h + value_type: TEXT + trends: '0' + 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: + - | + 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 + }; + + 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]); + } + } + + output.ServerUptimeSeconds = output.ServerUptimeSeconds || output.Uptime; + output.ServerVersion = output.ServerVersion || output.Server; + + if (typeof output.Scoreboard === 'string') { + for (var i = 0; i < output.Scoreboard.length; i++) { + var char = output.Scoreboard[i]; + + workers[char]++; + } + } + + 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.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: 'Bytes per request' + type: DEPENDENT + key: 'apache.bytes[per_request{#SINGLETON}]' + delay: '0' + 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: 'Connections async closing' + type: DEPENDENT + key: 'apache.connections[async_closing{#SINGLETON}]' + delay: '0' + 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: 'Connections async keepalive' + type: DEPENDENT + key: 'apache.connections[async_keep_alive{#SINGLETON}]' + delay: '0' + 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: 'Connections async writing' + type: DEPENDENT + key: 'apache.connections[async_writing{#SINGLETON}]' + delay: '0' + 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: 'Connections total' + type: DEPENDENT + key: 'apache.connections[total{#SINGLETON}]' + delay: '0' + 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: 'Number of async processes' + type: DEPENDENT + key: 'apache.process[num{#SINGLETON}]' + delay: '0' + 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: 'Get process data' + type: DEPENDENT + key: 'apache.proc.get[{#APACHE.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + 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: 'Number of running processes' + type: DEPENDENT + key: 'apache.proc.num[{#APACHE.NAME}]' + delay: '0' + 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: 'Memory usage, %' + type: DEPENDENT + key: 'apache.proc.pmem[{#APACHE.NAME}]' + delay: '0' + 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 + - type: IN_RANGE + parameters: + - '0' + - '' + error_handler: DISCARD_VALUE + master_item: + key: 'apache.proc.get[{#APACHE.NAME}]' + tags: + - tag: component + value: memory + - uuid: 384bf197e6a241b3b63bb89d009bba6b + name: 'Memory usage (rss)' + type: DEPENDENT + key: 'apache.proc.rss[{#APACHE.NAME}]' + delay: '0' + 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 + - type: IN_RANGE + parameters: + - '0' + - '' + error_handler: DISCARD_VALUE + master_item: + key: 'apache.proc.get[{#APACHE.NAME}]' + tags: + - tag: component + value: memory + - uuid: f20b7a01ff134a128c54ea83af8557e2 + name: 'Memory usage (vsize)' + type: DEPENDENT + key: 'apache.proc.vmem[{#APACHE.NAME}]' + delay: '0' + 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 + - type: IN_RANGE + parameters: + - '0' + - '' + error_handler: DISCARD_VALUE + master_item: + key: 'apache.proc.get[{#APACHE.NAME}]' + tags: + - tag: component + value: memory + - uuid: b73280fb0af64c7899abfc74cc074b13 + name: 'CPU utilization' + key: 'proc.cpu.util[{#APACHE.NAME}]' + 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: '72' + height: '7' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache by Zabbix agent' + name: 'Apache: Worker states' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache by Zabbix agent' + name: 'Apache: Requests per second' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '12' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Apache by Zabbix agent' + name: 'Apache: Current async connections{#SINGLETON}' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache by Zabbix agent' + name: 'Apache: Workers total' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + x: '36' + 'y': '12' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Apache by Zabbix agent' + name: 'Apache: Current async processes{#SINGLETON}' + - type: STRING + name: reference + value: AAAAE + 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 diff --git a/Apache_by_Zabbix_agent_active.yaml b/Apache_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..6e2ebcc --- /dev/null +++ b/Apache_by_Zabbix_agent_active.yaml @@ -0,0 +1,973 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: aa3286a824464020863ead141e8f0afc + template: 'Apache by Zabbix agent active' + name: 'Apache by Zabbix agent active' + 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" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 4f77b3a553d446619715e681799ea92c + name: 'Total bytes' + type: DEPENDENT + key: apache.bytes + delay: '0' + 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: a15b5f65e81440a49fc5918afd31d73b + name: 'Bytes per second' + type: DEPENDENT + key: apache.bytes.rate + delay: '0' + 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: b0726bf9933a4349854bce2005e66f77 + name: 'Total requests' + type: DEPENDENT + key: apache.requests + delay: '0' + 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: 864887722e62444a8d8f0756f161fc23 + name: 'Requests per second' + type: DEPENDENT + key: apache.requests.rate + delay: '0' + 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: af675fca551a45659f823cdf2e06175c + name: Uptime + type: DEPENDENT + key: apache.uptime + delay: '0' + 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: 2f9e1d5e188f4f6190088986f6fc3f70 + expression: 'last(/Apache by Zabbix agent active/apache.uptime)<10m' + name: 'Apache: Service has been restarted' + event_name: 'Apache: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 67523f1351814d388f95178363a106ff + name: Version + type: DEPENDENT + key: apache.version + delay: '0' + value_type: CHAR + trends: '0' + 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: 80d8c27a060347a4a852c3f6481244c3 + expression: 'last(/Apache by Zabbix agent active/apache.version,#1)<>last(/Apache by Zabbix agent active/apache.version,#2) and length(last(/Apache by Zabbix agent active/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: 93beadab3d194772ac1a6f1950b20cad + name: 'Workers idle cleanup' + type: DEPENDENT + key: apache.workers.cleanup + delay: '0' + 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: 657a21b70a104778b32805226a05b27a + name: 'Workers closing connection' + type: DEPENDENT + key: apache.workers.closing + delay: '0' + 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: 86afd9d804f146b1adeed8844223d38b + name: 'Workers DNS lookup' + type: DEPENDENT + key: apache.workers.dnslookup + delay: '0' + 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: 70565d82384a439587ff6a32fa09ee1e + name: 'Workers finishing' + type: DEPENDENT + key: apache.workers.finishing + delay: '0' + 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: 7a2c9e6039b942c09ff30d8ff77b9658 + name: 'Workers keepalive (read)' + type: DEPENDENT + key: apache.workers.keepalive + delay: '0' + 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: 0c3f9385fcc047d6ae8ee523f7bebb79 + name: 'Workers logging' + type: DEPENDENT + key: apache.workers.logging + delay: '0' + 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: 7a4580dcfd974c7f9d59b8703054e77f + name: 'Workers reading request' + type: DEPENDENT + key: apache.workers.reading + delay: '0' + 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: 63d775979b934e72a2ed474419cf5c03 + name: 'Workers sending reply' + type: DEPENDENT + key: apache.workers.sending + delay: '0' + 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: 8acd6c143a074c6faa46aa64869afc9b + name: 'Workers slot with no current process' + type: DEPENDENT + key: apache.workers.slot + delay: '0' + 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: 86200cce3b7d47798cc35bab713f87aa + name: 'Workers starting up' + type: DEPENDENT + key: apache.workers.starting + delay: '0' + 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: 64b26283b39946fe92d729ac00afeca0 + name: 'Workers waiting for connection' + type: DEPENDENT + key: apache.workers.waiting + delay: '0' + 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: 90757d625da543b18e136da7a0099be6 + name: 'Total workers busy' + type: DEPENDENT + key: apache.workers_total.busy + delay: '0' + 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: 87be88163d4940658400ddf762faaeb6 + name: 'Total workers idle' + type: DEPENDENT + key: apache.workers_total.idle + delay: '0' + 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: 3ac09d338f0847288eda20732bf5aa10 + name: 'Service response time' + type: ZABBIX_ACTIVE + key: 'net.tcp.service.perf[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"]' + value_type: FLOAT + units: s + tags: + - tag: component + value: application + - tag: component + value: health + - uuid: e4252071d0864fd5bf7c60c4d6e4915d + name: 'Service ping' + type: ZABBIX_ACTIVE + key: 'net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + - uuid: 37f15f5a28364399aa66aad31d0acc08 + name: 'Get processes summary' + type: ZABBIX_ACTIVE + key: 'proc.get[{$APACHE.PROCESS.NAME.PARAMETER},,,summary]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The aggregated data of summary metrics for all processes.' + tags: + - tag: component + value: raw + - uuid: d103e519e5044dfd982d535a0981bc84 + name: 'Get status' + type: ZABBIX_ACTIVE + key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' + history: 1h + value_type: TEXT + trends: '0' + 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: + - | + 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 + }; + + 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]); + } + } + + output.ServerUptimeSeconds = output.ServerUptimeSeconds || output.Uptime; + output.ServerVersion = output.ServerVersion || output.Server; + + if (typeof output.Scoreboard === 'string') { + for (var i = 0; i < output.Scoreboard.length; i++) { + var char = output.Scoreboard[i]; + + workers[char]++; + } + } + + 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.stringify(output); + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 973011cd85cb4ef58d25bc5e0a1118b6 + 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: a640f7cba9314dd595d609ef79286548 + name: 'Bytes per request' + type: DEPENDENT + key: 'apache.bytes[per_request{#SINGLETON}]' + delay: '0' + 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: 3f1daaa5642545f1bdd5ab9b50ec49c9 + name: 'Connections async closing' + type: DEPENDENT + key: 'apache.connections[async_closing{#SINGLETON}]' + delay: '0' + 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: 0beb4c6e7915408691264f8aa8073d67 + name: 'Connections async keepalive' + type: DEPENDENT + key: 'apache.connections[async_keep_alive{#SINGLETON}]' + delay: '0' + 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: da590c6635484f178d4d26de5863f00e + name: 'Connections async writing' + type: DEPENDENT + key: 'apache.connections[async_writing{#SINGLETON}]' + delay: '0' + 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: c11f36a9483444e38cecb5e7ae667735 + name: 'Connections total' + type: DEPENDENT + key: 'apache.connections[total{#SINGLETON}]' + delay: '0' + 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: ca00fe11b10140f6ad791c8fcc012082 + name: 'Number of async processes' + type: DEPENDENT + key: 'apache.process[num{#SINGLETON}]' + delay: '0' + 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: 43fb144dfa5b47afbdd146231e185c13 + name: 'Apache: Current async connections{#SINGLETON}' + graph_items: + - color: 199C0D + item: + host: 'Apache by Zabbix agent active' + key: 'apache.connections[async_closing{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'Apache by Zabbix agent active' + key: 'apache.connections[async_keep_alive{#SINGLETON}]' + - sortorder: '2' + color: 00611C + item: + host: 'Apache by Zabbix agent active' + key: 'apache.connections[async_writing{#SINGLETON}]' + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'Apache by Zabbix agent active' + key: 'apache.connections[total{#SINGLETON}]' + - uuid: 1ab50e84f1d94ea98bb7e5c9d0cf159c + name: 'Apache: Current async processes{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache by Zabbix agent active' + 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: 7c4b0d02427b4cf199817b5d5ae66378 + 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: 68c53fcf8d8545ac98e923c04945aec4 + name: 'Get process data' + type: DEPENDENT + key: 'apache.proc.get[{#APACHE.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + 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: 5f29e764f0024047bd955388b6585442 + name: 'Number of running processes' + type: DEPENDENT + key: 'apache.proc.num[{#APACHE.NAME}]' + delay: '0' + 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: 653a0f021ece4993aaaef441172366b3 + expression: 'last(/Apache by Zabbix agent active/apache.proc.num[{#APACHE.NAME}])=0' + name: 'Apache: Process is not running' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 77f232c075384a11a3aefd31a55c0113 + name: 'Memory usage, %' + type: DEPENDENT + key: 'apache.proc.pmem[{#APACHE.NAME}]' + delay: '0' + 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 + - type: IN_RANGE + parameters: + - '0' + - '' + error_handler: DISCARD_VALUE + master_item: + key: 'apache.proc.get[{#APACHE.NAME}]' + tags: + - tag: component + value: memory + - uuid: 0ded808ba0b34d03865a288dd9bb0672 + name: 'Memory usage (rss)' + type: DEPENDENT + key: 'apache.proc.rss[{#APACHE.NAME}]' + delay: '0' + 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 + - type: IN_RANGE + parameters: + - '0' + - '' + error_handler: DISCARD_VALUE + master_item: + key: 'apache.proc.get[{#APACHE.NAME}]' + tags: + - tag: component + value: memory + - uuid: ba4d0197f2cb484597175ffd8f693dce + name: 'Memory usage (vsize)' + type: DEPENDENT + key: 'apache.proc.vmem[{#APACHE.NAME}]' + delay: '0' + 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 + - type: IN_RANGE + parameters: + - '0' + - '' + error_handler: DISCARD_VALUE + master_item: + key: 'apache.proc.get[{#APACHE.NAME}]' + tags: + - tag: component + value: memory + - uuid: b1e48077179f4e439e2d3c3b918c9a03 + name: 'CPU utilization' + type: ZABBIX_ACTIVE + key: 'proc.cpu.util[{#APACHE.NAME}]' + value_type: FLOAT + units: '%' + description: 'The percentage of the CPU utilization by a process {#APACHE.NAME}.' + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: c848c1449cef42bd90af13e6767bd2c9 + expression: 'nodata(/Apache by Zabbix agent active/web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"],30m)=1 and last(/Apache by Zabbix agent active/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 active/net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"])=0 and last(/Apache by Zabbix agent active/apache.proc.num[{#APACHE.NAME}])>0' + tags: + - tag: scope + value: availability + - uuid: 4b460b835cb14513b5aace3275827c79 + expression: 'last(/Apache by Zabbix agent active/net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"])=0 and last(/Apache by Zabbix agent active/apache.proc.num[{#APACHE.NAME}])>0' + name: 'Apache: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 93157365ee90446fa8191dfc5d623874 + expression: 'min(/Apache by Zabbix agent active/net.tcp.service.perf[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"],5m)>{$APACHE.RESPONSE_TIME.MAX.WARN} and last(/Apache by Zabbix agent active/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 active/net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"])=0 and last(/Apache by Zabbix agent active/apache.proc.num[{#APACHE.NAME}])>0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 5427aef4eaad4519b193b38cdc71fde1 + name: 'Apache: Memory usage[{#APACHE.NAME}]' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Apache by Zabbix agent active' + key: 'apache.proc.vmem[{#APACHE.NAME}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Apache by Zabbix agent active' + 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: dd69695bb88241e6b457d06da37967fc + name: 'Apache performance' + pages: + - name: General + widgets: + - type: graph + width: '72' + height: '7' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache by Zabbix agent active' + name: 'Apache: Worker states' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache by Zabbix agent active' + name: 'Apache: Requests per second' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '12' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Apache by Zabbix agent active' + name: 'Apache: Current async connections{#SINGLETON}' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Apache by Zabbix agent active' + name: 'Apache: Workers total' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + x: '36' + 'y': '12' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Apache by Zabbix agent active' + name: 'Apache: Current async processes{#SINGLETON}' + - type: STRING + name: reference + value: AAAAE + valuemaps: + - uuid: 872ac3dadab34de9a69acd71d68cd7ea + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 3461ebdbfb024405a8e8da6c3e970d0d + name: 'Apache: Requests per second' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Apache by Zabbix agent active' + key: apache.requests.rate + - uuid: 0183d7d9c05843b19db5b4ba94f99350 + name: 'Apache: Worker states' + graph_items: + - color: 199C0D + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.dnslookup + - sortorder: '1' + color: F63100 + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.cleanup + - sortorder: '2' + color: 00611C + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.logging + - sortorder: '3' + color: F7941D + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.reading + - sortorder: '4' + color: FC6EA3 + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.sending + - sortorder: '5' + color: 6C59DC + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.starting + - sortorder: '6' + color: C7A72D + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.closing + - sortorder: '7' + color: BA2A5D + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.finishing + - sortorder: '8' + color: F230E0 + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.keepalive + - sortorder: '9' + color: 5CCD18 + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.slot + - sortorder: '10' + color: BB2A02 + item: + host: 'Apache by Zabbix agent active' + key: apache.workers.waiting + - uuid: c82c849b07564ca29e58df3b984c1da9 + name: 'Apache: Workers total' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'Apache by Zabbix agent active' + key: apache.workers_total.busy + - sortorder: '1' + color: F63100 + item: + host: 'Apache by Zabbix agent active' + key: apache.workers_total.idle diff --git a/Aranet_Cloud.yaml b/Aranet_Cloud.yaml new file mode 100644 index 0000000..500c0bc --- /dev/null +++ b/Aranet_Cloud.yaml @@ -0,0 +1,1573 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: af21edc47557400583e537904ea632aa + template: 'Aranet Cloud' + name: 'Aranet Cloud' + description: 'Generated by official Zabbix template tool "Templator"' + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 56f89fce2b1541b7898ad56362d4b28a + name: 'Get data' + type: SCRIPT + key: aranet.get_data + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Aranet = { + params: {}, + auth_token: null, + refresh_token: null, + space_id: null, + + setParams: function (params) { + ['api_endpoint', 'username', 'password', 'space_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + }); + + Aranet.params = params; + if (typeof Aranet.params.api_endpoint === 'string') { + if (!Aranet.params.api_endpoint.endsWith('/')) { + Aranet.params.api_endpoint += '/'; + } + } + + Aranet.tls = new CTlsConfig(params.tls_verify); + Aranet.tls.checkURL(Aranet.params.api_endpoint); + }, + + request: function (method, query, data) { + var response, + request = new HttpRequest(Aranet.tls.options), + url = Aranet.params.api_endpoint + query; + + request.addHeader('Content-Type: application/json'); + + if (Aranet.auth_token !== null) { + request.addHeader('Authorization: Bearer ' + Aranet.auth_token); + } + + if (typeof data !== 'undefined') { + data = JSON.stringify(data); + } + + switch (method) { + case 'get': + response = request.get(url, data); + break; + + case 'post': + response = request.post(url, data); + break; + + default: + throw 'Unsupported HTTP request method: ' + method; + } + + Zabbix.log(4, '[ Aranet scraper ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + var message = 'Request failed with status code ' + request.getStatus(); + + message += ': ' + response; + throw message; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Aranet Cloud. Check debug log for more information.'; + } + } + + return { + status: request.getStatus(), + response: response + }; + }, + + login: function () { + var result, + data = { + login: Aranet.params.username, + passw: Aranet.params.password + }; + + result = Aranet.request('post', 'user/login', data); + if (typeof result.response !== 'object' + || typeof result.response.auth === 'undefined' + || result.status != 200) { + throw 'Cannot login to Aranet Cloud. Check debug log for more information.'; + } + + Aranet.auth_token = result.response.auth; + Aranet.refresh_token = result.response.refresh; + + var spaces = result.response.spaces; + for (var key in spaces) { + if (spaces[key] == Aranet.params.space_name) { + Aranet.space_id = key; + break; + } + } + + return result.response; + }, + + logout: function () { + var result, + data = { + refresh: Aranet.refresh_token + }; + + try { + result = Aranet.request('post', 'user/logout', data); + if (result.status != 204) { + throw 'Cannot logout from Aranet Cloud ' + request.getStatus() + ': ' + result.response; + } + } + catch (error) { + Zabbix.log(4, '[ Aranet scraper ] ' + error) + } + }, + + getMetrics: function () { + var result = Aranet.request('get', 'metrics/' + Aranet.space_id); + + if (typeof result.response !== 'object' + || typeof result.response.data === 'undefined' + || result.status != 200) { + throw 'Cannot get metrics data from Aranet Cloud. Check debug log for more information.'; + }; + + return result.response; + }, + + getSensors: function () { + var result = Aranet.request('get', 'sensors/' + Aranet.space_id + '?fields=devices,metrics,telemetry,name'); + + if (typeof result.response !== 'object' + || typeof result.response.data === 'undefined' + || result.status != 200) { + throw 'Cannot get sensors data from Aranet Cloud. Check debug log for more information.'; + }; + + return result.response; + }, + + getGateways: function () { + var result = Aranet.request('get', 'gateways/' + Aranet.space_id); + + if (typeof result.response !== 'object' + || typeof result.response.devices === 'undefined' + || result.status != 200) { + throw 'Cannot get gateways data from Aranet Cloud. Check debug log for more information.'; + }; + + return result.response; + } + } + + var processed_metrics = {}, + processed_sensors = []; + + try { + Aranet.setParams(JSON.parse(value)); + + Aranet.login(); + + var raw_metrics = Aranet.getMetrics(), + raw_sensors = Aranet.getSensors(), + raw_gateways = Aranet.getGateways(); + + Aranet.logout(); + + var items = raw_metrics.data.items; + for (item_idx in items) { + var unit_name, + units = items[item_idx].units; + + units.some(function (unit) { + unit_name = unit.name; + if (unit.selected) { + return true; + } + }); + + processed_metrics[items[item_idx].id] = { + name: items[item_idx].name, + unit: unit_name + } + + delete items[item_idx]; + } + + var items = raw_sensors.data.items; + for (item_idx in items) { + var upd_ts = 0, + gateway = {}, + sensor_metrics = [], + metrics = items[item_idx].metrics, + telemetry = items[item_idx].telemetry; + + for (m_idx in metrics) { + var unit = processed_metrics[metrics[m_idx].id]; + + if (upd_ts < metrics[m_idx].t) { + upd_ts = metrics[m_idx].t; + } + + sensor_metrics.push({ + name: unit.name, + unit: unit.unit, + value: metrics[m_idx].v + }); + } + + for (var t_idx in telemetry) { + var unit = processed_metrics[telemetry[t_idx].id]; + + if (upd_ts < telemetry[t_idx].t) { + upd_ts = telemetry[t_idx].t; + } + + sensor_metrics.push({ + name: unit.name, + unit: unit.unit, + value: telemetry[t_idx].v + }); + } + + raw_gateways.devices.some(function (dev) { + if (items[item_idx].devices[0].id === dev.id) { + gateway = { + id: dev.id, + name: dev.device + } + return true; + } + }) + + if (upd_ts) { + sensor_metrics.push({ + name: 'Last update', + unit: 's', + value: upd_ts + }); + } + + var sensor_id = parseInt(items[item_idx].id).toString(16).slice(-5); + + processed_sensors.push({ + id: sensor_id, + name: items[item_idx].name.trim() === '' ? sensor_id : items[item_idx].name, + gateway: gateway, + metrics: sensor_metrics + }); + + delete items[item_idx]; + } + + return JSON.stringify(processed_sensors); + } + catch (error) { + Zabbix.log(3, '[ Aranet scraper ] ERROR: ' + error); + throw 'Scraping failed: ' + error; + } + timeout: 10s + parameters: + - name: api_endpoint + value: '{$ARANET.API.ENDPOINT}' + - name: password + value: '{$ARANET.API.PASSWORD}' + - name: space_name + value: '{$ARANET.API.SPACE_NAME}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Aranet Cloud"}' + - name: username + value: '{$ARANET.API.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 92fb73948fa74de8a6a219397b77b570 + name: 'Sensors discovery' + type: DEPENDENT + key: aranet.sensor.discovery + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery for Aranet Cloud sensors' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value), + output = []; + + input.forEach(function (sensor) { + sensor.metrics.forEach(function (metric) { + output.push( + { + '{#SENSOR_ID}': sensor.id, + '{#SENSOR_NAME}': sensor.name, + '{#GATEWAY_ID}': sensor.gateway.id, + '{#GATEWAY_NAME}': sensor.gateway.name, + '{#METRIC}': metric.name, + '{#UNIT}': metric.unit + } + ); + }) + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: aranet.get_data + tags: + - tag: component + value: discovery + - tag: component + value: raw + discovery_rules: + - uuid: c4d177c29cb34e87b6bec0d22bd3ae23 + name: 'Battery voltage discovery' + type: DEPENDENT + key: aranet.battery.voltage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: 'Battery voltage' + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Battery voltage sensors' + item_prototypes: + - uuid: b5fca30b1433461f82ea7fe5c72687ef + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.battery.voltage["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + trigger_prototypes: + - uuid: 6a931421d804418085e586dfc0e11311 + expression: 'max(/Aranet Cloud/aranet.battery.voltage["{#GATEWAY_ID}", "{#SENSOR_ID}"],5m) < {$ARANET.BATT.VOLTAGE.MIN.CRIT:"{#SENSOR_NAME}"}' + name: 'Aranet: {#METRIC}: Critically low battery voltage on "[{#GATEWAY_NAME}] {#SENSOR_NAME}"' + event_name: 'Aranet: {#METRIC}: Critically low battery voltage on "[{#GATEWAY_NAME}] {#SENSOR_NAME}" (below {$ARANET.BATT.VOLTAGE.MIN.CRIT:"{#SENSOR_NAME}"}{#UNIT} for 5m)' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: d729130760f9418baa40fb9eeb8a3ca4 + expression: 'max(/Aranet Cloud/aranet.battery.voltage["{#GATEWAY_ID}", "{#SENSOR_ID}"],5m) < {$ARANET.BATT.VOLTAGE.MIN.WARN:"{#SENSOR_NAME}"}' + name: 'Aranet: {#METRIC}: Low battery voltage on "[{#GATEWAY_NAME}] {#SENSOR_NAME}"' + event_name: 'Aranet: {#METRIC}: Low battery voltage on "[{#GATEWAY_NAME}] {#SENSOR_NAME}" (below {$ARANET.BATT.VOLTAGE.MIN.WARN:"{#SENSOR_NAME}"}{#UNIT} for 5m)' + priority: WARNING + dependencies: + - name: 'Aranet: {#METRIC}: Critically low battery voltage on "[{#GATEWAY_NAME}] {#SENSOR_NAME}"' + expression: 'max(/Aranet Cloud/aranet.battery.voltage["{#GATEWAY_ID}", "{#SENSOR_ID}"],5m) < {$ARANET.BATT.VOLTAGE.MIN.CRIT:"{#SENSOR_NAME}"}' + tags: + - tag: scope + value: capacity + master_item: + key: aranet.sensor.discovery + - uuid: f10b45e1e1024cb19ea8a705281e61fc + name: 'CO2 discovery' + type: DEPENDENT + key: aranet.co2.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: CO₂ + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud CO2 sensors' + item_prototypes: + - uuid: 5057bec2a8d0446cb3515f1771e30d41 + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.co2["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + trigger_prototypes: + - uuid: 9d88ae8357b444728c63844462d25f83 + expression: 'min(/Aranet Cloud/aranet.co2["{#GATEWAY_ID}", "{#SENSOR_ID}"],5m) > {$ARANET.CO2.MAX.CRIT:"{#SENSOR_NAME}"}' + name: 'Aranet: {#METRIC}: Critically high CO2 level on "[{#GATEWAY_NAME}] {#SENSOR_NAME}"' + event_name: 'Aranet: {#METRIC}: Critically high CO2 level on "[{#GATEWAY_NAME}] {#SENSOR_NAME}" (over {$ARANET.CO2.MAX.CRIT:"{#SENSOR_NAME}"}{#UNIT} for 5m)' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: cc54c75ee607485981388da0f7f99ea2 + expression: 'min(/Aranet Cloud/aranet.co2["{#GATEWAY_ID}", "{#SENSOR_ID}"],5m) > {$ARANET.CO2.MAX.WARN:"{#SENSOR_NAME}"}' + name: 'Aranet: {#METRIC}: High CO2 level on "[{#GATEWAY_NAME}] {#SENSOR_NAME}"' + event_name: 'Aranet: {#METRIC}: High CO2 level on "[{#GATEWAY_NAME}] {#SENSOR_NAME}" (over {$ARANET.CO2.MAX.WARN:"{#SENSOR_NAME}"}{#UNIT} for 5m)' + priority: WARNING + dependencies: + - name: 'Aranet: {#METRIC}: Critically high CO2 level on "[{#GATEWAY_NAME}] {#SENSOR_NAME}"' + expression: 'min(/Aranet Cloud/aranet.co2["{#GATEWAY_ID}", "{#SENSOR_ID}"],5m) > {$ARANET.CO2.MAX.CRIT:"{#SENSOR_NAME}"}' + tags: + - tag: scope + value: notice + master_item: + key: aranet.sensor.discovery + - uuid: c42c2ae80f0d40688031f0ef3adb4dfb + name: 'Current discovery' + type: DEPENDENT + key: aranet.current.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: Current + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Current sensors' + item_prototypes: + - uuid: 68434a6b6881497b8f7892b00044e3e7 + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.current["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 0d5eca62cf6e4db8abed33e7ad907925 + name: 'Differential Pressure discovery' + type: DEPENDENT + key: aranet.diff_pressure.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: 'Differential Pressure' + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Differential Pressure sensors' + item_prototypes: + - uuid: d02fa9c559af492d8f23503c6c0e6b67 + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.diff_pressure["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: b9f0950111b6488098c79a60b2a444d6 + name: 'Distance discovery' + type: DEPENDENT + key: aranet.distance.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: Distance + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Distance sensors' + item_prototypes: + - uuid: 4a2dd84d9be34e39b4b8e0c03199ebec + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.distance["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 7cf9f5296e784045a86aa0fc7bb1ba69 + name: 'Humidity discovery' + type: DEPENDENT + key: aranet.humidity.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: Humidity + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud humidity sensors' + item_prototypes: + - uuid: b0b25cd929fe493e8db07b19f64e623a + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.humidity["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + trigger_prototypes: + - uuid: 9697528bedd64aca9da1e6343182fe0c + expression: 'min(/Aranet Cloud/aranet.humidity["{#GATEWAY_ID}", "{#SENSOR_ID}"],5m) > {$ARANET.HUMIDITY.MAX.WARN:"{#SENSOR_NAME}"}' + name: 'Aranet: {#METRIC}: High humidity on "[{#GATEWAY_NAME}] {#SENSOR_NAME}"' + event_name: 'Aranet: {#METRIC}: High humidity on "[{#GATEWAY_NAME}] {#SENSOR_NAME}" (over {$ARANET.HUMIDITY.MAX.WARN:"{#SENSOR_NAME}"}{#UNIT} for 5m)' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 85c1be625bc940588671bc43e6ed6a8a + expression: 'max(/Aranet Cloud/aranet.humidity["{#GATEWAY_ID}", "{#SENSOR_ID}"],5m) < {$ARANET.HUMIDITY.MIN.WARN:"{#SENSOR_NAME}"}' + name: 'Aranet: {#METRIC}: Low humidity on "[{#GATEWAY_NAME}] {#SENSOR_NAME}"' + event_name: 'Aranet: {#METRIC}: Low humidity on "[{#GATEWAY_NAME}] {#SENSOR_NAME}" (below {$ARANET.HUMIDITY.MIN.WARN:"{#SENSOR_NAME}"}{#UNIT} for 5m)' + priority: WARNING + dependencies: + - name: 'Aranet: {#METRIC}: High humidity on "[{#GATEWAY_NAME}] {#SENSOR_NAME}"' + expression: 'min(/Aranet Cloud/aranet.humidity["{#GATEWAY_ID}", "{#SENSOR_ID}"],5m) > {$ARANET.HUMIDITY.MAX.WARN:"{#SENSOR_NAME}"}' + tags: + - tag: scope + value: notice + master_item: + key: aranet.sensor.discovery + - uuid: 144396930b4b4049acb4bfd7b183a6f7 + name: 'Illuminance discovery' + type: DEPENDENT + key: aranet.illuminance.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: Illuminance + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Illuminance sensors' + item_prototypes: + - uuid: 0617cbdf99844d82a469bf600c94bcfa + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.illuminance["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 16b57e7a700c4041b787a8916442cd59 + name: 'Last update discovery' + type: DEPENDENT + key: aranet.last_update.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: 'Last update' + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Last update metric' + item_prototypes: + - uuid: 296198c168694dc0bd0af5d1cc07cc0e + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.last_update["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.now()/1000 - Number(value));' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + trigger_prototypes: + - uuid: b0aa8bb4e07e47b5824595b824081d75 + expression: 'last(/Aranet Cloud/aranet.last_update["{#GATEWAY_ID}", "{#SENSOR_ID}"]) > {$ARANET.LAST_UPDATE.MAX.WARN:"{#SENSOR_NAME}"}' + name: 'Aranet: {#METRIC}: Sensor data "[{#GATEWAY_NAME}] {#SENSOR_NAME}" is not updated' + event_name: 'Aranet: {#METRIC}: Sensor data "[{#GATEWAY_NAME}] {#SENSOR_NAME}" is not updated (more than {$ARANET.LAST_UPDATE.MAX.WARN:"{#SENSOR_NAME}"})' + priority: WARNING + tags: + - tag: scope + value: availability + master_item: + key: aranet.sensor.discovery + - uuid: 9b33a2810e644c3c998d431a4a860993 + name: 'pH discovery' + type: DEPENDENT + key: aranet.ph.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: pH + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud pH sensors' + item_prototypes: + - uuid: ad6f3af944a04305a196ff60bdae078f + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.ph["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 1763029f67494745a2f52c980ae86b9c + name: 'Pore Electrical Conductivity discovery' + type: DEPENDENT + key: aranet.pore_electric_cond.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: 'Pore Electrical Conductivity' + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Pore Electrical Conductivity sensors' + item_prototypes: + - uuid: 4610a3ef84e54ddeb778e4f1c9e7ab8a + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.pore_electric_cond["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: c1a3941026c24d178a494de66c7be2cc + name: 'PPFD discovery' + type: DEPENDENT + key: aranet.ppfd.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: PPFD + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud PPFD sensors' + item_prototypes: + - uuid: 7f41b6f57a024e4fa632268bec66fdd3 + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.ppfd["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 11a77f7018ca4b8f92f65888e3e2a237 + name: 'Atmospheric pressure discovery' + type: DEPENDENT + key: aranet.pressure.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: 'Atmospheric Pressure' + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud atmospheric pressure sensors' + item_prototypes: + - uuid: 3534343a6f78415e94b52f791a1a419a + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.pressure["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 6d5e1eebba704d5e88aa67ed029d95ca + name: 'Pulses discovery' + type: DEPENDENT + key: aranet.pulses.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: Pulses + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Pulses sensors' + item_prototypes: + - uuid: 471e5f773216407e819c840161562d1e + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.pulses["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 92f27211f4dd4f61b7939cf8b07fc959 + name: 'Pulses Cumulative discovery' + type: DEPENDENT + key: aranet.pulses_cumulative.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: 'Pulses Cumulative' + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Pulses Cumulative sensors' + item_prototypes: + - uuid: da698f1bec144ab8aa8d960669c385d5 + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.pulses_cumulative["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 2caab3aefe0b498588aa3ec0d8578e09 + name: 'RSSI discovery' + type: DEPENDENT + key: aranet.rssi.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: RSSI + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud RSSI sensors' + item_prototypes: + - uuid: eefb5804ec224d26a3050246907c35aa + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.rssi["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 4d6116d2bd3049b9bb550e1d77338b2e + name: 'Soil Dielectric Permittivity discovery' + type: DEPENDENT + key: aranet.soil_dielectric_perm.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: 'Soil Dielectric Permittivity' + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Soil Dielectric Permittivity sensors' + item_prototypes: + - uuid: 53b7bb6bab76432f95599917e61a3ea7 + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.soil_dielectric_perm["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: e44cc900de3b4353bbccc6f01388c103 + name: 'Soil Electrical Conductivity discovery' + type: DEPENDENT + key: aranet.soil_electric_cond.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: 'Soil Electrical Conductivity' + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Soil Electrical Conductivity sensors' + item_prototypes: + - uuid: 2f73f57b147c4d3498bd46a4048e2418 + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.soil_electric_cond["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 215affa3d0d34aa2b27be4ec75ba3349 + name: 'Temperature discovery' + type: DEPENDENT + key: aranet.temp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: Temperature + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud temperature sensors' + item_prototypes: + - uuid: 86a562af26184359ac7d2287c6bd87c6 + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.temp["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 9e9bf9e27be743368c50036f02fab572 + name: 'Voltage discovery' + type: DEPENDENT + key: aranet.voltage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: Voltage + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Voltage sensors' + item_prototypes: + - uuid: 461f54e7c7ce4658b8acc83be8d6906c + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.voltage["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: c059e164b01242b78ab8505d12c2d291 + name: 'Volumetric Water Content discovery' + type: DEPENDENT + key: aranet.volum_water_content.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: 'Volumetric Water Content' + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Volumetric Water Content sensors' + item_prototypes: + - uuid: 8a03e78d9f4145b58c55d04189b90423 + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.volumetric.water.content["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + - uuid: 414889299c224d748c857fcf028d9e96 + name: 'Weight discovery' + type: DEPENDENT + key: aranet.weight.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GATEWAY_ID}' + value: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + formulaid: A + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + formulaid: B + - macro: '{#GATEWAY_NAME}' + value: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#METRIC}' + value: Weight + formulaid: D + - macro: '{#SENSOR_ID}' + value: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + formulaid: E + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + formulaid: F + - macro: '{#SENSOR_NAME}' + value: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'Discovery for Aranet Cloud Weight sensors' + item_prototypes: + - uuid: 6eb5e840b089469ca644a20bcb7739d4 + name: '{#METRIC}: [{#GATEWAY_NAME}] {#SENSOR_NAME}' + type: DEPENDENT + key: 'aranet.weight["{#GATEWAY_ID}", "{#SENSOR_ID}"]' + delay: '0' + value_type: FLOAT + units: '{#UNIT}' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()' + master_item: + key: aranet.get_data + tags: + - tag: component + value: '{#METRIC}' + master_item: + key: aranet.sensor.discovery + tags: + - tag: class + value: service + - tag: target + value: aranet + macros: + - macro: '{$ARANET.API.ENDPOINT}' + value: 'https://aranet.cloud/api' + description: 'Aranet Cloud API endpoint.' + - macro: '{$ARANET.API.PASSWORD}' + value: '' + description: 'Aranet Cloud password.' + - macro: '{$ARANET.API.SPACE_NAME}' + value: '' + description: 'Aranet Cloud organization name.' + - macro: '{$ARANET.API.USERNAME}' + value: '' + description: 'Aranet Cloud username.' + - macro: '{$ARANET.BATT.VOLTAGE.MIN.CRIT}' + value: '2' + description: 'Battery voltage critical threshold.' + - macro: '{$ARANET.BATT.VOLTAGE.MIN.WARN}' + value: '1' + description: 'Battery voltage warning threshold.' + - macro: '{$ARANET.CO2.MAX.CRIT}' + value: '1000' + description: 'CO2 critical threshold.' + - macro: '{$ARANET.CO2.MAX.WARN}' + value: '600' + description: 'CO2 warning threshold.' + - macro: '{$ARANET.HUMIDITY.MAX.WARN}' + value: '70' + description: 'Maximum humidity threshold.' + - macro: '{$ARANET.HUMIDITY.MIN.WARN}' + value: '20' + description: 'Minimum humidity threshold.' + - macro: '{$ARANET.LAST_UPDATE.MAX.WARN}' + value: 1h + description: 'Data update delay threshold.' + - macro: '{$ARANET.LLD.FILTER.GATEWAY_ID.MATCHES}' + value: .+ + description: 'Filter of discoverable sensors by gateway id.' + - macro: '{$ARANET.LLD.FILTER.GATEWAY_NAME.MATCHES}' + value: .+ + description: 'Filter of discoverable sensors by gateway name.' + - macro: '{$ARANET.LLD.FILTER.GATEWAY_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable sensors by gateway name.' + - macro: '{$ARANET.LLD.FILTER.SENSOR_ID.MATCHES}' + value: .+ + description: 'Filter of discoverable sensors by id.' + - macro: '{$ARANET.LLD.FILTER.SENSOR_NAME.MATCHES}' + value: .+ + description: 'Filter of discoverable sensors by name.' + - macro: '{$ARANET.LLD.FILTER.SENSOR_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable sensors by name.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Aranet Cloud", e.g. {$HTTP.TLS.VERIFY:"Aranet Cloud"}.' diff --git a/Arista_by_SNMP.yaml b/Arista_by_SNMP.yaml new file mode 100644 index 0000000..75aabe9 --- /dev/null +++ b/Arista_by_SNMP.yaml @@ -0,0 +1,2428 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 26674f62500e4e79b9f470bbf962130d + template: 'Arista by SNMP' + name: 'Arista by SNMP' + description: | + Template Net Arista + + MIBs used: + ENTITY-SENSORS-MIB + ENTITY-STATE-MIB + IF-MIB + EtherLike-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + ENTITY-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: ace97814969841e9a3e2d8ac6b83aae7 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 736dc5694fc741e6bcb96e2ba27a0898 + expression: 'max(/Arista by SNMP/icmpping,#3)=0' + name: 'Arista: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 643a2c6f8d724bd392dd97bada7d24c2 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: dfa6f280b6304bfdb0063be94f7a4c5e + expression: 'min(/Arista by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Arista by SNMP/icmppingloss,5m)<100' + name: 'Arista: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Arista: Unavailable by ICMP ping' + expression: 'max(/Arista by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e731e59672be40fa8ae7aced60ed3efc + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 18aeec70f72d43ceb4994501fb36d434 + expression: 'avg(/Arista by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Arista: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Arista: High ICMP ping loss' + expression: 'min(/Arista by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Arista by SNMP/icmppingloss,5m)<100' + - name: 'Arista: Unavailable by ICMP ping' + expression: 'max(/Arista by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8954dfa9dc4445ad987f764e35c7db6e + name: 'Get sensors' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_TYPE},1.3.6.1.2.1.99.1.1.1.1,{#SENSOR_INFO},1.3.6.1.2.1.47.1.1.1.1.2,{#SENSOR_PRECISION},1.3.6.1.2.1.99.1.1.1.3,{#THRESHOLD_LO_WARN},1.3.6.1.4.1.30065.3.12.1.1.1.1,{#THRESHOLD_LO_CRIT},1.3.6.1.4.1.30065.3.12.1.1.1.2,{#THRESHOLD_HI_WARN},1.3.6.1.4.1.30065.3.12.1.1.1.3,{#THRESHOLD_HI_CRIT},1.3.6.1.4.1.30065.3.12.1.1.1.4]' + key: sensors.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets sensors with type, description, and thresholds.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of Arista sensor discovery.'; + } + var fields = ['{#SNMPINDEX}','{#SENSOR_TYPE}','{#SENSOR_INFO}','{#SENSOR_PRECISION}','{#THRESHOLD_LO_WARN}','{#THRESHOLD_LO_CRIT}','{#THRESHOLD_HI_WARN}','{#THRESHOLD_HI_CRIT}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + tags: + - tag: component + value: raw + - uuid: e2d2516fb77f4e4faf13a69705d6af77 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 48446cefda57477eb19dfc6db23a5ee1 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: fde390cc8671441194fb274209a8c190 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CPU.UTIL},1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.util + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that processors was not idle. + Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#CPU.UTIL}''].avg()' + tags: + - tag: component + value: cpu + triggers: + - uuid: 6737f0672c244e048509358d220874a6 + expression: 'min(/Arista by SNMP/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + name: 'Arista: High CPU utilization' + event_name: 'Arista: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 861f3aef96e64cf0a68e0fc81693f118 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5bf4c90019ae41688336f83bcbb481bb + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 55418095abea4f109476530af23e2829 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d4538fc49f554fb6a1514cd9487a7291 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 362d455c9d9944cea7c37d58bcabc0a0 + expression: 'last(/Arista by SNMP/system.name,#1)<>last(/Arista by SNMP/system.name,#2) and length(last(/Arista by SNMP/system.name))>0' + name: 'Arista: System name has changed' + event_name: 'Arista: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: ed9ad1ae7fba4073bb80307dbd6849cd + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 8f2e8b5fa0464e4d964253f361d1e033 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f57ed8cec3144effa6ffb2a4f604ab0b + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 53501c72392a4bbc8fa0f5ed086d2591 + expression: 'max(/Arista by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Arista: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Arista: Unavailable by ICMP ping' + expression: 'max(/Arista by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 54b839c0606741bfad5c84497cf1d295 + name: 'Entity discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: entity.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_CLASS}' + value: '3' + formulaid: A + item_prototypes: + - uuid: 161777c6b77c4c91a11e90dda46d4ec5 + name: '{#ENT_NAME}: Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.{#SNMPINDEX}]' + key: 'system.hw.model[entPhysicalModelName.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 2f25bd11644d4bd3917d6c6693e74c99 + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 218209a40ec54a489738345c4485be83 + expression: 'last(/Arista by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#1)<>last(/Arista by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#2) and length(last(/Arista by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]))>0' + name: 'Arista: {#ENT_NAME}: Device has been replaced' + event_name: 'Arista: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c78a9f82601847338d687ed01577e958 + name: 'Fan discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#SENSOR_TYPE}' + value: '10' + formulaid: A + description: 'ENTITY-SENSORS-MIB::EntitySensorDataType discovery with rpm filter' + item_prototypes: + - uuid: 7d86974a2de14ce3a254172b6bf0761f + name: '{#SENSOR_INFO}: Fan speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.99.1.1.1.4.{#SNMPINDEX}]' + key: 'sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}]' + units: rpm + description: | + MIB: ENTITY-SENSORS-MIB + The most recent measurement obtained by the agent for this sensor. + To correctly interpret the value of this object, the associated entPhySensorType, + entPhySensorScale, and entPhySensorPrecision objects must also be examined. + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 660fd32236464fd69409099c67478ff5 + expression: 'min(/Arista by SNMP/sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}],5m) > {#THRESHOLD_HI_CRIT}' + name: 'Arista: {#SENSOR_INFO}: Fan speed is above the critical threshold' + event_name: 'Arista: {#SENSOR_INFO}: Fan speed is above the critical threshold of {#THRESHOLD_HI_CRIT}rpm for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses fan sensor values defined in the device.' + dependencies: + - name: 'Arista: {#SENSOR_INFO}: Fan is in critical state' + expression: 'count(/Arista by SNMP/sensor.fan.status[entPhySensorOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + tags: + - tag: scope + value: notice + - uuid: b1131f42627047ca9629693b91d9185e + expression: 'min(/Arista by SNMP/sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}],5m) > {#THRESHOLD_HI_WARN}' + name: 'Arista: {#SENSOR_INFO}: Fan speed is above the warning threshold' + event_name: 'Arista: {#SENSOR_INFO}: Fan speed is above the warning threshold of {#THRESHOLD_HI_WARN}rpm for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses fan sensor values defined in the device.' + dependencies: + - name: 'Arista: {#SENSOR_INFO}: Fan is in critical state' + expression: 'count(/Arista by SNMP/sensor.fan.status[entPhySensorOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + - name: 'Arista: {#SENSOR_INFO}: Fan speed is above the critical threshold' + expression: 'min(/Arista by SNMP/sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}],5m) > {#THRESHOLD_HI_CRIT}' + tags: + - tag: scope + value: notice + - uuid: 0cd8e252a77b4c90a155e57aab963e5e + expression: 'max(/Arista by SNMP/sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}],5m) < {#THRESHOLD_LO_CRIT}' + name: 'Arista: {#SENSOR_INFO}: Fan speed is below the critical threshold' + event_name: 'Arista: {#SENSOR_INFO}: Fan speed is below the critical threshold of {#THRESHOLD_LO_CRIT}rpm for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses fan sensor values defined in the device.' + dependencies: + - name: 'Arista: {#SENSOR_INFO}: Fan is in critical state' + expression: 'count(/Arista by SNMP/sensor.fan.status[entPhySensorOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + tags: + - tag: scope + value: notice + - uuid: d37c360fea9143bab6ff07699ed4acb1 + expression: 'max(/Arista by SNMP/sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}],5m) < {#THRESHOLD_LO_WARN}' + name: 'Arista: {#SENSOR_INFO}: Fan speed is below the warning threshold' + event_name: 'Arista: {#SENSOR_INFO}: Fan speed is below the warning threshold of {#THRESHOLD_LO_WARN}rpm for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses fan sensor values defined in the device.' + dependencies: + - name: 'Arista: {#SENSOR_INFO}: Fan is in critical state' + expression: 'count(/Arista by SNMP/sensor.fan.status[entPhySensorOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + - name: 'Arista: {#SENSOR_INFO}: Fan speed is below the critical threshold' + expression: 'max(/Arista by SNMP/sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}],5m) < {#THRESHOLD_LO_CRIT}' + tags: + - tag: scope + value: notice + - uuid: c5e6aaebbf9d467488fdfa1127a31fd7 + name: '{#SENSOR_INFO}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.99.1.1.1.5.{#SNMPINDEX}]' + key: 'sensor.fan.status[entPhySensorOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: ENTITY-SENSORS-MIB + The operational status of the sensor {#SENSOR_INFO} + valuemap: + name: 'ENTITY-SENSORS-MIB::EntitySensorStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 11dddf9f12a0423bb886808759cd429d + expression: 'count(/Arista by SNMP/sensor.fan.status[entPhySensorOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Arista: {#SENSOR_INFO}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensors.get + overrides: + - name: 'trigger THRESHOLD_LO_WARN' + step: '1' + filter: + conditions: + - macro: '{#THRESHOLD_LO_WARN}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Fan speed is below the warning threshold' + discover: NO_DISCOVER + - name: 'trigger THRESHOLD_LO_CRIT' + step: '2' + filter: + conditions: + - macro: '{#THRESHOLD_LO_CRIT}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Fan speed is below the critical threshold' + discover: NO_DISCOVER + - name: 'trigger THRESHOLD_HI_WARN' + step: '3' + filter: + conditions: + - macro: '{#THRESHOLD_HI_WARN}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Fan speed is above the warning threshold' + discover: NO_DISCOVER + - name: 'trigger THRESHOLD_HI_CRIT' + step: '4' + filter: + conditions: + - macro: '{#THRESHOLD_HI_CRIT}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Fan speed is above the critical threshold' + discover: NO_DISCOVER + - uuid: 9b75135925654cedbd5a270b67e68d51 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 5be3410cbb6e4c439198aa8f532c7d4f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 32217efa18d74fef8d467eb1ffdffe77 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bb496495e10d4ba9b4e111df5f4c212c + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 84763d17b876499d9a7a67f93b21a2a7 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 825e8d8d1528498ba11caa0152daa3f9 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9f54178529434f248bbba6eed46df8ac + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 77a0e72b17bf4f04a813b224fba88156 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 57006254d61a411296021ee32924cce7 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 11c5b8073b3540e4b0698a8db9e3c33e + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Arista: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 9ccd7ecb83bf4ff387b8541d807e6a69 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9715da7cb2404bf2a3cb3e80d4bb3bde + expression: | + change(/Arista by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Arista by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Arista by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Arista by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Arista by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Arista by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Arista by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Arista by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Arista by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Arista by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Arista: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Arista: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 32c978fecfcb42738cd179c19bcd2360 + expression: | + (avg(/Arista by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Arista by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Arista by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Arista by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Arista by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Arista by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Arista by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Arista by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Arista by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Arista: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Arista: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Arista: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 47d5a599bc574ccea4baeebc3aad34f5 + expression: | + min(/Arista by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Arista by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Arista by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Arista by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Arista: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Arista: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Arista: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Arista by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: ecce7b4f1bf844239328705e46958c85 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Arista by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Arista by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Arista by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Arista by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Arista by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Arista by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 4906974da5ab45cd9f7996d6d295165a + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: 065e407dcf1248d2827d0b199b271921 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c1bddd15c68243aeb69dc47f57eb6631 + expression: 'last(/Arista by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'Arista: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + - uuid: 01b83e46160a437da4345824f472cc3b + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: psu.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_CLASS}' + value: '6' + formulaid: A + item_prototypes: + - uuid: 3ec518948c0d4472b55adc761ef7855d + name: '{#ENT_NAME}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.131.1.1.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[entStateOper.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: ENTITY-STATE-MIB' + valuemap: + name: 'ENTITY-STATE-MIB::EntityOperState' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 4faa99278cd94abaace8b09529a6efaa + expression: 'count(/Arista by SNMP/sensor.psu.status[entStateOper.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'Arista: {#ENT_NAME}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 50d834b15d7f4755b1ff89ddba90fa4d + name: 'Temperature discovery' + type: DEPENDENT + key: temp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR_PRECISION}' + value: '1' + formulaid: A + - macro: '{#SENSOR_TYPE}' + value: '8' + formulaid: B + description: 'ENTITY-SENSORS-MIB::EntitySensorDataType discovery with temperature filter' + item_prototypes: + - uuid: 2851148fc01c4ba5afb5ab6a3deba5ff + name: '{#SENSOR_INFO}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.99.1.1.1.5.{#SNMPINDEX}]' + key: 'sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: ENTITY-SENSORS-MIB + The operational status of the sensor {#SENSOR_INFO} + valuemap: + name: 'ENTITY-SENSORS-MIB::EntitySensorStatus' + tags: + - tag: component + value: temperature + - uuid: 0f769e8ce0b647989085460beb9a2155 + name: '{#SENSOR_INFO}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.99.1.1.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[entPhySensorValue.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: ENTITY-SENSORS-MIB + The most recent measurement obtained by the agent for this sensor. + To correctly interpret the value of this object, the associated entPhySensorType, + entPhySensorScale, and entPhySensorPrecision objects must also be examined. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 791d55e21828472e93c97d8fa4f96d26 + expression: 'min(/Arista by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m) > {#THRESHOLD_HI_CRIT}' + name: 'Arista: {#SENSOR_INFO}: Temperature is above the critical threshold' + event_name: 'Arista: {#SENSOR_INFO}: Temperature is above the critical threshold of {#THRESHOLD_HI_CRIT}°C for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values defined in the device.' + tags: + - tag: scope + value: notice + - uuid: c65457a8a6d4427995626ff9ff12e339 + expression: 'min(/Arista by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m) > {#THRESHOLD_HI_WARN}' + name: 'Arista: {#SENSOR_INFO}: Temperature is above the warning threshold' + event_name: 'Arista: {#SENSOR_INFO}: Temperature is above the warning threshold of {#THRESHOLD_HI_WARN}°C for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values defined in the device.' + dependencies: + - name: 'Arista: {#SENSOR_INFO}: Temperature is above the critical threshold' + expression: 'min(/Arista by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m) > {#THRESHOLD_HI_CRIT}' + tags: + - tag: scope + value: notice + - uuid: b521cd99d9fb4f6f9d1241ac33c01a86 + expression: 'max(/Arista by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m) < {#THRESHOLD_LO_CRIT}' + name: 'Arista: {#SENSOR_INFO}: Temperature is below the critical threshold' + event_name: 'Arista: {#SENSOR_INFO}: Temperature is below the critical threshold of {#THRESHOLD_LO_CRIT}°C for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values defined in the device.' + tags: + - tag: scope + value: notice + - uuid: 750888bd98fa475dba03591945416b89 + expression: 'max(/Arista by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m) < {#THRESHOLD_LO_WARN}' + name: 'Arista: {#SENSOR_INFO}: Temperature is below the warning threshold' + event_name: 'Arista: {#SENSOR_INFO}: Temperature is below the warning threshold of {#THRESHOLD_LO_WARN}°C for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values defined in the device.' + dependencies: + - name: 'Arista: {#SENSOR_INFO}: Temperature is below the critical threshold' + expression: 'max(/Arista by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m) < {#THRESHOLD_LO_CRIT}' + tags: + - tag: scope + value: notice + master_item: + key: sensors.get + overrides: + - name: 'trigger THRESHOLD_LO_WARN' + step: '1' + filter: + conditions: + - macro: '{#THRESHOLD_LO_WARN}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Temperature is below the warning threshold' + discover: NO_DISCOVER + - name: 'trigger THRESHOLD_LO_CRIT' + step: '2' + filter: + conditions: + - macro: '{#THRESHOLD_LO_CRIT}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Temperature is below the critical threshold' + discover: NO_DISCOVER + - name: 'trigger THRESHOLD_HI_WARN' + step: '3' + filter: + conditions: + - macro: '{#THRESHOLD_HI_WARN}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Temperature is above the warning threshold' + discover: NO_DISCOVER + - name: 'trigger THRESHOLD_HI_CRIT' + step: '4' + filter: + conditions: + - macro: '{#THRESHOLD_HI_CRIT}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Temperature is above the critical threshold' + discover: NO_DISCOVER + - uuid: 77e7bb250b714e8ea3fff7ec1f3ac2c3 + name: 'Storage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#FSNAME},1.3.6.1.2.1.25.2.3.1.3,{#FSTYPE},1.3.6.1.2.1.25.2.3.1.2,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4]' + key: 'vfs.fs.discovery[snmp]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 676989796c6847ecb76732acce13126a + name: '{#FSNAME}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageUsed.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for {#FSNAME}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 22bf8f2fc376489a9b3f65414fb10f47 + name: '{#FSNAME}: Total space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}]' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in units of hrStorageAllocationUnits. + This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. + For example, the amount of main storage allocated to a buffer pool might be modified or the amount of disk space allocated to virtual storage might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 967fce12f9b34723a5984d2f4c2a74f3 + name: '{#FSNAME}: Used space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}]' + key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: f4bfac8d247144b3bebac7245248553e + expression: | + last(/Arista by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and + ((last(/Arista by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Arista by SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"} or timeleft(/Arista by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) + name: 'Arista: {#FSNAME}: Disk space is critically low' + event_name: 'Arista: {#FSNAME}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: + 1. The first condition - utilization of the space should be above `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}`. + 2. The second condition should be one of the following: + - the disk free space is less than `{$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"}`; + - the disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 9912ab9619ce46b88afe358ab50a2c4f + expression: | + last(/Arista by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"} and + ((last(/Arista by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Arista by SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"{#FSNAME}"} or timeleft(/Arista by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) + name: 'Arista: {#FSNAME}: Disk space is low' + event_name: 'Arista: {#FSNAME}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: + 1. The first condition - utilization of the space should be above `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}`. + 2. The second condition should be one of the following: + - the disk free space is less than `{$VFS.FS.FREE.MIN.WARN:"{#FSNAME}"}`; + - the disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'Arista: {#FSNAME}: Disk space is critically low' + expression: | + last(/Arista by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and + ((last(/Arista by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Arista by SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"} or timeleft(/Arista by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 9d5287bdf6cb4bbb9cada4c24b9ecd17 + name: '{#FSNAME}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Arista by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'Arista by SNMP' + key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]' + - uuid: 58bc77f12c17410bbba1cefb5e5fac3d + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#MEMNAME},1.3.6.1.2.1.25.2.3.1.3,{#MEMTYPE},1.3.6.1.2.1.25.2.3.1.2,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4]' + key: vm.memory.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#MEMNAME}' + value: '{$MEMORY.NAME.MATCHES}' + formulaid: A + - macro: '{#MEMNAME}' + value: '{$MEMORY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#MEMTYPE}' + value: '{$MEMORY.TYPE.MATCHES}' + formulaid: C + - macro: '{#MEMTYPE}' + value: '{$MEMORY.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'HOST-RESOURCES-MIB::hrStorage discovery with memory filter' + item_prototypes: + - uuid: 321107495a2d4f4cb2b9aea7bd62a238 + name: '{#MEMNAME}: Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}]' + key: 'vm.memory.total[hrStorageSize.{#SNMPINDEX}]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in units of hrStorageAllocationUnits. + This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. + For example, the amount of main memory allocated to a buffer pool might be modified or the amount of disk space allocated to virtual memory might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + tags: + - tag: component + value: memory + - uuid: 520fa8a8954e4992ba18d6d2c1f18259 + name: '{#MEMNAME}: Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}]' + key: 'vm.memory.used[hrStorageUsed.{#SNMPINDEX}]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + tags: + - tag: component + value: memory + - uuid: d85df76fd2b7409c84f77459bf037f0e + name: '{#MEMNAME}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.{#SNMPINDEX}])/last(//vm.memory.total[hrStorageSize.{#SNMPINDEX}])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 6b9010e0ad4e4549ac91a91d4bb3983a + expression: 'min(/Arista by SNMP/vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Arista: {#MEMNAME}: High memory utilization' + event_name: 'Arista: {#MEMNAME}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 1094490b59674fb58ca36cf6543b3bdb + name: '{#MEMNAME}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Arista by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}]' + - uuid: 3002dbe2caa042dcb2beb058b25500f8 + name: 'Voltage discovery' + type: DEPENDENT + key: voltage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#SENSOR_TYPE}' + value: 3|4 + formulaid: A + description: 'ENTITY-SENSORS-MIB::EntitySensorDataType discovery with volts filter' + item_prototypes: + - uuid: 7f66af7d12864f2cbaa8a106979ec427 + name: '{#SENSOR_INFO}: Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.99.1.1.1.4.{#SNMPINDEX}]' + key: 'sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ENTITY-SENSORS-MIB + The most recent measurement obtained by the agent for this sensor. + To correctly interpret the value of this object, the associated entPhySensorType, + entPhySensorScale, and entPhySensorPrecision objects must also be examined. + tags: + - tag: component + value: voltage + trigger_prototypes: + - uuid: 1c78dea0380a4bf68b05c1323a208c3a + expression: 'min(/Arista by SNMP/sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}],5m) > {#THRESHOLD_HI_CRIT}' + name: 'Arista: {#SENSOR_INFO}: Voltage is above the critical threshold' + event_name: 'Arista: {#SENSOR_INFO}: Voltage is above the critical threshold of {#THRESHOLD_HI_CRIT}V for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses voltage sensor values defined in the device.' + tags: + - tag: scope + value: notice + - uuid: 08b4f59d66ea45eaa95426a27586c4bd + expression: 'min(/Arista by SNMP/sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}],5m) > {#THRESHOLD_HI_WARN}' + name: 'Arista: {#SENSOR_INFO}: Voltage is above the warning threshold' + event_name: 'Arista: {#SENSOR_INFO}: Voltage is above the warning threshold of {#THRESHOLD_HI_WARN}V for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses voltage sensor values defined in the device.' + dependencies: + - name: 'Arista: {#SENSOR_INFO}: Voltage is above the critical threshold' + expression: 'min(/Arista by SNMP/sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}],5m) > {#THRESHOLD_HI_CRIT}' + tags: + - tag: scope + value: notice + - uuid: d2df35a764234716a286a8019e6c9411 + expression: 'max(/Arista by SNMP/sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}],5m) < {#THRESHOLD_LO_CRIT}' + name: 'Arista: {#SENSOR_INFO}: Voltage is below the critical threshold' + event_name: 'Arista: {#SENSOR_INFO}: Voltage is below the critical threshold of {#THRESHOLD_LO_CRIT}V for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses voltage sensor values defined in the device.' + tags: + - tag: scope + value: notice + - uuid: 481908babd3f44b3a73f3e0a628fe6d4 + expression: 'max(/Arista by SNMP/sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}],5m) < {#THRESHOLD_LO_WARN}' + name: 'Arista: {#SENSOR_INFO}: Voltage is below the warning threshold' + event_name: 'Arista: {#SENSOR_INFO}: Voltage is below the warning threshold of {#THRESHOLD_LO_WARN}V for 5m' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses voltage sensor values defined in the device.' + dependencies: + - name: 'Arista: {#SENSOR_INFO}: Voltage is below the critical threshold' + expression: 'max(/Arista by SNMP/sensor.voltage.value[entPhySensorValue.{#SNMPINDEX}],5m) < {#THRESHOLD_LO_CRIT}' + tags: + - tag: scope + value: notice + master_item: + key: sensors.get + overrides: + - name: 'trigger THRESHOLD_LO_WARN' + step: '1' + filter: + conditions: + - macro: '{#THRESHOLD_LO_WARN}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Voltage is below the warning threshold' + discover: NO_DISCOVER + - name: 'trigger THRESHOLD_LO_CRIT' + step: '2' + filter: + conditions: + - macro: '{#THRESHOLD_LO_CRIT}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Voltage is below the critical threshold' + discover: NO_DISCOVER + - name: 'trigger THRESHOLD_HI_WARN' + step: '3' + filter: + conditions: + - macro: '{#THRESHOLD_HI_WARN}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Voltage is above the warning threshold' + discover: NO_DISCOVER + - name: 'trigger THRESHOLD_HI_CRIT' + step: '4' + filter: + conditions: + - macro: '{#THRESHOLD_HI_CRIT}' + value: ^$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'Voltage is above the critical threshold' + discover: NO_DISCOVER + tags: + - tag: class + value: network + - tag: target + value: arista + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '3' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level.' + - macro: '{$MEMORY.NAME.NOT_MATCHES}' + value: (Buffer|Cache) + description: 'Filter is overridden to ignore RAM(Cache) and RAM(Buffers) memory objects.' + - macro: '{$MEMORY.TYPE.MATCHES}' + value: '.*(\.2|hrStorageRam)$' + description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level.' + - macro: '{$MEMORY.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level if you need to filter out results.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'The warning threshold of the "Physical memory: Memory utilization" item.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '2' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$VFS.FS.FREE.MIN.CRIT}' + value: 5G + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.FREE.MIN.WARN}' + value: 10G + description: 'The warning threshold of the filesystem utilization.' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: '.*(\.4|\.9|hrStorageFixedDisk|hrStorageFlashMemory)$' + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 9bde3ce1f1d1405387969ab19b8620af + name: 'Arista: General' + pages: + - name: 'Arista: General' + widgets: + - type: graph + name: 'cpu utilization' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Arista by SNMP' + name: 'Arista: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + name: 'disk space usage' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Arista by SNMP' + name: '{#FSNAME}: Disk space usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + name: 'memory utilization' + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Arista by SNMP' + name: '{#MEMNAME}: Memory utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + name: 'network traffic' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Arista by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 318f3041aea04848a223de86e589c232 + name: 'ENTITY-SENSORS-MIB::EntitySensorStatus' + mappings: + - value: '1' + newvalue: ok + - value: '2' + newvalue: unavailable + - value: '3' + newvalue: nonoperational + - uuid: 15ba17df88eb435d9d48145fba8d9029 + name: 'ENTITY-STATE-MIB::EntityOperState' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: disabled + - value: '3' + newvalue: enabled + - value: '4' + newvalue: testing + - uuid: 322511c8bbf34b8da79b98e47067db64 + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 97fa6952fa0a4a2a965ba1e88eebe706 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 629b7642da57472ea36074d43e45ce8e + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: ab33ce8c3fff400eb49d274d76143a37 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 564ef39203334aff99b78aa8fb3fd2da + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: e3907a8b6aba4512a24a677ed31e4362 + expression: '(last(/Arista by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Arista by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Arista by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Arista by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Arista: Host has been restarted' + event_name: 'Arista: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Arista: No SNMP data collection' + expression: 'max(/Arista by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 9d75893b596e448e9fe0fb3a851b0ab2 + name: 'Arista: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Arista by SNMP' + key: system.cpu.util diff --git a/Aruba_CX_8300s_by_SNMP.yaml b/Aruba_CX_8300s_by_SNMP.yaml new file mode 100644 index 0000000..5594504 --- /dev/null +++ b/Aruba_CX_8300s_by_SNMP.yaml @@ -0,0 +1,3805 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 5265860748e14dea8ed58b35fd9fe3d1 + template: 'Aruba CX 8300s by SNMP' + name: 'Aruba CX 8300s by SNMP' + description: | + Aruba CX8300s by SNMP + + MIBs used: + ARUBAWIRED-FAN-MIB + ARUBAWIRED-POWERSUPPLY-MIB + ARUBAWIRED-SYSTEMINFO-MIB + ARUBAWIRED-TEMPSENSOR-MIB + OSPF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 6b7cf5c2b6a244cfa6a01d8585611ad7 + name: 'SNMP walk OSPF area' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.14.2]' + key: aruba.ospf.area.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: OSPF-MIB + Used for discovering OSPF areas. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '0' + - 'No Such Object available on this agent at this OID' + tags: + - tag: component + value: raw + - uuid: 2f5f922cafab488db3fd467efffcb6ad + name: 'SNMP walk OSPF interface' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.14.7]' + key: aruba.ospf.interface.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: OSPF-MIB + Used for discovering OSPF interfaces. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '0' + - 'No Such Object available on this agent at this OID' + tags: + - tag: component + value: raw + - uuid: f4c3dcd0c3784198b84b67d083082d72 + name: 'SNMP walk OSPF neighbor' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.14.10]' + key: aruba.ospf.neighbor.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: OSPF-MIB + Used for discovering OSPF neighbors. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '0' + - 'No Such Object available on this agent at this OID' + tags: + - tag: component + value: raw + - uuid: 8e1a8ba4ebf548df9be813330391521e + name: 'SNMP walk system FAN' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.47196.4.1.1.3.11.5.1]' + key: aruba.system.fan.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: ARUBAWIRED-FAN-MIB + Used for discovering system fans. + tags: + - tag: component + value: raw + - uuid: 25500be700d94f86afe100a6d9307b1b + name: 'SNMP walk system PSU' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.47196.4.1.1.3.11.2.1]' + key: aruba.system.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: ARUBAWIRED-POWERSUPPLY-MIB + Used for discovering the system power supply. + tags: + - tag: component + value: raw + - uuid: 8cf7561f82e945b2aa1a2186860de5fe + name: 'SNMP walk system resource' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1]' + key: aruba.system.resource.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: ARUBAWIRED-SYSTEMINFO-MIB + Used for discovering system resources. + tags: + - tag: component + value: raw + - uuid: cf87723cdd604bd5a4fa6877e40f4c8b + name: 'SNMP walk system temperature sensor' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.47196.4.1.1.3.11.3.1]' + key: aruba.system.sensor.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: ARUBAWIRED-TEMPSENSOR-MIB + Used for discovering system temperature sensors. + tags: + - tag: component + value: raw + - uuid: a057be0738754d97ab70d107b090026a + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 96ced8bb055e498da2df9f24d8391fe4 + expression: 'max(/Aruba CX 8300s by SNMP/icmpping,#3)=0' + name: 'Aruba: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 8f135c5e470b48848324c30b8b87c6ef + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 0fa5c9c675e042dc9245b51417d37cf7 + expression: 'min(/Aruba CX 8300s by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Aruba CX 8300s by SNMP/icmppingloss,5m)<100' + name: 'Aruba: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packet loss detected.' + dependencies: + - name: 'Aruba: Unavailable by ICMP ping' + expression: 'max(/Aruba CX 8300s by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3f7f876cf30e4023bf5d34c2521f457b + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ebb0b6ec52054fb0b2d67552afe3b699 + expression: 'avg(/Aruba CX 8300s by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Aruba: High ICMP ping response time' + event_name: 'Aruba: High ICMP ping response time (>{$ICMP_RESPONSE_TIME_WARN}s for 5m)' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Aruba: High ICMP ping loss' + expression: 'min(/Aruba CX 8300s by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Aruba CX 8300s by SNMP/icmppingloss,5m)<100' + - name: 'Aruba: Unavailable by ICMP ping' + expression: 'max(/Aruba CX 8300s by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 09347a20e46544c3a0b9cd448fc408fe + name: 'SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.10,1.3.6.1.2.1.2.2.1.16,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.2.2.1.5]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 14c8d0d25dab4465843c627b1272f827 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 5a43110974e649bdaa3c9e9401cdb118 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5f4d750bd8f54eeda5c7a36b54ef6c89 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d9f75b965fac43998839f385a95e08cd + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 3fb049944092439babf4b85b7ef51e9d + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9f9dd3970d0d490891fce31da2fd2ab9 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: c441da1d3aa3434c9bfa461d2a8aeb3f + expression: 'last(/Aruba CX 8300s by SNMP/system.name,#1)<>last(/Aruba CX 8300s by SNMP/system.name,#2) and length(last(/Aruba CX 8300s by SNMP/system.name))>0' + name: 'Aruba: System name has changed' + event_name: 'Aruba: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 771ba8701cc84be69d82aa8ff55f4474 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cfedf58e272d484da917d32a10696600 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c2b65af0f2184d699389688a3bd624c6 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b6f001323c8e4fd1bb1cf84dd8990a56 + expression: 'max(/Aruba CX 8300s by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Aruba: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Aruba: Unavailable by ICMP ping' + expression: 'max(/Aruba CX 8300s by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 8b55d9f865a44b07899ee773989ee976 + name: 'Fan discovery' + type: DEPENDENT + key: aruba.fan.discovery + delay: '0' + description: 'Used for discovering fans from ARUBAWIRED-FAN-MIB.' + item_prototypes: + - uuid: 8f7bde9ff72146ceb23394c7f4955fdc + name: 'Fan [{#SNMPVALUE}]: Speed' + type: DEPENDENT + key: 'aruba.fan.speed[arubaWiredFanRPM.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '!RPM' + description: | + MIB: ARUBAWIRED-FAN-MIB + Current RPM read for the fan. RPM of -1 indicates the fan does not have RPM readback capability. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.fan.walk + tags: + - tag: component + value: fan + - tag: fan + value: '{#SNMPVALUE}' + - uuid: 420adcb6a1544a59a7a8c6dfe32f2414 + name: 'Fan [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'aruba.fan.status[arubaWiredFanStateEnum.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: ARUBAWIRED-FAN-MIB + Current status of the fan. + Possible values: + 1 - Unknown; + 2 - Empty; + 3 - Uninitialized; + 4 - Ok; + 5 - Fault. + valuemap: + name: 'Fan status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.fan.walk + tags: + - tag: component + value: fan + - tag: fan + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 90a16a650b1e4f62b6f55c9e6181d754 + expression: 'last(/Aruba CX 8300s by SNMP/aruba.fan.status[arubaWiredFanStateEnum.{#SNMPINDEX}])<>4' + name: 'Aruba: Fan [{#SNMPVALUE}]: Status is not "Ok"' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The fan status is not "Ok".' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: aruba.system.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.4 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 28d8f26183e842d89664160b43e643e4 + name: 'OSPF Area discovery' + type: DEPENDENT + key: aruba.ospf.area.discovery + delay: '0' + description: 'Used for discovering PSU from OSPF-MIB.' + item_prototypes: + - uuid: 1900e153eed041e5a113a0bbe5e15d7e + name: 'OSPF area [{#SNMPVALUE}]: LSA checksum' + type: DEPENDENT + key: 'aruba.ospf.area.lsa.cksumsum[ospfAreaLsaCksumSum.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The 32-bit sum of the checksums of the LSAs contained in this area's link state database. + This sum excludes external (LS type-5) link state advertisements. The sum can be used to determine if there has + been a change in a router's link state database, and to compare the link state database of two routers. + The value should be treated as unsigned when comparing two sums of checksums. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.2.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.area.walk + tags: + - tag: area + value: '{#SNMPVALUE}' + - tag: component + value: network + - uuid: 8ed73a4e57a041afbd98420beec665f8 + name: 'OSPF area [{#SNMPVALUE}]: Translator role' + type: DEPENDENT + key: 'aruba.ospf.area.lsa.translator.role[ospfAreaNssaTranslatorRole.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + Indicates an NSSA border router's ability to perform NSSA translation of type-7 LSAs into type-5 LSAs. + Possible values: + 1 - Always; + 2 - Candidate. + valuemap: + name: 'OSPF translator role' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.2.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.area.walk + tags: + - tag: area + value: '{#SNMPVALUE}' + - tag: component + value: network + - uuid: 943511c194ac4e94b2ecb8035310f88c + name: 'OSPF area [{#SNMPVALUE}]: Translator state' + type: DEPENDENT + key: 'aruba.ospf.area.lsa.translator.state[ospfAreaNssaTranslatorState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + Indicates NSSA border router translation state of type-7 LSAs into type-5 LSAs. + Possible values: + 1 - Enabled; + 2 - Elected; + 3 - Disabled. + When `Enabled`, the NSSA Border router's `OspfAreaNssaExtTranslatorRole` is `Always`. + When `Elected`, a candidate NSSA border router is translating type-7 LSAs into type-5. + When `Disabled`, a candidate NSSA border router is not translating type-7 LSAs into type-5. + valuemap: + name: 'OSPF translator state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.2.1.12.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.area.walk + tags: + - tag: area + value: '{#SNMPVALUE}' + - tag: component + value: network + - uuid: a1a4bc6d7bf04706aadf41875c7c609a + name: 'OSPF area [{#SNMPVALUE}]: LSA count' + type: DEPENDENT + key: 'aruba.ospf.area.lsa[ospfAreaLsaCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The total number of link state advertisements in this area's link state database, excluding + AS-external LSAs. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.2.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.area.walk + tags: + - tag: area + value: '{#SNMPVALUE}' + - tag: component + value: network + - uuid: 47ca8b4fa5d64d69b41ed7122e93beaf + name: 'OSPF area [{#SNMPVALUE}]: Runs' + type: DEPENDENT + key: 'aruba.ospf.area.runs[ospfSpfRuns.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The number of times that the intra-area route table has been calculated using this area's link state database. + This is typically done using Dijkstra's algorithm. + Discontinuities in the value of this counter may occur at re-initialization of the management system, and at other + times as indicated by the value of ospfDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.2.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.area.walk + tags: + - tag: area + value: '{#SNMPVALUE}' + - tag: component + value: network + - uuid: a511989aac154b019214f21308b42b8b + name: 'OSPF area [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'aruba.ospf.area.status[ospfAreaStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + This object permits management of the table by facilitating actions such as row creation, construction, + and destruction. The value of this object has no effect on whether other objects in this conceptual row can be + modified. + Possible values: + 1 - Active; + 2 - Not in service; + 3 - Not ready; + 4 - Create and go; + 5 - Create and wait; + 6 - Destroy. + valuemap: + name: 'OSPF area status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.2.1.10.{#SNMPINDEX}' + - '0' + master_item: + key: aruba.ospf.area.walk + tags: + - tag: area + value: '{#SNMPVALUE}' + - tag: component + value: network + trigger_prototypes: + - uuid: c3f79a1dfc9d4a0b8df21c847dddf0c7 + expression: 'count(/Aruba CX 8300s by SNMP/aruba.ospf.area.status[ospfAreaStatus.{#SNMPINDEX}],#2,"eq",1)=0' + name: 'Aruba: OSPF area [{#SNMPVALUE}]: Status is not "Active"' + event_name: 'Aruba: OSPF area [{#SNMPVALUE}]: Status is not "Active": {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The status of OSPF area is not "Active".' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f94438a6299340c883e8adf14ce81bcd + name: 'OSPF area [{#SNMPVALUE}]: Auth type' + type: DEPENDENT + key: 'aruba.ospf.area.type[ospfAuthType.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The authentication type specified for an area. + Possible values: + 0 - None; + 1 - Simple password; + 2 - md5. + valuemap: + name: 'OSPF area auth type' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.2.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.area.walk + tags: + - tag: area + value: '{#SNMPVALUE}' + - tag: component + value: network + master_item: + key: aruba.ospf.area.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.14.2.1.1 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 05f9a4b0ea544ff490f240f5629ba73f + name: 'OSPF interface discovery' + type: DEPENDENT + key: aruba.ospf.interface.discovery + delay: '0' + description: 'Used for discovering PSU from OSPF-MIB.' + item_prototypes: + - uuid: 61e943f269fb4c569094675950513044 + name: 'OSPF interface [{#SNMPVALUE}]: Admin status' + type: DEPENDENT + key: 'aruba.ospf.interface.admin.stat[ospfIfAdminStat.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The OSPF interface's administrative status. If enabled, the interface is advertised as an internal route to an area. + The value 'disabled' denotes that the interface is external to OSPF. + Possible values: + 1 - Enabled; + 2 - Disabled. + valuemap: + name: 'OSPF interface admin status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.interface.walk + tags: + - tag: component + value: network + - tag: ospf-interface + value: '{#SNMPVALUE}' + - uuid: eb18b543d548404db1d277e3244497b3 + name: 'OSPF interface [{#SNMPVALUE}]: Area ID' + type: DEPENDENT + key: 'aruba.ospf.interface.area.id[ospfIfAreaId.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: OSPF-MIB + A 32-bit integer uniquely identifying the area to which the interface connects. Area ID 0.0.0.0 is used for the OSPF backbone. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.7.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.interface.walk + tags: + - tag: component + value: network + - tag: ospf-interface + value: '{#SNMPVALUE}' + - uuid: 6261c6bfbe424f409d04e7ab14e24a19 + name: 'OSPF interface [{#SNMPVALUE}]: Events' + type: DEPENDENT + key: 'aruba.ospf.interface.events[ospfIfEvents.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The number of times this OSPF interface has changed its state or an error has occurred. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other + times as indicated by the value of ospfDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.7.1.15.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.interface.walk + tags: + - tag: component + value: network + - tag: ospf-interface + value: '{#SNMPVALUE}' + - uuid: a080180520104bbcaacd8e3f2a5212eb + name: 'OSPF interface [{#SNMPVALUE}]: Priority' + type: DEPENDENT + key: 'aruba.ospf.interface.rtr.priority[ospfIfRtrPriority.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The priority of this interface. Used in multi-access networks, this field is used in + the designated router election algorithm. The value 0 signifies that the router is not eligible + to become the designated router on this particular network. In the event of a tie in this value, + routers will use their Router ID as a tie breaker. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.7.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.interface.walk + tags: + - tag: component + value: network + - tag: ospf-interface + value: '{#SNMPVALUE}' + - uuid: ae11a76ed45b4d4691efa9c4a2d70ea8 + name: 'OSPF interface [{#SNMPVALUE}]: State' + type: DEPENDENT + key: 'aruba.ospf.interface.state[ospfIfState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The OSPF Interface State. + Possible values: + 1 - Down; + 2 - Loopback; + 3 - Waiting; + 4 - Point to point; + 5 - Designated router; + 6 - Backup designated router; + 7 - Other designated router. + valuemap: + name: 'OSPF interface state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.7.1.12.{#SNMPINDEX}' + - '0' + master_item: + key: aruba.ospf.interface.walk + tags: + - tag: component + value: network + - tag: ospf-interface + value: '{#SNMPVALUE}' + - uuid: c92e0874e4c143959632259aac95efbb + name: 'OSPF interface [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'aruba.ospf.interface.status[ospfIfStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + This object permits management of the table by facilitating actions such as row creation, construction, and destruction. + The value of this object has no effect on whether other objects in this conceptual row can be modified. + Possible values: + 1 - Active; + 2 - Not in service; + 3 - Not ready; + 4 - Create and go; + 5 - Create and wait; + 6 - Destroy. + valuemap: + name: 'OSPF interface status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.7.1.17.{#SNMPINDEX}' + - '0' + master_item: + key: aruba.ospf.interface.walk + tags: + - tag: component + value: network + - tag: ospf-interface + value: '{#SNMPVALUE}' + - uuid: e8491018f7b146c589ac817203e564b4 + name: 'OSPF interface [{#SNMPVALUE}]: Type' + type: DEPENDENT + key: 'aruba.ospf.interface.type[ospfIfType.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The OSPF interface type. By way of a default, this field may be intuited from the corresponding value of ifType. + Broadcast LANs, such as Ethernet and IEEE 802.5, take the value 'broadcast', X.25 and similar + technologies take the value 'nbma', and links that are definitively point-to-point take the value 'pointToPoint'. + Possible values: + 1 - Broadcast; + 2 - NBMA; + 3 - Point to point; + 4 - Virtual link; + 5 - Point to multipoint. + valuemap: + name: 'OSPF interface type' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.interface.walk + tags: + - tag: component + value: network + - tag: ospf-interface + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: df52e7ccbf4c460cb02aac16bfd4565b + expression: '(count(/Aruba CX 8300s by SNMP/aruba.ospf.interface.state[ospfIfState.{#SNMPINDEX}],#2,"eq",3)=2 or count(/Aruba CX 8300s by SNMP/aruba.ospf.interface.state[ospfIfState.{#SNMPINDEX}],#2,"eq",1)=2) and last(/Aruba CX 8300s by SNMP/aruba.ospf.interface.admin.stat[ospfIfAdminStat.{#SNMPINDEX}])=1' + name: 'Aruba: OSPF Interface [{#SNMPVALUE}]: State is "Down" or "Waiting"' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The OSPF Interface state is "Down" or "Waiting".' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fe1350146a71445ea8a7765a2ce8f26e + expression: 'count(/Aruba CX 8300s by SNMP/aruba.ospf.interface.status[ospfIfStatus.{#SNMPINDEX}],#2,"ne",1)=2 and last(/Aruba CX 8300s by SNMP/aruba.ospf.interface.admin.stat[ospfIfAdminStat.{#SNMPINDEX}])=1' + name: 'Aruba: OSPF interface [{#SNMPVALUE}]: Status is not "Active"' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The OSPF interface status is not "Active".' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: aruba.ospf.interface.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.14.7.1.1 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2221a4910f56484fa1e4c0388e69c072 + name: 'OSPF Neighbor discovery' + type: DEPENDENT + key: aruba.ospf.neighbor.discovery + delay: '0' + description: 'Used for discovering PSU from OSPF-MIB.' + item_prototypes: + - uuid: 3bfda8b21b0443408121c91f19545a6c + name: 'OSPF neighbor [{#SNMPVALUE}]: Events' + type: DEPENDENT + key: 'aruba.ospf.neighbor.events[ospfNbrEvents.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The number of times this neighbor relationship has changed state or an error has occurred. + + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other + times as indicated by the value of ospfDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.neighbor.walk + tags: + - tag: component + value: network + - tag: neighbor + value: '{#SNMPVALUE}' + - uuid: 5c67c1f185c14e94b60f50f3667a53c4 + name: 'OSPF neighbor [{#SNMPVALUE}]: Options' + type: DEPENDENT + key: 'aruba.ospf.neighbor.options[ospfNbrOptions.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + A bit mask corresponding to the neighbor's options field. + + Bit 0, if set, indicates that the system will operate on Type of Service metrics other than TOS 0. + If zero, the neighbor will ignore all metrics except the TOS 0 metric. + + Bit 1, if set, indicates that the associated area accepts and operates on external + information; if zero, it is a stub area. + + Bit 2, if set, indicates that the system is capable of routing IP multicast datagrams – it implements the multicast extensions to OSPF. + + Bit 3, if set, indicates that the associated area is an NSSA. These areas are capable of carrying type-7 external advertisements, + which are translated into type-5 external advertisements at NSSA borders. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.neighbor.walk + tags: + - tag: component + value: network + - tag: neighbor + value: '{#SNMPVALUE}' + - uuid: 994d35d28ff043619a5917df64b2f24e + name: 'OSPF neighbor [{#SNMPVALUE}]: Priority' + type: DEPENDENT + key: 'aruba.ospf.neighbor.priority[ospfNbrPriority.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The priority of this neighbor in the designated router election algorithm. The value 0 signifies + that the neighbor is not eligible to become the designated router on this particular network. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.neighbor.walk + tags: + - tag: component + value: network + - tag: neighbor + value: '{#SNMPVALUE}' + - uuid: c7f9a4e76bd044799948846eb8f0a783 + name: 'OSPF neighbor [{#SNMPVALUE}]: Retrans queue length' + type: DEPENDENT + key: 'aruba.ospf.neighbor.retrans.q.len[ospfNbrLsRetransQLen.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The current length of the retransmission queue. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.neighbor.walk + tags: + - tag: component + value: network + - tag: neighbor + value: '{#SNMPVALUE}' + - uuid: 7de8cd0ab2c44bd0aa099e3b952161d8 + name: 'OSPF neighbor [{#SNMPVALUE}]: Neighbor router ID' + type: DEPENDENT + key: 'aruba.ospf.neighbor.rtr.id[ospfNbrRtrId.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: OSPF-MIB + A 32-bit integer (represented as a type IpAddress) uniquely identifying the neighboring router in the Autonomous System. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.ospf.neighbor.walk + tags: + - tag: component + value: network + - tag: neighbor + value: '{#SNMPVALUE}' + - uuid: 79d04cecb34e4fb3ac6b12cc645c4f3d + name: 'OSPF neighbor [{#SNMPVALUE}]: State' + type: DEPENDENT + key: 'aruba.ospf.neighbor.state[ospfNbrState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + The state of the relationship with this neighbor. + Possible values: + 1 - Down; + 2 - Attempt; + 3 - Init; + 4 - Two way; + 5 - Exchange start; + 6 - Exchange; + 7 - Loading; + 8 - Full. + valuemap: + name: 'OSPF neighbor state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: aruba.ospf.neighbor.walk + tags: + - tag: component + value: network + - tag: neighbor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 42118a5de26d4e64a116366ce4422513 + expression: 'count(/Aruba CX 8300s by SNMP/aruba.ospf.neighbor.state[ospfNbrState.{#SNMPINDEX}],#2,"eq",8)=0 and count(/Aruba CX 8300s by SNMP/aruba.ospf.neighbor.state[ospfNbrState.{#SNMPINDEX}],#2,"eq",4)=0' + name: 'Aruba: OSPF neighbor [{#SNMPVALUE}]: State is not "Full" or "Two way"' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The neighbor state is not "Full" or "Two way".' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b0141725f0564dee97dee2280d950184 + name: 'OSPF neighbor [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'aruba.ospf.neighbor.status[ospfNbmaNbrStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: OSPF-MIB + This object permits management of the table by facilitating actions such as row creation, + construction, and destruction. + + The value of this object has no effect on whether other objects in this conceptual row can be + modified. + Possible values: + 1 - Active; + 2 - Not in service; + 3 - Not ready; + 4 - Create and go; + 5 - Create and wait; + 6 - Destroy. + valuemap: + name: 'OSPF neighbor status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.9.{#SNMPINDEX}' + - '0' + master_item: + key: aruba.ospf.neighbor.walk + tags: + - tag: component + value: network + - tag: neighbor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: afc09cf846ea499c9edcc86ad69155b5 + expression: 'count(/Aruba CX 8300s by SNMP/aruba.ospf.neighbor.status[ospfNbmaNbrStatus.{#SNMPINDEX}],#2,"eq",1)=0' + name: 'Aruba: OSPF neighbor [{#SNMPVALUE}]: Status is not "Active"' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The neighbor status is not "Active".' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: aruba.ospf.neighbor.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.14.10.1.1 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: eb9c0879dff343d488f12e3860649edf + name: 'PSU discovery' + type: DEPENDENT + key: aruba.psu.discovery + delay: '0' + description: 'Used for discovering PSU from ARUBAWIRED-POWERSUPPLY-MIB.' + item_prototypes: + - uuid: 97a068f9b8dd4aae855098677816bdc2 + name: 'PSU [{#SNMPVALUE}]: Instantaneous power' + type: DEPENDENT + key: 'aruba.psu.power[arubaWiredPSUInstantaneousPower.{#SNMPINDEX}]' + delay: '0' + units: W + description: | + MIB: ARUBAWIRED-POWERSUPPLY-MIB + Total instantaneous power supplied by the power supply in watts. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.psu.walk + tags: + - tag: component + value: psu + - tag: psu + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: a3b4d18fb60144658f704b92a2eb2390 + expression: '(last(/Aruba CX 8300s by SNMP/aruba.psu.power[arubaWiredPSUInstantaneousPower.{#SNMPINDEX}])*100/{#ARUBA.POWER.SUPPLY.MAX.POWER}) > {$ARUBA.POWER.SUPPLY.THR.MAX}' + name: 'Aruba: PSU [{#SNMPVALUE}]: High power utilization' + event_name: 'Aruba: PSU [{#SNMPVALUE}]: High power utilization: {ITEM.LASTVALUE} (>{$ARUBA.POWER.SUPPLY.THR.MAX} of maximum)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Instantaneous power supplied more than {$ARUBA.POWER.SUPPLY.THR.MAX} of maximum.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: b5789b1ae32646509c248fea06169b65 + name: 'PSU [{#SNMPVALUE}]: State' + type: DEPENDENT + key: 'aruba.psu.state[arubaWiredPSUStateEnum.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: ARUBAWIRED-POWERSUPPLY-MIB + Current status for the power supply. + Possible values: + 1 - Ok; + 2 - Fault Absent; + 3 - Fault Input; + 4 - Fault Output; + 5 - Fault POE; + 6 - Fault No Recov; + 7 - Alert; + 8 - Unknown; + 9 - Unsupported; + 10 - Warning; + 11 - Init; + 12 - Empty; + 13 - Fault Airflow; + 14 - Fault Redundancy. + valuemap: + name: 'Power supply state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.psu.walk + tags: + - tag: component + value: psu + - tag: psu + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 9b93888c69624f9c908a7601c04e20f9 + expression: 'last(/Aruba CX 8300s by SNMP/aruba.psu.state[arubaWiredPSUStateEnum.{#SNMPINDEX}])<>1' + name: 'Aruba: PSU [{#SNMPVALUE}]: State is not "Ok"' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The PSU status is not "Ok".' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: aruba.system.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.3 + - '0' + - '{#ARUBA.POWER.SUPPLY.MAX.POWER}' + - 1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.8 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: fe04a84c30e4476fb9f1d3543f4ca031 + name: 'Resource discovery' + type: DEPENDENT + key: aruba.resource.discovery + delay: '0' + description: 'Used for discovering system resources from ARUBAWIRED-SYSTEMINFO-MIB.' + item_prototypes: + - uuid: c4011281ee2f4d38883ebfcff48325b6 + name: 'Module [{#SNMPVALUE}]: CPU load average 1 min' + type: DEPENDENT + key: 'aruba.system.cpu.la1[arubaWiredSystemInfoCpuAvgOneMin.{#SNMPINDEX}]' + delay: '0' + units: '%' + description: | + MIB: ARUBAWIRED-SYSTEMINFO-MIB + The percentage of CPU utilization of the subsystem averaged across all the CPUs of the system over a one-minute period. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.resource.walk + tags: + - tag: component + value: cpu + - uuid: f140efa0c906458d968b20773c5397ca + name: 'Module [{#SNMPVALUE}]: CPU load average 5 min' + type: DEPENDENT + key: 'aruba.system.cpu.la5[arubaWiredSystemInfoCpuAvgFiveMin.{#SNMPINDEX}]' + delay: '0' + units: '%' + description: | + MIB: ARUBAWIRED-SYSTEMINFO-MIB + The percentage of CPU utilization of the subsystem averaged across all the CPUs of the system period of five minutes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.resource.walk + tags: + - tag: component + value: cpu + - uuid: b4c26787aa4a4c1a83e9f8cd7afec78f + name: 'Module [{#SNMPVALUE}]: CPU utilization' + type: DEPENDENT + key: 'aruba.system.cpu.utilization[arubaWiredSystemInfoCpu.{#SNMPINDEX}]' + delay: '0' + units: '%' + description: | + MIB: ARUBAWIRED-SYSTEMINFO-MIB + The percentage of CPU utilization of the subsystem averaged across all the CPUs of the system. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: aruba.system.resource.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 6e8a39fda423439883bc90a587371360 + expression: 'min(/Aruba CX 8300s by SNMP/aruba.system.cpu.utilization[arubaWiredSystemInfoCpu.{#SNMPINDEX}],5m)>{$ARUBA.CPU.UTIL.MAX}' + name: 'Aruba: Generic SNMP: Module [{#SNMPVALUE}]: High CPU utilization' + event_name: 'Aruba: Generic SNMP: Module [{#SNMPVALUE}]: High CPU utilization (>{$ARUBA.CPU.UTIL.MAX}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: d7d19a92c1b046c285ee91e7c9524663 + name: 'Module [{#SNMPVALUE}]: Memory usage' + type: DEPENDENT + key: 'aruba.system.memory.usage[arubaWiredSystemInfoMemory.{#SNMPINDEX}]' + delay: '0' + units: '%' + description: | + MIB: ARUBAWIRED-SYSTEMINFO-MIB + Subsystem memory usage in percent. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: aruba.system.resource.walk + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 8d630ee773474d8a8020c9888ce86a07 + expression: 'min(/Aruba CX 8300s by SNMP/aruba.system.memory.usage[arubaWiredSystemInfoMemory.{#SNMPINDEX}],5m)>{$ARUBA.MEMORY.UTIL.MAX}' + name: 'Aruba: Generic SNMP: Module [{#SNMPVALUE}]: High memory utilization' + event_name: 'Aruba: Generic SNMP: Module [{#SNMPVALUE}]: High memory utilization (>{$ARUBA.MEMORY.UTIL.MAX}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 7146cf97b48f49e3a97215537f8690c0 + name: 'Module [{#SNMPVALUE}]: Storage core dump utilization' + type: DEPENDENT + key: 'aruba.system.storage.coredump.utilization[arubaWiredSystemInfoStorageCoredump.{#SNMPINDEX}]' + delay: '0' + units: '%' + description: | + MIB: ARUBAWIRED-SYSTEMINFO-MIB + Utilization of core dump storage partition in percent. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.resource.walk + tags: + - tag: component + value: memory + - uuid: 660a53c1bdb244ccbbbb5b1ab58efef5 + name: 'Module [{#SNMPVALUE}]: Storage log utilization' + type: DEPENDENT + key: 'aruba.system.storage.log.utilization[arubaWiredSystemInfoStorageLog.{#SNMPINDEX}]' + delay: '0' + units: '%' + description: | + MIB: ARUBAWIRED-SYSTEMINFO-MIB + Utilization of log storage partition in percent. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.resource.walk + tags: + - tag: component + value: memory + - uuid: 7d87e1e4bbfb4549a916a43a83739342 + name: 'Module [{#SNMPVALUE}]: Storage NOS utilization' + type: DEPENDENT + key: 'aruba.system.storage.nos.utilization[arubaWiredSystemInfoStorageNos.{#SNMPINDEX}]' + delay: '0' + units: '%' + description: | + MIB: ARUBAWIRED-SYSTEMINFO-MIB + Utilization of network operating system storage partition in percent. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.resource.walk + tags: + - tag: component + value: memory + - uuid: 0431b41aa56c4e9bb47fcd56943339d3 + name: 'Module [{#SNMPVALUE}]: Storage security utilization' + type: DEPENDENT + key: 'aruba.system.storage.security.utilization[arubaWiredSystemInfoStorageSecurity.{#SNMPINDEX}]' + delay: '0' + units: '%' + description: | + MIB: ARUBAWIRED-SYSTEMINFO-MIB + Utilization of security storage partition in percent. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.resource.walk + tags: + - tag: component + value: memory + - uuid: 65ac4ca5676b45d3804121c102644290 + name: 'Module [{#SNMPVALUE}]: Storage self test utilization' + type: DEPENDENT + key: 'aruba.system.storage.selftest.utilization[arubaWiredSystemInfoStorageSelftest.{#SNMPINDEX}]' + delay: '0' + units: '%' + description: | + MIB: ARUBAWIRED-SYSTEMINFO-MIB + Utilization of self test storage partition in percent. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.resource.walk + tags: + - tag: component + value: memory + graph_prototypes: + - uuid: 9e0c9d09d27d4d02a296abf3ccd55910 + name: 'Generic SNMP: Module [{#SNMPVALUE}]: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Aruba CX 8300s by SNMP' + key: 'aruba.system.cpu.utilization[arubaWiredSystemInfoCpu.{#SNMPINDEX}]' + - uuid: ef659d7d40ba4d77aedbaf57e6a2c04f + name: 'Generic SNMP: Module [{#SNMPVALUE}]: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Aruba CX 8300s by SNMP' + key: 'aruba.system.memory.usage[arubaWiredSystemInfoMemory.{#SNMPINDEX}]' + master_item: + key: aruba.system.resource.walk + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const data = value.split("\n"); + + var base_oid = ".1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.3", + lld_json = []; + + for (var line in data) { + var index = data[line].indexOf(base_oid); + + if (index !== -1) { + var result = [], + oid = data[line].split(' ')[0], + tail = oid.substring(index + base_oid.length + 1), + parts = tail.split('.'); + + var i = 0; + while (i < parts.length) { + var len = parseInt(parts[i]); + if (isNaN(len) || len < 1 || i + len >= parts.length) { + i++; + continue; + } + + var isAscii = true; + for (var j = 0; j < len; j++) { + var val = parseInt(parts[i + 1 + j]); + if (val < 32 || val > 126) { + isAscii = false; + break; + } + } + + if (isAscii) { + var str = ''; + for (var j = 0; j < len; j++) { + str += String.fromCharCode(parseInt(parts[i + 1 + j])); + } + result.push(str); + i = i + 1 + len; + } + else { + i++; + } + } + + lld_json.push({'{#SNMPVALUE}': result.join(" "), '{#SNMPINDEX}': tail}); + } + } + + return JSON.stringify(lld_json); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 24498833e71d4106ac6c590ee08a3dc3 + name: 'Sensor discovery' + type: DEPENDENT + key: aruba.sensor.discovery + delay: '0' + description: 'Used for discovering temperature sensors from ARUBAWIRED-TEMPSENSOR-MIB.' + item_prototypes: + - uuid: 4a9d404cb8cb43679095f89b0d2f3bae + name: 'Sensor [{#SNMPVALUE}]: State' + type: DEPENDENT + key: 'aruba.system.sensors[arubaWiredTempSensorState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: ARUBAWIRED-TEMPSENSOR-MIB + Current status for the temperature sensor. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: aruba.system.sensor.walk + tags: + - tag: component + value: sensor + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: e3bdb244253344428a6571b2a76fd994 + expression: 'last(/Aruba CX 8300s by SNMP/aruba.system.sensors[arubaWiredTempSensorState.{#SNMPINDEX}])<>"normal"' + name: 'Aruba: Sensor [{#SNMPVALUE}]: State is not "normal"' + event_name: 'Aruba: Sensor [{#SNMPVALUE}]: State is not "normal": {ITEM.LASTVALUE}' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The current temperature sensor state is not "normal".' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 824cca3e4dbd484cb955e69f40fcf341 + name: 'Sensor [{#SNMPVALUE}]: Temperature' + type: DEPENDENT + key: 'aruba.system.sensors[arubaWiredTempSensorTemperature.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: ARUBAWIRED-TEMPSENSOR-MIB + Current temperature value read from the temperature sensor. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.7.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: aruba.system.sensor.walk + tags: + - tag: component + value: sensor + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: c6dd45c473b045c891a4436a2550c977 + expression: 'min(/Aruba CX 8300s by SNMP/aruba.system.sensors[arubaWiredTempSensorTemperature.{#SNMPINDEX}],5m)>{#ARUBA.TEMPERATURE.MAX}' + name: 'Aruba: Sensor [{#SNMPVALUE}]: High temperature' + event_name: 'Aruba: Sensor [{#SNMPVALUE}]: High temperature (>{#ARUBA.TEMPERATURE.MAX} °C)' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The current temperature is greater than the threshold state.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 47ff244e82e448508b2223c0f955513c + expression: 'max(/Aruba CX 8300s by SNMP/aruba.system.sensors[arubaWiredTempSensorTemperature.{#SNMPINDEX}],5m)<{#ARUBA.TEMPERATURE.MIN}' + name: 'Aruba: Sensor [{#SNMPVALUE}]: Low temperature' + event_name: 'Aruba: Sensor [{#SNMPVALUE}]: Low temperature (<{#ARUBA.TEMPERATURE.MIN} °C)' + priority: AVERAGE + description: 'The current temperature is less than the threshold state.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: f3a97e48f8e448d084035248a5c5c1cf + name: 'Sensor [{#SNMPVALUE}]: Temperature' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Aruba CX 8300s by SNMP' + key: 'aruba.system.sensors[arubaWiredTempSensorTemperature.{#SNMPINDEX}]' + master_item: + key: aruba.system.sensor.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.5 + - '0' + - '{#ARUBA.TEMPERATURE.MAX}' + - 1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.9 + - '0' + - '{#ARUBA.TEMPERATURE.MIN}' + - 1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.8 + - '0' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value); + + for (var entity in json_data) { + json_data[entity]["{#ARUBA.TEMPERATURE.MIN}"] = json_data[entity]["{#ARUBA.TEMPERATURE.MIN}"]/1000; + json_data[entity]["{#ARUBA.TEMPERATURE.MAX}"] = json_data[entity]["{#ARUBA.TEMPERATURE.MAX}"]/1000; + } + + return JSON.stringify(json_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 393e6f00ffda4c2b82ed70985f69f65f + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 340c2fdef787474e83be63997b625831 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8076d892bc48457c8dd3ea798217aae1 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8920149ac322418d9b57c70acec389bd + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface,including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and another times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e622c6c312a24ca9af2c8182287f44c5 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5f2bca97b53448ca8023c3879ceb8ee6 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5e887d867a83457089d5e35fa7569e04 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.16.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: da03adb8168d477db8f0551c3f26c466 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, + this object should contain the nominal bandwidth. + If the bandwidth of the interface is greater than the maximum value reportable by this object then + this object should report its maximum value (4,294,967,295) and ifHighSpeed must be used to report the interface's speed. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 5m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e1b6b46280cc4b7f8432ff5c2ba2a65e + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8d869d65193742558bd6eebb4c729498 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Aruba: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 186cc3fcf4c4466a8f63c0dd037a71c0 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e2beaf89f19d4ed29ce1db0731034a04 + expression: | + change(/Aruba CX 8300s by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])<0 and last(/Aruba CX 8300s by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 + and ( + last(/Aruba CX 8300s by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Aruba CX 8300s by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Aruba CX 8300s by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Aruba CX 8300s by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Aruba CX 8300s by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Aruba CX 8300s by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Aruba CX 8300s by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 and last(/Aruba CX 8300s by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Aruba: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Aruba: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 2d02987f53f543c7858f82e70a7c791a + expression: | + (avg(/Aruba CX 8300s by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Aruba CX 8300s by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) or + avg(/Aruba CX 8300s by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Aruba CX 8300s by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])) and + last(/Aruba CX 8300s by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Aruba CX 8300s by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Aruba CX 8300s by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) and + avg(/Aruba CX 8300s by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Aruba CX 8300s by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) + name: 'Aruba: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Aruba: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Aruba: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 205f155f4cc145218d006bdebfefb7a1 + expression: | + min(/Aruba CX 8300s by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Aruba CX 8300s by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Aruba CX 8300s by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Aruba CX 8300s by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Aruba: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Aruba: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Aruba: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Aruba CX 8300s by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: f2626428025f4c4c88f4f2e32d7d6892 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Aruba CX 8300s by SNMP' + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Aruba CX 8300s by SNMP' + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Aruba CX 8300s by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Aruba CX 8300s by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Aruba CX 8300s by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Aruba CX 8300s by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: aruba + - tag: target + value: cx8300s + macros: + - macro: '{$ARUBA.CPU.UTIL.MAX}' + value: '90' + description: 'Threshold of CPU utilization expressed in %.' + - macro: '{$ARUBA.MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold of memory utilization expressed in %.' + - macro: '{$ARUBA.POWER.SUPPLY.THR.MAX}' + value: '90' + description: 'Threshold of power utilization expressed in %.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '95' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + dashboards: + - uuid: c9c7c666c80e4e01bf67a0d597ca53ab + name: 'Aruba: Overview' + pages: + - name: 'Aruba: Overview' + widgets: + - type: item + name: 'Uptime (network)' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Aruba CX 8300s by SNMP' + key: 'system.net.uptime[sysUpTime.0]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: svggraph + name: 'ICMP response time' + 'y': '2' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Aruba CX 8300s by SNMP' + key: icmppingsec + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: honeycomb + name: 'Sensor temperature' + 'y': '7' + width: '24' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'Sensor*Temperature' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Sensor\s\[(.*)\]","\1")}' + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: item + name: 'System name' + x: '18' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Aruba CX 8300s by SNMP' + key: system.name + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: svggraph + name: 'CPU utilization' + x: '24' + 'y': '7' + width: '24' + height: '5' + fields: + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: '*CPU utilization' + - type: INTEGER + name: ds.0.width + value: '3' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: lefty_static_units + value: '%' + - type: INTEGER + name: lefty_units + value: '1' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: item + name: 'System location' + x: '36' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Aruba CX 8300s by SNMP' + key: 'system.location[sysLocation.0]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: honeycomb + name: 'Fan status' + x: '36' + 'y': '2' + width: '24' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'Fan*status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Fan\s\[(.*)\]","\1")}' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: B0BEC5 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: B0BEC5 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FF8000 + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: STRING + name: thresholds.3.color + value: AED581 + - type: STRING + name: thresholds.3.threshold + value: '4' + - type: STRING + name: thresholds.4.color + value: FF0000 + - type: STRING + name: thresholds.4.threshold + value: '5' + - type: svggraph + name: 'Memory usage' + x: '48' + 'y': '7' + width: '24' + height: '5' + fields: + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: '*Memory usage' + - type: INTEGER + name: ds.0.width + value: '3' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: lefty_static_units + value: '%' + - type: INTEGER + name: lefty_units + value: '1' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: item + name: 'System description' + x: '54' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Aruba CX 8300s by SNMP' + key: 'system.descr[sysDescr.0]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: honeycomb + name: 'PSU state' + x: '60' + 'y': '2' + width: '12' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'PSU*State' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("PSU\s\[(.*)\]","\1")}' + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: AED581 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF0000 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FF0000 + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: STRING + name: thresholds.3.color + value: FF0000 + - type: STRING + name: thresholds.3.threshold + value: '4' + - type: STRING + name: thresholds.4.color + value: FF0000 + - type: STRING + name: thresholds.4.threshold + value: '5' + - type: STRING + name: thresholds.5.color + value: FF0000 + - type: STRING + name: thresholds.5.threshold + value: '6' + - type: STRING + name: thresholds.6.color + value: FF0000 + - type: STRING + name: thresholds.6.threshold + value: '7' + - type: STRING + name: thresholds.7.color + value: FF0000 + - type: STRING + name: thresholds.7.threshold + value: '8' + - type: STRING + name: thresholds.8.color + value: FF0000 + - type: STRING + name: thresholds.8.threshold + value: '9' + - type: STRING + name: thresholds.9.color + value: FF0000 + - type: STRING + name: thresholds.9.threshold + value: '10' + - type: STRING + name: thresholds.10.color + value: FF0000 + - type: STRING + name: thresholds.10.threshold + value: '11' + - type: STRING + name: thresholds.11.color + value: FF0000 + - type: STRING + name: thresholds.11.threshold + value: '12' + - type: STRING + name: thresholds.12.color + value: FF0000 + - type: STRING + name: thresholds.12.threshold + value: '13' + - type: STRING + name: thresholds.13.color + value: FF0000 + - type: STRING + name: thresholds.13.threshold + value: '14' + - name: 'Aruba: OSPF' + widgets: + - type: honeycomb + name: 'OSPF Area status' + width: '24' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'OSPF area*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("area\s\[(.*)\]","Area: \1")}' + - type: STRING + name: reference + value: AAAAG + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: AED581 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FFB74D + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FFB74D + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: STRING + name: thresholds.3.color + value: FFB74D + - type: STRING + name: thresholds.3.threshold + value: '4' + - type: STRING + name: thresholds.4.color + value: FFB74D + - type: STRING + name: thresholds.4.threshold + value: '5' + - type: STRING + name: thresholds.5.color + value: FF0000 + - type: STRING + name: thresholds.5.threshold + value: '6' + - type: honeycomb + name: 'OSPF Interface state' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'OSPF interface*State' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("interface\s\[(.*)\]","\1")}' + - type: STRING + name: reference + value: AAAAL + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF0000 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: AED581 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FFB74D + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: STRING + name: thresholds.3.color + value: AED581 + - type: STRING + name: thresholds.3.threshold + value: '4' + - type: STRING + name: thresholds.4.color + value: AED581 + - type: STRING + name: thresholds.4.threshold + value: '5' + - type: STRING + name: thresholds.5.color + value: AED581 + - type: STRING + name: thresholds.5.threshold + value: '6' + - type: STRING + name: thresholds.6.color + value: AED581 + - type: STRING + name: thresholds.6.threshold + value: '7' + - type: STRING + name: thresholds.7.color + value: AED581 + - type: STRING + name: thresholds.7.threshold + value: '8' + - type: honeycomb + name: 'OSPF Neighbor state' + x: '24' + width: '24' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'OSPF neighbor*State' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("neighbor\s\[(.*)\]","\1")}' + - type: STRING + name: reference + value: AAAAH + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF0000 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FFB74D + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FFB74D + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: STRING + name: thresholds.3.color + value: AED581 + - type: STRING + name: thresholds.3.threshold + value: '4' + - type: STRING + name: thresholds.4.color + value: FFB74D + - type: STRING + name: thresholds.4.threshold + value: '5' + - type: STRING + name: thresholds.5.color + value: FFB74D + - type: STRING + name: thresholds.5.threshold + value: '6' + - type: STRING + name: thresholds.6.color + value: FFB74D + - type: STRING + name: thresholds.6.threshold + value: '7' + - type: STRING + name: thresholds.7.color + value: AED581 + - type: STRING + name: thresholds.7.threshold + value: '8' + - type: honeycomb + name: 'OSPF Interface status' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'OSPF interface*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("interface\s\[(.*)\]","\1")}' + - type: STRING + name: reference + value: AAAAM + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: AED581 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FFB74D + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FFB74D + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: STRING + name: thresholds.3.color + value: FFB74D + - type: STRING + name: thresholds.3.threshold + value: '4' + - type: STRING + name: thresholds.4.color + value: FFB74D + - type: STRING + name: thresholds.4.threshold + value: '5' + - type: STRING + name: thresholds.5.color + value: FF0000 + - type: STRING + name: thresholds.5.threshold + value: '6' + - type: honeycomb + name: 'OSPF Neighbor status' + x: '48' + width: '24' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'OSPF neighbor*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("neighbor\s\[(.*)\]","\1")}' + - type: STRING + name: reference + value: AAAAK + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: AED581 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FFB74D + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FFB74D + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: STRING + name: thresholds.3.color + value: FFB74D + - type: STRING + name: thresholds.3.threshold + value: '4' + - type: STRING + name: thresholds.4.color + value: FFB74D + - type: STRING + name: thresholds.4.threshold + value: '5' + - type: STRING + name: thresholds.5.color + value: FF0000 + - type: STRING + name: thresholds.5.threshold + value: '6' + valuemaps: + - uuid: 0d0532eebc294155a25733c1b7fe7ba1 + name: 'Fan status' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Empty + - value: '3' + newvalue: Uninitialized + - value: '4' + newvalue: Ok + - value: '5' + newvalue: Fault + - uuid: 42f606a7537849878b1090e7085add48 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 0c9ae7b0f91c40afbb1fc35a3e33052a + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 53bf2bc50e8049049d79fd3e23fa0755 + name: 'OSPF area auth type' + mappings: + - value: '0' + newvalue: None + - value: '1' + newvalue: 'Simple password' + - value: '2' + newvalue: md5 + - uuid: 4f6d5cf1f7ac44509c44cfdd3e21b5e8 + name: 'OSPF area status' + mappings: + - value: '1' + newvalue: Active + - value: '2' + newvalue: 'Not in service' + - value: '3' + newvalue: 'Not ready' + - value: '4' + newvalue: 'Create and go' + - value: '5' + newvalue: 'Create and wait' + - value: '6' + newvalue: Destroy + - uuid: ff8918aafeb7439db7197845b4628a19 + name: 'OSPF interface admin status' + mappings: + - value: '1' + newvalue: Enabled + - value: '2' + newvalue: Disabled + - uuid: a2002d515c744e278844803dd3d543e8 + name: 'OSPF interface state' + mappings: + - value: '1' + newvalue: Down + - value: '2' + newvalue: Loopback + - value: '3' + newvalue: Waiting + - value: '4' + newvalue: 'Point to point' + - value: '5' + newvalue: 'Designated router' + - value: '6' + newvalue: 'Backup designated router' + - value: '7' + newvalue: 'Other designated router' + - uuid: 7cb675b0d69441c9950dcb375ec458a2 + name: 'OSPF interface status' + mappings: + - value: '1' + newvalue: Active + - value: '2' + newvalue: 'Not in service' + - value: '3' + newvalue: 'Not ready' + - value: '4' + newvalue: 'Create and go' + - value: '5' + newvalue: 'Create and wait' + - value: '6' + newvalue: Destroy + - uuid: d69261a6f83c4d31a454b01f101a7c2b + name: 'OSPF interface type' + mappings: + - value: '1' + newvalue: Broadcast + - value: '2' + newvalue: NBMA + - value: '3' + newvalue: 'Point to point' + - value: '4' + newvalue: 'Virtual link' + - value: '5' + newvalue: 'Point to multipoint' + - uuid: dc9b1a5f62c147849ff0eea9da891b71 + name: 'OSPF neighbor state' + mappings: + - value: '1' + newvalue: Down + - value: '2' + newvalue: Attempt + - value: '3' + newvalue: Init + - value: '4' + newvalue: 'Two way' + - value: '5' + newvalue: 'Exchange start' + - value: '6' + newvalue: Exchange + - value: '7' + newvalue: Loading + - value: '8' + newvalue: Full + - uuid: 80a6f0a98231480bb649d030f37bf91e + name: 'OSPF neighbor status' + mappings: + - value: '1' + newvalue: Active + - value: '2' + newvalue: 'Not in service' + - value: '3' + newvalue: 'Not ready' + - value: '4' + newvalue: 'Create and go' + - value: '5' + newvalue: 'Create and wait' + - value: '6' + newvalue: Destroy + - uuid: 977d715501e74110ad6d5ab308f8dfe7 + name: 'OSPF translator role' + mappings: + - value: '1' + newvalue: Always + - value: '2' + newvalue: Candidate + - uuid: 71336b06c8814c5087ebbc891995eb38 + name: 'OSPF translator state' + mappings: + - value: '1' + newvalue: Enabled + - value: '2' + newvalue: Elected + - value: '3' + newvalue: Disabled + - uuid: 8fddba3562234525bec7b05dccbea5db + name: 'Power supply state' + mappings: + - value: '1' + newvalue: Ok + - value: '2' + newvalue: 'Fault Absent' + - value: '3' + newvalue: 'Fault Input' + - value: '4' + newvalue: 'Fault Output' + - value: '5' + newvalue: 'Fault POE' + - value: '6' + newvalue: 'Fault No Recov' + - value: '7' + newvalue: Alert + - value: '8' + newvalue: Unknown + - value: '9' + newvalue: Unsupported + - value: '10' + newvalue: Warning + - value: '11' + newvalue: Init + - value: '12' + newvalue: Empty + - value: '13' + newvalue: 'Fault Airflow' + - value: '14' + newvalue: 'Fault Redundancy' + - uuid: 797ba226aeaa4bdb96bfe404f3e980d1 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: b7a8836abbc84e42b2c562ccf4d562e7 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 28a227bae78343c58edb44e6bdc18543 + expression: '(last(/Aruba CX 8300s by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Aruba CX 8300s by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Aruba CX 8300s by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Aruba CX 8300s by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Aruba: Host has been restarted' + event_name: 'Aruba: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Aruba: No SNMP data collection' + expression: 'max(/Aruba CX 8300s by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Asterisk_by_HTTP.yaml b/Asterisk_by_HTTP.yaml new file mode 100644 index 0000000..d55c0ed --- /dev/null +++ b/Asterisk_by_HTTP.yaml @@ -0,0 +1,1406 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 1d12408342854fd5a4436dd6d5d1bd4a + name: Templates/Telephony + templates: + - uuid: 30cc187a4e994c39b07f53d86b5cc6bc + template: 'Asterisk by HTTP' + name: 'Asterisk by HTTP' + description: | + The template gets Asterisk metrics from AMI by HTTP agent. + You should enable the mini-HTTP Server, add the option webenabled=yes in the general section of the manager.conf file and create Asterisk Manager user with system and command write permissions within your Asterisk instance. + Disable the PJSIP driver if you do not use PJSIP or do not have PJSIP endpoints. + Please, define AMI address in the {$AMI.URL} macro. Also, set the hostname or IP address of the AMI host in the {$AMI.HOST} macro for Zabbix to check Asterisk service status. + Then you can define {$AMI.USERNAME} and {$AMI.SECRET} macros in the template for using on the host level. + If there are errors, increase the logging to debug level and see the Zabbix server log. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/410060-discussion-thread-for-official-zabbix-template-asterisk + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Telephony + items: + - uuid: 72d074f6bb214ef9884d8cc4b1530ad3 + name: 'Active calls' + type: DEPENDENT + key: asterisk.active_calls + delay: '0' + description: 'The number of active calls at the moment.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_calls + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: calls + - uuid: bb9ac1ac188b43239456477e13ae555f + name: 'Active channels' + type: DEPENDENT + key: asterisk.active_channels + delay: '0' + description: 'The number of active channels at the moment.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_channels + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: channels + - uuid: ccfc2a8a5880430196e2c874b66370ca + name: 'Calls processed' + type: DEPENDENT + key: asterisk.calls_processed + delay: '0' + description: 'The number of calls processed after the last service restart.' + preprocessing: + - type: JSONPATH + parameters: + - $.calls_processed + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: calls + - uuid: 196af875a190438abd8de5a6803a550f + name: 'Calls processed per second' + type: DEPENDENT + key: asterisk.calls_processed.rate + delay: '0' + value_type: FLOAT + description: 'The number of calls processed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.calls_processed + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: calls + - uuid: 7db3e9cdae3d4bffa7429617e351fce1 + name: 'Get stats' + type: HTTP_AGENT + key: asterisk.get_stats + history: '0' + value_type: TEXT + trends: '0' + description: 'Asterisk system information in JSON format.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Asterisk"}.regsub("^(none|peer|full)$", "\1")}'); + + var Ami = { + params: { + url: '{$AMI.URL}', + trunk: '{$AMI.TRUNK_REGEXP}' + }, + api_request: new HttpRequest(tls.options), + + request: function (url, action) { + url += action; + tls.checkURL(url); + Zabbix.log(4, '[ Asterisk ] Sending request: ' + url); + try { + response = Ami.api_request.get(url); + } catch (error) { + Zabbix.log(4, '[ Asterisk ] Get request returned error ' + error); + throw 'Get request returned error ' + error + '. Check debug log for more information.'; + } + Zabbix.log(4, '[ Asterisk ] Received response with status code ' + + Ami.api_request.getStatus() + '\n' + response); + + if (Ami.api_request.getStatus() !== 200) { + var message = 'Request failed with status code ' + Ami.api_request.getStatus(); + if (response !== null) { + if (typeof response.message === 'string') { + message += ': ' + response.message; + } + } + + throw message + ' Check debug log for more information.'; + } + + var match = response.match('Response: (.+)'); + if (match !== null && match[1] !== 'Success' && match[1] !== 'Goodbye' && match[1] !== 'Follows') { + var responseText = match[1], + message = 'Request failed with message ' + match[1]; + + match = response.match('Message: (.+)'); + if (match !== null && match[1]) { + var responseMessage = match[1]; + message += ': ' + match[1]; + } + if (responseText !== 'Error' || responseMessage !== 'No endpoints found') { + throw message + '. Check debug log for more information.'; + } + } + + return { + status: Ami.api_request.getStatus(), + body: response + }; + } + }; + + var asterisk = { + version: '', + uptime: 0, + uptime_reload: 0, + active_channels: 0, + active_calls: 0, + calls_processed: 0, + sip: { + trunks: [], + monitored_online: 0, + monitored_offline: 0, + unmonitored_online: 0, + unmonitored_offline: 0, + active_channels: 0, + total: 0 + }, + iax: { + trunks: [], + online: 0, + offline: 0, + unmonitored: 0, + active_channels: 0, + total: 0 + }, + pjsip: { + trunks: [], + available: 0, + unavailable: 0, + active_channels: 0, + total: 0 + }, + queue: { + queues: [], + total: 0 + } + }; + + function block2Object(text) { + var parts = [], + dict = {}; + + text = text.replace(/^Output: /gm, ''); + + text.split('\n').forEach(function (line) { + parts = line.split(':'); + if (parts.length > 1) { + dict[parts.shift().trim()] = parts.join(':').trim(); + } + }) + + return dict; + } + + function text2Object(text) { + var blocks = text.split('\r\n\r\n'), + arr = [], + i = 1, + j = blocks.length - 2; + + for (i; i < j; i++) { + arr.push(block2Object(blocks[i])); + } + + return arr; + } + + function getSipPeers() { + var response = Ami.request(url, 'SIPpeers'), + elements = text2Object(response.body); + asterisk.sip.total = elements.length; + asterisk.sip.trunks = elements.filter(function (element) { + return element.ObjectName.search(Ami.params.trunk) != -1; + }); + elements.forEach(function (element) { + if (element.IPaddress === '-none-') { + switch (element.Status) { + case 'Unmonitored': + asterisk.sip.unmonitored_offline++; + break; + + case 'UNKNOWN': + asterisk.sip.monitored_offline++; + break; + } + } + else { + if (element.Status === 'Unmonitored') { + asterisk.sip.unmonitored_online++; + } + else { + asterisk.sip.monitored_online++; + if (element.Status.search('^OK') != -1) { + element.Status = element.Status.split(' ')[0]; + } + } + } + }); + asterisk.sip.trunks.forEach(function (trunk) { + var active_channels = channels.match(new RegExp('[^!J]SIP/' + escapeChars(trunk.ObjectName), 'g')); + trunk.active_channels = (active_channels === null) ? 0 : active_channels.length; + asterisk.sip.active_channels += trunk.active_channels; + }); + } + + function getIaxPeerList() { + response = Ami.request(url, 'IAXpeerlist'); + elements = text2Object(response.body); + asterisk.iax.total = elements.length; + asterisk.iax.trunks = elements.filter(function (element) { + return element.ObjectName.search(Ami.params.trunk) != -1; + }); + elements.forEach(function (element) { + if (element.Status.search('^OK') != -1) { + element.Status = element.Status.split(' ')[0]; + } + switch (element.Status) { + case 'Unmonitored': + asterisk.iax.unmonitored++; + break; + + case 'UNKNOWN': + asterisk.iax.offline++; + break; + } + }); + asterisk.iax.online = asterisk.iax.total - asterisk.iax.offline; + asterisk.iax.trunks.forEach(function (trunk) { + var active_channels = channels.match(new RegExp('[^!](IAX2/' + escapeChars(trunk.ObjectName) + + '|IAX2/' + escapeChars(trunk.ObjectUsername) + ')', 'g')); + trunk.active_channels = (active_channels === null) ? 0 : active_channels.length; + asterisk.iax.active_channels += trunk.active_channels; + }); + } + + function getPjsipShowEndpoints() { + response = Ami.request(url, 'PJSIPShowEndpoints'); + elements = text2Object(response.body); + asterisk.pjsip.total = elements.length; + asterisk.pjsip.trunks = elements.filter(function (element) { + return element.ObjectName.search(Ami.params.trunk) != -1; + }); + + elements.forEach(function (element) { + if (element.DeviceState === 'Unavailable') { + asterisk.pjsip.unavailable++; + } + }); + asterisk.pjsip.available = asterisk.pjsip.total - asterisk.pjsip.unavailable; + asterisk.pjsip.trunks.forEach(function (trunk) { + var active_channels = channels.match(new RegExp('[^!]PJSIP/' + escapeChars(trunk.ObjectName), 'g')); + trunk.active_channels = (active_channels === null) ? 0 : active_channels.length; + asterisk.pjsip.active_channels += trunk.active_channels; + }); + } + + function getQueueSummary() { + response = Ami.request(url, 'QueueSummary'); + asterisk.queue.queues = text2Object(response.body); + asterisk.queue.total = asterisk.queue.queues.length; + } + + function escapeChars(str) { + return str.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); + } + + function getUptimeSeconds(text) { + var date = { + years: 0, + weeks: 0, + days: 0, + hours: 0, + minutes: 0, + seconds: 0 + }; + + var fields = { + years: 'years?', + weeks: 'weeks?', + days: 'days?', + hours: 'hours?', + minutes: 'minutes?', + seconds: 'seconds?' + }; + + Object.keys(fields).forEach(function (field) { + var match = text.match('(\\d+) ' + fields[field]); + if (match !== null && typeof match[1] !== 'undefined') { + date[field] = parseInt(match[1]); + } + }); + return date.years * 220752000 + date.weeks * 604800 + date.days * 86400 + + date.hours * 3600 + date.minutes * 60 + date.seconds; + } + + var cookie = value.match(/mansession_id="([0-9A-z]+)"/); + if (cookie == null) { + throw 'Cannot find mansession_id with cookie in response.'; + } + + var url = Ami.params.url.split('?')[0] + '?action='; + + Ami.api_request.addHeader('Cookie: mansession_id="' + cookie[1] + '"'); + + var response = Ami.request(url, 'CoreSettings'); + var coreSettings = block2Object(response.body); + if (typeof coreSettings.AsteriskVersion !== 'undefined') { + asterisk.version = coreSettings.AsteriskVersion; + } + + response = Ami.request(url, 'command&command=core%20show%20uptime'); + var uptime = block2Object(response.body); + if (typeof uptime["System uptime"] !== 'undefined') { + asterisk.uptime = getUptimeSeconds(uptime["System uptime"]); + } + if (typeof uptime["Last reload"] !== 'undefined') { + asterisk.uptime_reload = getUptimeSeconds(uptime["Last reload"]); + } + + response = Ami.request(url, 'command&command=core%20show%20channels%20count'); + channels = response.body; + var fields = { + active_channels: 'active channels?', + active_calls: 'active calls?', + calls_processed: 'calls? processed' + }; + + Object.keys(fields).forEach(function (field) { + var match = channels.match('(\\d+)\\s+(?:of\\s+\\d+\\s+max\\s+)?' + fields[field]); + if (match !== null && typeof match[1] !== 'undefined') { + asterisk[field] = parseInt(match[1]); + } + }); + + response = Ami.request(url, 'command&command=core%20show%20channels%20concise'); + channels = response.body; + + response = Ami.request(url, 'ListCommands'); + var list = response.body; + if (list.includes('SIPpeers')) { + getSipPeers(); + } + if (list.includes('IAXpeerlist')) { + getIaxPeerList(); + } + if (list.includes('PJSIPShowEndpoints')) { + getPjsipShowEndpoints(); + } + if (list.includes('QueueSummary')) { + getQueueSummary(); + } + + try { + response = Ami.request(url, 'Logoff'); + } + catch (e) {} + + return JSON.stringify(asterisk); + url: '{$AMI.URL}' + query_fields: + - name: action + value: login + - name: username + value: '{$AMI.USERNAME}' + - name: secret + value: '{$AMI.SECRET}' + retrieve_mode: HEADERS + tags: + - tag: component + value: raw + - uuid: d9900a1f096a4b89a2aa4af89f30b2cc + name: 'IAX trunks active channels' + type: DEPENDENT + key: asterisk.iax.active_channels + delay: '0' + description: 'The total number of IAX trunks active channels.' + preprocessing: + - type: JSONPATH + parameters: + - $.iax.active_channels + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: channels + triggers: + - uuid: 0ae0a5b6123a42dd9722219e5e5839df + expression: 'min(/Asterisk by HTTP/asterisk.iax.active_channels,10m)>={$AMI.TRUNK_ACTIVE_CHANNELS_TOTAL.MAX.WARN:"IAX"}' + name: 'Asterisk: Total number of active channels of IAX trunks is too high' + event_name: 'Asterisk: Total number of active channels of IAX trunks is too high (over {$AMI.TRUNK_ACTIVE_CHANNELS_TOTAL.MAX.WARN:"IAX"} for 10m)' + priority: WARNING + description: 'The IAX trunks may not be able to process new calls.' + tags: + - tag: scope + value: performance + - uuid: 0798cf46d82041e6a7091698c7693ec5 + name: 'IAX offline peers' + type: DEPENDENT + key: asterisk.iax.offline + delay: '0' + description: 'The number of offline IAX peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.iax.offline + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: bf741f5560734530be352341071c5984 + name: 'IAX online peers' + type: DEPENDENT + key: asterisk.iax.online + delay: '0' + description: 'The number of online IAX peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.iax.online + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: ccb62e9b41da4f20b4ab19e4eecd598b + name: 'IAX peers' + type: DEPENDENT + key: asterisk.iax.total + delay: '0' + description: 'The total number of IAX peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.iax.total + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: cf5c07c1a09b4a10af21292b876fcb20 + name: 'IAX unmonitored peers' + type: DEPENDENT + key: asterisk.iax.unmonitored + delay: '0' + description: 'The number of unmonitored IAX peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.iax.unmonitored + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: 5ae6135a49764db7b496f5d2378ddd77 + name: 'PJSIP trunks active channels' + type: DEPENDENT + key: asterisk.pjsip.active_channels + delay: '0' + description: 'The total number of PJSIP trunks active channels.' + preprocessing: + - type: JSONPATH + parameters: + - $.pjsip.active_channels + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: channels + triggers: + - uuid: 9b158fe0efb4416cb6ad5d53b38c3e38 + expression: 'min(/Asterisk by HTTP/asterisk.pjsip.active_channels,10m)>={$AMI.TRUNK_ACTIVE_CHANNELS_TOTAL.MAX.WARN:"PJSIP"}' + name: 'Asterisk: Total number of active channels of PJSIP trunks is too high' + event_name: 'Asterisk: Total number of active channels of PJSIP trunks is too high (over {$AMI.TRUNK_ACTIVE_CHANNELS_TOTAL.MAX.WARN:"PJSIP"} for 10m)' + priority: WARNING + description: 'The PJSIP trunks may not be able to process new calls.' + tags: + - tag: scope + value: performance + - uuid: cc07f186104842aabec3d26dcd4322d2 + name: 'PJSIP available endpoints' + type: DEPENDENT + key: asterisk.pjsip.available + delay: '0' + description: 'The number of available PJSIP peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.pjsip.available + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: fdc888cb355a4b738be8a77354a7ce76 + name: 'PJSIP endpoints' + type: DEPENDENT + key: asterisk.pjsip.total + delay: '0' + description: 'The total number of PJSIP peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.pjsip.total + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: 5c10fe1a4bfb4628be20137d0f1ec725 + name: 'PJSIP unavailable endpoints' + type: DEPENDENT + key: asterisk.pjsip.unavailable + delay: '0' + description: 'The number of unavailable PJSIP peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.pjsip.unavailable + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: 2df0dca89a744e86b4f5a2cec673d427 + name: 'SIP trunks active channels' + type: DEPENDENT + key: asterisk.sip.active_channels + delay: '0' + description: 'The total number of SIP trunks active channels.' + preprocessing: + - type: JSONPATH + parameters: + - $.sip.active_channels + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: channels + triggers: + - uuid: d2fde5d26d284a129346a12ba0949b60 + expression: 'min(/Asterisk by HTTP/asterisk.sip.active_channels,10m)>={$AMI.TRUNK_ACTIVE_CHANNELS_TOTAL.MAX.WARN:"SIP"}' + name: 'Asterisk: Total number of active channels of SIP trunks is too high' + event_name: 'Asterisk: Total number of active channels of SIP trunks is too high (over {$AMI.TRUNK_ACTIVE_CHANNELS_TOTAL.MAX.WARN:"SIP"} for 10m)' + priority: WARNING + description: 'The SIP trunks may not be able to process new calls.' + tags: + - tag: scope + value: performance + - uuid: fb08ec8d143a41a097f8652c8261bad8 + name: 'SIP monitored offline' + type: DEPENDENT + key: asterisk.sip.monitored_offline + delay: '0' + description: 'The number of monitored offline SIP peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.sip.monitored_offline + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: 23744b0a04b54637a7dbe1c7f8f5200f + name: 'SIP monitored online' + type: DEPENDENT + key: asterisk.sip.monitored_online + delay: '0' + description: 'The number of monitored online SIP peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.sip.monitored_online + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: fb78998a342942ac942a7e1632b98208 + name: 'SIP peers' + type: DEPENDENT + key: asterisk.sip.total + delay: '0' + description: 'The total number of SIP peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.sip.total + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: ae21f8c13063402d9eece400a18c6167 + name: 'SIP unmonitored offline' + type: DEPENDENT + key: asterisk.sip.unmonitored_offline + delay: '0' + description: 'The number of unmonitored offline SIP peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.sip.unmonitored_offline + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: 1cd5fb5232ca4f4398f85d959ac11b2c + name: 'SIP unmonitored online' + type: DEPENDENT + key: asterisk.sip.unmonitored_online + delay: '0' + description: 'The number of unmonitored online SIP peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.sip.unmonitored_online + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: peers + - uuid: 9c64cb54c2c541c1862558dcf8c6e3a3 + name: 'Total queues' + type: DEPENDENT + key: asterisk.total_queues + delay: '0' + description: 'The number of configured queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue.total + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: queues + - uuid: 8395ab5b70a7433eb508c513995988bb + name: Uptime + type: DEPENDENT + key: asterisk.uptime + delay: '0' + value_type: FLOAT + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: system + triggers: + - uuid: 35ca01e504a548db9d4db8be1390d6b9 + expression: 'nodata(/Asterisk by HTTP/asterisk.uptime,30m)=1' + name: 'Asterisk: Failed to fetch AMI page' + event_name: 'Asterisk: Failed to fetch AMI 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: 'Asterisk: Service is down' + expression: 'last(/Asterisk by HTTP/net.tcp.service["tcp","{$AMI.HOST}","{$AMI.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: 100d38b62c1d4ce298a9fadfbab19e4c + expression: 'last(/Asterisk by HTTP/asterisk.uptime)<10m' + name: 'Asterisk: Service has been restarted' + event_name: 'Asterisk: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 86e23b5b9fd64e6e840588d25921fcbf + name: 'Uptime after reload' + type: DEPENDENT + key: asterisk.uptime_reload + delay: '0' + value_type: FLOAT + units: uptime + description: 'System uptime after a config reload in ''N days, hh:mm:ss'' format.' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime_reload + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: system + triggers: + - uuid: 4e99b65188264ba1aa80e24662f9b3cd + expression: 'last(/Asterisk by HTTP/asterisk.uptime_reload)<10m' + name: 'Asterisk: Configuration has been reloaded' + event_name: 'Asterisk: Configuration has been reloaded (last reload < 10m ago)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8ed124c5d61541c0ab1dcc3491fb05c6 + name: Version + type: DEPENDENT + key: asterisk.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Service version' + preprocessing: + - type: JSONPATH + parameters: + - $.version + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: application + triggers: + - uuid: f1a260626ae6446d89e1e725e14c1098 + expression: 'last(/Asterisk by HTTP/asterisk.version,#1)<>last(/Asterisk by HTTP/asterisk.version,#2) and length(last(/Asterisk by HTTP/asterisk.version))>0' + name: 'Asterisk: Version has changed' + event_name: 'Asterisk: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Asterisk version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 09102393dc6a4ac598f02d95801c6ca0 + name: 'Service response time' + type: SIMPLE + key: 'net.tcp.service.perf["tcp","{$AMI.HOST}","{$AMI.PORT}"]' + value_type: FLOAT + units: s + description: 'Asterisk Manager API performance.' + tags: + - tag: component + value: network + triggers: + - uuid: dbc74502be01498194003dc1a3d90014 + expression: 'min(/Asterisk by HTTP/net.tcp.service.perf["tcp","{$AMI.HOST}","{$AMI.PORT}"],5m)>{$AMI.RESPONSE_TIME.MAX.WARN}' + name: 'Asterisk: Service response time is too high' + event_name: 'Asterisk: Service response time is too high (over {$AMI.RESPONSE_TIME.MAX.WARN} for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'Asterisk: Service is down' + expression: 'last(/Asterisk by HTTP/net.tcp.service["tcp","{$AMI.HOST}","{$AMI.PORT}"])=0' + tags: + - tag: scope + value: performance + - uuid: 58e18df6a5534395bf74d3babdb73170 + name: 'Service status' + type: SIMPLE + key: 'net.tcp.service["tcp","{$AMI.HOST}","{$AMI.PORT}"]' + description: 'Asterisk Manager API port availability.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1fa3370fa93f4d07a2c470f993096554 + expression: 'last(/Asterisk by HTTP/net.tcp.service["tcp","{$AMI.HOST}","{$AMI.PORT}"])=0' + name: 'Asterisk: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 3e7facc25a344cec8e384e8a9f8b372a + name: 'IAX peers discovery' + type: DEPENDENT + key: asterisk.iax_peers.discovery + delay: '0' + item_prototypes: + - uuid: 72d71ec4fa2b4e88a03d25e3bbe8771a + name: 'IAX trunk "{#OBJECTNAME}": Active channels' + type: DEPENDENT + key: 'asterisk.iax.trunk.active_channels[{#OBJECTNAME}]' + delay: '0' + description: 'The total number of active IAX trunk channels.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_channels + master_item: + key: 'asterisk.iax.trunk.get[{#OBJECTNAME}]' + tags: + - tag: component + value: channels + - tag: trunk + value: '{#OBJECTNAME}' + trigger_prototypes: + - uuid: e2a6c7a9b6234e2aae20c9aa480f9ef1 + expression: 'min(/Asterisk by HTTP/asterisk.iax.trunk.active_channels[{#OBJECTNAME}],10m)>={$AMI.TRUNK_ACTIVE_CHANNELS.MAX.WARN:"{#OBJECTNAME}"}' + name: 'Asterisk: IAX trunk "{#OBJECTNAME}": Number of the IAX trunk "{#OBJECTNAME}" active channels is too high' + event_name: 'Asterisk: IAX trunk "{#OBJECTNAME}": Number of the IAX trunk "{#OBJECTNAME}" active channels is too high (over {$AMI.TRUNK_ACTIVE_CHANNELS.MAX.WARN:"{#OBJECTNAME}"} for 10m)' + priority: WARNING + description: 'The IAX trunk may not be able to process new calls.' + tags: + - tag: scope + value: performance + - uuid: 9c6554be77234ed98cee4a49e23506b7 + name: 'IAX trunk "{#OBJECTNAME}": Get IAX trunk' + type: DEPENDENT + key: 'asterisk.iax.trunk.get[{#OBJECTNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for an IAX trunk.' + preprocessing: + - type: JSONPATH + parameters: + - '$.iax.trunks[?(@.ObjectName==''{#OBJECTNAME}'')].first()' + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: raw + - tag: trunk + value: '{#OBJECTNAME}' + - uuid: bbde7e898b4b4d34b27308d6ddaf86fc + name: 'IAX trunk "{#OBJECTNAME}": Status' + type: DEPENDENT + key: 'asterisk.iax.trunk.status[{#OBJECTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + IAX trunk status. Here are the possible states that a device state may have: + Unmonitored + UNKNOWN + UNREACHABLE + OK + preprocessing: + - type: JSONPATH + parameters: + - $.Status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'asterisk.iax.trunk.get[{#OBJECTNAME}]' + tags: + - tag: component + value: health + - tag: trunk + value: '{#OBJECTNAME}' + trigger_prototypes: + - uuid: db595245acef4ec9b771c266c14100d2 + expression: 'last(/Asterisk by HTTP/asterisk.iax.trunk.status[{#OBJECTNAME}])="UNKNOWN" or last(/Asterisk by HTTP/asterisk.iax.trunk.status[{#OBJECTNAME}])="UNREACHABLE"' + name: 'Asterisk: IAX trunk "{#OBJECTNAME}": IAX trunk {#OBJECTNAME} has a state {ITEM.VALUE}' + priority: AVERAGE + description: 'The IAX trunk is unable to establish a connection with a neighbor due to network issues or incorrect configuration.' + tags: + - tag: scope + value: availability + master_item: + key: asterisk.get_stats + lld_macro_paths: + - lld_macro: '{#OBJECTNAME}' + path: $.ObjectName + preprocessing: + - type: JSONPATH + parameters: + - $.iax.trunks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 1a123ca04c7544bfa823a39b8a9fe84c + name: 'PJSIP endpoints discovery' + type: DEPENDENT + key: asterisk.pjsip_endpoints.discovery + delay: '0' + item_prototypes: + - uuid: ec8220a1aa814112908337a009f6fcac + name: 'PJSIP trunk "{#OBJECTNAME}": Active channels' + type: DEPENDENT + key: 'asterisk.pjsip.trunk.active_channels[{#OBJECTNAME}]' + delay: '0' + description: 'The total number of active PJSIP trunk channels.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_channels + master_item: + key: 'asterisk.pjsip.trunk.get[{#OBJECTNAME}]' + tags: + - tag: component + value: channels + - tag: trunk + value: '{#OBJECTNAME}' + trigger_prototypes: + - uuid: f192d555011c42c28c6a8f52c0388fe1 + expression: 'min(/Asterisk by HTTP/asterisk.pjsip.trunk.active_channels[{#OBJECTNAME}],10m)>={$AMI.TRUNK_ACTIVE_CHANNELS.MAX.WARN:"{#OBJECTNAME}"}' + name: 'Asterisk: PJSIP trunk "{#OBJECTNAME}": Number of the PJSIP trunk "{#OBJECTNAME}" active channels is too high' + event_name: 'Asterisk: PJSIP trunk "{#OBJECTNAME}": Number of the PJSIP trunk "{#OBJECTNAME}" active channels is too high (over {$AMI.TRUNK_ACTIVE_CHANNELS.MAX.WARN:"{#OBJECTNAME}"} for 10m)' + priority: WARNING + description: 'The PJSIP trunk may not be able to process new calls.' + tags: + - tag: scope + value: performance + - uuid: c364b2ac50344372b155cbb98d9a7afe + name: 'PJSIP trunk "{#OBJECTNAME}": Device state' + type: DEPENDENT + key: 'asterisk.pjsip.trunk.devicestate[{#OBJECTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + PJSIP trunk status. Here are the possible states that a device state may have: + Unavailable + Not in use + In use + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceState + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'asterisk.pjsip.trunk.get[{#OBJECTNAME}]' + tags: + - tag: component + value: health + - tag: trunk + value: '{#OBJECTNAME}' + trigger_prototypes: + - uuid: 6f31d886d6954b82874d38646b233689 + expression: 'last(/Asterisk by HTTP/asterisk.pjsip.trunk.devicestate[{#OBJECTNAME}])="Unavailable"' + name: 'Asterisk: PJSIP trunk "{#OBJECTNAME}": PJSIP trunk {#OBJECTNAME} has a state Unavailable' + priority: AVERAGE + description: 'The PJSIP trunk is unable to establish a connection with a neighbor due to network issues or incorrect configuration.' + tags: + - tag: scope + value: availability + - uuid: 0919612d88744ec7ad47b11ccfad1f4e + name: 'PJSIP trunk "{#OBJECTNAME}": Get PJSIP trunk' + type: DEPENDENT + key: 'asterisk.pjsip.trunk.get[{#OBJECTNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for a PJSIP trunk.' + preprocessing: + - type: JSONPATH + parameters: + - '$.pjsip.trunks[?(@.ObjectName==''{#OBJECTNAME}'')].first()' + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: raw + - tag: trunk + value: '{#OBJECTNAME}' + master_item: + key: asterisk.get_stats + lld_macro_paths: + - lld_macro: '{#OBJECTNAME}' + path: $.ObjectName + preprocessing: + - type: JSONPATH + parameters: + - $.pjsip.trunks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5a936a95d62f4b50a4f3db112a3e041f + name: 'Queues discovery' + type: DEPENDENT + key: asterisk.queues.discovery + delay: '0' + item_prototypes: + - uuid: c16d9df72ba749369726d4cfcc8b4f40 + name: '"{#QUEUE}": Available' + type: DEPENDENT + key: 'asterisk.queue.available[{#QUEUE}]' + delay: '0' + description: 'The number of available queue members.' + preprocessing: + - type: JSONPATH + parameters: + - $.Available + master_item: + key: 'asterisk.queue.get[{#QUEUE}]' + tags: + - tag: component + value: members + - tag: queue + value: '{#QUEUE}' + - uuid: c271c7d76b2e49dea386bb08d60307d0 + name: '"{#QUEUE}": Callers' + type: DEPENDENT + key: 'asterisk.queue.callers[{#QUEUE}]' + delay: '0' + description: 'The number incoming calls in queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.Callers + master_item: + key: 'asterisk.queue.get[{#QUEUE}]' + tags: + - tag: component + value: calls + - tag: queue + value: '{#QUEUE}' + trigger_prototypes: + - uuid: 4f72c6a755be465287f36b8b12d3175b + expression: 'min(/Asterisk by HTTP/asterisk.queue.callers[{#QUEUE}],10m)>{$AMI.QUEUE_CALLERS.MAX.WARN:"{#QUEUE}"}' + name: 'Asterisk: "{#QUEUE}": Number of callers in the queue "{#QUEUE}" is too high' + event_name: 'Asterisk: "{#QUEUE}": Number of callers in the queue "{#QUEUE}" is too high (over {$AMI.QUEUE_CALLERS.MAX.WARN:"{#QUEUE}"} for 10m)' + priority: WARNING + description: 'There is a large number of calls in the queue.' + tags: + - tag: scope + value: performance + - uuid: 49bc8af136204b8bae9d7527d04b15bc + name: '"{#QUEUE}": Get queue' + type: DEPENDENT + key: 'asterisk.queue.get[{#QUEUE}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for a queue.' + preprocessing: + - type: JSONPATH + parameters: + - '$.queue.queues[?(@.Queue==''{#QUEUE}'')].first()' + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: raw + - tag: queue + value: '{#QUEUE}' + - uuid: 8319ec55cf6f4e8590f180f1a81f37ed + name: '"{#QUEUE}": Logged in' + type: DEPENDENT + key: 'asterisk.queue.loggedin[{#QUEUE}]' + delay: '0' + description: 'The number of queue members.' + preprocessing: + - type: JSONPATH + parameters: + - $.LoggedIn + master_item: + key: 'asterisk.queue.get[{#QUEUE}]' + tags: + - tag: component + value: members + - tag: queue + value: '{#QUEUE}' + master_item: + key: asterisk.get_stats + lld_macro_paths: + - lld_macro: '{#QUEUE}' + path: $.Queue + preprocessing: + - type: JSONPATH + parameters: + - $.queue.queues + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 675fc5b11cb1482db0c539dfb9100e75 + name: 'SIP peers discovery' + type: DEPENDENT + key: asterisk.sip_peers.discovery + delay: '0' + item_prototypes: + - uuid: 9043578864494b13b249ee7bdf13820d + name: 'SIP trunk "{#OBJECTNAME}": Active channels' + type: DEPENDENT + key: 'asterisk.sip.trunk.active_channels[{#OBJECTNAME}]' + delay: '0' + description: 'The total number of active SIP trunk channels.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_channels + master_item: + key: 'asterisk.sip.trunk.get[{#OBJECTNAME}]' + tags: + - tag: component + value: channels + - tag: trunk + value: '{#OBJECTNAME}' + trigger_prototypes: + - uuid: 51820b1326f84f51ba0e561946275133 + expression: 'min(/Asterisk by HTTP/asterisk.sip.trunk.active_channels[{#OBJECTNAME}],10m)>={$AMI.TRUNK_ACTIVE_CHANNELS.MAX.WARN:"{#OBJECTNAME}"}' + name: 'Asterisk: SIP trunk "{#OBJECTNAME}": Number of the SIP trunk "{#OBJECTNAME}" active channels is too high' + event_name: 'Asterisk: SIP trunk "{#OBJECTNAME}": Number of the SIP trunk "{#OBJECTNAME}" active channels is too high (over {$AMI.TRUNK_ACTIVE_CHANNELS.MAX.WARN:"{#OBJECTNAME}"} for 10m)' + priority: WARNING + description: 'The SIP trunk may not be able to process new calls.' + tags: + - tag: scope + value: performance + - uuid: a9532680f08445dd9a1bb37e2e2c44c5 + name: 'SIP trunk "{#OBJECTNAME}": Get SIP trunk' + type: DEPENDENT + key: 'asterisk.sip.trunk.get[{#OBJECTNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for a SIP trunk.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sip.trunks[?(@.ObjectName==''{#OBJECTNAME}'')].first()' + master_item: + key: asterisk.get_stats + tags: + - tag: component + value: raw + - tag: trunk + value: '{#OBJECTNAME}' + - uuid: df33da749e874f55be5f0c33cd201f62 + name: 'SIP trunk "{#OBJECTNAME}": Status' + type: DEPENDENT + key: 'asterisk.sip.trunk.status[{#OBJECTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + SIP trunk status. Here are the possible states that a device state may have: + Unmonitored + UNKNOWN + UNREACHABLE + OK + preprocessing: + - type: JSONPATH + parameters: + - $.Status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'asterisk.sip.trunk.get[{#OBJECTNAME}]' + tags: + - tag: component + value: health + - tag: trunk + value: '{#OBJECTNAME}' + trigger_prototypes: + - uuid: 39cac88e9263470da6e4b1a08f806c58 + expression: 'last(/Asterisk by HTTP/asterisk.sip.trunk.status[{#OBJECTNAME}])="UNKNOWN" or last(/Asterisk by HTTP/asterisk.sip.trunk.status[{#OBJECTNAME}])="UNREACHABLE"' + name: 'Asterisk: SIP trunk "{#OBJECTNAME}": SIP trunk {#OBJECTNAME} has a state {ITEM.VALUE}' + priority: AVERAGE + description: 'The SIP trunk is unable to establish a connection with a neighbor due to network issues or incorrect configuration.' + tags: + - tag: scope + value: availability + master_item: + key: asterisk.get_stats + lld_macro_paths: + - lld_macro: '{#OBJECTNAME}' + path: $.ObjectName + preprocessing: + - type: JSONPATH + parameters: + - $.sip.trunks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: voip + - tag: target + value: asterisk + macros: + - macro: '{$AMI.HOST}' + value: '' + description: 'The hostname or IP address of the Asterisk Manager API host.' + - macro: '{$AMI.PORT}' + value: '5038' + description: 'AMI port number for checking service availability.' + - macro: '{$AMI.QUEUE_CALLERS.MAX.WARN}' + value: '10' + description: 'The maximum number of callers in a queue for trigger expression.' + - macro: '{$AMI.RESPONSE_TIME.MAX.WARN}' + value: 10s + description: 'The Asterisk Manager API page maximum response time in seconds for trigger expression.' + - macro: '{$AMI.SECRET}' + value: zabbix + description: 'The Asterisk Manager secret.' + - macro: '{$AMI.TRUNK_ACTIVE_CHANNELS.MAX.WARN}' + value: '28' + description: 'The maximum number of busy channels of a trunk for trigger expression.' + - macro: '{$AMI.TRUNK_ACTIVE_CHANNELS_TOTAL.MAX.WARN:"IAX"}' + value: '28' + description: 'The total maximum number of busy channels of IAX trunks for trigger expression.' + - macro: '{$AMI.TRUNK_ACTIVE_CHANNELS_TOTAL.MAX.WARN:"PJSIP"}' + value: '28' + description: 'The total maximum number of busy channels of PJSIP trunks for trigger expression.' + - macro: '{$AMI.TRUNK_ACTIVE_CHANNELS_TOTAL.MAX.WARN:"SIP"}' + value: '28' + description: 'The total maximum number of busy channels of SIP trunks for trigger expression.' + - macro: '{$AMI.TRUNK_REGEXP}' + value: trunk + description: 'The regexp for the identification of trunk peers.' + - macro: '{$AMI.URL}' + value: 'http://asterisk:8088/asterisk/rawman' + description: 'The Asterisk Manager API URL in the format `://://rawman`.' + - macro: '{$AMI.USERNAME}' + value: zabbix + description: 'The Asterisk Manager name.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for JavaScript preprocessing: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Asterisk", e.g. {$HTTP.TLS.VERIFY:"Asterisk"}.' + valuemaps: + - uuid: d6e38832f2d44ec0bf6761e36fd7668f + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 92b561a0aee24da9a7d9875f2293316d + name: 'Asterisk: Calls stats' + graph_items: + - color: 199C0D + item: + host: 'Asterisk by HTTP' + key: asterisk.active_channels + - sortorder: '1' + color: F63100 + item: + host: 'Asterisk by HTTP' + key: asterisk.active_calls + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Asterisk by HTTP' + key: asterisk.calls_processed.rate + - uuid: 0e5d56155a1240108a4ffc2f3dc041be + name: 'Asterisk: IAX peers' + graph_items: + - color: 199C0D + item: + host: 'Asterisk by HTTP' + key: asterisk.iax.active_channels + - sortorder: '1' + color: F63100 + item: + host: 'Asterisk by HTTP' + key: asterisk.iax.online + - sortorder: '2' + color: 00611C + item: + host: 'Asterisk by HTTP' + key: asterisk.iax.offline + - sortorder: '3' + color: F7941D + item: + host: 'Asterisk by HTTP' + key: asterisk.iax.unmonitored + - uuid: fd5b051daaf64df89856bec400bbc3a0 + name: 'Asterisk: PJSIP peers' + graph_items: + - color: 199C0D + item: + host: 'Asterisk by HTTP' + key: asterisk.pjsip.active_channels + - sortorder: '1' + color: F63100 + item: + host: 'Asterisk by HTTP' + key: asterisk.pjsip.available + - sortorder: '2' + color: 00611C + item: + host: 'Asterisk by HTTP' + key: asterisk.pjsip.unavailable + - uuid: 2781590218fe4cc9ade68446e5d11aa2 + name: 'Asterisk: SIP peers' + graph_items: + - color: 199C0D + item: + host: 'Asterisk by HTTP' + key: asterisk.sip.active_channels + - sortorder: '1' + color: F63100 + item: + host: 'Asterisk by HTTP' + key: asterisk.sip.monitored_online + - sortorder: '2' + color: 00611C + item: + host: 'Asterisk by HTTP' + key: asterisk.sip.monitored_offline + - sortorder: '3' + color: F7941D + item: + host: 'Asterisk by HTTP' + key: asterisk.sip.unmonitored_online + - sortorder: '4' + color: FC6EA3 + item: + host: 'Asterisk by HTTP' + key: asterisk.sip.unmonitored_offline diff --git a/Azure_Backup_Jobs_by_HTTP.yaml b/Azure_Backup_Jobs_by_HTTP.yaml new file mode 100644 index 0000000..58920e7 --- /dev/null +++ b/Azure_Backup_Jobs_by_HTTP.yaml @@ -0,0 +1,1214 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 3d527f609e344ed8a4ec19762c31c619 + template: 'Azure Backup Jobs by HTTP' + name: 'Azure Backup Jobs by HTTP' + description: | + This template is designed to monitor Azure Backup Jobs via HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Cloud + items: + - uuid: b733302413d54250ba053b017367c6d6 + name: 'Availability status detailed' + type: DEPENDENT + key: azure.vault.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'The summary description of the availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: health + - uuid: 1dc10b5b07f648d4a75f614573bb8da5 + name: 'Availability state' + type: DEPENDENT + key: azure.vault.availability.state + delay: '0' + description: | + The availability status of the resource. + 0 - Available - no events detected that affect the health of the resource. + 1 - Degraded - your resource detected a loss in performance, although it's still available for use. + 2 - Unavailable - the service detected an ongoing platform or non-platform event that affects the health of the resource. + 3 - Unknown - Resource Health hasn't received information about the resource for more than 10 minutes. + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 68ee9193a98c40778ee57ab2256082ec + expression: 'last(/Azure Backup Jobs by HTTP/azure.vault.availability.state)=1' + name: 'Azure backup jobs: Azure vault is degraded' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: 40b756bf271d46da94d3a9de2b892d88 + expression: 'last(/Azure Backup Jobs by HTTP/azure.vault.availability.state)=3' + name: 'Azure backup jobs: Azure vault is in unknown state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: cecb9bb0945f4f21bb2ad3df02307641 + expression: 'last(/Azure Backup Jobs by HTTP/azure.vault.availability.state)=2' + name: 'Azure backup jobs: Azure vault is unavailable' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: 00848eb26866420282b2afdfc4334484 + name: 'Get errors' + type: DEPENDENT + key: azure.vault.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: error + triggers: + - uuid: d70f2e4edb38492ea019abbfc1cbb82a + expression: 'length(last(/Azure Backup Jobs by HTTP/azure.vault.data.errors))>0' + name: 'Azure backup jobs: There are errors in requests to API' + opdata: 'Error: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: 57d191150c06423daa1674d09c846dc7 + name: 'Get data' + type: SCRIPT + key: azure.vault.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Azure = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id', 'period'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Azure.params = params; + Azure.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + var response, login = new HttpRequest(Azure.tls.options); + + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + login.setProxy(Azure.params.proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(Azure.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(Azure.params.app_id) + '&client_secret=' + encodeURIComponent(Azure.params.password) + ); + + if (login.getStatus() !== 200) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + Azure.token = response['access_token']; + }, + + request: function (url) { + var response, request = new HttpRequest(Azure.tls.options); + + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + request.setProxy(Azure.params.proxy); + } + + if (!Azure.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Azure.token); + Zabbix.log(4, '[ Azure Vault ] request url: ' + url); + + response = request.get(url); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + getMetricsData: function () { + var data = {}, + end_date = new Date(), + start_date = new Date(); + + function formatDate(date) { + var year = date.getFullYear(), + month = (date.getMonth() + 1), + day = date.getDate(), + hours = date.getHours(), + minutes = date.getMinutes(), + seconds = date.getSeconds(), + ampm = hours >= 12 ? 'PM' : 'AM'; + + hours = hours % 12 || 12; + month = month < 10 ? '0' + month : month; + day = day < 10 ? '0' + day : day; + hours = hours < 10 ? '0' + hours : hours; + minutes = minutes < 10 ? '0' + minutes : minutes; + seconds = seconds < 10 ? '0' + seconds : seconds; + + formatted_date = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds + ' ' + ampm; + + return formatted_date + }; + + start_date.setDate(start_date.getDate() - Azure.params.period); + end_date = encodeURIComponent('\'' + formatDate(end_date) + '\''); + start_date = encodeURIComponent('\'' + formatDate(start_date) + '\''); + date_filter = '&$filter=' + encodeURIComponent('startTime eq ') + start_date + encodeURIComponent(' and endTime eq ') + end_date; + + data.health = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'), 'value.0.properties'); + data.jobs = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + '/backupjobs?api-version=2025-01-01' + date_filter), 'value'); + + return data + } + }; + + try { + Azure.setParams(JSON.parse(value)); + Azure.login(); + return JSON.stringify(Azure.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Azure Vault ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'Gathers data of the Azure vault.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: period + value: '{$AZURE.VAULT.PERIOD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure Backup Jobs"}' + tags: + - tag: component + value: raw + - uuid: c5eb6f559a544be89f51ea3f8eee6dab + name: 'Jobs: Backup' + type: DEPENDENT + key: azure.vault.jobs.backup + delay: '0' + description: 'The number of backup jobs over the period of `{$AZURE.VAULT.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.properties.operation == "Backup")].length()' + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: backup + - uuid: 78a30e56155c4a9c8af1fe54999276fd + name: 'Jobs: Configuring backup' + type: DEPENDENT + key: azure.vault.jobs.backup.config + delay: '0' + description: 'The number of backup configuration jobs over the period of `{$AZURE.VAULT.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.properties.operation == "ConfigureBackup")].length()' + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: backup + triggers: + - uuid: 881f3faf12da40458266c62f047c3c1e + expression: 'change(/Azure Backup Jobs by HTTP/azure.vault.jobs.backup.config)>0' + recovery_mode: NONE + name: 'Azure backup jobs: Backup configuration job has appeared' + opdata: 'Current amount: {ITEM.LASTVALUE1}' + priority: INFO + description: 'New backup configuration job has appeared.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7b6e5f9eb7e74524bf4fa856225ad107 + name: 'Jobs: Deleting backup data' + type: DEPENDENT + key: azure.vault.jobs.backup.delete + delay: '0' + description: 'The number of backup data deletion jobs over the period of `{$AZURE.VAULT.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.properties.operation == "DeleteBackupData")].length()' + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: backup + triggers: + - uuid: 7d4a36701e3c4384991858c34017b04f + expression: 'change(/Azure Backup Jobs by HTTP/azure.vault.jobs.backup.delete)>0' + recovery_mode: NONE + name: 'Azure backup jobs: Backup data deletion job has appeared' + opdata: 'Current amount: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'New backup data deletion job has appeared.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7a8af0d3852546e9aa49a3754af4e1f3 + name: 'Jobs: Cancelled' + type: DEPENDENT + key: azure.vault.jobs.cancelled + delay: '0' + description: 'The number of cancelled jobs over the period of `{$AZURE.VAULT.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.properties.status == "Cancelled")].length()' + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: backup + - uuid: 1b2f4f764b2c4a65b824e816094117d5 + name: 'Jobs: Completed' + type: DEPENDENT + key: azure.vault.jobs.completed + delay: '0' + description: 'The number of completed jobs over the period of `{$AZURE.VAULT.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.properties.status == "Completed")].length()' + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: backup + - uuid: 90a112a3ef2b42d2a372b8b4fb5c95fb + name: 'Jobs: Failed' + type: DEPENDENT + key: azure.vault.jobs.failed + delay: '0' + description: 'The number of failed jobs over the period of `{$AZURE.VAULT.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.properties.status == "Failed")].length()' + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: backup + - uuid: 5b9b00fad0364710b82ed05595848e82 + name: 'Jobs: In progress' + type: DEPENDENT + key: azure.vault.jobs.in_progress + delay: '0' + description: 'The number of jobs in progress over the period of `{$AZURE.VAULT.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.properties.status == "InProgress")].length()' + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: backup + - uuid: 482582a2ac6045dc97be5d2fc19bbe8f + name: 'Jobs: Restore' + type: DEPENDENT + key: azure.vault.jobs.restore + delay: '0' + description: 'The number of restore jobs over the period of `{$AZURE.VAULT.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.properties.operation == "Restore")].length()' + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: backup + triggers: + - uuid: 04f76f2f21a043169ac1fa11d42f72f3 + expression: 'change(/Azure Backup Jobs by HTTP/azure.vault.jobs.restore)>0' + recovery_mode: NONE + name: 'Azure backup jobs: Restore job has appeared' + opdata: 'Current amount: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'New restore job has appeared.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3024516bc255403b8aaa765b4d376835 + name: 'Jobs: Total' + type: DEPENDENT + key: azure.vault.jobs.total + delay: '0' + description: 'The number of jobs over the period of `{$AZURE.VAULT.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - $.jobs.length() + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: backup + - uuid: 4ac88439754f426090b0aa454ea4a5ed + name: 'Jobs: Completed with warnings' + type: DEPENDENT + key: azure.vault.jobs.with_warning + delay: '0' + description: 'The number of jobs completed with warnings over the period of `{$AZURE.VAULT.PERIOD}` day(s).' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.properties.status == "CompletedWithWarnings")].length()' + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: backup + discovery_rules: + - uuid: e37ff9885d014939b9ea182ce2087e05 + name: 'Azure backup job discovery' + type: DEPENDENT + key: azure.vault.job.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#JOB.FRIENDLY.NAME}' + value: '{$AZURE.JOBS.FRIENDLY.NAME.MATCHES}' + formulaid: A + - macro: '{#JOB.FRIENDLY.NAME}' + value: '{$AZURE.JOBS.FRIENDLY.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#JOB.OPERATION}' + value: '{$AZURE.JOBS.OPERATION.MATCHES}' + formulaid: C + - macro: '{#JOB.OPERATION}' + value: '{$AZURE.JOBS.OPERATION.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#JOB.STATUS}' + value: '{$AZURE.JOBS.STATUS.MATCHES}' + formulaid: E + - macro: '{#JOB.STATUS}' + value: '{$AZURE.JOBS.STATUS.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + lifetime: '0' + description: 'List of backup jobs in the vault.' + item_prototypes: + - uuid: 9a46651633ad45d69a2a931259d381ac + name: 'Job status [{#JOB.FRIENDLY.NAME}, {#JOB.NAME}]' + type: DEPENDENT + key: 'azure.vault.job.status[{#JOB.NAME}]' + delay: '0' + description: | + Job status. + Possible values: + 0 - Unknown + 1 - In progress + 2 - Queued + 3 - Completed + 4 - Completed with warnings + 5 - Failed + 6 - Cancelled + 7 - Expired + valuemap: + name: 'Azure backup job status' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.name == ''{#JOB.NAME}'')].properties.status.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'InProgress': 1, + 'Queued': 2, + 'Completed': 3, + 'CompletedWithWarnings': 4, + 'Failed': 5, + 'Cancelled': 6, + 'Expired': 7 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vault.data.get + tags: + - tag: component + value: health + - tag: resource + value: '{#JOB.FRIENDLY.NAME}' + trigger_prototypes: + - uuid: a3a8cb87e41546b0a6550375578cc651 + expression: 'last(/Azure Backup Jobs by HTTP/azure.vault.job.status[{#JOB.NAME}])=6' + name: 'Azure backup jobs: Job cancelled [{#JOB.NAME}]' + event_name: 'Azure backup jobs: Job type [{#JOB.OPERATION}] for [{#JOB.FRIENDLY.NAME}] with ID [{#JOB.NAME}] has cancelled.' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Job has received "Cancelled" status.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 475a62e73f9c4a2abef6320c6909e7fa + expression: 'last(/Azure Backup Jobs by HTTP/azure.vault.job.status[{#JOB.NAME}])=4' + name: 'Azure backup jobs: Job completed with warnings [{#JOB.NAME}]' + event_name: 'Azure backup jobs: Job type [{#JOB.OPERATION}] for [{#JOB.FRIENDLY.NAME}] with ID [{#JOB.NAME}] has completed with warnings.' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Job has received "Completed with warnings" status.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b7e43dbcd4914f228bb0687f585951ea + expression: 'last(/Azure Backup Jobs by HTTP/azure.vault.job.status[{#JOB.NAME}])=7' + name: 'Azure backup jobs: Job expired [{#JOB.NAME}]' + event_name: 'Azure backup jobs: Job type [{#JOB.OPERATION}] for [{#JOB.FRIENDLY.NAME}] with ID [{#JOB.NAME}] has expired.' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Job has received "Expired" status.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f340de23cd004f1b94239dbcf7ec136e + expression: 'last(/Azure Backup Jobs by HTTP/azure.vault.job.status[{#JOB.NAME}])=5' + name: 'Azure backup jobs: Job failed [{#JOB.NAME}]' + event_name: 'Azure backup jobs: Job type [{#JOB.OPERATION}] for [{#JOB.FRIENDLY.NAME}] with ID [{#JOB.NAME}] has failed.' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Job has received "Failed" status.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 860b6d8bbefd4daba537e517dfb94007 + expression: 'last(/Azure Backup Jobs by HTTP/azure.vault.job.status[{#JOB.NAME}])=0' + name: 'Azure backup jobs: Job status unknown [{#JOB.NAME}]' + event_name: 'Azure backup jobs: Job type [{#JOB.OPERATION}] for [{#JOB.FRIENDLY.NAME}] with ID [{#JOB.NAME}] is in unknown status.' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Job has received "Unknown" status.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + master_item: + key: azure.vault.data.get + lld_macro_paths: + - lld_macro: '{#JOB.FRIENDLY.NAME}' + path: $.entity_friendly_name + - lld_macro: '{#JOB.NAME}' + path: $.name + - lld_macro: '{#JOB.OPERATION}' + path: $.operation + - lld_macro: '{#JOB.STATUS}' + path: $.status + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const job_list = JSON.parse(value); + + const result = job_list.jobs.map(function (job) { + return { + 'name': job.name, + 'entity_friendly_name': job.properties.entityFriendlyName, + 'status': job.properties.status, + 'operation': job.properties.operation + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: cloud + - tag: subclass + value: backup + - tag: target + value: azure + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.JOBS.FRIENDLY.NAME.MATCHES}' + value: '.*' + description: 'Set the regex string to include backup jobs based on `entityFriendlyName`.' + - macro: '{$AZURE.JOBS.FRIENDLY.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Set the regex string to exclude backup jobs based on `entityFriendlyName`.' + - macro: '{$AZURE.JOBS.OPERATION.MATCHES}' + value: '.*' + description: 'Set the regex string to include backup jobs based on operation type.' + - macro: '{$AZURE.JOBS.OPERATION.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Set the regex string to exclude backup jobs based on operation type.' + - macro: '{$AZURE.JOBS.STATUS.MATCHES}' + value: '.*' + description: 'Set the regex string to include backup jobs based on status.' + - macro: '{$AZURE.JOBS.STATUS.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Set the regex string to exclude backup jobs based on status.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure vault resource ID.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$AZURE.VAULT.PERIOD}' + value: '7' + description: 'The number of days over which to retrieve backup jobs.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure Backup Jobs", e.g. {$HTTP.TLS.VERIFY:"Azure Backup Jobs"}.' + dashboards: + - uuid: dd616732edf646cba117f8de257bafba + name: 'Azure backup jobs' + pages: + - name: 'Backup job overview' + widgets: + - type: item + name: 'Total jobs' + width: '15' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Backup Jobs by HTTP' + key: azure.vault.jobs.total + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Backup jobs' + 'y': '2' + width: '15' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Backup Jobs by HTTP' + key: azure.vault.jobs.backup + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_size + value: '60' + - type: itemnavigator + name: 'Jobs grouped by resource' + 'y': '4' + width: '22' + height: '7' + fields: + - type: INTEGER + name: group_by.0.attribute + value: '3' + - type: STRING + name: group_by.0.tag_name + value: resource + - type: STRING + name: items.0 + value: 'Job status [*]' + - type: STRING + name: reference + value: EBACA + - type: item + name: 'Selected job' + 'y': '11' + width: '22' + height: '1' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Selected job status:' + - type: INTEGER + name: desc_h_pos + value: '0' + - type: INTEGER + name: desc_size + value: '60' + - type: INTEGER + name: desc_v_pos + value: '1' + - type: STRING + name: itemid._reference + value: EBACA._itemid + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: value_h_pos + value: '2' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'In progress jobs' + x: '15' + width: '14' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Backup Jobs by HTTP' + key: azure.vault.jobs.in_progress + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: 00A1FF + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Restore jobs' + x: '15' + 'y': '2' + width: '14' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Backup Jobs by HTTP' + key: azure.vault.jobs.restore + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: INTEGER + name: value_size + value: '60' + - type: honeycomb + name: 'Job statuses' + x: '22' + 'y': '4' + width: '50' + height: '7' + fields: + - type: STRING + name: items.0 + value: 'Job status [*]' + - type: STRING + name: reference + value: AFAEA + - type: STRING + name: secondary_label + value: '{{ITEM.NAME}.regsub("(Job status \[)(.*)(,.*\])","\2")}' + - type: INTEGER + name: secondary_label_type + value: '0' + - type: INTEGER + name: show.0 + value: '2' + - type: STRING + name: thresholds.0.color + value: EC1594 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 00A1FF + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: 6AC8FF + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: 0EC9AC + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: STRING + name: thresholds.4.color + value: FFD54F + - type: STRING + name: thresholds.4.threshold + value: '4' + - type: STRING + name: thresholds.5.color + value: FF465C + - type: STRING + name: thresholds.5.threshold + value: '5' + - type: STRING + name: thresholds.6.color + value: BF00FF + - type: STRING + name: thresholds.6.threshold + value: '6' + - type: STRING + name: thresholds.7.color + value: BAE37D + - type: STRING + name: thresholds.7.threshold + value: '7' + - type: item + name: 'Selected job' + x: '22' + 'y': '11' + width: '50' + height: '1' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: '{{ITEM.NAME}.regsub("(Job status \[)(.*)(, )(.*)(\])","Resource: \2, Job ID: \4")}' + - type: INTEGER + name: desc_h_pos + value: '0' + - type: INTEGER + name: desc_size + value: '60' + - type: INTEGER + name: desc_v_pos + value: '1' + - type: STRING + name: itemid._reference + value: AFAEA._itemid + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: value_h_pos + value: '2' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Failed jobs' + x: '29' + width: '14' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Backup Jobs by HTTP' + key: azure.vault.jobs.failed + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Deleting backup data jobs' + x: '29' + 'y': '2' + width: '14' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Backup Jobs by HTTP' + key: azure.vault.jobs.backup.delete + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: FFD54F + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Cancelled jobs' + x: '43' + width: '14' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Backup Jobs by HTTP' + key: azure.vault.jobs.cancelled + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: BF00FF + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Configuring backup jobs' + x: '43' + 'y': '2' + width: '14' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Backup Jobs by HTTP' + key: azure.vault.jobs.backup.config + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: 6AC8FF + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Completed jobs' + x: '57' + width: '15' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Backup Jobs by HTTP' + key: azure.vault.jobs.completed + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: INTEGER + name: value_size + value: '60' + - type: item + name: 'Completed with warning jobs' + x: '57' + 'y': '2' + width: '15' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Backup Jobs by HTTP' + key: azure.vault.jobs.with_warning + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: FFD54F + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: INTEGER + name: value_size + value: '60' + valuemaps: + - uuid: f79314c2d4bb458caf510b85f65cae81 + name: 'Azure backup job status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: InProgress + - value: '2' + newvalue: Queued + - value: '3' + newvalue: Completed + - value: '4' + newvalue: CompletedWithWarnings + - value: '5' + newvalue: Failed + - value: '6' + newvalue: Cancelled + - value: '7' + newvalue: Expired + - uuid: 7bca76cc48c3468ca67b924f59003e4a + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown diff --git a/Azure_Cosmos_DB_for_MongoDB_by_HTTP.yaml b/Azure_Cosmos_DB_for_MongoDB_by_HTTP.yaml new file mode 100644 index 0000000..8f3c083 --- /dev/null +++ b/Azure_Cosmos_DB_for_MongoDB_by_HTTP.yaml @@ -0,0 +1,801 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 29325098807848aa928b4192ad5e020f + template: 'Azure Cosmos DB for MongoDB by HTTP' + name: 'Azure Cosmos DB for MongoDB by HTTP' + description: | + This template is designed to monitor Microsoft Azure Cosmos DB for MongoDB by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 9e247bdb17f44630b9440b59d5ef251b + name: 'Autoscale max throughput' + type: DEPENDENT + key: azure.cosmosdb.autoscale.max.throughput + delay: '0' + description: 'The autoscale max throughput.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.AutoscaleMaxThroughput.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: 35a7d2c96990407f937e07fd160266a9 + name: 'Get errors' + type: DEPENDENT + key: azure.cosmosdb.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: raw + triggers: + - uuid: dfd484aa8a4e4b759e4e34c5318c7176 + expression: 'length(last(/Azure Cosmos DB for MongoDB by HTTP/azure.cosmosdb.data.errors))>0' + name: 'Azure Cosmos DB: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: 647faea1597c4da6a3cd78694be8e77e + name: 'Get data' + type: SCRIPT + key: azure.cosmosdb.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AzureCosmosDB = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + AzureCosmosDB.params = params; + AzureCosmosDB.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + var response, login = new HttpRequest(AzureCosmosDB.tls.options); + if (typeof AzureCosmosDB.params.proxy !== 'undefined' && AzureCosmosDB.params.proxy !== '') { + login.setProxy(AzureCosmosDB.params.proxy); + } + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(AzureCosmosDB.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(AzureCosmosDB.params.app_id) + '&client_secret=' + encodeURIComponent(AzureCosmosDB.params.password) + ); + + if (login.getStatus() !== 200) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + AzureCosmosDB.token = response['access_token']; + }, + + request: function (url) { + var response, request = new HttpRequest(AzureCosmosDB.tls.options); + if (typeof AzureCosmosDB.params.proxy !== 'undefined' && AzureCosmosDB.params.proxy !== '') { + request.setProxy(AzureCosmosDB.params.proxy); + } + if (!AzureCosmosDB.token) { + throw 'Request does not contain access token.'; + } + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + AzureCosmosDB.token); + Zabbix.log(4, '[ AzureCosmosDB ] request url: ' + url); + response = request.get(url); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getMetricsData: function () { + var data = {}; + start_date = new Date((new Date().getTime()) - 600000).toISOString().replace(/\.\d+/, ''); + end_date = new Date(new Date().getTime()).toISOString().replace(/\.\d+/, ''); + endpoints = { + 'availability': '/providers/Microsoft.Insights/metrics?metricnames=ServiceAvailability&api-version=2021-05-01&interval=PT1H×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date), + 'requests': '/providers/Microsoft.Insights/metrics?metricnames=DataUsage,IndexUsage,DocumentQuota,AvailableStorage,DocumentCount,NormalizedRUConsumption,PhysicalPartitionThroughputInfo,PhysicalPartitionSizeInfo,AutoscaleMaxThroughput,ProvisionedThroughput,TotalRequests,TotalRequestUnits,MetadataRequests,MongoRequests,MongoRequestCharge,ServerSideLatency,ServerSideLatencyGateway,ServerSideLatencyDirect,ReplicationLatency&api-version=2021-05-01×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date), + }; + + Object.keys(endpoints).forEach(function (field) { + data[field] = {}; + try { + metrics = AzureCosmosDB.request('https://management.azure.com' + AzureCosmosDB.params.resource_id + endpoints[field]); + if (!metrics.hasOwnProperty('value')) { + throw 'Failed getting required field. Check debug log for more information.'; + } + + for (k in metrics.value) { + key = AzureCosmosDB.getField(metrics.value[k], 'name.value') + if (metrics.value[k].timeseries.length === 0) { + metrics.value[k].timeseries.push({ 'data': ['nodata'] }) + } + data[field][key] = AzureCosmosDB.getField(metrics.value[k], 'timeseries.0.data.0'); + } + } + catch (error) { + data.error = error.toString(); + } + }); + return data + } + + }; + + try { + AzureCosmosDB.setParams(JSON.parse(value)); + AzureCosmosDB.login(); + return JSON.stringify(AzureCosmosDB.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AzureCosmosDB ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure Cosmos DB for MongoDB"}' + tags: + - tag: component + value: raw + - uuid: 947a2eb530754a609fa81c59e29fe7b7 + name: 'Data usage' + type: DEPENDENT + key: azure.cosmosdb.data.usage + delay: '0' + units: B + description: 'The total data usage.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.DataUsage.total + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: 0bf3da9168144016b663c9b8e76447fa + name: 'Document count' + type: DEPENDENT + key: azure.cosmosdb.document.count + delay: '0' + description: 'The total document count.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.DocumentCount.total + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: 7fa0f59f8cfa4d9e83086b203e4f71ea + name: 'Document quota' + type: DEPENDENT + key: azure.cosmosdb.document.quota + delay: '0' + units: B + description: 'The total storage quota.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.DocumentQuota.total + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: b09f9445d960415185457b89b6a73452 + name: 'Index usage' + type: DEPENDENT + key: azure.cosmosdb.index.usage + delay: '0' + units: B + description: 'The total index usage.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.IndexUsage.total + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: cd35f04b180542cda50dc5d4e979e54e + name: 'Metadata requests' + type: DEPENDENT + key: azure.cosmosdb.metadata.requests + delay: '0' + description: | + The count of metadata requests. + Cosmos DB maintains system metadata collection for each account, which allows you to enumerate collections, databases, etc., and their configurations, free of charge. + preprocessing: + - type: JSONPATH + parameters: + - $.requests.MetadataRequests.count + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: e42cf83e456a490295a84cfe9eb288ef + name: 'Mongo requests' + type: DEPENDENT + key: azure.cosmosdb.mongo.requests + delay: '0' + description: 'The number of Mongo requests made.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.MongoRequests.count + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: 8fd4068986af444799ae64c6bc8f16a6 + name: 'Mongo request charge' + type: DEPENDENT + key: azure.cosmosdb.mongo.requests.charge + delay: '0' + description: 'The Mongo request units consumed.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.MongoRequestCharge.total + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: fda6b39ce6ef4b8c8418b2e123ecdd17 + name: 'Normalized RU consumption' + type: DEPENDENT + key: azure.cosmosdb.normalized.ru.consumption + delay: '0' + units: '%' + description: 'The max RU consumption percentage per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.NormalizedRUConsumption.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: be6800214a0443e899c40f8a4b6c3f21 + name: 'Physical partition size' + type: DEPENDENT + key: azure.cosmosdb.physical.partition.size + delay: '0' + units: B + description: 'The physical partition size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.PhysicalPartitionSizeInfo.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: e30d5eadde15427484e7a0d1cb38e9e3 + name: 'Physical partition throughput' + type: DEPENDENT + key: azure.cosmosdb.physical.partition.throughput + delay: '0' + description: 'The physical partition throughput.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.PhysicalPartitionThroughputInfo.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: 49311bbfb2584a46b42ed1a7d8fcfd94 + name: 'Provisioned throughput' + type: DEPENDENT + key: azure.cosmosdb.provisioned.throughput + delay: '0' + description: 'The provisioned throughput.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.ProvisionedThroughput.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: 6d7175e27d10406191c883dc2e5949e4 + name: 'Replication latency, P99' + type: DEPENDENT + key: azure.cosmosdb.replication.latency + delay: '0' + value_type: FLOAT + units: s + description: 'The P99 replication latency across source and target regions for geo-enabled account.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.ReplicationLatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: network + - uuid: d9b5af0c71874114b48464ce20f8cf3d + name: 'Server side latency' + type: DEPENDENT + key: azure.cosmosdb.server.side.latency + delay: '0' + value_type: FLOAT + units: s + description: 'The server side latency.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.ServerSideLatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: network + - uuid: 7587d3750d1643f085db5931670dc2f3 + name: 'Server side latency, direct' + type: DEPENDENT + key: azure.cosmosdb.server.side.latency.direct + delay: '0' + value_type: FLOAT + units: s + description: 'The server side latency in direct connection mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.ServerSideLatencyDirect.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: network + - uuid: 0aefdc3101fe4bcba4743d6e32671554 + name: 'Server side latency, gateway' + type: DEPENDENT + key: azure.cosmosdb.server.side.latency.gateway + delay: '0' + value_type: FLOAT + units: s + description: 'The server side latency in gateway connection mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.ServerSideLatencyGateway.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: network + - uuid: 42bd03c1753b4f19bc9793b03834cd3d + name: 'Service availability' + type: DEPENDENT + key: azure.cosmosdb.service.availability + delay: '0' + value_type: FLOAT + units: '%' + description: 'The account requests availability at one hour granularity.' + preprocessing: + - type: JSONPATH + parameters: + - $.availability.ServiceAvailability.average + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: health + triggers: + - uuid: c7649cd317f04a3d8fec0eebe3df6766 + expression: '(min(/Azure Cosmos DB for MongoDB by HTTP/azure.cosmosdb.service.availability,#3))<{$AZURE.DB.COSMOS.MONGO.AVAILABILITY}' + name: 'Azure Cosmos DB: Cosmos DB for MongoDB account: Availability is low' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: f4d4d2def5e945ab9048ada4813b7f04 + name: 'Total request units' + type: DEPENDENT + key: azure.cosmosdb.total.request.units + delay: '0' + value_type: FLOAT + description: 'The request units consumed per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.TotalRequestUnits.total + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + - uuid: 3dd2cd4edb7746edb9d917c83b280ca3 + name: 'Total requests' + type: DEPENDENT + key: azure.cosmosdb.total.requests + delay: '0' + description: 'Number of requests per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.TotalRequests.count + error_handler: DISCARD_VALUE + master_item: + key: azure.cosmosdb.data.get + tags: + - tag: component + value: storage + tags: + - tag: class + value: software + - tag: target + value: azure + - tag: target + value: cosmosdb + - tag: target + value: mongodb + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.DB.COSMOS.MONGO.AVAILABILITY}' + value: '70' + description: 'The warning threshold of the Cosmos DB for MongoDB service availability.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure Cosmos DB ID.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure Cosmos DB for MongoDB", e.g. {$HTTP.TLS.VERIFY:"Azure Cosmos DB for MongoDB"}.' + dashboards: + - uuid: 323fb91b388a44bfbd4b7d634f6e6b6c + name: 'Overview Azure Cosmos DB for MongoDB' + pages: + - widgets: + - type: item + name: 'Service Availability' + width: '18' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF0000 + - type: ITEM + name: itemid.0 + value: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.service.availability + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: units + value: '%' + - type: STRING + name: units_color + value: 66BB6A + - type: STRING + name: up_color + value: 4CAF50 + - type: STRING + name: value_color + value: 66BB6A + - type: graph + 'y': '4' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Cosmos DB for MongoDB by HTTP' + name: 'Azure MongoDB: Usage' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '9' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Cosmos DB for MongoDB by HTTP' + name: 'Azure MongoDB: Requests' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '14' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Cosmos DB for MongoDB by HTTP' + name: 'Azure MongoDB: Latency' + - type: STRING + name: reference + value: AAAAA + - type: item + name: 'Provisioned Throughput' + x: '18' + width: '18' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.provisioned.throughput + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'Normalized RU Consumption' + x: '36' + width: '18' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.normalized.ru.consumption + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Document Count' + x: '54' + width: '18' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.document.count + - type: INTEGER + name: show.0 + value: '2' + graphs: + - uuid: 89256a1eba8c49d2b7469a68ff050ac5 + name: 'Azure MongoDB: Latency' + graph_items: + - color: 199C0D + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.server.side.latency.gateway + - sortorder: '1' + color: F63100 + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.server.side.latency + - sortorder: '2' + color: 00611C + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.server.side.latency.direct + - sortorder: '3' + color: F7941D + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.replication.latency + - uuid: a1225fc27d334c5bbb5043e3d468bf02 + name: 'Azure MongoDB: Requests' + graph_items: + - color: 199C0D + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.total.requests + - sortorder: '1' + color: F63100 + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.total.request.units + - sortorder: '2' + color: 00611C + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.metadata.requests + - sortorder: '3' + color: F7941D + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.mongo.requests + - sortorder: '4' + color: FC6EA3 + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.mongo.requests.charge + - uuid: 07168aaf3abb42f6b61746cc6e2d2910 + name: 'Azure MongoDB: Usage' + graph_items: + - color: 199C0D + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.data.usage + - sortorder: '1' + color: F63100 + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.index.usage + - sortorder: '2' + color: 00611C + item: + host: 'Azure Cosmos DB for MongoDB by HTTP' + key: azure.cosmosdb.document.quota diff --git a/Azure_Cost_Management_by_HTTP.yaml b/Azure_Cost_Management_by_HTTP.yaml new file mode 100644 index 0000000..3272f13 --- /dev/null +++ b/Azure_Cost_Management_by_HTTP.yaml @@ -0,0 +1,1156 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: c0263df8d8c14d30b24afcf45a6a354f + template: 'Azure Cost Management by HTTP' + name: 'Azure Cost Management by HTTP' + description: | + This template is designed to monitor Microsoft Cost Management by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: f50c96da86654a25b937756cc7f7010e + name: 'Get daily costs' + type: SCRIPT + key: azure.get.daily.costs + delay: 0s;h/5m/30 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AzureCost = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + AzureCost.params = params; + AzureCost.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + var response, + login = new HttpRequest(AzureCost.tls.options); + + if (typeof AzureCost.params.proxy !== 'undefined' && AzureCost.params.proxy !== '') { + login.setProxy(AzureCost.params.proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(AzureCost.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(AzureCost.params.app_id) + '&client_secret=' + encodeURIComponent(AzureCost.params.password) + ); + + if (login.getStatus() !== 200) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + AzureCost.token = response['access_token']; + }, + + request: function (url, body) { + if (typeof body === 'undefined' || body === null) { + body = ''; + } + var response, + headers, + regex = /-retry-after":"(\d+)"/, + ratelimit, + request = new HttpRequest(AzureCost.tls.options); + + if (typeof AzureCost.params.proxy !== 'undefined' && AzureCost.params.proxy !== '') { + request.setProxy(AzureCost.params.proxy); + } + if (!AzureCost.token) { + throw 'Request does not contain access token.'; + } + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + AzureCost.token); + + Zabbix.log(4, '[ AzureCost ] request url: ' + url); + + response = request.post(url, body); + headers = JSON.stringify(request.getHeaders()); + + if (headers.match(regex) !== null && request.getStatus() === 429) { + ratelimit = headers.match(regex)[1]; + Zabbix.log(4, '[ AzureCost ] Microsoft Cost Management have rate limit requests per 1 minute, retrying after ' + ratelimit + ' seconds'); + Zabbix.sleep(ratelimit * 1010); + response = request.post(url, body); + } + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + getCost: function () { + var metricData = {}, + today = new Date(), + start_date = new Date(today); + start_date.setDate(today.getDate() - 1); + + bodyRawCost = { + type: 'Usage', + 'timeframe': 'Custom', + 'timePeriod': { + 'from': start_date, + 'to': start_date + }, + dataset: { + granularity: 'Daily', + aggregation: { + totalCost: { + name: 'PreTaxCost', + function: 'Sum' + } + }, + grouping: [ + { + type: 'Dimension', + name: 'Meter', + }, + { + type: 'Dimension', + name: 'MeterSubcategory', + }, + { + type: 'Dimension', + name: 'ResourceGroup', + }, + { + type: 'Dimension', + name: 'ServiceName', + }, + { + type: 'Dimension', + name: 'ResourceLocation', + } + ] + } + }; + metricData = AzureCost.request('https://management.azure.com/subscriptions/' + AzureCost.params.subscription_id + '/providers/Microsoft.CostManagement/query?api-version=2023-11-01', JSON.stringify(bodyRawCost)); + + var columns = AzureCost.getField(metricData, 'properties.columns'); + + return transformedData = { + data: AzureCost.getField(metricData, 'properties.rows').map(function (row) { + rowData = {}; + columns.forEach(function (column, i) { + columnName = columns[i].name; + columnType = columns[i].type; + cellValue = row[i]; + rowData[columnName] = column.type === "Number" ? cellValue.toString() : cellValue; + }); + rowData.UsageDate = rowData.UsageDate.replace(/(\d{4})(\d{2})(\d{2})/, "$1-$2-$3"); + + return rowData; + }) + }; + } + }; + + try { + AzureCost.setParams(JSON.parse(value)); + AzureCost.login(); + + return JSON.stringify(AzureCost.getCost()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AzureCost ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure Cost Management"}' + tags: + - tag: component + value: raw + - uuid: dc9824169b414303a75c5d98421bd6f8 + name: 'Azure Cost: Get daily costs errors' + type: DEPENDENT + key: azure.get.daily.costs.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.get.daily.costs + tags: + - tag: component + value: raw + triggers: + - uuid: 503b3d5d008e4ad7b11384a3bd0c991c + expression: 'length(last(/Azure Cost Management by HTTP/azure.get.daily.costs.errors))>0' + name: 'Azure Cost: There are errors in requests to API' + event_name: 'Azure Cost: Error in daily costs requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: bbf6a0b136464d76a535ca016dcb8ae1 + name: 'Get monthly costs' + type: SCRIPT + key: azure.get.monthly.costs + delay: 0s;h/12 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AzureCost = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'month'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + AzureCost.params = params; + AzureCost.tls = new CTlsConfig(params.tls_verify); + + today = new Date(); + AzureCost.params.end_date = today.toISOString(); + month = today.getMonth(); + today.setMonth(month - params.month); + AzureCost.params.start_time = new Date(today.getFullYear(), today.getMonth()).toISOString(); + }, + + login: function () { + var response, + login = new HttpRequest(AzureCost.tls.options); + + if (typeof AzureCost.params.proxy !== 'undefined' && AzureCost.params.proxy !== '') { + login.setProxy(AzureCost.params.proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(AzureCost.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(AzureCost.params.app_id) + '&client_secret=' + encodeURIComponent(AzureCost.params.password) + ); + + if (login.getStatus() !== 200) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + AzureCost.token = response['access_token']; + }, + + request: function (url, body) { + if (typeof body === 'undefined' || body === null) { + body = ''; + } + var response, + headers, + regex = /-retry-after":"(\d+)"/, + ratelimit, + request = new HttpRequest(AzureCost.tls.options); + + if (typeof AzureCost.params.proxy !== 'undefined' && AzureCost.params.proxy !== '') { + request.setProxy(AzureCost.params.proxy); + } + if (!AzureCost.token) { + throw 'Request does not contain access token.'; + } + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + AzureCost.token); + + Zabbix.log(4, '[ AzureCost ] request url: ' + url); + + response = request.post(url, body); + headers = JSON.stringify(request.getHeaders()); + + if (headers.match(regex) !== null && request.getStatus() === 429) { + ratelimit = headers.match(regex)[1]; + Zabbix.log(4, '[ AzureCost ] Microsoft Cost Management have rate limit requests per 1 minute, retrying after ' + ratelimit + ' seconds'); + Zabbix.sleep(ratelimit * 1010); + response = request.post(url, body); + } + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + getCost: function (grouping) { + var metricData = {}, + bodyRawCost = { + type: 'Usage', + timeframe: 'Custom', + timePeriod: { + from: AzureCost.params.start_time, + to: AzureCost.params.end_date + }, + dataset: { + aggregation: { + totalCost: { + name: 'PreTaxCost', + function: 'Sum' + } + }, + grouping: [ + { + type: 'Dimension', + name: 'BillingMonth' + }, + { + type: 'Dimension', + name: grouping + }, + ] + } + }; + + metricData = AzureCost.request('https://management.azure.com/subscriptions/' + AzureCost.params.subscription_id + '/providers/Microsoft.CostManagement/query?api-version=2023-11-01', JSON.stringify(bodyRawCost)); + + var columns = AzureCost.getField(metricData, 'properties.columns'); + + return transformedData = { + data: AzureCost.getField(metricData, 'properties.rows').map(function (row) { + rowData = {}; + columns.forEach(function (column, i) { + columnName = columns[i].name; + cellValue = row[i]; + rowData[columnName] = column.type === "Number" ? cellValue.toString() : cellValue; + }); + rowData.BillingMonth = rowData.BillingMonth.slice(0, 7); + + return rowData; + }) + }; + } + }; + + try { + AzureCost.setParams(JSON.parse(value)); + AzureCost.login(); + + serviceCost = AzureCost.getCost('ServiceName'); + resourceGroupCost = AzureCost.getCost('ResourceGroup'); + resourceLocationCost = AzureCost.getCost('ResourceLocation'); + monthCost = AzureCost.getCost('SubscriptionId'); + + return JSON.stringify({ resourceGroupCost, resourceLocationCost, serviceCost, monthCost }); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AzureCost ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: month + value: '{$AZURE.BILLING.MONTH}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure Cost Management"}' + tags: + - tag: component + value: raw + - uuid: 30dae868261844f39c811cdba93628eb + name: 'Azure Cost: Get monthly costs errors' + type: DEPENDENT + key: azure.get.monthly.costs.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.get.monthly.costs + tags: + - tag: component + value: raw + triggers: + - uuid: 2ea11e17fd734dee80219e22a8073e01 + expression: 'length(last(/Azure Cost Management by HTTP/azure.get.monthly.costs.errors))>0' + name: 'Azure Cost: There are errors in requests to API' + event_name: 'Azure Cost: Error in monthly costs requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 1220188c7a1c4df8b75e9021c4515149 + name: 'Azure daily costs by services discovery' + type: DEPENDENT + key: azure.daily.services.costs.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AZURE.RESOURCE.GROUP}' + value: '{$AZURE.LLD.FILTER.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#AZURE.RESOURCE.GROUP}' + value: '{$AZURE.LLD.FILTER.RESOURCE.GROUP.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#AZURE.RESOURCE.LOCATION}' + value: '{$AZURE.LLD.FILTER.RESOURCE.LOCATION.MATCHES}' + formulaid: C + - macro: '{#AZURE.RESOURCE.LOCATION}' + value: '{$AZURE.LLD.FILTER.RESOURCE.LOCATION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#AZURE.SERVICE.NAME}' + value: '{$AZURE.LLD.FILTER.SERVICE.MATCHES}' + formulaid: E + - macro: '{#AZURE.SERVICE.NAME}' + value: '{$AZURE.LLD.FILTER.SERVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovery of daily costs by services.' + item_prototypes: + - uuid: 848ccd4cec2c4902990aa25f90f502a8 + name: 'Service ["{#AZURE.SERVICE.NAME}"]: Meter ["{#AZURE.BILLING.METER}"]: Subcategory ["{#AZURE.BILLING.METER.SUBCATEGORY}"] daily cost' + type: DEPENDENT + key: 'azure.daily.cost["{#AZURE.SERVICE.NAME}", "{#AZURE.BILLING.METER}", "{#AZURE.BILLING.METER.SUBCATEGORY}","{#AZURE.RESOURCE.GROUP}"]' + delay: '0' + value_type: FLOAT + units: '!{#AZURE.BILLING.UNIT}' + description: 'The daily cost by service {#AZURE.SERVICE.NAME}, meter {#AZURE.BILLING.METER}, subcategory {#AZURE.BILLING.METER.SUBCATEGORY}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.[?(@.ServiceName == "{#AZURE.SERVICE.NAME}" && @.Meter == "{#AZURE.BILLING.METER}" && @.MeterSubcategory == "{#AZURE.BILLING.METER.SUBCATEGORY}")].PreTaxCost.first()' + error_handler: DISCARD_VALUE + master_item: + key: azure.get.daily.costs + tags: + - tag: component + value: cost + - tag: location + value: '{#AZURE.RESOURCE.LOCATION}' + - tag: meter + value: '{#AZURE.BILLING.METER}' + - tag: resource-group + value: '{#AZURE.RESOURCE.GROUP}' + - tag: service + value: '{#AZURE.SERVICE.NAME}' + graph_prototypes: + - uuid: 2a1e03e65b1c40cba783493871e245d5 + name: 'Daily Cost: "{#AZURE.SERVICE.NAME}","{#AZURE.BILLING.METER}","{#AZURE.BILLING.METER.SUBCATEGORY}","{#AZURE.RESOURCE.GROUP}"' + graph_items: + - drawtype: GRADIENT_LINE + color: 2E7D32 + item: + host: 'Azure Cost Management by HTTP' + key: 'azure.daily.cost["{#AZURE.SERVICE.NAME}", "{#AZURE.BILLING.METER}", "{#AZURE.BILLING.METER.SUBCATEGORY}","{#AZURE.RESOURCE.GROUP}"]' + master_item: + key: azure.get.daily.costs + lld_macro_paths: + - lld_macro: '{#AZURE.BILLING.METER.SUBCATEGORY}' + path: $.MeterSubcategory + - lld_macro: '{#AZURE.BILLING.METER}' + path: $.Meter + - lld_macro: '{#AZURE.BILLING.UNIT}' + path: $.Currency + - lld_macro: '{#AZURE.RESOURCE.GROUP}' + path: $.ResourceGroup + - lld_macro: '{#AZURE.RESOURCE.LOCATION}' + path: $.ResourceLocation + - lld_macro: '{#AZURE.SERVICE.NAME}' + path: $.ServiceName + preprocessing: + - type: JSONPATH + parameters: + - $.data + error_handler: DISCARD_VALUE + - uuid: 9c65b60a8e1840dd81367aefe6b0de18 + name: 'Azure monthly costs discovery' + type: DEPENDENT + key: azure.monthly.costs.discovery + delay: '0' + description: 'Discovery of monthly costs.' + item_prototypes: + - uuid: f91a60d2c1124eb6b297539b0a115c66 + name: 'Month ["{#AZURE.BILLING.MONTH}"] cost' + type: DEPENDENT + key: 'azure.monthly.cost["{#AZURE.BILLING.MONTH}"]' + delay: '0' + value_type: FLOAT + units: '!{#AZURE.BILLING.UNIT}' + description: 'The monthly cost.' + preprocessing: + - type: JSONPATH + parameters: + - '$.monthCost.data.[?(@.BillingMonth == "{#AZURE.BILLING.MONTH}")].PreTaxCost.sum()' + error_handler: DISCARD_VALUE + master_item: + key: azure.get.monthly.costs + tags: + - tag: component + value: cost + - tag: month + value: '{#AZURE.BILLING.MONTH}' + graph_prototypes: + - uuid: 347342d3d0cc478bab33036872570cdb + name: 'Azure Cost: Month ["{#AZURE.BILLING.MONTH}"] cost' + graph_items: + - drawtype: GRADIENT_LINE + color: 2E7D32 + item: + host: 'Azure Cost Management by HTTP' + key: 'azure.monthly.cost["{#AZURE.BILLING.MONTH}"]' + master_item: + key: azure.get.monthly.costs + lld_macro_paths: + - lld_macro: '{#AZURE.BILLING.MONTH}' + path: $.BillingMonth + - lld_macro: '{#AZURE.BILLING.UNIT}' + path: $.Currency + preprocessing: + - type: JSONPATH + parameters: + - $.monthCost.data + error_handler: DISCARD_VALUE + - uuid: e9a4bf192feb4472aedd40ba2371d286 + name: 'Azure monthly costs by location discovery' + type: DEPENDENT + key: azure.monthly.location.costs.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AZURE.RESOURCE.LOCATION}' + value: '{$AZURE.LLD.FILTER.RESOURCE.LOCATION.MATCHES}' + formulaid: A + - macro: '{#AZURE.RESOURCE.LOCATION}' + value: '{$AZURE.LLD.FILTER.RESOURCE.LOCATION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of monthly costs by location.' + item_prototypes: + - uuid: 7fb097f81a8445acaa6b17bdc4daaaa6 + name: 'Location: ["{#AZURE.RESOURCE.LOCATION}"]: Month ["{#AZURE.BILLING.MONTH}"] cost' + type: DEPENDENT + key: 'azure.monthly.location.cost["{#AZURE.RESOURCE.LOCATION}", "{#AZURE.BILLING.MONTH}"]' + delay: '0' + value_type: FLOAT + units: '!{#AZURE.BILLING.UNIT}' + description: 'The monthly cost by location {#AZURE.RESOURCE.LOCATION}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.resourceLocationCost.data.[?(@.BillingMonth == "{#AZURE.BILLING.MONTH}")]' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$.[?(@.ResourceLocation == "{#AZURE.RESOURCE.LOCATION}")].PreTaxCost.sum()' + error_handler: DISCARD_VALUE + master_item: + key: azure.get.monthly.costs + tags: + - tag: component + value: cost + - tag: location + value: '{#AZURE.RESOURCE.LOCATION}' + - tag: month + value: '{#AZURE.BILLING.MONTH}' + graph_prototypes: + - uuid: e3df27afabb147d3ae07e1a2fa36e89a + name: 'Azure Cost: ["{#AZURE.RESOURCE.LOCATION}"]: Month ["{#AZURE.BILLING.MONTH}"] cost' + graph_items: + - drawtype: GRADIENT_LINE + color: 2E7D32 + item: + host: 'Azure Cost Management by HTTP' + key: 'azure.monthly.location.cost["{#AZURE.RESOURCE.LOCATION}", "{#AZURE.BILLING.MONTH}"]' + master_item: + key: azure.get.monthly.costs + lld_macro_paths: + - lld_macro: '{#AZURE.BILLING.MONTH}' + path: $.BillingMonth + - lld_macro: '{#AZURE.BILLING.UNIT}' + path: $.Currency + - lld_macro: '{#AZURE.RESOURCE.LOCATION}' + path: $.ResourceLocation + preprocessing: + - type: JSONPATH + parameters: + - $.resourceLocationCost.data + error_handler: DISCARD_VALUE + - uuid: 4dfa3b60721e463d97f2f820106f816d + name: 'Azure monthly costs by resource group discovery' + type: DEPENDENT + key: azure.monthly.resource.group.costs.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AZURE.RESOURCE.GROUP}' + value: '{$AZURE.LLD.FILTER.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#AZURE.RESOURCE.GROUP}' + value: '{$AZURE.LLD.FILTER.RESOURCE.GROUP.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of monthly costs by resource group.' + item_prototypes: + - uuid: 9a5ed573ac374c08abf81f2b7296f260 + name: 'Resource group: ["{#AZURE.RESOURCE.GROUP}"]: Month ["{#AZURE.BILLING.MONTH}"] cost' + type: DEPENDENT + key: 'azure.monthly.resource.group.cost["{#AZURE.RESOURCE.GROUP}", "{#AZURE.BILLING.MONTH}"]' + delay: '0' + value_type: FLOAT + units: '!{#AZURE.BILLING.UNIT}' + description: 'The monthly cost by resource group {#AZURE.RESOURCE.GROUP}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.resourceGroupCost.data.[?(@.BillingMonth == "{#AZURE.BILLING.MONTH}")]' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$.[?(@.ResourceGroup == "{#AZURE.RESOURCE.GROUP}")].PreTaxCost.sum()' + error_handler: DISCARD_VALUE + master_item: + key: azure.get.monthly.costs + tags: + - tag: component + value: cost + - tag: month + value: '{#AZURE.BILLING.MONTH}' + - tag: resource-group + value: '{#AZURE.RESOURCE.GROUP}' + graph_prototypes: + - uuid: fab17244d2c648e089c57c99615af537 + name: 'Azure Cost: ["{#AZURE.RESOURCE.GROUP}"]: Month ["{#AZURE.BILLING.MONTH}"] cost' + graph_items: + - drawtype: GRADIENT_LINE + color: 2E7D32 + item: + host: 'Azure Cost Management by HTTP' + key: 'azure.monthly.resource.group.cost["{#AZURE.RESOURCE.GROUP}", "{#AZURE.BILLING.MONTH}"]' + master_item: + key: azure.get.monthly.costs + lld_macro_paths: + - lld_macro: '{#AZURE.BILLING.MONTH}' + path: $.BillingMonth + - lld_macro: '{#AZURE.BILLING.UNIT}' + path: $.Currency + - lld_macro: '{#AZURE.RESOURCE.GROUP}' + path: $.ResourceGroup + preprocessing: + - type: JSONPATH + parameters: + - $.resourceGroupCost.data + error_handler: DISCARD_VALUE + - uuid: b9b024a7e42540f0b8387af77367b15c + name: 'Azure monthly costs by services discovery' + type: DEPENDENT + key: azure.monthly.services.costs.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#AZURE.SERVICE.NAME}' + value: '{$AZURE.LLD.FILTER.SERVICE.MATCHES}' + formulaid: A + - macro: '{#AZURE.SERVICE.NAME}' + value: '{$AZURE.LLD.FILTER.SERVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of monthly costs by services.' + item_prototypes: + - uuid: dbad6436c70e41268e3b59c2a7f0e2a2 + name: 'Service ["{#AZURE.SERVICE.NAME}"]: Month ["{#AZURE.BILLING.MONTH}"] cost' + type: DEPENDENT + key: 'azure.monthly.service.cost["{#AZURE.SERVICE.NAME}", "{#AZURE.BILLING.MONTH}"]' + delay: '0' + value_type: FLOAT + units: '!{#AZURE.BILLING.UNIT}' + description: 'The monthly cost by service {#AZURE.SERVICE.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serviceCost.data.[?(@.BillingMonth == "{#AZURE.BILLING.MONTH}")]' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$.[?(@.ServiceName == "{#AZURE.SERVICE.NAME}")].PreTaxCost.sum()' + error_handler: DISCARD_VALUE + master_item: + key: azure.get.monthly.costs + tags: + - tag: component + value: cost + - tag: month + value: '{#AZURE.BILLING.MONTH}' + - tag: service + value: '{#AZURE.SERVICE.NAME}' + graph_prototypes: + - uuid: 31f1e30f99ed426d81b48411cc7ffd7f + name: 'Azure Cost: ["{#AZURE.SERVICE.NAME}"]: Month ["{#AZURE.BILLING.MONTH}"] cost' + graph_items: + - drawtype: GRADIENT_LINE + color: 2E7D32 + item: + host: 'Azure Cost Management by HTTP' + key: 'azure.monthly.service.cost["{#AZURE.SERVICE.NAME}", "{#AZURE.BILLING.MONTH}"]' + master_item: + key: azure.get.monthly.costs + lld_macro_paths: + - lld_macro: '{#AZURE.BILLING.MONTH}' + path: $.BillingMonth + - lld_macro: '{#AZURE.BILLING.UNIT}' + path: $.Currency + - lld_macro: '{#AZURE.SERVICE.NAME}' + path: $.ServiceName + preprocessing: + - type: JSONPATH + parameters: + - $.serviceCost.data + error_handler: DISCARD_VALUE + tags: + - tag: class + value: software + - tag: target + value: azure + - tag: target + value: cost + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.BILLING.MONTH}' + value: '11' + description: 'Months to get historical data from Azure Cost Management API, no more than 11 (plus current month). The time period for pulling the data cannot exceed 1 year.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 60s + description: 'API response timeout.' + - macro: '{$AZURE.LLD.FILTER.RESOURCE.GROUP.MATCHES}' + value: '.*' + description: 'Filter of discoverable resource groups by name.' + - macro: '{$AZURE.LLD.FILTER.RESOURCE.GROUP.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered resource groups by name.' + - macro: '{$AZURE.LLD.FILTER.RESOURCE.LOCATION.MATCHES}' + value: '.*' + description: 'Filter of discoverable locations by name.' + - macro: '{$AZURE.LLD.FILTER.RESOURCE.LOCATION.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered locations by name.' + - macro: '{$AZURE.LLD.FILTER.SERVICE.MATCHES}' + value: '.*' + description: 'Filter of discoverable services by name.' + - macro: '{$AZURE.LLD.FILTER.SERVICE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered services by name.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure Cost Management", e.g. {$HTTP.TLS.VERIFY:"Azure Cost Management"}.' + dashboards: + - uuid: a1c2ce224f07483b865ce48090338dc4 + name: 'Overview Azure Costs' + pages: + - name: 'Monthly costs' + widgets: + - type: itemnavigator + name: Month + width: '20' + height: '6' + fields: + - type: INTEGER + name: group_by.0.attribute + value: '3' + - type: STRING + name: group_by.0.tag_name + value: month + - type: STRING + name: items.0 + value: 'Month ["*"] cost' + - type: STRING + name: reference + value: JZQAJ + - type: itemnavigator + name: Service + 'y': '6' + width: '20' + height: '6' + fields: + - type: INTEGER + name: group_by.0.attribute + value: '3' + - type: STRING + name: group_by.0.tag_name + value: service + - type: INTEGER + name: group_by.1.attribute + value: '3' + - type: STRING + name: group_by.1.tag_name + value: month + - type: STRING + name: items.0 + value: 'Service ["*"]: Month ["*"] cost' + - type: STRING + name: reference + value: AJICL + - type: INTEGER + name: show_lines + value: '200' + - type: piechart + name: 'Month costs' + x: '20' + width: '32' + height: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color.0 + value: 4CAF50 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: JZQAJ._itemid + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: STRING + name: ds.1.color.0 + value: 1565C0 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: STRING + name: ds.1.itemids.0._reference + value: AJICL._itemid + - type: INTEGER + name: ds.1.type.0 + value: '0' + - type: STRING + name: ds.2.color.0 + value: '795548' + - type: INTEGER + name: ds.2.dataset_type + value: '0' + - type: STRING + name: ds.2.itemids.0._reference + value: PEIIF._itemid + - type: INTEGER + name: ds.2.type.0 + value: '0' + - type: STRING + name: ds.3.color.0 + value: E65100 + - type: INTEGER + name: ds.3.dataset_type + value: '0' + - type: STRING + name: ds.3.itemids.0._reference + value: JRCGU._itemid + - type: INTEGER + name: ds.3.type.0 + value: '0' + - type: INTEGER + name: legend_lines + value: '4' + - type: INTEGER + name: legend_value + value: '1' + - type: INTEGER + name: space + value: '2' + - type: INTEGER + name: stroke + value: '2' + - type: itemnavigator + name: Location + x: '52' + width: '20' + height: '6' + fields: + - type: INTEGER + name: group_by.0.attribute + value: '3' + - type: STRING + name: group_by.0.tag_name + value: location + - type: INTEGER + name: group_by.1.attribute + value: '3' + - type: STRING + name: group_by.1.tag_name + value: month + - type: STRING + name: items.0 + value: 'Location: ["*"]: Month ["*"] cost' + - type: STRING + name: reference + value: PEIIF + - type: INTEGER + name: show_lines + value: '200' + - type: itemnavigator + name: 'Resource group' + x: '52' + 'y': '6' + width: '20' + height: '6' + fields: + - type: INTEGER + name: group_by.0.attribute + value: '3' + - type: STRING + name: group_by.0.tag_name + value: resource-group + - type: INTEGER + name: group_by.1.attribute + value: '3' + - type: STRING + name: group_by.1.tag_name + value: month + - type: STRING + name: items.0 + value: 'Resource group: ["*"]: Month ["*"] cost' + - type: STRING + name: reference + value: JRCGU + - type: INTEGER + name: show_lines + value: '200' + - name: 'Daily costs by service' + widgets: + - type: itemnavigator + name: Service + width: '25' + height: '7' + fields: + - type: INTEGER + name: group_by.0.attribute + value: '3' + - type: STRING + name: group_by.0.tag_name + value: service + - type: INTEGER + name: group_by.1.attribute + value: '3' + - type: STRING + name: group_by.1.tag_name + value: resource-group + - type: STRING + name: items.0 + value: 'Service ["*"]: Meter ["*"]: Subcategory ["*"] daily cost' + - type: STRING + name: reference + value: TOVAT + - type: svggraph + name: 'Daily cost' + x: '25' + width: '47' + height: '7' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 6A1B9A + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: TOVAT._itemid + - type: INTEGER + name: ds.0.transparency + value: '4' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: AMNYP + - type: INTEGER + name: righty + value: '0' diff --git a/Azure_Microsoft_SQL_DTU_Database_by_HTTP.yaml b/Azure_Microsoft_SQL_DTU_Database_by_HTTP.yaml new file mode 100644 index 0000000..9e04e32 --- /dev/null +++ b/Azure_Microsoft_SQL_DTU_Database_by_HTTP.yaml @@ -0,0 +1,1244 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: c3a9fa0e07be4c1bbe19ae65c3375d17 + template: 'Azure Microsoft SQL DTU Database by HTTP' + name: 'Azure Microsoft SQL DTU Database by HTTP' + description: | + This template is designed to monitor Microsoft SQL DTU-based databases via HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Cloud + items: + - uuid: d13b970f51c64553942d04043dd3f8b5 + name: 'Availability status detailed' + type: DEPENDENT + key: azure.db.mssql.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'A detailed summary of the availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: health + - uuid: 96a795438e244fefa2218fcd73542201 + name: 'Availability state' + type: DEPENDENT + key: azure.db.mssql.availability.state + delay: '0' + description: 'The availability status of the resource.' + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 6bf8f84c7b494c4da90ef5e47fa75627 + expression: 'last(/Azure Microsoft SQL DTU Database by HTTP/azure.db.mssql.availability.state)=1' + name: 'Azure MSSQL DTU: Microsoft SQL database is degraded' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: 4196d310e6e84c61a0a7115116f10854 + expression: 'last(/Azure Microsoft SQL DTU Database by HTTP/azure.db.mssql.availability.state)=3' + name: 'Azure MSSQL DTU: Microsoft SQL database is in unknown state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: b6f356182f3d4b0c88f52d88fce580b9 + expression: 'last(/Azure Microsoft SQL DTU Database by HTTP/azure.db.mssql.availability.state)=2' + name: 'Azure MSSQL DTU: Microsoft SQL database is unavailable' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: adc84144c91c4e4091e10e2f07d3e026 + name: 'Connections failed: System errors' + type: DEPENDENT + key: azure.db.mssql.connections.failed.system + delay: '0' + value_type: FLOAT + description: 'The number of failed connections with system errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.connection_failed.total + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: f55c3fcf1a4b4539a6770496453e3ee8 + name: 'Connections successful' + type: DEPENDENT + key: azure.db.mssql.connections.successful + delay: '0' + value_type: FLOAT + description: 'The number of successful connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.connection_successful.total + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: fb2f97642cb647afaf5f52bb14b6a91c + name: 'CPU percentage' + type: DEPENDENT + key: azure.db.mssql.cpu.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of CPU usage on a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_percent.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 97caae1175be4c21b2fd5a53d5be25d2 + expression: 'min(/Azure Microsoft SQL DTU Database by HTTP/azure.db.mssql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT}' + name: 'Azure MSSQL DTU: High CPU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 86c709baa2e54477b483eb9289b7ae78 + name: 'Get errors' + type: DEPENDENT + key: azure.db.mssql.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: raw + triggers: + - uuid: a21b8c56bd914548949c277c77efbd4b + expression: 'length(last(/Azure Microsoft SQL DTU Database by HTTP/azure.db.mssql.data.errors))>0' + name: 'Azure MSSQL DTU: There are errors in requests to API' + opdata: 'Current error: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: 4349f68c08a548d19d9ce58e66557ce5 + name: 'Get data' + type: SCRIPT + key: azure.db.mssql.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Azure = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Azure.params = params; + Azure.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + var response, login = new HttpRequest(Azure.tls.options); + + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + login.setProxy(Azure.params.proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(Azure.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(Azure.params.app_id) + '&client_secret=' + encodeURIComponent(Azure.params.password) + ); + + if (login.getStatus() !== 200) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + Azure.token = response['access_token']; + }, + + request: function (url) { + var response, request = new HttpRequest(Azure.tls.options); + + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + request.setProxy(Azure.params.proxy); + } + + if (!Azure.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Azure.token); + Zabbix.log(4, '[ Azure DTU DB ] request url: ' + url); + + response = request.get(url); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + getMetricsData: function () { + var data = {}, + metric_endpoints = { + 'metrics_main': '/providers/Microsoft.Insights/metrics?metricnames=' + encodeURIComponent('allocated_data_storage,availability,blocked_by_firewall,connection_failed,connection_successful,cpu_percent,deadlock,dtu_consumption_percent,dtu_limit,dtu_used,log_write_percent,physical_data_read_percent,sessions_count,sessions_percent,sql_instance_cpu_percent,sql_instance_memory_percent,storage,storage_percent') + '&api-version=2021-05-01×pan=PT5M', + 'metrics_secondary': '/providers/Microsoft.Insights/metrics?metricnames=' + encodeURIComponent('tempdb_data_size,tempdb_log_size,tempdb_log_used_percent,workers_percent,xtp_storage_percent') + '&api-version=2021-05-01×pan=PT5M', + }; + + data.metrics = {}; + + Object.keys(metric_endpoints).forEach(function (field) { + metrics = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + metric_endpoints[field]), 'value'); + + for (k in metrics) { + key = Azure.getField(metrics[k], 'name.value').replace(/(\s|\/)+/g, ''); + + if (metrics[k].timeseries.length === 0) { + metrics[k].timeseries.push({ 'data': ['nodata'] }) + } + + values = Azure.getField(metrics[k], 'timeseries.0.data'); + + for (var i = values.length - 1; i >= 0; i--) { + + dataseriesKeys = Object.keys(values[i]); + aggregation = dataseriesKeys[1]; + + if (typeof (values[i][aggregation]) !== 'undefined') { + data.metrics[key] = values[i]; + break; + } + } + } + }); + + data.health = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'), 'value.0.properties'); + + return data + } + }; + + try { + Azure.setParams(JSON.parse(value)); + Azure.login(); + return JSON.stringify(Azure.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Azure DTU DB ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'The result of API requests is expressed in JSON format.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure Microsoft SQL DTU Database"}' + tags: + - tag: component + value: raw + - uuid: 447d6c462a384e87860eeba0b1e17787 + name: 'Data IO percentage' + type: DEPENDENT + key: azure.db.mssql.data.read.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of physical data read.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.physical_data_read_percent.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: operations + - uuid: 192a5d5a4c6541b1a2e6394dc4e6961d + name: Deadlocks + type: DEPENDENT + key: azure.db.mssql.deadlocks + delay: '0' + value_type: FLOAT + description: 'The number of deadlocks. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.deadlock.total + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: 1b9a19283e9f4f5c9ec386edbfd99d86 + name: 'DTU limit' + type: DEPENDENT + key: azure.db.mssql.dtu.limit + delay: '0' + value_type: FLOAT + description: 'The DTU limit. Applicable to DTU-based databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.dtu_limit.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: dtu + - uuid: 35daacf9b481454bbf017841c3b4acf6 + name: 'DTU percentage' + type: DEPENDENT + key: azure.db.mssql.dtu.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of DTU consumption for a DTU-based database.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.dtu_consumption_percent.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: dtu + triggers: + - uuid: eceb245b910841ceb8078ea8b3dbad1b + expression: 'min(/Azure Microsoft SQL DTU Database by HTTP/azure.db.mssql.dtu.percentage,5m)>{$AZURE.DB.DTU.UTIL.CRIT}' + name: 'Azure MSSQL DTU: High DTU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The DTU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 9bd9b5d0fc1d439ebfdfac51f6eb3487 + name: 'DTU used' + type: DEPENDENT + key: azure.db.mssql.dtu.used + delay: '0' + value_type: FLOAT + description: 'The DTU used. Applicable to DTU-based databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.dtu_used.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: dtu + - uuid: 4a0b3146d95742b1a30950da3fb6dcc5 + name: 'Connections blocked by firewall' + type: DEPENDENT + key: azure.db.mssql.firewall.blocked + delay: '0' + value_type: FLOAT + description: 'The number of connections blocked by the firewall.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.blocked_by_firewall.total + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: 0f71327c99054e5d8ebf432eccc0a536 + name: 'Log IO percentage' + type: DEPENDENT + key: azure.db.mssql.log.write.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of I/O used for log writes. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.log_write_percent.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: operations + - uuid: 218525cc5d474d249d62db21ca08d7c6 + name: 'SQL instance CPU percent' + type: DEPENDENT + key: azure.db.mssql.server.cpu.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU usage from all user and system workloads. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sql_instance_cpu_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + - tag: component + value: server + - uuid: d6d0d99c736f4ecea48c3cb5d920ee72 + name: 'SQL instance memory percent' + type: DEPENDENT + key: azure.db.mssql.server.memory.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of memory used by the database engine instance. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sql_instance_cpu_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: memory + - tag: component + value: server + - uuid: b9d6045642de46e08c45cca9b619bf75 + name: 'Sessions count' + type: DEPENDENT + key: azure.db.mssql.sessions.count + delay: '0' + value_type: FLOAT + description: 'The number of active sessions. Not applicable to Synapse DW Analytics.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sessions_count.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: sessions + - uuid: 62298388449448e18fb0efb5b139b79c + name: 'Sessions percentage' + type: DEPENDENT + key: azure.db.mssql.sessions.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sessions. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sessions_percent.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: sessions + - uuid: e5cec53daadf40f79f580af1df77c35c + name: 'Data space allocated' + type: DEPENDENT + key: azure.db.mssql.storage.allocated + delay: '0' + value_type: FLOAT + units: B + description: 'The allocated data storage. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.allocated_data_storage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 7c66b3e9b28043098a1d942c48fc0369 + name: 'Log backup storage size' + type: DEPENDENT + key: azure.db.mssql.storage.backup.log.size + delay: '0' + value_type: FLOAT + units: B + description: 'The cumulative log backup storage size. Applies to vCore-based and Hyperscale databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.log_backup_size_bytes.maximum + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 6a09939f232f4a078aa088f0dbcf370c + name: 'Data space used percent' + type: DEPENDENT + key: azure.db.mssql.storage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Data space used in percent. Not applicable to data warehouses or Hyperscale databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + triggers: + - uuid: b13d1ed5b1144e0095dca50bcbba37ae + expression: 'last(/Azure Microsoft SQL DTU Database by HTTP/azure.db.mssql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT}' + name: 'Azure MSSQL DTU: Storage space is critically low' + opdata: 'Current space used: {ITEM.LASTVALUE1}%' + priority: AVERAGE + description: 'Critical utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: 74c7b9f109924177a37bc7717c6f39e0 + expression: 'last(/Azure Microsoft SQL DTU Database by HTTP/azure.db.mssql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN}' + name: 'Azure MSSQL DTU: Storage space is low' + opdata: 'Current space used: {ITEM.LASTVALUE1}%' + priority: WARNING + description: 'High utilization of the storage space.' + dependencies: + - name: 'Azure MSSQL DTU: Storage space is critically low' + expression: 'last(/Azure Microsoft SQL DTU Database by HTTP/azure.db.mssql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: 829a31cfbd58473fb6aca227623dd374 + name: 'Data space used' + type: DEPENDENT + key: azure.db.mssql.storage.used + delay: '0' + value_type: FLOAT + units: B + description: 'Data space used. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 154d7dd42d2849be9d3cf92e11a6f923 + name: 'In-Memory OLTP storage percent' + type: DEPENDENT + key: azure.db.mssql.storage.xtp.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'In-Memory OLTP storage percent. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.xtp_storage_percent.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: d9a7c8558eb7418eb1113342d0c6225a + name: 'Tempdb data file size' + type: DEPENDENT + key: azure.db.mssql.tempdb.data.size + delay: '0' + value_type: FLOAT + units: B + description: 'The space used in `tempdb` data files, expressed in bytes. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.tempdb_data_size.maximum + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: a3d555807a4247e9ba3c388ae75bb5ce + name: 'Tempdb log used percent' + type: DEPENDENT + key: azure.db.mssql.tempdb.log.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of space used in the `tempdb` transaction log file. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.tempdb_log_used_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 3e64483271b347ceb300288079451f3e + name: 'Tempdb log file size' + type: DEPENDENT + key: azure.db.mssql.tempdb.log.size + delay: '0' + value_type: FLOAT + units: B + description: 'The space used in the `tempdb` transaction log file, expressed in bytes. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.tempdb_log_size.maximum + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 75ad7da5a2c74022ace6f28fed2c8ef2 + name: 'Workers percentage' + type: DEPENDENT + key: azure.db.mssql.workers.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of workers. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.workers_percent.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: workers + tags: + - tag: class + value: software + - tag: target + value: azure + - tag: target + value: mssql + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.DB.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of CPU utilization, expressed in %.' + - macro: '{$AZURE.DB.DTU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of DTU utilization, expressed in %.' + - macro: '{$AZURE.DB.MEMORY.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of memory utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.CRIT}' + value: '90' + description: 'The critical threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.WARN}' + value: '80' + description: 'The warning threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure SQL DTU-based database ID.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure Microsoft SQL DTU Database", e.g. {$HTTP.TLS.VERIFY:"Azure Microsoft SQL DTU Database"}.' + dashboards: + - uuid: 0e19ba53f50c48c3bce738d5420096cb + name: 'Overview Azure Microsoft SQL Database' + pages: + - widgets: + - type: item + name: Deadlocks + width: '12' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.deadlocks + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'SQL Server process memory percent' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.server.memory.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'DTU limit' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.dtu.limit + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Data space allocated' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.storage.allocated + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections successful' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.connections.successful + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Availability state' + x: '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.availability.state + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: up_color + value: FF0000 + - type: item + name: 'SQL Server process core percent' + x: '12' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.server.cpu.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'DTU used' + x: '12' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.dtu.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Data space used' + x: '12' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.storage.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections failed: System errors' + x: '12' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.connections.failed.system + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: itemhistory + name: 'Availability status detailed' + x: '24' + width: '48' + height: '3' + fields: + - type: INTEGER + name: columns.0.display + value: '4' + - type: ITEM + name: columns.0.itemid + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.availability.details + - type: INTEGER + name: columns.0.monospace_font + value: '1' + - type: STRING + name: columns.0.name + value: 'Azure Microsoft SQL: Availability status detailed' + - type: STRING + name: reference + value: BAAAG + - type: INTEGER + name: show_timestamp + value: '1' + - type: item + name: 'Sessions count' + x: '24' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.sessions.count + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + name: 'DTU percentage' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + name: 'Azure Microsoft SQL: DTU usage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Storage utilization' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + name: 'Azure Microsoft SQL: Storage utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: Connections + x: '24' + 'y': '12' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + name: 'Azure Microsoft SQL: Connections' + - type: STRING + name: reference + value: AAAAC + - type: item + name: 'Workers percentage' + x: '36' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.workers.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'CPU percentage' + x: '48' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.cpu.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'Data IO percentage' + x: '60' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.data.read.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + valuemaps: + - uuid: 34874b4cf9cb4ce2863a5698ff308126 + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown + graphs: + - uuid: a266fd856e0f49288ee96b98c6fce4b9 + name: 'Azure Microsoft SQL: Connections' + graph_items: + - color: 199C0D + item: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.connections.successful + - sortorder: '1' + color: F63100 + item: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.connections.failed.system + - sortorder: '2' + color: 00611C + item: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.firewall.blocked + - uuid: 0849698704cb40cab4ce62d3eb093717 + name: 'Azure Microsoft SQL: DTU usage' + graph_items: + - color: 199C0D + item: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.dtu.limit + - sortorder: '1' + color: F63100 + item: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.dtu.used + - uuid: 3aebd39180de4314a7129d2c5deb6b6a + name: 'Azure Microsoft SQL: Storage utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.storage.used + - sortorder: '1' + color: F63100 + item: + host: 'Azure Microsoft SQL DTU Database by HTTP' + key: azure.db.mssql.storage.allocated diff --git a/Azure_Microsoft_SQL_Database_by_HTTP.yaml b/Azure_Microsoft_SQL_Database_by_HTTP.yaml new file mode 100644 index 0000000..a635e47 --- /dev/null +++ b/Azure_Microsoft_SQL_Database_by_HTTP.yaml @@ -0,0 +1,1271 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 2d8b9329b5d04cdf85bf17d2d0db2b29 + template: 'Azure Microsoft SQL Database by HTTP' + name: 'Azure Microsoft SQL Database by HTTP' + description: | + This template is designed to monitor Microsoft SQL databases by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 2ff1f479e0b447f2b85e75e99bc011fe + name: 'Availability status detailed' + type: DEPENDENT + key: azure.db.mssql.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'The summary description of the availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: health + - uuid: f15e8075ac9a4f1ca6e95106940b246e + name: 'Availability state' + type: DEPENDENT + key: azure.db.mssql.availability.state + delay: '0' + description: 'The availability status of the resource.' + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 5156f35b82084fd3b1d1a11c35757993 + expression: 'last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.availability.state)=1' + name: 'Azure MSSQL: Microsoft SQL database is degraded' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: 0cf3cce995c241838e13df12d5908b61 + expression: 'last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.availability.state)=3' + name: 'Azure MSSQL: Microsoft SQL database is in unknown state' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: 2130dc83dee94fdfad87894127c6a578 + expression: 'last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.availability.state)=2' + name: 'Azure MSSQL: Microsoft SQL database is unavailable' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: ce744d69ed12435db781fbc6100d97ab + name: 'Connections failed: System errors' + type: DEPENDENT + key: azure.db.mssql.connections.failed.system + delay: '0' + value_type: FLOAT + description: 'The count of failed connections with system errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.connection_failed.total + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: 8ec27240f59947858c41762a266cab25 + name: 'Connections successful' + type: DEPENDENT + key: azure.db.mssql.connections.successful + delay: '0' + value_type: FLOAT + description: 'The count of successful connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.connection_successful.total + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: 04737f2746444d2fb348a9444964dc7a + name: 'CPU limit' + type: DEPENDENT + key: azure.db.mssql.cpu.limit + delay: '0' + value_type: FLOAT + description: 'The CPU limit. Applies to the vCore-based databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_limit.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + - uuid: e55a199cc0bd4749a69478da8268785d + name: 'Percentage CPU' + type: DEPENDENT + key: azure.db.mssql.cpu.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU percent of a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 506c034e707442519792a4366bc0879d + expression: 'min(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT}' + name: 'Azure MSSQL: High CPU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 9a4a948f41e4434e9a94b3d9546df896 + name: 'CPU used' + type: DEPENDENT + key: azure.db.mssql.cpu.used + delay: '0' + value_type: FLOAT + description: 'The CPU used. Applies to the vCore-based databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_used.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + - uuid: e8aa1b70a7384ffead05cd2e95a6f10a + name: 'Get errors' + type: DEPENDENT + key: azure.db.mssql.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: raw + triggers: + - uuid: 62d08fe430bd45e890c81547860d5c3d + expression: 'length(last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.data.errors))>0' + name: 'Azure MSSQL: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: 741cc1ec6a824e429f06b3d12a8a7082 + name: 'Get data' + type: SCRIPT + key: azure.db.mssql.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AzureDB = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + AzureDB.params = params; + AzureDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(AzureDB.tls.options); + if (typeof AzureDB.params.proxy !== 'undefined' && AzureDB.params.proxy !== '') { + request.setProxy(AzureDB.params.proxy); + } + if (AzureDB.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + AzureDB.token); + } + + Zabbix.log(4, '[ Azure ] Sending request: ' + url); + + if (data !== '') { + request.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = request.post(url, data); + } + else { + response = request.get(url); + } + + Zabbix.log(4, '[ Azure ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + } + + }; + + var metrics = [ + 'cpu_percent', + 'physical_data_read_percent', + 'log_write_percent', + 'storage', + 'connection_successful', + 'connection_failed', + 'blocked_by_firewall', + 'deadlock', + 'storage_percent', + 'xtp_storage_percent', + 'workers_percent', + 'sessions_percent', + 'sessions_count', + 'cpu_limit', + 'cpu_used', + 'sqlserver_process_core_percent', + 'sqlserver_process_memory_percent', + 'tempdb_data_size', + 'tempdb_log_size', + 'tempdb_log_used_percent', + 'allocated_data_storage' + ], + day_metrics = 'full_backup_size_bytes,diff_backup_size_bytes,log_backup_size_bytes', + prepared_metrics = [], + data = {}; + data['errors'] = {}; + data['metrics'] = {}; + + try { + AzureDB.setParams(JSON.parse(value)); + + try { + result = AzureDB.request( + 'https://login.microsoftonline.com/' + encodeURIComponent(AzureDB.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(AzureDB.params.app_id) + '&client_secret=' + encodeURIComponent(AzureDB.params.password) + ); + + if ('access_token' in result) { + AzureDB.token = result['access_token']; + } else { + throw 'Auth response does not contain access token.'; + } + } + catch (error) { + data.errors.auth = error.toString(); + } + + if (!('auth' in data.errors)) { + try { + health = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'); + if ('value' in health && Array.isArray(health.value) && health.value.length > 0 && 'properties' in health.value[0] && typeof health.value[0].properties === 'object') { + data.health = health.value[0].properties; + } + } + catch (error) { + data.errors.health = error.toString(); + } + + for (var i = 0; i < metrics.length; i += 20) { + var chunk = metrics.slice(i, i + 20); + + prepared_metrics.push( + chunk.map(function (element) { + return encodeURIComponent(element); + }).join(',') + ); + } + + start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\.\d+/, ''); + end_date = new Date().toISOString().replace(/\.\d+/, ''); + + for (var j in prepared_metrics) { + try { + metrics_data = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.Insights/metrics?metricnames=' + prepared_metrics[j] + '×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date) + '&api-version=2021-05-01'); + if ('value' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) { + for (k in metrics_data.value) { + if ('name' in metrics_data.value[k] && typeof metrics_data.value[k].name === 'object' && 'value' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === 'string' && 'timeseries' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && 'data' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) { + data.metrics[metrics_data.value[k].name.value.replace(/(\s|\/)+/g, '')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1]; + } + } + } + } + catch (error) { + data.errors[prepared_metrics[j]] = error.toString(); + } + } + start_date = new Date((new Date().getTime()) - 86400000).toISOString().replace(/\.\d+/, ''); + end_date = new Date().toISOString().replace(/\.\d+/, ''); + try { + metrics_data = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.Insights/metrics?metricnames=' + day_metrics + '×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date) + '&api-version=2021-05-01'); + if ('value' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) { + for (l in metrics_data.value) { + if ('name' in metrics_data.value[l] && typeof metrics_data.value[l].name === 'object' && 'value' in metrics_data.value[l].name && typeof metrics_data.value[l].name.value === 'string' && 'timeseries' in metrics_data.value[l] && Array.isArray(metrics_data.value[l].timeseries) && metrics_data.value[l].timeseries.length > 0 && 'data' in metrics_data.value[l].timeseries[0] && Array.isArray(metrics_data.value[l].timeseries[0].data) && metrics_data.value[l].timeseries[0].data.length > 0) { + data.metrics[metrics_data.value[l].name.value.replace(/(\s|\/)+/g, '')] = metrics_data.value[l].timeseries[0].data[metrics_data.value[l].timeseries[0].data.length - 1]; + } + } + } + } + catch (error) { + data.errors[day_metrics] = error.toString(); + } + } + } + catch (error) { + data.errors.params = error.toString(); + } + + if (Object.keys(data.errors).length !== 0) { + errors = 'Failed to receive data:'; + for (var error in data.errors) { + errors += '\n' + error + ' : ' + data.errors[error]; + } + data.errors = errors; + } + else { + data.errors = ''; + } + + return JSON.stringify(data); + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure Microsoft SQL Database"}' + tags: + - tag: component + value: raw + - uuid: 75d9288a8240425782cce8701c1bdfa8 + name: 'Data IO percentage' + type: DEPENDENT + key: azure.db.mssql.data.read.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of physical data read.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.physical_data_read_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: operations + - uuid: 81f87d35131c426299b233279f8f6c4b + name: Deadlocks + type: DEPENDENT + key: azure.db.mssql.deadlocks + delay: '0' + value_type: FLOAT + description: 'The count of deadlocks. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.deadlock.total + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: 4d78e4691b6f4ab095849e6af2713638 + name: 'Connections blocked by firewall' + type: DEPENDENT + key: azure.db.mssql.firewall.blocked + delay: '0' + value_type: FLOAT + description: 'The count of connections blocked by firewall.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.blocked_by_firewall.total + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: 324c16e5da5b40c78d687f1f41a9d180 + name: 'Log IO percentage' + type: DEPENDENT + key: azure.db.mssql.log.write.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of I/O log. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.log_write_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: operations + - uuid: f417464b2de14e3292d68442570b931d + name: 'SQL Server process core percent' + type: DEPENDENT + key: azure.db.mssql.server.cpu.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU usage as a percentage of the SQL DB process. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sqlserver_process_core_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + - tag: component + value: server + - uuid: b39aa0798a824dafb3f3871b6406106a + name: 'SQL Server process memory percent' + type: DEPENDENT + key: azure.db.mssql.server.memory.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory usage as a percentage of the SQL DB process. Not applicable to data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sqlserver_process_memory_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: memory + - tag: component + value: server + - uuid: 754b453cdf464f73b09eced3dd3e5859 + name: 'Sessions count' + type: DEPENDENT + key: azure.db.mssql.sessions.count + delay: '0' + value_type: FLOAT + description: 'The number of active sessions. Not applicable to Synapse DW Analytics.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sessions_count.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: sessions + - uuid: b6696ac3d83841e2a001cdad1aeaea89 + name: 'Sessions percentage' + type: DEPENDENT + key: azure.db.mssql.sessions.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sessions. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sessions_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: sessions + - uuid: fddff3dcbcf44c408314946f01f26a79 + name: 'Data space allocated' + type: DEPENDENT + key: azure.db.mssql.storage.allocated + delay: '0' + value_type: FLOAT + units: B + description: 'The allocated data storage. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.allocated_data_storage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 3d492b552468462ba17524a9c6951dd7 + name: 'Differential backup storage size' + type: DEPENDENT + key: azure.db.mssql.storage.backup.diff.size + delay: '0' + value_type: FLOAT + units: B + description: 'Cumulative differential backup storage size. Applies to the vCore-based databases. Not applicable to the Hyperscale databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.diff_backup_size_bytes.maximum + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: e8cd0339a82248e3ad777374f219552e + name: 'Log backup storage size' + type: DEPENDENT + key: azure.db.mssql.storage.backup.log.size + delay: '0' + value_type: FLOAT + units: B + description: 'Cumulative log backup storage size. Applies to the vCore-based and Hyperscale databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.log_backup_size_bytes.maximum + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: c92867a096ad4d89b31a2dba7e560df1 + name: 'Full backup storage size' + type: DEPENDENT + key: azure.db.mssql.storage.backup.size + delay: '0' + value_type: FLOAT + units: B + description: 'Cumulative full backup storage size. Applies to the vCore-based databases. Not applicable to the Hyperscale databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.full_backup_size_bytes.maximum + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 6eb5dc0a0b864c0bb35634612472ed38 + name: 'Data space used percent' + type: DEPENDENT + key: azure.db.mssql.storage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Data space used percent. Not applicable to the data warehouses or Hyperscale databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + triggers: + - uuid: a2d6cf9ac67d4d0eb312e9536299b345 + expression: 'last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT}' + name: 'Azure MSSQL: Storage space is critically low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Critical utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: 6dbf1d3aeb8b44b8bd96a9ca75f5249e + expression: 'last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN}' + name: 'Azure MSSQL: Storage space is low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'High utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: a0335bde6f3546cdad5bbd2db8fa50b1 + name: 'Data space used' + type: DEPENDENT + key: azure.db.mssql.storage.used + delay: '0' + value_type: FLOAT + units: B + description: 'Data space used. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 6ff07a9a680749bfa3deabbec508b7c3 + name: 'In-Memory OLTP storage percent' + type: DEPENDENT + key: azure.db.mssql.storage.xtp.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'In-Memory OLTP storage percent. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.xtp_storage_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 76da2f210c084546a19ce156e0aee1d6 + name: 'Tempdb data file size' + type: DEPENDENT + key: azure.db.mssql.tempdb.data.size + delay: '0' + value_type: FLOAT + units: B + description: 'The space used in `tempdb` data files, expressed in bytes. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.tempdb_data_size.maximum + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: dd2986cc6ce441fe9b3ab9b44b5fc103 + name: 'Tempdb log used percent' + type: DEPENDENT + key: azure.db.mssql.tempdb.log.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of space used in `tempdb` transaction log file. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.tempdb_log_used_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 51212e2af3854079950064bd9d16da83 + name: 'Tempdb log file size' + type: DEPENDENT + key: azure.db.mssql.tempdb.log.size + delay: '0' + value_type: FLOAT + units: B + description: 'The space used in `tempdb` transaction log file, expressed in bytes. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.tempdb_log_size.maximum + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: b5d63b2cbcb1470d8559a90cb3df0002 + name: 'Workers percentage' + type: DEPENDENT + key: azure.db.mssql.workers.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of workers. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.workers_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: workers + tags: + - tag: class + value: software + - tag: target + value: azure + - tag: target + value: mssql + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.DB.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of CPU utilization, expressed in %.' + - macro: '{$AZURE.DB.MEMORY.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of memory utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.CRIT}' + value: '90' + description: 'The critical threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.WARN}' + value: '80' + description: 'The warning threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure Microsoft SQL database ID.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure Microsoft SQL Database", e.g. {$HTTP.TLS.VERIFY:"Azure Microsoft SQL Database"}.' + dashboards: + - uuid: 72b6f0916b9245adadb3445327aed633 + name: 'Overview Azure Microsoft SQL Database' + pages: + - widgets: + - type: item + name: Deadlocks + width: '12' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.deadlocks + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'SQL Server process memory percent' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.server.memory.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'CPU limit' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.cpu.limit + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Data space allocated' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.storage.allocated + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections successful' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.connections.successful + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Availability state' + x: '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.availability.state + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: up_color + value: FF0000 + - type: item + name: 'SQL Server process core percent' + x: '12' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.server.cpu.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'CPU used' + x: '12' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.cpu.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Data space used' + x: '12' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.storage.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections failed: System errors' + x: '12' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.connections.failed.system + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: itemhistory + name: 'Availability status detailed' + x: '24' + width: '48' + height: '3' + fields: + - type: INTEGER + name: columns.0.display + value: '4' + - type: ITEM + name: columns.0.itemid + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.availability.details + - type: INTEGER + name: columns.0.monospace_font + value: '1' + - type: STRING + name: columns.0.name + value: 'Azure Microsoft SQL: Availability status detailed' + - type: STRING + name: reference + value: BAAAG + - type: INTEGER + name: show_timestamp + value: '1' + - type: item + name: 'Sessions count' + x: '24' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.sessions.count + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + name: 'Percentage CPU' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + name: 'Azure Microsoft SQL: CPU usage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Storage utilization' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + name: 'Azure Microsoft SQL: Storage utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: Connections + x: '24' + 'y': '12' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + name: 'Azure Microsoft SQL: Connections' + - type: STRING + name: reference + value: AAAAC + - type: item + name: 'Workers percentage' + x: '36' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.workers.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'Full backup storage size' + x: '48' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.storage.backup.size + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Data IO percentage' + x: '60' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.data.read.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + valuemaps: + - uuid: 6f9c01899d9e45c9a1316ee081718e9e + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown + graphs: + - uuid: 3b278de1b81a4be7acc865568962c323 + name: 'Azure Microsoft SQL: Connections' + graph_items: + - color: 199C0D + item: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.connections.successful + - sortorder: '1' + color: F63100 + item: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.connections.failed.system + - sortorder: '2' + color: 00611C + item: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.firewall.blocked + - uuid: fe250a5f509d45babea9fcd12accbcac + name: 'Azure Microsoft SQL: CPU usage' + graph_items: + - color: 199C0D + item: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.cpu.limit + - sortorder: '1' + color: F63100 + item: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.cpu.used + - uuid: ec5714017c744484be8c264d24a0e694 + name: 'Azure Microsoft SQL: Storage utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.storage.used + - sortorder: '1' + color: F63100 + item: + host: 'Azure Microsoft SQL Database by HTTP' + key: azure.db.mssql.storage.allocated diff --git a/Azure_Microsoft_SQL_Serverless_Database_by_HTTP.yaml b/Azure_Microsoft_SQL_Serverless_Database_by_HTTP.yaml new file mode 100644 index 0000000..10baaed --- /dev/null +++ b/Azure_Microsoft_SQL_Serverless_Database_by_HTTP.yaml @@ -0,0 +1,1236 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 5175afdf713744d9a81ce53864ccfc1d + template: 'Azure Microsoft SQL Serverless Database by HTTP' + name: 'Azure Microsoft SQL Serverless Database by HTTP' + description: | + This template is designed to monitor Microsoft SQL serverless databases by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 7c11fcc4f4b349f8b98fac93ae5e32be + name: 'App CPU billed' + type: DEPENDENT + key: azure.db.mssql.app.cpu.billed + delay: '0' + value_type: FLOAT + description: 'App CPU billed. Applies to serverless databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.app_cpu_billed.total + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + - uuid: 6e67a868b2d84838803d3cb464ae9648 + name: 'App CPU percentage' + type: DEPENDENT + key: azure.db.mssql.app.cpu.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'App CPU percentage. Applies to serverless databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.app_cpu_percent.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + - uuid: a38a887341914e75a01c7527c40b678f + name: 'App memory percentage' + type: DEPENDENT + key: azure.db.mssql.app.memory.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'App memory percentage. Applies to serverless databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.app_memory_percent.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: memory + - uuid: c2d3bc4ff95b4e05898dccee3d73a349 + name: 'Availability status detailed' + type: DEPENDENT + key: azure.db.mssql.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'The summary description of the availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: health + - uuid: 9a3f2e99a768492c859c8f368c6a5cd3 + name: 'Availability state' + type: DEPENDENT + key: azure.db.mssql.availability.state + delay: '0' + description: 'The availability status of the resource.' + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 37c52a28908a45378266f68acdf5c308 + expression: 'last(/Azure Microsoft SQL Serverless Database by HTTP/azure.db.mssql.availability.state)=1' + name: 'Azure MSSQL Serverless: Microsoft SQL database is degraded' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: 20bd79f05f3241a9950a83dcd9e325ba + expression: 'last(/Azure Microsoft SQL Serverless Database by HTTP/azure.db.mssql.availability.state)=3' + name: 'Azure MSSQL Serverless: Microsoft SQL database is in unknown state' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: 124813388e9844e8aae5ce474a66a774 + expression: 'last(/Azure Microsoft SQL Serverless Database by HTTP/azure.db.mssql.availability.state)=2' + name: 'Azure MSSQL Serverless: Microsoft SQL database is unavailable' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: 2457708a49d141faa16bd7b4ceb2c0a4 + name: 'Connections failed: System errors' + type: DEPENDENT + key: azure.db.mssql.connections.failed.system + delay: '0' + value_type: FLOAT + description: 'The count of failed connections with system errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.connection_failed.total + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: 59e028a7323d4222a4efd727314327c1 + name: 'Connections successful' + type: DEPENDENT + key: azure.db.mssql.connections.successful + delay: '0' + value_type: FLOAT + description: 'The count of successful connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.connection_successful.total + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: 0dc1cf6302574c1fbb51583e03409713 + name: 'CPU limit' + type: DEPENDENT + key: azure.db.mssql.cpu.limit + delay: '0' + value_type: FLOAT + description: 'The CPU limit. Applies to the vCore-based databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_limit.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + - uuid: 53be31ecfd48472c8edfe223107c0b07 + name: 'Percentage CPU' + type: DEPENDENT + key: azure.db.mssql.cpu.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU percent of a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 933a04a1455b4a89b1527f9ce7848259 + expression: 'min(/Azure Microsoft SQL Serverless Database by HTTP/azure.db.mssql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT}' + name: 'Azure MSSQL Serverless: High CPU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: ec0fc85904e149939836c2818a6ca66a + name: 'CPU used' + type: DEPENDENT + key: azure.db.mssql.cpu.used + delay: '0' + value_type: FLOAT + description: 'The CPU used. Applies to the vCore-based databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_used.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + - uuid: d933dbacb2b94e40a757e15f13d51d2d + name: 'Get errors' + type: DEPENDENT + key: azure.db.mssql.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: raw + triggers: + - uuid: f56b125a8eff49d2aa002609c7df8b34 + expression: 'length(last(/Azure Microsoft SQL Serverless Database by HTTP/azure.db.mssql.data.errors))>0' + name: 'Azure MSSQL Serverless: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: e1c668773b974deeaf64c0d51d1cb02d + name: 'Get data' + type: SCRIPT + key: azure.db.mssql.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AzureDB = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + AzureDB.params = params; + AzureDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + var response, request = new HttpRequest(AzureDB.tls.options); + if (typeof AzureDB.params.proxy !== 'undefined' && AzureDB.params.proxy !== '') { + request.setProxy(AzureDB.params.proxy); + } + if (AzureDB.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + AzureDB.token); + } + + Zabbix.log(4, '[ Azure ] Sending request: ' + url); + + if (data !== '') { + request.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = request.post(url, data); + } + else { + response = request.get(url); + } + + Zabbix.log(4, '[ Azure ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + } + + }; + + var metrics = [ + 'cpu_percent', + 'physical_data_read_percent', + 'log_write_percent', + 'storage', + 'connection_successful', + 'connection_failed', + 'blocked_by_firewall', + 'deadlock', + 'storage_percent', + 'xtp_storage_percent', + 'workers_percent', + 'sessions_percent', + 'cpu_limit', + 'cpu_used', + 'sqlserver_process_core_percent', + 'sqlserver_process_memory_percent', + 'tempdb_data_size', + 'tempdb_log_size', + 'tempdb_log_used_percent', + 'app_cpu_billed', + 'app_cpu_percent', + 'app_memory_percent', + 'allocated_data_storage' + ], + prepared_metrics = [], + data = {}; + data['errors'] = {}; + data['metrics'] = {}; + + try { + AzureDB.setParams(JSON.parse(value)); + + try { + result = AzureDB.request( + 'https://login.microsoftonline.com/' + encodeURIComponent(AzureDB.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(AzureDB.params.app_id) + '&client_secret=' + encodeURIComponent(AzureDB.params.password) + ); + + if ('access_token' in result) { + AzureDB.token = result['access_token']; + } else { + throw 'Auth response does not contain access token.'; + } + } + catch (error) { + data.errors.auth = error.toString(); + } + + if (!('auth' in data.errors)) { + try { + health = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'); + if ('value' in health && Array.isArray(health.value) && health.value.length > 0 && 'properties' in health.value[0] && typeof health.value[0].properties === 'object') { + data.health = health.value[0].properties; + } + } + catch (error) { + data.errors.health = error.toString(); + } + + for (var i = 0; i < metrics.length; i += 20) { + var chunk = metrics.slice(i, i + 20); + + prepared_metrics.push( + chunk.map(function (element) { + return encodeURIComponent(element); + }).join(',') + ); + } + + start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\.\d+/, ''); + end_date = new Date().toISOString().replace(/\.\d+/, ''); + + for (var j in prepared_metrics) { + try { + metrics_data = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.Insights/metrics?metricnames=' + prepared_metrics[j] + '×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date) + '&api-version=2021-05-01'); + if ('value' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) { + for (k in metrics_data.value) { + if ('name' in metrics_data.value[k] && typeof metrics_data.value[k].name === 'object' && 'value' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === 'string' && 'timeseries' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && 'data' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) { + data.metrics[metrics_data.value[k].name.value.replace(/(\s|\/)+/g, '')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1]; + } + } + } + } + catch (error) { + data.errors[prepared_metrics[j]] = error.toString(); + } + } + } + } + catch (error) { + data.errors.params = error.toString(); + } + + if (Object.keys(data.errors).length !== 0) { + errors = 'Failed to receive data:'; + for (var error in data.errors) { + errors += '\n' + error + ' : ' + data.errors[error]; + } + data.errors = errors; + } + else { + data.errors = ''; + } + + return JSON.stringify(data); + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure Microsoft SQL Serverless Database"}' + tags: + - tag: component + value: raw + - uuid: 40b15dd3d7a943d99f1bbe7fb34a9f48 + name: 'Data IO percentage' + type: DEPENDENT + key: azure.db.mssql.data.read.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The physical data read percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.physical_data_read_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: operations + - uuid: 25b97b67d87945b48ae5c44b1db20187 + name: Deadlocks + type: DEPENDENT + key: azure.db.mssql.deadlocks + delay: '0' + value_type: FLOAT + description: 'The count of deadlocks. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.deadlock.total + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: de91693b0a3345b4ad2c9aafd2af5325 + name: 'Connections blocked by firewall' + type: DEPENDENT + key: azure.db.mssql.firewall.blocked + delay: '0' + value_type: FLOAT + description: 'The count of connections blocked by firewall.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.blocked_by_firewall.total + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: network + - uuid: b41292705c284a77847856c2818d7145 + name: 'Log IO percentage' + type: DEPENDENT + key: azure.db.mssql.log.write.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of I/O log. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.log_write_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: operations + - uuid: 7b772170199f41d4ab614dee66176630 + name: 'SQL Server process core percent' + type: DEPENDENT + key: azure.db.mssql.server.cpu.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU usage as a percentage of the SQL DB process. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sqlserver_process_core_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: cpu + - tag: component + value: server + - uuid: 5c0a5b745c094475b1e7a0d4f17a5627 + name: 'SQL Server process memory percent' + type: DEPENDENT + key: azure.db.mssql.server.memory.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory usage as a percentage of the SQL DB process. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sqlserver_process_memory_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: memory + - tag: component + value: server + - uuid: 924d96d212764c3ab18e5c14daa58840 + name: 'Sessions percentage' + type: DEPENDENT + key: azure.db.mssql.sessions.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sessions. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.sessions_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: sessions + - uuid: a87fd8ac96944e57ac58b39a18f6ad41 + name: 'Data space allocated' + type: DEPENDENT + key: azure.db.mssql.storage.allocated + delay: '0' + value_type: FLOAT + units: B + description: 'The allocated data storage. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.allocated_data_storage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 2f95fd2dd48c4664afc5cd62d02b0b0a + name: 'Data space used percent' + type: DEPENDENT + key: azure.db.mssql.storage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of used data space. Not applicable to the data warehouses or Hyperscale databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + triggers: + - uuid: 4638130e599243fba3206abc85a7447f + expression: 'last(/Azure Microsoft SQL Serverless Database by HTTP/azure.db.mssql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT}' + name: 'Azure MSSQL Serverless: Storage space is critically low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Critical utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: 4732eab4aabf439fa0b2d80b63e821e5 + expression: 'last(/Azure Microsoft SQL Serverless Database by HTTP/azure.db.mssql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN}' + name: 'Azure MSSQL Serverless: Storage space is low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'High utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: 3b1fb8f993e74795b38abd56eceace0a + name: 'Data space used' + type: DEPENDENT + key: azure.db.mssql.storage.used + delay: '0' + value_type: FLOAT + units: B + description: 'Data space used. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: fbd572ca3d3f42eea794ce78a5a27ec1 + name: 'In-Memory OLTP storage percent' + type: DEPENDENT + key: azure.db.mssql.storage.xtp.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'In-Memory OLTP storage percent. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.xtp_storage_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: cea8a8ea0eaa4d26a28721882c19d9cd + name: 'Tempdb data file size' + type: DEPENDENT + key: azure.db.mssql.tempdb.data.size + delay: '0' + value_type: FLOAT + units: B + description: 'Space used in `tempdb` data files, expressed in bytes. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.tempdb_data_size.maximum + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: 6c8196751a504b82920b7ffa5314a2fc + name: 'Tempdb log used percent' + type: DEPENDENT + key: azure.db.mssql.tempdb.log.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of space used in `tempdb` transaction log files. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.tempdb_log_used_percent.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: b83992d1001c41b6ad3d13dbb227a733 + name: 'Tempdb log file size' + type: DEPENDENT + key: azure.db.mssql.tempdb.log.size + delay: '0' + value_type: FLOAT + units: B + description: 'Space used in `tempdb` transaction log files, expressed in bytes. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.tempdb_log_size.maximum + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: storage + - uuid: a4f597ab784a4e31aedc82bfb34feeb7 + name: 'Workers percentage' + type: DEPENDENT + key: azure.db.mssql.workers.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of workers. Not applicable to the data warehouses.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.workers_percent.average + master_item: + key: azure.db.mssql.data.get + tags: + - tag: component + value: workers + tags: + - tag: class + value: software + - tag: target + value: azure + - tag: target + value: mssql + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.DB.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of CPU utilization, expressed in %.' + - macro: '{$AZURE.DB.MEMORY.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of memory utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.CRIT}' + value: '90' + description: 'The critical threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.WARN}' + value: '80' + description: 'The warning threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure Microsoft SQL database ID.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure Microsoft SQL Serverless Database", e.g. {$HTTP.TLS.VERIFY:"Azure Microsoft SQL Serverless Database"}.' + dashboards: + - uuid: 7a1b55d933ba4a529f2fccef44e5cff7 + name: 'Overview Azure Microsoft SQL Serverless Database' + pages: + - widgets: + - type: item + name: Deadlocks + width: '12' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.deadlocks + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'SQL Server process memory percent' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.server.memory.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'CPU limit' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.cpu.limit + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Data space allocated' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.storage.allocated + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections successful' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.connections.successful + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Availability state' + x: '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.availability.state + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: up_color + value: FF0000 + - type: item + name: 'SQL Server process core percent' + x: '12' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.server.cpu.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'CPU used' + x: '12' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.cpu.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Data space used' + x: '12' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.storage.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections failed: System errors' + x: '12' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.connections.failed.system + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: itemhistory + name: 'Availability status detailed' + x: '24' + width: '48' + height: '3' + fields: + - type: INTEGER + name: columns.0.display + value: '4' + - type: ITEM + name: columns.0.itemid + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.availability.details + - type: INTEGER + name: columns.0.monospace_font + value: '1' + - type: STRING + name: columns.0.name + value: 'Azure Microsoft SQL: Availability status detailed' + - type: STRING + name: reference + value: BAAAF + - type: INTEGER + name: show_timestamp + value: '1' + - type: item + name: 'Sessions percentage' + x: '24' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.sessions.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + name: 'Percentage CPU' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + name: 'Azure Microsoft SQL: CPU usage' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Storage utilization' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + name: 'Azure Microsoft SQL: Storage utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: Connections + x: '24' + 'y': '12' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + name: 'Azure Microsoft SQL: Connections' + - type: STRING + name: reference + value: AAAAC + - type: item + name: 'Workers percentage' + x: '36' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.workers.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'App memory percentage' + x: '48' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.app.memory.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'Data IO percentage' + x: '60' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.data.read.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + valuemaps: + - uuid: c87b2eaeb88c4932ad63c73fcafa5331 + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown + graphs: + - uuid: 62a9a5e1fb044a52a0b534bd4eeea914 + name: 'Azure Microsoft SQL: Connections' + graph_items: + - color: 199C0D + item: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.connections.successful + - sortorder: '1' + color: F63100 + item: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.connections.failed.system + - sortorder: '2' + color: 00611C + item: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.firewall.blocked + - uuid: 083d307db8954fc59e8e5cfccefc16c1 + name: 'Azure Microsoft SQL: CPU usage' + graph_items: + - color: 199C0D + item: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.cpu.limit + - sortorder: '1' + color: F63100 + item: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.cpu.used + - uuid: f541b6591683433aba4b3e58a8ad1e5c + name: 'Azure Microsoft SQL: Storage utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.storage.used + - sortorder: '1' + color: F63100 + item: + host: 'Azure Microsoft SQL Serverless Database by HTTP' + key: azure.db.mssql.storage.allocated diff --git a/Azure_MySQL_Flexible_Server_by_HTTP.yaml b/Azure_MySQL_Flexible_Server_by_HTTP.yaml new file mode 100644 index 0000000..7069d2e --- /dev/null +++ b/Azure_MySQL_Flexible_Server_by_HTTP.yaml @@ -0,0 +1,1116 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: ec92c7b0b1d14946b6ac61de89357199 + template: 'Azure MySQL Flexible Server by HTTP' + name: 'Azure MySQL Flexible Server by HTTP' + description: | + This template is designed to monitor Microsoft Azure MySQL flexible servers by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 9c87cde45e984ce282d8ba9fbe184f9b + name: 'Availability status detailed' + type: DEPENDENT + key: azure.db.mysql.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'The summary description of the availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: health + - uuid: 7f2d8e8d94ae4c87ba0480a2d9518f65 + name: 'Availability state' + type: DEPENDENT + key: azure.db.mysql.availability.state + delay: '0' + description: 'The availability status of the resource.' + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: health + triggers: + - uuid: e822fd2214fb41db9b57cdb8eec0444a + expression: 'last(/Azure MySQL Flexible Server by HTTP/azure.db.mysql.availability.state)=1' + name: 'Azure MySQL Flexible: MySQL server is degraded' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: ebb35037a5b646a0bd2c6be44bb1f3c6 + expression: 'last(/Azure MySQL Flexible Server by HTTP/azure.db.mysql.availability.state)=3' + name: 'Azure MySQL Flexible: MySQL server is in unknown state' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: 240b861c09a94e209036782b6c7496fa + expression: 'last(/Azure MySQL Flexible Server by HTTP/azure.db.mysql.availability.state)=2' + name: 'Azure MySQL Flexible: MySQL server is unavailable' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: cab6ac822f2c4e118b030e49cc15eaa2 + name: 'Connections aborted' + type: DEPENDENT + key: azure.db.mysql.connections.aborted + delay: '0' + value_type: FLOAT + description: 'The count of aborted connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.aborted_connections.total + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: network + triggers: + - uuid: 3346ea2331c14fa18658eb33e461ec7c + expression: 'min(/Azure MySQL Flexible Server by HTTP/azure.db.mysql.connections.aborted,5m)>{$AZURE.DB.ABORTED.CONN.MAX.WARN}' + name: 'Azure MySQL Flexible: Server has aborted connections' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The number of failed attempts to connect to the MySQL server is more than `{$AZURE.DB.ABORTED.CONN.MAX.WARN}`.' + tags: + - tag: scope + value: availability + - uuid: 71b33f0a5d37498dbb57d185ac0f2741 + name: 'Connections active' + type: DEPENDENT + key: azure.db.mysql.connections.active + delay: '0' + value_type: FLOAT + description: 'The count of active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.active_connections.maximum + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: network + - uuid: 1993ae276fe44db6a89451291749f703 + name: 'Connections total' + type: DEPENDENT + key: azure.db.mysql.connections.total + delay: '0' + value_type: FLOAT + description: 'The count of total connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.total_connections.total + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: network + - uuid: b235666b98954555ae5e75e757bba707 + name: 'CPU credits consumed' + type: DEPENDENT + key: azure.db.mysql.cpu.credits.consumed + delay: '0' + value_type: FLOAT + description: 'The consumed CPU credits.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_credits_consumed.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: cpu + - uuid: 4f591346d3d34d49b37cfff2a169f57e + name: 'CPU credits remaining' + type: DEPENDENT + key: azure.db.mysql.cpu.credits.remaining + delay: '0' + value_type: FLOAT + description: 'The remaining CPU credits.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_credits_remaining.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: cpu + - uuid: afe4d11c2f474428acc00d153ad2a6e5 + name: 'Percentage CPU' + type: DEPENDENT + key: azure.db.mysql.cpu.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU percent of a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_percent.maximum + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 5af82cc95239479c86c7ab3dabcfb592 + expression: 'min(/Azure MySQL Flexible Server by HTTP/azure.db.mysql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT}' + name: 'Azure MySQL Flexible: High CPU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: f960e7667571497c96454b5c4b7b69ff + name: 'Get errors' + type: DEPENDENT + key: azure.db.mysql.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: raw + triggers: + - uuid: 98c1b86b79e9469cac2870fb2ba42949 + expression: 'length(last(/Azure MySQL Flexible Server by HTTP/azure.db.mysql.data.errors))>0' + name: 'Azure MySQL Flexible: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: de712334db1440309fa68f9252d4f9bc + name: 'Get data' + type: SCRIPT + key: azure.db.mysql.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AzureDB = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + AzureDB.params = params; + AzureDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(AzureDB.tls.options); + if (typeof AzureDB.params.proxy !== 'undefined' && AzureDB.params.proxy !== '') { + request.setProxy(AzureDB.params.proxy); + } + if (AzureDB.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + AzureDB.token); + } + + Zabbix.log(4, '[ Azure ] Sending request: ' + url); + + if (data !== '') { + request.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = request.post(url, data); + } + else { + response = request.get(url); + } + + Zabbix.log(4, '[ Azure ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + } + + }; + + var metrics = [ + 'cpu_percent', + 'memory_percent', + 'network_bytes_egress', + 'network_bytes_ingress', + 'active_connections', + 'total_connections', + 'aborted_connections', + 'Queries', + 'io_consumption_percent', + 'storage_percent', + 'storage_used', + 'storage_limit', + 'backup_storage_used', + 'replication_lag', + 'cpu_credits_remaining', + 'cpu_credits_consumed' + ], + prepared_metrics = [], + data = {}; + data['errors'] = {}; + data['metrics'] = {}; + + try { + AzureDB.setParams(JSON.parse(value)); + + try { + result = AzureDB.request( + 'https://login.microsoftonline.com/' + encodeURIComponent(AzureDB.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(AzureDB.params.app_id) + '&client_secret=' + encodeURIComponent(AzureDB.params.password) + ); + + if ('access_token' in result) { + AzureDB.token = result['access_token']; + } else { + throw 'Auth response does not contain access token.'; + } + } + catch (error) { + data.errors.auth = error.toString(); + } + + if (!('auth' in data.errors)) { + try { + health = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'); + if ('value' in health && Array.isArray(health.value) && health.value.length > 0 && 'properties' in health.value[0] && typeof health.value[0].properties === 'object') { + data.health = health.value[0].properties; + } + } + catch (error) { + data.errors.health = error.toString(); + } + + for (var i = 0; i < metrics.length; i += 20) { + var chunk = metrics.slice(i, i + 20); + + prepared_metrics.push( + chunk.map(function (element) { + return encodeURIComponent(element); + }).join(',') + ); + } + + start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\.\d+/, ''); + end_date = new Date().toISOString().replace(/\.\d+/, ''); + + for (var j in prepared_metrics) { + try { + metrics_data = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.Insights/metrics?metricnames=' + prepared_metrics[j] + '×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date) + '&api-version=2021-05-01'); + if ('value' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) { + for (k in metrics_data.value) { + if ('name' in metrics_data.value[k] && typeof metrics_data.value[k].name === 'object' && 'value' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === 'string' && 'timeseries' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && 'data' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) { + data.metrics[metrics_data.value[k].name.value.replace(/(\s|\/)+/g, '')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1]; + } + } + } + } + catch (error) { + data.errors[prepared_metrics[j]] = error.toString(); + } + } + } + } + catch (error) { + data.errors.params = error.toString(); + } + + if (Object.keys(data.errors).length !== 0) { + errors = 'Failed to receive data:'; + for (var error in data.errors) { + errors += '\n' + error + ' : ' + data.errors[error]; + } + data.errors = errors; + } + else { + data.errors = ''; + } + + return JSON.stringify(data); + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure MySQL Flexible Server"}' + tags: + - tag: component + value: raw + - uuid: b4a6363aac734b6c8d043718ca667c09 + name: 'IO consumption percent' + type: DEPENDENT + key: azure.db.mysql.io.consumption.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The consumption percent of I/O.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.io_consumption_percent.maximum + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: operations + - uuid: f0f56a67942a40509d6835f3da9eb7e2 + name: 'Memory utilization' + type: DEPENDENT + key: azure.db.mysql.memory.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The memory percent of a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.memory_percent.maximum + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: memory + - uuid: 84f3d2b152784993944a2d4c3fad1a59 + name: 'Network out' + type: DEPENDENT + key: azure.db.mysql.network.egress + delay: '0' + value_type: FLOAT + units: bps + description: 'Network egress of a host, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.network_bytes_egress.total + - type: MULTIPLIER + parameters: + - '0.0088' + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: network + - uuid: 5f38b6b4e3a849d09022bd34c4347088 + name: 'Network in' + type: DEPENDENT + key: azure.db.mysql.network.ingress + delay: '0' + value_type: FLOAT + units: bps + description: 'Network ingress of a host, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.network_bytes_ingress.total + - type: MULTIPLIER + parameters: + - '0.0088' + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: network + - uuid: 05329dcdb2e14080a43d1bf7553037f6 + name: Queries + type: DEPENDENT + key: azure.db.mysql.queries + delay: '0' + value_type: FLOAT + description: 'The count of queries.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.Queries.total + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: queries + - uuid: 80a05247fec04e39a99ccafaefbd0441 + name: 'Replication lag' + type: DEPENDENT + key: azure.db.mysql.replication.lag + delay: '0' + value_type: FLOAT + units: s + description: 'The replication lag, expressed in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.replication_lag.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: replication + - uuid: 8d5cd0d3cd0744a5a260a8a0485f6735 + name: 'Backup storage used' + type: DEPENDENT + key: azure.db.mysql.storage.backup.used + delay: '0' + value_type: FLOAT + units: B + description: 'Used backup storage, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.backup_storage_used.maximum + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + - uuid: 78f3e03b5caf4f85a3c61513cf242f76 + name: 'Storage limit' + type: DEPENDENT + key: azure.db.mysql.storage.limit + delay: '0' + value_type: FLOAT + units: B + description: 'The storage limit, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_limit.maximum + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + - uuid: ced51184b59643adaa51bef90710166b + name: 'Storage percent' + type: DEPENDENT + key: azure.db.mysql.storage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The storage utilization, expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_percent.maximum + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + triggers: + - uuid: 1703edc1553644e5aa25d35928c5eafd + expression: 'last(/Azure MySQL Flexible Server by HTTP/azure.db.mysql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT}' + name: 'Azure MySQL Flexible: Storage space is critically low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Critical utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: a2ec23a5e77c40aa9e45d214f4e06ca1 + expression: 'last(/Azure MySQL Flexible Server by HTTP/azure.db.mysql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN}' + name: 'Azure MySQL Flexible: Storage space is low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'High utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: 9f96e947eee646f890742676e9f9a22a + name: 'Storage used' + type: DEPENDENT + key: azure.db.mysql.storage.used + delay: '0' + value_type: FLOAT + units: B + description: 'Used storage space, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_used.maximum + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + tags: + - tag: class + value: software + - tag: target + value: azure + - tag: target + value: mysql + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.DB.ABORTED.CONN.MAX.WARN}' + value: '25' + description: 'The number of failed attempts to connect to the MySQL server for a trigger expression.' + - macro: '{$AZURE.DB.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of CPU utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.CRIT}' + value: '90' + description: 'The critical threshold of the storage utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.WARN}' + value: '80' + description: 'The warning threshold of the storage utilization, expressed in %.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure MySQL server ID.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure MySQL Flexible Server", e.g. {$HTTP.TLS.VERIFY:"Azure MySQL Flexible Server"}.' + dashboards: + - uuid: 12974ad6fc5a42ba9683af06f9166cef + name: 'Overview Azure MySQL Flexible Server' + pages: + - widgets: + - type: item + name: 'Memory utilization' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.memory.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'CPU credits consumed' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.cpu.credits.consumed + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Storage used' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.storage.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Network in' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.network.ingress + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections active' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.connections.active + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Percentage CPU' + x: '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.cpu.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'CPU credits remaining' + x: '12' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.cpu.credits.remaining + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Storage limit' + x: '12' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.storage.limit + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Network out' + x: '12' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.network.egress + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections total' + x: '12' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.connections.total + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Availability state' + x: '24' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.availability.state + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: up_color + value: FF0000 + - type: item + name: 'Backup storage used' + x: '24' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.storage.backup.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + name: 'Storage utilization' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + name: 'Azure MySQL: Storage utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Network traffic' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + name: 'Azure MySQL: Network traffic' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: Connections + x: '24' + 'y': '12' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + name: 'Azure MySQL: Connections' + - type: STRING + name: reference + value: AAAAC + - type: itemhistory + name: 'Availability status detailed' + x: '36' + width: '36' + height: '3' + fields: + - type: INTEGER + name: columns.0.display + value: '4' + - type: ITEM + name: columns.0.itemid + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.availability.details + - type: INTEGER + name: columns.0.monospace_font + value: '1' + - type: STRING + name: columns.0.name + value: 'Azure MySQL: Availability status detailed' + - type: STRING + name: reference + value: BAAAB + - type: INTEGER + name: show_timestamp + value: '1' + - type: item + name: Queries + x: '36' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.queries + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'IO consumption percent' + x: '48' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.io.consumption.percent + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'Replication lag' + x: '60' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.replication.lag + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + valuemaps: + - uuid: 4eec167b4d69441398b96b8e375d6825 + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown + graphs: + - uuid: 750ae48e6ef749c19a06f4bbe716f92f + name: 'Azure MySQL: Connections' + graph_items: + - color: 199C0D + item: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.connections.active + - sortorder: '1' + color: F63100 + item: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.connections.total + - sortorder: '2' + color: 00611C + item: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.connections.aborted + - uuid: f929f47602734f82a79f22a5f4446f61 + name: 'Azure MySQL: Network traffic' + graph_items: + - color: 199C0D + item: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.network.egress + - sortorder: '1' + color: F63100 + item: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.network.ingress + - uuid: 4210e6b4ed8744589dce88217e961a56 + name: 'Azure MySQL: Storage utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.storage.used + - sortorder: '1' + color: F63100 + item: + host: 'Azure MySQL Flexible Server by HTTP' + key: azure.db.mysql.storage.limit diff --git a/Azure_MySQL_Single_Server_by_HTTP.yaml b/Azure_MySQL_Single_Server_by_HTTP.yaml new file mode 100644 index 0000000..5b8832b --- /dev/null +++ b/Azure_MySQL_Single_Server_by_HTTP.yaml @@ -0,0 +1,1063 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: c1396bf1e8cf46f6a407e88ddceef0b8 + template: 'Azure MySQL Single Server by HTTP' + name: 'Azure MySQL Single Server by HTTP' + description: | + This template is designed to monitor Microsoft Azure MySQL single servers by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: c7771aa67d3c424490d8de2d6c2d609a + name: 'Availability status detailed' + type: DEPENDENT + key: azure.db.mysql.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'The summary description of the availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: health + - uuid: c325b977b26e4e00acc3ea8703895f05 + name: 'Availability state' + type: DEPENDENT + key: azure.db.mysql.availability.state + delay: '0' + description: 'The availability status of the resource.' + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 91a32645266547d78df3a70b44c7782b + expression: 'last(/Azure MySQL Single Server by HTTP/azure.db.mysql.availability.state)=1' + name: 'Azure MySQL Single: MySQL server is degraded' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: 852aba88476a40aeb2170b933726b7d8 + expression: 'last(/Azure MySQL Single Server by HTTP/azure.db.mysql.availability.state)=3' + name: 'Azure MySQL Single: MySQL server is in unknown state' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: 5f2d2254dfc24f5481207585bed0d933 + expression: 'last(/Azure MySQL Single Server by HTTP/azure.db.mysql.availability.state)=2' + name: 'Azure MySQL Single: MySQL server is unavailable' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: 69aba8caa6874c9d9423926a2ee78e99 + name: 'Connections active' + type: DEPENDENT + key: azure.db.mysql.connections.active + delay: '0' + value_type: FLOAT + description: 'The count of active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.active_connections.average + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: network + - uuid: e185b56984914507bc40c07c55153967 + name: 'Connections failed' + type: DEPENDENT + key: azure.db.mysql.connections.failed + delay: '0' + value_type: FLOAT + description: 'The count of failed connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.connections_failed.total + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: network + triggers: + - uuid: 5b3a09ca04704e6a9972ee4865d358cd + expression: 'min(/Azure MySQL Single Server by HTTP/azure.db.mysql.connections.failed,5m)>{$AZURE.DB.FAILED.CONN.MAX.WARN}' + name: 'Azure MySQL Single: Server has failed connections' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The number of failed attempts to connect to the MySQL server is more than `{$AZURE.DB.FAILED.CONN.MAX.WARN}`.' + tags: + - tag: scope + value: availability + - uuid: d0b5864a56094166b76fbc58a5e05c7c + name: 'Percentage CPU' + type: DEPENDENT + key: azure.db.mysql.cpu.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU percent of a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_percent.average + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 7115fb320e2b4cc1ad1739c8a6cee155 + expression: 'min(/Azure MySQL Single Server by HTTP/azure.db.mysql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT}' + name: 'Azure MySQL Single: High CPU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 2fc253a20100478d91cac13590a64bfc + name: 'Get errors' + type: DEPENDENT + key: azure.db.mysql.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: raw + triggers: + - uuid: df5fa33f8c13413bb9d61ea4470b9b2d + expression: 'length(last(/Azure MySQL Single Server by HTTP/azure.db.mysql.data.errors))>0' + name: 'Azure MySQL Single: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: cd62d92ef0384ea9acf0cae71c88ebc6 + name: 'Get data' + type: SCRIPT + key: azure.db.mysql.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AzureDB = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + AzureDB.params = params; + AzureDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(AzureDB.tls.options); + if (typeof AzureDB.params.proxy !== 'undefined' && AzureDB.params.proxy !== '') { + request.setProxy(AzureDB.params.proxy); + } + if (AzureDB.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + AzureDB.token); + } + + Zabbix.log(4, '[ Azure ] Sending request: ' + url); + + if (data !== '') { + request.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = request.post(url, data); + } + else { + response = request.get(url); + } + + Zabbix.log(4, '[ Azure ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + } + + }; + + var metrics = [ + 'cpu_percent', + 'memory_percent', + 'io_consumption_percent', + 'storage_percent', + 'storage_used', + 'storage_limit', + 'serverlog_storage_percent', + 'serverlog_storage_usage', + 'serverlog_storage_limit', + 'active_connections', + 'connections_failed', + 'seconds_behind_master', + 'backup_storage_used', + 'network_bytes_egress', + 'network_bytes_ingress' + ], + prepared_metrics = [], + data = {}; + data['errors'] = {}; + data['metrics'] = {}; + + try { + AzureDB.setParams(JSON.parse(value)); + + try { + result = AzureDB.request( + 'https://login.microsoftonline.com/' + encodeURIComponent(AzureDB.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(AzureDB.params.app_id) + '&client_secret=' + encodeURIComponent(AzureDB.params.password) + ); + + if ('access_token' in result) { + AzureDB.token = result['access_token']; + } else { + throw 'Auth response does not contain access token.'; + } + } + catch (error) { + data.errors.auth = error.toString(); + } + + if (!('auth' in data.errors)) { + try { + health = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'); + if ('value' in health && Array.isArray(health.value) && health.value.length > 0 && 'properties' in health.value[0] && typeof health.value[0].properties === 'object') { + data.health = health.value[0].properties; + } + } + catch (error) { + data.errors.health = error.toString(); + } + + for (var i = 0; i < metrics.length; i += 20) { + var chunk = metrics.slice(i, i + 20); + + prepared_metrics.push( + chunk.map(function (element) { + return encodeURIComponent(element); + }).join(',') + ); + } + + start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\.\d+/, ''); + end_date = new Date().toISOString().replace(/\.\d+/, ''); + + for (var j in prepared_metrics) { + try { + metrics_data = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.Insights/metrics?metricnames=' + prepared_metrics[j] + '×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date) + '&api-version=2021-05-01'); + if ('value' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) { + for (k in metrics_data.value) { + if ('name' in metrics_data.value[k] && typeof metrics_data.value[k].name === 'object' && 'value' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === 'string' && 'timeseries' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && 'data' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) { + data.metrics[metrics_data.value[k].name.value.replace(/(\s|\/)+/g, '')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1]; + } + } + } + } + catch (error) { + data.errors[prepared_metrics[j]] = error.toString(); + } + } + } + } + catch (error) { + data.errors.params = error.toString(); + } + + if (Object.keys(data.errors).length !== 0) { + errors = 'Failed to receive data:'; + for (var error in data.errors) { + errors += '\n' + error + ' : ' + data.errors[error]; + } + data.errors = errors; + } + else { + data.errors = ''; + } + + return JSON.stringify(data); + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure MySQL Single Server"}' + tags: + - tag: component + value: raw + - uuid: a17c365253eb4821841ec82ac8f61106 + name: 'IO consumption percent' + type: DEPENDENT + key: azure.db.mysql.io.consumption.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The consumption percent of I/O.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.io_consumption_percent.average + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: operations + - uuid: 5c19c08912634993b1f96fb11e5d1ae2 + name: 'Memory utilization' + type: DEPENDENT + key: azure.db.mysql.memory.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The memory percent of a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.memory_percent.average + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: memory + triggers: + - uuid: a67b35f1ac674d6692b0b2bcd6f89bd8 + expression: 'min(/Azure MySQL Single Server by HTTP/azure.db.mysql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT}' + name: 'Azure MySQL Single: High memory utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: fe1b9846a634412aaa6a76fc05dbe46a + name: 'Network out' + type: DEPENDENT + key: azure.db.mysql.network.egress + delay: '0' + value_type: FLOAT + units: bps + description: 'The network outbound traffic across the active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.network_bytes_egress.total + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0088' + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: network + - uuid: 1cc97817bda5470887e3d5d9f2d78650 + name: 'Network in' + type: DEPENDENT + key: azure.db.mysql.network.ingress + delay: '0' + value_type: FLOAT + units: bps + description: 'The network inbound traffic across the active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.network_bytes_ingress.total + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0088' + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: network + - uuid: 8e60794282ea42c7bad1573811b2e498 + name: 'Replication lag' + type: DEPENDENT + key: azure.db.mysql.replication.lag + delay: '0' + value_type: FLOAT + units: s + description: 'The replication lag, expressed in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.seconds_behind_master.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: replication + - uuid: 1303a659d17a4e4fa9fa03cef35fef5a + name: 'Backup storage used' + type: DEPENDENT + key: azure.db.mysql.storage.backup.used + delay: '0' + value_type: FLOAT + units: B + description: 'Used backup storage, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.backup_storage_used.average + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + - uuid: 4aed6d0c01d1458fbd1f7c7ea5386303 + name: 'Storage limit' + type: DEPENDENT + key: azure.db.mysql.storage.limit + delay: '0' + value_type: FLOAT + units: B + description: 'The storage limit, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_limit.maximum + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + - uuid: 5b1b350be6f0409fb7ab842571c3f086 + name: 'Storage percent' + type: DEPENDENT + key: azure.db.mysql.storage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The storage utilization, expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_percent.average + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + triggers: + - uuid: 3afcb840e8004822a2dada2a89971f69 + expression: 'last(/Azure MySQL Single Server by HTTP/azure.db.mysql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT}' + name: 'Azure MySQL Single: Storage space is critically low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Critical utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: 2e605f906b284f769e7c880d4e642b43 + expression: 'last(/Azure MySQL Single Server by HTTP/azure.db.mysql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN}' + name: 'Azure MySQL Single: Storage space is low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'High utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: 7f553d8a0898477b87a2828e51efcfcc + name: 'Server log storage limit' + type: DEPENDENT + key: azure.db.mysql.storage.server.log.limit + delay: '0' + value_type: FLOAT + units: B + description: 'The storage limit of server log, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.serverlog_storage_limit.maximum + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + - uuid: cf5a77306c554a24b3741ef065b6d27a + name: 'Server log storage percent' + type: DEPENDENT + key: azure.db.mysql.storage.server.log.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The storage utilization by server log, expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.serverlog_storage_percent.average + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + - uuid: 8ed99a951e264185b1e0f343d7ea0aec + name: 'Server log storage used' + type: DEPENDENT + key: azure.db.mysql.storage.server.log.used + delay: '0' + value_type: FLOAT + units: B + description: 'The storage space used by server log, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.serverlog_storage_usage.average + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + - uuid: 0c9a5496d9884c8e9a434fb232b3208f + name: 'Storage used' + type: DEPENDENT + key: azure.db.mysql.storage.used + delay: '0' + value_type: FLOAT + units: B + description: 'Used storage space, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_used.average + master_item: + key: azure.db.mysql.data.get + tags: + - tag: component + value: storage + tags: + - tag: class + value: software + - tag: target + value: azure + - tag: target + value: mysql + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.DB.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of CPU utilization, expressed in %.' + - macro: '{$AZURE.DB.FAILED.CONN.MAX.WARN}' + value: '25' + description: 'The number of failed attempts to connect to the MySQL server for trigger expression.' + - macro: '{$AZURE.DB.MEMORY.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of memory utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.CRIT}' + value: '90' + description: 'The critical threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.WARN}' + value: '80' + description: 'The warning threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure MySQL server ID.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure MySQL Single Server", e.g. {$HTTP.TLS.VERIFY:"Azure MySQL Single Server"}.' + dashboards: + - uuid: 8760f5409fbd488d8b8e8ba24d9077ae + name: 'Overview Azure MySQL Single Server' + pages: + - widgets: + - type: item + name: 'Memory utilization' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.memory.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'Network in' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.network.ingress + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Server log storage limit' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.storage.server.log.limit + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Storage limit' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.storage.limit + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections active' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.connections.active + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Percentage CPU' + x: '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.cpu.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'Network out' + x: '12' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.network.egress + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Server log storage used' + x: '12' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.storage.server.log.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Storage used' + x: '12' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.storage.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections failed' + x: '12' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.connections.failed + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Availability state' + x: '24' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.availability.state + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: up_color + value: FF0000 + - type: graph + name: 'Network traffic' + x: '24' + 'y': '3' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + name: 'Azure MySQL: Network traffic' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Server log storage utilization' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + name: 'Azure MySQL: Server log storage utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: 'Storage utilization' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + name: 'Azure MySQL: Storage utilization' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Connections + x: '24' + 'y': '12' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure MySQL Single Server by HTTP' + name: 'Azure MySQL: Connections' + - type: STRING + name: reference + value: AAAAD + - type: itemhistory + name: 'Availability status detailed' + x: '36' + width: '36' + height: '3' + fields: + - type: INTEGER + name: columns.0.display + value: '4' + - type: ITEM + name: columns.0.itemid + value: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.availability.details + - type: INTEGER + name: columns.0.monospace_font + value: '1' + - type: STRING + name: columns.0.name + value: 'Azure MySQL: Availability status detailed' + - type: STRING + name: reference + value: BAAAC + - type: INTEGER + name: show_timestamp + value: '1' + valuemaps: + - uuid: 323a5259fb854724891515767f341540 + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown + graphs: + - uuid: 360a24b56be74cf48df3135008437824 + name: 'Azure MySQL: Connections' + graph_items: + - color: 199C0D + item: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.connections.active + - sortorder: '1' + color: F63100 + item: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.connections.failed + - uuid: dc6840162405481ebc1c3c98fdfcaef1 + name: 'Azure MySQL: Network traffic' + graph_items: + - color: 199C0D + item: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.network.egress + - sortorder: '1' + color: F63100 + item: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.network.ingress + - uuid: 3fcf43fd338e4902874d940fc0bec8b9 + name: 'Azure MySQL: Server log storage utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.storage.server.log.used + - sortorder: '1' + color: F63100 + item: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.storage.server.log.limit + - uuid: bdc178e6faaa4850badc0c60c7c80d40 + name: 'Azure MySQL: Storage utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.storage.used + - sortorder: '1' + color: F63100 + item: + host: 'Azure MySQL Single Server by HTTP' + key: azure.db.mysql.storage.limit diff --git a/Azure_PostgreSQL_Flexible_Server_by_HTTP.yaml b/Azure_PostgreSQL_Flexible_Server_by_HTTP.yaml new file mode 100644 index 0000000..83628bc --- /dev/null +++ b/Azure_PostgreSQL_Flexible_Server_by_HTTP.yaml @@ -0,0 +1,1216 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 35ef29f24158444097272d2ea7fa6044 + template: 'Azure PostgreSQL Flexible Server by HTTP' + name: 'Azure PostgreSQL Flexible Server by HTTP' + description: | + This template is designed to monitor Microsoft Azure PostgreSQL flexible servers by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 7f7deae517e54cf582ae758a6988037b + name: 'Availability status detailed' + type: DEPENDENT + key: azure.db.pgsql.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'The summary description of the availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: health + - uuid: cd9072a3895c42dab794707f3bcaf743 + name: 'Availability state' + type: DEPENDENT + key: azure.db.pgsql.availability.state + delay: '0' + description: 'The availability status of the resource.' + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 65b5c39b48e248c4866c511bbba91e1b + expression: 'last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=1' + name: 'Azure PostgreSQL Flexible: PostgreSQL server is degraded' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: d8ce86c853064cba80c9883052ed1403 + expression: 'last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=3' + name: 'Azure PostgreSQL Flexible: PostgreSQL server is in unknown state' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: 9572c9e56a6b44368bcf2d8a17a220d8 + expression: 'last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=2' + name: 'Azure PostgreSQL Flexible: PostgreSQL server is unavailable' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: 05ada75c666e45269c3c36159f9902cc + name: 'Connections active' + type: DEPENDENT + key: azure.db.pgsql.connections.active + delay: '0' + value_type: FLOAT + description: 'The count of active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.active_connections.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: network + - uuid: 00d1116141874dbfb204ebfe96c203f1 + name: 'Connections failed' + type: DEPENDENT + key: azure.db.pgsql.connections.failed + delay: '0' + value_type: FLOAT + description: 'The count of failed connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.connections_failed.total + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: network + - uuid: f422f01bf1c9484e880581f31f70e120 + name: 'Connections succeeded' + type: DEPENDENT + key: azure.db.pgsql.connections.succeeded + delay: '0' + value_type: FLOAT + description: 'The count of succeeded connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.connections_succeeded.total + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: network + - uuid: 1f1270c6981b4d08864572410fdeccde + name: 'CPU credits consumed' + type: DEPENDENT + key: azure.db.pgsql.cpu.credits.consumed + delay: '0' + value_type: FLOAT + description: 'The total number of credits consumed by the database server.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_credits_consumed.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: cpu + - uuid: e55082c4a278435286335cebd2ae1cac + name: 'CPU credits remaining' + type: DEPENDENT + key: azure.db.pgsql.cpu.credits.remaining + delay: '0' + value_type: FLOAT + description: 'The total number of credits available to burst.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_credits_remaining.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: cpu + - uuid: 8d85c5c73c894cdda6324832a703fea2 + name: 'Percentage CPU' + type: DEPENDENT + key: azure.db.pgsql.cpu.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU percent of a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_percent.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: f8672e4488b740a9a17395689c3d853c + expression: 'min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT}' + name: 'Azure PostgreSQL Flexible: High CPU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 06c4226667ec4c4489e6d3ad31c3135f + name: 'Get errors' + type: DEPENDENT + key: azure.db.pgsql.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: raw + triggers: + - uuid: 55962f0d8a4c44c9a6b09da705e94c59 + expression: 'length(last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.data.errors))>0' + name: 'Azure PostgreSQL Flexible: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: 1792c0566e8a438dad5e299d8f5b9094 + name: 'Get data' + type: SCRIPT + key: azure.db.pgsql.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AzureDB = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + AzureDB.params = params; + AzureDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(AzureDB.tls.options); + if (typeof AzureDB.params.proxy !== 'undefined' && AzureDB.params.proxy !== '') { + request.setProxy(AzureDB.params.proxy); + } + if (AzureDB.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + AzureDB.token); + } + + Zabbix.log(4, '[ Azure ] Sending request: ' + url); + + if (data !== '') { + request.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = request.post(url, data); + } + else { + response = request.get(url); + } + + Zabbix.log(4, '[ Azure ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + } + + }; + + var metrics = [ + 'cpu_percent', + 'memory_percent', + 'iops', + 'disk_queue_depth', + 'read_throughput', + 'write_throughput', + 'read_iops', + 'write_iops', + 'network_bytes_egress', + 'network_bytes_ingress', + 'active_connections', + 'connections_failed', + 'connections_succeeded', + 'storage_percent', + 'storage_used', + 'storage_free', + 'txlogs_storage_used', + 'backup_storage_used', + 'maximum_used_transactionIDs', + 'cpu_credits_remaining', + 'cpu_credits_consumed' + ], + prepared_metrics = [], + data = {}; + data['errors'] = {}; + data['metrics'] = {}; + + try { + AzureDB.setParams(JSON.parse(value)); + + try { + result = AzureDB.request( + 'https://login.microsoftonline.com/' + encodeURIComponent(AzureDB.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(AzureDB.params.app_id) + '&client_secret=' + encodeURIComponent(AzureDB.params.password) + ); + + if ('access_token' in result) { + AzureDB.token = result['access_token']; + } else { + throw 'Auth response does not contain access token.'; + } + } + catch (error) { + data.errors.auth = error.toString(); + } + + if (!('auth' in data.errors)) { + try { + health = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'); + if ('value' in health && Array.isArray(health.value) && health.value.length > 0 && 'properties' in health.value[0] && typeof health.value[0].properties === 'object') { + data.health = health.value[0].properties; + } + } + catch (error) { + data.errors.health = error.toString(); + } + + for (var i = 0; i < metrics.length; i += 20) { + var chunk = metrics.slice(i, i + 20); + + prepared_metrics.push( + chunk.map(function (element) { + return encodeURIComponent(element); + }).join(',') + ); + } + + start_date = new Date((new Date().getTime()) - 600000).toISOString().replace(/\.\d+/, ''); + end_date = new Date().toISOString().replace(/\.\d+/, ''); + + for (var j in prepared_metrics) { + try { + metrics_data = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.Insights/metrics?metricnames=' + prepared_metrics[j] + '×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date) + '&api-version=2021-05-01'); + if ('value' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) { + for (k in metrics_data.value) { + if ('name' in metrics_data.value[k] && typeof metrics_data.value[k].name === 'object' && 'value' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === 'string' && 'timeseries' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && 'data' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) { + if (metrics_data.value[k].name.value === 'disk_queue_depth' || + metrics_data.value[k].name.value === 'read_throughput' || + metrics_data.value[k].name.value === 'write_throughput' || + metrics_data.value[k].name.value === 'read_iops' || + metrics_data.value[k].name.value === 'write_iops') { + data.metrics[metrics_data.value[k].name.value.replace(/(\s|\/)+/g, '')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 6]; + } else { + data.metrics[metrics_data.value[k].name.value.replace(/(\s|\/)+/g, '')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1]; + } + } + } + } + } + catch (error) { + data.errors[prepared_metrics[j]] = error.toString(); + } + } + } + } + catch (error) { + data.errors.params = error.toString(); + } + + if (Object.keys(data.errors).length !== 0) { + errors = 'Failed to receive data:'; + for (var error in data.errors) { + errors += '\n' + error + ' : ' + data.errors[error]; + } + data.errors = errors; + } + else { + data.errors = ''; + } + + return JSON.stringify(data); + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure PostgreSQL Flexible Server"}' + tags: + - tag: component + value: raw + - uuid: 9fc7a458995d4ac8a4c1d8550177471d + name: 'Data disk read Bps' + type: DEPENDENT + key: azure.db.pgsql.disk.bps.read + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes read per second from the data disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.read_throughput.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: 46c500b44164430c952be3a1b2008fb8 + name: 'Data disk write Bps' + type: DEPENDENT + key: azure.db.pgsql.disk.bps.write + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes written per second to the data disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.write_throughput.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: b8812461d49a4ff5a2177c2990969c38 + name: 'Data disk queue depth' + type: DEPENDENT + key: azure.db.pgsql.disk.queue.depth + delay: '0' + value_type: FLOAT + description: 'The number of outstanding I/O operations to the data disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.disk_queue_depth.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: 10dd8ed658d8442ca39ac1decf9bc2f8 + name: 'Data disk IOPS' + type: DEPENDENT + key: azure.db.pgsql.iops + delay: '0' + value_type: FLOAT + units: '!ops' + description: 'I/O operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.iops.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: dee65b110a4842ccba8e74eefc097304 + name: 'Data disk read IOPS' + type: DEPENDENT + key: azure.db.pgsql.iops.read + delay: '0' + value_type: FLOAT + units: '!ops' + description: 'The number of the data disk I/O read operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.read_iops.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: 805dfa040c0a4700acac4b5b1f8a4d11 + name: 'Data disk write IOPS' + type: DEPENDENT + key: azure.db.pgsql.iops.write + delay: '0' + value_type: FLOAT + units: '!ops' + description: 'The number of the data disk I/O write operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.write_iops.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: d1d909c2dd0d42649094ec8339e08881 + name: 'Memory utilization' + type: DEPENDENT + key: azure.db.pgsql.memory.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The memory percent of a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.memory_percent.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: memory + triggers: + - uuid: aac52a89709044ed987a365a1d5af17b + expression: 'min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT}' + name: 'Azure PostgreSQL Flexible: High memory utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: 040898e15a26455a9992c603ca2d45df + name: 'Network out' + type: DEPENDENT + key: azure.db.pgsql.network.egress + delay: '0' + value_type: FLOAT + units: bps + description: 'The network outbound traffic across the active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.network_bytes_egress.total + - type: MULTIPLIER + parameters: + - '0.1333' + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: network + - uuid: 8e398d8b33444a148760ec33622755a6 + name: 'Network in' + type: DEPENDENT + key: azure.db.pgsql.network.ingress + delay: '0' + value_type: FLOAT + units: bps + description: 'The network inbound traffic across the active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.network_bytes_ingress.total + - type: MULTIPLIER + parameters: + - '0.1333' + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: network + - uuid: ebebf8b3a2884576abb250fdc2385c6f + name: 'Backup storage used' + type: DEPENDENT + key: azure.db.pgsql.storage.backup.used + delay: '0' + value_type: FLOAT + units: B + description: 'Used backup storage, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.backup_storage_used.average + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: 9bbfba89a1834798b71260536fedab55 + name: 'Storage free' + type: DEPENDENT + key: azure.db.pgsql.storage.free + delay: '0' + value_type: FLOAT + units: B + description: 'Free storage space, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_free.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: d9d97e728d1741568fce925c0fca33a8 + name: 'Storage percent' + type: DEPENDENT + key: azure.db.pgsql.storage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The storage utilization, expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_percent.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + triggers: + - uuid: de3142bed28340d9abe518cd3967b024 + expression: 'last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT}' + name: 'Azure PostgreSQL Flexible: Storage space is critically low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Critical utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: e948600affaa4ff4a0ab4e50f4858c0a + expression: 'last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN}' + name: 'Azure PostgreSQL Flexible: Storage space is low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'High utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: 4dae6c2c1dbf4492a73fd1834cae6aad + name: 'Transaction log storage used' + type: DEPENDENT + key: azure.db.pgsql.storage.txlogs.used + delay: '0' + value_type: FLOAT + units: B + description: 'The storage space used by transaction log, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.txlogs_storage_used.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: 7a85b5223ec44ff8bc996c9df1673611 + name: 'Storage used' + type: DEPENDENT + key: azure.db.pgsql.storage.used + delay: '0' + value_type: FLOAT + units: B + description: 'Used storage space, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_used.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: 6df77ed1d4614ca793df56dbc70d821c + name: 'Maximum used transaction IDs' + type: DEPENDENT + key: azure.db.pgsql.txid.used.max + delay: '0' + value_type: FLOAT + description: 'The maximum number of used transaction IDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.maximum_used_transactionIDs.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + tags: + - tag: class + value: software + - tag: target + value: azure + - tag: target + value: postgresql + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.DB.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of CPU utilization, expressed in %.' + - macro: '{$AZURE.DB.MEMORY.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of memory utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.CRIT}' + value: '90' + description: 'The critical threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.WARN}' + value: '80' + description: 'The warning threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure PostgreSQL server ID.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure PostgreSQL Flexible Server", e.g. {$HTTP.TLS.VERIFY:"Azure PostgreSQL Flexible Server"}.' + dashboards: + - uuid: 89588d831e7348b6b41b47a2cca79190 + name: 'Overview Azure PostgreSQL Flexible Server' + pages: + - widgets: + - type: item + name: 'Memory utilization' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.memory.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'Data disk queue depth' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.disk.queue.depth + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Storage free' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.storage.free + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Network in' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.network.ingress + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections active' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.connections.active + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Percentage CPU' + x: '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.cpu.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'Data disk IOPS' + x: '12' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.iops + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Storage used' + x: '12' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.storage.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Network out' + x: '12' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.network.egress + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections failed' + x: '12' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.connections.failed + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Availability state' + x: '24' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.availability.state + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: up_color + value: FF0000 + - type: item + name: 'Data disk read IOPS' + x: '24' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.iops.read + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + name: 'Storage utilization' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + name: 'Azure PostgreSQL: Storage utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Network traffic' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + name: 'Azure PostgreSQL: Network traffic' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: Connections + x: '24' + 'y': '12' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + name: 'Azure PostgreSQL: Connections' + - type: STRING + name: reference + value: AAAAC + - type: itemhistory + name: 'Availability status detailed' + x: '36' + width: '36' + height: '3' + fields: + - type: INTEGER + name: columns.0.display + value: '4' + - type: ITEM + name: columns.0.itemid + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.availability.details + - type: INTEGER + name: columns.0.monospace_font + value: '1' + - type: STRING + name: columns.0.name + value: 'Azure PostgreSQL: Availability status detailed' + - type: STRING + name: reference + value: BAAAD + - type: INTEGER + name: show_timestamp + value: '1' + - type: item + name: 'Data disk write IOPS' + x: '36' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.iops.write + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Data disk read Bps' + x: '48' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.disk.bps.read + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Data disk write Bps' + x: '60' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.disk.bps.write + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + valuemaps: + - uuid: f208cf6141c44659a2c6904ec4cd7ac3 + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown + graphs: + - uuid: 2b60e8b1fd7c43f4ac61812e43c0e1ca + name: 'Azure PostgreSQL: Connections' + graph_items: + - color: 199C0D + item: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.connections.active + - sortorder: '1' + color: F63100 + item: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.connections.succeeded + - sortorder: '2' + color: 00611C + item: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.connections.failed + - uuid: a4679d243b574bea84397c980723c68b + name: 'Azure PostgreSQL: Network traffic' + graph_items: + - color: 199C0D + item: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.network.egress + - sortorder: '1' + color: F63100 + item: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.network.ingress + - uuid: 5fa13cfbdd784475818fae06ff94f879 + name: 'Azure PostgreSQL: Storage utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.storage.used + - sortorder: '1' + color: F63100 + item: + host: 'Azure PostgreSQL Flexible Server by HTTP' + key: azure.db.pgsql.storage.free diff --git a/Azure_PostgreSQL_Single_Server_by_HTTP.yaml b/Azure_PostgreSQL_Single_Server_by_HTTP.yaml new file mode 100644 index 0000000..4ba1bf7 --- /dev/null +++ b/Azure_PostgreSQL_Single_Server_by_HTTP.yaml @@ -0,0 +1,1069 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: d023e2cd326c486f908e3e361d1fe157 + template: 'Azure PostgreSQL Single Server by HTTP' + name: 'Azure PostgreSQL Single Server by HTTP' + description: | + This template is designed to monitor Microsoft Azure PostgreSQL servers by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 9eb43a5ffb0d4e07be8d1fccfdecd2aa + name: 'Availability status detailed' + type: DEPENDENT + key: azure.db.pgsql.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'The summary description of the availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: health + - uuid: df4c66646f864f79b5f5e9f71dbefe82 + name: 'Availability state' + type: DEPENDENT + key: azure.db.pgsql.availability.state + delay: '0' + description: 'The availability status of the resource.' + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 699ca12c916746b1bf1e121261771cc3 + expression: 'last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=1' + name: 'Azure PostgreSQL Single: PostgreSQL server is degraded' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: 14e45ba0bc26409a89d92edfda152947 + expression: 'last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=3' + name: 'Azure PostgreSQL Single: PostgreSQL server is in unknown state' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: 4dc9113f8a914ac098d8736dba5aed4a + expression: 'last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=2' + name: 'Azure PostgreSQL Single: PostgreSQL server is unavailable' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: 3d0d3e1fe77740e4bd7b720368707214 + name: 'Connections active' + type: DEPENDENT + key: azure.db.pgsql.connections.active + delay: '0' + value_type: FLOAT + description: 'The count of active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.active_connections.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: network + - uuid: 353a6ba543a84b32b16a5809ae63b4e1 + name: 'Connections failed' + type: DEPENDENT + key: azure.db.pgsql.connections.failed + delay: '0' + value_type: FLOAT + description: 'The count of failed connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.connections_failed.total + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: network + - uuid: 537330b2372b434ebcea8a77a809c2f3 + name: 'Percentage CPU' + type: DEPENDENT + key: azure.db.pgsql.cpu.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU percent of a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cpu_percent.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 33bd2ef88ad3468b9f0b2b1358cc7448 + expression: 'min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT}' + name: 'Azure PostgreSQL Single: High CPU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 5b132ff050c94daa92b252529a52c535 + name: 'Get errors' + type: DEPENDENT + key: azure.db.pgsql.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: raw + triggers: + - uuid: dd3d0be997204f8b9968ef5839fb7a9b + expression: 'length(last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.data.errors))>0' + name: 'Azure PostgreSQL Single: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: e47d863822e64e6292bfa3e684bc2839 + name: 'Get data' + type: SCRIPT + key: azure.db.pgsql.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AzureDB = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + AzureDB.params = params; + AzureDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(AzureDB.tls.options); + if (typeof AzureDB.params.proxy !== 'undefined' && AzureDB.params.proxy !== '') { + request.setProxy(AzureDB.params.proxy); + } + if (AzureDB.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + AzureDB.token); + } + + Zabbix.log(4, '[ Azure ] Sending request: ' + url); + + if (data !== '') { + request.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = request.post(url, data); + } + else { + response = request.get(url); + } + + Zabbix.log(4, '[ Azure ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + } + + }; + + var metrics = [ + 'cpu_percent', + 'memory_percent', + 'io_consumption_percent', + 'storage_percent', + 'storage_used', + 'storage_limit', + 'serverlog_storage_percent', + 'serverlog_storage_usage', + 'serverlog_storage_limit', + 'active_connections', + 'connections_failed', + 'backup_storage_used', + 'network_bytes_egress', + 'network_bytes_ingress', + 'pg_replica_log_delay_in_seconds', + 'pg_replica_log_delay_in_bytes' + ], + prepared_metrics = [], + data = {}; + data['errors'] = {}; + data['metrics'] = {}; + + try { + AzureDB.setParams(JSON.parse(value)); + + try { + result = AzureDB.request( + 'https://login.microsoftonline.com/' + encodeURIComponent(AzureDB.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(AzureDB.params.app_id) + '&client_secret=' + encodeURIComponent(AzureDB.params.password) + ); + + if ('access_token' in result) { + AzureDB.token = result['access_token']; + } else { + throw 'Auth response does not contain access token.'; + } + } + catch (error) { + data.errors.auth = error.toString(); + } + + if (!('auth' in data.errors)) { + try { + health = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'); + if ('value' in health && Array.isArray(health.value) && health.value.length > 0 && 'properties' in health.value[0] && typeof health.value[0].properties === 'object') { + data.health = health.value[0].properties; + } + } + catch (error) { + data.errors.health = error.toString(); + } + + for (var i = 0; i < metrics.length; i += 20) { + var chunk = metrics.slice(i, i + 20); + + prepared_metrics.push( + chunk.map(function (element) { + return encodeURIComponent(element); + }).join(',') + ); + } + + start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\.\d+/, ''); + end_date = new Date().toISOString().replace(/\.\d+/, ''); + + for (var j in prepared_metrics) { + try { + metrics_data = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.Insights/metrics?metricnames=' + prepared_metrics[j] + '×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date) + '&api-version=2021-05-01'); + if ('value' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) { + for (k in metrics_data.value) { + if ('name' in metrics_data.value[k] && typeof metrics_data.value[k].name === 'object' && 'value' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === 'string' && 'timeseries' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && 'data' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) { + data.metrics[metrics_data.value[k].name.value.replace(/(\s|\/)+/g, '')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1]; + } + } + } + } + catch (error) { + data.errors[prepared_metrics[j]] = error.toString(); + } + } + } + } + catch (error) { + data.errors.params = error.toString(); + } + + if (Object.keys(data.errors).length !== 0) { + errors = 'Failed to receive data:'; + for (var error in data.errors) { + errors += '\n' + error + ' : ' + data.errors[error]; + } + data.errors = errors; + } + else { + data.errors = ''; + } + + return JSON.stringify(data); + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure PostgreSQL Single Server"}' + tags: + - tag: component + value: raw + - uuid: 9eade85c49bc462aab33b03e37581d87 + name: 'IO consumption percent' + type: DEPENDENT + key: azure.db.pgsql.io.consumption.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The consumption percent of I/O.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.io_consumption_percent.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: operations + - uuid: e2ee4882b08f45788e6abb698265810e + name: 'Memory utilization' + type: DEPENDENT + key: azure.db.pgsql.memory.percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'The memory percent of a host.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.memory_percent.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: memory + triggers: + - uuid: 3119f21167a546369c05d31cda2e0147 + expression: 'min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT}' + name: 'Azure PostgreSQL Single: High memory utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: f81eeb98d5e942f296c360ff71e8bf8d + name: 'Network out' + type: DEPENDENT + key: azure.db.pgsql.network.egress + delay: '0' + value_type: FLOAT + units: bps + description: 'The network outbound traffic across the active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.network_bytes_egress.total + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.1333' + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: network + - uuid: 51f7e35042d04ddb88c7703d1b015d3b + name: 'Network in' + type: DEPENDENT + key: azure.db.pgsql.network.ingress + delay: '0' + value_type: FLOAT + units: bps + description: 'The network inbound traffic across the active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.network_bytes_ingress.total + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.1333' + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: network + - uuid: 1db9e470b527476fae1d26d4b67f855b + name: 'Replication lag' + type: DEPENDENT + key: azure.db.pgsql.replica.log.delay + delay: '0' + value_type: FLOAT + units: s + description: 'The replication lag, expressed in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.pg_replica_log_delay_in_seconds.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: replication + - uuid: 6cdfda8f9e6640f8a8536f88729d75d6 + name: 'Max lag across replicas in bytes' + type: DEPENDENT + key: azure.db.pgsql.replica.log.delay.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Lag for the most lagging replica, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.pg_replica_log_delay_in_bytes.maximum + error_handler: DISCARD_VALUE + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: replication + - uuid: 6b06fb0e008640839dc3cda5bcc3f91a + name: 'Backup storage used' + type: DEPENDENT + key: azure.db.pgsql.storage.backup.used + delay: '0' + value_type: FLOAT + units: B + description: 'Used backup storage, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.backup_storage_used.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: b8d5ac0b049a4d73b2f35f59c7e7609c + name: 'Storage limit' + type: DEPENDENT + key: azure.db.pgsql.storage.limit + delay: '0' + value_type: FLOAT + units: B + description: 'The storage limit, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_limit.maximum + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: 750b4d3438614cc992694136d309c3cb + name: 'Storage percent' + type: DEPENDENT + key: azure.db.pgsql.storage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The storage utilization, expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_percent.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + triggers: + - uuid: 6538d2c8ed774feb951204308f1458ce + expression: 'last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT}' + name: 'Azure PostgreSQL Single: Storage space is critically low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Critical utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: 7f7a004cfc2a492092dd74c475888e8b + expression: 'last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN}' + name: 'Azure PostgreSQL Single: Storage space is low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'High utilization of the storage space.' + tags: + - tag: scope + value: capacity + - uuid: 399ef67426494a5cb7a820d056dfd4d5 + name: 'Server log storage limit' + type: DEPENDENT + key: azure.db.pgsql.storage.server.log.limit + delay: '0' + value_type: FLOAT + units: B + description: 'The storage limit of server log, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.serverlog_storage_limit.maximum + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: ef6890330ebe4fe09f46b0d2f6d3f827 + name: 'Server log storage percent' + type: DEPENDENT + key: azure.db.pgsql.storage.server.log.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The storage utilization by server log, expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.serverlog_storage_percent.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: 36bd10a959964083ae47349dd83ec695 + name: 'Server log storage used' + type: DEPENDENT + key: azure.db.pgsql.storage.server.log.used + delay: '0' + value_type: FLOAT + units: B + description: 'The storage space used by server log, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.serverlog_storage_usage.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + - uuid: dcbb87d442a04938b23e68f739f1e36f + name: 'Storage used' + type: DEPENDENT + key: azure.db.pgsql.storage.used + delay: '0' + value_type: FLOAT + units: B + description: 'Used storage space, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_used.average + master_item: + key: azure.db.pgsql.data.get + tags: + - tag: component + value: storage + tags: + - tag: class + value: software + - tag: target + value: azure + - tag: target + value: postgresql + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.DB.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of CPU utilization, expressed in %.' + - macro: '{$AZURE.DB.MEMORY.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of memory utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.CRIT}' + value: '90' + description: 'The critical threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.DB.STORAGE.PUSED.WARN}' + value: '80' + description: 'The warning threshold of storage utilization, expressed in %.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure PostgreSQL server ID.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure PostgreSQL Single Server", e.g. {$HTTP.TLS.VERIFY:"Azure PostgreSQL Single Server"}.' + dashboards: + - uuid: 9ef73571560743379fa0b4929370e1b4 + name: 'Overview Azure PostgreSQL Single Server' + pages: + - widgets: + - type: item + name: 'Memory utilization' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.memory.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'Network in' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.network.ingress + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Server log storage limit' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.storage.server.log.limit + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Storage limit' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.storage.limit + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections active' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.connections.active + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Percentage CPU' + x: '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.cpu.percentage + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: '%' + - type: item + name: 'Network out' + x: '12' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.network.egress + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Server log storage used' + x: '12' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.storage.server.log.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Storage used' + x: '12' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.storage.used + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Connections failed' + x: '12' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.connections.failed + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Availability state' + x: '24' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.availability.state + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: up_color + value: FF0000 + - type: graph + name: 'Network traffic' + x: '24' + 'y': '3' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + name: 'Azure PostgreSQL: Network traffic' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Server log storage utilization' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + name: 'Azure PostgreSQL: Server log storage utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: 'Storage utilization' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + name: 'Azure PostgreSQL: Storage utilization' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: Connections + x: '24' + 'y': '12' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure PostgreSQL Single Server by HTTP' + name: 'Azure PostgreSQL: Connections' + - type: STRING + name: reference + value: AAAAD + - type: itemhistory + name: 'Availability status detailed' + x: '36' + width: '36' + height: '3' + fields: + - type: INTEGER + name: columns.0.display + value: '4' + - type: ITEM + name: columns.0.itemid + value: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.availability.details + - type: INTEGER + name: columns.0.monospace_font + value: '1' + - type: STRING + name: columns.0.name + value: 'Azure PostgreSQL: Availability status detailed' + - type: STRING + name: reference + value: BAAAE + - type: INTEGER + name: show_timestamp + value: '1' + valuemaps: + - uuid: 61fc206aaae04abda4012e031f0e27ac + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown + graphs: + - uuid: c76cf8ec6a584af6be815ec4a9257a8c + name: 'Azure PostgreSQL: Connections' + graph_items: + - color: 199C0D + item: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.connections.active + - sortorder: '1' + color: F63100 + item: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.connections.failed + - uuid: 8bc17d843775414ea971e640e1fe5ec0 + name: 'Azure PostgreSQL: Network traffic' + graph_items: + - color: 199C0D + item: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.network.egress + - sortorder: '1' + color: F63100 + item: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.network.ingress + - uuid: 9e750a5a462b4429ac5a36a72bd60c66 + name: 'Azure PostgreSQL: Server log storage utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.storage.server.log.used + - sortorder: '1' + color: F63100 + item: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.storage.server.log.limit + - uuid: 9ecd071a77364c4486fa5f63125cd985 + name: 'Azure PostgreSQL: Storage utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.storage.used + - sortorder: '1' + color: F63100 + item: + host: 'Azure PostgreSQL Single Server by HTTP' + key: azure.db.pgsql.storage.limit diff --git a/Azure_SQL_Managed_Instance_by_HTTP.yaml b/Azure_SQL_Managed_Instance_by_HTTP.yaml new file mode 100644 index 0000000..da7072f --- /dev/null +++ b/Azure_SQL_Managed_Instance_by_HTTP.yaml @@ -0,0 +1,1082 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: a93f57ccc68e442da79bf4a20fe46570 + template: 'Azure SQL Managed Instance by HTTP' + name: 'Azure SQL Managed Instance by HTTP' + description: | + This template is designed to monitor Azure SQL Managed Instance by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Cloud + items: + - uuid: dd047204951f449496ab9b4938dd0a3a + name: 'Availability status detailed' + type: DEPENDENT + key: azure.sql_inst.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'The summary description of the availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: health + - uuid: be4a868809374a80a9ed3150e098f470 + name: 'Availability state' + type: DEPENDENT + key: azure.sql_inst.availability.state + delay: '0' + description: | + The availability status of the resource. + 0 - Available - no events detected that affect the health of the resource. + 1 - Degraded - your resource detected a loss in performance, although it's still available for use. + 2 - Unavailable - the service detected an ongoing platform or non-platform event that affects the health of the resource. + 3 - Unknown - Resource Health hasn't received information about the resource for more than 10 minutes. + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 68d6f9d594f64579a7c6be464e126629 + expression: 'last(/Azure SQL Managed Instance by HTTP/azure.sql_inst.availability.state)=1' + name: 'Azure SQL instance: Azure SQL managed instance is degraded' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: 9a7ebcccf4684fad8523866fb489e06b + expression: 'last(/Azure SQL Managed Instance by HTTP/azure.sql_inst.availability.state)=3' + name: 'Azure SQL instance: Azure SQL managed instance is in unknown state' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: 4a08e72f744e4a0faee2d2e29714d8b8 + expression: 'last(/Azure SQL Managed Instance by HTTP/azure.sql_inst.availability.state)=2' + name: 'Azure SQL instance: Azure SQL managed instance is unavailable' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: de4033c537154bf1ae4c33f802f5d923 + name: 'IO bytes read' + type: DEPENDENT + key: azure.sql_inst.bytes.read + delay: '0' + units: B + description: 'Bytes read by the managed instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.io_bytes_read.average + error_handler: DISCARD_VALUE + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: performance + - uuid: 230b2e3632274288aa9b4f8667ad5586 + name: 'IO bytes write' + type: DEPENDENT + key: azure.sql_inst.bytes.write + delay: '0' + units: B + description: 'Bytes written by the managed instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.io_bytes_written.average + error_handler: DISCARD_VALUE + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: performance + - uuid: 8ef68ff7b24a462b903960a66c5e3acb + name: 'Instance collation' + type: DEPENDENT + key: azure.sql_inst.collation + delay: '0' + value_type: CHAR + trends: '0' + description: 'Collation of the managed instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.instance.properties.collation + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: database + triggers: + - uuid: 5c8068386b0a47438713d2b4bd54954a + expression: 'change(/Azure SQL Managed Instance by HTTP/azure.sql_inst.collation)=1' + name: 'Azure SQL instance: Instance collation has changed' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Azure SQL managed instance collation has changed.' + tags: + - tag: scope + value: notice + - uuid: 4020903b19234e7b83b725d0c56caa82 + name: 'Virtual core count' + type: DEPENDENT + key: azure.sql_inst.core.count + delay: '0' + description: 'Virtual core count available to the managed instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.virtual_core_count.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: performance + - uuid: 62fd264c07fe410ca8f43970c8ecdaef + name: 'Average CPU utilization' + type: DEPENDENT + key: azure.sql_inst.cpu + delay: '0' + value_type: FLOAT + units: '%' + description: 'Average CPU utilization of the instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.avg_cpu_percent.average + error_handler: DISCARD_VALUE + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 553333ffdbf142539799e7a7b6e8af2b + expression: 'min(/Azure SQL Managed Instance by HTTP/azure.sql_inst.cpu, 10m)>={$AZURE.SQL.INST.CPU.CRIT}' + name: 'Azure SQL instance: Critically high CPU utilization' + event_name: 'Azure SQL instance: Critically high CPU utilization: (over >= {$AZURE.SQL.INST.CPU.CRIT}% over last 10m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'CPU utilization is critically high.' + dependencies: + - name: 'Azure SQL instance: High CPU utilization' + expression: 'min(/Azure SQL Managed Instance by HTTP/azure.sql_inst.cpu, 10m)>={$AZURE.SQL.INST.CPU.WARN}' + tags: + - tag: scope + value: performance + - uuid: 7c5876872c644f8598a1fd275d4763d2 + expression: 'min(/Azure SQL Managed Instance by HTTP/azure.sql_inst.cpu, 10m)>={$AZURE.SQL.INST.CPU.WARN}' + name: 'Azure SQL instance: High CPU utilization' + event_name: 'Azure SQL instance: High CPU utilization: (over >= {$AZURE.SQL.INST.CPU.WARN}% over last 10m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: WARNING + description: 'CPU utilization is too high.' + tags: + - tag: scope + value: performance + - uuid: 0d4e2f5863474225a5584fbcbb7e51d1 + name: 'Get errors' + type: DEPENDENT + key: azure.sql_inst.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: error + triggers: + - uuid: 35ec346076ca4c979897e91389d23eb7 + expression: 'length(last(/Azure SQL Managed Instance by HTTP/azure.sql_inst.data.errors))>0' + name: 'Azure SQL instance: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: 4dc91ae07bd048128a34da5b7ba090e8 + name: 'Get data' + type: SCRIPT + key: azure.sql_inst.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Azure = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Azure.params = params; + Azure.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + var response, login = new HttpRequest(Azure.tls.options); + + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + login.setProxy(Azure.params.proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(Azure.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(Azure.params.app_id) + '&client_secret=' + encodeURIComponent(Azure.params.password) + ); + + if (login.getStatus() !== 200) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + Azure.token = response['access_token']; + }, + + request: function (url) { + var response, request = new HttpRequest(Azure.tls.options); + + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + request.setProxy(Azure.params.proxy); + } + + if (!Azure.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Azure.token); + Zabbix.log(4, '[ Azure SQL instance ] request url: ' + url); + + response = request.get(url); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + getMetricsData: function () { + var data = {}, + metric_endpoints = { + 'main_metrics': '/providers/Microsoft.Insights/metrics?metricnames=' + encodeURIComponent('virtual_core_count,avg_cpu_percent,reserved_storage_mb,storage_space_used_mb,io_requests,io_bytes_read,io_bytes_written') + '&api-version=2021-05-01×pan=PT5M', + }; + + data.metrics = {}; + + Object.keys(metric_endpoints).forEach(function (field) { + metrics = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + metric_endpoints[field]), 'value'); + for (k in metrics) { + key = Azure.getField(metrics[k], 'name.value').replace(/(\s|\/)+/g, ''); + if (metrics[k].timeseries.length === 0) { + metrics[k].timeseries.push({ 'data': ['nodata'] }) + } + values = Azure.getField(metrics[k], 'timeseries.0.data'); + for (var i = values.length - 1; i >= 0; i--) { + if (typeof (values[i].average) !== 'undefined') { + data.metrics[key] = values[i]; + break; + } + } + } + }); + + data.health = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'), 'value.0.properties'); + data.instance = Azure.request('https://management.azure.com' + Azure.params.resource_id + '?api-version=2024-05-01-preview'); + + return data + } + }; + + try { + Azure.setParams(JSON.parse(value)); + Azure.login(); + return JSON.stringify(Azure.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Azure SQL instance ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'Gathers data of the Azure SQL managed instance.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure SQL Managed Instance"}' + tags: + - tag: component + value: raw + - uuid: 953ba49d81a048dcbed882b955606c96 + name: 'Instance provisioning state' + type: DEPENDENT + key: azure.sql_inst.provision + delay: '0' + description: 'Provisioning state of the managed instance.' + valuemap: + name: 'Azure SQL instance provisioning state' + preprocessing: + - type: JSONPATH + parameters: + - $.instance.properties.provisioningState + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Unknown': 0, + 'Accepted': 1, + 'Canceled': 2, + 'Created': 3, + 'Creating': 4, + 'Deleted': 5, + 'Deleting': 6, + 'Failed': 7, + 'NotSpecified': 8, + 'Registering': 9, + 'Running': 10, + 'Succeeded': 11, + 'TimedOut': 12, + 'Unrecognized': 13, + 'Updating': 14 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 08a59eccbb854b6db1711c9141231e94 + expression: 'change(/Azure SQL Managed Instance by HTTP/azure.sql_inst.provision)<>0' + name: 'Azure SQL instance: Instance provisioning state has changed' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Azure SQL managed instance provisioning state has changed.' + tags: + - tag: scope + value: notice + - uuid: d311532917fa409e909c34f3a2d9032b + name: 'IO request count' + type: DEPENDENT + key: azure.sql_inst.requests + delay: '0' + description: 'IO request count by the managed instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.io_requests.average + error_handler: DISCARD_VALUE + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: performance + - uuid: e72ef80733cb4dff9722ea1ef73c59d1 + name: 'Instance state' + type: DEPENDENT + key: azure.sql_inst.state + delay: '0' + value_type: CHAR + trends: '0' + description: 'State of the managed instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.instance.properties.state + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 9a51e2286f354820b89cd0d35586b99a + expression: 'change(/Azure SQL Managed Instance by HTTP/azure.sql_inst.state)=1' + name: 'Azure SQL instance: Instance state has changed' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'Azure SQL managed instance state has changed.' + tags: + - tag: scope + value: availability + - uuid: 960e4282247f4ea0bc947e2f35182ec2 + name: 'Storage space reserved' + type: DEPENDENT + key: azure.sql_inst.storage.reserved + delay: '0' + units: B + description: 'Storage space reserved by the managed instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.reserved_storage_mb.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: storage + - uuid: dd1af2bc16c94b2f8636d24a1aedca0b + name: 'Storage space used' + type: DEPENDENT + key: azure.sql_inst.storage.used + delay: '0' + units: B + description: 'Storage space used by the managed instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.storage_space_used_mb.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: azure.sql_inst.data.get + tags: + - tag: component + value: storage + - uuid: b3ea1180eb174fb38656c9696fa9d9a7 + name: 'Storage space utilization' + type: CALCULATED + key: azure.sql_inst.storage.utilization + units: '%' + params: 'last(//azure.sql_inst.storage.used) * 100 / last(//azure.sql_inst.storage.reserved)' + description: 'Managed instance storage space utilization, in percent.' + tags: + - tag: component + value: storage + triggers: + - uuid: ed8c37e4f62b471385402e0bcf6cc47e + expression: 'min(/Azure SQL Managed Instance by HTTP/azure.sql_inst.storage.utilization,5m)>{$AZURE.SQL.INST.SPACE.CRIT}' + name: 'Azure SQL instance: Storage free space is critically low' + event_name: 'Azure SQL instance: The free storage space is critically low (below {$AZURE.SQL.INST.SPACE.CRIT}% for 5m)' + opdata: 'Space free: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The free storage space has been less than `{$AZURE.SQL.INST.SPACE.CRIT}`% for 5m.' + manual_close: 'YES' + dependencies: + - name: 'Azure SQL instance: Storage free space is low' + expression: 'min(/Azure SQL Managed Instance by HTTP/azure.sql_inst.storage.utilization,5m)>{$AZURE.SQL.INST.SPACE.WARN}' + tags: + - tag: scope + value: capacity + - uuid: bf8c527a0566490d829ae7654057a1ec + expression: 'min(/Azure SQL Managed Instance by HTTP/azure.sql_inst.storage.utilization,5m)>{$AZURE.SQL.INST.SPACE.WARN}' + name: 'Azure SQL instance: Storage free space is low' + event_name: 'Azure SQL instance: The free storage space is low (below {$AZURE.SQL.INST.SPACE.WARN}% for 5m)' + opdata: 'Space free: {ITEM.LASTVALUE}' + priority: WARNING + description: 'The free storage space has been less than `{$AZURE.SQL.INST.SPACE.WARN}`% for 5m.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + tags: + - tag: class + value: software + - tag: target + value: azure + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure SQL managed instance ID.' + - macro: '{$AZURE.SQL.INST.CPU.CRIT}' + value: '90' + description: 'CPU utilization critical threshold, expressed in %.' + - macro: '{$AZURE.SQL.INST.CPU.WARN}' + value: '80' + description: 'CPU utilization warning threshold, expressed in %.' + - macro: '{$AZURE.SQL.INST.SPACE.CRIT}' + value: '90' + description: 'Storage space critical threshold, expressed in %.' + - macro: '{$AZURE.SQL.INST.SPACE.WARN}' + value: '80' + description: 'Storage space warning threshold, expressed in %.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure SQL Managed Instance", e.g. {$HTTP.TLS.VERIFY:"Azure SQL Managed Instance"}.' + dashboards: + - uuid: 28e6b463ca7b429ca356cb61b5394841 + name: 'Azure SQL managed instance' + pages: + - name: Overview + widgets: + - type: item + name: 'Availability state' + width: '18' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.availability.state + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: gauge + name: 'Average CPU utilization' + 'y': '2' + width: '18' + height: '4' + fields: + - type: INTEGER + name: angle + value: '270' + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: empty_color + value: 0EC9AC + - type: ITEM + name: itemid.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.cpu + - type: INTEGER + name: show.0 + value: '3' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: value_arc_color + value: ED1248 + - type: gauge + name: 'Storage space utilization' + 'y': '6' + width: '18' + height: '4' + fields: + - type: INTEGER + name: angle + value: '270' + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: empty_color + value: 0EC9AC + - type: ITEM + name: itemid.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.storage.utilization + - type: INTEGER + name: show.0 + value: '3' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: value_arc_color + value: ED1248 + - type: svggraph + name: 'IO bytes read/write' + 'y': '10' + width: '72' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 524BBC + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.bytes.read + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: ds.1.color.0 + value: ED1248 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.bytes.write + - type: INTEGER + name: ds.1.missingdatafunc + value: '3' + - type: INTEGER + name: ds.1.width + value: '2' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: FDADE + - type: item + name: 'Instance state' + x: '18' + width: '18' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.state + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: svggraph + name: 'Average CPU utilization' + x: '18' + 'y': '2' + width: '54' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.cpu + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: FBADE + - type: svggraph + name: 'Storage space utilization' + x: '18' + 'y': '6' + width: '54' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.storage.utilization + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ED1248 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.storage.used + - type: INTEGER + name: ds.1.missingdatafunc + value: '3' + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: FDABE + - type: item + name: 'Instance provisioning state' + x: '36' + width: '18' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.provision + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: item + name: 'IO request count' + x: '54' + width: '18' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.requests + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + valuemaps: + - uuid: 9bb00a69069d4c22a0b75b745da0de73 + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown + - uuid: aae2eec109b649d38e80684cdeb9458c + name: 'Azure SQL instance provisioning state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Accepted + - value: '2' + newvalue: Canceled + - value: '3' + newvalue: Created + - value: '4' + newvalue: Creating + - value: '5' + newvalue: Deleted + - value: '6' + newvalue: Deleting + - value: '7' + newvalue: Failed + - value: '8' + newvalue: NotSpecified + - value: '9' + newvalue: Registering + - value: '10' + newvalue: Running + - value: '11' + newvalue: Succeeded + - value: '12' + newvalue: TimedOut + - value: '13' + newvalue: Unrecognized + - value: '14' + newvalue: Updating + graphs: + - uuid: 73faeee0b6934fb4983c035b60782ca7 + name: 'Average CPU percentage' + graph_items: + - color: 199C0D + item: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.cpu + - uuid: bcc8df046b3646ed8a14d462b761885e + name: 'IO bytes read/write' + graph_items: + - color: 199C0D + item: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.bytes.read + - sortorder: '1' + color: F63100 + item: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.bytes.write + - uuid: ac14ada6a3164e26b81686912e0b10a9 + name: 'IO request count' + graph_items: + - color: 199C0D + item: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.requests + - uuid: 32f7809d7cae4a61a603b6b8d4161570 + name: 'Storage space used' + ymax_type_1: ITEM + ymax_item_1: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.storage.reserved + graph_items: + - color: 199C0D + item: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.storage.used + - uuid: 2e1c34a01d3a4501be1ed64d45332424 + name: 'Storage space utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.storage.utilization + - uuid: 4f14da1ce6d041ff8bdcc06a172f2734 + name: 'Virtual core count' + graph_items: + - color: 199C0D + item: + host: 'Azure SQL Managed Instance by HTTP' + key: azure.sql_inst.core.count diff --git a/Azure_VM_Scale_Set_by_HTTP.yaml b/Azure_VM_Scale_Set_by_HTTP.yaml new file mode 100644 index 0000000..20747ad --- /dev/null +++ b/Azure_VM_Scale_Set_by_HTTP.yaml @@ -0,0 +1,1920 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: d0fd5d346b1740dda9d3a976371789dd + template: 'Azure VM Scale Set by HTTP' + name: 'Azure VM Scale Set by HTTP' + description: | + This template is designed to monitor Microsoft Azure virtual machine scale sets by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: eea82baaa0684ba688a69da62bf1eec5 + name: 'VM availability metric' + type: DEPENDENT + key: azure.scaleset.availability + delay: '0' + value_type: FLOAT + description: 'Measure of availability of the virtual machines over time.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.VmAvailabilityMetric.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: health + - uuid: 21740af2abca461f88a81f07ba297929 + name: 'Availability status detailed' + type: DEPENDENT + key: azure.scaleset.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'The summary description of availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: health + - uuid: 65e1ca0b38e04adca069388a4c5e3869 + name: 'Availability state' + type: DEPENDENT + key: azure.scaleset.availability.state + delay: '0' + description: | + The availability status of the resource. + 0 - Available - no events detected that affect the health of the resource. + 1 - Degraded - your resource detected a loss in performance, although it's still available for use. + 2 - Unavailable - the service detected an ongoing platform or non-platform event that affects the health of the resource. + 3 - Unknown - Resource Health hasn't received information about the resource for more than 10 minutes. + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: health + triggers: + - uuid: a1aadc807a6d40bd8dd2049c0ead6e38 + expression: 'last(/Azure VM Scale Set by HTTP/azure.scaleset.availability.state)=1' + name: 'Azure VM Scale: Virtual machine scale set is degraded' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: c09bb8da8bb54c45b6d424a63ec892ae + expression: 'last(/Azure VM Scale Set by HTTP/azure.scaleset.availability.state)=3' + name: 'Azure VM Scale: Virtual machine scale set is in unknown state' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: eff890c95f574ad09af82ad79803e733 + expression: 'last(/Azure VM Scale Set by HTTP/azure.scaleset.availability.state)=2' + name: 'Azure VM Scale: Virtual machine scale set is unavailable' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: dd6bac4dda51446e9a16450c61b8e23e + name: 'CPU credits consumed' + type: DEPENDENT + key: azure.scaleset.cpu.credits.consumed + delay: '0' + value_type: FLOAT + description: 'Total number of credits consumed by the virtual machine. Only available on B-series burstable VMs.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.CPUCreditsConsumed.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: cpu + - uuid: e05426408c9f448a9f8df40a52b6502a + name: 'CPU credits remaining' + type: DEPENDENT + key: azure.scaleset.cpu.credits.remaining + delay: '0' + value_type: FLOAT + description: 'Total number of credits available to burst. Only available on B-series burstable VMs.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.CPUCreditsRemaining.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: cpu + - uuid: 0883913383d54b81b5c67b65dc595ae3 + name: 'CPU utilization' + type: DEPENDENT + key: azure.scaleset.cpu.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of allocated compute units that are currently in use by the virtual machine(s).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PercentageCPU.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: a3706a6c3349429b89b6915a6b0fb5c1 + expression: 'min(/Azure VM Scale Set by HTTP/azure.scaleset.cpu.utilization,5m)>{$AZURE.SCALESET.CPU.UTIL.CRIT}' + name: 'Azure VM Scale: High CPU utilization' + event_name: 'Azure VM Scale: CPU utilization is high (over {$AZURE.SCALESET.CPU.UTIL.CRIT}% for last 5m)' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: bc342d5b3c42487887df3a82cd65e265 + name: 'Data disk max burst bandwidth' + type: DEPENDENT + key: azure.scaleset.data.disk.bandwidth.burst.max + delay: '0' + value_type: FLOAT + units: Bps + description: 'Maximum byte-per-second throughput the data disk can achieve with bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskMaxBurstBandwidth.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 1d19657c420b4a0a9e601a4effefa58f + name: 'Data disk used burst BPS credits' + type: DEPENDENT + key: azure.scaleset.data.disk.bandwidth.burst.used + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of data disk burst bandwidth credits used so far.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskUsedBurstBPSCreditsPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 76a0d87846b74a128d63f62da04050ab + name: 'Data disk bandwidth consumed' + type: DEPENDENT + key: azure.scaleset.data.disk.bandwidth.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of data disk bandwidth consumed per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskBandwidthConsumedPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: dd3994c9e83f48d395e61c91aae2f17d + name: 'Data disk target bandwidth' + type: DEPENDENT + key: azure.scaleset.data.disk.bandwidth.target + delay: '0' + value_type: FLOAT + units: Bps + description: 'Baseline byte-per-second throughput the data disk can achieve without bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskTargetBandwidth.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 53ab6e4d0dcd46d48c6ede579ca00366 + name: 'Data disk max burst IOPS' + type: DEPENDENT + key: azure.scaleset.data.disk.iops.burst.max + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Maximum IOPS the data disk can achieve with bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskMaxBurstIOPS.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: e4bfd5f8c13d44e69facf507a10db553 + name: 'Data disk used burst IO credits' + type: DEPENDENT + key: azure.scaleset.data.disk.iops.burst.used + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of data disk burst I/O credits used so far.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskUsedBurstIOCreditsPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: d7633aaf087741ec8558198dc382df1a + name: 'Data disk IOPS consumed' + type: DEPENDENT + key: azure.scaleset.data.disk.iops.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of data disk I/Os consumed per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskIOPSConsumedPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 86123a1bff83403a8190fc5f61c4edd7 + name: 'Data disk target IOPS' + type: DEPENDENT + key: azure.scaleset.data.disk.iops.target + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Baseline IOPS the data disk can achieve without bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskTargetIOPS.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 72cadbd3a3ae409b8f192217c2ff6cb1 + name: 'Data disk queue depth' + type: DEPENDENT + key: azure.scaleset.data.disk.queue.depth + delay: '0' + description: 'Data disk queue depth (or queue length).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskQueueDepth.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: d42c402ec613423287335538136bcd05 + name: 'Data disk read rate' + type: DEPENDENT + key: azure.scaleset.data.disk.read.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes/sec read from a single disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskReadBytessec.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 2e265f80dccd4542a0f4b0adf462fec0 + name: 'Data disk IOPS read' + type: DEPENDENT + key: azure.scaleset.data.disk.read.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Read IOPS from a single disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskReadOperationsSec.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 99b8c634131d49b7828e88a44342e2b6 + name: 'Data disk write rate' + type: DEPENDENT + key: azure.scaleset.data.disk.write.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes/sec written to a single disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskWriteBytessec.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 0c46306040db41af895ab9a82d55ad31 + name: 'Data disk IOPS write' + type: DEPENDENT + key: azure.scaleset.data.disk.write.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Write IOPS from a single disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskWriteOperationsSec.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 14a25a861b9f491194ea055c189cc2f9 + name: 'Get errors' + type: DEPENDENT + key: azure.scaleset.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: error + triggers: + - uuid: 1d114800a6534498b52a2dd25e93d719 + expression: 'length(last(/Azure VM Scale Set by HTTP/azure.scaleset.data.errors))>0' + name: 'Azure VM Scale: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: f783d047862144f2baed76bb281cec5b + name: 'Get data' + type: SCRIPT + key: azure.scaleset.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Azure = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Azure.params = params; + Azure.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + var response, login = new HttpRequest(Azure.tls.options); + + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + login.setProxy(Azure.params.proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(Azure.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(Azure.params.app_id) + '&client_secret=' + encodeURIComponent(Azure.params.password) + ); + + if (login.getStatus() !== 200) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + Azure.token = response['access_token']; + }, + + request: function (url) { + var response, request = new HttpRequest(Azure.tls.options); + + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + request.setProxy(Azure.params.proxy); + } + + if (!Azure.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Azure.token); + Zabbix.log(4, '[ AzureVMSS ] request url: ' + url); + + response = request.get(url); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + getMetricsData: function () { + var data = {}, + metric_endpoints = { + 'main_metrics': '/providers/Microsoft.Insights/metrics?metricnames=' + encodeURIComponent('Available Memory Bytes,CPU Credits Consumed,CPU Credits Remaining,Percentage CPU,Inbound Flows,Inbound Flows Maximum Creation Rate,Network In,Network In Total,Network Out,Network Out Total,Outbound Flows,Outbound Flows Maximum Creation Rate,VmAvailabilityMetric') + '&api-version=2021-05-01×pan=PT1M', + 'disks_metrics': '/providers/Microsoft.Insights/metrics?metricnames=' + encodeURIComponent('Data Disk Bandwidth Consumed Percentage,Data Disk IOPS Consumed Percentage,Data Disk Max Burst Bandwidth,Data Disk Max Burst IOPS,Data Disk Queue Depth,Data Disk Read Bytes/sec,Data Disk Read Operations/Sec,Data Disk Target Bandwidth,Data Disk Target IOPS,Data Disk Used Burst BPS Credits Percentage,Data Disk Used Burst IO Credits Percentage,Data Disk Write Bytes/sec,Data Disk Write Operations/Sec,Disk Read Bytes,Disk Read Operations/Sec,Disk Write Bytes,Disk Write Operations/Sec') + '&api-version=2021-05-01×pan=PT1M', + 'os_disk_metrics': '/providers/Microsoft.Insights/metrics?metricnames=' + encodeURIComponent('OS Disk Bandwidth Consumed Percentage,OS Disk IOPS Consumed Percentage,OS Disk Max Burst Bandwidth,OS Disk Max Burst IOPS,OS Disk Queue Depth,OS Disk Read Bytes/sec,OS Disk Read Operations/Sec,OS Disk Target Bandwidth,OS Disk Target IOPS,OS Disk Used Burst BPS Credits Percentage,OS Disk Used Burst IO Credits Percentage,OS Disk Write Bytes/sec,OS Disk Write Operations/Sec') + '&api-version=2021-05-01×pan=PT1M', + 'premium_and_vm_metrics': '/providers/Microsoft.Insights/metrics?metricnames=' + encodeURIComponent('Premium Data Disk Cache Read Hit,Premium Data Disk Cache Read Miss,Premium OS Disk Cache Read Hit,Premium OS Disk Cache Read Miss,VM Cached Bandwidth Consumed Percentage,VM Cached IOPS Consumed Percentage,VM Local Used Burst BPS Credits Percentage,VM Local Used Burst IO Credits Percentage,VM Remote Used Burst BPS Credits Percentage,VM Remote Used Burst IO Credits Percentage,VM Uncached Bandwidth Consumed Percentage,VM Uncached IOPS Consumed Percentage') + '&api-version=2021-05-01×pan=PT1M' + }; + + data.metrics = {}; + + Object.keys(metric_endpoints).forEach(function (field) { + metrics = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + metric_endpoints[field]), 'value'); + for (k in metrics) { + key = Azure.getField(metrics[k], 'name.value').replace(/(\s|\/)+/g, ''); + if (metrics[k].timeseries.length === 0) { + metrics[k].timeseries.push({ 'data': ['nodata'] }) + } + data.metrics[key] = Azure.getField(metrics[k], 'timeseries.0.data.0'); + } + }); + + data.capacity = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + '?api-version=2024-03-01'), 'sku.capacity'); + data.health = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'), 'value.0.properties'); + + return data + } + }; + + try { + Azure.setParams(JSON.parse(value)); + Azure.login(); + return JSON.stringify(Azure.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AzureVMSS ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'Gathers data of the virtual machine scale set.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure VM Scale Set"}' + tags: + - tag: component + value: raw + - uuid: aa8675f8f0fa454db27d46308ab92c79 + name: 'Disk read' + type: DEPENDENT + key: azure.scaleset.disk.read + delay: '0' + value_type: FLOAT + units: B + description: 'Bytes read from the disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DiskReadBytes.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 39f1d8154bc540b78f3d1c04ea68144f + name: 'Disk IOPS read' + type: DEPENDENT + key: azure.scaleset.disk.read.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Disk read IOPS.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DiskReadOperationsSec.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: a419f2280662418abe7692d22a5344fb + name: 'Disk write' + type: DEPENDENT + key: azure.scaleset.disk.write + delay: '0' + value_type: FLOAT + units: B + description: 'Bytes written to the disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DiskWriteBytes.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 96ac2287bae3415cae1b0a8590954d02 + name: 'Disk IOPS write' + type: DEPENDENT + key: azure.scaleset.disk.write.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Write IOPS from a single disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DiskWriteOperationsSec.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 7f0cb52d4db84c2b8d8ef8f82cc6d77b + name: 'Inbound flows' + type: DEPENDENT + key: azure.scaleset.flows.inbound + delay: '0' + value_type: FLOAT + description: 'Inbound Flows are the number of current flows in the inbound direction (traffic going into the VMs).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.InboundFlows.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: network + - uuid: dacfd47b3c3142ce9ca043ebda4e7614 + name: 'Inbound flow maximum creation rate' + type: DEPENDENT + key: azure.scaleset.flows.inbound.max + delay: '0' + value_type: FLOAT + description: 'The maximum creation rate of inbound flows (traffic going into the VM).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.InboundFlowsMaximumCreationRate.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: network + - uuid: 8ef6bb3bc1884426ab3fe9998acf4e25 + name: 'Outbound flows' + type: DEPENDENT + key: azure.scaleset.flows.outbound + delay: '0' + value_type: FLOAT + description: 'Outbound Flows are the number of current flows in the outbound direction (traffic going out of the VMs).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OutboundFlows.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: network + - uuid: 15b8f8fde6e4458e8904428537a8b32a + name: 'Outbound flow maximum creation rate' + type: DEPENDENT + key: azure.scaleset.flows.outbound.max + delay: '0' + value_type: FLOAT + description: 'The maximum creation rate of outbound flows (traffic going out of the VM).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OutboundFlowsMaximumCreationRate.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: network + - uuid: 4025ada5ba4940b88b48b7b71efbe07b + name: 'Network in total' + type: DEPENDENT + key: azure.scaleset.network.in.total + delay: '0' + value_type: FLOAT + units: B + description: 'The number of bytes received on all network interfaces by the virtual machine(s) (incoming traffic).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.NetworkInTotal.total + error_handler: DISCARD_VALUE + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: network + - uuid: 6bca5eeb39194c5f83f83863f1e6b4c6 + name: 'Network out total' + type: DEPENDENT + key: azure.scaleset.network.out.total + delay: '0' + value_type: FLOAT + units: B + description: 'The number of bytes out on all network interfaces by the virtual machine(s) (outgoing traffic).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.NetworkOutTotal.total + error_handler: DISCARD_VALUE + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: network + - uuid: d81be2d243124ebd8efd5fa4fd79d3f6 + name: 'OS disk used burst BPS credits' + type: DEPENDENT + key: azure.scaleset.os.disk.bandwidth.burst.used + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of OS Disk burst bandwidth credits used so far.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskUsedBurstBPSCreditsPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: b66ff8f85e614b9c9db479e8452a3acb + name: 'OS disk bandwidth consumed' + type: DEPENDENT + key: azure.scaleset.os.disk.bandwidth.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of operating system disk bandwidth consumed per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskBandwidthConsumedPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: b5f5c9d4040c4b889287658532aec890 + name: 'OS disk max burst bandwidth' + type: DEPENDENT + key: azure.scaleset.os.disk.bandwidth.max + delay: '0' + value_type: FLOAT + units: Bps + description: 'Maximum byte-per-second throughput the OS Disk can achieve with bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskMaxBurstBandwidth.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 4f28508261554a11a858f905160a5db2 + name: 'OS disk target bandwidth' + type: DEPENDENT + key: azure.scaleset.os.disk.bandwidth.target + delay: '0' + value_type: FLOAT + units: Bps + description: 'Baseline byte-per-second throughput the OS Disk can achieve without bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskTargetBandwidth.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 97005b2f1be1455f8002b3f777898163 + name: 'OS disk used burst IO credits' + type: DEPENDENT + key: azure.scaleset.os.disk.iops.burst.used + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of OS Disk burst I/O credits used so far.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskUsedBurstIOCreditsPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 87e51f85e00646d4bfe12840f444e47a + name: 'OS disk IOPS consumed' + type: DEPENDENT + key: azure.scaleset.os.disk.iops.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of operating system disk I/Os consumed per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskIOPSConsumedPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 1ff472b5cca24332abea886bff44435f + name: 'OS disk max burst IOPS' + type: DEPENDENT + key: azure.scaleset.os.disk.iops.max + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Maximum IOPS the OS Disk can achieve with bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskMaxBurstIOPS.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 72b19174782d4905be402e2825098f17 + name: 'OS disk target IOPS' + type: DEPENDENT + key: azure.scaleset.os.disk.iops.target + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Baseline IOPS the OS disk can achieve without bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskTargetIOPS.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 3bbb425e37894415b002e026e34259a2 + name: 'OS disk queue depth' + type: DEPENDENT + key: azure.scaleset.os.disk.queue.depth + delay: '0' + value_type: FLOAT + description: 'OS Disk queue depth (or queue length).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskQueueDepth.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 7879801b929249d0b266ae905307beee + name: 'OS disk read rate' + type: DEPENDENT + key: azure.scaleset.os.disk.read.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes/sec read from a single disk during the monitoring period - for an OS disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskReadBytessec.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 542881bbbb694b1a84befbb772ded703 + name: 'OS disk IOPS read' + type: DEPENDENT + key: azure.scaleset.os.disk.read.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Read IOPS from a single disk during the monitoring period - for an OS disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskReadOperationsSec.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: c86371d6f8224b418f003a7fdefe9884 + name: 'OS disk write rate' + type: DEPENDENT + key: azure.scaleset.os.disk.write.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes/sec written to a single disk during the monitoring period - for an OS disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskWriteBytessec.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 77d95de6fdbd49ba9bae68e75f792560 + name: 'OS disk IOPS write' + type: DEPENDENT + key: azure.scaleset.os.disk.write.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Write IOPS from a single disk during the monitoring period - for an OS disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskWriteOperationsSec.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 25915ce6d37740bf83f656c5cc7b9960 + name: 'Premium data disk cache read hit in %' + type: DEPENDENT + key: azure.scaleset.premium.data.disk.cache.read.hit + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of premium data disk cache read hit.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PremiumDataDiskCacheReadHit.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: f04f8f7e59ec4786b5ea8765cbf69b82 + name: 'Premium data disk cache read miss in %' + type: DEPENDENT + key: azure.scaleset.premium.data.disk.cache.read.miss + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of premium data disk cache read miss.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PremiumDataDiskCacheReadMiss.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 65442659fe944842811638ac04dc998a + name: 'Premium OS disk cache read hit in %' + type: DEPENDENT + key: azure.scaleset.premium.os.disk.cache.read.hit + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of premium OS disk cache read hit.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PremiumOSDiskCacheReadHit.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 981c83a8623c481ca040c66f5d5738ec + name: 'Premium OS disk cache read miss in %' + type: DEPENDENT + key: azure.scaleset.premium.os.disk.cache.read.miss + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of premium OS disk cache read miss.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PremiumOSDiskCacheReadMiss.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 8bfbc99e09314aeea7c0d0563d148c11 + name: 'VM cached bandwidth consumed' + type: DEPENDENT + key: azure.scaleset.vm.cached.bandwidth.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of cached disk bandwidth consumed by the VM.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.VMCachedBandwidthConsumedPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: ae97e2890b5844749913f3a1d650091d + name: 'VM cached IOPS consumed' + type: DEPENDENT + key: azure.scaleset.vm.cached.iops.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of cached disk IOPS consumed by the VM.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.VMCachedIOPSConsumedPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: 7124d8d7d2b246feaa8959fd6d5aba0f + name: 'Virtual machine count' + type: DEPENDENT + key: azure.scaleset.vm.count + delay: '0' + description: 'Current amount of virtual machines in the scale set.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: health + triggers: + - uuid: cd77906ed04a42f28bb702bc513504a0 + expression: 'min(/Azure VM Scale Set by HTTP/azure.scaleset.vm.count,5m)>{$AZURE.SCALESET.VM.COUNT.CRIT}' + name: 'Azure VM Scale: High amount of VMs in the scale set' + event_name: 'Azure VM Scale: Number of VMs is high (over {$AZURE.SCALESET.VM.COUNT.CRIT} for last 5m)' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'High amount of VMs in the scale set.' + tags: + - tag: scope + value: performance + - uuid: 31f742e4476f4ab09d3a2bd46f820098 + name: 'Available memory' + type: DEPENDENT + key: azure.scaleset.vm.memory + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of physical memory, in bytes, immediately available for allocation to a process or for system use in the virtual machine.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.AvailableMemoryBytes.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: memory + - uuid: 8271a3a47a744e23bd239919760fb9b4 + name: 'VM uncached bandwidth consumed' + type: DEPENDENT + key: azure.scaleset.vm.uncached.bandwidth.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of uncached disk bandwidth consumed by the VM.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.VMUncachedBandwidthConsumedPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + - uuid: dd8f8111b6914ba38f6fe2f707dbb9f1 + name: 'VM uncached IOPS consumed' + type: DEPENDENT + key: azure.scaleset.vm.uncached.iops.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of uncached disk IOPS consumed by the VM.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.VMUncachedIOPSConsumedPercentage.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.scaleset.data.get + tags: + - tag: component + value: storage + tags: + - tag: class + value: software + - tag: target + value: azure + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure virtual machine ID.' + - macro: '{$AZURE.SCALESET.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of CPU utilization, expressed in %.' + - macro: '{$AZURE.SCALESET.VM.COUNT.CRIT}' + value: '100' + description: 'The critical amount of virtual machines in the scale set.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure VM Scale Set", e.g. {$HTTP.TLS.VERIFY:"Azure VM Scale Set"}.' + dashboards: + - uuid: 1a38b3783a6b41cca3e5cfadd64d4534 + name: 'Overview Azure VM Scale Set' + pages: + - widgets: + - type: item + name: 'Virtual machine count' + width: '12' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.vm.count + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'CPU credits consumed' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.cpu.credits.consumed + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Network in' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.network.in.total + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Disk read' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.disk.read + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'OS disk read operations/sec' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.disk.read.ops + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Inbound flows' + 'y': '15' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.flows.inbound + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Available memory' + x: '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.vm.memory + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'CPU credits remaining' + x: '12' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.cpu.credits.remaining + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Network out' + x: '12' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.network.out.total + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Disk write' + x: '12' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.disk.write + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'OS disk write operations/sec' + x: '12' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.disk.write.ops + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Outbound flows' + x: '12' + 'y': '15' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.flows.outbound + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Availability state' + x: '24' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.availability.state + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: up_color + value: FF0000 + - type: graph + name: 'CPU Utilization' + x: '24' + 'y': '3' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure VM Scale Set by HTTP' + name: 'CPU Utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Network traffic' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure VM Scale Set by HTTP' + name: 'Network traffic, bytes' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: 'Disk read/write bytes' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure VM Scale Set by HTTP' + name: 'Disk read/write bytes' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: 'OS disk read/write rates' + x: '24' + 'y': '12' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure VM Scale Set by HTTP' + name: 'OS disk IOPS read/write' + - type: STRING + name: reference + value: AAAAD + - type: graph + name: Flows + x: '24' + 'y': '15' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure VM Scale Set by HTTP' + name: Flows + - type: STRING + name: reference + value: AAAAE + - type: itemhistory + name: 'Availability status detailed' + x: '36' + width: '36' + height: '3' + fields: + - type: INTEGER + name: columns.0.display + value: '4' + - type: ITEM + name: columns.0.itemid + value: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.availability.details + - type: INTEGER + name: columns.0.monospace_font + value: '1' + - type: STRING + name: columns.0.name + value: '|' + - type: STRING + name: reference + value: BAAAA + - type: INTEGER + name: show_column_header + value: '0' + - type: INTEGER + name: show_timestamp + value: '1' + valuemaps: + - uuid: fc7ca60876144ac8b240db81537920a6 + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown + graphs: + - uuid: 36ff6447ea4f403eb0f13dc6322c99ea + name: 'CPU Utilization' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.cpu.utilization + - uuid: 66b7d2f063064a1b8912e2b2e57d2d40 + name: 'Data disk IOPS read/write' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.data.disk.read.ops + - sortorder: '1' + color: F63100 + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.data.disk.write.ops + - uuid: 9bbdd448793e41b6b8aef38c7cad41c6 + name: 'Data disk read/write Bps' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.data.disk.read.bps + - sortorder: '1' + color: F63100 + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.data.disk.write.bps + - uuid: 2d0a30934cf7444f89fe031178599abc + name: 'Disk IOPS read/write' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.disk.read.ops + - sortorder: '1' + color: F63100 + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.disk.write.ops + - uuid: 7b724a3805d84dbb99fcbf5c2fd633b4 + name: 'Disk read/write bytes' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.disk.read + - sortorder: '1' + color: F63100 + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.disk.write + - uuid: e4d6ccffbf274347a3fdade920467ae2 + name: Flows + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.flows.inbound + - sortorder: '1' + color: F63100 + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.flows.outbound + - sortorder: '2' + color: 00611C + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.flows.inbound.max + - sortorder: '3' + color: F7941D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.flows.outbound.max + - uuid: 9109c16ec3b540118aff0e458fb00580 + name: 'Network traffic, bytes' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.network.in.total + - sortorder: '1' + color: F63100 + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.network.out.total + - uuid: 079e812dd9af48cda80993ad9b3a59d0 + name: 'OS disk IOPS read/write' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.os.disk.read.ops + - sortorder: '1' + color: F63100 + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.os.disk.write.ops + - uuid: de643aefc3b340e3a4cd81216a78709d + name: 'OS disk read/write Bps' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.os.disk.read.bps + - sortorder: '1' + color: F63100 + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.os.disk.write.bps + - uuid: dd3b9363272949d8a1fef02f6c14229d + name: 'Premium data disk cache read' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.premium.data.disk.cache.read.hit + - sortorder: '1' + color: F63100 + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.premium.data.disk.cache.read.miss + - uuid: 8a432a338a9540b4888f9f019164acdb + name: 'Premium OS disk cache read' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.premium.os.disk.cache.read.hit + - sortorder: '1' + color: F63100 + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.premium.os.disk.cache.read.miss + - uuid: 8d04afa2c9d2459e926a9c20af37e4f8 + name: 'Virtual machine count' + graph_items: + - color: 199C0D + item: + host: 'Azure VM Scale Set by HTTP' + key: azure.scaleset.vm.count diff --git a/Azure_Virtual_Machine_by_HTTP.yaml b/Azure_Virtual_Machine_by_HTTP.yaml new file mode 100644 index 0000000..6883ec4 --- /dev/null +++ b/Azure_Virtual_Machine_by_HTTP.yaml @@ -0,0 +1,1896 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 820fa4a1565c43e4aac07a691a5bface + template: 'Azure Virtual Machine by HTTP' + name: 'Azure Virtual Machine by HTTP' + description: | + This template is designed to monitor Microsoft Azure virtual machines (VMs) by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 86f996df859a445994ed671feab6012f + name: 'VM availability metric' + type: DEPENDENT + key: azure.vm.availability + delay: '0' + value_type: FLOAT + description: 'Measure of availability of virtual machine over time.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.VmAvailabilityMetric.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: health + - uuid: c299999d69904340acd44fead6c7672c + name: 'Availability status detailed' + type: DEPENDENT + key: azure.vm.availability.details + delay: '0' + value_type: CHAR + trends: '0' + description: 'The summary description of availability status.' + preprocessing: + - type: JSONPATH + parameters: + - $.health.summary + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: health + - uuid: 25e2af44bfbf4e9083ce493d85232088 + name: 'Availability state' + type: DEPENDENT + key: azure.vm.availability.state + delay: '0' + description: | + The availability status of the resource. + 0 - Available - no events detected that affect the health of the resource. + 1 - Degraded - your resource detected a loss in performance, although it's still available for use. + 2 - Unavailable - the service detected an ongoing platform or non-platform event that affects the health of the resource. + 3 - Unknown - Resource Health hasn't received information about the resource for more than 10 minutes. + valuemap: + name: 'Azure resource health state' + preprocessing: + - type: JSONPATH + parameters: + - $.health.availabilityState + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: STR_REPLACE + parameters: + - Available + - '0' + - type: STR_REPLACE + parameters: + - Degraded + - '1' + - type: STR_REPLACE + parameters: + - Unavailable + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: health + triggers: + - uuid: c0170d8a09ae460da923fe773b2b0bd0 + expression: 'last(/Azure Virtual Machine by HTTP/azure.vm.availability.state)=1' + name: 'Azure VM: Virtual machine is degraded' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The resource is in a degraded state.' + tags: + - tag: scope + value: availability + - uuid: e1b85765b83445ebbf15f02d782b9858 + expression: 'last(/Azure Virtual Machine by HTTP/azure.vm.availability.state)=3' + name: 'Azure VM: Virtual machine is in unknown state' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: 'The resource state is unknown.' + tags: + - tag: scope + value: availability + - uuid: b3d764ff735e44f8806cc4d29090719e + expression: 'last(/Azure Virtual Machine by HTTP/azure.vm.availability.state)=2' + name: 'Azure VM: Virtual machine is unavailable' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The resource state is unavailable.' + tags: + - tag: scope + value: availability + - uuid: a93308573303437487d151de340fcaed + name: 'VM cached bandwidth consumed' + type: DEPENDENT + key: azure.vm.cached.bandwidth.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the cached disk bandwidth consumed by the VM.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.VMCachedBandwidthConsumedPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 989dec26d97d44b6bd4a84fdbd37dec5 + name: 'VM cached IOPS consumed' + type: DEPENDENT + key: azure.vm.cached.iops.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the cached disk IOPS consumed by the VM.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.VMCachedIOPSConsumedPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: fb0641ca8f104cf1bebdced63cd6af16 + name: 'CPU credits consumed' + type: DEPENDENT + key: azure.vm.cpu.credits.consumed + delay: '0' + value_type: FLOAT + description: 'Total number of credits consumed by the virtual machine. Only available on B-series burstable VMs.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.CPUCreditsConsumed.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: cpu + - uuid: 963752cbaba046cab1f05b0cbcff3137 + name: 'CPU credits remaining' + type: DEPENDENT + key: azure.vm.cpu.credits.remaining + delay: '0' + value_type: FLOAT + description: 'Total number of credits available to burst. Available only on B-series burstable VMs.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.CPUCreditsRemaining.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: cpu + - uuid: 492edacf92544a95a5aa7b034efa7931 + name: 'CPU utilization' + type: DEPENDENT + key: azure.vm.cpu.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of allocated compute units that are currently in use by virtual machine.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PercentageCPU.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 9e6d9394570641418b4291befb1e38e5 + expression: 'min(/Azure Virtual Machine by HTTP/azure.vm.cpu.utilization,5m)>{$AZURE.VM.CPU.UTIL.CRIT}' + name: 'Azure VM: High CPU utilization' + event_name: 'Azure VM: CPU utilization is high (over {$AZURE.VM.CPU.UTIL.CRIT}% for last 5m)' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 68c730e4904f402cb12fb71b45fede02 + name: 'Data disk used burst BPS credits' + type: DEPENDENT + key: azure.vm.data.disk.bandwidth.burst.used + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the data disk burst bandwidth credits used so far.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskUsedBurstBPSCreditsPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 47cda13c203e4f1e9918eb73fd8afa20 + name: 'Data disk bandwidth consumed' + type: DEPENDENT + key: azure.vm.data.disk.bandwidth.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the data disk bandwidth consumed per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskBandwidthConsumedPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: d0fb23206d564e1da746bff3369056c1 + name: 'Data disk max burst bandwidth' + type: DEPENDENT + key: azure.vm.data.disk.bandwidth.max + delay: '0' + value_type: FLOAT + units: Bps + description: 'Maximum byte-per-second throughput that the data disk can achieve with bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskMaxBurstBandwidth.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: c61ad4af97c243cca75bbece40eea795 + name: 'Data disk target bandwidth' + type: DEPENDENT + key: azure.vm.data.disk.bandwidth.target + delay: '0' + value_type: FLOAT + units: Bps + description: 'Baseline byte-per-second throughput that the data disk can achieve without bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskTargetBandwidth.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 731a82833bdd42c59c453adf8625e3b4 + name: 'Data disk used burst IO credits' + type: DEPENDENT + key: azure.vm.data.disk.iops.burst.used + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the data disk burst I/O credits used so far.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskUsedBurstIOCreditsPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 3121980d3319431691ed9e98d176430b + name: 'Data disk IOPS consumed' + type: DEPENDENT + key: azure.vm.data.disk.iops.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the data disk input/output (I/O) consumed per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskIOPSConsumedPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 6afcbb02c53243faa341670f155678e4 + name: 'Data disk max burst IOPS' + type: DEPENDENT + key: azure.vm.data.disk.iops.max + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Maximum IOPS that the data disk can achieve with bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskMaxBurstIOPS.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 9370988456e74b889700ea5798d17092 + name: 'Data disk target IOPS' + type: DEPENDENT + key: azure.vm.data.disk.iops.target + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Baseline IOPS that the data disk can achieve without bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskTargetIOPS.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: b81f304bbc2a42df9b0550ecdc1ec6b7 + name: 'Data disk queue depth' + type: DEPENDENT + key: azure.vm.data.disk.queue.depth + delay: '0' + value_type: FLOAT + description: 'The number of outstanding IO requests that are waiting to be performed on a disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskQueueDepth.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 021d92f3075544319191d6f85a701222 + name: 'Data disk read rate' + type: DEPENDENT + key: azure.vm.data.disk.read.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes per second read from a single disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskReadBytessec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: cc31283ab96548b7bdcc88e89dfae53c + name: 'Data disk IOPS read' + type: DEPENDENT + key: azure.vm.data.disk.read.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Read IOPS from a single disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskReadOperationsSec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: b8712f8fd60a43f6b099d9eafed19945 + name: 'Data disk write rate' + type: DEPENDENT + key: azure.vm.data.disk.write.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes per second written to a single disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskWriteBytessec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 87794f5a502b4e2db91f820483e38fb3 + name: 'Data disk IOPS write' + type: DEPENDENT + key: azure.vm.data.disk.write.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Write IOPS from a single disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskWriteOperationsSec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: e253c2a908944be1a033fc3df550d979 + name: 'Get errors' + type: DEPENDENT + key: azure.vm.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: error + triggers: + - uuid: 87236c99652643ba800601a461d66d94 + expression: 'length(last(/Azure Virtual Machine by HTTP/azure.vm.data.errors))>0' + name: 'Azure VM: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: cff54514d795495da8bc1152e02631aa + name: 'Get data' + type: SCRIPT + key: azure.vm.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Azure = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Azure.params = params; + Azure.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + var response, login = new HttpRequest(Azure.tls.options); + + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + login.setProxy(Azure.params.proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(Azure.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(Azure.params.app_id) + '&client_secret=' + encodeURIComponent(Azure.params.password) + ); + + if (login.getStatus() !== 200) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + Azure.token = response['access_token']; + }, + + request: function (url) { + var response, request = new HttpRequest(Azure.tls.options); + + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + request.setProxy(Azure.params.proxy); + } + + if (!Azure.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Azure.token); + Zabbix.log(4, '[ AzureVM ] request url: ' + url); + + response = request.get(url); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + getMetricsData: function () { + var data = {}, + metric_endpoints = { + 'main_and_premium_metrics': '/providers/Microsoft.Insights/metrics?metricnames=' + encodeURIComponent('Percentage CPU,CPU Credits Remaining,CPU Credits Consumed,VmAvailabilityMetric,Available Memory Bytes,Network In Total,Network Out Total,Inbound Flows,Outbound Flows,Inbound Flows Maximum Creation Rate,Outbound Flows Maximum Creation Rate,Premium Data Disk Cache Read Hit,Premium Data Disk Cache Read Miss,Premium OS Disk Cache Read Hit,Premium OS Disk Cache Read Miss,VM Cached Bandwidth Consumed Percentage,VM Cached IOPS Consumed Percentage,VM Uncached Bandwidth Consumed Percentage,VM Uncached IOPS Consumed Percentage') + '&api-version=2024-02-01×pan=PT1M', + 'disks_metrics': '/providers/Microsoft.Insights/metrics?metricnames=' + encodeURIComponent('Disk Read Bytes,Disk Write Bytes,Disk Read Operations/Sec,Disk Write Operations/Sec,Data Disk Latency,Data Disk Read Bytes/sec,Data Disk Write Bytes/sec,Data Disk Read Operations/Sec,Data Disk Write Operations/Sec,Data Disk Queue Depth,Data Disk Bandwidth Consumed Percentage,Data Disk IOPS Consumed Percentage,Data Disk Target Bandwidth,Data Disk Target IOPS,Data Disk Max Burst Bandwidth,Data Disk Max Burst IOPS,Data Disk Used Burst BPS Credits Percentage,Data Disk Used Burst IO Credits Percentage') + '&api-version=2024-02-01×pan=PT1M', + 'os_disk_metrics': '/providers/Microsoft.Insights/metrics?metricnames=' + encodeURIComponent('OS Disk Latency,OS Disk Read Bytes/sec,OS Disk Write Bytes/sec,OS Disk Read Operations/Sec,OS Disk Write Operations/Sec,OS Disk Queue Depth,OS Disk Bandwidth Consumed Percentage,OS Disk IOPS Consumed Percentage,OS Disk Target Bandwidth,OS Disk Target IOPS,OS Disk Max Burst Bandwidth,OS Disk Max Burst IOPS,OS Disk Used Burst BPS Credits Percentage,OS Disk Used Burst IO Credits Percentage,Temp Disk Latency,Temp Disk Read Bytes/sec,Temp Disk Write Bytes/sec,Temp Disk Read Operations/Sec,Temp Disk Write Operations/Sec,Temp Disk Queue Depth') + '&api-version=2024-02-01×pan=PT1M' + }; + data.metrics = {}; + + Object.keys(metric_endpoints).forEach(function (field) { + metrics = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + metric_endpoints[field]), 'value'); + for (k in metrics) { + key = Azure.getField(metrics[k], 'name.value').replace(/(\s|\/)+/g, ''); + if (metrics[k].timeseries.length === 0) { + metrics[k].timeseries.push({ 'data': ['nodata'] }) + } + data.metrics[key] = Azure.getField(metrics[k], 'timeseries.0.data.0'); + } + }); + + data.health = Azure.getField(Azure.request('https://management.azure.com' + Azure.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'), 'value.0.properties'); + + return data + } + }; + + try { + Azure.setParams(JSON.parse(value)); + Azure.login(); + return JSON.stringify(Azure.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ AzureVM ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: resource_id + value: '{$AZURE.RESOURCE.ID}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure Virtual Machine"}' + tags: + - tag: component + value: raw + - uuid: 903b8b2724924d5e8627253d851f09e5 + name: 'Data disk latency' + type: DEPENDENT + key: azure.vm.disk.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time to complete each IO during the monitoring period for Data Disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DataDiskLatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 1dc9f8d45b6f48a38f701f089cbcb279 + name: 'Disk read' + type: DEPENDENT + key: azure.vm.disk.read.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Bytes read from the disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DiskReadBytes.total + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: cd3240d31a4f42a89b5c9817ea288b5a + name: 'Disk IOPS read' + type: DEPENDENT + key: azure.vm.disk.read.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'The count of read operations from the disk per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DiskReadOperationsSec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: b5e2070bde1444ea809ba4e0a29b05d9 + name: 'Disk write' + type: DEPENDENT + key: azure.vm.disk.write.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Bytes written to the disk during the monitoring period.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DiskWriteBytes.total + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 0d93d1b510614c1f83418bd481f1e7cb + name: 'Disk IOPS write' + type: DEPENDENT + key: azure.vm.disk.write.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'The count of write operations to the disk per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DiskWriteOperationsSec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 3a30a59aabd54c8b8feb1f4a8ba06db5 + name: 'Inbound flows' + type: DEPENDENT + key: azure.vm.flows.inbound + delay: '0' + value_type: FLOAT + description: 'The number of current flows in the inbound direction (the traffic going into the VM).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.InboundFlows.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: network + - uuid: 3964ffbb7ea949f69863edcf91f5c555 + name: 'Inbound flows max creation rate' + type: DEPENDENT + key: azure.vm.flows.inbound.max + delay: '0' + value_type: FLOAT + description: 'Maximum creation rate of the inbound flows (the traffic going into the VM).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.InboundFlowsMaximumCreationRate.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: network + - uuid: 2084cb1d010a4ab494c0826c458d922a + name: 'Outbound flows' + type: DEPENDENT + key: azure.vm.flows.outbound + delay: '0' + value_type: FLOAT + description: 'The number of current flows in the outbound direction (the traffic going out of the VM).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OutboundFlows.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: network + - uuid: eac3e6b53d394e3289fc03bf5772799c + name: 'Outbound flows max creation rate' + type: DEPENDENT + key: azure.vm.flows.outbound.max + delay: '0' + value_type: FLOAT + description: 'Maximum creation rate of the outbound flows (the traffic going out of the VM).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OutboundFlowsMaximumCreationRate.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: network + - uuid: 0a354c9b104b468d9749adfd28d1373e + name: 'Available memory' + type: DEPENDENT + key: azure.vm.memory.available + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of physical memory, in bytes, immediately available for the allocation to a process or for a system use in the virtual machine.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.AvailableMemoryBytes.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: memory + - uuid: 411c5f6fcb374c4c90e2951a546c0c08 + name: 'Network in total' + type: DEPENDENT + key: azure.vm.network.in.total + delay: '0' + value_type: FLOAT + units: B + description: 'The number of bytes received by the VM via all network interfaces (incoming traffic).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.NetworkInTotal.total + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: network + - uuid: ee2ef1d1e2844ae8be2a5f04c86631ba + name: 'Network out total' + type: DEPENDENT + key: azure.vm.network.out.total + delay: '0' + value_type: FLOAT + units: B + description: 'The number of bytes sent by the VM via all network interfaces (outgoing traffic).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.NetworkOutTotal.total + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: network + - uuid: 9d42609950864c899a0d63b94f1d2235 + name: 'OS disk used burst BPS credits' + type: DEPENDENT + key: azure.vm.os.disk.bandwidth.burst.used + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the OS disk burst bandwidth credits used so far.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskUsedBurstBPSCreditsPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 24c58e473c5c4b8388a0e78ae38378fc + name: 'OS disk bandwidth consumed' + type: DEPENDENT + key: azure.vm.os.disk.bandwidth.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the operating system disk bandwidth consumed per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskBandwidthConsumedPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 7d0ca132bc264ac08e3c55809bdc40d1 + name: 'OS disk max burst bandwidth' + type: DEPENDENT + key: azure.vm.os.disk.bandwidth.max + delay: '0' + value_type: FLOAT + units: Bps + description: 'Maximum byte-per-second throughput that the OS disk can achieve with bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskMaxBurstBandwidth.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 5cc422b7da3145fa885a88bb6165e3b9 + name: 'OS disk target bandwidth' + type: DEPENDENT + key: azure.vm.os.disk.bandwidth.target + delay: '0' + value_type: FLOAT + units: Bps + description: 'Baseline byte-per-second throughput that the OS disk can achieve without bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskTargetBandwidth.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: c08f45df2e594e1fab01ba63df7da05b + name: 'OS disk used burst IO credits' + type: DEPENDENT + key: azure.vm.os.disk.iops.burst.used + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the OS disk burst I/O credits used so far.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskUsedBurstIOCreditsPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 33a7fff9758046e3be07dad6c0a710ca + name: 'OS disk IOPS consumed' + type: DEPENDENT + key: azure.vm.os.disk.iops.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the operating system disk I/Os consumed per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskIOPSConsumedPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 8374282688dc4fabb770c07eb335c666 + name: 'OS disk max burst IOPS' + type: DEPENDENT + key: azure.vm.os.disk.iops.max + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Maximum IOPS that the OS disk can achieve with bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskMaxBurstIOPS.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 556941b1df5d470f8de628230b085623 + name: 'OS disk target IOPS' + type: DEPENDENT + key: azure.vm.os.disk.iops.target + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Baseline IOPS that the OS disk can achieve without bursting.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskTargetIOPS.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 3932b607cff14ee0a891c96587438807 + name: 'OS disk latency' + type: DEPENDENT + key: azure.vm.os.disk.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time to complete each IO during the monitoring period for OS Disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskLatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: ca8fe9d0ea58482c9bb8b83a716362a2 + name: 'OS disk queue depth' + type: DEPENDENT + key: azure.vm.os.disk.queue.depth + delay: '0' + value_type: FLOAT + description: 'The OS disk queue depth (or queue length).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskQueueDepth.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 30265aac759d45769769eae081f570ac + name: 'OS disk read rate' + type: DEPENDENT + key: azure.vm.os.disk.read.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes/sec read from a single disk during the monitoring period - for an OS disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskReadBytessec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: f11fcbbd63234993a9c301dc8bac3e80 + name: 'OS disk IOPS read' + type: DEPENDENT + key: azure.vm.os.disk.read.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Read IOPS from a single disk during the monitoring period - for an OS disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskReadOperationsSec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 7645519a786b42908f1ec693128899c2 + name: 'OS disk write rate' + type: DEPENDENT + key: azure.vm.os.disk.write.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes/sec written to a single disk during the monitoring period - for an OS disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskWriteBytessec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 1e9392bc0c934e7d93f743c86e36e23e + name: 'OS disk IOPS write' + type: DEPENDENT + key: azure.vm.os.disk.write.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Write IOPS from a single disk during the monitoring period - for an OS disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.OSDiskWriteOperationsSec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: d6fcff826cfa486d945f33708be2f630 + name: 'Premium data disk cache read hit in %' + type: DEPENDENT + key: azure.vm.premium.data.disk.cache.read.hit + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of premium data disk cache read hit.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PremiumDataDiskCacheReadHit.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 288853ee5d08442fa43f8df1dfcc7823 + name: 'Premium data disk cache read miss in %' + type: DEPENDENT + key: azure.vm.premium.data.disk.cache.read.miss + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of premium data disk cache read miss.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PremiumDataDiskCacheReadMiss.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 66b629ae3d7e4abeaf0282414c91876f + name: 'Premium OS disk cache read hit in %' + type: DEPENDENT + key: azure.vm.premium.os.disk.cache.read.hit + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of premium OS disk cache read hit.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PremiumOSDiskCacheReadHit.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 3927f34d5d0649d7ac29703f64054dbf + name: 'Premium OS disk cache read miss in %' + type: DEPENDENT + key: azure.vm.premium.os.disk.cache.read.miss + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of premium OS disk cache read miss.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PremiumOSDiskCacheReadMiss.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 7d2ca29fce9a4c9ba60279f07de73089 + name: 'Temp disk latency' + type: DEPENDENT + key: azure.vm.temp.disk.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time to complete each IO during the monitoring period for temp disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.TempDiskLatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 67638ce2228e4f5d9f4aae44d9c4a47f + name: 'Temp disk queue depth' + type: DEPENDENT + key: azure.vm.temp.disk.queue.depth + delay: '0' + value_type: FLOAT + description: 'Temp Disk queue depth (or queue length).' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.TempDiskQueueDepth.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: f07200debf2d49dba3c0a63102258c6c + name: 'Temp disk read rate' + type: DEPENDENT + key: azure.vm.temp.disk.read.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes/Sec read from a single disk during the monitoring period for temp disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.TempDiskReadBytessec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 4b7b661391ac46179913a0e1bf012e76 + name: 'Temp disk IOPS read' + type: DEPENDENT + key: azure.vm.temp.disk.read.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Read IOPS from a single disk during the monitoring period for temp disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.TempDiskReadOperationsSec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: dc3601128000423b8b46ef1046562105 + name: 'Temp disk write rate' + type: DEPENDENT + key: azure.vm.temp.disk.write.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes/Sec written to a single disk during the monitoring period for temp disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.TempDiskWriteBytessec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: d03cdea05ae549ffb63c6db4a7e40c13 + name: 'Temp disk IOPS write' + type: DEPENDENT + key: azure.vm.temp.disk.write.ops + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Bytes/Sec written to a single disk during the monitoring period for temp disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.TempDiskWriteOperationsSec.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: d6e85395e34b4288988a5287d287f182 + name: 'VM uncached bandwidth consumed' + type: DEPENDENT + key: azure.vm.uncached.bandwidth.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the uncached disk bandwidth consumed by the VM.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.VMUncachedBandwidthConsumedPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + - uuid: 124203560922429bb32b76c45f24b2b9 + name: 'VM uncached IOPS consumed' + type: DEPENDENT + key: azure.vm.uncached.iops.consumed + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the uncached disk IOPS consumed by the VM.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.VMUncachedIOPSConsumedPercentage.average + error_handler: DISCARD_VALUE + master_item: + key: azure.vm.data.get + tags: + - tag: component + value: storage + tags: + - tag: class + value: software + - tag: target + value: azure + macros: + - macro: '{$AZURE.APP.ID}' + description: 'The App ID of Microsoft Azure.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Microsoft Azure password.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.ID}' + description: 'Microsoft Azure virtual machine ID.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Microsoft Azure subscription ID.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Microsoft Azure tenant ID.' + - macro: '{$AZURE.VM.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of CPU utilization, expressed in %.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure Virtual Machine", e.g. {$HTTP.TLS.VERIFY:"Azure Virtual Machine"}.' + dashboards: + - uuid: 527e3c432d3842d0968480d8f91a712e + name: 'Overview Azure Virtual Machine' + pages: + - widgets: + - type: clock + name: 'Local time' + width: '12' + height: '3' + - type: item + name: 'CPU credits consumed' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.cpu.credits.consumed + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Network in' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.network.in.total + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Disk read rate' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.disk.read.bytes + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'OS disk read operations/sec' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.os.disk.read.ops + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Inbound flows' + 'y': '15' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.flows.inbound + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Available memory' + x: '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.memory.available + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'CPU credits remaining' + x: '12' + 'y': '3' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.cpu.credits.remaining + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Network out' + x: '12' + 'y': '6' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.network.out.total + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Disk write rate' + x: '12' + 'y': '9' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.disk.write.bytes + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'OS disk write operations/sec' + x: '12' + 'y': '12' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.os.disk.write.ops + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Outbound flows' + x: '12' + 'y': '15' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.flows.outbound + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Availability state' + x: '24' + width: '12' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.availability.state + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: up_color + value: FF0000 + - type: graph + name: 'Percentage CPU' + x: '24' + 'y': '3' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Virtual Machine by HTTP' + name: 'Azure: Percentage CPU' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Network traffic' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Virtual Machine by HTTP' + name: 'Azure: Network traffic' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: 'Disk read/write bytes' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Virtual Machine by HTTP' + name: 'Azure: Disk read/write bytes' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: 'OS disk read/write rates' + x: '24' + 'y': '12' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Virtual Machine by HTTP' + name: 'Azure: OS disk read/write IOPS' + - type: STRING + name: reference + value: AAAAD + - type: graph + name: Flows + x: '24' + 'y': '15' + width: '48' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Azure Virtual Machine by HTTP' + name: 'Azure: Flows' + - type: STRING + name: reference + value: AAAAE + - type: itemhistory + name: 'Availability status detailed' + x: '36' + width: '36' + height: '3' + fields: + - type: INTEGER + name: columns.0.display + value: '4' + - type: ITEM + name: columns.0.itemid + value: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.availability.details + - type: INTEGER + name: columns.0.monospace_font + value: '1' + - type: STRING + name: columns.0.name + value: 'Azure: Availability status detailed' + - type: STRING + name: reference + value: BAAAA + - type: INTEGER + name: show_timestamp + value: '1' + valuemaps: + - uuid: 38c8ce1516704ec2a6f1ea9686db56b9 + name: 'Azure resource health state' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Unknown + graphs: + - uuid: 781dd83ed494465bbf2c16efbc753a51 + name: 'Azure: Data disk read/write Bps' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.data.disk.read.bps + - sortorder: '1' + color: F63100 + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.data.disk.write.bps + - uuid: 7d198b2f6186498ab39ece80f3f7b30e + name: 'Azure: Data disk read/write IOPS' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.data.disk.read.ops + - sortorder: '1' + color: F63100 + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.data.disk.write.ops + - uuid: a2d0eb282276486896067f8a30f8ea51 + name: 'Azure: Disk read/write bytes' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.disk.read.bytes + - sortorder: '1' + color: F63100 + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.disk.write.bytes + - uuid: 58a8c6942314408ab0e88b15d53f67e5 + name: 'Azure: Disk read/write IOPS' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.disk.read.ops + - sortorder: '1' + color: F63100 + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.disk.write.ops + - uuid: b427ad3dbb8d4f8caf1edfb0cab04733 + name: 'Azure: Flows' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.flows.inbound + - sortorder: '1' + color: F63100 + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.flows.outbound + - sortorder: '2' + color: 00611C + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.flows.inbound.max + - sortorder: '3' + color: F7941D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.flows.outbound.max + - uuid: f0f37dc8840a45ba8e8cb62f5fea6804 + name: 'Azure: Network traffic' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.network.in.total + - sortorder: '1' + color: F63100 + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.network.out.total + - uuid: 41bd1642704c4d3fbe4fb34c8c389320 + name: 'Azure: OS disk read/write Bps' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.os.disk.read.bps + - sortorder: '1' + color: F63100 + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.os.disk.write.bps + - uuid: df77fe1de4ae46f98744ff73ed427b3b + name: 'Azure: OS disk read/write IOPS' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.os.disk.read.ops + - sortorder: '1' + color: F63100 + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.os.disk.write.ops + - uuid: 39ca70fc12cf4c6d9fdc23e8562b2f13 + name: 'Azure: Percentage CPU' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.cpu.utilization + - uuid: 3051d683b44b48ee94030465254abc7f + name: 'Azure: Premium data disk cache read' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.premium.data.disk.cache.read.hit + - sortorder: '1' + color: F63100 + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.premium.data.disk.cache.read.miss + - uuid: d727dc11deaa46b282892552c9b03752 + name: 'Azure: Premium OS disk cache read' + graph_items: + - color: 199C0D + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.premium.os.disk.cache.read.hit + - sortorder: '1' + color: F63100 + item: + host: 'Azure Virtual Machine by HTTP' + key: azure.vm.premium.os.disk.cache.read.miss diff --git a/Azure_by_HTTP.yaml b/Azure_by_HTTP.yaml new file mode 100644 index 0000000..df5075b --- /dev/null +++ b/Azure_by_HTTP.yaml @@ -0,0 +1,2911 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + - uuid: 748ad4d098d447d492bb935c907f652f + name: Databases + - uuid: 137f19e6e2dc4219b33553b812627bc2 + name: 'Virtual machines' + templates: + - uuid: fa58228fee8a4e34a7c6503950d1c615 + template: 'Azure by HTTP' + name: 'Azure by HTTP' + description: | + This template is designed to monitor Microsoft Azure by HTTP. + It works without any external scripts and uses the script item. + Currently the template supports the discovery of virtual machines (VMs), Cosmos DB for MongoDB, storage accounts, Microsoft SQL, MySQL, and PostgreSQL servers. + + Setup: + 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. + `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` + See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. + 2. Link the template to a host. + 3. Configure the macros: `{$AZURE.APP.ID}`, `{$AZURE.PASSWORD}`, `{$AZURE.TENANT.ID}`, and `{$AZURE.SUBSCRIPTION.ID}`. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-7 + groups: + - name: Templates/Cloud + items: + - uuid: 7b2fe9a7ee164718933eb456b0068fea + name: 'Get errors' + type: DEPENDENT + key: azure.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.get.resources + tags: + - tag: component + value: raw + triggers: + - uuid: 502cb582546046a29267715763c46bff + expression: 'length(last(/Azure by HTTP/azure.get.errors))>0' + name: 'Azure: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: fb6abf3631b240b08357ea9ce9ba89a4 + name: 'Get resources' + type: SCRIPT + key: azure.get.resources + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Azure = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Azure.params = params; + Azure.tls = new CTlsConfig(params.tls_verify); + }, + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + var response, request = new HttpRequest(Azure.tls.options); + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + request.setProxy(Azure.params.proxy); + } + if (Azure.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + Azure.token); + } + + Zabbix.log(4, '[ Azure ] Sending request: ' + url); + + if (data !== '') { + request.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = request.post(url, data); + } + else { + response = request.get(url); + } + + Zabbix.log(4, '[ Azure ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + nextlink: function (data) { + next_data = data; + while ('nextLink' in next_data) { + next_data = Azure.request(next_data.nextLink); + next_data.value.forEach(function (value) { + data.value.push(value); + }); + } + + return data; + } + }; + + var result, + data = {}, + types = [ + {"method": "Microsoft.Compute/virtualMachines", "version": "2022-03-01"}, + {"method": "Microsoft.DBforMySQL/flexibleServers", "version": "2021-05-01"}, + {"method": "Microsoft.DBforMySQL/servers", "version": "2017-12-01"}, + {"method": "Microsoft.DBforPostgreSQL/flexibleServers", "version": "2021-06-01"}, + {"method": "Microsoft.DBforPostgreSQL/servers", "version": "2017-12-01"}, + {"method": "Microsoft.Sql/servers", "version": "2022-05-01-preview"}, + {"method": "Microsoft.DocumentDB/databaseAccounts", "version": "2022-11-15-preview"}, + {"method": "Microsoft.Compute/virtualMachineScaleSets", "version": "2024-03-01"}, + {"method": "Microsoft.Sql/managedInstances", "version": "2024-05-01-preview"}, + {"method": "Microsoft.DataProtection/backupVaults", "version": "2025-01-01"}, + {"method": "Microsoft.RecoveryServices/vaults", "version": "2025-02-28-preview"} + ]; + data['errors'] = {}, + data['resources'] = {}; + data.resources.value = []; + + try { + Azure.setParams(JSON.parse(value)); + + try { + result = Azure.request( + 'https://login.microsoftonline.com/' + encodeURIComponent(Azure.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(Azure.params.app_id) + '&client_secret=' + encodeURIComponent(Azure.params.password) + ); + + if ('access_token' in result) { + Azure.token = result['access_token']; + } else { + throw 'Auth response does not contain access token.'; + } + } + catch (error) { + data.errors.auth = error.toString(); + } + + if (!('auth' in data.errors)) { + try { + for (var i in types) { + if (types[i].method === "Microsoft.Sql/servers") { + mssql_servers = Azure.request('https://management.azure.com/subscriptions/' + encodeURIComponent(Azure.params.subscription_id) + '/providers/' + types[i].method + '?api-version=' + types[i].version); + + if ('nextLink' in mssql_servers) { + mssql_servers = Azure.nextlink(mssql_servers); + } + + if ('value' in mssql_servers && mssql_servers.value.length > 0) { + for (j in mssql_servers.value) { + mssql_dbs = Azure.request('https://management.azure.com' + mssql_servers.value[j].id + '/databases?api-version=' + types[i].version); + + if ('nextLink' in mssql_dbs) { + mssql_dbs = Azure.nextlink(mssql_dbs); + } + + mssql_dbs.value.forEach(function (value) { + raw_data.value.push(value); + }); + } + } + } + else { + raw_data = Azure.request('https://management.azure.com/subscriptions/' + encodeURIComponent(Azure.params.subscription_id) + '/providers/' + types[i].method + '?api-version=' + types[i].version); + + if ('nextLink' in raw_data) { + raw_data = Azure.nextlink(raw_data); + } + } + + raw_data.value.forEach(function (value) { + value.resourceGroup = value.id.split("/")[4]; + data.resources.value.push(value); + }); + } + } + catch (error) { + data.errors.resources = error.toString(); + } + } + } + catch (error) { + data.errors.params = error.toString(); + } + + if (Object.keys(data.errors).length !== 0) { + errors = 'Failed to receive data:'; + for (var error in data.errors) { + errors += '\n' + error + ' : ' + data.errors[error]; + } + data.errors = errors; + } + else { + data.errors = ''; + } + + return JSON.stringify(data); + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure"}' + tags: + - tag: component + value: raw + - uuid: 91b2290d65b949ad9ea801763c35cf40 + name: 'Get storage accounts' + type: SCRIPT + key: azure.get.storage.acc + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Azure = { + params: {}, + token: '', + + setParams: function (params) { + ['app_id', 'password', 'tenant_id', 'subscription_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Azure.params = params; + Azure.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + var response, login = new HttpRequest(Azure.tls.options); + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + login.setProxy(Azure.params.proxy); + } + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(Azure.params.tenant_id) + '/oauth2/token', + 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(Azure.params.app_id) + '&client_secret=' + encodeURIComponent(Azure.params.password) + ); + + if (login.getStatus() !== 200) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + try { + response = JSON.parse(response); + if (!response.hasOwnProperty('access_token')) { + throw null; + } + } + catch (error) { + throw 'Authentication response does not contain access token.'; + } + + Azure.token = response['access_token']; + }, + + request: function (url) { + var response, request = new HttpRequest(Azure.tls.options); + if (typeof Azure.params.proxy !== 'undefined' && Azure.params.proxy !== '') { + request.setProxy(Azure.params.proxy); + } + if (!Azure.token) { + throw 'Request does not contain access token.'; + } + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + Azure.token); + response = request.get(url); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getMetricsData: function () { + var metric = Azure.request('https://management.azure.com/subscriptions/' + encodeURIComponent(Azure.params.subscription_id) + '/providers/Microsoft.Storage/storageAccounts?api-version=2021-05-01'), + data = []; + + if (!metric.hasOwnProperty('value')) { + throw 'Failed getting required field. Check debug log for more information.'; + } + for (k in metric.value) { + id = Azure.getField(metric.value[k], 'id'); + json = {}; + input = id.split('/'); + for (var i = 1; i < input.length; i += 2) { + json[input[i]] = input[i + 1]; + } + data.push({ + 'name': Azure.getField(metric.value[k], 'name'), + 'id': id, + 'resourceGroup': Azure.getField(json, 'resourceGroups'), + 'location': Azure.getField(metric.value[k], 'location'), + 'token': Azure.token + }); + } + + return data; + } + }; + + try { + Azure.setParams(JSON.parse(value)); + Azure.login(); + return JSON.stringify(Azure.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Azure ] ERROR: ' + error); + return JSON.stringify({'error': error}); + } + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: app_id + value: '{$AZURE.APP.ID}' + - name: password + value: '{$AZURE.PASSWORD}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: subscription_id + value: '{$AZURE.SUBSCRIPTION.ID}' + - name: tenant_id + value: '{$AZURE.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure"}' + tags: + - tag: component + value: raw + - uuid: 2e425a9ef8d34ea68f7998ceed30ebc4 + name: 'Get storage accounts errors' + type: DEPENDENT + key: azure.get.storage.acc.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'The errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: azure.get.storage.acc + tags: + - tag: component + value: status + triggers: + - uuid: 253f0835cd134d2591bb2be1b9dc9b29 + expression: 'length(last(/Azure by HTTP/azure.get.storage.acc.errors))>0' + name: 'Azure: There are errors in storages requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + dependencies: + - name: 'Azure: There are errors in requests to API' + expression: 'length(last(/Azure by HTTP/azure.get.errors))>0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 3bfbfc8d770a4c77a17d62aaebb55e64 + name: 'Cosmos DB account discovery' + type: DEPENDENT + key: azure.cosmos.mongo.db.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#LOCATION}' + value: '{$AZURE.COSMOS.MONGO.DB.LOCATION.MATCHES}' + formulaid: C + - macro: '{#LOCATION}' + value: '{$AZURE.COSMOS.MONGO.DB.LOCATION.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$AZURE.COSMOS.MONGO.DB.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$AZURE.COSMOS.MONGO.DB.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#TYPE}' + value: ^Microsoft.DocumentDB/databaseAccounts + formulaid: G + description: 'The list of Cosmos databases provided by the subscription.' + host_prototypes: + - uuid: 16eec30e921e4627b3599b4d06e48072 + host: 'Azure Cosmos DB {#NAME}' + name: 'Azure Cosmos DB {#NAME}' + group_links: + - group: + name: Databases + macros: + - macro: '{$AZURE.RESOURCE.ID}' + value: '{#ID}' + description: 'Microsoft Azure resource ID.' + tags: + - tag: location + value: '{#LOCATION}' + - tag: resource-group + value: '{#GROUP}' + - tag: version + value: '{#VERSION}' + master_item: + key: azure.get.resources + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.resourceGroup + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#LOCATION}' + path: $.location + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + - lld_macro: '{#VERSION}' + path: $.kind + preprocessing: + - type: JSONPATH + parameters: + - $.resources.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + overrides: + - name: MongoDB + step: '1' + filter: + conditions: + - macro: '{#VERSION}' + value: ^MongoDB$ + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'Azure Cosmos DB for MongoDB by HTTP' + - uuid: c875a410ddd84ccfbc5b407cd6e34803 + name: 'Microsoft SQL databases discovery' + type: DEPENDENT + key: azure.mssql.databases.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#LOCATION}' + value: '{$AZURE.MSSQL.DB.LOCATION.MATCHES}' + formulaid: C + - macro: '{#LOCATION}' + value: '{$AZURE.MSSQL.DB.LOCATION.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$AZURE.MSSQL.DB.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$AZURE.MSSQL.DB.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#SIZE}' + value: '{$AZURE.MSSQL.DB.SIZE.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + - macro: '{#TYPE}' + value: ^Microsoft.Sql/servers/databases + formulaid: H + description: 'The list of Microsoft SQL databases provided by the subscription.' + host_prototypes: + - uuid: 2aaf7dc7e9f04ccf9dd91fcd803fa076 + host: 'Azure Microsoft SQL database {#NAME}' + name: 'Azure Microsoft SQL database {#NAME}' + group_links: + - group: + name: Databases + macros: + - macro: '{$AZURE.RESOURCE.ID}' + value: '{#ID}' + description: 'Microsoft Azure resource ID.' + tags: + - tag: location + value: '{#LOCATION}' + - tag: resource-group + value: '{#GROUP}' + - tag: size + value: '{#SIZE}' + - tag: version + value: '{#VERSION}' + master_item: + key: azure.get.resources + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.resourceGroup + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#LOCATION}' + path: $.location + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#SIZE}' + path: $.sku.name + - lld_macro: '{#TYPE}' + path: $.type + - lld_macro: '{#VERSION}' + path: $.kind + preprocessing: + - type: JSONPATH + parameters: + - $.resources.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + overrides: + - name: Serverless + step: '1' + filter: + conditions: + - macro: '{#VERSION}' + value: '^(?=.*serverless)(?=.*vcore).*$' + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'Azure Microsoft SQL Serverless Database by HTTP' + - name: Server + step: '2' + filter: + conditions: + - macro: '{#VERSION}' + value: '^(?!.*serverless)(?=.*vcore).*$' + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'Azure Microsoft SQL Database by HTTP' + - name: DTU-based + step: '3' + filter: + conditions: + - macro: '{#VERSION}' + value: '^(?!.*serverless)(?!.*vcore).*$' + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'Azure Microsoft SQL DTU Database by HTTP' + - uuid: 7fafbef68f8b46d083eb43da7cd1e2cc + name: 'MySQL servers discovery' + type: DEPENDENT + key: azure.mysql.servers.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#LOCATION}' + value: '{$AZURE.MYSQL.DB.LOCATION.MATCHES}' + formulaid: C + - macro: '{#LOCATION}' + value: '{$AZURE.MYSQL.DB.LOCATION.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$AZURE.MYSQL.DB.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$AZURE.MYSQL.DB.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#TYPE}' + value: ^Microsoft.DBforMySQL + formulaid: G + description: 'The list of MySQL servers provided by the subscription.' + host_prototypes: + - uuid: 55b87078c14c4561b53e64af5ed77d61 + host: 'Azure MySQL server {#NAME}' + name: 'Azure MySQL server {#NAME}' + group_links: + - group: + name: Databases + macros: + - macro: '{$AZURE.RESOURCE.ID}' + value: '{#ID}' + description: 'Microsoft Azure resource ID.' + tags: + - tag: location + value: '{#LOCATION}' + - tag: resource-group + value: '{#GROUP}' + - tag: size + value: '{#SIZE}' + - tag: version + value: '{#VERSION}' + master_item: + key: azure.get.resources + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.resourceGroup + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#LOCATION}' + path: $.location + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#SIZE}' + path: $.sku.name + - lld_macro: '{#TYPE}' + path: $.type + - lld_macro: '{#VERSION}' + path: $.properties.version + preprocessing: + - type: JSONPATH + parameters: + - $.resources.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + overrides: + - name: 'Flexible server' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: Microsoft.DBforMySQL/flexibleServers + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'Azure MySQL Flexible Server by HTTP' + - name: 'Single server' + step: '2' + filter: + conditions: + - macro: '{#TYPE}' + value: Microsoft.DBforMySQL/servers + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'Azure MySQL Single Server by HTTP' + - uuid: a4b35b5fe8c04b52a9640f2f41013230 + name: 'PostgreSQL servers discovery' + type: DEPENDENT + key: azure.pgsql.servers.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#LOCATION}' + value: '{$AZURE.PGSQL.DB.LOCATION.MATCHES}' + formulaid: C + - macro: '{#LOCATION}' + value: '{$AZURE.PGSQL.DB.LOCATION.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$AZURE.PGSQL.DB.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$AZURE.PGSQL.DB.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#TYPE}' + value: ^Microsoft.DBforPostgreSQL + formulaid: G + description: 'The list of PostgreSQL servers provided by the subscription.' + host_prototypes: + - uuid: 54f0e0ec288f4feb9a2dc58a8726bd1d + host: 'Azure PostgreSQL server {#NAME}' + name: 'Azure PostgreSQL server {#NAME}' + group_links: + - group: + name: Databases + macros: + - macro: '{$AZURE.RESOURCE.ID}' + value: '{#ID}' + description: 'Microsoft Azure resource ID.' + tags: + - tag: location + value: '{#LOCATION}' + - tag: resource-group + value: '{#GROUP}' + - tag: size + value: '{#SIZE}' + - tag: version + value: '{#VERSION}' + master_item: + key: azure.get.resources + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.resourceGroup + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#LOCATION}' + path: $.location + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#SIZE}' + path: $.sku.name + - lld_macro: '{#TYPE}' + path: $.type + - lld_macro: '{#VERSION}' + path: $.properties.version + preprocessing: + - type: JSONPATH + parameters: + - $.resources.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + overrides: + - name: 'Flexible server' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: Microsoft.DBforPostgreSQL/flexibleServers + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'Azure PostgreSQL Flexible Server by HTTP' + - name: 'Single server' + step: '2' + filter: + conditions: + - macro: '{#TYPE}' + value: Microsoft.DBforPostgreSQL/servers + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + templates: + - name: 'Azure PostgreSQL Single Server by HTTP' + - uuid: 006fc1e9e61d45c5a795a251a3237983 + name: 'Virtual machine scale set discovery' + type: DEPENDENT + key: azure.scaleset.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#LOCATION}' + value: '{$AZURE.SCALESET.LOCATION.MATCHES}' + formulaid: C + - macro: '{#LOCATION}' + value: '{$AZURE.SCALESET.LOCATION.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$AZURE.SCALESET.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$AZURE.SCALESET.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#TYPE}' + value: ^Microsoft.Compute/virtualMachineScaleSets$ + formulaid: G + description: 'The list of virtual machine scale sets provided by the subscription.' + host_prototypes: + - uuid: 1cbeb513fe3648b6829836800952c9c7 + host: 'Azure VM scale set {#NAME}' + name: 'Azure VM scale set {#NAME}' + group_links: + - group: + name: 'Virtual machines' + templates: + - name: 'Azure VM Scale Set by HTTP' + macros: + - macro: '{$AZURE.RESOURCE.ID}' + value: '{#ID}' + description: 'Microsoft Azure resource ID.' + tags: + - tag: location + value: '{#LOCATION}' + - tag: orchestration + value: '{#ORCHESTRATION}' + - tag: os + value: '{#OS}' + - tag: resource-group + value: '{#GROUP}' + master_item: + key: azure.get.resources + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.resourceGroup + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#LOCATION}' + path: $.location + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#ORCHESTRATION}' + path: $.properties.orchestrationMode + - lld_macro: '{#OS}' + path: $.properties.virtualMachineProfile.storageProfile.osDisk.osType + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.resources.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 34e88b4d994f436e93381e41f5ba2bde + name: 'Azure SQL managed instance discovery' + type: DEPENDENT + key: azure.sql_inst.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#LOCATION}' + value: '{$AZURE.SQL.INST.LOCATION.MATCHES}' + formulaid: C + - macro: '{#LOCATION}' + value: '{$AZURE.SQL.INST.LOCATION.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$AZURE.SQL.INST.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$AZURE.SQL.INST.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#TYPE}' + value: ^Microsoft.Sql/managedInstances$ + formulaid: G + description: 'The list of Azure SQL managed instances provided by the subscription.' + host_prototypes: + - uuid: 5211d232275145598294fc35bac96075 + host: 'Azure SQL managed instance {#NAME}' + name: 'Azure SQL managed instance {#NAME}' + group_links: + - group: + name: Databases + templates: + - name: 'Azure SQL Managed Instance by HTTP' + macros: + - macro: '{$AZURE.RESOURCE.ID}' + value: '{#ID}' + description: 'Microsoft Azure resource ID.' + tags: + - tag: location + value: '{#LOCATION}' + - tag: resource-group + value: '{#GROUP}' + master_item: + key: azure.get.resources + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.resourceGroup + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#LOCATION}' + path: $.location + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.resources.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3b9bde32dd6b4e3aa2dd8d7949f655e9 + name: 'Storage accounts discovery' + type: DEPENDENT + key: azure.storage.acc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#LOCATION}' + value: '{$AZURE.STORAGE.ACC.LOCATION.MATCHES}' + formulaid: C + - macro: '{#LOCATION}' + value: '{$AZURE.STORAGE.ACC.LOCATION.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$AZURE.STORAGE.ACC.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$AZURE.STORAGE.ACC.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'The list of all storage accounts available under the subscription.' + item_prototypes: + - uuid: 3361508a601748f5aca339f952430889 + name: 'Storage account [{#NAME}]: Get data' + type: SCRIPT + key: 'azure.get.storage.acc[{#NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var AzureStorage = { + params: {}, + + setParams: function (params) { + ['token', 'id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + AzureStorage.params = params; + AzureStorage.tls = new CTlsConfig(params.tls_verify); + }, + + request: function (url) { + var response, request = new HttpRequest(AzureStorage.tls.options); + if (typeof AzureStorage.params.proxy !== 'undefined' && AzureStorage.params.proxy !== '') { + request.setProxy(AzureStorage.params.proxy); + } + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + AzureStorage.params.token); + Zabbix.log(4, '[ Azure ] Sending request: ' + url); + response = request.get(url); + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path + ' input data: ' + JSON.stringify(data); + } + + data = data[step]; + } + + return data; + }, + + getMetricsData: function () { + var data = {}; + start_date = new Date((new Date().getTime()) - 4200000).toISOString().replace(/\.\d+/, ''); + end_date = new Date((new Date().getTime()) - 600000).toISOString().replace(/\.\d+/, ''); + endpoints = { + 'tableServices': '/tableServices/default/providers/Microsoft.Insights/metrics?metricnames=TableCapacity,TableCount,TableEntityCount,Transactions,Ingress,Egress,SuccessServerLatency,SuccessE2ELatency,Availability&api-version=2021-05-01&interval=PT1H×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date), + 'blobServices': '/blobServices/default/providers/Microsoft.Insights/metrics?metricnames=BlobCapacity,BlobCount,ContainerCount,IndexCapacity,Transactions,Ingress,Egress,SuccessServerLatency,SuccessE2ELatency,Availability&api-version=2021-05-01&interval=PT1H×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date), + 'fileServices': '/fileServices/default/providers/Microsoft.Insights/metrics?metricnames=FileCapacity,FileCount,FileShareCount,FileShareSnapshotCount,FileShareSnapshotSize,FileShareCapacityQuota,Transactions,Ingress,Egress,SuccessServerLatency,SuccessE2ELatency,Availability&api-version=2021-05-01&interval=PT1H×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date), + 'storageAccount': '/providers/Microsoft.Insights/metrics?metricnames=UsedCapacity,Transactions,Ingress,Egress,SuccessServerLatency,SuccessE2ELatency,Availability&api-version=2021-05-01&interval=PT1H×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date), + 'queueServices': '/queueServices/default/providers/Microsoft.Insights/metrics?metricnames=QueueCapacity,QueueCount,QueueMessageCount,Transactions,Ingress,Egress,SuccessServerLatency,SuccessE2ELatency,Availability&api-version=2021-05-01&interval=PT1H×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date) + }; + + Object.keys(endpoints).forEach(function (field) { + data[field] = {}; + metrics = AzureStorage.request('https://management.azure.com' + AzureStorage.params.id + endpoints[field]); + + if (!metrics.hasOwnProperty('value')) { + throw 'Failed getting required field. Check debug log for more information.'; + } + + for (k in metrics.value) { + key = AzureStorage.getField(metrics.value[k], 'name.value') + if (metrics.value[k].timeseries.length === 0) { + metrics.value[k].timeseries.push({ 'data': ['nodata'] }) + } + data[field][key] = AzureStorage.getField(metrics.value[k], 'timeseries.0.data.0'); + } + }); + return data + } + + }; + + try { + AzureStorage.setParams(JSON.parse(value)); + return JSON.stringify(AzureStorage.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Azure ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'The HTTP API endpoint that returns storage metrics with the name `[{#NAME}]`.' + timeout: '{$AZURE.DATA.TIMEOUT}' + parameters: + - name: id + value: '{#ID}' + - name: proxy + value: '{$AZURE.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Azure"}' + - name: token + value: '{#TOKEN}' + tags: + - tag: component + value: raw + - tag: component + value: storages + - tag: storage + value: '{#NAME}' + - uuid: 08ce66b39b084182bdb60a5556b88c88 + name: 'Storage account [{#NAME}]: Availability' + type: DEPENDENT + key: 'azure.storage.availability[{#NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + The percentage of availability for the storage service or a specified API operation. + Availability is calculated by taking the `TotalBillableRequests` value and dividing it by the number of applicable requests, including those that produced unexpected errors. + All unexpected errors result in reduced availability for the storage service or the specified API operation. + preprocessing: + - type: JSONPATH + parameters: + - $.storageAccount.Availability.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: common + - tag: storage + value: '{#NAME}' + trigger_prototypes: + - uuid: 6a0b3edebded4d848ad76f86f8152377 + expression: '(min(/Azure by HTTP/azure.storage.availability[{#NAME}],#3))<{$AZURE.STORAGE.ACC.AVAILABILITY:"{#NAME}"}' + name: 'Azure: Storage account [{#NAME}]: Availability is low' + event_name: 'Azure: Storage account [{#NAME} availability is too low (less than {$AZURE.STORAGE.ACC.AVAILABILITY:"{#NAME}"}%)' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 9ae0af76a37047f5ba84de2f43dfb5c4 + name: 'Storage account [{#NAME}]: Blob Availability' + type: DEPENDENT + key: 'azure.storage.blob.availability[{#NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + The percentage of availability for the storage service or a specified API operation. + Availability is calculated by taking the `TotalBillableRequests` value and dividing it by the number of applicable requests, including those that produced unexpected errors. + All unexpected errors result in reduced availability for the storage service or the specified API operation. + preprocessing: + - type: JSONPATH + parameters: + - $.blobServices.Availability.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: blob + - tag: storage + value: '{#NAME}' + trigger_prototypes: + - uuid: 4cd8ac56b50c4120bf9de56bb1f06245 + expression: '(min(/Azure by HTTP/azure.storage.blob.availability[{#NAME}],#3))<{$AZURE.STORAGE.ACC.BLOB.AVAILABILITY:"{#NAME}"}' + name: 'Azure: Storage account [{#NAME}]: Blob Availability is low' + event_name: 'Azure: Storage account [{#NAME} blob availability are too low (less than {$AZURE.STORAGE.ACC.BLOB.AVAILABILITY:"{#NAME}"}%)' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: c6437ade4fee44f783ab379fb179508d + name: 'Storage account [{#NAME}]: Blob Capacity' + type: DEPENDENT + key: 'azure.storage.blob.capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of storage used by the blob service of the storage account with the name `[{#NAME}]`, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.blobServices.BlobCapacity.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: blob + - tag: storage + value: '{#NAME}' + - uuid: 707be15f02a141548ce5f89097c303a0 + name: 'Storage account [{#NAME}]: Blob Container Count' + type: DEPENDENT + key: 'azure.storage.blob.container.count[{#NAME}]' + delay: '0' + description: 'The number of containers in the storage account with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - $.blobServices.ContainerCount.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: blob + - tag: storage + value: '{#NAME}' + - uuid: 9bd8b8f1b5844298a245d449548de46e + name: 'Storage account [{#NAME}]: Blob Count' + type: DEPENDENT + key: 'azure.storage.blob.count[{#NAME}]' + delay: '0' + description: 'The number of blob objects stored in the storage account with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - $.blobServices.BlobCount.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: blob + - tag: storage + value: '{#NAME}' + - uuid: ae28bbd289644619b20b1907212d8293 + name: 'Storage account [{#NAME}]: Blob Egress' + type: DEPENDENT + key: 'azure.storage.blob.engress[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: | + The amount of egress data. This number includes egress to external client from Azure Storage and also egress within Azure. + As a result, this number does not reflect billable egress. + preprocessing: + - type: JSONPATH + parameters: + - $.blobServices.Egress.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: blob + - tag: storage + value: '{#NAME}' + - uuid: 8e73a2aba92444dd9c02c6f94227a4e5 + name: 'Storage account [{#NAME}]: Blob Index Capacity' + type: DEPENDENT + key: 'azure.storage.blob.index.capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of storage with the name `[{#NAME}]` used by the Azure Data Lake Storage Gen2 hierarchical index.' + preprocessing: + - type: JSONPATH + parameters: + - $.blobServices.IndexCapacity.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: blob + - tag: storage + value: '{#NAME}' + - uuid: ff40325efb174839bef7bc775049837e + name: 'Storage account [{#NAME}]: Blob Ingress' + type: DEPENDENT + key: 'azure.storage.blob.ingress[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of ingress data, expressed in bytes. This number includes ingress from an external client into Azure Storage and also ingress within Azure.' + preprocessing: + - type: JSONPATH + parameters: + - $.blobServices.Ingress.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: blob + - tag: storage + value: '{#NAME}' + - uuid: e17d6f2ed79c4b5eaa54730c82d6840f + name: 'Storage account [{#NAME}]: Blob Success E2E Latency' + type: DEPENDENT + key: 'azure.storage.blob.success.e2e.latency[{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The average end-to-end latency of successful requests made to a storage service or the specified API operation, expressed in milliseconds. + This value includes the required processing time within Azure Storage to read the request, send the response, and receive acknowledgment of the response. + preprocessing: + - type: JSONPATH + parameters: + - $.blobServices.SuccessE2ELatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: blob + - tag: storage + value: '{#NAME}' + - uuid: 727fb792fe5c4229995f7aa5bbb681ed + name: 'Storage account [{#NAME}]: Blob Success Server Latency' + type: DEPENDENT + key: 'azure.storage.blob.success.server.latency[{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The average time used to process a successful request by Azure Storage. + This value does not include the network latency specified in `SuccessE2ELatency`. + preprocessing: + - type: JSONPATH + parameters: + - $.blobServices.SuccessServerLatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: blob + - tag: storage + value: '{#NAME}' + - uuid: 48ecb880def34474b73a03eb895db3ea + name: 'Storage account [{#NAME}]: Blob Transactions' + type: DEPENDENT + key: 'azure.storage.blob.transactions[{#NAME}]' + delay: '0' + description: | + The number of requests made to the storage service or a specified API operation. + This number includes successful and failed requests and also requests that produced errors. + Use `ResponseType` dimension for the number of different types of responses. + preprocessing: + - type: JSONPATH + parameters: + - $.blobServices.Transactions.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: blob + - tag: storage + value: '{#NAME}' + - uuid: 4198807e1e08439a9009481ddcfd3bab + name: 'Storage account [{#NAME}]: Egress' + type: DEPENDENT + key: 'azure.storage.engress[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: | + The amount of egress data. This number includes egress to external client from Azure Storage and also egress within Azure. + As a result, this number does not reflect billable egress. + preprocessing: + - type: JSONPATH + parameters: + - $.storageAccount.Egress.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: common + - tag: storage + value: '{#NAME}' + - uuid: 43069f165849449d8403d1a8c82fe634 + name: 'Storage account [{#NAME}]: File Capacity' + type: DEPENDENT + key: 'azure.storage.file.capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of file storage used by the storage account with the name `[{#NAME}]`, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.FileCapacity.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: 3483741c11a141c2866ea58a74a91135 + name: 'Storage account [{#NAME}]: File Count' + type: DEPENDENT + key: 'azure.storage.file.count[{#NAME}]' + delay: '0' + description: 'The number of files in the storage account with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.FileCount.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: 7f6d01573bf24d9889f41a14cb581075 + name: 'Storage account [{#NAME}]: File Egress' + type: DEPENDENT + key: 'azure.storage.file.engress[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: | + The amount of egress data. This number includes egress to external client from Azure Storage and also egress within Azure. + As a result, this number does not reflect billable egress. + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.Egress.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: 9f9b6772f9d9478ba3be3a93c5408ba2 + name: 'Storage account [{#NAME}]: File Ingress' + type: DEPENDENT + key: 'azure.storage.file.ingress[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of ingress data, expressed in bytes. This number includes ingress from an external client into Azure Storage and also ingress within Azure.' + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.Ingress.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: 4cb60e5473ce46a08bc962dc97c1f4db + name: 'Storage account [{#NAME}]: File Share Capacity Quota' + type: DEPENDENT + key: 'azure.storage.file.share.capacity.quota[{#NAME}]' + delay: '0' + units: B + description: 'The upper limit on the amount of storage that can be used by Azure Files Service, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.FileShareCapacityQuota.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: 220673a2e99a4108b034d04d79108231 + name: 'Storage account [{#NAME}]: File Share Count' + type: DEPENDENT + key: 'azure.storage.file.share.count[{#NAME}]' + delay: '0' + description: 'The number of file shares in the storage account.' + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.FileShareCount.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: 47c48f39b9744a92ac13e9db69f6e629 + name: 'Storage account [{#NAME}]: File Share Snapshot Size' + type: DEPENDENT + key: 'azure.storage.file.share.snapshot.size[{#NAME}]' + delay: '0' + units: B + description: 'The amount of storage used by the snapshots in storage account''s File service, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.FileShareSnapshotSize.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: f0394f8f2d55471c8ab557045349a6ec + name: 'Storage account [{#NAME}]: File Share Snapshot Count' + type: DEPENDENT + key: 'azure.storage.file.shares.snapshot.count[{#NAME}]' + delay: '0' + description: 'The number of snapshots present on the share in storage account''s Files Service.' + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.FileShareSnapshotCount.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: 431a6c51418d401697d105a0d9b62d23 + name: 'Storage account [{#NAME}]: File Success E2E Latency' + type: DEPENDENT + key: 'azure.storage.file.success.e2e.latency[{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The average end-to-end latency of successful requests made to a storage service or the specified API operation, expressed in milliseconds. + This value includes the required processing time within Azure Storage to read the request, send the response, and receive acknowledgment of the response. + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.file.SuccessE2ELatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: 43b6c0b948f64d9daada7aaac520c839 + name: 'Storage account [{#NAME}]: File Success Server Latency' + type: DEPENDENT + key: 'azure.storage.file.success.server.latency[{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The average time used to process a successful request by Azure Storage. + This value does not include the network latency specified in `SuccessE2ELatency`. + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.SuccessServerLatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: ed4b7ac10368493ba01c7cbeffba3042 + name: 'Storage account [{#NAME}]: File Transactions' + type: DEPENDENT + key: 'azure.storage.file.transactions[{#NAME}]' + delay: '0' + description: | + The number of requests made to the storage service or a specified API operation. + This number includes successful and failed requests and also requests that produced errors. + Use `ResponseType` dimension for the number of different types of responses. + preprocessing: + - type: JSONPATH + parameters: + - $.fileServices.Transactions.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: file + - tag: storage + value: '{#NAME}' + - uuid: caeaa6805904471a8b18480f34ef9807 + name: 'Storage account [{#NAME}]: Ingress' + type: DEPENDENT + key: 'azure.storage.ingress[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of ingress data, expressed in bytes. This number includes ingress from an external client into Azure Storage and also ingress within Azure.' + preprocessing: + - type: JSONPATH + parameters: + - $.storageAccount.Ingress.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: common + - tag: storage + value: '{#NAME}' + - uuid: be8b82396ff243e8a52864069b192dea + name: 'Storage account [{#NAME}]: Queue Capacity' + type: DEPENDENT + key: 'azure.storage.queue.capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of queue storage used by the storage account with the name `[{#NAME}]`, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.queueServices.QueueCapacity.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: queue + - tag: storage + value: '{#NAME}' + - uuid: 9174d372235e4d14a4896a79ddcbc051 + name: 'Storage account [{#NAME}]: Queue Count' + type: DEPENDENT + key: 'azure.storage.queue.count[{#NAME}]' + delay: '0' + description: 'The number of queues in the storage account with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - $.queueServices.QueueCount.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: queue + - tag: storage + value: '{#NAME}' + - uuid: b8cff599c4194b4abd74f4a27ca93284 + name: 'Storage account [{#NAME}]: Queue Egress' + type: DEPENDENT + key: 'azure.storage.queue.engress[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: | + The amount of egress data. This number includes egress to external client from Azure Storage and also egress within Azure. + As a result, this number does not reflect billable egress. + preprocessing: + - type: JSONPATH + parameters: + - $.queueServices.Egress.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: queue + - tag: storage + value: '{#NAME}' + - uuid: 599f612c3cc64e81a53d507ae0078ab1 + name: 'Storage account [{#NAME}]: Queue Ingress' + type: DEPENDENT + key: 'azure.storage.queue.ingress[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of ingress data, expressed in bytes. This number includes ingress from an external client into Azure Storage and also ingress within Azure.' + preprocessing: + - type: JSONPATH + parameters: + - $.queueServices.Ingress.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: queue + - tag: storage + value: '{#NAME}' + - uuid: 70c7b436a03145c5ab694b3a20ac52b1 + name: 'Storage account [{#NAME}]: Queue Message Count' + type: DEPENDENT + key: 'azure.storage.queue.message.count[{#NAME}]' + delay: '0' + description: 'The number of unexpired queue messages in the storage account with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - $.queueServices.QueueMessageCount.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: queue + - tag: storage + value: '{#NAME}' + - uuid: eccdbf48412e4c28afc3bbf87c545cc2 + name: 'Storage account [{#NAME}]: Queue Success E2E Latency' + type: DEPENDENT + key: 'azure.storage.queue.success.e2e.latency[{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The average end-to-end latency of successful requests made to a storage service or the specified API operation, expressed in milliseconds. + This value includes the required processing time within Azure Storage to read the request, send the response, and receive acknowledgment of the response. + preprocessing: + - type: JSONPATH + parameters: + - $.queueServices.queue.SuccessE2ELatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: queue + - tag: storage + value: '{#NAME}' + - uuid: 4d9aa2753d944690b01a23bcd44fd52d + name: 'Storage account [{#NAME}]: Queue Success Server Latency' + type: DEPENDENT + key: 'azure.storage.queue.success.server.latency[{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The average time used to process a successful request by Azure Storage. + This value does not include the network latency specified in `SuccessE2ELatency`. + preprocessing: + - type: JSONPATH + parameters: + - $.queueServices.SuccessServerLatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: queue + - tag: storage + value: '{#NAME}' + - uuid: e472739df4634b55be2466bd91af9886 + name: 'Storage account [{#NAME}]: Queue Transactions' + type: DEPENDENT + key: 'azure.storage.queue.transactions[{#NAME}]' + delay: '0' + description: | + The number of requests made to the storage service or a specified API operation. + This number includes successful and failed requests and also requests that produced errors. + Use `ResponseType` dimension for the number of different types of responses. + preprocessing: + - type: JSONPATH + parameters: + - $.queueServices.Transactions.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: queue + - tag: storage + value: '{#NAME}' + - uuid: 48437de0bdca4f5392c295ca8b82bd0a + name: 'Storage account [{#NAME}]: Success E2E Latency' + type: DEPENDENT + key: 'azure.storage.success.e2e.latency[{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The average end-to-end latency of successful requests made to a storage service or the specified API operation, expressed in milliseconds. + This value includes the required processing time within Azure Storage to read the request, send the response, and receive acknowledgment of the response. + preprocessing: + - type: JSONPATH + parameters: + - $.storageAccount.SuccessE2ELatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: common + - tag: storage + value: '{#NAME}' + - uuid: 7076dbfb45cd49828b96064aa892e8e4 + name: 'Storage account [{#NAME}]: Success Server Latency' + type: DEPENDENT + key: 'azure.storage.success.server.latency[{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The average time used to process a successful request by Azure Storage. + This value does not include the network latency specified in `SuccessE2ELatency`. + preprocessing: + - type: JSONPATH + parameters: + - $.storageAccount.SuccessServerLatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: common + - tag: storage + value: '{#NAME}' + - uuid: 918f1d1c70964e7c9f5521cf99bbb21d + name: 'Storage account [{#NAME}]: Table Availability' + type: DEPENDENT + key: 'azure.storage.table.availability[{#NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + The percentage of availability for the storage service or a specified API operation. + Availability is calculated by taking the `TotalBillableRequests` value and dividing it by the number of applicable requests, including those that produced unexpected errors. + All unexpected errors result in reduced availability for the storage service or the specified API operation. + preprocessing: + - type: JSONPATH + parameters: + - $.tableServices.Availability.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: table + - tag: storage + value: '{#NAME}' + trigger_prototypes: + - uuid: bfb1e82685224048ba8082447cad57ca + expression: '(min(/Azure by HTTP/azure.storage.table.availability[{#NAME}],#3))<{$AZURE.STORAGE.ACC.TABLE.AVAILABILITY:"{#NAME}"}' + name: 'Azure: Storage account [{#NAME}]: Table Availability is low' + event_name: 'Azure: Storage account [{#NAME} table availability is too low (less than {$AZURE.STORAGE.ACC.TABLE.AVAILABILITY:"{#NAME}"}%)' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: ee19a3857a7a4650952eb855193991ee + name: 'Storage account [{#NAME}]: Table Capacity' + type: DEPENDENT + key: 'azure.storage.table.capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of storage used by the table service of the storage account with the name `[{#NAME}]`, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.tableServices.TableCapacity.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: table + - tag: storage + value: '{#NAME}' + - uuid: a3d11321b1cc4c1b9c322c0a7162e76e + name: 'Storage account [{#NAME}]: Table Count' + type: DEPENDENT + key: 'azure.storage.table.count[{#NAME}]' + delay: '0' + description: 'The number of tables in the storage account with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - $.tableServices.TableCount.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: table + - tag: storage + value: '{#NAME}' + - uuid: d75bd57fdd9f4377aea7c1e52a109c18 + name: 'Storage account [{#NAME}]: Table Egress' + type: DEPENDENT + key: 'azure.storage.table.engress[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: | + The amount of egress data. This number includes egress to external client from Azure Storage and also egress within Azure. + As a result, this number does not reflect billable egress. + preprocessing: + - type: JSONPATH + parameters: + - $.tableServices.Egress.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: table + - tag: storage + value: '{#NAME}' + - uuid: f2911504457b4d329ae7cf7d7a24594a + name: 'Storage account [{#NAME}]: Table Entity Count' + type: DEPENDENT + key: 'azure.storage.table.entity.count[{#NAME}]' + delay: '0' + description: 'The number of table entities in the storage account with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - $.tableServices.TableEntityCount.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: table + - tag: storage + value: '{#NAME}' + - uuid: 993ca2e5bcd74d27b19998d77f0abec8 + name: 'Storage account [{#NAME}]: Table Ingress' + type: DEPENDENT + key: 'azure.storage.table.ingress[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The amount of ingress data, expressed in bytes. This number includes ingress from an external client into Azure Storage and also ingress within Azure.' + preprocessing: + - type: JSONPATH + parameters: + - $.tableServices.Ingress.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: table + - tag: storage + value: '{#NAME}' + - uuid: 00c441cc77f4447584d4bffbefc304e0 + name: 'Storage account [{#NAME}]: Table Success E2E Latency' + type: DEPENDENT + key: 'azure.storage.table.success.e2e.latency[{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The average end-to-end latency of successful requests made to a storage service or the specified API operation, expressed in milliseconds. + This value includes the required processing time within Azure Storage to read the request, send the response, and receive acknowledgment of the response. + preprocessing: + - type: JSONPATH + parameters: + - $.tableServices.SuccessE2ELatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: table + - tag: storage + value: '{#NAME}' + - uuid: f29e3ad4be034f38932cb85654397926 + name: 'Storage account [{#NAME}]: Table Success Server Latency' + type: DEPENDENT + key: 'azure.storage.table.success.server.latency[{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: | + The average time used to process a successful request by Azure Storage. + This value does not include the network latency specified in `SuccessE2ELatency`. + preprocessing: + - type: JSONPATH + parameters: + - $.tableServices.SuccessServerLatency.average + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: table + - tag: storage + value: '{#NAME}' + - uuid: 9ba25e87c5bb466a99855a9fb893283d + name: 'Storage account [{#NAME}]: Table Transactions' + type: DEPENDENT + key: 'azure.storage.table.transactions[{#NAME}]' + delay: '0' + description: | + The number of requests made to the storage service or a specified API operation. + This number includes successful and failed requests and also requests that produced errors. + Use `ResponseType` dimension for the number of different types of responses. + preprocessing: + - type: JSONPATH + parameters: + - $.tableServices.Transactions.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: table + - tag: storage + value: '{#NAME}' + - uuid: 6f68f0d8a63640ffa549fde44e8fe56c + name: 'Storage account [{#NAME}]: Transactions' + type: DEPENDENT + key: 'azure.storage.transactions[{#NAME}]' + delay: '0' + description: | + The number of requests made to the storage service or a specified API operation. + This number includes successful and failed requests and also requests that produced errors. + Use `ResponseType` dimension for the number of different types of responses. + preprocessing: + - type: JSONPATH + parameters: + - $.storageAccount.Transactions.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: common + - tag: storage + value: '{#NAME}' + - uuid: 08ef07d874db4823bd167482bf049916 + name: 'Storage account [{#NAME}]: Used Capacity' + type: DEPENDENT + key: 'azure.storage.used.capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: | + The amount of storage used by the storage account with the name `[{#NAME}]`, expressed in bytes. + For standard storage accounts, it's the sum of capacity used by blob, table, file, and queue. + For premium storage accounts and blob storage accounts, it is the same as BlobCapacity or FileCapacity. + preprocessing: + - type: JSONPATH + parameters: + - $.storageAccount.UsedCapacity.average + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'azure.get.storage.acc[{#NAME}]' + tags: + - tag: component + value: storages + - tag: metrics + value: common + - tag: storage + value: '{#NAME}' + graph_prototypes: + - uuid: d569e0daf1974df58584432805f95557 + name: 'Azure: Capacity by storage [{#NAME}]' + graph_items: + - color: 199C0D + item: + host: 'Azure by HTTP' + key: 'azure.storage.used.capacity[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Azure by HTTP' + key: 'azure.storage.blob.capacity[{#NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'Azure by HTTP' + key: 'azure.storage.table.capacity[{#NAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'Azure by HTTP' + key: 'azure.storage.file.capacity[{#NAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Azure by HTTP' + key: 'azure.storage.queue.capacity[{#NAME}]' + - uuid: 6bae0cf983104e0fada61468902949e1 + name: 'Azure: Storage account [{#NAME}] egress' + graph_items: + - color: 199C0D + item: + host: 'Azure by HTTP' + key: 'azure.storage.engress[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Azure by HTTP' + key: 'azure.storage.blob.engress[{#NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'Azure by HTTP' + key: 'azure.storage.table.engress[{#NAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'Azure by HTTP' + key: 'azure.storage.file.engress[{#NAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Azure by HTTP' + key: 'azure.storage.queue.engress[{#NAME}]' + - uuid: 8860c37426104045a7f9feb6cc370db4 + name: 'Azure: Storage account [{#NAME}] ingress' + graph_items: + - color: 199C0D + item: + host: 'Azure by HTTP' + key: 'azure.storage.ingress[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Azure by HTTP' + key: 'azure.storage.blob.ingress[{#NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'Azure by HTTP' + key: 'azure.storage.table.ingress[{#NAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'Azure by HTTP' + key: 'azure.storage.file.ingress[{#NAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Azure by HTTP' + key: 'azure.storage.queue.ingress[{#NAME}]' + - uuid: 9c87dfb9ed7e4c1ea32c8e35c6e23381 + name: 'Azure: Transactions by storage [{#NAME}]' + graph_items: + - color: 199C0D + item: + host: 'Azure by HTTP' + key: 'azure.storage.transactions[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Azure by HTTP' + key: 'azure.storage.blob.transactions[{#NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'Azure by HTTP' + key: 'azure.storage.table.transactions[{#NAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'Azure by HTTP' + key: 'azure.storage.file.transactions[{#NAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Azure by HTTP' + key: 'azure.storage.queue.transactions[{#NAME}]' + master_item: + key: azure.get.storage.acc + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.resourceGroup + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#LOCATION}' + path: $.location + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TOKEN}' + path: $.token + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b00b92f713724eaa9f028acf244527a6 + name: 'Azure Vault discovery' + type: DEPENDENT + key: azure.vault.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#LOCATION}' + value: '{$AZURE.VAULT.LOCATION.MATCHES}' + formulaid: C + - macro: '{#LOCATION}' + value: '{$AZURE.VAULT.LOCATION.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$AZURE.VAULT.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$AZURE.VAULT.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#TYPE}' + value: '^Microsoft.*(v|V)aults$' + formulaid: G + description: 'The list of Azure Recovery Services and Backup vaults provided by the subscription.' + host_prototypes: + - uuid: fb057eebe3fb4d2483c8a3e7fe4c7b07 + host: 'Azure vault {#NAME}' + name: 'Azure vault {#NAME}' + group_links: + - group: + name: Applications + templates: + - name: 'Azure Backup Jobs by HTTP' + macros: + - macro: '{$AZURE.RESOURCE.ID}' + value: '{#ID}' + description: 'Microsoft Azure resource ID.' + tags: + - tag: location + value: '{#LOCATION}' + - tag: resource-group + value: '{#GROUP}' + master_item: + key: azure.get.resources + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.resourceGroup + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#LOCATION}' + path: $.location + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.resources.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: f9386233186648ce828f406c52972ce5 + name: 'Virtual machines discovery' + type: DEPENDENT + key: azure.vm.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$AZURE.RESOURCE.GROUP.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#LOCATION}' + value: '{$AZURE.VM.LOCATION.MATCHES}' + formulaid: C + - macro: '{#LOCATION}' + value: '{$AZURE.VM.LOCATION.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$AZURE.VM.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$AZURE.VM.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#SCALESET}' + operator: NOT_EXISTS + formulaid: G + - macro: '{#TYPE}' + value: ^Microsoft.Compute/virtualMachines$ + formulaid: H + description: 'The list of virtual machines provided by the subscription.' + host_prototypes: + - uuid: d08c0ee33c924b28bf1fed571da6c7f4 + host: 'Azure virtual machine {#NAME}' + name: 'Azure virtual machine {#NAME}' + group_links: + - group: + name: 'Virtual machines' + templates: + - name: 'Azure Virtual Machine by HTTP' + macros: + - macro: '{$AZURE.RESOURCE.ID}' + value: '{#ID}' + description: 'Microsoft Azure resource ID.' + tags: + - tag: location + value: '{#LOCATION}' + - tag: os + value: '{#OS}' + - tag: resource-group + value: '{#GROUP}' + - tag: size + value: '{#SIZE}' + master_item: + key: azure.get.resources + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.resourceGroup + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#LOCATION}' + path: $.location + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#OS}' + path: $.properties.storageProfile.osDisk.osType + - lld_macro: '{#SCALESET}' + path: $.properties.virtualMachineScaleSet + - lld_macro: '{#SIZE}' + path: $.properties.hardwareProfile.vmSize + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.resources.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: software + - tag: target + value: azure + macros: + - macro: '{$AZURE.APP.ID}' + description: 'Client (Application) ID of the Azure service principal.' + - macro: '{$AZURE.COSMOS.MONGO.DB.LOCATION.MATCHES}' + value: '.*' + description: 'Regex string to include discovered Cosmos DB account locations by name.' + - macro: '{$AZURE.COSMOS.MONGO.DB.LOCATION.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered Cosmos DB account locations by name.' + - macro: '{$AZURE.COSMOS.MONGO.DB.NAME.MATCHES}' + value: '.*' + description: 'Regex string to include discovered Cosmos DB accounts by name.' + - macro: '{$AZURE.COSMOS.MONGO.DB.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered Cosmos DB accounts by name.' + - macro: '{$AZURE.DATA.TIMEOUT}' + value: 15s + description: 'Maximum time to wait for Azure API responses before request fails.' + - macro: '{$AZURE.MSSQL.DB.LOCATION.MATCHES}' + value: '.*' + description: 'Regex string to include discovered MSSQL database locations by name.' + - macro: '{$AZURE.MSSQL.DB.LOCATION.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered MSSQL database locations by name.' + - macro: '{$AZURE.MSSQL.DB.NAME.MATCHES}' + value: '.*' + description: 'Regex string to include discovered Microsoft SQL databases by name.' + - macro: '{$AZURE.MSSQL.DB.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered MSSQL databases by name.' + - macro: '{$AZURE.MSSQL.DB.SIZE.NOT.MATCHES}' + value: ^System$ + description: 'Regex string to exclude discovered MSSQL database locations by SKU type.' + - macro: '{$AZURE.MYSQL.DB.LOCATION.MATCHES}' + value: '.*' + description: 'Regex string to include discovered MySQL server locations by name.' + - macro: '{$AZURE.MYSQL.DB.LOCATION.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered MySQL server locations by name.' + - macro: '{$AZURE.MYSQL.DB.NAME.MATCHES}' + value: '.*' + description: 'Regex string to include discovered MySQL servers by name.' + - macro: '{$AZURE.MYSQL.DB.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered MySQL servers by name.' + - macro: '{$AZURE.PASSWORD}' + type: SECRET_TEXT + description: 'Client secret of the Azure service principal used for API authentication.' + - macro: '{$AZURE.PGSQL.DB.LOCATION.MATCHES}' + value: '.*' + description: 'Regex string to include discovered PostgreSQL server locations by name.' + - macro: '{$AZURE.PGSQL.DB.LOCATION.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered PostgreSQL server locations by name.' + - macro: '{$AZURE.PGSQL.DB.NAME.MATCHES}' + value: '.*' + description: 'Regex string to include discovered PostgreSQL servers by name.' + - macro: '{$AZURE.PGSQL.DB.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered PostgreSQL servers by name.' + - macro: '{$AZURE.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$AZURE.RESOURCE.GROUP.MATCHES}' + value: '.*' + description: 'Regex string to include discovered resource groups by name.' + - macro: '{$AZURE.RESOURCE.GROUP.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered resource groups by name.' + - macro: '{$AZURE.SCALESET.LOCATION.MATCHES}' + value: '.*' + description: 'Regex string to include discovered VM scale set locations by name.' + - macro: '{$AZURE.SCALESET.LOCATION.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered VM scale set locations by name.' + - macro: '{$AZURE.SCALESET.NAME.MATCHES}' + value: '.*' + description: 'Regex string to include discovered VM scale sets by name.' + - macro: '{$AZURE.SCALESET.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered VM scale sets by name.' + - macro: '{$AZURE.SQL.INST.LOCATION.MATCHES}' + value: '.*' + description: 'Regex string to include discovered Azure SQL managed instance locations by name.' + - macro: '{$AZURE.SQL.INST.LOCATION.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered Azure SQL managed instance locations by name.' + - macro: '{$AZURE.SQL.INST.NAME.MATCHES}' + value: '.*' + description: 'Regex string to include discovered Azure SQL managed instances by name.' + - macro: '{$AZURE.SQL.INST.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered Azure SQL managed instances by name.' + - macro: '{$AZURE.STORAGE.ACC.AVAILABILITY}' + value: '70' + description: 'The warning threshold of the storage account availability.' + - macro: '{$AZURE.STORAGE.ACC.BLOB.AVAILABILITY}' + value: '70' + description: 'The warning threshold of the storage account blob services availability.' + - macro: '{$AZURE.STORAGE.ACC.LOCATION.MATCHES}' + value: '.*' + description: 'Regex string to include discovered storage account locations by name.' + - macro: '{$AZURE.STORAGE.ACC.LOCATION.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered storage account locations by name.' + - macro: '{$AZURE.STORAGE.ACC.NAME.MATCHES}' + value: '.*' + description: 'Regex string to include discovered storage accounts by name.' + - macro: '{$AZURE.STORAGE.ACC.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered storage accounts by name.' + - macro: '{$AZURE.STORAGE.ACC.TABLE.AVAILABILITY}' + value: '70' + description: 'The warning threshold of the storage account table services availability.' + - macro: '{$AZURE.SUBSCRIPTION.ID}' + description: 'Azure Subscription ID used to scope all API requests.' + - macro: '{$AZURE.TENANT.ID}' + description: 'Azure Tenant (Directory) ID used for authentication.' + - macro: '{$AZURE.VAULT.LOCATION.MATCHES}' + value: '.*' + description: 'Regex string to include discovered Azure Vault locations by name.' + - macro: '{$AZURE.VAULT.LOCATION.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered Azure Vault locations by name.' + - macro: '{$AZURE.VAULT.NAME.MATCHES}' + value: '.*' + description: 'Regex string to include discovered Azure Vaults by name.' + - macro: '{$AZURE.VAULT.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered Azure Vaults by name.' + - macro: '{$AZURE.VM.LOCATION.MATCHES}' + value: '.*' + description: 'Regex string to include discovered virtual machine locations by name.' + - macro: '{$AZURE.VM.LOCATION.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered virtual machine locations by name.' + - macro: '{$AZURE.VM.NAME.MATCHES}' + value: '.*' + description: 'Regex string to include discovered virtual machines by name.' + - macro: '{$AZURE.VM.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex string to exclude discovered virtual machines by name.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure", e.g. {$HTTP.TLS.VERIFY:"Azure"}.' + dashboards: + - uuid: d30c78be41fe421cb98cedd7683a11f0 + name: 'Overview Azure Storage accounts' + pages: + - name: 'Storage transactions' + widgets: + - type: graphprototype + width: '72' + height: '25' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Azure by HTTP' + name: 'Azure: Transactions by storage [{#NAME}]' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '6' + - name: 'Storage engress' + widgets: + - type: graphprototype + width: '72' + height: '25' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Azure by HTTP' + name: 'Azure: Storage account [{#NAME}] egress' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: rows + value: '6' + - name: 'Storage ingress' + widgets: + - type: graphprototype + width: '72' + height: '20' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Azure by HTTP' + name: 'Azure: Storage account [{#NAME}] ingress' + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: rows + value: '5' diff --git a/Brocade_FC_by_SNMP.yaml b/Brocade_FC_by_SNMP.yaml new file mode 100644 index 0000000..0d79f3a --- /dev/null +++ b/Brocade_FC_by_SNMP.yaml @@ -0,0 +1,1830 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: de96d02bd5f242bfa31308ae2131d03f + template: 'Brocade FC by SNMP' + name: 'Brocade FC by SNMP' + description: | + Template Net Brocade FC + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + SW-MIB + IF-MIB + + Known Issues: + + Description: no IF-MIB::ifAlias is available + Version: v6.3.1c, v7.0.0c, v7.4.1c + Device: all + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 79adbe7d5d8f4dd6a172bfc3e2d8b23d + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 0c73f37e7ffc4acf83a7edeb84398aba + expression: 'max(/Brocade FC by SNMP/icmpping,#3)=0' + name: 'Brocade FC: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 4ae37446cb1e4a2d95f55a41dd295bdf + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: eea2256c85764c12b1da83dd8d1a9fe3 + expression: 'min(/Brocade FC by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Brocade FC by SNMP/icmppingloss,5m)<100' + name: 'Brocade FC: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Brocade FC: Unavailable by ICMP ping' + expression: 'max(/Brocade FC by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4c8f61f10759487087d5942756f478b2 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 17df26093a5f42fdb19715371c85f733 + expression: 'avg(/Brocade FC by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Brocade FC: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Brocade FC: High ICMP ping loss' + expression: 'min(/Brocade FC by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Brocade FC by SNMP/icmppingloss,5m)<100' + - name: 'Brocade FC: Unavailable by ICMP ping' + expression: 'max(/Brocade FC by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c7e6790a311c4b4582093cd28341306a + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 62ae879ca6ab46aebc8655534acbba06 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b17a06635cb2400f9c6d0f848fd38868 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1588.2.1.1.1.26.1.0]' + key: 'system.cpu.util[swCpuUsage.0]' + value_type: FLOAT + units: '%' + description: | + MIB: SW-MIB + System's CPU usage. + tags: + - tag: component + value: cpu + triggers: + - uuid: 68a50684095941cb90f22fbc8d632e7a + expression: 'min(/Brocade FC by SNMP/system.cpu.util[swCpuUsage.0],5m)>{$CPU.UTIL.CRIT}' + name: 'Brocade FC: High CPU utilization' + event_name: 'Brocade FC: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 8340ccd92ba940b497375aba810394a4 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c6e2d4c076b14ed19fbcb08caa32e5be + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1588.2.1.1.1.1.6.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SW-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 9c5ae10dbafb45658f25f0279a8a1934 + expression: 'last(/Brocade FC by SNMP/system.hw.firmware,#1)<>last(/Brocade FC by SNMP/system.hw.firmware,#2) and length(last(/Brocade FC by SNMP/system.hw.firmware))>0' + name: 'Brocade FC: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3c68a1be050d4c1287e63eb7b3b81f8f + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1588.2.1.1.1.1.10.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SW-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 9939f98da99c435a9b5505e55e8abb5f + expression: 'last(/Brocade FC by SNMP/system.hw.serialnumber,#1)<>last(/Brocade FC by SNMP/system.hw.serialnumber,#2) and length(last(/Brocade FC by SNMP/system.hw.serialnumber))>0' + name: 'Brocade FC: Device has been replaced' + event_name: 'Brocade FC: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a988240abba8442da83fdbcb789d0138 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 88c5304ddeca47779b76d9806b1edc68 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d8d912cb5c924f6587c83f08aa0c8ae1 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 0e624c73fdca490e809ffe9235cda610 + expression: 'last(/Brocade FC by SNMP/system.name,#1)<>last(/Brocade FC by SNMP/system.name,#2) and length(last(/Brocade FC by SNMP/system.name))>0' + name: 'Brocade FC: System name has changed' + event_name: 'Brocade FC: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 237a5614cb634773853f6d5f42096773 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 939c63320b8e4199b87cc4759011da3c + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 29f1dda8042d4fd18d7da9eb95fea76c + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1588.2.1.1.1.1.7.0]' + key: 'system.status[swOperStatus.0]' + delay: 30s + trends: '0' + description: | + MIB: SW-MIB + The current operational status of the switch.The states are as follow: + online(1) means the switch is accessible by an external Fibre Channel port + offline(2) means the switch is not accessible + testing(3) means the switch is in a built-in test mode and is not accessible by an external Fibre Channel port + faulty(4) means the switch is not operational. + valuemap: + name: 'SW-MIB::swOperStatus' + tags: + - tag: component + value: system + triggers: + - uuid: b91af8b94e2047538376be9911beadee + expression: 'count(/Brocade FC by SNMP/system.status[swOperStatus.0],#1,"eq","{$HEALTH_CRIT_STATUS}")=1' + name: 'Brocade FC: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b17d4a2bae804c968984b763fa4562fc + expression: 'count(/Brocade FC by SNMP/system.status[swOperStatus.0],#1,"eq","{$HEALTH_WARN_STATUS:\"offline\"}")=1 or count(/Brocade FC by SNMP/system.status[swOperStatus.0],#1,"eq","{$HEALTH_WARN_STATUS:\"testing\"}")=1' + name: 'Brocade FC: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings' + dependencies: + - name: 'Brocade FC: System status is in critical state' + expression: 'count(/Brocade FC by SNMP/system.status[swOperStatus.0],#1,"eq","{$HEALTH_CRIT_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9a8441cae4fb4c698502a20d5ce23ddf + name: 'Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1588.2.1.1.1.26.6.0]' + key: 'vm.memory.util[swMemUsage.0]' + value_type: FLOAT + units: '%' + description: | + MIB: SW-MIB + Memory utilization in %. + tags: + - tag: component + value: memory + triggers: + - uuid: 1991ae08b008488380db02160b15160e + expression: 'min(/Brocade FC by SNMP/vm.memory.util[swMemUsage.0],5m)>{$MEMORY.UTIL.MAX}' + name: 'Brocade FC: High memory utilization' + event_name: 'Brocade FC: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 00b66dbea9464b55bbab004e0eb57c7b + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1c67a764531b48f1a931a9a928a8708d + expression: 'max(/Brocade FC by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Brocade FC: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Brocade FC: Unavailable by ICMP ping' + expression: 'max(/Brocade FC by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 721801e236e34b02b5430d115b23817e + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.1588.2.1.1.1.1.22.1.1,{#SENSOR_TYPE},1.3.6.1.4.1.1588.2.1.1.1.1.22.1.2,{#SENSOR_INFO},1.3.6.1.4.1.1588.2.1.1.1.1.22.1.5]' + key: fan.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_TYPE}' + value: '2' + formulaid: A + item_prototypes: + - uuid: 4f37f76d0b3241598e69b091f1835ef5 + name: '{#SENSOR_INFO}: Fan speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.{#SNMPINDEX}]' + key: 'sensor.fan.speed[swSensorValue.{#SNMPINDEX}]' + units: rpm + description: | + MIB: SW-MIB + The current value (reading) of the sensor. + The value, -2147483648, represents an unknown quantity. + The fan value will be in RPM(revolution per minute) + tags: + - tag: component + value: fan + - uuid: ee2569161ad146b392bb8f331a7f7d19 + name: '{#SENSOR_INFO}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1588.2.1.1.1.1.22.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[swSensorStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: SW-MIB' + valuemap: + name: 'SW-MIB::swSensorStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 75003433a8304644a20d11b82dcbae14 + expression: 'count(/Brocade FC by SNMP/sensor.fan.status[swSensorStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Brocade FC: {#SENSOR_INFO}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 83e8182fd7034edca8317fa91776b6d2 + expression: 'count(/Brocade FC by SNMP/sensor.fan.status[swSensorStatus.{#SNMPINDEX}],#1,"ne","{$FAN_OK_STATUS}")=1' + name: 'Brocade FC: {#SENSOR_INFO}: Fan is not in normal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the fan unit' + dependencies: + - name: 'Brocade FC: {#SENSOR_INFO}: Fan is in critical state' + expression: 'count(/Brocade FC by SNMP/sensor.fan.status[swSensorStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + tags: + - tag: scope + value: notice + - uuid: 58ece372fefb4881ace97a40c5fb09c2 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: a780105f84584ba48acef58f573b5728 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 04b7026dd1704074b9a18e154d10ef7f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: efe5a3957efd4d989809db22ad9cff9d + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a087793253314286a0bfab36a27898bd + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 67d8b40449a24ad28e31ef0363d8b76d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3c557f4086bc455eb6185878e50b72d9 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: de0920aa56b740ab89118016cdacbc5e + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1e9a9d3ea4d24922b8c4b7acc20a3c4f + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e5391912a6b84c1bb41832e88df4fb96 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Brocade FC: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 391fe664d0e44ed99b2b966c647e1e55 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5a98171af6b342ab97e0c6c9de0bd589 + expression: | + change(/Brocade FC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Brocade FC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Brocade FC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Brocade FC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Brocade FC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Brocade FC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Brocade FC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Brocade FC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Brocade FC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Brocade FC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Brocade FC: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Brocade FC: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: a16b52f43a224a11861813be5a11697c + expression: | + (avg(/Brocade FC by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Brocade FC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Brocade FC by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Brocade FC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Brocade FC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Brocade FC by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Brocade FC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Brocade FC by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Brocade FC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Brocade FC: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Brocade FC: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Brocade FC: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 9f42c5a5ed1341c1a26263642e4dabe4 + expression: | + min(/Brocade FC by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Brocade FC by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Brocade FC by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Brocade FC by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Brocade FC: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Brocade FC: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Brocade FC: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Brocade FC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 0ca148aeaadd45b6bd32e9ecde4127df + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Brocade FC by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Brocade FC by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Brocade FC by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Brocade FC by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Brocade FC by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Brocade FC by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 32c9720e348e4d4ebb9e70c2b247de29 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.1588.2.1.1.1.1.22.1.1,{#SENSOR_TYPE},1.3.6.1.4.1.1588.2.1.1.1.1.22.1.2,{#SENSOR_INFO},1.3.6.1.4.1.1588.2.1.1.1.1.22.1.5]' + key: psu.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_TYPE}' + value: '3' + formulaid: A + item_prototypes: + - uuid: 7a8f32cbb43f4ce789097e8cb26b0456 + name: '{#SENSOR_INFO}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1588.2.1.1.1.1.22.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[swSensorStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: SW-MIB' + valuemap: + name: 'SW-MIB::swSensorStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 649e7344411242738d9824f861b3c49a + expression: 'count(/Brocade FC by SNMP/sensor.psu.status[swSensorStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'Brocade FC: {#SENSOR_INFO}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bfe2f4085f6840da9e8d30f37bb29fdb + expression: 'count(/Brocade FC by SNMP/sensor.psu.status[swSensorStatus.{#SNMPINDEX}],#1,"ne","{$PSU_OK_STATUS}")=1' + name: 'Brocade FC: {#SENSOR_INFO}: Power supply is not in normal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Brocade FC: {#SENSOR_INFO}: Power supply is in critical state' + expression: 'count(/Brocade FC by SNMP/sensor.psu.status[swSensorStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + tags: + - tag: scope + value: notice + - uuid: efaa3e2dfb5b405d99998bd6f8a08697 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.1588.2.1.1.1.1.22.1.1,{#SENSOR_TYPE},1.3.6.1.4.1.1588.2.1.1.1.1.22.1.2,{#SENSOR_INFO},1.3.6.1.4.1.1588.2.1.1.1.1.22.1.5]' + key: temperature.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_TYPE}' + value: '1' + formulaid: A + item_prototypes: + - uuid: f95f92a4151d4039ab3ce73ca231f079 + name: '{#SENSOR_INFO}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1588.2.1.1.1.1.22.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.status[swSensorStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: SW-MIB + Temperature status of testpoint: {#SENSOR_INFO} + valuemap: + name: 'SW-MIB::swSensorStatus' + tags: + - tag: component + value: temperature + - uuid: ee48ef951f124c569327670a2a0f2152 + name: '{#SENSOR_INFO}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[swSensorValue.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: SW-MIB + Temperature readings of testpoint: {#SENSOR_INFO} + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 5ee4c1931e244d638b58f945f8a7565c + expression: 'avg(/Brocade FC by SNMP/sensor.temp.value[swSensorValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Brocade FC by SNMP/sensor.temp.value[swSensorValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_INFO}"}-3' + name: 'Brocade FC: {#SENSOR_INFO}: Temperature is above critical threshold' + event_name: 'Brocade FC: {#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fc68b3a0ea6643f988c26e3e735d7491 + expression: 'avg(/Brocade FC by SNMP/sensor.temp.value[swSensorValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Brocade FC by SNMP/sensor.temp.value[swSensorValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}+3' + name: 'Brocade FC: {#SENSOR_INFO}: Temperature is too low' + event_name: 'Brocade FC: {#SENSOR_INFO}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + trigger_prototypes: + - uuid: 726afdedb08848bd86ab4161cef29f42 + expression: | + avg(/Brocade FC by SNMP/sensor.temp.value[swSensorValue.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SENSOR_INFO}"} + or + last(/Brocade FC by SNMP/sensor.temp.status[swSensorStatus.{#SNMPINDEX}])={$TEMP_WARN_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Brocade FC by SNMP/sensor.temp.value[swSensorValue.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SENSOR_INFO}"}-3' + name: 'Brocade FC: {#SENSOR_INFO}: Temperature is above warning threshold' + event_name: 'Brocade FC: {#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Brocade FC: {#SENSOR_INFO}: Temperature is above critical threshold' + expression: 'avg(/Brocade FC by SNMP/sensor.temp.value[swSensorValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_INFO}"}' + recovery_expression: 'max(/Brocade FC by SNMP/sensor.temp.value[swSensorValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_INFO}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: brocade + - tag: target + value: brocade-fc + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '2' + - macro: '{$FAN_OK_STATUS}' + value: '4' + - macro: '{$HEALTH_CRIT_STATUS}' + value: '4' + - macro: '{$HEALTH_WARN_STATUS:"offline"}' + value: '2' + - macro: '{$HEALTH_WARN_STATUS:"testing"}' + value: '3' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '2' + - macro: '{$PSU_OK_STATUS}' + value: '4' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '65' + - macro: '{$TEMP_WARN_STATUS}' + value: '5' + dashboards: + - uuid: 3cf4d180b2a64e938124274ec468491f + name: 'Brocade FC: General' + pages: + - name: 'Brocade FC: General' + widgets: + - type: graph + name: 'Memory utilization' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Brocade FC by SNMP' + name: 'Brocade FC: Memory utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'CPU utilization' + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Brocade FC by SNMP' + name: 'Brocade FC: CPU utilization' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: c8b95f7ce9e44b5ea09273fb6c3c9a28 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: db55d484980244b4bf5c60e0908f4e9b + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 17cb6bdbe4244a8fab16c0cbca5a4a00 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 54427fdf694547c598e3662df09a980a + name: 'SW-MIB::swOperStatus' + mappings: + - value: '1' + newvalue: online + - value: '2' + newvalue: offline + - value: '3' + newvalue: testing + - value: '4' + newvalue: faulty + - uuid: 73618556ee4b4e8f9ec9acf0893e13ea + name: 'SW-MIB::swSensorStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: faulty + - value: '3' + newvalue: below-min + - value: '4' + newvalue: nominal + - value: '5' + newvalue: above-max + - value: '6' + newvalue: absent + - uuid: 2fdee7620a3a449f9dd61eb3405e620c + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 42bb10d788484b92ac7290e171ee28a2 + expression: '(last(/Brocade FC by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Brocade FC by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Brocade FC by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Brocade FC by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Brocade FC: Host has been restarted' + event_name: 'Brocade FC: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Brocade FC: No SNMP data collection' + expression: 'max(/Brocade FC by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 8d1edf299fde462bbca5ceaf1b439223 + name: 'Brocade FC: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Brocade FC by SNMP' + key: 'system.cpu.util[swCpuUsage.0]' + - uuid: d1e06bb17c2f458699664bfa61c12496 + name: 'Brocade FC: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Brocade FC by SNMP' + key: 'vm.memory.util[swMemUsage.0]' diff --git a/Brocade_Foundry_Nonstackable_by_SNMP.yaml b/Brocade_Foundry_Nonstackable_by_SNMP.yaml new file mode 100644 index 0000000..f1daa09 --- /dev/null +++ b/Brocade_Foundry_Nonstackable_by_SNMP.yaml @@ -0,0 +1,1800 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 6ecfb7083ddf45f183ab4be50cfba37a + template: 'Brocade_Foundry Nonstackable by SNMP' + name: 'Brocade_Foundry Nonstackable by SNMP' + description: | + Template Net Brocade Foundry Nonstackable + + MIBs used: + FOUNDRY-SN-AGENT-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: b77f1a0ffd4c4b6d870eda4b573b4d13 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 3e93707bfbed4541a90548f64b2dfc18 + expression: 'max(/Brocade_Foundry Nonstackable by SNMP/icmpping,#3)=0' + name: 'Brocade Nonstackable: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 6e20f516917f40bca4a53ed015e065d2 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 3f3500c666bb47208115b6ca43fc8458 + expression: 'min(/Brocade_Foundry Nonstackable by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Brocade_Foundry Nonstackable by SNMP/icmppingloss,5m)<100' + name: 'Brocade Nonstackable: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Brocade Nonstackable: Unavailable by ICMP ping' + expression: 'max(/Brocade_Foundry Nonstackable by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c2888004f9e84640a088f891f8b0703d + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e1bcb2ad662f4e4fb0ff67f0f1fc39e5 + expression: 'avg(/Brocade_Foundry Nonstackable by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Brocade Nonstackable: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Brocade Nonstackable: High ICMP ping loss' + expression: 'min(/Brocade_Foundry Nonstackable by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Brocade_Foundry Nonstackable by SNMP/icmppingloss,5m)<100' + - name: 'Brocade Nonstackable: Unavailable by ICMP ping' + expression: 'max(/Brocade_Foundry Nonstackable by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2d0b064b0fd74361ac1c32cdea2c1123 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: d0561cc5be67434088c1e591a577d7e3 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2083ecbada4344b4b26dba0145694d7e + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.2.1.52.0]' + key: 'system.cpu.util[snAgGblCpuUtil1MinAvg.0]' + value_type: FLOAT + units: '%' + description: | + MIB: FOUNDRY-SN-AGENT-MIB + The statistics collection of 1 minute CPU utilization. + tags: + - tag: component + value: cpu + triggers: + - uuid: bf59d38703f44bcb9497dcbda684b071 + expression: 'min(/Brocade_Foundry Nonstackable by SNMP/system.cpu.util[snAgGblCpuUtil1MinAvg.0],5m)>{$CPU.UTIL.CRIT}' + name: 'Brocade Nonstackable: High CPU utilization' + event_name: 'Brocade Nonstackable: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 9f49220f80c04e2e98ecf3ec5fa53c2e + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4f58884d810a416ea321dd622c876d06 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.2.1.11.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: FOUNDRY-SN-AGENT-MIB + The version of the running software in the form'major.minor.maintenance[letters]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: fbe1f9d9286046bbb15fe89ec1dcc87d + expression: 'last(/Brocade_Foundry Nonstackable by SNMP/system.hw.firmware,#1)<>last(/Brocade_Foundry Nonstackable by SNMP/system.hw.firmware,#2) and length(last(/Brocade_Foundry Nonstackable by SNMP/system.hw.firmware))>0' + name: 'Brocade Nonstackable: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7d8b9dc153c4408c99a707a9b4d57647 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.1.1.2.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: FOUNDRY-SN-AGENT-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 2bb9d8927e464842a55b89be412adcc4 + expression: 'last(/Brocade_Foundry Nonstackable by SNMP/system.hw.serialnumber,#1)<>last(/Brocade_Foundry Nonstackable by SNMP/system.hw.serialnumber,#2) and length(last(/Brocade_Foundry Nonstackable by SNMP/system.hw.serialnumber))>0' + name: 'Brocade Nonstackable: Device has been replaced' + event_name: 'Brocade Nonstackable: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 78b57ca2787948cb8b92604f2a0fdccc + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 3accd01dca984406990051338ce3f269 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 0d27ffcf928949188fbe1994b6b4dcbb + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: ee0c67c575cb4b01bc3733d719baac4f + expression: 'last(/Brocade_Foundry Nonstackable by SNMP/system.name,#1)<>last(/Brocade_Foundry Nonstackable by SNMP/system.name,#2) and length(last(/Brocade_Foundry Nonstackable by SNMP/system.name))>0' + name: 'Brocade Nonstackable: System name has changed' + event_name: 'Brocade Nonstackable: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 3a534079085747b0916da05afdfafba0 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 702517f6c1024b3c8860a63c9cd57367 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1e1b82a4271d4e159315e74547bea34e + name: 'Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.2.1.53.0]' + key: 'vm.memory.util[snAgGblDynMemUtil.0]' + value_type: FLOAT + units: '%' + description: | + MIB: FOUNDRY-SN-AGENT-MIB + The system dynamic memory utilization, in unit of percentage. + Deprecated: Refer to snAgSystemDRAMUtil. + For NI platforms, refer to snAgentBrdMemoryUtil100thPercent. + tags: + - tag: component + value: memory + triggers: + - uuid: 07bba62d70fa4e7b81f82fc44036ce6e + expression: 'min(/Brocade_Foundry Nonstackable by SNMP/vm.memory.util[snAgGblDynMemUtil.0],5m)>{$MEMORY.UTIL.MAX}' + name: 'Brocade Nonstackable: High memory utilization' + event_name: 'Brocade Nonstackable: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: b782df60263e4302b83f66e920ac217f + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fb3168f6539c4a55b5aab3efbcad117d + expression: 'max(/Brocade_Foundry Nonstackable by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Brocade Nonstackable: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Brocade Nonstackable: Unavailable by ICMP ping' + expression: 'max(/Brocade_Foundry Nonstackable by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: cb46b61100c8456098a85b1e48644146 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#FAN_INDEX},1.3.6.1.4.1.1991.1.1.1.3.1.1.1]' + key: fan.discovery + delay: 1h + description: 'snChasFanTable: A table of each fan information. Only installed fan appears in a table row.' + item_prototypes: + - uuid: 9edc2a34faa84e908b33259d495b5da1 + name: 'Fan {#FAN_INDEX}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.1.3.1.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[snChasFanOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: FOUNDRY-SN-AGENT-MIB' + valuemap: + name: 'FOUNDRY-SN-AGENT-MIB::snChasFanOperStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: dfb8d67a8b0c4128aff9d1643e40afc0 + expression: 'count(/Brocade_Foundry Nonstackable by SNMP/sensor.fan.status[snChasFanOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Brocade Nonstackable: Fan {#FAN_INDEX}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 74ef51062e194213bbf61f747624313c + expression: 'count(/Brocade_Foundry Nonstackable by SNMP/sensor.fan.status[snChasFanOperStatus.{#SNMPINDEX}],#1,"ne","{$FAN_OK_STATUS}")=1' + name: 'Brocade Nonstackable: Fan {#FAN_INDEX}: Fan is not in normal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the fan unit' + dependencies: + - name: 'Brocade Nonstackable: Fan {#FAN_INDEX}: Fan is in critical state' + expression: 'count(/Brocade_Foundry Nonstackable by SNMP/sensor.fan.status[snChasFanOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + tags: + - tag: scope + value: notice + - uuid: 1b7d06dba8fb4869812e95417c05ec25 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: c01ebcc6ef2a4af3bc1a541a8e7ea348 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: de91b80675624e889349e90fef603e9f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2b169ba2d5a44d85ae78b32261cd6852 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: eb286f99f6f1495bbff1f888dfdbfad6 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1e16a6f28fe3455b9c37c8d842102ace + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 24fb27f79bfc4cde8081ffe55cf945c5 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2cff6fcf8aaa486aa0b7d26d71a928f1 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 23402859e08647d8bdb39ca8f39daf3b + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3455100ce855445ab3806379fbdc0bbf + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Brocade Nonstackable: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 9657eee8f64d4bbe934cfb03f047caa7 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e5f54206b19f4f589229c7137365351c + expression: | + change(/Brocade_Foundry Nonstackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Brocade_Foundry Nonstackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Brocade_Foundry Nonstackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Brocade_Foundry Nonstackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Brocade_Foundry Nonstackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Brocade_Foundry Nonstackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Brocade_Foundry Nonstackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Brocade_Foundry Nonstackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Brocade_Foundry Nonstackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Brocade_Foundry Nonstackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Brocade Nonstackable: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Brocade Nonstackable: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 093696611acd4d75b00e83ce5b11df35 + expression: | + (avg(/Brocade_Foundry Nonstackable by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Brocade_Foundry Nonstackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Brocade_Foundry Nonstackable by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Brocade_Foundry Nonstackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Brocade_Foundry Nonstackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Brocade_Foundry Nonstackable by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Brocade_Foundry Nonstackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Brocade_Foundry Nonstackable by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Brocade_Foundry Nonstackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Brocade Nonstackable: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Brocade Nonstackable: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Brocade Nonstackable: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 5337b53e473248719eb502428a4bcc38 + expression: | + min(/Brocade_Foundry Nonstackable by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Brocade_Foundry Nonstackable by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Brocade_Foundry Nonstackable by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Brocade_Foundry Nonstackable by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Brocade Nonstackable: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Brocade Nonstackable: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Brocade Nonstackable: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Brocade_Foundry Nonstackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 96d099e3a5c142ce8c3bc1e88cb65d5e + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Brocade_Foundry Nonstackable by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Brocade_Foundry Nonstackable by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Brocade_Foundry Nonstackable by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Brocade_Foundry Nonstackable by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Brocade_Foundry Nonstackable by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Brocade_Foundry Nonstackable by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 9ea01b3ce15248868f1ced0b38bf1245 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PSU_INDEX},1.3.6.1.4.1.1991.1.1.1.2.1.1.1]' + key: psu.discovery + delay: 1h + description: 'snChasPwrSupplyTable: A table of each power supply information. Only installed power supply appears in a table row.' + item_prototypes: + - uuid: 47e7c7bb4c27483bb4dd458b5a2d2c1e + name: 'PSU {#PSU_INDEX}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.1.2.1.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[snChasPwrSupplyOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: FOUNDRY-SN-AGENT-MIB' + valuemap: + name: 'FOUNDRY-SN-AGENT-MIB::snChasPwrSupplyOperStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: fbe256ab504b4cb98fec650972d5c41a + expression: 'count(/Brocade_Foundry Nonstackable by SNMP/sensor.psu.status[snChasPwrSupplyOperStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'Brocade Nonstackable: PSU {#PSU_INDEX}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6163e41576734f469146bc818b2856a2 + expression: 'count(/Brocade_Foundry Nonstackable by SNMP/sensor.psu.status[snChasPwrSupplyOperStatus.{#SNMPINDEX}],#1,"ne","{$PSU_OK_STATUS}")=1' + name: 'Brocade Nonstackable: PSU {#PSU_INDEX}: Power supply is not in normal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Brocade Nonstackable: PSU {#PSU_INDEX}: Power supply is in critical state' + expression: 'count(/Brocade_Foundry Nonstackable by SNMP/sensor.psu.status[snChasPwrSupplyOperStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + tags: + - tag: scope + value: notice + - uuid: 5b62e90cfc5549d4b189158499b3d9fb + name: 'Temperature Discovery Chassis' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.1991.1.1.1.1.18]' + key: temp.chassis.discovery + delay: 1h + description: 'Since temperature of the chassis is not available on all Brocade/Foundry hardware, this LLD is here to avoid unsupported items.' + item_prototypes: + - uuid: 699f30c8feee47cf8bf3da4d10f2c8aa + name: 'Chassis #{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.1.1.18.{#SNMPINDEX}]' + key: 'sensor.temp.value[snChasActualTemperature.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: FOUNDRY-SN-AGENT-MIB + Temperature of the chassis. Each unit is 0.5 degrees Celsius. + Only management module built with temperature sensor hardware is applicable. + For those non-applicable management module, it returns no-such-name. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.5' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: cae73cf7a78f4963ab1718446ceeb6f4 + expression: 'avg(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snChasActualTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Chassis"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snChasActualTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Chassis"}-3' + name: 'Brocade Nonstackable: Chassis #{#SNMPINDEX}: Temperature is above critical threshold' + event_name: 'Brocade Nonstackable: Chassis #{#SNMPINDEX}: Temperature is above critical threshold: >{$TEMP_CRIT:"Chassis"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 66c4f9fd59f043a782dd8fea11b90451 + expression: 'avg(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snChasActualTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Chassis"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snChasActualTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Chassis"}-3' + name: 'Brocade Nonstackable: Chassis #{#SNMPINDEX}: Temperature is above warning threshold' + event_name: 'Brocade Nonstackable: Chassis #{#SNMPINDEX}: Temperature is above warning threshold: >{$TEMP_WARN:"Chassis"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Brocade Nonstackable: Chassis #{#SNMPINDEX}: Temperature is above critical threshold' + expression: 'avg(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snChasActualTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Chassis"}' + recovery_expression: 'max(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snChasActualTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Chassis"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2895da8297fc457da88ea136e61fb8d9 + expression: 'avg(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snChasActualTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Chassis"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snChasActualTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Chassis"}+3' + name: 'Brocade Nonstackable: Chassis #{#SNMPINDEX}: Temperature is too low' + event_name: 'Brocade Nonstackable: Chassis #{#SNMPINDEX}: Temperature is too low: <{$TEMP_CRIT_LOW:"Chassis"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 44a84963c9d04fc5a82415602ec8db33 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_DESCR},1.3.6.1.4.1.1991.1.1.2.13.1.1.3]' + key: temp.discovery + delay: 1h + description: 'snAgentTempTable:Table to list temperatures of the modules in the device. This table is applicable to only those modules with temperature sensors.' + item_prototypes: + - uuid: c181349497cc4d2dbaf43f51712278df + name: '{#SENSOR_DESCR}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.2.13.1.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[snAgentTempValue.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: FOUNDRY-SN-AGENT-MIB + Temperature of the sensor represented by this row. Each unit is 0.5 degrees Celsius. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.5' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: bace15be86774bb4a46ca491b3b53516 + expression: 'avg(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snAgentTempValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_DESCR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snAgentTempValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_DESCR}"}-3' + name: 'Brocade Nonstackable: {#SENSOR_DESCR}: Temperature is above critical threshold' + event_name: 'Brocade Nonstackable: {#SENSOR_DESCR}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SENSOR_DESCR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3687c8a7e88949fb9953049fb0f5e54d + expression: 'avg(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snAgentTempValue.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SENSOR_DESCR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snAgentTempValue.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SENSOR_DESCR}"}-3' + name: 'Brocade Nonstackable: {#SENSOR_DESCR}: Temperature is above warning threshold' + event_name: 'Brocade Nonstackable: {#SENSOR_DESCR}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SENSOR_DESCR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Brocade Nonstackable: {#SENSOR_DESCR}: Temperature is above critical threshold' + expression: 'avg(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snAgentTempValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_DESCR}"}' + recovery_expression: 'max(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snAgentTempValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_DESCR}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fbe5f29b241248b4b4bff5d55fcc2180 + expression: 'avg(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snAgentTempValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SENSOR_DESCR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Brocade_Foundry Nonstackable by SNMP/sensor.temp.value[snAgentTempValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SENSOR_DESCR}"}+3' + name: 'Brocade Nonstackable: {#SENSOR_DESCR}: Temperature is too low' + event_name: 'Brocade Nonstackable: {#SENSOR_DESCR}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SENSOR_DESCR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: brocade + - tag: target + value: brocade-foundry + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '3' + - macro: '{$FAN_OK_STATUS}' + value: '2' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '3' + - macro: '{$PSU_OK_STATUS}' + value: '2' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '65' + dashboards: + - uuid: 881c7f5e3dc444f988b314bdb810cb6c + name: 'Brocade: General' + pages: + - name: 'Brocade: General' + widgets: + - type: graph + name: 'Memory utilization' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Brocade_Foundry Nonstackable by SNMP' + name: 'Brocade: Memory utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'CPU utilization' + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Brocade_Foundry Nonstackable by SNMP' + name: 'Brocade: CPU utilization' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: d457efd8cee74f168bd88f4fb2376142 + name: 'FOUNDRY-SN-AGENT-MIB::snChasFanOperStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: normal + - value: '3' + newvalue: failure + - uuid: fe1c4f9f35a34b6189110fc95e21b086 + name: 'FOUNDRY-SN-AGENT-MIB::snChasPwrSupplyOperStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: normal + - value: '3' + newvalue: failure + - uuid: 1b40ba5987784986bb25aa9dfa2d1e81 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 5a55c0fddcc9450eb3e07b76cc73f8ee + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: ac73622b29f54d21aa6bcbac5a783599 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: f74856688e9444bd93951f0c246ae483 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 99208318a05445518bebae305dd53d34 + expression: '(last(/Brocade_Foundry Nonstackable by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Brocade_Foundry Nonstackable by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Brocade_Foundry Nonstackable by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Brocade_Foundry Nonstackable by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Brocade Nonstackable: Host has been restarted' + event_name: 'Brocade Nonstackable: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Brocade Nonstackable: No SNMP data collection' + expression: 'max(/Brocade_Foundry Nonstackable by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 569601f45b394cc68ddf75f37c086ec2 + name: 'Brocade: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Brocade_Foundry Nonstackable by SNMP' + key: 'system.cpu.util[snAgGblCpuUtil1MinAvg.0]' + - uuid: e9b341d71fde4609b1e38d917042fd3b + name: 'Brocade: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Brocade_Foundry Nonstackable by SNMP' + key: 'vm.memory.util[snAgGblDynMemUtil.0]' diff --git a/Brocade_Foundry_Stackable_by_SNMP.yaml b/Brocade_Foundry_Stackable_by_SNMP.yaml new file mode 100644 index 0000000..e3e2991 --- /dev/null +++ b/Brocade_Foundry_Stackable_by_SNMP.yaml @@ -0,0 +1,1768 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: f64ad01567914165a493815e492fb315 + template: 'Brocade_Foundry Stackable by SNMP' + name: 'Brocade_Foundry Stackable by SNMP' + description: | + Template Brocade Foundry Stackable + + MIBs used: + FOUNDRY-SN-AGENT-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + FOUNDRY-SN-STACKING-MIB + IF-MIB + + Known Issues: + + Description: Correct fan(returns fan status as 'other(1)' and temperature (returns 0) for the non-master Switches are not available in SNMP + Version: Version 08.0.40b and above + Device: ICX 7750 in stack + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: df3428a8cf5a449e9ffec28d846a3062 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 06ed32e60b9d4fb387116b5bb9c1700a + expression: 'max(/Brocade_Foundry Stackable by SNMP/icmpping,#3)=0' + name: 'Brocade Stackable: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 3e97bfa40e1547b5be3f72f9675dfc62 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 305f5a75aed34094a1721653ba6cafda + expression: 'min(/Brocade_Foundry Stackable by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Brocade_Foundry Stackable by SNMP/icmppingloss,5m)<100' + name: 'Brocade Stackable: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Brocade Stackable: Unavailable by ICMP ping' + expression: 'max(/Brocade_Foundry Stackable by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 79ca1e3ac22742d28e08c722dad1e254 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 6e7e8f250fbb47778405daeea7a2b852 + expression: 'avg(/Brocade_Foundry Stackable by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Brocade Stackable: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Brocade Stackable: High ICMP ping loss' + expression: 'min(/Brocade_Foundry Stackable by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Brocade_Foundry Stackable by SNMP/icmppingloss,5m)<100' + - name: 'Brocade Stackable: Unavailable by ICMP ping' + expression: 'max(/Brocade_Foundry Stackable by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 584f0625be1c40e69294dce25fc9ead6 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: b973c42ae6da4707893b21f20d09ecd3 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: bfb60806299f4388bb5bfafd2c0329be + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.2.1.52.0]' + key: 'system.cpu.util[snAgGblCpuUtil1MinAvg.0]' + value_type: FLOAT + units: '%' + description: | + MIB: FOUNDRY-SN-AGENT-MIB + The statistics collection of 1 minute CPU utilization. + tags: + - tag: component + value: cpu + triggers: + - uuid: c390ed19b59a45b29f80cb95ee6e635a + expression: 'min(/Brocade_Foundry Stackable by SNMP/system.cpu.util[snAgGblCpuUtil1MinAvg.0],5m)>{$CPU.UTIL.CRIT}' + name: 'Brocade Stackable: High CPU utilization' + event_name: 'Brocade Stackable: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 11f6230e5f2945aab338c958f38ce9d3 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5c17e0d80c354391b339142f2a973886 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.2.1.11.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: FOUNDRY-SN-AGENT-MIB + The version of the running software in the form 'major.minor.maintenance[letters]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 891b6945b3ae4625bf77a16985219015 + expression: 'last(/Brocade_Foundry Stackable by SNMP/system.hw.firmware,#1)<>last(/Brocade_Foundry Stackable by SNMP/system.hw.firmware,#2) and length(last(/Brocade_Foundry Stackable by SNMP/system.hw.firmware))>0' + name: 'Brocade Stackable: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 09265047c03b4c7397d0b526d47e5a8e + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 99be144849104b3cad296b2f21355e93 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7af427adf5ad451894ae1e6af72c1890 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 1e455a8b19994e9a9f9147d4c3abfa59 + expression: 'last(/Brocade_Foundry Stackable by SNMP/system.name,#1)<>last(/Brocade_Foundry Stackable by SNMP/system.name,#2) and length(last(/Brocade_Foundry Stackable by SNMP/system.name))>0' + name: 'Brocade Stackable: System name has changed' + event_name: 'Brocade Stackable: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: c32cf75496ce40e5b3d06a049fa3205d + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 886dd0ed732c49118f012a402b4a5f45 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 631268898edf40908c9d1dd75ed4eef8 + name: 'Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.2.1.53.0]' + key: 'vm.memory.util[snAgGblDynMemUtil.0]' + value_type: FLOAT + units: '%' + description: | + MIB: FOUNDRY-SN-AGENT-MIB + The system dynamic memory utilization, in unit of percentage. + Deprecated: Refer to snAgSystemDRAMUtil. + For NI platforms, refer to snAgentBrdMemoryUtil100thPercent. + tags: + - tag: component + value: memory + triggers: + - uuid: 18623226ce15406488bc99f075cf2590 + expression: 'min(/Brocade_Foundry Stackable by SNMP/vm.memory.util[snAgGblDynMemUtil.0],5m)>{$MEMORY.UTIL.MAX}' + name: 'Brocade Stackable: High memory utilization' + event_name: 'Brocade Stackable: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: a25878004da548e9824321fe0f55955e + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a4bb03ba3e4645fdb7ecab56ddde776f + expression: 'max(/Brocade_Foundry Stackable by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Brocade Stackable: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Brocade Stackable: Unavailable by ICMP ping' + expression: 'max(/Brocade_Foundry Stackable by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 88f67d02cd484dfb841f5f841c3e0bd6 + name: 'Chassis Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.1991.1.1.1.4.1.1.1]' + key: chassis.discovery + delay: 1h + description: 'snChasUnitIndex: The index to chassis table.' + item_prototypes: + - uuid: 2638da6ab127484f8119f8d46d5c996b + name: 'Unit {#SNMPVALUE}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.1.4.1.1.2.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[snChasUnitSerNum.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: FOUNDRY-SN-AGENT-MIB + The serial number of the chassis for each unit. If the serial number is unknown or unavailable then the value should be a zero length string. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 0144f409ccfd421cb382031cbed8a037 + expression: 'last(/Brocade_Foundry Stackable by SNMP/system.hw.serialnumber[snChasUnitSerNum.{#SNMPINDEX}],#1)<>last(/Brocade_Foundry Stackable by SNMP/system.hw.serialnumber[snChasUnitSerNum.{#SNMPINDEX}],#2) and length(last(/Brocade_Foundry Stackable by SNMP/system.hw.serialnumber[snChasUnitSerNum.{#SNMPINDEX}]))>0' + name: 'Brocade Stackable: Unit {#SNMPVALUE}: Device has been replaced' + event_name: 'Brocade Stackable: Unit {#SNMPVALUE}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a192b69e71684d9381ca48b5453a2d8b + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#FAN_UNIT},1.3.6.1.4.1.1991.1.1.1.3.2.1.1,{#FAN_INDEX},1.3.6.1.4.1.1991.1.1.1.3.2.1.2]' + key: fan.discovery + delay: 1h + description: 'snChasFan2Table: A table of each fan information for each unit. Only installed fan appears in a table row.' + item_prototypes: + - uuid: 5491a504d4f8441eb3be588f2ed56d7c + name: 'Unit {#FAN_UNIT} Fan {#FAN_INDEX}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.1.3.2.1.4.{#SNMPINDEX}]' + key: 'sensor.fan.status[snChasFan2OperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: FOUNDRY-SN-AGENT-MIB' + valuemap: + name: 'FOUNDRY-SN-AGENT-MIB::snChasFanOperStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 10f683ff42054948bad36cc52f9c968e + expression: 'count(/Brocade_Foundry Stackable by SNMP/sensor.fan.status[snChasFan2OperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Brocade Stackable: Unit {#FAN_UNIT} Fan {#FAN_INDEX}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 821381a387194c7ca4e4ddd1cf734a4c + expression: 'count(/Brocade_Foundry Stackable by SNMP/sensor.fan.status[snChasFan2OperStatus.{#SNMPINDEX}],#1,"ne","{$FAN_OK_STATUS}")=1' + name: 'Brocade Stackable: Unit {#FAN_UNIT} Fan {#FAN_INDEX}: Fan is not in normal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the fan unit' + dependencies: + - name: 'Brocade Stackable: Unit {#FAN_UNIT} Fan {#FAN_INDEX}: Fan is in critical state' + expression: 'count(/Brocade_Foundry Stackable by SNMP/sensor.fan.status[snChasFan2OperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + tags: + - tag: scope + value: notice + - uuid: 3a38811553e5456f9d3cc842c5bd3809 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: d8691667a3b641b68de53ad50928216e + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c73aaba921794ec3bd0b8783047dca07 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3cc7e079ba25461c887fc976664311ba + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d310f098ff6f4704b974028707c0350b + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3628163a8ecc43e98b81b91e9f6b51a0 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 05eab5a457df403d89e76f7fc20689e4 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 65b44b69e0524cec94c36469987e2fec + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cdba234cfd6f475d8a67528a677b79a0 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4c175f17331942ae8342b0abf43f8fe2 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Brocade Stackable: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 4c8df33c9eb748bd90ea7053c5aa11ce + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8a83aadcd4474f8d99a4712c2f49e737 + expression: | + change(/Brocade_Foundry Stackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Brocade_Foundry Stackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Brocade_Foundry Stackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Brocade_Foundry Stackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Brocade_Foundry Stackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Brocade_Foundry Stackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Brocade_Foundry Stackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Brocade_Foundry Stackable by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Brocade_Foundry Stackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Brocade_Foundry Stackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Brocade Stackable: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Brocade Stackable: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: a1ec6d8bc0644db9be849d79e9f24ea1 + expression: | + (avg(/Brocade_Foundry Stackable by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Brocade_Foundry Stackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Brocade_Foundry Stackable by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Brocade_Foundry Stackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Brocade_Foundry Stackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Brocade_Foundry Stackable by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Brocade_Foundry Stackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Brocade_Foundry Stackable by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Brocade_Foundry Stackable by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Brocade Stackable: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Brocade Stackable: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Brocade Stackable: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: acba5651b6dd4ed29166698a4faed7f8 + expression: | + min(/Brocade_Foundry Stackable by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Brocade_Foundry Stackable by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Brocade_Foundry Stackable by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Brocade_Foundry Stackable by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Brocade Stackable: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Brocade Stackable: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Brocade Stackable: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Brocade_Foundry Stackable by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 6367b40612f94d9b9a3b2d4276268190 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Brocade_Foundry Stackable by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Brocade_Foundry Stackable by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Brocade_Foundry Stackable by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Brocade_Foundry Stackable by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Brocade_Foundry Stackable by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Brocade_Foundry Stackable by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 36f00d10099946c9bf3a9e617252bec1 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PSU_UNIT},1.3.6.1.4.1.1991.1.1.1.2.2.1.1,{#PSU_INDEX},1.3.6.1.4.1.1991.1.1.1.2.2.1.2]' + key: psu.discovery + delay: 1h + description: 'snChasPwrSupply2Table: A table of each power supply information for each unit. Only installed power supply appears in a table row.' + item_prototypes: + - uuid: d96f92d0de9e48968483b9354b99e509 + name: 'Unit {#PSU_UNIT} PSU {#PSU_INDEX}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.1.2.2.1.4.{#SNMPINDEX}]' + key: 'sensor.psu.status[snChasPwrSupply2OperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: FOUNDRY-SN-AGENT-MIB' + valuemap: + name: 'FOUNDRY-SN-AGENT-MIB::snChasPwrSupplyOperStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: b2b78ace5fc748129fd73ae4283802a6 + expression: 'count(/Brocade_Foundry Stackable by SNMP/sensor.psu.status[snChasPwrSupply2OperStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'Brocade Stackable: Unit {#PSU_UNIT} PSU {#PSU_INDEX}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d7d0b3a51e2d4737938d310ba6c4a9c9 + expression: 'count(/Brocade_Foundry Stackable by SNMP/sensor.psu.status[snChasPwrSupply2OperStatus.{#SNMPINDEX}],#1,"ne","{$PSU_OK_STATUS}")=1' + name: 'Brocade Stackable: Unit {#PSU_UNIT} PSU {#PSU_INDEX}: Power supply is not in normal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Brocade Stackable: Unit {#PSU_UNIT} PSU {#PSU_INDEX}: Power supply is in critical state' + expression: 'count(/Brocade_Foundry Stackable by SNMP/sensor.psu.status[snChasPwrSupply2OperStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + tags: + - tag: scope + value: notice + - uuid: e78f4dcfd112442f8b053f1eb0a28741 + name: 'Stack Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.1991.1.1.3.31.2.1.1.5]' + key: stack.discovery + delay: 1h + description: 'Discovering snStackingConfigUnitTable for Model names' + item_prototypes: + - uuid: a4fd63461cb24e4e81e4cbba9f086595 + name: 'Unit {#SNMPINDEX}: Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.3.31.2.1.1.5.{#SNMPINDEX}]' + key: 'system.hw.model[snStackingConfigUnitType.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: FOUNDRY-SN-STACKING-MIB + A description of the configured/active system type for each unit. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: c700d182f3e041d3b31076984100a402 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_DESCR},1.3.6.1.4.1.1991.1.1.2.13.3.1.4]' + key: temp.discovery + delay: 1h + description: 'snAgentTemp2Table:Table to list temperatures of the modules in the device for each unit. This table is applicable to only those modules with temperature sensors.' + item_prototypes: + - uuid: a6bc8a2263444fa1a2b07478068d7297 + name: '{#SENSOR_DESCR}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1991.1.1.2.13.3.1.5.{#SNMPINDEX}]' + key: 'sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: FOUNDRY-SN-AGENT-MIB + Temperature of the sensor represented by this row. Each unit is 0.5 degrees Celsius. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.5' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: e1a63b2ebef549ebbd95b307feee8b8d + expression: 'avg(/Brocade_Foundry Stackable by SNMP/sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_DESCR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Brocade_Foundry Stackable by SNMP/sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_DESCR}"}-3' + name: 'Brocade Stackable: {#SENSOR_DESCR}: Temperature is above critical threshold' + event_name: 'Brocade Stackable: {#SENSOR_DESCR}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SENSOR_DESCR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c1e348e8a5f24100a5b29a840a43dca9 + expression: 'avg(/Brocade_Foundry Stackable by SNMP/sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SENSOR_DESCR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Brocade_Foundry Stackable by SNMP/sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SENSOR_DESCR}"}-3' + name: 'Brocade Stackable: {#SENSOR_DESCR}: Temperature is above warning threshold' + event_name: 'Brocade Stackable: {#SENSOR_DESCR}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SENSOR_DESCR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Brocade Stackable: {#SENSOR_DESCR}: Temperature is above critical threshold' + expression: 'avg(/Brocade_Foundry Stackable by SNMP/sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_DESCR}"}' + recovery_expression: 'max(/Brocade_Foundry Stackable by SNMP/sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_DESCR}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 722ee93a637643e9b3cff31e5ea5151d + expression: 'avg(/Brocade_Foundry Stackable by SNMP/sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SENSOR_DESCR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Brocade_Foundry Stackable by SNMP/sensor.temp.value[snAgentTemp2Value.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SENSOR_DESCR}"}+3' + name: 'Brocade Stackable: {#SENSOR_DESCR}: Temperature is too low' + event_name: 'Brocade Stackable: {#SENSOR_DESCR}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SENSOR_DESCR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: brocade + - tag: target + value: brocade-foundry + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '3' + - macro: '{$FAN_OK_STATUS}' + value: '2' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '3' + - macro: '{$PSU_OK_STATUS}' + value: '2' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '65' + dashboards: + - uuid: bcfbd8a0177440eba7ac737824921c81 + name: 'Brocade: General' + pages: + - name: 'Brocade: General' + widgets: + - type: graph + name: 'Memory utilization' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Brocade_Foundry Stackable by SNMP' + name: 'Brocade: Memory utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'CPU utilization' + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Brocade_Foundry Stackable by SNMP' + name: 'Brocade: CPU utilization' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 41fadae69fa64af4a21c853fc00f23c0 + name: 'FOUNDRY-SN-AGENT-MIB::snChasFanOperStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: normal + - value: '3' + newvalue: failure + - uuid: 7b767e61825544bb857347f303a1f077 + name: 'FOUNDRY-SN-AGENT-MIB::snChasPwrSupplyOperStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: normal + - value: '3' + newvalue: failure + - uuid: 82de0c54872847d190ee681690aac69c + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 6ba7778a7b454c649d6eb0126edd6a62 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 534121daa14949a6b5205cb9b7138b04 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: e7bbb30eb3b748c6b6087bc2c353c3a8 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 0fd4a268d6d34a2d925a97babe365b65 + expression: '(last(/Brocade_Foundry Stackable by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Brocade_Foundry Stackable by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Brocade_Foundry Stackable by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Brocade_Foundry Stackable by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Brocade Stackable: Host has been restarted' + event_name: 'Brocade Stackable: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Brocade Stackable: No SNMP data collection' + expression: 'max(/Brocade_Foundry Stackable by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: d999400f4c7c43c7a1f0af7bbc82bd36 + name: 'Brocade: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Brocade_Foundry Stackable by SNMP' + key: 'system.cpu.util[snAgGblCpuUtil1MinAvg.0]' + - uuid: 06183d560def4fcb8ba81469e4d53c67 + name: 'Brocade: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Brocade_Foundry Stackable by SNMP' + key: 'vm.memory.util[snAgGblDynMemUtil.0]' diff --git a/Ceph_by_Zabbix_agent_2.yaml b/Ceph_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..bd1f35e --- /dev/null +++ b/Ceph_by_Zabbix_agent_2.yaml @@ -0,0 +1,1493 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 09fb25d089f7467f860895f6e71d3fa2 + template: 'Ceph by Zabbix agent 2' + name: 'Ceph by Zabbix agent 2' + description: | + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/410059-discussion-thread-for-official-zabbix-template-ceph + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Applications + items: + - uuid: af3e6faf835f41ef93cbbc44aa57f97e + name: 'Get df' + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: disk + - tag: component + value: raw + - uuid: 45c9df734d424e6a8d3fea99c4a66246 + name: 'Minimum Mon release version' + type: DEPENDENT + key: ceph.min_mon_release_name + delay: '0' + value_type: CHAR + trends: '0' + description: min_mon_release_name + preprocessing: + - type: JSONPATH + parameters: + - $.min_mon_release_name + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: monitors + triggers: + - uuid: 716f166b3943443aba70a4faed882ffb + expression: 'last(/Ceph by Zabbix agent 2/ceph.min_mon_release_name,#1)<>last(/Ceph by Zabbix agent 2/ceph.min_mon_release_name,#2) and length(last(/Ceph by Zabbix agent 2/ceph.min_mon_release_name))>0' + name: 'Ceph: Minimum monitor release version has changed' + event_name: 'Ceph: Minimum monitor release version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'A Ceph version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5d5276504d6c41eebe8e18846edcff45 + name: 'Number of Monitors' + type: DEPENDENT + key: ceph.num_mon + delay: '0' + description: 'The number of Monitors configured in a Ceph cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_mon + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: monitors + - uuid: 09d7a872f35349c6ba7d4a678bf71652 + name: 'Number of OSDs' + type: DEPENDENT + key: ceph.num_osd + delay: '0' + description: 'The number of the known storage daemons in a Ceph cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_osd + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: 795939e16e70475381e917b213bf6f70 + name: 'Number of OSDs in state: IN' + type: DEPENDENT + key: ceph.num_osd_in + delay: '0' + description: 'The total number of the participating storage daemons in a Ceph cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_osd_in + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: d2d5caaad2914fb1ba07343956edb5b8 + name: 'Number of OSDs in state: UP' + type: DEPENDENT + key: ceph.num_osd_up + delay: '0' + description: 'The total number of the online storage daemons in a Ceph cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_osd_up + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: 46ea920b0951408daa5d678f298b1097 + name: 'Number of Placement Groups' + type: DEPENDENT + key: ceph.num_pg + delay: '0' + description: 'The total number of Placement Groups in a Ceph cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_pg + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: placement-groups + - uuid: 97fbecc8ee824e658dd95d8115fec5e9 + name: 'Number of Placement Groups in Temporary state' + type: DEPENDENT + key: ceph.num_pg_temp + delay: '0' + description: 'The total number of Placement Groups in a *pg_temp* state' + preprocessing: + - type: JSONPATH + parameters: + - $.num_pg_temp + master_item: + key: 'ceph.osd.dump["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: b0e36ff76db049ab870fa26c29e5e69c + name: 'Number of Pools' + type: DEPENDENT + key: ceph.num_pools + delay: '0' + description: 'The total number of pools in a Ceph cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_pools + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: pools + - uuid: e7eb1f67d81c4e2ba7c57cfbc81d1a00 + name: 'Get OSD dump' + key: 'ceph.osd.dump["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: osd + - tag: component + value: raw + - uuid: 35b63ca6519e4137bb7655e37ed08e51 + name: 'Get OSD stats' + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: osd + - tag: component + value: raw + - uuid: 0d6cffa1f06748738431524667ea8db0 + name: 'Ceph backfill full ratio' + type: DEPENDENT + key: ceph.osd_backfillfull_ratio + delay: '0' + value_type: FLOAT + description: 'The backfill full ratio setting of the Ceph cluster as configured on OSDMap.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_backfillfull_ratio + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'ceph.osd.dump["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - uuid: 52c5efe132b8404f8fc4ac995c3d5c2c + name: 'Ceph OSD avg fill' + type: DEPENDENT + key: ceph.osd_fill.avg + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average fill of OSDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_fill.avg + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: 453cebeed3214153ba4e3a5b224c063d + name: 'Ceph OSD max fill' + type: DEPENDENT + key: ceph.osd_fill.max + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of the most filled OSD.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_fill.max + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: f6efbd37e8104272be131d686a700808 + name: 'Ceph OSD min fill' + type: DEPENDENT + key: ceph.osd_fill.min + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage fill of the minimum filled OSD.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_fill.min + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: 532891a1d8934211a016524b136cfb1e + name: 'Ceph full ratio' + type: DEPENDENT + key: ceph.osd_full_ratio + delay: '0' + value_type: FLOAT + description: 'The full ratio setting of the Ceph cluster as configured on OSDMap.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_full_ratio + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'ceph.osd.dump["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - uuid: 074c0881384446ea90e99d355afe4f4f + name: 'Ceph OSD Apply latency Avg' + type: DEPENDENT + key: ceph.osd_latency_apply.avg + delay: '0' + value_type: FLOAT + units: ms + description: 'The average apply latency of OSDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_latency_apply.avg + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: ef0a76f0c16147d1a280e00e66d3806f + name: 'Ceph OSD Apply latency Max' + type: DEPENDENT + key: ceph.osd_latency_apply.max + delay: '0' + value_type: FLOAT + units: ms + description: 'The maximum apply latency of OSDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_latency_apply.max + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: d45ad876b0a04345be347af54211aa69 + name: 'Ceph OSD Apply latency Min' + type: DEPENDENT + key: ceph.osd_latency_apply.min + delay: '0' + value_type: FLOAT + units: ms + description: 'The minimum apply latency of OSDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_latency_apply.min + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: 52e1b146c36e4c2e82acf36f1c7d12eb + name: 'Ceph OSD Commit latency Avg' + type: DEPENDENT + key: ceph.osd_latency_commit.avg + delay: '0' + value_type: FLOAT + units: ms + description: 'The average commit latency of OSDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_latency_commit.avg + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: 3027a1dbdd8e4f9bbef8927b92eb8e77 + name: 'Ceph OSD Commit latency Max' + type: DEPENDENT + key: ceph.osd_latency_commit.max + delay: '0' + value_type: FLOAT + units: ms + description: 'The maximum commit latency of OSDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_latency_commit.max + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: b9900b84c22843dab4ad335b9642e040 + name: 'Ceph OSD Commit latency Min' + type: DEPENDENT + key: ceph.osd_latency_commit.min + delay: '0' + value_type: FLOAT + units: ms + description: 'The minimum commit latency of OSDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_latency_commit.min + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - uuid: 477d94bd838d4273a556537de36bb1f6 + name: 'Ceph nearfull ratio' + type: DEPENDENT + key: ceph.osd_nearfull_ratio + delay: '0' + value_type: FLOAT + description: 'The near full ratio setting of the Ceph cluster as configured on OSDMap.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_nearfull_ratio + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'ceph.osd.dump["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - uuid: 27ea5688271347bca429d91ace62d4e2 + name: 'Ceph OSD avg PGs' + type: DEPENDENT + key: ceph.osd_pgs.avg + delay: '0' + value_type: FLOAT + description: 'The average amount of Placement Groups on OSDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_pgs.avg + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - tag: component + value: placement-groups + - uuid: 4174d7d3190e47ccb55b1e50da4cedc5 + name: 'Ceph OSD max PGs' + type: DEPENDENT + key: ceph.osd_pgs.max + delay: '0' + value_type: FLOAT + description: 'The maximum amount of Placement Groups on OSDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_pgs.max + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - tag: component + value: placement-groups + - uuid: 47f56243cd1c430fae217d1a0cbc4a99 + name: 'Ceph OSD min PGs' + type: DEPENDENT + key: ceph.osd_pgs.min + delay: '0' + value_type: FLOAT + description: 'The minimum amount of Placement Groups on OSDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.osd_pgs.min + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: osd + - tag: component + value: placement-groups + - uuid: 4023ca309692470eab2651f69d49419a + name: 'Overall cluster status' + type: DEPENDENT + key: ceph.overall_status + delay: '0' + description: 'The overall Ceph cluster status, eg 0 - HEALTH_OK, 1 - HEALTH_WARN or 2 - HEALTH_ERR.' + valuemap: + name: 'Ceph cluster status' + preprocessing: + - type: JSONPATH + parameters: + - $.overall_status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: health + triggers: + - uuid: 6ab06350bd8b426681f1b8bddde76a13 + expression: 'last(/Ceph by Zabbix agent 2/ceph.overall_status)=2' + name: 'Ceph: Cluster in ERROR state' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 8b6ba1a7ae014e80a5287ffd13b5d8aa + expression: 'last(/Ceph by Zabbix agent 2/ceph.overall_status)=1' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Ceph by Zabbix agent 2/ceph.overall_status)=0' + name: 'Ceph: Cluster in WARNING state' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'Ceph: Cluster in ERROR state' + expression: 'last(/Ceph by Zabbix agent 2/ceph.overall_status)=2' + tags: + - tag: scope + value: availability + - uuid: 9b073153d7474b0abfccb1844d0e6981 + name: 'Number of Placement Groups in Active state' + type: DEPENDENT + key: ceph.pg_states.active + delay: '0' + description: 'The total number of Placement Groups in an active state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.active + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: 1471a13aaadc48c7a265835abcb93a03 + name: 'Number of Placement Groups in Backfilling state' + type: DEPENDENT + key: ceph.pg_states.backfilling + delay: '0' + description: 'The total number of Placement Groups in a backfill state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.backfilling + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: 3b44c79e03d4402ba442331593dbdfa3 + name: 'Number of Placement Groups in backfill_toofull state' + type: DEPENDENT + key: ceph.pg_states.backfill_toofull + delay: '0' + description: 'The total number of Placement Groups in a *backfill_toofull state*.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.backfill_toofull + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: ada3f638ee2e48eeb8889526898aed2f + name: 'Number of Placement Groups in backfill_wait state' + type: DEPENDENT + key: ceph.pg_states.backfill_wait + delay: '0' + description: 'The total number of Placement Groups in a *backfill_wait* state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.backfill_wait + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: b1af2b88fe424723b97c9aa4eee12d83 + name: 'Number of Placement Groups in Clean state' + type: DEPENDENT + key: ceph.pg_states.clean + delay: '0' + description: 'The total number of Placement Groups in a clean state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.clean + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: f8acf8f66fbc401799d3515eb3e2ea43 + name: 'Number of Placement Groups in degraded state' + type: DEPENDENT + key: ceph.pg_states.degraded + delay: '0' + description: 'The total number of Placement Groups in a degraded state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.degraded + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: 79e056b9e3af40eabab0f927fb326491 + name: 'Number of Placement Groups in inconsistent state' + type: DEPENDENT + key: ceph.pg_states.inconsistent + delay: '0' + description: 'The total number of Placement Groups in an inconsistent state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.inconsistent + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: 9ddef3d2e7df43eda7d2835ceac19d32 + name: 'Number of Placement Groups in Peering state' + type: DEPENDENT + key: ceph.pg_states.peering + delay: '0' + description: 'The total number of Placement Groups in a peering state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.peering + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: 573461fc94e84f96b8ae6f6d89916424 + name: 'Number of Placement Groups in recovering state' + type: DEPENDENT + key: ceph.pg_states.recovering + delay: '0' + description: 'The total number of Placement Groups in a recovering state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.recovering + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: c150a9414fee40acaa65d532fd110c4e + name: 'Number of Placement Groups in recovery_wait state' + type: DEPENDENT + key: ceph.pg_states.recovery_wait + delay: '0' + description: 'The total number of Placement Groups in a *recovery_wait* state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.recovery_wait + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: bac3270faf854267a466eaa6a4acad91 + name: 'Number of Placement Groups in remapped state' + type: DEPENDENT + key: ceph.pg_states.remapped + delay: '0' + description: 'The total number of Placement Groups in a remapped state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.remapped + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: 8a0117845436492d951e96b46eb67e1c + name: 'Number of Placement Groups in Scrubbing state' + type: DEPENDENT + key: ceph.pg_states.scrubbing + delay: '0' + description: 'The total number of Placement Groups in a scrubbing state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.scrubbing + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: 4998e4542ed746f08f82ecf53b553c36 + name: 'Number of Placement Groups in Undersized state' + type: DEPENDENT + key: ceph.pg_states.undersized + delay: '0' + description: 'The total number of Placement Groups in an undersized state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.undersized + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: c922613c5ffb4f689c01f13143633ec3 + name: 'Number of Placement Groups in Unknown state' + type: DEPENDENT + key: ceph.pg_states.unknown + delay: '0' + description: 'The total number of Placement Groups in an unknown state.' + preprocessing: + - type: JSONPATH + parameters: + - $.pg_states.unknown + master_item: + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: placement-groups + - uuid: 911e8a654ca44e7ca56b8010ac7381c8 + name: Ping + key: 'ceph.ping["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 9ffc9a5c3d1c47d288c665c8be7d2fbb + expression: 'last(/Ceph by Zabbix agent 2/ceph.ping["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"])=0' + name: 'Ceph: Can not connect to cluster' + priority: AVERAGE + description: 'The connection to the Ceph RESTful module is broken (if there is any error presented including *AUTH* and the configuration issues).' + tags: + - tag: scope + value: availability + - uuid: 89d7df2ebfbc4aa88b4ff4de44dc4b8b + name: 'Ceph Read bandwidth' + type: DEPENDENT + key: ceph.rd_bytes.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The global read bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.rd_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: disk + - uuid: 8a35a37de63746498291993d4f3fc1cc + name: 'Ceph Read operations per sec' + type: DEPENDENT + key: ceph.rd_ops.rate + delay: '0' + value_type: FLOAT + units: ops + description: 'The global read operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.rd_ops + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: disk + - uuid: 8b43d105f9d64a3a94196f3f3bc7eac3 + name: 'Get overall cluster status' + key: 'ceph.status["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 5e400c932acf4ad498e17daca0ad4943 + name: 'Total bytes available' + type: DEPENDENT + key: ceph.total_avail_bytes + delay: '0' + units: B + description: 'The total bytes available in a Ceph cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_avail_bytes + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: disk + - uuid: c4b1a31efb5f47518cc5dd6082f3a42b + name: 'Total bytes' + type: DEPENDENT + key: ceph.total_bytes + delay: '0' + units: B + description: 'The total (RAW) capacity of a Ceph cluster in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_bytes + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: disk + - uuid: d3910275462b43dba1fa8022a398ed1c + name: 'Total number of objects' + type: DEPENDENT + key: ceph.total_objects + delay: '0' + description: 'The total number of objects in a Ceph cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_objects + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - uuid: 6ad8e289eef349ab8ebfd4cc92a35c18 + name: 'Total bytes used' + type: DEPENDENT + key: ceph.total_used_bytes + delay: '0' + units: B + description: 'The total bytes used in a Ceph cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_used_bytes + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: disk + - uuid: 51e100668e5344d29afd50dc9b9eabc9 + name: 'Ceph Write bandwidth' + type: DEPENDENT + key: ceph.wr_bytes.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The global write bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.wr_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: disk + - uuid: 0a7203defa7147f7b975b404e6706b60 + name: 'Ceph Write operations per sec' + type: DEPENDENT + key: ceph.wr_ops.rate + delay: '0' + value_type: FLOAT + units: ops + description: 'The global write operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.wr_ops + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: cluster + - tag: component + value: disk + discovery_rules: + - uuid: 374557a43a824d938e9a8e656151e0c9 + name: OSD + key: 'ceph.osd.discovery["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + delay: 1h + item_prototypes: + - uuid: 4f7a72a5c4c14b9da63ddbae9e2ebf5f + name: '[osd.{#OSDNAME}] OSD fill' + type: DEPENDENT + key: 'ceph.osd[{#OSDNAME},fill]' + delay: '0' + value_type: FLOAT + units: '%' + preprocessing: + - type: JSONPATH + parameters: + - '$.osds.{#OSDNAME}.osd_fill' + error_handler: DISCARD_VALUE + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: class + value: '{#CLASS}' + - tag: component + value: osd + - tag: host + value: '{#HOST}' + - tag: osd + value: '{#OSDNAME}' + - uuid: fc2518ca8b9341d8befc6f9b1cbd4b79 + name: '[osd.{#OSDNAME}] OSD in' + type: DEPENDENT + key: 'ceph.osd[{#OSDNAME},in]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.osds.{#OSDNAME}.in' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'ceph.osd.dump["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: class + value: '{#CLASS}' + - tag: component + value: osd + - tag: host + value: '{#HOST}' + - tag: osd + value: '{#OSDNAME}' + - uuid: 2eb6a0d999d14906a4737ed32834ccc7 + name: '[osd.{#OSDNAME}] OSD latency apply' + type: DEPENDENT + key: 'ceph.osd[{#OSDNAME},latency_apply]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The time taken to flush an update to disks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.osds.{#OSDNAME}.osd_latency_apply' + error_handler: DISCARD_VALUE + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: class + value: '{#CLASS}' + - tag: component + value: osd + - tag: host + value: '{#HOST}' + - tag: osd + value: '{#OSDNAME}' + - uuid: 14f392b369504f10b7e068522ac4a086 + name: '[osd.{#OSDNAME}] OSD latency commit' + type: DEPENDENT + key: 'ceph.osd[{#OSDNAME},latency_commit]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The time taken to commit an operation to the journal.' + preprocessing: + - type: JSONPATH + parameters: + - '$.osds.{#OSDNAME}.osd_latency_commit' + error_handler: DISCARD_VALUE + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: class + value: '{#CLASS}' + - tag: component + value: osd + - tag: host + value: '{#HOST}' + - tag: osd + value: '{#OSDNAME}' + - uuid: 63234342c0bd49e6b1f8737bf595851f + name: '[osd.{#OSDNAME}] OSD PGs' + type: DEPENDENT + key: 'ceph.osd[{#OSDNAME},num_pgs]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.osds.{#OSDNAME}.num_pgs' + error_handler: DISCARD_VALUE + master_item: + key: 'ceph.osd.stats["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: class + value: '{#CLASS}' + - tag: component + value: osd + - tag: host + value: '{#HOST}' + - tag: osd + value: '{#OSDNAME}' + - uuid: 12c20b2fbf10466bba7e1097c014e968 + name: '[osd.{#OSDNAME}] OSD up' + type: DEPENDENT + key: 'ceph.osd[{#OSDNAME},up]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.osds.{#OSDNAME}.up' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'ceph.osd.dump["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: class + value: '{#CLASS}' + - tag: component + value: osd + - tag: host + value: '{#HOST}' + - tag: osd + value: '{#OSDNAME}' + trigger_prototypes: + - uuid: 21535bb935b44b3aa073542db3cc7827 + expression: 'last(/Ceph by Zabbix agent 2/ceph.osd[{#OSDNAME},up]) = 0' + name: 'Ceph: OSD osd.{#OSDNAME} is down' + priority: AVERAGE + description: | + OSD osd.{#OSDNAME} is marked "down" in the *osdmap*. + The OSD daemon may have been stopped, or peer OSDs may be unable to reach the OSD over the network. + tags: + - tag: scope + value: availability + trigger_prototypes: + - uuid: cd04e8d542a04bdf89abad7ee4719e75 + expression: 'min(/Ceph by Zabbix agent 2/ceph.osd[{#OSDNAME},fill],15m) > last(/Ceph by Zabbix agent 2/ceph.osd_nearfull_ratio)*100' + name: 'Ceph: Ceph OSD osd.{#OSDNAME} is near full' + priority: WARNING + dependencies: + - name: 'Ceph: OSD osd.{#OSDNAME} is full' + expression: 'min(/Ceph by Zabbix agent 2/ceph.osd[{#OSDNAME},fill],15m) > last(/Ceph by Zabbix agent 2/ceph.osd_full_ratio)*100' + tags: + - tag: scope + value: capacity + - uuid: 5d7a028166584c29b959914ce904a713 + expression: 'min(/Ceph by Zabbix agent 2/ceph.osd[{#OSDNAME},fill],15m) > last(/Ceph by Zabbix agent 2/ceph.osd_full_ratio)*100' + name: 'Ceph: OSD osd.{#OSDNAME} is full' + priority: AVERAGE + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: c88d53bfa7b8456aa70b4d7a2cb63ef5 + name: 'Ceph: [osd.{#OSDNAME}] OSD latency' + graph_items: + - color: 199C0D + item: + host: 'Ceph by Zabbix agent 2' + key: 'ceph.osd[{#OSDNAME},latency_apply]' + - sortorder: '1' + color: F63100 + item: + host: 'Ceph by Zabbix agent 2' + key: 'ceph.osd[{#OSDNAME},latency_commit]' + - uuid: fb6b4d27f46e4160ad978244aa845d0e + name: Pool + key: 'ceph.pool.discovery["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + delay: 1h + item_prototypes: + - uuid: 1090dc09ce79458e9471863fcb973460 + name: '[{#POOLNAME}] Pool Used' + type: DEPENDENT + key: 'ceph.pool["{#POOLNAME}",bytes_used]' + delay: '0' + units: B + description: 'The total bytes used in a pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$.pools["{#POOLNAME}"].bytes_used' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: pools + - tag: crushrule + value: '{#CRUSHRULE}' + - tag: pool + value: '{#POOLNAME}' + - uuid: 4e49ce8a11084dd287f89b076cc70535 + name: '[{#POOLNAME}] Max available' + type: DEPENDENT + key: 'ceph.pool["{#POOLNAME}",max_avail]' + delay: '0' + units: B + description: 'The maximum available space in the given pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$.pools["{#POOLNAME}"].max_avail' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: pools + - tag: crushrule + value: '{#CRUSHRULE}' + - tag: pool + value: '{#POOLNAME}' + - uuid: 5c7bd85f9d944215acaced87b0eb216f + name: '[{#POOLNAME}] Pool objects' + type: DEPENDENT + key: 'ceph.pool["{#POOLNAME}",objects]' + delay: '0' + description: 'The number of objects in the pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$.pools["{#POOLNAME}"].objects' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: pools + - tag: crushrule + value: '{#CRUSHRULE}' + - tag: pool + value: '{#POOLNAME}' + - uuid: eda166ae6c4c46cf8c01c2b928f07ec5 + name: '[{#POOLNAME}] Pool Percent Used' + type: DEPENDENT + key: 'ceph.pool["{#POOLNAME}",percent_used]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of the storage used per pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$.pools["{#POOLNAME}"].percent_used' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: pools + - tag: crushrule + value: '{#CRUSHRULE}' + - tag: pool + value: '{#POOLNAME}' + - uuid: 5311f1a539284c5483458e1820496be3 + name: '[{#POOLNAME}] Pool Read bandwidth' + type: DEPENDENT + key: 'ceph.pool["{#POOLNAME}",rd_bytes.rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The read rate per pool (bytes per second).' + preprocessing: + - type: JSONPATH + parameters: + - '$.pools["{#POOLNAME}"].rd_bytes' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: pools + - tag: crushrule + value: '{#CRUSHRULE}' + - tag: pool + value: '{#POOLNAME}' + - uuid: 76871b86d66d4307a83e813a8d9fc1b0 + name: '[{#POOLNAME}] Pool Read operations' + type: DEPENDENT + key: 'ceph.pool["{#POOLNAME}",rd_ops.rate]' + delay: '0' + value_type: FLOAT + units: ops + description: 'The read rate per pool (operations per second).' + preprocessing: + - type: JSONPATH + parameters: + - '$.pools["{#POOLNAME}"].rd_ops' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: pools + - tag: crushrule + value: '{#CRUSHRULE}' + - tag: pool + value: '{#POOLNAME}' + - uuid: 4c053bbaaf6946bcaf5288cc154d6fdd + name: '[{#POOLNAME}] Pool RAW Used' + type: DEPENDENT + key: 'ceph.pool["{#POOLNAME}",stored_raw]' + delay: '0' + units: B + description: 'Bytes used in pool including the copies made.' + preprocessing: + - type: JSONPATH + parameters: + - '$.pools["{#POOLNAME}"].stored_raw' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: pools + - tag: crushrule + value: '{#CRUSHRULE}' + - tag: pool + value: '{#POOLNAME}' + - uuid: 955353da182243e29d326b3b2807286a + name: '[{#POOLNAME}] Pool Write bandwidth' + type: DEPENDENT + key: 'ceph.pool["{#POOLNAME}",wr_bytes.rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The write rate per pool (bytes per second).' + preprocessing: + - type: JSONPATH + parameters: + - '$.pools["{#POOLNAME}"].wr_bytes' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: pools + - tag: crushrule + value: '{#CRUSHRULE}' + - tag: pool + value: '{#POOLNAME}' + - uuid: acb3081d772444dab060a055fb3f4304 + name: '[{#POOLNAME}] Pool Write operations' + type: DEPENDENT + key: 'ceph.pool["{#POOLNAME}",wr_ops.rate]' + delay: '0' + value_type: FLOAT + units: ops + description: 'The write rate per pool (operations per second).' + preprocessing: + - type: JSONPATH + parameters: + - '$.pools["{#POOLNAME}"].wr_ops' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'ceph.df.details["{$CEPH.CONNSTRING}","{$CEPH.USER}","{$CEPH.API.KEY}"]' + tags: + - tag: component + value: pools + - tag: crushrule + value: '{#CRUSHRULE}' + - tag: pool + value: '{#POOLNAME}' + graph_prototypes: + - uuid: 1a469f2c99214b1ba7fe3a7520e43439 + name: 'Ceph: [{#POOLNAME}] Pool bandwidth' + graph_items: + - color: 199C0D + item: + host: 'Ceph by Zabbix agent 2' + key: 'ceph.pool["{#POOLNAME}",rd_bytes.rate]' + - sortorder: '1' + color: F63100 + item: + host: 'Ceph by Zabbix agent 2' + key: 'ceph.pool["{#POOLNAME}",wr_bytes.rate]' + - uuid: 7870932ea335481db1c23224dfb33f60 + name: 'Ceph: [{#POOLNAME}] Pool I/O' + graph_items: + - color: 199C0D + item: + host: 'Ceph by Zabbix agent 2' + key: 'ceph.pool["{#POOLNAME}",rd_ops.rate]' + - sortorder: '1' + color: F63100 + item: + host: 'Ceph by Zabbix agent 2' + key: 'ceph.pool["{#POOLNAME}",wr_ops.rate]' + - uuid: 3da48042fdaa4c01825c3eea7ab5af6b + name: 'Ceph: [{#POOLNAME}] Pool Usage' + graph_items: + - color: 199C0D + item: + host: 'Ceph by Zabbix agent 2' + key: 'ceph.pool["{#POOLNAME}",bytes_used]' + - sortorder: '1' + color: F63100 + item: + host: 'Ceph by Zabbix agent 2' + key: 'ceph.pool["{#POOLNAME}",max_avail]' + - sortorder: '2' + color: 00611C + item: + host: 'Ceph by Zabbix agent 2' + key: 'ceph.pool["{#POOLNAME}",stored_raw]' + tags: + - tag: class + value: application + - tag: target + value: ceph + macros: + - macro: '{$CEPH.API.KEY}' + type: SECRET_TEXT + - macro: '{$CEPH.CONNSTRING}' + value: 'https://localhost:8003' + - macro: '{$CEPH.USER}' + value: zabbix + valuemaps: + - uuid: 2a4b2a8c55ba48b2a815e4123c9ea7fa + name: 'Ceph cluster status' + mappings: + - value: '0' + newvalue: HEALTH_OK + - value: '1' + newvalue: HEALTH_WARN + - value: '2' + newvalue: HEALTH_ERR + - uuid: 22fe6d6c74454775994f07fc05d7bafd + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: fac43ab599344f1da374bd091f6b618b + name: 'Ceph: Cluster bandwidth' + graph_items: + - color: 199C0D + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.rd_bytes.rate + - sortorder: '1' + color: F63100 + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.wr_bytes.rate + - uuid: 4191a30a9a7c4e5aa48d96238ca8f20c + name: 'Ceph: Cluster I/O' + graph_items: + - color: 199C0D + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.wr_ops.rate + - sortorder: '1' + color: F63100 + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.rd_ops.rate + - uuid: 515e2c5239f94ee7a52ecdb834079e06 + name: 'Ceph: Free space' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.total_used_bytes + - sortorder: '1' + color: F63100 + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.total_avail_bytes + - uuid: 8714a8cf50bd43c2b54e410a439d320b + name: 'Ceph: Overall OSD latency' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.osd_latency_commit.avg + - sortorder: '1' + color: F63100 + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.osd_latency_commit.max + - sortorder: '2' + color: 00611C + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.osd_latency_commit.min + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.osd_latency_apply.avg + - sortorder: '4' + color: FC6EA3 + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.osd_latency_apply.max + - sortorder: '5' + color: 6C59DC + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.osd_latency_apply.min + - uuid: 716d959b255a47779b9aaf376be8ba03 + name: 'Ceph: Overall OSD utilization' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.osd_fill.avg + - sortorder: '1' + color: F63100 + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.osd_fill.max + - sortorder: '2' + color: 00611C + item: + host: 'Ceph by Zabbix agent 2' + key: ceph.osd_fill.min diff --git a/Chassis_by_IPMI.yaml b/Chassis_by_IPMI.yaml new file mode 100644 index 0000000..20ee70c --- /dev/null +++ b/Chassis_by_IPMI.yaml @@ -0,0 +1,306 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 02f35169a5a54a5aad8b3f06e798ab1f + template: 'Chassis by IPMI' + name: 'Chassis by IPMI' + description: | + Template for monitoring servers with BMC over IPMI that work without any external scripts. + All metrics are collected at once, thanks to Zabbix's bulk data collection. The template is available starting from Zabbix version 5.0. + It collects metrics by polling BMC remotely using an IPMI agent. + + + Known Issues: + + Description: If the BMC has a sensor with an empty threshold value, we get the LLD error "Cannot create trigger...". + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/398023-discussion-thread-for-official-zabbix-template-ipmi + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: dbcf45cb09284fc19a17e7369c8fda43 + name: 'Get IPMI sensors' + type: IPMI + key: ipmi.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item that receives all sensors with values for LLD and dependent elements from BMC.' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: d0a3bd3c62d7438d8acde8ff0a9bb4db + name: 'Discrete sensors discovery' + type: DEPENDENT + key: ipmi.discrete.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR_READING_TYPE}' + value: threshold + operator: NOT_MATCHES_REGEX + formulaid: A + - macro: '{#SENSOR_TYPE}' + value: '{$IPMI.SENSOR_TYPE.MATCHES}' + formulaid: B + - macro: '{#SENSOR_TYPE}' + value: '{$IPMI.SENSOR_TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Discovery of the discrete IPMI sensors.' + item_prototypes: + - uuid: 6ce86fa51c614f94b2250e14af8d9385 + name: '{#SENSOR_ID}' + type: DEPENDENT + key: 'ipmi.state_text[{#SENSOR_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'It is a state of the discrete IPMI sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.id==''{#SENSOR_ID}'')].state.text.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ipmi.get + tags: + - tag: component + value: environment + - tag: sensor + value: '{#SENSOR_TYPE}' + trigger_prototypes: + - uuid: efe107571d704895bbb43c95407e6689 + expression: 'last(/Chassis by IPMI/ipmi.state_text[{#SENSOR_ID}],#1)<>last(/Chassis by IPMI/ipmi.state_text[{#SENSOR_ID}],#2)' + name: 'Chassis: {#SENSOR_ID} value has changed' + priority: INFO + description: 'The trigger is informing about changes in a state of the discrete IPMI sensor. A problem generated by this trigger can be manually closed.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: ipmi.get + lld_macro_paths: + - lld_macro: '{#SENSOR_ID}' + path: $.id + - lld_macro: '{#SENSOR_READING_TYPE}' + path: $.reading.text + - lld_macro: '{#SENSOR_TYPE}' + path: $.sensor.text + - lld_macro: '{#SENSOR_UNIT}' + path: $.units + - uuid: bd5ceb5412d3462d90fa857b2d214788 + name: 'Threshold sensors discovery' + type: DEPENDENT + key: ipmi.sensors.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR_READING_TYPE}' + value: threshold + formulaid: A + - macro: '{#SENSOR_TYPE}' + value: '{$IPMI.SENSOR_TYPE.MATCHES}' + formulaid: B + - macro: '{#SENSOR_TYPE}' + value: '{$IPMI.SENSOR_TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Discovery of the threshold IPMI sensors.' + item_prototypes: + - uuid: 77e8c8c6e2444667b5da698c802dbae0 + name: '{#SENSOR_ID}, {#SENSOR_UNIT}' + type: DEPENDENT + key: 'ipmi.value[{#SENSOR_ID}]' + delay: '0' + value_type: FLOAT + description: 'It is a state of the threshold IPMI sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.id==''{#SENSOR_ID}'')].value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ipmi.get + tags: + - tag: component + value: environment + - tag: sensor + value: '{#SENSOR_TYPE}' + trigger_prototypes: + - uuid: e9c37c1847d64920b80a20cc764b6c81 + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)>{#SENSOR_HI_CRIT}' + name: 'Chassis: {#SENSOR_ID} value is above critical high' + event_name: 'Chassis: {#SENSOR_ID} value is above critical high (greater than {#SENSOR_HI_CRIT} for 5m)' + priority: HIGH + description: 'The trigger is informing that a value higher than the upper critical threshold has been reached.' + dependencies: + - name: 'Chassis: {#SENSOR_ID} value is above non-recoverable high' + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)>{#SENSOR_HI_DISAST}' + tags: + - tag: scope + value: notice + - uuid: 0fc9d9baa3dd4d3db841e2153b6c39b2 + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)>{#SENSOR_HI_WARN}' + name: 'Chassis: {#SENSOR_ID} value is above non-critical high' + event_name: 'Chassis: {#SENSOR_ID} value is above non-critical high (greater than {#SENSOR_HI_WARN} for 5m)' + priority: WARNING + description: 'The trigger is informing that a value higher than the upper non-critical threshold has been reached.' + dependencies: + - name: 'Chassis: {#SENSOR_ID} value is above critical high' + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)>{#SENSOR_HI_CRIT}' + - name: 'Chassis: {#SENSOR_ID} value is above non-recoverable high' + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)>{#SENSOR_HI_DISAST}' + tags: + - tag: scope + value: notice + - uuid: 2c3dbc3f68db44f1924682a8241e0086 + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)>{#SENSOR_HI_DISAST}' + name: 'Chassis: {#SENSOR_ID} value is above non-recoverable high' + event_name: 'Chassis: {#SENSOR_ID} value is above non-recoverable high (greater than {#SENSOR_HI_DISAST} for 5m)' + priority: DISASTER + description: 'The trigger is informing that a value higher than the upper non-recoverable threshold has been reached.' + tags: + - tag: scope + value: notice + - uuid: adbb7e20a46d42329e4744548aa9d5f6 + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)<{#SENSOR_LO_CRIT}' + name: 'Chassis: {#SENSOR_ID} value is below critical low' + event_name: 'Chassis: {#SENSOR_ID} value is below critical low (less than {#SENSOR_LO_CRIT} for 5m)' + priority: HIGH + description: 'The trigger is informing that a value less than the lower critical threshold has been reached.' + dependencies: + - name: 'Chassis: {#SENSOR_ID} value is below non-recoverable low' + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)<{#SENSOR_LO_DISAST}' + tags: + - tag: scope + value: notice + - uuid: 7b712e7b11a34635948517467f77ad9d + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)<{#SENSOR_LO_WARN}' + name: 'Chassis: {#SENSOR_ID} value is below non-critical low' + event_name: 'Chassis: {#SENSOR_ID} value is below non-critical low (less than {#SENSOR_LO_WARN} for 5m)' + priority: WARNING + description: 'The trigger is informing that a value less than the lower non-critical threshold has been reached.' + dependencies: + - name: 'Chassis: {#SENSOR_ID} value is below critical low' + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)<{#SENSOR_LO_CRIT}' + - name: 'Chassis: {#SENSOR_ID} value is below non-recoverable low' + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)<{#SENSOR_LO_DISAST}' + tags: + - tag: scope + value: notice + - uuid: b078ee6b820f44f2871c2e3fcd0ce4cf + expression: 'min(/Chassis by IPMI/ipmi.value[{#SENSOR_ID}],5m)<{#SENSOR_LO_DISAST}' + name: 'Chassis: {#SENSOR_ID} value is below non-recoverable low' + event_name: 'Chassis: {#SENSOR_ID} value is below non-recoverable low (less than {#SENSOR_LO_DISAST} for 5m)' + priority: DISASTER + description: 'The trigger is informing that a value less than the lower non-recoverable threshold has been reached.' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 85099badf8d547d89f498cf29bcd51a8 + name: 'IPMI: {#SENSOR_ID}' + graph_items: + - color: 199C0D + item: + host: 'Chassis by IPMI' + key: 'ipmi.value[{#SENSOR_ID}]' + master_item: + key: ipmi.get + lld_macro_paths: + - lld_macro: '{#SENSOR_HI_CRIT}' + path: $.threshold.upper.crit + - lld_macro: '{#SENSOR_HI_DISAST}' + path: $.threshold.upper.non_recover + - lld_macro: '{#SENSOR_HI_WARN}' + path: $.threshold.upper.non_crit + - lld_macro: '{#SENSOR_ID}' + path: $.id + - lld_macro: '{#SENSOR_LO_CRIT}' + path: $.threshold.lower.crit + - lld_macro: '{#SENSOR_LO_DISAST}' + path: $.threshold.lower.non_recover + - lld_macro: '{#SENSOR_LO_WARN}' + path: $.threshold.lower.non_crit + - lld_macro: '{#SENSOR_READING_TYPE}' + path: $.reading.text + - lld_macro: '{#SENSOR_TYPE}' + path: $.sensor.text + - lld_macro: '{#SENSOR_UNIT}' + path: $.units + overrides: + - name: 'trigger SENSOR_LO_WARN' + step: '1' + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: '{#SENSOR_LO_WARN}' + discover: NO_DISCOVER + - name: 'trigger SENSOR_LO_CRIT' + step: '2' + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: '{#SENSOR_LO_CRIT}' + discover: NO_DISCOVER + - name: 'trigger SENSOR_LO_DISAST' + step: '3' + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: '{#SENSOR_LO_DISAST}' + discover: NO_DISCOVER + - name: 'trigger SENSOR_HI_WARN' + step: '4' + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: '{#SENSOR_HI_WARN}' + discover: NO_DISCOVER + - name: 'trigger SENSOR_HI_CRIT' + step: '5' + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: '{#SENSOR_HI_CRIT}' + discover: NO_DISCOVER + - name: 'trigger SENSOR_HI_DISAST' + step: '6' + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: '{#SENSOR_HI_DISAST}' + discover: NO_DISCOVER + tags: + - tag: class + value: hardware + - tag: target + value: server + macros: + - macro: '{$IPMI.PASSWORD}' + description: 'This macro is used for access to BMC. It can be overridden on the host or linked template level.' + - macro: '{$IPMI.SENSOR_TYPE.MATCHES}' + value: '.*' + description: 'This macro is used in sensors discovery. It can be overridden on the host or linked template level.' + - macro: '{$IPMI.SENSOR_TYPE.NOT_MATCHES}' + value: invalid + description: 'This macro is used in sensors discovery. It can be overridden on the host or linked template level.' + - macro: '{$IPMI.USER}' + description: 'This macro is used for access to BMC. It can be overridden on the host or linked template level.' diff --git a/Check_Point_Next_Generation_Firewall_by_SNMP.yaml b/Check_Point_Next_Generation_Firewall_by_SNMP.yaml new file mode 100644 index 0000000..60c9a15 --- /dev/null +++ b/Check_Point_Next_Generation_Firewall_by_SNMP.yaml @@ -0,0 +1,4269 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 3a7ff6eb19bb4a42b5b5b34a7179b30c + template: 'Check Point Next Generation Firewall by SNMP' + name: 'Check Point Next Generation Firewall by SNMP' + description: | + The template for monitoring Check Point Quantum Next Generation Firewall Security Gateway by SNMP. + + MIBs used: + HOST-RESOURCES-MIB + CHECKPOINT-MIB + UCD-SNMP-MIB + SNMPv2-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 737cc32022044218bd0599bc9be1c6cf + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + Host accessibility by ICMP. + 0 - ICMP ping fails. + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b1d8e86983234d998ed7819d176dc406 + expression: 'max(/Check Point Next Generation Firewall by SNMP/icmpping,#3)=0' + name: 'Check Point: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 584837895d324e5bbcbce686ec894fb4 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'Percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7fc82682e0c345e8aefd0c9a261f6890 + expression: 'min(/Check Point Next Generation Firewall by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Check Point Next Generation Firewall by SNMP/icmppingloss,5m)<100' + name: 'Check Point: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packet loss detected.' + dependencies: + - name: 'Check Point: Unavailable by ICMP ping' + expression: 'max(/Check Point Next Generation Firewall by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 85013b32538f445d87955582857f2942 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 95c6128f0ab84518af233627fe6f3e2b + expression: 'avg(/Check Point Next Generation Firewall by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Check Point: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Check Point: High ICMP ping loss' + expression: 'min(/Check Point Next Generation Firewall by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Check Point Next Generation Firewall by SNMP/icmppingloss,5m)<100' + - name: 'Check Point: Unavailable by ICMP ping' + expression: 'max(/Check Point Next Generation Firewall by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a81c01a9acfe49eabea71a3106bf43b8 + name: 'SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: d50cbc1930c24647b1f5a7921c9c3b06 + name: 'Remote Access users' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2620.500.9000.1.2]' + key: remote.users.number + description: | + MIB: CHECKPOINT-MIB + Number of remote access users. + preprocessing: + - type: JSONPATH + parameters: + - $.length() + tags: + - tag: component + value: users + - uuid: b943e400640e46498ba7ecf2ea3510dd + name: 'SNMP walk fan sensors' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2620.1.6.7.8.2.1.2,1.3.6.1.4.1.2620.1.6.7.8.2.1.3,1.3.6.1.4.1.2620.1.6.7.8.2.1.4,1.3.6.1.4.1.2620.1.6.7.8.2.1.6]' + key: sensor.fan.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering fan sensors from CHECKPOINT-MIB.' + tags: + - tag: component + value: raw + - uuid: 76167bb41de149d6a4b4af4ba68e1460 + name: 'SNMP walk PSU sensors' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2620.1.6.7.9.1.1.1,1.3.6.1.4.1.2620.1.6.7.9.1.1.2]' + key: sensor.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering power supply sensors from CHECKPOINT-MIB.' + tags: + - tag: component + value: raw + - uuid: d5122dad11df4f6790d49d46614c3ea2 + name: 'SNMP walk temperature sensors' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2620.1.6.7.8.1.1.2,1.3.6.1.4.1.2620.1.6.7.8.1.1.3]' + key: sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering temperature sensors from CHECKPOINT-MIB.' + tags: + - tag: component + value: raw + - uuid: 620126ff805d48aea5b7cac6d5ab4084 + name: 'SNMP walk voltage sensors' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2620.1.6.7.8.3.1.2,1.3.6.1.4.1.2620.1.6.7.8.3.1.3]' + key: sensor.volt.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering voltage sensors from CHECKPOINT-MIB.' + tags: + - tag: component + value: raw + - uuid: e04735bdbc4f453692902c0bc6596f3b + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'Used to collect all SNMP traps unmatched by other `snmptrap` items.' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 847084d2b72a4c9688a4375a12fd7ea0 + name: 'SNMP walk svn features' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2620.1.6.18.1.1.4,1.3.6.1.4.1.2620.1.6.18.1.1.5,1.3.6.1.4.1.2620.1.6.18.1.1.6,1.3.6.1.4.1.2620.1.6.18.1.1.8,1.3.6.1.4.1.2620.1.6.18.1.1.9,1.3.6.1.4.1.2620.1.6.18.1.1.10]' + key: svn.feature.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering software blades and features from CHECKPOINT-MIB.' + tags: + - tag: component + value: raw + - uuid: 499ee4e8eb2f481295625592ee215610 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: system.contact + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Name and contact information of the contact person for the node. If not provided, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 07162e1ca0c44dc5979b17c258b34052 + name: 'CPU idle time' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.7.2.3.0]' + key: system.cpu.idle + value_type: FLOAT + units: '%' + description: | + MIB: CHECKPOINT-MIB + Average time the CPU has spent doing nothing. + tags: + - tag: component + value: cpu + - uuid: 5acef2ff22464f2c816bf1ab5ed8c66f + name: 'CPU interrupts per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.7.2.6.0]' + key: system.cpu.intr + value_type: FLOAT + description: | + MIB: CHECKPOINT-MIB + Number of interrupts processed per second. + tags: + - tag: component + value: cpu + - uuid: 4b659e86f18146ca877b595c3151368a + name: 'Load average (1m avg)' + type: DEPENDENT + key: system.cpu.load.avg1 + delay: '0' + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + Average number of processes being executed or waiting over the last minute. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.laName == ''Load-1'')].laLoad.first()' + master_item: + key: system.cpu.load.walk + tags: + - tag: component + value: cpu + - uuid: 534ad1fb2bec4db5aa25de1a42f28dc6 + name: 'Load average (5m avg)' + type: DEPENDENT + key: system.cpu.load.avg5 + delay: '0' + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + Average number of processes being executed or waiting over the last 5 minutes. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.laName == ''Load-5'')].laLoad.first()' + master_item: + key: system.cpu.load.walk + tags: + - tag: component + value: cpu + - uuid: f23f2785833b4096ad65114c40fdaa9b + name: 'Load average (15m avg)' + type: DEPENDENT + key: system.cpu.load.avg15 + delay: '0' + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + Average number of processes being executed or waiting over the last 15 minutes. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.laName == ''Load-15'')].laLoad.first()' + master_item: + key: system.cpu.load.walk + tags: + - tag: component + value: cpu + - uuid: 071848dc74fb481e9f20d3ab63b99f9a + name: 'SNMP walk CPU load averages' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2021.10.1.2,1.3.6.1.4.1.2021.10.1.3]' + key: system.cpu.load.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: UCD-SNMP-MIB + SNMP walk through laTable. The collected data used in dependent CPU load average items. + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - laName + - 1.3.6.1.4.1.2021.10.1.2 + - '0' + - laLoad + - 1.3.6.1.4.1.2021.10.1.3 + - '0' + tags: + - tag: component + value: cpu + - tag: component + value: raw + - uuid: b42cc71d0b5143108b2314ab1fb1ceff + name: 'Number of CPUs' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.7.2.7.0]' + key: system.cpu.num + description: | + MIB: CHECKPOINT-MIB + Number of processors. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: cpu + - uuid: ada3e8eb30bc4c4f863fca6e46dc1cd5 + name: 'Context switches per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.11.60.0]' + key: system.cpu.switches + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + Number of context switches per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: bf0a80a981d248bdb2e4567ee8c084b3 + name: 'CPU system time' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.7.2.2.0]' + key: system.cpu.system + value_type: FLOAT + units: '%' + description: | + MIB: CHECKPOINT-MIB + Average time the CPU has spent running the kernel and its processes. + tags: + - tag: component + value: cpu + - uuid: 7a8a46d486404a5184a7fdba0832c50f + name: 'CPU user time' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.7.2.1.0]' + key: system.cpu.user + value_type: FLOAT + units: '%' + description: | + MIB: CHECKPOINT-MIB + Average time the CPU has spent running user processes that are not niced. + tags: + - tag: component + value: cpu + - uuid: db554f92ee6a4ab297b75839c019a7fe + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.7.2.4.0]' + key: system.cpu.util + value_type: FLOAT + units: '%' + description: | + MIB: CHECKPOINT-MIB + CPU utilization per core in %. + tags: + - tag: component + value: cpu + triggers: + - uuid: b9df7717d21145dc86954380422671a9 + expression: 'min(/Check Point Next Generation Firewall by SNMP/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + name: 'Check Point: High CPU utilization' + event_name: 'Check Point: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 3628aac1e934408489153062d078e2e7 + name: 'SNMP walk CPU' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2620.1.6.7.5.1.1,1.3.6.1.4.1.2620.1.6.7.5.1.2,1.3.6.1.4.1.2620.1.6.7.5.1.3,1.3.6.1.4.1.2620.1.6.7.5.1.4,1.3.6.1.4.1.2620.1.6.7.5.1.5]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering CPU from CHECKPOINT-MIB.' + tags: + - tag: component + value: cpu + - tag: component + value: raw + - uuid: a7ad79b572ab4e678011aa8ee810cd75 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.descr + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Full name and version identification of the system's hardware type, software operating system, and networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8385b6ee11b340f888676d013531a4d5 + name: 'Appliance manufacturer' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.16.9.0]' + key: system.hw.manufacturer + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CHECKPOINT-MIB + Appliance manufacturer. + inventory_link: VENDOR + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: b461939fa04348f19c4f03ce3fd211b8 + name: 'Appliance product name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.16.7.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CHECKPOINT-MIB + Appliance product name. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: adb0bce1162a4e8990f4d299d8554d29 + name: 'Appliance serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.16.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CHECKPOINT-MIB + Appliance serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 13644b6f980d409c865fab446296791b + expression: | + last(/Check Point Next Generation Firewall by SNMP/system.hw.serialnumber,#1)<>last(/Check Point Next Generation Firewall by SNMP/system.hw.serialnumber,#2) and + length(last(/Check Point Next Generation Firewall by SNMP/system.hw.serialnumber))>0 + name: 'Check Point: Device has been replaced' + event_name: 'Check Point: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: df1681db47dc40b987f7be51e640974e + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: system.location + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a18c50a7b53e49c09de5fa39d9a70a14 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for the node (the node's fully-qualified domain name). If not provided, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: d6891f768d354bd09adf47ea313a4ec8 + expression: 'last(/Check Point Next Generation Firewall by SNMP/system.name,#1)<>last(/Check Point Next Generation Firewall by SNMP/system.name,#2) and length(last(/Check Point Next Generation Firewall by SNMP/system.name))>0' + name: 'Check Point: System name has changed' + event_name: 'Check Point: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: bd2f23c23fff46b5b43e8283f1683927 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: system.objectid + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b05995de7faf4d408b467c1024f2a438 + name: 'System uptime' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: system.uptime + units: uptime + description: | + MIB: HOST-RESOURCES-V2-MIB + Time since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + triggers: + - uuid: 9c5b6ef7d033486189e045ad62d13991 + expression: 'last(/Check Point Next Generation Firewall by SNMP/system.uptime)<10m' + name: 'Check Point: Device has been restarted' + event_name: 'Check Point: {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: d66ff3625ea74b5493a37d7b5e231c66 + name: 'SNMP walk disks' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2620.1.6.7.6.1.2,1.3.6.1.4.1.2620.1.6.7.6.1.3,1.3.6.1.4.1.2620.1.6.7.6.1.4,1.3.6.1.4.1.2620.1.6.7.6.1.5,1.3.6.1.4.1.2620.1.6.7.6.1.6,1.3.6.1.4.1.2620.1.6.7.6.1.7]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering storage disks from CHECKPOINT-MIB.' + tags: + - tag: component + value: raw + - uuid: 9c5fbaca93854ad3941cb95e159b0ee1 + name: 'Active memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.7.4.4.0]' + key: vm.memory.active + units: B + description: | + MIB: CHECKPOINT-MIB + Active real memory (memory used by applications that is not cached to the disk) in bytes. + tags: + - tag: component + value: memory + - uuid: 0a55ee1b84cb490494e27a4543db7691 + name: 'Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.7.4.5.0]' + key: vm.memory.free + units: B + description: | + MIB: CHECKPOINT-MIB + Free memory available for applications in bytes. + tags: + - tag: component + value: memory + - uuid: 517445d996d148bcb34d7898dca55df6 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.6.7.4.3.0]' + key: vm.memory.total + units: B + description: | + MIB: CHECKPOINT-MIB + Total real memory in bytes. Memory used by applications. + tags: + - tag: component + value: memory + - uuid: 8846be280ae14ee8a1af1be65bef1996 + name: 'Used memory' + type: CALCULATED + key: vm.memory.used + units: B + params: 'last(//vm.memory.total) - last(//vm.memory.free)' + description: 'Used real memory calculated by total real memory and free real memory in bytes.' + tags: + - tag: component + value: memory + - uuid: 6bb39f4c24f14cc6a90db2ce1492dbea + name: 'Memory utilization' + type: CALCULATED + key: vm.memory.util + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used)/last(//vm.memory.total)*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: e641a3b2e5ce41dabffed001b26c6075 + expression: 'min(/Check Point Next Generation Firewall by SNMP/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + name: 'Check Point: High memory utilization' + event_name: 'Check Point: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 0eac75ac03af43d596b84cee15a8ddb4 + name: 'Decrypted packets per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.2.5.4.6.0]' + key: vpn.packets.decrypted + description: | + MIB: CHECKPOINT-MIB + Number of decrypted packets per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: vpn + - uuid: 5d2b872c90774b868d5ce086fabe5cb2 + name: 'Encrypted packets per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.2.5.4.5.0]' + key: vpn.packets.encrypted + description: | + MIB: CHECKPOINT-MIB + Number of encrypted packets per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: vpn + - uuid: eb15e618aff347b3ba986a2c02deb6bd + name: 'SNMP walk VPN tunnels' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2620.500.9002.1.1,1.3.6.1.4.1.2620.500.9002.1.2,1.3.6.1.4.1.2620.500.9002.1.3,1.3.6.1.4.1.2620.500.9002.1.4,1.3.6.1.4.1.2620.500.9002.1.6,1.3.6.1.4.1.2620.500.9002.1.7,1.3.6.1.4.1.2620.500.9002.1.8,1.3.6.1.4.1.2620.500.9002.1.9,1.3.6.1.4.1.2620.500.9002.1.10,1.3.6.1.4.1.2620.500.9002.1.11]' + key: vpn.tunnel.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering VPN tunnels from CHECKPOINT-MIB.' + tags: + - tag: component + value: raw + - uuid: 843f5f01701e4d79b3e899134f87632d + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to the availability icons in the host list. + + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: 'Zabbix host available' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5d450a6a6d1f483da57164e6a32d1828 + expression: 'max(/Check Point Next Generation Firewall by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Check Point: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Check Point: Unavailable by ICMP ping' + expression: 'max(/Check Point Next Generation Firewall by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 2457ecd2b2ad4a2a815c11bf37c3f029 + name: 'CPU discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: 'For discovering CPU from CHECKPOINT-MIB.' + item_prototypes: + - uuid: 0d17d7831b954decada6fba5f14f9265 + name: 'CPU Core {#CPU.ID}: CPU idle time' + type: DEPENDENT + key: 'system.core.idle[multiProcIdleTime.{#CPU.ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: CHECKPOINT-MIB + The time the CPU `{#CPU.ID}` has spent doing nothing. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.5.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: ce72097a6de44bc7b02f21e065f19a7b + name: 'CPU Core {#CPU.ID}: CPU system time' + type: DEPENDENT + key: 'system.core.system[multiProcSystemTime.{#CPU.ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: CHECKPOINT-MIB + The time the CPU `{#CPU.ID}` has spent running the kernel and its processes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.5.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: a1e8f16be14e4efbb0c6333aded1c761 + name: 'CPU Core {#CPU.ID}: CPU user time' + type: DEPENDENT + key: 'system.core.user[multiProcUserTime.{#CPU.ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: CHECKPOINT-MIB + The time the CPU `{#CPU.ID}` has spent running user processes that are not niced. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.5.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: 54c95169f93a497c9ba4b83874ec85ea + name: 'CPU Core {#CPU.ID}: CPU utilization' + type: DEPENDENT + key: 'system.core.util[multiProcUsage.{#CPU.ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: CHECKPOINT-MIB + CPU `{#CPU.ID}` utilization in %. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.5.1.5.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + graph_prototypes: + - uuid: a28d9820ad3747bebbb4d15ff0b7ce6b + name: 'CPU Core {#CPU.ID}: CPU usage' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'system.core.system[multiProcSystemTime.{#CPU.ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'system.core.user[multiProcUserTime.{#CPU.ID}]' + - sortorder: '2' + color: 00611C + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'system.core.idle[multiProcIdleTime.{#CPU.ID}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU.ID}' + - 1.3.6.1.4.1.2620.1.6.7.5.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 7af85b5904c54687ad9f249cb1a9ad7b + name: 'FAN discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + description: 'For discovering fan sensors from CHECKPOINT-MIB.' + item_prototypes: + - uuid: 4d334701a73a4295a7b3a45a7925ed76 + name: 'FAN {#SNMPINDEX}: Fan speed' + type: DEPENDENT + key: 'sensor.fan.speed[fanSpeedSensorValue.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '!{#FAN.UNIT}' + description: | + MIB: CHECKPOINT-MIB + Current speed of the fan. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.8.2.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: sensor.fan.walk + tags: + - tag: component + value: fan + - tag: component + value: sensor + - uuid: 5421e274306148b694ed5866bb4bff27 + name: 'FAN {#SNMPINDEX}: Fan status' + type: DEPENDENT + key: 'sensor.fan.status[fanSpeedSensorStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: CHECKPOINT-MIB + Current status of the fan tray. + valuemap: + name: 'FanSensor Status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.8.2.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: sensor.fan.walk + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: 5e4f3ca3b93940adaf3a5f9e19aee9ec + expression: 'count(/Check Point Next Generation Firewall by SNMP/sensor.fan.status[fanSpeedSensorStatus.{#SNMPINDEX}],#3,"eq",1)=3' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Check Point Next Generation Firewall by SNMP/sensor.fan.status[fanSpeedSensorStatus.{#SNMPINDEX}],#3)=0' + name: 'Check Point: FAN {#SNMPINDEX}: Fan speed is out of range' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 7a2b8b229cc64130980db46dddd990d7 + name: 'FAN {#SNMPINDEX}: Fan speed' + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'sensor.fan.speed[fanSpeedSensorValue.{#SNMPINDEX}]' + master_item: + key: sensor.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.2620.1.6.7.8.2.1.2 + - '0' + - '{#FAN.UNIT}' + - 1.3.6.1.4.1.2620.1.6.7.8.2.1.4 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5fa6a636f36f44069f83885bc2767e85 + name: 'Firewall discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#FW.STATE},1.3.6.1.4.1.2620.1.1.1]' + key: fw.discovery + delay: 1h + description: 'This discovery will create a set of firewall metrics from CHECKPOINT-MIB if the firewall is installed.' + item_prototypes: + - uuid: ff64891849684cc88ae5414c0bc1b0bb + name: 'Check Point Firewall: Accepted packets per second{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.1.25.6.{#SNMPINDEX}]' + key: 'fw.accepted[fwAccepted.{#SNMPINDEX}]' + description: | + MIB: CHECKPOINT-MIB + Number of accepted packets per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: firewall + - uuid: a26ba0c4eec04fb99160b15a8ff40cee + name: 'Check Point Firewall: Peak concurrent connections{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.1.25.4.{#SNMPINDEX}]' + key: 'fw.conn.num.peak[fwPeakNumConn.{#SNMPINDEX}]' + description: | + MIB: CHECKPOINT-MIB + Peak number of concurrent connections since last reboot. + tags: + - tag: component + value: firewall + - uuid: 3cf7583bcf2a43f4b7598689b6d8825d + name: 'Check Point Firewall: Concurrent connections{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.1.25.3.{#SNMPINDEX}]' + key: 'fw.conn.num[fwNumConn.{#SNMPINDEX}]' + description: | + MIB: CHECKPOINT-MIB + Number of concurrent IPv6 and IPv4 connections. + tags: + - tag: component + value: firewall + - uuid: b35e258430f04d7b96f70f0df97040ef + name: 'Check Point Firewall: Dropped packets per second{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.1.25.16.{#SNMPINDEX}]' + key: 'fw.dropped[fwDropped.{#SNMPINDEX}]' + description: | + MIB: CHECKPOINT-MIB + Number of dropped packets per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: firewall + - uuid: 8dc145b5354940c88089df72ce59557e + name: 'Check Point Firewall: Firewall filter install time{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.1.3.{#SNMPINDEX}]' + key: 'fw.filter.installed[fwFilterDate.{#SNMPINDEX}]' + units: unixtime + description: | + MIB: CHECKPOINT-MIB + Last install time of the firewall filter. + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return Math.floor(new Date(value).getTime() / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: firewall + - uuid: 7c0837980dca4bdda426c5b22bae21e2 + name: 'Check Point Firewall: Firewall filter name{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.1.2.{#SNMPINDEX}]' + key: 'fw.filter.name[fwFilterName.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CHECKPOINT-MIB + Name of the firewall filter. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: firewall + - uuid: 03ec2d7d252d458fac388d915467af42 + name: 'Check Point Firewall: Logged packets per second{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.1.25.13.{#SNMPINDEX}]' + key: 'fw.logged[fwLogged.{#SNMPINDEX}]' + description: | + MIB: CHECKPOINT-MIB + Number of logged packets per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: firewall + - uuid: 8ff79fb5ec1844ff9a502a81ec306f8b + name: 'Check Point Firewall: Rejected packets per second{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.1.25.14.{#SNMPINDEX}]' + key: 'fw.rejected[fwRejected.{#SNMPINDEX}]' + description: | + MIB: CHECKPOINT-MIB + Number of rejected packets per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: firewall + - uuid: 85d1ffccfcf44f41965efa37cbc21c61 + name: 'Check Point Firewall: SIC Trust State{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.1.12.{#SNMPINDEX}]' + key: 'fw.sic.trust.state[fwSICTrustState.{#SNMPINDEX}]' + description: | + MIB: CHECKPOINT-MIB + Firewall SIC Trust State. + valuemap: + name: 'Firewall SIC Trust State' + tags: + - tag: component + value: firewall + - uuid: 589e8b27a2174380a8fee1080bd36471 + name: 'Check Point Firewall: Utilized drops number per second{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2620.1.1.25.26.{#SNMPINDEX}]' + key: 'fw.utilized.drops[fwFullyUtilizedDrops.{#SNMPINDEX}]' + description: | + MIB: CHECKPOINT-MIB + Number of dropped packets per second due to instance being fully utilized. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: firewall + trigger_prototypes: + - uuid: 424568aded01461bb1fe5583ef373418 + expression: 'avg(/Check Point Next Generation Firewall by SNMP/fw.utilized.drops[fwFullyUtilizedDrops.{#SNMPINDEX}],5m)>{$FW.DROPPED.PACKETS.TH}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Check Point Next Generation Firewall by SNMP/fw.utilized.drops[fwFullyUtilizedDrops.{#SNMPINDEX}],5m)<={$FW.DROPPED.PACKETS.TH}' + name: 'Check Point Firewall: Instance is currently fully utilized' + event_name: 'Check Point Firewall: Number of dropped packets has been increased: >{$FW.DROPPED.PACKETS.TH}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses the number of dropped packets, an increase of which indicates that the instance is fully utilized.' + tags: + - tag: scope + value: availability + - uuid: f752805cc45647f290f32085edbb6843 + name: 'Check Point Firewall: Firewall version{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'discovery[{#MAJOR},1.3.6.1.4.1.2620.1.1.22,{#MINOR},1.3.6.1.4.1.2620.1.1.23]' + key: 'fw.version[fwVersion.{#SNMPINDEX}]' + value_type: FLOAT + description: | + MIB: CHECKPOINT-MIB + Current version of the firewall. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var value = JSON.parse(value)[0]; + return value['{#MAJOR}']+"."+value['{#MINOR}']; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: firewall + graph_prototypes: + - uuid: 06c3a0000af94b88bce5d7fe0dbca184 + name: 'Check Point Firewall: Concurrent connections{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'fw.conn.num[fwNumConn.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + yaxisside: RIGHT + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'fw.conn.num.peak[fwPeakNumConn.{#SNMPINDEX}]' + - uuid: 7eb0b600fc7b41e9806f1032bbdc2508 + name: 'Check Point Firewall: Processed packets{#SINGLETON}' + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'fw.accepted[fwAccepted.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'fw.rejected[fwRejected.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'fw.dropped[fwDropped.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'fw.logged[fwLogged.{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var items = JSON.parse(value); + + if (items.length == 0) { + return '[]'; + } + + if (items[0]['{#FW.STATE}'] != 'Installed') { + return '[]'; + } + + return JSON.stringify([{"{#SNMPINDEX}": 0, "{#SINGLETON}":""}]); + - uuid: f53944b3106843c896816bd3e73832fa + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'For discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: fa2d9726b0ce42c6ac16d61a8abbe8c6 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9527d631a5a2434f8bdd9616bf62efd4 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces - the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + For character-oriented or fixed-length interfaces - the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 42c3b17b9d0041719afa0c8acc66e20f + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of `ifInOctets`. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9e4a88ba65964ce4b7fc91923a0d2e15 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 29ba2aa7f8c04ece9f0fe8884cc480a0 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces - the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + For character-oriented or fixed-length interfaces - the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 552579d5a30e4543b4984a46575675eb + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of `ifOutOctets`. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: feca9e6449a04708bdfeee36f2731625 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. + If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces that do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: af3dc7efefb34141a0075f308ef51dd6 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The `testing(3)` state indicates that no operational packets can be passed. + - If `ifAdminStatus` is `down(2)`, then `ifOperStatus` should be `down(2)`. + - If `ifAdminStatus` is changed to `up(1)`, then `ifOperStatus` should change to `up(1)` if the interface is ready to transmit and receive network traffic. + - It should change to `dormant(5)` if the interface is waiting for external actions (such as a serial line waiting for an incoming connection). + - It should remain in the `down(2)` state if and only if there is a fault that prevents it from going to the `up(1)` state. + - It should remain in the `notPresent(6)` state if the interface has missing (typically, hardware) components. + valuemap: + name: 'Interface Status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6cdb81b7e49a49a48cfc3f203a08ae6b + expression: '{$NET.IF.CONTROL:"{#IFNAME}"}=1 and last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$NET.IF.CONTROL:"{#IFNAME}"}=0' + name: 'Check Point: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the interface link status is down. + 2. `{$NET.IF.CONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface link is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the interface link status was up to "1" sometime before. + + WARNING: If closed manually, it will not fire again on the next poll because of `diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: e364e61d77c3470496010dc444cff029 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for `ifType` are assigned by the Internet Assigned Numbers Authority (IANA) through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'Interface Type' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4000bd86c3ca4597bc55accf186f49a2 + expression: | + change(/Check Point Next Generation Firewall by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])<0 and last(/Check Point Next Generation Firewall by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 + and ( + last(/Check Point Next Generation Firewall by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Check Point Next Generation Firewall by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Check Point Next Generation Firewall by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Check Point Next Generation Firewall by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Check Point Next Generation Firewall by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Check Point Next Generation Firewall by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Check Point Next Generation Firewall by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 and last(/Check Point Next Generation Firewall by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Check Point: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Check Point: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$NET.IF.CONTROL:"{#IFNAME}"}=1 and last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$NET.IF.CONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: af4c27b4c8474728973ea1d3d0a78dff + expression: | + (avg(/Check Point Next Generation Firewall by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)>({$NET.IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Check Point Next Generation Firewall by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) or + avg(/Check Point Next Generation Firewall by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)>({$NET.IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Check Point Next Generation Firewall by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])) and + last(/Check Point Next Generation Firewall by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Check Point Next Generation Firewall by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)<(({$NET.IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Check Point Next Generation Firewall by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) and + avg(/Check Point Next Generation Firewall by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)<(({$NET.IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Check Point Next Generation Firewall by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) + name: 'Check Point: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Check Point: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$NET.IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Check Point: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$NET.IF.CONTROL:"{#IFNAME}"}=1 and last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$NET.IF.CONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: d0d1f9f90be948c2ac0b3b40676a52bd + expression: | + min(/Check Point Next Generation Firewall by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$NET.IF.ERRORS.WARN:"{#IFNAME}"} or + min(/Check Point Next Generation Firewall by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$NET.IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Check Point Next Generation Firewall by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$NET.IF.ERRORS.WARN:"{#IFNAME}"}*0.8 and + max(/Check Point Next Generation Firewall by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$NET.IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Check Point: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Check Point: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$NET.IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$NET.IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Check Point: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$NET.IF.CONTROL:"{#IFNAME}"}=1 and last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Check Point Next Generation Firewall by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$NET.IF.CONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: eba9534785bf494fade918edcbafee2d + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0b206f11e8644cfa99e61aa79427820d + name: 'PSU discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'For discovering power supply sensors from CHECKPOINT-MIB.' + item_prototypes: + - uuid: 49b166c588354a00ad500c2181de2602 + name: 'PSU {#SNMPINDEX}: Power supply status' + type: DEPENDENT + key: 'sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: CHECKPOINT-MIB + Power supply status. + valuemap: + name: 'PSU Status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.9.1.1.2.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Up', + 'Down', + 'Unknown' + ].indexOf(value); + return idx !== -1 ? idx : 2; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sensor.psu.walk + tags: + - tag: component + value: power + - tag: component + value: sensor + trigger_prototypes: + - uuid: c5fa57ebf5ea40f8a0172f9ed09ca232 + expression: 'count(/Check Point Next Generation Firewall by SNMP/sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}],#3,"eq",1)=3' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Check Point Next Generation Firewall by SNMP/sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}],#3)=0' + name: 'Check Point: PSU {#SNMPINDEX}: Power supply is in down state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensor.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.2620.1.6.7.9.1.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0ac2ae2dfe3947e1b753500036dc790d + name: 'Software blades discovery' + type: DEPENDENT + key: svn.sw.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SW.NAME}' + value: '{$SW.NAME.MATCHES}' + formulaid: A + - macro: '{#SW.NAME}' + value: '{$SW.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'For discovering software blades and features from CHECKPOINT-MIB.' + item_prototypes: + - uuid: 6024b29ddca34a99a052a4dc8961ca02 + name: '{#SW.NAME}: License expiration date' + type: DEPENDENT + key: 'svn.sw.license.exp_date[licensingExpirationDate.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: unixtime + description: | + MIB: CHECKPOINT-MIB + Expiration date for the license of the software blade. Doesn't return a value if the license doesn't have an expiration date. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.18.1.1.6.{#SNMPINDEX}' + - '0' + - type: NOT_MATCHES_REGEX + parameters: + - ^0$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: svn.feature.walk + tags: + - tag: component + value: license + - tag: component + value: software + - tag: component + value: svn + - tag: software + value: '{#SW.NAME}' + trigger_prototypes: + - uuid: 645bfe77760d49d7a23344d9f910045b + expression: '{$LICENSE.CONTROL:"{#SW.NAME}"}=1 and (last(/Check Point Next Generation Firewall by SNMP/svn.sw.license.exp_date[licensingExpirationDate.{#SNMPINDEX}]) - now()) / 86400 < {$LICENSE.EXPIRY.WARN:"{#SW.NAME}"} and last(/Check Point Next Generation Firewall by SNMP/svn.sw.license.exp_date[licensingExpirationDate.{#SNMPINDEX}]) > now()' + name: 'Check Point: {#SW.NAME}: License expires soon' + event_name: 'Check Point: {#SW.NAME}: License expires soon (less than {$LICENSE.EXPIRY.WARN:"{#SW.NAME}"} days)' + opdata: 'Current expiration date: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + This trigger expression works as follows: + 1. It can be triggered if the license expires soon. + 2. `{$LICENSE.CONTROL:"{#SW.NAME}"}=1` - a user can redefine the context macro to "0", marking the current license as not important. No new trigger will be fired if this license expires. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b50b2374731344a4b5cea5096c5de848 + expression: '{$LICENSE.CONTROL:"{#SW.NAME}"}=1 and last(/Check Point Next Generation Firewall by SNMP/svn.sw.license.exp_date[licensingExpirationDate.{#SNMPINDEX}]) < now()' + name: 'Check Point: {#SW.NAME}: License has been expired' + opdata: 'Current expiration date: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the license has been expired. + 2. `{$LICENSE.CONTROL:"{#SW.NAME}"}=1` - a user can redefine the context macro to "0", marking the current license as not important. No new trigger will be fired if this license is expired. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 24c7853fe8c84d0892f81fea4254e6bb + name: '{#SW.NAME}: License total quota' + type: DEPENDENT + key: 'svn.sw.license.quota.total[licensingTotalQuota.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: CHECKPOINT-MIB + Total quota amount for the license of the software blade. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.18.1.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: svn.feature.walk + tags: + - tag: component + value: license + - tag: component + value: software + - tag: component + value: svn + - tag: software + value: '{#SW.NAME}' + - uuid: 6b4c5c62f0fd4cc990c6c5fc742bcb86 + name: '{#SW.NAME}: License used quota' + type: DEPENDENT + key: 'svn.sw.license.quota.used[licensingUsedQuota.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: CHECKPOINT-MIB + Used quota amount for the license of the software blade. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.18.1.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: svn.feature.walk + tags: + - tag: component + value: license + - tag: component + value: software + - tag: component + value: svn + - tag: software + value: '{#SW.NAME}' + - uuid: d25b27b9d698446dae7a7c2abb12f196 + name: '{#SW.NAME}: License state' + type: DEPENDENT + key: 'svn.sw.license.state[licensingState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: CHECKPOINT-MIB + Current license state of the software blade. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.18.1.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: svn.feature.walk + tags: + - tag: component + value: license + - tag: component + value: software + - tag: component + value: svn + - tag: software + value: '{#SW.NAME}' + - uuid: 82216d7434834659afa14303a4e7cbcb + name: '{#SW.NAME}: Software blade status' + type: DEPENDENT + key: 'svn.sw.status[licensingBladeActive.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: CHECKPOINT-MIB + Current software blade status. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.18.1.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: svn.feature.walk + tags: + - tag: component + value: software + - tag: component + value: svn + - tag: software + value: '{#SW.NAME}' + master_item: + key: svn.feature.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SW.NAME}' + - 1.3.6.1.4.1.2620.1.6.18.1.1.4 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6f54b4025d4b47ffa1cf11652cd94e63 + name: 'Temperature discovery' + type: DEPENDENT + key: temperature.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR.NAME}' + value: '{$TEMP.NAME.MATCHES}' + formulaid: A + - macro: '{#SENSOR.NAME}' + value: '{$TEMP.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'For discovering temperature sensors from CHECKPOINT-MIB.' + item_prototypes: + - uuid: f78ffa1229b746d989899af95c5687b5 + name: '{#SENSOR.NAME}: Temperature' + type: DEPENDENT + key: 'sensor.temp.value[tempertureSensorValue.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '!°C' + description: | + MIB: CHECKPOINT-MIB + Current temperature reading in degrees Celsius from the hardware component's temperature sensor. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.8.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 8d99d20265644e11b04811df55ac351e + expression: 'avg(/Check Point Next Generation Firewall by SNMP/sensor.temp.value[tempertureSensorValue.{#SNMPINDEX}],5m)>{$TEMP.VALUE.CRIT:"{#SENSOR.NAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Check Point Next Generation Firewall by SNMP/sensor.temp.value[tempertureSensorValue.{#SNMPINDEX}],5m)<{$TEMP.VALUE.CRIT:"{#SENSOR.NAME}"}-3' + name: 'Check Point: {#SENSOR.NAME}: Temperature is above critical threshold' + event_name: 'Check Point: {#SENSOR.NAME}: Temperature is above critical threshold: >{$TEMP.VALUE.CRIT:"{#SENSOR.NAME}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1bf4c64452754e4e9c2d700a8111c05d + expression: 'avg(/Check Point Next Generation Firewall by SNMP/sensor.temp.value[tempertureSensorValue.{#SNMPINDEX}],5m)>{$TEMP.VALUE.WARN:"{#SENSOR.NAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Check Point Next Generation Firewall by SNMP/sensor.temp.value[tempertureSensorValue.{#SNMPINDEX}],5m)<{$TEMP.VALUE.WARN:"{#SENSOR.NAME}"}-3' + name: 'Check Point: {#SENSOR.NAME}: Temperature is above warning threshold' + event_name: 'Check Point: {#SENSOR.NAME}: Temperature is above warning threshold: >{$TEMP.VALUE.WARN:"{#SENSOR.NAME}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values.' + dependencies: + - name: 'Check Point: {#SENSOR.NAME}: Temperature is above critical threshold' + expression: 'avg(/Check Point Next Generation Firewall by SNMP/sensor.temp.value[tempertureSensorValue.{#SNMPINDEX}],5m)>{$TEMP.VALUE.CRIT:"{#SENSOR.NAME}"}' + recovery_expression: 'max(/Check Point Next Generation Firewall by SNMP/sensor.temp.value[tempertureSensorValue.{#SNMPINDEX}],5m)<{$TEMP.VALUE.CRIT:"{#SENSOR.NAME}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c30e7ceef9b64ad1afbd9a08125c1fd8 + expression: 'avg(/Check Point Next Generation Firewall by SNMP/sensor.temp.value[tempertureSensorValue.{#SNMPINDEX}],5m)<{$TEMP.VALUE.LOW:"{#SENSOR.NAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Check Point Next Generation Firewall by SNMP/sensor.temp.value[tempertureSensorValue.{#SNMPINDEX}],5m)>{$TEMP.VALUE.LOW:"{#SENSOR.NAME}"}+3' + name: 'Check Point: {#SENSOR.NAME}: Temperature is too low' + event_name: 'Check Point: {#SENSOR.NAME}: Temperature is too low: <{$TEMP.VALUE.LOW:"{#SENSOR.NAME}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'This trigger uses temperature sensor values.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 147ecfdde31a4ab88d6fb53a67477dea + name: '{#SENSOR.NAME}: Temperature' + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'sensor.temp.value[tempertureSensorValue.{#SNMPINDEX}]' + master_item: + key: sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.2620.1.6.7.8.1.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 46d85303a18f48aa81f09278b0d47a35 + name: 'Storage discovery' + type: DEPENDENT + key: vfs.fs.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DISK.NAME}' + value: '{$DISK.NAME.MATCHES}' + formulaid: A + - macro: '{#DISK.NAME}' + value: '{$DISK.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'For discovering storage disks from CHECKPOINT-MIB.' + item_prototypes: + - uuid: 6a0fded5672b4863a273d39c93962c4e + name: '{#DISK.NAME}: Available disk space' + type: DEPENDENT + key: 'vfs.fs.avail[multiDiskFreeAvailableBytes.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: CHECKPOINT-MIB + Available free disk (not reserved by the OS) in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.6.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#DISK.NAME}' + - uuid: 811cb45579d94ea2ae3bbe8ee8fbb727 + name: '{#DISK.NAME}: Free disk space' + type: DEPENDENT + key: 'vfs.fs.free[multiDiskFreeTotalBytes.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: CHECKPOINT-MIB + Free disk capacity in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.6.1.5.{#SNMPINDEX}' + - '0' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#DISK.NAME}' + - uuid: 42947b9cf263429397e2d2bfb5b7253d + name: '{#DISK.NAME}: Disk space utilization' + type: DEPENDENT + key: 'vfs.fs.pused[multiDiskUsagePercent.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Space utilization calculated by the free percentage metric `multiDiskFreeTotalPercent`, expressed in %' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.6.1.6.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - 'return 100 - Number(value);' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#DISK.NAME}' + - uuid: e171f238b9394dbbbc1bf3a80cb1f648 + name: '{#DISK.NAME}: Total disk space' + type: DEPENDENT + key: 'vfs.fs.total[multiDiskSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: CHECKPOINT-MIB + Total disk size in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.6.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#DISK.NAME}' + - uuid: d59f1f4f508741f0a33c47d61321afb4 + name: '{#DISK.NAME}: Used disk space' + type: DEPENDENT + key: 'vfs.fs.used[multiDiskUsed.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: CHECKPOINT-MIB + Amount of disk used in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.6.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#DISK.NAME}' + trigger_prototypes: + - uuid: d56142259e9b4a778a90f88fad2f5ca7 + expression: | + last(/Check Point Next Generation Firewall by SNMP/vfs.fs.pused[multiDiskUsagePercent.{#SNMPINDEX}])>{$DISK.PUSED.MAX.CRIT:"{#DISK.NAME}"} and + (last(/Check Point Next Generation Firewall by SNMP/vfs.fs.total[multiDiskSize.{#SNMPINDEX}])-last(/Check Point Next Generation Firewall by SNMP/vfs.fs.used[multiDiskUsed.{#SNMPINDEX}]))<{$DISK.FREE.MIN.CRIT:"{#DISK.NAME}"} + name: 'Check Point: {#DISK.NAME}: Disk space is critically low' + event_name: 'Check Point: {#DISK.NAME}: Disk space is critically low (used > {$DISK.PUSED.MAX.CRIT:"{#DISK.NAME}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: + 1. The first condition - utilization of the space should be above `{$DISK.PUSED.MAX.CRIT:"{#DISK.NAME}"}`. + 2. The second condition should be one of the following: + - the disk free space is less than `{$DISK.FREE.MIN.CRIT:"{#DISK.NAME}"}`; + - the disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: edb173121bf94dc99e6626743b9ac3ad + expression: | + last(/Check Point Next Generation Firewall by SNMP/vfs.fs.pused[multiDiskUsagePercent.{#SNMPINDEX}])>{$DISK.PUSED.MAX.WARN:"{#DISK.NAME}"} and + (last(/Check Point Next Generation Firewall by SNMP/vfs.fs.total[multiDiskSize.{#SNMPINDEX}])-last(/Check Point Next Generation Firewall by SNMP/vfs.fs.used[multiDiskUsed.{#SNMPINDEX}]))<{$DISK.FREE.MIN.WARN:"{#DISK.NAME}"} + name: 'Check Point: {#DISK.NAME}: Disk space is low' + event_name: 'Check Point: {#DISK.NAME}: Disk space is low (used > {$DISK.PUSED.MAX.WARN:"{#DISK.NAME}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: + 1. The first condition - utilization of the space should be above `{$DISK.PUSED.MAX.WARN:"{#DISK.NAME}"}`. + 2. The second condition should be one of the following: + - the disk free space is less than `{$DISK.FREE.MIN.WARN:"{#DISK.NAME}"}`; + - the disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'Check Point: {#DISK.NAME}: Disk space is critically low' + expression: | + last(/Check Point Next Generation Firewall by SNMP/vfs.fs.pused[multiDiskUsagePercent.{#SNMPINDEX}])>{$DISK.PUSED.MAX.CRIT:"{#DISK.NAME}"} and + (last(/Check Point Next Generation Firewall by SNMP/vfs.fs.total[multiDiskSize.{#SNMPINDEX}])-last(/Check Point Next Generation Firewall by SNMP/vfs.fs.used[multiDiskUsed.{#SNMPINDEX}]))<{$DISK.FREE.MIN.CRIT:"{#DISK.NAME}"} + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 589eef3a19144fb68b32a018d83b3839 + name: '{#DISK.NAME}: Disk usage' + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'vfs.fs.total[multiDiskSize.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'vfs.fs.used[multiDiskUsed.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'vfs.fs.avail[multiDiskFreeAvailableBytes.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#DISK.NAME}' + - 1.3.6.1.4.1.2620.1.6.7.6.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 61e3a11989a5424a8d4dd2bf67b97526 + name: 'Voltage discovery' + type: DEPENDENT + key: voltage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR.NAME}' + value: '{$VOLT.NAME.MATCHES}' + formulaid: A + - macro: '{#SENSOR.NAME}' + value: '{$VOLT.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'For discovering voltage sensors from CHECKPOINT-MIB.' + item_prototypes: + - uuid: a302aefd0ea5499ea6d916929b4d45dc + name: '{#SENSOR.NAME}: Voltage value' + type: DEPENDENT + key: 'sensor.volt.value[voltageSensorValue.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: V + description: | + MIB: CHECKPOINT-MIB + Most recent measurement obtained by the agent for this sensor. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.1.6.7.8.3.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: sensor.volt.walk + tags: + - tag: component + value: sensor + - tag: component + value: voltage + graph_prototypes: + - uuid: d95b5de9111a42a8a52f4876ea888beb + name: '{#SENSOR.NAME}: Voltage' + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'sensor.volt.value[voltageSensorValue.{#SNMPINDEX}]' + master_item: + key: sensor.volt.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.2620.1.6.7.8.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 842341dc7bf64939a3c6a0848b3604a6 + name: 'VPN discovery' + type: DEPENDENT + key: vpn.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VPN.NAME}' + value: '{$VPN.NAME.MATCHES}' + formulaid: A + - macro: '{#VPN.NAME}' + value: '{$VPN.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'For discovering VPN tunnels from CHECKPOINT-MIB.' + item_prototypes: + - uuid: 35acb99d29714edb88df244b006e8cd3 + name: 'VPN {#VPN.NAME}: Community' + type: DEPENDENT + key: 'vpn.tunnel.community[tunnelCommunity.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: CHECKPOINT-MIB + VPN tunnel community. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.500.9002.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: vpn.tunnel.walk + tags: + - tag: component + value: vpn + - tag: tunnel + value: '{#VPN.NAME}' + - uuid: 9498260975dd4a6fb9e7d03e5fab6ee2 + name: 'VPN {#VPN.NAME}: Tunnel interface' + type: DEPENDENT + key: 'vpn.tunnel.netif[tunnelInterface.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: CHECKPOINT-MIB + VPN tunnel interface. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.500.9002.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: vpn.tunnel.walk + tags: + - tag: component + value: vpn + - tag: tunnel + value: '{#VPN.NAME}' + - uuid: a0e98320c4834a74ab042e8b48331dc9 + name: 'VPN {#VPN.NAME}: Peer IP address' + type: DEPENDENT + key: 'vpn.tunnel.peer_ip[tunnelPeerIpAddr.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: CHECKPOINT-MIB + VPN peer IP address. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.500.9002.1.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: vpn.tunnel.walk + tags: + - tag: component + value: vpn + - tag: tunnel + value: '{#VPN.NAME}' + - uuid: 95c9d89c3d3f468ba08f6f1cef68d2a0 + name: 'VPN {#VPN.NAME}: Peer type' + type: DEPENDENT + key: 'vpn.tunnel.peer_type[tunnelPeerType.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: CHECKPOINT-MIB + VPN peer type. + valuemap: + name: 'VPN Peer Type' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.500.9002.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vpn.tunnel.walk + tags: + - tag: component + value: vpn + - tag: tunnel + value: '{#VPN.NAME}' + - uuid: 6bc95f169f2c47c0b208ddd28431a88a + name: 'VPN {#VPN.NAME}: Link priority' + type: DEPENDENT + key: 'vpn.tunnel.priority[tunnelLinkPriority.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: CHECKPOINT-MIB + Link priority. + valuemap: + name: 'VPN Link Priority' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.500.9002.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vpn.tunnel.walk + tags: + - tag: component + value: vpn + - tag: tunnel + value: '{#VPN.NAME}' + - uuid: 667ffd215887414d9bfa39b40c9aa504 + name: 'VPN {#VPN.NAME}: Probing state' + type: DEPENDENT + key: 'vpn.tunnel.prob_state[tunnelProbState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: CHECKPOINT-MIB + VPN tunnel probing state: + 0 - unknown + 1 - alive + 2 - dead + valuemap: + name: 'VPN Probing State' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.500.9002.1.9.{#SNMPINDEX}' + - '0' + master_item: + key: vpn.tunnel.walk + tags: + - tag: component + value: vpn + - tag: tunnel + value: '{#VPN.NAME}' + - uuid: 05967af892db4b8980b8c6b69204aa9d + name: 'VPN {#VPN.NAME}: Source IP' + type: DEPENDENT + key: 'vpn.tunnel.src_ip[tunnelSourceIpAddr.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: CHECKPOINT-MIB + Source IP address. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.500.9002.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: vpn.tunnel.walk + tags: + - tag: component + value: vpn + - tag: tunnel + value: '{#VPN.NAME}' + - uuid: d4eb1c51226e41cfb08312ea87002d5a + name: 'VPN {#VPN.NAME}: Tunnel state' + type: DEPENDENT + key: 'vpn.tunnel.state[tunnelState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: CHECKPOINT-MIB + VPN tunnel state: + 3 - active + 4 - destroy + 129 - idle + 130 - phase1 + 131 - down + 132 - init + valuemap: + name: 'VPN Status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.500.9002.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vpn.tunnel.walk + tags: + - tag: component + value: vpn + - tag: tunnel + value: '{#VPN.NAME}' + trigger_prototypes: + - uuid: 25261c25e01c4f4292e9e47b3eeef100 + expression: '{$VPN.STATE.CONTROL:"{#VPN.NAME}"}=1 and last(/Check Point Next Generation Firewall by SNMP/vpn.tunnel.state[tunnelState.{#SNMPINDEX}])=131' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Check Point Next Generation Firewall by SNMP/vpn.tunnel.state[tunnelState.{#SNMPINDEX}])=3 or {$VPN.STATE.CONTROL:"{#VPN.NAME}"}=0' + name: 'Check Point: VPN {#VPN.NAME}: Tunnel down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the current tunnel state is down. + 2. `{$VPN.STATE.CONTROL:"{#VPN.NAME}"}=1` - a user can redefine the context macro to "0", marking this notification as not important. No new trigger will be fired if this tunnel is down. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 9e723441c22c4d62b98173cab83589d9 + name: 'VPN {#VPN.NAME}: Tunnel type' + type: DEPENDENT + key: 'vpn.tunnel.type[tunnelType.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: CHECKPOINT-MIB + VPN tunnel type. + valuemap: + name: 'VPN Tunnel Type' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2620.500.9002.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vpn.tunnel.walk + tags: + - tag: component + value: vpn + - tag: tunnel + value: '{#VPN.NAME}' + master_item: + key: vpn.tunnel.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#VPN.NAME}' + - 1.3.6.1.4.1.2620.500.9002.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: checkpoint + - tag: target + value: firewall + - tag: target + value: ngfw + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Threshold of CPU utilization for the Warning trigger in %.' + - macro: '{$DISK.FREE.MIN.CRIT}' + value: 5G + description: 'Critical threshold of disk space usage.' + - macro: '{$DISK.FREE.MIN.WARN}' + value: 10G + description: 'Warning threshold of disk space usage.' + - macro: '{$DISK.NAME.MATCHES}' + value: .+ + description: 'Used in Storage discovery. Can be overridden on the host or linked template level.' + - macro: '{$DISK.NAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used in Storage discovery. Can be overridden on the host or linked template level.' + - macro: '{$DISK.PUSED.MAX.CRIT}' + value: '90' + description: 'Disk utilization threshold for Critical trigger in %.' + - macro: '{$DISK.PUSED.MAX.WARN}' + value: '80' + description: 'Disk utilization threshold for Warning trigger in %.' + - macro: '{$FW.DROPPED.PACKETS.TH}' + value: '0' + description: 'Used in Firewall discovery.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Threshold of ICMP packet loss for the Warning trigger in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Threshold of average ICMP response time for the Warning trigger in seconds.' + - macro: '{$LICENSE.CONTROL}' + value: '1' + description: 'Used in Software blade discovery. Can be overridden on the host or linked template level.' + - macro: '{$LICENSE.EXPIRY.WARN}' + value: '7' + description: 'Number of days until the license expires.' + - macro: '{$LOAD_AVG_PER_CPU.MAX.WARN}' + value: '1.5' + description: 'Load per CPU considered sustainable. Change if needed.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Warning threshold for the item "Physical memory: Memory utilization".' + - macro: '{$NET.IF.CONTROL}' + value: '1' + description: 'Macro for the interface operational state for the "Link down" trigger. Can be used with the interface name as context.' + - macro: '{$NET.IF.ERRORS.WARN}' + value: '2' + description: 'Threshold of error packet rate for the Warning trigger. Can be used with the interface name as context.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '.*' + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '.*' + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '.*' + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.UTIL.MAX}' + value: '95' + description: 'Threshold of interface bandwidth utilization for the Warning trigger in %. Can be used with interface name as context.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$SW.NAME.MATCHES}' + value: '.*' + description: 'Used in Software blade discovery. Can be overridden on the host or linked template level.' + - macro: '{$SW.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Software blade discovery. Can be overridden on the host or linked template level.' + - macro: '{$TEMP.NAME.MATCHES}' + value: '.*' + description: 'Used in Temperature discovery. Can be overridden on the host or linked template level.' + - macro: '{$TEMP.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Temperature discovery. Can be overridden on the host or linked template level.' + - macro: '{$TEMP.VALUE.CRIT}' + value: '75' + description: 'Used in Temperature discovery. Can be overridden on the host or linked template level.' + - macro: '{$TEMP.VALUE.LOW}' + value: '5' + description: 'Used in Temperature discovery. Can be overridden on the host or linked template level.' + - macro: '{$TEMP.VALUE.WARN}' + value: '65' + description: 'Used in Temperature discovery. Can be overridden on the host or linked template level.' + - macro: '{$VOLT.NAME.MATCHES}' + value: '.*' + description: 'Used in Voltage discovery. Can be overridden on the host or linked template level.' + - macro: '{$VOLT.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Voltage discovery. Can be overridden on the host or linked template level.' + - macro: '{$VPN.NAME.MATCHES}' + value: '.*' + description: 'Used in VPN discovery. Can be overridden on the host or linked template level.' + - macro: '{$VPN.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in VPN discovery. Can be overridden on the host or linked template level.' + - macro: '{$VPN.STATE.CONTROL}' + value: '1' + description: 'Used in the "Tunnel down" trigger. Can be used with the interface name as context.' + dashboards: + - uuid: 6d73f2e443dd4f91bd16d1be0a680513 + name: 'Check Point: General' + pages: + - name: Overview + widgets: + - type: item + name: 'ICMP availability' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FFCA28 + - type: STRING + name: description + value: Ping + - type: INTEGER + name: desc_bold + value: '1' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: icmpping + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Number of CPUs' + 'y': '2' + width: '18' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.num + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - type: gauge + name: 'CPU utilization' + 'y': '4' + width: '18' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.util + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '80' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '15' + - type: problems + 'y': '8' + width: '72' + height: '6' + fields: + - type: INTEGER + name: acknowledgement_status + value: '1' + - type: STRING + name: reference + value: BAAAA + - type: INTEGER + name: show + value: '3' + - type: INTEGER + name: show_opdata + value: '2' + - type: INTEGER + name: show_tags + value: '1' + - type: STRING + name: tag_priority + value: scope + - type: item + name: 'SNMP availability' + x: '12' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FFCA28 + - type: STRING + name: description + value: SNMP + - type: INTEGER + name: desc_bold + value: '1' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: 'zabbix[host,snmp,available]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Total memory' + x: '18' + 'y': '2' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '40' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: vm.memory.total + - type: INTEGER + name: show.0 + value: '2' + - type: STRING + name: units + value: B + - type: INTEGER + name: units_bold + value: '0' + - type: STRING + name: units_color + value: 1E88E5 + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - type: gauge + name: 'Memory utilization' + x: '18' + 'y': '4' + width: '18' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: vm.memory.util + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '15' + - type: item + name: Uptime + x: '24' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 1E88E5 + - type: STRING + name: description + value: Uptime + - type: INTEGER + name: desc_bold + value: '1' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.uptime + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Product name' + x: '36' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.hw.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - type: item + name: Name + x: '36' + 'y': '2' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.name + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - type: svggraph + name: 'CPU LA' + x: '36' + 'y': '4' + width: '36' + height: '4' + fields: + - type: STRING + name: ds.0.color + value: 1976D2 + - type: STRING + name: ds.0.items.0 + value: system.cpu.load.avg1 + - type: STRING + name: ds.1.color + value: 4CAF50 + - type: STRING + name: ds.1.items.0 + value: system.cpu.load.avg5 + - type: STRING + name: ds.2.items.0 + value: system.cpu.load.avg15 + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: time_period.from + value: now-1d + - type: STRING + name: time_period.to + value: now + - type: INTEGER + name: working_time + value: '1' + - type: item + name: 'Serial number' + x: '54' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.hw.serialnumber + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - type: item + name: Manufacturer + x: '54' + 'y': '2' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.hw.manufacturer + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - uuid: 8291aa73acc04ffe9832e02164531a6c + name: 'Check Point: Statistics' + pages: + - name: 'System performance' + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: 'Check Point: Memory usage' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: 'Check Point: CPU utilization' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: '{#DISK.NAME}: Disk usage' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: 'Check Point: CPU usage' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: 'Check Point: CPU jumps' + - type: STRING + name: reference + value: AAAAE + - name: Sensors + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: 'FAN {#SNMPINDEX}: Fan speed' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: '{#SENSOR.NAME}: Temperature' + - type: STRING + name: reference + value: AAAAI + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: '{#SENSOR.NAME}: Voltage' + - type: STRING + name: reference + value: AAAAH + - name: Firewall + widgets: + - type: graphprototype + width: '72' + height: '7' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: 'Check Point Firewall: Processed packets{#SINGLETON}' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + 'y': '7' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: 'Check Point Firewall: Concurrent connections{#SINGLETON}' + - type: STRING + name: reference + value: AAAAK + - name: VPN + widgets: + - type: item + name: 'Remote Access users' + width: '24' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: remote.users.number + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - type: graph + 'y': '2' + width: '72' + height: '7' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: 'Check Point: VPN packets processed' + - type: STRING + name: reference + value: AAAAL + - type: item + name: 'Encrypted packets per second' + x: '24' + width: '24' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: vpn.packets.encrypted + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - type: item + name: 'Decrypted packets per second' + x: '48' + width: '24' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + key: vpn.packets.decrypted + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - name: 'Network interfaces' + widgets: + - type: graphprototype + width: '72' + height: '7' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Check Point Next Generation Firewall by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAM + valuemaps: + - uuid: 6a115abb186b4f9fa22477c858d60c9e + name: 'FanSensor Status' + mappings: + - value: '0' + newvalue: Ok + - value: '1' + newvalue: 'Out of range' + - value: '2' + newvalue: 'Reading error' + - uuid: 77983c82abc44f418cacaf98c57be31a + name: 'Firewall SIC Trust State' + mappings: + - value: '0' + newvalue: 'Not initialized' + - value: '1' + newvalue: Initialized + - value: '2' + newvalue: Established + - value: '3' + newvalue: Error + - value: '4' + newvalue: Unknown + - uuid: 863e809ef63b47168e97c3ea34095503 + name: 'Interface Status' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: e2ed7260bd594394b85cb5f803c9d47a + name: 'Interface Type' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 24c77b8db1e44ffd8dbb3547c9140326 + name: 'PSU Status' + mappings: + - value: '0' + newvalue: Up + - value: '1' + newvalue: Down + - value: '2' + newvalue: Unknown + - uuid: 9bef9869d1b94f78b4a5388d34f84a47 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 4e09769502b84240aff18a24b17f57e0 + name: 'VPN Link Priority' + mappings: + - value: '0' + newvalue: primary + - value: '1' + newvalue: backup + - value: '2' + newvalue: on-demand + - value: '3' + newvalue: unknown + - uuid: 60597b4621df494fa8e69b7eb2806f4a + name: 'VPN Peer Type' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: regular + - value: '2' + newvalue: daip + - value: '3' + newvalue: robo + - uuid: 02a3a896c3a14a23bc882657a8e72c0a + name: 'VPN Probing State' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: alive + - value: '2' + newvalue: dead + - uuid: 673a59778998478e8752726f1d7cf5c2 + name: 'VPN Status' + mappings: + - value: '0' + newvalue: unknown + - value: '3' + newvalue: active + - value: '4' + newvalue: destroy + - value: '129' + newvalue: idle + - value: '130' + newvalue: phase1 + - value: '131' + newvalue: down + - value: '132' + newvalue: init + - uuid: 6109e694ded24bb5a6042805e0e5bda5 + name: 'VPN Tunnel Type' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: regular + - value: '2' + newvalue: permanent + - uuid: acb530d7d3ef431f98748e928a088ecb + name: 'Zabbix host available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: dc26681b9d8244799f28c6bda3dded3c + expression: | + min(/Check Point Next Generation Firewall by SNMP/system.cpu.load.avg1,5m)/last(/Check Point Next Generation Firewall by SNMP/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN} + and last(/Check Point Next Generation Firewall by SNMP/system.cpu.load.avg5)>0 + and last(/Check Point Next Generation Firewall by SNMP/system.cpu.load.avg15)>0 + name: 'Check Point: Load average is too high' + event_name: 'Check Point: Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)' + opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The load average per CPU is too high. The system may be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graphs: + - uuid: 7d3fdc1e26eb4748989a6d0c2eb09d61 + name: 'Check Point: CPU jumps' + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.switches + - sortorder: '1' + color: F63100 + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.intr + - uuid: d3d422bf223645e5bab85a8c88651160 + name: 'Check Point: CPU usage' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.system + - sortorder: '1' + color: F63100 + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.user + - sortorder: '2' + color: 00611C + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.idle + - uuid: 51d21d313a3d4f2bad3ef221affe141c + name: 'Check Point: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.util + - uuid: 0fe8af91daf1483d84650141a28d9748 + name: 'Check Point: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: vm.memory.total + - sortorder: '1' + color: F63100 + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: vm.memory.active + - sortorder: '2' + color: 00611C + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: vm.memory.used + - uuid: d5c5d886667e4bf8b22c526fe6f40f9e + name: 'Check Point: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: vm.memory.util + - uuid: f8957207dcd04c78a1a040d720634881 + name: 'Check Point: System load' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.load.avg1 + - sortorder: '1' + color: F63100 + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.load.avg5 + - sortorder: '2' + color: 00611C + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.load.avg15 + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: system.cpu.num + - uuid: 349bd025bfde428d977739556e527698 + name: 'Check Point: VPN packets processed' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: vpn.packets.encrypted + - sortorder: '1' + color: F63100 + item: + host: 'Check Point Next Generation Firewall by SNMP' + key: vpn.packets.decrypted diff --git a/Ciena_3906_by_SNMP.yaml b/Ciena_3906_by_SNMP.yaml new file mode 100644 index 0000000..5d90d01 --- /dev/null +++ b/Ciena_3906_by_SNMP.yaml @@ -0,0 +1,2535 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: b1271833815f46499458a8631d0bda20 + template: 'Ciena 3906 by SNMP' + name: 'Ciena 3906 by SNMP' + description: | + Ciena 3906 by SNMP + + MIBs used: + WWP-LEOS-BLADE-MIB + WWP-LEOS-CHASSIS-MIB + WWP-LEOS-SYSTEM-CONFIG-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Network devices' + items: + - uuid: df073cbb8335403b826eb05b70c8571e + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.11.9.0]' + key: ciena.cpu.utilization + value_type: FLOAT + units: '%' + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + CPU utilization over 60 seconds. + tags: + - tag: component + value: cpu + triggers: + - uuid: 9381eddcc6c14189b073fa7ec1627eb5 + expression: 'min(/Ciena 3906 by SNMP/ciena.cpu.utilization,5m)>{$CIENA.CPU.UTIL.CRIT}' + name: 'Ciena: High CPU utilization' + event_name: 'Ciena: High CPU utilization (over {$CIENA.CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: a8e84dba6b0c4d34932b738fa96e3103 + name: 'CPU utilization average (15m)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.7.3.0]' + key: ciena.cpu.utilization15m + units: '%' + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + CPU utilization average for last 15 minutes. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: cpu + triggers: + - uuid: ba3c33682edd40d7b97d9a50ffcbd903 + expression: 'min(/Ciena 3906 by SNMP/ciena.cpu.utilization15m,5m)>{$CIENA.CPU.AVG.UTIL.WARN}' + name: 'Ciena: High CPU utilization (last 15m)' + event_name: 'Ciena: High CPU utilization (over {$CIENA.CPU.AVG.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average CPU utilization for the last 15 minutes exceeded ''{$CIENA.CPU.AVG.UTIL.WARN}%''.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 608541fd744049eb86d3c349d53ff804 + name: 'CPU utilization average maximum (15m)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.7.9.0]' + key: ciena.cpu.utilization15m.max + units: '%' + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + Maximum 15 minute CPU utilization average. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: cpu + - uuid: ffc8bd45a7bb4b4fa4e2ea81a07f5303 + name: 'CPU utilization average minimum (15m)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.7.8.0]' + key: ciena.cpu.utilization15m.min + units: '%' + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + Minimum 15 minute CPU utilization average. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: cpu + - uuid: 1a2c6f18acbe4f0abf37e0dc7f9b3105 + name: 'CPU utilization state (15m)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.7.10.0]' + key: ciena.cpu.utilization15m.state + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + CPU utilization 15-minute state. + valuemap: + name: 'WWP-LEOS-SYSTEM-CONFIG-MIB::CpuLoadState' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: cpu + triggers: + - uuid: 8a742d755e4242a49390c2591ccbb902 + expression: 'last(/Ciena 3906 by SNMP/ciena.cpu.utilization15m.state)<>1' + name: 'Ciena: CPU utilization state abnormal (15m)' + event_name: 'Ciena: CPU average utilization state is not normal' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: WARNING + description: 'The CPU utilization 15-minute state indicates an abnormal or fault condition.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5f452c7b72e54d59b20118fe2384a071 + name: 'Memory available' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.13.4.0]' + key: ciena.memory.available + units: B + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + Available memory in bytes. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + - uuid: 4a1490cfe12c41239a2979163f6d1d75 + name: 'Memory used' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.13.1.0]' + key: ciena.memory.used + units: B + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + Used memory in bytes. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + - uuid: a1c72b2649f04169b757ca1be27ae328 + name: 'Memory utilization' + type: CALCULATED + key: ciena.memory.utilization + value_type: FLOAT + units: '%' + params: 'last(//ciena.memory.used) * 100 / (last(//ciena.memory.used) + last(//ciena.memory.available))' + description: 'Memory utilization, in percent.' + tags: + - tag: component + value: memory + triggers: + - uuid: f4a8c13d12cd4800a0a7adbb07345167 + expression: 'min(/Ciena 3906 by SNMP/ciena.memory.utilization,5m)>{$CIENA.MEMORY.UTIL.MAX}' + name: 'Ciena: High memory utilization' + event_name: 'Ciena: High memory utilization (>{$CIENA.MEMORY.UTIL.MAX}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: c72fb85a301147f68a78319162bdb302 + name: 'Filesystem [/mnt/sysfs]: State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.12.8.0]' + key: ciena.sysfs.state + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + Current state of /mnt/sysfs filesystem. + valuemap: + name: 'WWP-LEOS-SYSTEM-CONFIG-MIB::FilesystemState' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: storage + - uuid: eb76487bb73149c0b8f53b93afd0d301 + name: 'Filesystem [/mnt/sysfs]: Utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.12.5.0]' + key: ciena.sysfs.utilization + units: '%' + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + Current utilization of the /mnt/sysfs directory. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: storage + - uuid: 5cfeac8a546640e89dc492cb484fc300 + name: 'Filesystem [/tmp]: State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.12.4.0]' + key: ciena.tmpfs.state + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + Current state of /tmp filesystem. + valuemap: + name: 'WWP-LEOS-SYSTEM-CONFIG-MIB::FilesystemState' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: storage + - uuid: 0bb2b2ddc5fb4c57b79f98fd818cc100 + name: 'Filesystem [/tmp]: Utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.12.1.12.1.0]' + key: ciena.tmpfs.utilization + units: '%' + description: | + MIB: WWP-LEOS-SYSTEM-CONFIG-MIB + Current utilization of the /tmp directory. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: storage + - uuid: 6cc4a72569f64f79ae10e552c2fdbd58 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ee75be8f7f164985934e2c1be1c04e13 + expression: 'max(/Ciena 3906 by SNMP/icmpping,#3)=0' + name: 'Ciena: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: a123346e709b42fe87e646af285cf8d5 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a97aab2e9d914087881a7045d27706ee + expression: 'min(/Ciena 3906 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Ciena 3906 by SNMP/icmppingloss,5m)<100' + name: 'Ciena: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Ciena: Unavailable by ICMP ping' + expression: 'max(/Ciena 3906 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 500280a0bfe7466e9bd8528b6483ab4e + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8e79674a73714bf8873afb383df9a3dc + expression: 'avg(/Ciena 3906 by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Ciena: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Ciena: High ICMP ping loss' + expression: 'min(/Ciena 3906 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Ciena 3906 by SNMP/icmppingloss,5m)<100' + - name: 'Ciena: Unavailable by ICMP ping' + expression: 'max(/Ciena 3906 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5c3f8f0ae5ed4226916d0edb195535fc + name: 'SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: e0fb173352d7443581cc68e90cbc7cb1 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 8ad77109e14d4a7b900d179ec1b96438 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5ad8efff2bb8429ab122b97e834cce38 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1d76443bc2ef47e3abc99bbc3ddeb92d + name: 'SNMP walk fan' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.6141.2.60.11.1.1.4.1.1]' + key: system.fan.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: WWP-LEOS-CHASSIS-MIB + Used for discovering system fans. + tags: + - tag: component + value: raw + - uuid: 487b6faac2b94edbb7109b35b6cffe48 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.1.1.1.2.1.7.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: WWP-LEOS-BLADE-MIB + Model name of the hardware. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 349aa5e2814644499e1391ffd5e2ffdf + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.1.1.1.2.1.2.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: WWP-LEOS-BLADE-MIB + The serial number of the product. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: e779b8999360405abf31a569f79933e3 + expression: 'last(/Ciena 3906 by SNMP/system.hw.serialnumber,#1)<>last(/Ciena 3906 by SNMP/system.hw.serialnumber,#2) and length(last(/Ciena 3906 by SNMP/system.hw.serialnumber))>0' + name: 'Ciena: Device has been replaced' + event_name: 'Ciena: Device has been replaced (new serial number received)' + priority: INFO + description: 'The Ciena device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8fd398744d9c4f72b4e1c81d866d2932 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 0cdb06e8f6ac4b33a47bdce499465efa + name: 'Hardware version (revision)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6141.2.60.1.1.1.2.1.3.1]' + key: system.hw.version + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: WWP-LEOS-BLADE-MIB + The hardware version of the product. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 06e7d638c8094542bf7773abadc0c2b4 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: cb271362beb143ec866e7cb0d58a27ca + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: ccccd5869f544ceab91f7d83cfb72bba + expression: 'last(/Ciena 3906 by SNMP/system.name,#1)<>last(/Ciena 3906 by SNMP/system.name,#2) and length(last(/Ciena 3906 by SNMP/system.name))>0' + name: 'Ciena: System name has changed' + event_name: 'Ciena: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: ae5500f046e04d16b3f6a44f4ccdcf7d + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 206707cf6c124a63a8dd231acb7f2995 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6ff62d92f45f48bdbd901276795b0bbc + name: 'SNMP walk PSU' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.6141.2.60.11.1.1.3.1.1]' + key: system.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: WWP-LEOS-CHASSIS-MIB + Used for discovering the system power supply. + tags: + - tag: component + value: raw + - uuid: e06e318827b048b7970f6107adc3b68d + name: 'SNMP walk temperature sensors' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.6141.2.60.11.1.1.5.1.1]' + key: system.temperature.sensor.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: WWP-LEOS-CHASSIS-MIB + Used for discovering system temperature sensors. + tags: + - tag: component + value: raw + - uuid: 3b910a6ecf254672a5fd216e51348705 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a3b4708a1ff34ee688655890c1bd4483 + expression: 'max(/Ciena 3906 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Ciena: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Ciena: Unavailable by ICMP ping' + expression: 'max(/Ciena 3906 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 33cb92289fcf4e34ba1c5f4d21b9aee4 + name: 'Fan discovery' + type: DEPENDENT + key: ciena.fan.discovery + delay: '0' + description: 'Used for discovering fans from WWP-LEOS-CHASSIS-MIB.' + item_prototypes: + - uuid: fb43685bb86f4620bf1cd44f9e5c2bae + name: 'Fan [{#SNMPVALUE}]: Speed' + type: DEPENDENT + key: 'ciena.fan.speed[ChassisFanCurrentSpeed.{#SNMPINDEX}]' + delay: '0' + units: '!rpm' + description: | + MIB: WWP-LEOS-CHASSIS-MIB + The current speed of the fan in RPM. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.6141.2.60.11.1.1.4.1.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: system.fan.walk + tags: + - tag: component + value: fan + - uuid: 21af2e9f71f04832b9d7c898378d2b7a + name: 'Fan [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'ciena.fan.status[ChassisFanModuleStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: WWP-LEOS-CHASSIS-MIB + Denotes the fan module status. + Possible values: + 1 - "ok"; means fan is operational; + 2 - "pending"; means fan is installed but statistics are not yet available; + 3 - "failure"; means fan is not working. + valuemap: + name: 'WWP-LEOS-CHASSIS-MIB::wwpLeosChassisFanModuleStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.6141.2.60.11.1.1.4.1.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: system.fan.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: f8a3bae2cede4009a78336d538307db7 + expression: 'last(/Ciena 3906 by SNMP/ciena.fan.status[ChassisFanModuleStatus.{#SNMPINDEX}])=3' + name: 'Ciena: Fan [{#SNMPVALUE}]: Fan status is Failure' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The fan status is "failure".' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: system.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.6141.2.60.11.1.1.4.1.1.1 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b6301c49acbc4b8cb73737ddea2af97a + name: 'PSU discovery' + type: DEPENDENT + key: ciena.psu.discovery + delay: '0' + description: 'Used for discovering PSU from WWP-LEOS-CHASSIS-MIB.' + item_prototypes: + - uuid: 07fa3745241049f989cc8b08718d5294 + name: 'PSU [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'ciena.psu.status[ChassisPowerSupplyState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: WWP-LEOS-CHASSIS-MIB + Denotes the PSU module status. + Possible values: + 1 - online; + 2 - offline; + 3 - faulted. + valuemap: + name: 'WWP-LEOS-CHASSIS-MIB::wwpLeosChassisPowerSupplyState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.6141.2.60.11.1.1.3.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: system.psu.walk + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: f52cf9bc73674a478c2d949878fed2f6 + expression: 'last(/Ciena 3906 by SNMP/ciena.psu.status[ChassisPowerSupplyState.{#SNMPINDEX}])=3' + name: 'Ciena: PSU [{#SNMPVALUE}]: Status is Faulted' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The PSU status is "faulted".' + tags: + - tag: scope + value: availability + master_item: + key: system.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.6141.2.60.11.1.1.3.1.1.1 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: bc76e20f951648a49459b4541f812183 + name: 'Temperature sensor discovery' + type: DEPENDENT + key: ciena.temperature.sensor.discovery + delay: '0' + description: 'Used for discovering temperature sensors from WWP-LEOS-CHASSIS-MIB.' + item_prototypes: + - uuid: 83c809987bd84bc7bfd74ea25644706a + name: 'Sensor [{#SNMPVALUE}]: Temperature' + type: DEPENDENT + key: 'ciena.temperature.sensors.temp[ChassisTempSensorValue.{#SNMPINDEX}]' + delay: '0' + units: °C + description: | + MIB: WWP-LEOS-CHASSIS-MIB + The value of temperature measured by the sensor inside the device in degrees Celsius. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.6141.2.60.11.1.1.5.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: system.temperature.sensor.walk + tags: + - tag: component + value: sensor + trigger_prototypes: + - uuid: a53a816efa4c49e08ccc18ea7bcd7046 + expression: 'min(/Ciena 3906 by SNMP/ciena.temperature.sensors.temp[ChassisTempSensorValue.{#SNMPINDEX}],5m)>{#CIENA.TEMPERATURE.HIGH}' + name: 'Ciena: Sensor [{#SNMPVALUE}]: High chassis temperature' + event_name: 'Ciena: Sensor [{#SNMPVALUE}]: High chassis temperature (>{#CIENA.TEMPERATURE.HIGH} °C)' + priority: AVERAGE + description: 'The current temperature is higher than the threshold state.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a484e0bb091c4abea5db311d91083d0f + expression: 'max(/Ciena 3906 by SNMP/ciena.temperature.sensors.temp[ChassisTempSensorValue.{#SNMPINDEX}],5m)<{#CIENA.TEMPERATURE.LOW}' + name: 'Ciena: Sensor [{#SNMPVALUE}]: Low chassis temperature' + event_name: 'Ciena: Sensor [{#SNMPVALUE}]: Low chassis temperature (<{#CIENA.TEMPERATURE.LOW} °C)' + priority: AVERAGE + description: 'The current temperature is lower than the threshold state.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: f90cac3fc8964b9e874d0fc160ac0304 + name: 'Ciena: Sensor [{#SNMPVALUE}]: Temperature' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ciena 3906 by SNMP' + key: 'ciena.temperature.sensors.temp[ChassisTempSensorValue.{#SNMPINDEX}]' + master_item: + key: system.temperature.sensor.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.6141.2.60.11.1.1.5.1.1.1 + - '0' + - '{#CIENA.TEMPERATURE.HIGH}' + - 1.3.6.1.4.1.6141.2.60.11.1.1.5.1.1.3 + - '0' + - '{#CIENA.TEMPERATURE.LOW}' + - 1.3.6.1.4.1.6141.2.60.11.1.1.5.1.1.4 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f62c23005aa7433ea0af5ae1052253c6 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: a86af1fb203c437ab9532549faf513af + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9bfbcb75f0f647ed8b6119ebb51655d1 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9c9b04b35d3d473f9e72f94306323ebc + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8e3439988f19469bbbf0e13bfc867271 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 50ef325793684f419620c521187fd8f3 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1223311e9fc04cb4b42e43e3c0800a66 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1ad0ee1ee6f74cad90307a7ff2879e00 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b4835bb2c7204531b073e1cece6c211e + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6553917026ab486cb92e418c1a0c66a3 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Ciena: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 1969604952c44b2ba87bea8193c39ba7 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b8635b85feb247f59c7997ea4ca4b96a + expression: | + change(/Ciena 3906 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Ciena 3906 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Ciena 3906 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Ciena 3906 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Ciena 3906 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Ciena 3906 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Ciena 3906 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Ciena 3906 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Ciena 3906 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Ciena 3906 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Ciena: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Ciena: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 411150c8856242228b8092595808f10c + expression: | + (avg(/Ciena 3906 by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Ciena 3906 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Ciena 3906 by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Ciena 3906 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Ciena 3906 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Ciena 3906 by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Ciena 3906 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Ciena 3906 by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Ciena 3906 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Ciena: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Ciena: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Ciena: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 86121173a53e471a9c22876b4c808e23 + expression: | + min(/Ciena 3906 by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Ciena 3906 by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Ciena 3906 by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Ciena 3906 by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Ciena: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Ciena: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Ciena: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Ciena 3906 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 0b365ca9e76b4329ab68e567ddc1ca17 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ciena 3906 by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Ciena 3906 by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Ciena 3906 by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Ciena 3906 by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Ciena 3906 by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Ciena 3906 by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ciena + - tag: target + value: ciena-3906 + macros: + - macro: '{$CIENA.CPU.AVG.UTIL.WARN}' + value: '100' + description: 'Threshold of CPU utilization expressed in %.' + - macro: '{$CIENA.CPU.UTIL.CRIT}' + value: '90' + description: 'Threshold of CPU utilization expressed in %.' + - macro: '{$CIENA.MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold of memory utilization expressed in %.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + dashboards: + - uuid: e860ca516823426e9f2383f9bb7df112 + name: 'Ciena: Overview' + pages: + - name: 'Ciena: Overview' + widgets: + - type: item + name: 'Uptime (network)' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ciena 3906 by SNMP' + key: 'system.net.uptime[sysUpTime.0]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: svggraph + name: 'ICMP response time' + 'y': '2' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Ciena 3906 by SNMP' + key: icmppingsec + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: svggraph + name: 'CPU utilization' + 'y': '7' + width: '24' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Ciena 3906 by SNMP' + key: ciena.cpu.utilization + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'System name' + x: '12' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ciena 3906 by SNMP' + key: system.name + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: svggraph + name: 'Memory utilization' + x: '24' + 'y': '7' + width: '24' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Ciena 3906 by SNMP' + key: ciena.memory.utilization + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'System location' + x: '27' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ciena 3906 by SNMP' + key: 'system.location[sysLocation.0]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: honeycomb + name: 'Fan status' + x: '36' + 'y': '2' + width: '24' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'Fan*Status' + - type: INTEGER + name: primary_label_type + value: '1' + - type: INTEGER + name: primary_label_units_show + value: '0' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: show.0 + value: '1' + - type: STRING + name: thresholds.0.color + value: 3BC97D + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FCCB1D + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: E65660 + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: item + name: 'System description' + x: '42' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ciena 3906 by SNMP' + key: 'system.descr[sysDescr.0]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: honeycomb + name: 'Sensor temperature' + x: '48' + 'y': '7' + width: '12' + height: '5' + fields: + - type: STRING + name: items.0 + value: '*Temperature' + - type: INTEGER + name: primary_label_type + value: '1' + - type: STRING + name: primary_label_units + value: °C + - type: STRING + name: reference + value: AAAAF + - type: INTEGER + name: show.0 + value: '1' + - type: STRING + name: thresholds.0.color + value: 3BC97D + - type: STRING + name: thresholds.0.threshold + value: '20' + - type: STRING + name: thresholds.1.color + value: FCCB1D + - type: STRING + name: thresholds.1.threshold + value: '35' + - type: STRING + name: thresholds.2.color + value: E65660 + - type: STRING + name: thresholds.2.threshold + value: '40' + - type: item + name: 'Hardware model name' + x: '57' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ciena 3906 by SNMP' + key: system.hw.model + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: honeycomb + name: 'PSU status' + x: '60' + 'y': '2' + width: '12' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'PSU*Status' + - type: INTEGER + name: primary_label_type + value: '1' + - type: INTEGER + name: primary_label_units_show + value: '0' + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: show.0 + value: '1' + - type: STRING + name: thresholds.0.color + value: 3BC97D + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FCCB1D + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: E65660 + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: item + name: 'Hardware version (revision)' + x: '60' + 'y': '7' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ciena 3906 by SNMP' + key: system.hw.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: item + name: 'Hardware serial number' + x: '60' + 'y': '9' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_size + value: '9' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ciena 3906 by SNMP' + key: system.hw.serialnumber + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '20' + valuemaps: + - uuid: 0148dfb2980a443dbe2646757115ba4a + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: ce6e6488447a415a8c09869bead48038 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 8de09e0fdf2845799e387d182da139c7 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 62614cd4421b45bbbe2e2b06679af929 + name: 'WWP-LEOS-CHASSIS-MIB::wwpLeosChassisFanModuleStatus' + mappings: + - value: '1' + newvalue: OK + - value: '2' + newvalue: Pending + - value: '3' + newvalue: Failure + - uuid: 37ba73ce2d34442b93cb781eea12b6e0 + name: 'WWP-LEOS-CHASSIS-MIB::wwpLeosChassisPowerSupplyState' + mappings: + - value: '1' + newvalue: Online + - value: '2' + newvalue: Offline + - value: '3' + newvalue: Faulted + - uuid: e4482198eb8645908b11cde87371ea03 + name: 'WWP-LEOS-SYSTEM-CONFIG-MIB::CpuLoadState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: degraded + - value: '4' + newvalue: faulted + - uuid: 190bc7b91c2649d989523cf2fadf8201 + name: 'WWP-LEOS-SYSTEM-CONFIG-MIB::FilesystemState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: degraded + - value: '4' + newvalue: faulted + - uuid: e8261a3a0c2f4d69b5be9b070abf9ce9 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: d883855527e148ab97eb47db682116ea + expression: '(last(/Ciena 3906 by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Ciena 3906 by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Ciena 3906 by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Ciena 3906 by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Ciena: Host has been restarted' + event_name: 'Ciena: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Ciena: No SNMP data collection' + expression: 'max(/Ciena 3906 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 652efbd1e8d44865acfc633866116b5a + name: 'Ciena: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ciena 3906 by SNMP' + key: ciena.cpu.utilization + - uuid: 376c15f14b414caab715650ce9c86e0f + name: 'Ciena: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ciena 3906 by SNMP' + key: ciena.memory.utilization diff --git a/Cisco_ASAv_by_SNMP.yaml b/Cisco_ASAv_by_SNMP.yaml new file mode 100644 index 0000000..350781f --- /dev/null +++ b/Cisco_ASAv_by_SNMP.yaml @@ -0,0 +1,1515 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 75d009cd4dc84ee7a8fc479fa2fbaeee + template: 'Cisco ASAv by SNMP' + name: 'Cisco ASAv by SNMP' + description: | + Template Net Cisco ASAv + + MIBs used: + CISCO-PORT-MIB + CISCO-MEMORY-POOL-MIB + CISCO-REMOTE-ACCESS-MONITOR-MIB + IF-MIB + RFC1213-MIB + CISCO-PROCESS-MIB + ENTITY-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/418396-discussion-thread-for-official-zabbix-templates-for-cisco + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 9371a5b8ca3445eaa6516044e60a2ec6 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: cisco.asav.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 2d4a058787a141629a33ab98194055f2 + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: cisco.asav.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: c2e63e282bcd4fd09a80f1be95c089d4 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: cisco.asav.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: d20d56dccd494060a4bc130f2951a610 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: cisco.asav.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 526b1a118bab4c948af0935197a659f6 + name: Uptime + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: cisco.asav.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + triggers: + - uuid: 7fcf46583d2b42f4be6758e85784f28f + expression: 'last(/Cisco ASAv by SNMP/cisco.asav.uptime)<10m' + name: 'Cisco ASAv: Host has been restarted' + event_name: 'Cisco ASAv: {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: 33e87e5fe2774f1fabb93553e782aaa0 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: application + - tag: component + value: network + triggers: + - uuid: 9ee945a0b0b942d7a7e3fcf218f0e82f + expression: 'max(/Cisco ASAv by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco ASAv: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 0469f5b40a77457f9447512ed2e75f5e + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.109.1.1.1.1.8]' + key: cisco.asav.cpu.discovery + delay: 1h + description: 'Discovery of cpmCPUTotalTable, a table of CPU monitoring entries.' + item_prototypes: + - uuid: b2a6af9454a34ed3b8fa2e84ae801b69 + name: 'CPU [{#SNMPINDEX}] Utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.109.1.1.1.1.8.{#SNMPINDEX}]' + key: 'cisco.asav.cpu.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: CISCO-PROCESS-MIB + The overall CPU busy percentage in the last 5 minute + period. This object deprecates the object cpmCPUTotal5min + and increases the value range to (0..100). + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 2e90218795b94ee8b3c01dd79d2dd8b3 + expression: 'min(/Cisco ASAv by SNMP/cisco.asav.cpu.util[{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Cisco ASAv: High CPU utilization' + event_name: 'Cisco ASAv: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: c3d95f2670f346cda44b3def5a835379 + name: 'Cisco ASAv: CPU[{#SNMPINDEX}] Utilization' + graph_items: + - color: 199C0D + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.cpu.util[{#SNMPINDEX}]' + - uuid: 072c0dc4527c492592df91115f1621cb + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.48.1.1.1.2]' + key: cisco.asav.memory.discovery + delay: 1h + description: 'Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries.' + item_prototypes: + - uuid: 983f90966701470fb713fdfae62f1146 + name: '{#SNMPVALUE} Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.6.{#SNMPINDEX}]' + key: 'cisco.asav.memory.free[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Indicates the number of bytes from the memory pool that are currently unused on the managed device. Note that the sum of ciscoMemoryPoolUsed and ciscoMemoryPoolFree is the total amount of memory in the pool + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - uuid: a34b4279d8ac40ec8f2d6577ebaa4280 + name: '{#SNMPVALUE} Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.5.{#SNMPINDEX}]' + key: 'cisco.asav.memory.used[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Indicates the number of bytes from the memory pool that are currently in use by applications on the managed device. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - uuid: d67342c8a8124b1b89ef5ec36684b2a7 + name: '{#SNMPVALUE} Memory utilization' + type: CALCULATED + key: 'cisco.asav.memory.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//cisco.asav.memory.used[{#SNMPINDEX}])/(last(//cisco.asav.memory.free[{#SNMPINDEX}])+last(//cisco.asav.memory.used[{#SNMPINDEX}]))*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 688975747f664a15a3bca9dd3e1e0b01 + expression: 'min(/Cisco ASAv by SNMP/cisco.asav.memory.util[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Cisco ASAv: High memory utilization' + event_name: 'Cisco ASAv: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 388a69f2dfad42ac934d3f09c5e0efd1 + name: 'Cisco ASAv: Memory[{#SNMPVALUE}] Utilization' + graph_items: + - color: 199C0D + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.memory.util[{#SNMPINDEX}]' + - uuid: 2ced96f9e3ff40de85530b9ef9e4585c + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CISCO.IF.NAME},1.3.6.1.2.1.31.1.1.1.1,{#CISCO.IF.STATUS.ADMIN},1.3.6.1.2.1.2.2.1.7,{#CISCO.IF.STATUS.OPER},1.3.6.1.2.1.2.2.1.8,{#CISCO.IF.DESC},1.3.6.1.2.1.31.1.1.1.18]' + key: cisco.asav.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CISCO.IF.DESC}' + value: '{$CISCO.LLD.FILTER.IF.DESC.MATCHES}' + formulaid: A + - macro: '{#CISCO.IF.DESC}' + value: '{$CISCO.LLD.FILTER.IF.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#CISCO.IF.NAME}' + value: '{$CISCO.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#CISCO.IF.NAME}' + value: '{$CISCO.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#CISCO.IF.STATUS.ADMIN}' + value: '{$CISCO.LLD.FILTER.IF.ADMIN.MATCHES}' + formulaid: E + - macro: '{#CISCO.IF.STATUS.ADMIN}' + value: '{$CISCO.LLD.FILTER.IF.ADMIN.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Network interfaces discovery' + item_prototypes: + - uuid: c4be70b6d6934281ba1c78ef056c7d79 + name: '{#CISCO.IF.NAME} Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'Cisco ASAv port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: 17f768ffe6604c678e15bb2538cb8cc5 + name: '{#CISCO.IF.NAME} Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: 01c5f157fc6140149dec01f512babadd + name: '{#CISCO.IF.NAME} Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: 263e253c378f4928ad5c5f6fd0ce1cbe + name: '{#CISCO.IF.NAME} Incoming broadcast packets' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: 9479f382e7e943e0aa560396d3a4db40 + name: '{#CISCO.IF.NAME} Incoming multicast packets' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: 443ce01bb9b04e69a936ec8fb9636720 + name: '{#CISCO.IF.NAME} Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: 900bf66a4a7f411f9d9ce231daa8d8a8 + name: '{#CISCO.IF.NAME} Incoming unicast packets' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: d7564be184564d06abb1f7a718bdf134 + name: '{#CISCO.IF.NAME} Incoming utilization' + type: CALCULATED + key: 'cisco.asav.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//cisco.asav.net.if.in.traffic[{#SNMPINDEX}]) * (last(//cisco.asav.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//cisco.asav.net.if.highspeed[{#SNMPINDEX}]) + (last(//cisco.asav.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: ceb3a35e289043668d0087255de5c79b + name: '{#CISCO.IF.NAME} Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.1.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CISCO-PORT-MIB + Descriptive name that identifies this port. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: 8d51a019f3634b079c2115ccb063840c + name: '{#CISCO.IF.NAME} Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'Cisco ASAv port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + trigger_prototypes: + - uuid: 0aca9e16545a46f4a7b150d03cdb1df1 + expression: 'last(/Cisco ASAv by SNMP/cisco.asav.net.if.operstatus[{#SNMPINDEX}])=2 and last(/Cisco ASAv by SNMP/cisco.asav.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/Cisco ASAv by SNMP/cisco.asav.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Cisco ASAv by SNMP/cisco.asav.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'Cisco ASAv: {#CISCO.IF.NAME} Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. {TEMPLATE_NAME:METRIC.diff()}=1) - trigger fires only if operational status was up(1) sometime before. (So, do not fire 'eternal off' interfaces.) + + WARNING: if closed manually - won't fire again on next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 8a97ed7804f042c7b6767f72bcf9a504 + name: '{#CISCO.IF.NAME} Outgoing broadcast packets' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: c0918a1acaa049e786a356c25c7dd654 + name: '{#CISCO.IF.NAME} Outgoing multicast packets' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: 8e9c4d99c0d649e79e2f7f64d91789bf + name: '{#CISCO.IF.NAME} Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: 1439162918d842ab92f4fca35c32279f + name: '{#CISCO.IF.NAME} Outgoing unicast packets' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'cisco.asav.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + - uuid: 559d5ddae7744b19b32993174ef06918 + name: '{#CISCO.IF.NAME} Outgoing utilization' + type: CALCULATED + key: 'cisco.asav.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//cisco.asav.net.if.out.traffic[{#SNMPINDEX}]) * (last(//cisco.asav.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//cisco.asav.net.if.highspeed[{#SNMPINDEX}]) + (last(//cisco.asav.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: interface + - tag: description + value: '{#CISCO.IF.DESC}' + - tag: interface + value: '{#CISCO.IF.NAME}' + graph_prototypes: + - uuid: 5e94c9468d7d40ba9705bcfe01f7c24e + name: 'Cisco ASAv: {#CISCO.IF.NAME}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: 1e252a00f1a14e99b06498a659a0d1d5 + name: 'Cisco ASAv: {#CISCO.IF.NAME}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.net.if.in.util[{#SNMPINDEX}]' + - uuid: 4609522ac9a545b3a5b38129e5110174 + name: 'Cisco ASAv: {#CISCO.IF.NAME} Traffic' + graph_items: + - color: 199C0D + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.net.if.out.traffic[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#CISCO.IF.NAME}' + value: '{$CISCO.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: de837df7c2f84cae86a84c773d7a07dc + name: 'Physical entry discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CISCO.ASAV.PHYS.DESC},1.3.6.1.2.1.47.1.1.1.1.2,{#CISCO.ASAV.PHYS.CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#CISCO.ASAV.PHYS.NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: cisco.asav.physical.entry.discovery + delay: 1h + description: 'Information about a particular physical entity.' + item_prototypes: + - uuid: 3ac03ebbab6e4868887715f74443011c + name: '{#CISCO.ASAV.PHYS.NAME} Physical class' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.5.{#SNMPINDEX}]' + key: 'cisco.asav.phys.class[{#SNMPINDEX}]' + delay: 1h + description: | + MIB: ENTITY-MIB + An indication of the general hardware type of the physical + entity. + An agent should set this object to the standard enumeration + value that most accurately indicates the general class of + the physical entity, or the primary class if there is more + than one entity. + If no appropriate standard registration identifier exists + for this physical entity, then the value 'other(1)' is + returned. If the value is unknown by this agent, then the + value 'unknown(2)' is returned. + valuemap: + name: 'Physical class' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physical + - tag: physical + value: '{#CISCO.ASAV.PHYS.NAME}' + - uuid: a63fe0420f2e446ca10094fbf04ee4a8 + name: '{#CISCO.ASAV.PHYS.NAME} Physical description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.2.{#SNMPINDEX}]' + key: 'cisco.asav.phys.description[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + A textual description of physical entity. This object + should contain a string that identifies the manufacturer's + name for the physical entity, and should be set to a + distinct value for each version or model of the physical + entity. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physical + - tag: physical + value: '{#CISCO.ASAV.PHYS.NAME}' + - uuid: 862f2607838647b3b173d113e531c931 + name: '{#CISCO.ASAV.PHYS.NAME} Hardware revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.8.{#SNMPINDEX}]' + key: 'cisco.asav.phys.hw[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + The vendor-specific hardware revision string for the + physical entity. The preferred value is the hardware + revision identifier actually printed on the component itself + (if present). + Note that if revision information is stored internally in a + non-printable (e.g., binary) format, then the agent must + convert such information to a printable format, in an + implementation-specific manner. + If no specific hardware revision string is associated with + the physical component, or if this information is unknown to + the agent, then this object will contain a zero-length + string. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physical + - tag: physical + value: '{#CISCO.ASAV.PHYS.NAME}' + - uuid: d64c4765f78847cc8071913c5454f433 + name: '{#CISCO.ASAV.PHYS.NAME} Manufacturer name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.12.{#SNMPINDEX}]' + key: 'cisco.asav.phys.mfgname[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + The name of the manufacturer of this physical component. + The preferred value is the manufacturer name string actually + printed on the component itself (if present). + Note that comparisons between instances of the + entPhysicalModelName, entPhysicalFirmwareRev, + entPhysicalSoftwareRev, and the entPhysicalSerialNum + objects, are only meaningful amongst entPhysicalEntries with + the same value of entPhysicalMfgName. + If the manufacturer name string associated with the physical + component is unknown to the agent, then this object will + contain a zero-length string. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physical + - tag: physical + value: '{#CISCO.ASAV.PHYS.NAME}' + - uuid: 73739a08da634cd09b857a7512166d7b + name: '{#CISCO.ASAV.PHYS.NAME} Model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.{#SNMPINDEX}]' + key: 'cisco.asav.phys.model[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + The vendor-specific model name identifier string associated + with this physical component. The preferred value is the + customer-visible part number, which may be printed on the + component itself. + If the model name string associated with the physical + component is unknown to the agent, then this object will + contain a zero-length string. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physical + - tag: physical + value: '{#CISCO.ASAV.PHYS.NAME}' + - uuid: 21da0a63b5344b099ab21932a4a65dc6 + name: '{#CISCO.ASAV.PHYS.NAME} Physical name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.7.{#SNMPINDEX}]' + key: 'cisco.asav.phys.name[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + The textual name of the physical entity. The value of this + object should be the name of the component as assigned by + the local device and should be suitable for use in commands + entered at the device's `console'. This might be a text + name (e.g., `console') or a simple component number (e.g., + port or module number, such as `1'), depending on the + physical component naming syntax of the device. + If there is no local name, or if this object is otherwise + not applicable, then this object contains a zero-length + string. + Note that the value of entPhysicalName for two physical + entities will be the same in the event that the console + interface does not distinguish between them, e.g., slot-1 + and the card in slot-1. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physical + - tag: physical + value: '{#CISCO.ASAV.PHYS.NAME}' + - uuid: 9962cc7467c14221bee66a2f17aba12b + name: '{#CISCO.ASAV.PHYS.NAME} Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'cisco.asav.phys.sn[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + The vendor-specific serial number string for the physical + entity. The preferred value is the serial number string + actually printed on the component itself (if present). + On the first instantiation of an physical entity, the value + of entPhysicalSerialNum associated with that entity is set + to the correct vendor-assigned serial number, if this + information is available to the agent. If a serial number + is unknown or non-existent, the entPhysicalSerialNum will be + set to a zero-length string instead. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physical + - tag: physical + value: '{#CISCO.ASAV.PHYS.NAME}' + trigger_prototypes: + - uuid: c9f9bff9e9cd4519807c5be583670d02 + expression: 'last(/Cisco ASAv by SNMP/cisco.asav.phys.sn[{#SNMPINDEX}],#1)<>last(/Cisco ASAv by SNMP/cisco.asav.phys.sn[{#SNMPINDEX}],#2) and length(last(/Cisco ASAv by SNMP/cisco.asav.phys.sn[{#SNMPINDEX}]))>0' + name: 'Cisco ASAv: {#CISCO.ASAV.PHYS.NAME} has been replaced' + event_name: 'Cisco ASAv: {#CISCO.ASAV.PHYS.NAME} has been replaced (new serial number received)' + priority: INFO + description: '{#CISCO.ASAV.PHYS.NAME} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 698a7613f08048b48d7aad4ad5285562 + name: '{#CISCO.ASAV.PHYS.NAME} Software revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.10.{#SNMPINDEX}]' + key: 'cisco.asav.phys.sw[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + The vendor-specific software revision string for the + physical entity. + Note that if revision information is stored internally in a + non-printable (e.g., binary) format, then the agent must + convert such information to a printable format, in an + implementation-specific manner. + If no specific software programs are associated with the + physical component, or if this information is unknown to the + agent, then this object will contain a zero-length string. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physical + - tag: physical + value: '{#CISCO.ASAV.PHYS.NAME}' + - uuid: b49543c7150a4e258645b4b076b2454a + name: 'Session discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CISCO.CRAS.USER},1.3.6.1.4.1.9.9.392.1.3.21.1.1,{#CISCO.CRAS.INDEX},1.3.6.1.4.1.9.9.392.1.3.21.1.3]' + key: cisco.asav.session.discovery + delay: 1h + description: 'Remote access session discovery' + item_prototypes: + - uuid: ff7de8cbf36643e3888451757b802873 + name: '{#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] ISP address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.392.1.3.21.1.10.{#SNMPINDEX}]' + key: 'cisco.asav.session.addr.isp[{#SNMPINDEX}]' + description: | + MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB + The IP address of the peer (client) assigned by the ISP. + This is the address of the client device in the public + network. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: session + - tag: session-index + value: '{#CISCO.CRAS.INDEX}' + - tag: session-user + value: '{#CISCO.CRAS.USER}' + - uuid: 3071310f4f0e4c14bcf47d07a05568cc + name: '{#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Local address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.392.1.3.21.1.8.{#SNMPINDEX}]' + key: 'cisco.asav.session.addr.local[{#SNMPINDEX}]' + description: | + MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB + The IP address assigned to the client of this session + in the private network assigned by the managed entity. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: session + - tag: session-index + value: '{#CISCO.CRAS.INDEX}' + - tag: session-user + value: '{#CISCO.CRAS.USER}' + - uuid: 47c84fde7b47415d96d461c28da50526 + name: '{#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Algorithm validate packets' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.392.1.3.21.1.14.{#SNMPINDEX}]' + key: 'cisco.asav.session.authen.algorithm[{#SNMPINDEX}]' + description: | + MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB + The algorithm used by this remote access session to + to validate packets. + valuemap: + name: 'Cisco ASAv algorithm validate packets' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: session + - tag: session-index + value: '{#CISCO.CRAS.INDEX}' + - tag: session-user + value: '{#CISCO.CRAS.USER}' + - uuid: 901b8473e8054e929a55dd3e5d507d5d + name: '{#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Authenticate method' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.392.1.3.21.1.4.{#SNMPINDEX}]' + key: 'cisco.asav.session.authen.method[{#SNMPINDEX}]' + description: | + MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB + The method used to authenticate the user prior to + establishing the session. + valuemap: + name: 'Cisco ASAv user authenticate method' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: session + - tag: session-index + value: '{#CISCO.CRAS.INDEX}' + - tag: session-user + value: '{#CISCO.CRAS.USER}' + - uuid: 452348005b1c4b7db194afcf3c95473d + name: '{#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Authorize method' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.392.1.3.21.1.5.{#SNMPINDEX}]' + key: 'cisco.asav.session.author.method[{#SNMPINDEX}]' + description: | + MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB + The method used to authorize the user prior to + establishing the session. + valuemap: + name: 'Cisco ASAv user authenticate method' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: session + - tag: session-index + value: '{#CISCO.CRAS.INDEX}' + - tag: session-user + value: '{#CISCO.CRAS.USER}' + - uuid: c25050519610453baf3e69042fe77cf0 + name: '{#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Session duration' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.392.1.3.21.1.6.{#SNMPINDEX}]' + key: 'cisco.asav.session.duration[{#SNMPINDEX}]' + description: | + MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB + The number of seconds elapsed since this session + was established. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: session + - tag: session-index + value: '{#CISCO.CRAS.INDEX}' + - tag: session-user + value: '{#CISCO.CRAS.USER}' + - uuid: 63ea7737e7534608b60744ec3b82ffae + name: '{#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Encryption algorithm' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.392.1.3.21.1.13.{#SNMPINDEX}]' + key: 'cisco.asav.session.encryption[{#SNMPINDEX}]' + description: | + MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB + The algorithm used by this remote access session to + encrypt its payload. + valuemap: + name: 'Cisco ASAv encryption algorithm' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: session + - tag: session-index + value: '{#CISCO.CRAS.INDEX}' + - tag: session-user + value: '{#CISCO.CRAS.USER}' + - uuid: c7a05da2f7d84743851e7d628d1e9838 + name: '{#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.392.1.3.21.1.35.{#SNMPINDEX}]' + key: 'cisco.asav.session.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB + The rate of octets received by this Remote + Access Session. + This value is accumulated BEFORE determining whether + or not the packet should be decompressed. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: session + - tag: session-index + value: '{#CISCO.CRAS.INDEX}' + - tag: session-user + value: '{#CISCO.CRAS.USER}' + - uuid: c71e07de9083472a982a827061496d5a + name: '{#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.392.1.3.21.1.36.{#SNMPINDEX}]' + key: 'cisco.asav.session.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB + The rate of octets transmitted by this Remote + Access Session. + This value is accumulated AFTER determining whether + or not the packet should be compressed. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: session + - tag: session-index + value: '{#CISCO.CRAS.INDEX}' + - tag: session-user + value: '{#CISCO.CRAS.USER}' + - uuid: de873aa34ad64f3d91e11d6999950692 + name: '{#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Session protocol' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.392.1.3.21.1.11.{#SNMPINDEX}]' + key: 'cisco.asav.session.protocol[{#SNMPINDEX}]' + description: | + MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB + The protocol underlying this remote access session. + valuemap: + name: 'Cisco ASAv session protocol' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: session + - tag: session-index + value: '{#CISCO.CRAS.INDEX}' + - tag: session-user + value: '{#CISCO.CRAS.USER}' + graph_prototypes: + - uuid: bed8a06cbbc24144813d0c515bd09328 + name: 'Cisco ASAv: {#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Traffic' + graph_items: + - color: 199C0D + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.session.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco ASAv by SNMP' + key: 'cisco.asav.session.out.traffic[{#SNMPINDEX}]' + tags: + - tag: class + value: application + - tag: target + value: cisco + - tag: target + value: cisco-asav + macros: + - macro: '{$CISCO.LLD.FILTER.IF.ADMIN.MATCHES}' + value: '1' + description: | + Filter of discoverable interfaces by admin status. + 1 - Up + 2 - Down + 3 - Testing + - macro: '{$CISCO.LLD.FILTER.IF.ADMIN.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by admin status.' + - macro: '{$CISCO.LLD.FILTER.IF.CONTROL.MATCHES}' + value: '.*' + description: | + Filter triggers by discoverable interface names. + Used in overrides. Triggers will only be created for interfaces whose names contain the value of the macro. + - macro: '{$CISCO.LLD.FILTER.IF.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface description.' + - macro: '{$CISCO.LLD.FILTER.IF.DESC.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by description.' + - macro: '{$CISCO.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$CISCO.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization in %.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold for maximum memory utilization in %.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + dashboards: + - uuid: 91fa042eeba442b492ba16422b7ce567 + name: 'Cisco ASAv: Overview' + pages: + - name: Network + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco ASAv by SNMP' + name: 'Cisco ASAv: {#CISCO.IF.NAME} Traffic' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco ASAv by SNMP' + name: 'Cisco ASAv: {#CISCO.IF.NAME}: Packets traffic' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco ASAv by SNMP' + name: 'Cisco ASAv: {#CISCO.IF.NAME}: Utilization' + - type: STRING + name: reference + value: AAAAC + - name: Resources + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco ASAv by SNMP' + name: 'Cisco ASAv: Memory[{#SNMPVALUE}] Utilization' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco ASAv by SNMP' + name: 'Cisco ASAv: CPU[{#SNMPINDEX}] Utilization' + - type: STRING + name: reference + value: AAAAE + - name: 'Sessions traffic' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco ASAv by SNMP' + name: 'Cisco ASAv: {#CISCO.CRAS.USER} [{#CISCO.CRAS.INDEX}] Traffic' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: 764f7c162b8a45d9b41e795cf2f5f8da + name: 'Cisco ASAv algorithm validate packets' + mappings: + - value: '1' + newvalue: none + - value: '2' + newvalue: other + - value: '3' + newvalue: hmacMd5 + - value: '4' + newvalue: hmacSha + - uuid: f38e3c5200c941aa831857698eb3ea8b + name: 'Cisco ASAv encryption algorithm' + mappings: + - value: '1' + newvalue: none + - value: '2' + newvalue: des + - value: '3' + newvalue: des3 + - value: '4' + newvalue: rc4 + - value: '5' + newvalue: rc5 + - value: '6' + newvalue: idea + - value: '7' + newvalue: cast + - value: '8' + newvalue: blowfish + - value: '9' + newvalue: aes + - uuid: 8395b87d3ff3496aabafdfd1d2e1c4be + name: 'Cisco ASAv port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: e97c331986454b68917c771c3bba9a3d + name: 'Cisco ASAv port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 22e5704487924e4ebca70e2062d40da4 + name: 'Cisco ASAv session protocol' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ipsec + - value: '3' + newvalue: l2tp + - value: '4' + newvalue: l2tpoveripsxe + - value: '5' + newvalue: pptp + - value: '6' + newvalue: l2f + - value: '7' + newvalue: ssl + - uuid: 8dd72ccb744e4bd989ea739e21da7820 + name: 'Cisco ASAv user authenticate method' + mappings: + - value: '1' + newvalue: none + - value: '2' + newvalue: other + - value: '3' + newvalue: radius + - value: '4' + newvalue: tacacsplus + - value: '5' + newvalue: kerberos + - value: '6' + newvalue: local + - value: '7' + newvalue: ldap + - value: '8' + newvalue: ntlm + - value: '9' + newvalue: sdi + - uuid: 3c3b7c75af4b4fedb12e30fb74406a23 + name: 'Physical class' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: chassis + - value: '4' + newvalue: backplane + - value: '5' + newvalue: container + - value: '6' + newvalue: powerSupply + - value: '7' + newvalue: fan + - value: '8' + newvalue: sensor + - value: '9' + newvalue: module + - value: '10' + newvalue: port + - value: '11' + newvalue: stack + - value: '12' + newvalue: cpu + - uuid: 91e8696b05654efca8f03b700ea74b0b + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown diff --git a/Cisco_Catalyst_3750V2-24FS_by_SNMP.yaml b/Cisco_Catalyst_3750V2-24FS_by_SNMP.yaml new file mode 100644 index 0000000..e9e4972 --- /dev/null +++ b/Cisco_Catalyst_3750V2-24FS_by_SNMP.yaml @@ -0,0 +1,1990 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 6ff896f545e043cc98de6d98698d41df + template: 'Cisco Catalyst 3750V2-24FS by SNMP' + name: 'Cisco Catalyst 3750V2-24FS by SNMP' + description: | + Template Cisco Catalyst 3750V2-24FS + + MIBs used: + CISCO-MEMORY-POOL-MIB + IF-MIB + EtherLike-MIB + SNMPv2-MIB + CISCO-PROCESS-MIB + CISCO-ENVMON-MIB + ENTITY-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/418396-discussion-thread-for-official-zabbix-templates-for-cisco + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 1a1244d5dcbc4cbcb5edb70b7cd2b3aa + name: 'ICMP ping' + type: SIMPLE + key: icmpping + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b0507a7333384bd5bf251fe238a538ad + expression: 'max(/Cisco Catalyst 3750V2-24FS by SNMP/icmpping,#3)=0' + name: 'Cisco Catalyst 3750V2-24FS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 5804e615ec714a85ab3bf8128f92d0fc + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 089e23bcb4bb41f992947a6970555394 + expression: 'min(/Cisco Catalyst 3750V2-24FS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Catalyst 3750V2-24FS by SNMP/icmppingloss,5m)<100' + name: 'Cisco Catalyst 3750V2-24FS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: Unavailable by ICMP ping' + expression: 'max(/Cisco Catalyst 3750V2-24FS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 02403547a7714c94ba442d09ba91a1be + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d5449d68d76e49ad9b7c052abff255e2 + expression: 'avg(/Cisco Catalyst 3750V2-24FS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Cisco Catalyst 3750V2-24FS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: High ICMP ping loss' + expression: 'min(/Cisco Catalyst 3750V2-24FS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Catalyst 3750V2-24FS by SNMP/icmppingloss,5m)<100' + - name: 'Cisco Catalyst 3750V2-24FS: Unavailable by ICMP ping' + expression: 'max(/Cisco Catalyst 3750V2-24FS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 80fe62cf4b2b4b96a077f23ff40d9baf + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'Item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: system + - uuid: 0bcb970099c0429a9254c88d94d3f27d + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: system.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 6a1b8a292e9448329b538c0c6c47317b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.descr + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: e7b500dbdd044fd2a6213496422d4540 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 7f1f5522eab7406ea8dfce09cb84d39d + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: ef94f8295a2946b9a266afc6c9a5c5c9 + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/system.hw.serialnumber,#1)<>last(/Cisco Catalyst 3750V2-24FS by SNMP/system.hw.serialnumber,#2) and length(last(/Cisco Catalyst 3750V2-24FS by SNMP/system.hw.serialnumber))>0' + name: 'Cisco Catalyst 3750V2-24FS: Device has been replaced' + event_name: 'Cisco Catalyst 3750V2-24FS: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 64e59aaf9a4c4dd28e591c96075c183b + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: system.hw.uptime + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cb5e9fc216ca46f885562169ed67a612 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: system.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: c79c23799ba248e0b35a086a7503646b + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + triggers: + - uuid: 0d48c5e2b30f4f08b3cec8c89c05d52d + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/system.name,#1)<>last(/Cisco Catalyst 3750V2-24FS by SNMP/system.name,#2) and length(last(/Cisco Catalyst 3750V2-24FS by SNMP/system.name))>0' + name: 'Cisco Catalyst 3750V2-24FS: System name has changed' + event_name: 'Cisco Catalyst 3750V2-24FS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3001dec3d8564a4e83e25e557c6d1336 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: system.net.uptime + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f4d399a9cb884067a8303799b6ddfca4 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: system.objectid + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: bf04928736ed4d3c855d8e0718cdfa1f + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.sw.os + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'Version (.+), RELEASE' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 77433856d157408d98c72d964fdbf045 + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/system.sw.os,#1)<>last(/Cisco Catalyst 3750V2-24FS by SNMP/system.sw.os,#2) and length(last(/Cisco Catalyst 3750V2-24FS by SNMP/system.sw.os))>0' + recovery_mode: NONE + name: 'Cisco Catalyst 3750V2-24FS: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: System name has changed' + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/system.name,#1)<>last(/Cisco Catalyst 3750V2-24FS by SNMP/system.name,#2) and length(last(/Cisco Catalyst 3750V2-24FS by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 1fe8d0559b794a47a78fccde9156b694 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: 4ebd3dd755dd4b1dae2509842d0b7117 + expression: 'max(/Cisco Catalyst 3750V2-24FS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco Catalyst 3750V2-24FS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: fd02edfd2bdb43a3b02495722e01b462 + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.109.1.1.1.1.5]' + key: cpu.discovery + delay: 1h + description: | + If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable , + indexed with cpmCPUTotalIndex . + This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router, + like different CPU chips, group of CPUs, or CPUs in different modules/cards. + In case of a single CPU, cpmCPUTotalTable has only one entry. + item_prototypes: + - uuid: 75ac10af8a84469aaf83ead5ada42fc5 + name: '#{#SNMPINDEX}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.109.1.1.1.1.8.{#SNMPINDEX}]' + key: 'system.cpu.util[{#SNMPINDEX}]' + delay: 5m + value_type: FLOAT + units: '%' + description: | + MIB: CISCO-PROCESS-MIB + Object name: cpmCPUTotal5minRev + The cpmCPUTotal5minRev MIB object provides a more accurate view of the performance of the router over time than the MIB objects cpmCPUTotal1minRev and cpmCPUTotal5secRev . These MIB objects are not accurate because they look at CPU at one minute and five second intervals, respectively. These MIBs enable you to monitor the trends and plan the capacity of your network. The recommended baseline rising threshold for cpmCPUTotal5minRev is 90 percent. Depending on the platform, some routers that run at 90 percent, for example, 2500s, can exhibit performance degradation versus a high-end router, for example, the 7500 series, which can operate fine. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html + tags: + - tag: component + value: cpu + - tag: cpu-index + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: a825aa92b31c4460bef20469afead397 + expression: 'min(/Cisco Catalyst 3750V2-24FS by SNMP/system.cpu.util[{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Cisco Catalyst 3750V2-24FS: #{#SNMPINDEX}: High CPU utilization' + event_name: 'Cisco Catalyst 3750V2-24FS: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 00035facb3f3457fb24582f664c2401d + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + key: 'system.cpu.util[{#SNMPINDEX}]' + - uuid: bee10a232bfb498286a73963b6fe1f2a + name: 'Entity Serial Numbers discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_SN},1.3.6.1.2.1.47.1.1.1.1.11]' + key: entity_sn.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: '[^3]' + formulaid: A + - macro: '{#ENT_SN}' + value: .+ + formulaid: B + item_prototypes: + - uuid: b0602fa005c140cd9d123eacd62ced06 + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + Object name: entPhysicalSerialNum + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: serial-number + - tag: entity + value: '{#ENT_NAME}' + trigger_prototypes: + - uuid: b715f039d7874915aacd687e87661588 + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/system.hw.serialnumber[{#SNMPINDEX}],#1)<>last(/Cisco Catalyst 3750V2-24FS by SNMP/system.hw.serialnumber[{#SNMPINDEX}],#2) and length(last(/Cisco Catalyst 3750V2-24FS by SNMP/system.hw.serialnumber[{#SNMPINDEX}]))>0' + name: 'Cisco Catalyst 3750V2-24FS: {#ENT_NAME}: Device has been replaced' + event_name: 'Cisco Catalyst 3750V2-24FS: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + tags: + - tag: scope + value: notice + - uuid: 3c2e82ee5eff4bceafeec77e63120b08 + name: 'FAN discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.4.1.2]' + key: fan.discovery + delay: 1h + description: 'The table of fan status maintained by the environmental monitor.' + item_prototypes: + - uuid: 15cc972b704a4f9c9e5a7798df362fa3 + name: '{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.4.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonFanState + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: fan + - tag: fan + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 03a372d275194f8cae61786a38a7fb96 + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.fan.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 65bc040110534b6ab0544cb1866288ab + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.fan.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Fan is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.fan.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bfcf962374c14dc2805b39bf00987f3c + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.48.1.1.1.2]' + key: memory.discovery + delay: 1h + description: | + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + item_prototypes: + - uuid: 8eaceca5f390424db56dcc3b006baa54 + name: '{#SNMPVALUE}: Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.6.{#SNMPINDEX}]' + key: 'vm.memory.free[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Object name: ciscoMemoryPoolFree + Indicates the number of bytes from the memory pool that are currently unused on the managed device. Note that the sum of ciscoMemoryPoolUsed and ciscoMemoryPoolFree is the total amount of memory in the pool + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: 446338a14fcf4ba99e72902821ae9c44 + name: '{#SNMPVALUE}: Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.5.{#SNMPINDEX}]' + key: 'vm.memory.used[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Object name: ciscoMemoryPoolUsed + Indicates the number of bytes from the memory pool that are currently in use by applications on the managed device. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: 000ba7ca09814368aae61f3f08fb740e + name: '{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[{#SNMPINDEX}])/(last(//vm.memory.free[{#SNMPINDEX}])+last(//vm.memory.used[{#SNMPINDEX}]))*100' + description: 'Memory utilization in %' + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: fc434ae6fdff4ec0b20400750571b786 + expression: 'min(/Cisco Catalyst 3750V2-24FS by SNMP/vm.memory.util[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: High memory utilization' + event_name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: High memory utilization ( >{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 4c4a6a5124eb4cc0b32de032f4e9e3db + name: '{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + key: 'vm.memory.util[{#SNMPINDEX}]' + - uuid: 2d0c3668e56c4511b6625d6dc7b72015 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: e3c18989a34a434687ffa57423025878 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 20da38b76f1a4b418b6a965cf973b30a + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ac2ed3537a1744bd91abb32acb45181c + expression: 'min(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): High input error rate' + event_name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): High input error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: e21895be99254fe49cfd654a576da912 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ace9c36c517a47dfa1ece694d6c10883 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6fbeb22aa8384ba5a7d246ef6a749aff + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4e96fef6da19403eb125c67947ceadee + expression: 'min(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): High output error rate' + event_name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): High output error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: 943c994ad06a4193a840e2734465ad01 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 66348f674b9143f48ea7ef829c220845 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1f73344515564398b4f17ea531285deb + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1086cb4f3a6a46c399fe221ffd538037 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + tags: + - tag: scope + value: availability + - uuid: f2d27d63c05a479f893f0a8ad9447747 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6c5a9334ff7d437c91c0f76da988cade + expression: | + change(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.speed[{#SNMPINDEX}])<0 and last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + and ( + last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.type[{#SNMPINDEX}])=6 or + last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.type[{#SNMPINDEX}])=7 or + last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.type[{#SNMPINDEX}])=11 or + last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.type[{#SNMPINDEX}])=62 or + last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.type[{#SNMPINDEX}])=69 or + last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.type[{#SNMPINDEX}])=117 + ) + and + (last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.status[{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.speed[{#SNMPINDEX}])>0 and last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.speed[{#SNMPINDEX}],#2)>0) or + (last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.status[{#SNMPINDEX}])=2) + name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: notice + - uuid: 5f4de3462234401d826a4a7bab16402f + expression: | + (avg(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.in[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.in[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage' + event_name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'In: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: 13ac4bfd49a749b7ba49cdbf531939b1 + expression: | + (avg(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.out[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.out[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage' + event_name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'Out: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 00ed7485a75e4192979c950b279593d8 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + key: 'net.if.in[{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: 2774A4 + item: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + key: 'net.if.out[{#SNMPINDEX}]' + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + key: 'net.if.out.errors[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + key: 'net.if.in.errors[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + key: 'net.if.out.discards[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + key: 'net.if.in.discards[{#SNMPINDEX}]' + - uuid: 836c2d80023941e6a9c66d7129d0caf2 + name: 'EtherLike discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: 946ab71daeb34f79868c0fb49aea0beb + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + Object name: dot3StatsDuplexStatus + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 75341985cb654533b4ef67cbdd9333a9 + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/net.if.duplex[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24FS: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling' + tags: + - tag: scope + value: performance + - uuid: fd7b48d3e3124526918cbe23e6980e4d + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.5.1.2]' + key: psu.discovery + delay: 1h + description: 'The table of power supply status maintained by the environmental monitor card.' + item_prototypes: + - uuid: 330b4d1a9e92485b9997d2a9e0e1079a + name: '{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.5.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonSupplyState + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: power + - tag: power-supply + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: d64945a4f2f74909a10f9cc448f26a02 + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.psu.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.psu.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - uuid: aaf5b05767f24a9bb87753a519140673 + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.psu.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Power supply is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.psu.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.psu.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - uuid: 5d7f7f4b585d4702922efffecd0ea00b + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.3.1.2]' + key: temperature.discovery + delay: 1h + description: | + Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status + maintained by the environmental monitor. + item_prototypes: + - uuid: c520d3696a4d44e9a7095837f9457a9d + name: '{#SNMPVALUE}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.3.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonTemperatureState + The current state of the test point being instrumented. + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 3d307edd9bc54aa2890bebe3ded250c2 + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Temperature is in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor state' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 24000d852b014ae7828eab26451257c1 + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Temperature is in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor state' + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Temperature is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ad48c4102a784c8c8d22825235710831 + name: '{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.3.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.value[{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonTemperatureValue + The current measurement of the test point being instrumented. + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 8c7c804c7b274cf4a17090086ee0f8a0 + expression: 'avg(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0cdb1f1c7e7848bfba2368395d2c03e5 + expression: 'avg(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: eac4504f0d45457fa325f40e6ab585a2 + expression: 'avg(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco Catalyst 3750V2-24FS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Temperature is too low' + event_name: 'Cisco Catalyst 3750V2-24FS: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: cisco + - tag: target + value: cisco-catalyst + - tag: target + value: cisco-catalyst-3750v2-24fs + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization in %.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Threshold for the warning level of the interface error packet rate.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Maximum threshold of interface bandwidth utilization in %. Can be used with the interface name as context.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for the operational state of the interface for the link down trigger. Can be used with the interface name as context.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold for maximum memory utilization in %.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'This macro is used to include network interfaces by their administrative status.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their alias.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their alias.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their description.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their description.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their name.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their operational status.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their type.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their type.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + description: 'Critical threshold of the temperature in °C.' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + description: 'Critical threshold of the low temperature in °C.' + - macro: '{$TEMP_WARN}' + value: '50' + description: 'Warning threshold of the temperature in °C.' + dashboards: + - uuid: 008ace95d57e4381aeb7083ffbbf7fe6 + name: Resources + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + name: '#{#SNMPINDEX}: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + name: '{#SNMPVALUE}: Memory utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-24FS by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: 673c7626d11b4867aba08e96b0fbd149 + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: critical + - value: '4' + newvalue: shutdown + - value: '5' + newvalue: notPresent + - value: '6' + newvalue: notFunctioning + - uuid: 4c04fea7546044d9a9c64762a9e1ebdd + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 346b197cb4fe42cb9b304ce246e5924f + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 94e4f1da1ff24b96bdccf04ec663a1ae + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 3a72216b3fea4ad482d0e3655e407747 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 868c28a7406c4ab3b48b783a6e7590ba + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 6e105d2b8a2c43cc8841abb6995941ba + expression: '(last(/Cisco Catalyst 3750V2-24FS by SNMP/system.hw.uptime)>0 and last(/Cisco Catalyst 3750V2-24FS by SNMP/system.hw.uptime)<10m) or (last(/Cisco Catalyst 3750V2-24FS by SNMP/system.hw.uptime)=0 and last(/Cisco Catalyst 3750V2-24FS by SNMP/system.net.uptime)<10m)' + name: 'Cisco Catalyst 3750V2-24FS: Host has been restarted' + event_name: 'Cisco Catalyst 3750V2-24FS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/Cisco_Catalyst_3750V2-24PS_by_SNMP.yaml b/Cisco_Catalyst_3750V2-24PS_by_SNMP.yaml new file mode 100644 index 0000000..7d29b30 --- /dev/null +++ b/Cisco_Catalyst_3750V2-24PS_by_SNMP.yaml @@ -0,0 +1,1990 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 4583f0c3bc894251a6c5e7129cb5b9aa + template: 'Cisco Catalyst 3750V2-24PS by SNMP' + name: 'Cisco Catalyst 3750V2-24PS by SNMP' + description: | + Template Cisco Catalyst 3750V2-24PS + + MIBs used: + CISCO-MEMORY-POOL-MIB + IF-MIB + EtherLike-MIB + SNMPv2-MIB + CISCO-PROCESS-MIB + CISCO-ENVMON-MIB + ENTITY-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/418396-discussion-thread-for-official-zabbix-templates-for-cisco + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 84ef605d7c914f62b4497ed6fdaccd8a + name: 'ICMP ping' + type: SIMPLE + key: icmpping + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e66bcbef8f1d45fc8bc5d64e5dc848dc + expression: 'max(/Cisco Catalyst 3750V2-24PS by SNMP/icmpping,#3)=0' + name: 'Cisco Catalyst 3750V2-24PS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: c40980a878c94c3db61f80e206b890ec + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 20ee878da19f4d758e4372c6c918c773 + expression: 'min(/Cisco Catalyst 3750V2-24PS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Catalyst 3750V2-24PS by SNMP/icmppingloss,5m)<100' + name: 'Cisco Catalyst 3750V2-24PS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: Unavailable by ICMP ping' + expression: 'max(/Cisco Catalyst 3750V2-24PS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d1c2bc9cee7046c2a17f876dce1f063f + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 0facff81f25c43869e86a0541f0e3ecd + expression: 'avg(/Cisco Catalyst 3750V2-24PS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Cisco Catalyst 3750V2-24PS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: High ICMP ping loss' + expression: 'min(/Cisco Catalyst 3750V2-24PS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Catalyst 3750V2-24PS by SNMP/icmppingloss,5m)<100' + - name: 'Cisco Catalyst 3750V2-24PS: Unavailable by ICMP ping' + expression: 'max(/Cisco Catalyst 3750V2-24PS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 612f59e4d582463bb386046a1d4342da + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'Item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: system + - uuid: 582260ed2f2d4f419651bc526e41b733 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: system.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 956ce9527d604b4493d52815799590ca + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.descr + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: fb4df28cb44941e5b39348afe421a2ad + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 664548f83e924a8aaa125579f230d0e9 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 052fb88fae1349d5b9a5fa5bcf24d0fa + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/system.hw.serialnumber,#1)<>last(/Cisco Catalyst 3750V2-24PS by SNMP/system.hw.serialnumber,#2) and length(last(/Cisco Catalyst 3750V2-24PS by SNMP/system.hw.serialnumber))>0' + name: 'Cisco Catalyst 3750V2-24PS: Device has been replaced' + event_name: 'Cisco Catalyst 3750V2-24PS: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 24df0110b0d541118d6609c3f3922fe5 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: system.hw.uptime + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b6d1ee7b8b3e42e380f6aa44bf39c008 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: system.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 2f5f5b376c034f439ae19ed24e4d8bc5 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + triggers: + - uuid: a678341d899846158fea2deb57f923cf + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/system.name,#1)<>last(/Cisco Catalyst 3750V2-24PS by SNMP/system.name,#2) and length(last(/Cisco Catalyst 3750V2-24PS by SNMP/system.name))>0' + name: 'Cisco Catalyst 3750V2-24PS: System name has changed' + event_name: 'Cisco Catalyst 3750V2-24PS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a9070d15765c4acaa856dde8ece57340 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: system.net.uptime + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: d791eebac4884924b7f40c08174aef00 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: system.objectid + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 2c7c4907dfdd46d18321f80b00152771 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.sw.os + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'Version (.+), RELEASE' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 3e5d53072021491bb2af276aff3e1a0b + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/system.sw.os,#1)<>last(/Cisco Catalyst 3750V2-24PS by SNMP/system.sw.os,#2) and length(last(/Cisco Catalyst 3750V2-24PS by SNMP/system.sw.os))>0' + recovery_mode: NONE + name: 'Cisco Catalyst 3750V2-24PS: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: System name has changed' + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/system.name,#1)<>last(/Cisco Catalyst 3750V2-24PS by SNMP/system.name,#2) and length(last(/Cisco Catalyst 3750V2-24PS by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 92d5d0c598674f20a0228cc66a433e84 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: 0f2d48a1529c4ae49d58d466ed3a76e7 + expression: 'max(/Cisco Catalyst 3750V2-24PS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco Catalyst 3750V2-24PS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 8635e89e60fd4c65a47a6da2bf3c072d + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.109.1.1.1.1.5]' + key: cpu.discovery + delay: 1h + description: | + If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable , + indexed with cpmCPUTotalIndex . + This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router, + like different CPU chips, group of CPUs, or CPUs in different modules/cards. + In case of a single CPU, cpmCPUTotalTable has only one entry. + item_prototypes: + - uuid: 32bac9ece98d497680e84e43d1ac8f8e + name: '#{#SNMPINDEX}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.109.1.1.1.1.8.{#SNMPINDEX}]' + key: 'system.cpu.util[{#SNMPINDEX}]' + delay: 5m + value_type: FLOAT + units: '%' + description: | + MIB: CISCO-PROCESS-MIB + Object name: cpmCPUTotal5minRev + The cpmCPUTotal5minRev MIB object provides a more accurate view of the performance of the router over time than the MIB objects cpmCPUTotal1minRev and cpmCPUTotal5secRev . These MIB objects are not accurate because they look at CPU at one minute and five second intervals, respectively. These MIBs enable you to monitor the trends and plan the capacity of your network. The recommended baseline rising threshold for cpmCPUTotal5minRev is 90 percent. Depending on the platform, some routers that run at 90 percent, for example, 2500s, can exhibit performance degradation versus a high-end router, for example, the 7500 series, which can operate fine. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html + tags: + - tag: component + value: cpu + - tag: cpu-index + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 471acd7fa3ad4040aba27535905bfe63 + expression: 'min(/Cisco Catalyst 3750V2-24PS by SNMP/system.cpu.util[{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Cisco Catalyst 3750V2-24PS: #{#SNMPINDEX}: High CPU utilization' + event_name: 'Cisco Catalyst 3750V2-24PS: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: ab67e338f5784971b7b5a1cac20097fb + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + key: 'system.cpu.util[{#SNMPINDEX}]' + - uuid: 7a62ebc0c38942fa9f72eebc839be5d7 + name: 'Entity Serial Numbers discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_SN},1.3.6.1.2.1.47.1.1.1.1.11]' + key: entity_sn.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: '[^3]' + formulaid: A + - macro: '{#ENT_SN}' + value: .+ + formulaid: B + item_prototypes: + - uuid: ba6a0cf3f63b475d80a59e537302bbaa + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + Object name: entPhysicalSerialNum + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: serial-number + - tag: entity + value: '{#ENT_NAME}' + trigger_prototypes: + - uuid: 70aca80b5a8d414686967b104d301023 + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/system.hw.serialnumber[{#SNMPINDEX}],#1)<>last(/Cisco Catalyst 3750V2-24PS by SNMP/system.hw.serialnumber[{#SNMPINDEX}],#2) and length(last(/Cisco Catalyst 3750V2-24PS by SNMP/system.hw.serialnumber[{#SNMPINDEX}]))>0' + name: 'Cisco Catalyst 3750V2-24PS: {#ENT_NAME}: Device has been replaced' + event_name: 'Cisco Catalyst 3750V2-24PS: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + tags: + - tag: scope + value: notice + - uuid: 235f74f154bc422482f524b9a4c08125 + name: 'FAN discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.4.1.2]' + key: fan.discovery + delay: 1h + description: 'The table of fan status maintained by the environmental monitor.' + item_prototypes: + - uuid: d7ae10cf2595493aa6b31c52bbc6220d + name: '{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.4.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonFanState + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: fan + - tag: fan + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: e2b72d874d4f48e79aab3a6d514663b4 + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.fan.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d4bf389614f54be08ffd8d010e480da6 + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.fan.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Fan is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.fan.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 86589a8d54cb4cfc81c38a6eeac05b80 + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.48.1.1.1.2]' + key: memory.discovery + delay: 1h + description: | + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + item_prototypes: + - uuid: 8aa33136af58484ca1e0ee894dd9b22c + name: '{#SNMPVALUE}: Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.6.{#SNMPINDEX}]' + key: 'vm.memory.free[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Object name: ciscoMemoryPoolFree + Indicates the number of bytes from the memory pool that are currently unused on the managed device. Note that the sum of ciscoMemoryPoolUsed and ciscoMemoryPoolFree is the total amount of memory in the pool + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: 73a46e97c57e4fca912e74a7253e21f6 + name: '{#SNMPVALUE}: Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.5.{#SNMPINDEX}]' + key: 'vm.memory.used[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Object name: ciscoMemoryPoolUsed + Indicates the number of bytes from the memory pool that are currently in use by applications on the managed device. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: 50638b5c78584c99978c6b57bec520d4 + name: '{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[{#SNMPINDEX}])/(last(//vm.memory.free[{#SNMPINDEX}])+last(//vm.memory.used[{#SNMPINDEX}]))*100' + description: 'Memory utilization in %' + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 918cf48b69d545dbb9f177fa1440f4cb + expression: 'min(/Cisco Catalyst 3750V2-24PS by SNMP/vm.memory.util[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: High memory utilization' + event_name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: High memory utilization ( >{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: e86ef2331d1644ca80b28f0855a7a7e9 + name: '{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + key: 'vm.memory.util[{#SNMPINDEX}]' + - uuid: 2b0dacd3b651413fb674eac430613286 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 670a337b61b8485da83bff8fb357aa6c + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 677b9af6e45e42c1bc59772453778de2 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: df6bfacc52e1487d9f359c23545ceb84 + expression: 'min(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): High input error rate' + event_name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): High input error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: d745a153bdd443afb3b6c690a6cb1834 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e000bdb0549747b98ef9ef824ead399d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bf863b01e546466e9f7516435fd34631 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: aa49d99c77d64e31ad2369d09e547cab + expression: 'min(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): High output error rate' + event_name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): High output error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: 8b9edde24248456f902880625e33e289 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fa0715f32e7441958e1d555efe7ccc9f + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 94183e5ed20f4f5495162b696097fd70 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 41d6b4a9fde546ae88005efdef1f4525 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + tags: + - tag: scope + value: availability + - uuid: 27b0676374f847ad8330028e62b7b6af + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d6aaa83ed4744ef982a177b77fb1f2c4 + expression: | + change(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.speed[{#SNMPINDEX}])<0 and last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + and ( + last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.type[{#SNMPINDEX}])=6 or + last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.type[{#SNMPINDEX}])=7 or + last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.type[{#SNMPINDEX}])=11 or + last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.type[{#SNMPINDEX}])=62 or + last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.type[{#SNMPINDEX}])=69 or + last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.type[{#SNMPINDEX}])=117 + ) + and + (last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.status[{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.speed[{#SNMPINDEX}])>0 and last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.speed[{#SNMPINDEX}],#2)>0) or + (last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.status[{#SNMPINDEX}])=2) + name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: notice + - uuid: 9e3e50611ef242b0b200c0a6343f4c5c + expression: | + (avg(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.in[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.in[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage' + event_name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'In: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: 7c624697cd7b41d682b5856a3040737e + expression: | + (avg(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.out[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.out[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage' + event_name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'Out: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: f277c62e4c614924a79715beae06a63b + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + key: 'net.if.in[{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: 2774A4 + item: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + key: 'net.if.out[{#SNMPINDEX}]' + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + key: 'net.if.out.errors[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + key: 'net.if.in.errors[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + key: 'net.if.out.discards[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + key: 'net.if.in.discards[{#SNMPINDEX}]' + - uuid: dbfa0bb2cc7a4a08a50311e37c6bc94b + name: 'EtherLike discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: a5008d1d42d9472392b456b1d8af2568 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + Object name: dot3StatsDuplexStatus + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: df8eb5498b8a41709db02b742fa24d6a + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/net.if.duplex[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24PS: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling' + tags: + - tag: scope + value: performance + - uuid: 400dddbb882445af9e7b986bc4529908 + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.5.1.2]' + key: psu.discovery + delay: 1h + description: 'The table of power supply status maintained by the environmental monitor card.' + item_prototypes: + - uuid: 317bb1028c0b46fbac62df30e0ac6653 + name: '{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.5.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonSupplyState + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: power + - tag: power-supply + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 1d509ec30e8349538d9d2b2447b70253 + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.psu.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.psu.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - uuid: 4ef4e09de93e4cfbb2aab4f22e78c223 + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.psu.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Power supply is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.psu.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.psu.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - uuid: b4eb58fb8820452d89447b786cee3361 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.3.1.2]' + key: temperature.discovery + delay: 1h + description: | + Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status + maintained by the environmental monitor. + item_prototypes: + - uuid: 774a9aa6ec954121ae96f7f76f7e3022 + name: '{#SNMPVALUE}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.3.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonTemperatureState + The current state of the test point being instrumented. + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 506c98e9c29247cba7c58ca343c6fdf4 + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Temperature is in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor state' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d6b91f3e280c4d0fa3df0bf3fedd9183 + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Temperature is in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor state' + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Temperature is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 44a96489bbfc4245b8fe0ffee74e0c96 + name: '{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.3.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.value[{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonTemperatureValue + The current measurement of the test point being instrumented. + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 63e41d0fe43c4daa8fd2e4eee6e4ed8a + expression: 'avg(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cc09047db63a435e816e560c2007b43a + expression: 'avg(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 156a35b375ff4978a2b98f38785897a5 + expression: 'avg(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco Catalyst 3750V2-24PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Temperature is too low' + event_name: 'Cisco Catalyst 3750V2-24PS: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: cisco + - tag: target + value: cisco-catalyst + - tag: target + value: cisco-catalyst-3750v2-24ps + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization in %.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Threshold for the warning level of the interface error packet rate.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Maximum threshold of interface bandwidth utilization in %. Can be used with the interface name as context.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for the operational state of the interface for the link down trigger. Can be used with the interface name as context.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold for maximum memory utilization in %.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'This macro is used to include network interfaces by their administrative status.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their alias.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their alias.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their description.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their description.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their name.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their operational status.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their type.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their type.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + description: 'Critical threshold of the temperature in °C.' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + description: 'Critical threshold of the low temperature in °C.' + - macro: '{$TEMP_WARN}' + value: '50' + description: 'Warning threshold of the temperature in °C.' + dashboards: + - uuid: ffceccccc6564b429a4f440f08d08bc4 + name: Resources + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + name: '#{#SNMPINDEX}: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + name: '{#SNMPVALUE}: Memory utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-24PS by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: cbeb53fa3c2a4b16b7f7ee92265efd8c + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: critical + - value: '4' + newvalue: shutdown + - value: '5' + newvalue: notPresent + - value: '6' + newvalue: notFunctioning + - uuid: 5ef472cb5f424ef9a7393156204613ba + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 73b7c034142043b689792e1e71dd5872 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 635461b9ca404cc1b92c1fab0c6327f6 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 142fe822cc424a76899551b6f29799d9 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 939c7551b81e40e9b053e624211d0901 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: a9633d3df8724c7cba6dfc6ec790c1fd + expression: '(last(/Cisco Catalyst 3750V2-24PS by SNMP/system.hw.uptime)>0 and last(/Cisco Catalyst 3750V2-24PS by SNMP/system.hw.uptime)<10m) or (last(/Cisco Catalyst 3750V2-24PS by SNMP/system.hw.uptime)=0 and last(/Cisco Catalyst 3750V2-24PS by SNMP/system.net.uptime)<10m)' + name: 'Cisco Catalyst 3750V2-24PS: Host has been restarted' + event_name: 'Cisco Catalyst 3750V2-24PS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/Cisco_Catalyst_3750V2-24TS_by_SNMP.yaml b/Cisco_Catalyst_3750V2-24TS_by_SNMP.yaml new file mode 100644 index 0000000..2bad768 --- /dev/null +++ b/Cisco_Catalyst_3750V2-24TS_by_SNMP.yaml @@ -0,0 +1,1990 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 30d084c6b7844b7cab6cf820b00bb7b2 + template: 'Cisco Catalyst 3750V2-24TS by SNMP' + name: 'Cisco Catalyst 3750V2-24TS by SNMP' + description: | + Template Cisco Catalyst 3750V2-24TS + + MIBs used: + CISCO-MEMORY-POOL-MIB + IF-MIB + EtherLike-MIB + SNMPv2-MIB + CISCO-PROCESS-MIB + CISCO-ENVMON-MIB + ENTITY-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/418396-discussion-thread-for-official-zabbix-templates-for-cisco + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 872058629f19424995e696d1354fbe01 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e536d08729024bbcbe51f63ac1074796 + expression: 'max(/Cisco Catalyst 3750V2-24TS by SNMP/icmpping,#3)=0' + name: 'Cisco Catalyst 3750V2-24TS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 56b5f81de3c34f2aa9acd399dd212d62 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 63bdfa05fcbe455db4dbb28ae333292a + expression: 'min(/Cisco Catalyst 3750V2-24TS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Catalyst 3750V2-24TS by SNMP/icmppingloss,5m)<100' + name: 'Cisco Catalyst 3750V2-24TS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: Unavailable by ICMP ping' + expression: 'max(/Cisco Catalyst 3750V2-24TS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d34fc050448e4c48b303bf8c75c50060 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 79b80f4faa30401c8aa260a7bc961f9c + expression: 'avg(/Cisco Catalyst 3750V2-24TS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Cisco Catalyst 3750V2-24TS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: High ICMP ping loss' + expression: 'min(/Cisco Catalyst 3750V2-24TS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Catalyst 3750V2-24TS by SNMP/icmppingloss,5m)<100' + - name: 'Cisco Catalyst 3750V2-24TS: Unavailable by ICMP ping' + expression: 'max(/Cisco Catalyst 3750V2-24TS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c7a43b6281384161b6e1f28840d55aa1 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'Item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: system + - uuid: 7f563d184760420080849d161bf373f6 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: system.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 74af4fbc07284c9eb9d4a913fd5e7b2b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.descr + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: a7cf2f68a1c842e081deec4a16410071 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 6d9b2e70dd61424f8f0ffebf89d20853 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: be325325a6bd4cf4ae1312b4488af80d + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/system.hw.serialnumber,#1)<>last(/Cisco Catalyst 3750V2-24TS by SNMP/system.hw.serialnumber,#2) and length(last(/Cisco Catalyst 3750V2-24TS by SNMP/system.hw.serialnumber))>0' + name: 'Cisco Catalyst 3750V2-24TS: Device has been replaced' + event_name: 'Cisco Catalyst 3750V2-24TS: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6fd05b29760a4b10bf9b1125e8747cd1 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: system.hw.uptime + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cc4aa80bbd2d49f9bca23b305399f0fa + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: system.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 726fa93646ad429789dcec2fbfabc6ff + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + triggers: + - uuid: d19bce317a4b4ab19485a183d446dcc7 + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/system.name,#1)<>last(/Cisco Catalyst 3750V2-24TS by SNMP/system.name,#2) and length(last(/Cisco Catalyst 3750V2-24TS by SNMP/system.name))>0' + name: 'Cisco Catalyst 3750V2-24TS: System name has changed' + event_name: 'Cisco Catalyst 3750V2-24TS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ecc18617c57a44bb96a565f450d569ac + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: system.net.uptime + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 5e7cd491cf664de0b5046cd011186a0e + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: system.objectid + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 89971d6753ce4d98b68a70bf26f4b99e + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.sw.os + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'Version (.+), RELEASE' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: c139de21caf94d4b9c2d60977d4756f7 + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/system.sw.os,#1)<>last(/Cisco Catalyst 3750V2-24TS by SNMP/system.sw.os,#2) and length(last(/Cisco Catalyst 3750V2-24TS by SNMP/system.sw.os))>0' + recovery_mode: NONE + name: 'Cisco Catalyst 3750V2-24TS: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: System name has changed' + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/system.name,#1)<>last(/Cisco Catalyst 3750V2-24TS by SNMP/system.name,#2) and length(last(/Cisco Catalyst 3750V2-24TS by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 0951ddc53a2847b8ba816a5e4de9da2f + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: d78318493148438abca20fed768d4ced + expression: 'max(/Cisco Catalyst 3750V2-24TS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco Catalyst 3750V2-24TS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: a525aec08c6945fda4cad224232825a9 + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.109.1.1.1.1.5]' + key: cpu.discovery + delay: 1h + description: | + If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable , + indexed with cpmCPUTotalIndex . + This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router, + like different CPU chips, group of CPUs, or CPUs in different modules/cards. + In case of a single CPU, cpmCPUTotalTable has only one entry. + item_prototypes: + - uuid: a912b6f023a64087a99827f9c3cd8ceb + name: '#{#SNMPINDEX}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.109.1.1.1.1.8.{#SNMPINDEX}]' + key: 'system.cpu.util[{#SNMPINDEX}]' + delay: 5m + value_type: FLOAT + units: '%' + description: | + MIB: CISCO-PROCESS-MIB + Object name: cpmCPUTotal5minRev + The cpmCPUTotal5minRev MIB object provides a more accurate view of the performance of the router over time than the MIB objects cpmCPUTotal1minRev and cpmCPUTotal5secRev . These MIB objects are not accurate because they look at CPU at one minute and five second intervals, respectively. These MIBs enable you to monitor the trends and plan the capacity of your network. The recommended baseline rising threshold for cpmCPUTotal5minRev is 90 percent. Depending on the platform, some routers that run at 90 percent, for example, 2500s, can exhibit performance degradation versus a high-end router, for example, the 7500 series, which can operate fine. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html + tags: + - tag: component + value: cpu + - tag: cpu-index + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 6f039b9bfb00495ebe5e5eba56d25099 + expression: 'min(/Cisco Catalyst 3750V2-24TS by SNMP/system.cpu.util[{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Cisco Catalyst 3750V2-24TS: #{#SNMPINDEX}: High CPU utilization' + event_name: 'Cisco Catalyst 3750V2-24TS: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: e032e542ed064edc8a5b5a297a0f4839 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + key: 'system.cpu.util[{#SNMPINDEX}]' + - uuid: 777db6085eed46dbaef83c05049a8d4b + name: 'Entity Serial Numbers discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_SN},1.3.6.1.2.1.47.1.1.1.1.11]' + key: entity_sn.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: '[^3]' + formulaid: A + - macro: '{#ENT_SN}' + value: .+ + formulaid: B + item_prototypes: + - uuid: a7b5453459d24368943dd3394fca3d8f + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + Object name: entPhysicalSerialNum + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: serial-number + - tag: entity + value: '{#ENT_NAME}' + trigger_prototypes: + - uuid: 3e621db566ef4b5da2a3b0f5ee65ae81 + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/system.hw.serialnumber[{#SNMPINDEX}],#1)<>last(/Cisco Catalyst 3750V2-24TS by SNMP/system.hw.serialnumber[{#SNMPINDEX}],#2) and length(last(/Cisco Catalyst 3750V2-24TS by SNMP/system.hw.serialnumber[{#SNMPINDEX}]))>0' + name: 'Cisco Catalyst 3750V2-24TS: {#ENT_NAME}: Device has been replaced' + event_name: 'Cisco Catalyst 3750V2-24TS: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + tags: + - tag: scope + value: notice + - uuid: c204b466541d475c959d2613a848f03a + name: 'FAN discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.4.1.2]' + key: fan.discovery + delay: 1h + description: 'The table of fan status maintained by the environmental monitor.' + item_prototypes: + - uuid: 889b225dd7a84e4a9bce92d7138a6615 + name: '{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.4.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonFanState + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: fan + - tag: fan + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: f299241a1a3c4fde965b3a2b6a3b31d6 + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.fan.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a4021a6d44fb439fa04b160b7cea2bca + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.fan.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Fan is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.fan.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bcde2f961af64c0eb27ec663577c60e1 + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.48.1.1.1.2]' + key: memory.discovery + delay: 1h + description: | + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + item_prototypes: + - uuid: 3c9040a8de7048baaa169b35f596a145 + name: '{#SNMPVALUE}: Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.6.{#SNMPINDEX}]' + key: 'vm.memory.free[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Object name: ciscoMemoryPoolFree + Indicates the number of bytes from the memory pool that are currently unused on the managed device. Note that the sum of ciscoMemoryPoolUsed and ciscoMemoryPoolFree is the total amount of memory in the pool + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: e48d2527e378472ab060592a6b303484 + name: '{#SNMPVALUE}: Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.5.{#SNMPINDEX}]' + key: 'vm.memory.used[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Object name: ciscoMemoryPoolUsed + Indicates the number of bytes from the memory pool that are currently in use by applications on the managed device. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: c4b89f27f4534408a7fbe72110ce86de + name: '{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[{#SNMPINDEX}])/(last(//vm.memory.free[{#SNMPINDEX}])+last(//vm.memory.used[{#SNMPINDEX}]))*100' + description: 'Memory utilization in %' + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: a88d7a734efc40868d3fbeda307c4e1f + expression: 'min(/Cisco Catalyst 3750V2-24TS by SNMP/vm.memory.util[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: High memory utilization' + event_name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: High memory utilization ( >{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 25de5d0bebc34c5d9bdf8e181c53588c + name: '{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + key: 'vm.memory.util[{#SNMPINDEX}]' + - uuid: ce14cdd4669c4e8bb7b2badbe071f2d9 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: c8d390c0ef1544a08d6a6974d49f17ad + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 02a607faaaf0494097e25a81d850d646 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a5f11bbeceb9418f86b1130ccb6942ec + expression: 'min(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): High input error rate' + event_name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): High input error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: 8b26f84549f14a91935b85b133e8b85b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6afb99d2489a4e4fa6ed329d3b140e99 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b58d6657f5e14788829ff03f04bd1ac9 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5182e3b82c044374a6f14f9a06fa0f24 + expression: 'min(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): High output error rate' + event_name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): High output error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: fc23b72b6e0c4b0a9d5c9828f25cc43b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a69f1d2e284a4d468d7226a68560405f + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9a2539d5137645cc868d80c6543b2a32 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: cb577e04f0a94508a10656c5f276d4e0 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + tags: + - tag: scope + value: availability + - uuid: f286f2bafa3e4d17a74842fff0a86dcf + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 46d96d2815a04b32b00ed4ef6104fedc + expression: | + change(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.speed[{#SNMPINDEX}])<0 and last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + and ( + last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.type[{#SNMPINDEX}])=6 or + last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.type[{#SNMPINDEX}])=7 or + last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.type[{#SNMPINDEX}])=11 or + last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.type[{#SNMPINDEX}])=62 or + last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.type[{#SNMPINDEX}])=69 or + last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.type[{#SNMPINDEX}])=117 + ) + and + (last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.status[{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.speed[{#SNMPINDEX}])>0 and last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.speed[{#SNMPINDEX}],#2)>0) or + (last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.status[{#SNMPINDEX}])=2) + name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: notice + - uuid: 5af679006aaa40acbe01987ab15088ae + expression: | + (avg(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.in[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.in[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage' + event_name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'In: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: e0b4ab67e80a4dbdb3d60246b8830228 + expression: | + (avg(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.out[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.out[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage' + event_name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'Out: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 6be27bc4e258470bb324ef8f90295e92 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + key: 'net.if.in[{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: 2774A4 + item: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + key: 'net.if.out[{#SNMPINDEX}]' + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + key: 'net.if.out.errors[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + key: 'net.if.in.errors[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + key: 'net.if.out.discards[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + key: 'net.if.in.discards[{#SNMPINDEX}]' + - uuid: d1264fbbd4b547a6874152179ed756d5 + name: 'EtherLike discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: ab70998b12124fee93168b5e8222512e + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + Object name: dot3StatsDuplexStatus + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 45b5778869124558b3265d6d7275c186 + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/net.if.duplex[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24TS: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling' + tags: + - tag: scope + value: performance + - uuid: 742411a65e7f4b5fafc47e861ab8bd23 + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.5.1.2]' + key: psu.discovery + delay: 1h + description: 'The table of power supply status maintained by the environmental monitor card.' + item_prototypes: + - uuid: a3617fa8711146a0bdddd2e721cedb52 + name: '{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.5.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonSupplyState + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: power + - tag: power-supply + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 23fc241ca9d6438bb1688c77688fd1ed + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.psu.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.psu.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - uuid: c6ed26fb555642c9b25564ec13fcf920 + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.psu.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Power supply is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.psu.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.psu.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - uuid: 595c88262f2f48c99d16f22ab7d70aac + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.3.1.2]' + key: temperature.discovery + delay: 1h + description: | + Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status + maintained by the environmental monitor. + item_prototypes: + - uuid: e1636ece86b1427cad01e7223052b526 + name: '{#SNMPVALUE}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.3.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonTemperatureState + The current state of the test point being instrumented. + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 1820c365ad55416e995d4d978063e4a1 + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Temperature is in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor state' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0b7e6f3085a0404ebb64c33828c9c920 + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Temperature is in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor state' + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Temperature is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 16a4c905660349aaaddf52573916e187 + name: '{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.3.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.value[{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonTemperatureValue + The current measurement of the test point being instrumented. + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 4c3501ee0c5b4af48306f040988d427a + expression: 'avg(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 34b7d1a255a4408fac4d299eedc215b9 + expression: 'avg(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b9b8577c9f114d4c8546169e5a63a915 + expression: 'avg(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco Catalyst 3750V2-24TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Temperature is too low' + event_name: 'Cisco Catalyst 3750V2-24TS: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: cisco + - tag: target + value: cisco-catalyst + - tag: target + value: cisco-catalyst-3750v2-24ts + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization in %.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Threshold for the warning level of the interface error packet rate.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Maximum threshold of interface bandwidth utilization in %. Can be used with the interface name as context.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for the operational state of the interface for the link down trigger. Can be used with the interface name as context.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold for maximum memory utilization in %.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'This macro is used to include network interfaces by their administrative status.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their alias.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their alias.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their description.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their description.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their name.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their operational status.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their type.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their type.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + description: 'Critical threshold of the temperature in °C.' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + description: 'Critical threshold of the low temperature in °C.' + - macro: '{$TEMP_WARN}' + value: '50' + description: 'Warning threshold of the temperature in °C.' + dashboards: + - uuid: 3bab64e9da084c928d10685f96574543 + name: Resources + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + name: '#{#SNMPINDEX}: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + name: '{#SNMPVALUE}: Memory utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-24TS by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: fea34445b6cd4847b420d212f9b0201e + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: critical + - value: '4' + newvalue: shutdown + - value: '5' + newvalue: notPresent + - value: '6' + newvalue: notFunctioning + - uuid: 867b0e42f8a24a278ee15476aeadfa0b + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 3534f9f22afe4f98a712a86ce755f491 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 88b99531b08248e8be1fc0a3210acee1 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 653ce2314e6f499b84250048df1314f8 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 690c4c1545894d049ac8e26e3de7ec9c + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 86484c0d62e94532af4202267369f8bf + expression: '(last(/Cisco Catalyst 3750V2-24TS by SNMP/system.hw.uptime)>0 and last(/Cisco Catalyst 3750V2-24TS by SNMP/system.hw.uptime)<10m) or (last(/Cisco Catalyst 3750V2-24TS by SNMP/system.hw.uptime)=0 and last(/Cisco Catalyst 3750V2-24TS by SNMP/system.net.uptime)<10m)' + name: 'Cisco Catalyst 3750V2-24TS: Host has been restarted' + event_name: 'Cisco Catalyst 3750V2-24TS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/Cisco_Catalyst_3750V2-48PS_by_SNMP.yaml b/Cisco_Catalyst_3750V2-48PS_by_SNMP.yaml new file mode 100644 index 0000000..474cba1 --- /dev/null +++ b/Cisco_Catalyst_3750V2-48PS_by_SNMP.yaml @@ -0,0 +1,1990 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: ea096c13a09b4d7a9be0aab1cec95206 + template: 'Cisco Catalyst 3750V2-48PS by SNMP' + name: 'Cisco Catalyst 3750V2-48PS by SNMP' + description: | + Template Cisco Catalyst 3750V2-48PS + + MIBs used: + CISCO-MEMORY-POOL-MIB + IF-MIB + EtherLike-MIB + SNMPv2-MIB + CISCO-PROCESS-MIB + CISCO-ENVMON-MIB + ENTITY-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/418396-discussion-thread-for-official-zabbix-templates-for-cisco + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: d729b3a06df94b6890fe4c62f8d26f60 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 01901a212f7c4fd2976f8ab89ad7eb68 + expression: 'max(/Cisco Catalyst 3750V2-48PS by SNMP/icmpping,#3)=0' + name: 'Cisco Catalyst 3750V2-48PS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 3a6fdbfbbf7c4944a24e22e93aabf0e3 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 20104e6a8abe4b0e9bdd32325d506d9c + expression: 'min(/Cisco Catalyst 3750V2-48PS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Catalyst 3750V2-48PS by SNMP/icmppingloss,5m)<100' + name: 'Cisco Catalyst 3750V2-48PS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: Unavailable by ICMP ping' + expression: 'max(/Cisco Catalyst 3750V2-48PS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 80efc7d77e314e97953cc75b5ae43e92 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 21b7cefe750048fba80e026afecebcfd + expression: 'avg(/Cisco Catalyst 3750V2-48PS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Cisco Catalyst 3750V2-48PS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: High ICMP ping loss' + expression: 'min(/Cisco Catalyst 3750V2-48PS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Catalyst 3750V2-48PS by SNMP/icmppingloss,5m)<100' + - name: 'Cisco Catalyst 3750V2-48PS: Unavailable by ICMP ping' + expression: 'max(/Cisco Catalyst 3750V2-48PS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2c44173959284d7db1d2a745c68fa0a3 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'Item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: system + - uuid: b3ac05facd4349fc8e573525f3fdb239 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: system.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: f21c4e4de69342a68ca060a52fe071d6 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.descr + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 2a0f9c29094f4a72ab66813c931d35ee + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 487fc626eb5e4629a0585210153ebbd1 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a11a364406534a838c99f89c4136eb5b + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/system.hw.serialnumber,#1)<>last(/Cisco Catalyst 3750V2-48PS by SNMP/system.hw.serialnumber,#2) and length(last(/Cisco Catalyst 3750V2-48PS by SNMP/system.hw.serialnumber))>0' + name: 'Cisco Catalyst 3750V2-48PS: Device has been replaced' + event_name: 'Cisco Catalyst 3750V2-48PS: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b81c8fccadb94cd4bd7c798906d881ef + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: system.hw.uptime + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 679e63af2b3548c48b278da7356ae8ed + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: system.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 5d51ca0ffadf4e4599390aa9a4644426 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + triggers: + - uuid: b881ec6269d54e25810ed2ec2dfe3385 + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/system.name,#1)<>last(/Cisco Catalyst 3750V2-48PS by SNMP/system.name,#2) and length(last(/Cisco Catalyst 3750V2-48PS by SNMP/system.name))>0' + name: 'Cisco Catalyst 3750V2-48PS: System name has changed' + event_name: 'Cisco Catalyst 3750V2-48PS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 54ff117dbac14916aee823e247bff23f + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: system.net.uptime + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 2d49036582724a19b5cd5006360be8d2 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: system.objectid + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 5852aecfbfbe429097c660d8a1ce47ee + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.sw.os + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'Version (.+), RELEASE' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: cc0071c5d3074123a77ebddd7dd8583c + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/system.sw.os,#1)<>last(/Cisco Catalyst 3750V2-48PS by SNMP/system.sw.os,#2) and length(last(/Cisco Catalyst 3750V2-48PS by SNMP/system.sw.os))>0' + recovery_mode: NONE + name: 'Cisco Catalyst 3750V2-48PS: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: System name has changed' + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/system.name,#1)<>last(/Cisco Catalyst 3750V2-48PS by SNMP/system.name,#2) and length(last(/Cisco Catalyst 3750V2-48PS by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 642cee0c23134982adc4dfc486a63843 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: 90d5894323074dc8bcd57b212cdbf398 + expression: 'max(/Cisco Catalyst 3750V2-48PS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco Catalyst 3750V2-48PS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: a55dd3dac1d74fdea664fbccbce717cc + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.109.1.1.1.1.5]' + key: cpu.discovery + delay: 1h + description: | + If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable , + indexed with cpmCPUTotalIndex . + This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router, + like different CPU chips, group of CPUs, or CPUs in different modules/cards. + In case of a single CPU, cpmCPUTotalTable has only one entry. + item_prototypes: + - uuid: dfb4e2bee3754f6489ee1b5bff628a4d + name: '#{#SNMPINDEX}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.109.1.1.1.1.8.{#SNMPINDEX}]' + key: 'system.cpu.util[{#SNMPINDEX}]' + delay: 5m + value_type: FLOAT + units: '%' + description: | + MIB: CISCO-PROCESS-MIB + Object name: cpmCPUTotal5minRev + The cpmCPUTotal5minRev MIB object provides a more accurate view of the performance of the router over time than the MIB objects cpmCPUTotal1minRev and cpmCPUTotal5secRev . These MIB objects are not accurate because they look at CPU at one minute and five second intervals, respectively. These MIBs enable you to monitor the trends and plan the capacity of your network. The recommended baseline rising threshold for cpmCPUTotal5minRev is 90 percent. Depending on the platform, some routers that run at 90 percent, for example, 2500s, can exhibit performance degradation versus a high-end router, for example, the 7500 series, which can operate fine. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html + tags: + - tag: component + value: cpu + - tag: cpu-index + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: f3318a22b4ff436f9021dbd181ecee58 + expression: 'min(/Cisco Catalyst 3750V2-48PS by SNMP/system.cpu.util[{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Cisco Catalyst 3750V2-48PS: #{#SNMPINDEX}: High CPU utilization' + event_name: 'Cisco Catalyst 3750V2-48PS: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 54afe104c5dc41f18b6cee29e505463c + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + key: 'system.cpu.util[{#SNMPINDEX}]' + - uuid: 7361d8c6f2a34111b478f4d5c1e12d01 + name: 'Entity Serial Numbers discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_SN},1.3.6.1.2.1.47.1.1.1.1.11]' + key: entity_sn.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: '[^3]' + formulaid: A + - macro: '{#ENT_SN}' + value: .+ + formulaid: B + item_prototypes: + - uuid: fa0ce17966414937ba22b2a0891ca372 + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + Object name: entPhysicalSerialNum + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: serial-number + - tag: entity + value: '{#ENT_NAME}' + trigger_prototypes: + - uuid: b1087409b7c84ad5b587e6f6fc37dfe0 + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/system.hw.serialnumber[{#SNMPINDEX}],#1)<>last(/Cisco Catalyst 3750V2-48PS by SNMP/system.hw.serialnumber[{#SNMPINDEX}],#2) and length(last(/Cisco Catalyst 3750V2-48PS by SNMP/system.hw.serialnumber[{#SNMPINDEX}]))>0' + name: 'Cisco Catalyst 3750V2-48PS: {#ENT_NAME}: Device has been replaced' + event_name: 'Cisco Catalyst 3750V2-48PS: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + tags: + - tag: scope + value: notice + - uuid: a13d58f913b24056bc2f0e770657d1be + name: 'FAN discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.4.1.2]' + key: fan.discovery + delay: 1h + description: 'The table of fan status maintained by the environmental monitor.' + item_prototypes: + - uuid: aa190606669d43d996bce9c76df97081 + name: '{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.4.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonFanState + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: fan + - tag: fan + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 9c0112ed996944768a717e15554aaa21 + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.fan.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 98dd9b3bf65e418aa86f7a927910f847 + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.fan.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Fan is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.fan.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 637a377b92854de1a0c05f53a2a88851 + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.48.1.1.1.2]' + key: memory.discovery + delay: 1h + description: | + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + item_prototypes: + - uuid: 44769632224a48dcb4756260910ba785 + name: '{#SNMPVALUE}: Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.6.{#SNMPINDEX}]' + key: 'vm.memory.free[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Object name: ciscoMemoryPoolFree + Indicates the number of bytes from the memory pool that are currently unused on the managed device. Note that the sum of ciscoMemoryPoolUsed and ciscoMemoryPoolFree is the total amount of memory in the pool + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: 0f037e9121254776a84158ce1090ac80 + name: '{#SNMPVALUE}: Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.5.{#SNMPINDEX}]' + key: 'vm.memory.used[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Object name: ciscoMemoryPoolUsed + Indicates the number of bytes from the memory pool that are currently in use by applications on the managed device. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: 926ffaaf890240be8d3632fe60b17c93 + name: '{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[{#SNMPINDEX}])/(last(//vm.memory.free[{#SNMPINDEX}])+last(//vm.memory.used[{#SNMPINDEX}]))*100' + description: 'Memory utilization in %' + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 14f0fcd6447746d2af5de080c36e9888 + expression: 'min(/Cisco Catalyst 3750V2-48PS by SNMP/vm.memory.util[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: High memory utilization' + event_name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: High memory utilization ( >{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 2d34cc29f3f24decb910e5e99bad064a + name: '{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + key: 'vm.memory.util[{#SNMPINDEX}]' + - uuid: 11a26fe1c76447ba82250c7056c3ff9f + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 757501460bb14d65b14cab2249e0f7b6 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4880d42b5c034fbaa07b5ccb3e74a3ae + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 67573956247a4c29935889db09fba7e4 + expression: 'min(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): High input error rate' + event_name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): High input error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: e5e3c7c9d2904b19a7e8f0fe39d881db + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6d0a3f00c7494655b8c67d6f257be372 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ce74da47f48e426a9364f92f58d50693 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 80dc2a94be5d49d59b643b3c07dfe6fd + expression: 'min(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): High output error rate' + event_name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): High output error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: a5efeed06f5f45d18e58517fb39323e8 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bc137542c8e14308bec44ac90469e8d0 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f13cc69469844cbdad4f2eac0e7f045e + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2ac6c68151b04e9489b0bff5f6277ec6 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + tags: + - tag: scope + value: availability + - uuid: 7bf551e444994cdaa08f208c10b89860 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b67a022f435741e59278d79bc873dcaa + expression: | + change(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.speed[{#SNMPINDEX}])<0 and last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + and ( + last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.type[{#SNMPINDEX}])=6 or + last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.type[{#SNMPINDEX}])=7 or + last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.type[{#SNMPINDEX}])=11 or + last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.type[{#SNMPINDEX}])=62 or + last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.type[{#SNMPINDEX}])=69 or + last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.type[{#SNMPINDEX}])=117 + ) + and + (last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.status[{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.speed[{#SNMPINDEX}])>0 and last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.speed[{#SNMPINDEX}],#2)>0) or + (last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.status[{#SNMPINDEX}])=2) + name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: notice + - uuid: bf1ed5348e3c48388f099f4d8cdec4f8 + expression: | + (avg(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.in[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.in[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage' + event_name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'In: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: 76bbbff26fcc406ba497f24dd23c07c8 + expression: | + (avg(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.out[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.out[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage' + event_name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'Out: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: bc8d1b63791943aabb62d861a86e2754 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + key: 'net.if.in[{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: 2774A4 + item: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + key: 'net.if.out[{#SNMPINDEX}]' + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + key: 'net.if.out.errors[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + key: 'net.if.in.errors[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + key: 'net.if.out.discards[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + key: 'net.if.in.discards[{#SNMPINDEX}]' + - uuid: 51398634ec1742dc95df5907e1042763 + name: 'EtherLike discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: 3a3836aa72914f14b1ee8d48be3b2bd1 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + Object name: dot3StatsDuplexStatus + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4819114a72df4cd5ac093402e7799afa + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/net.if.duplex[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-48PS: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling' + tags: + - tag: scope + value: performance + - uuid: 60431e4af4764ee694973a0ed13b2898 + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.5.1.2]' + key: psu.discovery + delay: 1h + description: 'The table of power supply status maintained by the environmental monitor card.' + item_prototypes: + - uuid: 6ebc2645c84c4eb3acecaae528501cc2 + name: '{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.5.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonSupplyState + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: power + - tag: power-supply + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 8509b77831764bc3943b5fc65a8de0a7 + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.psu.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.psu.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - uuid: 4cdeb02663604279ac2d725cd16ee289 + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.psu.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Power supply is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.psu.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.psu.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - uuid: 84a4865dabb8489a9981eb02de238837 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.3.1.2]' + key: temperature.discovery + delay: 1h + description: | + Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status + maintained by the environmental monitor. + item_prototypes: + - uuid: b60cf661f8c949c4860cea6d0c39e87b + name: '{#SNMPVALUE}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.3.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonTemperatureState + The current state of the test point being instrumented. + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: c4ed5c08530041ad8c9c14033d792f56 + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Temperature is in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor state' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b4b4b88fcbe74e8b9c525cd2a6ace143 + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Temperature is in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor state' + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Temperature is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 957a69769a7d4d27930d82feb359b3d5 + name: '{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.3.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.value[{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonTemperatureValue + The current measurement of the test point being instrumented. + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: d1918e0df0ae4b3ab22067142f7c0538 + expression: 'avg(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 468eaf7a831d4b2699e8be1939916f56 + expression: 'avg(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: acac81a3c0b04e889f9bae2e40dd9caf + expression: 'avg(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco Catalyst 3750V2-48PS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Temperature is too low' + event_name: 'Cisco Catalyst 3750V2-48PS: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: cisco + - tag: target + value: cisco-catalyst + - tag: target + value: cisco-catalyst-3750v2-48ps + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization in %.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Threshold for the warning level of the interface error packet rate.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Maximum threshold of interface bandwidth utilization in %. Can be used with the interface name as context.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for the operational state of the interface for the link down trigger. Can be used with interface name as context.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold for maximum memory utilization in %.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'This macro is used to include network interfaces by their administrative status.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their alias.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their alias.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their description.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their description.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their name.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their operational status.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their type.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their type.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + description: 'Critical threshold of the temperature in °C.' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + description: 'Critical threshold of the low temperature in °C.' + - macro: '{$TEMP_WARN}' + value: '50' + description: 'Warning threshold of the temperature in °C.' + dashboards: + - uuid: f013c9829c064ee6a6933888af993990 + name: Resources + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + name: '#{#SNMPINDEX}: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + name: '{#SNMPVALUE}: Memory utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-48PS by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: e47b3ba8fb9c4ecf82701ddf571d55b6 + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: critical + - value: '4' + newvalue: shutdown + - value: '5' + newvalue: notPresent + - value: '6' + newvalue: notFunctioning + - uuid: 412b00b4bfbc48b4906370635c12dcee + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 358db91b44e645df92072f0a1449de2e + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 877039dc6b0a467783828f3421887b83 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 1d4c62bd989748a0b7947b6455405d96 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: ff706c036eac4ef88570e41629e65514 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 904571e51fbc4cd0a3a25800e16ec495 + expression: '(last(/Cisco Catalyst 3750V2-48PS by SNMP/system.hw.uptime)>0 and last(/Cisco Catalyst 3750V2-48PS by SNMP/system.hw.uptime)<10m) or (last(/Cisco Catalyst 3750V2-48PS by SNMP/system.hw.uptime)=0 and last(/Cisco Catalyst 3750V2-48PS by SNMP/system.net.uptime)<10m)' + name: 'Cisco Catalyst 3750V2-48PS: Host has been restarted' + event_name: 'Cisco Catalyst 3750V2-48PS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/Cisco_Catalyst_3750V2-48TS_by_SNMP.yaml b/Cisco_Catalyst_3750V2-48TS_by_SNMP.yaml new file mode 100644 index 0000000..6471ee8 --- /dev/null +++ b/Cisco_Catalyst_3750V2-48TS_by_SNMP.yaml @@ -0,0 +1,1998 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: f744679600844c07b2b4eedda9bc3d0c + template: 'Cisco Catalyst 3750V2-48TS by SNMP' + name: 'Cisco Catalyst 3750V2-48TS by SNMP' + description: | + Template Cisco Catalyst 3750V2-48TS + + MIBs used: + CISCO-MEMORY-POOL-MIB + IF-MIB + EtherLike-MIB + SNMPv2-MIB + CISCO-PROCESS-MIB + CISCO-ENVMON-MIB + ENTITY-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/418396-discussion-thread-for-official-zabbix-templates-for-cisco + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 5d096334d7e2455797c9a5a46fecfaec + name: 'ICMP ping' + type: SIMPLE + key: icmpping + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1dd6a211f5e54351a2d4a0854e66fdba + expression: 'max(/Cisco Catalyst 3750V2-48TS by SNMP/icmpping,#3)=0' + name: 'Cisco Catalyst 3750V2-48TS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: a88b7bcaa2174a76b09031993ee48fb4 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 669ae230efe84f76be95f3ac0eac1102 + expression: 'min(/Cisco Catalyst 3750V2-48TS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Catalyst 3750V2-48TS by SNMP/icmppingloss,5m)<100' + name: 'Cisco Catalyst 3750V2-48TS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: Unavailable by ICMP ping' + expression: 'max(/Cisco Catalyst 3750V2-48TS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 906ca6fa0cf64000bac2efbc0f5dc7f9 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 391b3ac9e1b746c8824af721c472df7b + expression: 'avg(/Cisco Catalyst 3750V2-48TS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Cisco Catalyst 3750V2-48TS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: High ICMP ping loss' + expression: 'min(/Cisco Catalyst 3750V2-48TS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Catalyst 3750V2-48TS by SNMP/icmppingloss,5m)<100' + - name: 'Cisco Catalyst 3750V2-48TS: Unavailable by ICMP ping' + expression: 'max(/Cisco Catalyst 3750V2-48TS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bc9c48b56cc6405c8256566d4768903a + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'Item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: system + - uuid: 19896943dda74f798241c176b1f4fc4f + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: system.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: c4bd78d5e1f442128eddcdf4ea22d4b3 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.descr + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 58642d7727964ba48f41bc33cfb6ef37 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 7fa7b4e4803e4eed932c176afed56cd5 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: f63ea5e9c33f465985259c3c8d27a12a + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/system.hw.serialnumber,#1)<>last(/Cisco Catalyst 3750V2-48TS by SNMP/system.hw.serialnumber,#2) and length(last(/Cisco Catalyst 3750V2-48TS by SNMP/system.hw.serialnumber))>0' + name: 'Cisco Catalyst 3750V2-48TS: Device has been replaced' + event_name: 'Cisco Catalyst 3750V2-48TS: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f00b81685e5d41f49561b62d710e247f + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: system.hw.uptime + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 213f54a3c23c40aa8693169efd8c0d82 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: system.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 7e325f94720f4b29ad83a741a3735fa1 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + triggers: + - uuid: 55ff869f6acb4f2daddf5c855aa3d76d + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/system.name,#1)<>last(/Cisco Catalyst 3750V2-48TS by SNMP/system.name,#2) and length(last(/Cisco Catalyst 3750V2-48TS by SNMP/system.name))>0' + name: 'Cisco Catalyst 3750V2-48TS: System name has changed' + event_name: 'Cisco Catalyst 3750V2-48TS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d33f3f14dfff49d88269706ab464e2b9 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: system.net.uptime + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 2fce50826a7d498abe4ca628021fb9ac + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: system.objectid + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 0d55299054304e658dc036f234727c73 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.sw.os + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'Version (.+), RELEASE' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6724cfef1df145fdb0e6e2cfb35bc890 + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/system.sw.os,#1)<>last(/Cisco Catalyst 3750V2-48TS by SNMP/system.sw.os,#2) and length(last(/Cisco Catalyst 3750V2-48TS by SNMP/system.sw.os))>0' + recovery_mode: NONE + name: 'Cisco Catalyst 3750V2-48TS: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: System name has changed' + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/system.name,#1)<>last(/Cisco Catalyst 3750V2-48TS by SNMP/system.name,#2) and length(last(/Cisco Catalyst 3750V2-48TS by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 82c87e2ade594f68abc4861e4d328a16 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: da0596afe59b455bb503a0b2dea1cebe + expression: 'max(/Cisco Catalyst 3750V2-48TS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco Catalyst 3750V2-48TS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: f472cb3505b34f14b84bc1ce69f66b29 + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.109.1.1.1.1.5]' + key: cpu.discovery + delay: 1h + description: | + If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable , + indexed with cpmCPUTotalIndex . + This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router, + like different CPU chips, group of CPUs, or CPUs in different modules/cards. + In case of a single CPU, cpmCPUTotalTable has only one entry. + item_prototypes: + - uuid: 71248adcae1247fb8fe96ff83505b72a + name: '#{#SNMPINDEX}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.109.1.1.1.1.8.{#SNMPINDEX}]' + key: 'system.cpu.util[{#SNMPINDEX}]' + delay: 5m + value_type: FLOAT + units: '%' + description: | + MIB: CISCO-PROCESS-MIB + Object name: cpmCPUTotal5minRev + The cpmCPUTotal5minRev MIB object provides a more accurate view of the performance of the router over time than the MIB objects cpmCPUTotal1minRev and cpmCPUTotal5secRev . These MIB objects are not accurate because they look at CPU at one minute and five second intervals, respectively. These MIBs enable you to monitor the trends and plan the capacity of your network. The recommended baseline rising threshold for cpmCPUTotal5minRev is 90 percent. Depending on the platform, some routers that run at 90 percent, for example, 2500s, can exhibit performance degradation versus a high-end router, for example, the 7500 series, which can operate fine. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html + tags: + - tag: component + value: cpu + - tag: cpu-index + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 194c2d8b74c94717a037ce22c31a50e6 + expression: 'min(/Cisco Catalyst 3750V2-48TS by SNMP/system.cpu.util[{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Cisco Catalyst 3750V2-48TS: #{#SNMPINDEX}: High CPU utilization' + event_name: 'Cisco Catalyst 3750V2-48TS: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: af1ac970bce54108bec634e986711c65 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + key: 'system.cpu.util[{#SNMPINDEX}]' + - uuid: 7b40466007144e82ba7b6081d9d024ae + name: 'Entity Serial Numbers discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_SN},1.3.6.1.2.1.47.1.1.1.1.11]' + key: entity_sn.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: '[^3]' + formulaid: A + - macro: '{#ENT_SN}' + value: .+ + formulaid: B + item_prototypes: + - uuid: c08c86fa7d1a4f16b51a8212eb98826f + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + Object name: entPhysicalSerialNum + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: serial-number + - tag: entity + value: '{#ENT_NAME}' + trigger_prototypes: + - uuid: 7dc178a7bced4003b51b599459e41047 + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/system.hw.serialnumber[{#SNMPINDEX}],#1)<>last(/Cisco Catalyst 3750V2-48TS by SNMP/system.hw.serialnumber[{#SNMPINDEX}],#2) and length(last(/Cisco Catalyst 3750V2-48TS by SNMP/system.hw.serialnumber[{#SNMPINDEX}]))>0' + name: 'Cisco Catalyst 3750V2-48TS: {#ENT_NAME}: Device has been replaced' + event_name: 'Cisco Catalyst 3750V2-48TS: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4972e929a2e84bc1bf37f8844aa640d2 + name: 'FAN discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.4.1.2]' + key: fan.discovery + delay: 1h + description: 'The table of fan status maintained by the environmental monitor.' + item_prototypes: + - uuid: 6bc5cda2b5fa487d8841f6f9d07899e3 + name: '{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.4.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonFanState + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: fan + - tag: fan + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 16d0712d6e1f4cb18a65d4cc7e11a8df + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.fan.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 42ad0109072e404eb47daaf17236d805 + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.fan.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Fan is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.fan.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d5c08c7436a44b74b35c4dd5be5c308a + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.48.1.1.1.2]' + key: memory.discovery + delay: 1h + description: | + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + item_prototypes: + - uuid: 3520b5d6482145958337956cb29d5dad + name: '{#SNMPVALUE}: Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.6.{#SNMPINDEX}]' + key: 'vm.memory.free[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Object name: ciscoMemoryPoolFree + Indicates the number of bytes from the memory pool that are currently unused on the managed device. Note that the sum of ciscoMemoryPoolUsed and ciscoMemoryPoolFree is the total amount of memory in the pool + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: 5317e1db040846728cf05f3b7fe5dcab + name: '{#SNMPVALUE}: Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.48.1.1.1.5.{#SNMPINDEX}]' + key: 'vm.memory.used[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Object name: ciscoMemoryPoolUsed + Indicates the number of bytes from the memory pool that are currently in use by applications on the managed device. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: 9120f609d03f44c68c5c34177745422c + name: '{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[{#SNMPINDEX}])/(last(//vm.memory.free[{#SNMPINDEX}])+last(//vm.memory.used[{#SNMPINDEX}]))*100' + description: 'Memory utilization in %' + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 8cf907c229fa4c4c86c1f06e65facef8 + expression: 'min(/Cisco Catalyst 3750V2-48TS by SNMP/vm.memory.util[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: High memory utilization' + event_name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: High memory utilization ( >{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 5d8987ea729748048c3fb5381c6930aa + name: '{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + key: 'vm.memory.util[{#SNMPINDEX}]' + - uuid: c0be105de4db4c0182833e6a7e0fcd01 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 06f850ef11f24e79be813a8b79e25d91 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 216cd11617ce4fcb9551cbada0189919 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f4fa2946c04d4bdbabc9be4b492cf5f0 + expression: 'min(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): High input error rate' + event_name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): High input error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: 9dfdb09ca395486b9b71f1e3d74b8f5a + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 69fffa684b344774877ccb05e80fa0ab + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ce6a12b2553d456b87738efeb43ca849 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a14d914fa1404daab227b6d22e71ea69 + expression: 'min(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): High output error rate' + event_name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): High output error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: eee4285b410f470f82e05c8f0cbc97b5 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b95c3c8730434b58a1a03c661c767901 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 28cb37005e6c46eaa636b5de0b7b5c8d + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 77b810108caa4ae6bd8d8bff06acddb2 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 73d4de02c2e84a75acd66e33d98f6180 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4eae529fc032412d957f1e0d04261867 + expression: | + change(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.speed[{#SNMPINDEX}])<0 and last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + and ( + last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.type[{#SNMPINDEX}])=6 or + last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.type[{#SNMPINDEX}])=7 or + last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.type[{#SNMPINDEX}])=11 or + last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.type[{#SNMPINDEX}])=62 or + last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.type[{#SNMPINDEX}])=69 or + last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.type[{#SNMPINDEX}])=117 + ) + and + (last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.status[{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.speed[{#SNMPINDEX}])>0 and last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.speed[{#SNMPINDEX}],#2)>0) or + (last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.status[{#SNMPINDEX}])=2) + name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: notice + - uuid: 4e1ee888558346faa54c02b85d320170 + expression: | + (avg(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.in[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.in[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage' + event_name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'In: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: 7623796067224187b6f692c8b6cbd398 + expression: | + (avg(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.out[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.out[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage' + event_name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'Out: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 2f07fa8de9f94fdfab762af30d7ac17a + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + key: 'net.if.in[{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: 2774A4 + item: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + key: 'net.if.out[{#SNMPINDEX}]' + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + key: 'net.if.out.errors[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + key: 'net.if.in.errors[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + key: 'net.if.out.discards[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + key: 'net.if.in.discards[{#SNMPINDEX}]' + - uuid: 15992a60957c4ef896ece23744da52f1 + name: 'EtherLike discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: 530a9cfa68024c1e8ad6573573c8f2b7 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + Object name: dot3StatsDuplexStatus + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: interface + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a1217d320897464da4bb9a67f669460f + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/net.if.duplex[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-48TS: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: d2658fe23d274233accf16090273118f + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.5.1.2]' + key: psu.discovery + delay: 1h + description: 'The table of power supply status maintained by the environmental monitor card.' + item_prototypes: + - uuid: b87fda0166dc4baa9c24124dae6cea5c + name: '{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.5.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonSupplyState + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: power + - tag: power-supply + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 56fced6c99ba44ab9fb5268d946a385b + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.psu.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.psu.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - uuid: 6962e5851f244e9cb9d87763637a20f3 + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.psu.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Power supply is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.psu.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.psu.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - uuid: ab60f4a103254b2c87f260014ecd1a28 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.3.1.2]' + key: temperature.discovery + delay: 1h + description: | + Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status + maintained by the environmental monitor. + item_prototypes: + - uuid: 2b2423e625914a4f89b16faaed832bae + name: '{#SNMPVALUE}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.3.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonTemperatureState + The current state of the test point being instrumented. + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: e4844779a080455e9691bdc705227a28 + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.status[{#SNMPINDEX}])=4' + name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Temperature is in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor state' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 120dd2434317447d8ee6708d5c1221e3 + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.status[{#SNMPINDEX}])=2' + name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Temperature is in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor state' + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Temperature is in critical state' + expression: 'last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.status[{#SNMPINDEX}])=3 or last(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.status[{#SNMPINDEX}])=4' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 92864c59d4b34a979dc465824c3ef1b2 + name: '{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.13.1.3.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.value[{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CISCO-ENVMON-MIB + Object name: ciscoEnvMonTemperatureValue + The current measurement of the test point being instrumented. + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 6cecb3ad6e7640cc84b03e3b3943ad07 + expression: 'avg(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6f5d1c3f3c804b6ba17486db5e6e8037 + expression: 'avg(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ed406cbc4b08446991c610c902574cac + expression: 'avg(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco Catalyst 3750V2-48TS by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Temperature is too low' + event_name: 'Cisco Catalyst 3750V2-48TS: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: cisco + - tag: target + value: cisco-catalyst + - tag: target + value: cisco-catalyst-3750v2-48ts + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization in %.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Threshold for the warning level of the interface error packet rate.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Maximum threshold of interface bandwidth utilization in %. Can be used with the interface name as context.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for the operational state of the interface for the link down trigger. Can be used with the interface name as context.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold for maximum memory utilization in %.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'This macro is used to include network interfaces by their administrative status.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their alias.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their alias.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their description.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their description.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their name.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their operational status.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their type.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their type.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + description: 'Critical threshold of the temperature in °C.' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + description: 'Critical threshold of the low temperature in °C.' + - macro: '{$TEMP_WARN}' + value: '50' + description: 'Warning threshold of the temperature in °C.' + dashboards: + - uuid: 3819c2a561ff439fbc521e99f2f38bc2 + name: Resources + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + name: '#{#SNMPINDEX}: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + name: '{#SNMPVALUE}: Memory utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Catalyst 3750V2-48TS by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: 52875f5c6b1b4bb3987c3baa03860d4d + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: critical + - value: '4' + newvalue: shutdown + - value: '5' + newvalue: notPresent + - value: '6' + newvalue: notFunctioning + - uuid: 8decf4d7d8744711b5f2ea68b5e73d14 + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: e8815fad611e47389c987c88a029cece + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 93f29c48ad8b4bc7afe036817d946b18 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: ee7cb62782d44458abc9f7cca816dca8 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 6273854a740e41718cd1354f227cf4db + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 2f1841fb315041a2a437886dc6c23814 + expression: '(last(/Cisco Catalyst 3750V2-48TS by SNMP/system.hw.uptime)>0 and last(/Cisco Catalyst 3750V2-48TS by SNMP/system.hw.uptime)<10m) or (last(/Cisco Catalyst 3750V2-48TS by SNMP/system.hw.uptime)=0 and last(/Cisco Catalyst 3750V2-48TS by SNMP/system.net.uptime)<10m)' + name: 'Cisco Catalyst 3750V2-48TS: Host has been restarted' + event_name: 'Cisco Catalyst 3750V2-48TS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/Cisco_IOS_by_SNMP.yaml b/Cisco_IOS_by_SNMP.yaml new file mode 100644 index 0000000..ca6c1ff --- /dev/null +++ b/Cisco_IOS_by_SNMP.yaml @@ -0,0 +1,2323 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: aa3ce9bd8c1d40a2b0f83f9e642e88ee + template: 'Cisco IOS by SNMP' + name: 'Cisco IOS by SNMP' + description: | + Template Cisco IOS Software releases 12.2(3.5) or later + + MIBs used: + CISCO-MEMORY-POOL-MIB + IF-MIB + EtherLike-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + CISCO-ENVMON-MIB + CISCO-PROCESS-MIB + ENTITY-MIB + + Known Issues: + + Description: no if(in|out)(Errors|Discards) are available for vlan ifType + Version: IOS for example: 12.1(22)EA11, 15.4(3)M2 + Device: C2911, C7600 + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Network devices' + items: + - uuid: f0a3f0b82e32488aa22929fe035825cb + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 77e52d690bc043e389ad8d705dbb86b9 + expression: 'max(/Cisco IOS by SNMP/icmpping,#3)=0' + name: 'Cisco IOS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 0c081f94e6094ad29e1fbc2a3424bedb + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 62b3c0a2654f4372a1bad40a0fd2898d + expression: 'min(/Cisco IOS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco IOS by SNMP/icmppingloss,5m)<100' + name: 'Cisco IOS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Cisco IOS: Unavailable by ICMP ping' + expression: 'max(/Cisco IOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: dab9ef1df04d403faa4910bf51559035 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1ba34b5e344147d5b27431906037bc04 + expression: 'avg(/Cisco IOS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Cisco IOS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Cisco IOS: High ICMP ping loss' + expression: 'min(/Cisco IOS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco IOS by SNMP/icmppingloss,5m)<100' + - name: 'Cisco IOS: Unavailable by ICMP ping' + expression: 'max(/Cisco IOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a8734672a10d41c2ba7c1f00171bb93e + name: 'Cisco IOS: SNMP walk EtherLike-MIB interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.10.7.2.1.19,1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with `up(1)` Operational Status are discovered.' + tags: + - tag: component + value: raw + - uuid: 58168a9cd5464229a9cbb3fb0c978e85 + name: 'Cisco IOS: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 7eb9bdaf14274e1a99c0ff2ac17f0723 + name: 'Cisco IOS: SNMP walk fans' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.13.1.4.1.2,1.3.6.1.4.1.9.9.13.1.4.1.3]' + key: sensor.fans.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering system fans.' + tags: + - tag: component + value: raw + - uuid: 0a44183c252e4160837cfd960f755097 + name: 'Cisco IOS: SNMP walk PSUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.13.1.5.1.2,1.3.6.1.4.1.9.9.13.1.5.1.3]' + key: sensor.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'The table of power supply status maintained by the environmental monitor card.' + tags: + - tag: component + value: raw + - uuid: e64d32fe956f481eb6a3899f8c1e09d9 + name: 'Cisco IOS: SNMP walk temperature sensors' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.13.1.3.1.2,1.3.6.1.4.1.9.9.13.1.3.1.3,1.3.6.1.4.1.9.9.13.1.3.1.4,1.3.6.1.4.1.9.9.13.1.3.1.6]' + key: sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status maintained by the environmental monitor.' + tags: + - tag: component + value: raw + - uuid: 8684622dc8d446f0b17ba7687d47b09d + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 622767f4dbab49039c63990e4fc58eaa + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3208aa4fb7c14623bc5129018172e3b9 + name: 'Cisco IOS: SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.109.1.1.1.1.5,1.3.6.1.4.1.9.9.109.1.1.1.1.8]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable, + indexed with cpmCPUTotalIndex. + This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router, + like different CPU chips, group of CPUs, or CPUs in different modules/cards. + In case of a single CPU, cpmCPUTotalTable has only one entry. + tags: + - tag: component + value: raw + - uuid: ae8e0ecf937c4a9492fe67cc5cd07d6f + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a8062a554b8d447f81f7b9ef3229c7e9 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 223fd2fe9699419c824ae310f1c8a631 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 7d1460eaf7ad46fd8a1b5df3c20051ba + expression: 'last(/Cisco IOS by SNMP/system.hw.serialnumber,#1)<>last(/Cisco IOS by SNMP/system.hw.serialnumber,#2) and length(last(/Cisco IOS by SNMP/system.hw.serialnumber))>0' + name: 'Cisco IOS: Device has been replaced' + event_name: 'Cisco IOS: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1c8c82e3502c46d9b7603812d02ce27b + name: 'Cisco IOS: SNMP walk entity serial numbers' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.47.1.1.1.1.5,1.3.6.1.2.1.47.1.1.1.1.7,1.3.6.1.2.1.47.1.1.1.1.11]' + key: system.hw.serialnumber.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: ENTITY-MIB + Entity Serial Numbers Discovery. + tags: + - tag: component + value: raw + - uuid: f2173cd0262d4a60b5e134e00fed78e6 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 361ca9979352405a9dfb9bc13e542a2f + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2ddace242ffe487a8641e035cf04dcdd + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 2105744d4efd4a239c5b6ab615746a40 + expression: 'last(/Cisco IOS by SNMP/system.name,#1)<>last(/Cisco IOS by SNMP/system.name,#2) and length(last(/Cisco IOS by SNMP/system.name))>0' + name: 'Cisco IOS: System name has changed' + event_name: 'Cisco IOS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: fe1dbb23a8794ce9ae3f6c37e63082f8 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 290d095f8fbc4cd1aa5ed3d304434f4b + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5fe7bc2d46a748d3ace7d1dd0de8127b + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.sw.os[sysDescr.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'Version (.+), RELEASE' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 2d97173405594074bfe2cc6f3d0cae70 + expression: 'last(/Cisco IOS by SNMP/system.sw.os[sysDescr.0],#1)<>last(/Cisco IOS by SNMP/system.sw.os[sysDescr.0],#2) and length(last(/Cisco IOS by SNMP/system.sw.os[sysDescr.0]))>0' + name: 'Cisco IOS: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: System name has changed' + expression: 'last(/Cisco IOS by SNMP/system.name,#1)<>last(/Cisco IOS by SNMP/system.name,#2) and length(last(/Cisco IOS by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: ed5f0ebd013644adbad71e8b93d481de + name: 'Cisco IOS: SNMP walk memory' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.48.1.1.1.2,1.3.6.1.4.1.9.9.48.1.1.1.5,1.3.6.1.4.1.9.9.48.1.1.1.6]' + key: vm.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: CISCO-MEMORY-POOL-MIB + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html. + tags: + - tag: component + value: raw + - uuid: cf9bd75166704b2f93446ece0c2d0fab + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: df7c9ed5d3164e73a792f82ecad6ba13 + expression: 'max(/Cisco IOS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco IOS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Cisco IOS: Unavailable by ICMP ping' + expression: 'max(/Cisco IOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: f7404c15a9dc497b8e67ab014ca43890 + name: 'CPU Discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: | + If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable, + indexed with cpmCPUTotalIndex. + This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router, + like different CPU chips, group of CPUs, or CPUs in different modules/cards. + In case of a single CPU, cpmCPUTotalTable has only one entry. + item_prototypes: + - uuid: b124144899bd4149a6257440574d4341 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[cpmCPUTotal5minRev.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: CISCO-PROCESS-MIB + The cpmCPUTotal5minRev MIB object provides a more accurate view of the performance of the router over time than the MIB objects cpmCPUTotal1minRev and cpmCPUTotal5secRev . These MIB objects are not accurate because they look at CPU at one minute and five second intervals, respectively. These MIBs enable you to monitor the trends and plan the capacity of your network. The recommended baseline rising threshold for cpmCPUTotal5minRev is 90 percent. Depending on the platform, some routers that run at 90 percent, for example, 2500s, can exhibit performance degradation versus a high-end router, for example, the 7500 series, which can operate fine. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.109.1.1.1.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 5m + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 89b292f6748f49fa8b0f23f5378944b2 + expression: 'min(/Cisco IOS by SNMP/system.cpu.util[cpmCPUTotal5minRev.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Cisco IOS: #{#SNMPINDEX}: High CPU utilization' + event_name: 'Cisco IOS: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: e93fccb08b3a4150b986a54eaccbd1c5 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco IOS by SNMP' + key: 'system.cpu.util[cpmCPUTotal5minRev.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.9.9.109.1.1.1.1.5 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e8c57e436eed4958a0a83c7afd6a07e3 + name: 'Entity Serial Numbers Discovery' + type: DEPENDENT + key: entity_sn.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: ^3$ + formulaid: A + - macro: '{#ENT_SN}' + value: .+ + formulaid: B + item_prototypes: + - uuid: e86b198ba7b7451482dfb8ab07553abf + name: '{#ENT_NAME}: Hardware serial number' + type: DEPENDENT + key: 'system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: system.hw.serialnumber.walk + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: e5477e6803974060ba3ce8a131d97d40 + expression: 'last(/Cisco IOS by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#1)<>last(/Cisco IOS by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#2) and length(last(/Cisco IOS by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]))>0' + name: 'Cisco IOS: {#ENT_NAME}: Device has been replaced' + event_name: 'Cisco IOS: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + master_item: + key: system.hw.serialnumber.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#ENT_CLASS}' + - 1.3.6.1.2.1.47.1.1.1.1.5 + - '0' + - '{#ENT_NAME}' + - 1.3.6.1.2.1.47.1.1.1.1.7 + - '0' + - '{#ENT_SN}' + - 1.3.6.1.2.1.47.1.1.1.1.11 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 98eebfb8ed28460c8e5982af61f18931 + name: 'FAN Discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + description: 'The table of fan status maintained by the environmental monitor.' + item_prototypes: + - uuid: d7188ce8f18442d882c585ef044de2cf + name: '{#SENSOR_INFO}: Fan status' + type: DEPENDENT + key: 'sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: 'MIB: CISCO-ENVMON-MIB' + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.4.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.fans.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: e64b0790509c4a21b7ead959fa1b7951 + expression: 'count(/Cisco IOS by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"shutdown\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 33207a0c65e14a5d9355690c8d9d54e2 + expression: 'count(/Cisco IOS by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_WARN_STATUS:\"warning\"}")=1 or count(/Cisco IOS by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_WARN_STATUS:\"notFunctioning\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'Cisco IOS: {#SENSOR_INFO}: Fan is in critical state' + expression: 'count(/Cisco IOS by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"shutdown\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensor.fans.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SENSOR_INFO}' + - 1.3.6.1.4.1.9.9.13.1.4.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d7144482448b4bb5b4f59f18365ecb04 + name: 'Memory Discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: | + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + item_prototypes: + - uuid: b05c256436e14f72a3dea21d48b98a9c + name: '{#SNMPVALUE}: Free memory' + type: DEPENDENT + key: 'vm.memory.free[ciscoMemoryPoolFree.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Indicates the number of bytes from the memory pool that are currently unused on the managed device. Note that the sum of ciscoMemoryPoolUsed and ciscoMemoryPoolFree is the total amount of memory in the pool + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.48.1.1.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: vm.memory.walk + tags: + - tag: component + value: memory + - uuid: 58e8eeb2ddf74c6e86e02845f0d38784 + name: '{#SNMPVALUE}: Used memory' + type: DEPENDENT + key: 'vm.memory.used[ciscoMemoryPoolUsed.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Indicates the number of bytes from the memory pool that are currently in use by applications on the managed device. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.48.1.1.1.5.{#SNMPINDEX}' + - '0' + master_item: + key: vm.memory.walk + tags: + - tag: component + value: memory + - uuid: 5407d019461f45b895663de105d75298 + name: '{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[vm.memory.util.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[ciscoMemoryPoolUsed.{#SNMPINDEX}])/(last(//vm.memory.free[ciscoMemoryPoolFree.{#SNMPINDEX}])+last(//vm.memory.used[ciscoMemoryPoolUsed.{#SNMPINDEX}]))*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: ee300a1f9f644bdbb545bd65d59d4837 + expression: 'min(/Cisco IOS by SNMP/vm.memory.util[vm.memory.util.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Cisco IOS: {#SNMPVALUE}: High memory utilization' + event_name: 'Cisco IOS: {#SNMPVALUE}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 9b18855195cc45a8a84550544bc6d7e7 + name: '{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco IOS by SNMP' + key: 'vm.memory.util[vm.memory.util.{#SNMPINDEX}]' + master_item: + key: vm.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.9.9.48.1.1.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b416fb001e46464f847578a50451164b + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 6d4b70db5618436f8d5096098d94ad39 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1cdd9e77a6f9420da700b903e2fc0966 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 22cb1c9d188c4274a4f9ac815832fc21 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 75182ac83419420194cf34c4e5f92a62 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c31a98b3b9784cd699b5d0dadbc3dc4a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 973dbf88a72d4f5897bb199b5d41941a + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e24cccb1e89446268b30830ac01d59f8 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6ecd6a8ec5fa487c836adb69e72915e7 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6bf13b6cac1b438bbfe384a746646597 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 51e3b46e009944d594fd4bdadeac83aa + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3783d41e790f4d1e9ebb7340d82edc1f + expression: | + change(/Cisco IOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Cisco IOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Cisco IOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Cisco IOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Cisco IOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Cisco IOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Cisco IOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Cisco IOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Cisco IOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Cisco IOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 17a07d8b87c04874bfbf12009e1da65f + expression: | + (avg(/Cisco IOS by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco IOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Cisco IOS by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco IOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Cisco IOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Cisco IOS by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco IOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Cisco IOS by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco IOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 0c1c6f8fc17849a68a12813389da6373 + expression: | + min(/Cisco IOS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Cisco IOS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Cisco IOS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Cisco IOS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Cisco IOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 171ff5fe2b1543aa869ab56f800b52a5 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco IOS by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Cisco IOS by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Cisco IOS by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Cisco IOS by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Cisco IOS by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Cisco IOS by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d79d3a6026bd4d1f877fc164a3eb7f84 + name: 'EtherLike-MIB Discovery' + type: DEPENDENT + key: net.if.duplex.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + - macro: '{#SNMPVALUE}' + operator: EXISTS + formulaid: C + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with `up(1)` Operational Status are discovered.' + item_prototypes: + - uuid: 338e81aa226b41dd956bc1f9d10c0a87 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: DEPENDENT + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC entity. `unknown` indicates that the current duplex mode could not be determined. + Management control of the duplex mode is accomplished through the MAU MIB. When an interface does not support autonegotiation or when autonegotiation is not enabled, the duplex mode is controlled using `ifMauDefaultType`. When autonegotiation is supported and enabled, duplex mode is controlled using `ifMauAutoNegAdvertisedBits`. In either case, the currently operating duplex mode in reflected both in this object and in `ifMauType`. + Note that this object provides redundant information with `ifMauType`. Normally, redundant objects are discouraged. However, in this instance, it allows a management application to determine the duplex status of an interface without having to know every possible value of `ifMauType`. This was felt to be sufficiently valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.duplex.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 251a80d2f6824e33b8edfca94e0f335d + expression: 'last(/Cisco IOS by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + master_item: + key: net.if.duplex.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.10.7.2.1.19 + - '0' + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4ffaea3ee50c424baa1080586d92ba2f + name: 'PSU Discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'The table of power supply status maintained by the environmental monitor card.' + item_prototypes: + - uuid: 22ac9f6f30eb4f4b9d009db4adba7f29 + name: '{#SENSOR_INFO}: Power supply status' + type: DEPENDENT + key: 'sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: 'MIB: CISCO-ENVMON-MIB' + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.5.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.psu.walk + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 3068fc8f0b0749d4b76d97d7f500e36d + expression: 'count(/Cisco IOS by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"shutdown\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 194444afb5d143a0a0734120e26066e4 + expression: 'count(/Cisco IOS by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_WARN_STATUS:\"warning\"}")=1 or count(/Cisco IOS by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_WARN_STATUS:\"notFunctioning\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Cisco IOS: {#SENSOR_INFO}: Power supply is in critical state' + expression: 'count(/Cisco IOS by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"shutdown\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensor.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SENSOR_INFO}' + - 1.3.6.1.4.1.9.9.13.1.5.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2751c1ff3f334145971aa400440631fe + name: 'Temperature Discovery' + type: DEPENDENT + key: temperature.discovery + delay: '0' + description: | + Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status + maintained by the environmental monitor. + item_prototypes: + - uuid: 7985d9ceeaeb4a4f8e39e02730e91d29 + name: '{#SNMPVALUE}: Temperature status' + type: DEPENDENT + key: 'sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: CISCO-ENVMON-MIB + The current state of the test point being instrumented. + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.3.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.temp.walk + tags: + - tag: component + value: temperature + - uuid: c1fb8e8099ed496a9af8d3e36d6d3c8b + name: '{#SNMPVALUE}: Temperature' + type: DEPENDENT + key: 'sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: CISCO-ENVMON-MIB + The current measurement of the test point being instrumented. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.3.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 64888770ef6a44089593e78d4d2c528d + expression: 'avg(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Cisco IOS: {#SNMPVALUE}: Temperature is too low' + event_name: 'Cisco IOS: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + trigger_prototypes: + - uuid: 95f562a5b2fb4e17b091eaed07c77d4a + expression: | + avg(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"} + or + (avg(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{#SNMP.TEMP.THRESHOLD} and {#SNMP.TEMP.THRESHOLD}>0) + or + last(/Cisco IOS by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_CRIT_STATUS} + or + last(/Cisco IOS by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_DISASTER_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3 + and + (avg(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{#SNMP.TEMP.THRESHOLD}-3 or {#SNMP.TEMP.THRESHOLD}<=0) + name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: | + This trigger uses temperature sensor values as well as temperature sensor status if available. + It fires either above the user-configurable {$TEMP_CRIT} macro, or above the vendor-defined threshold + reported by the device itself (`ciscoEnvMonTemperatureThreshold`). A device-reported value of 0 means + the device does not report a threshold for this test point, so that check is skipped. + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5809893fb23a452ebad327c595322619 + expression: | + avg(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"} + or + last(/Cisco IOS by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_WARN_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above critical threshold' + expression: | + avg(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"} + or + (avg(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{#SNMP.TEMP.THRESHOLD} and {#SNMP.TEMP.THRESHOLD}>0) + or + last(/Cisco IOS by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_CRIT_STATUS} + or + last(/Cisco IOS by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_DISASTER_STATUS} + recovery_expression: | + avg(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3 + and + (avg(/Cisco IOS by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{#SNMP.TEMP.THRESHOLD}-3 or {#SNMP.TEMP.THRESHOLD}<=0) + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.9.9.13.1.3.1.2 + - '0' + - '{#SNMP.TEMP.THRESHOLD}' + - 1.3.6.1.4.1.9.9.13.1.3.1.4 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: cisco + - tag: target + value: cisco-ios + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS:"critical"}' + value: '3' + - macro: '{$FAN_CRIT_STATUS:"shutdown"}' + value: '4' + - macro: '{$FAN_WARN_STATUS:"notFunctioning"}' + value: '6' + - macro: '{$FAN_WARN_STATUS:"warning"}' + value: '2' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$PSU_CRIT_STATUS:"critical"}' + value: '3' + - macro: '{$PSU_CRIT_STATUS:"shutdown"}' + value: '4' + - macro: '{$PSU_WARN_STATUS:"notFunctioning"}' + value: '6' + - macro: '{$PSU_WARN_STATUS:"warning"}' + value: '2' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_CRIT_STATUS}' + value: '3' + - macro: '{$TEMP_DISASTER_STATUS}' + value: '4' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$TEMP_WARN_STATUS}' + value: '2' + dashboards: + - uuid: 9b817c34b74842c8a21827e5d84c4692 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco IOS by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: fb67666002524322b1b9ae9ed1611be5 + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: critical + - value: '4' + newvalue: shutdown + - value: '5' + newvalue: notPresent + - value: '6' + newvalue: notFunctioning + - uuid: 36ad5e7621ff466ca89e641c4410c6a1 + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 6c1104306b5447328703076cb76b64a9 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 80d8685de68c49d8beb0f96f58baa1ce + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 521e28cd45a1421d89b1588e5392b50a + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: cc333fe140bc45388e5508237b42e1ad + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: b98092ddf87247ff91710e2f310dbfb9 + expression: '(last(/Cisco IOS by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Cisco IOS by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Cisco IOS by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Cisco IOS by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Cisco IOS: Host has been restarted' + event_name: 'Cisco IOS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: No SNMP data collection' + expression: 'max(/Cisco IOS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Cisco_IOS_prior_to_12.0_3_T_by_SNMP.yaml b/Cisco_IOS_prior_to_12.0_3_T_by_SNMP.yaml new file mode 100644 index 0000000..0e5d520 --- /dev/null +++ b/Cisco_IOS_prior_to_12.0_3_T_by_SNMP.yaml @@ -0,0 +1,1019 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 1bb42fbdb9054645a62ff81f14ba3b99 + template: 'Cisco IOS prior to 12.0_3_T by SNMP' + name: 'Cisco IOS prior to 12.0_3_T by SNMP' + description: | + Cisco IOS Software releases prior to 12.0(3)T + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + OLD-CISCO-CPU-MIB + CISCO-ENVMON-MIB + CISCO-MEMORY-POOL-MIB + ENTITY-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Network devices' + items: + - uuid: bf6d81068770410a929c127d8e7d76c1 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fd317d3e8d3d45bf97322b8578f30c04 + expression: 'max(/Cisco IOS prior to 12.0_3_T by SNMP/icmpping,#3)=0' + name: 'Cisco IOS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 2af7b5f79fc44d7d992b0bf6277c12bb + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 3576c96601ef40abbeedbde11768141a + expression: 'min(/Cisco IOS prior to 12.0_3_T by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco IOS prior to 12.0_3_T by SNMP/icmppingloss,5m)<100' + name: 'Cisco IOS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Cisco IOS: Unavailable by ICMP ping' + expression: 'max(/Cisco IOS prior to 12.0_3_T by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1afa1e8ca21c430598845806bbf0e7a2 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2941d30058b14d52bd9a723889c8be26 + expression: 'avg(/Cisco IOS prior to 12.0_3_T by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Cisco IOS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Cisco IOS: High ICMP ping loss' + expression: 'min(/Cisco IOS prior to 12.0_3_T by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco IOS prior to 12.0_3_T by SNMP/icmppingloss,5m)<100' + - name: 'Cisco IOS: Unavailable by ICMP ping' + expression: 'max(/Cisco IOS prior to 12.0_3_T by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c5cabdb91f004235b481de453db637c6 + name: 'Cisco IOS: SNMP walk fans' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.13.1.4.1.2,1.3.6.1.4.1.9.9.13.1.4.1.3]' + key: sensor.fans.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering system fans.' + tags: + - tag: component + value: raw + - uuid: cdb1b03725624ea18071a197b7e7f21e + name: 'Cisco IOS: SNMP walk PSUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.13.1.5.1.2,1.3.6.1.4.1.9.9.13.1.5.1.3]' + key: sensor.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'The table of power supply status maintained by the environmental monitor card.' + tags: + - tag: component + value: raw + - uuid: 9620c1de761246e1806fda680ede7bba + name: 'Cisco IOS: SNMP walk temperature sensors' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.13.1.3.1.2,1.3.6.1.4.1.9.9.13.1.3.1.3,1.3.6.1.4.1.9.9.13.1.3.1.4,1.3.6.1.4.1.9.9.13.1.3.1.6]' + key: sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status maintained by the environmental monitor.' + tags: + - tag: component + value: raw + - uuid: 53eb0288c9e54490942cedd4ce5f376e + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: bba5be8b3fa54bfbb354b7a2c20fd353 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 693b0c779f574d869f47b44c4b3ecd58 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.2.1.58]' + key: 'system.cpu.util[avgBusy5]' + delay: 5m + value_type: FLOAT + units: '%' + description: | + MIB: OLD-CISCO-CPU-MIB + 5 minute exponentially-decayed moving average of the CPU busy percentage. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html + tags: + - tag: component + value: cpu + triggers: + - uuid: 74773fc279864e7daf89cffe9cb2067c + expression: 'min(/Cisco IOS prior to 12.0_3_T by SNMP/system.cpu.util[avgBusy5],5m)>{$CPU.UTIL.CRIT}' + name: 'Cisco IOS: High CPU utilization' + event_name: 'Cisco IOS: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 495b26e876a04819a02cf22eaba04e0b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b5121a382d0245f0906bba4530a82ac4 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 5934a35b54464f66ab19152ca393b882 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: d53c0d22a67544cf8a2fcd2c8de4d4eb + expression: 'last(/Cisco IOS prior to 12.0_3_T by SNMP/system.hw.serialnumber,#1)<>last(/Cisco IOS prior to 12.0_3_T by SNMP/system.hw.serialnumber,#2) and length(last(/Cisco IOS prior to 12.0_3_T by SNMP/system.hw.serialnumber))>0' + name: 'Cisco IOS: Device has been replaced' + event_name: 'Cisco IOS: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3b92777596e2442991618e5feb47567c + name: 'Cisco IOS: SNMP walk entity serial numbers' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.47.1.1.1.1.5,1.3.6.1.2.1.47.1.1.1.1.7,1.3.6.1.2.1.47.1.1.1.1.11]' + key: system.hw.serialnumber.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: ENTITY-MIB + Entity Serial Numbers Discovery. + tags: + - tag: component + value: raw + - uuid: 732ccfd809b44d7fa923c54e6577851d + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 30df666e80bd4875ac761306781061da + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2e55e75a7baa4195b012e750bac90dcb + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 33b42b1aa448408fa3fb5aadf7375cf8 + expression: 'last(/Cisco IOS prior to 12.0_3_T by SNMP/system.name,#1)<>last(/Cisco IOS prior to 12.0_3_T by SNMP/system.name,#2) and length(last(/Cisco IOS prior to 12.0_3_T by SNMP/system.name))>0' + name: 'Cisco IOS: System name has changed' + event_name: 'Cisco IOS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 7ecd28b73c0f43a98c3a58467b1cbdc7 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cc6e5a6e4f604b639815d9397264c6af + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 70ef7ce7561640b7bc6b5d30235c0ecc + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.sw.os[sysDescr.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'Version (.+), RELEASE' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: abe57415ff574b878a2ce2a318be86ee + expression: 'last(/Cisco IOS prior to 12.0_3_T by SNMP/system.sw.os[sysDescr.0],#1)<>last(/Cisco IOS prior to 12.0_3_T by SNMP/system.sw.os[sysDescr.0],#2) and length(last(/Cisco IOS prior to 12.0_3_T by SNMP/system.sw.os[sysDescr.0]))>0' + name: 'Cisco IOS: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: System name has changed' + expression: 'last(/Cisco IOS prior to 12.0_3_T by SNMP/system.name,#1)<>last(/Cisco IOS prior to 12.0_3_T by SNMP/system.name,#2) and length(last(/Cisco IOS prior to 12.0_3_T by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 011212452fb0421aa913ceee4f59d17b + name: 'Cisco IOS: SNMP walk memory' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.48.1.1.1.2,1.3.6.1.4.1.9.9.48.1.1.1.5,1.3.6.1.4.1.9.9.48.1.1.1.6]' + key: vm.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: CISCO-MEMORY-POOL-MIB + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html. + tags: + - tag: component + value: raw + - uuid: 5a156e9ca10c49bbb87cf3de1b686cff + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 86d8603903504287b07a25530c8eda2b + expression: 'max(/Cisco IOS prior to 12.0_3_T by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco IOS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Cisco IOS: Unavailable by ICMP ping' + expression: 'max(/Cisco IOS prior to 12.0_3_T by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: fbeef9c16d9d45b7a5c50f530a697f76 + name: 'Entity Serial Numbers Discovery' + type: DEPENDENT + key: entity_sn.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: ^3$ + formulaid: A + - macro: '{#ENT_SN}' + value: .+ + formulaid: B + item_prototypes: + - uuid: 1993495d289d407e85c24f4986819ab8 + name: '{#ENT_NAME}: Hardware serial number' + type: DEPENDENT + key: 'system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: system.hw.serialnumber.walk + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: e8c328ad70a146219a8ae62f101cfc00 + expression: 'last(/Cisco IOS prior to 12.0_3_T by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#1)<>last(/Cisco IOS prior to 12.0_3_T by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#2) and length(last(/Cisco IOS prior to 12.0_3_T by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]))>0' + name: 'Cisco IOS: {#ENT_NAME}: Device has been replaced' + event_name: 'Cisco IOS: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + master_item: + key: system.hw.serialnumber.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#ENT_CLASS}' + - 1.3.6.1.2.1.47.1.1.1.1.5 + - '0' + - '{#ENT_NAME}' + - 1.3.6.1.2.1.47.1.1.1.1.7 + - '0' + - '{#ENT_SN}' + - 1.3.6.1.2.1.47.1.1.1.1.11 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 109cd000cd044e4096bf98dbf57b72d1 + name: 'FAN Discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + description: 'The table of fan status maintained by the environmental monitor.' + item_prototypes: + - uuid: 7008cccccf2647918bce95bb0a6193df + name: '{#SENSOR_INFO}: Fan status' + type: DEPENDENT + key: 'sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: 'MIB: CISCO-ENVMON-MIB' + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.4.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.fans.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: ddd7015dd3204514beea29edc45c3cd4 + expression: 'count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"shutdown\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4eb7ea3405d74740a12095a07d91d48f + expression: 'count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_WARN_STATUS:\"warning\"}")=1 or count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_WARN_STATUS:\"notFunctioning\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'Cisco IOS: {#SENSOR_INFO}: Fan is in critical state' + expression: 'count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"shutdown\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensor.fans.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SENSOR_INFO}' + - 1.3.6.1.4.1.9.9.13.1.4.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 727adcf658d141ff9e45744107a58c38 + name: 'Memory Discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: | + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + item_prototypes: + - uuid: e0df9d6e31384da4af18ab191e467814 + name: '{#SNMPVALUE}: Free memory' + type: DEPENDENT + key: 'vm.memory.free[ciscoMemoryPoolFree.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Indicates the number of bytes from the memory pool that are currently unused on the managed device. Note that the sum of ciscoMemoryPoolUsed and ciscoMemoryPoolFree is the total amount of memory in the pool + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.48.1.1.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: vm.memory.walk + tags: + - tag: component + value: memory + - uuid: 25471f4acc4348bf978792fcfaff6acc + name: '{#SNMPVALUE}: Used memory' + type: DEPENDENT + key: 'vm.memory.used[ciscoMemoryPoolUsed.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Indicates the number of bytes from the memory pool that are currently in use by applications on the managed device. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.48.1.1.1.5.{#SNMPINDEX}' + - '0' + master_item: + key: vm.memory.walk + tags: + - tag: component + value: memory + - uuid: 9a03c1b1c6ae42e5ab1886c172b2e3ac + name: '{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[vm.memory.util.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[ciscoMemoryPoolUsed.{#SNMPINDEX}])/(last(//vm.memory.free[ciscoMemoryPoolFree.{#SNMPINDEX}])+last(//vm.memory.used[ciscoMemoryPoolUsed.{#SNMPINDEX}]))*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 8793ba7767cc415a80a6a206aaf01f11 + expression: 'min(/Cisco IOS prior to 12.0_3_T by SNMP/vm.memory.util[vm.memory.util.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Cisco IOS: {#SNMPVALUE}: High memory utilization' + event_name: 'Cisco IOS: {#SNMPVALUE}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: dd0520d162fe4230900d33472944677f + name: '{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco IOS prior to 12.0_3_T by SNMP' + key: 'vm.memory.util[vm.memory.util.{#SNMPINDEX}]' + master_item: + key: vm.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.9.9.48.1.1.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5e67e9c84ac54dea866893207a42d3e3 + name: 'PSU Discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'The table of power supply status maintained by the environmental monitor card.' + item_prototypes: + - uuid: d05d99a68e3540d09d64b8bab5d63004 + name: '{#SENSOR_INFO}: Power supply status' + type: DEPENDENT + key: 'sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: 'MIB: CISCO-ENVMON-MIB' + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.5.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.psu.walk + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: fc4b6f155d3646c3bb8b27d35c18604b + expression: 'count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"shutdown\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 58e9514d75f84c989b052cfd76ceed4a + expression: 'count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_WARN_STATUS:\"warning\"}")=1 or count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_WARN_STATUS:\"notFunctioning\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Cisco IOS: {#SENSOR_INFO}: Power supply is in critical state' + expression: 'count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"shutdown\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensor.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SENSOR_INFO}' + - 1.3.6.1.4.1.9.9.13.1.5.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 73d10f48886443248f7d2d9167fcfee5 + name: 'Temperature Discovery' + type: DEPENDENT + key: temperature.discovery + delay: '0' + description: | + Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status + maintained by the environmental monitor. + item_prototypes: + - uuid: a12075ae5b834eeeb742fed6f7afc39d + name: '{#SNMPVALUE}: Temperature status' + type: DEPENDENT + key: 'sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: CISCO-ENVMON-MIB + The current state of the test point being instrumented. + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.3.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.temp.walk + tags: + - tag: component + value: temperature + - uuid: ea0d56dd49104257ba6c14ce3bdb753a + name: '{#SNMPVALUE}: Temperature' + type: DEPENDENT + key: 'sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: CISCO-ENVMON-MIB + The current measurement of the test point being instrumented. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.3.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 716dee103c9f4e9da5f83d6cc338617d + expression: 'avg(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Cisco IOS: {#SNMPVALUE}: Temperature is too low' + event_name: 'Cisco IOS: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + trigger_prototypes: + - uuid: 82fa9473dc7d49d4a3a230ef6238cd2c + expression: | + avg(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"} + or + (avg(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{#SNMP.TEMP.THRESHOLD} and {#SNMP.TEMP.THRESHOLD}>0) + or + last(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_CRIT_STATUS} + or + last(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_DISASTER_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3 + and + (avg(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{#SNMP.TEMP.THRESHOLD}-3 or {#SNMP.TEMP.THRESHOLD}<=0) + name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: | + This trigger uses temperature sensor values as well as temperature sensor status if available. + It fires either above the user-configurable {$TEMP_CRIT} macro, or above the vendor-defined threshold + reported by the device itself (`ciscoEnvMonTemperatureThreshold`). A device-reported value of 0 means + the device does not report a threshold for this test point, so that check is skipped. + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a0199088767f43c0990f5ac8793267b1 + expression: | + avg(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"} + or + last(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_WARN_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above critical threshold' + expression: | + avg(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"} + or + (avg(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{#SNMP.TEMP.THRESHOLD} and {#SNMP.TEMP.THRESHOLD}>0) + or + last(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_CRIT_STATUS} + or + last(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_DISASTER_STATUS} + recovery_expression: | + avg(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3 + and + (avg(/Cisco IOS prior to 12.0_3_T by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{#SNMP.TEMP.THRESHOLD}-3 or {#SNMP.TEMP.THRESHOLD}<=0) + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.9.9.13.1.3.1.2 + - '0' + - '{#SNMP.TEMP.THRESHOLD}' + - 1.3.6.1.4.1.9.9.13.1.3.1.4 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: cisco + - tag: target + value: cisco-prior + - tag: target + value: cisco-prior-12.0-3-t + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS:"critical"}' + value: '3' + - macro: '{$FAN_CRIT_STATUS:"shutdown"}' + value: '4' + - macro: '{$FAN_WARN_STATUS:"notFunctioning"}' + value: '6' + - macro: '{$FAN_WARN_STATUS:"warning"}' + value: '2' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$PSU_CRIT_STATUS:"critical"}' + value: '3' + - macro: '{$PSU_CRIT_STATUS:"shutdown"}' + value: '4' + - macro: '{$PSU_WARN_STATUS:"notFunctioning"}' + value: '6' + - macro: '{$PSU_WARN_STATUS:"warning"}' + value: '2' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_CRIT_STATUS}' + value: '3' + - macro: '{$TEMP_DISASTER_STATUS}' + value: '4' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$TEMP_WARN_STATUS}' + value: '2' + valuemaps: + - uuid: 0e5588b6aa714283b436031ff8ebc93a + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: critical + - value: '4' + newvalue: shutdown + - value: '5' + newvalue: notPresent + - value: '6' + newvalue: notFunctioning + - uuid: 9fc9d3c2eb254de996d9c4a61ba58671 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: bb13061dd5b542f9b0f5921e75866679 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: f278b8b4eb784107a6d8d3e8437e8a66 + expression: '(last(/Cisco IOS prior to 12.0_3_T by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Cisco IOS prior to 12.0_3_T by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Cisco IOS prior to 12.0_3_T by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Cisco IOS prior to 12.0_3_T by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Cisco IOS: Host has been restarted' + event_name: 'Cisco IOS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: No SNMP data collection' + expression: 'max(/Cisco IOS prior to 12.0_3_T by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 8c8379b8b21048d4b2ba3781a2392b69 + name: 'Cisco IOS: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco IOS prior to 12.0_3_T by SNMP' + key: 'system.cpu.util[avgBusy5]' diff --git a/Cisco_IOS_versions_12.0_3_T-12.2_3.5_by_SNMP.yaml b/Cisco_IOS_versions_12.0_3_T-12.2_3.5_by_SNMP.yaml new file mode 100644 index 0000000..163e5f7 --- /dev/null +++ b/Cisco_IOS_versions_12.0_3_T-12.2_3.5_by_SNMP.yaml @@ -0,0 +1,2222 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 40c233aaa3424fd29dc378022ff3461d + template: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + name: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + description: | + Cisco IOS Software releases later to 12.0(3)T and prior to 12.2(3.5) + + MIBs used: + CISCO-MEMORY-POOL-MIB + IF-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + CISCO-ENVMON-MIB + CISCO-PROCESS-MIB + ENTITY-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Network devices' + items: + - uuid: a94e2b40f0e14bdfb70e66127f8d946b + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f6fae61d08644d5fa3929f526aee34e4 + expression: 'max(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/icmpping,#3)=0' + name: 'Cisco IOS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 39baf182f6724813a951b25f6ff5aab4 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5c7eae9701be4661a34bbcdb99c094fe + expression: 'min(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/icmppingloss,5m)<100' + name: 'Cisco IOS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Cisco IOS: Unavailable by ICMP ping' + expression: 'max(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 85748657f67e45189256e7704c6e7a9c + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9aebe4a1cfa34c5d92178abc8a6ce06e + expression: 'avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Cisco IOS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Cisco IOS: High ICMP ping loss' + expression: 'min(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/icmppingloss,5m)<100' + - name: 'Cisco IOS: Unavailable by ICMP ping' + expression: 'max(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cb44245cd4224bbdaa8c5546ad483848 + name: 'Cisco IOS: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: fa5166db7ce14744817cf098c4be46f7 + name: 'Cisco IOS: SNMP walk fans' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.13.1.4.1.2,1.3.6.1.4.1.9.9.13.1.4.1.3]' + key: sensor.fans.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering system fans.' + tags: + - tag: component + value: raw + - uuid: 2c7987c8fb2748978fd9f3f84b5c96d5 + name: 'Cisco IOS: SNMP walk PSUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.13.1.5.1.2,1.3.6.1.4.1.9.9.13.1.5.1.3]' + key: sensor.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'The table of power supply status maintained by the environmental monitor card.' + tags: + - tag: component + value: raw + - uuid: 7568839f76854edca01234fb707e1558 + name: 'Cisco IOS: SNMP walk temperature sensors' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.13.1.3.1.2,1.3.6.1.4.1.9.9.13.1.3.1.3,1.3.6.1.4.1.9.9.13.1.3.1.4,1.3.6.1.4.1.9.9.13.1.3.1.6]' + key: sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status maintained by the environmental monitor.' + tags: + - tag: component + value: raw + - uuid: 0f50837172ad475d9d5a27c95be19ab2 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 22406c415a0a4f6bbd9d44707631f42c + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d188b4d086734f438c3752bb3d9b1971 + name: 'Cisco IOS: SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.109.1.1.1.1.5]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable, + indexed with cpmCPUTotalIndex. + This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router, + like different CPU chips, group of CPUs, or CPUs in different modules/cards. + In case of a single CPU, cpmCPUTotalTable has only one entry. + tags: + - tag: component + value: raw + - uuid: 5a37d2e4f308475c932a6bb856d0ffb4 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 12b69d0a3b844906a950bcedcbb8b9b8 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 991021da67c84f96a76154078c45f3be + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 78723249679b4a288861f4ad8621fd77 + expression: 'last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.hw.serialnumber,#1)<>last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.hw.serialnumber,#2) and length(last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.hw.serialnumber))>0' + name: 'Cisco IOS: Device has been replaced' + event_name: 'Cisco IOS: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 79968a2e878c45c290f79902e9e1cf37 + name: 'Cisco IOS: SNMP walk entity serial numbers' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.47.1.1.1.1.5,1.3.6.1.2.1.47.1.1.1.1.7,1.3.6.1.2.1.47.1.1.1.1.11]' + key: system.hw.serialnumber.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: ENTITY-MIB + Entity Serial Numbers Discovery. + tags: + - tag: component + value: raw + - uuid: 927d85dbb82f4b9a9edf4fb6194e7427 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: d8ed796e88f3478ea72d95ddcc68f9ed + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a26d3babf5674a5e9d9afff94518e6c6 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 3e09d5d308e449a4974393650b33e64d + expression: 'last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.name,#1)<>last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.name,#2) and length(last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.name))>0' + name: 'Cisco IOS: System name has changed' + event_name: 'Cisco IOS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 182fd7bfd7b74331b9f3cf8f4a7646cb + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: da41d408448d4b1aa323e0046ff97598 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: cf4af497970a415aa45aa66b2ba48115 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.sw.os[sysDescr.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'Version (.+), RELEASE' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: df85813bb6af4accab8d5191cd452329 + expression: 'last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.sw.os[sysDescr.0],#1)<>last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.sw.os[sysDescr.0],#2) and length(last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.sw.os[sysDescr.0]))>0' + name: 'Cisco IOS: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: System name has changed' + expression: 'last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.name,#1)<>last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.name,#2) and length(last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: fe26641865204720a592be13d4793c99 + name: 'Cisco IOS: SNMP walk memory' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.9.9.48.1.1.1.2,1.3.6.1.4.1.9.9.48.1.1.1.5,1.3.6.1.4.1.9.9.48.1.1.1.6]' + key: vm.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: CISCO-MEMORY-POOL-MIB + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html. + tags: + - tag: component + value: raw + - uuid: 92fa54c5c28b4244b0d22c9041064d15 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 778749b260bb45c3a926d6bb49c07257 + expression: 'max(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco IOS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Cisco IOS: Unavailable by ICMP ping' + expression: 'max(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 1d8d76707b1049cabfda668257c257b6 + name: 'CPU Discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: | + If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable, + indexed with cpmCPUTotalIndex. + This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router, + like different CPU chips, group of CPUs, or CPUs in different modules/cards. + In case of a single CPU, cpmCPUTotalTable has only one entry. + item_prototypes: + - uuid: 2f6285386ed54cd99d7aaf41e6f3e891 + name: '{#SNMPVALUE}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[cpmCPUTotal5min.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: CISCO-PROCESS-MIB + The overall CPU busy percentage in the last 5 minute + period. This object deprecates the avgBusy5 object from + the OLD-CISCO-SYSTEM-MIB. This object is deprecated + by cpmCPUTotal5minRev which has the changed range + of value (0..100). + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.109.1.1.1.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 5m + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: b964834d4f6549c7ae0f0c0c2646dfbc + expression: 'min(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.cpu.util[cpmCPUTotal5min.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Cisco IOS: {#SNMPVALUE}: High CPU utilization' + event_name: 'Cisco IOS: {#SNMPVALUE}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 9e61506351cf4f16be21dcbed8875293 + name: '{#SNMPVALUE}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + key: 'system.cpu.util[cpmCPUTotal5min.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.9.9.109.1.1.1.1.5 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: afafbf551dc242e8a85dbb12ba1aa067 + name: 'Entity Serial Numbers Discovery' + type: DEPENDENT + key: entity_sn.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: ^3$ + formulaid: A + - macro: '{#ENT_SN}' + value: .+ + formulaid: B + item_prototypes: + - uuid: 88f4929957f5485f974bdc1bafde68d7 + name: '{#ENT_NAME}: Hardware serial number' + type: DEPENDENT + key: 'system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: system.hw.serialnumber.walk + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 75ee6ab1f0c84946a4f4d6e87007ec25 + expression: 'last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#1)<>last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#2) and length(last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]))>0' + name: 'Cisco IOS: {#ENT_NAME}: Device has been replaced' + event_name: 'Cisco IOS: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + master_item: + key: system.hw.serialnumber.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#ENT_CLASS}' + - 1.3.6.1.2.1.47.1.1.1.1.5 + - '0' + - '{#ENT_NAME}' + - 1.3.6.1.2.1.47.1.1.1.1.7 + - '0' + - '{#ENT_SN}' + - 1.3.6.1.2.1.47.1.1.1.1.11 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0906581023f54a0b95102288e8ed4714 + name: 'FAN Discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + description: 'The table of fan status maintained by the environmental monitor.' + item_prototypes: + - uuid: b1e82af988c14dce81fcbd549fe4ece6 + name: '{#SENSOR_INFO}: Fan status' + type: DEPENDENT + key: 'sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: 'MIB: CISCO-ENVMON-MIB' + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.4.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.fans.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 907502bbdeee45bbbfb84d43c2dc4f20 + expression: 'count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"shutdown\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4b2a4eb4cb2a43758048cc05d63f37a4 + expression: 'count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_WARN_STATUS:\"warning\"}")=1 or count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_WARN_STATUS:\"notFunctioning\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'Cisco IOS: {#SENSOR_INFO}: Fan is in critical state' + expression: 'count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.fan.status[ciscoEnvMonFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"shutdown\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensor.fans.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SENSOR_INFO}' + - 1.3.6.1.4.1.9.9.13.1.4.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4831ae0d8acc47e7bb9c3a4a94678472 + name: 'Memory Discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: | + Discovery of ciscoMemoryPoolTable, a table of memory pool monitoring entries. + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + item_prototypes: + - uuid: e9876af72ead4cc7814f8c54801de7ee + name: '{#SNMPVALUE}: Free memory' + type: DEPENDENT + key: 'vm.memory.free[ciscoMemoryPoolFree.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Indicates the number of bytes from the memory pool that are currently unused on the managed device. Note that the sum of ciscoMemoryPoolUsed and ciscoMemoryPoolFree is the total amount of memory in the pool + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.48.1.1.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: vm.memory.walk + tags: + - tag: component + value: memory + - uuid: 260d3d59256040fd808d5d4c6a549d07 + name: '{#SNMPVALUE}: Used memory' + type: DEPENDENT + key: 'vm.memory.used[ciscoMemoryPoolUsed.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: CISCO-MEMORY-POOL-MIB + Indicates the number of bytes from the memory pool that are currently in use by applications on the managed device. + Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.48.1.1.1.5.{#SNMPINDEX}' + - '0' + master_item: + key: vm.memory.walk + tags: + - tag: component + value: memory + - uuid: fb17d61634254c108d98ea28f5c5fb54 + name: '{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[vm.memory.util.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[ciscoMemoryPoolUsed.{#SNMPINDEX}])/(last(//vm.memory.free[ciscoMemoryPoolFree.{#SNMPINDEX}])+last(//vm.memory.used[ciscoMemoryPoolUsed.{#SNMPINDEX}]))*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 0f8d70ef5e704483a49d7b635e74dfc6 + expression: 'min(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/vm.memory.util[vm.memory.util.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Cisco IOS: {#SNMPVALUE}: High memory utilization' + event_name: 'Cisco IOS: {#SNMPVALUE}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: bf9a1faae91243b18133486b0421314b + name: '{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + key: 'vm.memory.util[vm.memory.util.{#SNMPINDEX}]' + master_item: + key: vm.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.9.9.48.1.1.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 328da4bee6ea49aa8809cdbb74744263 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: db98684d85c644f28190544d534c1b09 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a2c7793712e549cbad6e37da30754b58 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a77450c8292a483b86e72156af6e7ec7 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 33e86cf0c2374d0d932a8e3c9b6ebf1a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6960110871dd40f89f344ab90cdb03f9 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fe427d3bbef7420880906cc52c07c706 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c03404b9c68749b3bef5de34a8815cce + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ec072a91a34244d5ba434f592e9cb72d + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c99f0efcc30749e79cce0efe2fdd574f + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 6dec04a0c0fc453ebc103e28daea731d + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 60809b6c94d74e34b5f29525d77c75b5 + expression: | + change(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 21d475be7fa24ba2b946e4ec31371df5 + expression: | + (avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 5a2bc4c9bf344948a52ce256daa1258e + expression: | + min(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: fc6dd0ab86e7496d9b43103c13ba6a65 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 09264b1af69a4a4595ba2e4539106d6f + name: 'PSU Discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'The table of power supply status maintained by the environmental monitor card.' + item_prototypes: + - uuid: 86973dc8030e463fb51b075e161ae8a3 + name: '{#SENSOR_INFO}: Power supply status' + type: DEPENDENT + key: 'sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: 'MIB: CISCO-ENVMON-MIB' + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.5.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.psu.walk + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 7c5269ac98e847f28da8d3d97e52a28e + expression: 'count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"shutdown\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 616059e289694181aea6a076ecb093c1 + expression: 'count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_WARN_STATUS:\"warning\"}")=1 or count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_WARN_STATUS:\"notFunctioning\"}")=1' + name: 'Cisco IOS: {#SENSOR_INFO}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Cisco IOS: {#SENSOR_INFO}: Power supply is in critical state' + expression: 'count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"critical\"}")=1 or count(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.psu.status[ciscoEnvMonSupplyState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"shutdown\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensor.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SENSOR_INFO}' + - 1.3.6.1.4.1.9.9.13.1.5.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: eb482b3a03b74dc494632be0728f953b + name: 'Temperature Discovery' + type: DEPENDENT + key: temperature.discovery + delay: '0' + description: | + Discovery of ciscoEnvMonTemperatureTable (ciscoEnvMonTemperatureDescr), a table of ambient temperature status + maintained by the environmental monitor. + item_prototypes: + - uuid: 14f46d8210164b6596dc6bf0c343db3b + name: '{#SNMPVALUE}: Temperature status' + type: DEPENDENT + key: 'sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: CISCO-ENVMON-MIB + The current state of the test point being instrumented. + valuemap: + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.3.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.temp.walk + tags: + - tag: component + value: temperature + - uuid: 7c68ab13b881467e863b28776c0da571 + name: '{#SNMPVALUE}: Temperature' + type: DEPENDENT + key: 'sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: CISCO-ENVMON-MIB + The current measurement of the test point being instrumented. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.9.9.13.1.3.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 67fad9e835f9466ab368bbdad6544e7e + expression: 'avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Cisco IOS: {#SNMPVALUE}: Temperature is too low' + event_name: 'Cisco IOS: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + trigger_prototypes: + - uuid: f138f708723a4ca49b21cb992798da7f + expression: | + avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"} + or + (avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{#SNMP.TEMP.THRESHOLD} and {#SNMP.TEMP.THRESHOLD}>0) + or + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_CRIT_STATUS} + or + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_DISASTER_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3 + and + (avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{#SNMP.TEMP.THRESHOLD}-3 or {#SNMP.TEMP.THRESHOLD}<=0) + name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: | + This trigger uses temperature sensor values as well as temperature sensor status if available. + It fires either above the user-configurable {$TEMP_CRIT} macro, or above the vendor-defined threshold + reported by the device itself (`ciscoEnvMonTemperatureThreshold`). A device-reported value of 0 means + the device does not report a threshold for this test point, so that check is skipped. + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 281f7afca6ed4d3bb866430ec89e862e + expression: | + avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"} + or + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_WARN_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco IOS: {#SNMPVALUE}: Temperature is above critical threshold' + expression: | + avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"} + or + (avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)>{#SNMP.TEMP.THRESHOLD} and {#SNMP.TEMP.THRESHOLD}>0) + or + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_CRIT_STATUS} + or + last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}])={$TEMP_DISASTER_STATUS} + recovery_expression: | + avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3 + and + (avg(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}],5m)<{#SNMP.TEMP.THRESHOLD}-3 or {#SNMP.TEMP.THRESHOLD}<=0) + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.9.9.13.1.3.1.2 + - '0' + - '{#SNMP.TEMP.THRESHOLD}' + - 1.3.6.1.4.1.9.9.13.1.3.1.4 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: cisco + - tag: target + value: cisco-ios + - tag: target + value: cisco-ios-12.0-12.2 + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS:"critical"}' + value: '3' + - macro: '{$FAN_CRIT_STATUS:"shutdown"}' + value: '4' + - macro: '{$FAN_WARN_STATUS:"notFunctioning"}' + value: '6' + - macro: '{$FAN_WARN_STATUS:"warning"}' + value: '2' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$PSU_CRIT_STATUS:"critical"}' + value: '3' + - macro: '{$PSU_CRIT_STATUS:"shutdown"}' + value: '4' + - macro: '{$PSU_WARN_STATUS:"notFunctioning"}' + value: '6' + - macro: '{$PSU_WARN_STATUS:"warning"}' + value: '2' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_CRIT_STATUS}' + value: '3' + - macro: '{$TEMP_DISASTER_STATUS}' + value: '4' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$TEMP_WARN_STATUS}' + value: '2' + dashboards: + - uuid: 19aa552abf004e729044a7af05a5544a + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: d811f4c78e8246f6a3ed1e903ade574d + name: 'CISCO-ENVMON-MIB::CiscoEnvMonState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: critical + - value: '4' + newvalue: shutdown + - value: '5' + newvalue: notPresent + - value: '6' + newvalue: notFunctioning + - uuid: b4d11dd4e18b4958a17b5da31d101e08 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 475ca8ba5faf4ddca62bd41be9b3d410 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 5470fefd50c64782ac60e3a2aa8b3d3c + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 91d7e7e2bd4d48d7aecb9f9b4654185f + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 806f54999d064eb68a3f46a0d84ee4df + expression: '(last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Cisco IOS: Host has been restarted' + event_name: 'Cisco IOS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Cisco IOS: No SNMP data collection' + expression: 'max(/Cisco IOS versions 12.0_3_T-12.2_3.5 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Cisco_Meraki_dashboard_by_HTTP.yaml b/Cisco_Meraki_dashboard_by_HTTP.yaml new file mode 100644 index 0000000..c3572f1 --- /dev/null +++ b/Cisco_Meraki_dashboard_by_HTTP.yaml @@ -0,0 +1,409 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: 2fca6b60914b4fa98132b1a7885ab014 + template: 'Cisco Meraki dashboard by HTTP' + name: 'Cisco Meraki dashboard by HTTP' + description: | + Template for monitoring Cisco Meraki dashboard https://meraki.cisco.com/products/meraki-dashboard/ + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Applications + - name: 'Templates/Network devices' + items: + - uuid: d1a5f3c79a604bae98c314d2aed64ff4 + name: 'Get data' + type: SCRIPT + key: meraki.get.data + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + var tls = new CTlsConfig(params.tls_verify); + + var r_match = '{$MERAKI.ORGANIZATION.NAME.MATCHES}'; + var r_not_match = '{$MERAKI.ORGANIZATION.NAME.NOT_MATCHES}'; + + var request = new HttpRequest(tls.options); + + request.addHeader('X-Cisco-Meraki-API-Key:' + params.token); + request.addHeader('User-Agent: ZabbixServer/1.2 Zabbix'); + + var response, + error_msg = '', + organizations = [], + devices = []; + + function hasHeader(headers, name) { + if (typeof headers !== 'object' || headers === null) { + return false; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return true; + } + } + + return false; + } + + function getHttpData(url) { + var startTime = new Date().getTime(); + var maxWait = 1 * 60 * 60 * 1000; + var waitFor = 1000; + + while (true) { + response = request.get(url); + Zabbix.log(4, '[ Meraki API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + var status = request.getStatus(); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Meraki API. Check debug log for more information.'; + } + } + + if (status === 429 && response && response.errors && Array.isArray(response.errors) && + response.errors.indexOf("API rate limit exceeded for organization") !== -1) { + var now = new Date().getTime(); + var headers = request.getHeaders(false); + + if (hasHeader(headers, 'Retry-After')) { + var retryAfter = headers['Retry-After']; + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. Retrying after ' + retryAfter + ' seconds.'); + waitFor = parseInt(retryAfter) * 1000; + } + else { + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. No Retry-After header. Retrying after 1 second.'); + } + if (now - startTime + waitFor > maxWait) { + throw 'Failed to receive data: API rate limit exceeded and retry timeout reached.'; + } + Zabbix.sleep(waitFor); + continue; + } + + if (status !== 200) { + if (response.errors) { + throw response.errors.join(', '); + } + else { + throw 'Failed to receive data: invalid response status code.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + } + }; + + try { + if (params.token === '{' + '$MERAKI.TOKEN}') { + throw 'Please change {' + '$MERAKI.TOKEN} macro to the proper value.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + tls.checkURL(params.url); + + if (typeof params.httpproxy !== 'undefined' && params.httpproxy !== '') { + request.setProxy(params.httpproxy); + } + + organizations = getHttpData(params.url + 'organizations'); + + organizations = organizations.filter(function (x) { + return new RegExp(r_match).test(x.name) & !new RegExp(r_not_match).test(x.name); + }); + + if (Array.isArray(organizations) && organizations.length > 0) { + for (i in organizations) { + if ('id' in organizations[i] && 'name' in organizations[i]) { + try { + organization_devices = getHttpData(params.url + 'organizations/' + encodeURIComponent(organizations[i].id) + '/devices/availabilities'); + + if (Array.isArray(organization_devices) && organization_devices.length > 0) { + for (j in organization_devices) { + organization_devices[j].organizationId = organizations[i].id; + organization_devices[j].organizationName = organizations[i].name; + if (!organization_devices[j].name) { + organization_devices[j].name = organization_devices[j].serial; + } + devices.push(organization_devices[j]); + } + } + } catch (error) { + error_msg += organizations[i].name + " organization's devices retrieval error: " + error + '\n'; + } + } else { + error_msg += 'There is no ID or organization name in the API response.'; + } + } + } + } catch (error) { + error_msg += 'Organizations data retrieval error: ' + error; + } + + return JSON.stringify({ + organizations: organizations, + devices: devices, + error: error_msg.toString() + }); + description: 'Item for gathering all the organizations and devices from Meraki API.' + timeout: '{$MERAKI.DATA.TIMEOUT}' + parameters: + - name: httpproxy + value: '{$MERAKI.HTTP_PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco Meraki dashboard"}' + - name: token + value: '{$MERAKI.TOKEN}' + - name: url + value: '{$MERAKI.API.URL}' + tags: + - tag: component + value: raw + - uuid: 6fdd764d820341e7bd2a24f42802c58a + name: 'Data item errors' + type: DEPENDENT + key: meraki.get.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the data item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: meraki.get.data + tags: + - tag: component + value: error + triggers: + - uuid: 2bf9355f548e4e9b9b8581fb43f175fe + expression: 'length(last(/Cisco Meraki dashboard by HTTP/meraki.get.data.errors))>0' + name: 'Meraki: There are errors in ''Get data'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 6488b49e692e4fe8b6a1c57f56b6ba7d + name: 'Devices discovery' + type: DEPENDENT + key: meraki.devices.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$MERAKI.DEVICE.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$MERAKI.DEVICE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STATUS}' + value: '{$MERAKI.DEVICE.STATUS.MATCHES}' + formulaid: C + - macro: '{#STATUS}' + value: '{$MERAKI.DEVICE.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + host_prototypes: + - uuid: 86d599f384d94b368508a170911213ec + host: '{#SERIAL}' + name: '[{#SERIAL}] [{#PRODUCT_TYPE}] {#NAME}' + group_links: + - group: + name: Applications + templates: + - name: 'Cisco Meraki device by HTTP' + macros: + - macro: '{$MAC}' + value: '{#MAC}' + description: 'MAC address of the device.' + - macro: '{$NETWORK.ID}' + value: '{#NETWORK.ID}' + description: 'Network ID of the device.' + - macro: '{$ORGANIZATION_ID}' + value: '{#ORGANIZATION_ID}' + description: 'Organization ID of the device.' + - macro: '{$SERIAL}' + value: '{#SERIAL}' + description: 'Serial number of the device.' + tags: + - tag: organization + value: '{#ORGANIZATION_NAME}' + - tag: serial-number + value: '{#SERIAL}' + - tag: type + value: '{#PRODUCT_TYPE}' + master_item: + key: meraki.get.data + lld_macro_paths: + - lld_macro: '{#MAC}' + path: $.mac + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#NETWORK.ID}' + path: $.network.id + - lld_macro: '{#ORGANIZATION_ID}' + path: $.organizationId + - lld_macro: '{#ORGANIZATION_NAME}' + path: $.organizationName + - lld_macro: '{#PRODUCT_TYPE}' + path: $.productType + - lld_macro: '{#SERIAL}' + path: $.serial + - lld_macro: '{#STATUS}' + path: $.status + preprocessing: + - type: JSONPATH + parameters: + - $.devices + - uuid: 30f38d19659646009ca436d48f9598b0 + name: 'Organizations discovery' + type: DEPENDENT + key: meraki.organization.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$MERAKI.ORGANIZATION.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$MERAKI.ORGANIZATION.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + host_prototypes: + - uuid: 59cd2e995b814d7e9f8411dbc7420c76 + host: 'meraki-organization-{#ID}' + name: '[{#REGION}] {#NAME}' + group_links: + - group: + name: Applications + group_prototypes: + - name: '{#REGION}' + templates: + - name: 'Cisco Meraki organization by HTTP' + macros: + - macro: '{$ID}' + value: '{#ID}' + description: 'ID of the organization.' + master_item: + key: meraki.get.data + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#REGION}' + path: $.cloud.region.name + - lld_macro: '{#URL}' + path: $.url + preprocessing: + - type: JSONPATH + parameters: + - $.organizations + tags: + - tag: class + value: network + - tag: target + value: cisco-meraki-dashboard + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Cisco Meraki dashboard", e.g. {$HTTP.TLS.VERIFY:"Cisco Meraki dashboard"}.' + - macro: '{$MERAKI.API.URL}' + value: api.meraki.com/api/v1 + description: 'Cisco Meraki dashboard API URL, e.g., api.meraki.com/api/v1' + - macro: '{$MERAKI.DATA.TIMEOUT}' + value: '60' + description: 'Response timeout for an API.' + - macro: '{$MERAKI.DEVICE.NAME.MATCHES}' + value: .+ + description: 'This macro is used in devices discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.DEVICE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in devices discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.DEVICE.STATUS.MATCHES}' + value: '.*' + description: 'This macro is used in devices discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.DEVICE.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in devices discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.HTTP_PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format [protocol://][username[:password]@]proxy.example.com[:port]. See documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + - macro: '{$MERAKI.ORGANIZATION.NAME.MATCHES}' + value: .+ + description: 'This macro is used in organizations discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.ORGANIZATION.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in organizations discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.TOKEN}' + type: SECRET_TEXT + description: 'Cisco Meraki dashboard API token.' diff --git a/Cisco_Meraki_device_by_HTTP.yaml b/Cisco_Meraki_device_by_HTTP.yaml new file mode 100644 index 0000000..d0dc831 --- /dev/null +++ b/Cisco_Meraki_device_by_HTTP.yaml @@ -0,0 +1,1176 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 2cae7d2eeca04e6fa7419759ac9ad814 + template: 'Cisco Meraki device by HTTP' + name: 'Cisco Meraki device by HTTP' + description: 'Generated by official Zabbix template tool "Templator"' + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Applications + - name: 'Templates/Network devices' + items: + - uuid: a45187d4bd154072bc75d76df09708d9 + name: 'Device address' + type: DEPENDENT + key: meraki.device.address + delay: '0' + value_type: TEXT + trends: '0' + description: | + Device location address + Network: {$NETWORK.ID} + inventory_link: LOCATION + preprocessing: + - type: JSONPATH + parameters: + - $.deviceInfo.address + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: system + - uuid: 92b275569cff4013b545b5c251a318ab + name: Firmware + type: DEPENDENT + key: meraki.device.firmware + delay: '0' + value_type: CHAR + trends: '0' + description: | + Device firmware + Network: {$NETWORK.ID} + inventory_link: SOFTWARE + preprocessing: + - type: JSONPATH + parameters: + - $.deviceInfo.firmware + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: system + - uuid: 0c97a8fcad764133b4e7c35d0134665c + name: 'Get status' + type: SCRIPT + key: meraki.device.get.status + delay: '{$MERAKI.GET.STATUS.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + var tls = new CTlsConfig(params.tls_verify); + + var request = new HttpRequest(tls.options); + + request.addHeader('X-Cisco-Meraki-API-Key:' + params.token); + request.addHeader('User-Agent: ZabbixServer/1.2 Zabbix'); + + function hasHeader(headers, name) { + if (typeof headers !== 'object' || headers === null) { + return false; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return true; + } + } + + return false; + } + + function parseTime(timeString) { + var match = timeString.match(/^(\d+)([h|m|s])$/); + if (match) { + var value = parseInt(match[1], 10); + var unit = match[2]; + + switch (unit) { + case 'h': + return value * 3600; + case 'm': + return value * 60; + case 's': + return value; + default: + return 0; + } + } + + return 0; + }; + + var response, + error_msg = '', + response = [], + timespan; + + function getHttpData(url) { + var startTime = new Date().getTime(); + var maxWait = parseInt(timespan, 10) * 1000; + var waitFor = 1000; + + while (true) { + response = request.get(url); + Zabbix.log(4, '[ Meraki API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + var status = request.getStatus(); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Meraki API. Check debug log for more information.'; + } + } + + if (status === 429 && response && response.errors && Array.isArray(response.errors) && + response.errors.indexOf("API rate limit exceeded for organization") !== -1) { + var now = new Date().getTime(); + var headers = request.getHeaders(false); + + if (hasHeader(headers, 'Retry-After')) { + var retryAfter = headers['Retry-After']; + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. Retrying after ' + retryAfter + ' seconds.'); + waitFor = parseInt(retryAfter) * 1000; + } + else { + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. No Retry-After header. Retrying after 1 second.'); + } + if (now - startTime + waitFor > maxWait) { + throw 'Failed to receive data: API rate limit exceeded and retry timeout reached.'; + } + Zabbix.sleep(waitFor); + continue; + } + + if (status !== 200) { + if (response.errors) { + throw response.errors.join(', '); + } + else { + throw 'Failed to receive data: invalid response status code.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + } + }; + + try { + + if (params.token === '{' + '$MERAKI.TOKEN}') { + throw 'Please change {' + '$MERAKI.TOKEN} macro to the proper value.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + tls.checkURL(params.url); + + if (typeof params.httpproxy !== 'undefined' && params.httpproxy !== '') { + request.setProxy(params.httpproxy); + } + + timespan = parseTime('{$MERAKI.GET.STATUS.INTERVAL}'); + + response = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/devices/availabilities?serials[]=' + encodeURIComponent(params.serial)); + if (Array.isArray(response) & response.length > 0) { + response = response[0] + } + + } catch (error) { + error_msg = error; + }; + + return JSON.stringify({ + 'data': response, + 'error': error_msg.toString() + }); + description: 'Item for gathering device status from Meraki API.' + timeout: '{$MERAKI.DATA.TIMEOUT}' + parameters: + - name: httpproxy + value: '{$MERAKI.HTTP_PROXY}' + - name: organizationId + value: '{$ORGANIZATION_ID}' + - name: serial + value: '{$SERIAL}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco Meraki device"}' + - name: token + value: '{$MERAKI.TOKEN}' + - name: url + value: '{$MERAKI.API.URL}' + tags: + - tag: component + value: raw + - uuid: b1873bc0a185452dbede07373e0e4a93 + name: 'Device status item errors' + type: DEPENDENT + key: meraki.device.get.status.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of the device status item.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: meraki.device.get.status + tags: + - tag: component + value: error + triggers: + - uuid: 0f629d0aef6b456fb3d5b1a20ece54ac + expression: 'length(last(/Cisco Meraki device by HTTP/meraki.device.get.status.errors))>0' + name: 'Meraki: There are errors in ''Get status'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 878cbc22039b4fab9949c1997041b1a8 + name: 'Device latitude' + type: DEPENDENT + key: meraki.device.latitude + delay: '0' + value_type: CHAR + trends: '0' + description: | + Latitude of the device location + Network: {$NETWORK.ID} + inventory_link: LOCATION_LAT + preprocessing: + - type: JSONPATH + parameters: + - $.deviceInfo.lat + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: system + - uuid: de69a544bf9047da9f47b0b8f6c61bf2 + name: 'Device longitude' + type: DEPENDENT + key: meraki.device.longitude + delay: '0' + value_type: CHAR + trends: '0' + description: | + Longitude of the device location + Network: {$NETWORK.ID} + inventory_link: LOCATION_LON + preprocessing: + - type: JSONPATH + parameters: + - $.deviceInfo.lng + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: system + - uuid: 3867fdab6af941ab9958b05b197419df + name: 'MAC address' + type: DEPENDENT + key: meraki.device.mac.address + delay: '0' + value_type: CHAR + trends: '0' + description: | + Device MAC address + Network: {$NETWORK.ID} + inventory_link: MACADDRESS_A + preprocessing: + - type: JSONPATH + parameters: + - $.deviceInfo.mac + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: network + - uuid: e66780872dba46dc9265c4dad022a799 + name: 'Device model' + type: DEPENDENT + key: meraki.device.model + delay: '0' + value_type: CHAR + trends: '0' + description: | + Device model + Network: {$NETWORK.ID} + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - $.deviceInfo.model + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: system + - uuid: 514db363389741619b3103fd57ec0675 + name: 'Device notes' + type: DEPENDENT + key: meraki.device.notes + delay: '0' + value_type: TEXT + trends: '0' + description: | + Notes about the device + Network: {$NETWORK.ID} + inventory_link: NOTES + preprocessing: + - type: JSONPATH + parameters: + - $.deviceInfo.notes + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: system + - uuid: 9c36f19a2d72418dbef579142722372f + name: 'Device OS' + type: DEPENDENT + key: meraki.device.os + delay: '0' + value_type: CHAR + trends: '0' + description: | + Device operation system + Network: {$NETWORK.ID} + inventory_link: OS + preprocessing: + - type: JSONPATH + parameters: + - '$.deviceInfo.details[0].value' + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: system + - uuid: 2280b9212c474d99835ec1334ff780eb + name: 'Public IP' + type: DEPENDENT + key: meraki.device.public.ip + delay: '0' + value_type: CHAR + trends: '0' + description: | + Device public IP + Network: {$NETWORK.ID} + preprocessing: + - type: JSONPATH + parameters: + - $.deviceInfo.ip + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: network + - uuid: fa98beea4eca47859cc53a7d6bcf2008 + name: 'Serial number' + type: DEPENDENT + key: meraki.device.serialnumber + delay: '0' + value_type: CHAR + trends: '0' + description: | + Device serial number + Network: {$NETWORK.ID} + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - $.deviceInfo.serial + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: system + - uuid: 324b748bfe2e4383927176046e246acb + name: Status + type: DEPENDENT + key: meraki.device.status + delay: '0' + description: | + Device operational status + Network: {$NETWORK.ID} + valuemap: + name: 'Device status' + preprocessing: + - type: JSONPATH + parameters: + - $.data.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + switch (value) { + case 'offline': + return 0 + case 'online': + return 1 + case 'dormant': + return 2 + case 'alerting': + return 3 + default: + return 10 + } + master_item: + key: meraki.device.get.status + tags: + - tag: component + value: health + triggers: + - uuid: 00583ac9e9824f7db12a1685421f0be9 + expression: 'last(/Cisco Meraki device by HTTP/meraki.device.status)=3' + name: 'Meraki: Status is alerting' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 00583ac9e9824f7db22a1685421f0be9 + expression: 'last(/Cisco Meraki device by HTTP/meraki.device.status)=0' + name: 'Meraki: Status is offline' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: e4963b68cdde453f91767ff9e3a31d16 + name: 'Get device data' + type: SCRIPT + key: meraki.get.device + delay: '{$MERAKI.UPLINK.LL.TIMESPAN}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + var tls = new CTlsConfig(params.tls_verify); + + var request = new HttpRequest(tls.options); + + request.addHeader('X-Cisco-Meraki-API-Key:' + params.token); + request.addHeader('User-Agent: ZabbixServer/1.2 Zabbix'); + + var response, + error_msg = '', + device = [], + uplinksLL = [], + timespan; + + function isFloat(n) { + n = parseFloat(n); + return Number(n) === n && n % 1 !== 0; + }; + + function checkNumber(string) { + if (typeof string !== "string" || isNaN(string) || isFloat(string)) { + throw 'Incorrect "timespan" parameter given: ' + string + ' Must be an unsigned number'; + } + return string; + }; + + function hasHeader(headers, name) { + if (typeof headers !== 'object' || headers === null) { + return false; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return true; + } + } + + return false; + } + + function getHttpData(url) { + var startTime = new Date().getTime(); + var maxWait = (parseInt(timespan, 10) - 10) * 1000; + var waitFor = 1000; + + while (true) { + response = request.get(url); + Zabbix.log(4, '[ Meraki API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + var status = request.getStatus(); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Meraki API. Check debug log for more information.'; + } + } + + if (status === 429 && response && response.errors && Array.isArray(response.errors) && + response.errors.indexOf("API rate limit exceeded for organization") !== -1) { + var now = new Date().getTime(); + var headers = request.getHeaders(false); + + if (hasHeader(headers, 'Retry-After')) { + var retryAfter = headers['Retry-After']; + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. Retrying after ' + retryAfter + ' seconds.'); + waitFor = parseInt(retryAfter) * 1000; + } + else { + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. No Retry-After header. Retrying after 1 second.'); + } + if (now - startTime + waitFor > maxWait) { + throw 'Failed to receive data: API rate limit exceeded and retry timeout reached.'; + } + Zabbix.sleep(waitFor); + continue; + } + + if (status !== 200) { + if (response.errors) { + throw response.errors.join(', '); + } + else { + throw 'Failed to receive data: invalid response status code.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + } + }; + + try { + + if (params.token === '{' + '$MERAKI.TOKEN}') { + throw 'Please change {' + '$MERAKI.TOKEN} macro to the proper value.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + tls.checkURL(params.url); + + if (typeof params.httpproxy !== 'undefined' && params.httpproxy !== '') { + request.setProxy(params.httpproxy); + } + + timespan = checkNumber('{$MERAKI.UPLINK.LL.TIMESPAN}'); + + if (timespan > 86400 || timespan < 1) { + throw 'Incorrect "timespan" parameter given: ' + timespan + ' Must be between 1 and 86400 seconds.'; + } + + uplinksLL = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/devices/uplinksLossAndLatency?timespan=' + timespan); + + if (uplinksLL.length > 0) { + uplinksLL = uplinksLL.filter(function (device) { + return device.serial == params.serial; + }); + } + + } catch (error) { + error_msg = error; + }; + + return JSON.stringify({ + 'uplinksLL': uplinksLL, + 'error': error_msg.toString() + }); + description: 'Item for gathering device data from Meraki API.' + timeout: '{$MERAKI.DATA.TIMEOUT}' + parameters: + - name: httpproxy + value: '{$MERAKI.HTTP_PROXY}' + - name: organizationId + value: '{$ORGANIZATION_ID}' + - name: serial + value: '{$SERIAL}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco Meraki device"}' + - name: token + value: '{$MERAKI.TOKEN}' + - name: url + value: '{$MERAKI.API.URL}' + tags: + - tag: component + value: raw + - uuid: b673516073354c9aaaf60cf3ce2e2fa6 + name: 'Device data item errors' + type: DEPENDENT + key: meraki.get.device.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of the device item.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: meraki.get.device + tags: + - tag: component + value: error + triggers: + - uuid: c8f8af6c92f14dc0bcdf426b124c7344 + expression: 'length(last(/Cisco Meraki device by HTTP/meraki.get.device.errors))>0' + name: 'Meraki: There are errors in ''Get device data'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: ae461bc520a840d9b0f0847011f52bce + name: 'Get inventory data' + type: SCRIPT + key: meraki.get.inventory + delay: '{$MERAKI.GET.INVENTORY.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + var tls = new CTlsConfig(params.tls_verify); + + var request = new HttpRequest(tls.options); + + request.addHeader('X-Cisco-Meraki-API-Key:' + params.token); + request.addHeader('User-Agent: ZabbixServer/1.2 Zabbix'); + + function hasHeader(headers, name) { + if (typeof headers !== 'object' || headers === null) { + return false; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return true; + } + } + + return false; + } + + function parseTime(timeString) { + var match = timeString.match(/^(\d+)([h|m|s])$/); + if (match) { + var value = parseInt(match[1], 10); + var unit = match[2]; + + switch (unit) { + case 'h': + return value * 3600; + case 'm': + return value * 60; + case 's': + return value; + default: + return 0; + } + } + + return 0; + }; + + var response, + error_msg = '', + deviceInfo = [], + timespan; + + function getHttpData(url) { + var startTime = new Date().getTime(); + var maxWait = parseInt(timespan, 10) * 1000; + var waitFor = 1000; + + while (true) { + response = request.get(url); + Zabbix.log(4, '[ Meraki API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + var status = request.getStatus(); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Meraki API. Check debug log for more information.'; + } + } + + if (status === 429 && response && response.errors && Array.isArray(response.errors) && + response.errors.indexOf("API rate limit exceeded for organization") !== -1) { + var now = new Date().getTime(); + var headers = request.getHeaders(false); + + if (hasHeader(headers, 'Retry-After')) { + var retryAfter = headers['Retry-After']; + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. Retrying after ' + retryAfter + ' seconds.'); + waitFor = parseInt(retryAfter) * 1000; + } + else { + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. No Retry-After header. Retrying after 1 second.'); + } + if (now - startTime + waitFor > maxWait) { + throw 'Failed to receive data: API rate limit exceeded and retry timeout reached.'; + } + Zabbix.sleep(waitFor); + continue; + } + + if (status !== 200) { + if (response.errors) { + throw response.errors.join(', '); + } + else { + throw 'Failed to receive data: invalid response status code.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + } + }; + + try { + + if (params.token === '{' + '$MERAKI.TOKEN}') { + throw 'Please change {' + '$MERAKI.TOKEN} macro to the proper value.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + tls.checkURL(params.url); + + if (typeof params.httpproxy !== 'undefined' && params.httpproxy !== '') { + request.setProxy(params.httpproxy); + } + + timespan = parseTime('{$MERAKI.GET.INVENTORY.INTERVAL}'); + + deviceInfo = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/devices?serial=' + encodeURIComponent(params.serial)); + deviceInfo = (deviceInfo && Array.isArray(deviceInfo) && deviceInfo.length > 0) ? deviceInfo[0] : []; + deviceInfo['ip'] = (typeof deviceInfo.lanIp !== 'undefined') ? deviceInfo['lanIp'] : deviceInfo['wan1Ip']; + + } catch (error) { + error_msg = error; + }; + + return JSON.stringify({ + 'deviceInfo': deviceInfo, + 'error': error_msg.toString() + }); + description: 'Item for gathering device inventory data from Meraki API.' + timeout: '{$MERAKI.DATA.TIMEOUT}' + parameters: + - name: httpproxy + value: '{$MERAKI.HTTP_PROXY}' + - name: organizationId + value: '{$ORGANIZATION_ID}' + - name: serial + value: '{$SERIAL}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco Meraki device"}' + - name: token + value: '{$MERAKI.TOKEN}' + - name: url + value: '{$MERAKI.API.URL}' + tags: + - tag: component + value: raw + - uuid: eb8c1772e6b940998b5eaa9fc95f92a5 + name: 'Device inventory data item errors' + type: DEPENDENT + key: meraki.get.inventory.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of the inventory data item.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: meraki.get.inventory + tags: + - tag: component + value: error + triggers: + - uuid: af0fa91e3e03415683c3fa2761ad7328 + expression: 'length(last(/Cisco Meraki device by HTTP/meraki.get.inventory.errors))>0' + name: 'Meraki: There are errors in ''Get inventory data'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 9c7e5d2ccad7416b8d58237be4218154 + name: 'Uplinks loss and quality discovery' + type: DEPENDENT + key: meraki.device.uplinks.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IP}' + value: '{$MERAKI.DEVICE.LOSS.LATENCY.IP.MATCHES}' + formulaid: A + - macro: '{#IP}' + value: '{$MERAKI.DEVICE.LOSS.LATENCY.IP.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#UPLINK}' + value: '{$MERAKI.DEVICE.UPLINK.MATCHES}' + formulaid: C + - macro: '{#UPLINK}' + value: '{$MERAKI.DEVICE.UPLINK.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: abf642b1bb944d16bebf90dcf58dbd86 + name: 'Uplink [{#IP}]: [{#UPLINK}]: Latency' + type: DEPENDENT + key: 'meraki.device.latency[{#IP},{#UPLINK}]' + delay: '0' + value_type: FLOAT + units: s + description: | + Latency of the device uplink. + Network: {#NETWORK.ID}. + Device serial: {#SERIAL}. + preprocessing: + - type: JSONPATH + parameters: + - '$.uplinksLL[?(@.ip == ''{#IP}'' && @.uplink== ''{#UPLINK}'')].timeSeries.[0].latencyMs.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '-1000' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: meraki.get.device + tags: + - tag: component + value: network + - tag: ip + value: '{#IP}' + - tag: network + value: '{#NETWORK.ID}' + - tag: serial-number + value: '{#SERIAL}' + - tag: uplink + value: '{#UPLINK}' + trigger_prototypes: + - uuid: b559ad94b15848089d89e85e4d9db7ff + expression: 'min(/Cisco Meraki device by HTTP/meraki.device.latency[{#IP},{#UPLINK}],#3)>{$MERAKI.DEVICE.LATENCY}' + name: 'Meraki: Uplink [{#IP}]: [{#UPLINK}]: latency > {$MERAKI.DEVICE.LATENCY}' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: bded34f64113486ab0672210e5a8eb1d + name: 'Uplink [{#IP}]: [{#UPLINK}]: Loss, %' + type: DEPENDENT + key: 'meraki.device.loss.pct[{#IP},{#UPLINK}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Loss percent of the device uplink. + Network: {#NETWORK.ID}. + Device serial: {#SERIAL}. + preprocessing: + - type: JSONPATH + parameters: + - '$.uplinksLL[?(@.ip == ''{#IP}'' && @.uplink== ''{#UPLINK}'')].timeSeries.[0].lossPercent.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + master_item: + key: meraki.get.device + tags: + - tag: component + value: network + - tag: ip + value: '{#IP}' + - tag: network + value: '{#NETWORK.ID}' + - tag: serial-number + value: '{#SERIAL}' + - tag: uplink + value: '{#UPLINK}' + trigger_prototypes: + - uuid: 1309e71025614ce4bb4242e6e291ae48 + expression: 'min(/Cisco Meraki device by HTTP/meraki.device.loss.pct[{#IP},{#UPLINK}],#3)>{$MERAKI.DEVICE.LOSS}' + name: 'Meraki: Uplink [{#IP}]: [{#UPLINK}]: loss > {$MERAKI.DEVICE.LOSS}%' + priority: WARNING + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 4e9d84e08b32489c8c3a2cbbd4c6119a + name: 'Uplink [{#IP}]: [{#UPLINK}]: Latency' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cisco Meraki device by HTTP' + key: 'meraki.device.latency[{#IP},{#UPLINK}]' + - uuid: ebf262afc6d94d29b9831d418fb07edb + name: 'Uplink [{#IP}]: [{#UPLINK}]: Loss' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cisco Meraki device by HTTP' + key: 'meraki.device.loss.pct[{#IP},{#UPLINK}]' + master_item: + key: meraki.get.device + lld_macro_paths: + - lld_macro: '{#IP}' + path: $.ip + - lld_macro: '{#NETWORK.ID}' + path: $.networkId + - lld_macro: '{#SERIAL}' + path: $.serial + - lld_macro: '{#UPLINK}' + path: $.uplink + preprocessing: + - type: JSONPATH + parameters: + - $.uplinksLL + tags: + - tag: class + value: network + - tag: target + value: cisco-meraki-dashboard + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Cisco Meraki device", e.g. {$HTTP.TLS.VERIFY:"Cisco Meraki device"}.' + - macro: '{$MERAKI.API.URL}' + value: api.meraki.com/api/v1 + description: 'Cisco Meraki dashboard API URL, e.g., api.meraki.com/api/v1' + - macro: '{$MERAKI.DATA.TIMEOUT}' + value: '60' + description: 'Response timeout for an API.' + - macro: '{$MERAKI.DEVICE.LATENCY}' + value: '0.15' + description: 'Devices uplink latency threshold, in seconds.' + - macro: '{$MERAKI.DEVICE.LOSS}' + value: '15' + description: 'Devices uplink loss threshold, in percent.' + - macro: '{$MERAKI.DEVICE.LOSS.LATENCY.IP.MATCHES}' + value: '^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$' + description: 'This macro is used in loss and latency checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.DEVICE.LOSS.LATENCY.IP.NOT_MATCHES}' + value: ^null$ + description: 'This macro is used in loss and latency checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.DEVICE.UPLINK.MATCHES}' + value: '.*' + description: 'This macro is used in loss and latency checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.DEVICE.UPLINK.NOT_MATCHES}' + value: ^null$ + description: 'This macro is used in loss and latency checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.GET.INVENTORY.INTERVAL}' + value: 12h + description: 'The update interval for the script item that retrieves inventory data from API.' + - macro: '{$MERAKI.GET.STATUS.INTERVAL}' + value: '300' + description: 'Update interval for get status item.' + - macro: '{$MERAKI.HTTP_PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format [protocol://][username[:password]@]proxy.example.com[:port]. See documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + - macro: '{$MERAKI.TOKEN}' + type: SECRET_TEXT + description: 'Cisco Meraki dashboard API token.' + - macro: '{$MERAKI.UPLINK.LL.TIMESPAN}' + value: '180' + description: 'Timespan in seconds for getting device uplinks loss and quality stats. Used in the metric configuration and in the JavaScript API query. Must be between 1 and 86400 seconds.' + dashboards: + - uuid: 76c4525eacc64f268572fefd76accc2f + name: 'Meraki: General' + pages: + - name: 'Meraki: Uplinks' + widgets: + - type: graphprototype + name: Loss + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Meraki device by HTTP' + name: 'Uplink [{#IP}]: [{#UPLINK}]: Loss' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + name: Latency + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Meraki device by HTTP' + name: 'Uplink [{#IP}]: [{#UPLINK}]: Latency' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 24967dff65a048578eae18b2485907cb + name: 'Device status' + mappings: + - value: '0' + newvalue: offline + - value: '1' + newvalue: online + - value: '2' + newvalue: dormant + - value: '3' + newvalue: alerting + - value: '10' + newvalue: unknown diff --git a/Cisco_Meraki_organization_by_HTTP.yaml b/Cisco_Meraki_organization_by_HTTP.yaml new file mode 100644 index 0000000..445a485 --- /dev/null +++ b/Cisco_Meraki_organization_by_HTTP.yaml @@ -0,0 +1,3052 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 39e2f742d0b24ea489b7f61d27a5df1c + template: 'Cisco Meraki organization by HTTP' + name: 'Cisco Meraki organization by HTTP' + description: 'Generated by official Zabbix template tool "Templator"' + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + - name: 'Templates/Network devices' + items: + - uuid: 495f3a6047644dadadbbc676ba6900f9 + name: 'Account lockout attempts' + type: DEPENDENT + key: meraki.account.lockout.attempts + delay: '0' + description: 'Number of consecutive failed login attempts after which users'' accounts will be locked.' + preprocessing: + - type: JSONPATH + parameters: + - $.loginSecurity.accountLockoutAttempts + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.data + tags: + - tag: component + value: security + - uuid: 25f8f61ddf964f39b39cc38b23b017b9 + name: 'Get list of adaptive policy aggregate statistics' + type: SCRIPT + key: meraki.get.adaptive.policy + delay: 20m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + var tls = new CTlsConfig(params.tls_verify); + + var request = new HttpRequest(tls.options); + + request.addHeader('X-Cisco-Meraki-API-Key:' + params.token); + request.addHeader('User-Agent: ZabbixServer/1.2 Zabbix'); + + var response, + error_msg = '', + result = []; + + function getHttpData(url) { + var startTime = new Date().getTime(); + var maxWait = 10 * 60 * 1000; + + while (true) { + response = request.get(url); + Zabbix.log(4, '[ Meraki API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + var status = request.getStatus(); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Meraki API. Check debug log for more information.'; + } + } + + if (status === 429 && response && response.errors && Array.isArray(response.errors) && + response.errors.indexOf("API rate limit exceeded for organization") !== -1) { + var now = new Date().getTime(); + if (now - startTime + 1000 > maxWait) { + throw 'Failed to receive data: API rate limit exceeded and retry timeout reached.'; + } + Zabbix.sleep(1000); + continue; + } + + if (status !== 200) { + if (response.errors) { + throw response.errors.join(', '); + } else { + throw 'Failed to receive data: invalid response status code.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + } + }; + + try { + + if (params.token === '{' + '$MERAKI.TOKEN}') { + throw 'Please change {' + '$MERAKI.TOKEN} macro to the proper value.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + tls.checkURL(params.url); + + if (typeof params.httpproxy !== 'undefined' && params.httpproxy !== '') { + request.setProxy(params.httpproxy); + } + + result = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/adaptivePolicy/overview'); + + } catch (error) { + error_msg = error; + }; + + return JSON.stringify({ + 'data': result, + 'error': error_msg.toString() + }); + description: 'Item for gathering adaptive policy aggregate statistics for the organization.' + timeout: '{$MERAKI.DATA.TIMEOUT}' + parameters: + - name: httpproxy + value: '{$MERAKI.HTTP_PROXY}' + - name: organizationId + value: '{$ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco Meraki organization"}' + - name: token + value: '{$MERAKI.TOKEN}' + - name: url + value: '{$MERAKI.API.URL}' + tags: + - tag: component + value: raw + - uuid: fb9d953ca0d7446d9a8056ce9e716d92 + name: 'Adaptive policy item errors' + type: DEPENDENT + key: meraki.get.adaptive.policy.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the adaptive policy item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: meraki.get.adaptive.policy + tags: + - tag: component + value: error + triggers: + - uuid: 8312e99efbca4a4bbbba8858076186a9 + expression: 'length(last(/Cisco Meraki organization by HTTP/meraki.get.adaptive.policy.errors))>0' + name: 'Meraki: There are errors in ''Get adaptive policy'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: cf5733581c00445b9598ad23e48d34d8 + name: 'Configuration change log' + type: DEPENDENT + key: meraki.get.configuration.changelog + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for viewing the change log for your organization.' + preprocessing: + - type: JSONPATH + parameters: + - $.data + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 2h + master_item: + key: meraki.get.configuration.changes + tags: + - tag: component + value: log + triggers: + - uuid: 2fc56ad4baef4796a3ad7d097cad918f + expression: 'length(last(/Cisco Meraki organization by HTTP/meraki.get.configuration.changelog))>3' + name: 'Meraki: Configuration has been changed' + priority: WARNING + tags: + - tag: scope + value: security + - uuid: f2a65bce3adf4511a3f37ed4caa66b3d + name: 'Get list of configuration changes' + type: SCRIPT + key: meraki.get.configuration.changes + delay: '{$MERAKI.CONFIG.CHANGE.TIMESPAN}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + var tls = new CTlsConfig(params.tls_verify); + + var request = new HttpRequest(tls.options); + + request.addHeader('X-Cisco-Meraki-API-Key:' + params.token); + request.addHeader('User-Agent: ZabbixServer/1.2 Zabbix'); + + var response, + error_msg = '', + result = [], + timespan; + + function isFloat(n) { + n = parseFloat(n); + return Number(n) === n && n % 1 !== 0; + }; + + function checkNumber(string) { + if (typeof string !== "string" || isNaN(string) || isFloat(string)) { + throw 'Incorrect "timespan" parameter given: ' + string + ' Must be an unsigned number'; + } + return string; + }; + + function hasHeader(headers, name) { + if (typeof headers !== 'object' || headers === null) { + return false; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return true; + } + } + + return false; + } + + function getHttpData(url) { + var startTime = new Date().getTime(); + var maxWait = parseInt(timespan, 10) * 1000; + var waitFor = 1000; + + while (true) { + response = request.get(url); + Zabbix.log(4, '[ Meraki API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + var status = request.getStatus(); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Meraki API. Check debug log for more information.'; + } + } + + if (status === 429 && response && response.errors && Array.isArray(response.errors) && + response.errors.indexOf("API rate limit exceeded for organization") !== -1) { + var now = new Date().getTime(); + var headers = request.getHeaders(false); + + if (hasHeader(headers, 'Retry-After')) { + var retryAfter = headers['Retry-After']; + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. Retrying after ' + retryAfter + ' seconds.'); + waitFor = parseInt(retryAfter) * 1000; + } + else { + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. No Retry-After header. Retrying after 1 second.'); + } + if (now - startTime + waitFor > maxWait) { + throw 'Failed to receive data: API rate limit exceeded and retry timeout reached.'; + } + Zabbix.sleep(waitFor); + continue; + } + + if (status !== 200) { + if (response.errors) { + throw response.errors.join(', '); + } + else { + throw 'Failed to receive data: invalid response status code.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + } + }; + + try { + + if (params.token === '{' + '$MERAKI.TOKEN}') { + throw 'Please change {' + '$MERAKI.TOKEN} macro to the proper value.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + tls.checkURL(params.url); + + if (typeof params.httpproxy !== 'undefined' && params.httpproxy !== '') { + request.setProxy(params.httpproxy); + } + + timespan = checkNumber('{$MERAKI.CONFIG.CHANGE.TIMESPAN}'); + + if (timespan > 86400 || timespan < 1) { + throw 'Incorrect "timespan" parameter given: ' + timespan + ' Must be between 1 and 86400 seconds.'; + } + + result = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/configurationChanges?timespan=' + timespan); + + } catch (error) { + error_msg = error; + }; + + return JSON.stringify({ + 'data': result, + 'error': error_msg.toString() + }); + description: 'Item for gathering all the configuration changes for the organization. Gathering once per 20m by default.' + timeout: '{$MERAKI.DATA.TIMEOUT}' + parameters: + - name: httpproxy + value: '{$MERAKI.HTTP_PROXY}' + - name: organizationId + value: '{$ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco Meraki organization"}' + - name: token + value: '{$MERAKI.TOKEN}' + - name: url + value: '{$MERAKI.API.URL}' + tags: + - tag: component + value: raw + - uuid: 05038571b3c04743bb808da343f335b6 + name: 'Configuration changes item errors' + type: DEPENDENT + key: meraki.get.configuration.changes.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the configuration changes item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: meraki.get.configuration.changes + tags: + - tag: component + value: error + triggers: + - uuid: ce83cc3e1a8a44168df7809d239743c3 + expression: 'length(last(/Cisco Meraki organization by HTTP/meraki.get.configuration.changes.errors))>0' + name: 'Meraki: There are errors in ''Get configuration changes'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 3306da0ec0d749829db2f5f42e4e7876 + name: 'Get data' + type: SCRIPT + key: meraki.get.data + delay: 12h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + var tls = new CTlsConfig(params.tls_verify); + + var request = new HttpRequest(tls.options); + + request.addHeader('X-Cisco-Meraki-API-Key:' + params.token); + request.addHeader('User-Agent: ZabbixServer/1.2 Zabbix'); + + var response, + error_msg = '', + licenseStates = [], + samlSSO = [], + samlRoles = [], + adminAccount = [], + loginSecurity = []; + + function hasHeader(headers, name) { + if (typeof headers !== 'object' || headers === null) { + return false; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return true; + } + } + + return false; + } + + function getHttpData(url) { + var startTime = new Date().getTime(); + var maxWait = 1 * 60 * 60 * 1000; + var waitFor = 1000; + + while (true) { + response = request.get(url); + Zabbix.log(4, '[ Meraki API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + var status = request.getStatus(); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Meraki API. Check debug log for more information.'; + } + } + + if (status === 429 && response && response.errors && Array.isArray(response.errors) && + response.errors.indexOf("API rate limit exceeded for organization") !== -1) { + var now = new Date().getTime(); + var headers = request.getHeaders(false); + + if (hasHeader(headers, 'Retry-After')) { + var retryAfter = headers['Retry-After']; + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. Retrying after ' + retryAfter + ' seconds.'); + waitFor = parseInt(retryAfter) * 1000; + } + else { + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. No Retry-After header. Retrying after 1 second.'); + } + if (now - startTime + waitFor > maxWait) { + throw 'Failed to receive data: API rate limit exceeded and retry timeout reached.'; + } + Zabbix.sleep(waitFor); + continue; + } + + if (status !== 200) { + if (response.errors) { + throw response.errors.join(', '); + } + else { + throw 'Failed to receive data: invalid response status code.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + } + }; + + try { + + if (params.token === '{' + '$MERAKI.TOKEN}') { + throw 'Please change {' + '$MERAKI.TOKEN} macro to the proper value.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + tls.checkURL(params.url); + + if (typeof params.httpproxy !== 'undefined' && params.httpproxy !== '') { + request.setProxy(params.httpproxy); + } + + licenseStates = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/licenses/overview'); + samlSSO = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/saml'); + samlRoles = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/samlRoles'); + adminAccount = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/admins'); + loginSecurity = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/loginSecurity'); + + } catch (error) { + error_msg = error; + }; + + return JSON.stringify({ + 'licenseStates': licenseStates, + 'samlSSO': samlSSO, + 'samlRoles': samlRoles, + 'adminAccount': adminAccount, + 'loginSecurity': loginSecurity, + 'error': error_msg.toString() + }); + description: 'Item for gathering data for the organization.' + timeout: '{$MERAKI.DATA.TIMEOUT}' + parameters: + - name: httpproxy + value: '{$MERAKI.HTTP_PROXY}' + - name: organizationId + value: '{$ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco Meraki organization"}' + - name: token + value: '{$MERAKI.TOKEN}' + - name: url + value: '{$MERAKI.API.URL}' + tags: + - tag: component + value: raw + - uuid: 8ce70f6703cd49e594a723040d17ee3b + name: 'Get data item errors' + type: DEPENDENT + key: meraki.get.data.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the ''Get data'' item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: meraki.get.data + tags: + - tag: component + value: error + triggers: + - uuid: adef482dadf240fbb211fe4c9b638fbc + expression: 'length(last(/Cisco Meraki organization by HTTP/meraki.get.data.errors))>0' + name: 'Meraki: There are errors in ''Get data'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 8ea56a7338f040fcbb9016da892dec90 + name: 'Get list licenses' + type: SCRIPT + key: meraki.get.list.licenses + delay: 12h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + var tls = new CTlsConfig(params.tls_verify); + + var request = new HttpRequest(tls.options); + + request.addHeader('X-Cisco-Meraki-API-Key:' + params.token); + request.addHeader('User-Agent: ZabbixServer/1.2 Zabbix'); + + var response, + error_msg = '', + organization_devices = [], + licenses = []; + + function getField(data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + + }; + + function hasHeader(headers, name) { + if (typeof headers !== 'object' || headers === null) { + return false; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return true; + } + } + + return false; + } + + function getHttpData(url) { + var startTime = new Date().getTime(); + var maxWait = 1 * 60 * 60 * 1000; + var waitFor = 1000; + + while (true) { + response = request.get(url); + Zabbix.log(4, '[ Meraki API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + var status = request.getStatus(); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Meraki API. Check debug log for more information.'; + } + } + + if (status === 429 && response && response.errors && Array.isArray(response.errors) && + response.errors.indexOf("API rate limit exceeded for organization") !== -1) { + var now = new Date().getTime(); + var headers = request.getHeaders(false); + + if (hasHeader(headers, 'Retry-After')) { + var retryAfter = headers['Retry-After']; + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. Retrying after ' + retryAfter + ' seconds.'); + waitFor = parseInt(retryAfter) * 1000; + } + else { + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. No Retry-After header. Retrying after 1 second.'); + } + if (now - startTime + waitFor > maxWait) { + throw 'Failed to receive data: API rate limit exceeded and retry timeout reached.'; + } + Zabbix.sleep(waitFor); + continue; + } + + if (status !== 200) { + if (response.errors) { + throw response.errors.join(', '); + } + else { + throw 'Failed to receive data: invalid response status code.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + } + }; + + try { + + if (params.token === '{' + '$MERAKI.TOKEN}') { + throw 'Please change {' + '$MERAKI.TOKEN} macro to the proper value.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + tls.checkURL(params.url); + + if (typeof params.httpproxy !== 'undefined' && params.httpproxy !== '') { + request.setProxy(params.httpproxy); + } + + licenses = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/licenses'); + + organization_devices = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/devices/statuses'); + + licenses.forEach(function (license) { + + license.deviceName = getField(license, 'deviceSerial'); + + for (i in organization_devices) { + + if (getField(license, 'deviceSerial') === getField(organization_devices[i], 'serial')) { + + device_name = getField(organization_devices[i], 'name'); + + if (!device_name) { + device_name = getField(organization_devices[i], 'serial'); + } + license.deviceName = device_name; + } + } + }); + + + } catch (error) { + error_msg = error; + }; + + return JSON.stringify({ + 'licenses': licenses, + 'error': error_msg.toString() + }); + description: 'Return list of the licenses for the organization.' + timeout: '{$MERAKI.DATA.TIMEOUT}' + parameters: + - name: httpproxy + value: '{$MERAKI.HTTP_PROXY}' + - name: organizationId + value: '{$ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco Meraki organization"}' + - name: token + value: '{$MERAKI.TOKEN}' + - name: url + value: '{$MERAKI.API.URL}' + tags: + - tag: component + value: raw + - uuid: efe8853443d44eed8daeecee5ab9e481 + name: 'Get list of the networks' + type: SCRIPT + key: meraki.get.networks + delay: 3m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + var tls = new CTlsConfig(params.tls_verify); + + var request = new HttpRequest(tls.options); + + request.addHeader('X-Cisco-Meraki-API-Key:' + params.token); + request.addHeader('User-Agent: ZabbixServer/1.2 Zabbix'); + + var response, + error_msg = '', + networks = [], + uplinks = []; + + function hasHeader(headers, name) { + if (typeof headers !== 'object' || headers === null) { + return false; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return true; + } + } + + return false; + } + + function getHttpData(url) { + var startTime = new Date().getTime(); + var maxWait = 1 * 60 * 1000; + var waitFor = 1000; + + while (true) { + response = request.get(url); + Zabbix.log(4, '[ Meraki API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + var status = request.getStatus(); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Meraki API. Check debug log for more information.'; + } + } + + if (status === 429 && response && response.errors && Array.isArray(response.errors) && + response.errors.indexOf("API rate limit exceeded for organization") !== -1) { + var now = new Date().getTime(); + var headers = request.getHeaders(false); + + if (hasHeader(headers, 'Retry-After')) { + var retryAfter = headers['Retry-After']; + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. Retrying after ' + retryAfter + ' seconds.'); + waitFor = parseInt(retryAfter) * 1000; + } + else { + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. No Retry-After header. Retrying after 1 second.'); + } + if (now - startTime + waitFor > maxWait) { + throw 'Failed to receive data: API rate limit exceeded and retry timeout reached.'; + } + Zabbix.sleep(waitFor); + continue; + } + + if (status !== 200) { + if (response.errors) { + throw response.errors.join(', '); + } + else { + throw 'Failed to receive data: invalid response status code.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + } + }; + + try { + + if (params.token === '{' + '$MERAKI.TOKEN}') { + throw 'Please change {' + '$MERAKI.TOKEN} macro to the proper value.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + tls.checkURL(params.url); + + if (typeof params.httpproxy !== 'undefined' && params.httpproxy !== '') { + request.setProxy(params.httpproxy); + } + + networks = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/networks'); + + responseUplinks = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/appliance/uplink/statuses'); + + if (typeof responseUplinks !== 'undefined' && Array.isArray(responseUplinks)) { + for (var i in responseUplinks) { + if ('networkId' in responseUplinks[i] && typeof networks !== 'undefined' && Array.isArray(networks)) { + network = networks.filter(function (x) { return x.id == responseUplinks[i].networkId; }); + } + + if (typeof responseUplinks[i].uplinks !== 'undefined' && Array.isArray(responseUplinks[i].uplinks)) { + for (var p in responseUplinks[i].uplinks) { + if (typeof network[0].name !== 'undefined') { + responseUplinks[i].uplinks[p].networkName = network[0].name; + } + if (typeof network[0].timeZone !== 'undefined') { + responseUplinks[i].uplinks[p].timeZone = network[0].timeZone; + } + if ('highAvailability' in responseUplinks[i] && 'role' in responseUplinks[i].highAvailability) { + responseUplinks[i].uplinks[p].role = responseUplinks[i].highAvailability.role; + } + if ('serial' in responseUplinks[i]) { + responseUplinks[i].uplinks[p].serial = responseUplinks[i].serial; + } + + uplinks.push(responseUplinks[i].uplinks[p]); + } + } + } + } + + + } catch (error) { + error_msg = error; + }; + + return JSON.stringify({ + 'uplinks': uplinks, + 'networks': networks, + 'error': error_msg.toString() + }); + description: 'Item for gathering all the networks of organization from Meraki API.' + timeout: '{$MERAKI.DATA.TIMEOUT}' + parameters: + - name: httpproxy + value: '{$MERAKI.HTTP_PROXY}' + - name: organizationId + value: '{$ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco Meraki organization"}' + - name: token + value: '{$MERAKI.TOKEN}' + - name: url + value: '{$MERAKI.API.URL}' + tags: + - tag: component + value: raw + - uuid: b2bb422b7d794a03a93c8d46209cd3fb + name: 'Networks item errors' + type: DEPENDENT + key: meraki.get.networks.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the networks item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: meraki.get.networks + tags: + - tag: component + value: error + triggers: + - uuid: c149d21e19f3453b8e569c549ed2c78a + expression: 'length(last(/Cisco Meraki organization by HTTP/meraki.get.networks.errors))>0' + name: 'Meraki: There are errors in ''Get networks'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: b33608b4c24d4c7bbf1f76f639890715 + name: 'SAML SSO Settings' + type: DEPENDENT + key: meraki.get.saml + delay: '0' + description: 'Return the enabled SAML SSO settings for the organization.' + valuemap: + name: 'Boolean format' + preprocessing: + - type: JSONPATH + parameters: + - $.samlSSO.enabled + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: meraki.get.data + tags: + - tag: component + value: saml + - uuid: bb653e6dba3f489494a7143b74fe8f4f + name: 'Get list of the VPN stats' + type: SCRIPT + key: meraki.get.vpn.stats + delay: '{$MERAKI.VPN.STATS.TIMESPAN}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + var tls = new CTlsConfig(params.tls_verify); + + var request = new HttpRequest(tls.options); + + request.addHeader('X-Cisco-Meraki-API-Key:' + params.token); + request.addHeader('User-Agent: ZabbixServer/1.2 Zabbix'); + + var response, + error_msg = '', + vpnStats = [], + vpnStatuses = [], + result = []; + + function isFloat(n) { + n = parseFloat(n); + return Number(n) === n && n % 1 !== 0; + }; + + function checkNumber(string) { + if (typeof string !== "string" || isNaN(string) || isFloat(string)) { + throw 'Incorrect "timespan" parameter given: ' + string + ' Must be an unsigned number'; + } + return string; + }; + + function hasHeader(headers, name) { + if (typeof headers !== 'object' || headers === null) { + return false; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return true; + } + } + + return false; + } + + function getHttpData(url) { + var startTime = new Date().getTime(); + var maxWait = parseInt(timespan, 10) * 1000; + var waitFor = 1000; + + while (true) { + response = request.get(url); + Zabbix.log(4, '[ Meraki API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + var status = request.getStatus(); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Meraki API. Check debug log for more information.'; + } + } + + if (status === 429 && response && response.errors && Array.isArray(response.errors) && + response.errors.indexOf("API rate limit exceeded for organization") !== -1) { + var now = new Date().getTime(); + var headers = request.getHeaders(false); + + if (hasHeader(headers, 'Retry-After')) { + var retryAfter = headers['Retry-After']; + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. Retrying after ' + retryAfter + ' seconds.'); + waitFor = parseInt(retryAfter) * 1000; + } + else { + Zabbix.log(4, '[ Meraki API ] API rate limit exceeded. No Retry-After header. Retrying after 1 second.'); + } + if (now - startTime + waitFor > maxWait) { + throw 'Failed to receive data: API rate limit exceeded and retry timeout reached.'; + } + Zabbix.sleep(waitFor); + continue; + } + + if (status !== 200) { + if (response.errors) { + throw response.errors.join(', '); + } + else { + throw 'Failed to receive data: invalid response status code.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + } + }; + + try { + + if (params.token === '{' + '$MERAKI.TOKEN}') { + throw 'Please change {' + '$MERAKI.TOKEN} macro to the proper value.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + tls.checkURL(params.url); + + if (typeof params.httpproxy !== 'undefined' && params.httpproxy !== '') { + request.setProxy(params.httpproxy); + } + + timespan = checkNumber('{$MERAKI.VPN.STATS.TIMESPAN}'); + + if (timespan > 86400 || timespan < 1) { + throw 'Incorrect "timespan" parameter given: ' + timespan + ' Must be between 1 and 86400 seconds.'; + } + + vpnStats = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/appliance/vpn/stats?timespan=' + timespan); + + for (i in vpnStats) { + if (typeof vpnStats[i].merakiVpnPeers !== 'undefined' && Array.isArray(vpnStats[i].merakiVpnPeers)) { + for (u in vpnStats[i].merakiVpnPeers) { + if (typeof vpnStats[i].merakiVpnPeers[u].latencySummaries !== 'undefined' && Array.isArray(vpnStats[i].merakiVpnPeers[u].latencySummaries)) { + vpn_stats = vpnStats[i].merakiVpnPeers[u].latencySummaries.map(function (x) { + + lps = vpnStats[i].merakiVpnPeers[u].lossPercentageSummaries.filter(function (y) { return y.senderUplink == x.senderUplink && y.receiverUplink == x.receiverUplink; }); + js = vpnStats[i].merakiVpnPeers[u].jitterSummaries.filter(function (y) { return y.senderUplink == x.senderUplink && y.receiverUplink == x.receiverUplink; }); + ms = vpnStats[i].merakiVpnPeers[u].mosSummaries.filter(function (y) { return y.senderUplink == x.senderUplink && y.receiverUplink == x.receiverUplink; }); + Object.assign(x, lps[0], js[0], ms[0]); + + if ('networkId' in vpnStats[i]) { + x.networkId = vpnStats[i].networkId; + } + if ('networkName' in vpnStats[i]) { + x.networkName = vpnStats[i].networkName; + } + + if ('networkId' in vpnStats[i].merakiVpnPeers[u]) { + x.peerNetworkId = vpnStats[i].merakiVpnPeers[u].networkId; + } + if ('networkName' in vpnStats[i].merakiVpnPeers[u]) { + x.peerNetworkName = vpnStats[i].merakiVpnPeers[u].networkName; + } + + return x; + }); + result = result.concat(vpn_stats); + } + } + } + } + + vpnStatuses = getHttpData(params.url + 'organizations/' + encodeURIComponent(params.organizationId) + '/appliance/vpn/statuses'); + + } catch (error) { + error_msg = error; + }; + + return JSON.stringify({ + 'vpnStats': result, + 'vpnStatuses': vpnStatuses, + 'error': error_msg.toString() + }); + description: 'Item for gathering all the VPN stats of the organization.' + timeout: '{$MERAKI.DATA.TIMEOUT}' + parameters: + - name: httpproxy + value: '{$MERAKI.HTTP_PROXY}' + - name: organizationId + value: '{$ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco Meraki organization"}' + - name: token + value: '{$MERAKI.TOKEN}' + - name: url + value: '{$MERAKI.API.URL}' + tags: + - tag: component + value: raw + - uuid: a5106f644c4e46fc963cc953dafaeb4e + name: 'VPN item errors' + type: DEPENDENT + key: meraki.get.vpn.stats.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the VPN item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: meraki.get.vpn.stats + tags: + - tag: component + value: error + triggers: + - uuid: f65ff582e1a84f5a9e9d6a9c0501b013 + expression: 'length(last(/Cisco Meraki organization by HTTP/meraki.get.vpn.stats.errors))>0' + name: 'Meraki: There are errors in ''Get VPNs'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 3e79a9319f0146c5b5aefeba13ec722c + name: 'Idle timeout minutes' + type: DEPENDENT + key: meraki.idle.timeout.minutes + delay: '0' + description: 'Number of minutes users can remain idle before being logged out of their accounts.' + preprocessing: + - type: JSONPATH + parameters: + - $.loginSecurity.idleTimeoutMinutes + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.data + tags: + - tag: component + value: security + - uuid: bd6eca7b707a4bee8e2302765afa6074 + name: 'License expire' + type: DEPENDENT + key: meraki.license.expire + delay: '0' + value_type: FLOAT + units: s + description: 'Meraki license expire time, in seconds left.' + valuemap: + name: 'License status' + preprocessing: + - type: JSONPATH + parameters: + - $.licenseStates.expirationDate + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + function parseDate(date) { + months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; + date = date.split(','); + date[1] = date[1].match(/[0-9]{4}/)[0]; + date = date.concat(date[0].split(' ')); + month = 1 + months.indexOf(date[2]); + return Date.parse(date[1] + "-" + month + "-" + date[3]); + } + + if (value === "N/A") { + return -1; + } else { + value = parseDate(value); + now = Date.now(); + return Math.floor((value - now) / 1000); + } + master_item: + key: meraki.get.data + tags: + - tag: component + value: license + triggers: + - uuid: 8694c7fc18904004978a3ce46f06a67e + expression: 'last(/Cisco Meraki organization by HTTP/meraki.license.expire)<{$MERAKI.LICENSE.EXPIRE} and last(/Cisco Meraki organization by HTTP/meraki.license.expire)>=0' + name: 'Meraki: License expires in less than {$MERAKI.LICENSE.EXPIRE} seconds' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 2b8e2c4093074dbaa88db3df57eb2cd1 + name: 'License status' + type: DEPENDENT + key: meraki.license.status + delay: '0' + description: 'Meraki license status.' + valuemap: + name: 'License status' + preprocessing: + - type: JSONPATH + parameters: + - $.licenseStates.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + switch (value) { + case 'License Required': + return 0 + case 'OK': + return 1 + default: + return 10 + } + master_item: + key: meraki.get.data + tags: + - tag: component + value: license + triggers: + - uuid: d4f71dd53bf8495789b53e063db3555b + expression: 'last(/Cisco Meraki organization by HTTP/meraki.license.status)<>1' + name: 'Meraki: License status is not OK' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: c313fa31777a42d29d874f46f00ac82f + name: 'Enforce account lockout' + type: DEPENDENT + key: meraki.login.enforce.account.lockout + delay: '0' + description: 'Boolean indicating whether users'' dashboard accounts will be locked out after a specified number of consecutive failed login attempts.' + valuemap: + name: 'Boolean format' + preprocessing: + - type: JSONPATH + parameters: + - $.loginSecurity.enforceAccountLockout + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: meraki.get.data + tags: + - tag: component + value: security + - uuid: d71eb53c76e84ce1ad65959e381c358f + name: 'Enforce different passwords' + type: DEPENDENT + key: meraki.login.enforce.different.passwords + delay: '0' + description: 'Boolean indicating whether users, when setting a new password, are forced to choose a new password that is different from any past passwords.' + valuemap: + name: 'Boolean format' + preprocessing: + - type: JSONPATH + parameters: + - $.loginSecurity.enforceDifferentPasswords + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: meraki.get.data + tags: + - tag: component + value: security + - uuid: bd9423ea744f4855926e0edf677ef2a6 + name: 'Enforce idle timeout' + type: DEPENDENT + key: meraki.login.enforce.idle.timeout + delay: '0' + description: 'Boolean indicating whether users will be logged out after being idle for the specified number of minutes.' + valuemap: + name: 'Boolean format' + preprocessing: + - type: JSONPATH + parameters: + - $.loginSecurity.enforceIdleTimeout + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: meraki.get.data + tags: + - tag: component + value: security + - uuid: f7b88a64223c4b2992f15d0b6807f55f + name: 'Enforce login IP ranges' + type: DEPENDENT + key: meraki.login.enforce.login.ip.ranges + delay: '0' + description: 'Boolean indicating whether organization will restrict access to the dashboard (including the API) from certain IP addresses.' + valuemap: + name: 'Boolean format' + preprocessing: + - type: JSONPATH + parameters: + - $.loginSecurity.enforceLoginIpRanges + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: meraki.get.data + tags: + - tag: component + value: security + - uuid: 09dc6f6619ea4a1dba1b17d9803bbe7a + name: 'Enforce password expiration' + type: DEPENDENT + key: meraki.login.enforce.password.expiration + delay: '0' + description: 'Boolean indicating whether users are forced to change their password every X days.' + valuemap: + name: 'Boolean format' + preprocessing: + - type: JSONPATH + parameters: + - $.loginSecurity.enforcePasswordExpiration + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: meraki.get.data + tags: + - tag: component + value: security + - uuid: cae90669ec7b4b2d9743b2f60fe6f99e + name: 'Enforce 2FA' + type: DEPENDENT + key: meraki.login.enforce.two.factor.auth + delay: '0' + description: 'Boolean indicating whether users in this organization will be required to use an extra verification code when logging in to the dashboard. This code will be sent to their mobile phones via SMS or can be generated by the authenticator application.' + valuemap: + name: 'Boolean format' + preprocessing: + - type: JSONPATH + parameters: + - $.loginSecurity.enforceTwoFactorAuth + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: meraki.get.data + tags: + - tag: component + value: security + - uuid: 903cca42650f489f80ae5ace3adecb69 + name: 'Number of different passwords' + type: DEPENDENT + key: meraki.login.num.different.passwords + delay: '0' + description: 'Number of recent passwords that new password must be distinct from.' + preprocessing: + - type: JSONPATH + parameters: + - $.loginSecurity.numDifferentPasswords + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.data + tags: + - tag: component + value: security + - uuid: 8e882c747c7047f99127346adc7e0a5a + name: 'Password expiration days' + type: DEPENDENT + key: meraki.login.password.expiration.days + delay: '0' + description: 'Number of days after which users will be forced to change their password.' + preprocessing: + - type: JSONPATH + parameters: + - $.loginSecurity.passwordExpirationDays + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.data + tags: + - tag: component + value: security + - uuid: e18f69d27fcb4b949d5744aebef97ffb + name: Policies + type: DEPENDENT + key: meraki.policies + delay: '0' + description: 'Meraki adaptive policies count.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.counts.policies + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.adaptive.policy + tags: + - tag: component + value: policy + - uuid: 8a8369134eff4153aba32d9c435786f3 + name: 'Allow policies' + type: DEPENDENT + key: meraki.policies.allow + delay: '0' + description: 'Meraki adaptive allow policies count.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.counts.allowPolicies + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.adaptive.policy + tags: + - tag: component + value: policy + - uuid: f85b33412a2a41b39c33d64f3c641232 + name: 'Custom ACLs' + type: DEPENDENT + key: meraki.policies.custom.acls + delay: '0' + description: 'Meraki adaptive policy custom ACLs count.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.counts.customAcls + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.adaptive.policy + tags: + - tag: component + value: policy + - uuid: 8b9e13124628460584668dbe5cd1b92b + name: 'Deny policies' + type: DEPENDENT + key: meraki.policies.deny + delay: '0' + description: 'Meraki adaptive deny policies count.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.counts.denyPolicies + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.adaptive.policy + tags: + - tag: component + value: policy + - uuid: a4918ea4d6954b5f829e5533117c109a + name: Groups + type: DEPENDENT + key: meraki.policies.groups + delay: '0' + description: 'Meraki adaptive policy groups count.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.counts.groups + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.adaptive.policy + tags: + - tag: component + value: policy + discovery_rules: + - uuid: 596c6122c6244dee83e3b55e30e4fda0 + name: 'Administrators discovery' + type: DEPENDENT + key: meraki.admins.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ADMIN.NAME}' + value: '{$MERAKI.ADMIN.NAME.MATCHES}' + formulaid: A + - macro: '{#ADMIN.NAME}' + value: '{$MERAKI.ADMIN.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ADMIN.ORG.ACCESS}' + value: '{$MERAKI.ADMIN.ORG.ACCESS.MATCHES}' + formulaid: C + - macro: '{#ADMIN.ORG.ACCESS}' + value: '{$MERAKI.ADMIN.ORG.ACCESS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: d4d450d2788c4e83af247b647951314b + name: 'Admin [{#ADMIN.NAME}]: authentication method' + type: DEPENDENT + key: 'meraki.admin.account.auth.method[{#ADMIN.ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Admin''s authentication method.' + preprocessing: + - type: JSONPATH + parameters: + - $.authenticationMethod + master_item: + key: 'meraki.admin.get[{#ADMIN.ID}]' + tags: + - tag: admin + value: '{#ADMIN.NAME}' + - tag: component + value: security + - uuid: 7efd859bb84e47bd84a099686f42ee8b + name: 'Admin [{#ADMIN.NAME}]: organization access' + type: DEPENDENT + key: 'meraki.admin.account.org.access[{#ADMIN.ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Admin''s level of access to the organization.' + preprocessing: + - type: JSONPATH + parameters: + - $.orgAccess + master_item: + key: 'meraki.admin.get[{#ADMIN.ID}]' + tags: + - tag: admin + value: '{#ADMIN.NAME}' + - tag: component + value: security + - uuid: 58a07f56495943dc9cb58352d919de61 + name: 'Admin [{#ADMIN.NAME}]: account status' + type: DEPENDENT + key: 'meraki.admin.account.status[{#ADMIN.ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Status of the admin''s account.' + preprocessing: + - type: JSONPATH + parameters: + - $.accountStatus + master_item: + key: 'meraki.admin.get[{#ADMIN.ID}]' + tags: + - tag: admin + value: '{#ADMIN.NAME}' + - tag: component + value: security + - uuid: edfa03da4a694111920146d2744884bb + name: 'Admin [{#ADMIN.NAME}]: 2FA enabled' + type: DEPENDENT + key: 'meraki.admin.account.two.factor.auth[{#ADMIN.ID}]' + delay: '0' + description: 'Indicates whether two-factor authentication is enabled.' + valuemap: + name: 'Boolean format' + preprocessing: + - type: JSONPATH + parameters: + - $.twoFactorAuthEnabled + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'meraki.admin.get[{#ADMIN.ID}]' + tags: + - tag: admin + value: '{#ADMIN.NAME}' + - tag: component + value: security + - uuid: 6d075eb822f94d8285e358fa330b67fc + name: 'Admin [{#ADMIN.NAME}]: get data' + type: DEPENDENT + key: 'meraki.admin.get[{#ADMIN.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for admin in this organization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.adminAccount.[?(@.id == "{#ADMIN.ID}")].first()' + master_item: + key: meraki.get.data + tags: + - tag: admin + value: '{#ADMIN.NAME}' + - tag: component + value: raw + - tag: component + value: security + master_item: + key: meraki.get.data + lld_macro_paths: + - lld_macro: '{#ADMIN.ID}' + path: $.id + - lld_macro: '{#ADMIN.NAME}' + path: $.name + - lld_macro: '{#ADMIN.ORG.ACCESS}' + path: $.orgAccess + preprocessing: + - type: JSONPATH + parameters: + - $.adminAccount + - uuid: 961ecce14f274858a6d632ec906c849f + name: 'License discovery' + type: DEPENDENT + key: meraki.license.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#LICENSE.STATE}' + value: '{$MERAKI.LICENSE.STATE.MATCHES}' + formulaid: A + - macro: '{#LICENSE.STATE}' + value: '{$MERAKI.LICENSE.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#LICENSE.TYPE}' + value: '{$MERAKI.LICENSE.TYPE.MATCHES}' + formulaid: C + - macro: '{#LICENSE.TYPE}' + value: '{$MERAKI.LICENSE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 87672962b9e14e69ad63f4d790fd11ad + name: 'License [{#LICENSE.ID}]: activation date' + type: DEPENDENT + key: 'meraki.license.activation.date[{#LICENSE.ID}]' + delay: '0' + value_type: FLOAT + units: unixtime + description: 'The date the license started burning.' + valuemap: + name: 'License statuses' + preprocessing: + - type: JSONPATH + parameters: + - $.activationDate + - type: JAVASCRIPT + parameters: + - 'return truncatedTimestamp = Math.floor(Date.parse(value) / 1000) || -1;' + master_item: + key: 'meraki.license.get[{#LICENSE.ID}]' + tags: + - tag: component + value: license + - tag: license-type + value: '{#LICENSE.TYPE}' + - uuid: dd9c1d50a4cc448e82affb7de442af8e + name: 'License [{#LICENSE.ID}]: device name' + type: DEPENDENT + key: 'meraki.license.device.name[{#LICENSE.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Name of the device the license is assigned to.' + preprocessing: + - type: JSONPATH + parameters: + - $.deviceName + master_item: + key: 'meraki.license.get[{#LICENSE.ID}]' + tags: + - tag: component + value: license + - tag: license-type + value: '{#LICENSE.TYPE}' + - uuid: dc550872241f49ab930aa9bc34614308 + name: 'License [{#LICENSE.ID}]: device serial' + type: DEPENDENT + key: 'meraki.license.device.serial[{#LICENSE.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Serial number of the device the license is assigned to.' + preprocessing: + - type: JSONPATH + parameters: + - $.deviceSerial + master_item: + key: 'meraki.license.get[{#LICENSE.ID}]' + tags: + - tag: component + value: license + - tag: license-type + value: '{#LICENSE.TYPE}' + - uuid: d8504a68e79344228c612b6afc362cde + name: 'License [{#LICENSE.ID}]: expiration date' + type: DEPENDENT + key: 'meraki.license.expiration.date[{#LICENSE.ID}]' + delay: '0' + value_type: FLOAT + units: unixtime + description: 'The date the license will expire.' + valuemap: + name: 'License statuses' + preprocessing: + - type: JSONPATH + parameters: + - $.expirationDate + - type: JAVASCRIPT + parameters: + - 'return truncatedTimestamp = Math.floor(Date.parse(value) / 1000) || -1;' + master_item: + key: 'meraki.license.get[{#LICENSE.ID}]' + tags: + - tag: component + value: license + - tag: license-type + value: '{#LICENSE.TYPE}' + - uuid: 544eb99d23134448afd1ea4ff267ef13 + name: 'License [{#LICENSE.ID}]: get data' + type: DEPENDENT + key: 'meraki.license.get[{#LICENSE.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for a license.' + preprocessing: + - type: JSONPATH + parameters: + - '$.licenses.[?(@.id == "{#LICENSE.ID}")].first()' + master_item: + key: meraki.get.list.licenses + tags: + - tag: component + value: license + - tag: component + value: raw + - uuid: dde68e22656c4e9e88f89a97984704a8 + name: 'License [{#LICENSE.ID}]: key' + type: DEPENDENT + key: 'meraki.license.key[{#LICENSE.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'License key.' + preprocessing: + - type: JSONPATH + parameters: + - $.licenseKey + master_item: + key: 'meraki.license.get[{#LICENSE.ID}]' + tags: + - tag: component + value: license + - tag: license-type + value: '{#LICENSE.TYPE}' + - uuid: b616fcfc6cd740ec8ec52578d7bc2f8c + name: 'License [{#LICENSE.ID}]: state' + type: DEPENDENT + key: 'meraki.license.state[{#LICENSE.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The state of the license. All queued licenses have a status of ''recently queued''.' + preprocessing: + - type: JSONPATH + parameters: + - $.state + master_item: + key: 'meraki.license.get[{#LICENSE.ID}]' + tags: + - tag: component + value: license + - tag: license-type + value: '{#LICENSE.TYPE}' + - uuid: cb07d887e5dc407e91208323394e61a7 + name: 'License [{#LICENSE.ID}]: total duration in days' + type: DEPENDENT + key: 'meraki.license.total.duration[{#LICENSE.ID}]' + delay: '0' + value_type: FLOAT + description: 'The duration of the license plus all permanently queued licenses associated with it.' + valuemap: + name: 'License statuses' + preprocessing: + - type: JSONPATH + parameters: + - $.totalDurationInDays + - type: JAVASCRIPT + parameters: + - 'return days = Math.floor(value) || -1;' + master_item: + key: 'meraki.license.get[{#LICENSE.ID}]' + tags: + - tag: component + value: license + - tag: license-type + value: '{#LICENSE.TYPE}' + graph_prototypes: + - uuid: 302613b208c24c8191d4fccb2d941cbb + name: 'Meraki: license [{#LICENSE.ID}] date' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.license.activation.date[{#LICENSE.ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.license.expiration.date[{#LICENSE.ID}]' + master_item: + key: meraki.get.list.licenses + lld_macro_paths: + - lld_macro: '{#LICENSE.DEVICE.NAME}' + path: $.deviceName + - lld_macro: '{#LICENSE.ID}' + path: $.id + - lld_macro: '{#LICENSE.STATE}' + path: $.state + - lld_macro: '{#LICENSE.TYPE}' + path: $.licenseType + preprocessing: + - type: JSONPATH + parameters: + - $.licenses + - uuid: c885b8978f284ab98007860de6cadb84 + name: 'Networks discovery' + type: DEPENDENT + key: meraki.networks.discovery + delay: '0' + item_prototypes: + - uuid: fca3d0675bdb42158c20db24a8d2d4ee + name: 'Network [{#NETWORK.NAME}]: Time zone' + type: DEPENDENT + key: 'meraki.network.timezone[{#NETWORK.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Timezone of the network.' + preprocessing: + - type: JSONPATH + parameters: + - '$.networks[?(@.name== ''{#NETWORK.NAME}'' && @.id== ''{#NETWORK.ID}'')].timeZone.first()' + master_item: + key: meraki.get.networks + tags: + - tag: component + value: network + - tag: network + value: '{#NETWORK.NAME}' + master_item: + key: meraki.get.networks + lld_macro_paths: + - lld_macro: '{#NETWORK.ID}' + path: $.id + - lld_macro: '{#NETWORK.NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.networks + - uuid: fa4eb762c1064723b5f708aff74ed12c + name: 'SAML roles discovery' + type: DEPENDENT + key: meraki.saml.roles.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SAML.ORG.ACCESS}' + value: '{$MERAKI.SAML.ORG.ACCESS.MATCHES}' + formulaid: A + - macro: '{#SAML.ORG.ACCESS}' + value: '{$MERAKI.SAML.ORG.ACCESS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SAML.ROLE}' + value: '{$MERAKI.SAML.ROLE.MATCHES}' + formulaid: C + - macro: '{#SAML.ROLE}' + value: '{$MERAKI.SAML.ROLE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: d0f48c88f8c64f8ab1fd1d77aed7f08e + name: 'SAML role [{#SAML.ROLE}]: get data' + type: DEPENDENT + key: 'meraki.saml.get[{#SAML.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for SAML roles.' + preprocessing: + - type: JSONPATH + parameters: + - '$.samlRoles.[?(@.id == "{#SAML.ID}")].first()' + master_item: + key: meraki.get.data + tags: + - tag: component + value: raw + - uuid: f4bf93217d10424fb56d3ff8965d2495 + name: 'SAML role [{#SAML.ROLE}]: organization access' + type: DEPENDENT + key: 'meraki.saml.org.access[{#SAML.ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'The privilege of the SAML administrator in the organization.' + preprocessing: + - type: JSONPATH + parameters: + - $.orgAccess + master_item: + key: 'meraki.saml.get[{#SAML.ID}]' + tags: + - tag: saml-role + value: '{#SAML.ROLE}' + master_item: + key: meraki.get.data + lld_macro_paths: + - lld_macro: '{#SAML.ID}' + path: $.id + - lld_macro: '{#SAML.ORG.ACCESS}' + path: $.orgAccess + - lld_macro: '{#SAML.ROLE}' + path: $.role + preprocessing: + - type: JSONPATH + parameters: + - $.samlRoles + - uuid: 03d6aeb2bc3d473b9aab87acd0e08f8c + name: 'Uplinks discovery' + type: DEPENDENT + key: meraki.uplinks.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NETWORK.NAME}' + value: '{$MERAKI.LLD.UPLINK.NETWORK.NAME.MATCHES}' + formulaid: A + - macro: '{#NETWORK.NAME}' + value: '{$MERAKI.LLD.UPLINK.NETWORK.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#UPLINK.ROLE}' + value: '{$MERAKI.LLD.UPLINK.ROLE.MATCHES}' + formulaid: C + - macro: '{#UPLINK.ROLE}' + value: '{$MERAKI.LLD.UPLINK.ROLE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 783a083a49e64c2db1d37e44d28f263b + name: 'Uplink [{#INTERFACE}]: [{#UPLINK.ROLE}]: [{#NETWORK.NAME}]: Interface' + type: DEPENDENT + key: 'meraki.uplink.interface[{#NETWORK.NAME}, {#INTERFACE}, {#UPLINK.ROLE}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Network uplink interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$.uplinks[?(@.networkName== ''{#NETWORK.NAME}'' && @.interface== ''{#INTERFACE}'' && @.role== ''{#UPLINK.ROLE}'' )].interface.first()' + master_item: + key: meraki.get.networks + tags: + - tag: component + value: network + - tag: component + value: uplink + - tag: interface + value: '{#INTERFACE}' + - tag: network + value: '{#NETWORK.NAME}' + - tag: serial-number + value: '{#UPLINK.DEVICE.SERIAL}' + - uuid: a4026ab15ff34c43a23605b27146376d + name: 'Uplink [{#INTERFACE}]: [{#UPLINK.ROLE}]: [{#NETWORK.NAME}]: Public IP' + type: DEPENDENT + key: 'meraki.uplink.public.ip[{#NETWORK.NAME}, {#INTERFACE}, {#UPLINK.ROLE}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Network uplink public IP.' + preprocessing: + - type: JSONPATH + parameters: + - '$.uplinks[?(@.networkName== ''{#NETWORK.NAME}'' && @.interface== ''{#INTERFACE}'' && @.role== ''{#UPLINK.ROLE}'' )].publicIp.first()' + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: meraki.get.networks + tags: + - tag: component + value: network + - tag: component + value: uplink + - tag: interface + value: '{#INTERFACE}' + - tag: network + value: '{#NETWORK.NAME}' + - tag: serial-number + value: '{#UPLINK.DEVICE.SERIAL}' + - uuid: 7600f662dd044d1f857a6ffd9898277c + name: 'Uplink [{#INTERFACE}]: [{#UPLINK.ROLE}]: [{#NETWORK.NAME}]: Status' + type: DEPENDENT + key: 'meraki.uplink.status[{#NETWORK.NAME}, {#INTERFACE}, {#UPLINK.ROLE}]' + delay: '0' + description: 'Network uplink status.' + valuemap: + name: 'Uplink status' + preprocessing: + - type: JSONPATH + parameters: + - '$.uplinks[?(@.networkName== ''{#NETWORK.NAME}'' && @.interface== ''{#INTERFACE}'' && @.role== ''{#UPLINK.ROLE}'' )].status.first()' + - type: JAVASCRIPT + parameters: + - | + switch (value) { + case 'failed': + return 0 + case 'active': + return 1 + case 'ready': + return 2 + case 'not connected': + return 3 + default: + return 10 + } + master_item: + key: meraki.get.networks + tags: + - tag: component + value: network + - tag: component + value: uplink + - tag: interface + value: '{#INTERFACE}' + - tag: network + value: '{#NETWORK.NAME}' + - tag: serial-number + value: '{#UPLINK.DEVICE.SERIAL}' + trigger_prototypes: + - uuid: b1f3cbb8f3024c3f8cd6a8eaf7a5df52 + expression: 'last(/Cisco Meraki organization by HTTP/meraki.uplink.status[{#NETWORK.NAME}, {#INTERFACE}, {#UPLINK.ROLE}])=0' + name: 'Meraki: Uplink [{#INTERFACE}]: [{#UPLINK.ROLE}]: [{#NETWORK.NAME}]: Status is failed' + priority: WARNING + tags: + - tag: scope + value: availability + master_item: + key: meraki.get.networks + lld_macro_paths: + - lld_macro: '{#INTERFACE}' + path: $.interface + - lld_macro: '{#NETWORK.NAME}' + path: $.networkName + - lld_macro: '{#PRIVATE.IP}' + path: $.ip + - lld_macro: '{#PUBLIC.IP}' + path: $.publicIp + - lld_macro: '{#UPLINK.DEVICE.SERIAL}' + path: $.serial + - lld_macro: '{#UPLINK.ROLE}' + path: $.role + preprocessing: + - type: JSONPATH + parameters: + - $.uplinks + - uuid: 34052749bd3c46fd9083d738ddeee216 + name: 'VPN stats discovery' + type: DEPENDENT + key: meraki.vpn.stats.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NETWORK.NAME}' + value: '{$MERAKI.LLD.VPN.NETWORK.NAME.MATCHES}' + formulaid: A + - macro: '{#NETWORK.NAME}' + value: '{$MERAKI.LLD.VPN.NETWORK.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#PEER.NETWORK.NAME}' + value: '{$MERAKI.LLD.VPN.PEER.NETWORK.NAME.MATCHES}' + formulaid: C + - macro: '{#PEER.NETWORK.NAME}' + value: '{$MERAKI.LLD.VPN.PEER.NETWORK.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#RECEIVER.UPLINK}' + value: '{$MERAKI.LLD.VPN.RECEIVER.UPLINK.MATCHES}' + formulaid: E + - macro: '{#RECEIVER.UPLINK}' + value: '{$MERAKI.LLD.VPN.RECEIVER.UPLINK.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#SENDER.UPLINK}' + value: '{$MERAKI.LLD.VPN.SENDER.UPLINK.MATCHES}' + formulaid: G + - macro: '{#SENDER.UPLINK}' + value: '{$MERAKI.LLD.VPN.SENDER.UPLINK.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + item_prototypes: + - uuid: 6e38c9538ad4489ea08b6d21fc8a8bd3 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: jitter avg' + type: DEPENDENT + key: 'meraki.vpn.stat.jitter.avg[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + description: 'VPN connection jitter avg.' + preprocessing: + - type: JSONPATH + parameters: + - $.avgJitter + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: c676fc71415d4e199f257f165fc56163 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: jitter max' + type: DEPENDENT + key: 'meraki.vpn.stat.jitter.max[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + description: 'VPN connection jitter max.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxJitter + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: c0d392d7ca2b42df9a967ffb2dcfa80d + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: jitter min' + type: DEPENDENT + key: 'meraki.vpn.stat.jitter.min[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + description: 'VPN connection jitter min.' + preprocessing: + - type: JSONPATH + parameters: + - $.minJitter + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: 6f56db10935641b0bf416ae3402ddb17 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: latency avg' + type: DEPENDENT + key: 'meraki.vpn.stat.latency.avg[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'VPN connection avg latency.' + preprocessing: + - type: JSONPATH + parameters: + - $.avgLatencyMs + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: 626ca25322e9413ca0e5bee2c8760c73 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: latency max' + type: DEPENDENT + key: 'meraki.vpn.stat.latency.max[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'VPN connection max latency.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxLatencyMs + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: 56a0ea96051a4b45af7db3da1af3e4a4 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: latency min' + type: DEPENDENT + key: 'meraki.vpn.stat.latency.min[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'VPN connection min latency.' + preprocessing: + - type: JSONPATH + parameters: + - $.minLatencyMs + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: a56018615c9540b58b8b074ccc8a05bd + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: loss avg, %' + type: DEPENDENT + key: 'meraki.vpn.stat.loss.avg[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'VPN connection loss avg.' + preprocessing: + - type: JSONPATH + parameters: + - $.avgLossPercentage + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + trigger_prototypes: + - uuid: 3e3b9cdada9d451ea4be287bafd03cf4 + expression: 'count(/Cisco Meraki organization by HTTP/meraki.vpn.stat.loss.avg[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}],#3,,"{$MERAKI.VPN.LOSS.PERCENTILE}")>=3' + name: 'Meraki: VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: High average VPN connection loss (over >= {$MERAKI.VPN.LOSS.PERCENTILE%)' + event_name: 'Meraki: VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: High average VPN connection loss (over >= {$MERAKI.VPN.LOSS.PERCENTILE%)' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 7dccf9e43d944c37934a1dded9999756 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: loss max, %' + type: DEPENDENT + key: 'meraki.vpn.stat.loss.max[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'VPN connection loss max.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxLossPercentage + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: eb835ef592a24e43bc918c4299b9f6e7 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: loss min, %' + type: DEPENDENT + key: 'meraki.vpn.stat.loss.min[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'VPN connection loss min.' + preprocessing: + - type: JSONPATH + parameters: + - $.minLossPercentage + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: 1f26cdd09e5f45da9e8b0e679faa3425 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: mos avg' + type: DEPENDENT + key: 'meraki.vpn.stat.mos.avg[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + description: 'VPN connection mos avg.' + preprocessing: + - type: JSONPATH + parameters: + - $.avgMos + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: bf28a0ead40046c8b08399775836be4e + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: mos max' + type: DEPENDENT + key: 'meraki.vpn.stat.mos.max[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + description: 'VPN connection mos max.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxMos + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: 9fee72321a23448983bd6cac7803600c + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: mos min' + type: DEPENDENT + key: 'meraki.vpn.stat.mos.min[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + value_type: FLOAT + description: 'VPN connection mos min.' + preprocessing: + - type: JSONPATH + parameters: + - $.minMos + master_item: + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + tags: + - tag: component + value: vpn + - uuid: 2c968e21c8a34c73a17ed0fc4e2756b5 + name: 'VPN [{#NETWORK.NAME}]=>[{#PEER.NETWORK.NAME}]: stats raw' + type: DEPENDENT + key: 'meraki.vpn.stat.raw[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'VPN connection stats raw.' + preprocessing: + - type: JSONPATH + parameters: + - '$.vpnStats[?(@.networkId==''{#NETWORK.ID}'' && @.senderUplink==''{#SENDER.UPLINK}'' && @.peerNetworkId==''{#PEER.NETWORK.ID}'' && @.receiverUplink==''{#RECEIVER.UPLINK}'')].first()' + master_item: + key: meraki.get.vpn.stats + tags: + - tag: component + value: raw + graph_prototypes: + - uuid: 0794dc9d06844ee89099322f60382fc7 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: jitter' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.vpn.stat.jitter.avg[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.vpn.stat.loss.max[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + - sortorder: '2' + color: 00611C + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.vpn.stat.jitter.min[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + - uuid: dd05787b5e0e4b4b870258b25c1a0503 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: latency' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.vpn.stat.latency.avg[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.vpn.stat.latency.max[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + - sortorder: '2' + color: 00611C + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.vpn.stat.latency.min[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + - uuid: c0ff7a5798cd4aa181223763d8962229 + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: loss' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.vpn.stat.loss.avg[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.vpn.stat.loss.max[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + - sortorder: '2' + color: 00611C + item: + host: 'Cisco Meraki organization by HTTP' + key: 'meraki.vpn.stat.loss.min[{#NETWORK.ID}, {#SENDER.UPLINK}, {#PEER.NETWORK.ID}, {#RECEIVER.UPLINK}]' + master_item: + key: meraki.get.vpn.stats + lld_macro_paths: + - lld_macro: '{#NETWORK.ID}' + path: $.networkId + - lld_macro: '{#NETWORK.NAME}' + path: $.networkName + - lld_macro: '{#PEER.NETWORK.ID}' + path: $.peerNetworkId + - lld_macro: '{#PEER.NETWORK.NAME}' + path: $.peerNetworkName + - lld_macro: '{#RECEIVER.UPLINK}' + path: $.receiverUplink + - lld_macro: '{#SENDER.UPLINK}' + path: $.senderUplink + preprocessing: + - type: JSONPATH + parameters: + - $.vpnStats + - uuid: 01fd5c5650524c46acb8950c5e934e68 + name: 'VPN statuses discovery' + type: DEPENDENT + key: meraki.vpn.statuses.discovery + delay: '0' + item_prototypes: + - uuid: 33586435a87a4151b089cd3671e278ec + name: 'VPN [{#NETWORK.NAME}]: device serial' + type: DEPENDENT + key: 'meraki.vpn.statuses.device.serial[{#NETWORK.ID}, {#NETWORK.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'VPN network device serial.' + preprocessing: + - type: JSONPATH + parameters: + - $.deviceSerial + master_item: + key: 'meraki.vpn.statuses.raw[{#NETWORK.ID}, {#NETWORK.NAME}]' + tags: + - tag: component + value: vpn + - uuid: 795e7163e5ec498fbef00aa6f90b5d13 + name: 'VPN [{#NETWORK.NAME}]: device status' + type: DEPENDENT + key: 'meraki.vpn.statuses.device.status[{#NETWORK.ID}, {#NETWORK.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'VPN network device status.' + preprocessing: + - type: JSONPATH + parameters: + - $.deviceStatus + master_item: + key: 'meraki.vpn.statuses.raw[{#NETWORK.ID}, {#NETWORK.NAME}]' + tags: + - tag: component + value: vpn + - uuid: 73e90efe0f0b427a909e0a8bef4d5d38 + name: 'VPN [{#NETWORK.NAME}]: mode' + type: DEPENDENT + key: 'meraki.vpn.statuses.mode[{#NETWORK.ID}, {#NETWORK.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'VPN network mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.vpnMode + master_item: + key: 'meraki.vpn.statuses.raw[{#NETWORK.ID}, {#NETWORK.NAME}]' + tags: + - tag: component + value: vpn + - uuid: baf0b63913564499a81065ea62cc8d53 + name: 'VPN [{#NETWORK.NAME}]: peers network ID' + type: DEPENDENT + key: 'meraki.vpn.statuses.peers.network.id[{#NETWORK.ID}, {#NETWORK.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'VPN network ID.' + preprocessing: + - type: JSONPATH + parameters: + - $.merakiVpnPeers..networkId.first() + error_handler: DISCARD_VALUE + master_item: + key: 'meraki.vpn.statuses.raw[{#NETWORK.ID}, {#NETWORK.NAME}]' + tags: + - tag: component + value: vpn + - uuid: e6c461828bbd4177a755adba16b2b53b + name: 'VPN [{#NETWORK.NAME}]: peers network name' + type: DEPENDENT + key: 'meraki.vpn.statuses.peers.network.name[{#NETWORK.ID}, {#NETWORK.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'VPN network name Meraki VPN peers.' + preprocessing: + - type: JSONPATH + parameters: + - $.merakiVpnPeers..networkName.first() + error_handler: DISCARD_VALUE + master_item: + key: 'meraki.vpn.statuses.raw[{#NETWORK.ID}, {#NETWORK.NAME}]' + tags: + - tag: component + value: vpn + - uuid: 712082be91af4e84a7300bd680fc7d41 + name: 'VPN [{#NETWORK.NAME}]: peers network reachability' + type: DEPENDENT + key: 'meraki.vpn.statuses.peers.reachability[{#NETWORK.ID}, {#NETWORK.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'VPN network Meraki VPN peers reachability.' + preprocessing: + - type: JSONPATH + parameters: + - $.merakiVpnPeers..reachability.first() + error_handler: DISCARD_VALUE + master_item: + key: 'meraki.vpn.statuses.raw[{#NETWORK.ID}, {#NETWORK.NAME}]' + tags: + - tag: component + value: vpn + - uuid: 0858c3efa5ea404ca94e05ca43671f05 + name: 'VPN [{#NETWORK.NAME}]: statuses raw' + type: DEPENDENT + key: 'meraki.vpn.statuses.raw[{#NETWORK.ID}, {#NETWORK.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'VPN statuses raw.' + preprocessing: + - type: JSONPATH + parameters: + - '$.vpnStatuses[?(@.networkId==''{#NETWORK.ID}'' && @.networkName==''{#NETWORK.NAME}'')].first()' + master_item: + key: meraki.get.vpn.stats + tags: + - tag: component + value: raw + - uuid: 2efc18211e414114a0301c6e8b8beda9 + name: 'VPN [{#NETWORK.NAME}]: third-party peers network ID' + type: DEPENDENT + key: 'meraki.vpn.statuses.third.party.peers.network.id[{#NETWORK.ID}, {#NETWORK.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Return network ID of the third-party VPN peers for the organization.' + preprocessing: + - type: JSONPATH + parameters: + - $.thirdPartyVpnPeers..networkId.first() + error_handler: DISCARD_VALUE + master_item: + key: 'meraki.vpn.statuses.raw[{#NETWORK.ID}, {#NETWORK.NAME}]' + tags: + - tag: component + value: vpn + - uuid: 0b5fd0a0419e4a38bb27a0b5b3b73301 + name: 'VPN [{#NETWORK.NAME}]: third-party peers network name' + type: DEPENDENT + key: 'meraki.vpn.statuses.third.party.peers.network.name[{#NETWORK.ID}, {#NETWORK.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Return network name of the third-party VPN peers for the organization.' + preprocessing: + - type: JSONPATH + parameters: + - $.thirdPartyVpnPeers..networkName.first() + error_handler: DISCARD_VALUE + master_item: + key: 'meraki.vpn.statuses.raw[{#NETWORK.ID}, {#NETWORK.NAME}]' + tags: + - tag: component + value: vpn + - uuid: 45e79c2918094fa5860d425d99e82201 + name: 'VPN [{#NETWORK.NAME}]: third-party peers network reachability' + type: DEPENDENT + key: 'meraki.vpn.statuses.third.party.peers.reachability[{#NETWORK.ID}, {#NETWORK.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Return network reachability of the third-party VPN peers for the organization.' + preprocessing: + - type: JSONPATH + parameters: + - $.thirdPartyVpnPeers..reachability.first() + error_handler: DISCARD_VALUE + master_item: + key: 'meraki.vpn.statuses.raw[{#NETWORK.ID}, {#NETWORK.NAME}]' + tags: + - tag: component + value: vpn + master_item: + key: meraki.get.vpn.stats + lld_macro_paths: + - lld_macro: '{#NETWORK.ID}' + path: $.networkId + - lld_macro: '{#NETWORK.NAME}' + path: $.networkName + preprocessing: + - type: JSONPATH + parameters: + - $.vpnStatuses + tags: + - tag: class + value: network + - tag: target + value: cisco-meraki-dashboard + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Cisco Meraki organization", e.g. {$HTTP.TLS.VERIFY:"Cisco Meraki organization"}.' + - macro: '{$MERAKI.ADMIN.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable admins in organization.' + - macro: '{$MERAKI.ADMIN.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered admins in organization.' + - macro: '{$MERAKI.ADMIN.ORG.ACCESS.MATCHES}' + value: '.*' + description: 'Filter of discoverable admins in organization.' + - macro: '{$MERAKI.ADMIN.ORG.ACCESS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered admins in organization.' + - macro: '{$MERAKI.API.URL}' + value: api.meraki.com/api/v1 + description: 'Cisco Meraki dashboard API URL, e.g., api.meraki.com/api/v1' + - macro: '{$MERAKI.CONFIG.CHANGE.TIMESPAN}' + value: '1200' + description: 'Timespan in seconds for gathering configuration change log. Used in the metric configuration and in the URL query.' + - macro: '{$MERAKI.DATA.TIMEOUT}' + value: '60' + description: 'Response timeout for an API.' + - macro: '{$MERAKI.HTTP_PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format [protocol://][username[:password]@]proxy.example.com[:port]. See documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + - macro: '{$MERAKI.LICENSE.EXPIRE}' + value: '86400' + description: 'Time in seconds for license to expire.' + - macro: '{$MERAKI.LICENSE.STATE.MATCHES}' + value: '.*' + description: 'Filter of discoverable license.' + - macro: '{$MERAKI.LICENSE.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered license.' + - macro: '{$MERAKI.LICENSE.TYPE.MATCHES}' + value: '.*' + description: 'Filter of discoverable license.' + - macro: '{$MERAKI.LICENSE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered license.' + - macro: '{$MERAKI.LLD.UPLINK.NETWORK.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in uplinks discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.UPLINK.NETWORK.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in uplinks discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.UPLINK.ROLE.MATCHES}' + value: '.*' + description: 'This macro is used in uplinks discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.UPLINK.ROLE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in uplinks discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.VPN.NETWORK.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in VPN stats discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.VPN.NETWORK.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in VPN stats discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.VPN.PEER.NETWORK.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in VPN stats discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.VPN.PEER.NETWORK.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in VPN stats discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.VPN.RECEIVER.UPLINK.MATCHES}' + value: '.*' + description: 'This macro is used in VPN stats discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.VPN.RECEIVER.UPLINK.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in VPN stats discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.VPN.SENDER.UPLINK.MATCHES}' + value: '.*' + description: 'This macro is used in VPN stats discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.LLD.VPN.SENDER.UPLINK.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in VPN stats discovery. Can be overridden on the host or linked template level.' + - macro: '{$MERAKI.SAML.ORG.ACCESS.MATCHES}' + value: '.*' + description: 'Filter of discoverable SAML role.' + - macro: '{$MERAKI.SAML.ORG.ACCESS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered SAML role.' + - macro: '{$MERAKI.SAML.ROLE.MATCHES}' + value: '.*' + description: 'Filter of discoverable SAML role.' + - macro: '{$MERAKI.SAML.ROLE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered SAML role.' + - macro: '{$MERAKI.TOKEN}' + type: SECRET_TEXT + description: 'Cisco Meraki dashboard API token.' + - macro: '{$MERAKI.VPN.LOSS.PERCENTILE}' + value: '90' + description: 'Average VPN connection loss percentage. Used in the trigger expression' + - macro: '{$MERAKI.VPN.STATS.TIMESPAN}' + value: '180' + description: 'Timespan in seconds for getting organization appliance VPN stats. Used in the metric configuration and in the JavaScript API query. Must be between 1 and 86400 seconds.' + dashboards: + - uuid: 2d10effbfff447f6937877f25d12646a + name: 'Meraki: General' + pages: + - name: 'Meraki: VPN stats' + widgets: + - type: graphprototype + name: latency + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Meraki organization by HTTP' + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: latency' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + name: loss + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Meraki organization by HTTP' + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: jitter' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + name: loss + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Meraki organization by HTTP' + name: 'VPN [{#NETWORK.NAME}][{#SENDER.UPLINK}]=>[{#PEER.NETWORK.NAME}][{#RECEIVER.UPLINK}]: loss' + - type: STRING + name: reference + value: AAAAB + - name: 'Meraki: License' + widgets: + - type: graphprototype + name: latency + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Meraki organization by HTTP' + name: 'Meraki: license [{#LICENSE.ID}] date' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: ec79f04ded684421b644b38500fe8b26 + name: 'Boolean format' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: af92df09c58c4c9287fe294b7b90e193 + name: 'License status' + mappings: + - value: '0' + newvalue: 'License required' + - value: '1' + newvalue: OK + - value: '10' + newvalue: unknown + - uuid: ba834580763b481a8800a0323fa61327 + name: 'License statuses' + mappings: + - value: '-1' + newvalue: 'null' + - uuid: e16992443a614d81a7f4186622709971 + name: 'Uplink status' + mappings: + - value: '0' + newvalue: failed + - value: '1' + newvalue: active + - value: '2' + newvalue: ready + - value: '3' + newvalue: 'not connected' + - value: '10' + newvalue: unknown diff --git a/Cisco_Nexus_9000_Series_by_SNMP.yaml b/Cisco_Nexus_9000_Series_by_SNMP.yaml new file mode 100644 index 0000000..31a9fc9 --- /dev/null +++ b/Cisco_Nexus_9000_Series_by_SNMP.yaml @@ -0,0 +1,2228 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 80fc469750f84061924662a98c33580c + template: 'Cisco Nexus 9000 Series by SNMP' + name: 'Cisco Nexus 9000 Series by SNMP' + description: | + Template Cisco Nexus 9000 Series + + MIBs used: + CISCO-ENHANCED-MEMPOOL-MIB + CISCO-ENTITY-FRU-CONTROL-MIB + CISCO-ENTITY-SENSOR-MIB + CISCO-PROCESS-MIB + ENTITY-MIB + EtherLike-MIB + IF-MIB + SNMPv2-MIB + SNMP-FRAMEWORK-MIB + CISCO-IMAGE-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/418396-discussion-thread-for-official-zabbix-templates-for-cisco + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 8eff7e6fc12c45f6b98a4fb89c44f03d + name: 'ICMP ping' + type: SIMPLE + key: icmpping + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2b9b678cb9fc407cb485136ddcf5953c + expression: 'max(/Cisco Nexus 9000 Series by SNMP/icmpping,#3)=0' + name: 'Cisco Nexus 9000: Unavailable by ICMP ping' + priority: HIGH + description: 'The last three attempts returned a timeout. Check the connectivity of a device.' + tags: + - tag: scope + value: availability + - uuid: cb04f67d7ea04894a9f143a7d27db09a + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d32cffe7dcef4873ac8bb4d86119ddaa + expression: 'min(/Cisco Nexus 9000 Series by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Nexus 9000 Series by SNMP/icmppingloss,5m)<100' + name: 'Cisco Nexus 9000: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Nexus 9000: Unavailable by ICMP ping' + expression: 'max(/Cisco Nexus 9000 Series by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: be862a0f8625484ebccb8a4e5255b683 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a51dc1f61eec4709b8f52b3df65eae86 + expression: 'avg(/Cisco Nexus 9000 Series by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Cisco Nexus 9000: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Cisco Nexus 9000: High ICMP ping loss' + expression: 'min(/Cisco Nexus 9000 Series by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco Nexus 9000 Series by SNMP/icmppingloss,5m)<100' + - name: 'Cisco Nexus 9000: Unavailable by ICMP ping' + expression: 'max(/Cisco Nexus 9000 Series by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 027bb218006e46238392afbb12d96ec6 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all the SNMP traps unmatched by the other snmptrap items.' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: system + - uuid: 566c78f548bc4d1c9157b4a3f41f083b + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: system.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB. + The textual identification of the contact person for the managed node (or: this node), together with the contact information of this person. If no contact information is known, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: bc245084de0047aaa7bc62234970e827 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.descr + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB. + The textual description of the entity. This value should include the full name and version identification number of the system's hardware type, software operating-system, and the networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 34022f907faa4a3e8a02c5e5f5c8c43a + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.149]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB.' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 9d42a842c591489bb984faad26cd7e63 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.149]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB.' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: b813bf6448fe4974911106e36b2d8888 + expression: 'change(/Cisco Nexus 9000 Series by SNMP/system.hw.serialnumber)=1 and length(last(/Cisco Nexus 9000 Series by SNMP/system.hw.serialnumber))>0' + name: 'Cisco Nexus 9000: Device has been replaced' + event_name: 'Cisco Nexus 9000: Device has been replaced (new serial number received)' + priority: INFO + description: 'The serial number of a device has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5f109dce62c942f794fecaf7038d691e + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: system.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB. + The physical location of this node (e.g., telephone closet, the third floor). + If the location is unknown, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 31ff1ef55d69461bbc5b4416c7a040be + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB. + The administratively-assigned name for this node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + triggers: + - uuid: cf98bf1ffe854a758f0006aaeb5096ab + expression: 'change(/Cisco Nexus 9000 Series by SNMP/system.name)=1 and length(last(/Cisco Nexus 9000 Series by SNMP/system.name))>0' + name: 'Cisco Nexus 9000: System name has changed' + event_name: 'Cisco Nexus 9000: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The system name has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a60cce9cf0464d6292d6b7934e9cfcd6 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: system.objectid + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB. + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprise's subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining "what kind of box" is being managed. + For example, if the vendor "Flintstones, Inc." was assigned the subtree 1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its "Fred Router". + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: e02a0a8de70547e4895b395b616919dd + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.25.1.1.1.2.5]' + key: system.sw.os + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: CISCO-IMAGE-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'CW_VERSION\$(.*?)\$' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 749b4c4b8f4e49caa6b239b15953ffb9 + expression: 'change(/Cisco Nexus 9000 Series by SNMP/system.sw.os)=1 and length(last(/Cisco Nexus 9000 Series by SNMP/system.sw.os))>0' + recovery_mode: NONE + name: 'Cisco Nexus 9000: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons that system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Nexus 9000: System name has changed' + expression: 'change(/Cisco Nexus 9000 Series by SNMP/system.name)=1 and length(last(/Cisco Nexus 9000 Series by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 83405503b84d4af292e6846ccbd8a877 + name: 'Uptime (snmp)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.6.3.10.2.1.3.0]' + key: system.uptime + trends: '0' + units: uptime + description: | + MIB: SNMP-FRAMEWORK-MIB::snmpEngineTime. + The number of seconds since the value of the `snmpEngineBoots` object has had a last change. + When incrementing this object's value would cause it to exceed its maximum, the `snmpEngineBoots` is incremented as if a re-initialization had occurred, + and this object's value consequently reverts to zero. + tags: + - tag: component + value: system + triggers: + - uuid: fc80a45e361842f09dfe9b047e1c6b5f + expression: 'last(/Cisco Nexus 9000 Series by SNMP/system.uptime)<10m' + name: 'Cisco Nexus 9000: Device has been restarted or reinitialized' + event_name: 'Cisco Nexus 9000: {HOST.NAME} has been restarted or reinitialized (uptime < 10m)' + priority: WARNING + description: 'The record of SNMP Boots has changed in less than 10 minutes. The restart of a device also counts.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: edb1d93d5fda47928dcb62223ada8b16 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: b60bca40b3b14f2384332103af74bd23 + expression: 'max(/Cisco Nexus 9000 Series by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco Nexus 9000: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Check the connectivity of a device and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: d1d6b8c10e83484e82e37b58c7004d9e + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.109.1.1.1.1.2]' + key: cpu.discovery + delay: 1h + description: | + You must use CISCO-PROCESS-MIB and its object `cpmCPUTotal5minRev` from the table called `cpmCPUTotalTable`, and indexed with `cpmCPUTotalPhysicalIndex`. + The table `cpmCPUTotalTable` allows CISCO-PROCESS-MIB to keep the CPU statistics for different physical entities in the router, such as different CPU chips, a group of CPUs, or CPUs in different modules/cards. + In the case of a single CPU, the `cpmCPUTotalTable` has only one entry. + item_prototypes: + - uuid: 0196f6b4431b4823860b89c712b2e5a8 + name: '#{#SNMPINDEX}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.109.1.1.1.1.8.{#SNMPINDEX}]' + key: 'system.cpu.util[{#SNMPINDEX}]' + delay: 5m + value_type: FLOAT + units: '%' + description: | + MIB: CISCO-PROCESS-MIB + The object name: `cpmCPUTotal5minRev` + + The MIB object `cpmCPUTotal5minRev` provides a more accurate view of the performance of the router over time than the MIB objects `cpmCPUTotal1minRev` and `cpmCPUTotal5secRev`. These MIB objects are not accurate because they look at the CPU with an interval of one minute and five seconds, respectively. These MIBs enable to monitor the trends and plan the capacity of your network. The recommended baseline rising threshold for the `cpmCPUTotal5minRev` is 90 percent. Depending on the platform, some routers that run at 90 percent, for example, 2500 series can exhibit performance degradation versus a high-end router, for example, the 7500 series, which can operate fine. + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 1ac7652bda474762aa0b0c354728307e + expression: 'min(/Cisco Nexus 9000 Series by SNMP/system.cpu.util[{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Cisco Nexus 9000: #{#SNMPINDEX}: High CPU utilization' + event_name: 'Cisco Nexus 9000: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 477691193b1e43b595f421644926d5a7 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Nexus 9000 Series by SNMP' + key: 'system.cpu.util[{#SNMPINDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 4h + - uuid: b0c97bd2037f405ba2b183456d01973e + name: 'Entity serial numbers discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_SN},1.3.6.1.2.1.47.1.1.1.1.11]' + key: entity_sn.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: '{$ENT_CLASS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + - macro: '{#ENT_SN}' + value: '{$ENT_SN.MATCHES}' + formulaid: B + description: 'The discovery of serial numbers of the entities from ENTITY-MIB.' + item_prototypes: + - uuid: 873d648619bf45168d8008ea32596838 + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB. + The object name: `entPhysicalSerialNum`. + The vendor-specific serial number string for the physical entity. The preferred value is the serial number string actually printed on the component itself (if present). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: serial-number + - tag: entity + value: '{#ENT_NAME}' + trigger_prototypes: + - uuid: 18e244c17d6c436f9e3b1d71d7bfd024 + expression: 'change(/Cisco Nexus 9000 Series by SNMP/system.hw.serialnumber[{#SNMPINDEX}])=1 and length(last(/Cisco Nexus 9000 Series by SNMP/system.hw.serialnumber[{#SNMPINDEX}]))>0' + name: 'Cisco Nexus 9000: {#ENT_NAME}: Device has been replaced' + event_name: 'Cisco Nexus 9000: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 4h + - uuid: a323e6f090e043058e2e932ed2456cba + name: 'Fan status discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.47.1.1.1.1.7]' + key: fan.status.discovery + delay: 1h + filter: + conditions: + - macro: '{#SNMPVALUE}' + value: '{$CISCO.LLD.FILTER.FAN.NAME.MATCHES}' + formulaid: A + description: 'The discovery of metrics for the fan''s status from ENTITY-MIB and CISCO-ENTITY-FRU-CONTROL-MIB.' + item_prototypes: + - uuid: 16047f29242444f284e81f6b87a22c50 + name: '{#SNMPVALUE}: Fan operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.117.1.4.1.1.1.{#SNMPINDEX}]' + key: 'sensor.fan.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENTITY-FRU-CONTROL-MIB. + The object name: `cefcFanTrayOperStatus`. + The operational state of the fan or a fan tray. + Possible values: + - unknown (1) - unknown; + - up (2) - powered on; + - down (3) - powered down; + - warning (4) - partial failure; needs replacement as soon as possible. + valuemap: + name: 'CISCO-ENTITY-FRU-CONTROL-MIB::cefcFanTrayOperStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: c06b2cf2183d40348b3f688a7fbcb479 + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.fan.status[{#SNMPINDEX}])=3' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: Fan is down' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The fan unit requires immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ec5a4c0aa2b947309d012fcaf1736c7e + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.fan.status[{#SNMPINDEX}])=1' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: Fan is in unknown state' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: INFO + description: 'The fan unit requires attention.' + dependencies: + - name: 'Cisco Nexus 9000: {#SNMPVALUE}: Fan is down' + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.fan.status[{#SNMPINDEX}])=3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 83494b0d4ec84709a18f8674c1fa50fd + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.fan.status[{#SNMPINDEX}])=4' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: WARNING + description: 'The fan unit requires attention.' + dependencies: + - name: 'Cisco Nexus 9000: {#SNMPVALUE}: Fan is down' + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.fan.status[{#SNMPINDEX}])=3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 4h + - uuid: 2714f855584347329b2f175a85198f80 + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.221.1.1.1.1.3]' + key: memory.discovery + delay: 1h + description: | + The discovery of `ciscoMemoryPoolTable` - the table that contains monitoring entries of the memory pool. + For more details see "How to Get Free and Largest Block of Contiguous Memory Using SNMP": + http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15216-contiguous-memory.html + item_prototypes: + - uuid: 566a28e0151f4e54a8dd7fceae39ffab + name: '{#SNMPVALUE}: Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.221.1.1.1.1.20.{#SNMPINDEX}]' + key: 'vm.memory.free[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-ENHANCED-MEMPOOL-MIB. + The object name: `cempMemPoolHCFree`. + It indicates the number of bytes from the memory pool that are currently unused on the physical entity. This object is the 64-bit version of `cempMemPoolFree`. + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: e1d336ee79b6448ea9d6a28107314a42 + name: '{#SNMPVALUE}: Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.221.1.1.1.1.18.{#SNMPINDEX}]' + key: 'vm.memory.used[{#SNMPINDEX}]' + units: B + description: | + MIB: CISCO-ENHANCED-MEMPOOL-MIB. + The object name: `cempMemPoolHCUsed`. + It indicates the number of bytes from the memory pool that are currently in use by applications on the physical entity. This object is the 64-bit version of `cempMemPoolUsed`. + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + - uuid: a56f71ab5bc64aa8884dc540baefe91a + name: '{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[{#SNMPINDEX}])/(last(//vm.memory.free[{#SNMPINDEX}])+last(//vm.memory.used[{#SNMPINDEX}]))*100' + description: 'The memory utilization expressed in %.' + tags: + - tag: component + value: memory + - tag: memory + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: d7f6de21b2434a81b2b116a98a59b1ed + expression: 'min(/Cisco Nexus 9000 Series by SNMP/vm.memory.util[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: High memory utilization' + event_name: 'Cisco Nexus 9000: {#SNMPVALUE}: High memory utilization ( >{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 12fcbac74d9b4874b6065c20bd6b2901 + name: '{#SNMPVALUE} ({#SNMPINDEX}): Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Nexus 9000 Series by SNMP' + key: 'vm.memory.util[{#SNMPINDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 4h + - uuid: cd6bc93993e44b61aca57f0486e61756 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'The discovery of interfaces from IF-MIB.' + item_prototypes: + - uuid: ad58c092ed604092a06ba518779c3294 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB. + The number of inbound packets, which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be the necessity to free up the buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of the ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cbf3ec76d241416caf812eccdf91ec1b + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB. + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of the ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9d60de695fa243b4b933766b668de946 + expression: 'min(/Cisco Nexus 9000 Series by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Nexus 9000 Series by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): High input error rate' + event_name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): High input error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE}' + priority: WARNING + description: 'It recovers when it goes below 80% of the {$IF.ERRORS.WARN:"{#IFNAME}"} threshold.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: | + {$IFCONTROL:"{#IFNAME}"}=1 + and last(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}])=2 + and change(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}]) + tags: + - tag: scope + value: performance + - uuid: 7bce2682f482489c8c27aafc9ddcb205 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB. + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of the ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4751c9b0380d465799b013906e404e14 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[{#SNMPINDEX}]' + description: | + MIB: IF-MIB. + The number of outbound packets, which were chosen to be discarded, even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of the ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 36185d5b8239434ba2c85706cd890148 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[{#SNMPINDEX}]' + description: | + MIB: IF-MIB. + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of the ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d1cc4527260346e59b86577e0ae9cc0c + expression: 'min(/Cisco Nexus 9000 Series by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Nexus 9000 Series by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): High output error rate' + event_name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): High output error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it goes below 80% of the {$IF.ERRORS.WARN:"{#IFNAME}"} threshold.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: | + {$IFCONTROL:"{#IFNAME}"}=1 + and last(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}])=2 + and change(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}]) + tags: + - tag: scope + value: performance + - uuid: 669337baef364a46bc8ad34bd4c97494 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB. + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of the ifOutOctets. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of the ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2d7507061f1e49debfbbd78e5e666a13 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB. + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of "n", then the speed of the interface is somewhere in the range from n-500,000 to n+499,999. + For the interfaces, which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer, which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 07cf5068d5584affa0b35aea5f63e17c + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[{#SNMPINDEX}]' + description: | + MIB: IF-MIB. + The current operational state of the interface: + - The testing (3) state indicates that no operational packet scan be passed. + - If ifAdminStatus is down (2), then ifOperStatus should be down (2). + - If ifAdminStatus is changed to up (1), then ifOperStatus should change to up (1), provided the interface is ready to transmit and receive network traffic. + - It should change to dormant (5) if the interface is waiting for external actions, such as a serial line waiting for an incoming connection. + - It should remain in the down (2) state if and only when there is a fault that prevents it from going to the up (1) state. + - It should remain in the notPresent (6) state if the interface has missing components (typically, hardware). + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d16b8b35258a4c4b8e4338c2577f198b + expression: | + {$IFCONTROL:"{#IFNAME}"}=1 + and last(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}])=2 + and change(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}]) + name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. Use $IFCONTROL macro with context "{#IFNAME}" to void trigger firing on specific interfaces. Values: + - 0 : Marks an interface as not important. Trigger does not fire when interface is down. + - 1 : Default value to fire the trigger when interface is down + 3. change(//net.if.status[{#IFNAME}]) - condition prevents firing of trigger if status did not change. It helps in cases, when interfaces were initially down. + BEWARE, manual close will ceasefire until at least two status changes happens again! + tags: + - tag: scope + value: availability + - uuid: f2353404b957494683ade2d0c0a24e05 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[{#SNMPINDEX}]' + description: | + MIB: IF-MIB. + The type of an interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA) + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 06a31bd057814786aac4f42ccdf57fdf + expression: | + change(/Cisco Nexus 9000 Series by SNMP/net.if.speed[{#SNMPINDEX}])<0 + and last(/Cisco Nexus 9000 Series by SNMP/net.if.speed[{#SNMPINDEX}])>0 + and find(/Cisco Nexus 9000 Series by SNMP/net.if.type[{#SNMPINDEX}],#1,"regexp","^(6|7|11|62|69|117)$") + and last(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}])<>2 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Cisco Nexus 9000 Series by SNMP/net.if.speed[{#SNMPINDEX}])>0 and last(/Cisco Nexus 9000 Series by SNMP/net.if.speed[{#SNMPINDEX}],#2)>0) + or last(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}])=2 + name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of issues with autonegotiation. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: | + {$IFCONTROL:"{#IFNAME}"}=1 + and last(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}])=2 + and change(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}]) + tags: + - tag: scope + value: performance + - uuid: 9dc308a5f30a45689eb2b9b3c2d9d453 + expression: | + (avg(/Cisco Nexus 9000 Series by SNMP/net.if.in[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Nexus 9000 Series by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Nexus 9000 Series by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Nexus 9000 Series by SNMP/net.if.in[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Nexus 9000 Series by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage' + event_name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): High inbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'In: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: | + {$IFCONTROL:"{#IFNAME}"}=1 + and last(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}])=2 + and change(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}]) + tags: + - tag: scope + value: performance + - uuid: 0036e4b0761740aea6f0b5c305861a4d + expression: | + (avg(/Cisco Nexus 9000 Series by SNMP/net.if.out[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco Nexus 9000 Series by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/Cisco Nexus 9000 Series by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Cisco Nexus 9000 Series by SNMP/net.if.out[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco Nexus 9000 Series by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage' + event_name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): High outbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'Out: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: | + {$IFCONTROL:"{#IFNAME}"}=1 + and last(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}])=2 + and change(/Cisco Nexus 9000 Series by SNMP/net.if.status[{#SNMPINDEX}]) + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 34e5de605fd54d43979c2ed35b0bdc80 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Nexus 9000 Series by SNMP' + key: 'net.if.in[{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: 2774A4 + item: + host: 'Cisco Nexus 9000 Series by SNMP' + key: 'net.if.out[{#SNMPINDEX}]' + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'Cisco Nexus 9000 Series by SNMP' + key: 'net.if.out.errors[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'Cisco Nexus 9000 Series by SNMP' + key: 'net.if.in.errors[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Cisco Nexus 9000 Series by SNMP' + key: 'net.if.out.discards[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Cisco Nexus 9000 Series by SNMP' + key: 'net.if.in.discards[{#SNMPINDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 4h + - uuid: 73133517383046b58c8039363a907fe4 + name: 'EtherLike discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'The discovery of interfaces from IF-MIB and EtherLike-MIB. The interfaces that have up (1) operational status are discovered.' + item_prototypes: + - uuid: 17792bed5be34b21a4c8a4069374d7f7 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB. + The object name: dot3StatsDuplexStatus. + The current mode of operation of the MAC entity 'unknown' indicates that the current duplex mode could not be determined. + The management control of the duplex mode is accomplished through the MAU MIB. + When the interface does not support autonegotiation, or when autonegotiation is not enabled, the duplex mode is controlled using ifMauDefaultType. + When autonegotiation is supported and enabled, duplex mode is controlled using ifMauAutoNegAdvertisedBits. + In either case, the currently operating duplex mode is reflected in both: in this object and in ifMauType. + Note that this object provides redundant information with ifMauType. + Normally, redundant objects are discouraged. + However, in this instance, it allows the management application to determine the duplex status of an interface without having to know every possible value of ifMauType. + This was felt to be sufficiently valuable to justify the redundancy. + For the reference see: [IEEE 802.3 Std.], 30.3.1.1.32, aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c1f6a9e7c53c43a6ae19fa249236157d + expression: 'last(/Cisco Nexus 9000 Series by SNMP/net.if.duplex[{#SNMPINDEX}])=2' + name: 'Cisco Nexus 9000: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Check the autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = typeof(element[field]) === 'undefined' ? '' : element[field]; + }); + }); + return JSON.stringify(data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 4h + - uuid: 8a6f70d8eaa94e1dbd45f199c231d770 + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.47.1.1.1.1.7]' + key: psu.discovery + delay: 1h + filter: + conditions: + - macro: '{#SNMPVALUE}' + value: '{$CISCO.LLD.FILTER.PSU.NAME.MATCHES}' + formulaid: A + description: 'The discovery of power supplies from ENTITY-MIB and CISCO-ENTITY-FRU-CONTROL-MIB.' + item_prototypes: + - uuid: 8a083945d7e244099095b022169de86c + name: '{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.117.1.1.2.1.2.{#SNMPINDEX}]' + key: 'sensor.psu.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENTITY-FRU-CONTROL-MIB. + The object name: cefcFRUPowerOperStatus. + The Operational field-replaceable unit (FRU) Status types. + The valid values are: + - offEnvOther (1): FRU is powered off because of a problem not listed below; + - on (2): FRU is powered on; + - offAdmin (3): administratively off; + - offDenied (4): FRU is powered off because available system power is insufficient; + - offEnvPower (5): FRU is powered off because of a power problem in the FRU. For example, the FRU's power translation (DC-DC converter) or distribution failed; + - offEnvTemp (6): FRU is powered off because of temperature problem; + - offEnvFan (7): FRU is powered off because of fan problems; + - failed (8): FRU is in failed state; + - onButFanFail (9): FRU is on but fan has failed; + - offCooling (10): FRU is powered off because of the system's insufficient cooling capacity; + - offConnectorRating (11): FRU is powered off because of the system's connector rating exceeded; + - onButInlinePowerFail (12): The FRU is on but no inline power is being delivered as the data/inline power component of the FRU has failed. + valuemap: + name: 'CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerOperStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 4bc31f8605ab4899979d2f3385cd7b7a + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.psu.status[{#SNMPINDEX}])=8' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: PSU is in failed state' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: HIGH + description: 'The FRU is in a failed state.' + tags: + - tag: scope + value: availability + - uuid: a930e2d032804dc880ebe51c4fd0dd07 + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.psu.status[{#SNMPINDEX}])=3' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: PSU is off: Administratively' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: INFO + description: 'The FRU is administratively off.' + dependencies: + - name: 'Cisco Nexus 9000: {#SNMPVALUE}: PSU is in failed state' + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.psu.status[{#SNMPINDEX}])=8' + tags: + - tag: scope + value: availability + - uuid: 6e2517ce92c949589539edece3cb5eb5 + expression: 'find(/Cisco Nexus 9000 Series by SNMP/sensor.psu.status[{#SNMPINDEX}],#1,"regexp",{$PSU.PROBLEM.STATES})' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: PSU is off or out of optimal state' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: AVERAGE + description: | + The PSU requires attention. Compare the current state from operational data with the table below: + - offEnvOther (1): FRU is powered off because of a problem not listed below; + - on (2): FRU is powered on; + - offAdmin (3): administratively off; + - offDenied (4): FRU is powered off because available system power is insufficient; + - offEnvPower (5): FRU is powered off because of a power problem in the FRU. For example, the FRU's power translation (DC-DC converter) or distribution failed; + - offEnvTemp (6): FRU is powered off because of temperature problem; + - offEnvFan (7): FRU is powered off because of fan problems; + - failed (8): FRU is in failed state; + - onButFanFail (9): FRU is on but fan has failed; + - offCooling (10): FRU is powered off because of the system's insufficient cooling capacity; + - offConnectorRating (11): FRU is powered off because of the system's connector rating exceeded; + - onButInlinePowerFail (12): The FRU is on but no inline power is being delivered as the data/inline power component of the FRU has failed. + dependencies: + - name: 'Cisco Nexus 9000: {#SNMPVALUE}: PSU is in failed state' + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.psu.status[{#SNMPINDEX}])=8' + tags: + - tag: scope + value: availability + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 4h + - uuid: bb7d48018f8044ec9bb4fd20d6c52106 + name: 'Temperature sensors discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_TYPE},1.3.6.1.4.1.9.9.91.1.1.1.1.1,{#SENSOR_SCALE},1.3.6.1.4.1.9.9.91.1.1.1.1.2,{#SENSOR_PRECISION},1.3.6.1.4.1.9.9.91.1.1.1.1.3,{#SNMPVALUE},1.3.6.1.2.1.47.1.1.1.1.7]' + key: temperature.discovery + delay: 1h + description: 'The discovery of temperature sensors from CISCO-ENTITY-SENSOR-MIB and ENTITY-MIB. The sensors that have celsius (8) `entSensorType` are discovered. The scale of gathered values is taken from the `entSensorScale` and the precision from `entSensorPrecision`, both applied in item preprocessing.' + item_prototypes: + - uuid: d4e13b5e26164a2ca240bfb93fdd9b77 + name: '{#SNMPVALUE}: Temperature sensor status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.91.1.1.1.1.5.{#SNMPINDEX}]' + key: 'sensor.temp.status[{#SNMPINDEX}]' + description: | + MIB: CISCO-ENTITY-SENSOR-MIB. + The object name: entSensorStatus. + This variable indicates the present operational status of the sensor. + Possible values: + - ok (1): means the agent can read the sensor value; + - unavailable (2): means that the agent presently can not report the sensor value; + - nonoperational (3) means that the agent believes the sensor is broken. The sensor could have a hard failure (e.g., disconnected wire), or a soft failure (e.g., out-of-range, jittery, or wildly fluctuating readings). + valuemap: + name: 'CISCO-ENTITY-SENSOR-MIB::entSensorStatus' + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: 938eb8e3d3f4486b89316a7b00aa5600 + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.temp.status[{#SNMPINDEX}])=2' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: Temperature sensor is not available' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: WARNING + description: 'It means that the agent presently can not report the sensor value.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ec63ba043da64c8abd4c4a9e2dbc297f + expression: 'last(/Cisco Nexus 9000 Series by SNMP/sensor.temp.status[{#SNMPINDEX}])=3' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: Temperature sensor is not operational' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: HIGH + description: 'It means that the agent considers that the sensor is broken. The sensor could have a hard failure (e.g., disconnected wire), or a soft failure (e.g., out-of-range, jittery, or wildly fluctuating readings).' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 87bb149a7c464318be942011b678a704 + name: '{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.91.1.1.1.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[{#SNMPINDEX}]' + value_type: FLOAT + units: '!°C' + description: | + MIB: CISCO-ENTITY-SENSOR-MIB. + The object name: entSensorValue. + This variable reports the most recent measurement seen by the sensor. + preprocessing: + - type: MULTIPLIER + parameters: + - '{#SENSOR_SCALE}' + - type: MULTIPLIER + parameters: + - '{#SENSOR_PRECISION}' + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SNMPVALUE}' + trigger_prototypes: + - uuid: ca54affa31654e358ad2be30b8e6dc72 + expression: 'avg(/Cisco Nexus 9000 Series by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Nexus 9000 Series by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Cisco Nexus 9000: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}°C' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: HIGH + description: 'This trigger uses the values of the temperature sensor.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 29f9c6e22d714a18997683ad8979239a + expression: 'avg(/Cisco Nexus 9000 Series by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Nexus 9000 Series by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Cisco Nexus 9000: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}°C"}' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: WARNING + description: 'This trigger uses the values of the temperature sensor.' + dependencies: + - name: 'Cisco Nexus 9000: {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/Cisco Nexus 9000 Series by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/Cisco Nexus 9000 Series by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0ce9b389385f482c9bea0c52822be85d + expression: 'avg(/Cisco Nexus 9000 Series by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco Nexus 9000 Series by SNMP/sensor.temp.value[{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}-3' + name: 'Cisco Nexus 9000: {#SNMPVALUE}: Temperature is too low' + event_name: 'Cisco Nexus 9000: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}°C"}' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 821343c6c4614842b05c85ba57e054ae + name: '{#SNMPVALUE}: Temperature' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Cisco Nexus 9000 Series by SNMP' + key: 'sensor.temp.value[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var sensors, + scales = { '9': 1, '8': 0.001, '7': 0.000001 }, + result; + + try { + sensors = JSON.parse(value); + } catch (e) { + throw "Failed to parse JSON of temperature discovery."; + } + + result = sensors.filter(function (sensor) { + var precision = parseInt(sensor['{#SENSOR_PRECISION}'], 10); + + if (sensor['{#SENSOR_TYPE}'] !== '8' || typeof (scales[sensor['{#SENSOR_SCALE}']]) === 'undefined' || isNaN(precision)) { + return false; + } + + sensor['{#SENSOR_SCALE}'] = scales[sensor['{#SENSOR_SCALE}']]; + sensor['{#SENSOR_PRECISION}'] = precision < 0 ? 1 : Math.pow(10, -precision); + return true; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 4h + tags: + - tag: class + value: network + - tag: target + value: cisco + - tag: target + value: cisco-nexus + - tag: target + value: n9000 + macros: + - macro: '{$CISCO.LLD.FILTER.FAN.NAME.MATCHES}' + value: '^(?:Fan Module-\d+|PowerSupply-\d+ Fan-\d+)$' + description: 'It leaves only the matching fan names as indicated in the filter string.' + - macro: '{$CISCO.LLD.FILTER.PSU.NAME.MATCHES}' + value: '^(?:PowerSupply-\d+)$' + description: 'It leaves only the matching power supply names as indicated in the filter string.' + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization in %.' + - macro: '{$ENT_CLASS.NOT_MATCHES}' + value: 3|8 + description: 'The filter excludes chassis (3) and sensor (8) classes from Serial discovery. The chassis (3) is polled with a regular item; sensors (8) never report a serial number, which otherwise breaks filter evaluation.' + - macro: '{$ENT_SN.MATCHES}' + value: .+ + description: 'The filter retrieves only existing serial number strings.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Threshold for the warning level of the interface error packet rate.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Maximum threshold of interface bandwidth utilization in %. Can be used with the interface name as context.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for operational state of the interface for link down trigger. Can be used with interface name as context.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold for maximum memory utilization in %.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'This macro is used to include network interfaces by their administrative status.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'If the administrative status is down (2), then an interface is excluded.' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their alias.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their alias.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their description.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their description.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their name.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'It filters out `loopbacks`, `nulls`, `docker veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'This macro is used to include network interfaces by their operational status.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'If the operational status is `notPresent (6)`, then an interface is excluded.' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'This macro is used to include network interfaces by their type.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used to exclude network interfaces by their type.' + - macro: '{$PSU.PROBLEM.STATES}' + value: ^(1|4|5|6|7|9|10|11|12)$ + description: 'The PSU states list for average trigger priority.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + description: 'Critical threshold of the temperature in °C.' + - macro: '{$TEMP_CRIT:regex:"BACK"}' + value: '70' + description: 'Critical threshold for the back temperature in °C.' + - macro: '{$TEMP_CRIT:regex:"CPU"}' + value: '90' + description: 'Critical threshold of the CPU temperature in °C.' + - macro: '{$TEMP_CRIT:regex:"FRONT"}' + value: '80' + description: 'Critical threshold of the front temperature in °C.' + - macro: '{$TEMP_CRIT:regex:"SUN1"}' + value: '110' + description: 'Critical threshold of the SUN1 temperature in °C.' + - macro: '{$TEMP_CRIT:regex:"Transceiver"}' + value: '75' + description: 'Critical threshold of the Transceiver temperature in °C.' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + description: 'Critical threshold of the low temperature in °C.' + - macro: '{$TEMP_WARN}' + value: '50' + description: 'Warning threshold of the temperature in °C.' + - macro: '{$TEMP_WARN:regex:"BACK"}' + value: '42' + description: 'Warning threshold for the back temperature in °C.' + - macro: '{$TEMP_WARN:regex:"CPU"}' + value: '80' + description: 'Warning threshold of the CPU temperature in °C.' + - macro: '{$TEMP_WARN:regex:"FRONT"}' + value: '70' + description: 'Warning threshold for the front temperature in °C.' + - macro: '{$TEMP_WARN:regex:"SUN1"}' + value: '90' + description: 'Warning threshold of the SUN1 temperature in °C.' + - macro: '{$TEMP_WARN:regex:"Transceiver"}' + value: '70' + description: 'Warning threshold of the Transceiver temperature in °C.' + dashboards: + - uuid: 370f653fc1eb4600afdc5c37fe7b9d0d + name: 'Cisco Nexus 9000 Series: Overview' + pages: + - name: Resources + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Nexus 9000 Series by SNMP' + name: '#{#SNMPINDEX}: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Nexus 9000 Series by SNMP' + name: '{#SNMPVALUE} ({#SNMPINDEX}): Memory utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Nexus 9000 Series by SNMP' + name: '{#SNMPVALUE}: Temperature' + - type: STRING + name: reference + value: AAAAC + - name: 'Network traffic' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco Nexus 9000 Series by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: aadba98c69b14fbab88e7c37cab158c6 + name: 'CISCO-ENTITY-FRU-CONTROL-MIB::cefcFanTrayOperStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: up + - value: '3' + newvalue: down + - value: '4' + newvalue: warning + - uuid: 166e0ff278184ab7b574833bb0dbaec1 + name: 'CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerOperStatus' + mappings: + - value: '1' + newvalue: offEnvOther + - value: '2' + newvalue: 'on' + - value: '3' + newvalue: offAdmin + - value: '4' + newvalue: offDenied + - value: '5' + newvalue: offEnvPower + - value: '6' + newvalue: offEnvTemp + - value: '7' + newvalue: offEnvFan + - value: '8' + newvalue: failed + - value: '9' + newvalue: onButFanFail + - value: '10' + newvalue: offCooling + - value: '11' + newvalue: offConnectorRating + - value: '12' + newvalue: onButInlinePowerFail + - uuid: 2c29188a8b70409eb9735be0caab0393 + name: 'CISCO-ENTITY-SENSOR-MIB::entSensorStatus' + mappings: + - value: '1' + newvalue: ok + - value: '2' + newvalue: unavailable + - value: '3' + newvalue: nonoperational + - uuid: feee58fb80214a779f809b5b5ea098d4 + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 29398bbb22bd4743944d117f17973bcb + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: dc2b653516504e14a19afc2d2d9f6ef1 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: e523e2589daf46be96abf630047538cd + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 7b2dabb391bf41d1ab5084248e77efed + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown diff --git a/Cisco_SD-WAN_by_HTTP.yaml b/Cisco_SD-WAN_by_HTTP.yaml new file mode 100644 index 0000000..f974034 --- /dev/null +++ b/Cisco_SD-WAN_by_HTTP.yaml @@ -0,0 +1,677 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: e5cf4e7ac41a470b99e4262d1c5ee104 + template: 'Cisco SD-WAN by HTTP' + name: 'Cisco SD-WAN by HTTP' + description: | + Discover Cisco SD-WAN devices by HTTP with script item usage. + + Setup: + 1. Put your username and password from Cisco SD-WAN vManage into {$SDWAN.API.USERNAME} and {$SDWAN.API.PASSWORD} macros. + 2. Set your Cisco SD-WAN vManage URL as {$SDWAN.API.URL} macro value. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + - name: 'Templates/Network devices' + items: + - uuid: efc5456a02d04ade93cd54b145ebc24d + name: 'Authentication item errors' + type: DEPENDENT + key: sd_wan.auth.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the data item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.authentication + tags: + - tag: component + value: error + triggers: + - uuid: 9f98b660a10a4891910b0e3b42f90403 + expression: 'length(last(/Cisco SD-WAN by HTTP/sd_wan.auth.errors))>0' + name: 'Cisco SD-WAN: Authentication has failed' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 5aa5a643a3cf42148454507da22aeb17 + name: Authentication + type: SCRIPT + key: sd_wan.authentication + delay: '{$SDWAN.AUTH.FREQUENCY}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + cookies = [], + token = "", + error_msg = ""; + + function authenticate(url) { + tls.checkURL(url); + var payload = 'j_username=' + encodeURIComponent(params.username) + + '&j_password=' + encodeURIComponent(params.password); + request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = request.post(url, payload); + Zabbix.log(4, '[ SD-WAN API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null && response != "") { + throw 'Authentication failed.'; + } + + var headers = request.getHeaders(); + for (key in headers) { + if (key.toLowerCase() == 'set-cookie') { + var entries = headers[key].split(','); + for (idx in entries) { + var value = entries[idx].split(';')[0]; + cookies.push(value); + } + } + } + }; + + function getToken(url) { + tls.checkURL(url); + response = request.get(url); + Zabbix.log(4, '[ SD-WAN API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + var headers = request.getHeaders(); + for (key in headers) { + if (key.toLowerCase() == 'content-type' && headers[key] != 'application/json') { + throw 'Something went wrong while getting the authentication token. Check debug log for more information.'; + } + } + + return response; + }; + + try { + + ['username', 'password', 'url'].forEach(function (field) { + var macro = '{$SDWAN.API.' + field.toUpperCase() + '}'; + if (params[field] === macro || params[field] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[field] === 'undefined') { + throw 'Please set \'' + field + '\' script input parameter to ' + macro + ' macro value.'; + } + }); + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$SDWAN.HTTP_PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + authenticate(params.url + 'j_security_check'); + token = getToken(params.url + 'dataservice/client/token'); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'cookie': cookies.join('; '), + 'token': token, + 'error': error_msg.toString() + }); + description: | + Cisco SD-WAN authentication with service account parameters and temporary-generated token usage. + Returns an authentication token and session id; it is required only once and is used for all dependent script items. + A session will expire after 30 minutes of inactivity or after 24 hours, which is the total lifespan of a session. + Check the template documentation for the details. + timeout: '{$SDWAN.DATA.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$SDWAN.HTTP_PROXY}' + - name: password + value: '{$SDWAN.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco SD-WAN"}' + - name: url + value: '{$SDWAN.API.URL}' + - name: username + value: '{$SDWAN.API.USERNAME}' + tags: + - tag: component + value: raw + - uuid: bbb2713e2e174c558315de8b2fd55f0f + name: 'Get devices' + type: DEPENDENT + key: sd_wan.get.devices + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all devices from Cisco SD-WAN API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Cisco SD-WAN"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + devices = [], + error_msg = "", + url = "{$SDWAN.API.URL}", + http_proxy = "{$SDWAN.HTTP_PROXY}"; + + function getHttpData(url, token, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + request.addHeader('X-XSRF-TOKEN: ' + token); + response = request.get(url); + Zabbix.log(4, '[ SD-WAN API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from SD-WAN API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['token', 'cookie'].forEach(function (field) { + if (creds[field] === null || creds[field] == "" || typeof creds[field] === 'undefined') { + throw 'Unexpected token value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != "") ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$SDWAN.API.URL}') { + throw 'Please change {' + '$SDWAN.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url; + } + + if (!url.endsWith('/')) { + url += '/'; + } + + if (http_proxy !== '{' + '$SDWAN.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + devices = getHttpData( + url + 'dataservice/device', + creds.token, + creds.cookie + ); + + if (Array.isArray(devices.data)) { + devices = devices.data; + } + else { + throw 'Failed to parse response received from SD-WAN API. Check debug log for more information.'; + } + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'devices': devices.map(function (device) { + obj = { + 'name': device['host-name'], + 'token': creds.token, + 'cookie': creds.cookie, + 'id': device['deviceId'], + 'uuid': device['uuid'], + 'type': device['device-type'], + 'model': device['device-model'], + 'ip': device['system-ip'], + 'int_ip': device['local-system-ip'], + 'cert_valid': device['certificate-validity'] + }; + + return obj; + }), + 'error': error_msg.toString() + }); + master_item: + key: sd_wan.authentication + tags: + - tag: component + value: raw + - uuid: 172dd697ad7b4b5d907b8d30faef7c52 + name: 'Get devices item errors' + type: DEPENDENT + key: sd_wan.get.devices.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the data item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.get.devices + tags: + - tag: component + value: error + triggers: + - uuid: 9cfcfbb6b6264c19a831a71cc47483a9 + expression: 'length(last(/Cisco SD-WAN by HTTP/sd_wan.get.devices.errors))>0' + name: 'Cisco SD-WAN: There are errors in the ''Get devices'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: eb1ffb2430c8450981f86174ac71456e + name: 'Invalid certificates' + type: DEPENDENT + key: sd_wan.invalid_certificates + delay: '0' + description: 'Number of invalid certificates.' + preprocessing: + - type: JSONPATH + parameters: + - '$.devices[?(@.cert_valid != "Valid")].length()' + master_item: + key: sd_wan.get.devices + tags: + - tag: component + value: system + - uuid: 6ad73678b22346849ce5df9656e6edae + name: 'Total devices' + type: DEPENDENT + key: sd_wan.total.devices + delay: '0' + description: 'The total number of all devices.' + preprocessing: + - type: JSONPATH + parameters: + - $.devices.length() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.get.devices + tags: + - tag: component + value: system + - uuid: aee4253ce4e143ddad3d7776ebe72055 + name: 'Number of vBond devices' + type: DEPENDENT + key: sd_wan.vbond.devices + delay: '0' + description: 'The total number of vBond devices.' + preprocessing: + - type: JSONPATH + parameters: + - '$.devices[?(@.type == "vbond")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.get.devices + tags: + - tag: component + value: system + - uuid: 8e0b166d7cac435bb74fba811c5881af + name: 'Number of vEdge devices' + type: DEPENDENT + key: sd_wan.vedge.devices + delay: '0' + description: 'The total number of vEdge devices.' + preprocessing: + - type: JSONPATH + parameters: + - '$.devices[?(@.type == "vedge")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.get.devices + tags: + - tag: component + value: system + - uuid: e419f8b060af44b0ad6f52d5613b0973 + name: 'Number of vManage devices' + type: DEPENDENT + key: sd_wan.vmanage.devices + delay: '0' + description: 'The total number of vManage devices.' + preprocessing: + - type: JSONPATH + parameters: + - '$.devices[?(@.type == "vmanage")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.get.devices + tags: + - tag: component + value: system + - uuid: 385cb04360ea4d34b2ae04c6879ec8fa + name: 'Number of vSmart devices' + type: DEPENDENT + key: sd_wan.vsmart.devices + delay: '0' + description: 'The total number of vSmart devices.' + preprocessing: + - type: JSONPATH + parameters: + - '$.devices[?(@.type == "vsmart")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.get.devices + tags: + - tag: component + value: system + discovery_rules: + - uuid: 2e445f8991f842e09fc206ed3e392038 + name: 'Devices discovery' + type: DEPENDENT + key: sd_wan.devices.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$SDWAN.DEVICE.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$SDWAN.DEVICE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovering devices from Cisco SD-WAN API.' + host_prototypes: + - uuid: 8c53a2dded4a47cba1eb3398aff888d7 + host: '{#UUID}' + name: '[{#TYPE}] {#NAME}' + inventory_mode: AUTOMATIC + group_links: + - group: + name: Applications + group_prototypes: + - name: 'Cisco SD-WAN/{#TYPE}' + templates: + - name: 'Cisco SD-WAN device by HTTP' + macros: + - macro: '{$SDWAN.AUTH.SESSION}' + value: '{#COOKIE}' + description: 'Cisco SD-WAN authentication session.' + - macro: '{$SDWAN.AUTH.TOKEN}' + value: '{#TOKEN}' + description: 'Cisco SD-WAN authentication token.' + - macro: '{$SDWAN.DEVICE_ID}' + value: '{#ID}' + description: 'ID of the device.' + tags: + - tag: model + value: '{#MODEL}' + custom_interfaces: 'YES' + interfaces: + - default: 'NO' + ip: '{#INT.IP}' + dns: internal.ip + - ip: '{#IP}' + dns: external.ip + master_item: + key: sd_wan.get.devices + lld_macro_paths: + - lld_macro: '{#COOKIE}' + path: $.cookie + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#INT.IP}' + path: $.int_ip + - lld_macro: '{#IP}' + path: $.ip + - lld_macro: '{#MODEL}' + path: $.model + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TOKEN}' + path: $.token + - lld_macro: '{#TYPE}' + path: $.type + - lld_macro: '{#UUID}' + path: $.uuid + preprocessing: + - type: JSONPATH + parameters: + - $.devices + tags: + - tag: class + value: network + - tag: target + value: cisco-sdwan-monitor + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Cisco SD-WAN", e.g. {$HTTP.TLS.VERIFY:"Cisco SD-WAN"}.' + - macro: '{$SDWAN.API.PASSWORD}' + type: SECRET_TEXT + description: 'Cisco SD-WAN Monitor API password.' + - macro: '{$SDWAN.API.URL}' + description: 'Cisco SD-WAN Monitor API URL.' + - macro: '{$SDWAN.API.USERNAME}' + type: SECRET_TEXT + description: 'Cisco SD-WAN Monitor API username.' + - macro: '{$SDWAN.AUTH.FREQUENCY}' + value: 1h + description: 'The update interval for the Cisco SD-WAN Authentication item, which also equals the access token regeneration request frequency. Check the template documentation notes carefully for more details.' + - macro: '{$SDWAN.DATA.TIMEOUT}' + value: 15s + description: 'A response timeout for an API.' + - macro: '{$SDWAN.DEVICE.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in device discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.DEVICE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in device discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.HTTP_PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format [protocol://][username[:password]@]proxy.example.com[:port]. See the documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + dashboards: + - uuid: 63a5053a13114e90b104d189bea96254 + name: 'SD-WAN: Overview' + pages: + - name: Main + widgets: + - type: item + name: 'Total devices' + width: '36' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN by HTTP' + key: sd_wan.total.devices + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'vManage devices' + 'y': '4' + width: '36' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN by HTTP' + key: sd_wan.vmanage.devices + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'vSmart devices' + 'y': '8' + width: '36' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN by HTTP' + key: sd_wan.vsmart.devices + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'Invalid certificates' + x: '36' + width: '36' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN by HTTP' + key: sd_wan.invalid_certificates + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'vBond devices' + x: '36' + 'y': '4' + width: '36' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN by HTTP' + key: sd_wan.vbond.devices + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'vEdge devices' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN by HTTP' + key: sd_wan.vedge.devices + - type: INTEGER + name: show.0 + value: '2' diff --git a/Cisco_SD-WAN_device_by_HTTP.yaml b/Cisco_SD-WAN_device_by_HTTP.yaml new file mode 100644 index 0000000..b6bfc31 --- /dev/null +++ b/Cisco_SD-WAN_device_by_HTTP.yaml @@ -0,0 +1,2602 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: e1e25df663204b099f2597caf89a0678 + template: 'Cisco SD-WAN device by HTTP' + name: 'Cisco SD-WAN device by HTTP' + description: | + Get Cisco SD-WAN devices monitoring with script item usage to perform HTTP requests to Cisco SD-WAN API. + This template will be automatically connected to discovered entities with all required parameters pre-defined. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Applications + - name: 'Templates/Network devices' + items: + - uuid: e72b66fe978e4495b07c95216ee2fb30 + name: 'Operating system architecture' + type: DEPENDENT + key: sd_wan.device.arch + delay: '0' + value_type: CHAR + trends: '0' + description: 'The architecture of the operating system.' + inventory_link: OS_SHORT + preprocessing: + - type: JSONPATH + parameters: + - $.platform + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: os + - uuid: a9565657b94b4bd5b4e82692ab3f0f9a + name: 'Certificate validity' + type: DEPENDENT + key: sd_wan.device.certificate_validity + delay: '0' + description: 'Validity status of the device certificate.' + valuemap: + name: 'Validity status' + preprocessing: + - type: JSONPATH + parameters: + - '$["certificate-validity"]' + error_handler: CUSTOM_VALUE + error_handler_params: Unknown + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Valid', + 'Invalid', + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: certificate + triggers: + - uuid: 8a35b69998bd4819b3f9677fd4367d59 + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.certificate_validity)=1' + name: 'Cisco SD-WAN: Device certificate is invalid' + priority: WARNING + tags: + - tag: scope + value: security + - uuid: 8a30d4aef9c54c15a56a34ddc0f277d5 + name: 'Control connections' + type: DEPENDENT + key: sd_wan.device.control_conn + delay: '0' + description: 'The number of control connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.controlConnections + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MATCHES_REGEX + parameters: + - '^[0-9]+$' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: network + - uuid: e8185c1ab7924a378dd4a0368b2bc96d + name: 'Load average (1m avg)' + type: DEPENDENT + key: 'sd_wan.device.cpu.load[avg1]' + delay: '0' + value_type: FLOAT + description: 'The average number of processes being or waiting executed over past 1 minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.min1_avg + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: cpu + - uuid: 8e1b51fcdb9c49028adfe41d8e4cd07f + name: 'Load average (5m avg)' + type: DEPENDENT + key: 'sd_wan.device.cpu.load[avg5]' + delay: '0' + value_type: FLOAT + description: 'The average number of processes being or waiting executed over past 5 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - $.min5_avg + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: cpu + - uuid: e9b2cedafb0a4dde83c3f8e3ec658d9e + name: 'Load average (15m avg)' + type: DEPENDENT + key: 'sd_wan.device.cpu.load[avg15]' + delay: '0' + value_type: FLOAT + description: 'The average number of processes being or waiting executed over past 15 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - $.min15_avg + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: cpu + - uuid: 193a05a570744296b12927cdd7d5c80a + name: 'Number of CPUs' + type: DEPENDENT + key: sd_wan.device.cpu.num + delay: '0' + description: 'The total number of CPU.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_cpu_count + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: system + - uuid: cbdaee2fc07f4fe9941bb9e1c1b25693 + name: 'CPU utilization' + type: DEPENDENT + key: sd_wan.device.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization, expressed in %.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100 - value);' + master_item: + key: 'sd_wan.device.cpu.util[idle]' + tags: + - tag: component + value: cpu + triggers: + - uuid: 58cedf1e3f2e42a8a58d270ca0c385a8 + expression: 'min(/Cisco SD-WAN device by HTTP/sd_wan.device.cpu.util,5m)>{$SDWAN.CPU.UTIL.CRIT}' + name: 'Cisco SD-WAN: High CPU utilization' + event_name: 'Cisco SD-WAN: High CPU utilization (over {$SDWAN.CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + dependencies: + - name: 'Cisco SD-WAN: Load average is too high' + expression: | + min(/Cisco SD-WAN device by HTTP/sd_wan.device.cpu.load[avg1],5m)/last(/Cisco SD-WAN device by HTTP/sd_wan.device.cpu.num)>{$SDWAN.LA.PER.CPU.MAX.WARN} + and last(/Cisco SD-WAN device by HTTP/sd_wan.device.cpu.load[avg5])>0 + and last(/Cisco SD-WAN device by HTTP/sd_wan.device.cpu.load[avg15])>0 + tags: + - tag: scope + value: performance + - uuid: d87ecb03ca2b48efb7a47ddde260b497 + name: 'CPU idle time' + type: DEPENDENT + key: 'sd_wan.device.cpu.util[idle]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The time the CPU has spent doing nothing.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_idle + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: cpu + - uuid: 3f82fb93e5d74aeaa656f23fd9647a27 + name: 'CPU system time' + type: DEPENDENT + key: 'sd_wan.device.cpu.util[system]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The time the CPU has spent running the kernel and its processes.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_system + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: cpu + - uuid: 4f7d0c18da724f888b3f6e82f4becd7a + name: 'CPU user time' + type: DEPENDENT + key: 'sd_wan.device.cpu.util[user]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The time the CPU has spent running users'' processes that are not niced.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_user + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: cpu + - uuid: ce17521dd90a442d86270a11e3931338 + name: 'System name' + type: DEPENDENT + key: sd_wan.device.hostname + delay: '0' + value_type: CHAR + trends: '0' + description: 'The system host name.' + inventory_link: NAME + preprocessing: + - type: JSONPATH + parameters: + - '$["host-name"]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: system + triggers: + - uuid: 8658639567ed4eb5964b4543c5b3debe + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.hostname,#1)<>last(/Cisco SD-WAN device by HTTP/sd_wan.device.hostname,#2) and length(last(/Cisco SD-WAN device by HTTP/sd_wan.device.hostname))>0' + name: 'Cisco SD-WAN: System name has changed' + event_name: 'Cisco SD-WAN: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'System name has changed. Ack to close.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: dfdd804076df4050963a5270501dc759 + name: 'Available memory' + type: DEPENDENT + key: sd_wan.device.memory.avail + delay: '0' + units: B + description: 'The amount of physical memory (in bytes) immediately available for the allocation to a process or for a system use in the device.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_free + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: memory + - uuid: 0ad610d976644766b8997311c72c0d7c + name: 'Memory (buffers)' + type: DEPENDENT + key: sd_wan.device.memory.buffers + delay: '0' + units: B + description: 'The amount of physical memory (in bytes) used by the kernel buffers.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_buffers + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: memory + - uuid: e344c9575c954e9584074e6cd161349b + name: 'Memory (cached)' + type: DEPENDENT + key: sd_wan.device.memory.cached + delay: '0' + units: B + description: 'The amount of physical memory (in bytes) used by the page cache and slabs.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_cached + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: memory + - uuid: 90566bdf0458468e8607dd05a53efb4c + name: 'Total memory' + type: DEPENDENT + key: sd_wan.device.memory.total + delay: '0' + units: B + description: 'Total memory, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_total + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: memory + - uuid: 80ae65af0a4c42ffb5a5b6b5179e85fc + name: 'Used memory' + type: DEPENDENT + key: sd_wan.device.memory.used + delay: '0' + units: B + description: 'The amount of physical memory (in bytes) used by applications on the device.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_used + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: memory + - uuid: 8b8551ab8a8c4586b2a1bc02bcc7ca60 + name: 'Memory utilization' + type: CALCULATED + key: sd_wan.device.memory.util + value_type: FLOAT + units: '%' + params: 'last(//sd_wan.device.memory.used)/last(//sd_wan.device.memory.total)*100' + description: 'Calculated percentage of the memory used, in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 0f30b8dc5ebc44ea98a860b159501f99 + expression: 'min(/Cisco SD-WAN device by HTTP/sd_wan.device.memory.util,5m)>{$SDWAN.MEMORY.UTIL.MAX}' + name: 'Cisco SD-WAN: High memory utilization' + event_name: 'Cisco SD-WAN: High memory utilization (>{$SDWAN.MEMORY.UTIL.MAX}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The system is running out of free memory.' + dependencies: + - name: 'Cisco SD-WAN: Lack of available memory' + expression: 'max(/Cisco SD-WAN device by HTTP/sd_wan.device.memory.avail,5m)<{$SDWAN.MEMORY.AVAILABLE.MIN} and last(/Cisco SD-WAN device by HTTP/sd_wan.device.memory.total)>0' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 840c5d843f4f4def865a8043396a21f5 + name: 'Model name' + type: DEPENDENT + key: sd_wan.device.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model name of the device.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - '$["device-model"]' + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: system + - uuid: 809418dac3be4dd7b8cf3024388b1a11 + name: 'Operating system' + type: DEPENDENT + key: sd_wan.device.os + delay: '0' + value_type: CHAR + trends: '0' + description: 'The device operating system.' + inventory_link: OS + preprocessing: + - type: JSONPATH + parameters: + - '$["device-os"]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: os + triggers: + - uuid: b2c78cb56f7f40cfa8844f3f51293538 + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.os,#1)<>last(/Cisco SD-WAN device by HTTP/sd_wan.device.os,#2) and length(last(/Cisco SD-WAN device by HTTP/sd_wan.device.os))>0' + name: 'Cisco SD-WAN: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possible reasons that system has been updated or replaced. Ack to close.' + manual_close: 'YES' + dependencies: + - name: 'Cisco SD-WAN: Device has been replaced' + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.serialnumber,#1)<>last(/Cisco SD-WAN device by HTTP/sd_wan.device.serialnumber,#2) and length(last(/Cisco SD-WAN device by HTTP/sd_wan.device.serialnumber))>0' + tags: + - tag: scope + value: notice + - uuid: 5e9d4d61e72e4755a242f36bcf93b534 + name: 'Number of processes' + type: DEPENDENT + key: sd_wan.device.proc.num + delay: '0' + description: 'The total number of processes in any state.' + preprocessing: + - type: JSONPATH + parameters: + - $.procs + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: system + - uuid: 60381f3d5e914ce4b281d65c212c44b6 + name: 'Device reachability' + type: DEPENDENT + key: sd_wan.device.reachability + delay: '0' + description: 'Reachability to the vManager and/or the entire network.' + valuemap: + name: 'Reachability status' + preprocessing: + - type: JSONPATH + parameters: + - $.reachability + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'reachable', + 'unreachable', + 'auth-failed', + 'staging' + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: health + triggers: + - uuid: d35babbd678f44c3a570fc9a896c58dc + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.reachability)<>0' + name: 'Cisco SD-WAN: Device is not reachable' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Device is not reachable to the vManager and/or the entire network.' + tags: + - tag: scope + value: availability + - uuid: f1cc4c623c754d17881f9217466ec21d + name: 'Device role' + type: DEPENDENT + key: sd_wan.device.role + delay: '0' + value_type: CHAR + trends: '0' + description: 'The device role in the network.' + valuemap: + name: Unknown + preprocessing: + - type: JSONPATH + parameters: + - $.device_role + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: system + - uuid: d665ec254da44501bf7be0b78156b01f + name: 'Serial Number' + type: DEPENDENT + key: sd_wan.device.serialnumber + delay: '0' + value_type: CHAR + trends: '0' + description: 'The device serial number.' + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - '$["board-serial"]' + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: system + triggers: + - uuid: a6ad77fe04684d1fa90fac2164519b31 + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.serialnumber,#1)<>last(/Cisco SD-WAN device by HTTP/sd_wan.device.serialnumber,#2) and length(last(/Cisco SD-WAN device by HTTP/sd_wan.device.serialnumber))>0' + name: 'Cisco SD-WAN: Device has been replaced' + event_name: 'Cisco SD-WAN: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 19bc5d63eb424ecab4d8b1291191d0cd + name: 'Device state' + type: DEPENDENT + key: sd_wan.device.state + delay: '0' + description: 'The device current state.' + valuemap: + name: 'Device state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'green', + 'yellow', + 'red' + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: health + - uuid: bae48575c12941e38346df2ae00374ec + name: 'Device state description' + type: DEPENDENT + key: sd_wan.device.state_descr + delay: '0' + value_type: CHAR + trends: '0' + description: 'The description of the device current state.' + preprocessing: + - type: JSONPATH + parameters: + - $.state_description + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: health + - uuid: c1ada0df07b94b1daf3881fac4c9a8d3 + name: 'System uptime' + type: DEPENDENT + key: sd_wan.device.uptime + delay: '0' + units: uptime + description: 'The system uptime is calculated on the basis of boot time.' + preprocessing: + - type: JSONPATH + parameters: + - '$["uptime-date"]' + - type: JAVASCRIPT + parameters: + - 'return (Math.floor(Date.now()/1000)-Math.floor(Number(value)/1000));' + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: system + triggers: + - uuid: 08ac00695a6c4e2a80dc9cb16d85de43 + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.uptime)<10m' + name: 'Cisco SD-WAN: Device has been restarted' + event_name: 'Cisco SD-WAN: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'The host uptime is less than 10 minutes' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 818ad0a67ba749619e03a746e9489404 + name: Version + type: DEPENDENT + key: sd_wan.device.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of the device software.' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: system + - uuid: 7a4cc11f131e4f7f9511ac19dbfb82f4 + name: 'Get device data' + type: SCRIPT + key: sd_wan.get.device + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + device_info = {}, + error_msg = ""; + + function getHttpData(url, token, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + request.addHeader('X-XSRF-TOKEN: ' + token); + response = request.get(url); + Zabbix.log(4, '[ Cisco SD-WAN ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Cisco SD-WAN API. Check debug log for more information.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + ['auth.token', 'auth.cookie', 'api.url', 'device_id'].forEach(function (field) { + var macro = '{$SDWAN.' + field.toUpperCase() + '}'; + var key = field.split('.').slice(-1); + if (params[key] === macro || params[key] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[key] === 'undefined') { + throw 'Please set \'' + key + '\' script input parameter to ' + macro + ' macro value.'; + } + }); + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$SDWAN.HTTP_PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + device_info = getHttpData( + params.url + 'dataservice/device?deviceId=' + encodeURIComponent(params.device_id), + params.token, + params.cookie + ); + + if (Array.isArray(device_info.data) && device_info.data.length > 0) { + device_info = device_info.data[0]; + } + else { + throw 'Failed to parse response received from Cisco SD-WAN API. Check debug log for more information.'; + } + + var system_info = getHttpData( + params.url + 'dataservice/device/system/status?deviceId=' + params.device_id, + params.token, + params.cookie + ); + + if (Array.isArray(system_info.data) && system_info.data.length > 0) { + device_info = Object.assign(device_info, system_info.data[0]); + } + else { + throw 'Failed to parse response received from Cisco SD-WAN API. Check debug log for more information.'; + } + } catch (error) { + error_msg = error.toString(); + error_msg += (error_msg.endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Cisco SD-WAN ] ERROR: ' + error_msg); + }; + + device_info.error = error_msg; + + return JSON.stringify(device_info); + description: 'Item for gathering device data from Cisco SD-WAN API.' + timeout: '{$SDWAN.DATA.TIMEOUT}' + parameters: + - name: cookie + value: '{$SDWAN.AUTH.SESSION}' + - name: device_id + value: '{$SDWAN.DEVICE_ID}' + - name: http_proxy + value: '{$SDWAN.HTTP_PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco SD-WAN device"}' + - name: token + value: '{$SDWAN.AUTH.TOKEN}' + - name: url + value: '{$SDWAN.API.URL}' + tags: + - tag: component + value: raw + - uuid: dfef0a5aa8054effaab44fb04df20778 + name: 'Device data item errors' + type: DEPENDENT + key: sd_wan.get.device.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of the device item.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: error + triggers: + - uuid: 7e9b6cee9ddd47428d01d1a8cadb28fc + expression: 'length(last(/Cisco SD-WAN device by HTTP/sd_wan.get.device.errors))>0' + name: 'Cisco SD-WAN: There are errors in the ''Get device data'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 694fb02640314fcab6cb2352fe4378ea + name: 'Get interfaces data' + type: SCRIPT + key: sd_wan.get.interfaces + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + result = { "data": [], "error": "" }, + error_msg = ""; + + function getHttpData(url, token, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + request.addHeader('X-XSRF-TOKEN: ' + token); + response = request.get(url); + Zabbix.log(4, '[ Cisco SD-WAN ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Cisco SD-WAN API. Check debug log for more information.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + ['auth.token', 'auth.cookie', 'api.url', 'device_id'].forEach(function (field) { + var macro = '{$SDWAN.' + field.toUpperCase() + '}'; + var key = field.split('.').slice(-1); + if (params[key] === macro || params[key] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[key] === 'undefined') { + throw 'Please set \'' + key + '\' script input parameter to ' + macro + ' macro value.'; + } + }); + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$SDWAN.HTTP_PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + var interface_list = getHttpData( + params.url + 'dataservice/device/interface?deviceId=' + encodeURIComponent(params.device_id), + params.token, + params.cookie + ); + + if (Array.isArray(interface_list.data) && interface_list.data.length > 0) { + var interfaces = {}; + interface_list.data.forEach(function (if_item) { + var if_key = if_item['vdevice-name'] + '_' + if_item.ifname + '_' + if_item.ifindex; + interfaces[if_key] = (typeof interfaces[if_key] !== 'undefined') ? interfaces[if_key] : {}; + if (typeof if_item['af-type'] !== 'undefined') { + if (if_item['af-type'].includes('ipv6')) { + Object.keys(if_item).sort().forEach(function (key) { + if (key.match(/([tr]x-)/g)) { + interfaces[if_key]['ipv6-' + key] = if_item[key]; + } + }); + } + else { + interfaces[if_key] = if_item; + } + } + else { + interfaces[if_key] = if_item; + } + }); + Object.keys(interfaces).forEach(function (key) { + result.data.push(interfaces[key]); + }); + } + else { + throw 'Failed to parse response received from Cisco SD-WAN API. Check debug log for more information.'; + } + } catch (error) { + error_msg = error.toString(); + error_msg += (error_msg.endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Cisco SD-WAN ] ERROR: ' + error_msg); + }; + + result.error = error_msg; + + return JSON.stringify(result); + description: 'Item for gathering device interfaces from Cisco SD-WAN API.' + timeout: '{$SDWAN.DATA.TIMEOUT}' + parameters: + - name: cookie + value: '{$SDWAN.AUTH.SESSION}' + - name: device_id + value: '{$SDWAN.DEVICE_ID}' + - name: http_proxy + value: '{$SDWAN.HTTP_PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco SD-WAN device"}' + - name: token + value: '{$SDWAN.AUTH.TOKEN}' + - name: url + value: '{$SDWAN.API.URL}' + tags: + - tag: component + value: raw + - uuid: 0a1427fdcaaf44a3a389a68c781497ef + name: 'Device interfaces item errors' + type: DEPENDENT + key: sd_wan.get.interfaces.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of the device interfaces.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.get.interfaces + tags: + - tag: component + value: error + triggers: + - uuid: 03772a571b5c417297b11a612b48cb81 + expression: 'length(last(/Cisco SD-WAN device by HTTP/sd_wan.get.interfaces.errors))>0' + name: 'Cisco SD-WAN: There are errors in the ''Get interfaces data'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: d9ae4a103ae74932a57ad495f2829b62 + name: 'Get routes data' + type: SCRIPT + key: sd_wan.get.routes + delay: '{$SDWAN.ROUTES.FREQUENCY}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + result = { "data": [], "error": "" }, + error_msg = ""; + + function getHttpData(url, data, token, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + request.addHeader('Content-Type: application/json'); + request.addHeader('X-XSRF-TOKEN: ' + token); + + if (typeof data !== 'undefined') { + data = JSON.stringify(data); + } + + response = request.post(url, data); + Zabbix.log(4, '[ Cisco SD-WAN ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Cisco SD-WAN API. Check debug log for more information.'; + } + } + + if (typeof (response) !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + ['auth.token', 'auth.cookie', 'api.url', 'device_id'].forEach(function (field) { + var macro = '{$SDWAN.' + field.toUpperCase() + '}'; + var key = field.split('.').slice(-1); + if (params[key] === macro || params[key] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[key] === 'undefined') { + throw 'Please set \'' + key + '\' script input parameter to ' + macro + ' macro value.'; + } + }); + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url; + } + + if (!params.url.endsWith('/')) { + params.url += '/'; + } + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$SDWAN.HTTP_PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + if (!params.interval.endsWith('h')) { + throw 'The value of {' + '$SDWAN.ROUTES.INTERVAL} must be expressed in hours.'; + } + else { + try { + params.interval = Number(params.interval.replace('h', '')); + } + catch (error) { + throw 'Please change {' + '$SDWAN.ROUTES.INTERVAL} macro to the proper value.'; + } + } + + var req_data = { + "query": { + "condition": "AND", + "rules": [ + { + "value": [ + String(params.interval) + ], + "field": "entry_time", + "type": "date", + "operator": "last_n_hours" + }, + { + "value": [ + params.device_id + ], + "field": "vdevice_name", + "type": "string", + "operator": "in" + } + ] + }, + "aggregation": { + "field": [ + { + "property": "local_color", + "order": "asc", + "sequence": 1 + }, + { + "property": "remote_color", + "order": "asc", + "sequence": 1 + } + ], + "metrics": [ + { + "property": "loss_percentage", + "type": "avg" + }, + { + "property": "latency", + "type": "avg" + }, + { + "property": "jitter", + "type": "avg" + } + ] + } + }; + + var routes = getHttpData( + params.url + 'dataservice/statistics/approute/aggregation', + req_data, + params.token, + params.cookie + ); + + if (Array.isArray(routes.data)) { + result["data"] = routes.data; + } + else { + throw 'Failed to parse response received from Cisco SD-WAN API. Check debug log for more information.'; + } + } catch (error) { + error_msg = error.toString(); + error_msg += (error_msg.endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Cisco SD-WAN ] ERROR: ' + error_msg); + }; + + result.error = error_msg; + + return JSON.stringify(result); + description: 'Item for gathering device routes from Cisco SD-WAN API.' + timeout: '{$SDWAN.DATA.TIMEOUT}' + parameters: + - name: cookie + value: '{$SDWAN.AUTH.SESSION}' + - name: device_id + value: '{$SDWAN.DEVICE_ID}' + - name: http_proxy + value: '{$SDWAN.HTTP_PROXY}' + - name: interval + value: '{$SDWAN.ROUTES.FREQUENCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cisco SD-WAN device"}' + - name: token + value: '{$SDWAN.AUTH.TOKEN}' + - name: url + value: '{$SDWAN.API.URL}' + tags: + - tag: component + value: raw + - uuid: e0a8bb6a05364e9ea0467dced14ac4a6 + name: 'Device routes item errors' + type: DEPENDENT + key: sd_wan.get.routes.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of the device routes.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sd_wan.get.routes + tags: + - tag: component + value: error + triggers: + - uuid: edb75d50551643c999da9e93efd0ff1b + expression: 'length(last(/Cisco SD-WAN device by HTTP/sd_wan.get.routes.errors))>0' + name: 'Cisco SD-WAN: There are errors in the ''Get routes data'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 2348adc088e343ccb51ab342c13a062e + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: sd_wan.fs.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$SDWAN.LLD.FILTER.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$SDWAN.LLD.FILTER.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovering device filesystems from Cisco SD-WAN API.' + item_prototypes: + - uuid: efd5601dc80a4b93b3fae33922003cca + name: '["{#FSNAME}"]: Available space' + type: DEPENDENT + key: 'sd_wan.device.fs.avail["{#FSNAME}"]' + delay: '0' + units: B + description: 'The available size of the storage pool, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.avail + - type: JAVASCRIPT + parameters: + - | + const sizes = ['K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']; + var multiplier = sizes.indexOf(value.slice(-1)); + if (multiplier === -1) { + return value; + } + return Number(value.slice(0, -1)) * 1024 * multiplier; + master_item: + key: 'sd_wan.device.fs.get_data["{#FSNAME}"]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 33664690bcde41279432e6a83ae376d1 + name: '["{#FSNAME}"]: Get data' + type: DEPENDENT + key: 'sd_wan.device.fs.get_data["{#FSNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering data for the {#FSNAME} filesystem.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value), + output = {}; + + Object.keys(input).sort().forEach(function (key) { + var re = new RegExp("^{#FSKEY}[-_]"); + if (key.match(re)) { + output[key.replace(re, '')] = input[key]; + } + }); + + return JSON.stringify(output); + master_item: + key: sd_wan.get.device + tags: + - tag: component + value: raw + - tag: filesystem + value: '{#FSNAME}' + - uuid: 1ce9413041f84ac9b7e44d05a62566d1 + name: '["{#FSNAME}"]: Space utilization' + type: DEPENDENT + key: 'sd_wan.device.fs.pused["{#FSNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Space utilization, expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.use + master_item: + key: 'sd_wan.device.fs.get_data["{#FSNAME}"]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 22a27b82289c4904ba64cd6c8c33450d + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.fs.pused["{#FSNAME}"])>{$SDWAN.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'Cisco SD-WAN: ["{#FSNAME}"]: Disk space is critically low' + event_name: 'Cisco SD-WAN: ["{#FSNAME}"]: Disk space is critically low (used > {$SDWAN.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Utilization of the space is above {$VFS.FS.PUSED.MAX.CRIT:"{{FSNAME}}"}' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: ff996c4f86ae4162b4b054e5c5e9b3ee + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.fs.pused["{#FSNAME}"])>{$SDWAN.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'Cisco SD-WAN: ["{#FSNAME}"]: Disk space is low' + event_name: 'Cisco SD-WAN: ["{#FSNAME}"]: Disk space is low (used > {$SDWAN.FS.PUSED.MAX.WARN:"{#FSNAME}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Utilization of the space is above {$VFS.FS.PUSED.MAX.CRIT:"{{FSNAME}}"}' + manual_close: 'YES' + dependencies: + - name: 'Cisco SD-WAN: ["{#FSNAME}"]: Disk space is critically low' + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.fs.pused["{#FSNAME}"])>{$SDWAN.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: ae724b1dd35f46e6bb492daf4729544a + name: '["{#FSNAME}"]: Total space' + type: DEPENDENT + key: 'sd_wan.device.fs.total["{#FSNAME}"]' + delay: '0' + units: B + description: 'The size of the storage pool, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.size + - type: JAVASCRIPT + parameters: + - | + const sizes = ['K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']; + var multiplier = sizes.indexOf(value.slice(-1)); + if (multiplier === -1) { + return value; + } + return Number(value.slice(0, -1)) * 1024 * multiplier; + master_item: + key: 'sd_wan.device.fs.get_data["{#FSNAME}"]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: eeeef8b9090f4c28950ed9735cc97016 + name: '["{#FSNAME}"]: Used space' + type: DEPENDENT + key: 'sd_wan.device.fs.used["{#FSNAME}"]' + delay: '0' + units: B + description: 'The used size of the dataset, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.used + - type: JAVASCRIPT + parameters: + - | + const sizes = ['K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']; + var multiplier = sizes.indexOf(value.slice(-1)); + if (multiplier === -1) { + return value; + } + return Number(value.slice(0, -1)) * 1024 * multiplier; + master_item: + key: 'sd_wan.device.fs.get_data["{#FSNAME}"]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + graph_prototypes: + - uuid: aa107bd964b34bd69610aee0918e49f7 + name: '["{#FSNAME}"]: Disk space usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.fs.total["{#FSNAME}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.fs.used["{#FSNAME}"]' + master_item: + key: sd_wan.get.device + lld_macro_paths: + - lld_macro: '{#FSKEY}' + path: $.key + - lld_macro: '{#FSNAME}' + path: $.mount + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value), + output = []; + + Object.keys(input).sort().forEach(function (key) { + if (key.match(/(disk[-_]mount)/g)) { + output.push( + { + 'mount': input[key], + 'key': key.replace(/[-_]mount/, '') + } + ); + } + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 6be4e405fd7c48d5beca62ca7eadbdf3 + name: 'Network interfaces discovery' + type: DEPENDENT + key: sd_wan.interfaces.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$SDWAN.LLD.FILTER.IFNAME.MATCHES}' + formulaid: A + - macro: '{#IFNAME}' + value: '{$SDWAN.LLD.FILTER.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovering device interfaces from Cisco SD-WAN API.' + item_prototypes: + - uuid: 032884d082d54cd2bca2a0cf747e91ee + name: 'Interface ["{#IFNAME}"]: Admin status' + type: DEPENDENT + key: 'sd_wan.device.if.adm.status["{#IFKEY}"]' + delay: '0' + description: 'Current admin status of the interface.' + valuemap: + name: 'Admin status' + preprocessing: + - type: JSONPATH + parameters: + - '$["if-admin-status"]' + - type: JAVASCRIPT + parameters: + - | + var idx = [ + 'if-state-up', + 'if-state-down' + ].indexOf(value); + var idx = idx !== -1 ? idx : [ + 'Up', + 'Down', + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: b5ffafcd8d5c4072bf01311d95bbd2db + name: 'Interface ["{#IFNAME}"]: Get data' + type: DEPENDENT + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering data for the {#IFNAME} interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@["vdevice-dataKey"] == "{#IFKEY}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: sd_wan.get.interfaces + tags: + - tag: component + value: raw + - tag: interface + value: '{#IFNAME}' + - uuid: 52a6b09a0a9a4849b4b8c6d209227641 + name: 'Interface ["{#IFNAME}"]: Inbound packets discarded' + type: DEPENDENT + key: 'sd_wan.device.if.in.discards["{#IFKEY}"]' + delay: '0' + description: 'The number of inbound packets that were chosen to be discarded.' + preprocessing: + - type: JSONPATH + parameters: + - '$["rx-drops"]' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: 3f65667d53bd449994fb89ab3f2e0f16 + name: 'Interface ["{#IFNAME}"]: Inbound packets with errors' + type: DEPENDENT + key: 'sd_wan.device.if.in.errors["{#IFKEY}"]' + delay: '0' + description: 'The number of inbound packets that were contain errors.' + preprocessing: + - type: JSONPATH + parameters: + - '$["rx-errors"]' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: 800e9d7703664824a38c6b8c02278d76 + name: 'Interface ["{#IFNAME}"]: Inbound IPv6 packets discarded' + type: DEPENDENT + key: 'sd_wan.device.if.in.v6.discards["{#IFKEY}"]' + delay: '0' + value_type: FLOAT + description: 'The number of inbound IPv6 packets that were chosen to be discarded.' + valuemap: + name: 'Not used' + preprocessing: + - type: JSONPATH + parameters: + - '$["ipv6-rx-drops"]' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: ad932748cce547bc8bbf2b54362cf5a0 + name: 'Interface ["{#IFNAME}"]: Inbound IPv6 packets with errors' + type: DEPENDENT + key: 'sd_wan.device.if.in.v6.errors["{#IFKEY}"]' + delay: '0' + value_type: FLOAT + description: 'The number of inbound IPv4 packets that were contain errors.' + valuemap: + name: 'Not used' + preprocessing: + - type: JSONPATH + parameters: + - '$["ipv6-rx-errors"]' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: e4f94e0c8abe49d9b546acdbd01de6cb + name: 'Interface ["{#IFNAME}"]: Bits received' + type: DEPENDENT + key: 'sd_wan.device.if.in["{#IFKEY}"]' + delay: '0' + units: bps + description: 'The total number of octets received on the interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$["rx-octets"]' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: 813e0877c1ee43d3add120c22e1a30a7 + name: 'Interface ["{#IFNAME}"]: Outbound packets discarded' + type: DEPENDENT + key: 'sd_wan.device.if.out.discards["{#IFKEY}"]' + delay: '0' + description: 'The number of outbound packets that were chosen to be discarded.' + preprocessing: + - type: JSONPATH + parameters: + - '$["tx-drops"]' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: b353a80145074a17a154db7073734dd4 + name: 'Interface ["{#IFNAME}"]: Outbound packets with errors' + type: DEPENDENT + key: 'sd_wan.device.if.out.errors["{#IFKEY}"]' + delay: '0' + description: 'The number of outbound packets that were contain errors.' + preprocessing: + - type: JSONPATH + parameters: + - '$["tx-errors"]' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: d4beeb5a5b674652aaeff89ccd47548d + name: 'Interface ["{#IFNAME}"]: Outbound IPv6 packets discarded' + type: DEPENDENT + key: 'sd_wan.device.if.out.v6.discards["{#IFKEY}"]' + delay: '0' + value_type: FLOAT + description: 'The number of outbound IPv6 packets that were chosen to be discarded.' + valuemap: + name: 'Not used' + preprocessing: + - type: JSONPATH + parameters: + - '$["ipv6-tx-drops"]' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: 61b554e479b545069d3e8bdca629e00d + name: 'Interface ["{#IFNAME}"]: Outbound IPv6 packets with errors' + type: DEPENDENT + key: 'sd_wan.device.if.out.v6.errors["{#IFKEY}"]' + delay: '0' + value_type: FLOAT + description: 'The number of outbound IPv6 packets that were contain errors.' + valuemap: + name: 'Not used' + preprocessing: + - type: JSONPATH + parameters: + - '$["ipv6-tx-errors"]' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: 9b5d5fc0fea341f9beacf41ec9aff590 + name: 'Interface ["{#IFNAME}"]: Bits sent' + type: DEPENDENT + key: 'sd_wan.device.if.out["{#IFKEY}"]' + delay: '0' + units: bps + description: 'The total number of octets transmitted out of the interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$["tx-octets"]' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: ab89a67a34c74ae3acc1b4fb4c711b2f + name: 'Interface ["{#IFNAME}"]: Speed' + type: DEPENDENT + key: 'sd_wan.device.if.speed["{#IFKEY}"]' + delay: '0' + units: bps + description: 'Current bandwidth of the interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$["speed-mbps"]' + - type: MULTIPLIER + parameters: + - '1000000' + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: d1cda0afbdfa4342abcbe4a5f15a5950 + name: 'Interface ["{#IFNAME}"]: Operational status' + type: DEPENDENT + key: 'sd_wan.device.if.status["{#IFKEY}"]' + delay: '0' + description: 'Current operational status of the interface.' + valuemap: + name: 'Operational status' + preprocessing: + - type: JSONPATH + parameters: + - '$["if-oper-status"]' + - type: JAVASCRIPT + parameters: + - | + var idx = [ + 'if-oper-state-ready', + 'if-oper-state-lower-layer-down', + 'if-oper-state-no-pass' + ].indexOf(value); + var idx = idx !== -1 ? idx : [ + 'Up', + 'Down', + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: 'sd_wan.device.if.get_data["{#IFKEY}"]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: cfd9e53fc4ff459ba9aa121b7feb5e7d + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"])=1 and (last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"],#1)<>last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"])<>1 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Cisco SD-WAN: Interface ["{#IFNAME}"]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operational status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, it does not fire for the 'eternal off' interfaces). + + WARNING: If closed manually, it will not fire again on the next poll because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + trigger_prototypes: + - uuid: 0c34bf81f8f64cb7b5eecd2f2c76e1b1 + expression: | + change(/Cisco SD-WAN device by HTTP/sd_wan.device.if.speed["{#IFKEY}"])<0 and last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.speed["{#IFKEY}"])>0 + and + last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"])<>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Cisco SD-WAN device by HTTP/sd_wan.device.if.speed["{#IFKEY}"])>0 and last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.speed["{#IFKEY}"],#2)>0) or + last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"])=0 + name: 'Cisco SD-WAN: Interface ["{#IFNAME}"]: Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Cisco SD-WAN: Interface ["{#IFNAME}"]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"])=1 and (last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"],#1)<>last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"],#2))' + recovery_expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"])<>1 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: capacity + - uuid: 2ba01de4c85346f4af88d6882ea700e2 + expression: | + (avg(/Cisco SD-WAN device by HTTP/sd_wan.device.if.in["{#IFKEY}"],15m)>({$SDWAN.IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.speed["{#IFKEY}"]) or + avg(/Cisco SD-WAN device by HTTP/sd_wan.device.if.out["{#IFKEY}"],15m)>({$SDWAN.IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.speed["{#IFKEY}"])) and + last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.speed["{#IFKEY}"])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Cisco SD-WAN device by HTTP/sd_wan.device.if.in["{#IFKEY}"],15m)<(({$SDWAN.IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.speed["{#IFKEY}"]) and + avg(/Cisco SD-WAN device by HTTP/sd_wan.device.if.out["{#IFKEY}"],15m)<(({$SDWAN.IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.speed["{#IFKEY}"]) + name: 'Cisco SD-WAN: Interface ["{#IFNAME}"]: High bandwidth usage' + event_name: 'Cisco SD-WAN: Interface ["{#IFNAME}"]: High bandwidth usage (>{$SDWAN.IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The network interface utilization is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Cisco SD-WAN: Interface ["{#IFNAME}"]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"])=1 and (last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"],#1)<>last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"],#2))' + recovery_expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"])<>1 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 44d899ec07a549229eedaba42e76c76d + expression: | + min(/Cisco SD-WAN device by HTTP/sd_wan.device.if.in.errors["{#IFKEY}"],5m)>{$SDWAN.IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Cisco SD-WAN device by HTTP/sd_wan.device.if.out.errors["{#IFKEY}"],5m)>{$SDWAN.IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Cisco SD-WAN device by HTTP/sd_wan.device.if.in.v6.errors["{#IFKEY}"],5m)>{$SDWAN.IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Cisco SD-WAN device by HTTP/sd_wan.device.if.out.v6.errors["{#IFKEY}"],5m)>{$SDWAN.IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Cisco SD-WAN device by HTTP/sd_wan.device.if.in.errors["{#IFKEY}"],5m)<{$SDWAN.IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Cisco SD-WAN device by HTTP/sd_wan.device.if.out.errors["{#IFKEY}"],5m)<{$SDWAN.IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Cisco SD-WAN device by HTTP/sd_wan.device.if.in.v6.errors["{#IFKEY}"],5m)<{$SDWAN.IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Cisco SD-WAN device by HTTP/sd_wan.device.if.out.v6.errors["{#IFKEY}"],5m)<{$SDWAN.IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Cisco SD-WAN: Interface ["{#IFNAME}"]: High error rate' + event_name: 'Cisco SD-WAN: Interface ["{#IFNAME}"]: High error rate (>{$SDWAN.IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$SDWAN.IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Cisco SD-WAN: Interface ["{#IFNAME}"]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"])=1 and (last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"],#1)<>last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"],#2))' + recovery_expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.if.status["{#IFKEY}"])<>1 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 58a8bbf3bcef4d5b944b5d46f3248e86 + name: 'Interface ["{#IFNAME}"]: Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.if.in["{#IFKEY}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.if.out["{#IFKEY}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.if.in.discards["{#IFKEY}"]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.if.out.discards["{#IFKEY}"]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.if.in.v6.discards["{#IFKEY}"]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.if.out.v6.discards["{#IFKEY}"]' + - sortorder: '6' + color: C7A72D + yaxisside: RIGHT + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.if.in.errors["{#IFKEY}"]' + - sortorder: '7' + color: BA2A5D + yaxisside: RIGHT + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.if.out.errors["{#IFKEY}"]' + - sortorder: '8' + color: F230E0 + yaxisside: RIGHT + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.if.in.v6.errors["{#IFKEY}"]' + - sortorder: '9' + color: 5CCD18 + yaxisside: RIGHT + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.if.out.v6.errors["{#IFKEY}"]' + master_item: + key: sd_wan.get.interfaces + lld_macro_paths: + - lld_macro: '{#IFDESC}' + path: $.description + - lld_macro: '{#IFINDEX}' + path: $.ifindex + - lld_macro: '{#IFKEY}' + path: $.key + - lld_macro: '{#IFNAME}' + path: $.name + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value), + output = []; + + input.data.forEach(function (if_item) { + var desc = (typeof if_item['desc'] !== 'undefined') + ? if_item['desc'] + : ((typeof if_item['description'] !== 'undefined') ? if_item['description'] : ''); + output.push( + { + 'key': if_item['vdevice-dataKey'], + 'ifindex': if_item['ifindex'], + 'name': if_item['ifname'], + 'description': (desc != 'None') ? desc : '' + } + ); + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 5242a999e54a430da6d4eedcc5840fb1 + name: 'Route discovery' + type: DEPENDENT + key: sd_wan.routes.discovery + delay: '0' + description: 'Discovering Application-Aware routes from Cisco SD-WAN API.' + item_prototypes: + - uuid: 81cfb6100aad4404a66a2e1858f511b7 + name: 'Route [{#LOCAL} => {#REMOTE}]: Get data' + type: DEPENDENT + key: 'sd_wan.routes.get_data[{#LOCAL},{#REMOTE}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering data for the route {#LOCAL} => {#REMOTE}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.local_color == "{#LOCAL}" && @.remote_color == "{#REMOTE}")].first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: sd_wan.get.routes + tags: + - tag: component + value: raw + - tag: local + value: '{#LOCAL}' + - tag: remote + value: '{#REMOTE}' + - uuid: f4ba8d21398c4bd4b5896ee647f5886e + name: 'Route [{#LOCAL} => {#REMOTE}]: Jitter' + type: DEPENDENT + key: 'sd_wan.routes.jitter[{#LOCAL},{#REMOTE}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'A change in the time it takes for a data packet to travel through the route.' + preprocessing: + - type: JSONPATH + parameters: + - $.jitter + master_item: + key: 'sd_wan.routes.get_data[{#LOCAL},{#REMOTE}]' + tags: + - tag: component + value: route + - tag: local + value: '{#LOCAL}' + - tag: remote + value: '{#REMOTE}' + - uuid: f06e822d76794b4f8a30978fcb406ff8 + name: 'Route [{#LOCAL} => {#REMOTE}]: Latency' + type: DEPENDENT + key: 'sd_wan.routes.latency[{#LOCAL},{#REMOTE}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The amount of time it takes for a data packet to travel through the route.' + preprocessing: + - type: JSONPATH + parameters: + - $.latency + master_item: + key: 'sd_wan.routes.get_data[{#LOCAL},{#REMOTE}]' + tags: + - tag: component + value: route + - tag: local + value: '{#LOCAL}' + - tag: remote + value: '{#REMOTE}' + - uuid: 9310f97111c0413f8d980cbf280863c2 + name: 'Route [{#LOCAL} => {#REMOTE}]: Loss' + type: DEPENDENT + key: 'sd_wan.routes.loss[{#LOCAL},{#REMOTE}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Lost packets of data not reached the destination after being transmitted through the route.' + preprocessing: + - type: JSONPATH + parameters: + - $.loss_percentage + master_item: + key: 'sd_wan.routes.get_data[{#LOCAL},{#REMOTE}]' + tags: + - tag: component + value: route + - tag: local + value: '{#LOCAL}' + - tag: remote + value: '{#REMOTE}' + graph_prototypes: + - uuid: da406cac8d844a2182b9ae0b9ed5451a + name: 'Route [{#LOCAL} => {#REMOTE}]: Route statistic' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.routes.latency[{#LOCAL},{#REMOTE}]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.routes.jitter[{#LOCAL},{#REMOTE}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.routes.loss[{#LOCAL},{#REMOTE}]' + master_item: + key: sd_wan.get.routes + lld_macro_paths: + - lld_macro: '{#LOCAL}' + path: $.local_color + - lld_macro: '{#REMOTE}' + path: $.remote_color + preprocessing: + - type: JSONPATH + parameters: + - $.data + error_handler: CUSTOM_VALUE + error_handler_params: '[]' + tags: + - tag: class + value: network + - tag: target + value: cisco-sdwan-device + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Cisco SD-WAN device", e.g. {$HTTP.TLS.VERIFY:"Cisco SD-WAN device"}.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for operational state of the interface for the link down trigger. Can be used with the interface name as context.' + - macro: '{$SDWAN.API.URL}' + description: 'Cisco SD-WAN Monitor API URL.' + - macro: '{$SDWAN.CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of the CPU utilization, expressed in %.' + - macro: '{$SDWAN.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for an API.' + - macro: '{$SDWAN.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'Critical threshold of the filesystem utilization. Can be used with the filesystem name as context.' + - macro: '{$SDWAN.FS.PUSED.MAX.WARN}' + value: '80' + description: 'Warning threshold of the filesystem utilization. Can be used with the filesystem name as context.' + - macro: '{$SDWAN.HTTP_PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format [protocol://][username[:password]@]proxy.example.com[:port]. See the documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + - macro: '{$SDWAN.IF.ERRORS.WARN}' + value: '2' + description: 'Threshold of the error packets rate for the warning trigger. Can be used with the interface name as context.' + - macro: '{$SDWAN.IF.UTIL.MAX}' + value: '90' + description: 'This macro is used as a threshold in the interface utilization trigger. Can be used with the interface name as context.' + - macro: '{$SDWAN.LA.PER.CPU.MAX.WARN}' + value: '1.5' + description: 'Load per CPU considered sustainable. Tune if needed.' + - macro: '{$SDWAN.LLD.FILTER.FSNAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable filesystems by name.' + - macro: '{$SDWAN.LLD.FILTER.FSNAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable filesystems by name.' + - macro: '{$SDWAN.LLD.FILTER.IFNAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable interfaces by name.' + - macro: '{$SDWAN.LLD.FILTER.IFNAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable interfaces by name.' + - macro: '{$SDWAN.MEMORY.AVAILABLE.MIN}' + value: 100K + description: 'This macro is used as a threshold in the memory available trigger.' + - macro: '{$SDWAN.MEMORY.UTIL.MAX}' + value: '90' + description: 'Critical threshold of the memory utilization, expressed in %.' + - macro: '{$SDWAN.ROUTES.FREQUENCY}' + value: 1h + description: 'Update interval for the Routes item, expressed in hours.' + - macro: '{$SDWAN.TOKEN}' + type: SECRET_TEXT + description: 'Cisco SD-WAN Monitor API token.' + dashboards: + - uuid: 45ab5f4b9e9d445b9e774bbfa5cadafb + name: 'SD-WAN: General' + pages: + - name: Overview + widgets: + - type: item + name: State + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.state + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: Name + 'y': '3' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.hostname + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'Control connections' + 'y': '6' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.control_conn + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: Reachability + x: '18' + 'y': '6' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.reachability + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: Model + x: '24' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.model + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: Uptime + x: '24' + 'y': '3' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.uptime + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: Certificate + x: '36' + 'y': '6' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.certificate_validity + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'Serial Number' + x: '48' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.serialnumber + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: Version + x: '48' + 'y': '3' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.version + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: Role + x: '54' + 'y': '6' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.role + - type: INTEGER + name: show.0 + value: '2' + - name: 'System performance' + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + name: 'SD-WAN: System load' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + name: 'SD-WAN: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + name: '["{#FSNAME}"]: Disk space usage' + - type: STRING + name: reference + value: AAAAE + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + name: 'SD-WAN: CPU usage' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + name: 'SD-WAN: Processes' + - type: STRING + name: reference + value: AAAAD + - name: 'Network interfaces' + widgets: + - type: graphprototype + width: '72' + height: '7' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + name: 'Interface ["{#IFNAME}"]: Network traffic' + - type: STRING + name: reference + value: AAAAF + - name: Routes + widgets: + - type: graphprototype + width: '72' + height: '8' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco SD-WAN device by HTTP' + name: 'Route [{#LOCAL} => {#REMOTE}]: Route statistic' + - type: STRING + name: reference + value: AAAAG + - type: INTEGER + name: rows + value: '2' + valuemaps: + - uuid: ac1ad6688715425b8d6d0ac3c7e72b14 + name: 'Admin status' + mappings: + - value: '0' + newvalue: up + - value: '1' + newvalue: down + - value: '10' + newvalue: unknown + - uuid: 7de6a0190832425a9b05d9740a6495c6 + name: 'Device state' + mappings: + - value: '0' + newvalue: green + - value: '1' + newvalue: yellow + - value: '2' + newvalue: red + - value: '10' + newvalue: unknown + - uuid: a8fdd703646d4f3bb5c3ac7b39fd65da + name: 'Not used' + mappings: + - value: '-1' + newvalue: 'not used' + - uuid: a563ee950d954a3086170c5de9cabf71 + name: 'Operational status' + mappings: + - value: '0' + newvalue: up + - value: '1' + newvalue: down + - value: '2' + newvalue: 'no pass' + - value: '10' + newvalue: unknown + - uuid: 93bca94da129493ebfd4e7a9f833bdf8 + name: 'Reachability status' + mappings: + - value: '0' + newvalue: reachable + - value: '1' + newvalue: unreachable + - value: '2' + newvalue: auth-failed + - value: '3' + newvalue: staging + - value: '10' + newvalue: unknown + - uuid: fe4450cc25624972b754d834f369e7fc + name: Unknown + mappings: + - value: '-1' + newvalue: unknown + - uuid: 7ab3966394504fb6a55c3247f4754729 + name: 'Validity status' + mappings: + - value: '0' + newvalue: valid + - value: '1' + newvalue: invalid + - value: '10' + newvalue: unknown + triggers: + - uuid: fe3886ed10b94fd6b7cd99cba20809a4 + expression: 'last(/Cisco SD-WAN device by HTTP/sd_wan.device.state)<>0 and length(last(/Cisco SD-WAN device by HTTP/sd_wan.device.state_descr))>0' + name: 'Cisco SD-WAN: Device state is not green' + opdata: 'Current state: {ITEM.LASTVALUE1}, Reason: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The device current state is not green.' + tags: + - tag: scope + value: availability + - uuid: 9e558d5397e34468bd845f3e3f0442ec + expression: 'max(/Cisco SD-WAN device by HTTP/sd_wan.device.memory.avail,5m)<{$SDWAN.MEMORY.AVAILABLE.MIN} and last(/Cisco SD-WAN device by HTTP/sd_wan.device.memory.total)>0' + name: 'Cisco SD-WAN: Lack of available memory' + event_name: 'Cisco SD-WAN: Lack of available memory (<{$SDWAN.MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})' + opdata: 'Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: AVERAGE + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: f37b627ac23c411d935d08c1f6dafde9 + expression: | + min(/Cisco SD-WAN device by HTTP/sd_wan.device.cpu.load[avg1],5m)/last(/Cisco SD-WAN device by HTTP/sd_wan.device.cpu.num)>{$SDWAN.LA.PER.CPU.MAX.WARN} + and last(/Cisco SD-WAN device by HTTP/sd_wan.device.cpu.load[avg5])>0 + and last(/Cisco SD-WAN device by HTTP/sd_wan.device.cpu.load[avg15])>0 + name: 'Cisco SD-WAN: Load average is too high' + event_name: 'Cisco SD-WAN: Load average is too high (per CPU load over {$SDWAN.LA.PER.CPU.MAX.WARN} for 5m)' + opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The load average per CPU is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graphs: + - uuid: 8c9d1474c4384aacb045da2c7414e63b + name: 'SD-WAN: CPU usage' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.cpu.util[idle]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.cpu.util[system]' + - sortorder: '2' + color: 00611C + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.cpu.util[user]' + - uuid: 9a99dcc198154d5189012fcbb2550c53 + name: 'SD-WAN: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.cpu.util + - uuid: b35de32ff8244417b59614f0e5a47b29 + name: 'SD-WAN: Memory usage' + ymin_type_1: FIXED + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.memory.total + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.memory.avail + - uuid: a7a3543654d24a3eb922c81edbc45a46 + name: 'SD-WAN: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.memory.util + - uuid: 164b95f665dc4cec8eabebdcd5417ae9 + name: 'SD-WAN: Processes' + graph_items: + - color: 199C0D + item: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.proc.num + - uuid: 29d55fad7a034b00a8a67bba8ad794a7 + name: 'SD-WAN: System load' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.cpu.load[avg1]' + - sortorder: '1' + color: F63100 + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.cpu.load[avg5]' + - sortorder: '2' + color: 00611C + item: + host: 'Cisco SD-WAN device by HTTP' + key: 'sd_wan.device.cpu.load[avg15]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Cisco SD-WAN device by HTTP' + key: sd_wan.device.cpu.num diff --git a/Cisco_Secure_Firewall_Threat_Defense_by_HTTP.yaml b/Cisco_Secure_Firewall_Threat_Defense_by_HTTP.yaml new file mode 100644 index 0000000..d74c963 --- /dev/null +++ b/Cisco_Secure_Firewall_Threat_Defense_by_HTTP.yaml @@ -0,0 +1,2971 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 1818cd052f174772a48bfc275d0016dd + template: 'Cisco Secure Firewall Threat Defense by HTTP' + name: 'Cisco Secure Firewall Threat Defense by HTTP' + description: | + This template is designed to monitor Cisco Secure Firewall Threat Defense devices using the REST API. + It provides metrics such as CPU and memory usage, interface statistics, connection tracking, and more. + The template includes items, triggers, and graphs to help you monitor the performance and health of your Cisco Secure Firewall Threat Defense devices. + It is based on the Cisco Secure Firewall Threat Defense REST API and requires the API URL, username, and password to be set as macros. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 72082a30d426460e8d30219584bc8479 + name: 'CPU utilization' + type: DEPENDENT + key: cisco.ftd.cpu.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'Average CPU utilization.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu.items..avgUsage.first() + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: cpu + triggers: + - uuid: e54b01b249ea43978267ca1b053732e7 + expression: 'min(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.cpu.utilization,15m)>{$CISCO.FTD.CPU.UTIL.WARN}' + name: 'Cisco Secure FTD: High CPU utilization' + event_name: 'Cisco Secure FTD: High CPU utilization (over {$CISCO.FTD.CPU.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 6c8d958d050b42c68519b763dbbd2b4b + name: 'Get device metrics' + type: DEPENDENT + key: cisco.ftd.device.metrics.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects device metrics from the Cisco Secure FTD API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Cisco = { + api_url: '{$CISCO.FTD.API.URL}', + http_proxy: '{$CISCO.FTD.HTTP_PROXY}', + tls: new CTlsConfig('{{$HTTP.TLS.VERIFY:"Cisco Secure Firewall Threat Defense"}.regsub("^(none|peer|full)$", "\1")}'), + + getToken: function (params) { + ['access_token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Unexpected session token value has been received: ' + field + '.'; + } + }); + Cisco.params = params; + }, + + request: function (url) { + + var response, + request = new HttpRequest(Cisco.tls.options); + + if (typeof Cisco.http_proxy !== 'undefined' && Cisco.http_proxy !== '') { + request.setProxy(Cisco.http_proxy); + } + if (!Cisco.params.access_token) { + throw 'Request does not contain access token.'; + } + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Cisco.params.access_token); + + Zabbix.log(4, '[ Cisco ] request url: ' + url); + + Cisco.tls.checkURL(url); + response = request.get(url); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getMetricsData: function () { + var data = {}; + + endpoints = { + 'cpu': 'monitor/trendingreports/cpu?time_duration=60', + 'memory': 'monitor/trendingreports/memory?time_duration=60', + 'eps': 'monitor/trendingreports/eps?time_duration=60', + 'throughput': 'monitor/trendingreports/throughput?time_duration=60', + 'disk': 'operational/diskusage/default', + 'systeminfo': 'operational/systeminfo/default' + }; + + if (typeof Cisco.api_url === 'string' && !Cisco.api_url.endsWith('/')) { + Cisco.api_url += '/'; + } + + Object.keys(endpoints).forEach(function (key) { + data[key] = Cisco.request(Cisco.api_url + endpoints[key]); + }); + + return data; + } + }; + + try { + Cisco.getToken(JSON.parse(value)); + + return JSON.stringify(Cisco.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Cisco ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + master_item: + key: cisco.ftd.token.get + tags: + - tag: component + value: raw + - uuid: 201207d071834816bfc41f08c2cadff2 + name: 'Device metric item errors' + type: DEPENDENT + key: cisco.ftd.device.metrics.get.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from device metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: error + triggers: + - uuid: 64081e3e64264352a1075dcdc16d8b7a + expression: 'length(last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.device.metrics.get.errors))>0' + name: 'Cisco Secure FTD: There are errors in the ''Get device metrics'' metric' + priority: WARNING + description: 'An error occurred when trying to get device metrics from the Cisco Secure FTD API.' + tags: + - tag: scope + value: availability + - uuid: 431375cc8501476d8fde2f5ad2e66b2f + name: 'Disc space: Total' + type: DEPENDENT + key: cisco.ftd.disk.total.size + delay: '0' + units: B + description: 'Total disk size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "disk_stats.total.size")].value.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: disk + - uuid: d5072e8701674e23a38c3feb4a66c844 + name: 'Disc space: Used' + type: DEPENDENT + key: cisco.ftd.disk.total.used + delay: '0' + units: B + description: 'Total used disk space in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "disk_stats.total.used")].value.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: disk + - uuid: cde9728d17f34719ba7751826c7cc93f + name: 'Disc space: Utilization' + type: DEPENDENT + key: cisco.ftd.disk.total.utilization + delay: '0' + units: '%' + description: 'Total disk space utilization percentage.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "disk_stats.total.used_percentage")].value.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: disk + - uuid: ce9ae0fb00f94233950d400af207ceff + name: 'Events per second' + type: DEPENDENT + key: cisco.ftd.events.rate + delay: '0' + value_type: FLOAT + units: '!events' + description: 'Average events per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.eps.items..avgEps.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: system + - uuid: a5e0330248284d24a8754e6c04539517 + name: 'Memory utilization' + type: DEPENDENT + key: cisco.ftd.memory.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.memory.items..avgUsage.first() + error_handler: DISCARD_VALUE + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: memory + triggers: + - uuid: 3d5da93aed4343dc8b7e20628a37d20a + expression: 'min(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.memory.utilization,15m) >= {$CISCO.FTD.MEMORY.UTIL.WARN}' + name: 'Cisco Secure FTD: High memory utilization' + event_name: 'Cisco Secure FTD: High memory utilization (over {$CISCO.FTD.MEMORY.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'RAM utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: ecc462ed67024602af0a8b026583a64d + name: 'Platform model' + type: DEPENDENT + key: cisco.ftd.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'Platform model of the Cisco Secure FTD.' + preprocessing: + - type: JSONPATH + parameters: + - $.systeminfo.platformModel + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: system + - uuid: 5eae7fb2030e44bb8afa8b65c53c5d39 + name: 'Get operational metrics' + type: DEPENDENT + key: cisco.ftd.operational.metrics.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects device metrics from the Cisco Secure FTD API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Cisco = { + api_url: '{$CISCO.FTD.API.URL}', + http_proxy: '{$CISCO.FTD.HTTP_PROXY}', + tls: new CTlsConfig('{{$HTTP.TLS.VERIFY:"Cisco Secure Firewall Threat Defense"}.regsub("^(none|peer|full)$", "\1")}'), + + getToken: function (params) { + ['access_token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Unexpected session token value has been received: ' + field + '.'; + } + }); + Cisco.params = params; + }, + + getField: function (data, path, default_value) { + var steps = path.split('.'); + var step = steps.shift(); + + while (typeof step !== 'undefined') { + if (typeof data === undefined || typeof data[step] === 'undefined') { + return default_value; + } + + data = data[step]; + step = steps.shift(); + } + return data; + }, + + request: function (url) { + + var response, + request = new HttpRequest(Cisco.tls.options); + + if (typeof Cisco.http_proxy !== 'undefined' && Cisco.http_proxy !== '') { + request.setProxy(Cisco.http_proxy); + } + if (!Cisco.params.access_token) { + throw 'Request does not contain access token.'; + } + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Cisco.params.access_token); + + Zabbix.log(4, '[ Cisco ] request url: ' + url); + + Cisco.tls.checkURL(url); + response = request.get(url); + + if (request.getStatus() !== 200) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getMetricsData: function () { + if (typeof Cisco.api_url === 'string' && !Cisco.api_url.endsWith('/')) { + Cisco.api_url += '/'; + } + + metrics = Cisco.getField(Cisco.request(Cisco.api_url + 'devices/default/operational/metrics'), 'items'); + + return metrics.map(function (data) { + const idField = Cisco.getField(data, 'id', ''); + const parts = idField.split('.'); + + const type = parts[0]; + const id = parts[1] || type; + const metric = parts.length >= 3 ? parts.slice(2).join('.') : parts.slice(1).join('.'); + + return { + type, + id, + metric, + name: Cisco.getField(data, 'name', ''), + value: Cisco.getField(data, 'metric.value', null), + status: Cisco.getField(data, 'metric.status'), + mounted_on: Cisco.getField(data, 'mountedOn'), + unit: Cisco.getField(data, 'metric.unit', '') + }; + }); + + } + }; + + try { + Cisco.getToken(JSON.parse(value)); + + return JSON.stringify(Cisco.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Cisco ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + master_item: + key: cisco.ftd.token.get + tags: + - tag: component + value: raw + - uuid: b2b4d9d4afad426483283cc9c23dcbc7 + name: 'Operational metric item errors' + type: DEPENDENT + key: cisco.ftd.operational.metrics.get.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from operational metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: error + triggers: + - uuid: d955d3cd1f5f4263ac37a004e047e5d5 + expression: 'length(last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.operational.metrics.get.errors))>0' + name: 'Cisco Secure FTD: There are errors in the ''Get operational metrics'' metric' + priority: WARNING + description: 'An error occurred when trying to get operational metrics from the Cisco Secure FTD API.' + tags: + - tag: scope + value: availability + - uuid: 0668f90812a94797a0b5194ffb2870d2 + name: 'Serial number' + type: DEPENDENT + key: cisco.ftd.serialnumber + delay: '0' + value_type: CHAR + trends: '0' + description: 'Serial number of the Cisco Secure FTD.' + preprocessing: + - type: JSONPATH + parameters: + - $.systeminfo.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: system + triggers: + - uuid: c8c683ef77a94e37a407b4879be29245 + expression: 'last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.serialnumber,#1)<>last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.serialnumber,#2) and length(last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.serialnumber))>0' + name: 'Cisco Secure FTD: Device has been replaced' + event_name: 'Cisco Secure FTD: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 11da0a11baff42e19cdb00e6f1ec46be + name: 'Software version' + type: DEPENDENT + key: cisco.ftd.software.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Software version of the Cisco Secure FTD.' + preprocessing: + - type: JSONPATH + parameters: + - $.systeminfo.softwareVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: system + - uuid: 826ab729ee124cd8afcd0608803ee26e + name: 'Storage: Free' + type: DEPENDENT + key: cisco.ftd.storage.free + delay: '0' + units: B + description: 'Amount of free storage.' + preprocessing: + - type: JSONPATH + parameters: + - $.disk.free + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1073741824' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: storage + - uuid: 51e1c93ed8084054b0a1c79666772329 + name: 'Storage: Total' + type: DEPENDENT + key: cisco.ftd.storage.total + delay: '0' + units: B + description: 'Amount of total storage.' + preprocessing: + - type: JSONPATH + parameters: + - $.disk.total + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1073741824' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: storage + - uuid: a3c13fa819db4776bbfc49e97331a128 + name: 'Storage: Used' + type: DEPENDENT + key: cisco.ftd.storage.usage + delay: '0' + units: B + description: 'Amount of storage used.' + preprocessing: + - type: JSONPATH + parameters: + - $.disk.used + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1073741824' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: storage + - uuid: fe265c79580b4da99b9a83f23739fae5 + name: 'Get token' + type: HTTP_AGENT + key: cisco.ftd.token.get + history: '0' + value_type: TEXT + trends: '0' + description: 'Requests an access token using the `password` grant type (username and password).' + timeout: '{$CISCO.FTD.DATA.TIMEOUT}' + url: '{$CISCO.FTD.API.URL}/fdm/token' + posts: '{ "grant_type": "password", "username": "{$CISCO.FTD.API.USERNAME}", "password": "{$CISCO.FTD.API.PASSWORD}" }' + http_proxy: '{$CISCO.FTD.HTTP_PROXY}' + headers: + - name: Content-Type + value: application/json + - name: Accept + value: application/json + request_method: POST + tags: + - tag: component + value: raw + - uuid: d03f7e217c704bbc934a6045cbbec48d + name: 'System uptime' + type: DEPENDENT + key: cisco.ftd.uptime + delay: '0' + units: uptime + description: 'The system uptime.' + preprocessing: + - type: JSONPATH + parameters: + - $.systeminfo.systemUptime + - type: JAVASCRIPT + parameters: + - 'return (Math.floor(Date.now()/1000)-Math.floor(Number(value)/1000));' + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: system + triggers: + - uuid: 887632676fba481db8dd93a977a8d256 + expression: 'last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.uptime)<10m' + name: 'Cisco Secure FTD: Device has been restarted' + event_name: 'Cisco Secure FTD: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'The host uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: fd567f947ede4429a3006ef43e01ff40 + name: 'ASP drop discovery' + type: DEPENDENT + key: cisco.ftd.asp_drops.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$CISCO.FTD.LLD.FILTER.ASP.STATS.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$CISCO.FTD.LLD.FILTER.ASP.STATS.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of the Accelerated Security Path drops or connections from the Cisco Secure FTD API.' + item_prototypes: + - uuid: 6aef1770da014d549373c0f045b9304f + name: 'ASP [{#METRIC}]' + type: DEPENDENT + key: 'cisco.ftd.asp_drops["{#ID}"]' + delay: '0' + value_type: FLOAT + description: 'Number of Accelerated Security Path (ASP) drops per second for `{#METRIC}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#NAME}" && @.metric == "{#METRIC}")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: asp + value: '{#ID}' + - tag: component + value: asp + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + asp_drops = []; + + data.forEach(function (item) { + if (item.type === 'asp_drops') { + asp_drops.push({ + '{#ID}': item.metric.split(' ').join('_'), + '{#NAME}': item.id, + '{#METRIC}': item.metric + }); + } + }); + + return JSON.stringify(asp_drops); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 81b052482ea1408180540a96f9fea8b6 + name: 'Connection discovery' + type: DEPENDENT + key: cisco.ftd.conn_stats.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$CISCO.FTD.LLD.FILTER.CONN.STATS.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$CISCO.FTD.LLD.FILTER.CONN.STATS.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of connection statistics from the Cisco Secure FTD API.' + item_prototypes: + - uuid: e9c51430c12e40e9926d6ff2059ea295 + name: 'Statistic [{#NAME}][{#METRIC}]' + type: DEPENDENT + key: 'cisco.ftd.conn_stats["{#NAME}","{#METRIC}"]' + delay: '0' + value_type: FLOAT + description: 'Connection statistic for `{#NAME}` and metric `{#METRIC}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#NAME}" && @.metric == "{#METRIC}")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: connection + - tag: connection + value: '{#NAME}' + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + connections = []; + + data.forEach(function (connection) { + if (connection.type === 'conn_stats') { + connections.push({ + '{#NAME}': connection.id, + '{#METRIC}': connection.metric + }); + } + }); + + return JSON.stringify(connections); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 0e73d72250294e959a6f0557631e64ba + name: 'CPU discovery' + type: DEPENDENT + key: cisco.ftd.cpu.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#METRIC}' + value: '{$CISCO.FTD.LLD.FILTER.CPU.NAME.MATCHES}' + formulaid: A + - macro: '{#METRIC}' + value: '{$CISCO.FTD.LLD.FILTER.CPU.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of CPU monitoring entries from the Cisco Secure FTD API.' + item_prototypes: + - uuid: 4a09b3b0c19148b99dd5fc3da975aa0e + name: 'CPU [{#METRIC}] utilization' + type: DEPENDENT + key: 'cisco.ftd.cpu.util["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Discovery of CPU `{#METRIC}` utilization (in percent).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#NAME}")].value.first()' + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: cpu + - tag: cpu + value: '{#METRIC}' + trigger_prototypes: + - uuid: 1c5f0b2d3e4f4a6b8c9d0e1f2a3b4c5d + expression: 'min(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.cpu.util["{#NAME}"],15m)>{$CISCO.FTD.CPU.UTIL.WARN:"{#NAME}"}' + name: 'Cisco Secure FTD: High CPU [{#METRIC}] utilization' + event_name: 'Cisco Secure FTD: High CPU utilization (over {$CISCO.FTD.CPU.UTIL.WARN:"{#NAME}"}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + cpu = []; + + data.forEach(function (item) { + if (item.type === 'cpu') { + cpu.push({ + '{#NAME}': item.name, + '{#METRIC}': item.metric + }); + } + }); + + return JSON.stringify(cpu); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 0b48d721f9b44f1b836cc889d53dacaf + name: 'Critical process discovery' + type: DEPENDENT + key: cisco.ftd.critical_process.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ID}' + value: '{$CISCO.FTD.LLD.FILTER.PROCESS.NAME.MATCHES}' + formulaid: A + - macro: '{#ID}' + value: '{$CISCO.FTD.LLD.FILTER.PROCESS.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of critical process statistics from the Cisco Secure FTD API.' + item_prototypes: + - uuid: 9c36af7e5458489ea318e22bc58d1965 + name: 'Process [{#ID}]: Restart count' + type: DEPENDENT + key: 'cisco.ftd.critical_process.restart_count["{#ID}"]' + delay: '0' + description: 'Restart count of process `{#ID}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#ID}" && @.metric == "restart_count")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: process + - tag: process + value: '{#ID}' + - uuid: fc6e03e292b947fc9ec05de27c2a4d7f + name: 'Process [{#ID}]: Status' + type: DEPENDENT + key: 'cisco.ftd.critical_process.status["{#ID}"]' + delay: '0' + description: 'Status of process `{#ID}`.' + valuemap: + name: 'Cisco FTD process status' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#ID}" && @.metric == "status")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'STOPPED': 1, + 'RUNNING': 2, + 'FAILED': 3, + 'UNKNOWN': 4, + 'RESTARTING': 5 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: process + - tag: process + value: '{#ID}' + trigger_prototypes: + - uuid: 9ef40026c8fe4dd389b43fa2e012ce0e + expression: 'last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.critical_process.status["{#ID}"])=3' + name: 'Cisco Secure FTD: Process [{#ID}]: Status failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Process `{#ID}` is the `failed` status.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7737377bce104953b8e80c2700492c5d + expression: 'last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.critical_process.status["{#ID}"])=1' + name: 'Cisco Secure FTD: Process [{#ID}]: Status stopped' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Process `{#ID}` is the `stopped` status.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4ae16d0410804ec48e5d1866db307a15 + name: 'Process [{#ID}]: Uptime' + type: DEPENDENT + key: 'cisco.ftd.critical_process.uptime["{#ID}"]' + delay: '0' + value_type: FLOAT + units: uptime + description: 'Uptime of process `{#ID}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#ID}" && @.metric == "uptime")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: process + - tag: process + value: '{#ID}' + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + critical_process = [], + unique = {}; + + data.forEach(function (process) { + var key = process.id; + if (!unique[key] && process.type == 'critical_process') { + unique[key] = true; + critical_process.push({ + '{#ID}': process.id + }); + } + }); + + return JSON.stringify(critical_process); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: c49cb0da46624ed1b56063d8c2589e55 + name: 'FAN discovery' + type: DEPENDENT + key: cisco.ftd.fan.discovery + delay: '0' + description: 'Discovery of FAN sensors.' + item_prototypes: + - uuid: d05588f39d2d401595f27e6e8b293296 + name: 'Fan speed [{#NAME}]' + type: DEPENDENT + key: 'cisco.ftd.sensor.fan.rpm[{#SENSOR}]' + delay: '0' + value_type: FLOAT + units: '!rpm' + description: 'FAN `{#SENSOR}` speed in RPM.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == ''{#SENSOR}'')].value.first()' + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: fan + - tag: fan + value: '{#NAME}' + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + fan = []; + + data.forEach(function (item) { + + if (item.type === 'chassis_stats' && item.metric.match(/_fan/)) { + fan.push({ + '{#SENSOR}': item.metric, + '{#NAME}': item.metric.replace(/_rpm|_spd/g, '') + }); + } + }); + + return JSON.stringify(fan); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 38b66206cb044ef0bf4806b6155baf26 + name: 'Interface discovery' + type: DEPENDENT + key: cisco.ftd.interface.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DESCR}' + value: '{$CISCO.FTD.LLD.FILTER.IF.DESCR.MATCHES}' + formulaid: A + - macro: '{#DESCR}' + value: '{$CISCO.FTD.LLD.FILTER.IF.DESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NAME}' + value: '{$CISCO.FTD.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#NAME}' + value: '{$CISCO.FTD.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of interfaces from the Cisco Secure FTD API.' + item_prototypes: + - uuid: c23c19d990ca4813abd843d03a63bf14 + name: 'Interface [{#NAME}][{#DESCR}]: Dropped packets' + type: DEPENDENT + key: 'cisco.ftd.interface.drop.packets["{#NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of dropped packets per second `{#NAME}` interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "drop_packets")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'cisco.ftd.interface.get["{#NAME}","{#DESCR}"]' + tags: + - tag: component + value: network + - tag: interface + value: '{#NAME}' + - uuid: c89465c8fdc049cfa3358eaf3fc4542b + name: 'Interface [{#NAME}][{#DESCR}]: Get metric data' + type: DEPENDENT + key: 'cisco.ftd.interface.get["{#NAME}","{#DESCR}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets data from the interface `{#NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#NAME}")]' + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: network + - tag: component + value: raw + - tag: interface + value: '{#NAME}' + - uuid: e22680cc81e248008c0cc22ee7dc79ba + name: 'Interface [{#NAME}][{#DESCR}]: Input errors' + type: DEPENDENT + key: 'cisco.ftd.interface.input.errors["{#NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Input errors `{#NAME}` interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "input_errors")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'cisco.ftd.interface.get["{#NAME}","{#DESCR}"]' + tags: + - tag: component + value: network + - tag: interface + value: '{#NAME}' + trigger_prototypes: + - uuid: 7493917bc86741a9b9e5407d91a3c41b + expression: 'min(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.interface.input.errors["{#NAME}"],5m)>{$CISCO.FTD.IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.interface.input.errors["{#NAME}"],5m)<{$CISCO.FTD.IF.ERRORS.WARN:"{#NAME}"}*0.8' + name: 'Cisco Secure FTD: Interface [{#NAME}][{#DESCR}]: High input error rate' + event_name: 'Cisco Secure FTD: Interface [{#NAME}][{#DESCR}]: High input error rate ( > {$CISCO.FTD.IF.ERRORS.WARN:"{#NAME}"} for 5m)' + opdata: 'Errors in: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Recovers when below 80% of the `{$CISCO.FTD.IF.ERRORS.WARN:"{#NAME}"}` threshold.' + dependencies: + - name: 'Cisco Secure FTD: Interface [{#NAME}][{#DESCR}]: Link down' + expression: '{$CISCO.FTD.IF.CONTROL:"{#IFNAME}"}=1 and (last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.interface.status["{#NAME}"])=0)' + tags: + - tag: scope + value: availability + - uuid: 8d153f59b49e4f17acce290543edb0c9 + name: 'Interface [{#NAME}][{#DESCR}]: Input packets' + type: DEPENDENT + key: 'cisco.ftd.interface.input.packets["{#NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Input packets `{#NAME}` interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "input_packets")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'cisco.ftd.interface.get["{#NAME}","{#DESCR}"]' + tags: + - tag: component + value: network + - tag: interface + value: '{#NAME}' + - uuid: e13c67805d8f49b8a2f884dfee2065ce + name: 'Interface [{#NAME}][{#DESCR}]: Outgoing traffic' + type: DEPENDENT + key: 'cisco.ftd.interface.out.traffic["{#NAME}"]' + delay: '0' + units: bps + description: 'Outgoing traffic `{#NAME}` interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "output_bytes")].value.first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'cisco.ftd.interface.get["{#NAME}","{#DESCR}"]' + tags: + - tag: component + value: network + - tag: interface + value: '{#NAME}' + - uuid: 17687d65543e45dc92f058eed2ea5b33 + name: 'Interface [{#NAME}][{#DESCR}]: Output errors' + type: DEPENDENT + key: 'cisco.ftd.interface.output.errors["{#NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Output errors `{#NAME}` interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "output_errors")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'cisco.ftd.interface.get["{#NAME}","{#DESCR}"]' + tags: + - tag: component + value: network + - tag: interface + value: '{#NAME}' + trigger_prototypes: + - uuid: 58570e2bed7f47448e1c2d43e448cc78 + expression: 'min(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.interface.output.errors["{#NAME}"],5m)>{$CISCO.FTD.IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.interface.output.errors["{#NAME}"],5m)<{$CISCO.FTD.IF.ERRORS.WARN:"{#NAME}"}*0.8' + name: 'Cisco Secure FTD: Interface [{#NAME}][{#DESCR}]: High output error rate' + event_name: 'Cisco Secure FTD: Interface [{#NAME}][{#DESCR}]: High output error rate ( > {$CISCO.FTD.IF.ERRORS.WARN:"{#NAME}"} for 5m)' + opdata: 'Errors in: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Recovers when below 80% of the `{$CISCO.FTD.IF.ERRORS.WARN:"{#NAME}"}` threshold.' + dependencies: + - name: 'Cisco Secure FTD: Interface [{#NAME}][{#DESCR}]: Link down' + expression: '{$CISCO.FTD.IF.CONTROL:"{#IFNAME}"}=1 and (last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.interface.status["{#NAME}"])=0)' + tags: + - tag: scope + value: availability + - uuid: 2feeaafb8a9844b7b99c45cb5d8a0d6a + name: 'Interface [{#NAME}][{#DESCR}]: Output packets' + type: DEPENDENT + key: 'cisco.ftd.interface.output.packets["{#NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Output packets `{#NAME}` interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "output_packets")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'cisco.ftd.interface.get["{#NAME}","{#DESCR}"]' + tags: + - tag: component + value: network + - tag: interface + value: '{#NAME}' + - uuid: 4c1364b2ee22411a93e4c093842ac953 + name: 'Interface [{#NAME}][{#DESCR}]: Status' + type: DEPENDENT + key: 'cisco.ftd.interface.status["{#NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Status `{#NAME}` interface.' + valuemap: + name: 'Cisco FTD interface status' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "status")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: 'cisco.ftd.interface.get["{#NAME}","{#DESCR}"]' + tags: + - tag: component + value: network + - tag: interface + value: '{#NAME}' + trigger_prototypes: + - uuid: a7b1dd7b06654adaa9781efb2e5b5d42 + expression: '{$CISCO.FTD.IF.CONTROL:"{#IFNAME}"}=1 and (last(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.interface.status["{#NAME}"])=0)' + name: 'Cisco Secure FTD: Interface [{#NAME}][{#DESCR}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is `down`. + 2. `{$CISCO.FTD.IF.CONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to`0`, marking this interface as not important. No new trigger will be fired if this interface is down. + tags: + - tag: scope + value: availability + - uuid: c1f73a16a8614122ae7e255ece2d7017 + name: 'Interface [{#NAME}][{#DESCR}]: Incoming traffic' + type: DEPENDENT + key: 'cisco.ftd.net.if.in.traffic["{#NAME}"]' + delay: '0' + units: bps + description: 'Input traffic `{#NAME}` interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "input_bytes")].value.first()' + - type: MULTIPLIER + parameters: + - '8' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'cisco.ftd.interface.get["{#NAME}","{#DESCR}"]' + tags: + - tag: component + value: network + - tag: interface + value: '{#NAME}' + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + interfaces = [], + unique = {}; + + data.forEach(function (interface) { + var key = interface.id; + if (!unique[key] && interface.type == 'interface' ) { + unique[key] = true; + interfaces.push({ + '{#DESCR}': interface.name, + '{#NAME}': interface.id + }); + } + }); + + return JSON.stringify(interfaces); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 704ddca94289435cae1a3acc06703656 + name: 'Memory discovery' + type: DEPENDENT + key: cisco.ftd.memory.discovery + delay: '0' + description: 'Discovery of memory monitoring entries from the Cisco Secure FTD API.' + item_prototypes: + - uuid: 7b6551dc19e94fafb0688d17d1dc74c2 + name: 'Memory [{#METRIC}]' + type: DEPENDENT + key: 'cisco.ftd.memory["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of memory in bytes for `{#METRIC}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#NAME}")].value.first()' + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: memory + - tag: component + value: raw + - tag: memory + value: '{#METRIC}' + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + mem_bytes = [], + mem_percentage = []; + + data.forEach(function (item) { + if (item.type === 'mem' && item.metric.match(/used_percentage/)) { + mem_percentage.push({ + '{#NAME}': item.name, + '{#METRIC}': item.metric.replace('used_percentage_', '') + }); + } + else if (item.type === 'mem' && !item.metric.match(/remaining_blocks/)) { + mem_bytes.push({ + '{#NAME}': item.name, + '{#METRIC}': item.metric + }); + } + }); + + return JSON.stringify({ mem_percentage, mem_bytes }); + - type: JSONPATH + parameters: + - $.mem_bytes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 934c5e47cfca45c2a4b8584311fdf314 + name: 'Memory utilization discovery' + type: DEPENDENT + key: cisco.ftd.memory.util.discovery + delay: '0' + description: 'Discovery of utilization memory monitoring entries from the Cisco Secure FTD API.' + item_prototypes: + - uuid: 2844d89f2c2a47f3b5506526cd3a0a17 + name: 'Memory [{#METRIC}] utilization' + type: DEPENDENT + key: 'cisco.ftd.memory.util["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Discovery of memory `{#METRIC}` utilization (in percent).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#NAME}")].value.first()' + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: memory + - tag: component + value: raw + - tag: memory + value: '{#METRIC}' + trigger_prototypes: + - uuid: 4891c9022137417996978480d3b8b58d + expression: 'min(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.memory.util["{#NAME}"],15m)>{$CISCO.FTD.MEMORY.UTIL.WARN:"{#NAME}"}' + name: 'Cisco Secure FTD: High memory utilization' + event_name: 'Cisco Secure FTD: High memory utilization (over {$CISCO.FTD.MEMORY.UTIL.WARN:"{#NAME}"}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Memory utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + mem_bytes = [], + mem_percentage = []; + + data.forEach(function (item) { + if (item.type === 'mem' && item.metric.match(/used_percentage/)) { + mem_percentage.push({ + '{#NAME}': item.name, + '{#METRIC}': item.metric.replace('used_percentage_', '') + }); + } + else if (item.type === 'mem' && !item.metric.match(/remaining_blocks/)) { + mem_bytes.push({ + '{#NAME}': item.name, + '{#METRIC}': item.metric + }); + } + }); + + return JSON.stringify({ mem_percentage, mem_bytes }); + - type: JSONPATH + parameters: + - $.mem_percentage + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 57ac09be2b3d46b7a06a2899365c4010 + name: 'PSU discovery' + type: DEPENDENT + key: cisco.ftd.psu.discovery + delay: '0' + description: 'Discovery of PSU sensors.' + item_prototypes: + - uuid: 8947273145fb4f40ae76f6c04841150f + name: 'Power supply [{#SENSOR}]' + type: DEPENDENT + key: 'cisco.ftd.sensor.psu.pwr[{#SENSOR}]' + delay: '0' + value_type: FLOAT + units: '!W' + description: 'Power supply unit `{#SENSOR}` power consumption in watts.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == ''{#SENSOR}'')].value.first()' + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: power + - tag: psu + value: '{#SENSOR}' + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + pwr = []; + + data.forEach(function (item) { + + if (item.type === 'chassis_stats' && item.metric.match(/_pwr/)) { + pwr.push({ + '{#SENSOR}': item.metric + }); + } + }); + + return JSON.stringify(pwr); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: e49aabe5e2ad41fbaeeee607e604f0af + name: 'Snort discovery' + type: DEPENDENT + key: cisco.ftd.snort.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$CISCO.FTD.LLD.FILTER.SNORT.ID.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$CISCO.FTD.LLD.FILTER.SNORT.ID.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of Snort and IDS/IPS statistics from the Cisco Secure FTD API.' + item_prototypes: + - uuid: 402bb608adbd44aea706eaba9c849db5 + name: 'Statistic [{#NAME}][{#METRIC}]' + type: DEPENDENT + key: 'cisco.ftd.snort["{#ID}"]' + delay: '0' + value_type: FLOAT + description: 'Discovery of Snort `{#NAME}` statistics of `{#METRIC}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#ID}")].value.first()' + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: snort + - tag: snort + value: '{#NAME}' + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + snort = [], + unique = {}; + + data.forEach(function (item) { + var key = item.name; + if (!unique[key] && item.type == 'snort') { + unique[key] = true; + snort.push({ + '{#METRIC}': item.metric, + '{#NAME}': item.id, + '{#ID}': item.name + + }); + } + }); + + return JSON.stringify(snort); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 0d88d0b278b34015ad7de49a3344309d + name: 'Temperature sensor discovery' + type: DEPENDENT + key: cisco.ftd.temp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR}' + value: '{$CISCO.FTD.LLD.FILTER.SENSOR.NAME.MATCHES}' + formulaid: A + - macro: '{#SENSOR}' + value: '{$CISCO.FTD.LLD.FILTER.SENSOR.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of temperature sensors from the Cisco Secure FTD API.' + item_prototypes: + - uuid: 3eb667ad9bf64ecc8b919017c158a1cd + name: 'Temperature [{#SENSOR}]' + type: DEPENDENT + key: 'cisco.ftd.sensor.temp.value["{#SENSOR}"]' + delay: '0' + value_type: FLOAT + units: °C + description: 'Temperature of sensor `{#SENSOR}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "{#SENSOR}")].value.first()' + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: temperature + - tag: sensor + value: '{#SENSOR}' + trigger_prototypes: + - uuid: bc9906f695ca493ea09cdf6b3934384e + expression: 'avg(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.sensor.temp.value["{#SENSOR}"],5m)>{$CISCO.FTD.TEMP.CRIT:"{#SENSOR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.sensor.temp.value["{#SENSOR}"],5m)<{$CISCO.FTD.TEMP.CRIT:"{#SENSOR}"}-3' + name: 'Cisco Secure FTD: Temperature is above critical threshold' + event_name: 'Cisco Secure FTD: Temperature is above critical threshold: >{$CISCO.FTD.TEMP.CRIT:"{#SENSOR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as the temperature sensor status, if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1505adc302134e21bb6d2ebf881e27c4 + expression: 'avg(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.sensor.temp.value["{#SENSOR}"],5m)>{$CISCO.FTD.TEMP.WARN:"{#SENSOR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.sensor.temp.value["{#SENSOR}"],5m)<{$CISCO.FTD.TEMP.WARN:"{#SENSOR}"}-3' + name: 'Cisco Secure FTD: Temperature is above warning threshold' + event_name: 'Cisco Secure FTD: Temperature is above warning threshold: >{$CISCO.FTD.TEMP.WARN:"{#SENSOR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as the temperature sensor status, if available.' + dependencies: + - name: 'Cisco Secure FTD: Temperature is above critical threshold' + expression: 'avg(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.sensor.temp.value["{#SENSOR}"],5m)>{$CISCO.FTD.TEMP.CRIT:"{#SENSOR}"}' + recovery_expression: 'max(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.sensor.temp.value["{#SENSOR}"],5m)<{$CISCO.FTD.TEMP.CRIT:"{#SENSOR}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + temp = []; + + data.forEach(function (item) { + + if (item.type === 'chassis_stats' && item.metric.match(/_temp/)) { + temp.push({ + '{#SENSOR}': item.metric + }); + } + }); + + return JSON.stringify(temp); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: c431c01781854d67996b70eaf85ff00a + name: 'Throughput discovery' + type: DEPENDENT + key: cisco.ftd.throughput.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$CISCO.FTD.LLD.FILTER.THROUGHPUT.INTERFACE.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$CISCO.FTD.LLD.FILTER.THROUGHPUT.INTERFACE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of throughput interfaces from the Cisco Secure FTD API.' + item_prototypes: + - uuid: a3ff16bc8dd74055bfcd75144a8f97cd + name: 'Interface [{#NAME}]: Throughput' + type: DEPENDENT + key: 'cisco.ftd.interface.throughput["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Throughput of the `{#NAME}` interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$.throughput.items[?(@.interfaceName == "{#NAME}")].interfaceThroughput.first()' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: cisco.ftd.device.metrics.get + tags: + - tag: component + value: network + - tag: interface + value: '{#NAME}' + master_item: + key: cisco.ftd.device.metrics.get + preprocessing: + - type: JSONPATH + parameters: + - $.throughput.items + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + throughput = [], + unique = {}; + + data.forEach(function (item) { + var key = item.interfaceName; + if (!unique[key]) { + unique[key] = true; + throughput.push({ + '{#NAME}': item.interfaceName, + }); + } + }); + + return JSON.stringify(throughput); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 31d08ae044b3473e860911142ba048ac + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: cisco.ftd.vfs.fs.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSMOUNT}' + value: '{$CISCO.FTD.LLD.FILTER.FSMOUNT.MATCHES}' + formulaid: A + - macro: '{#FSMOUNT}' + value: '{$CISCO.FTD.LLD.FILTER.FSMOUNT.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSNAME}' + value: '{$CISCO.FTD.LLD.FILTER.FSNAME.MATCHES}' + formulaid: C + - macro: '{#FSNAME}' + value: '{$CISCO.FTD.LLD.FILTER.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of mounted filesystems from the Cisco Secure FTD API.' + item_prototypes: + - uuid: 89ccc9c43d084d5d84cac0118a0e205b + name: 'FS [{#FSNAME}][{#FSMOUNT}]: Space utilization' + type: DEPENDENT + key: 'cisco.ftd.fs.pused["{#FSNAME}","{#FSMOUNT}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of the currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#NAME}" && @.mounted_on == "{#FSMOUNT}")].value.first()' + master_item: + key: cisco.ftd.operational.metrics.get + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 687ebffa0c14403398cde19620cc6627 + expression: 'min(/Cisco Secure Firewall Threat Defense by HTTP/cisco.ftd.fs.pused["{#FSNAME}","{#FSMOUNT}"],15m)>{$CISCO.FTD.FS.PUSED.WARN:"{#FSNAME}"}' + name: 'Cisco Secure FTD: FS [{#FSNAME}][{#FSMOUNT}]: Space is low' + event_name: 'Cisco Secure FTD: FS [{#FSNAME}][{#FSMOUNT}]: Space is low (utilization is over {$CISCO.FTD.FS.PUSED.WARN:"{#FSNAME}"}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The trigger expression is based on the current used and maximum available space. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + master_item: + key: cisco.ftd.operational.metrics.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + disk_percentage = []; + + data.forEach(function (item) { + + if (item.type === 'disk_stats' && item.metric.match(/used_percentage/) && item.mounted_on !== undefined) { + disk_percentage.push({ + '{#NAME}': item.name, + '{#FSNAME}': item.id.replace('_', ''), + '{#FSMOUNT}': item.mounted_on, + }); + } + }); + + return JSON.stringify(disk_percentage); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: network + - tag: target + value: cisco + - tag: target + value: cisco-ftd + macros: + - macro: '{$CISCO.FTD.API.PASSWORD}' + type: SECRET_TEXT + description: 'Cisco Secure Firewall Threat Defense REST API password.' + - macro: '{$CISCO.FTD.API.URL}' + description: 'Cisco Secure Firewall Threat Defense REST API URL. Format example: `https://ftd.example.com/api/fdm/latest`' + - macro: '{$CISCO.FTD.API.USERNAME}' + description: 'Cisco Secure Firewall Threat Defense REST API username.' + - macro: '{$CISCO.FTD.CPU.UTIL.WARN}' + value: '80' + description: 'Warning threshold for FTD CPU utilization, expressed as a percentage.' + - macro: '{$CISCO.FTD.DATA.INTERVAL}' + value: 1m + description: 'Update interval for the HTTP item that retrieves data from the API. Can be used with context if needed (check the context values in relevant items).' + - macro: '{$CISCO.FTD.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for the Cisco Secure Firewall Threat Defense REST API.' + - macro: '{$CISCO.FTD.FS.PUSED.WARN}' + value: '80' + description: 'Threshold for the filesystem utilization trigger. Can be used with the filesystem name as context.' + - macro: '{$CISCO.FTD.HTTP_PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format `[protocol://][username[:password]@]proxy.example.com[:port]`. For more details, see the documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + - macro: '{$CISCO.FTD.IF.CONTROL}' + value: '1' + description: 'Macro for the operational state of the interface for the "link down" trigger. Can be used with the interface name as context.' + - macro: '{$CISCO.FTD.IF.ERRORS.WARN}' + value: '2' + description: 'Threshold for the error packet rate warning trigger. Can be used with the interface name as context.' + - macro: '{$CISCO.FTD.LLD.FILTER.ASP.STATS.NAME.MATCHES}' + value: '.*' + description: 'Filter for discoverable Accelerated Security Path dropped packets or connections by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.ASP.STATS.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Accelerated Security Path dropped packets or connections by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.CONN.STATS.NAME.MATCHES}' + value: '.*' + description: 'Filter for discoverable connections by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.CONN.STATS.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered connections by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.CPU.NAME.MATCHES}' + value: '.*' + description: 'Filter for discoverable CPUs by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.CPU.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered CPUs by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.FSMOUNT.MATCHES}' + value: '.*' + description: 'Filter for discoverable filesystems by mount point.' + - macro: '{$CISCO.FTD.LLD.FILTER.FSMOUNT.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered filesystems by mount point.' + - macro: '{$CISCO.FTD.LLD.FILTER.FSNAME.MATCHES}' + value: '.*' + description: 'Filter for discoverable filesystems by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.FSNAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered filesystems by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.IF.DESCR.MATCHES}' + value: '.*' + description: 'Filter for discoverable interface descriptions.' + - macro: '{$CISCO.FTD.LLD.FILTER.IF.DESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by description.' + - macro: '{$CISCO.FTD.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter for discoverable interface names.' + - macro: '{$CISCO.FTD.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.PROCESS.NAME.MATCHES}' + value: '.*' + description: 'Filter for discoverable processes by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.PROCESS.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered processes by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.SENSOR.NAME.MATCHES}' + value: '.*' + description: 'Filter for discoverable temperature sensors by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.SENSOR.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered temperature sensors by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.SNORT.ID.MATCHES}' + value: '.*' + description: 'Filter for discoverable Snort and IDS/IPS statistics by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.SNORT.ID.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Snort and IDS/IPS statistics by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.THROUGHPUT.INTERFACE.NAME.MATCHES}' + value: '.*' + description: 'Filter for discoverable throughput interfaces by name.' + - macro: '{$CISCO.FTD.LLD.FILTER.THROUGHPUT.INTERFACE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable throughput interfaces by name.' + - macro: '{$CISCO.FTD.MEMORY.UTIL.WARN}' + value: '80' + description: 'Warning threshold for FTD memory utilization, expressed as a percentage.' + - macro: '{$CISCO.FTD.TEMP.CRIT}' + value: '60' + description: 'Critical threshold for the temperature sensor trigger. Can be used with the interface name as context.' + - macro: '{$CISCO.FTD.TEMP.WARN}' + value: '50' + description: 'Warning threshold for the temperature sensor trigger. Can be used with the interface name as context.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for JavaScript preprocessing: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Cisco Secure Firewall Threat Defense", e.g. {$HTTP.TLS.VERIFY:"Cisco Secure Firewall Threat Defense"}.' + dashboards: + - uuid: 2433c7593dee4824b3f5ce1209bc5311 + name: 'Cisco Secure FTD: General' + pages: + - name: Overview + widgets: + - type: item + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco Secure Firewall Threat Defense by HTTP' + key: cisco.ftd.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '20' + - type: svggraph + name: Throughput + 'y': '3' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 1565C0 + - type: STRING + name: ds.0.items.0 + value: '*Throughput' + - type: STRING + name: reference + value: RNVBR + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: Events + 'y': '8' + width: '18' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1565C0 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Cisco Secure Firewall Threat Defense by HTTP' + key: cisco.ftd.events.rate + - type: INTEGER + name: lefty + value: '0' + - type: STRING + name: reference + value: IMFOK + - type: INTEGER + name: righty + value: '0' + - type: gauge + name: 'CPU usage' + x: '18' + 'y': '8' + width: '19' + height: '6' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco Secure Firewall Threat Defense by HTTP' + key: cisco.ftd.cpu.utilization + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: thresholds.0.color + value: 2196F3 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF8000 + - type: STRING + name: thresholds.1.threshold + value: '60' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '80' + - type: INTEGER + name: th_arc_size + value: '20' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: units_bold + value: '1' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_bold + value: '1' + - type: INTEGER + name: value_size + value: '20' + - type: item + x: '24' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco Secure Firewall Threat Defense by HTTP' + key: cisco.ftd.software.version + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '20' + - type: gauge + name: 'Memory usage' + x: '37' + 'y': '8' + width: '18' + height: '6' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cisco Secure Firewall Threat Defense by HTTP' + key: cisco.ftd.memory.utilization + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: thresholds.0.color + value: 9CCC65 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF8000 + - type: STRING + name: thresholds.1.threshold + value: '60' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '80' + - type: INTEGER + name: th_arc_size + value: '20' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: units_bold + value: '1' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_bold + value: '1' + - type: INTEGER + name: value_size + value: '20' + - type: item + x: '48' + width: '24' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Cisco Secure Firewall Threat Defense by HTTP' + key: cisco.ftd.uptime + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '20' + - type: piechart + name: 'Disk Usage' + x: '55' + 'y': '8' + width: '17' + height: '6' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color.0 + value: 7CB342 + - type: STRING + name: ds.0.color.1 + value: 1E88E5 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.data_set_label + value: Total + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Cisco Secure Firewall Threat Defense by HTTP' + key: cisco.ftd.storage.free + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Cisco Secure Firewall Threat Defense by HTTP' + key: cisco.ftd.storage.usage + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_value + value: '1' + - type: INTEGER + name: space + value: '2' + - type: INTEGER + name: stroke + value: '1' + - type: INTEGER + name: total_show + value: '1' + - type: STRING + name: units + value: B + - type: INTEGER + name: units_show + value: '1' + - type: STRING + name: value_color + value: 607D8B + - name: 'System Performance' + widgets: + - type: svggraph + name: 'CPU utilization per core' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 5E35B1 + - type: STRING + name: ds.0.items.0 + value: 'CPU [cpu*] utilization' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '4' + - type: STRING + name: reference + value: IKAPW + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'CPU utilization Lina' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '795548' + - type: STRING + name: ds.0.items.0 + value: 'CPU [lina*] utilization' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: PRPGG + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'CPU utilization Snort' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 78909C + - type: STRING + name: ds.0.items.0 + value: 'CPU [snort*] utilization' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: NDYCL + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Space usage, in %' + 'y': '15' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 455A64 + - type: STRING + name: ds.0.items.0 + value: 'FS [dev*][*]: Space used, in %' + - type: STRING + name: reference + value: WZKDT + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Memory utilization' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 689F38 + - type: STRING + name: ds.0.items.0 + value: 'Memory [system] utilization' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: ds.1.color + value: 0D47A1 + - type: STRING + name: ds.1.items.0 + value: 'Memory [swap] utilization' + - type: INTEGER + name: legend_lines + value: '4' + - type: STRING + name: reference + value: MUDCJ + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Memory utilization Lina' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: AC3C00 + - type: STRING + name: ds.0.items.0 + value: 'Memory [lina] utilization' + - type: STRING + name: reference + value: FHFQK + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Memory utilization Snort' + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 9575CD + - type: STRING + name: ds.0.items.0 + value: 'Memory [snort] utilization' + - type: STRING + name: reference + value: HFJKY + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Space utilization chart' + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 43A047 + - type: STRING + name: ds.0.items.0 + value: 'Disc space: Total' + - type: STRING + name: ds.1.color + value: 6D4C41 + - type: STRING + name: ds.1.items.0 + value: 'Disc space: Used' + - type: STRING + name: reference + value: XKVPS + - type: INTEGER + name: righty + value: '0' + - name: Interfaces + widgets: + - type: svggraph + name: 'Output packets' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 5E35B1 + - type: STRING + name: ds.0.items.0 + value: 'Interface *: Output packets' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '4' + - type: STRING + name: reference + value: FFCAF + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Output errors' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '795548' + - type: STRING + name: ds.0.items.0 + value: 'Interface *: Output errors' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: FCDDA + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Incoming traffic' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 78909C + - type: STRING + name: ds.0.items.0 + value: 'Interface *: Incoming traffic' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: FEECA + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Input packets' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 0D47A1 + - type: STRING + name: ds.0.items.0 + value: 'Interface *: Input packets' + - type: INTEGER + name: legend_lines + value: '4' + - type: STRING + name: reference + value: AEBCF + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Input errors' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: AC3C00 + - type: STRING + name: ds.0.items.0 + value: 'Interface *: Input errors' + - type: STRING + name: reference + value: ACDAE + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Outgoing traffic' + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 9575CD + - type: STRING + name: ds.0.items.0 + value: 'Interface *: Outgoing traffic' + - type: STRING + name: reference + value: AEBFA + - type: INTEGER + name: righty + value: '0' + - name: 'Connections & NAT' + widgets: + - type: svggraph + name: 'Active Connections' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 43A047 + - type: STRING + name: ds.0.items.0 + value: 'Statistic [connection][in_use]' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: ds.1.color + value: 1565C0 + - type: STRING + name: ds.1.items.0 + value: 'Statistic [connection][most_used]' + - type: STRING + name: reference + value: TLDCU + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Connections Per Second' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 0D47A1 + - type: STRING + name: ds.0.items.0 + value: 'Statistic [cps][all]' + - type: STRING + name: ds.1.color + value: 00897B + - type: STRING + name: ds.1.items.0 + value: 'Statistic [cps][tcp]' + - type: STRING + name: ds.2.color + value: F9A825 + - type: STRING + name: ds.2.items.0 + value: 'Statistic [cps][udp]' + - type: STRING + name: reference + value: GNLNM + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'NAT Translations' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 546E7A + - type: STRING + name: ds.0.items.0 + value: 'Statistic [xlate][in_use]' + - type: STRING + name: ds.1.color + value: 5E35B1 + - type: STRING + name: ds.1.items.0 + value: 'Statistic [xlate][most_used]' + - type: STRING + name: reference + value: BDOAF + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Preserve Connection' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 0D47A1 + - type: STRING + name: ds.0.items.0 + value: 'Statistic [preserve_connection][enabled]' + - type: STRING + name: ds.1.color + value: 00897B + - type: STRING + name: ds.1.items.0 + value: 'Statistic [preserve_connection][in_effect]' + - type: STRING + name: ds.2.color + value: F9A825 + - type: STRING + name: ds.2.items.0 + value: 'Statistic [preserve_connection][most_enabled]' + - type: STRING + name: ds.3.color + value: 8E24AA + - type: STRING + name: ds.3.items.0 + value: 'Statistic [preserve_connection][most_in_effect]' + - type: STRING + name: reference + value: MMTRY + - type: INTEGER + name: righty + value: '0' + - name: 'ASP Drop Reasons' + widgets: + - type: itemnavigator + width: '26' + height: '8' + fields: + - type: STRING + name: items.0 + value: 'ASP [*]' + - type: STRING + name: reference + value: HPCOY + - type: svggraph + x: '26' + width: '45' + height: '8' + fields: + - type: STRING + name: ds.0.color.0 + value: 43A047 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: HPCOY._itemid + - type: STRING + name: reference + value: OEAQY + - type: INTEGER + name: righty + value: '0' + - name: 'Status Processes' + widgets: + - type: honeycomb + name: Status + width: '36' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'Process [*]: Status' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: YWRAS + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FFD54F + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Uptime + 'y': '6' + width: '72' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'Process [*]: Uptime' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: AGOOH + - type: honeycomb + name: 'Restart count' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'Process [*]: Restart count' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: XGHBR + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - name: Sensors + widgets: + - type: itemnavigator + name: Temperature + width: '10' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'Temperature [*]' + - type: STRING + name: reference + value: PSLAX + - type: gauge + x: '10' + width: '14' + height: '5' + fields: + - type: INTEGER + name: angle + value: '270' + - type: STRING + name: description + value: '{ITEM.VALUE}' + - type: STRING + name: itemid._reference + value: PSLAX._itemid + - type: INTEGER + name: scale_size + value: '10' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: show.3 + value: '5' + - type: STRING + name: thresholds.0.color + value: CFD8DC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 42A5F5 + - type: STRING + name: thresholds.1.threshold + value: '10' + - type: STRING + name: thresholds.2.color + value: 4CAF50 + - type: STRING + name: thresholds.2.threshold + value: '20' + - type: STRING + name: thresholds.3.color + value: FDD835 + - type: STRING + name: thresholds.3.threshold + value: '40' + - type: STRING + name: thresholds.4.color + value: EF6C00 + - type: STRING + name: thresholds.4.threshold + value: '60' + - type: STRING + name: thresholds.5.color + value: F44336 + - type: STRING + name: thresholds.5.threshold + value: '80' + - type: INTEGER + name: th_arc_size + value: '10' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: INTEGER + name: value_arc_size + value: '10' + - type: itemnavigator + name: 'Power supply' + x: '24' + width: '10' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'Power supply [*]' + - type: STRING + name: reference + value: ZSYHY + - type: gauge + x: '34' + width: '14' + height: '5' + fields: + - type: INTEGER + name: angle + value: '270' + - type: STRING + name: description + value: '{ITEM.VALUE}' + - type: STRING + name: itemid._reference + value: ZSYHY._itemid + - type: STRING + name: max + value: '400' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: value_arc_color + value: 00796B + - type: INTEGER + name: value_arc_size + value: '30' + - type: itemnavigator + name: Fan + x: '48' + width: '11' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'Fan speed [*]' + - type: STRING + name: reference + value: YMRVB + - type: gauge + x: '59' + width: '13' + height: '5' + fields: + - type: INTEGER + name: angle + value: '270' + - type: STRING + name: description + value: '{ITEM.VALUE}' + - type: STRING + name: itemid._reference + value: YMRVB._itemid + - type: STRING + name: max + value: '22000' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: show.3 + value: '5' + - type: STRING + name: value_arc_color + value: 1E88E5 + - type: INTEGER + name: value_arc_size + value: '30' + valuemaps: + - uuid: b141de8aea904aef8eeb955fe7d09bd6 + name: 'Cisco FTD interface status' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 2a34dceeb32d44e39be2037a85b9dcb7 + name: 'Cisco FTD process status' + mappings: + - value: '1' + newvalue: STOPPED + - value: '2' + newvalue: RUNNING + - value: '3' + newvalue: FAILED + - value: '4' + newvalue: UNKNOWN + - value: '5' + newvalue: RESTARTING + graphs: + - uuid: 63c998c8625c45ac8e29802bfa83f4e1 + name: 'Cisco Secure FTD: CPU Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 2196F3 + item: + host: 'Cisco Secure Firewall Threat Defense by HTTP' + key: cisco.ftd.cpu.utilization diff --git a/Cisco_UCS_Manager_by_SNMP.yaml b/Cisco_UCS_Manager_by_SNMP.yaml new file mode 100644 index 0000000..38e3ece --- /dev/null +++ b/Cisco_UCS_Manager_by_SNMP.yaml @@ -0,0 +1,2594 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: d5eb4ce08a334098a85e6e02c534be90 + template: 'Cisco UCS Manager by SNMP' + name: 'Cisco UCS Manager by SNMP' + description: | + This is a template for Cisco UCS Manager monitoring via Zabbix SNMP Agent that works without any external scripts. + + + MIBs used: + CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB + IF-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + CISCO-UNIFIED-COMPUTING-PROCESSOR-MIB + CISCO-UNIFIED-COMPUTING-STORAGE-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/418396-discussion-thread-for-official-zabbix-templates-for-cisco + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: ad342e11ce9f4f79bf9b0182c3f83488 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'cisco.ucs.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed + node, together with information on how to contact this person. If no contact + information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 286fdb0fa49a4b378a6219a5ed76aac4 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'cisco.ucs.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5af56ed99d09489aafc2d08d4bd4903a + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'cisco.ucs.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 88bd32f8520144858a8ddb03dd200638 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'cisco.ucs.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, + 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8bd3a60e4c70450492432c6abfa7b5f9 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'cisco.ucs.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By + convention, this is the node's fully-qualified domain name. If the name is unknown, + the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 622ac72c0e534bba94bb93636e4dc103 + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.name[sysName.0],#1)<>last(/Cisco UCS Manager by SNMP/cisco.ucs.name[sysName.0],#2) and length(last(/Cisco UCS Manager by SNMP/cisco.ucs.name[sysName.0]))>0' + name: 'Cisco UCS Manager: System name has changed' + event_name: 'Cisco UCS Manager: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b87e425f1bdf404a8e53ff277c0ff0c0 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'cisco.ucs.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time in seconds since the network management + portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 10d22e53318347658b2418ff33c26e0d + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'cisco.ucs.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management + subsystem contained in the entity. This value is allocated within the SMI enterprises + subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining 'what + kind of box' is being managed. For example, if vendor 'Flintstones, Inc.' was + assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 + to its 'Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5d839f68b6534dc8bd1fb5db7a757f02 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 0926417e279a4e52a7f12587e9422e92 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 010a749e3a3242cd8e3ea30459fae5a4 + expression: 'max(/Cisco UCS Manager by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco UCS Manager: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: f44bb3e5a8ad4d0c98df56267700b171 + name: 'Array controller cache discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#DISKARRAY_CACHE_LOCATION},1.3.6.1.4.1.9.9.719.1.45.11.1.2]' + key: cisco.ucs.array.cache.discovery + delay: 1h + description: 'Scanning table of Array controllers: CISCO-UNIFIED-COMPUTING-STORAGE-MIB::cucsStorageControllerTable.' + item_prototypes: + - uuid: 4e5214066fbb4c719c7e6abfba47e5f6 + name: '{#DISKARRAY_CACHE_LOCATION}: Disk array cache controller battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.11.1.9.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.diskarray.cache.battery.status[cucsStorageRaidBatteryOperability.{#SNMPINDEX}]' + trends: '0' + description: 'MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB' + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentOperability' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: array + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 0300b4bf4e0b42adb1b9e4985e80e356 + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.diskarray.cache.battery.status[cucsStorageRaidBatteryOperability.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + name: 'Cisco UCS Manager: {#DISKARRAY_CACHE_LOCATION}: Disk array cache controller battery is in critical state!' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 158561ecab8b4bbd9c0a616f419bda10 + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.diskarray.cache.battery.status[cucsStorageRaidBatteryOperability.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + name: 'Cisco UCS Manager: {#DISKARRAY_CACHE_LOCATION}: Disk array cache controller battery is not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults' + dependencies: + - name: 'Cisco UCS Manager: {#DISKARRAY_CACHE_LOCATION}: Disk array cache controller battery is in critical state!' + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.diskarray.cache.battery.status[cucsStorageRaidBatteryOperability.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bd1cf5ecd41f4dc49c6e31f32119787b + name: 'Array controller discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#DISKARRAY_LOCATION},1.3.6.1.4.1.9.9.719.1.45.1.1.2]' + key: cisco.ucs.array.discovery + delay: 1h + description: 'Scanning table of Array controllers: CISCO-UNIFIED-COMPUTING-STORAGE-MIB::cucsStorageControllerTable.' + item_prototypes: + - uuid: 5285422113b84c2e8cb00899e0b29493 + name: '{#DISKARRAY_LOCATION}: Disk array controller model' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.1.1.5.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.diskarray.model[cucsStorageControllerModel.{#SNMPINDEX}]' + delay: 1d + value_type: CHAR + trends: '0' + description: 'MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: array + - tag: component + value: disk + - tag: component + value: storage + - uuid: a732688d6fa347b597854078dd084935 + name: '{#DISKARRAY_LOCATION}: Disk array controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.1.1.6.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:RaidBattery:operability managed object property. + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentOperability' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: array + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 28c32222815f47e193d09afe5aafae79 + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT:"inoperable"}' + name: 'Cisco UCS Manager: {#DISKARRAY_LOCATION}: Disk array controller is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4e758fac4df54388b5f4555bb170bdd3 + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.WARN:"degraded"}' + name: 'Cisco UCS Manager: {#DISKARRAY_LOCATION}: Disk array controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults' + dependencies: + - name: 'Cisco UCS Manager: {#DISKARRAY_LOCATION}: Disk array controller is in critical state' + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT:"inoperable"}' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 264e15d04626432987c2193bf190c56c + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}])>{$DISK.ARRAY.STATUS.OK:"operable"}' + name: 'Cisco UCS Manager: {#DISKARRAY_LOCATION}: Disk array controller is not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults' + dependencies: + - name: 'Cisco UCS Manager: {#DISKARRAY_LOCATION}: Disk array controller is in critical state' + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT:"inoperable"}' + - name: 'Cisco UCS Manager: {#DISKARRAY_LOCATION}: Disk array controller is in warning state' + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.WARN:"degraded"}' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c799941bb99a4ce0af2ab50253c40259 + name: 'FAN discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#FAN_LOCATION},1.3.6.1.4.1.9.9.719.1.15.12.1.2]' + key: cisco.ucs.fan.discovery + delay: 1h + item_prototypes: + - uuid: 5e4aa59c4ec44fc7b97b9659c0d7a5c5 + name: '{#FAN_LOCATION}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.15.12.1.9.{#SNMPINDEX}]' + key: 'cisco.ucs.sensor.fan.status[cucsEquipmentFanOperState.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB + Cisco UCS equipment:Fan:operState managed object property + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentOperability' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 7417bd7646c248eb9664875d7d19e9ea + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.fan.status[cucsEquipmentFanOperState.{#SNMPINDEX}])={$FAN.STATUS.CRIT:"inoperable"}' + name: 'Cisco UCS Manager: {#FAN_LOCATION}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b3d6cb64470e4e4c9bf1d619c0015823 + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.fan.status[cucsEquipmentFanOperState.{#SNMPINDEX}])={$FAN.STATUS.WARN:"degraded"}' + name: 'Cisco UCS Manager: {#FAN_LOCATION}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'Cisco UCS Manager: {#FAN_LOCATION}: Fan is in critical state' + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.fan.status[cucsEquipmentFanOperState.{#SNMPINDEX}])={$FAN.STATUS.CRIT:"inoperable"}' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 20b43c2620114a9da4ff4d97b409f53e + name: 'Network interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: cisco.ucs.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 361a4c5a4b04432b84f4e6bfcd7775c6 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'cisco.ucs.if.descr[ifDescr.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the + interface. This string should include the name of the + manufacturer, the product name and the version of the + interface hardware/software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 009aeec02b3b46dc93bd52c2f1a4de0a + name: 'Interface {#IFNAME}({#IFALIAS}): Broadcast packets received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'cisco.ucs.if.in.broadcast[ifHCInBroadcastPkts.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. This object is a 64-bit version + of ifInBroadcastPkts. + + Discontinuities in the value of this counter can occur at + re-initialization of the management system, and at other + times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 533b7352983e4adfbd9ca1c0e2e5e4b1 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'cisco.ucs.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 84e21f59350248c185a79dd916587140 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'cisco.ucs.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d72b570e01f5479db47628e399932988 + name: 'Interface {#IFNAME}({#IFALIAS}): Multicast packets received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'cisco.ucs.if.in.multicast[ifHCInMulticastPkts.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. This object + is a 64-bit version of ifInMulticastPkts. + + Discontinuities in the value of this counter can occur at + re-initialization of the management system, and at other + times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: eef7c3f6945a48e886de08a842c08f72 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'cisco.ucs.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f682fdf3144145f3998066a77353c4e2 + name: 'Interface {#IFNAME}({#IFALIAS}): Broadcast packets sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'cisco.ucs.if.out.broadcast[ifHCOutBroadcastPkts.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. This object is a 64-bit version + of ifOutBroadcastPkts. + + Discontinuities in the value of this counter can occur at + re-initialization of the management system, and at other + times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b61c1b8a08aa40d696d03ae584230e8e + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'cisco.ucs.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0b9d7feb75674225ac8e6ad0952380ac + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'cisco.ucs.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3ddc4cca78f14dfc8e6d51efae831ba2 + name: 'Interface {#IFNAME}({#IFALIAS}): Multicast packets sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'cisco.ucs.if.out.multicast[ifHCOutMulticastPkts.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. This object + is a 64-bit version of ifOutMulticastPkts. + + Discontinuities in the value of this counter can occur at + re-initialization of the management system, and at other + times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e48a1926828645c49afec898d01fa81a + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'cisco.ucs.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 56aa529b14b14f6f8f9a9b5f1a2ba0d8 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'cisco.ucs.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 16a4394c6b824bacbc7f074d487fcdfb + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'cisco.ucs.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: edfbf339b2664fae88e2a9003383e37f + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco UCS Manager by SNMP/cisco.ucs.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco UCS Manager by SNMP/cisco.ucs.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco UCS Manager by SNMP/cisco.ucs.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Cisco UCS Manager: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 00b0f0fb6c0b4026b438627edab908fb + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'cisco.ucs.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: caaa61b8d89540c496678d739610ae38 + expression: | + min(/Cisco UCS Manager by SNMP/cisco.ucs.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Cisco UCS Manager by SNMP/cisco.ucs.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + name: 'Cisco UCS Manager: Interface {#IFNAME}({#IFALIAS}): High error rate on {#IFNAME}' + event_name: 'Cisco UCS Manager: Interface {#IFNAME}({#IFALIAS}): High error rate on {#IFNAME} ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Recovers when value below {$IF.ERRORS.WARN:"{#IFNAME}"} threshold.' + manual_close: 'YES' + dependencies: + - name: 'Cisco UCS Manager: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Cisco UCS Manager by SNMP/cisco.ucs.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Cisco UCS Manager by SNMP/cisco.ucs.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Cisco UCS Manager by SNMP/cisco.ucs.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: d5e5f60602cc41ba8e0b79a63644bf08 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Cisco UCS Manager by SNMP' + key: 'cisco.ucs.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Cisco UCS Manager by SNMP' + key: 'cisco.ucs.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Cisco UCS Manager by SNMP' + key: 'cisco.ucs.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Cisco UCS Manager by SNMP' + key: 'cisco.ucs.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Cisco UCS Manager by SNMP' + key: 'cisco.ucs.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Cisco UCS Manager by SNMP' + key: 'cisco.ucs.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).forEach(function (netif) { + if (typeof netif["{#IFNAME}"] === 'undefined') { + netif["{#IFNAME}"] = netif["{#IFDESCR}"]; + } + if (typeof netif["{#IFALIAS}"] === 'undefined') { + netif["{#IFALIAS}"] = ""; + } + result.push(netif); + }); + + return JSON.stringify(result); + - uuid: a8794333ae2c4104ac52c6ce421161fd + name: 'Physical disk discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#DISK_LOCATION},1.3.6.1.4.1.9.9.719.1.45.4.1.2]' + key: cisco.ucs.physicalDisk.discovery + delay: 1h + description: 'Scanning table of physical drive entries CISCO-UNIFIED-COMPUTING-STORAGE-MIB::cucsStorageLocalDiskTable.' + item_prototypes: + - uuid: 3a1f21ccf92f43df869f66911ab5c0ea + name: '{#DISK_LOCATION}: Physical disk media type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.4.1.17.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.physicaldisk.media_type[cucsStorageLocalDiskDeviceType.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalDisk:deviceType managed object property. Actually returns 'HDD' or 'SSD'. + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStorageTechnology' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: 317d489e9bf94467a228f5bbccb03436 + name: '{#DISK_LOCATION}: Physical disk model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.4.1.7.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.physicaldisk.model[cucsStorageLocalDiskModel.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalDisk:model managed object property. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: d768239496f2457fbec3a1103e84914d + name: '{#DISK_LOCATION}: Physical disk serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.4.1.12.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.physicaldisk.serialnumber[cucsStorageLocalDiskSerial.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalDisk:serial managed object property. Actually returns part number code. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 693cdcf58cb34def90ade23e2f2485cb + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.physicaldisk.serialnumber[cucsStorageLocalDiskSerial.{#SNMPINDEX}],#1)<>last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.physicaldisk.serialnumber[cucsStorageLocalDiskSerial.{#SNMPINDEX}],#2) and length(last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.physicaldisk.serialnumber[cucsStorageLocalDiskSerial.{#SNMPINDEX}]))>0' + name: 'Cisco UCS Manager: {#DISK_LOCATION}: Disk has been replaced' + event_name: 'Cisco UCS Manager: {#DISK_LOCATION}: Disk has been replaced (new serial number received)' + priority: INFO + description: 'Disk serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c3c38ffc10fb4d139099c551b3c21728 + name: '{#DISK_LOCATION}: Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.4.1.13.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.physicaldisk.size[cucsStorageLocalDiskSize.{#SNMPINDEX}]' + delay: 1h + trends: '0' + units: B + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalDisk:size managed object property. In MB. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: ad4616916d6644f480a2687dbc56a4a3 + name: '{#DISK_LOCATION}: Physical disk status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.4.1.18.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.physicaldisk.status[cucsStorageLocalDiskDiskState.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalDisk:diskState managed object property. + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStoragePDriveStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: ba92b99606fa4bf0bc4f1b6a362c2cdb + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.physicaldisk.status[cucsStorageLocalDiskDiskState.{#SNMPINDEX}])={$DISK.STATUS.CRIT:"bad"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.physicaldisk.status[cucsStorageLocalDiskDiskState.{#SNMPINDEX}])={$DISK.STATUS.CRIT:"predictiveFailure"}' + name: 'Cisco UCS Manager: {#DISK_LOCATION}: Physical disk error' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check physical disk for warnings or errors' + dependencies: + - name: 'Cisco UCS Manager: {#DISK_LOCATION}: Physical disk failed' + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.physicaldisk.status[cucsStorageLocalDiskDiskState.{#SNMPINDEX}])={$DISK.STATUS.FAIL:"failed"}' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: eabf5aa62f004a2c996cc11bb5a6716a + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.physicaldisk.status[cucsStorageLocalDiskDiskState.{#SNMPINDEX}])={$DISK.STATUS.FAIL:"failed"}' + name: 'Cisco UCS Manager: {#DISK_LOCATION}: Physical disk failed' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8ac363db6f2346bba13b63f75cdabd22 + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PSU_LOCATION},1.3.6.1.4.1.9.9.719.1.15.56.1.2]' + key: cisco.ucs.psu.discovery + delay: 1h + item_prototypes: + - uuid: 88a07d360c42431ba4ef31cbe825dc72 + name: '{#PSU_LOCATION}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.15.56.1.7.{#SNMPINDEX}]' + key: 'cisco.ucs.sensor.psu.status[cucsEquipmentPsuOperState.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB + Cisco UCS equipment:Psu:operState managed object property + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentOperability' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 0d2713cf2b72472c8d8896880476c20e + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.psu.status[cucsEquipmentPsuOperState.{#SNMPINDEX}])={$PSU.STATUS.CRIT:"inoperable"}' + name: 'Cisco UCS Manager: {#PSU_LOCATION}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 468f08407a7448a384e5dcde589cb9d0 + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.psu.status[cucsEquipmentPsuOperState.{#SNMPINDEX}])={$PSU.STATUS.WARN:"degraded"}' + name: 'Cisco UCS Manager: {#PSU_LOCATION}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Cisco UCS Manager: {#PSU_LOCATION}: Power supply is in critical state' + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.psu.status[cucsEquipmentPsuOperState.{#SNMPINDEX}])={$PSU.STATUS.CRIT:"inoperable"}' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 90b24337c3304ff6a30428c7d46c26fd + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_LOCATION},1.3.6.1.4.1.9.9.719.1.41.2.1.2]' + key: cisco.ucs.temp.cpu.discovery + delay: 1h + item_prototypes: + - uuid: 7b822aeed3e24358aace9693e7f03385 + name: '{#SENSOR_LOCATION}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.41.2.1.10.{#SNMPINDEX}]' + key: 'cisco.ucs.sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: CISCO-UNIFIED-COMPUTING-PROCESSOR-MIB + Cisco UCS processor:EnvStats:temperature managed object property + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: c3b3933ceb504207a87054a1f9773a76 + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"CPU"}-3' + name: 'Cisco UCS Manager: {#SENSOR_LOCATION}: Temperature is above critical threshold' + event_name: 'Cisco UCS Manager: {#SENSOR_LOCATION}: Temperature is above critical threshold: >{$TEMP.MAX.CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 13b393265f59431687b776297cb0b104 + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)>{$TEMP.MAX.WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)<{$TEMP.MAX.WARN:"CPU"}-3' + name: 'Cisco UCS Manager: {#SENSOR_LOCATION}: Temperature is above warning threshold' + event_name: 'Cisco UCS Manager: {#SENSOR_LOCATION}: Temperature is above warning threshold: >{$TEMP.MAX.WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco UCS Manager: {#SENSOR_LOCATION}: Temperature is above critical threshold' + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"CPU"}' + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b99a5c977c32418ea9efded6d507e3b5 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_LOCATION},1.3.6.1.4.1.9.9.719.1.9.44.1.2]' + key: cisco.ucs.temp.discovery + delay: 1h + item_prototypes: + - uuid: d57481cb764a429f928aa6de6837c4ae + name: '{#SENSOR_LOCATION}.IOH: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.44.1.13.{#SNMPINDEX}]' + key: 'cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnitMbTempStats:ioh1Temp managed object property + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: aa4bf1c8b942462dbd21ccf8bd8c4a6b + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"Ambient"}-3' + name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.IOH: Temperature is above critical threshold' + event_name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.IOH: Temperature is above critical threshold: >{$TEMP.MAX.CRIT:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7751dd6bf1394daa9d918005d2d99d10 + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)>{$TEMP.MAX.WARN:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)<{$TEMP.MAX.WARN:"Ambient"}-3' + name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.IOH: Temperature is above warning threshold' + event_name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.IOH: Temperature is above warning threshold: >{$TEMP.MAX.WARN:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.IOH: Temperature is above critical threshold' + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"Ambient"}' + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"Ambient"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d5e4b5b7e18c4545853c48db018dc127 + name: '{#SENSOR_LOCATION}.Ambient: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.44.1.4.{#SNMPINDEX}]' + key: 'cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Temperature readings of testpoint: {#SENSOR_LOCATION}.Ambient + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 230958b560374a118857b77418c6ba11 + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"Ambient"}-3' + name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Ambient: Temperature is above critical threshold' + event_name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Ambient: Temperature is above critical threshold: >{$TEMP.MAX.CRIT:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4cdcddd04b0e4625893a1e20ce22a10f + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)>{$TEMP.MAX.WARN:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)<{$TEMP.MAX.WARN:"Ambient"}-3' + name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Ambient: Temperature is above warning threshold' + event_name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Ambient: Temperature is above warning threshold: >{$TEMP.MAX.WARN:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Ambient: Temperature is above critical threshold' + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"Ambient"}' + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"Ambient"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9980042de8d74353bf4a386bb0f28d30 + name: '{#SENSOR_LOCATION}.Front: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.44.1.8.{#SNMPINDEX}]' + key: 'cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnitMbTempStats:frontTemp managed object property + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 8ee1dfc360aa4aca84a03b452ead92ce + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"Ambient"}-3' + name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Front: Temperature is above critical threshold' + event_name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Front: Temperature is above critical threshold: >{$TEMP.MAX.CRIT:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 196c9fe3facf4e3db348337714c77e17 + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)>{$TEMP.MAX.WARN:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)<{$TEMP.MAX.WARN:"Ambient"}-3' + name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Front: Temperature is above warning threshold' + event_name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Front: Temperature is above warning threshold: >{$TEMP.MAX.WARN:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Front: Temperature is above critical threshold' + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"Ambient"}' + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"Ambient"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e20bfa52f31f4a1a9f08ba02fe27f90c + name: '{#SENSOR_LOCATION}.Rear: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.44.1.21.{#SNMPINDEX}]' + key: 'cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnitMbTempStats:rearTemp managed object property + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: a8714fcba51c46f9aa84fa02fba37743 + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"Ambient"}-3' + name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Rear: Temperature is above critical threshold' + event_name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Rear: Temperature is above critical threshold: >{$TEMP.MAX.CRIT:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 87068c693e574cd3952ca90e95a7a681 + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)>{$TEMP.MAX.WARN:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)<{$TEMP.MAX.WARN:"Ambient"}-3' + name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Rear: Temperature is above warning threshold' + event_name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Rear: Temperature is above warning threshold: >{$TEMP.MAX.WARN:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco UCS Manager: {#SENSOR_LOCATION}.Rear: Temperature is above critical threshold' + expression: 'avg(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"Ambient"}' + recovery_expression: 'max(/Cisco UCS Manager by SNMP/cisco.ucs.sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"Ambient"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9c5d5ce2f672487db83cf91f22c1a413 + name: 'Unit discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#UNIT_LOCATION},1.3.6.1.4.1.9.9.719.1.9.35.1.2]' + key: cisco.ucs.unit.discovery + delay: 1h + item_prototypes: + - uuid: 41ecc1caac444d2587d51e33057e6d39 + name: '{#UNIT_LOCATION}: Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.35.1.32.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.model[cucsComputeRackUnitModel.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnit:model managed object property + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: ac3217187db3453eb8b9932fce7c79c4 + name: '{#UNIT_LOCATION}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.35.1.47.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.serialnumber[cucsComputeRackUnitSerial.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnit:serial managed object property + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 27253665837647bb9c3be58f7d0881ae + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.serialnumber[cucsComputeRackUnitSerial.{#SNMPINDEX}],#1)<>last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.serialnumber[cucsComputeRackUnitSerial.{#SNMPINDEX}],#2) and length(last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.serialnumber[cucsComputeRackUnitSerial.{#SNMPINDEX}]))>0' + name: 'Cisco UCS Manager: {#UNIT_LOCATION}: Device has been replaced' + event_name: 'Cisco UCS Manager: {#UNIT_LOCATION}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c6ebb7db809f4c62aae795a8b1c4b740 + name: '{#UNIT_LOCATION}: Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.35.1.42.{#SNMPINDEX}]' + key: 'cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}]' + delay: 30s + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnit:operState managed object property + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsLsOperState' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 7f7c337f4f9f44a3a176acce5bf27f29 + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.CRIT:"computeFailed"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.CRIT:"configFailure"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.CRIT:"unconfigFailure"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.CRIT:"inoperable"}' + name: 'Cisco UCS Manager: {#UNIT_LOCATION}: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 15ee6a98f2af4da4bcaa95821ffff524 + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.WARN:"testFailed"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.WARN:"thermalProblem"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.WARN:"powerProblem"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.WARN:"voltageProblem"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.WARN:"diagnosticsFailed"}' + name: 'Cisco UCS Manager: {#UNIT_LOCATION}: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings' + dependencies: + - name: 'Cisco UCS Manager: {#UNIT_LOCATION}: System status is in critical state' + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.CRIT:"computeFailed"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.CRIT:"configFailure"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.CRIT:"unconfigFailure"} or last(/Cisco UCS Manager by SNMP/cisco.ucs.status[cucsComputeRackUnitOperState.{#SNMPINDEX}])={$HEALTH.STATUS.CRIT:"inoperable"}' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6d0760c4d29d4113b179b0e5c18f7e3b + name: 'Virtual disk discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#VDISK_LOCATION},1.3.6.1.4.1.9.9.719.1.45.8.1.2]' + key: cisco.ucs.virtualDisk.discovery + delay: 1h + description: 'CISCO-UNIFIED-COMPUTING-STORAGE-MIB::cucsStorageLocalLunTable' + item_prototypes: + - uuid: c80f07f350bc472fb73282f5c80e16e3 + name: '{#VDISK_LOCATION}: Layout type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.8.1.14.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.virtualdisk.layout[cucsStorageLocalLunType.{#SNMPINDEX}]' + delay: 1h + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalLun:type managed object property + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStorageLunType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: 59a403629e8b40d981c2926ead601966 + name: '{#VDISK_LOCATION}: Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.8.1.13.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.virtualdisk.size[cucsStorageLocalLunSize.{#SNMPINDEX}]' + delay: 1h + trends: '0' + units: B + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalLun:size managed object property in MB. + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStorageLunType' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: 39504e417781414081e1198adef562d4 + name: '{#VDISK_LOCATION}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.8.1.10.{#SNMPINDEX}]' + key: 'cisco.ucs.hw.virtualdisk.status[cucsStorageLocalLunPresence.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalLun:presence managed object property + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentPresence' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 63232b4e1f6b411a93ff8abad1ff3200 + expression: 'last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.virtualdisk.status[cucsStorageLocalLunPresence.{#SNMPINDEX}])<>{$VDISK.STATUS.OK:"equipped"}' + name: 'Cisco UCS Manager: {#VDISK_LOCATION}: Virtual disk is not in OK state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check virtual disk for warnings or errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: hardware + - tag: target + value: cisco + - tag: target + value: cisco-ucs-manager + macros: + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + value: '2' + description: 'The cache battery critical state for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + value: '1' + description: 'The cache battery normal state for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.CRIT:"inoperable"}' + value: '2' + description: 'The array controller critical state for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.OK:"operable"}' + value: '1' + description: 'The array controller normal state for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.WARN:"degraded"}' + value: '3' + description: 'The array controller warning state for trigger expression.' + - macro: '{$DISK.STATUS.CRIT:"bad"}' + value: '16' + description: 'The disk critical state for trigger expression.' + - macro: '{$DISK.STATUS.CRIT:"predictiveFailure"}' + value: '11' + description: 'The disk critical state for trigger expression.' + - macro: '{$DISK.STATUS.FAIL:"failed"}' + value: '9' + description: 'The disk fail state for trigger expression.' + - macro: '{$FAN.STATUS.CRIT:"inoperable"}' + value: '2' + description: 'The critical value of the FAN sensor for trigger expression.' + - macro: '{$FAN.STATUS.WARN:"degraded"}' + value: '3' + description: 'The warning value of the FAN sensor for trigger expression.' + - macro: '{$HEALTH.STATUS.CRIT:"computeFailed"}' + value: '30' + description: 'The unit health critical state for trigger expression.' + - macro: '{$HEALTH.STATUS.CRIT:"configFailure"}' + value: '33' + description: 'The unit health critical state for trigger expression.' + - macro: '{$HEALTH.STATUS.CRIT:"inoperable"}' + value: '60' + description: 'The unit health critical state for trigger expression.' + - macro: '{$HEALTH.STATUS.CRIT:"unconfigFailure"}' + value: '34' + description: 'The unit health critical state for trigger expression.' + - macro: '{$HEALTH.STATUS.WARN:"diagnosticsFailed"}' + value: '204' + description: 'The unit health warning state for trigger expression.' + - macro: '{$HEALTH.STATUS.WARN:"powerProblem"}' + value: '62' + description: 'The unit health warning state for trigger expression.' + - macro: '{$HEALTH.STATUS.WARN:"testFailed"}' + value: '35' + description: 'The unit health warning state for trigger expression.' + - macro: '{$HEALTH.STATUS.WARN:"thermalProblem"}' + value: '60' + description: 'The unit health warning state for trigger expression.' + - macro: '{$HEALTH.STATUS.WARN:"voltageProblem"}' + value: '62' + description: 'The unit health warning state for trigger expression.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$NET.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'This macro is used in network interface discovery. Can be overridden on the host level.' + - macro: '{$NET.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'This macro is used in network interface discovery. Can be overridden on the host level. Ignore down(2) administrative status by default.' + - macro: '{$NET.IFALIAS.MATCHES}' + value: '.*' + description: 'This macro is used in network interface discovery. Can be overridden on the host level.' + - macro: '{$NET.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in network interface discovery. Can be overridden on the host level.' + - macro: '{$NET.IFDESCR.MATCHES}' + value: '.*' + description: 'This macro is used in network interface discovery. Can be overridden on the host level.' + - macro: '{$NET.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in network interface discovery. Can be overridden on the host level.' + - macro: '{$NET.IFNAME.MATCHES}' + value: '^.*$' + description: 'This macro is used in network interface discovery. Can be overridden on the host level.' + - macro: '{$NET.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12}|sup-fc0)' + description: 'This macro is used in network interface discovery. Can be overridden on the host level. Filter out loopbacks, sup-fc0, nulls, docker veth links and docker0 bridge by default.' + - macro: '{$NET.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'This macro is used in network interface discovery. Can be overridden on the host level.' + - macro: '{$NET.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'This macro is used in network interface discovery. Can be overridden on the host level. Ignore notPresent(6) by default.' + - macro: '{$NET.IFTYPE.MATCHES}' + value: '.*' + description: 'This macro is used in network interface discovery. Can be overridden on the host level.' + - macro: '{$NET.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in network interface discovery. Can be overridden on the host level.' + - macro: '{$PSU.STATUS.CRIT:"inoperable"}' + value: '2' + description: 'The critical value of the PSU sensor for trigger expression.' + - macro: '{$PSU.STATUS.WARN:"degraded"}' + value: '3' + description: 'The warning value of the PSU sensor for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TEMP.MAX.CRIT:"Ambient"}' + value: '35' + description: 'The temperature maximum critical value for trigger expression.' + - macro: '{$TEMP.MAX.WARN:"Ambient"}' + value: '30' + description: 'The temperature maximum warning value for trigger expression.' + - macro: '{$VDISK.STATUS.OK:"equipped"}' + value: '10' + description: 'The vdisk normal state for trigger expression.' + dashboards: + - uuid: b28e8cdadce64ba299c56054a18ea31d + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Cisco UCS Manager by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 8648df22d8be42359900e11ea395a98c + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentOperability' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: operable + - value: '2' + newvalue: inoperable + - value: '3' + newvalue: degraded + - value: '4' + newvalue: poweredOff + - value: '5' + newvalue: powerProblem + - value: '6' + newvalue: removed + - value: '7' + newvalue: voltageProblem + - value: '8' + newvalue: thermalProblem + - value: '9' + newvalue: performanceProblem + - value: '10' + newvalue: accessibilityProblem + - value: '11' + newvalue: identityUnestablishable + - value: '12' + newvalue: biosPostTimeout + - value: '13' + newvalue: disabled + - value: '14' + newvalue: malformedFru + - value: '15' + newvalue: backplanePortProblem + - value: '16' + newvalue: chassisIntrusion + - value: '51' + newvalue: fabricConnProblem + - value: '52' + newvalue: fabricUnsupportedConn + - value: '81' + newvalue: config + - value: '82' + newvalue: equipmentProblem + - value: '83' + newvalue: decommissioning + - value: '84' + newvalue: chassisLimitExceeded + - value: '100' + newvalue: notSupported + - value: '101' + newvalue: discovery + - value: '102' + newvalue: discoveryFailed + - value: '103' + newvalue: identify + - value: '104' + newvalue: postFailure + - value: '105' + newvalue: upgradeProblem + - value: '106' + newvalue: peerCommProblem + - value: '107' + newvalue: autoUpgrade + - value: '108' + newvalue: linkActivateBlocked + - uuid: 17dde900e96a47929b0abed0d5006c84 + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentPresence' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: empty + - value: '10' + newvalue: equipped + - value: '11' + newvalue: missing + - value: '12' + newvalue: mismatch + - value: '13' + newvalue: equippedNotPrimary + - value: '14' + newvalue: equippedSlave + - value: '15' + newvalue: mismatchSlave + - value: '16' + newvalue: missingSlave + - value: '20' + newvalue: equippedIdentityUnestablishable + - value: '21' + newvalue: mismatchIdentityUnestablishable + - value: '22' + newvalue: equippedWithMalformedFru + - value: '30' + newvalue: inaccessible + - value: '40' + newvalue: unauthorized + - value: '100' + newvalue: notSupported + - value: '101' + newvalue: equippedUnsupported + - value: '102' + newvalue: equippedDiscNotStarted + - value: '103' + newvalue: equippedDiscInProgress + - value: '104' + newvalue: equippedDiscError + - value: '105' + newvalue: equippedDiscUnknown + - uuid: c4a3603d4d8944ad8a8d2529bc3f1278 + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsLsOperState' + mappings: + - value: '0' + newvalue: indeterminate + - value: '1' + newvalue: unassociated + - value: '10' + newvalue: ok + - value: '11' + newvalue: discovery + - value: '12' + newvalue: config + - value: '13' + newvalue: unconfig + - value: '14' + newvalue: powerOff + - value: '15' + newvalue: restart + - value: '20' + newvalue: maintenance + - value: '21' + newvalue: test + - value: '29' + newvalue: computeMismatch + - value: '30' + newvalue: computeFailed + - value: '31' + newvalue: degraded + - value: '32' + newvalue: discoveryFailed + - value: '33' + newvalue: configFailure + - value: '34' + newvalue: unconfigFailed + - value: '35' + newvalue: testFailed + - value: '36' + newvalue: maintenanceFailed + - value: '40' + newvalue: removed + - value: '41' + newvalue: disabled + - value: '50' + newvalue: inaccessible + - value: '60' + newvalue: thermalProblem + - value: '61' + newvalue: powerProblem + - value: '62' + newvalue: voltageProblem + - value: '63' + newvalue: inoperable + - value: '101' + newvalue: decommissioning + - value: '201' + newvalue: biosRestore + - value: '202' + newvalue: cmosReset + - value: '203' + newvalue: diagnostics + - value: '204' + newvalue: diagnosticsFailed + - value: '210' + newvalue: pendingReboot + - value: '211' + newvalue: pendingReassociation + - value: '212' + newvalue: svnicNotPresent + - uuid: 7d09a2b8df18410ca871ed9e7dbe6aa1 + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStorageLunType' + mappings: + - value: '0' + newvalue: unspecified + - value: '1' + newvalue: simple + - value: '2' + newvalue: mirror + - value: '3' + newvalue: stripe + - value: '4' + newvalue: raid + - value: '5' + newvalue: stripeParity + - value: '6' + newvalue: stripeDualParity + - value: '7' + newvalue: mirrorStripe + - value: '8' + newvalue: stripeParityStripe + - value: '9' + newvalue: stripeDualParityStripe + - uuid: 70a906bfe3b447a39e5a0f0ba5210ae2 + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStoragePDriveStatus' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: online + - value: '2' + newvalue: unconfiguredGood + - value: '3' + newvalue: globalHotSpare + - value: '4' + newvalue: dedicatedHotSpare + - value: '5' + newvalue: jbod + - value: '6' + newvalue: offline + - value: '7' + newvalue: rebuilding + - value: '8' + newvalue: copyback + - value: '9' + newvalue: failed + - value: '10' + newvalue: unconfiguredBad + - value: '11' + newvalue: predictiveFailure + - value: '12' + newvalue: disabledForRemoval + - value: '13' + newvalue: foreignConfiguration + - value: '14' + newvalue: zeroing + - value: '15' + newvalue: good + - value: '16' + newvalue: bad + - value: '17' + newvalue: lockedForeignConfiguration + - uuid: e1407fbe331343d3bda7d7eb122c085a + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStorageTechnology' + mappings: + - value: '0' + newvalue: unspecified + - value: '1' + newvalue: hdd + - value: '2' + newvalue: ssd + - value: '3' + newvalue: nvme + - uuid: 2b0fde08268f4ce7b47aae3827ebdf23 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: be402fda36e64dd2ad807925755735c4 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 9ea529bf28a84fae95f1506ca6ca37b8 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 9026e680b409424e8fa29934878cb771 + expression: '(last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.uptime[hrSystemUptime.0])>0 and last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.uptime[hrSystemUptime.0])<10m) or (last(/Cisco UCS Manager by SNMP/cisco.ucs.hw.uptime[hrSystemUptime.0])=0 and last(/Cisco UCS Manager by SNMP/cisco.ucs.net.uptime[sysUpTime.0])<10m)' + name: 'Cisco UCS Manager: Host has been restarted' + event_name: 'Cisco UCS Manager: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Cisco UCS Manager: No SNMP data collection' + expression: 'max(/Cisco UCS Manager by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Cisco_UCS_by_SNMP.yaml b/Cisco_UCS_by_SNMP.yaml new file mode 100644 index 0000000..fc7578d --- /dev/null +++ b/Cisco_UCS_by_SNMP.yaml @@ -0,0 +1,1457 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: cb66d34564e44b3893442fc74cf6e951 + template: 'Cisco UCS by SNMP' + name: 'Cisco UCS by SNMP' + description: | + Template Server Cisco UCS + + MIBs used: + CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + CISCO-UNIFIED-COMPUTING-PROCESSOR-MIB + CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB + CISCO-UNIFIED-COMPUTING-STORAGE-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 250be2514e9246e08058a403bf674cf6 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 301541972752471e86046ce494a2febb + expression: 'max(/Cisco UCS by SNMP/icmpping,#3)=0' + name: 'Cisco UCS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: c7eaba8c2b7d4b4aa14081957252e33e + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e051db53cf32406bb0d5ff9cc8d5ce7b + expression: 'min(/Cisco UCS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco UCS by SNMP/icmppingloss,5m)<100' + name: 'Cisco UCS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Cisco UCS: Unavailable by ICMP ping' + expression: 'max(/Cisco UCS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 88b4a6cc507748e19f08d0ffc9a15368 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a11942dac3504b64977c2de3e575d2eb + expression: 'avg(/Cisco UCS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Cisco UCS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Cisco UCS: High ICMP ping loss' + expression: 'min(/Cisco UCS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Cisco UCS by SNMP/icmppingloss,5m)<100' + - name: 'Cisco UCS: Unavailable by ICMP ping' + expression: 'max(/Cisco UCS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 00b0172971e34784836d03e76b3480bd + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 50df0ad347d94cffb871256c6340af11 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 235302070dc54f148b92027967a6ff2f + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a6d61b21f9f044a6912759e02787cb3f + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 7ba9b86064ad432a9e6d1922ca29edda + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4674d8adc39343f7b46d21cae2ec1310 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 3544e4ac11b44d14a6161523081c470e + expression: 'last(/Cisco UCS by SNMP/system.name,#1)<>last(/Cisco UCS by SNMP/system.name,#2) and length(last(/Cisco UCS by SNMP/system.name))>0' + name: 'Cisco UCS: System name has changed' + event_name: 'Cisco UCS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 1b0551aa2d184c8d923788b5d159ed7c + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 05fe3cb6d2004e7ea2d37742fc2549d3 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b80f6a30ad124a1ea863f2fdb868ba6f + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 3c487a6b20c746eca9a7efc6058a60d9 + expression: 'max(/Cisco UCS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Cisco UCS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Cisco UCS: Unavailable by ICMP ping' + expression: 'max(/Cisco UCS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 5c6518a1df0b45c09f3a2f186c3d4e3b + name: 'Array Controller Cache Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#DISKARRAY_CACHE_LOCATION},1.3.6.1.4.1.9.9.719.1.45.11.1.2]' + key: array.cache.discovery + delay: 1h + description: 'Scanning table of Array controllers: CISCO-UNIFIED-COMPUTING-STORAGE-MIB::cucsStorageControllerTable.' + item_prototypes: + - uuid: 52055929503041018d8261f15231f346 + name: '{#DISKARRAY_CACHE_LOCATION}: Disk array cache controller battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.11.1.9.{#SNMPINDEX}]' + key: 'system.hw.diskarray.cache.battery.status[cucsStorageRaidBatteryOperability.{#SNMPINDEX}]' + trends: '0' + description: 'MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB' + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentOperability' + tags: + - tag: component + value: array + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 0b09b93602c94821ae1126e4f9550436 + expression: 'count(/Cisco UCS by SNMP/system.hw.diskarray.cache.battery.status[cucsStorageRaidBatteryOperability.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_BATTERY_CRIT_STATUS}")=1' + name: 'Cisco UCS: {#DISKARRAY_CACHE_LOCATION}: Disk array cache controller battery is in critical state!' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d2af6de00e57412d8a2efcb20b1524a4 + expression: 'count(/Cisco UCS by SNMP/system.hw.diskarray.cache.battery.status[cucsStorageRaidBatteryOperability.{#SNMPINDEX}],#1,"ne","{$DISK_ARRAY_CACHE_BATTERY_OK_STATUS}")=1' + name: 'Cisco UCS: {#DISKARRAY_CACHE_LOCATION}: Disk array cache controller battery is not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults' + dependencies: + - name: 'Cisco UCS: {#DISKARRAY_CACHE_LOCATION}: Disk array cache controller battery is in critical state!' + expression: 'count(/Cisco UCS by SNMP/system.hw.diskarray.cache.battery.status[cucsStorageRaidBatteryOperability.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_BATTERY_CRIT_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b77a56dcaa1947dd8c74b5764c36c22a + name: 'Array Controller Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#DISKARRAY_LOCATION},1.3.6.1.4.1.9.9.719.1.45.1.1.2]' + key: array.discovery + delay: 1h + description: 'Scanning table of Array controllers: CISCO-UNIFIED-COMPUTING-STORAGE-MIB::cucsStorageControllerTable.' + item_prototypes: + - uuid: b0e1dd6aab454628bf46c0dba5293424 + name: '{#DISKARRAY_LOCATION}: Disk array controller model' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.1.1.5.{#SNMPINDEX}]' + key: 'system.hw.diskarray.model[cucsStorageControllerModel.{#SNMPINDEX}]' + delay: 1d + value_type: CHAR + trends: '0' + description: 'MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB' + tags: + - tag: component + value: array + - tag: component + value: disk + - tag: component + value: storage + - uuid: 262d45ac58734c0096de2b96d8294f4c + name: '{#DISKARRAY_LOCATION}: Disk array controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.1.1.6.{#SNMPINDEX}]' + key: 'system.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}]' + trends: '0' + description: 'MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB' + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentOperability' + tags: + - tag: component + value: array + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 44ec209460fb4010a087e971427b2fde + expression: 'count(/Cisco UCS by SNMP/system.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CRIT_STATUS:\"inoperable\"}")=1' + name: 'Cisco UCS: {#DISKARRAY_LOCATION}: Disk array controller is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b419e0d296614f4285645954f8a7a970 + expression: 'count(/Cisco UCS by SNMP/system.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_WARN_STATUS:\"degraded\"}")=1' + name: 'Cisco UCS: {#DISKARRAY_LOCATION}: Disk array controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults' + dependencies: + - name: 'Cisco UCS: {#DISKARRAY_LOCATION}: Disk array controller is in critical state' + expression: 'count(/Cisco UCS by SNMP/system.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CRIT_STATUS:\"inoperable\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a83202bb105d481c93464650272c14eb + expression: 'count(/Cisco UCS by SNMP/system.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}],#1,"ne","{$DISK_ARRAY_OK_STATUS:\"operable\"}")=1' + name: 'Cisco UCS: {#DISKARRAY_LOCATION}: Disk array controller is not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults' + dependencies: + - name: 'Cisco UCS: {#DISKARRAY_LOCATION}: Disk array controller is in critical state' + expression: 'count(/Cisco UCS by SNMP/system.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CRIT_STATUS:\"inoperable\"}")=1' + - name: 'Cisco UCS: {#DISKARRAY_LOCATION}: Disk array controller is in warning state' + expression: 'count(/Cisco UCS by SNMP/system.hw.diskarray.status[cucsStorageControllerOperState.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_WARN_STATUS:\"degraded\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3c067096a2fc40c390a335e40bacc089 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#FAN_LOCATION},1.3.6.1.4.1.9.9.719.1.15.12.1.2]' + key: fan.discovery + delay: 1h + item_prototypes: + - uuid: f65860004eb74ab187d080782177370c + name: '{#FAN_LOCATION}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.15.12.1.9.{#SNMPINDEX}]' + key: 'sensor.fan.status[cucsEquipmentFanOperState.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB + Cisco UCS equipment:Fan:operState managed object property + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentOperability' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 5135b24c775f448c8998cadea3042e5b + expression: 'count(/Cisco UCS by SNMP/sensor.fan.status[cucsEquipmentFanOperState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"inoperable\"}")=1' + name: 'Cisco UCS: {#FAN_LOCATION}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 895df7f89587441fa61223d5b2e442a2 + expression: 'count(/Cisco UCS by SNMP/sensor.fan.status[cucsEquipmentFanOperState.{#SNMPINDEX}],#1,"eq","{$FAN_WARN_STATUS:\"degraded\"}")=1' + name: 'Cisco UCS: {#FAN_LOCATION}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'Cisco UCS: {#FAN_LOCATION}: Fan is in critical state' + expression: 'count(/Cisco UCS by SNMP/sensor.fan.status[cucsEquipmentFanOperState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"inoperable\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 93247d3808394f7195356ced554d0d55 + name: 'Physical Disk Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#DISK_LOCATION},1.3.6.1.4.1.9.9.719.1.45.4.1.2]' + key: physicalDisk.discovery + delay: 1h + description: 'Scanning table of physical drive entries CISCO-UNIFIED-COMPUTING-STORAGE-MIB::cucsStorageLocalDiskTable.' + item_prototypes: + - uuid: 4dc3f8718af645998441c436263a1053 + name: '{#DISK_LOCATION}: Physical disk media type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.4.1.7.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.media_type[cucsStorageLocalDiskModel.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalDisk:model managed object property. Actually returns 'HDD' or 'SSD' + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: 6d45ac307cce40d481c556660dea3157 + name: '{#DISK_LOCATION}: Physical disk model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.4.1.12.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.model[cucsStorageLocalDiskSerial.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalDisk:serial managed object property. Actually returns part number code + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: da12b7742c0343709ab4c1d97c0b0f4c + name: '{#DISK_LOCATION}: Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.4.1.13.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.size[cucsStorageLocalDiskSize.{#SNMPINDEX}]' + delay: 1h + trends: '0' + units: B + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalDisk:size managed object property. In MB. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: cb73c8de596549888d5f94b13619da3d + name: '{#DISK_LOCATION}: Physical disk status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.4.1.18.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.status[cucsStorageLocalDiskDiskState.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalDisk:diskState managed object property. + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStoragePDriveStatus' + tags: + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 445919e1ec414fd888f8911abc65650b + expression: 'count(/Cisco UCS by SNMP/system.hw.physicaldisk.status[cucsStorageLocalDiskDiskState.{#SNMPINDEX}],#1,"eq","{$DISK_CRIT_STATUS:\"bad\"}")=1 or count(/Cisco UCS by SNMP/system.hw.physicaldisk.status[cucsStorageLocalDiskDiskState.{#SNMPINDEX}],#1,"eq","{$DISK_CRIT_STATUS:\"predictiveFailure\"}")=1' + name: 'Cisco UCS: {#DISK_LOCATION}: Physical disk error' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check physical disk for warnings or errors' + dependencies: + - name: 'Cisco UCS: {#DISK_LOCATION}: Physical disk failed' + expression: 'count(/Cisco UCS by SNMP/system.hw.physicaldisk.status[cucsStorageLocalDiskDiskState.{#SNMPINDEX}],#1,"eq","{$DISK_FAIL_STATUS:\"failed\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 77ce5c74eefd4a9b818c11c8c1581cd8 + expression: 'count(/Cisco UCS by SNMP/system.hw.physicaldisk.status[cucsStorageLocalDiskDiskState.{#SNMPINDEX}],#1,"eq","{$DISK_FAIL_STATUS:\"failed\"}")=1' + name: 'Cisco UCS: {#DISK_LOCATION}: Physical disk failed' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f8be95a8eb5a487c8c8f05d62e90f041 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PSU_LOCATION},1.3.6.1.4.1.9.9.719.1.15.56.1.2]' + key: psu.discovery + delay: 1h + item_prototypes: + - uuid: 0e869e57db494940b630fc2b8f10c60b + name: '{#PSU_LOCATION}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.15.56.1.7.{#SNMPINDEX}]' + key: 'sensor.psu.status[cucsEquipmentPsuOperState.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB + Cisco UCS equipment:Psu:operState managed object property + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentOperability' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 480d51d19be74b6e95f702b31baa5666 + expression: 'count(/Cisco UCS by SNMP/sensor.psu.status[cucsEquipmentPsuOperState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"inoperable\"}")=1' + name: 'Cisco UCS: {#PSU_LOCATION}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 07fa90b5296b48d9b45cc6a76e72ceeb + expression: 'count(/Cisco UCS by SNMP/sensor.psu.status[cucsEquipmentPsuOperState.{#SNMPINDEX}],#1,"eq","{$PSU_WARN_STATUS:\"degraded\"}")=1' + name: 'Cisco UCS: {#PSU_LOCATION}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Cisco UCS: {#PSU_LOCATION}: Power supply is in critical state' + expression: 'count(/Cisco UCS by SNMP/sensor.psu.status[cucsEquipmentPsuOperState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"inoperable\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 098a87f2e7094da9853bf2cb94677092 + name: 'Temperature CPU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_LOCATION},1.3.6.1.4.1.9.9.719.1.41.2.1.2]' + key: temp.cpu.discovery + delay: 1h + item_prototypes: + - uuid: b0a744fc4e524406ab87ccc4fbaae3b2 + name: '{#SENSOR_LOCATION}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.41.2.1.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: CISCO-UNIFIED-COMPUTING-PROCESSOR-MIB + Cisco UCS processor:EnvStats:temperature managed object property + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 35549eb00faf48ff8fdb7769b8a13895 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'Cisco UCS: {#SENSOR_LOCATION}: Temperature is above critical threshold' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: eaadcea2dc0d468d886654c3ec380390 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'Cisco UCS: {#SENSOR_LOCATION}: Temperature is above warning threshold' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco UCS: {#SENSOR_LOCATION}: Temperature is above critical threshold' + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ccb9b9edd7ba4a62b33e34ebf3647825 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco UCS by SNMP/sensor.temp.value[cucsProcessorEnvStatsTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'Cisco UCS: {#SENSOR_LOCATION}: Temperature is too low' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 06216bba529b4fb2b1c52fb57d365c6a + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_LOCATION},1.3.6.1.4.1.9.9.719.1.9.44.1.2]' + key: temp.discovery + delay: 1h + item_prototypes: + - uuid: 1287280a5c9449bd96f11ad3b6a92455 + name: '{#SENSOR_LOCATION}.IOH: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.44.1.13.{#SNMPINDEX}]' + key: 'sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnitMbTempStats:ioh1Temp managed object property + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: a43eb91c4ae044729f4312466fcbd5da + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Ambient"}-3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.IOH: Temperature is above critical threshold' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.IOH: Temperature is above critical threshold: >{$TEMP_CRIT:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: da5d63d3411a4d2299d50cc21beae1c4 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Ambient"}-3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.IOH: Temperature is above warning threshold' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.IOH: Temperature is above warning threshold: >{$TEMP_WARN:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco UCS: {#SENSOR_LOCATION}.IOH: Temperature is above critical threshold' + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Ambient"}' + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Ambient"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ce811e4247d5484caf4b095e829f162e + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempSltatsIoh1Temp.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Ambient"}+3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.IOH: Temperature is too low' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.IOH: Temperature is too low: <{$TEMP_CRIT_LOW:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9ee4d857346541c6870586a0c7989fc5 + name: '{#SENSOR_LOCATION}.Ambient: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.44.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Temperature readings of testpoint: {#SENSOR_LOCATION}.Ambient + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 4e293138ca374c96a18e4dbca8e45c72 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Ambient"}-3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.Ambient: Temperature is above critical threshold' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.Ambient: Temperature is above critical threshold: >{$TEMP_CRIT:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cf21a0259b6e4402815651357cdcce76 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Ambient"}-3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.Ambient: Temperature is above warning threshold' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.Ambient: Temperature is above warning threshold: >{$TEMP_WARN:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco UCS: {#SENSOR_LOCATION}.Ambient: Temperature is above critical threshold' + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Ambient"}' + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Ambient"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5139f8dd56094561a573a0b7b15a5ef0 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsAmbientTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Ambient"}+3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.Ambient: Temperature is too low' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.Ambient: Temperature is too low: <{$TEMP_CRIT_LOW:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9dc8ac1ccf2a4671bef441db6297b2f9 + name: '{#SENSOR_LOCATION}.Front: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.44.1.8.{#SNMPINDEX}]' + key: 'sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnitMbTempStats:frontTemp managed object property + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 98b9a6bd22e648e1bce3e5ee3ed5f6b4 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Ambient"}-3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.Front: Temperature is above critical threshold' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.Front: Temperature is above critical threshold: >{$TEMP_CRIT:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 068f42b490ad41eb97a65dbc718ae566 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Ambient"}-3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.Front: Temperature is above warning threshold' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.Front: Temperature is above warning threshold: >{$TEMP_WARN:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco UCS: {#SENSOR_LOCATION}.Front: Temperature is above critical threshold' + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Ambient"}' + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Ambient"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f208cad426cf45338b6487cf87588220 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsFrontTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Ambient"}+3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.Front: Temperature is too low' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.Front: Temperature is too low: <{$TEMP_CRIT_LOW:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 631d46aad1b2403b9512299e2446a24e + name: '{#SENSOR_LOCATION}.Rear: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.44.1.21.{#SNMPINDEX}]' + key: 'sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnitMbTempStats:rearTemp managed object property + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: ef03cd1e2356409ea2651fab589c9d19 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Ambient"}-3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.Rear: Temperature is above critical threshold' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.Rear: Temperature is above critical threshold: >{$TEMP_CRIT:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ed302fd9bdbe47cda2456aa7cdc6ce66 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Ambient"}-3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.Rear: Temperature is above warning threshold' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.Rear: Temperature is above warning threshold: >{$TEMP_WARN:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Cisco UCS: {#SENSOR_LOCATION}.Rear: Temperature is above critical threshold' + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Ambient"}' + recovery_expression: 'max(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Ambient"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bb81b628d804411480d3b4066d626f82 + expression: 'avg(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Cisco UCS by SNMP/sensor.temp.value[cucsComputeRackUnitMbTempStatsRearTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Ambient"}+3' + name: 'Cisco UCS: {#SENSOR_LOCATION}.Rear: Temperature is too low' + event_name: 'Cisco UCS: {#SENSOR_LOCATION}.Rear: Temperature is too low: <{$TEMP_CRIT_LOW:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0a96ab839bde40cf9d1d4db602c57a5e + name: 'Unit Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#UNIT_LOCATION},1.3.6.1.4.1.9.9.719.1.9.35.1.2]' + key: unit.discovery + delay: 1h + item_prototypes: + - uuid: 9d0f6f5594a24c588da63fd29bf2152f + name: '{#UNIT_LOCATION}: Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.35.1.32.{#SNMPINDEX}]' + key: 'system.hw.model[cucsComputeRackUnitModel.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnit:model managed object property + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: b0c955f0fc184c6686fa2fe3fce29f1a + name: '{#UNIT_LOCATION}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.35.1.47.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[cucsComputeRackUnitSerial.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnit:serial managed object property + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: b9667c535fe542eeb21dea7aaf2bbf80 + expression: 'last(/Cisco UCS by SNMP/system.hw.serialnumber[cucsComputeRackUnitSerial.{#SNMPINDEX}],#1)<>last(/Cisco UCS by SNMP/system.hw.serialnumber[cucsComputeRackUnitSerial.{#SNMPINDEX}],#2) and length(last(/Cisco UCS by SNMP/system.hw.serialnumber[cucsComputeRackUnitSerial.{#SNMPINDEX}]))>0' + name: 'Cisco UCS: {#UNIT_LOCATION}: Device has been replaced' + event_name: 'Cisco UCS: {#UNIT_LOCATION}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 00a0fe6510064375a1736433a17904c0 + name: '{#UNIT_LOCATION}: Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.9.35.1.42.{#SNMPINDEX}]' + key: 'system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}]' + delay: 30s + trends: '0' + description: | + MIB: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB + Cisco UCS compute:RackUnit:operState managed object property + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsLsOperState' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 70fbf187bc474aa88a26fb5a8d862694 + expression: 'count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_CRIT_STATUS:\"computeFailed\"}")=1 or count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_CRIT_STATUS:\"configFailure\"}")=1 or count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_CRIT_STATUS:\"unconfigFailure\"}")=1 or count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_CRIT_STATUS:\"inoperable\"}")=1' + name: 'Cisco UCS: {#UNIT_LOCATION}: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b69f6876b7de4e1c89934281696249c8 + expression: 'count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_WARN_STATUS:\"testFailed\"}")=1 or count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_WARN_STATUS:\"thermalProblem\"}")=1 or count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_WARN_STATUS:\"powerProblem\"}")=1 or count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_WARN_STATUS:\"voltageProblem\"}")=1 or count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_WARN_STATUS:\"diagnosticsFailed\"}")=1' + name: 'Cisco UCS: {#UNIT_LOCATION}: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings' + dependencies: + - name: 'Cisco UCS: {#UNIT_LOCATION}: System status is in critical state' + expression: 'count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_CRIT_STATUS:\"computeFailed\"}")=1 or count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_CRIT_STATUS:\"configFailure\"}")=1 or count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_CRIT_STATUS:\"unconfigFailure\"}")=1 or count(/Cisco UCS by SNMP/system.status[cucsComputeRackUnitOperState.{#SNMPINDEX}],#1,"eq","{$HEALTH_CRIT_STATUS:\"inoperable\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b76c04b65a8348539434d8857d1450aa + name: 'Virtual Disk Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#VDISK_LOCATION},1.3.6.1.4.1.9.9.719.1.45.8.1.2]' + key: virtualdisk.discovery + delay: 1h + description: 'CISCO-UNIFIED-COMPUTING-STORAGE-MIB::cucsStorageLocalLunTable' + item_prototypes: + - uuid: 0c6d53aae84e41fa9bdccf06a51bbf21 + name: '{#VDISK_LOCATION}: Layout type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.8.1.14.{#SNMPINDEX}]' + key: 'system.hw.virtualdisk.layout[cucsStorageLocalLunType.{#SNMPINDEX}]' + delay: 1h + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalLun:type managed object property + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStorageLunType' + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: db7e07e0325145d0a8f6bcef0cd0dff2 + name: '{#VDISK_LOCATION}: Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.8.1.13.{#SNMPINDEX}]' + key: 'system.hw.virtualdisk.size[cucsStorageLocalLunSize.{#SNMPINDEX}]' + delay: 1h + trends: '0' + units: B + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalLun:size managed object property in MB. + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStorageLunType' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: 5c0d7116c19940608ca40058e47fd595 + name: '{#VDISK_LOCATION}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.9.9.719.1.45.8.1.10.{#SNMPINDEX}]' + key: 'system.hw.virtualdisk.status[cucsStorageLocalLunPresence.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: CISCO-UNIFIED-COMPUTING-STORAGE-MIB + Cisco UCS storage:LocalLun:presence managed object property + valuemap: + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentPresence' + tags: + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 97b0c8177dca421f9535cb6f0abea7aa + expression: 'count(/Cisco UCS by SNMP/system.hw.virtualdisk.status[cucsStorageLocalLunPresence.{#SNMPINDEX}],#1,"ne","{$VDISK_OK_STATUS:\"equipped\"}")=1' + name: 'Cisco UCS: {#VDISK_LOCATION}: Virtual disk is not in OK state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check virtual disk for warnings or errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: hardware + - tag: target + value: cisco + - tag: target + value: cisco-ucs + macros: + - macro: '{$DISK_ARRAY_CACHE_BATTERY_CRIT_STATUS}' + value: '2' + - macro: '{$DISK_ARRAY_CACHE_BATTERY_OK_STATUS}' + value: '1' + - macro: '{$DISK_ARRAY_CRIT_STATUS:"inoperable"}' + value: '2' + - macro: '{$DISK_ARRAY_OK_STATUS:"operable"}' + value: '1' + - macro: '{$DISK_ARRAY_WARN_STATUS:"degraded"}' + value: '3' + - macro: '{$DISK_CRIT_STATUS:"bad"}' + value: '16' + - macro: '{$DISK_CRIT_STATUS:"predictiveFailure"}' + value: '11' + - macro: '{$DISK_FAIL_STATUS:"failed"}' + value: '9' + - macro: '{$FAN_CRIT_STATUS:"inoperable"}' + value: '2' + - macro: '{$FAN_WARN_STATUS:"degraded"}' + value: '3' + - macro: '{$HEALTH_CRIT_STATUS:"computeFailed"}' + value: '30' + - macro: '{$HEALTH_CRIT_STATUS:"configFailure"}' + value: '33' + - macro: '{$HEALTH_CRIT_STATUS:"inoperable"}' + value: '60' + - macro: '{$HEALTH_CRIT_STATUS:"unconfigFailure"}' + value: '34' + - macro: '{$HEALTH_WARN_STATUS:"diagnosticsFailed"}' + value: '204' + - macro: '{$HEALTH_WARN_STATUS:"powerProblem"}' + value: '62' + - macro: '{$HEALTH_WARN_STATUS:"testFailed"}' + value: '35' + - macro: '{$HEALTH_WARN_STATUS:"thermalProblem"}' + value: '60' + - macro: '{$HEALTH_WARN_STATUS:"voltageProblem"}' + value: '62' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$PSU_CRIT_STATUS:"inoperable"}' + value: '2' + - macro: '{$PSU_WARN_STATUS:"degraded"}' + value: '3' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"Ambient"}' + value: '35' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"Ambient"}' + value: '30' + - macro: '{$VDISK_OK_STATUS:"equipped"}' + value: '10' + valuemaps: + - uuid: e1686896f31e483f9add962dbbd90afb + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentOperability' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: operable + - value: '2' + newvalue: inoperable + - value: '3' + newvalue: degraded + - value: '4' + newvalue: poweredOff + - value: '5' + newvalue: powerProblem + - value: '6' + newvalue: removed + - value: '7' + newvalue: voltageProblem + - value: '8' + newvalue: thermalProblem + - value: '9' + newvalue: performanceProblem + - value: '10' + newvalue: accessibilityProblem + - value: '11' + newvalue: identityUnestablishable + - value: '12' + newvalue: biosPostTimeout + - value: '13' + newvalue: disabled + - value: '14' + newvalue: malformedFru + - value: '15' + newvalue: backplanePortProblem + - value: '16' + newvalue: chassisIntrusion + - value: '51' + newvalue: fabricConnProblem + - value: '52' + newvalue: fabricUnsupportedConn + - value: '81' + newvalue: config + - value: '82' + newvalue: equipmentProblem + - value: '83' + newvalue: decommissioning + - value: '84' + newvalue: chassisLimitExceeded + - value: '100' + newvalue: notSupported + - value: '101' + newvalue: discovery + - value: '102' + newvalue: discoveryFailed + - value: '103' + newvalue: identify + - value: '104' + newvalue: postFailure + - value: '105' + newvalue: upgradeProblem + - value: '106' + newvalue: peerCommProblem + - value: '107' + newvalue: autoUpgrade + - value: '108' + newvalue: linkActivateBlocked + - uuid: 5055674c42a241e3a2156de1dc1715bf + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsEquipmentPresence' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: empty + - value: '10' + newvalue: equipped + - value: '11' + newvalue: missing + - value: '12' + newvalue: mismatch + - value: '13' + newvalue: equippedNotPrimary + - value: '14' + newvalue: equippedSlave + - value: '15' + newvalue: mismatchSlave + - value: '16' + newvalue: missingSlave + - value: '20' + newvalue: equippedIdentityUnestablishable + - value: '21' + newvalue: mismatchIdentityUnestablishable + - value: '22' + newvalue: equippedWithMalformedFru + - value: '30' + newvalue: inaccessible + - value: '40' + newvalue: unauthorized + - value: '100' + newvalue: notSupported + - value: '101' + newvalue: equippedUnsupported + - value: '102' + newvalue: equippedDiscNotStarted + - value: '103' + newvalue: equippedDiscInProgress + - value: '104' + newvalue: equippedDiscError + - value: '105' + newvalue: equippedDiscUnknown + - uuid: 398aa5bf5eb44a8c8dd96babd98f1bd3 + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsLsOperState' + mappings: + - value: '0' + newvalue: indeterminate + - value: '1' + newvalue: unassociated + - value: '10' + newvalue: ok + - value: '11' + newvalue: discovery + - value: '12' + newvalue: config + - value: '13' + newvalue: unconfig + - value: '14' + newvalue: powerOff + - value: '15' + newvalue: restart + - value: '20' + newvalue: maintenance + - value: '21' + newvalue: test + - value: '29' + newvalue: computeMismatch + - value: '30' + newvalue: computeFailed + - value: '31' + newvalue: degraded + - value: '32' + newvalue: discoveryFailed + - value: '33' + newvalue: configFailure + - value: '34' + newvalue: unconfigFailed + - value: '35' + newvalue: testFailed + - value: '36' + newvalue: maintenanceFailed + - value: '40' + newvalue: removed + - value: '41' + newvalue: disabled + - value: '50' + newvalue: inaccessible + - value: '60' + newvalue: thermalProblem + - value: '61' + newvalue: powerProblem + - value: '62' + newvalue: voltageProblem + - value: '63' + newvalue: inoperable + - value: '101' + newvalue: decommissioning + - value: '201' + newvalue: biosRestore + - value: '202' + newvalue: cmosReset + - value: '203' + newvalue: diagnostics + - value: '204' + newvalue: diagnosticsFailed + - value: '210' + newvalue: pendingReboot + - value: '211' + newvalue: pendingReassociation + - value: '212' + newvalue: svnicNotPresent + - uuid: 7d3e38476c894ae59ecac6640b24f833 + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStorageLunType' + mappings: + - value: '0' + newvalue: unspecified + - value: '1' + newvalue: simple + - value: '2' + newvalue: mirror + - value: '3' + newvalue: stripe + - value: '4' + newvalue: raid + - value: '5' + newvalue: stripeParity + - value: '6' + newvalue: stripeDualParity + - value: '7' + newvalue: mirrorStripe + - value: '8' + newvalue: stripeParityStripe + - value: '9' + newvalue: stripeDualParityStripe + - uuid: 9b7c7078039c4e348ab417da71b96f5c + name: 'CISCO-UNIFIED-COMPUTING-TC-MIB::CucsStoragePDriveStatus' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: online + - value: '2' + newvalue: unconfiguredGood + - value: '3' + newvalue: globalHotSpare + - value: '4' + newvalue: dedicatedHotSpare + - value: '5' + newvalue: jbod + - value: '6' + newvalue: offline + - value: '7' + newvalue: rebuilding + - value: '8' + newvalue: copyback + - value: '9' + newvalue: failed + - value: '10' + newvalue: unconfiguredBad + - value: '11' + newvalue: predictiveFailure + - value: '12' + newvalue: disabledForRemoval + - value: '13' + newvalue: foreignConfiguration + - value: '14' + newvalue: zeroing + - value: '15' + newvalue: good + - value: '16' + newvalue: bad + - value: '17' + newvalue: lockedForeignConfiguration + - uuid: b98830da69f9463f949ed2df7ee5dcb3 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: a67fce1a203742eea56849fc38b8af39 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: a933ba0e5c7f4e908afaba4381f65482 + expression: '(last(/Cisco UCS by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Cisco UCS by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Cisco UCS by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Cisco UCS by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Cisco UCS: Host has been restarted' + event_name: 'Cisco UCS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Cisco UCS: No SNMP data collection' + expression: 'max(/Cisco UCS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/ClickHouse_by_HTTP.yaml b/ClickHouse_by_HTTP.yaml new file mode 100644 index 0000000..3c33260 --- /dev/null +++ b/ClickHouse_by_HTTP.yaml @@ -0,0 +1,2440 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 95f2053c21094ad4968440b562cc7ea2 + template: 'ClickHouse by HTTP' + name: 'ClickHouse by HTTP' + description: | + This template is designed for the effortless deployment of ClickHouse monitoring by Zabbix via HTTP and doesn't require any external scripts. + + Setup: + + 1. Create a user to monitor the service. For example, you could create a file '/etc/clickhouse-server/users.d/zabbix.xml' with the following content: + + + + + zabbix_pass + + web + default + + test + + + + + + 2. Set the hostname or IP address of the ClickHouse HTTP endpoint in the '{$CLICKHOUSE.HOST}' macro. You can also change the port in the '{$CLICKHOUSE.PORT}' macro and scheme in the '{$CLICKHOUSE.SCHEME}' macro if necessary. + + 3. Set the login and password in the macros '{$CLICKHOUSE.USER}' and '{$CLICKHOUSE.PASSWORD}'. If you don't need an authentication - remove headers from HTTP-Agent type items. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Databases + items: + - uuid: 595446e408b844519e8db1ea91543134 + name: 'Current distribute connections' + type: DEPENDENT + key: clickhouse.connections.distribute + delay: '0' + description: 'Number of connections to remote servers sending data that was INSERTed into Distributed tables.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "DistributedSend")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: connections + - uuid: d2d72a607672442b957228f0bea8dcca + name: 'Current HTTP connections' + type: DEPENDENT + key: clickhouse.connections.http + delay: '0' + description: 'Number of connections to HTTP server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "HTTPConnection")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: connections + - uuid: 0829591332244c75a219f3b811ebf9ce + name: 'Current Interserver connections' + type: DEPENDENT + key: clickhouse.connections.interserver + delay: '0' + description: 'Number of connections from other replicas to fetch parts.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "InterserverConnection")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: connections + - uuid: 88d4855d22604d79927d40c0d3b106c5 + name: 'Current MySQL connections' + type: DEPENDENT + key: clickhouse.connections.mysql + delay: '0' + description: 'Number of connections to MySQL server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "MySQLConnection")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: connections + - uuid: 11786fff830d4d79b914a22c5f85da7f + name: 'Current TCP connections' + type: DEPENDENT + key: clickhouse.connections.tcp + delay: '0' + description: 'Number of connections to TCP server (clients with native interface).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "TCPConnection")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: connections + - uuid: b2341064c7624848bfcac198d3b5ffa9 + name: 'Get databases info' + type: HTTP_AGENT + key: clickhouse.databases + history: '0' + value_type: TEXT + trends: '0' + description: 'Get information about databases.' + preprocessing: + - type: JSONPATH + parameters: + - $.data + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/' + query_fields: + - name: query + value: 'select database, sum(bytes) as bytes, count(distinct table) as tables, sum(rows) as rows from system.parts where active = 1 group by database format JSON' + headers: + - name: X-ClickHouse-User + value: '{$CLICKHOUSE.USER}' + - name: X-ClickHouse-Key + value: '{$CLICKHOUSE.PASSWORD}' + tags: + - tag: component + value: databases + - tag: component + value: raw + - uuid: 46d8ed7374274d71a06119f50463f26c + name: 'Get dictionaries info' + type: HTTP_AGENT + key: clickhouse.dictionaries + history: '0' + value_type: TEXT + trends: '0' + description: 'Get information about dictionaries.' + preprocessing: + - type: JSONPATH + parameters: + - $.data + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/' + query_fields: + - name: query + value: 'SELECT * FROM system.dictionaries format JSON' + headers: + - name: X-ClickHouse-User + value: '{$CLICKHOUSE.USER}' + - name: X-ClickHouse-Key + value: '{$CLICKHOUSE.PASSWORD}' + tags: + - tag: component + value: dictionaries + - tag: component + value: raw + - uuid: b7bbca72bbd14b20930e60c3c1cdcb8e + name: 'Current distributed files to insert' + type: DEPENDENT + key: clickhouse.distributed.files + delay: '0' + description: 'Number of pending files to process for asynchronous insertion into Distributed tables. Number of files for every shard is summed.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "DistributedFilesToInsert")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: system + triggers: + - uuid: 4ecadb993aa74126a807df3af4b892ed + expression: 'min(/ClickHouse by HTTP/clickhouse.distributed.files,5m)>{$CLICKHOUSE.DELAYED.FILES.DISTRIBUTED.COUNT.MAX.WARN}' + name: 'ClickHouse: Too many distributed files to insert' + event_name: 'ClickHouse: Too many distributed files to insert (over {$CLICKHOUSE.DELAYED.FILES.DISTRIBUTED.COUNT.MAX.WARN} for 5 min)' + priority: WARNING + description: 'Clickhouse servers and in config.xml (https://clickhouse.tech/docs/en/operations/table_engines/distributed/)' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - uuid: e056f8519dec4c8dace036bf993a6d47 + name: 'Distributed connection fail with retry per second' + type: DEPENDENT + key: clickhouse.distributed.files.fail.rate + delay: '0' + value_type: FLOAT + description: 'Connection failures after all retries in replicated DB connection pool' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "DistributedConnectionFailAtAll")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: connections + - uuid: 3859c5ee6f25419f9da7e7899c9a71af + name: 'Distributed connection fail with retry per second' + type: DEPENDENT + key: clickhouse.distributed.files.retry.rate + delay: '0' + value_type: FLOAT + description: 'Connection retries in replicated DB connection pool' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "DistributedConnectionFailTry")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: connections + - uuid: 81130b88e0b04b9ea677a80b6fd6ce22 + name: 'Delayed insert queries' + type: DEPENDENT + key: clickhouse.insert.delay + delay: '0' + value_type: FLOAT + description: 'Number of INSERT queries that are throttled due to high number of active data parts for partition in a MergeTree table.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "DelayedInserts")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: queries + triggers: + - uuid: 164dc9841cdd4b77a650792cf1bac701 + expression: 'min(/ClickHouse by HTTP/clickhouse.insert.delay,5m)>{$CLICKHOUSE.DELAYED.INSERTS.MAX.WARN}' + name: 'ClickHouse: Too many throttled insert queries' + event_name: 'ClickHouse: Too many throttled insert queries (over {$CLICKHOUSE.DELAYED.INSERTS.MAX.WARN) for 5 min)' + priority: WARNING + description: 'Clickhouse have INSERT queries that are throttled due to high number of active data parts for partition in a MergeTree, please decrease INSERT frequency' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: e2477dd38510489c8ea7509e9a37cb50 + name: 'Inserted bytes per second' + type: DEPENDENT + key: clickhouse.inserted_bytes.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The number of uncompressed bytes inserted in all tables.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "InsertedBytes")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: network + - uuid: e09cfd7db8be48a485bda8c5f033d210 + name: 'Inserted rows per second' + type: DEPENDENT + key: clickhouse.inserted_rows.rate + delay: '0' + value_type: FLOAT + description: 'The number of rows inserted in all tables.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "InsertedRows")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: system + - uuid: 410f7ee66ee84e3eb27940312ddf23d2 + name: 'New INSERT queries per second' + type: DEPENDENT + key: clickhouse.insert_query.rate + delay: '0' + value_type: FLOAT + description: 'Number of INSERT queries to be interpreted and potentially executed. Does not include queries that failed to parse or were rejected due to AST size limits, quota limits or limits on the number of simultaneously running queries. May include internal queries initiated by ClickHouse itself. Does not count subqueries.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "InsertQuery")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: queries + - uuid: 04c970694a6f40c89e4d3b53f27b7530 + name: 'Allocated bytes' + type: DEPENDENT + key: clickhouse.jemalloc.allocated + delay: '0' + units: B + description: 'Total number of bytes allocated by the application.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "jemalloc.allocated")].value.first()' + master_item: + key: clickhouse.system.asynchronous_metrics + tags: + - tag: component + value: memory + - uuid: 7aa71031aec74fbb9a2ec126076705a2 + name: 'Mapped memory' + type: DEPENDENT + key: clickhouse.jemalloc.mapped + delay: '0' + units: B + description: 'Total number of bytes in active extents mapped by the allocator.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "jemalloc.mapped")].value.first()' + master_item: + key: clickhouse.system.asynchronous_metrics + tags: + - tag: component + value: memory + - uuid: 32cc450854e94c6a9adbdde3c76b94d7 + name: 'Resident memory' + type: DEPENDENT + key: clickhouse.jemalloc.resident + delay: '0' + units: B + description: | + Maximum number of bytes in physically resident data pages mapped by the allocator, + comprising all pages dedicated to allocator metadata, pages backing active allocations, + and unused dirty pages. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "jemalloc.resident")].value.first()' + master_item: + key: clickhouse.system.asynchronous_metrics + tags: + - tag: component + value: memory + - uuid: c99265c296f14189aaf65bf68b7d5037 + name: 'Max count of parts per partition across all tables' + type: DEPENDENT + key: clickhouse.max.part.count.for.partition + delay: '0' + description: 'Clickhouse MergeTree table engine split each INSERT query to partitions (PARTITION BY expression) and add one or more PARTS per INSERT inside each partition, after that background merge process run.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "MaxPartCountForPartition")].value.first()' + master_item: + key: clickhouse.system.asynchronous_metrics + tags: + - tag: component + value: system + triggers: + - uuid: 21e6d3c6047145c59cbd00032699ee99 + expression: 'min(/ClickHouse by HTTP/clickhouse.max.part.count.for.partition,5m)>{$CLICKHOUSE.PARTS.PER.PARTITION.WARN} * 0.9' + name: 'ClickHouse: Too many MergeTree parts' + event_name: 'ClickHouse: Too many MergeTree parts (over 90% of {$CLICKHOUSE.PARTS.PER.PARTITION.WARN})' + priority: WARNING + description: | + Descease INSERT queries frequency. + Clickhouse MergeTree table engine split each INSERT query to partitions (PARTITION BY expression) + and add one or more PARTS per INSERT inside each partition, + after that background merge process run, and when you have too much unmerged parts inside partition, + SELECT queries performance can significate degrade, so clickhouse try delay insert, or abort it. + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: a4344162643142c9be3b09439b466a5d + name: 'Memory used for queries' + type: DEPENDENT + key: clickhouse.memory.tracking + delay: '0' + value_type: FLOAT + units: B + description: 'Total amount of memory (bytes) allocated in currently executing queries.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "MemoryTracking")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: memory + - uuid: 921670c46d9a4e5b85f2049d64298ab4 + name: 'Memory used for background merges' + type: DEPENDENT + key: clickhouse.memory.tracking.background + delay: '0' + value_type: FLOAT + units: B + description: | + Total amount of memory (bytes) allocated in background processing pool (that is dedicated for background merges, mutations and fetches). + Note that this value may include a drift when the memory was allocated in a context of background processing pool and freed in other context or vice-versa. This happens naturally due to caches for tables indexes and doesn't indicate memory leaks. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "MemoryTrackingInBackgroundProcessingPool")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: memory + - uuid: f881ea3cb2a2434d9cfac0d0896279f5 + name: 'Memory used for background moves' + type: DEPENDENT + key: clickhouse.memory.tracking.background.moves + delay: '0' + value_type: FLOAT + units: B + description: | + Total amount of memory (bytes) allocated in background processing pool (that is dedicated for background moves). Note that this value may include a drift when the memory was allocated in a context of background processing pool and freed in other context or vice-versa. + This happens naturally due to caches for tables indexes and doesn't indicate memory leaks. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "MemoryTrackingInBackgroundMoveProcessingPool")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: memory + - uuid: 3cd23448136c4ea8892483b1fbacec82 + name: 'Memory used for merges' + type: DEPENDENT + key: clickhouse.memory.tracking.merges + delay: '0' + value_type: FLOAT + units: B + description: | + Total amount of memory (bytes) allocated for background merges. Included in MemoryTrackingInBackgroundProcessingPool. Note that this value may include a drift when the memory was allocated in a context of background processing pool and freed in other context or vice-versa. + This happens naturally due to caches for tables indexes and doesn't indicate memory leaks. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "MemoryTrackingForMerges")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: memory + - uuid: 1f4641ef040546e0afcccc818f4d3471 + name: 'Memory used for background schedule pool' + type: DEPENDENT + key: clickhouse.memory.tracking.schedule.pool + delay: '0' + value_type: FLOAT + units: B + description: 'Total amount of memory (bytes) allocated in background schedule pool (that is dedicated for bookkeeping tasks of Replicated tables).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "MemoryTrackingInBackgroundSchedulePool")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: memory + - uuid: 5e98b9c4f1ee42238f363d76354ef537 + name: 'Current running merges' + type: DEPENDENT + key: clickhouse.merge.current + delay: '0' + description: 'Number of executing background merges' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "Merge")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: queries + - uuid: 50e33e8fc1904870bdc6d7f13d16943d + name: 'Uncompressed bytes merged per second' + type: DEPENDENT + key: clickhouse.merge_bytes.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Uncompressed bytes that were read for background merges' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "MergedUncompressedBytes")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: system + - uuid: a2afbf66601344bdb5ab72a7374bbe8b + name: 'Merged rows per second' + type: DEPENDENT + key: clickhouse.merge_rows.rate + delay: '0' + value_type: FLOAT + description: 'Rows read for background merges.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "MergedRows")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: system + - uuid: 83061f56dce24364906cae761419b148 + name: 'Network errors per second' + type: DEPENDENT + key: clickhouse.network.error.rate + delay: '0' + value_type: FLOAT + description: 'Network errors (timeouts and connection failures) during query execution, background pool tasks and DNS cache update.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "NetworkErrors")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: network + triggers: + - uuid: d49b9e8978bd416f81ea01b935879d81 + expression: 'min(/ClickHouse by HTTP/clickhouse.network.error.rate,5m)>{$CLICKHOUSE.NETWORK.ERRORS.MAX.WARN}' + name: 'ClickHouse: Too many network errors' + event_name: 'ClickHouse: Too many network errors (over {$CLICKHOUSE.NETWORK.ERRORS.MAX.WARN} in 5m)' + priority: WARNING + description: 'Number of errors (timeouts and connection failures) during query execution, background pool tasks and DNS cache update is too high.' + tags: + - tag: scope + value: availability + - uuid: cb40b0cf1296436d9a4e41062d1b3fa9 + name: Ping + type: HTTP_AGENT + key: clickhouse.ping + valuemap: + name: 'Service state' + preprocessing: + - type: REGEX + parameters: + - Ok\. + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/ping' + status_codes: '' + tags: + - tag: component + value: health + - tag: component + value: network + - uuid: 4fb14efc757542c1b50605bdfb2e23cb + name: 'Longest currently running query time' + type: HTTP_AGENT + key: clickhouse.process.elapsed + value_type: FLOAT + units: s + description: 'Get longest running query.' + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/' + query_fields: + - name: query + value: 'SELECT max(elapsed) FROM system.processes' + headers: + - name: X-ClickHouse-User + value: '{$CLICKHOUSE.USER}' + - name: X-ClickHouse-Key + value: '{$CLICKHOUSE.PASSWORD}' + tags: + - tag: component + value: queries + triggers: + - uuid: 2410e7b63c8340b6b08ec729d7093be6 + expression: 'last(/ClickHouse by HTTP/clickhouse.process.elapsed)>{$CLICKHOUSE.QUERY_TIME.MAX.WARN}' + name: 'ClickHouse: There are queries running is long' + event_name: 'ClickHouse: There are queries running more than {$CLICKHOUSE.QUERY_TIME.MAX.WARN} seconds' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 071ae233708b417b97cfeced5021c139 + name: 'Current running queries' + type: DEPENDENT + key: clickhouse.query.current + delay: '0' + description: 'Number of executing queries' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "Query")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: queries + - uuid: 0fb342f6a494443c8389f79439e94791 + name: 'New queries per second' + type: DEPENDENT + key: clickhouse.query.rate + delay: '0' + value_type: FLOAT + description: 'Number of queries to be interpreted and potentially executed. Does not include queries that failed to parse or were rejected due to AST size limits, quota limits or limits on the number of simultaneously running queries. May include internal queries initiated by ClickHouse itself. Does not count subqueries.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.data.event == "Query")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: queries + - uuid: fb671accbbaa4bd58a107dc3661419af + name: 'Read syscalls in fly' + type: DEPENDENT + key: clickhouse.read + delay: '0' + description: 'Number of read (read, pread, io_getevents, etc.) syscalls in fly' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "Read")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: system + - uuid: eb4c47501d9c4cdf9e55347ccc9a38bd + name: 'Read bytes per second' + type: DEPENDENT + key: clickhouse.read_bytes.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes (the number of bytes before decompression) read from compressed sources (files, network).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "ReadCompressedBytes")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: network + - uuid: 3793962be3494772832796c932947e1d + name: 'Get replicas info' + type: HTTP_AGENT + key: clickhouse.replicas + history: '0' + value_type: TEXT + trends: '0' + description: 'Get information about replicas.' + preprocessing: + - type: JSONPATH + parameters: + - $.data + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/' + query_fields: + - name: query + value: 'SELECT database, table, is_readonly, is_session_expired, future_parts, parts_to_check, queue_size, inserts_in_queue, merges_in_queue, log_max_index, log_pointer, total_replicas, active_replicas, log_max_index - log_pointer as replica_lag FROM system.replicas format JSON' + headers: + - name: X-ClickHouse-User + value: '{$CLICKHOUSE.USER}' + - name: X-ClickHouse-Key + value: '{$CLICKHOUSE.PASSWORD}' + tags: + - tag: component + value: raw + - tag: component + value: replicas + - uuid: 78ed9728eb634df1807c64637c862f9a + name: 'Replication lag across all tables' + type: DEPENDENT + key: clickhouse.replicas.max.absolute.delay + delay: '0' + units: s + description: 'Maximum replica queue delay relative to current time' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "ReplicasMaxAbsoluteDelay")].value.first()' + master_item: + key: clickhouse.system.asynchronous_metrics + tags: + - tag: component + value: replication + triggers: + - uuid: fc47a407b15744e79b70088ec249951a + expression: 'min(/ClickHouse by HTTP/clickhouse.replicas.max.absolute.delay,5m)>{$CLICKHOUSE.REPLICA.MAX.WARN}' + name: 'ClickHouse: Replication lag is too high' + event_name: 'ClickHouse: Replication lag is too high (over {$CLICKHOUSE.REPLICA.MAX.WARN} sec for 5min)' + priority: WARNING + description: | + When replica have too much lag, it can be skipped from Distributed SELECT Queries without errors + and you will have wrong query results. + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: dd61675348374d2ea06cdde144fe4e26 + name: 'Total number read-only Replicas' + type: DEPENDENT + key: clickhouse.replicas.readonly.total + delay: '0' + description: 'Number of Replicated tables that are currently in readonly state due to re-initialization after ZooKeeper session loss or due to startup without ZooKeeper configured.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "ReadonlyReplica")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: replication + - uuid: 5d2a35daf81a49888e3dfab916fab8be + name: 'Total replication tasks in queue' + type: DEPENDENT + key: clickhouse.replicas.sum.queue.size + delay: '0' + description: 'Number of replication tasks in queue' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "ReplicasSumQueueSize")].value.first()' + master_item: + key: clickhouse.system.asynchronous_metrics + tags: + - tag: component + value: replication + - uuid: 572036e5b2c74197bd61afc753f6e759 + name: Revision + type: DEPENDENT + key: clickhouse.revision + delay: '0' + description: 'Revision of the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "Revision")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: application + - uuid: f89f3e27ca4f4e109ae6fe6b74dcc2ca + name: 'New SELECT queries per second' + type: DEPENDENT + key: clickhouse.select_query.rate + delay: '0' + value_type: FLOAT + description: 'Number of SELECT queries to be interpreted and potentially executed. Does not include queries that failed to parse or were rejected due to AST size limits, quota limits or limits on the number of simultaneously running queries. May include internal queries initiated by ClickHouse itself. Does not count subqueries.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "SelectQuery")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: queries + - uuid: 6c84e0abd186467882d2d3842749f937 + name: 'Get system.asynchronous_metrics' + type: HTTP_AGENT + key: clickhouse.system.asynchronous_metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get metrics that are calculated periodically in the background' + preprocessing: + - type: JSONPATH + parameters: + - $.data + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/' + query_fields: + - name: query + value: 'select metric, value from system.asynchronous_metrics format JSON' + headers: + - name: X-ClickHouse-User + value: '{$CLICKHOUSE.USER}' + - name: X-ClickHouse-Key + value: '{$CLICKHOUSE.PASSWORD}' + tags: + - tag: component + value: asynchronous-metrics + - tag: component + value: raw + - uuid: 8aa612d27547446e9457aeaf6e94e320 + name: 'Get system.events' + type: HTTP_AGENT + key: clickhouse.system.events + history: '0' + value_type: TEXT + trends: '0' + description: 'Get information about the number of events that have occurred in the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.data + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/' + query_fields: + - name: query + value: 'select event, value from system.events format JSON' + headers: + - name: X-ClickHouse-User + value: '{$CLICKHOUSE.USER}' + - name: X-ClickHouse-Key + value: '{$CLICKHOUSE.PASSWORD}' + tags: + - tag: component + value: raw + - tag: component + value: system-events + - uuid: 2193464b67724392905deef21f2f7c20 + name: 'Get system.metrics' + type: HTTP_AGENT + key: clickhouse.system.metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get metrics which can be calculated instantly, or have a current value format JSONEachRow' + preprocessing: + - type: JSONPATH + parameters: + - $.data + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/' + query_fields: + - name: query + value: 'select metric, value from system.metrics format JSON' + headers: + - name: X-ClickHouse-User + value: '{$CLICKHOUSE.USER}' + - name: X-ClickHouse-Key + value: '{$CLICKHOUSE.PASSWORD}' + tags: + - tag: component + value: raw + - tag: component + value: system-metrics + - uuid: 88c843c6d4fd43c794d1447109146312 + name: 'Get system.settings' + type: HTTP_AGENT + key: clickhouse.system.settings + history: '0' + value_type: TEXT + trends: '0' + description: 'Get information about settings that are currently in use.' + preprocessing: + - type: JSONPATH + parameters: + - $.data + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/' + query_fields: + - name: query + value: 'select name, value from system.settings format JSON' + headers: + - name: X-ClickHouse-User + value: '{$CLICKHOUSE.USER}' + - name: X-ClickHouse-Key + value: '{$CLICKHOUSE.PASSWORD}' + tags: + - tag: component + value: raw + - tag: component + value: system-settings + triggers: + - uuid: dfd9500636824ebf9d51d93650d62613 + expression: 'last(/ClickHouse by HTTP/clickhouse.system.settings,#1)<>last(/ClickHouse by HTTP/clickhouse.system.settings,#2) and length(last(/ClickHouse by HTTP/clickhouse.system.settings))>0' + name: 'ClickHouse: Configuration has been changed' + event_name: 'ClickHouse: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'ClickHouse configuration has been changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 042f4b688cfe488fbd0e80f40f51ce78 + name: 'Get tables info' + type: HTTP_AGENT + key: clickhouse.tables + history: '0' + value_type: TEXT + trends: '0' + description: 'Get information about tables.' + preprocessing: + - type: JSONPATH + parameters: + - $.data + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/' + query_fields: + - name: query + value: 'select database, table, sum(bytes) as bytes, count() as parts, sum(rows) as rows from system.parts where active = 1 group by database, table format JSON' + headers: + - name: X-ClickHouse-User + value: '{$CLICKHOUSE.USER}' + - name: X-ClickHouse-Key + value: '{$CLICKHOUSE.PASSWORD}' + tags: + - tag: component + value: raw + - tag: component + value: tables + - uuid: 99b894b181b44a4f8ef10280b881b273 + name: Uptime + type: DEPENDENT + key: clickhouse.uptime + delay: '0' + value_type: FLOAT + units: s + description: 'Number of seconds since ClickHouse server start' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "Uptime")].value.first()' + master_item: + key: clickhouse.system.asynchronous_metrics + tags: + - tag: component + value: application + triggers: + - uuid: 975cebc1b4324f83b5a8853fd666a179 + expression: 'nodata(/ClickHouse by HTTP/clickhouse.uptime,30m)=1' + name: 'ClickHouse: Failed to fetch info data' + event_name: 'ClickHouse: Failed to fetch info data (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: 'ClickHouse: Service is down' + expression: 'last(/ClickHouse by HTTP/clickhouse.ping)=0 or last(/ClickHouse by HTTP/net.tcp.service[{$CLICKHOUSE.SCHEME},"{$CLICKHOUSE.HOST}","{$CLICKHOUSE.PORT}"]) = 0' + tags: + - tag: scope + value: notice + - uuid: e1316d3a83174cc49ab96ad90c46150b + expression: 'last(/ClickHouse by HTTP/clickhouse.uptime)<10m' + name: 'ClickHouse: Host has been restarted' + event_name: 'ClickHouse: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'The host uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d09b77c25dfd45249df05fc3f6d45b7b + name: Version + type: HTTP_AGENT + key: clickhouse.version + value_type: CHAR + trends: '0' + description: 'Version of the server' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + url: '{$CLICKHOUSE.SCHEME}://{$CLICKHOUSE.HOST}:{$CLICKHOUSE.PORT}/' + query_fields: + - name: query + value: 'SELECT version()' + headers: + - name: X-ClickHouse-User + value: '{$CLICKHOUSE.USER}' + - name: X-ClickHouse-Key + value: '{$CLICKHOUSE.PASSWORD}' + tags: + - tag: component + value: application + triggers: + - uuid: 244dcf8dc8584e1686585160c261ef85 + expression: 'last(/ClickHouse by HTTP/clickhouse.version,#1)<>last(/ClickHouse by HTTP/clickhouse.version,#2) and length(last(/ClickHouse by HTTP/clickhouse.version))>0' + name: 'ClickHouse: Version has changed' + event_name: 'ClickHouse: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The ClickHouse version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5bac794c8c7e438c924cd16b708dc281 + name: 'Write syscalls in fly' + type: DEPENDENT + key: clickhouse.write + delay: '0' + description: 'Number of write (write, pwrite, io_getevents, etc.) syscalls in fly' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "Write")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: system + - uuid: 381805a8145a48c2a1f2586996b66a94 + name: 'ZooKeeper exceptions per second' + type: DEPENDENT + key: clickhouse.zookeeper.exceptions.rate + delay: '0' + value_type: FLOAT + description: 'Count of ZooKeeper exceptions that does not belong to user/hardware exceptions.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "ZooKeeperOtherExceptions")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: zookeeper + - uuid: f8e6a866d8c745d39ed124f19afe8041 + name: 'ZooKeeper hardware exceptions per second' + type: DEPENDENT + key: clickhouse.zookeeper.hw_exceptions.rate + delay: '0' + value_type: FLOAT + description: 'Count of ZooKeeper exceptions caused by session moved/expired, connection loss, marshalling error, operation timed out and invalid zhandle state.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "ZooKeeperHardwareExceptions")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: zookeeper + - uuid: 071fb0471b8e40c3a5bb79c694cecce0 + name: 'ZooKeeper requests' + type: DEPENDENT + key: clickhouse.zookeeper.request + delay: '0' + description: 'Number of requests to ZooKeeper in progress.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "ZooKeeperRequest")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: zookeeper + - uuid: 3e344ea728a54bc38b4098e7f6e2d087 + name: 'ZooKeeper sessions' + type: DEPENDENT + key: clickhouse.zookeeper.session + delay: '0' + description: 'Number of sessions (connections) to ZooKeeper. Should be no more than one.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "ZooKeeperSession")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: zookeeper + triggers: + - uuid: 655622aa6c5c48c8b38d5a519602ef05 + expression: 'min(/ClickHouse by HTTP/clickhouse.zookeeper.session,5m)>1' + name: 'ClickHouse: Too many ZooKeeper sessions opened' + priority: WARNING + description: | + Number of sessions (connections) to ZooKeeper. + Should be no more than one, because using more than one connection to ZooKeeper may lead to bugs due to lack of linearizability (stale reads) that ZooKeeper consistency model allows. + tags: + - tag: scope + value: performance + - uuid: 4931797c1034488fb9a2fc01e22b599c + name: 'ZooKeeper user exceptions per second' + type: DEPENDENT + key: clickhouse.zookeeper.user_exceptions.rate + delay: '0' + value_type: FLOAT + description: 'Count of ZooKeeper exceptions caused by no znodes, bad version, node exists, node empty and no children for ephemeral.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "ZooKeeperUserExceptions")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: zookeeper + - uuid: b9fbc2f76b9c4de3b196ffc82ec10209 + name: 'ZooKeeper wait time' + type: DEPENDENT + key: clickhouse.zookeeper.wait.time + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent in waiting for ZooKeeper operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.event == "ZooKeeperWaitMicroseconds")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '1.0E-6' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: clickhouse.system.events + tags: + - tag: component + value: zookeeper + - uuid: 696aa071a9b24b29acbce2f1b5c49da3 + name: 'ZooKeeper watches' + type: DEPENDENT + key: clickhouse.zookeeper.watch + delay: '0' + description: 'Number of watches (e.g., event subscriptions) in ZooKeeper.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "ZooKeeperWatch")].value.first()' + master_item: + key: clickhouse.system.metrics + tags: + - tag: component + value: zookeeper + - uuid: 68d1e19a6ec2401ba0dd509de7df2812 + name: 'Check port availability' + type: SIMPLE + key: 'net.tcp.service[{$CLICKHOUSE.SCHEME},"{$CLICKHOUSE.HOST}","{$CLICKHOUSE.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1d4b9842b66b4da9ab3750944b2fa050 + expression: 'last(/ClickHouse by HTTP/net.tcp.service[{$CLICKHOUSE.SCHEME},"{$CLICKHOUSE.HOST}","{$CLICKHOUSE.PORT}"])=0' + name: 'ClickHouse: Port {$CLICKHOUSE.PORT} is unavailable' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 45014553f60c4fa79b1793ecf04d4b8c + name: Databases + type: DEPENDENT + key: clickhouse.db.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DB}' + value: '{$CLICKHOUSE.LLD.FILTER.DB.MATCHES}' + formulaid: A + - macro: '{#DB}' + value: '{$CLICKHOUSE.LLD.FILTER.DB.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Info about databases' + item_prototypes: + - uuid: b574ae5a62af4e9bb9d2c7324bc86c96 + name: '{#DB}: Bytes' + type: DEPENDENT + key: 'clickhouse.db.bytes["{#DB}"]' + delay: '0' + units: B + description: 'Database size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes + master_item: + key: 'clickhouse.db.info_raw["{#DB}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DB}' + - uuid: 407e1bf7688448abad516318efb6e65a + name: '{#DB}: Get DB info' + type: DEPENDENT + key: 'clickhouse.db.info_raw["{#DB}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets information about {#DB} database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.database == "{#DB}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: clickhouse.databases + tags: + - tag: component + value: raw + - tag: database + value: '{#DB}' + - uuid: 39d06d86884e4da9b9f8d9c0f7028c7c + name: '{#DB}: Tables' + type: DEPENDENT + key: 'clickhouse.db.tables["{#DB}"]' + delay: '0' + description: 'Number of tables in {#DB} database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tables + master_item: + key: 'clickhouse.db.info_raw["{#DB}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DB}' + master_item: + key: clickhouse.databases + lld_macro_paths: + - lld_macro: '{#DB}' + path: $.database + - uuid: add428c918e34dc9aeb58f946f16cbd2 + name: Dictionaries + type: DEPENDENT + key: clickhouse.dictionaries.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$CLICKHOUSE.LLD.FILTER.DICT.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$CLICKHOUSE.LLD.FILTER.DICT.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Info about dictionaries' + item_prototypes: + - uuid: 18cc050ff9c84d01ab61df1283fcce97 + name: 'Dictionary {#NAME}: Bytes allocated' + type: DEPENDENT + key: 'clickhouse.dictionary.bytes_allocated["{#NAME}"]' + delay: '0' + units: B + description: 'The amount of RAM the dictionary uses.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes_allocated + master_item: + key: 'clickhouse.dictionary.info_raw["{#NAME}"]' + tags: + - tag: component + value: dictionaries + - tag: dictionary + value: '{#NAME}' + - uuid: fa4efa26e3f64fc89c9d7dad39a610ca + name: 'Dictionary {#NAME}: Element count' + type: DEPENDENT + key: 'clickhouse.dictionary.element_count["{#NAME}"]' + delay: '0' + description: 'Number of items stored in the dictionary.' + preprocessing: + - type: JSONPATH + parameters: + - $.element_count + master_item: + key: 'clickhouse.dictionary.info_raw["{#NAME}"]' + tags: + - tag: component + value: dictionaries + - tag: dictionary + value: '{#NAME}' + - uuid: e736ddf5c02240e7a9e0ea463024ad8e + name: 'Dictionary {#NAME}: Get dictionary info' + type: DEPENDENT + key: 'clickhouse.dictionary.info_raw["{#NAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets information about {#NAME} dictionary.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: clickhouse.dictionaries + tags: + - tag: component + value: raw + - tag: dictionary + value: '{#NAME}' + - uuid: d9e333b7c1694ef482683679275dcd8d + name: 'Dictionary {#NAME}: Load factor' + type: DEPENDENT + key: 'clickhouse.dictionary.load_factor["{#NAME}"]' + delay: '0' + units: '%' + description: 'The percentage filled in the dictionary (for a hashed dictionary, the percentage filled in the hash table).' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes_allocated + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: 'clickhouse.dictionary.info_raw["{#NAME}"]' + tags: + - tag: component + value: dictionaries + - tag: dictionary + value: '{#NAME}' + master_item: + key: clickhouse.dictionaries + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + - uuid: ddb7c8c688264a5a8907fbdd6974d395 + name: Replicas + type: DEPENDENT + key: clickhouse.replicas.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DB}' + value: '{$CLICKHOUSE.LLD.FILTER.DB.MATCHES}' + formulaid: A + - macro: '{#DB}' + value: '{$CLICKHOUSE.LLD.FILTER.DB.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Info about replicas' + item_prototypes: + - uuid: be577e21420244cb9d47c9fb9e23904a + name: '{#DB}.{#TABLE}: Active replicas' + type: DEPENDENT + key: 'clickhouse.replica.active_replicas["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Number of replicas of this table that have a session in ZooKeeper (i.e., the number of functioning replicas). (Have a non-zero value only where there is an active session with ZooKeeper).' + preprocessing: + - type: JSONPATH + parameters: + - $.active_replicas + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: 0a84f6788b3f447d958e031df0e2301c + name: '{#DB}.{#TABLE}: Replica future parts' + type: DEPENDENT + key: 'clickhouse.replica.future_parts["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Number of data parts that will appear as the result of INSERTs or merges that haven''t been done yet.' + preprocessing: + - type: JSONPATH + parameters: + - $.future_parts + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: 11aa8f51d2d1461a989e465390b406de + name: '{#DB}.{#TABLE}: Get replicas info' + type: DEPENDENT + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets information about replicas of {#TABLE} table of {#DB} database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.database == "{#DB}" && @.table == "{#TABLE}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: clickhouse.replicas + tags: + - tag: component + value: raw + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: 6b49a71fcf244b8cb88e21423ac92ae2 + name: '{#DB}.{#TABLE}: Replica queue inserts size' + type: DEPENDENT + key: 'clickhouse.replica.inserts_in_queue["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Number of inserts of blocks of data that need to be made.' + preprocessing: + - type: JSONPATH + parameters: + - $.inserts_in_queue + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: 29977fdd52c64c4ca0b3565187365a0c + name: '{#DB}.{#TABLE}: Replica readonly' + type: DEPENDENT + key: 'clickhouse.replica.is_readonly["{#DB}.{#TABLE}"]' + delay: '0' + description: | + Whether the replica is in read-only mode. + This mode is turned on if the config doesn't have sections with ZooKeeper, if an unknown error occurred when re-initializing sessions in ZooKeeper, and during session re-initialization in ZooKeeper. + valuemap: + name: 'Replicas state' + preprocessing: + - type: JSONPATH + parameters: + - $.is_readonly + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + trigger_prototypes: + - uuid: 7cfd2342d3654407a941cb56fde5c6bf + expression: 'min(/ClickHouse by HTTP/clickhouse.replica.is_readonly["{#DB}.{#TABLE}"],5m)=1' + name: 'ClickHouse: {#DB}.{#TABLE} Replica is readonly' + priority: WARNING + description: 'This mode is turned on if the config doesn''t have sections with ZooKeeper, if an unknown error occurred when re-initializing sessions in ZooKeeper, and during session re-initialization in ZooKeeper.' + tags: + - tag: scope + value: availability + - uuid: a889475b8ddf48109af3dd2b7ed58627 + name: '{#DB}.{#TABLE}: Replica session expired' + type: DEPENDENT + key: 'clickhouse.replica.is_session_expired["{#DB}.{#TABLE}"]' + delay: '0' + description: 'True if the ZooKeeper session expired' + valuemap: + name: 'Replicas state' + preprocessing: + - type: JSONPATH + parameters: + - $.is_session_expired + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + trigger_prototypes: + - uuid: 765475cc0be84ce1b85d1f026d08c326 + expression: 'min(/ClickHouse by HTTP/clickhouse.replica.is_session_expired["{#DB}.{#TABLE}"],5m)=1' + name: 'ClickHouse: {#DB}.{#TABLE} Replica session is expired' + priority: WARNING + description: 'This mode is turned on if the config doesn''t have sections with ZooKeeper, if an unknown error occurred when re-initializing sessions in ZooKeeper, and during session re-initialization in ZooKeeper.' + tags: + - tag: scope + value: performance + - uuid: 8acd6e2195064708886d9944af264c32 + name: '{#DB}.{#TABLE}: Replica lag' + type: DEPENDENT + key: 'clickhouse.replica.lag["{#DB}.{#TABLE}"]' + delay: '0' + value_type: FLOAT + description: 'Difference between log_max_index and log_pointer' + preprocessing: + - type: JSONPATH + parameters: + - $.replica_lag + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + trigger_prototypes: + - uuid: 0b06b448c0ad433c94c2a3788ca53e1a + expression: 'min(/ClickHouse by HTTP/clickhouse.replica.lag["{#DB}.{#TABLE}"],5m) > {$CLICKHOUSE.LOG_POSITION.DIFF.MAX.WARN}' + name: 'ClickHouse: {#DB}.{#TABLE}: Difference between log_max_index and log_pointer is too high' + event_name: 'ClickHouse: {#DB}.{#TABLE}: Difference between log_max_index and log_pointer is too high (More than {$CLICKHOUSE.LOG_POSITION.DIFF.MAX.WARN} for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 267603d761864e4cbf764558520ed83c + name: '{#DB}.{#TABLE}: Replica log max index' + type: DEPENDENT + key: 'clickhouse.replica.log_max_index["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Maximum entry number in the log of general activity. (Have a non-zero value only where there is an active session with ZooKeeper).' + preprocessing: + - type: JSONPATH + parameters: + - $.log_max_index + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: 93bf89b0befa4c238f2143c1841ef629 + name: '{#DB}.{#TABLE}: Replica log pointer' + type: DEPENDENT + key: 'clickhouse.replica.log_pointer["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Maximum entry number in the log of general activity that the replica copied to its execution queue, plus one. (Have a non-zero value only where there is an active session with ZooKeeper).' + preprocessing: + - type: JSONPATH + parameters: + - $.log_pointer + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: 7b0da84f1e3f4705a209c6be025fc738 + name: '{#DB}.{#TABLE}: Replica queue merges size' + type: DEPENDENT + key: 'clickhouse.replica.merges_in_queue["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Number of merges waiting to be made.' + preprocessing: + - type: JSONPATH + parameters: + - $.merges_in_queue + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: 51a83465b90e4c82835030fec4f79b6f + name: '{#DB}.{#TABLE}: Replica parts to check' + type: DEPENDENT + key: 'clickhouse.replica.parts_to_check["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Number of data parts in the queue for verification. A part is put in the verification queue if there is suspicion that it might be damaged.' + preprocessing: + - type: JSONPATH + parameters: + - $.parts_to_check + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: 52ef1c26f14842868424f0c5bf81b35b + name: '{#DB}.{#TABLE}: Replica queue size' + type: DEPENDENT + key: 'clickhouse.replica.queue_size["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Size of the queue for operations waiting to be performed.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue_size + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + trigger_prototypes: + - uuid: 6fe0a15168db4abfa1cd2a2ee45d62ad + expression: 'min(/ClickHouse by HTTP/clickhouse.replica.queue_size["{#DB}.{#TABLE}"],5m)>{$CLICKHOUSE.QUEUE.SIZE.MAX.WARN:"{#TABLE}"}' + name: 'ClickHouse: {#DB}.{#TABLE}: Too many operations in queue' + event_name: 'ClickHouse: {#DB}.{#TABLE}: Too many operations in queue (over {$CLICKHOUSE.QUEUE.SIZE.MAX.WARN} for 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 0fc2781f4be44f0e85176e5ed05dc05e + name: '{#DB}.{#TABLE}: Total replicas' + type: DEPENDENT + key: 'clickhouse.replica.total_replicas["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Total number of known replicas of this table. (Have a non-zero value only where there is an active session with ZooKeeper).' + preprocessing: + - type: JSONPATH + parameters: + - $.total_replicas + master_item: + key: 'clickhouse.replica.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: replication + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + trigger_prototypes: + - uuid: f46f1b8d75c54129b6e2ff9ede2501b5 + expression: 'max(/ClickHouse by HTTP/clickhouse.replica.active_replicas["{#DB}.{#TABLE}"],5m) < last(/ClickHouse by HTTP/clickhouse.replica.total_replicas["{#DB}.{#TABLE}"])' + name: 'ClickHouse: {#DB}.{#TABLE}: Number of active replicas less than number of total replicas' + priority: WARNING + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 131e0d19c35f4d87aa62b7766e6e1db3 + name: 'ClickHouse: {#DB}.{#TABLE}: Replica log activity' + graph_items: + - color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: 'clickhouse.replica.log_max_index["{#DB}.{#TABLE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: 'clickhouse.replica.log_pointer["{#DB}.{#TABLE}"]' + - uuid: 195f5d50a1f0488b9db5d2f1e6a6e8c3 + name: 'ClickHouse: {#DB}.{#TABLE}: Replica queues' + graph_items: + - color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: 'clickhouse.replica.merges_in_queue["{#DB}.{#TABLE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: 'clickhouse.replica.inserts_in_queue["{#DB}.{#TABLE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'ClickHouse by HTTP' + key: 'clickhouse.replica.queue_size["{#DB}.{#TABLE}"]' + - sortorder: '3' + color: F7941D + item: + host: 'ClickHouse by HTTP' + key: 'clickhouse.replica.future_parts["{#DB}.{#TABLE}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ClickHouse by HTTP' + key: 'clickhouse.replica.parts_to_check["{#DB}.{#TABLE}"]' + master_item: + key: clickhouse.replicas + lld_macro_paths: + - lld_macro: '{#DB}' + path: $.database + - lld_macro: '{#TABLE}' + path: $.table + - uuid: a82f8d0f0a4b493dab0c2133b90113cc + name: Tables + type: DEPENDENT + key: clickhouse.tables.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DB}' + value: '{$CLICKHOUSE.LLD.FILTER.DB.MATCHES}' + formulaid: A + - macro: '{#DB}' + value: '{$CLICKHOUSE.LLD.FILTER.DB.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TABLE}' + value: '{$CLICKHOUSE.LLD.FILTER.TABLE.MATCHES}' + formulaid: C + - macro: '{#TABLE}' + value: '{$CLICKHOUSE.LLD.FILTER.TABLE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Info about tables' + item_prototypes: + - uuid: 3075954290af4f35b1620a5f15d2947d + name: '{#DB}.{#TABLE}: Bytes' + type: DEPENDENT + key: 'clickhouse.table.bytes["{#DB}.{#TABLE}"]' + delay: '0' + units: B + description: 'Table size in bytes. Database: {#DB}, table: {#TABLE}' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes + master_item: + key: 'clickhouse.table.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: tables + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: e55b8c504efc41679e90c83cb03bc117 + name: '{#DB}.{#TABLE}: Get table info' + type: DEPENDENT + key: 'clickhouse.table.info_raw["{#DB}.{#TABLE}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets information about {#TABLE} table of {#DB} database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.database == "{#DB}" && @.table == "{#TABLE}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: clickhouse.tables + tags: + - tag: component + value: raw + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: e50e12adb7ef47e6ba40db01e7ae01e4 + name: '{#DB}.{#TABLE}: Parts' + type: DEPENDENT + key: 'clickhouse.table.parts["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Number of parts of the table. Database: {#DB}, table: {#TABLE}' + preprocessing: + - type: JSONPATH + parameters: + - $.parts + master_item: + key: 'clickhouse.table.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: tables + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + - uuid: 0ba557c544854f47bcd9cc65d33f14e7 + name: '{#DB}.{#TABLE}: Rows' + type: DEPENDENT + key: 'clickhouse.table.rows["{#DB}.{#TABLE}"]' + delay: '0' + description: 'Number of rows in the table. Database: {#DB}, table: {#TABLE}' + preprocessing: + - type: JSONPATH + parameters: + - $.rows + master_item: + key: 'clickhouse.table.info_raw["{#DB}.{#TABLE}"]' + tags: + - tag: component + value: tables + - tag: database + value: '{#DB}' + - tag: table + value: '{#TABLE}' + master_item: + key: clickhouse.tables + lld_macro_paths: + - lld_macro: '{#DB}' + path: $.database + - lld_macro: '{#TABLE}' + path: $.table + tags: + - tag: class + value: database + - tag: target + value: clickhouse + macros: + - macro: '{$CLICKHOUSE.DELAYED.FILES.DISTRIBUTED.COUNT.MAX.WARN}' + value: '600' + description: 'Maximum size of distributed files queue to insert for trigger expression.' + - macro: '{$CLICKHOUSE.DELAYED.INSERTS.MAX.WARN}' + value: '0' + description: 'Maximum number of delayed inserts for trigger expression.' + - macro: '{$CLICKHOUSE.HOST}' + value: '' + description: 'The hostname or IP address of the ClickHouse HTTP endpoint.' + - macro: '{$CLICKHOUSE.LLD.FILTER.DB.MATCHES}' + value: '.*' + description: 'Filter of discoverable databases' + - macro: '{$CLICKHOUSE.LLD.FILTER.DB.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered databases' + - macro: '{$CLICKHOUSE.LLD.FILTER.DICT.MATCHES}' + value: '.*' + description: 'Filter of discoverable dictionaries' + - macro: '{$CLICKHOUSE.LLD.FILTER.DICT.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered dictionaries' + - macro: '{$CLICKHOUSE.LLD.FILTER.TABLE.MATCHES}' + value: '.*' + description: 'Filter of discoverable tables' + - macro: '{$CLICKHOUSE.LLD.FILTER.TABLE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered tables' + - macro: '{$CLICKHOUSE.LOG_POSITION.DIFF.MAX.WARN}' + value: '30' + description: 'Maximum diff between log_pointer and log_max_index.' + - macro: '{$CLICKHOUSE.NETWORK.ERRORS.MAX.WARN}' + value: '5' + description: 'Maximum number of network errors for trigger expression' + - macro: '{$CLICKHOUSE.PARTS.PER.PARTITION.WARN}' + value: '300' + description: 'Maximum number of parts per partition for trigger expression.' + - macro: '{$CLICKHOUSE.PASSWORD}' + value: zabbix_pass + - macro: '{$CLICKHOUSE.PORT}' + value: '8123' + description: 'The port of ClickHouse HTTP endpoint' + - macro: '{$CLICKHOUSE.QUERY_TIME.MAX.WARN}' + value: '600' + description: 'Maximum ClickHouse query time in seconds for trigger expression' + - macro: '{$CLICKHOUSE.QUEUE.SIZE.MAX.WARN}' + value: '20' + description: 'Maximum size of the queue for operations waiting to be performed for trigger expression.' + - macro: '{$CLICKHOUSE.REPLICA.MAX.WARN}' + value: '600' + description: 'Replication lag across all tables for trigger expression.' + - macro: '{$CLICKHOUSE.SCHEME}' + value: http + description: 'Request scheme which may be http or https' + - macro: '{$CLICKHOUSE.USER}' + value: zabbix + dashboards: + - uuid: c642000e289649e8913e0d644b914ecb + name: 'ClickHouse: Overview' + pages: + - name: Main + widgets: + - type: item + name: 'Service available' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'ClickHouse by HTTP' + key: clickhouse.ping + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + 'y': '2' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: Memory Usage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: Insert/Merge bytes rate' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '12' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: Current activity' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '17' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: Distributed' + - type: STRING + name: reference + value: AAAAG + - type: graph + 'y': '22' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: Syscalls in fly' + - type: STRING + name: reference + value: AAAAI + - type: item + name: 'Port available' + x: '12' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'ClickHouse by HTTP' + key: 'net.tcp.service[{$CLICKHOUSE.SCHEME},"{$CLICKHOUSE.HOST}","{$CLICKHOUSE.PORT}"]' + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: Uptime + x: '24' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'ClickHouse by HTTP' + key: clickhouse.uptime + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: Version + x: '36' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'ClickHouse by HTTP' + key: clickhouse.version + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + x: '36' + 'y': '2' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: Memory Utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: Insert/Merge rows rate' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '12' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: Current connections' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + 'y': '17' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: Queries rate' + - type: STRING + name: reference + value: AAAAH + - type: graph + x: '36' + 'y': '22' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: Zookeeper exceptions rate' + - type: STRING + name: reference + value: AAAAJ + - name: Replicas + widgets: + - type: graphprototype + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: {#DB}.{#TABLE}: Replica queues' + - type: STRING + name: reference + value: AAAAK + - type: INTEGER + name: rows + value: '3' + - type: graphprototype + x: '36' + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ClickHouse by HTTP' + name: 'ClickHouse: {#DB}.{#TABLE}: Replica log activity' + - type: STRING + name: reference + value: AAAAL + - type: INTEGER + name: rows + value: '3' + valuemaps: + - uuid: 4d926c30529447b3816cec3f1440b47a + name: 'Replicas state' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: 94147888c7ad4f5bae864eb2698f0237 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 803947a6de9340ed8596510dcbbeacac + expression: 'last(/ClickHouse by HTTP/clickhouse.ping)=0 or last(/ClickHouse by HTTP/net.tcp.service[{$CLICKHOUSE.SCHEME},"{$CLICKHOUSE.HOST}","{$CLICKHOUSE.PORT}"]) = 0' + name: 'ClickHouse: Service is down' + priority: AVERAGE + manual_close: 'YES' + dependencies: + - name: 'ClickHouse: Port {$CLICKHOUSE.PORT} is unavailable' + expression: 'last(/ClickHouse by HTTP/net.tcp.service[{$CLICKHOUSE.SCHEME},"{$CLICKHOUSE.HOST}","{$CLICKHOUSE.PORT}"])=0' + tags: + - tag: scope + value: availability + graphs: + - uuid: fc2f8de59c874876addb08ec633338d4 + name: 'ClickHouse: Current activity' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.query.current + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.merge.current + - uuid: b1b66d510e424965b7e82b902e0f2e58 + name: 'ClickHouse: Current connections' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.connections.tcp + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.connections.http + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'ClickHouse by HTTP' + key: clickhouse.connections.mysql + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.connections.interserver + - sortorder: '4' + drawtype: BOLD_LINE + color: FC6EA3 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.connections.distribute + - uuid: 59935d9f612f468b97288d9a0dc62b26 + name: 'ClickHouse: Distributed' + graph_items: + - color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.distributed.files.retry.rate + - sortorder: '1' + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.distributed.files.fail.rate + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + yaxisside: RIGHT + item: + host: 'ClickHouse by HTTP' + key: clickhouse.distributed.files + - uuid: edd18c769edd442cba00adf97ae4192a + name: 'ClickHouse: Insert/Merge bytes rate' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.inserted_bytes.rate + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.merge_bytes.rate + - uuid: 0fd813049e7449b69366021ffa0d3ec7 + name: 'ClickHouse: Insert/Merge rows rate' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.inserted_rows.rate + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.merge_rows.rate + - uuid: 5a688818d4fa44f687aa8415abddc7c0 + name: 'ClickHouse: Memory Usage' + graph_items: + - color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.memory.tracking.merges + - sortorder: '1' + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.memory.tracking.schedule.pool + - sortorder: '2' + color: 00611C + item: + host: 'ClickHouse by HTTP' + key: clickhouse.memory.tracking.background.moves + - sortorder: '3' + color: F7941D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.memory.tracking.background + - sortorder: '4' + color: FC6EA3 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.memory.tracking + - uuid: ba22cf13ef6f46299651d15fb860016d + name: 'ClickHouse: Memory Utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.jemalloc.allocated + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.jemalloc.resident + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'ClickHouse by HTTP' + key: clickhouse.jemalloc.mapped + - uuid: 9593c61ecdfa4c83ab9421ed85a82f36 + name: 'ClickHouse: Queries rate' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.query.rate + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.select_query.rate + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'ClickHouse by HTTP' + key: clickhouse.insert_query.rate + - uuid: eaa80cf006e84d26903cf1004a268a31 + name: 'ClickHouse: Syscalls in fly' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.read + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.write + - uuid: eda00404a372434ea4f511c219bf3295 + name: 'ClickHouse: Uptime' + graph_items: + - color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.uptime + - uuid: c90d0b21105e42bd9f4399d77ba0a81a + name: 'ClickHouse: Zookeeper exceptions rate' + graph_items: + - color: 199C0D + item: + host: 'ClickHouse by HTTP' + key: clickhouse.zookeeper.exceptions.rate + - sortorder: '1' + color: F63100 + item: + host: 'ClickHouse by HTTP' + key: clickhouse.zookeeper.hw_exceptions.rate + - sortorder: '2' + color: 00611C + item: + host: 'ClickHouse by HTTP' + key: clickhouse.zookeeper.user_exceptions.rate + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + yaxisside: RIGHT + item: + host: 'ClickHouse by HTTP' + key: clickhouse.zookeeper.watch diff --git a/Cloudflare_by_HTTP.yaml b/Cloudflare_by_HTTP.yaml new file mode 100644 index 0000000..bce6e49 --- /dev/null +++ b/Cloudflare_by_HTTP.yaml @@ -0,0 +1,962 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 08ef3d687d754b0aba17e1dcbd77d4bd + template: 'Cloudflare by HTTP' + name: 'Cloudflare by HTTP' + description: | + The template to monitor Cloudflare to see your web traffic and DNS metrics. + It works without any external scripts and uses Script item. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 2be79391779a4cd395723e62694262e8 + name: 'Total bandwidth' + type: DEPENDENT + key: cloudflare.bandwidth.all + delay: '0' + units: B + description: 'The volume of all data.' + preprocessing: + - type: JSONPATH + parameters: + - $.bandwidth.all + master_item: + key: cloudflare.get + tags: + - tag: component + value: bandwidth + - uuid: 7f5900d6c707405789624f84f502b042 + name: 'Cached bandwidth' + type: DEPENDENT + key: cloudflare.bandwidth.cached + delay: '0' + units: B + description: 'The volume of cached data.' + preprocessing: + - type: JSONPATH + parameters: + - $.bandwidth.cached + master_item: + key: cloudflare.get + tags: + - tag: component + value: bandwidth + - uuid: c5ab8cc281ff4f75bd4ada79d2c0d1e8 + name: 'Cache hit ratio of bandwidth' + type: DEPENDENT + key: cloudflare.bandwidth.cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of the amount cached bandwidth to the bandwidth in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.bandwidth.cache_hit_ratio + master_item: + key: cloudflare.get + tags: + - tag: component + value: bandwidth + triggers: + - uuid: acf573785c394924aae8ef74b2683fd1 + expression: 'max(/Cloudflare by HTTP/cloudflare.bandwidth.cache_hit_ratio,#3) < {$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}' + name: 'Cloudflare: Cached bandwidth is too low' + event_name: 'Cloudflare: Cached bandwidth is too low (less than {$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}% for 3 last measurements)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 901db6b121c7473485c91b0f27e7cf50 + name: 'SSL encrypted bandwidth' + type: DEPENDENT + key: cloudflare.bandwidth.ssl.encrypted + delay: '0' + units: B + description: 'The volume of encrypted data.' + preprocessing: + - type: JSONPATH + parameters: + - $.bandwidth.encrypted + master_item: + key: cloudflare.get + tags: + - tag: component + value: bandwidth + - uuid: 4637d88e62204f9d8fb9fc0f179c5319 + name: 'Unencrypted bandwidth' + type: DEPENDENT + key: cloudflare.bandwidth.ssl.unencrypted + delay: '0' + units: B + description: 'The volume of unencrypted data.' + preprocessing: + - type: JSONPATH + parameters: + - $.bandwidth.unencrypted + master_item: + key: cloudflare.get + tags: + - tag: component + value: bandwidth + - uuid: 96e88a64df014997b8c675cbc4bb97a1 + name: 'Uncached bandwidth' + type: DEPENDENT + key: cloudflare.bandwidth.uncached + delay: '0' + units: B + description: 'The volume of uncached data.' + preprocessing: + - type: JSONPATH + parameters: + - $.bandwidth.uncached + master_item: + key: cloudflare.get + tags: + - tag: component + value: bandwidth + - uuid: 6eff62f2786d42a7925bd516a1c2a958 + name: 'DNS queries' + type: DEPENDENT + key: cloudflare.dns.query.all + delay: '0' + units: conn + description: 'The amount of all DNS queries.' + preprocessing: + - type: JSONPATH + parameters: + - $.dns.query.all + master_item: + key: cloudflare.get + tags: + - tag: component + value: dns + - uuid: 4612a834ef054740ba5fea529a08e220 + name: 'Stale DNS queries' + type: DEPENDENT + key: cloudflare.dns.query.stale + delay: '0' + units: conn + description: 'The number of stale DNS queries.' + preprocessing: + - type: JSONPATH + parameters: + - $.dns.query.stale + master_item: + key: cloudflare.get + tags: + - tag: component + value: dns + - uuid: 4aeb289b631a402390a833e3c5227d38 + name: 'Uncached DNS queries' + type: DEPENDENT + key: cloudflare.dns.query.uncached + delay: '0' + units: conn + description: 'The number of uncached DNS queries.' + preprocessing: + - type: JSONPATH + parameters: + - $.dns.query.uncached + master_item: + key: cloudflare.get + tags: + - tag: component + value: dns + - uuid: 9450a68208fd4cb8bde009296d722064 + name: 'Get data' + type: SCRIPT + key: cloudflare.get + delay: 0;m01 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Cloudflare = { + params: {}, + + setParams: function (params) { + ['api_endpoint', 'token', 'zone'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + }); + + Cloudflare.params = params; + if (typeof Cloudflare.params.api_endpoint === 'string') { + if (!Cloudflare.params.api_endpoint.endsWith('/')) { + Cloudflare.params.api_endpoint += '/'; + } + } + + Cloudflare.tls = new CTlsConfig(params.tls_verify); + Cloudflare.tls.checkURL(Cloudflare.params.api_endpoint); + }, + + request: function (method, query, data) { + var response, + request = new HttpRequest(Cloudflare.tls.options), + url = Cloudflare.params.api_endpoint + query; + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Cloudflare.params.token); + + if (typeof data !== 'undefined') { + data = JSON.stringify(data); + } + + Zabbix.log(4, '[ Cloudflare ] Sending request: ' + url + ((typeof data === 'string') ? ('\n' + data) : '')); + + switch (method) { + case 'get': + response = request.get(url, data); + break; + + case 'post': + response = request.post(url, data); + break; + + default: + throw 'Unsupported HTTP request method: ' + method; + } + + Zabbix.log(4, '[ Cloudflare ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Cloudflare. Check debug log for more information.'; + } + } + + if (query === 'graphql/' && request.getStatus() == 200 && typeof response.errors !== 'undefined' + && Array.isArray(response.errors)) { + throw 'Request failed with error "' + (getField(response, 'errors.0.message') || 'unknown') + '"'; + } + + return { + status: request.getStatus(), + response: response + }; + } + } + + function getField(object, field, def) { + var names = field.split('.'); + var name = names.shift(); + + while (typeof name !== 'undefined') { + if (typeof object === undefined || typeof object[name] === 'undefined') { + return def; + } + + object = object[name]; + name = names.shift(); + } + + return object; + } + + try { + Cloudflare.setParams(JSON.parse(value)); + + var datetime_end = new Date(), + datetime_start = new Date(); + + datetime_start.setTime(datetime_end.getTime() - 3600000); + datetime_start.setMinutes(0, 0, 0); + datetime_end.setTime(datetime_start.getTime()); + datetime_end.setMinutes(59, 59, 0); + + var datetime_start_str = datetime_start.toISOString(), + datetime_end_str = datetime_end.toISOString(); + + var data = { + "query": "{viewer {zones(filter: {zoneTag: \"" + Cloudflare.params.zone + "\"}) {\ + httpRequests1hGroups(limit: 100 filter: {\ + datetime_geq: \"" + datetime_start_str + "\", datetime_leq: \"" + datetime_end_str + "\"\ + }) {\ + sum{\ + requests \ + cachedRequests \ + encryptedRequests \ + responseStatusMap{ requests edgeResponseStatus } \ + bytes \ + cachedBytes \ + encryptedBytes \ + threats \ + pageViews \ + }\ + uniq{uniques}\ + }\ + }}}", "variables": {} + } + var result = Cloudflare.request('post', 'graphql/', data), + cloudflare = {}, + res = getField(result.response, 'data.viewer.zones.0.httpRequests1hGroups.0.sum'); + + if (typeof res === 'object') { + cloudflare = { + requests: { + all: res.requests || 0, + cached: res.cachedRequests || 0, + encrypted: res.encryptedRequests || 0, + cache_hit_ratio: 0, + success_ratio: 0, + others_ratio: 0, + response_100: 0, + response_200: 0, + response_300: 0, + response_400: 0, + response_500: 0 + }, + bandwidth: { + all: res.bytes || 0, + cached: res.cachedBytes || 0, + cache_hit_ratio: 0, + encrypted: res.encryptedBytes || 0, + }, + threats: { + all: res.threats || 0 + }, + pageviews: { + all: res.pageViews || 0 + } + } + + cloudflare.requests.uncached = res.requests - res.cachedRequests; + cloudflare.requests.unencrypted = cloudflare.requests.all - cloudflare.requests.encrypted; + cloudflare.bandwidth.uncached = cloudflare.bandwidth.all - cloudflare.bandwidth.cached; + cloudflare.bandwidth.unencrypted = cloudflare.bandwidth.all - cloudflare.bandwidth.encrypted; + + if (Array.isArray(res.responseStatusMap)) { + res.responseStatusMap.forEach(function (element) { + var group = Math.floor((element.edgeResponseStatus / 100)) * 100; + cloudflare.requests['response_' + group] += element.requests; + }); + } + + if (cloudflare.requests.all > 0) { + cloudflare.requests.success_ratio = (cloudflare.requests.response_200 + / cloudflare.requests.all * 100).toFixed(2); + cloudflare.requests.others_ratio = ((cloudflare.requests.all - cloudflare.requests.response_200) + / cloudflare.requests.all * 100).toFixed(2); + cloudflare.requests.cache_hit_ratio = (cloudflare.requests.cached + / cloudflare.requests.all * 100).toFixed(2); + } + + if (cloudflare.bandwidth.all > 0) { + cloudflare.bandwidth.cache_hit_ratio = (cloudflare.bandwidth.cached / cloudflare.bandwidth.all * 100).toFixed(2); + } + + res = getField(result.response, 'data.viewer.zones.0.httpRequests1hGroups.0.uniq'); + + if (typeof res === 'object') { + cloudflare.uniques = { + all: res.uniques || 0 + } + } + + result = Cloudflare.request('get', 'zones/' + encodeURIComponent(Cloudflare.params.zone) + + '/dns_analytics/report?dimensions=queryName&metrics=queryCount,uncachedCount,staleCount&since=' + + encodeURIComponent(datetime_start_str) + '&until=' + encodeURIComponent(datetime_end_str)); + + res = getField(result.response, 'result.totals'); + + if (typeof result.response.result === 'object') { + cloudflare.dns = { + query: { + all: res.queryCount || 0, + uncached: res.uncachedCount || 0, + stale: res.staleCount || 0 + } + } + } + } + + return JSON.stringify(cloudflare); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Cloudflare ] ERROR: ' + error); + throw 'Requesting failed: ' + error; + } + description: 'The JSON with result of Cloudflare API request.' + parameters: + - name: api_endpoint + value: '{$CLOUDFLARE.API.URL}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cloudflare"}' + - name: token + value: '{$CLOUDFLARE.API.TOKEN}' + - name: zone + value: '{$CLOUDFLARE.ZONE_ID}' + tags: + - tag: component + value: raw + - uuid: 71efacd9f1dc46a7aa29876c8bf7906c + name: 'Total page views' + type: DEPENDENT + key: cloudflare.pageviews.all + delay: '0' + units: pg + description: 'The amount of all pageviews.' + preprocessing: + - type: JSONPATH + parameters: + - $.pageviews.all + master_item: + key: cloudflare.get + tags: + - tag: component + value: pageviews + - uuid: d4a7431b1f6a4d3ab11551a36c98fbf7 + name: 'Total requests' + type: DEPENDENT + key: cloudflare.requests.all + delay: '0' + units: req + description: 'The amount of all requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.all + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: cc9d651cdec94afeb12ead87b3c3e8f3 + name: 'Cached requests' + type: DEPENDENT + key: cloudflare.requests.cached + delay: '0' + units: req + preprocessing: + - type: JSONPATH + parameters: + - $.requests.cached + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: e1c2a1280d25439f8020b3ebc451d892 + name: 'Cache hit ratio % over time' + type: DEPENDENT + key: cloudflare.requests.cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of the amount cached requests to all requests in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.cache_hit_ratio + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: 228912bdae724d70b1abe79510b69082 + name: 'Non-2xx responses ratio' + type: DEPENDENT + key: cloudflare.requests.others_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of the amount requests with non-2xx response codes to all requests in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.others_ratio + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + triggers: + - uuid: e76f4a61dd094419b6e0af706758e545 + expression: 'min(/Cloudflare by HTTP/cloudflare.requests.others_ratio,#3) > {$CLOUDFLARE.ERRORS.MAX.WARN}' + name: 'Cloudflare: Ratio of non-2xx responses is too high' + event_name: 'Cloudflare: Ratio of non-2xx responses is too high (more than {$CLOUDFLARE.ERRORS.MAX.WARN}% for 3 last measurements)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'A large number of errors can indicate a malfunction of the site.' + tags: + - tag: scope + value: performance + - uuid: 0f427419265a4ef09f052a03c539125d + name: 'Response codes 1xx' + type: DEPENDENT + key: cloudflare.requests.response_100 + delay: '0' + units: req + description: 'The number requests with 1xx response codes.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.response_100 + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: 3ade3e726d314382a3e841b3d5cb5834 + name: 'Response codes 2xx' + type: DEPENDENT + key: cloudflare.requests.response_200 + delay: '0' + units: req + description: 'The number requests with 2xx response codes.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.response_200 + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: 2caff86e7ca5400889f3b2bd4b6ba986 + name: 'Response codes 3xx' + type: DEPENDENT + key: cloudflare.requests.response_300 + delay: '0' + units: req + description: 'The number requests with 3xx response codes.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.response_300 + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: b3510ec2adc74e10824365012c13250f + name: 'Response codes 4xx' + type: DEPENDENT + key: cloudflare.requests.response_400 + delay: '0' + units: req + description: 'The number requests with 4xx response codes.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.response_400 + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: 714ef2cbecbe4a93b20988a0bc6863a7 + name: 'Response codes 5xx' + type: DEPENDENT + key: cloudflare.requests.response_500 + delay: '0' + units: req + description: 'The number requests with 5xx response codes.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.response_500 + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: d39fcd4fdc594257bea91de0890d326b + name: 'SSL encrypted requests' + type: DEPENDENT + key: cloudflare.requests.ssl.encrypted + delay: '0' + units: req + description: 'The number of encrypted requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.encrypted + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: acbbc431dfc3431583123380edb6da38 + name: 'Unencrypted requests' + type: DEPENDENT + key: cloudflare.requests.ssl.unencrypted + delay: '0' + units: req + description: 'The number of unencrypted requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.unencrypted + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: 6100ff50001543ae83e84ab2c47260f3 + name: '2xx responses ratio' + type: DEPENDENT + key: cloudflare.requests.success_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of the amount requests with 2xx response codes to all requests in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.success_ratio + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: 7907f68e795b40fca1bd520556ea1fff + name: 'Uncached requests' + type: DEPENDENT + key: cloudflare.requests.uncached + delay: '0' + units: req + description: 'The number of uncached requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.uncached + master_item: + key: cloudflare.get + tags: + - tag: component + value: requests + - uuid: 328051a78529494e943edda567aa0e24 + name: 'Total threats' + type: DEPENDENT + key: cloudflare.threats.all + delay: '0' + description: 'The number of all threats.' + preprocessing: + - type: JSONPATH + parameters: + - $.threats.all + master_item: + key: cloudflare.get + tags: + - tag: component + value: threats + - uuid: d1a2ec213b084701805f3f974af25a21 + name: 'Unique visitors' + type: DEPENDENT + key: cloudflare.uniques.all + delay: '0' + units: conn + description: 'The number of all visitors IPs.' + preprocessing: + - type: JSONPATH + parameters: + - $.uniques.all + master_item: + key: cloudflare.get + tags: + - tag: component + value: uniques + tags: + - tag: class + value: service + - tag: target + value: cloudflare + macros: + - macro: '{$CLOUDFLARE.API.TOKEN}' + type: SECRET_TEXT + description: 'Your Cloudflare API Token.' + - macro: '{$CLOUDFLARE.API.URL}' + value: 'https://api.cloudflare.com/client/v4' + description: 'The URL of Cloudflare API endpoint.' + - macro: '{$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}' + value: '50' + description: 'Minimum of cached bandwidth in %.' + - macro: '{$CLOUDFLARE.ERRORS.MAX.WARN}' + value: '30' + description: 'Maximum responses with errors in %.' + - macro: '{$CLOUDFLARE.ZONE_ID}' + type: SECRET_TEXT + description: 'Your Cloudflare Site Zone ID.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Cloudflare", e.g. {$HTTP.TLS.VERIFY:"Cloudflare"}.' + dashboards: + - uuid: 51f1013e8a3d492faed27fe80b68fc53 + name: Overview + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cloudflare by HTTP' + name: 'Cloudflare: Bandwidth' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cloudflare by HTTP' + name: 'Cloudflare: DNS requests' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cloudflare by HTTP' + name: 'Cloudflare: HTTP responses ratio over time' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cloudflare by HTTP' + name: 'Cloudflare: HTTP response codes over time' + - type: STRING + name: reference + value: AAAAG + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cloudflare by HTTP' + name: 'Cloudflare: Web requests' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cloudflare by HTTP' + name: 'Cloudflare: Caching' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Cloudflare by HTTP' + name: 'Cloudflare: IPs and threats' + - type: STRING + name: reference + value: AAAAF + graphs: + - uuid: 09e113216680490c9dd15805474bcac7 + name: 'Cloudflare: Bandwidth' + graph_items: + - color: 199C0D + item: + host: 'Cloudflare by HTTP' + key: cloudflare.bandwidth.all + - sortorder: '1' + color: F63100 + item: + host: 'Cloudflare by HTTP' + key: cloudflare.bandwidth.cached + - sortorder: '2' + color: 00611C + item: + host: 'Cloudflare by HTTP' + key: cloudflare.bandwidth.uncached + - sortorder: '3' + color: F7941D + item: + host: 'Cloudflare by HTTP' + key: cloudflare.bandwidth.ssl.encrypted + - sortorder: '4' + color: FC6EA3 + item: + host: 'Cloudflare by HTTP' + key: cloudflare.bandwidth.ssl.unencrypted + - uuid: ed4ef5ce4a6a4c5692c22079d8879e0e + name: 'Cloudflare: Caching' + graph_items: + - color: 199C0D + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.cache_hit_ratio + - sortorder: '1' + color: F63100 + item: + host: 'Cloudflare by HTTP' + key: cloudflare.bandwidth.cache_hit_ratio + - uuid: 25df26cece41403d864f1ced5901bffa + name: 'Cloudflare: DNS requests' + graph_items: + - color: 199C0D + item: + host: 'Cloudflare by HTTP' + key: cloudflare.dns.query.all + - sortorder: '1' + color: F63100 + item: + host: 'Cloudflare by HTTP' + key: cloudflare.dns.query.stale + - sortorder: '2' + color: 00611C + item: + host: 'Cloudflare by HTTP' + key: cloudflare.dns.query.uncached + - uuid: 3fb3b089a115420bbc051c14fcd2f3aa + name: 'Cloudflare: HTTP response codes over time' + graph_items: + - color: 199C0D + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.response_100 + - sortorder: '1' + color: F63100 + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.response_200 + - sortorder: '2' + color: 00611C + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.response_300 + - sortorder: '3' + color: F7941D + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.response_400 + - sortorder: '4' + color: FC6EA3 + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.response_500 + - uuid: c9e1708427a84182a406faec327bb6f1 + name: 'Cloudflare: HTTP responses ratio over time' + graph_items: + - color: 199C0D + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.others_ratio + - sortorder: '1' + color: F63100 + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.success_ratio + - uuid: 6a0da78eec23423ab084a0760f1691be + name: 'Cloudflare: IPs and threats' + graph_items: + - color: 199C0D + item: + host: 'Cloudflare by HTTP' + key: cloudflare.threats.all + - sortorder: '1' + color: F63100 + item: + host: 'Cloudflare by HTTP' + key: cloudflare.uniques.all + - uuid: 659df99629a341449c77baf7a9b99b77 + name: 'Cloudflare: Web requests' + graph_items: + - color: 199C0D + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.all + - sortorder: '1' + color: F63100 + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.cached + - sortorder: '2' + color: 00611C + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.uncached + - sortorder: '3' + color: F7941D + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.ssl.encrypted + - sortorder: '4' + color: FC6EA3 + item: + host: 'Cloudflare by HTTP' + key: cloudflare.requests.ssl.unencrypted diff --git a/CockroachDB_by_HTTP.yaml b/CockroachDB_by_HTTP.yaml new file mode 100644 index 0000000..5abb022 --- /dev/null +++ b/CockroachDB_by_HTTP.yaml @@ -0,0 +1,2952 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 36116d8675da47b8a678193969d5a787 + template: 'CockroachDB by HTTP' + name: 'CockroachDB by HTTP' + description: | + The template to monitor CockroachDB nodes by Zabbix that works without any external scripts. + Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. + + The template collects metrics by HTTP agent from Prometheus endpoint and health endpoints. + + Internal node metrics are collected from Prometheus /_status/vars endpoint. + Node health metrics are collected from /health and /health?ready=1 endpoints. + The template doesn't require usage of session token. + + Note, that some metrics may not be collected depending on your CockroachDB version and configuration. + + Setup: + + Set the hostname or IP address of the CockroachDB node host in the '{$COCKROACHDB.API.HOST}' macro. You can also change the port in the '{$COCKROACHDB.API.PORT}' macro and the scheme in the '{$COCKROACHDB.API.SCHEME}' macro if necessary. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Databases + items: + - uuid: 90f7e9b6d22e4c30990f06f0320056d3 + name: 'CA certificate expiration date' + type: DEPENDENT + key: cockroachdb.cert.expire_date.ca + delay: '0' + value_type: FLOAT + trends: '0' + units: unixtime + description: 'CA certificate expires at that date.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - security_certificate_expiration_ca + - value + - '' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: ca-certificate + triggers: + - uuid: 76a2093eb0214185ab8e03986f3f1474 + expression: '(last(/CockroachDB by HTTP/cockroachdb.cert.expire_date.ca) - now()) / 86400 < {$COCKROACHDB.CERT.CA.EXPIRY.WARN}' + name: 'CockroachDB: CA certificate expires soon' + event_name: 'CockroachDB: CA certificate expires soon (less than {$COCKROACHDB.CERT.CA.EXPIRY.WARN} days)' + priority: WARNING + description: 'CA certificate expires soon.' + tags: + - tag: scope + value: notice + - uuid: 0328c188d5954ae48dcc0649c9c01f52 + name: 'Node certificate expiration date' + type: DEPENDENT + key: cockroachdb.cert.expire_date.node + delay: '0' + value_type: FLOAT + trends: '0' + units: unixtime + description: 'Node certificate expires at that date.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - security_certificate_expiration_node + - value + - '' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: node-certificate + triggers: + - uuid: 592152fe1dde4e81abd4bee76c3dae9d + expression: '(last(/CockroachDB by HTTP/cockroachdb.cert.expire_date.node) - now()) / 86400 < {$COCKROACHDB.CERT.NODE.EXPIRY.WARN}' + name: 'CockroachDB: Node certificate expires soon' + event_name: 'CockroachDB: Node certificate expires soon (less than {$COCKROACHDB.CERT.NODE.EXPIRY.WARN} days)' + priority: WARNING + description: 'Node certificate expires soon.' + tags: + - tag: scope + value: notice + - uuid: 156d0c66c25a4938b87bd4527580cfd4 + name: 'Clock offset' + type: DEPENDENT + key: cockroachdb.clock.offset + delay: '0' + value_type: FLOAT + units: s + description: 'Mean clock offset of the node against the rest of the cluster.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - clock_offset_meannanos + - value + - '' + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: system + triggers: + - uuid: bddc5c6ac7294bb4be9ed8a4f4d4f4a9 + expression: 'min(/CockroachDB by HTTP/cockroachdb.clock.offset,5m) > {$COCKROACHDB.CLOCK.OFFSET.MAX.WARN} * 0.001' + name: 'CockroachDB: Clock offset is too high' + event_name: 'CockroachDB: Clock offset is too high (over {$COCKROACHDB.CLOCK.OFFSET.MAX.WARN}ms for 5m)' + priority: WARNING + description: 'Cockroach-measured clock offset is nearing limit (by default, servers kill themselves at 400ms from the mean).' + tags: + - tag: scope + value: health + - uuid: 7b6ef56741c14222bef3d40af3bb6b44 + name: 'CPU: System time' + type: DEPENDENT + key: cockroachdb.cpu.system_time + delay: '0' + value_type: FLOAT + units: s + description: 'System CPU time.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_cpu_sys_ns + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: cpu + - uuid: 42008c218c0b4049a4e94daf40754dd7 + name: 'CPU: User time' + type: DEPENDENT + key: cockroachdb.cpu.user_time + delay: '0' + value_type: FLOAT + units: s + description: 'User CPU time.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_cpu_user_ns + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: cpu + - uuid: b13dceebd399415f868c3f1ce68ee46a + name: 'CPU: Utilization' + type: DEPENDENT + key: cockroachdb.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU utilization expressed in %.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_cpu_combined_percent_normalized + - value + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: cpu + - uuid: e186df881d6e40ac966e23341b2dbd36 + name: 'File descriptors: Limit' + type: DEPENDENT + key: cockroachdb.descriptors.limit + delay: '0' + value_type: FLOAT + description: 'Open file descriptors soft limit of the process.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_fd_softlimit + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: e21fd3d697294d0f93b504ba57e7552e + name: 'File descriptors: Open' + type: DEPENDENT + key: cockroachdb.descriptors.open + delay: '0' + value_type: FLOAT + description: 'The number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_fd_open + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: 4525de4ee6994c34af6ea3444295bd58 + name: 'Disk: IOPS in progress, rate' + type: DEPENDENT + key: cockroachdb.disk.iops.in_progress.rate + delay: '0' + value_type: FLOAT + description: 'Number of disk IO operations currently in progress on this host.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_host_disk_iopsinprogress + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: 1240655e000643c98694a5efbb0582d0 + name: 'Disk: Read IOPS, rate' + type: DEPENDENT + key: cockroachdb.disk.iops.read.rate + delay: '0' + value_type: FLOAT + description: 'Number of disk read operations per second across all disks since this process started.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_host_disk_read_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: cfa381c7317d479ea5e24b0a3ac9de6a + name: 'Disk: Write IOPS, rate' + type: DEPENDENT + key: cockroachdb.disk.iops.write.rate + delay: '0' + value_type: FLOAT + description: 'Disk write operations per second across all disks since this process started.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_host_disk_write_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: e226b55a125d4360b853690dbd0d9b63 + name: 'Disk: Reads, rate' + type: DEPENDENT + key: cockroachdb.disk.read.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes read from all disks per second since this process started' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_host_disk_read_bytes + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: 327d62286a5c40d49690b89b12350c31 + name: 'Disk: Writes, rate' + type: DEPENDENT + key: cockroachdb.disk.write.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes written to all disks per second since this process started.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_host_disk_write_bytes + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: 8092c82f81824a168328a438d85a0a93 + name: 'GC: Pause time' + type: DEPENDENT + key: cockroachdb.gc.pause_time + delay: '0' + value_type: FLOAT + units: s + description: 'The amount of processor time used by Go''s garbage collector across all nodes. During garbage collection, application code execution is paused.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_gc_pause_ns + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: gc + - uuid: 72298c0f0a00460e85562d13e3baf4b0 + name: 'GC: Runs, rate' + type: DEPENDENT + key: cockroachdb.gc.runs.rate + delay: '0' + value_type: FLOAT + description: 'The number of times that Go''s garbage collector was invoked per second across all nodes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_gc_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: gc + - uuid: a8cd030e869b4d788126ee5fa35d3403 + name: 'Get health' + type: HTTP_AGENT + key: cockroachdb.get_health + description: 'Get node /health endpoint' + valuemap: + name: 'Node health' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: REGEX + parameters: + - 'HTTP.*\s(\d+)' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + timeout: 15s + url: '{$COCKROACHDB.API.SCHEME}://{$COCKROACHDB.API.HOST}:{$COCKROACHDB.API.PORT}/health' + status_codes: '200,500' + retrieve_mode: HEADERS + tags: + - tag: component + value: health + triggers: + - uuid: 6ccd74acda004a738c3003af4526cd91 + expression: 'last(/CockroachDB by HTTP/cockroachdb.get_health) = 500' + name: 'CockroachDB: Node is unhealthy' + priority: AVERAGE + description: 'Node''s /health endpoint has returned HTTP 500 Internal Server Error which indicates unhealthy mode.' + dependencies: + - name: 'CockroachDB: Service is down' + expression: 'last(/CockroachDB by HTTP/net.tcp.service["{$COCKROACHDB.API.SCHEME}","{$COCKROACHDB.API.HOST}","{$COCKROACHDB.API.PORT}"]) = 0' + tags: + - tag: scope + value: health + - uuid: 926415babea74e2f951a0420bbdf1d8d + name: 'Get metrics' + type: HTTP_AGENT + key: cockroachdb.get_metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get raw metrics from the Prometheus endpoint.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + url: '{$COCKROACHDB.API.SCHEME}://{$COCKROACHDB.API.HOST}:{$COCKROACHDB.API.PORT}/_status/vars' + tags: + - tag: component + value: raw + - uuid: 3e5e18e02b1b4f8d8f17c2e7d993169c + name: 'Get readiness' + type: HTTP_AGENT + key: cockroachdb.get_readiness + description: 'Get node /health?ready=1 endpoint' + valuemap: + name: 'Node readiness' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: REGEX + parameters: + - 'HTTP.*\s(\d+)' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + timeout: 15s + url: '{$COCKROACHDB.API.SCHEME}://{$COCKROACHDB.API.HOST}:{$COCKROACHDB.API.PORT}/health?ready=1' + status_codes: '200,503' + retrieve_mode: HEADERS + tags: + - tag: component + value: health + - uuid: a36bcb9217054c1db2e67c8533842d01 + name: 'Go: Goroutines count' + type: DEPENDENT + key: cockroachdb.go.goroutines.count + delay: '0' + value_type: FLOAT + description: 'Current number of Goroutines. This count should rise and fall based on load.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_goroutines + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: go + - uuid: 9dcb023ceacb4023897af11b96592d6b + name: 'Liveness heartbeats, rate' + type: DEPENDENT + key: cockroachdb.heartbeaths.success.rate + delay: '0' + description: 'Number of successful node liveness heartbeats per second from this node.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - liveness_heartbeatsuccesses + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: liveness + - uuid: 1a01d2c75d934f489e171a3a147a2078 + name: 'KV transactions: Aborted, rate' + type: DEPENDENT + key: cockroachdb.kv.transactions.aborted.rate + delay: '0' + value_type: FLOAT + description: 'Number of aborted KV transactions per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - txn_aborts + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: kv + - uuid: be9c377ac5a64579a3b849bbd28e4dc7 + name: 'KV transactions: Committed, rate' + type: DEPENDENT + key: cockroachdb.kv.transactions.committed.rate + delay: '0' + value_type: FLOAT + description: 'Number of KV transactions (including 1PC) committed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - txn_commits + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: kv + - uuid: 872eaa89c9e34c358f60b845316a22c0 + name: 'Live nodes count' + type: DEPENDENT + key: cockroachdb.live_count + delay: '0' + description: 'The number of live nodes in the cluster (will be 0 if this node is not itself live).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - liveness_livenodes + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: liveness + - uuid: 5a8bf48e85b845bf83346491ccf5cfac + name: 'Memory: Allocated by Cgo' + type: DEPENDENT + key: cockroachdb.memory.cgo.allocated + delay: '0' + value_type: FLOAT + units: B + description: 'Current bytes of memory allocated by the C layer.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_cgo_allocbytes + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: cgo + - tag: component + value: memory + - uuid: 07dc780b07ee4a34abd9bc658416f507 + name: 'Memory: Managed by Cgo' + type: DEPENDENT + key: cockroachdb.memory.cgo.managed + delay: '0' + value_type: FLOAT + units: B + description: 'Total bytes of memory managed by the C layer.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_cgo_totalbytes + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: cgo + - tag: component + value: memory + - uuid: af45fdeea2ff4b7ba2d488b704966f16 + name: 'Memory: Allocated by Go' + type: DEPENDENT + key: cockroachdb.memory.go.allocated + delay: '0' + value_type: FLOAT + units: B + description: 'Current bytes of memory allocated by the Go layer.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_go_allocbytes + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: go + - tag: component + value: memory + - uuid: 74669e09ce86441d877de519c86b3f83 + name: 'Memory: Managed by Go' + type: DEPENDENT + key: cockroachdb.memory.go.managed + delay: '0' + value_type: FLOAT + units: B + description: 'Total bytes of memory managed by the Go layer.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_go_totalbytes + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: go + - tag: component + value: memory + - uuid: 14524b3f8c5f4d509d15063af19c9569 + name: 'Memory: Allocated by SQL' + type: DEPENDENT + key: cockroachdb.memory.sql + delay: '0' + value_type: FLOAT + units: B + description: 'Current SQL statement memory usage for root.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_mem_root_current + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: memory + - tag: component + value: sql + - uuid: c10b66dd872145528540e90ad3198b81 + name: 'Memory: Total usage' + type: DEPENDENT + key: cockroachdb.memory.total + delay: '0' + value_type: FLOAT + units: B + description: 'Resident set size (RSS) of memory in use by the node.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_rss + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: memory + - uuid: aee505389afb4fb0a4a7d8b8dd58fe76 + name: 'Network: Bytes received, rate' + type: DEPENDENT + key: cockroachdb.network.bytes.received.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes received per second on all network interfaces since this process started.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_host_net_recv_bytes + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: network + - uuid: 9b04fac1a84e40aa833366fda679a3e3 + name: 'Network: Bytes sent, rate' + type: DEPENDENT + key: cockroachdb.network.bytes.sent.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes sent per second on all network interfaces since this process started.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_host_net_send_bytes + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: network + - uuid: 717ef9bbc00c46a09b28811910c4163a + name: 'Slow requests: DistSender RPCs' + type: DEPENDENT + key: cockroachdb.slow_requests.rpc + delay: '0' + value_type: FLOAT + description: 'Number of RPCs stuck or retrying for a long time.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - requests_slow_distsender + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: requests + - uuid: dafcd171e5eb4a56ac6537cb4ae15071 + name: 'SQL: Bytes received, rate' + type: DEPENDENT + key: cockroachdb.sql.bytes.received.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Total amount of incoming SQL client network traffic in bytes per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_bytesin + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: 2795f530365d4f80866926f49a3841df + name: 'SQL: Bytes sent, rate' + type: DEPENDENT + key: cockroachdb.sql.bytes.sent.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Total amount of outgoing SQL client network traffic in bytes per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_bytesout + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: 655018f6a2b7480a883c08ffd8c3c5e7 + name: 'SQL: Schema changes, rate' + type: DEPENDENT + key: cockroachdb.sql.schema_changes.rate + delay: '0' + value_type: FLOAT + description: 'Total number of SQL DDL statements successfully executed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_ddl_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: 79ed7dc3660a44cc8f30822e992154b6 + name: 'SQL sessions: Open' + type: DEPENDENT + key: cockroachdb.sql.sessions + delay: '0' + value_type: FLOAT + description: 'Total number of open SQL sessions.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_conns + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: d4164a9763b34976ba8f89a49e9aaf25 + name: 'SQL statements: Active' + type: DEPENDENT + key: cockroachdb.sql.statements.active + delay: '0' + value_type: FLOAT + description: 'Total number of SQL statements currently active.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_distsql_queries_active + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: bcae7af870ed48dc919be3dbd63df1ba + name: 'SQL statements: Contention, rate' + type: DEPENDENT + key: cockroachdb.sql.statements.contention.rate + delay: '0' + value_type: FLOAT + description: 'Total number of SQL statements that experienced contention per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_distsql_contended_queries_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: 80b08a576e334963a17e37a5c2305214 + name: 'SQL statements: DELETE, rate' + type: DEPENDENT + key: cockroachdb.sql.statements.delete.rate + delay: '0' + value_type: FLOAT + description: 'A moving average of the number of DELETE statements successfully executed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_delete_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: 68532afbcda644f1928203c013335f2a + name: 'SQL statements: Denials, rate' + type: DEPENDENT + key: cockroachdb.sql.statements.denials.rate + delay: '0' + value_type: FLOAT + description: 'The number of statements denied per second by a feature flag.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_feature_flag_denial + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: dc93958dabdc439f8a7ad9c5a12fddcd + name: 'SQL statements: Errors, rate' + type: DEPENDENT + key: cockroachdb.sql.statements.errors.rate + delay: '0' + value_type: FLOAT + description: 'Total number of statements which returned a planning or runtime error per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_failure_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + triggers: + - uuid: 7307fc4f2c29438e99eea0256a8755ce + expression: 'min(/CockroachDB by HTTP/cockroachdb.sql.statements.errors.rate,5m) > {$COCKROACHDB.STATEMENTS.ERRORS.MAX.WARN}' + name: 'CockroachDB: SQL statements errors rate is too high' + event_name: 'CockroachDB: SQL statements errors rate is too high (over {$COCKROACHDB.STATEMENTS.ERRORS.MAX.WARN} per second for 5m)' + priority: WARNING + tags: + - tag: scope + value: health + - uuid: 3c9fb90492e44789ba9a899d03546b6d + name: 'SQL statements: Executed, rate' + type: DEPENDENT + key: cockroachdb.sql.statements.executed.rate + delay: '0' + value_type: FLOAT + description: 'Number of SQL queries executed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_query_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: ae83868ea1194089a65b9c3bfb81ef27 + name: 'SQL statements: Active flows distributed, rate' + type: DEPENDENT + key: cockroachdb.sql.statements.flows.active.rate + delay: '0' + value_type: FLOAT + description: 'The number of distributed SQL flows currently active per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_distsql_flows_active + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: b9c72429c3264119af27e3b4d1c7486a + name: 'SQL statements: INSERT, rate' + type: DEPENDENT + key: cockroachdb.sql.statements.insert.rate + delay: '0' + value_type: FLOAT + description: 'A moving average of the number of INSERT statements successfully executed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_insert_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: d6fc464f4e784569911880f52020d08d + name: 'SQL statements: SELECT, rate' + type: DEPENDENT + key: cockroachdb.sql.statements.select.rate + delay: '0' + value_type: FLOAT + description: 'A moving average of the number of SELECT statements successfully executed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_select_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: 8832cd69551a4ad084c283fb076a17b6 + name: 'SQL statements: UPDATE, rate' + type: DEPENDENT + key: cockroachdb.sql.statements.update.rate + delay: '0' + value_type: FLOAT + description: 'A moving average of the number of UPDATE statements successfully executed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_update_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: 6e2f06b2b71f447aae06940b205e22bf + name: 'SQL transactions: Aborted, rate' + type: DEPENDENT + key: cockroachdb.sql.transactions.aborted.rate + delay: '0' + value_type: FLOAT + description: 'Total number of SQL transaction abort errors per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_txn_abort_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: d32b3f22158f4091926ebf9746439da3 + name: 'SQL transactions: Committed, rate' + type: DEPENDENT + key: cockroachdb.sql.transactions.committed.rate + delay: '0' + value_type: FLOAT + description: 'Total number of SQL transaction COMMIT statements successfully executed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_txn_commit_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: ca529d30b36e4bf591c8b5e313f9bbc0 + name: 'SQL transactions: Initiated, rate' + type: DEPENDENT + key: cockroachdb.sql.transactions.initiated.rate + delay: '0' + value_type: FLOAT + description: 'Total number of SQL transaction BEGIN statements successfully executed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_txn_begin_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: 6490aac99d654eebae14cedb935c8d9f + name: 'SQL transactions: Open' + type: DEPENDENT + key: cockroachdb.sql.transactions.open + delay: '0' + value_type: FLOAT + description: 'Total number of currently open SQL transactions.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_txns_open + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: 07274667c22d4e52b50ead17c864ae36 + name: 'SQL transactions: Rolled back, rate' + type: DEPENDENT + key: cockroachdb.sql.transactions.rollbacks.rate + delay: '0' + value_type: FLOAT + description: 'Total number of SQL transaction ROLLBACK statements successfully executed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sql_txn_rollback_count + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: sql + - uuid: 5b96333392ac4e678204d048b4940135 + name: 'Time series: Sample errors, rate' + type: DEPENDENT + key: cockroachdb.ts.samples.errors.rate + delay: '0' + value_type: FLOAT + description: 'The number of errors encountered while attempting to write metrics to disk, per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - timeseries_write_errors + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: timeseries + - uuid: 444fbc4df9c64e92bd3f41022539a940 + name: 'Time series: Samples written, rate' + type: DEPENDENT + key: cockroachdb.ts.samples.written.rate + delay: '0' + value_type: FLOAT + description: 'The number of successfully written metric samples per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - timeseries_write_samples + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: timeseries + - uuid: b200e1f665ad425394e631b2844a1fdb + name: Uptime + type: DEPENDENT + key: cockroachdb.uptime + delay: '0' + value_type: FLOAT + units: s + description: 'Process uptime.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - sys_uptime + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: system + triggers: + - uuid: 90f6cccaf3d94a3d853641482ccb5254 + expression: 'nodata(/CockroachDB by HTTP/cockroachdb.uptime,5m) = 1' + name: 'CockroachDB: Failed to fetch node data' + event_name: 'CockroachDB: Failed to fetch node data (or no data for 5m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 5 minutes.' + dependencies: + - name: 'CockroachDB: Service is down' + expression: 'last(/CockroachDB by HTTP/net.tcp.service["{$COCKROACHDB.API.SCHEME}","{$COCKROACHDB.API.HOST}","{$COCKROACHDB.API.PORT}"]) = 0' + tags: + - tag: scope + value: availability + - uuid: 83802e38f1414ca9b40e2d2df2d94941 + expression: 'last(/CockroachDB by HTTP/cockroachdb.uptime) < 10m' + name: 'CockroachDB: Node has been restarted' + event_name: 'CockroachDB: Node has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: d588fc919b364889abd98537dfc80575 + name: Version + type: DEPENDENT + key: cockroachdb.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Build information.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - build_timestamp + - label + - tag + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: system + triggers: + - uuid: 620aee1613e841acb44a438b4b9b68c9 + expression: 'last(/CockroachDB by HTTP/cockroachdb.version) <> last(/CockroachDB by HTTP/cockroachdb.version,#2) and length(last(/CockroachDB by HTTP/cockroachdb.version)) > 0' + name: 'CockroachDB: Version has changed' + event_name: 'CockroachDB: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 00afa7b32af9499c89e939c96e0e29d1 + name: 'Service ping' + type: SIMPLE + key: 'net.tcp.service["{$COCKROACHDB.API.SCHEME}","{$COCKROACHDB.API.HOST}","{$COCKROACHDB.API.PORT}"]' + description: 'Check if HTTP/HTTPS service accepts TCP connections.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d3c0d0a9e1f44c95a2246ab7081f581b + expression: 'last(/CockroachDB by HTTP/net.tcp.service["{$COCKROACHDB.API.SCHEME}","{$COCKROACHDB.API.HOST}","{$COCKROACHDB.API.PORT}"]) = 0' + name: 'CockroachDB: Service is down' + priority: AVERAGE + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c201ddd6c35c4d67a05b9a99952f54f2 + name: 'Storage metrics discovery' + type: DEPENDENT + key: cockroachdb.store.discovery + delay: '0' + description: 'Discover per store metrics.' + item_prototypes: + - uuid: a12e4937d2c44eacada535774e74653a + name: 'Storage [{#STORE}]: Queue processing failures: Consistency, rate' + type: DEPENDENT + key: 'cockroachdb.queue.processing_failures.consistency.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Number of replicas which failed processing in the consistency checker queue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'queue_consistency_process_failure{store="{#STORE}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: queues + - uuid: 5d328a66855d4cbba099713befd4d240 + name: 'Storage [{#STORE}]: Queue processing failures: GC, rate' + type: DEPENDENT + key: 'cockroachdb.queue.processing_failures.gc.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Number of replicas which failed processing in the GC queue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'queue_gc_process_failure{store="{#STORE}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: queues + - uuid: b71cc221443b42888d64dea02e75d3f9 + name: 'Storage [{#STORE}]: Queue processing failures: Replica GC, rate' + type: DEPENDENT + key: 'cockroachdb.queue.processing_failures.gc_replica.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Number of replicas which failed processing in the replica GC queue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'queue_replicagc_process_failure{store="{#STORE}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: queues + - uuid: eabbf198e158428aaf9b15f491dd0895 + name: 'Storage [{#STORE}]: Queue processing failures: Raft log, rate' + type: DEPENDENT + key: 'cockroachdb.queue.processing_failures.raftlog.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Number of replicas which failed processing in the Raft log queue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'queue_raftlog_process_failure{store="{#STORE}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: queues + - uuid: 2369ad2e98c84d2a83b64f3b1fce826e + name: 'Storage [{#STORE}]: Queue processing failures: Raft snapshot, rate' + type: DEPENDENT + key: 'cockroachdb.queue.processing_failures.raftsnapshot.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Number of replicas which failed processing in the Raft repair queue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'queue_raftsnapshot_process_failure{store="{#STORE}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: queues + - uuid: 604df422fb084fba8480758e30fc81f3 + name: 'Storage [{#STORE}]: Queue processing failures: Replicate, rate' + type: DEPENDENT + key: 'cockroachdb.queue.processing_failures.replicate.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Number of replicas which failed processing in the replicate queue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'queue_replicate_process_failure{store="{#STORE}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: queues + - uuid: 40e94d8e2cc54c7b9c0a6c4d7c8dc308 + name: 'Storage [{#STORE}]: Queue processing failures: Split, rate' + type: DEPENDENT + key: 'cockroachdb.queue.processing_failures.split.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Number of replicas which failed processing in the split queue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'queue_split_process_failure{store="{#STORE}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: queues + - uuid: ceb47605bc364044993e59430f37a07c + name: 'Storage [{#STORE}]: Queue processing failures: Time series maintenance, rate' + type: DEPENDENT + key: 'cockroachdb.queue.processing_failures.tsmaintenance.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Number of replicas which failed processing in the time series maintenance queue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'queue_tsmaintenance_process_failure{store="{#STORE}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: queues + - uuid: 4ed616f13c9d4669879aa8bdad35a06a + name: 'Storage [{#STORE}]: Ranges count' + type: DEPENDENT + key: 'cockroachdb.ranges.[{#STORE},count]' + delay: '0' + value_type: FLOAT + description: 'Number of ranges.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'ranges{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: ranges + - uuid: 63e70400900a4b5caa8e89a18c83ebd7 + name: 'Storage [{#STORE}]: Ranges unavailable' + type: DEPENDENT + key: 'cockroachdb.ranges.[{#STORE},unavailable]' + delay: '0' + value_type: FLOAT + description: 'Number of ranges with fewer live replicas than needed for quorum.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'ranges_unavailable{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: ranges + - uuid: beea6adf48df454fa6628d44455ca52f + name: 'Storage [{#STORE}]: Ranges underreplicated' + type: DEPENDENT + key: 'cockroachdb.ranges.[{#STORE},underreplicated]' + delay: '0' + value_type: FLOAT + description: 'Number of ranges with fewer live replicas than the replication target.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'ranges_underreplicated{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: ranges + - uuid: d0b45b5a00d64c39bce2117fdb35d373 + name: 'Storage [{#STORE}]: Rebalancing: Average queries, rate' + type: DEPENDENT + key: 'cockroachdb.rebalancing.queries.average.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Number of kv-level requests received per second by the store, averaged over a large time period as used in rebalancing decisions.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rebalancing_queriespersecond{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: rebalancing + - uuid: b5c10de1a784458f9df54813cc10c32b + name: 'Storage [{#STORE}]: Rebalancing: Average writes, rate' + type: DEPENDENT + key: 'cockroachdb.rebalancing.writes.average.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Number of keys written (i.e. applied by raft) per second to the store, averaged over a large time period as used in rebalancing decisions.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rebalancing_writespersecond{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: rebalancing + - uuid: 191985a08c554160bc371f5fca638336 + name: 'Storage [{#STORE}]: Replication: Replicas' + type: DEPENDENT + key: 'cockroachdb.replication.replicas.[{#STORE},count]' + delay: '0' + value_type: FLOAT + description: 'Number of replicas.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'replicas{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: replication + - uuid: 089c354ee1c547808bbf8655d16d1a06 + name: 'Storage [{#STORE}]: Replication: Replicas quiesced' + type: DEPENDENT + key: 'cockroachdb.replication.replicas.[{#STORE},quiesced]' + delay: '0' + value_type: FLOAT + description: 'Number of quiesced replicas.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'replicas_quiescent{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: replication + - uuid: 87f949f768b54ba1b648a04d86f4c4da + name: 'Storage [{#STORE}]: Replication: Lease holders' + type: DEPENDENT + key: 'cockroachdb.replication.[{#STORE},lease_holders]' + delay: '0' + value_type: FLOAT + description: 'Number of lease holders.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'replicas_leaseholders{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: replication + - uuid: eb6202583eb24ac28b60a8d5f24c1ccf + name: 'Storage [{#STORE}]: RocksDB cache hits, rate' + type: DEPENDENT + key: 'cockroachdb.rocksdb.cache.hits.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Count of block cache hits per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rocksdb_block_cache_hits{store="{#STORE}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: rocksdb + - uuid: 278d4cbcaa844f1281dd029da54300e4 + name: 'Storage [{#STORE}]: RocksDB cache misses, rate' + type: DEPENDENT + key: 'cockroachdb.rocksdb.cache.misses.[{#STORE},rate]' + delay: '0' + value_type: FLOAT + description: 'Count of block cache misses per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rocksdb_block_cache_misses{store="{#STORE}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: rocksdb + - uuid: cafdf6248d114787b2a3f9647a4afea9 + name: 'Storage [{#STORE}]: RocksDB cache hit ratio' + type: CALCULATED + key: 'cockroachdb.rocksdb.cache.[{#STORE},hit_ratio]' + value_type: FLOAT + units: '%' + params: 'last(//cockroachdb.rocksdb.cache.hits.[{#STORE},rate]) / (last(//cockroachdb.rocksdb.cache.hits.[{#STORE},rate]) + last(//cockroachdb.rocksdb.cache.misses.[{#STORE},rate])) * 100' + description: 'Block cache hit ratio in %.' + tags: + - tag: component + value: rocksdb + - uuid: f4175e8984d14ad89c0bd1fce5b37372 + name: 'Storage [{#STORE}]: RocksDB read amplification' + type: DEPENDENT + key: 'cockroachdb.rocksdb.[{#STORE},read_amp]' + delay: '0' + value_type: FLOAT + description: 'The average number of real read operations executed per logical read operation.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rocksdb_read_amplification{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: rocksdb + - uuid: edc1e5548d9e4d629b44b067ffc666b9 + name: 'Storage [{#STORE}]: RocksDB SSTables' + type: DEPENDENT + key: 'cockroachdb.rocksdb.[{#STORE},sstables]' + delay: '0' + value_type: FLOAT + description: 'The number of SSTables in use.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rocksdb_num_sstables{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: rocksdb + - uuid: 6e826e48da5844468ba8d14ae0f1acc4 + name: 'Storage [{#STORE}]: Slow requests: Latch acquisitions' + type: DEPENDENT + key: 'cockroachdb.slow_requests.[{#STORE},latch_acquisitions]' + delay: '0' + value_type: FLOAT + description: 'Number of requests that have been stuck for a long time acquiring latches.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'requests_slow_latch{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: requests + - uuid: 0cc9c428567a47c6adb41d137965a362 + name: 'Storage [{#STORE}]: Slow requests: Lease acquisitions' + type: DEPENDENT + key: 'cockroachdb.slow_requests.[{#STORE},lease_acquisitions]' + delay: '0' + value_type: FLOAT + description: 'Number of requests that have been stuck for a long time acquiring a lease.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'requests_slow_lease{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: requests + - uuid: 11c9e0dea4ec48a69ff3961aa6d1f910 + name: 'Storage [{#STORE}]: Slow requests: Raft proposals' + type: DEPENDENT + key: 'cockroachdb.slow_requests.[{#STORE},raft_proposals]' + delay: '0' + value_type: FLOAT + description: 'Number of requests that have been stuck for a long time in raft.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'requests_slow_raft{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: requests + - uuid: bbf0f281f3aa4964829ed2213db5dfc7 + name: 'Storage [{#STORE}]: Bytes: Live' + type: DEPENDENT + key: 'cockroachdb.storage.bytes.[{#STORE},live]' + delay: '0' + value_type: FLOAT + units: B + description: 'Number of logical bytes stored in live key-value pairs on this node. Live data excludes historical and deleted data.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'livebytes{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: 232970f8bf12412e8a6bd96978a7ad5f + name: 'Storage [{#STORE}]: Bytes: Logical' + type: DEPENDENT + key: 'cockroachdb.storage.bytes.[{#STORE},logical]' + delay: '0' + value_type: FLOAT + units: B + description: 'Number of logical bytes stored in key-value pairs on this node. This includes historical and deleted data.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'totalbytes{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: 58d6f4d3c9ff41cab05697e7c59cf8e2 + name: 'Storage [{#STORE}]: Bytes: System' + type: DEPENDENT + key: 'cockroachdb.storage.bytes.[{#STORE},system]' + delay: '0' + value_type: FLOAT + units: B + description: 'Number of physical bytes stored in system key-value pairs.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'sysbytes{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: 01c02c5a9c174cd2b958634da07824e5 + name: 'Storage [{#STORE}]: Capacity available' + type: DEPENDENT + key: 'cockroachdb.storage.capacity.[{#STORE},available]' + delay: '0' + value_type: FLOAT + units: B + description: 'Available storage capacity.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'capacity_available{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: bb07359b779d4e4080593a02c18dc8c1 + name: 'Storage [{#STORE}]: Capacity available in %' + type: CALCULATED + key: 'cockroachdb.storage.capacity.[{#STORE},available_percent]' + value_type: FLOAT + units: '%' + params: 'last(//cockroachdb.storage.capacity.[{#STORE},available]) / last(//cockroachdb.storage.capacity.[{#STORE},total]) * 100' + description: 'Available storage capacity in %.' + tags: + - tag: component + value: storage + trigger_prototypes: + - uuid: db07663014aa47a892faa2f9dbd97ec9 + expression: 'max(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) < {$COCKROACHDB.STORE.USED.MIN.CRIT}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) > {$COCKROACHDB.STORE.USED.MIN.CRIT}' + name: 'CockroachDB: Storage [{#STORE}]: Available storage capacity is critically low' + event_name: 'CockroachDB: Storage [{#STORE}]: Available storage capacity is critically low (less than {$COCKROACHDB.STORE.USED.MIN.CRIT}%)' + priority: AVERAGE + description: 'Storage is running critically low on free space (less than {$COCKROACHDB.STORE.USED.MIN.CRIT}% available).' + tags: + - tag: scope + value: capacity + - uuid: a58b694f4cf642228ec0633f0efb04a7 + expression: 'max(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) < {$COCKROACHDB.STORE.USED.MIN.WARN}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) > {$COCKROACHDB.STORE.USED.MIN.WARN}' + name: 'CockroachDB: Storage [{#STORE}]: Available storage capacity is low' + event_name: 'CockroachDB: Storage [{#STORE}]: Available storage capacity is low (less than {$COCKROACHDB.STORE.USED.MIN.WARN}%)' + priority: WARNING + description: 'Storage is running low on free space (less than {$COCKROACHDB.STORE.USED.MIN.WARN}% available).' + dependencies: + - name: 'CockroachDB: Storage [{#STORE}]: Available storage capacity is critically low' + expression: 'max(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) < {$COCKROACHDB.STORE.USED.MIN.CRIT}' + recovery_expression: 'min(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) > {$COCKROACHDB.STORE.USED.MIN.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: 35ce626304fb4d39bd382161cb052346 + name: 'Storage [{#STORE}]: Capacity total' + type: DEPENDENT + key: 'cockroachdb.storage.capacity.[{#STORE},total]' + delay: '0' + value_type: FLOAT + units: B + description: 'Total storage capacity. This value may be explicitly set using --store. If a store size has not been set, this metric displays the actual disk capacity.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'capacity{store="{#STORE}"}' + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + - uuid: b6db680d16bc41408d13f7275c603fca + name: 'Storage [{#STORE}]: Capacity used' + type: DEPENDENT + key: 'cockroachdb.storage.capacity.[{#STORE},used]' + delay: '0' + value_type: FLOAT + units: B + description: 'Disk space in use by CockroachDB data on this node. This excludes the Cockroach binary, operating system, and other system files.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'capacity_used{store="{#STORE}"}' + - value + - '' + master_item: + key: cockroachdb.get_metrics + tags: + - tag: component + value: storage + graph_prototypes: + - uuid: 4cd837e243f14174a6d259b359e4f90d + name: 'CockroachDB: Storage [{#STORE}]: Bytes' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.storage.bytes.[{#STORE},live]' + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.storage.bytes.[{#STORE},system]' + - uuid: f5054466f5834071ad9e3bd50764ba29 + name: 'CockroachDB: Storage [{#STORE}]: Capacity' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.storage.capacity.[{#STORE},total]' + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.storage.capacity.[{#STORE},available]' + - sortorder: '2' + color: 00611C + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.storage.capacity.[{#STORE},used]' + - uuid: e6763dafd3c54e0787eae612921e35f8 + name: 'CockroachDB: Storage [{#STORE}]: Queue processing failures' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.queue.processing_failures.consistency.[{#STORE},rate]' + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.queue.processing_failures.gc.[{#STORE},rate]' + - sortorder: '2' + color: 00611C + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.queue.processing_failures.raftlog.[{#STORE},rate]' + - sortorder: '3' + color: F7941D + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.queue.processing_failures.raftsnapshot.[{#STORE},rate]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.queue.processing_failures.gc_replica.[{#STORE},rate]' + - sortorder: '5' + color: 6C59DC + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.queue.processing_failures.replicate.[{#STORE},rate]' + - sortorder: '6' + color: C7A72D + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.queue.processing_failures.split.[{#STORE},rate]' + - sortorder: '7' + color: BA2A5D + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.queue.processing_failures.tsmaintenance.[{#STORE},rate]' + - uuid: 0c4977666e5e4af1b5e1f840284fe7d0 + name: 'CockroachDB: Storage [{#STORE}]: Ranges' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.ranges.[{#STORE},count]' + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.replication.[{#STORE},lease_holders]' + - sortorder: '2' + color: 00611C + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.ranges.[{#STORE},unavailable]' + - sortorder: '3' + color: F7941D + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.ranges.[{#STORE},underreplicated]' + - uuid: 811d38ab09494628ae6ac36aa54c1795 + name: 'CockroachDB: Storage [{#STORE}]: Replica quiescence' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.replication.replicas.[{#STORE},count]' + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.replication.replicas.[{#STORE},quiesced]' + master_item: + key: cockroachdb.get_metrics + lld_macro_paths: + - lld_macro: '{#STORE}' + path: $.labels.store + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: database + - tag: target + value: cockroachdb + macros: + - macro: '{$COCKROACHDB.API.HOST}' + value: '' + description: 'The hostname or IP address of the CockroachDB host.' + - macro: '{$COCKROACHDB.API.PORT}' + value: '8080' + description: 'The port of CockroachDB API and Prometheus endpoint.' + - macro: '{$COCKROACHDB.API.SCHEME}' + value: http + description: 'Request scheme which may be http or https.' + - macro: '{$COCKROACHDB.CERT.CA.EXPIRY.WARN}' + value: '90' + description: 'Number of days until the CA certificate expires.' + - macro: '{$COCKROACHDB.CERT.NODE.EXPIRY.WARN}' + value: '30' + description: 'Number of days until the node certificate expires.' + - macro: '{$COCKROACHDB.CLOCK.OFFSET.MAX.WARN}' + value: '300' + description: 'Maximum clock offset of the node against the rest of the cluster in milliseconds for trigger expression.' + - macro: '{$COCKROACHDB.OPEN.FDS.MAX.WARN}' + value: '80' + description: 'Maximum percentage of used file descriptors.' + - macro: '{$COCKROACHDB.STATEMENTS.ERRORS.MAX.WARN}' + value: '2' + description: 'Maximum number of SQL statements errors for trigger expression.' + - macro: '{$COCKROACHDB.STORE.USED.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the available disk space in percent.' + - macro: '{$COCKROACHDB.STORE.USED.MIN.WARN}' + value: '20' + description: 'The warning threshold of the available disk space in percent.' + dashboards: + - uuid: fda49a1847d34b84be2fe5d9d12b8444 + name: Hardware + pages: + - name: Hardware + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.cpu.util + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Memory usage' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Storage [{#STORE}]: Capacity' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Disk: r/w, rate' + - type: STRING + name: reference + value: AAAAD + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Disk: r/w IOPS, rate' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '25' + width: '72' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.disk.iops.in_progress.rate + - type: STRING + name: reference + value: AAAAF + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '30' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Network traffic' + - type: STRING + name: reference + value: AAAAG + - uuid: 41dce007bcf54762ad321ac944a8b63e + name: Replication + pages: + - name: Replication + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Storage [{#STORE}]: Ranges' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.replication.[{#STORE},lease_holders]' + - type: STRING + name: reference + value: AAAAI + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.rebalancing.queries.average.[{#STORE},rate]' + - type: STRING + name: reference + value: AAAAJ + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Storage [{#STORE}]: Replica quiescence' + - type: STRING + name: reference + value: AAAAK + - uuid: 0d9a3feb76ad403dac7379dbe04298f0 + name: Runtime + pages: + - name: Runtime + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.live_count + - type: STRING + name: reference + value: AAAAL + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Memory usage' + - type: STRING + name: reference + value: AAAAM + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.go.goroutines.count + - type: STRING + name: reference + value: AAAAN + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.gc.runs.rate + - type: STRING + name: reference + value: AAAAO + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.gc.pause_time + - type: STRING + name: reference + value: AAAAP + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '25' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: CPU Time' + - type: STRING + name: reference + value: AAAAQ + - type: graph + 'y': '30' + width: '72' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.clock.offset + - type: STRING + name: reference + value: AAAAR + - type: INTEGER + name: source_type + value: '1' + - uuid: ac89b176f2c34fc1b885ee1ed43df590 + name: 'Slow requests' + pages: + - name: 'Slow requests' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.slow_requests.[{#STORE},raft_proposals]' + - type: STRING + name: reference + value: AAAAS + - type: INTEGER + name: source_type + value: '3' + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.slow_requests.rpc + - type: STRING + name: reference + value: AAAAT + - type: INTEGER + name: source_type + value: '1' + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.slow_requests.[{#STORE},lease_acquisitions]' + - type: STRING + name: reference + value: AAAAU + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.slow_requests.[{#STORE},latch_acquisitions]' + - type: STRING + name: reference + value: AAAAV + - type: INTEGER + name: source_type + value: '3' + - uuid: b1086a92f1b54c45be99efd996b33457 + name: SQL + pages: + - name: SQL + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.sessions + - type: STRING + name: reference + value: AAAAW + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.statements.active + - type: STRING + name: reference + value: AAAAY + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: SQL statements' + - type: STRING + name: reference + value: AAABA + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.statements.contention.rate + - type: STRING + name: reference + value: AAABC + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: SQL transactions' + - type: STRING + name: reference + value: AAABE + - type: graph + 'y': '25' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.memory.sql + - type: STRING + name: reference + value: AAABF + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '30' + width: '72' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.statements.denials.rate + - type: STRING + name: reference + value: AAABH + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.transactions.open + - type: STRING + name: reference + value: AAAAX + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: SQL: Traffic' + - type: STRING + name: reference + value: AAAAZ + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.statements.errors.rate + - type: STRING + name: reference + value: AAABB + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.statements.flows.active.rate + - type: STRING + name: reference + value: AAABD + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '25' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.schema_changes.rate + - type: STRING + name: reference + value: AAABG + - type: INTEGER + name: source_type + value: '1' + - uuid: aa41ca45023c4d0eb126596f89f20f98 + name: Storage + pages: + - name: Storage + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Storage [{#STORE}]: Capacity' + - type: STRING + name: reference + value: AAABI + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.rocksdb.[{#STORE},read_amp]' + - type: STRING + name: reference + value: AAABK + - type: INTEGER + name: source_type + value: '3' + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: File descriptors' + - type: STRING + name: reference + value: AAABM + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Storage [{#STORE}]: Bytes' + - type: STRING + name: reference + value: AAABJ + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'CockroachDB by HTTP' + key: 'cockroachdb.rocksdb.[{#STORE},sstables]' + - type: STRING + name: reference + value: AAABL + - type: INTEGER + name: source_type + value: '3' + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'CockroachDB by HTTP' + name: 'CockroachDB: Time series' + - type: STRING + name: reference + value: AAABN + valuemaps: + - uuid: 2e7ddaadebce4b1089dcf01a91d01293 + name: 'Node health' + mappings: + - value: '200' + newvalue: Healthy + - value: '500' + newvalue: 'Not healthy' + - uuid: 705e364c9e1b44dbb3fb50a1b27a8cdb + name: 'Node readiness' + mappings: + - value: '200' + newvalue: Ready + - value: '503' + newvalue: 'Not ready' + - uuid: cc5f50f62d4a4895aa64d167f56cb99c + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 8c2035ad44ea44b2b690b086d11e8cfc + expression: 'min(/CockroachDB by HTTP/cockroachdb.descriptors.open,10m) / last(/CockroachDB by HTTP/cockroachdb.descriptors.limit) * 100 > {$COCKROACHDB.OPEN.FDS.MAX.WARN}' + name: 'CockroachDB: Current number of open files is too high' + event_name: 'CockroachDB: Current number of open files is too high (over {$COCKROACHDB.OPEN.FDS.MAX.WARN}% for 10m)' + priority: WARNING + description: 'Getting close to open file descriptor limit.' + - uuid: b099e323ec974823bfd84317b152a1fb + expression: 'last(/CockroachDB by HTTP/cockroachdb.sql.sessions) > 0 and last(/CockroachDB by HTTP/cockroachdb.sql.statements.executed.rate) = 0' + name: 'CockroachDB: Node is not executing SQL' + priority: WARNING + description: 'Node is not executing SQL despite having connections.' + tags: + - tag: scope + value: notice + - uuid: 0d2fa3b6ea434a07867b9f4d6156ea81 + expression: 'last(/CockroachDB by HTTP/cockroachdb.get_readiness) = 503 and last(/CockroachDB by HTTP/cockroachdb.uptime) > 5m' + name: 'CockroachDB: Node is not ready' + priority: AVERAGE + description: | + Node's /health?ready=1 endpoint has returned HTTP 503 Service Unavailable. Possible reasons: + - node is in the wait phase of the node shutdown sequence; + - node is unable to communicate with a majority of the other nodes in the cluster, likely because the cluster is unavailable due to too many nodes being down. + dependencies: + - name: 'CockroachDB: Service is down' + expression: 'last(/CockroachDB by HTTP/net.tcp.service["{$COCKROACHDB.API.SCHEME}","{$COCKROACHDB.API.HOST}","{$COCKROACHDB.API.PORT}"]) = 0' + tags: + - tag: scope + value: health + graphs: + - uuid: 4706e010045343cfa5a6d211ec6c0efd + name: 'CockroachDB: CPU Time' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.cpu.user_time + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.cpu.system_time + - uuid: 5d194c6e35c64bfd88a801668bc5ac49 + name: 'CockroachDB: Disk: r/w, rate' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.disk.read.rate + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.disk.write.rate + - uuid: 7808c1bcbf8b4672b5d8a7c26ec97745 + name: 'CockroachDB: Disk: r/w IOPS, rate' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.disk.iops.read.rate + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.disk.iops.write.rate + - uuid: 1206fc26b6c342b9a85b4a9ea4b1f8b5 + name: 'CockroachDB: File descriptors' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.descriptors.limit + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.descriptors.open + - uuid: 919586b301534623b16d5aadef0de5a6 + name: 'CockroachDB: KV transactions' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.kv.transactions.committed.rate + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.kv.transactions.aborted.rate + - uuid: 0bc7a266933e407c85e903cfb6b2b7c9 + name: 'CockroachDB: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.memory.total + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.memory.go.allocated + - sortorder: '2' + color: 00611C + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.memory.go.managed + - sortorder: '3' + color: F7941D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.memory.cgo.allocated + - sortorder: '4' + color: FC6EA3 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.memory.cgo.managed + - uuid: 4f02255476334f79a9373c1966a1b787 + name: 'CockroachDB: Network traffic' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.network.bytes.received.rate + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.network.bytes.sent.rate + - uuid: b6f9d3cda4a5451da3d90107960e91b7 + name: 'CockroachDB: SQL: Traffic' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.bytes.received.rate + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.bytes.sent.rate + - uuid: 76bfd0743c63481db9793e3c55181bc9 + name: 'CockroachDB: SQL statements' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.statements.update.rate + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.statements.select.rate + - sortorder: '2' + color: 00611C + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.statements.insert.rate + - sortorder: '3' + color: F7941D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.statements.delete.rate + - uuid: 53151cd0e61d487485f8d201c6881d59 + name: 'CockroachDB: SQL transactions' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.transactions.initiated.rate + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.transactions.committed.rate + - sortorder: '2' + color: 00611C + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.transactions.rollbacks.rate + - sortorder: '3' + color: F7941D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.sql.transactions.aborted.rate + - uuid: 0c313bd2041942649c1f1c441e812388 + name: 'CockroachDB: Time series' + graph_items: + - color: 199C0D + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.ts.samples.written.rate + - sortorder: '1' + color: F63100 + item: + host: 'CockroachDB by HTTP' + key: cockroachdb.ts.samples.errors.rate diff --git a/Control-M_enterprise_manager_by_HTTP.yaml b/Control-M_enterprise_manager_by_HTTP.yaml new file mode 100644 index 0000000..d0b3933 --- /dev/null +++ b/Control-M_enterprise_manager_by_HTTP.yaml @@ -0,0 +1,439 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: 24b64f6d22b446dabecc86ee3f199004 + template: 'Control-M enterprise manager by HTTP' + name: 'Control-M enterprise manager by HTTP' + description: | + This template is designed to get metrics from the Control-M Enterprise Manager using the Control-M Automation API with HTTP agent. + + This template monitors active Service Level Agreement (SLA) services, discovers Control-M servers using Low Level Discovery and also creates host prototypes for them in conjunction with the `Control-M server by HTTP` template. + + To use this template, macros `{$API.TOKEN}` and `{$API.URI.ENDPOINT}` need to be set. + + > See [Zabbix template operation](https://www.zabbix.com/documentation/7.0/manual/config/templates_out_of_the_box/http) for basic instructions. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 7d9ed576aeb045798b78414c89f3e597 + name: 'Get Control-M servers' + type: HTTP_AGENT + key: controlm.servers + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets a list of servers.' + url: '{$API.URI.ENDPOINT}/config/servers' + headers: + - name: x-api-key + value: '{$API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 2bd2c27b8dc74656a00f6d2006399388 + name: 'Get SLA services' + type: HTTP_AGENT + key: controlm.services + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets all the SLA active services.' + url: '{$API.URI.ENDPOINT}/run/services/sla' + headers: + - name: x-api-key + value: '{$API.TOKEN}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 388824178c264d51be116a693c2640de + name: 'Server discovery' + type: DEPENDENT + key: controlm.server.discovery + delay: '0' + description: 'Discovers the Control-M servers.' + host_prototypes: + - uuid: 1ade45fcbb9e407ca32542564b12f2b1 + host: '{#SERVER.NAME}' + name: 'Control-M server [{#SERVER.NAME}]' + group_links: + - group: + name: Applications + group_prototypes: + - name: 'Control-M/{#SERVER.NAME}' + templates: + - name: 'Control-M server by HTTP' + macros: + - macro: '{$SERVER.NAME}' + value: '{#SERVER.NAME}' + master_item: + key: controlm.servers + lld_macro_paths: + - lld_macro: '{#SERVER.NAME}' + path: $.name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 2h + - uuid: 567e5e0553c84ce2a9200d14dfc76593 + name: 'SLA services discovery' + type: DEPENDENT + key: controlm.services.discovery + delay: '0' + lifetime: 1d + description: 'Discovers the SLA services in the Control-M environment.' + item_prototypes: + - uuid: 9daecffe0dfd402fb7300d484c2e9b80 + name: 'Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: jobs ''completed''' + type: DEPENDENT + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',completed]' + delay: '0' + description: 'Gets the number of jobs in the state - `completed`.' + preprocessing: + - type: JSONPATH + parameters: + - $.statusByJobs.completed + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'service.stats[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'']' + tags: + - tag: component + value: service + - tag: service-metric + value: jobs-completed + - tag: service-metric + value: jobs-stats + - tag: service-name + value: '{#SERVICE.NAME}' + - uuid: 27821e573ead422b830b4f9dba5c840f + name: 'Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: jobs ''error''' + type: DEPENDENT + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',error]' + delay: '0' + description: 'Gets the number of jobs in the state - `error`.' + preprocessing: + - type: JSONPATH + parameters: + - $.statusByJobs.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'service.stats[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'']' + tags: + - tag: component + value: service + - tag: service-metric + value: jobs-error + - tag: service-metric + value: jobs-stats + - tag: service-name + value: '{#SERVICE.NAME}' + trigger_prototypes: + - uuid: c66f281b78e64c1c9c96ade1450eadbb + expression: 'last(/Control-M enterprise manager by HTTP/service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',error],#1)>0' + name: 'Control-M: Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: jobs in ''error'' state' + opdata: 'Trigger value ''{ITEM.VALUE}'', Current value ''{ITEM.LASTVALUE}''' + priority: AVERAGE + description: 'There are services present which are in the state - `error`.' + tags: + - tag: scope + value: availability + - uuid: fe58d60475bd49f2a4e3f0bfc5ae020f + name: 'Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: jobs ''executed''' + type: DEPENDENT + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',executed]' + delay: '0' + description: 'Gets the number of jobs in the state - `executed`.' + preprocessing: + - type: JSONPATH + parameters: + - $.statusByJobs.executed + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'service.stats[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'']' + tags: + - tag: component + value: service + - tag: service-metric + value: jobs-executed + - tag: service-metric + value: jobs-stats + - tag: service-name + value: '{#SERVICE.NAME}' + - uuid: 2843e6ba50584b27a66165f0accc5ed5 + name: 'Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: jobs ''waitCondition''' + type: DEPENDENT + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',waitCondition]' + delay: '0' + description: 'Gets the number of jobs in the state - `waitCondition`.' + preprocessing: + - type: JSONPATH + parameters: + - $.statusByJobs.waitCondition + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'service.stats[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'']' + tags: + - tag: component + value: service + - tag: service-metric + value: jobs-stats + - tag: service-metric + value: jobs-wait_condition + - tag: service-name + value: '{#SERVICE.NAME}' + - uuid: 409961fd6fed4f208340dfdb978a2430 + name: 'Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: jobs ''waitHost''' + type: DEPENDENT + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',waitHost]' + delay: '0' + description: 'Gets the number of jobs in the state - `waitHost`.' + preprocessing: + - type: JSONPATH + parameters: + - $.statusByJobs.waitHost + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'service.stats[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'']' + tags: + - tag: component + value: service + - tag: service-metric + value: jobs-stats + - tag: service-metric + value: jobs-wait_host + - tag: service-name + value: '{#SERVICE.NAME}' + - uuid: 6ae1bd92bd39446fbbea847088cd37e7 + name: 'Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: jobs ''waitResource''' + type: DEPENDENT + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',waitResource]' + delay: '0' + description: 'Gets the number of jobs in the state - `waitResource`.' + preprocessing: + - type: JSONPATH + parameters: + - $.statusByJobs.waitResource + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'service.stats[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'']' + tags: + - tag: component + value: service + - tag: service-metric + value: jobs-stats + - tag: service-metric + value: jobs-wait-resource + - tag: service-name + value: '{#SERVICE.NAME}' + - uuid: 0299415dfbca4ba6881a890bb9e9658c + name: 'Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: jobs ''waitWorkload''' + type: DEPENDENT + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',waitWorkload]' + delay: '0' + description: 'Gets the number of jobs in the state - `waitWorkload`.' + preprocessing: + - type: JSONPATH + parameters: + - $.statusByJobs.waitWorkload + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'service.stats[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'']' + tags: + - tag: component + value: service + - tag: service-metric + value: jobs-stats + - tag: service-metric + value: jobs-wait_workload + - tag: service-name + value: '{#SERVICE.NAME}' + - uuid: 72516fca80024f9884efb7dd652f957e + name: 'Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: stats' + type: DEPENDENT + key: 'service.stats[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'']' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the service statistics.' + preprocessing: + - type: JSONPATH + parameters: + - '$.activeServices.[?(@.serviceName == ''{#SERVICE.NAME}'')]' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$.[?(@.serviceJob == ''{#SERVICE.JOB}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: controlm.services + tags: + - tag: component + value: raw + - uuid: a3f556bfb8d04a70b0c7407cdc458703 + name: 'Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: status' + type: DEPENDENT + key: 'service.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'']' + delay: '0' + description: 'Gets the service status.' + valuemap: + name: 'Control-M service status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Not Ok', + 'Ok', + 'Completed Ok', + 'Ended Late' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'service.stats[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'']' + tags: + - tag: component + value: service + - tag: service-metric + value: status + - tag: service-name + value: '{#SERVICE.NAME}' + trigger_prototypes: + - uuid: e032410a5384441989538ff6781ef848 + expression: | + last(/Control-M enterprise manager by HTTP/service.status['{#SERVICE.NAME}','{#SERVICE.JOB}'],#1)=0 or + last(/Control-M enterprise manager by HTTP/service.status['{#SERVICE.NAME}','{#SERVICE.JOB}'],#1)=10 + name: 'Control-M: Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: status [{ITEM.VALUE}]' + priority: AVERAGE + description: 'The service has encountered an issue.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f64b017b0cf9456eb0afdf908cf2258e + expression: 'last(/Control-M enterprise manager by HTTP/service.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}''],#1)=3' + name: 'Control-M: Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: status [{ITEM.VALUE}]' + priority: WARNING + description: 'The service has finished its job late.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 53190fc52e094018926ca5351198aace + name: 'Service [{#SERVICE.NAME}, {#SERVICE.JOB}]: jobs statuses' + graph_items: + - drawtype: DASHED_LINE + color: 29235c + item: + host: 'Control-M enterprise manager by HTTP' + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',executed]' + - sortorder: '1' + drawtype: DASHED_LINE + color: 7e286e + item: + host: 'Control-M enterprise manager by HTTP' + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',waitCondition]' + - sortorder: '2' + drawtype: DASHED_LINE + color: c73464 + item: + host: 'Control-M enterprise manager by HTTP' + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',waitResource]' + - sortorder: '3' + drawtype: DASHED_LINE + color: f66343 + item: + host: 'Control-M enterprise manager by HTTP' + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',waitHost]' + - sortorder: '4' + drawtype: DASHED_LINE + color: ffa600 + item: + host: 'Control-M enterprise manager by HTTP' + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',waitWorkload]' + - sortorder: '5' + color: 00FF00 + yaxisside: RIGHT + item: + host: 'Control-M enterprise manager by HTTP' + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',completed]' + - sortorder: '6' + color: FF0000 + item: + host: 'Control-M enterprise manager by HTTP' + key: 'service.jobs.status[''{#SERVICE.NAME}'',''{#SERVICE.JOB}'',error]' + master_item: + key: controlm.services + lld_macro_paths: + - lld_macro: '{#SERVICE.JOB}' + path: $.serviceJob + - lld_macro: '{#SERVICE.NAME}' + path: $.serviceName + preprocessing: + - type: JSONPATH + parameters: + - $.activeServices + error_handler: CUSTOM_VALUE + error_handler_params: '[]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: controlm + macros: + - macro: '{$API.TOKEN}' + type: SECRET_TEXT + description: 'A token to use for API connections.' + - macro: '{$API.URI.ENDPOINT}' + value: '' + description: 'The API endpoint is a URI - for example, `https://monitored.controlm.instance:8443/automation-api`.' + valuemaps: + - uuid: 54213ae65be64878988c9145d8ae86e4 + name: 'Control-M service status' + mappings: + - value: '0' + newvalue: 'Not Ok' + - value: '1' + newvalue: Ok + - value: '2' + newvalue: 'Completed Ok' + - value: '3' + newvalue: 'Ended Late' + - value: '10' + newvalue: Unknown diff --git a/Control-M_server_by_HTTP.yaml b/Control-M_server_by_HTTP.yaml new file mode 100644 index 0000000..2a92e70 --- /dev/null +++ b/Control-M_server_by_HTTP.yaml @@ -0,0 +1,723 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: c077d6c381904e94a4df88136588b551 + template: 'Control-M server by HTTP' + name: 'Control-M server by HTTP' + description: | + This template is designed to get metrics from the Control-M server using the Control-M Automation API with HTTP agent. + + This template monitors server statistics, discovers jobs and agents using Low Level Discovery. + + To use this template, macros `{$API.TOKEN}`, `{$API.URI.ENDPOINT}`, and `{$SERVER.NAME}` need to be set. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 94e45567531543119d6e36b4463684c7 + name: 'Get agents' + type: HTTP_AGENT + key: controlm.agents + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets agents for the server.' + url: '{$API.URI.ENDPOINT}/config/server/{$SERVER.NAME}/agents' + headers: + - name: x-api-key + value: '{$API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 1f60be3e3fe543d697047ffcad7b0a7f + name: 'Get jobs' + type: HTTP_AGENT + key: controlm.jobs + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the status of jobs.' + url: '{$API.URI.ENDPOINT}/run/jobs/status' + query_fields: + - name: ctm + value: '{$SERVER.NAME}' + headers: + - name: x-api-key + value: '{$API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 7ae147724e374857a9a28b604e7af014 + name: 'Jobs statistics' + type: DEPENDENT + key: controlm.jobs.statistics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the statistics of jobs.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''returned'', ''total'']' + master_item: + key: controlm.jobs + tags: + - tag: component + value: raw + - uuid: aa085872149047f681f974e672e0c72c + name: 'Jobs returned' + type: DEPENDENT + key: controlm.jobs.statistics.returned + delay: '0' + description: 'Gets the count of returned jobs.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[0]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: controlm.jobs.statistics + tags: + - tag: component + value: job + - uuid: 8219b115bd5246b6bbb38c7a3b74dfaa + name: 'Jobs total' + type: DEPENDENT + key: controlm.jobs.statistics.total + delay: '0' + description: 'Gets the count of total jobs.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[1]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: controlm.jobs.statistics + tags: + - tag: component + value: job + - uuid: 67ca527f452b43aab2e3171e49f96194 + name: 'Get Control-M server stats' + type: HTTP_AGENT + key: controlm.server.stats + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the statistics of the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name == ''{$SERVER.NAME}'')].first()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get server stats.' + url: '{$API.URI.ENDPOINT}/config/servers' + headers: + - name: x-api-key + value: '{$API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 101afc0212e9410b8954bd1c939aea99 + name: 'Server message' + type: DEPENDENT + key: server.message + delay: '0' + value_type: TEXT + trends: '0' + description: 'Gets the metric of the server message.' + preprocessing: + - type: JSONPATH + parameters: + - $.message + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get server message.' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: controlm.server.stats + tags: + - tag: component + value: server + triggers: + - uuid: 406307967abf4218bebd9428dd8ecb8b + expression: 'last(/Control-M server by HTTP/server.message,#1)="Disconnected"' + name: 'Control-M: Server disconnected' + opdata: 'Triggered message: {ITEM.VALUE}, Current message: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The server is disconnected.' + tags: + - tag: scope + value: availability + - uuid: 1d7387fe4cd7462c81daa529b58d0e34 + expression: | + last(/Control-M server by HTTP/server.message,#1)<>"Connected" and + last(/Control-M server by HTTP/server.message,#1)<>"Disconnected" and + last(/Control-M server by HTTP/server.message,#1)<>"" + name: 'Control-M: Server error' + opdata: 'Triggered message: {ITEM.VALUE}, Current message: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The server has encountered an error.' + tags: + - tag: scope + value: availability + - uuid: b37f0aa295be421ab5e7262135930fcd + name: 'Server state' + type: DEPENDENT + key: server.state + delay: '0' + description: 'Gets the metric of the server state.' + valuemap: + name: 'Control-M server status' + preprocessing: + - type: JSONPATH + parameters: + - $.state + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get server state.' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Down', + 'Up', + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: controlm.server.stats + tags: + - tag: component + value: server + triggers: + - uuid: d9f5b1f636ec477c932159fd1c5baf16 + expression: | + last(/Control-M server by HTTP/server.state)=0 or + last(/Control-M server by HTTP/server.state)=10 + name: 'Control-M: Server is down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The server is down.' + tags: + - tag: scope + value: availability + - uuid: 2c7ba283ea2d4f2d91d0fa7d33551501 + name: 'Server version' + type: DEPENDENT + key: server.version + delay: '0' + value_type: TEXT + trends: '0' + description: 'Gets the metric of the server version.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get server version.' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: controlm.server.stats + tags: + - tag: component + value: server + triggers: + - uuid: 14cdf1016ab24e5c8b03626fac5af263 + expression: | + last(/Control-M server by HTTP/server.version,#1)<>last(/Control-M server by HTTP/server.version,#2) and + length(last(/Control-M server by HTTP/server.version))>0 + recovery_mode: NONE + name: 'Control-M: Server version has changed' + opdata: 'Old version: {ITEM.VALUE}, Current version: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The server version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 8d44e49d41d1469ba0ad6ad356b056f4 + name: 'Agent discovery' + type: DEPENDENT + key: controlm.agent.discovery + delay: '0' + description: 'Discovers agents on the server.' + item_prototypes: + - uuid: b451e6ac1f7a4b819714ee69c4833190 + name: 'Agent [{#AGENT.NAME}]: stats' + type: DEPENDENT + key: 'agent.stats[''{#AGENT.NAME}'']' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the statistics of an agent.' + preprocessing: + - type: JSONPATH + parameters: + - '$.agents.[?(@.nodeid == ''{#AGENT.NAME}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: controlm.agents + tags: + - tag: component + value: raw + - uuid: f72163e7e68d4bb4b2b8fcf3b9afd730 + name: 'Agent [{#AGENT.NAME}]: status' + type: DEPENDENT + key: 'agent.status[''{#AGENT.NAME}'']' + delay: '0' + description: 'Gets the status of an agent.' + valuemap: + name: 'Control-M agent status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Available', + 'Unavailable', + 'Disabled', + 'Disable', + 'Discovering', + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'agent.stats[''{#AGENT.NAME}'']' + tags: + - tag: agent-metric + value: status + - tag: agent-name + value: '{#AGENT.NAME}' + - tag: component + value: agent + trigger_prototypes: + - uuid: 22e12e397ad942889895590c28ce3d75 + expression: | + last(/Control-M server by HTTP/agent.status['{#AGENT.NAME}'],#1)=1 or + last(/Control-M server by HTTP/agent.status['{#AGENT.NAME}'],#1)=10 + name: 'Control-M: Agent [{#AGENT.NAME}]: status [{ITEM.VALUE}]' + priority: AVERAGE + description: 'The agent has encountered an issue.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: d7cb3729522c4e5bab9eec4341bbab08 + expression: | + last(/Control-M server by HTTP/agent.status['{#AGENT.NAME}'],#1)=2 or + last(/Control-M server by HTTP/agent.status['{#AGENT.NAME}'],#1)=3 + name: 'Control-M: Agent [{#AGENT.NAME}}: status disabled' + priority: INFO + description: 'The agent is disabled.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 98e355d74fe9449eaf28272765865434 + name: 'Agent [{#AGENT.NAME}]: version' + type: DEPENDENT + key: 'agent.version[''{#AGENT.NAME}'']' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Gets the version number of an agent.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + error_handler: CUSTOM_VALUE + error_handler_params: Unknown + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'agent.stats[''{#AGENT.NAME}'']' + tags: + - tag: agent-metric + value: version + - tag: agent-name + value: '{#AGENT.NAME}' + - tag: component + value: agent + trigger_prototypes: + - uuid: 7c494429411b4ede997a7881e52d9b46 + expression: 'last(/Control-M server by HTTP/agent.version[''{#AGENT.NAME}''],#1)="Unknown"' + name: 'Control-M: Agent [{#AGENT.NAME}]: unknown version' + priority: WARNING + description: 'The agent version is unknown.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e67a46b5c61c43e6b42a966f3d68a581 + expression: 'last(/Control-M server by HTTP/agent.version[''{#AGENT.NAME}''],#1)<>last(/Control-M server by HTTP/agent.version[''{#AGENT.NAME}''],#2)' + recovery_mode: NONE + name: 'Control-M: Agent [{#AGENT.NAME}]: version has changed' + opdata: 'Old version: {ITEM.VALUE}, Current version: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The agent version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + master_item: + key: controlm.agents + lld_macro_paths: + - lld_macro: '{#AGENT.NAME}' + path: $.nodeid + preprocessing: + - type: JSONPATH + parameters: + - $.agents + error_handler: CUSTOM_VALUE + error_handler_params: '[]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 279c680e12f6443a9b096bec45f9bce4 + name: 'Jobs discovery' + type: DEPENDENT + key: controlm.jobs.discovery + delay: '0' + lifetime: 1d + description: 'Discovers jobs on the server.' + item_prototypes: + - uuid: bbeb9ab5bcb04f8da802d1a63f098107 + name: 'Job [{#JOB.ID}]: held status' + type: DEPENDENT + key: 'job.held[''{#JOB.ID}'']' + delay: '0' + description: 'Gets the held status of a job.' + valuemap: + name: 'Control-M true-false' + preprocessing: + - type: JSONPATH + parameters: + - $.held + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'false', + 'true', + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: 'job.stats[''{#JOB.ID}'']' + tags: + - tag: component + value: job + - tag: job-metric + value: held + - tag: job-name + value: '{#JOB.ID}' + - uuid: 2759dacfd8da46e1ad9811093c8897ee + name: 'Job [{#JOB.ID}]: number of runs' + type: DEPENDENT + key: 'job.numberOfRuns[''{#JOB.ID}'']' + delay: '0' + description: 'Gets the number of runs for a job.' + preprocessing: + - type: JSONPATH + parameters: + - $.numberOfRuns + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'job.stats[''{#JOB.ID}'']' + tags: + - tag: component + value: job + - tag: job-metric + value: runs + - tag: job-name + value: '{#JOB.ID}' + - uuid: c73c160f2b8e47c8891d7e22b3a1d1bc + name: 'Job [{#JOB.ID}]: stats' + type: DEPENDENT + key: 'job.stats[''{#JOB.ID}'']' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the statistics of a job.' + preprocessing: + - type: JSONPATH + parameters: + - '$.statuses.[?(@.jobId == ''{#JOB.ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: controlm.jobs + tags: + - tag: component + value: raw + - uuid: 1348caa83bc94650ba49231bac41aa18 + name: 'Job [{#JOB.ID}]: status' + type: DEPENDENT + key: 'job.status[''{#JOB.ID}'']' + delay: '0' + description: 'Gets the status of a job.' + valuemap: + name: 'Control-M job status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Ended OK', + 'Ended Not OK', + 'Wait User', + 'Wait Resource', + 'Wait Host', + 'Wait Workload', + 'Wait Condition', + 'Executing' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'job.stats[''{#JOB.ID}'']' + tags: + - tag: component + value: job + - tag: job-metric + value: status + - tag: job-name + value: '{#JOB.ID}' + trigger_prototypes: + - uuid: beec4281ad0f4ca7aa5f3020b116fdfd + expression: | + last(/Control-M server by HTTP/job.status['{#JOB.ID}'],#1)=1 or + last(/Control-M server by HTTP/job.status['{#JOB.ID}'],#1)=10 + name: 'Control-M: Job [{#JOB.ID}]: status [{ITEM.VALUE}]' + priority: WARNING + description: 'The job has encountered an issue.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 4ec3c06e6ff04e919a7a0f21fa490a25 + name: 'Job [{#JOB.ID}]: type' + type: DEPENDENT + key: 'job.type[''{#JOB.ID}'']' + delay: '0' + description: 'Gets the job type.' + valuemap: + name: 'Control-M job type' + preprocessing: + - type: JSONPATH + parameters: + - $.type + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Command', + 'Script', + 'File Transfer', + 'File Watcher', + 'Database', + 'Hadoop', + 'Dummy', + 'Folder', + 'Job' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'job.stats[''{#JOB.ID}'']' + tags: + - tag: component + value: job + - tag: job-metric + value: type + - tag: job-name + value: '{#JOB.ID}' + master_item: + key: controlm.jobs + lld_macro_paths: + - lld_macro: '{#JOB.ID}' + path: $.jobId + preprocessing: + - type: JSONPATH + parameters: + - $.statuses + error_handler: CUSTOM_VALUE + error_handler_params: '[]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: controlm + macros: + - macro: '{$API.TOKEN}' + type: SECRET_TEXT + description: 'A token to use for API connections.' + - macro: '{$API.URI.ENDPOINT}' + value: '' + description: 'The API endpoint is a URI - for example, `https://monitored.controlm.instance:8443/automation-api`.' + - macro: '{$SERVER.NAME}' + value: '' + description: 'The name of the Control-M server.' + dashboards: + - uuid: f12c2c57e08a4af19e83dd7b1c867d59 + name: 'Control-M Overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Control-M server by HTTP' + name: 'Control-M: Jobs statistics' + - type: STRING + name: reference + value: AAAAA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Control-M server by HTTP' + name: 'Control-M: Server state' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 55b997715e1e4a4cb5272874b975b43a + name: 'Control-M agent status' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Unavailable + - value: '2' + newvalue: Disabled + - value: '3' + newvalue: Disable + - value: '4' + newvalue: Discovering + - value: '10' + newvalue: Unknown + - uuid: 14b119c7f4a940ea91a8df8c4b114eca + name: 'Control-M job status' + mappings: + - value: '0' + newvalue: 'Ended OK' + - value: '1' + newvalue: 'Ended Not OK' + - value: '2' + newvalue: 'Wait User' + - value: '3' + newvalue: 'Wait Resource' + - value: '4' + newvalue: 'Wait Host' + - value: '5' + newvalue: 'Wait Workload' + - value: '6' + newvalue: 'Wait Condition' + - value: '7' + newvalue: Executing + - value: '10' + newvalue: Unknown + - uuid: d6b4e3c8d5934bf08aeb19c8a2f52de4 + name: 'Control-M job type' + mappings: + - value: '0' + newvalue: Command + - value: '1' + newvalue: Script + - value: '2' + newvalue: 'File Transfer' + - value: '3' + newvalue: 'File Watcher' + - value: '4' + newvalue: Database + - value: '5' + newvalue: Hadoop + - value: '6' + newvalue: Dummy + - value: '7' + newvalue: Folder + - value: '8' + newvalue: Job + - value: '10' + newvalue: Unknown + - uuid: f0e3072f0cc44236802ea58f13ebb3ae + name: 'Control-M server status' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - value: '10' + newvalue: Unknown + - uuid: 37a4770c51184c5e9a8d1306625babf3 + name: 'Control-M true-false' + mappings: + - value: '0' + newvalue: 'false' + - value: '1' + newvalue: 'true' + - value: '10' + newvalue: Unknown + graphs: + - uuid: afbfbcdb9b0949c7851fc809049d573f + name: 'Control-M: Jobs statistics' + graph_items: + - color: 00FF00 + item: + host: 'Control-M server by HTTP' + key: controlm.jobs.statistics.returned + - sortorder: '1' + color: 0000FF + item: + host: 'Control-M server by HTTP' + key: controlm.jobs.statistics.total + - uuid: 349829f644cd472d8caeae0059ca8527 + name: 'Control-M: Server state' + graph_items: + - color: 00FF00 + item: + host: 'Control-M server by HTTP' + key: server.state diff --git a/Cradlepoint_NCM_v2_by_HTTP.yaml b/Cradlepoint_NCM_v2_by_HTTP.yaml new file mode 100644 index 0000000..ff0e462 --- /dev/null +++ b/Cradlepoint_NCM_v2_by_HTTP.yaml @@ -0,0 +1,493 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + host_groups: + - uuid: f2481361f99448eea617b7b1d4765566 + name: 'Discovered hosts' + templates: + - uuid: f552ead096ff4ebb8e4cc44c437e1f2f + template: 'Cradlepoint NCM v2 by HTTP' + name: 'Cradlepoint NCM v2 by HTTP' + description: | + Discover Cradlepoint devices by HTTP with script item usage. + + Setup: + 1. Put your "X-ECM-API-ID" and "X-ECM-API-KEY" key values from NetCloud Manager into {$CP.ECM.API.ID} and {$CP.ECM.API.KEY} macros. + 2. Put your "X-CP-API-ID" and "X-CP-API-KEY" key values from NetCloud Manager into {$CP.API.ID} and {$CP.API.KEY} macros. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 6afb34d9e07d4146835989723804dbcb + name: 'Get devices item errors' + type: DEPENDENT + key: cradlepoint.devices.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the data item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: cradlepoint.devices.get + tags: + - tag: component + value: error + triggers: + - uuid: 597abc2d2b324a29b1be39e8087a4005 + expression: 'length(last(/Cradlepoint NCM v2 by HTTP/cradlepoint.devices.errors))>0' + name: 'Cradlepoint: There are errors in the ''Get devices'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 3a3aed7ebf514349822f747f87daf95b + name: 'Get devices' + type: SCRIPT + key: cradlepoint.devices.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function getHttpData(url, params, pagination_required) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + response, + data; + + tls.checkURL(url); + + if (pagination_required) { + data = []; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('X-CP-API-ID: ' + params.cp_api_id); + request.addHeader('X-CP-API-KEY: ' + params.cp_api_key); + request.addHeader('X-ECM-API-ID: ' + params.ecm_api_id); + request.addHeader('X-ECM-API-KEY: ' + params.ecm_api_key); + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$NCM.HTTP_PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + Zabbix.log(4, '[ NetCloud Manager API v2 ] Using HTTP proxy: ' + params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ NetCloud Manager API v2 ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ NetCloud Manager API v2 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from NetCloud Manager API v2. Check debug log for more information.'; + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + if (pagination_required) { + if (typeof response.meta === 'undefined' || typeof response.data === 'undefined') { + throw 'Cannot process response data: received unexpected object.'; + } + + data = data.concat(response.data); + + if (typeof response.meta.next !== 'undefined' && response.meta.next !== null) { + url = response.meta.next; + } + else { + url = ''; + } + } + else { + data = response; + url = ''; + } + } + + delete request; + + return data; + } + + var params = JSON.parse(value), + result = { "data": [], "error": "" }, + error_msg = ""; + + var keysList = ['id', 'device_type', 'ipv4_address', 'name', 'group', 'description']; + + try { + ['cp_api_id', 'cp_api_key', 'ecm_api_id', 'ecm_api_key', 'api_url'].forEach(function (key) { + var macro = '{$NCM.' + key.replace('_', '.').toUpperCase() + '}'; + if (params[key] === macro || params[key] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[key] === 'undefined') { + throw 'Please set \'' + key + '\' script input parameter to ' + macro + ' macro value.'; + } + }); + + if (params.api_url.indexOf('http://') === -1 && params.api_url.indexOf('https://') === -1) { + params.api_url = 'https://' + params.api_url; + } + + if (!params.api_url.endsWith('/')) { + params.api_url += '/'; + } + + var devices = getHttpData(params.api_url + 'routers/?fields=' + keysList.join() + + '&limit=' + encodeURIComponent('{$NCM.RESP.DATA.LIMIT:"routers"}'), params, true); + + if (Array.isArray(devices)) { + result["data"] = devices; + } + else { + throw 'Failed to parse response received from NetCloud Manager API v2. Check debug log for more information.'; + } + + if (keysList.indexOf('group') !== -1) { + var groups = getHttpData(params.api_url + 'groups/?limit=' + encodeURIComponent('{$NCM.RESP.DATA.LIMIT:"groups"}'), params, true); + + if (!Array.isArray(groups)) { + throw 'Failed to parse response received from NetCloud Manager API v2. Check debug log for more information.'; + } + + result["data"].map(function (device) { + groups.forEach(function (group) { + if (device.group == null) { + device.group = {"name": "Undefined"}; + return + } + if (typeof device.group == "string" && device.group.endsWith(group.id+'/')) { + device.group = group.name; + } + }); + return device; + }); + } + } catch (error) { + error_msg = error.toString(); + error_msg += (error_msg.endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ NetCloud Manager API v2 ] ERROR: ' + error_msg); + }; + + result.error = error_msg; + + return JSON.stringify(result); + description: 'Item for gathering all devices from NetCloud Manager API.' + timeout: '{$NCM.DATA.TIMEOUT}' + parameters: + - name: api_url + value: '{$NCM.API.URL}' + - name: cp_api_id + value: '{$NCM.CP.API.ID}' + - name: cp_api_key + value: '{$NCM.CP.API.KEY}' + - name: ecm_api_id + value: '{$NCM.ECM.API.ID}' + - name: ecm_api_key + value: '{$NCM.ECM.API.KEY}' + - name: http_proxy + value: '{$NCM.HTTP_PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cradlepoint NCM v2"}' + tags: + - tag: component + value: raw + - uuid: bfbe3988a57b4f7d8212a2e033b43292 + name: 'Devices required reboot' + type: DEPENDENT + key: cradlepoint.devices.reboot_required + delay: '0' + description: 'Number of devices required reboot.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.reboot_required == ''true'')].length()' + master_item: + key: cradlepoint.devices.get + tags: + - tag: component + value: system + triggers: + - uuid: d1defc9c540043edbb31c17280129d11 + expression: '{$NCM.DEVICES.REBOOT.TH}<>-1 and length(last(/Cradlepoint NCM v2 by HTTP/cradlepoint.devices.reboot_required))>{$NCM.DEVICES.REBOOT.TH}' + name: 'Cradlepoint: More than {$NCM.DEVICES.REBOOT.TH} devices required reboot' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 581006b29fab4e93bbf394d28200bde8 + name: 'Total devices' + type: DEPENDENT + key: cradlepoint.devices.total + delay: '0' + description: 'The total number of all devices.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.length() + master_item: + key: cradlepoint.devices.get + tags: + - tag: component + value: system + - uuid: b74b036314ee40d4b8810fc96789b337 + name: 'Devices with pending upgrade' + type: DEPENDENT + key: cradlepoint.devices.upgrade_pending + delay: '0' + description: 'Number of devices with pending upgrade.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.upgrade_pending == ''true'')].length()' + master_item: + key: cradlepoint.devices.get + tags: + - tag: component + value: system + triggers: + - uuid: 70f42ff8c8014fb987d00a0ec426547b + expression: '{$NCM.DEVICES.UPGRADE.TH}<>-1 and length(last(/Cradlepoint NCM v2 by HTTP/cradlepoint.devices.upgrade_pending))>{$NCM.DEVICES.UPGRADE.TH}' + name: 'Cradlepoint: More than {$NCM.DEVICES.UPGRADE.TH} devices awaiting upgrade' + priority: INFO + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: e4609c621e6848ecab825d0bf59776b7 + name: 'Devices discovery' + type: DEPENDENT + key: cradlepoint.devices.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$NCM.DEVICE.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$NCM.DEVICE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovering devices from NetCloud Manager API.' + host_prototypes: + - uuid: 0013a0572be54dfd8195753302b9ddfa + host: '{#TYPE}_{#ID}' + name: '{#NAME}' + inventory_mode: AUTOMATIC + group_links: + - group: + name: 'Discovered hosts' + group_prototypes: + - name: 'Cradlepoint/{#GROUP}' + templates: + - name: 'Cradlepoint NCM v2 device by HTTP' + macros: + - macro: '{$NCM.DEVICE.ID}' + value: '{#ID}' + description: 'ID of the device.' + tags: + - tag: device + value: '{#TYPE}' + master_item: + key: cradlepoint.devices.get + lld_macro_paths: + - lld_macro: '{#DESCR}' + path: $.description + - lld_macro: '{#GROUP}' + path: $.group + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#IP}' + path: $.ipv4_address + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.device_type + preprocessing: + - type: JSONPATH + parameters: + - $.data + tags: + - tag: class + value: network + - tag: subclass + value: modem + - tag: target + value: cradlepoint + - tag: target + value: netcloud + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Cradlepoint NCM v2", e.g. {$HTTP.TLS.VERIFY:"Cradlepoint NCM v2"}.' + - macro: '{$NCM.API.URL}' + value: 'https://www.cradlepointecm.com/api/v2/' + description: 'NetCloud Manager API URL.' + - macro: '{$NCM.CP.API.ID}' + type: SECRET_TEXT + description: 'NetCloud Manager `X-CP-API-ID`.' + - macro: '{$NCM.CP.API.KEY}' + type: SECRET_TEXT + description: 'NetCloud Manager `X-CP-API-KEY`.' + - macro: '{$NCM.DATA.TIMEOUT}' + value: 15s + description: 'The response timeout for the API.' + - macro: '{$NCM.DEVICE.NAME.MATCHES}' + value: '.*' + description: 'A regular expression to filter devices by name. Only devices with names matching this regex will be monitored.' + - macro: '{$NCM.DEVICE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regular expression to filter devices by name. Devices with names matching this regex will be excluded from monitoring.' + - macro: '{$NCM.DEVICES.REBOOT.TH}' + value: '5' + description: 'The maximum number of devices requiring a reboot before the trigger fires. The trigger can be disabled by setting the value to `-1`.' + - macro: '{$NCM.DEVICES.UPGRADE.TH}' + value: '5' + description: 'The maximum number of devices with a pending upgrade before the trigger fires. The trigger can be disabled by setting the value to `-1`.' + - macro: '{$NCM.ECM.API.ID}' + type: SECRET_TEXT + description: 'NetCloud Manager `X-ECM-API-ID`.' + - macro: '{$NCM.ECM.API.KEY}' + type: SECRET_TEXT + description: 'NetCloud Manager `X-ECM-API-KEY`.' + - macro: '{$NCM.HTTP_PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format [protocol://][username[:password]@]proxy.example.com[:port]. See the documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + - macro: '{$NCM.RESP.DATA.LIMIT}' + value: '500' + description: 'The number of records returned by the API. Max value is `500`.' + dashboards: + - uuid: ed371a522c6d4bd4907fd5697c9904d3 + name: General + pages: + - name: Overview + widgets: + - type: item + name: 'Total devices' + width: '24' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 by HTTP' + key: cradlepoint.devices.total + - type: INTEGER + name: show.0 + value: '2' + - type: problems + name: Problems + 'y': '3' + width: '72' + height: '6' + - type: item + name: 'Devices required reboot' + x: '24' + width: '24' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 by HTTP' + key: cradlepoint.devices.reboot_required + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'Devices with pending upgrade' + x: '48' + width: '24' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 by HTTP' + key: cradlepoint.devices.upgrade_pending + - type: INTEGER + name: show.0 + value: '2' + graphs: + - uuid: 57bdf098cf7c4d8388e85ec5fd65793d + name: 'Devices required reboot' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cradlepoint NCM v2 by HTTP' + key: cradlepoint.devices.reboot_required + - uuid: a4b7e2626afb4e11a9001851a86ce8a0 + name: 'Devices with pending upgrade' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cradlepoint NCM v2 by HTTP' + key: cradlepoint.devices.upgrade_pending + - uuid: b6e662a0f1714ad0ba1bd7a5ca2e2405 + name: 'Total devices' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Cradlepoint NCM v2 by HTTP' + key: cradlepoint.devices.total diff --git a/Cradlepoint_NCM_v2_device_by_HTTP.yaml b/Cradlepoint_NCM_v2_device_by_HTTP.yaml new file mode 100644 index 0000000..af83c1d --- /dev/null +++ b/Cradlepoint_NCM_v2_device_by_HTTP.yaml @@ -0,0 +1,2147 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: c8e6452eb3924cab9ec51eeaf91435fa + template: 'Cradlepoint NCM v2 device by HTTP' + name: 'Cradlepoint NCM v2 device by HTTP' + description: | + Get Cradlepoint devices monitoring with script item usage to perform HTTP requests to NetCloud Manager API v2. + This template will be automatically connected to discovered entities with all required parameters pre-defined. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 6e2f0b86ef4f4b399368d13ad46e4012 + name: 'Get device item errors' + type: DEPENDENT + key: cradlepoint_device.data.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Item for gathering device data errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: error + triggers: + - uuid: 36c4c6b12cdd47d79c5f72142d497df8 + expression: 'length(last(/Cradlepoint NCM v2 device by HTTP/cradlepoint_device.data.errors))>0' + name: 'Cradlepoint: There are errors in the ''Get device data'' metric' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 3aaac03c696f4d688d800799750717f4 + name: 'Get device data' + type: SCRIPT + key: cradlepoint_device.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function getHttpData(url, params, pagination_required) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + response, + data; + + tls.checkURL(url); + + if (pagination_required) { + data = []; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('X-CP-API-ID: ' + params.cp_api_id); + request.addHeader('X-CP-API-KEY: ' + params.cp_api_key); + request.addHeader('X-ECM-API-ID: ' + params.ecm_api_id); + request.addHeader('X-ECM-API-KEY: ' + params.ecm_api_key); + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$NCM.HTTP_PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + Zabbix.log(4, '[ NetCloud Manager API v2 ] Using HTTP proxy: ' + params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ NetCloud Manager API v2 ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ NetCloud Manager API v2 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from NetCloud Manager API v2. Check debug log for more information.'; + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + if (pagination_required) { + if (typeof response.meta === 'undefined' || typeof response.data === 'undefined') { + throw 'Cannot process response data: received unexpected object.'; + } + + data = data.concat(response.data); + + if (typeof response.meta.next !== 'undefined' && response.meta.next !== null) { + url = response.meta.next; + } + else { + url = ''; + } + } + else { + data = response; + url = ''; + } + } + + delete request; + + return data; + } + + var params = JSON.parse(value), + result = { "data": {}, "error": "" }, + error_msg = ""; + + try { + ['device_id', 'cp_api_id', 'cp_api_key', 'ecm_api_id', 'ecm_api_key', 'api_url'].forEach(function (key) { + var macro = '{$NCM.' + key.replace('_', '.').toUpperCase() + '}'; + if (params[key] === macro || params[key] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[key] === 'undefined') { + throw 'Please set \'' + key + '\' script input parameter to ' + macro + ' macro value.'; + } + }); + + if (params.api_url.indexOf('http://') === -1 && params.api_url.indexOf('https://') === -1) { + params.api_url = 'https://' + params.api_url; + } + + if (!params.api_url.endsWith('/')) { + params.api_url += '/'; + } + + var device_data = getHttpData(params.api_url + 'routers/' + encodeURIComponent(params.device_id) + '/', params, false); + + if (typeof device_data !== 'object') { + throw 'Failed to parse response received from NetCloud Manager API v2. Check debug log for more information.'; + } + + device_data.lans = getHttpData( + params.api_url + 'routers/' + encodeURIComponent(params.device_id) + '/lans/', + params, false + ); + + if (device_data.actual_firmware !== null && device_data.actual_firmware.startsWith('http')) { + device_data.actual_firmware = getHttpData(device_data.actual_firmware, params, false); + } + else { + device_data.actual_firmware = {}; + } + + if (device_data.last_known_location !== null && device_data.last_known_location.startsWith('http')) { + device_data.last_known_location = getHttpData(device_data.last_known_location, params, false); + } + else { + device_data.last_known_location = {}; + } + + device_data.net_devices = getHttpData( + params.api_url + 'net_devices/?router=' + encodeURIComponent(params.device_id) + '&limit=' + encodeURIComponent('{$NCM.RESP.DATA.LIMIT:"net_devices"}'), + params, true + ); + + result.data = device_data; + } catch (error) { + error_msg = error.toString(); + error_msg += (error_msg.endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ NetCloud Manager API v2 ] ERROR: ' + error_msg); + }; + + result.error = error_msg; + + return JSON.stringify(result); + description: 'Item for gathering device data from the NetCloud Manager API.' + timeout: '{$NCM.DATA.TIMEOUT:"device_data"}' + parameters: + - name: api_url + value: '{$NCM.API.URL}' + - name: cp_api_id + value: '{$NCM.CP.API.ID}' + - name: cp_api_key + value: '{$NCM.CP.API.KEY}' + - name: device_id + value: '{$NCM.DEVICE.ID}' + - name: ecm_api_id + value: '{$NCM.ECM.API.ID}' + - name: ecm_api_key + value: '{$NCM.ECM.API.KEY}' + - name: http_proxy + value: '{$NCM.HTTP_PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Cradlepoint NCM v2 device"}' + tags: + - tag: component + value: raw + - uuid: 4b2e0ce258124e40bcb4ce9ba5ddf7ed + name: 'Device description' + type: DEPENDENT + key: cradlepoint_device.description + delay: '0' + value_type: TEXT + trends: '0' + description: 'Description of the device.' + inventory_link: NOTES + preprocessing: + - type: JSONPATH + parameters: + - $.data.description + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: system + - uuid: d30cf93521594fe5badd0f5fba945542 + name: 'Product name' + type: DEPENDENT + key: cradlepoint_device.device_model + delay: '0' + value_type: CHAR + trends: '0' + description: 'Full product name of the device.' + inventory_link: NAME + preprocessing: + - type: JSONPATH + parameters: + - $.data.full_product_name + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: system + - uuid: ebf204a9d90a4e909b8fb0b08f2bf7ee + name: 'Device type' + type: DEPENDENT + key: cradlepoint_device.device_type + delay: '0' + value_type: CHAR + trends: '0' + description: 'Type of device, e.g., router or access point.' + inventory_link: TYPE + preprocessing: + - type: JSONPATH + parameters: + - $.data.device_type + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: system + - uuid: 82e22d1674694eabbe71a7f45aafa76c + name: Firmware + type: DEPENDENT + key: cradlepoint_device.firmware + delay: '0' + value_type: CHAR + trends: '0' + description: 'Firmware of the device.' + inventory_link: SOFTWARE + preprocessing: + - type: JSONPATH + parameters: + - $.data.actual_firmware.version + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: system + - uuid: 6cbcce6b319740b0bd101556677a2d21 + name: 'IP address' + type: DEPENDENT + key: cradlepoint_device.ip_address + delay: '0' + value_type: CHAR + trends: '0' + description: 'IPv4 address of the device.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.ipv4_address + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: network + - uuid: 61462ca648714a71970e6ffe6681e73f + name: 'Device latitude' + type: DEPENDENT + key: cradlepoint_device.latitude + delay: '0' + value_type: CHAR + trends: '0' + description: 'Latitude of the device location.' + inventory_link: LOCATION_LAT + preprocessing: + - type: JSONPATH + parameters: + - $.data.last_known_location.latitude + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: system + - uuid: f0e0ba3ad11f46f5a1fd8c5d302dde4e + name: 'Device longitude' + type: DEPENDENT + key: cradlepoint_device.longitude + delay: '0' + value_type: CHAR + trends: '0' + description: 'Longitude of the device location.' + inventory_link: LOCATION_LON + preprocessing: + - type: JSONPATH + parameters: + - $.data.last_known_location.longitude + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: system + - uuid: 41f4d3ca264f47999a50f8ca71f949b8 + name: 'MAC address' + type: DEPENDENT + key: cradlepoint_device.mac_address + delay: '0' + value_type: CHAR + trends: '0' + description: 'MAC address of the device.' + inventory_link: MACADDRESS_A + preprocessing: + - type: JSONPATH + parameters: + - $.data.mac + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: network + - uuid: a3e158eaa50b491ca9a4b753ef1c0553 + name: 'Reboot required' + type: DEPENDENT + key: cradlepoint_device.reboot_required + delay: '0' + description: 'Indicates if a reboot is required to enable additional device functionality.' + valuemap: + name: 'Boolean status' + preprocessing: + - type: JSONPATH + parameters: + - $.data.reboot_required + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 9899e1c3e27f4fbd89e9ee7f56a495bb + expression: '{$REBOOT.CONTROL}=1 and last(/Cradlepoint NCM v2 device by HTTP/cradlepoint_device.reboot_required)=1' + name: 'Cradlepoint: Reboot is required' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 2fa2f595b81b4b66b143cb9a49f7c409 + name: 'Serial number' + type: DEPENDENT + key: cradlepoint_device.serial_number + delay: '0' + value_type: CHAR + trends: '0' + description: 'Serial number of the device.' + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - $.data.serial_number + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: system + - uuid: 8f856da65d994b40ac09dcd8627a498c + name: 'Device state' + type: DEPENDENT + key: cradlepoint_device.state + delay: '0' + description: 'Device state.' + valuemap: + name: 'Device state' + preprocessing: + - type: JSONPATH + parameters: + - $.data.state + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'offline': 0, + 'online': 1, + 'initialized': 2 + }; + return typeof idx[value] === 'undefined' ? 10 : idx[value]; + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: health + triggers: + - uuid: 93aa6ba5e5d74591b58ea6a193a76ff5 + expression: 'last(/Cradlepoint NCM v2 device by HTTP/cradlepoint_device.state)<>1' + name: 'Cradlepoint: Device state is not online' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 221dd6ed37714ed9868c39a6991bf496 + name: Timezone + type: DEPENDENT + key: cradlepoint_device.timezone + delay: '0' + value_type: CHAR + trends: '0' + description: 'Timezone of the device.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.locality + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: system + discovery_rules: + - uuid: d5a0fbca956e4e1e865dca2962c51614 + name: 'LAN discovery' + type: DEPENDENT + key: cradlepoint_device.lan.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$NCM.LAN.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$NCM.LAN.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STATUS}' + value: '{$NCM.LAN.STATUS.MATCHES}' + formulaid: C + - macro: '{#STATUS}' + value: '{$NCM.LAN.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of LANs via the NetCloud Manager API.' + item_prototypes: + - uuid: 6dbcf7a010eb44dc9d7aa7a89289c480 + name: '{#NAME}: Get data' + type: DEPENDENT + key: 'cradlepoint_device.lan.data_get[{#ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering data for the `{#NAME}` LAN.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.lans[?(@.id == ''{#ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: raw + - tag: lan + value: '{#NAME}' + - uuid: 726987f1f42748c0a903c5e37c299846 + name: '{#NAME}: IP address' + type: DEPENDENT + key: 'cradlepoint_device.lan.ip_address[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'IP address of the LAN.' + preprocessing: + - type: JSONPATH + parameters: + - $.ip_address + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'cradlepoint_device.lan.data_get[{#ID}]' + tags: + - tag: component + value: network + - tag: lan + value: '{#NAME}' + - uuid: f7786707a27742a5b04bd710e0242a46 + name: '{#NAME}: Netmask' + type: DEPENDENT + key: 'cradlepoint_device.lan.netmask[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Netmask of the LAN.' + preprocessing: + - type: JSONPATH + parameters: + - $.netmask + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'cradlepoint_device.lan.data_get[{#ID}]' + tags: + - tag: component + value: network + - tag: lan + value: '{#NAME}' + - uuid: 374cbb15ca06433887f660cc01cb4e77 + name: '{#NAME}: State' + type: DEPENDENT + key: 'cradlepoint_device.lan.state[{#ID}]' + delay: '0' + trends: '0' + description: 'State of the LAN, e.g., enabled or disabled.' + valuemap: + name: 'LAN state' + preprocessing: + - type: JSONPATH + parameters: + - $.enabled + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + switch (value) { + case 'disabled': + return 0 + case 'enabled': + return 1 + default: + return 2 + } + master_item: + key: 'cradlepoint_device.lan.data_get[{#ID}]' + tags: + - tag: component + value: network + - tag: lan + value: '{#NAME}' + master_item: + key: cradlepoint_device.data.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATUS}' + path: $.enabled + preprocessing: + - type: JSONPATH + parameters: + - $.data.lans + error_handler: CUSTOM_VALUE + error_handler_params: '[]' + - uuid: 6b4e6f9c2c0c41b08765ba83fddf4c91 + name: 'Network device discovery' + type: DEPENDENT + key: cradlepoint_device.net_device.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CONN}' + value: '{$NCM.NET.DEVICE.CONN.MATCHES}' + formulaid: A + - macro: '{#CONN}' + value: '{$NCM.NET.DEVICE.CONN.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#MODE}' + value: '{$NCM.NET.DEVICE.MODE.MATCHES}' + formulaid: C + - macro: '{#MODE}' + value: '{$NCM.NET.DEVICE.MODE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$NCM.NET.DEVICE.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$NCM.NET.DEVICE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#STATE}' + value: ^null$ + operator: NOT_MATCHES_REGEX + formulaid: G + - macro: '{#TYPE}' + value: '{$NCM.NET.DEVICE.TYPE.MATCHES}' + formulaid: H + - macro: '{#TYPE}' + value: '{$NCM.NET.DEVICE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: I + description: 'Discovery of network devices connected through the router.' + item_prototypes: + - uuid: d7b6b4a0cc3a424ea9d62205b71b2720 + name: '{#NAME}: APN' + type: DEPENDENT + key: 'cradlepoint_device.net_device.apn[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Access Point Name.' + preprocessing: + - type: JSONPATH + parameters: + - $.apn + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: b6aedbf65bea4dad8c1a07404950b13b + name: '{#NAME}: Carrier' + type: DEPENDENT + key: 'cradlepoint_device.net_device.carrier[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The connected carrier, if available; otherwise, the carrier the modem is configured to connect to.' + preprocessing: + - type: JSONPATH + parameters: + - $.carrier + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 24f06937e098469b9449ccfb730b52d7 + name: '{#NAME}: Connection state' + type: DEPENDENT + key: 'cradlepoint_device.net_device.conn_state[{#ID}]' + delay: '0' + description: 'Current connection state.' + valuemap: + name: 'Device connection state' + preprocessing: + - type: JSONPATH + parameters: + - $.connection_state + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'disconnected': 0, + 'disconnecting': 1, + 'connected': 2, + 'connecting': 3, + 'configuring': 4, + 'ready': 5, + 'error': 6 + }; + return typeof idx[value] === 'undefined' ? 7 : idx[value]; + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 8eaf4c7320e545bba6100580febeb45c + name: '{#NAME}: DNS0 server' + type: DEPENDENT + key: 'cradlepoint_device.net_device.dns0[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Primary DNS server.' + preprocessing: + - type: JSONPATH + parameters: + - $.dns0 + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: bd5874ac2a47445abc4d855182587e41 + name: '{#NAME}: DNS1 server' + type: DEPENDENT + key: 'cradlepoint_device.net_device.dns1[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Secondary DNS server.' + preprocessing: + - type: JSONPATH + parameters: + - $.dns1 + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 6186edf610f84145b56bf83b0cc4d3d6 + name: '{#NAME}: Firmware' + type: DEPENDENT + key: 'cradlepoint_device.net_device.firmware[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Firmware version of the `{#NAME}` device.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: system + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 3e9466588cf04161bb7dd1df53b222da + name: '{#NAME}: Gateway' + type: DEPENDENT + key: 'cradlepoint_device.net_device.gateway[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Gateway of the network.' + preprocessing: + - type: JSONPATH + parameters: + - $.gateway + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 62d851bee9284d468e57f2c636f0aea7 + name: '{#NAME}: Get device info' + type: DEPENDENT + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering general information about the `{#NAME}` network device.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.net_devices[?(@.id == ''{#ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: cradlepoint_device.data.get + tags: + - tag: component + value: raw + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: d78bdab2e9c64876a219cfa85a92defd + name: '{#NAME}: IPv4 address' + type: DEPENDENT + key: 'cradlepoint_device.net_device.ipv4_address[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'IPv4 address of the `{#NAME}` device.' + preprocessing: + - type: JSONPATH + parameters: + - $.ipv4_address + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: de3ec146921e4d65979bef0fef4a66bb + name: '{#NAME}: IPv6 address' + type: DEPENDENT + key: 'cradlepoint_device.net_device.ipv6_address[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'IPv6 address of the `{#NAME}` device.' + preprocessing: + - type: JSONPATH + parameters: + - $.ipv6_address + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 673c722338b543e99cf5eb7b3f7b9353 + name: '{#NAME}: LTE bandwidth' + type: DEPENDENT + key: 'cradlepoint_device.net_device.ltebandwidth[{#ID}]' + delay: '0' + units: Hz + description: 'Indicates the frequency width of the LTE band being used by the modem module.' + preprocessing: + - type: JSONPATH + parameters: + - $.ltebandwidth + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const sizes = ['hz', 'khz', 'mhz', 'ghz']; + const parts = value.trim().split(' '); + + if (parts.length < 2) { + return value; + } + + const numberPart = parts[0]; + const unitPart = parts[1]; + + if (unitPart.toLowerCase() === 'hz') { + return value; + } + + const multiplier = Math.pow(10, 3 * sizes.indexOf(unitPart.toLowerCase())); + + if (multiplier < 1) { + return value; + } + + return Number(numberPart) * multiplier; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: a4d5a9f2197b41c8b59e79b2d8b2889e + name: '{#NAME}: MAC address' + type: DEPENDENT + key: 'cradlepoint_device.net_device.mac_address[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'MAC address of the `{#NAME}` device.' + preprocessing: + - type: JSONPATH + parameters: + - $.mac + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 3e8beceb12104f17902d49e9f2ce4feb + name: '{#NAME}: Model' + type: DEPENDENT + key: 'cradlepoint_device.net_device.model[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Manufacturing model of the `{#NAME}` device.' + preprocessing: + - type: JSONPATH + parameters: + - $.mfg_model + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: system + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 26568dd6f6b44883beb50560c9c5173c + name: '{#NAME}: Netmask' + type: DEPENDENT + key: 'cradlepoint_device.net_device.netmask[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Netmask of the `{#NAME}` device.' + preprocessing: + - type: JSONPATH + parameters: + - $.netmask + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: b1b6d42a5fd1467db8c6e3ad571acfc1 + name: '{#NAME}: PIN status' + type: DEPENDENT + key: 'cradlepoint_device.net_device.pin_status[{#ID}]' + delay: '0' + description: 'Indicates the status of the SIM PIN.' + valuemap: + name: 'PIN status' + preprocessing: + - type: JSONPATH + parameters: + - $.pin_status + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + switch (value) { + case 'READY': + return 1 + case 'PIN REQUIRED': + return 2 + default: + return 0 + } + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: system + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: e0ba48932d954732b9cdc8db0d9bb5e1 + expression: '{$SIM.PIN.CONTROL:"{#ID}"}=1 and last(/Cradlepoint NCM v2 device by HTTP/cradlepoint_device.net_device.pin_status[{#ID}])<>1' + name: 'Cradlepoint: {#NAME}: SIM PIN is not ready' + priority: WARNING + tags: + - tag: scope + value: health + - uuid: 580f5cb17117475aa5582175478789af + name: '{#NAME}: Product name' + type: DEPENDENT + key: 'cradlepoint_device.net_device.product_name[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Product name of the `{#NAME}` device.' + preprocessing: + - type: JSONPATH + parameters: + - $.mfg_product + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: system + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 017fc452e2cc4529b1bc0e6388c0548a + name: '{#NAME}: Radio frequency band' + type: DEPENDENT + key: 'cradlepoint_device.net_device.rf_band[{#ID}]' + delay: '0' + description: 'Indicates the radio frequency band that is currently being used by the modem module.' + preprocessing: + - type: JSONPATH + parameters: + - $.rfband + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: a612ef37b197468a994a8c41e99a2f70 + name: '{#NAME}: Radio frequency band 5G' + type: DEPENDENT + key: 'cradlepoint_device.net_device.rf_band_5g[{#ID}]' + delay: '0' + description: 'Indicates the 5G radio frequency band that is currently being used by the modem module.' + preprocessing: + - type: JSONPATH + parameters: + - $.rfband5g + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 22b5cf8f07384bbc8a68ff8c12fd7c3d + name: '{#NAME}: Radio frequency channel' + type: DEPENDENT + key: 'cradlepoint_device.net_device.rf_channel[{#ID}]' + delay: '0' + description: 'Indicates the radio frequency channel that is currently being used by the modem module.' + preprocessing: + - type: JSONPATH + parameters: + - $.rfchannel + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 2929110096fe46d980ecddbca0bd3cca + name: '{#NAME}: Serial number' + type: DEPENDENT + key: 'cradlepoint_device.net_device.serial[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Serial number of the `{#NAME}` device.' + preprocessing: + - type: JSONPATH + parameters: + - $.serial + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: system + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: 2888fd84ec334d518eea2f124a489541 + name: '{#NAME}: Uptime' + type: DEPENDENT + key: 'cradlepoint_device.net_device.uptime[{#ID}]' + delay: '0' + units: uptime + description: 'Time in seconds since the network device established its link.' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + - uuid: a8f35b55a2474ce49e181d4a4e429829 + name: '{#NAME}: WiMAX realm' + type: DEPENDENT + key: 'cradlepoint_device.net_device.wimax_realm[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'WiMAX realm string used to connect to a WiMAX network.' + preprocessing: + - type: JSONPATH + parameters: + - $.wimax_realm + error_handler: DISCARD_VALUE + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'cradlepoint_device.net_device.info_get[{#ID}]' + tags: + - tag: component + value: network + - tag: connection + value: '{#CONN}' + - tag: device + value: '{#NAME}' + - tag: mode + value: '{#MODE}' + - tag: type + value: '{#TYPE}' + master_item: + key: cradlepoint_device.data.get + lld_macro_paths: + - lld_macro: '{#CONN}' + path: $.service_type + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#MODE}' + path: $.mode + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATE}' + path: $.connection_state + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.data.net_devices + error_handler: CUSTOM_VALUE + error_handler_params: '[]' + tags: + - tag: class + value: network + - tag: subclass + value: modem + - tag: target + value: cradlepoint + - tag: target + value: netcloud + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Cradlepoint NCM v2 device", e.g. {$HTTP.TLS.VERIFY:"Cradlepoint NCM v2 device"}.' + - macro: '{$NCM.API.URL}' + value: 'https://www.cradlepointecm.com/api/v2/' + description: 'NetCloud Manager API URL.' + - macro: '{$NCM.CP.API.ID}' + type: SECRET_TEXT + description: 'NetCloud Manager X-CP-API-ID.' + - macro: '{$NCM.CP.API.KEY}' + type: SECRET_TEXT + description: 'NetCloud Manager X-CP-API-KEY.' + - macro: '{$NCM.DATA.TIMEOUT}' + value: 15s + description: 'A response timeout for an API.' + - macro: '{$NCM.DEVICE.ID}' + description: 'NetCloud Manager device ID.' + - macro: '{$NCM.ECM.API.ID}' + type: SECRET_TEXT + description: 'NetCloud Manager X-ECM-API-ID.' + - macro: '{$NCM.ECM.API.KEY}' + type: SECRET_TEXT + description: 'NetCloud Manager X-ECM-API-KEY.' + - macro: '{$NCM.HTTP_PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format [protocol://][username[:password]@]proxy.example.com[:port]. See the documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + - macro: '{$NCM.LAN.NAME.MATCHES}' + value: '.*' + description: 'Regular expression to filter LANs based on their names. Only LANs with names matching this regex will be monitored.' + - macro: '{$NCM.LAN.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regular expression to filter LANs based on their names. LANs with names matching this regex will be excluded from monitoring.' + - macro: '{$NCM.LAN.STATUS.MATCHES}' + value: '.*' + description: 'Regular expression to filter LANs based on their statuses. Only LANs with statuses matching this regex will be monitored.' + - macro: '{$NCM.LAN.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regular expression to filter LANs based on their statuses. LANs with statuses matching this regex will be excluded from monitoring.' + - macro: '{$NCM.NET.DEVICE.CONN.MATCHES}' + value: '.*' + description: 'Regular expression to filter Network devices based on their connection types. Only devices with connection types matching this regex will be monitored.' + - macro: '{$NCM.NET.DEVICE.CONN.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regular expression to filter Network devices based on their connection types. Devices with connection types matching this regex will be excluded from monitoring.' + - macro: '{$NCM.NET.DEVICE.MODE.MATCHES}' + value: '.*' + description: 'Regular expression to filter Network devices based on their modes. Only devices with modes matching this regex will be monitored.' + - macro: '{$NCM.NET.DEVICE.MODE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regular expression to filter Network devices based on their modes. Devices with modes matching this regex will be excluded from monitoring.' + - macro: '{$NCM.NET.DEVICE.NAME.MATCHES}' + value: '.*' + description: 'Regular expression to filter Network devices based on their names. Only devices with names matching this regex will be monitored.' + - macro: '{$NCM.NET.DEVICE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regular expression to filter Network devices based on their statuses. Devices with names matching this regex will be excluded from monitoring.' + - macro: '{$NCM.NET.DEVICE.TYPE.MATCHES}' + value: '.*' + description: 'Regular expression to filter Network devices based on their types. Only devices with types matching this regex will be monitored.' + - macro: '{$NCM.NET.DEVICE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regular expression to filter Network devices based on their types. Devices with types matching this regex will be excluded from monitoring.' + - macro: '{$NCM.RESP.DATA.LIMIT}' + value: '500' + description: 'The number of records returned by API. Max value is 500.' + - macro: '{$REBOOT.CONTROL}' + value: '1' + description: 'The macro is used as a flag to control device reboot tracking for the ''Reboot is required'' trigger.' + - macro: '{$SIM.PIN.CONTROL}' + value: '1' + description: 'The macro is used as a flag to control SIM PIN readiness tracking for the ''SIM PIN is not ready'' trigger. Can be used with the net device ID as context.' + dashboards: + - uuid: 65d5445bec3f4094a8682e5a73cf2cd4 + name: General + pages: + - name: Overview + widgets: + - type: item + name: State + width: '24' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 device by HTTP' + key: cradlepoint_device.state + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: Timezone + 'y': '3' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 device by HTTP' + key: cradlepoint_device.timezone + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'IP address' + 'y': '6' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 device by HTTP' + key: cradlepoint_device.ip_address + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Product name' + x: '24' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 device by HTTP' + key: cradlepoint_device.device_model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Device type' + x: '24' + 'y': '3' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 device by HTTP' + key: cradlepoint_device.device_type + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'MAC address' + x: '24' + 'y': '6' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 device by HTTP' + key: cradlepoint_device.mac_address + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial Number' + x: '48' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 device by HTTP' + key: cradlepoint_device.serial_number + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '48' + 'y': '3' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 device by HTTP' + key: cradlepoint_device.firmware + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'Device description' + x: '48' + 'y': '6' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Cradlepoint NCM v2 device by HTTP' + key: cradlepoint_device.description + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '35' + - name: LANs + widgets: + - type: honeycomb + name: State + width: '36' + height: '5' + fields: + - type: STRING + name: bg_color + value: 97AAB3 + - type: STRING + name: items.0 + value: '*: State' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: network + - type: INTEGER + name: item_tags.1.operator + value: '4' + - type: STRING + name: item_tags.1.tag + value: lan + - type: STRING + name: item_tags.1.value + value: '' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(.*?)\:", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: honeycomb + name: 'IP address' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: bg_color + value: FFBF59 + - type: STRING + name: items.0 + value: '*: IP address' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: network + - type: INTEGER + name: item_tags.1.operator + value: '4' + - type: STRING + name: item_tags.1.tag + value: lan + - type: STRING + name: item_tags.1.value + value: '' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(.*?)\:", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - name: 'Network Devices' + widgets: + - type: honeycomb + name: 'Connection state' + width: '36' + height: '5' + fields: + - type: STRING + name: bg_color + value: 97AAB3 + - type: STRING + name: items.0 + value: '*: Connection state' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: network + - type: INTEGER + name: item_tags.1.operator + value: '4' + - type: STRING + name: item_tags.1.tag + value: connection + - type: STRING + name: item_tags.1.value + value: '' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(.*?)\:", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: honeycomb + name: 'IPv4 address' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: bg_color + value: FFA059 + - type: STRING + name: items.0 + value: '*: IPv4 address' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: network + - type: INTEGER + name: item_tags.1.operator + value: '4' + - type: STRING + name: item_tags.1.tag + value: connection + - type: STRING + name: item_tags.1.value + value: '' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(.*?)\:", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: honeycomb + name: 'Radio Frequency Band' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: bg_color + value: E45959 + - type: STRING + name: items.0 + value: '*: Radio Frequency Band' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: network + - type: INTEGER + name: item_tags.1.operator + value: '4' + - type: STRING + name: item_tags.1.tag + value: connection + - type: STRING + name: item_tags.1.value + value: '' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(.*?)\:", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAG + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '50' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: honeycomb + name: 'LTE Band width' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: bg_color + value: FFBF59 + - type: STRING + name: items.0 + value: '*: LTE Band width' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: network + - type: INTEGER + name: item_tags.1.operator + value: '4' + - type: STRING + name: item_tags.1.tag + value: connection + - type: STRING + name: item_tags.1.value + value: '' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(.*?)\:", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '40' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: honeycomb + name: 'PIN status' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: bg_color + value: 64B5F6 + - type: STRING + name: items.0 + value: '*: PIN status' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: system + - type: INTEGER + name: item_tags.1.operator + value: '4' + - type: STRING + name: item_tags.1.tag + value: connection + - type: STRING + name: item_tags.1.value + value: '' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(.*?)\:", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: honeycomb + name: 'Radio Frequency Channel' + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: bg_color + value: B39DDB + - type: STRING + name: items.0 + value: '*: Radio Frequency Channel' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: network + - type: INTEGER + name: item_tags.1.operator + value: '4' + - type: STRING + name: item_tags.1.tag + value: connection + - type: STRING + name: item_tags.1.value + value: '' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(.*?)\:", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAH + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '50' + - type: INTEGER + name: secondary_label_size_type + value: '1' + valuemaps: + - uuid: 982b8a38fc6942368421fb31f69ebe7b + name: 'Boolean status' + mappings: + - value: '0' + newvalue: 'false' + - value: '1' + newvalue: 'true' + - uuid: 537c1e26789f454582b356b083f60981 + name: 'Device connection state' + mappings: + - value: '0' + newvalue: Disconnected + - value: '1' + newvalue: Disconnecting + - value: '2' + newvalue: Connected + - value: '3' + newvalue: Connecting + - value: '4' + newvalue: Configuring + - value: '5' + newvalue: Ready + - value: '6' + newvalue: Error + - value: '7' + newvalue: None + - uuid: b96ca91d142f43019760eb35b2943d6e + name: 'Device state' + mappings: + - value: '0' + newvalue: offline + - value: '1' + newvalue: online + - value: '2' + newvalue: initialized + - value: '10' + newvalue: unknown + - uuid: 7103250a11c3401baca90278e7b501ad + name: 'LAN state' + mappings: + - value: '0' + newvalue: disabled + - value: '1' + newvalue: enabled + - value: '2' + newvalue: unknown + - uuid: 52c5d0ff693e4bb48ed3511ce4360c1e + name: 'PIN status' + mappings: + - value: '0' + newvalue: UNKNOWN + - value: '1' + newvalue: READY + - value: '2' + newvalue: 'PIN REQUIRED' diff --git a/D-Link_DES_7200_by_SNMP.yaml b/D-Link_DES_7200_by_SNMP.yaml new file mode 100644 index 0000000..8c7a9c4 --- /dev/null +++ b/D-Link_DES_7200_by_SNMP.yaml @@ -0,0 +1,1722 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 395184b5d5b048a68e06c91154c56847 + template: 'D-Link DES 7200 by SNMP' + name: 'D-Link DES 7200 by SNMP' + description: | + Template D-Link DES 7200 + + MIBs used: + ENTITY-MIBdescription has changed + IF-MIB + MY-PROCESS-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + MY-MEMORY-MIB + ENTITY-MIB + MY-SYSTEM-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: caa6811dace14784abd7136ddfbcec8b + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a568e0a3c0074e6dbad92890067976f3 + expression: 'max(/D-Link DES 7200 by SNMP/icmpping,#3)=0' + name: 'D-Link DES 7200: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: d18c1a0dbab64f238e82025d2c27b392 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 12dea4dbaa3c4ef1a53456090ae3eb0e + expression: 'min(/D-Link DES 7200 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/D-Link DES 7200 by SNMP/icmppingloss,5m)<100' + name: 'D-Link DES 7200: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'D-Link DES 7200: Unavailable by ICMP ping' + expression: 'max(/D-Link DES 7200 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 117fec4f68ad4782a0b0407bc465a31b + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 88f2c517c1ba4f7881491a4b2b7f7ad0 + expression: 'avg(/D-Link DES 7200 by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'D-Link DES 7200: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'D-Link DES 7200: High ICMP ping loss' + expression: 'min(/D-Link DES 7200 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/D-Link DES 7200 by SNMP/icmppingloss,5m)<100' + - name: 'D-Link DES 7200: Unavailable by ICMP ping' + expression: 'max(/D-Link DES 7200 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2a3acf94555d457d8837c6e75abbbf34 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: aba1f89a56504dde9d0d6a60bafa9552 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ec0e7cc71b39447087f580569559a6d6 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.10.97.2.36.1.1.3.0]' + key: 'system.cpu.util[myCPUUtilization5Min.0]' + value_type: FLOAT + units: '%' + description: | + MIB: MY-PROCESS-MIB + The CPU utilization expressed in %. + tags: + - tag: component + value: cpu + triggers: + - uuid: 6e12ba6b60b94ec6bf531b4bb234dc80 + expression: 'min(/D-Link DES 7200 by SNMP/system.cpu.util[myCPUUtilization5Min.0],5m)>{$CPU.UTIL.CRIT}' + name: 'D-Link DES 7200: High CPU utilization' + event_name: 'D-Link DES 7200: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 26752257ad0f4bc58f678c247524c4cc + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c48928c7392d472d950804ee30936f0f + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.9.1]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIBdescription has changed' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 7d8f92f3c5df4b5091f49e07e50fae44 + expression: 'last(/D-Link DES 7200 by SNMP/system.hw.firmware,#1)<>last(/D-Link DES 7200 by SNMP/system.hw.firmware,#2) and length(last(/D-Link DES 7200 by SNMP/system.hw.firmware))>0' + name: 'D-Link DES 7200: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9461071bb9fa44909aa181779c894a7b + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 68631d04f4a94b83901bad116fe68198 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: fd86860f9ebc42b1970a845b7940daed + name: 'Hardware version(revision)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.8.1]' + key: system.hw.version + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 64e931125c274e788b2f68dcb21725d8 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: fcf0be13144245568817543cfc47c006 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 0c7a629e028e489c89647bf3ca51850e + expression: 'last(/D-Link DES 7200 by SNMP/system.name,#1)<>last(/D-Link DES 7200 by SNMP/system.name,#2) and length(last(/D-Link DES 7200 by SNMP/system.name))>0' + name: 'D-Link DES 7200: System name has changed' + event_name: 'D-Link DES 7200: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: fb250daeb7e643f4b2f78ede9e26b8ec + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f50184058d4549a1be9bae19c0743a84 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8d31f35a9d8842f086a123014bfd27ad + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.10.97.2.1.1.2.0]' + key: 'system.sw.os[mySystemSwVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: MY-SYSTEM-MIB' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 01ca34ebe7a94ed3b3e5ee8320ebce73 + expression: 'last(/D-Link DES 7200 by SNMP/system.sw.os[mySystemSwVersion.0],#1)<>last(/D-Link DES 7200 by SNMP/system.sw.os[mySystemSwVersion.0],#2) and length(last(/D-Link DES 7200 by SNMP/system.sw.os[mySystemSwVersion.0]))>0' + name: 'D-Link DES 7200: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possible reasons that system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'D-Link DES 7200: System name has changed' + expression: 'last(/D-Link DES 7200 by SNMP/system.name,#1)<>last(/D-Link DES 7200 by SNMP/system.name,#2) and length(last(/D-Link DES 7200 by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 4ca2130529464dc9ba9355a915c7e539 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: dc5b0dda2d684665a5444e39db5e2257 + expression: 'max(/D-Link DES 7200 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'D-Link DES 7200: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'D-Link DES 7200: Unavailable by ICMP ping' + expression: 'max(/D-Link DES 7200 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 5e0940a9219c4d3094c85777e89c63a6 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.171.10.97.2.1.1.21.1.3]' + key: fan.discovery + delay: 1h + item_prototypes: + - uuid: 77005f8940f44f47abe28debbcea1573 + name: '{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.10.97.2.1.1.21.1.2.{#SNMPINDEX}]' + key: 'sensor.fan.status[mySystemFanIsNormal.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: MY-SYSTEM-MIB' + valuemap: + name: 'MY-SYSTEM-MIB::mySystemFanIsNormal' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: a5cb052573394829877fdc6bf3d501c0 + expression: 'count(/D-Link DES 7200 by SNMP/sensor.fan.status[mySystemFanIsNormal.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'D-Link DES 7200: {#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 80a71c76148f4408993f4d2fba2aac4c + name: 'Memory Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.171.10.97.2.35.1.1.1.2]' + key: memory.discovery + delay: 1h + item_prototypes: + - uuid: aa68024ac558424a8147f8d1e59a7b50 + name: '{#SNMPINDEX}: Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.10.97.2.35.1.1.1.3.{#SNMPINDEX}]' + key: 'vm.memory.util[myMemoryPoolCurrentUtilization.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: MY-MEMORY-MIB + This is the memory pool utilization currently. + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: fd484f9b3a6a414fb2bba47d5804cc62 + expression: 'min(/D-Link DES 7200 by SNMP/vm.memory.util[myMemoryPoolCurrentUtilization.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'D-Link DES 7200: {#SNMPINDEX}: High memory utilization' + event_name: 'D-Link DES 7200: {#SNMPINDEX}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: b1d8dafbce0c4b6abc0ad18f2a91d1e3 + name: '{#SNMPINDEX}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'D-Link DES 7200 by SNMP' + key: 'vm.memory.util[myMemoryPoolCurrentUtilization.{#SNMPINDEX}]' + - uuid: dfac422a3258458da066517e1e52588b + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 7a62806cac634abcae4e62077eff9dfe + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: afc0471bfc314108b01544fac5acd62e + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ad7d24d91cb94c44849ecb6452f8015d + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 42fd86abfb7542ef98d1aa38a2b2296a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 85c4804fcef04f8d8dc5d85c0e304144 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 663d3019261746c8893449dbc68facca + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: aa85e35f21e2466798b15f98ac95837c + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bca43e91bec842b6b0c29b9ce55eb1a2 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8d5d2b10f5c541d9858b124ca3ea23aa + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'D-Link DES 7200: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: fb1305c657c34021adbc6e260d880495 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 04d35a5ff5d34caf91f354b76677f78e + expression: | + change(/D-Link DES 7200 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/D-Link DES 7200 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/D-Link DES 7200 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/D-Link DES 7200 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/D-Link DES 7200 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/D-Link DES 7200 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/D-Link DES 7200 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/D-Link DES 7200 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/D-Link DES 7200 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/D-Link DES 7200 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'D-Link DES 7200: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'D-Link DES 7200: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 76191d56356c4f389e3b7ca182ac28b2 + expression: | + (avg(/D-Link DES 7200 by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/D-Link DES 7200 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/D-Link DES 7200 by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/D-Link DES 7200 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/D-Link DES 7200 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/D-Link DES 7200 by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/D-Link DES 7200 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/D-Link DES 7200 by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/D-Link DES 7200 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'D-Link DES 7200: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'D-Link DES 7200: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'D-Link DES 7200: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: d9f6f23364c54fd1984fe049a4fc16e4 + expression: | + min(/D-Link DES 7200 by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/D-Link DES 7200 by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/D-Link DES 7200 by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/D-Link DES 7200 by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'D-Link DES 7200: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'D-Link DES 7200: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'D-Link DES 7200: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/D-Link DES 7200 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 688599e428b04777be52f49a860d8ba6 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'D-Link DES 7200 by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'D-Link DES 7200 by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'D-Link DES 7200 by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'D-Link DES 7200 by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'D-Link DES 7200 by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'D-Link DES 7200 by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 1290d8eb44564a15b98d212c6f007b05 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.171.10.97.2.1.1.18.1.3]' + key: psu.discovery + delay: 1h + item_prototypes: + - uuid: 949bf64a7d75429586292fd0acf4b84e + name: '{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.10.97.2.1.1.18.1.2.{#SNMPINDEX}]' + key: 'sensor.psu.status[mySystemElectricalSourceIsNormal.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: MY-SYSTEM-MIB' + valuemap: + name: 'MY-SYSTEM-MIB::mySystemFanIsNormal' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 4cc6f58430374fc4b2f1bced4e2097f6 + expression: 'count(/D-Link DES 7200 by SNMP/sensor.psu.status[mySystemElectricalSourceIsNormal.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'D-Link DES 7200: {#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d596adf697c1431cbe1244fe2737ca55 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.171.10.97.2.1.1.23.1.2]' + key: temperature.discovery + delay: 1h + item_prototypes: + - uuid: d861801102794d989895b4546a0e10fb + name: '{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.10.97.2.1.1.23.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.value[mySystemTemperatureCurrent.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: MY-SYSTEM-MIB + Return the current temperature of the FastSwitch.The temperature display is not supported for the current temperature returns to 0. + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b675df20392d458f9a53dace6bde978a + expression: 'avg(/D-Link DES 7200 by SNMP/sensor.temp.value[mySystemTemperatureCurrent.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/D-Link DES 7200 by SNMP/sensor.temp.value[mySystemTemperatureCurrent.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'D-Link DES 7200: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'D-Link DES 7200: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8486ed430ee24b13b65786e5b4857684 + expression: 'avg(/D-Link DES 7200 by SNMP/sensor.temp.value[mySystemTemperatureCurrent.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/D-Link DES 7200 by SNMP/sensor.temp.value[mySystemTemperatureCurrent.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'D-Link DES 7200: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'D-Link DES 7200: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'D-Link DES 7200: {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/D-Link DES 7200 by SNMP/sensor.temp.value[mySystemTemperatureCurrent.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/D-Link DES 7200 by SNMP/sensor.temp.value[mySystemTemperatureCurrent.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ef5a9113e96d4cc095d384cbeeef9bc5 + expression: 'avg(/D-Link DES 7200 by SNMP/sensor.temp.value[mySystemTemperatureCurrent.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/D-Link DES 7200 by SNMP/sensor.temp.value[mySystemTemperatureCurrent.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'D-Link DES 7200: {#SNMPVALUE}: Temperature is too low' + event_name: 'D-Link DES 7200: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: des7200 + - tag: target + value: dlink + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '5' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '5' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '65' + dashboards: + - uuid: b0a1600fd45442e0adec8990b2216f0b + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'D-Link DES 7200 by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 538fac0622da44f6983715e4ab5174d8 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 111695131cb1419e910bec80a4b8e799 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 5889e276245d411bacd130427ae4a5d4 + name: 'MY-SYSTEM-MIB::mySystemFanIsNormal' + mappings: + - value: '1' + newvalue: noexist + - value: '2' + newvalue: existnopower + - value: '3' + newvalue: existreadypower + - value: '4' + newvalue: normal + - value: '5' + newvalue: powerbutabnormal + - value: '6' + newvalue: unknown + - uuid: 613f2da376b04842aad29125788f0b91 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 73baa4be94844904b9a6fc06152a948a + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 6b200163bfcd4899a82bcf98aa026aa2 + expression: '(last(/D-Link DES 7200 by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/D-Link DES 7200 by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/D-Link DES 7200 by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/D-Link DES 7200 by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'D-Link DES 7200: Host has been restarted' + event_name: 'D-Link DES 7200: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'D-Link DES 7200: No SNMP data collection' + expression: 'max(/D-Link DES 7200 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 7d05108847574098a7a15db5faf12b7c + name: 'D-Link DES 7200: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'D-Link DES 7200 by SNMP' + key: 'system.cpu.util[myCPUUtilization5Min.0]' diff --git a/D-Link_DES_DGS_Switch_by_SNMP.yaml b/D-Link_DES_DGS_Switch_by_SNMP.yaml new file mode 100644 index 0000000..a775701 --- /dev/null +++ b/D-Link_DES_DGS_Switch_by_SNMP.yaml @@ -0,0 +1,1865 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: d3176749a5274264938f487cd89d17eb + template: 'D-Link DES_DGS Switch by SNMP' + name: 'D-Link DES_DGS Switch by SNMP' + description: | + Template D-Link DES_DGS Switch + + MIBs used: + EQUIPMENT-MIB + IF-MIB + DLINK-AGENT-MIB + EtherLike-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + ENTITY-MIB + + Known Issues: + + Description: D-Link reports missing PSU as fail(4) + Version: Firmware: 1.73R008,hardware revision: B1 + Device: DGS-3420-26SC Gigabit Ethernet Switch + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 09fada9334444d18b149b2fa0e39ac76 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5d134da7ad044ab591e1b96e1dca1641 + expression: 'max(/D-Link DES_DGS Switch by SNMP/icmpping,#3)=0' + name: 'D-Link DES_DGS Switch: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 1c2d54095100404c8e03b179f5df1761 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9c48d97b5d4a4668ad382e1d0d9c8e87 + expression: 'min(/D-Link DES_DGS Switch by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/D-Link DES_DGS Switch by SNMP/icmppingloss,5m)<100' + name: 'D-Link DES_DGS Switch: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'D-Link DES_DGS Switch: Unavailable by ICMP ping' + expression: 'max(/D-Link DES_DGS Switch by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3f66e84f94254655add99a1152225df7 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 3959884457a7420a9a9007c550d9b886 + expression: 'avg(/D-Link DES_DGS Switch by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'D-Link DES_DGS Switch: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'D-Link DES_DGS Switch: High ICMP ping loss' + expression: 'min(/D-Link DES_DGS Switch by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/D-Link DES_DGS Switch by SNMP/icmppingloss,5m)<100' + - name: 'D-Link DES_DGS Switch: Unavailable by ICMP ping' + expression: 'max(/D-Link DES_DGS Switch by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c7c836a53c134dcda931ef9dba401f35 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 29ee9181892b49a081299688f8c47798 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9d265ce34e9344c6875497e7ed0ebc89 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.12.1.1.6.2.0]' + key: 'system.cpu.util[agentCPUutilizationIn1min.0]' + value_type: FLOAT + units: '%' + description: | + MIB: DLINK-AGENT-MIB + The unit of time is 1 minute. The value will be between 0% (idle) and 100%(very busy). + tags: + - tag: component + value: cpu + triggers: + - uuid: 621c4933fd9c4b78aae1eedada7ffedf + expression: 'min(/D-Link DES_DGS Switch by SNMP/system.cpu.util[agentCPUutilizationIn1min.0],5m)>{$CPU.UTIL.CRIT}' + name: 'D-Link DES_DGS Switch: High CPU utilization' + event_name: 'D-Link DES_DGS Switch: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 188e1d65459f40a48c3bc0f444024a00 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8e6d4c6568c54aeeb745c5ba43945174 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.9.1]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 40a2ad291ded4bf9bc72adc2b8653b98 + expression: 'last(/D-Link DES_DGS Switch by SNMP/system.hw.firmware,#1)<>last(/D-Link DES_DGS Switch by SNMP/system.hw.firmware,#2) and length(last(/D-Link DES_DGS Switch by SNMP/system.hw.firmware))>0' + name: 'D-Link DES_DGS Switch: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: cc6cdf26ee0f4c5682c956c0ac741898 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 3dd0e86421b5410f9c34680650a0d9a5 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.12.1.1.12.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: DLINK-AGENT-MIB + A text string containing the serial number of this device. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 3aa2e47f4b8145b8a5e4f67b0987ca2b + expression: 'last(/D-Link DES_DGS Switch by SNMP/system.hw.serialnumber,#1)<>last(/D-Link DES_DGS Switch by SNMP/system.hw.serialnumber,#2) and length(last(/D-Link DES_DGS Switch by SNMP/system.hw.serialnumber))>0' + name: 'D-Link DES_DGS Switch: Device has been replaced' + event_name: 'D-Link DES_DGS Switch: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e4706d07b0824ccb8f4ee7ccec10a388 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 06e2bd7f602140f49685ae8dbfa44660 + name: 'Hardware version(revision)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.8.1]' + key: system.hw.version + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 22473cfba211477ab8fbbb52c814de0d + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 38d68b0f6cd4445b966ead7e7301ae86 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 91e1a9f579c64954a89b6efbf6b523dd + expression: 'last(/D-Link DES_DGS Switch by SNMP/system.name,#1)<>last(/D-Link DES_DGS Switch by SNMP/system.name,#2) and length(last(/D-Link DES_DGS Switch by SNMP/system.name))>0' + name: 'D-Link DES_DGS Switch: System name has changed' + event_name: 'D-Link DES_DGS Switch: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 5ca0653d792d42d1aebba51b36d5cf31 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 5697ce18530b44f5a7e342344ecfe89a + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 459f95874d194c7da40752f0336034be + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2b56c7cfef454441863d2f7cc01a330f + expression: 'max(/D-Link DES_DGS Switch by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'D-Link DES_DGS Switch: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'D-Link DES_DGS Switch: Unavailable by ICMP ping' + expression: 'max(/D-Link DES_DGS Switch by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 8e7fe508f2ee4304a6097cabaf93b44f + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.171.12.11.1.7.1.2,{#STATUS},1.3.6.1.4.1.171.12.11.1.7.1.3]' + key: fan.discovery + delay: 1h + filter: + conditions: + - macro: '{#STATUS}' + value: '[^0]' + formulaid: A + description: 'swFanID of EQUIPMENT-MIB::swFanTable' + item_prototypes: + - uuid: 9fec4303859d411db13a470374862232 + name: '#{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.12.11.1.7.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[swFanStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: EQUIPMENT-MIB + Indicates the current fan status. + speed-0 : If the fan function is normal and the fan does not spin due to the temperature not reaching the threshold, the status of the fan is speed 0. + speed-low : Fan spin using the lowest speed. + speed-middle: Fan spin using the middle speed. + speed-high : Fan spin using the highest speed. + valuemap: + name: 'EQUIPMENT-MIB::swFanStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: e8cb2d8bc3ee44c58c5111d3ead41d1b + expression: 'count(/D-Link DES_DGS Switch by SNMP/sensor.fan.status[swFanStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0e1d87089c084979ade1f58cdedd42f8 + name: 'Memory Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.171.12.1.1.9.1.1]' + key: memory.discovery + delay: 1h + item_prototypes: + - uuid: ec82ef56dce54315a905721bd0cabaa6 + name: '#{#SNMPVALUE}: Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.12.1.1.9.1.4.{#SNMPINDEX}]' + key: 'vm.memory.util[agentDRAMutilization.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: DLINK-AGENT-MIB + The percentage of used DRAM memory of the total DRAM memory available.The value will be between 0%(idle) and 100%(very busy) + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 29352d2cb80f47d98ca6c6d6d366a29f + expression: 'min(/D-Link DES_DGS Switch by SNMP/vm.memory.util[agentDRAMutilization.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: High memory utilization' + event_name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 769bb6f6d6cd455fbbcd1e75e44d24ec + name: '#{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'D-Link DES_DGS Switch by SNMP' + key: 'vm.memory.util[agentDRAMutilization.{#SNMPINDEX}]' + - uuid: 86c7d09fe6bc4a93b634230290bcf851 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: c0ce842d655a4bbba3759c557d8fba27 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 05ac64b0b74e4e048bbf86c077f23d40 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b80ca5f6547b42cba3b873fe58448988 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b2eafe0414924c82879bf9f389e7936f + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 151f1946a56d4ce7b7fe30d2e92f97ef + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e9ff8b57e89c4dc787f35ea8dd9c3040 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fd5324614a554b20bead9a9300c3b800 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b3f4568fbaed497aaf2ebcbfc1a385a6 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6a8f2b5cd5ec4b8a9e5d35f551a756e0 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'D-Link DES_DGS Switch: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 2c8eadb9d69f4adb833f01bed8e18531 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e645a0cf5e4f47a5af03f0108070d4e4 + expression: | + change(/D-Link DES_DGS Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/D-Link DES_DGS Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/D-Link DES_DGS Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/D-Link DES_DGS Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/D-Link DES_DGS Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/D-Link DES_DGS Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/D-Link DES_DGS Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/D-Link DES_DGS Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/D-Link DES_DGS Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/D-Link DES_DGS Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'D-Link DES_DGS Switch: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'D-Link DES_DGS Switch: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 8afaa3fc79404673880795d7d7dbabd8 + expression: | + (avg(/D-Link DES_DGS Switch by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/D-Link DES_DGS Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/D-Link DES_DGS Switch by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/D-Link DES_DGS Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/D-Link DES_DGS Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/D-Link DES_DGS Switch by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/D-Link DES_DGS Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/D-Link DES_DGS Switch by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/D-Link DES_DGS Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'D-Link DES_DGS Switch: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'D-Link DES_DGS Switch: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'D-Link DES_DGS Switch: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 28ae5085f4ab432ea281658f1439ada1 + expression: | + min(/D-Link DES_DGS Switch by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/D-Link DES_DGS Switch by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/D-Link DES_DGS Switch by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/D-Link DES_DGS Switch by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'D-Link DES_DGS Switch: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'D-Link DES_DGS Switch: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'D-Link DES_DGS Switch: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/D-Link DES_DGS Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 5742d0a3c579424e951c8b48f626fe4e + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'D-Link DES_DGS Switch by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'D-Link DES_DGS Switch by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'D-Link DES_DGS Switch by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'D-Link DES_DGS Switch by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'D-Link DES_DGS Switch by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'D-Link DES_DGS Switch by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: eb78fe16041440cb95d98ae01d53007d + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: 986a658678e2465997ad152317f6cf34 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d68607dce04f429ab8cd7e8adb5b60f1 + expression: 'last(/D-Link DES_DGS Switch by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'D-Link DES_DGS Switch: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + - uuid: 57ec484412604bf091a2b8a5be1dff3e + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.171.12.11.1.6.1.2,{#STATUS},1.3.6.1.4.1.171.12.11.1.6.1.3]' + key: psu.discovery + delay: 1h + filter: + conditions: + - macro: '{#STATUS}' + value: '[^0]' + formulaid: A + description: 'swPowerID of EQUIPMENT-MIB::swPowerTable' + item_prototypes: + - uuid: 7e87cca325f94ac091723f4dcef5ef26 + name: '#{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.12.11.1.6.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[swPowerStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: EQUIPMENT-MIB + Indicates the current power status. + lowVoltage : The voltage of the power unit is too low. + overCurrent: The current of the power unit is too high. + working : The power unit is working normally. + fail : The power unit has failed. + connect : The power unit is connected but not powered on. + disconnect : The power unit is not connected. + valuemap: + name: 'EQUIPMENT-MIB::swPowerStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: aabaa197e62649cd929353f131c3fa00 + expression: 'count(/D-Link DES_DGS Switch by SNMP/sensor.psu.status[swPowerStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 17702e5430f943fc9ebeefdbdd363e58 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.171.12.11.1.8.1.1]' + key: temperature.discovery + delay: 1h + item_prototypes: + - uuid: a84312b0296a432a948e6065c20749f1 + name: '#{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.171.12.11.1.8.1.2.{#SNMPINDEX}]' + key: 'sensor.temp.value[swTemperatureCurrent.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: EQUIPMENT-MIB + The shelf current temperature. + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 0cbd0c61e07245af863a19f296f38195 + expression: 'avg(/D-Link DES_DGS Switch by SNMP/sensor.temp.value[swTemperatureCurrent.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/D-Link DES_DGS Switch by SNMP/sensor.temp.value[swTemperatureCurrent.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bc0c87dbf83e49dab264e9f2bf1bb418 + expression: 'avg(/D-Link DES_DGS Switch by SNMP/sensor.temp.value[swTemperatureCurrent.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/D-Link DES_DGS Switch by SNMP/sensor.temp.value[swTemperatureCurrent.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/D-Link DES_DGS Switch by SNMP/sensor.temp.value[swTemperatureCurrent.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/D-Link DES_DGS Switch by SNMP/sensor.temp.value[swTemperatureCurrent.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8d93aea3774d4a3bbd98127273c648d1 + expression: 'avg(/D-Link DES_DGS Switch by SNMP/sensor.temp.value[swTemperatureCurrent.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/D-Link DES_DGS Switch by SNMP/sensor.temp.value[swTemperatureCurrent.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: Temperature is too low' + event_name: 'D-Link DES_DGS Switch: #{#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: des-dgs + - tag: target + value: dlink + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '2' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '4' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '65' + dashboards: + - uuid: 46b0449a409740cabef1f03f10b5e453 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'D-Link DES_DGS Switch by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: e7ab460cf1bf4fca8afc22566257fc3a + name: 'EQUIPMENT-MIB::swFanStatus' + mappings: + - value: '0' + newvalue: other + - value: '1' + newvalue: working + - value: '2' + newvalue: fail + - value: '3' + newvalue: speed-0 + - value: '4' + newvalue: speed-low + - value: '5' + newvalue: speed-middle + - value: '6' + newvalue: speed-high + - uuid: a46e6b21933f4aa7be17f9f11b1356ee + name: 'EQUIPMENT-MIB::swPowerStatus' + mappings: + - value: '0' + newvalue: other + - value: '1' + newvalue: lowVoltage + - value: '2' + newvalue: overCurrent + - value: '3' + newvalue: working + - value: '4' + newvalue: fail + - value: '5' + newvalue: connect + - value: '6' + newvalue: disconnect + - uuid: a5032b272e4c4208b16ce190833103b0 + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 2bdac31f40b04baaa131ebedde8d5077 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: d050b91fbb5c406b8b59e4e66d3c783e + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 1012a8cf8ce34825aae3ffbb36ee1313 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 93ebe10df982453aa98621c1f1d070f9 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 7a51877b860a479da9bc9f02ee36e01f + expression: '(last(/D-Link DES_DGS Switch by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/D-Link DES_DGS Switch by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/D-Link DES_DGS Switch by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/D-Link DES_DGS Switch by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'D-Link DES_DGS Switch: Host has been restarted' + event_name: 'D-Link DES_DGS Switch: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'D-Link DES_DGS Switch: No SNMP data collection' + expression: 'max(/D-Link DES_DGS Switch by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: cd6d0f71490c4bbe82a72ca52d9d3044 + name: 'D-Link DES_DGS Switch: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'D-Link DES_DGS Switch by SNMP' + key: 'system.cpu.util[agentCPUutilizationIn1min.0]' diff --git a/DELL_PowerEdge_R660_by_HTTP.yaml b/DELL_PowerEdge_R660_by_HTTP.yaml new file mode 100644 index 0000000..1c25572 --- /dev/null +++ b/DELL_PowerEdge_R660_by_HTTP.yaml @@ -0,0 +1,3857 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 185867ae9b4a46b59d53931d3330c770 + template: 'DELL PowerEdge R660 by HTTP' + name: 'DELL PowerEdge R660 by HTTP' + description: | + Template for DELL PowerEdge R660 servers with iDRAC 8/9 firmware 4.32 and later and Redfish API enabled. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 0aa82279099d4599acd24f1cf4eccc40 + name: 'Get array controller resources' + type: SCRIPT + key: dell.server.array.resources.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Controller', 'Discovery', params); + + const controllers = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage?$expand=.($levels=1)'), 'Members'); + + var arrControllerKeys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'slot', + 'path': 'Oem.Dell.DellController.PCISlot' + } + ]; + + var battControllerKeys = [ + { + 'name': 'id', + 'path': 'Oem.Dell.DellControllerBattery.Id' + }, + { + 'name': 'name', + 'path': 'Oem.Dell.DellControllerBattery.Name' + }, + { + 'name': 'status', + 'path': 'Oem.Dell.DellControllerBattery.PrimaryStatus' + } + ]; + + if (!Array.isArray(controllers)) { + throw 'Unexpected type for controllers.'; + } + + var buffer = { 'arrayControllers': [], 'batteryControllers': [] }; + + controllers.forEach(function (controller) { + if (controller['Id'].search('RAID') > -1) { + buffer['arrayControllers'].push(dell.extractData(controller, arrControllerKeys, true)); + buffer['batteryControllers'].push(dell.extractData(controller, battControllerKeys, true)); + } + }); + + return JSON.stringify(buffer); + description: 'Returns array controller resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 7aa73c13af5a43b6b956362d7e9f2742 + name: 'Get disks' + type: SCRIPT + key: dell.server.disks.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Discovery', params); + + const disks = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'name', + 'path': 'Name' + } + ]; + + if (!Array.isArray(disks)) { + throw 'Unexpected type for disks.'; + } + + var buffer = { 'physicalDisks': [], 'virtualDisks': [] }; + + disks.forEach(function (disk) { + var requests = [{ 'usage': 'physicalDisks', 'path': '', 'target': 'Drives' }, { 'usage': 'virtualDisks', 'path': '/Volumes', 'target': 'Members' }]; + + requests.forEach(function (request) { + const disks = dell.extractData(dell.executeRequest(disk['@odata.id'] + request['path']), request['target']); + + if (!Array.isArray(disks) || disks.length <= 0) { + return; + } + + disks.forEach(function (drive) { + buffer[request['usage']].push(dell.extractData(dell.executeRequest(drive['@odata.id']), keys)); + }); + }); + }); + + return JSON.stringify(buffer); + description: 'Returns storage resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 103aad19a3374c3ca5817a6f9e3b5401 + name: 'Firmware version' + type: DEPENDENT + key: dell.server.hw.firmware + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the firmware version of a remote access card.' + preprocessing: + - type: JSONPATH + parameters: + - $.firmware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: e6688a178fab46d59cc685a223767a12 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.hw.firmware,#1)<>last(/DELL PowerEdge R660 by HTTP/dell.server.hw.firmware,#2) and length(last(/DELL PowerEdge R660 by HTTP/dell.server.hw.firmware))>0' + name: 'Dell R660: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1c77ed3fe70441228cd99475c70bf61e + name: 'Hardware model name' + type: DEPENDENT + key: dell.server.hw.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the model name of the system.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + - uuid: c87090e7bc7443e7ac8ec75e5ae8a549 + name: 'Hardware serial number' + type: DEPENDENT + key: dell.server.hw.serialnumber + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the service tag of the system.' + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - $.serialnumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: 62ece039dea440c7999f0b93bc32c40a + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.hw.serialnumber,#1)<>last(/DELL PowerEdge R660 by HTTP/dell.server.hw.serialnumber,#2) and length(last(/DELL PowerEdge R660 by HTTP/dell.server.hw.serialnumber))>0' + name: 'Dell R660: Device has been replaced' + event_name: 'Dell R660: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 02e6c6db566f42aaab92e0fbc634e37c + name: 'Get network interfaces' + type: SCRIPT + key: dell.server.net.iface.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Discovery', params); + + const netAdapters = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'id', + 'path': 'Id' + } + ]; + + if (!Array.isArray(netAdapters)) { + throw 'Unexpected type for network adapters.'; + } + + var buffer = []; + + netAdapters.forEach(function (netAdapter) { + const netPorts = dell.extractData(dell.executeRequest(netAdapter["@odata.id"] + '/NetworkPorts'), 'Members'); + + if (!Array.isArray(netPorts)) { + return; + } + + netPorts.forEach(function (netPort) { + buffer.push(dell.extractData(dell.executeRequest(netPort["@odata.id"]), keys)); + }) + + }); + + return JSON.stringify(buffer); + description: 'Returns network interfaces.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 228fc2bc5dc94052bb1eba79756e040f + name: 'Get sensors' + type: SCRIPT + key: dell.server.sensors.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + function formatPSU(psuObj) { + var foundPowerSupplies = [], + buffer = []; + + psuObj.forEach(function (obj) { + const psuName = obj['name'].split(' ')[0]; + + if (foundPowerSupplies.indexOf(psuName) === -1) { + foundPowerSupplies.push(psuName); + buffer.push({ + 'name': psuName, + [obj['type'].toLowerCase()]: {'reading': obj['reading'], 'health': obj['health']} + }); + } else { + buffer.forEach(function (bufferObj) { + + if (bufferObj['name'] === psuName) { + bufferObj[obj['type'].toLowerCase()] = {'reading': obj['reading'], 'health': obj['health']}; + + return; + } + }); + } + }) + return buffer; + }; + + function formatTemp(tempObj) { + tempObj.forEach(function (obj) { + obj.name = obj.name.split(' ').slice(0, -1).join(' '); + }); + + return tempObj; + } + + function formatSysBoard(sysObj) { + const remove = ['System', 'Board', 'Usage']; + + sysObj.forEach(function (obj) { + var buffer = []; + + obj['name'].split(' ').forEach(function (word) { + var match = false; + + remove.forEach(function (removeWord) { + if (removeWord === word) { + match = true; + } + }); + + if (!match) { + buffer.push(word); + } + }); + + if (buffer.length > 0) { + obj['name'] = buffer.join(' '); + } + }); + + return sysObj; + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Sensor', 'Discovery', params); + + const sensors = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/Sensors?$expand=.($levels=1)'), 'Members'); + + if (!Array.isArray(sensors)) { + throw 'Unexpected type for sensors.'; + } + + const keys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'context', + 'path': 'PhysicalContext' + }, + { + 'name': 'reading', + 'path': 'Reading' + }, + { + 'name': 'type', + 'path': 'ReadingType' + }, + { + 'name': 'health', + 'path': 'Status.Health' + } + ]; + + var buffer = { 'fan': [], 'psu': [], 'temperature': [], 'sysBoard': [] }; + + sensors.forEach(function (sensor) { + if (sensor['Name'].substring(0, 2) === 'PS' && sensor['PhysicalContext'] === 'PowerSupply') { + buffer['psu'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['ReadingType'] === 'Temperature') { + buffer['temperature'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('Fan') && sensor['ReadingType'] === 'Rotational') { + buffer['fan'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('System Board') && sensor['ReadingType'] === 'Percent') { + buffer['sysBoard'].push(dell.extractData(sensor, keys, true)); + } + }); + + buffer['psu'] = formatPSU(buffer['psu']); + buffer['temperature'] = formatTemp(buffer['temperature']); + buffer['sysBoard'] = formatSysBoard(buffer['sysBoard']); + + return JSON.stringify(buffer); + description: 'Returns sensors.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: fe81d663497d402c81b1e26fe4ea507e + name: 'Overall system health status' + type: DEPENDENT + key: dell.server.status + delay: '0' + trends: '0' + description: 'This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 2ccd53402fea446283e24ebfe5b32bdd + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.status,)=3' + name: 'Dell R660: Server is in a critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: d9c93ee01d284b319cdc1acc6919b834 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.status,)=2' + name: 'Dell R660: Server is in a warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: Server is in a critical state' + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.status,)=3' + tags: + - tag: scope + value: availability + - uuid: c264044dde3241089e003ea431cf98f2 + name: 'Get system' + type: SCRIPT + key: dell.server.system.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('System', 'Get system metrics', params); + + const requests = [ + { + 'path': '/redfish/v1/Systems/System.Embedded.1', + 'keys': [ + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'serialnumber', + 'path': 'Oem.Dell.DellSystem.ChassisServiceTag' + }, + { + 'name': 'status', + 'path': 'Status.Health' + } + ] + }, + { + 'path': '/redfish/v1/Managers/iDRAC.Embedded.1', + 'keys': { + 'name': 'firmware', + 'path': 'FirmwareVersion' + } + } + ]; + + var buffer = {}; + + for (var i = 0, requestsCount = requests.length; i < requestsCount; i++) { + Object.assign(buffer, dell.extractData(dell.executeRequest(requests[i].path), requests[i].keys)); + } + + return JSON.stringify(buffer); + description: 'Returns system metrics.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 0e1f349ff3804a99a1f274134d9a7fb8 + name: 'CPU utilization, in %' + type: DEPENDENT + key: dell.server.util.cpu + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: cpu + triggers: + - uuid: d342f09969114891ae47b50e6e03aa80 + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.WARN}' + name: 'Dell R660: CPU utilization is high' + event_name: 'Dell R660: Current CPU utilization is high (util >= {$DELL.HTTP.CPU.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R660: CPU utilization is too high' + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 7e5960ded30e450a89a153ef1612b03e + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + name: 'Dell R660: CPU utilization is too high' + event_name: 'Dell R660: Current CPU utilization is too high (util >= {$DELL.HTTP.CPU.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 8ba22cb80bd94ee4a92364b7efa1aaea + name: 'IO utilization, in %' + type: DEPENDENT + key: dell.server.util.io + delay: '0' + value_type: FLOAT + units: '%' + description: 'IO utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: io + triggers: + - uuid: 1fe2219883964e9d9db2fbc83a62f854 + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.WARN}' + name: 'Dell R660: IO utilization is high' + event_name: 'Dell R660: Current IO utilization is high (util >= {$DELL.HTTP.IO.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R660: IO utilization is too high' + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: eab83e0592ec4de7b219ae8a7e9eb54c + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + name: 'Dell R660: IO utilization is too high' + event_name: 'Dell R660: Current IO utilization is too high (util >= {$DELL.HTTP.IO.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 61370ae82d474daa961494bb3c7dc0f2 + name: 'Memory utilization, in %' + type: DEPENDENT + key: dell.server.util.mem + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: memory + triggers: + - uuid: 9f3501907030474580f28cbd602eb951 + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.WARN}' + name: 'Dell R660: Memory utilization is high' + event_name: 'Dell R660: Current memory utilization is high (util >= {$DELL.HTTP.MEM.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R660: Memory utilization is too high' + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 886fcdda4b7847fb9364d6c2f807641e + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + name: 'Dell R660: Memory utilization is too high' + event_name: 'Dell R660: Current memory utilization is too high (util >= {$DELL.HTTP.MEM.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: ae4ad90d5a8e437d940888d64554805f + name: 'SYS utilization, in %' + type: DEPENDENT + key: dell.server.util.sys + delay: '0' + value_type: FLOAT + units: '%' + description: 'SYS utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: sys + triggers: + - uuid: b9d668629940497dbf06e212f297dc2a + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.WARN}' + name: 'Dell R660: SYS utilization is high' + event_name: 'Dell R660: Current SYS utilization is high (util >= {$DELL.HTTP.SYS.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R660: IO utilization is too high' + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: be2e13c07a894816b6566101e31d017b + expression: 'min(/DELL PowerEdge R660 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.HIGH}' + name: 'Dell R660: SYS utilization is too high' + event_name: 'Dell R660: Current SYS utilization is too high (util >= {$DELL.HTTP.SYS.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 9ba8445ce392429a81191dbaffbaa919 + name: 'Redfish API status' + type: SIMPLE + key: 'net.tcp.service[https]' + description: | + Availability of Redfish API on the server. + Possible values: + 0 - Unavailable + 1 - Available + valuemap: + name: 'Redfish API availability' + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 28d07a7c2c914523b40d46bc8a19764a + expression: 'last(/DELL PowerEdge R660 by HTTP/net.tcp.service[https])=0' + name: 'Dell R660: Redfish API service is unavailable' + priority: HIGH + description: 'The service is unavailable or does not accept TCP connections.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 92a3b71de182481ba3add9cc77badf67 + name: 'Array controller discovery' + type: DEPENDENT + key: dell.server.array.discovery + delay: '0' + description: 'Discovery of disk array controllers.' + item_prototypes: + - uuid: 444a2f831e374f809f012d19e9ffb8fa + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.array.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.arrayControllers[?(@.id == "{#ID}")].health.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 61c75f4620e04c268abfa84f8dd0de95 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.array.status[{#ID}],)=3' + name: 'Dell R660: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 5b2ce324b7ed499eb7b0ccaba5132cfa + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.array.status[{#ID}],)=2' + name: 'Dell R660: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.array.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#CNTLR_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SLOT}' + path: $.slot + preprocessing: + - type: JSONPATH + parameters: + - $.arrayControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 038a5de592cd489d9e71de906ddb8d10 + name: 'Battery discovery' + type: DEPENDENT + key: dell.server.controller.battery.discovery + delay: '0' + description: 'Discovery of battery controllers.' + item_prototypes: + - uuid: cd2bad7a386a4a2dbcbc5ce1921aaa09 + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.controller.battery.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.batteryControllers[?(@.id == "{#ID}")].status.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: 24fe81eeb566444a9d97bd69b86a8929 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + name: 'Dell R660: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 5ca151f6f35b4dc6994f48ea3828f720 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.controller.battery.status[{#ID}],)=2' + name: 'Dell R660: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#BATTERY_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.batteryControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: e08b684570894b20b5f2b7978bbdc6cc + name: 'FAN discovery' + type: DEPENDENT + key: dell.server.fan.discovery + delay: '0' + description: 'Discovery of FAN sensors.' + item_prototypes: + - uuid: be494eecb65644b080bcc896503035e7 + name: 'Fan [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.fan.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: fan + - tag: component + value: raw + - uuid: 5704a3a505db486a806b52af48f48921 + name: 'Fan [{#SENSOR_NAME}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + delay: '0' + units: '!rpm' + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + - uuid: 3bcd23e100f54b1684667755be3cd9d0 + name: 'Fan [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 5b1c3844e374460799c186bbdfb57c4a + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + name: 'Dell R660: Fan [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 1d868e86dbf24639a90562a8e2adaa6f + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=2' + name: 'Dell R660: Fan [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: Fan [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 035fa59950af4f0caf91f4de59189ed5 + name: 'Dell R660: Fan [{#SENSOR_NAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.fan + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 2c726d35378a4eeba24d23e9cb8f7de4 + name: 'Network interface discovery' + type: DEPENDENT + key: dell.server.net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: c644bf0a447c4067bb4106860d98f813 + name: 'Interface [{#IFNAME}]: Get interface' + type: SCRIPT + key: 'dell.server.net.if.get[{#IFNAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Get metrics', params); + + const keys = [ + { + 'name': 'linkStatus', + 'path': 'LinkStatus' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'state', + 'path': 'Status.State' + }, + { + 'name': 'linkSpeed', + 'path': 'CurrentLinkSpeedMbps' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a network interface.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: network + - tag: component + value: raw + - uuid: b72384586f1e472ba4d286281523a430 + name: 'Interface [{#IFNAME}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.health[{#IFNAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 73c7ef1f002141a8abe53562d2d711ab + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + name: 'Dell R660: Interface [{#IFNAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 6afa44a6dfdc42129f40405ef2749d84 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.health[{#IFNAME}],)=2' + name: 'Dell R660: Interface [{#IFNAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: Interface [{#IFNAME}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: ef78ffb8dbfa4aa7b8d75ee67d0b6232 + name: 'Interface [{#IFNAME}]: Speed' + type: DEPENDENT + key: 'dell.server.net.if.speed[{#IFNAME}]' + delay: '0' + units: bps + description: 'The network port current link speed.' + preprocessing: + - type: JSONPATH + parameters: + - $.linkSpeed + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: d04f33b61a5b4fd6acdc89fe89e8d9f6 + name: 'Interface [{#IFNAME}]: State' + type: DEPENDENT + key: 'dell.server.net.if.state[{#IFNAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: 4b82f4e9ec27404e8340a9bff4dd54c9 + name: 'Interface [{#IFNAME}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#IFNAME}]' + delay: '0' + description: 'The status of the link between this port and its link partner. Possible values: Down, Up, null.' + valuemap: + name: 'Network interface status' + preprocessing: + - type: JSONPATH + parameters: + - $.linkStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'null': 1, + 'Down': 2, + 'Up': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: a0b08d93fbf042bda4cb17db3bfb8205 + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.status[{#IFNAME}],)=2 and last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.status[{#IFNAME}],)=3 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R660: Interface [{#IFNAME}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down (2). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down (2). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces). + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 1f1be4634d7344679afb26ecbab3955c + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.status[{#IFNAME}],)<2 and last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.net.if.status[{#IFNAME}],)>=2 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R660: Interface [{#IFNAME}]: Link status issue' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Null (1) or Unknown (0). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Null (1) or Unknown (0). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 461971c0e09446a5ae341bfc40dec119 + name: 'Dell R660: Interface [{#IFNAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: 'dell.server.net.if.speed[{#IFNAME}]' + master_item: + key: dell.server.net.iface.get + lld_macro_paths: + - lld_macro: '{#IFNAME}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 5f0b95a603074c96aafb395f6aedd873 + name: 'Physical disk discovery' + type: DEPENDENT + key: dell.server.physicaldisk.discovery + delay: '0' + description: 'Discovery of physical disks.' + item_prototypes: + - uuid: d1e4d411743040d3892769aa63e18b7f + name: 'Physical disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get physical disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'sn', + 'path': 'SerialNumber' + }, + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'mediaType', + 'path': 'MediaType' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a physical disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: physicaldisk + - tag: component + value: raw + - tag: component + value: storage + - uuid: 112cb35eb86748fc84fbc42cb2f27a68 + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The type of media contained in this drive. Possible values: HDD, SSD, SMR, null.' + preprocessing: + - type: JSONPATH + parameters: + - $.mediaType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 4bd6ed5e76e84b11b8819fa000ed4e34 + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model number of the drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 36243c8fa1ad4bb6b2a3f8f1ad8ceb99 + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.sn + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: bbe632a29504433791396747fd2b997c + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#1)<>last(/DELL PowerEdge R660 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#2) and length(last(/DELL PowerEdge R660 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]))>0' + name: 'Dell R660: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R660: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 66eef724488c40f0b9c45c394245c29f + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size, in bytes, of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: a2a221a5606744a883c2a914c32e8733 + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[{#DISK_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: f890c971cddc4c16a64bd35b716f9299 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + name: 'Dell R660: Physical disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: e87e58bbb41d40e39f1d1fae29fd9e4d + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=2' + name: 'Dell R660: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: Physical disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: e8963658181440d9b9fd711103ea7a89 + name: 'Dell R660: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.physicalDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: fa352e43355843d08901b70ade3a6926 + name: 'PSU discovery' + type: DEPENDENT + key: dell.server.psu.discovery + delay: '0' + description: 'Discovery of PSU sensors.' + item_prototypes: + - uuid: 575743aaeed14887b744111150773833 + name: 'Power supply [{#SENSOR_NAME}]: Current sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.current.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.current.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: a6b73b5c3bf74966b62044b9e0c6a269 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + name: 'Dell R660: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 94f3feb429f346e89194533627a63a1c + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=2' + name: 'Dell R660: Power supply [{#SENSOR_NAME}]: Current sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 855af0a279b840caad6283cb9b9e3a2f + name: 'Power supply [{#SENSOR_NAME}]: Current' + type: DEPENDENT + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: A + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.current.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: current + - tag: component + value: psu + - uuid: 0d563e9d3f1546ccb0a56afd0627c5ce + name: 'Power supply [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.psu.[?(@.name == ''{#SENSOR_NAME}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: psu + - tag: component + value: raw + - uuid: d480ce48057e4515827b02ed73e1bc2f + name: 'Power supply [{#SENSOR_NAME}]: Voltage sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 84715b0fca5348efb6b7e94f917d090f + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + name: 'Dell R660: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 2dcf0f63718a48d1a7e194c5c4c47c83 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=2' + name: 'Dell R660: Power supply [{#SENSOR_NAME}]: Voltage sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 5ec65db57336463f87efc6c479dcdae9 + name: 'Power supply [{#SENSOR_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + - tag: component + value: voltage + graph_prototypes: + - uuid: 4675b21a22ed4da6a018670f88fe06a2 + name: 'Dell R660: Power supply [{#SENSOR_NAME}]: Current' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + - uuid: 18e119c61b284952890d3168aeba7e09 + name: 'Dell R660: Power supply [{#SENSOR_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#SENSOR_NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.psu + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 212a1244a4f14afbbea66a06e3ff023f + name: 'Temperature discovery' + type: DEPENDENT + key: dell.server.temp.discovery + delay: '0' + description: 'Discovery of temperature sensors.' + item_prototypes: + - uuid: 3a43f6fa64e046e79d510e0d2eb00403 + name: 'Probe [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.temperature.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: raw + - tag: component + value: temperature + - uuid: 9a02c56447bf46138515a4964e859ae0 + name: 'Probe [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 004befed6db74f798e45e487809773dc + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + name: 'Dell R660: Probe [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: bd72de9242054f7e890424c4ef8401ac + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=2' + name: 'Dell R660: Probe [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: Probe [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: d9fb53a40fb141a3b480776dae81ca58 + name: 'Probe [{#SENSOR_NAME}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: °C + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: d30bc3325ef2458a8381ea06ede80762 + name: 'Dell R660: Probe [{#SENSOR_NAME}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.temperature + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 2638370591cd401e9738db1f11329ce6 + name: 'Virtual disk discovery' + type: DEPENDENT + key: dell.server.virtualdisk.discovery + delay: '0' + description: 'Discovery of virtual disks.' + item_prototypes: + - uuid: 2d70a9fc34e84fb4b57025fa47eabde8 + name: 'Virtual disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get virtual disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + }, + { + 'name': 'status', + 'path': 'Status.State' + }, + { + 'name': 'raidStatus', + 'path': 'Oem.Dell.DellVirtualDisk.RaidStatus' + }, + { + 'name': 'readCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.ReadCachePolicy' + }, + { + 'name': 'writeCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.WriteCachePolicy' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a virtual disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - tag: component + value: virtualdisk + - uuid: 28fc2dc811fd49198516c48e65a8cf94 + name: 'Virtual disk [{#DISK_NAME}]: RAID status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}]' + delay: '0' + description: 'This property represents the RAID specific status. Possible values: Blocked, Degraded, Failed, Foreign, Offline, Online, Ready, Unknown, null.' + valuemap: + name: 'Virtual disk RAID status' + preprocessing: + - type: JSONPATH + parameters: + - $.raidStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Blocked': 1, + 'Degraded': 2, + 'Failed': 3, + 'Foreign': 4, + 'Offline': 5, + 'Unknown': 6, + 'null': 7, + 'Ready': 8, + 'Online': 9, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 5669738f4dcc4cf892f2474227b52c26 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}],)<8' + name: 'Dell R660: Virtual disk [{#DISK_NAME}]: RAID status not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the disk for faults.' + tags: + - tag: scope + value: availability + - uuid: a4a0c80a539741c9aa1ebe2623cb61cf + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the read cache policy setting for the Volume. Possible values: ReadAhead, NoReadAhead, AdaptiveReadAhead.' + valuemap: + name: 'Virtual disk read policy' + preprocessing: + - type: JSONPATH + parameters: + - $.readCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'NoReadAhead': 1, + 'ReadAhead': 2, + 'AdaptiveReadAhead': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 375e1eff18f84210975e8726632eed75 + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size in bytes of this Volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 6d638199503a4287adbbbdcbe9c68152 + name: 'Virtual disk [{#DISK_NAME}]: Current state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[{#DISK_NAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 8e57ee881d9c46088f18fa6bcabe9f2d + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[{#DISK_NAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: b8e7795d584c41f083601b7d11119b49 + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + name: 'Dell R660: Virtual disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 2c9da958cf3749869b504eeb80005d9b + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=2' + name: 'Dell R660: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: Virtual disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: b55e8a16144541b0b4043ffa7e3e9679 + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the write cache policy setting for the Volume. Possible values: WriteThrough, WriteBack, ProtectedWriteBack, UnprotectedWriteBack.' + valuemap: + name: 'Virtual disk write policy' + preprocessing: + - type: JSONPATH + parameters: + - $.writeCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'WriteThrough': 1, + 'WriteBack': 2, + 'ProtectedWriteBack': 3, + 'UnprotectedWriteBack': 4, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: 4897862f7316481a9447bc70dd54214b + name: 'Dell R660: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.virtualDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.HTTP.API.PASSWORD}' + type: SECRET_TEXT + description: 'The Dell iDRAC user password.' + - macro: '{$DELL.HTTP.API.URL}' + value: '' + description: 'The Dell iDRAC Redfish API URL in the format `://:`.' + - macro: '{$DELL.HTTP.API.USER}' + value: '' + description: 'The Dell iDRAC username.' + - macro: '{$DELL.HTTP.CPU.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.CPU.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.HTTP.IO.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about IO utilization.' + - macro: '{$DELL.HTTP.IO.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about IO utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about memory utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about memory utilization.' + - macro: '{$DELL.HTTP.PROXY}' + description: 'Set an HTTP proxy for Redfish API requests if needed.' + - macro: '{$DELL.HTTP.REQUEST.TIMEOUT}' + value: 10s + description: 'Set the timeout for HTTP requests.' + - macro: '{$DELL.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + - macro: '{$DELL.HTTP.SYS.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about SYS utilization.' + - macro: '{$DELL.HTTP.SYS.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about SYS utilization.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "DELL PowerEdge", e.g. {$HTTP.TLS.VERIFY:"DELL PowerEdge"}.' + dashboards: + - uuid: 92c173b1b13142d197d9bac23f757a05 + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: gauge + name: 'CPU utilization' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: CPU + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.util.cpu + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'Memory utilization' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: MEM + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.util.mem + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'I/O utilization' + 'y': '6' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: I/O + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.util.io + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'SYS utilization' + 'y': '9' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: SYS + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.util.sys + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Redfish API' + x: '18' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Redfish API' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by HTTP' + key: 'net.tcp.service[https]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '18' + 'y': '3' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.hw.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + x: '18' + 'y': '6' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.hw.serialnumber + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '18' + 'y': '9' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.hw.firmware + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'System health' + x: '45' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.status + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '2' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Power supply*Voltage' + - type: STRING + name: items.1 + value: 'Power supply*Current' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Interface speed' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Speed' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAABA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '10000000' + - type: STRING + name: thresholds.2.color + value: FF980E + - type: STRING + name: thresholds.2.threshold + value: '100000000' + - type: STRING + name: thresholds.3.color + value: 069C56 + - type: STRING + name: thresholds.3.threshold + value: '1000000000' + - type: STRING + name: thresholds.4.color + value: 2196F3 + - type: STRING + name: thresholds.4.threshold + value: '10000000000' + - type: STRING + name: thresholds.5.color + value: 6C00D9 + - type: STRING + name: thresholds.5.threshold + value: '25000000000' + - type: STRING + name: thresholds.6.color + value: D900A6 + - type: STRING + name: thresholds.6.threshold + value: '40000000000' + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + valuemaps: + - uuid: 122afb9826d4493aa319b67025bd5e74 + name: 'Network interface status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: 'Null' + - value: '2' + newvalue: Down + - value: '3' + newvalue: Up + - uuid: 2cfad557b52d49f7a56f84323c7b098a + name: 'Redfish API availability' + mappings: + - value: '0' + newvalue: Unavailable + - value: '1' + newvalue: Available + - uuid: 0b3b101349fa4b4d94983d7fdae83679 + name: 'Redfish status health' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: OK + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - uuid: e9e6e46c13fe4bd0a29b65cad929c6bc + name: 'Redfish status state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Enabled + - value: '2' + newvalue: Disabled + - value: '3' + newvalue: Absent + - value: '4' + newvalue: Deferring + - value: '5' + newvalue: InTest + - value: '6' + newvalue: Quiesced + - value: '7' + newvalue: StandbyOffline + - value: '8' + newvalue: StandbySpare + - value: '9' + newvalue: Starting + - value: '10' + newvalue: UnavailableOffline + - value: '11' + newvalue: Updating + - uuid: 29051e06a48b444a8ee285cd185ae04f + name: 'Virtual disk RAID status' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: Blocked + - value: '2' + newvalue: Degraded + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Foreign + - value: '5' + newvalue: Offline + - value: '6' + newvalue: Unknown + - value: '7' + newvalue: 'Null' + - value: '8' + newvalue: Ready + - value: '9' + newvalue: Online + - uuid: ac7f30cf50cb459aaa41103c8fa6df1c + name: 'Virtual disk read policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: NoReadAhead + - value: '2' + newvalue: ReadAhead + - value: '3' + newvalue: AdaptiveReadAhead + - uuid: 39e0e7ddc8fd459e90fdb247caee7512 + name: 'Virtual disk write policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: WriteThrough + - value: '2' + newvalue: WriteBack + - value: '3' + newvalue: ProtectedWriteBack + - value: '4' + newvalue: UnprotectedWriteBack + graphs: + - uuid: 09fa360f516e4a8b84b88f0e503a806d + name: 'Dell R660: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.util.cpu + - uuid: e232b8717dd745b99d49ce3a0f22825e + name: 'Dell R660: IO utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.util.io + - uuid: f6b5a4da810742b3b1d8c77462483a10 + name: 'Dell R660: Memory utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.util.mem + - uuid: 82b7ad603aac49c4a952691f251bab87 + name: 'Dell R660: SYS utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by HTTP' + key: dell.server.util.sys diff --git a/DELL_PowerEdge_R660_by_SNMP.yaml b/DELL_PowerEdge_R660_by_SNMP.yaml new file mode 100644 index 0000000..4bf0f2b --- /dev/null +++ b/DELL_PowerEdge_R660_by_SNMP.yaml @@ -0,0 +1,2608 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 3ba7dec7c0034d86ad1c73b4f8ee8994 + template: 'DELL PowerEdge R660 by SNMP' + name: 'DELL PowerEdge R660 by SNMP' + description: | + Template for DELL PowerEdge R660 servers with iDRAC version 7 and later. + + MIBs used: + HOST-RESOURCES-MIB + IDRAC-MIB-SMIv2 + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 28e0c3b6ff414e8ea580a5efedd6d966 + name: 'SNMP walk RAID controllers table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2]' + key: dell.server.array.controller.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::controllerTable`.' + tags: + - tag: component + value: raw + - uuid: 4c75b80b0f224d02a835794592bb1df9 + name: 'SNMP walk Battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21]' + key: dell.server.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::batteryTable`.' + tags: + - tag: component + value: raw + - uuid: 10c7c6dfa9d645d19595f143cbeafb18 + name: 'BIOS version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.4.300.50.1.8.1.1]' + key: dell.server.bios.version + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the version name of the system BIOS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 543172398a8a46238b3b2d6e2e176db9 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'dell.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Name and contact information of the contact person for the node. If not provided, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: a92165c0788f4073b773a3ccc00d8e33 + name: 'SNMP walk Processor device tables' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.30.1.26,1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.1]' + key: dell.server.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Processor Device Status Table `IDRAC-MIB-SMIv2::processorDeviceTable` and `IDRAC-MIB-SMIv2::processorDeviceStatusTable`.' + tags: + - tag: component + value: raw + - uuid: ed8c53e78cf1430895f819a1c79f1881 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'dell.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating system, and networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: bfe85965ad6847b5913fc71ecd6b837d + name: 'SNMP walk Physical disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11]' + key: dell.server.disk.physical.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Physical Disk Table `IDRAC-MIB-SMIv2::physicalDiskTable`.' + tags: + - tag: component + value: raw + - uuid: b5c22682042045c9972cd6779d31dabd + name: 'SNMP walk Virtual disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4]' + key: dell.server.disk.virtual.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Virtual Disk Table `IDRAC-MIB-SMIv2::virtualDiskTable`.' + tags: + - tag: component + value: raw + - uuid: bd6d36c7568f43e884654e8f7cbb4606 + name: 'SNMP walk Cooling device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.12.1.5,1.3.6.1.4.1.674.10892.5.4.700.12.1.8,1.3.6.1.4.1.674.10892.5.4.700.12.1.7,1.3.6.1.4.1.674.10892.5.4.700.12.1.6]' + key: dell.server.fan.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Cooling Device Table `IDRAC-MIB-SMIv2::coolingDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 0523d1c71ec648d3b7f72152bcdd3980 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.1.8.0]' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the firmware version of a remote access card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 06ad53c66cf241d285dd0e4a19b30105 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#1)<>last(/DELL PowerEdge R660 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#2) and length(last(/DELL PowerEdge R660 by SNMP/dell.server.hw.firmware[racFirmwareVersion]))>0' + name: 'Dell R660: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3f474f2cc921445392d4153b4070c581 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.12.0]' + key: 'dell.server.hw.model[systemModelName]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the model name of the system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: cd1220099942408eab14e854a9f556fe + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.2.0]' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the service tag of the system. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: ab50b7de4a004c1bb8bae012e87a9fae + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#1)<>last(/DELL PowerEdge R660 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#2) and length(last(/DELL PowerEdge R660 by SNMP/dell.server.hw.serialnumber[systemServiceTag]))>0' + name: 'Dell R660: Device has been replaced' + event_name: 'Dell R660: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 86f3503ad4ce4210a9d367536075c78d + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.5.0]' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + trends: '0' + units: uptime + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the power-up time of the system in seconds. + tags: + - tag: component + value: system + - uuid: 94dacb3e9ce94c8abe29f5a1f3ed7414 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'dell.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., 'telephone closet, 3rd floor'). If the location is unknown, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: aa5060ea16f54e348d0093600bc1369b + name: 'Memory, total size' + type: CALCULATED + key: dell.server.memory.size.total + units: B + params: 'sum(last_foreach(//dell.server.memory.size[*]))' + description: 'Total memory amount on the device.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + triggers: + - uuid: 9f583d671b3842798f0bd4d50d395c6e + expression: 'change(/DELL PowerEdge R660 by SNMP/dell.server.memory.size.total)>0' + name: 'Dell R660: Memory amount has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 65592c126dd242e7b7fd9b574ed63281 + name: 'SNMP walk Memory device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1]' + key: dell.server.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Memory Device Table `IDRAC-MIB-SMIv2::memoryDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: feddc0222dab4e89a6caa661b67020a7 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'dell.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 59cb6156e1f84f0fb28beb51a8046da3 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.name[sysName],#1)<>last(/DELL PowerEdge R660 by SNMP/dell.server.name[sysName],#2) and length(last(/DELL PowerEdge R660 by SNMP/dell.server.name[sysName]))>0' + name: 'Dell R660: System name has changed' + event_name: 'Dell R660: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8d872ee881154af284dc295c0bb2a933 + name: 'SNMP walk Network device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1, 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1]' + key: dell.server.net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Network Device Table `IDRAC-MIB-SMIv2::networkDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 62a708d5e13b4d8fbf3d12b77164e2a0 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.6.3.10.2.1.3.0]' + key: 'dell.server.net.uptime[snmpEngineTime]' + trends: '0' + units: uptime + description: | + MIB: SNMP-FRAMEWORK-MIB + The number of seconds since the value of the snmpEngineBoots object last changed. + tags: + - tag: component + value: system + - uuid: 443fb640977a492f83cba1b7fb9454fe + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'dell.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 5b1a6a7a7adb4c32b66ae22e698b174f + name: 'SNMP walk Power supply table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.12.1.5,1.3.6.1.4.1.674.10892.5.4.600.12.1.8]' + key: dell.server.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Power Supply Table `IDRAC-MIB-SMIv2::powerSupplyTable`.' + tags: + - tag: component + value: raw + - uuid: 7e66e28304e24ddcaf79426b32070cb3 + name: 'SNMP walk Temperature sensor table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.20.1.1,1.3.6.1.4.1.674.10892.5.4.700.20.1.8,1.3.6.1.4.1.674.10892.5.4.700.20.1.6,1.3.6.1.4.1.674.10892.5.4.700.20.1.5]' + key: dell.server.sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Temperature Probe Table `IDRAC-MIB-SMIv2::temperatureProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 4acbcd1baf9e456a9d3e30d33282858a + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.1.0]' + key: 'dell.server.status[globalSystemStatus]' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 81762ad908ba492c897572f690606da3 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.DISASTER}' + name: 'Dell R660: System is in unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 04c60944973d402b9d3a0e96049c42ad + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + name: 'Dell R660: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for errors.' + tags: + - tag: scope + value: availability + - uuid: 31fbf1a98d0646bd9082efc946e2a424 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.WARN}' + name: 'Dell R660: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R660: System status is in critical state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: availability + - uuid: 069326e2f88d4ef9bbed30e94d08af5d + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.6.0]' + key: 'dell.server.sw.os[systemOSName]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the name of the operating system that the host is running. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: d76ca22d7fd742efb84e04940fa9a846 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sw.os[systemOSName],#1)<>last(/DELL PowerEdge R660 by SNMP/dell.server.sw.os[systemOSName],#2) and length(last(/DELL PowerEdge R660 by SNMP/dell.server.sw.os[systemOSName]))>0' + name: 'Dell R660: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possibly, the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0918a2a56c6542629acc5cfa7f4c5255 + name: 'SNMP walk System battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1,1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1]' + key: dell.server.system.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of System Battery Table `IDRAC-MIB-SMIv2::systemBatteryTable`.' + tags: + - tag: component + value: raw + - uuid: 31ca246b873248439deb225f56d9c16b + name: 'SNMP walk Voltage probe table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1]' + key: dell.server.voltage.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Voltage Probe Table `IDRAC-MIB-SMIv2::voltageProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 9beb49cb322d48cfa061fc206b679a3e + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other `snmptrap` items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 3847459063014aafae40a59263c6cd21 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: b7121bb9605148c299aa571ae0baaeac + expression: 'max(/DELL PowerEdge R660 by SNMP/zabbix[host,snmp,available],{$DELL.SNMP.TIMEOUT})=0' + name: 'Dell R660: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: ce45d29db5664f2a8057b59dbacb406c + name: 'Array controller discovery' + type: DEPENDENT + key: array.discovery + delay: '0' + description: 'Array controller discovery.' + item_prototypes: + - uuid: 0d3726a29096447ab2e6bc777266e24c + name: 'Controller [{#CNTLR_NAME}]: Model' + type: DEPENDENT + key: 'dell.server.hw.diskarray.model[controllerName.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The controller's name as represented in Storage Management. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: dccc777dbf40477d99824475e0899546 + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the controller itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 922d9b5a81a24331bc127c537cce7844 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + name: 'Dell R660: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R660: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + - uuid: 651b100a1d6f4319af973417dcc846c8 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + name: 'Dell R660: Controller [{#CNTLR_NAME}]: Unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: aec00889d9d2419d8fd1e5b4cfc1095b + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + name: 'Dell R660: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R660: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + - name: 'Dell R660: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.controller.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38 + - '0' + - '{#CNTLR_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: f24ac636401c47ddbbafb571ddbc9653 + name: 'Battery discovery' + type: DEPENDENT + key: battery.discovery + delay: '0' + description: 'Battery discovery.' + item_prototypes: + - uuid: 641a35177d934e58afd3abf701dafcde + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.battery.status[batteryState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Current state of battery. + Possible values: + 1: The current state could not be determined. + 2: The battery is operating normally. + 3: The battery has failed and needs to be replaced. + 4: The battery temperature is high or charge level is depleting. + 5: The battery is missing or not detected. + 6: The battery is undergoing the re-charge phase. + 7: The battery voltage or charge level is below the threshold. + valuemap: + name: 'IDRAC-MIB-SMIv2::batteryState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.battery.walk + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: 30752fbc757f47b4a44ce2e348b4be1c + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + name: 'Dell R660: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: c7c2724e188f4a568601d77f3f698212 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])<>{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + name: 'Dell R660: Battery [{#BATTERY_NAME}]: Not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R660: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + - name: 'Dell R660: Battery [{#BATTERY_NAME}]: Warning state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + tags: + - tag: scope + value: availability + - uuid: 4c5fca69653e4b02a0646b1f06947893 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + name: 'Dell R660: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R660: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#BATTERY_NUM}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1 + - '0' + - '{#BATTERY_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 4eccdae6174d47b0808bba46de0bad6e + name: 'CPU status discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: 'CPU status discovery.' + item_prototypes: + - uuid: 3e5f3afa1bd9466f80bc384df5e6adde + name: 'CPU [{#CPU_FQDD}]: State' + type: DEPENDENT + key: 'dell.server.cpu.state[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the reading of the processor device status probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 67364b2e5a8a4a98a51846d23449510e + expression: 'bitand(last(/DELL PowerEdge R660 by SNMP/dell.server.cpu.state[cpu.{#SNMPINDEX}],#1),128)=0' + name: 'Dell R660: CPU [{#CPU_FQDD}]: Reading error' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU probe reading flag is not `processorPresent`. + tags: + - tag: scope + value: availability + - uuid: badfdf4bb0d54474b841335e6f31225b + name: 'CPU [{#CPU_FQDD}]: Status' + type: DEPENDENT + key: 'dell.server.cpu.status[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the status of the processor device status probe. This status will be joined into the `processorDeviceStatus` attribute.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 906617c75c7a4b9ebb8d5a8e0cfbb569 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.cpu.status[cpu.{#SNMPINDEX}],#1)<>3' + name: 'Dell R660: CPU [{#CPU_FQDD}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.30.1.26 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 7c25c6c19ca44a47adc20f6abcafc765 + name: 'Fan discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + filter: + conditions: + - macro: '{#TYPE}' + value: '3' + formulaid: A + description: 'Fan discovery.' + item_prototypes: + - uuid: aed80b32cd744e74a3dd6be26fb7264d + name: 'Fan [{#FAN_DESCR}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + delay: '0' + units: rpm + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a cooling device of a subtype other than `coolingDeviceSubTypeIsDiscrete`. + When the value for `coolingDeviceSubType` is other than `coolingDeviceSubTypeIsDiscrete`, the value returned for this attribute is the speed in RPM or the "OFF/ON" value of the cooling device. + When the value for `coolingDeviceSubType` is `coolingDeviceSubTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + - uuid: 77640960a1c14237af2a9241453b01bc + name: 'Fan [{#FAN_DESCR}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#FAN_DESCR}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the cooling device. + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 5b8056a1bef340baa9c265719b644d6d + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + name: 'Dell R660: Fan [{#FAN_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: availability + - uuid: 01d33d235a964bb59c409ee6f802077a + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R660: Fan [{#FAN_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'Dell R660: Fan [{#FAN_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 8572ad519aba4125bca793fa58c3ee7a + name: 'Dell R660: Fan [{#FAN_DESCR}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + master_item: + key: dell.server.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.5 + - '0' + - '{#FAN_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.8 + - '0' + - '{#TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: a5af413068f44de78fbd8439b77c0e4a + name: 'Memory discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: 'Memory discovery.' + item_prototypes: + - uuid: bc5e6f0f7f854bddab8540eaff42469c + name: 'Memory [{#SNMPVALUE}]: Size' + type: DEPENDENT + key: 'dell.server.memory.size[{#SNMPVALUE}]' + delay: '0' + units: B + description: 'This attribute defines the size, in KB, of the memory device. Zero indicates no memory installed; 2,147,483,647 indicates an unknown memory size.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + - uuid: 51e7926cb91747ceb27e7e592b2567c8 + name: 'Memory [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.memory.status[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the memory device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 2d2d197d92d14a3b85e2a188bc76be2d + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.memory.status[{#SNMPVALUE}],#1)<>3' + name: 'Dell R660: Memory [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Memory status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: e9a4dcd3d9974b1ca2ee36ecfaba92d3 + name: 'Network interface discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: eb081fef5f304d199607a1ed5e4f0128 + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.link[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the connection status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 9740ccc648034cbebc73167b6b6692f0 + expression: '{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1 and last(/DELL PowerEdge R660 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>1 and last(/DELL PowerEdge R660 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>last(/DELL PowerEdge R660 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)=1 or {$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=0' + name: 'Dell R660: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down. + 2. `{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: dae8d6b509ef4de7ac65f12f87b23b66 + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: e54d6f6ae07a4e608e4e3a2a0e2cb248 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.net.if.status[{#NIC_FQDD}],#1)<>3' + name: 'Dell R660: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Network interface status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NIC_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1 + - '0' + - '{#NIC_MAC}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1 + - '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 9b9014d6da704b1b825f879e162efdc8 + name: 'Physical disk discovery' + type: DEPENDENT + key: physicaldisk.discovery + delay: '0' + description: 'Physical disk discovery.' + item_prototypes: + - uuid: 72c8a17c7d2a4613a83a729cd4ca64e6 + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[physicalDiskMediaType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The media type of the physical disk. Possible Values: + 1: The media type could not be determined. + 2: Hard Disk Drive (HDD). + 3: Solid State Drive (SSD). + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: d3d350bc81854a3da72ae694d57062c5 + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[physicalDiskProductID.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The model number of the physical disk. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 83f108ffd84444e2b7bbc9e0b103c02b + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The physical disk's unique identification number from the manufacturer. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 387ab14c93784076b776a8dd6eac7cd5 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#1)<>last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#2) and length(last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]))>0' + name: 'Dell R660: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R660: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 21601518669d483daea2e5950c449d6e + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the physical disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 0e4f4c25cfb144cf8728ece8ddcf6b90 + name: 'Physical disk [{#DISK_NAME}]: S.M.A.R.T. Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Indicates whether the physical disk has received a predictive failure alert. + valuemap: + name: 'IDRAC-MIB-SMIv2::BooleanType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 48741d6a36484dfba7edc893d1f06f68 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'Dell R660: Physical disk [{#DISK_NAME}]: S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'Dell R660: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + - uuid: f58be233639845038d8dad2452f6003a + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the physical disk itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 090de34ecef14ebc8a6383a50b4255ad + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + name: 'Dell R660: Physical disk [{#DISK_NAME}]: Failed state' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: 11dffa72d07e43c5a63f624e126b38ac + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + name: 'Dell R660: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'Dell R660: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R660 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 7041ed04c6f14703b36b52aa68b49b2e + name: 'Dell R660: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.physical.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: a303f72921fe4aaf87a58b53409d3e93 + name: 'PSU discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'PSU discovery.' + item_prototypes: + - uuid: ded0373d94e4467c9495cf94a7d96628 + name: 'Power supply [{#PSU_DESCR}]: State' + type: DEPENDENT + key: 'dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the status of the power supply. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.psu.walk + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 14698cb8183340818414f36d05abb428 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + name: 'Dell R660: Power supply [{#PSU_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: availability + - uuid: 20c0b3af5ad24a1bbb29c759452f6620 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + name: 'Dell R660: Power supply [{#PSU_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'Dell R660: Power supply [{#PSU_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.5 + - '0' + - '{#PSU_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b0440590b39848758e67dd614844b1bd + name: 'System battery discovery' + type: DEPENDENT + key: system.battery.discovery + delay: '0' + description: 'System battery discovery.' + item_prototypes: + - uuid: 73e8b6ae099a4109b03417d2c9b849cc + name: 'System battery [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.system.battery[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the battery.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.battery.walk + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: 272f79a4c334434489c026133e7faea6 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.system.battery[{#SNMPVALUE}],#1)<>3' + name: 'Dell R660: System battery [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + System battery status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.system.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 4dcc455d35774521b8b9c37cf0f8ddb3 + name: 'Temperature discovery' + type: DEPENDENT + key: temp.discovery + delay: '0' + description: 'Temperature sensor discovery.' + item_prototypes: + - uuid: e6f3ff1e7a4d460eb436b5798ea73762 + name: 'Probe [{#SENSOR_LOCALE}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the temperature probe. + Possible values: + other(1), -- probe status is not one of the following: + unknown(2), -- probe status is unknown (not known or monitored) + ok(3), -- probe is reporting a value within the thresholds + nonCriticalUpper(4), -- probe has crossed the upper noncritical threshold + criticalUpper(5), -- probe has crossed the upper critical threshold + nonRecoverableUpper(6), -- probe has crossed the upper non-recoverable threshold + nonCriticalLower(7), -- probe has crossed the lower noncritical threshold + criticalLower(8), -- probe has crossed the lower critical threshold + nonRecoverableLower(9), -- probe has crossed the lower non-recoverable threshold + failed(10) -- probe is not functional + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: ad72d86ab2ff47e081d56d755c9f38cf + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + name: 'Dell R660: Probe [{#SENSOR_LOCALE}]: Critical status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 2bedce1701084c30a4e443f6a5681bde + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])<>{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + name: 'Dell R660: Probe [{#SENSOR_LOCALE}]: Not in optimal status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + manual_close: 'YES' + dependencies: + - name: 'Dell R660: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + - name: 'Dell R660: Probe [{#SENSOR_LOCALE}]: Warning status' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + tags: + - tag: scope + value: notice + - uuid: abcff76920ca4f64b58f7bdcde618181 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R660: Probe [{#SENSOR_LOCALE}]: Warning status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R660: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R660 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + tags: + - tag: scope + value: availability + - uuid: 3710a01c29e84b55ae9040c1f69de95a + name: 'Probe [{#SENSOR_LOCALE}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a temperature probe of type other than `temperatureProbeTypeIsDiscrete`. + When the value for `temperatureProbeType` is other than `temperatureProbeTypeIsDiscrete`, the value returned for this attribute is the temperature that the probe is reading in Centigrade. + When the value for `temperatureProbeType` is `temperatureProbeTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: e6fa96c07eed45f4be0c3c63b3782804 + name: 'Dell R660: Probe [{#SENSOR_LOCALE}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + master_item: + key: dell.server.sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.1 + - '0' + - '{#SENSOR_LOCALE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 59ebee32aa89490a9a6ac84c8706fc04 + name: 'Virtual disk discovery' + type: DEPENDENT + key: virtualdisk.discovery + delay: '0' + description: 'Virtual disk discovery.' + item_prototypes: + - uuid: 43e9d39607614eae80550101d029aa6f + name: 'Virtual disk [{#DISK_NAME}]: Layout type' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.layout[virtualDiskLayout.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The virtual disk's RAID type. + Possible values: + 1: Not one of the following + 2: RAID-0 + 3: RAID-1 + 4: RAID-5 + 5: RAID-6 + 6: RAID-10 + 7: RAID-50 + 8: RAID-60 + 9: Concatenated RAID 1 + 10: Concatenated RAID 5 + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 94b642e109cf4b509e8e778d4c465cdd + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[virtualDiskReadPolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The read policy used by the controller for read operations on this virtual disk. + Possible values: + 1: No Read Ahead. + 2: Read Ahead. + 3: Adaptive Read Ahead. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 485837b0fe5a40699210fefaba81ccec + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the virtual disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 0a1ec895744b4cfc86410de425f82fa3 + name: 'Virtual disk [{#DISK_NAME}]: Operational state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[virtualDiskOperationalState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The state of the virtual disk when there are progressive operations ongoing. + Possible values: + 1: There is no active operation running. + 2: The virtual disk configuration has changed. The physical disks included in the virtual disk are being modified to support the new configuration. + 3: A Consistency Check (CC) is being performed on the virtual disk. + 4: The virtual disk is being initialized. + 5: BackGround Initialization (BGI) is being performed on the virtual disk. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 1751727ae3a74e719d5aa66b4fe7254f + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The current state of this virtual disk (which includes any member physical disks.) + Possible states: + 1: The current state could not be determined. + 2: The virtual disk is operating normally or optimally. + 3: The virtual disk has encountered a failure. Data on the disk is lost or is about to be lost. + 4: The virtual disk encountered a failure with one or all of the constituent redundant physical disks. + The data on the virtual disk might no longer be fault tolerant. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 29cab0ba7b674b298435e7babd4d13d4 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + name: 'Dell R660: Virtual disk [{#DISK_NAME}]: Failed state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the virtual disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: aeeb4eac4abc4b6bb92de1a22e9840eb + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + name: 'Dell R660: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the virtual disk for warnings or errors.' + dependencies: + - name: 'Dell R660: Virtual disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + - uuid: c80bd3fd5d1249a7b808512a3c62d28b + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[virtualDiskWritePolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The write policy used by the controller for write operations on this virtual disk. + Possible values: + 1: Write Through. + 2: Write Back. + 3: Force Write Back. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: 7128dd52533e43c582946dc346c6882b + name: 'Dell R660: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.virtual.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 85322325c90646d29fe6db928f28fa03 + name: 'Voltage probe discovery' + type: DEPENDENT + key: voltage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + formulaid: A + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + formulaid: C + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Voltage probe discovery.' + item_prototypes: + - uuid: 61c9b167810f48ccb092b9a558159191 + name: 'Voltage probe [{#VPROBE_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.voltage.status[{#VPROBE_NAME}]' + delay: '0' + description: 'This attribute defines the status of the voltage probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + trigger_prototypes: + - uuid: c68730ac9acf427b9c03c3d3a68197d5 + expression: 'last(/DELL PowerEdge R660 by SNMP/dell.server.voltage.status[{#VPROBE_NAME}])<>3' + name: 'Dell R660: Voltage probe [{#VPROBE_NAME}]: Status is not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device''s voltage.' + tags: + - tag: scope + value: availability + - uuid: 05894e7311ee4a5ab0108e4135416ebf + name: 'Voltage probe [{#VPROBE_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'This attribute defines the reading for a voltage probe.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + graph_prototypes: + - uuid: 2c0c884b124b4abc8869cdac905df0ef + name: 'Dell R660: Voltage probe [{#VPROBE_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + master_item: + key: dell.server.voltage.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#VPROBE_NAME}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1 + - '0' + - '{#VPROBE_TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + value: '^.*Voltage.*$' + description: 'Sets the regex string of voltage probe names to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe names to ignore in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + value: 18|16 + description: 'Sets the regex string of voltage probe types to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe types to ignore in discovery.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + value: '3' + description: 'The critical status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + value: '2' + description: 'The OK status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + value: '5' + description: 'The critical status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + value: '6' + description: 'The disaster status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.SMART.STATUS.FAIL}' + value: '1' + description: 'The critical S.M.A.R.T status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"critical"}' + value: '5' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + value: '6' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + value: '10' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.CRIT}' + value: '5' + description: 'The critical status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.DISASTER}' + value: '6' + description: 'The disaster status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.WARN}' + value: '4' + description: 'The warning status of health for the trigger expression.' + - macro: '{$DELL.SNMP.IFCONTROL}' + value: '1' + description: 'The link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"critical"}' + value: '5' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + value: '6' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + value: '3' + description: 'The OK status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP agent availability trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + value: '3' + description: 'The critical status of the virtual disk for the trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + value: '4' + description: 'The warning status of the virtual disk for the trigger expression.' + dashboards: + - uuid: 1bbf4fc1f4cf4581835b8272b042a144 + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: item + name: 'System health' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.status[globalSystemStatus]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '36' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.hw.model[systemModelName]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '36' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'NIC*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Voltage probe*Voltage' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Fan*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + valuemaps: + - uuid: ffad2b2a57364726ba31cfc89f363e2b + name: 'IDRAC-MIB-SMIv2::batteryState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Ready + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - value: '5' + newvalue: Missing + - value: '6' + newvalue: Charging + - value: '7' + newvalue: 'Below threshold' + - uuid: 053a4a529ddf4bc7b1971958e4dce5c9 + name: 'IDRAC-MIB-SMIv2::BooleanType' + mappings: + - value: '0' + newvalue: ok + - value: '1' + newvalue: failed + - uuid: 2216bf2485f548be90060048eec6547d + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: connected + - value: '2' + newvalue: disconnected + - value: '3' + newvalue: driverBad + - value: '4' + newvalue: driverDisabled + - value: '10' + newvalue: hardwareInitalizing + - value: '11' + newvalue: hardwareResetting + - value: '12' + newvalue: hardwareClosing + - value: '13' + newvalue: hardwareNotReady + - uuid: 58480240826e49b09bf73f682f252148 + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: e44bc856e8d449f9a288b614b7d6a143 + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: e17dbbe344994170afa47b3d76b393f8 + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: HDD + - value: '3' + newvalue: SSD + - uuid: c9543b611d434fba99d4be3614813419 + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + mappings: + - value: '1' + newvalue: internalError + - value: '2' + newvalue: thermalTrip + - value: '32' + newvalue: configurationError + - value: '128' + newvalue: processorPresent + - value: '256' + newvalue: processorDisabled + - value: '512' + newvalue: terminatorPresent + - value: '1024' + newvalue: processorThrottled + - uuid: d2f5ad57814e4c3ab8f1e7b1fa076557 + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCriticalUpper + - value: '5' + newvalue: criticalUpper + - value: '6' + newvalue: nonRecoverableUpper + - value: '7' + newvalue: nonCriticalLower + - value: '8' + newvalue: criticalLower + - value: '9' + newvalue: nonRecoverableLower + - value: '10' + newvalue: failed + - uuid: 70851c009b4d4f0484f3bb955558c1db + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: RAID-0 + - value: '3' + newvalue: RAID-1 + - value: '4' + newvalue: RAID-5 + - value: '5' + newvalue: RAID-6 + - value: '6' + newvalue: RAID-10 + - value: '7' + newvalue: RAID-50 + - value: '8' + newvalue: RAID-60 + - value: '9' + newvalue: 'Concatenated RAID 1' + - value: '10' + newvalue: 'Concatenated RAID 5' + - uuid: 160204c8609542038d31357ce58424df + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + mappings: + - value: '1' + newvalue: 'Not applicable' + - value: '2' + newvalue: Reconstructing + - value: '3' + newvalue: Resynching + - value: '4' + newvalue: Initializing + - value: '5' + newvalue: 'Background init' + - uuid: c1686f5a938f4dac977d55517687358e + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + mappings: + - value: '1' + newvalue: 'No Read Ahead' + - value: '2' + newvalue: 'Read Ahead' + - value: '3' + newvalue: 'Adaptive Read Ahead' + - uuid: 1c3e3bcf7ff14f59ac24f9d62f6671af + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - uuid: 0a940bdd7900425b941e11e486e70c8a + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + mappings: + - value: '1' + newvalue: 'Write Through' + - value: '2' + newvalue: 'Write Back' + - value: '3' + newvalue: 'Force Write Back' + - uuid: 20182c95fb0e494a826a7ae3f932127b + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 0c72f52ac52c46adab21c577c27381b1 + expression: '(last(/DELL PowerEdge R660 by SNMP/dell.server.hw.uptime[systemPowerUpTime])>0 and last(/DELL PowerEdge R660 by SNMP/dell.server.hw.uptime[systemPowerUpTime])<10m) or (last(/DELL PowerEdge R660 by SNMP/dell.server.hw.uptime[systemPowerUpTime])=0 and last(/DELL PowerEdge R660 by SNMP/dell.server.net.uptime[snmpEngineTime])<10m)' + name: 'Dell R660: Host has been restarted' + event_name: 'Dell R660: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 92c35ca847fb44cbae6542f1b11e41da + name: 'Dell R660: Uptime' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + - sortorder: '1' + color: F63100 + item: + host: 'DELL PowerEdge R660 by SNMP' + key: 'dell.server.net.uptime[snmpEngineTime]' diff --git a/DELL_PowerEdge_R720_by_HTTP.yaml b/DELL_PowerEdge_R720_by_HTTP.yaml new file mode 100644 index 0000000..158c461 --- /dev/null +++ b/DELL_PowerEdge_R720_by_HTTP.yaml @@ -0,0 +1,3857 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 9643f22821104f809e2486be83e1816e + template: 'DELL PowerEdge R720 by HTTP' + name: 'DELL PowerEdge R720 by HTTP' + description: | + Template for DELL PowerEdge R720 servers with iDRAC 8/9 firmware 4.32 and later and Redfish API enabled. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: f422ccc6fd194d59b49632f0a876bdbf + name: 'Get array controller resources' + type: SCRIPT + key: dell.server.array.resources.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Controller', 'Discovery', params); + + const controllers = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage?$expand=.($levels=1)'), 'Members'); + + var arrControllerKeys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'slot', + 'path': 'Oem.Dell.DellController.PCISlot' + } + ]; + + var battControllerKeys = [ + { + 'name': 'id', + 'path': 'Oem.Dell.DellControllerBattery.Id' + }, + { + 'name': 'name', + 'path': 'Oem.Dell.DellControllerBattery.Name' + }, + { + 'name': 'status', + 'path': 'Oem.Dell.DellControllerBattery.PrimaryStatus' + } + ]; + + if (!Array.isArray(controllers)) { + throw 'Unexpected type for controllers.'; + } + + var buffer = { 'arrayControllers': [], 'batteryControllers': [] }; + + controllers.forEach(function (controller) { + if (controller['Id'].search('RAID') > -1) { + buffer['arrayControllers'].push(dell.extractData(controller, arrControllerKeys, true)); + buffer['batteryControllers'].push(dell.extractData(controller, battControllerKeys, true)); + } + }); + + return JSON.stringify(buffer); + description: 'Returns array controller resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 3cdb6b1e166247ddbc08a1bfbacb3197 + name: 'Get disks' + type: SCRIPT + key: dell.server.disks.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Discovery', params); + + const disks = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'name', + 'path': 'Name' + } + ]; + + if (!Array.isArray(disks)) { + throw 'Unexpected type for disks.'; + } + + var buffer = { 'physicalDisks': [], 'virtualDisks': [] }; + + disks.forEach(function (disk) { + var requests = [{ 'usage': 'physicalDisks', 'path': '', 'target': 'Drives' }, { 'usage': 'virtualDisks', 'path': '/Volumes', 'target': 'Members' }]; + + requests.forEach(function (request) { + const disks = dell.extractData(dell.executeRequest(disk['@odata.id'] + request['path']), request['target']); + + if (!Array.isArray(disks) || disks.length <= 0) { + return; + } + + disks.forEach(function (drive) { + buffer[request['usage']].push(dell.extractData(dell.executeRequest(drive['@odata.id']), keys)); + }); + }); + }); + + return JSON.stringify(buffer); + description: 'Returns storage resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 926ce571ca7e4021bbcb0864c2dd00ae + name: 'Firmware version' + type: DEPENDENT + key: dell.server.hw.firmware + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the firmware version of a remote access card.' + preprocessing: + - type: JSONPATH + parameters: + - $.firmware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: 769dd4e6283f4e1e8a4c9271006f7123 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.hw.firmware,#1)<>last(/DELL PowerEdge R720 by HTTP/dell.server.hw.firmware,#2) and length(last(/DELL PowerEdge R720 by HTTP/dell.server.hw.firmware))>0' + name: 'Dell R720: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6e469760ab3c43e5a94613e798e227d1 + name: 'Hardware model name' + type: DEPENDENT + key: dell.server.hw.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the model name of the system.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + - uuid: 24a9370f57cc494ab2bd63c503df88bc + name: 'Hardware serial number' + type: DEPENDENT + key: dell.server.hw.serialnumber + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the service tag of the system.' + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - $.serialnumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: 32a56bf761a24da5966512e13741824c + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.hw.serialnumber,#1)<>last(/DELL PowerEdge R720 by HTTP/dell.server.hw.serialnumber,#2) and length(last(/DELL PowerEdge R720 by HTTP/dell.server.hw.serialnumber))>0' + name: 'Dell R720: Device has been replaced' + event_name: 'Dell R720: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c5520628f22f4a9ebd1e158b6a89b1a5 + name: 'Get network interfaces' + type: SCRIPT + key: dell.server.net.iface.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Discovery', params); + + const netAdapters = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'id', + 'path': 'Id' + } + ]; + + if (!Array.isArray(netAdapters)) { + throw 'Unexpected type for network adapters.'; + } + + var buffer = []; + + netAdapters.forEach(function (netAdapter) { + const netPorts = dell.extractData(dell.executeRequest(netAdapter["@odata.id"] + '/NetworkPorts'), 'Members'); + + if (!Array.isArray(netPorts)) { + return; + } + + netPorts.forEach(function (netPort) { + buffer.push(dell.extractData(dell.executeRequest(netPort["@odata.id"]), keys)); + }) + + }); + + return JSON.stringify(buffer); + description: 'Returns network interfaces.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: ab6d8e8ed72f4b64b30a3f1d11a0d4d6 + name: 'Get sensors' + type: SCRIPT + key: dell.server.sensors.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + function formatPSU(psuObj) { + var foundPowerSupplies = [], + buffer = []; + + psuObj.forEach(function (obj) { + const psuName = obj['name'].split(' ')[0]; + + if (foundPowerSupplies.indexOf(psuName) === -1) { + foundPowerSupplies.push(psuName); + buffer.push({ + 'name': psuName, + [obj['type'].toLowerCase()]: {'reading': obj['reading'], 'health': obj['health']} + }); + } else { + buffer.forEach(function (bufferObj) { + + if (bufferObj['name'] === psuName) { + bufferObj[obj['type'].toLowerCase()] = {'reading': obj['reading'], 'health': obj['health']}; + + return; + } + }); + } + }) + return buffer; + }; + + function formatTemp(tempObj) { + tempObj.forEach(function (obj) { + obj.name = obj.name.split(' ').slice(0, -1).join(' '); + }); + + return tempObj; + } + + function formatSysBoard(sysObj) { + const remove = ['System', 'Board', 'Usage']; + + sysObj.forEach(function (obj) { + var buffer = []; + + obj['name'].split(' ').forEach(function (word) { + var match = false; + + remove.forEach(function (removeWord) { + if (removeWord === word) { + match = true; + } + }); + + if (!match) { + buffer.push(word); + } + }); + + if (buffer.length > 0) { + obj['name'] = buffer.join(' '); + } + }); + + return sysObj; + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Sensor', 'Discovery', params); + + const sensors = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/Sensors?$expand=.($levels=1)'), 'Members'); + + if (!Array.isArray(sensors)) { + throw 'Unexpected type for sensors.'; + } + + const keys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'context', + 'path': 'PhysicalContext' + }, + { + 'name': 'reading', + 'path': 'Reading' + }, + { + 'name': 'type', + 'path': 'ReadingType' + }, + { + 'name': 'health', + 'path': 'Status.Health' + } + ]; + + var buffer = { 'fan': [], 'psu': [], 'temperature': [], 'sysBoard': [] }; + + sensors.forEach(function (sensor) { + if (sensor['Name'].substring(0, 2) === 'PS' && sensor['PhysicalContext'] === 'PowerSupply') { + buffer['psu'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['ReadingType'] === 'Temperature') { + buffer['temperature'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('Fan') && sensor['ReadingType'] === 'Rotational') { + buffer['fan'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('System Board') && sensor['ReadingType'] === 'Percent') { + buffer['sysBoard'].push(dell.extractData(sensor, keys, true)); + } + }); + + buffer['psu'] = formatPSU(buffer['psu']); + buffer['temperature'] = formatTemp(buffer['temperature']); + buffer['sysBoard'] = formatSysBoard(buffer['sysBoard']); + + return JSON.stringify(buffer); + description: 'Returns sensors.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 836ad85fee674a1ca7c6d147d0e5c0c7 + name: 'Overall system health status' + type: DEPENDENT + key: dell.server.status + delay: '0' + trends: '0' + description: 'This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 231b61c2570141f1bae1a3ccd9083de5 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.status,)=3' + name: 'Dell R720: Server is in a critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: cac71a4bfffa4d87a15280fcbec67672 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.status,)=2' + name: 'Dell R720: Server is in a warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: Server is in a critical state' + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.status,)=3' + tags: + - tag: scope + value: availability + - uuid: c400cdf744be43859f36ac249cef03d2 + name: 'Get system' + type: SCRIPT + key: dell.server.system.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('System', 'Get system metrics', params); + + const requests = [ + { + 'path': '/redfish/v1/Systems/System.Embedded.1', + 'keys': [ + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'serialnumber', + 'path': 'Oem.Dell.DellSystem.ChassisServiceTag' + }, + { + 'name': 'status', + 'path': 'Status.Health' + } + ] + }, + { + 'path': '/redfish/v1/Managers/iDRAC.Embedded.1', + 'keys': { + 'name': 'firmware', + 'path': 'FirmwareVersion' + } + } + ]; + + var buffer = {}; + + for (var i = 0, requestsCount = requests.length; i < requestsCount; i++) { + Object.assign(buffer, dell.extractData(dell.executeRequest(requests[i].path), requests[i].keys)); + } + + return JSON.stringify(buffer); + description: 'Returns system metrics.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: b50ae9a0b50347c3b660a4fb49fc5c65 + name: 'CPU utilization, in %' + type: DEPENDENT + key: dell.server.util.cpu + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 4ae5ed40c7ac4a4990f10afb0c578301 + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.WARN}' + name: 'Dell R720: CPU utilization is high' + event_name: 'Dell R720: Current CPU utilization is high (util >= {$DELL.HTTP.CPU.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R720: CPU utilization is too high' + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 5d20edd65b914aadb3354b13d52f417f + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + name: 'Dell R720: CPU utilization is too high' + event_name: 'Dell R720: Current CPU utilization is too high (util >= {$DELL.HTTP.CPU.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: a8ede4b667794c6099f9b4905d295599 + name: 'IO utilization, in %' + type: DEPENDENT + key: dell.server.util.io + delay: '0' + value_type: FLOAT + units: '%' + description: 'IO utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: io + triggers: + - uuid: 6a345bd704aa4b719399125716967468 + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.WARN}' + name: 'Dell R720: IO utilization is high' + event_name: 'Dell R720: Current IO utilization is high (util >= {$DELL.HTTP.IO.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R720: IO utilization is too high' + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 6d2c8ef6746d42299ffc53e0f837e095 + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + name: 'Dell R720: IO utilization is too high' + event_name: 'Dell R720: Current IO utilization is too high (util >= {$DELL.HTTP.IO.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: f2ce80918d154056aea196f4f25fe1fe + name: 'Memory utilization, in %' + type: DEPENDENT + key: dell.server.util.mem + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: memory + triggers: + - uuid: 8640e51d349b427a9d57923236c4036f + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.WARN}' + name: 'Dell R720: Memory utilization is high' + event_name: 'Dell R720: Current memory utilization is high (util >= {$DELL.HTTP.MEM.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R720: Memory utilization is too high' + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: f91f48c6bfc5482c8813c5830807640e + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + name: 'Dell R720: Memory utilization is too high' + event_name: 'Dell R720: Current memory utilization is too high (util >= {$DELL.HTTP.MEM.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: fe3587269b0b49d39926cd4985eb49ae + name: 'SYS utilization, in %' + type: DEPENDENT + key: dell.server.util.sys + delay: '0' + value_type: FLOAT + units: '%' + description: 'SYS utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: sys + triggers: + - uuid: da48f40dafd44f788bfd9c87896273d9 + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.WARN}' + name: 'Dell R720: SYS utilization is high' + event_name: 'Dell R720: Current SYS utilization is high (util >= {$DELL.HTTP.SYS.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R720: IO utilization is too high' + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 94d3375fe9af4d57b9542cd877546b02 + expression: 'min(/DELL PowerEdge R720 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.HIGH}' + name: 'Dell R720: SYS utilization is too high' + event_name: 'Dell R720: Current SYS utilization is too high (util >= {$DELL.HTTP.SYS.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: da21527c1a004c67a5e2cd6770aa8637 + name: 'Redfish API status' + type: SIMPLE + key: 'net.tcp.service[https]' + description: | + Availability of Redfish API on the server. + Possible values: + 0 - Unavailable + 1 - Available + valuemap: + name: 'Redfish API availability' + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 1a85b9c93c644fd98183df4fbda3a01f + expression: 'last(/DELL PowerEdge R720 by HTTP/net.tcp.service[https])=0' + name: 'Dell R720: Redfish API service is unavailable' + priority: HIGH + description: 'The service is unavailable or does not accept TCP connections.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 0ce3faf4178c4e509b3f7cd808aae910 + name: 'Array controller discovery' + type: DEPENDENT + key: dell.server.array.discovery + delay: '0' + description: 'Discovery of disk array controllers.' + item_prototypes: + - uuid: 7fa996a7ded34068aaa478071dd511d5 + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.array.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.arrayControllers[?(@.id == "{#ID}")].health.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 0191687242b244d9a65b8f8befa7866a + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.array.status[{#ID}],)=3' + name: 'Dell R720: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: fabb113a6da84fc88cc908c5dcd831fe + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.array.status[{#ID}],)=2' + name: 'Dell R720: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.array.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#CNTLR_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SLOT}' + path: $.slot + preprocessing: + - type: JSONPATH + parameters: + - $.arrayControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 0c275c4a75b24d12ad246517b4fb118a + name: 'Battery discovery' + type: DEPENDENT + key: dell.server.controller.battery.discovery + delay: '0' + description: 'Discovery of battery controllers.' + item_prototypes: + - uuid: 43e3ca9cc4634445a828e5c32ef01224 + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.controller.battery.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.batteryControllers[?(@.id == "{#ID}")].status.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: d9cd2484dd874e0982eec6eb916abcad + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + name: 'Dell R720: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 59275951823f4a6f9064ff635141a652 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.controller.battery.status[{#ID}],)=2' + name: 'Dell R720: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#BATTERY_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.batteryControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: e25bb9d517ff49ff8451702b194612cc + name: 'FAN discovery' + type: DEPENDENT + key: dell.server.fan.discovery + delay: '0' + description: 'Discovery of FAN sensors.' + item_prototypes: + - uuid: f71ec03e1a2d429d9bf57cb84a80d857 + name: 'Fan [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.fan.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: fan + - tag: component + value: raw + - uuid: 8050ebe6a9524177ae9b9edfb8a16344 + name: 'Fan [{#SENSOR_NAME}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + delay: '0' + units: '!rpm' + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + - uuid: c2b308a258334ae2b7fc2843cb9507e4 + name: 'Fan [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 1891291345094afba1011dae19127f56 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + name: 'Dell R720: Fan [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 0a1e65618388460f826d2da039f51221 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=2' + name: 'Dell R720: Fan [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: Fan [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 397182a555474330931e10f0248e9513 + name: 'Dell R720: Fan [{#SENSOR_NAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.fan + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 99bee5141a23472095010aea70b945aa + name: 'Network interface discovery' + type: DEPENDENT + key: dell.server.net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: 83f2022ae915408e8b8e6318e6f7b57b + name: 'Interface [{#IFNAME}]: Get interface' + type: SCRIPT + key: 'dell.server.net.if.get[{#IFNAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Get metrics', params); + + const keys = [ + { + 'name': 'linkStatus', + 'path': 'LinkStatus' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'state', + 'path': 'Status.State' + }, + { + 'name': 'linkSpeed', + 'path': 'CurrentLinkSpeedMbps' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a network interface.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: network + - tag: component + value: raw + - uuid: 66a7049fe2ae49beb7a04b2d4686f59a + name: 'Interface [{#IFNAME}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.health[{#IFNAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 387d93fe58134f3c9b7729580cfe5f50 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + name: 'Dell R720: Interface [{#IFNAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 61517c7e0c7c4dff9965aa55dcd3763e + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.health[{#IFNAME}],)=2' + name: 'Dell R720: Interface [{#IFNAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: Interface [{#IFNAME}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 1855ac9b35bc4746a688a48dce7a7eb7 + name: 'Interface [{#IFNAME}]: Speed' + type: DEPENDENT + key: 'dell.server.net.if.speed[{#IFNAME}]' + delay: '0' + units: bps + description: 'The network port current link speed.' + preprocessing: + - type: JSONPATH + parameters: + - $.linkSpeed + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: 925b558af3c64f3b99b4174d30a715b6 + name: 'Interface [{#IFNAME}]: State' + type: DEPENDENT + key: 'dell.server.net.if.state[{#IFNAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: 697029ebd06f41e8a8e3cd5add4b5d9a + name: 'Interface [{#IFNAME}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#IFNAME}]' + delay: '0' + description: 'The status of the link between this port and its link partner. Possible values: Down, Up, null.' + valuemap: + name: 'Network interface status' + preprocessing: + - type: JSONPATH + parameters: + - $.linkStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'null': 1, + 'Down': 2, + 'Up': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 6412618ea54a4bcaa7c781982b71547d + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.status[{#IFNAME}],)=2 and last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.status[{#IFNAME}],)=3 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R720: Interface [{#IFNAME}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down (2). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down (2). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces). + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f70149eb9e82492a93e49ee8f8cdd569 + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.status[{#IFNAME}],)<2 and last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.net.if.status[{#IFNAME}],)>=2 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R720: Interface [{#IFNAME}]: Link status issue' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Null (1) or Unknown (0). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Null (1) or Unknown (0). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 2d3252a28935443a933639129990e047 + name: 'Dell R720: Interface [{#IFNAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: 'dell.server.net.if.speed[{#IFNAME}]' + master_item: + key: dell.server.net.iface.get + lld_macro_paths: + - lld_macro: '{#IFNAME}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 065f3e55bf9d4f219b9fbfde0f5b452f + name: 'Physical disk discovery' + type: DEPENDENT + key: dell.server.physicaldisk.discovery + delay: '0' + description: 'Discovery of physical disks.' + item_prototypes: + - uuid: 8e8a8788befb4d779e2a99165b05d529 + name: 'Physical disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get physical disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'sn', + 'path': 'SerialNumber' + }, + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'mediaType', + 'path': 'MediaType' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a physical disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: physicaldisk + - tag: component + value: raw + - tag: component + value: storage + - uuid: e35609ff46764638835c7e93e30dfd0b + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The type of media contained in this drive. Possible values: HDD, SSD, SMR, null.' + preprocessing: + - type: JSONPATH + parameters: + - $.mediaType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 4c7186fd2f954d9a877e2d0b6c1e64dc + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model number of the drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 2b7546e11f0a48a6b2ac9be0ca6aa298 + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.sn + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 8a2bdb0e21ae423cbbe771dec636f0e9 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#1)<>last(/DELL PowerEdge R720 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#2) and length(last(/DELL PowerEdge R720 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]))>0' + name: 'Dell R720: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R720: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ed0e86b646bc461bba5e47aa4e5fe56a + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size, in bytes, of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: a24d4f7282be47a8a0beca205638bac8 + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[{#DISK_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 6388b5ad43cf459e9c7a39ea2f942237 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + name: 'Dell R720: Physical disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 22533b6c80924f89a73f7ac538e9cad4 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=2' + name: 'Dell R720: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: Physical disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 873074e10cb64926b18e44ea530c3985 + name: 'Dell R720: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.physicalDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8a78b1d5be7b492f878f0e6d56a32cc0 + name: 'PSU discovery' + type: DEPENDENT + key: dell.server.psu.discovery + delay: '0' + description: 'Discovery of PSU sensors.' + item_prototypes: + - uuid: d73218b82be7405d8087759ac84015ca + name: 'Power supply [{#SENSOR_NAME}]: Current sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.current.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.current.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 99518a99a4134a87bde45f3826b1e6de + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + name: 'Dell R720: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: fe67ff02dcbc416db42a750bce15f99c + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=2' + name: 'Dell R720: Power supply [{#SENSOR_NAME}]: Current sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: fb0b401437334d25a0bdb8022d91bf7b + name: 'Power supply [{#SENSOR_NAME}]: Current' + type: DEPENDENT + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: A + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.current.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: current + - tag: component + value: psu + - uuid: 6d77620e9fd444598f8a0dce9ccf0b1d + name: 'Power supply [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.psu.[?(@.name == ''{#SENSOR_NAME}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: psu + - tag: component + value: raw + - uuid: 1336f4fda6a34fc990ad21519fdcce6e + name: 'Power supply [{#SENSOR_NAME}]: Voltage sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 78d20bb4cecf46ffbcf22fe41bc7a746 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + name: 'Dell R720: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 24c181c37a414fa8be6bdf56f741507f + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=2' + name: 'Dell R720: Power supply [{#SENSOR_NAME}]: Voltage sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 174081b089e6460f9c18046d331a947b + name: 'Power supply [{#SENSOR_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + - tag: component + value: voltage + graph_prototypes: + - uuid: 5dffa4cc9acb43da8fce1ccbac9a3c5a + name: 'Dell R720: Power supply [{#SENSOR_NAME}]: Current' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + - uuid: 26df3cf020a64d1082ed36aba8797c58 + name: 'Dell R720: Power supply [{#SENSOR_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#SENSOR_NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.psu + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 003aa4858047410c8b99065f610ee0a5 + name: 'Temperature discovery' + type: DEPENDENT + key: dell.server.temp.discovery + delay: '0' + description: 'Discovery of temperature sensors.' + item_prototypes: + - uuid: f0fa12d1ef054b9a90edd3f4e9be6971 + name: 'Probe [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.temperature.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: raw + - tag: component + value: temperature + - uuid: 314cca1840c94c3daae8eb854656d47b + name: 'Probe [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: c5d0cc64c15d46c3bf3fcf1432b30901 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + name: 'Dell R720: Probe [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 0caf6c91495048d094018bbaa4dacfbf + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=2' + name: 'Dell R720: Probe [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: Probe [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: d6b02e86da6841dfb5059f954f1bf801 + name: 'Probe [{#SENSOR_NAME}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: °C + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: 2a9b93d23f7e439bb74b0f0368b641be + name: 'Dell R720: Probe [{#SENSOR_NAME}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.temperature + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 248c3e103a0c4e5fb6640a69d8f5237d + name: 'Virtual disk discovery' + type: DEPENDENT + key: dell.server.virtualdisk.discovery + delay: '0' + description: 'Discovery of virtual disks.' + item_prototypes: + - uuid: 2d40df5f9ef14013a45f48bad2d5e133 + name: 'Virtual disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get virtual disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + }, + { + 'name': 'status', + 'path': 'Status.State' + }, + { + 'name': 'raidStatus', + 'path': 'Oem.Dell.DellVirtualDisk.RaidStatus' + }, + { + 'name': 'readCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.ReadCachePolicy' + }, + { + 'name': 'writeCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.WriteCachePolicy' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a virtual disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - tag: component + value: virtualdisk + - uuid: c4901f765c8d4f6aafb64ec37cbfef89 + name: 'Virtual disk [{#DISK_NAME}]: RAID status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}]' + delay: '0' + description: 'This property represents the RAID specific status. Possible values: Blocked, Degraded, Failed, Foreign, Offline, Online, Ready, Unknown, null.' + valuemap: + name: 'Virtual disk RAID status' + preprocessing: + - type: JSONPATH + parameters: + - $.raidStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Blocked': 1, + 'Degraded': 2, + 'Failed': 3, + 'Foreign': 4, + 'Offline': 5, + 'Unknown': 6, + 'null': 7, + 'Ready': 8, + 'Online': 9, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 3f3e013e2e814e748cd7c6233090b787 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}],)<8' + name: 'Dell R720: Virtual disk [{#DISK_NAME}]: RAID status not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the disk for faults.' + tags: + - tag: scope + value: availability + - uuid: efa75959d6674a8db743b14982609f3d + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the read cache policy setting for the Volume. Possible values: ReadAhead, NoReadAhead, AdaptiveReadAhead.' + valuemap: + name: 'Virtual disk read policy' + preprocessing: + - type: JSONPATH + parameters: + - $.readCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'NoReadAhead': 1, + 'ReadAhead': 2, + 'AdaptiveReadAhead': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 2321eaf7f4ac4066a6928e0884daaee0 + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size in bytes of this Volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 39c4d9ba46564546b4a2ceb27bd7b771 + name: 'Virtual disk [{#DISK_NAME}]: Current state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[{#DISK_NAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: da546c12247f4d9aa87b49cbaeaab55b + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[{#DISK_NAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 24f8c74df63d4a728cd2379b79ef204d + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + name: 'Dell R720: Virtual disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: ddde2d6ca20d4981a766719530e28911 + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=2' + name: 'Dell R720: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: Virtual disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: c5f0f311bcb4497da5e909ad8efa0819 + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the write cache policy setting for the Volume. Possible values: WriteThrough, WriteBack, ProtectedWriteBack, UnprotectedWriteBack.' + valuemap: + name: 'Virtual disk write policy' + preprocessing: + - type: JSONPATH + parameters: + - $.writeCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'WriteThrough': 1, + 'WriteBack': 2, + 'ProtectedWriteBack': 3, + 'UnprotectedWriteBack': 4, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: 99b58f87335341169cf01075c3e33d30 + name: 'Dell R720: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.virtualDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.HTTP.API.PASSWORD}' + type: SECRET_TEXT + description: 'The Dell iDRAC user password.' + - macro: '{$DELL.HTTP.API.URL}' + value: '' + description: 'The Dell iDRAC Redfish API URL in the format `://:`.' + - macro: '{$DELL.HTTP.API.USER}' + value: '' + description: 'The Dell iDRAC username.' + - macro: '{$DELL.HTTP.CPU.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.CPU.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.HTTP.IO.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about IO utilization.' + - macro: '{$DELL.HTTP.IO.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about IO utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about memory utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about memory utilization.' + - macro: '{$DELL.HTTP.PROXY}' + description: 'Set an HTTP proxy for Redfish API requests if needed.' + - macro: '{$DELL.HTTP.REQUEST.TIMEOUT}' + value: 10s + description: 'Set the timeout for HTTP requests.' + - macro: '{$DELL.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + - macro: '{$DELL.HTTP.SYS.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about SYS utilization.' + - macro: '{$DELL.HTTP.SYS.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about SYS utilization.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "DELL PowerEdge", e.g. {$HTTP.TLS.VERIFY:"DELL PowerEdge"}.' + dashboards: + - uuid: e7a4f6ea5da2419f9e43bd379996de59 + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: gauge + name: 'CPU utilization' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: CPU + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.util.cpu + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'Memory utilization' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: MEM + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.util.mem + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'I/O utilization' + 'y': '6' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: I/O + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.util.io + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'SYS utilization' + 'y': '9' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: SYS + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.util.sys + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Redfish API' + x: '18' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Redfish API' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by HTTP' + key: 'net.tcp.service[https]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '18' + 'y': '3' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.hw.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + x: '18' + 'y': '6' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.hw.serialnumber + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '18' + 'y': '9' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.hw.firmware + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'System health' + x: '45' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.status + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '2' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Power supply*Voltage' + - type: STRING + name: items.1 + value: 'Power supply*Current' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Interface speed' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Speed' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAABA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '10000000' + - type: STRING + name: thresholds.2.color + value: FF980E + - type: STRING + name: thresholds.2.threshold + value: '100000000' + - type: STRING + name: thresholds.3.color + value: 069C56 + - type: STRING + name: thresholds.3.threshold + value: '1000000000' + - type: STRING + name: thresholds.4.color + value: 2196F3 + - type: STRING + name: thresholds.4.threshold + value: '10000000000' + - type: STRING + name: thresholds.5.color + value: 6C00D9 + - type: STRING + name: thresholds.5.threshold + value: '25000000000' + - type: STRING + name: thresholds.6.color + value: D900A6 + - type: STRING + name: thresholds.6.threshold + value: '40000000000' + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + valuemaps: + - uuid: 623bbf13357f4b22a4030c813437db18 + name: 'Network interface status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: 'Null' + - value: '2' + newvalue: Down + - value: '3' + newvalue: Up + - uuid: 8be2ad02ae4c4836bc21816e89a906ac + name: 'Redfish API availability' + mappings: + - value: '0' + newvalue: Unavailable + - value: '1' + newvalue: Available + - uuid: 32fa026175444306b08fe3cf6618a98a + name: 'Redfish status health' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: OK + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - uuid: b30ec1c62a124a48ac129e6065d3180d + name: 'Redfish status state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Enabled + - value: '2' + newvalue: Disabled + - value: '3' + newvalue: Absent + - value: '4' + newvalue: Deferring + - value: '5' + newvalue: InTest + - value: '6' + newvalue: Quiesced + - value: '7' + newvalue: StandbyOffline + - value: '8' + newvalue: StandbySpare + - value: '9' + newvalue: Starting + - value: '10' + newvalue: UnavailableOffline + - value: '11' + newvalue: Updating + - uuid: a63d06ed53ac4f3fb07a7e584301f34a + name: 'Virtual disk RAID status' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: Blocked + - value: '2' + newvalue: Degraded + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Foreign + - value: '5' + newvalue: Offline + - value: '6' + newvalue: Unknown + - value: '7' + newvalue: 'Null' + - value: '8' + newvalue: Ready + - value: '9' + newvalue: Online + - uuid: 3e1d1bf56dd841c7bdc9679ff8e24748 + name: 'Virtual disk read policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: NoReadAhead + - value: '2' + newvalue: ReadAhead + - value: '3' + newvalue: AdaptiveReadAhead + - uuid: c11a3e902ef248a5a1a77af824b43252 + name: 'Virtual disk write policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: WriteThrough + - value: '2' + newvalue: WriteBack + - value: '3' + newvalue: ProtectedWriteBack + - value: '4' + newvalue: UnprotectedWriteBack + graphs: + - uuid: fd69ef33a56a4a53864205a41e944242 + name: 'Dell R720: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.util.cpu + - uuid: 901625ceb44e4891bfc5bff5fcb47cff + name: 'Dell R720: IO utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.util.io + - uuid: a3b920c8d78b4259ae3c83df84410000 + name: 'Dell R720: Memory utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.util.mem + - uuid: 670ede1de7c349a299881c3d79f891ba + name: 'Dell R720: SYS utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by HTTP' + key: dell.server.util.sys diff --git a/DELL_PowerEdge_R720_by_SNMP.yaml b/DELL_PowerEdge_R720_by_SNMP.yaml new file mode 100644 index 0000000..f6aa8e6 --- /dev/null +++ b/DELL_PowerEdge_R720_by_SNMP.yaml @@ -0,0 +1,2608 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: fe5b8448661f41b9a6d948fccd7f9045 + template: 'DELL PowerEdge R720 by SNMP' + name: 'DELL PowerEdge R720 by SNMP' + description: | + Template for DELL PowerEdge R720 servers with iDRAC version 7 and later. + + MIBs used: + HOST-RESOURCES-MIB + IDRAC-MIB-SMIv2 + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 93c5649909334a61ba0414fe7e0063a3 + name: 'SNMP walk RAID controllers table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2]' + key: dell.server.array.controller.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::controllerTable`.' + tags: + - tag: component + value: raw + - uuid: 34a1321bf79841a2a600b11e12d3cef1 + name: 'SNMP walk Battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21]' + key: dell.server.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::batteryTable`.' + tags: + - tag: component + value: raw + - uuid: 5e8cd7ff8b5b4ac796147f72087ea925 + name: 'BIOS version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.4.300.50.1.8.1.1]' + key: dell.server.bios.version + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the version name of the system BIOS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: cd86d6203a874b27be4ed91578928dcf + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'dell.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Name and contact information of the contact person for the node. If not provided, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 4f2fabba628e45ab9dc8627e32e9a35a + name: 'SNMP walk Processor device tables' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.30.1.26,1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.1]' + key: dell.server.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Processor Device Status Table `IDRAC-MIB-SMIv2::processorDeviceTable` and `IDRAC-MIB-SMIv2::processorDeviceStatusTable`.' + tags: + - tag: component + value: raw + - uuid: d5c65ffddfff45319a3f6ba856b73f6b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'dell.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating system, and networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 9773c82f46a6485992049843de57de3e + name: 'SNMP walk Physical disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11]' + key: dell.server.disk.physical.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Physical Disk Table `IDRAC-MIB-SMIv2::physicalDiskTable`.' + tags: + - tag: component + value: raw + - uuid: bf3b1c74945f40549ddd4688250846e1 + name: 'SNMP walk Virtual disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4]' + key: dell.server.disk.virtual.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Virtual Disk Table `IDRAC-MIB-SMIv2::virtualDiskTable`.' + tags: + - tag: component + value: raw + - uuid: 5e06ce9f690c4671bf0fbf38aa6e3b89 + name: 'SNMP walk Cooling device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.12.1.5,1.3.6.1.4.1.674.10892.5.4.700.12.1.8,1.3.6.1.4.1.674.10892.5.4.700.12.1.7,1.3.6.1.4.1.674.10892.5.4.700.12.1.6]' + key: dell.server.fan.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Cooling Device Table `IDRAC-MIB-SMIv2::coolingDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 00928da92ab7499aba169837b2fffc83 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.1.8.0]' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the firmware version of a remote access card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 46c22d9eca174756903b8c26ec69c792 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#1)<>last(/DELL PowerEdge R720 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#2) and length(last(/DELL PowerEdge R720 by SNMP/dell.server.hw.firmware[racFirmwareVersion]))>0' + name: 'Dell R720: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 34fd8f0eaae041828cd1743ef55c16f9 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.12.0]' + key: 'dell.server.hw.model[systemModelName]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the model name of the system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: f5753d89e11f43fba46959b60601d45c + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.2.0]' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the service tag of the system. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 1e3f0933fae74fc29c13177fe2cf6903 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#1)<>last(/DELL PowerEdge R720 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#2) and length(last(/DELL PowerEdge R720 by SNMP/dell.server.hw.serialnumber[systemServiceTag]))>0' + name: 'Dell R720: Device has been replaced' + event_name: 'Dell R720: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3240487059234b49bb822113c1964693 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.5.0]' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + trends: '0' + units: uptime + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the power-up time of the system in seconds. + tags: + - tag: component + value: system + - uuid: ca9019fd89654c52889a12153150151d + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'dell.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., 'telephone closet, 3rd floor'). If the location is unknown, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: beac13b3dfa04b0a9edf1a01e559021e + name: 'Memory, total size' + type: CALCULATED + key: dell.server.memory.size.total + units: B + params: 'sum(last_foreach(//dell.server.memory.size[*]))' + description: 'Total memory amount on the device.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + triggers: + - uuid: deb6d163f8824e489d9e64674d648d80 + expression: 'change(/DELL PowerEdge R720 by SNMP/dell.server.memory.size.total)>0' + name: 'Dell R720: Memory amount has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 84267fb8555d48398b661bce37be8a74 + name: 'SNMP walk Memory device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1]' + key: dell.server.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Memory Device Table `IDRAC-MIB-SMIv2::memoryDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 8b72816906274e1281929a318c44e8c6 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'dell.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 12327b9851254d28b1db193fbca51f9a + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.name[sysName],#1)<>last(/DELL PowerEdge R720 by SNMP/dell.server.name[sysName],#2) and length(last(/DELL PowerEdge R720 by SNMP/dell.server.name[sysName]))>0' + name: 'Dell R720: System name has changed' + event_name: 'Dell R720: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2d273acf4bb646d7a3ca9602d7b529af + name: 'SNMP walk Network device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1, 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1]' + key: dell.server.net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Network Device Table `IDRAC-MIB-SMIv2::networkDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 767944c5d9e0470580f813948d9dbe96 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.6.3.10.2.1.3.0]' + key: 'dell.server.net.uptime[snmpEngineTime]' + trends: '0' + units: uptime + description: | + MIB: SNMP-FRAMEWORK-MIB + The number of seconds since the value of the snmpEngineBoots object last changed. + tags: + - tag: component + value: system + - uuid: 18c324fe6e714549bc337c2711795c40 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'dell.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: a5b4a818eeb04e1fb072b3b8e76441f3 + name: 'SNMP walk Power supply table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.12.1.5,1.3.6.1.4.1.674.10892.5.4.600.12.1.8]' + key: dell.server.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Power Supply Table `IDRAC-MIB-SMIv2::powerSupplyTable`.' + tags: + - tag: component + value: raw + - uuid: 6f407f3ff09f48179075f54eb26604db + name: 'SNMP walk Temperature sensor table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.20.1.1,1.3.6.1.4.1.674.10892.5.4.700.20.1.8,1.3.6.1.4.1.674.10892.5.4.700.20.1.6,1.3.6.1.4.1.674.10892.5.4.700.20.1.5]' + key: dell.server.sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Temperature Probe Table `IDRAC-MIB-SMIv2::temperatureProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 341699ea98c64951b1d94d89b5c81362 + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.1.0]' + key: 'dell.server.status[globalSystemStatus]' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 7b6bbbaf7a6f4ba084e812fc98aee033 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.DISASTER}' + name: 'Dell R720: System is in unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 51bd134f73234388b1c9522468b73883 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + name: 'Dell R720: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for errors.' + tags: + - tag: scope + value: availability + - uuid: e026d877c5e540b9ae06d44874e7ec5d + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.WARN}' + name: 'Dell R720: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R720: System status is in critical state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: availability + - uuid: c8d519bdde9a4c3b89976f7b0dab0696 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.6.0]' + key: 'dell.server.sw.os[systemOSName]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the name of the operating system that the host is running. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 2e07d3f10a114360b4189e47cfd777f8 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sw.os[systemOSName],#1)<>last(/DELL PowerEdge R720 by SNMP/dell.server.sw.os[systemOSName],#2) and length(last(/DELL PowerEdge R720 by SNMP/dell.server.sw.os[systemOSName]))>0' + name: 'Dell R720: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possibly, the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8cb0cacb3ca144d2b917ea457ef3ba24 + name: 'SNMP walk System battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1,1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1]' + key: dell.server.system.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of System Battery Table `IDRAC-MIB-SMIv2::systemBatteryTable`.' + tags: + - tag: component + value: raw + - uuid: 5f7dc7b0c23c40e4b8442ae1223d70d5 + name: 'SNMP walk Voltage probe table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1]' + key: dell.server.voltage.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Voltage Probe Table `IDRAC-MIB-SMIv2::voltageProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 65097a06ef764129bcb0cb7fdd1f0ec8 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other `snmptrap` items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 943b9c35a40c4ca7811212b20b27677d + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: f0b0662e38cd4aa6893dc3b5f89b9c81 + expression: 'max(/DELL PowerEdge R720 by SNMP/zabbix[host,snmp,available],{$DELL.SNMP.TIMEOUT})=0' + name: 'Dell R720: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: b61fe289fe88450db55f03c632e8a26f + name: 'Array controller discovery' + type: DEPENDENT + key: array.discovery + delay: '0' + description: 'Array controller discovery.' + item_prototypes: + - uuid: 0f565dd530fa4a0bb93b642c8ee19b0f + name: 'Controller [{#CNTLR_NAME}]: Model' + type: DEPENDENT + key: 'dell.server.hw.diskarray.model[controllerName.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The controller's name as represented in Storage Management. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: 69ed8def6e2c4025abcc565217064600 + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the controller itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: c9298bbaac134cc39e268d0b94051fcc + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + name: 'Dell R720: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R720: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + - uuid: 69ff155a6ecd4b709a1579641a711283 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + name: 'Dell R720: Controller [{#CNTLR_NAME}]: Unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: ddb5bca1ce3b45fa8da9197d4ac0f758 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + name: 'Dell R720: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R720: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + - name: 'Dell R720: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.controller.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38 + - '0' + - '{#CNTLR_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: ed881938a95c4be2b9c7f0d548696f27 + name: 'Battery discovery' + type: DEPENDENT + key: battery.discovery + delay: '0' + description: 'Battery discovery.' + item_prototypes: + - uuid: 9444982ba8cf4c70a03a780fab18a36a + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.battery.status[batteryState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Current state of battery. + Possible values: + 1: The current state could not be determined. + 2: The battery is operating normally. + 3: The battery has failed and needs to be replaced. + 4: The battery temperature is high or charge level is depleting. + 5: The battery is missing or not detected. + 6: The battery is undergoing the re-charge phase. + 7: The battery voltage or charge level is below the threshold. + valuemap: + name: 'IDRAC-MIB-SMIv2::batteryState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.battery.walk + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: 7c3cb436445949b5a28368cf4ce00fdc + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + name: 'Dell R720: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 8cd73ebf8055426883d8301ceeca51de + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])<>{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + name: 'Dell R720: Battery [{#BATTERY_NAME}]: Not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R720: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + - name: 'Dell R720: Battery [{#BATTERY_NAME}]: Warning state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + tags: + - tag: scope + value: availability + - uuid: 893e3d8d04e841058eafa43752546f1c + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + name: 'Dell R720: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R720: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#BATTERY_NUM}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1 + - '0' + - '{#BATTERY_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 6df0976045b942b8986b8c3a46c2fde4 + name: 'CPU status discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: 'CPU status discovery.' + item_prototypes: + - uuid: 668835ea1b0a4146a6296d298a9f1607 + name: 'CPU [{#CPU_FQDD}]: State' + type: DEPENDENT + key: 'dell.server.cpu.state[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the reading of the processor device status probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 1f919ce7df874574b764d1c3f17ed693 + expression: 'bitand(last(/DELL PowerEdge R720 by SNMP/dell.server.cpu.state[cpu.{#SNMPINDEX}],#1),128)=0' + name: 'Dell R720: CPU [{#CPU_FQDD}]: Reading error' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU probe reading flag is not `processorPresent`. + tags: + - tag: scope + value: availability + - uuid: 201313c89ba245a794e5e76778c0dfa4 + name: 'CPU [{#CPU_FQDD}]: Status' + type: DEPENDENT + key: 'dell.server.cpu.status[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the status of the processor device status probe. This status will be joined into the `processorDeviceStatus` attribute.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 54f006add0c7435b8cabaa361d8eb27e + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.cpu.status[cpu.{#SNMPINDEX}],#1)<>3' + name: 'Dell R720: CPU [{#CPU_FQDD}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.30.1.26 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: c0c2f9b115f04ebe8b709032f8c97669 + name: 'Fan discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + filter: + conditions: + - macro: '{#TYPE}' + value: '3' + formulaid: A + description: 'Fan discovery.' + item_prototypes: + - uuid: fdd01d80c11e41e3aa1c8975b4f2b926 + name: 'Fan [{#FAN_DESCR}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + delay: '0' + units: rpm + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a cooling device of a subtype other than `coolingDeviceSubTypeIsDiscrete`. + When the value for `coolingDeviceSubType` is other than `coolingDeviceSubTypeIsDiscrete`, the value returned for this attribute is the speed in RPM or the "OFF/ON" value of the cooling device. + When the value for `coolingDeviceSubType` is `coolingDeviceSubTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + - uuid: 028a4cd49fd04e92aac769f4e38a40c9 + name: 'Fan [{#FAN_DESCR}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#FAN_DESCR}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the cooling device. + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 20e8c5ad48a44748a5223aa1f2c391dc + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + name: 'Dell R720: Fan [{#FAN_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: availability + - uuid: 791e1a7e913c467fb93209e75e33e7ca + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R720: Fan [{#FAN_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'Dell R720: Fan [{#FAN_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 32ac4de62079442c839ac548abd71e52 + name: 'Dell R720: Fan [{#FAN_DESCR}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + master_item: + key: dell.server.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.5 + - '0' + - '{#FAN_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.8 + - '0' + - '{#TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: c5603b825445457c8b39662df9fd7db8 + name: 'Memory discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: 'Memory discovery.' + item_prototypes: + - uuid: 4c857762cecb45fe8bb545b5cc786d9c + name: 'Memory [{#SNMPVALUE}]: Size' + type: DEPENDENT + key: 'dell.server.memory.size[{#SNMPVALUE}]' + delay: '0' + units: B + description: 'This attribute defines the size, in KB, of the memory device. Zero indicates no memory installed; 2,147,483,647 indicates an unknown memory size.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + - uuid: c692910b52774a33aabaff78e46cc855 + name: 'Memory [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.memory.status[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the memory device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: a2ba71923e31415ead86dc46fd7e665e + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.memory.status[{#SNMPVALUE}],#1)<>3' + name: 'Dell R720: Memory [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Memory status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 669b97ebc2464988857a2496af5652a0 + name: 'Network interface discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: e6728405f5c64aec8822190e868625d3 + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.link[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the connection status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: a5455d074ae94d7daa4eb11d345e33fb + expression: '{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1 and last(/DELL PowerEdge R720 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>1 and last(/DELL PowerEdge R720 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>last(/DELL PowerEdge R720 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)=1 or {$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=0' + name: 'Dell R720: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down. + 2. `{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 396dee5189a14314a861a04d9a0dcacc + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: a56df48040fd4ffcb6401cc7a407d303 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.net.if.status[{#NIC_FQDD}],#1)<>3' + name: 'Dell R720: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Network interface status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NIC_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1 + - '0' + - '{#NIC_MAC}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1 + - '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: ed21036b0df047f5924df6ed4fd53b62 + name: 'Physical disk discovery' + type: DEPENDENT + key: physicaldisk.discovery + delay: '0' + description: 'Physical disk discovery.' + item_prototypes: + - uuid: 6830d155acf647fd990822137efa9d02 + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[physicalDiskMediaType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The media type of the physical disk. Possible Values: + 1: The media type could not be determined. + 2: Hard Disk Drive (HDD). + 3: Solid State Drive (SSD). + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 3cae98ed317a43e7920d4ae9106fe9cd + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[physicalDiskProductID.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The model number of the physical disk. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 27f4105ce0c24d9f8509f71b59ce8714 + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The physical disk's unique identification number from the manufacturer. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 74b1394597ce4036b9eef76db92a9ac7 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#1)<>last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#2) and length(last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]))>0' + name: 'Dell R720: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R720: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 20d406f393fc4a6b9963569d24a02106 + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the physical disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: aa58b1d10ae8498a9f6ca736e083ec91 + name: 'Physical disk [{#DISK_NAME}]: S.M.A.R.T. Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Indicates whether the physical disk has received a predictive failure alert. + valuemap: + name: 'IDRAC-MIB-SMIv2::BooleanType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 85205e77583b4d82b408fd1bedb6e680 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'Dell R720: Physical disk [{#DISK_NAME}]: S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'Dell R720: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + - uuid: 551bee86234a4c99a6c7c5ac7db89f37 + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the physical disk itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 899cfe68ef4f4a8abf841c7efb7448a7 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + name: 'Dell R720: Physical disk [{#DISK_NAME}]: Failed state' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: aaeaa0c4d26d4f8d878517efff99c624 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + name: 'Dell R720: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'Dell R720: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R720 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 3b54483c46bb4038a3fb60070b1ab41b + name: 'Dell R720: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.physical.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 166c453303e843bbadc62963b725da95 + name: 'PSU discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'PSU discovery.' + item_prototypes: + - uuid: 43fe09a202994622bbef420c9b018d49 + name: 'Power supply [{#PSU_DESCR}]: State' + type: DEPENDENT + key: 'dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the status of the power supply. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.psu.walk + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: c3141535717d439fa74ffe068b0c61d5 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + name: 'Dell R720: Power supply [{#PSU_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: availability + - uuid: 9b0d4e804b0c4918a7c3660f8772bc88 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + name: 'Dell R720: Power supply [{#PSU_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'Dell R720: Power supply [{#PSU_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.5 + - '0' + - '{#PSU_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 28b27d2152814dda9a9fef602ec78b38 + name: 'System battery discovery' + type: DEPENDENT + key: system.battery.discovery + delay: '0' + description: 'System battery discovery.' + item_prototypes: + - uuid: 89887fe6674e42ac985018f1da7c86e0 + name: 'System battery [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.system.battery[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the battery.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.battery.walk + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: d61b5c42fbe9451fb02e66cb65682a3d + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.system.battery[{#SNMPVALUE}],#1)<>3' + name: 'Dell R720: System battery [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + System battery status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.system.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8e29bd2cab71430b8306394b6f629ac2 + name: 'Temperature discovery' + type: DEPENDENT + key: temp.discovery + delay: '0' + description: 'Temperature sensor discovery.' + item_prototypes: + - uuid: 8933cb6596154baca790294c37d0a3b9 + name: 'Probe [{#SENSOR_LOCALE}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the temperature probe. + Possible values: + other(1), -- probe status is not one of the following: + unknown(2), -- probe status is unknown (not known or monitored) + ok(3), -- probe is reporting a value within the thresholds + nonCriticalUpper(4), -- probe has crossed the upper noncritical threshold + criticalUpper(5), -- probe has crossed the upper critical threshold + nonRecoverableUpper(6), -- probe has crossed the upper non-recoverable threshold + nonCriticalLower(7), -- probe has crossed the lower noncritical threshold + criticalLower(8), -- probe has crossed the lower critical threshold + nonRecoverableLower(9), -- probe has crossed the lower non-recoverable threshold + failed(10) -- probe is not functional + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 6c9f6edf352f458a96ab3e388307afd6 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + name: 'Dell R720: Probe [{#SENSOR_LOCALE}]: Critical status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: a897d28f37914cad92faaa3ffb218463 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])<>{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + name: 'Dell R720: Probe [{#SENSOR_LOCALE}]: Not in optimal status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + manual_close: 'YES' + dependencies: + - name: 'Dell R720: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + - name: 'Dell R720: Probe [{#SENSOR_LOCALE}]: Warning status' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + tags: + - tag: scope + value: notice + - uuid: 44b9519b16e441028e7af08ae1ec4942 + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R720: Probe [{#SENSOR_LOCALE}]: Warning status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R720: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R720 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + tags: + - tag: scope + value: availability + - uuid: 9c03b7da06874b69a43943de63912d82 + name: 'Probe [{#SENSOR_LOCALE}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a temperature probe of type other than `temperatureProbeTypeIsDiscrete`. + When the value for `temperatureProbeType` is other than `temperatureProbeTypeIsDiscrete`, the value returned for this attribute is the temperature that the probe is reading in Centigrade. + When the value for `temperatureProbeType` is `temperatureProbeTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: 857150f6f2ff4fec9fb80e3235adb830 + name: 'Dell R720: Probe [{#SENSOR_LOCALE}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + master_item: + key: dell.server.sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.1 + - '0' + - '{#SENSOR_LOCALE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 4332291ca425477387bed6abccaaefd3 + name: 'Virtual disk discovery' + type: DEPENDENT + key: virtualdisk.discovery + delay: '0' + description: 'Virtual disk discovery.' + item_prototypes: + - uuid: 6f63f8bbeba44c3a85a874f6e2796b26 + name: 'Virtual disk [{#DISK_NAME}]: Layout type' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.layout[virtualDiskLayout.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The virtual disk's RAID type. + Possible values: + 1: Not one of the following + 2: RAID-0 + 3: RAID-1 + 4: RAID-5 + 5: RAID-6 + 6: RAID-10 + 7: RAID-50 + 8: RAID-60 + 9: Concatenated RAID 1 + 10: Concatenated RAID 5 + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 9bcd5c8774d64293a3c03135df0026bf + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[virtualDiskReadPolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The read policy used by the controller for read operations on this virtual disk. + Possible values: + 1: No Read Ahead. + 2: Read Ahead. + 3: Adaptive Read Ahead. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: f52835c258ea4b2ab16ab91fa14f2cd9 + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the virtual disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 100faa8a115f4f34a61938fc9fe2b056 + name: 'Virtual disk [{#DISK_NAME}]: Operational state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[virtualDiskOperationalState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The state of the virtual disk when there are progressive operations ongoing. + Possible values: + 1: There is no active operation running. + 2: The virtual disk configuration has changed. The physical disks included in the virtual disk are being modified to support the new configuration. + 3: A Consistency Check (CC) is being performed on the virtual disk. + 4: The virtual disk is being initialized. + 5: BackGround Initialization (BGI) is being performed on the virtual disk. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 9f49cd360dc849d19abe10cd5cf94a10 + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The current state of this virtual disk (which includes any member physical disks.) + Possible states: + 1: The current state could not be determined. + 2: The virtual disk is operating normally or optimally. + 3: The virtual disk has encountered a failure. Data on the disk is lost or is about to be lost. + 4: The virtual disk encountered a failure with one or all of the constituent redundant physical disks. + The data on the virtual disk might no longer be fault tolerant. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 0bd27a473d694b9c8ddb59fe2711608a + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + name: 'Dell R720: Virtual disk [{#DISK_NAME}]: Failed state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the virtual disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: 7ca47e8ba4a549b2a799d4e78adf5add + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + name: 'Dell R720: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the virtual disk for warnings or errors.' + dependencies: + - name: 'Dell R720: Virtual disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + - uuid: d599f3c67807443b82c9ec83af325142 + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[virtualDiskWritePolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The write policy used by the controller for write operations on this virtual disk. + Possible values: + 1: Write Through. + 2: Write Back. + 3: Force Write Back. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: 7f5fdaf45edf49f4bde8c86147949c50 + name: 'Dell R720: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.virtual.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 1aa767e3c91e427ebd508df8e49f89dd + name: 'Voltage probe discovery' + type: DEPENDENT + key: voltage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + formulaid: A + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + formulaid: C + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Voltage probe discovery.' + item_prototypes: + - uuid: 2b9a84f4a7fb429081a22394ba9ef81f + name: 'Voltage probe [{#VPROBE_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.voltage.status[{#VPROBE_NAME}]' + delay: '0' + description: 'This attribute defines the status of the voltage probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + trigger_prototypes: + - uuid: 68360a834efd4d0188a9d58d01b9429a + expression: 'last(/DELL PowerEdge R720 by SNMP/dell.server.voltage.status[{#VPROBE_NAME}])<>3' + name: 'Dell R720: Voltage probe [{#VPROBE_NAME}]: Status is not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device''s voltage.' + tags: + - tag: scope + value: availability + - uuid: 053c9f3e14cc438795b0a7911ab57854 + name: 'Voltage probe [{#VPROBE_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'This attribute defines the reading for a voltage probe.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + graph_prototypes: + - uuid: 441e248166f64944aec3abc9e296c980 + name: 'Dell R720: Voltage probe [{#VPROBE_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + master_item: + key: dell.server.voltage.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#VPROBE_NAME}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1 + - '0' + - '{#VPROBE_TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + value: '^.*Voltage.*$' + description: 'Sets the regex string of voltage probe names to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe names to ignore in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + value: 18|16 + description: 'Sets the regex string of voltage probe types to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe types to ignore in discovery.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + value: '3' + description: 'The critical status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + value: '2' + description: 'The OK status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + value: '5' + description: 'The critical status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + value: '6' + description: 'The disaster status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.SMART.STATUS.FAIL}' + value: '1' + description: 'The critical S.M.A.R.T status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"critical"}' + value: '5' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + value: '6' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + value: '10' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.CRIT}' + value: '5' + description: 'The critical status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.DISASTER}' + value: '6' + description: 'The disaster status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.WARN}' + value: '4' + description: 'The warning status of health for the trigger expression.' + - macro: '{$DELL.SNMP.IFCONTROL}' + value: '1' + description: 'The link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"critical"}' + value: '5' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + value: '6' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + value: '3' + description: 'The OK status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP agent availability trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + value: '3' + description: 'The critical status of the virtual disk for the trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + value: '4' + description: 'The warning status of the virtual disk for the trigger expression.' + dashboards: + - uuid: 4b25be13fc3d4fd9bb73621f4e00c64e + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: item + name: 'System health' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.status[globalSystemStatus]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '36' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.hw.model[systemModelName]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '36' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'NIC*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Voltage probe*Voltage' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Fan*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + valuemaps: + - uuid: 3764082c250540f0b2827412a751f842 + name: 'IDRAC-MIB-SMIv2::batteryState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Ready + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - value: '5' + newvalue: Missing + - value: '6' + newvalue: Charging + - value: '7' + newvalue: 'Below threshold' + - uuid: ef50d21a037545078e00102504b9b79d + name: 'IDRAC-MIB-SMIv2::BooleanType' + mappings: + - value: '0' + newvalue: ok + - value: '1' + newvalue: failed + - uuid: d731845914484868bbcb3c3e5b9d7707 + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: connected + - value: '2' + newvalue: disconnected + - value: '3' + newvalue: driverBad + - value: '4' + newvalue: driverDisabled + - value: '10' + newvalue: hardwareInitalizing + - value: '11' + newvalue: hardwareResetting + - value: '12' + newvalue: hardwareClosing + - value: '13' + newvalue: hardwareNotReady + - uuid: faa7d65868044cb08c2681db9615ef83 + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: c0b777b910e94d338ebfaacc94ca5c54 + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: 596722d9a0b84c499908e460ba634a87 + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: HDD + - value: '3' + newvalue: SSD + - uuid: 4b8e905e42a94f8ebb9a9a4b2648ed84 + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + mappings: + - value: '1' + newvalue: internalError + - value: '2' + newvalue: thermalTrip + - value: '32' + newvalue: configurationError + - value: '128' + newvalue: processorPresent + - value: '256' + newvalue: processorDisabled + - value: '512' + newvalue: terminatorPresent + - value: '1024' + newvalue: processorThrottled + - uuid: bd55f661ad24498a8876816ef9e70506 + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCriticalUpper + - value: '5' + newvalue: criticalUpper + - value: '6' + newvalue: nonRecoverableUpper + - value: '7' + newvalue: nonCriticalLower + - value: '8' + newvalue: criticalLower + - value: '9' + newvalue: nonRecoverableLower + - value: '10' + newvalue: failed + - uuid: 487f601e3f35437e800314865895b69b + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: RAID-0 + - value: '3' + newvalue: RAID-1 + - value: '4' + newvalue: RAID-5 + - value: '5' + newvalue: RAID-6 + - value: '6' + newvalue: RAID-10 + - value: '7' + newvalue: RAID-50 + - value: '8' + newvalue: RAID-60 + - value: '9' + newvalue: 'Concatenated RAID 1' + - value: '10' + newvalue: 'Concatenated RAID 5' + - uuid: a02a3f0c0fb24a52887f3feec42ae42a + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + mappings: + - value: '1' + newvalue: 'Not applicable' + - value: '2' + newvalue: Reconstructing + - value: '3' + newvalue: Resynching + - value: '4' + newvalue: Initializing + - value: '5' + newvalue: 'Background init' + - uuid: e2b543acfe9045ae8950075c1174b836 + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + mappings: + - value: '1' + newvalue: 'No Read Ahead' + - value: '2' + newvalue: 'Read Ahead' + - value: '3' + newvalue: 'Adaptive Read Ahead' + - uuid: 348ab665927b43e2b7e53eac8ab95820 + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - uuid: 3bfaa8f277a549f7ae8a1bf0dc49e64f + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + mappings: + - value: '1' + newvalue: 'Write Through' + - value: '2' + newvalue: 'Write Back' + - value: '3' + newvalue: 'Force Write Back' + - uuid: 8124caf5004c4dd8985810ac9e6374b6 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 03411617acad4aeb8ddcb5e873ae1b73 + expression: '(last(/DELL PowerEdge R720 by SNMP/dell.server.hw.uptime[systemPowerUpTime])>0 and last(/DELL PowerEdge R720 by SNMP/dell.server.hw.uptime[systemPowerUpTime])<10m) or (last(/DELL PowerEdge R720 by SNMP/dell.server.hw.uptime[systemPowerUpTime])=0 and last(/DELL PowerEdge R720 by SNMP/dell.server.net.uptime[snmpEngineTime])<10m)' + name: 'Dell R720: Host has been restarted' + event_name: 'Dell R720: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 36ecb02a52704e5987c5736fd650722d + name: 'Dell R720: Uptime' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + - sortorder: '1' + color: F63100 + item: + host: 'DELL PowerEdge R720 by SNMP' + key: 'dell.server.net.uptime[snmpEngineTime]' diff --git a/DELL_PowerEdge_R740_by_HTTP.yaml b/DELL_PowerEdge_R740_by_HTTP.yaml new file mode 100644 index 0000000..147288d --- /dev/null +++ b/DELL_PowerEdge_R740_by_HTTP.yaml @@ -0,0 +1,3857 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 3f707f39c32a4b6e8b214c38a260f6f9 + template: 'DELL PowerEdge R740 by HTTP' + name: 'DELL PowerEdge R740 by HTTP' + description: | + Template for DELL PowerEdge R740 servers with iDRAC 8/9 firmware 4.32 and later and Redfish API enabled. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: d913e585d3834b86a552e5cc7fe717fc + name: 'Get array controller resources' + type: SCRIPT + key: dell.server.array.resources.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Controller', 'Discovery', params); + + const controllers = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage?$expand=.($levels=1)'), 'Members'); + + var arrControllerKeys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'slot', + 'path': 'Oem.Dell.DellController.PCISlot' + } + ]; + + var battControllerKeys = [ + { + 'name': 'id', + 'path': 'Oem.Dell.DellControllerBattery.Id' + }, + { + 'name': 'name', + 'path': 'Oem.Dell.DellControllerBattery.Name' + }, + { + 'name': 'status', + 'path': 'Oem.Dell.DellControllerBattery.PrimaryStatus' + } + ]; + + if (!Array.isArray(controllers)) { + throw 'Unexpected type for controllers.'; + } + + var buffer = { 'arrayControllers': [], 'batteryControllers': [] }; + + controllers.forEach(function (controller) { + if (controller['Id'].search('RAID') > -1) { + buffer['arrayControllers'].push(dell.extractData(controller, arrControllerKeys, true)); + buffer['batteryControllers'].push(dell.extractData(controller, battControllerKeys, true)); + } + }); + + return JSON.stringify(buffer); + description: 'Returns array controller resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 6d340455b52d45fcadc83a1dc9361544 + name: 'Get disks' + type: SCRIPT + key: dell.server.disks.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Discovery', params); + + const disks = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'name', + 'path': 'Name' + } + ]; + + if (!Array.isArray(disks)) { + throw 'Unexpected type for disks.'; + } + + var buffer = { 'physicalDisks': [], 'virtualDisks': [] }; + + disks.forEach(function (disk) { + var requests = [{ 'usage': 'physicalDisks', 'path': '', 'target': 'Drives' }, { 'usage': 'virtualDisks', 'path': '/Volumes', 'target': 'Members' }]; + + requests.forEach(function (request) { + const disks = dell.extractData(dell.executeRequest(disk['@odata.id'] + request['path']), request['target']); + + if (!Array.isArray(disks) || disks.length <= 0) { + return; + } + + disks.forEach(function (drive) { + buffer[request['usage']].push(dell.extractData(dell.executeRequest(drive['@odata.id']), keys)); + }); + }); + }); + + return JSON.stringify(buffer); + description: 'Returns storage resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: aa1def487bd54496aaf8372cb76b2077 + name: 'Firmware version' + type: DEPENDENT + key: dell.server.hw.firmware + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the firmware version of a remote access card.' + preprocessing: + - type: JSONPATH + parameters: + - $.firmware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: e25c62f68b3f4c53a0680b651e99cdc7 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.hw.firmware,#1)<>last(/DELL PowerEdge R740 by HTTP/dell.server.hw.firmware,#2) and length(last(/DELL PowerEdge R740 by HTTP/dell.server.hw.firmware))>0' + name: 'Dell R740: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6790e2fb624b4dbc9382f32f9403a9b9 + name: 'Hardware model name' + type: DEPENDENT + key: dell.server.hw.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the model name of the system.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + - uuid: ac9560837ada4906b898518f3f61d84e + name: 'Hardware serial number' + type: DEPENDENT + key: dell.server.hw.serialnumber + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the service tag of the system.' + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - $.serialnumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: 99d9055edb1a486cbfd064b794b37450 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.hw.serialnumber,#1)<>last(/DELL PowerEdge R740 by HTTP/dell.server.hw.serialnumber,#2) and length(last(/DELL PowerEdge R740 by HTTP/dell.server.hw.serialnumber))>0' + name: 'Dell R740: Device has been replaced' + event_name: 'Dell R740: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 405e79c2477e41de8af49785c57bbeb4 + name: 'Get network interfaces' + type: SCRIPT + key: dell.server.net.iface.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Discovery', params); + + const netAdapters = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'id', + 'path': 'Id' + } + ]; + + if (!Array.isArray(netAdapters)) { + throw 'Unexpected type for network adapters.'; + } + + var buffer = []; + + netAdapters.forEach(function (netAdapter) { + const netPorts = dell.extractData(dell.executeRequest(netAdapter["@odata.id"] + '/NetworkPorts'), 'Members'); + + if (!Array.isArray(netPorts)) { + return; + } + + netPorts.forEach(function (netPort) { + buffer.push(dell.extractData(dell.executeRequest(netPort["@odata.id"]), keys)); + }) + + }); + + return JSON.stringify(buffer); + description: 'Returns network interfaces.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: ccd47edb739c47418bdf17141cd60112 + name: 'Get sensors' + type: SCRIPT + key: dell.server.sensors.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + function formatPSU(psuObj) { + var foundPowerSupplies = [], + buffer = []; + + psuObj.forEach(function (obj) { + const psuName = obj['name'].split(' ')[0]; + + if (foundPowerSupplies.indexOf(psuName) === -1) { + foundPowerSupplies.push(psuName); + buffer.push({ + 'name': psuName, + [obj['type'].toLowerCase()]: {'reading': obj['reading'], 'health': obj['health']} + }); + } else { + buffer.forEach(function (bufferObj) { + + if (bufferObj['name'] === psuName) { + bufferObj[obj['type'].toLowerCase()] = {'reading': obj['reading'], 'health': obj['health']}; + + return; + } + }); + } + }) + return buffer; + }; + + function formatTemp(tempObj) { + tempObj.forEach(function (obj) { + obj.name = obj.name.split(' ').slice(0, -1).join(' '); + }); + + return tempObj; + } + + function formatSysBoard(sysObj) { + const remove = ['System', 'Board', 'Usage']; + + sysObj.forEach(function (obj) { + var buffer = []; + + obj['name'].split(' ').forEach(function (word) { + var match = false; + + remove.forEach(function (removeWord) { + if (removeWord === word) { + match = true; + } + }); + + if (!match) { + buffer.push(word); + } + }); + + if (buffer.length > 0) { + obj['name'] = buffer.join(' '); + } + }); + + return sysObj; + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Sensor', 'Discovery', params); + + const sensors = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/Sensors?$expand=.($levels=1)'), 'Members'); + + if (!Array.isArray(sensors)) { + throw 'Unexpected type for sensors.'; + } + + const keys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'context', + 'path': 'PhysicalContext' + }, + { + 'name': 'reading', + 'path': 'Reading' + }, + { + 'name': 'type', + 'path': 'ReadingType' + }, + { + 'name': 'health', + 'path': 'Status.Health' + } + ]; + + var buffer = { 'fan': [], 'psu': [], 'temperature': [], 'sysBoard': [] }; + + sensors.forEach(function (sensor) { + if (sensor['Name'].substring(0, 2) === 'PS' && sensor['PhysicalContext'] === 'PowerSupply') { + buffer['psu'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['ReadingType'] === 'Temperature') { + buffer['temperature'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('Fan') && sensor['ReadingType'] === 'Rotational') { + buffer['fan'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('System Board') && sensor['ReadingType'] === 'Percent') { + buffer['sysBoard'].push(dell.extractData(sensor, keys, true)); + } + }); + + buffer['psu'] = formatPSU(buffer['psu']); + buffer['temperature'] = formatTemp(buffer['temperature']); + buffer['sysBoard'] = formatSysBoard(buffer['sysBoard']); + + return JSON.stringify(buffer); + description: 'Returns sensors.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: d4cf468d146b46e9aa2245c5f7136aaa + name: 'Overall system health status' + type: DEPENDENT + key: dell.server.status + delay: '0' + trends: '0' + description: 'This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 99ebb04c198c4ce4ba5bb1eabe186d97 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.status,)=3' + name: 'Dell R740: Server is in a critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: c36399ae3aef4f18944a92ecc539371d + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.status,)=2' + name: 'Dell R740: Server is in a warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: Server is in a critical state' + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.status,)=3' + tags: + - tag: scope + value: availability + - uuid: 0bf660f3d66a4322acaeee585d258ddc + name: 'Get system' + type: SCRIPT + key: dell.server.system.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('System', 'Get system metrics', params); + + const requests = [ + { + 'path': '/redfish/v1/Systems/System.Embedded.1', + 'keys': [ + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'serialnumber', + 'path': 'Oem.Dell.DellSystem.ChassisServiceTag' + }, + { + 'name': 'status', + 'path': 'Status.Health' + } + ] + }, + { + 'path': '/redfish/v1/Managers/iDRAC.Embedded.1', + 'keys': { + 'name': 'firmware', + 'path': 'FirmwareVersion' + } + } + ]; + + var buffer = {}; + + for (var i = 0, requestsCount = requests.length; i < requestsCount; i++) { + Object.assign(buffer, dell.extractData(dell.executeRequest(requests[i].path), requests[i].keys)); + } + + return JSON.stringify(buffer); + description: 'Returns system metrics.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 46c8cbc75634425b88bbe746c0d3ebef + name: 'CPU utilization, in %' + type: DEPENDENT + key: dell.server.util.cpu + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: cpu + triggers: + - uuid: acfc613fa7ef4aea8673fa9804804480 + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.WARN}' + name: 'Dell R740: CPU utilization is high' + event_name: 'Dell R740: Current CPU utilization is high (util >= {$DELL.HTTP.CPU.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R740: CPU utilization is too high' + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: a65d0e094829439da83b403d0373ad6c + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + name: 'Dell R740: CPU utilization is too high' + event_name: 'Dell R740: Current CPU utilization is too high (util >= {$DELL.HTTP.CPU.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 4ac933e796074014aeb7fa6d3ec16b81 + name: 'IO utilization, in %' + type: DEPENDENT + key: dell.server.util.io + delay: '0' + value_type: FLOAT + units: '%' + description: 'IO utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: io + triggers: + - uuid: a0912c7c62b342bbabc74fda99908c4e + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.WARN}' + name: 'Dell R740: IO utilization is high' + event_name: 'Dell R740: Current IO utilization is high (util >= {$DELL.HTTP.IO.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R740: IO utilization is too high' + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: c94f37d12fa9446a81095caaf68e4c70 + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + name: 'Dell R740: IO utilization is too high' + event_name: 'Dell R740: Current IO utilization is too high (util >= {$DELL.HTTP.IO.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: d2df292726e144559fec8adc302d05b3 + name: 'Memory utilization, in %' + type: DEPENDENT + key: dell.server.util.mem + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: memory + triggers: + - uuid: 52c7a1c084f545b58ede5a24b06d0dda + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.WARN}' + name: 'Dell R740: Memory utilization is high' + event_name: 'Dell R740: Current memory utilization is high (util >= {$DELL.HTTP.MEM.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R740: Memory utilization is too high' + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 25d4b9b8fb244d58ab805e6f18ab3581 + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + name: 'Dell R740: Memory utilization is too high' + event_name: 'Dell R740: Current memory utilization is too high (util >= {$DELL.HTTP.MEM.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: cb9797b2d98946549bf07c2682672601 + name: 'SYS utilization, in %' + type: DEPENDENT + key: dell.server.util.sys + delay: '0' + value_type: FLOAT + units: '%' + description: 'SYS utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: sys + triggers: + - uuid: 2813184ff5c44f128233860941ffe75b + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.WARN}' + name: 'Dell R740: SYS utilization is high' + event_name: 'Dell R740: Current SYS utilization is high (util >= {$DELL.HTTP.SYS.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R740: IO utilization is too high' + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: d29b786246364813a98664d892e1189b + expression: 'min(/DELL PowerEdge R740 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.HIGH}' + name: 'Dell R740: SYS utilization is too high' + event_name: 'Dell R740: Current SYS utilization is too high (util >= {$DELL.HTTP.SYS.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 0ce986507b414619bf8cad6dcf1e61b6 + name: 'Redfish API status' + type: SIMPLE + key: 'net.tcp.service[https]' + description: | + Availability of Redfish API on the server. + Possible values: + 0 - Unavailable + 1 - Available + valuemap: + name: 'Redfish API availability' + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: abc84a9051bc411eab4481b539e58f5c + expression: 'last(/DELL PowerEdge R740 by HTTP/net.tcp.service[https])=0' + name: 'Dell R740: Redfish API service is unavailable' + priority: HIGH + description: 'The service is unavailable or does not accept TCP connections.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 57f6fe0a9cef448e9a1e05a42886d74b + name: 'Array controller discovery' + type: DEPENDENT + key: dell.server.array.discovery + delay: '0' + description: 'Discovery of disk array controllers.' + item_prototypes: + - uuid: 0021ba826a8c4b068b5cae8149a64b16 + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.array.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.arrayControllers[?(@.id == "{#ID}")].health.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 50bdae400b1a434781b3f5f39573aab1 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.array.status[{#ID}],)=3' + name: 'Dell R740: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 844f79aa364a4b66b1a99a3fec6aafbf + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.array.status[{#ID}],)=2' + name: 'Dell R740: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.array.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#CNTLR_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SLOT}' + path: $.slot + preprocessing: + - type: JSONPATH + parameters: + - $.arrayControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 670f172f96d449b7a49ddef0c9f47044 + name: 'Battery discovery' + type: DEPENDENT + key: dell.server.controller.battery.discovery + delay: '0' + description: 'Discovery of battery controllers.' + item_prototypes: + - uuid: 2af258c29e9f4bdd8f764ff3d88bf993 + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.controller.battery.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.batteryControllers[?(@.id == "{#ID}")].status.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: 2692e6af995642f1af4c3c3b8a24a4d3 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + name: 'Dell R740: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: e758c396c3fe4fc281afd2b68fa4fe25 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.controller.battery.status[{#ID}],)=2' + name: 'Dell R740: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#BATTERY_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.batteryControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 93993bb9443c4e80b062a2495e89c2cb + name: 'FAN discovery' + type: DEPENDENT + key: dell.server.fan.discovery + delay: '0' + description: 'Discovery of FAN sensors.' + item_prototypes: + - uuid: 46c42056f8004caa91a6d9c6e74ca58b + name: 'Fan [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.fan.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: fan + - tag: component + value: raw + - uuid: 08d19c50b1b04a37b8152b2be05f7d37 + name: 'Fan [{#SENSOR_NAME}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + delay: '0' + units: '!rpm' + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + - uuid: 432eed8eb06d4c788cce849ff7ec7c66 + name: 'Fan [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 509e958d1b4541c79916398a92f1f2da + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + name: 'Dell R740: Fan [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: c9477efc33704403a118e2a1fa51f04e + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=2' + name: 'Dell R740: Fan [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: Fan [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: c273950f4653461f9ff91f6103eb8ea9 + name: 'Dell R740: Fan [{#SENSOR_NAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.fan + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3cfbe2ab8583452788f53d035985ac3d + name: 'Network interface discovery' + type: DEPENDENT + key: dell.server.net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: 9c0d896957234a5b99d8f35074a07d7b + name: 'Interface [{#IFNAME}]: Get interface' + type: SCRIPT + key: 'dell.server.net.if.get[{#IFNAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Get metrics', params); + + const keys = [ + { + 'name': 'linkStatus', + 'path': 'LinkStatus' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'state', + 'path': 'Status.State' + }, + { + 'name': 'linkSpeed', + 'path': 'CurrentLinkSpeedMbps' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a network interface.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: network + - tag: component + value: raw + - uuid: 9e0cdfe87ecf4622a5b9755d37a966e6 + name: 'Interface [{#IFNAME}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.health[{#IFNAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: cb3e3352f93c4297848e28295763a60c + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + name: 'Dell R740: Interface [{#IFNAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 207524d584ac4219be2d7bc15e6dd548 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.health[{#IFNAME}],)=2' + name: 'Dell R740: Interface [{#IFNAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: Interface [{#IFNAME}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: d42187489b424ccdbb6b9f2d9d2486fb + name: 'Interface [{#IFNAME}]: Speed' + type: DEPENDENT + key: 'dell.server.net.if.speed[{#IFNAME}]' + delay: '0' + units: bps + description: 'The network port current link speed.' + preprocessing: + - type: JSONPATH + parameters: + - $.linkSpeed + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: b280d103cca745999d50eaca7b1d6936 + name: 'Interface [{#IFNAME}]: State' + type: DEPENDENT + key: 'dell.server.net.if.state[{#IFNAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: 475ee8304c78449bbdd58132f38b39b7 + name: 'Interface [{#IFNAME}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#IFNAME}]' + delay: '0' + description: 'The status of the link between this port and its link partner. Possible values: Down, Up, null.' + valuemap: + name: 'Network interface status' + preprocessing: + - type: JSONPATH + parameters: + - $.linkStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'null': 1, + 'Down': 2, + 'Up': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 89063973565f43f3986438b83972413c + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.status[{#IFNAME}],)=2 and last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.status[{#IFNAME}],)=3 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R740: Interface [{#IFNAME}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down (2). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down (2). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces). + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 00f838261fc74679a8908b413b466314 + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.status[{#IFNAME}],)<2 and last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.net.if.status[{#IFNAME}],)>=2 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R740: Interface [{#IFNAME}]: Link status issue' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Null (1) or Unknown (0). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Null (1) or Unknown (0). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 2675aedb87374afdbed6651d4ad5336d + name: 'Dell R740: Interface [{#IFNAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: 'dell.server.net.if.speed[{#IFNAME}]' + master_item: + key: dell.server.net.iface.get + lld_macro_paths: + - lld_macro: '{#IFNAME}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 6ca10e649e1541aa8bcd6fa764bbc86d + name: 'Physical disk discovery' + type: DEPENDENT + key: dell.server.physicaldisk.discovery + delay: '0' + description: 'Discovery of physical disks.' + item_prototypes: + - uuid: 84314bd54ce0457f873b6ada5c40cd0d + name: 'Physical disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get physical disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'sn', + 'path': 'SerialNumber' + }, + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'mediaType', + 'path': 'MediaType' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a physical disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: physicaldisk + - tag: component + value: raw + - tag: component + value: storage + - uuid: f82a433ebc644ba4bf190a5a980f8ce5 + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The type of media contained in this drive. Possible values: HDD, SSD, SMR, null.' + preprocessing: + - type: JSONPATH + parameters: + - $.mediaType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: c6eee821d95a4e83808ef7df99165a0c + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model number of the drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: c5fc21adf5444684be84bb764ff66b60 + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.sn + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 2bdf2cb7c1964c259174f0bdc215f607 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#1)<>last(/DELL PowerEdge R740 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#2) and length(last(/DELL PowerEdge R740 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]))>0' + name: 'Dell R740: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R740: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5163fa516eeb469c896118ddd99faca9 + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size, in bytes, of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: ae81696c53b24c40bf0a984d881fa206 + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[{#DISK_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: d9a974b6bd41407196a337cc0836f090 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + name: 'Dell R740: Physical disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 2d241b609e6d49b29e3aa1e0cd67b797 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=2' + name: 'Dell R740: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: Physical disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 3f090c14cd35436fb6777ea0a2952414 + name: 'Dell R740: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.physicalDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: a775028b99ce4ef1bcd7de0dbd42368b + name: 'PSU discovery' + type: DEPENDENT + key: dell.server.psu.discovery + delay: '0' + description: 'Discovery of PSU sensors.' + item_prototypes: + - uuid: 46a07d9bb9f64ea9b49b17eb47d1a097 + name: 'Power supply [{#SENSOR_NAME}]: Current sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.current.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.current.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: d08b574968104c33a1626ebb2fe2b8fe + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + name: 'Dell R740: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 0df0092cfa584e9aabae0dad854edccb + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=2' + name: 'Dell R740: Power supply [{#SENSOR_NAME}]: Current sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 56adb48c71ba4fc58d997aec257ed094 + name: 'Power supply [{#SENSOR_NAME}]: Current' + type: DEPENDENT + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: A + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.current.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: current + - tag: component + value: psu + - uuid: 7949614f006244ad898ae27d0a9b4f84 + name: 'Power supply [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.psu.[?(@.name == ''{#SENSOR_NAME}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: psu + - tag: component + value: raw + - uuid: 318af72a5a864d34b226a5ee78272b5b + name: 'Power supply [{#SENSOR_NAME}]: Voltage sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 55f8e3639ed44b198059eef924f17d6b + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + name: 'Dell R740: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 1da44fa0377947788adf128188661f28 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=2' + name: 'Dell R740: Power supply [{#SENSOR_NAME}]: Voltage sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 6d8d7af278e04005891def704ee3cef0 + name: 'Power supply [{#SENSOR_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + - tag: component + value: voltage + graph_prototypes: + - uuid: c44728c06cc7486c868544c3c5777aed + name: 'Dell R740: Power supply [{#SENSOR_NAME}]: Current' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + - uuid: ba35106532cb4e038a86bde3f7f33085 + name: 'Dell R740: Power supply [{#SENSOR_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#SENSOR_NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.psu + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 46763af306644040a5372a3222089dcb + name: 'Temperature discovery' + type: DEPENDENT + key: dell.server.temp.discovery + delay: '0' + description: 'Discovery of temperature sensors.' + item_prototypes: + - uuid: 9bf746e182804bb5a694267b339e37c5 + name: 'Probe [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.temperature.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: raw + - tag: component + value: temperature + - uuid: d04293051f6c4814bef3723f63eb0362 + name: 'Probe [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: d1cba1c87d9946baa59459c37ff65c61 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + name: 'Dell R740: Probe [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 0e6977fa7fa04e669a367dada93467f1 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=2' + name: 'Dell R740: Probe [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: Probe [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: ea4b94edd0664c6f84d28f50042f44be + name: 'Probe [{#SENSOR_NAME}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: °C + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: f37adc6452aa4a0aa111ad8797f0f6ec + name: 'Dell R740: Probe [{#SENSOR_NAME}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.temperature + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: c891f38a20fe4616bf91bd21baa362a1 + name: 'Virtual disk discovery' + type: DEPENDENT + key: dell.server.virtualdisk.discovery + delay: '0' + description: 'Discovery of virtual disks.' + item_prototypes: + - uuid: bb156d13a6514151ad9673a91e8463ef + name: 'Virtual disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get virtual disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + }, + { + 'name': 'status', + 'path': 'Status.State' + }, + { + 'name': 'raidStatus', + 'path': 'Oem.Dell.DellVirtualDisk.RaidStatus' + }, + { + 'name': 'readCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.ReadCachePolicy' + }, + { + 'name': 'writeCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.WriteCachePolicy' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a virtual disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - tag: component + value: virtualdisk + - uuid: 3d29d7c490c9409da85dddf894fa370e + name: 'Virtual disk [{#DISK_NAME}]: RAID status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}]' + delay: '0' + description: 'This property represents the RAID specific status. Possible values: Blocked, Degraded, Failed, Foreign, Offline, Online, Ready, Unknown, null.' + valuemap: + name: 'Virtual disk RAID status' + preprocessing: + - type: JSONPATH + parameters: + - $.raidStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Blocked': 1, + 'Degraded': 2, + 'Failed': 3, + 'Foreign': 4, + 'Offline': 5, + 'Unknown': 6, + 'null': 7, + 'Ready': 8, + 'Online': 9, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: d20a78108211428682b98e9e3f1f495a + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}],)<8' + name: 'Dell R740: Virtual disk [{#DISK_NAME}]: RAID status not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the disk for faults.' + tags: + - tag: scope + value: availability + - uuid: 087b29aa0d864313b7f9ae771af83ded + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the read cache policy setting for the Volume. Possible values: ReadAhead, NoReadAhead, AdaptiveReadAhead.' + valuemap: + name: 'Virtual disk read policy' + preprocessing: + - type: JSONPATH + parameters: + - $.readCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'NoReadAhead': 1, + 'ReadAhead': 2, + 'AdaptiveReadAhead': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: b1f36a733e8442dd95f3a4cd16e38370 + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size in bytes of this Volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 44f663f292554323a03dcbeb1c84c19e + name: 'Virtual disk [{#DISK_NAME}]: Current state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[{#DISK_NAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: edfe6f57e7314b01b4e67c4a8631c025 + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[{#DISK_NAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: c09c76dcedd14a67a9f1910c7d8cfc44 + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + name: 'Dell R740: Virtual disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: e64abe29bebe470ea076cbffe0753c4a + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=2' + name: 'Dell R740: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: Virtual disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 19d3a0f1c9574db6b408e65cc9b54be3 + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the write cache policy setting for the Volume. Possible values: WriteThrough, WriteBack, ProtectedWriteBack, UnprotectedWriteBack.' + valuemap: + name: 'Virtual disk write policy' + preprocessing: + - type: JSONPATH + parameters: + - $.writeCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'WriteThrough': 1, + 'WriteBack': 2, + 'ProtectedWriteBack': 3, + 'UnprotectedWriteBack': 4, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: b3cc98e3860546369e9a5508210c0c5e + name: 'Dell R740: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.virtualDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.HTTP.API.PASSWORD}' + type: SECRET_TEXT + description: 'The Dell iDRAC user password.' + - macro: '{$DELL.HTTP.API.URL}' + value: '' + description: 'The Dell iDRAC Redfish API URL in the format `://:`.' + - macro: '{$DELL.HTTP.API.USER}' + value: '' + description: 'The Dell iDRAC username.' + - macro: '{$DELL.HTTP.CPU.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.CPU.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.HTTP.IO.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about IO utilization.' + - macro: '{$DELL.HTTP.IO.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about IO utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about memory utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about memory utilization.' + - macro: '{$DELL.HTTP.PROXY}' + description: 'Set an HTTP proxy for Redfish API requests if needed.' + - macro: '{$DELL.HTTP.REQUEST.TIMEOUT}' + value: 10s + description: 'Set the timeout for HTTP requests.' + - macro: '{$DELL.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + - macro: '{$DELL.HTTP.SYS.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about SYS utilization.' + - macro: '{$DELL.HTTP.SYS.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about SYS utilization.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "DELL PowerEdge", e.g. {$HTTP.TLS.VERIFY:"DELL PowerEdge"}.' + dashboards: + - uuid: 9607bad18ebc42d281d7b71a6bb15d6e + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: gauge + name: 'CPU utilization' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: CPU + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.util.cpu + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'Memory utilization' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: MEM + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.util.mem + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'I/O utilization' + 'y': '6' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: I/O + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.util.io + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'SYS utilization' + 'y': '9' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: SYS + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.util.sys + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Redfish API' + x: '18' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Redfish API' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by HTTP' + key: 'net.tcp.service[https]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '18' + 'y': '3' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.hw.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + x: '18' + 'y': '6' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.hw.serialnumber + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '18' + 'y': '9' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.hw.firmware + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'System health' + x: '45' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.status + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '2' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Power supply*Voltage' + - type: STRING + name: items.1 + value: 'Power supply*Current' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Interface speed' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Speed' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAABA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '10000000' + - type: STRING + name: thresholds.2.color + value: FF980E + - type: STRING + name: thresholds.2.threshold + value: '100000000' + - type: STRING + name: thresholds.3.color + value: 069C56 + - type: STRING + name: thresholds.3.threshold + value: '1000000000' + - type: STRING + name: thresholds.4.color + value: 2196F3 + - type: STRING + name: thresholds.4.threshold + value: '10000000000' + - type: STRING + name: thresholds.5.color + value: 6C00D9 + - type: STRING + name: thresholds.5.threshold + value: '25000000000' + - type: STRING + name: thresholds.6.color + value: D900A6 + - type: STRING + name: thresholds.6.threshold + value: '40000000000' + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + valuemaps: + - uuid: 14d13bad8ac34a8987c178a3ab12bcd1 + name: 'Network interface status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: 'Null' + - value: '2' + newvalue: Down + - value: '3' + newvalue: Up + - uuid: c38ce461129d4d338847d86a5e051d09 + name: 'Redfish API availability' + mappings: + - value: '0' + newvalue: Unavailable + - value: '1' + newvalue: Available + - uuid: 8074a7bb6e304adc8945bbeffab84ca6 + name: 'Redfish status health' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: OK + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - uuid: 417f088da9f34fd9b0f75769a44cc126 + name: 'Redfish status state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Enabled + - value: '2' + newvalue: Disabled + - value: '3' + newvalue: Absent + - value: '4' + newvalue: Deferring + - value: '5' + newvalue: InTest + - value: '6' + newvalue: Quiesced + - value: '7' + newvalue: StandbyOffline + - value: '8' + newvalue: StandbySpare + - value: '9' + newvalue: Starting + - value: '10' + newvalue: UnavailableOffline + - value: '11' + newvalue: Updating + - uuid: 78b955ca37dd4d3da9230b7263694206 + name: 'Virtual disk RAID status' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: Blocked + - value: '2' + newvalue: Degraded + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Foreign + - value: '5' + newvalue: Offline + - value: '6' + newvalue: Unknown + - value: '7' + newvalue: 'Null' + - value: '8' + newvalue: Ready + - value: '9' + newvalue: Online + - uuid: 90bf833092b8409a818439b6a2eb9fbe + name: 'Virtual disk read policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: NoReadAhead + - value: '2' + newvalue: ReadAhead + - value: '3' + newvalue: AdaptiveReadAhead + - uuid: a261537c3f7e4dd3a14ba4bad0c930dd + name: 'Virtual disk write policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: WriteThrough + - value: '2' + newvalue: WriteBack + - value: '3' + newvalue: ProtectedWriteBack + - value: '4' + newvalue: UnprotectedWriteBack + graphs: + - uuid: 62006f5c2fda42298fb59f3350693491 + name: 'Dell R740: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.util.cpu + - uuid: 23fa96d23e42490886045cd50d5295f3 + name: 'Dell R740: IO utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.util.io + - uuid: 1578ffaa25bf4906aaa27ae8b9d53b0c + name: 'Dell R740: Memory utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.util.mem + - uuid: a80589e70f93461a92fc95a5708550c8 + name: 'Dell R740: SYS utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by HTTP' + key: dell.server.util.sys diff --git a/DELL_PowerEdge_R740_by_SNMP.yaml b/DELL_PowerEdge_R740_by_SNMP.yaml new file mode 100644 index 0000000..58704b7 --- /dev/null +++ b/DELL_PowerEdge_R740_by_SNMP.yaml @@ -0,0 +1,2608 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 9fde0e1c36f8453da72f97535d4e74ca + template: 'DELL PowerEdge R740 by SNMP' + name: 'DELL PowerEdge R740 by SNMP' + description: | + Template for DELL PowerEdge R740 servers with iDRAC version 7 and later. + + MIBs used: + HOST-RESOURCES-MIB + IDRAC-MIB-SMIv2 + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: f956a1ccd0f14b1b88c1d98e6850cd7b + name: 'SNMP walk RAID controllers table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2]' + key: dell.server.array.controller.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::controllerTable`.' + tags: + - tag: component + value: raw + - uuid: ab2744fa308e4a51be4617b7ded321a0 + name: 'SNMP walk Battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21]' + key: dell.server.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::batteryTable`.' + tags: + - tag: component + value: raw + - uuid: 3e3a215ef84946619beb4cc769ef7573 + name: 'BIOS version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.4.300.50.1.8.1.1]' + key: dell.server.bios.version + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the version name of the system BIOS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: bb8eb9194d964824a3c62f0cdd777520 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'dell.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Name and contact information of the contact person for the node. If not provided, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 0612a426ef21465085614e790fa4e886 + name: 'SNMP walk Processor device tables' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.30.1.26,1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.1]' + key: dell.server.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Processor Device Status Table `IDRAC-MIB-SMIv2::processorDeviceTable` and `IDRAC-MIB-SMIv2::processorDeviceStatusTable`.' + tags: + - tag: component + value: raw + - uuid: d16c384f99a94a22a0a24a01070d95a2 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'dell.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating system, and networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: d3ab597f3148403f801b32f9faa71e34 + name: 'SNMP walk Physical disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11]' + key: dell.server.disk.physical.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Physical Disk Table `IDRAC-MIB-SMIv2::physicalDiskTable`.' + tags: + - tag: component + value: raw + - uuid: 0f11e52e20ca4dd2a0723ba0a86eda20 + name: 'SNMP walk Virtual disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4]' + key: dell.server.disk.virtual.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Virtual Disk Table `IDRAC-MIB-SMIv2::virtualDiskTable`.' + tags: + - tag: component + value: raw + - uuid: f5b95355db804ca2a1f050b45174faa5 + name: 'SNMP walk Cooling device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.12.1.5,1.3.6.1.4.1.674.10892.5.4.700.12.1.8,1.3.6.1.4.1.674.10892.5.4.700.12.1.7,1.3.6.1.4.1.674.10892.5.4.700.12.1.6]' + key: dell.server.fan.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Cooling Device Table `IDRAC-MIB-SMIv2::coolingDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: ab2437a52da14bd28e54b781d9f1034d + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.1.8.0]' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the firmware version of a remote access card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: b77eee80359e4fac87d36257d8adc38a + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#1)<>last(/DELL PowerEdge R740 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#2) and length(last(/DELL PowerEdge R740 by SNMP/dell.server.hw.firmware[racFirmwareVersion]))>0' + name: 'Dell R740: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: da32b347cedf4f7a906b6a819e08cf16 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.12.0]' + key: 'dell.server.hw.model[systemModelName]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the model name of the system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: c18ca70147524b0b95dd239c81495637 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.2.0]' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the service tag of the system. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 0610dd019a64431f954a41b58e34e0a1 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#1)<>last(/DELL PowerEdge R740 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#2) and length(last(/DELL PowerEdge R740 by SNMP/dell.server.hw.serialnumber[systemServiceTag]))>0' + name: 'Dell R740: Device has been replaced' + event_name: 'Dell R740: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 330f4c339c95443fb87640d2d807e4d9 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.5.0]' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + trends: '0' + units: uptime + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the power-up time of the system in seconds. + tags: + - tag: component + value: system + - uuid: 3a354c53006b44f3993c962c60028c33 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'dell.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., 'telephone closet, 3rd floor'). If the location is unknown, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 78d9d2f87bd743e4b55cc8e9ca64fd1e + name: 'Memory, total size' + type: CALCULATED + key: dell.server.memory.size.total + units: B + params: 'sum(last_foreach(//dell.server.memory.size[*]))' + description: 'Total memory amount on the device.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + triggers: + - uuid: 1b12170aa1dd4b278e887bd20d3a7f00 + expression: 'change(/DELL PowerEdge R740 by SNMP/dell.server.memory.size.total)>0' + name: 'Dell R740: Memory amount has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 68deb350a71341e19dc6740d327af700 + name: 'SNMP walk Memory device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1]' + key: dell.server.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Memory Device Table `IDRAC-MIB-SMIv2::memoryDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: d6962f725c4547ebb939503dae9f24dd + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'dell.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: bc5e7a8b73b6425d9ba59c7c1bb44276 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.name[sysName],#1)<>last(/DELL PowerEdge R740 by SNMP/dell.server.name[sysName],#2) and length(last(/DELL PowerEdge R740 by SNMP/dell.server.name[sysName]))>0' + name: 'Dell R740: System name has changed' + event_name: 'Dell R740: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 25dc5f538e5b4b108e9fcc6866cbbdf4 + name: 'SNMP walk Network device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1, 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1]' + key: dell.server.net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Network Device Table `IDRAC-MIB-SMIv2::networkDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: c0953b2a7dc24b03b098b6ae66af77df + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.6.3.10.2.1.3.0]' + key: 'dell.server.net.uptime[snmpEngineTime]' + trends: '0' + units: uptime + description: | + MIB: SNMP-FRAMEWORK-MIB + The number of seconds since the value of the snmpEngineBoots object last changed. + tags: + - tag: component + value: system + - uuid: af019e901b1948c68888b90a703b9718 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'dell.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: a9c00a61d4284fe581d097739dcc3f86 + name: 'SNMP walk Power supply table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.12.1.5,1.3.6.1.4.1.674.10892.5.4.600.12.1.8]' + key: dell.server.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Power Supply Table `IDRAC-MIB-SMIv2::powerSupplyTable`.' + tags: + - tag: component + value: raw + - uuid: 1acb2a2c55b349278c46e2d4f12b446b + name: 'SNMP walk Temperature sensor table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.20.1.1,1.3.6.1.4.1.674.10892.5.4.700.20.1.8,1.3.6.1.4.1.674.10892.5.4.700.20.1.6,1.3.6.1.4.1.674.10892.5.4.700.20.1.5]' + key: dell.server.sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Temperature Probe Table `IDRAC-MIB-SMIv2::temperatureProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 2e84d73b00bf45c7a143e52bb278c5f1 + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.1.0]' + key: 'dell.server.status[globalSystemStatus]' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 85a8a9c18082436d8fedeebfca0b7173 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.DISASTER}' + name: 'Dell R740: System is in unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: f0cf8ea9011443b5bdb6cc92af5e63fb + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + name: 'Dell R740: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for errors.' + tags: + - tag: scope + value: availability + - uuid: 9fe1bfd6ae724365b5ce13edf0dc8823 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.WARN}' + name: 'Dell R740: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R740: System status is in critical state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: availability + - uuid: 91ef2785cfa944f286c267ab351d8f33 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.6.0]' + key: 'dell.server.sw.os[systemOSName]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the name of the operating system that the host is running. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6dc4593b42f341799eac23ee792f765d + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sw.os[systemOSName],#1)<>last(/DELL PowerEdge R740 by SNMP/dell.server.sw.os[systemOSName],#2) and length(last(/DELL PowerEdge R740 by SNMP/dell.server.sw.os[systemOSName]))>0' + name: 'Dell R740: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possibly, the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e3e8a5715afe4109b5c157ccf33e8a85 + name: 'SNMP walk System battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1,1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1]' + key: dell.server.system.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of System Battery Table `IDRAC-MIB-SMIv2::systemBatteryTable`.' + tags: + - tag: component + value: raw + - uuid: 71732127775d4675b73bea0d7b941b60 + name: 'SNMP walk Voltage probe table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1]' + key: dell.server.voltage.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Voltage Probe Table `IDRAC-MIB-SMIv2::voltageProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 1a90d82b418a416b8aa4575fc6b1e35d + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other `snmptrap` items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: f249e299f7c944abbbb8fc824f36b664 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: c743348ae566468d93ac23508511443d + expression: 'max(/DELL PowerEdge R740 by SNMP/zabbix[host,snmp,available],{$DELL.SNMP.TIMEOUT})=0' + name: 'Dell R740: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: dccb5d8d2a7747709446943ad676adb3 + name: 'Array controller discovery' + type: DEPENDENT + key: array.discovery + delay: '0' + description: 'Array controller discovery.' + item_prototypes: + - uuid: c4661a1ee2804c51a232f4fb8fca715d + name: 'Controller [{#CNTLR_NAME}]: Model' + type: DEPENDENT + key: 'dell.server.hw.diskarray.model[controllerName.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The controller's name as represented in Storage Management. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: 77c20c4aef9143dd882bbc4baba53d9a + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the controller itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: ca19f66711ad4cc8acadcd6787102a56 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + name: 'Dell R740: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R740: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + - uuid: 9b0c2970eb304b4f8495a6caa6505ed9 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + name: 'Dell R740: Controller [{#CNTLR_NAME}]: Unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 3a36696db31040c6bc10d9180067dc52 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + name: 'Dell R740: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R740: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + - name: 'Dell R740: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.controller.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38 + - '0' + - '{#CNTLR_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 5ca20f2fd3c34b03bc3e0e926a250a12 + name: 'Battery discovery' + type: DEPENDENT + key: battery.discovery + delay: '0' + description: 'Battery discovery.' + item_prototypes: + - uuid: 615fa3adb8664879ba577f6b334eefb8 + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.battery.status[batteryState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Current state of battery. + Possible values: + 1: The current state could not be determined. + 2: The battery is operating normally. + 3: The battery has failed and needs to be replaced. + 4: The battery temperature is high or charge level is depleting. + 5: The battery is missing or not detected. + 6: The battery is undergoing the re-charge phase. + 7: The battery voltage or charge level is below the threshold. + valuemap: + name: 'IDRAC-MIB-SMIv2::batteryState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.battery.walk + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: 603c5383bea74ce3948294b01158b81c + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + name: 'Dell R740: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 8107d20d4dee4f18b9a3985f02471a00 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])<>{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + name: 'Dell R740: Battery [{#BATTERY_NAME}]: Not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R740: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + - name: 'Dell R740: Battery [{#BATTERY_NAME}]: Warning state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + tags: + - tag: scope + value: availability + - uuid: 79b0622881594658bfb7c8b7792d1053 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + name: 'Dell R740: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R740: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#BATTERY_NUM}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1 + - '0' + - '{#BATTERY_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 17db79dcd7c04d798e7a8b04614a7ef3 + name: 'CPU status discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: 'CPU status discovery.' + item_prototypes: + - uuid: 7f3a7fbad20e4d6f96d2d55e9987d92d + name: 'CPU [{#CPU_FQDD}]: State' + type: DEPENDENT + key: 'dell.server.cpu.state[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the reading of the processor device status probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 53311d57d9ea43cb9cc7494b51954143 + expression: 'bitand(last(/DELL PowerEdge R740 by SNMP/dell.server.cpu.state[cpu.{#SNMPINDEX}],#1),128)=0' + name: 'Dell R740: CPU [{#CPU_FQDD}]: Reading error' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU probe reading flag is not `processorPresent`. + tags: + - tag: scope + value: availability + - uuid: bd6f4d52db2c415d9dbc97339c314fb8 + name: 'CPU [{#CPU_FQDD}]: Status' + type: DEPENDENT + key: 'dell.server.cpu.status[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the status of the processor device status probe. This status will be joined into the `processorDeviceStatus` attribute.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: a5318c7465244e34915cae82ba3c7143 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.cpu.status[cpu.{#SNMPINDEX}],#1)<>3' + name: 'Dell R740: CPU [{#CPU_FQDD}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.30.1.26 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 7b6e0ea3ca9847318e9e2ac7dacb70e6 + name: 'Fan discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + filter: + conditions: + - macro: '{#TYPE}' + value: '3' + formulaid: A + description: 'Fan discovery.' + item_prototypes: + - uuid: 146df75c66474f11a1540d6cb174094c + name: 'Fan [{#FAN_DESCR}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + delay: '0' + units: rpm + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a cooling device of a subtype other than `coolingDeviceSubTypeIsDiscrete`. + When the value for `coolingDeviceSubType` is other than `coolingDeviceSubTypeIsDiscrete`, the value returned for this attribute is the speed in RPM or the "OFF/ON" value of the cooling device. + When the value for `coolingDeviceSubType` is `coolingDeviceSubTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + - uuid: cf5a92d04a694057bf596b5cf5e4af05 + name: 'Fan [{#FAN_DESCR}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#FAN_DESCR}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the cooling device. + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 8477018dfab24e389f2fdf1ee0036e43 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + name: 'Dell R740: Fan [{#FAN_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: availability + - uuid: 3da227c6a2e94e2f8631cee269d5a080 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R740: Fan [{#FAN_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'Dell R740: Fan [{#FAN_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: a6e39ba6f8d74833954a7adc6d7d14bc + name: 'Dell R740: Fan [{#FAN_DESCR}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + master_item: + key: dell.server.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.5 + - '0' + - '{#FAN_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.8 + - '0' + - '{#TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 458cc1949b654938a932ccaeec481c67 + name: 'Memory discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: 'Memory discovery.' + item_prototypes: + - uuid: f529edd65222419ca7f122787ca1e52a + name: 'Memory [{#SNMPVALUE}]: Size' + type: DEPENDENT + key: 'dell.server.memory.size[{#SNMPVALUE}]' + delay: '0' + units: B + description: 'This attribute defines the size, in KB, of the memory device. Zero indicates no memory installed; 2,147,483,647 indicates an unknown memory size.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + - uuid: 1c6b99e33fd3402da694f6ed6112fe77 + name: 'Memory [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.memory.status[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the memory device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 8630f03f08ba45b3ade1065794d0dd25 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.memory.status[{#SNMPVALUE}],#1)<>3' + name: 'Dell R740: Memory [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Memory status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 46889540e5b74ea2b569e3efcb7bc3a8 + name: 'Network interface discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: e00bf0282cab4a6cad2cb076f7c1193d + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.link[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the connection status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 4f7bcd3f169f4d2794b4c2674a3ee183 + expression: '{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1 and last(/DELL PowerEdge R740 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>1 and last(/DELL PowerEdge R740 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>last(/DELL PowerEdge R740 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)=1 or {$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=0' + name: 'Dell R740: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down. + 2. `{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 4d279ebb389d4d8da852f52194be6515 + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 5e3abc09130e42aba1427e1b497d58e5 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.net.if.status[{#NIC_FQDD}],#1)<>3' + name: 'Dell R740: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Network interface status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NIC_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1 + - '0' + - '{#NIC_MAC}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1 + - '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 732e223af8f94d6d894da0054c53fceb + name: 'Physical disk discovery' + type: DEPENDENT + key: physicaldisk.discovery + delay: '0' + description: 'Physical disk discovery.' + item_prototypes: + - uuid: 611125e175c746bbbbdf01806afed47f + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[physicalDiskMediaType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The media type of the physical disk. Possible Values: + 1: The media type could not be determined. + 2: Hard Disk Drive (HDD). + 3: Solid State Drive (SSD). + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: b34f13ad1ec74d81915944ad95424b81 + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[physicalDiskProductID.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The model number of the physical disk. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 06d3917a220f4e478f8f98331d308fd2 + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The physical disk's unique identification number from the manufacturer. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: df07ad54618b4b5db071f137edf18567 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#1)<>last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#2) and length(last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]))>0' + name: 'Dell R740: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R740: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 66033914b4234e80abd5ff0125035078 + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the physical disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 9f97e7dd51cd47d5966ac5d052e19766 + name: 'Physical disk [{#DISK_NAME}]: S.M.A.R.T. Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Indicates whether the physical disk has received a predictive failure alert. + valuemap: + name: 'IDRAC-MIB-SMIv2::BooleanType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: cf5346652d2b46c1b03e778b93d46377 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'Dell R740: Physical disk [{#DISK_NAME}]: S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'Dell R740: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + - uuid: 9d2326c1e4f844f1a1328046ab57765d + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the physical disk itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 3c52af89a6eb466b9264ee55e1357962 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + name: 'Dell R740: Physical disk [{#DISK_NAME}]: Failed state' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: c844585cd3d94a389cc5fae05430fa10 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + name: 'Dell R740: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'Dell R740: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R740 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: de00bac6c7fa44fdb26f02d8b4462841 + name: 'Dell R740: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.physical.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: ceb2f7f14cd546c6af57ead8f9016c66 + name: 'PSU discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'PSU discovery.' + item_prototypes: + - uuid: d1aa5fd364984c8ab42fd6a808d93bcc + name: 'Power supply [{#PSU_DESCR}]: State' + type: DEPENDENT + key: 'dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the status of the power supply. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.psu.walk + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: ebd2ac9080434c619ee3fce7e009b8d5 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + name: 'Dell R740: Power supply [{#PSU_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: availability + - uuid: 1a83756fc34b481fa1a54f6ac1ea4b90 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + name: 'Dell R740: Power supply [{#PSU_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'Dell R740: Power supply [{#PSU_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.5 + - '0' + - '{#PSU_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: bfee1b1ae17c446fbafa3ac47189d28f + name: 'System battery discovery' + type: DEPENDENT + key: system.battery.discovery + delay: '0' + description: 'System battery discovery.' + item_prototypes: + - uuid: 19e1b59177674c4497044b86c0ac316a + name: 'System battery [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.system.battery[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the battery.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.battery.walk + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: eeabc8d55cf74ffc9849f4b9a98538b1 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.system.battery[{#SNMPVALUE}],#1)<>3' + name: 'Dell R740: System battery [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + System battery status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.system.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b7562decf05249758d75961f54fdb497 + name: 'Temperature discovery' + type: DEPENDENT + key: temp.discovery + delay: '0' + description: 'Temperature sensor discovery.' + item_prototypes: + - uuid: 43a2b5c2f47349cc8a9d194b5e7947d8 + name: 'Probe [{#SENSOR_LOCALE}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the temperature probe. + Possible values: + other(1), -- probe status is not one of the following: + unknown(2), -- probe status is unknown (not known or monitored) + ok(3), -- probe is reporting a value within the thresholds + nonCriticalUpper(4), -- probe has crossed the upper noncritical threshold + criticalUpper(5), -- probe has crossed the upper critical threshold + nonRecoverableUpper(6), -- probe has crossed the upper non-recoverable threshold + nonCriticalLower(7), -- probe has crossed the lower noncritical threshold + criticalLower(8), -- probe has crossed the lower critical threshold + nonRecoverableLower(9), -- probe has crossed the lower non-recoverable threshold + failed(10) -- probe is not functional + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 70db3d2915764af99ae09b7121b9007b + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + name: 'Dell R740: Probe [{#SENSOR_LOCALE}]: Critical status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 2417be4d3f8b4ad781214a8644273267 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])<>{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + name: 'Dell R740: Probe [{#SENSOR_LOCALE}]: Not in optimal status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + manual_close: 'YES' + dependencies: + - name: 'Dell R740: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + - name: 'Dell R740: Probe [{#SENSOR_LOCALE}]: Warning status' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + tags: + - tag: scope + value: notice + - uuid: ee60cc886e5445049e0ae7054d0d825d + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R740: Probe [{#SENSOR_LOCALE}]: Warning status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R740: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R740 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + tags: + - tag: scope + value: availability + - uuid: c0b6aee515624a6eacd801af4100aade + name: 'Probe [{#SENSOR_LOCALE}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a temperature probe of type other than `temperatureProbeTypeIsDiscrete`. + When the value for `temperatureProbeType` is other than `temperatureProbeTypeIsDiscrete`, the value returned for this attribute is the temperature that the probe is reading in Centigrade. + When the value for `temperatureProbeType` is `temperatureProbeTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: 54313cfd1117447f9564987b2149bb8b + name: 'Dell R740: Probe [{#SENSOR_LOCALE}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + master_item: + key: dell.server.sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.1 + - '0' + - '{#SENSOR_LOCALE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 9c289d95dd7148238790b2359cf7c2f9 + name: 'Virtual disk discovery' + type: DEPENDENT + key: virtualdisk.discovery + delay: '0' + description: 'Virtual disk discovery.' + item_prototypes: + - uuid: e191fd1c7e0348c5ae09c4d83b743388 + name: 'Virtual disk [{#DISK_NAME}]: Layout type' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.layout[virtualDiskLayout.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The virtual disk's RAID type. + Possible values: + 1: Not one of the following + 2: RAID-0 + 3: RAID-1 + 4: RAID-5 + 5: RAID-6 + 6: RAID-10 + 7: RAID-50 + 8: RAID-60 + 9: Concatenated RAID 1 + 10: Concatenated RAID 5 + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 056f579ff9004f3fb9456b529ebb8c93 + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[virtualDiskReadPolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The read policy used by the controller for read operations on this virtual disk. + Possible values: + 1: No Read Ahead. + 2: Read Ahead. + 3: Adaptive Read Ahead. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: b769de369b154b20995d5b9240992d55 + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the virtual disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 465200ccf7f249069b2835feb974fb89 + name: 'Virtual disk [{#DISK_NAME}]: Operational state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[virtualDiskOperationalState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The state of the virtual disk when there are progressive operations ongoing. + Possible values: + 1: There is no active operation running. + 2: The virtual disk configuration has changed. The physical disks included in the virtual disk are being modified to support the new configuration. + 3: A Consistency Check (CC) is being performed on the virtual disk. + 4: The virtual disk is being initialized. + 5: BackGround Initialization (BGI) is being performed on the virtual disk. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 22df6ae9ce6f46198b646d9a240248f2 + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The current state of this virtual disk (which includes any member physical disks.) + Possible states: + 1: The current state could not be determined. + 2: The virtual disk is operating normally or optimally. + 3: The virtual disk has encountered a failure. Data on the disk is lost or is about to be lost. + 4: The virtual disk encountered a failure with one or all of the constituent redundant physical disks. + The data on the virtual disk might no longer be fault tolerant. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: edb04e1e12e2435db574928f7a8df0fa + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + name: 'Dell R740: Virtual disk [{#DISK_NAME}]: Failed state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the virtual disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: 0716847961e24d3e9ff009aead84c39a + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + name: 'Dell R740: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the virtual disk for warnings or errors.' + dependencies: + - name: 'Dell R740: Virtual disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + - uuid: 6cb2b0370662417eaf6059894e6cb582 + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[virtualDiskWritePolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The write policy used by the controller for write operations on this virtual disk. + Possible values: + 1: Write Through. + 2: Write Back. + 3: Force Write Back. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: 3433748046f54048abadd9c85fb76a21 + name: 'Dell R740: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.virtual.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 66b27f55e9484eaf970bf5bdb02ef09b + name: 'Voltage probe discovery' + type: DEPENDENT + key: voltage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + formulaid: A + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + formulaid: C + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Voltage probe discovery.' + item_prototypes: + - uuid: 3eae308500234ea0ac4e32a3046fffa6 + name: 'Voltage probe [{#VPROBE_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.voltage.status[{#VPROBE_NAME}]' + delay: '0' + description: 'This attribute defines the status of the voltage probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + trigger_prototypes: + - uuid: 4e9fe74548d0436093a6343faaf06f00 + expression: 'last(/DELL PowerEdge R740 by SNMP/dell.server.voltage.status[{#VPROBE_NAME}])<>3' + name: 'Dell R740: Voltage probe [{#VPROBE_NAME}]: Status is not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device''s voltage.' + tags: + - tag: scope + value: availability + - uuid: 2d151ba0db394407b354bac35d94cae9 + name: 'Voltage probe [{#VPROBE_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'This attribute defines the reading for a voltage probe.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + graph_prototypes: + - uuid: 6477186594ae45d8824ec8a26d260b0c + name: 'Dell R740: Voltage probe [{#VPROBE_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + master_item: + key: dell.server.voltage.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#VPROBE_NAME}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1 + - '0' + - '{#VPROBE_TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + value: '^.*Voltage.*$' + description: 'Sets the regex string of voltage probe names to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe names to ignore in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + value: 18|16 + description: 'Sets the regex string of voltage probe types to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe types to ignore in discovery.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + value: '3' + description: 'The critical status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + value: '2' + description: 'The OK status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + value: '5' + description: 'The critical status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + value: '6' + description: 'The disaster status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.SMART.STATUS.FAIL}' + value: '1' + description: 'The critical S.M.A.R.T status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"critical"}' + value: '5' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + value: '6' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + value: '10' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.CRIT}' + value: '5' + description: 'The critical status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.DISASTER}' + value: '6' + description: 'The disaster status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.WARN}' + value: '4' + description: 'The warning status of health for the trigger expression.' + - macro: '{$DELL.SNMP.IFCONTROL}' + value: '1' + description: 'The link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"critical"}' + value: '5' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + value: '6' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + value: '3' + description: 'The OK status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP agent availability trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + value: '3' + description: 'The critical status of the virtual disk for the trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + value: '4' + description: 'The warning status of the virtual disk for the trigger expression.' + dashboards: + - uuid: a02b71d3f0c94112b685d6be23e2dc84 + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: item + name: 'System health' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.status[globalSystemStatus]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '36' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.hw.model[systemModelName]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '36' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'NIC*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Voltage probe*Voltage' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Fan*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + valuemaps: + - uuid: 557381876b894611bf213f55946b49a1 + name: 'IDRAC-MIB-SMIv2::batteryState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Ready + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - value: '5' + newvalue: Missing + - value: '6' + newvalue: Charging + - value: '7' + newvalue: 'Below threshold' + - uuid: 39a00987a4e14c0286acd9942db37e03 + name: 'IDRAC-MIB-SMIv2::BooleanType' + mappings: + - value: '0' + newvalue: ok + - value: '1' + newvalue: failed + - uuid: 9dbe9b652e7746229cf5ef744a67c566 + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: connected + - value: '2' + newvalue: disconnected + - value: '3' + newvalue: driverBad + - value: '4' + newvalue: driverDisabled + - value: '10' + newvalue: hardwareInitalizing + - value: '11' + newvalue: hardwareResetting + - value: '12' + newvalue: hardwareClosing + - value: '13' + newvalue: hardwareNotReady + - uuid: ac53b62fdab246aa807e234ae9982102 + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: 432abc8431e0438696cd1b96d3515a5c + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: 8aa7cecdd0944b91b8cdcba75e28d781 + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: HDD + - value: '3' + newvalue: SSD + - uuid: 1c683fea74b645ed9f42d8fcd6edf442 + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + mappings: + - value: '1' + newvalue: internalError + - value: '2' + newvalue: thermalTrip + - value: '32' + newvalue: configurationError + - value: '128' + newvalue: processorPresent + - value: '256' + newvalue: processorDisabled + - value: '512' + newvalue: terminatorPresent + - value: '1024' + newvalue: processorThrottled + - uuid: b096a16930734ec28bc0a5a5e7634783 + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCriticalUpper + - value: '5' + newvalue: criticalUpper + - value: '6' + newvalue: nonRecoverableUpper + - value: '7' + newvalue: nonCriticalLower + - value: '8' + newvalue: criticalLower + - value: '9' + newvalue: nonRecoverableLower + - value: '10' + newvalue: failed + - uuid: 3fcb8ac498564f068c4b30f3423fbe8c + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: RAID-0 + - value: '3' + newvalue: RAID-1 + - value: '4' + newvalue: RAID-5 + - value: '5' + newvalue: RAID-6 + - value: '6' + newvalue: RAID-10 + - value: '7' + newvalue: RAID-50 + - value: '8' + newvalue: RAID-60 + - value: '9' + newvalue: 'Concatenated RAID 1' + - value: '10' + newvalue: 'Concatenated RAID 5' + - uuid: 6850d7335f6c423b87527a1a0252d00f + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + mappings: + - value: '1' + newvalue: 'Not applicable' + - value: '2' + newvalue: Reconstructing + - value: '3' + newvalue: Resynching + - value: '4' + newvalue: Initializing + - value: '5' + newvalue: 'Background init' + - uuid: 076e6a30b90c49e9bcbb8a1adbc0b02d + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + mappings: + - value: '1' + newvalue: 'No Read Ahead' + - value: '2' + newvalue: 'Read Ahead' + - value: '3' + newvalue: 'Adaptive Read Ahead' + - uuid: 4699f81ffa784d43b8e74aeb258a15cb + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - uuid: 15f75cf464d347308db357fa80e67f0e + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + mappings: + - value: '1' + newvalue: 'Write Through' + - value: '2' + newvalue: 'Write Back' + - value: '3' + newvalue: 'Force Write Back' + - uuid: cf94dd75c6274a2aaff23e3a26eee213 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 88a6132f78a24d8ca66e8759526c2381 + expression: '(last(/DELL PowerEdge R740 by SNMP/dell.server.hw.uptime[systemPowerUpTime])>0 and last(/DELL PowerEdge R740 by SNMP/dell.server.hw.uptime[systemPowerUpTime])<10m) or (last(/DELL PowerEdge R740 by SNMP/dell.server.hw.uptime[systemPowerUpTime])=0 and last(/DELL PowerEdge R740 by SNMP/dell.server.net.uptime[snmpEngineTime])<10m)' + name: 'Dell R740: Host has been restarted' + event_name: 'Dell R740: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 0b67dc9462dd4bb6beebe9a8c0b5001f + name: 'Dell R740: Uptime' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + - sortorder: '1' + color: F63100 + item: + host: 'DELL PowerEdge R740 by SNMP' + key: 'dell.server.net.uptime[snmpEngineTime]' diff --git a/DELL_PowerEdge_R750_by_HTTP.yaml b/DELL_PowerEdge_R750_by_HTTP.yaml new file mode 100644 index 0000000..3703cd6 --- /dev/null +++ b/DELL_PowerEdge_R750_by_HTTP.yaml @@ -0,0 +1,3857 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 42b18986c8b34c2d9c36f9cd00565bd5 + template: 'DELL PowerEdge R750 by HTTP' + name: 'DELL PowerEdge R750 by HTTP' + description: | + Template for DELL PowerEdge R750 servers with iDRAC 8/9 firmware 4.32 and later and Redfish API enabled. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 5758eff4369d494981404a54f84306e4 + name: 'Get array controller resources' + type: SCRIPT + key: dell.server.array.resources.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Controller', 'Discovery', params); + + const controllers = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage?$expand=.($levels=1)'), 'Members'); + + var arrControllerKeys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'slot', + 'path': 'Oem.Dell.DellController.PCISlot' + } + ]; + + var battControllerKeys = [ + { + 'name': 'id', + 'path': 'Oem.Dell.DellControllerBattery.Id' + }, + { + 'name': 'name', + 'path': 'Oem.Dell.DellControllerBattery.Name' + }, + { + 'name': 'status', + 'path': 'Oem.Dell.DellControllerBattery.PrimaryStatus' + } + ]; + + if (!Array.isArray(controllers)) { + throw 'Unexpected type for controllers.'; + } + + var buffer = { 'arrayControllers': [], 'batteryControllers': [] }; + + controllers.forEach(function (controller) { + if (controller['Id'].search('RAID') > -1) { + buffer['arrayControllers'].push(dell.extractData(controller, arrControllerKeys, true)); + buffer['batteryControllers'].push(dell.extractData(controller, battControllerKeys, true)); + } + }); + + return JSON.stringify(buffer); + description: 'Returns array controller resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: fed600a0b427471685abbdf145e7536d + name: 'Get disks' + type: SCRIPT + key: dell.server.disks.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Discovery', params); + + const disks = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'name', + 'path': 'Name' + } + ]; + + if (!Array.isArray(disks)) { + throw 'Unexpected type for disks.'; + } + + var buffer = { 'physicalDisks': [], 'virtualDisks': [] }; + + disks.forEach(function (disk) { + var requests = [{ 'usage': 'physicalDisks', 'path': '', 'target': 'Drives' }, { 'usage': 'virtualDisks', 'path': '/Volumes', 'target': 'Members' }]; + + requests.forEach(function (request) { + const disks = dell.extractData(dell.executeRequest(disk['@odata.id'] + request['path']), request['target']); + + if (!Array.isArray(disks) || disks.length <= 0) { + return; + } + + disks.forEach(function (drive) { + buffer[request['usage']].push(dell.extractData(dell.executeRequest(drive['@odata.id']), keys)); + }); + }); + }); + + return JSON.stringify(buffer); + description: 'Returns storage resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 6da3df75f68345e98a0169351f2fdbcf + name: 'Firmware version' + type: DEPENDENT + key: dell.server.hw.firmware + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the firmware version of a remote access card.' + preprocessing: + - type: JSONPATH + parameters: + - $.firmware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: 479b1531bed7454d97773967e23d53f1 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.hw.firmware,#1)<>last(/DELL PowerEdge R750 by HTTP/dell.server.hw.firmware,#2) and length(last(/DELL PowerEdge R750 by HTTP/dell.server.hw.firmware))>0' + name: 'Dell R750: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: aeccd99feba8400aa45cb836b4d9ea3a + name: 'Hardware model name' + type: DEPENDENT + key: dell.server.hw.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the model name of the system.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + - uuid: c57b2ba6346b4768be23d01d10f3b83b + name: 'Hardware serial number' + type: DEPENDENT + key: dell.server.hw.serialnumber + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the service tag of the system.' + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - $.serialnumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: 5c1ca8b9ce8146b2a7184e8e9b5f2eeb + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.hw.serialnumber,#1)<>last(/DELL PowerEdge R750 by HTTP/dell.server.hw.serialnumber,#2) and length(last(/DELL PowerEdge R750 by HTTP/dell.server.hw.serialnumber))>0' + name: 'Dell R750: Device has been replaced' + event_name: 'Dell R750: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 36bb12f18137442aaad4b5c7d0aaa713 + name: 'Get network interfaces' + type: SCRIPT + key: dell.server.net.iface.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Discovery', params); + + const netAdapters = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'id', + 'path': 'Id' + } + ]; + + if (!Array.isArray(netAdapters)) { + throw 'Unexpected type for network adapters.'; + } + + var buffer = []; + + netAdapters.forEach(function (netAdapter) { + const netPorts = dell.extractData(dell.executeRequest(netAdapter["@odata.id"] + '/NetworkPorts'), 'Members'); + + if (!Array.isArray(netPorts)) { + return; + } + + netPorts.forEach(function (netPort) { + buffer.push(dell.extractData(dell.executeRequest(netPort["@odata.id"]), keys)); + }) + + }); + + return JSON.stringify(buffer); + description: 'Returns network interfaces.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 4cf208355d724de39347889314e2df1d + name: 'Get sensors' + type: SCRIPT + key: dell.server.sensors.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + function formatPSU(psuObj) { + var foundPowerSupplies = [], + buffer = []; + + psuObj.forEach(function (obj) { + const psuName = obj['name'].split(' ')[0]; + + if (foundPowerSupplies.indexOf(psuName) === -1) { + foundPowerSupplies.push(psuName); + buffer.push({ + 'name': psuName, + [obj['type'].toLowerCase()]: {'reading': obj['reading'], 'health': obj['health']} + }); + } else { + buffer.forEach(function (bufferObj) { + + if (bufferObj['name'] === psuName) { + bufferObj[obj['type'].toLowerCase()] = {'reading': obj['reading'], 'health': obj['health']}; + + return; + } + }); + } + }) + return buffer; + }; + + function formatTemp(tempObj) { + tempObj.forEach(function (obj) { + obj.name = obj.name.split(' ').slice(0, -1).join(' '); + }); + + return tempObj; + } + + function formatSysBoard(sysObj) { + const remove = ['System', 'Board', 'Usage']; + + sysObj.forEach(function (obj) { + var buffer = []; + + obj['name'].split(' ').forEach(function (word) { + var match = false; + + remove.forEach(function (removeWord) { + if (removeWord === word) { + match = true; + } + }); + + if (!match) { + buffer.push(word); + } + }); + + if (buffer.length > 0) { + obj['name'] = buffer.join(' '); + } + }); + + return sysObj; + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Sensor', 'Discovery', params); + + const sensors = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/Sensors?$expand=.($levels=1)'), 'Members'); + + if (!Array.isArray(sensors)) { + throw 'Unexpected type for sensors.'; + } + + const keys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'context', + 'path': 'PhysicalContext' + }, + { + 'name': 'reading', + 'path': 'Reading' + }, + { + 'name': 'type', + 'path': 'ReadingType' + }, + { + 'name': 'health', + 'path': 'Status.Health' + } + ]; + + var buffer = { 'fan': [], 'psu': [], 'temperature': [], 'sysBoard': [] }; + + sensors.forEach(function (sensor) { + if (sensor['Name'].substring(0, 2) === 'PS' && sensor['PhysicalContext'] === 'PowerSupply') { + buffer['psu'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['ReadingType'] === 'Temperature') { + buffer['temperature'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('Fan') && sensor['ReadingType'] === 'Rotational') { + buffer['fan'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('System Board') && sensor['ReadingType'] === 'Percent') { + buffer['sysBoard'].push(dell.extractData(sensor, keys, true)); + } + }); + + buffer['psu'] = formatPSU(buffer['psu']); + buffer['temperature'] = formatTemp(buffer['temperature']); + buffer['sysBoard'] = formatSysBoard(buffer['sysBoard']); + + return JSON.stringify(buffer); + description: 'Returns sensors.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 429cd5c9a52944899198a70630c82008 + name: 'Overall system health status' + type: DEPENDENT + key: dell.server.status + delay: '0' + trends: '0' + description: 'This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 71471cc70f114c43adec7410a9c76d16 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.status,)=3' + name: 'Dell R750: Server is in a critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: ca10f6c7deda4c64b5bcc5db15d0a9c5 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.status,)=2' + name: 'Dell R750: Server is in a warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: Server is in a critical state' + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.status,)=3' + tags: + - tag: scope + value: availability + - uuid: b9acc3a3d4d74a19911fce16f8a3a8d5 + name: 'Get system' + type: SCRIPT + key: dell.server.system.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('System', 'Get system metrics', params); + + const requests = [ + { + 'path': '/redfish/v1/Systems/System.Embedded.1', + 'keys': [ + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'serialnumber', + 'path': 'Oem.Dell.DellSystem.ChassisServiceTag' + }, + { + 'name': 'status', + 'path': 'Status.Health' + } + ] + }, + { + 'path': '/redfish/v1/Managers/iDRAC.Embedded.1', + 'keys': { + 'name': 'firmware', + 'path': 'FirmwareVersion' + } + } + ]; + + var buffer = {}; + + for (var i = 0, requestsCount = requests.length; i < requestsCount; i++) { + Object.assign(buffer, dell.extractData(dell.executeRequest(requests[i].path), requests[i].keys)); + } + + return JSON.stringify(buffer); + description: 'Returns system metrics.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: e04a65c2c83640f694d594f715ed0456 + name: 'CPU utilization, in %' + type: DEPENDENT + key: dell.server.util.cpu + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 3da411d4c9324ece8e54a7eb841a0b00 + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.WARN}' + name: 'Dell R750: CPU utilization is high' + event_name: 'Dell R750: Current CPU utilization is high (util >= {$DELL.HTTP.CPU.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R750: CPU utilization is too high' + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 25ef27dc6f954cf684df80a45b82cb65 + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + name: 'Dell R750: CPU utilization is too high' + event_name: 'Dell R750: Current CPU utilization is too high (util >= {$DELL.HTTP.CPU.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: d2ce7586a8ed4846817982ed7035bbb7 + name: 'IO utilization, in %' + type: DEPENDENT + key: dell.server.util.io + delay: '0' + value_type: FLOAT + units: '%' + description: 'IO utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: io + triggers: + - uuid: 96bf746590ef41c5b4eb13e4b5775804 + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.WARN}' + name: 'Dell R750: IO utilization is high' + event_name: 'Dell R750: Current IO utilization is high (util >= {$DELL.HTTP.IO.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R750: IO utilization is too high' + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 04bb737e97e7462ab0b226169191eb86 + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + name: 'Dell R750: IO utilization is too high' + event_name: 'Dell R750: Current IO utilization is too high (util >= {$DELL.HTTP.IO.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: f22138f68b8c46cabf1716f1ba7bcec9 + name: 'Memory utilization, in %' + type: DEPENDENT + key: dell.server.util.mem + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: memory + triggers: + - uuid: c942008a07a140f5b2fc1552f190b240 + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.WARN}' + name: 'Dell R750: Memory utilization is high' + event_name: 'Dell R750: Current memory utilization is high (util >= {$DELL.HTTP.MEM.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R750: Memory utilization is too high' + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 519ccd1746f84716848732a24d6c6adc + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + name: 'Dell R750: Memory utilization is too high' + event_name: 'Dell R750: Current memory utilization is too high (util >= {$DELL.HTTP.MEM.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: d50e338b587f4e64b80b608428e6f95e + name: 'SYS utilization, in %' + type: DEPENDENT + key: dell.server.util.sys + delay: '0' + value_type: FLOAT + units: '%' + description: 'SYS utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: sys + triggers: + - uuid: ad3b33164e5c44489b0a58824de01948 + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.WARN}' + name: 'Dell R750: SYS utilization is high' + event_name: 'Dell R750: Current SYS utilization is high (util >= {$DELL.HTTP.SYS.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R750: IO utilization is too high' + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 39ffa53a535a41a5b6143b09afd2e04d + expression: 'min(/DELL PowerEdge R750 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.HIGH}' + name: 'Dell R750: SYS utilization is too high' + event_name: 'Dell R750: Current SYS utilization is too high (util >= {$DELL.HTTP.SYS.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: cb5fc3e47c5444fcaff32a351bb1a392 + name: 'Redfish API status' + type: SIMPLE + key: 'net.tcp.service[https]' + description: | + Availability of Redfish API on the server. + Possible values: + 0 - Unavailable + 1 - Available + valuemap: + name: 'Redfish API availability' + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 5cb42d522d814335861831685b6a5e4a + expression: 'last(/DELL PowerEdge R750 by HTTP/net.tcp.service[https])=0' + name: 'Dell R750: Redfish API service is unavailable' + priority: HIGH + description: 'The service is unavailable or does not accept TCP connections.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 27b8d7b67306418b887e0e1c025cad1f + name: 'Array controller discovery' + type: DEPENDENT + key: dell.server.array.discovery + delay: '0' + description: 'Discovery of disk array controllers.' + item_prototypes: + - uuid: d4bae6dc224943aaa66c45769e466745 + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.array.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.arrayControllers[?(@.id == "{#ID}")].health.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 413f12d3e6254eecbdf64042078ed85f + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.array.status[{#ID}],)=3' + name: 'Dell R750: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 7e5656e12a954c469fe206ba9bdc0894 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.array.status[{#ID}],)=2' + name: 'Dell R750: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.array.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#CNTLR_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SLOT}' + path: $.slot + preprocessing: + - type: JSONPATH + parameters: + - $.arrayControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 71504dca399244f8b833552828dc99d6 + name: 'Battery discovery' + type: DEPENDENT + key: dell.server.controller.battery.discovery + delay: '0' + description: 'Discovery of battery controllers.' + item_prototypes: + - uuid: 739a63c6cce543079a2cccda1a32b69c + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.controller.battery.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.batteryControllers[?(@.id == "{#ID}")].status.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: e70d701b4b1544f788c81ebc778baa7c + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + name: 'Dell R750: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 114de801bd8947df82bd3ac2a9488403 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.controller.battery.status[{#ID}],)=2' + name: 'Dell R750: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#BATTERY_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.batteryControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b5419132c641433887d21573ed57803a + name: 'FAN discovery' + type: DEPENDENT + key: dell.server.fan.discovery + delay: '0' + description: 'Discovery of FAN sensors.' + item_prototypes: + - uuid: 389697a7fb8543118c0f68a2b3791184 + name: 'Fan [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.fan.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: fan + - tag: component + value: raw + - uuid: 266ef80f48d04767aa5b9c6c09ff9817 + name: 'Fan [{#SENSOR_NAME}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + delay: '0' + units: '!rpm' + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + - uuid: 9740c656008d41a9be415a87bb9e8108 + name: 'Fan [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 98e69cc779b74216bf87464de3dfd10f + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + name: 'Dell R750: Fan [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 56498b5a1a654f0ab75dfed48cc90519 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=2' + name: 'Dell R750: Fan [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: Fan [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 5512fb8c939e4777a4e8440d1afe473a + name: 'Dell R750: Fan [{#SENSOR_NAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.fan + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 4ffe2d326f414e8d9fe1c361abd3bde7 + name: 'Network interface discovery' + type: DEPENDENT + key: dell.server.net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: 97302beadb364298a72fc90525435812 + name: 'Interface [{#IFNAME}]: Get interface' + type: SCRIPT + key: 'dell.server.net.if.get[{#IFNAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Get metrics', params); + + const keys = [ + { + 'name': 'linkStatus', + 'path': 'LinkStatus' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'state', + 'path': 'Status.State' + }, + { + 'name': 'linkSpeed', + 'path': 'CurrentLinkSpeedMbps' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a network interface.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: network + - tag: component + value: raw + - uuid: a839b259f5154f218badb30364b7b7df + name: 'Interface [{#IFNAME}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.health[{#IFNAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: b52a77a9ed6040f8a774e90291ee8304 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + name: 'Dell R750: Interface [{#IFNAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 1e5ba94a3e61409890de06d2b7145046 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.health[{#IFNAME}],)=2' + name: 'Dell R750: Interface [{#IFNAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: Interface [{#IFNAME}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 2119fcd485e74cd2b7157ee154af790f + name: 'Interface [{#IFNAME}]: Speed' + type: DEPENDENT + key: 'dell.server.net.if.speed[{#IFNAME}]' + delay: '0' + units: bps + description: 'The network port current link speed.' + preprocessing: + - type: JSONPATH + parameters: + - $.linkSpeed + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: aee183b298004a38bd51f8446efc97ce + name: 'Interface [{#IFNAME}]: State' + type: DEPENDENT + key: 'dell.server.net.if.state[{#IFNAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: f06af1f337c6466f9c5706cddc8b7915 + name: 'Interface [{#IFNAME}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#IFNAME}]' + delay: '0' + description: 'The status of the link between this port and its link partner. Possible values: Down, Up, null.' + valuemap: + name: 'Network interface status' + preprocessing: + - type: JSONPATH + parameters: + - $.linkStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'null': 1, + 'Down': 2, + 'Up': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 14f89419376e4a9f87bb8a8fdce08c4d + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.status[{#IFNAME}],)=2 and last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.status[{#IFNAME}],)=3 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R750: Interface [{#IFNAME}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down (2). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down (2). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces). + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 616f54f3f8c24efcb6cfd2dabddfb39a + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.status[{#IFNAME}],)<2 and last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.net.if.status[{#IFNAME}],)>=2 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R750: Interface [{#IFNAME}]: Link status issue' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Null (1) or Unknown (0). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Null (1) or Unknown (0). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 30caeb71fa0c4fda86bcc2e5fd420ec3 + name: 'Dell R750: Interface [{#IFNAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: 'dell.server.net.if.speed[{#IFNAME}]' + master_item: + key: dell.server.net.iface.get + lld_macro_paths: + - lld_macro: '{#IFNAME}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b5348e19cae14ae2b03d7233af32e0b4 + name: 'Physical disk discovery' + type: DEPENDENT + key: dell.server.physicaldisk.discovery + delay: '0' + description: 'Discovery of physical disks.' + item_prototypes: + - uuid: 235afcffe8b14b32aa67bdb7fc6333cb + name: 'Physical disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get physical disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'sn', + 'path': 'SerialNumber' + }, + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'mediaType', + 'path': 'MediaType' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a physical disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: physicaldisk + - tag: component + value: raw + - tag: component + value: storage + - uuid: bd17c2643991431891563776da992e07 + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The type of media contained in this drive. Possible values: HDD, SSD, SMR, null.' + preprocessing: + - type: JSONPATH + parameters: + - $.mediaType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 4547fec41f5f4896bf23325c72293d74 + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model number of the drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: e6dbc8a224ba4501904167f9a69f542a + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.sn + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 2cf59e5195f44f2294355ff8d7c92cd7 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#1)<>last(/DELL PowerEdge R750 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#2) and length(last(/DELL PowerEdge R750 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]))>0' + name: 'Dell R750: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R750: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: da4f9f2c063149a9b148907566b699bf + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size, in bytes, of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 9ffb57530887440c8e2b37033c1313f8 + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[{#DISK_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 24c1d95610cb4379b771bad57ccf1c6a + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + name: 'Dell R750: Physical disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 569dc8a30a8e4cb8b83e15265a3cbf55 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=2' + name: 'Dell R750: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: Physical disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 680fda00a8864d6fbabe2d74055beb10 + name: 'Dell R750: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.physicalDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b00da28f7005454485640302d3b4159c + name: 'PSU discovery' + type: DEPENDENT + key: dell.server.psu.discovery + delay: '0' + description: 'Discovery of PSU sensors.' + item_prototypes: + - uuid: 9a07948391284315a46fb5f58dad20be + name: 'Power supply [{#SENSOR_NAME}]: Current sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.current.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.current.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 4079021e35c948e4aa221bd3d327cce7 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + name: 'Dell R750: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: d66e8b1ec51f4e62b773caa27c70610a + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=2' + name: 'Dell R750: Power supply [{#SENSOR_NAME}]: Current sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 947e2a4eac99437c863c362149d43c6a + name: 'Power supply [{#SENSOR_NAME}]: Current' + type: DEPENDENT + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: A + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.current.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: current + - tag: component + value: psu + - uuid: 8b2b64d5286f4bc69536bccc16669bd9 + name: 'Power supply [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.psu.[?(@.name == ''{#SENSOR_NAME}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: psu + - tag: component + value: raw + - uuid: 3bd24762290a463bb24cbf5d79fc6615 + name: 'Power supply [{#SENSOR_NAME}]: Voltage sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 1ac6f860ec194b2caea307904c52313a + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + name: 'Dell R750: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: a1f4d65962ff49d1a8fb060650299b9f + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=2' + name: 'Dell R750: Power supply [{#SENSOR_NAME}]: Voltage sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: a7cd2e9a40f04d2fad64beabc71c73b9 + name: 'Power supply [{#SENSOR_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + - tag: component + value: voltage + graph_prototypes: + - uuid: 18a6ba72261f45248c5d6b7775b003bb + name: 'Dell R750: Power supply [{#SENSOR_NAME}]: Current' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + - uuid: 1c2fdb8764664403ac21dce61bd887af + name: 'Dell R750: Power supply [{#SENSOR_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#SENSOR_NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.psu + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 71b1c58fe83b424582396732ecee39f0 + name: 'Temperature discovery' + type: DEPENDENT + key: dell.server.temp.discovery + delay: '0' + description: 'Discovery of temperature sensors.' + item_prototypes: + - uuid: 0c702302c56944b2bfbf0f899366e098 + name: 'Probe [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.temperature.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: raw + - tag: component + value: temperature + - uuid: a92fd77103374ae884c4caec3f8a84ef + name: 'Probe [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 71d81774eea54ca8a3085b534a9a4352 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + name: 'Dell R750: Probe [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: c0556a6e25e24c3ca8b666a35a929564 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=2' + name: 'Dell R750: Probe [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: Probe [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: d58c124c61d94c65bb8a3846e659000b + name: 'Probe [{#SENSOR_NAME}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: °C + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: 1e598bba591c47f6ac1447b70974284c + name: 'Dell R750: Probe [{#SENSOR_NAME}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.temperature + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 92566cdbe5944d44bb5731ddaac795c7 + name: 'Virtual disk discovery' + type: DEPENDENT + key: dell.server.virtualdisk.discovery + delay: '0' + description: 'Discovery of virtual disks.' + item_prototypes: + - uuid: 0270423f8d1f45699457660f9bd7a1c1 + name: 'Virtual disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get virtual disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + }, + { + 'name': 'status', + 'path': 'Status.State' + }, + { + 'name': 'raidStatus', + 'path': 'Oem.Dell.DellVirtualDisk.RaidStatus' + }, + { + 'name': 'readCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.ReadCachePolicy' + }, + { + 'name': 'writeCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.WriteCachePolicy' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a virtual disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - tag: component + value: virtualdisk + - uuid: eefaac7bdaa84bc4a3ef657798a93aae + name: 'Virtual disk [{#DISK_NAME}]: RAID status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}]' + delay: '0' + description: 'This property represents the RAID specific status. Possible values: Blocked, Degraded, Failed, Foreign, Offline, Online, Ready, Unknown, null.' + valuemap: + name: 'Virtual disk RAID status' + preprocessing: + - type: JSONPATH + parameters: + - $.raidStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Blocked': 1, + 'Degraded': 2, + 'Failed': 3, + 'Foreign': 4, + 'Offline': 5, + 'Unknown': 6, + 'null': 7, + 'Ready': 8, + 'Online': 9, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 7cf1f17cf2ca4a4dbe1066d5bb372c28 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}],)<8' + name: 'Dell R750: Virtual disk [{#DISK_NAME}]: RAID status not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the disk for faults.' + tags: + - tag: scope + value: availability + - uuid: b133fbbbb0774e4db20fc4063fd65936 + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the read cache policy setting for the Volume. Possible values: ReadAhead, NoReadAhead, AdaptiveReadAhead.' + valuemap: + name: 'Virtual disk read policy' + preprocessing: + - type: JSONPATH + parameters: + - $.readCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'NoReadAhead': 1, + 'ReadAhead': 2, + 'AdaptiveReadAhead': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: ad80600ff7bf49879216172b35826689 + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size in bytes of this Volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 74aee5b600b24332befeb1f9c403693c + name: 'Virtual disk [{#DISK_NAME}]: Current state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[{#DISK_NAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 2cdf0d7cc69640df96b9d949b37f3f77 + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[{#DISK_NAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: e872fea6b96c4b9cad4b313d94723616 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + name: 'Dell R750: Virtual disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 916b4e10d26c4c6d99e3f40f5dc49c05 + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=2' + name: 'Dell R750: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: Virtual disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: fff7446780464364bda19db28cc6854c + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the write cache policy setting for the Volume. Possible values: WriteThrough, WriteBack, ProtectedWriteBack, UnprotectedWriteBack.' + valuemap: + name: 'Virtual disk write policy' + preprocessing: + - type: JSONPATH + parameters: + - $.writeCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'WriteThrough': 1, + 'WriteBack': 2, + 'ProtectedWriteBack': 3, + 'UnprotectedWriteBack': 4, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: 92dda4f99e7e453babc83bff7ff5fc81 + name: 'Dell R750: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.virtualDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.HTTP.API.PASSWORD}' + type: SECRET_TEXT + description: 'The Dell iDRAC user password.' + - macro: '{$DELL.HTTP.API.URL}' + value: '' + description: 'The Dell iDRAC Redfish API URL in the format `://:`.' + - macro: '{$DELL.HTTP.API.USER}' + value: '' + description: 'The Dell iDRAC username.' + - macro: '{$DELL.HTTP.CPU.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.CPU.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.HTTP.IO.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about IO utilization.' + - macro: '{$DELL.HTTP.IO.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about IO utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about memory utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about memory utilization.' + - macro: '{$DELL.HTTP.PROXY}' + description: 'Set an HTTP proxy for Redfish API requests if needed.' + - macro: '{$DELL.HTTP.REQUEST.TIMEOUT}' + value: 10s + description: 'Set the timeout for HTTP requests.' + - macro: '{$DELL.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + - macro: '{$DELL.HTTP.SYS.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about SYS utilization.' + - macro: '{$DELL.HTTP.SYS.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about SYS utilization.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "DELL PowerEdge", e.g. {$HTTP.TLS.VERIFY:"DELL PowerEdge"}.' + dashboards: + - uuid: b96317122fe34f54b173083884d0db24 + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: gauge + name: 'CPU utilization' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: CPU + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.util.cpu + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'Memory utilization' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: MEM + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.util.mem + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'I/O utilization' + 'y': '6' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: I/O + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.util.io + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'SYS utilization' + 'y': '9' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: SYS + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.util.sys + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Redfish API' + x: '18' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Redfish API' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by HTTP' + key: 'net.tcp.service[https]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '18' + 'y': '3' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.hw.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + x: '18' + 'y': '6' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.hw.serialnumber + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '18' + 'y': '9' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.hw.firmware + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'System health' + x: '45' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.status + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '2' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Power supply*Voltage' + - type: STRING + name: items.1 + value: 'Power supply*Current' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Interface speed' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Speed' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAABA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '10000000' + - type: STRING + name: thresholds.2.color + value: FF980E + - type: STRING + name: thresholds.2.threshold + value: '100000000' + - type: STRING + name: thresholds.3.color + value: 069C56 + - type: STRING + name: thresholds.3.threshold + value: '1000000000' + - type: STRING + name: thresholds.4.color + value: 2196F3 + - type: STRING + name: thresholds.4.threshold + value: '10000000000' + - type: STRING + name: thresholds.5.color + value: 6C00D9 + - type: STRING + name: thresholds.5.threshold + value: '25000000000' + - type: STRING + name: thresholds.6.color + value: D900A6 + - type: STRING + name: thresholds.6.threshold + value: '40000000000' + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + valuemaps: + - uuid: 56fb82a2303e451b9a585687a0902794 + name: 'Network interface status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: 'Null' + - value: '2' + newvalue: Down + - value: '3' + newvalue: Up + - uuid: c1074235685c4d2096c30a3ab686634e + name: 'Redfish API availability' + mappings: + - value: '0' + newvalue: Unavailable + - value: '1' + newvalue: Available + - uuid: a5e2bf8ce89a482aa87ccccbf01cb1cd + name: 'Redfish status health' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: OK + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - uuid: c295caa412b74acb918176f8d4543010 + name: 'Redfish status state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Enabled + - value: '2' + newvalue: Disabled + - value: '3' + newvalue: Absent + - value: '4' + newvalue: Deferring + - value: '5' + newvalue: InTest + - value: '6' + newvalue: Quiesced + - value: '7' + newvalue: StandbyOffline + - value: '8' + newvalue: StandbySpare + - value: '9' + newvalue: Starting + - value: '10' + newvalue: UnavailableOffline + - value: '11' + newvalue: Updating + - uuid: d88a53d7143a49dfb37057f9d80ed48a + name: 'Virtual disk RAID status' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: Blocked + - value: '2' + newvalue: Degraded + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Foreign + - value: '5' + newvalue: Offline + - value: '6' + newvalue: Unknown + - value: '7' + newvalue: 'Null' + - value: '8' + newvalue: Ready + - value: '9' + newvalue: Online + - uuid: 46520ef5e9e544c4a4393bd6a2ed4548 + name: 'Virtual disk read policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: NoReadAhead + - value: '2' + newvalue: ReadAhead + - value: '3' + newvalue: AdaptiveReadAhead + - uuid: 6c17f062dc8e4f7cb2362adcffbe11c5 + name: 'Virtual disk write policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: WriteThrough + - value: '2' + newvalue: WriteBack + - value: '3' + newvalue: ProtectedWriteBack + - value: '4' + newvalue: UnprotectedWriteBack + graphs: + - uuid: f013dc8df1c14dd18d0bd4b5ba7107ea + name: 'Dell R750: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.util.cpu + - uuid: c853ecbd5a094bdca722755f53530dcd + name: 'Dell R750: IO utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.util.io + - uuid: f392e951f84d49d79a95203dcb708437 + name: 'Dell R750: Memory utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.util.mem + - uuid: d9218627e1174e698f1322c0cc0f5a5f + name: 'Dell R750: SYS utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by HTTP' + key: dell.server.util.sys diff --git a/DELL_PowerEdge_R750_by_SNMP.yaml b/DELL_PowerEdge_R750_by_SNMP.yaml new file mode 100644 index 0000000..5d2a921 --- /dev/null +++ b/DELL_PowerEdge_R750_by_SNMP.yaml @@ -0,0 +1,2608 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 419145c8af7e4b8eb30af8460bbed566 + template: 'DELL PowerEdge R750 by SNMP' + name: 'DELL PowerEdge R750 by SNMP' + description: | + Template for DELL PowerEdge R750 servers with iDRAC version 7 and later. + + MIBs used: + HOST-RESOURCES-MIB + IDRAC-MIB-SMIv2 + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: afe5a32aaab74acc94199a87c8eb893f + name: 'SNMP walk RAID controllers table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2]' + key: dell.server.array.controller.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::controllerTable`.' + tags: + - tag: component + value: raw + - uuid: 2058910ac68046bcbbe3c541d8493cc6 + name: 'SNMP walk Battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21]' + key: dell.server.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::batteryTable`.' + tags: + - tag: component + value: raw + - uuid: 8369cb7f9e9040eda117ed54acae56ef + name: 'BIOS version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.4.300.50.1.8.1.1]' + key: dell.server.bios.version + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the version name of the system BIOS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 1ed40c90dc2a4c329467fcd8796e4826 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'dell.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Name and contact information of the contact person for the node. If not provided, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 5eb47d9d420446cba50d5bdf8ce94ea2 + name: 'SNMP walk Processor device tables' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.30.1.26,1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.1]' + key: dell.server.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Processor Device Status Table `IDRAC-MIB-SMIv2::processorDeviceTable` and `IDRAC-MIB-SMIv2::processorDeviceStatusTable`.' + tags: + - tag: component + value: raw + - uuid: 6bfce5ab91884d75a8771a6648ab90b5 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'dell.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating system, and networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 35400811500f4b7fb3444aebfc8a9bb3 + name: 'SNMP walk Physical disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11]' + key: dell.server.disk.physical.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Physical Disk Table `IDRAC-MIB-SMIv2::physicalDiskTable`.' + tags: + - tag: component + value: raw + - uuid: f2762c4ec5a0488492d312c07d82890f + name: 'SNMP walk Virtual disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4]' + key: dell.server.disk.virtual.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Virtual Disk Table `IDRAC-MIB-SMIv2::virtualDiskTable`.' + tags: + - tag: component + value: raw + - uuid: bbedf912ec7a4b01b6c4c1f6646fe691 + name: 'SNMP walk Cooling device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.12.1.5,1.3.6.1.4.1.674.10892.5.4.700.12.1.8,1.3.6.1.4.1.674.10892.5.4.700.12.1.7,1.3.6.1.4.1.674.10892.5.4.700.12.1.6]' + key: dell.server.fan.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Cooling Device Table `IDRAC-MIB-SMIv2::coolingDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 0433d7f60efb429399493383314f7256 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.1.8.0]' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the firmware version of a remote access card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 3cb240c2c5884c448a7ac399412dc00c + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#1)<>last(/DELL PowerEdge R750 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#2) and length(last(/DELL PowerEdge R750 by SNMP/dell.server.hw.firmware[racFirmwareVersion]))>0' + name: 'Dell R750: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 79dc78b6decf4b8b9769ae834da84513 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.12.0]' + key: 'dell.server.hw.model[systemModelName]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the model name of the system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: bb3b2abb63c84a97ba62a04b943236a9 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.2.0]' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the service tag of the system. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 7e6fb4f6552d4643babba3d650f00c18 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#1)<>last(/DELL PowerEdge R750 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#2) and length(last(/DELL PowerEdge R750 by SNMP/dell.server.hw.serialnumber[systemServiceTag]))>0' + name: 'Dell R750: Device has been replaced' + event_name: 'Dell R750: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 578b9267e58d462abb36c0e68fd32dbc + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.5.0]' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + trends: '0' + units: uptime + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the power-up time of the system in seconds. + tags: + - tag: component + value: system + - uuid: f09996db69fe484283e45a3117b4d5f0 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'dell.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., 'telephone closet, 3rd floor'). If the location is unknown, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 37f3d96deb39494e95513361d0ea8183 + name: 'Memory, total size' + type: CALCULATED + key: dell.server.memory.size.total + units: B + params: 'sum(last_foreach(//dell.server.memory.size[*]))' + description: 'Total memory amount on the device.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + triggers: + - uuid: 2f2f224a7ce3481eb04fd5c62530a57d + expression: 'change(/DELL PowerEdge R750 by SNMP/dell.server.memory.size.total)>0' + name: 'Dell R750: Memory amount has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 3f9159df646b4036a754969f454b0ce8 + name: 'SNMP walk Memory device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1]' + key: dell.server.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Memory Device Table `IDRAC-MIB-SMIv2::memoryDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 09195963d6e74bab98f9cea1adbfbd25 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'dell.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 45b605bae5bd4bfa8c7ab042a3bde257 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.name[sysName],#1)<>last(/DELL PowerEdge R750 by SNMP/dell.server.name[sysName],#2) and length(last(/DELL PowerEdge R750 by SNMP/dell.server.name[sysName]))>0' + name: 'Dell R750: System name has changed' + event_name: 'Dell R750: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8a9d37b55a7149ce8ac0428e5021ee12 + name: 'SNMP walk Network device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1, 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1]' + key: dell.server.net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Network Device Table `IDRAC-MIB-SMIv2::networkDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 8515f86587ab43a0af94b90a06998ba5 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.6.3.10.2.1.3.0]' + key: 'dell.server.net.uptime[snmpEngineTime]' + trends: '0' + units: uptime + description: | + MIB: SNMP-FRAMEWORK-MIB + The number of seconds since the value of the snmpEngineBoots object last changed. + tags: + - tag: component + value: system + - uuid: d8abb2af15ad42f2ae3d76df569e1ae0 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'dell.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 82ab16270c5d4748bc212b69774b8ddc + name: 'SNMP walk Power supply table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.12.1.5,1.3.6.1.4.1.674.10892.5.4.600.12.1.8]' + key: dell.server.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Power Supply Table `IDRAC-MIB-SMIv2::powerSupplyTable`.' + tags: + - tag: component + value: raw + - uuid: ad64ca5196504b48afb43a0954396579 + name: 'SNMP walk Temperature sensor table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.20.1.1,1.3.6.1.4.1.674.10892.5.4.700.20.1.8,1.3.6.1.4.1.674.10892.5.4.700.20.1.6,1.3.6.1.4.1.674.10892.5.4.700.20.1.5]' + key: dell.server.sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Temperature Probe Table `IDRAC-MIB-SMIv2::temperatureProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 24bf18434f2145fe91b6bf6ccf3a5c5d + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.1.0]' + key: 'dell.server.status[globalSystemStatus]' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 58beec6c28a5424a862d427588b74207 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.DISASTER}' + name: 'Dell R750: System is in unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 652439f2023d46bf8ba84d8ac0154ee2 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + name: 'Dell R750: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for errors.' + tags: + - tag: scope + value: availability + - uuid: 9702a49ff2034f3b98892d93c1060ff1 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.WARN}' + name: 'Dell R750: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R750: System status is in critical state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: availability + - uuid: abed403c12404de3b6df8335324eddf3 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.6.0]' + key: 'dell.server.sw.os[systemOSName]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the name of the operating system that the host is running. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 2c37e6ae35404da199844a685b2ed28f + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sw.os[systemOSName],#1)<>last(/DELL PowerEdge R750 by SNMP/dell.server.sw.os[systemOSName],#2) and length(last(/DELL PowerEdge R750 by SNMP/dell.server.sw.os[systemOSName]))>0' + name: 'Dell R750: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possibly, the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 391180d5461c4f448724b22cacc12036 + name: 'SNMP walk System battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1,1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1]' + key: dell.server.system.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of System Battery Table `IDRAC-MIB-SMIv2::systemBatteryTable`.' + tags: + - tag: component + value: raw + - uuid: 0dc203875c6541e48f8418c4806461dd + name: 'SNMP walk Voltage probe table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1]' + key: dell.server.voltage.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Voltage Probe Table `IDRAC-MIB-SMIv2::voltageProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 575229ede65e4639a4113ef078ed33d2 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other `snmptrap` items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: c164ae420f1a49d2a205ecbe2eb1d892 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 22caee353f3f4b74a150f8144f73eab2 + expression: 'max(/DELL PowerEdge R750 by SNMP/zabbix[host,snmp,available],{$DELL.SNMP.TIMEOUT})=0' + name: 'Dell R750: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: f53489a8b45a4cf7bdb9bb7cdc70476c + name: 'Array controller discovery' + type: DEPENDENT + key: array.discovery + delay: '0' + description: 'Array controller discovery.' + item_prototypes: + - uuid: b1791e524e8e4c3fa0d436a30aa48e26 + name: 'Controller [{#CNTLR_NAME}]: Model' + type: DEPENDENT + key: 'dell.server.hw.diskarray.model[controllerName.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The controller's name as represented in Storage Management. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: c0a6d4b50f7a4d98884526adc0282d65 + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the controller itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 45ee39d107794f8584960b2a29ae24b6 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + name: 'Dell R750: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R750: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + - uuid: c4bee8d38f5c466ba2dbf5c283e50b22 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + name: 'Dell R750: Controller [{#CNTLR_NAME}]: Unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 45546a22e8bf4c4c956efcc9bccd8f1e + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + name: 'Dell R750: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R750: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + - name: 'Dell R750: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.controller.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38 + - '0' + - '{#CNTLR_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: e6ed622097f143a2abc8ab7c96f2fa85 + name: 'Battery discovery' + type: DEPENDENT + key: battery.discovery + delay: '0' + description: 'Battery discovery.' + item_prototypes: + - uuid: 32a7aeec4f714456bcda1c85b20ff8b2 + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.battery.status[batteryState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Current state of battery. + Possible values: + 1: The current state could not be determined. + 2: The battery is operating normally. + 3: The battery has failed and needs to be replaced. + 4: The battery temperature is high or charge level is depleting. + 5: The battery is missing or not detected. + 6: The battery is undergoing the re-charge phase. + 7: The battery voltage or charge level is below the threshold. + valuemap: + name: 'IDRAC-MIB-SMIv2::batteryState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.battery.walk + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: 067d23b901264566a7c9286167e0bdc8 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + name: 'Dell R750: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: f304da869b0f4c7d9c0bc0c648399770 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])<>{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + name: 'Dell R750: Battery [{#BATTERY_NAME}]: Not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R750: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + - name: 'Dell R750: Battery [{#BATTERY_NAME}]: Warning state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + tags: + - tag: scope + value: availability + - uuid: 441c7e48188f4dd584cb5cfefb8b7d12 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + name: 'Dell R750: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R750: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#BATTERY_NUM}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1 + - '0' + - '{#BATTERY_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8ab8bef701d048e69a73f040ad1af21a + name: 'CPU status discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: 'CPU status discovery.' + item_prototypes: + - uuid: 21638c22932b4902935cded381ecd8da + name: 'CPU [{#CPU_FQDD}]: State' + type: DEPENDENT + key: 'dell.server.cpu.state[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the reading of the processor device status probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: b6ab5fa13e0b4addb6bdb7054484905d + expression: 'bitand(last(/DELL PowerEdge R750 by SNMP/dell.server.cpu.state[cpu.{#SNMPINDEX}],#1),128)=0' + name: 'Dell R750: CPU [{#CPU_FQDD}]: Reading error' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU probe reading flag is not `processorPresent`. + tags: + - tag: scope + value: availability + - uuid: 82ee2aef57234c2a895abb12a88fa080 + name: 'CPU [{#CPU_FQDD}]: Status' + type: DEPENDENT + key: 'dell.server.cpu.status[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the status of the processor device status probe. This status will be joined into the `processorDeviceStatus` attribute.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: cc4ce4de33484554b08466e06dee03ad + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.cpu.status[cpu.{#SNMPINDEX}],#1)<>3' + name: 'Dell R750: CPU [{#CPU_FQDD}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.30.1.26 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: d94dca2ced174c64be2c2320ea02ab5e + name: 'Fan discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + filter: + conditions: + - macro: '{#TYPE}' + value: '3' + formulaid: A + description: 'Fan discovery.' + item_prototypes: + - uuid: 64f790383afd4bc095111260afca2a3c + name: 'Fan [{#FAN_DESCR}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + delay: '0' + units: rpm + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a cooling device of a subtype other than `coolingDeviceSubTypeIsDiscrete`. + When the value for `coolingDeviceSubType` is other than `coolingDeviceSubTypeIsDiscrete`, the value returned for this attribute is the speed in RPM or the "OFF/ON" value of the cooling device. + When the value for `coolingDeviceSubType` is `coolingDeviceSubTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + - uuid: 803def961ff6436098d04b1d3b071cfe + name: 'Fan [{#FAN_DESCR}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#FAN_DESCR}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the cooling device. + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 63aa1fdbf4b34dca9ce5e4de80b2b669 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + name: 'Dell R750: Fan [{#FAN_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: availability + - uuid: 2c72a8abf92e41ae9775651d2804dd15 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R750: Fan [{#FAN_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'Dell R750: Fan [{#FAN_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: e666babd7a6b4e4794cbf60fb6efd1df + name: 'Dell R750: Fan [{#FAN_DESCR}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + master_item: + key: dell.server.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.5 + - '0' + - '{#FAN_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.8 + - '0' + - '{#TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3dce052999be497ca8aaf114f95919e8 + name: 'Memory discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: 'Memory discovery.' + item_prototypes: + - uuid: 552d15f0d4e34855aaa003596d2af728 + name: 'Memory [{#SNMPVALUE}]: Size' + type: DEPENDENT + key: 'dell.server.memory.size[{#SNMPVALUE}]' + delay: '0' + units: B + description: 'This attribute defines the size, in KB, of the memory device. Zero indicates no memory installed; 2,147,483,647 indicates an unknown memory size.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + - uuid: da00461cfcfd414385b8ef028a4443ab + name: 'Memory [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.memory.status[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the memory device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 240b28c42d24459ca26ad2b3b1918d99 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.memory.status[{#SNMPVALUE}],#1)<>3' + name: 'Dell R750: Memory [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Memory status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 12fcb06f08494037beffa958fcc1d29d + name: 'Network interface discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: 3138082ae9914ab4ac5581bb5dcb045a + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.link[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the connection status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 153bad63b97d4d439b0ef110c37633d4 + expression: '{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1 and last(/DELL PowerEdge R750 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>1 and last(/DELL PowerEdge R750 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>last(/DELL PowerEdge R750 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)=1 or {$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=0' + name: 'Dell R750: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down. + 2. `{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 185b1e4d16a64c0ca999631364364462 + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: cc9b9a8e8f1541a98a4be1b1f119dc7b + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.net.if.status[{#NIC_FQDD}],#1)<>3' + name: 'Dell R750: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Network interface status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NIC_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1 + - '0' + - '{#NIC_MAC}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1 + - '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: c68af0c8ed7f4cabbf9da31f0c35d728 + name: 'Physical disk discovery' + type: DEPENDENT + key: physicaldisk.discovery + delay: '0' + description: 'Physical disk discovery.' + item_prototypes: + - uuid: e388e6b6999b448bb8c01442e707c510 + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[physicalDiskMediaType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The media type of the physical disk. Possible Values: + 1: The media type could not be determined. + 2: Hard Disk Drive (HDD). + 3: Solid State Drive (SSD). + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 6e1632c7c9524c0bb1c6d47d0dff04f8 + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[physicalDiskProductID.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The model number of the physical disk. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: b30d7f393f394eb7838c0152721e7666 + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The physical disk's unique identification number from the manufacturer. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: e120cd2329ea4a659c66ccc4ac46747a + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#1)<>last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#2) and length(last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]))>0' + name: 'Dell R750: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R750: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 20559cb3035c4dac865549a94b1d8d9d + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the physical disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: bdf2526c88df45b98eaf0e99b599a84f + name: 'Physical disk [{#DISK_NAME}]: S.M.A.R.T. Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Indicates whether the physical disk has received a predictive failure alert. + valuemap: + name: 'IDRAC-MIB-SMIv2::BooleanType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 8bbead4d14754d9b88bf8304176c7bff + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'Dell R750: Physical disk [{#DISK_NAME}]: S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'Dell R750: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + - uuid: 7bb9177022064d278ed2255a46238c72 + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the physical disk itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 5ba3472c708444d0b8ed1bfec7557baf + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + name: 'Dell R750: Physical disk [{#DISK_NAME}]: Failed state' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: bb250a8fe19d4d319b9b1c6d10c04774 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + name: 'Dell R750: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'Dell R750: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R750 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 69ca1bbae9134f0da26c6cf926c35722 + name: 'Dell R750: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.physical.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: f3ff069a229d43c39ab3a315f00b8f3a + name: 'PSU discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'PSU discovery.' + item_prototypes: + - uuid: f7421fa124af4654bb1c4d5a29541d1d + name: 'Power supply [{#PSU_DESCR}]: State' + type: DEPENDENT + key: 'dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the status of the power supply. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.psu.walk + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 9653ab9642d649aca556a0daee76209c + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + name: 'Dell R750: Power supply [{#PSU_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: availability + - uuid: e29d34bc586a456691c835149b17d270 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + name: 'Dell R750: Power supply [{#PSU_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'Dell R750: Power supply [{#PSU_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.5 + - '0' + - '{#PSU_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 01b77de5966b40b684479fe65c2fc3f1 + name: 'System battery discovery' + type: DEPENDENT + key: system.battery.discovery + delay: '0' + description: 'System battery discovery.' + item_prototypes: + - uuid: 31de734882e54920b74f214ce3d96f54 + name: 'System battery [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.system.battery[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the battery.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.battery.walk + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: 513785a5de094c57a5b20a7a4e1db042 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.system.battery[{#SNMPVALUE}],#1)<>3' + name: 'Dell R750: System battery [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + System battery status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.system.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 1580a53d7d804d99a3e1cd1bd66af855 + name: 'Temperature discovery' + type: DEPENDENT + key: temp.discovery + delay: '0' + description: 'Temperature sensor discovery.' + item_prototypes: + - uuid: b4b80de974e7488c977ede41c75e0c21 + name: 'Probe [{#SENSOR_LOCALE}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the temperature probe. + Possible values: + other(1), -- probe status is not one of the following: + unknown(2), -- probe status is unknown (not known or monitored) + ok(3), -- probe is reporting a value within the thresholds + nonCriticalUpper(4), -- probe has crossed the upper noncritical threshold + criticalUpper(5), -- probe has crossed the upper critical threshold + nonRecoverableUpper(6), -- probe has crossed the upper non-recoverable threshold + nonCriticalLower(7), -- probe has crossed the lower noncritical threshold + criticalLower(8), -- probe has crossed the lower critical threshold + nonRecoverableLower(9), -- probe has crossed the lower non-recoverable threshold + failed(10) -- probe is not functional + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 5fbbf20cc4114bcea47591e925a1b92c + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + name: 'Dell R750: Probe [{#SENSOR_LOCALE}]: Critical status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: f16c3c5630c7493cba96d973e71b56f3 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])<>{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + name: 'Dell R750: Probe [{#SENSOR_LOCALE}]: Not in optimal status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + manual_close: 'YES' + dependencies: + - name: 'Dell R750: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + - name: 'Dell R750: Probe [{#SENSOR_LOCALE}]: Warning status' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + tags: + - tag: scope + value: notice + - uuid: e6635984c5764d78bc494d067382b452 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R750: Probe [{#SENSOR_LOCALE}]: Warning status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R750: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R750 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + tags: + - tag: scope + value: availability + - uuid: ae6ba617d2dd47a288d716e2220a4b45 + name: 'Probe [{#SENSOR_LOCALE}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a temperature probe of type other than `temperatureProbeTypeIsDiscrete`. + When the value for `temperatureProbeType` is other than `temperatureProbeTypeIsDiscrete`, the value returned for this attribute is the temperature that the probe is reading in Centigrade. + When the value for `temperatureProbeType` is `temperatureProbeTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: 5e901b5fc45c4000948a857441691f7d + name: 'Dell R750: Probe [{#SENSOR_LOCALE}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + master_item: + key: dell.server.sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.1 + - '0' + - '{#SENSOR_LOCALE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: a5b9d53f6c4f4202b4a525e023a1ce3b + name: 'Virtual disk discovery' + type: DEPENDENT + key: virtualdisk.discovery + delay: '0' + description: 'Virtual disk discovery.' + item_prototypes: + - uuid: 3d44e650016747f18d485089da592d1a + name: 'Virtual disk [{#DISK_NAME}]: Layout type' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.layout[virtualDiskLayout.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The virtual disk's RAID type. + Possible values: + 1: Not one of the following + 2: RAID-0 + 3: RAID-1 + 4: RAID-5 + 5: RAID-6 + 6: RAID-10 + 7: RAID-50 + 8: RAID-60 + 9: Concatenated RAID 1 + 10: Concatenated RAID 5 + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 8e5d1124cfe042c69a400ce18b78f0a9 + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[virtualDiskReadPolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The read policy used by the controller for read operations on this virtual disk. + Possible values: + 1: No Read Ahead. + 2: Read Ahead. + 3: Adaptive Read Ahead. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: feaee5bce10b4343b1979f981a41fa08 + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the virtual disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 1ab64a043c7c49babbc38baf9c15ba6b + name: 'Virtual disk [{#DISK_NAME}]: Operational state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[virtualDiskOperationalState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The state of the virtual disk when there are progressive operations ongoing. + Possible values: + 1: There is no active operation running. + 2: The virtual disk configuration has changed. The physical disks included in the virtual disk are being modified to support the new configuration. + 3: A Consistency Check (CC) is being performed on the virtual disk. + 4: The virtual disk is being initialized. + 5: BackGround Initialization (BGI) is being performed on the virtual disk. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: f0858440aca347fb9e4bd3f8a425e44f + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The current state of this virtual disk (which includes any member physical disks.) + Possible states: + 1: The current state could not be determined. + 2: The virtual disk is operating normally or optimally. + 3: The virtual disk has encountered a failure. Data on the disk is lost or is about to be lost. + 4: The virtual disk encountered a failure with one or all of the constituent redundant physical disks. + The data on the virtual disk might no longer be fault tolerant. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 137578978eae4687902fb0d156b24599 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + name: 'Dell R750: Virtual disk [{#DISK_NAME}]: Failed state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the virtual disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: 64b3ede11df34c48b0d5576a3f4afed2 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + name: 'Dell R750: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the virtual disk for warnings or errors.' + dependencies: + - name: 'Dell R750: Virtual disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + - uuid: b92c8b659e424cf6befe2ab8ba1ebfd8 + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[virtualDiskWritePolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The write policy used by the controller for write operations on this virtual disk. + Possible values: + 1: Write Through. + 2: Write Back. + 3: Force Write Back. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: c8acd3090578488f9772d4d8e50d2082 + name: 'Dell R750: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.virtual.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 609fe55d31344073b69f2d5972d36c96 + name: 'Voltage probe discovery' + type: DEPENDENT + key: voltage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + formulaid: A + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + formulaid: C + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Voltage probe discovery.' + item_prototypes: + - uuid: 4de5e5a4fab24acf9804d41cb14ae0bd + name: 'Voltage probe [{#VPROBE_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.voltage.status[{#VPROBE_NAME}]' + delay: '0' + description: 'This attribute defines the status of the voltage probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + trigger_prototypes: + - uuid: d363ebd012514cf691c18e38d6e7a9c9 + expression: 'last(/DELL PowerEdge R750 by SNMP/dell.server.voltage.status[{#VPROBE_NAME}])<>3' + name: 'Dell R750: Voltage probe [{#VPROBE_NAME}]: Status is not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device''s voltage.' + tags: + - tag: scope + value: availability + - uuid: 5210d34f8ce944b2bf63be2fd9ce176b + name: 'Voltage probe [{#VPROBE_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'This attribute defines the reading for a voltage probe.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + graph_prototypes: + - uuid: 82d83fc0210443678ed4221d1cd50caa + name: 'Dell R750: Voltage probe [{#VPROBE_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + master_item: + key: dell.server.voltage.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#VPROBE_NAME}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1 + - '0' + - '{#VPROBE_TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + value: '^.*Voltage.*$' + description: 'Sets the regex string of voltage probe names to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe names to ignore in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + value: 18|16 + description: 'Sets the regex string of voltage probe types to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe types to ignore in discovery.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + value: '3' + description: 'The critical status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + value: '2' + description: 'The OK status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + value: '5' + description: 'The critical status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + value: '6' + description: 'The disaster status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.SMART.STATUS.FAIL}' + value: '1' + description: 'The critical S.M.A.R.T status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"critical"}' + value: '5' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + value: '6' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + value: '10' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.CRIT}' + value: '5' + description: 'The critical status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.DISASTER}' + value: '6' + description: 'The disaster status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.WARN}' + value: '4' + description: 'The warning status of health for the trigger expression.' + - macro: '{$DELL.SNMP.IFCONTROL}' + value: '1' + description: 'The link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"critical"}' + value: '5' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + value: '6' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + value: '3' + description: 'The OK status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP agent availability trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + value: '3' + description: 'The critical status of the virtual disk for the trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + value: '4' + description: 'The warning status of the virtual disk for the trigger expression.' + dashboards: + - uuid: 85cfa4c83cb44563890b75ecbc6091a4 + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: item + name: 'System health' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.status[globalSystemStatus]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '36' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.hw.model[systemModelName]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '36' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'NIC*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Voltage probe*Voltage' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Fan*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + valuemaps: + - uuid: 44ae746465504433b126a6ad47867539 + name: 'IDRAC-MIB-SMIv2::batteryState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Ready + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - value: '5' + newvalue: Missing + - value: '6' + newvalue: Charging + - value: '7' + newvalue: 'Below threshold' + - uuid: 540df39092da4d0ba419d9225b6855e5 + name: 'IDRAC-MIB-SMIv2::BooleanType' + mappings: + - value: '0' + newvalue: ok + - value: '1' + newvalue: failed + - uuid: bcd3842a7f14414786e7e893bf18033f + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: connected + - value: '2' + newvalue: disconnected + - value: '3' + newvalue: driverBad + - value: '4' + newvalue: driverDisabled + - value: '10' + newvalue: hardwareInitalizing + - value: '11' + newvalue: hardwareResetting + - value: '12' + newvalue: hardwareClosing + - value: '13' + newvalue: hardwareNotReady + - uuid: 0e8b14fc00af4ec1b098b1dad64bbf12 + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: 7c02091fa34847cb8571066c5f1ccfd3 + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: a0c2ee107bc24efba036b01f8aa16c03 + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: HDD + - value: '3' + newvalue: SSD + - uuid: b7f4bdede53e44ada2841fb5d39793db + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + mappings: + - value: '1' + newvalue: internalError + - value: '2' + newvalue: thermalTrip + - value: '32' + newvalue: configurationError + - value: '128' + newvalue: processorPresent + - value: '256' + newvalue: processorDisabled + - value: '512' + newvalue: terminatorPresent + - value: '1024' + newvalue: processorThrottled + - uuid: 1b7e62b02f6d4b9aad5e81de0792037e + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCriticalUpper + - value: '5' + newvalue: criticalUpper + - value: '6' + newvalue: nonRecoverableUpper + - value: '7' + newvalue: nonCriticalLower + - value: '8' + newvalue: criticalLower + - value: '9' + newvalue: nonRecoverableLower + - value: '10' + newvalue: failed + - uuid: f3ed0698bf4448ad9927f193aa804365 + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: RAID-0 + - value: '3' + newvalue: RAID-1 + - value: '4' + newvalue: RAID-5 + - value: '5' + newvalue: RAID-6 + - value: '6' + newvalue: RAID-10 + - value: '7' + newvalue: RAID-50 + - value: '8' + newvalue: RAID-60 + - value: '9' + newvalue: 'Concatenated RAID 1' + - value: '10' + newvalue: 'Concatenated RAID 5' + - uuid: 5e0085d3c952446a8fb9603b074d720f + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + mappings: + - value: '1' + newvalue: 'Not applicable' + - value: '2' + newvalue: Reconstructing + - value: '3' + newvalue: Resynching + - value: '4' + newvalue: Initializing + - value: '5' + newvalue: 'Background init' + - uuid: 65fbf402163e494aa59a7dc814a038f9 + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + mappings: + - value: '1' + newvalue: 'No Read Ahead' + - value: '2' + newvalue: 'Read Ahead' + - value: '3' + newvalue: 'Adaptive Read Ahead' + - uuid: ce091236ac5c461da03712a39e97676b + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - uuid: d30e0073fbab42ecbb1c4ab74ad1f991 + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + mappings: + - value: '1' + newvalue: 'Write Through' + - value: '2' + newvalue: 'Write Back' + - value: '3' + newvalue: 'Force Write Back' + - uuid: f5c3e47da21c4fd8ac4fd2c079ebd28b + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 0eb0e7489c6a4e6b8a44fc2eae500006 + expression: '(last(/DELL PowerEdge R750 by SNMP/dell.server.hw.uptime[systemPowerUpTime])>0 and last(/DELL PowerEdge R750 by SNMP/dell.server.hw.uptime[systemPowerUpTime])<10m) or (last(/DELL PowerEdge R750 by SNMP/dell.server.hw.uptime[systemPowerUpTime])=0 and last(/DELL PowerEdge R750 by SNMP/dell.server.net.uptime[snmpEngineTime])<10m)' + name: 'Dell R750: Host has been restarted' + event_name: 'Dell R750: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: ea6ee813804a4eb1863bb631535f6c8c + name: 'Dell R750: Uptime' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + - sortorder: '1' + color: F63100 + item: + host: 'DELL PowerEdge R750 by SNMP' + key: 'dell.server.net.uptime[snmpEngineTime]' diff --git a/DELL_PowerEdge_R820_by_HTTP.yaml b/DELL_PowerEdge_R820_by_HTTP.yaml new file mode 100644 index 0000000..b8f89ca --- /dev/null +++ b/DELL_PowerEdge_R820_by_HTTP.yaml @@ -0,0 +1,3857 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 1e9fe6b88c7542638c0f5d94484858b2 + template: 'DELL PowerEdge R820 by HTTP' + name: 'DELL PowerEdge R820 by HTTP' + description: | + Template for DELL PowerEdge R820 servers with iDRAC 8/9 firmware 4.32 and later and Redfish API enabled. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 68a232da5e184d23ac524ee2d424fef7 + name: 'Get array controller resources' + type: SCRIPT + key: dell.server.array.resources.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Controller', 'Discovery', params); + + const controllers = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage?$expand=.($levels=1)'), 'Members'); + + var arrControllerKeys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'slot', + 'path': 'Oem.Dell.DellController.PCISlot' + } + ]; + + var battControllerKeys = [ + { + 'name': 'id', + 'path': 'Oem.Dell.DellControllerBattery.Id' + }, + { + 'name': 'name', + 'path': 'Oem.Dell.DellControllerBattery.Name' + }, + { + 'name': 'status', + 'path': 'Oem.Dell.DellControllerBattery.PrimaryStatus' + } + ]; + + if (!Array.isArray(controllers)) { + throw 'Unexpected type for controllers.'; + } + + var buffer = { 'arrayControllers': [], 'batteryControllers': [] }; + + controllers.forEach(function (controller) { + if (controller['Id'].search('RAID') > -1) { + buffer['arrayControllers'].push(dell.extractData(controller, arrControllerKeys, true)); + buffer['batteryControllers'].push(dell.extractData(controller, battControllerKeys, true)); + } + }); + + return JSON.stringify(buffer); + description: 'Returns array controller resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 029cf7dfa7734c4a86292d2b3b3b907b + name: 'Get disks' + type: SCRIPT + key: dell.server.disks.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Discovery', params); + + const disks = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'name', + 'path': 'Name' + } + ]; + + if (!Array.isArray(disks)) { + throw 'Unexpected type for disks.'; + } + + var buffer = { 'physicalDisks': [], 'virtualDisks': [] }; + + disks.forEach(function (disk) { + var requests = [{ 'usage': 'physicalDisks', 'path': '', 'target': 'Drives' }, { 'usage': 'virtualDisks', 'path': '/Volumes', 'target': 'Members' }]; + + requests.forEach(function (request) { + const disks = dell.extractData(dell.executeRequest(disk['@odata.id'] + request['path']), request['target']); + + if (!Array.isArray(disks) || disks.length <= 0) { + return; + } + + disks.forEach(function (drive) { + buffer[request['usage']].push(dell.extractData(dell.executeRequest(drive['@odata.id']), keys)); + }); + }); + }); + + return JSON.stringify(buffer); + description: 'Returns storage resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: f6ecf0d86c9f4464a83f1b6dd5a8e070 + name: 'Firmware version' + type: DEPENDENT + key: dell.server.hw.firmware + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the firmware version of a remote access card.' + preprocessing: + - type: JSONPATH + parameters: + - $.firmware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: 16d23330f3274801b7ad216aae251587 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.hw.firmware,#1)<>last(/DELL PowerEdge R820 by HTTP/dell.server.hw.firmware,#2) and length(last(/DELL PowerEdge R820 by HTTP/dell.server.hw.firmware))>0' + name: 'Dell R820: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9d5f0c838c7540ce815d21cd227894b1 + name: 'Hardware model name' + type: DEPENDENT + key: dell.server.hw.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the model name of the system.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + - uuid: 6e7cbcd6ae3e40b39784142f3a10ede8 + name: 'Hardware serial number' + type: DEPENDENT + key: dell.server.hw.serialnumber + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the service tag of the system.' + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - $.serialnumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: 0ace6d0242b647519ddc539e990e2b75 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.hw.serialnumber,#1)<>last(/DELL PowerEdge R820 by HTTP/dell.server.hw.serialnumber,#2) and length(last(/DELL PowerEdge R820 by HTTP/dell.server.hw.serialnumber))>0' + name: 'Dell R820: Device has been replaced' + event_name: 'Dell R820: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2bade51081c74bfdbb282713a50dbf68 + name: 'Get network interfaces' + type: SCRIPT + key: dell.server.net.iface.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Discovery', params); + + const netAdapters = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'id', + 'path': 'Id' + } + ]; + + if (!Array.isArray(netAdapters)) { + throw 'Unexpected type for network adapters.'; + } + + var buffer = []; + + netAdapters.forEach(function (netAdapter) { + const netPorts = dell.extractData(dell.executeRequest(netAdapter["@odata.id"] + '/NetworkPorts'), 'Members'); + + if (!Array.isArray(netPorts)) { + return; + } + + netPorts.forEach(function (netPort) { + buffer.push(dell.extractData(dell.executeRequest(netPort["@odata.id"]), keys)); + }) + + }); + + return JSON.stringify(buffer); + description: 'Returns network interfaces.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: f455a0b7c198414db84fb679fba47330 + name: 'Get sensors' + type: SCRIPT + key: dell.server.sensors.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + function formatPSU(psuObj) { + var foundPowerSupplies = [], + buffer = []; + + psuObj.forEach(function (obj) { + const psuName = obj['name'].split(' ')[0]; + + if (foundPowerSupplies.indexOf(psuName) === -1) { + foundPowerSupplies.push(psuName); + buffer.push({ + 'name': psuName, + [obj['type'].toLowerCase()]: {'reading': obj['reading'], 'health': obj['health']} + }); + } else { + buffer.forEach(function (bufferObj) { + + if (bufferObj['name'] === psuName) { + bufferObj[obj['type'].toLowerCase()] = {'reading': obj['reading'], 'health': obj['health']}; + + return; + } + }); + } + }) + return buffer; + }; + + function formatTemp(tempObj) { + tempObj.forEach(function (obj) { + obj.name = obj.name.split(' ').slice(0, -1).join(' '); + }); + + return tempObj; + } + + function formatSysBoard(sysObj) { + const remove = ['System', 'Board', 'Usage']; + + sysObj.forEach(function (obj) { + var buffer = []; + + obj['name'].split(' ').forEach(function (word) { + var match = false; + + remove.forEach(function (removeWord) { + if (removeWord === word) { + match = true; + } + }); + + if (!match) { + buffer.push(word); + } + }); + + if (buffer.length > 0) { + obj['name'] = buffer.join(' '); + } + }); + + return sysObj; + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Sensor', 'Discovery', params); + + const sensors = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/Sensors?$expand=.($levels=1)'), 'Members'); + + if (!Array.isArray(sensors)) { + throw 'Unexpected type for sensors.'; + } + + const keys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'context', + 'path': 'PhysicalContext' + }, + { + 'name': 'reading', + 'path': 'Reading' + }, + { + 'name': 'type', + 'path': 'ReadingType' + }, + { + 'name': 'health', + 'path': 'Status.Health' + } + ]; + + var buffer = { 'fan': [], 'psu': [], 'temperature': [], 'sysBoard': [] }; + + sensors.forEach(function (sensor) { + if (sensor['Name'].substring(0, 2) === 'PS' && sensor['PhysicalContext'] === 'PowerSupply') { + buffer['psu'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['ReadingType'] === 'Temperature') { + buffer['temperature'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('Fan') && sensor['ReadingType'] === 'Rotational') { + buffer['fan'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('System Board') && sensor['ReadingType'] === 'Percent') { + buffer['sysBoard'].push(dell.extractData(sensor, keys, true)); + } + }); + + buffer['psu'] = formatPSU(buffer['psu']); + buffer['temperature'] = formatTemp(buffer['temperature']); + buffer['sysBoard'] = formatSysBoard(buffer['sysBoard']); + + return JSON.stringify(buffer); + description: 'Returns sensors.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: e1dd57a6fb9f4b47aa715d68aaac7e63 + name: 'Overall system health status' + type: DEPENDENT + key: dell.server.status + delay: '0' + trends: '0' + description: 'This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: df55250997fd474e8323ccf7438354f8 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.status,)=3' + name: 'Dell R820: Server is in a critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: f805d7fdab4842018b68acf3608fbfc4 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.status,)=2' + name: 'Dell R820: Server is in a warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: Server is in a critical state' + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.status,)=3' + tags: + - tag: scope + value: availability + - uuid: c25e7040694f4a839b4e32524698c8da + name: 'Get system' + type: SCRIPT + key: dell.server.system.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('System', 'Get system metrics', params); + + const requests = [ + { + 'path': '/redfish/v1/Systems/System.Embedded.1', + 'keys': [ + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'serialnumber', + 'path': 'Oem.Dell.DellSystem.ChassisServiceTag' + }, + { + 'name': 'status', + 'path': 'Status.Health' + } + ] + }, + { + 'path': '/redfish/v1/Managers/iDRAC.Embedded.1', + 'keys': { + 'name': 'firmware', + 'path': 'FirmwareVersion' + } + } + ]; + + var buffer = {}; + + for (var i = 0, requestsCount = requests.length; i < requestsCount; i++) { + Object.assign(buffer, dell.extractData(dell.executeRequest(requests[i].path), requests[i].keys)); + } + + return JSON.stringify(buffer); + description: 'Returns system metrics.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 6a34296167c4452c8ba7e37798ffd66a + name: 'CPU utilization, in %' + type: DEPENDENT + key: dell.server.util.cpu + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 1feff28d5dd74c52a3978645f7cecd62 + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.WARN}' + name: 'Dell R820: CPU utilization is high' + event_name: 'Dell R820: Current CPU utilization is high (util >= {$DELL.HTTP.CPU.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R820: CPU utilization is too high' + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 069d0f8e16a1494d99bd45b96040ef12 + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + name: 'Dell R820: CPU utilization is too high' + event_name: 'Dell R820: Current CPU utilization is too high (util >= {$DELL.HTTP.CPU.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 401471d2ffa140b09c66c7e1b0ae8be0 + name: 'IO utilization, in %' + type: DEPENDENT + key: dell.server.util.io + delay: '0' + value_type: FLOAT + units: '%' + description: 'IO utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: io + triggers: + - uuid: 0646200e61a7469c95471af24ddba10c + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.WARN}' + name: 'Dell R820: IO utilization is high' + event_name: 'Dell R820: Current IO utilization is high (util >= {$DELL.HTTP.IO.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R820: IO utilization is too high' + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: f99ead65893143c39f0ebe9c1038524d + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + name: 'Dell R820: IO utilization is too high' + event_name: 'Dell R820: Current IO utilization is too high (util >= {$DELL.HTTP.IO.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: f09f4be3c7f24504b1593eed456056c0 + name: 'Memory utilization, in %' + type: DEPENDENT + key: dell.server.util.mem + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: memory + triggers: + - uuid: cd8f662e308f4c0ea7382962a0889812 + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.WARN}' + name: 'Dell R820: Memory utilization is high' + event_name: 'Dell R820: Current memory utilization is high (util >= {$DELL.HTTP.MEM.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R820: Memory utilization is too high' + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 606b2c5625d844bb8a5641e351ab30fc + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + name: 'Dell R820: Memory utilization is too high' + event_name: 'Dell R820: Current memory utilization is too high (util >= {$DELL.HTTP.MEM.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 611a0be2fb08420ebadeadebe81ebc12 + name: 'SYS utilization, in %' + type: DEPENDENT + key: dell.server.util.sys + delay: '0' + value_type: FLOAT + units: '%' + description: 'SYS utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: sys + triggers: + - uuid: 71a95d655db24c13b7ed1e89adf7cb43 + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.WARN}' + name: 'Dell R820: SYS utilization is high' + event_name: 'Dell R820: Current SYS utilization is high (util >= {$DELL.HTTP.SYS.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R820: IO utilization is too high' + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: c3bfbc51feb54025a32d0a7e43cf9a7c + expression: 'min(/DELL PowerEdge R820 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.HIGH}' + name: 'Dell R820: SYS utilization is too high' + event_name: 'Dell R820: Current SYS utilization is too high (util >= {$DELL.HTTP.SYS.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 881a8358b3a049cb9516ec8f2ee20b69 + name: 'Redfish API status' + type: SIMPLE + key: 'net.tcp.service[https]' + description: | + Availability of Redfish API on the server. + Possible values: + 0 - Unavailable + 1 - Available + valuemap: + name: 'Redfish API availability' + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: f60ee17e012e4db39d3b2a008cf86653 + expression: 'last(/DELL PowerEdge R820 by HTTP/net.tcp.service[https])=0' + name: 'Dell R820: Redfish API service is unavailable' + priority: HIGH + description: 'The service is unavailable or does not accept TCP connections.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 380d000cd61742a0a95b2fdec94a39ee + name: 'Array controller discovery' + type: DEPENDENT + key: dell.server.array.discovery + delay: '0' + description: 'Discovery of disk array controllers.' + item_prototypes: + - uuid: fbc7a12767e54476b5eb16ac5986d5ba + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.array.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.arrayControllers[?(@.id == "{#ID}")].health.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: c3af9f97c0434999a9bd3fa94c4d3d2f + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.array.status[{#ID}],)=3' + name: 'Dell R820: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: d94ba5b002f54ff0ad1e0e148f83991b + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.array.status[{#ID}],)=2' + name: 'Dell R820: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.array.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#CNTLR_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SLOT}' + path: $.slot + preprocessing: + - type: JSONPATH + parameters: + - $.arrayControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 71f10dadaef9462caf395fd383b18406 + name: 'Battery discovery' + type: DEPENDENT + key: dell.server.controller.battery.discovery + delay: '0' + description: 'Discovery of battery controllers.' + item_prototypes: + - uuid: c7a05323c5164204a981f52401e0d11a + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.controller.battery.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.batteryControllers[?(@.id == "{#ID}")].status.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: d46b6bd00f5748a48c707d3982047b88 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + name: 'Dell R820: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 0a59fa4da096415db825894138df0025 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.controller.battery.status[{#ID}],)=2' + name: 'Dell R820: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#BATTERY_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.batteryControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 2d92d68ee5664fe7b49cd54cba30a83a + name: 'FAN discovery' + type: DEPENDENT + key: dell.server.fan.discovery + delay: '0' + description: 'Discovery of FAN sensors.' + item_prototypes: + - uuid: 9f91ed79a8874401acbada3acfd093fc + name: 'Fan [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.fan.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: fan + - tag: component + value: raw + - uuid: 3c51a997d60c4a019baa7a38ea84cd78 + name: 'Fan [{#SENSOR_NAME}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + delay: '0' + units: '!rpm' + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + - uuid: 66b4d1db39264237ba7c1c87a9b2a28f + name: 'Fan [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 84c7300a4b7b46f2996e053ee52694cd + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + name: 'Dell R820: Fan [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 1ee66cb1005b433d89e4c0154d7f0d57 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=2' + name: 'Dell R820: Fan [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: Fan [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 17eb03f7bdb746abb5f395ea4383d669 + name: 'Dell R820: Fan [{#SENSOR_NAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.fan + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8075955b6a8c4843b038c6a91f792ca5 + name: 'Network interface discovery' + type: DEPENDENT + key: dell.server.net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: 8c317b576a2246ea9b0f25ca81bdb06b + name: 'Interface [{#IFNAME}]: Get interface' + type: SCRIPT + key: 'dell.server.net.if.get[{#IFNAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Get metrics', params); + + const keys = [ + { + 'name': 'linkStatus', + 'path': 'LinkStatus' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'state', + 'path': 'Status.State' + }, + { + 'name': 'linkSpeed', + 'path': 'CurrentLinkSpeedMbps' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a network interface.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: network + - tag: component + value: raw + - uuid: 7ca5dc897e314299bf61bf73c961ca3a + name: 'Interface [{#IFNAME}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.health[{#IFNAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 8a86d396b76f46bc808d83448dd02cdb + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + name: 'Dell R820: Interface [{#IFNAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 2f68a365826948779303dccd91bf253a + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.health[{#IFNAME}],)=2' + name: 'Dell R820: Interface [{#IFNAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: Interface [{#IFNAME}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 606f493ca932439098ae259d3104548a + name: 'Interface [{#IFNAME}]: Speed' + type: DEPENDENT + key: 'dell.server.net.if.speed[{#IFNAME}]' + delay: '0' + units: bps + description: 'The network port current link speed.' + preprocessing: + - type: JSONPATH + parameters: + - $.linkSpeed + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: 288409760c3d4c72bf6219bb05f2fc56 + name: 'Interface [{#IFNAME}]: State' + type: DEPENDENT + key: 'dell.server.net.if.state[{#IFNAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: dabbf5d3e77b48e08653bc626905479a + name: 'Interface [{#IFNAME}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#IFNAME}]' + delay: '0' + description: 'The status of the link between this port and its link partner. Possible values: Down, Up, null.' + valuemap: + name: 'Network interface status' + preprocessing: + - type: JSONPATH + parameters: + - $.linkStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'null': 1, + 'Down': 2, + 'Up': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 29836643e02f466298f610b4a4a6596c + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.status[{#IFNAME}],)=2 and last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.status[{#IFNAME}],)=3 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R820: Interface [{#IFNAME}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down (2). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down (2). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces). + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ab33e9a5cd6448eca97119bc6bf1e361 + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.status[{#IFNAME}],)<2 and last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.net.if.status[{#IFNAME}],)>=2 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R820: Interface [{#IFNAME}]: Link status issue' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Null (1) or Unknown (0). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Null (1) or Unknown (0). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 04c75b6bfaf14608a0845c313829f08f + name: 'Dell R820: Interface [{#IFNAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: 'dell.server.net.if.speed[{#IFNAME}]' + master_item: + key: dell.server.net.iface.get + lld_macro_paths: + - lld_macro: '{#IFNAME}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: bace8989f0cb4c78ae29e97b3924252f + name: 'Physical disk discovery' + type: DEPENDENT + key: dell.server.physicaldisk.discovery + delay: '0' + description: 'Discovery of physical disks.' + item_prototypes: + - uuid: 670b05a9f8e847ea9830d34361c3f0e2 + name: 'Physical disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get physical disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'sn', + 'path': 'SerialNumber' + }, + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'mediaType', + 'path': 'MediaType' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a physical disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: physicaldisk + - tag: component + value: raw + - tag: component + value: storage + - uuid: b28af532e0ae45f3ad0686d19883de17 + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The type of media contained in this drive. Possible values: HDD, SSD, SMR, null.' + preprocessing: + - type: JSONPATH + parameters: + - $.mediaType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: da824a525cbe42f99349edaf58152683 + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model number of the drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 88216fac6b85454ea9090de8b422387b + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.sn + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: abc54d3b7d044d7cb58ae291723f7a50 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#1)<>last(/DELL PowerEdge R820 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#2) and length(last(/DELL PowerEdge R820 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]))>0' + name: 'Dell R820: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R820: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bec5cacf8b964b7bb4f2c1761c1d1fbb + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size, in bytes, of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 7fe8e6eccc4f4e76bded3c5f698164f3 + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[{#DISK_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 4fe34ae6c61a4b18b86a60d6ed309b40 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + name: 'Dell R820: Physical disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: fc7eea49256c4b748a22c36c66b00026 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=2' + name: 'Dell R820: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: Physical disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 7f948b79dcd84f9798a77c9643cf87c9 + name: 'Dell R820: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.physicalDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 491a0445cf254e94a875546569dc99c8 + name: 'PSU discovery' + type: DEPENDENT + key: dell.server.psu.discovery + delay: '0' + description: 'Discovery of PSU sensors.' + item_prototypes: + - uuid: a8a9fca249894612a8b07d8ed0129ab0 + name: 'Power supply [{#SENSOR_NAME}]: Current sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.current.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.current.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 4f0515fb0dfd46c7b3685a7b3ecbb81d + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + name: 'Dell R820: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: f6fa16c7a2c7455b9acde6539ffec62c + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=2' + name: 'Dell R820: Power supply [{#SENSOR_NAME}]: Current sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: e3ac9503e64b4c149e1bec0a69101102 + name: 'Power supply [{#SENSOR_NAME}]: Current' + type: DEPENDENT + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: A + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.current.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: current + - tag: component + value: psu + - uuid: 2e57438cee814c6dba1fe244e85b50af + name: 'Power supply [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.psu.[?(@.name == ''{#SENSOR_NAME}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: psu + - tag: component + value: raw + - uuid: c733c7f6f35e40618037aa50ba98f294 + name: 'Power supply [{#SENSOR_NAME}]: Voltage sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 1602fd8e39654e5fb06cdf958a47cc7c + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + name: 'Dell R820: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: d7a5a00dc1794dcfbd4dba41cc0ab9e2 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=2' + name: 'Dell R820: Power supply [{#SENSOR_NAME}]: Voltage sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: beebdfb94e564585a2a031828bc0ad28 + name: 'Power supply [{#SENSOR_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + - tag: component + value: voltage + graph_prototypes: + - uuid: 79887275746b4d7686e7204e0be5f4e2 + name: 'Dell R820: Power supply [{#SENSOR_NAME}]: Current' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + - uuid: 0687e35b0de04d9d87ade4b4c9e05ff6 + name: 'Dell R820: Power supply [{#SENSOR_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#SENSOR_NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.psu + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 12273df317b64c15b62f5e1fe8a11c13 + name: 'Temperature discovery' + type: DEPENDENT + key: dell.server.temp.discovery + delay: '0' + description: 'Discovery of temperature sensors.' + item_prototypes: + - uuid: c011ede250b34a08ba7b8be1e5116592 + name: 'Probe [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.temperature.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: raw + - tag: component + value: temperature + - uuid: 2addb92ba4494c5e9372d13123de9b90 + name: 'Probe [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: e7cb237f1bdd48dfb1d4dad059a192ab + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + name: 'Dell R820: Probe [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 8edc7d146dd3428ea41de5f4c6de3299 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=2' + name: 'Dell R820: Probe [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: Probe [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: efc408f9598044aa88c70a98b5cc4462 + name: 'Probe [{#SENSOR_NAME}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: °C + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: 1575af71deae4faaacf2927b8a06df80 + name: 'Dell R820: Probe [{#SENSOR_NAME}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.temperature + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: bbc9622129f24600838a85f965bac854 + name: 'Virtual disk discovery' + type: DEPENDENT + key: dell.server.virtualdisk.discovery + delay: '0' + description: 'Discovery of virtual disks.' + item_prototypes: + - uuid: 7e81a110ef36478b86cec8ff56700755 + name: 'Virtual disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get virtual disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + }, + { + 'name': 'status', + 'path': 'Status.State' + }, + { + 'name': 'raidStatus', + 'path': 'Oem.Dell.DellVirtualDisk.RaidStatus' + }, + { + 'name': 'readCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.ReadCachePolicy' + }, + { + 'name': 'writeCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.WriteCachePolicy' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a virtual disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - tag: component + value: virtualdisk + - uuid: 390e9960559a4b9eb6460e6af7940e7b + name: 'Virtual disk [{#DISK_NAME}]: RAID status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}]' + delay: '0' + description: 'This property represents the RAID specific status. Possible values: Blocked, Degraded, Failed, Foreign, Offline, Online, Ready, Unknown, null.' + valuemap: + name: 'Virtual disk RAID status' + preprocessing: + - type: JSONPATH + parameters: + - $.raidStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Blocked': 1, + 'Degraded': 2, + 'Failed': 3, + 'Foreign': 4, + 'Offline': 5, + 'Unknown': 6, + 'null': 7, + 'Ready': 8, + 'Online': 9, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 0fb5bb942b2c499ca4a7a14a2f81866f + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}],)<8' + name: 'Dell R820: Virtual disk [{#DISK_NAME}]: RAID status not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the disk for faults.' + tags: + - tag: scope + value: availability + - uuid: a7cfd4be1b294e79b483735b8352d949 + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the read cache policy setting for the Volume. Possible values: ReadAhead, NoReadAhead, AdaptiveReadAhead.' + valuemap: + name: 'Virtual disk read policy' + preprocessing: + - type: JSONPATH + parameters: + - $.readCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'NoReadAhead': 1, + 'ReadAhead': 2, + 'AdaptiveReadAhead': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: c02af80164794e95816817510097619d + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size in bytes of this Volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: ea61949505a7409a8f4efff97ae67b57 + name: 'Virtual disk [{#DISK_NAME}]: Current state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[{#DISK_NAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 747677c63d7e4cfca3420a14c862d9b1 + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[{#DISK_NAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: f81719285f6f41a19603b1f29439a701 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + name: 'Dell R820: Virtual disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: fb620d2cfe0045ee83c57f9699bf25f3 + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=2' + name: 'Dell R820: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: Virtual disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: d5e5cf0f065f4f5ba5f0edbf3e222417 + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the write cache policy setting for the Volume. Possible values: WriteThrough, WriteBack, ProtectedWriteBack, UnprotectedWriteBack.' + valuemap: + name: 'Virtual disk write policy' + preprocessing: + - type: JSONPATH + parameters: + - $.writeCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'WriteThrough': 1, + 'WriteBack': 2, + 'ProtectedWriteBack': 3, + 'UnprotectedWriteBack': 4, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: 759e99496b4644ce9606d4c9cc5f7b16 + name: 'Dell R820: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.virtualDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.HTTP.API.PASSWORD}' + type: SECRET_TEXT + description: 'The Dell iDRAC user password.' + - macro: '{$DELL.HTTP.API.URL}' + value: '' + description: 'The Dell iDRAC Redfish API URL in the format `://:`.' + - macro: '{$DELL.HTTP.API.USER}' + value: '' + description: 'The Dell iDRAC username.' + - macro: '{$DELL.HTTP.CPU.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.CPU.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.HTTP.IO.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about IO utilization.' + - macro: '{$DELL.HTTP.IO.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about IO utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about memory utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about memory utilization.' + - macro: '{$DELL.HTTP.PROXY}' + description: 'Set an HTTP proxy for Redfish API requests if needed.' + - macro: '{$DELL.HTTP.REQUEST.TIMEOUT}' + value: 10s + description: 'Set the timeout for HTTP requests.' + - macro: '{$DELL.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + - macro: '{$DELL.HTTP.SYS.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about SYS utilization.' + - macro: '{$DELL.HTTP.SYS.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about SYS utilization.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "DELL PowerEdge", e.g. {$HTTP.TLS.VERIFY:"DELL PowerEdge"}.' + dashboards: + - uuid: a257ca606b194b4d848997f36e39a320 + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: gauge + name: 'CPU utilization' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: CPU + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.util.cpu + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'Memory utilization' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: MEM + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.util.mem + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'I/O utilization' + 'y': '6' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: I/O + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.util.io + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'SYS utilization' + 'y': '9' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: SYS + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.util.sys + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Redfish API' + x: '18' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Redfish API' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by HTTP' + key: 'net.tcp.service[https]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '18' + 'y': '3' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.hw.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + x: '18' + 'y': '6' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.hw.serialnumber + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '18' + 'y': '9' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.hw.firmware + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'System health' + x: '45' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.status + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '2' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Power supply*Voltage' + - type: STRING + name: items.1 + value: 'Power supply*Current' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Interface speed' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Speed' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAABA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '10000000' + - type: STRING + name: thresholds.2.color + value: FF980E + - type: STRING + name: thresholds.2.threshold + value: '100000000' + - type: STRING + name: thresholds.3.color + value: 069C56 + - type: STRING + name: thresholds.3.threshold + value: '1000000000' + - type: STRING + name: thresholds.4.color + value: 2196F3 + - type: STRING + name: thresholds.4.threshold + value: '10000000000' + - type: STRING + name: thresholds.5.color + value: 6C00D9 + - type: STRING + name: thresholds.5.threshold + value: '25000000000' + - type: STRING + name: thresholds.6.color + value: D900A6 + - type: STRING + name: thresholds.6.threshold + value: '40000000000' + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + valuemaps: + - uuid: a9fd1db9128d4efca329941ff4f4d41b + name: 'Network interface status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: 'Null' + - value: '2' + newvalue: Down + - value: '3' + newvalue: Up + - uuid: 45c31886b41f4592bb87ffe940ce9fd8 + name: 'Redfish API availability' + mappings: + - value: '0' + newvalue: Unavailable + - value: '1' + newvalue: Available + - uuid: e8d3f0814cad4a2bba79231c1c8c0230 + name: 'Redfish status health' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: OK + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - uuid: d18e6f1b160f4ee3851b21cff3309d40 + name: 'Redfish status state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Enabled + - value: '2' + newvalue: Disabled + - value: '3' + newvalue: Absent + - value: '4' + newvalue: Deferring + - value: '5' + newvalue: InTest + - value: '6' + newvalue: Quiesced + - value: '7' + newvalue: StandbyOffline + - value: '8' + newvalue: StandbySpare + - value: '9' + newvalue: Starting + - value: '10' + newvalue: UnavailableOffline + - value: '11' + newvalue: Updating + - uuid: 82e0dc0cd4714fb1b3894adff630b0d8 + name: 'Virtual disk RAID status' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: Blocked + - value: '2' + newvalue: Degraded + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Foreign + - value: '5' + newvalue: Offline + - value: '6' + newvalue: Unknown + - value: '7' + newvalue: 'Null' + - value: '8' + newvalue: Ready + - value: '9' + newvalue: Online + - uuid: 3c9e776333294c79a975b715fab7a35d + name: 'Virtual disk read policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: NoReadAhead + - value: '2' + newvalue: ReadAhead + - value: '3' + newvalue: AdaptiveReadAhead + - uuid: 916622b4d50b4304b95888c9fc49149e + name: 'Virtual disk write policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: WriteThrough + - value: '2' + newvalue: WriteBack + - value: '3' + newvalue: ProtectedWriteBack + - value: '4' + newvalue: UnprotectedWriteBack + graphs: + - uuid: e4b1e16f35f5445dad9d49876c8def60 + name: 'Dell R820: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.util.cpu + - uuid: 81516d7d799044fb83b166ecc7c280f8 + name: 'Dell R820: IO utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.util.io + - uuid: c8efb88c2b654975bfba21c5a292ee75 + name: 'Dell R820: Memory utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.util.mem + - uuid: 05822555cf8e4f33a559d1973e9776bb + name: 'Dell R820: SYS utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by HTTP' + key: dell.server.util.sys diff --git a/DELL_PowerEdge_R820_by_SNMP.yaml b/DELL_PowerEdge_R820_by_SNMP.yaml new file mode 100644 index 0000000..68fa048 --- /dev/null +++ b/DELL_PowerEdge_R820_by_SNMP.yaml @@ -0,0 +1,2608 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: d41c5d0fa91545d68cced1b5dabe4bf1 + template: 'DELL PowerEdge R820 by SNMP' + name: 'DELL PowerEdge R820 by SNMP' + description: | + Template for DELL PowerEdge R820 servers with iDRAC version 7 and later. + + MIBs used: + HOST-RESOURCES-MIB + IDRAC-MIB-SMIv2 + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: c3bd795316314dbf9cf1c21751358ba8 + name: 'SNMP walk RAID controllers table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2]' + key: dell.server.array.controller.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::controllerTable`.' + tags: + - tag: component + value: raw + - uuid: 0d7f8134d9934125b0bde2e0392479e8 + name: 'SNMP walk Battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21]' + key: dell.server.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::batteryTable`.' + tags: + - tag: component + value: raw + - uuid: cf0d3ec990d94f949157ea9c22ba37b0 + name: 'BIOS version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.4.300.50.1.8.1.1]' + key: dell.server.bios.version + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the version name of the system BIOS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: ca6fac1eee9f41d88df43b4e870e8e84 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'dell.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Name and contact information of the contact person for the node. If not provided, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: f146e9f2165d441a9a68091f750f20c0 + name: 'SNMP walk Processor device tables' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.30.1.26,1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.1]' + key: dell.server.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Processor Device Status Table `IDRAC-MIB-SMIv2::processorDeviceTable` and `IDRAC-MIB-SMIv2::processorDeviceStatusTable`.' + tags: + - tag: component + value: raw + - uuid: b738b9531e5049df8c31f1c37868f34f + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'dell.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating system, and networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 63fa498031104fa8a418570334efe139 + name: 'SNMP walk Physical disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11]' + key: dell.server.disk.physical.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Physical Disk Table `IDRAC-MIB-SMIv2::physicalDiskTable`.' + tags: + - tag: component + value: raw + - uuid: 1c500e036b534567a62d1c9a2f912f43 + name: 'SNMP walk Virtual disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4]' + key: dell.server.disk.virtual.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Virtual Disk Table `IDRAC-MIB-SMIv2::virtualDiskTable`.' + tags: + - tag: component + value: raw + - uuid: 00d4d1232f13434eb7ff10eb025da6c3 + name: 'SNMP walk Cooling device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.12.1.5,1.3.6.1.4.1.674.10892.5.4.700.12.1.8,1.3.6.1.4.1.674.10892.5.4.700.12.1.7,1.3.6.1.4.1.674.10892.5.4.700.12.1.6]' + key: dell.server.fan.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Cooling Device Table `IDRAC-MIB-SMIv2::coolingDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 7a4e5160d533407194d63d90f93352bd + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.1.8.0]' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the firmware version of a remote access card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: bf0330b9e03c40b3a8aa4f799ab4d677 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#1)<>last(/DELL PowerEdge R820 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#2) and length(last(/DELL PowerEdge R820 by SNMP/dell.server.hw.firmware[racFirmwareVersion]))>0' + name: 'Dell R820: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 70068169a3b74328a803fcd2d69954ee + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.12.0]' + key: 'dell.server.hw.model[systemModelName]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the model name of the system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: a3881855713847d286c3acd0de95a416 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.2.0]' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the service tag of the system. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 85fc427d143b4bd784fc851464e30c60 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#1)<>last(/DELL PowerEdge R820 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#2) and length(last(/DELL PowerEdge R820 by SNMP/dell.server.hw.serialnumber[systemServiceTag]))>0' + name: 'Dell R820: Device has been replaced' + event_name: 'Dell R820: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2308ce0f18f249258d3b05a5d08e6a83 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.5.0]' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + trends: '0' + units: uptime + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the power-up time of the system in seconds. + tags: + - tag: component + value: system + - uuid: 286a4143fb464b31bb5cd581e7458959 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'dell.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., 'telephone closet, 3rd floor'). If the location is unknown, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 190388551b5144c49a4afefe0347cdc0 + name: 'Memory, total size' + type: CALCULATED + key: dell.server.memory.size.total + units: B + params: 'sum(last_foreach(//dell.server.memory.size[*]))' + description: 'Total memory amount on the device.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + triggers: + - uuid: d7121d536e9e472e84ed8521c66dc63b + expression: 'change(/DELL PowerEdge R820 by SNMP/dell.server.memory.size.total)>0' + name: 'Dell R820: Memory amount has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 6c3ef6e5744649d7ba41df2748c349d8 + name: 'SNMP walk Memory device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1]' + key: dell.server.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Memory Device Table `IDRAC-MIB-SMIv2::memoryDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: eccac199b19143c0b3e275d5dae16729 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'dell.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 34d5734804fd4e28960e76d85b26230b + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.name[sysName],#1)<>last(/DELL PowerEdge R820 by SNMP/dell.server.name[sysName],#2) and length(last(/DELL PowerEdge R820 by SNMP/dell.server.name[sysName]))>0' + name: 'Dell R820: System name has changed' + event_name: 'Dell R820: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 868e51dcc9114c7991a1be641a0b634d + name: 'SNMP walk Network device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1, 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1]' + key: dell.server.net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Network Device Table `IDRAC-MIB-SMIv2::networkDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 55193d35960a410abf32f903b3b04406 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.6.3.10.2.1.3.0]' + key: 'dell.server.net.uptime[snmpEngineTime]' + trends: '0' + units: uptime + description: | + MIB: SNMP-FRAMEWORK-MIB + The number of seconds since the value of the snmpEngineBoots object last changed. + tags: + - tag: component + value: system + - uuid: 3561ed916061452e8597b8265c7305f3 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'dell.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 08921851e08f41859daf5cfe748eaff6 + name: 'SNMP walk Power supply table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.12.1.5,1.3.6.1.4.1.674.10892.5.4.600.12.1.8]' + key: dell.server.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Power Supply Table `IDRAC-MIB-SMIv2::powerSupplyTable`.' + tags: + - tag: component + value: raw + - uuid: 148a893a9b1540619793d3608ff9fa29 + name: 'SNMP walk Temperature sensor table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.20.1.1,1.3.6.1.4.1.674.10892.5.4.700.20.1.8,1.3.6.1.4.1.674.10892.5.4.700.20.1.6,1.3.6.1.4.1.674.10892.5.4.700.20.1.5]' + key: dell.server.sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Temperature Probe Table `IDRAC-MIB-SMIv2::temperatureProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 3924d9aae3ac44b1b14d9c19204cbe2c + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.1.0]' + key: 'dell.server.status[globalSystemStatus]' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 4109ee28d6d54d568965c21fc147791c + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.DISASTER}' + name: 'Dell R820: System is in unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 126c5d57fecc4785b1f620c413c5dd12 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + name: 'Dell R820: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for errors.' + tags: + - tag: scope + value: availability + - uuid: da0537de8fdb4cff88cd19ec031cf562 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.WARN}' + name: 'Dell R820: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R820: System status is in critical state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: availability + - uuid: 168398f2c797467fb7830dce8a9510b9 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.6.0]' + key: 'dell.server.sw.os[systemOSName]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the name of the operating system that the host is running. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: b6a26d0134054b75b88dbcfcd3dc8d3c + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sw.os[systemOSName],#1)<>last(/DELL PowerEdge R820 by SNMP/dell.server.sw.os[systemOSName],#2) and length(last(/DELL PowerEdge R820 by SNMP/dell.server.sw.os[systemOSName]))>0' + name: 'Dell R820: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possibly, the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 35bc6ebfbb5f48ac93941d91b197dec0 + name: 'SNMP walk System battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1,1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1]' + key: dell.server.system.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of System Battery Table `IDRAC-MIB-SMIv2::systemBatteryTable`.' + tags: + - tag: component + value: raw + - uuid: 89a3a5f1edff45cba03191752f4c5935 + name: 'SNMP walk Voltage probe table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1]' + key: dell.server.voltage.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Voltage Probe Table `IDRAC-MIB-SMIv2::voltageProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 2f33eafc892b487dba32aa46823eafd4 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other `snmptrap` items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 5dd178b40f28436db3c71a1dd50b8ea8 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 81826abcb02d45b089024c47892bc52f + expression: 'max(/DELL PowerEdge R820 by SNMP/zabbix[host,snmp,available],{$DELL.SNMP.TIMEOUT})=0' + name: 'Dell R820: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: dd11819fb5e34d60bd8d9c7b658a79ac + name: 'Array controller discovery' + type: DEPENDENT + key: array.discovery + delay: '0' + description: 'Array controller discovery.' + item_prototypes: + - uuid: 259703858717407585f403d886114af5 + name: 'Controller [{#CNTLR_NAME}]: Model' + type: DEPENDENT + key: 'dell.server.hw.diskarray.model[controllerName.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The controller's name as represented in Storage Management. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: 1aed396b98904eb49c2a4089841dac10 + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the controller itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: dfe26fe9fe2d4cbfa48ac3e65fee1b95 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + name: 'Dell R820: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R820: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + - uuid: 2d8e50f7be4e49da9c3e014393c07333 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + name: 'Dell R820: Controller [{#CNTLR_NAME}]: Unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 9e70c7098eb24c62926abc8a88d66643 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + name: 'Dell R820: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R820: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + - name: 'Dell R820: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.controller.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38 + - '0' + - '{#CNTLR_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 161ef832d536461f90f47e914cdcbe44 + name: 'Battery discovery' + type: DEPENDENT + key: battery.discovery + delay: '0' + description: 'Battery discovery.' + item_prototypes: + - uuid: acea5c462a964f0fb371db6a5fbb7bbb + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.battery.status[batteryState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Current state of battery. + Possible values: + 1: The current state could not be determined. + 2: The battery is operating normally. + 3: The battery has failed and needs to be replaced. + 4: The battery temperature is high or charge level is depleting. + 5: The battery is missing or not detected. + 6: The battery is undergoing the re-charge phase. + 7: The battery voltage or charge level is below the threshold. + valuemap: + name: 'IDRAC-MIB-SMIv2::batteryState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.battery.walk + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: cdc3002046db4124ab5396a832a31d33 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + name: 'Dell R820: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 0e80311a3cf04eb3b2119f4accbe8378 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])<>{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + name: 'Dell R820: Battery [{#BATTERY_NAME}]: Not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R820: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + - name: 'Dell R820: Battery [{#BATTERY_NAME}]: Warning state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + tags: + - tag: scope + value: availability + - uuid: aa9dc7776f844a6fb414f3f1ec6df936 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + name: 'Dell R820: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R820: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#BATTERY_NUM}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1 + - '0' + - '{#BATTERY_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: f7291777ed604b249f0ff1dcb5e824e9 + name: 'CPU status discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: 'CPU status discovery.' + item_prototypes: + - uuid: 550842e315774bd9b47b5d463f5a6f0e + name: 'CPU [{#CPU_FQDD}]: State' + type: DEPENDENT + key: 'dell.server.cpu.state[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the reading of the processor device status probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 4a936613afb742aba3008630245d1a4b + expression: 'bitand(last(/DELL PowerEdge R820 by SNMP/dell.server.cpu.state[cpu.{#SNMPINDEX}],#1),128)=0' + name: 'Dell R820: CPU [{#CPU_FQDD}]: Reading error' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU probe reading flag is not `processorPresent`. + tags: + - tag: scope + value: availability + - uuid: 0082b3b5a4a14afca309c643a82d9ba0 + name: 'CPU [{#CPU_FQDD}]: Status' + type: DEPENDENT + key: 'dell.server.cpu.status[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the status of the processor device status probe. This status will be joined into the `processorDeviceStatus` attribute.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 75a71a22dd4e4e18a6361475e951138d + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.cpu.status[cpu.{#SNMPINDEX}],#1)<>3' + name: 'Dell R820: CPU [{#CPU_FQDD}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.30.1.26 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 9b755a619c074bd1a99737f1fbf97708 + name: 'Fan discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + filter: + conditions: + - macro: '{#TYPE}' + value: '3' + formulaid: A + description: 'Fan discovery.' + item_prototypes: + - uuid: c505c8858ffc4cbca8f1719b93d6f0a6 + name: 'Fan [{#FAN_DESCR}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + delay: '0' + units: rpm + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a cooling device of a subtype other than `coolingDeviceSubTypeIsDiscrete`. + When the value for `coolingDeviceSubType` is other than `coolingDeviceSubTypeIsDiscrete`, the value returned for this attribute is the speed in RPM or the "OFF/ON" value of the cooling device. + When the value for `coolingDeviceSubType` is `coolingDeviceSubTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + - uuid: bcf401ebc1294bcab14bc1c0003f3fb7 + name: 'Fan [{#FAN_DESCR}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#FAN_DESCR}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the cooling device. + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 48b46c8badaa486da4cbb4815bebd5d8 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + name: 'Dell R820: Fan [{#FAN_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: availability + - uuid: ad5ee26a70f0461d90ff13f2b4cc022b + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R820: Fan [{#FAN_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'Dell R820: Fan [{#FAN_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 0fb616bc58b8480893047514cf7425bf + name: 'Dell R820: Fan [{#FAN_DESCR}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + master_item: + key: dell.server.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.5 + - '0' + - '{#FAN_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.8 + - '0' + - '{#TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 5909e149acca4eddad89d3a43cdec880 + name: 'Memory discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: 'Memory discovery.' + item_prototypes: + - uuid: 6eefc7d8c0d14f96bed7d77ea2bb6022 + name: 'Memory [{#SNMPVALUE}]: Size' + type: DEPENDENT + key: 'dell.server.memory.size[{#SNMPVALUE}]' + delay: '0' + units: B + description: 'This attribute defines the size, in KB, of the memory device. Zero indicates no memory installed; 2,147,483,647 indicates an unknown memory size.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + - uuid: 4cdb3a43a0d847318269db509abb5926 + name: 'Memory [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.memory.status[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the memory device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 6fdceebb428e4961bc38c0f089eb8c16 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.memory.status[{#SNMPVALUE}],#1)<>3' + name: 'Dell R820: Memory [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Memory status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: ec7f3a6a75da48d69a5178a3acdeec2d + name: 'Network interface discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: 71c070e0a1c7471989f2cebb89f1adcf + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.link[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the connection status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: df1c4ad1e9a1481db69cee6ca8651674 + expression: '{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1 and last(/DELL PowerEdge R820 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>1 and last(/DELL PowerEdge R820 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>last(/DELL PowerEdge R820 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)=1 or {$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=0' + name: 'Dell R820: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down. + 2. `{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 15743aecf8f046559094380f25617c03 + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 386e1c9194904163b6e42030e4ae357b + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.net.if.status[{#NIC_FQDD}],#1)<>3' + name: 'Dell R820: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Network interface status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NIC_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1 + - '0' + - '{#NIC_MAC}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1 + - '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: df58f76c952a4dbf9556490168bd39de + name: 'Physical disk discovery' + type: DEPENDENT + key: physicaldisk.discovery + delay: '0' + description: 'Physical disk discovery.' + item_prototypes: + - uuid: 0d6e0fed749445afbe8a4e392e12abbe + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[physicalDiskMediaType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The media type of the physical disk. Possible Values: + 1: The media type could not be determined. + 2: Hard Disk Drive (HDD). + 3: Solid State Drive (SSD). + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 6138dd1248e24a3d979947046e161a16 + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[physicalDiskProductID.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The model number of the physical disk. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 838834fd85bb4abc888963e3d6633ac9 + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The physical disk's unique identification number from the manufacturer. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: ef809a7388a141009f0e955d2fd74913 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#1)<>last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#2) and length(last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]))>0' + name: 'Dell R820: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R820: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 43e78bf47b4d424b82ee69c5114fb002 + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the physical disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: d5a1505bdab14808a818c3337010cdce + name: 'Physical disk [{#DISK_NAME}]: S.M.A.R.T. Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Indicates whether the physical disk has received a predictive failure alert. + valuemap: + name: 'IDRAC-MIB-SMIv2::BooleanType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: ef5b3157e92f4cd98b0b0ce19777a54e + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'Dell R820: Physical disk [{#DISK_NAME}]: S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'Dell R820: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + - uuid: 71d28a0808384915bf1f08bb8cdad3f6 + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the physical disk itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 8f80413f2f694cd7a293b9345872c99a + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + name: 'Dell R820: Physical disk [{#DISK_NAME}]: Failed state' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: 07beb08e93ba48aaa57d989d947a430e + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + name: 'Dell R820: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'Dell R820: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R820 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 7d235725b2e24ef3843ec59f597e26c7 + name: 'Dell R820: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.physical.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 1f4854fdfc9b4c1683a9c3b023373a83 + name: 'PSU discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'PSU discovery.' + item_prototypes: + - uuid: fa618cb76eeb4f3495fe6dfa5f516104 + name: 'Power supply [{#PSU_DESCR}]: State' + type: DEPENDENT + key: 'dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the status of the power supply. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.psu.walk + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 260129e48fe24ba8af0b628c303d23a3 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + name: 'Dell R820: Power supply [{#PSU_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: availability + - uuid: 97957af2d68048879527882edf8bfe7e + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + name: 'Dell R820: Power supply [{#PSU_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'Dell R820: Power supply [{#PSU_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.5 + - '0' + - '{#PSU_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 05262c1eb7af4bdfb9be4b87eb67c573 + name: 'System battery discovery' + type: DEPENDENT + key: system.battery.discovery + delay: '0' + description: 'System battery discovery.' + item_prototypes: + - uuid: 7c35f1486da64a2880bdd9cafc0b4cf4 + name: 'System battery [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.system.battery[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the battery.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.battery.walk + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: 77dfa584df524f6c9e5bfef9f44012f7 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.system.battery[{#SNMPVALUE}],#1)<>3' + name: 'Dell R820: System battery [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + System battery status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.system.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 43c9a9c046b943e7aa257a86540aae22 + name: 'Temperature discovery' + type: DEPENDENT + key: temp.discovery + delay: '0' + description: 'Temperature sensor discovery.' + item_prototypes: + - uuid: 24139838c42248f3b9d7f8244daacc0e + name: 'Probe [{#SENSOR_LOCALE}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the temperature probe. + Possible values: + other(1), -- probe status is not one of the following: + unknown(2), -- probe status is unknown (not known or monitored) + ok(3), -- probe is reporting a value within the thresholds + nonCriticalUpper(4), -- probe has crossed the upper noncritical threshold + criticalUpper(5), -- probe has crossed the upper critical threshold + nonRecoverableUpper(6), -- probe has crossed the upper non-recoverable threshold + nonCriticalLower(7), -- probe has crossed the lower noncritical threshold + criticalLower(8), -- probe has crossed the lower critical threshold + nonRecoverableLower(9), -- probe has crossed the lower non-recoverable threshold + failed(10) -- probe is not functional + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: bcc2ecc5b254457288547aacf59176eb + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + name: 'Dell R820: Probe [{#SENSOR_LOCALE}]: Critical status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: c53be3b3a911410896fcd2e94bed62e1 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])<>{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + name: 'Dell R820: Probe [{#SENSOR_LOCALE}]: Not in optimal status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + manual_close: 'YES' + dependencies: + - name: 'Dell R820: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + - name: 'Dell R820: Probe [{#SENSOR_LOCALE}]: Warning status' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + tags: + - tag: scope + value: notice + - uuid: 365c6cbbee2440c2a62e4d5376058f0a + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R820: Probe [{#SENSOR_LOCALE}]: Warning status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R820: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R820 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + tags: + - tag: scope + value: availability + - uuid: ef279c5ff8694f28916f6bd0d9615089 + name: 'Probe [{#SENSOR_LOCALE}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a temperature probe of type other than `temperatureProbeTypeIsDiscrete`. + When the value for `temperatureProbeType` is other than `temperatureProbeTypeIsDiscrete`, the value returned for this attribute is the temperature that the probe is reading in Centigrade. + When the value for `temperatureProbeType` is `temperatureProbeTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: 17bc3aea55c443a2b04b1a23b8462e66 + name: 'Dell R820: Probe [{#SENSOR_LOCALE}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + master_item: + key: dell.server.sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.1 + - '0' + - '{#SENSOR_LOCALE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 871e0b2895a141aab83c71eb0cb181a8 + name: 'Virtual disk discovery' + type: DEPENDENT + key: virtualdisk.discovery + delay: '0' + description: 'Virtual disk discovery.' + item_prototypes: + - uuid: 57e6784821914279a1fe8d11f20ad66b + name: 'Virtual disk [{#DISK_NAME}]: Layout type' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.layout[virtualDiskLayout.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The virtual disk's RAID type. + Possible values: + 1: Not one of the following + 2: RAID-0 + 3: RAID-1 + 4: RAID-5 + 5: RAID-6 + 6: RAID-10 + 7: RAID-50 + 8: RAID-60 + 9: Concatenated RAID 1 + 10: Concatenated RAID 5 + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 882a140fafd340c8b888337c0ca051ad + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[virtualDiskReadPolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The read policy used by the controller for read operations on this virtual disk. + Possible values: + 1: No Read Ahead. + 2: Read Ahead. + 3: Adaptive Read Ahead. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 56a908b58aff4639b0b6a53911619746 + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the virtual disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: cba60a18965843dba5bdadfdabfb1b83 + name: 'Virtual disk [{#DISK_NAME}]: Operational state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[virtualDiskOperationalState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The state of the virtual disk when there are progressive operations ongoing. + Possible values: + 1: There is no active operation running. + 2: The virtual disk configuration has changed. The physical disks included in the virtual disk are being modified to support the new configuration. + 3: A Consistency Check (CC) is being performed on the virtual disk. + 4: The virtual disk is being initialized. + 5: BackGround Initialization (BGI) is being performed on the virtual disk. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 7daf3f6a7af6490688d9800b6542590f + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The current state of this virtual disk (which includes any member physical disks.) + Possible states: + 1: The current state could not be determined. + 2: The virtual disk is operating normally or optimally. + 3: The virtual disk has encountered a failure. Data on the disk is lost or is about to be lost. + 4: The virtual disk encountered a failure with one or all of the constituent redundant physical disks. + The data on the virtual disk might no longer be fault tolerant. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 194a88954cb543d6aabf8c42839d22b7 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + name: 'Dell R820: Virtual disk [{#DISK_NAME}]: Failed state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the virtual disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: a7f94854f30b420d9aa00cbab12d8418 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + name: 'Dell R820: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the virtual disk for warnings or errors.' + dependencies: + - name: 'Dell R820: Virtual disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + - uuid: e0b2638cf3dd4dd0809aa5b73101deea + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[virtualDiskWritePolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The write policy used by the controller for write operations on this virtual disk. + Possible values: + 1: Write Through. + 2: Write Back. + 3: Force Write Back. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: b129721d9c064bec908414d69fd6173c + name: 'Dell R820: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.virtual.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b84ca44320644f46919c9535da909782 + name: 'Voltage probe discovery' + type: DEPENDENT + key: voltage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + formulaid: A + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + formulaid: C + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Voltage probe discovery.' + item_prototypes: + - uuid: 2623885d4d204b3faae8037d1c1cc19b + name: 'Voltage probe [{#VPROBE_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.voltage.status[{#VPROBE_NAME}]' + delay: '0' + description: 'This attribute defines the status of the voltage probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + trigger_prototypes: + - uuid: b2c7a3c6ccc74b24a1261171038ef059 + expression: 'last(/DELL PowerEdge R820 by SNMP/dell.server.voltage.status[{#VPROBE_NAME}])<>3' + name: 'Dell R820: Voltage probe [{#VPROBE_NAME}]: Status is not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device''s voltage.' + tags: + - tag: scope + value: availability + - uuid: 34887c269ced46e9bcf6108b83f0338f + name: 'Voltage probe [{#VPROBE_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'This attribute defines the reading for a voltage probe.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + graph_prototypes: + - uuid: 37267e51adc1418c8f14ef391f719340 + name: 'Dell R820: Voltage probe [{#VPROBE_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + master_item: + key: dell.server.voltage.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#VPROBE_NAME}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1 + - '0' + - '{#VPROBE_TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + value: '^.*Voltage.*$' + description: 'Sets the regex string of voltage probe names to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe names to ignore in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + value: 18|16 + description: 'Sets the regex string of voltage probe types to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe types to ignore in discovery.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + value: '3' + description: 'The critical status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + value: '2' + description: 'The OK status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + value: '5' + description: 'The critical status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + value: '6' + description: 'The disaster status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.SMART.STATUS.FAIL}' + value: '1' + description: 'The critical S.M.A.R.T status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"critical"}' + value: '5' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + value: '6' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + value: '10' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.CRIT}' + value: '5' + description: 'The critical status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.DISASTER}' + value: '6' + description: 'The disaster status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.WARN}' + value: '4' + description: 'The warning status of health for the trigger expression.' + - macro: '{$DELL.SNMP.IFCONTROL}' + value: '1' + description: 'The link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"critical"}' + value: '5' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + value: '6' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + value: '3' + description: 'The OK status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP agent availability trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + value: '3' + description: 'The critical status of the virtual disk for the trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + value: '4' + description: 'The warning status of the virtual disk for the trigger expression.' + dashboards: + - uuid: 65209bf05b134cb2bc8e7e60e8bd747c + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: item + name: 'System health' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.status[globalSystemStatus]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '36' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.hw.model[systemModelName]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '36' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'NIC*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Voltage probe*Voltage' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Fan*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + valuemaps: + - uuid: 1a2c68f0f2384c0da7027981bd4bb5be + name: 'IDRAC-MIB-SMIv2::batteryState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Ready + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - value: '5' + newvalue: Missing + - value: '6' + newvalue: Charging + - value: '7' + newvalue: 'Below threshold' + - uuid: 045512ecd6b94fbab71dd17abf5b8f4b + name: 'IDRAC-MIB-SMIv2::BooleanType' + mappings: + - value: '0' + newvalue: ok + - value: '1' + newvalue: failed + - uuid: 8a60520959be4ec5aa525f637beb8472 + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: connected + - value: '2' + newvalue: disconnected + - value: '3' + newvalue: driverBad + - value: '4' + newvalue: driverDisabled + - value: '10' + newvalue: hardwareInitalizing + - value: '11' + newvalue: hardwareResetting + - value: '12' + newvalue: hardwareClosing + - value: '13' + newvalue: hardwareNotReady + - uuid: 82b2ff6e115d4d098ae1025547853b4b + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: 168707d69c984df4837638c72f103749 + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: 1f138e6846544243a2729b41be9a97aa + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: HDD + - value: '3' + newvalue: SSD + - uuid: 7ad96a534bc84f32afd6ae59011db2a0 + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + mappings: + - value: '1' + newvalue: internalError + - value: '2' + newvalue: thermalTrip + - value: '32' + newvalue: configurationError + - value: '128' + newvalue: processorPresent + - value: '256' + newvalue: processorDisabled + - value: '512' + newvalue: terminatorPresent + - value: '1024' + newvalue: processorThrottled + - uuid: 9d25c114ba8046f5b126be9111d95184 + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCriticalUpper + - value: '5' + newvalue: criticalUpper + - value: '6' + newvalue: nonRecoverableUpper + - value: '7' + newvalue: nonCriticalLower + - value: '8' + newvalue: criticalLower + - value: '9' + newvalue: nonRecoverableLower + - value: '10' + newvalue: failed + - uuid: e81dcef10a30448db51b9805ec60b863 + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: RAID-0 + - value: '3' + newvalue: RAID-1 + - value: '4' + newvalue: RAID-5 + - value: '5' + newvalue: RAID-6 + - value: '6' + newvalue: RAID-10 + - value: '7' + newvalue: RAID-50 + - value: '8' + newvalue: RAID-60 + - value: '9' + newvalue: 'Concatenated RAID 1' + - value: '10' + newvalue: 'Concatenated RAID 5' + - uuid: e9e9b851915747c4b608934cd1235bc5 + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + mappings: + - value: '1' + newvalue: 'Not applicable' + - value: '2' + newvalue: Reconstructing + - value: '3' + newvalue: Resynching + - value: '4' + newvalue: Initializing + - value: '5' + newvalue: 'Background init' + - uuid: 92115895f7b9477983c67012b111afb3 + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + mappings: + - value: '1' + newvalue: 'No Read Ahead' + - value: '2' + newvalue: 'Read Ahead' + - value: '3' + newvalue: 'Adaptive Read Ahead' + - uuid: 7573aa4192534f44863508890606f917 + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - uuid: c6d4cfe5cf8b43808dce81cc1bcc4be3 + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + mappings: + - value: '1' + newvalue: 'Write Through' + - value: '2' + newvalue: 'Write Back' + - value: '3' + newvalue: 'Force Write Back' + - uuid: c5660f822c4a4567888e7f98d3bfab13 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 75be35da1fa9433081562ce9c02af907 + expression: '(last(/DELL PowerEdge R820 by SNMP/dell.server.hw.uptime[systemPowerUpTime])>0 and last(/DELL PowerEdge R820 by SNMP/dell.server.hw.uptime[systemPowerUpTime])<10m) or (last(/DELL PowerEdge R820 by SNMP/dell.server.hw.uptime[systemPowerUpTime])=0 and last(/DELL PowerEdge R820 by SNMP/dell.server.net.uptime[snmpEngineTime])<10m)' + name: 'Dell R820: Host has been restarted' + event_name: 'Dell R820: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 28d29c2050784efa961c8c8a38195917 + name: 'Dell R820: Uptime' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + - sortorder: '1' + color: F63100 + item: + host: 'DELL PowerEdge R820 by SNMP' + key: 'dell.server.net.uptime[snmpEngineTime]' diff --git a/DELL_PowerEdge_R840_by_HTTP.yaml b/DELL_PowerEdge_R840_by_HTTP.yaml new file mode 100644 index 0000000..c2b6873 --- /dev/null +++ b/DELL_PowerEdge_R840_by_HTTP.yaml @@ -0,0 +1,3857 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 20147f00f92d4240aab0b70cf578c022 + template: 'DELL PowerEdge R840 by HTTP' + name: 'DELL PowerEdge R840 by HTTP' + description: | + Template for DELL PowerEdge R840 servers with iDRAC 8/9 firmware 4.32 and later and Redfish API enabled. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 7c99c4ba6e3643e5b4672aeb3ecbaa20 + name: 'Get array controller resources' + type: SCRIPT + key: dell.server.array.resources.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Controller', 'Discovery', params); + + const controllers = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage?$expand=.($levels=1)'), 'Members'); + + var arrControllerKeys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'slot', + 'path': 'Oem.Dell.DellController.PCISlot' + } + ]; + + var battControllerKeys = [ + { + 'name': 'id', + 'path': 'Oem.Dell.DellControllerBattery.Id' + }, + { + 'name': 'name', + 'path': 'Oem.Dell.DellControllerBattery.Name' + }, + { + 'name': 'status', + 'path': 'Oem.Dell.DellControllerBattery.PrimaryStatus' + } + ]; + + if (!Array.isArray(controllers)) { + throw 'Unexpected type for controllers.'; + } + + var buffer = { 'arrayControllers': [], 'batteryControllers': [] }; + + controllers.forEach(function (controller) { + if (controller['Id'].search('RAID') > -1) { + buffer['arrayControllers'].push(dell.extractData(controller, arrControllerKeys, true)); + buffer['batteryControllers'].push(dell.extractData(controller, battControllerKeys, true)); + } + }); + + return JSON.stringify(buffer); + description: 'Returns array controller resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 4f6df395e903468481990c9d2e6e9a21 + name: 'Get disks' + type: SCRIPT + key: dell.server.disks.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Discovery', params); + + const disks = dell.extractData(dell.executeRequest('/redfish/v1/Systems/System.Embedded.1/Storage'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'name', + 'path': 'Name' + } + ]; + + if (!Array.isArray(disks)) { + throw 'Unexpected type for disks.'; + } + + var buffer = { 'physicalDisks': [], 'virtualDisks': [] }; + + disks.forEach(function (disk) { + var requests = [{ 'usage': 'physicalDisks', 'path': '', 'target': 'Drives' }, { 'usage': 'virtualDisks', 'path': '/Volumes', 'target': 'Members' }]; + + requests.forEach(function (request) { + const disks = dell.extractData(dell.executeRequest(disk['@odata.id'] + request['path']), request['target']); + + if (!Array.isArray(disks) || disks.length <= 0) { + return; + } + + disks.forEach(function (drive) { + buffer[request['usage']].push(dell.extractData(dell.executeRequest(drive['@odata.id']), keys)); + }); + }); + }); + + return JSON.stringify(buffer); + description: 'Returns storage resources.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: b4b70f1a69fe4dc1a572d580f22134ba + name: 'Firmware version' + type: DEPENDENT + key: dell.server.hw.firmware + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the firmware version of a remote access card.' + preprocessing: + - type: JSONPATH + parameters: + - $.firmware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: d69a362c4ddb41afac0233aa5cbfe7f2 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.hw.firmware,#1)<>last(/DELL PowerEdge R840 by HTTP/dell.server.hw.firmware,#2) and length(last(/DELL PowerEdge R840 by HTTP/dell.server.hw.firmware))>0' + name: 'Dell R840: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6369c5e1188949c8a63ea401352dea33 + name: 'Hardware model name' + type: DEPENDENT + key: dell.server.hw.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the model name of the system.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + - uuid: 93d7f62989bf4009a366dd3db3b57622 + name: 'Hardware serial number' + type: DEPENDENT + key: dell.server.hw.serialnumber + delay: '0' + value_type: CHAR + trends: '0' + description: 'This attribute defines the service tag of the system.' + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - $.serialnumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: system + triggers: + - uuid: 7d3b78a42b2840dcac53aaad6fe0fd63 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.hw.serialnumber,#1)<>last(/DELL PowerEdge R840 by HTTP/dell.server.hw.serialnumber,#2) and length(last(/DELL PowerEdge R840 by HTTP/dell.server.hw.serialnumber))>0' + name: 'Dell R840: Device has been replaced' + event_name: 'Dell R840: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d09bd1c6bccf422286031a7081d2d130 + name: 'Get network interfaces' + type: SCRIPT + key: dell.server.net.iface.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Discovery', params); + + const netAdapters = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters'), 'Members'); + + var keys = [ + { + 'name': 'path', + 'path': '@odata.id' + }, + { + 'name': 'id', + 'path': 'Id' + } + ]; + + if (!Array.isArray(netAdapters)) { + throw 'Unexpected type for network adapters.'; + } + + var buffer = []; + + netAdapters.forEach(function (netAdapter) { + const netPorts = dell.extractData(dell.executeRequest(netAdapter["@odata.id"] + '/NetworkPorts'), 'Members'); + + if (!Array.isArray(netPorts)) { + return; + } + + netPorts.forEach(function (netPort) { + buffer.push(dell.extractData(dell.executeRequest(netPort["@odata.id"]), keys)); + }) + + }); + + return JSON.stringify(buffer); + description: 'Returns network interfaces.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 860871bf033f443183bed66919fc86e3 + name: 'Get sensors' + type: SCRIPT + key: dell.server.sensors.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + function formatPSU(psuObj) { + var foundPowerSupplies = [], + buffer = []; + + psuObj.forEach(function (obj) { + const psuName = obj['name'].split(' ')[0]; + + if (foundPowerSupplies.indexOf(psuName) === -1) { + foundPowerSupplies.push(psuName); + buffer.push({ + 'name': psuName, + [obj['type'].toLowerCase()]: {'reading': obj['reading'], 'health': obj['health']} + }); + } else { + buffer.forEach(function (bufferObj) { + + if (bufferObj['name'] === psuName) { + bufferObj[obj['type'].toLowerCase()] = {'reading': obj['reading'], 'health': obj['health']}; + + return; + } + }); + } + }) + return buffer; + }; + + function formatTemp(tempObj) { + tempObj.forEach(function (obj) { + obj.name = obj.name.split(' ').slice(0, -1).join(' '); + }); + + return tempObj; + } + + function formatSysBoard(sysObj) { + const remove = ['System', 'Board', 'Usage']; + + sysObj.forEach(function (obj) { + var buffer = []; + + obj['name'].split(' ').forEach(function (word) { + var match = false; + + remove.forEach(function (removeWord) { + if (removeWord === word) { + match = true; + } + }); + + if (!match) { + buffer.push(word); + } + }); + + if (buffer.length > 0) { + obj['name'] = buffer.join(' '); + } + }); + + return sysObj; + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Sensor', 'Discovery', params); + + const sensors = dell.extractData(dell.executeRequest('/redfish/v1/Chassis/System.Embedded.1/Sensors?$expand=.($levels=1)'), 'Members'); + + if (!Array.isArray(sensors)) { + throw 'Unexpected type for sensors.'; + } + + const keys = [ + { + 'name': 'id', + 'path': 'Id' + }, + { + 'name': 'name', + 'path': 'Name' + }, + { + 'name': 'context', + 'path': 'PhysicalContext' + }, + { + 'name': 'reading', + 'path': 'Reading' + }, + { + 'name': 'type', + 'path': 'ReadingType' + }, + { + 'name': 'health', + 'path': 'Status.Health' + } + ]; + + var buffer = { 'fan': [], 'psu': [], 'temperature': [], 'sysBoard': [] }; + + sensors.forEach(function (sensor) { + if (sensor['Name'].substring(0, 2) === 'PS' && sensor['PhysicalContext'] === 'PowerSupply') { + buffer['psu'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['ReadingType'] === 'Temperature') { + buffer['temperature'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('Fan') && sensor['ReadingType'] === 'Rotational') { + buffer['fan'].push(dell.extractData(sensor, keys, true)); + } else if (sensor['Name'].includes('System Board') && sensor['ReadingType'] === 'Percent') { + buffer['sysBoard'].push(dell.extractData(sensor, keys, true)); + } + }); + + buffer['psu'] = formatPSU(buffer['psu']); + buffer['temperature'] = formatTemp(buffer['temperature']); + buffer['sysBoard'] = formatSysBoard(buffer['sysBoard']); + + return JSON.stringify(buffer); + description: 'Returns sensors.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: d6a5a581ee9b455990cce4532243f9bc + name: 'Overall system health status' + type: DEPENDENT + key: dell.server.status + delay: '0' + trends: '0' + description: 'This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.get + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 66eddf4db30c4f33a04fd1e7779a512b + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.status,)=3' + name: 'Dell R840: Server is in a critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: d7bd59c648884a2db4e40518c80e9a7a + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.status,)=2' + name: 'Dell R840: Server is in a warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: Server is in a critical state' + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.status,)=3' + tags: + - tag: scope + value: availability + - uuid: 18157734e10d4eed82a0f43168daff65 + name: 'Get system' + type: SCRIPT + key: dell.server.system.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('System', 'Get system metrics', params); + + const requests = [ + { + 'path': '/redfish/v1/Systems/System.Embedded.1', + 'keys': [ + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'serialnumber', + 'path': 'Oem.Dell.DellSystem.ChassisServiceTag' + }, + { + 'name': 'status', + 'path': 'Status.Health' + } + ] + }, + { + 'path': '/redfish/v1/Managers/iDRAC.Embedded.1', + 'keys': { + 'name': 'firmware', + 'path': 'FirmwareVersion' + } + } + ]; + + var buffer = {}; + + for (var i = 0, requestsCount = requests.length; i < requestsCount; i++) { + Object.assign(buffer, dell.extractData(dell.executeRequest(requests[i].path), requests[i].keys)); + } + + return JSON.stringify(buffer); + description: 'Returns system metrics.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - uuid: 67524a4d8c8e4f39b43e1a67b1afede7 + name: 'CPU utilization, in %' + type: DEPENDENT + key: dell.server.util.cpu + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: cpu + triggers: + - uuid: d043506ca50e46688f4e2b5d16fbb6b0 + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.WARN}' + name: 'Dell R840: CPU utilization is high' + event_name: 'Dell R840: Current CPU utilization is high (util >= {$DELL.HTTP.CPU.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R840: CPU utilization is too high' + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 7402c280344d4d1481dc4f9363b114cb + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.cpu,5m)>={$DELL.HTTP.CPU.UTIL.HIGH}' + name: 'Dell R840: CPU utilization is too high' + event_name: 'Dell R840: Current CPU utilization is too high (util >= {$DELL.HTTP.CPU.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current CPU utilization has exceeded `{$DELL.HTTP.CPU.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 6d5125ef5a484d4c92f63ab698078e17 + name: 'IO utilization, in %' + type: DEPENDENT + key: dell.server.util.io + delay: '0' + value_type: FLOAT + units: '%' + description: 'IO utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: io + triggers: + - uuid: 9d9b98ba6f0f4a09b0fe866ac75a45d9 + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.WARN}' + name: 'Dell R840: IO utilization is high' + event_name: 'Dell R840: Current IO utilization is high (util >= {$DELL.HTTP.IO.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R840: IO utilization is too high' + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 6458115ca51b4f82a00f9f70f081168b + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + name: 'Dell R840: IO utilization is too high' + event_name: 'Dell R840: Current IO utilization is too high (util >= {$DELL.HTTP.IO.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current IO utilization has exceeded `{$DELL.HTTP.IO.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 91527c7c68f745f9aef78b4507e096c5 + name: 'Memory utilization, in %' + type: DEPENDENT + key: dell.server.util.mem + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: memory + triggers: + - uuid: 108975d790e84418852a3918ca9c721c + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.WARN}' + name: 'Dell R840: Memory utilization is high' + event_name: 'Dell R840: Current memory utilization is high (util >= {$DELL.HTTP.MEM.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R840: Memory utilization is too high' + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 28dbce9e2c374351853bce93a4d45533 + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.mem,5m)>={$DELL.HTTP.MEM.UTIL.HIGH}' + name: 'Dell R840: Memory utilization is too high' + event_name: 'Dell R840: Current memory utilization is too high (util >= {$DELL.HTTP.MEM.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current memory utilization has exceeded `{$DELL.HTTP.MEM.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 340a8b4c974e40cc8b694336fd973fb2 + name: 'SYS utilization, in %' + type: DEPENDENT + key: dell.server.util.sys + delay: '0' + value_type: FLOAT + units: '%' + description: 'SYS utilization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: sys + triggers: + - uuid: 4914f2bb5add4d1e879bd98e723cba68 + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.WARN}' + name: 'Dell R840: SYS utilization is high' + event_name: 'Dell R840: Current SYS utilization is high (util >= {$DELL.HTTP.SYS.UTIL.WARN}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.WARN}`%.' + dependencies: + - name: 'Dell R840: IO utilization is too high' + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.io,5m)>={$DELL.HTTP.IO.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 32dc9d0ef93649aaa05b80c1681ebd00 + expression: 'min(/DELL PowerEdge R840 by HTTP/dell.server.util.sys,5m)>={$DELL.HTTP.SYS.UTIL.HIGH}' + name: 'Dell R840: SYS utilization is too high' + event_name: 'Dell R840: Current SYS utilization is too high (util >= {$DELL.HTTP.SYS.UTIL.HIGH}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current SYS utilization has exceeded `{$DELL.HTTP.SYS.UTIL.HIGH}`%.' + tags: + - tag: scope + value: capacity + - uuid: 1fe957b97d914400a1814ff8ac1a9fc4 + name: 'Redfish API status' + type: SIMPLE + key: 'net.tcp.service[https]' + description: | + Availability of Redfish API on the server. + Possible values: + 0 - Unavailable + 1 - Available + valuemap: + name: 'Redfish API availability' + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 890f7b925b324a9c8ddcbf900248983f + expression: 'last(/DELL PowerEdge R840 by HTTP/net.tcp.service[https])=0' + name: 'Dell R840: Redfish API service is unavailable' + priority: HIGH + description: 'The service is unavailable or does not accept TCP connections.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 7e9b536c1f494f8db88ebc5817758f87 + name: 'Array controller discovery' + type: DEPENDENT + key: dell.server.array.discovery + delay: '0' + description: 'Discovery of disk array controllers.' + item_prototypes: + - uuid: d1785196fe1f4d208ef168bfefe5d91e + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.array.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.arrayControllers[?(@.id == "{#ID}")].health.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: c1c8af8e702d403290edcf852df5108f + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.array.status[{#ID}],)=3' + name: 'Dell R840: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: e3630192525a446e8ca77b4e1238d41c + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.array.status[{#ID}],)=2' + name: 'Dell R840: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.array.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#CNTLR_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SLOT}' + path: $.slot + preprocessing: + - type: JSONPATH + parameters: + - $.arrayControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: cf87034baae7473ba507411dd49e9aaa + name: 'Battery discovery' + type: DEPENDENT + key: dell.server.controller.battery.discovery + delay: '0' + description: 'Discovery of battery controllers.' + item_prototypes: + - uuid: c130b149d73147488074daa6cf4dffb1 + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.controller.battery.status[{#ID}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - '$.batteryControllers[?(@.id == "{#ID}")].status.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.resources.get + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: 8a71516737c14f868b530da03f79ac68 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + name: 'Dell R840: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 07861b4282664fea9ce13fe8b85fb204 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.controller.battery.status[{#ID}],)=2' + name: 'Dell R840: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.controller.battery.status[{#ID}],)=3' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.resources.get + lld_macro_paths: + - lld_macro: '{#BATTERY_NAME}' + path: $.name + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.batteryControllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: c9b1f5035b494f848e7c101bb31f706b + name: 'FAN discovery' + type: DEPENDENT + key: dell.server.fan.discovery + delay: '0' + description: 'Discovery of FAN sensors.' + item_prototypes: + - uuid: 9a344ff5fdce4fc6b19c50f70bdc3366 + name: 'Fan [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.fan.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: fan + - tag: component + value: raw + - uuid: ae4a6ad5d7ae4100a57af30cbfab4bf3 + name: 'Fan [{#SENSOR_NAME}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + delay: '0' + units: '!rpm' + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + - uuid: 58844e3ec9244f43b2819b3f13ea6a36 + name: 'Fan [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.fan.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 97142359820f4285a288114ff6c7fa4e + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + name: 'Dell R840: Fan [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: e8c5cf1fa754464986958957889784bb + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=2' + name: 'Dell R840: Fan [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: Fan [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.fan.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: a07e33e727054074957e95f9b2049ab7 + name: 'Dell R840: Fan [{#SENSOR_NAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: 'dell.server.sensor.fan.speed[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.fan + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 44e062b33a41457fb0d847cea5b385ed + name: 'Network interface discovery' + type: DEPENDENT + key: dell.server.net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: 6a8491b2246f48869bf8a608a2b012d6 + name: 'Interface [{#IFNAME}]: Get interface' + type: SCRIPT + key: 'dell.server.net.if.get[{#IFNAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Network Interface', 'Get metrics', params); + + const keys = [ + { + 'name': 'linkStatus', + 'path': 'LinkStatus' + }, + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'state', + 'path': 'Status.State' + }, + { + 'name': 'linkSpeed', + 'path': 'CurrentLinkSpeedMbps' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a network interface.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: network + - tag: component + value: raw + - uuid: deb874e1e9054cc7a7b42654a6862686 + name: 'Interface [{#IFNAME}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.health[{#IFNAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 15d95dacf91644de9d83a272c55a8c6f + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + name: 'Dell R840: Interface [{#IFNAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 7a743bd6cbee4cfd984e9d9ecb704e0e + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.health[{#IFNAME}],)=2' + name: 'Dell R840: Interface [{#IFNAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: Interface [{#IFNAME}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.health[{#IFNAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 3cbcb8e5d8fb46feb051b8633843661a + name: 'Interface [{#IFNAME}]: Speed' + type: DEPENDENT + key: 'dell.server.net.if.speed[{#IFNAME}]' + delay: '0' + units: bps + description: 'The network port current link speed.' + preprocessing: + - type: JSONPATH + parameters: + - $.linkSpeed + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: 2d5a59aef5fe40528b4127a5aeb4e7d9 + name: 'Interface [{#IFNAME}]: State' + type: DEPENDENT + key: 'dell.server.net.if.state[{#IFNAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + - uuid: 57be794a2e84405bb256bebdcebbd401 + name: 'Interface [{#IFNAME}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#IFNAME}]' + delay: '0' + description: 'The status of the link between this port and its link partner. Possible values: Down, Up, null.' + valuemap: + name: 'Network interface status' + preprocessing: + - type: JSONPATH + parameters: + - $.linkStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'null': 1, + 'Down': 2, + 'Up': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.net.if.get[{#IFNAME}]' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: c9d3b02a01b54c0288576e797a06f5fd + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.status[{#IFNAME}],)=2 and last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.status[{#IFNAME}],)=3 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R840: Interface [{#IFNAME}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down (2). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down (2). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces). + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 2422d2d24fa5470f955e813c6f8ab6da + expression: '{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1 and (last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.status[{#IFNAME}],)<2 and last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.status[{#IFNAME}],#1)<>last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.net.if.status[{#IFNAME}],)>=2 or {$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell R840: Interface [{#IFNAME}]: Link status issue' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Null (1) or Unknown (0). + 2. `{$DELL.HTTP.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Null (1) or Unknown (0). + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 82c7193482c6496abeeee2ca1869787b + name: 'Dell R840: Interface [{#IFNAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: 'dell.server.net.if.speed[{#IFNAME}]' + master_item: + key: dell.server.net.iface.get + lld_macro_paths: + - lld_macro: '{#IFNAME}' + path: $.id + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: e6736eb3f84044ff98d4113a3214e863 + name: 'Physical disk discovery' + type: DEPENDENT + key: dell.server.physicaldisk.discovery + delay: '0' + description: 'Discovery of physical disks.' + item_prototypes: + - uuid: 9ca9eeea67734f1c9a9ae548ac515b22 + name: 'Physical disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get physical disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'sn', + 'path': 'SerialNumber' + }, + { + 'name': 'model', + 'path': 'Model' + }, + { + 'name': 'mediaType', + 'path': 'MediaType' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a physical disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: physicaldisk + - tag: component + value: raw + - tag: component + value: storage + - uuid: 87d8f9e8a706467099ff0e2400185d37 + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The type of media contained in this drive. Possible values: HDD, SSD, SMR, null.' + preprocessing: + - type: JSONPATH + parameters: + - $.mediaType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: eb60004a07d343b2ac4bbc7ee373603c + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model number of the drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: f85b8b2bad6e4de4b6a1780379441823 + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.sn + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 87a9b87047764511b47498182501953b + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#1)<>last(/DELL PowerEdge R840 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}],#2) and length(last(/DELL PowerEdge R840 by HTTP/dell.server.hw.physicaldisk.serialnumber[{#DISK_NAME}]))>0' + name: 'Dell R840: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R840: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9b5c6889c2d04feb9b399f0226f8a0dd + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size, in bytes, of this drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: c6e2eca420754851a8601c89e0586b64 + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[{#DISK_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.physicaldisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 6d3b4cf6c62541f09506487a2dc78139 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + name: 'Dell R840: Physical disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: bba8d0a074cb4663bedf508ccf2b0c21 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=2' + name: 'Dell R840: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: Physical disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.hw.physicaldisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 8dc2255aa49b49a8b815cf153b580b5e + name: 'Dell R840: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: 'dell.server.hw.physicaldisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.physicalDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 1e8d28ae00d04f7ebcdd67257b99e083 + name: 'PSU discovery' + type: DEPENDENT + key: dell.server.psu.discovery + delay: '0' + description: 'Discovery of PSU sensors.' + item_prototypes: + - uuid: 26c85e9369aa4805a095628e890b1288 + name: 'Power supply [{#SENSOR_NAME}]: Current sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.current.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.current.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 9afb0fbb617e4b35a9b79136313a3056 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + name: 'Dell R840: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 414c6fab2ad64985b074e8e46581a4d3 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=2' + name: 'Dell R840: Power supply [{#SENSOR_NAME}]: Current sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: Power supply [{#SENSOR_NAME}]: Current sensor: Critical state' + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.psu.current.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: c18c96e977354b258bd82a0c12433724 + name: 'Power supply [{#SENSOR_NAME}]: Current' + type: DEPENDENT + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: A + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.current.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: current + - tag: component + value: psu + - uuid: 541cdf75d8fd4b6298d46d72ea698c8b + name: 'Power supply [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.psu.[?(@.name == ''{#SENSOR_NAME}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: psu + - tag: component + value: raw + - uuid: de636fb95e5a454ca70ae2f2d0ce734a + name: 'Power supply [{#SENSOR_NAME}]: Voltage sensor status' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 20dbfa3bfbd2411fb47d688b08d491cc + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + name: 'Dell R840: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 06f2eac8d2244a5caf95e304c08b3073 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=2' + name: 'Dell R840: Power supply [{#SENSOR_NAME}]: Voltage sensor: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: Power supply [{#SENSOR_NAME}]: Voltage sensor: Critical state' + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.psu.voltage.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 3633da59496341c3a35057482388e129 + name: 'Power supply [{#SENSOR_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage.reading + master_item: + key: 'dell.server.sensor.psu.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: psu + - tag: component + value: voltage + graph_prototypes: + - uuid: 75e804154af84501a5460ffe74ffe5b5 + name: 'Dell R840: Power supply [{#SENSOR_NAME}]: Current' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: 'dell.server.sensor.psu.current[{#SENSOR_NAME}]' + - uuid: 31d669f53bf64ac09ed74d793618ac9b + name: 'Dell R840: Power supply [{#SENSOR_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: 'dell.server.sensor.psu.voltage[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#SENSOR_NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.psu + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 660e28865c614e25aa1c0cd5e33888ee + name: 'Temperature discovery' + type: DEPENDENT + key: dell.server.temp.discovery + delay: '0' + description: 'Discovery of temperature sensors.' + item_prototypes: + - uuid: 53e57d04b3864408b47363ce277cfc40 + name: 'Probe [{#SENSOR_NAME}]: Get sensor' + type: DEPENDENT + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the metrics of a sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.temperature.[?(@.id == ''{#ID}'')].first()' + master_item: + key: dell.server.sensors.get + tags: + - tag: component + value: raw + - tag: component + value: temperature + - uuid: 0ba4848ce443431a8680990119f0bb26 + name: 'Probe [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[{#SENSOR_NAME}]' + delay: '0' + trends: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 3c617590456f495eaa7a1b11dee0ae3a + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + name: 'Dell R840: Probe [{#SENSOR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 0b1fdc118b6a4983ae522cf9f1efb07b + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=2' + name: 'Dell R840: Probe [{#SENSOR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: Probe [{#SENSOR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.sensor.temp.status[{#SENSOR_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 6c01858e79fd4c4bbeae694728d265fe + name: 'Probe [{#SENSOR_NAME}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + delay: '0' + value_type: FLOAT + units: °C + description: 'Sensor value.' + preprocessing: + - type: JSONPATH + parameters: + - $.reading + master_item: + key: 'dell.server.sensor.temp.get[{#SENSOR_NAME}]' + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: dcf65d35e3e640a08ee7d32816857f09 + name: 'Dell R840: Probe [{#SENSOR_NAME}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: 'dell.server.sensor.temp.value[{#SENSOR_NAME}]' + master_item: + key: dell.server.sensors.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.temperature + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 1c5de2df1da844a38dc74763c5c8add4 + name: 'Virtual disk discovery' + type: DEPENDENT + key: dell.server.virtualdisk.discovery + delay: '0' + description: 'Discovery of virtual disks.' + item_prototypes: + - uuid: 6852216c27c54b5dabf567a15d8467a5 + name: 'Virtual disk [{#DISK_NAME}]: Get disk' + type: SCRIPT + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function Dell(service, action, params) { + this.zabbixLogPrefix = '[ DELL ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.tls.checkURL(params['url']); + this.request = new HttpRequest(this.tls.options); + + this.executeRequest = function (apiPath) { + this.request.addHeader('Authorization: Basic ' + btoa(params['user'] + ':' + params['password'])); + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + const response = this.request.get(params['url'] + apiPath); + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (data, keys, skipParse) { + if (!skipParse) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + } + + if (Array.isArray(keys)) { + var returnBuffer = {}; + + for (keyIdx = 0, keysLength = keys.length; keyIdx < keysLength; keyIdx++) { + if (keys[keyIdx]['path'] === '@odata.id') { + returnBuffer[keys[keyIdx]['name']] = data[keys[keyIdx]['path']]; + } else { + returnBuffer[keys[keyIdx]['name']] = this.parseJSON(data, keys[keyIdx]['path'].split('.')); + } + } + + return returnBuffer; + } else if (typeof keys === 'object') { + return { [keys['name']]: this.parseJSON(data, keys['path'].split('.')) }; + } else if (typeof keys === 'string') { + return this.parseJSON(data, keys.split('.')); + } else { + throw 'Unexpected key type'; + } + }; + + this.parseJSON = function (data, jsonPath) { + for (var i = 0, args = jsonPath.length; i < args; i++) { + data = data[jsonPath[i]]; + } + + return data; + } + } + + + const params = JSON.parse(value); + + validateZabbixParams(['url', 'path', 'user', 'password', 'http_status_code'], params); + var dell = new Dell('Disk', 'Get virtual disk metrics', params); + + const keys = [ + { + 'name': 'health', + 'path': 'Status.Health' + }, + { + 'name': 'capacity', + 'path': 'CapacityBytes' + }, + { + 'name': 'status', + 'path': 'Status.State' + }, + { + 'name': 'raidStatus', + 'path': 'Oem.Dell.DellVirtualDisk.RaidStatus' + }, + { + 'name': 'readCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.ReadCachePolicy' + }, + { + 'name': 'writeCachePolicy', + 'path': 'Oem.Dell.DellVirtualDisk.WriteCachePolicy' + } + ]; + + return JSON.stringify(dell.extractData(dell.executeRequest(params.path), keys)); + description: 'Returns the metrics of a virtual disk.' + timeout: '{$DELL.HTTP.REQUEST.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$DELL.HTTP.PROXY}' + - name: http_status_code + value: '{$DELL.HTTP.RETURN.CODE.OK}' + - name: password + value: '{$DELL.HTTP.API.PASSWORD}' + - name: path + value: '{#ODATA}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"DELL PowerEdge"}' + - name: url + value: '{$DELL.HTTP.API.URL}' + - name: user + value: '{$DELL.HTTP.API.USER}' + tags: + - tag: component + value: raw + - tag: component + value: virtualdisk + - uuid: 40b6ef0db10049dfa2b47b3d643d52f8 + name: 'Virtual disk [{#DISK_NAME}]: RAID status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}]' + delay: '0' + description: 'This property represents the RAID specific status. Possible values: Blocked, Degraded, Failed, Foreign, Offline, Online, Ready, Unknown, null.' + valuemap: + name: 'Virtual disk RAID status' + preprocessing: + - type: JSONPATH + parameters: + - $.raidStatus + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Blocked': 1, + 'Degraded': 2, + 'Failed': 3, + 'Foreign': 4, + 'Offline': 5, + 'Unknown': 6, + 'null': 7, + 'Ready': 8, + 'Online': 9, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: d7399429cfed4a58b89ea0818198b554 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.hw.virtualdisk.raid_status[{#DISK_NAME}],)<8' + name: 'Dell R840: Virtual disk [{#DISK_NAME}]: RAID status not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the disk for faults.' + tags: + - tag: scope + value: availability + - uuid: 50a61448d1a64cab85af3bd416519a5f + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the read cache policy setting for the Volume. Possible values: ReadAhead, NoReadAhead, AdaptiveReadAhead.' + valuemap: + name: 'Virtual disk read policy' + preprocessing: + - type: JSONPATH + parameters: + - $.readCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'NoReadAhead': 1, + 'ReadAhead': 2, + 'AdaptiveReadAhead': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 165425c403444bdd829243176cc17728 + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + delay: '0' + trends: '0' + units: B + description: 'The size in bytes of this Volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: c29744514703440787ecc94d86fac220 + name: 'Virtual disk [{#DISK_NAME}]: Current state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[{#DISK_NAME}]' + delay: '0' + description: 'The known state of the Resource, for example, Enabled. Possible values: Enabled, Disabled, StandbyOffline, StandbySpare, InTest, Starting, Absent, UnavailableOffline, Deferring, Quiesced, Updating, Qualified.' + valuemap: + name: 'Redfish status state' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'Enabled': 1, + 'Disabled': 2, + 'Absent': 3, + 'Deferring': 4, + 'InTest': 5, + 'Quiesced': 6, + 'StandbyOffline': 7, + 'StandbySpare': 8, + 'Starting': 9, + 'UnavailableOffline': 10, + 'Updating': 11 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 350af9c90f1e4f20b0362d0fcff06b6e + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[{#DISK_NAME}]' + delay: '0' + description: 'The status of the job. Possible values: OK, Warning, Critical.' + valuemap: + name: 'Redfish status health' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'OK': 1, + 'Warning': 2, + 'Critical': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 4072075d6a1c443da08c67795b799d40 + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + name: 'Dell R840: Virtual disk [{#DISK_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 1ac52018cc744f1ba54b04095d0d882f + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=2' + name: 'Dell R840: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: Virtual disk [{#DISK_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by HTTP/dell.server.hw.virtualdisk.status[{#DISK_NAME}],)=3' + tags: + - tag: scope + value: availability + - uuid: 126eac1b29f34a6ba144f47e8b46b7cc + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[{#DISK_NAME}]' + delay: '0' + description: 'Indicates the write cache policy setting for the Volume. Possible values: WriteThrough, WriteBack, ProtectedWriteBack, UnprotectedWriteBack.' + valuemap: + name: 'Virtual disk write policy' + preprocessing: + - type: JSONPATH + parameters: + - $.writeCachePolicy + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'WriteThrough': 1, + 'WriteBack': 2, + 'ProtectedWriteBack': 3, + 'UnprotectedWriteBack': 4, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'dell.server.hw.virtualdisk.get[{#DISK_NAME}]' + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: 2922d5a405cb442cbd7e7c1c6e9441a1 + name: 'Dell R840: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: 'dell.server.hw.virtualdisk.size[{#DISK_NAME}]' + master_item: + key: dell.server.disks.get + lld_macro_paths: + - lld_macro: '{#DISK_NAME}' + path: $.name + - lld_macro: '{#ODATA}' + path: $.path + preprocessing: + - type: JSONPATH + parameters: + - $.virtualDisks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.HTTP.API.PASSWORD}' + type: SECRET_TEXT + description: 'The Dell iDRAC user password.' + - macro: '{$DELL.HTTP.API.URL}' + value: '' + description: 'The Dell iDRAC Redfish API URL in the format `://:`.' + - macro: '{$DELL.HTTP.API.USER}' + value: '' + description: 'The Dell iDRAC username.' + - macro: '{$DELL.HTTP.CPU.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.CPU.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about CPU utilization.' + - macro: '{$DELL.HTTP.IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.HTTP.IO.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about IO utilization.' + - macro: '{$DELL.HTTP.IO.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about IO utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about memory utilization.' + - macro: '{$DELL.HTTP.MEM.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about memory utilization.' + - macro: '{$DELL.HTTP.PROXY}' + description: 'Set an HTTP proxy for Redfish API requests if needed.' + - macro: '{$DELL.HTTP.REQUEST.TIMEOUT}' + value: 10s + description: 'Set the timeout for HTTP requests.' + - macro: '{$DELL.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + - macro: '{$DELL.HTTP.SYS.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about SYS utilization.' + - macro: '{$DELL.HTTP.SYS.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about SYS utilization.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "DELL PowerEdge", e.g. {$HTTP.TLS.VERIFY:"DELL PowerEdge"}.' + dashboards: + - uuid: 05d7ff8c86274cc0adb76f0d8c39825c + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: gauge + name: 'CPU utilization' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: CPU + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.util.cpu + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'Memory utilization' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: MEM + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.util.mem + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'I/O utilization' + 'y': '6' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: I/O + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.util.io + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'SYS utilization' + 'y': '9' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: SYS + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 5000A1 + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.util.sys + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Redfish API' + x: '18' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Redfish API' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by HTTP' + key: 'net.tcp.service[https]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '18' + 'y': '3' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.hw.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + x: '18' + 'y': '6' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.hw.serialnumber + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '18' + 'y': '9' + width: '54' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.hw.firmware + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'System health' + x: '45' + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.status + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '2' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Power supply*Voltage' + - type: STRING + name: items.1 + value: 'Power supply*Current' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Interface speed' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Speed' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAABA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: D3212C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '10000000' + - type: STRING + name: thresholds.2.color + value: FF980E + - type: STRING + name: thresholds.2.threshold + value: '100000000' + - type: STRING + name: thresholds.3.color + value: 069C56 + - type: STRING + name: thresholds.3.threshold + value: '1000000000' + - type: STRING + name: thresholds.4.color + value: 2196F3 + - type: STRING + name: thresholds.4.threshold + value: '10000000000' + - type: STRING + name: thresholds.5.color + value: 6C00D9 + - type: STRING + name: thresholds.5.threshold + value: '25000000000' + - type: STRING + name: thresholds.6.color + value: D900A6 + - type: STRING + name: thresholds.6.threshold + value: '40000000000' + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + valuemaps: + - uuid: 4cb6f9b8048a4109849a7f12bf0aba1c + name: 'Network interface status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: 'Null' + - value: '2' + newvalue: Down + - value: '3' + newvalue: Up + - uuid: dfee913787ba42e49a11dae28d1a603f + name: 'Redfish API availability' + mappings: + - value: '0' + newvalue: Unavailable + - value: '1' + newvalue: Available + - uuid: 5b5774ab04ec4f3eaf1e528ad02e0978 + name: 'Redfish status health' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: OK + - value: '2' + newvalue: Warning + - value: '3' + newvalue: Critical + - uuid: f73f21dc4f964efeb4f54f8565d4cd58 + name: 'Redfish status state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Enabled + - value: '2' + newvalue: Disabled + - value: '3' + newvalue: Absent + - value: '4' + newvalue: Deferring + - value: '5' + newvalue: InTest + - value: '6' + newvalue: Quiesced + - value: '7' + newvalue: StandbyOffline + - value: '8' + newvalue: StandbySpare + - value: '9' + newvalue: Starting + - value: '10' + newvalue: UnavailableOffline + - value: '11' + newvalue: Updating + - uuid: 865251146a524335be8ec054d8df15aa + name: 'Virtual disk RAID status' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: Blocked + - value: '2' + newvalue: Degraded + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Foreign + - value: '5' + newvalue: Offline + - value: '6' + newvalue: Unknown + - value: '7' + newvalue: 'Null' + - value: '8' + newvalue: Ready + - value: '9' + newvalue: Online + - uuid: b37b8981282944348ab2748fb09d55f4 + name: 'Virtual disk read policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: NoReadAhead + - value: '2' + newvalue: ReadAhead + - value: '3' + newvalue: AdaptiveReadAhead + - uuid: ccdd0a176df640e09b95837aba7580f1 + name: 'Virtual disk write policy' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: WriteThrough + - value: '2' + newvalue: WriteBack + - value: '3' + newvalue: ProtectedWriteBack + - value: '4' + newvalue: UnprotectedWriteBack + graphs: + - uuid: a0444e242bcf432b9464d2fe8edbe9e3 + name: 'Dell R840: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.util.cpu + - uuid: 893045a4df4c44e6966833c8c5e2d05a + name: 'Dell R840: IO utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.util.io + - uuid: 1ab63e40fcd54d22a96e1ba6ba7038e2 + name: 'Dell R840: Memory utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.util.mem + - uuid: ce878cd735004169938aefc97e4043aa + name: 'Dell R840: SYS utilization' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by HTTP' + key: dell.server.util.sys diff --git a/DELL_PowerEdge_R840_by_SNMP.yaml b/DELL_PowerEdge_R840_by_SNMP.yaml new file mode 100644 index 0000000..068b389 --- /dev/null +++ b/DELL_PowerEdge_R840_by_SNMP.yaml @@ -0,0 +1,2608 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: fc834b8da8864678b55557e9a237eac9 + template: 'DELL PowerEdge R840 by SNMP' + name: 'DELL PowerEdge R840 by SNMP' + description: | + Template for DELL PowerEdge R840 servers with iDRAC version 7 and later. + + MIBs used: + HOST-RESOURCES-MIB + IDRAC-MIB-SMIv2 + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 7f08a9bf1d5540f0b05040d16d67d87a + name: 'SNMP walk RAID controllers table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2]' + key: dell.server.array.controller.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::controllerTable`.' + tags: + - tag: component + value: raw + - uuid: 39d26209dd3242c5ad90380b566c01aa + name: 'SNMP walk Battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21]' + key: dell.server.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::batteryTable`.' + tags: + - tag: component + value: raw + - uuid: 077c58fdb06c4191bf8f194b4c9108e7 + name: 'BIOS version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.4.300.50.1.8.1.1]' + key: dell.server.bios.version + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the version name of the system BIOS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 65da5f84a8bb43da8b72ddbe6d757fa8 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'dell.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Name and contact information of the contact person for the node. If not provided, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 94bcc2449dfa4bb59fd778ba96e3abdf + name: 'SNMP walk Processor device tables' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.30.1.26,1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.1]' + key: dell.server.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Processor Device Status Table `IDRAC-MIB-SMIv2::processorDeviceTable` and `IDRAC-MIB-SMIv2::processorDeviceStatusTable`.' + tags: + - tag: component + value: raw + - uuid: 51c9b68b617c498eb612807734076367 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'dell.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating system, and networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: c888185c08f84b059fdbf7ff0fa8eb6a + name: 'SNMP walk Physical disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11]' + key: dell.server.disk.physical.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Physical Disk Table `IDRAC-MIB-SMIv2::physicalDiskTable`.' + tags: + - tag: component + value: raw + - uuid: f141e6e279fe4b3db65bbfe7e559389b + name: 'SNMP walk Virtual disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4]' + key: dell.server.disk.virtual.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Virtual Disk Table `IDRAC-MIB-SMIv2::virtualDiskTable`.' + tags: + - tag: component + value: raw + - uuid: d7e317cd293c4d8fa39f4283b79de6e4 + name: 'SNMP walk Cooling device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.12.1.5,1.3.6.1.4.1.674.10892.5.4.700.12.1.8,1.3.6.1.4.1.674.10892.5.4.700.12.1.7,1.3.6.1.4.1.674.10892.5.4.700.12.1.6]' + key: dell.server.fan.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Cooling Device Table `IDRAC-MIB-SMIv2::coolingDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 09e33063d84e486fb4964af35916cc25 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.1.8.0]' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the firmware version of a remote access card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 26f924a3a9e1470891cb0d9e9136ad9d + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#1)<>last(/DELL PowerEdge R840 by SNMP/dell.server.hw.firmware[racFirmwareVersion],#2) and length(last(/DELL PowerEdge R840 by SNMP/dell.server.hw.firmware[racFirmwareVersion]))>0' + name: 'Dell R840: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b34415ae1ac84375834612f402d4ea0c + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.12.0]' + key: 'dell.server.hw.model[systemModelName]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the model name of the system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: b46ad39d968141259ace337d70744001 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.2.0]' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the service tag of the system. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 8d1e926bb5f640b4bf8c8342b5cf1d56 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#1)<>last(/DELL PowerEdge R840 by SNMP/dell.server.hw.serialnumber[systemServiceTag],#2) and length(last(/DELL PowerEdge R840 by SNMP/dell.server.hw.serialnumber[systemServiceTag]))>0' + name: 'Dell R840: Device has been replaced' + event_name: 'Dell R840: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: afa223e9d16b41deaac482b8328ba0e4 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.5.0]' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + trends: '0' + units: uptime + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the power-up time of the system in seconds. + tags: + - tag: component + value: system + - uuid: 0445a9767ce34fb7b2be072609504011 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'dell.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., 'telephone closet, 3rd floor'). If the location is unknown, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: c84cc87d95664f66a674eefec258841a + name: 'Memory, total size' + type: CALCULATED + key: dell.server.memory.size.total + units: B + params: 'sum(last_foreach(//dell.server.memory.size[*]))' + description: 'Total memory amount on the device.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + triggers: + - uuid: c44165ebea1346c78970c1f8d96da0be + expression: 'change(/DELL PowerEdge R840 by SNMP/dell.server.memory.size.total)>0' + name: 'Dell R840: Memory amount has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 6ad434d7873f4c9e846ebaefa3e3640c + name: 'SNMP walk Memory device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1]' + key: dell.server.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Memory Device Table `IDRAC-MIB-SMIv2::memoryDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 58be11401c084b0a81ebadbde199133d + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'dell.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 673eda315d9b4dfcb15509fa01fffac2 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.name[sysName],#1)<>last(/DELL PowerEdge R840 by SNMP/dell.server.name[sysName],#2) and length(last(/DELL PowerEdge R840 by SNMP/dell.server.name[sysName]))>0' + name: 'Dell R840: System name has changed' + event_name: 'Dell R840: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 73802978c64b4d978b6e06ede9f5d760 + name: 'SNMP walk Network device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1, 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1]' + key: dell.server.net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Network Device Table `IDRAC-MIB-SMIv2::networkDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 49473f26fedb459c9642704bae33adb1 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.6.3.10.2.1.3.0]' + key: 'dell.server.net.uptime[snmpEngineTime]' + trends: '0' + units: uptime + description: | + MIB: SNMP-FRAMEWORK-MIB + The number of seconds since the value of the snmpEngineBoots object last changed. + tags: + - tag: component + value: system + - uuid: 808a099b33c6438e8fd91a4f29c41f35 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'dell.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 0b013a35762f4bdab3ffeec58176779a + name: 'SNMP walk Power supply table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.12.1.5,1.3.6.1.4.1.674.10892.5.4.600.12.1.8]' + key: dell.server.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Power Supply Table `IDRAC-MIB-SMIv2::powerSupplyTable`.' + tags: + - tag: component + value: raw + - uuid: c2ab8a025fb34e878f7bbea9db51dbea + name: 'SNMP walk Temperature sensor table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.20.1.1,1.3.6.1.4.1.674.10892.5.4.700.20.1.8,1.3.6.1.4.1.674.10892.5.4.700.20.1.6,1.3.6.1.4.1.674.10892.5.4.700.20.1.5]' + key: dell.server.sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Temperature Probe Table `IDRAC-MIB-SMIv2::temperatureProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 42be6e0b9fbe46179597650622a2241a + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.1.0]' + key: 'dell.server.status[globalSystemStatus]' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: c3e8fd8fd0d0406d8c2d9a2c45eeecee + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.DISASTER}' + name: 'Dell R840: System is in unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 4b32809fad0e468bb5f1bd09c7078def + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + name: 'Dell R840: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for errors.' + tags: + - tag: scope + value: availability + - uuid: a75745134dad4592a23c43ca77975d95 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.WARN}' + name: 'Dell R840: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell R840: System status is in critical state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: availability + - uuid: 8d967ad6ac2b46c28072f713cd11b59f + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.6.0]' + key: 'dell.server.sw.os[systemOSName]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the name of the operating system that the host is running. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 4096c84c616743bfbfca9707e43a3db3 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sw.os[systemOSName],#1)<>last(/DELL PowerEdge R840 by SNMP/dell.server.sw.os[systemOSName],#2) and length(last(/DELL PowerEdge R840 by SNMP/dell.server.sw.os[systemOSName]))>0' + name: 'Dell R840: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possibly, the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f1068ce5a40b45ba9388e17f6dce3b79 + name: 'SNMP walk System battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1,1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1]' + key: dell.server.system.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of System Battery Table `IDRAC-MIB-SMIv2::systemBatteryTable`.' + tags: + - tag: component + value: raw + - uuid: b5c04f5439244a87991b2b053b5f8f9b + name: 'SNMP walk Voltage probe table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1]' + key: dell.server.voltage.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Voltage Probe Table `IDRAC-MIB-SMIv2::voltageProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 074f6d9a11814bb7909d99664192421d + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other `snmptrap` items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: b690c870c11c40ecbd162a01e82abbfe + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 6f00331597c0443a93c182a86040cca4 + expression: 'max(/DELL PowerEdge R840 by SNMP/zabbix[host,snmp,available],{$DELL.SNMP.TIMEOUT})=0' + name: 'Dell R840: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 23349a5dacb34beda5c745461fd2b2a9 + name: 'Array controller discovery' + type: DEPENDENT + key: array.discovery + delay: '0' + description: 'Array controller discovery.' + item_prototypes: + - uuid: 9afa1fe4ec6343db9abdb7b1a6c57b10 + name: 'Controller [{#CNTLR_NAME}]: Model' + type: DEPENDENT + key: 'dell.server.hw.diskarray.model[controllerName.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The controller's name as represented in Storage Management. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: 3af6572ca94d49da8b6c59185ddeb744 + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the controller itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 149de042930a444d82d1a8016efaea2c + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + name: 'Dell R840: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R840: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + - uuid: 2fb2ddb749ed450da886420fdc5da394 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + name: 'Dell R840: Controller [{#CNTLR_NAME}]: Unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: b8cbc4a8cc404bcc83bf24af56997432 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + name: 'Dell R840: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R840: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + - name: 'Dell R840: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.controller.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38 + - '0' + - '{#CNTLR_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3f6ece6fbaae461bbb01f7adaeca9756 + name: 'Battery discovery' + type: DEPENDENT + key: battery.discovery + delay: '0' + description: 'Battery discovery.' + item_prototypes: + - uuid: 9f78de09167d4de9b7c5f8606d8f9bb2 + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.battery.status[batteryState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Current state of battery. + Possible values: + 1: The current state could not be determined. + 2: The battery is operating normally. + 3: The battery has failed and needs to be replaced. + 4: The battery temperature is high or charge level is depleting. + 5: The battery is missing or not detected. + 6: The battery is undergoing the re-charge phase. + 7: The battery voltage or charge level is below the threshold. + valuemap: + name: 'IDRAC-MIB-SMIv2::batteryState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.battery.walk + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: 3624b95de99c42ac948402a4ca13a616 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + name: 'Dell R840: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 560fd4dcbf4a4ee8b49ad8880b767591 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])<>{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + name: 'Dell R840: Battery [{#BATTERY_NAME}]: Not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R840: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + - name: 'Dell R840: Battery [{#BATTERY_NAME}]: Warning state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + tags: + - tag: scope + value: availability + - uuid: dc5c489632c54cf3a393cc78e50020db + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + name: 'Dell R840: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R840: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#BATTERY_NUM}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1 + - '0' + - '{#BATTERY_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3bcf2e1613ce4bcf82c8154dfa5dc7c8 + name: 'CPU status discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: 'CPU status discovery.' + item_prototypes: + - uuid: b5bc4152569c4d94ac18af051ac53545 + name: 'CPU [{#CPU_FQDD}]: State' + type: DEPENDENT + key: 'dell.server.cpu.state[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the reading of the processor device status probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 723b859cb5a94d339c7d0cba9ad2dc8d + expression: 'bitand(last(/DELL PowerEdge R840 by SNMP/dell.server.cpu.state[cpu.{#SNMPINDEX}],#1),128)=0' + name: 'Dell R840: CPU [{#CPU_FQDD}]: Reading error' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU probe reading flag is not `processorPresent`. + tags: + - tag: scope + value: availability + - uuid: 417e257e354542aa84741c435b7fe916 + name: 'CPU [{#CPU_FQDD}]: Status' + type: DEPENDENT + key: 'dell.server.cpu.status[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the status of the processor device status probe. This status will be joined into the `processorDeviceStatus` attribute.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 66665f584f9a43c192cf995a4ef89f09 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.cpu.status[cpu.{#SNMPINDEX}],#1)<>3' + name: 'Dell R840: CPU [{#CPU_FQDD}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.30.1.26 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 91a882b4c4fe48ac9224fdfb811bcf71 + name: 'Fan discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + filter: + conditions: + - macro: '{#TYPE}' + value: '3' + formulaid: A + description: 'Fan discovery.' + item_prototypes: + - uuid: 8ee74a624afc41d0b607da978b2b0858 + name: 'Fan [{#FAN_DESCR}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + delay: '0' + units: rpm + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a cooling device of a subtype other than `coolingDeviceSubTypeIsDiscrete`. + When the value for `coolingDeviceSubType` is other than `coolingDeviceSubTypeIsDiscrete`, the value returned for this attribute is the speed in RPM or the "OFF/ON" value of the cooling device. + When the value for `coolingDeviceSubType` is `coolingDeviceSubTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + - uuid: 40ffe2dbed764fab8f76ab3d77c4d48b + name: 'Fan [{#FAN_DESCR}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#FAN_DESCR}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the cooling device. + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 4c81607b448445b7859af43eefda9c88 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + name: 'Dell R840: Fan [{#FAN_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: availability + - uuid: 9c23542532ca4414948cfaf5fb7976d2 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R840: Fan [{#FAN_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'Dell R840: Fan [{#FAN_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 3ca078011770494280453bce2c2198fe + name: 'Dell R840: Fan [{#FAN_DESCR}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + master_item: + key: dell.server.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.5 + - '0' + - '{#FAN_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.8 + - '0' + - '{#TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: ab7d2361eeb946a48bb557e9dbc8904c + name: 'Memory discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: 'Memory discovery.' + item_prototypes: + - uuid: 0c87c1f952484471afad86f77c13073a + name: 'Memory [{#SNMPVALUE}]: Size' + type: DEPENDENT + key: 'dell.server.memory.size[{#SNMPVALUE}]' + delay: '0' + units: B + description: 'This attribute defines the size, in KB, of the memory device. Zero indicates no memory installed; 2,147,483,647 indicates an unknown memory size.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + - uuid: 2dab90151d1144fda74204e88c10067b + name: 'Memory [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.memory.status[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the memory device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 9ef225ff91114afdba9ee315c09a53c8 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.memory.status[{#SNMPVALUE}],#1)<>3' + name: 'Dell R840: Memory [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Memory status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 507b67db9d33407ab04b5b26eee17f33 + name: 'Network interface discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: 3400e8c414144a88baed85ccd1179008 + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.link[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the connection status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 1fe39881ec004b87a41c1d8d44479981 + expression: '{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1 and last(/DELL PowerEdge R840 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>1 and last(/DELL PowerEdge R840 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>last(/DELL PowerEdge R840 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)=1 or {$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=0' + name: 'Dell R840: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down. + 2. `{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 1e3ec0d9d8284aed8edeff4490afe605 + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 5196e2886545427dbafe649cb3cd651f + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.net.if.status[{#NIC_FQDD}],#1)<>3' + name: 'Dell R840: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Network interface status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NIC_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1 + - '0' + - '{#NIC_MAC}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1 + - '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: d9c26b4a06bc45acb742315896b358da + name: 'Physical disk discovery' + type: DEPENDENT + key: physicaldisk.discovery + delay: '0' + description: 'Physical disk discovery.' + item_prototypes: + - uuid: be048b1285ba4a21a14e5f79727c2b91 + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[physicalDiskMediaType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The media type of the physical disk. Possible Values: + 1: The media type could not be determined. + 2: Hard Disk Drive (HDD). + 3: Solid State Drive (SSD). + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 79fa0faedeb743c1a9f9c0ea0d454935 + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[physicalDiskProductID.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The model number of the physical disk. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: b2668345145f4d638dbb364afbdfb9f8 + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The physical disk's unique identification number from the manufacturer. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 7d2a1a115b304ca5823618360675d43d + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#1)<>last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#2) and length(last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]))>0' + name: 'Dell R840: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell R840: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6e50bc2fa3ee4ceeb8fe044a7d83f836 + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the physical disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 3a2cd6a4c4ea4a3ab4ccbd555ee17f5b + name: 'Physical disk [{#DISK_NAME}]: S.M.A.R.T. Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Indicates whether the physical disk has received a predictive failure alert. + valuemap: + name: 'IDRAC-MIB-SMIv2::BooleanType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 3a648ce450cd4236bcda1b48f6cb840f + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'Dell R840: Physical disk [{#DISK_NAME}]: S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'Dell R840: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + - uuid: fbb5d836a0c344e0929bb406cf9721ee + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the physical disk itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 426d1d50afb04253b92a5b99c9e96206 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + name: 'Dell R840: Physical disk [{#DISK_NAME}]: Failed state' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: 1d0a3f13c2fd4bc8be2c4305850c984c + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + name: 'Dell R840: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'Dell R840: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/DELL PowerEdge R840 by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 2b64a7034bb3455196e2716e622ce404 + name: 'Dell R840: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.physical.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: d95e02ed8c204fe1b4edf5a3d3ad3847 + name: 'PSU discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'PSU discovery.' + item_prototypes: + - uuid: fe99911125c54800be75e332c150356b + name: 'Power supply [{#PSU_DESCR}]: State' + type: DEPENDENT + key: 'dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the status of the power supply. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.psu.walk + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 519b5f4f8c6f4b6b92eafb910c1e81eb + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + name: 'Dell R840: Power supply [{#PSU_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: availability + - uuid: 76ab0ba99e424e43b686d11049b40258 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + name: 'Dell R840: Power supply [{#PSU_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'Dell R840: Power supply [{#PSU_DESCR}]: Critical state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.5 + - '0' + - '{#PSU_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 1461820b857d483e9988434b36a9cf6f + name: 'System battery discovery' + type: DEPENDENT + key: system.battery.discovery + delay: '0' + description: 'System battery discovery.' + item_prototypes: + - uuid: b4c42aaf69b34fcaa8ff8a23f0767c3a + name: 'System battery [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.system.battery[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the battery.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.battery.walk + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: 9cc273d913d04f58af291d888fd942ff + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.system.battery[{#SNMPVALUE}],#1)<>3' + name: 'Dell R840: System battery [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + System battery status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.system.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: e9897a4e0d9d41e38e1cfd198f94d2de + name: 'Temperature discovery' + type: DEPENDENT + key: temp.discovery + delay: '0' + description: 'Temperature sensor discovery.' + item_prototypes: + - uuid: c76c966651f940a5ac664c75c88ca689 + name: 'Probe [{#SENSOR_LOCALE}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the temperature probe. + Possible values: + other(1), -- probe status is not one of the following: + unknown(2), -- probe status is unknown (not known or monitored) + ok(3), -- probe is reporting a value within the thresholds + nonCriticalUpper(4), -- probe has crossed the upper noncritical threshold + criticalUpper(5), -- probe has crossed the upper critical threshold + nonRecoverableUpper(6), -- probe has crossed the upper non-recoverable threshold + nonCriticalLower(7), -- probe has crossed the lower noncritical threshold + criticalLower(8), -- probe has crossed the lower critical threshold + nonRecoverableLower(9), -- probe has crossed the lower non-recoverable threshold + failed(10) -- probe is not functional + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: d1e14d635c0945298c5319380f8ac2f9 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + name: 'Dell R840: Probe [{#SENSOR_LOCALE}]: Critical status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 567f74a71047410c9dcb8d70298160b1 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])<>{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + name: 'Dell R840: Probe [{#SENSOR_LOCALE}]: Not in optimal status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + manual_close: 'YES' + dependencies: + - name: 'Dell R840: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + - name: 'Dell R840: Probe [{#SENSOR_LOCALE}]: Warning status' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + tags: + - tag: scope + value: notice + - uuid: da4cdf74306947e7a6d394cca92c8c70 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell R840: Probe [{#SENSOR_LOCALE}]: Warning status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell R840: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/DELL PowerEdge R840 by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + tags: + - tag: scope + value: availability + - uuid: e498e0b6adca49048b27fcde07880661 + name: 'Probe [{#SENSOR_LOCALE}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a temperature probe of type other than `temperatureProbeTypeIsDiscrete`. + When the value for `temperatureProbeType` is other than `temperatureProbeTypeIsDiscrete`, the value returned for this attribute is the temperature that the probe is reading in Centigrade. + When the value for `temperatureProbeType` is `temperatureProbeTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: aec83bed731d402a841088d092bd6400 + name: 'Dell R840: Probe [{#SENSOR_LOCALE}]: Value' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + master_item: + key: dell.server.sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.1 + - '0' + - '{#SENSOR_LOCALE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 9e2d2bc270704e8eb646b55a7f4e377e + name: 'Virtual disk discovery' + type: DEPENDENT + key: virtualdisk.discovery + delay: '0' + description: 'Virtual disk discovery.' + item_prototypes: + - uuid: 27bb804aa7df49ddbc410b268db63218 + name: 'Virtual disk [{#DISK_NAME}]: Layout type' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.layout[virtualDiskLayout.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The virtual disk's RAID type. + Possible values: + 1: Not one of the following + 2: RAID-0 + 3: RAID-1 + 4: RAID-5 + 5: RAID-6 + 6: RAID-10 + 7: RAID-50 + 8: RAID-60 + 9: Concatenated RAID 1 + 10: Concatenated RAID 5 + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 109cd4fc0cc24a6586a282272b8448bb + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[virtualDiskReadPolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The read policy used by the controller for read operations on this virtual disk. + Possible values: + 1: No Read Ahead. + 2: Read Ahead. + 3: Adaptive Read Ahead. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: e4868bd552d34f79823d3c7518babad8 + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the virtual disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: cf12e14b376940189873430fdfa64c49 + name: 'Virtual disk [{#DISK_NAME}]: Operational state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[virtualDiskOperationalState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The state of the virtual disk when there are progressive operations ongoing. + Possible values: + 1: There is no active operation running. + 2: The virtual disk configuration has changed. The physical disks included in the virtual disk are being modified to support the new configuration. + 3: A Consistency Check (CC) is being performed on the virtual disk. + 4: The virtual disk is being initialized. + 5: BackGround Initialization (BGI) is being performed on the virtual disk. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 344be656d8d84bbca28853d240f5953f + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The current state of this virtual disk (which includes any member physical disks.) + Possible states: + 1: The current state could not be determined. + 2: The virtual disk is operating normally or optimally. + 3: The virtual disk has encountered a failure. Data on the disk is lost or is about to be lost. + 4: The virtual disk encountered a failure with one or all of the constituent redundant physical disks. + The data on the virtual disk might no longer be fault tolerant. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 443b942a8ea64600a6b1bdda2bb75ec3 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + name: 'Dell R840: Virtual disk [{#DISK_NAME}]: Failed state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the virtual disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: be479b50bc2c4320afff5eef0292bc88 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + name: 'Dell R840: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the virtual disk for warnings or errors.' + dependencies: + - name: 'Dell R840: Virtual disk [{#DISK_NAME}]: Failed state' + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + - uuid: db4f2a2abead4efba3d54124b2e992f7 + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[virtualDiskWritePolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The write policy used by the controller for write operations on this virtual disk. + Possible values: + 1: Write Through. + 2: Write Back. + 3: Force Write Back. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: 630725a2e858465ba6c3a6b5b8982d93 + name: 'Dell R840: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.virtual.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 43169b68868240d589e8c87bba94ce86 + name: 'Voltage probe discovery' + type: DEPENDENT + key: voltage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + formulaid: A + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + formulaid: C + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Voltage probe discovery.' + item_prototypes: + - uuid: d8a499c3a77741d39e4108469009f9b0 + name: 'Voltage probe [{#VPROBE_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.voltage.status[{#VPROBE_NAME}]' + delay: '0' + description: 'This attribute defines the status of the voltage probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + trigger_prototypes: + - uuid: 74ee37bcbbcc4122814912218889da61 + expression: 'last(/DELL PowerEdge R840 by SNMP/dell.server.voltage.status[{#VPROBE_NAME}])<>3' + name: 'Dell R840: Voltage probe [{#VPROBE_NAME}]: Status is not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device''s voltage.' + tags: + - tag: scope + value: availability + - uuid: 7379dd15da4e48f295ab466eb45895da + name: 'Voltage probe [{#VPROBE_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'This attribute defines the reading for a voltage probe.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + graph_prototypes: + - uuid: c40ac46b891f4ed892c532c8ff73ea50 + name: 'Dell R840: Voltage probe [{#VPROBE_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + master_item: + key: dell.server.voltage.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#VPROBE_NAME}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1 + - '0' + - '{#VPROBE_TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: 'dell poweredge' + macros: + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + value: '^.*Voltage.*$' + description: 'Sets the regex string of voltage probe names to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe names to ignore in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + value: 18|16 + description: 'Sets the regex string of voltage probe types to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe types to ignore in discovery.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + value: '3' + description: 'The critical status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + value: '2' + description: 'The OK status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + value: '5' + description: 'The critical status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + value: '6' + description: 'The disaster status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.SMART.STATUS.FAIL}' + value: '1' + description: 'The critical S.M.A.R.T status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"critical"}' + value: '5' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + value: '6' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + value: '10' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.CRIT}' + value: '5' + description: 'The critical status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.DISASTER}' + value: '6' + description: 'The disaster status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.WARN}' + value: '4' + description: 'The warning status of health for the trigger expression.' + - macro: '{$DELL.SNMP.IFCONTROL}' + value: '1' + description: 'The link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"critical"}' + value: '5' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + value: '6' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + value: '3' + description: 'The OK status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP agent availability trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + value: '3' + description: 'The critical status of the virtual disk for the trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + value: '4' + description: 'The warning status of the virtual disk for the trigger expression.' + dashboards: + - uuid: 05115b5959dd46e4aa916b6a13cf2e6b + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: item + name: 'System health' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.status[globalSystemStatus]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '36' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.hw.model[systemModelName]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '36' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'NIC*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Voltage probe*Voltage' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Fan*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + valuemaps: + - uuid: 692c968229d64965b3f6c59ca79b4522 + name: 'IDRAC-MIB-SMIv2::batteryState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Ready + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - value: '5' + newvalue: Missing + - value: '6' + newvalue: Charging + - value: '7' + newvalue: 'Below threshold' + - uuid: 1ee27c8f7c9d4f7cbafc8c7567b70c67 + name: 'IDRAC-MIB-SMIv2::BooleanType' + mappings: + - value: '0' + newvalue: ok + - value: '1' + newvalue: failed + - uuid: a866da3a7c4e43d086efafb07178f8ec + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: connected + - value: '2' + newvalue: disconnected + - value: '3' + newvalue: driverBad + - value: '4' + newvalue: driverDisabled + - value: '10' + newvalue: hardwareInitalizing + - value: '11' + newvalue: hardwareResetting + - value: '12' + newvalue: hardwareClosing + - value: '13' + newvalue: hardwareNotReady + - uuid: c238adb07fea463a8cb21f962fcb24d9 + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: ee4ff377e3984685993e230911e6c13e + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: 7409409d584845e39579b478171a600a + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: HDD + - value: '3' + newvalue: SSD + - uuid: 092b816c537e4fe79c7f5826037c5872 + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + mappings: + - value: '1' + newvalue: internalError + - value: '2' + newvalue: thermalTrip + - value: '32' + newvalue: configurationError + - value: '128' + newvalue: processorPresent + - value: '256' + newvalue: processorDisabled + - value: '512' + newvalue: terminatorPresent + - value: '1024' + newvalue: processorThrottled + - uuid: 1a301ddb56ba46d38314d5c3129544b4 + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCriticalUpper + - value: '5' + newvalue: criticalUpper + - value: '6' + newvalue: nonRecoverableUpper + - value: '7' + newvalue: nonCriticalLower + - value: '8' + newvalue: criticalLower + - value: '9' + newvalue: nonRecoverableLower + - value: '10' + newvalue: failed + - uuid: f3e45e2d860b48c2a6f2b7a068cac361 + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: RAID-0 + - value: '3' + newvalue: RAID-1 + - value: '4' + newvalue: RAID-5 + - value: '5' + newvalue: RAID-6 + - value: '6' + newvalue: RAID-10 + - value: '7' + newvalue: RAID-50 + - value: '8' + newvalue: RAID-60 + - value: '9' + newvalue: 'Concatenated RAID 1' + - value: '10' + newvalue: 'Concatenated RAID 5' + - uuid: 6d457df3bf6646b3824ccc7be984587c + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + mappings: + - value: '1' + newvalue: 'Not applicable' + - value: '2' + newvalue: Reconstructing + - value: '3' + newvalue: Resynching + - value: '4' + newvalue: Initializing + - value: '5' + newvalue: 'Background init' + - uuid: 47bf555344fd4fc1a15b372374bc75a7 + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + mappings: + - value: '1' + newvalue: 'No Read Ahead' + - value: '2' + newvalue: 'Read Ahead' + - value: '3' + newvalue: 'Adaptive Read Ahead' + - uuid: 2e035bf66ff144d8ab5e0c681bb246f6 + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - uuid: 59eff775037e4e58925d3475ed0b0e34 + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + mappings: + - value: '1' + newvalue: 'Write Through' + - value: '2' + newvalue: 'Write Back' + - value: '3' + newvalue: 'Force Write Back' + - uuid: 6b1b96e063084c8eb474006a9c691fb5 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 93a63868ca09460e89d3f40f72259828 + expression: '(last(/DELL PowerEdge R840 by SNMP/dell.server.hw.uptime[systemPowerUpTime])>0 and last(/DELL PowerEdge R840 by SNMP/dell.server.hw.uptime[systemPowerUpTime])<10m) or (last(/DELL PowerEdge R840 by SNMP/dell.server.hw.uptime[systemPowerUpTime])=0 and last(/DELL PowerEdge R840 by SNMP/dell.server.net.uptime[snmpEngineTime])<10m)' + name: 'Dell R840: Host has been restarted' + event_name: 'Dell R840: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: b0782a6e652a457b8004ae0436d2b3b0 + name: 'Dell R840: Uptime' + graph_items: + - color: 199C0D + item: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + - sortorder: '1' + color: F63100 + item: + host: 'DELL PowerEdge R840 by SNMP' + key: 'dell.server.net.uptime[snmpEngineTime]' diff --git a/Dell_Force_S-Series_by_SNMP.yaml b/Dell_Force_S-Series_by_SNMP.yaml new file mode 100644 index 0000000..88c7bfc --- /dev/null +++ b/Dell_Force_S-Series_by_SNMP.yaml @@ -0,0 +1,1849 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: e5ec7acc7efc4ac491b6fa552ab077ae + template: 'Dell Force S-Series by SNMP' + name: 'Dell Force S-Series by SNMP' + description: | + Template Dell Force S-Series + + MIBs used: + F10-S-SERIES-CHASSIS-MIB + EtherLike-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 3853e6ef8cbf4e59a64422659f66bbb7 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f186488b337f4b1b8971992e8118d9cc + expression: 'max(/Dell Force S-Series by SNMP/icmpping,#3)=0' + name: 'Dell Force S-Series: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: ef0432ffcf0546bf82177193866861cf + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 46798adec54c47a38cb599773767a2a7 + expression: 'min(/Dell Force S-Series by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Dell Force S-Series by SNMP/icmppingloss,5m)<100' + name: 'Dell Force S-Series: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Dell Force S-Series: Unavailable by ICMP ping' + expression: 'max(/Dell Force S-Series by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9b56a2a725bf4632bc28c6a5d0c3d64b + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 04828676081147b4bfad0ad03385986e + expression: 'avg(/Dell Force S-Series by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Dell Force S-Series: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Dell Force S-Series: High ICMP ping loss' + expression: 'min(/Dell Force S-Series by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Dell Force S-Series by SNMP/icmppingloss,5m)<100' + - name: 'Dell Force S-Series: Unavailable by ICMP ping' + expression: 'max(/Dell Force S-Series by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ba8178338b0e41ac97b0265f98b90770 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: d4df70f2c5f04ad2b7f1b4e8ab9a9993 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 804476e771374e22b8767f90f271654a + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5297253edb09463e8fdb6f1905e4f494 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f3d1970fc4404b4fa50a855433681105 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a36cccdaf24c4e82801ebb44eaa5e25a + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 2dc35c5813b042fd96f2ebc53f565799 + expression: 'last(/Dell Force S-Series by SNMP/system.name,#1)<>last(/Dell Force S-Series by SNMP/system.name,#2) and length(last(/Dell Force S-Series by SNMP/system.name))>0' + name: 'Dell Force S-Series: System name has changed' + event_name: 'Dell Force S-Series: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 26a0a117545f4b17986f0b48996fec47 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 651059497914431f827ad82a982e139b + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7ce4f98cdc6741bbb03f6e2ea03432c4 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: da99689aa1394d17af5008e5678915bc + expression: 'max(/Dell Force S-Series by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Dell Force S-Series: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Dell Force S-Series: Unavailable by ICMP ping' + expression: 'max(/Dell Force S-Series by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: f35cb754ebd748b7842c67461264f48d + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.6027.3.10.1.2.4.1.1]' + key: fan.discovery + delay: 1h + item_prototypes: + - uuid: c916b4658e914e93af13b4fe7b58138e + name: 'Fan {#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6027.3.10.1.2.4.1.2.{#SNMPINDEX}]' + key: 'sensor.fan.status[chSysFanTrayOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: F10-S-SERIES-CHASSIS-MIB + The status of the fan tray {#SNMPVALUE}. + valuemap: + name: 'F10-S-SERIES-CHASSIS-MIB::chSysFanTrayOperStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: aecc6fdd58404347b3074b0c1db63f09 + expression: 'count(/Dell Force S-Series by SNMP/sensor.fan.status[chSysFanTrayOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Dell Force S-Series: Fan {#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a53271304dcf418aa5afdaa145436b70 + expression: 'count(/Dell Force S-Series by SNMP/sensor.fan.status[chSysFanTrayOperStatus.{#SNMPINDEX}],#1,"ne","{$FAN_OK_STATUS}")=1' + name: 'Dell Force S-Series: Fan {#SNMPVALUE}: Fan is not in normal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the fan unit' + dependencies: + - name: 'Dell Force S-Series: Fan {#SNMPVALUE}: Fan is in critical state' + expression: 'count(/Dell Force S-Series by SNMP/sensor.fan.status[chSysFanTrayOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + tags: + - tag: scope + value: notice + - uuid: ff38ddf97a2a47c88ad93d590dedc22a + name: 'CPU and Memory and Flash Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.6027.3.10.1.2.9.1.1]' + key: module.discovery + delay: 1h + item_prototypes: + - uuid: f2f0febdd3c14d77a47461c22b883bb5 + name: '#{#SNMPINDEX}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6027.3.10.1.2.9.1.3.{#SNMPINDEX}]' + key: 'system.cpu.util[chStackUnitCpuUtil1Min.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: F10-S-SERIES-CHASSIS-MIB + CPU utilization in percentage for last 1 minute. + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 002c0f19cfe54fe08da2183654752470 + expression: 'min(/Dell Force S-Series by SNMP/system.cpu.util[chStackUnitCpuUtil1Min.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Dell Force S-Series: #{#SNMPINDEX}: High CPU utilization' + event_name: 'Dell Force S-Series: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 3571d6508f07442983936fdcc2ba733f + name: '#{#SNMPINDEX}: Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6027.3.10.1.2.9.1.5.{#SNMPINDEX}]' + key: 'vm.memory.util[chStackUnitMemUsageUtil.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: F10-S-SERIES-CHASSIS-MIB + Total memory usage in percentage. + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 41baaaa2eb6246b7982ac76928fbd0f8 + expression: 'min(/Dell Force S-Series by SNMP/vm.memory.util[chStackUnitMemUsageUtil.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Dell Force S-Series: #{#SNMPINDEX}: High memory utilization' + event_name: 'Dell Force S-Series: #{#SNMPINDEX}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: d5ec0b9ce1f04b0abd0b4bfe6aa28f6b + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Dell Force S-Series by SNMP' + key: 'system.cpu.util[chStackUnitCpuUtil1Min.{#SNMPINDEX}]' + - uuid: 69c63b7fb65347cc9301b02e1f9cd45e + name: '#{#SNMPINDEX}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Dell Force S-Series by SNMP' + key: 'vm.memory.util[chStackUnitMemUsageUtil.{#SNMPINDEX}]' + - uuid: 620805730ede4c7281a1c736fcfeb130 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 2130b9e384b14fd7909d421c7756284a + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5a61f0168e034e8baf6794cf5cc5ce70 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 19e183dbf814471e885f2fef4b84e759 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 26135962ebd246ce82b3d101e7eb92a4 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e3b1efbafa204424b0a61cf877ad168b + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6994853a31054989b1e0fc25420f88b1 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cd36f7b9176349d1a5b69c7eef672986 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cf571531ada84121a94e1084070560c0 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b7b55335f42b4ace8434588bc70f7e60 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Dell Force S-Series: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ec1b53ae24ff443083ab691e1826734f + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f4903edf173f470482174ee9937cbb32 + expression: | + change(/Dell Force S-Series by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Dell Force S-Series by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Dell Force S-Series by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Dell Force S-Series by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Dell Force S-Series by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Dell Force S-Series by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Dell Force S-Series by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Dell Force S-Series by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Dell Force S-Series by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Dell Force S-Series by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Dell Force S-Series: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Dell Force S-Series: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: e85a287c2e0e48e19cb43bf74d3f3535 + expression: | + (avg(/Dell Force S-Series by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Dell Force S-Series by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Dell Force S-Series by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Dell Force S-Series by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Dell Force S-Series by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Dell Force S-Series by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Dell Force S-Series by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Dell Force S-Series by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Dell Force S-Series by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Dell Force S-Series: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Dell Force S-Series: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Dell Force S-Series: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 00d2988bdd084719ba781562920d20fa + expression: | + min(/Dell Force S-Series by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Dell Force S-Series by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Dell Force S-Series by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Dell Force S-Series by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Dell Force S-Series: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Dell Force S-Series: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Dell Force S-Series: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Dell Force S-Series by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 2841f46964a74c56b5d16233c924bc58 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Dell Force S-Series by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Dell Force S-Series by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Dell Force S-Series by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Dell Force S-Series by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Dell Force S-Series by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Dell Force S-Series by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 6782ece35ded46b08a4f45a9743b1ff5 + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: 200797ecab6f416191d2ef0c836da4f5 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: edc143c44b2d465cac94c4cf0fb588a6 + expression: 'last(/Dell Force S-Series by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'Dell Force S-Series: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + - uuid: 21117a6eb71f4837971ccedfff7596f6 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.6027.3.10.1.2.3.1.1]' + key: psu.discovery + delay: 1h + description: 'A list of power supply residents in the S-series chassis.' + item_prototypes: + - uuid: 7cc5081ad6114124845beedbe4725899 + name: 'PSU {#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6027.3.10.1.2.3.1.2.{#SNMPINDEX}]' + key: 'sensor.psu.status[chSysPowerSupplyOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: F10-S-SERIES-CHASSIS-MIB + The status of the power supply {#SNMPVALUE} + valuemap: + name: 'F10-S-SERIES-CHASSIS-MIB::chSysPowerSupplyOperStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 764f08ab7a29481fa73a63ae256ff154 + expression: 'count(/Dell Force S-Series by SNMP/sensor.psu.status[chSysPowerSupplyOperStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'Dell Force S-Series: PSU {#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a7d4ac882ec24cce9839c6012c7fa562 + expression: 'count(/Dell Force S-Series by SNMP/sensor.psu.status[chSysPowerSupplyOperStatus.{#SNMPINDEX}],#1,"ne","{$PSU_OK_STATUS}")=1' + name: 'Dell Force S-Series: PSU {#SNMPVALUE}: Power supply is not in normal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Dell Force S-Series: PSU {#SNMPVALUE}: Power supply is in critical state' + expression: 'count(/Dell Force S-Series by SNMP/sensor.psu.status[chSysPowerSupplyOperStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + tags: + - tag: scope + value: notice + - uuid: a619474b839642f69e583a2c63e8b4ba + name: 'Stack Unit Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.6027.3.10.1.2.2.1.2]' + key: stack.discovery + delay: 1h + item_prototypes: + - uuid: 4eaf5b777b0c4efeb34140618e18aaa5 + name: 'Device {#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6027.3.10.1.2.2.1.14.{#SNMPINDEX}]' + key: 'sensor.temp.value[chStackUnitTemp.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: F10-S-SERIES-CHASSIS-MIB + The temperature of the unit. + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: dc1064de6a6b4533be812e590b96927b + expression: 'avg(/Dell Force S-Series by SNMP/sensor.temp.value[chStackUnitTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Dell Force S-Series by SNMP/sensor.temp.value[chStackUnitTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'Dell Force S-Series: Device {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Dell Force S-Series: Device {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f4d0a2c0b1a9468990e1f6dbfef1ab75 + expression: 'avg(/Dell Force S-Series by SNMP/sensor.temp.value[chStackUnitTemp.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Dell Force S-Series by SNMP/sensor.temp.value[chStackUnitTemp.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Dell Force S-Series: Device {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Dell Force S-Series: Device {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Dell Force S-Series: Device {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/Dell Force S-Series by SNMP/sensor.temp.value[chStackUnitTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/Dell Force S-Series by SNMP/sensor.temp.value[chStackUnitTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f1bbf02af05041ef95ff80ff18fc02a7 + expression: 'avg(/Dell Force S-Series by SNMP/sensor.temp.value[chStackUnitTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Dell Force S-Series by SNMP/sensor.temp.value[chStackUnitTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Dell Force S-Series: Device {#SNMPVALUE}: Temperature is too low' + event_name: 'Dell Force S-Series: Device {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d6e3d7bb74b84e0c895a1b1b740f0e14 + name: '#{#SNMPVALUE}: Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6027.3.10.1.2.2.1.7.{#SNMPINDEX}]' + key: 'system.hw.model[chStackUnitModelID.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F10-S-SERIES-CHASSIS-MIB + The plugged-in model ID for this unit. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: eb6853c30dd04581b2e362d7747b40b5 + name: '#{#SNMPVALUE}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6027.3.10.1.2.2.1.12.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[chStackUnitSerialNumber.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F10-S-SERIES-CHASSIS-MIB + The unit's serial number. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 6f02e903dab24bf294015f43e0b52504 + expression: 'last(/Dell Force S-Series by SNMP/system.hw.serialnumber[chStackUnitSerialNumber.{#SNMPINDEX}],#1)<>last(/Dell Force S-Series by SNMP/system.hw.serialnumber[chStackUnitSerialNumber.{#SNMPINDEX}],#2) and length(last(/Dell Force S-Series by SNMP/system.hw.serialnumber[chStackUnitSerialNumber.{#SNMPINDEX}]))>0' + name: 'Dell Force S-Series: #{#SNMPVALUE}: Device has been replaced' + event_name: 'Dell Force S-Series: #{#SNMPVALUE}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bd68fcd8247744cb8c10e3dfc699bc7f + name: '#{#SNMPVALUE}: Hardware version(revision)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6027.3.10.1.2.2.1.21.{#SNMPINDEX}]' + key: 'system.hw.version[chStackUnitProductRev.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F10-S-SERIES-CHASSIS-MIB + The unit manufacturer's product revision + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 67cce945315e426f9b12456fe95a6c1a + name: '#{#SNMPVALUE}: Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.6027.3.10.1.2.2.1.10.{#SNMPINDEX}]' + key: 'system.sw.os[chStackUnitCodeVersion.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F10-S-SERIES-CHASSIS-MIB + Current code version of this unit. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + trigger_prototypes: + - uuid: 66049aa1d7cb45ebac1fe5292c309ba2 + expression: 'last(/Dell Force S-Series by SNMP/system.sw.os[chStackUnitCodeVersion.{#SNMPINDEX}],#1)<>last(/Dell Force S-Series by SNMP/system.sw.os[chStackUnitCodeVersion.{#SNMPINDEX}],#2) and length(last(/Dell Force S-Series by SNMP/system.sw.os[chStackUnitCodeVersion.{#SNMPINDEX}]))>0' + name: 'Dell Force S-Series: #{#SNMPVALUE}: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Dell Force S-Series: System name has changed' + expression: 'last(/Dell Force S-Series by SNMP/system.name,#1)<>last(/Dell Force S-Series by SNMP/system.name,#2) and length(last(/Dell Force S-Series by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + tags: + - tag: class + value: network + - tag: target + value: dell + - tag: target + value: force-s-series + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '2' + - macro: '{$FAN_OK_STATUS}' + value: '1' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '2' + - macro: '{$PSU_OK_STATUS}' + value: '1' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '65' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '55' + dashboards: + - uuid: 5074235070b54485bd6c72688d013cb9 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Dell Force S-Series by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 1962bc26a6064ee6868371f86d44dbeb + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: b389c759db0448ffbe28d4572fbfb3e9 + name: 'F10-S-SERIES-CHASSIS-MIB::chSysFanTrayOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: absent + - uuid: 2532df482bd348ba8202c3eb2b76340b + name: 'F10-S-SERIES-CHASSIS-MIB::chSysPowerSupplyOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: absent + - uuid: 7f124ca304d9431386bba2edbb9b2560 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 9fde4e729aaf43cc993167d7c0bcae23 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 38ce73f0eb6b4c4a912b61b2014156fb + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 01bced41864644fd842efed7085fda69 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 4246a064d33f428c8441491402ae8090 + expression: '(last(/Dell Force S-Series by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Dell Force S-Series by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Dell Force S-Series by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Dell Force S-Series by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Dell Force S-Series: Host has been restarted' + event_name: 'Dell Force S-Series: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Dell Force S-Series: No SNMP data collection' + expression: 'max(/Dell Force S-Series by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Dell_iDRAC_by_SNMP.yaml b/Dell_iDRAC_by_SNMP.yaml new file mode 100644 index 0000000..c1c65fb --- /dev/null +++ b/Dell_iDRAC_by_SNMP.yaml @@ -0,0 +1,2608 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 43dc5c8a9a0e4786b64e44422c7f32b4 + template: 'Dell iDRAC by SNMP' + name: 'Dell iDRAC by SNMP' + description: | + Template for Dell servers with iDRAC version 7 and later. + + MIBs used: + HOST-RESOURCES-MIB + IDRAC-MIB-SMIv2 + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/426752-discussion-thread-for-official-zabbix-dell-templates + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 3d6ef68b4a914089ab4356ab33a3f3d7 + name: 'SNMP walk RAID controllers table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79,1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2]' + key: dell.server.array.controller.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::controllerTable`.' + tags: + - tag: component + value: raw + - uuid: d1e52200ed744019b87a91d25beef034 + name: 'SNMP walk Battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4,1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21]' + key: dell.server.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of RAID Controllers Table `IDRAC-MIB-SMIv2::batteryTable`.' + tags: + - tag: component + value: raw + - uuid: 1c9a75cfdbf94f3a8a4fdbef2914506c + name: 'BIOS version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.4.300.50.1.8.1.1]' + key: dell.server.bios.version + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the version name of the system BIOS. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: d0b46eadaeb04edbb9cfc27637397c91 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'dell.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Name and contact information of the contact person for the node. If not provided, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 3adaaa4482b24de29aa4f2fdf8bd46ca + name: 'SNMP walk Processor device tables' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.30.1.26,1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.1]' + key: dell.server.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Processor Device Status Table `IDRAC-MIB-SMIv2::processorDeviceTable` and `IDRAC-MIB-SMIv2::processorDeviceStatusTable`.' + tags: + - tag: component + value: raw + - uuid: 9ef776ba14ab4eb7aed993711832cf4e + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'dell.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating system, and networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: c005a65a9d3447d981260c6410546954 + name: 'SNMP walk Physical disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35,1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11]' + key: dell.server.disk.physical.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Physical Disk Table `IDRAC-MIB-SMIv2::physicalDiskTable`.' + tags: + - tag: component + value: raw + - uuid: 719c2e0c5b664180af1af80125c588aa + name: 'SNMP walk Virtual disk table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6,1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4]' + key: dell.server.disk.virtual.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Virtual Disk Table `IDRAC-MIB-SMIv2::virtualDiskTable`.' + tags: + - tag: component + value: raw + - uuid: 8687491307cd4aae8882781a223169c0 + name: 'SNMP walk Cooling device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.12.1.5,1.3.6.1.4.1.674.10892.5.4.700.12.1.8,1.3.6.1.4.1.674.10892.5.4.700.12.1.7,1.3.6.1.4.1.674.10892.5.4.700.12.1.6]' + key: dell.server.fan.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Cooling Device Table `IDRAC-MIB-SMIv2::coolingDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: ea7ba9945a13407d9d9cba8b34ec480f + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.1.8.0]' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the firmware version of a remote access card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 480535363667492389588bf2e66a69d4 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.firmware[racFirmwareVersion],#1)<>last(/Dell iDRAC by SNMP/dell.server.hw.firmware[racFirmwareVersion],#2) and length(last(/Dell iDRAC by SNMP/dell.server.hw.firmware[racFirmwareVersion]))>0' + name: 'Dell iDRAC: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7cd756be916e4173a653ea424d8d5232 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.12.0]' + key: 'dell.server.hw.model[systemModelName]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the model name of the system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: d0b2ed5ce8e84a06ad1081ade25da16a + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.2.0]' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the service tag of the system. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: a4ad832c9a174442913b4b08b38eee83 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.serialnumber[systemServiceTag],#1)<>last(/Dell iDRAC by SNMP/dell.server.hw.serialnumber[systemServiceTag],#2) and length(last(/Dell iDRAC by SNMP/dell.server.hw.serialnumber[systemServiceTag]))>0' + name: 'Dell iDRAC: Device has been replaced' + event_name: 'Dell iDRAC: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 78cf22c146e4432594d844c592c25d76 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.5.0]' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + trends: '0' + units: uptime + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the power-up time of the system in seconds. + tags: + - tag: component + value: system + - uuid: 97044f584e954ae9b3d57abf0ced73eb + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'dell.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., 'telephone closet, 3rd floor'). If the location is unknown, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 94191a9ec1584435974cb3c8e2d65f99 + name: 'Memory, total size' + type: CALCULATED + key: dell.server.memory.size.total + units: B + params: 'sum(last_foreach(//dell.server.memory.size[*]))' + description: 'Total memory amount on the device.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + triggers: + - uuid: 05bd4537d8b84a028658a9abbe9ab292 + expression: 'change(/Dell iDRAC by SNMP/dell.server.memory.size.total)>0' + name: 'Dell iDRAC: Memory amount has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 7ead89af65ce480593edef80919ac1d5 + name: 'SNMP walk Memory device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1,1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1]' + key: dell.server.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Memory Device Table `IDRAC-MIB-SMIv2::memoryDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 9032ffe4b0314a47a2f3241b38156592 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'dell.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: d10fc658e7324deaa5318f69d6161a88 + expression: 'last(/Dell iDRAC by SNMP/dell.server.name[sysName],#1)<>last(/Dell iDRAC by SNMP/dell.server.name[sysName],#2) and length(last(/Dell iDRAC by SNMP/dell.server.name[sysName]))>0' + name: 'Dell iDRAC: System name has changed' + event_name: 'Dell iDRAC: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4b7969bd9b1441d7b7ddabaa786a31b7 + name: 'SNMP walk Network device table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1,1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1, 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1]' + key: dell.server.net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Network Device Table `IDRAC-MIB-SMIv2::networkDeviceTable`.' + tags: + - tag: component + value: raw + - uuid: 11d66130f1d04acfb439ef65dec31ea4 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.6.3.10.2.1.3.0]' + key: 'dell.server.net.uptime[snmpEngineTime]' + trends: '0' + units: uptime + description: | + MIB: SNMP-FRAMEWORK-MIB + The number of seconds since the value of the snmpEngineBoots object last changed. + tags: + - tag: component + value: system + - uuid: 3930a7fa88de48beac130cedfe8dc0f7 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'dell.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 9a76516aba9543348b160d366a0f7f80 + name: 'SNMP walk Power supply table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.12.1.5,1.3.6.1.4.1.674.10892.5.4.600.12.1.8]' + key: dell.server.psu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Power Supply Table `IDRAC-MIB-SMIv2::powerSupplyTable`.' + tags: + - tag: component + value: raw + - uuid: 34707e1be349441aa74cb91926d4b5d6 + name: 'SNMP walk Temperature sensor table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.700.20.1.1,1.3.6.1.4.1.674.10892.5.4.700.20.1.8,1.3.6.1.4.1.674.10892.5.4.700.20.1.6,1.3.6.1.4.1.674.10892.5.4.700.20.1.5]' + key: dell.server.sensor.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Temperature Probe Table `IDRAC-MIB-SMIv2::temperatureProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 6164d49ba01c4fe895bed48ee3489edc + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.2.1.0]' + key: 'dell.server.status[globalSystemStatus]' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the overall rollup status of all the components in the system monitored by the remote access card. Includes system, storage, IO devices, iDRAC, CPU, memory, etc. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: c602802bb6f549e383832bc98c0b55dd + expression: 'last(/Dell iDRAC by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.DISASTER}' + name: 'Dell iDRAC: System is in unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 4e6d3cd166454403a9113fcb8aac9330 + expression: 'last(/Dell iDRAC by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + name: 'Dell iDRAC: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for errors.' + tags: + - tag: scope + value: availability + - uuid: 2b7b4a8610d9417c87fb620f5a8dc32b + expression: 'last(/Dell iDRAC by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.WARN}' + name: 'Dell iDRAC: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'Dell iDRAC: System status is in critical state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.status[globalSystemStatus])={$DELL.SNMP.HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: availability + - uuid: 3c93c8909ad14324947beda64c02f386 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.674.10892.5.1.3.6.0]' + key: 'dell.server.sw.os[systemOSName]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the name of the operating system that the host is running. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: b724627a28704440aedb965cbacd7e66 + expression: 'last(/Dell iDRAC by SNMP/dell.server.sw.os[systemOSName],#1)<>last(/Dell iDRAC by SNMP/dell.server.sw.os[systemOSName],#2) and length(last(/Dell iDRAC by SNMP/dell.server.sw.os[systemOSName]))>0' + name: 'Dell iDRAC: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possibly, the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7edbcc5d45a44fbaaafcc7417d7ff26b + name: 'SNMP walk System battery table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1,1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1]' + key: dell.server.system.battery.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of System Battery Table `IDRAC-MIB-SMIv2::systemBatteryTable`.' + tags: + - tag: component + value: raw + - uuid: 1cd3315e2739438ba245345057112a0e + name: 'SNMP walk Voltage probe table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1,1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1]' + key: dell.server.voltage.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning of Voltage Probe Table `IDRAC-MIB-SMIv2::voltageProbeTable`.' + tags: + - tag: component + value: raw + - uuid: 7e7e65916304419a8b5c43c9c08a20fc + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other `snmptrap` items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 2e3b11fcdd2146018676621143fd297b + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: cffe4af5209841119605e7a82e9a8429 + expression: 'max(/Dell iDRAC by SNMP/zabbix[host,snmp,available],{$DELL.SNMP.TIMEOUT})=0' + name: 'Dell iDRAC: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 172a19e093344e92847264a5e43e748e + name: 'Array controller discovery' + type: DEPENDENT + key: array.discovery + delay: '0' + description: 'Array controller discovery.' + item_prototypes: + - uuid: 94b5a43e08af4771bc91927ba8c42f18 + name: 'Controller [{#CNTLR_NAME}]: Model' + type: DEPENDENT + key: 'dell.server.hw.diskarray.model[controllerName.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The controller's name as represented in Storage Management. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: a282d4269206436c8d7773ccb07ac342 + name: 'Controller [{#CNTLR_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the controller itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.array.controller.walk + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 1b2ce157d2d04bffac1f429f8cee7113 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + name: 'Dell iDRAC: Controller [{#CNTLR_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell iDRAC: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + - uuid: 5f1c0af2106049c585a5ae79ede870ce + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + name: 'Dell iDRAC: Controller [{#CNTLR_NAME}]: Unrecoverable state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 9b8f849ac0554122a11902de6ec63515 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + name: 'Dell iDRAC: Controller [{#CNTLR_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell iDRAC: Controller [{#CNTLR_NAME}]: Critical state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + - name: 'Dell iDRAC: Controller [{#CNTLR_NAME}]: Unrecoverable state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.diskarray.status[controllerComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.array.controller.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38 + - '0' + - '{#CNTLR_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: dcbb7a09085e426cbd82358aad3420cb + name: 'Battery discovery' + type: DEPENDENT + key: battery.discovery + delay: '0' + description: 'Battery discovery.' + item_prototypes: + - uuid: 8a97e10049c74f1d95c900f0b7623c21 + name: 'Battery [{#BATTERY_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.battery.status[batteryState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Current state of battery. + Possible values: + 1: The current state could not be determined. + 2: The battery is operating normally. + 3: The battery has failed and needs to be replaced. + 4: The battery temperature is high or charge level is depleting. + 5: The battery is missing or not detected. + 6: The battery is undergoing the re-charge phase. + 7: The battery voltage or charge level is below the threshold. + valuemap: + name: 'IDRAC-MIB-SMIv2::batteryState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.battery.walk + tags: + - tag: component + value: battery + - tag: component + value: diskarray + trigger_prototypes: + - uuid: 0bdd6d7963104559bff7cbac7dea3dc4 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + name: 'Dell iDRAC: Battery [{#BATTERY_NAME}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 18fb7e2f1aa64fb291e0071ddfac5958 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])<>{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + name: 'Dell iDRAC: Battery [{#BATTERY_NAME}]: Not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell iDRAC: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + - name: 'Dell iDRAC: Battery [{#BATTERY_NAME}]: Warning state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + tags: + - tag: scope + value: availability + - uuid: e81d32b4b1f84102912443a415cd5c0d + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + name: 'Dell iDRAC: Battery [{#BATTERY_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell iDRAC: Battery [{#BATTERY_NAME}]: Critical state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.battery.status[batteryState.{#SNMPINDEX}])={$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#BATTERY_NUM}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.1 + - '0' + - '{#BATTERY_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.15.1.21 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8e26e8215ed64121b900d99d03bdf8cf + name: 'CPU status discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: 'CPU status discovery.' + item_prototypes: + - uuid: c5e3ef25855e4351bf439a2a24e49177 + name: 'CPU [{#CPU_FQDD}]: State' + type: DEPENDENT + key: 'dell.server.cpu.state[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the reading of the processor device status probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 64b14a62acc34a619e576c3565d09e93 + expression: 'bitand(last(/Dell iDRAC by SNMP/dell.server.cpu.state[cpu.{#SNMPINDEX}],#1),128)=0' + name: 'Dell iDRAC: CPU [{#CPU_FQDD}]: Reading error' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU probe reading flag is not `processorPresent`. + tags: + - tag: scope + value: availability + - uuid: 8a40af6feb214ab7b2ebd9b04b19503f + name: 'CPU [{#CPU_FQDD}]: Status' + type: DEPENDENT + key: 'dell.server.cpu.status[cpu.{#SNMPINDEX}]' + delay: '0' + description: 'This attribute defines the status of the processor device status probe. This status will be joined into the `processorDeviceStatus` attribute.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.32.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 654449144f9849a0878facf4313e5200 + expression: 'last(/Dell iDRAC by SNMP/dell.server.cpu.status[cpu.{#SNMPINDEX}],#1)<>3' + name: 'Dell iDRAC: CPU [{#CPU_FQDD}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + CPU status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.30.1.26 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 65ac153aa776405893283dfc8903d7a5 + name: 'Fan discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + filter: + conditions: + - macro: '{#TYPE}' + value: '3' + formulaid: A + description: 'Fan discovery.' + item_prototypes: + - uuid: 643c0597d2674bce8bbf1a3726f0a744 + name: 'Fan [{#FAN_DESCR}]: Speed' + type: DEPENDENT + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + delay: '0' + units: rpm + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a cooling device of a subtype other than `coolingDeviceSubTypeIsDiscrete`. + When the value for `coolingDeviceSubType` is other than `coolingDeviceSubTypeIsDiscrete`, the value returned for this attribute is the speed in RPM or the "OFF/ON" value of the cooling device. + When the value for `coolingDeviceSubType` is `coolingDeviceSubTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + - uuid: 6dcd0f28f3df424cbc5a5e738e0f5983 + name: 'Fan [{#FAN_DESCR}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.fan.status[{#FAN_DESCR}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the cooling device. + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.fan.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 9cd6812fe03c4d509b796bf08478f405 + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + name: 'Dell iDRAC: Fan [{#FAN_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: availability + - uuid: e145f2dea918462892c77bab3159a7af + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell iDRAC: Fan [{#FAN_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'Dell iDRAC: Fan [{#FAN_DESCR}]: Critical state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"} or last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"} or last(/Dell iDRAC by SNMP/dell.server.sensor.fan.status[{#FAN_DESCR}])={$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 9730d69d3b0b4b05955b1619662d490b + name: 'Dell iDRAC: Fan [{#FAN_DESCR}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.sensor.fan.speed[{#FAN_DESCR}]' + master_item: + key: dell.server.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.5 + - '0' + - '{#FAN_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.8 + - '0' + - '{#TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.700.12.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 7c73715f50e64f22a7616ed9bcf3c997 + name: 'Memory discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: 'Memory discovery.' + item_prototypes: + - uuid: 046db252dba84fdaa80e9e69a3df060e + name: 'Memory [{#SNMPVALUE}]: Size' + type: DEPENDENT + key: 'dell.server.memory.size[{#SNMPVALUE}]' + delay: '0' + units: B + description: 'This attribute defines the size, in KB, of the memory device. Zero indicates no memory installed; 2,147,483,647 indicates an unknown memory size.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.14.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + - uuid: 6a0e3835c71c4f1eae9c374e61bb6805 + name: 'Memory [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.memory.status[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the memory device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.memory.walk + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 3cfbe9b6a47748128c61432cb4384c31 + expression: 'last(/Dell iDRAC by SNMP/dell.server.memory.status[{#SNMPVALUE}],#1)<>3' + name: 'Dell iDRAC: Memory [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Memory status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.1100.50.1.8.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: cb38ff2105b7420bade1082cd6410991 + name: 'Network interface discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + description: 'Discovery of network interfaces.' + item_prototypes: + - uuid: dd3ce480008540ea87bb4859f2b00dac + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link status' + type: DEPENDENT + key: 'dell.server.net.if.link[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the connection status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.4.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 09621009751a47f793f57ec8a4e075e3 + expression: '{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1 and last(/Dell iDRAC by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>1 and last(/Dell iDRAC by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)<>last(/Dell iDRAC by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Dell iDRAC by SNMP/dell.server.net.if.link[{#NIC_FQDD}],#1)=1 or {$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=0' + name: 'Dell iDRAC: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Link down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is Down. + 2. `{$DELL.SNMP.IFCONTROL:"{#NIC_FQDD}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is Down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the "eternal off" interfaces.) + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 331e57997cde491f8c8eed6227a0caf7 + name: 'NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status' + type: DEPENDENT + key: 'dell.server.net.if.status[{#NIC_FQDD}]' + delay: '0' + description: 'This attribute defines the status of the network device.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.1100.90.1.3.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.net.if.walk + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: e543d15060b749a88514935398fd205a + expression: 'last(/Dell iDRAC by SNMP/dell.server.net.if.status[{#NIC_FQDD}],#1)<>3' + name: 'Dell iDRAC: NIC [{#NIC_FQDD}/{#NIC_MAC}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + Network interface status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NIC_FQDD}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.30.1 + - '0' + - '{#NIC_MAC}' + - 1.3.6.1.4.1.674.10892.5.4.1100.90.1.15.1 + - '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 1656c264e78a46bc8371f458f506ce47 + name: 'Physical disk discovery' + type: DEPENDENT + key: physicaldisk.discovery + delay: '0' + description: 'Physical disk discovery.' + item_prototypes: + - uuid: 7a96303e96fe41de9688004ccc80361d + name: 'Physical disk [{#DISK_NAME}]: Media type' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.media_type[physicalDiskMediaType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The media type of the physical disk. Possible Values: + 1: The media type could not be determined. + 2: Hard Disk Drive (HDD). + 3: Solid State Drive (SSD). + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: b652991190a24899b1cb03a02865b444 + name: 'Physical disk [{#DISK_NAME}]: Model name' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.model[physicalDiskProductID.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The model number of the physical disk. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 77316e778e184eb3b803afe74e2ed6a3 + name: 'Physical disk [{#DISK_NAME}]: Serial number' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The physical disk's unique identification number from the manufacturer. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 3b20b5da243745058b3ea71f04708fe8 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#1)<>last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}],#2) and length(last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.serialnumber[physicalDiskSerialNo.{#SNMPINDEX}]))>0' + name: 'Dell iDRAC: Physical disk [{#DISK_NAME}] has been replaced' + event_name: 'Dell iDRAC: [{#DISK_NAME}] has been replaced (new serial number received)' + priority: INFO + description: '[{#DISK_NAME}] serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 443246cd62cd4a22aa6e308ab11b67e5 + name: 'Physical disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the physical disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 3c202df55c6e450188e98fdf81cdf2ee + name: 'Physical disk [{#DISK_NAME}]: S.M.A.R.T. Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + Indicates whether the physical disk has received a predictive failure alert. + valuemap: + name: 'IDRAC-MIB-SMIv2::BooleanType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 075f00325b144501b2aeb8c8cf60fae4 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.smart_status[physicalDiskSmartAlertIndication.{#SNMPINDEX}])={$DELL.SNMP.DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'Dell iDRAC: Physical disk [{#DISK_NAME}]: S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'Dell iDRAC: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + - uuid: 4e044a6c6c024a4abb8ef0aabb5d4ca3 + name: 'Physical disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The status of the physical disk itself without the propagation of any contained component status. + Possible values: + 1: Other + 2: Unknown + 3: OK + 4: Non-critical + 5: Critical + 6: Non-recoverable + valuemap: + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.physical.walk + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: bb11db3c94d243939ebed85f822fc463 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + name: 'Dell iDRAC: Physical disk [{#DISK_NAME}]: Failed state' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: f015ba5526194b4cba950ff3122b5458 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + name: 'Dell iDRAC: Physical disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'Dell iDRAC: Physical disk [{#DISK_NAME}]: Failed state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"critical"} or last(/Dell iDRAC by SNMP/dell.server.hw.physicaldisk.status[physicalDiskComponentStatus.{#SNMPINDEX}])={$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 5a2fa4233d0e4f3f95726a5746dd7a2b + name: 'Dell iDRAC: Physical disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.hw.physicaldisk.size[physicalDiskCapacityInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.physical.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3b12e8ba10224c88beb37095667b43ef + name: 'PSU discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'PSU discovery.' + item_prototypes: + - uuid: c91156b9b0c54d89a4d354c4af517400 + name: 'Power supply [{#PSU_DESCR}]: State' + type: DEPENDENT + key: 'dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the status of the power supply. + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.12.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.psu.walk + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: 3ac24f7315a54a5dbc23876535db3334 + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/Dell iDRAC by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + name: 'Dell iDRAC: Power supply [{#PSU_DESCR}]: Critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: availability + - uuid: 2ff316509959494a8a74c67b1009b5e3 + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + name: 'Dell iDRAC: Power supply [{#PSU_DESCR}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'Dell iDRAC: Power supply [{#PSU_DESCR}]: Critical state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"critical"} or last(/Dell iDRAC by SNMP/dell.server.sensor.psu.status[powerSupplyStatus.{#SNMPINDEX}])={$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + tags: + - tag: scope + value: availability + master_item: + key: dell.server.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.5 + - '0' + - '{#PSU_DESCR}' + - 1.3.6.1.4.1.674.10892.5.4.600.12.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 19b8d1af069a484d9c56e79e47828dba + name: 'System battery discovery' + type: DEPENDENT + key: system.battery.discovery + delay: '0' + description: 'System battery discovery.' + item_prototypes: + - uuid: 5e0b908594654cf5abd16347ee8bc2b0 + name: 'System battery [{#SNMPVALUE}]: Status' + type: DEPENDENT + key: 'dell.server.system.battery[{#SNMPVALUE}]' + delay: '0' + description: 'This attribute defines the status of the battery.' + valuemap: + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.50.1.5.1.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.system.battery.walk + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: c061658b004644bc9ebea5cd1f90ddc2 + expression: 'last(/Dell iDRAC by SNMP/dell.server.system.battery[{#SNMPVALUE}],#1)<>3' + name: 'Dell iDRAC: System battery [{#SNMPVALUE}]: Status is not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + MIB: IDRAC-MIB-SMIv2 + System battery status is not OK. + tags: + - tag: scope + value: availability + master_item: + key: dell.server.system.battery.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.600.50.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 6e0ee676a7e3420d91a32e1046f6eb56 + name: 'Temperature discovery' + type: DEPENDENT + key: temp.discovery + delay: '0' + description: 'Temperature sensor discovery.' + item_prototypes: + - uuid: b3e4d0bd456f4269b7a890c81730d1de + name: 'Probe [{#SENSOR_LOCALE}]: Status' + type: DEPENDENT + key: 'dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + trends: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the probe status of the temperature probe. + Possible values: + other(1), -- probe status is not one of the following: + unknown(2), -- probe status is unknown (not known or monitored) + ok(3), -- probe is reporting a value within the thresholds + nonCriticalUpper(4), -- probe has crossed the upper noncritical threshold + criticalUpper(5), -- probe has crossed the upper critical threshold + nonRecoverableUpper(6), -- probe has crossed the upper non-recoverable threshold + nonCriticalLower(7), -- probe has crossed the lower noncritical threshold + criticalLower(8), -- probe has crossed the lower critical threshold + nonRecoverableLower(9), -- probe has crossed the lower non-recoverable threshold + failed(10) -- probe is not functional + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 5af8a8356842440a9946db4aa09c603b + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + name: 'Dell iDRAC: Probe [{#SENSOR_LOCALE}]: Critical status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: availability + - uuid: 46ef64bfb9cc416f823383dca2948a74 + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])<>{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + name: 'Dell iDRAC: Probe [{#SENSOR_LOCALE}]: Not in optimal status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the device for faults.' + manual_close: 'YES' + dependencies: + - name: 'Dell iDRAC: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + - name: 'Dell iDRAC: Probe [{#SENSOR_LOCALE}]: Warning status' + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + tags: + - tag: scope + value: notice + - uuid: bddace35e48f4be4a01d4d7ba0a3dcc5 + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + name: 'Dell iDRAC: Probe [{#SENSOR_LOCALE}]: Warning status' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'Dell iDRAC: Probe [{#SENSOR_LOCALE}]: Critical status' + expression: 'last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"} or last(/Dell iDRAC by SNMP/dell.server.sensor.temp.status[temperatureProbeStatus.{#SNMPINDEX}])={$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + tags: + - tag: scope + value: availability + - uuid: 468ab65099214451839a879d000dcfc4 + name: 'Probe [{#SENSOR_LOCALE}]: Value' + type: DEPENDENT + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: IDRAC-MIB-SMIv2 + This attribute defines the reading for a temperature probe of type other than `temperatureProbeTypeIsDiscrete`. + When the value for `temperatureProbeType` is other than `temperatureProbeTypeIsDiscrete`, the value returned for this attribute is the temperature that the probe is reading in Centigrade. + When the value for `temperatureProbeType` is `temperatureProbeTypeIsDiscrete`, a value is not returned for this attribute. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.700.20.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.sensor.temp.walk + tags: + - tag: component + value: temperature + graph_prototypes: + - uuid: 55f3bc4d2f2f4af38d8096c83229295e + name: 'Dell iDRAC: Probe [{#SENSOR_LOCALE}]: Value' + graph_items: + - color: 199C0D + item: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.sensor.temp.value[temperatureProbeReading.{#SNMPINDEX}]' + master_item: + key: dell.server.sensor.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.1 + - '0' + - '{#SENSOR_LOCALE}' + - 1.3.6.1.4.1.674.10892.5.4.700.20.1.8 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 92889d639cca4213a4840b2b2226df50 + name: 'Virtual disk discovery' + type: DEPENDENT + key: virtualdisk.discovery + delay: '0' + description: 'Virtual disk discovery.' + item_prototypes: + - uuid: 3cbaee68e37643d5b22bfbf415bd21ba + name: 'Virtual disk [{#DISK_NAME}]: Layout type' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.layout[virtualDiskLayout.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The virtual disk's RAID type. + Possible values: + 1: Not one of the following + 2: RAID-0 + 3: RAID-1 + 4: RAID-5 + 5: RAID-6 + 6: RAID-10 + 7: RAID-50 + 8: RAID-60 + 9: Concatenated RAID 1 + 10: Concatenated RAID 5 + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 19abe143c3f843acb98fbbcfecb851c9 + name: 'Virtual disk [{#DISK_NAME}]: Read policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.read_policy[virtualDiskReadPolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The read policy used by the controller for read operations on this virtual disk. + Possible values: + 1: No Read Ahead. + 2: Read Ahead. + 3: Adaptive Read Ahead. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 6d9441c59d64422784d07af93282c68f + name: 'Virtual disk [{#DISK_NAME}]: Size' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: B + description: | + MIB: IDRAC-MIB-SMIv2 + The size of the virtual disk in megabytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: ca74d7a5d1144d50a707c0e04c031c33 + name: 'Virtual disk [{#DISK_NAME}]: Operational state' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.state[virtualDiskOperationalState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The state of the virtual disk when there are progressive operations ongoing. + Possible values: + 1: There is no active operation running. + 2: The virtual disk configuration has changed. The physical disks included in the virtual disk are being modified to support the new configuration. + 3: A Consistency Check (CC) is being performed on the virtual disk. + 4: The virtual disk is being initialized. + 5: BackGround Initialization (BGI) is being performed on the virtual disk. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.30.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 130ceb3a44554ff19e14e70fd5a6a9bf + name: 'Virtual disk [{#DISK_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The current state of this virtual disk (which includes any member physical disks.) + Possible states: + 1: The current state could not be determined. + 2: The virtual disk is operating normally or optimally. + 3: The virtual disk has encountered a failure. Data on the disk is lost or is about to be lost. + 4: The virtual disk encountered a failure with one or all of the constituent redundant physical disks. + The data on the virtual disk might no longer be fault tolerant. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 12b1413a437d411ea9221e1b9713b379 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + name: 'Dell iDRAC: Virtual disk [{#DISK_NAME}]: Failed state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the virtual disk for warnings or errors.' + tags: + - tag: scope + value: availability + - uuid: 40e17334c54447b2b8a6e8e0322d55e3 + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + name: 'Dell iDRAC: Virtual disk [{#DISK_NAME}]: Warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the virtual disk for warnings or errors.' + dependencies: + - name: 'Dell iDRAC: Virtual disk [{#DISK_NAME}]: Failed state' + expression: 'last(/Dell iDRAC by SNMP/dell.server.hw.virtualdisk.status[virtualDiskState.{#SNMPINDEX}])={$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + tags: + - tag: scope + value: availability + - uuid: 932cf26c451b4854a3b5dd2375a8ae76 + name: 'Virtual disk [{#DISK_NAME}]: Write policy' + type: DEPENDENT + key: 'dell.server.hw.virtualdisk.write_policy[virtualDiskWritePolicy.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IDRAC-MIB-SMIv2 + The write policy used by the controller for write operations on this virtual disk. + Possible values: + 1: Write Through. + 2: Write Back. + 3: Force Write Back. + valuemap: + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: dell.server.disk.virtual.walk + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + graph_prototypes: + - uuid: ff72a3e5fe7b49e78dd32610b9102f4d + name: 'Dell iDRAC: Virtual disk [{#DISK_NAME}]: Size' + graph_items: + - color: 199C0D + item: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.hw.virtualdisk.size[virtualDiskSizeInMB.{#SNMPINDEX}]' + master_item: + key: dell.server.disk.virtual.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.1 + - '0' + - '{#DISK_NAME}' + - 1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 016fc77a8dda4459a92429a5b1f884b1 + name: 'Voltage probe discovery' + type: DEPENDENT + key: voltage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + formulaid: A + - macro: '{#VPROBE_NAME}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + formulaid: C + - macro: '{#VPROBE_TYPE}' + value: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Voltage probe discovery.' + item_prototypes: + - uuid: 7b84ee06ac3b419eb5b10a3253bcaf59 + name: 'Voltage probe [{#VPROBE_NAME}]: Status' + type: DEPENDENT + key: 'dell.server.voltage.status[{#VPROBE_NAME}]' + delay: '0' + description: 'This attribute defines the status of the voltage probe.' + valuemap: + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.5.1.{#SNMPINDEX}' + - '0' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + trigger_prototypes: + - uuid: 4dbe99da982944209139ee4cd9b12b4c + expression: 'last(/Dell iDRAC by SNMP/dell.server.voltage.status[{#VPROBE_NAME}])<>3' + name: 'Dell iDRAC: Voltage probe [{#VPROBE_NAME}]: Status is not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device''s voltage.' + tags: + - tag: scope + value: availability + - uuid: 4cd12baa6c274747a284c2a45b654497 + name: 'Voltage probe [{#VPROBE_NAME}]: Voltage' + type: DEPENDENT + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + delay: '0' + value_type: FLOAT + units: V + description: 'This attribute defines the reading for a voltage probe.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.674.10892.5.4.600.20.1.6.1.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: dell.server.voltage.walk + tags: + - tag: component + value: voltage + graph_prototypes: + - uuid: be17ace74d2b4d70bed4f4e826a3a41f + name: 'Dell iDRAC: Voltage probe [{#VPROBE_NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.voltage.value[{#VPROBE_NAME}]' + master_item: + key: dell.server.voltage.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#VPROBE_NAME}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.8.1 + - '0' + - '{#VPROBE_TYPE}' + - 1.3.6.1.4.1.674.10892.5.4.600.20.1.7.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: dell + - tag: target + value: idrac + macros: + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.MATCHES}' + value: '^.*Voltage.*$' + description: 'Sets the regex string of voltage probe names to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe names to ignore in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.MATCHES}' + value: 18|16 + description: 'Sets the regex string of voltage probe types to allow in discovery.' + - macro: '{$DELL.SNMP.DISCOVERY.VOLTAGE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of voltage probe types to ignore in discovery.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT}' + value: '3' + description: 'The critical status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.OK}' + value: '2' + description: 'The OK status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.CACHE.BATTERY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array cache battery for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.CRIT}' + value: '5' + description: 'The critical status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.FAIL}' + value: '6' + description: 'The disaster status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.ARRAY.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk array for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.SMART.STATUS.FAIL}' + value: '1' + description: 'The critical S.M.A.R.T status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"critical"}' + value: '5' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.FAIL:"nonRecoverable"}' + value: '6' + description: 'The critical status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.DISK.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning status of the disk for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"failed"}' + value: '10' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.FAN.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning value of the FAN sensor for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.CRIT}' + value: '5' + description: 'The critical status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.DISASTER}' + value: '6' + description: 'The disaster status of health for the trigger expression.' + - macro: '{$DELL.SNMP.HEALTH.STATUS.WARN}' + value: '4' + description: 'The warning status of health for the trigger expression.' + - macro: '{$DELL.SNMP.IFCONTROL}' + value: '1' + description: 'The link status trigger will be fired only for interfaces that have the context macro equal to "1".' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"critical"}' + value: '5' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.CRIT:"nonRecoverable"}' + value: '6' + description: 'The critical value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.PSU.STATUS.WARN:"nonCritical"}' + value: '4' + description: 'The warning value of the PSU sensor for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalLower"}' + value: '8' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"criticalUpper"}' + value: '5' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableLower"}' + value: '9' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.CRIT:"nonRecoverableUpper"}' + value: '6' + description: 'The critical status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.OK}' + value: '3' + description: 'The OK status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalLower"}' + value: '7' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.SENSOR.TEMP.STATUS.WARN:"nonCriticalUpper"}' + value: '4' + description: 'The warning status of the temperature probe for the trigger expression.' + - macro: '{$DELL.SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for the SNMP agent availability trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.CRIT:"failed"}' + value: '3' + description: 'The critical status of the virtual disk for the trigger expression.' + - macro: '{$DELL.SNMP.VDISK.STATUS.WARN:"degraded"}' + value: '4' + description: 'The warning status of the virtual disk for the trigger expression.' + dashboards: + - uuid: 2b91da096633476b8f86c8df921c0401 + name: Overview + pages: + - name: Overview + display_period: '30' + widgets: + - type: item + name: 'System health' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'System Health' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.status[globalSystemStatus]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'Serial number' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.hw.serialnumber[systemServiceTag]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'HW model' + x: '36' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'HW model' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.hw.model[systemModelName]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Firmware + x: '36' + 'y': '4' + width: '36' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Firmware + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.hw.firmware[racFirmwareVersion]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - name: Discoveries + display_period: '30' + widgets: + - type: honeycomb + name: 'Interface link' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'NIC*Link status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: 069C56 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF681E + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'Temperature sensors' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Probe*Value' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Physical disks' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Physical disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: honeycomb + name: 'Power supplies' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Voltage probe*Voltage' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: honeycomb + name: 'Virtual disks' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Virtual disk*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: Fans + x: '36' + 'y': '12' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Fan*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*?)\]", "\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: FF980E + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 069C56 + - type: STRING + name: thresholds.1.threshold + value: '3' + - type: STRING + name: thresholds.2.color + value: D3212C + - type: STRING + name: thresholds.2.threshold + value: '4' + valuemaps: + - uuid: 4709491dc6ea41958de78e939e1b7964 + name: 'IDRAC-MIB-SMIv2::batteryState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Ready + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - value: '5' + newvalue: Missing + - value: '6' + newvalue: Charging + - value: '7' + newvalue: 'Below threshold' + - uuid: 1026b6847bd44fb5885bdfab49042d32 + name: 'IDRAC-MIB-SMIv2::BooleanType' + mappings: + - value: '0' + newvalue: ok + - value: '1' + newvalue: failed + - uuid: 0f2ef2e7ca5540fbbbdaa3e51acff0e1 + name: 'IDRAC-MIB-SMIv2::NetworkDeviceConnectionStatusEnum' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: connected + - value: '2' + newvalue: disconnected + - value: '3' + newvalue: driverBad + - value: '4' + newvalue: driverDisabled + - value: '10' + newvalue: hardwareInitalizing + - value: '11' + newvalue: hardwareResetting + - value: '12' + newvalue: hardwareClosing + - value: '13' + newvalue: hardwareNotReady + - uuid: 7cf6cc68df264e1f9cb0373b1fbca6a8 + name: 'IDRAC-MIB-SMIv2::ObjectStatusEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: 1125af03f5a24d84866e7ad7c1789fb4 + name: 'IDRAC-MIB-SMIv2::physicalDiskComponentStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCritical + - value: '5' + newvalue: critical + - value: '6' + newvalue: nonRecoverable + - uuid: 8abb91818b39418d9ba1b83cd5078870 + name: 'IDRAC-MIB-SMIv2::physicalDiskMediaType' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: HDD + - value: '3' + newvalue: SSD + - uuid: c2a88e35b99c4c9d8b369a6edce17b3c + name: 'IDRAC-MIB-SMIv2::ProcessorDeviceStatusReadingFlags' + mappings: + - value: '1' + newvalue: internalError + - value: '2' + newvalue: thermalTrip + - value: '32' + newvalue: configurationError + - value: '128' + newvalue: processorPresent + - value: '256' + newvalue: processorDisabled + - value: '512' + newvalue: terminatorPresent + - value: '1024' + newvalue: processorThrottled + - uuid: beb79217c0854cc4b83d6c498a92067c + name: 'IDRAC-MIB-SMIv2::StatusProbeEnum' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: ok + - value: '4' + newvalue: nonCriticalUpper + - value: '5' + newvalue: criticalUpper + - value: '6' + newvalue: nonRecoverableUpper + - value: '7' + newvalue: nonCriticalLower + - value: '8' + newvalue: criticalLower + - value: '9' + newvalue: nonRecoverableLower + - value: '10' + newvalue: failed + - uuid: 150fd042191d4417a29df8dc554dae06 + name: 'IDRAC-MIB-SMIv2::virtualDiskLayout' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: RAID-0 + - value: '3' + newvalue: RAID-1 + - value: '4' + newvalue: RAID-5 + - value: '5' + newvalue: RAID-6 + - value: '6' + newvalue: RAID-10 + - value: '7' + newvalue: RAID-50 + - value: '8' + newvalue: RAID-60 + - value: '9' + newvalue: 'Concatenated RAID 1' + - value: '10' + newvalue: 'Concatenated RAID 5' + - uuid: 79a1e3792c20400bba39073240987448 + name: 'IDRAC-MIB-SMIv2::virtualDiskOperationalState' + mappings: + - value: '1' + newvalue: 'Not applicable' + - value: '2' + newvalue: Reconstructing + - value: '3' + newvalue: Resynching + - value: '4' + newvalue: Initializing + - value: '5' + newvalue: 'Background init' + - uuid: 25c91adad83c46d48a8308b2e6273666 + name: 'IDRAC-MIB-SMIv2::virtualDiskReadPolicy' + mappings: + - value: '1' + newvalue: 'No Read Ahead' + - value: '2' + newvalue: 'Read Ahead' + - value: '3' + newvalue: 'Adaptive Read Ahead' + - uuid: 41e6acc448194f3aac2612904ce851ad + name: 'IDRAC-MIB-SMIv2::virtualDiskState' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Online + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Degraded + - uuid: d9103bd7f6934230a67ae98607183788 + name: 'IDRAC-MIB-SMIv2::virtualDiskWritePolicy' + mappings: + - value: '1' + newvalue: 'Write Through' + - value: '2' + newvalue: 'Write Back' + - value: '3' + newvalue: 'Force Write Back' + - uuid: a8b28aa27f374f58a1ebc85fd3a84887 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: e9fc724fff1840a9931ef9d379475349 + expression: '(last(/Dell iDRAC by SNMP/dell.server.hw.uptime[systemPowerUpTime])>0 and last(/Dell iDRAC by SNMP/dell.server.hw.uptime[systemPowerUpTime])<10m) or (last(/Dell iDRAC by SNMP/dell.server.hw.uptime[systemPowerUpTime])=0 and last(/Dell iDRAC by SNMP/dell.server.net.uptime[snmpEngineTime])<10m)' + name: 'Dell iDRAC: Host has been restarted' + event_name: 'Dell iDRAC: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 60e8a8f99b374a73b8ebb95abe5d098f + name: 'Dell iDRAC: Uptime' + graph_items: + - color: 199C0D + item: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.hw.uptime[systemPowerUpTime]' + - sortorder: '1' + color: F63100 + item: + host: 'Dell iDRAC by SNMP' + key: 'dell.server.net.uptime[snmpEngineTime]' diff --git a/Docker_by_Zabbix_agent_2.yaml b/Docker_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..43ad5aa --- /dev/null +++ b/Docker_by_Zabbix_agent_2.yaml @@ -0,0 +1,2075 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: c5fd214cdd0d4b3b8272e73b022ba5c2 + template: 'Docker by Zabbix agent 2' + name: 'Docker by Zabbix agent 2' + description: | + Get Docker engine metrics from plugin for the New Zabbix Agent (zabbix-agent2). + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/435429-discussion-thread-for-official-zabbix-template-docker + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Applications + items: + - uuid: 1d77b27beba04822a67bdedac22ec522 + name: Architecture + type: DEPENDENT + key: docker.architecture + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.Architecture + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: os + - uuid: 32c441b73b90400fa0e6972798ae1f4c + name: 'Cgroup driver' + type: DEPENDENT + key: docker.cgroup_driver + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.CgroupDriver + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: os + - uuid: 6edcd2fbe7c446738d323ce7f1c11810 + name: 'Get containers' + key: docker.containers + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 75f55b1f18c54af6ad0b3045cb230bd3 + name: 'Containers paused' + type: DEPENDENT + key: docker.containers.paused + delay: '0' + description: 'Total number of containers paused on this host.' + preprocessing: + - type: JSONPATH + parameters: + - $.ContainersPaused + master_item: + key: docker.info + tags: + - tag: component + value: containers + - uuid: 976bf10901404fd290b6628af437e8e4 + name: 'Containers running' + type: DEPENDENT + key: docker.containers.running + delay: '0' + description: 'Total number of containers running on this host.' + preprocessing: + - type: JSONPATH + parameters: + - $.ContainersRunning + master_item: + key: docker.info + tags: + - tag: component + value: containers + - uuid: 40179a84ffd14742b9df87f48a2eaa90 + name: 'Containers stopped' + type: DEPENDENT + key: docker.containers.stopped + delay: '0' + description: 'Total number of containers stopped on this host.' + preprocessing: + - type: JSONPATH + parameters: + - $.ContainersStopped + master_item: + key: docker.info + tags: + - tag: component + value: containers + - uuid: cacbbf17fd0144c79ecdcbf9e3ef9290 + name: 'Containers total' + type: DEPENDENT + key: docker.containers.total + delay: '0' + description: 'Total number of containers on this host.' + preprocessing: + - type: JSONPATH + parameters: + - $.Containers + master_item: + key: docker.info + tags: + - tag: component + value: containers + - uuid: 4d116791a88d4d4e8dd4a9013f9bc39f + name: 'Containers size' + type: DEPENDENT + key: docker.containers_size + delay: '0' + units: B + preprocessing: + - type: JSONPATH + parameters: + - '$.Containers[*].SizeRw.sum()' + master_item: + key: docker.data_usage + tags: + - tag: component + value: containers + - tag: component + value: storage + - uuid: fcf42585b871488f91a92d04b0cc748d + name: 'CPU CFS Period enabled' + type: DEPENDENT + key: docker.cpu_cfs_period.enabled + delay: '0' + description: 'https://docs.docker.com/config/containers/resource_constraints/#configure-the-default-cfs-scheduler' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.CpuCfsPeriod + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: cpu + - uuid: 54d3fa0099f24f75a6a414b7caf1b85a + name: 'CPU CFS Quota enabled' + type: DEPENDENT + key: docker.cpu_cfs_quota.enabled + delay: '0' + description: 'https://docs.docker.com/config/containers/resource_constraints/#configure-the-default-cfs-scheduler' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.CpuCfsQuota + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: cpu + - uuid: ceddc2b06f4a4cb4acec3dc74c02ce3f + name: 'CPU Set enabled' + type: DEPENDENT + key: docker.cpu_set.enabled + delay: '0' + description: 'https://docs.docker.com/config/containers/resource_constraints/#configure-the-default-cfs-scheduler' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.CPUSet + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: cpu + - uuid: 2ad923020baf48c5a43f6c875ad45561 + name: 'CPU Shares enabled' + type: DEPENDENT + key: docker.cpu_shares.enabled + delay: '0' + description: 'https://docs.docker.com/config/containers/resource_constraints/#configure-the-default-cfs-scheduler' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.CPUShares + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: cpu + - uuid: 4f7221691d494c60b40abb6dd5c14719 + name: 'Get data_usage' + key: docker.data_usage + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 0a258c42f6aa4eeeb355fec491710764 + name: 'Debug enabled' + type: DEPENDENT + key: docker.debug.enabled + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.Debug + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: application + - uuid: edb61f5ce3504f57bf32ddf2e50e4e3d + name: 'Default runtime' + type: DEPENDENT + key: docker.default_runtime + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.DefaultRuntime + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: application + - uuid: 1ce2471ca651487288ad1aef9286da5f + name: 'Storage driver' + type: DEPENDENT + key: docker.driver + delay: '0' + value_type: CHAR + trends: '0' + description: | + Docker storage driver. + https://docs.docker.com/storage/storagedriver/ + preprocessing: + - type: JSONPATH + parameters: + - $.Driver + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: storage + - uuid: 14a7686d3bd74533aa8406297d419dfd + name: Goroutines + type: DEPENDENT + key: docker.goroutines + delay: '0' + description: 'Number of goroutines.' + preprocessing: + - type: JSONPATH + parameters: + - $.NGoroutines + master_item: + key: docker.info + tags: + - tag: component + value: system + - uuid: 8b2be6316b8d4d019443062f0809b579 + name: 'Get images' + key: docker.images + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: ab4a4d92e4c04ff685b687cf14414b06 + name: 'Images available' + type: DEPENDENT + key: docker.images.top_level + delay: '0' + description: 'Number of top-level images.' + preprocessing: + - type: JSONPATH + parameters: + - $.length() + master_item: + key: docker.images + tags: + - tag: component + value: images + - uuid: d83337b0ea2c4f16be4b5b9c3a48755b + name: 'Images total' + type: DEPENDENT + key: docker.images.total + delay: '0' + description: 'Number of images with intermediate image layers.' + preprocessing: + - type: JSONPATH + parameters: + - $.Images + master_item: + key: docker.info + tags: + - tag: component + value: images + - uuid: bf4f531b727c47f0aa30de14d4b41b49 + name: 'Images size' + type: DEPENDENT + key: docker.images_size + delay: '0' + units: B + preprocessing: + - type: JSONPATH + parameters: + - '$.Images[*].Size.sum()' + master_item: + key: docker.data_usage + tags: + - tag: component + value: images + - tag: component + value: storage + - uuid: 3d8265e0495d4cbe97535f281a957b3e + name: 'Get info' + key: docker.info + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 3545c86b7db9494c94dcda09386ac827 + name: 'IPv4 Forwarding enabled' + type: DEPENDENT + key: docker.ipv4_forwarding.enabled + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.IPv4Forwarding + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: network + - uuid: cb1e486a170b4d668a77d0918f22e51c + name: 'Kernel memory enabled' + type: DEPENDENT + key: docker.kernel_mem.enabled + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.KernelMemory + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: memory + - uuid: 77a61a63d6ed4583a0c39ce377b11d4f + name: 'Kernel memory TCP enabled' + type: DEPENDENT + key: docker.kernel_mem_tcp.enabled + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.KernelMemoryTCP + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: memory + - uuid: d645713e25c74686a47cf859725e655f + name: 'Kernel version' + type: DEPENDENT + key: docker.kernel_version + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.KernelVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: system + - uuid: 2f512e64ba414e86806f19c0be803a3e + name: 'Layers size' + type: DEPENDENT + key: docker.layers_size + delay: '0' + units: B + preprocessing: + - type: JSONPATH + parameters: + - $.LayersSize + master_item: + key: docker.data_usage + tags: + - tag: component + value: storage + - uuid: 671cd65ddae046f5ba9b0f83241976ac + name: 'Live restore enabled' + type: DEPENDENT + key: docker.live_restore.enabled + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.LiveRestoreEnabled + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: application + - uuid: be0cb2d07d12497b8b411e094fed6087 + name: 'Logging driver' + type: DEPENDENT + key: docker.logging_driver + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.LoggingDriver + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: application + - uuid: e0da86d370a049e3a2d6a82e49ea1f37 + name: 'Memory total' + type: DEPENDENT + key: docker.mem.total + delay: '0' + units: B + preprocessing: + - type: JSONPATH + parameters: + - $.MemTotal + master_item: + key: docker.info + tags: + - tag: component + value: memory + - uuid: b08c91f28e094c4faa3e004d3fb3057d + name: 'Memory limit enabled' + type: DEPENDENT + key: docker.mem_limit.enabled + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.MemoryLimit + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: memory + - uuid: 812a6b9902a44dd7a803c7218555afe7 + name: Name + type: DEPENDENT + key: docker.name + delay: '0' + history: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.Name + master_item: + key: docker.info + tags: + - tag: component + value: system + triggers: + - uuid: 2c62bb4d95684e6984447027d117ff4d + expression: 'nodata(/Docker by Zabbix agent 2/docker.name,30m)=1' + name: 'Docker: Failed to fetch info data' + event_name: 'Docker: Failed to fetch info data (or no data for 30m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 30 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Docker: Service is down' + expression: 'last(/Docker by Zabbix agent 2/docker.ping)=0' + tags: + - tag: scope + value: availability + - uuid: 5e4999067e6948f893dc465f8e5a2b5f + name: NCPU + type: DEPENDENT + key: docker.ncpu + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.NCPU + master_item: + key: docker.info + tags: + - tag: component + value: cpu + - uuid: f64919a3a5dc4f429f2992eb7ae5223c + name: 'NEvents listener' + type: DEPENDENT + key: docker.nevents_listener + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.NEventsListener + master_item: + key: docker.info + tags: + - tag: component + value: application + - uuid: ce025599e68d447f9a1f5c076502e2f2 + name: Nfd + type: DEPENDENT + key: docker.nfd + delay: '0' + description: 'Number of used File Descriptors.' + preprocessing: + - type: JSONPATH + parameters: + - $.NFd + master_item: + key: docker.info + tags: + - tag: component + value: os + - uuid: e164279251ce471abaae599bf1885bbb + name: 'OomKill disabled' + type: DEPENDENT + key: docker.oomkill.disabled + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.OomKillDisable + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: system + - uuid: 78a5af9aa6a741d4ac976d0949414b68 + name: 'Operating system' + type: DEPENDENT + key: docker.operating_system + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.OperatingSystem + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: os + - uuid: 3acc93aa0fe64696a5560adcb3dd5acc + name: 'OS type' + type: DEPENDENT + key: docker.os_type + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.OSType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: os + - uuid: 58ecaf4ae7f04316b6bf019cabadfd3e + name: 'Pids limit enabled' + type: DEPENDENT + key: docker.pids_limit.enabled + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.PidsLimit + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: system + - uuid: 3c8f26e4b80f4356bde061ccddb95f2c + name: Ping + key: docker.ping + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: a4f00b4d25b54acfa61475c94651d8a5 + expression: 'last(/Docker by Zabbix agent 2/docker.ping)=0' + name: 'Docker: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 864eae0a62374f729143d6efc4f1655a + name: 'Docker root dir' + type: DEPENDENT + key: docker.root_dir + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.DockerRootDir + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: system + - uuid: a7e5441fe4d64848a7c5e374ea99ad54 + name: 'Server version' + type: DEPENDENT + key: docker.server_version + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.ServerVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: application + triggers: + - uuid: f5f4fb1337264ac2bec6b6505dfe180b + expression: 'last(/Docker by Zabbix agent 2/docker.server_version,#1)<>last(/Docker by Zabbix agent 2/docker.server_version,#2) and length(last(/Docker by Zabbix agent 2/docker.server_version))>0' + name: 'Docker: Version has changed' + event_name: 'Docker: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Docker version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: fcbe64ee979a4787a4b0f06836b258bd + name: 'Swap limit enabled' + type: DEPENDENT + key: docker.swap_limit.enabled + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.SwapLimit + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.info + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 6c81479dba77465ebcd335a5f3d08e19 + name: 'Volumes size' + type: DEPENDENT + key: docker.volumes_size + delay: '0' + units: B + preprocessing: + - type: JSONPATH + parameters: + - '$.Volumes[*].UsageData.Size.sum()' + master_item: + key: docker.data_usage + tags: + - tag: component + value: storage + discovery_rules: + - uuid: 6f379dce9d3440018deb2c2cbaa91c06 + name: 'Containers discovery' + key: 'docker.containers.discovery[false]' + delay: 15m + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$DOCKER.LLD.FILTER.CONTAINER.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$DOCKER.LLD.FILTER.CONTAINER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: | + Discovery of containers metrics. + + Parameter: + true - Returns all containers + false - Returns only running containers + item_prototypes: + - uuid: 2c5d0902f43343ef85a9067cf3d59cfd + name: 'Container {#NAME}: Created' + type: DEPENDENT + key: 'docker.container_info.created["{#NAME}"]' + delay: '0' + units: unixtime + valuemap: + name: 'Docker date format' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value); + return truncatedTimestamp = Math.floor(Date.parse(input.Created) / 1000) || -1; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: 1c481ac2b05e4b53b85b7fd37a39bc4a + name: 'Container {#NAME}: Finished at' + type: DEPENDENT + key: 'docker.container_info.finished["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: unixtime + description: 'Time at which the container last terminated.' + valuemap: + name: 'Docker date format' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value); + return truncatedTimestamp = Math.floor(Date.parse(input.State.FinishedAt) / 1000) || -1; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: ee9da156a6134760af1762236d08e566 + name: 'Container {#NAME}: Image' + type: DEPENDENT + key: 'docker.container_info.image["{#NAME}"]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Names[0] == "{#NAME}")].Image.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.containers + tags: + - tag: component + value: images + - tag: container + value: '{#NAME}' + - uuid: 72de0e4e056a4d3799d61cb3ac19a306 + name: 'Container {#NAME}: Restart count' + type: DEPENDENT + key: 'docker.container_info.restart_count["{#NAME}"]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.RestartCount + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: 0b6ce9bd73244e79bc9c4e00f56c2465 + name: 'Container {#NAME}: Started at' + type: DEPENDENT + key: 'docker.container_info.started["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: unixtime + valuemap: + name: 'Docker date format' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value); + return truncatedTimestamp = Math.floor(Date.parse(input.State.StartedAt) / 1000) || -1; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: fd9d315125fb40738c00bab16c145255 + name: 'Container {#NAME}: Dead' + type: DEPENDENT + key: 'docker.container_info.state.dead["{#NAME}"]' + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.State.Dead + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: be3eed62681045aaa667a417a7383a58 + name: 'Container {#NAME}: Error' + type: DEPENDENT + key: 'docker.container_info.state.error["{#NAME}"]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.State.Error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + trigger_prototypes: + - uuid: ee70b91196494eccb54772b22051a456 + expression: 'last(/Docker by Zabbix agent 2/docker.container_info.state.error["{#NAME}"],#1)<>last(/Docker by Zabbix agent 2/docker.container_info.state.error["{#NAME}"],#2) and length(last(/Docker by Zabbix agent 2/docker.container_info.state.error["{#NAME}"]))>0' + name: 'Docker: Container {#NAME}: An error has occurred in the container' + event_name: 'Docker: Container {#NAME}: Version has changed (new version: {ITEM.VALUE})' + priority: WARNING + description: 'Container {#NAME} has an error. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 65d5ac15043446658cd8e0d326b1bf04 + name: 'Container {#NAME}: Exit code' + type: DEPENDENT + key: 'docker.container_info.state.exitcode["{#NAME}"]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.State.ExitCode + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: 50f86a4815d74d9ea7103cd5c7586ff1 + name: 'Container {#NAME}: Health failing streak' + type: DEPENDENT + key: 'docker.container_info.state.health.failing["{#NAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - $.State.Health.FailingStreak + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: 985b5f9d4e0249fa8688de245f63cf74 + name: 'Container {#NAME}: Health status' + type: DEPENDENT + key: 'docker.container_info.state.health["{#NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Container''s `HEALTHCHECK`.' + valuemap: + name: 'Docker container health state' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value); + if (typeof input.State.Health !== 'object' || typeof input.State.Health === 'undefined') { + return 4; + } + return (['starting', 'unhealthy', 'healthy', 'none'].indexOf(input.State.Health.Status) + 1); + - type: IN_RANGE + parameters: + - '1' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + trigger_prototypes: + - uuid: 987178603ce84f9292091c6196e89ea4 + expression: 'count(/Docker by Zabbix agent 2/docker.container_info.state.health["{#NAME}"],2m,,2)>=2' + name: 'Docker: Container {#NAME}: Health state container is unhealthy' + opdata: '{ITEM.LASTVALUE1}' + priority: HIGH + description: 'Container health state is unhealthy.' + tags: + - tag: scope + value: availability + - uuid: 69381dd6116f4b0d9d957dd1e768748b + name: 'Container {#NAME}: OOMKilled' + type: DEPENDENT + key: 'docker.container_info.state.oomkilled["{#NAME}"]' + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.State.OOMKilled + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: 000375ca6899443cac7e02e1239d879e + name: 'Container {#NAME}: Paused' + type: DEPENDENT + key: 'docker.container_info.state.paused["{#NAME}"]' + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.State.Paused + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: 15dffc2d2aeb4a15954b624c7c273155 + name: 'Container {#NAME}: Pid' + type: DEPENDENT + key: 'docker.container_info.state.pid["{#NAME}"]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.State.Pid + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: 38829fadf7f246c99c9776945022fac1 + name: 'Container {#NAME}: Restarting' + type: DEPENDENT + key: 'docker.container_info.state.restarting["{#NAME}"]' + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.State.Restarting + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: 6d8d5a7523f64968b72f4861e9ae867a + name: 'Container {#NAME}: Running' + type: DEPENDENT + key: 'docker.container_info.state.running["{#NAME}"]' + delay: '0' + valuemap: + name: 'Docker flag' + preprocessing: + - type: JSONPATH + parameters: + - $.State.Running + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: c7f1d81836d54a528184c7d4be60b792 + name: 'Container {#NAME}: Status' + type: DEPENDENT + key: 'docker.container_info.state.status["{#NAME}"]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.State.Status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'docker.container_info["{#NAME}",full]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: 743e2c9545de49c89472e343bf8d38da + name: 'Container {#NAME}: Get info' + key: 'docker.container_info["{#NAME}",full]' + history: '0' + value_type: CHAR + trends: '0' + description: 'Returns low-level information about a container.' + tags: + - tag: component + value: raw + - tag: container + value: '{#NAME}' + - uuid: d54b82d76c7b44ca8995486e4bf46298 + name: 'Container {#NAME}: CPU percent usage' + type: DEPENDENT + key: 'docker.container_stats.cpu_pct_usage["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_stats.cpu_usage.percent_usage + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: cpu + - tag: container + value: '{#NAME}' + - uuid: 92510799a44b4b93921d7b4d308ef10d + name: 'Container {#NAME}: CPU kernelmode usage per second' + type: DEPENDENT + key: 'docker.container_stats.cpu_usage.kernel.rate["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_stats.cpu_usage.usage_in_kernelmode + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: cpu + - tag: container + value: '{#NAME}' + - uuid: 4c71c95c86d2433da78b0cd3ba5d56fa + name: 'Container {#NAME}: Throttled periods' + type: DEPENDENT + key: 'docker.container_stats.cpu_usage.throttled_periods["{#NAME}"]' + delay: '0' + description: 'Number of periods when the container hits its throttling limit.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_stats.throttling_data.throttled_periods + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: cpu + - tag: container + value: '{#NAME}' + - uuid: ff834b708f764ce6b08fcfbc1dfacb60 + name: 'Container {#NAME}: Throttled time' + type: DEPENDENT + key: 'docker.container_stats.cpu_usage.throttled_time["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Aggregate time the container was throttled for in nanoseconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_stats.throttling_data.throttled_time + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: cpu + - tag: container + value: '{#NAME}' + - uuid: 151f2f36bfb2429b8c8e500067489694 + name: 'Container {#NAME}: Throttling periods' + type: DEPENDENT + key: 'docker.container_stats.cpu_usage.throttling_periods["{#NAME}"]' + delay: '0' + description: 'Number of periods with throttling active.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_stats.throttling_data.periods + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: cpu + - tag: container + value: '{#NAME}' + - uuid: 2c21d9b3968c43e68231ddc5b2d05808 + name: 'Container {#NAME}: CPU total usage per second' + type: DEPENDENT + key: 'docker.container_stats.cpu_usage.total.rate["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_stats.cpu_usage.total_usage + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: cpu + - tag: container + value: '{#NAME}' + - uuid: 801467fe7cbe48b8b05c5005680b934a + name: 'Container {#NAME}: CPU usermode usage per second' + type: DEPENDENT + key: 'docker.container_stats.cpu_usage.user.rate["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_stats.cpu_usage.usage_in_usermode + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: cpu + - tag: container + value: '{#NAME}' + - uuid: bd57aed03daa47e68acc4dc38a1697b7 + name: 'Container {#NAME}: Memory commit bytes' + type: DEPENDENT + key: 'docker.container_stats.memory.commit_bytes["{#NAME}"]' + delay: '0' + units: B + preprocessing: + - type: JSONPATH + parameters: + - $.memory_stats.commitbytes + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: memory + - tag: container + value: '{#NAME}' + - uuid: 1e110d4d78e74ca8b12a1923f73543f1 + name: 'Container {#NAME}: Memory commit peak bytes' + type: DEPENDENT + key: 'docker.container_stats.memory.commit_peak_bytes["{#NAME}"]' + delay: '0' + units: B + preprocessing: + - type: JSONPATH + parameters: + - $.memory_stats.commitpeakbytes + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: memory + - tag: container + value: '{#NAME}' + - uuid: b463f79d6c0644a394c3c0ba8f1d29d1 + name: 'Container {#NAME}: Memory maximum usage' + type: DEPENDENT + key: 'docker.container_stats.memory.max_usage["{#NAME}"]' + delay: '0' + units: B + preprocessing: + - type: JSONPATH + parameters: + - $.memory_stats.max_usage + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: memory + - tag: container + value: '{#NAME}' + - uuid: 763c8878d2c74d069567cbcd1d53544c + name: 'Container {#NAME}: Memory private working set' + type: DEPENDENT + key: 'docker.container_stats.memory.private_working_set["{#NAME}"]' + delay: '0' + units: B + preprocessing: + - type: JSONPATH + parameters: + - $.memory_stats.privateworkingset + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: memory + - tag: container + value: '{#NAME}' + - uuid: 70c03e3f3a1840eea8e2256e93abd3f8 + name: 'Container {#NAME}: Memory usage active' + type: CALCULATED + key: 'docker.container_stats.memory.usage_active["{#NAME}"]' + value_type: FLOAT + units: B + params: 'last(//docker.container_stats.memory.usage_total["{#NAME}"]) - last(//docker.container_stats.memory.usage_inactive["{#NAME}"])' + description: 'Calculates the active memory usage of the container.' + tags: + - tag: component + value: memory + - tag: container + value: '{#NAME}' + - uuid: ae89e231a2484859a6266decdbefd756 + name: 'Container {#NAME}: Memory usage inactive' + type: DEPENDENT + key: 'docker.container_stats.memory.usage_inactive["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Gets the inactive memory usage of the container.' + preprocessing: + - type: JSONPATH + parameters: + - $.memory_stats.stats.inactive_file + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: memory + - tag: container + value: '{#NAME}' + - uuid: 6f39422b278b4a4398bfbd993f247fd0 + name: 'Container {#NAME}: Memory usage total' + type: DEPENDENT + key: 'docker.container_stats.memory.usage_total["{#NAME}"]' + delay: '0' + units: B + description: 'Gets the total memory usage (inactive, active) from the container.' + preprocessing: + - type: JSONPATH + parameters: + - $.memory_stats.usage + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: memory + - tag: container + value: '{#NAME}' + - uuid: a5999dfeccca44ca8679ef71876da773 + name: 'Container {#NAME}: Online CPUs' + type: DEPENDENT + key: 'docker.container_stats.online_cpus["{#NAME}"]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_stats.online_cpus + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: cpu + - tag: container + value: '{#NAME}' + - uuid: 17017edbd17241b180549b826b3bb467 + name: 'Container {#NAME}: Current PIDs count' + type: DEPENDENT + key: 'docker.container_stats.pids_stats.current["{#NAME}"]' + delay: '0' + description: 'Current number of PIDs the container has created.' + preprocessing: + - type: JSONPATH + parameters: + - $.pids_stats.current + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: system + - tag: container + value: '{#NAME}' + - uuid: 4192b5b8be2545568637b7121c1466c1 + name: 'Container {#NAME}: Get stats' + key: 'docker.container_stats["{#NAME}"]' + history: '0' + value_type: CHAR + trends: '0' + description: 'Gets container stats based on resource usage.' + tags: + - tag: component + value: raw + - tag: container + value: '{#NAME}' + - uuid: 4ab3f13ab7714367b971eada3f01c611 + name: 'Container {#NAME}: Networks bytes received per second' + type: DEPENDENT + key: 'docker.networks.rx_bytes["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: B + preprocessing: + - type: JSONPATH + parameters: + - '$.networks[*].rx_bytes.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: network + - tag: container + value: '{#NAME}' + - uuid: cf4517565e3f4fc49e7d6d411302a732 + name: 'Container {#NAME}: Networks incoming packets dropped per second' + type: DEPENDENT + key: 'docker.networks.rx_dropped["{#NAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - '$.networks[*].rx_dropped.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: network + - tag: container + value: '{#NAME}' + - uuid: 9d139e59dc1b46d39832ca668d5a6ce1 + name: 'Container {#NAME}: Networks errors received per second' + type: DEPENDENT + key: 'docker.networks.rx_errors["{#NAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - '$.networks[*].rx_errors.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: network + - tag: container + value: '{#NAME}' + - uuid: 13fb8c2c3843481492af82c3308e1257 + name: 'Container {#NAME}: Networks packets received per second' + type: DEPENDENT + key: 'docker.networks.rx_packets["{#NAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - '$.networks[*].rx_packets.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: network + - tag: container + value: '{#NAME}' + - uuid: da4bf99b26e540fdafc0ee99d50e1c6c + name: 'Container {#NAME}: Networks bytes sent per second' + type: DEPENDENT + key: 'docker.networks.tx_bytes["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: B + preprocessing: + - type: JSONPATH + parameters: + - '$.networks[*].tx_bytes.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: network + - tag: container + value: '{#NAME}' + - uuid: 1f4d7848ecfd44ae958cc1bd64d61078 + name: 'Container {#NAME}: Networks outgoing packets dropped per second' + type: DEPENDENT + key: 'docker.networks.tx_dropped["{#NAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - '$.networks[*].tx_dropped.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: network + - tag: container + value: '{#NAME}' + - uuid: bc7273bd3a7d4c9d9d6d6b3a019af947 + name: 'Container {#NAME}: Networks errors sent per second' + type: DEPENDENT + key: 'docker.networks.tx_errors["{#NAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - '$.networks[*].tx_errors.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: network + - tag: container + value: '{#NAME}' + - uuid: 9191bd95da9a4ee9a7315d20de23c977 + name: 'Container {#NAME}: Networks packets sent per second' + type: DEPENDENT + key: 'docker.networks.tx_packets["{#NAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - '$.networks[*].tx_packets.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'docker.container_stats["{#NAME}"]' + tags: + - tag: component + value: network + - tag: container + value: '{#NAME}' + trigger_prototypes: + - uuid: db675ff608a14b12bcc02e6b500c557f + expression: 'last(/Docker by Zabbix agent 2/docker.container_info.state.exitcode["{#NAME}"])>0 and last(/Docker by Zabbix agent 2/docker.container_info.state.running["{#NAME}"])=0' + name: 'Docker: Container {#NAME}: Container has been stopped with error code' + opdata: 'Exit code: {ITEM.LASTVALUE1}' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 72e32a60dc064affb3bb6785bae50e37 + name: 'Container {#NAME}: CPU usage' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.container_stats.cpu_usage.kernel.rate["{#NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.container_stats.cpu_usage.user.rate["{#NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.container_stats.cpu_usage.total.rate["{#NAME}"]' + - uuid: ef48f834b7d543169b21caff1e1d2ade + name: 'Container {#NAME}: Memory usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.container_stats.memory.usage_total["{#NAME}"]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.container_stats.memory.max_usage["{#NAME}"]' + - uuid: 5cc619d6da2046928ad6d0c28a0e4186 + name: 'Container {#NAME}: Network packets' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.networks.rx_packets["{#NAME}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.networks.tx_packets["{#NAME}"]' + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.networks.rx_errors["{#NAME}"]' + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.networks.tx_errors["{#NAME}"]' + - sortorder: '4' + drawtype: BOLD_LINE + color: FC6EA3 + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.networks.rx_dropped["{#NAME}"]' + - sortorder: '5' + drawtype: BOLD_LINE + color: 6C59DC + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.networks.tx_dropped["{#NAME}"]' + - uuid: 1952afdd7ab54a65b7f839fd6490f9ff + name: 'Container {#NAME}: Network traffic' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.networks.rx_bytes["{#NAME}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Docker by Zabbix agent 2' + key: 'docker.networks.tx_bytes["{#NAME}"]' + - uuid: 0b31468772c942cc8a401af2d33f17d2 + name: 'Images discovery' + key: docker.images.discovery + delay: 15m + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$DOCKER.LLD.FILTER.IMAGE.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$DOCKER.LLD.FILTER.IMAGE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of images metrics.' + item_prototypes: + - uuid: 63b19204b1d0459b9969234a719dab93 + name: 'Image {#NAME}: Created' + type: DEPENDENT + key: 'docker.image.created["{#ID}"]' + delay: '0' + units: unixtime + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Id == "{#ID}")].Created.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: docker.images + tags: + - tag: component + value: system + - tag: image + value: '{#NAME}' + - uuid: 4eb812ba952e417185f6ac499d6cb85a + name: 'Image {#NAME}: Size' + type: DEPENDENT + key: 'docker.image.size["{#ID}"]' + delay: '0' + units: B + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Id == "{#ID}")].Size.first()' + master_item: + key: docker.images + tags: + - tag: component + value: storage + - tag: image + value: '{#NAME}' + tags: + - tag: class + value: software + - tag: target + value: docker + macros: + - macro: '{$DOCKER.LLD.FILTER.CONTAINER.MATCHES}' + value: '.*' + description: 'Filter of discoverable containers.' + - macro: '{$DOCKER.LLD.FILTER.CONTAINER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered containers.' + - macro: '{$DOCKER.LLD.FILTER.IMAGE.MATCHES}' + value: '.*' + description: 'Filter of discoverable images.' + - macro: '{$DOCKER.LLD.FILTER.IMAGE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered images.' + dashboards: + - uuid: 7eb6472d07ac4c379e6b730b59a12507 + name: 'Docker overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Docker by Zabbix agent 2' + name: 'Docker: Containers' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Docker by Zabbix agent 2' + name: 'Docker: Memory total' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Docker by Zabbix agent 2' + name: 'Docker: Images' + - type: STRING + name: reference + value: AAAAE + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Docker by Zabbix agent 2' + name: 'Docker: Size' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Docker by Zabbix agent 2' + name: 'Docker: Goroutines' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: bec7f850ca6a477fbaa6c409d971259f + name: 'Docker container health state' + mappings: + - value: '1' + newvalue: starting + - value: '2' + newvalue: unhealthy + - value: '3' + newvalue: healthy + - value: '4' + newvalue: none + - uuid: 2465e37ba23f4a7cb895835d8cf94737 + name: 'Docker date format' + mappings: + - value: '-1' + newvalue: 'Error parsing date' + - value: '-62135596800' + newvalue: 'Null time' + - uuid: c289195aa4dc47ab883fa95c9cb6fd07 + name: 'Docker flag' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: 8effc3f81db14540996e2373dde6eca9 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 5959831c9ec840f3af4ec7031f5213aa + name: 'Docker: Containers' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Docker by Zabbix agent 2' + key: docker.containers.running + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Docker by Zabbix agent 2' + key: docker.containers.paused + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'Docker by Zabbix agent 2' + key: docker.containers.stopped + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'Docker by Zabbix agent 2' + key: docker.containers.total + - uuid: b9131437fcc24587b47ef6dd5d51e15b + name: 'Docker: Goroutines' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Docker by Zabbix agent 2' + key: docker.goroutines + - uuid: 130ff603f0cd4ac4844817ccede8cfac + name: 'Docker: Images' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Docker by Zabbix agent 2' + key: docker.images.top_level + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Docker by Zabbix agent 2' + key: docker.images.total + - uuid: 5115b03abf71402db63c59b570e83dba + name: 'Docker: Memory total' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Docker by Zabbix agent 2' + key: docker.mem.total + - uuid: 815866ae9f77447bbf15a1b91f7c7708 + name: 'Docker: Size' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Docker by Zabbix agent 2' + key: docker.images_size + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Docker by Zabbix agent 2' + key: docker.layers_size + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'Docker by Zabbix agent 2' + key: docker.containers_size + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'Docker by Zabbix agent 2' + key: docker.volumes_size diff --git a/Elasticsearch_Cluster_by_HTTP.yaml b/Elasticsearch_Cluster_by_HTTP.yaml new file mode 100644 index 0000000..a3f8636 --- /dev/null +++ b/Elasticsearch_Cluster_by_HTTP.yaml @@ -0,0 +1,1890 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 52b2664578884d9eba62e47375c99f8e + template: 'Elasticsearch Cluster by HTTP' + name: 'Elasticsearch Cluster by HTTP' + description: | + The template to monitor Elasticsearch by Zabbix that work without any external scripts. + It works with both standalone and cluster instances. + The metrics are collected in one pass remotely using an HTTP agent. + They are getting values from REST API '_cluster/health', '_cluster/stats', '_nodes/stats' requests. + + Setup: + + 1. Set the hostname or IP address of the Elasticsearch host in the '{$ELASTICSEARCH.HOST}' macro. + + 2. Set the login and password in the '{$ELASTICSEARCH.USERNAME}' and '{$ELASTICSEARCH.PASSWORD}' macros. + + 3. If you use an atypical location of ES API, don't forget to change the macros '{$ELASTICSEARCH.SCHEME}','{$ELASTICSEARCH.PORT}'. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/399473-discussion-thread-for-official-zabbix-template-for-elasticsearch + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Applications + items: + - uuid: f3531c005c7f477b9916b4bf1ad273c2 + name: 'Delayed unassigned shards' + type: DEPENDENT + key: es.cluster.delayed_unassigned_shards + delay: '0' + description: 'The number of shards whose allocation has been delayed by the timeout settings.' + preprocessing: + - type: JSONPATH + parameters: + - $.delayed_unassigned_shards + master_item: + key: es.cluster.get_health + tags: + - tag: component + value: shards + - uuid: 7f587fd270be4eb68d81ae1de2a3ca1f + name: 'Get cluster health' + type: HTTP_AGENT + key: es.cluster.get_health + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$ELASTICSEARCH.USERNAME}' + password: '{$ELASTICSEARCH.PASSWORD}' + description: 'Returns the health status of a cluster.' + timeout: 15s + url: '{$ELASTICSEARCH.SCHEME}://{$ELASTICSEARCH.HOST}:{$ELASTICSEARCH.PORT}/_cluster/health?timeout=5s&filter_path=status,number_of_nodes,number_of_data_nodes,active_shards_percent_as_number,unassigned_shards,initializing_shards,relocating_shards,delayed_unassigned_shards,number_of_pending_tasks,task_max_waiting_in_queue_millis' + tags: + - tag: component + value: raw + - uuid: 7066a66f352e4d79ba4aec11c0c5c611 + name: 'Get cluster stats' + type: HTTP_AGENT + key: es.cluster.get_stats + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$ELASTICSEARCH.USERNAME}' + password: '{$ELASTICSEARCH.PASSWORD}' + description: 'Returns cluster statistics.' + timeout: 15s + url: '{$ELASTICSEARCH.SCHEME}://{$ELASTICSEARCH.HOST}:{$ELASTICSEARCH.PORT}/_cluster/stats?filter_path=indices.count,indices.docs.count,nodes.count.*,nodes.fs.*,nodes.jvm.max_uptime_in_millis' + tags: + - tag: component + value: raw + - uuid: 500a763b9bfd4044b2d3bc95d3a0586c + name: 'Inactive shards percentage' + type: DEPENDENT + key: es.cluster.inactive_shards_percent_as_number + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of inactive shards in the cluster expressed as a percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_shards_percent_as_number + - type: JAVASCRIPT + parameters: + - 'return (100 - value)' + master_item: + key: es.cluster.get_health + tags: + - tag: component + value: shards + - uuid: e0b684d5992a496981cf6fb9bb85be62 + name: 'Number of initializing shards' + type: DEPENDENT + key: es.cluster.initializing_shards + delay: '0' + description: 'The number of shards that are under initialization.' + preprocessing: + - type: JSONPATH + parameters: + - $.initializing_shards + master_item: + key: es.cluster.get_health + tags: + - tag: component + value: shards + triggers: + - uuid: ee59684bb2044540ad0306a5b6deb408 + expression: 'min(/Elasticsearch Cluster by HTTP/es.cluster.initializing_shards,10m)>0' + name: 'Elasticsearch: Cluster has the initializing shards' + priority: AVERAGE + description: 'The cluster has the initializing shards longer than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 7d3c87e2fcae49438a14380f7d5faa81 + name: 'Number of data nodes' + type: DEPENDENT + key: es.cluster.number_of_data_nodes + delay: '0' + description: 'The number of nodes that are dedicated to data nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.number_of_data_nodes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: es.cluster.get_health + tags: + - tag: component + value: nodes + - uuid: 4ec7496b441643f39df3e25c0225e6ec + name: 'Number of nodes' + type: DEPENDENT + key: es.cluster.number_of_nodes + delay: '0' + description: 'The number of nodes within the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.number_of_nodes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: es.cluster.get_health + tags: + - tag: component + value: nodes + triggers: + - uuid: 5be4cb40e72442aca18ea014adbead23 + expression: 'change(/Elasticsearch Cluster by HTTP/es.cluster.number_of_nodes)<0' + name: 'Elasticsearch: The number of nodes within the cluster has decreased' + priority: INFO + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2fba2b29425b4ff9a4008db9bde49d7f + expression: 'change(/Elasticsearch Cluster by HTTP/es.cluster.number_of_nodes)>0' + name: 'Elasticsearch: The number of nodes within the cluster has increased' + priority: INFO + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2c84eea7f4a642f8892cb7f50febb562 + name: 'Number of pending tasks' + type: DEPENDENT + key: es.cluster.number_of_pending_tasks + delay: '0' + description: 'The number of cluster-level changes that have not yet been executed.' + preprocessing: + - type: JSONPATH + parameters: + - $.number_of_pending_tasks + master_item: + key: es.cluster.get_health + tags: + - tag: component + value: tasks + - uuid: 981818f43a3c4b36b36e4b3c4e3468e9 + name: 'Number of relocating shards' + type: DEPENDENT + key: es.cluster.relocating_shards + delay: '0' + description: 'The number of shards that are under relocation.' + preprocessing: + - type: JSONPATH + parameters: + - $.relocating_shards + master_item: + key: es.cluster.get_health + tags: + - tag: component + value: shards + - uuid: b9568a6370dc40efae45ac1e0b719dd7 + name: 'Cluster health status' + type: DEPENDENT + key: es.cluster.status + delay: '0' + description: | + Health status of the cluster, based on the state of its primary and replica shards. Statuses are: + green + All shards are assigned. + yellow + All primary shards are assigned, but one or more replica shards are unassigned. If a node in the cluster fails, some data could be unavailable until that node is repaired. + red + One or more primary shards are unassigned, so some data is unavailable. This can occur briefly during cluster startup as primary shards are assigned. + valuemap: + name: 'ES cluster state' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + var state = ['green', 'yellow', 'red']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: es.cluster.get_health + tags: + - tag: component + value: health + triggers: + - uuid: f3bb7e96f6074063bad76521e1dce24f + expression: 'last(/Elasticsearch Cluster by HTTP/es.cluster.status)=2' + name: 'Elasticsearch: Health is RED' + priority: HIGH + description: | + One or more primary shards are unassigned, so some data is unavailable. + This can occur briefly during cluster startup as primary shards are assigned. + tags: + - tag: scope + value: availability + - uuid: 33a6ef13f7b240768841919482709411 + expression: 'last(/Elasticsearch Cluster by HTTP/es.cluster.status)=255' + name: 'Elasticsearch: Health is UNKNOWN' + priority: HIGH + description: 'The health status of the cluster is unknown or cannot be obtained.' + tags: + - tag: scope + value: availability + - uuid: 99f36c2aa5d64248b96d1fc97c3b3065 + expression: 'last(/Elasticsearch Cluster by HTTP/es.cluster.status)=1' + name: 'Elasticsearch: Health is YELLOW' + priority: AVERAGE + description: | + All primary shards are assigned, but one or more replica shards are unassigned. + If a node in the cluster fails, some data could be unavailable until that node is repaired. + tags: + - tag: scope + value: availability + - uuid: 2295e2ba3d4949feb3519ac85ba6ff86 + name: 'Task max waiting in queue' + type: DEPENDENT + key: es.cluster.task_max_waiting_in_queue + delay: '0' + value_type: FLOAT + units: s + description: 'The time expressed in seconds since the earliest initiated task is waiting for being performed.' + preprocessing: + - type: JSONPATH + parameters: + - $.task_max_waiting_in_queue_millis + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: es.cluster.get_health + tags: + - tag: component + value: tasks + - uuid: 85e82cba1e5c479caede2a94c58239be + name: 'Number of unassigned shards' + type: DEPENDENT + key: es.cluster.unassigned_shards + delay: '0' + description: 'The number of shards that are not allocated.' + preprocessing: + - type: JSONPATH + parameters: + - $.unassigned_shards + master_item: + key: es.cluster.get_health + tags: + - tag: component + value: shards + triggers: + - uuid: 35bdd54f27a64009b96a06a12508f99c + expression: 'min(/Elasticsearch Cluster by HTTP/es.cluster.unassigned_shards,10m)>0' + name: 'Elasticsearch: Cluster has the unassigned shards' + priority: AVERAGE + description: 'The cluster has the unassigned shards longer than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: db2f3161eaff4eb0b25d4191b423c733 + name: 'Indices with shards assigned to nodes' + type: DEPENDENT + key: es.indices.count + delay: '0' + description: 'The total number of indices with shards assigned to the selected nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.indices.count + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: es.cluster.get_stats + tags: + - tag: component + value: indices + - uuid: 25cb1e0203334efd96d3e626f81b4670 + name: 'Number of non-deleted documents' + type: DEPENDENT + key: es.indices.docs.count + delay: '0' + description: | + The total number of non-deleted documents across all primary shards assigned to the selected nodes. + This number is based on the documents in Lucene segments and may include the documents from nested fields. + preprocessing: + - type: JSONPATH + parameters: + - $.indices.docs.count + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: es.cluster.get_stats + tags: + - tag: component + value: documents + - uuid: 54f51a653e014290aa3f91deaca44e47 + name: 'Nodes with the data role' + type: DEPENDENT + key: es.nodes.count.data + delay: '0' + description: 'The number of selected nodes with the data role.' + preprocessing: + - type: JSONPATH + parameters: + - $.nodes.count.data + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: es.cluster.get_stats + tags: + - tag: component + value: nodes + - uuid: 613ab3469f234e278af99d61e57b46bd + name: 'Nodes with the ingest role' + type: DEPENDENT + key: es.nodes.count.ingest + delay: '0' + description: 'The number of selected nodes with the ingest role.' + preprocessing: + - type: JSONPATH + parameters: + - $.nodes.count.ingest + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: es.cluster.get_stats + tags: + - tag: component + value: nodes + - uuid: e7b36f37b86845339a306dacf874164a + name: 'Nodes with the master role' + type: DEPENDENT + key: es.nodes.count.master + delay: '0' + description: 'The number of selected nodes with the master role.' + preprocessing: + - type: JSONPATH + parameters: + - $.nodes.count.master + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: es.cluster.get_stats + tags: + - tag: component + value: nodes + triggers: + - uuid: 8011883baef04aa0bed343d1bb0df288 + expression: 'last(/Elasticsearch Cluster by HTTP/es.nodes.count.master)=2' + name: 'Elasticsearch: Cluster has only two master nodes' + priority: DISASTER + description: 'The cluster has only two nodes with a master role and will be unavailable if one of them breaks.' + tags: + - tag: scope + value: notice + - uuid: c3ea99e5897b4663a3239d0edd66f1f0 + name: 'Total available size to JVM in all file stores' + type: DEPENDENT + key: es.nodes.fs.available_in_bytes + delay: '0' + units: B + description: | + The total number of bytes available to JVM in the file stores across all selected nodes. + Depending on OS or process-level restrictions, this number may be less than nodes.fs.free_in_byes. + This is the actual amount of free disk space the selected Elasticsearch nodes can use. + preprocessing: + - type: JSONPATH + parameters: + - $.nodes.fs.available_in_bytes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: es.cluster.get_stats + tags: + - tag: component + value: storage + - uuid: b8c3c5d8866d4a6b9c6847b5c8da0631 + name: 'Total size of all file stores' + type: DEPENDENT + key: es.nodes.fs.total_in_bytes + delay: '0' + units: B + description: 'The total size in bytes of all file stores across all selected nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.nodes.fs.total_in_bytes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: es.cluster.get_stats + tags: + - tag: component + value: storage + - uuid: 66c22b8b2b8b40fda7ac6f0ae472befd + name: 'Get nodes stats' + type: HTTP_AGENT + key: es.nodes.get_stats + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$ELASTICSEARCH.USERNAME}' + password: '{$ELASTICSEARCH.PASSWORD}' + description: 'Returns cluster nodes statistics.' + timeout: 30s + url: '{$ELASTICSEARCH.SCHEME}://{$ELASTICSEARCH.HOST}:{$ELASTICSEARCH.PORT}/_nodes/stats?filter_path=nodes.*.name,nodes.*.fs.total.*,nodes.*.jvm.uptime_in_millis,nodes.*.jvm.mem.heap*,nodes.*.indices.*,nodes.*.thread_pool.*,nodes.*.http.current_open,nodes.*.http.total_opened' + tags: + - tag: component + value: raw + - uuid: 2dcf54f21cbd4af9a7931e3a2522685c + name: 'Cluster uptime' + type: DEPENDENT + key: es.nodes.jvm.max_uptime + delay: '0' + value_type: FLOAT + units: s + description: 'Uptime duration in seconds since JVM has last started.' + preprocessing: + - type: JSONPATH + parameters: + - $.nodes.jvm.max_uptime_in_millis + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: es.cluster.get_stats + tags: + - tag: component + value: system + triggers: + - uuid: d28aa18c85cb4f48a9e7b8ba55d65400 + expression: 'last(/Elasticsearch Cluster by HTTP/es.nodes.jvm.max_uptime)<10m' + name: 'Elasticsearch: Cluster has been restarted' + event_name: 'Elasticsearch: Cluster has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 671888d47c724e54aca78fbe1b3ecaed + name: 'Service response time' + type: SIMPLE + key: 'net.tcp.service.perf["{$ELASTICSEARCH.SCHEME}","{$ELASTICSEARCH.HOST}","{$ELASTICSEARCH.PORT}"]' + value_type: FLOAT + units: s + description: 'Checks performance of the TCP service.' + tags: + - tag: component + value: network + triggers: + - uuid: 2a3f3b96e5dd47de998ccc17f109e149 + expression: 'min(/Elasticsearch Cluster by HTTP/net.tcp.service.perf["{$ELASTICSEARCH.SCHEME}","{$ELASTICSEARCH.HOST}","{$ELASTICSEARCH.PORT}"],5m)>{$ELASTICSEARCH.RESPONSE_TIME.MAX.WARN}' + name: 'Elasticsearch: Service response time is too high' + event_name: 'Elasticsearch: Service response time is too high (over {$ELASTICSEARCH.RESPONSE_TIME.MAX.WARN} for 5m)' + priority: WARNING + description: 'The performance of the TCP service is very low.' + manual_close: 'YES' + dependencies: + - name: 'Elasticsearch: Service is down' + expression: 'last(/Elasticsearch Cluster by HTTP/net.tcp.service["{$ELASTICSEARCH.SCHEME}","{$ELASTICSEARCH.HOST}","{$ELASTICSEARCH.PORT}"])=0' + tags: + - tag: scope + value: performance + - uuid: d0d38ce55f844a51a0f2131c86bec1ae + name: 'Service status' + type: SIMPLE + key: 'net.tcp.service["{$ELASTICSEARCH.SCHEME}","{$ELASTICSEARCH.HOST}","{$ELASTICSEARCH.PORT}"]' + description: 'Checks if the service is running and accepting TCP connections.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b4d76f68ce94492f96bbfbb778d1f144 + expression: 'last(/Elasticsearch Cluster by HTTP/net.tcp.service["{$ELASTICSEARCH.SCHEME}","{$ELASTICSEARCH.HOST}","{$ELASTICSEARCH.PORT}"])=0' + name: 'Elasticsearch: Service is down' + priority: AVERAGE + description: 'The service is unavailable or does not accept TCP connections.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 5105173f24d941b2969fe3d190d22e82 + name: 'Cluster nodes discovery' + type: HTTP_AGENT + key: es.nodes.discovery + delay: 1h + authtype: BASIC + username: '{$ELASTICSEARCH.USERNAME}' + password: '{$ELASTICSEARCH.PASSWORD}' + description: 'Discovery ES cluster nodes.' + item_prototypes: + - uuid: b4e87d039e9d4feeb03e0e33f14b2c82 + name: 'ES {#ES.NODE}: Total available size' + type: DEPENDENT + key: 'es.node.fs.total.available_in_bytes[{#ES.NODE}]' + delay: '0' + units: B + description: | + The total number of bytes available to this Java virtual machine on all file stores. + Depending on OS or process level restrictions, this might appear less than fs.total.free_in_bytes. + This is the actual amount of free disk space the Elasticsearch node can utilize. + preprocessing: + - type: JSONPATH + parameters: + - $..fs.total.available_in_bytes.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: storage + - tag: node + value: '{#ES.NODE}' + - uuid: 4f315fdf62884b0284bf04f1a85aeb98 + name: 'ES {#ES.NODE}: Total size' + type: DEPENDENT + key: 'es.node.fs.total.total_in_bytes[{#ES.NODE}]' + delay: '0' + units: B + description: 'Total size (in bytes) of all file stores.' + preprocessing: + - type: JSONPATH + parameters: + - $..fs.total.total_in_bytes.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: storage + - tag: node + value: '{#ES.NODE}' + - uuid: 979eddbb814f44ef9ce34d19cc79ecd0 + name: 'ES {#ES.NODE}: Get data' + type: DEPENDENT + key: 'es.node.get.data[{#ES.NODE}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns cluster nodes statistics.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[?(@.name==''{#ES.NODE}'')].first()' + master_item: + key: es.nodes.get_stats + tags: + - tag: component + value: raw + - tag: node + value: '{#ES.NODE}' + - uuid: 2ba1fc7e2dad4d0ab1807221fb1e4fca + name: 'ES {#ES.NODE}: Number of open HTTP connections' + type: DEPENDENT + key: 'es.node.http.current_open[{#ES.NODE}]' + delay: '0' + description: 'The number of currently open HTTP connections for the node.' + preprocessing: + - type: JSONPATH + parameters: + - $..http.current_open.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: connections + - tag: node + value: '{#ES.NODE}' + - uuid: fcf163d5db9b455fa38823e8ad16e578 + name: 'ES {#ES.NODE}: Rate of HTTP connections opened' + type: DEPENDENT + key: 'es.node.http.opened.rate[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '!rps' + description: 'The number of HTTP connections opened for the node per second.' + preprocessing: + - type: JSONPATH + parameters: + - $..http.total_opened.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: connections + - tag: node + value: '{#ES.NODE}' + - uuid: c530311329e348cca74c38fa2260236b + name: 'ES {#ES.NODE}: Flush latency' + type: CALCULATED + key: 'es.node.indices.flush.latency[{#ES.NODE}]' + value_type: FLOAT + units: '!ms' + params: 'change(//es.node.indices.flush.total_time_in_millis[{#ES.NODE}]) / (change(//es.node.indices.flush.total[{#ES.NODE}]) + (change(//es.node.indices.flush.total[{#ES.NODE}]) = 0) )' + description: | + The average flush latency calculated from the available flush.total and flush.total_time_in_millis metrics. + If the calculated value cannot be evaluated due to missing historical data, the item returns '-1', indicating that there is not enough data to calculate the metric yet. + valuemap: + name: 'Missing data condition' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + trigger_prototypes: + - uuid: 6c2ea291374b4de1ab06ddeccba635b1 + expression: 'min(/Elasticsearch Cluster by HTTP/es.node.indices.flush.latency[{#ES.NODE}],5m)>{$ELASTICSEARCH.FLUSH_LATENCY.MAX.WARN}' + name: 'Elasticsearch: ES {#ES.NODE}: Flush latency is too high' + event_name: 'Elasticsearch: ES {#ES.NODE}: Flush latency is too high (over {$ELASTICSEARCH.FLUSH_LATENCY.MAX.WARN}ms for 5m)' + priority: WARNING + description: | + If you see this metric increasing steadily, it may indicate a problem with slow disks; this problem may escalate + and eventually prevent you from being able to add new information to your index. + tags: + - tag: scope + value: notice + - uuid: 8e270dfff9c84d2a96a134dd6d86533b + name: 'ES {#ES.NODE}: Total number of index flushes to disk' + type: DEPENDENT + key: 'es.node.indices.flush.total[{#ES.NODE}]' + delay: '0' + description: 'The total number of flush operations.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.flush.total.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + - uuid: 7e18149dcaee47748e4073f4ce814c03 + name: 'ES {#ES.NODE}: Total time spent on flushing indices to disk' + type: DEPENDENT + key: 'es.node.indices.flush.total_time_in_millis[{#ES.NODE}]' + delay: '0' + units: '!ms' + description: 'Total time in milliseconds spent performing flush operations.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.flush.total_time_in_millis.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + - uuid: e91cc33c088a4f56a9176fd6a09f2411 + name: 'ES {#ES.NODE}: Current indexing operations' + type: DEPENDENT + key: 'es.node.indices.indexing.index_current[{#ES.NODE}]' + delay: '0' + description: 'The number of indexing operations currently running.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.indexing.index_current.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + - uuid: 23f54c51c30a4dbdbef48611a7907db6 + name: 'ES {#ES.NODE}: Indexing latency' + type: CALCULATED + key: 'es.node.indices.indexing.index_latency[{#ES.NODE}]' + value_type: FLOAT + units: '!ms' + params: 'change(//es.node.indices.indexing.index_time_in_millis[{#ES.NODE}]) / (change(//es.node.indices.indexing.index_total[{#ES.NODE}]) + (change(//es.node.indices.indexing.index_total[{#ES.NODE}]) = 0) )' + description: | + The average indexing latency calculated from the available index_total and index_time_in_millis metrics. + If the calculated value cannot be evaluated due to missing historical data, the item returns '-1', indicating that there is not enough data to calculate the metric yet. + valuemap: + name: 'Missing data condition' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + trigger_prototypes: + - uuid: 2755b3f8811a45fba7c48347707ceaf8 + expression: 'min(/Elasticsearch Cluster by HTTP/es.node.indices.indexing.index_latency[{#ES.NODE}],5m)>{$ELASTICSEARCH.INDEXING_LATENCY.MAX.WARN}' + name: 'Elasticsearch: ES {#ES.NODE}: Indexing latency is too high' + event_name: 'Elasticsearch: ES {#ES.NODE}: Indexing latency is too high (over {$ELASTICSEARCH.INDEXING_LATENCY.MAX.WARN}ms for 5m)' + priority: WARNING + description: | + If the latency is increasing, it may indicate that you are indexing too many documents at the same time (Elasticsearch's documentation + recommends starting with a bulk indexing size of 5 to 15 megabytes and increasing slowly from there). + tags: + - tag: scope + value: notice + - uuid: f471dad45ff149b09a479963cb616fc2 + name: 'ES {#ES.NODE}: Total time spent performing indexing' + type: DEPENDENT + key: 'es.node.indices.indexing.index_time_in_millis[{#ES.NODE}]' + delay: '0' + units: '!ms' + description: 'Total time in milliseconds spent performing indexing operations.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.indexing.index_time_in_millis.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + - uuid: ad36b8495eca49c48e7d8a7877a325c2 + name: 'ES {#ES.NODE}: Total number of indexing' + type: DEPENDENT + key: 'es.node.indices.indexing.index_total[{#ES.NODE}]' + delay: '0' + description: 'The total number of indexing operations.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.indexing.index_total.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + - uuid: bb0cb2196b14483f8807a855f2f531a7 + name: 'ES {#ES.NODE}: Time spent throttling operations' + type: DEPENDENT + key: 'es.node.indices.indexing.throttle_time[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time in seconds spent throttling operations for the last measuring span.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.indexing.throttle_time_in_millis.first() + - type: MULTIPLIER + parameters: + - '0.001' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + - uuid: 5f3b7dca802343cd905d54e66ac0e113 + name: 'ES {#ES.NODE}: Time spent throttling merge operations' + type: DEPENDENT + key: 'es.node.indices.merges.total_throttled_time[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time in seconds spent throttling merge operations for the last measuring span.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.merges.total_throttled_time_in_millis.first() + - type: MULTIPLIER + parameters: + - '0.001' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + - uuid: 9c82da45a63947dd91a4e19e6f2d121d + name: 'ES {#ES.NODE}: Time spent throttling recovery operations' + type: DEPENDENT + key: 'es.node.indices.recovery.throttle_time[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time in seconds spent throttling recovery operations for the last measuring span.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.recovery.throttle_time_in_millis.first() + - type: MULTIPLIER + parameters: + - '0.001' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + - uuid: e27361fdce5a4635854960066ac050ca + name: 'ES {#ES.NODE}: Rate of index refreshes' + type: DEPENDENT + key: 'es.node.indices.refresh.rate[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '!rps' + description: 'The number of refresh operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.refresh.total.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + - uuid: fd20bbc5012d4c5693710b321e252193 + name: 'ES {#ES.NODE}: Time spent performing refresh' + type: DEPENDENT + key: 'es.node.indices.refresh.time[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time in seconds spent performing refresh operations for the last measuring span.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.refresh.total_time_in_millis.first() + - type: MULTIPLIER + parameters: + - '0.001' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: operations + - tag: node + value: '{#ES.NODE}' + - uuid: 6d3b074aecb44a08a3573aba0ff006f9 + name: 'ES {#ES.NODE}: Rate of fetch' + type: DEPENDENT + key: 'es.node.indices.search.fetch.rate[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '!rps' + description: 'The number of fetch operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.search.fetch_total.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: fetches + - tag: node + value: '{#ES.NODE}' + - uuid: 36b2ffa3ed9f4c9781ccded273c395d7 + name: 'ES {#ES.NODE}: Current fetch operations' + type: DEPENDENT + key: 'es.node.indices.search.fetch_current[{#ES.NODE}]' + delay: '0' + description: 'The number of fetch operations currently running.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.search.fetch_current.first() + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: fetches + - tag: node + value: '{#ES.NODE}' + - uuid: 79b5fd5e04e249da9f73fbe68915fdb1 + name: 'ES {#ES.NODE}: Fetch latency' + type: CALCULATED + key: 'es.node.indices.search.fetch_latency[{#ES.NODE}]' + value_type: FLOAT + units: '!ms' + params: 'change(//es.node.indices.search.fetch_time_in_millis[{#ES.NODE}]) / (change(//es.node.indices.search.fetch_total[{#ES.NODE}]) + (change(//es.node.indices.search.fetch_total[{#ES.NODE}]) = 0) )' + description: | + The average fetch latency calculated by sampling the total number of fetches and the total elapsed time at regular intervals. + If the calculated value cannot be evaluated due to missing historical data, the item returns '-1', indicating that there is not enough data to calculate the metric yet. + valuemap: + name: 'Missing data condition' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + tags: + - tag: component + value: fetches + - tag: node + value: '{#ES.NODE}' + trigger_prototypes: + - uuid: 6edd6851f31842659a57e29c444a9b32 + expression: 'min(/Elasticsearch Cluster by HTTP/es.node.indices.search.fetch_latency[{#ES.NODE}],5m)>{$ELASTICSEARCH.FETCH_LATENCY.MAX.WARN}' + name: 'Elasticsearch: ES {#ES.NODE}: Fetch latency is too high' + event_name: 'Elasticsearch: ES {#ES.NODE}: Fetch latency is too high (over {$ELASTICSEARCH.FETCH_LATENCY.MAX.WARN}ms for 5m)' + priority: WARNING + description: | + The fetch phase should typically take much less time than the query phase. If you notice this metric consistently increasing, + this could indicate a problem with slow disks, enriching of documents (highlighting the relevant text in search results, etc.), + or requesting too many results. + tags: + - tag: scope + value: notice + - uuid: a10e7dca72c8411a9b7fdcbeb676017e + name: 'ES {#ES.NODE}: Time spent performing fetch' + type: DEPENDENT + key: 'es.node.indices.search.fetch_time[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time in seconds spent performing fetch operations for the last measuring span.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.search.fetch_time_in_millis.first() + - type: MULTIPLIER + parameters: + - '0.001' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: fetches + - tag: node + value: '{#ES.NODE}' + - uuid: f35e3e9773394632b422dbc4e4442171 + name: 'ES {#ES.NODE}: Total time spent performing fetch' + type: DEPENDENT + key: 'es.node.indices.search.fetch_time_in_millis[{#ES.NODE}]' + delay: '0' + units: '!ms' + description: 'Time in milliseconds spent performing fetch operations.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.search.fetch_time_in_millis.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: fetches + - tag: node + value: '{#ES.NODE}' + - uuid: b3ac68f3531f478b9ad28fb1988df257 + name: 'ES {#ES.NODE}: Total number of fetch' + type: DEPENDENT + key: 'es.node.indices.search.fetch_total[{#ES.NODE}]' + delay: '0' + description: 'The total number of fetch operations.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.search.fetch_total.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: fetches + - tag: node + value: '{#ES.NODE}' + - uuid: d347df9c9eee4aa89ccfb9147143b5d5 + name: 'ES {#ES.NODE}: Rate of queries' + type: DEPENDENT + key: 'es.node.indices.search.query.rate[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '!rps' + description: 'The number of query operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.search.query_total.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: queries + - tag: node + value: '{#ES.NODE}' + - uuid: 20fb738abf7a4aa1bf3ccb84790a26c9 + name: 'ES {#ES.NODE}: Current query operations' + type: DEPENDENT + key: 'es.node.indices.search.query_current[{#ES.NODE}]' + delay: '0' + description: 'The number of query operations currently running.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.search.query_current.first() + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: queries + - tag: node + value: '{#ES.NODE}' + - uuid: fadb6fe530ab4b1296d4c17728667b12 + name: 'ES {#ES.NODE}: Query latency' + type: CALCULATED + key: 'es.node.indices.search.query_latency[{#ES.NODE}]' + value_type: FLOAT + units: '!ms' + params: 'change(//es.node.indices.search.query_time_in_millis[{#ES.NODE}]) / (change(//es.node.indices.search.query_total[{#ES.NODE}]) + (change(//es.node.indices.search.query_total[{#ES.NODE}]) = 0) )' + description: | + The average query latency calculated by sampling the total number of queries and the total elapsed time at regular intervals. + If the calculated value cannot be evaluated due to missing historical data, the item returns '-1', indicating that there is not enough data to calculate the metric yet. + valuemap: + name: 'Missing data condition' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + tags: + - tag: component + value: queries + - tag: node + value: '{#ES.NODE}' + trigger_prototypes: + - uuid: 1892000290c843e887d128bf9f97c869 + expression: 'min(/Elasticsearch Cluster by HTTP/es.node.indices.search.query_latency[{#ES.NODE}],5m)>{$ELASTICSEARCH.QUERY_LATENCY.MAX.WARN}' + name: 'Elasticsearch: ES {#ES.NODE}: Query latency is too high' + event_name: 'Elasticsearch: ES {#ES.NODE}: Query latency is too high (over {$ELASTICSEARCH.QUERY_LATENCY.MAX.WARN}ms for 5m)' + priority: WARNING + description: 'If latency exceeds a threshold, look for potential resource bottlenecks, or investigate whether you need to optimize your queries.' + tags: + - tag: scope + value: notice + - uuid: ce807b641b0b4501b6a8e253d8403ce4 + name: 'ES {#ES.NODE}: Time spent performing query' + type: DEPENDENT + key: 'es.node.indices.search.query_time[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time in seconds spent performing query operations for the last measuring span.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.search.query_time_in_millis.first() + - type: MULTIPLIER + parameters: + - '0.001' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: queries + - tag: node + value: '{#ES.NODE}' + - uuid: 7afc767463c64bbb9290975a8cef3cec + name: 'ES {#ES.NODE}: Total time spent performing query' + type: DEPENDENT + key: 'es.node.indices.search.query_time_in_millis[{#ES.NODE}]' + delay: '0' + units: '!ms' + description: 'Time in milliseconds spent performing query operations.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.search.query_time_in_millis.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: queries + - tag: node + value: '{#ES.NODE}' + - uuid: 7279b682fa3e4661a1600d6da25e0fc7 + name: 'ES {#ES.NODE}: Total number of query' + type: DEPENDENT + key: 'es.node.indices.search.query_total[{#ES.NODE}]' + delay: '0' + description: 'The total number of query operations.' + preprocessing: + - type: JSONPATH + parameters: + - $..indices.search.query_total.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: queries + - tag: node + value: '{#ES.NODE}' + - uuid: 269cc21be4c94ba58a52b9fca9590632 + name: 'ES {#ES.NODE}: Amount of JVM heap committed' + type: DEPENDENT + key: 'es.node.jvm.mem.heap_committed_in_bytes[{#ES.NODE}]' + delay: '0' + units: B + description: 'The amount of memory, in bytes, available for use by the heap.' + preprocessing: + - type: JSONPATH + parameters: + - $..jvm.mem.heap_committed_in_bytes.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: memory + - tag: node + value: '{#ES.NODE}' + - uuid: 7f205e21644a4f629e4a419c42670158 + name: 'ES {#ES.NODE}: Maximum JVM memory available for use' + type: DEPENDENT + key: 'es.node.jvm.mem.heap_max_in_bytes[{#ES.NODE}]' + delay: '0' + units: B + description: 'The maximum amount of memory, in bytes, available for use by the heap.' + preprocessing: + - type: JSONPATH + parameters: + - $..jvm.mem.heap_max_in_bytes.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: memory + - tag: node + value: '{#ES.NODE}' + - uuid: bb55c78c2aca49e49f6200e14c25dee8 + name: 'ES {#ES.NODE}: Amount of JVM heap currently in use' + type: DEPENDENT + key: 'es.node.jvm.mem.heap_used_in_bytes[{#ES.NODE}]' + delay: '0' + units: B + description: 'The memory, in bytes, currently in use by the heap.' + preprocessing: + - type: JSONPATH + parameters: + - $..jvm.mem.heap_used_in_bytes.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: memory + - tag: node + value: '{#ES.NODE}' + - uuid: 71fca039cad847da9623aaeb722168f1 + name: 'ES {#ES.NODE}: Percent of JVM heap currently in use' + type: DEPENDENT + key: 'es.node.jvm.mem.heap_used_percent[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of memory currently in use by the heap.' + preprocessing: + - type: JSONPATH + parameters: + - $..jvm.mem.heap_used_percent.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: memory + - tag: node + value: '{#ES.NODE}' + trigger_prototypes: + - uuid: 9d199607ddda48eebe9f93cae6d6575d + expression: 'min(/Elasticsearch Cluster by HTTP/es.node.jvm.mem.heap_used_percent[{#ES.NODE}],1h)>{$ELASTICSEARCH.HEAP_USED.MAX.CRIT}' + name: 'Elasticsearch: ES {#ES.NODE}: Percent of JVM heap in use is critical' + event_name: 'Elasticsearch: ES {#ES.NODE}: Percent of JVM heap in use is critical (over {$ELASTICSEARCH.HEAP_USED.MAX.CRIT}% for 1h)' + priority: HIGH + description: | + This indicates that the rate of garbage collection isn't keeping up with the rate of garbage creation. + To address this problem, you can either increase your heap size (as long as it remains below the recommended + guidelines stated above), or scale out the cluster by adding more nodes. + tags: + - tag: scope + value: performance + - uuid: bbba4a577a2c4328b2392fdeb1ff9bb4 + expression: 'min(/Elasticsearch Cluster by HTTP/es.node.jvm.mem.heap_used_percent[{#ES.NODE}],1h)>{$ELASTICSEARCH.HEAP_USED.MAX.WARN}' + name: 'Elasticsearch: ES {#ES.NODE}: Percent of JVM heap in use is high' + event_name: 'Elasticsearch: ES {#ES.NODE}: Percent of JVM heap in use is high (over {$ELASTICSEARCH.HEAP_USED.MAX.WARN}% for 1h)' + priority: WARNING + description: | + This indicates that the rate of garbage collection isn't keeping up with the rate of garbage creation. + To address this problem, you can either increase your heap size (as long as it remains below the recommended + guidelines stated above), or scale out the cluster by adding more nodes. + dependencies: + - name: 'Elasticsearch: ES {#ES.NODE}: Percent of JVM heap in use is critical' + expression: 'min(/Elasticsearch Cluster by HTTP/es.node.jvm.mem.heap_used_percent[{#ES.NODE}],1h)>{$ELASTICSEARCH.HEAP_USED.MAX.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 3c2f512ae6ff4221a7de4e5dbff2ed48 + name: 'ES {#ES.NODE}: Node uptime' + type: DEPENDENT + key: 'es.node.jvm.uptime[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: s + description: 'JVM uptime in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $..jvm.uptime_in_millis.first() + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: system + - tag: node + value: '{#ES.NODE}' + trigger_prototypes: + - uuid: 580ae8aadf994fbcb34c9c8ad7cd5fad + expression: 'last(/Elasticsearch Cluster by HTTP/es.node.jvm.uptime[{#ES.NODE}])<10m' + name: 'Elasticsearch: ES {#ES.NODE}: Node has been restarted' + event_name: 'Elasticsearch: ES {#ES.NODE}: Node has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 14ea2732fbfc40ceaafadfff1830ac4d + name: 'ES {#ES.NODE}: Refresh thread pool active threads' + type: DEPENDENT + key: 'es.node.thread_pool.refresh.active[{#ES.NODE}]' + delay: '0' + description: 'The number of active threads in the refresh thread pool.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.refresh.active.first() + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: refresh-thread-pool + - tag: node + value: '{#ES.NODE}' + - uuid: b6496d2878914b06bf6301630b4609a8 + name: 'ES {#ES.NODE}: Refresh thread pool executor tasks completed' + type: DEPENDENT + key: 'es.node.thread_pool.refresh.completed.rate[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '!rps' + description: 'The number of tasks completed by the refresh thread pool executor.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.refresh.completed.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: refresh-thread-pool + - tag: node + value: '{#ES.NODE}' + - uuid: 4b748eeb937e45308e58d699b713cf01 + name: 'ES {#ES.NODE}: Refresh thread pool tasks in queue' + type: DEPENDENT + key: 'es.node.thread_pool.refresh.queue[{#ES.NODE}]' + delay: '0' + description: 'The number of tasks in queue for the refresh thread pool.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.refresh.queue.first() + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: refresh-thread-pool + - tag: node + value: '{#ES.NODE}' + - uuid: 593514af005044ce8e6207a5616270f2 + name: 'ES {#ES.NODE}: Refresh thread pool executor tasks rejected' + type: DEPENDENT + key: 'es.node.thread_pool.refresh.rejected.rate[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '!rps' + description: 'The number of tasks rejected by the refresh thread pool executor.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.refresh.rejected.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: refresh-thread-pool + - tag: node + value: '{#ES.NODE}' + trigger_prototypes: + - uuid: b416941e8e0141c6af27c62f052ac860 + expression: 'min(/Elasticsearch Cluster by HTTP/es.node.thread_pool.refresh.rejected.rate[{#ES.NODE}],5m)>0' + name: 'Elasticsearch: ES {#ES.NODE}: Refresh thread pool executor has the rejected tasks' + event_name: 'Elasticsearch: ES {#ES.NODE}: Refresh thread pool executor has the rejected tasks (for 5m)' + priority: WARNING + description: 'The number of tasks rejected by the refresh thread pool executor is over 0 for 5m.' + tags: + - tag: scope + value: notice + - uuid: 63875f40cf7c4f8f842562be2adfb7c7 + name: 'ES {#ES.NODE}: Search thread pool active threads' + type: DEPENDENT + key: 'es.node.thread_pool.search.active[{#ES.NODE}]' + delay: '0' + description: 'The number of active threads in the search thread pool.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.search.active.first() + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: search-thread-pool + - tag: node + value: '{#ES.NODE}' + - uuid: dc67ab311d4945aaae3347464785abb1 + name: 'ES {#ES.NODE}: Search thread pool executor tasks completed' + type: DEPENDENT + key: 'es.node.thread_pool.search.completed.rate[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '!rps' + description: 'The number of tasks completed by the search thread pool executor.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.search.completed.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: search-thread-pool + - tag: node + value: '{#ES.NODE}' + - uuid: d11933b62131425d83ab09c6d5fd5e85 + name: 'ES {#ES.NODE}: Search thread pool tasks in queue' + type: DEPENDENT + key: 'es.node.thread_pool.search.queue[{#ES.NODE}]' + delay: '0' + description: 'The number of tasks in queue for the search thread pool.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.search.queue.first() + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: search-thread-pool + - tag: node + value: '{#ES.NODE}' + - uuid: 820ed330abc845919b1dada3cfa81387 + name: 'ES {#ES.NODE}: Search thread pool executor tasks rejected' + type: DEPENDENT + key: 'es.node.thread_pool.search.rejected.rate[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '!rps' + description: 'The number of tasks rejected by the search thread pool executor.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.search.rejected.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: search-thread-pool + - tag: node + value: '{#ES.NODE}' + trigger_prototypes: + - uuid: 5cfd3f9924614a4283f1255752b672f0 + expression: 'min(/Elasticsearch Cluster by HTTP/es.node.thread_pool.search.rejected.rate[{#ES.NODE}],5m)>0' + name: 'Elasticsearch: ES {#ES.NODE}: Search thread pool executor has the rejected tasks' + event_name: 'Elasticsearch: ES {#ES.NODE}: Search thread pool executor has the rejected tasks (for 5m)' + priority: WARNING + description: 'The number of tasks rejected by the search thread pool executor is over 0 for 5m.' + tags: + - tag: scope + value: notice + - uuid: 4b7dc34d78a64b24a8fd19af95e0f0bd + name: 'ES {#ES.NODE}: Write thread pool active threads' + type: DEPENDENT + key: 'es.node.thread_pool.write.active[{#ES.NODE}]' + delay: '0' + description: 'The number of active threads in the write thread pool.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.write.active.first() + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: write-thread-pool + - tag: node + value: '{#ES.NODE}' + - uuid: 5b5ac74702564bd490c7378adcf75c28 + name: 'ES {#ES.NODE}: Write thread pool executor tasks completed' + type: DEPENDENT + key: 'es.node.thread_pool.write.completed.rate[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '!rps' + description: 'The number of tasks completed by the write thread pool executor.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.write.completed.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: write-thread-pool + - tag: node + value: '{#ES.NODE}' + - uuid: a0d8f8d896a546d1ade07c355992308d + name: 'ES {#ES.NODE}: Write thread pool tasks in queue' + type: DEPENDENT + key: 'es.node.thread_pool.write.queue[{#ES.NODE}]' + delay: '0' + description: 'The number of tasks in queue for the write thread pool.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.write.queue.first() + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: write-thread-pool + - tag: node + value: '{#ES.NODE}' + - uuid: a21213815a30485a88b183e7b40a4e7e + name: 'ES {#ES.NODE}: Write thread pool executor tasks rejected' + type: DEPENDENT + key: 'es.node.thread_pool.write.rejected.rate[{#ES.NODE}]' + delay: '0' + value_type: FLOAT + units: '!rps' + description: 'The number of tasks rejected by the write thread pool executor.' + preprocessing: + - type: JSONPATH + parameters: + - $..thread_pool.write.rejected.first() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'es.node.get.data[{#ES.NODE}]' + tags: + - tag: component + value: write-thread-pool + - tag: node + value: '{#ES.NODE}' + trigger_prototypes: + - uuid: 1f5e30a34bb84cef831670974ec7c3e8 + expression: 'min(/Elasticsearch Cluster by HTTP/es.node.thread_pool.write.rejected.rate[{#ES.NODE}],5m)>0' + name: 'Elasticsearch: ES {#ES.NODE}: Write thread pool executor has the rejected tasks' + event_name: 'Elasticsearch: ES {#ES.NODE}: Write thread pool executor has the rejected tasks (for 5m)' + priority: WARNING + description: 'The number of tasks rejected by the write thread pool executor is over 0 for 5m.' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 0725d91f63b64346bbef2c20d2901e9b + name: 'ES {#ES.NODE}: Latency' + graph_items: + - color: 199C0D + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.indices.search.query_latency[{#ES.NODE}]' + - sortorder: '1' + color: F63100 + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.indices.indexing.index_latency[{#ES.NODE}]' + - sortorder: '2' + color: 00611C + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.indices.search.fetch_latency[{#ES.NODE}]' + - sortorder: '3' + color: F7941D + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.indices.flush.latency[{#ES.NODE}]' + - uuid: 5196ed75f24d48f7ae55b564b8d925e5 + name: 'ES {#ES.NODE}: Query load' + graph_items: + - color: 199C0D + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.indices.search.fetch_current[{#ES.NODE}]' + - sortorder: '1' + color: F63100 + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.indices.search.query_current[{#ES.NODE}]' + - uuid: 6d0e4fde0eeb47b6af4c9f40311b384d + name: 'ES {#ES.NODE}: Refresh thread pool' + graph_items: + - color: 199C0D + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.refresh.active[{#ES.NODE}]' + - sortorder: '1' + color: F63100 + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.refresh.queue[{#ES.NODE}]' + - sortorder: '2' + color: 00611C + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.refresh.completed.rate[{#ES.NODE}]' + - sortorder: '3' + color: F7941D + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.refresh.rejected.rate[{#ES.NODE}]' + - uuid: 9abe085b960d40bf8a99c88ec3564a8d + name: 'ES {#ES.NODE}: Search thread pool' + graph_items: + - color: 199C0D + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.search.active[{#ES.NODE}]' + - sortorder: '1' + color: F63100 + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.search.queue[{#ES.NODE}]' + - sortorder: '2' + color: 00611C + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.search.completed.rate[{#ES.NODE}]' + - sortorder: '3' + color: F7941D + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.search.rejected.rate[{#ES.NODE}]' + - uuid: 689492a2614642a1a5d3279c42b29e85 + name: 'ES {#ES.NODE}: Write thread pool' + graph_items: + - color: 199C0D + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.write.active[{#ES.NODE}]' + - sortorder: '1' + color: F63100 + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.write.queue[{#ES.NODE}]' + - sortorder: '2' + color: 00611C + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.write.completed.rate[{#ES.NODE}]' + - sortorder: '3' + color: F7941D + item: + host: 'Elasticsearch Cluster by HTTP' + key: 'es.node.thread_pool.write.rejected.rate[{#ES.NODE}]' + timeout: 15s + url: '{$ELASTICSEARCH.SCHEME}://{$ELASTICSEARCH.HOST}:{$ELASTICSEARCH.PORT}/_nodes?filter_path=nodes.*.name' + lld_macro_paths: + - lld_macro: '{#ES.NODE}' + path: $..name.first() + preprocessing: + - type: JSONPATH + parameters: + - '$.nodes.[*]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: class + value: software + - tag: target + value: elasticsearch + macros: + - macro: '{$ELASTICSEARCH.FETCH_LATENCY.MAX.WARN}' + value: '100' + description: 'Maximum of fetch latency in milliseconds for trigger expression.' + - macro: '{$ELASTICSEARCH.FLUSH_LATENCY.MAX.WARN}' + value: '100' + description: 'Maximum of flush latency in milliseconds for trigger expression.' + - macro: '{$ELASTICSEARCH.HEAP_USED.MAX.CRIT}' + value: '95' + description: 'The maximum percent in the use of JVM heap for critically trigger expression.' + - macro: '{$ELASTICSEARCH.HEAP_USED.MAX.WARN}' + value: '85' + description: 'The maximum percent in the use of JVM heap for warning trigger expression.' + - macro: '{$ELASTICSEARCH.HOST}' + value: '' + description: 'The hostname or IP address of the Elasticsearch host.' + - macro: '{$ELASTICSEARCH.INDEXING_LATENCY.MAX.WARN}' + value: '100' + description: 'Maximum of indexing latency in milliseconds for trigger expression.' + - macro: '{$ELASTICSEARCH.PASSWORD}' + description: 'The password of the Elasticsearch.' + - macro: '{$ELASTICSEARCH.PORT}' + value: '9200' + description: 'The port of the Elasticsearch host.' + - macro: '{$ELASTICSEARCH.QUERY_LATENCY.MAX.WARN}' + value: '100' + description: 'Maximum of query latency in milliseconds for trigger expression.' + - macro: '{$ELASTICSEARCH.RESPONSE_TIME.MAX.WARN}' + value: 10s + description: 'The ES cluster maximum response time in seconds for trigger expression.' + - macro: '{$ELASTICSEARCH.SCHEME}' + value: http + description: 'The scheme of the Elasticsearch (http/https).' + - macro: '{$ELASTICSEARCH.SINGLE.NODE.JVM.SPACE.MIN}' + value: 10G + description: 'Minimum free space available to JVM in single node instance in bytes for trigger expression.' + - macro: '{$ELASTICSEARCH.USERNAME}' + description: 'The username of the Elasticsearch.' + valuemaps: + - uuid: d651bdf75d0849d5ab2b0802fab76e22 + name: 'ES cluster state' + mappings: + - value: '0' + newvalue: green + - value: '1' + newvalue: yellow + - value: '2' + newvalue: red + - value: '255' + newvalue: unknown + - uuid: bffa7ea477c44e8cb24031b157587352 + name: 'Missing data condition' + mappings: + - value: '-1' + newvalue: 'Not enough data' + - uuid: 15d416d869894fdb959ca2cda2c5e37c + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 8ea1516885734182befd20b5f74d799c + expression: '(last(/Elasticsearch Cluster by HTTP/es.nodes.fs.available_in_bytes) < {$ELASTICSEARCH.SINGLE.NODE.JVM.SPACE.MIN}) and last(/Elasticsearch Cluster by HTTP/es.cluster.number_of_data_nodes) = 1' + name: 'Elasticsearch: Cluster does not have enough space (single node)' + event_name: 'Elasticsearch: Space available to JVM (less than {$ELASTICSEARCH.SINGLE.NODE.JVM.SPACE.MIN})' + priority: HIGH + description: | + The total number of bytes available to JVM in the file store is less than `{$ELASTICSEARCH.SINGLE.NODE.JVM.SPACE.MIN}`. + This is the actual amount of free disk space the selected Elasticsearch node can use. + tags: + - tag: scope + value: capacity + - uuid: a2f33888d2774325b7955b633a7aae81 + expression: '((last(/Elasticsearch Cluster by HTTP/es.nodes.fs.total_in_bytes) - last(/Elasticsearch Cluster by HTTP/es.nodes.fs.available_in_bytes)) / (last(/Elasticsearch Cluster by HTTP/es.cluster.number_of_data_nodes) - (last(/Elasticsearch Cluster by HTTP/es.cluster.number_of_data_nodes) >= 2)) > last(/Elasticsearch Cluster by HTTP/es.nodes.fs.available_in_bytes)) and (last(/Elasticsearch Cluster by HTTP/es.cluster.number_of_data_nodes) > 1)' + name: 'Elasticsearch: Cluster does not have enough space for resharding' + priority: HIGH + description: 'There is not enough disk space for index resharding.' + tags: + - tag: scope + value: capacity + graphs: + - uuid: 50f90b092fa24658b83b131fa7a3f2ce + name: 'ES: Cluster health' + graph_items: + - color: 199C0D + item: + host: 'Elasticsearch Cluster by HTTP' + key: es.cluster.inactive_shards_percent_as_number + - sortorder: '1' + color: F63100 + item: + host: 'Elasticsearch Cluster by HTTP' + key: es.cluster.relocating_shards + - sortorder: '2' + color: 00611C + item: + host: 'Elasticsearch Cluster by HTTP' + key: es.cluster.initializing_shards + - sortorder: '3' + color: F7941D + item: + host: 'Elasticsearch Cluster by HTTP' + key: es.cluster.unassigned_shards + - sortorder: '4' + color: FC6EA3 + item: + host: 'Elasticsearch Cluster by HTTP' + key: es.cluster.delayed_unassigned_shards + - sortorder: '5' + color: 6C59DC + item: + host: 'Elasticsearch Cluster by HTTP' + key: es.cluster.number_of_pending_tasks + - sortorder: '6' + color: C7A72D + item: + host: 'Elasticsearch Cluster by HTTP' + key: es.cluster.task_max_waiting_in_queue diff --git a/Envoy_Proxy_by_HTTP.yaml b/Envoy_Proxy_by_HTTP.yaml new file mode 100644 index 0000000..36ec5c5 --- /dev/null +++ b/Envoy_Proxy_by_HTTP.yaml @@ -0,0 +1,1568 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 0368ca599bbb49729587b9c43ac83084 + template: 'Envoy Proxy by HTTP' + name: 'Envoy Proxy by HTTP' + description: | + Get Envoy Proxy metrics by HTTP agent from metrics endpoint. + https://www.envoyproxy.io/docs/envoy/v1.20.0/operations/stats_overview + + Don't forget to change macros {$ENVOY.URL}, {$ENVOY.METRICS.PATH}. + Some metrics may not be collected depending on your Envoy Proxy instance version and configuration. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: c5c90eeb0c424cc8ade0b795f2c1bb45 + name: 'Clusters, active' + type: DEPENDENT + key: envoy.cluster_manager.active_clusters + delay: '0' + description: 'Number of currently active (warmed) clusters.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_cluster_manager_active_clusters + - value + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: cluster + - uuid: f994b20217444723b6a1aad5b9a07cd0 + name: 'Clusters, added rate' + type: DEPENDENT + key: envoy.cluster_manager.cluster_added.rate + delay: '0' + value_type: FLOAT + description: 'Total clusters added (either via static config or CDS) per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_cluster_manager_cluster_added + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: cluster + - uuid: 0286c5deba924ce8b79e3b1f6c9e033c + name: 'Clusters, modified rate' + type: DEPENDENT + key: envoy.cluster_manager.cluster_modified.rate + delay: '0' + value_type: FLOAT + description: 'Total clusters modified (via CDS) per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_cluster_manager_cluster_modified + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: cluster + - uuid: 5c3475b88a044d0bb779a3ee455d2618 + name: 'Clusters, removed rate' + type: DEPENDENT + key: envoy.cluster_manager.cluster_removed.rate + delay: '0' + value_type: FLOAT + description: 'Total clusters removed (via CDS) per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_cluster_manager_cluster_removed + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: cluster + - uuid: 9bb29e3b322e40c3aaa14f2e0911cc68 + name: 'Clusters, updates rate' + type: DEPENDENT + key: envoy.cluster_manager.cluster_updated.rate + delay: '0' + value_type: FLOAT + description: 'Total cluster updates per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_cluster_manager_cluster_updated + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: cluster + - uuid: 9c3503fc553a409ab897f287b882f055 + name: 'Clusters, warming' + type: DEPENDENT + key: envoy.cluster_manager.warming_clusters + delay: '0' + description: 'Number of currently warming (not active) clusters.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_cluster_manager_warming_clusters + - value + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: cluster + - uuid: cc10052300624df3bf869279dd5e7b49 + name: 'Filesystem, flushed by timer rate' + type: DEPENDENT + key: envoy.filesystem.flushed_by_timer.rate + delay: '0' + value_type: FLOAT + description: 'Total number of times internal flush buffers are written to a file due to flush timeout per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_filesystem_flushed_by_timer + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: filesystem + - uuid: b3c050dd60d44c0599bc44c9a21621d9 + name: 'Filesystem, reopen failed rate' + type: DEPENDENT + key: envoy.filesystem.reopen_failed.rate + delay: '0' + value_type: FLOAT + description: 'Total number of times a file was failed to be opened per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_filesystem_reopen_failed + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: filesystem + - uuid: 2f400ee513c841f6b7a4fa48834f4a9c + name: 'Filesystem, write completed rate' + type: DEPENDENT + key: envoy.filesystem.write_completed.rate + delay: '0' + value_type: FLOAT + description: 'Total number of times a file was written per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_filesystem_write_completed + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: filesystem + - uuid: ae48575f37494e0e9ccfa2c390f5bf68 + name: 'Filesystem, write failed rate' + type: DEPENDENT + key: envoy.filesystem.write_failed.rate + delay: '0' + value_type: FLOAT + description: 'Total number of times an error occurred during a file write operation per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_filesystem_write_failed + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: filesystem + - uuid: c6baf4c4e99f4516a23f87c089252a82 + name: 'Get node metrics' + type: HTTP_AGENT + key: envoy.get_metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get server metrics.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + url: '{$ENVOY.URL}{$ENVOY.METRICS.PATH}' + tags: + - tag: component + value: raw + - uuid: 579f47037749460e974433ef6cfe3202 + name: 'Listeners, added' + type: DEPENDENT + key: envoy.listener_manager.listener_added.rate + delay: '0' + value_type: FLOAT + description: 'Total listeners added (either via static config or LDS) per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_listener_manager_listener_added + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener + - uuid: a259d191fcce48458a9f671a1a2dd6aa + name: 'Listeners, create failure' + type: DEPENDENT + key: envoy.listener_manager.listener_create_failure.rate + delay: '0' + value_type: FLOAT + description: 'Total failed listener object additions to workers per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_listener_manager_listener_create_failure + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener + - uuid: c036b55d5aea45f9b0e9c44ea279e2ed + name: 'Listeners, create success' + type: DEPENDENT + key: envoy.listener_manager.listener_create_success.rate + delay: '0' + value_type: FLOAT + description: 'Total listener objects successfully added to workers per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_listener_manager_listener_create_success + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener + - uuid: b217c7aaa415495089d079a2f81ead2d + name: 'Listeners, stopped' + type: DEPENDENT + key: envoy.listener_manager.listener_stopped.rate + delay: '0' + value_type: FLOAT + description: 'Total listeners stopped per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_listener_manager_listener_stopped + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener + - uuid: 7ba3e4be89514d53b8ebaad8e9ba58d0 + name: 'Listeners, active' + type: DEPENDENT + key: envoy.listener_manager.total_listeners_active + delay: '0' + description: 'Number of currently active listeners.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_listener_manager_total_listeners_active + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener + - uuid: f01f1236cd1a4661b67633836a61537e + name: 'Listeners, draining' + type: DEPENDENT + key: envoy.listener_manager.total_listeners_draining + delay: '0' + description: 'Number of currently draining listeners.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_listener_manager_total_listeners_draining + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener + - uuid: a1a01a7df5364a098fdf96b9de20558d + name: 'Listener, warming' + type: DEPENDENT + key: envoy.listener_manager.total_listeners_warming + delay: '0' + description: 'Number of currently warming listeners.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_listener_manager_total_listeners_warming + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener + - uuid: feeab802ed9a44559ded48ea67aba23e + name: 'Listener manager, initialized' + type: DEPENDENT + key: envoy.listener_manager.workers_started + delay: '0' + description: 'A boolean (1 if started and 0 otherwise) that indicates whether listeners have been initialized on workers.' + valuemap: + name: 'Envoy listener manager' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_listener_manager_workers_started + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener-manager + - uuid: b8e3b2a5614e4460abe10be443641621 + name: 'Server concurrency' + type: DEPENDENT + key: envoy.server.concurrency + delay: '0' + description: 'Number of worker threads.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_server_concurrency + - value + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: application + - uuid: 91cbea325a634d8a8fc256782a7e004d + name: 'Certificate expiration, day before' + type: DEPENDENT + key: envoy.server.days_until_first_cert_expiring + delay: '0' + units: '!Days' + description: 'Number of days until the next certificate being managed will expire.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_server_days_until_first_cert_expiring + - value + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: certificate + triggers: + - uuid: d025e1c521ee4f53acd896d96609beec + expression: 'last(/Envoy Proxy by HTTP/envoy.server.days_until_first_cert_expiring)<{$ENVOY.CERT.MIN}' + name: 'Envoy Proxy: SSL certificate expires soon' + event_name: 'Envoy Proxy: SSL certificate expires soon (less than {$CERT.EXPIRY.MIN} days)' + opdata: 'Expires: {ITEM.VALUE}' + priority: WARNING + description: 'Please check certificate. Less than {$ENVOY.CERT.MIN} days left until the next certificate being managed will expire.' + tags: + - tag: scope + value: security + - uuid: d8fc1e89c2e14f5e86ea1378fee22a0b + name: 'Server live' + type: DEPENDENT + key: envoy.server.live + delay: '0' + description: '1 if the server is not currently draining, 0 otherwise.' + valuemap: + name: 'Envoy server live' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_server_live + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: health + - uuid: 4b50974e6b7444c8a47da589239247a9 + name: 'Memory allocated' + type: DEPENDENT + key: envoy.server.memory_allocated + delay: '0' + value_type: FLOAT + units: B + description: 'Current amount of allocated memory in bytes. Total of both new and old Envoy processes on hot restart.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_server_memory_allocated + - value + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: memory + - uuid: 05b2fe80bbc54b58b19166c921ba244a + name: 'Memory heap size' + type: DEPENDENT + key: envoy.server.memory_heap_size + delay: '0' + value_type: FLOAT + units: B + description: 'Current reserved heap size in bytes. New Envoy process heap size on hot restart.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_server_memory_heap_size + - value + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: memory + - uuid: a1842c747e5b44a39746037b3f844f4f + name: 'Memory physical size' + type: DEPENDENT + key: envoy.server.memory_physical_size + delay: '0' + value_type: FLOAT + units: B + description: 'Current estimate of total bytes of the physical memory. New Envoy process physical memory size on hot restart.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_server_memory_physical_size + - value + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: memory + - uuid: a13b35ef1e9f4697953a935239b146d9 + name: 'Connections, parent' + type: DEPENDENT + key: envoy.server.parent_connections + delay: '0' + value_type: FLOAT + description: 'Total connections of the old Envoy process on hot restart.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_server_parent_connections + - value + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: connections + - uuid: 701e69bdd408408c8b516e130ed31725 + name: 'Server state' + type: DEPENDENT + key: envoy.server.state + delay: '0' + description: | + State of the server. + Live - (default) Server is live and serving traffic. + Draining - Server is draining listeners in response to external health checks failing. + Pre initializing - Server has not yet completed cluster manager initialization. + Initializing - Server is running the cluster manager initialization callbacks (e.g., RDS). + valuemap: + name: 'Envoy server state' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_server_state + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: health + triggers: + - uuid: b90a6241e1294fdc8502426b7582c1c2 + expression: 'last(/Envoy Proxy by HTTP/envoy.server.state) > 0' + name: 'Envoy Proxy: Server state is not live' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 8b2f3702af20404aa1c75498098aff02 + name: 'Connections, total' + type: DEPENDENT + key: envoy.server.total_connections + delay: '0' + value_type: FLOAT + description: 'Total connections of both new and old Envoy processes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_server_total_connections + - value + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: connections + - uuid: ee3c3a89aed34257999e6106fddbc8a4 + name: Uptime + type: DEPENDENT + key: envoy.server.uptime + delay: '0' + value_type: FLOAT + units: s + description: 'Current server uptime in seconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - envoy_server_uptime + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: application + triggers: + - uuid: 173c90200dd1451db10b8ea8b018bc54 + expression: 'nodata(/Envoy Proxy by HTTP/envoy.server.uptime,10m)=1' + name: 'Envoy Proxy: Failed to fetch metrics data' + event_name: 'Envoy Proxy: Failed to fetch metrics data (or no data for 10m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 01e29535e00143c9a64fe844f637f17e + expression: 'last(/Envoy Proxy by HTTP/envoy.server.uptime)<10m' + name: 'Envoy Proxy: Service has been restarted' + event_name: 'Envoy Proxy: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: e5e43b5959744fdd94f103df8d33f635 + name: 'Cluster metrics discovery' + type: DEPENDENT + key: envoy.lld.cluster + delay: '0' + item_prototypes: + - uuid: 6040df76d67048aaa4217dc14a2db3ed + name: 'Cluster ["{#CLUSTER_NAME}"]: Membership, degraded' + type: DEPENDENT + key: 'envoy.cluster.membership_degraded["{#CLUSTER_NAME}"]' + delay: '0' + description: 'Current cluster degraded total.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_membership_degraded{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - uuid: 0368ecc40bc54a70bae3c81509bad062 + name: 'Cluster ["{#CLUSTER_NAME}"]: Membership, healthy' + type: DEPENDENT + key: 'envoy.cluster.membership_healthy["{#CLUSTER_NAME}"]' + delay: '0' + description: 'Current cluster healthy total (inclusive of both health checking and outlier detection).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_membership_healthy{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - uuid: a4cd74b439e3483499e30ffefdb36976 + name: 'Cluster ["{#CLUSTER_NAME}"]: Membership, total' + type: DEPENDENT + key: 'envoy.cluster.membership_total["{#CLUSTER_NAME}"]' + delay: '0' + description: 'Current cluster membership total.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_membership_total{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - uuid: d453ade473ae4beaab06afa117814a1b + name: 'Cluster ["{#CLUSTER_NAME}"]: Membership, unhealthy' + type: CALCULATED + key: 'envoy.cluster.membership_unhealthy["{#CLUSTER_NAME}"]' + params: 'last(//envoy.cluster.membership_total["{#CLUSTER_NAME}"]) - last(//envoy.cluster.membership_healthy["{#CLUSTER_NAME}"])' + description: 'Current cluster unhealthy.' + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + trigger_prototypes: + - uuid: 7542707fd247445cb9eaa51d01e76d5e + expression: 'last(/Envoy Proxy by HTTP/envoy.cluster.membership_unhealthy["{#CLUSTER_NAME}"]) > 0' + name: 'Envoy Proxy: There are unhealthy clusters' + opdata: 'Current number: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: b5c802ae97a0449cbbb7f43a2510fd56 + name: 'Cluster ["{#CLUSTER_NAME}"]: Connections, active' + type: DEPENDENT + key: 'envoy.cluster.upstream_cx_active["{#CLUSTER_NAME}"]' + delay: '0' + description: 'Current cluster total active connections.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_cx_active{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: connections + - uuid: c7106f0670764bc297920a5e62768c55 + name: 'Cluster ["{#CLUSTER_NAME}"]: Upstream bytes in, rate' + type: DEPENDENT + key: 'envoy.cluster.upstream_cx_rx_bytes_total.rate["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Total received connection bytes per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_cx_rx_bytes_total{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: network + - uuid: d180e76ccb3a456b8100c4669173c0f7 + name: 'Cluster ["{#CLUSTER_NAME}"]: Connections, total' + type: DEPENDENT + key: 'envoy.cluster.upstream_cx_total["{#CLUSTER_NAME}"]' + delay: '0' + description: 'Current cluster total connections.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_cx_total{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: connections + - uuid: d024405b571946939fa20d495ef6c7d8 + name: 'Cluster ["{#CLUSTER_NAME}"]: Upstream bytes out, rate' + type: DEPENDENT + key: 'envoy.cluster.upstream_cx_tx_bytes_total.rate["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Total sent connection bytes per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_cx_tx_bytes_total{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: network + - uuid: f6724ac1954e4c71a95a01a441d46e5d + name: 'Cluster ["{#CLUSTER_NAME}"]: Requests 2xx, rate' + type: DEPENDENT + key: 'envoy.cluster.upstream_rq_2x.rate["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Aggregate HTTP response codes per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_rq_xx{envoy_cluster_name = "{#CLUSTER_NAME}", envoy_response_code_class="2"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: requests + - uuid: 248d268966ed4999916d77b340f82fa1 + name: 'Cluster ["{#CLUSTER_NAME}"]: Requests 3xx, rate' + type: DEPENDENT + key: 'envoy.cluster.upstream_rq_3x.rate["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Aggregate HTTP response codes per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_rq_xx{envoy_cluster_name = "{#CLUSTER_NAME}", envoy_response_code_class="3"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: requests + - uuid: 65e956c129e2436896f1a3d46a1f9090 + name: 'Cluster ["{#CLUSTER_NAME}"]: Requests 4xx, rate' + type: DEPENDENT + key: 'envoy.cluster.upstream_rq_4x.rate["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Aggregate HTTP response codes per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_rq_xx{envoy_cluster_name = "{#CLUSTER_NAME}", envoy_response_code_class="4"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: requests + - uuid: a85872e72792460e97d8fd322e0919a1 + name: 'Cluster ["{#CLUSTER_NAME}"]: Requests 5xx, rate' + type: DEPENDENT + key: 'envoy.cluster.upstream_rq_5x.rate["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Aggregate HTTP response codes per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_rq_xx{envoy_cluster_name = "{#CLUSTER_NAME}", envoy_response_code_class="5"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: requests + - uuid: a06b43daf8e2493eb61d27cea8baba79 + name: 'Cluster ["{#CLUSTER_NAME}"]: Requests active' + type: DEPENDENT + key: 'envoy.cluster.upstream_rq_active["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total active requests.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_rq_active{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: requests + - uuid: bd1c6766c9e047f1a40f6b1f22f00623 + name: 'Cluster ["{#CLUSTER_NAME}"]: Requests completed, rate' + type: DEPENDENT + key: 'envoy.cluster.upstream_rq_completed.rate["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total upstream requests completed per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_rq_completed{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: requests + - uuid: 267c3d01aa614dbdb0f0dcbe3ab2e11b + name: 'Cluster ["{#CLUSTER_NAME}"]: Requests pending' + type: DEPENDENT + key: 'envoy.cluster.upstream_rq_pending_active["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total active requests pending a connection pool connection.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_rq_pending_active{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: requests + - uuid: 2489b20b43044020a3ace164f6049af6 + name: 'Cluster ["{#CLUSTER_NAME}"]: Requests timeout, rate' + type: DEPENDENT + key: 'envoy.cluster.upstream_rq_timeout.rate["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Current cluster requests that timed out waiting for a response per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_rq_timeout{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: requests + - uuid: b807e34a608042419d69eae46aa4338c + name: 'Cluster ["{#CLUSTER_NAME}"]: Requests total, rate' + type: DEPENDENT + key: 'envoy.cluster.upstream_rq_total.rate["{#CLUSTER_NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Current cluster request total per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_cluster_upstream_rq_total{envoy_cluster_name = "{#CLUSTER_NAME}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: cluster + value: '{#CLUSTER_NAME}' + - tag: component + value: cluster + - tag: component + value: requests + graph_prototypes: + - uuid: a1ecd91cb0a44c39923d4b806aae4039 + name: 'Envoy Proxy: [{#CLUSTER_NAME}] HTTP requests' + graph_items: + - color: 199C0D + item: + host: 'Envoy Proxy by HTTP' + key: 'envoy.cluster.upstream_rq_2x.rate["{#CLUSTER_NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Envoy Proxy by HTTP' + key: 'envoy.cluster.upstream_rq_3x.rate["{#CLUSTER_NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Envoy Proxy by HTTP' + key: 'envoy.cluster.upstream_rq_4x.rate["{#CLUSTER_NAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'Envoy Proxy by HTTP' + key: 'envoy.cluster.upstream_rq_5x.rate["{#CLUSTER_NAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Envoy Proxy by HTTP' + key: 'envoy.cluster.upstream_rq_total.rate["{#CLUSTER_NAME}"]' + - uuid: 46f4d9b835274a7dafdda64563f482a9 + name: 'Envoy Proxy: [{#CLUSTER_NAME}] Upstream traffic' + graph_items: + - color: 199C0D + item: + host: 'Envoy Proxy by HTTP' + key: 'envoy.cluster.upstream_cx_rx_bytes_total.rate["{#CLUSTER_NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Envoy Proxy by HTTP' + key: 'envoy.cluster.upstream_cx_tx_bytes_total.rate["{#CLUSTER_NAME}"]' + master_item: + key: envoy.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - envoy_cluster_membership_total + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var envoy_cluster_name = item.labels.envoy_cluster_name; + + if (lookup[envoy_cluster_name]) { + return; + } + lookup[envoy_cluster_name] = 1; + result.push({ + '{#CLUSTER_NAME}': envoy_cluster_name + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: ea40e02e3b4e40ea989612949a1a8bef + name: 'HTTP metrics discovery' + type: DEPENDENT + key: envoy.lld.http + delay: '0' + item_prototypes: + - uuid: f4106316b7a44555bd2fcb98ed291a23 + name: 'HTTP ["{#CONN_MANAGER}"]: Connections, active' + type: DEPENDENT + key: 'envoy.http.downstream_cx_active["{#CONN_MANAGER}"]' + delay: '0' + value_type: FLOAT + description: 'Total active connections.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_http_downstream_cx_active{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: http + - tag: connection-manager + value: '{#CONN_MANAGER}' + - uuid: d5f88107012a4a41a86cb9a76bf8ebc5 + name: 'HTTP ["{#CONN_MANAGER}"]: Bytes in, rate' + type: DEPENDENT + key: 'envoy.http.downstream_cx_rx_bytes_total.rate["{#CONN_MANAGER}"]' + delay: '0' + value_type: FLOAT + description: 'Total bytes received per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_http_downstream_cx_rx_bytes_total{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: http + - tag: connection-manager + value: '{#CONN_MANAGER}' + - uuid: cff73e6c597d4103bdf6445b0910a434 + name: 'HTTP ["{#CONN_MANAGER}"]: Connections, rate' + type: DEPENDENT + key: 'envoy.http.downstream_cx_total["{#CONN_MANAGER}"]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'Total connections per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_http_downstream_cx_total{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: http + - tag: connection-manager + value: '{#CONN_MANAGER}' + - uuid: a0bc5e6a55af4fa29869f05c1c0943f6 + name: 'HTTP ["{#CONN_MANAGER}"]: Bytes out, rate' + type: DEPENDENT + key: 'envoy.http.downstream_cx_tx_bytes_tota.rate["{#CONN_MANAGER}"]' + delay: '0' + value_type: FLOAT + description: 'Total bytes sent per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_http_downstream_cx_tx_bytes_total{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: http + - tag: connection-manager + value: '{#CONN_MANAGER}' + - uuid: 19ce2a7cc34c4b49ad0117c62241eabf + name: 'HTTP ["{#CONN_MANAGER}"]: Requests, active' + type: DEPENDENT + key: 'envoy.http.downstream_rq_active["{#CONN_MANAGER}"]' + delay: '0' + value_type: FLOAT + description: 'Total active requests.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_http_downstream_rq_active{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: http + - tag: connection-manager + value: '{#CONN_MANAGER}' + - uuid: df31ba8ca0db4b2daade17a9a54273cf + name: 'HTTP ["{#CONN_MANAGER}"]: Requests timeout, rate' + type: DEPENDENT + key: 'envoy.http.downstream_rq_timeout["{#CONN_MANAGER}"]' + delay: '0' + value_type: FLOAT + description: 'Total requests closed due to a timeout on the request path per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_http_downstream_rq_timeout{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: http + - tag: connection-manager + value: '{#CONN_MANAGER}' + - uuid: 87cc859a403348a2b7bcfa398b3150c8 + name: 'HTTP ["{#CONN_MANAGER}"]: Requests, rate' + type: DEPENDENT + key: 'envoy.http.downstream_rq_total.rate["{#CONN_MANAGER}"]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'Total active connections per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_http_downstream_rq_total{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: http + - tag: connection-manager + value: '{#CONN_MANAGER}' + graph_prototypes: + - uuid: 71b114ee64d34d74a32b18e2f7d25d8c + name: 'Envoy Proxy: [{#CLUSTER_NAME}] Downstream traffic' + graph_items: + - color: 199C0D + item: + host: 'Envoy Proxy by HTTP' + key: 'envoy.http.downstream_cx_rx_bytes_total.rate["{#CONN_MANAGER}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Envoy Proxy by HTTP' + key: 'envoy.http.downstream_cx_tx_bytes_tota.rate["{#CONN_MANAGER}"]' + master_item: + key: envoy.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - envoy_http_downstream_rq_total + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var envoy_http_conn_manager_prefix = item.labels.envoy_http_conn_manager_prefix; + + if (lookup[envoy_http_conn_manager_prefix]) { + return; + } + lookup[envoy_http_conn_manager_prefix] = 1; + result.push({ + '{#CONN_MANAGER}': envoy_http_conn_manager_prefix + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 953541f62c8c461795c2ebed7f4f52cf + name: 'Listeners metrics discovery' + type: DEPENDENT + key: envoy.lld.listeners + delay: '0' + item_prototypes: + - uuid: 3ecae47c57984a6ab5ff854ce2e5415e + name: 'Listener ["{#LISTENER_ADDRESS}"]: Connections, active' + type: DEPENDENT + key: 'envoy.listener.downstream_cx_active["{#LISTENER_ADDRESS}"]' + delay: '0' + description: 'Total active connections.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_listener_downstream_cx_active{envoy_listener_address = "{#LISTENER_ADDRESS}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener + - tag: listener-address + value: '{#LISTENER_ADDRESS}' + - uuid: 7cc50e3001ac4a8ca433529c52a56e83 + name: 'Listener ["{#LISTENER_ADDRESS}"]: Connections, rate' + type: DEPENDENT + key: 'envoy.listener.downstream_cx_total.rate["{#LISTENER_ADDRESS}"]' + delay: '0' + value_type: FLOAT + description: 'Total connections per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_listener_downstream_cx_total{envoy_listener_address = "{#LISTENER_ADDRESS}"}' + - function + - sum + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener + - tag: listener-address + value: '{#LISTENER_ADDRESS}' + - uuid: 5c155a0d2fd14623ba51670e4083ecee + name: 'Listener ["{#LISTENER_ADDRESS}"]: Sockets, undergoing' + type: DEPENDENT + key: 'envoy.listener.downstream_pre_cx_active["{#LISTENER_ADDRESS}"]' + delay: '0' + description: 'Sockets currently undergoing listener filter processing.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'envoy_listener_downstream_pre_cx_active{envoy_listener_address = "{#LISTENER_ADDRESS}"}' + - function + - sum + master_item: + key: envoy.get_metrics + tags: + - tag: component + value: listener + - tag: listener-address + value: '{#LISTENER_ADDRESS}' + master_item: + key: envoy.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - envoy_listener_downstream_cx_active + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var envoy_listener_address = item.labels.envoy_listener_address; + + if (lookup[envoy_listener_address]) { + return; + } + lookup[envoy_listener_address] = 1; + result.push({ + '{#LISTENER_ADDRESS}': envoy_listener_address + }); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: software + - tag: target + value: envoy-proxy + macros: + - macro: '{$ENVOY.CERT.MIN}' + value: '7' + description: 'Minimum number of days before certificate expiration used for trigger expression.' + - macro: '{$ENVOY.METRICS.PATH}' + value: /stats/prometheus + description: 'The path Zabbix will scrape metrics in prometheus format from.' + - macro: '{$ENVOY.URL}' + value: 'http://localhost:9901' + description: 'Instance URL.' + valuemaps: + - uuid: 2152e7a114f3489eb6ea80b948c0db5c + name: 'Envoy listener manager' + mappings: + - value: '0' + newvalue: 'Not started' + - value: '1' + newvalue: Started + - uuid: c05c038099d74d11b6fef057518a1fc9 + name: 'Envoy server live' + mappings: + - value: '0' + newvalue: 'Not Live' + - value: '1' + newvalue: Live + - uuid: f467d440b03e4dab8cc4b15f87185eb5 + name: 'Envoy server state' + mappings: + - value: '0' + newvalue: Live + - value: '1' + newvalue: Draining + - value: '2' + newvalue: 'Pre initializing' + - value: '3' + newvalue: Initializing + graphs: + - uuid: 9cf06c8169944ee2974499a4f2764903 + name: 'Envoy Proxy: Clusters' + graph_items: + - color: 199C0D + item: + host: 'Envoy Proxy by HTTP' + key: envoy.cluster_manager.active_clusters + - sortorder: '1' + color: F63100 + item: + host: 'Envoy Proxy by HTTP' + key: envoy.cluster_manager.warming_clusters + - uuid: 6453eec1ce9141b0a505d278f842ea1c + name: 'Envoy Proxy: Clusters operations' + graph_items: + - color: 199C0D + item: + host: 'Envoy Proxy by HTTP' + key: envoy.cluster_manager.cluster_removed.rate + - sortorder: '1' + color: F63100 + item: + host: 'Envoy Proxy by HTTP' + key: envoy.cluster_manager.cluster_updated.rate + - sortorder: '2' + color: 00611C + item: + host: 'Envoy Proxy by HTTP' + key: envoy.cluster_manager.cluster_modified.rate + - sortorder: '3' + color: F7941D + item: + host: 'Envoy Proxy by HTTP' + key: envoy.cluster_manager.cluster_added.rate + - uuid: 0ac65256c79e4eb992afae8fdb7035c9 + name: 'Envoy Proxy: Connections' + graph_items: + - color: 199C0D + item: + host: 'Envoy Proxy by HTTP' + key: envoy.server.parent_connections + - sortorder: '1' + color: F63100 + item: + host: 'Envoy Proxy by HTTP' + key: envoy.server.memory_heap_size + - uuid: d06a958289aa4c7a84851f5c9333e746 + name: 'Envoy Proxy: Filesystem operations' + graph_items: + - color: 199C0D + item: + host: 'Envoy Proxy by HTTP' + key: envoy.filesystem.reopen_failed.rate + - sortorder: '1' + color: F63100 + item: + host: 'Envoy Proxy by HTTP' + key: envoy.filesystem.flushed_by_timer.rate + - sortorder: '2' + color: 00611C + item: + host: 'Envoy Proxy by HTTP' + key: envoy.filesystem.write_completed.rate + - sortorder: '3' + color: F7941D + item: + host: 'Envoy Proxy by HTTP' + key: envoy.filesystem.write_failed.rate + - uuid: d3d8733f333942849eadabb86049b5bf + name: 'Envoy Proxy: Listener manager' + graph_items: + - color: 199C0D + item: + host: 'Envoy Proxy by HTTP' + key: envoy.listener_manager.total_listeners_warming + - sortorder: '1' + color: F63100 + item: + host: 'Envoy Proxy by HTTP' + key: envoy.listener_manager.total_listeners_draining + - sortorder: '2' + color: 00611C + item: + host: 'Envoy Proxy by HTTP' + key: envoy.listener_manager.total_listeners_active + - uuid: 90ef97d5dfd44349bc08c89acc0b7ec3 + name: 'Envoy Proxy: Listeners operations' + graph_items: + - color: 199C0D + item: + host: 'Envoy Proxy by HTTP' + key: envoy.listener_manager.listener_create_failure.rate + - sortorder: '1' + color: F63100 + item: + host: 'Envoy Proxy by HTTP' + key: envoy.listener_manager.listener_create_success.rate + - sortorder: '2' + color: 00611C + item: + host: 'Envoy Proxy by HTTP' + key: envoy.listener_manager.listener_added.rate + - sortorder: '3' + color: F7941D + item: + host: 'Envoy Proxy by HTTP' + key: envoy.listener_manager.listener_stopped.rate + - uuid: ca3646c18e79468d884af478afab7b0e + name: 'Envoy Proxy: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'Envoy Proxy by HTTP' + key: envoy.server.memory_physical_size + - sortorder: '1' + color: F63100 + item: + host: 'Envoy Proxy by HTTP' + key: envoy.server.memory_heap_size + - sortorder: '2' + color: 00611C + item: + host: 'Envoy Proxy by HTTP' + key: envoy.server.memory_allocated diff --git a/Etcd_by_HTTP.yaml b/Etcd_by_HTTP.yaml new file mode 100644 index 0000000..6adbd41 --- /dev/null +++ b/Etcd_by_HTTP.yaml @@ -0,0 +1,1495 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: b25b8b517a4743c48037bfa10af3dc3c + template: 'Etcd by HTTP' + name: 'Etcd by HTTP' + description: | + This template is designed to monitor 'etcd' by Zabbix that works without any external scripts. + Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. + + The template 'Etcd by HTTP' — collects metrics by help of the HTTP agent from '/metrics' endpoint. + + Refer to the vendor documentation: + https://etcd.io/docs/v3.5/op-guide/monitoring/#metrics-endpoint + + For the users of 'etcd version <= 3.4': + + In 'etcd v3.5' some metrics have been deprecated. See more details on 'Upgrade etcd from 3.4 to 3.5': + https://etcd.io/docs/v3.4/upgrades/upgrade_3_5/ + Please upgrade your 'etcd' instance, or use older 'Etcd by HTTP' template version. + + Setup: + + 1. Make sure that 'etcd' allows the collection of metrics. You can test it by running: + curl -L http://localhost:2379/metrics + + 2. Check if 'etcd' is accessible from Zabbix proxy or Zabbix server depending on where you are planning to do the monitoring. To verify it, run: + curl -L http://:2379/metrics + + 3. Add the template to the 'etcd' node. Set the hostname or IP address of the 'etcd' host in the '{$ETCD.HOST}' macro. By default, the template uses a client's port. + You can configure metrics endpoint location by adding '--listen-metrics-urls' flag. + + For more details, see the etcd documentation: + https://etcd.io/docs/v3.5/op-guide/configuration/#profiling-and-monitoring + + Additional points to consider: + + - If you have specified a non-standard port for 'etcd', don't forget to change macros: '{$ETCD.SCHEME}' and '{$ETCD.PORT}'. + - You can set '{$ETCD.USERNAME}' and '{$ETCD.PASSWORD}' macros in the template to use on a host level if necessary. + - To test availability, run : 'zabbix_get -s etcd-host -k etcd.health'. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 32a59c8e93e141d6a471266df6dbfbd3 + name: 'Cluster version' + type: DEPENDENT + key: etcd.cluster.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of the `etcd cluster`.' + preprocessing: + - type: JSONPATH + parameters: + - $.etcdcluster + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: etcd.get_version + tags: + - tag: component + value: application + triggers: + - uuid: 7c87424c4fb34c56bc9b976755b4ec02 + expression: 'last(/Etcd by HTTP/etcd.cluster.version,#1)<>last(/Etcd by HTTP/etcd.cluster.version,#2) and length(last(/Etcd by HTTP/etcd.cluster.version))>0' + name: 'Etcd: Cluster version has changed' + event_name: 'Etcd: Cluster version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Etcd version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 04b0fa552b7d4267b4c5b67ee82ef5f1 + name: CPU + type: DEPENDENT + key: etcd.cpu.util + delay: '0' + value_type: FLOAT + units: s + description: 'The total user and system CPU time spent in seconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_cpu_seconds_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: cpu + - uuid: bfa5bd42637642808802f7b2485a0c4d + name: 'DB size' + type: DEPENDENT + key: etcd.db.size + delay: '0' + value_type: FLOAT + units: B + description: 'The total size of the underlying database.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_mvcc_db_total_size_in_bytes + - value + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: database + - uuid: a5bc7ffb090641ab92f537b38b6055e5 + name: 'Deletes per second' + type: DEPENDENT + key: etcd.delete.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of deletes seen by this member per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_mvcc_delete_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: operations + - uuid: 183843bd93f84dc887a03fb638b2d323 + name: 'Pending events' + type: DEPENDENT + key: etcd.events.sent.rate + delay: '0' + description: 'The total number of pending events to be sent.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_debugging_mvcc_pending_events_total + - value + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: events + - uuid: 34ffab33275a400ab88e5217dee5ef96 + name: 'Get node metrics' + type: HTTP_AGENT + key: etcd.get_metrics + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$ETCD.USER}' + password: '{$ETCD.PASSWORD}' + url: '{$ETCD.SCHEME}://{$ETCD.HOST}:{$ETCD.PORT}/metrics' + tags: + - tag: component + value: raw + - uuid: fdf7593420ab42b2a5af8f8b8030b517 + name: 'Get version' + type: HTTP_AGENT + key: etcd.get_version + history: '0' + value_type: TEXT + trends: '0' + url: '{$ETCD.SCHEME}://{$ETCD.HOST}:{$ETCD.PORT}/version' + tags: + - tag: component + value: application + - uuid: d23baf75628043e193ba0a607e1b4215 + name: 'RPCs received per second' + type: DEPENDENT + key: etcd.grpc.received.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of RPC stream messages received on the server.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - grpc_server_msg_received_total + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function (acc, obj) { + return acc + parseFloat(obj['value']); + }, 0); + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: grpc + - uuid: eda81182710e47e1b5f2f21bb05b4775 + name: 'RPCs sent per second' + type: DEPENDENT + key: etcd.grpc.sent.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of gRPC stream messages sent by the server.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - grpc_server_msg_sent_total + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function (acc, obj) { + return acc + parseFloat(obj['value']); + }, 0); + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: grpc + - uuid: bf59a130b20d480d93eb9330750e8e28 + name: 'RPCs started per second' + type: DEPENDENT + key: etcd.grpc.started.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of RPCs started on the server.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - grpc_server_started_total + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function (acc, obj) { + return acc + parseFloat(obj['value']); + }, 0); + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: grpc + - uuid: e03575f4c472410eb6fbcf731ac6aab2 + name: 'Server has a leader' + type: DEPENDENT + key: etcd.has.leader + delay: '0' + description: | + It defines - whether or not a leader exists: + 1 - it exists; + 0 - it does not. + valuemap: + name: 'Etcd leader' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_server_has_leader + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: leader + triggers: + - uuid: 20165719d521453bb239d818ac57805c + expression: 'last(/Etcd by HTTP/etcd.has.leader)=0' + name: 'Etcd: Member has no leader' + priority: AVERAGE + description: 'If a member does not have a leader, it is totally unavailable.' + tags: + - tag: scope + value: availability + - uuid: 3fde4db8b9684ba4b56ba915e48957b5 + name: 'Node health' + type: HTTP_AGENT + key: etcd.health + authtype: BASIC + username: '{$ETCD.USER}' + password: '{$ETCD.PASSWORD}' + valuemap: + name: 'Etcd healthcheck' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: BOOL_TO_DECIMAL + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + url: '{$ETCD.SCHEME}://{$ETCD.HOST}:{$ETCD.PORT}/health' + tags: + - tag: component + value: health + triggers: + - uuid: 6acda7bdc9df4a4ab5b7cca76c6369f0 + expression: 'last(/Etcd by HTTP/etcd.health)=0' + name: 'Etcd: Node healthcheck failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'See more details on https://etcd.io/docs/v3.5/op-guide/monitoring/#health-check.' + dependencies: + - name: 'Etcd: Service is unavailable' + expression: 'last(/Etcd by HTTP/net.tcp.service["{$ETCD.SCHEME}","{$ETCD.HOST}","{$ETCD.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: 923a408dd4514e808b6e2137a94f8140 + name: 'HTTP 4XX' + type: DEPENDENT + key: etcd.http.requests.4xx.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of handled failures of requests (non-watches), by the method (`GET/PUT` etc.), and the code `4XX`.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'etcd_http_failed_total{code=~"4.+"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function (acc, obj) { + return acc + parseFloat(obj['value']); + }, 0); + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: http + - tag: http-code + value: 4xx + - uuid: c0f27d4bfba344079a31ce8c10b22683 + name: 'HTTP 5XX' + type: DEPENDENT + key: etcd.http.requests.5xx.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of handled failures of requests (non-watches), by the method (`GET/PUT` etc.), and the code `5XX`.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'etcd_http_failed_total{code=~"5.+"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function (acc, obj) { + return acc + parseFloat(obj['value']); + }, 0); + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: http + - tag: http-code + value: 5xx + triggers: + - uuid: 0302957e0f6b43389546e1cfb958ed9c + expression: 'min(/Etcd by HTTP/etcd.http.requests.5xx.rate,5m)>{$ETCD.HTTP.FAIL.MAX.WARN}' + name: 'Etcd: Too many HTTP requests failures' + event_name: 'Etcd: Too many HTTP requests failures (over {$ETCD.HTTP.FAIL.MAX.WARN} for 5m)' + priority: WARNING + description: 'Too many requests failed on `etcd` instance with the `5xx HTTP code`.' + tags: + - tag: scope + value: availability + - uuid: 2a19db1c58ee4a509061fcb1b557c1a3 + name: 'HTTP requests received' + type: DEPENDENT + key: etcd.http.requests.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of requests received into the system (successfully parsed and `authd`).' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - etcd_http_received_total + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function (acc, obj) { + return acc + parseFloat(obj['value']); + }, 0); + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: http + - uuid: b3760811472440baad6a338f481ba13a + name: 'Server is a leader' + type: DEPENDENT + key: etcd.is.leader + delay: '0' + description: | + It defines - whether or not this member is a leader: + 1 - it is; + 0 - otherwise. + valuemap: + name: 'Etcd leader' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_server_is_leader + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: leader + triggers: + - uuid: 44d66eb1a332418daf4c3a1110db5458 + expression: 'nodata(/Etcd by HTTP/etcd.is.leader,30m)=1' + name: 'Etcd: Failed to fetch info data' + event_name: 'Etcd: Failed to fetch info data (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: 'Etcd: Service is unavailable' + expression: 'last(/Etcd by HTTP/net.tcp.service["{$ETCD.SCHEME}","{$ETCD.HOST}","{$ETCD.PORT}"])=0' + tags: + - tag: scope + value: notice + - uuid: ecd1ae9c038f4fc2b720ad562ced0191 + name: 'Keys compacted per second' + type: DEPENDENT + key: etcd.keys.compacted.rate + delay: '0' + value_type: FLOAT + description: 'The number of DB keys compacted per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_debugging_mvcc_db_compaction_keys_total + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: keys + - uuid: a3f910efb0a04cc494c07b8703f9d2ec + name: 'Keys expired per second' + type: DEPENDENT + key: etcd.keys.expired.rate + delay: '0' + value_type: FLOAT + description: 'The number of expired keys per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_debugging_store_expires_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: keys + - uuid: fbda737014544cf1bcf544a48aa6e48b + name: 'Keys total' + type: DEPENDENT + key: etcd.keys.total + delay: '0' + description: 'The total number of keys.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_debugging_mvcc_keys_total + - value + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: keys + - uuid: e45ba61d99b8432b86f5797a2cfdb416 + name: 'Leader changes' + type: DEPENDENT + key: etcd.leader.changes + delay: '0' + description: 'The number of leader changes the member has seen since its start.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_server_leader_changes_seen_total + - value + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: leader + triggers: + - uuid: 1ea623927179489890a5a73eeb8177f7 + expression: '(max(/Etcd by HTTP/etcd.leader.changes,15m)-min(/Etcd by HTTP/etcd.leader.changes,15m))>{$ETCD.LEADER.CHANGES.MAX.WARN}' + name: 'Etcd: Instance has seen too many leader changes' + event_name: 'Etcd: Instance has seen too many leader changes (over {$ETCD.LEADER.CHANGES.MAX.WARN} for 15m)' + priority: WARNING + description: 'Rapid leadership changes impact the performance of `etcd` significantly. It also signals that the leader is unstable, perhaps due to network connectivity issues or excessive load hitting the `etcd cluster`.' + tags: + - tag: scope + value: availability + - uuid: 348e15d2ec3a4bb88e2ca371f96c2f00 + name: 'Maximum open file descriptors' + type: DEPENDENT + key: etcd.max.fds + delay: '0' + value_type: FLOAT + description: 'The Maximum number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_max_fds + - value + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: fds + - uuid: d016b8674ebd4251943f2e94b22f5ff2 + name: 'Client gRPC received bytes per second' + type: DEPENDENT + key: etcd.network.grpc.received.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The number of bytes received from gRPC clients per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_network_client_grpc_received_bytes_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: grpc + - uuid: e50d2d088c6448dbb3ecaeebc3b2b8f1 + name: 'Client gRPC sent bytes per second' + type: DEPENDENT + key: etcd.network.grpc.sent.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The number of bytes sent from gRPC clients per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_network_client_grpc_sent_bytes_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: grpc + - uuid: d5099d4cdb3044ba95935c2aea2b6352 + name: 'Open file descriptors' + type: DEPENDENT + key: etcd.open.fds + delay: '0' + value_type: FLOAT + description: 'The number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_open_fds + - value + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: fds + - uuid: a2927b1e85af41cab9c28b1b79c229ea + name: 'Proposals applied per second' + type: DEPENDENT + key: etcd.proposals.applied.rate + delay: '0' + value_type: FLOAT + description: 'The number of consensus proposals applied.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_server_proposals_applied_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: proposals + - uuid: e829f3df055e42dfbce5f27eb7ca487c + name: 'Proposals committed per second' + type: DEPENDENT + key: etcd.proposals.committed.rate + delay: '0' + value_type: FLOAT + description: 'The number of consensus proposals committed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_server_proposals_committed_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: proposals + - uuid: 6b45b99526394a219d31b5c22cb98c85 + name: 'Proposals failed per second' + type: DEPENDENT + key: etcd.proposals.failed.rate + delay: '0' + value_type: FLOAT + description: 'The number of failed proposals seen.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_server_proposals_failed_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: proposals + triggers: + - uuid: 432cea8bddd742ca98528be2fbc7e35e + expression: 'min(/Etcd by HTTP/etcd.proposals.failed.rate,5m)>{$ETCD.PROPOSAL.FAIL.MAX.WARN}' + name: 'Etcd: Too many proposal failures' + event_name: 'Etcd: Too many proposal failures (over {$ETCD.PROPOSAL.FAIL.MAX.WARN} for 5m)' + priority: WARNING + description: 'Normally related to two issues: temporary failures related to a leader election or longer downtime caused by a loss of quorum in the cluster.' + tags: + - tag: scope + value: performance + - uuid: 1c506ff69e7b4564a6d95fd35b1a11fd + name: 'Proposals pending' + type: DEPENDENT + key: etcd.proposals.pending + delay: '0' + description: 'The current number of pending proposals to commit.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_server_proposals_pending + - value + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: proposals + triggers: + - uuid: 5feefc4dd5d14fe2b56dd63029b57026 + expression: 'min(/Etcd by HTTP/etcd.proposals.pending,5m)>{$ETCD.PROPOSAL.PENDING.MAX.WARN}' + name: 'Etcd: Too many proposals are queued to commit' + event_name: 'Etcd: Too many proposals are queued to commit (over {$ETCD.PROPOSAL.PENDING.MAX.WARN} for 5m)' + priority: WARNING + description: 'Rising pending proposals suggests there is a high client load, or the member cannot commit proposals.' + tags: + - tag: scope + value: performance + - uuid: bd7398507c274bfab53339380df16761 + name: 'PUT per second' + type: DEPENDENT + key: etcd.put.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of puts seen by this member per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_mvcc_put_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: operations + - uuid: b744c07f3290467b96b21ea38ad5d497 + name: 'Range per second' + type: DEPENDENT + key: etcd.range.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of ranges seen by this member per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_debugging_mvcc_range_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: operations + - uuid: 88c91b36eca94fd2b357a67d171dc621 + name: 'Reads per second' + type: DEPENDENT + key: etcd.reads.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of read actions by `get/getRecursive`, local to this member.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - etcd_debugging_store_reads_total + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function (acc, obj) { + return acc + parseFloat(obj['value']); + }, 0); + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: store + - uuid: 4b881e32094e4f478c5d0849cb5d07a7 + name: 'Resident memory' + type: DEPENDENT + key: etcd.res.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'The size of resident memory expressed in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_resident_memory_bytes + - value + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: memory + - uuid: dee9ed8897cf4d3582957707ea09cdf8 + name: 'Server version' + type: DEPENDENT + key: etcd.server.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of the `etcd server`.' + preprocessing: + - type: JSONPATH + parameters: + - $.etcdserver + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: etcd.get_version + tags: + - tag: component + value: application + triggers: + - uuid: cfb2fc467b224ef694d59b5c081ed965 + expression: 'last(/Etcd by HTTP/etcd.server.version,#1)<>last(/Etcd by HTTP/etcd.server.version,#2) and length(last(/Etcd by HTTP/etcd.server.version))>0' + name: 'Etcd: Server version has changed' + event_name: 'Etcd: Server version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Etcd version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b14c787c716146e990bc388d277a2803 + name: 'Transaction per second' + type: DEPENDENT + key: etcd.txn.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of transactions seen by this member per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - etcd_debugging_mvcc_range_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: transactions + - uuid: 98ec9085d621446aa462efc86cf93905 + name: Uptime + type: DEPENDENT + key: etcd.uptime + delay: '0' + value_type: FLOAT + units: s + description: '`Etcd` server uptime.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_start_time_seconds + - value + - '' + - type: JAVASCRIPT + parameters: + - 'return (Math.floor(Date.now() / 1000) - Number(value));' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: application + triggers: + - uuid: 6843369969f5410a840494104d71fe1f + expression: 'last(/Etcd by HTTP/etcd.uptime)<10m' + name: 'Etcd: Host has been restarted' + event_name: 'Etcd: {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: c35810b8b7bc4a62970b5293fb2d8fb2 + name: 'Virtual memory' + type: DEPENDENT + key: etcd.virtual.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'The size of virtual memory expressed in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_virtual_memory_bytes + - value + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: memory + - uuid: 16c041fc189248bfaaa5826ffaf38459 + name: 'Writes per second' + type: DEPENDENT + key: etcd.writes.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of writes (e.g., `set/compareAndDelete`) seen by this member.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - etcd_debugging_store_writes_total + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function (acc, obj) { + return acc + parseFloat(obj['value']); + }, 0); + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: store + - uuid: a0f94f429b99432e86d15ffa74d6eada + name: 'Service''s TCP port state' + type: SIMPLE + key: 'net.tcp.service["{$ETCD.SCHEME}","{$ETCD.HOST}","{$ETCD.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 74164f0783ae4227ba44f3e865fee3bd + expression: 'last(/Etcd by HTTP/net.tcp.service["{$ETCD.SCHEME}","{$ETCD.HOST}","{$ETCD.PORT}"])=0' + name: 'Etcd: Service is unavailable' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 5e6121383e5d4f3eb1150a2068a4633b + name: 'gRPC codes discovery' + type: DEPENDENT + key: etcd.grpc_code.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GRPC.CODE}' + value: '{$ETCD.GRPC_CODE.MATCHES}' + formulaid: A + - macro: '{#GRPC.CODE}' + value: '{$ETCD.GRPC_CODE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 7d316cbec2ce4718ac133d90b7a89585 + name: 'RPCs completed with code {#GRPC.CODE}' + type: DEPENDENT + key: 'etcd.grpc.handled.rate[{#GRPC.CODE}]' + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of RPCs completed on the server with grpc_code {#GRPC.CODE}.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'grpc_server_handled_total{grpc_method="{#GRPC.CODE}"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function (acc, obj) { + return acc + parseFloat(obj['value']); + }, 0); + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: grpc + - tag: grpc-code + value: '{#GRPC.CODE}' + trigger_prototypes: + - uuid: 459b6ee5735047d597a6a4ab41b76e21 + expression: 'min(/Etcd by HTTP/etcd.grpc.handled.rate[{#GRPC.CODE}],5m)>{$ETCD.GRPC.ERRORS.MAX.WARN}' + name: 'Etcd: Too many failed gRPC requests with code: {#GRPC.CODE}' + event_name: 'Etcd: Too many failed gRPC requests with code: {#GRPC.CODE} (over {$ETCD.GRPC.ERRORS.MAX.WARN} in 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + master_item: + key: etcd.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - grpc_server_handled_total + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + lookup = {}, + result = []; + for (var item, i = 0; item = data[i++];) { + var code = item.labels.grpc_code; + if (!(code in lookup)) { + lookup[code] = 1; + result.push({ "{#GRPC.CODE}": code }); + } + } + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: trigger + step: '1' + filter: + conditions: + - macro: '{#GRPC.CODE}' + value: '{$ETCD.GRPC_CODE.TRIGGER.MATCHES}' + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Too many failed gRPC requests' + discover: DISCOVER + status: ENABLED + - uuid: b7b527ee30b84a569afcd1f85b705810 + name: 'Peers discovery' + type: DEPENDENT + key: etcd.peer.discovery + delay: '0' + item_prototypes: + - uuid: 4129aa7b8acf4ca3b5476461fe5275c9 + name: 'Etcd peer {#ETCD.PEER}: Bytes received' + type: DEPENDENT + key: 'etcd.bytes.received.rate[{#ETCD.PEER}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The number of bytes received from a peer with the ID `{#ETCD.PEER}`.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'etcd_network_peer_received_bytes_total{From="{#ETCD.PEER}"}' + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: network + - tag: component + value: peers + - tag: peer + value: '{#ETCD.PEER}' + - uuid: 8f5fecbabe474baaab40df46879401af + name: 'Etcd peer {#ETCD.PEER}: Bytes sent' + type: DEPENDENT + key: 'etcd.bytes.sent.rate[{#ETCD.PEER}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The number of bytes sent to a peer with the ID `{#ETCD.PEER}`.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'etcd_network_peer_sent_bytes_total{To="{#ETCD.PEER}"}' + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: network + - tag: component + value: peers + - tag: peer + value: '{#ETCD.PEER}' + - uuid: 2521ccfc16fc43069001883b85aa0243 + name: 'Etcd peer {#ETCD.PEER}: Receive failures' + type: DEPENDENT + key: 'etcd.received.fail.rate[{#ETCD.PEER}]' + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of received failures from a peer with the ID `{#ETCD.PEER}`.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'etcd_network_peer_received_failures_total{To="{#ETCD.PEER}"}' + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: network + - tag: component + value: peers + - tag: peer + value: '{#ETCD.PEER}' + - uuid: 5756f1a16e5c42b79f6d6225c5382599 + name: 'Etcd peer {#ETCD.PEER}: Send failures' + type: DEPENDENT + key: 'etcd.sent.fail.rate[{#ETCD.PEER}]' + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of sent failures from a peer with the ID `{#ETCD.PEER}`.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'etcd_network_peer_sent_failures_total{To="{#ETCD.PEER}"}' + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: etcd.get_metrics + tags: + - tag: component + value: network + - tag: component + value: peers + - tag: peer + value: '{#ETCD.PEER}' + master_item: + key: etcd.get_metrics + lld_macro_paths: + - lld_macro: '{#ETCD.PEER}' + path: $.labels.To + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - etcd_network_peer_sent_bytes_total + tags: + - tag: class + value: application + - tag: target + value: etcd + macros: + - macro: '{$ETCD.GRPC.ERRORS.MAX.WARN}' + value: '1' + description: 'The maximum number of gRPC request failures.' + - macro: '{$ETCD.GRPC_CODE.MATCHES}' + value: '.*' + description: 'The filter of discoverable gRPC codes. See more details on https://github.com/grpc/grpc/blob/master/doc/statuscodes.md.' + - macro: '{$ETCD.GRPC_CODE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude discovered gRPC codes. See more details on https://github.com/grpc/grpc/blob/master/doc/statuscodes.md.' + - macro: '{$ETCD.GRPC_CODE.TRIGGER.MATCHES}' + value: Aborted|Unavailable + description: 'The filter of discoverable gRPC codes, which will create triggers.' + - macro: '{$ETCD.HOST}' + value: '' + description: 'The hostname or IP address of the `etcd` API endpoint.' + - macro: '{$ETCD.HTTP.FAIL.MAX.WARN}' + value: '2' + description: 'The maximum number of HTTP request failures.' + - macro: '{$ETCD.LEADER.CHANGES.MAX.WARN}' + value: '5' + description: 'The maximum number of leader changes.' + - macro: '{$ETCD.OPEN.FDS.MAX.WARN}' + value: '90' + description: 'The maximum percentage of used file descriptors.' + - macro: '{$ETCD.PASSWORD}' + - macro: '{$ETCD.PORT}' + value: '2379' + description: 'The port of the `etcd` API endpoint.' + - macro: '{$ETCD.PROPOSAL.FAIL.MAX.WARN}' + value: '2' + description: 'The maximum number of proposal failures.' + - macro: '{$ETCD.PROPOSAL.PENDING.MAX.WARN}' + value: '5' + description: 'The maximum number of proposals in queue.' + - macro: '{$ETCD.SCHEME}' + value: http + description: 'The request scheme which may be `http` or `https`.' + - macro: '{$ETCD.USER}' + dashboards: + - uuid: 5b0ffbb731cd4415a2edbc74978e0276 + name: 'Etcd Overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Etcd by HTTP' + name: 'Etcd: Proposals rate' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Etcd by HTTP' + name: 'Etcd: gRPC client traffic' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Etcd by HTTP' + name: 'Etcd: gRPC requests rate' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Etcd by HTTP' + name: 'Etcd: File descriptors' + - type: STRING + name: reference + value: AAAAG + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Etcd by HTTP' + name: 'Etcd: Read/Write rate' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Etcd by HTTP' + name: 'Etcd: HTTP requests rate' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Etcd by HTTP' + name: 'Etcd: Memory usage' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: f25e21a70baa4e009bdbcb44acb1a22e + name: 'Etcd healthcheck' + mappings: + - value: '0' + newvalue: Failed + - value: '1' + newvalue: Ok + - uuid: 7bcaf8a520e24613a96d49e63a91a55b + name: 'Etcd leader' + mappings: + - value: '0' + newvalue: 'No' + - value: '1' + newvalue: 'Yes' + - uuid: 1735a8d251b24c3fbab32e766064536b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: c45583928d204c04ad8884115e1e35c5 + expression: 'min(/Etcd by HTTP/etcd.open.fds,5m)/last(/Etcd by HTTP/etcd.max.fds)*100>{$ETCD.OPEN.FDS.MAX.WARN}' + name: 'Etcd: Current number of open files is too high' + event_name: 'Etcd: Current number of open files is too high (over {$ETCD.OPEN.FDS.MAX.WARN}% for 5m)' + priority: WARNING + description: | + Heavy usage of a file descriptor (i.e., near the limit of the process's file descriptor) indicates a potential file descriptor exhaustion issue. + If the file descriptors are exhausted, `etcd` may panic because it cannot create new WAL files. + tags: + - tag: scope + value: capacity + graphs: + - uuid: 18baccd03c0f4814a42d32b51334787d + name: 'Etcd: File descriptors' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Etcd by HTTP' + key: etcd.open.fds + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Etcd by HTTP' + key: etcd.max.fds + - uuid: eefd07cf30d84cc4b84f802468363200 + name: 'Etcd: gRPC client traffic' + graph_items: + - color: 199C0D + item: + host: 'Etcd by HTTP' + key: etcd.network.grpc.received.rate + - sortorder: '1' + color: F63100 + item: + host: 'Etcd by HTTP' + key: etcd.network.grpc.sent.rate + - uuid: c53ee0dba42d4a1f8afedbe0f6e42785 + name: 'Etcd: gRPC requests rate' + graph_items: + - color: 199C0D + item: + host: 'Etcd by HTTP' + key: etcd.grpc.received.rate + - sortorder: '1' + color: F63100 + item: + host: 'Etcd by HTTP' + key: etcd.grpc.sent.rate + - sortorder: '2' + color: 00611C + item: + host: 'Etcd by HTTP' + key: etcd.grpc.started.rate + - uuid: 520ff92815d84e0f84e9296d249c04ae + name: 'Etcd: HTTP requests rate' + graph_items: + - color: 199C0D + item: + host: 'Etcd by HTTP' + key: etcd.http.requests.4xx.rate + - sortorder: '1' + color: F63100 + item: + host: 'Etcd by HTTP' + key: etcd.http.requests.5xx.rate + - sortorder: '2' + color: 00611C + item: + host: 'Etcd by HTTP' + key: etcd.http.requests.rate + - uuid: 90af5b2f75b7402693bad7a8f371ab8e + name: 'Etcd: Memory usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Etcd by HTTP' + key: etcd.res.bytes + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Etcd by HTTP' + key: etcd.virtual.bytes + - uuid: 59cd15292ad04ebd902a7d3080b53838 + name: 'Etcd: Proposals rate' + graph_items: + - color: 199C0D + item: + host: 'Etcd by HTTP' + key: etcd.proposals.failed.rate + - sortorder: '1' + color: F63100 + item: + host: 'Etcd by HTTP' + key: etcd.proposals.committed.rate + - sortorder: '2' + color: 00611C + item: + host: 'Etcd by HTTP' + key: etcd.proposals.applied.rate + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + yaxisside: RIGHT + item: + host: 'Etcd by HTTP' + key: etcd.proposals.pending + - uuid: b374fab55bcc452e9279214ddb2c8024 + name: 'Etcd: Read/Write rate' + graph_items: + - color: 199C0D + item: + host: 'Etcd by HTTP' + key: etcd.reads.rate + - sortorder: '1' + color: F63100 + item: + host: 'Etcd by HTTP' + key: etcd.writes.rate diff --git a/Extreme_EXOS_by_SNMP.yaml b/Extreme_EXOS_by_SNMP.yaml new file mode 100644 index 0000000..f27af35 --- /dev/null +++ b/Extreme_EXOS_by_SNMP.yaml @@ -0,0 +1,1931 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 861dbdece18f4b8f85214a319995eb3e + template: 'Extreme EXOS by SNMP' + name: 'Extreme EXOS by SNMP' + description: | + Template Extreme EXOS + + MIBs used: + EXTREME-SYSTEM-MIB + IF-MIB + EtherLike-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + EXTREME-SOFTWARE-MONITOR-MIB + ENTITY-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: ba27dc4ef9bf4c639b224b4e4881073e + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 445766fc99c1480eac4d3d403c3ede2b + expression: 'max(/Extreme EXOS by SNMP/icmpping,#3)=0' + name: 'Extreme EXOS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: bd39116401f249008d21e4109a34c6c7 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fb0abe322fd644b4bb3c1255d564bb47 + expression: 'min(/Extreme EXOS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Extreme EXOS by SNMP/icmppingloss,5m)<100' + name: 'Extreme EXOS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Extreme EXOS: Unavailable by ICMP ping' + expression: 'max(/Extreme EXOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c59f57d99c7045b6920e26c8c1b58e52 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d29defd9360c489a892821989eeda10c + expression: 'avg(/Extreme EXOS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Extreme EXOS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Extreme EXOS: High ICMP ping loss' + expression: 'min(/Extreme EXOS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Extreme EXOS by SNMP/icmppingloss,5m)<100' + - name: 'Extreme EXOS: Unavailable by ICMP ping' + expression: 'max(/Extreme EXOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b17bfccc91f1489fb9f85d719ca19d70 + name: 'Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1916.1.1.1.7.0]' + key: 'sensor.temp.status[extremeOverTemperatureAlarm.0]' + delay: 3m + trends: '0' + description: | + MIB: EXTREME-SYSTEM-MIB + Temperature status of testpoint: Device + valuemap: + name: 'EXTREME-SYSTEM-MIB::extremeOverTemperatureAlarm' + tags: + - tag: component + value: temperature + - uuid: 2e8384090e304767bc6bba60d822e223 + name: Temperature + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1916.1.1.1.8.0]' + key: 'sensor.temp.value[extremeCurrentTemperature.0]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: EXTREME-SYSTEM-MIB + Temperature readings of testpoint: Device + Reference: https://gtacknowledge.extremenetworks.com/articles/Q_A/Does-EXOS-support-temperature-polling-via-SNMP-on-all-nodes-in-a-stack + tags: + - tag: component + value: temperature + triggers: + - uuid: 54362c94be0243ffb907905def0ad06a + expression: 'avg(/Extreme EXOS by SNMP/sensor.temp.value[extremeCurrentTemperature.0],5m)>{$TEMP_WARN}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Extreme EXOS by SNMP/sensor.temp.value[extremeCurrentTemperature.0],5m)<{$TEMP_WARN}-3' + name: 'Extreme EXOS: Temperature is above warning threshold' + event_name: 'Extreme EXOS: Temperature is above warning threshold: >{$TEMP_WARN}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Extreme EXOS: Temperature is above critical threshold' + expression: | + avg(/Extreme EXOS by SNMP/sensor.temp.value[extremeCurrentTemperature.0],5m)>{$TEMP_CRIT} + or + last(/Extreme EXOS by SNMP/sensor.temp.status[extremeOverTemperatureAlarm.0])={$TEMP_CRIT_STATUS} + recovery_expression: 'max(/Extreme EXOS by SNMP/sensor.temp.value[extremeCurrentTemperature.0],5m)<{$TEMP_CRIT}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 91a10b28c7a14dd09110448a28a328f9 + expression: 'avg(/Extreme EXOS by SNMP/sensor.temp.value[extremeCurrentTemperature.0],5m)<{$TEMP_CRIT_LOW}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Extreme EXOS by SNMP/sensor.temp.value[extremeCurrentTemperature.0],5m)>{$TEMP_CRIT_LOW}+3' + name: 'Extreme EXOS: Temperature is too low' + event_name: 'Extreme EXOS: Temperature is too low: <{$TEMP_CRIT_LOW}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: da2bc25bb40642feaaff04b1cd5f85a0 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: aa2eb0947ea34b2bbb739d6025d914ea + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: fd93c5fb3e054f84b052d7f682a87655 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1916.1.32.1.2.0]' + key: 'system.cpu.util[extremeCpuMonitorTotalUtilization.0]' + value_type: FLOAT + units: '%' + description: | + MIB: EXTREME-SOFTWARE-MONITOR-MIB + Total CPU utilization (percentage) as of last sampling. + tags: + - tag: component + value: cpu + triggers: + - uuid: a77bbfe0755f4901b67a7957805bc566 + expression: 'min(/Extreme EXOS by SNMP/system.cpu.util[extremeCpuMonitorTotalUtilization.0],5m)>{$CPU.UTIL.CRIT}' + name: 'Extreme EXOS: High CPU utilization' + event_name: 'Extreme EXOS: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: e23764de0cda451d959e73ca0ea211ae + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7f6260a568644e89ba87ccca63102357 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.9.1]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: dd9fbc501f9047fd8fae9dfd741e3778 + expression: 'last(/Extreme EXOS by SNMP/system.hw.firmware,#1)<>last(/Extreme EXOS by SNMP/system.hw.firmware,#2) and length(last(/Extreme EXOS by SNMP/system.hw.firmware))>0' + name: 'Extreme EXOS: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 42ec93c3013d428c9f72fe721ea46db5 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.2.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 93882ec52eed40778858e52dc7153093 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: db1760a34c884b1aa36e4fc4639791dd + expression: 'last(/Extreme EXOS by SNMP/system.hw.serialnumber,#1)<>last(/Extreme EXOS by SNMP/system.hw.serialnumber,#2) and length(last(/Extreme EXOS by SNMP/system.hw.serialnumber))>0' + name: 'Extreme EXOS: Device has been replaced' + event_name: 'Extreme EXOS: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9e9db5d7fe5f4f4e8fc6581813699c1e + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 8ec263e1593e48d18b3e50f215e94196 + name: 'Hardware version(revision)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.9.1]' + key: system.hw.version + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: d8c7f5611f544299a95eedc0c80cedb5 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7345ee5a5db545a9a5bb90ab5626a2aa + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 2923c342e8474e3ea3d7411c104a6988 + expression: 'last(/Extreme EXOS by SNMP/system.name,#1)<>last(/Extreme EXOS by SNMP/system.name,#2) and length(last(/Extreme EXOS by SNMP/system.name))>0' + name: 'Extreme EXOS: System name has changed' + event_name: 'Extreme EXOS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 92f8e91c4d2c423984cb14440bc83328 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 041115a5c3f44c8c9a9e1e0c7bc7203e + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 0ba6360ecf4c4487a249e3efabca2e0c + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1916.1.1.1.13.0]' + key: 'system.sw.os[extremePrimarySoftwareRev.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: EXTREME-SYSTEM-MIB + The software revision of the primary image stored in this device. + This string will have a zero length if the revision is unknown, invalid or not present. + This will also be reported in RMON2 probeSoftwareRev if this is the software image currently running in the device. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: af6a823b8f2d4fddae970828d0a3a9c9 + expression: 'last(/Extreme EXOS by SNMP/system.sw.os[extremePrimarySoftwareRev.0],#1)<>last(/Extreme EXOS by SNMP/system.sw.os[extremePrimarySoftwareRev.0],#2) and length(last(/Extreme EXOS by SNMP/system.sw.os[extremePrimarySoftwareRev.0]))>0' + name: 'Extreme EXOS: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possible reasons that system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Extreme EXOS: System name has changed' + expression: 'last(/Extreme EXOS by SNMP/system.name,#1)<>last(/Extreme EXOS by SNMP/system.name,#2) and length(last(/Extreme EXOS by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 62a022d402c24da29c1aa7cb0eb64244 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ecc42656a3d845ee8ad42d0fe45319c2 + expression: 'max(/Extreme EXOS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Extreme EXOS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Extreme EXOS: Unavailable by ICMP ping' + expression: 'max(/Extreme EXOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 1ed41878ed4a455c8a3871169225b8f6 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.1916.1.1.1.9.1.1]' + key: fan.discovery + delay: 1h + item_prototypes: + - uuid: a9789017b3284366a56e7f9727ae20cd + name: 'Fan {#SNMPVALUE}: Fan speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1916.1.1.1.9.1.4.{#SNMPINDEX}]' + key: 'sensor.fan.speed[extremeFanSpeed.{#SNMPINDEX}]' + units: rpm + description: | + MIB: EXTREME-SYSTEM-MIB + The speed (RPM) of a cooling fan in the fantray {#SNMPVALUE} + tags: + - tag: component + value: fan + - uuid: 601afb1fdc4744b29c2e52a260ccecfd + name: 'Fan {#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1916.1.1.1.9.1.2.{#SNMPINDEX}]' + key: 'sensor.fan.status[extremeFanOperational.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: EXTREME-SYSTEM-MIB + Operational status of a cooling fan. + valuemap: + name: 'EXTREME-SYSTEM-MIB::extremeFanOperational' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: bd0c753f33c441a0bf4567f8b81186d6 + expression: 'count(/Extreme EXOS by SNMP/sensor.fan.status[extremeFanOperational.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Extreme EXOS: Fan {#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 53af0f95ffe243c394c273a1bc2857a3 + name: 'Memory Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.1916.1.32.2.2.1.1]' + key: memory.discovery + delay: 1h + item_prototypes: + - uuid: 6856e5a75d884af1957b9a3f92d86360 + name: '#{#SNMPVALUE}: Available memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1916.1.32.2.2.1.3.{#SNMPINDEX}]' + key: 'vm.memory.available[extremeMemoryMonitorSystemFree.{#SNMPINDEX}]' + units: B + description: | + MIB: EXTREME-SOFTWARE-MONITOR-MIB + Total amount of free memory in Kbytes in the system. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: b22ba07a208d41788d0fb33074125ffd + name: '#{#SNMPVALUE}: Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1916.1.32.2.2.1.2.{#SNMPINDEX}]' + key: 'vm.memory.total[extremeMemoryMonitorSystemTotal.{#SNMPINDEX}]' + units: B + description: | + MIB: EXTREME-SOFTWARE-MONITOR-MIB + Total amount of DRAM in Kbytes in the system. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 830ec2341dc64980be35d87141a31b67 + name: '#{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[{#SNMPVALUE}]' + value_type: FLOAT + units: '%' + params: '(last(//vm.memory.total[extremeMemoryMonitorSystemTotal.{#SNMPINDEX}]) - last(//vm.memory.available[extremeMemoryMonitorSystemFree.{#SNMPINDEX}])) / last(//vm.memory.total[extremeMemoryMonitorSystemTotal.{#SNMPINDEX}]) * 100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 50733fd8b4a641708e3a90292f182f20 + expression: 'min(/Extreme EXOS by SNMP/vm.memory.util[{#SNMPVALUE}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Extreme EXOS: #{#SNMPVALUE}: High memory utilization' + event_name: 'Extreme EXOS: #{#SNMPVALUE}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 672315e9b8dc4858be7a991bed4f06fc + name: '#{#SNMPVALUE}: Memory usage' + ymin_type_1: FIXED + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Extreme EXOS by SNMP' + key: 'vm.memory.total[extremeMemoryMonitorSystemTotal.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Extreme EXOS by SNMP' + key: 'vm.memory.available[extremeMemoryMonitorSystemFree.{#SNMPINDEX}]' + - uuid: 886d032483584e379210c9f05f65b98e + name: '#{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Extreme EXOS by SNMP' + key: 'vm.memory.util[{#SNMPVALUE}]' + - uuid: ddc38e480b404039807079963eb247f9 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: f3a186e0c65e43139a7934a0536fe288 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 26f5e3bec06048c598d76c47b3260813 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2ec7bfa7073e471bb2f7941bff97f2fd + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4dac28ac2be748d5a2bba7bf92550c2b + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2ed84c7b80eb4c94b02c91154f1f9736 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e40f4821891c45318a732b1aae222382 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5014332a57b8479fa0638f275e2e0992 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 058b94a177e646829c37a96c83829aa1 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 706148cec9f24e81a96f44484d3829d3 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Extreme EXOS: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: e6e5a562e7ce418aaecff58b4aef7b3e + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: eb704d12b7ef450a85a805392adb2e6b + expression: | + change(/Extreme EXOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Extreme EXOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Extreme EXOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Extreme EXOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Extreme EXOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Extreme EXOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Extreme EXOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Extreme EXOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Extreme EXOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Extreme EXOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Extreme EXOS: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Extreme EXOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: f61f3c59c1aa488d9ef19a67d46fb5e8 + expression: | + (avg(/Extreme EXOS by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Extreme EXOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Extreme EXOS by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Extreme EXOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Extreme EXOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Extreme EXOS by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Extreme EXOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Extreme EXOS by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Extreme EXOS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Extreme EXOS: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Extreme EXOS: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Extreme EXOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: ccf92f29e2564c0bbef6baf6daf93d86 + expression: | + min(/Extreme EXOS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Extreme EXOS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Extreme EXOS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Extreme EXOS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Extreme EXOS: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Extreme EXOS: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Extreme EXOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Extreme EXOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 910004d1f3354f80bf57a36efc1b7156 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Extreme EXOS by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Extreme EXOS by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Extreme EXOS by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Extreme EXOS by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Extreme EXOS by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Extreme EXOS by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 63835abf440b4d6b879bfe0ba5cfa576 + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: b2ca0759c8b1406aa2b664d2716026b9 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f82c0234ebbd4f2686ce97642f7bbcf8 + expression: 'last(/Extreme EXOS by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'Extreme EXOS: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + - uuid: f3211654d55c4c778817e82ed2c123b6 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.1916.1.1.1.27.1.1]' + key: psu.discovery + delay: 1h + description: 'Table of status of all power supplies in the system.' + item_prototypes: + - uuid: ff7de77c363f4487ba9be3d262f912da + name: 'PSU {#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.1916.1.1.1.27.1.2.{#SNMPINDEX}]' + key: 'sensor.psu.status[extremePowerSupplyStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: EXTREME-SYSTEM-MIB + Status of the power supply {#SNMPVALUE} + valuemap: + name: 'EXTREME-SYSTEM-MIB::extremePowerSupplyStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 710f1bf31381470f9a13c45f887bda4e + expression: 'count(/Extreme EXOS by SNMP/sensor.psu.status[extremePowerSupplyStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'Extreme EXOS: PSU {#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: exos + - tag: target + value: extreme + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '2' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '3' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '65' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_CRIT_STATUS}' + value: '1' + - macro: '{$TEMP_WARN}' + value: '55' + dashboards: + - uuid: 93462451b410409ab1e1d174c55f6d62 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Extreme EXOS by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 60e2bd909e284621a8a21810623b0e94 + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: b71a1b2d06324275a37a1952f13e29b3 + name: 'EXTREME-SYSTEM-MIB::extremeFanOperational' + mappings: + - value: '1' + newvalue: 'true - on' + - value: '2' + newvalue: 'false - off' + - uuid: 34c686dbaf8649b3b7dcc243068a739a + name: 'EXTREME-SYSTEM-MIB::extremeOverTemperatureAlarm' + mappings: + - value: '1' + newvalue: alarm + - value: '2' + newvalue: normal + - uuid: 85bfdbc16637406fb5f1a23a15f16c77 + name: 'EXTREME-SYSTEM-MIB::extremePowerSupplyStatus' + mappings: + - value: '1' + newvalue: notPresent + - value: '2' + newvalue: presentOK + - value: '3' + newvalue: presentNotOK + - value: '4' + newvalue: presentPowerOff + - uuid: 2fcb120b5eb840ddbad31a7291711b7d + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: d09aa2831cca48eb8c9011582c15bea1 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 3177ca5723c3410daf20723b88019907 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: c6691c15854b472982f8a6636efdbe82 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: bb967f81aaad4a00ae7916ea80574ae0 + expression: '(last(/Extreme EXOS by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Extreme EXOS by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Extreme EXOS by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Extreme EXOS by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Extreme EXOS: Host has been restarted' + event_name: 'Extreme EXOS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Extreme EXOS: No SNMP data collection' + expression: 'max(/Extreme EXOS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + - uuid: 132d3e7a1fab4cc08fcbb12eef4e9494 + expression: | + avg(/Extreme EXOS by SNMP/sensor.temp.value[extremeCurrentTemperature.0],5m)>{$TEMP_CRIT} + or + last(/Extreme EXOS by SNMP/sensor.temp.status[extremeOverTemperatureAlarm.0])={$TEMP_CRIT_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Extreme EXOS by SNMP/sensor.temp.value[extremeCurrentTemperature.0],5m)<{$TEMP_CRIT}-3' + name: 'Extreme EXOS: Temperature is above critical threshold' + event_name: 'Extreme EXOS: Temperature is above critical threshold: >{$TEMP_CRIT}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graphs: + - uuid: 9dc8bc10d4044889bd53c56f1da45c60 + name: 'Extreme EXOS: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Extreme EXOS by SNMP' + key: 'system.cpu.util[extremeCpuMonitorTotalUtilization.0]' diff --git a/F5_Big-IP_by_SNMP.yaml b/F5_Big-IP_by_SNMP.yaml new file mode 100644 index 0000000..a2e2cbb --- /dev/null +++ b/F5_Big-IP_by_SNMP.yaml @@ -0,0 +1,3214 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 44c2c2d94a4447c6a924386640e4854a + template: 'F5 Big-IP by SNMP' + name: 'F5 Big-IP by SNMP' + description: | + MIBs used: + RFC1213-MIB + F5-BIGIP-LOCAL-MIB + F5-BIGIP-SYSTEM-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 907424caaf7c4b11b7a567db84ea1e17 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: bigip.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 0f7ecc11f860443582eb6dbe64b2bbb6 + name: 'Failover status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.14.3.1.0]' + key: bigip.failover + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The failover status ID on the system. + unknown - the failover status of the device is unknown; + offline - the device is offline; + forcedOffline - the device is forced offline; + standby - the device is standby; + active - the device is active. + valuemap: + name: 'SNMP sysCmFailoverStatusId' + tags: + - tag: component + value: cluster + triggers: + - uuid: f93a7ff7cc614c0b84789f325ebb662b + expression: 'count(/F5 Big-IP by SNMP/bigip.failover,10m,"ne","3")>8 and count(/F5 Big-IP by SNMP/bigip.failover,10m,"ne","4")>6' + name: 'F5 Big-IP: Cluster not in sync' + event_name: 'F5 Big-IP: Cluster not in sync: {ITEM.VALUE}' + opdata: '{ITEM.LASTVALUE}' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8ce387e2d78e42bfa6180b4b22096468 + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: bigip.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: d9bf23e66ae347eb8f6f58867cdc3ca7 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: bigip.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 97d896e7b8ed422caf9c4ebf053bb8d9 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: bigip.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 3d7299dcbfee4b4a8b39bbf8daa4a077 + name: 'Product build' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.4.3.0]' + key: bigip.product.build + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The product build number. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 065a6b42397e40c3874cf4176bd0fa6b + name: 'Product build date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.4.5.0]' + key: bigip.product.date + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The product build date. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 5b3c2a650f474a6da05262dc5b3634a9 + name: 'Product edition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.4.4.0]' + key: bigip.product.edition + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The product edition. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: dd91be3044a2465781af744dc45dd06f + name: 'Product name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.4.1.0]' + key: bigip.product.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The product name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: b670cf1b43d84b8784acfeaca1f01320 + name: 'Product version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.4.2.0]' + key: bigip.product.version + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The product version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: a80409ff52bf4fe183a68ed257279db5 + name: 'Chassis serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.3.3.0]' + key: bigip.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 8a55167ddebb43f2ac8f6d028aef87c2 + expression: 'last(/F5 Big-IP by SNMP/bigip.serialnumber,#1)<>last(/F5 Big-IP by SNMP/bigip.serialnumber,#2) and length(last(/F5 Big-IP by SNMP/bigip.serialnumber))>0' + name: 'F5 Big-IP: Chassis has been replaced' + event_name: 'F5 Big-IP: Chassis has been replaced (new serial number received)' + priority: INFO + description: 'Chassis serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 46bf5611d32340fdb9129966cca2c5da + name: 'Sync Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.14.1.1.0]' + key: bigip.syncstatus + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The sync status ID on the system. + unknown - the device is disconnected from the device group; + syncing - the device is joining the device group or has requested changes from device group or inconsistent with the group; + needManualSync - changes have been made on the device not syncd to the device group; + inSync - the device is consistent with the device group; + syncFailed - the device is inconsistent with the device group, requires user intervention; + syncDisconnected - the device is not connected to any peers; + standalone - the device is in a standalone configuration; + awaitingInitialSync - the device is waiting for initial sync; + incompatibleVersion - the device's version is incompatible with rest of the devices in the device group; + partialSync - some but not all devices successfully received the last sync. + valuemap: + name: 'SNMP sysCmSyncStatusId' + tags: + - tag: component + value: cluster + triggers: + - uuid: 098fe258e8cc4216b0c1800913ba8e18 + expression: 'last(/F5 Big-IP by SNMP/bigip.syncstatus)=2' + name: 'F5 Big-IP: Changes have been made on the device not sync' + event_name: 'F5 Big-IP: Changes have been made on the device not sync to the device group: {ITEM.VALUE}' + opdata: '{ITEM.LASTVALUE}' + priority: WARNING + description: 'Changes have been made on the device not sync to the device group, requires user intervention' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: eb3517626c6d425f9b88a2bc35641ab6 + expression: 'last(/F5 Big-IP by SNMP/bigip.syncstatus)=4' + name: 'F5 Big-IP: The device is inconsistent with the device group' + event_name: 'F5 Big-IP: The device is inconsistent with the device group: {ITEM.VALUE}' + opdata: '{ITEM.LASTVALUE}' + priority: WARNING + description: 'The device is inconsistent with the device group, requires user intervention' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 78d6c13d575a41a8b160bd4e2c0bea7b + name: 'TCP connections, CLOSE-WAIT/LAST-ACK' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.1.2.12.3.0]' + key: bigip.tcp.close_wait + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of current TCP connections in CLOSE-WAIT/LAST-ACK. + tags: + - tag: component + value: network + - uuid: e28c1bfcd63e4a5c8394680886395669 + name: 'TCP connections, FIN-WAIT-1/CLOSING' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.1.2.12.4.0]' + key: bigip.tcp.fin1_wait + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of current TCP connections in FIN-WAIT-1/CLOSING. + tags: + - tag: component + value: network + - uuid: 69576083e02c486998512c58ab2a6371 + name: 'TCP connections, FIN-WAIT-2' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.1.2.12.20.0]' + key: bigip.tcp.fin2_wait + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of current TCP connections in FIN-WAIT-2. + tags: + - tag: component + value: network + - uuid: b58bae7e2e4f403ba7bce846ccf5228e + name: 'Open TCP connections' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.1.2.12.2.0]' + key: bigip.tcp.open + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of current open TCP connections. + tags: + - tag: component + value: network + - uuid: bd3982fd369142878ffb9530656556e3 + name: 'TCP connections, TIME-WAIT' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.1.2.12.5.0]' + key: bigip.tcp.time_wait + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of current TCP connections in TIME-WAIT. + tags: + - tag: component + value: network + - uuid: 843e855fb10f4cb0be81953dd8dbb87e + name: 'Open UDP connections' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.1.2.13.2.0]' + key: bigip.udp.open + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of current open UDP connections. + tags: + - tag: component + value: network + - uuid: efb83b0cb4864b249ecf61b2f81ec468 + name: Uptime + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.6.6.0]' + key: bigip.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The system up time in 1/100 seconds since boot. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + triggers: + - uuid: 551fd3b77d144ed58f138865e4862901 + expression: 'last(/F5 Big-IP by SNMP/bigip.uptime)<10m' + name: 'F5 Big-IP: Host has been restarted' + event_name: 'F5 Big-IP: {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: c91416602a9c451ca0eb959073f65fb0 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 9ec4425af8dd4cf59dcb3146e6a8263c + expression: 'max(/F5 Big-IP by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'F5 Big-IP: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 9368bf7cbf0742e5af8e0b1200200a15 + name: 'Blade temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#TEMP.INDEX},1.3.6.1.4.1.3375.2.1.3.2.4.2.1.1,{#SLOT.INDEX},1.3.6.1.4.1.3375.2.1.3.2.4.2.1.4,{#TEMP.LOCATION},1.3.6.1.4.1.3375.2.1.3.2.4.2.1.3]' + key: bigip.blade.temp.discovery + delay: 1h + description: 'Containing information of blade temperature of the system' + item_prototypes: + - uuid: 6e0239a64c2c43ee94e225efcf970ef1 + name: 'Sensor [{#SLOT.INDEX}:{#TEMP.INDEX}]: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.2.4.2.1.2.{#SNMPINDEX}]' + key: 'bigip.blade.temp.value[{#SLOT.INDEX},{#TEMP.INDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: F5-BIGIP-SYSTEM-MIB + Location: {#TEMP.LOCATION} + The blade temperature (in Celsius) of the indexed sensor on the system., + This is only supported for the platform where + the sensor data is available. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + graph_prototypes: + - uuid: 1b43fb6913274a34ab6ad122d5db38ba + name: 'F5 BIG-IP: Sensor [{#SLOT.INDEX}:{#TEMP.INDEX}] temperature' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.blade.temp.value[{#SLOT.INDEX},{#TEMP.INDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 099e4de8464e49aca8e0d24b4276c804 + name: 'Blade voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#VOLT.INDEX},1.3.6.1.4.1.3375.2.1.3.2.5.2.1.1]' + key: bigip.blade.voltage.discovery + delay: 1h + description: 'A table containing information of blade voltage of the system.' + item_prototypes: + - uuid: 6f7cf365f10440b18a08d63880356401 + name: 'Voltage [{#VOLT.INDEX}]: Slot' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.2.5.2.1.3.{#SNMPINDEX}]' + key: 'bigip.blade.voltage.slot[{#VOLT.INDEX}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The chassis slot number, if applicable. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + - uuid: 1c0bf38bb0d3473cae285704ccd3ee0b + name: 'Voltage [{#VOLT.INDEX}]: Value' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.2.4.2.1.2.{#SNMPINDEX}]' + key: 'bigip.blade.voltage.value[{#VOLT.INDEX}]' + value_type: FLOAT + units: V + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The blade voltage (in V) of the indexed sensor on the system., + This is only supported for the platform where + the sensor data is available. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + graph_prototypes: + - uuid: b5b1a26c3c9043d79eff63272c3e4b8d + name: 'F5 BIG-IP: Voltage [{#VOLT.INDEX}] value' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.blade.voltage.value[{#VOLT.INDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: dfdcfd160cfe4e798f29576280bf1627 + name: 'Certificate discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CERT.NAME},1.3.6.1.4.1.3375.2.1.15.1.2.1.1]' + key: bigip.cert.discovery + delay: 1d + description: 'A table containing certificate configuration.' + item_prototypes: + - uuid: d27c1c13d6984728aebacdcf26777025 + name: 'Certificate [{#CERT.NAME}]: Expiration date' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.15.1.2.1.5.{#SNMPINDEX}]' + key: 'bigip.cert.expiration.date[{#CERT.NAME}]' + delay: 12h + trends: '0' + units: unixtime + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The expiration date of the certificate in unix time. + tags: + - tag: certificate + value: '{#CERT.NAME}' + - tag: component + value: certificate + trigger_prototypes: + - uuid: 015ce3f5d10749aca1d871a1d26c51c5 + expression: 'last(/F5 Big-IP by SNMP/bigip.cert.expiration.date[{#CERT.NAME}]) - 86400 * {$BIGIP.CERT.MIN} < now()' + name: 'F5 Big-IP: Certificate expires ({#CERT.NAME})' + event_name: 'F5 Big-IP: Less than {$BIGIP.CERT.MIN} days left until the certificate expires ({#CERT.NAME})' + opdata: 'Expires: {ITEM.VALUE}' + priority: WARNING + description: 'Please check certificate' + tags: + - tag: scope + value: security + - uuid: 1bab90f9f015432c817cabebb98453af + name: 'Chassis fan discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#FAN.INDEX},1.3.6.1.4.1.3375.2.1.3.2.1.2.1.1]' + key: bigip.chassis.fan.discovery + delay: 1h + description: 'A table containing information of chassis fan status of the system' + item_prototypes: + - uuid: 973e0443ecc84630afc327d1917d9e57 + name: 'FAN [{#FAN.INDEX}]: Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.2.1.2.1.3.{#SNMPINDEX}]' + key: 'bigip.chassis.fan.speed[{#FAN.INDEX}]' + delay: 5m + units: '!rpm' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The actual speed of the indexed chassis fan on the system. + This is only supported for the platform where the actual + fan speed data is available. + '0' means fan speed is unavailable while the associated chassis status is good. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + - uuid: 13b1890ae83547d482c9130ea0ccf876 + name: 'FAN [{#FAN.INDEX}]: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.2.1.2.1.2.{#SNMPINDEX}]' + key: 'bigip.chassis.fan.status[{#FAN.INDEX}]' + delay: 5m + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The status of the indexed chassis fan on the system., + This is only supported for the platform where + the sensor data is available. + Possible values: 0 - bad, 1 - good, 2 - notpresent. + valuemap: + name: 'Chassis status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: 546745f6edf7470896d5bf251d760dfe + expression: 'last(/F5 Big-IP by SNMP/bigip.chassis.fan.status[{#FAN.INDEX}])=0' + name: 'F5 Big-IP: Fan[{#FAN.INDEX}] is in critical state' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + - uuid: d20c56720aa54efba37f5fcdfdde0225 + expression: 'last(/F5 Big-IP by SNMP/bigip.chassis.fan.status[{#FAN.INDEX}])=2' + name: 'F5 Big-IP: Fan[{#FAN.INDEX}] is not present' + priority: INFO + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: f0a043ed6fb249e489f143350b681a63 + name: 'F5 BIG-IP: FAN [{#FAN.INDEX}] speed' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.chassis.fan.speed[{#FAN.INDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: ee07355820ae4281ba5c6b4640a9fcc4 + name: 'Chassis power supply discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#POWER.INDEX},1.3.6.1.4.1.3375.2.1.3.2.2.2.1.1]' + key: bigip.chassis.power.discovery + delay: 1h + description: 'A table containing information of chassis power supply status of the system.' + item_prototypes: + - uuid: d72e501362eb4e70bb324d42d304b7a8 + name: 'Power supply [{#POWER.INDEX}]: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.2.2.2.1.2.{#SNMPINDEX}]' + key: 'bigip.chassis.power.status[{#POWER.INDEX}]' + delay: 5m + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The status of the indexed power supply on the system., + This is only supported for the platform where + the sensor data is available. + Possible values: 0 - bad, 1 - good, 2 - notpresent. + valuemap: + name: 'Chassis status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 1e85cee65875477b85f74aedba6e86c9 + expression: 'last(/F5 Big-IP by SNMP/bigip.chassis.power.status[{#POWER.INDEX}])=0' + name: 'F5 Big-IP: Power supply [{#POWER.INDEX}] is in critical state' + priority: HIGH + description: 'Please check the power supply unit' + tags: + - tag: scope + value: notice + - uuid: 84469f28c4bf47f790a85b9f1f37cff0 + expression: 'last(/F5 Big-IP by SNMP/bigip.chassis.power.status[{#POWER.INDEX}])=2' + name: 'F5 Big-IP: Power supply [{#POWER.INDEX}] is not present' + priority: INFO + description: 'Please check the power supply unit' + tags: + - tag: scope + value: notice + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 795b91aa746b43fdb8171cd30aa249ee + name: 'Chassis temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#TEMP.INDEX},1.3.6.1.4.1.3375.2.1.3.2.3.2.1.1]' + key: bigip.chassis.temp.discovery + delay: 1h + description: 'A table containing information of chassis temperature of the system' + item_prototypes: + - uuid: e49355bacceb473eb9f548d044a9742b + name: 'Sensor [{#TEMP.INDEX}]: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.2.3.2.1.2.{#SNMPINDEX}]' + key: 'bigip.chassis.temp.value[{#TEMP.INDEX}]' + delay: 5m + value_type: FLOAT + units: °C + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The chassis temperature (in Celsius) of the indexed sensor on the system., + This is only supported for the platform where + the sensor data is available. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: 452167aafe594e3faa3748e6dc470fb1 + expression: 'last(/F5 Big-IP by SNMP/bigip.chassis.temp.value[{#TEMP.INDEX}])>{$BIGIP.TEMP.HIGH}' + name: 'F5 Big-IP: Chassis temperature' + event_name: 'F5 Big-IP: Chassis temperature ({ITEM.LASTVALUE}) of sensor {#TEMP.INDEX} exceeds threshold of {$BIGIP.TEMP.HIGH} °C' + opdata: '{ITEM.LASTVALUE}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 00c0212fcb8049309bf0b3de2b2363b4 + expression: 'last(/F5 Big-IP by SNMP/bigip.chassis.temp.value[{#TEMP.INDEX}])>{$BIGIP.TEMP.WARN}' + name: 'F5 Big-IP: Chassis temperature' + event_name: 'F5 Big-IP: Chassis temperature ({ITEM.LASTVALUE}) of sensor {#TEMP.INDEX} exceeds threshold of {$BIGIP.TEMP.WARN} °C' + opdata: '{ITEM.LASTVALUE}' + priority: WARNING + dependencies: + - name: 'F5 Big-IP: Chassis temperature' + expression: 'last(/F5 Big-IP by SNMP/bigip.chassis.temp.value[{#TEMP.INDEX}])>{$BIGIP.TEMP.HIGH}' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: ceea250c715948f3907290738451c328 + name: 'F5 BIG-IP: Sensor [{#TEMP.INDEX}] temperature' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.chassis.temp.value[{#TEMP.INDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 1f27aaedf30243c2a704bf6350490d8c + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#HOST.ID},1.3.6.1.4.1.3375.2.1.7.5.2.1.1,{#CPU.ID},1.3.6.1.4.1.3375.2.1.7.5.2.1.3]' + key: bigip.cpu.discovery + delay: 1h + description: 'A table containing entries of system CPU usage information for a system.' + item_prototypes: + - uuid: 7cf45a392cd7465988eb527de7b3ad63 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Idle, avg 1m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.23.{#SNMPINDEX}]' + key: 'bigip.cpu.idle.1m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor doing nothing for the associated host in the last one minute. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 12acd2da83b04353aca2bd3cff842c97 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Idle, avg 5m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.31.{#SNMPINDEX}]' + key: 'bigip.cpu.idle.5m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor doing nothing for the associated host in the last five minutes. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: dd169e972fe041cca93020b8a942a4d2 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Idle, avg 5s' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.15.{#SNMPINDEX}]' + key: 'bigip.cpu.idle.5s[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor doing nothing for the associated host in the last five seconds. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 808a6933a1834291b80d0cb072dded09 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: IO wait, avg 1m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.26.{#SNMPINDEX}]' + key: 'bigip.cpu.iowait.1m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor waiting for external I/O to complete for the associated host in the last one minute. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 6144e3ca25ac4f998559b860d059c385 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: IO wait, avg 5m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.34.{#SNMPINDEX}]' + key: 'bigip.cpu.iowait.5m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor waiting for external I/O to complete for the associated host in the last five minutes. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: b4715714c727483fb3ca6004a829ac46 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: IO wait, avg 5s' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.18.{#SNMPINDEX}]' + key: 'bigip.cpu.iowait.5s[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor waiting for external I/O to complete for the associated host in the last five seconds. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 9f0f6dabac314744809a60161592a89f + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: IRQ, avg 1m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.24.{#SNMPINDEX}]' + key: 'bigip.cpu.irq.1m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor servicing hardware interrupts for the associated host in the last one minute. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: f3d8ac2412ee4f0b88f264e590e278cb + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: IRQ, avg 5m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.32.{#SNMPINDEX}]' + key: 'bigip.cpu.irq.5m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor servicing hardware interrupts for the associated host in the last five minutes. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 7bc53c5f9a7148759d426e8e5fd7f358 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: IRQ, avg 5s' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.16.{#SNMPINDEX}]' + key: 'bigip.cpu.irq.5s[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor servicing hardware interrupts for the associated host in the last five seconds. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: b74f502d97f54041a4c129f5993e0967 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Nice, avg 1m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.21.{#SNMPINDEX}]' + key: 'bigip.cpu.nice.1m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor running niced processes for the associated host in the last one minute. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: bf51a4638db443a083ec19b934a6a915 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Nice, avg 5m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.29.{#SNMPINDEX}]' + key: 'bigip.cpu.nice.5m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor running niced processes for the associated host in the last five minutes. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 0046e43000b7477ea410970884829e5c + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Nice, avg 5s' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.13.{#SNMPINDEX}]' + key: 'bigip.cpu.nice.5s[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor running niced processes for the associated host in the last five seconds. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: f2b1962e10b04dc28a124b91b7e9a235 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Soft IRQ, avg 1m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.25.{#SNMPINDEX}]' + key: 'bigip.cpu.spftirq.1m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor servicing soft interrupts for the associated host in the last one minute. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 56f459510e444326bba84ab12c4c232c + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Soft IRQ, avg 5m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.33.{#SNMPINDEX}]' + key: 'bigip.cpu.spftirq.5m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor servicing soft interrupts for the associated host in the last five minutes. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 8a6c086c524c4f5c93e66f9f453ed767 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Soft IRQ, avg 5s' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.17.{#SNMPINDEX}]' + key: 'bigip.cpu.spftirq.5s[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor servicing soft interrupts for the associated host in the last five seconds. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 62e59d3a63014976a6c052ef259dbbc1 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Stolen, avg 1m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.38.{#SNMPINDEX}]' + key: 'bigip.cpu.stolen.1m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time 'stolen' from the specified processor for the associated host in the last one minute. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 757178b5d85041959609de5d38d93f20 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Stolen, avg 1s)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.37.{#SNMPINDEX}]' + key: 'bigip.cpu.stolen.1s[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time 'stolen' from the specified processor for the associated host in the last five seconds. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: c229331551284955befbed59fedae445 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Stolen, avg 5m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.39.{#SNMPINDEX}]' + key: 'bigip.cpu.stolen.5m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time 'stolen' from the specified processor for the associated host in the last five minutes. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 20a60cec7a50457a9c6c5a5e318b53e2 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: System, avg 1m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.22.{#SNMPINDEX}]' + key: 'bigip.cpu.system.1m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor servicing system calls for the associated host in the last one minute. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 9dc919dcc789473db23f989943f9a759 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: System, avg 5m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.30.{#SNMPINDEX}]' + key: 'bigip.cpu.system.5m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor servicing system calls for the associated host in the last five minutes. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 8b1bd4e936c149cfa44d8cf5d88bee4b + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: System, avg 5s' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.14.{#SNMPINDEX}]' + key: 'bigip.cpu.system.5s[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor servicing system calls for the associated host in the last five seconds. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: e8f3b63e951d4de0b845647bcdd1524f + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Usage ratio, avg 1m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.27.{#SNMPINDEX}]' + key: 'bigip.cpu.usageratio.1m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + This is average usage ratio of CPU for the associated host in the last one minute. It is calculated by + (sum of deltas for user, niced, system)/(sum of deltas of user, niced, system, idle, irq, softirq, and iowait), + where each delta is the difference for each stat over the last 5-second interval; + user:sysMultiHostCpuUser1m; + niced:sysMultiHostCpuNiced1m; + stolen:sysMultiHostCpuStolen1m; + system:sysMultiHostCpuSystem1m; + idle:sysMultiHostCpuIdle1m; + irq:sysMultiHostCpuIrq1m; + iowait:sysMultiHostCpuIowait1m + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 46e78b7f00904778abf5160fff93670a + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Usage ratio, avg 5m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.35.{#SNMPINDEX}]' + key: 'bigip.cpu.usageratio.5m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + This is average usage ratio of CPU for the associated host in the last five minutes. It is calculated by + (sum of deltas for user, niced, system)/(sum of deltas of user, niced, system, idle, irq, softirq, and iowait), + where each delta is the difference for each stat over the last 5-second interval; + user:sysMultiHostCpuUser5m; + niced:sysMultiHostCpuNiced5m; + stolen:sysMultiHostCpuStolen5m; + system:sysMultiHostCpuSystem5m; + idle:sysMultiHostCpuIdle5m; + irq:sysMultiHostCpuIrq5m; + iowait:sysMultiHostCpuIowait5m + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + trigger_prototypes: + - uuid: 1163080e05d3433f884773fe1ee0271a + expression: 'last(/F5 Big-IP by SNMP/bigip.cpu.usageratio.5m[{#HOST.ID},{#CPU.ID}])>{$BIGIP.CPU.UTIL.WARN.MAX}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/F5 Big-IP by SNMP/bigip.cpu.usageratio.5m[{#HOST.ID},{#CPU.ID}])<{$BIGIP.CPU.UTIL.WARN.MIN}' + name: 'F5 Big-IP: High CPU utilization' + event_name: 'F5 Big-IP: High CPU utilization (over {$BIGIP.CPU.UTIL.WARN.MAX}% for 5m)' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: e0e3bbd21d3e434c80e7bb1969388b27 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: Usage ratio, avg 5s' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.19.{#SNMPINDEX}]' + key: 'bigip.cpu.usageratio.5s[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + This is average usage ratio of CPU for the associated host in the last five seconds. It is calculated by + (sum of deltas for user, niced, system)/(sum of deltas of user, niced, system, idle, irq, softirq, and iowait), + where each delta is the difference for each stat over the last 5-second interval; + user:sysMultiHostCpuUser5s; + niced:sysMultiHostCpuNiced5s; + stolen:sysMultiHostCpuStolen5s; + system:sysMultiHostCpuSystem5s; + idle:sysMultiHostCpuIdle5s; + irq:sysMultiHostCpuIrq5s; + iowait:sysMultiHostCpuIowait5s + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: beaece1c9eaa41768e7c05993d2f4b3b + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: User, avg 1m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.20.{#SNMPINDEX}]' + key: 'bigip.cpu.user.1m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor in user context for the associated host in the last one minute. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 7344ae137ef94f80a99865057c105d96 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: User, avg 5m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.28.{#SNMPINDEX}]' + key: 'bigip.cpu.user.5m[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor in user context for the associated host in the last five minutes. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + - uuid: 61176fa2de794fcf90f1eef2ead10df6 + name: 'Host [{#HOST.ID}] CPU{#CPU.ID}: User, avg 5s' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.5.2.1.12.{#SNMPINDEX}]' + key: 'bigip.cpu.user.5s[{#HOST.ID},{#CPU.ID}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The average time spent by the specified processor in user context for the associated host in the last five seconds. + tags: + - tag: component + value: cpu + - tag: cpu-id + value: '{#CPU.ID}' + - tag: host-id + value: '{#HOST.ID}' + graph_prototypes: + - uuid: 64c251a6b0384d2ea7d5b498c7fe6422 + name: 'F5 BIG-IP: Host [{#HOST.ID}] CPU{#CPU.ID}: Usage ratio, avg 1m' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.user.1m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.nice.1m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '2' + color: 00611C + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.system.1m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '3' + color: F7941D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.idle.1m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.irq.1m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.iowait.1m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '6' + color: C7A72D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.stolen.1m[{#HOST.ID},{#CPU.ID}]' + - uuid: 3fd0ca58d8f14e06afa2c58f9d1b46f3 + name: 'F5 BIG-IP: Host [{#HOST.ID}] CPU{#CPU.ID}: Usage ratio, avg 5m' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.user.5m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.nice.5m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '2' + color: 00611C + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.system.5m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '3' + color: F7941D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.idle.5m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.irq.5m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.iowait.5m[{#HOST.ID},{#CPU.ID}]' + - sortorder: '6' + color: C7A72D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.stolen.5m[{#HOST.ID},{#CPU.ID}]' + - uuid: dba5e4f4c3714f438eacba4b213ce640 + name: 'F5 BIG-IP: Host [{#HOST.ID}] CPU{#CPU.ID}: Usage ratio, avg 5s' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.user.5s[{#HOST.ID},{#CPU.ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.nice.5s[{#HOST.ID},{#CPU.ID}]' + - sortorder: '2' + color: 00611C + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.system.5s[{#HOST.ID},{#CPU.ID}]' + - sortorder: '3' + color: F7941D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.idle.5s[{#HOST.ID},{#CPU.ID}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.irq.5s[{#HOST.ID},{#CPU.ID}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.iowait.5s[{#HOST.ID},{#CPU.ID}]' + - sortorder: '6' + color: C7A72D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.stolen.1s[{#HOST.ID},{#CPU.ID}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: a0bdcabc8c7c4a349a9c4711be33c417 + name: 'CPU sensor discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CPU.SENSOR.INDEX},1.3.6.1.4.1.3375.2.1.3.6.2.1.1,{#CPU.SENSOR.SLOT},1.3.6.1.4.1.3375.2.1.3.6.2.1.5,{#CPU.SENSOR.NAME},1.3.6.1.4.1.3375.2.1.3.6.2.1.4]' + key: bigip.cpu.sensor.discovery + delay: 1h + description: 'A table containing information of CPU sensor status on the system.' + item_prototypes: + - uuid: 065993688a2e4b0e8e88998d24193a85 + name: 'Sensor [{#CPU.SENSOR.SLOT}:{#CPU.SENSOR.INDEX}]: FAN speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.6.2.1.3.{#SNMPINDEX}]' + key: 'bigip.cpu.sensor.fan[{#CPU.SENSOR.SLOT},{#CPU.SENSOR.INDEX}]' + delay: 5m + units: '!rpm' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + CPU: {#CPU.SENSOR.NAME} + The fan speed (in RPM) of the indexed CPU on the system., + This is only supported for the platform where + the sensor data is available. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + - uuid: 03bd45f8a7004fd3a3d8b361a37547d3 + name: 'Sensor [{#CPU.SENSOR.SLOT}:{#CPU.SENSOR.INDEX}]: Name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.6.2.1.4.{#SNMPINDEX}]' + key: 'bigip.cpu.sensor.name[{#CPU.SENSOR.SLOT},{#CPU.SENSOR.INDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + Identifier for the CPU. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: name + - tag: component + value: sensor + - uuid: 1ffd09c7d99843b88e259de3614d003a + name: 'Sensor [{#CPU.SENSOR.SLOT}:{#CPU.SENSOR.INDEX}]: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.3.6.2.1.2.{#SNMPINDEX}]' + key: 'bigip.cpu.sensor.temperature[{#CPU.SENSOR.SLOT},{#CPU.SENSOR.INDEX}]' + delay: 5m + units: °C + description: | + MIB: F5-BIGIP-SYSTEM-MIB + CPU: {#CPU.SENSOR.NAME} + The temperature of the indexed CPU on the system. + This is only supported for the platform where + the sensor data is available. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + graph_prototypes: + - uuid: 714b13fd29ec47009f183d44ddaa8df6 + name: 'F5 BIG-IP: Sensor [{#CPU.SENSOR.SLOT}:{#CPU.SENSOR.INDEX}] FAN speed' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.sensor.fan[{#CPU.SENSOR.SLOT},{#CPU.SENSOR.INDEX}]' + - uuid: be756734cec74d9fb427fb1d515c7888 + name: 'F5 BIG-IP: Sensor [{#CPU.SENSOR.SLOT}:{#CPU.SENSOR.INDEX}] temperature' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.cpu.sensor.temperature[{#CPU.SENSOR.SLOT},{#CPU.SENSOR.INDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 26027ab56e7841d1b73747935a5e6157 + name: 'File system discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PART.NAME},1.3.6.1.4.1.3375.2.1.7.3.2.1.1]' + key: bigip.disktable.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#PART.NAME}' + value: '{$BIGIP.LLD.FILTER.PART.NAME.MATCHES}' + formulaid: A + - macro: '{#PART.NAME}' + value: '{$BIGIP.LLD.FILTER.PART.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'A table containing entries of system disk usage information.' + item_prototypes: + - uuid: 4c86e62a1a1a4f3eb990b2f17f6191fd + name: 'Mount point [{#PART.NAME}]: Block size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.3.2.1.2.{#SNMPINDEX}]' + key: 'bigip.disktable.blocksize[{#PART.NAME}]' + delay: 1h + units: B + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of bytes in the specified partition. + tags: + - tag: component + value: storage + - tag: mount-point + value: '{#PART.NAME}' + - uuid: 8fd4ee3dc199419189daf478ff2dc01d + name: 'Mount point [{#PART.NAME}]: Free blocks' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.3.2.1.4.{#SNMPINDEX}]' + key: 'bigip.disktable.freeblocks[{#PART.NAME}]' + delay: 1h + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of free blocks in the specified partition. + tags: + - tag: component + value: storage + - tag: mount-point + value: '{#PART.NAME}' + - uuid: 5c0724be667946f192a46cc2a0584971 + name: 'Mount point [{#PART.NAME}]: Free nodes' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.3.2.1.6.{#SNMPINDEX}]' + key: 'bigip.disktable.freenodes[{#PART.NAME}]' + delay: 1h + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of free file nodes in the specified partition. + tags: + - tag: component + value: storage + - tag: mount-point + value: '{#PART.NAME}' + - uuid: 50d267f74f9c476fac23884828f5275f + name: 'Mount point [{#PART.NAME}]: Total blocks' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.3.2.1.3.{#SNMPINDEX}]' + key: 'bigip.disktable.totalblocks[{#PART.NAME}]' + delay: 1h + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of total blocks in the specified partition. + tags: + - tag: component + value: storage + - tag: mount-point + value: '{#PART.NAME}' + - uuid: 49cd22a896d941a2b55f3ba6e95698b4 + name: 'Mount point [{#PART.NAME}]: Total nodes' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.3.2.1.5.{#SNMPINDEX}]' + key: 'bigip.disktable.totalnodes[{#PART.NAME}]' + delay: 1h + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of total file nodes in the specified partition. + tags: + - tag: component + value: storage + - tag: mount-point + value: '{#PART.NAME}' + trigger_prototypes: + - uuid: 32b87997dc0b4967bdb158f1dc0baad2 + expression: 'last(/F5 Big-IP by SNMP/bigip.disktable.freeblocks[{#PART.NAME}])/last(/F5 Big-IP by SNMP/bigip.disktable.totalblocks[{#PART.NAME}])*100<{$BIGIP.FS.FREE.WARN.MIN:"{#PART.NAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/F5 Big-IP by SNMP/bigip.disktable.freeblocks[{#PART.NAME}])/last(/F5 Big-IP by SNMP/bigip.disktable.totalblocks[{#PART.NAME}])*100>{$BIGIP.FS.FREE.WARN.MAX:"{#PART.NAME}"}' + name: 'F5 Big-IP: Low free space in file system [{#PART.NAME}]' + event_name: 'F5 Big-IP: Low free space in file system [{#PART.NAME}] (less than {$BIGIP.FS.FREE.WARN.MIN}% for 5m)' + priority: WARNING + description: 'The system is running out of free space.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: ed63eb409eb2497bb9dc7721ac789022 + name: 'F5 BIG-IP: Mount point [{#PART.NAME}]: Blocks' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.disktable.freeblocks[{#PART.NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.disktable.totalblocks[{#PART.NAME}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + overrides: + - name: 'Skip trigger for defined filesystems' + step: '1' + filter: + conditions: + - macro: '{#PART.NAME}' + value: '{$BIGIP.LLD.OVERRIDE.PART.FILTER_LOW_SPACE_TRIGGER}' + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Low free space in file system' + discover: NO_DISCOVER + - uuid: 8aeb7920d1fe4ba4884f92e45e711228 + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#HOST.ID},1.3.6.1.4.1.3375.2.1.7.4.2.1.1]' + key: bigip.memory.discovery + delay: 1h + description: 'Containing system statistics information of the memory usage' + item_prototypes: + - uuid: 39b39f06ae574927b90dfe9235301788 + name: 'Host [{#HOST.ID}]: Total other non-TMM memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.4.2.1.7.{#SNMPINDEX}]' + key: 'bigip.memory.total.other[{#HOST.ID}]' + delay: 5m + units: B + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The total other non-TMM memory in bytes for the specified host. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + - uuid: e01e3283d37a4ae09d62fbc679cc4dee + name: 'Host [{#HOST.ID}]: Total swap' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.4.2.1.9.{#SNMPINDEX}]' + key: 'bigip.memory.total.swap[{#HOST.ID}]' + delay: 1d + units: B + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The total swap in bytes for the specified host. + tags: + - tag: component + value: memory + - uuid: d1ebd77bd2bc4d24b45b32eb6cda6722 + name: 'Host [{#HOST.ID}]: Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.4.2.1.2.{#SNMPINDEX}]' + key: 'bigip.memory.total[{#HOST.ID}]' + delay: 1d + units: B + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The total host memory in bytes for the specified host. + tags: + - tag: component + value: memory + - uuid: 6c73ea2e54594a1ab6edbdc6de30f711 + name: 'Host [{#HOST.ID}]: Used other non-TMM memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.4.2.1.8.{#SNMPINDEX}]' + key: 'bigip.memory.used.other[{#HOST.ID}]' + delay: 5m + units: B + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The other non-TMM memory in bytes currently in use for the specified host. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + - uuid: 3a9d6f2815644a4f93e008ccacbdb290 + name: 'Host [{#HOST.ID}]: Used swap' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.4.2.1.10.{#SNMPINDEX}]' + key: 'bigip.memory.used.swap[{#HOST.ID}]' + delay: 5m + units: B + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The swap in bytes currently in use for the specified host. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + - uuid: d5af8fa1079b4c0aa47b98e25a184af3 + name: 'Host [{#HOST.ID}]: Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.7.4.2.1.3.{#SNMPINDEX}]' + key: 'bigip.memory.used[{#HOST.ID}]' + delay: 5m + units: B + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The host memory in bytes currently in use for the specified host. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: e72f446075214129ab1d6269fcd87051 + expression: 'last(/F5 Big-IP by SNMP/bigip.memory.used[{#HOST.ID}])/last(/F5 Big-IP by SNMP/bigip.memory.total[{#HOST.ID}])*100>{$BIGIP.MEMORY.UTIL.WARN.MAX}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/F5 Big-IP by SNMP/bigip.memory.used[{#HOST.ID}])/last(/F5 Big-IP by SNMP/bigip.memory.total[{#HOST.ID}])*100<{$BIGIP.MEMORY.UTIL.WARN.MIN}' + name: 'F5 Big-IP: High memory utilization in host [{#HOST.ID}]' + event_name: 'F5 Big-IP: High memory utilization in host [{#HOST.ID}] (over {$BIGIP.MEMORY.UTIL.WARN.MAX}%)' + priority: WARNING + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: 5cf3e1f819ee46f49ba89156c53274ec + expression: 'last(/F5 Big-IP by SNMP/bigip.memory.used.swap[{#HOST.ID}])/last(/F5 Big-IP by SNMP/bigip.memory.total.swap[{#HOST.ID}])*100>{$BIGIP.SWAP.UTIL.WARN.MAX}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/F5 Big-IP by SNMP/bigip.memory.used.swap[{#HOST.ID}])/last(/F5 Big-IP by SNMP/bigip.memory.total.swap[{#HOST.ID}])*100<{$BIGIP.SWAP.UTIL.WARN.MIN}' + name: 'F5 Big-IP: High swap utilization in host [{#HOST.ID}]' + event_name: 'F5 Big-IP: High swap utilization in host [{#HOST.ID}] (over {$BIGIP.SWAP.UTIL.WARN.MAX}%)' + priority: WARNING + description: 'The system is running out of free swap memory.' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 3414dd36b37e434f9c28eacc0e8c58b9 + name: 'F5 BIG-IP: Host [{#HOST.ID}]: Memory' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.memory.used[{#HOST.ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.memory.total[{#HOST.ID}]' + - uuid: 4b7815c72f264209b288c019541a09e6 + name: 'F5 BIG-IP: Host [{#HOST.ID}]: Swap' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.memory.used.swap[{#HOST.ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.memory.total.swap[{#HOST.ID}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 6fa254ddaea74df1928e3582b34c292d + name: 'Module discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#MODULE.NAME},1.3.6.1.4.1.3375.2.1.11.1.2.1.1]' + key: bigip.module.discovery + delay: 1h + description: 'Resource allocation information about modules on the system' + item_prototypes: + - uuid: 36a1032bb74145c8ae51dbb54ec988a2 + name: 'Module [{#MODULE.NAME}]: CPU ratio' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.11.1.2.1.4.{#SNMPINDEX}]' + key: 'bigip.module.cpu.ratio[{#MODULE.NAME}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The ratio of CPU to allocate to this module. Only valid if level is 'custom' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: module + - tag: module + value: '{#MODULE.NAME}' + - uuid: eaeb7bc1225b48689124c373b04fc56f + name: 'Module [{#MODULE.NAME}]: Disk ratio' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.11.1.2.1.5.{#SNMPINDEX}]' + key: 'bigip.module.disk.ratio[{#MODULE.NAME}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The ratio of available disk space to allocate to this module. Only valid if level is 'custom' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: module + - tag: module + value: '{#MODULE.NAME}' + - uuid: b384a7e297f844c89cc40c486e0c69db + name: 'Module [{#MODULE.NAME}]: Memory ratio' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.11.1.2.1.3.{#SNMPINDEX}]' + key: 'bigip.module.memory.ratio[{#MODULE.NAME}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The ratio of available memory to allocate. Only valid if level is 'custom' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: module + - tag: module + value: '{#MODULE.NAME}' + - uuid: 36dbc22d430e477ab2105323ad8b0850 + name: 'Module [{#MODULE.NAME}]: Provision level' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.11.1.2.1.2.{#SNMPINDEX}]' + key: 'bigip.module.provision.level[{#MODULE.NAME}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The provisioning level indicates how the systems resources + are distributed amongst the modules + Possible values: 1 - none, 2 - minimum, 3 - nominal, 4 - dedicated, 5 - custom. + valuemap: + name: 'Module provision level' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: module + - tag: module + value: '{#MODULE.NAME}' + graph_prototypes: + - uuid: cfc1606bfbdd40b095620e32e646e2fd + name: 'F5 BIG-IP: Module [{#MODULE.NAME}] resource usage ratio' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.module.memory.ratio[{#MODULE.NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.module.cpu.ratio[{#MODULE.NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.module.disk.ratio[{#MODULE.NAME}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 053063ca377e4438bfa93d08a07adbe9 + name: 'Network interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IF.NAME},1.3.6.1.4.1.3375.2.1.2.4.4.3.1.1]' + key: bigip.net.discovery + delay: 1h + description: 'A table containing statistic information of the interfaces on the device.' + item_prototypes: + - uuid: 87fd58c620c142a99dc810f13b3d109e + name: 'Interface [{#IF.NAME}]: Collisions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.12.{#SNMPINDEX}]' + key: 'bigip.net.collisions[{#IF.NAME}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of collisions on the specified interface, incremented by the + number of collisions experienced during transmissions of a frame + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: 1ddb57921289497fb2c2e4f047f58c02 + name: 'Interface [{#IF.NAME}]: Incoming traffic, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.3.{#SNMPINDEX}]' + key: 'bigip.net.in.bytes.rate[{#IF.NAME}]' + units: Bps + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The rate of bytes received on this interface. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: 45342d637fa440f8b73968a14bf39374 + name: 'Interface [{#IF.NAME}]: Incoming packet drops' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.10.{#SNMPINDEX}]' + key: 'bigip.net.in.drops[{#IF.NAME}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of packets dropped on ingress for various reasons on the specified interface. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: 5bc37dde99024866a2a5f97fbce15c2f + name: 'Interface [{#IF.NAME}]: Incoming packet error' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.8.{#SNMPINDEX}]' + key: 'bigip.net.in.error[{#IF.NAME}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of received packets that are either undersized, + oversized, or have FCS errors by the specified interface. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: 8aaff266f1b74a81a3eba46d321eb524 + name: 'Interface [{#IF.NAME}]: Incoming multicast packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.6.{#SNMPINDEX}]' + key: 'bigip.net.in.multicast.rate[{#IF.NAME}]' + units: pps + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The rate of multicast packets received on this interface. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: 40e811829adc4715af4e10d223be3bc5 + name: 'Interface [{#IF.NAME}]: Incoming packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.2.{#SNMPINDEX}]' + key: 'bigip.net.in.pkts.rate[{#IF.NAME}]' + units: pps + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The rate of packets received on this interface. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: 202717aa54194cf882c86640e73b17af + name: 'Interface [{#IF.NAME}]: Incoming QnQ packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.13.{#SNMPINDEX}]' + key: 'bigip.net.in.qq.rate[{#IF.NAME}]' + units: pps + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The rate of double tagged packets received on the specified interface. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: c98f48ddf6bc46f39ab9aec6cc249fa4 + name: 'Interface [{#IF.NAME}]: Outgoing traffic, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.5.{#SNMPINDEX}]' + key: 'bigip.net.out.bytes.rate[{#IF.NAME}]' + units: Bps + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The rate of bytes transmitted out of the specified interface. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: b19203459ac842e2b96eee75b6754eac + name: 'Interface [{#IF.NAME}]: Outgoing packet drops' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.11.{#SNMPINDEX}]' + key: 'bigip.net.out.drops[{#IF.NAME}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of packets aged out or with excessive transmission + delays due to multiple deferrals on the specified interface. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: 1496879429724a6daee4b97fa162419b + name: 'Interface [{#IF.NAME}]: Outgoing packet error' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.9.{#SNMPINDEX}]' + key: 'bigip.net.out.error[{#IF.NAME}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The number of excessive collisions, incremented for each + frame that experienced 16 collisions during transmission and + was aborted on the specified interface. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: 8ecd6a8dd5fa43c8b87a94119aac90b9 + name: 'Interface [{#IF.NAME}]: Outgoing multicast packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.7.{#SNMPINDEX}]' + key: 'bigip.net.out.multicast.rate[{#IF.NAME}]' + units: pps + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The rate of multicast packets transmitted out of the specified interface. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: fd4416466734469b85eec03c8e69185c + name: 'Interface [{#IF.NAME}]: Outgoing packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.4.{#SNMPINDEX}]' + key: 'bigip.net.out.pkts.rate[{#IF.NAME}]' + units: pps + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The rate of packets transmitted out of the specified interface. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: a4cb060cc3854aab9715c85174cc4933 + name: 'Interface [{#IF.NAME}]: Outgoing QnQ packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.14.{#SNMPINDEX}]' + key: 'bigip.net.out.qq.rate[{#IF.NAME}]' + units: pps + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The rate of double tagged packets transmitted out of the specified interface. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + - uuid: 93a1107cb0ea44078f2ac04a7dc9e941 + name: 'Interface [{#IF.NAME}]: Pause state' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.1.2.4.4.3.1.15.{#SNMPINDEX}]' + key: 'bigip.net.pause[{#IF.NAME}]' + description: | + MIB: F5-BIGIP-SYSTEM-MIB + The pause state of the specified interface. + none - no pause; + txrx - pause all data flow; + tx - pause outgoing data flow; + rx - pause incoming data flow. + valuemap: + name: 'Pause state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: 'port-{#IF.NAME}' + trigger_prototypes: + - uuid: 2d9214768b684ba880703d738ac52099 + expression: 'last(/F5 Big-IP by SNMP/bigip.net.in.error[{#IF.NAME}])>last(/F5 Big-IP by SNMP/bigip.net.in.error[{#IF.NAME}],#2) or last(/F5 Big-IP by SNMP/bigip.net.out.error[{#IF.NAME}])>last(/F5 Big-IP by SNMP/bigip.net.out.error[{#IF.NAME}],#2)' + name: 'F5 Big-IP: There are errors on the network interface' + event_name: 'F5 Big-IP: There are errors on the network interface ({#IF.NAME})' + priority: AVERAGE + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: f784ab335a314bd7b328c0fe5053f5f7 + name: 'F5 BIG-IP: Interface [{#IF.NAME}]' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.net.in.pkts.rate[{#IF.NAME}]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.net.in.bytes.rate[{#IF.NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.net.out.pkts.rate[{#IF.NAME}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.net.out.bytes.rate[{#IF.NAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.net.in.multicast.rate[{#IF.NAME}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.net.out.multicast.rate[{#IF.NAME}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 4e93191505d148e98b915ed38a681a03 + name: 'Node discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#NODE.NAME},1.3.6.1.4.1.3375.2.2.4.2.3.1.20]' + key: bigip.node.discovery + delay: 1h + description: 'A table containing statistic information of node addresses.' + item_prototypes: + - uuid: 6292623c4482485f9f866be8b7d39367 + name: 'Node [{#NODE.NAME}]: Current connections' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.4.2.3.1.9.{#SNMPINDEX}]' + key: 'bigip.node.net.conn[{#NODE.NAME}]' + delay: 5m + description: | + MIB: F5-BIGIP-LOCAL-MIB + The current connections from server-side to the specified node address. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 9530c81b45c24ddda2440e2589964d28 + name: 'Node [{#NODE.NAME}]: Incoming traffic, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.4.2.3.1.4.{#SNMPINDEX}]' + key: 'bigip.node.net.in.bytes.rate[{#NODE.NAME}]' + delay: 5m + units: Bps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of bytes received by the specified node address from server-side. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 8e7ae014ea73489b81de960acad301b8 + name: 'Node [{#NODE.NAME}]: Incoming packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.4.2.3.1.3.{#SNMPINDEX}]' + key: 'bigip.node.net.in.pkts.rate[{#NODE.NAME}]' + delay: 5m + units: pps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of packets received by the specified node address from server-side. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 88ec665ad6eb43e88a3625b50e130e82 + name: 'Node [{#NODE.NAME}]: Outgoing traffic, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.4.2.3.1.6.{#SNMPINDEX}]' + key: 'bigip.node.net.out.bytes.rate[{#NODE.NAME}]' + delay: 5m + units: Bps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of bytes sent to server-side from the specified node address. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 077bb28cd8a1429fb564786e7d150dbc + name: 'Node [{#NODE.NAME}]: Outgoing packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.4.2.3.1.5.{#SNMPINDEX}]' + key: 'bigip.node.net.out.pkts.rate[{#NODE.NAME}]' + delay: 5m + units: pps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of packets sent to server-side from the specified node address. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 5a0278f4cfd04611895207d9b7f3b13c + name: 'Node [{#NODE.NAME}]: Current sessions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.4.2.3.1.21.{#SNMPINDEX}]' + key: 'bigip.node.net.sessions[{#NODE.NAME}]' + delay: 5m + description: | + MIB: F5-BIGIP-LOCAL-MIB + The number of current sessions going through the specified node address. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 15129cb2af84466d8c58641854ad0b54 + name: 'Node [{#NODE.NAME}]: Connections hit a rate limit' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.4.2.3.1.22.{#SNMPINDEX}]' + key: 'bigip.node.overlimit[{#NODE.NAME}]' + delay: 5m + description: | + MIB: F5-BIGIP-LOCAL-MIB + The last recorded value for the number of connections to the node address when connections hit a rate limit; + this calculation is only maintained if rate limiting is configured for the node. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 6be4c0fd41d6459db5acd6c33461c7f9 + name: 'Node [{#NODE.NAME}]: Duration of exceeding rate limit' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.4.2.3.1.23.{#SNMPINDEX}]' + key: 'bigip.node.overtime[{#NODE.NAME}]' + delay: 5m + units: s + description: | + MIB: F5-BIGIP-LOCAL-MIB + Duration of time in seconds the specified node address has exceeded the + configured connection rate limit. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + graph_prototypes: + - uuid: 920bf6830fae4d168a3d9fc772a8f25c + name: 'F5 BIG-IP: Node [{#NODE.NAME}] network ratio' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.node.net.in.pkts.rate[{#NODE.NAME}]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.node.net.in.bytes.rate[{#NODE.NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.node.net.out.pkts.rate[{#NODE.NAME}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.node.net.out.bytes.rate[{#NODE.NAME}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 45e61df153b94d4bad42503e9221e44c + name: 'Pool discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#POOL.NAME},1.3.6.1.4.1.3375.2.2.5.2.3.1.1]' + key: bigip.pool.discovery + delay: 1h + description: 'A table containing statistic information of pools.' + item_prototypes: + - uuid: a2668f5ffc604a61953cb87f0afe4e6f + name: 'Pool [{#POOL.NAME}]: Status available' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.5.5.2.1.2.{#SNMPINDEX}]' + key: 'bigip.pool.available[{#POOL.NAME}]' + delay: 5m + description: | + MIB: F5-BIGIP-LOCAL-MIB + none(0), + green(1), + tyellow(2), + tred(3), + tblue(4), + tgrey(5) + valuemap: + name: 'SNMP ltmVsStatusAvailState' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: pool + - tag: pool + value: '{#POOL.NAME}' + trigger_prototypes: + - uuid: 0b6e708075684cbab0d8c598f3467e0c + expression: 'count(/F5 Big-IP by SNMP/bigip.pool.available[{#POOL.NAME}],120m,"ne","1")>20' + name: 'F5 Big-IP: Pool {#POOL.NAME} is not available in some capacity: {ITEM.VALUE1}' + opdata: '{ITEM.LASTVALUE}' + priority: AVERAGE + dependencies: + - name: 'F5 Big-IP: Pool {#POOL.NAME} is not enabled in some capacity: {ITEM.VALUE1}' + expression: 'count(/F5 Big-IP by SNMP/bigip.pool.enabled[{#POOL.NAME}],120m,"ne","1")>4' + tags: + - tag: scope + value: capacity + - uuid: 391d21a1a44d49d4beb219b726e0f55e + name: 'Pool [{#POOL.NAME}]: Status enabled' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.5.5.2.1.3.{#SNMPINDEX}]' + key: 'bigip.pool.enabled[{#POOL.NAME}]' + delay: 5m + description: | + MIB: F5-BIGIP-LOCAL-MIB + The activity status of the specified pool, as specified by the user. + none(0), + enabled(1), + disabled(2), + disabledbyparent(3) + valuemap: + name: 'SNMP ltmPoolStatusEnabledState' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: pool + - tag: pool + value: '{#POOL.NAME}' + trigger_prototypes: + - uuid: 4d0431e2c4934f37be7302ffedd69e8a + expression: 'count(/F5 Big-IP by SNMP/bigip.pool.enabled[{#POOL.NAME}],120m,"ne","1")>4' + name: 'F5 Big-IP: Pool {#POOL.NAME} is not enabled in some capacity: {ITEM.VALUE1}' + opdata: '{ITEM.LASTVALUE}' + priority: AVERAGE + tags: + - tag: scope + value: capacity + - uuid: 0c53c6f3ab9e49b688a8e97252471ded + name: 'Pool [{#POOL.NAME}]: Current connections' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.5.2.3.1.8.{#SNMPINDEX}]' + key: 'bigip.pool.net.conn[{#POOL.NAME}]' + delay: 5m + description: | + MIB: F5-BIGIP-LOCAL-MIB + The current connections from server-side to the specified pool. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: pool + - tag: pool + value: '{#POOL.NAME}' + - uuid: e6daed4f364c463dba542948b2272296 + name: 'Pool [{#POOL.NAME}]: Incoming traffic, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.5.2.3.1.3.{#SNMPINDEX}]' + key: 'bigip.pool.net.in.bytes.rate[{#POOL.NAME}]' + delay: 5m + units: Bps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of bytes received by the specified pool from server-side. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: pool + - tag: pool + value: '{#POOL.NAME}' + - uuid: b65e8d23fa3b4129936f0f3d7034c8a4 + name: 'Pool [{#POOL.NAME}]: Incoming packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.5.2.3.1.2.{#SNMPINDEX}]' + key: 'bigip.pool.net.in.pkts.rate[{#POOL.NAME}]' + delay: 5m + units: pps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of packets received by the specified pool from server-side. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: pool + - tag: pool + value: '{#POOL.NAME}' + - uuid: 6c58f56d63e34166b02ad7c31271e2bb + name: 'Pool [{#POOL.NAME}]: Outgoing traffic, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.5.2.3.1.5.{#SNMPINDEX}]' + key: 'bigip.pool.net.out.bytes.rate[{#POOL.NAME}]' + delay: 5m + units: Bps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of bytes sent to server-side from the specified pool. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: pool + - tag: pool + value: '{#POOL.NAME}' + - uuid: e432732fc4dd478892c6d4bab3fbd11c + name: 'Pool [{#POOL.NAME}]: Outgoing packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.5.2.3.1.4.{#SNMPINDEX}]' + key: 'bigip.pool.net.out.pkts.rate[{#POOL.NAME}]' + delay: 5m + units: pps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of packets sent to server-side from the specified pool. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: pool + - tag: pool + value: '{#POOL.NAME}' + - uuid: 068028e704f049b4b3daae524fe16d27 + name: 'Pool [{#POOL.NAME}]: Current sessions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.5.2.3.1.31.{#SNMPINDEX}]' + key: 'bigip.pool.net.sessions[{#POOL.NAME}]' + delay: 5m + description: | + MIB: F5-BIGIP-LOCAL-MIB + The number of current sessions going through the specified pool. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: pool + - tag: pool + value: '{#POOL.NAME}' + - uuid: 6bacc7e284f14aa7804f69c8b2f744d4 + name: 'Pool [{#POOL.NAME}]: Age of the oldest queue entry' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.5.2.3.1.19.{#SNMPINDEX}]' + key: 'bigip.pool.queue.age[{#POOL.NAME}]' + delay: 5m + units: s + description: | + MIB: F5-BIGIP-LOCAL-MIB + Age of the oldest queue entry, max. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: pool + - tag: pool + value: '{#POOL.NAME}' + - uuid: 44ad195489cd46be87ae8cc029bcb480 + name: 'Pool [{#POOL.NAME}]: Queue' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.5.2.3.1.18.{#SNMPINDEX}]' + key: 'bigip.pool.queue[{#POOL.NAME}]' + delay: 5m + description: | + MIB: F5-BIGIP-LOCAL-MIB + Number of connections currently in queue, sum. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: pool + - tag: pool + value: '{#POOL.NAME}' + graph_prototypes: + - uuid: a077af6d72a447a99a35f2daa8b0205e + name: 'F5 BIG-IP: Pool [{#POOL.NAME}] network ratio' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.pool.net.in.pkts.rate[{#POOL.NAME}]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.pool.net.in.bytes.rate[{#POOL.NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.pool.net.out.pkts.rate[{#POOL.NAME}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.pool.net.out.bytes.rate[{#POOL.NAME}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 6bb0a20248ba473b91a9b4a4261229a7 + name: 'Virtual server discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#VSERVER.NAME},1.3.6.1.4.1.3375.2.2.10.2.3.1.1]' + key: bigip.virtual_server.discovery + delay: 1h + description: 'A table containing information of virtual servers.' + item_prototypes: + - uuid: 28ecf3f03cad44bda0e6243bb02e2ae4 + name: 'Virtual server [{#VSERVER.NAME}]: Current connections' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.10.2.3.1.12.{#SNMPINDEX}]' + key: 'bigip.vserver.net.conn[{#VSERVER.NAME}]' + delay: 5m + description: | + MIB: F5-BIGIP-LOCAL-MIB + The current connections from client-side to the specified virtual server. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: virtual-server + - tag: virtual-server + value: '{#VSERVER.NAME}' + - uuid: 206503cc777a4156a29f0687d8fb5a7c + name: 'Virtual server [{#VSERVER.NAME}]: Incoming traffic, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.10.2.3.1.7.{#SNMPINDEX}]' + key: 'bigip.vserver.net.in.bytes.rate[{#VSERVER.NAME}]' + delay: 5m + units: Bps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of bytes received by the specified virtual server from client-side. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: virtual-server + - tag: virtual-server + value: '{#VSERVER.NAME}' + - uuid: d8a36a30d99c44ca9b7172a5b66e74d6 + name: 'Virtual server [{#VSERVER.NAME}]: Incoming packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.10.2.3.1.6.{#SNMPINDEX}]' + key: 'bigip.vserver.net.in.pkts.rate[{#VSERVER.NAME}]' + delay: 5m + units: pps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of packets received by the specified virtual server from client-side. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: virtual-server + - tag: virtual-server + value: '{#VSERVER.NAME}' + - uuid: efeb720fb7e44d068572d59eff947bc6 + name: 'Virtual server [{#VSERVER.NAME}]: Outgoing traffic, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.10.2.3.1.9.{#SNMPINDEX}]' + key: 'bigip.vserver.net.out.bytes.rate[{#VSERVER.NAME}]' + delay: 5m + units: Bps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of bytes sent to client-side from the specified virtual server. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: virtual-server + - tag: virtual-server + value: '{#VSERVER.NAME}' + - uuid: bd588ea58eb4420085691046fa0a1e3b + name: 'Virtual server [{#VSERVER.NAME}]: Outgoing packet, rate' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.10.2.3.1.8.{#SNMPINDEX}]' + key: 'bigip.vserver.net.out.pkts.rate[{#VSERVER.NAME}]' + delay: 5m + units: pps + description: | + MIB: F5-BIGIP-LOCAL-MIB + The rate of packets sent to client-side from the specified virtual server. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: virtual-server + - tag: virtual-server + value: '{#VSERVER.NAME}' + - uuid: 01352ac9b6c24f13a6ceebac666026cb + name: 'Virtual server [{#VSERVER.NAME}]: Connections hit a rate limit' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.10.2.3.1.34.{#SNMPINDEX}]' + key: 'bigip.vserver.overlimit[{#VSERVER.NAME}]' + delay: 5m + description: | + MIB: F5-BIGIP-LOCAL-MIB + The last recorded value for the number of connections to the virtual server when connections hit a rate limit; + this calculation is only maintained if rate limiting is configured for the service. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: virtual-server + - tag: virtual-server + value: '{#VSERVER.NAME}' + - uuid: baa7718513a54ae4a7bd669f9b652521 + name: 'Virtual server [{#VSERVER.NAME}]: Duration of exceeding rate limit' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.10.2.3.1.35.{#SNMPINDEX}]' + key: 'bigip.vserver.overtime[{#VSERVER.NAME}]' + delay: 5m + units: s + description: | + MIB: F5-BIGIP-LOCAL-MIB + Duration of time in seconds the specified virtual server has exceeded the configured connection rate limit. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: virtual-server + - tag: virtual-server + value: '{#VSERVER.NAME}' + - uuid: 3e97e22368b84674a9720c3f076503c5 + name: 'Virtual server [{#VSERVER.NAME}]: Usage ratio, avg 1m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.10.2.3.1.32.{#SNMPINDEX}]' + key: 'bigip.vserver.usage.1m[{#VSERVER.NAME}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-LOCAL-MIB + The percentage of time Virtual Server was busy over the last 1 minute. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: virtual-server + - tag: virtual-server + value: '{#VSERVER.NAME}' + - uuid: 2c8c5e0e53e34e4ebc84ed9e5a8c4bd9 + name: 'Virtual server [{#VSERVER.NAME}]: Usage ratio, avg 5m' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.10.2.3.1.33.{#SNMPINDEX}]' + key: 'bigip.vserver.usage.5m[{#VSERVER.NAME}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-LOCAL-MIB + The percentage of time Virtual Server was busy over the last 5 minutes. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: virtual-server + - tag: virtual-server + value: '{#VSERVER.NAME}' + - uuid: d6079ebaebbb40d09386e2b1abcbe987 + name: 'Virtual server [{#VSERVER.NAME}]: Usage ratio, avg 5s' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3375.2.2.10.2.3.1.31.{#SNMPINDEX}]' + key: 'bigip.vserver.usage.5s[{#VSERVER.NAME}]' + delay: 5m + units: '%' + description: | + MIB: F5-BIGIP-LOCAL-MIB + The percentage of time Virtual Server was busy over the last 5 seconds. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: component + value: virtual-server + - tag: virtual-server + value: '{#VSERVER.NAME}' + graph_prototypes: + - uuid: b49ee8a27f634c238317663d7cc9d426 + name: 'F5 BIG-IP: Virtual server [{#VSERVER.NAME}] network' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.vserver.net.in.pkts.rate[{#VSERVER.NAME}]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.vserver.net.in.bytes.rate[{#VSERVER.NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.vserver.net.out.pkts.rate[{#VSERVER.NAME}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.vserver.net.out.bytes.rate[{#VSERVER.NAME}]' + - uuid: 17d18d4117f943d18873972584f3374e + name: 'F5 BIG-IP: Virtual server [{#VSERVER.NAME}] usage ratio' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.vserver.usage.5s[{#VSERVER.NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.vserver.usage.1m[{#VSERVER.NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'F5 Big-IP by SNMP' + key: 'bigip.vserver.usage.5m[{#VSERVER.NAME}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: network + - tag: target + value: big-ip + - tag: target + value: f5 + macros: + - macro: '{$BIGIP.CERT.MIN}' + value: '7' + description: 'Minimum number of days before certificate expiration.' + - macro: '{$BIGIP.CPU.UTIL.WARN.MAX}' + value: '85' + description: 'The warning threshold of the CPU utilization expressed in %.' + - macro: '{$BIGIP.CPU.UTIL.WARN.MIN}' + value: '65' + description: 'The recovery threshold of the CPU utilization expressed in %.' + - macro: '{$BIGIP.FS.FREE.WARN.MAX}' + value: '20' + description: 'The recovery threshold of the file system utilization in %.' + - macro: '{$BIGIP.FS.FREE.WARN.MIN}' + value: '10' + description: 'The warning threshold of the file system utilization in %.' + - macro: '{$BIGIP.LLD.FILTER.PART.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable mount point names.' + - macro: '{$BIGIP.LLD.FILTER.PART.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by mount point names.' + - macro: '{$BIGIP.LLD.OVERRIDE.PART.FILTER_LOW_SPACE_TRIGGER}' + value: '^(?:/usr|/opt/\.sdm/(?:usr|lib|lib64))$' + description: 'Partitions that low free space trigger should ignore.' + - macro: '{$BIGIP.MEMORY.UTIL.WARN.MAX}' + value: '85' + description: 'The warning threshold of the memory utilization in %.' + - macro: '{$BIGIP.MEMORY.UTIL.WARN.MIN}' + value: '65' + description: 'The recovery threshold of the memory utilization in %.' + - macro: '{$BIGIP.SWAP.UTIL.WARN.MAX}' + value: '85' + description: 'The warning threshold of the swap utilization in %.' + - macro: '{$BIGIP.SWAP.UTIL.WARN.MIN}' + value: '65' + description: 'The recovery threshold of the swap utilization in %.' + - macro: '{$BIGIP.TEMP.HIGH}' + value: '50' + description: 'The critical threshold of the temperature in °C' + - macro: '{$BIGIP.TEMP.WARN}' + value: '45' + description: 'The warning threshold of the temperature in °C' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + dashboards: + - uuid: 43de1fe7767e4cbaaedef55aeaf9f2ba + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'F5 Big-IP by SNMP' + name: 'F5 BIG-IP: Interface [{#IF.NAME}]' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: 849febb31f524e9296afc5ec6ffb2fe3 + name: 'Chassis status' + mappings: + - value: '0' + newvalue: bad + - value: '1' + newvalue: good + - value: '2' + newvalue: notpresent + - uuid: ed7e1317987b433e9aa7168db3824c94 + name: 'Module provision level' + mappings: + - value: '1' + newvalue: none + - value: '2' + newvalue: minimum + - value: '3' + newvalue: nominal + - value: '4' + newvalue: dedicated + - value: '5' + newvalue: custom + - uuid: 6e590fa7db7441d5a4b145204ee254bb + name: 'Pause state' + mappings: + - value: '0' + newvalue: none + - value: '1' + newvalue: txrx + - value: '2' + newvalue: tx + - value: '3' + newvalue: rx + - uuid: b615a47192fc48f4b2cedb205c33f7d0 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 74bcf04a70da49f89f04a20a9830fe13 + name: 'SNMP ltmPoolStatusEnabledState' + mappings: + - value: '0' + newvalue: none + - value: '1' + newvalue: enabled + - value: '2' + newvalue: disabled + - value: '3' + newvalue: disabledbyparent + - uuid: 3a8776175b1f4cd7aa62f0182c7e3ed7 + name: 'SNMP ltmVsStatusAvailState' + mappings: + - value: '0' + newvalue: none + - value: '1' + newvalue: green + - value: '2' + newvalue: yellow + - value: '3' + newvalue: red + - value: '4' + newvalue: blue + - value: '5' + newvalue: gray + - uuid: 6f96920248994bca92eb8d4394346027 + name: 'SNMP sysCmFailoverStatusId' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: offline + - value: '2' + newvalue: forcedOffline + - value: '3' + newvalue: standby + - value: '4' + newvalue: active + - uuid: 1a42ed91b734453ab29a4c1f1feaca89 + name: 'SNMP sysCmSyncStatusId' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: syncing + - value: '2' + newvalue: needManualSync + - value: '3' + newvalue: inSync + - value: '4' + newvalue: syncFailed + - value: '5' + newvalue: syncDisconnected + - value: '6' + newvalue: standalone + - value: '7' + newvalue: awaitingInitialSync + - value: '8' + newvalue: incompatibleVersion + - value: '9' + newvalue: partialSync + graphs: + - uuid: 9530ea135466433cb25f73ed78960960 + name: 'F5 BIG-IP: TCP/UDP statistics' + graph_items: + - color: 199C0D + item: + host: 'F5 Big-IP by SNMP' + key: bigip.tcp.open + - sortorder: '1' + color: F63100 + item: + host: 'F5 Big-IP by SNMP' + key: bigip.udp.open + - sortorder: '2' + color: 00611C + item: + host: 'F5 Big-IP by SNMP' + key: bigip.tcp.close_wait + - sortorder: '3' + color: F7941D + item: + host: 'F5 Big-IP by SNMP' + key: bigip.tcp.fin1_wait + - sortorder: '4' + color: FC6EA3 + item: + host: 'F5 Big-IP by SNMP' + key: bigip.tcp.fin2_wait + - sortorder: '5' + color: 6C59DC + item: + host: 'F5 Big-IP by SNMP' + key: bigip.tcp.time_wait diff --git a/FortiGate_by_HTTP.yaml b/FortiGate_by_HTTP.yaml new file mode 100644 index 0000000..9da804f --- /dev/null +++ b/FortiGate_by_HTTP.yaml @@ -0,0 +1,4432 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: e56c9577c225476eb6d8f1c2f5dc90a5 + template: 'FortiGate by HTTP' + name: 'FortiGate by HTTP' + description: | + The template for monitoring FortiGate Next Generation Firewall by HTTP. + + 1. On the FortiGate GUI, select System > Admin Profiles > Create New. + 2. Enter a profile name (ex. zabbix_ro) and enable all the Read permissions. Please note the profile name, it will be used a bit later. + 3. Go to System > Administrators > Create New > REST API Admin. + 4. Enter the API-user's name and select the profile name you created in step 2. + 5. The trusted host can be specified to ensure that only Zabbix server can reach the FortiGate. + 6. Click OK and an API token will be generated. Make a note of the API token as it's only shown once and cannot be retrieved. + 7. Put the API token into {$FGATE.API.TOKEN} macro. + 8. Set your FortiGate GUI IP/FQDN as {$FGATE.API.FQDN} macro value. + 9. If FortiGate GUI uses HTTPS, put "https" value into {$FGATE.SCHEME} macro and "443" into {$FGATE.API.PORT} macro. + 10. If FortiGate GUI port differs from the standard one, specify it in {$FGATE.API.PORT} macro. + + NOTE: Starting from template version '7.0-2', the API token is used in the request header. For older template versions (where the API token is passed in the URL query parameter), when using FortiGate v7.4.5+, you must enable the following global setting: + https://docs.fortinet.com/document/fortigate/7.6.4/administration-guide/940602/using-apis + + For added security, it is strongly recommended to use the latest template version, which passes the API token in the request header instead of the URL parameter. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: e74af8e347814085a7d01142c9aae447 + name: 'API availability status' + type: DEPENDENT + key: fgate.api.status + delay: '0' + description: 'Checking API availability by response.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.build + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: IN_RANGE + parameters: + - '' + - '0' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + master_item: + key: fgate.system.get_data + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8b8c03f1497f4f18a417d103267d2947 + expression: 'last(/FortiGate by HTTP/fgate.api.status)=0' + name: 'FortiGate: Unexpected response from API' + priority: AVERAGE + description: 'Received an unexpected response from API. It may be unavailable.' + dependencies: + - name: 'FortiGate: Port {$FGATE.API.PORT} is unavailable' + expression: 'last(/FortiGate by HTTP/net.tcp.service["{$FGATE.SCHEME}","{$FGATE.API.FQDN}","{$FGATE.API.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: 3a54a2ef2ad94f0d8df190356ca0ac9b + name: 'Number of CPUs' + type: DEPENDENT + key: fgate.cpu.num + delay: '0' + description: 'Number of processors according to the current license.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vm.cpu_used + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: fgate.service.get_data + tags: + - tag: component + value: cpu + - uuid: 4c83427d66764255be934ea7e2c6084a + name: 'CPU utilization' + type: DEPENDENT + key: fgate.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization, expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.cpu + master_item: + key: fgate.resources.get_data + tags: + - tag: component + value: cpu + triggers: + - uuid: 4698d35fa5e242ef828ac4e3dba5bc09 + expression: 'min(/FortiGate by HTTP/fgate.cpu.util,5m)>{$CPU.UTIL.WARN}' + name: 'FortiGate: CPU utilization is high' + event_name: 'FortiGate: High CPU utilization (over {$CPU.UTIL.WARN}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is high.' + dependencies: + - name: 'FortiGate: CPU utilization is too high' + expression: 'min(/FortiGate by HTTP/fgate.cpu.util,5m)>{$CPU.UTIL.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 170087cd8ebf4fc29093e5c1dbd86fea + expression: 'min(/FortiGate by HTTP/fgate.cpu.util,5m)>{$CPU.UTIL.CRIT}' + name: 'FortiGate: CPU utilization is too high' + event_name: 'FortiGate: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: c29e3336f92f448587e7492c55db8e7c + name: 'Device firmware version' + type: DEPENDENT + key: fgate.device.firmware + delay: '0' + value_type: CHAR + trends: '0' + description: 'Current version of the device firmware.' + preprocessing: + - type: JSONPATH + parameters: + - $.results.current + - type: JAVASCRIPT + parameters: + - | + var firmware = JSON.parse(value); + return firmware.name + ' ' + firmware.version + ' build' + String(firmware.build); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: fgate.firmware.get_data + tags: + - tag: component + value: system + - uuid: 75084a08e92042e5869b57e34506849d + name: 'Available firmware versions' + type: DEPENDENT + key: fgate.device.firmwares_avail + delay: '0' + description: 'Number of available firmware versions to download.' + preprocessing: + - type: JSONPATH + parameters: + - $.results.available.length() + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: fgate.firmware.get_data + tags: + - tag: component + value: system + triggers: + - uuid: da4a8352ffb94c15a62523a0b97460c4 + expression: '{$FIRMWARE.UPDATES.CONTROL}=1 and last(/FortiGate by HTTP/fgate.device.firmwares_avail)>0' + name: 'FortiGate: New available firmware found' + priority: INFO + description: | + New available firmware versions found to download. + + This trigger expression works as follows: + 1. It can be triggered if there are one or more available firmware versions. + 2. `{ $FIRMWARE.UPDATES.CONTROL }=1` - a user can redefine context macro to value - 0. That marks this notification as not important. No new trigger will be fired if new firmware is found. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d42b5e392a6a468a84b009ff02f77b18 + name: 'Device model name' + type: DEPENDENT + key: fgate.device.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model name of the device.' + preprocessing: + - type: JSONPATH + parameters: + - $.results + - type: JAVASCRIPT + parameters: + - | + var info = JSON.parse(value); + return info.model_name + ' ' + info.model_number + ' (' + info.model + ')'; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: fgate.system.get_data + tags: + - tag: component + value: system + - uuid: 80bafe55b05f416ebcdde86b58bda1f4 + name: 'Device serial number' + type: DEPENDENT + key: fgate.device.serialnumber + delay: '0' + value_type: CHAR + trends: '0' + description: 'The device serial number.' + preprocessing: + - type: JSONPATH + parameters: + - $.serial + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: fgate.system.get_data + tags: + - tag: component + value: system + triggers: + - uuid: 1426177b905e442fb2cdd963e8e8bba1 + expression: | + last(/FortiGate by HTTP/fgate.device.serialnumber,#1)<>last(/FortiGate by HTTP/fgate.device.serialnumber,#2) and + length(last(/FortiGate by HTTP/fgate.device.serialnumber))>0 + name: 'FortiGate: Device has been replaced' + event_name: 'FortiGate: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 07d3dd60460340929288fd21211aa2e0 + name: 'Current VDOM' + type: DEPENDENT + key: fgate.device.vdom + delay: '0' + value_type: CHAR + trends: '0' + description: 'Name of the current Virtual Domain.' + preprocessing: + - type: JSONPATH + parameters: + - $.vdom + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: fgate.system.get_data + tags: + - tag: component + value: system + - uuid: a6729f9b5da54e67951963a869fab31c + name: 'Device firmware info item errors' + type: DEPENDENT + key: fgate.firmware.data_errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of the device firmware info.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: fgate.firmware.get_data + tags: + - tag: component + value: error + triggers: + - uuid: c4ab39fa9c104eaa8f9c5da529e416d8 + expression: 'length(last(/FortiGate by HTTP/fgate.firmware.data_errors))>0 and length(last(/FortiGate by HTTP/fgate.firmware.data_errors,#1:now-1m))>0 and nodata(/FortiGate by HTTP/fgate.firmware.data_errors,2m)=0' + name: 'FortiGate: There are errors in the ''Get firmware info'' metric' + priority: WARNING + dependencies: + - name: 'FortiGate: Unexpected response from API' + expression: 'last(/FortiGate by HTTP/fgate.api.status)=0' + tags: + - tag: scope + value: availability + - uuid: bc2ac899ea284703a6a8753ac5abc7c6 + name: 'Get firmware info' + type: HTTP_AGENT + key: fgate.firmware.get_data + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering device firmware info from FortiGate API.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"error":"Not supported value received"}' + timeout: '{$FGATE.DATA.TIMEOUT}' + url: '{$FGATE.SCHEME}://{$FGATE.API.FQDN}:{$FGATE.API.PORT}/api/v2/monitor/system/firmware' + http_proxy: '{$FGATE.HTTP.PROXY}' + headers: + - name: Accept + value: application/json + - name: Authorization + value: 'Bearer {$FGATE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 3d93f75ee3084a5487814c2175028229 + name: 'Free disk space' + type: DEPENDENT + key: fgate.fs.free + delay: '0' + units: B + description: 'The free space of the current disk, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.disk_free + master_item: + key: fgate.resources.get_data + tags: + - tag: component + value: storage + - uuid: 3e595bf084f342ecaf94af97c2751c26 + name: 'Total disk space' + type: DEPENDENT + key: fgate.fs.total + delay: '0' + units: B + description: 'The total space of the current disk, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.disk_total + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: fgate.resources.get_data + tags: + - tag: component + value: storage + - uuid: 6ddf5a6fc9cd4b7ca6522f8e86a7aac8 + name: 'Used disk space' + type: DEPENDENT + key: fgate.fs.used + delay: '0' + units: B + description: 'The used space of the current disk, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.disk_used + master_item: + key: fgate.resources.get_data + tags: + - tag: component + value: storage + - uuid: 847069b5ceaa417cbd84b1b0d5184771 + name: 'Disk utilization' + type: DEPENDENT + key: fgate.fs.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'Disk utilization, expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.disk + master_item: + key: fgate.resources.get_data + tags: + - tag: component + value: storage + triggers: + - uuid: 649a5e3ba39e4e799835cdba8bba8d34 + expression: '(100-last(/FortiGate by HTTP/fgate.fs.util))<{$DISK.FREE.WARN}' + name: 'FortiGate: Free disk space is low' + event_name: 'FortiGate: Free disk space is less than {$DISK.FREE.WARN}%' + priority: WARNING + description: 'Left disk space is not enough.' + dependencies: + - name: 'FortiGate: Free disk space is too low' + expression: '(100-last(/FortiGate by HTTP/fgate.fs.util))<{$DISK.FREE.CRIT}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 33c78beb669142baa66befba2456d810 + expression: '(100-last(/FortiGate by HTTP/fgate.fs.util))<{$DISK.FREE.CRIT}' + name: 'FortiGate: Free disk space is too low' + event_name: 'FortiGate: Free disk space is less than {$DISK.FREE.CRIT}%' + priority: HIGH + description: 'Left disk space is too low.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 26441b122d1148b6ba1045fcdfd092ad + name: 'Firewall data item errors' + type: DEPENDENT + key: fgate.fwp.data_errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of firewall policies.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: fgate.fwp.get_data + tags: + - tag: component + value: error + triggers: + - uuid: a6f52f84c66c4d9b9831be03afc725b5 + expression: 'length(last(/FortiGate by HTTP/fgate.fwp.data_errors))>0 and length(last(/FortiGate by HTTP/fgate.fwp.data_errors,#1:now-1m))>0 and nodata(/FortiGate by HTTP/fgate.fwp.data_errors,2m)=0' + name: 'FortiGate: There are errors in the ''Get firewall policies data'' metric' + priority: WARNING + dependencies: + - name: 'FortiGate: Unexpected response from API' + expression: 'last(/FortiGate by HTTP/fgate.api.status)=0' + tags: + - tag: scope + value: availability + - uuid: a7f8a7da176040ab8a43618e14944e42 + name: 'Get firewall data' + type: SCRIPT + key: fgate.fwp.get_data + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + result = { "data": {}, "error": "" }, + api_url = "", + policies = {}, + error_msg = ""; + + function getHttpData(url) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + params.token); + response = request.get(url); + Zabbix.log(4, '[ FortiGate ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from FortiGate API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + if ((typeof response.status !== 'undefined' && response.status != 'success') || typeof response.results === 'undefined') { + var uri = '/' + response.path + '/' + response.name + ((typeof response.action !== 'undefined') ? '?action=' + response.action : ""); + throw 'Failed to parse response received from ' + uri + '. Check debug log for more information.'; + } + + return response; + }; + + try { + ['scheme', 'api.token', 'api.fqdn', 'api.port'].forEach(function (field) { + var macro = '{$FGATE.' + field.toUpperCase() + '}'; + var key = field.split('.').pop(); + if (params[key] === macro || params[key] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[key] === 'undefined') { + throw 'Please set "' + key + '" script input parameter to ' + macro + ' macro value.'; + } + }); + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$FGATE.HTTP.PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + api_url = tls.checkURL(params.scheme + '://' + params.fqdn + ':' + params.port); + + var firewall_data = getHttpData( + api_url + '/api/v2/monitor/firewall/policy' + ); + + var firewall_list = getHttpData( + api_url + '/api/v2/cmdb/firewall/policy' + ); + + firewall_list.results.forEach(function (v) { + var item = {}; + ['q_origin_key', 'status', 'name', 'uuid', 'action', 'ip-version-type', 'label'].forEach(function (k) { + item[k] = v[k]; + }); + policies[v.policyid] = item; + }); + + result.data = firewall_data.results.map(function (v) { + if (typeof v.policyid !== 'undefined' && typeof policies[String(v.policyid)] !== 'undefined') { + Object.assign(v, policies[String(v.policyid)]); + } + return v; + }).filter(function (v) { + if (typeof v.name !== 'undefined') { + return v; + } + }); + } catch (error) { + error_msg = error.toString(); + error_msg += error_msg.endsWith('.') ? '' : '.'; + Zabbix.log(3, '[ FortiGate ] ERROR: ' + error_msg); + }; + + result.error = error_msg; + + return JSON.stringify(result); + description: 'Item for gathering firewall policies info from FortiGate API.' + timeout: '{$FGATE.DATA.TIMEOUT}' + parameters: + - name: fqdn + value: '{$FGATE.API.FQDN}' + - name: http_proxy + value: '{$FGATE.HTTP.PROXY}' + - name: port + value: '{$FGATE.API.PORT}' + - name: scheme + value: '{$FGATE.SCHEME}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"FortiGate"}' + - name: token + value: '{$FGATE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 529076e8494e40f7b823f981e7159fd0 + name: 'Total memory' + type: DEPENDENT + key: fgate.memory.total + delay: '0' + units: B + description: 'Total memory, expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vm.mem_used + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: fgate.service.get_data + tags: + - tag: component + value: memory + - uuid: 51f4b31cc3d045a983843d9a8e534668 + name: 'Memory utilization' + type: DEPENDENT + key: fgate.memory.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization, expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.mem + master_item: + key: fgate.resources.get_data + tags: + - tag: component + value: memory + triggers: + - uuid: 0f0b467715bb420a80cae7a7df50177d + expression: 'min(/FortiGate by HTTP/fgate.memory.util,5m)>{$MEMORY.UTIL.WARN}' + name: 'FortiGate: Memory utilization is high' + event_name: 'FortiGate: High memory utilization (>{$MEMORY.UTIL.WARN}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The system is running out of free memory.' + dependencies: + - name: 'FortiGate: Memory utilization is too high' + expression: 'min(/FortiGate by HTTP/fgate.memory.util,5m)>{$MEMORY.UTIL.CRIT}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 4cd6cb4e21154f8489de2ba73f32e62d + expression: 'min(/FortiGate by HTTP/fgate.memory.util,5m)>{$MEMORY.UTIL.CRIT}' + name: 'FortiGate: Memory utilization is too high' + event_name: 'FortiGate: High memory utilization (>{$MEMORY.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Free memory size is too low.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 562ec5b9dc7f49bb8ee404f05b1c54b7 + name: 'System name' + type: DEPENDENT + key: fgate.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The system host name.' + preprocessing: + - type: JSONPATH + parameters: + - $.results.hostname + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: fgate.system.get_data + tags: + - tag: component + value: system + triggers: + - uuid: a522d2cdd55947fabf1c152f6f6dd374 + expression: 'last(/FortiGate by HTTP/fgate.name,#1)<>last(/FortiGate by HTTP/fgate.name,#2) and length(last(/FortiGate by HTTP/fgate.name))>0' + name: 'FortiGate: System name has changed' + event_name: 'FortiGate: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: c1dbb528c4324b6daa59c4393c3fd178 + name: 'Device interfaces item errors' + type: DEPENDENT + key: fgate.netif.data_errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of network interfaces.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: fgate.netif.get_data + tags: + - tag: component + value: error + triggers: + - uuid: 20b8b33c1a36452ca280da95b8247409 + expression: 'length(last(/FortiGate by HTTP/fgate.netif.data_errors))>0 and length(last(/FortiGate by HTTP/fgate.netif.data_errors,#1:now-1m))>0 and nodata(/FortiGate by HTTP/fgate.netif.data_errors,2m)=0' + name: 'FortiGate: There are errors in the ''Get interfaces data'' metric' + priority: WARNING + dependencies: + - name: 'FortiGate: Unexpected response from API' + expression: 'last(/FortiGate by HTTP/fgate.api.status)=0' + tags: + - tag: scope + value: availability + - uuid: 3bf84b70672d4fbca282ce1bf970581d + name: 'Get interfaces data' + type: SCRIPT + key: fgate.netif.get_data + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + result = {"data": {}, "error": ""}, + api_url = "", + interfaces = {}, + error_msg = ""; + + function getHttpData(url) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + params.token); + response = request.get(url); + Zabbix.log(4, '[ FortiGate ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from FortiGate API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + if ((typeof response.status !== 'undefined' && response.status != 'success') || typeof response.results === 'undefined') { + var uri = '/' + response.path + '/' + response.name + ((typeof response.action !== 'undefined') ? '?action=' + response.action : ""); + throw 'Failed to parse response received from ' + uri + '. Check debug log for more information.'; + } + + return response; + }; + + try { + ['scheme', 'api.token', 'api.fqdn', 'api.port'].forEach(function (field) { + var macro = '{$FGATE.' + field.toUpperCase() + '}'; + var key = field.split('.').pop(); + if (params[key] === macro || params[key] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[key] === 'undefined') { + throw 'Please set "' + key + '" script input parameter to ' + macro + ' macro value.'; + } + }); + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$FGATE.HTTP.PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + api_url = tls.checkURL(params.scheme + '://' + params.fqdn + ':' + params.port); + + var netif_data = getHttpData( + api_url + '/api/v2/monitor/system/interface' + ); + + var netif_list = getHttpData( + api_url + '/api/v2/cmdb/system/interface' + ); + + result.data = netif_list.results.map(function (v) { + var item = {}; + ['q_origin_key', 'name', 'mode', 'type', 'description'].forEach(function (k) { + item[k] = v[k]; + }); + if (typeof item.q_origin_key !== 'undefined' && typeof netif_data.results[String(item.q_origin_key)] !== 'undefined') { + Object.assign(item, netif_data.results[String(item.q_origin_key)]); + } + if (typeof item.alias !== 'undefined') { + item.alias = item.alias.slice(1,-1); + } + else { + item.alias = ''; + } + if (typeof item.link === 'undefined') { + item.link = false; + } + if (typeof item.id === 'undefined') { + item.id = item.q_origin_key; + } + return item; + }); + } catch (error) { + error_msg = error.toString(); + error_msg += error_msg.endsWith('.') ? '' : '.'; + Zabbix.log(3, '[ FortiGate ] ERROR: ' + error_msg); + }; + + result.error = error_msg; + + return JSON.stringify(result); + description: 'Item for gathering network interfaces info from FortiGate API.' + timeout: '{$FGATE.DATA.TIMEOUT}' + parameters: + - name: fqdn + value: '{$FGATE.API.FQDN}' + - name: http_proxy + value: '{$FGATE.HTTP.PROXY}' + - name: port + value: '{$FGATE.API.PORT}' + - name: scheme + value: '{$FGATE.SCHEME}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"FortiGate"}' + - name: token + value: '{$FGATE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 1f612317d885472ea8b25ecb99a8debf + name: 'Device resources item errors' + type: DEPENDENT + key: fgate.resources.data_errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of the device resources.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: fgate.resources.get_data + tags: + - tag: component + value: error + triggers: + - uuid: e6ed25293ca64de1ae01e2ab6c92f5c7 + expression: 'length(last(/FortiGate by HTTP/fgate.resources.data_errors))>0 and length(last(/FortiGate by HTTP/fgate.resources.data_errors,#1:now-1m))>0 and nodata(/FortiGate by HTTP/fgate.resources.data_errors,2m)=0' + name: 'FortiGate: There are errors in the ''Get resources data'' metric' + priority: WARNING + dependencies: + - name: 'FortiGate: Unexpected response from API' + expression: 'last(/FortiGate by HTTP/fgate.api.status)=0' + tags: + - tag: scope + value: availability + - uuid: 06199d6a96f2414b976d357cd2c95cb6 + name: 'Get resources data' + type: SCRIPT + key: fgate.resources.get_data + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + result = {"data": {}, "error": ""}, + api_url = "", + error_msg = ""; + + function getHttpData(url) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + params.token); + response = request.get(url); + Zabbix.log(4, '[ FortiGate ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from FortiGate API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + if ((typeof response.status !== 'undefined' && response.status != 'success') || typeof response.results === 'undefined') { + var uri = '/' + response.path + '/' + response.name + ((typeof response.action !== 'undefined') ? '?action=' + response.action : ""); + throw 'Failed to parse response received from ' + uri + '. Check debug log for more information.'; + } + + return response; + }; + + try { + ['scheme', 'api.token', 'api.fqdn', 'api.port'].forEach(function (field) { + var macro = '{$FGATE.' + field.toUpperCase() + '}'; + var key = field.split('.').pop(); + if (params[key] === macro || params[key] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[key] === 'undefined') { + throw 'Please set "' + key + '" script input parameter to ' + macro + ' macro value.'; + } + }); + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$FGATE.HTTP.PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + api_url = tls.checkURL(params.scheme + '://' + params.fqdn + ':' + params.port); + + var resource_list = getHttpData( + api_url + '/api/v2/monitor/system/resource/usage?interval=1-min' + ); + + var disk_info = getHttpData( + api_url + '/api/v2/monitor/log/current-disk-usage' + ); + + if (typeof resource_list.results !== 'undefined' && typeof resource_list.results === 'object') { + Object.keys(resource_list.results).forEach(function (key) { + var resource = resource_list.results[key]; + if (resource.length > 0) { + result.data[key] = resource[0].current; + } + }); + } + else { + throw 'Failed to parse response received from FortiGate API. Check debug log for more information.'; + } + + Object.keys(disk_info.results).forEach(function (key) { + result.data['disk_' + key.split('_')[0]] = disk_info.results[key]; + }); + } catch (error) { + error_msg = error.toString(); + error_msg += error_msg.endsWith('.') ? '' : '.'; + Zabbix.log(3, '[ FortiGate ] ERROR: ' + error_msg); + }; + + result.error = error_msg; + + return JSON.stringify(result); + description: 'Item for gathering device resource data from FortiGate API.' + timeout: '{$FGATE.DATA.TIMEOUT}' + parameters: + - name: fqdn + value: '{$FGATE.API.FQDN}' + - name: http_proxy + value: '{$FGATE.HTTP.PROXY}' + - name: port + value: '{$FGATE.API.PORT}' + - name: scheme + value: '{$FGATE.SCHEME}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"FortiGate"}' + - name: token + value: '{$FGATE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 1f2885ffb1524d909292aa9e5d1d8c89 + name: 'Get SD-WAN item errors' + type: DEPENDENT + key: fgate.sdwan.data_errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of SD-WAN.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: fgate.sdwan.get_data + tags: + - tag: component + value: error + triggers: + - uuid: b2ec3a4cf468449388a33f76688dc259 + expression: 'length(last(/FortiGate by HTTP/fgate.sdwan.data_errors))>0 and length(last(/FortiGate by HTTP/fgate.sdwan.data_errors,#1:now-1m))>0 and nodata(/FortiGate by HTTP/fgate.sdwan.data_errors,2m)=0' + name: 'FortiGate: There are errors in the ''Get SD-WAN data'' metric' + priority: WARNING + dependencies: + - name: 'FortiGate: Unexpected response from API' + expression: 'last(/FortiGate by HTTP/fgate.api.status)=0' + tags: + - tag: scope + value: availability + - uuid: 01814568a3bc4774a37957ff3d8c5e09 + name: 'Get SD-WAN data' + type: SCRIPT + key: fgate.sdwan.get_data + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + result = {"data": {}, "error": ""}, + api_url = "", + health_members = [], + health_checks = [], + members = {}, + error_msg = ""; + + function getHttpData(url) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + params.token); + response = request.get(url); + Zabbix.log(4, '[ FortiGate ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from FortiGate API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + if ((typeof response.status !== 'undefined' && response.status != 'success') || typeof response.results === 'undefined') { + var uri = '/' + response.path + '/' + response.name + ((typeof response.action !== 'undefined') ? '?action=' + response.action : ""); + throw 'Failed to parse response received from ' + uri + '. Check debug log for more information.'; + } + + return response; + }; + + try { + ['scheme', 'api.token', 'api.fqdn', 'api.port'].forEach(function (field) { + var macro = '{$FGATE.' + field.toUpperCase() + '}'; + var key = field.split('.').pop(); + if (params[key] === macro || params[key] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[key] === 'undefined') { + throw 'Please set "' + key + '" script input parameter to ' + macro + ' macro value.'; + } + }); + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$FGATE.HTTP.PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + api_url = tls.checkURL(params.scheme + '://' + params.fqdn + ':' + params.port); + + var sdwan_member_data = getHttpData( + api_url + '/api/v2/monitor/virtual-wan/members' + ); + + var sdwan_health_data = getHttpData( + api_url + '/api/v2/monitor/virtual-wan/health-check' + ); + + var sdwan_list = getHttpData( + api_url + '/api/v2/cmdb/system/sdwan' + ); + + sdwan_list.results['health-check'].forEach(function (item) { + health_checks[item.q_origin_key] = item.members.length; + item.members.forEach(function (m) { + health_members.push({ + 'member_id': m.q_origin_key, + 'health_id': item.q_origin_key, + 'health_name': item.name, + }); + }); + }); + + sdwan_list.results.members.forEach(function (item) { + members[item.q_origin_key] = item; + }); + + result.data = { + 'member_lld': sdwan_list.results.members.filter(function (v) { + if (v.interface.length > 0) { + return v; + } + }).map(function (v) { + if (typeof v.interface !== 'undefined' && typeof sdwan_member_data.results[v.interface] !== 'undefined') { + Object.assign(v, sdwan_member_data.results[v.interface]); + } + return v; + }), + 'health_lld': health_members.map(function (m) { + var item = {}; + if (typeof members[String(m.member_id)] !== 'undefined') { + ['interface', 'status'].forEach(function (k) { + item[k] = members[String(m.member_id)][k]; + }); + Object.assign(item, m); + }; + return item; + }).filter(function (v) { + if (v.interface.length > 0) { + return v; + } + }), + 'health_data': sdwan_list.results['health-check'].filter(function (v) { + if (typeof health_checks[String(v.q_origin_key)] !== 'undefined' && health_checks[String(v.q_origin_key)] > 0) { + return v; + } + }).map(function (v) { + delete v.members; + if (typeof v.name !== 'undefined' && typeof sdwan_health_data.results[v.name] !== 'undefined') { + Object.assign(v, sdwan_health_data.results[v.name]); + } + return v; + }) + } + } catch (error) { + error_msg = error.toString(); + error_msg += error_msg.endsWith('.') ? '' : '.'; + Zabbix.log(3, '[ FortiGate ] ERROR: ' + error_msg); + }; + + result.error = error_msg; + + return JSON.stringify(result); + description: 'Item for gathering SD-WAN information from FortiGate API.' + timeout: '{$FGATE.DATA.TIMEOUT}' + parameters: + - name: fqdn + value: '{$FGATE.API.FQDN}' + - name: http_proxy + value: '{$FGATE.HTTP.PROXY}' + - name: port + value: '{$FGATE.API.PORT}' + - name: scheme + value: '{$FGATE.SCHEME}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"FortiGate"}' + - name: token + value: '{$FGATE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 547c3bfa4a2d4b8e8ebfad01b200c4fd + name: 'Service licenses item errors' + type: DEPENDENT + key: fgate.service.data_errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of the service licenses data.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: fgate.service.get_data + tags: + - tag: component + value: error + triggers: + - uuid: eeb819b2813f488ea3792a029f25a08d + expression: 'length(last(/FortiGate by HTTP/fgate.service.data_errors))>0 and length(last(/FortiGate by HTTP/fgate.service.data_errors,#1:now-1m))>0 and nodata(/FortiGate by HTTP/fgate.service.data_errors,2m)=0' + name: 'FortiGate: There are errors in the ''Get service licenses'' metric' + priority: WARNING + dependencies: + - name: 'FortiGate: Unexpected response from API' + expression: 'last(/FortiGate by HTTP/fgate.api.status)=0' + tags: + - tag: scope + value: availability + - uuid: 90a78cff28d54a1b9b955e9dc94d48c7 + name: 'Get service licenses' + type: SCRIPT + key: fgate.service.get_data + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + result = {"data": {}, "lld": [], "error": ""}, + api_url = "", + error_msg = ""; + + function getHttpData(url) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + params.token); + response = request.get(url); + Zabbix.log(4, '[ FortiGate ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from FortiGate API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + if ((typeof response.status !== 'undefined' && response.status != 'success') || typeof response.results === 'undefined') { + var uri = '/' + response.path + '/' + response.name + ((typeof response.action !== 'undefined') ? '?action=' + response.action : ""); + throw 'Failed to parse response received from ' + uri + '. Check debug log for more information.'; + } + + return response; + }; + + function capitalize(word, idx) { + return upAcronymCase(word.charAt(idx).toUpperCase() + word.slice(idx+1)); + } + + function upAcronymCase(word) { + if (word.length < 4) { + return word.toUpperCase() + } + return word; + } + + function prepareServiceName(key) { + var result = []; + key.split('_').forEach(function (w) { + var forti_idx = w.indexOf('forti'); + w = upAcronymCase(w); + if (forti_idx !== -1) + w = 'Forti' + capitalize(w, forti_idx + 5); + else + w = capitalize(w, 0) + result.push(w); + }); + + return result.join(' '); + }; + + try { + ['scheme', 'api.token', 'api.fqdn', 'api.port'].forEach(function (field) { + var macro = '{$FGATE.' + field.toUpperCase() + '}'; + var key = field.split('.').pop(); + if (params[key] === macro || params[key] === '') { + throw 'Please change ' + macro + ' macro to the proper value.'; + } + if (typeof params[key] === 'undefined') { + throw 'Please set "' + key + '" script input parameter to ' + macro + ' macro value.'; + } + }); + + api_url = tls.checkURL(params.scheme + '://' + params.fqdn + ':' + params.port); + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$FGATE.HTTP.PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + var licence_list = getHttpData( + api_url + '/api/v2/monitor/license/status' + ); + + result.data = licence_list.results; + Object.keys(licence_list.results).forEach(function (key) { + var resource = licence_list.results[key]; + if (typeof resource.status !== 'undefined' && typeof resource.type !== 'undefined') { + result.lld.push({ + "key": key, + "name": prepareServiceName(key), + "status": resource.status, + "type": resource.type, + }); + } + }); + } catch (error) { + error_msg = error.toString(); + error_msg += error_msg.endsWith('.') ? '' : '.'; + Zabbix.log(3, '[ FortiGate ] ERROR: ' + error_msg); + }; + + result.error = error_msg; + + return JSON.stringify(result); + description: 'Item for gathering information about service licenses from FortiGate API.' + timeout: '{$FGATE.DATA.TIMEOUT}' + parameters: + - name: fqdn + value: '{$FGATE.API.FQDN}' + - name: http_proxy + value: '{$FGATE.HTTP.PROXY}' + - name: port + value: '{$FGATE.API.PORT}' + - name: scheme + value: '{$FGATE.SCHEME}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"FortiGate"}' + - name: token + value: '{$FGATE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 8d8d4e7073db4ad497f4ca8dfffa043c + name: 'Device system info item errors' + type: DEPENDENT + key: fgate.system.data_errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering errors of the device system info.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: fgate.system.get_data + tags: + - tag: component + value: error + triggers: + - uuid: 3d1dbc0964db401fa9c10c1b126349e4 + expression: 'length(last(/FortiGate by HTTP/fgate.system.data_errors))>0 and length(last(/FortiGate by HTTP/fgate.system.data_errors,#1:now-1m))>0 and nodata(/FortiGate by HTTP/fgate.system.data_errors,2m)=0' + name: 'FortiGate: There are errors in the ''Get system info'' metric' + priority: WARNING + dependencies: + - name: 'FortiGate: Unexpected response from API' + expression: 'last(/FortiGate by HTTP/fgate.api.status)=0' + tags: + - tag: scope + value: availability + - uuid: a6b831300e7048fbad4502973d0318e7 + name: 'Get system info' + type: HTTP_AGENT + key: fgate.system.get_data + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering device system info from FortiGate API.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"error":"Not supported value received"}' + timeout: '{$FGATE.DATA.TIMEOUT}' + url: '{$FGATE.SCHEME}://{$FGATE.API.FQDN}:{$FGATE.API.PORT}/api/v2/monitor/web-ui/state' + http_proxy: '{$FGATE.HTTP.PROXY}' + headers: + - name: Accept + value: application/json + - name: Authorization + value: 'Bearer {$FGATE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 924a859579bd41a9b26dc83f92100577 + name: 'System uptime' + type: DEPENDENT + key: fgate.uptime + delay: '0' + units: uptime + description: 'The system uptime is calculated on the basis of boot time.' + preprocessing: + - type: JSONPATH + parameters: + - $.results.utc_last_reboot + - type: JAVASCRIPT + parameters: + - 'return (Math.floor(Date.now()/1000)-Math.floor(Number(value)/1000));' + master_item: + key: fgate.system.get_data + tags: + - tag: component + value: system + triggers: + - uuid: 183385fa495442bcbd3eb28636ca5bb9 + expression: 'last(/FortiGate by HTTP/fgate.uptime)<10m' + name: 'FortiGate: Device has been restarted' + event_name: 'FortiGate: {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: 27d30f93ff7c49d89537c43bad5f9453 + name: 'Check port availability' + type: SIMPLE + key: 'net.tcp.service["{$FGATE.SCHEME}","{$FGATE.API.FQDN}","{$FGATE.API.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 26abf8698af247d09c325ab1cb3e9903 + expression: 'last(/FortiGate by HTTP/net.tcp.service["{$FGATE.SCHEME}","{$FGATE.API.FQDN}","{$FGATE.API.PORT}"])=0' + name: 'FortiGate: Port {$FGATE.API.PORT} is unavailable' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 13ff598606764abbaec4d0b9f6cbbf33 + name: 'Firewall policies discovery' + type: DEPENDENT + key: fgate.fwp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FWACTION}' + value: '{$FWP.FWACTION.MATCHES}' + formulaid: A + - macro: '{#FWACTION}' + value: '{$FWP.FWACTION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FWNAME}' + value: '{$FWP.FWNAME.MATCHES}' + formulaid: C + - macro: '{#FWNAME}' + value: '{$FWP.FWNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#FWTYPE}' + value: '{$FWP.FWTYPE.MATCHES}' + formulaid: E + - macro: '{#FWTYPE}' + value: '{$FWP.FWTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovery for FortiGate firewall policies.' + item_prototypes: + - uuid: 19b27ab621a1417f86ddbd52d93f6c55 + name: 'FW Policy [{#FWNAME}]: Action' + type: DEPENDENT + key: 'fgate.fwp.action[{#FWUUID}]' + delay: '0' + description: 'The firewall policy action (accept / deny / ipsec).' + valuemap: + name: 'Firewall policy action' + preprocessing: + - type: JSONPATH + parameters: + - $.action + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'accept', + 'deny', + 'ipsec' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'fgate.fwp.get_data[{#FWUUID}]' + tags: + - tag: component + value: firewall + - tag: policy + value: '{#FWNAME}' + - uuid: 61bf8afdf8f04c9197077978706b1adc + name: 'FW Policy [{#FWNAME}]: Total bytes processed' + type: DEPENDENT + key: 'fgate.fwp.bytes[{#FWUUID}]' + delay: '0' + units: B + description: 'Number of bytes processed by both the software and hardware (ASIC) firewall.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.fwp.get_data[{#FWUUID}]' + tags: + - tag: component + value: firewall + - tag: policy + value: '{#FWNAME}' + - uuid: ee45ca237e074dd0a599ae1b29896329 + name: 'FW Policy [{#FWNAME}]: Get data' + type: DEPENDENT + key: 'fgate.fwp.get_data[{#FWUUID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering data for the {#FWNAME} firewall policy.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.uuid == "{#FWUUID}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: fgate.fwp.get_data + tags: + - tag: component + value: raw + - tag: policy + value: '{#FWNAME}' + - uuid: cae79524205c491990b967035ca4e753 + name: 'FW Policy [{#FWNAME}]: Hits into the policy' + type: DEPENDENT + key: 'fgate.fwp.hits[{#FWUUID}]' + delay: '0' + description: 'Number of packets hit into the firewall policy per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hit_count + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.fwp.get_data[{#FWUUID}]' + tags: + - tag: component + value: firewall + - tag: policy + value: '{#FWNAME}' + - uuid: 333596806faf457b9dfcb90a8c11bd25 + name: 'FW Policy [{#FWNAME}]: Hardware processed bytes' + type: DEPENDENT + key: 'fgate.fwp.hw_bytes[{#FWUUID}]' + delay: '0' + units: B + description: 'Number of bytes processed only by the hardware (ASIC) firewall.' + preprocessing: + - type: JSONPATH + parameters: + - $.asic_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.fwp.get_data[{#FWUUID}]' + tags: + - tag: component + value: firewall + - tag: policy + value: '{#FWNAME}' + - uuid: 5b5c10ff4c8a4e47a550d1c0563e78e1 + name: 'FW Policy [{#FWNAME}]: Last using time' + type: DEPENDENT + key: 'fgate.fwp.last_used[{#FWUUID}]' + delay: '0' + units: unixtime + description: 'The time at which the firewall policy was used the last time.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_used + error_handler: DISCARD_VALUE + master_item: + key: 'fgate.fwp.get_data[{#FWUUID}]' + tags: + - tag: component + value: firewall + - tag: policy + value: '{#FWNAME}' + - uuid: 1255b5df630b4af782cd00d59cb49fe0 + name: 'FW Policy [{#FWNAME}]: Active sessions' + type: DEPENDENT + key: 'fgate.fwp.sessions[{#FWUUID}]' + delay: '0' + description: 'Number of active sessions covered by this rule.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_sessions + master_item: + key: 'fgate.fwp.get_data[{#FWUUID}]' + tags: + - tag: component + value: firewall + - tag: policy + value: '{#FWNAME}' + - uuid: 3cedbb09e06547e682843679811a6a40 + name: 'FW Policy [{#FWNAME}]: Status' + type: DEPENDENT + key: 'fgate.fwp.status[{#FWUUID}]' + delay: '0' + description: 'The firewall policy status.' + valuemap: + name: 'Firewall policy status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'enable', + 'disable' + ].indexOf(value); + return idx !== -1 ? idx : value; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.fwp.get_data[{#FWUUID}]' + tags: + - tag: component + value: firewall + - tag: policy + value: '{#FWNAME}' + - uuid: 838a630bc233403f9be41dd079a52b67 + name: 'FW Policy [{#FWNAME}]: Software processed bytes' + type: DEPENDENT + key: 'fgate.fwp.sw_bytes[{#FWUUID}]' + delay: '0' + units: B + description: 'Number of bytes processed only by the software firewall.' + preprocessing: + - type: JSONPATH + parameters: + - $.software_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.fwp.get_data[{#FWUUID}]' + tags: + - tag: component + value: firewall + - tag: policy + value: '{#FWNAME}' + graph_prototypes: + - uuid: 1bbf600910de437dbc88f9340ebd7afd + name: 'FW Policy [{#FWNAME}]: Active sessions' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by HTTP' + key: 'fgate.fwp.sessions[{#FWUUID}]' + - uuid: 28abccb8b1c94ca787e38a773c0e282c + name: 'FW Policy [{#FWNAME}]: Hits into the policy' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by HTTP' + key: 'fgate.fwp.hits[{#FWUUID}]' + - uuid: b449d42f646b4318a862fa786387d783 + name: 'FW Policy [{#FWNAME}]: Policy processing' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'FortiGate by HTTP' + key: 'fgate.fwp.sw_bytes[{#FWUUID}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'FortiGate by HTTP' + key: 'fgate.fwp.hw_bytes[{#FWUUID}]' + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'FortiGate by HTTP' + key: 'fgate.fwp.bytes[{#FWUUID}]' + master_item: + key: fgate.fwp.get_data + lld_macro_paths: + - lld_macro: '{#FWACTION}' + path: $.action + - lld_macro: '{#FWINDEX}' + path: $.policyid + - lld_macro: '{#FWLABEL}' + path: $.label + - lld_macro: '{#FWNAME}' + path: $.name + - lld_macro: '{#FWTYPE}' + path: '$["ip-version-type"]' + - lld_macro: '{#FWUUID}' + path: $.uuid + preprocessing: + - type: JSONPATH + parameters: + - $.data + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b5d0c50d4ff8400a93618df5d2185ff7 + name: 'Network interfaces discovery' + type: DEPENDENT + key: fgate.netif.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: A + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: C + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: E + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFSTATUS}' + value: '{$NET.IF.IFSTATUS.MATCHES}' + formulaid: G + - macro: '{#IFSTATUS}' + value: '{$NET.IF.IFSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: I + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + description: 'Discovery for FortiGate network interfaces.' + item_prototypes: + - uuid: afb2dec9321a4eb1821b366c5219ce60 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Get data' + type: DEPENDENT + key: 'fgate.netif.get_data[{#IFKEY}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering data for the {#IFKEY} interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.id == "{#IFKEY}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: fgate.netif.get_data + tags: + - tag: component + value: raw + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFKEY}' + - uuid: 76c143854ca8400ea0af95debdc8f8d9 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Bits received' + type: DEPENDENT + key: 'fgate.netif.in[{#IFKEY}]' + delay: '0' + units: bps + description: 'The total number of octets received on the interface per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.rx_bytes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: 'fgate.netif.get_data[{#IFKEY}]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFKEY}' + - uuid: ef7ce50437034277bcc33af137d87e1b + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound packets with errors' + type: DEPENDENT + key: 'fgate.netif.in_errors[{#IFKEY}]' + delay: '0' + description: 'The total number of errors received.' + preprocessing: + - type: JSONPATH + parameters: + - $.rx_errors + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.netif.get_data[{#IFKEY}]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFKEY}' + trigger_prototypes: + - uuid: 9ef845b9e393423f96403ea4c195859e + expression: 'min(/FortiGate by HTTP/fgate.netif.in_errors[{#IFKEY}],5m)>{$NET.IF.ERRORS.WARN:"{#IFKEY}"} or min(/FortiGate by HTTP/fgate.netif.in_errors[{#IFKEY}],5m)>{$NET.IF.ERRORS.WARN:"{#IFKEY}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/FortiGate by HTTP/fgate.netif.in_errors[{#IFKEY}],5m)<{$NET.IF.ERRORS.WARN:"{#IFKEY}"}*0.8 and max(/FortiGate by HTTP/fgate.netif.in_errors[{#IFKEY}],5m)<{$NET.IF.ERRORS.WARN:"{#IFKEY}"}*0.8' + name: 'FortiGate: Interface [{#IFNAME}({#IFALIAS})]: High error rate' + event_name: 'FortiGate: Interface [{#IFNAME}({#IFALIAS})]: High error rate (>{$NET.IF.ERRORS.WARN:"{#IFKEY}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$NET.IF.ERRORS.WARN:"{#IFKEY}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'FortiGate: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$NET.IF.CONTROL:"{#IFNAME}"}=1 and last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}])=1 and (last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}],#1)<>last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}],#2))' + recovery_expression: 'last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}])<>1 or {$NET.IF.CONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 75bd8c58c1f94a2aaaca0afdc8ebc1eb + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound packets' + type: DEPENDENT + key: 'fgate.netif.in_packets[{#IFKEY}]' + delay: '0' + description: 'The total number of packets received on the interface per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.rx_packets + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.netif.get_data[{#IFKEY}]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFKEY}' + - uuid: 479786a0a0414a609ce7fffbc51519ec + name: 'Interface [{#IFNAME}({#IFALIAS})]: Bits sent' + type: DEPENDENT + key: 'fgate.netif.out[{#IFKEY}]' + delay: '0' + units: bps + description: 'The total number of octets transmitted out of the interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_bytes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: 'fgate.netif.get_data[{#IFKEY}]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFKEY}' + - uuid: bfab84d969614ef0945ca9ff54d8ea27 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound packets with errors' + type: DEPENDENT + key: 'fgate.netif.out_errors[{#IFKEY}]' + delay: '0' + description: 'The total number of errors transmitted.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_errors + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.netif.get_data[{#IFKEY}]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFKEY}' + - uuid: 8520c14ac47246c896d068f5be80f4b0 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound packets' + type: DEPENDENT + key: 'fgate.netif.out_packets[{#IFKEY}]' + delay: '0' + description: 'The total number of packets transmitted out of the interface per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_packets + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.netif.get_data[{#IFKEY}]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFKEY}' + - uuid: 0912c8f0928242df905c43d2320d0004 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Speed' + type: DEPENDENT + key: 'fgate.netif.speed[{#IFKEY}]' + delay: '0' + units: bps + description: 'Speed of the interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.speed + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.netif.get_data[{#IFKEY}]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFKEY}' + - uuid: e0dbfeb62ad14260a299263be8db631c + name: 'Interface [{#IFNAME}({#IFALIAS})]: Link status' + type: DEPENDENT + key: 'fgate.netif.status[{#IFKEY}]' + delay: '0' + description: 'Current link status of the interface.' + valuemap: + name: 'Link state' + preprocessing: + - type: JSONPATH + parameters: + - $.link + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'fgate.netif.get_data[{#IFKEY}]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFKEY}' + trigger_prototypes: + - uuid: e03715db2ab3447ba3dda0e07c3bc604 + expression: '{$NET.IF.CONTROL:"{#IFNAME}"}=1 and last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}])=1 and (last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}],#1)<>last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}])<>1 or {$NET.IF.CONTROL:"{#IFNAME}"}=0' + name: 'FortiGate: Interface [{#IFNAME}({#IFALIAS})]: Link down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the interface link status is down. + 2. `{ $NET.IF.CONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface link is down. + 3. The trigger fires only if the interface link status was up to (1) sometime before. + + WARNING: If closed manually, it will not fire again on the next poll because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ffba364bc78c446bb57f6673b7b6d255 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Interface type' + type: DEPENDENT + key: 'fgate.netif.type[{#IFKEY}]' + delay: '0' + description: 'Type of the interface.' + valuemap: + name: 'Interface type' + preprocessing: + - type: JSONPATH + parameters: + - $.type + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'physical', + 'vlan', + 'aggregate', + 'redundant', + 'tunnel', + 'vdom-link', + 'loopback', + 'switch', + 'vap-switch', + 'wl-mesh', + 'fext-wan', + 'vxlan', + 'geneve', + 'hdlc', + 'switch-vlan', + 'emac-vlan', + 'ssl', + 'lan-extension' + ].indexOf(value); + return idx !== -1 ? idx : 30; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.netif.get_data[{#IFKEY}]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFKEY}' + trigger_prototypes: + - uuid: b21dcb60f79d4d6686209ff4bb0d4dad + expression: | + change(/FortiGate by HTTP/fgate.netif.speed[{#IFKEY}])<0 and last(/FortiGate by HTTP/fgate.netif.speed[{#IFKEY}])>0 + and last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}])<>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/FortiGate by HTTP/fgate.netif.speed[{#IFKEY}])>0 and last(/FortiGate by HTTP/fgate.netif.speed[{#IFKEY}],#2)>0) + or last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}])=0 + name: 'FortiGate: Interface [{#IFNAME}({#IFALIAS})]: Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'FortiGate: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$NET.IF.CONTROL:"{#IFNAME}"}=1 and last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}])=1 and (last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}],#1)<>last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}],#2))' + recovery_expression: 'last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}])<>1 or {$NET.IF.CONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 5aa7f2cacfc54b6eadfd9817b967725a + expression: | + (avg(/FortiGate by HTTP/fgate.netif.in[{#IFKEY}],15m)>({$NET.IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/FortiGate by HTTP/fgate.netif.speed[{#IFKEY}]) or + avg(/FortiGate by HTTP/fgate.netif.out[{#IFKEY}],15m)>({$NET.IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/FortiGate by HTTP/fgate.netif.speed[{#IFKEY}])) + and last(/FortiGate by HTTP/fgate.netif.speed[{#IFKEY}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/FortiGate by HTTP/fgate.netif.in[{#IFKEY}],15m)<(({$NET.IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/FortiGate by HTTP/fgate.netif.speed[{#IFKEY}]) + and avg(/FortiGate by HTTP/fgate.netif.out[{#IFKEY}],15m)<(({$NET.IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/FortiGate by HTTP/fgate.netif.speed[{#IFKEY}]) + name: 'FortiGate: Interface [{#IFNAME}({#IFALIAS})]: High bandwidth usage' + event_name: 'FortiGate: Interface [{#IFNAME}({#IFALIAS})]: High bandwidth usage (>{$NET.IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'FortiGate: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$NET.IF.CONTROL:"{#IFNAME}"}=1 and last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}])=1 and (last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}],#1)<>last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}],#2))' + recovery_expression: 'last(/FortiGate by HTTP/fgate.netif.status[{#IFKEY}])<>1 or {$NET.IF.CONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 5d5b2b5c35a7433999f29f4f22a6d380 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'FortiGate by HTTP' + key: 'fgate.netif.in[{#IFKEY}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'FortiGate by HTTP' + key: 'fgate.netif.out[{#IFKEY}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'FortiGate by HTTP' + key: 'fgate.netif.in_errors[{#IFKEY}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'FortiGate by HTTP' + key: 'fgate.netif.out_errors[{#IFKEY}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'FortiGate by HTTP' + key: 'fgate.netif.in_packets[{#IFKEY}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'FortiGate by HTTP' + key: 'fgate.netif.out_packets[{#IFKEY}]' + master_item: + key: fgate.netif.get_data + lld_macro_paths: + - lld_macro: '{#IFALIAS}' + path: $.alias + - lld_macro: '{#IFDESCR}' + path: $.description + - lld_macro: '{#IFKEY}' + path: $.id + - lld_macro: '{#IFNAME}' + path: $.name + - lld_macro: '{#IFSTATUS}' + path: $.link + - lld_macro: '{#IFTYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.data + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: ededd6a88d74407c998f54a63bec5155 + name: 'SD-WAN health-checks discovery' + type: DEPENDENT + key: fgate.sdwan_health.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$SDWAN.HEALTH.IFNAME.MATCHES}' + formulaid: A + - macro: '{#IFNAME}' + value: '{$SDWAN.HEALTH.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#MID}' + value: '{$SDWAN.HEALTH.ID.MATCHES}' + formulaid: C + - macro: '{#MID}' + value: '{$SDWAN.HEALTH.ID.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#NAME}' + value: '{$SDWAN.HEALTH.NAME.MATCHES}' + formulaid: E + - macro: '{#NAME}' + value: '{$SDWAN.HEALTH.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#STATUS}' + value: '{$SDWAN.HEALTH.STATUS.MATCHES}' + formulaid: G + - macro: '{#STATUS}' + value: '{$SDWAN.HEALTH.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + description: 'Discovery for FortiGate SD-WAN health-checks.' + item_prototypes: + - uuid: 292228d1456f41b094b36edc2e22d24e + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Get data' + type: DEPENDENT + key: 'fgate.sdwan_health.get_data["{#HID}.{#MID}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering data about the {#IFNAME} interface in the {#NAME} health-check.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.health_data[?(@.q_origin_key == "{#HID}")]["{#IFNAME}"].first()' + error_handler: DISCARD_VALUE + master_item: + key: fgate.sdwan.get_data + tags: + - tag: component + value: raw + - tag: health_check + value: '{#NAME}' + - tag: interface + value: '{#IFNAME}' + - uuid: 29802e18613a4f83a93b68e2aec72d6a + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Jitter' + type: DEPENDENT + key: 'fgate.sdwan_health.jitter["{#HID}.{#MID}"]' + delay: '0' + value_type: FLOAT + description: 'Current jitter value for the {#IFNAME} interface in the {#NAME} health-check.' + preprocessing: + - type: JSONPATH + parameters: + - $.jitter + error_handler: DISCARD_VALUE + master_item: + key: 'fgate.sdwan_health.get_data["{#HID}.{#MID}"]' + tags: + - tag: component + value: sd_wan + - tag: health_check + value: '{#NAME}' + - tag: interface + value: '{#IFNAME}' + - uuid: 207b0b20629a4e4f89980c468b32d6af + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Latency' + type: DEPENDENT + key: 'fgate.sdwan_health.latency["{#HID}.{#MID}"]' + delay: '0' + value_type: FLOAT + units: ms + description: 'Current latency value for the {#IFNAME} interface in the {#NAME} health-check.' + preprocessing: + - type: JSONPATH + parameters: + - $.latency + error_handler: DISCARD_VALUE + master_item: + key: 'fgate.sdwan_health.get_data["{#HID}.{#MID}"]' + tags: + - tag: component + value: sd_wan + - tag: health_check + value: '{#NAME}' + - tag: interface + value: '{#IFNAME}' + - uuid: 02dee727fc0347f58266fb64646bd28f + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Packets loss' + type: DEPENDENT + key: 'fgate.sdwan_health.loss["{#HID}.{#MID}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percent of lost packets for the {#IFNAME} interface in the {#NAME} health-check.' + preprocessing: + - type: JSONPATH + parameters: + - $.packet_loss + error_handler: DISCARD_VALUE + master_item: + key: 'fgate.sdwan_health.get_data["{#HID}.{#MID}"]' + tags: + - tag: component + value: sd_wan + - tag: health_check + value: '{#NAME}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 698f0a5da51f43359d917e296fa1a8c2 + expression: 'min(/FortiGate by HTTP/fgate.sdwan_health.loss["{#HID}.{#MID}"],5m)>{$SDWAN.HEALTH.IF.LOSS.WARN:"{#IFNAME}"}' + name: 'FortiGate: SD-WAN [{#NAME}]:[{#IFNAME}]: High packets loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'High level of packets loss detected.' + tags: + - tag: scope + value: performance + - uuid: b2eaa836c991459bab433edb2d27a968 + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Packets received per second' + type: DEPENDENT + key: 'fgate.sdwan_health.received["{#HID}.{#MID}"]' + delay: '0' + value_type: FLOAT + description: 'Number of packets received from the {#IFNAME} interface in the {#NAME} health-check per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.packet_received + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.sdwan_health.get_data["{#HID}.{#MID}"]' + tags: + - tag: component + value: sd_wan + - tag: health_check + value: '{#NAME}' + - tag: interface + value: '{#IFNAME}' + - uuid: 988c9785e5924a118efae469cf8ea017 + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Packets sent per second' + type: DEPENDENT + key: 'fgate.sdwan_health.sent["{#HID}.{#MID}"]' + delay: '0' + value_type: FLOAT + description: 'Number of packets sent through the {#IFNAME} interface in the {#NAME} health-check per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.packet_sent + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.sdwan_health.get_data["{#HID}.{#MID}"]' + tags: + - tag: component + value: sd_wan + - tag: health_check + value: '{#NAME}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7ccc2ede10064b28877cd7ba9eba64b2 + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Interface status' + type: DEPENDENT + key: 'fgate.sdwan_health.status["{#HID}.{#MID}"]' + delay: '0' + description: 'Current status of the {#IFNAME} interface in the {#NAME} health-check.' + valuemap: + name: 'Interface status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'up', + 'down', + 'error' + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: 'fgate.sdwan_health.get_data["{#HID}.{#MID}"]' + tags: + - tag: component + value: sd_wan + - tag: health_check + value: '{#NAME}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c109ba19ca4d43bd87ffd0a4c9e64784 + expression: '{$SDWAN.HEALTH.IF.CONTROL:"{#NAME}"}=1 and last(/FortiGate by HTTP/fgate.sdwan_health.status["{#HID}.{#MID}"])=1 and (last(/FortiGate by HTTP/fgate.sdwan_health.status["{#HID}.{#MID}"],#1)<>last(/FortiGate by HTTP/fgate.sdwan_health.status["{#HID}.{#MID}"],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FortiGate by HTTP/fgate.sdwan_health.status["{#HID}.{#MID}"])<>1 or {$SDWAN.HEALTH.IF.CONTROL:"{#NAME}"}=0' + name: 'FortiGate: SD-WAN [{#NAME}]:[{#IFNAME}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the interface status is down. + 2. `{ $SDWAN.HEALTH.IF.CONTROL:"{#NAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down/error. + 3. The trigger fires only if the interface status was up to (1) sometime before. + + WARNING: If closed manually, it will not fire again on the next poll because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: d2e5eea705ea470785eeea8145e75f0b + expression: '{$SDWAN.HEALTH.IF.CONTROL:"{#IFNAME}"}=1 and last(/FortiGate by HTTP/fgate.sdwan_health.status["{#HID}.{#MID}"])=2 and (last(/FortiGate by HTTP/fgate.sdwan_health.status["{#HID}.{#MID}"],#1)<>last(/FortiGate by HTTP/fgate.sdwan_health.status["{#HID}.{#MID}"],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FortiGate by HTTP/fgate.sdwan_health.status["{#HID}.{#MID}"])<>2 or {$SDWAN.HEALTH.IF.CONTROL:"{#IFNAME}"}=0' + name: 'FortiGate: SD-WAN [{#NAME}]:[{#IFNAME}]: Link state is error' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the interface status is error. + 2. `{ $SDWAN.HEALTH.IF.CONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down/error. + 3. The trigger fires only if the interface status was up to (1) sometime before. + + WARNING: If closed manually, it will not fire again on the next poll because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 8e0ad9c4444b418fb0a632e4126470be + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Packets statistics' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by HTTP' + key: 'fgate.sdwan_health.received["{#HID}.{#MID}"]' + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by HTTP' + key: 'fgate.sdwan_health.sent["{#HID}.{#MID}"]' + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + yaxisside: RIGHT + item: + host: 'FortiGate by HTTP' + key: 'fgate.sdwan_health.loss["{#HID}.{#MID}"]' + - uuid: 11741f72e04a4c57a1183baee74ea396 + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Performance' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by HTTP' + key: 'fgate.sdwan_health.jitter["{#HID}.{#MID}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'FortiGate by HTTP' + key: 'fgate.sdwan_health.latency["{#HID}.{#MID}"]' + master_item: + key: fgate.sdwan.get_data + lld_macro_paths: + - lld_macro: '{#HID}' + path: $.health_id + - lld_macro: '{#IFNAME}' + path: $.interface + - lld_macro: '{#MID}' + path: $.member_id + - lld_macro: '{#NAME}' + path: $.health_name + - lld_macro: '{#STATUS}' + path: $.status + preprocessing: + - type: JSONPATH + parameters: + - $.data.health_lld + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: eccf64d732d44183866aae9bbdb394ba + name: 'SD-WAN members discovery' + type: DEPENDENT + key: fgate.sdwan_member.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ID}' + value: '{$SDWAN.MEMBER.ID.MATCHES}' + formulaid: A + - macro: '{#ID}' + value: '{$SDWAN.MEMBER.ID.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NAME}' + value: '{$SDWAN.MEMBER.NAME.MATCHES}' + formulaid: C + - macro: '{#NAME}' + value: '{$SDWAN.MEMBER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#STATUS}' + value: '{$SDWAN.MEMBER.STATUS.MATCHES}' + formulaid: E + - macro: '{#STATUS}' + value: '{$SDWAN.MEMBER.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#ZONE}' + value: '{$SDWAN.MEMBER.ZONE.MATCHES}' + formulaid: G + - macro: '{#ZONE}' + value: '{$SDWAN.MEMBER.ZONE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + description: 'Discovery for FortiGate SD-WAN members.' + item_prototypes: + - uuid: 376cf1ce322a4de5af3f86323f411b46 + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Get data' + type: DEPENDENT + key: 'fgate.sdwan_member.get_data[{#ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering data about the {#NAME} interface in the {#ZONE} zone.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.member_lld[?(@.interface == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: fgate.sdwan.get_data + tags: + - tag: component + value: raw + - tag: interface + value: '{#NAME}' + - tag: zone + value: '{#ZONE}' + - uuid: 937daa113f7d4d4d886cecdf0d5166b8 + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Link status' + type: DEPENDENT + key: 'fgate.sdwan_member.link_status[{#ID}]' + delay: '0' + description: 'Current link status of the {#NAME} interface in the {#ZONE} zone.' + valuemap: + name: 'Interface status' + preprocessing: + - type: JSONPATH + parameters: + - $.link + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'up', + 'down', + 'error' + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: 'fgate.sdwan_member.get_data[{#ID}]' + tags: + - tag: component + value: sd_wan + - tag: interface + value: '{#NAME}' + - tag: zone + value: '{#ZONE}' + trigger_prototypes: + - uuid: 858488d06b6f482bbec954d38ad066b3 + expression: '{$SDWAN.MEMBER.IF.CONTROL:"{#NAME}"}=1 and last(/FortiGate by HTTP/fgate.sdwan_member.link_status[{#ID}])=1 and (last(/FortiGate by HTTP/fgate.sdwan_member.link_status[{#ID}],#1)<>last(/FortiGate by HTTP/fgate.sdwan_member.link_status[{#ID}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FortiGate by HTTP/fgate.sdwan_member.link_status[{#ID}])<>1 or {$SDWAN.MEMBER.IF.CONTROL:"{#NAME}"}=0' + name: 'FortiGate: SD-WAN [{#ZONE}]:[{#NAME}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the interface status is down. + 2. `{ $SDWAN.MEMBER.IF.CONTROL:"{#NAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the interface status was up to (1) sometime before. + + WARNING: If closed manually, it will not fire again on the next poll because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 3fcdcefd280d4b9db61624e82df66871 + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Input bandwidth' + type: DEPENDENT + key: 'fgate.sdwan_member.rx_bandwidth[{#ID}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Receiving bandwidth of the {#NAME} interface in the {#ZONE} zone.' + preprocessing: + - type: JSONPATH + parameters: + - $.rx_bandwidth + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.sdwan_member.get_data[{#ID}]' + tags: + - tag: component + value: sd_wan + - tag: interface + value: '{#NAME}' + - tag: zone + value: '{#ZONE}' + - uuid: becb1fc1c07540d69490b08efc60847b + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Bytes received per second' + type: DEPENDENT + key: 'fgate.sdwan_member.rx_bytes[{#ID}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes received from the {#NAME} interface in the {#ZONE} zone per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.rx_bytes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.sdwan_member.get_data[{#ID}]' + tags: + - tag: component + value: sd_wan + - tag: interface + value: '{#NAME}' + - tag: zone + value: '{#ZONE}' + - uuid: 9b8c8717665c47de96af38b75ebca3fc + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Sessions' + type: DEPENDENT + key: 'fgate.sdwan_member.sessions[{#ID}]' + delay: '0' + description: 'Number of active sessions opened through the {#NAME} interface in the {#ZONE} zone.' + preprocessing: + - type: JSONPATH + parameters: + - $.session + master_item: + key: 'fgate.sdwan_member.get_data[{#ID}]' + tags: + - tag: component + value: sd_wan + - tag: interface + value: '{#NAME}' + - tag: zone + value: '{#ZONE}' + - uuid: 86ee2100e0f349cf809afa171c6b985a + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Member status' + type: DEPENDENT + key: 'fgate.sdwan_member.status[{#ID}]' + delay: '0' + description: 'Current status of the {#NAME} interface in the {#ZONE} zone.' + valuemap: + name: 'Service status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'enable', + 'disable' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.sdwan_member.get_data[{#ID}]' + tags: + - tag: component + value: sd_wan + - tag: interface + value: '{#NAME}' + - tag: zone + value: '{#ZONE}' + - uuid: c5a29cbdfc1949d18b5b8490ba2230a9 + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Output bandwidth' + type: DEPENDENT + key: 'fgate.sdwan_member.tx_bandwidth[{#ID}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Transmitting bandwidth of the {#NAME} interface in the {#ZONE} zone.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_bandwidth + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.sdwan_member.get_data[{#ID}]' + tags: + - tag: component + value: sd_wan + - tag: interface + value: '{#NAME}' + - tag: zone + value: '{#ZONE}' + - uuid: c4e0c5747eee460b9a29d0d43d63e974 + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Bytes sent per second' + type: DEPENDENT + key: 'fgate.sdwan_member.tx_bytes[{#ID}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Bytes sent through the {#NAME} interface in the {#ZONE} zone per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_bytes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'fgate.sdwan_member.get_data[{#ID}]' + tags: + - tag: component + value: sd_wan + - tag: interface + value: '{#NAME}' + - tag: zone + value: '{#ZONE}' + - uuid: 908d970054e14c30aa0b33205f2a5ea8 + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: State changing time' + type: DEPENDENT + key: 'fgate.service.state_changed[{#ID}]' + delay: '0' + units: unixtime + description: 'Last state changing time of the {#NAME} interface in the {#ZONE} zone.' + preprocessing: + - type: JSONPATH + parameters: + - $.state_changed + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.sdwan_member.get_data[{#ID}]' + tags: + - tag: component + value: sd_wan + - tag: interface + value: '{#NAME}' + - tag: zone + value: '{#ZONE}' + graph_prototypes: + - uuid: 6de8957f4392467bb61f4b970a8073b2 + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Bandwidth' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by HTTP' + key: 'fgate.sdwan_member.tx_bandwidth[{#ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by HTTP' + key: 'fgate.sdwan_member.rx_bandwidth[{#ID}]' + - uuid: 25f114f8837b4b4f811725e035affb80 + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Network traffic' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'FortiGate by HTTP' + key: 'fgate.sdwan_member.tx_bytes[{#ID}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'FortiGate by HTTP' + key: 'fgate.sdwan_member.rx_bytes[{#ID}]' + master_item: + key: fgate.sdwan.get_data + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.q_origin_key + - lld_macro: '{#NAME}' + path: $.interface + - lld_macro: '{#STATUS}' + path: $.status + - lld_macro: '{#ZONE}' + path: $.zone + preprocessing: + - type: JSONPATH + parameters: + - $.data.member_lld + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5fe5e9dfee0448d7a6552c3c5ec9e72c + name: 'Service discovery' + type: DEPENDENT + key: fgate.service.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#KEY}' + value: '{$SERVICE.KEY.MATCHES}' + formulaid: A + - macro: '{#KEY}' + value: '{$SERVICE.KEY.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STATUS}' + value: '{$SERVICE.STATUS.MATCHES}' + formulaid: C + - macro: '{#STATUS}' + value: '{$SERVICE.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#TYPE}' + value: '{$SERVICE.TYPE.MATCHES}' + formulaid: E + - macro: '{#TYPE}' + value: '{$SERVICE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovery for FortiGate services.' + item_prototypes: + - uuid: c759d226d28143da977879550e913d5e + name: 'Service [{#NAME}]: Expiration date' + type: DEPENDENT + key: 'fgate.service.expire["{#KEY}"]' + delay: '0' + units: unixtime + description: 'Expiration date for the license of the current service.' + preprocessing: + - type: JSONPATH + parameters: + - $.expires + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.service.get_data["{#KEY}"]' + tags: + - tag: component + value: service + - tag: name + value: '{#KEY}' + trigger_prototypes: + - uuid: 4b921a823a5a4a2cbf35b140c26eb514 + expression: '{$SERVICE.LICENSE.CONTROL:"{#KEY}"}=1 and (last(/FortiGate by HTTP/fgate.service.expire["{#KEY}"]) - now()) / 86400 < {$SERVICE.EXPIRY.WARN:"{#KEY}"} and last(/FortiGate by HTTP/fgate.service.expire["{#KEY}"]) > now()' + name: 'FortiGate: Service [{#NAME}]: License expires soon' + event_name: 'FortiGate: Service [{#NAME}]: License expires soon (less than {$SERVICE.EXPIRY.WARN:"{#KEY}"} days)' + opdata: 'Current expiration date: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + This trigger expression works as follows: + 1. It can be triggered if the license expires soon. + 2. `{ $SERVICE.LICENSE.CONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks the license of this service as not important. No new trigger will be fired if this license expires. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 84dd123ec16a4616bbf4d9a8c9ea9c8a + name: 'Service [{#NAME}]: Get data' + type: DEPENDENT + key: 'fgate.service.get_data["{#KEY}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering data about license for the {#NAME} service.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data["{#KEY}"]' + error_handler: DISCARD_VALUE + master_item: + key: fgate.service.get_data + tags: + - tag: component + value: raw + - tag: service + value: '{#KEY}' + - uuid: d2e2c614e1dd428caa251b77d9a24f9a + name: 'Service [{#NAME}]: License status' + type: DEPENDENT + key: 'fgate.service.license["{#KEY}"]' + delay: '0' + description: 'Current license status of the {#NAME} service.' + valuemap: + name: 'License status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'cloud_logged_in', + 'licensed', + 'registered', + 'vm_eval', + 'free_license', + 'vm_valid', + 'cloud_confirm_email', + 'cloud_error', + 'cloud_logged_out', + 'cloud_login_in_progress', + 'expired', + 'expires_soon', + 'free_license_exhausted', + 'licensed_exhausted', + 'no_license', + 'no_support', + 'not_registered', + 'pending', + 'unavailable', + 'update_manual', + 'update_push', + 'update_sched', + 'vm_eval_expired', + 'vm_expired', + 'vm_expires_soon', + 'vm_grace_period', + 'vm_invalid', + 'vm_pending', + 'vm_validation_overdue', + ].indexOf(value); + return idx !== -1 ? idx : 30; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.service.get_data["{#KEY}"]' + tags: + - tag: component + value: service + - tag: name + value: '{#KEY}' + trigger_prototypes: + - uuid: ad27092f227545d48f550bb58e61dd4c + expression: '{$SERVICE.LICENSE.CONTROL:"{#KEY}"}=1 and last(/FortiGate by HTTP/fgate.service.license["{#KEY}"])>5' + name: 'FortiGate: Service [{#NAME}]: License status is unsuccessful' + event_name: 'FortiGate: Service [{#NAME}]: License status is {ITEM.LASTVALUE1}' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the license status is unsuccessful. + 2. `{ $SERVICE.LICENSE.CONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks the license of this service as not important. No new trigger will be fired if this license is unsuccessful. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 89eb7360f2f846aabca21c63a05866ca + name: 'Service [{#NAME}]: Service type' + type: DEPENDENT + key: 'fgate.service.type["{#KEY}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Current type of the {#NAME} service.' + preprocessing: + - type: JSONPATH + parameters: + - $.type + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.service.get_data["{#KEY}"]' + tags: + - tag: component + value: service + - tag: name + value: '{#KEY}' + - uuid: 160afd9220c9445f943142e356253626 + name: 'Service [{#NAME}]: Last attempt to update' + type: DEPENDENT + key: 'fgate.service.update_attempt["{#KEY}"]' + delay: '0' + units: unixtime + description: 'Last update attempt time of the current service.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_update_attempt + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.service.get_data["{#KEY}"]' + tags: + - tag: component + value: service + - tag: name + value: '{#KEY}' + - uuid: 9abd3d1e858b413bb84c76a77fb0764b + name: 'Service [{#NAME}]: Update method' + type: DEPENDENT + key: 'fgate.service.update_method["{#KEY}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Current update method of the {#NAME} service.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_update_method_status + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.service.get_data["{#KEY}"]' + tags: + - tag: component + value: service + - tag: name + value: '{#KEY}' + - uuid: a19764a51d4941bd877a24accac2b8b3 + name: 'Service [{#NAME}]: Update result' + type: DEPENDENT + key: 'fgate.service.update_result["{#KEY}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Last update result of the {#NAME} service.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_update_result_status + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.service.get_data["{#KEY}"]' + tags: + - tag: component + value: service + - tag: name + value: '{#KEY}' + - uuid: d31db33d6ca34264a7480dacee235081 + name: 'Service [{#NAME}]: Last update time' + type: DEPENDENT + key: 'fgate.service.update_time["{#KEY}"]' + delay: '0' + units: unixtime + description: 'Last update time of the current service.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_update + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.service.get_data["{#KEY}"]' + tags: + - tag: component + value: service + - tag: name + value: '{#KEY}' + - uuid: 5f395038deb643ed83823695c4475d9e + name: 'Service [{#NAME}]: Service version' + type: DEPENDENT + key: 'fgate.service.version["{#KEY}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Current version of the {#NAME} service.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'fgate.service.get_data["{#KEY}"]' + tags: + - tag: component + value: service + - tag: name + value: '{#KEY}' + master_item: + key: fgate.service.get_data + lld_macro_paths: + - lld_macro: '{#KEY}' + path: $.key + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATUS}' + path: $.status + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.lld + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + overrides: + - name: 'System services' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: ^(cloud_service_status|platform|other)$ + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: ': Expiration date' + discover: NO_DISCOVER + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: ': Last attempt to update' + discover: NO_DISCOVER + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: ': Last update time' + discover: NO_DISCOVER + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: ': Service version' + discover: NO_DISCOVER + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: ': Update method' + discover: NO_DISCOVER + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: ': Update result' + discover: NO_DISCOVER + tags: + - tag: class + value: network + - tag: target + value: fortigate + - tag: target + value: fortinet + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '95' + description: 'Threshold of CPU utilization for critical trigger in %.' + - macro: '{$CPU.UTIL.WARN}' + value: '85' + description: 'Threshold of CPU utilization for warning trigger in %.' + - macro: '{$DISK.FREE.CRIT}' + value: '10' + description: 'Threshold of disk free space for critical trigger in %.' + - macro: '{$DISK.FREE.WARN}' + value: '20' + description: 'Threshold of disk free space for warning trigger in %.' + - macro: '{$FGATE.API.FQDN}' + description: 'FortiGate API FQDN/IP (ex. ngfw.example.com).' + - macro: '{$FGATE.API.PORT}' + value: '80' + description: 'The port of FortiGate API endpoint.' + - macro: '{$FGATE.API.TOKEN}' + type: SECRET_TEXT + description: 'FortiGate API token.' + - macro: '{$FGATE.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for an API.' + - macro: '{$FGATE.HTTP.PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format [protocol://][username[:password]@]proxy.example.com[:port]. See the documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + - macro: '{$FGATE.SCHEME}' + value: http + description: 'Request scheme which may be http or https.' + - macro: '{$FIRMWARE.UPDATES.CONTROL}' + value: '1' + description: 'This macro is used in "New available firmware found" trigger.' + - macro: '{$FWP.FWACTION.MATCHES}' + value: '.*' + description: 'This macro is used in Firewall policies discovery. Can be overridden on the host or linked template level.' + - macro: '{$FWP.FWACTION.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in Firewall policies discovery. Can be overridden on the host or linked template level.' + - macro: '{$FWP.FWNAME.MATCHES}' + value: '.*' + description: 'This macro is used in Firewall policies discovery. Can be overridden on the host or linked template level.' + - macro: '{$FWP.FWNAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in Firewall policies discovery. Can be overridden on the host or linked template level.' + - macro: '{$FWP.FWTYPE.MATCHES}' + value: '.*' + description: 'This macro is used in Firewall policies discovery. Can be overridden on the host or linked template level.' + - macro: '{$FWP.FWTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in Firewall policies discovery. Can be overridden on the host or linked template level.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "FortiGate", e.g. {$HTTP.TLS.VERIFY:"FortiGate"}.' + - macro: '{$MEMORY.UTIL.CRIT}' + value: '90' + description: 'Threshold of memory utilization for critical trigger in %.' + - macro: '{$MEMORY.UTIL.WARN}' + value: '80' + description: 'Threshold of memory utilization for warning trigger in %.' + - macro: '{$NET.IF.CONTROL}' + value: '1' + description: 'Macro for operational state of the interface for "Link down" trigger. Can be used with interface name as context.' + - macro: '{$NET.IF.ERRORS.WARN}' + value: '2' + description: 'Threshold of error packets rate for warning trigger. Can be used with interface name as context.' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'This macro is used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'This macro is used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '.*' + description: 'This macro is used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFSTATUS.MATCHES}' + value: '.*' + description: 'This macro is used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFSTATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'This macro is used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in Network interfaces discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.UTIL.MAX}' + value: '95' + description: 'Threshold of interface bandwidth utilization for warning trigger in %. Can be used with interface name as context.' + - macro: '{$SDWAN.HEALTH.ID.MATCHES}' + value: '.*' + description: 'This macro is used in SD-WAN health-checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.HEALTH.ID.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in SD-WAN health-checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.HEALTH.IF.CONTROL}' + value: '1' + description: 'Macro for the interface state for "Link down" trigger. Can be used with interface name as context.' + - macro: '{$SDWAN.HEALTH.IF.LOSS.WARN}' + value: '20' + description: 'Threshold of packets loss for warning trigger in %. Can be used with interface name as context.' + - macro: '{$SDWAN.HEALTH.IFNAME.MATCHES}' + value: '.*' + description: 'This macro is used in SD-WAN health-checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.HEALTH.IFNAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in SD-WAN health-checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.HEALTH.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in SD-WAN health-checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.HEALTH.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in SD-WAN health-checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.HEALTH.STATUS.MATCHES}' + value: '.*' + description: 'This macro is used in SD-WAN health-checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.HEALTH.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in SD-WAN health-checks discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.MEMBER.ID.MATCHES}' + value: '.*' + description: 'This macro is used in SD-WAN members discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.MEMBER.ID.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in SD-WAN members discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.MEMBER.IF.CONTROL}' + value: '1' + description: 'Macro for the interface state for "Link down" trigger. Can be used with interface name as context.' + - macro: '{$SDWAN.MEMBER.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in SD-WAN members discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.MEMBER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in SD-WAN members discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.MEMBER.STATUS.MATCHES}' + value: '.*' + description: 'This macro is used in SD-WAN members discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.MEMBER.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in SD-WAN members discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.MEMBER.ZONE.MATCHES}' + value: '.*' + description: 'This macro is used in SD-WAN members discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.MEMBER.ZONE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in SD-WAN members discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.EXPIRY.WARN}' + value: '7' + description: 'Number of days until the license expires.' + - macro: '{$SERVICE.KEY.MATCHES}' + value: '.*' + description: 'This macro is used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.KEY.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.LICENSE.CONTROL}' + value: '1' + description: 'This macro is used in Service discovery. Can be used with interface name as context.' + - macro: '{$SERVICE.STATUS.MATCHES}' + value: '.*' + description: 'This macro is used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.STATUS.NOT_MATCHES}' + value: (no_support|no_license) + description: 'This macro is used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.TYPE.MATCHES}' + value: '.*' + description: 'This macro is used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in Service discovery. Can be overridden on the host or linked template level.' + dashboards: + - uuid: 9f2a0d4b3df041419067e2c10c3e8689 + name: 'FortiGate: General' + pages: + - name: Overview + widgets: + - type: item + name: 'Port availability' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FFCA28 + - type: STRING + name: description + value: Port + - type: INTEGER + name: desc_bold + value: '1' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: 'net.tcp.service["{$FGATE.SCHEME}","{$FGATE.API.FQDN}","{$FGATE.API.PORT}"]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Number of CPUs' + 'y': '2' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.cpu.num + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - type: gauge + name: 'CPU utilization' + 'y': '4' + width: '24' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '{ITEM.DESCRIPTION}' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.cpu.util + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '80' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '15' + - type: svggraph + name: 'Disk usage' + 'y': '8' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 1976D2 + - type: STRING + name: ds.0.items.0 + value: fgate.item.fs_total + - type: INTEGER + name: ds.0.missingdatafunc + value: '1' + - type: INTEGER + name: ds.0.width + value: '6' + - type: STRING + name: ds.1.color + value: 4CAF50 + - type: STRING + name: ds.1.items.0 + value: fgate.item.fs_free + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: DEABC + - type: STRING + name: time_period.from + value: now-1d + - type: INTEGER + name: working_time + value: '1' + - type: item + name: 'API availability' + x: '12' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FFCA28 + - type: STRING + name: description + value: API + - type: INTEGER + name: desc_bold + value: '1' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.api.status + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Total memory' + x: '12' + 'y': '2' + width: '12' + fields: + - type: INTEGER + name: decimal_size + value: '40' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.memory.total + - type: INTEGER + name: show.0 + value: '2' + - type: STRING + name: units + value: B + - type: INTEGER + name: units_bold + value: '0' + - type: STRING + name: units_color + value: 1E88E5 + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - type: item + name: Uptime + x: '24' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 1E88E5 + - type: STRING + name: description + value: Uptime + - type: INTEGER + name: desc_bold + value: '1' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.uptime + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Total disk space' + x: '24' + 'y': '2' + width: '12' + fields: + - type: INTEGER + name: decimal_size + value: '40' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.fs.total + - type: INTEGER + name: show.0 + value: '2' + - type: STRING + name: units + value: B + - type: INTEGER + name: units_bold + value: '0' + - type: STRING + name: units_color + value: 1E88E5 + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - type: gauge + name: 'Memory utilization' + x: '24' + 'y': '4' + width: '24' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '{ITEM.DESCRIPTION}' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.memory.util + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '15' + - type: item + name: 'Serial Number' + x: '36' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.device.serialnumber + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - type: item + name: Name + x: '36' + 'y': '2' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.name + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - type: problems + x: '36' + 'y': '8' + width: '36' + height: '5' + fields: + - type: INTEGER + name: acknowledgement_status + value: '1' + - type: STRING + name: reference + value: BAAAA + - type: INTEGER + name: show + value: '3' + - type: INTEGER + name: show_opdata + value: '2' + - type: INTEGER + name: show_tags + value: '1' + - type: STRING + name: tag_priority + value: scope + - type: gauge + name: 'Disk utilization' + x: '48' + 'y': '4' + width: '24' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '{ITEM.DESCRIPTION}' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.fs.util + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '60' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '80' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '15' + - type: item + name: Firmware + x: '54' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.device.firmware + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - type: item + name: Model + x: '54' + 'y': '2' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by HTTP' + key: fgate.device.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - uuid: a1c7206d9312486b9d09dc9ef34ed98e + name: 'FortiGate: Statistics' + pages: + - name: 'System performance' + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'FortiGate: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'FortiGate: Disk usage' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'FortiGate: Memory utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'FortiGate: Disk utilization' + - type: STRING + name: reference + value: AAAAD + - name: 'Network interfaces' + widgets: + - type: graphprototype + width: '72' + height: '7' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'Interface [{#IFNAME}({#IFALIAS})]: Network traffic' + - type: STRING + name: reference + value: AAAAE + - name: 'SD-WAN statistics' + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Network traffic' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Packets statistics' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'SD-WAN [{#ZONE}]:[{#NAME}]: Bandwidth' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'SD-WAN [{#NAME}]:[{#IFNAME}]: Performance' + - type: STRING + name: reference + value: AAAAI + - name: 'Firewall statistics' + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'FW Policy [{#FWNAME}]: Active sessions' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'FW Policy [{#FWNAME}]: Policy processing' + - type: STRING + name: reference + value: AAAAL + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by HTTP' + name: 'FW Policy [{#FWNAME}]: Hits into the policy' + - type: STRING + name: reference + value: AAAAK + valuemaps: + - uuid: 8b0c51b152b04ba690cd13e43a2c90d9 + name: 'Firewall policy action' + mappings: + - value: '0' + newvalue: accept + - value: '1' + newvalue: deny + - value: '2' + newvalue: ipsec + - value: '10' + newvalue: unknown + - uuid: 2285b34278df448ab2ba2276913c0b77 + name: 'Firewall policy status' + mappings: + - value: '0' + newvalue: enable + - value: '1' + newvalue: disable + - uuid: 7aa1df8cbdda4d3aa5bad0af95733a06 + name: 'Interface status' + mappings: + - value: '0' + newvalue: up + - value: '1' + newvalue: down + - value: '2' + newvalue: error + - value: '10' + newvalue: unknown + - uuid: 6d6a2211c6e64ecfb00838886750912b + name: 'Interface type' + mappings: + - value: '0' + newvalue: physical + - value: '1' + newvalue: vlan + - value: '2' + newvalue: aggregate + - value: '3' + newvalue: redundant + - value: '4' + newvalue: tunnel + - value: '5' + newvalue: vdom-link + - value: '6' + newvalue: loopback + - value: '7' + newvalue: switch + - value: '8' + newvalue: vap-switch + - value: '9' + newvalue: wl-mesh + - value: '10' + newvalue: fext-wan + - value: '11' + newvalue: vxlan + - value: '12' + newvalue: geneve + - value: '13' + newvalue: hdlc + - value: '14' + newvalue: switch-vlan + - value: '15' + newvalue: emac-vlan + - value: '16' + newvalue: ssl + - value: '17' + newvalue: lan-extension + - value: '30' + newvalue: unknown + - uuid: 0e225b17b2e543f18fea31366d9b6286 + name: 'License status' + mappings: + - value: '0' + newvalue: Activated + - value: '1' + newvalue: Licensed + - value: '2' + newvalue: Registered + - value: '3' + newvalue: 'Evaluation License' + - value: '4' + newvalue: 'Free License' + - value: '5' + newvalue: Valid + - value: '6' + newvalue: 'Activation Pending (View Confirmation Email)' + - value: '7' + newvalue: 'Error Logging In' + - value: '8' + newvalue: 'Not Activated' + - value: '9' + newvalue: 'Login in Progress' + - value: '10' + newvalue: Expired + - value: '11' + newvalue: 'Expires Soon' + - value: '12' + newvalue: 'Free License (exhausted)' + - value: '13' + newvalue: 'Licensed (exhausted)' + - value: '14' + newvalue: 'Not Licensed' + - value: '15' + newvalue: 'Not Supported' + - value: '16' + newvalue: 'Not Registered' + - value: '17' + newvalue: Pending + - value: '18' + newvalue: Unavailable + - value: '19' + newvalue: 'Manual Update' + - value: '20' + newvalue: 'Push Update' + - value: '21' + newvalue: 'Scheduled Update' + - value: '22' + newvalue: Expired + - value: '23' + newvalue: Expired + - value: '24' + newvalue: 'Expires Soon' + - value: '25' + newvalue: 'Grace Period' + - value: '26' + newvalue: Invalid + - value: '27' + newvalue: 'Validation in Progress' + - value: '28' + newvalue: 'Validation Overdue' + - value: '30' + newvalue: Unknown + - uuid: 76ac7f91b2184689b19dc838cde49ade + name: 'Link state' + mappings: + - value: '0' + newvalue: down + - value: '1' + newvalue: up + - uuid: 176db78d3aa34c92893300d56eda5737 + name: 'Service state' + mappings: + - value: '0' + newvalue: down + - value: '1' + newvalue: up + - uuid: 3b62f79c5a664465897a372e833af713 + name: 'Service status' + mappings: + - value: '0' + newvalue: enable + - value: '1' + newvalue: disable + - value: '10' + newvalue: unknown + graphs: + - uuid: e7cf2dc608fb463594298f1c710ba435 + name: 'FortiGate: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'FortiGate by HTTP' + key: fgate.cpu.util + - uuid: 1f88c77c5e7f4886af17fa7f3fea69b9 + name: 'FortiGate: Disk usage' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by HTTP' + key: fgate.fs.total + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by HTTP' + key: fgate.fs.used + - sortorder: '2' + color: 00611C + item: + host: 'FortiGate by HTTP' + key: fgate.fs.free + - uuid: d2419e09ca7a46388a3b7876e1eea09f + name: 'FortiGate: Disk utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'FortiGate by HTTP' + key: fgate.fs.util + - uuid: 25a31e8022864e8e95cb6587f3eefdb3 + name: 'FortiGate: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'FortiGate by HTTP' + key: fgate.memory.util diff --git a/FortiGate_by_SNMP.yaml b/FortiGate_by_SNMP.yaml new file mode 100644 index 0000000..688e870 --- /dev/null +++ b/FortiGate_by_SNMP.yaml @@ -0,0 +1,5435 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 1f38deb487fc4a8d965e407ba7c5247f + template: 'FortiGate by SNMP' + name: 'FortiGate by SNMP' + description: | + The template for monitoring FortiGate firewall by SNMP. + + MIBs used: + HOST-RESOURCES-MIB + FORTINET-FORTIGATE-MIB + FORTINET-CORE-MIB + SNMPv2-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: ea59bff13fd44c37aa5bd711146fe3d9 + name: 'HA config sync' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.13.1.5.0]' + key: 'ha.auto.sync[fgHaAutoSync.0]' + delay: 1h + description: | + MIB: FORTINET-FORTIGATE-MIB + Configuration of an automatic configuration synchronization (enabled or disabled). + valuemap: + name: 'HA option status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: ha + - uuid: dbc47cff3e60401d9a52f590e1ed6281 + name: 'HA cluster group ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.13.1.2.0]' + key: 'ha.cluster.group_id[fgHaGroupId.0]' + delay: 1h + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + HA cluster group ID device is configured for. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: ha + - uuid: 4e2b57a68243445e87ca0e23277bafd6 + name: 'HA cluster group name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.13.1.7.0]' + key: 'ha.cluster.group_name[fgHaGroupName.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + HA cluster group name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: ha + - uuid: b6bdf8c8d09140ffa4087d0204a0711d + name: 'HA cluster primary override' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.13.1.4.0]' + key: 'ha.cluster.override[fgHaOverride.0]' + delay: 1h + description: | + MIB: FORTINET-FORTIGATE-MIB + Status of the primary override flag. + valuemap: + name: 'HA option status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: ha + - uuid: 3f1d2dfb8fd74e80aedb6fa0b7ff7215 + name: 'HA cluster priority' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.13.1.3.0]' + key: 'ha.cluster.priority[fgHaPriority.0]' + delay: 1h + description: | + MIB: FORTINET-FORTIGATE-MIB + HA clustering priority of the device (default = 128). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: ha + - uuid: ff27aa75a1d84aa5a472fbf114f8dec0 + name: 'SNMP walk HA members' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12356.101.13.2.1.1]' + key: ha.members.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering HA members from FORTINET-FORTIGATE-MIB.' + tags: + - tag: component + value: raw + - uuid: 3d9bb1ddb4924d5ba4dc75fb4103cc10 + name: 'HA mode' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.13.1.1.0]' + key: 'ha.mode[fgHaSystemMode.0]' + delay: 1h + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + High-availability mode (Standalone, A-A or A-P). + valuemap: + name: 'HA system mode' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: ha + - uuid: bd3dc8fdcb8e41569f1f81b2624e1462 + name: 'HA load-balancing schedule' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.13.1.6.0]' + key: 'ha.schedule[fgHaSchedule.0]' + delay: 1h + description: | + MIB: FORTINET-FORTIGATE-MIB + Load-balancing schedule of cluster (in A-A mode). + valuemap: + name: 'HA load-balancing schedule' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: ha + - uuid: bb422f92e3ad4eafb9f43f0167a250ee + name: 'SNMP walk hardware sensors' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12356.101.4.3.2.1]' + key: hw.sensor.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering hardware sensors from FORTINET-FORTIGATE-MIB.' + tags: + - tag: component + value: raw + - uuid: 5686859d4317437c9c23160b987a3468 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + Host accessibility by ICMP. + 0 - ICMP ping failed. + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a25a713c59ec44689831c2c636757603 + expression: 'max(/FortiGate by SNMP/icmpping,#3)=0' + name: 'FortiGate: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 60ba9ecc198840a3a92ef3221e21a97e + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'Percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d1106ac3337548bda97fb89ce36c5ee5 + expression: 'min(/FortiGate by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/FortiGate by SNMP/icmppingloss,5m)<100' + name: 'FortiGate: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP ping loss detected.' + dependencies: + - name: 'FortiGate: Unavailable by ICMP ping' + expression: 'max(/FortiGate by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c5c3cde736544304a76c5fe1774c1fc7 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e04a8517551740d8b47a5dfc88dfe779 + expression: 'avg(/FortiGate by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'FortiGate: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'FortiGate: High ICMP ping loss' + expression: 'min(/FortiGate by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/FortiGate by SNMP/icmppingloss,5m)<100' + - name: 'FortiGate: Unavailable by ICMP ping' + expression: 'max(/FortiGate by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 04f58b6b63b945a08a27799bee741702 + name: 'Blocked intrusions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.9.2.1.1.2.1]' + key: 'ips.blocked[fgIpsIntrusionsBlocked.0]' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of intrusions blocked per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ips + - uuid: 9a42006208224b94a64ecc13437516b6 + name: 'IPS database version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.4.2.2.0]' + key: 'ips.database.version[fgSysVersionIps.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + IPS signature database version installed on the device. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: ips + - uuid: afa9709de4c34d0c82aaf87c5b4f4572 + name: 'Detected anomaly based intrusions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.9.2.1.1.9.1]' + key: 'ips.detected.anomaly[fgIpsAnomalyDetections.0]' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of intrusions detected as anomalies per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ips + - uuid: 20ceeb0c520d454bba3d032d10a5db11 + name: 'Detected critical intrusions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.9.2.1.1.3.1]' + key: 'ips.detected.crit[fgIpsCritSevDetections.0]' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of critical severity intrusions detected per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ips + - uuid: badcc4a4fe3d4b219a2c67cda182ff4c + name: 'Detected high intrusions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.9.2.1.1.4.1]' + key: 'ips.detected.high[fgIpsHighSevDetections.0]' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of high severity intrusions detected per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ips + - uuid: f570cf723b904be593a99a8338e577de + name: 'Detected info intrusions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.9.2.1.1.7.1]' + key: 'ips.detected.info[fgIpsInfoSevDetections.0]' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of info severity intrusions detected per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ips + - uuid: 5edd46eba610442888acf0c8bdcde2c1 + name: 'Detected low intrusions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.9.2.1.1.6.1]' + key: 'ips.detected.low[fgIpsLowSevDetections.0]' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of low severity intrusions detected per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ips + - uuid: 0e4f211aa2b6492fa461e2bc5af1723f + name: 'Detected medium intrusions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.9.2.1.1.5.1]' + key: 'ips.detected.med[fgIpsMedSevDetections.0]' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of medium severity intrusions detected per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ips + - uuid: bf7ab7c7fdfd42a28e15545904baa6dc + name: 'Detected signature based intrusions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.9.2.1.1.8.1]' + key: 'ips.detected.sign[fgIpsSignatureDetections.0]' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of intrusions detected by signature per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ips + - uuid: f35dea442cbe4578a221571b2dbd676f + name: 'Total detected intrusions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.9.2.1.1.1.1]' + key: 'ips.detected.total[fgIpsIntrusionsDetected.0]' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Total number of intrusions detected per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ips + - uuid: abd3f407b66946dab2b05f7ec8a2daf2 + name: 'SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: ba89be1a4a01484f955fc6d740d1c736 + name: 'IPv4 Active sessions' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.4.1.8.0]' + key: 'net.ipv4.sessions[fgSysSesCount.0]' + delay: 5m + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of active sessions on the device. + tags: + - tag: component + value: network + - tag: component + value: sessions + - uuid: de401c1befce453bb9de93cb154026d4 + name: 'SNMP walk SD-WAN health-checks' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12356.101.4.9.2.1]' + key: sdwan_health.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering SD-WAN health-checks from FORTINET-FORTIGATE-MIB.' + tags: + - tag: component + value: raw + - uuid: b00ecb6f04a04f579ce0a8e6a1c0984e + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'Used for collecting all SNMP traps unmatched by other `snmptrap` items.' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: cc57314e0cd143c79654e53d16f341ca + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Name and contact information of the contact person for the node. If not provided, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c728a8f64cff450ebc445d9abc03486d + name: 'Number of CPUs' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.4.4.1.0]' + key: system.cpu.num + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of processors. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: cpu + - uuid: e6c36e1b4fac4242a3c3ddd4a5483dde + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.4.1.3.0]' + key: 'system.cpu.util[fgSysCpuUsage.0]' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + CPU utilization in %. + tags: + - tag: component + value: cpu + triggers: + - uuid: 86f157c9a85448cbac41ab5f8ee3d668 + expression: 'min(/FortiGate by SNMP/system.cpu.util[fgSysCpuUsage.0],5m)>{$CPU.UTIL.CRIT}' + name: 'FortiGate: High CPU utilization' + event_name: 'FortiGate: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 47d06309bad546b0b303c0c602c76415 + name: 'SNMP walk CPU' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12356.101.4.4.2.1]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering CPU from FORTINET-FORTIGATE-MIB.' + tags: + - tag: component + value: raw + - uuid: c2a2247eaddf4908b731ef0c42627d47 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating system, and networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 277fdc82a6d04e53a0da7bb29d087de7 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.4.1.1.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Firmware version of the device. + inventory_link: SOFTWARE + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: d1cde0e8780a455db0f7aec7b6b3bc7a + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.2.1.1.2.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + Model of the device. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 4ad23a8963e64a7da8b064463631a2f9 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ENTITY-MIB + Serial number of the device. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 0aa10f525bbb4bcd91debdb2f8b3afea + expression: | + last(/FortiGate by SNMP/system.hw.serialnumber,#1)<>last(/FortiGate by SNMP/system.hw.serialnumber,#2) and + length(last(/FortiGate by SNMP/system.hw.serialnumber))>0 + name: 'FortiGate: Device has been replaced' + event_name: 'FortiGate: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8adf6927a2ba4c26b31a1a527cfd33f7 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 07256dfb73794eaea91c9c622e617200 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for the node (the node's fully-qualified domain name). If not provided, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 9db3ed37da594694a560e8a85a3f7aae + expression: 'last(/FortiGate by SNMP/system.name,#1)<>last(/FortiGate by SNMP/system.name,#2) and length(last(/FortiGate by SNMP/system.name))>0' + name: 'FortiGate: System name has changed' + event_name: 'FortiGate: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 53aee5ecb43b4fe29a2e172f48577fa5 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6b85f5f1738b46acb17157d8fbf60ecf + name: 'System uptime' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.4.1.20.0]' + key: 'system.uptime[fgSysUpTime.0]' + units: uptime + description: | + MIB: FORTINET-FORTIGATE-MIB + Time since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + triggers: + - uuid: 5c16d6334cea466386455a7c5d071d18 + expression: 'last(/FortiGate by SNMP/system.uptime[fgSysUpTime.0])<10m' + name: 'FortiGate: Device has been restarted' + event_name: 'FortiGate: {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: 14d4584977a74e0791bf063652bf4c39 + name: 'SNMP walk virtual domain' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12356.101.3.2.1.1]' + key: vdom.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering virtual domains from FORTINET-FORTIGATE-MIB.' + tags: + - tag: component + value: raw + - uuid: c702bedf91d74cd8b2346ea0abca37c5 + name: 'Free disk space' + type: CALCULATED + key: vfs.fs.free + units: B + params: 'last(//vfs.fs.total[fgSysDiskCapacity.0])-last(//vfs.fs.used[fgSysDiskUsage.0])' + description: 'Free hard disk capacity.' + tags: + - tag: component + value: storage + - uuid: b7001a7fd88040fe8a11512df1d9ec07 + name: 'Free disk percentage' + type: CALCULATED + key: vfs.fs.pfree + value_type: FLOAT + units: '%' + params: '100-(last(//vfs.fs.used[fgSysDiskUsage.0])/last(//vfs.fs.total[fgSysDiskCapacity.0])*100)' + description: 'Free disk space, expressed in %.' + tags: + - tag: component + value: storage + triggers: + - uuid: 424ab075f1ff46e1b64f9416dee4f3f7 + expression: 'last(/FortiGate by SNMP/vfs.fs.pfree)<{$DISK.FREE.WARN}' + name: 'FortiGate: Free disk space is low' + event_name: 'FortiGate: Free disk space is less than {$DISK.FREE.WARN}%' + priority: WARNING + description: 'Available disk space is not enough.' + dependencies: + - name: 'FortiGate: Free disk space is too low' + expression: 'last(/FortiGate by SNMP/vfs.fs.pfree)<{$DISK.FREE.CRIT}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: a323a6c7a5a54ad1bf0db0ec9441bf83 + expression: 'last(/FortiGate by SNMP/vfs.fs.pfree)<{$DISK.FREE.CRIT}' + name: 'FortiGate: Free disk space is too low' + event_name: 'FortiGate: Free disk space is less than {$DISK.FREE.CRIT}%' + priority: HIGH + description: 'Available disk space is too low.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 84318818c417403bbfadff759f87e4f4 + name: 'Total disk space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.4.1.7.0]' + key: 'vfs.fs.total[fgSysDiskCapacity.0]' + units: B + description: 'Total hard disk capacity.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: storage + - uuid: 3a96f25d233e49039eb03b78fc8fd509 + name: 'Used disk space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.4.1.6.0]' + key: 'vfs.fs.used[fgSysDiskUsage.0]' + units: B + description: 'Current hard disk usage.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: storage + - uuid: bbc42709b2d2467e8fd7963309c6090a + name: 'Available memory' + type: CALCULATED + key: 'vm.memory.available[fgSysMemFree.0]' + units: B + params: 'last(//vm.memory.total[fgSysMemCapacity.0])-last(//vm.memory.used[fgSysMemUsage.0])' + description: 'Total memory available for utilization.' + tags: + - tag: component + value: memory + - uuid: 5ccef71de6944c91bf7d1e330782b542 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.4.1.5.0]' + key: 'vm.memory.total[fgSysMemCapacity.0]' + units: B + description: | + MIB: FORTINET-FORTIGATE-MIB + Total physical memory (RAM) installed. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000' + tags: + - tag: component + value: memory + - uuid: 15fb0d4185f04b4fb8e2efc6d0ef514c + name: 'Used memory' + type: CALCULATED + key: 'vm.memory.used[fgSysMemUsage.0]' + value_type: FLOAT + units: B + params: '(last(//vm.memory.total[fgSysMemCapacity.0])*last(//vm.memory.util[memoryUsedPercentage.0]))/100' + description: | + MIB: FORTINET-FORTIGATE-MIB + Physical memory (RAM) used calculated based on memory utilization percentage. + tags: + - tag: component + value: memory + - uuid: 29a7ec8007ef44b0b473f1c16be11059 + name: 'Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.4.1.4.0]' + key: 'vm.memory.util[memoryUsedPercentage.0]' + value_type: FLOAT + units: '%' + description: 'Current memory utilization (percentage).' + tags: + - tag: component + value: memory + triggers: + - uuid: 1ee0af9b389d4e5fafc5c08f46c9cc09 + expression: 'min(/FortiGate by SNMP/vm.memory.util[memoryUsedPercentage.0],5m)>{$MEMORY.UTIL.MAX}' + name: 'FortiGate: High memory utilization' + event_name: 'FortiGate: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 08bf282b9b3c4e78b139f3f6fe3bcd97 + name: 'SSL VPN state' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.12.2.3.1.1.1]' + key: 'vpn.ssl.state[fgVpnSslState.0]' + description: | + MIB: FORTINET-FORTIGATE-MIB + Used to determine whether SSL-VPN is enabled on this virtual domain. + valuemap: + name: 'Option state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: ssl + - tag: component + value: vpn + - uuid: 1699dd171a1f41d5896ac766477033ca + name: 'Active IPsec VPN tunnels' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.12.1.1.0]' + key: 'vpn.tunnel.active[fgVpnTunnelUpCount.0]' + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of IPsec VPN tunnels with at least one SA. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: vpn + - uuid: 349a383498cd42729940d1b9e5176e3e + name: 'SNMP walk VPN tunnels' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12356.101.12.2.2.1.3,1.3.6.1.4.1.12356.101.12.2.2.1.20]' + key: vpn.tunnel.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering VPN tunnels from FORTINET-FORTIGATE-MIB.' + tags: + - tag: component + value: raw + - uuid: c9a78b70b0f54fdc92d5efbfd38a32c5 + name: 'Active SSL VPN users' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12356.101.12.2.3.1.2.1]' + key: 'vpn.users.count[fgVpnSslStatsLoginUsers.0]' + description: | + MIB: FORTINET-FORTIGATE-MIB + Current number of users logged in through SSL-VPN tunnels in the virtual domain. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: ssl + - tag: component + value: vpn + - uuid: 5135b14791f844e4b1e1cdef4817a5d2 + name: 'SNMP walk wireless AP' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12356.101.14.4.3.1]' + key: wireless.ap.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering wireless access points from FORTINET-FORTIGATE-MIB.' + tags: + - tag: component + value: raw + - uuid: 3e37679441344327bf86ae38cd62f580 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: 'Host availability status' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e8dfc8ddd1a145ea92ab6446514a0ed5 + expression: 'max(/FortiGate by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'FortiGate: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'FortiGate: Unavailable by ICMP ping' + expression: 'max(/FortiGate by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c91e86ee48544c7fb225199d22b279cb + name: 'CPU discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + filter: + conditions: + - macro: '{#CPU.TYPE}' + value: 12356.101.4.4.3.1 + formulaid: A + - macro: '{#CPU.TYPE}' + value: 12356.101.4.4.3.2 + formulaid: B + - macro: '{#CPU.TYPE}' + value: 12356.101.4.4.3.3 + formulaid: C + description: 'Used for discovering CPUs from FORTINET-FORTIGATE-MIB.' + item_prototypes: + - uuid: 8223516fe91b4d17998d3846d8e6c134 + name: 'CPU Core {#CPU.ID}: Average system usage over 1min' + type: DEPENDENT + key: 'system.cpu.usage[fgProcessorSysUsage.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + The processor's CPU system space usage, expressed as an average calculated over the last minute. + (Only valid for processor types that support this statistic.) + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.4.2.1.10.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - tag: processor + value: '{#CPU.ID}' + - uuid: e0ddf801fd874ab6a97cefe9c7096b2f + name: 'CPU Core {#CPU.ID}: Average usage over 1min' + type: DEPENDENT + key: 'system.cpu.usage[fgProcessorUsage.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + The processor's CPU usage in %, expressed as an average calculated over the last minute. + (Only valid for processor types that support this statistic.) + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.4.2.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - tag: processor + value: '{#CPU.ID}' + - uuid: 3351a929f6fc40cd8d7c83fbeb5da100 + name: 'CPU Core {#CPU.ID}: Average user usage over 1min' + type: DEPENDENT + key: 'system.cpu.usage[fgProcessorUserUsage.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + The processor's CPU user space usage, expressed as an average calculated over the last minute. + (Only valid for processor types that support this statistic.) + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.4.2.1.9.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - tag: processor + value: '{#CPU.ID}' + graph_prototypes: + - uuid: e504c1a69c4d4fd781ab3083c801f04b + name: 'CPU Core {#CPU.ID}: Average usage per core' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'system.cpu.usage[fgProcessorUsage.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by SNMP' + key: 'system.cpu.usage[fgProcessorUserUsage.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'FortiGate by SNMP' + key: 'system.cpu.usage[fgProcessorSysUsage.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU.ID}' + - 1.3.6.1.4.1.12356.101.4.4.2.1.1 + - '0' + - '{#CPU.TYPE}' + - 1.3.6.1.4.1.12356.101.4.4.2.1.4 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0503618cc863464b86f6661a3bba5970 + name: 'HA member discovery' + type: DEPENDENT + key: ha.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#HA.SN}' + value: '{$HA.MEMBER.SN.MATCHES}' + formulaid: A + - macro: '{#HA.SN}' + value: '{$HA.MEMBER.SN.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for discovering HA members from FORTINET-FORTIGATE-MIB.' + item_prototypes: + - uuid: 93a6937b6fbe488cbd78cf8f962f94ad + name: 'HA {#HA.ID}: Anti-virus events' + type: DEPENDENT + key: 'ha.av.events[fgHaStatsAvCount.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of anti-virus events triggered on the specified cluster member per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: 8290da04f8194186966c8670c89ebf37 + name: 'HA {#HA.ID}: Bytes processed' + type: DEPENDENT + key: 'ha.bytes.rate[fgHaStatsByteCount.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: Bps + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of bytes processed by the specified cluster member per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.8.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: 4a3763ad9d134802993b6f82c6a8ccb6 + name: 'HA {#HA.ID}: Global checksum' + type: DEPENDENT + key: 'ha.checksum.global[fgHaStatsGlobalChecksum.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Current HA global checksum value. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.15.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: 4253edcd725844a0b438af65fe6206c7 + name: 'HA {#HA.ID}: CPU usage' + type: DEPENDENT + key: 'ha.cpu.usage[fgHaStatsCpuUsage.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + CPU usage of the specified cluster member (percentage). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: 22a3cd6732af4efcb2ef0b3ac07e5948 + name: 'HA {#HA.ID}: Hostname' + type: DEPENDENT + key: 'ha.hostname[fgHaStatsHostname.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Host name of the specified cluster member. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: ef06add0e6cc4064b3696960a627699d + name: 'HA {#HA.ID}: IPS events' + type: DEPENDENT + key: 'ha.ips.events[fgHaStatsIdsCount.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of IDS/IPS events triggered on the specified cluster member per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.9.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: e54c3edd5b1c4a73b135e24495756bca + name: 'HA {#HA.ID}: Memory usage' + type: DEPENDENT + key: 'ha.mem.usage[fgHaStatsMemUsage.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + Memory usage of the specified cluster member (percentage). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: 653ae601538545f1b2aeb1459497104f + name: 'HA {#HA.ID}: Network bandwidth usage' + type: DEPENDENT + key: 'ha.net.usage[fgHaStatsNetUsage.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: FORTINET-FORTIGATE-MIB + Network bandwidth usage of the specified cluster member (bps). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: 1594d7c870e6425f8872991b25cba0f8 + name: 'HA {#HA.ID}: Packets processed' + type: DEPENDENT + key: 'ha.packets.rate[fgHaStatsPktCount.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of packets processed by the specified cluster member per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.7.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: 1af6ca37fc104d6cb5192437b4bfc881 + name: 'HA {#HA.ID}: Primary serial number' + type: DEPENDENT + key: 'ha.primary.serialnumber[fgHaStatsMasterSerial.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Serial number of the primary HA member during the last sync attempt (successful or not). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.16.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: 1ba63c880654491a90bddd1ebde52252 + name: 'HA {#HA.ID}: Serial number' + type: DEPENDENT + key: 'ha.serialnumber[fgHaStatsSerial.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Serial number of the HA cluster member. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: 4c8e8e4787954e89a116e56306a275d9 + name: 'HA {#HA.ID}: Session count' + type: DEPENDENT + key: 'ha.session.count[fgHaStatsSesCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Current session count of the specified cluster member. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + - uuid: 10e2717f461f4f8887cfc9ae0ab6d932 + name: 'HA {#HA.ID}: Sync status' + type: DEPENDENT + key: 'ha.sync.status[fgHaStatsSyncStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Current HA sync status. + valuemap: + name: 'HA sync status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.13.2.1.1.12.{#SNMPINDEX}' + - '0' + master_item: + key: ha.members.walk + tags: + - tag: component + value: ha + - tag: member + value: '{#HA.ID}' + graph_prototypes: + - uuid: 0ffb9affa29643f1b7a098e9c77ac412 + name: 'HA {#HA.ID}: Bytes processed' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'ha.bytes.rate[fgHaStatsByteCount.{#SNMPINDEX}]' + - uuid: c0b2565a140547dc94065bebceea2cd4 + name: 'HA {#HA.ID}: CPU usage' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'ha.cpu.usage[fgHaStatsCpuUsage.{#SNMPINDEX}]' + - uuid: 10a28c1634e24df2bcb2f0c6187a1459 + name: 'HA {#HA.ID}: HA events' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'ha.ips.events[fgHaStatsIdsCount.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by SNMP' + key: 'ha.av.events[fgHaStatsAvCount.{#SNMPINDEX}]' + - uuid: 206b306fff5f49838f52584038299df9 + name: 'HA {#HA.ID}: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'ha.mem.usage[fgHaStatsMemUsage.{#SNMPINDEX}]' + - uuid: 3ec1552b04014d848419d66fd17e2fe4 + name: 'HA {#HA.ID}: Network bandwidth usage' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'ha.net.usage[fgHaStatsNetUsage.{#SNMPINDEX}]' + - uuid: b076c55d490b48e3a98491f3132f49ac + name: 'HA {#HA.ID}: Packets processed' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'ha.packets.rate[fgHaStatsPktCount.{#SNMPINDEX}]' + master_item: + key: ha.members.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#HA.ID}' + - 1.3.6.1.4.1.12356.101.13.2.1.1.1 + - '0' + - '{#HA.SN}' + - 1.3.6.1.4.1.12356.101.13.2.1.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ece93a3dc4f8497891444c9f5daa57ca + name: 'Hardware sensors discovery' + type: DEPENDENT + key: hw.sensor.discovery + delay: '0' + description: 'Used for discovering hardware sensors from FORTINET-FORTIGATE-MIB.' + item_prototypes: + - uuid: b9d76803cb8d4dd2ae27f2a36ae8d243 + name: 'Sensor {#SENSOR.NAME}: Alarm status' + type: DEPENDENT + key: 'hw.sensor.status[fgHwSensorEntAlarmStatus.{#SENSOR.ID}]' + delay: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + If the sensor has an alarm threshold and has exceeded it, this will indicate its status. Not all sensors have alarms. + valuemap: + name: 'Sensor alert status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.3.2.1.4.{#SENSOR.ID}' + - '0' + master_item: + key: hw.sensor.walk + tags: + - tag: component + value: sensor + - tag: sensor + value: '{#SENSOR.NAME}' + - uuid: 05abe47dd00e4a2faba79be40af90402 + name: 'Sensor {#SENSOR.NAME}: Value' + type: DEPENDENT + key: 'hw.sensor.value[fgHwSensorEntValue.{#SENSOR.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + A string representation of the value of the sensor. Because sensors can present data in different formats, string representation is the most general format. Interpretation of the value (units of measure, for example) is dependent on the individual sensor. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.3.2.1.3.{#SENSOR.ID}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hw.sensor.walk + tags: + - tag: component + value: sensor + - tag: sensor + value: '{#SENSOR.NAME}' + master_item: + key: hw.sensor.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SENSOR.ID}' + - 1.3.6.1.4.1.12356.101.4.3.2.1.1 + - '0' + - '{#SENSOR.NAME}' + - 1.3.6.1.4.1.12356.101.4.3.2.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: c63cc3b7fc484074b7d9eb007dfde091 + name: 'Network interface discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Used for discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: d715da9ce25f4bdd8ea64ecdf207aba1 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c148dee3d41e4846bafe885bfe860daa + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces - the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + For character-oriented or fixed-length interfaces - the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 72f4527a4fae4d7493ac66d1c6436cb3 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of `ifInOctets`. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 82e47cf784a24dd791fd81bc61e1cd6d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fede8c009c8a4623b2f4acf36947c705 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces - the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + For character-oriented or fixed-length interfaces - the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a1275c0bc1574941ac7306862034f3e3 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of `ifOutOctets`. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f52cc248bbcf4fb791ff37ab23393a35 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. + If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8465546bcabd464eae60b7b376d864be + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The `testing(3)` state indicates that no operational packets can be passed. + - If `ifAdminStatus` is `down(2)`, then `ifOperStatus` should be `down(2)`. + - If `ifAdminStatus` is changed to `up(1)`, then `ifOperStatus` should change to `up(1)` if the interface is ready to transmit and receive network traffic. + - It should change to `dormant(5)` if the interface is waiting for external actions (such as a serial line waiting for an incoming connection). + - It should remain in the `down(2)` state if and only if there is a fault that prevents it from going to the `up(1)` state. + - It should remain in the `notPresent(6)` state if the interface has missing (typically, hardware) components. + valuemap: + name: 'Interface status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 192a9f0c8ecb412fa7db65c839879269 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'FortiGate: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to "1" sometime before. + + WARNING: if closed manually - it will not fire again on the next poll, because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: cbe77e1fcd504385bb96a7d4094189f5 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for `ifType` are assigned by the Internet Assigned Numbers Authority (IANA) through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'Interface type' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bb4f3ffe2fc44a78b1e7ab2b7b700696 + expression: | + change(/FortiGate by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/FortiGate by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and ( + last(/FortiGate by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/FortiGate by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/FortiGate by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/FortiGate by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/FortiGate by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/FortiGate by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) and (last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/FortiGate by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and + last(/FortiGate by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'FortiGate: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'FortiGate: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: f2e0d7ffd8664f80bdd009462fa58060 + expression: | + (avg(/FortiGate by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/FortiGate by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/FortiGate by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/FortiGate by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/FortiGate by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/FortiGate by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/FortiGate by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/FortiGate by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/FortiGate by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'FortiGate: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'FortiGate: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'FortiGate: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 6ad2b85327c44f428c1416f611958783 + expression: | + min(/FortiGate by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/FortiGate by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/FortiGate by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/FortiGate by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'FortiGate: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'FortiGate: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The trigger recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'FortiGate: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/FortiGate by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: ab9438c6f148404e8853f1e8046147e6 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'FortiGate by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'FortiGate by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'FortiGate by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'FortiGate by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'FortiGate by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 1359682c719440798e44e19202442f5e + name: 'SD-WAN health-check discovery' + type: DEPENDENT + key: sdwan_health.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#HNAME}' + value: '{$SDWAN.HEALTH.NAME.MATCHES}' + formulaid: A + - macro: '{#HNAME}' + value: '{$SDWAN.HEALTH.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for discovering SD-WAN health-check from FORTINET-FORTIGATE-MIB.' + item_prototypes: + - uuid: 63b53c82ad3b49028b4f7afe53b5d0d3 + name: 'SD-WAN [{#HNAME}]:[{#IFNAME}]: Jitter' + type: DEPENDENT + key: 'sdwan_health.jitter[fgVWLHealthCheckLinkJitter.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: ms + description: | + MIB: FORTINET-FORTIGATE-MIB + The average jitter of a health check on a specific member link in a float number within the last 30 probes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.9.2.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: sdwan_health.walk + tags: + - tag: component + value: sd-wan + - tag: health-check + value: '{#HNAME}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6ffbe596aa2848b19e0d50c1b67e9365 + name: 'SD-WAN [{#HNAME}]:[{#IFNAME}]: Latency' + type: DEPENDENT + key: 'sdwan_health.latency[fgVWLHealthCheckLinkLatency.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: ms + description: | + MIB: FORTINET-FORTIGATE-MIB + The average latency of a health check on a specific member link in a float number within the last 30 probes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.9.2.1.5.{#SNMPINDEX}' + - '0' + master_item: + key: sdwan_health.walk + tags: + - tag: component + value: sd-wan + - tag: health-check + value: '{#HNAME}' + - tag: interface + value: '{#IFNAME}' + - uuid: d696775545be43aaadd3f0c932cac509 + name: 'SD-WAN [{#HNAME}]:[{#IFNAME}]: Packets loss' + type: DEPENDENT + key: 'sdwan_health.loss[fgVWLHealthCheckLinkPacketLoss.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + The packet loss percentage of a health check on a specific member link in a float number within the last 30 probes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.9.2.1.9.{#SNMPINDEX}' + - '0' + master_item: + key: sdwan_health.walk + tags: + - tag: component + value: sd-wan + - tag: health-check + value: '{#HNAME}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: cdc2b26246a84feca7ad03b137cbad2a + expression: 'min(/FortiGate by SNMP/sdwan_health.loss[fgVWLHealthCheckLinkPacketLoss.{#SNMPINDEX}],5m)>{$SDWAN.HEALTH.IF.LOSS.WARN:"{#HNAME}"}' + name: 'FortiGate: SD-WAN [{#HNAME}]:[{#IFNAME}]: High packets loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'High level of packet loss detected.' + tags: + - tag: scope + value: performance + - uuid: 5f3d834096ae4412ba849e7d9fdd27d6 + name: 'SD-WAN [{#HNAME}]:[{#IFNAME}]: Packets received per second' + type: DEPENDENT + key: 'sdwan_health.received[fgVWLHealthCheckLinkPacketRecv.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of packets received by a health check on a specific member link per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.9.2.1.8.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: sdwan_health.walk + tags: + - tag: component + value: sd-wan + - tag: health-check + value: '{#HNAME}' + - tag: interface + value: '{#IFNAME}' + - uuid: ed2f33611e39413d9fd78ba5e7185b8e + name: 'SD-WAN [{#HNAME}]:[{#IFNAME}]: Packets sent per second' + type: DEPENDENT + key: 'sdwan_health.sent[fgVWLHealthCheckLinkPacketSend.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of packets sent by a health check on a specific member link per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.9.2.1.7.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: sdwan_health.walk + tags: + - tag: component + value: sd-wan + - tag: health-check + value: '{#HNAME}' + - tag: interface + value: '{#IFNAME}' + - uuid: c9bbd7b9bfb94033a6814fc39926e7ca + name: 'SD-WAN [{#HNAME}]:[{#IFNAME}]: Health check state' + type: DEPENDENT + key: 'sdwan_health.state[fgVWLHealthCheckLinkState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Health check state on a specific member link. + valuemap: + name: 'Health check state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.9.2.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: sdwan_health.walk + tags: + - tag: component + value: sd-wan + - tag: health-check + value: '{#HNAME}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 65cfabab3fa64beaac6dd7d1513359a8 + expression: '{$SDWAN.HEALTH.IF.CONTROL:"{#HNAME}"}=1 and last(/FortiGate by SNMP/sdwan_health.state[fgVWLHealthCheckLinkState.{#SNMPINDEX}])=1 and (last(/FortiGate by SNMP/sdwan_health.state[fgVWLHealthCheckLinkState.{#SNMPINDEX}],#1)<>last(/FortiGate by SNMP/sdwan_health.state[fgVWLHealthCheckLinkState.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FortiGate by SNMP/sdwan_health.state[fgVWLHealthCheckLinkState.{#SNMPINDEX}])<>2 or {$SDWAN.HEALTH.IF.CONTROL:"{#HNAME}"}=0' + name: 'FortiGate: SD-WAN [{#HNAME}]:[{#IFNAME}]: Health check state is dead' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the health check state is dead. + 2. `{$SDWAN.HEALTH.IF.CONTROL:"{#HNAME}"}=1` - a user can redefine the context macro to "0", marking this health check as not important. No new trigger will be fired if this health check is dead. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the health check state was up to "1" sometime before. + + WARNING: If closed manually, it will not fire again on the next poll because of `diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: d4bfff72a3684c84becf9d58760c26ad + name: 'SD-WAN [{#HNAME}]:[{#IFNAME}]: Packets statistics' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'sdwan_health.received[fgVWLHealthCheckLinkPacketRecv.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by SNMP' + key: 'sdwan_health.sent[fgVWLHealthCheckLinkPacketSend.{#SNMPINDEX}]' + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + yaxisside: RIGHT + item: + host: 'FortiGate by SNMP' + key: 'sdwan_health.loss[fgVWLHealthCheckLinkPacketLoss.{#SNMPINDEX}]' + - uuid: 12048d7400ba4246bcc20ba85825f6d2 + name: 'SD-WAN [{#HNAME}]:[{#IFNAME}]: Performance' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'sdwan_health.jitter[fgVWLHealthCheckLinkJitter.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'FortiGate by SNMP' + key: 'sdwan_health.latency[fgVWLHealthCheckLinkLatency.{#SNMPINDEX}]' + master_item: + key: sdwan_health.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#HNAME}' + - 1.3.6.1.4.1.12356.101.4.9.2.1.2 + - '0' + - '{#IFNAME}' + - 1.3.6.1.4.1.12356.101.4.9.2.1.14 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 63fdcc93a41d424fb0c481d9ae50424c + name: 'SoC3 discovery' + type: DEPENDENT + key: soc3.discovery + delay: '0' + filter: + conditions: + - macro: '{#CPU.TYPE}' + value: 12356.101.4.4.3.9 + formulaid: A + description: 'Used for discovering SoC3 NP6Lite processors from FORTINET-FORTIGATE-MIB.' + item_prototypes: + - uuid: 15caa12cf78b430dbe63ba27606cf04b + name: 'SoC3 {#CPU.ID}: Packets dropped' + type: DEPENDENT + key: 'soc3.np6lite.pkt.dropped[fgProcessorPktDroppedCount.{#CPU.ID}]' + delay: '0' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + The total number of packets dropped by this processor (only valid for processor types that support this statistic). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.4.2.1.8.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: soc3 + - tag: processor + value: 'np6lite #{#CPU.ID}' + - uuid: f9b37041d4ae4ccab1b9a92835a45649 + name: 'SoC3 {#CPU.ID}: Packets received' + type: DEPENDENT + key: 'soc3.np6lite.pkt.received[fgProcessorPktRxCount.{#CPU.ID}]' + delay: '0' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + The total number of packets received by this processor (only valid for processor types that support this statistic). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.4.2.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: soc3 + - tag: processor + value: 'np6lite #{#CPU.ID}' + - uuid: 8f80b2d538ef4f20a654156e280394ab + name: 'SoC3 {#CPU.ID}: Packets transmitted' + type: DEPENDENT + key: 'soc3.np6lite.pkt.transmitted[fgProcessorPktRxCount.{#CPU.ID}]' + delay: '0' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + The total number of packets transmitted by this processor (only valid for processor types that support this statistic). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.4.4.2.1.7.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: soc3 + - tag: processor + value: 'np6lite #{#CPU.ID}' + graph_prototypes: + - uuid: fcef7d91b3d94d4ebd12cfe1eb3d077e + name: 'SoC3 {#CPU.ID}: Packets flow' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'soc3.np6lite.pkt.dropped[fgProcessorPktDroppedCount.{#CPU.ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by SNMP' + key: 'soc3.np6lite.pkt.received[fgProcessorPktRxCount.{#CPU.ID}]' + - sortorder: '2' + color: 00611C + item: + host: 'FortiGate by SNMP' + key: 'soc3.np6lite.pkt.transmitted[fgProcessorPktRxCount.{#CPU.ID}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU.ID}' + - 1.3.6.1.4.1.12356.101.4.4.2.1.1 + - '0' + - '{#CPU.TYPE}' + - 1.3.6.1.4.1.12356.101.4.4.2.1.4 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5c251f4a423348a49c2ac61e441d6da1 + name: 'Virtual domain discovery' + type: DEPENDENT + key: vdom.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VDOM.NAME}' + value: '{$VDOM.NAME.MATCHES}' + formulaid: A + - macro: '{#VDOM.NAME}' + value: '{$VDOM.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for discovering virtual domains from FORTINET-FORTIGATE-MIB.' + item_prototypes: + - uuid: f6f60e7e4fcf4bb6935a19742ac13199 + name: 'VDOM {#VDOM.NAME}: CPU usage' + type: DEPENDENT + key: 'vdom.cpu.usage[fgVdEntCpuUsage.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + CPU usage of the virtual domain (percentage). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.3.2.1.1.5.{#SNMPINDEX}' + - '0' + master_item: + key: vdom.walk + tags: + - tag: component + value: cpu + - tag: component + value: vdom + - tag: vdom + value: '{#VDOM.NAME}' + - uuid: 83a03691cd3c4282b731e8e9b1ffc328 + name: 'VDOM {#VDOM.NAME}: HA member state' + type: DEPENDENT + key: 'vdom.ha.state[fgVdEntHaState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + HA cluster member state of the virtual domain on this device. + valuemap: + name: 'VDOM HA state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.3.2.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: vdom.walk + tags: + - tag: component + value: vdom + - tag: vdom + value: '{#VDOM.NAME}' + - uuid: 07e67588b1c94e0ba26985883964247c + name: 'VDOM {#VDOM.NAME}: Memory usage' + type: DEPENDENT + key: 'vdom.mem.usage[fgVdEntCpuUsage.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + Memory usage of the virtual domain (percentage). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.3.2.1.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: vdom.walk + tags: + - tag: component + value: memory + - tag: component + value: vdom + - tag: vdom + value: '{#VDOM.NAME}' + - uuid: d5937e850b99477187b1dd84c54c5ea5 + name: 'VDOM {#VDOM.NAME}: Operation mode' + type: DEPENDENT + key: 'vdom.op_mode[fgVdEntOpMode.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Operation mode of the virtual domain (NAT or Transparent). + valuemap: + name: 'VDOM operation mode' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.3.2.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: vdom.walk + tags: + - tag: component + value: vdom + - tag: vdom + value: '{#VDOM.NAME}' + - uuid: 5030e68a32b644d7be5847556ecf438a + name: 'VDOM {#VDOM.NAME}: Sessions rate' + type: DEPENDENT + key: 'vdom.sessions.rate[fgVdEntSesRate.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: FORTINET-FORTIGATE-MIB + The session setup rate on the virtual domain per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.3.2.1.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: vdom.walk + tags: + - tag: component + value: vdom + - tag: vdom + value: '{#VDOM.NAME}' + - uuid: abeeecdb4c3d42b599f652f9bb591bef + name: 'VDOM {#VDOM.NAME}: Active sessions' + type: DEPENDENT + key: 'vdom.sessions[fgVdEntSesCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Number of active sessions on the virtual domain. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.3.2.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: vdom.walk + tags: + - tag: component + value: vdom + - tag: vdom + value: '{#VDOM.NAME}' + master_item: + key: vdom.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#VDOM.ID}' + - 1.3.6.1.4.1.12356.101.3.2.1.1.1 + - '0' + - '{#VDOM.NAME}' + - 1.3.6.1.4.1.12356.101.3.2.1.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: c9cb899a182843d79efe5c9b1d196023 + name: 'VPN tunnel discovery' + type: DEPENDENT + key: vpn.tunnel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#VPN.NAME}' + value: '{$VPN.NAME.MATCHES}' + formulaid: A + - macro: '{#VPN.NAME}' + value: '{$VPN.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for discovering VPN tunnels from FORTINET-FORTIGATE-MIB.' + item_prototypes: + - uuid: 7478dc658f184f1eb3718ddfab780b01 + name: 'VPN {#VPN.NAME}: Tunnel Status' + type: DEPENDENT + key: 'vpn.tunnel.status[fgVpnTunEntStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Current status of tunnel (up or down). + valuemap: + name: 'VPN status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.12.2.2.1.20.{#SNMPINDEX}' + - '0' + master_item: + key: vpn.tunnel.walk + tags: + - tag: component + value: vpn + - tag: tunnel + value: '{#VPN.NAME}' + trigger_prototypes: + - uuid: 20a833f3ba1c4c939a909fda92f01ffc + expression: '{$VPN.STATE.CONTROL:"{#VPN.NAME}"}=1 and last(/FortiGate by SNMP/vpn.tunnel.status[fgVpnTunEntStatus.{#SNMPINDEX}])=1 and (last(/FortiGate by SNMP/vpn.tunnel.status[fgVpnTunEntStatus.{#SNMPINDEX}],#1)<>last(/FortiGate by SNMP/vpn.tunnel.status[fgVpnTunEntStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FortiGate by SNMP/vpn.tunnel.status[fgVpnTunEntStatus.{#SNMPINDEX}])<>1 or {$VPN.STATE.CONTROL:"{#VPN.NAME}"}=0' + name: 'FortiGate: VPN {#VPN.NAME}: Tunnel down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the current tunnel state is down. + 2. `{$VPN.STATE.CONTROL}=1` - a user can redefine the context macro to "0", marking this notification as not important. No new trigger will be fired if this tunnel is down. + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: vpn.tunnel.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#VPN.NAME}' + - 1.3.6.1.4.1.12356.101.12.2.2.1.3 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0ec47b527d6a45269bc65b427d99b6b4 + name: 'Wireless discovery' + type: DEPENDENT + key: wireless.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#WC.NAME}' + value: '{$WC.NAME.MATCHES}' + formulaid: A + - macro: '{#WC.NAME}' + value: '{$WC.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for discovering wireless access points from FORTINET-FORTIGATE-MIB.' + item_prototypes: + - uuid: 95946d5063f04c75aaeef7d36699da80 + name: 'WTP {#WC.NAME}: Administrative status' + type: DEPENDENT + key: 'wc.admin.status[fgWcWtpConfigWtpAdmin.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the administrative status of this wireless termination point (WTP). + + The following enumerated values are supported: + `discovered(1)` - This WTP was discovered though discovery or join request messages. + `disable(2)` - Controller is configured to not provide service to this WTP. + `enable(3)` - Controller is configured to provide service to this WTP. + `other(0)` - The administration state of the WTP is unknown. + valuemap: + name: 'Wireless admin status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 6bd742c266e94630ab9eb727577a5f43 + name: 'WTP {#WC.NAME}: Background scan' + type: DEPENDENT + key: 'wc.background.scan[fgWcWtpConfigRadioApScan.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Whether background scan is enabled on this WTP. + valuemap: + name: 'Option state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.12.{#SNMPINDEX}' + - '0' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 8bdb138301f04f7dae81ef9ddd14b00e + name: 'WTP {#WC.NAME}: Base MAC Address' + type: DEPENDENT + key: 'wc.base.mac[fgWcWtpSessionWtpBaseMacAddress.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the WTP's Base MAC Address, which MAY be assigned to the primary Ethernet interface. + The instance of the object corresponds to the Base MAC Address sub-element in the CAPWAP protocol [RFC5415]. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 92512ee2f6ca4366bbd3d577c5ba10c8 + name: 'WTP {#WC.NAME}: Bootloader version' + type: DEPENDENT + key: 'wc.boot.version[fgWcWtpSessionWtpBootVersion.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the boot loader version of a WTP. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.15.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 50f1359e45b24acd997d24929661d464 + name: 'WTP {#WC.NAME}: Connected clients' + type: DEPENDENT + key: 'wc.clients.num[fgWcWtpSessionWtpStationCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the number of clients currently connected to this WTP. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.17.{#SNMPINDEX}' + - '0' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 04a94fb904ef4fd69dd45f85d1154a8c + name: 'WTP {#WC.NAME}: Connection status' + type: DEPENDENT + key: 'wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the connection status of a WTP to the AC. + + The following enumerated values are supported: + `offLine(1)` - The WTP is not connected. + `onLine(2)` - The WTP is connected. + `downloadingImage(3)` - The WTP is downloading software image from the AC on joining. + `connectedImage(4)` - The AC is pushing a software image to the connected WTP. + `other(0)` - The WTP connection status is unknown. + valuemap: + name: 'Wireless connection status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + trigger_prototypes: + - uuid: 93f58a2d4d9a4de9a8f0fe9e143a711a + expression: '{$WC.STATE.CONTROL:"{#WC.NAME}"}=1 and last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}])=1 and (last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}],#1)<>last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}])=2 or {$WC.STATE.CONTROL:"{#WC.NAME}"}=0' + name: 'FortiGate: WTP {#WC.NAME}: Connection is down' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: | + This trigger expression works as follows: + 1. It can be triggered if the current connection status is `offLine`. + 2. `{$WC.STATE.CONTROL}=1` - a user can redefine the context macro to "0", marking this notification as not important. No new trigger will be fired if this connection is down. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 2e4f389bf3024d3780c4e894b340e5bb + expression: '{$WC.UPDATE.CONTROL:"{#WC.NAME}"}=1 and last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}])=3 and (last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}],#1)<>last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}])=2 or {$WC.UPDATE.CONTROL:"{#WC.NAME}"}=0' + name: 'FortiGate: WTP {#WC.NAME}: Receiving firmware update' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: INFO + description: | + This trigger expression works as follows: + 1. It can be triggered if the current connection status is `downloadingImage`. + 2. `{$WC.UPDATE.CONTROL}=1` - a user can redefine the context macro to "0", marking this notification as not important. No new trigger will be fired if the status is `downloadingImage`. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 01eca2e3a28b48db835ff7a5598b0ee7 + expression: '{$WC.UPDATE.CONTROL:"{#WC.NAME}"}=1 and last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}])=4 and (last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}],#1)<>last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FortiGate by SNMP/wc.conn.status[fgWcWtpSessionConnectionState.{#SNMPINDEX}])=2 or {$WC.UPDATE.CONTROL:"{#WC.NAME}"}=0' + name: 'FortiGate: WTP {#WC.NAME}: Sending firmware update' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: INFO + description: | + This trigger expression works as follows: + 1. It can be triggered if the current connection status is `connectedImage`. + 2. `{$WC.UPDATE.CONTROL}=1` - a user can redefine the context macro to "0", marking this notification as not important. No new trigger will be fired if the status is `connectedImage`. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9fcf69f30ce7486c909c8fd7ff0247a5 + name: 'WTP {#WC.NAME}: CPU usage' + type: DEPENDENT + key: 'wc.cpu.usage[fgWcWtpSessionWtpCpuUsage.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the current CPU usage of a WTP (percentage). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.20.{#SNMPINDEX}' + - '0' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: cpu + - tag: component + value: wireless + trigger_prototypes: + - uuid: 97f5c94047194223a4059cd56816af69 + expression: 'min(/FortiGate by SNMP/wc.cpu.usage[fgWcWtpSessionWtpCpuUsage.{#SNMPINDEX}],5m)>{$WC.CPU.UTIL.CRIT:"{#WC.NAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/FortiGate by SNMP/wc.cpu.usage[fgWcWtpSessionWtpCpuUsage.{#SNMPINDEX}],5m)<{$WC.CPU.UTIL.CRIT:"{#WC.NAME}"}' + name: 'FortiGate: WTP {#WC.NAME}: High CPU utilization' + event_name: 'FortiGate: WTP {#WC.NAME}: High CPU utilization (over {$WC.CPU.UTIL.CRIT:"{#WC.NAME}"}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high.' + tags: + - tag: scope + value: performance + - uuid: 12c297ebcf9041af8ced1e42abb59e2b + name: 'WTP {#WC.NAME}: Daemon uptime' + type: DEPENDENT + key: 'wc.daemon.uptime[fgWcWtpSessionWtpDaemonUpTime.{#SNMPINDEX}]' + delay: '0' + units: uptime + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the time since the WTP daemon has been started. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.9.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.01' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 329d6a6e61a4433c8a3689e7756d311b + name: 'WTP {#WC.NAME}: Hardware version' + type: DEPENDENT + key: 'wc.hardware.version[fgWcWtpSessionWtpHwVersion.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the hardware version of a WTP. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.13.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: bba22196f76d4b81a9479e5998268be9 + name: 'WTP {#WC.NAME}: IP Address' + type: DEPENDENT + key: 'wc.ip.addr[fgWcWtpSessionWtpIpAddress.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the IP address of a WTP that corresponds to the IP address in the IP packet header. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 5c19b48260d94242af38a6962dcd5e52 + name: 'WTP {#WC.NAME}: IP Address type' + type: DEPENDENT + key: 'wc.ip.type[fgWcWtpSessionWtpIpAddressType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the IP address type of a WTP. + valuemap: + name: 'IP Address type' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: e0340ebc98884ab7a60bfdb4822a3fd5 + name: 'WTP {#WC.NAME}: Local IP Address' + type: DEPENDENT + key: 'wc.local_ip.addr[fgWcWtpSessionWtpLocalIpAddress.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the local IP address of a WTP and models the CAPWAP Local IPv4 Address or CAPWAP Local IPv6 Address fields [RFC5415]. + If a Network Address Translation (NAT) device is present between the WTP and access controller (AC), the value of `fgWcWtpWtpLocalIpAddress` will be different from the value of `fgWcWtpWtpIpAddress`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: df495d85f9f2487e927a2d9649072ed0 + name: 'WTP {#WC.NAME}: Local IP Address type' + type: DEPENDENT + key: 'wc.local_ip.type[fgWcWtpSessionWtpLocalIpAddressType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the local IP address type of a WTP. + valuemap: + name: 'IP Address type' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 9a365c163aef4d93ac221ad90b66ea63 + name: 'WTP {#WC.NAME}: Location' + type: DEPENDENT + key: 'wc.location[fgWcWtpConfigWtpLocation.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the location of this WTP. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: d2c18cf3f65243ee83b32944b68a08ac + name: 'WTP {#WC.NAME}: Memory capacity' + type: DEPENDENT + key: 'wc.mem.size[fgWcWtpSessionWtpMemoryCapacity.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the total physical memory (RAM) installed. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.22.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: memory + - tag: component + value: wireless + - uuid: 93287d10f57b4d4bbf295dfc626550ad + name: 'WTP {#WC.NAME}: Memory usage' + type: DEPENDENT + key: 'wc.mem.usage[fgWcWtpSessionWtpMemoryUsage.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the current memory usage of a WTP (percentage). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.21.{#SNMPINDEX}' + - '0' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: memory + - tag: component + value: wireless + trigger_prototypes: + - uuid: aa29737221724f668ffe2478de0715cf + expression: 'min(/FortiGate by SNMP/wc.mem.usage[fgWcWtpSessionWtpMemoryUsage.{#SNMPINDEX}],5m)>{$WC.MEMORY.UTIL.MAX:"{#WC.NAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/FortiGate by SNMP/wc.mem.usage[fgWcWtpSessionWtpMemoryUsage.{#SNMPINDEX}],5m)<{$WC.MEMORY.UTIL.MAX:"{#WC.NAME}"}' + name: 'FortiGate: WTP {#WC.NAME}: High memory utilization' + event_name: 'FortiGate: WTP {#WC.NAME}: High memory utilization (>{$WC.MEMORY.UTIL.MAX:"{#WC.NAME}"}% for 5m)' + priority: WARNING + description: 'The WTP is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: b38e6914dca54948823be8f8acced34f + name: 'WTP {#WC.NAME}: Model number' + type: DEPENDENT + key: 'wc.model[fgWcWtpSessionWtpModelNumber.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the model number of a WTP. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.12.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 545fd4919b944557bc17f28de6cb6fd4 + name: 'WTP {#WC.NAME}: Profile name' + type: DEPENDENT + key: 'wc.profile[fgWcWtpConfigWtpProfile.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the profile configured for this WTP. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: f9f608b2fa564d2aaae0a550c3e5b75f + name: 'WTP {#WC.NAME}: Radio ATPC high limit' + type: DEPENDENT + key: 'wc.radio.atpc.high_limit[fgWcWtpConfigRadioAutoTxPowerHigh.{#SNMPINDEX}]' + delay: '0' + units: '!dBm' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the high limit of radio automatic TX power control configured for this WTP, in dBm. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 41d20dc6db4948699ccd3d125314ccd4 + name: 'WTP {#WC.NAME}: Radio ATPC low limit' + type: DEPENDENT + key: 'wc.radio.atpc.low_limit[fgWcWtpConfigRadioAutoTxPowerLow.{#SNMPINDEX}]' + delay: '0' + units: '!dBm' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the low limit of radio automatic TX power control configured for this WTP, in dBm. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: b36452a5068141598e5ec84ba56ecaf7 + name: 'WTP {#WC.NAME}: Radio ATPC status' + type: DEPENDENT + key: 'wc.radio.atpc.status[fgWcWtpConfigRadioAutoTxPowerControl.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Whether radio automatic TX power control is enabled on this WTP. + valuemap: + name: 'Option state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 7987308b9347435aac31172c42c0d759 + name: 'WTP {#WC.NAME}: Radio band' + type: DEPENDENT + key: 'wc.radio.band[fgWcWtpConfigRadioBand.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the radio band configured for this WTP. + valuemap: + name: 'Wireless band type' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 1341c0982b50497183d2118e21f11284 + name: 'WTP {#WC.NAME}: Radio enabled' + type: DEPENDENT + key: 'wc.radio.enabled[fgWcWtpConfigRadioEnable.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Whether radio is enabled for this WTP. + valuemap: + name: 'Option state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 8595a885371848c29f6d2b7b0da347fd + name: 'WTP {#WC.NAME}: Radio TX power level' + type: DEPENDENT + key: 'wc.radio.power_level[fgWcWtpConfigRadioTxPowerLevel.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the radio TX power setting configured for this WTP, expressed in %. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 3ad0c66eb8db4d61beb4c664455df7af + name: 'WTP {#WC.NAME}: Bits received' + type: DEPENDENT + key: 'wc.rate.in[fgWcWtpSessionWtpByteRxCount.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: bps + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the number of bits received by this WTP per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.18.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: b3b14f29d1dd4629bd99286d5aa4ea98 + name: 'WTP {#WC.NAME}: Bits sent' + type: DEPENDENT + key: 'wc.rate.out[fgWcWtpSessionWtpByteTxCount.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: bps + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the number of bits transmitted by this WTP per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 6ddda93f378b4ad0b56a1567fb47dc0d + name: 'WTP {#WC.NAME}: Region code' + type: DEPENDENT + key: 'wc.region_code[fgWcWtpSessionWtpRegionCode.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the region code programmed for this WTP. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.16.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 184f5351a1f04a3db572fc9a8a650551 + name: 'WTP {#WC.NAME}: Session uptime' + type: DEPENDENT + key: 'wc.session.uptime[fgWcWtpSessionWtpSessionUpTime.{#SNMPINDEX}]' + delay: '0' + units: uptime + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the time since the WTP has been connected to the AC. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.10.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.01' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + trigger_prototypes: + - uuid: 753d2ca60faa4bc99cafbbdafb54309e + expression: 'last(/FortiGate by SNMP/wc.session.uptime[fgWcWtpSessionWtpSessionUpTime.{#SNMPINDEX}])<10m' + name: 'FortiGate: WTP {#WC.NAME}: Session has been restarted' + event_name: 'FortiGate: WTP {#WC.NAME}: Session has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7b5b087cd8da4aba9b6fbbea99190058 + name: 'WTP {#WC.NAME}: Software version' + type: DEPENDENT + key: 'wc.software.version[fgWcWtpSessionWtpSwVersion.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the software version of a WTP. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.14.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: c36ff98bbd3f432ab51fce10123dd31a + name: 'WTP {#WC.NAME}: Uptime' + type: DEPENDENT + key: 'wc.uptime[fgWcWtpSessionWtpUpTime.{#SNMPINDEX}]' + delay: '0' + units: uptime + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents the time since the WTP has booted. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.4.1.8.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.01' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: c7307fc000a6428c9b819dfa5a192cfa + name: 'WTP {#WC.NAME}: All VAPs selected' + type: DEPENDENT + key: 'wc.vaps.all[fgWcWtpConfigVapAll.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Whether all wireless virtual access points (VAP) are selected for this WTP. + valuemap: + name: 'Option state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.13.{#SNMPINDEX}' + - '0' + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + - uuid: 95960267c4aa45ceabd423a2ae542b53 + name: 'WTP {#WC.NAME}: VAPs list' + type: DEPENDENT + key: 'wc.vaps.list[fgWcWtpConfigVaps.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: FORTINET-FORTIGATE-MIB + Represents a list of wireless virtual access points (VAP) configured for this WTP. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.12356.101.14.4.3.1.14.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: wireless.ap.walk + tags: + - tag: access-point + value: '{#WC.NAME}' + - tag: component + value: wireless + graph_prototypes: + - uuid: cabd8db04db74f05b431378b4f0fb68f + name: 'WTP {#WC.NAME}: Clients' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'wc.clients.num[fgWcWtpSessionWtpStationCount.{#SNMPINDEX}]' + - uuid: 0b76d54781b94d78a9c5b19912bbb94e + name: 'WTP {#WC.NAME}: Network traffic' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'wc.rate.in[fgWcWtpSessionWtpByteRxCount.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by SNMP' + key: 'wc.rate.out[fgWcWtpSessionWtpByteTxCount.{#SNMPINDEX}]' + - uuid: b6d8cd72b1e34b719b4deca047afeac9 + name: 'WTP {#WC.NAME}: Performance' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'wc.cpu.usage[fgWcWtpSessionWtpCpuUsage.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by SNMP' + key: 'wc.mem.usage[fgWcWtpSessionWtpMemoryUsage.{#SNMPINDEX}]' + master_item: + key: wireless.ap.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#WC.ID}' + - 1.3.6.1.4.1.12356.101.14.4.3.1.1 + - '0' + - '{#WC.NAME}' + - 1.3.6.1.4.1.12356.101.14.4.3.1.3 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: fortigate + - tag: target + value: fortinet + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Threshold of CPU utilization for Warning trigger in %.' + - macro: '{$DISK.FREE.CRIT}' + value: '10' + description: 'Threshold of disk free space for Critical trigger in %.' + - macro: '{$DISK.FREE.WARN}' + value: '20' + description: 'Threshold of disk free space for Warning trigger in %.' + - macro: '{$HA.MEMBER.SN.MATCHES}' + value: '.*' + description: 'Used in HA member discovery. Can be overridden on the host or linked template level.' + - macro: '{$HA.MEMBER.SN.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in HA member discovery. Can be overridden on the host or linked template level.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Threshold of ICMP packet loss for Warning trigger in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Threshold of average ICMP response time for Warning trigger in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Threshold of error packet rate for Warning trigger. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '95' + description: 'Threshold of interface bandwidth utilization for Warning trigger in %. Can be used with interface name as context.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for operational state of interface for "Link down" trigger. Can be used with interface name as context.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold of memory utilization for trigger in %.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^[Ll]o[0-9.]*$)' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.HEALTH.IF.CONTROL}' + value: '1' + description: 'Used in "Health check state is dead" trigger. Can be used with health check name as context.' + - macro: '{$SDWAN.HEALTH.IF.LOSS.WARN}' + value: '20' + description: 'Threshold of packet loss for Warning trigger in %. Can be used with health check name as context.' + - macro: '{$SDWAN.HEALTH.NAME.MATCHES}' + value: '.*' + description: 'Used in SD-WAN health-check discovery. Can be overridden on the host or linked template level.' + - macro: '{$SDWAN.HEALTH.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in SD-WAN health-check discovery. Can be overridden on the host or linked template level.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP availability trigger.' + - macro: '{$VDOM.NAME.MATCHES}' + value: '.*' + description: 'Used in Virtual domain discovery. Can be overridden on the host or linked template level.' + - macro: '{$VDOM.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Virtual domain discovery. Can be overridden on the host or linked template level.' + - macro: '{$VPN.NAME.MATCHES}' + value: '.*' + description: 'Used in VPN tunnel discovery. Can be overridden on the host or linked template level.' + - macro: '{$VPN.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in VPN tunnel discovery. Can be overridden on the host or linked template level.' + - macro: '{$VPN.STATE.CONTROL}' + value: '1' + description: 'Used in "Tunnel down" trigger. Can be used with interface name as context.' + - macro: '{$WC.CPU.UTIL.CRIT}' + value: '90' + description: 'Threshold of WTP CPU utilization for Warning trigger in %. Can be used with interface name as context.' + - macro: '{$WC.MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold of WTP memory utilization for trigger in %. Can be used with interface name as context.' + - macro: '{$WC.NAME.MATCHES}' + value: '.*' + description: 'Used in Wireless discovery. Can be overridden on the host or linked template level.' + - macro: '{$WC.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in Wireless discovery. Can be overridden on the host or linked template level.' + - macro: '{$WC.STATE.CONTROL}' + value: '1' + description: 'Used in "Connection down" trigger. Can be used with interface name as context.' + - macro: '{$WC.UPDATE.CONTROL}' + value: '1' + description: 'Used in "Receiving firmware update" trigger. Can be used with interface name as context.' + dashboards: + - uuid: 16e0654e4e27472cb770e74f6ba29403 + name: 'FortiGate: General' + pages: + - name: Overview + widgets: + - type: item + name: 'SNMP state' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FFCA28 + - type: STRING + name: description + value: SNMP + - type: INTEGER + name: desc_bold + value: '1' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'zabbix[host,snmp,available]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Number of CPUs' + 'y': '2' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: system.cpu.num + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - type: gauge + name: 'CPU utilization' + 'y': '4' + width: '24' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '{ITEM.DESCRIPTION}' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'system.cpu.util[fgSysCpuUsage.0]' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '80' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '15' + - type: svggraph + name: 'Disk usage' + 'y': '8' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 1976D2 + - type: STRING + name: ds.0.items.0 + value: vfs.fs.total + - type: INTEGER + name: ds.0.missingdatafunc + value: '1' + - type: INTEGER + name: ds.0.width + value: '6' + - type: STRING + name: ds.1.color + value: 4CAF50 + - type: STRING + name: ds.1.items.0 + value: vfs.fs.free + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: DEABC + - type: STRING + name: time_period.from + value: now-1d + - type: STRING + name: time_period.to + value: now + - type: INTEGER + name: working_time + value: '1' + - type: item + name: 'SSL VPN state' + x: '12' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FFCA28 + - type: STRING + name: description + value: 'VPN SSL' + - type: INTEGER + name: desc_bold + value: '1' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'vpn.ssl.state[fgVpnSslState.0]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Total memory' + x: '12' + 'y': '2' + width: '12' + fields: + - type: INTEGER + name: decimal_size + value: '40' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'vm.memory.total[fgSysMemCapacity.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: STRING + name: units + value: B + - type: INTEGER + name: units_bold + value: '0' + - type: STRING + name: units_color + value: 1E88E5 + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - type: item + name: Uptime + x: '24' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 1E88E5 + - type: STRING + name: description + value: Uptime + - type: INTEGER + name: desc_bold + value: '1' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'system.uptime[fgSysUpTime.0]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Total disk space' + x: '24' + 'y': '2' + width: '12' + fields: + - type: INTEGER + name: decimal_size + value: '40' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'vfs.fs.total[fgSysDiskCapacity.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: STRING + name: units + value: B + - type: INTEGER + name: units_bold + value: '0' + - type: STRING + name: units_color + value: 1E88E5 + - type: STRING + name: value_color + value: 1E88E5 + - type: INTEGER + name: value_size + value: '50' + - type: gauge + name: 'Memory utilization' + x: '24' + 'y': '4' + width: '24' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '{ITEM.DESCRIPTION}' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.0]' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '15' + - type: item + name: 'Serial Number' + x: '36' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: system.hw.serialnumber + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - type: item + name: Name + x: '36' + 'y': '2' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: system.name + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - type: problems + x: '36' + 'y': '8' + width: '36' + height: '5' + fields: + - type: INTEGER + name: acknowledgement_status + value: '1' + - type: STRING + name: reference + value: BAAAA + - type: INTEGER + name: show + value: '3' + - type: INTEGER + name: show_opdata + value: '2' + - type: INTEGER + name: show_tags + value: '1' + - type: STRING + name: tag_priority + value: scope + - type: gauge + name: 'Free disk percentage' + x: '48' + 'y': '4' + width: '24' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: '{ITEM.DESCRIPTION}' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: vfs.fs.pfree + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '40' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '20' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '0' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '15' + - type: item + name: Firmware + x: '54' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: system.hw.firmware + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - type: item + name: Model + x: '54' + 'y': '2' + width: '18' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: system.hw.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '40' + - uuid: a6bcd7942915453891b0e7855bbc4e67 + name: 'FortiGate: High availability' + pages: + - name: Overview + widgets: + - type: item + name: 'HA mode' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'ha.mode[fgHaSystemMode.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'HA cluster group' + x: '18' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'ha.cluster.group_name[fgHaGroupName.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'HA cluster priority' + x: '36' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'ha.cluster.priority[fgHaPriority.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'HA load-balancing schedule' + x: '54' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'FortiGate by SNMP' + key: 'ha.schedule[fgHaSchedule.0]' + - type: INTEGER + name: show.0 + value: '2' + - name: 'HA members' + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'HA {#HA.ID}: CPU usage' + - type: STRING + name: reference + value: AAAAM + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'HA {#HA.ID}: Bytes processed' + - type: STRING + name: reference + value: AAAAO + - type: graphprototype + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'HA {#HA.ID}: Network bandwidth usage' + - type: STRING + name: reference + value: AAAAQ + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'HA {#HA.ID}: Memory usage' + - type: STRING + name: reference + value: AAAAN + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'HA {#HA.ID}: Packets processed' + - type: STRING + name: reference + value: AAAAP + - type: graphprototype + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'HA {#HA.ID}: HA events' + - type: STRING + name: reference + value: AAAAR + - uuid: dc5c356dae574908a63f0e8252e62aa6 + name: 'FortiGate: Statistics' + pages: + - name: 'System performance' + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'FortiGate: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'FortiGate: Memory utilization' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'FortiGate: Memory usage' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'FortiGate: Disk usage' + - type: STRING + name: reference + value: AAAAD + - name: 'SoC3 NP6Lite statistics' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'SoC3 {#CPU.ID}: Packets flow' + - type: STRING + name: reference + value: AAAAE + - name: 'IPS statistics' + widgets: + - type: graph + width: '72' + height: '7' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'FortiGate: IPS statistics' + - type: STRING + name: reference + value: AAAAF + - name: 'Network interfaces' + widgets: + - type: graphprototype + width: '72' + height: '7' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAG + - name: 'SD-WAN statistics' + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'SD-WAN [{#HNAME}]:[{#IFNAME}]: Packets statistics' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'SD-WAN [{#HNAME}]:[{#IFNAME}]: Performance' + - type: STRING + name: reference + value: AAAAI + - name: 'Wireless statistics' + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'WTP {#WC.NAME}: Clients' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'WTP {#WC.NAME}: Network traffic' + - type: STRING + name: reference + value: AAAAL + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FortiGate by SNMP' + name: 'WTP {#WC.NAME}: Performance' + - type: STRING + name: reference + value: AAAAK + valuemaps: + - uuid: a7e08ed8bf9d4372b60dd44157ed8dc3 + name: 'HA load-balancing schedule' + mappings: + - value: '1' + newvalue: none + - value: '2' + newvalue: hub + - value: '3' + newvalue: leastConnections + - value: '4' + newvalue: roundRobin + - value: '5' + newvalue: weightedRoundRobin + - value: '6' + newvalue: random + - value: '7' + newvalue: ipBased + - value: '8' + newvalue: ipPortBased + - uuid: e90736cde03046dd87f6532af522bd03 + name: 'HA option status' + mappings: + - value: '1' + newvalue: disabled + - value: '2' + newvalue: enabled + - uuid: 1ff2500e234e46fdb532de670a5f2aea + name: 'HA sync status' + mappings: + - value: '0' + newvalue: unsynchronized + - value: '1' + newvalue: synchronized + - uuid: 65bdbcdc23994f2a8944f5c69a9b061a + name: 'HA system mode' + mappings: + - value: '1' + newvalue: standalone + - value: '2' + newvalue: activeActive + - value: '3' + newvalue: activePassive + - uuid: 7099e2e064d34d32b4a6f96a10798124 + name: 'Health check state' + mappings: + - value: '0' + newvalue: alive + - value: '1' + newvalue: dead + - uuid: 01c410206d2c4754bcaa0dbcbeacade1 + name: 'Host availability status' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 3ba88094988045799337ddb456936f15 + name: 'Interface status' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 61e451f29c9943cf81ed2647166d664f + name: 'Interface type' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 8aa46ac9d6c44ffe8213c8f09a42eb50 + name: 'IP Address type' + mappings: + - value: '1' + newvalue: ipv4 + - value: '2' + newvalue: ipv6 + - uuid: ba3b57b54fb44466aca78692ba3dda97 + name: 'Option state' + mappings: + - value: '1' + newvalue: disabled + - value: '2' + newvalue: enabled + - uuid: c41154255ef34d65bc0636bef7fe0bfa + name: 'Sensor alert status' + mappings: + - value: '0' + newvalue: 'false' + - value: '1' + newvalue: 'true' + - uuid: 398df996f3474f2abdd26d52d5c83dd5 + name: 'Service state' + mappings: + - value: '0' + newvalue: down + - value: '1' + newvalue: up + - uuid: a0ba5fd924d8458d9be8e70db252277d + name: 'VDOM HA state' + mappings: + - value: '1' + newvalue: primary + - value: '2' + newvalue: secondary + - value: '3' + newvalue: standalone + - uuid: b0decb11dd494681b813bc4bd03a6b1a + name: 'VDOM operation mode' + mappings: + - value: '1' + newvalue: nat + - value: '2' + newvalue: transparent + - uuid: 44e1f0b6062c414a8252fe34bad1987c + name: 'VPN status' + mappings: + - value: '1' + newvalue: down + - value: '2' + newvalue: up + - uuid: 08690a78109441c78c8f5bafae3cd3a4 + name: 'Wireless admin status' + mappings: + - value: '0' + newvalue: other + - value: '1' + newvalue: discovered + - value: '2' + newvalue: disable + - value: '3' + newvalue: enable + - uuid: a5a52ea3f94242eba7220554244ce63a + name: 'Wireless band type' + mappings: + - value: '0' + newvalue: other + - value: '1' + newvalue: 2Ghz + - value: '2' + newvalue: 5Ghz + - uuid: 40c5ac1ba5034b5490faa930ee7ed331 + name: 'Wireless connection status' + mappings: + - value: '0' + newvalue: other + - value: '1' + newvalue: offLine + - value: '2' + newvalue: onLine + - value: '3' + newvalue: downloadingImage + - value: '4' + newvalue: connectedImage + graphs: + - uuid: 10704dd2fbe3420884903ec095f80f57 + name: 'FortiGate: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'system.cpu.util[fgSysCpuUsage.0]' + - uuid: 1adeceeb1cd345aa88bb69e66b34557a + name: 'FortiGate: Disk usage' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'vfs.fs.total[fgSysDiskCapacity.0]' + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by SNMP' + key: vfs.fs.free + - uuid: 37a96e0d20fe4084901087278327a24b + name: 'FortiGate: IPS statistics' + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'FortiGate by SNMP' + key: 'ips.blocked[fgIpsIntrusionsBlocked.0]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'FortiGate by SNMP' + key: 'ips.detected.total[fgIpsIntrusionsDetected.0]' + - sortorder: '2' + color: 00611C + item: + host: 'FortiGate by SNMP' + key: 'ips.detected.crit[fgIpsCritSevDetections.0]' + - sortorder: '3' + color: F7941D + item: + host: 'FortiGate by SNMP' + key: 'ips.detected.high[fgIpsHighSevDetections.0]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'FortiGate by SNMP' + key: 'ips.detected.med[fgIpsMedSevDetections.0]' + - sortorder: '5' + color: 6C59DC + item: + host: 'FortiGate by SNMP' + key: 'ips.detected.low[fgIpsLowSevDetections.0]' + - sortorder: '6' + color: C7A72D + item: + host: 'FortiGate by SNMP' + key: 'ips.detected.info[fgIpsInfoSevDetections.0]' + - sortorder: '7' + color: BA2A5D + item: + host: 'FortiGate by SNMP' + key: 'ips.detected.anomaly[fgIpsAnomalyDetections.0]' + - sortorder: '8' + color: F230E0 + item: + host: 'FortiGate by SNMP' + key: 'ips.detected.sign[fgIpsSignatureDetections.0]' + - uuid: 50e99d0db49c4d88b2aff88e63834b6d + name: 'FortiGate: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'vm.memory.total[fgSysMemCapacity.0]' + - sortorder: '1' + color: F63100 + item: + host: 'FortiGate by SNMP' + key: 'vm.memory.available[fgSysMemFree.0]' + - uuid: a444a1d380e542d2b0390fd94af5eb9a + name: 'FortiGate: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'FortiGate by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.0]' diff --git a/FreeBSD_by_Zabbix_agent.yaml b/FreeBSD_by_Zabbix_agent.yaml new file mode 100644 index 0000000..fb61167 --- /dev/null +++ b/FreeBSD_by_Zabbix_agent.yaml @@ -0,0 +1,1103 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: a3dc630729e443139f4e608954fa6e19 + template: 'FreeBSD by Zabbix agent' + name: 'FreeBSD by Zabbix agent' + description: | + This is an official FreeBSD template. It requires Zabbix agent 7.0 or newer. + + Notes on filesystem (FS) discovery: + - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default. + - BTRFS allocates a default of 10% of the volume for its own needs. + - To mitigate potential disasters, FS usage triggers are based on the maximum available space. + - Utilization formula: 'pused = 100 - 100 * (available / total - free + available)' + - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: 74bc1a15ef314d5f9b26332531885c0d + name: 'Host name of Zabbix agent running' + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: da59d099f7614653b37b8eaaa518ebd2 + name: 'Zabbix agent ping' + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + - uuid: e2b84269401e41acb973bc29666b9e7a + name: 'Version of Zabbix agent running' + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: d1b2d3cc2b7e44af8f9bfee11e04bf21 + name: 'Maximum number of opened files' + key: kernel.maxfiles + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + tags: + - tag: component + value: os + triggers: + - uuid: 00f035b7890d4227a84a942ba5730df3 + expression: 'last(/FreeBSD by Zabbix agent/kernel.maxfiles)<1024' + name: 'FreeBSD: Configured max number of opened files is too low on {HOST.NAME}' + priority: INFO + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: 58244a8e72694ffcbba5a78a910ae818 + name: 'Maximum number of processes' + key: kernel.maxproc + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + tags: + - tag: component + value: os + - tag: component + value: processes + triggers: + - uuid: 0d2417112c1e4ef38a4b763872cbb18b + expression: 'last(/FreeBSD by Zabbix agent/kernel.maxproc)<256' + name: 'FreeBSD: Configured max number of processes is too low on {HOST.NAME}' + priority: INFO + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: 448c6de07b244281a4b1defe2e811773 + name: 'Number of running processes' + key: 'proc.num[,,run]' + description: 'Number of processes in a running state.' + tags: + - tag: component + value: os + - tag: component + value: processes + triggers: + - uuid: 837fdc71174246d987a6f7f277d65f6c + expression: 'avg(/FreeBSD by Zabbix agent/proc.num[,,run],5m)>30' + name: 'FreeBSD: Too many processes running on {HOST.NAME}' + priority: WARNING + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: 5fd5b351d8214eac8f4f4649594c27eb + name: 'Number of processes' + key: 'proc.num[]' + description: 'Total number of processes in any state.' + tags: + - tag: component + value: os + - tag: component + value: processes + triggers: + - uuid: 0d5ac85120734fa98d3eef01b6f4033b + expression: 'avg(/FreeBSD by Zabbix agent/proc.num[],5m)>300' + name: 'FreeBSD: Too many processes on {HOST.NAME}' + priority: WARNING + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: 4a533b30c43e42fb8c9eabada0817186 + name: 'Host boot time' + key: system.boottime + delay: 10m + units: unixtime + tags: + - tag: component + value: os + - uuid: db555e8318cf4e7aa7beb85aa0250697 + name: 'Interrupts per second' + key: system.cpu.intr + units: ips + description: 'Number of interrupts processed.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: 2336b2ec03a846f3bed1e64384b2532e + name: 'Processor load (1 min average per core)' + key: 'system.cpu.load[percpu,avg1]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + triggers: + - uuid: 8c339065ecc54b7d8c2e4405f2149f27 + expression: 'avg(/FreeBSD by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5' + name: 'FreeBSD: Processor load is too high on {HOST.NAME}' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: de68f40fc96648c0925c1f6a4ca6776e + name: 'Processor load (5 min average per core)' + key: 'system.cpu.load[percpu,avg5]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: ad9ebf859f7346ca885c1edcb7333d78 + name: 'Processor load (15 min average per core)' + key: 'system.cpu.load[percpu,avg15]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 0a140185a5114dd29451bfac68abdde5 + name: 'Context switches per second' + key: system.cpu.switches + units: sps + description: 'The combined rate at which all processors on the computer are switched from one thread to another.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: 7612803821c845889bda84b7f1ac9ae5 + name: 'CPU idle time' + key: 'system.cpu.util[,idle]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent doing nothing.' + tags: + - tag: component + value: cpu + - uuid: f2acc3cd432546e5a223095a0ea2f096 + name: 'CPU interrupt time' + key: 'system.cpu.util[,interrupt]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent servicing hardware interrupts.' + tags: + - tag: component + value: cpu + - uuid: efa92492bec0437ba74f47d694500cab + name: 'CPU nice time' + key: 'system.cpu.util[,nice]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that have been niced.' + tags: + - tag: component + value: cpu + - uuid: c9479b02b04141128b1ce7c8f3726c09 + name: 'CPU system time' + key: 'system.cpu.util[,system]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running the kernel and its processes.' + tags: + - tag: component + value: cpu + - uuid: 1f3bc82009e04b59845a0e15004637ad + name: 'CPU user time' + key: 'system.cpu.util[,user]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that are not niced.' + tags: + - tag: component + value: cpu + - uuid: c17d001bd20a4732b8ef487366c6aa42 + name: 'Host name' + key: system.hostname + delay: 1h + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: f48fb8ce1229492dae62de362c8c9539 + expression: 'last(/FreeBSD by Zabbix agent/system.hostname,#1)<>last(/FreeBSD by Zabbix agent/system.hostname,#2)' + name: 'FreeBSD: Hostname was changed on {HOST.NAME}' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 4095ed7d606a47439294097a98af2c4f + name: 'Host local time' + key: system.localtime + units: unixtime + description: 'The local system time of the host.' + tags: + - tag: component + value: os + - uuid: 63fc1259011f4250901889979cdf472c + name: 'Free swap space' + key: 'system.swap.size[,free]' + units: B + description: 'The free space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 187d11e610b94b468d18b88ca38f2c32 + name: 'Free swap space in %' + key: 'system.swap.size[,pfree]' + value_type: FLOAT + units: '%' + description: 'The free space of the swap volume/file expressed in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: a125b6786d55426eb19afe284cee1f76 + expression: 'last(/FreeBSD by Zabbix agent/system.swap.size[,pfree])<50' + name: 'FreeBSD: Lack of free swap space on {HOST.NAME}' + priority: WARNING + description: 'The system might need more physical memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 9647b0b857074c4b9c14f15bb04af096 + name: 'Total swap space' + key: 'system.swap.size[,total]' + delay: 1h + units: B + description: 'Total space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 4523ae069e0b4e16bcb5182c6dbf63f2 + name: 'System information' + key: system.uname + delay: 1h + value_type: CHAR + trends: '0' + description: 'Information as normally returned by `uname -a`.' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: ea2f9c186798420da781bd835fa0eaed + expression: 'last(/FreeBSD by Zabbix agent/system.uname,#1)<>last(/FreeBSD by Zabbix agent/system.uname,#2)' + name: 'FreeBSD: Host information was changed on {HOST.NAME}' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: a49b956d592c4e2ba41caac3671e009f + name: 'System uptime' + key: system.uptime + delay: 10m + units: uptime + tags: + - tag: component + value: os + triggers: + - uuid: 809e57eb897b43fb8538e76ec7dd6602 + expression: 'change(/FreeBSD by Zabbix agent/system.uptime)<0' + name: 'FreeBSD: {HOST.NAME} has just been restarted' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: fec3e877764e4bfd98e77da9d8c73606 + name: 'Number of logged in users' + key: system.users.num + description: 'The number of users who are currently logged in.' + tags: + - tag: component + value: os + - uuid: 2bb327cd5f8c49d9b680142825b9c030 + name: 'Checksum of /etc/passwd' + key: 'vfs.file.cksum[/etc/passwd,sha256]' + delay: 15m + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: security + triggers: + - uuid: 27b4e5de411949a4befa7171a2af6441 + expression: 'last(/FreeBSD by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/FreeBSD by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)' + name: 'FreeBSD: /etc/passwd has been changed on {HOST.NAME}' + priority: WARNING + tags: + - tag: scope + value: security + - uuid: 9695b40b38f74bb3bb5d127af1ba13ce + name: 'Get filesystems' + key: vfs.fs.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.' + tags: + - tag: component + value: raw + - uuid: 561c7a383b944bca9ec5f7c44e322fed + name: 'Available memory' + key: 'vm.memory.size[available]' + units: B + description: 'Defined as free + cached + buffers.' + tags: + - tag: component + value: memory + triggers: + - uuid: f8fcce1904ab46088fa80433b85f2e83 + expression: 'last(/FreeBSD by Zabbix agent/vm.memory.size[available])<20M' + name: 'FreeBSD: Lack of available memory on server {HOST.NAME}' + priority: AVERAGE + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: ffa54e82b7914672a3f7134134ac2638 + name: 'Total memory' + key: 'vm.memory.size[total]' + delay: 1h + units: B + description: 'Total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: cbfaa94dc7bc4606a792aaf357054075 + name: 'Zabbix agent availability' + type: INTERNAL + key: 'zabbix[host,agent,available]' + description: 'Used for monitoring the availability status of the agent.' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: fd9d36aaedff45f59017b1e714a5db69 + expression: 'max(/FreeBSD by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0' + name: 'FreeBSD: Zabbix agent is not available' + event_name: 'FreeBSD: Zabbix agent is not available (for {$AGENT.TIMEOUT})' + priority: AVERAGE + description: 'For passive checks only. The availability of the agent(s) and a host is used with `{$AGENT.TIMEOUT}` as the time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: cac3466488a544198f766d1152878456 + name: 'Network interface discovery' + key: net.if.discovery + delay: 1h + filter: + conditions: + - macro: '{#IFNAME}' + value: '@Network interfaces for discovery' + formulaid: A + description: 'Used for the discovery of network interfaces.' + item_prototypes: + - uuid: b1f9e472c6ed467d8cb0cc1739c39b59 + name: 'Interface {#IFNAME}: Incoming network traffic' + key: 'net.if.in[{#IFNAME}]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: ac93068d05084aa0a32a1bee78df3bd8 + name: 'Interface {#IFNAME}: Outgoing network traffic' + key: 'net.if.out[{#IFNAME}]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + graph_prototypes: + - uuid: 1f52d0c9ee934eb3a5198ab53fdf4679 + name: 'Interface {#IFNAME}: Network traffic' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 00AA00 + item: + host: 'FreeBSD by Zabbix agent' + key: 'net.if.in[{#IFNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 3333FF + item: + host: 'FreeBSD by Zabbix agent' + key: 'net.if.out[{#IFNAME}]' + - uuid: 4fd60a606c6343e9a7d7808d1d1f6008 + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: vfs.fs.dependent.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'The discovery of mounted filesystems with different types.' + item_prototypes: + - uuid: a5cdfe771122483fa1a88b2ea5c26b36 + name: 'FS [{#FSNAME}]: Inodes: Free, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free metadata space expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.inodes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: b9f632d35efd4958bd665ac0764c6da4 + expression: 'min(/FreeBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + name: 'FreeBSD: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'FreeBSD: {#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 2b87c38f49b146f1b801319d03a19dc3 + expression: 'min(/FreeBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' + name: 'FreeBSD: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'FreeBSD: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + dependencies: + - name: 'FreeBSD: FS [{#FSNAME}]: Running out of free inodes' + expression: 'min(/FreeBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 2ed6230d292a4037b67fe549c719e7ee + name: 'FS [{#FSNAME}]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + delay: '0' + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.free + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: aa0dd0eb957a4485b1a62f715381019a + name: 'FS [{#FSNAME}]: Space: Available, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Deprecated metric. + Space availability expressed as a percentage, calculated using the current and maximum available spaces. + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: deprecated + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 5db5afc2278744efadcf71d8531e40fa + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pused + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: a14b0a2369404525aa1e079a16a222f1 + expression: 'min(/FreeBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'FreeBSD: FS [{#FSNAME}]: Space is critically low' + event_name: 'FreeBSD: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 01ea8e7f30564586af3b48adb3c930c1 + expression: 'min(/FreeBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'FreeBSD: FS [{#FSNAME}]: Space is low' + event_name: 'FreeBSD: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'FreeBSD: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/FreeBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 6daede58ae8f4e42a4aa2539a552ab08 + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + delay: '0' + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.total + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 6efb08c26e1b439181a17d462ec1dab8 + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + delay: '0' + units: B + description: 'Used storage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.used + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 94deedece667494398cbc537314911dd + name: 'FS [{#FSNAME}]: Get data' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},data]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Intermediate data of `{#FSNAME}` filesystem.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.fsname==''{#FSNAME}'')].first()' + master_item: + key: vfs.fs.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 5e2e9d6a08e34a37832bced869a75b1e + name: 'FS [{#FSNAME}]: Option: Read-only' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},readonly]' + delay: '0' + description: 'The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.' + preprocessing: + - type: JSONPATH + parameters: + - $.options + error_handler: DISCARD_VALUE + - type: REGEX + parameters: + - '(?:^|,)read-only\b' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: f5a2fc8328d647d48eb3c2ebda361dc3 + expression: 'last(/FreeBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/FreeBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=1' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/FreeBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=0' + name: 'FreeBSD: FS [{#FSNAME}]: Filesystem has become read-only' + priority: AVERAGE + description: 'The filesystem has become read-only, possibly due to an I/O error. Available only for Zabbix agents 6.4 and higher.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 6c07aee93f0f4da696112b276ef7ca65 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'FreeBSD by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + - uuid: 7db8f820b1f74bae9bd1a7dbe08c2ef5 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'FreeBSD by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'FreeBSD by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'FreeBSD by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + master_item: + key: vfs.fs.get + lld_macro_paths: + - lld_macro: '{#FSNAME}' + path: $.fsname + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'fsname': filesystem.fsname, + 'fstype': filesystem.fstype + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Skip metadata collection for dynamic FS' + step: '1' + filter: + conditions: + - macro: '{#FSTYPE}' + value: ^(btrfs|zfs)$ + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Inodes + discover: NO_DISCOVER + tags: + - tag: class + value: os + - tag: target + value: freebsd + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 3m + description: 'Timeout after which the agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (in passive mode).' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: ccdd4aba5a154cd39cffb59e39f96c08 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FreeBSD by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FreeBSD by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + - type: STRING + name: reference + value: AAAEC + - uuid: 618c8fc9d4b640999b3389960f5bead4 + name: 'System performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FreeBSD by Zabbix agent' + name: 'FreeBSD: CPU load' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FreeBSD by Zabbix agent' + name: 'FreeBSD: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'FreeBSD by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAAE + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FreeBSD by Zabbix agent' + name: 'FreeBSD: CPU utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'FreeBSD by Zabbix agent' + name: 'FreeBSD: Swap usage' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 9c02af203e354ac6ac87a742e85f683b + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: b82f35541efe4fc1a432c049eba5d082 + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up + graphs: + - uuid: 3ed928729f2d41139a42ca3ee0204551 + name: 'FreeBSD: CPU jumps' + graph_items: + - color: '009900' + item: + host: 'FreeBSD by Zabbix agent' + key: system.cpu.switches + - sortorder: '1' + color: '000099' + item: + host: 'FreeBSD by Zabbix agent' + key: system.cpu.intr + - uuid: ac8b187522904c0880ea16a2b8727dfc + name: 'FreeBSD: CPU load' + ymin_type_1: FIXED + graph_items: + - color: '009900' + item: + host: 'FreeBSD by Zabbix agent' + key: 'system.cpu.load[percpu,avg1]' + - sortorder: '1' + color: '000099' + item: + host: 'FreeBSD by Zabbix agent' + key: 'system.cpu.load[percpu,avg5]' + - sortorder: '2' + color: '990000' + item: + host: 'FreeBSD by Zabbix agent' + key: 'system.cpu.load[percpu,avg15]' + - uuid: ecdccd78d75d4255948995b510acfefb + name: 'FreeBSD: CPU utilization' + show_triggers: 'NO' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: '009999' + item: + host: 'FreeBSD by Zabbix agent' + key: 'system.cpu.util[,interrupt]' + - sortorder: '1' + color: '990099' + item: + host: 'FreeBSD by Zabbix agent' + key: 'system.cpu.util[,nice]' + - sortorder: '2' + color: '990000' + item: + host: 'FreeBSD by Zabbix agent' + key: 'system.cpu.util[,system]' + - sortorder: '3' + color: '000099' + item: + host: 'FreeBSD by Zabbix agent' + key: 'system.cpu.util[,user]' + - sortorder: '4' + color: '009900' + item: + host: 'FreeBSD by Zabbix agent' + key: 'system.cpu.util[,idle]' + - uuid: 191f6c7b63204fd091d2e82c4f4b678a + name: 'FreeBSD: Memory usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 00C800 + item: + host: 'FreeBSD by Zabbix agent' + key: 'vm.memory.size[available]' + - uuid: 23ade54acd87415080578379ab2cca6b + name: 'FreeBSD: Swap usage' + width: '600' + height: '340' + show_work_period: 'NO' + show_triggers: 'NO' + type: PIE + show_3d: 'YES' + graph_items: + - color: AA0000 + type: GRAPH_SUM + item: + host: 'FreeBSD by Zabbix agent' + key: 'system.swap.size[,total]' + - sortorder: '1' + color: 00AA00 + item: + host: 'FreeBSD by Zabbix agent' + key: 'system.swap.size[,free]' diff --git a/GCP_Cloud_SQL_MSSQL_Replica_by_HTTP.yaml b/GCP_Cloud_SQL_MSSQL_Replica_by_HTTP.yaml new file mode 100644 index 0000000..6627535 --- /dev/null +++ b/GCP_Cloud_SQL_MSSQL_Replica_by_HTTP.yaml @@ -0,0 +1,355 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 54f0ffb538d94a9bb8062df3e63c4cb6 + template: 'GCP Cloud SQL MSSQL Replica by HTTP' + name: 'GCP Cloud SQL MSSQL Replica by HTTP' + description: | + Get GCP Cloud SQL MSSQL monitoring for read-only replicas with script item usage to perform HTTP requests to Google Cloud Platform Monitoring API. + This template will be automatically connected to discovered entities with all their required parameters pre-defined. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Cloud + items: + - uuid: e66fe8bb6f924cb088ec57b215fe21d7 + name: 'Bytes sent to replica' + type: DEPENDENT + key: gcp.cloudsql.mssql.repl.bytes_sent_to_replica_count + delay: '0' + units: B + description: | + Total number of bytes sent to the remote availability replica. + For an async replica, returns the number of bytes before compression. + For a sync replica without compression, returns the actual number of bytes. + preprocessing: + - type: JSONPATH + parameters: + - $.bytes_sent_to_replica_count + master_item: + key: gcp.cloudsql.mssql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 4100432768354e1ca7349a901bccbe85 + name: 'Log apply pending queue' + type: DEPENDENT + key: gcp.cloudsql.mssql.repl.log_apply_pending_queue + delay: '0' + description: 'Current number of log blocks that are waiting to be applied to replica.' + preprocessing: + - type: JSONPATH + parameters: + - $.log_apply_pending_queue + master_item: + key: gcp.cloudsql.mssql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: d060637548af434e926ed833083d9fa0 + name: 'Log bytes received' + type: DEPENDENT + key: gcp.cloudsql.mssql.repl.log_bytes_received_count + delay: '0' + units: B + description: 'Total size of log records received by the replica.' + preprocessing: + - type: JSONPATH + parameters: + - $.log_bytes_received_count + master_item: + key: gcp.cloudsql.mssql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: f0d4c711863f4ca9ad76b0099a66a86d + name: 'Replica metrics get' + type: SCRIPT + key: gcp.cloudsql.mssql.repl.metrics.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'cloudsql.googleapis.com/database/sqlserver/replication/', + obj = {}, + base_paths = [ + 'bytes_sent_to_replica_count | map ignore [replica_name]', + 'resent_message_count | map ignore [replica_name]', + 'log_apply_pending_queue', + 'log_bytes_received_count', + 'recovery_queue', + 'redone_bytes_count' + ]; + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function checkParams(params) { + ['project_id', 'time_window', 'database_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + return params; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + var params = checkParams(JSON.parse(value)), + filter = ' | within ' + params.time_window + " | filter database_id = '" + params.database_id + "'", + j_filter = filter + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + base_raw = getHttpData(url, params.token, { query: '{' + base_paths.map(function (path) { return base_path + path; }).join(';') + '}' + j_filter }), + keys = getField(base_raw, 'timeSeriesDescriptor.pointDescriptors'), + values = getField(base_raw, 'timeSeriesData.0.pointData.0.values'), + re = /(^t_\d+\.value\.)/g; + + for (i in keys) { + var value_types = ['int64Value', 'doubleValue', 'stringValue', 'boolValue']; + + for (v in value_types) { + if (typeof values[i][value_types[v]] !== 'undefined') { + obj[getField(keys[i], 'key').replace(re, '')] = values[i][value_types[v]]; + } + } + } + + return JSON.stringify(obj); + description: 'MSSQL replica metrics data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: database_id + value: '{$GCP.PROJECT.ID}:{HOST.NAME}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Cloud SQL MSSQL Replica"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 4ec364fea7894df29813b65c2d170367 + name: 'Recovery queue' + type: DEPENDENT + key: gcp.cloudsql.mssql.repl.recovery_queue + delay: '0' + units: B + description: 'Current size of log records in bytes in the replica''s log files that have not been redone.' + preprocessing: + - type: JSONPATH + parameters: + - $.recovery_queue + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: gcp.cloudsql.mssql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 37c145777926471482ecffd1b6cca792 + name: 'Redone bytes' + type: DEPENDENT + key: gcp.cloudsql.mssql.repl.redone_bytes_count + delay: '0' + units: B + description: 'Total size in bytes of redone log records.' + preprocessing: + - type: JSONPATH + parameters: + - $.redone_bytes_count + master_item: + key: gcp.cloudsql.mssql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 23911902d27e4fa68435935aeeec28e1 + name: 'Resent messages' + type: DEPENDENT + key: gcp.cloudsql.mssql.repl.resent_message_count + delay: '0' + description: | + Total count of Always On messages to resend. + This includes messages that were attempted to be sent but failed and require resending. + preprocessing: + - type: JSONPATH + parameters: + - $.resent_message_count + master_item: + key: gcp.cloudsql.mssql.repl.metrics.get + tags: + - tag: component + value: replication + tags: + - tag: class + value: cloud + - tag: target + value: cloudsql + - tag: target + value: gcp + - tag: target + value: google-cloud-platform + - tag: target + value: mssql + - tag: target + value: replica + macros: + - macro: '{$GCP.DATA.TIMEOUT}' + value: 15s + description: 'A response timeout for an API.' + - macro: '{$GCP.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$GCP.TIME.WINDOW}' + value: 5m + description: | + Time interval for the data requests. + Supported usage type: + 1. The default update interval for most of the items. + 2. The minimal time window for the data requested in the Monitoring Query Language REST API request. + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "GCP Cloud SQL MSSQL Replica", e.g. {$HTTP.TLS.VERIFY:"GCP Cloud SQL MSSQL Replica"}.' + dashboards: + - uuid: f50d9889ca3c4f6b91dd9e40902e37fb + name: 'MSSQL replica' + pages: + - name: 'MSSQL replica' + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MSSQL Replica by HTTP' + name: 'GCP Cloud SQL MSSQL: Replication data' + - type: STRING + name: reference + value: AAAAA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MSSQL Replica by HTTP' + key: gcp.cloudsql.mssql.repl.log_apply_pending_queue + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '1' + graphs: + - uuid: 0bfd3e8be20c4b5a88b23f16aff4eb82 + name: 'GCP Cloud SQL MSSQL: Replication data' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MSSQL Replica by HTTP' + key: gcp.cloudsql.mssql.repl.bytes_sent_to_replica_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MSSQL Replica by HTTP' + key: gcp.cloudsql.mssql.repl.log_bytes_received_count + - sortorder: '2' + color: 00611C + item: + host: 'GCP Cloud SQL MSSQL Replica by HTTP' + key: gcp.cloudsql.mssql.repl.redone_bytes_count diff --git a/GCP_Cloud_SQL_MSSQL_by_HTTP.yaml b/GCP_Cloud_SQL_MSSQL_by_HTTP.yaml new file mode 100644 index 0000000..77fbe2e --- /dev/null +++ b/GCP_Cloud_SQL_MSSQL_by_HTTP.yaml @@ -0,0 +1,2244 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 507d70db18554a4e9ee5e09bb29bc85f + template: 'GCP Cloud SQL MSSQL by HTTP' + name: 'GCP Cloud SQL MSSQL by HTTP' + description: | + Get GCP Cloud SQL MSSQL instances monitoring with script item usage to perform HTTP requests to Google Cloud Platform Monitoring API. + This template will be automatically connected to discovered entities with all their required parameters pre-defined. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: a8d79cab89864c03a7614bd59f734942 + name: 'Audits size' + type: DEPENDENT + key: gcp.cloudsql.mssql.audits_size + delay: '0' + units: B + description: | + Tracks the size in bytes of stored SQLServer audit files on an instance. + Empty value if there are no audits enabled. + preprocessing: + - type: JSONPATH + parameters: + - $.base_audits_size + error_handler: DISCARD_VALUE + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: security + - uuid: 3026bc61670c496a942a94ab50b614df + name: 'Audits successfully uploaded' + type: DEPENDENT + key: gcp.cloudsql.mssql.audits_upload_count + delay: '0' + description: | + Tracks the size in bytes of stored SQLServer audit files on an instance. + Empty value if there are no audits enabled. + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_success + error_handler: DISCARD_VALUE + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: security + - uuid: d512c542f5514681acbb11431a0a6f5a + name: 'Connection resets' + type: DEPENDENT + key: gcp.cloudsql.mssql.conn.connection_reset_count + delay: '0' + description: 'Total number of login operations started from the connection pool since the last restart of SQL Server service.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_connection_reset_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: connections + - tag: component + value: network + - uuid: 300a6cb53fb44176bdf99eba86a976bd + name: 'Login attempts' + type: DEPENDENT + key: gcp.cloudsql.mssql.conn.login_attempt_count + delay: '0' + description: | + Total number of login attempts since the last restart of SQL Server service. + This does not include pooled connections. + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_login_attempt_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: connections + - tag: component + value: network + - uuid: 622c237ed12e44c7b2415676ec23bd2d + name: Logouts + type: DEPENDENT + key: gcp.cloudsql.mssql.conn.logout_count + delay: '0' + description: 'Total number of logout operations since the last restart of SQL Server service.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_logout_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: connections + - tag: component + value: network + - uuid: 6ba672cbf4c242eb8e6fb80eba4c90d8 + name: 'Processes blocked' + type: DEPENDENT + key: gcp.cloudsql.mssql.conn.processes_blocked + delay: '0' + description: 'Current number of blocked processes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_processes_blocked + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: connections + - tag: component + value: network + - uuid: 38de8ae591854d5fbc4ee4946a2e189a + name: 'Reserved CPU cores' + type: DEPENDENT + key: gcp.cloudsql.mssql.cpu.reserved_cores + delay: '0' + value_type: FLOAT + description: 'Number of cores reserved for the database.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_reserved_cores + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: cpu + - uuid: cd1f9ab326ac4694b3aeea6cb4ec56ab + name: 'CPU usage time' + type: DEPENDENT + key: gcp.cloudsql.mssql.cpu.usage_time + delay: '0' + value_type: FLOAT + units: s + description: 'Cumulative CPU usage time in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_usage_time + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: cpu + - uuid: 42d51e38b96f472996eff1e0f9d7b931 + name: 'CPU utilization' + type: DEPENDENT + key: gcp.cloudsql.mssql.cpu.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'Current CPU utilization represented as a percentage of the reserved CPU that is currently in use.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_utilization + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: cpu + triggers: + - uuid: b8280e45fea8470e9f36f7f08e4a77e1 + expression: 'min(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.cpu.utilization,5m) >= {$CLOUD_SQL.MSSQL.CPU.UTIL.MAX}' + name: 'GCP MSSQL: High CPU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: ecdd1774ef744bcb93e8e4094e29772f + name: 'Databases get' + type: SCRIPT + key: gcp.cloudsql.mssql.db.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'cloudsql.googleapis.com/database/sqlserver/transactions/', + arr = [], + base_paths = [ + 'log_bytes_flushed_count', + 'transaction_count' + ]; + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function checkParams(params) { + ['project_id', 'time_window', 'database_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + return params; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + var params = checkParams(JSON.parse(value)), + j_filter = ' | within ' + params.time_window + " | filter database_id = '" + params.database_id + "'" + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + raw = getHttpData(url, params.token, { query: '{' + base_paths.map(function (path) { return base_path + path; }).join(';') + '}' + j_filter }), + metrics = getField(raw, 'timeSeriesDescriptor.pointDescriptors'), + time_series = getField(raw, 'timeSeriesData'); + + for (t in time_series) { + data = { + database: getField(time_series[t], 'labelValues.3.stringValue'), + metrics: {} + }; + + for (i in metrics) { + re = /(^t_\d+\.value(_|\.))/g; + data['metrics'][getField(metrics[i], 'key').replace(re, '')] = getField(time_series[t], 'pointData.0.values.' + i + '.int64Value'); + } + arr.push(data); + } + return JSON.stringify(arr); + description: 'MSSQL databases data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: database_id + value: '{$GCP.PROJECT.ID}:{HOST.NAME}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Cloud SQL MSSQL"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 9806c645a10a4e1d8fbb39eb1d3ac993 + name: 'DB engine state' + type: HTTP_AGENT + key: gcp.cloudsql.mssql.db.state + description: 'GCP Cloud SQL MSSQL DB Engine State.' + valuemap: + name: 'Database availability' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: JSONPATH + parameters: + - '$.timeSeriesData[0].pointData[0].values[0].int64Value' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + timeout: '{$GCP.DATA.TIMEOUT}' + url: 'https://monitoring.googleapis.com/v3/projects/{$GCP.PROJECT.ID}/timeSeries:query' + status_codes: '' + posts: '{"query":"cloudsql.googleapis.com/database/up | within 5m | filter database_id = ''{$GCP.PROJECT.ID}:{HOST.NAME}''"}' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Bearer {$GCP.AUTH.TOKEN}' + request_method: POST + tags: + - tag: component + value: status + triggers: + - uuid: b3c7b8e2e38a42fe9d2ae3c84b637e53 + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.db.state)=0' + name: 'GCP MSSQL: Database engine is down' + priority: AVERAGE + description: | + Database engine is down. + If an instance experiences unplanned (non-maintenance) downtime, the instance state will still be RUNNING, but the database engine state metric will report 0. + dependencies: + - name: 'GCP MSSQL: Failed to get the instance state' + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 10' + - name: 'GCP MSSQL: Instance is in failed state' + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 5' + - name: 'GCP MSSQL: Instance is in maintenance' + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 4' + - name: 'GCP MSSQL: Instance is in suspended state' + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 1' + - name: 'GCP MSSQL: Instance is in unknown state' + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 6' + - name: 'GCP MSSQL: Instance is stopped by the owner' + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 2' + tags: + - tag: scope + value: availability + - uuid: cd6cf3870a514ff59bd1f40987764642 + name: 'Disk bytes used' + type: DEPENDENT + key: gcp.cloudsql.mssql.disk.bytes_used + delay: '0' + units: B + description: 'Data utilization in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_bytes_used + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: storage + - uuid: 86bdbf20c9b4466c9ea00e26cb0f0652 + name: 'Disk size' + type: DEPENDENT + key: gcp.cloudsql.mssql.disk.quota + delay: '0' + units: B + description: 'Maximum data disk size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_quota + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: storage + - uuid: 400a7318203f40928ebf0b023da65848 + name: 'Disk read I/O' + type: DEPENDENT + key: gcp.cloudsql.mssql.disk.read_ops_count + delay: '0' + description: 'Delta count of data disk read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_read_ops_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: storage + - uuid: 1d0c09441d9d4333b7be32c3d69bad47 + name: 'Disk utilization' + type: DEPENDENT + key: gcp.cloudsql.mssql.disk.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: | + The fraction of the disk quota that is currently in use. + Shown as percentage. + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_utilization + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: storage + triggers: + - uuid: 2cbc7e3008f24197963df4ea920ab5a8 + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.disk.utilization) >= {$CLOUD_SQL.MSSQL.DISK.UTIL.CRIT}' + name: 'GCP MSSQL: Disk space is critically low' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'Critical utilization of the disk space.' + tags: + - tag: scope + value: capacity + - uuid: 2569abbb94ca4df38cdd4f9d5a5df9fc + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.disk.utilization) >= {$CLOUD_SQL.MSSQL.DISK.UTIL.WARN}' + name: 'GCP MSSQL: Disk space is low' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: WARNING + description: 'High utilization of the storage space.' + dependencies: + - name: 'GCP MSSQL: Disk space is critically low' + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.disk.utilization) >= {$CLOUD_SQL.MSSQL.DISK.UTIL.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: 819078cd99af46368eb33d76dadf4861 + name: 'Disk write I/O' + type: DEPENDENT + key: gcp.cloudsql.mssql.disk.write_ops_count + delay: '0' + description: 'Delta count of data disk write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_write_ops_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: storage + - uuid: 556c96cf1bf342f99c69dc47813f221e + name: 'Instance state' + type: HTTP_AGENT + key: gcp.cloudsql.mssql.inst.state + description: 'GCP Cloud SQL MSSQL Current instance state.' + valuemap: + name: 'Instance state' + preprocessing: + - type: JSONPATH + parameters: + - '$.timeSeriesData[0].pointData[0].values[0].stringValue' + error_handler: CUSTOM_VALUE + error_handler_params: '10' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'RUNNING', + 'SUSPENDED', + 'RUNNABLE', + 'PENDING_CREATE', + 'MAINTENANCE', + 'FAILED', + 'UNKNOWN_STATE' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + timeout: '{$GCP.DATA.TIMEOUT}' + url: 'https://monitoring.googleapis.com/v3/projects/{$GCP.PROJECT.ID}/timeSeries:query' + status_codes: '' + posts: '{"query":"cloudsql.googleapis.com/database/state | within 5m | filter database_id = ''{$GCP.PROJECT.ID}:{HOST.NAME}''"}' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Bearer {$GCP.AUTH.TOKEN}' + request_method: POST + tags: + - tag: component + value: status + triggers: + - uuid: dff9067ad7de4ab1a4f83c9d482e6b71 + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 10' + name: 'GCP MSSQL: Failed to get the instance state' + priority: AVERAGE + description: | + Failed to get the instance state. + Check access permissions to GCP API or service account. + tags: + - tag: scope + value: availability + - uuid: 3d7e054340e94b09b085e508b9b76841 + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 5' + name: 'GCP MSSQL: Instance is in failed state' + priority: AVERAGE + description: 'The instance creation failed, or an operation left the instance in an own bad state.' + tags: + - tag: scope + value: availability + - uuid: dd395fd3003f4fce847cd72309cdf7ec + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 4' + name: 'GCP MSSQL: Instance is in maintenance' + priority: INFO + description: 'The instance is down for maintenance.' + tags: + - tag: scope + value: availability + - uuid: 3c080bba511e44aab1139b66f00451ee + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 1' + name: 'GCP MSSQL: Instance is in suspended state' + priority: WARNING + description: | + The instance is in suspended state. + It is not available, for example, due to problems with billing. + tags: + - tag: scope + value: availability + - uuid: 378b4d62582d416db7cb7fd6ed099ac9 + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 6' + name: 'GCP MSSQL: Instance is in unknown state' + priority: AVERAGE + description: 'The state of the instance is unknown.' + tags: + - tag: scope + value: availability + - uuid: 72ecba08f6424573a36b816da9695b89 + expression: 'last(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.inst.state) = 2' + name: 'GCP MSSQL: Instance is stopped by the owner' + priority: INFO + description: | + The instance has been stopped by the owner. + It is not currently running, but it's ready to be restarted. + tags: + - tag: scope + value: availability + - uuid: a29584de7ab142309f0bb6f57b52af85 + name: 'Buffer cache hit ratio' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.buffer_cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: | + Current percentage of pages found in the buffer cache without having to read from disk. + The ratio is the total number of cache hits divided by the total number of cache lookups. + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_buffer_cache_hit_ratio + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: f8460bbac21c44a98a31a49daf7f692f + name: 'Checkpoint pages' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.checkpoint_page_count + delay: '0' + description: 'Total number of pages flushed to disk by a checkpoint or other operation that requires all dirty pages to be flushed.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_checkpoint_page_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: cc6a5230c7a2447e8038cdbe52105da4 + name: 'Free list stalls' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.free_list_stall_count + delay: '0' + description: 'Total number of requests that had to wait for a free page.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_free_list_stall_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: d86e328fc5fa4c3d938a4959075299b5 + name: 'Lazy writes' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.lazy_write_count + delay: '0' + description: | + Total number of buffers written by the buffer manager's lazy writer. + The lazy writer is a system process that flushes out batches of dirty, aged buffers + (buffers that contain changes that must be written back to disk before the buffer can be reused for a different page) + and makes them available to user processes. + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_lazy_write_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: 2fa0744221884109951ce62d3bb9aaaf + name: 'Memory grants pending' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.memory_grants_pending + delay: '0' + description: 'Current number of processes waiting for a workspace memory grant.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_memory_grants_pending + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: 3dcad151d0c04f8eb0e8e81c00de23c8 + name: 'Page life expectancy' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.page_life_expectancy + delay: '0' + units: s + description: 'Current number of seconds a page will stay in the buffer pool without references.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_page_life_expectancy + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: 4d87a50d490348afbaf751857beb5b61 + name: 'Read page operations' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.page_ops.read + delay: '0' + description: | + Total number of physical database page reads. + This metric counts physical page reads across all databases. + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_read + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: 41654bd730b744acbc0ea6de07c992f3 + name: 'Write age operations' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.page_ops.write + delay: '0' + description: | + Total number of physical database page writes. + This metric counts physical page writes across all databases. + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_write + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: db943300803847718c52d0d33988d81e + name: 'Memory size' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.quota + delay: '0' + units: B + description: 'Maximum RAM size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_quota + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: 21b075a5f95d4c93888b7a0766fdcea5 + name: 'Memory used by DB engine' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.total_usage + delay: '0' + units: B + description: | + Total RAM usage in bytes. + This metric reports the RAM usage of the database process, including the buffer/cache. + preprocessing: + - type: JSONPATH + parameters: + - $.base_total_usage + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: 05d1ff573371416dad9ee028247b1cf3 + name: 'Memory usage' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.usage + delay: '0' + units: B + description: | + The RAM usage in bytes. + This metric reports the RAM usage of the server, excluding the buffer/cache. + preprocessing: + - type: JSONPATH + parameters: + - $.base_usage + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + - uuid: 4e11944fb7624ffdb02b5d1bb5bedf7a + name: 'Memory utilization' + type: DEPENDENT + key: gcp.cloudsql.mssql.memory.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: | + The fraction of the memory quota that is currently in use. + Shown as percentage. + preprocessing: + - type: JSONPATH + parameters: + - $.base_ram_pused + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: memory + triggers: + - uuid: c5003533f3524b8b868a0c2f86b1fa9b + expression: 'min(/GCP Cloud SQL MSSQL by HTTP/gcp.cloudsql.mssql.memory.utilization,5m) >= {$CLOUD_SQL.MSSQL.RAM.UTIL.MAX}' + name: 'GCP MSSQL: High memory utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: HIGH + description: 'RAM utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 6de08b07cecc47a88bde22de5d1b4e5a + name: 'Metrics get' + type: SCRIPT + key: gcp.cloudsql.mssql.metrics.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'cloudsql.googleapis.com/database/', + mssql_path = 'cloudsql.googleapis.com/database/sqlserver/', + obj = {}, + base_paths = [ + 'cpu/reserved_cores', + 'cpu/usage_time', + 'cpu/utilization', + 'disk/read_ops_count', + 'disk/write_ops_count', + 'memory/quota', + 'memory/total_usage', + 'memory/usage', + 'network/connections', + 'network/received_bytes_count', + 'network/sent_bytes_count | map ignore [destination]' + ].map(function (path) { return base_path + path; }), + mssql_paths = [ + 'connections/connection_reset_count', + 'connections/login_attempt_count', + 'connections/logout_count', + 'connections/processes_blocked', + 'memory/buffer_cache_hit_ratio', + 'memory/checkpoint_page_count', + 'memory/lazy_write_count', + 'memory/memory_grants_pending', + 'memory/page_life_expectancy', + 'memory/free_list_stall_count', + 'transactions/batch_request_count', + 'transactions/forwarded_record_count', + 'transactions/full_scan_count', + 'transactions/page_split_count', + 'transactions/probe_scan_count', + 'transactions/sql_compilation_count', + 'transactions/sql_recompilation_count' + ].map(function (path) { return mssql_path + path; }).concat( + ['disk/bytes_used', 'disk/utilization', 'disk/quota'].map(function (path) { return base_path + path; })), + value_types = ['int64Value', 'doubleValue', 'stringValue', 'boolValue']; + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function getFieldBool(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + return false; + } + data = data[step]; + } + return true; + } + + function checkParams(params) { + ['project_id', 'time_window', 'database_id', 'token', 'audited'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + if (params.audited !== 'true' && params.audited !== 'false') { + throw 'Incorrect audit definition type. Valid definitions: true/false'; + } + return params; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + function rawMap(raw, prefix) { + var keys = getField(raw, 'timeSeriesDescriptor.pointDescriptors'), + values = getField(raw, 'timeSeriesData.0.pointData.0.values'), + re = /(^t_\d+\.value\.)/g; + + for (i in keys) { + var key = getField(keys[i], 'key').replace(re, ''); + + for (v in value_types) { + if (typeof values[i][value_types[v]] !== 'undefined') { + if (prefix) { + obj[prefix + key] = values[i][value_types[v]]; + } + else { + obj[key] = values[i][value_types[v]]; + } + + } + } + } + return obj; + } + + function singleMetrics(tsd) { + var result = {}; + + for (t in tsd) { + for (v in value_types) { + if (getFieldBool(tsd[t], 'pointData.0.values.0.' + [value_types[v]])) { + result['mssql_' + getField(tsd[t], 'labelValues.3.stringValue').toLowerCase()] = tsd[t].pointData[0].values[0][value_types[v]]; + break; + } + } + } + return result; + } + + var params = checkParams(JSON.parse(value)); + + if (params.audited === 'true') { + base_paths.push(mssql_path + 'audits_size'); + }; + + var filter = ' | within ' + params.time_window + " | filter database_id = '" + params.database_id + "'", + j_filter = filter + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + queries = [ + { name: 'base_', data: { query: '{' + base_paths.join(';') + '}' + j_filter } }, + { name: 'mssql_', data: { query: '{' + mssql_paths.join(';') + '}' + j_filter } } + ]; + + for (q in queries) { + raw = getHttpData(url, params.token, queries[q].data); + obj = Object.assign(obj, rawMap(raw, queries[q].name)); + } + + obj.base_ram_pused = Math.floor(getField(obj, 'base_usage') / getField(obj, 'base_quota') * 100); + + var single_queries = [ + { query: mssql_path + 'memory/page_operation_count' + filter } + ]; + + if (params.audited === 'true') { + single_queries.push({ query: mssql_path + 'audits_upload_count' + filter }); + } + + for (q in single_queries) { + raw = getHttpData(url, params.token, single_queries[q]); + Object.assign(obj, singleMetrics(getField(raw, 'timeSeriesData'))); + } + + return JSON.stringify(obj); + description: 'MSSQL metrics data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: audited + value: '{$CLOUD_SQL.MSSQL.AUDITED}' + - name: database_id + value: '{$GCP.PROJECT.ID}:{HOST.NAME}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Cloud SQL MSSQL"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 393b6117008d4925be9474afc9c7cdf9 + name: Connections + type: DEPENDENT + key: gcp.cloudsql.mssql.network.connections + delay: '0' + description: 'Number of connections to the databases on the Cloud SQL instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_connections + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: connections + - tag: component + value: network + - uuid: 297744bfcdd84565b828e1c6912beb46 + name: 'Network: Received bytes' + type: DEPENDENT + key: gcp.cloudsql.mssql.network.received_bytes_count + delay: '0' + units: B + description: 'Delta count of bytes received through the network.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_received_bytes_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: b362d14169b34f00ab3fa94b89a1b362 + name: 'Network: Sent bytes' + type: DEPENDENT + key: gcp.cloudsql.mssql.network.sent_bytes_count + delay: '0' + units: B + description: 'Delta count of bytes sent through the network.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_sent_bytes_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 7ee117702e1f40faadd901faa9d333ff + name: 'Resources get' + type: SCRIPT + key: gcp.cloudsql.mssql.resources.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'cloudsql.googleapis.com/database/sqlserver/transactions/', + arr = [], + base_paths = [ + 'deadlock_count', + 'lock_wait_count', + 'lock_wait_time' + ]; + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function checkParams(params) { + ['project_id', 'time_window', 'database_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + return params; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + var params = checkParams(JSON.parse(value)), + j_filter = ' | within ' + params.time_window + " | filter database_id = '" + params.database_id + "'" + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + raw = getHttpData(url, params.token, { query: '{' + base_paths.map(function (path) { return base_path + path; }).join(';') + '}' + j_filter }), + metrics = getField(raw, 'timeSeriesDescriptor.pointDescriptors'), + time_series = getField(raw, 'timeSeriesData'); + + for (t in time_series) { + data = { + resource: getField(time_series[t], 'labelValues.3.stringValue'), + metrics: {} + }; + + for (i in metrics) { + re = /(^t_\d+\.value(_|\.))/g; + data['metrics'][getField(metrics[i], 'key').replace(re, '')] = getField(time_series[t], 'pointData.0.values.' + i + '.int64Value'); + } + arr.push(data); + } + return JSON.stringify(arr); + description: 'MSSQL resources data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: database_id + value: '{$GCP.PROJECT.ID}:{HOST.NAME}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Cloud SQL MSSQL"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 3c14882329b94b8e88ca5d85e21bb7c8 + name: 'Schedulers get' + type: SCRIPT + key: gcp.cloudsql.mssql.schedulers.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'cloudsql.googleapis.com/database/sqlserver/schedulers/', + arr = [], + base_paths = ['active_workers', 'current_tasks', 'current_workers', 'pending_disk_io', 'runnable_tasks', 'work_queue']; + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function checkParams(params) { + ['project_id', 'time_window', 'database_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + return params; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + var params = checkParams(JSON.parse(value)), + j_filter = ' | within ' + params.time_window + " | filter database_id = '" + params.database_id + "'" + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + raw = getHttpData(url, params.token, { query: '{' + base_paths.map(function (path) { return base_path + path; }).join(';') + '}' + j_filter }), + metrics = getField(raw, 'timeSeriesDescriptor.pointDescriptors'), + time_series = getField(raw, 'timeSeriesData'); + + for (t in time_series) { + data = { + scheduler: getField(time_series[t], 'labelValues.3.stringValue'), + metrics: {} + }; + + for (i in metrics) { + re = /(^t_\d+\.value(_|\.))/g; + data['metrics'][getField(metrics[i], 'key').replace(re, '')] = getField(time_series[t], 'pointData.0.values.' + i + '.int64Value'); + } + arr.push(data); + } + return JSON.stringify(arr); + description: 'MSSQL schedulers data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: database_id + value: '{$GCP.PROJECT.ID}:{HOST.NAME}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Cloud SQL MSSQL"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 7d2c28a537e44ee284e4b5d186b935d6 + name: 'Batch requests' + type: DEPENDENT + key: gcp.cloudsql.mssql.trans.batch_request_count + delay: '0' + description: 'Total number of Transact-SQL command batches received.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_batch_request_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: transactions + - uuid: 774cffa1a1f24d778f346bea24926690 + name: 'Forwarded records' + type: DEPENDENT + key: gcp.cloudsql.mssql.trans.forwarded_record_count + delay: '0' + description: 'Total number of records fetched through forwarded record pointers.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_forwarded_record_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: transactions + - uuid: f80a924d20c4470496202d3e32261e7d + name: 'Full scans' + type: DEPENDENT + key: gcp.cloudsql.mssql.trans.full_scan_count + delay: '0' + description: | + Total number of unrestricted full scans. + These can be either base-table or full-index scans. + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_full_scan_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: transactions + - uuid: cd6f91964b7041bb929c6f6f3430cc75 + name: 'Page splits' + type: DEPENDENT + key: gcp.cloudsql.mssql.trans.page_split_count + delay: '0' + description: 'Total number of page splits that occur as the result of overflowing index pages.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_page_split_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: transactions + - uuid: 0b431016ca8245dea8e33c252a9a7c9b + name: 'Probe scans' + type: DEPENDENT + key: gcp.cloudsql.mssql.trans.probe_scan_count + delay: '0' + description: 'Total number of probe scans that are used to find at least one single qualified row in an index or base table directly.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_probe_scan_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: transactions + - uuid: bf4eb81de038452cb3af16b4efcdb4c5 + name: 'SQL compilations' + type: DEPENDENT + key: gcp.cloudsql.mssql.trans.sql_compilation_count + delay: '0' + description: 'Total number of SQL compilations.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_sql_compilation_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: transactions + - uuid: 39c350f5d1f94726b03c435e9e5e3110 + name: 'SQL recompilations' + type: DEPENDENT + key: gcp.cloudsql.mssql.trans.sql_recompilation_count + delay: '0' + description: 'Total number of SQL recompilations.' + preprocessing: + - type: JSONPATH + parameters: + - $.mssql_sql_recompilation_count + master_item: + key: gcp.cloudsql.mssql.metrics.get + tags: + - tag: component + value: transactions + discovery_rules: + - uuid: 2dad3e63931942f8937b8720c9477a66 + name: 'Databases discovery' + type: DEPENDENT + key: gcp.cloudsql.db.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DB.NAME}' + value: '{$CLOUD_SQL.MSSQL.DB.NAME.MATCHES}' + formulaid: A + - macro: '{#DB.NAME}' + value: '{$CLOUD_SQL.MSSQL.DB.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Databases discovery.' + item_prototypes: + - uuid: 8f6deafa9efd416797ea58d1fce41c29 + name: 'Database [{#DB.NAME}]: Log bytes flushed' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.db.log_bytes_flushed_count[{#DB.NAME}]' + delay: '0' + units: B + description: 'Total number of log bytes flushed for the [{#DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.log_bytes_flushed_count + master_item: + key: 'gcp.cloudsql.mssql.db.raw[{#DB.NAME}]' + tags: + - tag: component + value: database + - tag: database + value: '{#DB.NAME}' + - uuid: b52f757bc2b341e891f60e15795088ca + name: 'Database [{#DB.NAME}]: Raw data' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.db.raw[{#DB.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data in raw format for the [{#DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.database == "{#DB.NAME}")].metrics.first()' + master_item: + key: gcp.cloudsql.mssql.db.get + tags: + - tag: component + value: raw + - tag: database + value: '{#DB.NAME}' + - uuid: 9f8d37a25e1041c087bbea8d670cce46 + name: 'Database [{#DB.NAME}]: Transactions started' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.db.transaction_count[{#DB.NAME}]' + delay: '0' + description: 'Total number of transactions started for the [{#DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.transaction_count + master_item: + key: 'gcp.cloudsql.mssql.db.raw[{#DB.NAME}]' + tags: + - tag: component + value: database + - tag: database + value: '{#DB.NAME}' + master_item: + key: gcp.cloudsql.mssql.db.get + lld_macro_paths: + - lld_macro: '{#DB.NAME}' + path: $.database + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: d47a9164fdf54309ab96f48f6dc3c037 + name: 'Resources discovery' + type: DEPENDENT + key: gcp.cloudsql.resources.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#RESOURCE.NAME}' + value: '{$CLOUD_SQL.MSSQL.RES.NAME.MATCHES}' + formulaid: A + - macro: '{#RESOURCE.NAME}' + value: '{$CLOUD_SQL.MSSQL.RES.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Resources discovery.' + item_prototypes: + - uuid: 55bb12000dca46e096045da83a46edea + name: 'Resource [{#RESOURCE.NAME}]: Deadlocks' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.resource.deadlock_count[{#RESOURCE.NAME}]' + delay: '0' + description: 'Total number of lock requests that resulted in a deadlock for the [{#RESOURCE.NAME}] resource.' + preprocessing: + - type: JSONPATH + parameters: + - $.deadlock_count + master_item: + key: 'gcp.cloudsql.mssql.resource.raw[{#RESOURCE.NAME}]' + tags: + - tag: component + value: resource + - tag: resource + value: '{#RESOURCE.NAME}' + - uuid: 0117dba440f34461959490efaff059e2 + name: 'Resource [{#RESOURCE.NAME}]: Lock waits' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.resource.lock_wait_count[{#RESOURCE.NAME}]' + delay: '0' + description: 'Total number of lock requests that required the caller to wait for the [{#RESOURCE.NAME}] resource.' + preprocessing: + - type: JSONPATH + parameters: + - $.lock_wait_count + master_item: + key: 'gcp.cloudsql.mssql.resource.raw[{#RESOURCE.NAME}]' + tags: + - tag: component + value: resource + - tag: resource + value: '{#RESOURCE.NAME}' + - uuid: 6e8b5646d70b470fa18960c7b43a9aff + name: 'Resource [{#RESOURCE.NAME}]: Lock wait time' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.resource.lock_wait_time[{#RESOURCE.NAME}]' + delay: '0' + units: s + description: 'Total time lock requests were waiting for locks for the [{#RESOURCE.NAME}] resource.' + preprocessing: + - type: JSONPATH + parameters: + - $.lock_wait_time + master_item: + key: 'gcp.cloudsql.mssql.resource.raw[{#RESOURCE.NAME}]' + tags: + - tag: component + value: resource + - tag: resource + value: '{#RESOURCE.NAME}' + - uuid: 0cc16595d1e044db947084a44786aaaa + name: 'Resource [{#RESOURCE.NAME}]: Raw data' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.resource.raw[{#RESOURCE.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data in raw format for the [{#RESOURCE.NAME}] resource.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.resource == "{#RESOURCE.NAME}")].metrics.first()' + master_item: + key: gcp.cloudsql.mssql.resources.get + tags: + - tag: component + value: raw + - tag: resource + value: '{#RESOURCE.NAME}' + master_item: + key: gcp.cloudsql.mssql.resources.get + lld_macro_paths: + - lld_macro: '{#RESOURCE.NAME}' + path: $.resource + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 31667d0e9c32458d9c895367b3ca7042 + name: 'Schedulers discovery' + type: DEPENDENT + key: gcp.cloudsql.schedulers.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SCHEDULER.ID}' + value: '{$CLOUD_SQL.MSSQL.SCHEDULER.ID.MATCHES}' + formulaid: A + - macro: '{#SCHEDULER.ID}' + value: '{$CLOUD_SQL.MSSQL.SCHEDULER.ID.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Schedulers discovery.' + item_prototypes: + - uuid: 67bde61c128e4dfe9e47d8a3a6e3ceec + name: 'Scheduler [{#SCHEDULER.ID}]: Active workers' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.scheduler.active_workers[{#SCHEDULER.ID}]' + delay: '0' + description: | + Current number of active workers associated with the scheduler that goes by its ID [{#SCHEDULER.ID}]. + An active worker is never preemptive, must have an associated task, and is either running, runnable, or suspended. + preprocessing: + - type: JSONPATH + parameters: + - $.active_workers + master_item: + key: 'gcp.cloudsql.mssql.scheduler.raw[{#SCHEDULER.ID}]' + tags: + - tag: component + value: scheduler + - tag: scheduler + value: '{#SCHEDULER.ID}' + - uuid: fc5113b2b5f64205ad9d100bd480adea + name: 'Scheduler [{#SCHEDULER.ID}]: Current tasks' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.scheduler.current_tasks[{#SCHEDULER.ID}]' + delay: '0' + description: | + Current number of present tasks associated with the scheduler that goes by its ID [{#SCHEDULER.ID}]. + This count includes tasks that are waiting for a worker to execute them and tasks that are currently waiting or running (in SUSPENDED or RUNNABLE state). + preprocessing: + - type: JSONPATH + parameters: + - $.current_tasks + master_item: + key: 'gcp.cloudsql.mssql.scheduler.raw[{#SCHEDULER.ID}]' + tags: + - tag: component + value: scheduler + - tag: scheduler + value: '{#SCHEDULER.ID}' + - uuid: 6602f8d26a9a46fb8ed74a40d10f36e4 + name: 'Scheduler [{#SCHEDULER.ID}]: Current workers' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.scheduler.current_workers[{#SCHEDULER.ID}]' + delay: '0' + description: | + Current number of workers associated with the scheduler that goes by its ID [{#SCHEDULER.ID}]. + It includes workers that are not assigned any task. + preprocessing: + - type: JSONPATH + parameters: + - $.current_workers + master_item: + key: 'gcp.cloudsql.mssql.scheduler.raw[{#SCHEDULER.ID}]' + tags: + - tag: component + value: scheduler + - tag: scheduler + value: '{#SCHEDULER.ID}' + - uuid: 2022a85bb7c04e73a75136e55162084a + name: 'Scheduler [{#SCHEDULER.ID}]: Pending I/O operations' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.scheduler.pending_disk_io[{#SCHEDULER.ID}]' + delay: '0' + description: | + Current number of pending I/Os waiting to be completed that are associated with the scheduler that goes by its ID [{#SCHEDULER.ID}]. + Each scheduler has a list of pending I/Os that are checked to determine whether they have been completed every time there is a context switch. + The count is incremented when the request is inserted. + This count is decremented when the request is completed. + This number does not indicate the state of the I/Os. + preprocessing: + - type: JSONPATH + parameters: + - $.pending_disk_io + master_item: + key: 'gcp.cloudsql.mssql.scheduler.raw[{#SCHEDULER.ID}]' + tags: + - tag: component + value: scheduler + - tag: scheduler + value: '{#SCHEDULER.ID}' + - uuid: c3e337845c344f4cb0d14a5e7d22cbb7 + name: 'Scheduler [{#SCHEDULER.ID}]: Raw data' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.scheduler.raw[{#SCHEDULER.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data in raw format associated with the scheduler that goes by its ID [{#SCHEDULER.ID}].' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.scheduler == "{#SCHEDULER.ID}")].metrics.first()' + master_item: + key: gcp.cloudsql.mssql.schedulers.get + tags: + - tag: component + value: raw + - tag: scheduler + value: '{#SCHEDULER.ID}' + - uuid: a9852ac0cdcc423fad6b305eb57eedf1 + name: 'Scheduler [{#SCHEDULER.ID}]: Runnable tasks' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.scheduler.runnable_tasks[{#SCHEDULER.ID}]' + delay: '0' + description: 'Current number of workers that are associated with the scheduler that goes by its ID [{#SCHEDULER.ID}] and have assigned tasks waiting to be scheduled on the runnable queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.runnable_tasks + master_item: + key: 'gcp.cloudsql.mssql.scheduler.raw[{#SCHEDULER.ID}]' + tags: + - tag: component + value: scheduler + - tag: scheduler + value: '{#SCHEDULER.ID}' + - uuid: eaae59fb97124471b1c7c30c601dba1f + name: 'Scheduler [{#SCHEDULER.ID}]: Work queue' + type: DEPENDENT + key: 'gcp.cloudsql.mssql.scheduler.work_queue[{#SCHEDULER.ID}]' + delay: '0' + description: | + Current number of tasks in the pending queue associated with the scheduler that goes by its ID [{#SCHEDULER.ID}]. + These tasks are waiting for a worker to pick them up. + preprocessing: + - type: JSONPATH + parameters: + - $.work_queue + master_item: + key: 'gcp.cloudsql.mssql.scheduler.raw[{#SCHEDULER.ID}]' + tags: + - tag: component + value: scheduler + - tag: scheduler + value: '{#SCHEDULER.ID}' + master_item: + key: gcp.cloudsql.mssql.schedulers.get + lld_macro_paths: + - lld_macro: '{#SCHEDULER.ID}' + path: $.scheduler + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: cloudsql + - tag: target + value: gcp + - tag: target + value: google-cloud-platform + - tag: target + value: mssql + macros: + - macro: '{$CLOUD_SQL.MSSQL.CPU.UTIL.MAX}' + value: '95' + description: 'GCP Cloud SQL MSSQL instance CPU usage threshold.' + - macro: '{$CLOUD_SQL.MSSQL.DB.NAME.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL MSSQL databases by namespace.' + - macro: '{$CLOUD_SQL.MSSQL.DB.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Cloud SQL MSSQL databases by namespace.' + - macro: '{$CLOUD_SQL.MSSQL.DISK.UTIL.CRIT}' + value: '90' + description: 'GCP Cloud SQL MSSQL instance critical disk usage threshold.' + - macro: '{$CLOUD_SQL.MSSQL.DISK.UTIL.WARN}' + value: '80' + description: 'GCP Cloud SQL MSSQL instance warning disk usage threshold.' + - macro: '{$CLOUD_SQL.MSSQL.RAM.UTIL.MAX}' + value: '90' + description: 'GCP Cloud SQL MSSQL instance RAM usage threshold.' + - macro: '{$CLOUD_SQL.MSSQL.RES.NAME.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL MSSQL resources by namespace.' + - macro: '{$CLOUD_SQL.MSSQL.RES.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Cloud SQL MSSQL resources by namespace.' + - macro: '{$CLOUD_SQL.MSSQL.SCHEDULER.ID.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL MSSQL schedulers by namespace.' + - macro: '{$CLOUD_SQL.MSSQL.SCHEDULER.ID.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Cloud SQL MSSQL schedulers by namespace.' + - macro: '{$GCP.DATA.TIMEOUT}' + value: 15s + description: 'A response timeout for an API.' + - macro: '{$GCP.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$GCP.TIME.WINDOW}' + value: 5m + description: | + Time interval for the data requests. + Supported usage type: + 1. The default update interval for most of the items. + 2. The minimal time window for the data requested in the Monitoring Query Language REST API request. + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "GCP Cloud SQL MSSQL", e.g. {$HTTP.TLS.VERIFY:"GCP Cloud SQL MSSQL"}.' + dashboards: + - uuid: 4233430037fc4570b3a5eb3f23ef02e6 + name: 'MSSQL instance' + pages: + - name: 'MSSQL instance' + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.cpu.usage_time + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + name: 'GCP Cloud SQL MSSQL: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.disk.utilization + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + name: 'GCP Cloud SQL MSSQL: Network traffic' + - type: STRING + name: reference + value: AAAAG + - type: graph + 'y': '20' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + name: 'GCP Cloud SQL MSSQL: Transactions' + - type: STRING + name: reference + value: AAAAI + - type: graph + 'y': '25' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + name: 'GCP Cloud SQL MSSQL: Memory workflow' + - type: STRING + name: reference + value: AAAAK + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.cpu.utilization + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.memory.utilization + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + name: 'GCP Cloud SQL MSSQL: Disk read/write operations' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.network.connections + - type: STRING + name: reference + value: AAAAH + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '20' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.memory.buffer_cache_hit_ratio + - type: STRING + name: reference + value: AAAAJ + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '25' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MSSQL by HTTP' + name: 'GCP Cloud SQL MSSQL: Memory Read/Writes' + - type: STRING + name: reference + value: AAAAL + valuemaps: + - uuid: d2aa57a09cbb43e8b53b11316193f013 + name: 'Database availability' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 1c26d58d111b4689a2e7acd23a38f1ca + name: 'Instance state' + mappings: + - value: '0' + newvalue: Running + - value: '1' + newvalue: Suspended + - value: '2' + newvalue: Runnable + - value: '3' + newvalue: 'Pending create' + - value: '4' + newvalue: Maintenance + - value: '5' + newvalue: Failed + - value: '6' + newvalue: 'Unknown state' + - value: '10' + newvalue: 'Data retrievement error' + graphs: + - uuid: 1ff7d04868284c07829382c44301fe0e + name: 'GCP Cloud SQL MSSQL: Disk read/write operations' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.disk.read_ops_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.disk.write_ops_count + - uuid: 0ef4b456168d4ecd87c3dc68092c673d + name: 'GCP Cloud SQL MSSQL: Disk usage' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + calc_fnc: MIN + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.disk.quota + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.disk.bytes_used + - uuid: 09b009aa17f1410bb926043b4c7c39e4 + name: 'GCP Cloud SQL MSSQL: Memory Read/Writes' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.memory.page_ops.read + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.memory.page_ops.write + - uuid: 3273bee668e84b26911307ea4c1f620f + name: 'GCP Cloud SQL MSSQL: Memory usage' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + calc_fnc: MIN + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.memory.quota + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.memory.usage + - uuid: 4d5afffa67804f4da73474d2ee26bd5d + name: 'GCP Cloud SQL MSSQL: Memory workflow' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.memory.checkpoint_page_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.memory.free_list_stall_count + - sortorder: '2' + color: 00611C + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.memory.lazy_write_count + - sortorder: '3' + color: F7941D + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.memory.memory_grants_pending + - uuid: 558283815ab2414f8da6387724a784a3 + name: 'GCP Cloud SQL MSSQL: Network traffic' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.network.received_bytes_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.network.sent_bytes_count + - uuid: 922d35bf685b473ca9848a9b9e7e34c3 + name: 'GCP Cloud SQL MSSQL: Transactions' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.trans.batch_request_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.trans.forwarded_record_count + - sortorder: '2' + color: 00611C + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.trans.full_scan_count + - sortorder: '3' + color: F7941D + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.trans.page_split_count + - sortorder: '4' + color: FC6EA3 + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.trans.probe_scan_count + - sortorder: '5' + color: 6C59DC + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.trans.sql_compilation_count + - sortorder: '6' + color: C7A72D + item: + host: 'GCP Cloud SQL MSSQL by HTTP' + key: gcp.cloudsql.mssql.trans.sql_recompilation_count diff --git a/GCP_Cloud_SQL_MySQL_Replica_by_HTTP.yaml b/GCP_Cloud_SQL_MySQL_Replica_by_HTTP.yaml new file mode 100644 index 0000000..e3a22a0 --- /dev/null +++ b/GCP_Cloud_SQL_MySQL_Replica_by_HTTP.yaml @@ -0,0 +1,486 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 9d7871c093f9489293421396b9fea668 + template: 'GCP Cloud SQL MySQL Replica by HTTP' + name: 'GCP Cloud SQL MySQL Replica by HTTP' + description: | + Get GCP Cloud SQL MySQL monitoring for read-only replicas with script item usage to perform HTTP requests to Google Cloud Platform Monitoring API. + This template will be automatically connected to discovered entities with all their required parameters pre-defined. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Cloud + items: + - uuid: 17aa9eb4749e46be9b0b0f93ef011fca + name: 'Last I/O thread error number' + type: DEPENDENT + key: gcp.cloudsql.mysql.repl.last_io_errno + delay: '0' + description: 'The error number of the most recent error that caused the I/O thread to stop.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_io_errno + master_item: + key: gcp.cloudsql.mysql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 52c11965a2fc4d37a97ebccc04ee7b80 + name: 'Last SQL thread error number' + type: DEPENDENT + key: gcp.cloudsql.mysql.repl.last_sql_errno + delay: '0' + description: 'The error number of the most recent error that caused the SQL thread to stop.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_sql_errno + master_item: + key: gcp.cloudsql.mysql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 470200d2cca348bb8a670a2be3a270e3 + name: 'Replica metrics get' + type: SCRIPT + key: gcp.cloudsql.mysql.repl.metrics.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'cloudsql.googleapis.com/database/replication/', + mysql_path = 'cloudsql.googleapis.com/database/mysql/replication/', + raw_metrics, + obj = {}, + base_paths = ['network_lag', 'replica_lag'].map(function (path) { return base_path + path; }), + mysql_paths = [ + 'last_io_errno', + 'last_sql_errno', + 'slave_io_running', + 'slave_sql_running'].map(function (path) { return mysql_path + path; }).concat( + ['network_lag', 'replica_lag'].map(function (path) { return base_path + path; })); + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function checkParams(params) { + ['project_id', 'time_window', 'database_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + return params; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + var params = checkParams(JSON.parse(value)), + filter = ' | within ' + params.time_window + " | filter database_id = '" + params.database_id + "'", + j_filter = filter + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + metric_raw = getHttpData(url, params.token, { query: '{' + mysql_paths.join(';') + '}' + j_filter }), + metric_keys = getField(metric_raw, 'timeSeriesDescriptor.pointDescriptors'), + metric_values = getField(metric_raw, 'timeSeriesData.0.pointData.0.values'), + re = /(^t_\d+\.value\.)/g; + + for (i in metric_keys) { + var value_types = ['int64Value', 'doubleValue', 'stringValue', 'boolValue']; + + for (v in value_types) { + if (typeof metric_values[i][value_types[v]] !== 'undefined') { + obj[getField(metric_keys[i], 'key').replace(re, "")] = metric_values[i][value_types[v]]; + } + } + } + + var state_raw = getHttpData(url, params.token, { query: base_path + 'state' + filter }), + state_keys = getField(state_raw, 'timeSeriesDescriptor.pointDescriptors'), + state_tsd = getField(state_raw, 'timeSeriesData'); + + for (i in state_keys) { + var state_key = getField(state_keys[i], 'key').replace(/value\./g, ''); + + obj[state_key] = 'undefined'; + for (t in state_tsd) { + if (getField(state_tsd[t], 'pointData.0.values.' + i + '.boolValue') == true) { + obj[state_key] = getField(state_tsd[t], 'labelValues.3.stringValue'); + break; + } + } + } + + return JSON.stringify(obj); + description: 'MySQL replication metrics data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: database_id + value: '{$GCP.PROJECT.ID}:{HOST.NAME}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Cloud SQL MySQL Replica"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: e84ac3a2537848b29024659ab5e3a0e9 + name: 'Network lag' + type: DEPENDENT + key: gcp.cloudsql.mysql.repl.network_lag + delay: '0' + units: s + description: 'Indicates time taken from primary binary log to IO thread on replica.' + preprocessing: + - type: JSONPATH + parameters: + - $.network_lag + master_item: + key: gcp.cloudsql.mysql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: b5f9960de9414975ac48357844a15860 + name: 'Replication lag' + type: DEPENDENT + key: gcp.cloudsql.mysql.repl.replica_lag + delay: '0' + units: s + description: 'Number of seconds the read replica is behind its primary (approximation).' + preprocessing: + - type: JSONPATH + parameters: + - $.replica_lag + master_item: + key: gcp.cloudsql.mysql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 0c093a0416f24afb96fc28a7abb283d4 + name: 'Slave I/O thread running' + type: DEPENDENT + key: gcp.cloudsql.mysql.repl.slave_io_running + delay: '0' + description: | + Indicates whether the I/O thread for reading the primary's binary log is running. + Possible values are Yes, No and Connecting. + valuemap: + name: 'Thread state' + preprocessing: + - type: JSONPATH + parameters: + - $.slave_io_running + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'No', + 'Yes', + 'Connecting', + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: gcp.cloudsql.mysql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 994d92340dd146a381f2e6bbebd1c3f2 + name: 'Slave SQL thread running' + type: DEPENDENT + key: gcp.cloudsql.mysql.repl.slave_sql_running + delay: '0' + description: 'Indicates whether the SQL thread for executing events in the relay log is running.' + valuemap: + name: 'Thread state' + preprocessing: + - type: JSONPATH + parameters: + - $.slave_sql_running + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: gcp.cloudsql.mysql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 90a9154072164b5c89d715fa77e7e2b0 + name: 'Replication state' + type: DEPENDENT + key: gcp.cloudsql.mysql.repl.state + delay: '0' + description: | + The current serving state of replication. + This metric is only available for the MySQL/PostgreSQL instances. + valuemap: + name: 'Replication state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Running', + 'Syncing', + 'Unsynced', + 'Stopped', + 'Error', + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: gcp.cloudsql.mysql.repl.metrics.get + tags: + - tag: component + value: replication + - tag: component + value: status + tags: + - tag: class + value: cloud + - tag: target + value: cloudsql + - tag: target + value: gcp + - tag: target + value: google-cloud-platform + - tag: target + value: mysql + - tag: target + value: replica + macros: + - macro: '{$GCP.DATA.TIMEOUT}' + value: 15s + description: 'A response timeout for an API.' + - macro: '{$GCP.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$GCP.TIME.WINDOW}' + value: 5m + description: | + Time interval for the data requests. + Supported usage type: + 1. The default update interval for most of the items. + 2. The minimal time window for the data requested in the Monitoring Query Language REST API request. + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "GCP Cloud SQL MySQL Replica", e.g. {$HTTP.TLS.VERIFY:"GCP Cloud SQL MySQL Replica"}.' + dashboards: + - uuid: 76eda12212f045388bef22cb382eff6b + name: 'MySQL replica' + pages: + - name: 'MySQL replica' + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MySQL Replica by HTTP' + name: 'GCP Cloud SQL MySQL: Lags' + - type: STRING + name: reference + value: AAAAA + - type: item + name: 'I/O Thread State' + 'y': '5' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MySQL Replica by HTTP' + key: gcp.cloudsql.mysql.repl.slave_io_running + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'I/O Thread Error' + x: '18' + 'y': '5' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_size + value: '1' + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MySQL Replica by HTTP' + key: gcp.cloudsql.mysql.repl.last_io_errno + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'SQL Thread State' + x: '36' + 'y': '5' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_size + value: '1' + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MySQL Replica by HTTP' + key: gcp.cloudsql.mysql.repl.slave_sql_running + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'SQL Thread Error' + x: '54' + 'y': '5' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_size + value: '1' + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MySQL Replica by HTTP' + key: gcp.cloudsql.mysql.repl.last_sql_errno + - type: INTEGER + name: show.0 + value: '2' + valuemaps: + - uuid: ea83090a16d94eb3bb643009c784d820 + name: 'Replication state' + mappings: + - value: '0' + newvalue: Running + - value: '1' + newvalue: Syncing + - value: '2' + newvalue: Unsynced + - value: '3' + newvalue: Stopped + - value: '4' + newvalue: Error + - value: '10' + newvalue: Unknown + - uuid: b1acfa66a401499cae56777db6c7750b + name: 'Thread state' + mappings: + - value: '0' + newvalue: 'No' + - value: '1' + newvalue: 'Yes' + - value: '2' + newvalue: Connecting + - value: '10' + newvalue: Unknown + graphs: + - uuid: e94b7e8241b544e2beb4ea95db3e139f + name: 'GCP Cloud SQL MySQL: Lags' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MySQL Replica by HTTP' + key: gcp.cloudsql.mysql.repl.network_lag + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MySQL Replica by HTTP' + key: gcp.cloudsql.mysql.repl.replica_lag diff --git a/GCP_Cloud_SQL_MySQL_by_HTTP.yaml b/GCP_Cloud_SQL_MySQL_by_HTTP.yaml new file mode 100644 index 0000000..f9d7690 --- /dev/null +++ b/GCP_Cloud_SQL_MySQL_by_HTTP.yaml @@ -0,0 +1,1199 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 38456af4aedd4b168ec3fa4ad2acb256 + template: 'GCP Cloud SQL MySQL by HTTP' + name: 'GCP Cloud SQL MySQL by HTTP' + description: | + Get GCP Cloud SQL MySQL instances monitoring with script item usage to perform HTTP requests to Google Cloud Platform Monitoring API. + This template will be automatically connected to discovered entities with all their required parameters pre-defined. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 83e36c61e8ce4d06a395ea7b06c5877b + name: 'Reserved CPU cores' + type: DEPENDENT + key: gcp.cloudsql.mysql.cpu.reserved_cores + delay: '0' + value_type: FLOAT + description: 'Number of cores reserved for the database.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_reserved_cores + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: cpu + - uuid: a39ba253dbf24110af48fd49572976fd + name: 'CPU usage time' + type: DEPENDENT + key: gcp.cloudsql.mysql.cpu.usage_time + delay: '0' + value_type: FLOAT + units: s + description: 'Cumulative CPU usage time in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_usage_time + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: cpu + - uuid: df7469e3c76c4286846c27003c9785cc + name: 'CPU utilization' + type: DEPENDENT + key: gcp.cloudsql.mysql.cpu.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'Current CPU utilization represented as a percentage of the reserved CPU that is currently in use.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_utilization + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 5bf54c01665549c8a05f49db34c86191 + expression: 'min(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.cpu.utilization,5m) >= {$CLOUD_SQL.MYSQL.CPU.UTIL.MAX}' + name: 'GCP MySQL: High CPU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 948dac37023c4efcaf5f830ba5d4fafe + name: 'DB engine state' + type: HTTP_AGENT + key: gcp.cloudsql.mysql.db.state + description: 'GCP Cloud SQL MySQL DB Engine State.' + valuemap: + name: 'Database availability' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: JSONPATH + parameters: + - '$.timeSeriesData[0].pointData[0].values[0].int64Value' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + timeout: '{$GCP.DATA.TIMEOUT}' + url: 'https://monitoring.googleapis.com/v3/projects/{$GCP.PROJECT.ID}/timeSeries:query' + status_codes: '' + posts: '{"query":"cloudsql.googleapis.com/database/up | within 5m | filter database_id = ''{$GCP.PROJECT.ID}:{HOST.NAME}''"}' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Bearer {$GCP.AUTH.TOKEN}' + request_method: POST + tags: + - tag: component + value: status + triggers: + - uuid: a3eff8c422f5427e9b1c6abb9854f73c + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.db.state)=0' + name: 'GCP MySQL: Database engine is down' + priority: AVERAGE + description: | + Database engine is down. + If an instance experiences unplanned (non-maintenance) downtime, the instance state will still be RUNNING, but the database engine state metric will report 0. + dependencies: + - name: 'GCP MySQL: Failed to get the instance state' + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 10' + - name: 'GCP MySQL: Instance is in failed state' + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 5' + - name: 'GCP MySQL: Instance is in maintenance' + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 4' + - name: 'GCP MySQL: Instance is in suspended state' + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 1' + - name: 'GCP MySQL: Instance is in unknown state' + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 6' + - name: 'GCP MySQL: Instance is stopped by the owner' + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 2' + tags: + - tag: scope + value: availability + - uuid: 76c37760145d43f3927f1a9548dea8a5 + name: 'Disk bytes used' + type: DEPENDENT + key: gcp.cloudsql.mysql.disk.bytes_used + delay: '0' + units: B + description: 'Data utilization in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_bytes_used + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: storage + - uuid: 464fecbbedd64e988739c93736d2b824 + name: 'Disk size' + type: DEPENDENT + key: gcp.cloudsql.mysql.disk.quota + delay: '0' + units: B + description: 'Maximum data disk size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_quota + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: storage + - uuid: d426d282d2ee43fe9c9b64dcb6d0c4c9 + name: 'Disk read I/O' + type: DEPENDENT + key: gcp.cloudsql.mysql.disk.read_ops_count + delay: '0' + description: 'Delta count of data disk read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_read_ops_count + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: storage + - uuid: b2274d47be5041b493b00fd55172c0e9 + name: 'Disk utilization' + type: DEPENDENT + key: gcp.cloudsql.mysql.disk.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: | + The fraction of the disk quota that is currently in use. + Shown as percentage. + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_utilization + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: storage + triggers: + - uuid: d5ade16fb0494ca6af61100a2e643702 + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.disk.utilization) >= {$CLOUD_SQL.MYSQL.DISK.UTIL.CRIT}' + name: 'GCP MySQL: Disk space is critically low' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'Critical utilization of the disk space.' + tags: + - tag: scope + value: capacity + - uuid: 3b5c84fee47f4376b19d0738b261c01b + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.disk.utilization) >= {$CLOUD_SQL.MYSQL.DISK.UTIL.WARN}' + name: 'GCP MySQL: Disk space is low' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: WARNING + description: 'High utilization of the storage space.' + dependencies: + - name: 'GCP MySQL: Disk space is critically low' + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.disk.utilization) >= {$CLOUD_SQL.MYSQL.DISK.UTIL.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: 7a44187c6a404defb0dc83fa22f89d96 + name: 'Disk write I/O' + type: DEPENDENT + key: gcp.cloudsql.mysql.disk.write_ops_count + delay: '0' + description: 'Delta count of data disk write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_write_ops_count + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: storage + - uuid: 5e5b9cdfa7f2455b881cceface136e65 + name: 'InnoDB dirty pages' + type: DEPENDENT + key: gcp.cloudsql.mysql.innodb_buffer_pool_pages_dirty + delay: '0' + description: 'Number of unflushed pages in the InnoDB buffer pool.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_innodb_buffer_pool_pages_dirty + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 75835c8326e6461d8f25fb7d55271f16 + name: 'InnoDB free pages' + type: DEPENDENT + key: gcp.cloudsql.mysql.innodb_buffer_pool_pages_free + delay: '0' + description: 'Number of unused pages in the InnoDB buffer pool.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_innodb_buffer_pool_pages_free + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 080d5304c0e346808bd70b125a27be4b + name: 'InnoDB total pages' + type: DEPENDENT + key: gcp.cloudsql.mysql.innodb_buffer_pool_pages_total + delay: '0' + description: 'Total number of pages in the InnoDB buffer pool.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_innodb_buffer_pool_pages_total + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 19e259f61fc24e29a189c35121878eb3 + name: 'InnoDB fsync calls' + type: DEPENDENT + key: gcp.cloudsql.mysql.innodb_data_fsyncs + delay: '0' + description: 'Delta count of InnoDB fsync() calls.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_innodb_data_fsyncs + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: innodb + - tag: component + value: storage + - uuid: c4a4ffa274974041bccbd25643ff9f70 + name: 'InnoDB log fsync calls' + type: DEPENDENT + key: gcp.cloudsql.mysql.innodb_os_log_fsyncs + delay: '0' + description: 'Delta count of InnoDB fsync() calls to the log file.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_innodb_os_log_fsyncs + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: innodb + - tag: component + value: storage + - uuid: 4a9154e235e84c0d9dbf0abf44479f49 + name: 'InnoDB pages read' + type: DEPENDENT + key: gcp.cloudsql.mysql.innodb_pages_read + delay: '0' + description: 'Delta count of InnoDB pages read.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_innodb_pages_read + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 584714b219034bbebbc24edad36704c9 + name: 'InnoDB pages written' + type: DEPENDENT + key: gcp.cloudsql.mysql.innodb_pages_written + delay: '0' + description: 'Delta count of InnoDB pages written.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_innodb_pages_written + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 71559008ad444772b0b1212f715980ed + name: 'Instance state' + type: HTTP_AGENT + key: gcp.cloudsql.mysql.inst.state + description: 'GCP Cloud SQL MySQL Current instance state.' + valuemap: + name: 'Instance state' + preprocessing: + - type: JSONPATH + parameters: + - '$.timeSeriesData[0].pointData[0].values[0].stringValue' + error_handler: CUSTOM_VALUE + error_handler_params: '10' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'RUNNING', + 'SUSPENDED', + 'RUNNABLE', + 'PENDING_CREATE', + 'MAINTENANCE', + 'FAILED', + 'UNKNOWN_STATE' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + timeout: '{$GCP.DATA.TIMEOUT}' + url: 'https://monitoring.googleapis.com/v3/projects/{$GCP.PROJECT.ID}/timeSeries:query' + status_codes: '' + posts: '{"query":"cloudsql.googleapis.com/database/state | within 5m | filter database_id = ''{$GCP.PROJECT.ID}:{HOST.NAME}''"}' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Bearer {$GCP.AUTH.TOKEN}' + request_method: POST + tags: + - tag: component + value: status + triggers: + - uuid: 3b3adc89e0bb45a79a824121f49d2d02 + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 10' + name: 'GCP MySQL: Failed to get the instance state' + priority: AVERAGE + description: | + Failed to get the instance state. + Check access permissions to GCP API or service account. + tags: + - tag: scope + value: availability + - uuid: 65831fed3d19425c86933db4034ed565 + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 5' + name: 'GCP MySQL: Instance is in failed state' + priority: AVERAGE + description: 'The instance creation failed, or an operation left the instance in an own bad state.' + tags: + - tag: scope + value: availability + - uuid: fae15d1ab46c418ebfdfdd73fb698b51 + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 4' + name: 'GCP MySQL: Instance is in maintenance' + priority: INFO + description: 'The instance is down for maintenance.' + tags: + - tag: scope + value: availability + - uuid: 347215d307c8465cad41198f12b5ff68 + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 1' + name: 'GCP MySQL: Instance is in suspended state' + priority: WARNING + description: | + The instance is in suspended state. + It is not available, for example, due to problems with billing. + tags: + - tag: scope + value: availability + - uuid: 1387f9a2ef194d5bb5d1e548fc4eb8d3 + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 6' + name: 'GCP MySQL: Instance is in unknown state' + priority: AVERAGE + description: 'The state of the instance is unknown.' + tags: + - tag: scope + value: availability + - uuid: 9c66317433a24be985559fdb11907c70 + expression: 'last(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.inst.state) = 2' + name: 'GCP MySQL: Instance is stopped by the owner' + priority: INFO + description: | + The instance has been stopped by the owner. + It is not currently running, but it's ready to be restarted. + tags: + - tag: scope + value: availability + - uuid: cc09f5591b0242b3b99199b267a1c527 + name: 'Memory size' + type: DEPENDENT + key: gcp.cloudsql.mysql.memory.quota + delay: '0' + units: B + description: 'Maximum RAM size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_quota + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: memory + - uuid: 13868b9408c9489296531bf1fd927084 + name: 'Memory used by DB engine' + type: DEPENDENT + key: gcp.cloudsql.mysql.memory.total_usage + delay: '0' + units: B + description: | + Total RAM usage in bytes. + This metric reports the RAM usage of the database process, including the buffer/cache. + preprocessing: + - type: JSONPATH + parameters: + - $.base_total_usage + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: memory + - uuid: 995d07fc814f4d12a9c9bdc6bb52481d + name: 'Memory usage' + type: DEPENDENT + key: gcp.cloudsql.mysql.memory.usage + delay: '0' + units: B + description: | + The RAM usage in bytes. + This metric reports the RAM usage of the server, excluding the buffer/cache. + preprocessing: + - type: JSONPATH + parameters: + - $.base_usage + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: memory + - uuid: efe4357a63ec43f799b2303a952c1378 + name: 'Memory utilization' + type: DEPENDENT + key: gcp.cloudsql.mysql.memory.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: | + The fraction of the memory quota that is currently in use. + Shown as percentage. + preprocessing: + - type: JSONPATH + parameters: + - $.base_ram_pused + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: memory + triggers: + - uuid: 82e3af43d3104b4ba641e0be56d11662 + expression: 'min(/GCP Cloud SQL MySQL by HTTP/gcp.cloudsql.mysql.memory.utilization,5m) >= {$CLOUD_SQL.MYSQL.RAM.UTIL.MAX}' + name: 'GCP MySQL: High memory utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: HIGH + description: 'RAM utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 682484eaf1db4a239c69566a5cd492e2 + name: 'Metrics get' + type: SCRIPT + key: gcp.cloudsql.mysql.metrics.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'cloudsql.googleapis.com/database/', + mysql_path = 'cloudsql.googleapis.com/database/mysql/', + obj = {}, + base_paths = [ + 'cpu/reserved_cores', + 'cpu/usage_time', + 'cpu/utilization', + 'disk/read_ops_count', + 'disk/write_ops_count', + 'memory/quota', + 'memory/total_usage', + 'memory/usage', + 'network/connections', + 'network/received_bytes_count', + 'network/sent_bytes_count | map ignore [destination]' + ].map(function (path) { return base_path + path; }), + mysql_paths = [ + 'innodb_buffer_pool_pages_dirty', + 'innodb_buffer_pool_pages_free', + 'innodb_buffer_pool_pages_total', + 'innodb_data_fsyncs', + 'innodb_os_log_fsyncs', + 'innodb_pages_read', + 'innodb_pages_written', + 'queries', + 'questions', + 'received_bytes_count', + 'sent_bytes_count', + 'open_tables', + 'open_table_definitions' + ].map(function (path) { return mysql_path + path; }).concat( + ['disk/bytes_used', 'disk/utilization', 'disk/quota'].map(function (path) { return base_path + path; })); + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function checkParams(params) { + ['project_id', 'time_window', 'database_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + return params; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + function rawMap(raw, prefix) { + var keys = getField(raw, 'timeSeriesDescriptor.pointDescriptors'), + values = getField(raw, 'timeSeriesData.0.pointData.0.values'), + re = /(^t_\d+\.value\.)/g; + + for (i in keys) { + var key = getField(keys[i], 'key').replace(re, ''), + value_types = ['int64Value', 'doubleValue', 'stringValue', 'boolValue']; + + for (v in value_types) { + if (typeof values[i][value_types[v]] !== 'undefined') { + if (prefix) { + obj[prefix + key] = values[i][value_types[v]]; + } + else { + obj[key] = values[i][value_types[v]]; + } + + } + } + } + return obj; + } + + var params = checkParams(JSON.parse(value)), + j_filter = ' | within ' + params.time_window + " | filter database_id = '" + params.database_id + "'" + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + queries = [ + { name: 'base_', data: { query: '{' + base_paths.join(';') + '}' + j_filter } }, + { name: 'mysql_', data: { query: '{' + mysql_paths.join(';') + '}' + j_filter } } + ]; + + for (q in queries) { + raw = getHttpData(url, params.token, queries[q].data); + obj = Object.assign(obj, rawMap(raw, queries[q].name)); + } + + obj.base_ram_pused = Math.floor(getField(obj, 'base_usage') / getField(obj, 'base_quota') * 100); + + return JSON.stringify(obj); + description: 'MySQL metrics in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: database_id + value: '{$GCP.PROJECT.ID}:{HOST.NAME}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Cloud SQL MySQL"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 9ddae405a9b343759d03b5b29c469d18 + name: Connections + type: DEPENDENT + key: gcp.cloudsql.mysql.network.connections + delay: '0' + description: 'Number of connections to the databases on the Cloud SQL instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_connections + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: connections + - tag: component + value: network + - uuid: d970d8e209df4b2a810c2e59f39fa429 + name: 'Network: Received bytes' + type: DEPENDENT + key: gcp.cloudsql.mysql.network.received_bytes_count + delay: '0' + units: B + description: 'Delta count of bytes received through the network.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_received_bytes_count + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 977e4e22ebfc4a19a228a8935d9a342c + name: 'Network: Sent bytes' + type: DEPENDENT + key: gcp.cloudsql.mysql.network.sent_bytes_count + delay: '0' + units: B + description: 'Delta count of bytes sent through the network.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_sent_bytes_count + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 1d651976f70944acb31cd0430e70d422 + name: 'Open tables' + type: DEPENDENT + key: gcp.cloudsql.mysql.open_tables + delay: '0' + description: 'The number of tables that are currently open.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_open_tables + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: tables + - uuid: 1606766c63bf4aa1ade24a34650eef05 + name: 'Open table definitions' + type: DEPENDENT + key: gcp.cloudsql.mysql.open_table_definitions + delay: '0' + description: 'The number of table definitions that are currently cached.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_open_table_definitions + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: tables + - uuid: 3d3ec2e37bf94fb68c40967b56dfd95c + name: 'Network: Bytes received by MySQL' + type: DEPENDENT + key: gcp.cloudsql.mysql_received_bytes_count + delay: '0' + units: B + description: 'Delta count of bytes received by MySQL process.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_received_bytes_count + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: f926beb31be44dc0bfb30c571fac280a + name: 'Network: Bytes sent by MySQL' + type: DEPENDENT + key: gcp.cloudsql.mysql_sent_bytes_count + delay: '0' + units: B + description: 'Delta count of bytes sent by MySQL process.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_sent_bytes_count + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: bbdeb595ab1b44d7a332fbf0c2637403 + name: Queries + type: DEPENDENT + key: gcp.cloudsql.queries + delay: '0' + description: 'Delta of statements executed by the server.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_queries + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: queries + - uuid: 114fb26dcdc1441c84c150c7809b3400 + name: Questions + type: DEPENDENT + key: gcp.cloudsql.questions + delay: '0' + description: 'Delta of statements executed by the server sent by the client.' + preprocessing: + - type: JSONPATH + parameters: + - $.mysql_questions + master_item: + key: gcp.cloudsql.mysql.metrics.get + tags: + - tag: component + value: queries + tags: + - tag: class + value: cloud + - tag: target + value: cloudsql + - tag: target + value: gcp + - tag: target + value: google-cloud-platform + - tag: target + value: mysql + macros: + - macro: '{$CLOUD_SQL.MYSQL.CPU.UTIL.MAX}' + value: '95' + description: 'GCP Cloud SQL MySQL instance CPU usage threshold.' + - macro: '{$CLOUD_SQL.MYSQL.DISK.UTIL.CRIT}' + value: '90' + description: 'GCP Cloud SQL MySQL instance critical disk usage threshold.' + - macro: '{$CLOUD_SQL.MYSQL.DISK.UTIL.WARN}' + value: '80' + description: 'GCP Cloud SQL MySQL instance warning disk usage threshold.' + - macro: '{$CLOUD_SQL.MYSQL.RAM.UTIL.MAX}' + value: '90' + description: 'GCP Cloud SQL MySQL instance RAM usage threshold.' + - macro: '{$GCP.DATA.TIMEOUT}' + value: 15s + description: 'A response timeout for an API.' + - macro: '{$GCP.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$GCP.TIME.WINDOW}' + value: 5m + description: | + Time interval for the data requests. + Supported usage type: + 1. The default update interval for most of the items. + 2. The minimal time window for the data requested in the Monitoring Query Language REST API request. + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "GCP Cloud SQL MySQL", e.g. {$HTTP.TLS.VERIFY:"GCP Cloud SQL MySQL"}.' + dashboards: + - uuid: 5932cc56f6f146db8fac121b3817a407 + name: 'MySQL instance' + pages: + - name: 'MySQL instance' + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.cpu.usage_time + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MySQL by HTTP' + name: 'GCP Cloud SQL MySQL: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.disk.utilization + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MySQL by HTTP' + name: 'GCP Cloud SQL MySQL: Network traffic' + - type: STRING + name: reference + value: AAAAG + - type: graph + 'y': '20' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MySQL by HTTP' + name: 'GCP Cloud SQL MySQL: pages' + - type: STRING + name: reference + value: AAAAI + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.cpu.utilization + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.memory.utilization + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MySQL by HTTP' + name: 'GCP Cloud SQL MySQL: Disk read/write operations' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.network.connections + - type: STRING + name: reference + value: AAAAH + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '20' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL MySQL by HTTP' + name: 'GCP Cloud SQL MySQL: Queries' + - type: STRING + name: reference + value: AAAAJ + valuemaps: + - uuid: 8aa36f0f6a0b42a3b5e0eabfb700e8db + name: 'Database availability' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 9adad9dad34646d79bcc6c414ddf8afe + name: 'Instance state' + mappings: + - value: '0' + newvalue: Running + - value: '1' + newvalue: Suspended + - value: '2' + newvalue: Runnable + - value: '3' + newvalue: 'Pending create' + - value: '4' + newvalue: Maintenance + - value: '5' + newvalue: Failed + - value: '6' + newvalue: 'Unknown state' + - value: '10' + newvalue: 'Data retrievement error' + graphs: + - uuid: 935c2f388185469f82100541d9efb2c7 + name: 'GCP Cloud SQL MySQL: Disk read/write operations' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.disk.read_ops_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.disk.write_ops_count + - uuid: 1b0ea2b38fe740b197ecbcfdd7464b02 + name: 'GCP Cloud SQL MySQL: Disk usage' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + calc_fnc: MIN + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.disk.quota + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.disk.bytes_used + - uuid: 4378be58ccff4592a1b54838b90e9ea8 + name: 'GCP Cloud SQL MySQL: Memory usage' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + calc_fnc: MIN + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.memory.quota + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.memory.usage + - uuid: c23964e5e54541ccb3c8b7b5f5a4b24d + name: 'GCP Cloud SQL MySQL: Network traffic' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.network.received_bytes_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.network.sent_bytes_count + - uuid: e680755183ec4927893e03f8d83bc0f2 + name: 'GCP Cloud SQL MySQL: pages' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.innodb_buffer_pool_pages_free + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.innodb_buffer_pool_pages_dirty + - sortorder: '2' + color: 00611C + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.innodb_buffer_pool_pages_total + - sortorder: '3' + color: F7941D + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.innodb_pages_read + - sortorder: '4' + color: FC6EA3 + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.mysql.innodb_pages_written + - uuid: e447dd13336446b1a965e92d7ddeaf96 + name: 'GCP Cloud SQL MySQL: Queries' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.queries + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL MySQL by HTTP' + key: gcp.cloudsql.questions diff --git a/GCP_Cloud_SQL_PostgreSQL_Replica_by_HTTP.yaml b/GCP_Cloud_SQL_PostgreSQL_Replica_by_HTTP.yaml new file mode 100644 index 0000000..853619f --- /dev/null +++ b/GCP_Cloud_SQL_PostgreSQL_Replica_by_HTTP.yaml @@ -0,0 +1,466 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: b43a7c5f1d1d43d28e2eb8f0a9f6f16f + template: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + name: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + description: | + Get GCP Cloud SQL PostgreSQL monitoring for read-only replicas with script item usage to perform HTTP requests to Google Cloud Platform Monitoring API. + This template will be automatically connected to discovered entities with all their required parameters pre-defined. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Cloud + items: + - uuid: c67dd812c7784948bad5dfa0d9a6cc66 + name: 'Flush location lag' + type: DEPENDENT + key: gcp.cloudsql.pgsql.repl.flush_location + delay: '0' + units: B + description: 'Flush location replication lag in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.flush_location + master_item: + key: gcp.cloudsql.pgsql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 2b8b51f0266049ffbfb7ece2f944fb68 + name: 'Number of log archival failures' + type: DEPENDENT + key: gcp.cloudsql.pgsql.repl.log_archive_failure_count + delay: '0' + description: 'Number of failed attempts for archiving replication log files.' + preprocessing: + - type: JSONPATH + parameters: + - $.log_archive_failure_count + master_item: + key: gcp.cloudsql.pgsql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 4657c4bb904b437598b68410e47f7194 + name: 'Number of log archival successes' + type: DEPENDENT + key: gcp.cloudsql.pgsql.repl.log_archive_success_count + delay: '0' + description: 'Number of failed attempts for archiving replication log files.' + preprocessing: + - type: JSONPATH + parameters: + - $.log_archive_success_count + master_item: + key: gcp.cloudsql.pgsql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: cb9c5aff913e4deeb29dfa1a20b5ff04 + name: 'Replica metrics get' + type: SCRIPT + key: gcp.cloudsql.pgsql.repl.metrics.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'cloudsql.googleapis.com/database/replication/', + pgsql_path = 'cloudsql.googleapis.com/database/postgresql/replication/', + obj = {}, + base_paths = ['network_lag', 'replica_lag', 'log_archive_failure_count', 'log_archive_success_count']; + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function checkParams(params) { + ['project_id', 'time_window', 'database_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + return params; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + var params = checkParams(JSON.parse(value)), + filter = ' | within ' + params.time_window + " | filter database_id = '" + params.database_id + "'", + j_filter = filter + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + metric_raw = getHttpData(url, params.token, { query: '{' + base_paths.map(function (path) { return base_path + path; }).join(';') + '}' + j_filter }), + metric_keys = getField(metric_raw, 'timeSeriesDescriptor.pointDescriptors'), + metric_values = getField(metric_raw, 'timeSeriesData.0.pointData.0.values'), + re = /(^t_\d+\.value\.)/g; + + for (i in metric_keys) { + var value_types = ['int64Value', 'doubleValue', 'stringValue', 'boolValue']; + + for (v in value_types) { + if (typeof metric_values[i][value_types[v]] !== 'undefined') { + obj[getField(metric_keys[i], 'key').replace(re, '')] = metric_values[i][value_types[v]]; + } + } + } + + var state_raw = getHttpData(url, params.token, { query: base_path + 'state' + filter }), + state_keys = getField(state_raw, 'timeSeriesDescriptor.pointDescriptors'), + state_tsd = getField(state_raw, 'timeSeriesData'); + + for (i in state_keys) { + var state_key = getField(state_keys[i], 'key').replace(/value\./g, ''); + + obj[state_key] = 'undefined'; + for (t in state_tsd) { + if (getField(state_tsd[t], 'pointData.0.values.' + i + '.boolValue') == true) { + obj[state_key] = getField(state_tsd[t], 'labelValues.3.stringValue'); + break; + } + } + } + + var lag_raw = getHttpData(url, params.token, { query: pgsql_path + 'replica_byte_lag' + '| within ' + params.time_window + " | filter replica_name = '" + params.database_id + "'" }), + lag_tsd = getField(lag_raw, 'timeSeriesData'); + + for (t in lag_tsd) { + obj[getField(lag_tsd[t], 'labelValues.3.stringValue')] = getField(lag_tsd[t], 'pointData.0.values.0.int64Value'); + } + + return JSON.stringify(obj); + description: 'PostgreSQL replica metrics data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: database_id + value: '{$GCP.PROJECT.ID}:{HOST.NAME}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Cloud SQL PostgreSQL Replica"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: e43272210c45425d871d70a5bb91cdd1 + name: 'Network lag' + type: DEPENDENT + key: gcp.cloudsql.pgsql.repl.network_lag + delay: '0' + units: s + description: 'Indicates time taken from primary binary log to IO thread on replica.' + preprocessing: + - type: JSONPATH + parameters: + - $.network_lag + master_item: + key: gcp.cloudsql.pgsql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 7d74736aa2804c899de35634bc072edf + name: 'Replay location lag' + type: DEPENDENT + key: gcp.cloudsql.pgsql.repl.replay_location + delay: '0' + units: B + description: 'Replay location replication lag in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.replay_location + master_item: + key: gcp.cloudsql.pgsql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 192e0bb3ac744f8eb38a760ee3f7c623 + name: 'Replication lag' + type: DEPENDENT + key: gcp.cloudsql.pgsql.repl.replica_lag + delay: '0' + units: s + description: 'Number of seconds the read replica is behind its primary (approximation).' + preprocessing: + - type: JSONPATH + parameters: + - $.replica_lag + master_item: + key: gcp.cloudsql.pgsql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: 379c8bc0cfe847d1819ab96aceee5efe + name: 'Sent location lag' + type: DEPENDENT + key: gcp.cloudsql.pgsql.repl.sent_location + delay: '0' + units: B + description: 'Sent location replication lag in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.sent_location + master_item: + key: gcp.cloudsql.pgsql.repl.metrics.get + tags: + - tag: component + value: replication + - uuid: a7f785dbe4954d77a82e6384620b5d6e + name: 'Replication state' + type: DEPENDENT + key: gcp.cloudsql.pgsql.repl.state + delay: '0' + description: | + The current serving state of replication. + This metric is only available for the MySQL/PostgreSQL instances. + valuemap: + name: 'Replication state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Running', + 'Syncing', + 'Unsynced', + 'Stopped', + 'Error', + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: gcp.cloudsql.pgsql.repl.metrics.get + tags: + - tag: component + value: replication + - tag: component + value: status + - uuid: 10af15bc71ed446eb4e614c2cb6029d5 + name: 'Write location lag' + type: DEPENDENT + key: gcp.cloudsql.pgsql.repl.write_location + delay: '0' + units: B + description: 'Write location replication lag in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.write_location + master_item: + key: gcp.cloudsql.pgsql.repl.metrics.get + tags: + - tag: component + value: replication + tags: + - tag: class + value: cloud + - tag: target + value: cloudsql + - tag: target + value: gcp + - tag: target + value: google-cloud-platform + - tag: target + value: postgresql + - tag: target + value: replica + macros: + - macro: '{$GCP.DATA.TIMEOUT}' + value: 15s + description: 'A response timeout for an API.' + - macro: '{$GCP.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$GCP.TIME.WINDOW}' + value: 5m + description: | + Time interval for the data requests. + Supported usage type: + 1. The default update interval for most of the items. + 2. The minimal time window for the data requested in the Monitoring Query Language REST API request. + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "GCP Cloud SQL PostgreSQL Replica", e.g. {$HTTP.TLS.VERIFY:"GCP Cloud SQL PostgreSQL Replica"}.' + dashboards: + - uuid: acb71f4a818d43e0b045ba87c2daa989 + name: 'PostgreSQL replica' + pages: + - name: 'PostgreSQL replica' + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + name: 'GCP Cloud SQL PostgreSQL: WAL archiving' + - type: STRING + name: reference + value: AAAAA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + name: 'GCP Cloud SQL PostgreSQL: Lags' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: af111e6b9e5a47cd9c3933b8ce35076c + name: 'Replication state' + mappings: + - value: '0' + newvalue: Running + - value: '1' + newvalue: Syncing + - value: '2' + newvalue: Unsynced + - value: '3' + newvalue: Stopped + - value: '4' + newvalue: Error + - value: '10' + newvalue: Unknown + graphs: + - uuid: 30fe61bafae64ae6b29dacd68e9a6b3b + name: 'GCP Cloud SQL PostgreSQL: Lags' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + key: gcp.cloudsql.pgsql.repl.network_lag + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + key: gcp.cloudsql.pgsql.repl.replica_lag + - sortorder: '2' + color: 00611C + item: + host: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + key: gcp.cloudsql.pgsql.repl.flush_location + - sortorder: '3' + color: F7941D + item: + host: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + key: gcp.cloudsql.pgsql.repl.replay_location + - sortorder: '4' + color: FC6EA3 + item: + host: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + key: gcp.cloudsql.pgsql.repl.sent_location + - sortorder: '5' + color: 6C59DC + item: + host: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + key: gcp.cloudsql.pgsql.repl.write_location + - uuid: e96be84efaf7445fbfd8cf707b585fe7 + name: 'GCP Cloud SQL PostgreSQL: WAL archiving' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + key: gcp.cloudsql.pgsql.repl.log_archive_failure_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + key: gcp.cloudsql.pgsql.repl.log_archive_success_count diff --git a/GCP_Cloud_SQL_PostgreSQL_by_HTTP.yaml b/GCP_Cloud_SQL_PostgreSQL_by_HTTP.yaml new file mode 100644 index 0000000..c48560f --- /dev/null +++ b/GCP_Cloud_SQL_PostgreSQL_by_HTTP.yaml @@ -0,0 +1,1617 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: e74c1e12f82e4d9880a368b53f5e65a4 + template: 'GCP Cloud SQL PostgreSQL by HTTP' + name: 'GCP Cloud SQL PostgreSQL by HTTP' + description: | + Get GCP Cloud SQL PostgreSQL instances monitoring with script item usage to perform HTTP requests to Google Cloud Platform Monitoring API. + This template will be automatically connected to discovered entities with all their required parameters pre-defined. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 396a555958514890af339f4504a96cc6 + name: 'Reserved CPU cores' + type: DEPENDENT + key: gcp.cloudsql.pgsql.cpu.reserved_cores + delay: '0' + value_type: FLOAT + description: 'Number of cores reserved for the database.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_reserved_cores + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: cpu + - uuid: aa2e6d9118ed4b198ed9a28932ea8539 + name: 'CPU usage time' + type: DEPENDENT + key: gcp.cloudsql.pgsql.cpu.usage_time + delay: '0' + value_type: FLOAT + units: s + description: 'Cumulative CPU usage time in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_usage_time + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: cpu + - uuid: cb7cd1b74e4944d88334f22d25b985fa + name: 'CPU utilization' + type: DEPENDENT + key: gcp.cloudsql.pgsql.cpu.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'Current CPU utilization represented as a percentage of the reserved CPU that is currently in use.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_utilization + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 3ca3942121bd41029645a19fd3947416 + expression: 'min(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.cpu.utilization,5m) >= {$CLOUD_SQL.PGSQL.CPU.UTIL.MAX}' + name: 'GCP PostgreSQL: High CPU utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 27ad9640bf734dd49548c19241cc4838 + name: 'DB engine state' + type: HTTP_AGENT + key: gcp.cloudsql.pgsql.db.state + description: 'GCP Cloud SQL PostgreSQL DB Engine State.' + valuemap: + name: 'Database availability' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: JSONPATH + parameters: + - '$.timeSeriesData[0].pointData[0].values[0].int64Value' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + timeout: '{$GCP.DATA.TIMEOUT}' + url: 'https://monitoring.googleapis.com/v3/projects/{$GCP.PROJECT.ID}/timeSeries:query' + status_codes: '' + posts: '{"query":"cloudsql.googleapis.com/database/up | within 5m | filter database_id = ''{$GCP.PROJECT.ID}:{HOST.NAME}''"}' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Bearer {$GCP.AUTH.TOKEN}' + request_method: POST + tags: + - tag: component + value: status + triggers: + - uuid: f7b0fc21edcf489ab174eb06dee4fabe + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.db.state)=0' + name: 'GCP PostgreSQL: Database engine is down' + priority: AVERAGE + description: | + Database engine is down. + If an instance experiences unplanned (non-maintenance) downtime, the instance state will still be RUNNING, but the database engine state metric will report 0. + dependencies: + - name: 'GCP PostgreSQL: Failed to get the instance state' + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 10' + - name: 'GCP PostgreSQL: Instance is in failed state' + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 5' + - name: 'GCP PostgreSQL: Instance is in maintenance' + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 4' + - name: 'GCP PostgreSQL: Instance is in suspended state' + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 1' + - name: 'GCP PostgreSQL: Instance is in unknown state' + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 6' + - name: 'GCP PostgreSQL: Instance is stopped by the owner' + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 2' + tags: + - tag: scope + value: availability + - uuid: 799cad827e8b44d98b8285b08153842d + name: 'Disk bytes used' + type: DEPENDENT + key: gcp.cloudsql.pgsql.disk.bytes_used + delay: '0' + units: B + description: 'Data utilization in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_bytes_used + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: storage + - uuid: 470510bf76fb47fbbddfc8c4a711a335 + name: 'Disk size' + type: DEPENDENT + key: gcp.cloudsql.pgsql.disk.quota + delay: '0' + units: B + description: 'Maximum data disk size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_quota + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: storage + - uuid: f12ba5129c2d435389f4fb6964294381 + name: 'Disk read I/O' + type: DEPENDENT + key: gcp.cloudsql.pgsql.disk.read_ops_count + delay: '0' + description: 'Delta count of data disk read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_read_ops_count + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: storage + - uuid: e2d6702514b941cb9586cb98786c6a01 + name: 'Disk utilization' + type: DEPENDENT + key: gcp.cloudsql.pgsql.disk.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: | + The fraction of the disk quota that is currently in use. + Shown as percentage. + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_utilization + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: storage + triggers: + - uuid: c4fa1d580ffd4546b82605f94da5d2ba + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.disk.utilization) >= {$CLOUD_SQL.PGSQL.DISK.UTIL.CRIT}' + name: 'GCP PostgreSQL: Disk space is critically low' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'Critical utilization of the disk space.' + tags: + - tag: scope + value: capacity + - uuid: 186a707ca3194c32a894ae809177a7e2 + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.disk.utilization) >= {$CLOUD_SQL.PGSQL.DISK.UTIL.WARN}' + name: 'GCP PostgreSQL: Disk space is low' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: WARNING + description: 'High utilization of the storage space.' + dependencies: + - name: 'GCP PostgreSQL: Disk space is critically low' + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.disk.utilization) >= {$CLOUD_SQL.PGSQL.DISK.UTIL.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: 8d8d6c13cdb244cb80c03226b7c14a90 + name: 'Disk write I/O' + type: DEPENDENT + key: gcp.cloudsql.pgsql.disk.write_ops_count + delay: '0' + description: 'Delta count of data disk write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_write_ops_count + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: storage + - uuid: 88fd41960538460ebfd2ed9194677cd1 + name: 'Instance state' + type: HTTP_AGENT + key: gcp.cloudsql.pgsql.inst.state + description: 'GCP Cloud SQL PostgreSQL Current instance state.' + valuemap: + name: 'Instance state' + preprocessing: + - type: JSONPATH + parameters: + - '$.timeSeriesData[0].pointData[0].values[0].stringValue' + error_handler: CUSTOM_VALUE + error_handler_params: '10' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'RUNNING', + 'SUSPENDED', + 'RUNNABLE', + 'PENDING_CREATE', + 'MAINTENANCE', + 'FAILED', + 'UNKNOWN_STATE' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + timeout: '{$GCP.DATA.TIMEOUT}' + url: 'https://monitoring.googleapis.com/v3/projects/{$GCP.PROJECT.ID}/timeSeries:query' + status_codes: '' + posts: '{"query":"cloudsql.googleapis.com/database/state | within 5m | filter database_id = ''{$GCP.PROJECT.ID}:{HOST.NAME}''"}' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Bearer {$GCP.AUTH.TOKEN}' + request_method: POST + tags: + - tag: component + value: status + triggers: + - uuid: 596020e32d0c4193a6626c960b4b5be8 + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 10' + name: 'GCP PostgreSQL: Failed to get the instance state' + priority: AVERAGE + description: | + Failed to get the instance state. + Check access permissions to GCP API or service account. + tags: + - tag: scope + value: availability + - uuid: 1a2efb6f755444c0bab85d2778018eb1 + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 5' + name: 'GCP PostgreSQL: Instance is in failed state' + priority: AVERAGE + description: 'The instance creation failed, or an operation left the instance in an own bad state.' + tags: + - tag: scope + value: availability + - uuid: aad6fb2d86c84e33868aacbf160c3d65 + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 4' + name: 'GCP PostgreSQL: Instance is in maintenance' + priority: INFO + description: 'The instance is down for maintenance.' + tags: + - tag: scope + value: availability + - uuid: 959072ed00c4461196bef71618799b82 + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 1' + name: 'GCP PostgreSQL: Instance is in suspended state' + priority: WARNING + description: | + The instance is in suspended state. + It is not available, for example, due to problems with billing. + tags: + - tag: scope + value: availability + - uuid: 5f1084f744b444f3b803110baf703973 + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 6' + name: 'GCP PostgreSQL: Instance is in unknown state' + priority: AVERAGE + description: 'The state of the instance is unknown.' + tags: + - tag: scope + value: availability + - uuid: fb0df2eb001649febb6fc6513e056fcc + expression: 'last(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.inst.state) = 2' + name: 'GCP PostgreSQL: Instance is stopped by the owner' + priority: INFO + description: | + The instance has been stopped by the owner. + It is not currently running, but it's ready to be restarted. + tags: + - tag: scope + value: availability + - uuid: 014d96156a364f2c8eac6a47de3eddfe + name: 'Memory size' + type: DEPENDENT + key: gcp.cloudsql.pgsql.memory.quota + delay: '0' + units: B + description: 'Maximum RAM size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_quota + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: memory + - uuid: e73876fa0728402db7688a41938f4a12 + name: 'Memory used by DB engine' + type: DEPENDENT + key: gcp.cloudsql.pgsql.memory.total_usage + delay: '0' + units: B + description: | + Total RAM usage in bytes. + This metric reports the RAM usage of the database process, including the buffer/cache. + preprocessing: + - type: JSONPATH + parameters: + - $.base_total_usage + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: memory + - uuid: 2a5daa0300564b97a5e744e576a217cb + name: 'Memory usage' + type: DEPENDENT + key: gcp.cloudsql.pgsql.memory.usage + delay: '0' + units: B + description: | + The RAM usage in bytes. + This metric reports the RAM usage of the server, excluding the buffer/cache. + preprocessing: + - type: JSONPATH + parameters: + - $.base_usage + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: memory + - uuid: 4c524a81bf3b4a6bbc87d23b60c4f74c + name: 'Memory utilization' + type: DEPENDENT + key: gcp.cloudsql.pgsql.memory.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: | + The fraction of the memory quota that is currently in use. + Shown as percentage. + preprocessing: + - type: JSONPATH + parameters: + - $.base_ram_pused + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: memory + triggers: + - uuid: bbbdbd9c3c5b407491b359f98e4e3fa9 + expression: 'min(/GCP Cloud SQL PostgreSQL by HTTP/gcp.cloudsql.pgsql.memory.utilization,5m) >= {$CLOUD_SQL.PGSQL.RAM.UTIL.MAX}' + name: 'GCP PostgreSQL: High memory utilization' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: HIGH + description: 'RAM utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 9bf09a42ddd64f7eabf6bbc011eda689 + name: 'Metrics get' + type: SCRIPT + key: gcp.cloudsql.pgsql.metrics.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'cloudsql.googleapis.com/database/', + pgsql_path = 'cloudsql.googleapis.com/database/postgresql/', + obj = {}, + value_types = ['int64Value', 'doubleValue', 'stringValue', 'boolValue']; + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function checkParams(params) { + ['project_id', 'time_window', 'database_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + return params; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + function rawMap(raw, prefix) { + var keys = getField(raw, 'timeSeriesDescriptor.pointDescriptors'), + values = getField(raw, 'timeSeriesData.0.pointData.0.values'), + re = /(^t_\d+\.value(_|\.)|_sum$)/g; + + for (i in keys) { + var key = getField(keys[i], 'key').replace(re, ''); + + for (v in value_types) { + if (typeof values[i][value_types[v]] !== 'undefined') { + if (prefix) { + obj[prefix + key] = values[i][value_types[v]]; + } else { + obj[key] = values[i][value_types[v]]; + } + + } + } + } + return obj; + } + + function singleMetrics(tsd) { + result = {}; + for (t in tsd) { + for (v in value_types) { + if (typeof tsd[t].pointData[0].values[0][value_types[v]] !== 'undefined') { + result['pgsql_' + getField(tsd[t], 'labelValues.3.stringValue').toLowerCase()] = tsd[t].pointData[0].values[0][value_types[v]]; + } + } + } + return result; + } + + var params = checkParams(JSON.parse(value)), + filter = ' | within ' + params.time_window + " | filter database_id = '" + params.database_id + "'", + j_filter = filter + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + base_paths = [ + 'cpu/reserved_cores', + 'cpu/usage_time', + 'cpu/utilization', + 'disk/read_ops_count', + 'disk/write_ops_count', + 'memory/quota', + 'memory/total_usage', + 'memory/usage', + 'network/received_bytes_count', + 'network/sent_bytes_count | map ignore [destination]' + ].map(function (path) { return base_path + path; }), + pgsql_paths = [ + 'transaction_id_utilization ' + filter, + 'temp_bytes_written_count' + filter + ' | sum', + 'temp_files_written_count' + filter + ' | sum', + 'num_backends' + filter + ' | sum' + ].map(function (path) { return pgsql_path + path; }).concat( + ['disk/bytes_used', 'disk/utilization', 'disk/quota'].map(function (path) { return base_path + path; })), + queries = [ + { name: 'base_', data: { query: '{' + base_paths.join(';') + '}' + j_filter } }, + { name: 'pgsql_', data: { query: '{' + pgsql_paths.join(';') + '}' + '| within ' + params.time_window + '| join' } } + ]; + + for (q in queries) { + raw = getHttpData(url, params.token, queries[q].data); + obj = Object.assign(obj, rawMap(raw, queries[q].name)); + } + + obj.base_ram_pused = Math.floor((getField(obj, 'base_usage') / getField(obj, 'base_quota')) * 100); + + var single_paths = ['transaction_id_count', 'vacuum/oldest_transaction_age'], + single_queries = single_paths.map(function (path) { return { query: pgsql_path + path + filter }; }); + + for (q in single_queries) { + raw = getHttpData(url, params.token, single_queries[q]); + Object.assign(obj, singleMetrics(getField(raw, 'timeSeriesData'))); + } + + return JSON.stringify(obj); + description: 'PostgreSQL metrics data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: database_id + value: '{$GCP.PROJECT.ID}:{HOST.NAME}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Cloud SQL PostgreSQL"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: f2d00c86eedd4a1e8efce7661c3da18d + name: 'Network: Received bytes' + type: DEPENDENT + key: gcp.cloudsql.pgsql.network.received_bytes_count + delay: '0' + units: B + description: 'Delta count of bytes received through the network.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_received_bytes_count + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: dc67deac1a2f4cc993406028d6cc8c3b + name: 'Network: Sent bytes' + type: DEPENDENT + key: gcp.cloudsql.pgsql.network.sent_bytes_count + delay: '0' + units: B + description: 'Delta count of bytes sent through the network.' + preprocessing: + - type: JSONPATH + parameters: + - $.base_sent_bytes_count + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 512c5d8156fb4d5299284f708e64dffc + name: Connections + type: DEPENDENT + key: gcp.cloudsql.pgsql.num_backends + delay: '0' + description: | + The number of the connections to the Cloud SQL PostgreSQL instance. + Includes connections to the system databases, which aren't visible by default. + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_num_backends + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: connections + - tag: component + value: network + - uuid: 88603b1881114551ba23e8f12d5ab47f + name: 'Oldest prepared transaction age' + type: DEPENDENT + key: gcp.cloudsql.pgsql.oldest_transaction.prepared + delay: '0' + description: | + Age of the oldest prepared transaction yet to be vacuumed in the Cloud SQL PostgreSQL instance, measured in number of transactions that have happened since the oldest transaction. + Empty value when there is no such transaction type. + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_prepared + error_handler: DISCARD_VALUE + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: transactions + - uuid: 50df8067afcb42a9ac44fe963ee635d2 + name: 'Oldest replica transaction age' + type: DEPENDENT + key: gcp.cloudsql.pgsql.oldest_transaction.replica + delay: '0' + description: | + Age of the oldest replica transaction yet to be vacuumed in the Cloud SQL PostgreSQL instance, measured in number of transactions that have happened since the oldest transaction. + Empty value when there is no such transaction type. + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_replica + error_handler: DISCARD_VALUE + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: transactions + - uuid: fee3d72f615c479389c5fdb46f32229f + name: 'Oldest replication slot transaction age' + type: DEPENDENT + key: gcp.cloudsql.pgsql.oldest_transaction.replication_slot + delay: '0' + description: | + Age of the oldest replication slot transaction yet to be vacuumed in the Cloud SQL PostgreSQL instance, measured in number of transactions that have happened since the oldest transaction. + Empty value when there is no such transaction type. + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_replication_slot + error_handler: DISCARD_VALUE + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: transactions + - uuid: 6d51c4865cd04607986ef4e02bc43fb6 + name: 'Oldest running transaction age' + type: DEPENDENT + key: gcp.cloudsql.pgsql.oldest_transaction.running + delay: '0' + description: | + Age of the oldest running transaction yet to be vacuumed in the Cloud SQL PostgreSQL instance, measured in number of transactions that have happened since the oldest transaction. + Empty value when there is no such transaction type. + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_running + error_handler: DISCARD_VALUE + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: transactions + - uuid: 75bc8d76a59a465fb66a434e13de107d + name: 'Data written to temporary' + type: DEPENDENT + key: gcp.cloudsql.pgsql.temp_bytes_written_count + delay: '0' + units: B + description: 'Total data size (in bytes) written to temporary files by the queries.' + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_temp_bytes_written_count + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: storage + - uuid: bd10ec6251c444a79878e82e3ebe9ac0 + name: 'Temporary files used for writing data' + type: DEPENDENT + key: gcp.cloudsql.pgsql.temp_files_written_count + delay: '0' + description: 'Total number of temporary files used for writing data while performing algorithms such as join and sort.' + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_temp_files_written_count + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: storage + - uuid: 2498b066f4964aa7be03f4cc43eab95e + name: 'Assigned transactions' + type: DEPENDENT + key: gcp.cloudsql.pgsql.transaction_id_count_assigned + delay: '0' + description: 'Delta count of assigned transaction IDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_assigned + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: transactions + - uuid: 23d1b88571d347db9672596ec13580cc + name: 'Frozen transactions' + type: DEPENDENT + key: gcp.cloudsql.pgsql.transaction_id_count_frozen + delay: '0' + description: 'Delta count of frozen transaction IDs.' + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_frozen + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: transactions + - uuid: 004042d342d0478ea8f826466353454d + name: 'Transaction ID utilization' + type: DEPENDENT + key: gcp.cloudsql.pgsql.transaction_id_utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'Current utilization represented as a percentage of transaction IDs consumed by the Cloud SQL PostgreSQL instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.pgsql_transaction_id_utilization + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: gcp.cloudsql.pgsql.metrics.get + tags: + - tag: component + value: transactions + discovery_rules: + - uuid: 090d05a647384858a8b9efe5502c0a76 + name: 'GCP Cloud SQL PostgreSQL: Databases discovery' + type: HTTP_AGENT + key: gcp.cloudsql.pgsql.db.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#PGSQL.DB.NAME}' + value: '{$GCP.CLOUD_SQL.DB.NAME.MATCHES}' + formulaid: A + - macro: '{#PGSQL.DB.NAME}' + value: '{$GCP.CLOUD_SQL.DB.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Databases discovery for the particular PostgreSQL instance.' + item_prototypes: + - uuid: 997bdb03ba0b437ca2705f28dcc651ed + name: 'Database [{#PGSQL.DB.NAME}]: Buffer cache blocks read.' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.blocks_read_count_buffer_cache[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Number of buffer cache blocks read by the [{#PGSQL.DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffer_cache + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: memory + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: b35c4a888743448688a8c5233ed165e7 + name: 'Database [{#PGSQL.DB.NAME}]: Disk blocks read.' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.blocks_read_count_disk[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Number of disk blocks read by the [{#PGSQL.DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.disk + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: storage + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: 7a1df30ae0c443839fe625142aea61b2 + name: 'Database [{#PGSQL.DB.NAME}]: Metrics raw' + type: SCRIPT + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'cloudsql.googleapis.com/database/postgresql/', + obj = {}; + + function checkParams(params) { + ['project_id', 'time_window', 'database_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + return params; + } + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + function singleMetrics(tsd) { + var result = {}; + + for (i in tsd) { + result[getField(tsd[i], 'labelValues.4.stringValue')] = getField(tsd[i], 'pointData.0.values.0.int64Value'); + } + return result; + } + + var params = checkParams(JSON.parse(value)), + filter = ' | within ' + params.time_window + " | filter database_id ='" + params.database_id + "'" + " | filter database ='" + params.database_name + "'", + j_filter = filter + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + common_paths = ['deadlock_count', 'tuples_returned_count', 'tuples_fetched_count'], + common_raw = getHttpData(url, params.token, { query: '{' + common_paths.map(function (path) { return base_path + path; }).join(';') + '}' + j_filter }), + keys = getField(common_raw, 'timeSeriesDescriptor.pointDescriptors'), + values = getField(common_raw, 'timeSeriesData.0.pointData.0.values'), + re = /(^t_\d+\.value\.)/g; + + for (i in keys) { + var value_types = ['int64Value', 'doubleValue', 'stringValue', 'boolValue']; + + for (v in value_types) { + if (typeof values[i][value_types[v]] !== 'undefined') { + obj[getField(keys[i], 'key').replace(re, '')] = values[i][value_types[v]]; + } + } + } + + var single_paths = ['transaction_count', 'blocks_read_count', 'tuples_processed_count', 'tuple_size'], + single_queries = single_paths.map(function (path) { return { query: base_path + path + filter }; }); + + for (q in single_queries) { + raw = getHttpData(url, params.token, single_queries[q]); + obj = Object.assign(obj, singleMetrics(getField(raw, 'timeSeriesData'))); + } + + return JSON.stringify(obj); + description: 'PostgreSQL metrics in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: database_id + value: '{$GCP.PROJECT.ID}:{HOST.NAME}' + - name: database_name + value: '{#PGSQL.DB.NAME}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Cloud SQL PostgreSQL"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: d5632c60593749209a6e681b396f4cc7 + name: 'Database [{#PGSQL.DB.NAME}]: Deadlocks count' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.deadlock_count[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Number of deadlocks detected in the [{#PGSQL.DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.deadlock_count + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: deadlock + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: 6d846507fbc24cbb9fb4ad59167552db + name: 'Database [{#PGSQL.DB.NAME}]: Committed transactions' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.transaction_count_commit[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Delta count of number of committed transactions to the [{#PGSQL.DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.commit + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: 4751ef5e498e4ce184bd07aadc831d2b + name: 'Database [{#PGSQL.DB.NAME}]: Rolled-back transactions' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.transaction_count_rollback[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Delta count of number of rolled-back transactions in the [{#PGSQL.DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.rollback + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: a7451a61e0b04be8b1f85b47c44107e2 + name: 'Database [{#PGSQL.DB.NAME}]: Tuples fetched' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.tuples_fetched_count[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Total number of rows fetched as a result of queries to the [{#PGSQL.DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tuples_fetched_count + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: tuples + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: 7daca0b14f5843669bc5b0823cd4d44f + name: 'Database [{#PGSQL.DB.NAME}]: Deleted rows processed' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.tuples_processed_count_delete[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Number of tuples(rows) processed for delete operations for the database with the name [{#PGSQL.DB.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - $.delete + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: tuples + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: 48a7613fa611410b8353d03d87af0f8d + name: 'Database [{#PGSQL.DB.NAME}]: Inserted rows processed.' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.tuples_processed_count_insert[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Number of tuples(rows) processed for insert operations for the database with the name [{#PGSQL.DB.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - $.insert + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: tuples + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: e159cc28aec6448b9162f780479f5aab + name: 'Database [{#PGSQL.DB.NAME}]: Updated rows processed' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.tuples_processed_count_update[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Number of tuples(rows) processed for update operations for the database with the name [{#PGSQL.DB.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - $.update + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: tuples + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: ee6fad5b2fb44a14a29c7cd662b1f5d2 + name: 'Database [{#PGSQL.DB.NAME}]: Tuples returned' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.tuples_returned_count[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Total number of rows scanned while processing the queries of the [{#PGSQL.DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tuples_returned_count + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: tuples + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: f7a58601a3384b8ba24c89b3693ddb88 + name: 'Database [{#PGSQL.DB.NAME}]: Dead tuples' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.tuple_size_dead[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Number of live tuples(rows) in the [{#PGSQL.DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.dead + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: tuples + - tag: database + value: '{#PGSQL.DB.NAME}' + - uuid: 16e88225cd41406285b3237ee1e61bb4 + name: 'Database [{#PGSQL.DB.NAME}]: Live tuples' + type: DEPENDENT + key: 'gcp.cloudsql.pgsql.tuple_size_live[{#PGSQL.DB.NAME}]' + delay: '0' + description: 'Number of live tuples(rows) in the [{#PGSQL.DB.NAME}] database.' + preprocessing: + - type: JSONPATH + parameters: + - $.live + master_item: + key: 'gcp.cloudsql.pgsql.db.metrics.get[{#PGSQL.DB.NAME}]' + tags: + - tag: component + value: tuples + - tag: database + value: '{#PGSQL.DB.NAME}' + graph_prototypes: + - uuid: 8ba7dd12152243b4a5a438bd649f96c1 + name: 'GCP Cloud SQL PostgreSQL: Database [{#PGSQL.DB.NAME}]: Tuples' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: 'gcp.cloudsql.pgsql.tuple_size_dead[{#PGSQL.DB.NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: 'gcp.cloudsql.pgsql.tuple_size_live[{#PGSQL.DB.NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: 'gcp.cloudsql.pgsql.tuples_processed_count_insert[{#PGSQL.DB.NAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: 'gcp.cloudsql.pgsql.tuples_processed_count_update[{#PGSQL.DB.NAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: 'gcp.cloudsql.pgsql.tuples_processed_count_delete[{#PGSQL.DB.NAME}]' + timeout: '{$GCP.DATA.TIMEOUT}' + url: 'https://sqladmin.googleapis.com/sql/v1beta4/projects/{$GCP.PROJECT.ID}/instances/{HOST.NAME}/databases' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Bearer {$GCP.AUTH.TOKEN}' + lld_macro_paths: + - lld_macro: '{#PGSQL.DB.NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.items + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: cloudsql + - tag: target + value: gcp + - tag: target + value: google-cloud-platform + - tag: target + value: postgresql + macros: + - macro: '{$CLOUD_SQL.PGSQL.CPU.UTIL.MAX}' + value: '95' + description: 'GCP Cloud SQL PostgreSQL instance CPU usage threshold.' + - macro: '{$CLOUD_SQL.PGSQL.DISK.UTIL.CRIT}' + value: '90' + description: 'GCP Cloud SQL PostgreSQL instance critical disk usage threshold.' + - macro: '{$CLOUD_SQL.PGSQL.DISK.UTIL.WARN}' + value: '80' + description: 'GCP Cloud SQL PostgreSQL instance warning disk usage threshold.' + - macro: '{$CLOUD_SQL.PGSQL.RAM.UTIL.MAX}' + value: '90' + description: 'GCP Cloud SQL PostgreSQL instance RAM usage threshold.' + - macro: '{$GCP.CLOUD_SQL.DB.NAME.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL PostgreSQL databases by namespace.' + - macro: '{$GCP.CLOUD_SQL.DB.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Cloud SQL PostgreSQL databases by namespace.' + - macro: '{$GCP.DATA.TIMEOUT}' + value: 15s + description: 'A response timeout for an API.' + - macro: '{$GCP.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$GCP.TIME.WINDOW}' + value: 5m + description: | + Time interval for the data requests. + Supported usage type: + 1. The default update interval for most of the items. + 2. The minimal time window for the data requested in the Monitoring Query Language REST API request. + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "GCP Cloud SQL PostgreSQL", e.g. {$HTTP.TLS.VERIFY:"GCP Cloud SQL PostgreSQL"}.' + dashboards: + - uuid: 21636cfe7d2f4de28d07af09c9812075 + name: 'PostgreSQL instance' + pages: + - name: 'PostgreSQL instance' + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.cpu.usage_time + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + name: 'GCP Cloud SQL PostgreSQL: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.disk.utilization + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + name: 'GCP Cloud SQL PostgreSQL: Network traffic' + - type: STRING + name: reference + value: AAAAG + - type: graph + 'y': '20' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + name: 'GCP Cloud SQL PostgreSQL: Transactions count' + - type: STRING + name: reference + value: AAAAI + - type: graphprototype + 'y': '25' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + name: 'GCP Cloud SQL PostgreSQL: Database [{#PGSQL.DB.NAME}]: Tuples' + - type: STRING + name: reference + value: AAAAK + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.cpu.utilization + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.memory.utilization + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + name: 'GCP Cloud SQL PostgreSQL: Disk read/write operations' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.transaction_id_utilization + - type: STRING + name: reference + value: AAAAH + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '20' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + name: 'GCP Cloud SQL PostgreSQL: Transaction age' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + x: '36' + 'y': '25' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: 'gcp.cloudsql.pgsql.deadlock_count[{#PGSQL.DB.NAME}]' + - type: STRING + name: reference + value: AAAAL + - type: INTEGER + name: source_type + value: '3' + valuemaps: + - uuid: c783556dfa214e73b676ca187648c5df + name: 'Database availability' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: bc3b08ca201d438689678a29e3575823 + name: 'Instance state' + mappings: + - value: '0' + newvalue: Running + - value: '1' + newvalue: Suspended + - value: '2' + newvalue: Runnable + - value: '3' + newvalue: 'Pending create' + - value: '4' + newvalue: Maintenance + - value: '5' + newvalue: Failed + - value: '6' + newvalue: 'Unknown state' + - value: '10' + newvalue: 'Data retrievement error' + graphs: + - uuid: e2e4ef0a2c1a43d68ae9f4ee881f070e + name: 'GCP Cloud SQL PostgreSQL: Disk read/write operations' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.disk.read_ops_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.disk.write_ops_count + - uuid: 707d5cca2ba349f18088d00ef7657eef + name: 'GCP Cloud SQL PostgreSQL: Disk usage' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + calc_fnc: MIN + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.disk.quota + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.disk.bytes_used + - uuid: 897843c1fef540c2ab033c9bad0e9de1 + name: 'GCP Cloud SQL PostgreSQL: Memory usage' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + calc_fnc: MIN + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.memory.quota + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.memory.usage + - uuid: 8a61208f44c94cf5bfcb851c4de6412a + name: 'GCP Cloud SQL PostgreSQL: Network traffic' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.network.received_bytes_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.network.sent_bytes_count + - uuid: bf09992b7f324703b3d51250e47d37f4 + name: 'GCP Cloud SQL PostgreSQL: Transaction age' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.oldest_transaction.prepared + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.oldest_transaction.replication_slot + - sortorder: '2' + color: 00611C + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.oldest_transaction.replica + - sortorder: '3' + color: F7941D + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.oldest_transaction.running + - uuid: 5c567b9d1ef14fcb93eef332fccbe198 + name: 'GCP Cloud SQL PostgreSQL: Transactions count' + graph_items: + - color: 199C0D + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.transaction_id_count_assigned + - sortorder: '1' + color: F63100 + item: + host: 'GCP Cloud SQL PostgreSQL by HTTP' + key: gcp.cloudsql.pgsql.transaction_id_count_frozen diff --git a/GCP_Compute_Engine_Instance_by_HTTP.yaml b/GCP_Compute_Engine_Instance_by_HTTP.yaml new file mode 100644 index 0000000..1220d79 --- /dev/null +++ b/GCP_Compute_Engine_Instance_by_HTTP.yaml @@ -0,0 +1,1546 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 6d2443db49e54d59a82b9b525f2424ef + template: 'GCP Compute Engine Instance by HTTP' + name: 'GCP Compute Engine Instance by HTTP' + description: | + Discover GCP Compute Engine instances by HTTP with script item usage. + This template will be automatically connected to discovered entities with all their required parameters pre-defined. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 3de05ba490644a62ba4a700ffe439c98 + name: 'Guest visible vCPUs' + type: DEPENDENT + key: gcp.gce.cpu.guest_visible_vcpus + delay: '0' + value_type: FLOAT + description: | + Number of vCPUs visible inside the guest. + For many GCE machine types, the number of vCPUs visible inside the guest is equal to the `compute.googleapis.com/instance/cpu/reserved_cores` metric. + For shared-core machine types, the number of guest-visible vCPUs differs from the number of reserved cores. + For example, e2-small instances have two vCPUs visible inside the guest and 0.5 fractional vCPUs reserved. + Therefore, for an e2-small instance, `compute.googleapis.com/instance/cpu/guest_visible_vcpus` has a value of 2 and `compute.googleapis.com/instance/cpu/reserved_cores` has a value of 0.5. + preprocessing: + - type: JSONPATH + parameters: + - $.guest_visible_vcpus + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: cpu + - uuid: 2fa7a2aa15a242cc826248ebe96bb173 + name: 'Reserved vCPUs' + type: DEPENDENT + key: gcp.gce.cpu.reserved_cores + delay: '0' + value_type: FLOAT + description: 'Number of vCPUs reserved on the host of the instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.reserved_cores + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: cpu + - uuid: f6c9c633f514416189ba85d2015251ba + name: 'Scheduler wait time' + type: DEPENDENT + key: gcp.gce.cpu.scheduler_wait_time + delay: '0' + value_type: FLOAT + units: s + description: | + Wait time is the time a vCPU is ready to run, but unexpectedly not scheduled to run. + The wait time returned here is the accumulated value for all vCPUs. + The time interval for which the value was measured is returned by Monitoring in whole seconds as start_time and end_time. + This metric is only available for VMs that belong to the e2 family or to overcommitted VMs on sole-tenant nodes. + preprocessing: + - type: JSONPATH + parameters: + - $.scheduler_wait_time + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: cpu + - uuid: daf4d0d23ccf4633aad6405bd1f09dc3 + name: 'CPU usage time' + type: DEPENDENT + key: gcp.gce.cpu.usage_time + delay: '0' + value_type: FLOAT + units: s + description: | + Delta vCPU usage for all vCPUs, in vCPU-seconds. + To compute the per-vCPU utilization fraction, divide this value by (end-start)*N, where end and start define this value's time interval and N is `compute.googleapis.com/instance/cpu/reserved_cores` at the end of the interval. + This value is reported by the hypervisor for the VM and can differ from `agent.googleapis.com/cpu/usage_time`, which is reported from inside the VM. + preprocessing: + - type: JSONPATH + parameters: + - $.usage_time + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: cpu + - uuid: 666cd3e9f21d4ede9d4bcc16bc95347c + name: 'CPU utilization' + type: DEPENDENT + key: gcp.gce.cpu.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: | + Fractional utilization of allocated CPU on this instance. + This metric is reported by the hypervisor for the VM and can differ from `agent.googleapis.com/cpu/utilization`, which is reported from inside the VM. + preprocessing: + - type: JSONPATH + parameters: + - $.utilization + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: cpu + triggers: + - uuid: fb8e28649b4947e9a11d891e3126a3a1 + expression: 'min(/GCP Compute Engine Instance by HTTP/gcp.gce.cpu.utilization,15m) >= {$GCE.CPU.UTIL.MAX}' + name: 'GCP Compute Engine Instance: High CPU utilization' + event_name: 'GCP Compute Engine Instance: High CPU utilization (over {$GCE.CPU.UTIL.MAX}% for 15m)' + priority: AVERAGE + description: 'The CPU utilization is too high. The system might be slow to respond.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 4bdd3662247749a69bb59e6643ba7b9a + name: 'Disks get' + type: SCRIPT + key: gcp.gce.disks.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'compute.googleapis.com/instance/disk/', + base_paths = ['read_ops_count', 'read_bytes_count', 'write_bytes_count', 'write_ops_count']; + + function checkParams(params) { + ['project_id', 'time_window', 'instance_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + return params; + } + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + var params = checkParams(JSON.parse(value)), + j_filter = ' | within ' + params.time_window + " | filter instance_id = '" + params.instance_id + "'" + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + raw = getHttpData(url, params.token, { query: '{' + base_paths.map(function (path) { return base_path + path; }).join(';') + '}' + j_filter }), + metrics = getField(raw, 'timeSeriesDescriptor.pointDescriptors'), + time_series = getField(raw, 'timeSeriesData'), + arr = []; + + for (t in time_series) { + data = { + disk_name: getField(time_series[t], 'labelValues.3.stringValue'), + device_type: getField(time_series[t], 'labelValues.4.stringValue'), + storage_type: getField(time_series[t], 'labelValues.6.stringValue'), + metrics: {} + }; + + for (i in metrics) { + re = /(^t_\d+\.value(_|\.))/g; + data['metrics'][getField(metrics[i], 'key').replace(re, '')] = getField(time_series[t], 'pointData.0.values.' + i + '.int64Value'); + } + arr.push(data); + } + return JSON.stringify(arr); + description: 'Disk entities and metrics related to a particular instance.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: instance_id + value: '{HOST.HOST}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Compute Engine Instance"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: e1cd503d86f7487db023e2fd3cea5385 + name: 'Firewall: Dropped bytes' + type: DEPENDENT + key: gcp.gce.firewall.dropped_bytes_count + delay: '0' + units: B + description: 'Count of incoming bytes dropped by the firewall.' + preprocessing: + - type: JSONPATH + parameters: + - $.dropped_bytes_count + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: firewall + - tag: component + value: network + - uuid: 25002706c5164c43a345a8ce594615c7 + name: 'Firewall: Dropped packets' + type: DEPENDENT + key: gcp.gce.firewall.dropped_packets_count + delay: '0' + description: 'Count of incoming packets dropped by the firewall.' + preprocessing: + - type: JSONPATH + parameters: + - $.dropped_packets_count + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: firewall + - tag: component + value: network + - uuid: 3f82955d43694b25b1e96c9b8f4f6ffb + name: 'Instance state' + type: HTTP_AGENT + key: gcp.gce.instance.state + description: 'GCP Compute Engine instance state.' + valuemap: + name: 'Instance state' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: CUSTOM_VALUE + error_handler_params: '10' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'RUNNING', + 'PROVISIONING', + 'STAGING', + 'STOPPING', + 'REPAIRING', + 'TERMINATED', + 'SUSPENDING', + 'SUSPENDED' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + timeout: '{$GCP.DATA.TIMEOUT}' + url: 'https://compute.googleapis.com/compute/v1/projects/{$GCP.PROJECT.ID}/zones/{$GCE.INSTANCE.ZONE}/instances/{HOST.NAME}' + status_codes: '' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Bearer {$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: status + triggers: + - uuid: 96abd48a3e684e1b9b95fdd96d095188 + expression: 'last(/GCP Compute Engine Instance by HTTP/gcp.gce.instance.state) = 10' + name: 'GCP Compute Engine Instance: Failed to get the instance state' + priority: AVERAGE + description: | + Failed to get the instance state. + Check access permissions to GCP API or service account. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 1223f00a5e4b4bc8aa9e8ec08253c4cc + expression: 'last(/GCP Compute Engine Instance by HTTP/gcp.gce.instance.state) = 7' + name: 'GCP Compute Engine Instance: Instance is in suspended state' + priority: INFO + description: 'The VM is in a suspended state. You can resume the VM or delete it.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: notice + - uuid: d2144e2277ec458c80d2b948364f1924 + expression: 'last(/GCP Compute Engine Instance by HTTP/gcp.gce.instance.state) = 4' + name: 'GCP Compute Engine Instance: The instance is in repairing state' + priority: WARNING + description: | + The VM is being repaired. + Repairing occurs when the VM encounters an internal error or the underlying machine is unavailable due to maintenance. + During this time, the VM is unusable. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 4a010c2b1e6f4ec88dbbe97255b9bac4 + expression: 'last(/GCP Compute Engine Instance by HTTP/gcp.gce.instance.state) = 5' + name: 'GCP Compute Engine Instance: The instance is in terminated state' + priority: AVERAGE + description: 'The VM is stopped. You stopped the VM, or the VM encountered a failure.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f075482578ec475385cdfc57346d1570 + name: 'Instance uptime' + type: DEPENDENT + key: gcp.gce.instance.uptime + delay: '0' + value_type: FLOAT + units: s + description: 'Elapsed time since the VM was started, in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime_total + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: uptime + - uuid: 744f3f821847473d9cef1236580bda38 + name: 'Integrity: Early boot validation status' + type: DEPENDENT + key: gcp.gce.integrity.early_boot_validation_status + delay: '0' + description: | + The validation status of early boot integrity policy. + Empty value if integrity monitoring isn't enabled. + valuemap: + name: 'Integrity validation status' + preprocessing: + - type: JSONPATH + parameters: + - $.early_boot_validation_status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'passed', + 'failed', + 'unknown', + ].indexOf(value); + return idx !== -1 ? idx : ""; + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: security + - uuid: aa334c3a0faf4f36bcbbf51d87ef9186 + name: 'Integrity: Late boot validation status' + type: DEPENDENT + key: gcp.gce.integrity.late_boot_validation_status + delay: '0' + description: | + The validation status of late boot integrity policy. + Empty value if integrity monitoring isn't enabled. + valuemap: + name: 'Integrity validation status' + preprocessing: + - type: JSONPATH + parameters: + - $.late_boot_validation_status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'passed', + 'failed', + 'unknown', + ].indexOf(value); + return idx !== -1 ? idx : ""; + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: security + - uuid: 1b14fefa6b0f4abc98f6ddf3164074b3 + name: 'Memory usage percentage' + type: DEPENDENT + key: gcp.gce.memory.ram_pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + Memory usage Percentage. + This metric is only available for VMs that belong to the e2 family; returns empty value for different instance types. + preprocessing: + - type: JSONPATH + parameters: + - $.ram_pused + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: memory + triggers: + - uuid: fa918889bcb84d3886254f00f0df288c + expression: 'min(/GCP Compute Engine Instance by HTTP/gcp.gce.memory.ram_pused,15m) >= {$GCE.RAM.UTIL.MAX}' + name: 'GCP Compute Engine Instance: High memory utilization' + event_name: 'GCP Compute Engine Instance: High memory utilization (over {$GCE.RAM.UTIL.MAX}% for 15m)' + priority: AVERAGE + description: 'RAM utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 10d63d2c01dc481380bf386af7af7f97 + name: 'Memory size' + type: DEPENDENT + key: gcp.gce.memory.ram_size + delay: '0' + units: B + description: | + Total VM memory size. + This metric is only available for VMs that belong to the e2 family; returns empty value for different instance types. + preprocessing: + - type: JSONPATH + parameters: + - $.ram_size + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: memory + - uuid: 20dc9e49a60d46b4b6d855eb74a60d5e + name: 'Memory used' + type: DEPENDENT + key: gcp.gce.memory.ram_used + delay: '0' + units: B + description: | + Memory currently used in the VM. + This metric is only available for VMs that belong to the e2 family; returns empty value for different instance types. + preprocessing: + - type: JSONPATH + parameters: + - $.ram_used + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: memory + - uuid: b043128882254e9492c7436521bf994a + name: 'VM swap in' + type: DEPENDENT + key: gcp.gce.memory.swap_in_bytes_count + delay: '0' + units: B + description: | + The amount of memory read into the guest from its own swap space. + This metric is only available for VMs that belong to the e2 family; returns empty value for different instance types. + preprocessing: + - type: JSONPATH + parameters: + - $.swap_in_bytes_count + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: memory + - uuid: 7166423bbcf0456ab0fcc7c852d89125 + name: 'VM swap out' + type: DEPENDENT + key: gcp.gce.memory.swap_out_bytes_count + delay: '0' + units: B + description: | + The amount of memory written from the guest to its own swap space. + This metric is only available for VMs that belong to the e2 family; returns empty value for different instance types. + preprocessing: + - type: JSONPATH + parameters: + - $.swap_out_bytes_count + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: memory + - uuid: 723fbff060ab41a39322bc0d6d8b1f84 + name: 'Metrics get' + type: SCRIPT + key: gcp.gce.metrics.get + delay: '{$GCP.TIME.WINDOW}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var base_path = 'compute.googleapis.com/', + value_types = ['int64Value', 'doubleValue', 'stringValue', 'boolValue'], + re = /(^t_\d+\.value\.)/g, + obj = {}, + base_paths = [ + 'instance/uptime_total', + 'firewall/dropped_packets_count', + 'firewall/dropped_bytes_count', + 'instance/cpu/guest_visible_vcpus', + 'instance/cpu/reserved_cores', + 'instance/cpu/usage_time', + 'instance/cpu/utilization', + 'mirroring/mirrored_bytes_count', + 'mirroring/mirrored_packets_count' + ], + e2_paths = [ + 'instance/cpu/scheduler_wait_time', + 'instance/memory/balloon/ram_size', + 'instance/memory/balloon/ram_used', + 'instance/memory/balloon/swap_in_bytes_count', + 'instance/memory/balloon/swap_out_bytes_count', + ], + net_paths = [ + 'instance/network/received_packets_count', + 'instance/network/received_bytes_count', + 'instance/network/sent_bytes_count', + 'instance/network/sent_packets_count' + ], + integrity_paths = [ + 'instance/integrity/late_boot_validation_status', + 'instance/integrity/early_boot_validation_status' + ]; + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function getFieldBool(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + return false; + } + data = data[step]; + } + return true; + } + + function queryMap(array, path, filter) { + var query_params = '{' + array.map(function (element) { return path + element; }).join(';') + '}'; + return { query: query_params + filter } + } + + function checkParams(params) { + ['project_id', 'time_window', 'instance_id', 'token', 'machine_type', 'integrity'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '' || params[field].match(/^\{\$.*\}$/)) { + throw 'Required param is not set: ' + field + '.'; + } + }); + if (!params.time_window.match(/^[0-9]+(m|h)$/)) { + throw 'Incorrect update interval for parameter time_window. Valid ranges 1m-23h.'; + } + if (params.integrity !== 'true' && params.integrity !== 'false') { + throw 'Incorrect integrity state definition type. Valid definitions: true/false'; + } + return params; + } + + function getHttpData(url, token, body) { + var tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options); + if (typeof params.proxy !== 'undefined' && params.proxy !== '') { + request.setProxy(params.proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.post(url, JSON.stringify(body)); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + function nestedMap(raw) { + var ids = getField(raw, 'timeSeriesDescriptor.pointDescriptors'), + ltsd = getField(raw, 'timeSeriesData'), + result = {}; + + for (i in ids) { + var id = getField(ids[i], 'key').replace(re, ''); + result[id] = {}; + for (t in ltsd) { + for (v in value_types) { + if (getFieldBool(ltsd[t], 'pointData.0.values.' + [i] + '.' + [value_types[v]])) { + ['stringValue', 'boolValue'].forEach(function (type) { + if (getFieldBool(ltsd[t], 'labelValues.4.' + [type])) { + result[id][ltsd[t].labelValues[4][type]] = ltsd[t].pointData[0].values[i][value_types[v]]; + } + }); + + } + } + } + } + return result; + } + + var params = checkParams(JSON.parse(value)); + + if (params.machine_type.match(/e2.*/)) { + base_paths = base_paths.concat(e2_paths); + } + + var filter = ' | within ' + params.time_window + " | filter instance_id = '" + params.instance_id + "'", + j_filter = filter + ' | join', + url = 'https://monitoring.googleapis.com/v3/projects/' + params.project_id + '/timeSeries:query', + raw = getHttpData(url, params.token, queryMap(base_paths, base_path, j_filter)), + keys = getField(raw, 'timeSeriesDescriptor.pointDescriptors'), + values = getField(raw, 'timeSeriesData.0.pointData.0.values'); + + for (i in keys) { + for (v in value_types) { + if (typeof values[i][value_types[v]] !== 'undefined') { + obj[getField(keys[i], 'key').replace(re, '')] = values[i][value_types[v]]; + } + } + } + + if (params.machine_type.match(/e2.*/)) { + obj.ram_pused = Math.floor((getField(obj, 'ram_used') / getField(obj, 'ram_size')) * 100); + } + + var mirr_raw = getHttpData(url, params.token, { query: base_path + 'mirroring/dropped_packets_count' + filter }), + tsd = getField(mirr_raw, 'timeSeriesData'); + + for (t in tsd) { + for (v in value_types) { + if (getFieldBool(tsd[t], 'pointData.0.values.0.' + [value_types[v]])) { + obj[getField(tsd[t], 'labelValues.3.stringValue')] = getField(tsd[t], 'pointData.0.values.0.' + [value_types[v]]); + } + } + } + + var net_metrics = getHttpData(url, params.token, queryMap(net_paths, base_path, j_filter)); + + Object.assign(obj, nestedMap(net_metrics)); + + if (params.integrity === 'true') { + integrity_metrics = getHttpData(url, params.token, queryMap(integrity_paths, base_path, j_filter)); + + var keys = getField(integrity_metrics, 'timeSeriesDescriptor.pointDescriptors'), + tsd = getField(integrity_metrics, 'timeSeriesData'); + + for (i in keys) { + var key = getField(keys[i], 'key').replace(re, ''); + + obj[key] = 'undefined'; + for (t in tsd) { + if (getField(tsd[t], 'pointData.0.values.' + i + '.int64Value') == 1) { + obj[key] = getField(tsd[t], 'labelValues.4.stringValue'); + break; + } + } + } + } + + return JSON.stringify(obj); + description: 'GCP Compute Engine metrics get in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: instance_id + value: '{HOST.HOST}' + - name: integrity + value: '{$GCE.INTEGRITY.STATE}' + - name: machine_type + value: '{$GCE.MACHINE.TYPE}' + - name: project_id + value: '{$GCP.PROJECT.ID}' + - name: proxy + value: '{$GCP.PROXY}' + - name: time_window + value: '{$GCP.TIME.WINDOW}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP Compute Engine Instance"}' + - name: token + value: '{$GCP.AUTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: faf1c3ccbcc24b9eb52be355f2f782e6 + name: 'Network: Received bytes' + type: DEPENDENT + key: gcp.gce.network.lb.received_bytes_count.false + delay: '0' + units: B + description: 'Count of bytes received from the network without load-balancing.' + preprocessing: + - type: JSONPATH + parameters: + - $.received_bytes_count.false + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 91ef1b33d7ae479999302cdec227eb3e + name: 'Network: Received bytes: Load-balanced' + type: DEPENDENT + key: gcp.gce.network.lb.received_bytes_count.true + delay: '0' + units: B + description: | + Whether traffic was received by an L3 loadbalanced IP address assigned to the VM. + Traffic that is externally routed to the VM's standard internal or external IP address, such as L7 loadbalanced traffic, is not considered to be loadbalanced in this metric. + The value is empty when load-balancing is not used. + preprocessing: + - type: JSONPATH + parameters: + - $.received_bytes_count.true + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 84dec0cb32ea434a9d6f29f402d337a0 + name: 'Network: Received packets' + type: DEPENDENT + key: gcp.gce.network.lb.received_packets_count.false + delay: '0' + description: 'Count of packets received from the network without load-balancing.' + preprocessing: + - type: JSONPATH + parameters: + - $.received_packets_count.false + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 148fe8aaa01e4863bbe2ca4c0226ce80 + name: 'Network: Received packets: Load-balanced' + type: DEPENDENT + key: gcp.gce.network.lb.received_packets_count.true + delay: '0' + description: | + Whether traffic was received by an L3 loadbalanced IP address assigned to the VM. + Traffic that is externally routed to the VM's standard internal or external IP address, such as L7 loadbalanced traffic, is not considered to be loadbalanced in this metric. + The value is empty when load-balancing is not used. + preprocessing: + - type: JSONPATH + parameters: + - $.received_packets_count.true + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: b8ea22b00a254ee5a2484fd833421b12 + name: 'Network: Sent bytes' + type: DEPENDENT + key: gcp.gce.network.lb.sent_bytes_count.false + delay: '0' + units: B + description: 'Count of bytes sent over the network without load-balancing.' + preprocessing: + - type: JSONPATH + parameters: + - $.sent_bytes_count.false + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 77bd252194764837bc71b031e4d7e2b8 + name: 'Network: Sent bytes: Load-balanced' + type: DEPENDENT + key: gcp.gce.network.lb.sent_bytes_count.true + delay: '0' + units: B + description: | + Whether traffic was received by an L3 loadbalanced IP address assigned to the VM. + Traffic that is externally routed to the VM's standard internal or external IP address, such as L7 loadbalanced traffic, is not considered to be loadbalanced in this metric. + The value is empty when load-balancing is not used. + preprocessing: + - type: JSONPATH + parameters: + - $.sent_bytes_count.true + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 44032903b7da4d72b2dff35e81e787d3 + name: 'Network: Sent packets' + type: DEPENDENT + key: gcp.gce.network.lb.sent_packets_count.false + delay: '0' + description: 'Count of packets sent over the network without load-balancing.' + preprocessing: + - type: JSONPATH + parameters: + - $.sent_packets_count.false + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 2aef5ad0f3704550b4920ce36614b52d + name: 'Network: Sent packets: Load-balanced' + type: DEPENDENT + key: gcp.gce.network.lb.sent_packets_count.true + delay: '0' + description: | + Whether traffic was received by an L3 loadbalanced IP address assigned to the VM. + Traffic that is externally routed to the VM's standard internal or external IP address, such as L7 loadbalanced traffic, is not considered to be loadbalanced in this metric. + The value is empty when load-balancing is not used. + preprocessing: + - type: JSONPATH + parameters: + - $.sent_packets_count.true + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 199fb1f4278848138ef8cfd8fc3e07ee + name: 'Network: Mirrored bytes' + type: DEPENDENT + key: gcp.gce.network.mirrored_bytes_count + delay: '0' + units: B + description: 'The count of mirrored bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mirrored_bytes_count + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: f0add3d3853d4d8c9993b1603fd7b542 + name: 'Network: Mirrored packets' + type: DEPENDENT + key: gcp.gce.network.mirrored_packets_count + delay: '0' + description: 'The count of mirrored packets.' + preprocessing: + - type: JSONPATH + parameters: + - $.mirrored_packets_count + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 6ca64c0fa39e4587a2987cd607058b54 + name: 'Network: Mirrored packets dropped: Invalid' + type: DEPENDENT + key: gcp.gce.network.mirr_dropped_packets.invalid + delay: '0' + description: | + The count of mirrored packets dropped. + Reason - invalid. + preprocessing: + - type: JSONPATH + parameters: + - $.invalid + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 3cf438aa0225428385d30c5be30ea3e6 + name: 'Network: Mirrored packets dropped: Out of quota' + type: DEPENDENT + key: gcp.gce.network.mirr_dropped_packets.out_of_quota + delay: '0' + description: | + The count of mirrored packets dropped. + Reason - out of quota. + preprocessing: + - type: JSONPATH + parameters: + - $.out_of_quota + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + - uuid: 5303badcf26641f1af85366fbaecdd77 + name: 'Network: Mirrored packets dropped: Unknown' + type: DEPENDENT + key: gcp.gce.network.mirr_dropped_packets.unknown + delay: '0' + description: | + The count of mirrored packets dropped. + Reason - unknown. + preprocessing: + - type: JSONPATH + parameters: + - $.unknown + master_item: + key: gcp.gce.metrics.get + tags: + - tag: component + value: network + - tag: component + value: traffic + discovery_rules: + - uuid: 260e06bfe28e46f4a726dd4a6d7fa523 + name: 'GCP Compute Engine: Physical disks discovery' + type: DEPENDENT + key: gcp.gce.phys.disks.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GCE.DISK.DEV_TYPE}' + value: '{$GCE.DISK.DEV_TYPE.MATCHES}' + formulaid: A + - macro: '{#GCE.DISK.DEV_TYPE}' + value: '{$GCE.DISK.DEV_TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#GCE.DISK.NAME}' + value: '{$GCE.DISK.NAME.MATCHES}' + formulaid: C + - macro: '{#GCE.DISK.NAME}' + value: '{$GCE.DISK.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#GCE.DISK.STOR_TYPE}' + value: '{$GCE.DISK.STOR_TYPE.MATCHES}' + formulaid: E + - macro: '{#GCE.DISK.STOR_TYPE}' + value: '{$GCE.DISK.STOR_TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'GCP Compute Engine: Physical disks discovery.' + item_prototypes: + - uuid: dda10a0535c04fdb92092efeff020b2c + name: 'Disk [{#GCE.DISK.NAME}]: Read bytes' + type: DEPENDENT + key: 'gcp.gce.disk.read_bytes_count[{#GCE.DISK.NAME}]' + delay: '0' + units: B + description: 'Count of bytes read from [{#GCE.DISK.NAME}] disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.read_bytes_count + master_item: + key: 'gcp.gce.quota.single.raw[{#GCE.DISK.NAME}]' + tags: + - tag: component + value: storage + - tag: device-type + value: '{#GCE.DISK.DEV_TYPE}' + - tag: disk + value: '{#GCE.DISK.NAME}' + - tag: storage-type + value: '{#GCE.DISK.STOR_TYPE}' + - uuid: e166d3dfeb404111bcd143415070a0af + name: 'Disk [{#GCE.DISK.NAME}]: Read operations' + type: DEPENDENT + key: 'gcp.gce.disk.read_ops_count[{#GCE.DISK.NAME}]' + delay: '0' + description: 'Count of read IO operations from [{#GCE.DISK.NAME}] disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.read_ops_count + master_item: + key: 'gcp.gce.quota.single.raw[{#GCE.DISK.NAME}]' + tags: + - tag: component + value: storage + - tag: device-type + value: '{#GCE.DISK.DEV_TYPE}' + - tag: disk + value: '{#GCE.DISK.NAME}' + - tag: storage-type + value: '{#GCE.DISK.STOR_TYPE}' + - uuid: cf21b2bf6dc74ed28bc55a2c567b3dae + name: 'Disk [{#GCE.DISK.NAME}]: Write bytes' + type: DEPENDENT + key: 'gcp.gce.disk.write_bytes_count[{#GCE.DISK.NAME}]' + delay: '0' + units: B + description: 'Count of bytes written to {#GCE.DISK.NAME}] disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.write_bytes_count + master_item: + key: 'gcp.gce.quota.single.raw[{#GCE.DISK.NAME}]' + tags: + - tag: component + value: storage + - tag: device-type + value: '{#GCE.DISK.DEV_TYPE}' + - tag: disk + value: '{#GCE.DISK.NAME}' + - tag: storage-type + value: '{#GCE.DISK.STOR_TYPE}' + - uuid: 602255b7df004129b5a3e0e1d2fba920 + name: 'Disk [{#GCE.DISK.NAME}]: Write operations' + type: DEPENDENT + key: 'gcp.gce.disk.write_ops_count[{#GCE.DISK.NAME}]' + delay: '0' + description: 'Count of write IO operations to [{#GCE.DISK.NAME}] disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.write_ops_count + master_item: + key: 'gcp.gce.quota.single.raw[{#GCE.DISK.NAME}]' + tags: + - tag: component + value: storage + - tag: device-type + value: '{#GCE.DISK.DEV_TYPE}' + - tag: disk + value: '{#GCE.DISK.NAME}' + - tag: storage-type + value: '{#GCE.DISK.STOR_TYPE}' + - uuid: 7fc27a6630664e2fbac8fe64ac40985a + name: 'Disk [{#GCE.DISK.NAME}]: Raw data' + type: DEPENDENT + key: 'gcp.gce.quota.single.raw[{#GCE.DISK.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data in raw format for the disk with the name [{#GCE.DISK.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.disk_name == "{#GCE.DISK.NAME}")].metrics.first()' + master_item: + key: gcp.gce.disks.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: disk + value: '{#GCE.DISK.NAME}' + graph_prototypes: + - uuid: 9af0456af3d74041b678ceeccbc036fc + name: 'GCP Compute Engine: Disk [{#GCE.DISK.NAME}]: Read/Write bytes' + graph_items: + - color: 199C0D + item: + host: 'GCP Compute Engine Instance by HTTP' + key: 'gcp.gce.disk.read_bytes_count[{#GCE.DISK.NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'GCP Compute Engine Instance by HTTP' + key: 'gcp.gce.disk.write_bytes_count[{#GCE.DISK.NAME}]' + - uuid: 542185ffc8b3485f8955b63c46a50b83 + name: 'GCP Compute Engine: Disk [{#GCE.DISK.NAME}]: Read/Write operations' + graph_items: + - color: 199C0D + item: + host: 'GCP Compute Engine Instance by HTTP' + key: 'gcp.gce.disk.read_ops_count[{#GCE.DISK.NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'GCP Compute Engine Instance by HTTP' + key: 'gcp.gce.disk.write_ops_count[{#GCE.DISK.NAME}]' + master_item: + key: gcp.gce.disks.get + lld_macro_paths: + - lld_macro: '{#GCE.DISK.DEV_TYPE}' + path: $.device_type + - lld_macro: '{#GCE.DISK.NAME}' + path: $.disk_name + - lld_macro: '{#GCE.DISK.STOR_TYPE}' + path: $.storage_type + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: compute-engine + - tag: target + value: gce + - tag: target + value: gcp + - tag: target + value: google-cloud-platform + macros: + - macro: '{$GCE.CPU.UTIL.MAX}' + value: '95' + description: 'GCP Compute Engine instance CPU utilization threshold.' + - macro: '{$GCE.DISK.DEV_TYPE.MATCHES}' + value: '.*' + description: 'The filter to include GCP Compute Engine disks by device type.' + - macro: '{$GCE.DISK.DEV_TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Compute Engine disks by device type.' + - macro: '{$GCE.DISK.NAME.MATCHES}' + value: '.*' + description: 'The filter to include GCP Compute Engine disks by namespace.' + - macro: '{$GCE.DISK.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Compute Engine disks by namespace.' + - macro: '{$GCE.DISK.STOR_TYPE.MATCHES}' + value: '.*' + description: 'The filter to include GCP Compute Engine disks by storage type.' + - macro: '{$GCE.DISK.STOR_TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Compute Engine disks by storage type.' + - macro: '{$GCE.RAM.UTIL.MAX}' + value: '90' + description: 'GCP Compute Engine instance RAM utilization threshold.' + - macro: '{$GCP.DATA.TIMEOUT}' + value: 15s + description: 'A response timeout for an API.' + - macro: '{$GCP.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$GCP.TIME.WINDOW}' + value: 5m + description: | + Time interval for the data requests. + Supported usage type: + 1. The default update interval for most of the items. + 2. The minimal time window for the data requested in the Monitoring Query Language REST API request. + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "GCP Compute Engine Instance", e.g. {$HTTP.TLS.VERIFY:"GCP Compute Engine Instance"}.' + dashboards: + - uuid: b8b09f6833ec4ea78c4ac7d15cdb0cc5 + name: Hardware + pages: + - name: Hardware + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Compute Engine Instance by HTTP' + name: 'GCP Compute Engine: CPU usage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '24' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Compute Engine Instance by HTTP' + name: 'GCP Compute Engine: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'GCP Compute Engine Instance by HTTP' + name: 'GCP Compute Engine: Disk [{#GCE.DISK.NAME}]: Read/Write bytes' + - type: STRING + name: reference + value: AAAAF + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Compute Engine Instance by HTTP' + name: 'GCP Compute Engine: Network traffic' + - type: STRING + name: reference + value: AAAAH + - type: graph + x: '24' + 'y': '5' + width: '24' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.memory.ram_pused + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.cpu.utilization + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '1' + - type: graphprototype + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'GCP Compute Engine Instance by HTTP' + name: 'GCP Compute Engine: Disk [{#GCE.DISK.NAME}]: Read/Write operations' + - type: STRING + name: reference + value: AAAAG + - type: graph + x: '48' + 'y': '5' + width: '24' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'GCP Compute Engine Instance by HTTP' + name: 'GCP Compute Engine: Memory swapping' + - type: STRING + name: reference + value: AAAAE + valuemaps: + - uuid: d5f19327f8b74b44a40950d9d4f9410f + name: 'Instance state' + mappings: + - value: '0' + newvalue: Running + - value: '1' + newvalue: Provisioning + - value: '2' + newvalue: Staging + - value: '3' + newvalue: Stopping + - value: '4' + newvalue: Repairing + - value: '5' + newvalue: Terminated + - value: '6' + newvalue: Suspending + - value: '7' + newvalue: Suspended + - value: '10' + newvalue: 'Data retrievement error' + - uuid: 1e17bce361f9486dae764fc195561703 + name: 'Integrity validation status' + mappings: + - value: '0' + newvalue: Passed + - value: '1' + newvalue: Failed + - value: '2' + newvalue: Unknown + graphs: + - uuid: aa6edbd13ec74ee4b30de2c68823e6aa + name: 'GCP Compute Engine: CPU usage' + graph_items: + - color: 199C0D + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.cpu.scheduler_wait_time + - sortorder: '1' + color: F63100 + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.cpu.usage_time + - uuid: a87f4b9849e34f96b7026f4abc8499a1 + name: 'GCP Compute Engine: Memory swapping' + graph_items: + - color: 199C0D + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.memory.swap_in_bytes_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.memory.swap_out_bytes_count + - uuid: 5aef2c89a0fa41cd889d87a618cc10bd + name: 'GCP Compute Engine: Memory usage' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.memory.ram_size + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.memory.ram_used + - uuid: c1c8ebb71d9542ea8b59cef775a6bd65 + name: 'GCP Compute Engine: Network traffic' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.firewall.dropped_bytes_count + - sortorder: '1' + color: F63100 + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.network.lb.received_bytes_count.false + - sortorder: '2' + color: 00611C + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.network.lb.received_bytes_count.true + - sortorder: '3' + color: F7941D + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.network.lb.sent_bytes_count.false + - sortorder: '4' + color: FC6EA3 + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.network.lb.sent_bytes_count.true + - sortorder: '5' + color: 6C59DC + item: + host: 'GCP Compute Engine Instance by HTTP' + key: gcp.gce.network.mirrored_bytes_count diff --git a/GCP_by_HTTP.yaml b/GCP_by_HTTP.yaml new file mode 100644 index 0000000..8d50b4d --- /dev/null +++ b/GCP_by_HTTP.yaml @@ -0,0 +1,1705 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + host_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Databases + - uuid: 137f19e6e2dc4219b33553b812627bc2 + name: 'Virtual machines' + templates: + - uuid: 4e1e9372a5fe4297936210bc4fc4b1c0 + template: 'GCP by HTTP' + name: 'GCP by HTTP' + description: | + Discover GCP Compute Engine/Cloud SQL Instances and Compute Engine project quota metrics. + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Cloud + items: + - uuid: b003e61fbede488a957b6c866ffaa9ba + name: 'Authorization errors check' + type: DEPENDENT + key: gcp.auth.err.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + master_item: + key: gcp.authorization + tags: + - tag: component + value: status + triggers: + - uuid: 74c0e16244314ab4a920e32faca50444 + expression: 'length(last(/GCP by HTTP/gcp.auth.err.check)) > 0' + name: 'GCP: Authorization has failed' + priority: AVERAGE + description: | + GCP: Authorization has failed. + Check the authorization parameters and GCP API availability from a network segment, where Zabbix-server/proxy is located. + tags: + - tag: scope + value: availability + - uuid: 5cc3faa82f404b38b513958f323f3d7d + name: Authorization + type: SCRIPT + key: gcp.authorization + delay: '{$GCP.AUTH.FREQUENCY}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var auth_url = 'https://oauth2.googleapis.com/token', + issued = Math.floor(new Date().getTime() / 1000), + expires = issued + 3600, + endpoint = 'https://www.googleapis.com/auth/', + scopes = ['cloud-platform.read-only', 'monitoring', 'compute.readonly', 'sqlservice.admin'], + scope = scopes.map(function (path) { return endpoint + path; }).join(' '); + + function base64url(source) { + encodedSource = btoa(source); + encodedSource = encodedSource.replace(/=+$/, ''); + encodedSource = encodedSource.replace(/\+/g, '-'); + encodedSource = encodedSource.replace(/\//g, '_'); + + return encodedSource; + } + + function fromHex(hex) { + var utf8array = []; + + if (hex.length % 2) + throw 'Invalid length of a hex string!'; + for (var i = 0; i < hex.length; i += 2) { + utf8array.push(parseInt(hex.substr(i, 2), 16)); + } + return new Uint8Array(utf8array); + } + + function encodeJWT(headers, payload, secret) { + unsignedToken = base64url(JSON.stringify(headers)) + '.' + base64url(JSON.stringify(payload)); + jwt = unsignedToken + '.' + base64url(fromHex(sign('sha256', secret, unsignedToken))); + return jwt; + } + + function exchangeJwtForAccessToken(signed_jwt) { + + var tls = new CTlsConfig(script_params.tls_verify), + request = new HttpRequest(tls.options), + params = { + grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', + assertion: signed_jwt + } + if (typeof script_params.proxy !== 'undefined' && script_params.proxy !== '') { + request.setProxy(script_params.proxy); + }; + var response = request.post(auth_url, JSON.stringify(params)); + + Zabbix.log(4, '[ GCP API ] [ ' + auth_url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + + + if (typeof response.access_token !== 'undefined') { + return response.access_token; + } + else { + throw 'No access token in the JWT exchange request.'; + } + } + + function checkParams(params) { + ['pkey_id', 'private_key', 'email'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + return params; + } + + var script_params = checkParams(JSON.parse(value)), + headers = { + alg: 'RS256', + kid: script_params.pkey_id, + typ: 'JWT' + }, + payload = { + iss: script_params.email, + sub: script_params.email, + aud: auth_url, + iat: issued, + exp: expires, + scope: scope + }; + + try { + jwt = encodeJWT(headers, payload, script_params.private_key); + token = exchangeJwtForAccessToken(jwt); + return token; + } + catch (err) { + return JSON.stringify({ error: err }); + } + description: | + Google Cloud Platform REST authorization with service account authentication parameters and temporary-generated RSA-based JWT-token usage. + The necessary scopes are pre-defined. + Returns a signed authorization token with 1 hour lifetime; it is required only once, and is used for all the dependent script items. + Check the template documentation for the details. + timeout: '{$GCP.DATA.TIMEOUT}' + parameters: + - name: email + value: '{$GCP.CLIENT.EMAIL}' + - name: pkey_id + value: '{$GCP.PRIVATE.KEY.ID}' + - name: private_key + value: '{$GCP.PRIVATE.KEY}' + - name: proxy + value: '{$GCP.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GCP"}' + tags: + - tag: component + value: raw + - uuid: 3ac5c859692140c0b686e772efa05032 + name: 'Cloud SQL instances get' + type: DEPENDENT + key: gcp.cloudsql.instances.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'GCP Cloud SQL: Instances get.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var token = value, + tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"GCP"}.regsub("^(none|peer|full)$", "\1")}'); + + function getField(data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function getFieldBool(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + return false; + } + data = data[step]; + } + return true; + } + + function getHttpData(url, token) { + var request = new HttpRequest(tls.options), + proxy = '{$GCP.PROXY}'; + if (proxy !== '{' + '$GCP.PROXY}' && proxy !== '') { + request.setProxy(proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.get(url); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + var project = '{$GCP.PROJECT.ID}'; + + if (!project || project === '{' + '$GCP.PROJECT.ID}') { + throw 'Error. Set the \{$GCP.PROJECT.ID\} macro value.'; + } + + var inst_raw = getHttpData('https://sqladmin.googleapis.com/sql/v1beta4/projects/' + project + '/instances', token); + + if (Object.keys(inst_raw).length === 0) { + return '[]'; + } + + return JSON.stringify(getField(inst_raw, 'items').map(function (sql_inst) { + obj = { + name: getField(sql_inst, 'name'), + token: value, + zone: getField(sql_inst, 'settings.locationPreference.zone'), + inst_type: getField(sql_inst, 'instanceType'), + tier: getField(sql_inst, 'settings.tier'), + project_id: getField(sql_inst, 'project'), + db_type: getField(sql_inst, 'databaseInstalledVersion') + }; + + obj.high_availability = (sql_inst.failoverReplica) ? true : false; + + if (obj.db_type.match(/SQLSERVER*/)) { + obj.audited = getFieldBool(sql_inst, 'settings.sqlServerAuditConfig.bucket'); + } + + if (obj.inst_type === 'READ_REPLICA_INSTANCE') { + obj.master = getField(sql_inst, 'masterInstanceName'); + } + + if (Array.isArray(sql_inst.ipAddresses)) { + var int_addresses = sql_inst.ipAddresses.filter(function (addr) { + return addr.type === 'PRIVATE'; + }); + + var ext_addresses = sql_inst.ipAddresses.filter(function (addr) { + return addr.type === 'PRIMARY'; + }); + + obj.ip = getFieldBool(int_addresses, '0.ipAddress') ? int_addresses[0].ipAddress : '0.0.0.0'; + obj.ext_ip = getFieldBool(ext_addresses, '0.ipAddress') ? ext_addresses[0].ipAddress : '0.0.0.0'; + } + else { + obj.ip = '0.0.0.0'; + obj.ext_ip = '0.0.0.0'; + } + + return obj; + })); + master_item: + key: gcp.authorization + tags: + - tag: component + value: raw + - uuid: 80687b35246b45ffa1be9d171f686e94 + name: 'MSSQL instances count' + type: DEPENDENT + key: gcp.cloudsql.instances.mssql_count + delay: '0' + description: 'GCP Cloud SQL MSSQL instances count.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.db_type =~ ''SQLSERVER'')].length()' + error_handler: DISCARD_VALUE + master_item: + key: gcp.cloudsql.instances.get + tags: + - tag: component + value: environment + - uuid: 8ec94dff7a3b47998242d97a18cf0821 + name: 'MySQL instances count' + type: DEPENDENT + key: gcp.cloudsql.instances.mysql_count + delay: '0' + description: 'GCP Cloud SQL MySQL instances count.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.db_type =~ ''MYSQL'')].length()' + error_handler: DISCARD_VALUE + master_item: + key: gcp.cloudsql.instances.get + tags: + - tag: component + value: environment + - uuid: de284dd30b2d4ecb9f7d0cf3ca80a094 + name: 'PostgreSQL instances count' + type: DEPENDENT + key: gcp.cloudsql.instances.pgsql_count + delay: '0' + description: 'GCP Cloud SQL PostgreSQL instances count.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.db_type =~ ''POSTGRES'')].length()' + error_handler: DISCARD_VALUE + master_item: + key: gcp.cloudsql.instances.get + tags: + - tag: component + value: environment + - uuid: b926ba1901c5413396c1c071e6e76072 + name: 'Cloud SQL instances total' + type: DEPENDENT + key: gcp.cloudsql.instances.total + delay: '0' + description: 'GCP Cloud SQL instances total count.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[*].length()' + master_item: + key: gcp.cloudsql.instances.get + tags: + - tag: component + value: environment + - uuid: 58329c9a5b124b1990c94f15266e6edf + name: 'Container-optimized GCE instances count' + type: DEPENDENT + key: gcp.gce.instances.cos_count + delay: '0' + description: 'GCP Compute Engine: count of instances with Container-Optimized OS used.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.i_type == ''container-optimized'')].length()' + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.instances.get + tags: + - tag: component + value: environment + - uuid: 461e72fb7e104261831455ae3cc87358 + name: 'GCE instances get' + type: DEPENDENT + key: gcp.gce.instances.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get GCP Compute Engine instances.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var token = value, + tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"GCP"}.regsub("^(none|peer|full)$", "\1")}'); + function checkMacro(macro) { + if (!macro || macro.match(/^\{\$.*\}$/)) { + throw 'The GCP project id is not defined. Please, set the value for the \{$GCP.PROJECT.ID\} macro.'; + } + return macro; + } + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + function getFieldBool(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + return false; + } + data = data[step]; + } + return true; + } + + + function getHttpData(url, token) { + var request = new HttpRequest(tls.options), + proxy = '{$GCP.PROXY}'; + if (proxy !== '{' + '$GCP.PROXY}' && proxy !== '') { + request.setProxy(proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.get(url); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + return response; + }; + + var project = '{$GCP.PROJECT.ID}'; + + if (!project || project === '{' + '$GCP.PROJECT.ID}') { + throw 'Error. Set the \{$GCP.PROJECT.ID\} macro value.'; + } + + var result = getHttpData('https://compute.googleapis.com/compute/v1/projects/' + project + '/aggregated/instances', token), + vms_raw = getField(result, 'items'), + keys = Object.keys(vms_raw), + arr = []; + + for (var i in keys) { + if (typeof vms_raw[keys[i]].instances !== 'undefined') { + var vm_prop = vms_raw[keys[i]].instances.map(function setProp(inst) { + obj = { + id: getField(inst, 'id'), + name: getField(inst, 'name'), + token: value, + zone: keys[i].replace(/zones\//, ''), + m_type: getField(inst, 'machineType').replace(/.*machineTypes\//g, ''), + state: getField(inst, 'status'), + project_id: '{$GCP.PROJECT.ID}', + ip: getField(inst, 'networkInterfaces.0.networkIP'), + integrity: getFieldBool(inst, 'shieldedInstanceConfig.enableIntegrityMonitoring') ? inst.shieldedInstanceConfig.enableIntegrityMonitoring : false + }; + + obj.ext_ip = getFieldBool(inst, 'networkInterfaces.0.accessConfigs.0.natIP') ? inst.networkInterfaces[0].accessConfigs[0].natIP : '0.0.0.0'; + obj.i_type = getFieldBool(inst, 'labels.container-vm') ? 'container-optimized' : 'regular'; + return obj; + }); + arr = arr.concat(vm_prop); + } + } + return JSON.stringify(arr); + master_item: + key: gcp.authorization + tags: + - tag: component + value: raw + - uuid: a936207f9d914955b2e2140e953f22f2 + name: 'Regular GCE instances count' + type: DEPENDENT + key: gcp.gce.instances.regular_count + delay: '0' + description: 'GCP Compute Engine: Regular instances count.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.i_type == ''regular'')].length()' + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.instances.get + tags: + - tag: component + value: environment + - uuid: 46eaeccd1f43466caadd44440da88568 + name: 'GCE instances total' + type: DEPENDENT + key: gcp.gce.instances.total + delay: '0' + description: 'GCP Compute Engine instances total count.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[*].length()' + error_handler: DISCARD_VALUE + master_item: + key: gcp.gce.instances.get + tags: + - tag: component + value: environment + - uuid: c4f17331815345bcb0ac6ea98413b2b5 + name: 'Project quotas get' + type: DEPENDENT + key: gcp.gce.quotas.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'GCP Compute Engine resource quotas available for the particular project.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var token = value, + tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"GCP"}.regsub("^(none|peer|full)$", "\1")}'); + + function checkMacro(macro) { + if (!macro || macro.match(/^\{\$.*\}$/)) { + throw 'The GCP project id is not defined. Please, set the value for the \{$GCP.PROJECT.ID\} macro.'; + } + return macro; + } + + function getField(data, path) { + var steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.' + } + data = data[step]; + } + return data; + } + + function getHttpData(url, token) { + var request = new HttpRequest(tls.options), + proxy = '{$GCP.PROXY}'; + if (proxy !== '{' + '$GCP.PROXY}' && proxy !== '') { + request.setProxy(proxy); + }; + request.addHeader('Authorization: Bearer ' + token); + request.addHeader('Content-Type: application/json'); + + var response = request.get(url); + + Zabbix.log(4, '[ GCP API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from GCP API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object. Check debug log for more information.'; + } + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } + else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + + if (typeof response.quotas !== 'undefined') { + return response; + } else { + throw 'No quotas array in API response'; + } + }; + var project = checkMacro('{$GCP.PROJECT.ID}'), + qts_raw = getHttpData('https://www.googleapis.com/compute/v1/projects/' + project, token), + qts_lst = getField(qts_raw, 'quotas').map(function (qt) { + obj = { + metric: getField(qt, 'metric'), + limit: getField(qt, 'limit'), + usage: getField(qt, 'usage'), + p_used: (qt.usage / qt.limit) * 100 + }; + return obj; + }); + + return JSON.stringify(qts_lst); + master_item: + key: gcp.authorization + tags: + - tag: component + value: raw + discovery_rules: + - uuid: f210e8e38c194c65b30e74610ec2b86f + name: 'GCP Cloud SQL: MSSQL instances discovery' + type: DEPENDENT + key: gcp.cloudsql.mssql.inst.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CLOUD_SQL.INSTANCE.DB.TYPE}' + value: 'SQLSERVER.*' + formulaid: A + - macro: '{#CLOUD_SQL.INSTANCE.NAME}' + value: '{$GCP.MSSQL.INST.NAME.MATCHES}' + formulaid: B + - macro: '{#CLOUD_SQL.INSTANCE.NAME}' + value: '{$GCP.MSSQL.INST.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + value: '{$GCP.MSSQL.INST.TYPE.MATCHES}' + formulaid: D + - macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + value: '{$GCP.MSSQL.INST.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: E + - macro: '{#CLOUD_SQL.INSTANCE.ZONE}' + value: '{$GCP.MSSQL.ZONE.MATCHES}' + formulaid: F + - macro: '{#CLOUD_SQL.INSTANCE.ZONE}' + value: '{$GCP.MSSQL.ZONE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'GCP Cloud SQL: MSSQL instances discovery.' + host_prototypes: + - uuid: edc6ab9314ed410b8a3cf6bfedff51ab + host: '{#GCP.PROJECT.ID}-{#CLOUD_SQL.INSTANCE.NAME}' + name: '{#CLOUD_SQL.INSTANCE.NAME}' + group_links: + - group: + name: Databases + templates: + - name: 'GCP Cloud SQL MSSQL by HTTP' + macros: + - macro: '{$CLOUD_SQL.HIGH.AVAILABILITY}' + value: '{#CLOUD_SQL.INSTANCE.HIGH.AVAIL}' + description: 'GCP Cloud SQL instance high availability definition. Required for metrics filtration.' + - macro: '{$CLOUD_SQL.MSSQL.AUDITED}' + value: '{#MSSQL.AUDITED}' + description: 'GCP Cloud SQL MSSQL audit enabled definition. Required for metrics filtration.' + - macro: '{$GCP.AUTH.TOKEN}' + value: '{#GCP.AUTH.TOKEN}' + description: 'Google Cloud Platform authorization token.' + - macro: '{$GCP.PROJECT.ID}' + value: '{#GCP.PROJECT.ID}' + description: 'GCP Project Id.' + tags: + - tag: audit + value: '{#MSSQL.AUDITED}' + - tag: db-version + value: '{#CLOUD_SQL.INSTANCE.DB.TYPE}' + - tag: high-availability + value: '{#CLOUD_SQL.INSTANCE.HIGH.AVAIL}' + - tag: instance-type + value: '{#CLOUD_SQL.INSTANCE.TYPE}' + - tag: project + value: '{#GCP.PROJECT.ID}' + - tag: service + value: cloudsql + - tag: service + value: gcp + - tag: service + value: mssql + - tag: tier + value: '{#CLOUD_SQL.INSTANCE.TIER}' + - tag: zone + value: '{#CLOUD_SQL.INSTANCE.ZONE}' + custom_interfaces: 'YES' + interfaces: + - default: 'NO' + ip: '{#CLOUD_SQL.INSTANCE.EXT.IP}' + dns: external.ip + - ip: '{#CLOUD_SQL.INSTANCE.IP}' + dns: internal.ip + master_item: + key: gcp.cloudsql.instances.get + lld_macro_paths: + - lld_macro: '{#CLOUD_SQL.INSTANCE.DB.TYPE}' + path: $.db_type + - lld_macro: '{#CLOUD_SQL.INSTANCE.EXT.IP}' + path: $.ext_ip + - lld_macro: '{#CLOUD_SQL.INSTANCE.HIGH.AVAIL}' + path: $.high_availability + - lld_macro: '{#CLOUD_SQL.INSTANCE.IP}' + path: $.ip + - lld_macro: '{#CLOUD_SQL.INSTANCE.NAME}' + path: $.name + - lld_macro: '{#CLOUD_SQL.INSTANCE.TIER}' + path: $.tier + - lld_macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + path: $.inst_type + - lld_macro: '{#CLOUD_SQL.INSTANCE.ZONE}' + path: $.zone + - lld_macro: '{#CLOUD_SQL.MASTER}' + path: $.master + - lld_macro: '{#GCP.AUTH.TOKEN}' + path: $.token + - lld_macro: '{#GCP.PROJECT.ID}' + path: $.project_id + - lld_macro: '{#MSSQL.AUDITED}' + path: $.audited + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'MSSQL replica' + step: '1' + filter: + conditions: + - macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + value: READ_REPLICA_INSTANCE + formulaid: A + - macro: '{#CLOUD_SQL.MASTER}' + operator: EXISTS + formulaid: B + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + tags: + - tag: master_instance + value: '{#CLOUD_SQL.MASTER}' + templates: + - name: 'GCP Cloud SQL MSSQL Replica by HTTP' + - uuid: 3fdd2543936a4587b1bfb5dabb30c1f6 + name: 'GCP Cloud SQL: MySQL instances discovery' + type: DEPENDENT + key: gcp.cloudsql.mysql.inst.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CLOUD_SQL.INSTANCE.DB.TYPE}' + value: 'MYSQL.*' + formulaid: A + - macro: '{#CLOUD_SQL.INSTANCE.NAME}' + value: '{$GCP.MYSQL.INST.NAME.MATCHES}' + formulaid: B + - macro: '{#CLOUD_SQL.INSTANCE.NAME}' + value: '{$GCP.MYSQL.INST.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + value: '{$GCP.MYSQL.INST.TYPE.MATCHES}' + formulaid: D + - macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + value: '{$GCP.MYSQL.INST.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: E + - macro: '{#CLOUD_SQL.INSTANCE.ZONE}' + value: '{$GCP.MYSQL.ZONE.MATCHES}' + formulaid: F + - macro: '{#CLOUD_SQL.INSTANCE.ZONE}' + value: '{$GCP.MYSQL.ZONE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'GCP Cloud SQL: MySQL instances discovery.' + host_prototypes: + - uuid: 8b2556b881b14b86a98f90a447ae9734 + host: '{#GCP.PROJECT.ID}-{#CLOUD_SQL.INSTANCE.NAME}' + name: '{#CLOUD_SQL.INSTANCE.NAME}' + group_links: + - group: + name: Databases + templates: + - name: 'GCP Cloud SQL MySQL by HTTP' + macros: + - macro: '{$CLOUD_SQL.HIGH.AVAILABILITY}' + value: '{#CLOUD_SQL.INSTANCE.HIGH.AVAIL}' + description: 'GCP Cloud SQL instance high availability definition.' + - macro: '{$GCP.AUTH.TOKEN}' + value: '{#GCP.AUTH.TOKEN}' + description: 'Google Cloud Platform authorization token.' + - macro: '{$GCP.PROJECT.ID}' + value: '{#GCP.PROJECT.ID}' + description: 'GCP Project Id.' + tags: + - tag: db-version + value: '{#CLOUD_SQL.INSTANCE.DB.TYPE}' + - tag: high-availability + value: '{#CLOUD_SQL.INSTANCE.HIGH.AVAIL}' + - tag: instance-type + value: '{#CLOUD_SQL.INSTANCE.TYPE}' + - tag: project + value: '{#GCP.PROJECT.ID}' + - tag: service + value: cloudsql + - tag: service + value: gcp + - tag: service + value: mysql + - tag: tier + value: '{#CLOUD_SQL.INSTANCE.TIER}' + - tag: zone + value: '{#CLOUD_SQL.INSTANCE.ZONE}' + custom_interfaces: 'YES' + interfaces: + - default: 'NO' + ip: '{#CLOUD_SQL.INSTANCE.EXT.IP}' + dns: external.ip + - ip: '{#CLOUD_SQL.INSTANCE.IP}' + dns: internal.ip + master_item: + key: gcp.cloudsql.instances.get + lld_macro_paths: + - lld_macro: '{#CLOUD_SQL.INSTANCE.DB.TYPE}' + path: $.db_type + - lld_macro: '{#CLOUD_SQL.INSTANCE.EXT.IP}' + path: $.ext_ip + - lld_macro: '{#CLOUD_SQL.INSTANCE.HIGH.AVAIL}' + path: $.high_availability + - lld_macro: '{#CLOUD_SQL.INSTANCE.IP}' + path: $.ip + - lld_macro: '{#CLOUD_SQL.INSTANCE.NAME}' + path: $.name + - lld_macro: '{#CLOUD_SQL.INSTANCE.TIER}' + path: $.tier + - lld_macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + path: $.inst_type + - lld_macro: '{#CLOUD_SQL.INSTANCE.ZONE}' + path: $.zone + - lld_macro: '{#CLOUD_SQL.MASTER}' + path: $.master + - lld_macro: '{#GCP.AUTH.TOKEN}' + path: $.token + - lld_macro: '{#GCP.PROJECT.ID}' + path: $.project_id + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'MySQL replica' + step: '1' + filter: + conditions: + - macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + value: READ_REPLICA_INSTANCE + formulaid: A + - macro: '{#CLOUD_SQL.MASTER}' + operator: EXISTS + formulaid: B + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + tags: + - tag: master_instance + value: '{#CLOUD_SQL.MASTER}' + templates: + - name: 'GCP Cloud SQL MySQL Replica by HTTP' + - uuid: 606ba15087894f268f4b626590b7a9d0 + name: 'GCP Cloud SQL: PostgreSQL instances discovery' + type: DEPENDENT + key: gcp.cloudsql.pgsql.inst.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CLOUD_SQL.INSTANCE.DB.TYPE}' + value: 'POSTGRES.*' + formulaid: A + - macro: '{#CLOUD_SQL.INSTANCE.NAME}' + value: '{$GCP.PGSQL.INST.NAME.MATCHES}' + formulaid: B + - macro: '{#CLOUD_SQL.INSTANCE.NAME}' + value: '{$GCP.PGSQL.INST.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + value: '{$GCP.PGSQL.INST.TYPE.MATCHES}' + formulaid: D + - macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + value: '{$GCP.PGSQL.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: E + - macro: '{#CLOUD_SQL.INSTANCE.ZONE}' + value: '{$GCP.PGSQL.ZONE.MATCHES}' + formulaid: F + - macro: '{#CLOUD_SQL.INSTANCE.ZONE}' + value: '{$GCP.PGSQL.ZONE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: G + description: 'GCP Cloud SQL: PostgreSQL instances discovery.' + host_prototypes: + - uuid: 0fbbc550fda448d39aad6d0710f28b6a + host: '{#GCP.PROJECT.ID}-{#CLOUD_SQL.INSTANCE.NAME}' + name: '{#CLOUD_SQL.INSTANCE.NAME}' + group_links: + - group: + name: Databases + templates: + - name: 'GCP Cloud SQL PostgreSQL by HTTP' + macros: + - macro: '{$CLOUD_SQL.HIGH.AVAILABILITY}' + value: '{#CLOUD_SQL.INSTANCE.HIGH.AVAIL}' + description: 'GCP Cloud SQL instance high availability definition.' + - macro: '{$GCP.AUTH.TOKEN}' + value: '{#GCP.AUTH.TOKEN}' + description: 'Google Cloud Platform authorization token.' + - macro: '{$GCP.PROJECT.ID}' + value: '{#GCP.PROJECT.ID}' + description: 'GCP project id.' + tags: + - tag: db-version + value: '{#CLOUD_SQL.INSTANCE.DB.TYPE}' + - tag: high-availability + value: '{#CLOUD_SQL.INSTANCE.HIGH.AVAIL}' + - tag: instance-type + value: '{#CLOUD_SQL.INSTANCE.TYPE}' + - tag: project + value: '{#GCP.PROJECT.ID}' + - tag: service + value: cloudsql + - tag: service + value: gcp + - tag: service + value: pgsql + - tag: tier + value: '{#CLOUD_SQL.INSTANCE.TIER}' + - tag: zone + value: '{#CLOUD_SQL.INSTANCE.ZONE}' + custom_interfaces: 'YES' + interfaces: + - default: 'NO' + ip: '{#CLOUD_SQL.INSTANCE.EXT.IP}' + dns: external.ip + - ip: '{#CLOUD_SQL.INSTANCE.IP}' + dns: internal.ip + master_item: + key: gcp.cloudsql.instances.get + lld_macro_paths: + - lld_macro: '{#CLOUD_SQL.INSTANCE.DB.TYPE}' + path: $.db_type + - lld_macro: '{#CLOUD_SQL.INSTANCE.EXT.IP}' + path: $.ext_ip + - lld_macro: '{#CLOUD_SQL.INSTANCE.HIGH.AVAIL}' + path: $.high_availability + - lld_macro: '{#CLOUD_SQL.INSTANCE.IP}' + path: $.ip + - lld_macro: '{#CLOUD_SQL.INSTANCE.NAME}' + path: $.name + - lld_macro: '{#CLOUD_SQL.INSTANCE.TIER}' + path: $.tier + - lld_macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + path: $.inst_type + - lld_macro: '{#CLOUD_SQL.INSTANCE.ZONE}' + path: $.zone + - lld_macro: '{#CLOUD_SQL.MASTER}' + path: $.master + - lld_macro: '{#GCP.AUTH.TOKEN}' + path: $.token + - lld_macro: '{#GCP.PROJECT.ID}' + path: $.project_id + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'PostgreSQL replica' + step: '1' + filter: + conditions: + - macro: '{#CLOUD_SQL.INSTANCE.TYPE}' + value: READ_REPLICA_INSTANCE + formulaid: A + - macro: '{#CLOUD_SQL.MASTER}' + operator: EXISTS + formulaid: B + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + tags: + - tag: master_instance + value: '{#CLOUD_SQL.MASTER}' + templates: + - name: 'GCP Cloud SQL PostgreSQL Replica by HTTP' + - uuid: 7d0226eccc5644c89fff10f7ece1c8b4 + name: 'GCP Compute Engine: Instances discovery' + type: DEPENDENT + key: gcp.gce.inst.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GCE.INSTANCE.NAME}' + value: '{$GCP.GCE.INST.NAME.MATCHES}' + formulaid: A + - macro: '{#GCE.INSTANCE.NAME}' + value: '{$GCP.GCE.INST.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#GCE.INSTANCE.ZONE}' + value: '{$GCP.GCE.ZONE.MATCHES}' + formulaid: C + - macro: '{#GCE.INSTANCE.ZONE}' + value: '{$GCP.GCE.ZONE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'GCP Compute Engine: Instances discovery.' + host_prototypes: + - uuid: cb22d82a12814afb8ba833c649d575c4 + host: '{#GCE.INSTANCE.ID}' + name: '{#GCE.INSTANCE.NAME}' + group_links: + - group: + name: 'Virtual machines' + templates: + - name: 'GCP Compute Engine Instance by HTTP' + macros: + - macro: '{$GCE.INSTANCE.ZONE}' + value: '{#GCE.INSTANCE.ZONE}' + description: 'Instance zone (location).' + - macro: '{$GCE.INTEGRITY.STATE}' + value: '{#GCE.INTEGRITY.STATE}' + description: 'Instance integrity metrics status.' + - macro: '{$GCE.MACHINE.TYPE}' + value: '{#GCE.MACHINE.TYPE}' + description: 'Instance machine type.' + - macro: '{$GCP.AUTH.TOKEN}' + value: '{#GCP.AUTH.TOKEN}' + description: 'Google Cloud Platform authorization token.' + - macro: '{$GCP.PROJECT.ID}' + value: '{#GCP.PROJECT.ID}' + description: 'GCP project id.' + tags: + - tag: instance-type + value: '{#GCE.INSTANCE.TYPE}' + - tag: machine-type + value: '{#GCE.MACHINE.TYPE}' + - tag: project + value: '{#GCP.PROJECT.ID}' + - tag: service + value: gce + - tag: service + value: gcp + - tag: zone + value: '{#GCE.INSTANCE.ZONE}' + custom_interfaces: 'YES' + interfaces: + - default: 'NO' + ip: '{#GCE.INSTANCE.EXT.IP}' + dns: external.ip + - ip: '{#GCE.INSTANCE.IP}' + dns: internal.ip + master_item: + key: gcp.gce.instances.get + lld_macro_paths: + - lld_macro: '{#GCE.INSTANCE.EXT.IP}' + path: $.ext_ip + - lld_macro: '{#GCE.INSTANCE.ID}' + path: $.id + - lld_macro: '{#GCE.INSTANCE.IP}' + path: $.ip + - lld_macro: '{#GCE.INSTANCE.NAME}' + path: $.name + - lld_macro: '{#GCE.INSTANCE.TYPE}' + path: $.i_type + - lld_macro: '{#GCE.INSTANCE.ZONE}' + path: $.zone + - lld_macro: '{#GCE.INTEGRITY.STATE}' + path: $.integrity + - lld_macro: '{#GCE.MACHINE.TYPE}' + path: $.m_type + - lld_macro: '{#GCP.AUTH.TOKEN}' + path: $.token + - lld_macro: '{#GCP.PROJECT.ID}' + path: $.project_id + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 1a0dc88bc40d45af90ca761dcb611bf0 + name: 'GCP Compute Engine: Project quotas discovery' + type: DEPENDENT + key: gcp.gce.quotas.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GCE.QUOTA.NAME}' + value: '{$GCP.GCE.QUOTA.MATCHES}' + formulaid: A + - macro: '{#GCE.QUOTA.NAME}' + value: '{$GCP.GCE.QUOTA.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'GCP Compute Engine: Quotas discovery.' + item_prototypes: + - uuid: 1e9a772b9a89497ba695079fc480bd0a + name: 'Quota [{#GCE.QUOTA.NAME}]: Limit' + type: DEPENDENT + key: 'gcp.gce.quota.limit[{#GCE.QUOTA.NAME}]' + delay: '0' + description: 'GCP Compute Engine: The current limit value for [{#GCE.QUOTA.NAME}] quota.' + preprocessing: + - type: JSONPATH + parameters: + - $.limit + master_item: + key: 'gcp.gce.quota.single.raw[{#GCE.QUOTA.NAME}]' + tags: + - tag: component + value: quota + - tag: quota + value: '{#GCE.QUOTA.NAME}' + trigger_prototypes: + - uuid: ac0d8842f0934dcead56d41f328c10d2 + expression: 'change(/GCP by HTTP/gcp.gce.quota.limit[{#GCE.QUOTA.NAME}]) <> 0' + name: 'GCP: Quota [{#GCE.QUOTA.NAME}] limit has been changed' + opdata: 'Current limit: {ITEM.VALUE}' + priority: INFO + description: 'GCP Compute Engine: The limit for the `{#GCE.QUOTA.NAME}` quota has been changed.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - uuid: 6bb3700f7c5c4c51b6a435f5c7d0e315 + name: 'Quota [{#GCE.QUOTA.NAME}]: Percentage used' + type: DEPENDENT + key: 'gcp.gce.quota.pused[{#GCE.QUOTA.NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'GCP Compute Engine: Percentage usage for [{#GCE.QUOTA.NAME}] quota.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: JSONPATH + parameters: + - $.p_used + master_item: + key: 'gcp.gce.quota.single.raw[{#GCE.QUOTA.NAME}]' + tags: + - tag: component + value: quota + - tag: quota + value: '{#GCE.QUOTA.NAME}' + trigger_prototypes: + - uuid: ecce0204198d4edda88f84d4f25ba75c + expression: 'last(/GCP by HTTP/gcp.gce.quota.pused[{#GCE.QUOTA.NAME}]) >= {$GCP.GCE.QUOTA.PUSED.MIN.WARN:"{#GCE.QUOTA.NAME}"}' + name: 'GCP: Quota [{#GCE.QUOTA.NAME}] usage is close to reaching the limit' + opdata: 'Usage: {#GCE.QUOTA.USAGE} | Limit: {#GCE.QUOTA.LIMIT} | Percentage {ITEM.VALUE}%' + priority: WARNING + description: 'GCP Compute Engine: The usage percentage for the `{#GCE.QUOTA.NAME}` quota is close to reaching the limit.' + manual_close: 'YES' + dependencies: + - name: 'GCP: Quota [{#GCE.QUOTA.NAME}] usage is critically close to reaching the limit' + expression: 'last(/GCP by HTTP/gcp.gce.quota.pused[{#GCE.QUOTA.NAME}]) >= {$GCP.GCE.QUOTA.PUSED.MIN.CRIT:"{#GCE.QUOTA.NAME}"}' + tags: + - tag: scope + value: capacity + - uuid: bc894d5e4f694e428fcb32babe87c204 + expression: 'last(/GCP by HTTP/gcp.gce.quota.pused[{#GCE.QUOTA.NAME}]) >= {$GCP.GCE.QUOTA.PUSED.MIN.CRIT:"{#GCE.QUOTA.NAME}"}' + name: 'GCP: Quota [{#GCE.QUOTA.NAME}] usage is critically close to reaching the limit' + opdata: 'Usage: {#GCE.QUOTA.USAGE} | Limit: {#GCE.QUOTA.LIMIT} | Percentage {ITEM.VALUE}%' + priority: AVERAGE + description: 'GCP Compute Engine: The usage percentage for the `{#GCE.QUOTA.NAME}` quota is critically close to reaching the limit.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - tag: scope + value: notice + - uuid: a439501636fd49f0aaf3902300d943b8 + name: 'Quota [{#GCE.QUOTA.NAME}]: Raw data' + type: DEPENDENT + key: 'gcp.gce.quota.single.raw[{#GCE.QUOTA.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'GCP Compute Engine: Get metrics for [{#GCE.QUOTA.NAME}] quota.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.metric == "{#GCE.QUOTA.NAME}")].first()' + master_item: + key: gcp.gce.quotas.get + tags: + - tag: component + value: raw + - tag: quota + value: '{#GCE.QUOTA.NAME}' + - uuid: 936c66cc59a240858f67922dcba2cbec + name: 'Quota [{#GCE.QUOTA.NAME}]: Usage' + type: DEPENDENT + key: 'gcp.gce.quota.usage[{#GCE.QUOTA.NAME}]' + delay: '0' + description: 'GCP Compute Engine: The current usage value for [{#GCE.QUOTA.NAME}] quota.' + preprocessing: + - type: JSONPATH + parameters: + - $.usage + master_item: + key: 'gcp.gce.quota.single.raw[{#GCE.QUOTA.NAME}]' + tags: + - tag: component + value: quota + - tag: quota + value: '{#GCE.QUOTA.NAME}' + graph_prototypes: + - uuid: 45de6eacbed84c82bfe9175fcf84e0c3 + name: 'GCP Compute Engine: Quota [{#GCE.QUOTA.NAME}]: Usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'GCP by HTTP' + key: 'gcp.gce.quota.usage[{#GCE.QUOTA.NAME}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + calc_fnc: MIN + item: + host: 'GCP by HTTP' + key: 'gcp.gce.quota.limit[{#GCE.QUOTA.NAME}]' + master_item: + key: gcp.gce.quotas.get + lld_macro_paths: + - lld_macro: '{#GCE.QUOTA.LIMIT}' + path: $.limit + - lld_macro: '{#GCE.QUOTA.NAME}' + path: $.metric + - lld_macro: '{#GCE.QUOTA.USAGE}' + path: $.usage + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: cloud + - tag: target + value: gcp + - tag: target + value: google-cloud-platform + macros: + - macro: '{$GCP.AUTH.FREQUENCY}' + value: 45m + description: | + The update interval for the GCP Authorization item, which also equals to the access token regeneration request frequency. + Check the template documentation notes carefully for more details. + - macro: '{$GCP.CLIENT.EMAIL}' + description: 'Service account client e-mail.' + - macro: '{$GCP.DATA.TIMEOUT}' + value: 15s + description: 'A response timeout for an API.' + - macro: '{$GCP.GCE.INST.NAME.MATCHES}' + value: '.*' + description: 'The filter to include GCP Compute Engine instances by namespace.' + - macro: '{$GCP.GCE.INST.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Compute Engine instances by namespace.' + - macro: '{$GCP.GCE.QUOTA.MATCHES}' + value: '.*' + description: 'The filter to include GCP Compute Engine project quotas by namespace.' + - macro: '{$GCP.GCE.QUOTA.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Compute Engine project quotas by namespace.' + - macro: '{$GCP.GCE.QUOTA.PUSED.MIN.CRIT}' + value: '95' + description: 'GCP Compute Engine project quota critical quota utilization threshold.' + - macro: '{$GCP.GCE.QUOTA.PUSED.MIN.WARN}' + value: '80' + description: 'GCP Compute Engine project quota warning utilization threshold.' + - macro: '{$GCP.GCE.ZONE.MATCHES}' + value: '.*' + description: 'The filter to include GCP Compute Engine instances by zone.' + - macro: '{$GCP.GCE.ZONE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Compute Engine instances by zone.' + - macro: '{$GCP.MSSQL.INST.NAME.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL MSSQL instances by namespace.' + - macro: '{$GCP.MSSQL.INST.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Cloud SQL MSSQL instances by namespace.' + - macro: '{$GCP.MSSQL.INST.TYPE.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL MSSQL instances by type (standalone/replica).' + - macro: '{$GCP.MSSQL.INST.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: | + The filter to exclude GCP Cloud SQL MSSQL instances by type (standalone/replica). + Set a macro value 'CLOUD_SQL_INSTANCE' to exclude standalone Instances or 'READ_REPLICA_INSTANCE' to exclude read-only Replicas. + - macro: '{$GCP.MSSQL.ZONE.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL MSSQL instances by zone.' + - macro: '{$GCP.MSSQL.ZONE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Cloud SQL MSSQL instances by zone.' + - macro: '{$GCP.MYSQL.INST.NAME.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL MySQL instances by namespace.' + - macro: '{$GCP.MYSQL.INST.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Cloud SQL MySQL instances by namespace.' + - macro: '{$GCP.MYSQL.INST.TYPE.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL MySQL instances by type (standalone/replica).' + - macro: '{$GCP.MYSQL.INST.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: | + The filter to exclude GCP Cloud SQL MySQL instances by type (standalone/replica). + Set a macro value 'CLOUD_SQL_INSTANCE' to exclude standalone Instances or 'READ_REPLICA_INSTANCE' to exclude read-only Replicas. + - macro: '{$GCP.MYSQL.ZONE.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL MySQL instances by zone.' + - macro: '{$GCP.MYSQL.ZONE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Cloud SQL MySQL instances by zone.' + - macro: '{$GCP.PGSQL.INST.NAME.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL PostgreSQL instances by namespace.' + - macro: '{$GCP.PGSQL.INST.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Cloud SQL PostgreSQL instances by namespace.' + - macro: '{$GCP.PGSQL.INST.TYPE.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL PostgreSQL instances by type (standalone/replica).' + - macro: '{$GCP.PGSQL.INST.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: | + The filter to exclude GCP Cloud SQL PostgreSQL instances by type (standalone/replica). + Set a macro value 'CLOUD_SQL_INSTANCE' to exclude standalone Instances or 'READ_REPLICA_INSTANCE' to exclude read-only Replicas. + - macro: '{$GCP.PGSQL.ZONE.MATCHES}' + value: '.*' + description: 'The filter to include GCP Cloud SQL PostgreSQL instances by zone.' + - macro: '{$GCP.PGSQL.ZONE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude GCP Cloud SQL PostgreSQL instances by zone.' + - macro: '{$GCP.PRIVATE.KEY}' + type: SECRET_TEXT + description: 'Service account private key data.' + - macro: '{$GCP.PRIVATE.KEY.ID}' + type: SECRET_TEXT + description: 'Service account private key id.' + - macro: '{$GCP.PROJECT.ID}' + description: 'GCP project ID.' + - macro: '{$GCP.PROXY}' + description: 'Sets HTTP proxy value. If this macro is empty then no proxy is used.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items and JavaScript preprocessing: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "GCP", e.g. {$HTTP.TLS.VERIFY:"GCP"}.' + dashboards: + - uuid: 71df4601171e471ea74a291242028394 + name: 'Project resources' + pages: + - name: 'Project resources' + widgets: + - type: item + name: 'GCE instances total' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GCP by HTTP' + key: gcp.gce.instances.total + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + name: 'Cloud SQL total' + 'y': '5' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GCP by HTTP' + key: gcp.cloudsql.instances.total + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: graphprototype + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'GCP by HTTP' + name: 'GCP Compute Engine: Quota [{#GCE.QUOTA.NAME}]: Usage' + - type: STRING + name: reference + value: AAAAA + - type: item + name: 'Cloud SQL MySQL' + x: '18' + 'y': '5' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GCP by HTTP' + key: gcp.cloudsql.instances.mysql_count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + name: 'GCE regular instances' + x: '24' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GCP by HTTP' + key: gcp.gce.instances.regular_count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + name: 'Cloud SQL PostgreSQL' + x: '36' + 'y': '5' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GCP by HTTP' + key: gcp.cloudsql.instances.pgsql_count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: graphprototype + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'GCP by HTTP' + key: 'gcp.gce.quota.pused[{#GCE.QUOTA.NAME}]' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '3' + - type: item + name: 'GCE COS instances' + x: '48' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GCP by HTTP' + key: gcp.gce.instances.cos_count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + name: 'Cloud SQL MSSQL' + x: '54' + 'y': '5' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GCP by HTTP' + key: gcp.cloudsql.instances.mssql_count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' diff --git a/Generic_Java_JMX.yaml b/Generic_Java_JMX.yaml new file mode 100644 index 0000000..160e3a0 --- /dev/null +++ b/Generic_Java_JMX.yaml @@ -0,0 +1,735 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 72aab08f7f27406a8f2c291648e5ba95 + template: 'Generic Java JMX' + name: 'Generic Java JMX' + description: 'Generated by official Zabbix template tool "Templator"' + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: d16a651b35234011876b4f0c98126988 + name: 'ClassLoading: Loaded class count' + type: JMX + key: 'jmx["java.lang:type=ClassLoading","LoadedClassCount"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Displays number of classes that are currently loaded in the Java virtual machine.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: class + - uuid: fc79c5ac074f4266a88d5c239fa0fb70 + name: 'ClassLoading: Total loaded class count' + type: JMX + key: 'jmx["java.lang:type=ClassLoading","TotalLoadedClassCount"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Displays the total number of classes that have been loaded since the Java virtual machine has started execution.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: class + - uuid: b7620bdebd044fb1b1d2cb293ea8912c + name: 'ClassLoading: Unloaded class count' + type: JMX + key: 'jmx["java.lang:type=ClassLoading","UnloadedClassCount"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Displays the total number of classes that have been loaded since the Java virtual machine has started execution.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: class + - uuid: 0d6880c07fcd42bebddc41f5f2eb7bdd + name: 'Compilation: Name of the current JIT compiler' + type: JMX + key: 'jmx["java.lang:type=Compilation","Name"]' + value_type: CHAR + trends: '0' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Displays the total number of classes unloaded since the Java virtual machine has started execution.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: compilation + triggers: + - uuid: 691f051584d74995b757b4be5e3824fe + expression: 'find(/Generic Java JMX/jmx["java.lang:type=Compilation","Name"],,"like","Client")=1' + name: 'Generic Java JMX: Compilation: {HOST.NAME} uses suboptimal JIT compiler' + priority: INFO + description: 'JVM is running with the Client JIT compiler.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c097ea2de6034d1d94f528533562b896 + name: 'Compilation: Accumulated time spent' + type: JMX + key: 'jmx["java.lang:type=Compilation","TotalCompilationTime"]' + value_type: FLOAT + units: s + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Displays the approximate accumulated elapsed time spent in compilation, in seconds.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: compilation + - uuid: d98a8d00639742f4b62a29e0c7394d61 + name: 'Memory: Heap memory committed' + type: JMX + key: 'jmx["java.lang:type=Memory","HeapMemoryUsage.committed"]' + units: B + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Current heap memory allocated. This amount of memory is guaranteed for the Java virtual machine to use.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - uuid: e757e0d3d72548df97066632448dd18c + name: 'Memory: Heap memory maximum size' + type: JMX + key: 'jmx["java.lang:type=Memory","HeapMemoryUsage.max"]' + value_type: FLOAT + units: B + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Maximum amount of heap that can be used for memory management. This amount of memory is not guaranteed to be available if it is greater than the amount of committed memory. The Java virtual machine may fail to allocate memory even if the amount of used memory does not exceed this maximum size.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - uuid: 0c24cd559cd74ddb9ff0b167a3d37c23 + name: 'Memory: Heap memory used' + type: JMX + key: 'jmx["java.lang:type=Memory","HeapMemoryUsage.used"]' + units: B + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Current memory usage outside the heap.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - uuid: 50bb1ecb0a2141bbba128dfc842a1e34 + name: 'Memory: Non-Heap memory committed' + type: JMX + key: 'jmx["java.lang:type=Memory","NonHeapMemoryUsage.committed"]' + units: B + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Current memory allocated outside the heap. This amount of memory is guaranteed for the Java virtual machine to use.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - uuid: 0c6301dfec1c4e6c8ab26091e9372e91 + name: 'Memory: Non-Heap memory maximum size' + type: JMX + key: 'jmx["java.lang:type=Memory","NonHeapMemoryUsage.max"]' + value_type: FLOAT + units: B + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Maximum amount of non-heap memory that can be used for memory management. This amount of memory is not guaranteed to be available if it is greater than the amount of committed memory. The Java virtual machine may fail to allocate memory even if the amount of used memory does not exceed this maximum size.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - uuid: 58d2bb1791994cbcacb75d029ed8a21b + name: 'Memory: Non-Heap memory used' + type: JMX + key: 'jmx["java.lang:type=Memory","NonHeapMemoryUsage.used"]' + units: B + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Current memory usage outside the heap' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - uuid: e309472afb794a2c9cd581275931db79 + name: 'Memory: Object pending finalization count' + type: JMX + key: 'jmx["java.lang:type=Memory","ObjectPendingFinalizationCount"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The approximate number of objects for which finalization is pending.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - uuid: 4c847c1239654be7b4f4d03fbb45ea4f + name: 'OperatingSystem: File descriptors maximum count' + type: JMX + key: 'jmx["java.lang:type=OperatingSystem","MaxFileDescriptorCount"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'This is the number of file descriptors we can have opened in the same process, as determined by the operating system. You can never have more file descriptors than this number.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: os + - uuid: f72ee698db964f3c9ce84bbb4a1274d7 + name: 'OperatingSystem: File descriptors opened' + type: JMX + key: 'jmx["java.lang:type=OperatingSystem","OpenFileDescriptorCount"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'This is the number of opened file descriptors at the moment, if this reaches the MaxFileDescriptorCount, the application will throw an IOException: Too many open files. This could mean you are opening file descriptors and never closing them.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: os + - uuid: 3c252493c9304aabbb2930b9a82a1cbf + name: 'OperatingSystem: Process CPU Load' + type: JMX + key: 'jmx["java.lang:type=OperatingSystem","ProcessCpuLoad"]' + value_type: FLOAT + units: '%' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'ProcessCpuLoad represents the CPU load in this process.' + preprocessing: + - type: MULTIPLIER + parameters: + - '100' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: os + triggers: + - uuid: cc6cc7942e434b8589ff28a0b3112fc7 + expression: 'min(/Generic Java JMX/jmx["java.lang:type=OperatingSystem","ProcessCpuLoad"],{$JMX.CPU.LOAD.TIME})>{$JMX.CPU.LOAD.MAX}' + name: 'Generic Java JMX: OperatingSystem: Process CPU Load is high' + event_name: 'Generic Java JMX: OperatingSystem: Process CPU Load more than {$JMX.CPU.LOAD.MAX}% for {$JMX.CPU.LOAD.TIME}' + priority: AVERAGE + description: 'Process CPU load exceeds `{$JMX.CPU.LOAD.MAX}`%.' + tags: + - tag: scope + value: capacity + - uuid: 00007954da00442b9631e15995ef6cab + name: 'Runtime: JVM uptime' + type: JMX + key: 'jmx["java.lang:type=Runtime","Uptime"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: runtime + triggers: + - uuid: c82c23dc5be34bb68ec8b152b3be367b + expression: 'nodata(/Generic Java JMX/jmx["java.lang:type=Runtime","Uptime"],5m)=1' + name: 'Generic Java JMX: Runtime: JVM is not reachable' + priority: AVERAGE + description: 'JVM is not reachable for the last 5 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: e824c36de524425eaac253bcf3a1f3ec + name: 'Runtime: JVM name' + type: JMX + key: 'jmx["java.lang:type=Runtime","VmName"]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: runtime + triggers: + - uuid: 560edfbeb7654f1eb7315389f08ef1b3 + expression: 'find(/Generic Java JMX/jmx["java.lang:type=Runtime","VmName"],,"like","Server")<>1' + name: 'Generic Java JMX: Runtime: {HOST.NAME} runs suboptimal VM type' + priority: INFO + description: 'JVM is not running with the Server VM type.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a8675d659349414fa10cc11a1cd4ddd7 + name: 'Runtime: JVM version' + type: JMX + key: 'jmx["java.lang:type=Runtime","VmVersion"]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: runtime + - uuid: f2f0836103ea4358a740abc0010336ca + name: 'Threading: Daemon thread count' + type: JMX + key: 'jmx["java.lang:type=Threading","DaemonThreadCount"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Number of daemon threads running.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: threading + - uuid: 1793243b7ed147f1a182876fda905ebc + name: 'Threading: Peak thread count' + type: JMX + key: 'jmx["java.lang:type=Threading","PeakThreadCount"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Maximum number of threads being executed at the same time since the JVM was started or the peak was reset.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: threading + - uuid: ca198e0473384025aecbc16913800c0c + name: 'Threading: Thread count' + type: JMX + key: 'jmx["java.lang:type=Threading","ThreadCount"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The number of threads running at the current moment.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: threading + - uuid: 9db83653dfa6449c95ffec2b0e6c8b5d + name: 'Threading: Total started thread count' + type: JMX + key: 'jmx["java.lang:type=Threading","TotalStartedThreadCount"]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The number of threads started since the JVM was launched.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: threading + discovery_rules: + - uuid: 7e0c60c6b1b34b5c99fa446076f35c28 + name: 'Garbage collector discovery' + type: JMX + key: 'jmx.discovery["beans","java.lang:name=*,type=GarbageCollector"]' + delay: 4h + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Garbage collectors metrics discovery.' + item_prototypes: + - uuid: 61ad48ae9013481184d33222c7660bef + name: 'GarbageCollector: {#JMXNAME} number of collections per second' + type: JMX + key: 'jmx["java.lang:name={#JMXNAME},type=GarbageCollector","CollectionCount"]' + value_type: FLOAT + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Displays the total number of collections that have occurred per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: collection + value: '{#JMXNAME}' + - tag: component + value: garbage-collector + - uuid: 8e3db2efbe714f918ece15216fae628b + name: 'GarbageCollector: {#JMXNAME} accumulated time spent in collection' + type: JMX + key: 'jmx["java.lang:name={#JMXNAME},type=GarbageCollector","CollectionTime"]' + value_type: FLOAT + units: s + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Displays the approximate accumulated collection elapsed time, in seconds.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: collection + value: '{#JMXNAME}' + - tag: component + value: garbage-collector + graph_prototypes: + - uuid: 4794916f3ad84955a5406f9c6aea2792 + name: 'GarbageCollector: Garbage Collector {#JMXNAME} collections per second' + graph_items: + - color: 199C0D + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:name={#JMXNAME},type=GarbageCollector","CollectionCount"]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: b5dfe8bb0a754289a716092ad305ceed + name: 'Memory pool discovery' + type: JMX + key: 'jmx.discovery["beans","java.lang:name=*,type=MemoryPool"]' + delay: 4h + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + filter: + conditions: + - macro: '{#JMXNAME}' + value: '{$JMX.MEM.POOL.NAME.MATCHES}' + formulaid: A + description: 'Memory pools metrics discovery.' + item_prototypes: + - uuid: 8b3da0f9b0b64b58b25ffed71a679ed0 + name: 'Memory pool: {#JMXNAME} committed' + type: JMX + key: 'jmx["java.lang:name={#JMXNAME},type=MemoryPool","Usage.committed"]' + units: B + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Current memory allocated.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - tag: pool + value: '{#JMXNAME}' + - uuid: f8504be0098b41a6b789c67f88f1c861 + name: 'Memory pool: {#JMXNAME} maximum size' + type: JMX + key: 'jmx["java.lang:name={#JMXNAME},type=MemoryPool","Usage.max"]' + value_type: FLOAT + units: B + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Maximum amount of memory that can be used for memory management. This amount of memory is not guaranteed to be available if it is greater than the amount of committed memory. The Java virtual machine may fail to allocate memory even if the amount of used memory does not exceed this maximum size.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - tag: pool + value: '{#JMXNAME}' + - uuid: 74f11991286a474b838898036ebb82e5 + name: 'Memory pool: {#JMXNAME} used' + type: JMX + key: 'jmx["java.lang:name={#JMXNAME},type=MemoryPool","Usage.used"]' + units: B + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Current memory usage.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - tag: pool + value: '{#JMXNAME}' + trigger_prototypes: + - uuid: 60a9825fc01f4cc9bd79d306bb19e8e0 + expression: 'min(/Generic Java JMX/jmx["java.lang:name={#JMXNAME},type=MemoryPool","Usage.used"],{$JMX.MP.USAGE.TIME:"{#JMXNAME}"})>(last(/Generic Java JMX/jmx["java.lang:name={#JMXNAME},type=MemoryPool","Usage.max"])*{$JMX.MP.USAGE.MAX:"{#JMXNAME}"}/100) and last(/Generic Java JMX/jmx["java.lang:name={#JMXNAME},type=MemoryPool","Usage.max"])>0' + name: 'Generic Java JMX: Memory pool: {#JMXNAME} memory usage is high' + event_name: 'Generic Java JMX: Memory pool: {#JMXNAME} memory usage more than {$JMX.MP.USAGE.MAX:"{#JMXNAME}"}% for {$JMX.MP.USAGE.TIME:"{#JMXNAME}"}' + priority: WARNING + description: 'Memory pool utilization exceeds `{$JMX.MP.USAGE.MAX:"{#JMXNAME}"}`%.' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 70552d982dfa4455ac8c5c5c847f6248 + name: 'Memory pool: Memory pool {#JMXNAME}' + graph_items: + - color: 199C0D + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:name={#JMXNAME},type=MemoryPool","Usage.max"]' + - sortorder: '1' + color: F63100 + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:name={#JMXNAME},type=MemoryPool","Usage.committed"]' + - sortorder: '2' + color: 00611C + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:name={#JMXNAME},type=MemoryPool","Usage.used"]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: class + value: software + - tag: target + value: java + macros: + - macro: '{$JMX.CPU.LOAD.MAX}' + value: '85' + description: 'A threshold in percent for CPU utilization trigger.' + - macro: '{$JMX.CPU.LOAD.TIME}' + value: 5m + description: 'The time during which the CPU utilization may exceed the threshold.' + - macro: '{$JMX.FILE.DESCRIPTORS.MAX}' + value: '85' + description: 'A threshold in percent for file descriptors count trigger.' + - macro: '{$JMX.FILE.DESCRIPTORS.TIME}' + value: 3m + description: 'The time during which the file descriptors count may exceed the threshold.' + - macro: '{$JMX.HEAP.MEM.USAGE.MAX}' + value: '85' + description: 'A threshold in percent for Heap memory utilization trigger.' + - macro: '{$JMX.HEAP.MEM.USAGE.TIME}' + value: 10m + description: 'The time during which the Heap memory utilization may exceed the threshold.' + - macro: '{$JMX.MEM.POOL.NAME.MATCHES}' + value: 'Old Gen|G1|Perm Gen|Code Cache|Tenured Gen' + description: 'This macro used in memory pool discovery as a filter.' + - macro: '{$JMX.MP.USAGE.MAX}' + value: '85' + description: 'A threshold in percent for memory pools utilization trigger. Use a context to change the threshold for a specific pool.' + - macro: '{$JMX.MP.USAGE.TIME}' + value: 10m + description: 'The time during which the memory pools utilization may exceed the threshold.' + - macro: '{$JMX.NONHEAP.MEM.USAGE.MAX}' + value: '85' + description: 'A threshold in percent for Non-heap memory utilization trigger.' + - macro: '{$JMX.NONHEAP.MEM.USAGE.TIME}' + value: 10m + description: 'The time during which the Non-heap memory utilization may exceed the threshold.' + - macro: '{$JMX.PASSWORD}' + description: 'JMX password.' + - macro: '{$JMX.USER}' + description: 'JMX username.' + dashboards: + - uuid: 5fe21df982614cba90093a8d948b34b2 + name: 'Java: Overview' + pages: + - name: General + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Generic Java JMX' + name: 'Threading: Threads' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Generic Java JMX' + name: 'ClassLoading: Class Loader' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Generic Java JMX' + name: 'OperatingSystem: File Descriptors' + - type: STRING + name: reference + value: AAAAB + - name: Memory + widgets: + - type: graphprototype + width: '72' + height: '15' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Generic Java JMX' + name: 'Memory pool: Memory pool {#JMXNAME}' + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: rows + value: '3' + - name: 'Garbage Collectors' + widgets: + - type: graphprototype + width: '72' + height: '15' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Generic Java JMX' + name: 'GarbageCollector: Garbage Collector {#JMXNAME} collections per second' + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: rows + value: '3' + triggers: + - uuid: 69fda060b5004d12b6af0ba5f73cec6d + expression: 'min(/Generic Java JMX/jmx["java.lang:type=Memory","HeapMemoryUsage.used"],{$JMX.HEAP.MEM.USAGE.TIME})>(last(/Generic Java JMX/jmx["java.lang:type=Memory","HeapMemoryUsage.max"])*{$JMX.HEAP.MEM.USAGE.MAX}/100) and last(/Generic Java JMX/jmx["java.lang:type=Memory","HeapMemoryUsage.max"])>0' + name: 'Generic Java JMX: Memory: Heap memory usage is high' + event_name: 'Generic Java JMX: Memory: Heap memory usage more than {$JMX.HEAP.MEM.USAGE.MAX}% for {$JMX.HEAP.MEM.USAGE.TIME}' + priority: WARNING + description: 'Heap memory utilization exceeds `{$JMX.HEAP.MEM.USAGE.MAX}`%.' + tags: + - tag: scope + value: capacity + - uuid: 2b4dfda1100d4feeaa66218e57786f38 + expression: 'min(/Generic Java JMX/jmx["java.lang:type=Memory","NonHeapMemoryUsage.used"],{$JMX.NONHEAP.MEM.USAGE.TIME})>(last(/Generic Java JMX/jmx["java.lang:type=Memory","NonHeapMemoryUsage.max"])*{$JMX.NONHEAP.MEM.USAGE.MAX}/100) and last(/Generic Java JMX/jmx["java.lang:type=Memory","NonHeapMemoryUsage.max"])>0' + name: 'Generic Java JMX: Memory: Non-Heap memory usage is high' + event_name: 'Generic Java JMX: Memory: Non-Heap memory usage more than {$JMX.NONHEAP.MEM.USAGE.MAX}% for {$JMX.NONHEAP.MEM.USAGE.TIME}' + priority: WARNING + description: 'Non-heap memory utilization exceeds `{$JMX.NONHEAP.MEM.USAGE.MAX}`%.' + tags: + - tag: scope + value: capacity + - uuid: 726a3b8a6209451b9a6cca63a3195a0c + expression: 'min(/Generic Java JMX/jmx["java.lang:type=OperatingSystem","OpenFileDescriptorCount"],{$JMX.FILE.DESCRIPTORS.TIME})>(last(/Generic Java JMX/jmx["java.lang:type=OperatingSystem","MaxFileDescriptorCount"])*{$JMX.FILE.DESCRIPTORS.MAX}/100)' + name: 'Generic Java JMX: OperatingSystem: Opened file descriptor count is high' + event_name: 'Generic Java JMX: OperatingSystem: Opened file descriptor count more than {$JMX.FILE.DESCRIPTORS.MAX}% of maximum' + priority: WARNING + description: 'Opened file descriptor count exceeds `{$JMX.FILE.DESCRIPTORS.MAX}`%.' + tags: + - tag: scope + value: capacity + graphs: + - uuid: 69184fc10a914cc78637625cc6cc554c + name: 'ClassLoading: Class Loader' + graph_items: + - color: 199C0D + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:type=ClassLoading","TotalLoadedClassCount"]' + - sortorder: '1' + color: F63100 + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:type=ClassLoading","UnloadedClassCount"]' + - sortorder: '2' + color: 00611C + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:type=ClassLoading","LoadedClassCount"]' + - uuid: 39c14cff77694bddb836b63609d9ae92 + name: 'OperatingSystem: File Descriptors' + graph_items: + - color: 199C0D + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:type=OperatingSystem","MaxFileDescriptorCount"]' + - sortorder: '1' + color: F63100 + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:type=OperatingSystem","OpenFileDescriptorCount"]' + - uuid: 397d90097f3f4237ac45d929ffd513e5 + name: 'Threading: Threads' + graph_items: + - color: 199C0D + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:type=Threading","PeakThreadCount"]' + - sortorder: '1' + color: F63100 + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:type=Threading","DaemonThreadCount"]' + - sortorder: '2' + color: 00611C + item: + host: 'Generic Java JMX' + key: 'jmx["java.lang:type=Threading","ThreadCount"]' diff --git a/Generic_by_SNMP.yaml b/Generic_by_SNMP.yaml new file mode 100644 index 0000000..cb3a77c --- /dev/null +++ b/Generic_by_SNMP.yaml @@ -0,0 +1,341 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 4cb1aabe2b704b5c882963c2ef87d8f6 + template: 'Generic by SNMP' + name: 'Generic by SNMP' + description: | + Template Module Generic + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 0db3c804c6174c018071e15cbc8c56ae + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 085d6f785f1e46faa447d6921036d01d + expression: 'max(/Generic by SNMP/icmpping,#3)=0' + name: 'Generic by SNMP: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 5d306c51188e496ba19b75b99e28cc7b + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d1bd868814ba4ace9b5034ac4e303259 + expression: 'min(/Generic by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Generic by SNMP/icmppingloss,5m)<100' + name: 'Generic by SNMP: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Generic by SNMP: Unavailable by ICMP ping' + expression: 'max(/Generic by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9ad39c8c6ede46e6953aa6f9466eaf69 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ecd74ec29b484a499414293bf671160b + expression: 'avg(/Generic by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Generic by SNMP: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Generic by SNMP: High ICMP ping loss' + expression: 'min(/Generic by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Generic by SNMP/icmppingloss,5m)<100' + - name: 'Generic by SNMP: Unavailable by ICMP ping' + expression: 'max(/Generic by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2cda26906f254e13985cecdbb7901d1a + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 62da59c7aae54df7976f327119fe7cc2 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 29a3e5277de94386a5985fcf38a09364 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b12afb0277494024b1638ce620c4f2d4 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 02b453f44c014f2bb1054e801058b381 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3996a3a8d927473aa07c47e63a09b865 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 072bf35ea9d04c559ada5cb13d4b6802 + expression: 'last(/Generic by SNMP/system.name,#1)<>last(/Generic by SNMP/system.name,#2) and length(last(/Generic by SNMP/system.name))>0' + name: 'Generic by SNMP: System name has changed' + event_name: 'Generic by SNMP: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 000b97abddcd44bfb57e0eeb1b77f69e + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9dbcc5a1cd7240c896e2ea718f9ccb35 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3e8c2d440441416b9ccec7dd90e21503 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d3aba975ec574b258c7f971152c5d4cd + expression: 'max(/Generic by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Generic by SNMP: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Generic by SNMP: Unavailable by ICMP ping' + expression: 'max(/Generic by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + tags: + - tag: class + value: network + - tag: target + value: snmp + macros: + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + valuemaps: + - uuid: 1817725a41454fd3b9ad22feaf889fc5 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: ced60845a741400390ba002e69e26b0f + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 6f00359af55f45909bdecbad234c7654 + expression: '(last(/Generic by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Generic by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Generic by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Generic by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Generic by SNMP: Host has been restarted' + event_name: 'Generic by SNMP: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Generic by SNMP: No SNMP data collection' + expression: 'max(/Generic by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/GitHub_repository_by_HTTP.yaml b/GitHub_repository_by_HTTP.yaml new file mode 100644 index 0000000..b715848 --- /dev/null +++ b/GitHub_repository_by_HTTP.yaml @@ -0,0 +1,3649 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 11144543d1144a3693aa0b97a1c20dac + template: 'GitHub repository by HTTP' + name: 'GitHub repository by HTTP' + description: | + This template is designed for the effortless deployment of GitHub repository monitoring by Zabbix via GitHub REST API and doesn't require any external scripts. + + For more details about GitHub REST API, refer to the official documentation: + https://docs.github.com/en/rest?apiVersion=2022-11-28 + + Setup: + + 1. Create an access token for monitoring + + One of the simplest ways to send authenticated requests is to use a personal access token - either a classic or a fine-grained one: + https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28#authenticating-with-a-personal-access-token + + Classic personal access token + + You can create a new classic personal access token by following the instructions in the official documentation: + https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic + + For public repositories, no additional permission scopes are required. For monitoring to work on private repositories, the "repo" scope must be set to have full control of private repositories. + + Additional information about OAuth scopes is available in the official documentation: + https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes + + Note that authenticated users must have admin access to the repository and the "repo" scope must be set to get information about self-hosted runners: + https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-a-repository + + Fine-grained personal access token + + Alternatively, you can use a fine-grained personal access token: + https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token + + In order to use fine-grained tokens to monitor organization-owned repositories, organizations must opt in to fine-grained personal access tokens and set up a personal access token policy: + https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization + + The fine-grained token needs to have the following permissions set to provide access to the repository resources: + - "Actions" repository permissions (read); + - "Administration" repository permissions (read); + - "Contents" repository permissions (read); + - "Issues" repository permissions (read); + - "Metadata" repository permissions (read); + - "Pull requests" repository permissions (read). + + 2. Set the access token that you've created in step 1 in the "{$GITHUB.API.TOKEN}" macro + 3. Change the API URL in the "{$GITHUB.API.URL}" macro if needed (for self-hosted installations) + 4. Set the repository owner name in the "{$GITHUB.REPO.OWNER}" macro + 5. Set the repository name in the "{$GITHUB.REPO.NAME}" macro + 6. Set the LLD rule filters if needed (you may want to use it to also stay within rate limits as on large repositories, LLD rules may generate a lot of script items) + + Note: Update intervals and timeouts for script items can be changed individually via "{$GITHUB.INTERVAL}" and "{$GITHUB.TIMEOUT}" macros with context. Depending on the repository being monitored, it can be adjusted if needed (if you are exceeding rate limits, you can increase update intervals for some script items to stay within per hour request limits). But be aware that it may also affect the triggers (check whether the item is used in triggers and adjust thresholds and/or evaluation periods if needed). + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: e348ae4bd2c04b5c88df2f5cb422eb61 + name: 'Get branches' + type: SCRIPT + key: github.repo.branches.get + delay: '{$GITHUB.INTERVAL:"get_branches"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var github = { + params: {}, + + setParams: function (params, required) { + required = required || []; + required.concat(['api_url', 'user_agent', 'api_version', 'repo_owner', 'repo_name', 'pagination_required', 'api_token']).forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required parameter is not set: "' + field + '".'; + } + }); + + github.params = params; + + if (typeof github.params.api_url === 'string' && !github.params.api_url.endsWith('/')) { + github.params.api_url += '/'; + } + + github.tls = new CTlsConfig(params.tls_verify); + github.tls.checkURL(github.params.api_url); + }, + + apiRequest: function (url, pagination_required) { + const next_pattern = /<([^>]+)>;\s*rel="next"/i; + var request = new HttpRequest(github.tls.options), + response, + headers, + final_data = { + headers: {}, + data: [] + }; + + pagination_required = (typeof pagination_required !== 'undefined') ? pagination_required : 'true'; + + request.addHeader('User-Agent: ' + github.params.user_agent); + request.addHeader('Accept: application/vnd.github+json'); + request.addHeader('X-GitHub-Api-Version: ' + github.params.api_version); + request.addHeader('Authorization: Bearer ' + github.params.api_token); + + if (typeof github.params.http_proxy !== 'undefined' && github.params.http_proxy !== '') { + request.setProxy(github.params.http_proxy); + Zabbix.log(4, '[ GitHub Repo ] Using HTTP proxy: ' + github.params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ GitHub Repo ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ GitHub Repo ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + + var parsed_data = github.parseData(response); + final_data.data = final_data.data.concat(parsed_data); + + headers = request.getHeaders(); + + var link_header = github.getHeader(headers, 'Link'); + url = ((link_header || '').match(next_pattern) || [])[1]; + + if (pagination_required === 'false') { + url = ''; + } + } + + final_data.headers = request.getHeaders(); + + delete request; + + return final_data; + }, + + parseData: function (response_data) { + if (!response_data) { + return []; + } + + const normalization_required = "total_count" in response_data && !("url" in response_data); + if (!normalization_required) return response_data; + + delete response_data.incomplete_results; + delete response_data.repository_selection; + delete response_data.total_count; + + const namespaceKey = Object.keys(response_data)[0]; + response_data = response_data[namespaceKey]; + + return response_data; + }, + + itemsCount: function (response_data) { + const last_page_number = /<[^>]+page=(\d+)>;\s*rel="last"/i; + + if (response_data.headers.link){ + return response_data.headers.link.match(last_page_number)[1]; + } + + return response_data.data.length; + }, + + getHeader: function (headers, name) { + if (!headers || typeof headers !== 'object') { + return null; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return headers[key]; + } + } + + return null; + } + } + + try { + github.setParams(JSON.parse(value), ['api_query']); + + var result = github.apiRequest(github.params.api_url + github.params.api_query + '?' + github.params.query_params || '', github.params.pagination_required); + + return JSON.stringify(result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ GitHub Repo ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: | + Get the repository branches. + + Information about endpoint: + https://docs.github.com/en/rest/branches/branches?apiVersion=2022-11-28#list-branches + preprocessing: + - type: CHECK_REGEX_ERROR + parameters: + - 'API rate limit exceeded' + - \0 + error_handler: DISCARD_VALUE + timeout: '{$GITHUB.TIMEOUT:"get_branches"}' + parameters: + - name: api_query + value: 'repos/{$GITHUB.REPO.OWNER}/{$GITHUB.REPO.NAME}/branches' + - name: api_token + value: '{$GITHUB.API.TOKEN}' + - name: api_url + value: '{$GITHUB.API.URL}' + - name: api_version + value: '{$GITHUB.API_VERSION}' + - name: http_proxy + value: '{$GITHUB.HTTP_PROXY}' + - name: pagination_required + value: 'true' + - name: query_params + value: 'per_page={$GITHUB.RESULTS_PER_PAGE:"branches_discovery"}' + - name: repo_name + value: '{$GITHUB.REPO.NAME}' + - name: repo_owner + value: '{$GITHUB.REPO.OWNER}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GitHub"}' + - name: user_agent + value: '{$GITHUB.USER_AGENT}' + tags: + - tag: component + value: raw + - uuid: 3b4799f0efc64f91836eb081b66f3e3b + name: 'Number of closed issues' + type: DEPENDENT + key: github.repo.issues.closed + delay: '0' + description: 'The number of closed issues in the repository.' + preprocessing: + - type: JSONPATH + parameters: + - $.issues.closed + master_item: + key: github.repo.issues.get + tags: + - tag: component + value: issues + - uuid: f88f02dc593844a89eb601e833a1a19c + name: 'Get issue count' + type: SCRIPT + key: github.repo.issues.get + delay: '{$GITHUB.INTERVAL:"get_issues_count"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var github = { + params: {}, + + setParams: function (params, required) { + required = required || []; + required.concat(['api_url', 'user_agent', 'api_version', 'repo_owner', 'repo_name', 'pagination_required', 'api_token']).forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required parameter is not set: "' + field + '".'; + } + }); + + github.params = params; + + if (typeof github.params.api_url === 'string' && !github.params.api_url.endsWith('/')) { + github.params.api_url += '/'; + } + + github.tls = new CTlsConfig(params.tls_verify); + github.tls.checkURL(github.params.api_url); + }, + + apiRequest: function (url, pagination_required) { + const next_pattern = /<([^>]+)>;\s*rel="next"/i; + var request = new HttpRequest(github.tls.options), + response, + headers, + final_data = { + headers: {}, + data: [] + }; + + pagination_required = (typeof pagination_required !== 'undefined') ? pagination_required : 'true'; + + request.addHeader('User-Agent: ' + github.params.user_agent); + request.addHeader('Accept: application/vnd.github+json'); + request.addHeader('X-GitHub-Api-Version: ' + github.params.api_version); + request.addHeader('Authorization: Bearer ' + github.params.api_token); + + if (typeof github.params.http_proxy !== 'undefined' && github.params.http_proxy !== '') { + request.setProxy(github.params.http_proxy); + Zabbix.log(4, '[ GitHub Repo ] Using HTTP proxy: ' + github.params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ GitHub Repo ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ GitHub Repo ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + + var parsed_data = github.parseData(response); + final_data.data = final_data.data.concat(parsed_data); + + headers = request.getHeaders(); + + var link_header = github.getHeader(headers, 'Link'); + url = ((link_header || '').match(next_pattern) || [])[1]; + + if (pagination_required === 'false') { + url = ''; + } + } + + final_data.headers = request.getHeaders(); + + delete request; + + return final_data; + }, + + parseData: function (response_data) { + if (!response_data) { + return []; + } + + const normalization_required = "total_count" in response_data && !("url" in response_data); + if (!normalization_required) return response_data; + + delete response_data.incomplete_results; + delete response_data.repository_selection; + delete response_data.total_count; + + const namespaceKey = Object.keys(response_data)[0]; + response_data = response_data[namespaceKey]; + + return response_data; + }, + + itemsCount: function (response_data) { + const last_page_number = /<[^>]+page=(\d+)>;\s*rel="last"/i; + + if (response_data.headers.link){ + return response_data.headers.link.match(last_page_number)[1]; + } + + return response_data.data.length; + }, + + getHeader: function (headers, name) { + if (!headers || typeof headers !== 'object') { + return null; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return headers[key]; + } + } + + return null; + } + } + + try { + github.setParams(JSON.parse(value)); + + var issues_count, + issues_count_result = { + issues: { + total: 0, + open: 0, + closed: 0 + }, + pr: { + total: 0, + open: 0, + closed: 0 + } + }; + + issues_count = github.apiRequest(github.params.api_url + 'repos/' + github.params.repo_owner + '/' + github.params.repo_name + '/pulls?state=all&per_page=1', github.params.pagination_required); + issues_count_result.pr.total = github.itemsCount(issues_count); + + issues_count = github.apiRequest(github.params.api_url + 'repos/' + github.params.repo_owner + '/' + github.params.repo_name + '/pulls?state=open&per_page=1', github.params.pagination_required); + issues_count_result.pr.open = github.itemsCount(issues_count); + + issues_count_result.pr.closed = issues_count_result.pr.total - issues_count_result.pr.open; + + + issues_count = github.apiRequest(github.params.api_url + 'repos/' + github.params.repo_owner + '/' + github.params.repo_name + '/issues?state=all&per_page=1', github.params.pagination_required); + issues_count_result.issues.total = github.itemsCount(issues_count) - issues_count_result.pr.total; + + issues_count = github.apiRequest(github.params.api_url + 'repos/' + github.params.repo_owner + '/' + github.params.repo_name + '/issues?state=open&per_page=1', github.params.pagination_required); + issues_count_result.issues.open = github.itemsCount(issues_count) - issues_count_result.pr.open; + + issues_count_result.issues.closed = issues_count_result.issues.total - issues_count_result.issues.open; + + return JSON.stringify(issues_count_result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ GitHub Repo ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: | + Get the count of issues and pull requests in the repository (total, open, closed). + + Information about endpoint for issues: + https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#list-repository-issues + + Information about endpoint for pull requests: + https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests + preprocessing: + - type: CHECK_REGEX_ERROR + parameters: + - 'API rate limit exceeded' + - \0 + error_handler: DISCARD_VALUE + timeout: '{$GITHUB.TIMEOUT:"get_issues_count"}' + parameters: + - name: api_token + value: '{$GITHUB.API.TOKEN}' + - name: api_url + value: '{$GITHUB.API.URL}' + - name: api_version + value: '{$GITHUB.API_VERSION}' + - name: http_proxy + value: '{$GITHUB.HTTP_PROXY}' + - name: pagination_required + value: 'false' + - name: repo_name + value: '{$GITHUB.REPO.NAME}' + - name: repo_owner + value: '{$GITHUB.REPO.OWNER}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GitHub repository"}' + - name: user_agent + value: '{$GITHUB.USER_AGENT}' + tags: + - tag: component + value: raw + - uuid: 7ea663eb6d4b40688115e0cb2ab03424 + name: 'Number of open issues' + type: DEPENDENT + key: github.repo.issues.open + delay: '0' + description: 'The number of open issues in the repository.' + preprocessing: + - type: JSONPATH + parameters: + - $.issues.open + master_item: + key: github.repo.issues.get + tags: + - tag: component + value: issues + - uuid: f60f12d72f90461d8eeda2c2719cf94d + name: 'Number of issues' + type: DEPENDENT + key: github.repo.issues.total + delay: '0' + description: 'The total number of issues in the repository.' + preprocessing: + - type: JSONPATH + parameters: + - $.issues.total + master_item: + key: github.repo.issues.get + tags: + - tag: component + value: issues + triggers: + - uuid: 9a146a900ced45b09a09b402daae6f94 + expression: 'last(/GitHub repository by HTTP/github.repo.issues.total)>last(/GitHub repository by HTTP/github.repo.issues.total,#2)' + name: 'GitHub: The total number of issues has increased' + priority: WARNING + description: 'The total number of issues has increased which means that either a new issue (or multiple) has been opened.' + type: MULTIPLE + tags: + - tag: scope + value: notice + - uuid: 6c02d2fecace4bf4b94a06a923668938 + name: 'Number of closed PRs' + type: DEPENDENT + key: github.repo.pr.closed + delay: '0' + description: 'The number of closed pull requests in the repository.' + preprocessing: + - type: JSONPATH + parameters: + - $.pr.closed + master_item: + key: github.repo.issues.get + tags: + - tag: component + value: pull-requests + - uuid: a1782ae22188416c8d2399fba2a1768c + name: 'Number of open PRs' + type: DEPENDENT + key: github.repo.pr.open + delay: '0' + description: 'The number of open pull requests in the repository.' + preprocessing: + - type: JSONPATH + parameters: + - $.pr.open + master_item: + key: github.repo.issues.get + tags: + - tag: component + value: pull-requests + - uuid: a20eda1b6c754b95b2bec1e449b681f5 + name: 'Number of PRs' + type: DEPENDENT + key: github.repo.pr.total + delay: '0' + description: 'The total number of pull requests in the repository.' + preprocessing: + - type: JSONPATH + parameters: + - $.pr.total + master_item: + key: github.repo.issues.get + tags: + - tag: component + value: pull-requests + triggers: + - uuid: 7d834276726941cf9952c820e478ccf0 + expression: 'last(/GitHub repository by HTTP/github.repo.pr.total)>last(/GitHub repository by HTTP/github.repo.pr.total,#2)' + name: 'GitHub: The total number of PRs has increased' + priority: INFO + description: 'The total number of pull requests has increased which means that either a new pull request (or multiple) has been opened.' + type: MULTIPLE + tags: + - tag: scope + value: notice + - uuid: 0098bfc3ed5c4181a7dcd1eceb8e7251 + name: 'Number of releases' + type: SCRIPT + key: github.repo.releases.count + delay: '{$GITHUB.INTERVAL:"get_releases_count"}' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var github = { + params: {}, + + setParams: function (params, required) { + required = required || []; + required.concat(['api_url', 'user_agent', 'api_version', 'repo_owner', 'repo_name', 'pagination_required', 'api_token']).forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required parameter is not set: "' + field + '".'; + } + }); + + github.params = params; + + if (typeof github.params.api_url === 'string' && !github.params.api_url.endsWith('/')) { + github.params.api_url += '/'; + } + + github.tls = new CTlsConfig(params.tls_verify); + github.tls.checkURL(github.params.api_url); + }, + + apiRequest: function (url, pagination_required) { + const next_pattern = /<([^>]+)>;\s*rel="next"/i; + var request = new HttpRequest(github.tls.options), + response, + headers, + final_data = { + headers: {}, + data: [] + }; + + pagination_required = (typeof pagination_required !== 'undefined') ? pagination_required : 'true'; + + request.addHeader('User-Agent: ' + github.params.user_agent); + request.addHeader('Accept: application/vnd.github+json'); + request.addHeader('X-GitHub-Api-Version: ' + github.params.api_version); + request.addHeader('Authorization: Bearer ' + github.params.api_token); + + if (typeof github.params.http_proxy !== 'undefined' && github.params.http_proxy !== '') { + request.setProxy(github.params.http_proxy); + Zabbix.log(4, '[ GitHub Repo ] Using HTTP proxy: ' + github.params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ GitHub Repo ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ GitHub Repo ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + + var parsed_data = github.parseData(response); + final_data.data = final_data.data.concat(parsed_data); + + headers = request.getHeaders(); + + var link_header = github.getHeader(headers, 'Link'); + url = ((link_header || '').match(next_pattern) || [])[1]; + + if (pagination_required === 'false') { + url = ''; + } + } + + final_data.headers = request.getHeaders(); + + delete request; + + return final_data; + }, + + parseData: function (response_data) { + if (!response_data) { + return []; + } + + const normalization_required = "total_count" in response_data && !("url" in response_data); + if (!normalization_required) return response_data; + + delete response_data.incomplete_results; + delete response_data.repository_selection; + delete response_data.total_count; + + const namespaceKey = Object.keys(response_data)[0]; + response_data = response_data[namespaceKey]; + + return response_data; + }, + + itemsCount: function (response_data) { + const last_page_number = /<[^>]+page=(\d+)>;\s*rel="last"/i; + + if (response_data.headers.link){ + return response_data.headers.link.match(last_page_number)[1]; + } + + return response_data.data.length; + }, + + getHeader: function (headers, name) { + if (!headers || typeof headers !== 'object') { + return null; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return headers[key]; + } + } + + return null; + } + } + + try { + github.setParams(JSON.parse(value), ['api_query']); + + var result = github.apiRequest(github.params.api_url + github.params.api_query + '?' + github.params.query_params || '', github.params.pagination_required); + + return github.itemsCount(result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ GitHub Repo ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: | + The number of releases in the repository. Note that this number also includes draft releases. + + Information about endpoint: + https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#list-releases + preprocessing: + - type: CHECK_REGEX_ERROR + parameters: + - 'API rate limit exceeded' + - \0 + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + timeout: '{$GITHUB.TIMEOUT:"get_releases_count"}' + parameters: + - name: api_query + value: 'repos/{$GITHUB.REPO.OWNER}/{$GITHUB.REPO.NAME}/releases' + - name: api_token + value: '{$GITHUB.API.TOKEN}' + - name: api_url + value: '{$GITHUB.API.URL}' + - name: api_version + value: '{$GITHUB.API_VERSION}' + - name: http_proxy + value: '{$GITHUB.HTTP_PROXY}' + - name: pagination_required + value: 'false' + - name: query_params + value: per_page=1 + - name: repo_name + value: '{$GITHUB.REPO.NAME}' + - name: repo_owner + value: '{$GITHUB.REPO.OWNER}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GitHub"}' + - name: user_agent + value: '{$GITHUB.USER_AGENT}' + tags: + - tag: component + value: releases + - uuid: 72a596dd573e4237a1fde665477bdfb5 + name: 'Repository forks' + type: DEPENDENT + key: github.repo.repository.forks.count + delay: '0' + description: 'The number of repository forks.' + preprocessing: + - type: JSONPATH + parameters: + - $.data..forks_count.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: github.repo.repository.get + tags: + - tag: component + value: repository + - uuid: 37e94a93bf924d84bb6609eec47ff081 + name: 'Get repository' + type: SCRIPT + key: github.repo.repository.get + delay: '{$GITHUB.INTERVAL:"get_repo"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var github = { + params: {}, + + setParams: function (params, required) { + required = required || []; + required.concat(['api_url', 'user_agent', 'api_version', 'repo_owner', 'repo_name', 'pagination_required', 'api_token']).forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required parameter is not set: "' + field + '".'; + } + }); + + github.params = params; + + if (typeof github.params.api_url === 'string' && !github.params.api_url.endsWith('/')) { + github.params.api_url += '/'; + } + + github.tls = new CTlsConfig(params.tls_verify); + github.tls.checkURL(github.params.api_url); + }, + + apiRequest: function (url, pagination_required) { + const next_pattern = /<([^>]+)>;\s*rel="next"/i; + var request = new HttpRequest(github.tls.options), + response, + headers, + final_data = { + headers: {}, + data: [] + }; + + pagination_required = (typeof pagination_required !== 'undefined') ? pagination_required : 'true'; + + request.addHeader('User-Agent: ' + github.params.user_agent); + request.addHeader('Accept: application/vnd.github+json'); + request.addHeader('X-GitHub-Api-Version: ' + github.params.api_version); + request.addHeader('Authorization: Bearer ' + github.params.api_token); + + if (typeof github.params.http_proxy !== 'undefined' && github.params.http_proxy !== '') { + request.setProxy(github.params.http_proxy); + Zabbix.log(4, '[ GitHub Repo ] Using HTTP proxy: ' + github.params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ GitHub Repo ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ GitHub Repo ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + + var parsed_data = github.parseData(response); + final_data.data = final_data.data.concat(parsed_data); + + headers = request.getHeaders(); + + var link_header = github.getHeader(headers, 'Link'); + url = ((link_header || '').match(next_pattern) || [])[1]; + + if (pagination_required === 'false') { + url = ''; + } + } + + final_data.headers = request.getHeaders(); + + delete request; + + return final_data; + }, + + parseData: function (response_data) { + if (!response_data) { + return []; + } + + const normalization_required = "total_count" in response_data && !("url" in response_data); + if (!normalization_required) return response_data; + + delete response_data.incomplete_results; + delete response_data.repository_selection; + delete response_data.total_count; + + const namespaceKey = Object.keys(response_data)[0]; + response_data = response_data[namespaceKey]; + + return response_data; + }, + + itemsCount: function (response_data) { + const last_page_number = /<[^>]+page=(\d+)>;\s*rel="last"/i; + + if (response_data.headers.link){ + return response_data.headers.link.match(last_page_number)[1]; + } + + return response_data.data.length; + }, + + getHeader: function (headers, name) { + if (!headers || typeof headers !== 'object') { + return null; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return headers[key]; + } + } + + return null; + } + } + + try { + github.setParams(JSON.parse(value), ['api_query']); + + var repo_data = github.apiRequest(github.params.api_url + github.params.api_query); + + if (repo_data.data[0].fork === false) { + var repo_community_profile = github.apiRequest(github.params.api_url + github.params.api_query + '/community/profile'); + + repo_data.data[0].zbx_community_profile = repo_community_profile.data[0]; + } + + return JSON.stringify(repo_data); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ GitHub Repo ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: | + Get the general repository information. If the repository is not a fork, the community profile metrics are also retrieved. + + Information about endpoint: + https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#get-a-repository + + Information about community profile metrics: + https://docs.github.com/en/rest/metrics/community?apiVersion=2022-11-28#get-community-profile-metrics + timeout: '{$GITHUB.TIMEOUT:"get_repo"}' + parameters: + - name: api_query + value: 'repos/{$GITHUB.REPO.OWNER}/{$GITHUB.REPO.NAME}' + - name: api_token + value: '{$GITHUB.API.TOKEN}' + - name: api_url + value: '{$GITHUB.API.URL}' + - name: api_version + value: '{$GITHUB.API_VERSION}' + - name: http_proxy + value: '{$GITHUB.HTTP_PROXY}' + - name: pagination_required + value: 'false' + - name: repo_name + value: '{$GITHUB.REPO.NAME}' + - name: repo_owner + value: '{$GITHUB.REPO.OWNER}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GitHub repository"}' + - name: user_agent + value: '{$GITHUB.USER_AGENT}' + tags: + - tag: component + value: raw + - uuid: 4bc2b485d4f546a0b390288d48bc179d + name: 'Get repository data check' + type: DEPENDENT + key: github.repo.repository.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: github.repo.repository.get + tags: + - tag: component + value: status + triggers: + - uuid: fea49679a888491c96516b421703131b + expression: 'length(last(/GitHub repository by HTTP/github.repo.repository.get.check))>0' + name: 'GitHub: There are errors in requests to API' + priority: AVERAGE + description: 'Errors have been received in response to API requests. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: c0e4cf3a4f654f5b82d29db43aeaa6eb + name: 'Repository is a fork' + type: DEPENDENT + key: github.repo.repository.is_fork + delay: '0' + description: 'Indicates whether the repository is a fork.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - $.data..fork.first() + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: github.repo.repository.get + tags: + - tag: component + value: repository + - uuid: ece3996cba7e4561a6629df40299579f + name: 'Repository size' + type: DEPENDENT + key: github.repo.repository.size + delay: '0' + units: B + description: 'The size of the repository.' + preprocessing: + - type: JSONPATH + parameters: + - $.data..size.first() + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: github.repo.repository.get + tags: + - tag: component + value: repository + - uuid: 2e329b0973aa4f2abf94bf10554d776c + name: 'Repository stargazers' + type: DEPENDENT + key: github.repo.repository.stargazers + delay: '0' + description: 'The number of GitHub users who have starred the repository.' + preprocessing: + - type: JSONPATH + parameters: + - $.data..stargazers_count.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: github.repo.repository.get + tags: + - tag: component + value: repository + - uuid: 488ff6c6217d4d51a7cb8fd278996435 + name: 'Repository watchers' + type: DEPENDENT + key: github.repo.repository.watchers + delay: '0' + description: 'The number of GitHub users who are subscribed to the repository.' + preprocessing: + - type: JSONPATH + parameters: + - $.data..subscribers_count.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: github.repo.repository.get + tags: + - tag: component + value: repository + - uuid: 1166ecf4aa624b469805406da0b1f552 + name: 'Request limit' + type: DEPENDENT + key: github.repo.requests.limit + delay: '0' + description: | + API request limit. + + Information about request limits in GitHub REST API documentation: + https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28 + preprocessing: + - type: JSONPATH + parameters: + - '$.headers[''x-ratelimit-limit'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: github.repo.repository.get + tags: + - tag: component + value: request-limits + - uuid: a0c4165547f942a789deee0703c1f284 + name: 'Requests used' + type: DEPENDENT + key: github.repo.requests.used + delay: '0' + description: | + The number of used API requests. + + Information about request limits in GitHub REST API documentation: + https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28 + preprocessing: + - type: JSONPATH + parameters: + - '$.headers[''x-ratelimit-used'']' + master_item: + key: github.repo.repository.get + tags: + - tag: component + value: request-limits + - uuid: e4b52ac7188944298fd6ca306ed4f8b8 + name: 'Request limit utilization, in %' + type: DEPENDENT + key: github.repo.requests.util + delay: '0' + value_type: FLOAT + units: '%' + description: | + The calculated utilization of the API request limit in %. + + Information about request limits in GitHub REST API documentation: + https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28 + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const data = JSON.parse(value); + + const requests_limit = data.headers['x-ratelimit-limit'], + requests_used = data.headers['x-ratelimit-used']; + + return requests_used / requests_limit * 100; + master_item: + key: github.repo.repository.get + tags: + - tag: component + value: request-limits + triggers: + - uuid: 621ef82bf8f74f09a8c30b8a38085e9d + expression: 'max(/GitHub repository by HTTP/github.repo.requests.util,1h)>{$GITHUB.REQUESTS.UTIL.WARN}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/GitHub repository by HTTP/github.repo.requests.util,1h)>{$GITHUB.REQUESTS.UTIL.WARN}-5' + name: 'GitHub: API request limit utilization is high' + event_name: 'GitHub: API request limit utilization is high (usage is > {$GITHUB.REQUESTS.UTIL.WARN})' + priority: WARNING + description: | + The API request limit utilization is high. It can be lowered by increasing the update intervals for script items (by setting up higher values in corresponding context macros). + + The trigger will be resolved automatically if the limit usage drops 5% below the trigger threshold. + + Information about request limits in GitHub REST API documentation: + https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28 + dependencies: + - name: 'GitHub: API request limit utilization is very high' + expression: 'max(/GitHub repository by HTTP/github.repo.requests.util,1h)>{$GITHUB.REQUESTS.UTIL.HIGH}' + recovery_expression: 'max(/GitHub repository by HTTP/github.repo.requests.util,1h)>{$GITHUB.REQUESTS.UTIL.HIGH}-5' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 9783018b6c394397aa093b4f8a1a4067 + expression: 'max(/GitHub repository by HTTP/github.repo.requests.util,1h)>{$GITHUB.REQUESTS.UTIL.HIGH}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/GitHub repository by HTTP/github.repo.requests.util,1h)>{$GITHUB.REQUESTS.UTIL.HIGH}-5' + name: 'GitHub: API request limit utilization is very high' + event_name: 'GitHub: API request limit utilization is very high (usage is > {$GITHUB.REQUESTS.UTIL.HIGH})' + priority: AVERAGE + description: | + The API request limit utilization is very high. It can be lowered by increasing the update intervals for script items (by setting up higher values in corresponding context macros). + + The trigger will be resolved automatically if the limit usage drops 5% below the trigger threshold. + + Information about request limits in GitHub REST API documentation: + https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28 + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: a0ca909d3c734d859594771985a5c302 + name: 'Get self-hosted runners' + type: SCRIPT + key: github.repo.runners.get + delay: '{$GITHUB.INTERVAL:"get_runners"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var github = { + params: {}, + + setParams: function (params, required) { + required = required || []; + required.concat(['api_url', 'user_agent', 'api_version', 'repo_owner', 'repo_name', 'pagination_required', 'api_token']).forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required parameter is not set: "' + field + '".'; + } + }); + + github.params = params; + + if (typeof github.params.api_url === 'string' && !github.params.api_url.endsWith('/')) { + github.params.api_url += '/'; + } + + github.tls = new CTlsConfig(params.tls_verify); + github.tls.checkURL(github.params.api_url); + }, + + apiRequest: function (url, pagination_required) { + const next_pattern = /<([^>]+)>;\s*rel="next"/i; + var request = new HttpRequest(github.tls.options), + response, + headers, + final_data = { + headers: {}, + data: [] + }; + + pagination_required = (typeof pagination_required !== 'undefined') ? pagination_required : 'true'; + + request.addHeader('User-Agent: ' + github.params.user_agent); + request.addHeader('Accept: application/vnd.github+json'); + request.addHeader('X-GitHub-Api-Version: ' + github.params.api_version); + request.addHeader('Authorization: Bearer ' + github.params.api_token); + + if (typeof github.params.http_proxy !== 'undefined' && github.params.http_proxy !== '') { + request.setProxy(github.params.http_proxy); + Zabbix.log(4, '[ GitHub Repo ] Using HTTP proxy: ' + github.params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ GitHub Repo ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ GitHub Repo ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + + var parsed_data = github.parseData(response); + final_data.data = final_data.data.concat(parsed_data); + + headers = request.getHeaders(); + + var link_header = github.getHeader(headers, 'Link'); + url = ((link_header || '').match(next_pattern) || [])[1]; + + if (pagination_required === 'false') { + url = ''; + } + } + + final_data.headers = request.getHeaders(); + + delete request; + + return final_data; + }, + + parseData: function (response_data) { + if (!response_data) { + return []; + } + + const normalization_required = "total_count" in response_data && !("url" in response_data); + if (!normalization_required) return response_data; + + delete response_data.incomplete_results; + delete response_data.repository_selection; + delete response_data.total_count; + + const namespaceKey = Object.keys(response_data)[0]; + response_data = response_data[namespaceKey]; + + return response_data; + }, + + itemsCount: function (response_data) { + const last_page_number = /<[^>]+page=(\d+)>;\s*rel="last"/i; + + if (response_data.headers.link){ + return response_data.headers.link.match(last_page_number)[1]; + } + + return response_data.data.length; + }, + + getHeader: function (headers, name) { + if (!headers || typeof headers !== 'object') { + return null; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return headers[key]; + } + } + + return null; + } + } + + try { + github.setParams(JSON.parse(value), ['api_query']); + + var result = github.apiRequest(github.params.api_url + github.params.api_query + '?' + github.params.query_params || '', github.params.pagination_required); + + return JSON.stringify(result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ GitHub Repo ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: | + Get the self-hosted runners of the repository. + + Note that admin access to the repository is required to use this endpoint: + https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-a-repository + preprocessing: + - type: CHECK_REGEX_ERROR + parameters: + - 'API rate limit exceeded' + - \0 + error_handler: DISCARD_VALUE + timeout: '{$GITHUB.TIMEOUT:"get_runners"}' + parameters: + - name: api_query + value: 'repos/{$GITHUB.REPO.OWNER}/{$GITHUB.REPO.NAME}/actions/runners' + - name: api_token + value: '{$GITHUB.API.TOKEN}' + - name: api_url + value: '{$GITHUB.API.URL}' + - name: api_version + value: '{$GITHUB.API_VERSION}' + - name: http_proxy + value: '{$GITHUB.HTTP_PROXY}' + - name: pagination_required + value: 'true' + - name: query_params + value: 'per_page={$GITHUB.RESULTS_PER_PAGE:"get_runners"}' + - name: repo_name + value: '{$GITHUB.REPO.NAME}' + - name: repo_owner + value: '{$GITHUB.REPO.OWNER}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GitHub"}' + - name: user_agent + value: '{$GITHUB.USER_AGENT}' + tags: + - tag: component + value: raw + - uuid: 35507c347ff44527a7deb3aaf4846d33 + name: 'Get self-hosted runner check' + type: DEPENDENT + key: github.repo.runners.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Carry out a self-hosted runners data collection check.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: github.repo.runners.get + tags: + - tag: component + value: status + triggers: + - uuid: 30877fea1bd14e22b8b5c4a040001bb5 + expression: 'find(/GitHub repository by HTTP/github.repo.runners.get.check,,"iregexp","Must have admin rights to Repository")=1' + name: 'GitHub: No access to repository self-hosted runners' + priority: AVERAGE + description: | + Admin access to the repository is required to use this endpoint: + https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-a-repository + - uuid: 49d81fc72a6a455ebee7304592056930 + name: 'Number of tags' + type: SCRIPT + key: github.repo.tags.count + delay: '{$GITHUB.INTERVAL:"get_tags_count"}' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var github = { + params: {}, + + setParams: function (params, required) { + required = required || []; + required.concat(['api_url', 'user_agent', 'api_version', 'repo_owner', 'repo_name', 'pagination_required', 'api_token']).forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required parameter is not set: "' + field + '".'; + } + }); + + github.params = params; + + if (typeof github.params.api_url === 'string' && !github.params.api_url.endsWith('/')) { + github.params.api_url += '/'; + } + + github.tls = new CTlsConfig(params.tls_verify); + github.tls.checkURL(github.params.api_url); + }, + + apiRequest: function (url, pagination_required) { + const next_pattern = /<([^>]+)>;\s*rel="next"/i; + var request = new HttpRequest(github.tls.options), + response, + headers, + final_data = { + headers: {}, + data: [] + }; + + pagination_required = (typeof pagination_required !== 'undefined') ? pagination_required : 'true'; + + request.addHeader('User-Agent: ' + github.params.user_agent); + request.addHeader('Accept: application/vnd.github+json'); + request.addHeader('X-GitHub-Api-Version: ' + github.params.api_version); + request.addHeader('Authorization: Bearer ' + github.params.api_token); + + if (typeof github.params.http_proxy !== 'undefined' && github.params.http_proxy !== '') { + request.setProxy(github.params.http_proxy); + Zabbix.log(4, '[ GitHub Repo ] Using HTTP proxy: ' + github.params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ GitHub Repo ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ GitHub Repo ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + + var parsed_data = github.parseData(response); + final_data.data = final_data.data.concat(parsed_data); + + headers = request.getHeaders(); + + var link_header = github.getHeader(headers, 'Link'); + url = ((link_header || '').match(next_pattern) || [])[1]; + + if (pagination_required === 'false') { + url = ''; + } + } + + final_data.headers = request.getHeaders(); + + delete request; + + return final_data; + }, + + parseData: function (response_data) { + if (!response_data) { + return []; + } + + const normalization_required = "total_count" in response_data && !("url" in response_data); + if (!normalization_required) return response_data; + + delete response_data.incomplete_results; + delete response_data.repository_selection; + delete response_data.total_count; + + const namespaceKey = Object.keys(response_data)[0]; + response_data = response_data[namespaceKey]; + + return response_data; + }, + + itemsCount: function (response_data) { + const last_page_number = /<[^>]+page=(\d+)>;\s*rel="last"/i; + + if (response_data.headers.link){ + return response_data.headers.link.match(last_page_number)[1]; + } + + return response_data.data.length; + }, + + getHeader: function (headers, name) { + if (!headers || typeof headers !== 'object') { + return null; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return headers[key]; + } + } + + return null; + } + } + + try { + github.setParams(JSON.parse(value), ['api_query']); + + var result = github.apiRequest(github.params.api_url + github.params.api_query + '?' + github.params.query_params || '', github.params.pagination_required); + + return github.itemsCount(result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ GitHub Repo ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: | + The number of tags in the repository. + + Information about endpoint: + https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repository-tags + preprocessing: + - type: CHECK_REGEX_ERROR + parameters: + - 'API rate limit exceeded' + - \0 + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + timeout: '{$GITHUB.TIMEOUT:"get_tags_count"}' + parameters: + - name: api_query + value: 'repos/{$GITHUB.REPO.OWNER}/{$GITHUB.REPO.NAME}/tags' + - name: api_token + value: '{$GITHUB.API.TOKEN}' + - name: api_url + value: '{$GITHUB.API.URL}' + - name: api_version + value: '{$GITHUB.API_VERSION}' + - name: http_proxy + value: '{$GITHUB.HTTP_PROXY}' + - name: pagination_required + value: 'false' + - name: query_params + value: per_page=1 + - name: repo_name + value: '{$GITHUB.REPO.NAME}' + - name: repo_owner + value: '{$GITHUB.REPO.OWNER}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GitHub"}' + - name: user_agent + value: '{$GITHUB.USER_AGENT}' + tags: + - tag: component + value: tags + - uuid: d45dbcb0493d4258ac2cdba10648b3b3 + name: 'Get workflows' + type: SCRIPT + key: github.repo.workflows.get + delay: '{$GITHUB.INTERVAL:"get_workflows"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var github = { + params: {}, + + setParams: function (params, required) { + required = required || []; + required.concat(['api_url', 'user_agent', 'api_version', 'repo_owner', 'repo_name', 'pagination_required', 'api_token']).forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required parameter is not set: "' + field + '".'; + } + }); + + github.params = params; + + if (typeof github.params.api_url === 'string' && !github.params.api_url.endsWith('/')) { + github.params.api_url += '/'; + } + + github.tls = new CTlsConfig(params.tls_verify); + github.tls.checkURL(github.params.api_url); + }, + + apiRequest: function (url, pagination_required) { + const next_pattern = /<([^>]+)>;\s*rel="next"/i; + var request = new HttpRequest(github.tls.options), + response, + headers, + final_data = { + headers: {}, + data: [] + }; + + pagination_required = (typeof pagination_required !== 'undefined') ? pagination_required : 'true'; + + request.addHeader('User-Agent: ' + github.params.user_agent); + request.addHeader('Accept: application/vnd.github+json'); + request.addHeader('X-GitHub-Api-Version: ' + github.params.api_version); + request.addHeader('Authorization: Bearer ' + github.params.api_token); + + if (typeof github.params.http_proxy !== 'undefined' && github.params.http_proxy !== '') { + request.setProxy(github.params.http_proxy); + Zabbix.log(4, '[ GitHub Repo ] Using HTTP proxy: ' + github.params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ GitHub Repo ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ GitHub Repo ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + + var parsed_data = github.parseData(response); + final_data.data = final_data.data.concat(parsed_data); + + headers = request.getHeaders(); + + var link_header = github.getHeader(headers, 'Link'); + url = ((link_header || '').match(next_pattern) || [])[1]; + + if (pagination_required === 'false') { + url = ''; + } + } + + final_data.headers = request.getHeaders(); + + delete request; + + return final_data; + }, + + parseData: function (response_data) { + if (!response_data) { + return []; + } + + const normalization_required = "total_count" in response_data && !("url" in response_data); + if (!normalization_required) return response_data; + + delete response_data.incomplete_results; + delete response_data.repository_selection; + delete response_data.total_count; + + const namespaceKey = Object.keys(response_data)[0]; + response_data = response_data[namespaceKey]; + + return response_data; + }, + + itemsCount: function (response_data) { + const last_page_number = /<[^>]+page=(\d+)>;\s*rel="last"/i; + + if (response_data.headers.link){ + return response_data.headers.link.match(last_page_number)[1]; + } + + return response_data.data.length; + }, + + getHeader: function (headers, name) { + if (!headers || typeof headers !== 'object') { + return null; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return headers[key]; + } + } + + return null; + } + } + + try { + github.setParams(JSON.parse(value), ['api_query']); + + var repo_data = github.apiRequest(github.params.api_url + github.params.api_query); + + if (repo_data.data[0].fork === false) { + var repo_community_profile = github.apiRequest(github.params.api_url + github.params.api_query + '/community/profile'); + + repo_data.data[0].zbx_community_profile = repo_community_profile.data[0]; + } + + return JSON.stringify(repo_data); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ GitHub Repo ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: | + Get the repository workflows. + + Information about endpoint: + https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows + preprocessing: + - type: CHECK_REGEX_ERROR + parameters: + - 'API rate limit exceeded' + - \0 + error_handler: DISCARD_VALUE + timeout: '{$GITHUB.TIMEOUT:"get_workflows"}' + parameters: + - name: api_query + value: 'repos/{$GITHUB.REPO.OWNER}/{$GITHUB.REPO.NAME}/actions/workflows' + - name: api_token + value: '{$GITHUB.API.TOKEN}' + - name: api_url + value: '{$GITHUB.API.URL}' + - name: api_version + value: '{$GITHUB.API_VERSION}' + - name: http_proxy + value: '{$GITHUB.HTTP_PROXY}' + - name: pagination_required + value: 'true' + - name: query_params + value: 'per_page={$GITHUB.RESULTS_PER_PAGE:"workflows_discovery"}' + - name: repo_name + value: '{$GITHUB.REPO.NAME}' + - name: repo_owner + value: '{$GITHUB.REPO.OWNER}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GitHub"}' + - name: user_agent + value: '{$GITHUB.USER_AGENT}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 8142a17a53f44cd9b3d3991b9e3da91d + name: 'Branch discovery' + type: DEPENDENT + key: github.repo.branches.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#BRANCH_NAME}' + value: '{$GITHUB.BRANCH.NAME.MATCHES}' + formulaid: A + - macro: '{#BRANCH_NAME}' + value: '{$GITHUB.BRANCH.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: | + Discovers repository branches. + + Information about endpoint: + https://docs.github.com/en/rest/branches/branches?apiVersion=2022-11-28#list-branches + item_prototypes: + - uuid: 927ef4806cc4460a8882c204a9e94817 + name: 'Branch [{#BRANCH_NAME}]: Number of commits' + type: SCRIPT + key: 'github.repo.branches.commits.total[{#BRANCH_NAME}]' + delay: '{$GITHUB.INTERVAL:"get_commits_count:{#BRANCH_NAME}"}' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var github = { + params: {}, + + setParams: function (params, required) { + required = required || []; + required.concat(['api_url', 'user_agent', 'api_version', 'repo_owner', 'repo_name', 'pagination_required', 'api_token']).forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required parameter is not set: "' + field + '".'; + } + }); + + github.params = params; + + if (typeof github.params.api_url === 'string' && !github.params.api_url.endsWith('/')) { + github.params.api_url += '/'; + } + + github.tls = new CTlsConfig(params.tls_verify); + github.tls.checkURL(github.params.api_url); + }, + + apiRequest: function (url, pagination_required) { + const next_pattern = /<([^>]+)>;\s*rel="next"/i; + var request = new HttpRequest(github.tls.options), + response, + headers, + final_data = { + headers: {}, + data: [] + }; + + pagination_required = (typeof pagination_required !== 'undefined') ? pagination_required : 'true'; + + request.addHeader('User-Agent: ' + github.params.user_agent); + request.addHeader('Accept: application/vnd.github+json'); + request.addHeader('X-GitHub-Api-Version: ' + github.params.api_version); + request.addHeader('Authorization: Bearer ' + github.params.api_token); + + if (typeof github.params.http_proxy !== 'undefined' && github.params.http_proxy !== '') { + request.setProxy(github.params.http_proxy); + Zabbix.log(4, '[ GitHub Repo ] Using HTTP proxy: ' + github.params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ GitHub Repo ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ GitHub Repo ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + + var parsed_data = github.parseData(response); + final_data.data = final_data.data.concat(parsed_data); + + headers = request.getHeaders(); + + var link_header = github.getHeader(headers, 'Link'); + url = ((link_header || '').match(next_pattern) || [])[1]; + + if (pagination_required === 'false') { + url = ''; + } + } + + final_data.headers = request.getHeaders(); + + delete request; + + return final_data; + }, + + parseData: function (response_data) { + if (!response_data) { + return []; + } + + const normalization_required = "total_count" in response_data && !("url" in response_data); + if (!normalization_required) return response_data; + + delete response_data.incomplete_results; + delete response_data.repository_selection; + delete response_data.total_count; + + const namespaceKey = Object.keys(response_data)[0]; + response_data = response_data[namespaceKey]; + + return response_data; + }, + + itemsCount: function (response_data) { + const last_page_number = /<[^>]+page=(\d+)>;\s*rel="last"/i; + + if (response_data.headers.link){ + return response_data.headers.link.match(last_page_number)[1]; + } + + return response_data.data.length; + }, + + getHeader: function (headers, name) { + if (!headers || typeof headers !== 'object') { + return null; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return headers[key]; + } + } + + return null; + } + } + + try { + github.setParams(JSON.parse(value), ['api_query']); + + var result = github.apiRequest(github.params.api_url + github.params.api_query + '?' + github.params.query_params || '', github.params.pagination_required); + + return github.itemsCount(result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ GitHub Repo ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: | + Get the number of commits in the branch. + + Information about endpoint: + https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#list-commits + preprocessing: + - type: CHECK_REGEX_ERROR + parameters: + - 'API rate limit exceeded' + - \0 + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + timeout: '{$GITHUB.TIMEOUT:"get_commits_count:{#BRANCH_NAME}"}' + parameters: + - name: api_query + value: 'repos/{$GITHUB.REPO.OWNER}/{$GITHUB.REPO.NAME}/commits' + - name: api_token + value: '{$GITHUB.API.TOKEN}' + - name: api_url + value: '{$GITHUB.API.URL}' + - name: api_version + value: '{$GITHUB.API_VERSION}' + - name: http_proxy + value: '{$GITHUB.HTTP_PROXY}' + - name: pagination_required + value: 'false' + - name: query_params + value: 'sha={#BRANCH_NAME}&per_page=1' + - name: repo_name + value: '{$GITHUB.REPO.NAME}' + - name: repo_owner + value: '{$GITHUB.REPO.OWNER}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GitHub"}' + - name: user_agent + value: '{$GITHUB.USER_AGENT}' + tags: + - tag: branch + value: '{#BRANCH_NAME}' + - tag: component + value: branch + - tag: component + value: commit + graph_prototypes: + - uuid: 369c8e6bf49b4b348258d77126386769 + name: 'Branch [{#BRANCH_NAME}]: Number of commits' + graph_items: + - color: 199C0D + item: + host: 'GitHub repository by HTTP' + key: 'github.repo.branches.commits.total[{#BRANCH_NAME}]' + master_item: + key: github.repo.branches.get + lld_macro_paths: + - lld_macro: '{#BRANCH_NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.data + - uuid: 8a3dbc58ccd845bbb92a671997a3bbec + name: 'Discovery of community profile metrics' + type: DEPENDENT + key: github.repo.community_profile.discovery + delay: '0' + description: | + Discovers community profile metrics (the repository must not be a fork). + + Information about community profile metrics: + https://docs.github.com/en/rest/metrics/community?apiVersion=2022-11-28#get-community-profile-metrics + item_prototypes: + - uuid: 8babff453a0a4df597436d3c9dd3112f + name: 'Health percentage score' + type: DEPENDENT + key: 'github.repo.repository.health[{#SINGLETON}]' + delay: '0' + units: '%' + description: | + The health percentage score is defined as a percentage of how many of the recommended community health files are present. + + For more information, see the documentation: + https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/about-community-profiles-for-public-repositories + preprocessing: + - type: JSONPATH + parameters: + - $.data..zbx_community_profile.health_percentage.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: github.repo.repository.get + tags: + - tag: component + value: health + graph_prototypes: + - uuid: d3234c15dc844899ae1bdd473229279f + name: 'Health percentage score{#SINGLETON}' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'GitHub repository by HTTP' + key: 'github.repo.repository.health[{#SINGLETON}]' + master_item: + key: github.repo.repository.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + return JSON.stringify(JSON.parse(value).data[0].zbx_community_profile + ? [{'{#SINGLETON}': ''}] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b77b33e77ddb457d9fd7912f97f179fd + name: 'Self-hosted runner discovery' + type: DEPENDENT + key: github.repo.runners.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#RUNNER_NAME}' + value: '{$GITHUB.RUNNER.NAME.MATCHES}' + formulaid: A + - macro: '{#RUNNER_NAME}' + value: '{$GITHUB.RUNNER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#RUNNER_OS}' + value: '{$GITHUB.RUNNER.OS.MATCHES}' + formulaid: C + - macro: '{#RUNNER_OS}' + value: '{$GITHUB.RUNNER.OS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: | + Discovers self-hosted runners of the repository. + + Note that admin access to the repository is required to use this endpoint: + https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-a-repository + item_prototypes: + - uuid: 6cf4664f14744eb88eaee6e82330cd79 + name: 'Runner [{#RUNNER_NAME}]: Busy' + type: DEPENDENT + key: 'github.repo.runners.busy[{#RUNNER_NAME}]' + delay: '0' + trends: '0' + description: 'Indicates whether the runner is currently executing a job.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.id == "{#RUNNER_ID}")].busy.first()' + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: github.repo.runners.get + tags: + - tag: component + value: runner + - tag: os + value: '{#RUNNER_OS}' + - tag: runner + value: '{#RUNNER_NAME}' + - uuid: 7594ae484e72433ca4259bebc9044031 + name: 'Runner [{#RUNNER_NAME}]: Online' + type: DEPENDENT + key: 'github.repo.runners.online[{#RUNNER_NAME}]' + delay: '0' + trends: '0' + description: 'Indicates whether the runner is connected to GitHub and is ready to execute jobs.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.id == "{#RUNNER_ID}")].status.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'offline', + 'online' + ].indexOf(value); + + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: github.repo.runners.get + tags: + - tag: component + value: runner + - tag: os + value: '{#RUNNER_OS}' + - tag: runner + value: '{#RUNNER_NAME}' + trigger_prototypes: + - uuid: 3759039884e6486fb92f2a5abf7b1133 + expression: 'last(/GitHub repository by HTTP/github.repo.runners.online[{#RUNNER_NAME}],#2)=1 and last(/GitHub repository by HTTP/github.repo.runners.online[{#RUNNER_NAME}])=0' + name: 'GitHub: Runner [{#RUNNER_NAME}]: The runner has become offline' + priority: WARNING + description: 'The runner was online previously, but is currently not connected to GitHub. This could be because the machine is offline, the self-hosted runner application is not running on the machine, or the self-hosted runner application cannot communicate with GitHub.' + tags: + - tag: scope + value: availability + master_item: + key: github.repo.runners.get + lld_macro_paths: + - lld_macro: '{#RUNNER_ID}' + path: $.id + - lld_macro: '{#RUNNER_NAME}' + path: $.name + - lld_macro: '{#RUNNER_OS}' + path: $.os + preprocessing: + - type: JSONPATH + parameters: + - $.data + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + var runners = JSON.parse(value); + + result = runners.map(function (runner) { + return { + 'name': runner.name, + 'id': runner.id, + 'os': runner.os + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: df2e23b12f914d7d89c182ff451da054 + name: 'Workflow discovery' + type: DEPENDENT + key: github.repo.workflows.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#WORKFLOW_NAME}' + value: '{$GITHUB.WORKFLOW.NAME.MATCHES}' + formulaid: A + - macro: '{#WORKFLOW_NAME}' + value: '{$GITHUB.WORKFLOW.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#WORKFLOW_STATE}' + value: '{$GITHUB.WORKFLOW.STATE.MATCHES}' + formulaid: C + - macro: '{#WORKFLOW_STATE}' + value: '{$GITHUB.WORKFLOW.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: | + Discovers repository workflows. By default, only the active workflows are discovered. + + Information about endpoint: + https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows + item_prototypes: + - uuid: f9941fc67aca404ebd4eddd80d6066cb + name: 'Workflow [{#WORKFLOW_NAME}]: Last run conclusion' + type: DEPENDENT + key: 'github.repo.workflows.last_run.conclusion[{#WORKFLOW_NAME}]' + delay: '0' + trends: '0' + description: | + The conclusion of the last workflow run. Possible values: + + 0 - success + 1 - failure + 2 - neutral + 3 - cancelled + 4 - skipped + 5 - timed_out + 6 - action_required + 10 - unknown + valuemap: + name: 'Workflow run conclusion' + preprocessing: + - type: JSONPATH + parameters: + - $.conclusion + - type: JAVASCRIPT + parameters: + - | + if (value !== 'null') { + const idx = [ + 'success', + 'failure', + 'neutral', + 'cancelled', + 'skipped', + 'timed_out', + 'action_required', + ].indexOf(value); + + return idx !== -1 ? idx : 10; + } + + return null; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'github.repo.workflows.last_run.get[{#WORKFLOW_NAME}]' + tags: + - tag: component + value: health + - tag: component + value: workflow + - tag: workflow + value: '{#WORKFLOW_NAME}' + trigger_prototypes: + - uuid: 4a32968c1bf14ac8a47f8f398ce43ea3 + expression: 'last(/GitHub repository by HTTP/github.repo.workflows.last_run.conclusion[{#WORKFLOW_NAME}])=1' + name: 'GitHub: Workflow [{#WORKFLOW_NAME}]: The workflow has failed' + priority: WARNING + description: 'The last workflow run has returned a "failure" conclusion.' + tags: + - tag: scope + value: performance + - uuid: 8653f8c233af44a7857b8ae58086edf3 + name: 'Workflow [{#WORKFLOW_NAME}]: Last run duration' + type: DEPENDENT + key: 'github.repo.workflows.last_run.duration[{#WORKFLOW_NAME}]' + delay: '0' + units: s + description: 'The duration of the last workflow run.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const data = JSON.parse(value); + + const start_date = Math.floor(new Date(data.run_started_at) / 1000), + update_date = Math.floor(new Date(data.updated_at) / 1000); + + return (update_date - start_date); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'github.repo.workflows.last_run.get[{#WORKFLOW_NAME}]' + tags: + - tag: component + value: workflow + - tag: workflow + value: '{#WORKFLOW_NAME}' + - uuid: 32311fa69236401388321fad4ae183d6 + name: 'Workflow [{#WORKFLOW_NAME}]: Get last run' + type: SCRIPT + key: 'github.repo.workflows.last_run.get[{#WORKFLOW_NAME}]' + delay: '{$GITHUB.INTERVAL:"get_last_run:{#WORKFLOW_NAME}"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var github = { + params: {}, + + setParams: function (params, required) { + required = required || []; + required.concat(['api_url', 'user_agent', 'api_version', 'repo_owner', 'repo_name', 'pagination_required', 'api_token']).forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required parameter is not set: "' + field + '".'; + } + }); + + github.params = params; + + if (typeof github.params.api_url === 'string' && !github.params.api_url.endsWith('/')) { + github.params.api_url += '/'; + } + + github.tls = new CTlsConfig(params.tls_verify); + github.tls.checkURL(github.params.api_url); + }, + + apiRequest: function (url, pagination_required) { + const next_pattern = /<([^>]+)>;\s*rel="next"/i; + var request = new HttpRequest(github.tls.options), + response, + headers, + final_data = { + headers: {}, + data: [] + }; + + pagination_required = (typeof pagination_required !== 'undefined') ? pagination_required : 'true'; + + request.addHeader('User-Agent: ' + github.params.user_agent); + request.addHeader('Accept: application/vnd.github+json'); + request.addHeader('X-GitHub-Api-Version: ' + github.params.api_version); + request.addHeader('Authorization: Bearer ' + github.params.api_token); + + if (typeof github.params.http_proxy !== 'undefined' && github.params.http_proxy !== '') { + request.setProxy(github.params.http_proxy); + Zabbix.log(4, '[ GitHub Repo ] Using HTTP proxy: ' + github.params.http_proxy); + } + + while (url) { + Zabbix.log(4, '[ GitHub Repo ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ GitHub Repo ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + + var parsed_data = github.parseData(response); + final_data.data = final_data.data.concat(parsed_data); + + headers = request.getHeaders(); + + var link_header = github.getHeader(headers, 'Link'); + url = ((link_header || '').match(next_pattern) || [])[1]; + + if (pagination_required === 'false') { + url = ''; + } + } + + final_data.headers = request.getHeaders(); + + delete request; + + return final_data; + }, + + parseData: function (response_data) { + if (!response_data) { + return []; + } + + const normalization_required = "total_count" in response_data && !("url" in response_data); + if (!normalization_required) return response_data; + + delete response_data.incomplete_results; + delete response_data.repository_selection; + delete response_data.total_count; + + const namespaceKey = Object.keys(response_data)[0]; + response_data = response_data[namespaceKey]; + + return response_data; + }, + + itemsCount: function (response_data) { + const last_page_number = /<[^>]+page=(\d+)>;\s*rel="last"/i; + + if (response_data.headers.link){ + return response_data.headers.link.match(last_page_number)[1]; + } + + return response_data.data.length; + }, + + getHeader: function (headers, name) { + if (!headers || typeof headers !== 'object') { + return null; + } + + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return headers[key]; + } + } + + return null; + } + } + + try { + github.setParams(JSON.parse(value), ['api_query']); + + var result = github.apiRequest(github.params.api_url + github.params.api_query + '?' + github.params.query_params || '', github.params.pagination_required); + + return JSON.stringify(result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ GitHub Repo ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: | + Get the data about the last workflow run. + + Information about endpoint: + https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow + preprocessing: + - type: CHECK_REGEX_ERROR + parameters: + - 'API rate limit exceeded' + - \0 + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - $.data.first() + timeout: '{$GITHUB.TIMEOUT:"get_last_run:{#WORKFLOW_NAME}"}' + parameters: + - name: api_query + value: 'repos/{$GITHUB.REPO.OWNER}/{$GITHUB.REPO.NAME}/actions/workflows/{#WORKFLOW_ID}/runs' + - name: api_token + value: '{$GITHUB.API.TOKEN}' + - name: api_url + value: '{$GITHUB.API.URL}' + - name: api_version + value: '{$GITHUB.API_VERSION}' + - name: http_proxy + value: '{$GITHUB.HTTP_PROXY}' + - name: pagination_required + value: 'false' + - name: query_params + value: per_page=1 + - name: repo_name + value: '{$GITHUB.REPO.NAME}' + - name: repo_owner + value: '{$GITHUB.REPO.OWNER}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"GitHub"}' + - name: user_agent + value: '{$GITHUB.USER_AGENT}' + tags: + - tag: component + value: raw + - tag: component + value: workflow + - tag: workflow + value: '{#WORKFLOW_NAME}' + - uuid: f8bebdb8345b41c48cfd7be9554d82bf + name: 'Workflow [{#WORKFLOW_NAME}]: Last run start date' + type: DEPENDENT + key: 'github.repo.workflows.last_run.start_date[{#WORKFLOW_NAME}]' + delay: '0' + trends: '0' + units: unixtime + description: 'The date when the last workflow run was started.' + preprocessing: + - type: JSONPATH + parameters: + - $.run_started_at + - type: JAVASCRIPT + parameters: + - 'return Math.floor(new Date(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'github.repo.workflows.last_run.get[{#WORKFLOW_NAME}]' + tags: + - tag: component + value: workflow + - tag: workflow + value: '{#WORKFLOW_NAME}' + - uuid: e23ba9f5d20541d594748d01491a7ea7 + name: 'Workflow [{#WORKFLOW_NAME}]: Last run status' + type: DEPENDENT + key: 'github.repo.workflows.last_run.status[{#WORKFLOW_NAME}]' + delay: '0' + trends: '0' + description: | + The status of the last workflow run. Possible values: + + 0 - queued + 1 - in_progress + 2 - completed + 10 - unknown + valuemap: + name: 'Workflow run status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'queued', + 'in_progress', + 'completed' + ].indexOf(value); + + return idx !== -1 ? idx : 10; + master_item: + key: 'github.repo.workflows.last_run.get[{#WORKFLOW_NAME}]' + tags: + - tag: component + value: health + - tag: component + value: workflow + - tag: workflow + value: '{#WORKFLOW_NAME}' + trigger_prototypes: + - uuid: d89658cb7d8c4b75a8f526dee6dcf43f + expression: 'last(/GitHub repository by HTTP/github.repo.workflows.last_run.status[{#WORKFLOW_NAME}])=1 and changecount(/GitHub repository by HTTP/github.repo.workflows.last_run.status[{#WORKFLOW_NAME}],{$GITHUB.WORKFLOW.STATUS.IN_PROGRESS.THRESH:"workflow_in_progress:{#WORKFLOW_NAME}"})=0' + name: 'GitHub: Workflow [{#WORKFLOW_NAME}]: The workflow has been in progress for too long' + event_name: 'GitHub: Workflow [{#WORKFLOW_NAME}]: The workflow has been in progress for too long (over {$GITHUB.WORKFLOW.STATUS.IN_PROGRESS.THRESH:"workflow_in_progress:{#WORKFLOW_NAME}"})' + priority: WARNING + description: 'The last workflow run has been in the "in_progress" status for too long. The default threshold is provided as an example and can be adjusted for relevant workflows with context macros.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f98d0332c53a453bb737f436a4f0d2c0 + expression: 'last(/GitHub repository by HTTP/github.repo.workflows.last_run.status[{#WORKFLOW_NAME}])=0 and changecount(/GitHub repository by HTTP/github.repo.workflows.last_run.status[{#WORKFLOW_NAME}],{$GITHUB.WORKFLOW.STATUS.QUEUED.THRESH:"workflow_queued:{#WORKFLOW_NAME}"})=0' + name: 'GitHub: Workflow [{#WORKFLOW_NAME}]: The workflow has been in the queue for too long' + event_name: 'GitHub: Workflow [{#WORKFLOW_NAME}]: The workflow has been in the queue for too long (over {$GITHUB.WORKFLOW.STATUS.QUEUED.THRESH:"workflow_queued:{#WORKFLOW_NAME}"})' + priority: WARNING + description: 'The last workflow run has been in the "queued" status for too long. This may mean that it has failed to be assigned to a runner. The default threshold is provided as an example and can be adjusted for relevant workflows with context macros.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a187f9ea480341288b422168f6345784 + name: 'Workflow [{#WORKFLOW_NAME}]: Last run update date' + type: DEPENDENT + key: 'github.repo.workflows.last_run.update_date[{#WORKFLOW_NAME}]' + delay: '0' + trends: '0' + units: unixtime + description: 'The date when the last workflow run was updated.' + preprocessing: + - type: JSONPATH + parameters: + - $.updated_at + - type: JAVASCRIPT + parameters: + - 'return Math.floor(new Date(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'github.repo.workflows.last_run.get[{#WORKFLOW_NAME}]' + tags: + - tag: component + value: workflow + - tag: workflow + value: '{#WORKFLOW_NAME}' + master_item: + key: github.repo.workflows.get + lld_macro_paths: + - lld_macro: '{#WORKFLOW_ID}' + path: $.id + - lld_macro: '{#WORKFLOW_NAME}' + path: $.name + - lld_macro: '{#WORKFLOW_STATE}' + path: $.state + preprocessing: + - type: JSONPATH + parameters: + - $.data + tags: + - tag: class + value: application + - tag: target + value: github + - tag: target + value: repository + macros: + - macro: '{$GITHUB.API.TOKEN}' + type: SECRET_TEXT + description: 'Set the access token here.' + - macro: '{$GITHUB.API.URL}' + value: 'https://api.github.com/' + description: 'Set the API URL here.' + - macro: '{$GITHUB.API_VERSION}' + value: '2022-11-28' + description: 'The API version that is used in headers for HTTP requests.' + - macro: '{$GITHUB.BRANCH.NAME.MATCHES}' + value: .+ + description: 'The repository branch name regex filter to use in branch-related metric discovery - for including.' + - macro: '{$GITHUB.BRANCH.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The repository branch name regex filter to use in branch-related metric discovery - for excluding.' + - macro: '{$GITHUB.HTTP_PROXY}' + description: 'The HTTP proxy for script items (set if needed). If the macro is empty, then no proxy is used.' + - macro: '{$GITHUB.INTERVAL}' + value: 1m + description: 'The update interval for the script items that retrieve data from the API. Can be used with context if needed (check the context values in relevant items).' + - macro: '{$GITHUB.INTERVAL:"get_(branches|workflows)"}' + value: 1h + description: 'The update interval for the script items that retrieve the branches and workflows. Used only for related metric discovery.' + - macro: '{$GITHUB.INTERVAL:"get_repo"}' + value: 15m + description: 'The update interval for the script item that retrieves the repository information.' + - macro: '{$GITHUB.INTERVAL:"get_runners"}' + value: 15m + description: 'The update interval for the script item that retrieves the information about self-hosted runners.' + - macro: '{$GITHUB.INTERVAL:regex:"get_(tags|releases|issues)_count"}' + value: 1h + description: 'The update interval for the script items that retrieve the number of tags, releases, issues, and pull requests (total, open, closed).' + - macro: '{$GITHUB.INTERVAL:regex:"get_commits_count:.+"}' + value: 1h + description: 'The update interval for the script items that retrieve the commits count in discovered branches.' + - macro: '{$GITHUB.INTERVAL:regex:"get_last_run:.+"}' + value: 15m + description: 'The update interval for the script items that retrieve the information about the last workflow run results.' + - macro: '{$GITHUB.REPO.NAME}' + value: '' + description: 'Set the repository name here.' + - macro: '{$GITHUB.REPO.OWNER}' + value: '' + description: 'Set the repository owner here.' + - macro: '{$GITHUB.REQUESTS.UTIL.HIGH}' + value: '90' + description: 'The threshold percentage of utilized API requests in a High trigger expression.' + - macro: '{$GITHUB.REQUESTS.UTIL.WARN}' + value: '80' + description: 'The threshold percentage of utilized API requests in a Warning trigger expression.' + - macro: '{$GITHUB.RESULTS_PER_PAGE}' + value: '100' + description: 'The number of results to fetch per page. Can be used with context and adjusted if needed (check the context values in script parameters of relevant items).' + - macro: '{$GITHUB.RUNNER.NAME.MATCHES}' + value: .+ + description: 'The repository self-hosted runner name regex filter to use in discovering metrics related to the self-hosted runner - for including.' + - macro: '{$GITHUB.RUNNER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The repository self-hosted runner name regex filter to use in discovering metrics related to the self-hosted runner - for excluding.' + - macro: '{$GITHUB.RUNNER.OS.MATCHES}' + value: .+ + description: 'The repository self-hosted runner OS regex filter to use in discovering metrics related to the self-hosted runner - for including.' + - macro: '{$GITHUB.RUNNER.OS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The repository self-hosted runner OS regex filter to use in discovering metrics related to the self-hosted runner - for excluding.' + - macro: '{$GITHUB.TIMEOUT}' + value: 15s + description: 'The timeout threshold for the script items that retrieve data from the API. Can be used with context if needed (check the context values in relevant items).' + - macro: '{$GITHUB.USER_AGENT}' + value: Zabbix/7.0 + description: 'The user agent that is used in headers for HTTP requests.' + - macro: '{$GITHUB.WORKFLOW.NAME.MATCHES}' + value: .+ + description: 'The repository workflow name regex filter to use in workflow-related metric discovery - for including.' + - macro: '{$GITHUB.WORKFLOW.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The repository workflow name regex filter to use in workflow-related metric discovery - for excluding.' + - macro: '{$GITHUB.WORKFLOW.STATE.MATCHES}' + value: active + description: 'The repository workflow state regex filter to use in workflow-related metric discovery - for including.' + - macro: '{$GITHUB.WORKFLOW.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The repository workflow state regex filter to use in workflow-related metric discovery - for excluding.' + - macro: '{$GITHUB.WORKFLOW.STATUS.IN_PROGRESS.THRESH}' + value: 24h + description: 'The time threshold used in the trigger of a workflow run that has been in the queue for too long. Can be used with context if needed.' + - macro: '{$GITHUB.WORKFLOW.STATUS.QUEUED.THRESH}' + value: 1h + description: 'The time threshold used in the trigger of a workflow run that has been in the queue for too long. Can be used with context if needed.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "GitHub repository", e.g. {$HTTP.TLS.VERIFY:"GitHub repository"}.' + dashboards: + - uuid: 09870c778f4740da8430b1383225b2c6 + name: 'Repository overview' + auto_start: 'NO' + pages: + - name: 'Repository statistics' + widgets: + - type: item + name: Size + width: '10' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: Size + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.repository.size + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: item + name: Releases + 'y': '2' + width: '10' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: Releases + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.releases.count + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: item + name: Stargazers + 'y': '4' + width: '10' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: Stargazers + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.repository.stargazers + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: item + name: 'Open issues' + 'y': '6' + width: '10' + height: '4' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Open issues' + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.issues.open + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_show + value: '0' + - type: item + name: 'Open PRs' + 'y': '10' + width: '10' + height: '4' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Open PRs' + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.pr.open + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_show + value: '0' + - type: svggraph + name: 'Requests limit usage' + 'y': '14' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: 4CAF50 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.requests.limit + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'GitHub repository by HTTP' + key: github.repo.requests.used + - type: INTEGER + name: ds.0.missingdatafunc + value: '1' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: RHXEN + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: graphprototype + 'y': '19' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'GitHub repository by HTTP' + name: 'Health percentage score{#SINGLETON}' + - type: STRING + name: reference + value: QXEXC + - type: item + name: Forks + x: '10' + width: '9' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: Forks + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.repository.forks.count + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: item + name: Tags + x: '10' + 'y': '2' + width: '9' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: Tags + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.tags.count + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: item + name: Watchers + x: '10' + 'y': '4' + width: '9' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: Watchers + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.repository.watchers + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: svggraph + name: Issues + x: '10' + 'y': '6' + width: '62' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: FFD54F + - type: STRING + name: ds.0.color.1 + value: FF465C + - type: STRING + name: ds.0.color.2 + value: 4CAF50 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.issues.total + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'GitHub repository by HTTP' + key: github.repo.issues.open + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'GitHub repository by HTTP' + key: github.repo.issues.closed + - type: INTEGER + name: ds.0.missingdatafunc + value: '1' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: NDLZO + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: PRs + x: '10' + 'y': '10' + width: '62' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: FFD54F + - type: STRING + name: ds.0.color.1 + value: FF465C + - type: STRING + name: ds.0.color.2 + value: 4CAF50 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.pr.total + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'GitHub repository by HTTP' + key: github.repo.pr.open + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'GitHub repository by HTTP' + key: github.repo.pr.closed + - type: INTEGER + name: ds.0.missingdatafunc + value: '1' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: SCQDP + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: itemnavigator + name: Branches + x: '19' + width: '12' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'Branch [*]: Number of commits' + - type: STRING + name: reference + value: YXPRE + - type: item + name: 'Number of commits' + x: '31' + width: '17' + height: '6' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: itemid._reference + value: YXPRE._itemid + - type: INTEGER + name: show.0 + value: '2' + - type: svggraph + name: 'Requests limit utilization, in %' + x: '36' + 'y': '14' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 4CAF50 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'GitHub repository by HTTP' + key: github.repo.requests.util + - type: INTEGER + name: ds.0.missingdatafunc + value: '1' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: MTFRC + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: simple_triggers + value: '1' + - type: INTEGER + name: working_time + value: '1' + - type: problems + x: '48' + width: '24' + height: '6' + fields: + - type: STRING + name: reference + value: UDUDX + - name: 'Self-hosted runners' + widgets: + - type: honeycomb + name: 'Runners online' + width: '72' + height: '7' + fields: + - type: STRING + name: items.0 + value: 'Runner [*]: Online' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: YSQRZ + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 4CAF50 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: honeycomb + name: 'Runners busy' + 'y': '7' + width: '72' + height: '7' + fields: + - type: STRING + name: items.0 + value: 'Runner [*]: Busy' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: ZYVGW + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: D2D2D2 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 29B6F6 + - type: STRING + name: thresholds.1.threshold + value: '1' + valuemaps: + - uuid: 21844e435a364b2f92d675f0967e115a + name: Boolean + mappings: + - value: '0' + newvalue: 'false' + - value: '1' + newvalue: 'true' + - uuid: 9175771d066042c49ac1583c0e8689c6 + name: 'Workflow run conclusion' + mappings: + - value: '0' + newvalue: success + - value: '1' + newvalue: failure + - value: '2' + newvalue: neutral + - value: '3' + newvalue: cancelled + - value: '4' + newvalue: skipped + - value: '5' + newvalue: timed_out + - value: '6' + newvalue: action_required + - value: '10' + newvalue: unknown + - uuid: 9b86b16774094f5e9c06286b27f6f440 + name: 'Workflow run status' + mappings: + - value: '0' + newvalue: queued + - value: '1' + newvalue: in_progress + - value: '2' + newvalue: completed + - value: '10' + newvalue: unknown + graphs: + - uuid: 774218efca844a978b61077f0e253ddf + name: 'Number of issues' + graph_items: + - color: 199C0D + item: + host: 'GitHub repository by HTTP' + key: github.repo.issues.total + - sortorder: '1' + color: F63100 + item: + host: 'GitHub repository by HTTP' + key: github.repo.issues.open + - sortorder: '2' + color: 00611C + item: + host: 'GitHub repository by HTTP' + key: github.repo.issues.closed + - uuid: a6de9d61e5f74a5f97946792c7c101fe + name: 'Number of PRs' + graph_items: + - color: 199C0D + item: + host: 'GitHub repository by HTTP' + key: github.repo.pr.total + - sortorder: '1' + color: F63100 + item: + host: 'GitHub repository by HTTP' + key: github.repo.pr.open + - sortorder: '2' + color: 00611C + item: + host: 'GitHub repository by HTTP' + key: github.repo.pr.closed + - uuid: 794cb86105c14f1aab297634292d8b67 + name: 'Number of releases and tags' + graph_items: + - color: 199C0D + item: + host: 'GitHub repository by HTTP' + key: github.repo.releases.count + - sortorder: '1' + color: F63100 + item: + host: 'GitHub repository by HTTP' + key: github.repo.tags.count + - uuid: 94173b91d3bf40a6a9188f0efecaabdd + name: 'Requests limit usage' + graph_items: + - color: 199C0D + item: + host: 'GitHub repository by HTTP' + key: github.repo.requests.limit + - sortorder: '1' + color: F63100 + item: + host: 'GitHub repository by HTTP' + key: github.repo.requests.used + - uuid: 7e33e0dd5faa45418defd8e5e7f07e49 + name: 'Requests limit utilization, in %' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'GitHub repository by HTTP' + key: github.repo.requests.util diff --git a/GitLab_by_HTTP.yaml b/GitLab_by_HTTP.yaml new file mode 100644 index 0000000..9cdc71b --- /dev/null +++ b/GitLab_by_HTTP.yaml @@ -0,0 +1,1337 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: f445dac89ff74deabaae9dcb84815998 + template: 'GitLab by HTTP' + name: 'GitLab by HTTP' + description: | + Get GitLab metrics by HTTP agent from Prometheus metrics endpoint. + + To access the metrics, the client IP address must be explicitly allowed. See https://docs.gitlab.com/ee/administration/monitoring/ip_whitelist.html. + Or second method, using token variable from http://your.gitlab.address/admin/health_check (fill {$GITLAB.HEALTH.TOKEN} macro with variable path like "?token=your_token"). + Don't forget change macros {$GITLAB.URL}. + Some metrics may not be collected depending on your Gitlab instance version and configuration. See (Gitlab's documentation[)https://docs.gitlab.com/ee/administration/monitoring/prometheus/gitlab_metrics.html] for further information about its metric collection. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 43a26551b0a6460cac3c43138ec5fd33 + name: 'Cache: Misses rate, total' + type: DEPENDENT + key: gitlab.cache.misses_total.rate + delay: '0' + value_type: FLOAT + description: 'The cache read miss count.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_cache_misses_total")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: cache + - uuid: 9c507412d4544a37bdad49ba47c48302 + name: 'Cache: Operations rate, total' + type: DEPENDENT + key: gitlab.cache.operations_total.rate + delay: '0' + value_type: FLOAT + description: 'The count of cache operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_cache_operations_total")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: cache + - uuid: 2d46dc855ca741839cfe1a19e0dc892f + name: 'Database: Connection pool, busy' + type: DEPENDENT + key: gitlab.database.connection_pool_busy + delay: '0' + description: 'Connections to the main database in use where the owner is still alive.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_database_connection_pool_busy" && @.labels.class == "ActiveRecord::Base")].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: database + - uuid: 6ee7a1d3ab20463d83602b751381d821 + name: 'Database: Connection pool, current' + type: DEPENDENT + key: gitlab.database.connection_pool_connections + delay: '0' + description: 'Current connections to the main database in the pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_database_connection_pool_connections" && @.labels.class == "ActiveRecord::Base")].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: database + - uuid: 561a1f54c98d4a2b828fe644961404be + name: 'Database: Connection pool, dead' + type: DEPENDENT + key: gitlab.database.connection_pool_dead + delay: '0' + description: 'Connections to the main database in use where the owner is not alive.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_database_connection_pool_dead" && @.labels.class == "ActiveRecord::Base")].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: database + - uuid: 3a0b5c8de88b41fa9ebf6f3fca63833e + name: 'Database: Connection pool, idle' + type: DEPENDENT + key: gitlab.database.connection_pool_idle + delay: '0' + description: 'Connections to the main database not in use.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_database_connection_pool_idle" && @.labels.class == "ActiveRecord::Base")].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: database + - uuid: fd1458232de34981a9a00be820e123f1 + name: 'Database: Connection pool, size' + type: DEPENDENT + key: gitlab.database.connection_pool_size + delay: '0' + description: 'Total connection to the main database pool capacity.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_database_connection_pool_size" && @.labels.class == "ActiveRecord::Base")].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: database + - uuid: 501a2f646ced4207a32a24e900310440 + name: 'Database: Connection pool, waiting' + type: DEPENDENT + key: gitlab.database.connection_pool_waiting + delay: '0' + description: 'Threads currently waiting on this queue.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_database_connection_pool_waiting" && @.labels.class == "ActiveRecord::Base")].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: database + - uuid: 71a5f82d11914b12a86008bfd488fb1e + name: Version + type: DEPENDENT + key: gitlab.deployments.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the GitLab instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="deployments")].labels.version.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: application + triggers: + - uuid: 88d7ceb3a683436da666e8802b2d29b5 + expression: 'last(/GitLab by HTTP/gitlab.deployments.version,#1)<>last(/GitLab by HTTP/gitlab.deployments.version,#2) and length(last(/GitLab by HTTP/gitlab.deployments.version))>0' + name: 'GitLab: Version has changed' + event_name: 'GitLab: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The GitLab version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3e409938aba24445a11012bcbf8aa113 + name: 'User CAPTCHA logins failed, total' + type: DEPENDENT + key: gitlab.failed_login_captcha_total + delay: '0' + description: 'Counter of failed CAPTCHA attempts during login.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="failed_login_captcha_total")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: sessions + - uuid: 2aa509b84dc14026b8ff8ed473add2d2 + name: 'Get instance metrics' + type: HTTP_AGENT + key: gitlab.get_metrics + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: PROMETHEUS_TO_JSON + parameters: + - '' + url: '{$GITLAB.URL}/-/metrics{$GITLAB.HEALTH.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 3ff4d9793af94d339ca225aaf9200554 + name: 'HTTP requests rate, 4xx' + type: DEPENDENT + key: gitlab.http.requests.4xx.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of handle failures of requests with code 4XX.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="http_requests_total" && @.labels.status =~ ''4..'' )].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: 4xx + - uuid: d0fa18012d6a4b0ba6620b0ef6cb9aef + name: 'HTTP requests rate, 5xx' + type: DEPENDENT + key: gitlab.http.requests.5xx.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of handle failures of requests with HTTP-code 5xx.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="http_requests_total" && @.labels.status =~ ''5..'' )].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: 5xx + triggers: + - uuid: 7021e3b0b49a4990a1d8ce356b7ae130 + expression: 'min(/GitLab by HTTP/gitlab.http.requests.5xx.rate,5m)>{$GITLAB.HTTP.FAIL.MAX.WARN}' + name: 'GitLab: Too many HTTP requests failures' + event_name: 'GitLab: Too many HTTP requests failures (over {$GITLAB.HTTP.FAIL.MAX.WARN} for 5m)' + priority: WARNING + description: '"Too many requests failed on GitLab instance with 5xx HTTP code"' + tags: + - tag: scope + value: availability + - uuid: 2d739e4bedb24b50ab6adfdfdeb39da9 + name: 'HTTP requests rate, total' + type: DEPENDENT + key: gitlab.http.requests.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of requests received into the system.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="http_requests_total")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: requests + - uuid: c48920e302ff4b9ab16f45b67775b440 + name: 'Application server status' + type: HTTP_AGENT + key: gitlab.liveness + description: 'Checks whether the application server is running. This probe is used to know if Rails Controllers are not deadlocked due to a multi-threading.' + valuemap: + name: 'GitLab healthcheck' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"status": "failed"}' + - type: JSONPATH + parameters: + - $.status + - type: BOOL_TO_DECIMAL + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + url: '{$GITLAB.URL}/-/liveness{$GITLAB.HEALTH.TOKEN}' + tags: + - tag: component + value: health + triggers: + - uuid: 2f1eb8d6c89a4d8cbda0e951d3f6a109 + expression: 'last(/GitLab by HTTP/gitlab.liveness)=0' + name: 'GitLab: Liveness check was failed' + priority: HIGH + description: 'The application server is not running or Rails Controllers are deadlocked.' + tags: + - tag: scope + value: availability + - uuid: 7ef7142babfd4bc2b5b25be541c0511f + name: 'Pipelines: Auto DevOps pipelines, total' + type: DEPENDENT + key: gitlab.pipeline.auto_devops_completed.total + delay: '0' + description: 'Counter of completed Auto DevOps pipelines.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="auto_devops_pipelines_completed_total")].value.sum()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: pipelines + - uuid: 0ffa0a5c108644508252a03469e4f394 + name: 'Pipelines: Auto DevOps pipelines, failed' + type: DEPENDENT + key: gitlab.pipeline.auto_devops_completed_total.failed + delay: '0' + description: 'Counter of completed Auto DevOps pipelines with status "failed".' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="auto_devops_pipelines_completed_total" && @.labels.status == "failed")].value.sum()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: pipelines + - uuid: f4265a3167a245c4998958106f6ee265 + name: 'Pipelines: Created, total' + type: DEPENDENT + key: gitlab.pipeline.created_total + delay: '0' + description: 'Counter of pipelines created.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="pipelines_created_total")].value.sum()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: pipelines + - uuid: 23cb22f8f81e461c86f72a92cdfde7a5 + name: 'Pipelines: CI/CD creation duration' + type: DEPENDENT + key: gitlab.pipeline.pipeline_creation + delay: '0' + value_type: FLOAT + units: s + description: 'The sum of the time in seconds it takes to create a CI/CD pipeline.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_ci_pipeline_creation_duration_seconds_sum")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: pipelines + - uuid: 91c3acbb82524244a1ac400587641ffa + name: 'Pipelines: Pipelines: CI/CD creation count' + type: DEPENDENT + key: gitlab.pipeline.pipeline_creation.count + delay: '0' + value_type: FLOAT + description: 'The count of the time it takes to create a CI/CD pipeline.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_ci_pipeline_creation_duration_seconds_count")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: pipelines + - uuid: c80453c338814951a9e97d9f37e7d68f + name: 'Pipelines: Processing events, total' + type: DEPENDENT + key: gitlab.pipeline.processing_events_total + delay: '0' + description: 'Total amount of pipeline processing events.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_ci_pipeline_processing_events_total")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: pipelines + - uuid: 794a8d7f474d490c96e714dac810140d + name: 'Instance readiness check' + type: HTTP_AGENT + key: gitlab.readiness + description: 'The readiness probe checks whether the GitLab instance is ready to accept traffic via Rails Controllers.' + valuemap: + name: 'GitLab healthcheck' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"master_check":[{"status":"failed"}]}' + - type: JSONPATH + parameters: + - '$.master_check[0].status' + - type: BOOL_TO_DECIMAL + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + url: '{$GITLAB.URL}/-/readiness{$GITLAB.HEALTH.TOKEN}' + tags: + - tag: component + value: health + triggers: + - uuid: 11ff325698534dcd8bbaa12c86704069 + expression: 'last(/GitLab by HTTP/gitlab.readiness)=0' + name: 'GitLab: Gitlab instance is not able to accept traffic' + priority: HIGH + dependencies: + - name: 'GitLab: Liveness check was failed' + expression: 'last(/GitLab by HTTP/gitlab.liveness)=0' + tags: + - tag: scope + value: availability + - uuid: 173b8d5e108f471fbf4c1267dcb9cc37 + name: 'Redis: Client exceptions rate, cache' + type: DEPENDENT + key: gitlab.redis.client_exceptions.cache.rate + delay: '0' + value_type: FLOAT + description: 'Number of Redis client exceptions per second. (Instance: cache)' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_redis_client_exceptions_total" && @.labels.storage == "cache")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: redis + triggers: + - uuid: a7e460f174fd4e16b2358fd3867390b4 + expression: 'min(/GitLab by HTTP/gitlab.redis.client_exceptions.cache.rate,5m)>{$GITLAB.REDIS.FAIL.MAX.WARN}' + name: 'GitLab: Too many Redis cache client exceptions' + event_name: 'GitLab: Too many Redis cache client exceptions (over {$GITLAB.REDIS.FAIL.MAX.WARN} for 5m)' + priority: WARNING + description: '"Too many Redis client exceptions during the requests to Redis instance cache."' + tags: + - tag: scope + value: availability + - uuid: 0bff591252dc4cc497527afb1f7d96b2 + name: 'Redis: Client exceptions rate, queues' + type: DEPENDENT + key: gitlab.redis.client_exceptions.queues.rate + delay: '0' + value_type: FLOAT + description: 'Number of Redis client exceptions per second. (Instance: queues)' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_redis_client_exceptions_total" && @.labels.storage == "queues")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: redis + triggers: + - uuid: 36ec79901f324f27992ea68274eedb71 + expression: 'min(/GitLab by HTTP/gitlab.redis.client_exceptions.queues.rate,5m)>{$GITLAB.REDIS.FAIL.MAX.WARN}' + name: 'GitLab: Too many Redis queues client exceptions' + event_name: 'GitLab: Too many Redis queues client exceptions (over {$GITLAB.REDIS.FAIL.MAX.WARN} for 5m)' + priority: WARNING + description: '"Too many Redis client exceptions during the requests to Redis instance queues."' + tags: + - tag: scope + value: availability + - uuid: 800b429ea1d044e6a685bc51706f8547 + name: 'Redis: client exceptions rate, shared_state' + type: DEPENDENT + key: gitlab.redis.client_exceptions.shared_state.rate + delay: '0' + value_type: FLOAT + description: 'Number of Redis client exceptions per second. (Instance: shared_state)' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_redis_client_exceptions_total" && @.labels.storage == "shared_state")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: redis + triggers: + - uuid: b475d6ecbc564f9b8f7fe9b24bcdf013 + expression: 'min(/GitLab by HTTP/gitlab.redis.client_exceptions.shared_state.rate,5m)>{$GITLAB.REDIS.FAIL.MAX.WARN}' + name: 'GitLab: Too many Redis shared_state client exceptions' + event_name: 'GitLab: Too many Redis shared_state client exceptions (over {$GITLAB.REDIS.FAIL.MAX.WARN} for 5m)' + priority: WARNING + description: '"Too many Redis client exceptions during the requests to Redis instance shared_state."' + tags: + - tag: scope + value: availability + - uuid: 7dcc638e1c174dd5975f85551211a3ba + name: 'Redis: Client requests rate, cache' + type: DEPENDENT + key: gitlab.redis.client_requests.cache.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of Redis client requests per second. (Instance: cache)' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_redis_client_requests_total" && @.labels.storage == "cache")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: redis + - uuid: f613303925db46958d181c379e22f942 + name: 'Redis: Client requests rate, queues' + type: DEPENDENT + key: gitlab.redis.client_requests.queues.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of Redis client requests per second. (Instance: queues)' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_redis_client_requests_total" && @.labels.storage == "queues")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: redis + - uuid: 3ae46654b46e4c769a7308879bc64890 + name: 'Redis: Client requests rate, shared_state' + type: DEPENDENT + key: gitlab.redis.client_requests.shared_state.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of Redis client requests per second. (Instance: shared_state)' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_redis_client_requests_total" && @.labels.storage == "shared_state")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: redis + - uuid: 950d48c3b5034e769b2bf6a7110ece02 + name: 'Ruby: File descriptors opened, avg' + type: DEPENDENT + key: gitlab.ruby.file_descriptors.avg + delay: '0' + value_type: FLOAT + description: 'Average number of opened file descriptors.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="ruby_file_descriptors")].value.avg()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: fds + - uuid: 67ed35c3f5f444b2b10fb462838758ac + name: 'Ruby: File descriptors opened, max' + type: DEPENDENT + key: gitlab.ruby.file_descriptors.max + delay: '0' + value_type: FLOAT + description: 'Maximum number of opened file descriptors.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="ruby_file_descriptors")].value.max()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: fds + - uuid: b1576e2b47bd448293c3e88885bfc87e + name: 'Ruby: File descriptors opened, min' + type: DEPENDENT + key: gitlab.ruby.file_descriptors.min + delay: '0' + value_type: FLOAT + description: 'Minimum number of opened file descriptors.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="ruby_file_descriptors")].value.min()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: fds + - uuid: 98feff3bfe0d4a9ea88733ae8fef8769 + name: 'Ruby: CPU usage per second' + type: DEPENDENT + key: gitlab.ruby.process_cpu_seconds.rate + delay: '0' + value_type: FLOAT + units: s + description: 'Average CPU time util in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="ruby_process_cpu_seconds_total")].value.avg()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: cpu + - uuid: 91ed44c1738745119e892eadb88b417f + name: 'Ruby: File descriptors, max' + type: DEPENDENT + key: gitlab.ruby.process_max_fds + delay: '0' + value_type: FLOAT + description: 'Maximum number of open file descriptors per process.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="ruby_process_max_fds")].value.avg()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: fds + - uuid: 8de84a159b864ed791c07835aa0ec39a + name: 'Ruby: RSS memory, avg' + type: DEPENDENT + key: gitlab.ruby.process_resident_memory_bytes.avg + delay: '0' + value_type: FLOAT + units: B + description: 'Average RSS Memory usage in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="ruby_process_resident_memory_bytes")].value.avg()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: memory + - uuid: 27285f7d3c344d68b7945edde3cb8ecf + name: 'Ruby: RSS memory, max' + type: DEPENDENT + key: gitlab.ruby.process_resident_memory_bytes.max + delay: '0' + value_type: FLOAT + units: B + description: 'Maximum RSS Memory usage in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="ruby_process_resident_memory_bytes")].value.max()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: memory + - uuid: 0cf8d21bcb8d4fb7880784dc82ba8229 + name: 'Ruby: RSS memory, min' + type: DEPENDENT + key: gitlab.ruby.process_resident_memory_bytes.min + delay: '0' + value_type: FLOAT + units: B + description: 'Minimum RSS Memory usage in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="ruby_process_resident_memory_bytes")].value.min()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: memory + - uuid: 68267621a5e14494bf57225e71e05ff4 + name: 'Ruby: First process start time' + type: DEPENDENT + key: gitlab.ruby.process_start_time_seconds.first + delay: '0' + units: unixtime + description: 'Minimum UNIX timestamp of ruby processes start time.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="ruby_process_start_time_seconds")].value.min()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: application + - uuid: be88084e9b544af68f78c013caf6b59a + name: 'Ruby: Last process start time' + type: DEPENDENT + key: gitlab.ruby.process_start_time_seconds.last + delay: '0' + units: unixtime + description: 'Maximum UNIX timestamp ruby processes start time.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="ruby_process_start_time_seconds")].value.max()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: application + - uuid: f23849bd9716444f8bf65d3964e3be15 + name: 'Ruby: Running_threads' + type: DEPENDENT + key: gitlab.ruby.threads_running + delay: '0' + description: 'Number of running Ruby threads.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="gitlab_ruby_threads_running_threads")].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: system + triggers: + - uuid: e24496a9499447b2bbdf70f85bbf2113 + expression: 'nodata(/GitLab by HTTP/gitlab.ruby.threads_running,30m)=1' + name: 'GitLab: Failed to fetch info data' + event_name: 'GitLab: Failed to fetch info data (or no data for 30m)' + priority: WARNING + description: 'Zabbix has not received a metrics data for the last 30 minutes' + manual_close: 'YES' + dependencies: + - name: 'GitLab: Liveness check was failed' + expression: 'last(/GitLab by HTTP/gitlab.liveness)=0' + tags: + - tag: scope + value: availability + - uuid: 56af56ccc23d44bcb636871229fbcde2 + name: 'User CAPTCHA logins, total' + type: DEPENDENT + key: gitlab.successful_login_captcha_total + delay: '0' + description: 'Counter of successful CAPTCHA attempts during login.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="successful_login_captcha_total")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: sessions + - uuid: 95deb1dc93d34935930b154d1222c8a4 + name: 'Transactions per second' + type: DEPENDENT + key: gitlab.transactions.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Transactions per second (gitlab_transaction_* metrics).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=~"gitlab_transaction_.*_count_total")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: transactions + - uuid: d1a346edc81d487da115105333e8992d + name: 'Upload file does not exist' + type: DEPENDENT + key: gitlab.upload_file_does_not_exist + delay: '0' + description: 'Number of times an upload record could not find its file.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="upload_file_does_not_exist")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: application + - uuid: 62c9c5a8886e431bb04c40a8045fe207 + name: 'User logins, total' + type: DEPENDENT + key: gitlab.user_session_logins_total + delay: '0' + description: 'Counter of how many users have logged in since GitLab was started or restarted.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="user_session_logins_total")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: sessions + discovery_rules: + - uuid: acd3e31daa8f497bb1ce0f91d104d928 + name: 'Puma metrics discovery' + type: HTTP_AGENT + key: gitlab.puma.discovery + delay: 3h + description: 'Discovery of Puma specific metrics when Puma is used.' + item_prototypes: + - uuid: 6b6ebfe9326247c8a57fb8c96125bcee + name: 'Active connections' + type: DEPENDENT + key: 'gitlab.puma.active_connections[{#SINGLETON}]' + delay: '0' + description: 'Number of puma threads processing a request.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''puma_active_connections'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: puma + - uuid: 14194f273b4e47d98cfdcbefff64cc68 + name: 'Idle threads' + type: DEPENDENT + key: 'gitlab.puma.idle_threads[{#SINGLETON}]' + delay: '0' + description: 'The number of spawned puma threads which are not processing a request.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''puma_idle_threads'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: puma + - uuid: 33a1be2938e24ce2a3fb650efa4f98d6 + name: 'Killer terminations, total' + type: DEPENDENT + key: 'gitlab.puma.killer_terminations_total[{#SINGLETON}]' + delay: '0' + description: 'The number of workers terminated by PumaWorkerKiller.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''puma_killer_terminations_total'')].value.sum()' + error_handler: DISCARD_VALUE + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: puma + - uuid: 7d93438afd73422d90b03e78b1c0f998 + name: 'Max threads' + type: DEPENDENT + key: 'gitlab.puma.max_threads[{#SINGLETON}]' + delay: '0' + description: 'The maximum number of puma worker threads.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''puma_max_threads'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: puma + - uuid: fe381c99c2464e95bac63da2df994b8a + name: 'Pool capacity' + type: DEPENDENT + key: 'gitlab.puma.pool_capacity[{#SINGLETON}]' + delay: '0' + description: 'The number of requests the puma worker is capable of taking right now.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''puma_pool_capacity'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: puma + - uuid: 8c375d8323f9459a8b2a6254b7afed5b + name: 'Queued connections' + type: DEPENDENT + key: 'gitlab.puma.queued_connections[{#SINGLETON}]' + delay: '0' + description: 'The number of connections in that puma worker''s "todo" set waiting for a worker thread.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''puma_queued_connections'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: puma + trigger_prototypes: + - uuid: 356c8dc915d84382b3f8dfe45b901f46 + expression: 'min(/GitLab by HTTP/gitlab.puma.queued_connections[{#SINGLETON}],15m)>{$GITLAB.PUMA.QUEUE.MAX.WARN}' + name: 'GitLab: Puma is queueing requests' + event_name: 'GitLab: Puma is queueing requests (over {$GITLAB.PUMA.QUEUE.MAX.WARN}% for 15m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 02b27e8a68884f399a8359ed6967d614 + name: 'Running threads' + type: DEPENDENT + key: 'gitlab.puma.running[{#SINGLETON}]' + delay: '0' + description: 'The number of running puma threads.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''puma_running'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: puma + - uuid: b43e4275dd64427bb6eb4890c556c513 + name: 'Running workers' + type: DEPENDENT + key: 'gitlab.puma.running_workers[{#SINGLETON}]' + delay: '0' + description: 'The number of booted puma workers.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''puma_running_workers'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: puma + - uuid: 0169db2581ba48579edc911cad4b41d7 + name: 'Stale workers' + type: DEPENDENT + key: 'gitlab.puma.stale_workers[{#SINGLETON}]' + delay: '0' + description: 'The number of old puma workers.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''puma_stale_workers'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: puma + - uuid: 19e0149a6de846c7a39b305037469ecb + name: Workers + type: DEPENDENT + key: 'gitlab.puma.workers[{#SINGLETON}]' + delay: '0' + description: 'Total number of puma workers.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''puma_workers'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: puma + trigger_prototypes: + - uuid: b69fe81449bd4b6cb6dfddeb333e8898 + expression: 'min(/GitLab by HTTP/gitlab.puma.active_connections[{#SINGLETON}],5m)/last(/GitLab by HTTP/gitlab.puma.max_threads[{#SINGLETON}])*100>{$GITLAB.PUMA.UTILIZATION.MAX.WARN}' + name: 'GitLab: Puma instance thread utilization is too high' + event_name: 'GitLab: Puma instance thread utilization is too high (over {$GITLAB.PUMA.UTILIZATION.MAX.WARN}% for 5m)' + priority: WARNING + tags: + - tag: scope + value: capacity + url: '{$GITLAB.URL}/-/metrics{$GITLAB.HEALTH.TOKEN}' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - puma_workers + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value != "[]" ? [{''{#SINGLETON}'': ''''}] : []);' + - uuid: 912723d1837641cf9b84996788bd6b54 + name: 'Unicorn metrics discovery' + type: HTTP_AGENT + key: gitlab.unicorn.discovery + delay: 3h + description: 'DiscoveryUnicorn specific metrics, when Unicorn is used.' + item_prototypes: + - uuid: 7461ee7fad7f4597825644b80cce2ec2 + name: 'Unicorn: Active connections' + type: DEPENDENT + key: 'gitlab.unicorn.active_connections[{#SINGLETON}]' + delay: '0' + description: 'The number of active Unicorn connections.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''unicorn_active_connections'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: unicorn + - uuid: 31e0f545c6c6428c8f9f46426cb97ca7 + name: 'Unicorn: Queued connections' + type: DEPENDENT + key: 'gitlab.unicorn.queued_connections[{#SINGLETON}]' + delay: '0' + description: 'The number of queued Unicorn connections.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''unicorn_queued_connections'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: unicorn + trigger_prototypes: + - uuid: 84142d0996c0420c8b07c7e17d1b9a47 + expression: 'min(/GitLab by HTTP/gitlab.unicorn.queued_connections[{#SINGLETON}],5m)>{$GITLAB.UNICORN.QUEUE.MAX.WARN}' + name: 'GitLab: Unicorn is queueing requests' + event_name: 'GitLab: Unicorn is queueing requests (over {$GITLAB.UNICORN.QUEUE.MAX.WARN}% for 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 44a12fd548b742069cae53a78f7f8ab0 + name: 'Unicorn: Workers' + type: DEPENDENT + key: 'gitlab.unicorn.unicorn_workers[{#SINGLETON}]' + delay: '0' + description: 'The number of Unicorn workers' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name==''unicorn_workers'')].value.sum()' + master_item: + key: gitlab.get_metrics + tags: + - tag: component + value: unicorn + trigger_prototypes: + - uuid: 731bf8eb456c49739a3fcd7aec24c7d7 + expression: 'min(/GitLab by HTTP/gitlab.unicorn.active_connections[{#SINGLETON}],5m)/last(/GitLab by HTTP/gitlab.unicorn.unicorn_workers[{#SINGLETON}])*100>{$GITLAB.UNICORN.UTILIZATION.MAX.WARN}' + name: 'GitLab: Unicorn worker utilization is too high' + event_name: 'GitLab: Unicorn worker utilization is too high (over {$GITLAB.UNICORN.UTILIZATION.MAX.WARN}% for 5m)' + priority: WARNING + tags: + - tag: scope + value: capacity + url: '{$GITLAB.URL}/-/metrics{$GITLAB.HEALTH.TOKEN}' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - unicorn_workers + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value != "[]" ? [{''{#SINGLETON}'': ''''}] : []);' + tags: + - tag: class + value: application + - tag: target + value: gitlab + macros: + - macro: '{$GITLAB.HEALTH.TOKEN}' + description: 'The token path for Gitlab health check. Example `?token=your_token`' + - macro: '{$GITLAB.HTTP.FAIL.MAX.WARN}' + value: '2' + description: 'The maximum number of HTTP request failures for a trigger expression.' + - macro: '{$GITLAB.OPEN.FDS.MAX.WARN}' + value: '90' + description: 'The maximum percentage of used file descriptors for a trigger expression.' + - macro: '{$GITLAB.PUMA.QUEUE.MAX.WARN}' + value: '1' + description: 'The maximum number of Puma queued requests for a trigger expression.' + - macro: '{$GITLAB.PUMA.UTILIZATION.MAX.WARN}' + value: '90' + description: 'The maximum percentage of Puma thread utilization for a trigger expression.' + - macro: '{$GITLAB.REDIS.FAIL.MAX.WARN}' + value: '2' + description: 'The maximum number of Redis client exceptions for a trigger expression.' + - macro: '{$GITLAB.UNICORN.QUEUE.MAX.WARN}' + value: '1' + description: 'The maximum number of Unicorn queued requests for a trigger expression.' + - macro: '{$GITLAB.UNICORN.UTILIZATION.MAX.WARN}' + value: '90' + description: 'The maximum percentage of Unicorn workers utilization for a trigger expression.' + - macro: '{$GITLAB.URL}' + value: 'http://localhost' + description: 'URL of a GitLab instance.' + valuemaps: + - uuid: 3b40391bb8b6472e9c3fd8e1f001fe04 + name: 'GitLab healthcheck' + mappings: + - value: '0' + newvalue: Failed + - value: '1' + newvalue: Ok + triggers: + - uuid: 4ac37991b2ca4edd9329fff1e752b05b + expression: 'min(/GitLab by HTTP/gitlab.ruby.file_descriptors.max,5m)/last(/GitLab by HTTP/gitlab.ruby.process_max_fds)*100>{$GITLAB.OPEN.FDS.MAX.WARN}' + name: 'GitLab: Current number of open files is too high' + event_name: 'GitLab: Current number of open files is too high (over {$GITLAB.OPEN.FDS.MAX.WARN}% for 5m)' + priority: WARNING + tags: + - tag: scope + value: capacity + graphs: + - uuid: f6c30e56b54e478ea2708e302197b83b + name: 'GitLab: Database: Connection pool' + graph_items: + - color: 199C0D + item: + host: 'GitLab by HTTP' + key: gitlab.database.connection_pool_busy + - sortorder: '1' + color: F63100 + item: + host: 'GitLab by HTTP' + key: gitlab.database.connection_pool_connections + - sortorder: '2' + color: 00611C + item: + host: 'GitLab by HTTP' + key: gitlab.database.connection_pool_dead + - sortorder: '3' + color: F7941D + item: + host: 'GitLab by HTTP' + key: gitlab.database.connection_pool_idle + - sortorder: '4' + color: FC6EA3 + item: + host: 'GitLab by HTTP' + key: gitlab.database.connection_pool_waiting + - sortorder: '5' + drawtype: BOLD_LINE + color: 6C59DC + item: + host: 'GitLab by HTTP' + key: gitlab.database.connection_pool_size + - uuid: ebffb6f63cf5400ab6a518612c5e857f + name: 'GitLab: HTTP requests rate' + graph_items: + - color: 199C0D + item: + host: 'GitLab by HTTP' + key: gitlab.http.requests.4xx.rate + - sortorder: '1' + color: F63100 + item: + host: 'GitLab by HTTP' + key: gitlab.http.requests.5xx.rate + - sortorder: '2' + color: 00611C + item: + host: 'GitLab by HTTP' + key: gitlab.http.requests.rate + - uuid: 14d4a4cc843e4c15bd72b680c18ffdd6 + name: 'GitLab: Redis requests rate' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'GitLab by HTTP' + key: gitlab.redis.client_requests.shared_state.rate + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'GitLab by HTTP' + key: gitlab.redis.client_requests.cache.rate + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'GitLab by HTTP' + key: gitlab.redis.client_requests.queues.rate + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'GitLab by HTTP' + key: gitlab.redis.client_exceptions.shared_state.rate + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'GitLab by HTTP' + key: gitlab.redis.client_exceptions.cache.rate + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'GitLab by HTTP' + key: gitlab.redis.client_exceptions.queues.rate + - uuid: 2eafabff82a240258c50a77655f77fd9 + name: 'GitLab: Ruby: File descriptors' + graph_items: + - color: 199C0D + item: + host: 'GitLab by HTTP' + key: gitlab.ruby.file_descriptors.avg + - sortorder: '1' + color: F63100 + item: + host: 'GitLab by HTTP' + key: gitlab.ruby.file_descriptors.max + - sortorder: '2' + color: 00611C + item: + host: 'GitLab by HTTP' + key: gitlab.ruby.file_descriptors.min + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'GitLab by HTTP' + key: gitlab.ruby.process_max_fds + - uuid: 1c6b8a24e76f4b7390e8e8742afbedec + name: 'GitLab: Ruby: RSS memory' + graph_items: + - color: 199C0D + item: + host: 'GitLab by HTTP' + key: gitlab.ruby.process_resident_memory_bytes.avg + - sortorder: '1' + color: F63100 + item: + host: 'GitLab by HTTP' + key: gitlab.ruby.process_resident_memory_bytes.min + - sortorder: '2' + color: 00611C + item: + host: 'GitLab by HTTP' + key: gitlab.ruby.process_resident_memory_bytes.max diff --git a/GridGain_by_JMX.yaml b/GridGain_by_JMX.yaml new file mode 100644 index 0000000..5d7e9c4 --- /dev/null +++ b/GridGain_by_JMX.yaml @@ -0,0 +1,1840 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 47d87c39c121429b98a18f641aa443ea + template: 'GridGain by JMX' + name: 'GridGain by JMX' + description: | + The template to monitor GridGain In-Memory Computing Platform by Zabbix that work without any external scripts. + It works with both standalone and cluster instances. + The metrics are discoverable and collected by JMX. + Current JMX tree hierarchy contains classloader by default. Add the following jvm option `-DIGNITE_MBEAN_APPEND_CLASS_LOADER_ID=false`to will exclude one level with Classloader name. + You can set {$GRIDGAIN.USER} and {$GRIDGAIN.PASSWORD} macros in the template for using on the host level. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + discovery_rules: + - uuid: f8d8a6cd41da496ea6d61793e0ab0d00 + name: 'Data region metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=DataRegionMetrics,*"]' + delay: 10m + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXNAME}' + value: '{$GRIDGAIN.LLD.FILTER.DATA.REGION.MATCHES}' + formulaid: A + - macro: '{#JMXNAME}' + value: '{$GRIDGAIN.LLD.FILTER.DATA.REGION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: c09b0ea002db4c3d9104a7f51b9921cc + name: 'Data region {#JMXNAME}: Allocation, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",AllocationRate]' + value_type: FLOAT + units: '!pps' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Allocation rate (pages per second) averaged across rateTimeInternal.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + - uuid: 3425f6775e9e4a979d876becddec46d2 + name: 'Data region {#JMXNAME}: Checkpoint buffer size' + type: JMX + key: 'jmx["{#JMXOBJ}",CheckpointBufferSize]' + value_type: FLOAT + units: B + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Total size in bytes for checkpoint buffer.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + - uuid: 6e44ce63725a46b486175e34697776ee + name: 'Data region {#JMXNAME}: Dirty pages' + type: JMX + key: 'jmx["{#JMXOBJ}",DirtyPages]' + value_type: FLOAT + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Number of pages in memory not yet synchronized with persistent storage.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + - uuid: 5396db6809ca44c480f123e1e63430b4 + name: 'Data region {#JMXNAME}: Eviction, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",EvictionRate]' + value_type: FLOAT + units: '!pps' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Eviction rate (pages per second).' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + trigger_prototypes: + - uuid: 7e2fc41d632240b3869080d41ef5e639 + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",EvictionRate],5m)>0' + name: 'GridGain: Data region {#JMXNAME}: Node started to evict pages' + priority: INFO + description: 'You store more data than region can accommodate. Data started to move to disk it can make requests work slower. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 9f7d683cf3ca47c681eef43e4dd9a471 + name: 'Data region {#JMXNAME}: Size, max' + type: JMX + key: 'jmx["{#JMXOBJ}",MaxSize]' + value_type: FLOAT + units: B + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Maximum memory region size defined by its data region.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + - uuid: 16170e6c8007492984c367892a7393aa + name: 'Data region {#JMXNAME}: Offheap size' + type: JMX + key: 'jmx["{#JMXOBJ}",OffHeapSize]' + value_type: FLOAT + units: B + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Offheap size in bytes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + - uuid: 982c738bdd4f4802917d3f5d63cc489f + name: 'Data region {#JMXNAME}: Offheap used size' + type: JMX + key: 'jmx["{#JMXOBJ}",OffheapUsedSize]' + value_type: FLOAT + units: B + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Total used offheap size in bytes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + - uuid: 03c923d00e5a486faece1f37b3a2863d + name: 'Data region {#JMXNAME}: Pages fill factor' + type: JMX + key: 'jmx["{#JMXOBJ}",PagesFillFactor]' + value_type: FLOAT + units: '%' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The percentage of the used space.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + - uuid: 9094f5992c514be6abaee490b211774e + name: 'Data region {#JMXNAME}: Pages replace, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",PagesReplaceRate]' + value_type: FLOAT + units: '!pps' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Rate at which pages in memory are replaced with pages from persistent storage (pages per second).' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + trigger_prototypes: + - uuid: d2b012fdfe634526bb583d4ad18abe4d + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",PagesReplaceRate],5m)>0' + name: 'GridGain: Data region {#JMXNAME}: Pages replace rate more than 0' + priority: WARNING + description: 'There is more data than DataRegionMaxSize. Cluster started to replace pages in memory. Page replacement can slow down operations.' + tags: + - tag: scope + value: performance + - uuid: 390107f411e24581a61043000b42152f + name: 'Data region {#JMXNAME}: Allocated, bytes' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalAllocatedSize]' + value_type: FLOAT + units: B + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Total size of memory allocated in bytes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + - uuid: 8e0e7a96f0a6424b88829fab78cce2ba + name: 'Data region {#JMXNAME}: Used checkpoint buffer size' + type: JMX + key: 'jmx["{#JMXOBJ}",UsedCheckpointBufferSize]' + value_type: FLOAT + units: B + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Used checkpoint buffer size in bytes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: data_region + trigger_prototypes: + - uuid: 9a7d7c745faa4f1fa4ffd1ca8c1ac602 + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",UsedCheckpointBufferSize],5m)/last(/GridGain by JMX/jmx["{#JMXOBJ}",CheckpointBufferSize])*100>{$GRIDGAIN.CHECKPOINT.PUSED.MAX.HIGH}' + name: 'GridGain: Data region {#JMXNAME}: Checkpoint buffer utilization is too high' + event_name: 'GridGain: Data region {#JMXNAME}: Checkpoint buffer utilization is too high (over {$GRIDGAIN.CHECKPOINT.PUSED.MAX.HIGH} in 5m)' + priority: HIGH + description: 'Checkpoint buffer utilization is high. Threads will be throttled to avoid buffer overflow. It can be caused by high disk utilization.' + tags: + - tag: scope + value: performance + - uuid: 02ce52a2067147238969a4fd24f85bdc + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",UsedCheckpointBufferSize],5m)/last(/GridGain by JMX/jmx["{#JMXOBJ}",CheckpointBufferSize])*100>{$GRIDGAIN.CHECKPOINT.PUSED.MAX.WARN}' + name: 'GridGain: Data region {#JMXNAME}: Checkpoint buffer utilization is too high' + event_name: 'GridGain: Data region {#JMXNAME}: Checkpoint buffer utilization is too high (over {$GRIDGAIN.CHECKPOINT.PUSED.MAX.WARN} in 5m)' + priority: WARNING + description: 'Checkpoint buffer utilization is high. Threads will be throttled to avoid buffer overflow. It can be caused by high disk utilization.' + dependencies: + - name: 'GridGain: Data region {#JMXNAME}: Checkpoint buffer utilization is too high' + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",UsedCheckpointBufferSize],5m)/last(/GridGain by JMX/jmx["{#JMXOBJ}",CheckpointBufferSize])*100>{$GRIDGAIN.CHECKPOINT.PUSED.MAX.HIGH}' + tags: + - tag: scope + value: performance + - uuid: 92c2772aa8d7425e8bee5d760ba5b607 + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",OffheapUsedSize],5m)/last(/GridGain by JMX/jmx["{#JMXOBJ}",OffHeapSize])*100>{$GRIDGAIN.DATA.REGION.PUSED.MAX.HIGH}' + name: 'GridGain: Data region {#JMXNAME}: Data region utilization is too high' + event_name: 'GridGain: Data region {#JMXNAME}: Data region utilization is too high (over {$GRIDGAIN.DATA.REGION.PUSED.MAX.HIGH} in 5m)' + priority: HIGH + description: 'Data region utilization is high. Increase data region size or delete any data.' + tags: + - tag: scope + value: performance + - uuid: 3694e6d813b04b51a77c842de617503c + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",OffheapUsedSize],5m)/last(/GridGain by JMX/jmx["{#JMXOBJ}",OffHeapSize])*100>{$GRIDGAIN.DATA.REGION.PUSED.MAX.WARN}' + name: 'GridGain: Data region {#JMXNAME}: Data region utilization is too high' + event_name: 'GridGain: Data region {#JMXNAME}: Data region utilization is too high (over {$GRIDGAIN.DATA.REGION.PUSED.MAX.WARN} in 5m)' + priority: WARNING + description: 'Data region utilization is high. Increase data region size or delete any data.' + dependencies: + - name: 'GridGain: Data region {#JMXNAME}: Data region utilization is too high' + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",OffheapUsedSize],5m)/last(/GridGain by JMX/jmx["{#JMXOBJ}",OffHeapSize])*100>{$GRIDGAIN.DATA.REGION.PUSED.MAX.HIGH}' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: f9410067b582451aa0b2675391504a65 + name: 'Data region {#JMXNAME}: Checkpoint buffer utilization' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CheckpointBufferSize]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",UsedCheckpointBufferSize]' + - uuid: 6f2ffd3ba45c4803864d049e7bfbbf18 + name: 'Data region {#JMXNAME}: DataRegion utilization' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",OffHeapSize]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",OffheapUsedSize]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: e7ad3e966ed94b91a88d28b785862b2f + name: 'Local node metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=Kernal,name=ClusterLocalNodeMetricsMXBeanImpl,*"]' + delay: 30m + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + item_prototypes: + - uuid: f3c7461902934de8a220513a33ad8771 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Jobs active, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentActiveJobs]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Number of currently active jobs concurrently executing on the node.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: job + - tag: component + value: node + - uuid: c254bc19bccb44de821c51b0882b78b4 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Jobs cancelled, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentCancelledJobs]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Number of cancelled jobs that are still running.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: job + - tag: component + value: node + - uuid: 63916bbee7604c3e9610f5989bc5bb7a + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: PME duration, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentPmeDuration]' + units: ms + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Current PME duration in milliseconds.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: node + trigger_prototypes: + - uuid: a2672171fa374810b95b72f6014f3998 + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",CurrentPmeDuration],5m) > {$GRIDGAIN.PME.DURATION.MAX.HIGH}' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: PME duration is too long' + event_name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: PME duration is too long (over {$GRIDGAIN.PME.DURATION.MAX.HIGH} for 5 min)' + priority: HIGH + description: 'PME duration is over {$GRIDGAIN.PME.DURATION.MAX.HIGH}ms. Looks like PME is hung.' + tags: + - tag: scope + value: performance + - uuid: f21e1cee28354fcd945d58955831641b + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",CurrentPmeDuration],5m) > {$GRIDGAIN.PME.DURATION.MAX.WARN}' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: PME duration is too long' + event_name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: PME duration is too long (over {$GRIDGAIN.PME.DURATION.MAX.WARN} for 5 min)' + priority: WARNING + description: 'PME duration is over {$GRIDGAIN.PME.DURATION.MAX.WARN}ms.' + dependencies: + - name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: PME duration is too long' + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",CurrentPmeDuration],5m) > {$GRIDGAIN.PME.DURATION.MAX.HIGH}' + tags: + - tag: scope + value: performance + - uuid: 790e8c300f7c4c82b640fb6025bb9eef + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Jobs rejected, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentRejectedJobs]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Number of jobs rejected after more recent collision resolution operation.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: job + - tag: component + value: node + - uuid: a5c1ece74c914620b9ce70c00c7d5377 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Threads count, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentThreadCount]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Current number of live threads.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: node + - tag: component + value: threads + trigger_prototypes: + - uuid: 124c9738a384481fb39f5e8078cca0e4 + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",CurrentThreadCount],15m) > {$GRIDGAIN.THREADS.COUNT.MAX.WARN}' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Number of running threads is too high' + event_name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Number of running threads is too high (over {$GRIDGAIN.THREADS.COUNT.MAX.WARN} for 15 min)' + priority: WARNING + description: 'Number of running threads is over {$GRIDGAIN.THREADS.COUNT.MAX.WARN}.' + dependencies: + - name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: PME duration is too long' + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",CurrentPmeDuration],5m) > {$GRIDGAIN.PME.DURATION.MAX.HIGH}' + tags: + - tag: scope + value: performance + - uuid: df386b29e8f74ec9a8f1825cb3094c0e + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Jobs waiting, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentWaitingJobs]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Number of queued jobs currently waiting to be executed.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: job + - tag: component + value: node + trigger_prototypes: + - uuid: 71d259fbdcd74888a4bedc646fc4bc54 + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",CurrentWaitingJobs],15m) > {$GRIDGAIN.JOBS.QUEUE.MAX.WARN}' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Number of queued jobs is too high' + event_name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Number of queued jobs is too high (over {$GRIDGAIN.JOBS.QUEUE.MAX.WARN} for 15 min)' + priority: WARNING + description: 'Number of queued jobs is over {$GRIDGAIN.JOBS.QUEUE.MAX.WARN}.' + tags: + - tag: scope + value: performance + - uuid: ec0c25c202ff4b1ea47422b51c24d3b4 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Heap memory used' + type: JMX + key: 'jmx["{#JMXOBJ}",HeapMemoryUsed]' + units: B + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Current heap size that is used for object allocation.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: memory + - tag: component + value: node + - uuid: a698da07a1794c479db9948a5ffb4123 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Jobs cancelled, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalCancelledJobs]' + value_type: FLOAT + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Total number of jobs cancelled by the node per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: job + - tag: component + value: node + - uuid: 5a60a71ecd2d40af8ca2ca81712c287e + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Jobs executed, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalExecutedJobs]' + value_type: FLOAT + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Total number of jobs handled by the node per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: job + - tag: component + value: node + - uuid: 7673741944094af9a6bc05bd630fd055 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Jobs rejects, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalRejectedJobs]' + value_type: FLOAT + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Total number of jobs this node rejects during collision resolution operations since node startup per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: job + - tag: component + value: node + graph_prototypes: + - uuid: ca84e5c7fc76473392a30a3073e9cb25 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Jobs current state' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CurrentActiveJobs]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CurrentWaitingJobs]' + - sortorder: '2' + color: 00611C + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CurrentRejectedJobs]' + - sortorder: '3' + color: F7941D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CurrentCancelledJobs]' + - uuid: 93e01a53b9054a83a6461e3526f63ee3 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Jobs rate' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",TotalCancelledJobs]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",TotalRejectedJobs]' + - sortorder: '2' + color: 00611C + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",TotalExecutedJobs]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: 5b7b9e010a274bb5a52784143dd57628 + name: 'Cluster metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=Kernal,name=ClusterMetricsMXBeanImpl,*"]' + delay: 30m + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + item_prototypes: + - uuid: a7eb47fd5db24c198774beacf52fa965 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Nodes, Active baseline' + type: JMX + key: 'jmx["{#JMXOBJ}",ActiveBaselineNodes]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of nodes that are currently active in the baseline topology.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: node + - uuid: 16ca4ca8efa04874902a619bce1f0071 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Nodes, Baseline' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalBaselineNodes]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Total baseline nodes that are registered in the baseline topology.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: node + - uuid: cf66620eeb6b4c9d88c2bd69ed05685a + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Nodes, Client' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalClientNodes]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of client nodes in the cluster.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: node + - uuid: d74b4324fb5a446a92e6fcf89162eff5 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Nodes, total' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalNodes]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Total number of nodes.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: node + - uuid: b64a4ce1266b4806a554967d2fd24fa5 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Nodes, Server' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalServerNodes]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of server nodes in the cluster.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: node + trigger_prototypes: + - uuid: bf1fbe1ea3754da59bd8a510fbcc6f54 + expression: 'change(/GridGain by JMX/jmx["{#JMXOBJ}",TotalServerNodes])>0' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Server node added to the topology' + priority: INFO + description: 'One or more server node added to the topology. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - uuid: db4cd7173ead4e878b79d55067d81300 + expression: 'change(/GridGain by JMX/jmx["{#JMXOBJ}",TotalServerNodes])<0' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Server node left the topology' + priority: WARNING + description: 'One or more server node left the topology. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + trigger_prototypes: + - uuid: ea93cb34b6434f2e94095c28087fc18e + expression: 'last(/GridGain by JMX/jmx["{#JMXOBJ}",TotalServerNodes])>last(/GridGain by JMX/jmx["{#JMXOBJ}",TotalBaselineNodes])' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: There are nodes is not in topology' + priority: INFO + description: 'One or more server node left the topology. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: 3b81fbcbef204717be1918d3df919174 + name: 'GridGain kernal metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=Kernal,name=IgniteKernal,*"]' + delay: 30m + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + item_prototypes: + - uuid: cbe7305a44754576a8084d606710765f + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Version' + type: JMX + key: 'jmx["{#JMXOBJ}",FullVersion]' + value_type: CHAR + trends: '0' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Version of GridGain instance.' + preprocessing: + - type: REGEX + parameters: + - '(.*)-\d+' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: kernal + trigger_prototypes: + - uuid: 4cc201fb67664fc49d36bbec95b574ce + expression: 'last(/GridGain by JMX/jmx["{#JMXOBJ}",FullVersion],#1)<>last(/GridGain by JMX/jmx["{#JMXOBJ}",FullVersion],#2) and length(last(/GridGain by JMX/jmx["{#JMXOBJ}",FullVersion]))>0' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Version has changed' + event_name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The GridGain [{#JMXIGNITEINSTANCENAME}] version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 18f518b41e804f7cb3eeaaf92fef40e7 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Local node ID' + type: JMX + key: 'jmx["{#JMXOBJ}",LocalNodeId]' + value_type: CHAR + trends: '0' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Unique identifier for this node within grid.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: kernal + - uuid: 4b3c99a88fbf4485a3dbf5efa2723ca7 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Uptime' + type: JMX + key: 'jmx["{#JMXOBJ}",UpTime]' + units: uptime + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Uptime of GridGain instance.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: kernal + trigger_prototypes: + - uuid: d7b2be3a707f49d2897e7cce356cafa5 + expression: 'nodata(/GridGain by JMX/jmx["{#JMXOBJ}",UpTime],10m)=1' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Failed to fetch info data' + event_name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Failed to fetch info data (or no data for 10m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 23cd9dbb498f4bb095ec8be1693fccf0 + expression: 'last(/GridGain by JMX/jmx["{#JMXOBJ}",UpTime])<10m' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Instance has been restarted' + event_name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Instance has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: 6265d30cd7494809bc94f929968d3c6f + name: 'TCP Communication SPI metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=SPIs,name=TcpCommunicationSpi,*"]' + delay: 30m + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + item_prototypes: + - uuid: 904f0c843b1b434986043a63cb0890e7 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Communication outbound messages queue' + type: JMX + key: 'jmx["{#JMXOBJ}",OutboundMessagesQueueSize]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Outbound messages queue size.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: messages + - tag: component + value: network + - uuid: 2a01c4dc23b34df6801be0901bf10ab0 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Communication messages received, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",ReceivedMessagesCount]' + value_type: FLOAT + units: '!msg/s' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of messages received per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: messages + - tag: component + value: network + - uuid: 613114b7abb94bd5bbabc2d1d19975b7 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Communication reconnect rate' + type: JMX + key: 'jmx["{#JMXOBJ}",ReconnectCount,maxNumbers]' + value_type: FLOAT + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Gets maximum number of reconnect attempts used when establishing connection with remote nodes per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: network + - uuid: e015293ddbb540e4b6b59ba6e28ed91e + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Communication messages sent, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",SentMessagesCount]' + value_type: FLOAT + units: '!msg/s' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of messages sent per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: messages + - tag: component + value: network + graph_prototypes: + - uuid: ca090aa6d7e449e880b43cdbbd80d991 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Communication messages rate' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",SentMessagesCount]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",ReceivedMessagesCount]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: 5fb38d8148d746d6ae19d4f8c5a33ce8 + name: 'TCP discovery SPI' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=SPIs,name=TcpDiscoverySpi,*"]' + delay: 30m + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + item_prototypes: + - uuid: 3e1086638d954e939907fd2009408048 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Coordinator' + type: JMX + key: 'jmx["{#JMXOBJ}",Coordinator]' + value_type: CHAR + trends: '0' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Current coordinator UUID.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 40641263a3d840e89e46ba6f57076a0a + expression: 'last(/GridGain by JMX/jmx["{#JMXOBJ}",Coordinator],#1)<>last(/GridGain by JMX/jmx["{#JMXOBJ}",Coordinator],#2) and length(last(/GridGain by JMX/jmx["{#JMXOBJ}",Coordinator]))>0' + name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Coordinator has changed' + event_name: 'GridGain: GridGain [{#JMXIGNITEINSTANCENAME}]: Version has changed (new version: {ITEM.VALUE})' + priority: WARNING + description: 'The GridGain [{#JMXIGNITEINSTANCENAME}] version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 29d85d09951346c1a7c30acc83f404fc + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Discovery message worker queue' + type: JMX + key: 'jmx["{#JMXOBJ}",MessageWorkerQueueSize]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Message worker queue current size.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: messages + - tag: component + value: network + - uuid: 0aed9a4269ff4718aa443d1b053fa31b + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Nodes failed' + type: JMX + key: 'jmx["{#JMXOBJ}",NodesFailed]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Nodes failed count.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: network + - tag: component + value: nodes + - uuid: 43ea840b621e4f2a8643ca38479eb73e + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Nodes joined' + type: JMX + key: 'jmx["{#JMXOBJ}",NodesJoined]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Nodes join count.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: network + - tag: component + value: nodes + - uuid: 0164664362e446209b4399081d807ca7 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Nodes left' + type: JMX + key: 'jmx["{#JMXOBJ}",NodesLeft]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Nodes left count.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: network + - tag: component + value: nodes + - uuid: e03329689c674ea997d55d11e1a0c2be + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Discovery reconnect, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",ReconnectCount]' + value_type: FLOAT + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Number of times node tries to (re)establish connection to another node per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: network + - tag: component + value: nodes + - uuid: e344575b799a4f69b79b45ef6590a649 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: TotalProcessedMessages' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalProcessedMessages]' + value_type: FLOAT + units: '!msg/s' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of messages received per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: messages + - tag: component + value: network + - uuid: adcf2c5981004c8da658122cc50a6518 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Discovery messages received, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalReceivedMessages]' + value_type: FLOAT + units: '!msg/s' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of messages processed per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: messages + - tag: component + value: network + graph_prototypes: + - uuid: a44983a855934d3ea5d2eaa1421df147 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Discovery messages rate' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",TotalProcessedMessages]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",TotalReceivedMessages]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: b0b570121f1646e5baf0b0ff5cc5de2b + name: 'Transaction metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=TransactionMetrics,name=TransactionMetricsMxBeanImpl,*"]' + delay: 30m + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + item_prototypes: + - uuid: 0b03ef7787684ab5abd99af4610adf59 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Locked keys' + type: JMX + key: 'jmx["{#JMXOBJ}",LockedKeysNumber]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of keys locked on the node.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: transactions + - uuid: 446cbb708d354b2a9282e973d562527f + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Transactions owner, current' + type: JMX + key: 'jmx["{#JMXOBJ}",OwnerTransactionsNumber]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of active transactions for which this node is the initiator.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: transactions + - uuid: 21971cbf540c48df93fde079ce917a26 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Transactions committed, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TransactionsCommittedNumber]' + value_type: FLOAT + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of transactions which were committed per second.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: transactions + - uuid: d8d3e05c6e7e4874b3149edb74774e6d + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Transactions holding lock, current' + type: JMX + key: 'jmx["{#JMXOBJ}",TransactionsHoldingLockNumber]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of active transactions holding at least one key lock.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: transactions + - uuid: 2d1def1d4f414ce992cf5a6ff1bc4204 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Transactions rolledback, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TransactionsRolledBackNumber]' + value_type: FLOAT + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of transactions which were rollback per second.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: transactions + graph_prototypes: + - uuid: 82d772972cec4454b95d69343040b2b5 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Transactions' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",OwnerTransactionsNumber]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",TransactionsHoldingLockNumber]' + - uuid: ad74079d5ef741918d25f059c1950839 + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Transactions rate' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",TransactionsRolledBackNumber]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",TransactionsCommittedNumber]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: 7e3825aba1ad47c194162122eb050612 + name: 'Cache groups' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=\"Cache groups\",*"]' + delay: 10m + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXNAME}' + value: '{$GRIDGAIN.LLD.FILTER.CACHE.MATCHES}' + formulaid: A + - macro: '{#JMXNAME}' + value: '{$GRIDGAIN.LLD.FILTER.CACHE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: d46bf088d33946a69a5b625566558994 + name: 'Cache group [{#JMXNAME}]: Backups' + type: JMX + key: 'jmx["{#JMXOBJ}",Backups]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Count of backups configured for cache group.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache_group + - uuid: a535d161527b4821b717f114aaeb8b0b + name: 'Cache group [{#JMXNAME}]: Caches' + type: JMX + key: 'jmx["{#JMXOBJ}",Caches]' + value_type: CHAR + trends: '0' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'List of caches.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache_group + trigger_prototypes: + - uuid: 94d82f9db4f449e491782e14f6973f9b + expression: 'last(/GridGain by JMX/jmx["{#JMXOBJ}",Caches],#1)<>last(/GridGain by JMX/jmx["{#JMXOBJ}",Caches],#2) and length(last(/GridGain by JMX/jmx["{#JMXOBJ}",Caches]))>0' + name: 'GridGain: Cache group [{#JMXNAME}]: List of caches has changed' + event_name: 'GridGain: Cache group [{#JMXNAME}]: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'List of caches has changed. Significant changes have occurred in the cluster. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0a09c18adfd5477098684c47927f967b + name: 'Cache group [{#JMXNAME}]: Local node partitions, moving' + type: JMX + key: 'jmx["{#JMXOBJ}",LocalNodeMovingPartitionsCount]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Count of partitions with state MOVING for this cache group located on this node.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache_group + trigger_prototypes: + - uuid: 84e1402b3ae64960ad997d2610137927 + expression: 'max(/GridGain by JMX/jmx["{#JMXOBJ}",LocalNodeMovingPartitionsCount],30m)>0' + name: 'GridGain: Cache group [{#JMXNAME}]: Rebalance in progress' + priority: INFO + description: 'Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c2a38de3743549e0850e678d1f91e2de + name: 'Cache group [{#JMXNAME}]: Local node partitions, owning' + type: JMX + key: 'jmx["{#JMXOBJ}",LocalNodeOwningPartitionsCount]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Count of partitions with state OWNING for this cache group located on this node.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache_group + - uuid: be9b2cbf210e4e27a5887d77f2dafaad + name: 'Cache group [{#JMXNAME}]: Local node entries, renting' + type: JMX + key: 'jmx["{#JMXOBJ}",LocalNodeRentingEntriesCount]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Count of entries remains to evict in RENTING partitions located on this node for this cache group.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache_group + - uuid: 582acb454ffa4b129f5786e814df234f + name: 'Cache group [{#JMXNAME}]: Local node partitions, renting' + type: JMX + key: 'jmx["{#JMXOBJ}",LocalNodeRentingPartitionsCount]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Count of partitions with state RENTING for this cache group located on this node.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache_group + - uuid: e026169754954bbe85afcef2534b4d0e + name: 'Cache group [{#JMXNAME}]: Partition copies, max' + type: JMX + key: 'jmx["{#JMXOBJ}",MaximumNumberOfPartitionCopies]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Maximum number of partition copies for all partitions of this cache group.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache_group + - uuid: b93a9ff86a2048bfbf8743b7a1c5ec06 + name: 'Cache group [{#JMXNAME}]: Partition copies, min' + type: JMX + key: 'jmx["{#JMXOBJ}",MinimumNumberOfPartitionCopies]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Minimum number of partition copies for all partitions of this cache group.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache_group + trigger_prototypes: + - uuid: 63c244c02ace4ac4a8d6f60e5c533890 + expression: 'max(/GridGain by JMX/jmx["{#JMXOBJ}",MinimumNumberOfPartitionCopies],30m)=0' + name: 'GridGain: Cache group [{#JMXNAME}]: There is no copy for partitions' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 8dac4ccaad0f4736b2065e2f1200e3ff + name: 'Cache group [{#JMXNAME}]: Partitions' + type: JMX + key: 'jmx["{#JMXOBJ}",Partitions]' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Count of partitions for cache group.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache_group + trigger_prototypes: + - uuid: 3ded54fcdad74c83b47543410a7d9b3c + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",Backups],5m)>=max(/GridGain by JMX/jmx["{#JMXOBJ}",MinimumNumberOfPartitionCopies],5m)' + name: 'GridGain: Cache group [{#JMXNAME}]: One or more backups are unavailable' + priority: WARNING + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: da32480debef4e2baec58a7cf1131357 + name: 'Cache group [{#JMXNAME}]: Partitions' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",LocalNodeMovingPartitionsCount]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",LocalNodeRentingPartitionsCount]' + - sortorder: '2' + color: 00611C + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",LocalNodeOwningPartitionsCount]' + - sortorder: '3' + color: F7941D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",LocalNodeRentingEntriesCount]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 3ca6cce698d247daae252430289e7b61 + name: 'Thread pool metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=\"Thread Pools\",*"]' + delay: 10m + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXNAME}' + value: '{$GRIDGAIN.LLD.FILTER.THREAD.POOL.MATCHES}' + formulaid: A + - macro: '{#JMXNAME}' + value: '{$GRIDGAIN.LLD.FILTER.THREAD.POOL.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 7d6ab6a7180c44859b933784fb565212 + name: 'Thread pool [{#JMXNAME}]: Pool size, core' + type: JMX + key: 'jmx["{#JMXOBJ}",CorePoolSize]' + units: '!msg' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The core number of threads.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread_pool + - uuid: 3ffebf40ed154a7eb7050e16d30f9f53 + name: 'Thread pool [{#JMXNAME}]: Pool size, max' + type: JMX + key: 'jmx["{#JMXOBJ}",MaximumPoolSize]' + units: '!msg' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The maximum allowed number of threads.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread_pool + - uuid: 1f7f5e0d19f6400fa8803eba2fb14f85 + name: 'Thread pool [{#JMXNAME}]: Pool size' + type: JMX + key: 'jmx["{#JMXOBJ}",PoolSize]' + units: '!msg' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Current number of threads in the pool.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread_pool + - uuid: c4a5e348590341b29af96b57bf92240b + name: 'Thread pool [{#JMXNAME}]: Queue size' + type: JMX + key: 'jmx["{#JMXOBJ}",QueueSize]' + units: '!msg' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Current size of the execution queue.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: thread_pool + trigger_prototypes: + - uuid: f2a7aa098ed245f48b455ed747ee42c3 + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",QueueSize],5m) > {$GRIDGAIN.THREAD.QUEUE.MAX.WARN:"{#JMXNAME}"}' + name: 'GridGain: Thread pool [{#JMXNAME}]: Too many messages in queue' + event_name: 'GridGain: Thread pool [{#JMXNAME}]: Too many messages in queue (over {$GRIDGAIN.THREAD.QUEUE.MAX.WARN:"{#JMXNAME}"} for 5 min)' + priority: AVERAGE + description: 'Number of messages in queue more than {$GRIDGAIN.THREAD.QUEUE.MAX.WARN:"{#JMXNAME}"}.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: d3db21cd80664dc4b6847456e15b2b3e + name: 'Thread pool [{#JMXNAME}]: Thread pool size' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",PoolSize]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",MaximumPoolSize]' + - sortorder: '2' + color: 00611C + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CorePoolSize]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 3f3382c27cc449bd86822c245b798056 + name: 'Cache metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:name=\"org.apache.gridgain.internal.processors.cache.CacheLocalMetricsMXBeanImpl\",*"]' + delay: 10m + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXGROUP}' + value: '{$GRIDGAIN.LLD.FILTER.CACHE.MATCHES}' + formulaid: A + - macro: '{#JMXGROUP}' + value: '{$GRIDGAIN.LLD.FILTER.CACHE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 6fb5dee0c7434b279eb21da7d54edacc + name: 'Cache group [{#JMXGROUP}]: Cache gets, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheGets]' + value_type: FLOAT + units: ops + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of gets to the cache per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: 632a331fe886428fa7b2c8845a02b57a + name: 'Cache group [{#JMXGROUP}]: Cache hits, pct' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheHitPercentage]' + value_type: FLOAT + units: '%' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Percentage of successful hits.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: 843b31df2e4d430082731b44e2653f13 + name: 'Cache group [{#JMXGROUP}]: Cache misses, pct' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheMissPercentage]' + value_type: FLOAT + units: '%' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'Percentage of accesses that failed to find anything.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: 96616d8c2b9c46b0bbd7350679476c36 + name: 'Cache group [{#JMXGROUP}]: Cache puts, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CachePuts]' + value_type: FLOAT + units: ops + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of puts to the cache per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: 308b3e27d35b439bbb2c1cf96f6d92fe + name: 'Cache group [{#JMXGROUP}]: Cache removals, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheRemovals]' + value_type: FLOAT + units: ops + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of removals from the cache per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: e4886d5b699e432c8e6bb47b23b9c314 + name: 'Cache group [{#JMXGROUP}]: Cache size' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheSize]' + units: '!keys' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of non-null values in the cache as a long value.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: 304ff6af92c0473aab8216d16509d28f + name: 'Cache group [{#JMXGROUP}]: Cache transaction commits, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheTxCommits]' + value_type: FLOAT + units: '!tps' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of transaction commits per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: bd5b517d5a384c70a070658bc41734bf + name: 'Cache group [{#JMXGROUP}]: Cache transaction rollbacks, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheTxRollbacks]' + value_type: FLOAT + units: '!tps' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of transaction rollback per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + - uuid: a0d3a73939564dc39267ccdca06d524b + name: 'Cache group [{#JMXGROUP}]: Cache heap entries' + type: JMX + key: 'jmx["{#JMXOBJ}",HeapEntriesCount]' + units: '!keys' + username: '{$GRIDGAIN.USER}' + password: '{$GRIDGAIN.PASSWORD}' + description: 'The number of entries in heap memory.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: cache + trigger_prototypes: + - uuid: cfe03901890a4377ad8d5dcc7be3e0c5 + expression: 'last(/GridGain by JMX/jmx["{#JMXOBJ}",CacheSize])=last(/GridGain by JMX/jmx["{#JMXOBJ}",HeapEntriesCount])' + name: 'GridGain: Cache group [{#JMXGROUP}]: All entries are in heap' + priority: INFO + description: 'All entries are in heap. Possibly you use eager queries it may cause out of memory exceptions for big caches. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1c990b38154340a3aab678ac1365cf7e + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",CacheTxRollbacks],5m) > max(/GridGain by JMX/jmx["{#JMXOBJ}",CacheTxCommits],5m)' + name: 'GridGain: Cache group [{#JMXGROUP}]: Success transactions less than rollbacks for 5m' + priority: WARNING + dependencies: + - name: 'GridGain: Cache group [{#JMXGROUP}]: There are no success transactions for cache for 5m' + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",CacheTxRollbacks],5m)>0 and max(/GridGain by JMX/jmx["{#JMXOBJ}",CacheTxCommits],5m)=0' + tags: + - tag: scope + value: performance + - uuid: 2caa406da4cf4d089705e5506fd589f1 + expression: 'min(/GridGain by JMX/jmx["{#JMXOBJ}",CacheTxRollbacks],5m)>0 and max(/GridGain by JMX/jmx["{#JMXOBJ}",CacheTxCommits],5m)=0' + name: 'GridGain: Cache group [{#JMXGROUP}]: There are no success transactions for cache for 5m' + priority: AVERAGE + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 8c453a6631b34c96b39375aff2e51ac3 + name: 'Cache group [{#JMXGROUP}]: Cache hits' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CacheHitPercentage]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CacheMissPercentage]' + - uuid: de80d7645ec347c3a547e9d8d41edc3a + name: 'Cache group [{#JMXGROUP}]: Cache ops' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CacheGets]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CachePuts]' + - sortorder: '2' + color: 00611C + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CacheRemovals]' + - uuid: 20b825d52d8241a79405768faf0e202d + name: 'Cache group [{#JMXGROUP}]: Cache transactions' + graph_items: + - color: 199C0D + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CacheTxCommits]' + - sortorder: '1' + color: F63100 + item: + host: 'GridGain by JMX' + key: 'jmx["{#JMXOBJ}",CacheTxRollbacks]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: software + - tag: target + value: gridgain + macros: + - macro: '{$GRIDGAIN.CHECKPOINT.PUSED.MAX.HIGH}' + value: '80' + description: 'The maximum percent of checkpoint buffer utilization for high trigger expression.' + - macro: '{$GRIDGAIN.CHECKPOINT.PUSED.MAX.WARN}' + value: '66' + description: 'The maximum percent of checkpoint buffer utilization for warning trigger expression.' + - macro: '{$GRIDGAIN.DATA.REGION.PUSED.MAX.HIGH}' + value: '90' + description: 'The maximum percent of data region utilization for high trigger expression.' + - macro: '{$GRIDGAIN.DATA.REGION.PUSED.MAX.WARN}' + value: '80' + description: 'The maximum percent of data region utilization for warning trigger expression.' + - macro: '{$GRIDGAIN.JOBS.QUEUE.MAX.WARN}' + value: '10' + description: 'The maximum number of queued jobs for trigger expression.' + - macro: '{$GRIDGAIN.LLD.FILTER.CACHE.MATCHES}' + value: '.*' + description: 'Filter of discoverable cache groups.' + - macro: '{$GRIDGAIN.LLD.FILTER.CACHE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered cache groups.' + - macro: '{$GRIDGAIN.LLD.FILTER.DATA.REGION.MATCHES}' + value: '.*' + description: 'Filter of discoverable data regions.' + - macro: '{$GRIDGAIN.LLD.FILTER.DATA.REGION.NOT_MATCHES}' + value: ^(sysMemPlc|TxLog)$ + description: 'Filter to exclude discovered data regions.' + - macro: '{$GRIDGAIN.LLD.FILTER.THREAD.POOL.MATCHES}' + value: '.*' + description: 'Filter of discoverable thread pools.' + - macro: '{$GRIDGAIN.LLD.FILTER.THREAD.POOL.NOT_MATCHES}' + value: ^(GridCallbackExecutor|GridRebalanceStripedExecutor|GridDataStreamExecutor|StripedExecutor)$ + description: 'Filter to exclude discovered thread pools.' + - macro: '{$GRIDGAIN.PASSWORD}' + value: '' + - macro: '{$GRIDGAIN.PME.DURATION.MAX.HIGH}' + value: '60000' + description: 'The maximum PME duration in ms for high trigger expression.' + - macro: '{$GRIDGAIN.PME.DURATION.MAX.WARN}' + value: '10000' + description: 'The maximum PME duration in ms for warning trigger expression.' + - macro: '{$GRIDGAIN.THREAD.QUEUE.MAX.WARN}' + value: '1000' + description: 'Threshold for thread pool queue size. Can be used with thread pool name as context.' + - macro: '{$GRIDGAIN.THREADS.COUNT.MAX.WARN}' + value: '1000' + description: 'The maximum number of running threads for trigger expression.' + - macro: '{$GRIDGAIN.USER}' + value: zabbix + dashboards: + - uuid: 407c505abde6457b88154f6d566190d8 + name: 'GridGain: Overview' + pages: + - name: General + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'GridGain by JMX' + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Transactions rate' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'GridGain by JMX' + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Discovery messages rate' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'GridGain by JMX' + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Communication messages rate' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'GridGain by JMX' + name: 'GridGain [{#JMXIGNITEINSTANCENAME}]: Jobs rate' + - type: STRING + name: reference + value: AAAAD diff --git a/HAProxy_by_HTTP.yaml b/HAProxy_by_HTTP.yaml new file mode 100644 index 0000000..4210336 --- /dev/null +++ b/HAProxy_by_HTTP.yaml @@ -0,0 +1,2257 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 948d046cb2894e5c8d07767a518cc1a9 + template: 'HAProxy by HTTP' + name: 'HAProxy by HTTP' + description: | + The template to monitor HAProxy by Zabbix that works without any external scripts. + Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. + + The template collects metrics by polling the HAProxy stats page with HTTP agent. + + Setup: + + 1. Set up the HAProxy stats page: + https://www.haproxy.com/blog/exploring-the-haproxy-stats-page/ + + If you want to use authentication, set the username and password in the 'stats auth' option of the configuration file. + + The example configuration of HAProxy: + + frontend stats + bind *:8404 + stats enable + stats uri /stats + stats refresh 10s + #stats auth Username:Password # Authentication credentials + + 2. Set the hostname or IP address of the HAProxy stats host or container in the '{$HAPROXY.STATS.HOST}' macro. You can also change the status page port in the '{$HAPROXY.STATS.PORT}' macro, the status page scheme in the '{$HAPROXY.STATS.SCHEME}' macro and the status page path in the '{$HAPROXY.STATS.PATH}' macro if necessary. + + 3. If you have enabled authentication in the HAProxy configuration file in step 1, set the username and password in the `{$HAPROXY.USERNAME}` and `{$HAPROXY.PASSWORD}` macros. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/393527-discussion-thread-for-official-zabbix-template-haproxy + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 93a0ea1e5b0145b5bd2dcdb698d367c2 + name: 'Get stats' + type: HTTP_AGENT + key: haproxy.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$HAPROXY.USERNAME}' + password: '{$HAPROXY.PASSWORD}' + description: 'HAProxy Statistics Report in CSV format' + preprocessing: + - type: REGEX + parameters: + - '# ([\s\S]*)\n' + - \1 + - type: CSV_TO_JSON + parameters: + - '' + - '' + - '1' + url: '{$HAPROXY.STATS.SCHEME}://{$HAPROXY.STATS.HOST}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH};csv' + tags: + - tag: component + value: raw + - uuid: 6af51d085a2f41f983bc3b20c6f4cc22 + name: 'Get nodes' + type: DEPENDENT + key: haproxy.get.nodes + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Array for LLD rules.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(JSON.parse(value),[''mode'',''pxname'',''svname''])' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: haproxy.get + tags: + - tag: component + value: raw + - uuid: 123c03c715494faea6b1d4f8b8fa564d + name: 'Get stats page' + type: HTTP_AGENT + key: haproxy.get_html + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$HAPROXY.USERNAME}' + password: '{$HAPROXY.PASSWORD}' + description: 'HAProxy Statistics Report HTML' + url: '{$HAPROXY.STATS.SCHEME}://{$HAPROXY.STATS.HOST}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH}' + tags: + - tag: component + value: raw + - uuid: 06a33ebaed3148889c19eba2de859d70 + name: Uptime + type: DEPENDENT + key: haproxy.uptime + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var t = value.match(/(\d+)d (\d+)h(\d+)m(\d+)s/); + return t[1] * 86400 + t[2] * 3600 + t[3] * 60 + t[4] * 1; + } + catch (error) { + throw "HAProxy uptime is not found : " + error; + } + master_item: + key: haproxy.get_html + tags: + - tag: component + value: application + triggers: + - uuid: ff606f3c571340389562fabc9e814463 + expression: 'last(/HAProxy by HTTP/haproxy.uptime)<10m' + name: 'HAProxy: Service has been restarted' + event_name: 'HAProxy: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a2cd747feaaf4c278972ac7adbd9015a + name: Version + type: DEPENDENT + key: haproxy.version + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: REGEX + parameters: + - 'HAProxy version ([^,]*),' + - \1 + error_handler: CUSTOM_ERROR + error_handler_params: 'HAProxy version is not found' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: haproxy.get_html + tags: + - tag: component + value: application + triggers: + - uuid: c4b8346311a34cd19ebc8fbab53737fe + expression: 'last(/HAProxy by HTTP/haproxy.version,#1)<>last(/HAProxy by HTTP/haproxy.version,#2) and length(last(/HAProxy by HTTP/haproxy.version))>0' + name: 'HAProxy: Version has changed' + event_name: 'HAProxy: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'HAProxy version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6f9c22a840764181be9cf98609e7f691 + name: 'Service response time' + type: SIMPLE + key: 'net.tcp.service.perf["{$HAPROXY.STATS.SCHEME}","{$HAPROXY.STATS.HOST}","{$HAPROXY.STATS.PORT}"]' + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1fed5fffc6414e0babe362c0ad742e43 + expression: 'min(/HAProxy by HTTP/net.tcp.service.perf["{$HAPROXY.STATS.SCHEME}","{$HAPROXY.STATS.HOST}","{$HAPROXY.STATS.PORT}"],5m)>{$HAPROXY.RESPONSE_TIME.MAX.WARN}' + name: 'HAProxy: Service response time is too high' + event_name: 'HAProxy: Service response time is too high (over {$HAPROXY.RESPONSE_TIME.MAX.WARN} for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'HAProxy: Service is down' + expression: 'last(/HAProxy by HTTP/net.tcp.service["{$HAPROXY.STATS.SCHEME}","{$HAPROXY.STATS.HOST}","{$HAPROXY.STATS.PORT}"])=0' + tags: + - tag: scope + value: performance + - uuid: 68cb52357d7443d79373df3890ed175f + name: 'Service status' + type: SIMPLE + key: 'net.tcp.service["{$HAPROXY.STATS.SCHEME}","{$HAPROXY.STATS.HOST}","{$HAPROXY.STATS.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b346943ac4d04a96bcef42f3c43fc555 + expression: 'last(/HAProxy by HTTP/net.tcp.service["{$HAPROXY.STATS.SCHEME}","{$HAPROXY.STATS.HOST}","{$HAPROXY.STATS.PORT}"])=0' + name: 'HAProxy: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 7b4ab1338cdf4e499c1fdea4c886ae9a + name: 'Backend discovery' + type: DEPENDENT + key: haproxy.backend.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#MODE}' + value: http|tcp + formulaid: A + - macro: '{#SVNAME}' + value: BACKEND + formulaid: B + description: 'Discovery backends' + item_prototypes: + - uuid: d5d9c5c0d84d41d597c85a3562e9b4fa + name: 'Backend {#PXNAME}: Number of active servers' + type: DEPENDENT + key: 'haproxy.backend.act[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Number of active servers.' + preprocessing: + - type: JSONPATH + parameters: + - $.act + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: servers + - uuid: 08debce7e9084094b38fd1100e03c553 + name: 'Backend {#PXNAME}: Number of backup servers' + type: DEPENDENT + key: 'haproxy.backend.bck[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Number of backup servers.' + preprocessing: + - type: JSONPATH + parameters: + - $.bck + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: servers + - uuid: 8a53b50c1ce441c18fe6e6d5e0ad48d6 + name: 'Backend {#PXNAME}: Incoming traffic' + type: DEPENDENT + key: 'haproxy.backend.bin.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits received by the backend' + preprocessing: + - type: JSONPATH + parameters: + - $.bin + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: network + - uuid: 1c24125e97014d4ba6a8155af5744d38 + name: 'Backend {#PXNAME}: Outgoing traffic' + type: DEPENDENT + key: 'haproxy.backend.bout.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits sent by the backend' + preprocessing: + - type: JSONPATH + parameters: + - $.bout + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: network + - uuid: 59eeafe66fe34334a81d736f62b88ec0 + name: 'Backend {#PXNAME}: Responses denied per second' + type: DEPENDENT + key: 'haproxy.backend.dresp.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Responses denied due to security concerns (ACL-restricted).' + preprocessing: + - type: JSONPATH + parameters: + - $.dresp + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: e885cb2b53a941cd932211c4ccf334f6 + name: 'Backend {#PXNAME}: Errors connection per second' + type: DEPENDENT + key: 'haproxy.backend.econ.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of requests that encountered an error attempting to connect to a backend server.' + preprocessing: + - type: JSONPATH + parameters: + - $.econ + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: connections + - uuid: c42f04d1a00c4d4fa96705746cb32631 + name: 'Backend {#PXNAME}: Response errors per second' + type: DEPENDENT + key: 'haproxy.backend.eresp.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of requests whose responses yielded an error' + preprocessing: + - type: JSONPATH + parameters: + - $.eresp + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + trigger_prototypes: + - uuid: efe5a794bd47419398aa3aa35a177f08 + expression: 'min(/HAProxy by HTTP/haproxy.backend.eresp.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_ERESP.MAX.WARN}' + name: 'HAProxy: backend {#PXNAME}: Number of responses with error is high' + event_name: 'HAProxy: backend {#PXNAME}: Number of responses with error is more than {$HAPROXY.BACK_ERESP.MAX.WARN} for 5m' + priority: WARNING + description: 'Number of requests on backend, whose responses yielded an error, is more than {$HAPROXY.BACK_ERESP.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: 55edb3b8afaa4ee2961d1fead3653dbd + name: 'Backend {#PXNAME}: Number of responses with codes 1xx per second' + type: DEPENDENT + key: 'haproxy.backend.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of informational HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_1xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: a4e5dd0c25c3471e82e28b88b6b42e39 + name: 'Backend {#PXNAME}: Number of responses with codes 2xx per second' + type: DEPENDENT + key: 'haproxy.backend.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of successful HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_2xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: 7e32a61240004b99bf19caf29c5d1409 + name: 'Backend {#PXNAME}: Number of responses with codes 3xx per second' + type: DEPENDENT + key: 'haproxy.backend.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP redirections per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_3xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: 9519222f512e46d8ae1a7ca3a47f3970 + name: 'Backend {#PXNAME}: Number of responses with codes 4xx per second' + type: DEPENDENT + key: 'haproxy.backend.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP client errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_4xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: fdaa48cf19164fed8c3f00cc42c3bab8 + name: 'Backend {#PXNAME}: Number of responses with codes 5xx per second' + type: DEPENDENT + key: 'haproxy.backend.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP server errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_5xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: 7985131c621d49419dfe5bcfecb675f2 + name: 'Backend {#PXNAME}: Unassigned requests' + type: DEPENDENT + key: 'haproxy.backend.qcur[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Current number of requests unassigned in queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.qcur + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: requests + trigger_prototypes: + - uuid: be428614e0874726b63d79150813542d + expression: 'min(/HAProxy by HTTP/haproxy.backend.qcur[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_QCUR.MAX.WARN}' + name: 'HAProxy: backend {#PXNAME}: Current number of requests unassigned in queue is high' + event_name: 'HAProxy: backend {#PXNAME}: Current number of requests unassigned in queue is more than {$HAPROXY.BACK_QCUR.MAX.WARN} for 5m' + priority: WARNING + description: 'Current number of requests on backend unassigned in queue is more than {$HAPROXY.BACK_QCUR.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: 1592ee4ff7b2448a9e044a0ad7904693 + name: 'Backend {#PXNAME}: Time in queue' + type: DEPENDENT + key: 'haproxy.backend.qtime[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average time spent in queue (in ms) for the last 1,024 requests' + preprocessing: + - type: JSONPATH + parameters: + - $.qtime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: requests + trigger_prototypes: + - uuid: fa8211069df846a1b2ee8afcdd52f4a0 + expression: 'min(/HAProxy by HTTP/haproxy.backend.qtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_QTIME.MAX.WARN}' + name: 'HAProxy: backend {#PXNAME}: Average time spent in queue is high' + event_name: 'HAProxy: backend {#PXNAME}: Average time spent in queue is more than {$HAPROXY.BACK_QTIME.MAX.WARN} for 5m' + priority: WARNING + description: 'Average time spent in queue (in ms) for the last 1,024 requests is more than {$HAPROXY.BACK_QTIME.MAX.WARN}.' + tags: + - tag: scope + value: performance + - uuid: 8446abe2825848c7a11fb7d567f9e3a1 + name: 'Backend {#PXNAME}: Raw data' + type: DEPENDENT + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the Backend with the name `{#PXNAME}`' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()' + master_item: + key: haproxy.get + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: raw + - uuid: 5ddd3cd8af904faaa69f34df442c9717 + name: 'Backend {#PXNAME}: Responses time' + type: DEPENDENT + key: 'haproxy.backend.rtime[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average backend response time (in ms) for the last 1,024 requests' + preprocessing: + - type: JSONPATH + parameters: + - $.rtime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + trigger_prototypes: + - uuid: 90c0bd8c280246b7903ac90c32553fd5 + expression: 'min(/HAProxy by HTTP/haproxy.backend.rtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_RTIME.MAX.WARN}' + name: 'HAProxy: backend {#PXNAME}: Average response time is high' + event_name: 'HAProxy: backend {#PXNAME}: Average response time is more than {$HAPROXY.BACK_RTIME.MAX.WARN} for 5m' + priority: WARNING + description: 'Average backend response time (in ms) for the last 1,024 requests is more than {$HAPROXY.BACK_RTIME.MAX.WARN}.' + tags: + - tag: scope + value: performance + - uuid: 16bb7ee405a84bb4865c46fdf996511f + name: 'Backend {#PXNAME}: Status' + type: DEPENDENT + key: 'haproxy.backend.status[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Possible values: + UP - The server is reporting as healthy. + DOWN - The server is reporting as unhealthy and unable to receive requests. + NOLB - You've added http-check disable-on-404 to the backend and the health checked URL has returned an HTTP 404 response. + MAINT - The server has been disabled or put into maintenance mode. + DRAIN - The server has been put into drain mode. + no check - Health checks are not enabled for this server. + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: health + trigger_prototypes: + - uuid: 5ea80b42a6be4df48f048a5aa253c923 + expression: 'count(/HAProxy by HTTP/haproxy.backend.status[{#PXNAME},{#SVNAME}],#5,"eq","DOWN")=5' + name: 'HAProxy: backend {#PXNAME}: Server is DOWN' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Backend is not available.' + tags: + - tag: scope + value: availability + - uuid: 76d9497f428142268a5c1eeb24cbbad7 + name: 'Backend {#PXNAME}: Sessions per second' + type: DEPENDENT + key: 'haproxy.backend.stot.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Cumulative number of sessions (end-to-end connections) per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.stot + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: sessions + - uuid: f1d26d9c409d4983b7f94ff412ae72f3 + name: 'Backend {#PXNAME}: Weight' + type: DEPENDENT + key: 'haproxy.backend.weight[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Total effective weight.' + preprocessing: + - type: JSONPATH + parameters: + - $.weight + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: balancer + - uuid: 00d3038c7df34512ae39ba1051712674 + name: 'Backend {#PXNAME}: Redispatched requests per second' + type: DEPENDENT + key: 'haproxy.backend.wredis.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of times a request was redispatched to a different backend.' + preprocessing: + - type: JSONPATH + parameters: + - $.wredis + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: requests + - uuid: e0eafe2c4d0d40e492822e43f6cf108e + name: 'Backend {#PXNAME}: Retried connections per second' + type: DEPENDENT + key: 'haproxy.backend.wretr.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of times a connection was retried.' + preprocessing: + - type: JSONPATH + parameters: + - $.wretr + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: connections + graph_prototypes: + - uuid: 47e7dc2c8ff2424eb81f396f83dbb2c0 + name: 'HAProxy: Backend {#PXNAME} In/Out traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.backend.bin.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.backend.bout.rate[{#PXNAME},{#SVNAME}]' + - uuid: 2160a789b142498cb2d3e401ee992edb + name: 'HAProxy: Backend {#PXNAME} Redispatched requests and retried connections per second' + graph_items: + - color: 199C0D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.backend.wredis.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.backend.wretr.rate[{#PXNAME},{#SVNAME}]' + - uuid: 816e4062fc7b45bea96c2a2fbc171088 + name: 'HAProxy: Backend {#PXNAME} Responses by HTTP code' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.backend.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.backend.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'HAProxy by HTTP' + key: 'haproxy.backend.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.backend.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.backend.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + master_item: + key: haproxy.get.nodes + lld_macro_paths: + - lld_macro: '{#MODE}' + path: $.mode + - lld_macro: '{#PXNAME}' + path: $.pxname + - lld_macro: '{#SVNAME}' + path: $.svname + overrides: + - name: 'Discard HTTP status codes' + step: '1' + filter: + conditions: + - macro: '{#MODE}' + value: tcp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Number of responses with codes' + discover: NO_DISCOVER + status: ENABLED + - uuid: 37629de766fd4c61a1618f9d1f1e2eab + name: 'Frontend discovery' + type: DEPENDENT + key: haproxy.frontend.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#MODE}' + value: http|tcp + formulaid: A + - macro: '{#SVNAME}' + value: FRONTEND + formulaid: B + description: 'Discovery frontends' + item_prototypes: + - uuid: 6dac4d4e912b4f8fb7def6bab98d8dc4 + name: 'Frontend {#PXNAME}: Incoming traffic' + type: DEPENDENT + key: 'haproxy.frontend.bin.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits received by the frontend' + preprocessing: + - type: JSONPATH + parameters: + - $.bin + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: network + - tag: frontend + value: '{#PXNAME}' + - uuid: 5550e3842d00486999c822b0d514b78e + name: 'Frontend {#PXNAME}: Outgoing traffic' + type: DEPENDENT + key: 'haproxy.frontend.bout.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits sent by the frontend' + preprocessing: + - type: JSONPATH + parameters: + - $.bout + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: network + - tag: frontend + value: '{#PXNAME}' + - uuid: 819b1559cf294958ab03cae8663eb7e3 + name: 'Frontend {#PXNAME}: Denied requests per second' + type: DEPENDENT + key: 'haproxy.frontend.dreq.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Requests denied due to security concerns (ACL-restricted) per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.dreq + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: frontend + value: '{#PXNAME}' + trigger_prototypes: + - uuid: 4d8ac22673944752979263b34521af65 + expression: 'min(/HAProxy by HTTP/haproxy.frontend.dreq.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.FRONT_DREQ.MAX.WARN}' + name: 'HAProxy: frontend {#PXNAME}: Number of requests denied is high' + event_name: 'HAProxy: frontend {#PXNAME}: Number of requests denied is more than {$HAPROXY.FRONT_DREQ.MAX.WARN} for 5m' + priority: WARNING + description: 'Number of requests denied due to security concerns (ACL-restricted) is more than {$HAPROXY.FRONT_DREQ.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: 0b2a1b9e1c9045519e4ac52d5d83e86b + name: 'Frontend {#PXNAME}: Request errors per second' + type: DEPENDENT + key: 'haproxy.frontend.ereq.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of request errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.ereq + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: frontend + value: '{#PXNAME}' + trigger_prototypes: + - uuid: c51ac95f4d4a46e1ac1df1d057197f6e + expression: 'min(/HAProxy by HTTP/haproxy.frontend.ereq.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.FRONT_EREQ.MAX.WARN}' + name: 'HAProxy: frontend {#PXNAME}: Number of request errors is high' + event_name: 'HAProxy: frontend {#PXNAME}: Number of request errors is more than {$HAPROXY.FRONT_EREQ.MAX.WARN} for 5m' + priority: WARNING + description: 'Number of request errors is more than {$HAPROXY.FRONT_EREQ.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: c287463b994c40caaaeb195a4dca5d37 + name: 'Frontend {#PXNAME}: Number of responses with codes 1xx per second' + type: DEPENDENT + key: 'haproxy.frontend.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of informational HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_1xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: frontend + value: '{#PXNAME}' + - uuid: 41cd2084595d482ea204f9edc62a985a + name: 'Frontend {#PXNAME}: Number of responses with codes 2xx per second' + type: DEPENDENT + key: 'haproxy.frontend.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of successful HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_2xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: frontend + value: '{#PXNAME}' + - uuid: f1ae1b8f477449c9832e80bfd145211a + name: 'Frontend {#PXNAME}: Number of responses with codes 3xx per second' + type: DEPENDENT + key: 'haproxy.frontend.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP redirections per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_3xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: frontend + value: '{#PXNAME}' + - uuid: f1635a2f379b4542b9c44c9d5224fc4d + name: 'Frontend {#PXNAME}: Number of responses with codes 4xx per second' + type: DEPENDENT + key: 'haproxy.frontend.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP client errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_4xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: frontend + value: '{#PXNAME}' + - uuid: cf9ae6b634fd4acc92c180bc10c9b0f5 + name: 'Frontend {#PXNAME}: Number of responses with codes 5xx per second' + type: DEPENDENT + key: 'haproxy.frontend.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP server errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_5xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: frontend + value: '{#PXNAME}' + - uuid: 6c09de61332c4d56a4b90ee4e9ab6fe2 + name: 'Frontend {#PXNAME}: Sessions rate' + type: DEPENDENT + key: 'haproxy.frontend.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Number of sessions created per second' + preprocessing: + - type: JSONPATH + parameters: + - $.rate + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: sessions + - tag: frontend + value: '{#PXNAME}' + - uuid: e0a67c04834645e4b59cf6bab5353f84 + name: 'Frontend {#PXNAME}: Raw data' + type: DEPENDENT + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the Frontend with the name `{#PXNAME}`' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()' + master_item: + key: haproxy.get + tags: + - tag: component + value: raw + - tag: frontend + value: '{#PXNAME}' + - uuid: 7097695ee69e4b7895c0d885606b8456 + name: 'Frontend {#PXNAME}: Requests rate' + type: DEPENDENT + key: 'haproxy.frontend.req_rate[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'HTTP requests per second' + preprocessing: + - type: JSONPATH + parameters: + - $.req_rate + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: frontend + value: '{#PXNAME}' + - uuid: 7985345dcd274811ac6a2e69940f6cb7 + name: 'Frontend {#PXNAME}: Established sessions' + type: DEPENDENT + key: 'haproxy.frontend.scur[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'The current number of established sessions.' + preprocessing: + - type: JSONPATH + parameters: + - $.scur + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: sessions + - tag: frontend + value: '{#PXNAME}' + - uuid: 8b185b2272244229865315cc0139d43f + name: 'Frontend {#PXNAME}: Session limits' + type: DEPENDENT + key: 'haproxy.frontend.slim[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'The most simultaneous sessions that are allowed, as defined by the maxconn setting in the frontend.' + preprocessing: + - type: JSONPATH + parameters: + - $.slim + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: sessions + - tag: frontend + value: '{#PXNAME}' + - uuid: 6e7372afcd6842c0865a1480973fc8e5 + name: 'Frontend {#PXNAME}: Status' + type: DEPENDENT + key: 'haproxy.frontend.status[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Possible values: OPEN, STOP. + When Status is OPEN, the frontend is operating normally and ready to receive traffic. + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: health + - tag: frontend + value: '{#PXNAME}' + - uuid: 53efa6139fe3400283c96ec76eb20855 + name: 'Frontend {#PXNAME}: Session utilization' + type: CALCULATED + key: 'haproxy.frontend.sutil[{#PXNAME},{#SVNAME}]' + value_type: FLOAT + units: '%' + params: 'last(//haproxy.frontend.scur[{#PXNAME},{#SVNAME}]) / last(//haproxy.frontend.slim[{#PXNAME},{#SVNAME}]) * 100' + description: 'Percentage of sessions used (scur / slim * 100).' + tags: + - tag: component + value: sessions + - tag: frontend + value: '{#PXNAME}' + trigger_prototypes: + - uuid: ad33db7c356342e78ee19e904c981f1f + expression: 'min(/HAProxy by HTTP/haproxy.frontend.sutil[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.FRONT_SUTIL.MAX.WARN}' + name: 'HAProxy: frontend {#PXNAME}: Session utilization is high' + event_name: 'HAProxy: frontend {#PXNAME}: Session utilization is more than {$HAPROXY.FRONT_SUTIL.MAX.WARN}% for 5m' + priority: WARNING + description: 'Alerting on this metric is essential to ensure your server has sufficient capacity to handle all concurrent sessions. Unlike requests, upon reaching the session limit HAProxy will deny additional clients until resource consumption drops. Furthermore, if you find your session usage percentage to be hovering above 80%, it could be time to either modify HAProxy''s configuration to allow more sessions, or migrate your HAProxy server to a bigger box.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 29c858f57e5447758c9bb39008ba7aa9 + name: 'HAProxy: Frontend {#PXNAME} Errors and denials per second' + graph_items: + - color: 199C0D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.ereq.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.dreq.rate[{#PXNAME},{#SVNAME}]' + - uuid: b7db5c68269b46d4b009f5a6c769e13e + name: 'HAProxy: Frontend {#PXNAME} In/Out traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.bin.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.bout.rate[{#PXNAME},{#SVNAME}]' + - uuid: 1550af17c1fe4509922b87dd7d60e8b7 + name: 'HAProxy: Frontend {#PXNAME} Requests and sessions per second' + graph_items: + - color: 199C0D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.req_rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.rate[{#PXNAME},{#SVNAME}]' + - uuid: 82817ba44621444c90f7b4dc8abb3107 + name: 'HAProxy: Frontend {#PXNAME} Responses by HTTP code' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.frontend.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + master_item: + key: haproxy.get.nodes + lld_macro_paths: + - lld_macro: '{#MODE}' + path: $.mode + - lld_macro: '{#PXNAME}' + path: $.pxname + - lld_macro: '{#SVNAME}' + path: $.svname + overrides: + - name: 'Discard HTTP status codes' + step: '1' + filter: + conditions: + - macro: '{#MODE}' + value: tcp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Number of responses with codes' + discover: NO_DISCOVER + status: ENABLED + - uuid: 134455ad7e8c4444a78255cb2e3fa98b + name: 'Server discovery' + type: DEPENDENT + key: haproxy.server.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#MODE}' + value: http|tcp + formulaid: A + - macro: '{#SVNAME}' + value: FRONTEND|BACKEND + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery servers' + item_prototypes: + - uuid: bd19603777534fe38c9aa1888903d2fa + name: '{#PXNAME} {#SVNAME}: Server is active' + type: DEPENDENT + key: 'haproxy.server.act[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Shows whether the server is active (marked with a Y) or a backup (marked with a -).' + valuemap: + name: 'Server mode' + preprocessing: + - type: JSONPATH + parameters: + - $.act + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: role + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 49b7da6cc75c4bb7ad2c3b7c25beccb5 + name: '{#PXNAME} {#SVNAME}: Server is backup' + type: DEPENDENT + key: 'haproxy.server.bck[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Shows whether the server is a backup (marked with a Y) or active (marked with a -).' + valuemap: + name: 'Server mode' + preprocessing: + - type: JSONPATH + parameters: + - $.bck + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: role + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 355525dba53747c899f19fe4114a3ca4 + name: '{#PXNAME} {#SVNAME}: Incoming traffic' + type: DEPENDENT + key: 'haproxy.server.bin.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits received by the backend' + preprocessing: + - type: JSONPATH + parameters: + - $.bin + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: network + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 0d721252dd3946818f87815a56ced8d0 + name: '{#PXNAME} {#SVNAME}: Outgoing traffic' + type: DEPENDENT + key: 'haproxy.server.bout.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits sent by the backend' + preprocessing: + - type: JSONPATH + parameters: + - $.bout + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: network + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 6fe4502c3b534ee6b9a39a3fcc8d0b98 + name: '{#PXNAME} {#SVNAME}: Status of last health check' + type: DEPENDENT + key: 'haproxy.server.check_status[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Status of last health check, one of: + UNK -> unknown + INI -> initializing + SOCKERR -> socket error + L4OK -> check passed on layer 4, no upper layers testing enabled + L4TOUT -> layer 1-4 timeout + L4CON -> layer 1-4 connection problem, for example "Connection refused" (tcp rst) or "No route to host" (icmp) + L6OK -> check passed on layer 6 + L6TOUT -> layer 6 (SSL) timeout + L6RSP -> layer 6 invalid response - protocol error + L7OK -> check passed on layer 7 + L7OKC -> check conditionally passed on layer 7, for example 404 with disable-on-404 + L7TOUT -> layer 7 (HTTP/SMTP) timeout + L7RSP -> layer 7 invalid response - protocol error + L7STS -> layer 7 response error, for example HTTP 5xx + Notice: If a check is currently running, the last known status will be reported, prefixed with "* ". e. g. "* L7OK". + preprocessing: + - type: JSONPATH + parameters: + - $.check_status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: health + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: 6c4f8cf76ab046aaa4bd51e41cc10de7 + expression: 'find(/HAProxy by HTTP/haproxy.server.check_status[{#PXNAME},{#SVNAME}],#3,"regexp","(?:L[4-7]OK|^$)")=0' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Health check error' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the server for faults.' + dependencies: + - name: 'HAProxy: {#PXNAME} {#SVNAME}: Server is DOWN' + expression: 'count(/HAProxy by HTTP/haproxy.server.status[{#PXNAME},{#SVNAME}],#5,"eq","DOWN")=5' + tags: + - tag: scope + value: notice + - uuid: 6e5824eca488428eb61a17d1d4efd055 + name: '{#PXNAME} {#SVNAME}: Responses denied per second' + type: DEPENDENT + key: 'haproxy.server.dresp.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Responses denied due to security concerns (ACL-restricted).' + preprocessing: + - type: JSONPATH + parameters: + - $.dresp + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 18533da75eb142dbb216acc7af3bde4b + name: '{#PXNAME} {#SVNAME}: Errors connection per second' + type: DEPENDENT + key: 'haproxy.server.econ.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of requests that encountered an error attempting to connect to a backend server.' + preprocessing: + - type: JSONPATH + parameters: + - $.econ + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: connections + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 3412ca47e4fe4481b434f95dda566c5e + name: '{#PXNAME} {#SVNAME}: Response errors per second' + type: DEPENDENT + key: 'haproxy.server.eresp.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of requests whose responses yielded an error.' + preprocessing: + - type: JSONPATH + parameters: + - $.eresp + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: bf952df23dac4b059d0219b204449830 + expression: 'min(/HAProxy by HTTP/haproxy.server.eresp.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_ERESP.MAX.WARN}' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Number of responses with error is high' + event_name: 'HAProxy: {#PXNAME} {#SVNAME}: Number of responses with error is more than {$HAPROXY.SERVER_ERESP.MAX.WARN} for 5m' + priority: WARNING + description: 'Number of requests on server, whose responses yielded an error, is more than {$HAPROXY.SERVER_ERESP.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: b0a39c6bdf7b4db0a27fce9c0e08aecb + name: '{#PXNAME} {#SVNAME}: Number of responses with codes 1xx per second' + type: DEPENDENT + key: 'haproxy.server.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of informational HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_1xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 786330b63708432c963725c83fa1791e + name: '{#PXNAME} {#SVNAME}: Number of responses with codes 2xx per second' + type: DEPENDENT + key: 'haproxy.server.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of successful HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_2xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 1a96152c277d4018acced2f9d9ffd6cd + name: '{#PXNAME} {#SVNAME}: Number of responses with codes 3xx per second' + type: DEPENDENT + key: 'haproxy.server.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP redirections per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_3xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 66076fc3a6fc401cb1423fb015dfe187 + name: '{#PXNAME} {#SVNAME}: Number of responses with codes 4xx per second' + type: DEPENDENT + key: 'haproxy.server.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP client errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_4xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 631d2471fc7346a5b0ce8379a400f13e + name: '{#PXNAME} {#SVNAME}: Number of responses with codes 5xx per second' + type: DEPENDENT + key: 'haproxy.server.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP server errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_5xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: ff7d8b0633ce4e119ad2f8976ce0ea18 + name: '{#PXNAME} {#SVNAME}: Server was selected per second' + type: DEPENDENT + key: 'haproxy.server.lbtot.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of times that server was selected.' + preprocessing: + - type: JSONPATH + parameters: + - $.lbtot + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: connections + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 0bc4c4f25d00423b9dc188c9dbe34db0 + name: '{#PXNAME} {#SVNAME}: Unassigned requests' + type: DEPENDENT + key: 'haproxy.server.qcur[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Current number of requests unassigned in queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.qcur + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: 24e803eab76244d38ff90f2fce396b7f + expression: 'min(/HAProxy by HTTP/haproxy.server.qcur[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_QCUR.MAX.WARN}' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Current number of requests unassigned in queue is high' + event_name: 'HAProxy: {#PXNAME} {#SVNAME}: Current number of requests unassigned in queue is more than {$HAPROXY.SERVER_QCUR.MAX.WARN} for 5m' + priority: WARNING + description: 'Current number of requests unassigned in queue is more than {$HAPROXY.SERVER_QCUR.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: d2d92c67b546498d929b1e38b7a48561 + name: '{#PXNAME} {#SVNAME}: Configured maxqueue' + type: DEPENDENT + key: 'haproxy.server.qlimit[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Configured maxqueue for the server, or nothing in the value is 0 (default, meaning no limit).' + preprocessing: + - type: JSONPATH + parameters: + - $.qlimit + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: MATCHES_REGEX + parameters: + - ^\d+$ + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: queues + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: aa3b73b8d06a463f84b10621461c1577 + name: '{#PXNAME} {#SVNAME}: Time in queue' + type: DEPENDENT + key: 'haproxy.server.qtime[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average time spent in queue (in ms) for the last 1,024 requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.qtime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: f6d92dc0d2334ca4a7a4c0c81f60c44c + expression: 'min(/HAProxy by HTTP/haproxy.server.qtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_QTIME.MAX.WARN}' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Average time spent in queue is high' + event_name: 'HAProxy: {#PXNAME} {#SVNAME}: Average time spent in queue is more than {$HAPROXY.SERVER_QTIME.MAX.WARN} for 5m' + priority: WARNING + description: 'Average time spent in queue (in ms) for the last 1,024 requests is more than {$HAPROXY.SERVER_QTIME.MAX.WARN}.' + tags: + - tag: scope + value: performance + - uuid: a0cd94ee26f141f9ab02d902ef0fe30c + name: 'Server {#PXNAME} {#SVNAME}: Raw data' + type: DEPENDENT + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the Server named `{#SVNAME}` and the proxy with the name `{#PXNAME}`' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()' + master_item: + key: haproxy.get + tags: + - tag: component + value: raw + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: f790d237b494452a9b77b4f002a7ca46 + name: '{#PXNAME} {#SVNAME}: Responses time' + type: DEPENDENT + key: 'haproxy.server.rtime[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average server response time (in ms) for the last 1,024 requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.rtime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: health + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: 5a0444417ebf47cab0218e8407f04354 + expression: 'min(/HAProxy by HTTP/haproxy.server.rtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_RTIME.MAX.WARN}' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Average response time is high' + event_name: 'HAProxy: {#PXNAME} {#SVNAME}: Average response time is more than {$HAPROXY.SERVER_RTIME.MAX.WARN} for 5m' + priority: WARNING + description: 'Average server response time (in ms) for the last 1,024 requests is more than {$HAPROXY.SERVER_RTIME.MAX.WARN}.' + tags: + - tag: scope + value: performance + - uuid: 80ceac1d54e94e50988bf205318392a8 + name: '{#PXNAME} {#SVNAME}: Status' + type: DEPENDENT + key: 'haproxy.server.status[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: health + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: ccf6dbe8970f4f9f9223027e676aa57e + expression: 'count(/HAProxy by HTTP/haproxy.server.status[{#PXNAME},{#SVNAME}],#5,"eq","DOWN")=5' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Server is DOWN' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Server is not available.' + tags: + - tag: scope + value: availability + - uuid: 10cfb75db0ef4a9fb33670480303522b + name: '{#PXNAME} {#SVNAME}: Sessions per second' + type: DEPENDENT + key: 'haproxy.server.stot.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Cumulative number of sessions (end-to-end connections) per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.stot + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: sessions + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: b8b0e8b0c3904335aa391f0727aac871 + name: '{#PXNAME} {#SVNAME}: Weight' + type: DEPENDENT + key: 'haproxy.server.weight[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Effective weight.' + preprocessing: + - type: JSONPATH + parameters: + - $.weight + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: balancer + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: d7419ca33427455688a08ecff8ad6fb0 + name: '{#PXNAME} {#SVNAME}: Redispatched requests per second' + type: DEPENDENT + key: 'haproxy.server.wredis.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of times a request was redispatched to a different backend.' + preprocessing: + - type: JSONPATH + parameters: + - $.wredis + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 96cfadc919d8457ebb7519e11ac93d79 + name: '{#PXNAME} {#SVNAME}: Retried connections per second' + type: DEPENDENT + key: 'haproxy.server.wretr.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of times a connection was retried.' + preprocessing: + - type: JSONPATH + parameters: + - $.wretr + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: connections + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + graph_prototypes: + - uuid: b7170d909b78413daa7057320d4280d8 + name: 'HAProxy: {#PXNAME} {#SVNAME} In/Out traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.server.bin.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.server.bout.rate[{#PXNAME},{#SVNAME}]' + - uuid: d9b0d6babaf04daa942f121aab2d5b9c + name: 'HAProxy: {#PXNAME} {#SVNAME} Responses by HTTP code' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.server.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.server.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'HAProxy by HTTP' + key: 'haproxy.server.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.server.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.server.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + - uuid: 5e1c8f6bf6c04ef6a60ce221c44c6ab6 + name: 'HAProxy: {#PXNAME} {#SVNAME} Response time and time in queue' + graph_items: + - color: 199C0D + item: + host: 'HAProxy by HTTP' + key: 'haproxy.server.rtime[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by HTTP' + key: 'haproxy.server.qtime[{#PXNAME},{#SVNAME}]' + master_item: + key: haproxy.get.nodes + lld_macro_paths: + - lld_macro: '{#MODE}' + path: $.mode + - lld_macro: '{#PXNAME}' + path: $.pxname + - lld_macro: '{#SVNAME}' + path: $.svname + overrides: + - name: 'Discard HTTP status codes' + step: '1' + filter: + conditions: + - macro: '{#MODE}' + value: tcp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Number of responses with codes' + discover: NO_DISCOVER + status: ENABLED + tags: + - tag: class + value: software + - tag: target + value: haproxy + macros: + - macro: '{$HAPROXY.BACK_ERESP.MAX.WARN}' + value: '10' + description: 'Maximum of responses with error on Backend for trigger expression.' + - macro: '{$HAPROXY.BACK_QCUR.MAX.WARN}' + value: '10' + description: 'Maximum number of requests on Backend unassigned in queue for trigger expression.' + - macro: '{$HAPROXY.BACK_QTIME.MAX.WARN}' + value: 10s + description: 'Maximum of average time spent in queue on Backend for trigger expression.' + - macro: '{$HAPROXY.BACK_RTIME.MAX.WARN}' + value: 10s + description: 'Maximum of average Backend response time for trigger expression.' + - macro: '{$HAPROXY.FRONT_DREQ.MAX.WARN}' + value: '10' + description: 'The HAProxy maximum denied requests for trigger expression.' + - macro: '{$HAPROXY.FRONT_EREQ.MAX.WARN}' + value: '10' + description: 'The HAProxy maximum number of request errors for trigger expression.' + - macro: '{$HAPROXY.FRONT_SUTIL.MAX.WARN}' + value: '80' + description: 'Maximum of session usage percentage on frontend for trigger expression.' + - macro: '{$HAPROXY.PASSWORD}' + description: 'The password of the HAProxy stats page.' + - macro: '{$HAPROXY.RESPONSE_TIME.MAX.WARN}' + value: 10s + description: 'The HAProxy stats page maximum response time in seconds for trigger expression.' + - macro: '{$HAPROXY.SERVER_ERESP.MAX.WARN}' + value: '10' + description: 'Maximum of responses with error on server for trigger expression.' + - macro: '{$HAPROXY.SERVER_QCUR.MAX.WARN}' + value: '10' + description: 'Maximum number of requests on server unassigned in queue for trigger expression.' + - macro: '{$HAPROXY.SERVER_QTIME.MAX.WARN}' + value: 10s + description: 'Maximum of average time spent in queue on server for trigger expression.' + - macro: '{$HAPROXY.SERVER_RTIME.MAX.WARN}' + value: 10s + description: 'Maximum of average server response time for trigger expression.' + - macro: '{$HAPROXY.STATS.HOST}' + value: '' + description: 'The hostname or IP address of the HAProxy stats host or container.' + - macro: '{$HAPROXY.STATS.PATH}' + value: stats + description: 'The path of the HAProxy stats page.' + - macro: '{$HAPROXY.STATS.PORT}' + value: '8404' + description: 'The port of the HAProxy stats host or container.' + - macro: '{$HAPROXY.STATS.SCHEME}' + value: http + description: 'The scheme of HAProxy stats page (http/https).' + - macro: '{$HAPROXY.USERNAME}' + description: 'The username of the HAProxy stats page.' + dashboards: + - uuid: 7910c0c96e014d68966c5ac989e9ebb7 + name: 'HAProxy Backend performance' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by HTTP' + name: 'HAProxy: Backend {#PXNAME} Redispatched requests and retried connections per second' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by HTTP' + name: 'HAProxy: Backend {#PXNAME} Responses by HTTP code' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by HTTP' + name: 'HAProxy: Backend {#PXNAME} In/Out traffic' + - type: STRING + name: reference + value: AAAAG + - uuid: d6ba5079de1c49bb9e0e5c47112b3ff9 + name: 'HAProxy Frontend performance' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by HTTP' + name: 'HAProxy: Frontend {#PXNAME} Requests and sessions per second' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by HTTP' + name: 'HAProxy: Frontend {#PXNAME} Errors and denials per second' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by HTTP' + name: 'HAProxy: Frontend {#PXNAME} Responses by HTTP code' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by HTTP' + name: 'HAProxy: Frontend {#PXNAME} In/Out traffic' + - type: STRING + name: reference + value: AAAAD + - uuid: f41c3a3976dc483d98a386273ab5678f + name: 'HAProxy Server performance' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by HTTP' + name: 'HAProxy: {#PXNAME} {#SVNAME} Response time and time in queue' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by HTTP' + name: 'HAProxy: {#PXNAME} {#SVNAME} Responses by HTTP code' + - type: STRING + name: reference + value: AAAAI + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by HTTP' + name: 'HAProxy: {#PXNAME} {#SVNAME} In/Out traffic' + - type: STRING + name: reference + value: AAAAJ + valuemaps: + - uuid: 450c1b2c6d58432b8a5b34dd3b5e8870 + name: 'Server mode' + mappings: + - value: '0' + newvalue: '-' + - value: '1' + newvalue: 'Y' + - uuid: a8a0c20f1d404a79900064ac5d11a8b2 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up diff --git a/HAProxy_by_Zabbix_agent.yaml b/HAProxy_by_Zabbix_agent.yaml new file mode 100644 index 0000000..f29110b --- /dev/null +++ b/HAProxy_by_Zabbix_agent.yaml @@ -0,0 +1,2238 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 812073bf8df143bcae2a84b32c3965e5 + template: 'HAProxy by Zabbix agent' + name: 'HAProxy by Zabbix agent' + description: | + The template to monitor HAProxy by Zabbix that works without any external scripts. + Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. + + The template collects metrics by polling the HAProxy stats page with Zabbix agent. + + Note, that this template doesn't support authentication and redirects (limitations of 'web.page.get'). + + Setup: + + 1. Set up the HAProxy stats page: + https://www.haproxy.com/blog/exploring-the-haproxy-stats-page/ + + The example configuration of HAProxy: + + frontend stats + bind *:8404 + stats enable + stats uri /stats + stats refresh 10s + + 2. Set the hostname or IP address of the HAProxy stats host or container in the '{$HAPROXY.STATS.HOST}' macro. You can also change the status page port in the '{$HAPROXY.STATS.PORT}' macro, the status page scheme in the '{$HAPROXY.STATS.SCHEME}' macro and the status page path in the '{$HAPROXY.STATS.PATH}' macro if necessary. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/393527-discussion-thread-for-official-zabbix-template-haproxy + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: ca85e2fda99b42a4ad2b373211a6b07d + name: 'Get nodes' + type: DEPENDENT + key: haproxy.get.nodes + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Array for LLD rules.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(JSON.parse(value),[''mode'',''pxname'',''svname''])' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'web.page.get["{$HAPROXY.STATS.SCHEME}://{$HAPROXY.STATS.HOST}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH};csv"]' + tags: + - tag: component + value: raw + - uuid: 29381f1e0bdc4628a82ef1b7724f2e6f + name: Uptime + type: DEPENDENT + key: haproxy.uptime + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var t = value.match(/(\d+)d (\d+)h(\d+)m(\d+)s/); + return t[1] * 86400 + t[2] * 3600 + t[3] * 60 + t[4] * 1; + } + catch (error) { + throw "HAProxy uptime is not found : " + error; + } + master_item: + key: 'web.page.get["{$HAPROXY.STATS.SCHEME}://{$HAPROXY.STATS.HOST}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH}"]' + tags: + - tag: component + value: application + triggers: + - uuid: e76d5b82b0ad421ea62cd1dc069e036b + expression: 'last(/HAProxy by Zabbix agent/haproxy.uptime)<10m' + name: 'HAProxy: Service has been restarted' + event_name: 'HAProxy: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e930e70fb1b44d9cbe673f35133c6e77 + name: Version + type: DEPENDENT + key: haproxy.version + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: REGEX + parameters: + - 'HAProxy version ([^,]*),' + - \1 + error_handler: CUSTOM_ERROR + error_handler_params: 'HAProxy version is not found' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'web.page.get["{$HAPROXY.STATS.SCHEME}://{$HAPROXY.STATS.HOST}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH}"]' + tags: + - tag: component + value: application + triggers: + - uuid: db6ef8f306f64f0f81a590e4b45b370c + expression: 'last(/HAProxy by Zabbix agent/haproxy.version,#1)<>last(/HAProxy by Zabbix agent/haproxy.version,#2) and length(last(/HAProxy by Zabbix agent/haproxy.version))>0' + name: 'HAProxy: Version has changed' + event_name: 'HAProxy: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'HAProxy version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c224cfe9b7474f9e80618dde78cfcb11 + name: 'Service response time' + key: 'net.tcp.service.perf["{$HAPROXY.STATS.SCHEME}","{$HAPROXY.STATS.HOST}","{$HAPROXY.STATS.PORT}"]' + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4e881047bbd54c5984922d1189567ece + expression: 'min(/HAProxy by Zabbix agent/net.tcp.service.perf["{$HAPROXY.STATS.SCHEME}","{$HAPROXY.STATS.HOST}","{$HAPROXY.STATS.PORT}"],5m)>{$HAPROXY.RESPONSE_TIME.MAX.WARN}' + name: 'HAProxy: Service response time is too high' + event_name: 'HAProxy: Service response time is too high (over {$HAPROXY.RESPONSE_TIME.MAX.WARN} for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'HAProxy: Service is down' + expression: 'last(/HAProxy by Zabbix agent/net.tcp.service["{$HAPROXY.STATS.SCHEME}","{$HAPROXY.STATS.HOST}","{$HAPROXY.STATS.PORT}"])=0' + tags: + - tag: scope + value: performance + - uuid: 97e45c508f5a4df78fc783382088e233 + name: 'Service status' + key: 'net.tcp.service["{$HAPROXY.STATS.SCHEME}","{$HAPROXY.STATS.HOST}","{$HAPROXY.STATS.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8d5c7940e5924b469b3e7804043ea7b6 + expression: 'last(/HAProxy by Zabbix agent/net.tcp.service["{$HAPROXY.STATS.SCHEME}","{$HAPROXY.STATS.HOST}","{$HAPROXY.STATS.PORT}"])=0' + name: 'HAProxy: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: e70009bd4e3041a3952738673ebb5c29 + name: 'Get stats page' + key: 'web.page.get["{$HAPROXY.STATS.SCHEME}://{$HAPROXY.STATS.HOST}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'HAProxy Statistics Report HTML' + tags: + - tag: component + value: raw + - uuid: aabdb5706b6744379561f269e0709141 + name: 'Get stats' + key: 'web.page.get["{$HAPROXY.STATS.SCHEME}://{$HAPROXY.STATS.HOST}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH};csv"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'HAProxy Statistics Report in CSV format' + preprocessing: + - type: REGEX + parameters: + - '# ([\s\S]*)' + - \1 + - type: CSV_TO_JSON + parameters: + - '' + - '' + - '1' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 9899f0a11ece4b9194ca44a8fc34b066 + name: 'Backend discovery' + type: DEPENDENT + key: haproxy.backend.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#MODE}' + value: http|tcp + formulaid: A + - macro: '{#SVNAME}' + value: BACKEND + formulaid: B + description: 'Discovery backends' + item_prototypes: + - uuid: 1ee660a3cfbd4e76a20a32524cdb707f + name: 'Backend {#PXNAME}: Number of active servers' + type: DEPENDENT + key: 'haproxy.backend.act[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Number of active servers.' + preprocessing: + - type: JSONPATH + parameters: + - $.act + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: servers + - uuid: 6c4b8a679428455aadbd307162635e6e + name: 'Backend {#PXNAME}: Number of backup servers' + type: DEPENDENT + key: 'haproxy.backend.bck[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Number of backup servers.' + preprocessing: + - type: JSONPATH + parameters: + - $.bck + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: servers + - uuid: 7d5a7b04e836417b96f2301d91fabab4 + name: 'Backend {#PXNAME}: Incoming traffic' + type: DEPENDENT + key: 'haproxy.backend.bin.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits received by the backend' + preprocessing: + - type: JSONPATH + parameters: + - $.bin + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: network + - uuid: fc353e7b680648698ecf949f784ca0ce + name: 'Backend {#PXNAME}: Outgoing traffic' + type: DEPENDENT + key: 'haproxy.backend.bout.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits sent by the backend' + preprocessing: + - type: JSONPATH + parameters: + - $.bout + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: network + - uuid: 3df452e68f144fc3a8e5ff7644ace606 + name: 'Backend {#PXNAME}: Responses denied per second' + type: DEPENDENT + key: 'haproxy.backend.dresp.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Responses denied due to security concerns (ACL-restricted).' + preprocessing: + - type: JSONPATH + parameters: + - $.dresp + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: 5e315f24828d45b285e92971d5456234 + name: 'Backend {#PXNAME}: Errors connection per second' + type: DEPENDENT + key: 'haproxy.backend.econ.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of requests that encountered an error attempting to connect to a backend server.' + preprocessing: + - type: JSONPATH + parameters: + - $.econ + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: connections + - uuid: f1ca728c571e4cf4ac9ebc36e96df27e + name: 'Backend {#PXNAME}: Response errors per second' + type: DEPENDENT + key: 'haproxy.backend.eresp.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of requests whose responses yielded an error' + preprocessing: + - type: JSONPATH + parameters: + - $.eresp + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + trigger_prototypes: + - uuid: 892d6f67eeff4520aadbf4f3841f8174 + expression: 'min(/HAProxy by Zabbix agent/haproxy.backend.eresp.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_ERESP.MAX.WARN}' + name: 'HAProxy: backend {#PXNAME}: Number of responses with error is high' + event_name: 'HAProxy: backend {#PXNAME}: Number of responses with error is more than {$HAPROXY.BACK_ERESP.MAX.WARN} for 5m' + priority: WARNING + description: 'Number of requests on backend, whose responses yielded an error, is more than {$HAPROXY.BACK_ERESP.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: a32d07355a9c4e9f9f63bac4ef2ef342 + name: 'Backend {#PXNAME}: Number of responses with codes 1xx per second' + type: DEPENDENT + key: 'haproxy.backend.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of informational HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_1xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: 2b02a86c01a245859ad4305d25569ab0 + name: 'Backend {#PXNAME}: Number of responses with codes 2xx per second' + type: DEPENDENT + key: 'haproxy.backend.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of successful HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_2xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: 24de211953f8480c9e1118abde731344 + name: 'Backend {#PXNAME}: Number of responses with codes 3xx per second' + type: DEPENDENT + key: 'haproxy.backend.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP redirections per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_3xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: 221ef133420f4140a17146eb976744eb + name: 'Backend {#PXNAME}: Number of responses with codes 4xx per second' + type: DEPENDENT + key: 'haproxy.backend.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP client errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_4xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: 3a3f40a93c184673bdbd220add5ef458 + name: 'Backend {#PXNAME}: Number of responses with codes 5xx per second' + type: DEPENDENT + key: 'haproxy.backend.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP server errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_5xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + - uuid: 389e5f77b422419386c2fa21db612697 + name: 'Backend {#PXNAME}: Unassigned requests' + type: DEPENDENT + key: 'haproxy.backend.qcur[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Current number of requests unassigned in queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.qcur + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: requests + trigger_prototypes: + - uuid: 89ccc4b4a55349c7869c2202881dcb2a + expression: 'min(/HAProxy by Zabbix agent/haproxy.backend.qcur[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_QCUR.MAX.WARN}' + name: 'HAProxy: backend {#PXNAME}: Current number of requests unassigned in queue is high' + event_name: 'HAProxy: backend {#PXNAME}: Current number of requests unassigned in queue is more than {$HAPROXY.BACK_QCUR.MAX.WARN} for 5m' + priority: WARNING + description: 'Current number of requests on backend unassigned in queue is more than {$HAPROXY.BACK_QCUR.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: a58ff94387824acb81b27cab5cfc680a + name: 'Backend {#PXNAME}: Time in queue' + type: DEPENDENT + key: 'haproxy.backend.qtime[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average time spent in queue (in ms) for the last 1,024 requests' + preprocessing: + - type: JSONPATH + parameters: + - $.qtime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: requests + trigger_prototypes: + - uuid: 1aff4be13f0f4aee8a512d4b962215a6 + expression: 'min(/HAProxy by Zabbix agent/haproxy.backend.qtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_QTIME.MAX.WARN}' + name: 'HAProxy: backend {#PXNAME}: Average time spent in queue is high' + event_name: 'HAProxy: backend {#PXNAME}: Average time spent in queue is more than {$HAPROXY.BACK_QTIME.MAX.WARN} for 5m' + priority: WARNING + description: 'Average time spent in queue (in ms) for the last 1,024 requests is more than {$HAPROXY.BACK_QTIME.MAX.WARN}.' + tags: + - tag: scope + value: performance + - uuid: 109438f053a24866a8c001c2260f1c37 + name: 'Backend {#PXNAME}: Raw data' + type: DEPENDENT + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the Backend with the name `{#PXNAME}`' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()' + master_item: + key: 'web.page.get["{$HAPROXY.STATS.SCHEME}://{$HAPROXY.STATS.HOST}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH};csv"]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: raw + - uuid: 7e801fd81fed448db7dd6c6eeaa398d5 + name: 'Backend {#PXNAME}: Responses time' + type: DEPENDENT + key: 'haproxy.backend.rtime[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average backend response time (in ms) for the last 1,024 requests' + preprocessing: + - type: JSONPATH + parameters: + - $.rtime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: responses + trigger_prototypes: + - uuid: e0dd27ac272a4fbf9495c09f3291db8f + expression: 'min(/HAProxy by Zabbix agent/haproxy.backend.rtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_RTIME.MAX.WARN}' + name: 'HAProxy: backend {#PXNAME}: Average response time is high' + event_name: 'HAProxy: backend {#PXNAME}: Average response time is more than {$HAPROXY.BACK_RTIME.MAX.WARN} for 5m' + priority: WARNING + description: 'Average backend response time (in ms) for the last 1,024 requests is more than {$HAPROXY.BACK_RTIME.MAX.WARN}.' + tags: + - tag: scope + value: performance + - uuid: 5826a63314314ef297c81749561574d2 + name: 'Backend {#PXNAME}: Status' + type: DEPENDENT + key: 'haproxy.backend.status[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Possible values: + UP - The server is reporting as healthy. + DOWN - The server is reporting as unhealthy and unable to receive requests. + NOLB - You've added http-check disable-on-404 to the backend and the health checked URL has returned an HTTP 404 response. + MAINT - The server has been disabled or put into maintenance mode. + DRAIN - The server has been put into drain mode. + no check - Health checks are not enabled for this server. + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: health + trigger_prototypes: + - uuid: 51452fd94c12448fab0703e867f69fd2 + expression: 'count(/HAProxy by Zabbix agent/haproxy.backend.status[{#PXNAME},{#SVNAME}],#5,"eq","DOWN")=5' + name: 'HAProxy: backend {#PXNAME}: Server is DOWN' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Backend is not available.' + tags: + - tag: scope + value: availability + - uuid: d11c9b4c7027475e897456e712675cc9 + name: 'Backend {#PXNAME}: Sessions per second' + type: DEPENDENT + key: 'haproxy.backend.stot.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Cumulative number of sessions (end-to-end connections) per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.stot + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: sessions + - uuid: 21cc9c7a1b7042f0bb14eeab91464ae8 + name: 'Backend {#PXNAME}: Weight' + type: DEPENDENT + key: 'haproxy.backend.weight[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Total effective weight.' + preprocessing: + - type: JSONPATH + parameters: + - $.weight + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: balancer + - uuid: bebad9eb0731474db798eacde7771238 + name: 'Backend {#PXNAME}: Redispatched requests per second' + type: DEPENDENT + key: 'haproxy.backend.wredis.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of times a request was redispatched to a different backend.' + preprocessing: + - type: JSONPATH + parameters: + - $.wredis + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: requests + - uuid: 0f09a6b800d747f4beed96a25b5cfa49 + name: 'Backend {#PXNAME}: Retried connections per second' + type: DEPENDENT + key: 'haproxy.backend.wretr.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of times a connection was retried.' + preprocessing: + - type: JSONPATH + parameters: + - $.wretr + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.backend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: backend + value: '{#PXNAME}' + - tag: component + value: connections + graph_prototypes: + - uuid: 70bf1a17304e495dae74b86b93ac9773 + name: 'HAProxy: Backend {#PXNAME} In/Out traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.backend.bin.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.backend.bout.rate[{#PXNAME},{#SVNAME}]' + - uuid: a8518997e8ce40339f5d2384a011f3ba + name: 'HAProxy: Backend {#PXNAME} Redispatched requests and retried connections per second' + graph_items: + - color: 199C0D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.backend.wredis.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.backend.wretr.rate[{#PXNAME},{#SVNAME}]' + - uuid: 50d592985cd74d0a95904971dc40767d + name: 'HAProxy: Backend {#PXNAME} Responses by HTTP code' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.backend.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.backend.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.backend.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.backend.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.backend.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + master_item: + key: haproxy.get.nodes + lld_macro_paths: + - lld_macro: '{#MODE}' + path: $.mode + - lld_macro: '{#PXNAME}' + path: $.pxname + - lld_macro: '{#SVNAME}' + path: $.svname + overrides: + - name: 'Discard HTTP status codes' + step: '1' + filter: + conditions: + - macro: '{#MODE}' + value: tcp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Number of responses with codes' + discover: NO_DISCOVER + status: ENABLED + - uuid: 69264415d8644ef597affd3dc95d42b2 + name: 'Frontend discovery' + type: DEPENDENT + key: haproxy.frontend.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#MODE}' + value: http|tcp + formulaid: A + - macro: '{#SVNAME}' + value: FRONTEND + formulaid: B + description: 'Discovery frontends' + item_prototypes: + - uuid: 434f9c1dd63946d3a181c42bcee94e07 + name: 'Frontend {#PXNAME}: Incoming traffic' + type: DEPENDENT + key: 'haproxy.frontend.bin.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits received by the frontend' + preprocessing: + - type: JSONPATH + parameters: + - $.bin + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: network + - tag: frontend + value: '{#PXNAME}' + - uuid: 047ec4b444af4bc38f74eb7fabf2fb94 + name: 'Frontend {#PXNAME}: Outgoing traffic' + type: DEPENDENT + key: 'haproxy.frontend.bout.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits sent by the frontend' + preprocessing: + - type: JSONPATH + parameters: + - $.bout + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: network + - tag: frontend + value: '{#PXNAME}' + - uuid: 4542ee3da6334468b6a146083bfa1208 + name: 'Frontend {#PXNAME}: Denied requests per second' + type: DEPENDENT + key: 'haproxy.frontend.dreq.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Requests denied due to security concerns (ACL-restricted) per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.dreq + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: frontend + value: '{#PXNAME}' + trigger_prototypes: + - uuid: 269d5e491e3d41b6be5257c8a8a85efb + expression: 'min(/HAProxy by Zabbix agent/haproxy.frontend.dreq.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.FRONT_DREQ.MAX.WARN}' + name: 'HAProxy: frontend {#PXNAME}: Number of requests denied is high' + event_name: 'HAProxy: frontend {#PXNAME}: Number of requests denied is more than {$HAPROXY.FRONT_DREQ.MAX.WARN} for 5m' + priority: WARNING + description: 'Number of requests denied due to security concerns (ACL-restricted) is more than {$HAPROXY.FRONT_DREQ.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: 2da48ea7b7fb4432b041b9706017778e + name: 'Frontend {#PXNAME}: Request errors per second' + type: DEPENDENT + key: 'haproxy.frontend.ereq.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of request errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.ereq + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: frontend + value: '{#PXNAME}' + trigger_prototypes: + - uuid: 8361fb028aed4bd9bf3356249699d424 + expression: 'min(/HAProxy by Zabbix agent/haproxy.frontend.ereq.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.FRONT_EREQ.MAX.WARN}' + name: 'HAProxy: frontend {#PXNAME}: Number of request errors is high' + event_name: 'HAProxy: frontend {#PXNAME}: Number of request errors is more than {$HAPROXY.FRONT_EREQ.MAX.WARN} for 5m' + priority: WARNING + description: 'Number of request errors is more than {$HAPROXY.FRONT_EREQ.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: d4d6d7092c524a4aa9ac83f9506fcb44 + name: 'Frontend {#PXNAME}: Number of responses with codes 1xx per second' + type: DEPENDENT + key: 'haproxy.frontend.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of informational HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_1xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: frontend + value: '{#PXNAME}' + - uuid: 34bb4142cb4c48678f1136ed7a582ff7 + name: 'Frontend {#PXNAME}: Number of responses with codes 2xx per second' + type: DEPENDENT + key: 'haproxy.frontend.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of successful HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_2xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: frontend + value: '{#PXNAME}' + - uuid: 3d6966759c864b0d94daceead022e421 + name: 'Frontend {#PXNAME}: Number of responses with codes 3xx per second' + type: DEPENDENT + key: 'haproxy.frontend.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP redirections per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_3xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: frontend + value: '{#PXNAME}' + - uuid: 3fe3871812254cf0a228b6607f02ea12 + name: 'Frontend {#PXNAME}: Number of responses with codes 4xx per second' + type: DEPENDENT + key: 'haproxy.frontend.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP client errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_4xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: frontend + value: '{#PXNAME}' + - uuid: 85d7aa81598b48ee9d40ce3e5b7fc7ea + name: 'Frontend {#PXNAME}: Number of responses with codes 5xx per second' + type: DEPENDENT + key: 'haproxy.frontend.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP server errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_5xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: frontend + value: '{#PXNAME}' + - uuid: 24ee024f493e47f4b4405bc469976c8e + name: 'Frontend {#PXNAME}: Sessions rate' + type: DEPENDENT + key: 'haproxy.frontend.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Number of sessions created per second' + preprocessing: + - type: JSONPATH + parameters: + - $.rate + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: sessions + - tag: frontend + value: '{#PXNAME}' + - uuid: 8cac0a6b219e49c2ae1fd61e78be4ee0 + name: 'Frontend {#PXNAME}: Raw data' + type: DEPENDENT + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the Frontend with the name `{#PXNAME}`' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()' + master_item: + key: 'web.page.get["{$HAPROXY.STATS.SCHEME}://{$HAPROXY.STATS.HOST}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH};csv"]' + tags: + - tag: component + value: raw + - tag: frontend + value: '{#PXNAME}' + - uuid: 2290bc0944774d54a89d5b6195f81ad4 + name: 'Frontend {#PXNAME}: Requests rate' + type: DEPENDENT + key: 'haproxy.frontend.req_rate[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'HTTP requests per second' + preprocessing: + - type: JSONPATH + parameters: + - $.req_rate + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: frontend + value: '{#PXNAME}' + - uuid: b01d1b02b9da4609acaa278cf5f2ebbd + name: 'Frontend {#PXNAME}: Established sessions' + type: DEPENDENT + key: 'haproxy.frontend.scur[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'The current number of established sessions.' + preprocessing: + - type: JSONPATH + parameters: + - $.scur + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: sessions + - tag: frontend + value: '{#PXNAME}' + - uuid: 4ed338fd24e14aeda1f6058a36371455 + name: 'Frontend {#PXNAME}: Session limits' + type: DEPENDENT + key: 'haproxy.frontend.slim[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'The most simultaneous sessions that are allowed, as defined by the maxconn setting in the frontend.' + preprocessing: + - type: JSONPATH + parameters: + - $.slim + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: sessions + - tag: frontend + value: '{#PXNAME}' + - uuid: 5a48a087c07c4cbbaf0332930d59244b + name: 'Frontend {#PXNAME}: Status' + type: DEPENDENT + key: 'haproxy.frontend.status[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Possible values: OPEN, STOP. + When Status is OPEN, the frontend is operating normally and ready to receive traffic. + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'haproxy.frontend.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: health + - tag: frontend + value: '{#PXNAME}' + - uuid: 4aedda0904954ade92a4aad6460d759b + name: 'Frontend {#PXNAME}: Session utilization' + type: CALCULATED + key: 'haproxy.frontend.sutil[{#PXNAME},{#SVNAME}]' + value_type: FLOAT + units: '%' + params: 'last(//haproxy.frontend.scur[{#PXNAME},{#SVNAME}]) / last(//haproxy.frontend.slim[{#PXNAME},{#SVNAME}]) * 100' + description: 'Percentage of sessions used (scur / slim * 100).' + tags: + - tag: component + value: sessions + - tag: frontend + value: '{#PXNAME}' + trigger_prototypes: + - uuid: 9af44a07b1a347979492063ee756b025 + expression: 'min(/HAProxy by Zabbix agent/haproxy.frontend.sutil[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.FRONT_SUTIL.MAX.WARN}' + name: 'HAProxy: frontend {#PXNAME}: Session utilization is high' + event_name: 'HAProxy: frontend {#PXNAME}: Session utilization is more than {$HAPROXY.FRONT_SUTIL.MAX.WARN}% for 5m' + priority: WARNING + description: 'Alerting on this metric is essential to ensure your server has sufficient capacity to handle all concurrent sessions. Unlike requests, upon reaching the session limit HAProxy will deny additional clients until resource consumption drops. Furthermore, if you find your session usage percentage to be hovering above 80%, it could be time to either modify HAProxy''s configuration to allow more sessions, or migrate your HAProxy server to a bigger box.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 30141ef1c5bf4c4a9cca0f8ce2ea3373 + name: 'HAProxy: Frontend {#PXNAME} Errors and denials per second' + graph_items: + - color: 199C0D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.ereq.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.dreq.rate[{#PXNAME},{#SVNAME}]' + - uuid: f6a6bb900b4e45c9af863e6e0aa9af8a + name: 'HAProxy: Frontend {#PXNAME} In/Out traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.bin.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.bout.rate[{#PXNAME},{#SVNAME}]' + - uuid: 065d1ef09a404cf1bcc67f0e987482ab + name: 'HAProxy: Frontend {#PXNAME} Requests and sessions per second' + graph_items: + - color: 199C0D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.req_rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.rate[{#PXNAME},{#SVNAME}]' + - uuid: 3ce6177d02a045219cec0d348b970860 + name: 'HAProxy: Frontend {#PXNAME} Responses by HTTP code' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.frontend.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + master_item: + key: haproxy.get.nodes + lld_macro_paths: + - lld_macro: '{#MODE}' + path: $.mode + - lld_macro: '{#PXNAME}' + path: $.pxname + - lld_macro: '{#SVNAME}' + path: $.svname + overrides: + - name: 'Discard HTTP status codes' + step: '1' + filter: + conditions: + - macro: '{#MODE}' + value: tcp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Number of responses with codes' + discover: NO_DISCOVER + status: ENABLED + - uuid: a2f7f79b8f094afd93648f62f99d3369 + name: 'Server discovery' + type: DEPENDENT + key: haproxy.server.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#MODE}' + value: http|tcp + formulaid: A + - macro: '{#SVNAME}' + value: FRONTEND|BACKEND + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery servers' + item_prototypes: + - uuid: 82b1f8a01ba04818a990c336eb7154e3 + name: '{#PXNAME} {#SVNAME}: Server is active' + type: DEPENDENT + key: 'haproxy.server.act[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Shows whether the server is active (marked with a Y) or a backup (marked with a -).' + valuemap: + name: 'Server mode' + preprocessing: + - type: JSONPATH + parameters: + - $.act + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: role + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 3617492e9cfd49b6b5576ed231dc2614 + name: '{#PXNAME} {#SVNAME}: Server is backup' + type: DEPENDENT + key: 'haproxy.server.bck[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Shows whether the server is a backup (marked with a Y) or active (marked with a -).' + valuemap: + name: 'Server mode' + preprocessing: + - type: JSONPATH + parameters: + - $.bck + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: role + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 20d5a69a9aa24fc6abf21c1c317ac425 + name: '{#PXNAME} {#SVNAME}: Incoming traffic' + type: DEPENDENT + key: 'haproxy.server.bin.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits received by the backend' + preprocessing: + - type: JSONPATH + parameters: + - $.bin + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: network + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 7fbc335144b74c08ba6a79a108e8e894 + name: '{#PXNAME} {#SVNAME}: Outgoing traffic' + type: DEPENDENT + key: 'haproxy.server.bout.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Number of bits sent by the backend' + preprocessing: + - type: JSONPATH + parameters: + - $.bout + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: network + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: c46228518a3a460b894aea999ca0feab + name: '{#PXNAME} {#SVNAME}: Status of last health check' + type: DEPENDENT + key: 'haproxy.server.check_status[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Status of last health check, one of: + UNK -> unknown + INI -> initializing + SOCKERR -> socket error + L4OK -> check passed on layer 4, no upper layers testing enabled + L4TOUT -> layer 1-4 timeout + L4CON -> layer 1-4 connection problem, for example "Connection refused" (tcp rst) or "No route to host" (icmp) + L6OK -> check passed on layer 6 + L6TOUT -> layer 6 (SSL) timeout + L6RSP -> layer 6 invalid response - protocol error + L7OK -> check passed on layer 7 + L7OKC -> check conditionally passed on layer 7, for example 404 with disable-on-404 + L7TOUT -> layer 7 (HTTP/SMTP) timeout + L7RSP -> layer 7 invalid response - protocol error + L7STS -> layer 7 response error, for example HTTP 5xx + Notice: If a check is currently running, the last known status will be reported, prefixed with "* ". e. g. "* L7OK". + preprocessing: + - type: JSONPATH + parameters: + - $.check_status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: health + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: 1378f45ad65a498aae7b571a69547352 + expression: 'find(/HAProxy by Zabbix agent/haproxy.server.check_status[{#PXNAME},{#SVNAME}],#3,"regexp","(?:L[4-7]OK|^$)")=0' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Health check error' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the server for faults.' + dependencies: + - name: 'HAProxy: {#PXNAME} {#SVNAME}: Server is DOWN' + expression: 'count(/HAProxy by Zabbix agent/haproxy.server.status[{#PXNAME},{#SVNAME}],#5,"eq","DOWN")=5' + tags: + - tag: scope + value: notice + - uuid: 537f0b807f784b6cba1032ff77fad499 + name: '{#PXNAME} {#SVNAME}: Responses denied per second' + type: DEPENDENT + key: 'haproxy.server.dresp.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Responses denied due to security concerns (ACL-restricted).' + preprocessing: + - type: JSONPATH + parameters: + - $.dresp + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: f688e1e62fa94d1db1d59735094f0bc4 + name: '{#PXNAME} {#SVNAME}: Errors connection per second' + type: DEPENDENT + key: 'haproxy.server.econ.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of requests that encountered an error attempting to connect to a backend server.' + preprocessing: + - type: JSONPATH + parameters: + - $.econ + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: connections + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: bdcac24a8b1e4dd5a441edb61ca13156 + name: '{#PXNAME} {#SVNAME}: Response errors per second' + type: DEPENDENT + key: 'haproxy.server.eresp.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of requests whose responses yielded an error.' + preprocessing: + - type: JSONPATH + parameters: + - $.eresp + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: 5a982a97f812468eb8e7163f06f0ee77 + expression: 'min(/HAProxy by Zabbix agent/haproxy.server.eresp.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_ERESP.MAX.WARN}' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Number of responses with error is high' + event_name: 'HAProxy: {#PXNAME} {#SVNAME}: Number of responses with error is more than {$HAPROXY.SERVER_ERESP.MAX.WARN} for 5m' + priority: WARNING + description: 'Number of requests on server, whose responses yielded an error, is more than {$HAPROXY.SERVER_ERESP.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: 71fbb982c23c498fb52b68b3f839c642 + name: '{#PXNAME} {#SVNAME}: Number of responses with codes 1xx per second' + type: DEPENDENT + key: 'haproxy.server.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of informational HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_1xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: a1aa6301ea1445bdbc509ec31cc9ebfc + name: '{#PXNAME} {#SVNAME}: Number of responses with codes 2xx per second' + type: DEPENDENT + key: 'haproxy.server.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of successful HTTP responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_2xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 5b5576604886429ca22db333c9886c25 + name: '{#PXNAME} {#SVNAME}: Number of responses with codes 3xx per second' + type: DEPENDENT + key: 'haproxy.server.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP redirections per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_3xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 3af9ae3041bb4cd588cc6048370d9be7 + name: '{#PXNAME} {#SVNAME}: Number of responses with codes 4xx per second' + type: DEPENDENT + key: 'haproxy.server.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP client errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_4xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 9f2f6e181dca47ab8e1ae9064ab9fe15 + name: '{#PXNAME} {#SVNAME}: Number of responses with codes 5xx per second' + type: DEPENDENT + key: 'haproxy.server.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP server errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.hrsp_5xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: responses + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 8a7257e803b84783a8c9964807a336a5 + name: '{#PXNAME} {#SVNAME}: Server was selected per second' + type: DEPENDENT + key: 'haproxy.server.lbtot.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of times that server was selected.' + preprocessing: + - type: JSONPATH + parameters: + - $.lbtot + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: connections + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 03c6d54204104fa0a320ff76204fc825 + name: '{#PXNAME} {#SVNAME}: Unassigned requests' + type: DEPENDENT + key: 'haproxy.server.qcur[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Current number of requests unassigned in queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.qcur + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: b88e0b4baa2e4738a161a7fc437d6e1c + expression: 'min(/HAProxy by Zabbix agent/haproxy.server.qcur[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_QCUR.MAX.WARN}' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Current number of requests unassigned in queue is high' + event_name: 'HAProxy: {#PXNAME} {#SVNAME}: Current number of requests unassigned in queue is more than {$HAPROXY.SERVER_QCUR.MAX.WARN} for 5m' + priority: WARNING + description: 'Current number of requests unassigned in queue is more than {$HAPROXY.SERVER_QCUR.MAX.WARN}.' + tags: + - tag: scope + value: notice + - uuid: 50a837b40d624492b0248324d8b62694 + name: '{#PXNAME} {#SVNAME}: Configured maxqueue' + type: DEPENDENT + key: 'haproxy.server.qlimit[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Configured maxqueue for the server, or nothing in the value is 0 (default, meaning no limit).' + preprocessing: + - type: JSONPATH + parameters: + - $.qlimit + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: MATCHES_REGEX + parameters: + - ^\d+$ + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: queues + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 58c074ebc26145a6847d425d51f7cbca + name: '{#PXNAME} {#SVNAME}: Time in queue' + type: DEPENDENT + key: 'haproxy.server.qtime[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average time spent in queue (in ms) for the last 1,024 requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.qtime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: abf3d9e3f6fa43d8bf722bcc58c37388 + expression: 'min(/HAProxy by Zabbix agent/haproxy.server.qtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_QTIME.MAX.WARN}' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Average time spent in queue is high' + event_name: 'HAProxy: {#PXNAME} {#SVNAME}: Average time spent in queue is more than {$HAPROXY.SERVER_QTIME.MAX.WARN} for 5m' + priority: WARNING + description: 'Average time spent in queue (in ms) for the last 1,024 requests is more than {$HAPROXY.SERVER_QTIME.MAX.WARN}.' + tags: + - tag: scope + value: performance + - uuid: 3db97a60d637466bb7038dd08b9f5c7e + name: 'Server {#PXNAME} {#SVNAME}: Raw data' + type: DEPENDENT + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the Server named `{#SVNAME}` and the proxy with the name `{#PXNAME}`' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()' + master_item: + key: 'web.page.get["{$HAPROXY.STATS.SCHEME}://{$HAPROXY.STATS.HOST}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH};csv"]' + tags: + - tag: component + value: raw + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 25c22d3eca2d4eb7b83791d36edcf470 + name: '{#PXNAME} {#SVNAME}: Responses time' + type: DEPENDENT + key: 'haproxy.server.rtime[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average server response time (in ms) for the last 1,024 requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.rtime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: health + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: 51ae2aca459b453cb433c5cc0f043a25 + expression: 'min(/HAProxy by Zabbix agent/haproxy.server.rtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_RTIME.MAX.WARN}' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Average response time is high' + event_name: 'HAProxy: {#PXNAME} {#SVNAME}: Average response time is more than {$HAPROXY.SERVER_RTIME.MAX.WARN} for 5m' + priority: WARNING + description: 'Average server response time (in ms) for the last 1,024 requests is more than {$HAPROXY.SERVER_RTIME.MAX.WARN}.' + tags: + - tag: scope + value: performance + - uuid: 973e886a54374bd4815f71d9f9174e80 + name: '{#PXNAME} {#SVNAME}: Status' + type: DEPENDENT + key: 'haproxy.server.status[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: health + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + trigger_prototypes: + - uuid: ec64ec00aa164ac09faf90794264907a + expression: 'count(/HAProxy by Zabbix agent/haproxy.server.status[{#PXNAME},{#SVNAME}],#5,"eq","DOWN")=5' + name: 'HAProxy: {#PXNAME} {#SVNAME}: Server is DOWN' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Server is not available.' + tags: + - tag: scope + value: availability + - uuid: 6f5c20d65ba34afbb47cd65af1d1b368 + name: '{#PXNAME} {#SVNAME}: Sessions per second' + type: DEPENDENT + key: 'haproxy.server.stot.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Cumulative number of sessions (end-to-end connections) per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.stot + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: sessions + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 02605cd644e14e2398af89433a6d976d + name: '{#PXNAME} {#SVNAME}: Weight' + type: DEPENDENT + key: 'haproxy.server.weight[{#PXNAME},{#SVNAME}]' + delay: '0' + description: 'Effective weight.' + preprocessing: + - type: JSONPATH + parameters: + - $.weight + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: balancer + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 606acc119e0d4d9c934e200e037434fe + name: '{#PXNAME} {#SVNAME}: Redispatched requests per second' + type: DEPENDENT + key: 'haproxy.server.wredis.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of times a request was redispatched to a different backend.' + preprocessing: + - type: JSONPATH + parameters: + - $.wredis + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: requests + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + - uuid: 1e2188320b834562b6b33e96f90a5b44 + name: '{#PXNAME} {#SVNAME}: Retried connections per second' + type: DEPENDENT + key: 'haproxy.server.wretr.rate[{#PXNAME},{#SVNAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of times a connection was retried.' + preprocessing: + - type: JSONPATH + parameters: + - $.wretr + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'haproxy.server.raw[{#PXNAME},{#SVNAME}]' + tags: + - tag: component + value: connections + - tag: server + value: '{#PXNAME}' + - tag: service + value: '{#SVNAME}' + graph_prototypes: + - uuid: 15210cbf31ab459ca77d35206255f317 + name: 'HAProxy: {#PXNAME} {#SVNAME} In/Out traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.server.bin.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.server.bout.rate[{#PXNAME},{#SVNAME}]' + - uuid: 09fb856698f441b29103e3b8c8bcb8dd + name: 'HAProxy: {#PXNAME} {#SVNAME} Responses by HTTP code' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.server.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.server.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.server.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.server.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.server.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]' + - uuid: e3e10b66deb14b33a436481cc34eeb84 + name: 'HAProxy: {#PXNAME} {#SVNAME} Response time and time in queue' + graph_items: + - color: 199C0D + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.server.rtime[{#PXNAME},{#SVNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HAProxy by Zabbix agent' + key: 'haproxy.server.qtime[{#PXNAME},{#SVNAME}]' + master_item: + key: haproxy.get.nodes + lld_macro_paths: + - lld_macro: '{#MODE}' + path: $.mode + - lld_macro: '{#PXNAME}' + path: $.pxname + - lld_macro: '{#SVNAME}' + path: $.svname + overrides: + - name: 'Discard HTTP status codes' + step: '1' + filter: + conditions: + - macro: '{#MODE}' + value: tcp + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Number of responses with codes' + discover: NO_DISCOVER + status: ENABLED + tags: + - tag: class + value: software + - tag: target + value: haproxy + macros: + - macro: '{$HAPROXY.BACK_ERESP.MAX.WARN}' + value: '10' + description: 'Maximum of responses with error on BACKEND for trigger expression.' + - macro: '{$HAPROXY.BACK_QCUR.MAX.WARN}' + value: '10' + description: 'Maximum number of requests on BACKEND unassigned in queue for trigger expression.' + - macro: '{$HAPROXY.BACK_QTIME.MAX.WARN}' + value: 10s + description: 'Maximum of average time spent in queue on BACKEND for trigger expression.' + - macro: '{$HAPROXY.BACK_RTIME.MAX.WARN}' + value: 10s + description: 'Maximum of average BACKEND response time for trigger expression.' + - macro: '{$HAPROXY.FRONT_DREQ.MAX.WARN}' + value: '10' + description: 'The HAProxy maximum denied requests for trigger expression.' + - macro: '{$HAPROXY.FRONT_EREQ.MAX.WARN}' + value: '10' + description: 'The HAProxy maximum number of request errors for trigger expression.' + - macro: '{$HAPROXY.FRONT_SUTIL.MAX.WARN}' + value: '80' + description: 'Maximum of session usage percentage on frontend for trigger expression.' + - macro: '{$HAPROXY.RESPONSE_TIME.MAX.WARN}' + value: 10s + description: 'The HAProxy stats page maximum response time in seconds for trigger expression.' + - macro: '{$HAPROXY.SERVER_ERESP.MAX.WARN}' + value: '10' + description: 'Maximum of responses with error on server for trigger expression.' + - macro: '{$HAPROXY.SERVER_QCUR.MAX.WARN}' + value: '10' + description: 'Maximum number of requests on server unassigned in queue for trigger expression.' + - macro: '{$HAPROXY.SERVER_QTIME.MAX.WARN}' + value: 10s + description: 'Maximum of average time spent in queue on server for trigger expression.' + - macro: '{$HAPROXY.SERVER_RTIME.MAX.WARN}' + value: 10s + description: 'Maximum of average server response time for trigger expression.' + - macro: '{$HAPROXY.STATS.HOST}' + value: localhost + description: 'The hostname or IP address of the HAProxy stats host or container.' + - macro: '{$HAPROXY.STATS.PATH}' + value: stats + description: 'The path of HAProxy stats page.' + - macro: '{$HAPROXY.STATS.PORT}' + value: '8404' + description: 'The port of the HAProxy stats host or container.' + - macro: '{$HAPROXY.STATS.SCHEME}' + value: http + description: 'The scheme of HAProxy stats page(http/https).' + dashboards: + - uuid: 6d515de988274ac6b31938eebd175973 + name: 'HAProxy Backend performance' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by Zabbix agent' + name: 'HAProxy: Backend {#PXNAME} Redispatched requests and retried connections per second' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by Zabbix agent' + name: 'HAProxy: Backend {#PXNAME} Responses by HTTP code' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by Zabbix agent' + name: 'HAProxy: Backend {#PXNAME} In/Out traffic' + - type: STRING + name: reference + value: AAAAG + - uuid: 7c4decb2fefc4cfe9c4a3f8717d710ca + name: 'HAProxy Frontend performance' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by Zabbix agent' + name: 'HAProxy: Frontend {#PXNAME} Requests and sessions per second' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by Zabbix agent' + name: 'HAProxy: Frontend {#PXNAME} Errors and denials per second' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by Zabbix agent' + name: 'HAProxy: Frontend {#PXNAME} Responses by HTTP code' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by Zabbix agent' + name: 'HAProxy: Frontend {#PXNAME} In/Out traffic' + - type: STRING + name: reference + value: AAAAD + - uuid: ebc5a517fa544fada42550059c014c5b + name: 'HAProxy Server performance' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by Zabbix agent' + name: 'HAProxy: {#PXNAME} {#SVNAME} Response time and time in queue' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by Zabbix agent' + name: 'HAProxy: {#PXNAME} {#SVNAME} Responses by HTTP code' + - type: STRING + name: reference + value: AAAAI + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HAProxy by Zabbix agent' + name: 'HAProxy: {#PXNAME} {#SVNAME} In/Out traffic' + - type: STRING + name: reference + value: AAAAJ + valuemaps: + - uuid: bf2e9463450d4f4899abcac85cde0a92 + name: 'Server mode' + mappings: + - value: '0' + newvalue: '-' + - value: '1' + newvalue: 'Y' + - uuid: 4980ec41c6644ecb9d5b52027a381fd8 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up diff --git a/HP-UX_by_Zabbix_agent.yaml b/HP-UX_by_Zabbix_agent.yaml new file mode 100644 index 0000000..505f80a --- /dev/null +++ b/HP-UX_by_Zabbix_agent.yaml @@ -0,0 +1,876 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: b1fd823d262042e08291313f72be9452 + template: 'HP-UX by Zabbix agent' + name: 'HP-UX by Zabbix agent' + description: | + This is an official HP-UX template. It requires Zabbix agent 7.0 or newer. + + Notes on filesystem (FS) discovery: + - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default. + - BTRFS allocates a default of 10% of the volume for its own needs. + - To mitigate potential disasters, FS usage triggers are based on the maximum available space. + - Utilization formula: 'pused = 100 - 100 * (available / total - free + available)' + - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: 27949a6910304d39b3d2a68c90525581 + name: 'Host name of Zabbix agent running' + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 98507eac4f70420698dc234c2a6e3198 + name: 'Zabbix agent ping' + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + - uuid: 3f456ce86b284b089f545d8c72c64405 + name: 'Version of Zabbix agent running' + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: bcba4702a58d48339c6e7e49dea574c4 + name: 'Processor load (1 min average per core)' + key: 'system.cpu.load[percpu,avg1]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + triggers: + - uuid: 6721e8fbe5ee45aa9d06b698210a268a + expression: 'avg(/HP-UX by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5' + name: 'HP-UX: Processor load is too high' + priority: WARNING + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 60057d54b81342f4aaa0103a278bf7b6 + name: 'Processor load (5 min average per core)' + key: 'system.cpu.load[percpu,avg5]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 296dbd5148184004b26ac50ae5e6893b + name: 'Processor load (15 min average per core)' + key: 'system.cpu.load[percpu,avg15]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 2b82ccaf9eb1424593e2738a5512e182 + name: 'CPU idle time' + key: 'system.cpu.util[,idle]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent doing nothing.' + tags: + - tag: component + value: cpu + - uuid: 8665bd2dc84e46daa081a379548b0603 + name: 'CPU nice time' + key: 'system.cpu.util[,nice]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that have been niced.' + tags: + - tag: component + value: cpu + - uuid: 8419321f4744476ea27b7d1acddcd365 + name: 'CPU system time' + key: 'system.cpu.util[,system]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running the kernel and its processes.' + tags: + - tag: component + value: cpu + - uuid: 611c9a3c70aa4455b6ec7bebe64b5316 + name: 'CPU user time' + key: 'system.cpu.util[,user]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that are not niced.' + tags: + - tag: component + value: cpu + - uuid: 6e3b32f3f92543759ef2f30834899ba0 + name: 'Host name' + key: system.hostname + delay: 1h + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 07215ae05345423d8625962b85d9d4ec + expression: 'last(/HP-UX by Zabbix agent/system.hostname,#1)<>last(/HP-UX by Zabbix agent/system.hostname,#2)' + name: 'HP-UX: Hostname was changed' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 16c6c420c710498083355361b104f7a2 + name: 'Host local time' + key: system.localtime + units: unixtime + tags: + - tag: component + value: os + - uuid: b66598337e0e4990a2776d2a42020e72 + name: 'System information' + key: system.uname + delay: 1h + value_type: CHAR + trends: '0' + description: 'Information as normally returned by `uname -a`.' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 34f76014b2d3434a8d1f1f0657b5605f + expression: 'last(/HP-UX by Zabbix agent/system.uname,#1)<>last(/HP-UX by Zabbix agent/system.uname,#2)' + name: 'HP-UX: Host information was changed' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: bb698e97aa1b45ebadcb48da729b8e64 + name: 'Number of logged in users' + key: system.users.num + description: 'The number of users who are currently logged in.' + tags: + - tag: component + value: os + - uuid: 4e11e7c5d43a4566989b39dbc0c23266 + name: 'Checksum of /etc/passwd' + key: 'vfs.file.cksum[/etc/passwd,sha256]' + delay: 15m + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: security + triggers: + - uuid: f65c254d50e2454d9840784ff979f5d3 + expression: 'last(/HP-UX by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/HP-UX by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)' + name: 'HP-UX: /etc/passwd has been changed' + priority: WARNING + tags: + - tag: scope + value: security + - uuid: 05adecd1fb3e4c85b826dfdd601fa444 + name: 'Get filesystems' + key: vfs.fs.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.' + tags: + - tag: component + value: raw + - uuid: 767abadfa8be4bccb2c4c5a1d532ba87 + name: 'Available memory' + key: 'vm.memory.size[available]' + units: B + description: 'Defined as free + cached + buffers.' + tags: + - tag: component + value: memory + triggers: + - uuid: 005730efb6a94c4a83c4265f42aa8dff + expression: 'last(/HP-UX by Zabbix agent/vm.memory.size[available])<20M' + name: 'HP-UX: Lack of available memory on server' + priority: AVERAGE + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 6da082e7f822465592f66e2bd0a46947 + name: 'Total memory' + key: 'vm.memory.size[total]' + delay: 1h + units: B + description: 'Total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 5b0a1ce4ca4a441484eea38724eaf24d + name: 'Zabbix agent availability' + type: INTERNAL + key: 'zabbix[host,agent,available]' + description: 'Used for monitoring the availability status of the agent.' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: ce008290ad6341b98386adf9ea5c315b + expression: 'max(/HP-UX by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0' + name: 'HP-UX: Zabbix agent is not available' + event_name: 'HP-UX: Zabbix agent is not available (for {$AGENT.TIMEOUT})' + priority: AVERAGE + description: 'For passive checks only; the availability of the agent(s) and a host is used with `{$AGENT.TIMEOUT}` as the time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 83058e954f1d497d8c33c82c771d2250 + name: 'Network interface discovery' + key: net.if.discovery + delay: 1h + filter: + conditions: + - macro: '{#IFNAME}' + value: '@Network interfaces for discovery' + formulaid: A + description: 'Used for the discovery of network interfaces.' + item_prototypes: + - uuid: 1c1dc757da2a43c4827734e4b7b3fcd2 + name: 'Interface {#IFNAME}: Incoming network traffic' + key: 'net.if.in[{#IFNAME}]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: 4de64b1ecae344afa12f892937caa04e + name: 'Interface {#IFNAME}: Outgoing network traffic' + key: 'net.if.out[{#IFNAME}]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + graph_prototypes: + - uuid: dec3568ab5e7457da4a81d32a8ba2b72 + name: 'Interface {#IFNAME}: Network traffic' + graph_items: + - color: 199C0D + item: + host: 'HP-UX by Zabbix agent' + key: 'net.if.in[{#IFNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'HP-UX by Zabbix agent' + key: 'net.if.out[{#IFNAME}]' + - uuid: 883b3a5efab34685b9e6c9a84a6bec84 + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: vfs.fs.dependent.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'The discovery of mounted filesystems with different types.' + item_prototypes: + - uuid: dbf8305aadb049a58b19a50d4e36fde9 + name: 'FS [{#FSNAME}]: Inodes: Free, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free metadata space expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.inodes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 5d4dfbb35c964fcabb0fe620721be04b + expression: 'min(/HP-UX by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + name: 'HP-UX: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'HP-UX: {#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 9d7587a6cae149d69e90cdefa024d254 + expression: 'min(/HP-UX by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' + name: 'HP-UX: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'HP-UX: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + dependencies: + - name: 'HP-UX: FS [{#FSNAME}]: Running out of free inodes' + expression: 'min(/HP-UX by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 75efb4ab311848ec9bbb03cf05efef8b + name: 'FS [{#FSNAME}]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + delay: '0' + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.free + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 707d7dfb2dc243d49e4623f1d043a5b7 + name: 'FS [{#FSNAME}]: Space: Available, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Deprecated metric. + Space availability expressed as a percentage, calculated using the current and maximum available spaces. + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: deprecated + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: af6e353e663348399a00dffcf44e146e + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pused + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 6092ea142cc94f128227189170903f69 + expression: 'min(/HP-UX by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'HP-UX: FS [{#FSNAME}]: Space is critically low' + event_name: 'HP-UX: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 07153df58e1a4a2bad7bf27a1ddf24a0 + expression: 'min(/HP-UX by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'HP-UX: FS [{#FSNAME}]: Space is low' + event_name: 'HP-UX: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'HP-UX: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/HP-UX by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 3d75a99c05bf41a2b63ce2b0caf4a6cc + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + delay: '0' + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.total + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 0aa8dd5bbaea4f35808ef735f0cec18d + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + delay: '0' + units: B + description: 'Used storage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.used + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 1c47446da541403b8c0a28edbca98278 + name: 'FS [{#FSNAME}]: Get data' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},data]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Intermediate data of `{#FSNAME}` filesystem.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.fsname==''{#FSNAME}'')].first()' + master_item: + key: vfs.fs.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: f4fa51ffae1642889cd4d0003a1cd054 + name: 'FS [{#FSNAME}]: Option: Read-only' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},readonly]' + delay: '0' + description: 'The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.' + preprocessing: + - type: JSONPATH + parameters: + - $.options + error_handler: DISCARD_VALUE + - type: REGEX + parameters: + - '(?:^|,)ro\b' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: c678e20762674346932f0107b4f7ec8c + expression: 'last(/HP-UX by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/HP-UX by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=1' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/HP-UX by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=0' + name: 'HP-UX: FS [{#FSNAME}]: Filesystem has become read-only' + priority: AVERAGE + description: 'The filesystem has become read-only, possibly due to an I/O error. Available only for Zabbix agents 6.4 and higher.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: b2339666d71349a1a3eb320245edebb7 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'HP-UX by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + - uuid: 79e18c9b083b4381b9f436b6494b9e4b + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'HP-UX by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'HP-UX by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'HP-UX by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + master_item: + key: vfs.fs.get + lld_macro_paths: + - lld_macro: '{#FSNAME}' + path: $.fsname + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'fsname': filesystem.fsname, + 'fstype': filesystem.fstype + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Skip metadata collection for dynamic FS' + step: '1' + filter: + conditions: + - macro: '{#FSTYPE}' + value: ^(btrfs|zfs)$ + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Inodes + discover: NO_DISCOVER + tags: + - tag: class + value: os + - tag: target + value: hp-ux + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 3m + description: 'The timeout after which the agent is considered unavailable. It works only for the agents reachable from Zabbix server/proxy (in passive mode).' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: 9f1aabe4506e4d4984d8fdc798284086 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HP-UX by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HP-UX by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + - type: STRING + name: reference + value: AAAEC + - uuid: cbac7a8959574b308d1c1e23cf3760ee + name: 'System performance' + pages: + - widgets: + - type: graph + name: 'CPU load' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HP-UX by Zabbix agent' + name: 'HP-UX: CPU load' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Memory usage' + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HP-UX by Zabbix agent' + name: 'HP-UX: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HP-UX by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEA + - type: graph + name: 'CPU utilization' + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HP-UX by Zabbix agent' + name: 'HP-UX: CPU utilization' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 663bea44626447b5a72a71238dfda919 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 3f4bc88020d444e1b951aebfa8f3dfb8 + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up + graphs: + - uuid: 808ceffbcb844def962b03d6fa7a3496 + name: 'HP-UX: CPU load' + graph_items: + - color: 199C0D + item: + host: 'HP-UX by Zabbix agent' + key: 'system.cpu.load[percpu,avg1]' + - sortorder: '1' + color: F63100 + item: + host: 'HP-UX by Zabbix agent' + key: 'system.cpu.load[percpu,avg5]' + - sortorder: '2' + color: 00611C + item: + host: 'HP-UX by Zabbix agent' + key: 'system.cpu.load[percpu,avg15]' + - uuid: 8c47ac69fba642f4827fcad01b3a0379 + name: 'HP-UX: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'HP-UX by Zabbix agent' + key: 'system.cpu.util[,nice]' + - sortorder: '1' + color: F63100 + item: + host: 'HP-UX by Zabbix agent' + key: 'system.cpu.util[,system]' + - sortorder: '2' + color: 00611C + item: + host: 'HP-UX by Zabbix agent' + key: 'system.cpu.util[,user]' + - sortorder: '3' + color: F7941D + item: + host: 'HP-UX by Zabbix agent' + key: 'system.cpu.util[,idle]' + - uuid: 4cf12f1ea3934cb99f76c20916067a71 + name: 'HP-UX: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'HP-UX by Zabbix agent' + key: 'vm.memory.size[available]' diff --git a/HPE_MSA_2040_Storage_by_HTTP.yaml b/HPE_MSA_2040_Storage_by_HTTP.yaml new file mode 100644 index 0000000..c2bf508 --- /dev/null +++ b/HPE_MSA_2040_Storage_by_HTTP.yaml @@ -0,0 +1,4332 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 7c2cb727f85b492d88cd56e17127c64d + name: Templates/SAN + templates: + - uuid: be10b1140fce4cc08247260b71bcd037 + template: 'HPE MSA 2040 Storage by HTTP' + name: 'HPE MSA 2040 Storage by HTTP' + description: | + The template to monitor HPE MSA 2040 by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create a user with a monitor role on the storage, for example "zabbix". + 2. Link the template to a host. + 3. Set the hostname or IP address of the host in the {$HPE.MSA.API.HOST} macro and configure the username and password in the {$HPE.MSA.API.USERNAME} and {$HPE.MSA.API.PASSWORD} macros. + 4. Change the {$HPE.MSA.API.SCHEME} and {$HPE.MSA.API.PORT} macros if needed. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/SAN + items: + - uuid: da724e20acee406b8dce3a1be24945a8 + name: 'Get disk group statistics' + type: DEPENDENT + key: hpe.msa.disks.get.groups.statistics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Disk groups statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''disk-group-statistics'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 4a9a463f471c4c3bba031acab3c4d72e + name: 'Get controllers' + type: DEPENDENT + key: hpe.msa.get.controllers + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Controllers data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''controllers'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 54c0f623616a4f5c9505c0ae0ff6a85b + name: 'Get controller statistics' + type: DEPENDENT + key: hpe.msa.get.controller_statistics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Controllers statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''controller-statistics'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: e07e09dbcdd44f509a06343c9a53a455 + name: 'Get data' + type: SCRIPT + key: hpe.msa.get.data + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + fields = ['username', 'password', 'base_url'], + methods = [ + 'system', + 'controllers', + 'controller-statistics', + 'frus', + 'disk-groups', + 'disk-group-statistics', + 'disks', + 'enclosures', + 'fans', + 'pools', + 'ports', + 'power-supplies', + 'volumes', + 'volume-statistics' + ], + data_tmp = {}, + result_tmp = {}, + session_key, + data = {}; + + fields.forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + }); + + if (!params.base_url.endsWith('/')) { + params.base_url += '/'; + } + + var tls = new CTlsConfig(params.tls_verify); + tls.checkURL(params.base_url); + + var response, request = new HttpRequest(tls.options); + request.addHeader('datatype: xml'); + + auth_string = md5(params.username + '_' + params.password); + response = request.get(params.base_url + 'api/login/' + auth_string); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Authentication request has failed with status code ' + request.getStatus() + ': ' + response; + } + + if (response !== null) { + try { + session_key = XML.query(response, '/RESPONSE/OBJECT/PROPERTY[@name="response"]/text()'); + return_code = XML.query(response, '/RESPONSE/OBJECT/PROPERTY[@name="return-code"]/text()'); + } + catch (error) { + throw 'Failed to parse authentication response received from device API.'; + } + } + + if (return_code != '1') { + throw 'Authentication failed.'; + } + else if (session_key === '') { + throw 'Failed to retrieve session key from authentication response.'; + } + + request.clearHeader(); + request.addHeader('sessionKey: ' + session_key); + request.addHeader('datatype: api-embed'); + + data.errors = []; + + methods.forEach(function (method) { + response = request.get(params.base_url + 'api/show/' + method); + method_error = ''; + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + method_error = 'Method: ' + method + '. Request has failed with status code ' + request.getStatus() + ': ' + response; + data.errors.push(method_error); + return; + } + + if (response !== null) { + try { + result_tmp = JSON.parse(XML.toJson(response)); + data[method] = []; + + result_tmp.RESPONSE.OBJECT.forEach(function (object) { + var data_tmp = {}; + + if (object['@basetype'] !== 'status' && object['@basetype'] !== 'enclosure-sku') { + object.PROPERTY.forEach(function (property) { + name = property['@name']; + value = property['#text'] || ''; + data_tmp[name] = value; + }); + + if (method == 'controller-statistics') { + data_tmp['durable-id'] = data_tmp['durable-id'].toLowerCase(); + } + + data[method].push(data_tmp); + } + }); + } + catch (error) { + method_error = 'Method: ' + method + '. Failed to parse response received from device API.'; + } + } + else { + method_error = 'Method: ' + method + '. No data received by request.'; + } + + if (method_error.length > 0) { + data.errors.push(method_error); + } + }); + + if (data.errors.length == 0) { + data.errors = ''; + } + + response = request.get(params.base_url + 'api/exit'); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Logout request failed with status code ' + request.getStatus() + ': ' + response; + } + + return JSON.stringify(data); + description: 'The JSON with result of API requests.' + timeout: '{$HPE.MSA.DATA.TIMEOUT}' + parameters: + - name: base_url + value: '{$HPE.MSA.API.SCHEME}://{$HPE.MSA.API.HOST}:{$HPE.MSA.API.PORT}/' + - name: password + value: '{$HPE.MSA.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"HPE MSA 2040 Storage"}' + - name: username + value: '{$HPE.MSA.API.USERNAME}' + tags: + - tag: component + value: raw + - uuid: d4c534635bb74c2e8db99d68df6f9da2 + name: 'Get disks' + type: DEPENDENT + key: hpe.msa.get.disks + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Disks data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''disks'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 3dc7a4c4e70c48f995d7d65c1652198a + name: 'Get disk groups' + type: DEPENDENT + key: hpe.msa.get.disks.groups + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Disk groups data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''disk-groups'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 2e94a9c8fe5f4d6c90458b13cf1f6d64 + name: 'Get enclosures' + type: DEPENDENT + key: hpe.msa.get.enclosures + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Enclosures data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''enclosures'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 51d0ae1b4663471d868c27ccd2fb4fed + name: 'Get method errors' + type: DEPENDENT + key: hpe.msa.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of method errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''errors'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: errors + triggers: + - uuid: 7f80562a0b4f4329be454c418de3f517 + expression: 'length(last(/HPE MSA 2040 Storage by HTTP/hpe.msa.get.errors))>0' + name: 'HPE MSA 2040 Storage: There are errors in method requests to API' + priority: AVERAGE + description: 'There are errors in method requests to API.' + dependencies: + - name: 'HPE MSA 2040 Storage: Service is down or unavailable' + expression: 'max(/HPE MSA 2040 Storage by HTTP/net.tcp.service["{$HPE.MSA.API.SCHEME}","{$HPE.MSA.API.HOST}","{$HPE.MSA.API.PORT}"],5m)=0' + tags: + - tag: scope + value: availability + - uuid: 2b356e770025451e94e899123a2efc1b + name: 'Get fans' + type: DEPENDENT + key: hpe.msa.get.fans + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Fans data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''fans'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: ae00d12bb47e4c25b79a47ca8dc49538 + name: 'Get FRU' + type: DEPENDENT + key: hpe.msa.get.fru + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'FRU data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''frus'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 3151c9e9e3bf4e6c9305848cfd2c77c5 + name: 'Get pools' + type: DEPENDENT + key: hpe.msa.get.pools + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Pools data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''pools'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 2c4012cbf947439f8938b9d432257067 + name: 'Get ports' + type: DEPENDENT + key: hpe.msa.get.ports + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Ports data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''ports'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: a24264fada444ed68f48d8b2ff17ab15 + name: 'Get power supplies' + type: DEPENDENT + key: hpe.msa.get.power_supplies + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Power supplies data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''power-supplies'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: f9ec5e52bf22476d997c9ec5c445f11b + name: 'Get system' + type: DEPENDENT + key: hpe.msa.get.system + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The system data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.system[0]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: e67d5b42bf1b431ab9b1659377195d82 + name: 'Get volumes' + type: DEPENDENT + key: hpe.msa.get.volumes + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Volumes data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''volumes'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: d6ef8a24c09a478c817a1a7121bd383f + name: 'Get volume statistics' + type: DEPENDENT + key: hpe.msa.get.volumes.statistics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Volumes statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''volume-statistics'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 802692ec1429407a8bbb55e338959c0b + name: 'System contact' + type: DEPENDENT + key: hpe.msa.system.contact + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the person who administers the system.' + inventory_link: CONTACT + preprocessing: + - type: JSONPATH + parameters: + - '$.[''system-contact'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: 4516edee03084515bcf139c22abc4c7c + name: 'System health' + type: DEPENDENT + key: hpe.msa.system.health + delay: '0' + description: 'System health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: ee37a443b22a4161a88014a0c32dfdfa + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.system.health)=1' + name: 'HPE MSA 2040 Storage: System health is in degraded state' + priority: WARNING + description: 'System health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 54472b6cdf84418baf10b4a7d5e16e5c + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.system.health)=2' + name: 'HPE MSA 2040 Storage: System health is in fault state' + priority: AVERAGE + description: 'System health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: ccb821dafad1404dbc1873561a69b7cc + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.system.health)=3' + name: 'HPE MSA 2040 Storage: System health is in unknown state' + priority: INFO + description: 'System health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: 6b82f7545a334f9cad752bd18f8886bc + name: 'System information' + type: DEPENDENT + key: hpe.msa.system.info + delay: '0' + value_type: CHAR + trends: '0' + description: 'A brief description of what the system is used for or how it is configured.' + inventory_link: NOTES + preprocessing: + - type: JSONPATH + parameters: + - '$.[''system-information'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: c5f082947e844adbbcf2982ad9c0c76e + name: 'System location' + type: DEPENDENT + key: hpe.msa.system.location + delay: '0' + value_type: CHAR + trends: '0' + description: 'The location of the system.' + inventory_link: LOCATION + preprocessing: + - type: JSONPATH + parameters: + - '$.[''system-location'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: 419165bfe80f46f7af1c5d6ab46c1f14 + name: 'System name' + type: DEPENDENT + key: hpe.msa.system.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the storage system.' + inventory_link: NAME + preprocessing: + - type: JSONPATH + parameters: + - '$.[''system-name'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: 79c87a81895f46658f2e902cf7166860 + name: 'Product ID' + type: DEPENDENT + key: hpe.msa.system.product_id + delay: '0' + value_type: CHAR + trends: '0' + description: 'The product model identifier.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - '$.[''product-id'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: 947bb21483e747c9ad13b995b79289c0 + name: 'Vendor name' + type: DEPENDENT + key: hpe.msa.system.vendor_name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The vendor name.' + inventory_link: VENDOR + preprocessing: + - type: JSONPATH + parameters: + - '$.[''vendor-name'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: d1242f5aede14008ae6896123bb944a5 + name: 'Service ping' + type: SIMPLE + key: 'net.tcp.service["{$HPE.MSA.API.SCHEME}","{$HPE.MSA.API.HOST}","{$HPE.MSA.API.PORT}"]' + description: 'Check if HTTP/HTTPS service accepts TCP connections.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b8d07373a0fb4051a0534891b255994a + expression: 'max(/HPE MSA 2040 Storage by HTTP/net.tcp.service["{$HPE.MSA.API.SCHEME}","{$HPE.MSA.API.HOST}","{$HPE.MSA.API.PORT}"],5m)=0' + name: 'HPE MSA 2040 Storage: Service is down or unavailable' + priority: HIGH + description: 'HTTP/HTTPS service is down or unable to establish TCP connection.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 66eabcbe564644dea3427afcbf76b87c + name: 'Controllers discovery' + type: DEPENDENT + key: hpe.msa.controllers.discovery + delay: '0' + description: 'Discover controllers.' + item_prototypes: + - uuid: 53b0ea51add74c629814c881ac824d1b + name: 'Controller [{#CONTROLLER.ID}]: Cache: Read hits, rate' + type: DEPENDENT + key: 'hpe.msa.controllers.cache.read.hits["{#CONTROLLER.ID}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block to be read is found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''read-cache-hits'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 23ed270bc823484cb514600bf23b2aa5 + name: 'Controller [{#CONTROLLER.ID}]: Cache: Read misses, rate' + type: DEPENDENT + key: 'hpe.msa.controllers.cache.read.misses["{#CONTROLLER.ID}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block to be read is not found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''read-cache-misses'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 71a92c76ae7740cd9e58ea337f4a75e3 + name: 'Controller [{#CONTROLLER.ID}]: Cache: Write hits, rate' + type: DEPENDENT + key: 'hpe.msa.controllers.cache.write.hits["{#CONTROLLER.ID}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block written to is found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''write-cache-hits'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: bafcf98cee9c4a8da0aea7b39a5242d4 + name: 'Controller [{#CONTROLLER.ID}]: Cache: Write misses, rate' + type: DEPENDENT + key: 'hpe.msa.controllers.cache.write.misses["{#CONTROLLER.ID}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block written to is not found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''write-cache-misses'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: fa9400f2dcba40f4b57dfcef6f7856a0 + name: 'Controller [{#CONTROLLER.ID}]: Cache: Write utilization' + type: DEPENDENT + key: 'hpe.msa.controllers.cache.write["{#CONTROLLER.ID}",util]' + delay: '0' + units: '%' + description: 'Percentage of write cache in use, from 0 to 100.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''write-cache-used'']' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 38a6ca0447d548c593d08acf377250cb + name: 'Controller [{#CONTROLLER.ID}]: Cache memory size' + type: DEPENDENT + key: 'hpe.msa.controllers.cache["{#CONTROLLER.ID}",total]' + delay: '0' + units: B + description: 'Controller cache memory size.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''cache-memory-size'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: cfff8c77d99440d18794e1c6dbf738ad + name: 'Controller [{#CONTROLLER.ID}]: CPU utilization' + type: DEPENDENT + key: 'hpe.msa.controllers.cpu["{#CONTROLLER.ID}",util]' + delay: '0' + units: '%' + description: 'Percentage of time the CPU is busy, from 0 to 100.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''cpu-load'']' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + trigger_prototypes: + - uuid: b94f1cfd6e6a48f8a18c644532b7a9c8 + expression: 'min(/HPE MSA 2040 Storage by HTTP/hpe.msa.controllers.cpu["{#CONTROLLER.ID}",util],5m)>{$HPE.MSA.CONTROLLER.CPU.UTIL.CRIT}' + name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: High CPU utilization' + event_name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: High CPU utilization (over {$HPE.MSA.CONTROLLER.CPU.UTIL.CRIT}% for 5m)' + priority: WARNING + description: 'Controller CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: c87dc81f4a3447f3962a69a8b0d79769 + name: 'Controller [{#CONTROLLER.ID}]: Data transfer rate: Reads' + type: DEPENDENT + key: 'hpe.msa.controllers.data_transfer.reads["{#CONTROLLER.ID}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data read rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-read-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 7c34d1c4fd784fb695d9fc7c5a686329 + name: 'Controller [{#CONTROLLER.ID}]: Data transfer rate: Total' + type: DEPENDENT + key: 'hpe.msa.controllers.data_transfer.total["{#CONTROLLER.ID}",rate]' + delay: '0' + units: Bps + description: 'The data transfer rate, in bytes per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''bytes-per-second-numeric'']' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 93b508f92de04dfbbfe7099bf37796ce + name: 'Controller [{#CONTROLLER.ID}]: Data transfer rate: Writes' + type: DEPENDENT + key: 'hpe.msa.controllers.data_transfer.writes["{#CONTROLLER.ID}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data write rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-written-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 3d7f1a97cd8249efbabc2402006c1cc2 + name: 'Controller [{#CONTROLLER.ID}]: IOPS, read rate' + type: DEPENDENT + key: 'hpe.msa.controllers.iops.read["{#CONTROLLER.ID}",rate]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: 'Number of read operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-reads'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 8bf0601293a64628be08d16391d1e11b + name: 'Controller [{#CONTROLLER.ID}]: IOPS, total rate' + type: DEPENDENT + key: 'hpe.msa.controllers.iops.total["{#CONTROLLER.ID}",rate]' + delay: '0' + units: '!iops' + description: 'Input/output operations per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''iops'']' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 6444038b72294992ab17c126ccbe7251 + name: 'Controller [{#CONTROLLER.ID}]: IOPS, write rate' + type: DEPENDENT + key: 'hpe.msa.controllers.iops.write["{#CONTROLLER.ID}",rate]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: 'Number of write operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-writes'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 5940d26205924a13ba351f5d56192fcb + name: 'Controller [{#CONTROLLER.ID}]: Disks' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",disks]' + delay: '0' + description: 'Number of disks in the storage system.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''disks'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 94c2c9bfd2414875a53fbe94f6230666 + name: 'Controller [{#CONTROLLER.ID}]: Disk groups' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",disk_groups]' + delay: '0' + description: 'Number of disk groups in the storage system.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''virtual-disks'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 5a987843b14c4d25a1fde4429015f773 + name: 'Controller [{#CONTROLLER.ID}]: Firmware version' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",firmware]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Storage controller firmware version.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''sc-fw'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 6d2a84b6b1804082ab4ef3451a52b552 + name: 'Controller [{#CONTROLLER.ID}]: Health' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",health]' + delay: '0' + description: 'Controller health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: component + value: health + - tag: controller + value: '{#CONTROLLER.ID}' + trigger_prototypes: + - uuid: 381a5fe2adfd4f4ea15763cdf0a1bd0d + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",health])=1' + name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: Controller health is in degraded state' + priority: WARNING + description: 'Controller health is in degraded state.' + dependencies: + - name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: Controller is down' + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",status])=1' + tags: + - tag: scope + value: performance + - uuid: 2082d12ff9c54a5ea709dba05c14ae00 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",health])=2' + name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: Controller health is in fault state' + priority: AVERAGE + description: 'Controller health is in fault state.' + dependencies: + - name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: Controller is down' + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",status])=1' + tags: + - tag: scope + value: availability + - uuid: 0b2ed99c47a64210b198cc0a3a6b84b5 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",health])=3' + name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: Controller health is in unknown state' + priority: INFO + description: 'Controller health is in unknown state.' + dependencies: + - name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: Controller is down' + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",status])=1' + tags: + - tag: scope + value: notice + - uuid: 5f00490ddd22458b93add06ed24a9f96 + name: 'Controller [{#CONTROLLER.ID}]: IP address' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",ip_address]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Controller network port IP address.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''ip-address'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 33e754d5acb84b7c86b2e23b122e6eed + name: 'Controller [{#CONTROLLER.ID}]: Part number' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Part number of the controller.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''part-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: e4930566c3844f9487e343c203f3eb96 + name: 'Controller [{#CONTROLLER.ID}]: Pools' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",pools]' + delay: '0' + description: 'Number of pools in the storage system.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-storage-pools'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: c073adb77eb84cf79e1e1693d9378d47 + name: 'Controller [{#CONTROLLER.ID}]: Serial number' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Storage controller serial number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''serial-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: a2be1b4b814d45b18bb4e313818511d6 + name: 'Controller [{#CONTROLLER.ID}]: Status' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",status]' + delay: '0' + description: 'Storage controller status.' + valuemap: + name: 'Controller status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: component + value: health + - tag: controller + value: '{#CONTROLLER.ID}' + trigger_prototypes: + - uuid: 1524e80a37cb4b64a7360488e132a433 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",status])=1' + name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: Controller is down' + priority: HIGH + description: 'The controller is down.' + tags: + - tag: scope + value: availability + - uuid: df2bede9ea85483581a35a45a15d4de4 + name: 'Controller [{#CONTROLLER.ID}]: Uptime' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",uptime]' + delay: '0' + units: uptime + description: 'Number of seconds since the controller was restarted.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''power-on-time'']' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + trigger_prototypes: + - uuid: 136bb1ccd4114a529a99ddbf803fd974 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",uptime])<10m' + name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: Controller has been restarted' + event_name: 'HPE MSA 2040 Storage: Controller [{#CONTROLLER.ID}]: Controller has been restarted (uptime < 10m)' + priority: WARNING + description: 'The controller uptime is less than 10 minutes.' + tags: + - tag: scope + value: availability + - uuid: 42b163abb92b42a3921364222807843b + name: 'Controller [{#CONTROLLER.ID}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered controller data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.controllers + tags: + - tag: component + value: controller + - tag: component + value: raw + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 682fb8c5a4bd40889dcb76070aaefb06 + name: 'Controller [{#CONTROLLER.ID}]: Get statistics data' + type: DEPENDENT + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered controller statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.controller_statistics + tags: + - tag: component + value: controller + - tag: component + value: raw + - tag: controller + value: '{#CONTROLLER.ID}' + graph_prototypes: + - uuid: 93aeac1a193e43d3a93a3892bd26b0ff + name: 'Controller [{#CONTROLLER.ID}]: Cache: Write utilization' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.controllers.cache.write["{#CONTROLLER.ID}",util]' + - uuid: a7432b24cd834aa0be9dec3935641dfb + name: 'Controller [{#CONTROLLER.ID}]: Cache usage' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.controllers.cache.read.hits["{#CONTROLLER.ID}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.controllers.cache.read.misses["{#CONTROLLER.ID}",rate]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.controllers.cache.write.hits["{#CONTROLLER.ID}",rate]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.controllers.cache.write.misses["{#CONTROLLER.ID}",rate]' + - uuid: fca4007d4dd1491dbceba1644b50e1b5 + name: 'Controller [{#CONTROLLER.ID}]: Controller CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.controllers.cpu["{#CONTROLLER.ID}",util]' + - uuid: 0b2598db582546308d092c9e7889e698 + name: 'Controller [{#CONTROLLER.ID}]: Data transfer rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.controllers.data_transfer.reads["{#CONTROLLER.ID}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.controllers.data_transfer.writes["{#CONTROLLER.ID}",rate]' + - uuid: 0793bb861e874a2c8e7e60a4c40bc34e + name: 'Controller [{#CONTROLLER.ID}]: Disk operations rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.controllers.iops.read["{#CONTROLLER.ID}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.controllers.iops.write["{#CONTROLLER.ID}",rate]' + master_item: + key: hpe.msa.get.controllers + lld_macro_paths: + - lld_macro: '{#CONTROLLER.ID}' + path: '$.[''controller-id'']' + - lld_macro: '{#DURABLE.ID}' + path: '$.[''durable-id'']' + - uuid: 16b9a9b6da11463d865cb2b59f77f376 + name: 'Disks discovery' + type: DEPENDENT + key: hpe.msa.disks.discovery + delay: '0' + description: 'Discover disks.' + item_prototypes: + - uuid: 60418ff95d2b4ac698fe041647656005 + name: 'Disk [{#DURABLE.ID}]: Space total' + type: DEPENDENT + key: 'hpe.msa.disks.space["{#DURABLE.ID}",total]' + delay: '0' + units: B + description: 'Total size of the disk.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''size-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '512' + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 579f29536b0740b9887cbb0863bd3e45 + name: 'Disk [{#DURABLE.ID}]: SSD life left' + type: DEPENDENT + key: 'hpe.msa.disks.ssd["{#DURABLE.ID}",life_left]' + delay: '0' + discover: NO_DISCOVER + units: '%' + description: 'The percentage of disk life remaining.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''ssd-life-left-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: a430bd06d24447649687dc9b9c3dee2c + name: 'Disk [{#DURABLE.ID}]: Disk group' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",group]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'If the disk is in a disk group, the disk group name.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''disk-group'']' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 17f4069e731b45c7a9d9bfc5786a07fc + name: 'Disk [{#DURABLE.ID}]: Health' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",health]' + delay: '0' + description: 'Disk health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: health + - tag: disk + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: 58d2da30bfe74d05ad05e0b286fe0fae + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",health])=1' + name: 'HPE MSA 2040 Storage: Disk [{#DURABLE.ID}]: Disk health is in degraded state' + priority: WARNING + description: 'Disk health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 1f0e81d23e1e423ba885425f33773f5b + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",health])=2' + name: 'HPE MSA 2040 Storage: Disk [{#DURABLE.ID}]: Disk health is in fault state' + priority: AVERAGE + description: 'Disk health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: dc75dd0456a145b3ab0646c9403caeb6 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",health])=3' + name: 'HPE MSA 2040 Storage: Disk [{#DURABLE.ID}]: Disk health is in unknown state' + priority: INFO + description: 'Disk health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: 689e29b31fd0490fb26920c04d094136 + name: 'Disk [{#DURABLE.ID}]: Model' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Disk model.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''model'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 20d37295acce41acac8ba77962130774 + name: 'Disk [{#DURABLE.ID}]: Storage pool' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",pool]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'If the disk is in a pool, the pool name.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''storage-pool-name'']' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 7c4da69f28824444960e6783fe090526 + name: 'Disk [{#DURABLE.ID}]: Serial number' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Disk serial number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''serial-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 770749eafc79429185e7127d95b1ff74 + name: 'Disk [{#DURABLE.ID}]: Temperature' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",temperature]' + delay: '0' + units: '!°C' + description: 'Temperature of the disk.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''temperature-numeric'']' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 5ba57b2f4d014b2a81c546e8f74a133e + name: 'Disk [{#DURABLE.ID}]: Temperature status' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",temperature_status]' + delay: '0' + description: 'Disk temperature status.' + valuemap: + name: 'Disk temperature status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''temperature-status-numeric'']' + error_handler: DISCARD_VALUE + - type: IN_RANGE + parameters: + - '1' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: health + - tag: disk + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: b194f7b133274552823b66e44c88bd02 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",temperature_status])=2' + name: 'HPE MSA 2040 Storage: Disk [{#DURABLE.ID}]: Disk temperature is critically high' + priority: AVERAGE + description: 'Disk temperature is critically high.' + tags: + - tag: scope + value: performance + - uuid: aaabacd5f5194378b6c8388e2ef90abe + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",temperature_status])=3' + name: 'HPE MSA 2040 Storage: Disk [{#DURABLE.ID}]: Disk temperature is high' + priority: WARNING + description: 'Disk temperature is high.' + tags: + - tag: scope + value: performance + - uuid: 60d0fc661aa140798f937a63fdd6e5f9 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",temperature_status])=4' + name: 'HPE MSA 2040 Storage: Disk [{#DURABLE.ID}]: Disk temperature is unknown' + priority: INFO + description: 'Disk temperature is unknown.' + tags: + - tag: scope + value: notice + - uuid: d781943c08d24556a083a16cca34ad58 + name: 'Disk [{#DURABLE.ID}]: Type' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",type]' + delay: '0' + description: | + Disk type: + SAS: Enterprise SAS spinning disk. + SAS MDL: Midline SAS spinning disk. + SSD SAS: SAS solit-state disk. + valuemap: + name: 'Disk type' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''description-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 86ce9f4d139e46908750d158b004b517 + name: 'Disk [{#DURABLE.ID}]: Vendor' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",vendor]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Disk vendor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''vendor'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: e5faef5f8750462b8d676a74fa67b97c + name: 'Disk [{#DURABLE.ID}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered disk data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.disks + tags: + - tag: component + value: disk + - tag: component + value: raw + - tag: disk + value: '{#DURABLE.ID}' + master_item: + key: hpe.msa.get.disks + lld_macro_paths: + - lld_macro: '{#DURABLE.ID}' + path: '$.[''durable-id'']' + - lld_macro: '{#TYPE}' + path: '$.[''description-numeric'']' + overrides: + - name: 'SSD life left' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: '8' + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: 'SSD life left' + discover: DISCOVER + - uuid: dd952ff876134376baef061dc260884c + name: 'Disk groups discovery' + type: DEPENDENT + key: hpe.msa.disks.groups.discovery + delay: '0' + description: 'Discover disk groups.' + item_prototypes: + - uuid: 5b0b3db4bdff429996111d566b6d0386 + name: 'Disk group [{#NAME}]: Average response time: Read' + type: DEPENDENT + key: 'hpe.msa.disks.groups.avg_rsp_time["{#NAME}",read]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average response time for all read operations, calculated over the interval since these statistics were last requested or reset.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''avg-read-rsp-time'']' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 4a4fb1ae86df4607882de9c9d40f51f4 + name: 'Disk group [{#NAME}]: Average response time: Total' + type: DEPENDENT + key: 'hpe.msa.disks.groups.avg_rsp_time["{#NAME}",total]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average response time for read and write operations, calculated over the interval since these statistics were last requested or reset.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''avg-rsp-time'']' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: a93c1e1b1eee496d861464128aaefa57 + name: 'Disk group [{#NAME}]: Average response time: Write' + type: DEPENDENT + key: 'hpe.msa.disks.groups.avg_rsp_time["{#NAME}",write]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average response time for all write operations, calculated over the interval since these statistics were last requested or reset.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''avg-write-rsp-time'']' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 46ba55c8ec2e4811b254441f22ead159 + name: 'Disk group [{#NAME}]: Data transfer rate: Reads' + type: DEPENDENT + key: 'hpe.msa.disks.groups.data_transfer.reads["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data read rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-read-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: b1e2347ea10b4e84bb227668f5560b14 + name: 'Disk group [{#NAME}]: Data transfer rate: Total' + type: DEPENDENT + key: 'hpe.msa.disks.groups.data_transfer.total["{#NAME}",rate]' + delay: '0' + units: Bps + description: 'The data transfer rate, in bytes per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''bytes-per-second-numeric'']' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: a3df11b895fa425799c34516050000bd + name: 'Disk group [{#NAME}]: Data transfer rate: Writes' + type: DEPENDENT + key: 'hpe.msa.disks.groups.data_transfer.writes["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data write rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-written-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 18cd4383127548b68313184a2b94750f + name: 'Disk group [{#NAME}]: IOPS, read rate' + type: DEPENDENT + key: 'hpe.msa.disks.groups.iops.read["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: 'Number of read operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-reads'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 044e291ab66d48dcb8b66ee18f638702 + name: 'Disk group [{#NAME}]: IOPS, total rate' + type: DEPENDENT + key: 'hpe.msa.disks.groups.iops.total["{#NAME}",rate]' + delay: '0' + units: '!iops' + description: 'Input/output operations per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''iops'']' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 66ec5badb1d2491d9e07b5ce45486d72 + name: 'Disk group [{#NAME}]: IOPS, write rate' + type: DEPENDENT + key: 'hpe.msa.disks.groups.iops.write["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: 'Number of write operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-writes'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 5356a1f819a54c59bb3765d99a965537 + name: 'Disk group [{#NAME}]: RAID type' + type: DEPENDENT + key: 'hpe.msa.disks.groups.raid["{#NAME}",type]' + delay: '0' + description: 'The RAID level of the disk group.' + valuemap: + name: 'RAID type' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''raidtype-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: b1c95904002b4c17a1c007c664fa4ff8 + name: 'Disk group [{#NAME}]: Space free' + type: DEPENDENT + key: 'hpe.msa.disks.groups.space["{#NAME}",free]' + delay: '0' + units: B + description: 'The free space in the disk group.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''freespace-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '512' + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: bfe1a64952754488898798f5f07e24b1 + name: 'Disk group [{#NAME}]: Pool space used' + type: DEPENDENT + key: 'hpe.msa.disks.groups.space["{#NAME}",pool_util]' + delay: '0' + units: '%' + description: 'The percentage of pool capacity that the disk group occupies.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''pool-percentage'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 29eae883b9fc4e2191daa870bd9d58ad + name: 'Disk group [{#NAME}]: Space total' + type: DEPENDENT + key: 'hpe.msa.disks.groups.space["{#NAME}",total]' + delay: '0' + units: B + description: 'The capacity of the disk group.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''size-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '512' + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 760b63c8140544dd8af0de8fd873c8cb + name: 'Disk group [{#NAME}]: Space utilization' + type: CALCULATED + key: 'hpe.msa.disks.groups.space["{#NAME}",util]' + value_type: FLOAT + units: '%' + params: '100-last(//hpe.msa.disks.groups.space["{#NAME}",free])/last(//hpe.msa.disks.groups.space["{#NAME}",total])*100' + description: 'The space utilization percentage in the disk group.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + trigger_prototypes: + - uuid: d6494d79dae94aeda2b78169f8960224 + expression: 'min(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups.space["{#NAME}",util],5m)>{$HPE.MSA.DISKS.GROUP.PUSED.MAX.CRIT:"{#NAME}"}' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group space is critically low' + event_name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group space is critically low (used > {$HPE.MSA.DISKS.GROUP.PUSED.MAX.CRIT:"{#NAME}"}%)' + priority: AVERAGE + description: 'Disk group is running low on free space (less than {$HPE.MSA.DISKS.GROUP.PUSED.MAX.CRIT:"{#NAME}"}% available).' + tags: + - tag: scope + value: performance + - uuid: ea04be93082640709ec6e58ae640575c + expression: 'min(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups.space["{#NAME}",util],5m)>{$HPE.MSA.DISKS.GROUP.PUSED.MAX.WARN:"{#NAME}"}' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group space is low' + event_name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group space is low (used > {$HPE.MSA.DISKS.GROUP.PUSED.MAX.WARN:"{#NAME}"}%)' + priority: WARNING + description: 'Disk group is running low on free space (less than {$HPE.MSA.DISKS.GROUP.PUSED.MAX.WARN:"{#NAME}"}% available).' + dependencies: + - name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group space is critically low' + expression: 'min(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups.space["{#NAME}",util],5m)>{$HPE.MSA.DISKS.GROUP.PUSED.MAX.CRIT:"{#NAME}"}' + tags: + - tag: scope + value: performance + - uuid: 085fae4f87444b62ae5c52703176a533 + name: 'Disk group [{#NAME}]: Disks count' + type: DEPENDENT + key: 'hpe.msa.disks.groups["{#NAME}",disk_count]' + delay: '0' + description: 'Number of disks in the disk group.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''diskcount'']' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 1c714d46a3ae4e77b4a2e155c047e630 + name: 'Disk group [{#NAME}]: Health' + type: DEPENDENT + key: 'hpe.msa.disks.groups["{#NAME}",health]' + delay: '0' + description: 'Disk group health.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: component + value: health + - tag: disk-group + value: '{#NAME}' + trigger_prototypes: + - uuid: ad99b0f4a6b14b1d9819ab63376e11e7 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",health])=1' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group health is in degraded state' + priority: WARNING + description: 'Disk group health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 28f69da63b024079b8953165da6cbfdc + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",health])=2' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group health is in fault state' + priority: AVERAGE + description: 'Disk group health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 94695c4222c94bd1b12d9ecb4b21e628 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",health])=3' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group health is in unknown state' + priority: INFO + description: 'Disk group health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: 27ad0ae81baa43528cf94d3ccc5c3ec3 + name: 'Disk group [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.msa.disks.groups["{#NAME}",status]' + delay: '0' + description: | + The status of the disk group: + + - CRIT: Critical. The disk group is online but isn't fault tolerant because some of it's disks are down. + - DMGD: Damaged. The disk group is online and fault tolerant, but some of it's disks are damaged. + - FTDN: Fault tolerant with a down disk.The disk group is online and fault tolerant, but some of it's disks are down. + - FTOL: Fault tolerant. + - MSNG: Missing. The disk group is online and fault tolerant, but some of it's disks are missing. + - OFFL: Offline. Either the disk group is using offline initialization, or it's disks are down and data may be lost. + - QTCR: Quarantined critical. The disk group is critical with at least one inaccessible disk. For example, two disks are inaccessible in a RAID 6 disk group or one disk is inaccessible for other fault-tolerant RAID levels. If the inaccessible disks come online or if after 60 seconds from being quarantined the disk group is QTCRor QTDN, the disk group is automatically dequarantined. + - QTDN: Quarantined with a down disk. The RAID6 disk group has one inaccessible disk. The disk group is fault tolerant but degraded. If the inaccessible disks come online or if after 60 seconds from being quarantined the disk group is QTCRor QTDN, the disk group is automatically dequarantined. + - QTOF: Quarantined offline. The disk group is offline with multiple inaccessible disks causing user data to be incomplete, or is an NRAID or RAID 0 disk group. + - QTUN: Quarantined unsupported. The disk group contains data in a format that is not supported by this system. For example, this system does not support linear disk groups. + - STOP: The disk group is stopped. + - UNKN: Unknown. + - UP: Up. The disk group is online and does not have fault-tolerant attributes. + valuemap: + name: 'Disk group status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: component + value: health + - tag: disk-group + value: '{#NAME}' + trigger_prototypes: + - uuid: 9bbf1f8a67564b769db5921a2023defd + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=9' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group has damaged disks' + priority: AVERAGE + description: 'The disk group is online and fault tolerant, but some of it''s disks are damaged.' + tags: + - tag: scope + value: performance + - uuid: d4d5a63b514d4f1aaff9e8c68db9026e + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=8' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group has missing disks' + priority: AVERAGE + description: 'The disk group is online and fault tolerant, but some of it''s disks are missing.' + tags: + - tag: scope + value: performance + - uuid: 26b5b53b33c940d5a642ea13d670bf55 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=1' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group is fault tolerant with a down disk' + priority: AVERAGE + description: 'The disk group is online and fault tolerant, but some of it''s disks are down.' + tags: + - tag: scope + value: performance + - uuid: b1e7e080f7264ae0be323a500abc211f + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=3' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group is offline' + priority: AVERAGE + description: 'Either the disk group is using offline initialization, or it''s disks are down and data may be lost.' + tags: + - tag: scope + value: availability + - uuid: b8b5b248c275453d91c214c19d01f5d9 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=4' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group is quarantined critical' + priority: AVERAGE + description: 'The disk group is critical with at least one inaccessible disk. For example, two disks are inaccessible in a RAID 6 disk group or one disk is inaccessible for other fault-tolerant RAID levels. If the inaccessible disks come online or if after 60 seconds from being quarantined the disk group is QTCRor QTDN, the disk group is automatically dequarantined.' + tags: + - tag: scope + value: performance + - uuid: bc1c2bbfffd541998099e695f9c98386 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=5' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group is quarantined offline' + priority: AVERAGE + description: 'The disk group is offline with multiple inaccessible disks causing user data to be incomplete, or is an NRAID or RAID 0 disk group.' + tags: + - tag: scope + value: availability + - uuid: 7c4981f0b0fb4a3891b8a410501224d0 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=5' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group is quarantined unsupported' + priority: AVERAGE + description: 'The disk group contains data in a format that is not supported by this system. For example, this system does not support linear disk groups.' + tags: + - tag: scope + value: performance + - uuid: 9e762711ecf54f8691e6be32a3e92738 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=6' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group is quarantined with an inaccessible disk' + priority: AVERAGE + description: 'The RAID6 disk group has one inaccessible disk. The disk group is fault tolerant but degraded. If the inaccessible disks come online or if after 60 seconds from being quarantined the disk group is QTCRor QTDN, the disk group is automatically dequarantined.' + tags: + - tag: scope + value: performance + - uuid: 191dbf4bdd294add8ed0815c21f6eadb + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=7' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group is stopped' + priority: AVERAGE + description: 'The disk group is stopped.' + tags: + - tag: scope + value: availability + - uuid: 05480e1bc3ff4e7a8c5a20286d6f306c + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=2' + name: 'HPE MSA 2040 Storage: Disk group [{#NAME}]: Disk group status is critical' + priority: AVERAGE + description: 'The disk group is online but isn''t fault tolerant because some of its disks are down.' + tags: + - tag: scope + value: performance + - uuid: 20c557ea7c4e439c8c8c7fe5f8bb3356 + name: 'Disk group [{#NAME}]: Get statistics data' + type: DEPENDENT + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered disk group statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''name''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.disks.get.groups.statistics + tags: + - tag: component + value: disk-group + - tag: component + value: raw + - tag: disk-group + value: '{#NAME}' + - uuid: 42666f013abf4441b85d94b89ed6cac1 + name: 'Disk group [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered disk group data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''name''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.get.disks.groups + tags: + - tag: component + value: disk-group + - tag: component + value: raw + - tag: disk-group + value: '{#NAME}' + graph_prototypes: + - uuid: 1d5b8a7246a845678a938da75b7e32cc + name: 'Disk group [{#NAME}]: Average response time' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.disks.groups.avg_rsp_time["{#NAME}",read]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.disks.groups.avg_rsp_time["{#NAME}",write]' + - uuid: b718bd4950f64abb892ba3bfe738ad49 + name: 'Disk group [{#NAME}]: Data transfer rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.disks.groups.data_transfer.reads["{#NAME}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.disks.groups.data_transfer.writes["{#NAME}",rate]' + - uuid: 55d7871c891446b086860f8c861fc3f7 + name: 'Disk group [{#NAME}]: Disk operations rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.disks.groups.iops.read["{#NAME}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.disks.groups.iops.write["{#NAME}",rate]' + - uuid: 234be7ebf50e42f6a098662f1fffba03 + name: 'Disk group [{#NAME}]: Space utilization' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.disks.groups.space["{#NAME}",free]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.disks.groups.space["{#NAME}",total]' + master_item: + key: hpe.msa.get.disks.groups + lld_macro_paths: + - lld_macro: '{#NAME}' + path: '$.[''name'']' + - uuid: c6713507122242988dc9fae6e77bdff6 + name: 'Enclosures discovery' + type: DEPENDENT + key: hpe.msa.enclosures.discovery + delay: '0' + description: 'Discover enclosures.' + item_prototypes: + - uuid: 806b44d4f2dd44eea6db7e982c5fea16 + name: 'Enclosure [{#DURABLE.ID}]: Health' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",health]' + delay: '0' + description: 'Enclosure health.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: health + - tag: enclosure + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: 934c5f9e2d19499fab1d88ff9a36c9c9 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",health])=1' + name: 'HPE MSA 2040 Storage: Enclosure [{#DURABLE.ID}]: Enclosure health is in degraded state' + priority: WARNING + description: 'Enclosure health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 3d06d5ce761c42e983a5eec029bb671e + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",health])=2' + name: 'HPE MSA 2040 Storage: Enclosure [{#DURABLE.ID}]: Enclosure health is in fault state' + priority: AVERAGE + description: 'Enclosure health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: df1275bd16434b1ca77749930e1af3f8 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",health])=3' + name: 'HPE MSA 2040 Storage: Enclosure [{#DURABLE.ID}]: Enclosure health is in unknown state' + priority: INFO + description: 'Enclosure health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: 42987ecd83d74ffa91a8da7d72aacdb0 + name: 'Enclosure [{#DURABLE.ID}]: Midplane serial number' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",midplane_serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Midplane serial number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''midplane-serial-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#DURABLE.ID}' + - uuid: 10fff6e5bc2143348c3b0c6a3eb87631 + name: 'Enclosure [{#DURABLE.ID}]: Model' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Enclosure model.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''model'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#DURABLE.ID}' + - uuid: f9279641e2cb4c95a07d43ef1f1caba5 + name: 'Enclosure [{#DURABLE.ID}]: Part number' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Enclosure part number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''part-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#DURABLE.ID}' + - uuid: cd0ec35c114b41579d0dfcebdc5e7211 + name: 'Enclosure [{#DURABLE.ID}]: Power' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",power]' + delay: '0' + value_type: FLOAT + units: W + description: 'Enclosure power in watts.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''enclosure-power'']' + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#DURABLE.ID}' + - uuid: 98205e12a4c44a35a59879da5cc9f39c + name: 'Enclosure [{#DURABLE.ID}]: Status' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",status]' + delay: '0' + description: 'Enclosure status.' + valuemap: + name: 'Enclosure status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '6' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: health + - tag: enclosure + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: db8329f956d94e74bb6379b29a000bf0 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",status])=2' + name: 'HPE MSA 2040 Storage: Enclosure [{#DURABLE.ID}]: Enclosure has critical status' + priority: HIGH + description: 'Enclosure has critical status.' + tags: + - tag: scope + value: availability + - uuid: 6a32b4a08bfb49939633b42a16041c7f + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",status])=6' + name: 'HPE MSA 2040 Storage: Enclosure [{#DURABLE.ID}]: Enclosure has unknown status' + priority: INFO + description: 'Enclosure has unknown status.' + tags: + - tag: scope + value: notice + - uuid: 2fd78acd77804a1f8a474c973bf5c93e + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",status])=3' + name: 'HPE MSA 2040 Storage: Enclosure [{#DURABLE.ID}]: Enclosure has warning status' + priority: WARNING + description: 'Enclosure has warning status.' + tags: + - tag: scope + value: performance + - uuid: 8cecd9a3ecf14931b8b3ccffff4a4615 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",status])=7' + name: 'HPE MSA 2040 Storage: Enclosure [{#DURABLE.ID}]: Enclosure is unavailable' + priority: HIGH + description: 'Enclosure is unavailable.' + tags: + - tag: scope + value: availability + - uuid: 458cfb2a9dfb476dae940b66342b12bf + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",status])=4' + name: 'HPE MSA 2040 Storage: Enclosure [{#DURABLE.ID}]: Enclosure is unrecoverable' + priority: HIGH + description: 'Enclosure is unrecoverable.' + tags: + - tag: scope + value: availability + - uuid: db3050d98b0548acbc3cf318ce71e9e3 + name: 'Enclosure [{#DURABLE.ID}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered enclosure data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.enclosures + tags: + - tag: component + value: enclosure + - tag: component + value: raw + - tag: enclosure + value: '{#DURABLE.ID}' + master_item: + key: hpe.msa.get.enclosures + lld_macro_paths: + - lld_macro: '{#DURABLE.ID}' + path: '$.[''durable-id'']' + - uuid: 6900c1efa2b3456ead4ae5e5a033700e + name: 'Fans discovery' + type: DEPENDENT + key: hpe.msa.fans.discovery + delay: '0' + description: 'Discover fans.' + item_prototypes: + - uuid: b4732ef73f0e4fcc9458797b28e2b829 + name: 'Fan [{#DURABLE.ID}]: Health' + type: DEPENDENT + key: 'hpe.msa.fans["{#DURABLE.ID}",health]' + delay: '0' + description: 'Fan health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.fans["{#DURABLE.ID}",data]' + tags: + - tag: component + value: fan + - tag: component + value: health + - tag: fan + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: 377a9c494a5443c0ba694ab78683da17 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",health])=1' + name: 'HPE MSA 2040 Storage: Fan [{#DURABLE.ID}]: Fan health is in degraded state' + priority: WARNING + description: 'Fan health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 4446cef7b06140e3a29018944201ebd7 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",health])=2' + name: 'HPE MSA 2040 Storage: Fan [{#DURABLE.ID}]: Fan health is in fault state' + priority: AVERAGE + description: 'Fan health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 3273a1f3595046e69ef6c74ac6f56eeb + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",health])=3' + name: 'HPE MSA 2040 Storage: Fan [{#DURABLE.ID}]: Fan health is in unknown state' + priority: INFO + description: 'Fan health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: eb7057d0b65e40138899753b06abfb68 + name: 'Fan [{#DURABLE.ID}]: Speed' + type: DEPENDENT + key: 'hpe.msa.fans["{#DURABLE.ID}",speed]' + delay: '0' + units: '!RPM' + description: 'Fan speed (revolutions per minute).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''speed'']' + master_item: + key: 'hpe.msa.get.fans["{#DURABLE.ID}",data]' + tags: + - tag: component + value: fan + - tag: fan + value: '{#DURABLE.ID}' + - uuid: 45f948cb8f484367a7a5735beb796a1b + name: 'Fan [{#DURABLE.ID}]: Status' + type: DEPENDENT + key: 'hpe.msa.fans["{#DURABLE.ID}",status]' + delay: '0' + description: 'Fan status.' + valuemap: + name: 'Fan status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.fans["{#DURABLE.ID}",data]' + tags: + - tag: component + value: fan + - tag: component + value: health + - tag: fan + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: f8afe70029aa4cdfb1f68452eea27986 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",status])=1' + name: 'HPE MSA 2040 Storage: Fan [{#DURABLE.ID}]: Fan has error status' + priority: AVERAGE + description: 'Fan has error status.' + tags: + - tag: scope + value: availability + - uuid: 8ad445006c51474fbee30a70971a97a5 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",status])=3' + name: 'HPE MSA 2040 Storage: Fan [{#DURABLE.ID}]: Fan is missing' + priority: INFO + description: 'Fan is missing.' + tags: + - tag: scope + value: notice + - uuid: fabe4e0bde194675a089db45125428b6 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",status])=2' + name: 'HPE MSA 2040 Storage: Fan [{#DURABLE.ID}]: Fan is off' + priority: WARNING + description: 'Fan is off.' + tags: + - tag: scope + value: availability + - uuid: 8fe64d81153d430c8aa862394a384172 + name: 'Fan [{#DURABLE.ID}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.fans["{#DURABLE.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered fan data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.fans + tags: + - tag: component + value: fan + - tag: component + value: raw + - tag: fan + value: '{#DURABLE.ID}' + graph_prototypes: + - uuid: 44c2c9cdec6247cf8f4d0e2bd7e0e372 + name: 'Fan [{#DURABLE.ID}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.fans["{#DURABLE.ID}",speed]' + master_item: + key: hpe.msa.get.fans + lld_macro_paths: + - lld_macro: '{#DURABLE.ID}' + path: '$.[''durable-id'']' + - uuid: ec7d856fd690401888f93f8d9c135828 + name: 'FRU discovery' + type: DEPENDENT + key: hpe.msa.frus.discovery + delay: '0' + filter: + conditions: + - macro: '{#TYPE}' + value: ^(POWER_SUPPLY|RAID_IOM|CHASSIS_MIDPLANE)$ + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discover FRU.' + item_prototypes: + - uuid: 77df1d8bfba9428e887025a05f02f306 + name: 'FRU [{#ENCLOSURE.ID}: {#LOCATION}]: Part number' + type: DEPENDENT + key: 'hpe.msa.frus["{#ENCLOSURE.ID}:{#LOCATION}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: '{#DESCRIPTION}. Part number of the FRU.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''part-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.frus["{#ENCLOSURE.ID}:{#LOCATION}",data]' + tags: + - tag: component + value: fru + - tag: fru + value: 'Enclosure {#ENCLOSURE.ID}: {#LOCATION}' + - uuid: 04fc08de0c3947cba0c8f6c633ae3157 + name: 'FRU [{#ENCLOSURE.ID}: {#LOCATION}]: Serial number' + type: DEPENDENT + key: 'hpe.msa.frus["{#ENCLOSURE.ID}:{#LOCATION}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: '{#DESCRIPTION}. FRU serial number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''serial-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.frus["{#ENCLOSURE.ID}:{#LOCATION}",data]' + tags: + - tag: component + value: fru + - tag: fru + value: 'Enclosure {#ENCLOSURE.ID}: {#LOCATION}' + - uuid: ef3acb289f9c4a8e919b136dabf7b5c5 + name: 'FRU [{#ENCLOSURE.ID}: {#LOCATION}]: Status' + type: DEPENDENT + key: 'hpe.msa.frus["{#ENCLOSURE.ID}:{#LOCATION}",status]' + delay: '0' + description: | + {#DESCRIPTION}. FRU status: + + Absent: Component is not present. + Fault: At least one subcomponent has a fault. + Invalid data: For a power supply module, the EEPROM is improperly programmed. + OK: All subcomponents are operating normally. + Not available: Status is not available. + valuemap: + name: 'FRU status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''fru-status'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + if (value == 'Absent') { + return 2; + } + else if (value == 'Fault') { + return 1; + } + else if (value == 'Invalid Data') { + return 0; + } + else if (value == 'OK') { + return 4; + } + else if (value == 'Not Available') { + return 5; + } + return 6; + master_item: + key: 'hpe.msa.get.frus["{#ENCLOSURE.ID}:{#LOCATION}",data]' + tags: + - tag: component + value: fru + - tag: component + value: health + - tag: fru + value: 'Enclosure {#ENCLOSURE.ID}: {#LOCATION}' + trigger_prototypes: + - uuid: 8182ee0edeb94f4a845c7eda047718c8 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.frus["{#ENCLOSURE.ID}:{#LOCATION}",status])=0' + name: 'HPE MSA 2040 Storage: FRU [{#ENCLOSURE.ID}: {#LOCATION}]: FRU ID data is invalid' + priority: WARNING + description: 'The FRU ID data is invalid. The FRU''s EEPROM is improperly programmed.' + tags: + - tag: scope + value: performance + - uuid: 8bef225423a548c3a289c67c40ffd906 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.frus["{#ENCLOSURE.ID}:{#LOCATION}",status])=1' + name: 'HPE MSA 2040 Storage: FRU [{#ENCLOSURE.ID}: {#LOCATION}]: FRU status is Degraded or Fault' + priority: AVERAGE + description: 'FRU status is Degraded or Fault.' + tags: + - tag: scope + value: availability + - uuid: e65d0d09a9244e46b7fd16e89128d50b + name: 'FRU [{#ENCLOSURE.ID}: {#LOCATION}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.frus["{#ENCLOSURE.ID}:{#LOCATION}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered FRU data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''name''] == "{#TYPE}")].first()' + master_item: + key: hpe.msa.get.fru + tags: + - tag: component + value: fru + - tag: component + value: raw + - tag: fru + value: 'Enclosure {#ENCLOSURE.ID}: {#LOCATION}' + master_item: + key: hpe.msa.get.fru + lld_macro_paths: + - lld_macro: '{#DESCRIPTION}' + path: '$.[''description'']' + - lld_macro: '{#ENCLOSURE.ID}' + path: '$.[''enclosure-id'']' + - lld_macro: '{#LOCATION}' + path: '$.[''fru-location'']' + - lld_macro: '{#TYPE}' + path: '$.[''name'']' + - uuid: 082c1cfb851548928911b9ab69f6f75e + name: 'Pools discovery' + type: DEPENDENT + key: hpe.msa.pools.discovery + delay: '0' + description: 'Discover pools.' + item_prototypes: + - uuid: 227c8ed5f3514aa886e27f28b49fe7fd + name: 'Pool [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.pools["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered pool data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''name''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.get.pools + tags: + - tag: component + value: pool + - tag: component + value: raw + - tag: pool + value: '{#NAME}' + - uuid: 2a8b8ebd3bbb4e4e851602e1a84bb0da + name: 'Pool [{#NAME}]: Space free' + type: DEPENDENT + key: 'hpe.msa.pools.space["{#NAME}",free]' + delay: '0' + description: 'The free space in the pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''total-avail-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '512' + master_item: + key: 'hpe.msa.get.pools["{#NAME}",data]' + tags: + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + - uuid: 0518c9f95bad4208ba33def89432975d + name: 'Pool [{#NAME}]: Space total' + type: DEPENDENT + key: 'hpe.msa.pools.space["{#NAME}",total]' + delay: '0' + units: B + description: 'The capacity of the pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''total-size-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '512' + master_item: + key: 'hpe.msa.get.pools["{#NAME}",data]' + tags: + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + - uuid: cc361d77ac8046fc833db41fbd5d2cd3 + name: 'Pool [{#NAME}]: Space utilization' + type: CALCULATED + key: 'hpe.msa.pools.space["{#NAME}",util]' + value_type: FLOAT + units: '%' + params: '100-last(//hpe.msa.pools.space["{#NAME}",free])/last(//hpe.msa.pools.space["{#NAME}",total])*100' + description: 'The space utilization percentage in the pool.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: 042ac4fedb00485c8c6f48016182b9dd + expression: 'min(/HPE MSA 2040 Storage by HTTP/hpe.msa.pools.space["{#NAME}",util],5m)>{$HPE.MSA.POOL.PUSED.MAX.CRIT:"{#NAME}"}' + name: 'HPE MSA 2040 Storage: Pool [{#NAME}]: Pool space is critically low' + event_name: 'HPE MSA 2040 Storage: Pool [{#NAME}]: Pool space is critically low (used > {$HPE.MSA.POOL.PUSED.MAX.CRIT:"{#NAME}"}%)' + priority: AVERAGE + description: 'Pool is running low on free space (less than {$HPE.MSA.POOL.PUSED.MAX.CRIT:"{#NAME}"}% available).' + tags: + - tag: scope + value: performance + - uuid: f4c7a9ed832d4668be64acf9da3c9814 + expression: 'min(/HPE MSA 2040 Storage by HTTP/hpe.msa.pools.space["{#NAME}",util],5m)>{$HPE.MSA.POOL.PUSED.MAX.WARN:"{#NAME}"}' + name: 'HPE MSA 2040 Storage: Pool [{#NAME}]: Pool space is low' + event_name: 'HPE MSA 2040 Storage: Pool [{#NAME}]: Pool space is low (used > {$HPE.MSA.POOL.PUSED.MAX.WARN:"{#NAME}"}%)' + priority: WARNING + description: 'Pool is running low on free space (less than {$HPE.MSA.POOL.PUSED.MAX.WARN:"{#NAME}"}% available).' + dependencies: + - name: 'HPE MSA 2040 Storage: Pool [{#NAME}]: Pool space is critically low' + expression: 'min(/HPE MSA 2040 Storage by HTTP/hpe.msa.pools.space["{#NAME}",util],5m)>{$HPE.MSA.POOL.PUSED.MAX.CRIT:"{#NAME}"}' + tags: + - tag: scope + value: performance + - uuid: 4b79ed6e64cc484bb69f3677cd7932ef + name: 'Pool [{#NAME}]: Health' + type: DEPENDENT + key: 'hpe.msa.pools["{#NAME}",health]' + delay: '0' + description: 'Pool health.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.pools["{#NAME}",data]' + tags: + - tag: component + value: health + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: 7af3ccbf497c44adb907b6d15ecebe33 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.pools["{#NAME}",health])=1' + name: 'HPE MSA 2040 Storage: Pool [{#NAME}]: Pool health is in degraded state' + priority: WARNING + description: 'Pool health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 093fa03c7c3f4ac4adbd3234bf6007a0 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.pools["{#NAME}",health])=2' + name: 'HPE MSA 2040 Storage: Pool [{#NAME}]: Pool health is in fault state' + priority: AVERAGE + description: 'Pool health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 2af3a0092d57420c95bf82adc39eae5f + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.pools["{#NAME}",health])=3' + name: 'HPE MSA 2040 Storage: Pool [{#NAME}]: Pool health is in unknown state' + priority: INFO + description: 'Pool [{#NAME}] health is in unknown state.' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 001c0a805d3a40bf86632b498883519d + name: 'Pool [{#NAME}]: Space utilization' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.pools.space["{#NAME}",free]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.pools.space["{#NAME}",total]' + master_item: + key: hpe.msa.get.pools + lld_macro_paths: + - lld_macro: '{#NAME}' + path: '$.[''name'']' + - uuid: 09754bd16c674ff08fad52f060035961 + name: 'Ports discovery' + type: DEPENDENT + key: hpe.msa.ports.discovery + delay: '0' + description: 'Discover ports.' + item_prototypes: + - uuid: c0643381ec274865826cddd3ce598326 + name: 'Port [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.ports["{#NAME}",,data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered port data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''port''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.get.ports + tags: + - tag: component + value: port + - tag: component + value: raw + - tag: port + value: '{#NAME}' + - uuid: 27564169c2b04cba924162a5630bbd4b + name: 'Port [{#NAME}]: Health' + type: DEPENDENT + key: 'hpe.msa.ports["{#NAME}",health]' + delay: '0' + description: 'Port health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.ports["{#NAME}",,data]' + tags: + - tag: component + value: health + - tag: component + value: port + - tag: port + value: '{#NAME}' + trigger_prototypes: + - uuid: 266d310dc71e4c60977668e330eec8df + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.ports["{#NAME}",health])=1' + name: 'HPE MSA 2040 Storage: Port [{#NAME}]: Port health is in degraded state' + priority: WARNING + description: 'Port health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 19a02ecfb5d242ff85e233961cc4a384 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.ports["{#NAME}",health])=2' + name: 'HPE MSA 2040 Storage: Port [{#NAME}]: Port health is in fault state' + priority: AVERAGE + description: 'Port health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 8461e41fdd2944f08d3b95c63df0fa9f + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.ports["{#NAME}",health])=3' + name: 'HPE MSA 2040 Storage: Port [{#NAME}]: Port health is in unknown state' + priority: INFO + description: 'Port health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: 57986481099a4bffb5b61816e1ba4110 + name: 'Port [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.msa.ports["{#NAME}",status]' + delay: '0' + description: 'Port status.' + valuemap: + name: Status + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.ports["{#NAME}",,data]' + tags: + - tag: component + value: health + - tag: component + value: port + - tag: port + value: '{#NAME}' + trigger_prototypes: + - uuid: 7ff86d50c241496d9bfa54359e17222e + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.ports["{#NAME}",status])=2' + name: 'HPE MSA 2040 Storage: Port [{#NAME}]: Port has error status' + priority: AVERAGE + description: 'Port has error status.' + tags: + - tag: scope + value: availability + - uuid: bdad67d08b92447e9964ea6362c0989c + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.ports["{#NAME}",status])=4' + name: 'HPE MSA 2040 Storage: Port [{#NAME}]: Port has unknown status' + priority: INFO + description: 'Port has unknown status.' + tags: + - tag: scope + value: notice + - uuid: 95ba19413bca495aba96f32fa91bc54b + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.ports["{#NAME}",status])=1' + name: 'HPE MSA 2040 Storage: Port [{#NAME}]: Port has warning status' + priority: WARNING + description: 'Port has warning status.' + tags: + - tag: scope + value: performance + - uuid: b1240a5950a3466b9d0725729bef3a03 + name: 'Port [{#NAME}]: Type' + type: DEPENDENT + key: 'hpe.msa.ports["{#NAME}",type]' + delay: '0' + description: 'Port type.' + valuemap: + name: 'Port type' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''port-type-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.ports["{#NAME}",,data]' + tags: + - tag: component + value: port + - tag: port + value: '{#NAME}' + master_item: + key: hpe.msa.get.ports + lld_macro_paths: + - lld_macro: '{#NAME}' + path: '$.[''port'']' + - uuid: 2cf7945eea95414a88ce572f4c075bb1 + name: 'Power supplies discovery' + type: DEPENDENT + key: hpe.msa.power_supplies.discovery + delay: '0' + description: 'Discover power supplies.' + item_prototypes: + - uuid: 029b4173b22f4359b5ee6013a524dd4f + name: 'Power supply [{#DURABLE.ID}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered power supply data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.power_supplies + tags: + - tag: component + value: power-supply + - tag: component + value: raw + - tag: power-supply + value: '{#DURABLE.ID}' + - uuid: 4e4f593738fb451cbfd1589a3054387e + name: 'Power supply [{#DURABLE.ID}]: Health' + type: DEPENDENT + key: 'hpe.msa.power_supplies["{#DURABLE.ID}",health]' + delay: '0' + description: 'Power supply health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + tags: + - tag: component + value: health + - tag: component + value: power-supply + - tag: power-supply + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: 2394f69a635a4072bd96494b8df8ae3e + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",health])=1' + name: 'HPE MSA 2040 Storage: Power supply [{#DURABLE.ID}]: Power supply health is in degraded state' + priority: WARNING + description: 'Power supply health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: f390553cfe4646e0ab9a4fd9cab20886 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",health])=2' + name: 'HPE MSA 2040 Storage: Power supply [{#DURABLE.ID}]: Power supply health is in fault state' + priority: AVERAGE + description: 'Power supply health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 9499fbdcc6a946138fb6cd69d8be9a00 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",health])=3' + name: 'HPE MSA 2040 Storage: Power supply [{#DURABLE.ID}]: Power supply health is in unknown state' + priority: INFO + description: 'Power supply health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: 1b72c54bff3a4b129e959db43e895839 + name: 'Power supply [{#DURABLE.ID}]: Part number' + type: DEPENDENT + key: 'hpe.msa.power_supplies["{#DURABLE.ID}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Power supply part number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''part-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + tags: + - tag: component + value: power-supply + - tag: power-supply + value: '{#DURABLE.ID}' + - uuid: bdbf30f2e70d427bb9237b941fed5941 + name: 'Power supply [{#DURABLE.ID}]: Serial number' + type: DEPENDENT + key: 'hpe.msa.power_supplies["{#DURABLE.ID}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Power supply serial number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''serial-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + tags: + - tag: component + value: power-supply + - tag: power-supply + value: '{#DURABLE.ID}' + - uuid: 110fa50ee1d64ecdb064d3bd7b34dc90 + name: 'Power supply [{#DURABLE.ID}]: Status' + type: DEPENDENT + key: 'hpe.msa.power_supplies["{#DURABLE.ID}",status]' + delay: '0' + description: 'Power supply status.' + valuemap: + name: Status + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + tags: + - tag: component + value: health + - tag: component + value: power-supply + - tag: power-supply + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: 28896e70b14f463aae8c8af4786e52ff + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",status])=2' + name: 'HPE MSA 2040 Storage: Power supply [{#DURABLE.ID}]: Power supply has error status' + priority: AVERAGE + description: 'Power supply has error status.' + tags: + - tag: scope + value: availability + - uuid: ac6b0d55fbac4f338261f6a90b68e5b0 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",status])=4' + name: 'HPE MSA 2040 Storage: Power supply [{#DURABLE.ID}]: Power supply has unknown status' + priority: INFO + description: 'Power supply has unknown status.' + tags: + - tag: scope + value: notice + - uuid: c9cddccdeed34aa4a533f0ad07aab5ae + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",status])=1' + name: 'HPE MSA 2040 Storage: Power supply [{#DURABLE.ID}]: Power supply has warning status' + priority: WARNING + description: 'Power supply has warning status.' + tags: + - tag: scope + value: performance + - uuid: 8b4399f3d9624239be2e6ac15971300b + name: 'Power supply [{#DURABLE.ID}]: Temperature' + type: DEPENDENT + key: 'hpe.msa.power_supplies["{#DURABLE.ID}",temperature]' + delay: '0' + units: '!°C' + description: 'Power supply temperature.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''dctemp'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + tags: + - tag: component + value: power-supply + - tag: power-supply + value: '{#DURABLE.ID}' + graph_prototypes: + - uuid: 538040f8853648058e10830ddc2cba70 + name: 'Power supply [{#DURABLE.ID}]: Temperature' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.power_supplies["{#DURABLE.ID}",temperature]' + master_item: + key: hpe.msa.get.power_supplies + lld_macro_paths: + - lld_macro: '{#DURABLE.ID}' + path: '$.[''durable-id'']' + - uuid: faae0d9be7ea4531a584a52002317cc9 + name: 'Volumes discovery' + type: DEPENDENT + key: hpe.msa.volumes.discovery + delay: '0' + description: 'Discover volumes.' + item_prototypes: + - uuid: 971c984b8fc44f05b24a30d11a482b3a + name: 'Volume [{#NAME}]: Get statistics data' + type: DEPENDENT + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered volume statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''volume-name''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.get.volumes.statistics + tags: + - tag: component + value: raw + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 2515db4e86d7486481583114c067d522 + name: 'Volume [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.volumes["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered volume data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''volume-name''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.get.volumes + tags: + - tag: component + value: raw + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: f9818ae47544417bb270af4f8f014c0a + name: 'Volume [{#NAME}]: Cache: Read hits, rate' + type: DEPENDENT + key: 'hpe.msa.volumes.cache.read.hits["{#NAME}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block to be read is found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''read-cache-hits'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 877afc03787443129373d955067f8c6c + name: 'Volume [{#NAME}]: Cache: Read misses, rate' + type: DEPENDENT + key: 'hpe.msa.volumes.cache.read.misses["{#NAME}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block to be read is not found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''read-cache-misses'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: e3a0b52f33e847c980ffe3f4dcda5ab4 + name: 'Volume [{#NAME}]: Cache: Write hits, rate' + type: DEPENDENT + key: 'hpe.msa.volumes.cache.write.hits["{#NAME}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block written to is found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''write-cache-hits'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: b2b0c3fd7ab74eb3a6013c3f3d65e356 + name: 'Volume [{#NAME}]: Cache: Write misses, rate' + type: DEPENDENT + key: 'hpe.msa.volumes.cache.write.misses["{#NAME}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block written to is not found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''write-cache-misses'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 6b12caedf23b4b768dbff01096d72c93 + name: 'Volume [{#NAME}]: Data transfer rate: Reads' + type: DEPENDENT + key: 'hpe.msa.volumes.data_transfer.reads["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data read rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-read-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 705428d111dd49d19eb79b6a0de592c1 + name: 'Volume [{#NAME}]: Data transfer rate: Total' + type: DEPENDENT + key: 'hpe.msa.volumes.data_transfer.total["{#NAME}",rate]' + delay: '0' + units: Bps + description: 'The data transfer rate, in bytes per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''bytes-per-second-numeric'']' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 5f44581f011b46cf96ebd040de635976 + name: 'Volume [{#NAME}]: Data transfer rate: Writes' + type: DEPENDENT + key: 'hpe.msa.volumes.data_transfer.writes["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data write rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-written-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 0e2831ed17ec4fe0a56b800086b47901 + name: 'Volume [{#NAME}]: IOPS, read rate' + type: DEPENDENT + key: 'hpe.msa.volumes.iops.read["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: 'Number of read operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-reads'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 9d14e4239f5941a7bfb07b6645b9e698 + name: 'Volume [{#NAME}]: IOPS, total rate' + type: DEPENDENT + key: 'hpe.msa.volumes.iops.total["{#NAME}",rate]' + delay: '0' + units: '!iops' + description: 'Total input/output operations per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''iops'']' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: e1a6b6cc609c4cf789978f01b18af31f + name: 'Volume [{#NAME}]: IOPS, write rate' + type: DEPENDENT + key: 'hpe.msa.volumes.iops.write["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: 'Number of write operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-writes'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: b47d7b03e19f4e25803b1d639a0ecf43 + name: 'Volume [{#NAME}]: Space allocated' + type: DEPENDENT + key: 'hpe.msa.volumes.space["{#NAME}",allocated]' + delay: '0' + units: B + description: 'The amount of space currently allocated to the volume.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''allocated-size-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '512' + master_item: + key: 'hpe.msa.get.volumes["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: b6aaba39f7c74dcf95947626852855c8 + name: 'Volume [{#NAME}]: Space total' + type: DEPENDENT + key: 'hpe.msa.volumes.space["{#NAME}",total]' + delay: '0' + units: B + description: 'The capacity of the volume.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''size-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '512' + master_item: + key: 'hpe.msa.get.volumes["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 46ab8b0e5feb439c9085e7eb12a6974d + name: 'Volume [{#NAME}]: Health' + type: DEPENDENT + key: 'hpe.msa.volumes["{#DURABLE.ID}",health]' + delay: '0' + description: 'Volume health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.volumes["{#NAME}",data]' + tags: + - tag: component + value: health + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + trigger_prototypes: + - uuid: 50c47bfc2b4f43d6990e7d1b81ecc0bf + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.volumes["{#DURABLE.ID}",health])=1' + name: 'HPE MSA 2040 Storage: Volume [{#NAME}]: Volume health is in degraded state' + priority: WARNING + description: 'Volume health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 2ff830017b814e7ea50313ecbedc9894 + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.volumes["{#DURABLE.ID}",health])=2' + name: 'HPE MSA 2040 Storage: Volume [{#NAME}]: Volume health is in fault state' + priority: AVERAGE + description: 'Volume health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 2e8c2a0a40b640d4bf6177171c4af48d + expression: 'last(/HPE MSA 2040 Storage by HTTP/hpe.msa.volumes["{#DURABLE.ID}",health])=3' + name: 'HPE MSA 2040 Storage: Volume [{#NAME}]: Volume health is in unknown state' + priority: INFO + description: 'Volume health is in unknown state.' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 20d2047e3f024e5197362375601415eb + name: 'Volume [{#NAME}]: Cache usage' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.volumes.cache.read.hits["{#NAME}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.volumes.cache.read.misses["{#NAME}",rate]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.volumes.cache.write.hits["{#NAME}",rate]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.volumes.cache.write.misses["{#NAME}",rate]' + - uuid: 0b11191f26464e79add18302e245a9cc + name: 'Volume [{#NAME}]: Data transfer rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.volumes.data_transfer.reads["{#NAME}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.volumes.data_transfer.writes["{#NAME}",rate]' + - uuid: 133ef12b0cbc49a1a37c594f5c498643 + name: 'Volume [{#NAME}]: Disk operations rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.volumes.iops.read["{#NAME}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.volumes.iops.write["{#NAME}",rate]' + - uuid: f8c4f07925404bc0b1e3ada45358580a + name: 'Volume [{#NAME}]: Space utilization' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.volumes.space["{#NAME}",allocated]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2040 Storage by HTTP' + key: 'hpe.msa.volumes.space["{#NAME}",total]' + master_item: + key: hpe.msa.get.volumes + lld_macro_paths: + - lld_macro: '{#NAME}' + path: '$.[''volume-name'']' + tags: + - tag: class + value: storage + - tag: target + value: hpe + - tag: target + value: msa-2040 + macros: + - macro: '{$HPE.MSA.API.HOST}' + value: '' + description: 'The hostname or IP address of the API host.' + - macro: '{$HPE.MSA.API.PASSWORD}' + type: SECRET_TEXT + description: 'Specify password for API.' + - macro: '{$HPE.MSA.API.PORT}' + value: '443' + description: 'Connection port for API.' + - macro: '{$HPE.MSA.API.SCHEME}' + value: https + description: 'Connection scheme for API.' + - macro: '{$HPE.MSA.API.USERNAME}' + value: zabbix + description: 'Specify user name for API.' + - macro: '{$HPE.MSA.CONTROLLER.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of the CPU utilization expressed in %.' + - macro: '{$HPE.MSA.DATA.TIMEOUT}' + value: 30s + description: 'Response timeout for API.' + - macro: '{$HPE.MSA.DISKS.GROUP.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the disk group space utilization in %.' + - macro: '{$HPE.MSA.DISKS.GROUP.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the disk group space utilization in %.' + - macro: '{$HPE.MSA.POOL.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the pool space utilization in %.' + - macro: '{$HPE.MSA.POOL.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the pool space utilization in %.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "HPE MSA 2040 Storage", e.g. {$HTTP.TLS.VERIFY:"HPE MSA 2040 Storage"}.' + dashboards: + - uuid: 32f1ffd5ec5144fc9073b547cc7cfb01 + name: 'Storage overview' + auto_start: 'NO' + pages: + - name: Controllers + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Controller [{#CONTROLLER.ID}]: Cache: Write utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Controller [{#CONTROLLER.ID}]: Cache usage' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Controller [{#CONTROLLER.ID}]: Controller CPU utilization' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Controller [{#CONTROLLER.ID}]: Data transfer rate' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Controller [{#CONTROLLER.ID}]: Disk operations rate' + - type: STRING + name: reference + value: AAAAE + - name: 'Disk groups' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Disk group [{#NAME}]: Average response time' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Disk group [{#NAME}]: Data transfer rate' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Disk group [{#NAME}]: Disk operations rate' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Disk group [{#NAME}]: Space utilization' + - type: STRING + name: reference + value: AAAAI + - name: Fans + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Fan [{#DURABLE.ID}]: Speed' + - type: STRING + name: reference + value: AAAAJ + - name: Pools + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Pool [{#NAME}]: Space utilization' + - type: STRING + name: reference + value: AAAAK + - name: 'Power supplies' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Power supply [{#DURABLE.ID}]: Temperature' + - type: STRING + name: reference + value: AAAAL + - name: Volumes + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Volume [{#NAME}]: Cache usage' + - type: STRING + name: reference + value: AAAAM + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Volume [{#NAME}]: Data transfer rate' + - type: STRING + name: reference + value: AAAAN + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Volume [{#NAME}]: Disk operations rate' + - type: STRING + name: reference + value: AAAAO + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2040 Storage by HTTP' + name: 'Volume [{#NAME}]: Space utilization' + - type: STRING + name: reference + value: AAAAP + valuemaps: + - uuid: 3bb065172c93464c9f5e2e569f523a05 + name: 'Controller status' + mappings: + - value: '0' + newvalue: Operational + - value: '1' + newvalue: Down + - value: '2' + newvalue: 'Not Installed' + - uuid: 78f22a3d82a64372abb3e3eeb08cf03e + name: 'Disk group status' + mappings: + - value: '0' + newvalue: FTOL + - value: '1' + newvalue: FTDN + - value: '2' + newvalue: CRIT + - value: '3' + newvalue: OFFL + - value: '4' + newvalue: QTCR + - value: '5' + newvalue: QTOF + - value: '6' + newvalue: QTDN + - value: '7' + newvalue: STOP + - value: '8' + newvalue: MSNG + - value: '9' + newvalue: DMGD + - value: '11' + newvalue: QTDN + - value: '250' + newvalue: UP + - uuid: eb92d7812b8e4d2dbe4908fc3d42ade8 + name: 'Disk temperature status' + mappings: + - value: '1' + newvalue: OK + - value: '2' + newvalue: Critical + - value: '3' + newvalue: Warning + - value: '4' + newvalue: Unknown + - uuid: e6478ee0a41b49778f2a3dc130649838 + name: 'Disk type' + mappings: + - value: '4' + newvalue: SAS + - value: '8' + newvalue: 'SSD SAS' + - value: '11' + newvalue: 'SAS MDL' + - uuid: 243d29502c1c416c85eb2ccc961a159c + name: 'Enclosure status' + mappings: + - value: '0' + newvalue: Unsupported + - value: '1' + newvalue: Up + - value: '2' + newvalue: Error + - value: '3' + newvalue: Warning + - value: '4' + newvalue: Unrecoverable + - value: '5' + newvalue: 'Not Present' + - value: '6' + newvalue: Unknown + - value: '7' + newvalue: Unavailable + - value: '20' + newvalue: 'Spun Down' + - uuid: 40916613dcf24dc2beb8634ec67c04bf + name: 'Fan status' + mappings: + - value: '0' + newvalue: Up + - value: '1' + newvalue: Error + - value: '2' + newvalue: 'Off' + - value: '3' + newvalue: Missing + - uuid: f656acc354ab4593a1c1718668c02001 + name: 'FRU status' + mappings: + - value: '0' + newvalue: 'Invalid data' + - value: '1' + newvalue: Fault + - value: '2' + newvalue: Absent + - value: '4' + newvalue: OK + - value: '5' + newvalue: 'Not available' + - value: '6' + newvalue: Unknown + - uuid: 448c57be77694badb75dbdabe9b233df + name: Health + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Fault + - value: '3' + newvalue: Unknown + - value: '4' + newvalue: N/A + - uuid: 66a23d01db744677a1878143ccf102c7 + name: 'Port type' + mappings: + - value: '0' + newvalue: Unknown + - value: '6' + newvalue: FC + - value: '8' + newvalue: SAS + - value: '9' + newvalue: iSCSI + - uuid: 996bbe1c4e2841d6ac35efd9b5236fef + name: 'RAID type' + mappings: + - value: '0' + newvalue: RAID0 + - value: '1' + newvalue: RAID1 + - value: '3' + newvalue: RAID3 + - value: '5' + newvalue: RAID5 + - value: '6' + newvalue: NRAID + - value: '8' + newvalue: RAID50 + - value: '10' + newvalue: RAID10 + - value: '11' + newvalue: RAID6 + - uuid: 6c5d6649be2347ca83258f0ab1a63137 + name: Status + mappings: + - value: '0' + newvalue: Up + - value: '1' + newvalue: Warning + - value: '2' + newvalue: Error + - value: '3' + newvalue: 'Not present' + - value: '4' + newvalue: Unknown + - value: '6' + newvalue: Disconnected diff --git a/HPE_MSA_2060_Storage_by_HTTP.yaml b/HPE_MSA_2060_Storage_by_HTTP.yaml new file mode 100644 index 0000000..7fe8a7f --- /dev/null +++ b/HPE_MSA_2060_Storage_by_HTTP.yaml @@ -0,0 +1,4420 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 7c2cb727f85b492d88cd56e17127c64d + name: Templates/SAN + templates: + - uuid: 10537641cfa3416ab0f1451cdb61d804 + template: 'HPE MSA 2060 Storage by HTTP' + name: 'HPE MSA 2060 Storage by HTTP' + description: | + The template to monitor HPE MSA 2060 by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create a user with a monitor role on the storage, for example "zabbix". + 2. Link the template to a host. + 3. Set the hostname or IP address of the host in the {$HPE.MSA.API.HOST} macro and configure the username and password in the {$HPE.MSA.API.USERNAME} and {$HPE.MSA.API.PASSWORD} macros. + 4. Change the {$HPE.MSA.API.SCHEME} and {$HPE.MSA.API.PORT} macros if needed. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/SAN + items: + - uuid: e869b8e7cc7643ea805532c941fa0e16 + name: 'Get disk group statistics' + type: DEPENDENT + key: hpe.msa.disks.get.groups.statistics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Disk groups statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''disk-group-statistics'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 098d8c93634e4a3ab69b39f2d813f81c + name: 'Get controllers' + type: DEPENDENT + key: hpe.msa.get.controllers + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Controllers data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''controllers'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 61fe1e0cf61441c58cbd754805fefe9d + name: 'Get controller statistics' + type: DEPENDENT + key: hpe.msa.get.controller_statistics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Controllers statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''controller-statistics'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: bafec666b170480f941fe25cb3cf903d + name: 'Get data' + type: SCRIPT + key: hpe.msa.get.data + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + fields = ['username', 'password', 'base_url'], + methods = [ + 'system', + 'controllers', + 'controller-statistics', + 'frus', + 'disk-groups', + 'disk-group-statistics', + 'disks', + 'enclosures', + 'fans', + 'pools', + 'ports', + 'power-supplies', + 'volumes', + 'volume-statistics' + ], + result = {}, + data = {}; + + fields.forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + }); + + if (!params.base_url.endsWith('/')) { + params.base_url += '/'; + } + + var tls = new CTlsConfig(params.tls_verify); + tls.checkURL(params.base_url); + + var response, request = new HttpRequest(tls.options); + request.addHeader('datatype: json'); + + auth_string = sha256(params.username + '_' + params.password); + + response = request.get(params.base_url + 'api/login/' + auth_string); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Authentication request has failed with status code ' + request.getStatus() + ': ' + response; + } + + if (response !== null) { + try { + auth_data = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse authentication response received from device API.'; + } + } + + session_key = auth_data['status'][0]['response']; + + request.addHeader('sessionKey: ' + session_key); + + data.errors = []; + + methods.forEach(function (method) { + response = request.get(params.base_url + 'api/show/' + method); + method_error = ''; + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + method_error = 'Method: ' + method + '. Request has failed with status code ' + request.getStatus() + ': ' + response; + data.errors.push(method_error); + return; + } + + if (response !== null) { + try { + result = JSON.parse(response); + switch (method) { + case 'controller-statistics': + var stats_array = result['controller-statistics'] || []; + for (var i = 0; i < stats_array.length; i++) { + result['controller-statistics'][i]['durable-id'] = result['controller-statistics'][i]['durable-id'].toLowerCase(); + } + data[method] = result[method]; + break; + case 'frus': + data[method] = result['enclosure-fru']; + break; + case 'disks': + data[method] = result['drives']; + break; + case 'fans': + data[method] = result['fan']; + break; + case 'ports': + data[method] = result['port']; + break; + default: + data[method] = result[method]; + } + } + catch (error) { + method_error = 'Method: ' + method + '. Failed to parse response received from device API.'; + } + } + else { + method_error = 'Method: ' + method + '. No data received by request.'; + } + + if (method_error.length > 0) { + data.errors.push(method_error); + } + }); + + if (data.errors.length == 0) { + data.errors = ''; + } + + return JSON.stringify(data); + description: 'The JSON with result of API requests.' + timeout: '{$HPE.MSA.DATA.TIMEOUT}' + parameters: + - name: base_url + value: '{$HPE.MSA.API.SCHEME}://{$HPE.MSA.API.HOST}:{$HPE.MSA.API.PORT}/' + - name: password + value: '{$HPE.MSA.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"HPE MSA 2060 Storage"}' + - name: username + value: '{$HPE.MSA.API.USERNAME}' + tags: + - tag: component + value: raw + - uuid: b3488b287d7b48f2a26cbc39b62c4a67 + name: 'Get disks' + type: DEPENDENT + key: hpe.msa.get.disks + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Disks data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''disks'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 98f1f30231e6419cb8a91bb0a9127985 + name: 'Get disk groups' + type: DEPENDENT + key: hpe.msa.get.disks.groups + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Disk groups data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''disk-groups'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 376ca0be12304701bd7c9fc6c1743428 + name: 'Get enclosures' + type: DEPENDENT + key: hpe.msa.get.enclosures + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Enclosures data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''enclosures'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 078dd015f25d4778af429f9b5e391bc5 + name: 'Get method errors' + type: DEPENDENT + key: hpe.msa.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of method errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''errors'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: errors + triggers: + - uuid: 2133ddf10a3641d78e609948d6842687 + expression: 'length(last(/HPE MSA 2060 Storage by HTTP/hpe.msa.get.errors))>0' + name: 'HPE MSA 2060 Storage: There are errors in method requests to API' + priority: AVERAGE + description: 'There are errors in method requests to API.' + dependencies: + - name: 'HPE MSA 2060 Storage: Service is down or unavailable' + expression: 'max(/HPE MSA 2060 Storage by HTTP/net.tcp.service["{$HPE.MSA.API.SCHEME}","{$HPE.MSA.API.HOST}","{$HPE.MSA.API.PORT}"],5m)=0' + tags: + - tag: scope + value: availability + - uuid: 7bc300f30a804cdd8acbba20b6d45f4c + name: 'Get fans' + type: DEPENDENT + key: hpe.msa.get.fans + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Fans data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''fans'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 41ec35cca22d4e6fb22a4e3759718a36 + name: 'Get FRU' + type: DEPENDENT + key: hpe.msa.get.fru + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'FRU data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''frus'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 09804c2149264387a81de7df98a07739 + name: 'Get pools' + type: DEPENDENT + key: hpe.msa.get.pools + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Pools data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''pools'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: c208ba831d534da9a8a650b31b7f4e8c + name: 'Get ports' + type: DEPENDENT + key: hpe.msa.get.ports + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Ports data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''ports'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 7cafbbb815324dc89f0db58384fe2e48 + name: 'Get power supplies' + type: DEPENDENT + key: hpe.msa.get.power_supplies + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Power supplies data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''power-supplies'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 8dd7fafd33144838a1b382cc75e551d7 + name: 'Get system' + type: DEPENDENT + key: hpe.msa.get.system + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The system data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.system[0]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: b7e65fee619b47fab8551df9bdd5d4cb + name: 'Get volumes' + type: DEPENDENT + key: hpe.msa.get.volumes + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Volumes data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''volumes'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 052e68cc870149718239fd9567da6fce + name: 'Get volume statistics' + type: DEPENDENT + key: hpe.msa.get.volumes.statistics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Volumes statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''volume-statistics'']' + error_handler: DISCARD_VALUE + master_item: + key: hpe.msa.get.data + tags: + - tag: component + value: raw + - uuid: 4c8b2c72135a4af781c0f31730366abe + name: 'System contact' + type: DEPENDENT + key: hpe.msa.system.contact + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the person who administers the system.' + inventory_link: CONTACT + preprocessing: + - type: JSONPATH + parameters: + - '$.[''system-contact'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: dc310d8c55a74a00bed9c004ba33d1fa + name: 'System health' + type: DEPENDENT + key: hpe.msa.system.health + delay: '0' + description: 'System health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 49e8c1d8a14f40b5acb2723e370ccccb + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.system.health)=1' + name: 'HPE MSA 2060 Storage: System health is in degraded state' + priority: WARNING + description: 'System health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 2709a971f2ce417d8e269a0e5ebdd964 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.system.health)=2' + name: 'HPE MSA 2060 Storage: System health is in fault state' + priority: AVERAGE + description: 'System health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: fa35428a4f41453984bd0bfa566e0674 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.system.health)=3' + name: 'HPE MSA 2060 Storage: System health is in unknown state' + priority: INFO + description: 'System health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: c4aae4a5f218472698751d9de8d1087d + name: 'System information' + type: DEPENDENT + key: hpe.msa.system.info + delay: '0' + value_type: CHAR + trends: '0' + description: 'A brief description of what the system is used for or how it is configured.' + inventory_link: NOTES + preprocessing: + - type: JSONPATH + parameters: + - '$.[''system-information'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: 3768f170e5ef44bca39e89b1f8973e6d + name: 'System location' + type: DEPENDENT + key: hpe.msa.system.location + delay: '0' + value_type: CHAR + trends: '0' + description: 'The location of the system.' + inventory_link: LOCATION + preprocessing: + - type: JSONPATH + parameters: + - '$.[''system-location'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: 00c58217d52e4cd5852bdd9c71c4375f + name: 'System name' + type: DEPENDENT + key: hpe.msa.system.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the storage system.' + inventory_link: NAME + preprocessing: + - type: JSONPATH + parameters: + - '$.[''system-name'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: 103e58d547284e68b079e92074950ff9 + name: 'Product ID' + type: DEPENDENT + key: hpe.msa.system.product_id + delay: '0' + value_type: CHAR + trends: '0' + description: 'The product model identifier.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - '$.[''product-id'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: 7865d8ae697c40c5b5855c47bb82ccc4 + name: 'Vendor name' + type: DEPENDENT + key: hpe.msa.system.vendor_name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The vendor name.' + inventory_link: VENDOR + preprocessing: + - type: JSONPATH + parameters: + - '$.[''vendor-name'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.msa.get.system + tags: + - tag: component + value: system + - uuid: 3831060089ff497993088472e922df38 + name: 'Service ping' + type: SIMPLE + key: 'net.tcp.service["{$HPE.MSA.API.SCHEME}","{$HPE.MSA.API.HOST}","{$HPE.MSA.API.PORT}"]' + description: 'Check if HTTP/HTTPS service accepts TCP connections.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9c1bf26f95d946f386bbf613d3d55779 + expression: 'max(/HPE MSA 2060 Storage by HTTP/net.tcp.service["{$HPE.MSA.API.SCHEME}","{$HPE.MSA.API.HOST}","{$HPE.MSA.API.PORT}"],5m)=0' + name: 'HPE MSA 2060 Storage: Service is down or unavailable' + priority: HIGH + description: 'HTTP/HTTPS service is down or unable to establish TCP connection.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 91c30dd0509843898601ce6d489fab03 + name: 'Controllers discovery' + type: DEPENDENT + key: hpe.msa.controllers.discovery + delay: '0' + description: 'Discover controllers.' + item_prototypes: + - uuid: 73bc16fc631f4386abbc78897db07e13 + name: 'Controller [{#CONTROLLER.ID}]: Cache: Read hits, rate' + type: DEPENDENT + key: 'hpe.msa.controllers.cache.read.hits["{#CONTROLLER.ID}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block to be read is found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''read-cache-hits'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 04e14fe4d8ba4693b954ebcac1671649 + name: 'Controller [{#CONTROLLER.ID}]: Cache: Read misses, rate' + type: DEPENDENT + key: 'hpe.msa.controllers.cache.read.misses["{#CONTROLLER.ID}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block to be read is not found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''read-cache-misses'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 5cb9f7eb42d2413a90161ac192629073 + name: 'Controller [{#CONTROLLER.ID}]: Cache: Write hits, rate' + type: DEPENDENT + key: 'hpe.msa.controllers.cache.write.hits["{#CONTROLLER.ID}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block written to is found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''write-cache-hits'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 61aa7235c6c44cfababd1b2390cc0443 + name: 'Controller [{#CONTROLLER.ID}]: Cache: Write misses, rate' + type: DEPENDENT + key: 'hpe.msa.controllers.cache.write.misses["{#CONTROLLER.ID}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block written to is not found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''write-cache-misses'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 0d754544c18143ff98114e1ed316ad1e + name: 'Controller [{#CONTROLLER.ID}]: Cache: Write utilization' + type: DEPENDENT + key: 'hpe.msa.controllers.cache.write["{#CONTROLLER.ID}",util]' + delay: '0' + units: '%' + description: 'Percentage of write cache in use, from 0 to 100.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''write-cache-used'']' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 482c5af99fe740278c4663ba300dee04 + name: 'Controller [{#CONTROLLER.ID}]: Cache memory size' + type: DEPENDENT + key: 'hpe.msa.controllers.cache["{#CONTROLLER.ID}",total]' + delay: '0' + units: B + description: 'Controller cache memory size.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''cache-memory-size'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 80d6ae014e354f6c844c3b88ea66c530 + name: 'Controller [{#CONTROLLER.ID}]: CPU utilization' + type: DEPENDENT + key: 'hpe.msa.controllers.cpu["{#CONTROLLER.ID}",util]' + delay: '0' + units: '%' + description: 'Percentage of time the CPU is busy, from 0 to 100.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''cpu-load'']' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + trigger_prototypes: + - uuid: 0bf68b46b7644ad5ad0123df49c1da35 + expression: 'min(/HPE MSA 2060 Storage by HTTP/hpe.msa.controllers.cpu["{#CONTROLLER.ID}",util],5m)>{$HPE.MSA.CONTROLLER.CPU.UTIL.CRIT}' + name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: High CPU utilization' + event_name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: High CPU utilization (over {$HPE.MSA.CONTROLLER.CPU.UTIL.CRIT}% for 5m)' + priority: WARNING + description: 'Controller CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: c8fbfd459fce4149b1459e366b61981a + name: 'Controller [{#CONTROLLER.ID}]: Data transfer rate: Reads' + type: DEPENDENT + key: 'hpe.msa.controllers.data_transfer.reads["{#CONTROLLER.ID}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data read rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-read-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 9c5c23273f5b43ad9e300d2c7b90bc3f + name: 'Controller [{#CONTROLLER.ID}]: Data transfer rate: Total' + type: DEPENDENT + key: 'hpe.msa.controllers.data_transfer.total["{#CONTROLLER.ID}",rate]' + delay: '0' + units: Bps + description: 'The data transfer rate, in bytes per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''bytes-per-second-numeric'']' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 94f0b7f7d397453f9227c1b473a77a4e + name: 'Controller [{#CONTROLLER.ID}]: Data transfer rate: Writes' + type: DEPENDENT + key: 'hpe.msa.controllers.data_transfer.writes["{#CONTROLLER.ID}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data write rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-written-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 8b0f014d1ed5470d919357f204b704ca + name: 'Controller [{#CONTROLLER.ID}]: IOPS, read rate' + type: DEPENDENT + key: 'hpe.msa.controllers.iops.read["{#CONTROLLER.ID}",rate]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: 'Number of read operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-reads'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 16f2fd5bd9d244daa09aef3f79a5d450 + name: 'Controller [{#CONTROLLER.ID}]: IOPS, total rate' + type: DEPENDENT + key: 'hpe.msa.controllers.iops.total["{#CONTROLLER.ID}",rate]' + delay: '0' + units: '!iops' + description: 'Input/output operations per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''iops'']' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 9b8366ac60304c3c98dedc278ad18418 + name: 'Controller [{#CONTROLLER.ID}]: IOPS, write rate' + type: DEPENDENT + key: 'hpe.msa.controllers.iops.write["{#CONTROLLER.ID}",rate]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: 'Number of write operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-writes'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 5f6c124f1aef41499ee52616ede02de9 + name: 'Controller [{#CONTROLLER.ID}]: Disks' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",disks]' + delay: '0' + description: 'Number of disks in the storage system.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''disks'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: c70f280c9c494b769b442f3a22a3c173 + name: 'Controller [{#CONTROLLER.ID}]: Disk groups' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",disk_groups]' + delay: '0' + description: 'Number of disk groups in the storage system.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''virtual-disks'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: ba1bb9818a9a487c8742d619316b087e + name: 'Controller [{#CONTROLLER.ID}]: Firmware version' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",firmware]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Storage controller firmware version.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''sc-fw'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 5f5307f2904a4792af1906a2b03a2a9b + name: 'Controller [{#CONTROLLER.ID}]: Health' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",health]' + delay: '0' + description: 'Controller health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: component + value: health + - tag: controller + value: '{#CONTROLLER.ID}' + trigger_prototypes: + - uuid: 3988a5b897a34c84952fa573d7019879 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",health])=1' + name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: Controller health is in degraded state' + priority: WARNING + description: 'Controller health is in degraded state.' + dependencies: + - name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: Controller is down' + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",status])=1' + tags: + - tag: scope + value: performance + - uuid: 7256e023ac82427bb6ee923d4ff07786 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",health])=2' + name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: Controller health is in fault state' + priority: AVERAGE + description: 'Controller health is in fault state.' + dependencies: + - name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: Controller is down' + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",status])=1' + tags: + - tag: scope + value: availability + - uuid: 15bc89e6c61549caaf5a66c85446ea9d + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",health])=3' + name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: Controller health is in unknown state' + priority: INFO + description: 'Controller health is in unknown state.' + dependencies: + - name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: Controller is down' + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",status])=1' + tags: + - tag: scope + value: notice + - uuid: 2c9c2636aeb543ec8e70102c555fe776 + name: 'Controller [{#CONTROLLER.ID}]: IP address' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",ip_address]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Controller network port IP address.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''ip-address'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 3405ef21e2cb40729e16c5b8aaf35996 + name: 'Controller [{#CONTROLLER.ID}]: Part number' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Part number of the controller.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''part-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 9b4ee1a634c3462f8fb48eb0e79984df + name: 'Controller [{#CONTROLLER.ID}]: Pools' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",pools]' + delay: '0' + description: 'Number of pools in the storage system.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-storage-pools'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: 6980d1841bc04c79868d6f05bf59921e + name: 'Controller [{#CONTROLLER.ID}]: Serial number' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Storage controller serial number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''serial-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: c0c2034fc848400c9b1f09f0c54790b3 + name: 'Controller [{#CONTROLLER.ID}]: Status' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",status]' + delay: '0' + description: 'Storage controller status.' + valuemap: + name: 'Controller status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: component + value: health + - tag: controller + value: '{#CONTROLLER.ID}' + trigger_prototypes: + - uuid: 99de4f8de416485db5c3844d1c8d654b + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",status])=1' + name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: Controller is down' + priority: HIGH + description: 'The controller is down.' + tags: + - tag: scope + value: availability + - uuid: 7a9b3ba8dd5446d0961a6eea595c2b49 + name: 'Controller [{#CONTROLLER.ID}]: Uptime' + type: DEPENDENT + key: 'hpe.msa.controllers["{#CONTROLLER.ID}",uptime]' + delay: '0' + units: uptime + description: 'Number of seconds since the controller was restarted.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''power-on-time'']' + master_item: + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#CONTROLLER.ID}' + trigger_prototypes: + - uuid: 255250aa4b75465a989bf8f3fd805667 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.controllers["{#CONTROLLER.ID}",uptime])<10m' + name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: Controller has been restarted' + event_name: 'HPE MSA 2060 Storage: Controller [{#CONTROLLER.ID}]: Controller has been restarted (uptime < 10m)' + priority: WARNING + description: 'The controller uptime is less than 10 minutes.' + tags: + - tag: scope + value: availability + - uuid: efd83949c23e4f8b8f137ca13bb2449c + name: 'Controller [{#CONTROLLER.ID}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.controllers["{#CONTROLLER.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered controller data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.controllers + tags: + - tag: component + value: controller + - tag: component + value: raw + - tag: controller + value: '{#CONTROLLER.ID}' + - uuid: d4be916f97ef415b9e892f464f8f8637 + name: 'Controller [{#CONTROLLER.ID}]: Get statistics data' + type: DEPENDENT + key: 'hpe.msa.get.controller_statistics["{#CONTROLLER.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered controller statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.controller_statistics + tags: + - tag: component + value: controller + - tag: component + value: raw + - tag: controller + value: '{#CONTROLLER.ID}' + graph_prototypes: + - uuid: a0bac1256ecf42fb9e980a49e52f008e + name: 'Controller [{#CONTROLLER.ID}]: Cache: Write utilization' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.controllers.cache.write["{#CONTROLLER.ID}",util]' + - uuid: 2b3343a641304872a82c84e1b918f8b3 + name: 'Controller [{#CONTROLLER.ID}]: Cache usage' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.controllers.cache.read.hits["{#CONTROLLER.ID}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.controllers.cache.read.misses["{#CONTROLLER.ID}",rate]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.controllers.cache.write.hits["{#CONTROLLER.ID}",rate]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.controllers.cache.write.misses["{#CONTROLLER.ID}",rate]' + - uuid: ed2117af47d94be9bed0632a0b662a25 + name: 'Controller [{#CONTROLLER.ID}]: Controller CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.controllers.cpu["{#CONTROLLER.ID}",util]' + - uuid: 27b53c540cae45da9b2e13cbbb1ab821 + name: 'Controller [{#CONTROLLER.ID}]: Data transfer rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.controllers.data_transfer.reads["{#CONTROLLER.ID}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.controllers.data_transfer.writes["{#CONTROLLER.ID}",rate]' + - uuid: ce3c794ac9424be5a104b812680cc77b + name: 'Controller [{#CONTROLLER.ID}]: Disk operations rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.controllers.iops.read["{#CONTROLLER.ID}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.controllers.iops.write["{#CONTROLLER.ID}",rate]' + master_item: + key: hpe.msa.get.controllers + lld_macro_paths: + - lld_macro: '{#CONTROLLER.ID}' + path: '$.[''controller-id'']' + - lld_macro: '{#DURABLE.ID}' + path: '$.[''durable-id'']' + - uuid: 46478b42c76348d7824c715fd6d20f74 + name: 'Disks discovery' + type: DEPENDENT + key: hpe.msa.disks.discovery + delay: '0' + description: 'Discover disks.' + item_prototypes: + - uuid: 4fedb88c1bb74c2cb5a0f72fdfcff104 + name: 'Disk [{#DURABLE.ID}]: Blocks size' + type: DEPENDENT + key: 'hpe.msa.disks.blocks["{#DURABLE.ID}",size]' + delay: '0' + units: B + description: 'The size of a block, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''blocksize'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: a491cb03df9c4e3ead70e0a74d9337b2 + name: 'Disk [{#DURABLE.ID}]: Blocks total' + type: DEPENDENT + key: 'hpe.msa.disks.blocks["{#DURABLE.ID}",total]' + delay: '0' + description: 'Total space in blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''blocks'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 6c20cf4e84b0427fbe797fc209d78785 + name: 'Disk [{#DURABLE.ID}]: Space total' + type: CALCULATED + key: 'hpe.msa.disks.space["{#DURABLE.ID}",total]' + delay: 1h + units: B + params: 'last(//hpe.msa.disks.blocks["{#DURABLE.ID}",size])*last(//hpe.msa.disks.blocks["{#DURABLE.ID}",total])' + description: 'Total size of the disk.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 80ea0929a1bf43f4bdeba80e675c52bd + name: 'Disk [{#DURABLE.ID}]: SSD life left' + type: DEPENDENT + key: 'hpe.msa.disks.ssd["{#DURABLE.ID}",life_left]' + delay: '0' + discover: NO_DISCOVER + units: '%' + description: 'The percentage of disk life remaining.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''ssd-life-left-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: f5bb9b7f437f434d83ca0542e41b2673 + name: 'Disk [{#DURABLE.ID}]: Disk group' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",group]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'If the disk is in a disk group, the disk group name.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''disk-group'']' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 86fca5ad02af49c8a1d48f4a260a0dbf + name: 'Disk [{#DURABLE.ID}]: Health' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",health]' + delay: '0' + description: 'Disk health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: health + - tag: disk + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: f76f8eec05a94e2db9d4cd3bcbb43aa4 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",health])=1' + name: 'HPE MSA 2060 Storage: Disk [{#DURABLE.ID}]: Disk health is in degraded state' + priority: WARNING + description: 'Disk health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 383181e44a114334ab28ff09f49b2d51 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",health])=2' + name: 'HPE MSA 2060 Storage: Disk [{#DURABLE.ID}]: Disk health is in fault state' + priority: AVERAGE + description: 'Disk health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 2b2d78c6c29f4bd58eff632809dee978 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",health])=3' + name: 'HPE MSA 2060 Storage: Disk [{#DURABLE.ID}]: Disk health is in unknown state' + priority: INFO + description: 'Disk health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: 8f8ad679881c4693acfed363e5498b34 + name: 'Disk [{#DURABLE.ID}]: Model' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Disk model.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''model'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 7fffecbf1ede4a5e9da5efc4311fc62e + name: 'Disk [{#DURABLE.ID}]: Storage pool' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",pool]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'If the disk is in a pool, the pool name.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''storage-pool-name'']' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 9a43a148ad4742e1a1df0038b36a171f + name: 'Disk [{#DURABLE.ID}]: Serial number' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Disk serial number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''serial-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 119dc5c43fb741028ccd599d25ad032c + name: 'Disk [{#DURABLE.ID}]: Temperature' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",temperature]' + delay: '0' + units: '!°C' + description: 'Temperature of the disk.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''temperature-numeric'']' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 0a0cf4600214443aa504d5c55d1f4015 + name: 'Disk [{#DURABLE.ID}]: Temperature status' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",temperature_status]' + delay: '0' + description: 'Disk temperature status.' + valuemap: + name: 'Disk temperature status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''temperature-status-numeric'']' + error_handler: DISCARD_VALUE + - type: IN_RANGE + parameters: + - '1' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: health + - tag: disk + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: d4b8f77421d744918e087f696b3f0fff + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",temperature_status])=2' + name: 'HPE MSA 2060 Storage: Disk [{#DURABLE.ID}]: Disk temperature is critically high' + priority: AVERAGE + description: 'Disk temperature is critically high.' + tags: + - tag: scope + value: performance + - uuid: fbbac4048fda477a99f00566624b6bdb + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",temperature_status])=3' + name: 'HPE MSA 2060 Storage: Disk [{#DURABLE.ID}]: Disk temperature is high' + priority: WARNING + description: 'Disk temperature is high.' + tags: + - tag: scope + value: performance + - uuid: 41e4f00446304206804da350a88ce3b9 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks["{#DURABLE.ID}",temperature_status])=4' + name: 'HPE MSA 2060 Storage: Disk [{#DURABLE.ID}]: Disk temperature is unknown' + priority: INFO + description: 'Disk temperature is unknown.' + tags: + - tag: scope + value: notice + - uuid: 1a23ef68bb484fd5baeba2b352b970db + name: 'Disk [{#DURABLE.ID}]: Type' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",type]' + delay: '0' + description: | + Disk type: + SAS: Enterprise SAS spinning disk. + SAS MDL: Midline SAS spinning disk. + SSD SAS: SAS solit-state disk. + valuemap: + name: 'Disk type' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''description-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: d8e35779834640c8afdc5874f72fe8af + name: 'Disk [{#DURABLE.ID}]: Vendor' + type: DEPENDENT + key: 'hpe.msa.disks["{#DURABLE.ID}",vendor]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Disk vendor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''vendor'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DURABLE.ID}' + - uuid: 2f213e512833498081747c89b5238dc8 + name: 'Disk [{#DURABLE.ID}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.disks["{#DURABLE.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered disk data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.disks + tags: + - tag: component + value: disk + - tag: component + value: raw + - tag: disk + value: '{#DURABLE.ID}' + master_item: + key: hpe.msa.get.disks + lld_macro_paths: + - lld_macro: '{#DURABLE.ID}' + path: '$.[''durable-id'']' + - lld_macro: '{#TYPE}' + path: '$.[''description-numeric'']' + overrides: + - name: 'SSD life left' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: '8' + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: 'SSD life left' + discover: DISCOVER + - uuid: 88aaea8c16a247559c68783ad0cd5c4d + name: 'Disk groups discovery' + type: DEPENDENT + key: hpe.msa.disks.groups.discovery + delay: '0' + description: 'Discover disk groups.' + item_prototypes: + - uuid: 8f68ad1b814d4287a6fd72d5bd03f7da + name: 'Disk group [{#NAME}]: Average response time: Read' + type: DEPENDENT + key: 'hpe.msa.disks.groups.avg_rsp_time["{#NAME}",read]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average response time for all read operations, calculated over the interval since these statistics were last requested or reset.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''avg-read-rsp-time'']' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 2ae8acbcd0b9442c9adc8086fa36fa40 + name: 'Disk group [{#NAME}]: Average response time: Total' + type: DEPENDENT + key: 'hpe.msa.disks.groups.avg_rsp_time["{#NAME}",total]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average response time for read and write operations, calculated over the interval since these statistics were last requested or reset.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''avg-rsp-time'']' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: f99ce5e6e31140c298ee447d3a2b8c4d + name: 'Disk group [{#NAME}]: Average response time: Write' + type: DEPENDENT + key: 'hpe.msa.disks.groups.avg_rsp_time["{#NAME}",write]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average response time for all write operations, calculated over the interval since these statistics were last requested or reset.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''avg-write-rsp-time'']' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 705fce660a944a47ad7ff0e9c9b1d37e + name: 'Disk group [{#NAME}]: Blocks free' + type: DEPENDENT + key: 'hpe.msa.disks.groups.blocks["{#NAME}",free]' + delay: '0' + description: 'Free space in blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''freespace-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 27e3fc79212e407ca1ae5fb06557440d + name: 'Disk group [{#NAME}]: Blocks size' + type: DEPENDENT + key: 'hpe.msa.disks.groups.blocks["{#NAME}",size]' + delay: '0' + units: B + description: 'The size of a block, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''blocksize'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: f14e651fd9dc4b03bb00e5db780f0114 + name: 'Disk group [{#NAME}]: Blocks total' + type: DEPENDENT + key: 'hpe.msa.disks.groups.blocks["{#NAME}",total]' + delay: '0' + description: 'Total space in blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''blocks'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: ecd3de6d32e94d2ab50111659147c97e + name: 'Disk group [{#NAME}]: Data transfer rate: Reads' + type: DEPENDENT + key: 'hpe.msa.disks.groups.data_transfer.reads["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data read rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-read-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 28b236ea619f4130a3271459e9fce06b + name: 'Disk group [{#NAME}]: Data transfer rate: Total' + type: DEPENDENT + key: 'hpe.msa.disks.groups.data_transfer.total["{#NAME}",rate]' + delay: '0' + units: Bps + description: 'The data transfer rate, in bytes per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''bytes-per-second-numeric'']' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 51ef802067c149bea1d5d976df6e3a6f + name: 'Disk group [{#NAME}]: Data transfer rate: Writes' + type: DEPENDENT + key: 'hpe.msa.disks.groups.data_transfer.writes["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data write rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-written-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 95925d6d4af94964b388208ff185642d + name: 'Disk group [{#NAME}]: IOPS, read rate' + type: DEPENDENT + key: 'hpe.msa.disks.groups.iops.read["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: 'Number of read operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-reads'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: c9fdf59576554063b404d190ad90db18 + name: 'Disk group [{#NAME}]: IOPS, total rate' + type: DEPENDENT + key: 'hpe.msa.disks.groups.iops.total["{#NAME}",rate]' + delay: '0' + units: '!iops' + description: 'Input/output operations per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''iops'']' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 31f5b13a56704e438b600df70c37a1fd + name: 'Disk group [{#NAME}]: IOPS, write rate' + type: DEPENDENT + key: 'hpe.msa.disks.groups.iops.write["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: 'Number of write operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-writes'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 7359b1d550734d30bb83612538b36e95 + name: 'Disk group [{#NAME}]: RAID type' + type: DEPENDENT + key: 'hpe.msa.disks.groups.raid["{#NAME}",type]' + delay: '0' + description: 'The RAID level of the disk group.' + valuemap: + name: 'RAID type' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''raidtype-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: b0d49d3da6b14b9cb8eeb95a3665a26e + name: 'Disk group [{#NAME}]: Space free' + type: CALCULATED + key: 'hpe.msa.disks.groups.space["{#NAME}",free]' + units: B + params: 'last(//hpe.msa.disks.groups.blocks["{#NAME}",size])*last(//hpe.msa.disks.groups.blocks["{#NAME}",free])' + description: 'The free space in the disk group.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: bc8e6e0fb286466593186708cddf3b2a + name: 'Disk group [{#NAME}]: Pool space used' + type: DEPENDENT + key: 'hpe.msa.disks.groups.space["{#NAME}",pool_util]' + delay: '0' + units: '%' + description: 'The percentage of pool capacity that the disk group occupies.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''pool-percentage'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: fb3dd5308c97446693932206be17ace3 + name: 'Disk group [{#NAME}]: Space total' + type: CALCULATED + key: 'hpe.msa.disks.groups.space["{#NAME}",total]' + units: B + params: 'last(//hpe.msa.disks.groups.blocks["{#NAME}",size])*last(//hpe.msa.disks.groups.blocks["{#NAME}",total])' + description: 'The capacity of the disk group.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 2a9c7f901f494b8bb7d2c74cd7c3030c + name: 'Disk group [{#NAME}]: Space utilization' + type: CALCULATED + key: 'hpe.msa.disks.groups.space["{#NAME}",util]' + value_type: FLOAT + units: '%' + params: '100-last(//hpe.msa.disks.groups.space["{#NAME}",free])/last(//hpe.msa.disks.groups.space["{#NAME}",total])*100' + description: 'The space utilization percentage in the disk group.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + trigger_prototypes: + - uuid: df1af9dad6444821a86a26158469d0cb + expression: 'min(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups.space["{#NAME}",util],5m)>{$HPE.MSA.DISKS.GROUP.PUSED.MAX.CRIT:"{#NAME}"}' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group space is critically low' + event_name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group space is critically low (used > {$HPE.MSA.DISKS.GROUP.PUSED.MAX.CRIT:"{#NAME}"}%)' + priority: AVERAGE + description: 'Disk group is running low on free space (less than {$HPE.MSA.DISKS.GROUP.PUSED.MAX.CRIT:"{#NAME}"}% available).' + tags: + - tag: scope + value: performance + - uuid: 713960711c324dc780998f8f263344a2 + expression: 'min(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups.space["{#NAME}",util],5m)>{$HPE.MSA.DISKS.GROUP.PUSED.MAX.WARN:"{#NAME}"}' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group space is low' + event_name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group space is low (used > {$HPE.MSA.DISKS.GROUP.PUSED.MAX.WARN:"{#NAME}"}%)' + priority: WARNING + description: 'Disk group is running low on free space (less than {$HPE.MSA.DISKS.GROUP.PUSED.MAX.WARN:"{#NAME}"}% available).' + dependencies: + - name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group space is critically low' + expression: 'min(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups.space["{#NAME}",util],5m)>{$HPE.MSA.DISKS.GROUP.PUSED.MAX.CRIT:"{#NAME}"}' + tags: + - tag: scope + value: performance + - uuid: 4c6bbdcdb05d45e0af52548aef4e8716 + name: 'Disk group [{#NAME}]: Disks count' + type: DEPENDENT + key: 'hpe.msa.disks.groups["{#NAME}",disk_count]' + delay: '0' + description: 'Number of disks in the disk group.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''diskcount'']' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: disk-group + value: '{#NAME}' + - uuid: 97b6e0e2ec844636be64931fca6e2c6c + name: 'Disk group [{#NAME}]: Health' + type: DEPENDENT + key: 'hpe.msa.disks.groups["{#NAME}",health]' + delay: '0' + description: 'Disk group health.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: component + value: health + - tag: disk-group + value: '{#NAME}' + trigger_prototypes: + - uuid: 7899b8a15b5042f3a4467a7cdee4c6ae + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",health])=1' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group health is in degraded state' + priority: WARNING + description: 'Disk group health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: e7c6a3b20c424196854a5437aba4c3ec + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",health])=2' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group health is in fault state' + priority: AVERAGE + description: 'Disk group health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 177dd9d1cfa54b3e8c9e6479cb96af03 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",health])=3' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group health is in unknown state' + priority: INFO + description: 'Disk group health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: 6755c1253e83442780eeb31d67062980 + name: 'Disk group [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.msa.disks.groups["{#NAME}",status]' + delay: '0' + description: | + The status of the disk group: + + - CRIT: Critical. The disk group is online but isn't fault tolerant because some of it's disks are down. + - DMGD: Damaged. The disk group is online and fault tolerant, but some of it's disks are damaged. + - FTDN: Fault tolerant with a down disk.The disk group is online and fault tolerant, but some of it's disks are down. + - FTOL: Fault tolerant. + - MSNG: Missing. The disk group is online and fault tolerant, but some of it's disks are missing. + - OFFL: Offline. Either the disk group is using offline initialization, or it's disks are down and data may be lost. + - QTCR: Quarantined critical. The disk group is critical with at least one inaccessible disk. For example, two disks are inaccessible in a RAID 6 disk group or one disk is inaccessible for other fault-tolerant RAID levels. If the inaccessible disks come online or if after 60 seconds from being quarantined the disk group is QTCRor QTDN, the disk group is automatically dequarantined. + - QTDN: Quarantined with a down disk. The RAID6 disk group has one inaccessible disk. The disk group is fault tolerant but degraded. If the inaccessible disks come online or if after 60 seconds from being quarantined the disk group is QTCRor QTDN, the disk group is automatically dequarantined. + - QTOF: Quarantined offline. The disk group is offline with multiple inaccessible disks causing user data to be incomplete, or is an NRAID or RAID 0 disk group. + - QTUN: Quarantined unsupported. The disk group contains data in a format that is not supported by this system. For example, this system does not support linear disk groups. + - STOP: The disk group is stopped. + - UNKN: Unknown. + - UP: Up. The disk group is online and does not have fault-tolerant attributes. + valuemap: + name: 'Disk group status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + tags: + - tag: component + value: disk-group + - tag: component + value: health + - tag: disk-group + value: '{#NAME}' + trigger_prototypes: + - uuid: 8deee88d964846598d5574d197694b17 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=9' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group has damaged disks' + priority: AVERAGE + description: 'The disk group is online and fault tolerant, but some of it''s disks are damaged.' + tags: + - tag: scope + value: performance + - uuid: c615e1bb1c824e7ba109b8a6580eb9b9 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=8' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group has missing disks' + priority: AVERAGE + description: 'The disk group is online and fault tolerant, but some of it''s disks are missing.' + tags: + - tag: scope + value: performance + - uuid: bead3a0bb95342b3b3ceae7becff99b8 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=1' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group is fault tolerant with a down disk' + priority: AVERAGE + description: 'The disk group is online and fault tolerant, but some of it''s disks are down.' + tags: + - tag: scope + value: performance + - uuid: c89466e00c2b40c1933fde60332a428a + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=3' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group is offline' + priority: AVERAGE + description: 'Either the disk group is using offline initialization, or it''s disks are down and data may be lost.' + tags: + - tag: scope + value: availability + - uuid: 3dc5b3bc1128451491217639cf4e5115 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=4' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group is quarantined critical' + priority: AVERAGE + description: 'The disk group is critical with at least one inaccessible disk. For example, two disks are inaccessible in a RAID 6 disk group or one disk is inaccessible for other fault-tolerant RAID levels. If the inaccessible disks come online or if after 60 seconds from being quarantined the disk group is QTCRor QTDN, the disk group is automatically dequarantined.' + tags: + - tag: scope + value: performance + - uuid: 6892c8c05331497ab37db2b2fe3673a1 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=5' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group is quarantined offline' + priority: AVERAGE + description: 'The disk group is offline with multiple inaccessible disks causing user data to be incomplete, or is an NRAID or RAID 0 disk group.' + tags: + - tag: scope + value: availability + - uuid: 8a8bda977e11462a906fd200f1b67a72 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=5' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group is quarantined unsupported' + priority: AVERAGE + description: 'The disk group contains data in a format that is not supported by this system. For example, this system does not support linear disk groups.' + tags: + - tag: scope + value: performance + - uuid: 21f06dd8f8de49f58a64a638d24ff905 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=6' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group is quarantined with an inaccessible disk' + priority: AVERAGE + description: 'The RAID6 disk group has one inaccessible disk. The disk group is fault tolerant but degraded. If the inaccessible disks come online or if after 60 seconds from being quarantined the disk group is QTCRor QTDN, the disk group is automatically dequarantined.' + tags: + - tag: scope + value: performance + - uuid: 1914fede726744829b2e41392b957857 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=7' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group is stopped' + priority: AVERAGE + description: 'The disk group is stopped.' + tags: + - tag: scope + value: availability + - uuid: a79a6cf86bd44f55a7859808f632bf48 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.disks.groups["{#NAME}",status])=2' + name: 'HPE MSA 2060 Storage: Disk group [{#NAME}]: Disk group status is critical' + priority: AVERAGE + description: 'The disk group is online but isn''t fault tolerant because some of its disks are down.' + tags: + - tag: scope + value: performance + - uuid: 7c7ce5cd807a4791800ed5f812b4b633 + name: 'Disk group [{#NAME}]: Get statistics data' + type: DEPENDENT + key: 'hpe.msa.get.disks.groups.statistics["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered disk group statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''name''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.disks.get.groups.statistics + tags: + - tag: component + value: disk-group + - tag: component + value: raw + - tag: disk-group + value: '{#NAME}' + - uuid: 9520e31d713b4ba59b682f47dda7154e + name: 'Disk group [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.disks.groups["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered disk group data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''name''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.get.disks.groups + tags: + - tag: component + value: disk-group + - tag: component + value: raw + - tag: disk-group + value: '{#NAME}' + graph_prototypes: + - uuid: e1f7331965524670b8c44c0b0d8eb99b + name: 'Disk group [{#NAME}]: Average response time' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.disks.groups.avg_rsp_time["{#NAME}",read]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.disks.groups.avg_rsp_time["{#NAME}",write]' + - uuid: 1354b947316a46be8dc696c29f408a6b + name: 'Disk group [{#NAME}]: Data transfer rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.disks.groups.data_transfer.reads["{#NAME}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.disks.groups.data_transfer.writes["{#NAME}",rate]' + - uuid: f7f556011add4cd6b0fe8e4545c607a0 + name: 'Disk group [{#NAME}]: Disk operations rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.disks.groups.iops.read["{#NAME}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.disks.groups.iops.write["{#NAME}",rate]' + - uuid: 495a941dc4ef45e8b60d6a94bb1fbdcd + name: 'Disk group [{#NAME}]: Space utilization' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.disks.groups.space["{#NAME}",free]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.disks.groups.space["{#NAME}",total]' + master_item: + key: hpe.msa.get.disks.groups + lld_macro_paths: + - lld_macro: '{#NAME}' + path: '$.[''name'']' + - uuid: 5a97871f702348dca7a5378885087ea8 + name: 'Enclosures discovery' + type: DEPENDENT + key: hpe.msa.enclosures.discovery + delay: '0' + description: 'Discover enclosures.' + item_prototypes: + - uuid: 2e70432b3c324ecdb78ab77e5f9bbaf3 + name: 'Enclosure [{#DURABLE.ID}]: Health' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",health]' + delay: '0' + description: 'Enclosure health.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: health + - tag: enclosure + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: d15d460b8c924f609f5cdd055060f8ce + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",health])=1' + name: 'HPE MSA 2060 Storage: Enclosure [{#DURABLE.ID}]: Enclosure health is in degraded state' + priority: WARNING + description: 'Enclosure health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 7c2f6a7efbf245298c3ee0b137718dc8 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",health])=2' + name: 'HPE MSA 2060 Storage: Enclosure [{#DURABLE.ID}]: Enclosure health is in fault state' + priority: AVERAGE + description: 'Enclosure health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 6732ced099d748daa5cbdf6d97580efd + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",health])=3' + name: 'HPE MSA 2060 Storage: Enclosure [{#DURABLE.ID}]: Enclosure health is in unknown state' + priority: INFO + description: 'Enclosure health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: e3a1c5f6dee545a8a7d4b68768d060ab + name: 'Enclosure [{#DURABLE.ID}]: Midplane serial number' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",midplane_serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Midplane serial number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''midplane-serial-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#DURABLE.ID}' + - uuid: 1dcecf03b9814aac9749badf800e4717 + name: 'Enclosure [{#DURABLE.ID}]: Model' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Enclosure model.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''model'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#DURABLE.ID}' + - uuid: 89f11d7bf0e24a92bf4d4b4b1d86af58 + name: 'Enclosure [{#DURABLE.ID}]: Part number' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Enclosure part number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''part-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#DURABLE.ID}' + - uuid: b426baf09f1445eda59abd0e2ee6dd2c + name: 'Enclosure [{#DURABLE.ID}]: Power' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",power]' + delay: '0' + value_type: FLOAT + units: W + description: 'Enclosure power in watts.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''enclosure-power'']' + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#DURABLE.ID}' + - uuid: 602b941548ab417bbe59f3f298bf6da9 + name: 'Enclosure [{#DURABLE.ID}]: Status' + type: DEPENDENT + key: 'hpe.msa.enclosures["{#DURABLE.ID}",status]' + delay: '0' + description: 'Enclosure status.' + valuemap: + name: 'Enclosure status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '6' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: health + - tag: enclosure + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: ef763c350b2e4d20bdecbe50703ec8dd + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",status])=2' + name: 'HPE MSA 2060 Storage: Enclosure [{#DURABLE.ID}]: Enclosure has critical status' + priority: HIGH + description: 'Enclosure has critical status.' + tags: + - tag: scope + value: availability + - uuid: e3a7198f287e4600a0abfa929ee183de + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",status])=6' + name: 'HPE MSA 2060 Storage: Enclosure [{#DURABLE.ID}]: Enclosure has unknown status' + priority: INFO + description: 'Enclosure has unknown status.' + tags: + - tag: scope + value: notice + - uuid: 27ba4d2474604caaa2712222cf621294 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",status])=3' + name: 'HPE MSA 2060 Storage: Enclosure [{#DURABLE.ID}]: Enclosure has warning status' + priority: WARNING + description: 'Enclosure has warning status.' + tags: + - tag: scope + value: performance + - uuid: 53b61c7521d94161b063a5ea506b5466 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",status])=7' + name: 'HPE MSA 2060 Storage: Enclosure [{#DURABLE.ID}]: Enclosure is unavailable' + priority: HIGH + description: 'Enclosure is unavailable.' + tags: + - tag: scope + value: availability + - uuid: 2218d1bf55aa4db0968dab804c0687e3 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.enclosures["{#DURABLE.ID}",status])=4' + name: 'HPE MSA 2060 Storage: Enclosure [{#DURABLE.ID}]: Enclosure is unrecoverable' + priority: HIGH + description: 'Enclosure is unrecoverable.' + tags: + - tag: scope + value: availability + - uuid: f9d69bb1597e435f8c8c67b51998c0a4 + name: 'Enclosure [{#DURABLE.ID}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.enclosures["{#DURABLE.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered enclosure data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.enclosures + tags: + - tag: component + value: enclosure + - tag: component + value: raw + - tag: enclosure + value: '{#DURABLE.ID}' + master_item: + key: hpe.msa.get.enclosures + lld_macro_paths: + - lld_macro: '{#DURABLE.ID}' + path: '$.[''durable-id'']' + - uuid: 9043169f17de44baa174459b560de4f5 + name: 'Fans discovery' + type: DEPENDENT + key: hpe.msa.fans.discovery + delay: '0' + description: 'Discover fans.' + item_prototypes: + - uuid: f9be9af4ff9047f1af946313df3e7165 + name: 'Fan [{#DURABLE.ID}]: Health' + type: DEPENDENT + key: 'hpe.msa.fans["{#DURABLE.ID}",health]' + delay: '0' + description: 'Fan health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.fans["{#DURABLE.ID}",data]' + tags: + - tag: component + value: fan + - tag: component + value: health + - tag: fan + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: 3ee1b1d0d6b34c8eba02480e9e4d5be2 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",health])=1' + name: 'HPE MSA 2060 Storage: Fan [{#DURABLE.ID}]: Fan health is in degraded state' + priority: WARNING + description: 'Fan health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 3e3785f9915d46068ebe2eff21bac813 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",health])=2' + name: 'HPE MSA 2060 Storage: Fan [{#DURABLE.ID}]: Fan health is in fault state' + priority: AVERAGE + description: 'Fan health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 4bf2e519b5484d338f997ea5dac462e0 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",health])=3' + name: 'HPE MSA 2060 Storage: Fan [{#DURABLE.ID}]: Fan health is in unknown state' + priority: INFO + description: 'Fan health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: f028a919d56b45129f9ead200519adaa + name: 'Fan [{#DURABLE.ID}]: Speed' + type: DEPENDENT + key: 'hpe.msa.fans["{#DURABLE.ID}",speed]' + delay: '0' + units: '!RPM' + description: 'Fan speed (revolutions per minute).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''speed'']' + master_item: + key: 'hpe.msa.get.fans["{#DURABLE.ID}",data]' + tags: + - tag: component + value: fan + - tag: fan + value: '{#DURABLE.ID}' + - uuid: df1d8af5df104afc829b403aec6efc96 + name: 'Fan [{#DURABLE.ID}]: Status' + type: DEPENDENT + key: 'hpe.msa.fans["{#DURABLE.ID}",status]' + delay: '0' + description: 'Fan status.' + valuemap: + name: 'Fan status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.fans["{#DURABLE.ID}",data]' + tags: + - tag: component + value: fan + - tag: component + value: health + - tag: fan + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: 183a1e1c4d444c9a8189035a2af22dc1 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",status])=1' + name: 'HPE MSA 2060 Storage: Fan [{#DURABLE.ID}]: Fan has error status' + priority: AVERAGE + description: 'Fan has error status.' + tags: + - tag: scope + value: availability + - uuid: 4d9e3d1bb22444f981295df07f0d9c24 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",status])=3' + name: 'HPE MSA 2060 Storage: Fan [{#DURABLE.ID}]: Fan is missing' + priority: INFO + description: 'Fan is missing.' + tags: + - tag: scope + value: notice + - uuid: a6e4ea796b98432284a9fd9fff1d82f9 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.fans["{#DURABLE.ID}",status])=2' + name: 'HPE MSA 2060 Storage: Fan [{#DURABLE.ID}]: Fan is off' + priority: WARNING + description: 'Fan is off.' + tags: + - tag: scope + value: availability + - uuid: 468505cb7da74e04966477b02ab63b12 + name: 'Fan [{#DURABLE.ID}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.fans["{#DURABLE.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered fan data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.fans + tags: + - tag: component + value: fan + - tag: component + value: raw + - tag: fan + value: '{#DURABLE.ID}' + graph_prototypes: + - uuid: 1def9fd4627d4552bf34e8ce35f3cd46 + name: 'Fan [{#DURABLE.ID}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.fans["{#DURABLE.ID}",speed]' + master_item: + key: hpe.msa.get.fans + lld_macro_paths: + - lld_macro: '{#DURABLE.ID}' + path: '$.[''durable-id'']' + - uuid: 30f91e8f7fba489aa649759219efa67c + name: 'FRU discovery' + type: DEPENDENT + key: hpe.msa.frus.discovery + delay: '0' + filter: + conditions: + - macro: '{#TYPE}' + value: ^(POWER_SUPPLY|RAID_IOM|CHASSIS_MIDPLANE)$ + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discover FRU.' + item_prototypes: + - uuid: 8cbf62d188084ea4a72eaa37987d8d8e + name: 'FRU [{#ENCLOSURE.ID}: {#LOCATION}]: Part number' + type: DEPENDENT + key: 'hpe.msa.frus["{#ENCLOSURE.ID}:{#LOCATION}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: '{#DESCRIPTION}. Part number of the FRU.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''part-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.frus["{#ENCLOSURE.ID}:{#LOCATION}",data]' + tags: + - tag: component + value: fru + - tag: fru + value: 'Enclosure {#ENCLOSURE.ID}: {#LOCATION}' + - uuid: 49c52c2c5b174c78a60756eb7a9e34f1 + name: 'FRU [{#ENCLOSURE.ID}: {#LOCATION}]: Serial number' + type: DEPENDENT + key: 'hpe.msa.frus["{#ENCLOSURE.ID}:{#LOCATION}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: '{#DESCRIPTION}. FRU serial number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''serial-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.frus["{#ENCLOSURE.ID}:{#LOCATION}",data]' + tags: + - tag: component + value: fru + - tag: fru + value: 'Enclosure {#ENCLOSURE.ID}: {#LOCATION}' + - uuid: d72f7be111ae4335b92d6a1d0ad9e3ee + name: 'FRU [{#ENCLOSURE.ID}: {#LOCATION}]: Status' + type: DEPENDENT + key: 'hpe.msa.frus["{#ENCLOSURE.ID}:{#LOCATION}",status]' + delay: '0' + description: | + {#DESCRIPTION}. FRU status: + + Absent: The FRU is not present. + Fault: The FRU's health is Degraded or Fault. + Invalid data: The FRU ID data is invalid. The FRU's EEPROM is improperly programmed. + OK: The FRU is operating normally. + Power off: The FRU is powered off. + valuemap: + name: 'FRU status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''fru-status-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.frus["{#ENCLOSURE.ID}:{#LOCATION}",data]' + tags: + - tag: component + value: fru + - tag: component + value: health + - tag: fru + value: 'Enclosure {#ENCLOSURE.ID}: {#LOCATION}' + trigger_prototypes: + - uuid: 2533eb2e4344494d9ec72629dab7b1a8 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.frus["{#ENCLOSURE.ID}:{#LOCATION}",status])=0' + name: 'HPE MSA 2060 Storage: FRU [{#ENCLOSURE.ID}: {#LOCATION}]: FRU ID data is invalid' + priority: WARNING + description: 'The FRU ID data is invalid. The FRU''s EEPROM is improperly programmed.' + tags: + - tag: scope + value: performance + - uuid: 7a994469e45f467c8582c24258d0eb75 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.frus["{#ENCLOSURE.ID}:{#LOCATION}",status])=1' + name: 'HPE MSA 2060 Storage: FRU [{#ENCLOSURE.ID}: {#LOCATION}]: FRU status is Degraded or Fault' + priority: AVERAGE + description: 'FRU status is Degraded or Fault.' + tags: + - tag: scope + value: availability + - uuid: 7bf42c023d5647bdbc4c35d0fb474454 + name: 'FRU [{#ENCLOSURE.ID}: {#LOCATION}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.frus["{#ENCLOSURE.ID}:{#LOCATION}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered FRU data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''name''] == "{#TYPE}")].first()' + master_item: + key: hpe.msa.get.fru + tags: + - tag: component + value: fru + - tag: component + value: raw + - tag: fru + value: 'Enclosure {#ENCLOSURE.ID}: {#LOCATION}' + master_item: + key: hpe.msa.get.fru + lld_macro_paths: + - lld_macro: '{#DESCRIPTION}' + path: '$.[''description'']' + - lld_macro: '{#ENCLOSURE.ID}' + path: '$.[''enclosure-id'']' + - lld_macro: '{#LOCATION}' + path: '$.[''fru-location'']' + - lld_macro: '{#TYPE}' + path: '$.[''name'']' + - uuid: 178b94ddcab947ffb1614622c2b7e08e + name: 'Pools discovery' + type: DEPENDENT + key: hpe.msa.pools.discovery + delay: '0' + description: 'Discover pools.' + item_prototypes: + - uuid: 677f29f2879c44ceaf210bed98f257b0 + name: 'Pool [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.pools["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered pool data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''name''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.get.pools + tags: + - tag: component + value: pool + - tag: component + value: raw + - tag: pool + value: '{#NAME}' + - uuid: 09d67b3577af4e21a7bbd09078d705cd + name: 'Pool [{#NAME}]: Blocks available' + type: DEPENDENT + key: 'hpe.msa.pools.blocks["{#NAME}",available]' + delay: '0' + description: 'Available space in blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''total-avail-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.pools["{#NAME}",data]' + tags: + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + - uuid: 076921fcd93941b09b79c7d44873417d + name: 'Pool [{#NAME}]: Blocks size' + type: DEPENDENT + key: 'hpe.msa.pools.blocks["{#NAME}",size]' + delay: '0' + units: B + description: 'The size of a block, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''blocksize'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.pools["{#NAME}",data]' + tags: + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + - uuid: fd29559e5bb3455b8b4cfe56f75f54b2 + name: 'Pool [{#NAME}]: Blocks total' + type: DEPENDENT + key: 'hpe.msa.pools.blocks["{#NAME}",total]' + delay: '0' + description: 'Total space in blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''total-size-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.pools["{#NAME}",data]' + tags: + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + - uuid: d99eeba76b354e73b0118b46402d93bf + name: 'Pool [{#NAME}]: Space free' + type: CALCULATED + key: 'hpe.msa.pools.space["{#NAME}",free]' + units: B + params: 'last(//hpe.msa.pools.blocks["{#NAME}",size])*last(//hpe.msa.pools.blocks["{#NAME}",available])' + description: 'The free space in the pool.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + - uuid: 9fce545fbe724da28a13b8ca8759c37d + name: 'Pool [{#NAME}]: Space total' + type: CALCULATED + key: 'hpe.msa.pools.space["{#NAME}",total]' + units: B + params: 'last(//hpe.msa.pools.blocks["{#NAME}",size])*last(//hpe.msa.pools.blocks["{#NAME}",total])' + description: 'The capacity of the pool.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + - uuid: ad9bdb342a494d82a36e42e75a3bbf3e + name: 'Pool [{#NAME}]: Space utilization' + type: CALCULATED + key: 'hpe.msa.pools.space["{#NAME}",util]' + value_type: FLOAT + units: '%' + params: '100-last(//hpe.msa.pools.space["{#NAME}",free])/last(//hpe.msa.pools.space["{#NAME}",total])*100' + description: 'The space utilization percentage in the pool.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: c73b4a77e94a43f5951f6a541d65637e + expression: 'min(/HPE MSA 2060 Storage by HTTP/hpe.msa.pools.space["{#NAME}",util],5m)>{$HPE.MSA.POOL.PUSED.MAX.CRIT:"{#NAME}"}' + name: 'HPE MSA 2060 Storage: Pool [{#NAME}]: Pool space is critically low' + event_name: 'HPE MSA 2060 Storage: Pool [{#NAME}]: Pool space is critically low (used > {$HPE.MSA.POOL.PUSED.MAX.CRIT:"{#NAME}"}%)' + priority: AVERAGE + description: 'Pool is running low on free space (less than {$HPE.MSA.POOL.PUSED.MAX.CRIT:"{#NAME}"}% available).' + tags: + - tag: scope + value: performance + - uuid: c7644beb62bc40e99d6045af6d4bc16f + expression: 'min(/HPE MSA 2060 Storage by HTTP/hpe.msa.pools.space["{#NAME}",util],5m)>{$HPE.MSA.POOL.PUSED.MAX.WARN:"{#NAME}"}' + name: 'HPE MSA 2060 Storage: Pool [{#NAME}]: Pool space is low' + event_name: 'HPE MSA 2060 Storage: Pool [{#NAME}]: Pool space is low (used > {$HPE.MSA.POOL.PUSED.MAX.WARN:"{#NAME}"}%)' + priority: WARNING + description: 'Pool is running low on free space (less than {$HPE.MSA.POOL.PUSED.MAX.WARN:"{#NAME}"}% available).' + dependencies: + - name: 'HPE MSA 2060 Storage: Pool [{#NAME}]: Pool space is critically low' + expression: 'min(/HPE MSA 2060 Storage by HTTP/hpe.msa.pools.space["{#NAME}",util],5m)>{$HPE.MSA.POOL.PUSED.MAX.CRIT:"{#NAME}"}' + tags: + - tag: scope + value: performance + - uuid: 15096639cae947d383a506f0332ff6d3 + name: 'Pool [{#NAME}]: Health' + type: DEPENDENT + key: 'hpe.msa.pools["{#NAME}",health]' + delay: '0' + description: 'Pool health.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.pools["{#NAME}",data]' + tags: + - tag: component + value: health + - tag: component + value: pool + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: 20723e93add44447a5cab3c8cc4849a6 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.pools["{#NAME}",health])=1' + name: 'HPE MSA 2060 Storage: Pool [{#NAME}]: Pool health is in degraded state' + priority: WARNING + description: 'Pool health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 1881bd0efca04c58a56effb8e232e734 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.pools["{#NAME}",health])=2' + name: 'HPE MSA 2060 Storage: Pool [{#NAME}]: Pool health is in fault state' + priority: AVERAGE + description: 'Pool health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 62db05047b5a4b8797eee5667bb3bdf4 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.pools["{#NAME}",health])=3' + name: 'HPE MSA 2060 Storage: Pool [{#NAME}]: Pool health is in unknown state' + priority: INFO + description: 'Pool [{#NAME}] health is in unknown state.' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 93151c5760fb405498d1df049185ffe7 + name: 'Pool [{#NAME}]: Space utilization' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.pools.space["{#NAME}",free]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.pools.space["{#NAME}",total]' + master_item: + key: hpe.msa.get.pools + lld_macro_paths: + - lld_macro: '{#NAME}' + path: '$.[''name'']' + - uuid: bed52618dbc6498f99ddeedc78c0cdad + name: 'Ports discovery' + type: DEPENDENT + key: hpe.msa.ports.discovery + delay: '0' + description: 'Discover ports.' + item_prototypes: + - uuid: 540799973d2d440ca80eeeae99f84798 + name: 'Port [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.ports["{#NAME}",,data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered port data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''port''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.get.ports + tags: + - tag: component + value: port + - tag: component + value: raw + - tag: port + value: '{#NAME}' + - uuid: cf4f9aaf55e6435d949d3b5074b9f37f + name: 'Port [{#NAME}]: Health' + type: DEPENDENT + key: 'hpe.msa.ports["{#NAME}",health]' + delay: '0' + description: 'Port health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.ports["{#NAME}",,data]' + tags: + - tag: component + value: health + - tag: component + value: port + - tag: port + value: '{#NAME}' + trigger_prototypes: + - uuid: 9775011d59a846669087e6c90c4a011a + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.ports["{#NAME}",health])=1' + name: 'HPE MSA 2060 Storage: Port [{#NAME}]: Port health is in degraded state' + priority: WARNING + description: 'Port health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: a5dec537528f42e0948ea15f1a290f26 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.ports["{#NAME}",health])=2' + name: 'HPE MSA 2060 Storage: Port [{#NAME}]: Port health is in fault state' + priority: AVERAGE + description: 'Port health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 7025a0e6c93e4731be966c2a9e774581 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.ports["{#NAME}",health])=3' + name: 'HPE MSA 2060 Storage: Port [{#NAME}]: Port health is in unknown state' + priority: INFO + description: 'Port health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: cab1cd26264d408998c5ea8737571ed4 + name: 'Port [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.msa.ports["{#NAME}",status]' + delay: '0' + description: 'Port status.' + valuemap: + name: Status + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.ports["{#NAME}",,data]' + tags: + - tag: component + value: health + - tag: component + value: port + - tag: port + value: '{#NAME}' + trigger_prototypes: + - uuid: c1d2f824a3d4470abb6817753b1d4047 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.ports["{#NAME}",status])=2' + name: 'HPE MSA 2060 Storage: Port [{#NAME}]: Port has error status' + priority: AVERAGE + description: 'Port has error status.' + tags: + - tag: scope + value: availability + - uuid: 6083cdfcb59848a6b5249147155996c2 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.ports["{#NAME}",status])=4' + name: 'HPE MSA 2060 Storage: Port [{#NAME}]: Port has unknown status' + priority: INFO + description: 'Port has unknown status.' + tags: + - tag: scope + value: notice + - uuid: dd32b960ce1544d880d94b2da4dba03e + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.ports["{#NAME}",status])=1' + name: 'HPE MSA 2060 Storage: Port [{#NAME}]: Port has warning status' + priority: WARNING + description: 'Port has warning status.' + tags: + - tag: scope + value: performance + - uuid: 32ad6655625e408a9dd577624afbfa6a + name: 'Port [{#NAME}]: Type' + type: DEPENDENT + key: 'hpe.msa.ports["{#NAME}",type]' + delay: '0' + description: 'Port type.' + valuemap: + name: 'Port type' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''port-type-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.ports["{#NAME}",,data]' + tags: + - tag: component + value: port + - tag: port + value: '{#NAME}' + master_item: + key: hpe.msa.get.ports + lld_macro_paths: + - lld_macro: '{#NAME}' + path: '$.[''port'']' + - uuid: 1561695bd2174eada622a0d90ee1c3df + name: 'Power supplies discovery' + type: DEPENDENT + key: hpe.msa.power_supplies.discovery + delay: '0' + description: 'Discover power supplies.' + item_prototypes: + - uuid: b7f37328cfff49789216d9caec2d09bc + name: 'Power supply [{#DURABLE.ID}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered power supply data.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@[''durable-id''] == "{#DURABLE.ID}")].first()' + master_item: + key: hpe.msa.get.power_supplies + tags: + - tag: component + value: power-supply + - tag: component + value: raw + - tag: power-supply + value: '{#DURABLE.ID}' + - uuid: 993bc2db3b444dc5bc37794985e63ea9 + name: 'Power supply [{#DURABLE.ID}]: Health' + type: DEPENDENT + key: 'hpe.msa.power_supplies["{#DURABLE.ID}",health]' + delay: '0' + description: 'Power supply health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + tags: + - tag: component + value: health + - tag: component + value: power-supply + - tag: power-supply + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: 1b512fda735440b5839a63fd26c19535 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",health])=1' + name: 'HPE MSA 2060 Storage: Power supply [{#DURABLE.ID}]: Power supply health is in degraded state' + priority: WARNING + description: 'Power supply health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: b75fb541ae0e43cc9cdb86e07dc3e394 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",health])=2' + name: 'HPE MSA 2060 Storage: Power supply [{#DURABLE.ID}]: Power supply health is in fault state' + priority: AVERAGE + description: 'Power supply health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: 555ee9ef33b54d029df2f17d5f899539 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",health])=3' + name: 'HPE MSA 2060 Storage: Power supply [{#DURABLE.ID}]: Power supply health is in unknown state' + priority: INFO + description: 'Power supply health is in unknown state.' + tags: + - tag: scope + value: notice + - uuid: efae55cfdd1e4021a623e2128f988611 + name: 'Power supply [{#DURABLE.ID}]: Part number' + type: DEPENDENT + key: 'hpe.msa.power_supplies["{#DURABLE.ID}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Power supply part number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''part-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + tags: + - tag: component + value: power-supply + - tag: power-supply + value: '{#DURABLE.ID}' + - uuid: 6716c3d0177247fe8a35fa1eb206a54f + name: 'Power supply [{#DURABLE.ID}]: Serial number' + type: DEPENDENT + key: 'hpe.msa.power_supplies["{#DURABLE.ID}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Power supply serial number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''serial-number'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + tags: + - tag: component + value: power-supply + - tag: power-supply + value: '{#DURABLE.ID}' + - uuid: a3ff6ab5576246fe9e794e01df4fe1b9 + name: 'Power supply [{#DURABLE.ID}]: Status' + type: DEPENDENT + key: 'hpe.msa.power_supplies["{#DURABLE.ID}",status]' + delay: '0' + description: 'Power supply status.' + valuemap: + name: Status + preprocessing: + - type: JSONPATH + parameters: + - '$.[''status-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.power_supplies["{#DURABLE.ID}",data]' + tags: + - tag: component + value: health + - tag: component + value: power-supply + - tag: power-supply + value: '{#DURABLE.ID}' + trigger_prototypes: + - uuid: 49c9d2d61c45476da5564299b2eebdee + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",status])=2' + name: 'HPE MSA 2060 Storage: Power supply [{#DURABLE.ID}]: Power supply has error status' + priority: AVERAGE + description: 'Power supply has error status.' + tags: + - tag: scope + value: availability + - uuid: d6cbaeb5aab84e5eb487af4bf319d640 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",status])=4' + name: 'HPE MSA 2060 Storage: Power supply [{#DURABLE.ID}]: Power supply has unknown status' + priority: INFO + description: 'Power supply has unknown status.' + tags: + - tag: scope + value: notice + - uuid: b7e85e7a6c254aba930d7704c58adf47 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.power_supplies["{#DURABLE.ID}",status])=1' + name: 'HPE MSA 2060 Storage: Power supply [{#DURABLE.ID}]: Power supply has warning status' + priority: WARNING + description: 'Power supply has warning status.' + tags: + - tag: scope + value: performance + master_item: + key: hpe.msa.get.power_supplies + lld_macro_paths: + - lld_macro: '{#DURABLE.ID}' + path: '$.[''durable-id'']' + - uuid: b132a010c8a84da79eee1ba725301be9 + name: 'Volumes discovery' + type: DEPENDENT + key: hpe.msa.volumes.discovery + delay: '0' + description: 'Discover volumes.' + item_prototypes: + - uuid: df0b425817414f3cae218f4269e9068f + name: 'Volume [{#NAME}]: Get statistics data' + type: DEPENDENT + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered volume statistics data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''volume-name''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.get.volumes.statistics + tags: + - tag: component + value: raw + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: c5e4998ee3e44a2fa82facfceb465ffd + name: 'Volume [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.msa.get.volumes["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The discovered volume data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@[''volume-name''] == "{#NAME}")].first()' + master_item: + key: hpe.msa.get.volumes + tags: + - tag: component + value: raw + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: cc6c4bddc05243c7a90082a3450a76a7 + name: 'Volume [{#NAME}]: Blocks allocated' + type: DEPENDENT + key: 'hpe.msa.volumes.blocks["{#NAME}",allocated]' + delay: '0' + description: 'The amount of blocks currently allocated to the volume.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''allocated-size-numeric'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.volumes["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 900d94185fa9480590915bbafb8ccda0 + name: 'Volume [{#NAME}]: Blocks size' + type: DEPENDENT + key: 'hpe.msa.volumes.blocks["{#NAME}",size]' + delay: '0' + units: B + description: 'The size of a block, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''blocksize'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.volumes["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 5cdae787c8b6485899f8f4e8c3cf6b71 + name: 'Volume [{#NAME}]: Blocks total' + type: DEPENDENT + key: 'hpe.msa.volumes.blocks["{#NAME}",total]' + delay: '0' + description: 'Total space in blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''blocks'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.volumes["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: b7615bb6a3434303a2bb4751e7aed458 + name: 'Volume [{#NAME}]: Cache: Read hits, rate' + type: DEPENDENT + key: 'hpe.msa.volumes.cache.read.hits["{#NAME}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block to be read is found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''read-cache-hits'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 655e319736804d8db4b6988f7205c5e3 + name: 'Volume [{#NAME}]: Cache: Read misses, rate' + type: DEPENDENT + key: 'hpe.msa.volumes.cache.read.misses["{#NAME}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block to be read is not found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''read-cache-misses'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 849ef4370f4b46ea894d2a2e1e4a3ea4 + name: 'Volume [{#NAME}]: Cache: Write hits, rate' + type: DEPENDENT + key: 'hpe.msa.volumes.cache.write.hits["{#NAME}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block written to is found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''write-cache-hits'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 593f4fce31f24e9b99c9bc69d2ead38b + name: 'Volume [{#NAME}]: Cache: Write misses, rate' + type: DEPENDENT + key: 'hpe.msa.volumes.cache.write.misses["{#NAME}",rate]' + delay: '0' + description: 'For the controller that owns the volume, the number of times the block written to is not found in cache per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''write-cache-misses'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 1a810fe32e464e8cbcdfc61769bc7869 + name: 'Volume [{#NAME}]: Data transfer rate: Reads' + type: DEPENDENT + key: 'hpe.msa.volumes.data_transfer.reads["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data read rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-read-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 4dd1d47335a9425a94ffcee4c8ed2216 + name: 'Volume [{#NAME}]: Data transfer rate: Total' + type: DEPENDENT + key: 'hpe.msa.volumes.data_transfer.total["{#NAME}",rate]' + delay: '0' + units: Bps + description: 'The data transfer rate, in bytes per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''bytes-per-second-numeric'']' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: d5198b50ba8f4db1aa160d0208540a74 + name: 'Volume [{#NAME}]: Data transfer rate: Writes' + type: DEPENDENT + key: 'hpe.msa.volumes.data_transfer.writes["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'The data write rate, in bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''data-written-numeric'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 00f5c3f9d19d450e999c389ba297fb41 + name: 'Volume [{#NAME}]: IOPS, read rate' + type: DEPENDENT + key: 'hpe.msa.volumes.iops.read["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: 'Number of read operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-reads'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: b925122eda0c4c1380b843bc764ed122 + name: 'Volume [{#NAME}]: IOPS, total rate' + type: DEPENDENT + key: 'hpe.msa.volumes.iops.total["{#NAME}",rate]' + delay: '0' + units: '!iops' + description: 'Total input/output operations per second, calculated over the interval since these statistics were last requested or reset. This value will be zero if it has not been requested or reset since a controller restart.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''iops'']' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: a9fcc1525204489cad52cf4e88518064 + name: 'Volume [{#NAME}]: IOPS, write rate' + type: DEPENDENT + key: 'hpe.msa.volumes.iops.write["{#NAME}",rate]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: 'Number of write operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''number-of-writes'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'hpe.msa.get.volumes.statistics["{#NAME}",data]' + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 860855a80c554e0685d4d4125342b547 + name: 'Volume [{#NAME}]: Space allocated' + type: CALCULATED + key: 'hpe.msa.volumes.space["{#NAME}",allocated]' + units: B + params: 'last(//hpe.msa.volumes.blocks["{#NAME}",size])*last(//hpe.msa.volumes.blocks["{#NAME}",allocated])' + description: 'The amount of space currently allocated to the volume.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: eb09d8791bb84c8aadf5cdcac3d76413 + name: 'Volume [{#NAME}]: Space total' + type: CALCULATED + key: 'hpe.msa.volumes.space["{#NAME}",total]' + units: B + params: 'last(//hpe.msa.volumes.blocks["{#NAME}",size])*last(//hpe.msa.volumes.blocks["{#NAME}",total])' + description: 'The capacity of the volume.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 096824dbf7ac4bdba4b0ce5b55c2f53d + name: 'Volume [{#NAME}]: Health' + type: DEPENDENT + key: 'hpe.msa.volumes["{#DURABLE.ID}",health]' + delay: '0' + description: 'Volume health status.' + valuemap: + name: Health + preprocessing: + - type: JSONPATH + parameters: + - '$.[''health-numeric'']' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.msa.get.volumes["{#NAME}",data]' + tags: + - tag: component + value: health + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + trigger_prototypes: + - uuid: 79ead823825f456c92f336f684c6d240 + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.volumes["{#DURABLE.ID}",health])=1' + name: 'HPE MSA 2060 Storage: Volume [{#NAME}]: Volume health is in degraded state' + priority: WARNING + description: 'Volume health is in degraded state.' + tags: + - tag: scope + value: performance + - uuid: 0f72a4a7263445a993f079b9548667ac + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.volumes["{#DURABLE.ID}",health])=2' + name: 'HPE MSA 2060 Storage: Volume [{#NAME}]: Volume health is in fault state' + priority: AVERAGE + description: 'Volume health is in fault state.' + tags: + - tag: scope + value: availability + - uuid: f02eaa08134a4fa08b40643275e9841f + expression: 'last(/HPE MSA 2060 Storage by HTTP/hpe.msa.volumes["{#DURABLE.ID}",health])=3' + name: 'HPE MSA 2060 Storage: Volume [{#NAME}]: Volume health is in unknown state' + priority: INFO + description: 'Volume health is in unknown state.' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 8905b826b774473991f74b927716322e + name: 'Volume [{#NAME}]: Cache usage' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.volumes.cache.read.hits["{#NAME}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.volumes.cache.read.misses["{#NAME}",rate]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.volumes.cache.write.hits["{#NAME}",rate]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.volumes.cache.write.misses["{#NAME}",rate]' + - uuid: 1bd9df7bab9c4f3a978810c82cc61f42 + name: 'Volume [{#NAME}]: Data transfer rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.volumes.data_transfer.reads["{#NAME}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.volumes.data_transfer.writes["{#NAME}",rate]' + - uuid: 24dfc70c5d724f13ac1cec6b229c7fe9 + name: 'Volume [{#NAME}]: Disk operations rate' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.volumes.iops.read["{#NAME}",rate]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.volumes.iops.write["{#NAME}",rate]' + - uuid: 5a316cdf8c6f42acb3cb7a158861145a + name: 'Volume [{#NAME}]: Space utilization' + graph_items: + - color: 199C0D + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.volumes.space["{#NAME}",allocated]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE MSA 2060 Storage by HTTP' + key: 'hpe.msa.volumes.space["{#NAME}",total]' + master_item: + key: hpe.msa.get.volumes + lld_macro_paths: + - lld_macro: '{#NAME}' + path: '$.[''volume-name'']' + tags: + - tag: class + value: storage + - tag: target + value: hpe + - tag: target + value: msa-2060 + macros: + - macro: '{$HPE.MSA.API.HOST}' + value: '' + description: 'The hostname or IP address of the API host.' + - macro: '{$HPE.MSA.API.PASSWORD}' + type: SECRET_TEXT + description: 'Specify password for API.' + - macro: '{$HPE.MSA.API.PORT}' + value: '443' + description: 'Connection port for API.' + - macro: '{$HPE.MSA.API.SCHEME}' + value: https + description: 'Connection scheme for API.' + - macro: '{$HPE.MSA.API.USERNAME}' + value: zabbix + description: 'Specify user name for API.' + - macro: '{$HPE.MSA.CONTROLLER.CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of the CPU utilization expressed in %.' + - macro: '{$HPE.MSA.DATA.TIMEOUT}' + value: 30s + description: 'Response timeout for API.' + - macro: '{$HPE.MSA.DISKS.GROUP.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the disk group space utilization in %.' + - macro: '{$HPE.MSA.DISKS.GROUP.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the disk group space utilization in %.' + - macro: '{$HPE.MSA.POOL.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the pool space utilization in %.' + - macro: '{$HPE.MSA.POOL.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the pool space utilization in %.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "HPE MSA 2060 Storage", e.g. {$HTTP.TLS.VERIFY:"HPE MSA 2060 Storage"}.' + dashboards: + - uuid: f14141c1d6d44e8a9fc7c874487f435b + name: 'Storage overview' + auto_start: 'NO' + pages: + - name: Controllers + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Controller [{#CONTROLLER.ID}]: Cache: Write utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Controller [{#CONTROLLER.ID}]: Cache usage' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Controller [{#CONTROLLER.ID}]: Controller CPU utilization' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Controller [{#CONTROLLER.ID}]: Data transfer rate' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Controller [{#CONTROLLER.ID}]: Disk operations rate' + - type: STRING + name: reference + value: AAAAE + - name: 'Disk groups' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Disk group [{#NAME}]: Average response time' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Disk group [{#NAME}]: Data transfer rate' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Disk group [{#NAME}]: Disk operations rate' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Disk group [{#NAME}]: Space utilization' + - type: STRING + name: reference + value: AAAAI + - name: Fans + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Fan [{#DURABLE.ID}]: Speed' + - type: STRING + name: reference + value: AAAAJ + - name: Pools + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Pool [{#NAME}]: Space utilization' + - type: STRING + name: reference + value: AAAAK + - name: Volumes + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Volume [{#NAME}]: Cache usage' + - type: STRING + name: reference + value: AAAAL + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Volume [{#NAME}]: Data transfer rate' + - type: STRING + name: reference + value: AAAAM + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Volume [{#NAME}]: Disk operations rate' + - type: STRING + name: reference + value: AAAAN + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE MSA 2060 Storage by HTTP' + name: 'Volume [{#NAME}]: Space utilization' + - type: STRING + name: reference + value: AAAAO + valuemaps: + - uuid: f7af1259f3c54a5faa040c743d386d1d + name: 'Controller status' + mappings: + - value: '0' + newvalue: Operational + - value: '1' + newvalue: Down + - value: '2' + newvalue: 'Not Installed' + - uuid: 6bb0dfe12f4249ef9f4b804885c70c60 + name: 'Disk group status' + mappings: + - value: '0' + newvalue: FTOL + - value: '1' + newvalue: FTDN + - value: '2' + newvalue: CRIT + - value: '3' + newvalue: OFFL + - value: '4' + newvalue: QTCR + - value: '5' + newvalue: QTOF + - value: '6' + newvalue: QTDN + - value: '7' + newvalue: STOP + - value: '8' + newvalue: MSNG + - value: '9' + newvalue: DMGD + - value: '11' + newvalue: QTDN + - value: '250' + newvalue: UP + - uuid: de0e7d801a9b42cf80fe4c71c0eed982 + name: 'Disk temperature status' + mappings: + - value: '1' + newvalue: OK + - value: '2' + newvalue: Critical + - value: '3' + newvalue: Warning + - value: '4' + newvalue: Unknown + - uuid: 10547e62c7bb4581b347bc523ef03582 + name: 'Disk type' + mappings: + - value: '4' + newvalue: SAS + - value: '8' + newvalue: 'SSD SAS' + - value: '11' + newvalue: 'SAS MDL' + - uuid: 37317f19f7d74b8fa61dd1b28e6f4d42 + name: 'Enclosure status' + mappings: + - value: '0' + newvalue: Unsupported + - value: '1' + newvalue: OK + - value: '2' + newvalue: Critical + - value: '3' + newvalue: Warning + - value: '4' + newvalue: Unrecoverable + - value: '5' + newvalue: 'Not installed' + - value: '6' + newvalue: Unknown + - value: '7' + newvalue: Unavailable + - uuid: 1acc14c82fba4c3daa207d0ce9b702f2 + name: 'Fan status' + mappings: + - value: '0' + newvalue: Up + - value: '1' + newvalue: Error + - value: '2' + newvalue: 'Off' + - value: '3' + newvalue: Missing + - uuid: 284ed898fb7c46ecb8d719646445264c + name: 'FRU status' + mappings: + - value: '0' + newvalue: 'Invalid data' + - value: '1' + newvalue: Fault + - value: '2' + newvalue: Absent + - value: '3' + newvalue: 'Power off' + - value: '4' + newvalue: OK + - uuid: cb8c3d00dfd4456181765b8b350ea4d2 + name: Health + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Fault + - value: '3' + newvalue: Unknown + - value: '4' + newvalue: N/A + - uuid: ec101e7d212747779ed56ef9dbf72e2b + name: 'Port type' + mappings: + - value: '0' + newvalue: Unknown + - value: '6' + newvalue: FC + - value: '8' + newvalue: SAS + - value: '9' + newvalue: iSCSI + - uuid: 171c9abf20514b0fb78d532bd987881b + name: 'RAID type' + mappings: + - value: '0' + newvalue: RAID0 + - value: '1' + newvalue: RAID1 + - value: '2' + newvalue: MSA-DP+ + - value: '5' + newvalue: RAID5 + - value: '6' + newvalue: NRAID + - value: '10' + newvalue: RAID10 + - value: '11' + newvalue: RAID6 + - uuid: 402b0dacf14a4436b0d3cfe237bf1e86 + name: Status + mappings: + - value: '0' + newvalue: Up + - value: '1' + newvalue: Warning + - value: '2' + newvalue: Error + - value: '3' + newvalue: 'Not present' + - value: '4' + newvalue: Unknown + - value: '6' + newvalue: Disconnected diff --git a/HPE_Primera_by_HTTP.yaml b/HPE_Primera_by_HTTP.yaml new file mode 100644 index 0000000..63b1c42 --- /dev/null +++ b/HPE_Primera_by_HTTP.yaml @@ -0,0 +1,4207 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 7c2cb727f85b492d88cd56e17127c64d + name: Templates/SAN + templates: + - uuid: b8750c02b5624c6889979b129735bd56 + template: 'HPE Primera by HTTP' + name: 'HPE Primera by HTTP' + description: | + The template to monitor HPE Primera by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Create a user on the storage with a browse role and enable it for all domains, for example "zabbix". + 2. The WSAPI server does not start automatically. + - Log in to the CLI as Super, Service, or any role granted the wsapi_set right. + - Start the WSAPI server by command: `startwsapi`. + - To check WSAPI state use command: `showwsapi`. + 3. Link template to the host. + 4. Set the hostname or IP address of the host in the {$HPE.PRIMERA.API.HOST} macro and configure the username and password in the {$HPE.PRIMERA.API.USERNAME} and {$HPE.PRIMERA.API.PASSWORD} macros. + 5. Change the {$HPE.PRIMERA.API.SCHEME} and {$HPE.PRIMERA.API.PORT} macros if needed. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/SAN + items: + - uuid: d5b8a74991d34652973a78d58203d5fd + name: 'Disks total' + type: DEPENDENT + key: hpe.primera.disks.total + delay: '0' + description: 'Number of physical disks.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hpe.primera.get.disks + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: 89aa29280dc349a2acaae520849857e0 + name: 'Get CPGs data' + type: DEPENDENT + key: hpe.primera.get.cpgs + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Common provisioning groups data.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpgs + error_handler: DISCARD_VALUE + master_item: + key: hpe.primera.get.data + tags: + - tag: component + value: raw + - uuid: 530e20083da8423e9d30c8342f1b7da3 + name: 'Get data' + type: SCRIPT + key: hpe.primera.get.data + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Primera = { + params: {}, + session_key: null, + + setParams: function (params) { + ['username', 'password', 'base_url'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Primera.params = params; + if (typeof Primera.params.base_url === 'string' && !Primera.params.base_url.endsWith('/')) { + Primera.params.base_url += '/'; + } + + Primera.tls = new CTlsConfig(params.tls_verify); + Primera.tls.checkURL(Primera.params.base_url); + }, + + login: function () { + if (Primera.session_key !== null) { + return; + } + + var response, request = new HttpRequest(Primera.tls.options); + request.addHeader('Content-Type: application/json'); + + response = request.post(Primera.params.base_url + 'api/v1/credentials', JSON.stringify({ + 'user': Primera.params.username, + 'password': Primera.params.password + })); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Auth request failed with status code ' + request.getStatus() + ': ' + response; + } + + if (response !== null) { + try { + auth_data = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse auth response received from device API.'; + } + } + else { + throw 'No data received by auth request.' + } + + if ('key' in auth_data) { + Primera.session_key = auth_data['key']; + } else { + throw 'Auth response does not contain session key.' + } + }, + + logout: function () { + if (Primera.session_key !== null) { + (new HttpRequest(Primera.tls.options)).delete(Primera.params.base_url + 'api/v1/credentials/' + Primera.session_key); + } + }, + + requestData: function (method) { + if (Primera.session_key === null) { + return; + } + + request = new HttpRequest(Primera.tls.options); + request.addHeader('X-HP3PAR-WSAPI-SessionKey: ' + Primera.session_key); + + raw_data = request.get(Primera.params.base_url + 'api/v1/' + method); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + if (raw_data !== null) { + try { + return JSON.parse(raw_data); + } + catch (error) { + throw 'Failed to parse response received from device API.'; + } + } + else { + throw 'No data received by ' + method + ' request.'; + } + } + }; + + var methods = ['disks', 'cpgs', 'hosts', 'ports', 'system', 'tasks', 'volumes'], + data = {}; + + data['errors'] = {}; + + try { + Primera.setParams(JSON.parse(value)); + + try { + Primera.login(); + } + catch (error) { + data.errors.auth = error.toString(); + } + + if (!('auth' in data.errors)) { + for (var i in methods) { + try { + if (methods[i] === 'tasks') { + var result = [], + tmp_tasks = {}; + + tasks = Primera.requestData(methods[i]); + + tasks.members.forEach(function (task) { + tmp_tasks[task.name] = task; + }); + + for (var task in tmp_tasks) { + result.push(tmp_tasks[task]); + } + + data[methods[i]] = result; + } + else { + data[methods[i]] = Primera.requestData(methods[i]); + } + } + catch (error) { + data.errors[methods[i]] = error.toString(); + } + } + } + } + catch (error) { + data.errors.params = error.toString(); + } + + try { + Primera.logout(); + } + catch (error) { + } + + if (Object.keys(data.errors).length !== 0) { + errors = 'Failed to receive data:'; + for (var error in data.errors) { + errors += '\n' + error + ' : ' + data.errors[error]; + } + data.errors = errors; + } + else { + data.errors = ''; + } + + return JSON.stringify(data); + description: 'The JSON with result of WSAPI requests.' + timeout: '{$HPE.PRIMERA.DATA.TIMEOUT}' + parameters: + - name: base_url + value: '{$HPE.PRIMERA.API.SCHEME}://{$HPE.PRIMERA.API.HOST}:{$HPE.PRIMERA.API.PORT}' + - name: password + value: '{$HPE.PRIMERA.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"HPE Primera"}' + - name: username + value: '{$HPE.PRIMERA.API.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 3940a3313b354d64924fc93be9b9db04 + name: 'Get disks data' + type: DEPENDENT + key: hpe.primera.get.disks + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Disks data.' + preprocessing: + - type: JSONPATH + parameters: + - $.disks + error_handler: DISCARD_VALUE + master_item: + key: hpe.primera.get.data + tags: + - tag: component + value: raw + - uuid: 484a6b9568234bbca9b4bcae2833bbf1 + name: 'Get errors' + type: DEPENDENT + key: hpe.primera.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from WSAPI requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hpe.primera.get.data + tags: + - tag: component + value: raw + triggers: + - uuid: 570d440e7ec9445585003208eca06e63 + expression: 'length(last(/HPE Primera by HTTP/hpe.primera.get.errors))>0' + name: 'HPE Primera: There are errors in requests to WSAPI' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in requests to WSAPI.' + dependencies: + - name: 'HPE Primera: Service is unavailable' + expression: 'max(/HPE Primera by HTTP/net.tcp.service["{$HPE.PRIMERA.API.SCHEME}","{$HPE.PRIMERA.API.HOST}","{$HPE.PRIMERA.API.PORT}"],5m)=0' + tags: + - tag: scope + value: availability + - uuid: c027fd5d976d42bd90126edb46ddfe88 + name: 'Get hosts data' + type: DEPENDENT + key: hpe.primera.get.hosts + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Hosts data.' + preprocessing: + - type: JSONPATH + parameters: + - $.hosts + error_handler: DISCARD_VALUE + master_item: + key: hpe.primera.get.data + tags: + - tag: component + value: raw + - uuid: 1569a51d018345b390d3e2b3c368ba85 + name: 'Get ports data' + type: DEPENDENT + key: hpe.primera.get.ports + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Ports data.' + preprocessing: + - type: JSONPATH + parameters: + - $.ports + error_handler: DISCARD_VALUE + master_item: + key: hpe.primera.get.data + tags: + - tag: component + value: raw + - uuid: 6baed792c06444f598aec830f90f2f4c + name: 'Get system data' + type: DEPENDENT + key: hpe.primera.get.system + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'System data.' + preprocessing: + - type: JSONPATH + parameters: + - $.system + error_handler: DISCARD_VALUE + master_item: + key: hpe.primera.get.data + tags: + - tag: component + value: raw + - uuid: 9d5697db544f4f3993e6df499ad51b49 + name: 'Get tasks data' + type: DEPENDENT + key: hpe.primera.get.tasks + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Tasks data.' + preprocessing: + - type: JSONPATH + parameters: + - $.tasks + error_handler: DISCARD_VALUE + master_item: + key: hpe.primera.get.data + tags: + - tag: component + value: raw + - uuid: 7faad091257b44f1a7ecf2c9156c83ca + name: 'Get volumes data' + type: DEPENDENT + key: hpe.primera.get.volumes + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Volumes data.' + preprocessing: + - type: JSONPATH + parameters: + - $.volumes + error_handler: DISCARD_VALUE + master_item: + key: hpe.primera.get.data + tags: + - tag: component + value: raw + - uuid: efc450d0682c4c5d93df41d05c10eceb + name: 'Capacity allocated' + type: DEPENDENT + key: hpe.primera.system.capacity.allocated + delay: '0' + units: B + description: 'Allocated capacity in the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocatedCapacityMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: storage + - tag: component + value: system + - uuid: e3842eec2e45443681670d3c1d194900 + name: 'Capacity failed' + type: DEPENDENT + key: hpe.primera.system.capacity.failed + delay: '0' + units: B + description: 'Failed capacity in the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.failedCapacityMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: storage + - tag: component + value: system + - uuid: d23e888299d344238468481689f55e2d + name: 'Capacity free' + type: DEPENDENT + key: hpe.primera.system.capacity.free + delay: '0' + units: B + description: 'Free capacity in the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.freeCapacityMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: storage + - tag: component + value: system + - uuid: 1e6fc0d68d18474e84b4fe2e4d3374d1 + name: 'Capacity total' + type: DEPENDENT + key: hpe.primera.system.capacity.total + delay: '0' + units: B + description: 'Total capacity in the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalCapacityMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: storage + - tag: component + value: system + - uuid: 65bcf3fb456a45358795d2f9d8249e16 + name: 'Chunklet size' + type: DEPENDENT + key: hpe.primera.system.chunklet.size + delay: '0' + units: B + description: 'Chunklet size.' + preprocessing: + - type: JSONPATH + parameters: + - $.chunkletSizeMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: storage + - tag: component + value: system + - uuid: dd6fd61256cc4eeeb94f50d0c86fc51f + name: 'System contact' + type: DEPENDENT + key: hpe.primera.system.contact + delay: '0' + value_type: CHAR + trends: '0' + description: 'Contact of the system.' + inventory_link: CONTACT + preprocessing: + - type: JSONPATH + parameters: + - $.contact + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: system + - uuid: dd61f3a680284893801c96bdbd445645 + name: 'System location' + type: DEPENDENT + key: hpe.primera.system.location + delay: '0' + value_type: CHAR + trends: '0' + description: 'Location of the system.' + inventory_link: LOCATION + preprocessing: + - type: JSONPATH + parameters: + - $.location + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: system + - uuid: 5f28ec66be1f43208139476af3653997 + name: Model + type: DEPENDENT + key: hpe.primera.system.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'System model.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: system + - uuid: 45281453bf204365a8a8ac2ba7255e54 + name: 'System name' + type: DEPENDENT + key: hpe.primera.system.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'System name.' + inventory_link: NAME + preprocessing: + - type: JSONPATH + parameters: + - $.name + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: system + - uuid: acf6d37022884dc99a3b55c95f6b19c8 + name: 'Nodes online' + type: DEPENDENT + key: hpe.primera.system.nodes.online + delay: '0' + description: 'Number of online nodes in the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.onlineNodes.length() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: system + - uuid: 65b22e04d7334aaf970a8961a46c22c9 + name: 'Nodes total' + type: DEPENDENT + key: hpe.primera.system.nodes.total + delay: '0' + description: 'Total number of nodes in the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalNodes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: system + - uuid: d194672ea7f64dd58296d7fb2537f35b + name: 'Serial number' + type: DEPENDENT + key: hpe.primera.system.serial_number + delay: '0' + value_type: CHAR + trends: '0' + description: 'System serial number.' + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: system + - uuid: e0f0ff7657784c8eab1a71a68ceefc19 + name: 'Software version number' + type: DEPENDENT + key: hpe.primera.system.sw_version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Storage system software version number.' + preprocessing: + - type: JSONPATH + parameters: + - $.systemVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hpe.primera.get.system + tags: + - tag: component + value: system + - uuid: a0b4fdee38a64c5f82fd051ea74a7b2d + name: 'Service ping' + type: SIMPLE + key: 'net.tcp.service["{$HPE.PRIMERA.API.SCHEME}","{$HPE.PRIMERA.API.HOST}","{$HPE.PRIMERA.API.PORT}"]' + description: 'Checks if the service is running and accepting TCP connections.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8e7aa46322c643878e509461dbb9169d + expression: 'max(/HPE Primera by HTTP/net.tcp.service["{$HPE.PRIMERA.API.SCHEME}","{$HPE.PRIMERA.API.HOST}","{$HPE.PRIMERA.API.PORT}"],5m)=0' + name: 'HPE Primera: Service is unavailable' + priority: HIGH + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: b9132b095eb349c99e868ea40364596d + name: 'Common provisioning groups discovery' + type: DEPENDENT + key: hpe.primera.cpg.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$HPE.PRIMERA.CPG.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$HPE.PRIMERA.CPG.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'List of CPGs resources.' + item_prototypes: + - uuid: 6d070a747a01498b94c56da721a63192 + name: 'CPG [{#NAME}]: Number of FPVVs' + type: DEPENDENT + key: 'hpe.primera.cpg.fpvv["{#ID}",count]' + delay: '0' + description: 'Number of FPVVs (Fully Provisioned Virtual Volumes) allocated in the CPG.' + preprocessing: + - type: JSONPATH + parameters: + - $.numFPVVs + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: a7fccd5afcf5469ca11a9436240eab5c + name: 'CPG [{#NAME}]: Raw space: Free' + type: DEPENDENT + key: 'hpe.primera.cpg.space.raw["{#ID}",free]' + delay: '0' + units: B + description: 'Raw free space.' + preprocessing: + - type: JSONPATH + parameters: + - $.rawFreeSpaceMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 8f26a54327f54e968f422081e6045217 + name: 'CPG [{#NAME}]: Raw space: Shared' + type: DEPENDENT + key: 'hpe.primera.cpg.space.raw["{#ID}",shared]' + delay: '0' + units: B + description: 'Raw shared space.' + preprocessing: + - type: JSONPATH + parameters: + - $.rawSharedSpaceMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: cpg + value: '{#NAME}' + - uuid: e3ac07e2707a44fd8c166f4618fd79a1 + name: 'CPG [{#NAME}]: Raw space: Total' + type: DEPENDENT + key: 'hpe.primera.cpg.space.raw["{#ID}",total]' + delay: '0' + units: B + description: 'Raw total space.' + preprocessing: + - type: JSONPATH + parameters: + - $.rawTotalSpaceMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 6dfd722ad85b481a9c2b04a4a5eb91fe + name: 'CPG [{#NAME}]: Logical disk space: Snapshot administration: Total (raw)' + type: DEPENDENT + key: 'hpe.primera.cpg.space.sa["{#ID}",raw_total]' + delay: '0' + units: B + description: 'Total physical (raw) logical disk space in snapshot administration.' + preprocessing: + - type: JSONPATH + parameters: + - $.SAUsage.rawTotalMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 8b2dc75fdcfa48908ece97768641f055 + name: 'CPG [{#NAME}]: Logical disk space: Snapshot administration: Used (raw)' + type: DEPENDENT + key: 'hpe.primera.cpg.space.sa["{#ID}",raw_used]' + delay: '0' + units: B + description: 'Amount of physical (raw) logical disk used in snapshot administration.' + preprocessing: + - type: JSONPATH + parameters: + - $.SAUsage.rawUsedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: d55f0eab811641fdbb9a8bc8c54815ee + name: 'CPG [{#NAME}]: Logical disk space: Snapshot administration: Total' + type: DEPENDENT + key: 'hpe.primera.cpg.space.sa["{#ID}",total]' + delay: '0' + units: B + description: 'Total logical disk space in snapshot administration.' + preprocessing: + - type: JSONPATH + parameters: + - $.SAUsage.totalMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: cf467bc7d9ac45259f284eeab6ae7f6a + name: 'CPG [{#NAME}]: Logical disk space: Snapshot administration: Used' + type: DEPENDENT + key: 'hpe.primera.cpg.space.sa["{#ID}",used]' + delay: '0' + units: B + description: 'Amount of logical disk used in snapshot administration.' + preprocessing: + - type: JSONPATH + parameters: + - $.SAUsage.usedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 61dd9aa18c714863b606d18b2fff6c57 + name: 'CPG [{#NAME}]: Logical disk space: Snapshot data: Total (raw)' + type: DEPENDENT + key: 'hpe.primera.cpg.space.sd["{#ID}",raw_total]' + delay: '0' + units: B + description: 'Total physical (raw) logical disk space in snapshot data space.' + preprocessing: + - type: JSONPATH + parameters: + - $.SDUsage.rawTotalMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: f95ee3c4c0c64d46a47dd68b346f2fa5 + name: 'CPG [{#NAME}]: Logical disk space: Snapshot data: Used (raw)' + type: DEPENDENT + key: 'hpe.primera.cpg.space.sd["{#ID}",raw_used]' + delay: '0' + units: B + description: 'Amount of physical (raw) logical disk used in snapshot data space.' + preprocessing: + - type: JSONPATH + parameters: + - $.SDUsage.rawUsedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 797f3335d8704d4bb8b53e34b3e6589e + name: 'CPG [{#NAME}]: Logical disk space: Snapshot data: Total' + type: DEPENDENT + key: 'hpe.primera.cpg.space.sd["{#ID}",total]' + delay: '0' + units: B + description: 'Total logical disk space in snapshot data space.' + preprocessing: + - type: JSONPATH + parameters: + - $.SDUsage.totalMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 51e40f6a1eb249d58bd79948d403d4f7 + name: 'CPG [{#NAME}]: Logical disk space: Snapshot data: Used' + type: DEPENDENT + key: 'hpe.primera.cpg.space.sd["{#ID}",used]' + delay: '0' + units: B + description: 'Amount of logical disk used in snapshot data space.' + preprocessing: + - type: JSONPATH + parameters: + - $.SDUsage.usedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: b7a8880bdafe4f0da4dd8cee6d4fdfa4 + name: 'CPG [{#NAME}]: Logical disk space: User space: Total (raw)' + type: DEPENDENT + key: 'hpe.primera.cpg.space.usr["{#ID}",raw_total]' + delay: '0' + units: B + description: 'Total physical (raw) logical disk space in user data space.' + preprocessing: + - type: JSONPATH + parameters: + - $.UsrUsage.rawTotalMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 1feabd57f12a48b98dab098435179725 + name: 'CPG [{#NAME}]: Logical disk space: User space: Used (raw)' + type: DEPENDENT + key: 'hpe.primera.cpg.space.usr["{#ID}",raw_used]' + delay: '0' + units: B + description: 'Amount of physical (raw) logical disk used in user data space.' + preprocessing: + - type: JSONPATH + parameters: + - $.UsrUsage.rawUsedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 6f85014bc639420aa409d97d42cb75b2 + name: 'CPG [{#NAME}]: Logical disk space: User space: Total' + type: DEPENDENT + key: 'hpe.primera.cpg.space.usr["{#ID}",total]' + delay: '0' + units: B + description: 'Total logical disk space in user data space.' + preprocessing: + - type: JSONPATH + parameters: + - $.UsrUsage.totalMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: c21f77a45ab443099bf957fbb39478f3 + name: 'CPG [{#NAME}]: Logical disk space: User space: Used' + type: DEPENDENT + key: 'hpe.primera.cpg.space.usr["{#ID}",used]' + delay: '0' + units: B + description: 'Amount of logical disk used in user data space.' + preprocessing: + - type: JSONPATH + parameters: + - $.UsrUsage.usedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: a6cd977f27a8463cb385715327e34955 + name: 'CPG [{#NAME}]: CPG space: Free' + type: DEPENDENT + key: 'hpe.primera.cpg.space["{#ID}",free]' + delay: '0' + units: B + description: 'Free CPG space.' + preprocessing: + - type: JSONPATH + parameters: + - $.freeSpaceMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 17cf1cddafd444f8a5616a472c1a019b + name: 'CPG [{#NAME}]: CPG space: Shared' + type: DEPENDENT + key: 'hpe.primera.cpg.space["{#ID}",shared]' + delay: '0' + units: B + description: 'Shared CPG space.' + preprocessing: + - type: JSONPATH + parameters: + - $.sharedSpaceMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 3950d779a0394615b8ec311525ed4168 + name: 'CPG [{#NAME}]: CPG space: Total' + type: DEPENDENT + key: 'hpe.primera.cpg.space["{#ID}",total]' + delay: '0' + units: B + description: 'Total CPG space.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalSpaceMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: a7e2188d600a4715a58deba46f3b46ac + name: 'CPG [{#NAME}]: Degraded state' + type: DEPENDENT + key: 'hpe.primera.cpg.state["{#ID}",degraded]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Detailed state of the CPG: + + LDS_NOT_STARTED (1) - LDs not started. + NOT_STARTED (2) - VV not started. + NEEDS_CHECK (3) - check for consistency. + NEEDS_MAINT_CHECK (4) - maintenance check is required. + INTERNAL_CONSISTENCY_ERROR (5) - internal consistency error. + SNAPDATA_INVALID (6) - invalid snapshot data. + PRESERVED (7) - unavailable LD sets due to missing chunklets. Preserved remaining VV data. + STALE (8) - parts of the VV contain old data because of a copy-on-write operation. + COPY_FAILED (9) - a promote or copy operation to this volume failed. + DEGRADED_AVAIL (10) - degraded due to availability. + DEGRADED_PERF (11) - degraded due to performance. + PROMOTING (12) - volume is the current target of a promote operation. + COPY_TARGET (13) - volume is the current target of a physical copy operation. + RESYNC_TARGET (14) - volume is the current target of a resynchronized copy operation. + TUNING (15) - volume tuning is in progress. + CLOSING (16) - volume is closing. + REMOVING (17) - removing the volume. + REMOVING_RETRY (18) - retrying a volume removal operation. + CREATING (19) - creating a volume. + COPY_SOURCE (20) - copy source. + IMPORTING (21) - importing a volume. + CONVERTING (22) - converting a volume. + INVALID (23) - invalid. + EXCLUSIVE (24) - local storage system has exclusive access to the volume. + CONSISTENT (25) - volume is being imported consistently along with other volumes in the VV set. + STANDBY (26) - volume in standby mode. + SD_META_INCONSISTENT (27) - SD Meta Inconsistent. + SD_NEEDS_FIX (28) - SD needs fix. + SD_META_FIXING (29) - SD meta fix. + UNKNOWN (999) - unknown state. + NOT_SUPPORTED_BY_WSAPI (1000) - state not supported by WSAPI. + valuemap: + name: 'Volume detailed state enum' + preprocessing: + - type: JSONPATH + parameters: + - $.degradedStates + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 837b48053400487885bf051a78f2200a + name: 'CPG [{#NAME}]: Failed state' + type: DEPENDENT + key: 'hpe.primera.cpg.state["{#ID}",failed]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Detailed state of the CPG: + + LDS_NOT_STARTED (1) - LDs not started. + NOT_STARTED (2) - VV not started. + NEEDS_CHECK (3) - check for consistency. + NEEDS_MAINT_CHECK (4) - maintenance check is required. + INTERNAL_CONSISTENCY_ERROR (5) - internal consistency error. + SNAPDATA_INVALID (6) - invalid snapshot data. + PRESERVED (7) - unavailable LD sets due to missing chunklets. Preserved remaining VV data. + STALE (8) - parts of the VV contain old data because of a copy-on-write operation. + COPY_FAILED (9) - a promote or copy operation to this volume failed. + DEGRADED_AVAIL (10) - degraded due to availability. + DEGRADED_PERF (11) - degraded due to performance. + PROMOTING (12) - volume is the current target of a promote operation. + COPY_TARGET (13) - volume is the current target of a physical copy operation. + RESYNC_TARGET (14) - volume is the current target of a resynchronized copy operation. + TUNING (15) - volume tuning is in progress. + CLOSING (16) - volume is closing. + REMOVING (17) - removing the volume. + REMOVING_RETRY (18) - retrying a volume removal operation. + CREATING (19) - creating a volume. + COPY_SOURCE (20) - copy source. + IMPORTING (21) - importing a volume. + CONVERTING (22) - converting a volume. + INVALID (23) - invalid. + EXCLUSIVE (24) - local storage system has exclusive access to the volume. + CONSISTENT (25) - volume is being imported consistently along with other volumes in the VV set. + STANDBY (26) - volume in standby mode. + SD_META_INCONSISTENT (27) - SD Meta Inconsistent. + SD_NEEDS_FIX (28) - SD needs fix. + SD_META_FIXING (29) - SD meta fix. + UNKNOWN (999) - unknown state. + NOT_SUPPORTED_BY_WSAPI (1000) - state not supported by WSAPI. + valuemap: + name: 'Volume detailed state enum' + preprocessing: + - type: JSONPATH + parameters: + - $.failedStates + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(JSON.parse(value));' + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 3fe9b7c875c248e3b09c98162e30ebf8 + name: 'CPG [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.primera.cpg.state["{#ID}"]' + delay: '0' + description: | + Overall state of the CPG: + + NORMAL (1) - normal operation; + DEGRADED (2) - degraded state; + FAILED (3) - abnormal operation; + UNKNOWN (99) - unknown state. + valuemap: + name: 'State enum' + preprocessing: + - type: JSONPATH + parameters: + - $.state + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + trigger_prototypes: + - uuid: 32a29b7a4bf340ef8ab07a8db3bef309 + expression: 'last(/HPE Primera by HTTP/hpe.primera.cpg.state["{#ID}"])=2' + name: 'HPE Primera: CPG [{#NAME}]: Degraded' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'CPG [{#NAME}] is in degraded state.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 85c26e64c8074e8b9ab52f20394afeee + expression: 'last(/HPE Primera by HTTP/hpe.primera.cpg.state["{#ID}"])=3' + name: 'HPE Primera: CPG [{#NAME}]: Failed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'CPG [{#NAME}] is in failed state.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 18544a7742af4678bd8c37ad84a8d137 + name: 'CPG [{#NAME}]: Number of TDVVs' + type: DEPENDENT + key: 'hpe.primera.cpg.tdvv["{#ID}",count]' + delay: '0' + description: 'Number of TDVVs (Thinly Deduplicated Virtual Volume) created in the CPG.' + preprocessing: + - type: JSONPATH + parameters: + - $.numTDVVs + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: f93dc70fa63a47da9253a447a67df685 + name: 'CPG [{#NAME}]: Number of TPVVs' + type: DEPENDENT + key: 'hpe.primera.cpg.tpvv["{#ID}",count]' + delay: '0' + description: 'Number of TPVVs (Thinly Provisioned Virtual Volumes) allocated in the CPG.' + preprocessing: + - type: JSONPATH + parameters: + - $.numTPVVs + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.cpg["{#ID}",data]' + tags: + - tag: component + value: cpg + - tag: component + value: storage + - tag: cpg + value: '{#NAME}' + - uuid: 54afd11ca82b4f94861cc145ca681291 + name: 'CPG [{#NAME}]: Get CPG data' + type: DEPENDENT + key: 'hpe.primera.cpg["{#ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'CPG {#NAME} data' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.id == "{#ID}")].first()' + master_item: + key: hpe.primera.get.cpgs + tags: + - tag: component + value: cpg + - tag: component + value: raw + - tag: cpg + value: '{#NAME}' + graph_prototypes: + - uuid: c5d1e864f752465eae8822c06d635aeb + name: 'CPG [{#NAME}]: CPG space' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space["{#ID}",free]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space["{#ID}",shared]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space["{#ID}",total]' + - uuid: 1ef5d5b0090c4f168da6f842972af688 + name: 'CPG [{#NAME}]: Number of virtual volumes' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.fpvv["{#ID}",count]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.tpvv["{#ID}",count]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.tdvv["{#ID}",count]' + - uuid: 4c15694d488f42d6bc5b9caf4fe9e049 + name: 'CPG [{#NAME}]: Raw space' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.raw["{#ID}",free]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.raw["{#ID}",shared]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.raw["{#ID}",total]' + - uuid: 0ffb02e0b9144e0583489ca1d1c8d2dd + name: 'CPG [{#NAME}]: Snapshot administration space' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.sa["{#ID}",total]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.sa["{#ID}",used]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.sa["{#ID}",raw_total]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.sa["{#ID}",raw_used]' + - uuid: d64484828dda48cbbf7dc0f8a9c2f34d + name: 'CPG [{#NAME}]: Snapshot data space' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.sd["{#ID}",total]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.sd["{#ID}",used]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.sd["{#ID}",raw_total]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.sd["{#ID}",raw_used]' + - uuid: dd590898a3644130b897f57e8837cb3a + name: 'CPG [{#NAME}]: User data space' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.usr["{#ID}",total]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.usr["{#ID}",used]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.usr["{#ID}",raw_total]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.cpg.space.usr["{#ID}",raw_used]' + master_item: + key: hpe.primera.get.cpgs + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: a83ed573e6ab40e8b7306178ddd2658b + name: 'Disks discovery' + type: DEPENDENT + key: hpe.primera.disks.discovery + delay: '0' + description: 'List of physical disk resources.' + item_prototypes: + - uuid: 811d27264b5e41e3a9e9f397888cda47 + name: 'Disk [{#POSITION}]: Get disk data' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Disk [{#POSITION}] data' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.id == "{#ID}")].first()' + master_item: + key: hpe.primera.get.disks + tags: + - tag: component + value: disk + - tag: component + value: raw + - tag: disk + value: '{#POSITION}' + - uuid: 40e074af5d7f44bb8691290971fc7c5c + name: 'Disk [{#POSITION}]: Free size' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",free_size]' + delay: '0' + units: B + description: 'Physical disk free size.' + preprocessing: + - type: JSONPATH + parameters: + - $.freeSizeMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + - uuid: 9bb7a86118614d339b4dee3238b261ff + name: 'Disk [{#POSITION}]: Firmware version' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",fw_version]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Physical disk firmware version.' + preprocessing: + - type: JSONPATH + parameters: + - $.fwVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + - uuid: 288f7eef0a7c43afa7a3623471c92097 + name: 'Disk [{#POSITION}]: Path A0 degraded' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",loop_a0_degraded]' + delay: '0' + description: 'Indicates if this is a degraded path for the disk.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - $.loopA0.degraded + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + trigger_prototypes: + - uuid: f1672a33f9404216a1ffdbe3fcefd0bf + expression: 'last(/HPE Primera by HTTP/hpe.primera.disk["{#ID}",loop_a0_degraded])=1' + name: 'HPE Primera: Disk [{#POSITION}]: Path A0 degraded' + priority: AVERAGE + description: 'Disk [{#POSITION}] path A0 in degraded state.' + tags: + - tag: scope + value: availability + - uuid: 1e89322b49fb46bdacd22a562995f2fc + name: 'Disk [{#POSITION}]: Path A1 degraded' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",loop_a1_degraded]' + delay: '0' + description: 'Indicates if this is a degraded path for the disk.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - $.loopA1.degraded + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + trigger_prototypes: + - uuid: a28b1b4cdc5d4cb4afd9b7dd5e5f4f46 + expression: 'last(/HPE Primera by HTTP/hpe.primera.disk["{#ID}",loop_a1_degraded])=1' + name: 'HPE Primera: Disk [{#POSITION}]: Path A1 degraded' + priority: AVERAGE + description: 'Disk [{#POSITION}] path A1 in degraded state.' + tags: + - tag: scope + value: availability + - uuid: 2b56e5a6ffbd4e6189fff707d508f955 + name: 'Disk [{#POSITION}]: Path B0 degraded' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",loop_b0_degraded]' + delay: '0' + description: 'Indicates if this is a degraded path for the disk.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - $.loopB0.degraded + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + trigger_prototypes: + - uuid: 0ff32326e7784111842198ac6457c5cc + expression: 'last(/HPE Primera by HTTP/hpe.primera.disk["{#ID}",loop_b0_degraded])=1' + name: 'HPE Primera: Disk [{#POSITION}]: Path B0 degraded' + priority: AVERAGE + description: 'Disk [{#POSITION}] path B0 in degraded state.' + tags: + - tag: scope + value: availability + - uuid: cfb88804564d4e0c914760daec53276f + name: 'Disk [{#POSITION}]: Path B1 degraded' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",loop_b1_degraded]' + delay: '0' + description: 'Indicates if this is a degraded path for the disk.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - $.loopB1.degraded + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + trigger_prototypes: + - uuid: d55532408f3c40408dbd05671c66b5f3 + expression: 'last(/HPE Primera by HTTP/hpe.primera.disk["{#ID}",loop_b1_degraded])=1' + name: 'HPE Primera: Disk [{#POSITION}]: Path B1 degraded' + priority: AVERAGE + description: 'Disk [{#POSITION}] path B1 in degraded state.' + tags: + - tag: scope + value: availability + - uuid: 1387d1129e4a418e91fb0e99179116f5 + name: 'Disk [{#POSITION}]: Manufacturer' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",manufacturer]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Physical disk manufacturer.' + preprocessing: + - type: JSONPATH + parameters: + - $.manufacturer + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + - uuid: 1892d6230e244e1089a5eca8654ba2fa + name: 'Disk [{#POSITION}]: Model' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Manufacturer''s device ID for disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + - uuid: 495ceedbdf1644fdb56cf56123c1ec01 + name: 'Disk [{#POSITION}]: RPM' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",rpm]' + delay: '0' + units: '!rpm' + description: 'RPM of the physical disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.RPM + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + - uuid: 07fa233e273d4d6e9813705d0afc82f5 + name: 'Disk [{#POSITION}]: Serial number' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Disk drive serial number.' + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + - uuid: acb23a0dc2674f57bada95dd12972662 + name: 'Disk [{#POSITION}]: State' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",state]' + delay: '0' + description: | + State of the physical disk: + + Normal (1) - physical disk is in Normal state; + Degraded (2) - physical disk is not operating normally; + New (3) - physical disk is new, needs to be admitted; + Failed (4) - physical disk has failed; + Unknown (99) - physical disk state is unknown. + + Note: + WSAPI 1.7 reports Failed as state = 3; + WSAPI 1.8+ reports Failed as state = 4 and introduces New as state = 3. + valuemap: + name: 'diskState enum' + preprocessing: + - type: JSONPATH + parameters: + - $.state + error_handler: CUSTOM_VALUE + error_handler_params: '99' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + trigger_prototypes: + - uuid: d8991103e26b4ffea5fb64dc3519eb63 + expression: 'last(/HPE Primera by HTTP/hpe.primera.disk["{#ID}",state])=2' + name: 'HPE Primera: Disk [{#POSITION}]: Degraded' + priority: AVERAGE + description: 'Disk [{#POSITION}] in degraded state.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: bc8c8281c3ac4742ba8f570a56753dd3 + expression: 'last(/HPE Primera by HTTP/hpe.primera.disk["{#ID}",state])=4' + name: 'HPE Primera: Disk [{#POSITION}]: Failed' + priority: HIGH + description: 'Disk [{#POSITION}] in failed state.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: d4bda084df0b4a489fac08d1acae4e17 + expression: 'last(/HPE Primera by HTTP/hpe.primera.disk["{#ID}",state])=99' + name: 'HPE Primera: Disk [{#POSITION}]: Unknown issue' + priority: INFO + description: 'Disk [{#POSITION}] in unknown state.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 83395e3165c949e8997e93bfce0ac1d0 + name: 'Disk [{#POSITION}]: Total size' + type: DEPENDENT + key: 'hpe.primera.disk["{#ID}",total_size]' + delay: '0' + units: B + description: 'Physical disk total size.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalSizeMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.disk["{#ID}",data]' + tags: + - tag: component + value: disk + - tag: component + value: storage + - tag: disk + value: '{#POSITION}' + master_item: + key: hpe.primera.get.disks + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#POSITION}' + path: $.position + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 77ae172949044c148ac8f56f05d3af33 + name: 'Hosts discovery' + type: DEPENDENT + key: hpe.primera.hosts.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + operator: EXISTS + formulaid: A + description: 'List of host properties.' + item_prototypes: + - uuid: 142a03a36dbf477ebbcb99994efe4246 + name: 'Host [{#NAME}]: Comment' + type: DEPENDENT + key: 'hpe.primera.host["{#ID}",comment]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Additional information for the host.' + preprocessing: + - type: JSONPATH + parameters: + - $.descriptors.comment + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.host["{#ID}",data]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - uuid: 44a06761b5174c67ace5487b7ec9f0e5 + name: 'Host [{#NAME}]: Contact' + type: DEPENDENT + key: 'hpe.primera.host["{#ID}",contact]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The host''s owner and contact.' + preprocessing: + - type: JSONPATH + parameters: + - $.descriptors.contact + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.host["{#ID}",data]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - uuid: dfa476d826d34f6bb0f2015b06b6c272 + name: 'Host [{#NAME}]: Get host data' + type: DEPENDENT + key: 'hpe.primera.host["{#ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Host [{#NAME}] data' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.id == "{#ID}")].first()' + master_item: + key: hpe.primera.get.hosts + tags: + - tag: component + value: host + - tag: component + value: raw + - tag: host + value: '{#NAME}' + - uuid: b3bd017e96d843248bbb9cb2240e861b + name: 'Host [{#NAME}]: IP address' + type: DEPENDENT + key: 'hpe.primera.host["{#ID}",ipaddress]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The host''s IP address.' + preprocessing: + - type: JSONPATH + parameters: + - $.descriptors.IPAddr + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.host["{#ID}",data]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - uuid: 367466a0f7084e579f3c11d820dc7f04 + name: 'Host [{#NAME}]: Location' + type: DEPENDENT + key: 'hpe.primera.host["{#ID}",location]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The host''s location.' + preprocessing: + - type: JSONPATH + parameters: + - $.descriptors.location + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.host["{#ID}",data]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - uuid: 997e52f8f50e47738a1aefbcedaa5a82 + name: 'Host [{#NAME}]: Model' + type: DEPENDENT + key: 'hpe.primera.host["{#ID}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The host''s model.' + preprocessing: + - type: JSONPATH + parameters: + - $.descriptors.model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.host["{#ID}",data]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - uuid: 4db5068c8aea4940adb5f8863d50ef47 + name: 'Host [{#NAME}]: OS' + type: DEPENDENT + key: 'hpe.primera.host["{#ID}",os]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The operating system running on the host.' + preprocessing: + - type: JSONPATH + parameters: + - $.descriptors.os + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.primera.host["{#ID}",data]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + master_item: + key: hpe.primera.get.hosts + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3c9222777f2649749df76cbf61601557 + name: 'Ports discovery' + type: DEPENDENT + key: hpe.primera.ports.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#TYPE}' + value: '3' + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'List of ports.' + item_prototypes: + - uuid: 3b3d82c9c161429294a69774ec0daf5d + name: 'Port [{#NODE}:{#SLOT}:{#CARD.PORT}]: Get port data' + type: DEPENDENT + key: 'hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Port [{#NODE}:{#SLOT}:{#CARD.PORT}] data' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.portPos.node == "{#NODE}" && @.portPos.slot == "{#SLOT}" && @.portPos.cardPort == "{#CARD.PORT}")].first()' + master_item: + key: hpe.primera.get.ports + tags: + - tag: component + value: port + - tag: component + value: raw + - tag: port + value: '{#NODE}:{#SLOT}:{#CARD.PORT}' + - uuid: 9241e0b26de74ea49f28e1c09e15a2cd + name: 'Port [{#NODE}:{#SLOT}:{#CARD.PORT}]: Failover state' + type: DEPENDENT + key: 'hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",failover_state]' + delay: '0' + description: | + The state of the failover operation, shown for the two ports indicated in the N:S:P and Partner columns. The value can be one of the following: + + none (1) - no failover in operation; + failover_pending (2) - in the process of failing over to partner; + failed_over (3) - failed over to partner; + active (4) - the partner port is failed over to this port; + active_down (5) - the partner port is failed over to this port, but this port is down; + active_failed (6) - the partner port is failed over to this port, but this port is down; + failback_pending (7) - in the process of failing back from partner. + valuemap: + name: 'portFailOverState enum' + preprocessing: + - type: JSONPATH + parameters: + - $.failoverState + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",data]' + tags: + - tag: component + value: port + - tag: port + value: '{#NODE}:{#SLOT}:{#CARD.PORT}' + trigger_prototypes: + - uuid: 65f3f3b098984842b5246bfb5842bc78 + expression: 'last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",failover_state])<>1 and last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",failover_state])<>4' + name: 'HPE Primera: Port [{#NODE}:{#SLOT}:{#CARD.PORT}]: Failover state is {ITEM.VALUE1}' + priority: AVERAGE + description: 'Port [{#NODE}:{#SLOT}:{#CARD.PORT}] has failover error.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 8abba6d6f6e749b0be277056421a1958 + name: 'Port [{#NODE}:{#SLOT}:{#CARD.PORT}]: Hardware type' + type: DEPENDENT + key: 'hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",hw_type]' + delay: '0' + description: | + Hardware type: + + FC (1) - Fibre channel HBA; + ETH (2) - Ethernet NIC; + iSCSI (3) - iSCSI HBA; + CNA (4) - Converged network adapter; + SAS (5) - SAS HBA; + COMBO (6) - Combo card; + NVME (7) - NVMe drive; + UNKNOWN (99) - unknown hardware type. + valuemap: + name: 'hardwareType enum' + preprocessing: + - type: JSONPATH + parameters: + - $.hardwareType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",data]' + tags: + - tag: component + value: port + - tag: port + value: '{#NODE}:{#SLOT}:{#CARD.PORT}' + - uuid: 55119ce474024203ac039f4aa797dd4c + name: 'Port [{#NODE}:{#SLOT}:{#CARD.PORT}]: Link state' + type: DEPENDENT + key: 'hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state]' + delay: '0' + description: | + Port link state: + + CONFIG_WAIT (1) - configuration wait; + ALPA_WAIT (2) - ALPA wait; + LOGIN_WAIT (3) - login wait; + READY (4) - link is ready; + LOSS_SYNC (5) - link is loss sync; + ERROR_STATE (6) - in error state; + XXX (7) - xxx; + NONPARTICIPATE (8) - link did not participate; + COREDUMP (9) - taking coredump; + OFFLINE (10) - link is offline; + FWDEAD (11) - firmware is dead; + IDLE_FOR_RESET (12) - link is idle for reset; + DHCP_IN_PROGRESS (13) - DHCP is in progress; + PENDING_RESET (14) - link reset is pending; + NEW (15) - link in new. This value is applicable for only virtual ports; + DISABLED (16) - link in disabled. This value is applicable for only virtual ports; + DOWN (17) - link in down. This value is applicable for only virtual ports; + FAILED (18) - link in failed. This value is applicable for only virtual ports; + PURGING (19) - link in purging. This value is applicable for only virtual ports. + valuemap: + name: 'portLinkState enum' + preprocessing: + - type: JSONPATH + parameters: + - $.linkState + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",data]' + tags: + - tag: component + value: port + - tag: port + value: '{#NODE}:{#SLOT}:{#CARD.PORT}' + trigger_prototypes: + - uuid: c7ee19ea175d4c63a9ae67e0ab59253b + expression: 'last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])<>4 and last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])<>1 and last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])<>3 and last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])<>13 and last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])<>15 and last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])<>16' + name: 'HPE Primera: Port [{#NODE}:{#SLOT}:{#CARD.PORT}]: Link state is {ITEM.VALUE1}' + priority: HIGH + description: 'Port [{#NODE}:{#SLOT}:{#CARD.PORT}] not in ready state.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: f0c8851f843e41dcb6820c943efcbe2f + expression: 'last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])=1 or last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])=3 or last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])=13 or last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])=15 or last(/HPE Primera by HTTP/hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",link_state])=16' + name: 'HPE Primera: Port [{#NODE}:{#SLOT}:{#CARD.PORT}]: Link state is {ITEM.VALUE1}' + priority: AVERAGE + description: 'Port [{#NODE}:{#SLOT}:{#CARD.PORT}] not in ready state.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: c049e53b25bb4cb58cabbff1d91b3e88 + name: 'Port [{#NODE}:{#SLOT}:{#CARD.PORT}]: Type' + type: DEPENDENT + key: 'hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",type]' + delay: '0' + description: | + Port connection type: + + HOST (1) - FC port connected to hosts or fabric; + DISK (2) - FC port connected to disks; + FREE (3) - port is not connected to hosts or disks; + IPORT (4) - port is in iport mode; + RCFC (5) - FC port used for remote copy; + PEER (6) - FC port used for data migration; + RCIP (7) - IP (Ethernet) port used for remote copy; + ISCSI (8) - iSCSI (Ethernet) port connected to hosts; + CNA (9) - CNA port, which can be FCoE or iSCSI; + FS (10) - Ethernet File Persona ports. + valuemap: + name: 'portConnType enum' + preprocessing: + - type: JSONPATH + parameters: + - $.type + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.port["{#NODE}:{#SLOT}:{#CARD.PORT}",data]' + tags: + - tag: component + value: port + - tag: port + value: '{#NODE}:{#SLOT}:{#CARD.PORT}' + master_item: + key: hpe.primera.get.ports + lld_macro_paths: + - lld_macro: '{#CARD.PORT}' + path: $.portPos.cardPort + - lld_macro: '{#NODE}' + path: $.portPos.node + - lld_macro: '{#SLOT}' + path: $.portPos.slot + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b47a6afafca6486ea4ffb12dd3322bab + name: 'Tasks discovery' + type: DEPENDENT + key: hpe.primera.tasks.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$HPE.PRIMERA.LLD.FILTER.TASK.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$HPE.PRIMERA.LLD.FILTER.TASK.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TYPE}' + value: '{$HPE.PRIMERA.LLD.FILTER.TASK.TYPE.MATCHES}' + formulaid: C + - macro: '{#TYPE}' + value: '{$HPE.PRIMERA.LLD.FILTER.TASK.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + lifetime: 1d + description: 'List of tasks started within last 24 hours.' + item_prototypes: + - uuid: 8c64d0364b0f40c8a73f51fe74962934 + name: 'Task [{#NAME}]: Get task data' + type: DEPENDENT + key: 'hpe.primera.task["{#ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Task [{#NAME}] data' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.id == "{#ID}")].first()' + master_item: + key: hpe.primera.get.tasks + tags: + - tag: component + value: raw + - tag: component + value: task + - tag: task + value: '{#NAME}' + - uuid: cbcdf169dcf646cb959206bbb6cf3642 + name: 'Task [{#NAME}]: Finish time' + type: DEPENDENT + key: 'hpe.primera.task["{#ID}",finish_time]' + delay: '0' + units: unixtime + description: 'Task finish time.' + preprocessing: + - type: JSONPATH + parameters: + - $.finishTime + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: NOT_MATCHES_REGEX + parameters: + - ^-$ + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + raw_date = value.split(' '); + + return Date.parse(raw_date[0] + 'T' + raw_date[1] + raw_date[2] + ':00')/1000; + master_item: + key: 'hpe.primera.task["{#ID}",data]' + tags: + - tag: component + value: task + - tag: task + value: '{#NAME}' + - uuid: 66140b134d954319a96eb17750da6b7c + name: 'Task [{#NAME}]: Start time' + type: DEPENDENT + key: 'hpe.primera.task["{#ID}",start_time]' + delay: '0' + units: unixtime + description: 'Task start time.' + preprocessing: + - type: JSONPATH + parameters: + - $.startTime + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: JAVASCRIPT + parameters: + - | + raw_date = value.split(' '); + + return Date.parse(raw_date[0] + 'T' + raw_date[1] + raw_date[2] + ':00')/1000; + master_item: + key: 'hpe.primera.task["{#ID}",data]' + tags: + - tag: component + value: task + - tag: task + value: '{#NAME}' + - uuid: e01b3c84a6594e419c358c7ea297159b + name: 'Task [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.primera.task["{#ID}",status]' + delay: '0' + description: | + Task status: + + DONE (1) - task is finished; + ACTIVE (2) - task is in progress; + CANCELLED (3) - task is canceled; + FAILED (4) - task failed. + valuemap: + name: 'taskStatus enum' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'hpe.primera.task["{#ID}",data]' + tags: + - tag: component + value: task + - tag: task + value: '{#NAME}' + trigger_prototypes: + - uuid: 63340c376d86492198e00d7ae10f063c + expression: 'last(/HPE Primera by HTTP/hpe.primera.task["{#ID}",status])=3' + name: 'HPE Primera: Task [{#NAME}]: Cancelled' + priority: INFO + description: 'Task [{#NAME}] is cancelled.' + tags: + - tag: scope + value: notice + - uuid: af326c0f259144d28ebeb60e19bae903 + expression: 'last(/HPE Primera by HTTP/hpe.primera.task["{#ID}",status])=4' + name: 'HPE Primera: Task [{#NAME}]: Failed' + priority: AVERAGE + description: 'Task [{#NAME}] is failed.' + tags: + - tag: scope + value: notice + - uuid: a67262cd7be642b9b56194d8bbb7e928 + name: 'Task [{#NAME}]: Type' + type: DEPENDENT + key: 'hpe.primera.task["{#ID}",type]' + delay: '0' + description: | + Task type: + + VV_COPY (1) - track the physical copy operations; + PHYS_COPY_RESYNC (2) - track physical copy resynchronization operations; + MOVE_REGIONS (3) - track region move operations; + PROMOTE_SV (4) - track virtual-copy promotions; + REMOTE_COPY_SYNC (5) - track remote copy group synchronizations; + REMOTE_COPY_REVERSE (6) - track the reversal of a remote copy group; + REMOTE_COPY_FAILOVER (7) - track the change-over of a secondary volume group to a primaryvolume group;REMOTE_COPY_RECOVER (8) - track synchronization start after a failover operation from originalsecondary cluster to original primary cluster; + REMOTE_COPY_RESTORE (9) - tracks the restoration process for groups that have already been recovered; + COMPACT_CPG (10) - track space consolidation in CPGs; + COMPACT_IDS (11) - track space consolidation in logical disks; + SNAPSHOT_ACCOUNTING (12) - track progress of snapshot space usage accounting; + CHECK_VV (13) - track the progress of the check-volume operation; + SCHEDULED_TASK (14) - track tasks that have been executed by the system scheduler; + SYSTEM_TASK (15) - track tasks that are periodically run by the storage system; + BACKGROUND_TASK (16) - track commands started using the starttask command; + IMPORT_VV (17) - track tasks that migrate data to the local storage system; + ONLINE_COPY (18) - track physical copy of the volume while online (createvvcopy-online command); + CONVERT_VV (19) - track tasks that convert a volume from an FPVV to a TPVV, and the reverse; + BACKGROUND_COMMAND (20) - track background command tasks; + CLX_SYNC (21) - track CLX synchronization tasks; + CLX_RECOVERY (22) - track CLX recovery tasks; + TUNE_SD (23) - tune copy space; + TUNE_VV (24) - tune virtual volume; + TUNE_VV_ROLLBACK (25) - tune virtual volume rollback; + TUNE_VV_RESTART (26) - tune virtual volume restart; + SYSTEM_TUNING (27) - system tuning; + NODE_RESCUE (28) - node rescue; + REPAIR_SYNC (29) - remote copy repair sync; + REMOTE_COPY_SWOVER (30) - remote copy switchover; + DEFRAGMENTATION (31) - defragmentation; + ENCRYPTION_CHANGE (32) - encryption change; + REMOTE_COPY_FAILSAFE (33) - remote copy failsafe; + TUNE_TPVV (34) - tune thin virtual volume; + REMOTE_COPY_CHG_MODE (35) - remote copy change mode; + ONLINE_PROMOTE (37) - online promote snap; + RELOCATE_PD (38) - relocate PD; + PERIODIC_CSS (39) - remote copy periodic CSS; + TUNEVV_LARGE (40) - tune large virtual volume; + SD_META_FIXER (41) - compression SD meta fixer; + DEDUP_DRYRUN (42) - preview dedup ratio; + COMPR_DRYRUN (43) - compression estimation; + DEDUP_COMPR_DRYRUN (44) - compression and dedup estimation; + UNKNOWN (99) - unknown task type. + valuemap: + name: 'taskType enum' + preprocessing: + - type: JSONPATH + parameters: + - $.type + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.primera.task["{#ID}",data]' + tags: + - tag: component + value: task + - tag: task + value: '{#NAME}' + master_item: + key: hpe.primera.get.tasks + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: eb73fcc415c54ac18840d2655f048f6c + name: 'Volumes discovery' + type: DEPENDENT + key: hpe.primera.volumes.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$HPE.PRIMERA.VOLUME.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$HPE.PRIMERA.VOLUME.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'List of storage volume resources.' + item_prototypes: + - uuid: 40db4c8f6d85414e843c97770225f93d + name: 'Volume [{#NAME}]: Compaction ratio' + type: DEPENDENT + key: 'hpe.primera.volume.capacity.efficiency["{#ID}",compaction]' + delay: '0' + value_type: FLOAT + description: 'The compaction ratio indicates the overall amount of storage space saved with thin technology.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacityEfficiency.compaction + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: ab2a583c4b4049a6ac8b7bbc02bda8f5 + name: 'Volume [{#NAME}]: Storage space saved using compression' + type: DEPENDENT + key: 'hpe.primera.volume.capacity.efficiency["{#ID}",compression]' + delay: '0' + value_type: FLOAT + description: 'Indicates the amount of storage space saved using compression.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacityEfficiency.compression + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 1c4d78b2dcd64efbbf710ef602a94573 + name: 'Volume [{#NAME}]: Storage space saved using deduplication' + type: DEPENDENT + key: 'hpe.primera.volume.capacity.efficiency["{#ID}",deduplication]' + delay: '0' + value_type: FLOAT + description: 'Indicates the amount of storage space saved using deduplication.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacityEfficiency.deduplication + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 3b88e49e88484fe4a77e2a96f6d48322 + name: 'Volume [{#NAME}]: Overprovisioning ratio' + type: DEPENDENT + key: 'hpe.primera.volume.capacity.efficiency["{#ID}",overprovisioning]' + delay: '0' + value_type: FLOAT + description: 'Overprovisioning capacity efficiency ratio.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacityEfficiency.overProvisioning + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: f584938e60f94c46b4ed28cc614c797d + name: 'Volume [{#NAME}]: Storage space saved using deduplication and compression' + type: DEPENDENT + key: 'hpe.primera.volume.capacity.efficiency["{#ID}",reduction]' + delay: '0' + value_type: FLOAT + description: 'Indicates the amount of storage space saved using deduplication and compression together.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacityEfficiency.dataReduction + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: bb78eda6a941407581f78cf29ef2b647 + name: 'Volume [{#NAME}]: Administrative space: Free' + type: DEPENDENT + key: 'hpe.primera.volume.space.admin["{#ID}",free]' + delay: '0' + units: B + description: 'Free administrative space.' + preprocessing: + - type: JSONPATH + parameters: + - $.adminSpace.freeMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: e4f9f8f5c1cd494896eba973b072fc57 + name: 'Volume [{#NAME}]: Administrative space: Raw reserved' + type: DEPENDENT + key: 'hpe.primera.volume.space.admin["{#ID}",raw_reserved]' + delay: '0' + units: B + description: 'Raw reserved administrative space.' + preprocessing: + - type: JSONPATH + parameters: + - $.adminSpace.rawReservedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: e5a93a042a3b41bab4cf59dc71ec66bf + name: 'Volume [{#NAME}]: Administrative space: Reserved' + type: DEPENDENT + key: 'hpe.primera.volume.space.admin["{#ID}",reserved]' + delay: '0' + units: B + description: 'Reserved administrative space.' + preprocessing: + - type: JSONPATH + parameters: + - $.adminSpace.reservedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 67e182afc0124cf5913b0499317a7966 + name: 'Volume [{#NAME}]: Administrative space: Used' + type: DEPENDENT + key: 'hpe.primera.volume.space.admin["{#ID}",used]' + delay: '0' + units: B + description: 'Used administrative space.' + preprocessing: + - type: JSONPATH + parameters: + - $.adminSpace.usedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 5d4659c72ed3492da143ad9c37e71360 + name: 'Volume [{#NAME}]: Snapshot space: Free' + type: DEPENDENT + key: 'hpe.primera.volume.space.snapshot["{#ID}",free]' + delay: '0' + units: B + description: 'Free snapshot space.' + preprocessing: + - type: JSONPATH + parameters: + - $.snapshotSpace.freeMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: a2c22eed1c004bcc9292b945b5038858 + name: 'Volume [{#NAME}]: Snapshot space: Raw reserved' + type: DEPENDENT + key: 'hpe.primera.volume.space.snapshot["{#ID}",raw_reserved]' + delay: '0' + units: B + description: 'Raw reserved snapshot space.' + preprocessing: + - type: JSONPATH + parameters: + - $.snapshotSpace.rawReservedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: a37265c4598f4179bdcfd816769a1d9b + name: 'Volume [{#NAME}]: Snapshot space: Reserved' + type: DEPENDENT + key: 'hpe.primera.volume.space.snapshot["{#ID}",reserved]' + delay: '0' + units: B + description: 'Reserved snapshot space.' + preprocessing: + - type: JSONPATH + parameters: + - $.snapshotSpace.reservedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: a278f5ec08c747b085ec53a36357539c + name: 'Volume [{#NAME}]: Snapshot space: Used' + type: DEPENDENT + key: 'hpe.primera.volume.space.snapshot["{#ID}",used]' + delay: '0' + units: B + description: 'Used snapshot space.' + preprocessing: + - type: JSONPATH + parameters: + - $.snapshotSpace.usedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 64825e4092c6450a8ea7fb7bce2d85ce + name: 'Volume [{#NAME}]: Total reserved space' + type: DEPENDENT + key: 'hpe.primera.volume.space.total["{#ID}",reserved]' + delay: '0' + units: B + description: 'Total reserved space.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalReservedMiB + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: af15ec5befd146afbfb2b9cc017d03be + name: 'Volume [{#NAME}]: Total space' + type: DEPENDENT + key: 'hpe.primera.volume.space.total["{#ID}",size]' + delay: '0' + units: B + description: 'Virtual size of volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.sizeMiB + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 6000ab524b394e65afe111b65f7b6fd8 + name: 'Volume [{#NAME}]: Total used space' + type: DEPENDENT + key: 'hpe.primera.volume.space.total["{#ID}",used]' + delay: '0' + units: B + description: 'Total used space. Sum of used user space and used snapshot space.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalUsedMiB + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 43c278563b174005ac5302ee48e0cd30 + name: 'Volume [{#NAME}]: User space: Free' + type: DEPENDENT + key: 'hpe.primera.volume.space.user["{#ID}",free]' + delay: '0' + units: B + description: 'Free user space.' + preprocessing: + - type: JSONPATH + parameters: + - $.userSpace.freeMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 97aaefe8dffd4d2eb83f908ac8ad775b + name: 'Volume [{#NAME}]: User space: Raw reserved' + type: DEPENDENT + key: 'hpe.primera.volume.space.user["{#ID}",raw_reserved]' + delay: '0' + units: B + description: 'Raw reserved user space.' + preprocessing: + - type: JSONPATH + parameters: + - $.userSpace.rawReservedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 135ad5457781492db1cec36787151a71 + name: 'Volume [{#NAME}]: User space: Reserved' + type: DEPENDENT + key: 'hpe.primera.volume.space.user["{#ID}",reserved]' + delay: '0' + units: B + description: 'Reserved user space.' + preprocessing: + - type: JSONPATH + parameters: + - $.userSpace.reservedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 3adf03216c4f442693fccbb991c0de3d + name: 'Volume [{#NAME}]: User space: Used' + type: DEPENDENT + key: 'hpe.primera.volume.space.user["{#ID}",used]' + delay: '0' + units: B + description: 'Used user space.' + preprocessing: + - type: JSONPATH + parameters: + - $.userSpace.usedMiB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: beb17415bd07492d83944da714c492e7 + name: 'Volume [{#NAME}]: Compression state' + type: DEPENDENT + key: 'hpe.primera.volume.state["{#ID}",compression]' + delay: '0' + description: | + Volume compression state: + + YES (1) - compression is enabled on the volume; + NO (2) - compression is disabled on the volume; + OFF (3) - compression is turned off; + NA (4) - compression is not available on the volume. + valuemap: + name: 'Volume compressionState enum' + preprocessing: + - type: JSONPATH + parameters: + - $.compressionState + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 3962d07122a0460fa36c1b151a87717b + name: 'Volume [{#NAME}]: Deduplication state' + type: DEPENDENT + key: 'hpe.primera.volume.state["{#ID}",deduplication]' + delay: '0' + description: | + Volume deduplication state: + + YES (1) - enables deduplication on the volume; + NO (2) - disables deduplication on the volume; + NA (3) - deduplication is not available; + OFF (4) - deduplication is turned off. + valuemap: + name: 'Volume deduplicationState enum' + preprocessing: + - type: JSONPATH + parameters: + - $.deduplicationState + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 83222faf4e3e414789e028e0b17350c6 + name: 'Volume [{#NAME}]: Degraded state' + type: DEPENDENT + key: 'hpe.primera.volume.state["{#ID}",degraded]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Volume detailed state: + + LDS_NOT_STARTED (1) - LDs not started. + NOT_STARTED (2) - VV not started. + NEEDS_CHECK (3) - check for consistency. + NEEDS_MAINT_CHECK (4) - maintenance check is required. + INTERNAL_CONSISTENCY_ERROR (5) - internal consistency error. + SNAPDATA_INVALID (6) - invalid snapshot data. + PRESERVED (7) - unavailable LD sets due to missing chunklets. Preserved remaining VV data. + STALE (8) - parts of the VV contain old data because of a copy-on-write operation. + COPY_FAILED (9) - a promote or copy operation to this volume failed. + DEGRADED_AVAIL (10) - degraded due to availability. + DEGRADED_PERF (11) - degraded due to performance. + PROMOTING (12) - volume is the current target of a promote operation. + COPY_TARGET (13) - volume is the current target of a physical copy operation. + RESYNC_TARGET (14) - volume is the current target of a resynchronized copy operation. + TUNING (15) - volume tuning is in progress. + CLOSING (16) - volume is closing. + REMOVING (17) - removing the volume. + REMOVING_RETRY (18) - retrying a volume removal operation. + CREATING (19) - creating a volume. + COPY_SOURCE (20) - copy source. + IMPORTING (21) - importing a volume. + CONVERTING (22) - converting a volume. + INVALID (23) - invalid. + EXCLUSIVE (24) - local storage system has exclusive access to the volume. + CONSISTENT (25) - volume is being imported consistently along with other volumes in the VV set. + STANDBY (26) - volume in standby mode. + SD_META_INCONSISTENT (27) - SD Meta Inconsistent. + SD_NEEDS_FIX (28) - SD needs fix. + SD_META_FIXING (29) - SD meta fix. + UNKNOWN (999) - unknown state. + NOT_SUPPORTED_BY_WSAPI (1000) - state not supported by WSAPI. + valuemap: + name: 'Volume detailed state enum' + preprocessing: + - type: JSONPATH + parameters: + - $.degradedStates + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 462e4b491dd94c78b299178af6d34ca0 + name: 'Volume [{#NAME}]: Failed state' + type: DEPENDENT + key: 'hpe.primera.volume.state["{#ID}",failed]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Volume detailed state: + + LDS_NOT_STARTED (1) - LDs not started. + NOT_STARTED (2) - VV not started. + NEEDS_CHECK (3) - check for consistency. + NEEDS_MAINT_CHECK (4) - maintenance check is required. + INTERNAL_CONSISTENCY_ERROR (5) - internal consistency error. + SNAPDATA_INVALID (6) - invalid snapshot data. + PRESERVED (7) - unavailable LD sets due to missing chunklets. Preserved remaining VV data. + STALE (8) - parts of the VV contain old data because of a copy-on-write operation. + COPY_FAILED (9) - a promote or copy operation to this volume failed. + DEGRADED_AVAIL (10) - degraded due to availability. + DEGRADED_PERF (11) - degraded due to performance. + PROMOTING (12) - volume is the current target of a promote operation. + COPY_TARGET (13) - volume is the current target of a physical copy operation. + RESYNC_TARGET (14) - volume is the current target of a resynchronized copy operation. + TUNING (15) - volume tuning is in progress. + CLOSING (16) - volume is closing. + REMOVING (17) - removing the volume. + REMOVING_RETRY (18) - retrying a volume removal operation. + CREATING (19) - creating a volume. + COPY_SOURCE (20) - copy source. + IMPORTING (21) - importing a volume. + CONVERTING (22) - converting a volume. + INVALID (23) - invalid. + EXCLUSIVE (24) - local storage system has exclusive access to the volume. + CONSISTENT (25) - volume is being imported consistently along with other volumes in the VV set. + STANDBY (26) - volume in standby mode. + SD_META_INCONSISTENT (27) - SD Meta Inconsistent. + SD_NEEDS_FIX (28) - SD needs fix. + SD_META_FIXING (29) - SD meta fix. + UNKNOWN (999) - unknown state. + NOT_SUPPORTED_BY_WSAPI (1000) - state not supported by WSAPI. + valuemap: + name: 'Volume detailed state enum' + preprocessing: + - type: JSONPATH + parameters: + - $.failedStates + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(JSON.parse(value));' + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 4d4e34fdbac84cada109cbfe9b69812c + name: 'Volume [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.primera.volume.state["{#ID}"]' + delay: '0' + description: | + State of the volume: + + NORMAL (1) - normal operation; + DEGRADED (2) - degraded state; + FAILED (3) - abnormal operation; + UNKNOWN (99) - unknown state. + valuemap: + name: 'State enum' + preprocessing: + - type: JSONPATH + parameters: + - $.state + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + trigger_prototypes: + - uuid: c91920ca3ceb457cb9e2db0bb70d7fe0 + expression: 'last(/HPE Primera by HTTP/hpe.primera.volume.state["{#ID}"])=2' + name: 'HPE Primera: Volume [{#NAME}]: Degraded' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Volume [{#NAME}] is in degraded state.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 394b5bd072ac41acb0702601c5d5f049 + expression: 'last(/HPE Primera by HTTP/hpe.primera.volume.state["{#ID}"])=3' + name: 'HPE Primera: Volume [{#NAME}]: Failed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Volume [{#NAME}] is in failed state.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 582544eb48d04a35ab03a9d01901feb9 + name: 'Volume [{#NAME}]: Remote copy status' + type: DEPENDENT + key: 'hpe.primera.volume.status["{#ID}",rcopy]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Remote copy status of the volume: + + NONE (1) - volume is not associated with remote copy; + PRIMARY (2) - volume is the primary copy; + SECONDARY (3) - volume is the secondary copy; + SNAP (4) - volume is the remote copy snapshot; + SYNC (5) - volume is a remote copy snapshot being used for synchronization; + DELETE (6) - volume is a remote copy snapshot that is marked for deletion; + UNKNOWN (99) - remote copy status is unknown for this volume. + valuemap: + name: 'rcopyStatus enum' + preprocessing: + - type: JSONPATH + parameters: + - $.rcopyStatus + master_item: + key: 'hpe.primera.volume["{#ID}",data]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + - uuid: 37c200429b414e149fb970c269721154 + name: 'Volume [{#NAME}]: Get volume data' + type: DEPENDENT + key: 'hpe.primera.volume["{#ID}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Volume [{#NAME}] data' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.id == "{#ID}")].first()' + master_item: + key: hpe.primera.get.volumes + tags: + - tag: component + value: raw + - tag: component + value: volume + - tag: volume + value: '{#NAME}' + graph_prototypes: + - uuid: 8c7139d2b7d94773ad6ef813c7fa59c9 + name: 'Volume [{#NAME}]: Administrative space' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.admin["{#ID}",free]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.admin["{#ID}",raw_reserved]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.admin["{#ID}",reserved]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.admin["{#ID}",used]' + - uuid: c74b88d4e61d4264b804965854eb1da1 + name: 'Volume [{#NAME}]: Capacity efficiency: Ratio' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.capacity.efficiency["{#ID}",compaction]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.capacity.efficiency["{#ID}",overprovisioning]' + - uuid: d2a75ebb20c94eb4ab5e6a9b13d1d439 + name: 'Volume [{#NAME}]: Capacity efficiency: Space saved' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.capacity.efficiency["{#ID}",compression]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.capacity.efficiency["{#ID}",deduplication]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.capacity.efficiency["{#ID}",reduction]' + - uuid: 7214605009354fd382368ec8699d5474 + name: 'Volume [{#NAME}]: Snapshot space' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.snapshot["{#ID}",free]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.snapshot["{#ID}",raw_reserved]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.snapshot["{#ID}",reserved]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.snapshot["{#ID}",used]' + - uuid: 0ad9f609419340168bf7f49de98e0135 + name: 'Volume [{#NAME}]: User space' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.user["{#ID}",free]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.user["{#ID}",raw_reserved]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.user["{#ID}",reserved]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE Primera by HTTP' + key: 'hpe.primera.volume.space.user["{#ID}",used]' + master_item: + key: hpe.primera.get.volumes + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: storage + - tag: target + value: hpe + - tag: target + value: primera + macros: + - macro: '{$HPE.PRIMERA.API.HOST}' + value: '' + description: 'The hostname or IP address of the API host.' + - macro: '{$HPE.PRIMERA.API.PASSWORD}' + type: SECRET_TEXT + description: 'Specify password for WSAPI.' + - macro: '{$HPE.PRIMERA.API.PORT}' + value: '443' + description: 'The WSAPI port.' + - macro: '{$HPE.PRIMERA.API.SCHEME}' + value: https + description: 'The WSAPI scheme (http/https).' + - macro: '{$HPE.PRIMERA.API.USERNAME}' + value: zabbix + description: 'Specify user name for WSAPI.' + - macro: '{$HPE.PRIMERA.CPG.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in filters of CPGs discovery rule.' + - macro: '{$HPE.PRIMERA.CPG.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in filters of CPGs discovery rule.' + - macro: '{$HPE.PRIMERA.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for WSAPI.' + - macro: '{$HPE.PRIMERA.LLD.FILTER.TASK.NAME.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter of discoverable tasks by name.' + - macro: '{$HPE.PRIMERA.LLD.FILTER.TASK.NAME.NOT_MATCHES}' + value: '.*' + description: 'Filter to exclude discovered tasks by name.' + - macro: '{$HPE.PRIMERA.LLD.FILTER.TASK.TYPE.MATCHES}' + value: '.*' + description: 'Filter of discoverable tasks by type.' + - macro: '{$HPE.PRIMERA.LLD.FILTER.TASK.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered tasks by type.' + - macro: '{$HPE.PRIMERA.VOLUME.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in filters of volume discovery rule.' + - macro: '{$HPE.PRIMERA.VOLUME.NAME.NOT_MATCHES}' + value: ^(admin|.srdata|.mgmtdata)$ + description: 'This macro is used in filters of volume discovery rule.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "HPE Primera", e.g. {$HTTP.TLS.VERIFY:"HPE Primera"}.' + dashboards: + - uuid: 38656d541ee34c40b4a50943a2e6f999 + name: 'Storage overview' + auto_start: 'NO' + pages: + - name: 'System capacity' + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'HPE Primera: Capacity' + - type: STRING + name: reference + value: AAAAA + - name: 'CPG (common provisioning groups)' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'CPG [{#NAME}]: CPG space' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'CPG [{#NAME}]: Number of virtual volumes' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'CPG [{#NAME}]: Raw space' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'CPG [{#NAME}]: Snapshot administration space' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'CPG [{#NAME}]: Snapshot data space' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '25' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'CPG [{#NAME}]: User data space' + - type: STRING + name: reference + value: AAAAG + - name: Volumes + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'Volume [{#NAME}]: Administrative space' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'Volume [{#NAME}]: Capacity efficiency: Ratio' + - type: STRING + name: reference + value: AAAAI + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'Volume [{#NAME}]: Capacity efficiency: Space saved' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'Volume [{#NAME}]: Snapshot space' + - type: STRING + name: reference + value: AAAAK + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Primera by HTTP' + name: 'Volume [{#NAME}]: User space' + - type: STRING + name: reference + value: AAAAL + valuemaps: + - uuid: 79ba0611293541f29f8b43b34e64465d + name: Boolean + mappings: + - value: '0' + newvalue: 'No' + - value: '1' + newvalue: 'Yes' + - uuid: fd9a3483b02f45c6836b9a126b669402 + name: 'diskState enum' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Degraded + - value: '3' + newvalue: New + - value: '4' + newvalue: Failed + - value: '99' + newvalue: Unknown + - uuid: 7513c4c923884ed4b8e35ee9cdf4f627 + name: 'hardwareType enum' + mappings: + - value: '1' + newvalue: FC + - value: '2' + newvalue: Eth + - value: '3' + newvalue: iSCSI + - value: '4' + newvalue: CNA + - value: '5' + newvalue: SAS + - value: '6' + newvalue: Combo + - value: '7' + newvalue: NVMe + - value: '8' + newvalue: Unknown + - uuid: 5d243add5b534ebfac8ef95d55c4c8c9 + name: 'portConnType enum' + mappings: + - value: '1' + newvalue: Host + - value: '2' + newvalue: Disk + - value: '3' + newvalue: Free + - value: '4' + newvalue: Iport + - value: '5' + newvalue: RCFC + - value: '6' + newvalue: Peer + - value: '7' + newvalue: RCIP + - value: '8' + newvalue: ISCSI + - value: '9' + newvalue: CNA + - value: '10' + newvalue: FS + - uuid: 5762248dd10143a3945c989f0fb73b47 + name: 'portFailOverState enum' + mappings: + - value: '1' + newvalue: None + - value: '2' + newvalue: 'Failover pending' + - value: '3' + newvalue: 'Failed over' + - value: '4' + newvalue: Active + - value: '5' + newvalue: 'Active down' + - value: '6' + newvalue: 'Active failed' + - value: '7' + newvalue: Failback_pending + - uuid: 5a6cdc765c254f17b136c4267fc71349 + name: 'portLinkState enum' + mappings: + - value: '1' + newvalue: 'Config wait' + - value: '2' + newvalue: 'ALPA wait' + - value: '3' + newvalue: 'Login wait' + - value: '4' + newvalue: 'Link is ready' + - value: '5' + newvalue: 'Link is loss sync' + - value: '6' + newvalue: 'In error state' + - value: '7' + newvalue: xxx + - value: '8' + newvalue: 'Non participate' + - value: '9' + newvalue: 'Core dump' + - value: '10' + newvalue: Offline + - value: '11' + newvalue: 'FW dead' + - value: '12' + newvalue: 'Idle for reset' + - value: '13' + newvalue: 'DHCP in progress' + - value: '14' + newvalue: 'Pending reset' + - value: '15' + newvalue: New + - value: '16' + newvalue: Disabled + - value: '17' + newvalue: Down + - value: '18' + newvalue: Failed + - value: '19' + newvalue: Purging + - uuid: eb36574d642d4f9ea51688b4ff971c91 + name: 'rcopyStatus enum' + mappings: + - value: '1' + newvalue: None + - value: '2' + newvalue: Primary + - value: '3' + newvalue: Secondary + - value: '4' + newvalue: Snap + - value: '5' + newvalue: Sync + - value: '6' + newvalue: Delete + - value: '99' + newvalue: Unknown + - uuid: aaa5a863e8524a7088e64a51f5976c98 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 86e4337cbc86423fb9f605a9fb3b25b1 + name: 'State enum' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Degraded + - value: '3' + newvalue: Failed + - value: '99' + newvalue: Unknown + - uuid: 5cfd4442b6244399b7aa8b57e9816a4e + name: 'taskStatus enum' + mappings: + - value: '1' + newvalue: Done + - value: '2' + newvalue: Active + - value: '3' + newvalue: Cancelled + - value: '4' + newvalue: Failed + - uuid: 9a8e1dbbb8f7497c9492fc941fde7177 + name: 'taskType enum' + mappings: + - value: '1' + newvalue: 'VV copy' + - value: '2' + newvalue: 'Phys copy resync' + - value: '3' + newvalue: 'Move regions' + - value: '4' + newvalue: 'Promote SV' + - value: '5' + newvalue: 'Remote copy sync' + - value: '6' + newvalue: 'Remote copy reverse' + - value: '7' + newvalue: 'Remote copy failover' + - value: '8' + newvalue: 'Remote copy recover' + - value: '9' + newvalue: 'Remote copy restore' + - value: '10' + newvalue: 'Compact CPG' + - value: '11' + newvalue: 'Compact IDS' + - value: '12' + newvalue: 'Snapshot accounting' + - value: '13' + newvalue: 'Check VV' + - value: '14' + newvalue: 'Scheduled task' + - value: '15' + newvalue: 'System task' + - value: '16' + newvalue: 'Background task' + - value: '17' + newvalue: 'Import VV' + - value: '18' + newvalue: 'Online copy' + - value: '19' + newvalue: 'Convert VV' + - value: '20' + newvalue: 'Background command' + - value: '21' + newvalue: 'CLX sync' + - value: '22' + newvalue: 'CLX recovery' + - value: '23' + newvalue: 'Tune SD' + - value: '24' + newvalue: 'Tune VV' + - value: '25' + newvalue: 'Tune VV rollback' + - value: '26' + newvalue: 'Tune VV restart' + - value: '27' + newvalue: 'System tuning' + - value: '28' + newvalue: 'Node rescue' + - value: '29' + newvalue: 'Repair sync' + - value: '30' + newvalue: 'Remote copy switchover' + - value: '31' + newvalue: Defragmentation + - value: '32' + newvalue: 'Encryption change' + - value: '33' + newvalue: 'Remote copy failsafe' + - value: '34' + newvalue: 'Tune TPVV' + - value: '35' + newvalue: 'Remote copy change mode' + - value: '37' + newvalue: 'Online promote' + - value: '38' + newvalue: 'Relocate PD' + - value: '39' + newvalue: 'Periodic CSS' + - value: '40' + newvalue: 'Tune VV large' + - value: '41' + newvalue: 'SD meta fixer' + - value: '42' + newvalue: 'Dedup dryrun' + - value: '43' + newvalue: 'Compr dryrun' + - value: '44' + newvalue: 'Dedup compr dryrun' + - value: '99' + newvalue: Unknown + - uuid: f529111642364bb3a23637adc554e592 + name: 'Volume compressionState enum' + mappings: + - value: '1' + newvalue: 'Yes' + - value: '2' + newvalue: 'No' + - value: '3' + newvalue: 'Off' + - value: '4' + newvalue: NA + - uuid: 716912c7b7d94f8e97fbf911edc9578e + name: 'Volume deduplicationState enum' + mappings: + - value: '1' + newvalue: 'Yes' + - value: '2' + newvalue: 'No' + - value: '3' + newvalue: NA + - value: '4' + newvalue: 'Off' + - uuid: 6a2355e32bf54483b252f1aaf170aa45 + name: 'Volume detailed state enum' + mappings: + - value: '1' + newvalue: 'LDS not started' + - value: '2' + newvalue: 'VV not started' + - value: '3' + newvalue: 'Needs check' + - value: '4' + newvalue: 'Needs maint check' + - value: '5' + newvalue: 'Internal consistency error' + - value: '6' + newvalue: 'Snapdata invalid' + - value: '7' + newvalue: Preserved + - value: '8' + newvalue: Stale + - value: '9' + newvalue: 'Copy failed' + - value: '10' + newvalue: 'Degraded avail' + - value: '11' + newvalue: 'Degraded perf' + - value: '12' + newvalue: Promoting + - value: '13' + newvalue: 'Copy target' + - value: '14' + newvalue: 'Resync target' + - value: '15' + newvalue: Tuning + - value: '16' + newvalue: Closing + - value: '17' + newvalue: Removing + - value: '18' + newvalue: 'Removing retry' + - value: '19' + newvalue: Creating + - value: '20' + newvalue: 'Copy source' + - value: '21' + newvalue: Importing + - value: '22' + newvalue: Converting + - value: '23' + newvalue: Invalid + - value: '24' + newvalue: Exclusive + - value: '25' + newvalue: Consistent + - value: '26' + newvalue: Standby + - value: '27' + newvalue: 'SD Meta inconsistent' + - value: '28' + newvalue: 'SD needs fix' + - value: '29' + newvalue: 'SD meta fix' + - value: '999' + newvalue: 'Unknown state' + - value: '1000' + newvalue: 'State not supported by WSAPI' + graphs: + - uuid: 79e292a64d9247c486812db7a62c0eda + name: 'HPE Primera: Capacity' + graph_items: + - color: 199C0D + item: + host: 'HPE Primera by HTTP' + key: hpe.primera.system.capacity.allocated + - sortorder: '1' + color: F63100 + item: + host: 'HPE Primera by HTTP' + key: hpe.primera.system.capacity.failed + - sortorder: '2' + color: 00611C + item: + host: 'HPE Primera by HTTP' + key: hpe.primera.system.capacity.free + - sortorder: '3' + color: F7941D + item: + host: 'HPE Primera by HTTP' + key: hpe.primera.system.capacity.total diff --git a/HPE_ProLiant_BL460_by_SNMP.yaml b/HPE_ProLiant_BL460_by_SNMP.yaml new file mode 100644 index 0000000..798f5f7 --- /dev/null +++ b/HPE_ProLiant_BL460_by_SNMP.yaml @@ -0,0 +1,2202 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 172ec7e51f1c4a6ba49baffbab3dda97 + template: 'HPE ProLiant BL460 by SNMP' + name: 'HPE ProLiant BL460 by SNMP' + description: | + Template for HPE ProLiant BL460 servers with HP iLO version 4 and later. + + MIBs used: + HOST-RESOURCES-MIB + CPQHLTH-MIB + SNMPv2-MIB + CPQNIC-MIB + CPQSINFO-MIB + CPQIDA-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 0747f8f3cc624f469324c127577aa9f9 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'hp.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: cc714f5445be431192dbeb553f0aa5c5 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'hp.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: bf4baaaa76dc4f39bd39c62742f03e26 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.2.2.4.2.0]' + key: 'hp.server.hw.model[cpqSiProductName]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQSINFO-MIB + The machine product name. The name of the machine used in this system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 6d5e2b9ae30b4c43a91cada24c4cc240 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.2.2.2.1.0]' + key: 'hp.server.hw.serialnumber[cpqSiSysSerialNum]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQSINFO-MIB + The serial number of the physical system unit. The string will be empty if the system does not report the serial number function. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 1bc442ba67dc42d298d98feb845d8730 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#1)<>last(/HPE ProLiant BL460 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#2) and length(last(/HPE ProLiant BL460 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum]))>0' + name: 'HPE ProLiant BL460: Device has been replaced' + event_name: 'HPE ProLiant BL460: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 22f0b65d03d44ae0be7133eb19ecc920 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'hp.server.hw.uptime[hrSystemUptime]' + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b85a86fa36bd484cbd36cd25d2a605f9 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'hp.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 3df8b71c3f14432e8cd43fbc24f12447 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'hp.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 87570f607b174ebe887920034a1be1ef + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.name[sysName],#1)<>last(/HPE ProLiant BL460 by SNMP/hp.server.name[sysName],#2) and length(last(/HPE ProLiant BL460 by SNMP/hp.server.name[sysName]))>0' + name: 'HPE ProLiant BL460: System name has changed' + event_name: 'HPE ProLiant BL460: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 65ec5672f1de4852b1ee52ce57e4f58f + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'hp.server.net.uptime[sysUpTime]' + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 8573488eb0114109bc3c94f2edf00792 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'hp.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 3891df22d63d4be5a62c8a27ac9d8965 + name: 'System temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.1.0]' + key: 'hp.server.sensor.temp.status[cpqHeThermalCondition]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + This value specifies the overall condition of the system's thermal environment. + This value will be one of the following: + other(1) Temperature could not be determined. + ok(2) The temperature sensor is within normal operating range. + degraded(3) The temperature sensor is outside of normal operating range. + failed(4) The temperature sensor detects a condition that could permanently damage the system. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + - uuid: a8ea3fc6a5914a868be12f21342a9678 + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.1.3.0]' + key: 'hp.server.status[cpqHeMibCondition]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The overall condition. This object represents the overall status of the server information represented by this MIB. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 4d7ac12aec954df2b369ddd0536d3bd5 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}' + name: 'HPE ProLiant BL460: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for errors.' + tags: + - tag: scope + value: available + - uuid: 9ffbca9c012541b9a36956b4ae06d339 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.WARN}' + name: 'HPE ProLiant BL460: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'HPE ProLiant BL460: System status is in critical state' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: available + - uuid: 37dc9b6453184fe58435d12d422582d9 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items.' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: d2e80ecf16bb49af99eb52a45b8c11cf + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 236a5d37e58a415aa81db6e59eb826dc + expression: 'max(/HPE ProLiant BL460 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'HPE ProLiant BL460: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: available + discovery_rules: + - uuid: 79cb6edf94f441eea4b429e8474fa0c9 + name: 'Array controller cache discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CACHE_STATUS},1.3.6.1.4.1.232.3.2.2.2.1.2,{#CACHE_CNTRL_INDEX},1.3.6.1.4.1.232.3.2.2.2.1.1]' + key: array.cache.discovery + delay: 1h + description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaAccelTable' + item_prototypes: + - uuid: 0cf60fc04cc243df95145b5e3128b598 + name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Cache Module Board Backup Power Status. This monitors the status of each backup power source on the board. + The backup power source can only recharge when the system has power applied. The type of backup power source used is indicated by cpqDaAccelBackupPowerSource. + The following values are valid: + Other (1) Indicates that the instrument agent does not recognize backup power status. You may need to update your software. + + Ok (2) The backup power source is fully charged. + + Recharging (3) The array controller has one or more cache module backup power sources that are recharging. + Cache module operations such as Battery/Flash Backed Write Cache, Expansion, Extension and Migration are temporarily suspended until the backup power source is fully charged. + Cache module operations will automatically resume when charging is complete. + + Failed (4) The battery pack is below the sufficient voltage level and has not recharged in 36 hours. + Your Cache Module board needs to be serviced. + + Degraded (5) The battery is still operating, however, one of the batteries in the pack has failed to recharge properly. + Your Cache Module board should be serviced as soon as possible. + + NotPresent (6) A backup power source is not present on the cache module board. Some controllers do not have backup power sources. + + Capacitor Failed (7) The flash backed cache module capacitor is below the sufficient voltage level and has not recharged in 10 minutes. Your Cache Module board needs to be serviced. + valuemap: + name: 'CPQIDA-MIB::cpqDaAccelBattery' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 42c0ff05c06f47089322dface6c54778 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: 28f83720bdd84ab3acb43cc8caac7507 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}' + name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + tags: + - tag: scope + value: available + - uuid: 10e011c0c8cf4571bfdd2ab414c1853b + name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.2.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Cache Module/Operations Status. This describes the status of the cache module and/or cache operations. + Note that for some controller models, a cache module board that physically attaches to the controller or chipset may not be an available option. + + The status can be: + Other (1) + Indicates that the instrument agent does not recognize the status of the cache module. You may need to upgrade the instrument agent. + + Invalid (2) + Indicates that a cache module board has not been installed in this system or is present but not configured. + + Enabled (3) + Indicates that cache operations are currently configured and enabled for at least one logical drive. + + Temporarily Disabled (4) + Indicates that cache operations have been temporarily disabled. View the cache module board error code object to determine why the write cache operations have been temporarily disabled. + + Permanently Disabled (5) + Indicates that cache operations have been permanently disabled. View the cache module board error code object to determine why the write cache operations have been disabled. + + Cache Module Flash Memory Not Attached (6) + Indicates that the flash memory component of the flash backed cache module is not attached. This status will be set when the flash memory is not attached and the Supercap is attached. This value is only used on flash backed cache modules that support removable flash memory. + + Cache Module Degraded Failsafe Speed (7) + Indicates that the cache module board is currently degraded and operating at a failsafe speed. View variables cpqDaCacheMemoryDataWidth and cpqDaCacheMemoryTransferRate to obtain the cache module board`s current memory data width and memory transfer rate. + + Cache Module Critical Failure (8) + Indicates that the cache module board has encountered a critical failure. The controller is currently operating in Zero Memory Raid mode. + + Read Cache Could Not Be Mapped (9) + Indicates that the read cache memory in a split cache configuration could not be mapped by the operating system and as a result is not available. This status may be caused by virtual space limitations in certain operating systems and is only applicable to B-Series controllers. + valuemap: + name: 'CPQIDA-MIB::cpqDaAccelStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: d9fc0ecef7844e7190d89f4747f82661 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: 9b60ae9eec734644bcff9cbac9407b08 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + tags: + - tag: scope + value: available + - uuid: 61e28304c16f4855abfbcef8249a2fa6 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"} and last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}' + name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + - name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3e72130010414c7dbc3b7b050df9e577 + name: 'Array controller discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.2.1.1.1,{#CNTLR_SLOT},1.3.6.1.4.1.232.3.2.2.1.1.5,{#CNTLR_LOCATION},1.3.6.1.4.1.232.3.2.2.1.1.20]' + key: array.discovery + delay: 1h + description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaCntlrTable' + item_prototypes: + - uuid: be46bc977cdd4a85a364628a21df099d + name: '{#CNTLR_LOCATION}: Disk array controller model' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.2.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.model[cpqDaCntlrModel.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Array Controller Model. The type of controller card. + valuemap: + name: 'CPQIDA-MIB::cpqDaCntlrModel' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: d89a3b9bab6c4439a9797ee9208fec26 + name: '{#CNTLR_LOCATION}: Disk array controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + This value represents the overall condition of this controller, + and any associated logical drives, physical drives, and array accelerators. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: d0e8bcc0510c4e86bfcd3e9d601f83e0 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}' + name: 'HPE ProLiant BL460: {#CNTLR_LOCATION}: Disk array controller is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: a38ea92527b44599b690c068a62481ed + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.WARN}' + name: 'HPE ProLiant BL460: {#CNTLR_LOCATION}: Disk array controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant BL460: {#CNTLR_LOCATION}: Disk array controller is in critical state' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: cbcd697782e34a5e87cef72d65229a87 + name: 'FAN discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.7.1.9]' + key: fan.discovery + delay: 1h + description: 'CPQHLTH-MIB::cpqHeFltTolFanCondition' + item_prototypes: + - uuid: 02b11840d01245cfbac4e3a5264c713e + name: 'Fan {#SNMPINDEX}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.7.1.9.{#SNMPINDEX}]' + key: 'hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The condition of the fan. + This value will be one of the following: + other(1) Fan status detection is not supported by this system or driver. + ok(2) The fan is operating properly. + degraded(2) A redundant fan is not operating properly. + failed(4) A non-redundant fan is not operating properly. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: ab33e6666fd14aac8f703c72fd9b760e + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}' + name: 'HPE ProLiant BL460: Fan {#SNMPINDEX}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: available + - uuid: a9098b4dcbe04b3a82f0353f115345d7 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.WARN}' + name: 'HPE ProLiant BL460: Fan {#SNMPINDEX}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'HPE ProLiant BL460: Fan {#SNMPINDEX}: Fan is in critical state' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: dbe83d07252743f2bc889ce320730d78 + name: 'Network interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ADAPTER_INDEX},1.3.6.1.4.1.232.18.2.3.1.1.1,{#ADAPTER_NAME},1.3.6.1.4.1.232.18.2.3.1.1.39]' + key: net.if.discovery + delay: 1h + description: 'CPQIDA-MIB::cpqNicIfPhysAdapterTable' + item_prototypes: + - uuid: 1b446f4de8be4eeab2410756739eae6c + name: '{#ADAPTER_NAME} port {#ADAPTER_INDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.18.2.3.1.1.14.{#SNMPINDEX}]' + key: 'hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}]' + description: | + MIB: CPQNIC-MIB + The physical adapter status. The following values are valid: + unknown(1) + The instrument agent was not able to determine the status of the adapter. The instrument agent may need to be upgraded. + ok(2) + The physical adapter is operating properly. + generalFailure(3) + The physical adapter has failed. + linkFailure(4) + The physical adapter has lost link. Check the cable connections to this adapter. + valuemap: + name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 477f8237ed7c4d99af92e94f7563e01c + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3' + name: 'HPE ProLiant BL460: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the physical adapter.' + tags: + - tag: scope + value: available + - uuid: 5962382262854335bc42ae47203e44a7 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=4' + name: 'HPE ProLiant BL460: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has lost link' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the cable connections to this adapter.' + dependencies: + - name: 'HPE ProLiant BL460: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 4ec2950e764249dc9c091e92dbba4137 + name: 'Physical disk discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.5.1.1.5,{#DISK_LOCATION},1.3.6.1.4.1.232.3.2.5.1.1.64]' + key: physicaldisk.discovery + delay: 1h + description: 'Scanning table of physical drive entries CPQIDA-MIB::cpqDaPhyDrvTable.' + item_prototypes: + - uuid: 6ebfcb4a2bd44407920c47f060ec6307 + name: '{#DISK_LOCATION}: Physical disk media type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.69.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.media_type[cpqDaPhyDrvMediaType.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Drive Array Physical Drive Media Type. The following values are defined: + other(1) The instrument agent is unable to determine the physical drive's media type. + rotatingPlatters(2) The physical drive media is composed of rotating platters. + solidState(3) The physical drive media is composed of solid state electronics. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 6c59eaa90b964ad4b9f5a0511d620e9d + name: '{#DISK_LOCATION}: Physical disk model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.3.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.model[cpqDaPhyDrvModel.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Model. This is a text description of the physical drive. + The text that appears depends upon who manufactured the drive and the drive type. + If a drive fails, note the model to identify the type of drive necessary for replacement. + If a model number is not present, you may not have properly initialized the drive array to which the physical drive is attached for monitoring. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: f4f6e63dd1714c2ca721baebb478f5ab + name: '{#DISK_LOCATION}: Physical disk serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.51.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Serial Number. + This is the serial number assigned to the physical drive. + This value is based upon the serial number as returned by the SCSI inquiry command + but may have been modified due to space limitations. This can be used for identification purposes. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: d3dbef930bca4808ae3bf32ba84a987a + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#1)<>last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#2) and length(last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]))>0' + name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Disk has been replaced' + event_name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Disk has been replaced (new serial number received)' + priority: INFO + description: 'Disk serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: dee3a8bb94184bad80d058cb9ac3d324 + name: '{#DISK_LOCATION}: Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.45.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.size[cpqDaPhyDrvMediaType.{#SNMPINDEX}]' + trends: '0' + units: B + description: | + MIB: CPQIDA-MIB + Physical Drive Size in MB. + This is the size of the physical drive in megabytes. + This value is calculated using the value 1,048,576 (2^20) as a megabyte. + Drive manufacturers sometimes use the number 1,000,000 as a megabyte when giving drive capacities so this value may differ + from the advertised size of a drive. This field is only applicable for controllers which support SCSI drives, + and therefore is not supported by the IDA or IDA-2 controllers. The field will contain 0xFFFFFFFF if the drive capacity cannot be calculated + or if the controller does not support SCSI drives. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: e08b144330824b9f8a9df61f4e4016b4 + name: '{#DISK_LOCATION}: Physical disk S.M.A.R.T. status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.57.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive S.M.A.R.T Status. The following values are defined: + other(1) The agent is unable to determine if the status of S.M.A.R.T predictive failure monitoring for this drive. + ok(2) Indicates the drive is functioning properly. + replaceDrive(3) Indicates that the drive has a S.M.A.R.T predictive failure error and should be replaced. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 6fb9a3a867f74290974b106755763369 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Physical disk S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Physical disk failed' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + tags: + - tag: scope + value: available + - uuid: d0449cc58efb4258ba71e8d6837cab20 + name: '{#DISK_LOCATION}: Physical disk status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Status. This shows the status of the physical drive. The following values are valid for the physical drive status: + other (1) Indicates that the instrument agent does not recognize the drive. + You may need to upgrade your instrument agent and/or driver software. + ok (2) Indicates the drive is functioning properly. + failed (3) Indicates that the drive is no longer operating and should be replaced. + predictiveFailure(4) Indicates that the drive has a predictive failure error and should be replaced. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 21224423e69148a797e5ae4fcdda8ed5 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Physical disk failed' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: available + - uuid: ff246b7598f24ab88aa6e7119750e57b + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.WARN}' + name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Physical disk is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Physical disk failed' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 5b9a240a6b864513b2b0ac8a4f0a0c07 + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.9.3.1.5,{#CHASSIS_NUM},1.3.6.1.4.1.232.6.2.9.3.1.1,{#BAY_NUM},1.3.6.1.4.1.232.6.2.9.3.1.2]' + key: psu.discovery + delay: 1h + description: 'CPQHLTH-MIB::cpqHeFltTolPowerSupplyStatus' + item_prototypes: + - uuid: c49420a345664c719d9eb02f0ee866c1 + name: 'Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.9.3.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The condition of the power supply. This value will be one of the following: + other(1) The status could not be determined or not present. + ok(2) The power supply is operating normally. + degraded(3) A temperature sensor, fan or other power supply component is outside of normal operating range. + failed(4) A power supply component detects a condition that could permanently damage the system. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: c0976740671a4ee1b524b2be84eac05f + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}' + name: 'HPE ProLiant BL460: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: available + - uuid: 4245fe8df0ec42fb8698cd54810357d0 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.WARN}' + name: 'HPE ProLiant BL460: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'HPE ProLiant BL460: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 641f9eebbb134b34960f92037c694802 + name: 'Temperature ambient discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.ambient.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '11' + formulaid: A + - macro: '{#SNMPINDEX}' + value: 0\.1 + formulaid: B + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with ambient(11) and 0.1 index filter + item_prototypes: + - uuid: 6d81b9d2bfff4312810a50d340f8ba17 + name: 'Ambient: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 12ca340ef2cc4d639940375e84fc1384 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL460: Ambient: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 83775e86b0b6450399f0739bcd7aeb42 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL460: Ambient: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 1e61e8b2ba4346f2962a3498a147f65e + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL460: Ambient: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 1cfee00e1b4d49528589520036b4bf8d + name: 'Ambient: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Ambient.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: Ambient + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: aa4918f21cf14e2c94ac155ac3a0b0b4 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.cpu.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '6' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with cpu(6) filter + item_prototypes: + - uuid: 0fa15e127d03487cb4fbfaaaacf4fe96 + name: 'CPU-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: cpu + - tag: component + value: temperature + trigger_prototypes: + - uuid: b3b17ce8480f4ff5bbc4cba02e53190d + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL460: CPU-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1d2cc0b823134b9b901a0292e731f882 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL460: CPU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: c9edcad3712d4915a5a3700916621525 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL460: CPU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 4f67a2ca1b9d4b179770558df5b8edb7 + name: 'CPU-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.CPU.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: CPU-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: cpu + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: c3b3cfe6aa4c47d0ab66b9a969df85bd + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: (4|8|9|12|13) + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable + item_prototypes: + - uuid: 4f13e0a5d45e4847931829f9abd30795 + name: '{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 1978105618f44f439f40b7e6b7dbb5dc + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL460: {#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: feee1c3e792044ecbb07ffed47b2fddd + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL460: {#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 250291ba7b404dd287b14034145d7ee0 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL460: {#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: c21a7b49d03f4b2e9c532777d4931236 + name: '{#SNMPINDEX}: Temperature sensor location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.3.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.locale[cpqHeTemperatureLocale.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + This specifies the location of the temperature sensor present in the system. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureLocale' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + - uuid: 8ac8567f26884cab9d175d9f9934d575 + name: '{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: {#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: be33f30661ba4c3e88ace96906b0a74c + name: 'Temperature I/O discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.io.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '5' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with ioBoard(5) filter + item_prototypes: + - uuid: 0addee41af6e489fbf2a9747d9cab50e + name: 'I/O-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 2d06da621e5946ea88bf158cabd4fcbd + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 1' + name: 'HPE ProLiant BL460: I/O-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5ca16e1ea7d84aa7bed31ba05f7df50e + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 4' + name: 'HPE ProLiant BL460: I/O-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 8a2468bf1cd14065af733b0d045c6031 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 3' + name: 'HPE ProLiant BL460: I/O-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 2fa250ea6f1e472d9e90984d0918c50d + name: 'I/O-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius."I/O.{#SNMPINDEX}"]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: I/O-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: d4dc4e4e6fab415baae36e98877205c5 + name: 'Temperature memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.memory.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '7' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with memory(7) filter + item_prototypes: + - uuid: 8468b9ca183e44569f6d467f7d103b11 + name: 'Memory-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + - tag: component + value: temperature + trigger_prototypes: + - uuid: 997f65c5ee1d473dbe22a8517091cf3e + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL460: Memory-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8c3b5591160e4797ae1b49f9f14439ff + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL460: Memory-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 8665b434ba594073bc55f44b668dcee0 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL460: Memory-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 7441c5de35fd4ff2b6a20c1896525bd4 + name: 'Memory-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Memory.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: Memory-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 6df0ad42b4c74a19b9bdfc240db626bb + name: 'Temperature PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.psu.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '10' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with powerSupply(10) filter + item_prototypes: + - uuid: 222d768e05d442ecb12a4cc83100438d + name: 'PSU-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + - tag: component + value: temperature + trigger_prototypes: + - uuid: a292c5aaa1b3428aa4b011854d9c5e1d + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL460: PSU-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f557d93b186b42b4931e23640e54648f + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL460: PSU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: e3cac6176199401181fbbeacf4838bad + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL460: PSU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: ca1e5c260caa48368fa299a9dc007512 + name: 'PSU-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.PSU.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: PSU-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: dfa25ab78aab4cf081e3857f2a40dee4 + name: 'Temperature system discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.system.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '3' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with system(3) filter + item_prototypes: + - uuid: 10f22e6ea868460c98cc97f24a6c83e4 + name: 'System-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 1bad1b13dcdf4689b9a784e44726196b + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL460: System-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 42fff974036d4fb6b9181adf1b3efa09 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL460: System-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: d184f774ab614a0b9f1f7ebc82cd1356 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL460: System-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: e25f6cbbb1d444ff851895b37dfcde5d + name: 'System-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.System.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: System-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 92ab660734234833adfe7108df529c24 + name: 'Virtual disk discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.3.1.1.2,{#DISK_NAME},1.3.6.1.4.1.232.3.2.3.1.1.14]' + key: virtualdisk.discovery + delay: 1h + description: 'CPQIDA-MIB::cpqDaLogDrvTable' + item_prototypes: + - uuid: a468686d8de44b958b26a69b4c8d11ed + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Layout type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.3.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.layout[cpqDaLogDrvFaultTol.{#SNMPINDEX}]' + description: | + Logical Drive Fault Tolerance. + This shows the fault tolerance mode of the logical drive. + valuemap: + name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 1e890df502e04b5ba34b3ddc8d9aea57 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.9.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.size[cpqDaLogDrvSize.{#SNMPINDEX}]' + trends: '0' + units: B + description: | + Logical Drive Size. + This is the size of the logical drive in megabytes. This value + is calculated using the value 1,048,576 (2^20) as a megabyte. + Drive manufacturers sometimes use the number 1,000,000 as a + megabyte when giving drive capacities so this value may + differ from the advertised size of a drive. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 3702a04cf01a4390805535af4f0b8172 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.4.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}]' + description: 'Logical Drive Status.' + valuemap: + name: 'CPQIDA-MIB::cpqDaLogDrvStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: e11c5781a34642c49ad15cdcd71dacc3 + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}' + name: 'HPE ProLiant BL460: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check virtual disk for warnings or errors.' + tags: + - tag: scope + value: available + - uuid: 10f0bdba64184a9389a46b9bab18719a + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])<>{$VDISK.STATUS.OK}' + name: 'HPE ProLiant BL460: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk is not in OK state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check virtual disk for warnings or errors.' + dependencies: + - name: 'HPE ProLiant BL460: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed' + expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: hp + - tag: target + value: hp-bl460 + macros: + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + value: '7' + description: 'The critical status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"}' + value: '4' + description: 'The critical status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}' + value: '5' + description: 'The warning status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"notPresent"}' + value: '6' + description: 'The warning status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + value: '8' + description: 'The critical status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"}' + value: '3' + description: 'The normal status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"}' + value: '7' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + value: '6' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"}' + value: '9' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}' + value: '2' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.CRIT}' + value: '4' + description: 'The critical status of the disk array for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.WARN}' + value: '3' + description: 'The warning status of the disk array for trigger expression.' + - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDrive"}' + value: '3' + description: 'The critical S.M.A.R.T status of the disk for trigger expression.' + - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + value: '4' + description: 'The critical S.M.A.R.T status of the disk for trigger expression.' + - macro: '{$DISK.STATUS.FAIL}' + value: '3' + description: 'The critical status of the disk for trigger expression.' + - macro: '{$DISK.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk for trigger expression.' + - macro: '{$FAN.STATUS.CRIT}' + value: '4' + description: 'The critical value of the FAN sensor for trigger expression.' + - macro: '{$FAN.STATUS.WARN}' + value: '3' + description: 'The warning value of the FAN sensor for trigger expression.' + - macro: '{$HEALTH.STATUS.CRIT}' + value: '4' + description: 'The critical status of the health for trigger expression.' + - macro: '{$HEALTH.STATUS.WARN}' + value: '3' + description: 'The warning status of the health for trigger expression.' + - macro: '{$PSU.STATUS.CRIT}' + value: '4' + description: 'The critical value of the PSU sensor for trigger expression.' + - macro: '{$PSU.STATUS.WARN}' + value: '3' + description: 'The warning value of the PSU sensor for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$VDISK.STATUS.CRIT}' + value: '3' + description: 'The critical status of the virtual disk for trigger expression.' + - macro: '{$VDISK.STATUS.OK}' + value: '2' + description: 'The normal status of the virtual disk for trigger expression.' + valuemaps: + - uuid: 1b67de295fef454cb89744b101cf5a19 + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: degraded + - value: '4' + newvalue: failed + - uuid: 07d063dcbb3d4f1a8642bfd93afcd327 + name: 'CPQHLTH-MIB::cpqHeTemperatureLocale' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: system + - value: '4' + newvalue: systemBoard + - value: '5' + newvalue: ioBoard + - value: '6' + newvalue: cpu + - value: '7' + newvalue: memory + - value: '8' + newvalue: storage + - value: '9' + newvalue: removableMedia + - value: '10' + newvalue: powerSupply + - value: '11' + newvalue: ambient + - value: '12' + newvalue: chassis + - value: '13' + newvalue: bridgeCard + - uuid: 009fd99d3734459285fa037c4a0ca201 + name: 'CPQIDA-MIB::cpqDaAccelBattery' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: Ok + - value: '3' + newvalue: Recharging + - value: '4' + newvalue: Failed + - value: '5' + newvalue: Degraded + - value: '6' + newvalue: 'Not Present' + - value: '7' + newvalue: 'Capacitor failed' + - uuid: e138320082fc4aa69f3b23dad80272b2 + name: 'CPQIDA-MIB::cpqDaAccelStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: invalid + - value: '3' + newvalue: enabled + - value: '4' + newvalue: tmpDisabled + - value: '5' + newvalue: permDisabled + - value: '6' + newvalue: cacheModFlashMemNotAttached + - value: '7' + newvalue: cacheModDegradedFailsafeSpeed + - value: '8' + newvalue: cacheModCriticalFailure + - value: '9' + newvalue: cacheReadCacheNotMapped + - uuid: 4891472973f84343ade2c5b61d96fcef + name: 'CPQIDA-MIB::cpqDaCntlrModel' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ida + - value: '3' + newvalue: idaExpansion + - value: '4' + newvalue: ida-2 + - value: '5' + newvalue: smart + - value: '6' + newvalue: smart-2e + - value: '7' + newvalue: smart-2p + - value: '8' + newvalue: smart-2sl + - value: '9' + newvalue: smart-3100es + - value: '10' + newvalue: smart-3200 + - value: '11' + newvalue: smart-2dh + - value: '12' + newvalue: smart-221 + - value: '13' + newvalue: sa-4250es + - value: '14' + newvalue: sa-4200 + - value: '15' + newvalue: sa-integrated + - value: '16' + newvalue: sa-431 + - value: '17' + newvalue: sa-5300 + - value: '18' + newvalue: raidLc2 + - value: '19' + newvalue: sa-5i + - value: '20' + newvalue: sa-532 + - value: '21' + newvalue: sa-5312 + - value: '22' + newvalue: sa-641 + - value: '23' + newvalue: sa-642 + - value: '24' + newvalue: sa-6400 + - value: '25' + newvalue: sa-6400em + - value: '26' + newvalue: sa-6i + - value: '27' + newvalue: sa-generic + - value: '29' + newvalue: sa-p600 + - value: '30' + newvalue: sa-p400 + - value: '31' + newvalue: sa-e200 + - value: '32' + newvalue: sa-e200i + - value: '33' + newvalue: sa-p400i + - value: '34' + newvalue: sa-p800 + - value: '35' + newvalue: sa-e500 + - value: '36' + newvalue: sa-p700m + - value: '37' + newvalue: sa-p212 + - value: '38' + newvalue: sa-p410 + - value: '39' + newvalue: sa-p410i + - value: '40' + newvalue: sa-p411 + - value: '41' + newvalue: sa-b110i + - value: '42' + newvalue: sa-p712m + - value: '43' + newvalue: sa-p711m + - value: '44' + newvalue: sa-p812 + - value: '45' + newvalue: sw-1210m + - value: '46' + newvalue: sa-p220i + - value: '47' + newvalue: sa-p222 + - value: '48' + newvalue: sa-p420 + - value: '49' + newvalue: sa-p420i + - value: '50' + newvalue: sa-p421 + - value: '51' + newvalue: sa-b320i + - value: '52' + newvalue: sa-p822 + - value: '53' + newvalue: sa-p721m + - value: '54' + newvalue: sa-b120i + - value: '55' + newvalue: hps-1224 + - value: '56' + newvalue: hps-1228 + - value: '57' + newvalue: hps-1228m + - value: '58' + newvalue: sa-p822se + - value: '59' + newvalue: hps-1224e + - value: '60' + newvalue: hps-1228e + - value: '61' + newvalue: hps-1228em + - value: '62' + newvalue: sa-p230i + - value: '63' + newvalue: sa-p430i + - value: '64' + newvalue: sa-p430 + - value: '65' + newvalue: sa-p431 + - value: '66' + newvalue: sa-p731m + - value: '67' + newvalue: sa-p830i + - value: '68' + newvalue: sa-p830 + - value: '69' + newvalue: sa-p831 + - value: '70' + newvalue: sa-p530 + - value: '71' + newvalue: sa-p531 + - value: '72' + newvalue: sa-p244br + - value: '73' + newvalue: sa-p246br + - value: '74' + newvalue: sa-p440 + - value: '75' + newvalue: sa-p440ar + - value: '76' + newvalue: sa-p441 + - value: '77' + newvalue: sa-p741m + - value: '78' + newvalue: sa-p840 + - value: '79' + newvalue: sa-p841 + - value: '80' + newvalue: sh-h240ar + - value: '81' + newvalue: sh-h244br + - value: '82' + newvalue: sh-h240 + - value: '83' + newvalue: sh-h241 + - value: '84' + newvalue: sa-b140i + - value: '85' + newvalue: sh-generic + - value: '86' + newvalue: sa-p240nr + - value: '87' + newvalue: sh-h240nr + - value: '88' + newvalue: sa-p840ar + - value: '89' + newvalue: sa-p542d + - value: '90' + newvalue: s100i + - value: '91' + newvalue: e208i-p + - value: '92' + newvalue: e208i-a + - value: '93' + newvalue: e208i-c + - value: '94' + newvalue: e208e-p + - value: '95' + newvalue: p204i-b + - value: '96' + newvalue: p204i-c + - value: '97' + newvalue: p408i-p + - value: '98' + newvalue: p408i-a + - value: '99' + newvalue: p408e-p + - value: '100' + newvalue: p408i-c + - value: '101' + newvalue: p408e-m + - value: '102' + newvalue: p416ie-m + - value: '103' + newvalue: p816i-a + - value: '104' + newvalue: p408i-sb + - uuid: a368b7472246477599d6278df8348bc9 + name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol' + mappings: + - value: '0' + newvalue: other + - value: '2' + newvalue: none + - value: '3' + newvalue: RAID-1/RAID-10 + - value: '4' + newvalue: RAID-4 + - value: '5' + newvalue: RAID-5 + - value: '7' + newvalue: RAID-6 + - value: '8' + newvalue: RAID-50 + - value: '9' + newvalue: RAID-60 + - value: '10' + newvalue: 'RAID-1 ADM' + - value: '11' + newvalue: 'RAID-10 ADM' + - uuid: aab16842347c4e58b9bbee274dad3c62 + name: 'CPQIDA-MIB::cpqDaLogDrvStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: failed + - value: '4' + newvalue: unconfigured + - value: '5' + newvalue: recovering + - value: '6' + newvalue: readyForRebuild + - value: '7' + newvalue: rebuilding + - value: '8' + newvalue: wrongDrive + - value: '9' + newvalue: badConnect + - value: '10' + newvalue: overheating + - value: '11' + newvalue: shutdown + - value: '12' + newvalue: expanding + - value: '13' + newvalue: notAvailable + - value: '14' + newvalue: queuedForExpansion + - value: '15' + newvalue: multipathAccessDegraded + - value: '16' + newvalue: erasing + - value: '17' + newvalue: predictiveSpareRebuildReady + - value: '18' + newvalue: rapidParityInitInProgress + - value: '19' + newvalue: rapidParityInitPending + - value: '20' + newvalue: noAccessEncryptedNoCntlrKey + - value: '21' + newvalue: unencryptedToEncryptedInProgress + - value: '22' + newvalue: newLogDrvKeyRekeyInProgress + - value: '23' + newvalue: noAccessEncryptedCntlrEncryptnNotEnbld + - value: '24' + newvalue: unencryptedToEncryptedNotStarted + - value: '25' + newvalue: newLogDrvKeyRekeyRequestReceived + - uuid: b3b110016c8c4272b9228161798a9bbd + name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: rotatingPlatters + - value: '3' + newvalue: solidState + - uuid: 5b016d244c6845f7afcc80361aec2af1 + name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: replaceDrive + - value: '4' + newvalue: replaceDriveSSDWearOut + - uuid: 2f4e1eb1f32847b3808372d02f752575 + name: 'CPQIDA-MIB::cpqDaPhyDrvStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: failed + - value: '4' + newvalue: predictiveFailure + - uuid: 3fe7ff0237a54f6cae3a1b8ffdabf157 + name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: ok + - value: '3' + newvalue: generalFailure + - value: '4' + newvalue: linkFailure + - uuid: 342d09a1cfe543b9ac1555daee9f2235 + name: 'CPQSINFO-MIB::status' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: degraded + - value: '4' + newvalue: failed + - uuid: c57a256a525b46b0a1d0646200de57e2 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 9159ee66dbe4498cba29daca24ddcb5f + expression: '(last(/HPE ProLiant BL460 by SNMP/hp.server.hw.uptime[hrSystemUptime])>0 and last(/HPE ProLiant BL460 by SNMP/hp.server.hw.uptime[hrSystemUptime])<10m) or (last(/HPE ProLiant BL460 by SNMP/hp.server.hw.uptime[hrSystemUptime])=0 and last(/HPE ProLiant BL460 by SNMP/hp.server.net.uptime[sysUpTime])<10m)' + name: 'HPE ProLiant BL460: Host has been restarted' + event_name: 'HPE ProLiant BL460: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/HPE_ProLiant_BL920_by_SNMP.yaml b/HPE_ProLiant_BL920_by_SNMP.yaml new file mode 100644 index 0000000..1bbd6b5 --- /dev/null +++ b/HPE_ProLiant_BL920_by_SNMP.yaml @@ -0,0 +1,2202 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 586119e5e27e4062a3cce8601ecb8d71 + template: 'HPE ProLiant BL920 by SNMP' + name: 'HPE ProLiant BL920 by SNMP' + description: | + Template for HPE ProLiant BL920 servers with HP iLO version 4 and later. + + MIBs used: + HOST-RESOURCES-MIB + CPQHLTH-MIB + SNMPv2-MIB + CPQNIC-MIB + CPQSINFO-MIB + CPQIDA-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 1831d0a9399d4e41a0fd1dc392241640 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'hp.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 342a1fb4781d4f4fbafa7728f0c54d44 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'hp.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 1b4a890c4d244ce7920193f2fcd34cd0 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.2.2.4.2.0]' + key: 'hp.server.hw.model[cpqSiProductName]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQSINFO-MIB + The machine product name. The name of the machine used in this system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: e0da21845f8b49fd8c4471db20cf7a31 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.2.2.2.1.0]' + key: 'hp.server.hw.serialnumber[cpqSiSysSerialNum]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQSINFO-MIB + The serial number of the physical system unit. The string will be empty if the system does not report the serial number function. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 9eb77df5f95149e49d63a7191e68756c + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#1)<>last(/HPE ProLiant BL920 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#2) and length(last(/HPE ProLiant BL920 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum]))>0' + name: 'HPE ProLiant BL920: Device has been replaced' + event_name: 'HPE ProLiant BL920: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5cd1e01b10f3482e9ec5907bd2e55c26 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'hp.server.hw.uptime[hrSystemUptime]' + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: fa3cec21b4a64ba9990bb2adaaba8a00 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'hp.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 01bf2613057541b082320fa81b07636f + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'hp.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: c0eed9d2eccc4ae99128a318de92df8d + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.name[sysName],#1)<>last(/HPE ProLiant BL920 by SNMP/hp.server.name[sysName],#2) and length(last(/HPE ProLiant BL920 by SNMP/hp.server.name[sysName]))>0' + name: 'HPE ProLiant BL920: System name has changed' + event_name: 'HPE ProLiant BL920: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 244691064ba54bf186a44219077fc804 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'hp.server.net.uptime[sysUpTime]' + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: abb51a946f5d4ee09895bef2e1df0fa6 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'hp.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 2a1af5ba5ee643c7b63e5eae10703e9c + name: 'System temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.1.0]' + key: 'hp.server.sensor.temp.status[cpqHeThermalCondition]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + This value specifies the overall condition of the system's thermal environment. + This value will be one of the following: + other(1) Temperature could not be determined. + ok(2) The temperature sensor is within normal operating range. + degraded(3) The temperature sensor is outside of normal operating range. + failed(4) The temperature sensor detects a condition that could permanently damage the system. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + - uuid: 4b05f7e3700440ee81cb38851c561a09 + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.1.3.0]' + key: 'hp.server.status[cpqHeMibCondition]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The overall condition. This object represents the overall status of the server information represented by this MIB. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 187f7a3872a2481f962f16c422911827 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}' + name: 'HPE ProLiant BL920: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for errors.' + tags: + - tag: scope + value: available + - uuid: 51c633cbed0d4684b2e0619e2f0ab64d + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.WARN}' + name: 'HPE ProLiant BL920: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'HPE ProLiant BL920: System status is in critical state' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: available + - uuid: 356100e223784f398701839a2e74b6ff + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items.' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 1924b196b0af4b0ba91519187bf22c78 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 35cce5a461c04163a0575d7f831ea3d9 + expression: 'max(/HPE ProLiant BL920 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'HPE ProLiant BL920: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: available + discovery_rules: + - uuid: 89fa0f7fbaf0442dae2994c94cc9ec01 + name: 'Array controller cache discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CACHE_STATUS},1.3.6.1.4.1.232.3.2.2.2.1.2,{#CACHE_CNTRL_INDEX},1.3.6.1.4.1.232.3.2.2.2.1.1]' + key: array.cache.discovery + delay: 1h + description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaAccelTable' + item_prototypes: + - uuid: 8217a74bab1c4d31bc504d772ec3d98e + name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Cache Module Board Backup Power Status. This monitors the status of each backup power source on the board. + The backup power source can only recharge when the system has power applied. The type of backup power source used is indicated by cpqDaAccelBackupPowerSource. + The following values are valid: + Other (1) Indicates that the instrument agent does not recognize backup power status. You may need to update your software. + + Ok (2) The backup power source is fully charged. + + Recharging (3) The array controller has one or more cache module backup power sources that are recharging. + Cache module operations such as Battery/Flash Backed Write Cache, Expansion, Extension and Migration are temporarily suspended until the backup power source is fully charged. + Cache module operations will automatically resume when charging is complete. + + Failed (4) The battery pack is below the sufficient voltage level and has not recharged in 36 hours. + Your Cache Module board needs to be serviced. + + Degraded (5) The battery is still operating, however, one of the batteries in the pack has failed to recharge properly. + Your Cache Module board should be serviced as soon as possible. + + NotPresent (6) A backup power source is not present on the cache module board. Some controllers do not have backup power sources. + + Capacitor Failed (7) The flash backed cache module capacitor is below the sufficient voltage level and has not recharged in 10 minutes. Your Cache Module board needs to be serviced. + valuemap: + name: 'CPQIDA-MIB::cpqDaAccelBattery' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 507e925180034f2d97d09f9fd5c9e311 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: 20625bb4b0b74d98818685991ac5df66 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}' + name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + tags: + - tag: scope + value: available + - uuid: f96da82cf6da49a7a7d0d5240096f4f4 + name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.2.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Cache Module/Operations Status. This describes the status of the cache module and/or cache operations. + Note that for some controller models, a cache module board that physically attaches to the controller or chipset may not be an available option. + + The status can be: + Other (1) + Indicates that the instrument agent does not recognize the status of the cache module. You may need to upgrade the instrument agent. + + Invalid (2) + Indicates that a cache module board has not been installed in this system or is present but not configured. + + Enabled (3) + Indicates that cache operations are currently configured and enabled for at least one logical drive. + + Temporarily Disabled (4) + Indicates that cache operations have been temporarily disabled. View the cache module board error code object to determine why the write cache operations have been temporarily disabled. + + Permanently Disabled (5) + Indicates that cache operations have been permanently disabled. View the cache module board error code object to determine why the write cache operations have been disabled. + + Cache Module Flash Memory Not Attached (6) + Indicates that the flash memory component of the flash backed cache module is not attached. This status will be set when the flash memory is not attached and the Supercap is attached. This value is only used on flash backed cache modules that support removable flash memory. + + Cache Module Degraded Failsafe Speed (7) + Indicates that the cache module board is currently degraded and operating at a failsafe speed. View variables cpqDaCacheMemoryDataWidth and cpqDaCacheMemoryTransferRate to obtain the cache module board`s current memory data width and memory transfer rate. + + Cache Module Critical Failure (8) + Indicates that the cache module board has encountered a critical failure. The controller is currently operating in Zero Memory Raid mode. + + Read Cache Could Not Be Mapped (9) + Indicates that the read cache memory in a split cache configuration could not be mapped by the operating system and as a result is not available. This status may be caused by virtual space limitations in certain operating systems and is only applicable to B-Series controllers. + valuemap: + name: 'CPQIDA-MIB::cpqDaAccelStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: a470d994b661401882162dc2267eaa3d + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: 5d0fd4a9b8bc49aaaeb213b310b85606 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + tags: + - tag: scope + value: available + - uuid: 1efe26e2e6a8404b86143b3fea812f23 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"} and last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}' + name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + - name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b0ef0784a3e6410c965d421e21cb8570 + name: 'Array controller discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.2.1.1.1,{#CNTLR_SLOT},1.3.6.1.4.1.232.3.2.2.1.1.5,{#CNTLR_LOCATION},1.3.6.1.4.1.232.3.2.2.1.1.20]' + key: array.discovery + delay: 1h + description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaCntlrTable' + item_prototypes: + - uuid: 4da3c6124f044cb18ee51874f385309f + name: '{#CNTLR_LOCATION}: Disk array controller model' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.2.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.model[cpqDaCntlrModel.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Array Controller Model. The type of controller card. + valuemap: + name: 'CPQIDA-MIB::cpqDaCntlrModel' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: acf2b673f18f40e292301402994c1f99 + name: '{#CNTLR_LOCATION}: Disk array controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + This value represents the overall condition of this controller, + and any associated logical drives, physical drives, and array accelerators. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: a8c87ea0b6ba42e7ba6f97a2441237bb + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}' + name: 'HPE ProLiant BL920: {#CNTLR_LOCATION}: Disk array controller is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: 1cb40d36fda945df940c39f0ea1adf22 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.WARN}' + name: 'HPE ProLiant BL920: {#CNTLR_LOCATION}: Disk array controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant BL920: {#CNTLR_LOCATION}: Disk array controller is in critical state' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: af4174c63f3d4bf2b0ca523c195b56d8 + name: 'FAN discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.7.1.9]' + key: fan.discovery + delay: 1h + description: 'CPQHLTH-MIB::cpqHeFltTolFanCondition' + item_prototypes: + - uuid: c92f5ccc44b3466ea824cef2371e5226 + name: 'Fan {#SNMPINDEX}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.7.1.9.{#SNMPINDEX}]' + key: 'hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The condition of the fan. + This value will be one of the following: + other(1) Fan status detection is not supported by this system or driver. + ok(2) The fan is operating properly. + degraded(2) A redundant fan is not operating properly. + failed(4) A non-redundant fan is not operating properly. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: c2a1f0726e6e46658bf236c7daea432c + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}' + name: 'HPE ProLiant BL920: Fan {#SNMPINDEX}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: available + - uuid: f8e66a8a7df84962be215388d6fd567b + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.WARN}' + name: 'HPE ProLiant BL920: Fan {#SNMPINDEX}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'HPE ProLiant BL920: Fan {#SNMPINDEX}: Fan is in critical state' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 32f1d3333d314ac28bd85b6d5d2a97d0 + name: 'Network interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ADAPTER_INDEX},1.3.6.1.4.1.232.18.2.3.1.1.1,{#ADAPTER_NAME},1.3.6.1.4.1.232.18.2.3.1.1.39]' + key: net.if.discovery + delay: 1h + description: 'CPQIDA-MIB::cpqNicIfPhysAdapterTable' + item_prototypes: + - uuid: 30d1913dc3484b8596a0a600e68f2e6f + name: '{#ADAPTER_NAME} port {#ADAPTER_INDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.18.2.3.1.1.14.{#SNMPINDEX}]' + key: 'hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}]' + description: | + MIB: CPQNIC-MIB + The physical adapter status. The following values are valid: + unknown(1) + The instrument agent was not able to determine the status of the adapter. The instrument agent may need to be upgraded. + ok(2) + The physical adapter is operating properly. + generalFailure(3) + The physical adapter has failed. + linkFailure(4) + The physical adapter has lost link. Check the cable connections to this adapter. + valuemap: + name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 880d8c11080043f4a1b8e31823bee081 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3' + name: 'HPE ProLiant BL920: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the physical adapter.' + tags: + - tag: scope + value: available + - uuid: 7894c073515c42abac3a3704acaf124c + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=4' + name: 'HPE ProLiant BL920: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has lost link' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the cable connections to this adapter.' + dependencies: + - name: 'HPE ProLiant BL920: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 174f8fc9db6e4484a3f2c5f27def0b13 + name: 'Physical disk discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.5.1.1.5,{#DISK_LOCATION},1.3.6.1.4.1.232.3.2.5.1.1.64]' + key: physicaldisk.discovery + delay: 1h + description: 'Scanning table of physical drive entries CPQIDA-MIB::cpqDaPhyDrvTable.' + item_prototypes: + - uuid: 1e7dcaf5ef404bcbadaa2042895fc23c + name: '{#DISK_LOCATION}: Physical disk media type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.69.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.media_type[cpqDaPhyDrvMediaType.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Drive Array Physical Drive Media Type. The following values are defined: + other(1) The instrument agent is unable to determine the physical drive's media type. + rotatingPlatters(2) The physical drive media is composed of rotating platters. + solidState(3) The physical drive media is composed of solid state electronics. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 8a1551e94dca47d5b90b31d474e01d0f + name: '{#DISK_LOCATION}: Physical disk model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.3.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.model[cpqDaPhyDrvModel.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Model. This is a text description of the physical drive. + The text that appears depends upon who manufactured the drive and the drive type. + If a drive fails, note the model to identify the type of drive necessary for replacement. + If a model number is not present, you may not have properly initialized the drive array to which the physical drive is attached for monitoring. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 4c1f6a97a6314ca4ab1bb6b7210b963c + name: '{#DISK_LOCATION}: Physical disk serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.51.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Serial Number. + This is the serial number assigned to the physical drive. + This value is based upon the serial number as returned by the SCSI inquiry command + but may have been modified due to space limitations. This can be used for identification purposes. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 97b42a2ce49f4a1786cfa8db1f6477ac + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#1)<>last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#2) and length(last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]))>0' + name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Disk has been replaced' + event_name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Disk has been replaced (new serial number received)' + priority: INFO + description: 'Disk serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e54d9d7984974d28aa7a0ba52aec9362 + name: '{#DISK_LOCATION}: Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.45.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.size[cpqDaPhyDrvMediaType.{#SNMPINDEX}]' + trends: '0' + units: B + description: | + MIB: CPQIDA-MIB + Physical Drive Size in MB. + This is the size of the physical drive in megabytes. + This value is calculated using the value 1,048,576 (2^20) as a megabyte. + Drive manufacturers sometimes use the number 1,000,000 as a megabyte when giving drive capacities so this value may differ + from the advertised size of a drive. This field is only applicable for controllers which support SCSI drives, + and therefore is not supported by the IDA or IDA-2 controllers. The field will contain 0xFFFFFFFF if the drive capacity cannot be calculated + or if the controller does not support SCSI drives. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 293938d45e7a4022ac8ae31aaa4ec462 + name: '{#DISK_LOCATION}: Physical disk S.M.A.R.T. status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.57.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive S.M.A.R.T Status. The following values are defined: + other(1) The agent is unable to determine if the status of S.M.A.R.T predictive failure monitoring for this drive. + ok(2) Indicates the drive is functioning properly. + replaceDrive(3) Indicates that the drive has a S.M.A.R.T predictive failure error and should be replaced. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: fdd888b4e72344eda1845fdfe7d261e4 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Physical disk S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Physical disk failed' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + tags: + - tag: scope + value: available + - uuid: 0b566ca9b2df4a20a053b49a26f7be9a + name: '{#DISK_LOCATION}: Physical disk status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Status. This shows the status of the physical drive. The following values are valid for the physical drive status: + other (1) Indicates that the instrument agent does not recognize the drive. + You may need to upgrade your instrument agent and/or driver software. + ok (2) Indicates the drive is functioning properly. + failed (3) Indicates that the drive is no longer operating and should be replaced. + predictiveFailure(4) Indicates that the drive has a predictive failure error and should be replaced. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 1e8640dc080c4d19a94c6fcda2451cfb + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Physical disk failed' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: available + - uuid: 74eef1a7f26145d7963d8801c8a625e7 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.WARN}' + name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Physical disk is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Physical disk failed' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 569998dd6c56424494154225b295a069 + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.9.3.1.5,{#CHASSIS_NUM},1.3.6.1.4.1.232.6.2.9.3.1.1,{#BAY_NUM},1.3.6.1.4.1.232.6.2.9.3.1.2]' + key: psu.discovery + delay: 1h + description: 'CPQHLTH-MIB::cpqHeFltTolPowerSupplyStatus' + item_prototypes: + - uuid: ff3fc376d95c49e1aba66f253d1a12be + name: 'Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.9.3.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The condition of the power supply. This value will be one of the following: + other(1) The status could not be determined or not present. + ok(2) The power supply is operating normally. + degraded(3) A temperature sensor, fan or other power supply component is outside of normal operating range. + failed(4) A power supply component detects a condition that could permanently damage the system. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: a256fdd66c0043dfb337163bcf0c5ebe + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}' + name: 'HPE ProLiant BL920: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: available + - uuid: 18e8aca665b34fb5a2af5d94cdd40f84 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.WARN}' + name: 'HPE ProLiant BL920: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'HPE ProLiant BL920: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 5442309de7164104b132c29ab74eeb96 + name: 'Temperature ambient discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.ambient.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '11' + formulaid: A + - macro: '{#SNMPINDEX}' + value: 0\.1 + formulaid: B + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with ambient(11) and 0.1 index filter + item_prototypes: + - uuid: 30ed5199c6d24757962c807d8c28cfa5 + name: 'Ambient: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 74b07fcf8ef34e20a142ae11f6dbfeb4 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL920: Ambient: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0df275f3b0dd4c6d93936b39a88052fa + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL920: Ambient: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 1052d51569c543619e38b48318baaa29 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL920: Ambient: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 5d5b689724804879b40cc60dc31502b0 + name: 'Ambient: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Ambient.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: Ambient + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 2478800b0f934fe99ae1f8a3306dec75 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.cpu.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '6' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with cpu(6) filter + item_prototypes: + - uuid: 1c8d32dcd5a34b51bf56adb150f84619 + name: 'CPU-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: cpu + - tag: component + value: temperature + trigger_prototypes: + - uuid: 602bbb3e632540d4a46830c2c67d3b1c + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL920: CPU-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 25ea3db9def64b21b08f25f019c15fbd + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL920: CPU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: f5ecaae4989f4e249138916b3657210d + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL920: CPU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 9c764d85eefb4693a8eb0e0a7ee14b44 + name: 'CPU-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.CPU.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: CPU-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: cpu + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3112cda4ca9c4e1cb51f9b02d0c08bf8 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: (4|8|9|12|13) + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable + item_prototypes: + - uuid: 9496137d5d614b63a5eee07316c653b2 + name: '{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 6ea76d08b1e64364b15a9daa95c72d7c + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL920: {#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6287b204066e47d68871bc0783840b4c + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL920: {#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 8010259635ef4d92af61e935c9f62ff7 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL920: {#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: f9e29891384a4691b3350478720a6035 + name: '{#SNMPINDEX}: Temperature sensor location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.3.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.locale[cpqHeTemperatureLocale.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + This specifies the location of the temperature sensor present in the system. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureLocale' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + - uuid: 0958391cde3a43c9a9ad581f61b1dba4 + name: '{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: {#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: d4a7f83a79c54b43b0e862d253893d14 + name: 'Temperature I/O discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.io.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '5' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with ioBoard(5) filter + item_prototypes: + - uuid: 5d432d216c664b35b1ac61ce4161d786 + name: 'I/O-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 5f7818d02b764218a481e59cbcfe5fd7 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 1' + name: 'HPE ProLiant BL920: I/O-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: fffdfe1c6d254f3fb096ab0561705223 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 4' + name: 'HPE ProLiant BL920: I/O-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: a00a767a3b8349c2846139a6c76f826d + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 3' + name: 'HPE ProLiant BL920: I/O-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: fb07d42fb35f474687e3c294f1766acf + name: 'I/O-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius."I/O.{#SNMPINDEX}"]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: I/O-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3753e9accb0147a5a5a0c85b381c156a + name: 'Temperature memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.memory.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '7' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with memory(7) filter + item_prototypes: + - uuid: 01300fcd5a3743a89abebc8995f02b08 + name: 'Memory-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + - tag: component + value: temperature + trigger_prototypes: + - uuid: 78d936059d744eae8be8150dab2a6e5e + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL920: Memory-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a6db4978fa834a7facd46a76f45f92a3 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL920: Memory-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: ee7cbf1997ca476283e3301856d22a5a + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL920: Memory-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 74f92cc323d74e90b03779f216b69d33 + name: 'Memory-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Memory.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: Memory-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 4badf00f164b4490820c1ad090000cf2 + name: 'Temperature PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.psu.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '10' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with powerSupply(10) filter + item_prototypes: + - uuid: 8ece285778c0465ab222ea6e9a88c694 + name: 'PSU-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + - tag: component + value: temperature + trigger_prototypes: + - uuid: 809aea1302064232a321c12f2256414f + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL920: PSU-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b70bb5f4fe4b4d3bb6fa7027200f2b25 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL920: PSU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: a4e3939f59a64dbfab377f68a62fa26b + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL920: PSU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 00be792e728e48128eedcb3e1aa1a239 + name: 'PSU-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.PSU.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: PSU-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: aa477ce470d842e28481360fd01984f8 + name: 'Temperature system discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.system.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '3' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with system(3) filter + item_prototypes: + - uuid: f62552cf4ca64a6e801b127e956205fe + name: 'System-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 6848521afcb54d72b136ee53176bc01d + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant BL920: System-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6b15c19600f9433093aa8d7d624fb623 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant BL920: System-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 407c07a6d4f94ca1a8cf1f9db9d685db + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant BL920: System-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 468c378de2674fa2b68286f57d5795f2 + name: 'System-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.System.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: System-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: d9385990317b4bf6a973fd463697f172 + name: 'Virtual disk discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.3.1.1.2,{#DISK_NAME},1.3.6.1.4.1.232.3.2.3.1.1.14]' + key: virtualdisk.discovery + delay: 1h + description: 'CPQIDA-MIB::cpqDaLogDrvTable' + item_prototypes: + - uuid: 0f455a7e24494f2cba362479f4b27959 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Layout type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.3.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.layout[cpqDaLogDrvFaultTol.{#SNMPINDEX}]' + description: | + Logical Drive Fault Tolerance. + This shows the fault tolerance mode of the logical drive. + valuemap: + name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 1c2377f711424a5e9cfb038e136192c9 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.9.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.size[cpqDaLogDrvSize.{#SNMPINDEX}]' + trends: '0' + units: B + description: | + Logical Drive Size. + This is the size of the logical drive in megabytes. This value + is calculated using the value 1,048,576 (2^20) as a megabyte. + Drive manufacturers sometimes use the number 1,000,000 as a + megabyte when giving drive capacities so this value may + differ from the advertised size of a drive. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: dd28f993fc6c42a6b600246b9714a179 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.4.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}]' + description: 'Logical Drive Status.' + valuemap: + name: 'CPQIDA-MIB::cpqDaLogDrvStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: 7dadede9eb5640c5920b95dafc7191bb + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}' + name: 'HPE ProLiant BL920: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check virtual disk for warnings or errors.' + tags: + - tag: scope + value: available + - uuid: ffdd42c48a7b493a941887b46be64fb0 + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])<>{$VDISK.STATUS.OK}' + name: 'HPE ProLiant BL920: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk is not in OK state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check virtual disk for warnings or errors.' + dependencies: + - name: 'HPE ProLiant BL920: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed' + expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: hp + - tag: target + value: hp-bl920 + macros: + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + value: '7' + description: 'The critical status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"}' + value: '4' + description: 'The critical status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}' + value: '5' + description: 'The warning status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"notPresent"}' + value: '6' + description: 'The warning status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + value: '8' + description: 'The critical status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"}' + value: '3' + description: 'The normal status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"}' + value: '7' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + value: '6' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"}' + value: '9' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}' + value: '2' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.CRIT}' + value: '4' + description: 'The critical status of the disk array for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.WARN}' + value: '3' + description: 'The warning status of the disk array for trigger expression.' + - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDrive"}' + value: '3' + description: 'The critical S.M.A.R.T status of the disk for trigger expression.' + - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + value: '4' + description: 'The critical S.M.A.R.T status of the disk for trigger expression.' + - macro: '{$DISK.STATUS.FAIL}' + value: '3' + description: 'The critical status of the disk for trigger expression.' + - macro: '{$DISK.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk for trigger expression.' + - macro: '{$FAN.STATUS.CRIT}' + value: '4' + description: 'The critical value of the FAN sensor for trigger expression.' + - macro: '{$FAN.STATUS.WARN}' + value: '3' + description: 'The warning value of the FAN sensor for trigger expression.' + - macro: '{$HEALTH.STATUS.CRIT}' + value: '4' + description: 'The critical status of the health for trigger expression.' + - macro: '{$HEALTH.STATUS.WARN}' + value: '3' + description: 'The warning status of the health for trigger expression.' + - macro: '{$PSU.STATUS.CRIT}' + value: '4' + description: 'The critical value of the PSU sensor for trigger expression.' + - macro: '{$PSU.STATUS.WARN}' + value: '3' + description: 'The warning value of the PSU sensor for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$VDISK.STATUS.CRIT}' + value: '3' + description: 'The critical status of the virtual disk for trigger expression.' + - macro: '{$VDISK.STATUS.OK}' + value: '2' + description: 'The normal status of the virtual disk for trigger expression.' + valuemaps: + - uuid: 1f0d43fc8b334b6da324b6ce4f838f81 + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: degraded + - value: '4' + newvalue: failed + - uuid: 96287ed099c14e09b2e1708487f64d8d + name: 'CPQHLTH-MIB::cpqHeTemperatureLocale' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: system + - value: '4' + newvalue: systemBoard + - value: '5' + newvalue: ioBoard + - value: '6' + newvalue: cpu + - value: '7' + newvalue: memory + - value: '8' + newvalue: storage + - value: '9' + newvalue: removableMedia + - value: '10' + newvalue: powerSupply + - value: '11' + newvalue: ambient + - value: '12' + newvalue: chassis + - value: '13' + newvalue: bridgeCard + - uuid: 684758347f0740e08af4986ed148e81f + name: 'CPQIDA-MIB::cpqDaAccelBattery' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: Ok + - value: '3' + newvalue: Recharging + - value: '4' + newvalue: Failed + - value: '5' + newvalue: Degraded + - value: '6' + newvalue: 'Not Present' + - value: '7' + newvalue: 'Capacitor failed' + - uuid: ff25d5d2484f40ea99b212e19c48e375 + name: 'CPQIDA-MIB::cpqDaAccelStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: invalid + - value: '3' + newvalue: enabled + - value: '4' + newvalue: tmpDisabled + - value: '5' + newvalue: permDisabled + - value: '6' + newvalue: cacheModFlashMemNotAttached + - value: '7' + newvalue: cacheModDegradedFailsafeSpeed + - value: '8' + newvalue: cacheModCriticalFailure + - value: '9' + newvalue: cacheReadCacheNotMapped + - uuid: 4dc1441ab9964badbcb73e0dc213fe39 + name: 'CPQIDA-MIB::cpqDaCntlrModel' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ida + - value: '3' + newvalue: idaExpansion + - value: '4' + newvalue: ida-2 + - value: '5' + newvalue: smart + - value: '6' + newvalue: smart-2e + - value: '7' + newvalue: smart-2p + - value: '8' + newvalue: smart-2sl + - value: '9' + newvalue: smart-3100es + - value: '10' + newvalue: smart-3200 + - value: '11' + newvalue: smart-2dh + - value: '12' + newvalue: smart-221 + - value: '13' + newvalue: sa-4250es + - value: '14' + newvalue: sa-4200 + - value: '15' + newvalue: sa-integrated + - value: '16' + newvalue: sa-431 + - value: '17' + newvalue: sa-5300 + - value: '18' + newvalue: raidLc2 + - value: '19' + newvalue: sa-5i + - value: '20' + newvalue: sa-532 + - value: '21' + newvalue: sa-5312 + - value: '22' + newvalue: sa-641 + - value: '23' + newvalue: sa-642 + - value: '24' + newvalue: sa-6400 + - value: '25' + newvalue: sa-6400em + - value: '26' + newvalue: sa-6i + - value: '27' + newvalue: sa-generic + - value: '29' + newvalue: sa-p600 + - value: '30' + newvalue: sa-p400 + - value: '31' + newvalue: sa-e200 + - value: '32' + newvalue: sa-e200i + - value: '33' + newvalue: sa-p400i + - value: '34' + newvalue: sa-p800 + - value: '35' + newvalue: sa-e500 + - value: '36' + newvalue: sa-p700m + - value: '37' + newvalue: sa-p212 + - value: '38' + newvalue: sa-p410 + - value: '39' + newvalue: sa-p410i + - value: '40' + newvalue: sa-p411 + - value: '41' + newvalue: sa-b110i + - value: '42' + newvalue: sa-p712m + - value: '43' + newvalue: sa-p711m + - value: '44' + newvalue: sa-p812 + - value: '45' + newvalue: sw-1210m + - value: '46' + newvalue: sa-p220i + - value: '47' + newvalue: sa-p222 + - value: '48' + newvalue: sa-p420 + - value: '49' + newvalue: sa-p420i + - value: '50' + newvalue: sa-p421 + - value: '51' + newvalue: sa-b320i + - value: '52' + newvalue: sa-p822 + - value: '53' + newvalue: sa-p721m + - value: '54' + newvalue: sa-b120i + - value: '55' + newvalue: hps-1224 + - value: '56' + newvalue: hps-1228 + - value: '57' + newvalue: hps-1228m + - value: '58' + newvalue: sa-p822se + - value: '59' + newvalue: hps-1224e + - value: '60' + newvalue: hps-1228e + - value: '61' + newvalue: hps-1228em + - value: '62' + newvalue: sa-p230i + - value: '63' + newvalue: sa-p430i + - value: '64' + newvalue: sa-p430 + - value: '65' + newvalue: sa-p431 + - value: '66' + newvalue: sa-p731m + - value: '67' + newvalue: sa-p830i + - value: '68' + newvalue: sa-p830 + - value: '69' + newvalue: sa-p831 + - value: '70' + newvalue: sa-p530 + - value: '71' + newvalue: sa-p531 + - value: '72' + newvalue: sa-p244br + - value: '73' + newvalue: sa-p246br + - value: '74' + newvalue: sa-p440 + - value: '75' + newvalue: sa-p440ar + - value: '76' + newvalue: sa-p441 + - value: '77' + newvalue: sa-p741m + - value: '78' + newvalue: sa-p840 + - value: '79' + newvalue: sa-p841 + - value: '80' + newvalue: sh-h240ar + - value: '81' + newvalue: sh-h244br + - value: '82' + newvalue: sh-h240 + - value: '83' + newvalue: sh-h241 + - value: '84' + newvalue: sa-b140i + - value: '85' + newvalue: sh-generic + - value: '86' + newvalue: sa-p240nr + - value: '87' + newvalue: sh-h240nr + - value: '88' + newvalue: sa-p840ar + - value: '89' + newvalue: sa-p542d + - value: '90' + newvalue: s100i + - value: '91' + newvalue: e208i-p + - value: '92' + newvalue: e208i-a + - value: '93' + newvalue: e208i-c + - value: '94' + newvalue: e208e-p + - value: '95' + newvalue: p204i-b + - value: '96' + newvalue: p204i-c + - value: '97' + newvalue: p408i-p + - value: '98' + newvalue: p408i-a + - value: '99' + newvalue: p408e-p + - value: '100' + newvalue: p408i-c + - value: '101' + newvalue: p408e-m + - value: '102' + newvalue: p416ie-m + - value: '103' + newvalue: p816i-a + - value: '104' + newvalue: p408i-sb + - uuid: 3fd86d20618b43f39911746d72c2c242 + name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol' + mappings: + - value: '0' + newvalue: other + - value: '2' + newvalue: none + - value: '3' + newvalue: RAID-1/RAID-10 + - value: '4' + newvalue: RAID-4 + - value: '5' + newvalue: RAID-5 + - value: '7' + newvalue: RAID-6 + - value: '8' + newvalue: RAID-50 + - value: '9' + newvalue: RAID-60 + - value: '10' + newvalue: 'RAID-1 ADM' + - value: '11' + newvalue: 'RAID-10 ADM' + - uuid: e72171bf818e4ee1bdf9638cb0494693 + name: 'CPQIDA-MIB::cpqDaLogDrvStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: failed + - value: '4' + newvalue: unconfigured + - value: '5' + newvalue: recovering + - value: '6' + newvalue: readyForRebuild + - value: '7' + newvalue: rebuilding + - value: '8' + newvalue: wrongDrive + - value: '9' + newvalue: badConnect + - value: '10' + newvalue: overheating + - value: '11' + newvalue: shutdown + - value: '12' + newvalue: expanding + - value: '13' + newvalue: notAvailable + - value: '14' + newvalue: queuedForExpansion + - value: '15' + newvalue: multipathAccessDegraded + - value: '16' + newvalue: erasing + - value: '17' + newvalue: predictiveSpareRebuildReady + - value: '18' + newvalue: rapidParityInitInProgress + - value: '19' + newvalue: rapidParityInitPending + - value: '20' + newvalue: noAccessEncryptedNoCntlrKey + - value: '21' + newvalue: unencryptedToEncryptedInProgress + - value: '22' + newvalue: newLogDrvKeyRekeyInProgress + - value: '23' + newvalue: noAccessEncryptedCntlrEncryptnNotEnbld + - value: '24' + newvalue: unencryptedToEncryptedNotStarted + - value: '25' + newvalue: newLogDrvKeyRekeyRequestReceived + - uuid: 3d32638b989d4d3e87f727baaef8b051 + name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: rotatingPlatters + - value: '3' + newvalue: solidState + - uuid: 137c69d61b394c979d7d25d91bcc2f0b + name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: replaceDrive + - value: '4' + newvalue: replaceDriveSSDWearOut + - uuid: 9af698a37bd844069eb2235f7f5d4800 + name: 'CPQIDA-MIB::cpqDaPhyDrvStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: failed + - value: '4' + newvalue: predictiveFailure + - uuid: 04dcfa6e36ca4a0590475d84186a5d62 + name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: ok + - value: '3' + newvalue: generalFailure + - value: '4' + newvalue: linkFailure + - uuid: 83162a1a3b124ab2ae9b4cf1149486f9 + name: 'CPQSINFO-MIB::status' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: degraded + - value: '4' + newvalue: failed + - uuid: 63b879b39b084a318547620421164c05 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 97f107c88b6048f1b74412e8dfedc857 + expression: '(last(/HPE ProLiant BL920 by SNMP/hp.server.hw.uptime[hrSystemUptime])>0 and last(/HPE ProLiant BL920 by SNMP/hp.server.hw.uptime[hrSystemUptime])<10m) or (last(/HPE ProLiant BL920 by SNMP/hp.server.hw.uptime[hrSystemUptime])=0 and last(/HPE ProLiant BL920 by SNMP/hp.server.net.uptime[sysUpTime])<10m)' + name: 'HPE ProLiant BL920: Host has been restarted' + event_name: 'HPE ProLiant BL920: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/HPE_ProLiant_DL360_by_SNMP.yaml b/HPE_ProLiant_DL360_by_SNMP.yaml new file mode 100644 index 0000000..93645bf --- /dev/null +++ b/HPE_ProLiant_DL360_by_SNMP.yaml @@ -0,0 +1,2202 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 60cb9ccb922e4fd194a1d9573db10237 + template: 'HPE ProLiant DL360 by SNMP' + name: 'HPE ProLiant DL360 by SNMP' + description: | + Template for HPE ProLiant DL360 servers with HP iLO version 4 and later. + + MIBs used: + HOST-RESOURCES-MIB + CPQHLTH-MIB + SNMPv2-MIB + CPQNIC-MIB + CPQSINFO-MIB + CPQIDA-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 5f90d6150d544b13b659a4023ced96fc + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'hp.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 2594044e5b6046c3944cc54744f7f133 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'hp.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 2a807f6dd73e41418df98e294470ed67 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.2.2.4.2.0]' + key: 'hp.server.hw.model[cpqSiProductName]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQSINFO-MIB + The machine product name. The name of the machine used in this system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 0aab370a165b42208ddc7e0ae693dabf + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.2.2.2.1.0]' + key: 'hp.server.hw.serialnumber[cpqSiSysSerialNum]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQSINFO-MIB + The serial number of the physical system unit. The string will be empty if the system does not report the serial number function. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 1316d7def24a4a80adfdf4bc8ac5a12c + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#1)<>last(/HPE ProLiant DL360 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#2) and length(last(/HPE ProLiant DL360 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum]))>0' + name: 'HPE ProLiant DL360: Device has been replaced' + event_name: 'HPE ProLiant DL360: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8026a919077f4373adf774a18beb95eb + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'hp.server.hw.uptime[hrSystemUptime]' + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 71486d7865174980a004d566e0a9e885 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'hp.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 2b0f62e1317c4900a7daee824cb360a3 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'hp.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 6431a1a0b8494b50bcbd18e283e7158e + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.name[sysName],#1)<>last(/HPE ProLiant DL360 by SNMP/hp.server.name[sysName],#2) and length(last(/HPE ProLiant DL360 by SNMP/hp.server.name[sysName]))>0' + name: 'HPE ProLiant DL360: System name has changed' + event_name: 'HPE ProLiant DL360: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 361fa26e08284bbd822e17efde9a7856 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'hp.server.net.uptime[sysUpTime]' + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b554640957a04d1fa2fc4bf91a0b81a2 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'hp.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 2c9f9d96d50442bd99d6c46db6970d3d + name: 'System temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.1.0]' + key: 'hp.server.sensor.temp.status[cpqHeThermalCondition]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + This value specifies the overall condition of the system's thermal environment. + This value will be one of the following: + other(1) Temperature could not be determined. + ok(2) The temperature sensor is within normal operating range. + degraded(3) The temperature sensor is outside of normal operating range. + failed(4) The temperature sensor detects a condition that could permanently damage the system. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + - uuid: f61796d773b94de6b5177102cfb72005 + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.1.3.0]' + key: 'hp.server.status[cpqHeMibCondition]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The overall condition. This object represents the overall status of the server information represented by this MIB. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 6cc840d5bccc4f1abfd7df6a161154ad + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}' + name: 'HPE ProLiant DL360: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for errors.' + tags: + - tag: scope + value: available + - uuid: eab6760dda124629a9edcb2218ad3ad3 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.WARN}' + name: 'HPE ProLiant DL360: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'HPE ProLiant DL360: System status is in critical state' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: available + - uuid: 730b5262f94c4643bbcc4feb59b614da + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items.' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: cb8fe041c0344b8f807a61a0d53344de + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 0b91663d4b684e46aaccdf480d1622f0 + expression: 'max(/HPE ProLiant DL360 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'HPE ProLiant DL360: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: available + discovery_rules: + - uuid: 81158a1ef55449568a453214435d9332 + name: 'Array controller cache discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CACHE_STATUS},1.3.6.1.4.1.232.3.2.2.2.1.2,{#CACHE_CNTRL_INDEX},1.3.6.1.4.1.232.3.2.2.2.1.1]' + key: array.cache.discovery + delay: 1h + description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaAccelTable' + item_prototypes: + - uuid: 5fd8817af6b24ced8ce04ea092bda5ee + name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Cache Module Board Backup Power Status. This monitors the status of each backup power source on the board. + The backup power source can only recharge when the system has power applied. The type of backup power source used is indicated by cpqDaAccelBackupPowerSource. + The following values are valid: + Other (1) Indicates that the instrument agent does not recognize backup power status. You may need to update your software. + + Ok (2) The backup power source is fully charged. + + Recharging (3) The array controller has one or more cache module backup power sources that are recharging. + Cache module operations such as Battery/Flash Backed Write Cache, Expansion, Extension and Migration are temporarily suspended until the backup power source is fully charged. + Cache module operations will automatically resume when charging is complete. + + Failed (4) The battery pack is below the sufficient voltage level and has not recharged in 36 hours. + Your Cache Module board needs to be serviced. + + Degraded (5) The battery is still operating, however, one of the batteries in the pack has failed to recharge properly. + Your Cache Module board should be serviced as soon as possible. + + NotPresent (6) A backup power source is not present on the cache module board. Some controllers do not have backup power sources. + + Capacitor Failed (7) The flash backed cache module capacitor is below the sufficient voltage level and has not recharged in 10 minutes. Your Cache Module board needs to be serviced. + valuemap: + name: 'CPQIDA-MIB::cpqDaAccelBattery' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: a6cd582e11804f0f939e841287305edc + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: bb1f9560a6d74bd9aaca3ffa04aec311 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}' + name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + tags: + - tag: scope + value: available + - uuid: 28dc0b13c364443c8026e03ad00a33cb + name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.2.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Cache Module/Operations Status. This describes the status of the cache module and/or cache operations. + Note that for some controller models, a cache module board that physically attaches to the controller or chipset may not be an available option. + + The status can be: + Other (1) + Indicates that the instrument agent does not recognize the status of the cache module. You may need to upgrade the instrument agent. + + Invalid (2) + Indicates that a cache module board has not been installed in this system or is present but not configured. + + Enabled (3) + Indicates that cache operations are currently configured and enabled for at least one logical drive. + + Temporarily Disabled (4) + Indicates that cache operations have been temporarily disabled. View the cache module board error code object to determine why the write cache operations have been temporarily disabled. + + Permanently Disabled (5) + Indicates that cache operations have been permanently disabled. View the cache module board error code object to determine why the write cache operations have been disabled. + + Cache Module Flash Memory Not Attached (6) + Indicates that the flash memory component of the flash backed cache module is not attached. This status will be set when the flash memory is not attached and the Supercap is attached. This value is only used on flash backed cache modules that support removable flash memory. + + Cache Module Degraded Failsafe Speed (7) + Indicates that the cache module board is currently degraded and operating at a failsafe speed. View variables cpqDaCacheMemoryDataWidth and cpqDaCacheMemoryTransferRate to obtain the cache module board`s current memory data width and memory transfer rate. + + Cache Module Critical Failure (8) + Indicates that the cache module board has encountered a critical failure. The controller is currently operating in Zero Memory Raid mode. + + Read Cache Could Not Be Mapped (9) + Indicates that the read cache memory in a split cache configuration could not be mapped by the operating system and as a result is not available. This status may be caused by virtual space limitations in certain operating systems and is only applicable to B-Series controllers. + valuemap: + name: 'CPQIDA-MIB::cpqDaAccelStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 6a3002495b7540a981c9909c540ede36 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: 2ee4cf4ddd9944c985ac522a04371a13 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + tags: + - tag: scope + value: available + - uuid: 2cbed500a4c34f138623c31a86e227c4 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"} and last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}' + name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + - name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 4bcefb33e0f545e0bcdc8fb92c8376c9 + name: 'Array controller discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.2.1.1.1,{#CNTLR_SLOT},1.3.6.1.4.1.232.3.2.2.1.1.5,{#CNTLR_LOCATION},1.3.6.1.4.1.232.3.2.2.1.1.20]' + key: array.discovery + delay: 1h + description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaCntlrTable' + item_prototypes: + - uuid: 3bf1b9b2574440d88b4c1fde09a89810 + name: '{#CNTLR_LOCATION}: Disk array controller model' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.2.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.model[cpqDaCntlrModel.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Array Controller Model. The type of controller card. + valuemap: + name: 'CPQIDA-MIB::cpqDaCntlrModel' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: ef99c5df575646f3a4f29b6e1b4761c1 + name: '{#CNTLR_LOCATION}: Disk array controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + This value represents the overall condition of this controller, + and any associated logical drives, physical drives, and array accelerators. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 1c518fee6dbc49228768b3dd61a98057 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}' + name: 'HPE ProLiant DL360: {#CNTLR_LOCATION}: Disk array controller is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: 2dd65457ec524248ac5b1c1cfd9f3821 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.WARN}' + name: 'HPE ProLiant DL360: {#CNTLR_LOCATION}: Disk array controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant DL360: {#CNTLR_LOCATION}: Disk array controller is in critical state' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 42b03d399c8c420ab540fc2736e58a44 + name: 'FAN discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.7.1.9]' + key: fan.discovery + delay: 1h + description: 'CPQHLTH-MIB::cpqHeFltTolFanCondition' + item_prototypes: + - uuid: d153662e4a16479a806c8b6b0d247823 + name: 'Fan {#SNMPINDEX}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.7.1.9.{#SNMPINDEX}]' + key: 'hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The condition of the fan. + This value will be one of the following: + other(1) Fan status detection is not supported by this system or driver. + ok(2) The fan is operating properly. + degraded(2) A redundant fan is not operating properly. + failed(4) A non-redundant fan is not operating properly. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 90cc1704d8c340309e23deb78620c861 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}' + name: 'HPE ProLiant DL360: Fan {#SNMPINDEX}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: available + - uuid: 9b7692f49b604f0791934b58294881cd + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.WARN}' + name: 'HPE ProLiant DL360: Fan {#SNMPINDEX}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'HPE ProLiant DL360: Fan {#SNMPINDEX}: Fan is in critical state' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: f8ab5448b85f44f09263de1e173760ea + name: 'Network interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ADAPTER_INDEX},1.3.6.1.4.1.232.18.2.3.1.1.1,{#ADAPTER_NAME},1.3.6.1.4.1.232.18.2.3.1.1.39]' + key: net.if.discovery + delay: 1h + description: 'CPQIDA-MIB::cpqNicIfPhysAdapterTable' + item_prototypes: + - uuid: 3d0b8a8038c848e69559fb3273da7546 + name: '{#ADAPTER_NAME} port {#ADAPTER_INDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.18.2.3.1.1.14.{#SNMPINDEX}]' + key: 'hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}]' + description: | + MIB: CPQNIC-MIB + The physical adapter status. The following values are valid: + unknown(1) + The instrument agent was not able to determine the status of the adapter. The instrument agent may need to be upgraded. + ok(2) + The physical adapter is operating properly. + generalFailure(3) + The physical adapter has failed. + linkFailure(4) + The physical adapter has lost link. Check the cable connections to this adapter. + valuemap: + name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: aaf66f1530f74d59919a1c505a8ae147 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3' + name: 'HPE ProLiant DL360: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the physical adapter.' + tags: + - tag: scope + value: available + - uuid: f943117ce7004390854a21c2e1cdb514 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=4' + name: 'HPE ProLiant DL360: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has lost link' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the cable connections to this adapter.' + dependencies: + - name: 'HPE ProLiant DL360: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 51066791fd384fc49518f507ec925ade + name: 'Physical disk discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.5.1.1.5,{#DISK_LOCATION},1.3.6.1.4.1.232.3.2.5.1.1.64]' + key: physicaldisk.discovery + delay: 1h + description: 'Scanning table of physical drive entries CPQIDA-MIB::cpqDaPhyDrvTable.' + item_prototypes: + - uuid: 0444a75b820a4fa18baa8a846d51202f + name: '{#DISK_LOCATION}: Physical disk media type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.69.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.media_type[cpqDaPhyDrvMediaType.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Drive Array Physical Drive Media Type. The following values are defined: + other(1) The instrument agent is unable to determine the physical drive's media type. + rotatingPlatters(2) The physical drive media is composed of rotating platters. + solidState(3) The physical drive media is composed of solid state electronics. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 440f9a6fab244970bd1a9cb8691c6871 + name: '{#DISK_LOCATION}: Physical disk model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.3.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.model[cpqDaPhyDrvModel.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Model. This is a text description of the physical drive. + The text that appears depends upon who manufactured the drive and the drive type. + If a drive fails, note the model to identify the type of drive necessary for replacement. + If a model number is not present, you may not have properly initialized the drive array to which the physical drive is attached for monitoring. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 6ec3e18ffc214abaa35bd8d82f8a9bf3 + name: '{#DISK_LOCATION}: Physical disk serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.51.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Serial Number. + This is the serial number assigned to the physical drive. + This value is based upon the serial number as returned by the SCSI inquiry command + but may have been modified due to space limitations. This can be used for identification purposes. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: ad74fc6568a0487e834b9e9da4127bb7 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#1)<>last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#2) and length(last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]))>0' + name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Disk has been replaced' + event_name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Disk has been replaced (new serial number received)' + priority: INFO + description: 'Disk serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 96fdb84f875243a0904f5ad4b9f0fc65 + name: '{#DISK_LOCATION}: Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.45.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.size[cpqDaPhyDrvMediaType.{#SNMPINDEX}]' + trends: '0' + units: B + description: | + MIB: CPQIDA-MIB + Physical Drive Size in MB. + This is the size of the physical drive in megabytes. + This value is calculated using the value 1,048,576 (2^20) as a megabyte. + Drive manufacturers sometimes use the number 1,000,000 as a megabyte when giving drive capacities so this value may differ + from the advertised size of a drive. This field is only applicable for controllers which support SCSI drives, + and therefore is not supported by the IDA or IDA-2 controllers. The field will contain 0xFFFFFFFF if the drive capacity cannot be calculated + or if the controller does not support SCSI drives. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: ac29b3b9ec8d4edca37eaba2207c5585 + name: '{#DISK_LOCATION}: Physical disk S.M.A.R.T. status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.57.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive S.M.A.R.T Status. The following values are defined: + other(1) The agent is unable to determine if the status of S.M.A.R.T predictive failure monitoring for this drive. + ok(2) Indicates the drive is functioning properly. + replaceDrive(3) Indicates that the drive has a S.M.A.R.T predictive failure error and should be replaced. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: d0a86e4ee6ef46e8ade36dae70f69ad6 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Physical disk S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Physical disk failed' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + tags: + - tag: scope + value: available + - uuid: cfd49d624f1b4980ac71a115df1cdfdf + name: '{#DISK_LOCATION}: Physical disk status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Status. This shows the status of the physical drive. The following values are valid for the physical drive status: + other (1) Indicates that the instrument agent does not recognize the drive. + You may need to upgrade your instrument agent and/or driver software. + ok (2) Indicates the drive is functioning properly. + failed (3) Indicates that the drive is no longer operating and should be replaced. + predictiveFailure(4) Indicates that the drive has a predictive failure error and should be replaced. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 3eb8efcf6caa46ff892bd1d693996a4f + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Physical disk failed' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: available + - uuid: 1559184494d849cda3946a2b05b81cf3 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.WARN}' + name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Physical disk is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Physical disk failed' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 9f4e53ed613049e1a4c23b13e666c849 + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.9.3.1.5,{#CHASSIS_NUM},1.3.6.1.4.1.232.6.2.9.3.1.1,{#BAY_NUM},1.3.6.1.4.1.232.6.2.9.3.1.2]' + key: psu.discovery + delay: 1h + description: 'CPQHLTH-MIB::cpqHeFltTolPowerSupplyStatus' + item_prototypes: + - uuid: a9911ac100104b578860a29e8fbed521 + name: 'Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.9.3.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The condition of the power supply. This value will be one of the following: + other(1) The status could not be determined or not present. + ok(2) The power supply is operating normally. + degraded(3) A temperature sensor, fan or other power supply component is outside of normal operating range. + failed(4) A power supply component detects a condition that could permanently damage the system. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: e01e8d01d65a4ce7a2990ee30ab02d84 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}' + name: 'HPE ProLiant DL360: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: available + - uuid: cbd3d4d3d3e0427f89a0972fbef56f63 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.WARN}' + name: 'HPE ProLiant DL360: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'HPE ProLiant DL360: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 413a7167b1864ee69250096459e7eac9 + name: 'Temperature ambient discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.ambient.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '11' + formulaid: A + - macro: '{#SNMPINDEX}' + value: 0\.1 + formulaid: B + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with ambient(11) and 0.1 index filter + item_prototypes: + - uuid: 6cc334e5558749a2ad78985a3a11bb29 + name: 'Ambient: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 7a56b1e7bc7a4464abdf3004a903020e + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL360: Ambient: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d0e3ccfb13a9489f877e07cccbecf89f + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL360: Ambient: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 4f40a124d4c949a89e6c31796faf37ae + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL360: Ambient: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 6fa0ecd1551f469ba61b9efe1120a164 + name: 'Ambient: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Ambient.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: Ambient + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: efad502d9a304457a55b73fc51007b0d + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.cpu.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '6' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with cpu(6) filter + item_prototypes: + - uuid: 2c7dccb9af4a4364924452edba91f6ca + name: 'CPU-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: cpu + - tag: component + value: temperature + trigger_prototypes: + - uuid: a27ee21d95ff46f78807eaf31cdc0db4 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL360: CPU-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 97d97920b65c418186af30fdc8fea55e + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL360: CPU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: f06e48cef80d4e13b8e1d1ba89b60d9d + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL360: CPU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: b137b39eccc24e49a775234076816f17 + name: 'CPU-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.CPU.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: CPU-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: cpu + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 28c47461dfd64df995e72212d6798479 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: (4|8|9|12|13) + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable + item_prototypes: + - uuid: 62e9ac33b79c48988946dd79f701aa45 + name: '{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: fbbfe6536c1b4852916e93c6a6d8efd9 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL360: {#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ef76129efb9a4744809682ff041cca21 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL360: {#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 1a2dd7941efa4792b0e933c26e4e9802 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL360: {#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: cf6090b148534fd38fd6f9d769a4ac0f + name: '{#SNMPINDEX}: Temperature sensor location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.3.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.locale[cpqHeTemperatureLocale.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + This specifies the location of the temperature sensor present in the system. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureLocale' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + - uuid: cad2c5d64bf84f18ab1e0037579c1d1c + name: '{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: {#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 37ceae2e5635456695e3c8ed6d91ea60 + name: 'Temperature I/O discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.io.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '5' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with ioBoard(5) filter + item_prototypes: + - uuid: e0e31534c41a4bf69eea5bab3f5831fd + name: 'I/O-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 1918208a434145668d0a196ad53bdefd + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 1' + name: 'HPE ProLiant DL360: I/O-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e6d9e708b1704c229e010cb0ae3f53c1 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 4' + name: 'HPE ProLiant DL360: I/O-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 325bf55e8d374d97ab240873ea177636 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 3' + name: 'HPE ProLiant DL360: I/O-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: d6403c935b8e44a2baa2805898b85696 + name: 'I/O-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius."I/O.{#SNMPINDEX}"]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: I/O-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: a668aae03dfd4012a71dd70c43e20eb0 + name: 'Temperature memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.memory.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '7' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with memory(7) filter + item_prototypes: + - uuid: 09dc4ba365a64b5d8585e7c00380dd53 + name: 'Memory-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + - tag: component + value: temperature + trigger_prototypes: + - uuid: 3d335c0712dd40eaa085714cbac51cca + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL360: Memory-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e4b619a640d549099ead16e2c5085746 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL360: Memory-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 7be4e1200cdf418497158e59979edf86 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL360: Memory-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 01dd0a5b92fe4071b43d20f52d4f4b52 + name: 'Memory-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Memory.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: Memory-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b9cda4cedd5f4e43a65126d5a5cef67d + name: 'Temperature PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.psu.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '10' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with powerSupply(10) filter + item_prototypes: + - uuid: cf425ae8caed4061960b71daec7ba273 + name: 'PSU-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + - tag: component + value: temperature + trigger_prototypes: + - uuid: fc3a93d232b144b9b2f2d8b95538b941 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL360: PSU-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2f95466ff7ee4cf0bb45dfc800d680d3 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL360: PSU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 147e9de1a91d4473be384c5951812d9f + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL360: PSU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 96b82f3f3ff8415ca613a87edc83c34b + name: 'PSU-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.PSU.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: PSU-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8402ab901d3744508f46713034ae26fb + name: 'Temperature system discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.system.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '3' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with system(3) filter + item_prototypes: + - uuid: 4ce80892fad4497aadff5c2adc9c44b2 + name: 'System-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 31a1d664064644cba700ef61e4602523 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL360: System-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c51ac08efa464b91a44e01387a9c3a6d + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL360: System-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: cca796d265034389afd8236ec26a1990 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL360: System-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 477b63282a034574b3e395fcd54b02c0 + name: 'System-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.System.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: System-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 1bd919cfcd3a4225b81997e3d75a0d32 + name: 'Virtual disk discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.3.1.1.2,{#DISK_NAME},1.3.6.1.4.1.232.3.2.3.1.1.14]' + key: virtualdisk.discovery + delay: 1h + description: 'CPQIDA-MIB::cpqDaLogDrvTable' + item_prototypes: + - uuid: 1635da24ff484926900f086afde33448 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Layout type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.3.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.layout[cpqDaLogDrvFaultTol.{#SNMPINDEX}]' + description: | + Logical Drive Fault Tolerance. + This shows the fault tolerance mode of the logical drive. + valuemap: + name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 91f0d0cacf1b4dc7a25168be320c5281 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.9.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.size[cpqDaLogDrvSize.{#SNMPINDEX}]' + trends: '0' + units: B + description: | + Logical Drive Size. + This is the size of the logical drive in megabytes. This value + is calculated using the value 1,048,576 (2^20) as a megabyte. + Drive manufacturers sometimes use the number 1,000,000 as a + megabyte when giving drive capacities so this value may + differ from the advertised size of a drive. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 3e7826d4fb834aa9853955d348ece29b + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.4.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}]' + description: 'Logical Drive Status.' + valuemap: + name: 'CPQIDA-MIB::cpqDaLogDrvStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: c49fb63092eb4764aae145d93f9daa33 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}' + name: 'HPE ProLiant DL360: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check virtual disk for warnings or errors.' + tags: + - tag: scope + value: available + - uuid: 698ef7d90e95463c8ea7a14c5fa72be9 + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])<>{$VDISK.STATUS.OK}' + name: 'HPE ProLiant DL360: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk is not in OK state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check virtual disk for warnings or errors.' + dependencies: + - name: 'HPE ProLiant DL360: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed' + expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: hp + - tag: target + value: hp-dl360 + macros: + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + value: '7' + description: 'The critical status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"}' + value: '4' + description: 'The critical status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}' + value: '5' + description: 'The warning status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"notPresent"}' + value: '6' + description: 'The warning status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + value: '8' + description: 'The critical status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"}' + value: '3' + description: 'The normal status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"}' + value: '7' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + value: '6' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"}' + value: '9' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}' + value: '2' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.CRIT}' + value: '4' + description: 'The critical status of the disk array for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.WARN}' + value: '3' + description: 'The warning status of the disk array for trigger expression.' + - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDrive"}' + value: '3' + description: 'The critical S.M.A.R.T status of the disk for trigger expression.' + - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + value: '4' + description: 'The critical S.M.A.R.T status of the disk for trigger expression.' + - macro: '{$DISK.STATUS.FAIL}' + value: '3' + description: 'The critical status of the disk for trigger expression.' + - macro: '{$DISK.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk for trigger expression.' + - macro: '{$FAN.STATUS.CRIT}' + value: '4' + description: 'The critical value of the FAN sensor for trigger expression.' + - macro: '{$FAN.STATUS.WARN}' + value: '3' + description: 'The warning value of the FAN sensor for trigger expression.' + - macro: '{$HEALTH.STATUS.CRIT}' + value: '4' + description: 'The critical status of the health for trigger expression.' + - macro: '{$HEALTH.STATUS.WARN}' + value: '3' + description: 'The warning status of the health for trigger expression.' + - macro: '{$PSU.STATUS.CRIT}' + value: '4' + description: 'The critical value of the PSU sensor for trigger expression.' + - macro: '{$PSU.STATUS.WARN}' + value: '3' + description: 'The warning value of the PSU sensor for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$VDISK.STATUS.CRIT}' + value: '3' + description: 'The critical status of the virtual disk for trigger expression.' + - macro: '{$VDISK.STATUS.OK}' + value: '2' + description: 'The normal status of the virtual disk for trigger expression.' + valuemaps: + - uuid: eb946b7168084341870c9157173b5c1e + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: degraded + - value: '4' + newvalue: failed + - uuid: a293ad4b90c14fe188623341b954d852 + name: 'CPQHLTH-MIB::cpqHeTemperatureLocale' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: system + - value: '4' + newvalue: systemBoard + - value: '5' + newvalue: ioBoard + - value: '6' + newvalue: cpu + - value: '7' + newvalue: memory + - value: '8' + newvalue: storage + - value: '9' + newvalue: removableMedia + - value: '10' + newvalue: powerSupply + - value: '11' + newvalue: ambient + - value: '12' + newvalue: chassis + - value: '13' + newvalue: bridgeCard + - uuid: ca2a5be5f3cf4fa7a9812d483ba043c5 + name: 'CPQIDA-MIB::cpqDaAccelBattery' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: Ok + - value: '3' + newvalue: Recharging + - value: '4' + newvalue: Failed + - value: '5' + newvalue: Degraded + - value: '6' + newvalue: 'Not Present' + - value: '7' + newvalue: 'Capacitor failed' + - uuid: f15cd1d7fa7e4e05b46e872daa3a3c83 + name: 'CPQIDA-MIB::cpqDaAccelStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: invalid + - value: '3' + newvalue: enabled + - value: '4' + newvalue: tmpDisabled + - value: '5' + newvalue: permDisabled + - value: '6' + newvalue: cacheModFlashMemNotAttached + - value: '7' + newvalue: cacheModDegradedFailsafeSpeed + - value: '8' + newvalue: cacheModCriticalFailure + - value: '9' + newvalue: cacheReadCacheNotMapped + - uuid: abaffb0a2a1f47ec8aa64f6264d29092 + name: 'CPQIDA-MIB::cpqDaCntlrModel' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ida + - value: '3' + newvalue: idaExpansion + - value: '4' + newvalue: ida-2 + - value: '5' + newvalue: smart + - value: '6' + newvalue: smart-2e + - value: '7' + newvalue: smart-2p + - value: '8' + newvalue: smart-2sl + - value: '9' + newvalue: smart-3100es + - value: '10' + newvalue: smart-3200 + - value: '11' + newvalue: smart-2dh + - value: '12' + newvalue: smart-221 + - value: '13' + newvalue: sa-4250es + - value: '14' + newvalue: sa-4200 + - value: '15' + newvalue: sa-integrated + - value: '16' + newvalue: sa-431 + - value: '17' + newvalue: sa-5300 + - value: '18' + newvalue: raidLc2 + - value: '19' + newvalue: sa-5i + - value: '20' + newvalue: sa-532 + - value: '21' + newvalue: sa-5312 + - value: '22' + newvalue: sa-641 + - value: '23' + newvalue: sa-642 + - value: '24' + newvalue: sa-6400 + - value: '25' + newvalue: sa-6400em + - value: '26' + newvalue: sa-6i + - value: '27' + newvalue: sa-generic + - value: '29' + newvalue: sa-p600 + - value: '30' + newvalue: sa-p400 + - value: '31' + newvalue: sa-e200 + - value: '32' + newvalue: sa-e200i + - value: '33' + newvalue: sa-p400i + - value: '34' + newvalue: sa-p800 + - value: '35' + newvalue: sa-e500 + - value: '36' + newvalue: sa-p700m + - value: '37' + newvalue: sa-p212 + - value: '38' + newvalue: sa-p410 + - value: '39' + newvalue: sa-p410i + - value: '40' + newvalue: sa-p411 + - value: '41' + newvalue: sa-b110i + - value: '42' + newvalue: sa-p712m + - value: '43' + newvalue: sa-p711m + - value: '44' + newvalue: sa-p812 + - value: '45' + newvalue: sw-1210m + - value: '46' + newvalue: sa-p220i + - value: '47' + newvalue: sa-p222 + - value: '48' + newvalue: sa-p420 + - value: '49' + newvalue: sa-p420i + - value: '50' + newvalue: sa-p421 + - value: '51' + newvalue: sa-b320i + - value: '52' + newvalue: sa-p822 + - value: '53' + newvalue: sa-p721m + - value: '54' + newvalue: sa-b120i + - value: '55' + newvalue: hps-1224 + - value: '56' + newvalue: hps-1228 + - value: '57' + newvalue: hps-1228m + - value: '58' + newvalue: sa-p822se + - value: '59' + newvalue: hps-1224e + - value: '60' + newvalue: hps-1228e + - value: '61' + newvalue: hps-1228em + - value: '62' + newvalue: sa-p230i + - value: '63' + newvalue: sa-p430i + - value: '64' + newvalue: sa-p430 + - value: '65' + newvalue: sa-p431 + - value: '66' + newvalue: sa-p731m + - value: '67' + newvalue: sa-p830i + - value: '68' + newvalue: sa-p830 + - value: '69' + newvalue: sa-p831 + - value: '70' + newvalue: sa-p530 + - value: '71' + newvalue: sa-p531 + - value: '72' + newvalue: sa-p244br + - value: '73' + newvalue: sa-p246br + - value: '74' + newvalue: sa-p440 + - value: '75' + newvalue: sa-p440ar + - value: '76' + newvalue: sa-p441 + - value: '77' + newvalue: sa-p741m + - value: '78' + newvalue: sa-p840 + - value: '79' + newvalue: sa-p841 + - value: '80' + newvalue: sh-h240ar + - value: '81' + newvalue: sh-h244br + - value: '82' + newvalue: sh-h240 + - value: '83' + newvalue: sh-h241 + - value: '84' + newvalue: sa-b140i + - value: '85' + newvalue: sh-generic + - value: '86' + newvalue: sa-p240nr + - value: '87' + newvalue: sh-h240nr + - value: '88' + newvalue: sa-p840ar + - value: '89' + newvalue: sa-p542d + - value: '90' + newvalue: s100i + - value: '91' + newvalue: e208i-p + - value: '92' + newvalue: e208i-a + - value: '93' + newvalue: e208i-c + - value: '94' + newvalue: e208e-p + - value: '95' + newvalue: p204i-b + - value: '96' + newvalue: p204i-c + - value: '97' + newvalue: p408i-p + - value: '98' + newvalue: p408i-a + - value: '99' + newvalue: p408e-p + - value: '100' + newvalue: p408i-c + - value: '101' + newvalue: p408e-m + - value: '102' + newvalue: p416ie-m + - value: '103' + newvalue: p816i-a + - value: '104' + newvalue: p408i-sb + - uuid: 204396956bfe4ff5808dfa93bb35705c + name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol' + mappings: + - value: '0' + newvalue: other + - value: '2' + newvalue: none + - value: '3' + newvalue: RAID-1/RAID-10 + - value: '4' + newvalue: RAID-4 + - value: '5' + newvalue: RAID-5 + - value: '7' + newvalue: RAID-6 + - value: '8' + newvalue: RAID-50 + - value: '9' + newvalue: RAID-60 + - value: '10' + newvalue: 'RAID-1 ADM' + - value: '11' + newvalue: 'RAID-10 ADM' + - uuid: adb434bee0104007a4c0d053211bc2e7 + name: 'CPQIDA-MIB::cpqDaLogDrvStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: failed + - value: '4' + newvalue: unconfigured + - value: '5' + newvalue: recovering + - value: '6' + newvalue: readyForRebuild + - value: '7' + newvalue: rebuilding + - value: '8' + newvalue: wrongDrive + - value: '9' + newvalue: badConnect + - value: '10' + newvalue: overheating + - value: '11' + newvalue: shutdown + - value: '12' + newvalue: expanding + - value: '13' + newvalue: notAvailable + - value: '14' + newvalue: queuedForExpansion + - value: '15' + newvalue: multipathAccessDegraded + - value: '16' + newvalue: erasing + - value: '17' + newvalue: predictiveSpareRebuildReady + - value: '18' + newvalue: rapidParityInitInProgress + - value: '19' + newvalue: rapidParityInitPending + - value: '20' + newvalue: noAccessEncryptedNoCntlrKey + - value: '21' + newvalue: unencryptedToEncryptedInProgress + - value: '22' + newvalue: newLogDrvKeyRekeyInProgress + - value: '23' + newvalue: noAccessEncryptedCntlrEncryptnNotEnbld + - value: '24' + newvalue: unencryptedToEncryptedNotStarted + - value: '25' + newvalue: newLogDrvKeyRekeyRequestReceived + - uuid: 6cc6b46021f74cae83b29a62fc2cd1c0 + name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: rotatingPlatters + - value: '3' + newvalue: solidState + - uuid: 02eab0a3c02d440c82b86ddbd4ed1af6 + name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: replaceDrive + - value: '4' + newvalue: replaceDriveSSDWearOut + - uuid: 8ab32bfce9f143da86a458427804a5f4 + name: 'CPQIDA-MIB::cpqDaPhyDrvStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: failed + - value: '4' + newvalue: predictiveFailure + - uuid: d7ae95f8b813415c8d35cfe8debf8f2d + name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: ok + - value: '3' + newvalue: generalFailure + - value: '4' + newvalue: linkFailure + - uuid: 365afa633545431482f2ec054750da88 + name: 'CPQSINFO-MIB::status' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: degraded + - value: '4' + newvalue: failed + - uuid: 9665746d6c2a4ad0b85b2f1f7d1cb12d + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 383e0e2d556d4354ae50f68c94333ded + expression: '(last(/HPE ProLiant DL360 by SNMP/hp.server.hw.uptime[hrSystemUptime])>0 and last(/HPE ProLiant DL360 by SNMP/hp.server.hw.uptime[hrSystemUptime])<10m) or (last(/HPE ProLiant DL360 by SNMP/hp.server.hw.uptime[hrSystemUptime])=0 and last(/HPE ProLiant DL360 by SNMP/hp.server.net.uptime[sysUpTime])<10m)' + name: 'HPE ProLiant DL360: Host has been restarted' + event_name: 'HPE ProLiant DL360: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/HPE_ProLiant_DL380_by_SNMP.yaml b/HPE_ProLiant_DL380_by_SNMP.yaml new file mode 100644 index 0000000..5d261de --- /dev/null +++ b/HPE_ProLiant_DL380_by_SNMP.yaml @@ -0,0 +1,2202 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 379aaf7e87574debb4f5c3947a22ec68 + template: 'HPE ProLiant DL380 by SNMP' + name: 'HPE ProLiant DL380 by SNMP' + description: | + Template for HPE ProLiant DL380 servers with HP iLO version 4 and later. + + MIBs used: + HOST-RESOURCES-MIB + CPQHLTH-MIB + SNMPv2-MIB + CPQNIC-MIB + CPQSINFO-MIB + CPQIDA-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 19ed955aeefa493883a151ddb550b8ff + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'hp.server.contact[sysContact]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 7b9fc7a143c74d1b812d14413c1f53b0 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'hp.server.descr[sysDescr]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: d2cad986747643658bee67492d90d106 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.2.2.4.2.0]' + key: 'hp.server.hw.model[cpqSiProductName]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQSINFO-MIB + The machine product name. The name of the machine used in this system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 6cdacf190c584227b822fee9c112b849 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.2.2.2.1.0]' + key: 'hp.server.hw.serialnumber[cpqSiSysSerialNum]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQSINFO-MIB + The serial number of the physical system unit. The string will be empty if the system does not report the serial number function. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: bd81b8c420904f0bafa4fbf90d195967 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#1)<>last(/HPE ProLiant DL380 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#2) and length(last(/HPE ProLiant DL380 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum]))>0' + name: 'HPE ProLiant DL380: Device has been replaced' + event_name: 'HPE ProLiant DL380: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 437a251079a44869ba9b11b2184d85e7 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'hp.server.hw.uptime[hrSystemUptime]' + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 622dd9bef33b4db7bf5899a6f6ccb7b3 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'hp.server.location[sysLocation]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 2726dcd682d340b681f5dfa8d1e3ef07 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'hp.server.name[sysName]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 168b1742abc340558631a577a1a3c4d9 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.name[sysName],#1)<>last(/HPE ProLiant DL380 by SNMP/hp.server.name[sysName],#2) and length(last(/HPE ProLiant DL380 by SNMP/hp.server.name[sysName]))>0' + name: 'HPE ProLiant DL380: System name has changed' + event_name: 'HPE ProLiant DL380: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5576766f3a004fd3894ff22da515aedc + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'hp.server.net.uptime[sysUpTime]' + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 1394f5cfccb64c53abd8cff0f095906f + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'hp.server.objectid[sysObjectID]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 09930c5b67d44de49bedfe7465697d40 + name: 'System temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.1.0]' + key: 'hp.server.sensor.temp.status[cpqHeThermalCondition]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + This value specifies the overall condition of the system's thermal environment. + This value will be one of the following: + other(1) Temperature could not be determined. + ok(2) The temperature sensor is within normal operating range. + degraded(3) The temperature sensor is outside of normal operating range. + failed(4) The temperature sensor detects a condition that could permanently damage the system. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + - uuid: e980a83b24bd4bdb9d2b7369d41c9aea + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.1.3.0]' + key: 'hp.server.status[cpqHeMibCondition]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The overall condition. This object represents the overall status of the server information represented by this MIB. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: e9bf032edb2e45f0b64cb904bf8d8403 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}' + name: 'HPE ProLiant DL380: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for errors.' + tags: + - tag: scope + value: available + - uuid: 537c411a3d454a8b9dc64378e0e9a6cd + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.WARN}' + name: 'HPE ProLiant DL380: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings.' + dependencies: + - name: 'HPE ProLiant DL380: System status is in critical state' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}' + tags: + - tag: scope + value: available + - uuid: 1170728f4f534d19acfa001d1b00dcc4 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items.' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 53bf83d6a797436da2d1d8498410a113 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 97c3665497ae46eb91d81c14c5f4ac06 + expression: 'max(/HPE ProLiant DL380 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'HPE ProLiant DL380: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: available + discovery_rules: + - uuid: 43aa549fc1584a68a9d86375aa491b41 + name: 'Array controller cache discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CACHE_STATUS},1.3.6.1.4.1.232.3.2.2.2.1.2,{#CACHE_CNTRL_INDEX},1.3.6.1.4.1.232.3.2.2.2.1.1]' + key: array.cache.discovery + delay: 1h + description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaAccelTable' + item_prototypes: + - uuid: 11c4de648fe041c288ca7bcf062df6e4 + name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Cache Module Board Backup Power Status. This monitors the status of each backup power source on the board. + The backup power source can only recharge when the system has power applied. The type of backup power source used is indicated by cpqDaAccelBackupPowerSource. + The following values are valid: + Other (1) Indicates that the instrument agent does not recognize backup power status. You may need to update your software. + + Ok (2) The backup power source is fully charged. + + Recharging (3) The array controller has one or more cache module backup power sources that are recharging. + Cache module operations such as Battery/Flash Backed Write Cache, Expansion, Extension and Migration are temporarily suspended until the backup power source is fully charged. + Cache module operations will automatically resume when charging is complete. + + Failed (4) The battery pack is below the sufficient voltage level and has not recharged in 36 hours. + Your Cache Module board needs to be serviced. + + Degraded (5) The battery is still operating, however, one of the batteries in the pack has failed to recharge properly. + Your Cache Module board should be serviced as soon as possible. + + NotPresent (6) A backup power source is not present on the cache module board. Some controllers do not have backup power sources. + + Capacitor Failed (7) The flash backed cache module capacitor is below the sufficient voltage level and has not recharged in 10 minutes. Your Cache Module board needs to be serviced. + valuemap: + name: 'CPQIDA-MIB::cpqDaAccelBattery' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 4eb29401f4c7400ca87bb2449eb0f8e2 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: 0378b7339a3d482ea92f523f3d84c498 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}' + name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + tags: + - tag: scope + value: available + - uuid: 941ef3a8d3994186b16a1a82aed3649b + name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.2.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Cache Module/Operations Status. This describes the status of the cache module and/or cache operations. + Note that for some controller models, a cache module board that physically attaches to the controller or chipset may not be an available option. + + The status can be: + Other (1) + Indicates that the instrument agent does not recognize the status of the cache module. You may need to upgrade the instrument agent. + + Invalid (2) + Indicates that a cache module board has not been installed in this system or is present but not configured. + + Enabled (3) + Indicates that cache operations are currently configured and enabled for at least one logical drive. + + Temporarily Disabled (4) + Indicates that cache operations have been temporarily disabled. View the cache module board error code object to determine why the write cache operations have been temporarily disabled. + + Permanently Disabled (5) + Indicates that cache operations have been permanently disabled. View the cache module board error code object to determine why the write cache operations have been disabled. + + Cache Module Flash Memory Not Attached (6) + Indicates that the flash memory component of the flash backed cache module is not attached. This status will be set when the flash memory is not attached and the Supercap is attached. This value is only used on flash backed cache modules that support removable flash memory. + + Cache Module Degraded Failsafe Speed (7) + Indicates that the cache module board is currently degraded and operating at a failsafe speed. View variables cpqDaCacheMemoryDataWidth and cpqDaCacheMemoryTransferRate to obtain the cache module board`s current memory data width and memory transfer rate. + + Cache Module Critical Failure (8) + Indicates that the cache module board has encountered a critical failure. The controller is currently operating in Zero Memory Raid mode. + + Read Cache Could Not Be Mapped (9) + Indicates that the read cache memory in a split cache configuration could not be mapped by the operating system and as a result is not available. This status may be caused by virtual space limitations in certain operating systems and is only applicable to B-Series controllers. + valuemap: + name: 'CPQIDA-MIB::cpqDaAccelStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 26955f1b216a493c9faa95b95359aa79 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: fc24efc3b41f410e9b0e806692f3dcf6 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + tags: + - tag: scope + value: available + - uuid: d5a1edb8f9ea46f08344a07a84bd8865 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"} and last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}' + name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + - name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b35b69931e57486dbb40116512fd1242 + name: 'Array controller discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.2.1.1.1,{#CNTLR_SLOT},1.3.6.1.4.1.232.3.2.2.1.1.5,{#CNTLR_LOCATION},1.3.6.1.4.1.232.3.2.2.1.1.20]' + key: array.discovery + delay: 1h + description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaCntlrTable' + item_prototypes: + - uuid: db28dbd324304d07b20de5055d158c82 + name: '{#CNTLR_LOCATION}: Disk array controller model' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.2.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.model[cpqDaCntlrModel.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Array Controller Model. The type of controller card. + valuemap: + name: 'CPQIDA-MIB::cpqDaCntlrModel' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + - uuid: 114e43daf33d4842aa435031aca2bf22 + name: '{#CNTLR_LOCATION}: Disk array controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + This value represents the overall condition of this controller, + and any associated logical drives, physical drives, and array accelerators. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: diskarray + - tag: component + value: storage + trigger_prototypes: + - uuid: 0e57c741a6d248b69cdc70b75fc63a0f + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}' + name: 'HPE ProLiant DL380: {#CNTLR_LOCATION}: Disk array controller is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults.' + tags: + - tag: scope + value: available + - uuid: 4a66354e25c949d4aaaad02114f09e44 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.WARN}' + name: 'HPE ProLiant DL380: {#CNTLR_LOCATION}: Disk array controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults.' + dependencies: + - name: 'HPE ProLiant DL380: {#CNTLR_LOCATION}: Disk array controller is in critical state' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 850b34fb782e463a9a0fe75336c166f7 + name: 'FAN discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.7.1.9]' + key: fan.discovery + delay: 1h + description: 'CPQHLTH-MIB::cpqHeFltTolFanCondition' + item_prototypes: + - uuid: f33c7ee5675f4f35ae6e781c693e03c4 + name: 'Fan {#SNMPINDEX}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.7.1.9.{#SNMPINDEX}]' + key: 'hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The condition of the fan. + This value will be one of the following: + other(1) Fan status detection is not supported by this system or driver. + ok(2) The fan is operating properly. + degraded(2) A redundant fan is not operating properly. + failed(4) A non-redundant fan is not operating properly. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: f246a5184ea94ae3a793efec27998d5f + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}' + name: 'HPE ProLiant DL380: Fan {#SNMPINDEX}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: available + - uuid: ba7f63e795764d77aae0b7ce62a19514 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.WARN}' + name: 'HPE ProLiant DL380: Fan {#SNMPINDEX}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit.' + dependencies: + - name: 'HPE ProLiant DL380: Fan {#SNMPINDEX}: Fan is in critical state' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 647156a1894340a88bd6eb08c9ee60b6 + name: 'Network interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ADAPTER_INDEX},1.3.6.1.4.1.232.18.2.3.1.1.1,{#ADAPTER_NAME},1.3.6.1.4.1.232.18.2.3.1.1.39]' + key: net.if.discovery + delay: 1h + description: 'CPQIDA-MIB::cpqNicIfPhysAdapterTable' + item_prototypes: + - uuid: 2b3d5fc665744319b247261f301ec5e9 + name: '{#ADAPTER_NAME} port {#ADAPTER_INDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.18.2.3.1.1.14.{#SNMPINDEX}]' + key: 'hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}]' + description: | + MIB: CPQNIC-MIB + The physical adapter status. The following values are valid: + unknown(1) + The instrument agent was not able to determine the status of the adapter. The instrument agent may need to be upgraded. + ok(2) + The physical adapter is operating properly. + generalFailure(3) + The physical adapter has failed. + linkFailure(4) + The physical adapter has lost link. Check the cable connections to this adapter. + valuemap: + name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + trigger_prototypes: + - uuid: 917ab8f90c3e43b887eb7fd851cf3b25 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3' + name: 'HPE ProLiant DL380: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the physical adapter.' + tags: + - tag: scope + value: available + - uuid: 51bb602b67624c5d932109a5e04068d3 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=4' + name: 'HPE ProLiant DL380: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has lost link' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the cable connections to this adapter.' + dependencies: + - name: 'HPE ProLiant DL380: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b4c4a7f18ef44003acbccfc274f76a2d + name: 'Physical disk discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.5.1.1.5,{#DISK_LOCATION},1.3.6.1.4.1.232.3.2.5.1.1.64]' + key: physicaldisk.discovery + delay: 1h + description: 'Scanning table of physical drive entries CPQIDA-MIB::cpqDaPhyDrvTable.' + item_prototypes: + - uuid: d5b6315a3faf471baa20b7a0a0d6691b + name: '{#DISK_LOCATION}: Physical disk media type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.69.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.media_type[cpqDaPhyDrvMediaType.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Drive Array Physical Drive Media Type. The following values are defined: + other(1) The instrument agent is unable to determine the physical drive's media type. + rotatingPlatters(2) The physical drive media is composed of rotating platters. + solidState(3) The physical drive media is composed of solid state electronics. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: 8d04fc4ffec947c5ad53d037c038ed1d + name: '{#DISK_LOCATION}: Physical disk model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.3.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.model[cpqDaPhyDrvModel.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Model. This is a text description of the physical drive. + The text that appears depends upon who manufactured the drive and the drive type. + If a drive fails, note the model to identify the type of drive necessary for replacement. + If a model number is not present, you may not have properly initialized the drive array to which the physical drive is attached for monitoring. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: aa090bf031f444508eae9c853cac1109 + name: '{#DISK_LOCATION}: Physical disk serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.51.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Serial Number. + This is the serial number assigned to the physical drive. + This value is based upon the serial number as returned by the SCSI inquiry command + but may have been modified due to space limitations. This can be used for identification purposes. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 2b173fa3eec941e3b3d73c732740e210 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#1)<>last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#2) and length(last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]))>0' + name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Disk has been replaced' + event_name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Disk has been replaced (new serial number received)' + priority: INFO + description: 'Disk serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3c4c4e680bb943c3a172e0e3e049aa8b + name: '{#DISK_LOCATION}: Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.45.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.size[cpqDaPhyDrvMediaType.{#SNMPINDEX}]' + trends: '0' + units: B + description: | + MIB: CPQIDA-MIB + Physical Drive Size in MB. + This is the size of the physical drive in megabytes. + This value is calculated using the value 1,048,576 (2^20) as a megabyte. + Drive manufacturers sometimes use the number 1,000,000 as a megabyte when giving drive capacities so this value may differ + from the advertised size of a drive. This field is only applicable for controllers which support SCSI drives, + and therefore is not supported by the IDA or IDA-2 controllers. The field will contain 0xFFFFFFFF if the drive capacity cannot be calculated + or if the controller does not support SCSI drives. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + - uuid: d4b7c6cb7c3d4c46a92028e80b564bf5 + name: '{#DISK_LOCATION}: Physical disk S.M.A.R.T. status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.57.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive S.M.A.R.T Status. The following values are defined: + other(1) The agent is unable to determine if the status of S.M.A.R.T predictive failure monitoring for this drive. + ok(2) Indicates the drive is functioning properly. + replaceDrive(3) Indicates that the drive has a S.M.A.R.T predictive failure error and should be replaced. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 531875c8a5f54ca8ad2dabfa8a47b36b + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Physical disk S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Physical disk failed' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + tags: + - tag: scope + value: available + - uuid: 609c79d9a89e46778bc7c419a31db26b + name: '{#DISK_LOCATION}: Physical disk status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.6.{#SNMPINDEX}]' + key: 'hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Status. This shows the status of the physical drive. The following values are valid for the physical drive status: + other (1) Indicates that the instrument agent does not recognize the drive. + You may need to upgrade your instrument agent and/or driver software. + ok (2) Indicates the drive is functioning properly. + failed (3) Indicates that the drive is no longer operating and should be replaced. + predictiveFailure(4) Indicates that the drive has a predictive failure error and should be replaced. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: physicaldisk + - tag: component + value: storage + trigger_prototypes: + - uuid: 12eac58ddff14f7dbbdba48eca464a5f + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Physical disk failed' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors.' + tags: + - tag: scope + value: available + - uuid: 977a4d4fb6604877a0f02bb2455691c4 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.WARN}' + name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Physical disk is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors.' + dependencies: + - name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Physical disk failed' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8e0a11054b46479c9124d03c89967618 + name: 'PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.9.3.1.5,{#CHASSIS_NUM},1.3.6.1.4.1.232.6.2.9.3.1.1,{#BAY_NUM},1.3.6.1.4.1.232.6.2.9.3.1.2]' + key: psu.discovery + delay: 1h + description: 'CPQHLTH-MIB::cpqHeFltTolPowerSupplyStatus' + item_prototypes: + - uuid: a86478d1584640f784e984ff90768cfa + name: 'Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.9.3.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The condition of the power supply. This value will be one of the following: + other(1) The status could not be determined or not present. + ok(2) The power supply is operating normally. + degraded(3) A temperature sensor, fan or other power supply component is outside of normal operating range. + failed(4) A power supply component detects a condition that could permanently damage the system. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + trigger_prototypes: + - uuid: b42e415d5eb941989daaed3d1ac2e762 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}' + name: 'HPE ProLiant DL380: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: available + - uuid: d5b8b12a72934bcfb7ad6675a68a5297 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.WARN}' + name: 'HPE ProLiant DL380: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors.' + dependencies: + - name: 'HPE ProLiant DL380: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 718aebe90d154170b6d05d5fc97ac024 + name: 'Temperature ambient discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.ambient.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '11' + formulaid: A + - macro: '{#SNMPINDEX}' + value: 0\.1 + formulaid: B + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with ambient(11) and 0.1 index filter + item_prototypes: + - uuid: 8d413e8e6aa54c2a94c3c59fd5190ced + name: 'Ambient: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 1af0ddbc9ffd43b2b6800d634d8186bb + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL380: Ambient: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c49e51ac10c941798213d0f086e0631f + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL380: Ambient: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: b1cfbc1702f54670b3f486da26c4887b + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL380: Ambient: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 29afae6dceac4eadbd7a0d67029e602c + name: 'Ambient: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Ambient.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: Ambient + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 79e388de30c64430ac9f15f94cf8fec2 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.cpu.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '6' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with cpu(6) filter + item_prototypes: + - uuid: 9d6e722dc01649199a8891d663b37f00 + name: 'CPU-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: cpu + - tag: component + value: temperature + trigger_prototypes: + - uuid: 039ab34804f446e580b779d1ab25ed4f + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL380: CPU-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2cf8b917076440aa8209938cec69b905 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL380: CPU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: cf69b02334e541b7a912a14c182dd56a + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL380: CPU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 5bafde0dc89d483786cff3b1121fca55 + name: 'CPU-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.CPU.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: CPU-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: cpu + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: ee9de30ee97842fe801118cb42b92ab9 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: (4|8|9|12|13) + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable + item_prototypes: + - uuid: d3a32885e1c24b3688d768236d930dab + name: '{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 6d7eb6bd348b43a2b584ceb1694c8bce + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL380: {#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 43911269576b435db928e83901a16c5a + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL380: {#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: b26842b776c545449354ccafb809d115 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL380: {#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: cd6b1ba3a2174a879a00507ce843acaa + name: '{#SNMPINDEX}: Temperature sensor location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.3.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.locale[cpqHeTemperatureLocale.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + This specifies the location of the temperature sensor present in the system. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureLocale' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + - uuid: 1a9d8b9409e243c9b25ff434271d0049 + name: '{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: {#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 725c3cf3a398494faf3f330fb25a146c + name: 'Temperature I/O discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.io.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '5' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with ioBoard(5) filter + item_prototypes: + - uuid: 893efbae4cfa49dbae9fb6707e142cc1 + name: 'I/O-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: c8f2ef7311804357bff65d2d5c7f5d90 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 1' + name: 'HPE ProLiant DL380: I/O-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: dda9f8bf4a094b69bb30affb26e23dd3 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 4' + name: 'HPE ProLiant DL380: I/O-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: a0220dea091d4aca8d68a21a3d976496 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 3' + name: 'HPE ProLiant DL380: I/O-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 155afcc02e0443539683c193792c1770 + name: 'I/O-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius."I/O.{#SNMPINDEX}"]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: I/O-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 353c1660698744608f0e67b4cd27f0b3 + name: 'Temperature memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.memory.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '7' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with memory(7) filter + item_prototypes: + - uuid: af4c1659d5ca4c07978baea386694989 + name: 'Memory-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + - tag: component + value: temperature + trigger_prototypes: + - uuid: eca9c54385084934b88f4dc9d914b2e2 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL380: Memory-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 70b139e0c8c644918c7f01cd09604078 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL380: Memory-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 89aab6bad94e4d188475d6e36084593e + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL380: Memory-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 400b357139a945c38cf222c5c1ce25cd + name: 'Memory-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Memory.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: Memory-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: memory + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: e34420d2583145feafb4d89d010e067f + name: 'Temperature PSU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.psu.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '10' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with powerSupply(10) filter + item_prototypes: + - uuid: d1552a2c2238453aa1d376482aaf2d1b + name: 'PSU-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + - tag: component + value: temperature + trigger_prototypes: + - uuid: e792b530014d45b6ac7fc819db776c37 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL380: PSU-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 803317e9eaf04b519e63b7d1b9bfd610 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL380: PSU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 98616a3bae174922a0108b7c90339f08 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL380: PSU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 146bf385738444bfb7faa60b073865f5 + name: 'PSU-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.PSU.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: PSU-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: psu + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 043c4fa05fcb4bf7917cf56c2513fbdd + name: 'Temperature system discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: temp.system.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '3' + formulaid: A + description: | + Scanning table of Temperature Sensor Entries: + CPQHLTH-MIB::cpqHeTemperatureTable with system(3) filter + item_prototypes: + - uuid: 7b7b07d52c144d23901ad9f636fca521 + name: 'System-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 2a0503b359904c71b355cb9e3da1b8fa + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 1' + name: 'HPE ProLiant DL380: System-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 09287730b82a47c4b365c09047d0b8e2 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 4' + name: 'HPE ProLiant DL380: System-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: available + - uuid: 5c7097cb91184a619fee33bd4faa296b + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 3' + name: 'HPE ProLiant DL380: System-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: available + - uuid: 33793b349df841c1aa46fada307e4427 + name: 'System-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.System.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: System-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 2fa5e2604e5649cca3f04c759dfe2321 + name: 'Virtual disk discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.3.1.1.2,{#DISK_NAME},1.3.6.1.4.1.232.3.2.3.1.1.14]' + key: virtualdisk.discovery + delay: 1h + description: 'CPQIDA-MIB::cpqDaLogDrvTable' + item_prototypes: + - uuid: a77031074aed4314b5b825c565f0ed67 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Layout type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.3.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.layout[cpqDaLogDrvFaultTol.{#SNMPINDEX}]' + description: | + Logical Drive Fault Tolerance. + This shows the fault tolerance mode of the logical drive. + valuemap: + name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 33e1ea62016846b5ab97263605c4dcc5 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.9.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.size[cpqDaLogDrvSize.{#SNMPINDEX}]' + trends: '0' + units: B + description: | + Logical Drive Size. + This is the size of the logical drive in megabytes. This value + is calculated using the value 1,048,576 (2^20) as a megabyte. + Drive manufacturers sometimes use the number 1,000,000 as a + megabyte when giving drive capacities so this value may + differ from the advertised size of a drive. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + - uuid: 783532d2de814096ac0ce9b36c5d2552 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.4.{#SNMPINDEX}]' + key: 'hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}]' + description: 'Logical Drive Status.' + valuemap: + name: 'CPQIDA-MIB::cpqDaLogDrvStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - tag: component + value: virtualdisk + trigger_prototypes: + - uuid: a59f9e473b7a4afd900edce47b11443d + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}' + name: 'HPE ProLiant DL380: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check virtual disk for warnings or errors.' + tags: + - tag: scope + value: available + - uuid: 776bff7fb02e4948be7d81347c0c8624 + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])<>{$VDISK.STATUS.OK}' + name: 'HPE ProLiant DL380: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk is not in OK state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check virtual disk for warnings or errors.' + dependencies: + - name: 'HPE ProLiant DL380: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed' + expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}' + tags: + - tag: scope + value: available + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: hp + - tag: target + value: hp-dl380 + macros: + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}' + value: '7' + description: 'The critical status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"}' + value: '4' + description: 'The critical status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}' + value: '5' + description: 'The warning status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"notPresent"}' + value: '6' + description: 'The warning status of the disk array cache battery for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}' + value: '8' + description: 'The critical status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"}' + value: '3' + description: 'The normal status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"}' + value: '7' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}' + value: '6' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"}' + value: '9' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}' + value: '2' + description: 'The warning status of the disk array cache for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.CRIT}' + value: '4' + description: 'The critical status of the disk array for trigger expression.' + - macro: '{$DISK.ARRAY.STATUS.WARN}' + value: '3' + description: 'The warning status of the disk array for trigger expression.' + - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDrive"}' + value: '3' + description: 'The critical S.M.A.R.T status of the disk for trigger expression.' + - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}' + value: '4' + description: 'The critical S.M.A.R.T status of the disk for trigger expression.' + - macro: '{$DISK.STATUS.FAIL}' + value: '3' + description: 'The critical status of the disk for trigger expression.' + - macro: '{$DISK.STATUS.WARN}' + value: '4' + description: 'The warning status of the disk for trigger expression.' + - macro: '{$FAN.STATUS.CRIT}' + value: '4' + description: 'The critical value of the FAN sensor for trigger expression.' + - macro: '{$FAN.STATUS.WARN}' + value: '3' + description: 'The warning value of the FAN sensor for trigger expression.' + - macro: '{$HEALTH.STATUS.CRIT}' + value: '4' + description: 'The critical status of the health for trigger expression.' + - macro: '{$HEALTH.STATUS.WARN}' + value: '3' + description: 'The warning status of the health for trigger expression.' + - macro: '{$PSU.STATUS.CRIT}' + value: '4' + description: 'The critical value of the PSU sensor for trigger expression.' + - macro: '{$PSU.STATUS.WARN}' + value: '3' + description: 'The warning value of the PSU sensor for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$VDISK.STATUS.CRIT}' + value: '3' + description: 'The critical status of the virtual disk for trigger expression.' + - macro: '{$VDISK.STATUS.OK}' + value: '2' + description: 'The normal status of the virtual disk for trigger expression.' + valuemaps: + - uuid: 5655717fa32f4711b3062b97f1e5895b + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: degraded + - value: '4' + newvalue: failed + - uuid: ae1477baf3c046cbb5519346f28c7017 + name: 'CPQHLTH-MIB::cpqHeTemperatureLocale' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: system + - value: '4' + newvalue: systemBoard + - value: '5' + newvalue: ioBoard + - value: '6' + newvalue: cpu + - value: '7' + newvalue: memory + - value: '8' + newvalue: storage + - value: '9' + newvalue: removableMedia + - value: '10' + newvalue: powerSupply + - value: '11' + newvalue: ambient + - value: '12' + newvalue: chassis + - value: '13' + newvalue: bridgeCard + - uuid: af8340b5070f47e085eb91eb4580d728 + name: 'CPQIDA-MIB::cpqDaAccelBattery' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: Ok + - value: '3' + newvalue: Recharging + - value: '4' + newvalue: Failed + - value: '5' + newvalue: Degraded + - value: '6' + newvalue: 'Not Present' + - value: '7' + newvalue: 'Capacitor failed' + - uuid: 4c4378c0d1af4a6693f8c03bfaa9ad40 + name: 'CPQIDA-MIB::cpqDaAccelStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: invalid + - value: '3' + newvalue: enabled + - value: '4' + newvalue: tmpDisabled + - value: '5' + newvalue: permDisabled + - value: '6' + newvalue: cacheModFlashMemNotAttached + - value: '7' + newvalue: cacheModDegradedFailsafeSpeed + - value: '8' + newvalue: cacheModCriticalFailure + - value: '9' + newvalue: cacheReadCacheNotMapped + - uuid: 23a855763fc346ea8a3559399ffa7428 + name: 'CPQIDA-MIB::cpqDaCntlrModel' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ida + - value: '3' + newvalue: idaExpansion + - value: '4' + newvalue: ida-2 + - value: '5' + newvalue: smart + - value: '6' + newvalue: smart-2e + - value: '7' + newvalue: smart-2p + - value: '8' + newvalue: smart-2sl + - value: '9' + newvalue: smart-3100es + - value: '10' + newvalue: smart-3200 + - value: '11' + newvalue: smart-2dh + - value: '12' + newvalue: smart-221 + - value: '13' + newvalue: sa-4250es + - value: '14' + newvalue: sa-4200 + - value: '15' + newvalue: sa-integrated + - value: '16' + newvalue: sa-431 + - value: '17' + newvalue: sa-5300 + - value: '18' + newvalue: raidLc2 + - value: '19' + newvalue: sa-5i + - value: '20' + newvalue: sa-532 + - value: '21' + newvalue: sa-5312 + - value: '22' + newvalue: sa-641 + - value: '23' + newvalue: sa-642 + - value: '24' + newvalue: sa-6400 + - value: '25' + newvalue: sa-6400em + - value: '26' + newvalue: sa-6i + - value: '27' + newvalue: sa-generic + - value: '29' + newvalue: sa-p600 + - value: '30' + newvalue: sa-p400 + - value: '31' + newvalue: sa-e200 + - value: '32' + newvalue: sa-e200i + - value: '33' + newvalue: sa-p400i + - value: '34' + newvalue: sa-p800 + - value: '35' + newvalue: sa-e500 + - value: '36' + newvalue: sa-p700m + - value: '37' + newvalue: sa-p212 + - value: '38' + newvalue: sa-p410 + - value: '39' + newvalue: sa-p410i + - value: '40' + newvalue: sa-p411 + - value: '41' + newvalue: sa-b110i + - value: '42' + newvalue: sa-p712m + - value: '43' + newvalue: sa-p711m + - value: '44' + newvalue: sa-p812 + - value: '45' + newvalue: sw-1210m + - value: '46' + newvalue: sa-p220i + - value: '47' + newvalue: sa-p222 + - value: '48' + newvalue: sa-p420 + - value: '49' + newvalue: sa-p420i + - value: '50' + newvalue: sa-p421 + - value: '51' + newvalue: sa-b320i + - value: '52' + newvalue: sa-p822 + - value: '53' + newvalue: sa-p721m + - value: '54' + newvalue: sa-b120i + - value: '55' + newvalue: hps-1224 + - value: '56' + newvalue: hps-1228 + - value: '57' + newvalue: hps-1228m + - value: '58' + newvalue: sa-p822se + - value: '59' + newvalue: hps-1224e + - value: '60' + newvalue: hps-1228e + - value: '61' + newvalue: hps-1228em + - value: '62' + newvalue: sa-p230i + - value: '63' + newvalue: sa-p430i + - value: '64' + newvalue: sa-p430 + - value: '65' + newvalue: sa-p431 + - value: '66' + newvalue: sa-p731m + - value: '67' + newvalue: sa-p830i + - value: '68' + newvalue: sa-p830 + - value: '69' + newvalue: sa-p831 + - value: '70' + newvalue: sa-p530 + - value: '71' + newvalue: sa-p531 + - value: '72' + newvalue: sa-p244br + - value: '73' + newvalue: sa-p246br + - value: '74' + newvalue: sa-p440 + - value: '75' + newvalue: sa-p440ar + - value: '76' + newvalue: sa-p441 + - value: '77' + newvalue: sa-p741m + - value: '78' + newvalue: sa-p840 + - value: '79' + newvalue: sa-p841 + - value: '80' + newvalue: sh-h240ar + - value: '81' + newvalue: sh-h244br + - value: '82' + newvalue: sh-h240 + - value: '83' + newvalue: sh-h241 + - value: '84' + newvalue: sa-b140i + - value: '85' + newvalue: sh-generic + - value: '86' + newvalue: sa-p240nr + - value: '87' + newvalue: sh-h240nr + - value: '88' + newvalue: sa-p840ar + - value: '89' + newvalue: sa-p542d + - value: '90' + newvalue: s100i + - value: '91' + newvalue: e208i-p + - value: '92' + newvalue: e208i-a + - value: '93' + newvalue: e208i-c + - value: '94' + newvalue: e208e-p + - value: '95' + newvalue: p204i-b + - value: '96' + newvalue: p204i-c + - value: '97' + newvalue: p408i-p + - value: '98' + newvalue: p408i-a + - value: '99' + newvalue: p408e-p + - value: '100' + newvalue: p408i-c + - value: '101' + newvalue: p408e-m + - value: '102' + newvalue: p416ie-m + - value: '103' + newvalue: p816i-a + - value: '104' + newvalue: p408i-sb + - uuid: 87ad87e768bc4d8ab77841e29176c36f + name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol' + mappings: + - value: '0' + newvalue: other + - value: '2' + newvalue: none + - value: '3' + newvalue: RAID-1/RAID-10 + - value: '4' + newvalue: RAID-4 + - value: '5' + newvalue: RAID-5 + - value: '7' + newvalue: RAID-6 + - value: '8' + newvalue: RAID-50 + - value: '9' + newvalue: RAID-60 + - value: '10' + newvalue: 'RAID-1 ADM' + - value: '11' + newvalue: 'RAID-10 ADM' + - uuid: 46a2f599d46d438899ea4d8c552f51b4 + name: 'CPQIDA-MIB::cpqDaLogDrvStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: failed + - value: '4' + newvalue: unconfigured + - value: '5' + newvalue: recovering + - value: '6' + newvalue: readyForRebuild + - value: '7' + newvalue: rebuilding + - value: '8' + newvalue: wrongDrive + - value: '9' + newvalue: badConnect + - value: '10' + newvalue: overheating + - value: '11' + newvalue: shutdown + - value: '12' + newvalue: expanding + - value: '13' + newvalue: notAvailable + - value: '14' + newvalue: queuedForExpansion + - value: '15' + newvalue: multipathAccessDegraded + - value: '16' + newvalue: erasing + - value: '17' + newvalue: predictiveSpareRebuildReady + - value: '18' + newvalue: rapidParityInitInProgress + - value: '19' + newvalue: rapidParityInitPending + - value: '20' + newvalue: noAccessEncryptedNoCntlrKey + - value: '21' + newvalue: unencryptedToEncryptedInProgress + - value: '22' + newvalue: newLogDrvKeyRekeyInProgress + - value: '23' + newvalue: noAccessEncryptedCntlrEncryptnNotEnbld + - value: '24' + newvalue: unencryptedToEncryptedNotStarted + - value: '25' + newvalue: newLogDrvKeyRekeyRequestReceived + - uuid: 5f6868416f454beba585a0d2e9038117 + name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: rotatingPlatters + - value: '3' + newvalue: solidState + - uuid: f78e361d31d94c479594b9d73257f80a + name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: replaceDrive + - value: '4' + newvalue: replaceDriveSSDWearOut + - uuid: 0efa6b7ed90f4edebc3282af5dbaf6c4 + name: 'CPQIDA-MIB::cpqDaPhyDrvStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: failed + - value: '4' + newvalue: predictiveFailure + - uuid: 1d312bcad99c43b8931fb128f6250afa + name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: ok + - value: '3' + newvalue: generalFailure + - value: '4' + newvalue: linkFailure + - uuid: 48e68c2789334818b5536be3f8628f66 + name: 'CPQSINFO-MIB::status' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: degraded + - value: '4' + newvalue: failed + - uuid: 1b63c6eea5fc42a99501408d603c158b + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 9612f37005e5420582d499d7cb84a24e + expression: '(last(/HPE ProLiant DL380 by SNMP/hp.server.hw.uptime[hrSystemUptime])>0 and last(/HPE ProLiant DL380 by SNMP/hp.server.hw.uptime[hrSystemUptime])<10m) or (last(/HPE ProLiant DL380 by SNMP/hp.server.hw.uptime[hrSystemUptime])=0 and last(/HPE ProLiant DL380 by SNMP/hp.server.net.uptime[sysUpTime])<10m)' + name: 'HPE ProLiant DL380: Host has been restarted' + event_name: 'HPE ProLiant DL380: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/HPE_Synergy_by_HTTP.yaml b/HPE_Synergy_by_HTTP.yaml new file mode 100644 index 0000000..5204bd7 --- /dev/null +++ b/HPE_Synergy_by_HTTP.yaml @@ -0,0 +1,7465 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 0ffde4421f524bcbac2f47fec87c0f95 + template: 'HPE Synergy by HTTP' + name: 'HPE Synergy by HTTP' + description: | + This template is designed to monitor HPE Synergy by HTTP. + It works without any external scripts and uses the script item. + + Setup: + 1. Link template to the host. + 2. Set the hostname or IP address of the host in the {$HPE.SYNERGY.API.HOST} macro and configure the username and password in the {$HPE.SYNERGY.API.USERNAME} and {$HPE.SYNERGY.API.PASSWORD} macros. + 3. Change the {$HPE.SYNERGY.API.SCHEME} and {$HPE.SYNERGY.API.PORT} macros if needed. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 2f9816e8a60149f4aafdf7ffb0632224 + name: 'Get data' + type: SCRIPT + key: hpe.synergy.get.data + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Synergy = { + params: {}, + session_id: null, + api_version: null, + + setParams: function (params) { + ['username', 'password', 'base_url', 'login_domain'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Synergy.params = params; + if (typeof Synergy.params.base_url === 'string' && !Synergy.params.base_url.endsWith('/')) { + Synergy.params.base_url += '/'; + } + + Synergy.tls = new CTlsConfig(params.tls_verify); + Synergy.tls.checkURL(Synergy.params.base_url); + }, + + checkVersion: function () { + if (Synergy.api_version !== null) { + return; + } + + var response, request = new HttpRequest(Synergy.tls.options); + request.addHeader('Content-Type: application/json'); + + response = request.get(Synergy.params.base_url + 'rest/version'); + + if (request.getStatus() !== 200) { + throw 'Get version request failed with status code ' + request.getStatus() + ': ' + response; + } + + if (response !== null) { + try { + version_data = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse get version response received from device API.'; + } + } + else { + throw 'No data received by get version request.'; + } + + if ('currentVersion' in version_data && 'minimumVersion' in version_data) { + if (version_data['minimumVersion'] <= 1200 && version_data['currentVersion'] >= 1200) { + Synergy.api_version = 1200; + } else { + throw 'API version is not supported.'; + } + } else { + throw 'Get version response does not contain version.'; + } + }, + + login: function () { + if (Synergy.session_id !== null || Synergy.api_version === null) { + return; + } + + var response, request = new HttpRequest(Synergy.tls.options); + request.addHeader('Content-Type: application/json'); + request.addHeader('X-API-Version: ' + Synergy.api_version); + + response = request.post(Synergy.params.base_url + 'rest/login-sessions', JSON.stringify({ + 'userName': Synergy.params.username, + 'password': Synergy.params.password, + 'authLoginDomain': Synergy.params.login_domain, + 'loginMsgAck': 'true' + })); + + if (request.getStatus() !== 200) { + throw 'Auth request failed with status code ' + request.getStatus() + ': ' + response; + } + + if (response !== null) { + try { + auth_data = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse auth response received from device API.'; + } + } + else { + throw 'No data received by auth request.'; + } + + if ('sessionID' in auth_data) { + Synergy.session_id = auth_data['sessionID']; + } else { + throw 'Auth response does not contain session ID.'; + } + }, + + logout: function () { + if (Synergy.session_id !== null && Synergy.api_version !== null) { + var response, request = new HttpRequest(Synergy.tls.options); + request.addHeader('Content-Type: application/json'); + request.addHeader('X-API-Version: ' + Synergy.api_version); + request.addHeader('Auth: ' + Synergy.session_id); + response = request.delete(Synergy.params.base_url + 'rest/login-sessions'); + } + }, + + requestData: function (method) { + if (Synergy.session_id === null || Synergy.api_version === null) { + return; + } + + request = new HttpRequest(Synergy.tls.options); + request.addHeader('Auth: ' + Synergy.session_id); + request.addHeader('X-API-Version: ' + Synergy.api_version); + + raw_data = request.get(Synergy.params.base_url + 'rest/' + method); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + raw_data; + } + + if (raw_data !== null) { + try { + return JSON.parse(raw_data); + } + catch (error) { + throw 'Failed to parse response received from device API.'; + } + } + else { + throw 'No data received by ' + method + ' request.'; + } + } + }; + + var methods = ['datacenters', 'enclosures', 'ethernet-networks', 'fabrics', 'fc-networks', 'hypervisor-managers', 'interconnects', 'logical-enclosures', 'racks', 'server-hardware', 'storage-pools', 'storage-systems', 'storage-volumes', 'uplink-sets'], + data = {}; + + data['errors'] = {}; + + try { + Synergy.setParams(JSON.parse(value)); + + try { + Synergy.checkVersion(); + } + catch (error) { + data.errors.version = error.toString(); + } + + try { + Synergy.login(); + } + catch (error) { + data.errors.auth = error.toString(); + } + + if (!('auth' in data.errors) && !('version' in data.errors)) { + for (var i in methods) { + try { + if (methods[i] === 'enclosures') { + var bays = ['applianceBays', 'crossBars', 'deviceBays', 'fanBays', 'partitions', 'powerSupplyBays', 'managerBays']; + + enclosures = Synergy.requestData(methods[i]); + + enclosures.members.forEach(function (enclosure) { + enclosure_name = enclosure.name; + + for (var j in bays) { + bay = enclosure[bays[j]]; + + bay.forEach(function (b) { + b.enclosureName = enclosure_name; + enclosures.members[bays[j[b]]] = b; + }); + } + }); + + data[methods[i]] = enclosures; + } + else { + data[methods[i]] = Synergy.requestData(methods[i]); + } + } + catch (error) { + data.errors[methods[i]] = error.toString(); + } + } + } + } + catch (error) { + data.errors.params = error.toString(); + } + + try { + Synergy.logout(); + } + catch (error) { + } + + if (Object.keys(data.errors).length !== 0) { + errors = 'Failed to receive data:'; + for (var error in data.errors) { + errors += '\n' + error + ' : ' + data.errors[error]; + } + data.errors = errors; + } + else { + data.errors = ''; + } + + return JSON.stringify(data); + description: 'The JSON with the result from requests to API.' + timeout: '{$HPE.SYNERGY.DATA.TIMEOUT}' + parameters: + - name: base_url + value: '{$HPE.SYNERGY.API.SCHEME}://{$HPE.SYNERGY.API.HOST}:{$HPE.SYNERGY.API.PORT}' + - name: login_domain + value: '{$HPE.SYNERGY.API.LOGIN_DOMAIN}' + - name: password + value: '{$HPE.SYNERGY.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"HPE Synergy"}' + - name: username + value: '{$HPE.SYNERGY.API.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 03389ced2251456a98f56418f1fbc6c5 + name: 'Get datacenters data' + type: DEPENDENT + key: hpe.synergy.get.datacenters + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the datacenters.' + preprocessing: + - type: JSONPATH + parameters: + - $.datacenters + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: 6a12ea452d444c8ca5aec2698709d979 + name: 'Get enclosures data' + type: DEPENDENT + key: hpe.synergy.get.enclosures + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'A list of enclosures.' + preprocessing: + - type: JSONPATH + parameters: + - $.enclosures + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: c0049d63dffe4cdaafa806796051e06b + name: 'Get errors' + type: DEPENDENT + key: hpe.synergy.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + triggers: + - uuid: dba8cff13328403dae2cbda8f106b384 + expression: 'length(last(/HPE Synergy by HTTP/hpe.synergy.get.errors))>0' + name: 'HPE Synergy: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors from API.' + dependencies: + - name: 'HPE Synergy: Service is unavailable' + expression: 'max(/HPE Synergy by HTTP/net.tcp.service["{$HPE.SYNERGY.API.SCHEME}","{$HPE.SYNERGY.API.HOST}","{$HPE.SYNERGY.API.PORT}"],5m)=0' + tags: + - tag: scope + value: availability + - uuid: 11b7e2c9c3ba4c71a2a5b165eea2c105 + name: 'Get ethernet networks data' + type: DEPENDENT + key: hpe.synergy.get.ethernet_networks + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the ethernet networks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.["ethernet-networks"]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: d6d0a7fb1f0e47a792cd5197e2aa99b2 + name: 'Get fabrics data' + type: DEPENDENT + key: hpe.synergy.get.fabrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the fabrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.fabrics + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: 789012febb2c44af8cf01b83315f6e99 + name: 'Get FC networks data' + type: DEPENDENT + key: hpe.synergy.get.fc_networks + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the FC networks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.["fc-networks"]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: 1b903d33f7ef481687db5f94a94123f5 + name: 'Get hypervisor managers data' + type: DEPENDENT + key: hpe.synergy.get.hypervisor_managers + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the hypervisor managers.' + preprocessing: + - type: JSONPATH + parameters: + - '$.["hypervisor-managers"]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: 9724a596f61241f297f5fa8fbd538ea0 + name: 'Get interconnects data' + type: DEPENDENT + key: hpe.synergy.get.interconnects + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the interconnects.' + preprocessing: + - type: JSONPATH + parameters: + - $.interconnects + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: bff37f5e7576433e85991ca474aae7c8 + name: 'Get logical enclosures data' + type: DEPENDENT + key: hpe.synergy.get.logical_enclosures + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the logical enclosures.' + preprocessing: + - type: JSONPATH + parameters: + - '$.["logical-enclosures"]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: 5f44e9a2434e4773ab9d8c5664535a91 + name: 'Get racks data' + type: DEPENDENT + key: hpe.synergy.get.racks + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the racks.' + preprocessing: + - type: JSONPATH + parameters: + - $.racks + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: 066eacd86e784308a0b3ed53c7fd2482 + name: 'Get server hardware data' + type: DEPENDENT + key: hpe.synergy.get.server_hardware + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the server hardware.' + preprocessing: + - type: JSONPATH + parameters: + - '$.["server-hardware"]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: 249afb5967c146799340487196206e01 + name: 'Get storage pools data' + type: DEPENDENT + key: hpe.synergy.get.storage_pools + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the storage pools.' + preprocessing: + - type: JSONPATH + parameters: + - '$.["storage-pools"]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: bab0584a38fb4e9ba3270c2882e9cef1 + name: 'Get storage systems data' + type: DEPENDENT + key: hpe.synergy.get.storage_systems + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the storage systems.' + preprocessing: + - type: JSONPATH + parameters: + - '$.["storage-systems"]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: f232ebaf34eb474d9596cfe573e7b3fb + name: 'Get storage volumes data' + type: DEPENDENT + key: hpe.synergy.get.storage_volumes + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the storage volumes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.["storage-volumes"]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: d8e6a2b490ab472cb15814c19ed71e16 + name: 'Get uplink sets data' + type: DEPENDENT + key: hpe.synergy.get.uplink_sets + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the uplink sets.' + preprocessing: + - type: JSONPATH + parameters: + - '$.["uplink-sets"]' + error_handler: DISCARD_VALUE + master_item: + key: hpe.synergy.get.data + tags: + - tag: component + value: raw + - uuid: 86da94cecaa1424e9a22479d556d7b12 + name: 'Service ping' + type: SIMPLE + key: 'net.tcp.service["{$HPE.SYNERGY.API.SCHEME}","{$HPE.SYNERGY.API.HOST}","{$HPE.SYNERGY.API.PORT}"]' + description: 'Checks if the service is running and accepting the TCP connections.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 165774c1ffab46899352a36dd32bb574 + expression: 'max(/HPE Synergy by HTTP/net.tcp.service["{$HPE.SYNERGY.API.SCHEME}","{$HPE.SYNERGY.API.HOST}","{$HPE.SYNERGY.API.PORT}"],5m)=0' + name: 'HPE Synergy: Service is unavailable' + priority: HIGH + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 73d93ade7489472fae4e68b05de52291 + name: 'Appliance bays discovery' + type: DEPENDENT + key: hpe.synergy.appliances.discovery + delay: '0' + description: 'A list of the appliance bays in the enclosure.' + item_prototypes: + - uuid: d3be63fe949c4960ba5a66c546b4ebcd + name: 'Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Power state' + type: DEPENDENT + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",bay_power_state]' + delay: '0' + description: | + The power state of the appliance bay. + + *EFuse* - the power state of the bay - it has been EFused. + *Reset* - the power state of the bay - it has been reset. + *SoftReset* - the power state of the bay - it has been softly reset. + *Unknown* - the power state of the bay is unknown. + valuemap: + name: 'Power state' + preprocessing: + - type: JSONPATH + parameters: + - $.bayPowerState + - type: STR_REPLACE + parameters: + - EFuse + - '0' + - type: STR_REPLACE + parameters: + - SoftReset + - '1' + - type: STR_REPLACE + parameters: + - Reset + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: appliance + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 76d81ddf977f4d3481af82f8a9031b50 + name: 'Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#ENCLOSURE_NAME}")].applianceBays[?(@.bayNumber == "{#BAY_NUMBER}")].first()' + master_item: + key: hpe.synergy.get.enclosures + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: appliance + - tag: component + value: raw + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 08e834ca1ea04357b13d0383cfba8503 + name: 'Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Model' + type: DEPENDENT + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model name of the appliance.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: appliance + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: df7ef9ae030c417e9c3a9b64d22c2bb9 + name: 'Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Part number' + type: DEPENDENT + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The part number of the appliance.' + preprocessing: + - type: JSONPATH + parameters: + - $.partNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: appliance + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 7921c3c8ac07452d9a0cc47436d10aac + name: 'Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Powered on' + type: DEPENDENT + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",powered_on]' + delay: '0' + description: '*Yes*, if the appliance is powered on; *false*, otherwise.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - $.poweredOn + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: appliance + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: d4501f70c9e74f5dbe11ab608629c666 + name: 'Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Presence' + type: DEPENDENT + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",presence]' + delay: '0' + description: | + Indicates whether an appliance is present in the bay: + + *Absent* - the device slot is empty; + *PresenceNoOp* - the device slot is uninitialized; + *PresenceUnknown* - the device presence is unknown; + *Present* - the device slot has a device in it; + *Subsumed* - the device slot is configured to be part of another device slot. Not applicable for the fan or power supply bays. + valuemap: + name: 'Device presence' + preprocessing: + - type: JSONPATH + parameters: + - $.devicePresence + - type: STR_REPLACE + parameters: + - Absent + - '0' + - type: STR_REPLACE + parameters: + - PresenceNoOp + - '1' + - type: STR_REPLACE + parameters: + - PresenceUnknown + - '2' + - type: STR_REPLACE + parameters: + - Present + - '3' + - type: STR_REPLACE + parameters: + - Subsumed + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: appliance + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: f352ca846fa34ba698b28f8d8883a14d + name: 'Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Serial number' + type: DEPENDENT + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the appliance.' + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: appliance + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 6d47ed045d904cc780c538a330ba0895 + name: 'Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Spare part number' + type: DEPENDENT + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",spare_part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The spare part number of the appliance.' + preprocessing: + - type: JSONPATH + parameters: + - $.sparePartNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: appliance + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 836036ba1abb43bbaaabddaa8bb438d3 + name: 'Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Status' + type: DEPENDENT + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status]' + delay: '0' + description: | + The hardware status of the appliance: + + *Critical* - requires immediate attention; + *Disabled* - the resource is currently not operational; + *OK* - indicates normal/informational behavior; + *Unknown* - the health status is not yet known or cannot be determined; + *Warning* - requires attention soon. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: appliance + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: d79a138fe0cd4f918e664380af8da355 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=0' + name: 'HPE Synergy: Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Has critical status' + priority: HIGH + description: 'The appliance [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] status is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: c4acd5d5451d437ab5366b24643577be + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=4' + name: 'HPE Synergy: Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Has warning status' + priority: WARNING + description: 'The appliance [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] status is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 7b8b298e334e409da6dabf6476c80dbf + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.appliance["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=1' + name: 'HPE Synergy: Appliance bay [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is disabled' + priority: INFO + description: 'The appliance [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is currently not operational' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.enclosures + lld_macro_paths: + - lld_macro: '{#BAY_NUMBER}' + path: $.bayNumber + - lld_macro: '{#ENCLOSURE_NAME}' + path: $.enclosureName + preprocessing: + - type: JSONPATH + parameters: + - '$.members.[0].applianceBays' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 2ebb056eceea47d7ab8ca623504feb04 + name: 'Cross bars discovery' + type: DEPENDENT + key: hpe.synergy.crossbars.discovery + delay: '0' + description: 'SDX cross fabric module connects to all computing devices installed in the system enclosure and brings in the capability of hard partitioning. Crossbar details are relevant only for enclosures with type "SDX".' + item_prototypes: + - uuid: cedc8d60b7c647efbd148d020432861d + name: 'Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] data' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#ENCLOSURE_NAME}")].crossbars[?(@.bayNumber == "{#BAY_NUMBER}")].first()' + master_item: + key: hpe.synergy.get.enclosures + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: crossbar + - tag: component + value: raw + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: c64e3a01454f473b888e57496ec642d3 + name: 'Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: HW version' + type: DEPENDENT + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",hw_version]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The hardware version.' + preprocessing: + - type: JSONPATH + parameters: + - $.hwVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: crossbar + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: aaa521f31d2d4e04b918892e8e02911d + name: 'Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Part number' + type: DEPENDENT + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The part number provided by the manufacturer.' + preprocessing: + - type: JSONPATH + parameters: + - $.partNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: crossbar + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 4c29bf3ba488474188104c51a483949e + name: 'Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Presence' + type: DEPENDENT + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",presence]' + delay: '0' + description: | + The presence in a bay: + + *Absent* - the device slot is empty; + *PresenceNoOp* - the device slot is uninitialized; + *PresenceUnknown* - the device presence is unknown; + *Present* - the device slot has a device in it; + *Subsumed* - the device slot is configured to be part of another device slot. Not applicable for the fan or power supply bays. + valuemap: + name: 'Device presence' + preprocessing: + - type: JSONPATH + parameters: + - $.presence + - type: STR_REPLACE + parameters: + - Absent + - '0' + - type: STR_REPLACE + parameters: + - PresenceNoOp + - '1' + - type: STR_REPLACE + parameters: + - PresenceUnknown + - '2' + - type: STR_REPLACE + parameters: + - Present + - '3' + - type: STR_REPLACE + parameters: + - Subsumed + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: crossbar + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: b414be87e93f4f08a131d46b34b1b478 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",presence])=4' + name: 'HPE Synergy: Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is subsumed' + priority: AVERAGE + description: 'The device slot is configured to be part of another device slot.' + tags: + - tag: scope + value: notice + - uuid: c7fe889af0fc43e0b73b20a99b7d193a + name: 'Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Serial number' + type: DEPENDENT + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'A serial number.' + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: crossbar + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 322073fa57dc49df9b12898a647fe255 + name: 'Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Status' + type: DEPENDENT + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status]' + delay: '0' + description: | + The overall health status of the crossbar: + + *Critical* - requires immediate attention; + *Disabled* - the resource is currently not operational; + *OK* - indicates normal/informational behavior; + *Unknown* - the health status is not yet known or cannot be determined; + *Warning* - requires attention soon. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: crossbar + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: dd23cdf994c848d4b45baf4d1716f198 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=0' + name: 'HPE Synergy: Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Has critical status' + priority: HIGH + description: 'The crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] status is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 264dff5509fb4608b862bfd3e0510e32 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=4' + name: 'HPE Synergy: Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Has warning status' + priority: WARNING + description: 'The crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] status is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 89e007afab2b4331877b3a7c1b6a98fb + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.crossbar["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=1' + name: 'HPE Synergy: Crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is disabled' + priority: INFO + description: 'The crossbar [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.enclosures + lld_macro_paths: + - lld_macro: '{#BAY_NUMBER}' + path: $.bayNumber + - lld_macro: '{#ENCLOSURE_NAME}' + path: $.enclosureName + preprocessing: + - type: JSONPATH + parameters: + - '$.members.[0].crossBars' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 148ed07fd68049c6976df0bc8ccdc416 + name: 'Datacenters discovery' + type: DEPENDENT + key: hpe.synergy.datacenters.discovery + delay: '0' + description: 'A list of the datacenters.' + item_prototypes: + - uuid: 08830efa6eb64d7291eaa15bbfc0b851 + name: 'Datacenter [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.datacenter["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the datacenter [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.datacenters + tags: + - tag: component + value: datacenter + - tag: component + value: raw + - tag: datacenter + value: '{#NAME}' + - uuid: d37c1e2376ba4da5822041ad8ff37c8a + name: 'Datacenter [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.datacenter["{#NAME}",state]' + delay: '0' + description: 'The current state of the resource. The valid values include Adding, AddError, Configured, CredentialError, Refreshing, RefreshError, Removing, RemoveError, and Unmanaged.' + valuemap: + name: 'Rack state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: STR_REPLACE + parameters: + - Adding + - '0' + - type: STR_REPLACE + parameters: + - AddError + - '1' + - type: STR_REPLACE + parameters: + - Configured + - '2' + - type: STR_REPLACE + parameters: + - CredentialError + - '3' + - type: STR_REPLACE + parameters: + - Refreshing + - '4' + - type: STR_REPLACE + parameters: + - RefreshError + - '5' + - type: STR_REPLACE + parameters: + - Removing + - '6' + - type: STR_REPLACE + parameters: + - RemoveError + - '7' + - type: STR_REPLACE + parameters: + - Unmanaged + - '8' + - type: IN_RANGE + parameters: + - '0' + - '8' + error_handler: CUSTOM_VALUE + error_handler_params: '9' + master_item: + key: 'hpe.synergy.datacenter["{#NAME}",data]' + tags: + - tag: component + value: datacenter + - tag: datacenter + value: '{#NAME}' + trigger_prototypes: + - uuid: 4f0d8ded588f4175911edff4efd4d1cd + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.datacenter["{#NAME}",state])=1' + name: 'HPE Synergy: Datacenter [{#NAME}]: Add error' + priority: AVERAGE + description: 'The adding of the datacenter [{#NAME}] has failed.' + tags: + - tag: scope + value: notice + - uuid: 896d145d3e3e49719a1b8e01117a5987 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.datacenter["{#NAME}",state])=3' + name: 'HPE Synergy: Datacenter [{#NAME}]: Has credential error' + priority: AVERAGE + description: 'The datacenter [{#NAME}] has a credential error.' + tags: + - tag: scope + value: notice + - uuid: 8ecd353d5f0742aaabd6f65d9a7b8897 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.datacenter["{#NAME}",state])=5' + name: 'HPE Synergy: Datacenter [{#NAME}]: Has refresh error' + priority: AVERAGE + description: 'The datacenter [{#NAME}] has a refresh error.' + tags: + - tag: scope + value: availability + - uuid: 091237538cab4e35a19c0f76b9c50539 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.datacenter["{#NAME}",state])=7' + name: 'HPE Synergy: Datacenter [{#NAME}]: Has remove error' + priority: AVERAGE + description: 'The datacenter [{#NAME}] has a remove error.' + tags: + - tag: scope + value: notice + - uuid: b9b2a869c6364cbc8ac6eb3ff7511b29 + name: 'Datacenter [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.datacenter["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that a resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.datacenter["{#NAME}",data]' + tags: + - tag: component + value: datacenter + - tag: datacenter + value: '{#NAME}' + trigger_prototypes: + - uuid: 5dbb654f17f345de8279c8249eae3207 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.datacenter["{#NAME}",status])=0' + name: 'HPE Synergy: Datacenter [{#NAME}]: Has critical status' + priority: HIGH + description: 'The datacenter [{#NAME}] status is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: d04a24eceaad4741a877fdf1c58141c5 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.datacenter["{#NAME}",status])=4' + name: 'HPE Synergy: Datacenter [{#NAME}]: Has warning status' + priority: WARNING + description: 'The datacenter [{#NAME}] status is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 7c70db1e75df47aeb8b4f87a634abde9 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.datacenter["{#NAME}",status])=1' + name: 'HPE Synergy: Datacenter [{#NAME}]: Is disabled' + priority: INFO + description: 'the datacenter [{#NAME}] currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.datacenters + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 3cde01eb8cbb4977824dc4fd00c56a10 + name: 'Devices discovery' + type: DEPENDENT + key: hpe.synergy.devices.discovery + delay: '0' + description: 'A list of device bays in the enclosure.' + item_prototypes: + - uuid: 5c7b1315b123482e908229882b6e57c1 + name: 'Device [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.device["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the device [{#ENCLOSURE_NAME}:{#BAY_NUMBER}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#ENCLOSURE_NAME}")].deviceBays[?(@.bayNumber == "{#BAY_NUMBER}")].first()' + master_item: + key: hpe.synergy.get.enclosures + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: device + - tag: component + value: raw + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 38ecff044b1d4ff88f8e99b21998181a + name: 'Device [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Model' + type: DEPENDENT + key: 'hpe.synergy.device["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model name of an unsupported device occupying the bay if available.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.device["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: device + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 125d25085af54d509c6f2401a85042dc + name: 'Device [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Power allocated' + type: DEPENDENT + key: 'hpe.synergy.device["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",power_allocation]' + delay: '0' + units: W + description: 'The power allocated for the enclosed blade.' + preprocessing: + - type: JSONPATH + parameters: + - $.powerAllocationWatts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.device["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: device + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 9167abd4d23445eba156f2529cb5b827 + name: 'Device [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Presence' + type: DEPENDENT + key: 'hpe.synergy.device["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",presence]' + delay: '0' + description: | + Indicates whether a device is present: + + *Absent* - the device slot is empty; + *PresenceNoOp* - the device slot is uninitialized; + *PresenceUnknown* - the device presence is unknown; + *Present* - the device slot has a device in it; + *Subsumed* - the device slot is configured to be part of another device slot. Not applicable for the fan or power supply bays. + valuemap: + name: 'Device presence' + preprocessing: + - type: JSONPATH + parameters: + - $.devicePresence + - type: STR_REPLACE + parameters: + - Absent + - '0' + - type: STR_REPLACE + parameters: + - PresenceNoOp + - '1' + - type: STR_REPLACE + parameters: + - PresenceUnknown + - '2' + - type: STR_REPLACE + parameters: + - Present + - '3' + - type: STR_REPLACE + parameters: + - Subsumed + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.device["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: device + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: 37ccc7acfc56466cb1a0f31e11603bcc + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.device["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",presence])=4' + name: 'HPE Synergy: Device [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is subsumed' + priority: AVERAGE + description: 'The device slot is configured to be part of another device slot.' + tags: + - tag: scope + value: notice + - uuid: c2c012eab77d425da1c69f65a5078277 + name: 'Device [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Serial number' + type: DEPENDENT + key: 'hpe.synergy.device["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'If available, the serial number of any device occupying the bay.' + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.device["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: device + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + master_item: + key: hpe.synergy.get.enclosures + lld_macro_paths: + - lld_macro: '{#BAY_NUMBER}' + path: $.bayNumber + - lld_macro: '{#ENCLOSURE_NAME}' + path: $.enclosureName + preprocessing: + - type: JSONPATH + parameters: + - '$.members.[0].deviceBays' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 62f5e7c29207459c80163148a6231d8a + name: 'Enclosures discovery' + type: DEPENDENT + key: hpe.synergy.enclosures.discovery + delay: '0' + description: 'A list of enclosures resources.' + item_prototypes: + - uuid: fb5f6aaec9254d9b998d68d647321a28 + name: 'Enclosure [{#NAME}]: Appliance bays count' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",appliance_bay_count]' + delay: '0' + description: 'The number of the appliance bays in the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.applianceBayCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: appliance + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + - uuid: 2bdee9f0f6fa49928b4cef48b9900859 + name: 'Enclosure [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the enclosure [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.enclosures + tags: + - tag: component + value: enclosure + - tag: component + value: raw + - tag: enclosure + value: '{#NAME}' + - uuid: e0cc3af5e941491ebbb6227f2ece06a7 + name: 'Enclosure [{#NAME}]: Device bays count' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",device_bay_count]' + delay: '0' + description: 'The number of the device bays in the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.deviceBayCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: device + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + - uuid: e17e34afe0dd4e4ea2534b7762033a83 + name: 'Enclosure [{#NAME}]: Device bays power' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",device_bay_watts]' + delay: '0' + units: W + description: 'The amount of power allocated for the blades in the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.deviceBayWatts + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: device + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + - uuid: 732b7bbca90e458ead5558cea465f88e + name: 'Enclosure [{#NAME}]: Power allocated for fans and management devices' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",fans_mgmt_power]' + delay: '0' + units: W + description: 'The amount of the power allocated for the fans and management devices of the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.fansAndManagementDevicesWatts + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: fan + - tag: component + value: management + - tag: component + value: power + - tag: enclosure + value: '{#NAME}' + - uuid: d6af8f4c7cf04fe6a41c02e6ff50b98a + name: 'Enclosure [{#NAME}]: Fan bays count' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",fan_bay_count]' + delay: '0' + description: 'The number of the fan bays in the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.fanBayCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: fan + - tag: enclosure + value: '{#NAME}' + - uuid: 8e2740eea20d4a0fb42b0cef4c894fce + name: 'Enclosure [{#NAME}]: Firmware baseline' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",fw_baseline_name]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the current firmware baseline.' + preprocessing: + - type: JSONPATH + parameters: + - $.fwBaselineName + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + - uuid: 145729f95cfe42f0a8e8308b856a03a2 + name: 'Enclosure [{#NAME}]: Interconnect bays count' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",interconnect_bay_count]' + delay: '0' + description: 'The number of the interconnect bays in the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.interconnectBayCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: interconnect + - tag: enclosure + value: '{#NAME}' + - uuid: 153278ea2f8940d18024f220d922130a + name: 'Enclosure [{#NAME}]: Interconnect bays power' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",interconnect_bay_watts]' + delay: '0' + units: W + description: 'The amount of power allocated for the interconnects in the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.interconnectBayWatts + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: interconnect + - tag: enclosure + value: '{#NAME}' + - uuid: 8685fbee85b2412b8c53dc82209ca90a + name: 'Enclosure [{#NAME}]: Min power supplies' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",min_ps]' + delay: '0' + description: 'The minimum number of the power supplies needed.' + preprocessing: + - type: JSONPATH + parameters: + - $.minimumPowerSupplies + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: power + - tag: enclosure + value: '{#NAME}' + - uuid: 7adece9356e04a7db4e35fa1e1979e78 + name: 'Enclosure [{#NAME}]: Min power supplies for redundant power feed' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",min_ps_redundant]' + delay: '0' + description: 'The minimum number of the power supplies needed to fulfill the redundant line feed power mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.minimumPowerSuppliesForRedundantPowerFeed + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: power + - tag: enclosure + value: '{#NAME}' + - uuid: 19447ecdba484d04aff2ff3c90ccaef7 + name: 'Enclosure [{#NAME}]: Model' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The enclosure model name, for example, "BladeSystem c7000 Enclosure G2.' + preprocessing: + - type: JSONPATH + parameters: + - $.enclosureModel + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + - uuid: 2ff00b9a0e2446a88aefc5cd62ca8763 + name: 'Enclosure [{#NAME}]: Part number' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The part number of the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.partNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + - uuid: 3c2bf0a14a9847c9925e52aa7e6815f1 + name: 'Enclosure [{#NAME}]: Power capacity' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",power_capacity]' + delay: '0' + units: W + description: 'The power capacity based on power mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.powerCapacityWatts + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: power + - tag: enclosure + value: '{#NAME}' + - uuid: 68ad000d8b4e4bd5b2778802426ec764 + name: 'Enclosure [{#NAME}]: Total allocated power' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",power_total_allocated]' + delay: '0' + units: W + description: 'The total amount of the power allocated in the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.powerAllocatedWatts + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: power + - tag: enclosure + value: '{#NAME}' + - uuid: af45f99643fa40429e8401bf150cd7a1 + name: 'Enclosure [{#NAME}]: Total available power' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",power_total_available]' + delay: '0' + units: W + description: 'The amount of the unallocated power in the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.powerAvailableWatts + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: power + - tag: enclosure + value: '{#NAME}' + - uuid: 820f177f59044d28a945642f36b6a193 + name: 'Enclosure [{#NAME}]: Power supply bays count' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",ps_bay_count]' + delay: '0' + description: 'The number of the power supply bays in the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.powerSupplyBayCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: component + value: power + - tag: enclosure + value: '{#NAME}' + - uuid: 4ee9c37fd5024e3d820f74fe174a42e7 + name: 'Enclosure [{#NAME}]: Serial number' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the enclosure.' + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + - uuid: d70426e6912f4128a58ba0f14dd3b5a0 + name: 'Enclosure [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",state]' + delay: '0' + description: | + The current resource state of the enclosure: + + *Adding* - the enclosure is being added; + *Configured* - the enclosure is configured and is a part of the logical enclosure. This is the usual state for an enclosure under full management; + *Configuring* - a transient state while the enclosure is being configured for a logical enclosure; + *Interrupted* - the previous operation on the enclosure did not complete. The operation should be re-attempted; + *Monitored* - the enclosure is being monitored. It is not a part of the logical enclosure and only hardware-control operations are available; + *Pending* - there are pending operations on the enclosure. Additional operations are denied; + *RemoveFailed* - the previous operation to remove the enclosure did not succeed. The operation should be re-attempted; + *Removing* - the enclosure is being removed; + *Unmanaged* - the enclosure has been discovered, but has not yet been added for the management or monitoring; + *Unsupported* - the enclosure model or version is not currently supported by HPE OneView. It cannot be configured or monitored. + valuemap: + name: 'Enclosure state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: STR_REPLACE + parameters: + - Adding + - '0' + - type: STR_REPLACE + parameters: + - Configured + - '1' + - type: STR_REPLACE + parameters: + - Configuring + - '2' + - type: STR_REPLACE + parameters: + - Interrupted + - '3' + - type: STR_REPLACE + parameters: + - Monitored + - '4' + - type: STR_REPLACE + parameters: + - Pending + - '5' + - type: STR_REPLACE + parameters: + - RemoveFailed + - '6' + - type: STR_REPLACE + parameters: + - Removing + - '7' + - type: STR_REPLACE + parameters: + - Unmanaged + - '8' + - type: STR_REPLACE + parameters: + - Unsupported + - '9' + - type: IN_RANGE + parameters: + - '0' + - '9' + error_handler: CUSTOM_VALUE + error_handler_params: '10' + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + - uuid: 6947d7dc74744e05a5b2fbd6ae918f16 + name: 'Enclosure [{#NAME}]: State reason' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",state_reason]' + delay: '0' + description: | + Indicates the reason why the resource in its current state: + + *Missing* - the enclosure is no longer connected into the frame link topology; + *None* - no reason is available, or none applies; + *NotAdded* - the enclosure has not been added; + *NotOwner* - the enclosure reports being managed by something other than this HPE OneView; + *OperationFailed* - a prior operation was interrupted; + *Unowned* - the enclosure reports are not being under the management; + *UnsupportedFirmware* - the firmware version of the enclosure is not supported by this version of HPE OneView; + *UpdatingFirmware* - a firmware update is in progress. + valuemap: + name: 'State reason' + preprocessing: + - type: JSONPATH + parameters: + - $.stateReason + - type: STR_REPLACE + parameters: + - Missing + - '0' + - type: STR_REPLACE + parameters: + - None + - '1' + - type: STR_REPLACE + parameters: + - NotAdded + - '2' + - type: STR_REPLACE + parameters: + - NotOwner + - '3' + - type: STR_REPLACE + parameters: + - OperationFailed + - '4' + - type: STR_REPLACE + parameters: + - Unowned + - '5' + - type: STR_REPLACE + parameters: + - UnsupportedFirmware + - '6' + - type: STR_REPLACE + parameters: + - UpdatingFirmware + - '7' + - type: IN_RANGE + parameters: + - '0' + - '7' + error_handler: CUSTOM_VALUE + error_handler_params: '8' + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: 61f81dcbb3c74f14982bd29b78f6a57b + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",state_reason])=0' + name: 'HPE Synergy: Enclosure [{#NAME}]: Is missing' + priority: AVERAGE + description: 'The enclosure is no longer connected into the frame link topology.' + tags: + - tag: scope + value: availability + - uuid: 6101e612efa54715a72263b4ea9d5b7d + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",state_reason])=5' + name: 'HPE Synergy: Enclosure [{#NAME}]: Is unowned' + priority: AVERAGE + description: 'The enclosure reports are not being under the management.' + tags: + - tag: scope + value: availability + - uuid: a22c6445c8e9491bbd0e08ba63c37659 + name: 'Enclosure [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the enclosure. + The enclosure status reflects the hardware health of the enclosure, all the bays, and the enclosure components (e.g. the enclosure mid-plane, fans, power supplies, Synergy Frame Link Modules, and Synergy Composers). It explicitly does not include the status of the other HPE OneView resources such as the blades (server hardware), the interconnects, and the drive enclosures. + + *Critical* - requires immediate attention. + *Disabled* - the resource is currently not operational. + *OK* - indicates normal/informational behavior. + *Unknown* - the health status is not yet known or cannot be determined. + *Warning* - requires attention soon. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: 862f37cbe3b144b5ae70998bf7406497 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",status])=0' + name: 'HPE Synergy: Enclosure [{#NAME}]: Has critical status' + priority: HIGH + description: 'The status of the enclosure [{#NAME}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 50f4cfc199564b26bf575d88ec5ba57e + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",status])=4' + name: 'HPE Synergy: Enclosure [{#NAME}]: Has warning status' + priority: WARNING + description: 'The status of the enclosure [{#NAME}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: c3ce50cdb5374904970903c082a98f72 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",status])=1' + name: 'HPE Synergy: Enclosure [{#NAME}]: Is disabled' + priority: INFO + description: 'The enclosure [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: availability + - uuid: 66d773b8d4794752b3ff9b5913ee32f2 + name: 'Enclosure [{#NAME}]: Type' + type: DEPENDENT + key: 'hpe.synergy.enclosure["{#NAME}",type]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The type of the enclosure, for example, "C7000" or "SY12000" or "SDX".' + preprocessing: + - type: JSONPATH + parameters: + - $.enclosureType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.synergy.enclosure["{#NAME}",data]' + tags: + - tag: component + value: enclosure + - tag: enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: 7cd90689dd8147949b1da375b055c71f + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",state])=3 and last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",state_reason])>-1' + name: 'HPE Synergy: Enclosure [{#NAME}]: Is interrupted' + opdata: 'Reason: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The previous operation on the enclosure did not complete. The operation should be re-attempted.' + tags: + - tag: scope + value: notice + - uuid: 7bfc1a8cde3349cba772a6217df3e275 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",state])=9 and last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",state_reason])>-1' + name: 'HPE Synergy: Enclosure [{#NAME}]: Is unsupported' + opdata: 'Reason: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The enclosure model or version is not currently supported by HPE OneView. It cannot be configured or monitored.' + tags: + - tag: scope + value: availability + - uuid: ef82fad1874d4dd5918d9c33323b6ae6 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",state])=6 and last(/HPE Synergy by HTTP/hpe.synergy.enclosure["{#NAME}",state_reason])>-1' + name: 'HPE Synergy: Enclosure [{#NAME}]: Remove failed' + opdata: 'Reason: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The previous operation to remove the enclosure did not succeed. The operation should be re-attempted.' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 1f9d74b503f14765ad6a054f604f3e28 + name: 'Enclosure [{#NAME}]: Power capacity' + graph_items: + - color: 199C0D + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.enclosure["{#NAME}",power_capacity]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.enclosure["{#NAME}",power_total_allocated]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.enclosure["{#NAME}",power_total_available]' + - sortorder: '3' + color: F7941D + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.enclosure["{#NAME}",fans_mgmt_power]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.enclosure["{#NAME}",device_bay_watts]' + - sortorder: '5' + color: 6C59DC + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.enclosure["{#NAME}",interconnect_bay_watts]' + master_item: + key: hpe.synergy.get.enclosures + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 386a121cbef74d0d9f625eedd6ed291c + name: 'Ethernet networks discovery' + type: DEPENDENT + key: hpe.synergy.ethernet.networks.discovery + delay: '0' + description: 'A list of the ethernet networks.' + item_prototypes: + - uuid: 0176e96b210b4a778b0b4b9b6fabdf3b + name: 'Ethernet network [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.ethernet.network["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the ethernet network [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.ethernet_networks + tags: + - tag: component + value: network + - tag: component + value: raw + - tag: network + value: '{#NAME}' + - uuid: 9b69d74467d6440eb98fc6c69c2f6779 + name: 'Ethernet network [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.ethernet.network["{#NAME}",state]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current state of the resource.' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.ethernet.network["{#NAME}",data]' + tags: + - tag: component + value: network + - tag: network + value: '{#NAME}' + - uuid: ec1c0f1ec9f34c7aa1d6c9509e4fc6a7 + name: 'Ethernet network [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.ethernet.network["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.ethernet.network["{#NAME}",data]' + tags: + - tag: component + value: network + - tag: network + value: '{#NAME}' + trigger_prototypes: + - uuid: c658a58285184a82969b520d5be1f9b2 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.ethernet.network["{#NAME}",status])=0' + name: 'HPE Synergy: Ethernet network [{#NAME}]: Has critical status' + priority: HIGH + description: 'The ethernet network [{#NAME}] status is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 6881808352bd4588b42debf5f2703f69 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.ethernet.network["{#NAME}",status])=4' + name: 'HPE Synergy: Ethernet network [{#NAME}]: Has warning status' + priority: WARNING + description: 'The ethernet network [{#NAME}] status is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: eef185ab54584c069df2a4349dff9cc7 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.ethernet.network["{#NAME}",status])=1' + name: 'HPE Synergy: Ethernet network [{#NAME}]: Is disabled' + priority: INFO + description: 'The ethernet network [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.ethernet_networks + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 67c37bbfab9345d38ed5e576fdb7cb23 + name: 'Fabrics discovery' + type: DEPENDENT + key: hpe.synergy.fabrics.discovery + delay: '0' + description: 'A list of the fabrics.' + item_prototypes: + - uuid: 26e6e32676d74347abd8dbf92c649113 + name: 'Fabric [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.fabric["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the fabric [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.fabrics + tags: + - tag: component + value: fabric + - tag: component + value: raw + - tag: fabric + value: '{#NAME}' + - uuid: 9f38d17239ee45d4a22e8f08dde37910 + name: 'Fabric [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.fabric["{#NAME}",state]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current state of the resource.' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.fabric["{#NAME}",data]' + tags: + - tag: component + value: fabric + - tag: fabric + value: '{#NAME}' + - uuid: 82f8bedd589643d1954f329f5f10b9b9 + name: 'Fabric [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.fabric["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.fabric["{#NAME}",data]' + tags: + - tag: component + value: fabric + - tag: fabric + value: '{#NAME}' + trigger_prototypes: + - uuid: 5f67d217108d4e7fbfcaed29f0f8564f + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fabric["{#NAME}",status])=0' + name: 'HPE Synergy: Fabric [{#NAME}]: Has critical status' + priority: HIGH + description: 'The status of the fabric [{#NAME}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: c546f87158ee42ba8d76aa3fd6767efa + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fabric["{#NAME}",status])=4' + name: 'HPE Synergy: Fabric [{#NAME}]: Has warning status' + priority: WARNING + description: 'The status of the fabric [{#NAME}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: c963ad956b0644c394bd58dbbb05858a + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fabric["{#NAME}",status])=1' + name: 'HPE Synergy: Fabric [{#NAME}]: Is disabled' + priority: INFO + description: 'The status of the fabric [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.fabrics + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 5d5303b09c6e43748571c9ea247774be + name: 'Fans discovery' + type: DEPENDENT + key: hpe.synergy.fans.discovery + delay: '0' + description: 'A list of the fan bays in the enclosure.' + item_prototypes: + - uuid: 1ee7ddcfd9734abbaef8dc345f9eb85d + name: 'Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#ENCLOSURE_NAME}")].fanBays[?(@.bayNumber == "{#BAY_NUMBER}")].first()' + master_item: + key: hpe.synergy.get.enclosures + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: fan + - tag: component + value: raw + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 8449918637ab4f98932ca75d859546b2 + name: 'Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Model' + type: DEPENDENT + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The common descriptive model of the fan.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: fan + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 539f8b373baf46d7bcde5fc090f02284 + name: 'Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Part number' + type: DEPENDENT + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The part number of the fan.' + preprocessing: + - type: JSONPATH + parameters: + - $.partNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: fan + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: eb7ad5fc3d4947eda9642c2a2d440796 + name: 'Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Presence' + type: DEPENDENT + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",presence]' + delay: '0' + description: | + Indicates whether a fan is present: + + *Absent* - the device slot is empty; + *PresenceNoOp* - the device slot is uninitialized; + *PresenceUnknown* - the device presence is unknown; + *Present* - the device slot has a device in it; + *Subsumed* - the device slot is configured to be part of another device slot. Not applicable for the fan or power supply bays. + valuemap: + name: 'Device presence' + preprocessing: + - type: JSONPATH + parameters: + - $.devicePresence + - type: STR_REPLACE + parameters: + - Absent + - '0' + - type: STR_REPLACE + parameters: + - PresenceNoOp + - '1' + - type: STR_REPLACE + parameters: + - PresenceUnknown + - '2' + - type: STR_REPLACE + parameters: + - Present + - '3' + - type: STR_REPLACE + parameters: + - Subsumed + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: fan + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 6782d5441add454384b41d9ede2a8cf2 + name: 'Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Required' + type: DEPENDENT + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",required]' + delay: '0' + description: 'Indicates whether the enclosure configuration requires a fan to be present in the bay.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - $.deviceRequired + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: fan + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 16a8b59afdf04df1a070e1249fdd1a61 + name: 'Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Serial number' + type: DEPENDENT + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the fan.' + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: fan + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 4e6338579bea4bb7acb06e57d55365e5 + name: 'Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Spare part number' + type: DEPENDENT + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",spare_part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The spare part number to be used when ordering an additional or replacement fan of this type.' + preprocessing: + - type: JSONPATH + parameters: + - $.sparePartNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: fan + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 19171c26420f4cd894509a817c3245d8 + name: 'Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: State' + type: DEPENDENT + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",state]' + delay: '0' + description: | + The current state of the fan: + + *Degraded* - a fan is degraded; + *Failed* - a fan has failed; + *Misplaced* - a fan is present, but not required in this bay, and the overall fan configuration is not compliant with the enclosure fan placement rules; + *Missing* - a fan is required, but is not present; + *OK* - a fan bay has no issues; + *Unknown* - the state of a fan is unknown. + valuemap: + name: 'Resource state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + error_handler: CUSTOM_VALUE + error_handler_params: '5' + - type: STR_REPLACE + parameters: + - Degraded + - '0' + - type: STR_REPLACE + parameters: + - Failed + - '1' + - type: STR_REPLACE + parameters: + - Misplaced + - '2' + - type: STR_REPLACE + parameters: + - Missing + - '3' + - type: STR_REPLACE + parameters: + - OK + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '5' + master_item: + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: fan + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: cc28f87bd5b445c3abd07af689d8ee74 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",state])=0' + name: 'HPE Synergy: Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is degraded' + priority: AVERAGE + description: 'The fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is in degraded state.' + tags: + - tag: scope + value: availability + - uuid: 113096666e074f8eadab59c0250968af + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",state])=1' + name: 'HPE Synergy: Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is failed' + priority: HIGH + description: 'The fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is in failed state.' + tags: + - tag: scope + value: availability + - uuid: 63589098cc6b4e9ea7e7855e5a6b980e + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",state])=2' + name: 'HPE Synergy: Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is misplaced' + priority: WARNING + description: 'The fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is misplaced.' + tags: + - tag: scope + value: availability + - uuid: 6b89f74f468942f789f75fdbb2b6cee6 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",state])=3' + name: 'HPE Synergy: Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is missing' + priority: AVERAGE + description: 'The fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is missing.' + tags: + - tag: scope + value: availability + - uuid: e9ac8ad873a04d549ed492b1c23966cb + name: 'Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Status' + type: DEPENDENT + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status]' + delay: '0' + description: | + The overall health status of the fan: + + *Critical* - requires immediate attention; + *Disabled* - the resource is currently not operational; + *OK* - indicates normal/informational behavior; + *Unknown* - the health status is not yet known or cannot be determined; + *Warning* - requires attention soon. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: fan + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: 6b7b21cc6a3144edaf5fb3da2b54370f + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=0' + name: 'HPE Synergy: Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Has critical status' + priority: HIGH + description: 'The fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] status is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 168ea39107c748d0b7008b4525ff4504 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=4' + name: 'HPE Synergy: Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Has warning status' + priority: WARNING + description: 'The fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] status is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 41296079847b49d285e395e77f920e06 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fan["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=1' + name: 'HPE Synergy: Fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is disabled' + priority: INFO + description: 'The fan [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.enclosures + lld_macro_paths: + - lld_macro: '{#BAY_NUMBER}' + path: $.bayNumber + - lld_macro: '{#ENCLOSURE_NAME}' + path: $.enclosureName + preprocessing: + - type: JSONPATH + parameters: + - '$.members.[0].fanBays' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 100519374fc94a4487a871224c483229 + name: 'FC networks discovery' + type: DEPENDENT + key: hpe.synergy.fc.networks.discovery + delay: '0' + description: 'A list of the FC networks.' + item_prototypes: + - uuid: 75ca293f7deb4d7faa669f141478f1d7 + name: 'FC network [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.fc.network["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the FC network [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.fc_networks + tags: + - tag: component + value: fc-network + - tag: component + value: raw + - tag: fc-network + value: '{#NAME}' + - uuid: 1defd79827204bbcaffe79cd7a9df059 + name: 'FC network [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.fc.network["{#NAME}",state]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current state of the resource.' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.fc.network["{#NAME}",data]' + tags: + - tag: component + value: fc-network + - tag: fc-network + value: '{#NAME}' + - uuid: db0c86d17310421088cad2853d35c177 + name: 'FC network [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.fc.network["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.fc.network["{#NAME}",data]' + tags: + - tag: component + value: fc-network + - tag: fc-network + value: '{#NAME}' + trigger_prototypes: + - uuid: 38b9aba3f57f4b779f26dcf3d53090cf + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fc.network["{#NAME}",status])=0' + name: 'HPE Synergy: FC network [{#NAME}]: Has critical status' + priority: HIGH + description: 'The FC network [{#NAME}] status is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: edf33e3c732442c6ac3327e995d0919e + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fc.network["{#NAME}",status])=4' + name: 'HPE Synergy: FC network [{#NAME}]: Has warning status' + priority: WARNING + description: 'The FC network [{#NAME}] status is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 518a795f68bf4b81ac17332f511ffdb5 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.fc.network["{#NAME}",status])=1' + name: 'HPE Synergy: FC network [{#NAME}]: Is disabled' + priority: INFO + description: 'The FC network [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.fc_networks + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 0ac7b7355249475eac517cbc9ac8ba83 + name: 'Managers discovery' + type: DEPENDENT + key: hpe.synergy.frame_link_modules.discovery + delay: '0' + description: 'A list of the Synergy Frame Link Module bays.' + item_prototypes: + - uuid: 53c899a616a24fc4990363d3f2942417 + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#ENCLOSURE_NAME}")].managerBays[?(@.bayNumber == "{#BAY_NUMBER}")].first()' + master_item: + key: hpe.synergy.get.enclosures + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: component + value: raw + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 64e7f977edf34338aa74e8acc88d98fd + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Firmware version' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",fw_version]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The firmware version of the manager.' + preprocessing: + - type: JSONPATH + parameters: + - $.fwVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: c34aade5cdf1469cbab8fe97ede864ea + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Link port state' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",link_port_state]' + delay: '0' + description: | + The state of the LINK port: + + *Disabled* - the port is disabled; + *Linked* - the port is linked; + *Unlinked* - the port is unlinked. + valuemap: + name: 'Link port state' + preprocessing: + - type: JSONPATH + parameters: + - $.linkPortState + - type: STR_REPLACE + parameters: + - Disabled + - '0' + - type: STR_REPLACE + parameters: + - Linked + - '1' + - type: STR_REPLACE + parameters: + - Unlinked + - '2' + - type: IN_RANGE + parameters: + - '0' + - '2' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: ca60cadc2c0f44e7a281e956bc34d1da + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Link port status' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",link_port_status]' + delay: '0' + description: | + The status of the LINK port: + + *Critical* - requires immediate attention; + *Disabled* - the resource is currently not operational; + *OK* - indicates normal/informational behavior; + *Unknown* - the health status is not yet known or cannot be determined; + *Warning* - requires attention soon. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.linkPortStatus + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: d0a6196dc2984373916bbb857687d398 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",link_port_status])=0' + name: 'HPE Synergy: Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Link port has critical status' + priority: HIGH + description: 'The link port status of the manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 73fd558563794741b1416fb73ba4f173 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",link_port_status])=4' + name: 'HPE Synergy: Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Link port has warning status' + priority: WARNING + description: 'The link port status of the manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: ab5f51fe1dcd4a859ffb3dff66450b33 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",link_port_status])=1' + name: 'HPE Synergy: Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Link port is disabled' + priority: INFO + description: 'The link port of the manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is currently not operational.' + tags: + - tag: scope + value: capacity + - uuid: b636ea6e5d994e728579cd5d479fe298 + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: MGMT port state' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",mgmt_port_state]' + delay: '0' + description: | + The state of the MGMT port: + + *Active* - the port is in active mode; + *Disabled* - the port is in disabled mode; + *I3s* - the port is configured for the deployment of an OS network traffic. + *Other* - the port is in other mode; + *Standby* - the port is in standby mode; + *Unknown* - the mode of the port is not known. + valuemap: + name: 'MGMT port state' + preprocessing: + - type: JSONPATH + parameters: + - $.mgmtPortState + - type: STR_REPLACE + parameters: + - Active + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - I3s + - '2' + - type: STR_REPLACE + parameters: + - Other + - '3' + - type: STR_REPLACE + parameters: + - Standby + - '4' + - type: STR_REPLACE + parameters: + - Unknown + - '5' + - type: IN_RANGE + parameters: + - '0' + - '5' + error_handler: CUSTOM_VALUE + error_handler_params: '5' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 41a66b669b15425796f1dce9b46545c5 + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: MGMT port status' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",mgmt_port_status]' + delay: '0' + description: | + The status of the MGMT port: + + *Critical* - requires immediate attention; + *Disabled* - the resource is currently not operational; + *OK* - indicates normal/informational behavior; + *Unknown* - the health status is not yet known or cannot be determined; + *Warning* - requires attention soon. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.mgmtPortStatus + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: 514ecd9c1bbd4821ad84e5ddb042d0c6 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",mgmt_port_status])=0' + name: 'HPE Synergy: Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: MGMT port has critical status' + priority: HIGH + description: 'The MGMT port status of the manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 7dd75b26c54d41228199ee9e810272bc + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",mgmt_port_status])=4' + name: 'HPE Synergy: Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: MGMT port has warning status' + priority: WARNING + description: 'The MGMT port status of the manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 1b7b8409bc394f22b940c09e56b3fa5c + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",mgmt_port_status])=1' + name: 'HPE Synergy: Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: MGMT port is disabled' + priority: INFO + description: 'The MGMT port of the manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is currently not operational.' + tags: + - tag: scope + value: notice + - uuid: 99281bb985fe46c6ac9328e2e491665e + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Model' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model of the link module.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 90a8d8e504834e4393c3fa0bbcb5e802 + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Part number' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The part number of the link module.' + preprocessing: + - type: JSONPATH + parameters: + - $.partNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 4a9f6da6f67545fb9ed5a8333bd1b303 + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Presence' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",presence]' + delay: '0' + description: | + Indicates whether a manager is present in the bay: + + *Absent* - the device slot is empty; + *PresenceNoOp* - the device slot is uninitialized; + *PresenceUnknown* - the device presence is unknown; + *Present* - the device slot has a device in it; + *Subsumed* - the device slot is configured to be part of another device slot. Not applicable for the fan or power supply bays. + valuemap: + name: 'Device presence' + preprocessing: + - type: JSONPATH + parameters: + - $.devicePresence + - type: STR_REPLACE + parameters: + - Absent + - '0' + - type: STR_REPLACE + parameters: + - PresenceNoOp + - '1' + - type: STR_REPLACE + parameters: + - PresenceUnknown + - '2' + - type: STR_REPLACE + parameters: + - Present + - '3' + - type: STR_REPLACE + parameters: + - Subsumed + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: d47706453e8944e497ff01feaaa19aab + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",presence])=4' + name: 'HPE Synergy: Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is subsumed' + priority: AVERAGE + description: 'The device slot is configured to be part of another device slot.' + tags: + - tag: scope + value: notice + - uuid: 1d9ac1bcc74048df8358c148c3ed9ce4 + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Serial number' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the link module.' + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: c6ee7ec806e04600b6826dbb373bcafe + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Spare part number' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",spare_part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The spare part number of the link module.' + preprocessing: + - type: JSONPATH + parameters: + - $.sparePartNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 0f72a6c8e89b4ea0b66bb0becae93bb1 + name: 'Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Status' + type: DEPENDENT + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status]' + delay: '0' + description: | + The health status of the link module: + + *Critical* - requires immediate attention; + *Disabled* - the resource is currently not operational; + *OK* - indicates normal/informational behavior; + *Unknown* - the health status is not yet known or cannot be determined; + *Warning* - requires attention soon. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: manager + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: c1d8fa7ff1fe444aaefdffdcda810e5c + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=0' + name: 'HPE Synergy: Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Has critical status' + priority: HIGH + description: 'The status of the manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 44b30472c18a49cf9c0f7bb2f30fd184 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=4' + name: 'HPE Synergy: Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Has warning status' + priority: WARNING + description: 'The status of the manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 34dd6fb0ed264192b7d1b46ba2778b16 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.manager["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=1' + name: 'HPE Synergy: Manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is disabled' + priority: INFO + description: 'The manager [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is currently not operational.' + tags: + - tag: scope + value: notice + master_item: + key: hpe.synergy.get.enclosures + lld_macro_paths: + - lld_macro: '{#BAY_NUMBER}' + path: $.bayNumber + - lld_macro: '{#ENCLOSURE_NAME}' + path: $.enclosureName + preprocessing: + - type: JSONPATH + parameters: + - '$.members.[0].managerBays' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 6d77748c49de4c6c9c0319a52bec29fc + name: 'Hypervisor managers discovery' + type: DEPENDENT + key: hpe.synergy.hypervisor.managers.discovery + delay: '0' + description: 'A list of the hypervisor managers.' + item_prototypes: + - uuid: c6ba70270a424762bb8baf9531f44ed9 + name: 'Hypervisor manager [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.hypervisor_manager["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the hypervisor manager [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.displayName == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.hypervisor_managers + tags: + - tag: component + value: hypervisor-manager + - tag: component + value: raw + - tag: hypervisor-manager + value: '{#NAME}' + - uuid: a60a72ddc0de4a9c9b0b7be53542089c + name: 'Hypervisor manager [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.hypervisor_manager["{#NAME}",state]' + delay: '0' + description: 'The current state of the resource. The valid values include Connected, Disconnected, Configuring and Error.' + valuemap: + name: 'Hypervisor manager state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: STR_REPLACE + parameters: + - Connected + - '0' + - type: STR_REPLACE + parameters: + - Disconnected + - '1' + - type: STR_REPLACE + parameters: + - Configuring + - '2' + - type: STR_REPLACE + parameters: + - Error + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + master_item: + key: 'hpe.synergy.hypervisor_manager["{#NAME}",data]' + tags: + - tag: component + value: hypervisor-manager + - tag: hypervisor-manager + value: '{#NAME}' + - uuid: 2f0874b4d0464fc58d64c12a04b8d738 + name: 'Hypervisor manager [{#NAME}]: State reason' + type: DEPENDENT + key: 'hpe.synergy.hypervisor_manager["{#NAME}",state_reason]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the reason why the resource is in its current state.' + preprocessing: + - type: JSONPATH + parameters: + - $.stateReason + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.hypervisor_manager["{#NAME}",data]' + tags: + - tag: component + value: hypervisor-manager + - tag: hypervisor-manager + value: '{#NAME}' + - uuid: e5ec285a6c74478d903284ecb67d3f96 + name: 'Hypervisor manager [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.hypervisor_manager["{#NAME}",status]' + delay: '0' + description: | + The current status of this resource: + + *Critical* - requires immediate attention; + *Disabled* - the resource is currently not operational; + *OK* - indicates normal/informational behavior; + *Unknown* - the health status is not yet known or cannot be determined; + *Warning* - requires attention soon. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.hypervisor_manager["{#NAME}",data]' + tags: + - tag: component + value: hypervisor-manager + - tag: hypervisor-manager + value: '{#NAME}' + trigger_prototypes: + - uuid: a942a7ddfad14bb08915c7ba6c3248bc + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.hypervisor_manager["{#NAME}",status])=0' + name: 'HPE Synergy: Hypervisor manager [{#NAME}]: Has critical status' + priority: HIGH + description: 'The hypervisor manager [{#NAME}] status is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: d81f11c478484d77a64049a2716865b4 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.hypervisor_manager["{#NAME}",status])=4' + name: 'HPE Synergy: Hypervisor manager [{#NAME}]: Has warning status' + priority: WARNING + description: 'The hypervisor manager [{#NAME}] status is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: ea85e02ebac94ab2821659c88eb5363c + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.hypervisor_manager["{#NAME}",status])=1' + name: 'HPE Synergy: Hypervisor manager [{#NAME}]: Is disabled' + priority: INFO + description: 'The hypervisor manager [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: availability + trigger_prototypes: + - uuid: fd90d819f10d43cc9b18ae5e5ee96b66 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.hypervisor_manager["{#NAME}",state])=3 and length(last(/HPE Synergy by HTTP/hpe.synergy.hypervisor_manager["{#NAME}",state_reason]))>0' + name: 'HPE Synergy: Hypervisor manager [{#NAME}]: Is in error state' + opdata: 'Reason: {ITEM.LASTVALUE2}' + priority: HIGH + description: 'The hypervisor manager [{#NAME}] has an error.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.hypervisor_managers + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.displayName + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: c05507c8d82f4354a813670620298732 + name: 'Interconnects discovery' + type: DEPENDENT + key: hpe.synergy.interconnects.discovery + delay: '0' + description: 'Interconnects are centrally managed by their containing logical interconnect. The interconnect provides a physical view of a detailed downlink and uplink port state and configuration, including the current link state, speed, port role (uplink, downlink, or stacking), current pluggable media, power state, and immediate connected neighbor.' + item_prototypes: + - uuid: 5c504f8c744244febae87002cd520cbd + name: 'Interconnect [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.interconnect["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the interconnect [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.interconnects + tags: + - tag: component + value: interconnect + - tag: component + value: raw + - tag: interconnect + value: '{#NAME}' + - uuid: dc4822f158da4577a47ec4cf920b9b90 + name: 'Interconnect [{#NAME}]: Hardware health' + type: DEPENDENT + key: 'hpe.synergy.interconnect["{#NAME}",hw.health]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The health status of the interconnect hardware.' + preprocessing: + - type: JSONPATH + parameters: + - $.interconnectHardwareHealth + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.interconnect["{#NAME}",data]' + tags: + - tag: component + value: health + - tag: component + value: interconnect + - tag: interconnect + value: '{#NAME}' + - uuid: 7113bba95f38421a8bcffe77f9a3944d + name: 'Interconnect [{#NAME}]: Model' + type: DEPENDENT + key: 'hpe.synergy.interconnect["{#NAME}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The interconnect model.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.interconnect["{#NAME}",data]' + tags: + - tag: component + value: interconnect + - tag: interconnect + value: '{#NAME}' + - uuid: d3e8fc007d5e4adf899fdb3d0f786fb1 + name: 'Interconnect [{#NAME}]: Part number' + type: DEPENDENT + key: 'hpe.synergy.interconnect["{#NAME}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The part number of the interconnect.' + preprocessing: + - type: JSONPATH + parameters: + - $.partNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.interconnect["{#NAME}",data]' + tags: + - tag: component + value: interconnect + - tag: interconnect + value: '{#NAME}' + - uuid: c2e482f840184c278c09017623fd96d1 + name: 'Interconnect [{#NAME}]: Port count' + type: DEPENDENT + key: 'hpe.synergy.interconnect["{#NAME}",port_count]' + delay: '0' + description: 'The number of ports on the interconnect.' + preprocessing: + - type: JSONPATH + parameters: + - $.portCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.interconnect["{#NAME}",data]' + tags: + - tag: component + value: interconnect + - tag: interconnect + value: '{#NAME}' + - uuid: 27e4c424f81940b1958e0455042bf3d3 + name: 'Interconnect [{#NAME}]: Serial number' + type: DEPENDENT + key: 'hpe.synergy.interconnect["{#NAME}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the interconnect.' + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.interconnect["{#NAME}",data]' + tags: + - tag: component + value: interconnect + - tag: interconnect + value: '{#NAME}' + - uuid: 8232b536d74846d7a90ce19400418a36 + name: 'Interconnect [{#NAME}]: Spare part number' + type: DEPENDENT + key: 'hpe.synergy.interconnect["{#NAME}",spare_part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The spare part number of the interconnect.' + preprocessing: + - type: JSONPATH + parameters: + - $.sparePartNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.interconnect["{#NAME}",data]' + tags: + - tag: component + value: interconnect + - tag: interconnect + value: '{#NAME}' + - uuid: bd97faaf4a4c47a1a87d97650d65a375 + name: 'Interconnect [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.interconnect["{#NAME}",state]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current state of the resource.' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.interconnect["{#NAME}",data]' + tags: + - tag: component + value: interconnect + - tag: interconnect + value: '{#NAME}' + - uuid: ac234400f7324bbea2c736c6f7afd131 + name: 'Interconnect [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.interconnect["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.interconnect["{#NAME}",data]' + tags: + - tag: component + value: interconnect + - tag: interconnect + value: '{#NAME}' + trigger_prototypes: + - uuid: ccc001583dc6478aa3569b14b65be97d + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.interconnect["{#NAME}",status])=0' + name: 'HPE Synergy: Interconnect [{#NAME}]: Has critical status' + priority: HIGH + description: 'The interconnect [{#NAME}] status is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: a6d1c63e2aa04c71bac2eaef5b693110 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.interconnect["{#NAME}",status])=4' + name: 'HPE Synergy: Interconnect [{#NAME}]: Has warning status' + priority: WARNING + description: 'The interconnect [{#NAME}] status is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 6649436c06c345f8a394356e8a4fe546 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.interconnect["{#NAME}",status])=1' + name: 'HPE Synergy: Interconnect [{#NAME}]: Is disabled' + priority: INFO + description: 'The interconnect [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.interconnects + lld_macro_paths: + - lld_macro: '{#ENCLOSURE_NAME}' + path: $.enclosureName + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: eae31026740c4de299a5e52753eb9445 + name: 'Logical enclosures discovery' + type: DEPENDENT + key: hpe.synergy.logical_enclosures.discovery + delay: '0' + description: 'A list of the logical enclosures.' + item_prototypes: + - uuid: 96e5588599854754b9c7513c6786d9a6 + name: 'Logical enclosure [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.logical_enclosure["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the logical enclosure [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.logical_enclosures + tags: + - tag: component + value: logical-enclosure + - tag: component + value: raw + - tag: logical-enclosure + value: '{#NAME}' + - uuid: 785f3a94e8614810b7ccc84be779ad1d + name: 'Logical enclosure [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.logical_enclosure["{#NAME}",state]' + delay: '0' + description: | + The current resource state of the logical enclosure: + + *Consistent* - this is the expected state of the logical enclosure. The logical enclosure configuration is consistent with the enclosure group, and the configuration of the hardware resources is consistent with the logical enclosure configuration; + *Creating* - the logical enclosure is being created; + *DeleteFailed* - the prior attempt to delete the logical enclosure failed. Retry the delete operation potentially with the force option. No other logical enclosure operations are allowed in this state; + *Deleting* - the logical enclosure is being deleted; + *Inconsistent* - the configuration of the logical enclosure differs from that of the enclosure group, or the configuration of the hardware resources is inconsistent with the logical enclosure configuration. Perform an Update from group, Reapply configuration, or Update firmware action as an appropriate to bring the configuration back into consistency; + *Updating* - configuration changes are being applied to the hardware configuration. + valuemap: + name: 'Logical enclosure state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: STR_REPLACE + parameters: + - Inconsistent + - '0' + - type: STR_REPLACE + parameters: + - Creating + - '1' + - type: STR_REPLACE + parameters: + - DeleteFailed + - '2' + - type: STR_REPLACE + parameters: + - Deleting + - '3' + - type: STR_REPLACE + parameters: + - Consistent + - '4' + - type: STR_REPLACE + parameters: + - Updating + - '5' + - type: IN_RANGE + parameters: + - '0' + - '5' + error_handler: CUSTOM_VALUE + error_handler_params: '6' + master_item: + key: 'hpe.synergy.logical_enclosure["{#NAME}",data]' + tags: + - tag: component + value: logical-enclosure + - tag: logical-enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: 1c17c2f49bea47bc978698e4b8d8281b + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.logical_enclosure["{#NAME}",state])=2' + name: 'HPE Synergy: Logical enclosure [{#NAME}]: Delete failed' + priority: AVERAGE + description: 'Indicator that the deletion of a logical enclosure failed.' + tags: + - tag: scope + value: availability + - uuid: 85354d24f47d45f48c5dda86b9f22fe3 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.logical_enclosure["{#NAME}",state])=0' + name: 'HPE Synergy: Logical enclosure [{#NAME}]: Is inconsistent' + priority: AVERAGE + description: 'The configuration of the logical enclosure differs from that of the enclosure group, or the configuration of the hardware resources is inconsistent with the logical enclosure configuration. Perform an Update from group, Reapply configuration, or Update firmware action as an appropriate to bring the configuration back into consistency.' + tags: + - tag: scope + value: availability + - uuid: 0f1e0448aeaf464cb608d576eb42a481 + name: 'Logical enclosure [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.logical_enclosure["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.logical_enclosure["{#NAME}",data]' + tags: + - tag: component + value: logical-enclosure + - tag: logical-enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: b3af6beba595455eb7774b3c609e9108 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.logical_enclosure["{#NAME}",status])=0' + name: 'HPE Synergy: Logical enclosure [{#NAME}]: Has critical status' + priority: HIGH + description: 'The status of the logical enclosure [{#NAME}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 32061fadb9c74abab1a1d1371e2cf3e8 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.logical_enclosure["{#NAME}",status])=4' + name: 'HPE Synergy: Logical enclosure [{#NAME}]: Has warning status' + priority: WARNING + description: 'The status of the logical enclosure [{#NAME}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: c7ec2fb26b794b28b99eb321a3201fce + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.logical_enclosure["{#NAME}",status])=1' + name: 'HPE Synergy: Logical enclosure [{#NAME}]: Is disabled' + priority: INFO + description: 'The logical enclosure [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.logical_enclosures + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b800eed59653494cb5383e91627f0ef7 + name: 'nPar discovery' + type: DEPENDENT + key: hpe.synergy.npar.discovery + delay: '0' + description: 'Electrically isolated hardware partition (nPar). Partition details are relevant only for enclosures with type "SDX".' + item_prototypes: + - uuid: 440aa83c441d490491b12ef31675428e + name: 'Partition [{#ENCLOSURE_NAME}:{#PARTITION_ID}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the partition [{#ENCLOSURE_NAME}:{#PARTITION_ID}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#ENCLOSURE_NAME}")].partitions[?(@.partitionID == "{#PARTITION_ID}")].first()' + master_item: + key: hpe.synergy.get.enclosures + tags: + - tag: component + value: partition + - tag: component + value: raw + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - tag: partition + value: '{#PARTITION_ID}' + - uuid: 8ee334ce899341a8b1292dd84d7b0af4 + name: 'Partition [{#ENCLOSURE_NAME}:{#PARTITION_ID}]: Devices count' + type: DEPENDENT + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",device_count]' + delay: '0' + description: 'The number of blades in the partition.' + preprocessing: + - type: JSONPATH + parameters: + - $.deviceCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: component + value: partition + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - tag: partition + value: '{#PARTITION_ID}' + - uuid: e090ef309a9a4f8a98d3c5e24bd53d4d + name: 'Partition [{#ENCLOSURE_NAME}:{#PARTITION_ID}]: Health' + type: DEPENDENT + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",health]' + delay: '0' + description: | + Indicates the health of the partition and the health of its owned resources (blades and IO bays) as reported by the firmware. If a problem is detected with one of the resources, the health of the partition is reported as Degraded. If all the resources in the partition are operating correctly, the health of the partition is reported as OK. + + *NparDegrade* - one or more resources in the partition are unhealthy. + *NparHealthInvalid* - a partition health is invalid. + *NparHealthMax* - a delimiter defined by the firmware. + *NparOk* - all the resources in the partition are healthy. + valuemap: + name: 'Partition health' + preprocessing: + - type: JSONPATH + parameters: + - $.partitionHealth + - type: STR_REPLACE + parameters: + - NparDegrade + - '0' + - type: STR_REPLACE + parameters: + - NparHealthInvalid + - '1' + - type: STR_REPLACE + parameters: + - NparHealthMax + - '2' + - type: STR_REPLACE + parameters: + - NparOk + - '3' + - type: IN_RANGE + parameters: + - '0' + - '3' + error_handler: CUSTOM_VALUE + error_handler_params: '4' + master_item: + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: component + value: health + - tag: component + value: partition + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - tag: partition + value: '{#PARTITION_ID}' + trigger_prototypes: + - uuid: 1c85a47cfa96487f8c338afe21ad7ce3 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",health])=0' + name: 'HPE Synergy: Partition [{#ENCLOSURE_NAME}:{#PARTITION_ID}]: Health is degraded' + priority: HIGH + description: 'One or more resources in the partition are unhealthy.' + tags: + - tag: scope + value: availability + - uuid: fdf5fa892eda46aaa2551168e36428bc + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",health])=1' + name: 'HPE Synergy: Partition [{#ENCLOSURE_NAME}:{#PARTITION_ID}]: Health is invalid' + priority: AVERAGE + description: 'The partition health is invalid.' + tags: + - tag: scope + value: availability + - uuid: fc5d550b6bdd4e2a891f4faa5e51f792 + name: 'Partition [{#ENCLOSURE_NAME}:{#PARTITION_ID}]: Memory' + type: DEPENDENT + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",memory]' + delay: '0' + units: B + description: 'The total memory of the partition.' + preprocessing: + - type: JSONPATH + parameters: + - $.memoryMb + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: component + value: memory + - tag: component + value: partition + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - tag: partition + value: '{#PARTITION_ID}' + - uuid: b388a6aeae4e4bd4b14b0eb334b67934 + name: 'Partition [{#ENCLOSURE_NAME}:{#PARTITION_ID}]: Processors Count' + type: DEPENDENT + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",processor_count]' + delay: '0' + description: 'The number of processors in the partition.' + preprocessing: + - type: JSONPATH + parameters: + - $.processorCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: component + value: cpu + - tag: component + value: partition + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - tag: partition + value: '{#PARTITION_ID}' + - uuid: ed4ad1bb9a534b40af4754cf31dc87f9 + name: 'Partition [{#ENCLOSURE_NAME}:{#PARTITION_ID}]: Status' + type: DEPENDENT + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",status]' + delay: '0' + description: | + Indicates whether the partition has been booted and also indicates its current power state: + + *ParStatusActive* - a partition is active when a 'poweron' operation is initiated on the partition and the firmware boot process is started; + *ParStatusInactive* - a partition is in an inactive state after it has been created or shut down; + *ParStatusInvalid* - a partition status is invalid; + *ParStatusManualRepair* - a partition under manual repair; + *ParStatusMax* - a delimiter defined by the OA firmware; + *ParStatusUndefined* - partition status is undefined; + *ParStatusUnknown* - a partition might report an Unknown state after an OA restart. This state is possible when the firmware is not able to identify the correct partition state due to the internal firmware errors at an OA startup. The state is persistent and can only be cleared by force powering off of the partition from the OA. A partition in this state will not accept any partition operation except parstatus and force poweroff. Any active OS instances continue to run unhindered even when the partition is in an unknown state. + valuemap: + name: 'Partition status' + preprocessing: + - type: JSONPATH + parameters: + - $.partitionStatus + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - ParStatusActive + - '0' + - type: STR_REPLACE + parameters: + - ParStatusInactive + - '1' + - type: STR_REPLACE + parameters: + - ParStatusInvalid + - '2' + - type: STR_REPLACE + parameters: + - ParStatusManualRepair + - '3' + - type: STR_REPLACE + parameters: + - ParStatusMax + - '4' + - type: STR_REPLACE + parameters: + - ParStatusUndefined + - '5' + - type: STR_REPLACE + parameters: + - ParStatusUnknown + - '6' + - type: IN_RANGE + parameters: + - '0' + - '6' + error_handler: CUSTOM_VALUE + error_handler_params: '6' + master_item: + key: 'hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: component + value: partition + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - tag: partition + value: '{#PARTITION_ID}' + trigger_prototypes: + - uuid: 1a9c705957d34bfc976c23a8b1f38e14 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.partition["{#PARTITION_ID}","{#ENCLOSURE_NAME}",status])=2' + name: 'HPE Synergy: Partition [{#ENCLOSURE_NAME}:{#PARTITION_ID}]: Is invalid' + priority: AVERAGE + description: 'The partition status is invalid.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.enclosures + lld_macro_paths: + - lld_macro: '{#ENCLOSURE_NAME}' + path: $.enclosureName + - lld_macro: '{#PARTITION_ID}' + path: $.partitionID + preprocessing: + - type: JSONPATH + parameters: + - '$.members.[0].partitions' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8346025282a044cd8dafc2521a596f18 + name: 'Power supplies discovery' + type: DEPENDENT + key: hpe.synergy.ps.discovery + delay: '0' + description: 'List of power supply bays in the enclosure.' + item_prototypes: + - uuid: 92d8618ee81742f6bb1cfdd63b51f3ea + name: 'Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#ENCLOSURE_NAME}")].powerSupplyBays[?(@.bayNumber == "{#BAY_NUMBER}")].first()' + master_item: + key: hpe.synergy.get.enclosures + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: power + - tag: component + value: raw + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: e748215b1d4a404ca0269909d321cdc6 + name: 'Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Model' + type: DEPENDENT + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The common descriptive model of the power supply.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: power + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: e0ac31d34ab34af383e56fb1c0a9972a + name: 'Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Output capacity' + type: DEPENDENT + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",output_capacity]' + delay: '0' + units: W + description: 'The output capacity of the power supply.' + preprocessing: + - type: JSONPATH + parameters: + - $.outputCapacityWatts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: power + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 98c72f6e11ab4dcba08c82793de9af96 + name: 'Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Part number' + type: DEPENDENT + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The part number of the power supply.' + preprocessing: + - type: JSONPATH + parameters: + - $.partNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: power + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 31cc380acfec455bbb4828d4aeae1ddc + name: 'Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Presence' + type: DEPENDENT + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",presence]' + delay: '0' + description: | + Indicates whether a power supply is present: + + *Absent* - the device slot is empty; + *PresenceNoOp* - the device slot is uninitialized; + *PresenceUnknown* - the device presence is unknown; + *Present* - the device slot has a device in it; + *Subsumed* - the device slot is configured to be part of another device slot. Not applicable for the fan or power supply bays. + valuemap: + name: 'Device presence' + preprocessing: + - type: JSONPATH + parameters: + - $.devicePresence + - type: STR_REPLACE + parameters: + - Absent + - '0' + - type: STR_REPLACE + parameters: + - PresenceNoOp + - '1' + - type: STR_REPLACE + parameters: + - PresenceUnknown + - '2' + - type: STR_REPLACE + parameters: + - Present + - '3' + - type: STR_REPLACE + parameters: + - Subsumed + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: power + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: 87ee5abdfdcf41459dd11678469a2fb4 + name: 'Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Serial number' + type: DEPENDENT + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The unique serial number of the power supply.' + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: power + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: ada2815275ce488f8ec1bc7a4a536681 + name: 'Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Spare part number' + type: DEPENDENT + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",spare_part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The spare part number to be used when ordering an additional or replacement power supply of this type.' + preprocessing: + - type: JSONPATH + parameters: + - $.sparePartNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: power + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + - uuid: a2c1cf1e0f714e46af414d8c7427d3db + name: 'Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Status' + type: DEPENDENT + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",data]' + tags: + - tag: bay-number + value: '{#BAY_NUMBER}' + - tag: component + value: power + - tag: enclosure + value: '{#ENCLOSURE_NAME}' + trigger_prototypes: + - uuid: ce96e032cf49415aa341b238abcabd1b + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=0' + name: 'HPE Synergy: Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Has critical status' + priority: HIGH + description: 'The status of the power supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 711695d95bc14ddfbe54be917c5e3340 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=4' + name: 'HPE Synergy: Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Has warning status' + priority: WARNING + description: 'The status of the power supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 6d286b675b7546a5b429792345867d16 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.power_supply["{#BAY_NUMBER}","{#ENCLOSURE_NAME}",status])=1' + name: 'HPE Synergy: Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}]: Is disabled' + priority: INFO + description: 'The status of Power Supply [{#ENCLOSURE_NAME}:{#BAY_NUMBER}] is currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.enclosures + lld_macro_paths: + - lld_macro: '{#BAY_NUMBER}' + path: $.bayNumber + - lld_macro: '{#ENCLOSURE_NAME}' + path: $.enclosureName + preprocessing: + - type: JSONPATH + parameters: + - '$.members.[0].powerSupplyBays' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: de1819e3eab74663b7cbd893c12ea540 + name: 'Racks discovery' + type: DEPENDENT + key: hpe.synergy.racks.discovery + delay: '0' + description: 'A list of the racks.' + item_prototypes: + - uuid: 8a68ba795abd445bb6832f8fb6fa5416 + name: 'Rack [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.rack["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the rack [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.racks + tags: + - tag: component + value: rack + - tag: component + value: raw + - tag: rack + value: '{#NAME}' + - uuid: 921fa76608e4437d961af2409dddde0b + name: 'Rack [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.rack["{#NAME}",state]' + delay: '0' + description: 'The current state of the resource. the valid values include Adding, AddError, Configured, CredentialError, Refreshing, RefreshError, Removing, RemoveError, and Unmanaged.' + valuemap: + name: 'Rack state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: STR_REPLACE + parameters: + - Adding + - '0' + - type: STR_REPLACE + parameters: + - AddError + - '1' + - type: STR_REPLACE + parameters: + - Configured + - '2' + - type: STR_REPLACE + parameters: + - CredentialError + - '3' + - type: STR_REPLACE + parameters: + - Refreshing + - '4' + - type: STR_REPLACE + parameters: + - RefreshError + - '5' + - type: STR_REPLACE + parameters: + - Removing + - '6' + - type: STR_REPLACE + parameters: + - RemoveError + - '7' + - type: STR_REPLACE + parameters: + - Unmanaged + - '8' + - type: IN_RANGE + parameters: + - '0' + - '8' + error_handler: CUSTOM_VALUE + error_handler_params: '9' + master_item: + key: 'hpe.synergy.rack["{#NAME}",data]' + tags: + - tag: component + value: rack + - tag: rack + value: '{#NAME}' + trigger_prototypes: + - uuid: 3a4eebe27b2046d3af9f6b7dca4f1aeb + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.rack["{#NAME}",state])=1' + name: 'HPE Synergy: Rack [{#NAME}]: Add error' + priority: AVERAGE + description: 'Adding the rack [{#NAME}] failed.' + tags: + - tag: scope + value: capacity + - tag: scope + value: notice + - uuid: 73d7062711f4440dad2b20865dbc79f6 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.rack["{#NAME}",state])=3' + name: 'HPE Synergy: Rack [{#NAME}]: Has credential error' + priority: AVERAGE + description: 'The rack [{#NAME}] has credential error.' + tags: + - tag: scope + value: notice + - uuid: 32b884dfb5164ae78f6274dc6ca4e0cb + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.rack["{#NAME}",state])=5' + name: 'HPE Synergy: Rack [{#NAME}]: Has refresh error' + priority: AVERAGE + description: 'The rack [{#NAME}] has refresh error.' + tags: + - tag: scope + value: availability + - uuid: 9ae1160a1bc242a9a1fe3fbf3b155ea7 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.rack["{#NAME}",state])=7' + name: 'HPE Synergy: Rack [{#NAME}]: Has remove error' + priority: AVERAGE + description: 'The rack [{#NAME}] has remove error.' + tags: + - tag: scope + value: notice + - uuid: b9473388000e4107b7a419611bc1b81a + name: 'Rack [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.rack["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.rack["{#NAME}",data]' + tags: + - tag: component + value: rack + - tag: rack + value: '{#NAME}' + trigger_prototypes: + - uuid: f03657d149374102837fef92efc0bf28 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.rack["{#NAME}",status])=0' + name: 'HPE Synergy: Rack [{#NAME}]: Has critical status' + priority: HIGH + description: 'The rack [{#NAME}] status is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 74b635c0c6a7412395f36ac71fe56ec8 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.rack["{#NAME}",status])=4' + name: 'HPE Synergy: Rack [{#NAME}]: Has warning status' + priority: WARNING + description: 'The rack [{#NAME}] status is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 1e4124bef22448f7b99b3b0ecd29a3ab + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.rack["{#NAME}",status])=1' + name: 'HPE Synergy: Rack [{#NAME}]: Is disabled' + priority: INFO + description: 'The rack [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.racks + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: dfe04e3e5bfd4c73b0f02a6329e3149b + name: 'Server hardware discovery' + type: DEPENDENT + key: hpe.synergy.server_hardware.discovery + delay: '0' + description: 'The server hardware resource is a representation of a physical server.' + item_prototypes: + - uuid: 44f23870429347fb8930669c98ded461 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Processor cores count' + type: DEPENDENT + key: 'hpe.synergy.server_hardware.processor["{#LOCATION}",cores_count]' + delay: '0' + description: 'The number of cores available per processor.' + preprocessing: + - type: JSONPATH + parameters: + - $.processorCoreCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: cpu + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: 5c9d2faf103241879fd19b0e18774dbd + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Processors count' + type: DEPENDENT + key: 'hpe.synergy.server_hardware.processor["{#LOCATION}",count]' + delay: '0' + description: 'The number of processors installed on this server hardware.' + preprocessing: + - type: JSONPATH + parameters: + - $.processorCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: cpu + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: dd1e7364fb614b2b9177f92b2ffe42a0 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Processor speed' + type: DEPENDENT + key: 'hpe.synergy.server_hardware.processor["{#LOCATION}",speed]' + delay: '0' + units: '!MHz' + description: 'The speed of the CPUs.' + preprocessing: + - type: JSONPATH + parameters: + - $.processorSpeedMhz + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: cpu + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: a62de8aa573146d1a2118abff9f43245 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Processor type' + type: DEPENDENT + key: 'hpe.synergy.server_hardware.processor["{#LOCATION}",type]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The type of the CPU installed on this server hardware.' + preprocessing: + - type: JSONPATH + parameters: + - $.processorType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: cpu + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: ee38861bdb044352a8937fe0d13d2e45 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the server [{#SERVER_NAME}:{#LOCATION}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#LOCATION}")].first()' + master_item: + key: hpe.synergy.get.server_hardware + tags: + - tag: component + value: raw + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: 67d50f909325417b9c47241cda44aa6b + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Maintenance state' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",maintenance_state]' + delay: '0' + description: 'The maintenance flag of the Server Hardware - disruptive maintenance operations, such as firmware update, can cause many server hardware alerts to be generated in a short period of time. Example: network connectivity is lost or the server reset is detected. When this field is set, predefined alerts for this particular device are suppressed. This field is set only when firmware update is ongoing. The alerts are processed normally once firmware update operation completes. Possible values are Maintenance and Normal.' + valuemap: + name: 'Maintenance state' + preprocessing: + - type: JSONPATH + parameters: + - $.maintenanceState + error_handler: DISCARD_VALUE + - type: STR_REPLACE + parameters: + - Maintenance + - '0' + - type: STR_REPLACE + parameters: + - Normal + - '1' + - type: IN_RANGE + parameters: + - '0' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: 90dc2db2bb6c4a968899ef04b8e2f96e + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Maintenance state reason' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",maintenance_state_reason]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'This field is set to Firmware update when the server is put under maintenance.' + preprocessing: + - type: JSONPATH + parameters: + - $.maintenanceStateReason + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: 7239def772f84acfbfd017e1e835e7c5 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Memory' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",memory]' + delay: '0' + units: B + description: 'The amount of memory installed on this server hardware.' + preprocessing: + - type: JSONPATH + parameters: + - $.memoryMb + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: memory + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: 1a3dfc33d4d14d82846197e66550786d + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Migration state' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",migration_state]' + delay: '0' + description: | + The state of an ongoing virtual connect manager (VCM) migration: + + *Migrating* - the enclosure is in the process of migrating from VCM; + *NotApplicable* - the enclosure did not require or has already completed the migration; + *Unknown* - the migration state is unknown. + valuemap: + name: 'Migration state' + preprocessing: + - type: JSONPATH + parameters: + - $.migrationState + error_handler: DISCARD_VALUE + - type: STR_REPLACE + parameters: + - Migrating + - '0' + - type: STR_REPLACE + parameters: + - NotApplicable + - '1' + - type: STR_REPLACE + parameters: + - Unknown + - '2' + - type: IN_RANGE + parameters: + - '0' + - '2' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: 0b6a9c030b154aa6ae112b809bfaf498 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Model' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",model]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model string of the full server hardware.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: 21edfb42e64e42878cccf66125d28b96 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Part number' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",part_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The part number for this server hardware.' + preprocessing: + - type: JSONPATH + parameters: + - $.partNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: a2c03713255841d38f0152a432920252 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Power state' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",power_state]' + delay: '0' + description: 'The current power state of the server hardware. The values are Unknown, On, Off, PoweringOn, PoweringOff or Resetting.' + valuemap: + name: 'Physical server power state' + preprocessing: + - type: JSONPATH + parameters: + - $.powerState + - type: STR_REPLACE + parameters: + - PoweringOff + - '0' + - type: STR_REPLACE + parameters: + - PoweringOn + - '1' + - type: STR_REPLACE + parameters: + - Resetting + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - 'Off' + - '4' + - type: STR_REPLACE + parameters: + - 'On' + - '5' + - type: IN_RANGE + parameters: + - '0' + - '5' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: power + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: eaf38e9c25fb46de8e621220bca8aed5 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Serial number' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",serial_number]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the server hardware.' + preprocessing: + - type: JSONPATH + parameters: + - $.serialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: 01be2f5f8b594caaab4ec25e3955405e + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: State' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",state]' + delay: '0' + description: | + The current resource state of the server hardware. The allowable values are: + + *Unknown* - not initialized; + *Adding* - a server is being added; + *NoProfileApplied* - a server successfully added; + *Monitored* - a server is being monitored; + *Unmanaged* - a discovered and supported server; + *Removing* - a server is being removed; + *RemoveFailed* - an unsuccessful server removal; + *Removed* - a server is successfully removed; + *ApplyingProfile* - a server is successfully removed; + *ProfileApplied* - a profile is successfully applied; + *RemovingProfile* - a profile is being removed; + *ProfileError* - an Unsuccessful profile is applied or removed; + *Unsupported* - a server model or version is not currently supported by the appliance; + *UpdatingFirmware* - a server firmware update is in progress. + valuemap: + name: 'Server hardware state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: STR_REPLACE + parameters: + - Unknown + - '0' + - type: STR_REPLACE + parameters: + - Adding + - '1' + - type: STR_REPLACE + parameters: + - NoProfileApplied + - '2' + - type: STR_REPLACE + parameters: + - Monitored + - '3' + - type: STR_REPLACE + parameters: + - Unmanaged + - '4' + - type: STR_REPLACE + parameters: + - Removing + - '5' + - type: STR_REPLACE + parameters: + - RemoveFailed + - '6' + - type: STR_REPLACE + parameters: + - Removed + - '7' + - type: STR_REPLACE + parameters: + - ApplyingProfile + - '8' + - type: STR_REPLACE + parameters: + - ProfileApplied + - '9' + - type: STR_REPLACE + parameters: + - RemovingProfile + - '10' + - type: STR_REPLACE + parameters: + - ProfileError + - '11' + - type: STR_REPLACE + parameters: + - Unsupported + - '12' + - type: STR_REPLACE + parameters: + - UpdatingFirmware + - '13' + - type: IN_RANGE + parameters: + - '0' + - '13' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + trigger_prototypes: + - uuid: ce0f72a3fe5e495cb8dd20b94a2779d6 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",state])=11' + name: 'HPE Synergy: Server [{#SERVER_NAME}:{#LOCATION}]: Has profile error' + priority: AVERAGE + description: 'The unsuccessful profile application or removal.' + tags: + - tag: scope + value: notice + - uuid: 5af93ca2f30d443ea18e8cf6ce139575 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",state])=0' + name: 'HPE Synergy: Server [{#SERVER_NAME}:{#LOCATION}]: Is not initialized' + priority: WARNING + description: 'The server is not initialized.' + tags: + - tag: scope + value: availability + - uuid: c03e5c9a910c4953bb18e6347a037ea6 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",state])=12' + name: 'HPE Synergy: Server [{#SERVER_NAME}:{#LOCATION}]: Is unsupported' + priority: AVERAGE + description: 'The server model or version is not currently supported by the appliance.' + tags: + - tag: scope + value: availability + - uuid: 1364b9806a104d6d8412329d47e3e505 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",state])=6' + name: 'HPE Synergy: Server [{#SERVER_NAME}:{#LOCATION}]: Remove failed' + priority: AVERAGE + description: 'The previous operation to remove the server hardware did not succeed. The operation should be re-attempted.' + tags: + - tag: scope + value: notice + - uuid: 4c09bde33af048b7a3d7cfbcaae6ff54 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: State reason' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",state_reason]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + The reason for the current resource state of the server hardware. This only applies if the state is Unmanaged, otherwise it is set to NotApplicable. The allowable values are: + + *Unsupported* - a server model or version is not currently supported by the appliance; + *UpdatingFirmware* - a server firmware update is in progress; + *NotApplicable* - when PhysicalServerState is anything besides Unmanaged; + *NotOwner* - no claim on the server; + *Inventory* - a server is added by the PDU; + *Unconfigured* - the discovery data is incomplete or an iLO configuration has failed; + *UnsupportedFirmware* - an iLO firmware version is below the minimum support level; + *Interrupted* - when PhysicalServerState is a result of an operation that was terminated before completing; + *CommunicationError* - an appliance cannot communicate with an iLO or an OA. + preprocessing: + - type: JSONPATH + parameters: + - $.stateReason + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + - uuid: 1fec814f88b6400ab70b9a164a25b297 + name: 'Server [{#SERVER_NAME}:{#LOCATION}]: Status' + type: DEPENDENT + key: 'hpe.synergy.server_hardware["{#LOCATION}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.server_hardware["{#LOCATION}",data]' + tags: + - tag: component + value: server + - tag: location + value: '{#LOCATION}' + - tag: server + value: '{#SERVER_NAME}' + trigger_prototypes: + - uuid: 7db1e7eff2624546a065863a2d821287 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",status])=0' + name: 'HPE Synergy: Server [{#SERVER_NAME}:{#LOCATION}]: Has critical status' + priority: HIGH + description: 'The status of the server [{#SERVER_NAME}:{#LOCATION}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 5c0da62e9a704d5ca556c04dbaa8e243 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",status])=4' + name: 'HPE Synergy: Server [{#SERVER_NAME}:{#LOCATION}]: Has warning status' + priority: WARNING + description: 'The status of the server [{#SERVER_NAME}:{#LOCATION}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 79f661ed3a764515a915ba79a009ec4c + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",status])=1' + name: 'HPE Synergy: Server [{#SERVER_NAME}:{#LOCATION}]: Is disabled' + priority: INFO + description: 'The server [{#SERVER_NAME}:{#LOCATION}] is currently not operational.' + tags: + - tag: scope + value: availability + trigger_prototypes: + - uuid: cd1156d4df6e411690f94a2857beab16 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",maintenance_state])=0 and length(last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",maintenance_state_reason]))>0' + name: 'HPE Synergy: Server [{#SERVER_NAME}:{#LOCATION}]: Is in maintenance mode' + opdata: 'Reason: {ITEM.LASTVALUE2}' + priority: INFO + description: 'The disruptive maintenance operations like firmware update can cause many server hardware alerts to be generated in a short period of time. Example: Network connectivity is lost or the server reset is detected.' + tags: + - tag: scope + value: notice + - uuid: f74bf53c1b394aad9019b603de9a2c09 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",state])=4 and length(last(/HPE Synergy by HTTP/hpe.synergy.server_hardware["{#LOCATION}",state_reason]))>0' + name: 'HPE Synergy: Server [{#SERVER_NAME}:{#LOCATION}]: Is unmanaged' + opdata: 'Reason: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'Discovered a supported server.' + tags: + - tag: scope + value: notice + master_item: + key: hpe.synergy.get.server_hardware + lld_macro_paths: + - lld_macro: '{#LOCATION}' + path: $.name + - lld_macro: '{#SERVER_NAME}' + path: $.serverName + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: a295686d8b5b4970b1ea5eb67bee55f1 + name: 'Storage pools discovery' + type: DEPENDENT + key: hpe.synergy.storage_pools.discovery + delay: '0' + description: 'A list of the storage pools.' + item_prototypes: + - uuid: 6f21fd88ccdb46ac83cd6a4beba12f95 + name: 'Storage pool [{#NAME}]: Capacity allocated' + type: DEPENDENT + key: 'hpe.synergy.storage.pools.capacity["{#NAME}",allocated]' + delay: '0' + units: B + description: 'The capacity allocated from the storage pool in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocatedCapacity + master_item: + key: 'hpe.synergy.storage.pools["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + - uuid: e6ffbb837f2945418f200f8d57b8bf39 + name: 'Storage pool [{#NAME}]: Capacity free' + type: DEPENDENT + key: 'hpe.synergy.storage.pools.capacity["{#NAME}",free]' + delay: '0' + units: B + description: 'The free capacity available from the storage pool in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.freeCapacity + master_item: + key: 'hpe.synergy.storage.pools["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + - uuid: b3f2dc2c62574ead8986ace6751738d0 + name: 'Storage pool [{#NAME}]: Capacity allocated to snapshots' + type: DEPENDENT + key: 'hpe.synergy.storage.pools.capacity["{#NAME}",snapshot]' + delay: '0' + units: B + description: 'The pool capacity allocated to the snapshots in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.deviceSpecificAttributes.allocatedCapacity.snapshotAllocatedCapacity + master_item: + key: 'hpe.synergy.storage.pools["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + - uuid: 5d172531ae344037a94e23fd5c72165a + name: 'Storage pool [{#NAME}]: Capacity total' + type: DEPENDENT + key: 'hpe.synergy.storage.pools.capacity["{#NAME}",total]' + delay: '0' + units: B + description: 'The total capacity of the storage pool in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalCapacity + master_item: + key: 'hpe.synergy.storage.pools["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + - uuid: ee254d7b254641c7a5f762cbdd2dabf2 + name: 'Storage pool [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.storage.pools["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the storage pool [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.storage_pools + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + - uuid: 52f63554126b4ee0a6fd6efdfea36356 + name: 'Storage pool [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.storage.pools["{#NAME}",state]' + delay: '0' + description: | + The current state of the resource: + + *AddFailed* - an attempt to add the resource failed; + *Adding* - the resource is in the process of being added; + *Configured* - the resource is configured; + *Connected* - the appliance has connected to the resource; + *Copying* - the resource is in the process of being copied; + *CreateFailed* - an attempt to create the resource failed; + *Creating* - the resource is in the process of being created; + *DeleteFailed* - an attempt to delete the resource failed; + *Deleting* - the resource is in the process of being deleted; + *Discovered* - the resource has been discovered by the appliance, but it is not managed by the appliance; + *Managed* - the resource is managed by the appliance; + *Normal* - the resource is in a normal state; + *UpdateFailed* - an attempt to update the resource failed; + *Updating* - the resource is in the process of being updated. + valuemap: + name: 'Storage volume state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: STR_REPLACE + parameters: + - AddFailed + - '0' + - type: STR_REPLACE + parameters: + - Adding + - '1' + - type: STR_REPLACE + parameters: + - Configured + - '2' + - type: STR_REPLACE + parameters: + - Connected + - '3' + - type: STR_REPLACE + parameters: + - Copying + - '4' + - type: STR_REPLACE + parameters: + - CreateFailed + - '5' + - type: STR_REPLACE + parameters: + - Creating + - '6' + - type: STR_REPLACE + parameters: + - DeleteFailed + - '7' + - type: STR_REPLACE + parameters: + - Deleting + - '8' + - type: STR_REPLACE + parameters: + - Discovered + - '9' + - type: STR_REPLACE + parameters: + - Managed + - '10' + - type: STR_REPLACE + parameters: + - Normal + - '11' + - type: STR_REPLACE + parameters: + - UpdateFailed + - '12' + - type: STR_REPLACE + parameters: + - Updating + - '13' + - type: IN_RANGE + parameters: + - '0' + - '13' + error_handler: CUSTOM_VALUE + error_handler_params: '14' + master_item: + key: 'hpe.synergy.storage.pools["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: ae6ac88132f14763ba1ab0488d78d79d + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.pools["{#NAME}",state])=0' + name: 'HPE Synergy: Storage pool [{#NAME}]: Add error' + priority: AVERAGE + description: 'Adding of the storage pool [{#NAME}] failed.' + tags: + - tag: scope + value: capacity + - tag: scope + value: notice + - uuid: 439cee82cd6744d09b4597a6aeeda91a + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.pools["{#NAME}",state])=5' + name: 'HPE Synergy: Storage pool [{#NAME}]: Create failed' + priority: AVERAGE + description: 'Creating of the storage pool [{#NAME}] failed.' + tags: + - tag: scope + value: capacity + - tag: scope + value: notice + - uuid: 91031655fd16446995f316b20e2c0bed + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.pools["{#NAME}",state])=7' + name: 'HPE Synergy: Storage pool [{#NAME}]: Delete failed' + priority: AVERAGE + description: 'Deletion of the storage pool [{#NAME}] failed.' + tags: + - tag: scope + value: notice + - uuid: d0a7155241b34e1f9dd3e01203aee3ba + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.pools["{#NAME}",state])=12' + name: 'HPE Synergy: Storage pool [{#NAME}]: Update failed' + priority: AVERAGE + description: 'Updating of the storage pool [{#NAME}] failed.' + tags: + - tag: scope + value: notice + - uuid: 9f3c42f517c64f9bb8869617438a9aff + name: 'Storage pool [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.storage.pools["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.storage.pools["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: bace21ba544d45b58541a3e2affde554 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.pools["{#NAME}",status])=0' + name: 'HPE Synergy: Storage pool [{#NAME}]: Has critical status' + priority: HIGH + description: 'The status of the storage pool [{#NAME}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 135683c55d81457e90ba97d8e02165a6 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.pools["{#NAME}",status])=4' + name: 'HPE Synergy: Storage pool [{#NAME}]: Has warning status' + priority: WARNING + description: 'The status of the storage pool [{#NAME}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 4d7c963326d54600b639ec2d14babeb7 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.pools["{#NAME}",status])=1' + name: 'HPE Synergy: Storage pool [{#NAME}]: Is disabled' + priority: INFO + description: 'The storage pool [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: a248b84392c44b4bbf9594550b35b8f8 + name: 'Storage pool [{#NAME}]: Capacity' + graph_items: + - color: 199C0D + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.storage.pools.capacity["{#NAME}",allocated]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.storage.pools.capacity["{#NAME}",free]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.storage.pools.capacity["{#NAME}",snapshot]' + master_item: + key: hpe.synergy.get.storage_pools + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 65c71880235345d69327b8cdfbd526e6 + name: 'Storage systems discovery' + type: DEPENDENT + key: hpe.synergy.storage_systems.discovery + delay: '0' + description: 'A list of the storage systems.' + item_prototypes: + - uuid: f1047d18a75f4981a5d1b16ccdafce5b + name: 'Storage system [{#NAME}]: Capacity allocated' + type: DEPENDENT + key: 'hpe.synergy.storage.system.capacity["{#NAME}",allocated]' + delay: '0' + units: B + description: 'The capacity allocated in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocatedCapacity + master_item: + key: 'hpe.synergy.storage.system["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: system + value: '{#NAME}' + - uuid: 501b587b1aa14263ac8d77325c8adfd3 + name: 'Storage system [{#NAME}]: Capacity free' + type: DEPENDENT + key: 'hpe.synergy.storage.system.capacity["{#NAME}",free]' + delay: '0' + units: B + description: 'The free capacity of the storage system in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.freeCapacity + master_item: + key: 'hpe.synergy.storage.system["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: system + value: '{#NAME}' + - uuid: 1ee384a67e0c49b99beaca7c682e7f54 + name: 'Storage system [{#NAME}]: Capacity total' + type: DEPENDENT + key: 'hpe.synergy.storage.system.capacity["{#NAME}",total]' + delay: '0' + units: B + description: 'The total capacity of the storage system in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalCapacity + master_item: + key: 'hpe.synergy.storage.system["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: system + value: '{#NAME}' + - uuid: 2f9bf8f7699945488201922c76f51675 + name: 'Storage system [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.storage.system["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the storage system [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.storage_systems + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: system + value: '{#NAME}' + - uuid: 5de77ea6bd76408792e45e111d46c501 + name: 'Storage system [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.storage.system["{#NAME}",state]' + delay: '0' + description: | + The current state of the resource: + + *AddFailed* - an attempt to add the resource failed; + *Adding* - the resource is in the process of being added; + *Configured* - the resource is configured; + *Connected* - the appliance has connected to the resource; + *Copying* - the resource is in the process of being copied; + *CreateFailed* - an attempt to create the resource failed; + *Creating* - the resource is in the process of being created; + *DeleteFailed* - an attempt to delete the resource failed; + *Deleting* - the resource is in the process of being deleted; + *Discovered* - the resource has been discovered by the appliance, but it is not managed by the appliance; + *Managed* - the resource is managed by the appliance; + *Normal* - the resource is in a normal state; + *UpdateFailed* - an attempt to update the resource failed; + *Updating* - the resource is in the process of being updated. + valuemap: + name: 'Storage volume state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: STR_REPLACE + parameters: + - AddFailed + - '0' + - type: STR_REPLACE + parameters: + - Adding + - '1' + - type: STR_REPLACE + parameters: + - Configured + - '2' + - type: STR_REPLACE + parameters: + - Connected + - '3' + - type: STR_REPLACE + parameters: + - Copying + - '4' + - type: STR_REPLACE + parameters: + - CreateFailed + - '5' + - type: STR_REPLACE + parameters: + - Creating + - '6' + - type: STR_REPLACE + parameters: + - DeleteFailed + - '7' + - type: STR_REPLACE + parameters: + - Deleting + - '8' + - type: STR_REPLACE + parameters: + - Discovered + - '9' + - type: STR_REPLACE + parameters: + - Managed + - '10' + - type: STR_REPLACE + parameters: + - Normal + - '11' + - type: STR_REPLACE + parameters: + - UpdateFailed + - '12' + - type: STR_REPLACE + parameters: + - Updating + - '13' + - type: IN_RANGE + parameters: + - '0' + - '13' + error_handler: CUSTOM_VALUE + error_handler_params: '14' + master_item: + key: 'hpe.synergy.storage.system["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: system + value: '{#NAME}' + trigger_prototypes: + - uuid: cfdbabe4ff584b96a961e395b3a4cda8 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.system["{#NAME}",state])=0' + name: 'HPE Synergy: Storage system [{#NAME}]: Add error' + priority: AVERAGE + description: 'Adding the storage system [{#NAME}] failed.' + tags: + - tag: scope + value: capacity + - tag: scope + value: notice + - uuid: e759872ffa334bc2b73335b612238c82 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.system["{#NAME}",state])=5' + name: 'HPE Synergy: Storage system [{#NAME}]: Create failed' + priority: AVERAGE + description: 'Creating of the storage system [{#NAME}] failed.' + tags: + - tag: scope + value: capacity + - tag: scope + value: notice + - uuid: 1df4613458b748b59d761d45f494920a + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.system["{#NAME}",state])=7' + name: 'HPE Synergy: Storage system [{#NAME}]: Delete failed' + priority: AVERAGE + description: 'Deletion of the storage system [{#NAME}] failed.' + tags: + - tag: scope + value: notice + - uuid: 3c856acaa42e4ee0807713afba3937ac + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.system["{#NAME}",state])=12' + name: 'HPE Synergy: Storage system [{#NAME}]: Update failed' + priority: AVERAGE + description: 'Updating of the storage system [{#NAME}] failed.' + tags: + - tag: scope + value: notice + - uuid: 5f9b2be3d232468e98451b380a624ae9 + name: 'Storage system [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.storage.system["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.storage.system["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: system + value: '{#NAME}' + trigger_prototypes: + - uuid: f8533d36153b4269916c7a9843ea8d5c + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.system["{#NAME}",status])=0' + name: 'HPE Synergy: Storage system [{#NAME}]: Has critical status' + priority: HIGH + description: 'The status of the storage system [{#NAME}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: fc278fec8e3d452bb953599a1cd42336 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.system["{#NAME}",status])=4' + name: 'HPE Synergy: Storage system [{#NAME}]: Has warning status' + priority: WARNING + description: 'The status of the storage system [{#NAME}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 4e60a92c30ed4cf7960d7979a8e2fb77 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.system["{#NAME}",status])=1' + name: 'HPE Synergy: Storage system [{#NAME}]: Is disabled' + priority: INFO + description: 'The storage system [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: c5c21884eb714c009dc0289f426b62e7 + name: 'Storage system [{#NAME}]: Capacity' + graph_items: + - color: 199C0D + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.storage.system.capacity["{#NAME}",allocated]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.storage.system.capacity["{#NAME}",free]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.storage.system.capacity["{#NAME}",total]' + master_item: + key: hpe.synergy.get.storage_systems + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8f274eade77c49abb1185f3545630653 + name: 'Storage volumes discovery' + type: DEPENDENT + key: hpe.synergy.storage_volumes.discovery + delay: '0' + description: 'A list of the storage volumes.' + item_prototypes: + - uuid: 6c5fcfa5f07e4c07a1a05d6a49e1e5cd + name: 'Storage volume [{#NAME}]: Capacity allocated' + type: DEPENDENT + key: 'hpe.synergy.storage.volumes.capacity["{#NAME}",allocated]' + delay: '0' + units: B + description: 'The capacity allocated in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocatedCapacity + master_item: + key: 'hpe.synergy.storage.volumes["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: volume + value: '{#NAME}' + - uuid: 67076354bbb34d839c23873898dab4bd + name: 'Storage volume [{#NAME}]: Capacity provisioned' + type: DEPENDENT + key: 'hpe.synergy.storage.volumes.capacity["{#NAME}",provisioned]' + delay: '0' + units: B + description: 'The total provisioned capacity of the volume in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.provisionedCapacity + master_item: + key: 'hpe.synergy.storage.volumes["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: volume + value: '{#NAME}' + - uuid: e02b8e2f502b4bfb8fa9fd17d2d4e416 + name: 'Storage volume [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.storage.volumes["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the storage volume [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.storage_volumes + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: volume + value: '{#NAME}' + - uuid: 169c6201cabe48b89ff7591e9112394b + name: 'Storage volume [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.storage.volumes["{#NAME}",state]' + delay: '0' + description: | + The current state of the resource: + + *AddFailed* - an attempt to add the resource failed; + *Adding* - the resource is in the process of being added; + *Configured* - the resource is configured; + *Connected* - the appliance has connected to the resource; + *Copying* - the resource is in the process of being copied; + *CreateFailed* - an attempt to create the resource failed; + *Creating* - the resource is in the process of being created; + *DeleteFailed* - an attempt to delete the resource failed; + *Deleting* - the resource is in the process of being deleted; + *Discovered* - the resource has been discovered by the appliance, but it is not managed by the appliance; + *Managed* - the resource is managed by the appliance; + *Normal* - the resource is in a normal state; + *UpdateFailed* - an attempt to update the resource failed; + *Updating* - the resource is in the process of being updated. + valuemap: + name: 'Storage volume state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: STR_REPLACE + parameters: + - AddFailed + - '0' + - type: STR_REPLACE + parameters: + - Adding + - '1' + - type: STR_REPLACE + parameters: + - Configured + - '2' + - type: STR_REPLACE + parameters: + - Connected + - '3' + - type: STR_REPLACE + parameters: + - Copying + - '4' + - type: STR_REPLACE + parameters: + - CreateFailed + - '5' + - type: STR_REPLACE + parameters: + - Creating + - '6' + - type: STR_REPLACE + parameters: + - DeleteFailed + - '7' + - type: STR_REPLACE + parameters: + - Deleting + - '8' + - type: STR_REPLACE + parameters: + - Discovered + - '9' + - type: STR_REPLACE + parameters: + - Managed + - '10' + - type: STR_REPLACE + parameters: + - Normal + - '11' + - type: STR_REPLACE + parameters: + - UpdateFailed + - '12' + - type: STR_REPLACE + parameters: + - Updating + - '13' + - type: IN_RANGE + parameters: + - '0' + - '13' + error_handler: CUSTOM_VALUE + error_handler_params: '14' + master_item: + key: 'hpe.synergy.storage.volumes["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: volume + value: '{#NAME}' + trigger_prototypes: + - uuid: b13d8a034a214bb5bd82d9e573d06e7b + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.volumes["{#NAME}",state])=0' + name: 'HPE Synergy: Storage volume [{#NAME}]: Add error' + priority: AVERAGE + description: 'Adding the storage volume [{#NAME}] failed.' + tags: + - tag: scope + value: capacity + - tag: scope + value: notice + - uuid: 15f5b0ded7d8430d9b6338d8ab4a26e7 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.volumes["{#NAME}",state])=5' + name: 'HPE Synergy: Storage volume [{#NAME}]: Create failed' + priority: AVERAGE + description: 'Creating of the storage volume [{#NAME}] failed.' + tags: + - tag: scope + value: capacity + - tag: scope + value: notice + - uuid: d7b4d59197dc4471b3db746c527213ae + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.volumes["{#NAME}",state])=7' + name: 'HPE Synergy: Storage volume [{#NAME}]: Delete failed' + priority: AVERAGE + description: 'Deletion of the storage volume [{#NAME}] failed.' + tags: + - tag: scope + value: notice + - uuid: c0b2dc67758446fa82c6bf9c92c76e93 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.volumes["{#NAME}",state])=12' + name: 'HPE Synergy: Storage volume [{#NAME}]: Update failed' + priority: AVERAGE + description: 'Updating of the storage volume [{#NAME}] failed.' + tags: + - tag: scope + value: notice + - uuid: 6c9927a095e04feb808c05aa44b672d0 + name: 'Storage volume [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.storage.volumes["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.storage.volumes["{#NAME}",data]' + tags: + - tag: component + value: storage + - tag: volume + value: '{#NAME}' + trigger_prototypes: + - uuid: 284d76cba28a4fc195b4b825665bc570 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.volumes["{#NAME}",status])=0' + name: 'HPE Synergy: Storage volume [{#NAME}]: Has critical status' + priority: HIGH + description: 'The status of the storage volume [{#NAME}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: ab040784159040a1ad031015e9ebef73 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.volumes["{#NAME}",status])=4' + name: 'HPE Synergy: Storage volume [{#NAME}]: Has warning status' + priority: WARNING + description: 'The status of the storage volume [{#NAME}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: ea9c2c2993b74859b30caaeac8871982 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.storage.volumes["{#NAME}",status])=1' + name: 'HPE Synergy: Storage volume [{#NAME}]: Is disabled' + priority: INFO + description: 'The storage volume [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: f5530d63e0704ad884731cffc3a50051 + name: 'Storage volume [{#NAME}]: Capacity' + graph_items: + - color: 199C0D + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.storage.volumes.capacity["{#NAME}",allocated]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE Synergy by HTTP' + key: 'hpe.synergy.storage.volumes.capacity["{#NAME}",provisioned]' + master_item: + key: hpe.synergy.get.storage_volumes + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: d4ba209881884b75b1edd7cca832be79 + name: 'Uplink sets discovery' + type: DEPENDENT + key: hpe.synergy.uplink_sets.discovery + delay: '0' + description: 'A list of the uplink sets.' + item_prototypes: + - uuid: 1469992463264badb3a80839414e9f2e + name: 'Uplink set [{#NAME}]: Get data' + type: DEPENDENT + key: 'hpe.synergy.uplink_set["{#NAME}",data]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Data of the uplink set [{#NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.name == "{#NAME}")].first()' + master_item: + key: hpe.synergy.get.uplink_sets + tags: + - tag: component + value: network + - tag: component + value: raw + - tag: component + value: uplink-set + - tag: uplink-set + value: '{#NAME}' + - uuid: be09b2f2848d4143a396a9b0cb945ecc + name: 'Uplink set [{#NAME}]: State' + type: DEPENDENT + key: 'hpe.synergy.uplink_set["{#NAME}",state]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current state of the resource.' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.synergy.uplink_set["{#NAME}",data]' + tags: + - tag: component + value: network + - tag: component + value: uplink-set + - tag: uplink-set + value: '{#NAME}' + - uuid: 08fe02575307492ea4ad42a6bfa4a2a9 + name: 'Uplink set [{#NAME}]: Status' + type: DEPENDENT + key: 'hpe.synergy.uplink_set["{#NAME}",status]' + delay: '0' + description: | + The overall health status of the resource. The following are the valid values for the status of the resource: + + *OK* - indicates normal/informational behavior; + *Disabled* - indicates that the resource is not operational; + *Warning* - requires attention soon; + *Critical* - requires immediate attention; + *Unknown* - should be avoided, but there may be rare occasions when the status is unknown. + valuemap: + name: 'Health status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + - type: STR_REPLACE + parameters: + - Critical + - '0' + - type: STR_REPLACE + parameters: + - Disabled + - '1' + - type: STR_REPLACE + parameters: + - OK + - '2' + - type: STR_REPLACE + parameters: + - Unknown + - '3' + - type: STR_REPLACE + parameters: + - Warning + - '4' + - type: IN_RANGE + parameters: + - '0' + - '4' + error_handler: CUSTOM_VALUE + error_handler_params: '3' + master_item: + key: 'hpe.synergy.uplink_set["{#NAME}",data]' + tags: + - tag: component + value: network + - tag: component + value: uplink-set + - tag: uplink-set + value: '{#NAME}' + trigger_prototypes: + - uuid: 89514e78b6e949278e83c3a2372d0fb9 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.uplink_set["{#NAME}",status])=0' + name: 'HPE Synergy: Uplink set [{#NAME}]: Has critical status' + priority: HIGH + description: 'The status of the uplink set [{#NAME}] is critical. Needs immediate attention.' + tags: + - tag: scope + value: availability + - uuid: 09f23615c85f43758a05d89466b3ca31 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.uplink_set["{#NAME}",status])=4' + name: 'HPE Synergy: Uplink set [{#NAME}]: Has warning status' + priority: WARNING + description: 'The status of the uplink set [{#NAME}] is warning. Needs attention soon.' + tags: + - tag: scope + value: availability + - uuid: 57187189c1bc4269873b51ef91a010c4 + expression: 'last(/HPE Synergy by HTTP/hpe.synergy.uplink_set["{#NAME}",status])=1' + name: 'HPE Synergy: Uplink set [{#NAME}]: Is disabled' + priority: INFO + description: 'The uplink set [{#NAME}] is currently not operational.' + tags: + - tag: scope + value: availability + master_item: + key: hpe.synergy.get.uplink_sets + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.members + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: class + value: storage + - tag: target + value: hpe + - tag: target + value: synergy + macros: + - macro: '{$HPE.SYNERGY.API.HOST}' + description: 'The hostname or IP address of the API host.' + - macro: '{$HPE.SYNERGY.API.LOGIN_DOMAIN}' + value: LOCAL + description: 'User domain.' + - macro: '{$HPE.SYNERGY.API.PASSWORD}' + type: SECRET_TEXT + description: 'Specify password for API.' + - macro: '{$HPE.SYNERGY.API.PORT}' + value: '443' + description: 'The API port.' + - macro: '{$HPE.SYNERGY.API.SCHEME}' + value: https + description: 'The API scheme (http/https).' + - macro: '{$HPE.SYNERGY.API.USERNAME}' + value: zabbix + description: 'Specify user name for API.' + - macro: '{$HPE.SYNERGY.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for API.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "HPE Synergy", e.g. {$HTTP.TLS.VERIFY:"HPE Synergy"}.' + dashboards: + - uuid: 144b6727a17542d58449cc66728c40b9 + name: 'Server overview' + auto_start: 'NO' + pages: + - name: Enclosures + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Synergy by HTTP' + name: 'Enclosure [{#NAME}]: Power capacity' + - type: STRING + name: reference + value: AAAAA + - name: 'Storage pools' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Synergy by HTTP' + name: 'Storage pool [{#NAME}]: Capacity' + - type: STRING + name: reference + value: AAAAB + - name: 'Storage systems' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Synergy by HTTP' + name: 'Storage system [{#NAME}]: Capacity' + - type: STRING + name: reference + value: AAAAC + - name: 'Storage volumes' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE Synergy by HTTP' + name: 'Storage volume [{#NAME}]: Capacity' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 20d3a73c6cc84329a5dfafff29de32cc + name: Boolean + mappings: + - value: '0' + newvalue: 'No' + - value: '1' + newvalue: 'Yes' + - uuid: d3641b3e94ad495f8e0c5c49984a5aa1 + name: 'Device presence' + mappings: + - value: '0' + newvalue: Absent + - value: '1' + newvalue: PresenceNoOp + - value: '2' + newvalue: PresenceUnknown + - value: '3' + newvalue: Present + - value: '4' + newvalue: Subsumed + - uuid: 082018b109e24116bbd92f0657113165 + name: 'Enclosure state' + mappings: + - value: '0' + newvalue: Adding + - value: '1' + newvalue: Configured + - value: '2' + newvalue: Configuring + - value: '3' + newvalue: Interrupted + - value: '4' + newvalue: Monitored + - value: '5' + newvalue: Pending + - value: '6' + newvalue: RemoveFailed + - value: '7' + newvalue: Removing + - value: '8' + newvalue: Unmanaged + - value: '9' + newvalue: Unsupported + - value: '10' + newvalue: Unknown + - uuid: 05742432aca048ca96684ba52bd058ae + name: 'Health status' + mappings: + - value: '0' + newvalue: Critical + - value: '1' + newvalue: Disabled + - value: '2' + newvalue: OK + - value: '3' + newvalue: Unknown + - value: '4' + newvalue: Warning + - uuid: 6cd4b888faa442c19392b959f1605179 + name: 'Hypervisor manager state' + mappings: + - value: '0' + newvalue: Connected + - value: '1' + newvalue: Disconnected + - value: '2' + newvalue: Configuring + - value: '3' + newvalue: Error + - value: '4' + newvalue: Unknown + - uuid: 930add5553ea42668e590c9824d9e8d3 + name: 'Link port state' + mappings: + - value: '0' + newvalue: Disabled + - value: '1' + newvalue: Linked + - value: '2' + newvalue: Unlinked + - value: '3' + newvalue: Unknown + - uuid: 556391b7f9c045c89d28ac52a1082635 + name: 'Logical enclosure state' + mappings: + - value: '0' + newvalue: Inconsistent + - value: '1' + newvalue: Creating + - value: '2' + newvalue: DeleteFailed + - value: '3' + newvalue: Deleting + - value: '4' + newvalue: Consistent + - value: '5' + newvalue: Updating + - value: '6' + newvalue: Unknown + - uuid: e26c553cffab4766866bf25639fb89da + name: 'Maintenance state' + mappings: + - value: '0' + newvalue: Maintenance + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Unknown + - uuid: c66615691cba4abc9c7adecc29bb346b + name: 'MGMT port state' + mappings: + - value: '0' + newvalue: Active + - value: '1' + newvalue: Disabled + - value: '2' + newvalue: I3s + - value: '3' + newvalue: Other + - value: '4' + newvalue: Standby + - value: '5' + newvalue: Unknown + - uuid: 6feb2826df9244a8b6b7732c98090b63 + name: 'Migration state' + mappings: + - value: '0' + newvalue: Migrating + - value: '1' + newvalue: NotApplicable + - value: '2' + newvalue: Unknown + - uuid: b878a1503ac14781a142f69a587264ed + name: 'Partition health' + mappings: + - value: '0' + newvalue: NparDegrade + - value: '1' + newvalue: NparHealthInvalid + - value: '2' + newvalue: NparHealthMax + - value: '3' + newvalue: NparOk + - value: '4' + newvalue: Unknown + - uuid: 2c6d8b81e7ee4407b17ca06739ac71f1 + name: 'Partition status' + mappings: + - value: '0' + newvalue: ParStatusActive + - value: '1' + newvalue: ParStatusInactive + - value: '2' + newvalue: ParStatusInvalid + - value: '3' + newvalue: ParStatusManualRepair + - value: '4' + newvalue: ParStatusMax + - value: '5' + newvalue: ParStatusUndefined + - value: '6' + newvalue: ParStatusUnknown + - uuid: 7daddccc109d41f8abf1e04ba1fbd358 + name: 'Physical server power state' + mappings: + - value: '0' + newvalue: PoweringOff + - value: '1' + newvalue: PoweringOn + - value: '2' + newvalue: Resetting + - value: '3' + newvalue: Unknown + - value: '4' + newvalue: 'Off' + - value: '5' + newvalue: 'On' + - uuid: fe093138fdd14f7f80fa4498d91d7fa0 + name: 'Power state' + mappings: + - value: '0' + newvalue: EFuse + - value: '1' + newvalue: Reset + - value: '2' + newvalue: SoftReset + - value: '3' + newvalue: Unknown + - uuid: 5a4901bdd6024256afbfebee6827e103 + name: 'Rack state' + mappings: + - value: '0' + newvalue: Adding + - value: '1' + newvalue: AddError + - value: '2' + newvalue: Configured + - value: '3' + newvalue: CredentialError + - value: '4' + newvalue: Refreshing + - value: '5' + newvalue: RefreshError + - value: '6' + newvalue: Removing + - value: '7' + newvalue: RemoveError + - value: '8' + newvalue: Unmanaged + - value: '9' + newvalue: Unknown + - uuid: ba5903d60953477aafd313d3688c8dd8 + name: 'Resource state' + mappings: + - value: '0' + newvalue: Degraded + - value: '1' + newvalue: Failed + - value: '2' + newvalue: Misplaced + - value: '3' + newvalue: Missing + - value: '4' + newvalue: OK + - value: '5' + newvalue: Unknown + - uuid: a545b93c790741a29b726f04f03cbc8f + name: 'Server hardware state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Adding + - value: '2' + newvalue: NoProfileApplied + - value: '3' + newvalue: Monitored + - value: '4' + newvalue: Unmanaged + - value: '5' + newvalue: Removing + - value: '6' + newvalue: RemoveFailed + - value: '7' + newvalue: Removed + - value: '8' + newvalue: ApplyingProfile + - value: '9' + newvalue: ProfileApplied + - value: '10' + newvalue: RemovingProfile + - value: '11' + newvalue: ProfileError + - value: '12' + newvalue: Unsupported + - value: '13' + newvalue: UpdatingFirmware + - uuid: 2d6f2f67dc114502ae699e873130ba23 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 647f5a6d2ce54e78af163f8676f3f1e0 + name: 'State reason' + mappings: + - value: '0' + newvalue: Missing + - value: '1' + newvalue: None + - value: '2' + newvalue: 'Not Added' + - value: '3' + newvalue: 'Not Owner' + - value: '4' + newvalue: 'Operation Failed' + - value: '5' + newvalue: Unowned + - value: '6' + newvalue: 'Unsupported Firmware' + - value: '7' + newvalue: 'Updating Firmware' + - value: '8' + newvalue: Unknown + - uuid: e20d58a33c3b4a8891dda5da8b86cd5a + name: 'Storage volume state' + mappings: + - value: '0' + newvalue: AddFailed + - value: '1' + newvalue: Adding + - value: '2' + newvalue: Configured + - value: '3' + newvalue: Connected + - value: '4' + newvalue: Copying + - value: '5' + newvalue: CreateFailed + - value: '6' + newvalue: Creating + - value: '7' + newvalue: DeleteFailed + - value: '8' + newvalue: Deleting + - value: '9' + newvalue: Discovered + - value: '10' + newvalue: Managed + - value: '11' + newvalue: Normal + - value: '12' + newvalue: UpdateFailed + - value: '13' + newvalue: Updating + - value: '14' + newvalue: Unknown diff --git a/HPE_iLO_by_HTTP.yaml b/HPE_iLO_by_HTTP.yaml new file mode 100644 index 0000000..ea918a8 --- /dev/null +++ b/HPE_iLO_by_HTTP.yaml @@ -0,0 +1,2844 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: d50f6dcfc3e44244a0fc9fd933607024 + template: 'HPE iLO by HTTP' + name: 'HPE iLO by HTTP' + description: | + This template is designed for the effortless deployment of HPE iLO monitoring by Zabbix via iLO RESTful API and doesn't require any external scripts. + + Setup: + + 1. Create the iLO user for monitoring (for example, `zbx_monitor`). The user will only need to have the `Login` privilege, which can be assigned manually or by assigning the `ReadOnly` role to the user. + 2. Set the iLO API endpoint URL in the `{$ILO.URL}` macro in the format `://[:port]/` (port is optional). + 3. Set the name of the user that you created in step 1 in the `{$ILO.USER}` macro. + 4. Set the password of the user that you created in step 1 in the `{$ILO.PASSWORD}` macro. + + For more details about HPE Redfish services, refer to the official documentation: + https://servermanagementportal.ext.hpe.com/docs/redfishservices/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 3c2d368291294faa98c01a27f36ad805 + name: 'Get data' + type: SCRIPT + key: hpe.ilo.get_data + delay: '{$ILO.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var ilo = { + params: {}, + session_token: "", + session_url: "", + + setParams: function (params) { + ['ilo_url', 'user', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required parameter is not set: "' + field + '".'; + } + }); + + ilo.params = params; + + if (typeof ilo.params.ilo_url === 'string' && !ilo.params.ilo_url.endsWith('/')) { + ilo.params.ilo_url += '/'; + } + + ilo.tls = new CTlsConfig(params.tls_verify); + ilo.tls.checkURL(ilo.params.ilo_url); + }, + + apiAuth: function () { + var request = new HttpRequest(ilo.tls.options), + response, + headers, + url = encodeURI(ilo.params.ilo_url + 'redfish/v1/SessionService/Sessions/'), + auth_data = { + UserName: ilo.params.user, + Password: ilo.params.password + }; + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Basic ' + btoa(ilo.params.user + ':' + ilo.params.password)); + + if (typeof ilo.params.http_proxy !== 'undefined' && ilo.params.http_proxy !== '') { + request.setProxy(ilo.params.http_proxy); + Zabbix.log(4, '[ HPE iLO ] Using HTTP proxy: ' + ilo.params.http_proxy); + } + + Zabbix.log(4, '[ HPE iLO ] Sending request: ' + url); + + response = request.post(url, JSON.stringify(auth_data)); + + Zabbix.log(4, '[ HPE iLO ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() != 201) { + throw 'Authentication failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse auth response received from API. Check debug log for more information.'; + } + + try { + headers = request.getHeaders(); + } + catch (error) { + throw 'Failed to parse auth headers received from API. Check debug log for more information.'; + } + + try { + ilo.session_token = ilo.getHeader(headers, 'X-Auth-Token'); + ilo.session_url = ilo.getHeader(headers, 'Location'); + } + catch (error) { + throw 'Failed to retrieve auth token or session URL from API. Check debug log for more information.'; + } + + delete request; + }, + + apiLogout: function () { + var request = new HttpRequest(ilo.tls.options), + response, + url = encodeURI(ilo.session_url); + + request.addHeader('X-Auth-Token: ' + ilo.session_token); + + if (typeof ilo.params.http_proxy !== 'undefined' && ilo.params.http_proxy !== '') { + request.setProxy(ilo.params.http_proxy); + Zabbix.log(4, '[ HPE iLO ] Using HTTP proxy: ' + ilo.params.http_proxy); + } + + Zabbix.log(4, '[ HPE iLO ] Sending request: ' + url); + + response = request.delete(url); + + Zabbix.log(4, '[ HPE iLO ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() != 200) { + throw 'Deleting of session failed with status code ' + request.getStatus() + ': ' + response; + } + + delete request; + }, + + apiRequest: function (query) { + var request = new HttpRequest(ilo.tls.options), + response, + url = encodeURI(ilo.params.ilo_url + query); + + if (typeof ilo.params.http_proxy !== 'undefined' && ilo.params.http_proxy !== '') { + request.setProxy(ilo.params.http_proxy); + Zabbix.log(4, '[ HPE iLO ] Using HTTP proxy: ' + ilo.params.http_proxy); + } + + request.addHeader('X-Auth-Token: ' + ilo.session_token); + + Zabbix.log(4, '[ HPE iLO ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ HPE iLO ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + + delete request; + + return response; + }, + + checkArray: function (array) { + return typeof array !== 'undefined' && Array.isArray(array) && array.length > 0 ? true : false; + }, + + getHeader: function (headers, name) { + if (!headers || typeof headers !== 'object') { + return null; + } + var target = name.toLowerCase(); + + for (var key in headers) { + if (key.toLowerCase() === target) { + return headers[key]; + } + } + + throw name + ' header not found'; + } + }; + + try { + ilo.setParams(JSON.parse(value)); + ilo.apiAuth(); + var systems = [], + storages = [], + controllers = [], + drives = [], + volumes = [], + chassis = [], + fans = [], + sensors = [], + psu = [], + managers = []; + + var get_systems = ilo.apiRequest('redfish/v1/Systems?$expand=.'); + + if (ilo.checkArray(get_systems.Members)) { + for (i in get_systems.Members) { + if ('Id' in get_systems.Members[i]) { + if (get_systems.Members[i].HostName === null) { + get_systems.Members[i].HostName = get_systems.Members[i].Id; + } + + systems.push(get_systems.Members[i]); + + var system_storages = ilo.apiRequest('redfish/v1/Systems/' + get_systems.Members[i].Id + '/Storage?$expand=.'); + + if (ilo.checkArray(system_storages.Members)) { + for (j in system_storages.Members) { + system_storages.Members[j].systemHostname = get_systems.Members[i].HostName; + system_storages.Members[j].systemType = get_systems.Members[i].SystemType; + system_storages.Members[j].systemId = get_systems.Members[i].Id; + + storages.push(system_storages.Members[j]); + + if ('Id' in system_storages.Members[j]) { + var storage_controllers = ilo.apiRequest('redfish/v1/Systems/' + get_systems.Members[i].Id + '/Storage/' + system_storages.Members[j].Id + '/Controllers?$expand=.'); + + if (ilo.checkArray(storage_controllers.Members)) { + for (k in storage_controllers.Members) { + storage_controllers.Members[k].systemHostname = get_systems.Members[i].HostName; + storage_controllers.Members[k].systemType = get_systems.Members[i].SystemType; + storage_controllers.Members[k].systemId = get_systems.Members[i].Id; + storage_controllers.Members[k].storageId = system_storages.Members[j].Id; + + controllers.push(storage_controllers.Members[k]); + } + } + + var storage_drives = ilo.apiRequest('redfish/v1/Systems/' + get_systems.Members[i].Id + '/Storage/' + system_storages.Members[j].Id + '?$expand=.'); + + if (ilo.checkArray(storage_drives.Drives)) { + for (k in storage_drives.Drives) { + storage_drives.Drives[k].systemHostname = get_systems.Members[i].HostName; + storage_drives.Drives[k].systemType = get_systems.Members[i].SystemType; + storage_drives.Drives[k].systemId = get_systems.Members[i].Id; + storage_drives.Drives[k].storageId = system_storages.Members[j].Id; + + drives.push(storage_drives.Drives[k]); + } + } + + if ('Volumes' in system_storages.Members[j]) { + var storage_volumes = ilo.apiRequest('redfish/v1/Systems/' + get_systems.Members[i].Id + '/Storage/' + system_storages.Members[j].Id + '/Volumes?$expand=.'); + + if (ilo.checkArray(storage_volumes.Members)) { + for (k in storage_volumes.Members) { + storage_volumes.Members[k].systemHostname = get_systems.Members[i].HostName; + storage_volumes.Members[k].systemType = get_systems.Members[i].SystemType; + storage_volumes.Members[k].systemId = get_systems.Members[i].Id; + storage_volumes.Members[k].storageId = system_storages.Members[j].Id; + + volumes.push(storage_volumes.Members[k]); + } + } + } + } + } + } + } + } + } + + var get_chassis = ilo.apiRequest('redfish/v1/Chassis?$expand=.'); + + if (ilo.checkArray(get_chassis.Members)) { + for (i in get_chassis.Members) { + if ('Id' in get_chassis.Members[i]) { + chassis.push(get_chassis.Members[i]); + + chassis_thermal = ilo.apiRequest('redfish/v1/Chassis/' + get_chassis.Members[i].Id + '/Thermal/'); + + if (ilo.checkArray(chassis_thermal.Fans)) { + for (j in chassis_thermal.Fans) { + chassis_thermal.Fans[j].chassisId = get_chassis.Members[i].Id; + + fans.push(chassis_thermal.Fans[j]); + } + } + + if (ilo.checkArray(chassis_thermal.Temperatures)) { + for (j in chassis_thermal.Temperatures) { + chassis_thermal.Temperatures[j].chassisId = get_chassis.Members[i].Id; + + sensors.push(chassis_thermal.Temperatures[j]); + } + } + + chassis_power = ilo.apiRequest('redfish/v1/Chassis/' + get_chassis.Members[i].Id + '/Power/'); + + if (ilo.checkArray(chassis_power.PowerSupplies)) { + for (j in chassis_power.PowerSupplies) { + chassis_power.PowerSupplies[j].chassisId = get_chassis.Members[i].Id; + + psu.push(chassis_power.PowerSupplies[j]); + } + } + } + } + } + + var get_managers = ilo.apiRequest('redfish/v1/Managers?$expand=.'); + + if (ilo.checkArray(get_managers.Members)) { + for (i in get_managers.Members) { + if ('Id' in get_managers.Members[i]) { + managers.push(get_managers.Members[i]); + } + } + } + + ilo.apiLogout(); + + return JSON.stringify({ + 'systems': systems, + 'storages': storages, + 'controllers': controllers, + 'drives': drives, + 'volumes': volumes, + 'chassis': chassis, + 'fans': fans, + 'sensors': sensors, + 'psu': psu, + 'managers': managers + }); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ HPE iLO ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: 'The JSON with the result of API requests.' + timeout: '{$ILO.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$ILO.HTTP_PROXY}' + - name: ilo_url + value: '{$ILO.URL}' + - name: password + value: '{$ILO.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"HPE iLO"}' + - name: user + value: '{$ILO.USER}' + tags: + - tag: component + value: raw + - uuid: 7378f10ce1314462ba2f9d80562f5430 + name: 'Get data check' + type: DEPENDENT + key: hpe.ilo.get_data.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'The data collection check.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: hpe.ilo.get_data + tags: + - tag: component + value: status + triggers: + - uuid: b3327a76234b4ac6b049dec49bdd6a78 + expression: 'length(last(/HPE iLO by HTTP/hpe.ilo.get_data.check))>0' + name: 'HPE iLO: Failed to get data from API' + priority: HIGH + description: 'Failed to get data from API. Check the debug log for more information.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: cffc30494f1140eb88e67c38cca64243 + name: 'HPE iLO: Computer systems discovery' + type: DEPENDENT + key: hpe.ilo.computer_systems.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SYSTEM_HOSTNAME}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.MATCHES:"System"}' + formulaid: A + - macro: '{#SYSTEM_HOSTNAME}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.NOT_MATCHES:"System"}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SYSTEM_TYPE}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.MATCHES:"System"}' + formulaid: C + - macro: '{#SYSTEM_TYPE}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.NOT_MATCHES:"System"}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovers computer systems.' + item_prototypes: + - uuid: 2815e03a856e4c0389ee2fb545d6c97f + name: 'Computer system [{#SYSTEM_HOSTNAME}]: BIOS current version' + type: DEPENDENT + key: 'hpe.ilo.computer_system.bios.current_version[{#SYSTEM_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current BIOS version of the computer system.' + preprocessing: + - type: JSONPATH + parameters: + - $.Oem.Hpe.Bios.Current.VersionString + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.computer_system.get_data[{#SYSTEM_ID}]' + tags: + - tag: component + value: computer-system + - tag: component + value: inventory + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + trigger_prototypes: + - uuid: 2f207309d0724a2e8e93c13967fc8eed + expression: 'change(/HPE iLO by HTTP/hpe.ilo.computer_system.bios.current_version[{#SYSTEM_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.computer_system.bios.current_version[{#SYSTEM_ID}]))>0' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: BIOS version has changed' + event_name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: BIOS version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The current version of BIOS has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4c05d540ca87440bbf251bdf61d31a5d + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Get data' + type: DEPENDENT + key: 'hpe.ilo.computer_system.get_data[{#SYSTEM_ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get data about the computer system.' + preprocessing: + - type: JSONPATH + parameters: + - '$.systems[?(@.Id == ''{#SYSTEM_ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hpe.ilo.get_data + tags: + - tag: component + value: computer-system + - tag: component + value: raw + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - uuid: cd7fc29d4de64b0f8fb754451d5764e3 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Model' + type: DEPENDENT + key: 'hpe.ilo.computer_system.model[{#SYSTEM_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model name of the computer system.' + preprocessing: + - type: JSONPATH + parameters: + - $.Model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.computer_system.get_data[{#SYSTEM_ID}]' + tags: + - tag: component + value: computer-system + - tag: component + value: inventory + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - uuid: 74a4746fec48417bb5e1ce6f341936f4 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Serial number' + type: DEPENDENT + key: 'hpe.ilo.computer_system.serial_number[{#SYSTEM_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the computer system.' + preprocessing: + - type: JSONPATH + parameters: + - $.SerialNumber + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.computer_system.get_data[{#SYSTEM_ID}]' + tags: + - tag: component + value: computer-system + - tag: component + value: inventory + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + trigger_prototypes: + - uuid: 060a4bcb1cdd463884fd95272464530d + expression: 'change(/HPE iLO by HTTP/hpe.ilo.computer_system.serial_number[{#SYSTEM_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.computer_system.serial_number[{#SYSTEM_ID}]))>0' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Computer system has been replaced' + priority: INFO + description: 'The computer system serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 30a1ab95416a42779abe242ac264d813 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Status' + type: DEPENDENT + key: 'hpe.ilo.computer_system.status[{#SYSTEM_ID}]' + delay: '0' + description: | + The overall health state from the view of this computer system. Possible values: + + 0 - "OK", the computer system is in normal condition; + 1 - "Warning", the computer system is in condition that requires attention; + 2 - "Critical", the computer system is in critical condition that requires immediate attention; + 10 - "Unknown", the computer system is in unknown condition. + valuemap: + name: 'Redfish health state' + preprocessing: + - type: JSONPATH + parameters: + - $.Status.HealthRollup + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'OK', + 'Warning', + 'Critical' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.ilo.computer_system.get_data[{#SYSTEM_ID}]' + tags: + - tag: component + value: computer-system + - tag: component + value: health + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + trigger_prototypes: + - uuid: 438fdce5e1374b5a94b0206cdd4a2728 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.computer_system.status[{#SYSTEM_ID}])=2' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Computer system is in critical state' + priority: HIGH + description: 'The computer system is in critical condition that requires immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 704b86207b3a443a8359b3d75c92d0b4 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.computer_system.status[{#SYSTEM_ID}])=1' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Computer system is in warning state' + priority: WARNING + description: 'The computer system is in condition that requires attention.' + dependencies: + - name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Computer system is in critical state' + expression: 'last(/HPE iLO by HTTP/hpe.ilo.computer_system.status[{#SYSTEM_ID}])=2' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 09d4a47c8ba94c4c83e47bbd58ec6cc7 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: System type' + type: DEPENDENT + key: 'hpe.ilo.computer_system.type[{#SYSTEM_ID}]' + delay: '0' + description: | + The type of the computer system. Possible values: + + 0 - "Physical", a computer system; + 1 - "Virtual", a virtual machine instance running on this system; + 2 - "OS", an operating system instance; + 3 - "PhysicallyPartitioned", a hardware-based partition of a computer system; + 4 - "VirtuallyPartitioned", a virtual or software-based partition of a computer system; + 5 - "DPU", a virtual or software-based partition of a computer system; + 10 - "Unknown", the computer system type is unknown. + valuemap: + name: 'Computer system type' + preprocessing: + - type: JSONPATH + parameters: + - $.SystemType + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Physical', + 'Virtual', + 'OS', + 'PhysicallyPartitioned', + 'VirtuallyPartitioned', + 'DPU' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.computer_system.get_data[{#SYSTEM_ID}]' + tags: + - tag: component + value: computer-system + - tag: component + value: inventory + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - uuid: 19cb6014269c4e548daa07526c0eac95 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: CPU utilization, in %' + type: DEPENDENT + key: 'hpe.ilo.computer_system.usage.cpu_util[{#SYSTEM_ID}]' + delay: '0' + units: '%' + description: 'Current CPU utilization of the computer system in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.Oem.Hpe.SystemUsage.CPUUtil + error_handler: DISCARD_VALUE + master_item: + key: 'hpe.ilo.computer_system.get_data[{#SYSTEM_ID}]' + tags: + - tag: component + value: computer-system + - tag: component + value: cpu + - tag: component + value: performance + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - uuid: 7c71b7e1963c499d8a4151aba47da539 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: I/O bus utilization, in %' + type: DEPENDENT + key: 'hpe.ilo.computer_system.usage.io_bus_util[{#SYSTEM_ID}]' + delay: '0' + units: '%' + description: 'Current I/O bus utilization of the computer system in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.Oem.Hpe.SystemUsage.IOBusUtil + error_handler: DISCARD_VALUE + master_item: + key: 'hpe.ilo.computer_system.get_data[{#SYSTEM_ID}]' + tags: + - tag: component + value: computer-system + - tag: component + value: performance + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - uuid: 13b463539dbb4692a4635bdef2a76367 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Memory bus utilization, in %' + type: DEPENDENT + key: 'hpe.ilo.computer_system.usage.memory_bus_util[{#SYSTEM_ID}]' + delay: '0' + units: '%' + description: 'Current memory bus utilization of the computer system in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.Oem.Hpe.SystemUsage.MemoryBusUtil + error_handler: DISCARD_VALUE + master_item: + key: 'hpe.ilo.computer_system.get_data[{#SYSTEM_ID}]' + tags: + - tag: component + value: computer-system + - tag: component + value: memory + - tag: component + value: performance + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + graph_prototypes: + - uuid: 04f4386139054afea962586af56afd46 + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Resources usage' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'HPE iLO by HTTP' + key: 'hpe.ilo.computer_system.usage.cpu_util[{#SYSTEM_ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'HPE iLO by HTTP' + key: 'hpe.ilo.computer_system.usage.io_bus_util[{#SYSTEM_ID}]' + - sortorder: '2' + color: 00611C + item: + host: 'HPE iLO by HTTP' + key: 'hpe.ilo.computer_system.usage.memory_bus_util[{#SYSTEM_ID}]' + master_item: + key: hpe.ilo.get_data + lld_macro_paths: + - lld_macro: '{#SYSTEM_HOSTNAME}' + path: $.hostname + - lld_macro: '{#SYSTEM_ID}' + path: $.system_id + - lld_macro: '{#SYSTEM_TYPE}' + path: $.system_type + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var systems = JSON.parse(value).systems; + + result = systems.map(function (system) { + return { + 'hostname': system.HostName, + 'system_type': system.SystemType, + 'system_id': system.Id + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: bcb9da9c36e94c6f9fe7fbc4ddd96a9e + name: 'HPE iLO: Controllers discovery' + type: DEPENDENT + key: hpe.ilo.controllers.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SYSTEM_HOSTNAME}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.MATCHES:"Controller"}' + formulaid: A + - macro: '{#SYSTEM_HOSTNAME}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.NOT_MATCHES:"Controller"}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SYSTEM_TYPE}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.MATCHES:"Controller"}' + formulaid: C + - macro: '{#SYSTEM_TYPE}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.NOT_MATCHES:"Controller"}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovers storage controllers.' + item_prototypes: + - uuid: aa246b9ca7454479b9396851f4be67aa + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Get data' + type: DEPENDENT + key: 'hpe.ilo.controller.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get data about the controller.' + preprocessing: + - type: JSONPATH + parameters: + - '$.controllers[?(@.systemId == ''{#SYSTEM_ID}'' && @.storageId == ''{#STORAGE_ID}'' && @.Id == ''{#CONTROLLER_ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hpe.ilo.get_data + tags: + - tag: component + value: controller + - tag: component + value: raw + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: controller + value: '{#CONTROLLER_ID}' + - tag: location + value: '{#CONTROLLER_LOCATION}' + - tag: storage + value: '{#STORAGE_ID}' + - uuid: 5aeac2d722a14086b64980e0cd4a985a + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Model' + type: DEPENDENT + key: 'hpe.ilo.controller.model[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model name of the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.Model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.controller.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]' + tags: + - tag: component + value: controller + - tag: component + value: inventory + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: controller + value: '{#CONTROLLER_ID}' + - tag: location + value: '{#CONTROLLER_LOCATION}' + - tag: storage + value: '{#STORAGE_ID}' + - uuid: 5a8101bfc94b48d2b67fd6670949ab96 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Serial number' + type: DEPENDENT + key: 'hpe.ilo.controller.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.SerialNumber + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.controller.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]' + tags: + - tag: component + value: controller + - tag: component + value: inventory + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: controller + value: '{#CONTROLLER_ID}' + - tag: location + value: '{#CONTROLLER_LOCATION}' + - tag: storage + value: '{#STORAGE_ID}' + trigger_prototypes: + - uuid: 66694866af4e49d7becb699c29b73b3e + expression: 'change(/HPE iLO by HTTP/hpe.ilo.controller.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.controller.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]))>0' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Controller has been replaced' + priority: INFO + description: 'The controller serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6c0527d5f10b4be0a9384de104128a9b + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Status' + type: DEPENDENT + key: 'hpe.ilo.controller.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]' + delay: '0' + description: | + The health state of the controller. Possible values: + + 0 - "OK", the controller is in normal condition; + 1 - "Warning", the controller is in condition that requires attention; + 2 - "Critical", the controller is in critical condition that requires immediate attention; + 10 - "Unknown", the controller is in unknown condition. + valuemap: + name: 'Redfish health state' + preprocessing: + - type: JSONPATH + parameters: + - $.Status.Health + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'OK', + 'Warning', + 'Critical' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.ilo.controller.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]' + tags: + - tag: component + value: controller + - tag: component + value: health + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: controller + value: '{#CONTROLLER_ID}' + - tag: storage + value: '{#STORAGE_ID}' + trigger_prototypes: + - uuid: c50abeed60fe4b5a95dd788606fbddda + expression: 'last(/HPE iLO by HTTP/hpe.ilo.controller.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}])=2' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Controller is in critical state' + priority: HIGH + description: 'The controller is in critical condition that requires immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b4fff1c834a04b66843937b1a56fe7d1 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.controller.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}])=1' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Controller is in warning state' + priority: WARNING + description: 'The controller is in condition that requires attention.' + dependencies: + - name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Controller is in critical state' + expression: 'last(/HPE iLO by HTTP/hpe.ilo.controller.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}])=2' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: hpe.ilo.get_data + lld_macro_paths: + - lld_macro: '{#CONTROLLER_ID}' + path: $.id + - lld_macro: '{#CONTROLLER_LOCATION}' + path: $.location + - lld_macro: '{#STORAGE_ID}' + path: $.storage_id + - lld_macro: '{#SYSTEM_HOSTNAME}' + path: $.system_hostname + - lld_macro: '{#SYSTEM_ID}' + path: $.system_id + - lld_macro: '{#SYSTEM_TYPE}' + path: $.system_type + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var controllers = JSON.parse(value).controllers; + + result = controllers.map(function (controller) { + return { + 'id': controller.Id, + 'location': controller.Location.PartLocation.ServiceLabel, + 'system_id': controller.systemId, + 'system_hostname': controller.systemHostname, + 'system_type': controller.systemType, + 'storage_id': controller.storageId + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: c750bdc5aa05415d9556a0182f2b5c65 + name: 'HPE iLO: Drives discovery' + type: DEPENDENT + key: hpe.ilo.drives.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SYSTEM_HOSTNAME}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.MATCHES:"Drive"}' + formulaid: A + - macro: '{#SYSTEM_HOSTNAME}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.NOT_MATCHES:"Drive"}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SYSTEM_TYPE}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.MATCHES:"Drive"}' + formulaid: C + - macro: '{#SYSTEM_TYPE}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.NOT_MATCHES:"Drive"}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovers storage drives.' + item_prototypes: + - uuid: c3935598d1b14f8a9ceaadd315ffd64e + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Capacity' + type: DEPENDENT + key: 'hpe.ilo.drive.capacity[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + delay: '0' + units: B + description: 'The capacity of the drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.CapacityBytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.drive.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + tags: + - tag: component + value: drive + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: drive + value: '{#DRIVE_ID}' + - tag: location + value: '{#DRIVE_LOCATION}' + - tag: storage + value: '{#STORAGE_ID}' + - uuid: 408d4190763c476599dbb8793ee09a65 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Get data' + type: DEPENDENT + key: 'hpe.ilo.drive.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get data about the drive.' + preprocessing: + - type: JSONPATH + parameters: + - '$.drives[?(@.systemId == ''{#SYSTEM_ID}'' && @.storageId == ''{#STORAGE_ID}'' && @.Id == ''{#DRIVE_ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hpe.ilo.get_data + tags: + - tag: component + value: drive + - tag: component + value: raw + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: drive + value: '{#DRIVE_ID}' + - tag: location + value: '{#DRIVE_LOCATION}' + - tag: storage + value: '{#STORAGE_ID}' + - uuid: 368329ea2b4b45b2ac5edfb103002915 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Media type' + type: DEPENDENT + key: 'hpe.ilo.drive.media_type[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + delay: '0' + description: 'The media type of the drive.' + valuemap: + name: 'Media type' + preprocessing: + - type: JSONPATH + parameters: + - $.MediaType + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'HDD', + 'SSD' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.drive.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + tags: + - tag: component + value: drive + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: drive + value: '{#DRIVE_ID}' + - tag: location + value: '{#DRIVE_LOCATION}' + - tag: storage + value: '{#STORAGE_ID}' + - uuid: 9800f0f0171542de87508f062c1397e7 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Model' + type: DEPENDENT + key: 'hpe.ilo.drive.model[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model name of the drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.Model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.drive.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + tags: + - tag: component + value: drive + - tag: component + value: inventory + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: drive + value: '{#DRIVE_ID}' + - tag: location + value: '{#DRIVE_LOCATION}' + - tag: storage + value: '{#STORAGE_ID}' + - uuid: a8cf9573ca704edab0fd130a0a3bda76 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Predicted media life left, in %' + type: DEPENDENT + key: 'hpe.ilo.drive.predicted_life_left[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + delay: '0' + discover: NO_DISCOVER + units: '%' + description: 'The percentage of reads and writes that are predicted to still be available for the drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.PredictedMediaLifeLeftPercent + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.drive.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + tags: + - tag: component + value: drive + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: drive + value: '{#DRIVE_ID}' + - tag: location + value: '{#DRIVE_LOCATION}' + - tag: storage + value: '{#STORAGE_ID}' + - uuid: 3122f6ef74f84974b8094022f86f68bb + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Serial number' + type: DEPENDENT + key: 'hpe.ilo.drive.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.SerialNumber + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.drive.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + tags: + - tag: component + value: drive + - tag: component + value: inventory + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: drive + value: '{#DRIVE_ID}' + - tag: location + value: '{#DRIVE_LOCATION}' + - tag: storage + value: '{#STORAGE_ID}' + trigger_prototypes: + - uuid: 723b48e56ef447ab940c0e6bb6ecddd6 + expression: 'change(/HPE iLO by HTTP/hpe.ilo.drive.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.drive.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]))>0' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Drive has been replaced' + priority: INFO + description: 'The drive serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a2218789f4734f72921665308dc3eb5d + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Status indicator' + type: DEPENDENT + key: 'hpe.ilo.drive.status_indicator[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + delay: '0' + description: | + Status of drive. Possible values: + + 0 - "OK", the drive is ok; + 1 - "Fail", the drive has failed; + 2 - "Rebuild", the drive is being rebuilt; + 3 - "PredictiveFailureAnalysis", the drive is still working but predicted to fail soon; + 4 - "Hotspare", the drive is marked to be automatically rebuilt and used as a replacement for a failed drive; + 5 - "InACriticalArray", the array that this drive is a part of is degraded; + 6 - "InAFailedArray ", the array that this drive is a part of is failed; + 10 - "Unknown", the drive status is unknown. + valuemap: + name: 'Drive status' + preprocessing: + - type: JSONPATH + parameters: + - $.StatusIndicator + error_handler: CUSTOM_VALUE + error_handler_params: Unknown + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'OK', + 'Fail', + 'Rebuild', + 'PredictiveFailureAnalysis', + 'Hotspare', + 'InACriticalArray', + 'InAFailedArray' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.ilo.drive.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]' + tags: + - tag: component + value: drive + - tag: component + value: health + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: drive + value: '{#DRIVE_ID}' + - tag: location + value: '{#DRIVE_LOCATION}' + - tag: storage + value: '{#STORAGE_ID}' + trigger_prototypes: + - uuid: e58f3af90e124520bf0c138979480913 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.drive.status_indicator[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}])=1' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Drive has failed' + priority: HIGH + description: 'The drive has failed.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d78d4771170d4668bc6c2ca941bf85f1 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.drive.status_indicator[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}])=3' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Drive is predicted to fail soon' + priority: HIGH + description: 'The drive is still working but predicted to fail soon.' + dependencies: + - name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Drive has failed' + expression: 'last(/HPE iLO by HTTP/hpe.ilo.drive.status_indicator[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}])=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: hpe.ilo.get_data + lld_macro_paths: + - lld_macro: '{#DRIVE_ID}' + path: $.id + - lld_macro: '{#DRIVE_LOCATION}' + path: $.location + - lld_macro: '{#DRIVE_TYPE}' + path: $.media_type + - lld_macro: '{#STORAGE_ID}' + path: $.storage_id + - lld_macro: '{#SYSTEM_HOSTNAME}' + path: $.system_hostname + - lld_macro: '{#SYSTEM_ID}' + path: $.system_id + - lld_macro: '{#SYSTEM_TYPE}' + path: $.system_type + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var drives = JSON.parse(value).drives; + + result = drives.map(function (drive) { + return { + 'id': drive.Id, + 'location': drive.PhysicalLocation.PartLocation.ServiceLabel, + 'media_type': drive.MediaType, + 'system_id': drive.systemId, + 'system_hostname': drive.systemHostname, + 'system_type': drive.systemType, + 'storage_id': drive.storageId + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + overrides: + - name: 'Predicted media life left' + step: '1' + filter: + conditions: + - macro: '{#DRIVE_TYPE}' + value: SSD + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: 'Predicted media life left' + discover: DISCOVER + - uuid: 98061dca5146498ea5f663b229cb7ba9 + name: 'HPE iLO: Fans discovery' + type: DEPENDENT + key: hpe.ilo.fans.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FAN_STATE}' + value: Absent + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovers chassis fans.' + item_prototypes: + - uuid: bd8bceea000a4677b982b56a119ece7e + name: 'Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Get data' + type: DEPENDENT + key: 'hpe.ilo.fan.get_data[{#CHASSIS_ID}, {#FAN_ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get data about the fan.' + preprocessing: + - type: JSONPATH + parameters: + - '$.fans[?(@.chassisId == ''{#CHASSIS_ID}'' && @.MemberId == ''{#FAN_ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hpe.ilo.get_data + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: environment + - tag: component + value: fan + - tag: component + value: raw + - tag: fan + value: '{#FAN_ID}' + - uuid: d30cdb96ceb9470dbba0b30112c3a05b + name: 'Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Speed, in %' + type: DEPENDENT + key: 'hpe.ilo.fan.speed[{#CHASSIS_ID}, {#FAN_ID}]' + delay: '0' + units: '%' + description: 'The current speed of the fan.' + preprocessing: + - type: JSONPATH + parameters: + - $.Reading + master_item: + key: 'hpe.ilo.fan.get_data[{#CHASSIS_ID}, {#FAN_ID}]' + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: environment + - tag: component + value: fan + - tag: component + value: performance + - tag: fan + value: '{#FAN_ID}' + - uuid: 4006994b11a54c5fa3eda5516b8ca94e + name: 'Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Status' + type: DEPENDENT + key: 'hpe.ilo.fan.status[{#CHASSIS_ID}, {#FAN_ID}]' + delay: '0' + description: | + The health state of the fan. Possible values: + + 0 - "OK", the fan is in normal condition; + 1 - "Warning", the fan is in condition that requires attention; + 2 - "Critical", the fan is in critical condition that requires immediate attention; + 10 - "Unknown", the fan is in unknown condition. + valuemap: + name: 'Redfish health state' + preprocessing: + - type: JSONPATH + parameters: + - $.Status.Health + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'OK', + 'Warning', + 'Critical' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.ilo.fan.get_data[{#CHASSIS_ID}, {#FAN_ID}]' + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: environment + - tag: component + value: fan + - tag: component + value: health + - tag: fan + value: '{#FAN_ID}' + trigger_prototypes: + - uuid: c46cf15eae394d3a812ff660382a498c + expression: 'last(/HPE iLO by HTTP/hpe.ilo.fan.status[{#CHASSIS_ID}, {#FAN_ID}])=2' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Fan is in critical state' + priority: HIGH + description: 'The fan is in critical condition that requires immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: de0dd5f0180c433d8fcf77411c4af0d1 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.fan.status[{#CHASSIS_ID}, {#FAN_ID}])=1' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Fan is in warning state' + priority: WARNING + description: 'The fan is in condition that requires attention.' + dependencies: + - name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Fan is in critical state' + expression: 'last(/HPE iLO by HTTP/hpe.ilo.fan.status[{#CHASSIS_ID}, {#FAN_ID}])=2' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: f38e4d46dbe647c0a1cafb4f034d6fa2 + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Speed, in %' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'HPE iLO by HTTP' + key: 'hpe.ilo.fan.speed[{#CHASSIS_ID}, {#FAN_ID}]' + master_item: + key: hpe.ilo.get_data + lld_macro_paths: + - lld_macro: '{#CHASSIS_ID}' + path: $.chassis_id + - lld_macro: '{#FAN_ID}' + path: $.id + - lld_macro: '{#FAN_NAME}' + path: $.name + - lld_macro: '{#FAN_STATE}' + path: $.state + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var fans = JSON.parse(value).fans; + + result = fans.map(function (fan) { + return { + 'id': fan.MemberId, + 'name': fan.Name, + 'chassis_id': fan.chassisId, + 'state': fan.Status.State + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: da0b4a3eea8f45e384e565e40f017abc + name: 'HPE iLO: Managers discovery' + type: DEPENDENT + key: hpe.ilo.managers.discovery + delay: '0' + description: 'Discovers managers.' + item_prototypes: + - uuid: 822317e3e16741c88cc749d5f5b7e67c + name: 'Manager [{#MANAGER_ID}]: Current firmware version' + type: DEPENDENT + key: 'hpe.ilo.manager.firmware.current_version[{#MANAGER_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current firmware version of the manager.' + preprocessing: + - type: JSONPATH + parameters: + - $.FirmwareVersion + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.manager.get_data[{#MANAGER_ID}]' + tags: + - tag: component + value: inventory + - tag: component + value: manager + - tag: manager + value: '{#MANAGER_ID}' + trigger_prototypes: + - uuid: d15f89292b3b4b309bee523a0d46217b + expression: 'change(/HPE iLO by HTTP/hpe.ilo.manager.firmware.current_version[{#MANAGER_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.manager.firmware.current_version[{#MANAGER_ID}]))>0' + name: 'HPE iLO: Manager [{#MANAGER_ID}]: Firmware version has changed' + event_name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Firmware version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The current firmware version of the manager has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1ae004d3b9804fbe9d62325999e9cabd + name: 'Manager [{#MANAGER_ID}]: Get data' + type: DEPENDENT + key: 'hpe.ilo.manager.get_data[{#MANAGER_ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get data about the manager.' + preprocessing: + - type: JSONPATH + parameters: + - '$.managers[?(@.Id == ''{#MANAGER_ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hpe.ilo.get_data + tags: + - tag: component + value: manager + - tag: component + value: raw + - tag: manager + value: '{#MANAGER_ID}' + - uuid: 20008a9fb19841edb7901dc8304bfdf8 + name: 'Manager [{#MANAGER_ID}]: Model' + type: DEPENDENT + key: 'hpe.ilo.manager.model[{#MANAGER_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model name of the manager.' + preprocessing: + - type: JSONPATH + parameters: + - $.Model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.manager.get_data[{#MANAGER_ID}]' + tags: + - tag: component + value: inventory + - tag: component + value: manager + - tag: manager + value: '{#MANAGER_ID}' + - uuid: f178ab2358d842e98d137fcf62ba5dba + name: 'Manager [{#MANAGER_ID}]: Status' + type: DEPENDENT + key: 'hpe.ilo.manager.status[{#MANAGER_ID}]' + delay: '0' + description: | + The health state of the manager. Possible values: + + 0 - "OK", the manager is in normal condition; + 1 - "Warning", the manager is in condition that requires attention; + 2 - "Critical", the manager is in critical condition that requires immediate attention; + 10 - "Unknown", the manager is in unknown condition. + valuemap: + name: 'Redfish health state' + preprocessing: + - type: JSONPATH + parameters: + - $.Status.Health + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'OK', + 'Warning', + 'Critical' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.ilo.manager.get_data[{#MANAGER_ID}]' + tags: + - tag: component + value: health + - tag: component + value: manager + - tag: manager + value: '{#MANAGER_ID}' + trigger_prototypes: + - uuid: faa446c01db44748bf68b08f5d3491cd + expression: 'last(/HPE iLO by HTTP/hpe.ilo.manager.status[{#MANAGER_ID}])=2' + name: 'HPE iLO: Manager [{#MANAGER_ID}]: Manager is in critical state' + priority: HIGH + description: 'The manager is in critical condition that requires immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1835e489df4942d3bb6ffba0e68d838e + expression: 'last(/HPE iLO by HTTP/hpe.ilo.manager.status[{#MANAGER_ID}])=1' + name: 'HPE iLO: Manager [{#MANAGER_ID}]: Manager is in warning state' + priority: WARNING + description: 'The manager is in condition that requires attention.' + dependencies: + - name: 'HPE iLO: Manager [{#MANAGER_ID}]: Manager is in critical state' + expression: 'last(/HPE iLO by HTTP/hpe.ilo.manager.status[{#MANAGER_ID}])=2' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fab6652c9346461eb232342fa8b88b95 + name: 'Manager [{#MANAGER_ID}]: Manager type' + type: DEPENDENT + key: 'hpe.ilo.manager.type[{#MANAGER_ID}]' + delay: '0' + description: | + The manager type. Possible values: + + 0 - "ManagementController", a controller used primarily to monitor or manage the operation of a device or system; + 1 - "EnclosureManager", a controller which provides management functions for a chassis or group of devices or systems; + 2 - "BMC", a controller which provides management functions for a single computer system; + 10 - "Unknown", the manager type is unknown. + valuemap: + name: 'Manager type' + preprocessing: + - type: JSONPATH + parameters: + - $.ManagerType + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'ManagementController', + 'EnclosureManager', + 'BMC' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.manager.get_data[{#MANAGER_ID}]' + tags: + - tag: component + value: manager + - tag: manager + value: '{#MANAGER_ID}' + master_item: + key: hpe.ilo.get_data + lld_macro_paths: + - lld_macro: '{#MANAGER_ID}' + path: $.manager_id + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var managers = JSON.parse(value).managers; + + result = managers.map(function (manager) { + return { + 'manager_id': manager.Id + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 853ddc0701b545fd807c7a688cd16f18 + name: 'HPE iLO: PSU discovery' + type: DEPENDENT + key: hpe.ilo.psu.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#PSU_STATE}' + value: Absent + operator: NOT_MATCHES_REGEX + formulaid: A + description: 'Discovers chassis power supply units (PSU).' + item_prototypes: + - uuid: adb24bee15a341ffbe51047c0798a906 + name: 'Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Get data' + type: DEPENDENT + key: 'hpe.ilo.psu.get_data[{#CHASSIS_ID}, {#PSU_ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get data about the PSU.' + preprocessing: + - type: JSONPATH + parameters: + - '$.psu[?(@.chassisId == ''{#CHASSIS_ID}'' && @.MemberId == ''{#PSU_ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hpe.ilo.get_data + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: power + - tag: component + value: raw + - tag: psu + value: '{#PSU_ID}' + - uuid: c51caa30b1ab4399a1132e4c3ea50c9f + name: 'Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Last power output' + type: DEPENDENT + key: 'hpe.ilo.psu.last_power_output[{#CHASSIS_ID}, {#PSU_ID}]' + delay: '0' + units: W + description: 'The average power output of the PSU.' + preprocessing: + - type: JSONPATH + parameters: + - $.LastPowerOutputWatts + master_item: + key: 'hpe.ilo.psu.get_data[{#CHASSIS_ID}, {#PSU_ID}]' + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: performance + - tag: component + value: power + - tag: psu + value: '{#PSU_ID}' + - uuid: d3edb80dc18f4a92ac06a0025b7e1a76 + name: 'Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Line input voltage' + type: DEPENDENT + key: 'hpe.ilo.psu.line_input_voltage[{#CHASSIS_ID}, {#PSU_ID}]' + delay: '0' + units: V + description: 'The line input voltage at which the PSU is operating.' + preprocessing: + - type: JSONPATH + parameters: + - $.LineInputVoltage + master_item: + key: 'hpe.ilo.psu.get_data[{#CHASSIS_ID}, {#PSU_ID}]' + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: performance + - tag: component + value: power + - tag: psu + value: '{#PSU_ID}' + - uuid: f7594bdb44d1464c8cf1476ceb473215 + name: 'Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Model' + type: DEPENDENT + key: 'hpe.ilo.psu.model[{#CHASSIS_ID}, {#PSU_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The model name of the PSU.' + preprocessing: + - type: JSONPATH + parameters: + - $.Model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.psu.get_data[{#CHASSIS_ID}, {#PSU_ID}]' + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: inventory + - tag: component + value: power + - tag: psu + value: '{#PSU_ID}' + - uuid: 96a3b57288e94c71b4f8ac15bc7a8a14 + name: 'Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Serial number' + type: DEPENDENT + key: 'hpe.ilo.psu.serial_number[{#CHASSIS_ID}, {#PSU_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the PSU.' + preprocessing: + - type: JSONPATH + parameters: + - $.SerialNumber + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.psu.get_data[{#CHASSIS_ID}, {#PSU_ID}]' + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: inventory + - tag: component + value: power + - tag: psu + value: '{#PSU_ID}' + trigger_prototypes: + - uuid: 4a20457b63f14f9dba0e57a4a1be9336 + expression: 'change(/HPE iLO by HTTP/hpe.ilo.psu.serial_number[{#CHASSIS_ID}, {#PSU_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.psu.serial_number[{#CHASSIS_ID}, {#PSU_ID}]))>0' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: PSU has been replaced' + priority: INFO + description: 'The PSU serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5194da566bce4f7ca1073ab56201d32b + name: 'Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Status' + type: DEPENDENT + key: 'hpe.ilo.psu.status[{#CHASSIS_ID}, {#PSU_ID}]' + delay: '0' + description: | + The health state of the PSU. Possible values: + + 0 - "OK", the PSU is in normal condition; + 1 - "Warning", the PSU is in condition that requires attention; + 2 - "Critical", the PSU is in critical condition that requires immediate attention; + 10 - "Unknown", the PSU is in unknown condition. + valuemap: + name: 'Redfish health state' + preprocessing: + - type: JSONPATH + parameters: + - $.Status.Health + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'OK', + 'Warning', + 'Critical' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.ilo.psu.get_data[{#CHASSIS_ID}, {#PSU_ID}]' + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: health + - tag: component + value: power + - tag: psu + value: '{#PSU_ID}' + trigger_prototypes: + - uuid: 5e35becc5b6f4a0b8aee83bd85053dfa + expression: 'last(/HPE iLO by HTTP/hpe.ilo.psu.status[{#CHASSIS_ID}, {#PSU_ID}])=2' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: PSU is in critical state' + priority: HIGH + description: 'The PSU is in critical condition that requires immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6a905448f75c47c09392668b9b636117 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.psu.status[{#CHASSIS_ID}, {#PSU_ID}])=1' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: PSU is in warning state' + priority: WARNING + description: 'The PSU is in condition that requires attention.' + dependencies: + - name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: PSU is in critical state' + expression: 'last(/HPE iLO by HTTP/hpe.ilo.psu.status[{#CHASSIS_ID}, {#PSU_ID}])=2' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 34dea1e5a61b48fd9fe98af7752bf8b4 + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Last power output' + graph_items: + - color: 199C0D + item: + host: 'HPE iLO by HTTP' + key: 'hpe.ilo.psu.last_power_output[{#CHASSIS_ID}, {#PSU_ID}]' + - uuid: 4325a96130604ad3a03165f7573f2980 + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Line input voltage' + graph_items: + - color: 199C0D + item: + host: 'HPE iLO by HTTP' + key: 'hpe.ilo.psu.line_input_voltage[{#CHASSIS_ID}, {#PSU_ID}]' + master_item: + key: hpe.ilo.get_data + lld_macro_paths: + - lld_macro: '{#CHASSIS_ID}' + path: $.chassis_id + - lld_macro: '{#PSU_ID}' + path: $.id + - lld_macro: '{#PSU_STATE}' + path: $.state + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var power_supplies = JSON.parse(value).psu; + + result = power_supplies.map(function (psu) { + return { + 'id': psu.MemberId, + 'chassis_id': psu.chassisId, + 'state': psu.Status.State + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: c984c9668b7b46b19240f7593acf1088 + name: 'HPE iLO: Temperature sensors discovery' + type: DEPENDENT + key: hpe.ilo.sensors.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR_CONTEXT}' + value: '{$ILO.SENSOR.DISCOVERY.CONTEXT.MATCHES}' + formulaid: A + - macro: '{#SENSOR_CONTEXT}' + value: '{$ILO.SENSOR.DISCOVERY.CONTEXT.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SENSOR_NAME}' + value: '{$ILO.SENSOR.DISCOVERY.NAME.MATCHES}' + formulaid: C + - macro: '{#SENSOR_NAME}' + value: '{$ILO.SENSOR.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#SENSOR_STATE}' + value: Absent + operator: NOT_MATCHES_REGEX + formulaid: E + description: 'Discovers chassis temperature sensors.' + item_prototypes: + - uuid: 0067035f746a4317988d70844e71dd7a + name: 'Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Get data' + type: DEPENDENT + key: 'hpe.ilo.sensor.get_data[{#CHASSIS_ID}, {#SENSOR_ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get data about the sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sensors[?(@.chassisId == ''{#CHASSIS_ID}'' && @.MemberId == ''{#SENSOR_ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hpe.ilo.get_data + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: environment + - tag: component + value: raw + - tag: component + value: sensor + - tag: sensor + value: '{#SENSOR_ID}' + - tag: sensor-context + value: '{#SENSOR_CONTEXT}' + - uuid: ef3c3472c21a4716b9b3362e7b33644c + name: 'Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Status' + type: DEPENDENT + key: 'hpe.ilo.sensor.status[{#CHASSIS_ID}, {#SENSOR_ID}]' + delay: '0' + description: | + The health state of the sensor. Possible values: + + 0 - "OK", the sensor is in normal condition; + 1 - "Warning", the sensor is in condition that requires attention; + 2 - "Critical", the sensor is in critical condition that requires immediate attention; + 10 - "Unknown", the sensor is in unknown condition. + valuemap: + name: 'Redfish health state' + preprocessing: + - type: JSONPATH + parameters: + - $.Status.Health + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'OK', + 'Warning', + 'Critical' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.ilo.sensor.get_data[{#CHASSIS_ID}, {#SENSOR_ID}]' + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: environment + - tag: component + value: health + - tag: component + value: sensor + - tag: sensor + value: '{#SENSOR_ID}' + - tag: sensor-context + value: '{#SENSOR_CONTEXT}' + trigger_prototypes: + - uuid: 143900a50f0044f884fe04ba32afe38d + expression: 'last(/HPE iLO by HTTP/hpe.ilo.sensor.status[{#CHASSIS_ID}, {#SENSOR_ID}])=2' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Sensor is in critical state' + priority: HIGH + description: 'The sensor is in critical condition that requires immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 66c09f1d58ee436f96cb2d8e034fce05 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.sensor.status[{#CHASSIS_ID}, {#SENSOR_ID}])=1' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Sensor is in warning state' + priority: WARNING + description: 'The sensor is in condition that requires attention.' + dependencies: + - name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Sensor is in critical state' + expression: 'last(/HPE iLO by HTTP/hpe.ilo.sensor.status[{#CHASSIS_ID}, {#SENSOR_ID}])=2' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 04e0faf0a3b54f84a13341bab1238b60 + name: 'Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Temperature' + type: DEPENDENT + key: 'hpe.ilo.sensor.temperature[{#CHASSIS_ID}, {#SENSOR_ID}]' + delay: '0' + units: '!°C' + description: 'The current temperature reading in Celsius degrees for the sensor.' + preprocessing: + - type: JSONPATH + parameters: + - $.ReadingCelsius + master_item: + key: 'hpe.ilo.sensor.get_data[{#CHASSIS_ID}, {#SENSOR_ID}]' + tags: + - tag: chassis + value: '{#CHASSIS_ID}' + - tag: component + value: environment + - tag: component + value: performance + - tag: component + value: sensor + - tag: sensor + value: '{#SENSOR_ID}' + - tag: sensor-context + value: '{#SENSOR_CONTEXT}' + graph_prototypes: + - uuid: 4e9fadd38f52413a8c5d24b53971d5be + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Temperature' + graph_items: + - color: 199C0D + item: + host: 'HPE iLO by HTTP' + key: 'hpe.ilo.sensor.temperature[{#CHASSIS_ID}, {#SENSOR_ID}]' + master_item: + key: hpe.ilo.get_data + lld_macro_paths: + - lld_macro: '{#CHASSIS_ID}' + path: $.chassis_id + - lld_macro: '{#SENSOR_CONTEXT}' + path: $.context + - lld_macro: '{#SENSOR_ID}' + path: $.id + - lld_macro: '{#SENSOR_NAME}' + path: $.name + - lld_macro: '{#SENSOR_STATE}' + path: $.state + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var sensors = JSON.parse(value).sensors; + + result = sensors.map(function (sensor) { + return { + 'id': sensor.MemberId, + 'name': sensor.Name, + 'chassis_id': sensor.chassisId, + 'state': sensor.Status.State, + 'context': sensor.PhysicalContext + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: d4942c1c86f543fd9270e2b3ea867ab9 + name: 'HPE iLO: Storages discovery' + type: DEPENDENT + key: hpe.ilo.storages.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SYSTEM_HOSTNAME}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.MATCHES:"Storage"}' + formulaid: A + - macro: '{#SYSTEM_HOSTNAME}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.NOT_MATCHES:"Storage"}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SYSTEM_TYPE}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.MATCHES:"Storage"}' + formulaid: C + - macro: '{#SYSTEM_TYPE}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.NOT_MATCHES:"Storage"}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovers computer system storages.' + item_prototypes: + - uuid: 51a5467f6d5948da803123a360ca2973 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Get data' + type: DEPENDENT + key: 'hpe.ilo.storage.get_data[{#SYSTEM_ID}, {#STORAGE_ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get data about the storage.' + preprocessing: + - type: JSONPATH + parameters: + - '$.storages[?(@.systemId == ''{#SYSTEM_ID}'' && @.Id == ''{#STORAGE_ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hpe.ilo.get_data + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: storage + value: '{#STORAGE_ID}' + - uuid: bec36e3da5ed4d71808669b5e298a62a + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Status' + type: DEPENDENT + key: 'hpe.ilo.storage.status[{#SYSTEM_ID}, {#STORAGE_ID}]' + delay: '0' + description: | + The overall health state from the view of this storage. Possible values: + + 0 - "OK", the storage is in normal condition; + 1 - "Warning", the storage is in condition that requires attention; + 2 - "Critical", the storage is in critical condition that requires immediate attention; + 10 - "Unknown", the storage is in unknown condition. + valuemap: + name: 'Redfish health state' + preprocessing: + - type: JSONPATH + parameters: + - '$.Status["Health","HealthRollup"].first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'OK', + 'Warning', + 'Critical' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.ilo.storage.get_data[{#SYSTEM_ID}, {#STORAGE_ID}]' + tags: + - tag: component + value: health + - tag: component + value: storage + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: storage + value: '{#STORAGE_ID}' + trigger_prototypes: + - uuid: 3cbf371fee974ae18cc48a5c8751d002 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.storage.status[{#SYSTEM_ID}, {#STORAGE_ID}])=2' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Storage is in critical state' + priority: HIGH + description: 'The computer system is in critical condition that requires immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f7971c1b03874ba38d56e97cecb415f8 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.storage.status[{#SYSTEM_ID}, {#STORAGE_ID}])=1' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Storage is in warning state' + priority: WARNING + description: 'The computer system is in condition that requires attention.' + dependencies: + - name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Storage is in critical state' + expression: 'last(/HPE iLO by HTTP/hpe.ilo.storage.status[{#SYSTEM_ID}, {#STORAGE_ID}])=2' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: hpe.ilo.get_data + lld_macro_paths: + - lld_macro: '{#STORAGE_ID}' + path: $.id + - lld_macro: '{#STORAGE_NAME}' + path: $.name + - lld_macro: '{#SYSTEM_HOSTNAME}' + path: $.system_hostname + - lld_macro: '{#SYSTEM_ID}' + path: $.system_id + - lld_macro: '{#SYSTEM_TYPE}' + path: $.system_type + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var storages = JSON.parse(value).storages; + + result = storages.map(function (storage) { + return { + 'id': storage.Id, + 'name': storage.name, + 'system_id': storage.systemId, + 'system_hostname': storage.systemHostname, + 'system_type': storage.systemType + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 5ca4da09031148b694152f042ddf890c + name: 'HPE iLO: Volumes discovery' + type: DEPENDENT + key: hpe.ilo.volumes.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SYSTEM_HOSTNAME}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.MATCHES:"Volume"}' + formulaid: A + - macro: '{#SYSTEM_HOSTNAME}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.NOT_MATCHES:"Volume"}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SYSTEM_TYPE}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.MATCHES:"Volume"}' + formulaid: C + - macro: '{#SYSTEM_TYPE}' + value: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.NOT_MATCHES:"Volume"}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovers storage volumes.' + item_prototypes: + - uuid: 9128fbbb6f0a450abb03f427cf22210f + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Capacity' + type: DEPENDENT + key: 'hpe.ilo.volume.capacity[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]' + delay: '0' + units: B + description: 'The capacity of the volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.CapacityBytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.volume.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: storage + value: '{#STORAGE_ID}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: 709f9a2cf82445988bced0b404524e05 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Get data' + type: DEPENDENT + key: 'hpe.ilo.volume.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get data about the volume.' + preprocessing: + - type: JSONPATH + parameters: + - '$.volumes[?(@.systemId == ''{#SYSTEM_ID}'' && @.storageId == ''{#STORAGE_ID}'' && @.Id == ''{#VOLUME_ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hpe.ilo.get_data + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: component + value: volume + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: storage + value: '{#STORAGE_ID}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: b42c7a7314a9463d959925fb5b0fd275 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: RAID level' + type: DEPENDENT + key: 'hpe.ilo.volume.raid_level[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]' + delay: '0' + description: 'The RAID level of the volume.' + valuemap: + name: 'RAID level' + preprocessing: + - type: JSONPATH + parameters: + - $.RAIDType + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'RAID0', + 'RAID1', + 'RAID3', + 'RAID4', + 'RAID5', + 'RAID6', + 'RAID10', + 'RAID01', + 'RAID6TP', + 'RAID1E', + 'RAID50', + 'RAID60', + 'RAID00', + 'RAID10E', + 'RAID1Triple', + 'RAID10Triple', + 'None' + ].indexOf(value); + return idx !== -1 ? idx : 20; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hpe.ilo.volume.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]' + tags: + - tag: component + value: storage + - tag: component + value: volume + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: storage + value: '{#STORAGE_ID}' + - tag: volume + value: '{#VOLUME_ID}' + - uuid: c4829f0dac1c42edad3161ac9df74ea6 + name: 'Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Status' + type: DEPENDENT + key: 'hpe.ilo.volume.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]' + delay: '0' + description: | + The health state of the volume. Possible values: + + 0 - "OK", the volume is in normal condition; + 1 - "Warning", the volume is in condition that requires attention; + 2 - "Critical", the volume is in critical condition that requires immediate attention; + 10 - "Unknown", the volume is in unknown condition. + valuemap: + name: 'Redfish health state' + preprocessing: + - type: JSONPATH + parameters: + - $.Status.Health + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'OK', + 'Warning', + 'Critical' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hpe.ilo.volume.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]' + tags: + - tag: component + value: health + - tag: component + value: storage + - tag: component + value: volume + - tag: computer-system + value: '{#SYSTEM_HOSTNAME}' + - tag: storage + value: '{#STORAGE_ID}' + - tag: volume + value: '{#VOLUME_ID}' + trigger_prototypes: + - uuid: eec0cede62004a56ac9ddce26be52f7f + expression: 'last(/HPE iLO by HTTP/hpe.ilo.volume.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}])=2' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Volume is in critical state' + priority: HIGH + description: 'The volume is in critical condition that requires immediate attention.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fff82b7d4fea43ed8099fc43e1fc5421 + expression: 'last(/HPE iLO by HTTP/hpe.ilo.volume.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}])=1' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Volume is in warning state' + priority: WARNING + description: 'The volume is in condition that requires attention.' + dependencies: + - name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Volume is in critical state' + expression: 'last(/HPE iLO by HTTP/hpe.ilo.volume.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}])=2' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: hpe.ilo.get_data + lld_macro_paths: + - lld_macro: '{#STORAGE_ID}' + path: $.storage_id + - lld_macro: '{#SYSTEM_HOSTNAME}' + path: $.system_hostname + - lld_macro: '{#SYSTEM_ID}' + path: $.system_id + - lld_macro: '{#SYSTEM_TYPE}' + path: $.system_type + - lld_macro: '{#VOLUME_ID}' + path: $.id + - lld_macro: '{#VOLUME_NAME}' + path: $.name + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var volumes = JSON.parse(value).volumes; + + result = volumes.map(function (volume) { + return { + 'id': volume.Id, + 'name': volume.DisplayName, + 'system_id': volume.systemId, + 'system_hostname': volume.systemHostname, + 'system_type': volume.systemType, + 'storage_id': volume.storageId + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: hpe + - tag: target + value: ilo + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "HPE iLO", e.g. {$HTTP.TLS.VERIFY:"HPE iLO"}.' + - macro: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.MATCHES}' + value: .+ + description: 'The computer system hostname regex filter to use in computer systems related metrics discovery for including. Can be used with the following context to include metrics of the particular entity: System, Storage, Controller, Drive, Volume.' + - macro: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The computer system hostname regex filter to use in computer systems related metrics discovery for excluding. Can be used with the following context to exclude metrics of the particular entity: System, Storage, Controller, Drive, Volume.' + - macro: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.MATCHES}' + value: .+ + description: 'The computer system type regex filter to use in computer systems related metrics discovery for including. Can be used with the following context to include metrics of the particular entity: System, Storage, Controller, Drive, Volume.' + - macro: '{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The computer system type regex filter to use in computer systems related metrics discovery for excluding. Can be used with the following context to exclude metrics of the particular entity: System, Storage, Controller, Drive, Volume.' + - macro: '{$ILO.HTTP_PROXY}' + description: 'The HTTP proxy for script items (set if needed). If the macro is empty, then no proxy is used.' + - macro: '{$ILO.INTERVAL}' + value: 1m + description: 'The update interval for the script item that retrieves data from API.' + - macro: '{$ILO.PASSWORD}' + type: SECRET_TEXT + description: 'The password of the user that is used for monitoring.' + - macro: '{$ILO.SENSOR.DISCOVERY.CONTEXT.MATCHES}' + value: .+ + description: 'The sensor physical context regex filter to use in temperature sensors discovery for including.' + - macro: '{$ILO.SENSOR.DISCOVERY.CONTEXT.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The sensor physical context regex filter to use in temperature sensors discovery for excluding.' + - macro: '{$ILO.SENSOR.DISCOVERY.NAME.MATCHES}' + value: .+ + description: 'The sensor name regex filter to use in temperature sensors discovery for including.' + - macro: '{$ILO.SENSOR.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The sensor name regex filter to use in temperature sensors discovery for excluding.' + - macro: '{$ILO.TIMEOUT}' + value: 15s + description: 'The timeout threshold for the script item that retrieves data from API.' + - macro: '{$ILO.URL}' + description: 'The iLO API endpoint in the format "://[:port]/" (port is optional).' + - macro: '{$ILO.USER}' + description: 'The name of the user that is used for monitoring.' + dashboards: + - uuid: 20b6f76728a548698f1fb77efcf9c534 + name: 'HPE iLO: Overview' + pages: + - name: 'HPE iLO: Computer systems' + widgets: + - type: graphprototype + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE iLO by HTTP' + name: 'HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Resources usage' + - type: STRING + name: reference + value: AAAAA + - name: 'HPE iLO: Fans' + widgets: + - type: graphprototype + width: '72' + height: '10' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE iLO by HTTP' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Speed, in %' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: rows + value: '2' + - name: 'HPE iLO: Thermal sensors' + widgets: + - type: graphprototype + width: '72' + height: '10' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE iLO by HTTP' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Temperature' + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: rows + value: '2' + - name: 'HPE iLO: Power supplies' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE iLO by HTTP' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Line input voltage' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HPE iLO by HTTP' + name: 'HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Last power output' + - type: STRING + name: reference + value: AAAAE + valuemaps: + - uuid: 724ed4e07ca34bf594719298055a0837 + name: 'Computer system type' + mappings: + - value: '0' + newvalue: Physical + - value: '1' + newvalue: Virtual + - value: '2' + newvalue: OS + - value: '3' + newvalue: PhysicallyPartitioned + - value: '4' + newvalue: VirtuallyPartitioned + - value: '5' + newvalue: DPU + - value: '10' + newvalue: Unknown + - uuid: dacd46f1412e4ce2adfa0d938ebbc952 + name: 'Drive status' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: Fail + - value: '2' + newvalue: Rebuild + - value: '3' + newvalue: PredictiveFailureAnalysis + - value: '4' + newvalue: Hotspare + - value: '5' + newvalue: InACriticalArray + - value: '6' + newvalue: InAFailedArray + - value: '10' + newvalue: Unknown + - uuid: 30627d058a064666b08c0bbdacd75fe3 + name: 'Manager type' + mappings: + - value: '0' + newvalue: ManagementController + - value: '1' + newvalue: EnclosureManager + - value: '2' + newvalue: BMC + - value: '10' + newvalue: Unknown + - uuid: aecddd070d53474eaca622da04842d53 + name: 'Media type' + mappings: + - value: '0' + newvalue: HDD + - value: '1' + newvalue: SSD + - value: '10' + newvalue: Unknown + - uuid: 0aab2ac5ea59435280e84683bc852d32 + name: 'RAID level' + mappings: + - value: '0' + newvalue: RAID0 + - value: '1' + newvalue: RAID1 + - value: '2' + newvalue: RAID3 + - value: '3' + newvalue: RAID4 + - value: '4' + newvalue: RAID5 + - value: '5' + newvalue: RAID6 + - value: '6' + newvalue: RAID10 + - value: '7' + newvalue: RAID01 + - value: '8' + newvalue: RAID6TP + - value: '9' + newvalue: RAID1E + - value: '10' + newvalue: RAID50 + - value: '11' + newvalue: RAID60 + - value: '12' + newvalue: RAID00 + - value: '13' + newvalue: RAID10E + - value: '14' + newvalue: RAID1Triple + - value: '15' + newvalue: RAID10Triple + - value: '16' + newvalue: None + - value: '20' + newvalue: Unknown + - uuid: 267eae89956048769dcf6eb015b921ba + name: 'Redfish health state' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: Warning + - value: '2' + newvalue: Critical + - value: '10' + newvalue: Unknown diff --git a/HP_Comware_HH3C_by_SNMP.yaml b/HP_Comware_HH3C_by_SNMP.yaml new file mode 100644 index 0000000..dd60fcb --- /dev/null +++ b/HP_Comware_HH3C_by_SNMP.yaml @@ -0,0 +1,1959 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 57aeccd43b744942b9555269b79a96ad + template: 'HP Comware HH3C by SNMP' + name: 'HP Comware HH3C by SNMP' + description: | + Template Net HP Comware (HH3C) + + MIBs used: + EtherLike-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + ENTITY-MIB + HH3C-ENTITY-EXT-MIB + IF-MIB + + Known Issues: + + Description: No temperature sensors. All entities of them return 0 for HH3C-ENTITY-EXT-MIB::hh3cEntityExtTemperature + Version: 1910-48 Switch Software Version 5.20.99, Release 1116 Copyright(c)2010-2016 Hewlett Packard Enterprise Development LP + Device: HP 1910-48 + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: fbefc108101b48e298a01037d5b3db50 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1bd6a4748e29498e99ccd3b23d83cdf7 + expression: 'max(/HP Comware HH3C by SNMP/icmpping,#3)=0' + name: 'HP Comware HH3C: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 49b86b6d17394b859b02ea79c6d28b30 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d41edaea369d40d2944af72a3ee76850 + expression: 'min(/HP Comware HH3C by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/HP Comware HH3C by SNMP/icmppingloss,5m)<100' + name: 'HP Comware HH3C: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'HP Comware HH3C: Unavailable by ICMP ping' + expression: 'max(/HP Comware HH3C by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1560f8f1509040a783e4149845ce38a3 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2698115b6f014e8cbdb11c2d5eeb8f08 + expression: 'avg(/HP Comware HH3C by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'HP Comware HH3C: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'HP Comware HH3C: High ICMP ping loss' + expression: 'min(/HP Comware HH3C by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/HP Comware HH3C by SNMP/icmppingloss,5m)<100' + - name: 'HP Comware HH3C: Unavailable by ICMP ping' + expression: 'max(/HP Comware HH3C by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fa164b01a218494dab454126b4f561a9 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 6f340c49d4364b8096a49c3fa52e2745 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 85e404c0181143f28b1187acb08cfa04 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b476c099f8f64aa89cd5f61fc8b47dfa + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 3e4feed03de941c98e88e17b3e81b5e4 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b57179ad3e5f41f5805e93ff9e68d631 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: cf1d0aa58a194904902899dbba814514 + expression: 'last(/HP Comware HH3C by SNMP/system.name,#1)<>last(/HP Comware HH3C by SNMP/system.name,#2) and length(last(/HP Comware HH3C by SNMP/system.name))>0' + name: 'HP Comware HH3C: System name has changed' + event_name: 'HP Comware HH3C: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: ac039d3041cc439eb1c3184ed78554d0 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 72139a34e0cf4357b86a52cf8430ee8c + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c407deea6e0f41b18d84ccbe7fcbca63 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: bc6e9c399c3d4d43aaeb5a1b03deb7d4 + expression: 'max(/HP Comware HH3C by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'HP Comware HH3C: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'HP Comware HH3C: Unavailable by ICMP ping' + expression: 'max(/HP Comware HH3C by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: ab903dd9cb4b49daba7a1bb0c2c65a1f + name: 'Entity Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: entity.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_CLASS}' + value: '3' + formulaid: A + item_prototypes: + - uuid: 88a392e093444292b3c58c5f9d5305a5 + name: '{#ENT_NAME}: Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.9.{#SNMPINDEX}]' + key: 'system.hw.firmware[entPhysicalFirmwareRev.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 17e0f72418f4432d852b5c39ddf675bd + expression: 'last(/HP Comware HH3C by SNMP/system.hw.firmware[entPhysicalFirmwareRev.{#SNMPINDEX}],#1)<>last(/HP Comware HH3C by SNMP/system.hw.firmware[entPhysicalFirmwareRev.{#SNMPINDEX}],#2) and length(last(/HP Comware HH3C by SNMP/system.hw.firmware[entPhysicalFirmwareRev.{#SNMPINDEX}]))>0' + name: 'HP Comware HH3C: {#ENT_NAME}: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: cc241e313bde48e1bd23f3eefb667439 + name: '{#ENT_NAME}: Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.2.{#SNMPINDEX}]' + key: 'system.hw.model[entPhysicalDescr.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 9ebc80e149fc4db7a4fb7df2322aad86 + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: d3633f4584344570a1c0570f0b082590 + expression: 'last(/HP Comware HH3C by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#1)<>last(/HP Comware HH3C by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#2) and length(last(/HP Comware HH3C by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]))>0' + name: 'HP Comware HH3C: {#ENT_NAME}: Device has been replaced' + event_name: 'HP Comware HH3C: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a63db3df3939447397df5bf9a58edde1 + name: '{#ENT_NAME}: Hardware version(revision)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.8.{#SNMPINDEX}]' + key: 'system.hw.version[entPhysicalHardwareRev.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: a54f57e58f494300b99161b1fb8f2edf + name: '{#ENT_NAME}: Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.10.{#SNMPINDEX}]' + key: 'system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + trigger_prototypes: + - uuid: 9e6cccf7daec4405ac3bb1a27670fcee + expression: 'last(/HP Comware HH3C by SNMP/system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}],#1)<>last(/HP Comware HH3C by SNMP/system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}],#2) and length(last(/HP Comware HH3C by SNMP/system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}]))>0' + name: 'HP Comware HH3C: {#ENT_NAME}: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'HP Comware HH3C: System name has changed' + expression: 'last(/HP Comware HH3C by SNMP/system.name,#1)<>last(/HP Comware HH3C by SNMP/system.name,#2) and length(last(/HP Comware HH3C by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: fdd2fcda49ab4f00861f1a2dcee1dcad + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_DESCR},1.3.6.1.2.1.47.1.1.1.1.2]' + key: fan.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_CLASS}' + value: '7' + formulaid: A + description: 'Discovering all entities of PhysicalClass - 7: fan(7)' + item_prototypes: + - uuid: 9cacbc1e037a4c0abdf0862014484a3c + name: '{#ENT_NAME}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.25506.2.6.1.1.1.1.19.{#SNMPINDEX}]' + key: 'sensor.fan.status[hh3cEntityExtErrorStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: HH3C-ENTITY-EXT-MIB + Indicate the error state of this entity object. + fanError(41) means that the fan stops working. + valuemap: + name: 'HH3C-ENTITY-EXT-MIB::hh3cEntityExtErrorStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: b0821c8e75e14e53906c3a3f209a2785 + expression: 'count(/HP Comware HH3C by SNMP/sensor.fan.status[hh3cEntityExtErrorStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"fanError\"}")=1 or count(/HP Comware HH3C by SNMP/sensor.fan.status[hh3cEntityExtErrorStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"hardwareFaulty\"}")=1' + name: 'HP Comware HH3C: {#ENT_NAME}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 268421e66ba94cecac8fdeac7dfbffbb + name: 'Module Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.47.1.1.1.1.2,{#MODULE_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: module.discovery + delay: 1h + filter: + evaltype: OR + conditions: + - macro: '{#SNMPVALUE}' + value: '(Fabric|FABRIC) (.+) (Module|MODULE)' + formulaid: A + - macro: '{#SNMPVALUE}' + value: '^(MODULE|Module) (LEVEL|level)1$' + formulaid: B + description: 'Filter limits results to ''Module level1'' or Fabric Modules' + item_prototypes: + - uuid: edbaa4c5e6e744b3bd4d7ab85b42c1ca + name: '{#MODULE_NAME}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.25506.2.6.1.1.1.1.6.{#SNMPINDEX}]' + key: 'system.cpu.util[hh3cEntityExtCpuUsage.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: HH3C-ENTITY-EXT-MIB + The CPU usage for this entity. Generally, the CPU usage + will calculate the overall CPU usage on the entity, and it + is not sensible with the number of CPU on the entity + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 37a4a248c89240fe82c5fd6622123aa0 + expression: 'min(/HP Comware HH3C by SNMP/system.cpu.util[hh3cEntityExtCpuUsage.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'HP Comware HH3C: {#MODULE_NAME}: High CPU utilization' + event_name: 'HP Comware HH3C: {#MODULE_NAME}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 3021126f556f4c62b335c8108ba1cff1 + name: '{#MODULE_NAME}: Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.25506.2.6.1.1.1.1.8.{#SNMPINDEX}]' + key: 'vm.memory.util[hh3cEntityExtMemUsage.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: HH3C-ENTITY-EXT-MIB + The memory usage for the entity. This object indicates what + percent of memory are used. + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: e8d3cb45afea4cbd935c9ea668746260 + expression: 'min(/HP Comware HH3C by SNMP/vm.memory.util[hh3cEntityExtMemUsage.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'HP Comware HH3C: {#MODULE_NAME}: High memory utilization' + event_name: 'HP Comware HH3C: {#MODULE_NAME}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 2f7801aa39bd486bb9d2ff751c98559b + name: '{#MODULE_NAME}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HP Comware HH3C by SNMP' + key: 'system.cpu.util[hh3cEntityExtCpuUsage.{#SNMPINDEX}]' + - uuid: ff71369f73174bc0baf98f6da6f82d97 + name: '{#MODULE_NAME}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HP Comware HH3C by SNMP' + key: 'vm.memory.util[hh3cEntityExtMemUsage.{#SNMPINDEX}]' + - uuid: ef05164a28be4a37950e7edc17dd389b + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 22cd0f5dd18b4d68ba2695a681819c45 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 442bc76f9f4441f6b3c7ff60b9359e2b + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ac12b0e85f3b49239838c6625d62d8a9 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ed6e19e8821349f380a3c0d4fdd2f4e0 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d077353aafbb43678bed7dba795923ce + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e76bb270115240d8b0fdb17b1b010418 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 61b52d6ce511476a8baeaf302476e831 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4391767dc38e4f4fbc1cd2dc186beb82 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d0a5ea31836946f28abe357440ebdbea + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'HP Comware HH3C: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 2733e5694b544bb98ff981b2ed8371ec + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b672a06043664dafa8f69d7d530a8723 + expression: | + change(/HP Comware HH3C by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/HP Comware HH3C by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/HP Comware HH3C by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/HP Comware HH3C by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/HP Comware HH3C by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/HP Comware HH3C by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/HP Comware HH3C by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/HP Comware HH3C by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/HP Comware HH3C by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/HP Comware HH3C by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'HP Comware HH3C: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'HP Comware HH3C: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 98c74ed2d41941218802f4c472331f46 + expression: | + (avg(/HP Comware HH3C by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/HP Comware HH3C by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/HP Comware HH3C by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/HP Comware HH3C by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/HP Comware HH3C by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/HP Comware HH3C by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/HP Comware HH3C by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/HP Comware HH3C by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/HP Comware HH3C by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'HP Comware HH3C: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'HP Comware HH3C: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'HP Comware HH3C: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: d7d8ad2b63ac41e6b84852c312c2a8d9 + expression: | + min(/HP Comware HH3C by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/HP Comware HH3C by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/HP Comware HH3C by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/HP Comware HH3C by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'HP Comware HH3C: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'HP Comware HH3C: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'HP Comware HH3C: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/HP Comware HH3C by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 220602812c8e4507a236a945fe3ec539 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HP Comware HH3C by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'HP Comware HH3C by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'HP Comware HH3C by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'HP Comware HH3C by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'HP Comware HH3C by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'HP Comware HH3C by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 21d413e388294d288edc95d98eb27980 + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: ee270fb1f0c54a5c91c581ee28c7a066 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0ff624a6250b431498e4747678149e4b + expression: 'last(/HP Comware HH3C by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'HP Comware HH3C: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + - uuid: 75f751bae6e64b9892c9283cefa8db80 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_DESCR},1.3.6.1.2.1.47.1.1.1.1.2]' + key: psu.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_CLASS}' + value: '6' + formulaid: A + description: 'Discovering all entities of PhysicalClass - 6: powerSupply(6)' + item_prototypes: + - uuid: 1ed2aa667cc94e6f9fb3abb9cb8de9b2 + name: '{#ENT_NAME}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.25506.2.6.1.1.1.1.19.{#SNMPINDEX}]' + key: 'sensor.psu.status[hh3cEntityExtErrorStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: HH3C-ENTITY-EXT-MIB + Indicate the error state of this entity object. + psuError(51) means that the Power Supply Unit is in the state of fault. + rpsError(61) means the Redundant Power Supply is in the state of fault. + valuemap: + name: 'HH3C-ENTITY-EXT-MIB::hh3cEntityExtErrorStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 0c3cb88352e2417fb2b80bb78448fb35 + expression: 'count(/HP Comware HH3C by SNMP/sensor.psu.status[hh3cEntityExtErrorStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"psuError\"}")=1 or count(/HP Comware HH3C by SNMP/sensor.psu.status[hh3cEntityExtErrorStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"rpsError\"}")=1 or count(/HP Comware HH3C by SNMP/sensor.psu.status[hh3cEntityExtErrorStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"hardwareFaulty\"}")=1' + name: 'HP Comware HH3C: {#ENT_NAME}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 14606d314fc24002a0a4cda2fa009d45 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.47.1.1.1.1.2,{#MODULE_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: temp.discovery + delay: 1h + filter: + evaltype: OR + conditions: + - macro: '{#SNMPVALUE}' + value: '(Fabric|FABRIC) (.+) (Module|MODULE)' + formulaid: A + - macro: '{#SNMPVALUE}' + value: '(T|t)emperature.*(s|S)ensor' + formulaid: B + - macro: '{#SNMPVALUE}' + value: '^(MODULE|Module) (LEVEL|level)1$' + formulaid: C + description: 'Discovering modules temperature (same filter as in Module Discovery) plus and temperature sensors' + item_prototypes: + - uuid: 4b18458608f74e0ca48af5cb674e324d + name: '{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.25506.2.6.1.1.1.1.12.{#SNMPINDEX}]' + key: 'sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: HH3C-ENTITY-EXT-MIB + The temperature for the {#SNMPVALUE}. + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: bbad03018e8e408c952cca2615b4eab3 + expression: 'avg(/HP Comware HH3C by SNMP/sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/HP Comware HH3C by SNMP/sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'HP Comware HH3C: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'HP Comware HH3C: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cda6a4e305fe41239462d2f85acc5590 + expression: 'avg(/HP Comware HH3C by SNMP/sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/HP Comware HH3C by SNMP/sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'HP Comware HH3C: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'HP Comware HH3C: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'HP Comware HH3C: {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/HP Comware HH3C by SNMP/sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/HP Comware HH3C by SNMP/sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 340a9c397bff4ac5a37a2ada9d0c1e69 + expression: 'avg(/HP Comware HH3C by SNMP/sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/HP Comware HH3C by SNMP/sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'HP Comware HH3C: {#SNMPVALUE}: Temperature is too low' + event_name: 'HP Comware HH3C: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: hp + - tag: target + value: hp-comware + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS:"fanError"}' + value: '41' + - macro: '{$FAN_CRIT_STATUS:"hardwareFaulty"}' + value: '91' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS:"hardwareFaulty"}' + value: '91' + - macro: '{$PSU_CRIT_STATUS:"psuError"}' + value: '51' + - macro: '{$PSU_CRIT_STATUS:"rpsError"}' + value: '61' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + dashboards: + - uuid: bb5d0711937d47d989653b53b7772cea + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HP Comware HH3C by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + - uuid: 74325ab2f9e346a89eb281df04154ab2 + name: Resources + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HP Comware HH3C by SNMP' + name: '{#MODULE_NAME}: CPU utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HP Comware HH3C by SNMP' + name: '{#MODULE_NAME}: Memory utilization' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: ec3b9adaa2ad448db5a613cfb6e02fd3 + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: d7832aa00dd743bb8451cabff4e90e60 + name: 'HH3C-ENTITY-EXT-MIB::hh3cEntityExtErrorStatus' + mappings: + - value: '1' + newvalue: notSupported + - value: '2' + newvalue: normal + - value: '3' + newvalue: postFailure + - value: '4' + newvalue: entityAbsent + - value: '11' + newvalue: poeError + - value: '21' + newvalue: stackError + - value: '22' + newvalue: stackPortBlocked + - value: '23' + newvalue: stackPortFailed + - value: '31' + newvalue: sfpRecvError + - value: '32' + newvalue: sfpSendError + - value: '33' + newvalue: sfpBothError + - value: '41' + newvalue: fanError + - value: '51' + newvalue: psuError + - value: '61' + newvalue: rpsError + - value: '71' + newvalue: moduleFaulty + - value: '81' + newvalue: sensorError + - value: '91' + newvalue: hardwareFaulty + - uuid: 47c29a4e28094f59a3666ab1bc7bbba9 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 023e30ad64bc402abf989de29c2b7c5e + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 814a713abe0740bc93531596474b80b2 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: f6c6d62117c749a482792e753486a2be + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: c1372deba2b148f4ac8be6493f0b9868 + expression: '(last(/HP Comware HH3C by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/HP Comware HH3C by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/HP Comware HH3C by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/HP Comware HH3C by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'HP Comware HH3C: Host has been restarted' + event_name: 'HP Comware HH3C: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'HP Comware HH3C: No SNMP data collection' + expression: 'max(/HP Comware HH3C by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/HP_Enterprise_Switch_by_SNMP.yaml b/HP_Enterprise_Switch_by_SNMP.yaml new file mode 100644 index 0000000..70e39e6 --- /dev/null +++ b/HP_Enterprise_Switch_by_SNMP.yaml @@ -0,0 +1,2025 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: cce20a5d149a48b7ac7f5383c3510883 + template: 'HP Enterprise Switch by SNMP' + name: 'HP Enterprise Switch by SNMP' + description: | + Template Net HP Enterprise Switch + + MIBs used: + NETSWITCH-MIB + HP-ICF-CHASSIS + ENTITY-SENSORS-MIB + IF-MIB + EtherLike-MIB + SEMI-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + ENTITY-MIB + STATISTICS-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: eb35864dcdc142d1a136e47fabe5f017 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8fb33a256deb49a096b287493285e300 + expression: 'max(/HP Enterprise Switch by SNMP/icmpping,#3)=0' + name: 'HP Enterprise Switch: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 722e38d7a1bd433192616664cc2824f8 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 589e13a6ab084dd4b7d1456f7707f44d + expression: 'min(/HP Enterprise Switch by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/HP Enterprise Switch by SNMP/icmppingloss,5m)<100' + name: 'HP Enterprise Switch: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'HP Enterprise Switch: Unavailable by ICMP ping' + expression: 'max(/HP Enterprise Switch by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 93f693245d3848afb6c89881cede42c1 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 75bdd8a0cd664815aa3e4fa54d4f0b97 + expression: 'avg(/HP Enterprise Switch by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'HP Enterprise Switch: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'HP Enterprise Switch: High ICMP ping loss' + expression: 'min(/HP Enterprise Switch by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/HP Enterprise Switch by SNMP/icmppingloss,5m)<100' + - name: 'HP Enterprise Switch: Unavailable by ICMP ping' + expression: 'max(/HP Enterprise Switch by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b7530ee6104342319b0cad986a3a4daf + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 1397f0fc832e47daa39308585f260152 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 083172af308e401a99a662f615a5b450 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0]' + key: 'system.cpu.util[hpSwitchCpuStat.0]' + value_type: FLOAT + units: '%' + description: | + MIB: STATISTICS-MIB + The CPU utilization in percent(%). + Reference: http://h20564.www2.hpe.com/hpsc/doc/public/display?docId=emr_na-c02597344&sp4ts.oid=51079 + tags: + - tag: component + value: cpu + triggers: + - uuid: 883e49e933bd4cfda0e7dde774604a0a + expression: 'min(/HP Enterprise Switch by SNMP/system.cpu.util[hpSwitchCpuStat.0],5m)>{$CPU.UTIL.CRIT}' + name: 'HP Enterprise Switch: High CPU utilization' + event_name: 'HP Enterprise Switch: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 31211351783648bc9c727205c0273a4b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: dadf12eb4c0a42bf9504e15bc4fe6d7c + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11.2.14.11.5.1.1.3.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: NETSWITCH-MIB + Contains the operating code version number (also known as software or firmware). + For example, a software version such as A.08.01 is described as follows: + A the function set available in your router + 08 the common release number + 01 updates to the current common release + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a9dcdf4129d041eca8dadc8bfbc455ee + expression: 'last(/HP Enterprise Switch by SNMP/system.hw.firmware,#1)<>last(/HP Enterprise Switch by SNMP/system.hw.firmware,#2) and length(last(/HP Enterprise Switch by SNMP/system.hw.firmware))>0' + name: 'HP Enterprise Switch: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 12d7d4a915714166b2c0a48733235ac1 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11.2.36.1.1.2.9.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SEMI-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6b9b9b0d1ff24074bb344d04efe53444 + expression: 'last(/HP Enterprise Switch by SNMP/system.hw.serialnumber,#1)<>last(/HP Enterprise Switch by SNMP/system.hw.serialnumber,#2) and length(last(/HP Enterprise Switch by SNMP/system.hw.serialnumber))>0' + name: 'HP Enterprise Switch: Device has been replaced' + event_name: 'HP Enterprise Switch: Device has been replaced (new serial number received)' + priority: INFO + description: 'The device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a0659dadbef14fb1ac9be45d47388aa2 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: ad2dc1149eb546309657928b944c49fb + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ba7fd7afad3f4b76bdfedc8c6c3a24ac + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 63f6f85bfed94821a8339c46544dde0e + expression: 'last(/HP Enterprise Switch by SNMP/system.name,#1)<>last(/HP Enterprise Switch by SNMP/system.name,#2) and length(last(/HP Enterprise Switch by SNMP/system.name))>0' + name: 'HP Enterprise Switch: System name has changed' + event_name: 'HP Enterprise Switch: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 02e67b092ccf478ba13537ba6471f3fd + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 74fd9c1bd546497aa20b9af09b951e98 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: af855c1e75304c26b11a86c2a86f08f2 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d64df6c48ce44bbcafcdd60a3102b41c + expression: 'max(/HP Enterprise Switch by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'HP Enterprise Switch: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'HP Enterprise Switch: Unavailable by ICMP ping' + expression: 'max(/HP Enterprise Switch by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 4d827ed3c2a6436d9ea453ef1568d47e + name: 'Entity Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: entity.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_CLASS}' + value: '3' + formulaid: A + item_prototypes: + - uuid: 6bd9d8c8d9cd473fb7e562cbde4de097 + name: '{#ENT_NAME}: Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.2.{#SNMPINDEX}]' + key: 'system.hw.model[entPhysicalDescr.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: baffe9cf11744c2286592a35934fb5b0 + name: '{#ENT_NAME}: Hardware version(revision)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.8.{#SNMPINDEX}]' + key: 'system.hw.version[entPhysicalHardwareRev.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: ebc407e29b1f4575b50ca7bfb3a2abc8 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.4.1.11.2.14.11.1.2.6.1.2,{#ENT_DESCR},1.3.6.1.4.1.11.2.14.11.1.2.6.1.7,{#ENT_STATUS},1.3.6.1.4.1.11.2.14.11.1.2.6.1.4]' + key: fan.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: .+8.3.2$ + formulaid: A + - macro: '{#ENT_STATUS}' + value: (1|2|3|4) + formulaid: B + description: 'Discovering all entities of hpicfSensorObjectId that ends with: 11.2.3.7.8.3.2 - fans and are present' + item_prototypes: + - uuid: 939c03f1532944b4bfb732eb52b4d566 + name: '{#ENT_DESCR}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.{#SNMPINDEX}]' + key: 'sensor.fan.status[hpicfSensorStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: HP-ICF-CHASSIS + Actual status indicated by the sensor: {#ENT_DESCR} + valuemap: + name: 'HP-ICF-CHASSIS::hpicfSensorStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 4fba6383ed4c4cd89b349a5dfccb7909 + expression: 'count(/HP Enterprise Switch by SNMP/sensor.fan.status[hpicfSensorStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"bad\"}")=1' + name: 'HP Enterprise Switch: {#ENT_DESCR}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6cf626561b33468cb1e2c9e590334c4b + expression: 'count(/HP Enterprise Switch by SNMP/sensor.fan.status[hpicfSensorStatus.{#SNMPINDEX}],#1,"eq","{$FAN_WARN_STATUS:\"warning\"}")=1' + name: 'HP Enterprise Switch: {#ENT_DESCR}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'HP Enterprise Switch: {#ENT_DESCR}: Fan is in critical state' + expression: 'count(/HP Enterprise Switch by SNMP/sensor.fan.status[hpicfSensorStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"bad\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e175ffc9f7db4714bc99450e86a3963f + name: 'Memory Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.1]' + key: memory.discovery + delay: 1h + description: 'Discovery of NETSWITCH-MIB::hpLocalMemTable, A table that contains information on all the local memory for each slot.' + item_prototypes: + - uuid: 27c87eb48e2e49879960bbb14430e52b + name: '#{#SNMPVALUE}: Available memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6.{#SNMPINDEX}]' + key: 'vm.memory.available[hpLocalMemFreeBytes.{#SNMPINDEX}]' + units: B + description: | + MIB: NETSWITCH-MIB + The number of available (unallocated) bytes. + tags: + - tag: component + value: memory + - uuid: 1b6f6b3a06d44ff088a5ac0336ad995b + name: '#{#SNMPVALUE}: Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.5.{#SNMPINDEX}]' + key: 'vm.memory.total[hpLocalMemTotalBytes.{#SNMPINDEX}]' + units: B + description: | + MIB: NETSWITCH-MIB + The number of currently installed bytes. + tags: + - tag: component + value: memory + - uuid: a724e90409b746068c4765dbbcfaf70d + name: '#{#SNMPVALUE}: Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.7.{#SNMPINDEX}]' + key: 'vm.memory.used[hpLocalMemAllocBytes.{#SNMPINDEX}]' + units: B + description: | + MIB: NETSWITCH-MIB + The number of currently allocated bytes. + tags: + - tag: component + value: memory + - uuid: 7167b10eb27548b8b48b7dc2881b82dd + name: '#{#SNMPVALUE}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[snmp.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hpLocalMemAllocBytes.{#SNMPINDEX}])/last(//vm.memory.total[hpLocalMemTotalBytes.{#SNMPINDEX}])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 4fe0382fdee141adac03788c8810e387 + expression: 'min(/HP Enterprise Switch by SNMP/vm.memory.util[snmp.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'HP Enterprise Switch: #{#SNMPVALUE}: High memory utilization' + event_name: 'HP Enterprise Switch: #{#SNMPVALUE}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: aebb1527b1264e319bce23354c4ff200 + name: '#{#SNMPVALUE}: Memory usage' + ymin_type_1: FIXED + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'HP Enterprise Switch by SNMP' + key: 'vm.memory.total[hpLocalMemTotalBytes.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'HP Enterprise Switch by SNMP' + key: 'vm.memory.available[hpLocalMemFreeBytes.{#SNMPINDEX}]' + - uuid: 87cafd79e372498a87bd6fa283482256 + name: '#{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HP Enterprise Switch by SNMP' + key: 'vm.memory.util[snmp.{#SNMPINDEX}]' + - uuid: dd018320e4b2466786840efdcd4a9fd9 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: a8a1540bbbe74cb2a268ec9e9ca4ce05 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 93e0dfe819ba4e7593a55fb3e25493da + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 97b4ae057fcb43eebc64cea1830354b5 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1cc76ff8008c443a8c6f65fd7f44c465 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5cd2334dd4c544f9b0a506a143cfb79a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 59f3f55d93024c02b234561bb0cfe5a6 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 46b37fed488f4028ad8937ddb9edacad + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6b0829277ef74410aa8d39a07d4336a5 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8f16d1db51ce4dceb0ed8753b74e8b7f + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'HP Enterprise Switch: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 60791f5d3f864b5ca4f08de9540b8fca + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 97e6d8236ec04a7a91269819c89b2622 + expression: | + change(/HP Enterprise Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/HP Enterprise Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/HP Enterprise Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/HP Enterprise Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/HP Enterprise Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/HP Enterprise Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/HP Enterprise Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/HP Enterprise Switch by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/HP Enterprise Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/HP Enterprise Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'HP Enterprise Switch: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'HP Enterprise Switch: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 0f14cdc1b43a4325ba256645573a0905 + expression: | + (avg(/HP Enterprise Switch by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/HP Enterprise Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/HP Enterprise Switch by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/HP Enterprise Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/HP Enterprise Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/HP Enterprise Switch by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/HP Enterprise Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/HP Enterprise Switch by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/HP Enterprise Switch by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'HP Enterprise Switch: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'HP Enterprise Switch: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'HP Enterprise Switch: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 61797acc8cb642038b1875a198d0a740 + expression: | + min(/HP Enterprise Switch by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/HP Enterprise Switch by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/HP Enterprise Switch by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/HP Enterprise Switch by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'HP Enterprise Switch: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'HP Enterprise Switch: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'HP Enterprise Switch: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/HP Enterprise Switch by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 79cf619c4c4947a2be6bd0d1440d3ca9 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HP Enterprise Switch by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'HP Enterprise Switch by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'HP Enterprise Switch by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'HP Enterprise Switch by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'HP Enterprise Switch by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'HP Enterprise Switch by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 92a9d50fd9894af486dfcee142db1d61 + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: 837e3fa435894249ad3fb599e3afdb1e + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1b117ed66a0c4b098606d1179e21f3f0 + expression: 'last(/HP Enterprise Switch by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'HP Enterprise Switch: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + - uuid: 75ff389432a443dd89075f5a89bfbc1e + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.4.1.11.2.14.11.1.2.6.1.2,{#ENT_DESCR},1.3.6.1.4.1.11.2.14.11.1.2.6.1.7,{#ENT_STATUS},1.3.6.1.4.1.11.2.14.11.1.2.6.1.4]' + key: psu.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: .+8.3.1$ + formulaid: A + - macro: '{#ENT_STATUS}' + value: (1|2|3|4) + formulaid: B + description: 'Discovering all entities of hpicfSensorObjectId that ends with: 11.2.3.7.8.3.1 - power supplies and are present' + item_prototypes: + - uuid: 221f46a720ee4b2dbb35ad055f784146 + name: '{#ENT_DESCR}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.{#SNMPINDEX}]' + key: 'sensor.psu.status[hpicfSensorStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: HP-ICF-CHASSIS + Actual status indicated by the sensor: {#ENT_DESCR} + valuemap: + name: 'HP-ICF-CHASSIS::hpicfSensorStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 81553d4157ce4c938c25b9403c5e572a + expression: 'count(/HP Enterprise Switch by SNMP/sensor.psu.status[hpicfSensorStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"bad\"}")=1' + name: 'HP Enterprise Switch: {#ENT_DESCR}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: aeb31d4c3958433c9a0105f79156094a + expression: 'count(/HP Enterprise Switch by SNMP/sensor.psu.status[hpicfSensorStatus.{#SNMPINDEX}],#1,"eq","{$PSU_WARN_STATUS:\"warning\"}")=1' + name: 'HP Enterprise Switch: {#ENT_DESCR}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'HP Enterprise Switch: {#ENT_DESCR}: Power supply is in critical state' + expression: 'count(/HP Enterprise Switch by SNMP/sensor.psu.status[hpicfSensorStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"bad\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5039f958791e40dbb19e16359dad0898 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_TYPE},1.3.6.1.2.1.99.1.1.1.1,{#SENSOR_INFO},1.3.6.1.2.1.47.1.1.1.1.2,{#SENSOR_PRECISION},1.3.6.1.2.1.99.1.1.1.3]' + key: temp.precision0.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR_PRECISION}' + value: '0' + formulaid: A + - macro: '{#SENSOR_TYPE}' + value: '8' + formulaid: B + description: 'ENTITY-SENSORS-MIB::EntitySensorDataType discovery with temperature filter' + item_prototypes: + - uuid: 0f33142de9874eb288d48337becae31a + name: '{#SENSOR_INFO}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.99.1.1.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[entPhySensorValue.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: ENTITY-SENSORS-MIB + The most recent measurement obtained by the agent for this sensor. + To correctly interpret the value of this object, the associated entPhySensorType, + entPhySensorScale, and entPhySensorPrecision objects must also be examined. + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 5d0d743c7f5449f4a429845ab3894d19 + expression: 'avg(/HP Enterprise Switch by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/HP Enterprise Switch by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_INFO}"}-3' + name: 'HP Enterprise Switch: {#SENSOR_INFO}: Temperature is above critical threshold' + event_name: 'HP Enterprise Switch: {#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b549cc5016884818bf416c415618171f + expression: 'avg(/HP Enterprise Switch by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/HP Enterprise Switch by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SENSOR_INFO}"}-3' + name: 'HP Enterprise Switch: {#SENSOR_INFO}: Temperature is above warning threshold' + event_name: 'HP Enterprise Switch: {#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'HP Enterprise Switch: {#SENSOR_INFO}: Temperature is above critical threshold' + expression: 'avg(/HP Enterprise Switch by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_INFO}"}' + recovery_expression: 'max(/HP Enterprise Switch by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_INFO}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a4294d3ad024438aaba4234811d65582 + expression: 'avg(/HP Enterprise Switch by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/HP Enterprise Switch by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}+3' + name: 'HP Enterprise Switch: {#SENSOR_INFO}: Temperature is too low' + event_name: 'HP Enterprise Switch: {#SENSOR_INFO}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8e9738236f3a4f5eb29df85a46e82326 + name: 'Temp Status Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.4.1.11.2.14.11.1.2.6.1.2,{#ENT_DESCR},1.3.6.1.4.1.11.2.14.11.1.2.6.1.7,{#ENT_STATUS},1.3.6.1.4.1.11.2.14.11.1.2.6.1.4]' + key: temp.status.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ENT_CLASS}' + value: .+8.3.3$ + formulaid: A + - macro: '{#ENT_STATUS}' + value: (1|2|3|4) + formulaid: B + description: 'Discovering all entities of hpicfSensorObjectId that ends with: 11.2.3.7.8.3.3 - over temp status and are present' + item_prototypes: + - uuid: e5dbc6e86d0e4272aab83171cd9115e7 + name: '{#ENT_DESCR}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.status[hpicfSensorStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: HP-ICF-CHASSIS + Actual status indicated by the sensor: {#ENT_DESCR} + valuemap: + name: 'HP-ICF-CHASSIS::hpicfSensorStatus' + tags: + - tag: component + value: temperature + tags: + - tag: class + value: network + - tag: target + value: hp + - tag: target + value: hp-enterprise + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS:"bad"}' + value: '2' + - macro: '{$FAN_WARN_STATUS:"warning"}' + value: '3' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS:"bad"}' + value: '2' + - macro: '{$PSU_WARN_STATUS:"warning"}' + value: '3' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + dashboards: + - uuid: 1a7c19ddd4904430bac2389eecfe785d + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HP Enterprise Switch by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + - uuid: 8d3bf7d0ded74f42bed66fcbc1eaec62 + name: Resources + pages: + - widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HP Enterprise Switch by SNMP' + name: 'HP Enterprise Switch: CPU utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HP Enterprise Switch by SNMP' + name: '#{#SNMPVALUE}: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HP Enterprise Switch by SNMP' + name: '#{#SNMPVALUE}: Memory utilization' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 846197beea984cc783b84822437bbace + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 3c0731bf0669419fa8ebfdf9f7ec14de + name: 'HP-ICF-CHASSIS::hpicfSensorStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: bad + - value: '3' + newvalue: warning + - value: '4' + newvalue: good + - value: '5' + newvalue: notPresent + - uuid: 28a4a6c5a2b84802bfb1e3215ae398a7 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 5a230e50a04d4855808dc213db1bb5c5 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 5a584e3a8795417c86911e6ffc37b0bd + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: b9fe3941224749efa881a61b56c5d888 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 1395e02bc63e48daa779b8b685e91868 + expression: '(last(/HP Enterprise Switch by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/HP Enterprise Switch by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/HP Enterprise Switch by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/HP Enterprise Switch by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'HP Enterprise Switch: Host has been restarted' + event_name: 'HP Enterprise Switch: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'HP Enterprise Switch: No SNMP data collection' + expression: 'max(/HP Enterprise Switch by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: d282b8d685c547a58645c1cc63b00571 + name: 'HP Enterprise Switch: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HP Enterprise Switch by SNMP' + key: 'system.cpu.util[hpSwitchCpuStat.0]' diff --git a/HP_iLO_by_SNMP.yaml b/HP_iLO_by_SNMP.yaml new file mode 100644 index 0000000..edbf579 --- /dev/null +++ b/HP_iLO_by_SNMP.yaml @@ -0,0 +1,2197 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: c2a7ddca051d4b4a9553f339c57e47a9 + template: 'HP iLO by SNMP' + name: 'HP iLO by SNMP' + description: | + Template Server HP iLO + MIBs used: + HOST-RESOURCES-MIB + CPQHLTH-MIB + SNMPv2-MIB + CPQSINFO-MIB + CPQIDA-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 5abff4175d1640b9b633c4d9184bd243 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 755a4c5e809d418cbb1162102b0d1c26 + expression: 'max(/HP iLO by SNMP/icmpping,#3)=0' + name: 'HP iLO: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 1db2fcdd357e4d15a989c0511bbed8bd + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 0492380bc6374f24b92b4661b27d8f2c + expression: 'min(/HP iLO by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/HP iLO by SNMP/icmppingloss,5m)<100' + name: 'HP iLO: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'HP iLO: Unavailable by ICMP ping' + expression: 'max(/HP iLO by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8be612f43d1d40ce9efd3c36d18e6a20 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a869db9f341c479c80dca50bac0ff309 + expression: 'avg(/HP iLO by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'HP iLO: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'HP iLO: High ICMP ping loss' + expression: 'min(/HP iLO by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/HP iLO by SNMP/icmppingloss,5m)<100' + - name: 'HP iLO: Unavailable by ICMP ping' + expression: 'max(/HP iLO by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 399110973c134983bd5020b9e5b509f4 + name: 'System temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.1.0]' + key: 'sensor.temp.status[cpqHeThermalCondition.0]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + This value specifies the overall condition of the system's thermal environment. + This value will be one of the following: + other(1) Temperature could not be determined. + ok(2) The temperature sensor is within normal operating range. + degraded(3) The temperature sensor is outside of normal operating range. + failed(4) The temperature sensor detects a condition that could permanently damage the system. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + - uuid: 0107bcd0d6b840c4a64061ee83e69f11 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 2203e586148a418f9e2f06b38c340b53 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 03ff0b6d9c7a483eaae565d90473d291 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2708e6cb2ba240a791685ebdcab3407f + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.2.2.4.2.0]' + key: system.hw.model + value_type: CHAR + trends: '0' + description: | + MIB: CPQSINFO-MIB + The machine product name.The name of the machine used in this system. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 96e27ad668944845a7f598f35b577d18 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.2.2.2.1.0]' + key: system.hw.serialnumber + value_type: CHAR + trends: '0' + description: | + MIB: CPQSINFO-MIB + The serial number of the physical system unit. The string will be empty if the system does not report the serial number function. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 7e8d377e1b49469a8b19b94e6dad97ce + expression: 'last(/HP iLO by SNMP/system.hw.serialnumber,#1)<>last(/HP iLO by SNMP/system.hw.serialnumber,#2) and length(last(/HP iLO by SNMP/system.hw.serialnumber))>0' + name: 'HP iLO: Device has been replaced' + event_name: 'HP iLO: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 02e21fa19e814d529ae24f89e3bbf947 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 84ed489ba1be43738be79f8a71b60381 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 88baf9f1da184fc78a49b064f0b4de85 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: df3c9e64b0f844ddac8f40f6df956595 + expression: 'last(/HP iLO by SNMP/system.name,#1)<>last(/HP iLO by SNMP/system.name,#2) and length(last(/HP iLO by SNMP/system.name))>0' + name: 'HP iLO: System name has changed' + event_name: 'HP iLO: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 05166eb015534cae9798f9266d3d0a6b + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: d02b8e2d5c7a4afabc2fbadc8674288c + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5f30715570c449ecb4e07858256a3e05 + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.1.3.0]' + key: 'system.status[cpqHeMibCondition.0]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The overall condition. This object represents the overall status of the server information represented by this MIB. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: 6d0d0554e1c945dc90701aebd531f9cb + expression: 'count(/HP iLO by SNMP/system.status[cpqHeMibCondition.0],#1,"eq","{$HEALTH_CRIT_STATUS}")=1' + name: 'HP iLO: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 273c27c7929649f1a45ddc92c09ab982 + expression: 'count(/HP iLO by SNMP/system.status[cpqHeMibCondition.0],#1,"eq","{$HEALTH_WARN_STATUS}")=1' + name: 'HP iLO: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings' + dependencies: + - name: 'HP iLO: System status is in critical state' + expression: 'count(/HP iLO by SNMP/system.status[cpqHeMibCondition.0],#1,"eq","{$HEALTH_CRIT_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e5ebd75f34f24502b3cdc2a707fb24c5 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8870beab300f41ea8d54619fd2bf0371 + expression: 'max(/HP iLO by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'HP iLO: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'HP iLO: Unavailable by ICMP ping' + expression: 'max(/HP iLO by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 7589f2f30c7e4cf88bb7cd1d57f543a4 + name: 'Array Controller Cache Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CACHE_STATUS},1.3.6.1.4.1.232.3.2.2.2.1.2,{#CACHE_CNTRL_INDEX},1.3.6.1.4.1.232.3.2.2.2.1.1]' + key: array.cache.discovery + delay: 1h + description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaAccelTable' + item_prototypes: + - uuid: f212a5a7f2754d49aab4d4a4a6a5ca44 + name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.6.{#SNMPINDEX}]' + key: 'system.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Cache Module Board Backup Power Status. This monitors the status of each backup power source on the board. + The backup power source can only recharge when the system has power applied. The type of backup power source used is indicated by cpqDaAccelBackupPowerSource. + The following values are valid: + Other (1) Indicates that the instrument agent does not recognize backup power status. You may need to update your software. + + Ok (2) The backup power source is fully charged. + + Recharging (3) The array controller has one or more cache module backup power sources that are recharging. + Cache module operations such as Battery/Flash Backed Write Cache, Expansion, Extension and Migration are temporarily suspended until the backup power source is fully charged. + Cache module operations will automatically resume when charging is complete. + + Failed (4) The battery pack is below the sufficient voltage level and has not recharged in 36 hours. + Your Cache Module board needs to be serviced. + + Degraded (5) The battery is still operating, however, one of the batteries in the pack has failed to recharge properly. + Your Cache Module board should be serviced as soon as possible. + + NotPresent (6) A backup power source is not present on the cache module board. Some controllers do not have backup power sources. + + Capacitor Failed (7) The flash backed cache module capacitor is below the sufficient voltage level and has not recharged in 10 minutes. Your Cache Module board needs to be serviced. + valuemap: + name: 'CPQIDA-MIB::cpqDaAccelBattery' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: array + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: b3049aa19e5d45d28937c1af262aba3e + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_BATTERY_CRIT_STATUS:\"failed\"}")=1 or count(/HP iLO by SNMP/system.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_BATTERY_CRIT_STATUS:\"capacitorFailed\"}")=1' + name: 'HP iLO: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state!' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 384fd446bcb042f89ca348ec7459f1aa + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_BATTERY_WARN_STATUS:\"degraded\"}")=1' + name: 'HP iLO: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults' + dependencies: + - name: 'HP iLO: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state!' + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_BATTERY_CRIT_STATUS:\"failed\"}")=1 or count(/HP iLO by SNMP/system.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_BATTERY_CRIT_STATUS:\"capacitorFailed\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2e20ec1d27374dceb363a6cdd568d23d + name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.2.{#SNMPINDEX}]' + key: 'system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Cache Module/Operations Status. This describes the status of the cache module and/or cache operations. + Note that for some controller models, a cache module board that physically attaches to the controller or chipset may not be an available option. + The status can be: + + Other (1) + Indicates that the instrument agent does not recognize the status of the cache module. You may need to upgrade the instrument agent. + + Invalid (2) + Indicates that a cache module board has not been installed in this system or is present but not configured. + + Enabled (3) + Indicates that cache operations are currently configured and enabled for at least one logical drive. + + Temporarily Disabled (4) + Indicates that cache operations have been temporarily disabled. View the cache module board error code object to determine why the write cache operations have been temporarily disabled. + + Permanently Disabled (5) + Indicates that cache operations have been permanently disabled. View the cache module board error code object to determine why the write cache operations have been disabled. + + Cache Module Flash Memory Not Attached (6) + Indicates that the flash memory component of the flash backed cache module is not attached. This status will be set when the flash memory is not attached and the Supercap is attached. This value is only used on flash backed cache modules that support removable flash memory. + + Cache Module Degraded Failsafe Speed (7) + Indicates that the cache module board is currently degraded and operating at a failsafe speed. View variables cpqDaCacheMemoryDataWidth and cpqDaCacheMemoryTransferRate to obtain the cache module board`s current memory data width and memory transfer rate. + + Cache Module Critical Failure (8) + Indicates that the cache module board has encountered a critical failure. The controller is currently operating in Zero Memory Raid mode. + + Read Cache Could Not Be Mapped (9) + Indicates that the read cache memory in a split cache configuration could not be mapped by the operating system and as a result is not available. This status may be caused by virtual space limitations in certain operating systems and is only applicable to B-Series controllers. + valuemap: + name: 'CPQIDA-MIB::cpqDaAccelStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: array + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: a4c81fb1ef6140199bbde241691183cd + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_CRIT_STATUS:\"cacheModCriticalFailure\"}")=1' + name: 'HP iLO: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults' + tags: + - tag: component + value: array + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7370a7c6388c4ff8b094959ca0c34a72 + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_WARN_STATUS:\"cacheModDegradedFailsafeSpeed\"}")=1 or count(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_WARN_STATUS:\"cacheReadCacheNotMapped\"}")=1 or count(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_WARN_STATUS:\"cacheModFlashMemNotAttached\"}")=1' + name: 'HP iLO: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults' + dependencies: + - name: 'HP iLO: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_CRIT_STATUS:\"cacheModCriticalFailure\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4db3b402580c43eba0d9dc6349cf95ca + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}],#1,"ne","{$DISK_ARRAY_CACHE_OK_STATUS:\"enabled\"}")=1 and last(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK_ARRAY_CACHE_WARN_STATUS:"invalid"}' + name: 'HP iLO: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is not in optimal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for faults' + dependencies: + - name: 'HP iLO: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!' + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_CRIT_STATUS:\"cacheModCriticalFailure\"}")=1' + - name: 'HP iLO: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state' + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_WARN_STATUS:\"cacheModDegradedFailsafeSpeed\"}")=1 or count(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_WARN_STATUS:\"cacheReadCacheNotMapped\"}")=1 or count(/HP iLO by SNMP/system.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CACHE_WARN_STATUS:\"cacheModFlashMemNotAttached\"}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: bfbfb003935f4a2da4ff253f1f01cda9 + name: 'Array Controller Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.2.1.1.1,{#CNTLR_SLOT},1.3.6.1.4.1.232.3.2.2.1.1.5,{#CNTLR_LOCATION},1.3.6.1.4.1.232.3.2.2.1.1.20]' + key: array.discovery + delay: 1h + description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaCntlrTable' + item_prototypes: + - uuid: 72e008704de649bbb10df34d38158b69 + name: '{#CNTLR_LOCATION}: Disk array controller model' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.2.{#SNMPINDEX}]' + key: 'system.hw.diskarray.model[cpqDaCntlrModel.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Array Controller Model. The type of controller card. + valuemap: + name: 'CPQIDA-MIB::cpqDaCntlrModel' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: array + - tag: component + value: disk + - tag: component + value: storage + - uuid: 71ae1496057044819a80f0660d838083 + name: '{#CNTLR_LOCATION}: Disk array controller status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.6.{#SNMPINDEX}]' + key: 'system.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + This value represents the overall condition of this controller, + and any associated logical drives,physical drives, and array accelerators. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: array + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: a318564fe4eb488eba251f3cba3d31b6 + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CRIT_STATUS}")=1' + name: 'HP iLO: {#CNTLR_LOCATION}: Disk array controller is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6b65d2b2477c4567953fcec31b1ab9a3 + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_WARN_STATUS}")=1' + name: 'HP iLO: {#CNTLR_LOCATION}: Disk array controller is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the device for faults' + dependencies: + - name: 'HP iLO: {#CNTLR_LOCATION}: Disk array controller is in critical state' + expression: 'count(/HP iLO by SNMP/system.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}],#1,"eq","{$DISK_ARRAY_CRIT_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: dd52cf7724f7471cabf1970707a6fdd6 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.7.1.9]' + key: fan.discovery + delay: 1h + description: 'CPQHLTH-MIB::cpqHeFltTolFanCondition' + item_prototypes: + - uuid: 2173681feff54bbbb27bca1c82fab363 + name: 'Fan {#SNMPINDEX}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.7.1.9.{#SNMPINDEX}]' + key: 'sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The condition of the fan. + This value will be one of the following: + other(1) Fan status detection is not supported by this system or driver. + ok(2) The fan is operating properly. + degraded(2) A redundant fan is not operating properly. + failed(4) A non-redundant fan is not operating properly. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 0731e25040504428acb466b0d4e2803a + expression: 'count(/HP iLO by SNMP/sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'HP iLO: Fan {#SNMPINDEX}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c8c9ea062fa849b0b550ad4dd1d2cec7 + expression: 'count(/HP iLO by SNMP/sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}],#1,"eq","{$FAN_WARN_STATUS}")=1' + name: 'HP iLO: Fan {#SNMPINDEX}: Fan is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the fan unit' + dependencies: + - name: 'HP iLO: Fan {#SNMPINDEX}: Fan is in critical state' + expression: 'count(/HP iLO by SNMP/sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 5b68bccba85349beb2800bbb99ba5e13 + name: 'Physical Disk Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.5.1.1.5,{#DISK_LOCATION},1.3.6.1.4.1.232.3.2.5.1.1.64]' + key: physicalDisk.discovery + delay: 1h + description: 'Scanning table of physical drive entries CPQIDA-MIB::cpqDaPhyDrvTable.' + item_prototypes: + - uuid: a6dfc1cf30e141b6b47d463d436f14b6 + name: '{#DISK_LOCATION}: Physical disk media type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.69.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.media_type[cpqDaPhyDrvMediaType.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Drive Array Physical Drive Media Type.The following values are defined: + other(1) The instrument agent is unable to determine the physical drive's media type. + rotatingPlatters(2) The physical drive media is composed of rotating platters. + solidState(3) The physical drive media is composed of solid state electronics. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: 82f09b232147488fb9bd7253ce1432c2 + name: '{#DISK_LOCATION}: Physical disk model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.3.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.model[cpqDaPhyDrvModel.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Model.This is a text description of the physical drive. + The text that appears depends upon who manufactured the drive and the drive type. + If a drive fails, note the model to identify the type of drive necessary for replacement. + If a model number is not present, you may not have properly initialized the drive array to which the physical drive is attached for monitoring. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: 5eca1a95575f4cb891545bde063aae7b + name: '{#DISK_LOCATION}: Physical disk serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.51.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Serial Number. + This is the serial number assigned to the physical drive. + This value is based upon the serial number as returned by the SCSI inquiry command + but may have been modified due to space limitations. This can be used for identification purposes. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 87bcd812474b44729da19f49344ba976 + expression: 'last(/HP iLO by SNMP/system.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#1)<>last(/HP iLO by SNMP/system.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#2) and length(last(/HP iLO by SNMP/system.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]))>0' + name: 'HP iLO: {#DISK_LOCATION}: Disk has been replaced' + event_name: 'HP iLO: {#DISK_LOCATION}: Disk has been replaced (new serial number received)' + priority: INFO + description: 'Disk serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 03cf9c027f9b4557a0d0a233347c58d2 + name: '{#DISK_LOCATION}: Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.45.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.size[cpqDaPhyDrvMediaType.{#SNMPINDEX}]' + trends: '0' + units: B + description: | + MIB: CPQIDA-MIB + Physical Drive Size in MB. + This is the size of the physical drive in megabytes. + This value is calculated using the value 1,048,576 (2^20) as a megabyte. + Drive manufacturers sometimes use the number 1,000,000 as a megabyte when giving drive capacities so this value may differ + from the advertised size of a drive. This field is only applicable for controllers which support SCSI drives, + and therefore is not supported by the IDA or IDA-2 controllers. The field will contain 0xFFFFFFFF if the drive capacity cannot be calculated + or if the controller does not support SCSI drives. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: e0864c9d70204f048fc0c597a996b19f + name: '{#DISK_LOCATION}: Physical disk S.M.A.R.T. status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.57.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive S.M.A.R.T Status.The following values are defined: + other(1) The agent is unable to determine if the status of S.M.A.R.T predictive failure monitoring for this drive. + ok(2) Indicates the drive is functioning properly. + replaceDrive(3) Indicates that the drive has a S.M.A.R.T predictive failure error and should be replaced. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 180f8f9124a041d0bf1c350d0226c3d3 + expression: 'count(/HP iLO by SNMP/system.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}],#1,"eq","{$DISK_SMART_FAIL_STATUS:\"replaceDrive\"}")=1 or count(/HP iLO by SNMP/system.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}],#1,"eq","{$DISK_SMART_FAIL_STATUS:\"replaceDriveSSDWearOut\"}")=1' + name: 'HP iLO: {#DISK_LOCATION}: Physical disk S.M.A.R.T. failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Disk probably requires replacement.' + dependencies: + - name: 'HP iLO: {#DISK_LOCATION}: Physical disk failed' + expression: 'count(/HP iLO by SNMP/system.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}],#1,"eq","{$DISK_FAIL_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d88cd26724fd4f19b899b4767fb33814 + name: '{#DISK_LOCATION}: Physical disk status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.6.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQIDA-MIB + Physical Drive Status. This shows the status of the physical drive. The following values are valid for the physical drive status: + other (1) Indicates that the instrument agent does not recognize the drive. + You may need to upgrade your instrument agent and/or driver software. + ok (2) Indicates the drive is functioning properly. + failed (3) Indicates that the drive is no longer operating and should be replaced. + predictiveFailure(4) Indicates that the drive has a predictive failure error and should be replaced. + valuemap: + name: 'CPQIDA-MIB::cpqDaPhyDrvStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 95e887baa0b9480a8a59848b07418c6b + expression: 'count(/HP iLO by SNMP/system.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}],#1,"eq","{$DISK_FAIL_STATUS}")=1' + name: 'HP iLO: {#DISK_LOCATION}: Physical disk failed' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check physical disk for warnings or errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 857540089794495799eb1a04b172c70c + expression: 'count(/HP iLO by SNMP/system.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}],#1,"eq","{$DISK_WARN_STATUS}")=1' + name: 'HP iLO: {#DISK_LOCATION}: Physical disk is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors' + dependencies: + - name: 'HP iLO: {#DISK_LOCATION}: Physical disk failed' + expression: 'count(/HP iLO by SNMP/system.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}],#1,"eq","{$DISK_FAIL_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: a77e77fc862847078ff3328f4d331747 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.9.3.1.5,{#CHASSIS_NUM},1.3.6.1.4.1.232.6.2.9.3.1.1,{#BAY_NUM},1.3.6.1.4.1.232.6.2.9.3.1.2]' + key: psu.discovery + delay: 1h + description: 'CPQHLTH-MIB::cpqHeFltTolPowerSupplyStatus' + item_prototypes: + - uuid: 45d3144d0e5342c6a98b6aca01f4a907 + name: 'Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.9.3.1.4.{#SNMPINDEX}]' + key: 'sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + The condition of the power supply. This value will be one of the following: + other(1) The status could not be determined or not present. + ok(2) The power supply is operating normally. + degraded(3) A temperature sensor, fan or other power supply component is outside of normal operating range. + failed(4) A power supply component detects a condition that could permanently damage the system. + valuemap: + name: 'CPQSINFO-MIB::status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 7a34714fcbb74294af97bc4f39c21413 + expression: 'count(/HP iLO by SNMP/sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'HP iLO: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: db7679204aa544cb8ffe38df5c68b7ce + expression: 'count(/HP iLO by SNMP/sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}],#1,"eq","{$PSU_WARN_STATUS}")=1' + name: 'HP iLO: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'HP iLO: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state' + expression: 'count(/HP iLO by SNMP/sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: d39d17234d34419ab9bb0c1d90505bff + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: tempDescr.discovery + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: (4|8|9|12|13) + formulaid: A + description: 'Scanning table of Temperature Sensor Entries: CPQHLTH-MIB::cpqHeTemperatureTable' + item_prototypes: + - uuid: ac352f7b00d6478daf601d0f7cb508e4 + name: '{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. + If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b7786ff4c57a4143b79e95bfc5470dcd + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 1' + name: 'HP iLO: {#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 11365923a7b242fea930250e26fcc548 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 4' + name: 'HP iLO: {#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: notice + - uuid: dd0fd44bd7bb43bd85fdd63a199e0e69 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 3' + name: 'HP iLO: {#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: notice + - uuid: 63fd55c6dee6427bbba7daa023d8f91a + name: '{#SNMPINDEX}: Temperature sensor location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.locale[cpqHeTemperatureLocale.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: CPQHLTH-MIB + This specifies the location of the temperature sensor present in the system. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureLocale' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + - uuid: 7c7d2807f0714bca8c8f263c2a4be8e6 + name: '{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[cpqHeTemperatureCelsius.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: {#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 279cdcdb6d304a7fb6ba0667c55fc774 + name: 'Temperature Discovery Ambient' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: tempDescr.discovery.ambient + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '11' + formulaid: A + - macro: '{#SNMPINDEX}' + value: 0\.1 + formulaid: B + description: 'Scanning table of Temperature Sensor Entries: CPQHLTH-MIB::cpqHeTemperatureTable with ambient(11) and 0.1 index filter' + item_prototypes: + - uuid: da102e6fc86b49c7bd57c2805ca08675 + name: 'Ambient: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: e955550a2496435eb799d317f2036c55 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 1' + name: 'HP iLO: Ambient: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8cd2c8b62b164923afed02da2be52dcc + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 4' + name: 'HP iLO: Ambient: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: notice + - uuid: d11e13c5714a42d49bea54d837f9f418 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 3' + name: 'HP iLO: Ambient: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: notice + - uuid: fd9c9a22a2a946ef895f92300de12004 + name: 'Ambient: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[cpqHeTemperatureCelsius.Ambient.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: Ambient + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8a0f24370b2246799b3db8c547f34d3e + name: 'Temperature Discovery CPU' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: tempDescr.discovery.cpu + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '6' + formulaid: A + description: 'Scanning table of Temperature Sensor Entries: CPQHLTH-MIB::cpqHeTemperatureTable with cpu(6) filter' + item_prototypes: + - uuid: 4cad241ca3bd4382879bebabc4f42201 + name: 'CPU-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 512654c27ea94ed4993380793a67f68b + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 1' + name: 'HP iLO: CPU-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7853d0c8ed4a4ebe98e38c7499417ebe + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 4' + name: 'HP iLO: CPU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: notice + - uuid: 0434d2a6a1b54cb7bcd0e6f58d973be4 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 3' + name: 'HP iLO: CPU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: notice + - uuid: 0bfe29bdf06e4432aafbbddb5bc02272 + name: 'CPU-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[cpqHeTemperatureCelsius.CPU.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: CPU-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b32425e531b444c69cdc3efc015286f2 + name: 'Temperature Discovery I/O' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: tempDescr.discovery.io + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '5' + formulaid: A + description: 'Scanning table of Temperature Sensor Entries: CPQHLTH-MIB::cpqHeTemperatureTable with ioBoard(5) filter' + item_prototypes: + - uuid: 51fbe5f6d6c1481e818eafa7cbe01295 + name: 'I/O-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 2875e5ebea474eccac8d53dd13539bd6 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 1' + name: 'HP iLO: I/O-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 593b167fe62e4a7fae35ebb508540325 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 4' + name: 'HP iLO: I/O-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: notice + - uuid: bf6a10f0596a45b4b8f8a2f0acf7c778 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 3' + name: 'HP iLO: I/O-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: notice + - uuid: 5a37a9c96a9748468d10562bd1242aa0 + name: 'I/O-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[cpqHeTemperatureCelsius."I/O.{#SNMPINDEX}"]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: I/O-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: f35e84ec9cb74bd19610fa7fdc59433d + name: 'Temperature Discovery Memory' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: tempDescr.discovery.memory + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '7' + formulaid: A + description: 'Scanning table of Temperature Sensor Entries: CPQHLTH-MIB::cpqHeTemperatureTable with memory(7) filter' + item_prototypes: + - uuid: 861d683a933b4eb5989b0f5484a9a93d + name: 'Memory-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 881f28f6411c467493c56a64237d8ca8 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 1' + name: 'HP iLO: Memory-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c05402995e6146d28c53fc33e88d8164 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 4' + name: 'HP iLO: Memory-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: notice + - uuid: bfac7287a9d842cb89d8089af72e2e12 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 3' + name: 'HP iLO: Memory-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: notice + - uuid: feb78ed0e9c640f2b2e122bebca181a7 + name: 'Memory-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[cpqHeTemperatureCelsius.Memory.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: Memory-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: c12fc57ae86e434abd25e8ba8f6ca642 + name: 'Temperature Discovery PSU' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: tempDescr.discovery.psu + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '10' + formulaid: A + description: 'Scanning table of Temperature Sensor Entries: CPQHLTH-MIB::cpqHeTemperatureTable with powerSupply(10) filter' + item_prototypes: + - uuid: 01eea51183834c6a8ed7daf75abe6c87 + name: 'PSU-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could + permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 14ab7adae80c4859952381bfe17a14a3 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 1' + name: 'HP iLO: PSU-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 97481f1183c3444c851fe99428bd7bf3 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 4' + name: 'HP iLO: PSU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: notice + - uuid: 8c7f5250756946a595b742519e4890a5 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 3' + name: 'HP iLO: PSU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: notice + - uuid: d2e8eb2989364732b85dbef4eb7d1ce4 + name: 'PSU-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[cpqHeTemperatureCelsius.PSU.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: PSU-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 4d513f2958ac483383ff803df781bd76 + name: 'Temperature Discovery System' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]' + key: tempDescr.discovery.system + delay: 1h + filter: + conditions: + - macro: '{#SENSOR_LOCALE}' + value: '3' + formulaid: A + description: 'Scanning table of Temperature Sensor Entries: CPQHLTH-MIB::cpqHeTemperatureTable with system(3) filter' + item_prototypes: + - uuid: 6adae921be5545c995cf24b2b900818c + name: 'System-{#SNMPINDEX}: Temperature sensor condition' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]' + key: 'sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]' + description: | + MIB: CPQHLTH-MIB + The Temperature sensor condition. + This value will be one of the following: + other(1) + Temperature could not be determined. + ok(2) + The temperature sensor is within normal operating range. + degraded(3) + The temperature sensor is outside of normal operating range. + failed(4) + The temperature sensor detects a condition that could permanently damage the system. + The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent. If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs. + valuemap: + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: d161829ab0ec496bb4718ed156853c3f + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 1' + name: 'HP iLO: System-{#SNMPINDEX}: Temperature could not be determined' + priority: INFO + description: 'Temperature could not be determined.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a65a8386fdd048f986a3aa3fcf29a959 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 4' + name: 'HP iLO: System-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.' + priority: HIGH + description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.' + tags: + - tag: scope + value: notice + - uuid: 0b13f436c7984eef9624632bb5f43970 + expression: 'last(/HP iLO by SNMP/sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 3' + name: 'HP iLO: System-{#SNMPINDEX}: The temperature sensor is outside of normal operating range' + priority: WARNING + description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.' + tags: + - tag: scope + value: notice + - uuid: aa985d3fb0084e24bd9f3e81c249cae4 + name: 'System-{#SNMPINDEX}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[cpqHeTemperatureCelsius.System.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: CPQHLTH-MIB + Temperature readings of testpoint: System-{#SNMPINDEX} + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: temperature + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: f8ddad8119414bdbb695feaa788aa89e + name: 'Virtual Disk Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.3.1.1.2,{#DISK_NAME},1.3.6.1.4.1.232.3.2.3.1.1.14]' + key: virtualdisk.discovery + delay: 1h + description: 'CPQIDA-MIB::cpqDaLogDrvTable' + item_prototypes: + - uuid: 3d06c600df19479abc35c47832f1abc2 + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Layout type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.3.{#SNMPINDEX}]' + key: 'system.hw.virtualdisk.layout[cpqDaLogDrvFaultTol.{#SNMPINDEX}]' + description: | + Logical Drive Fault Tolerance. + This shows the fault tolerance mode of the logical drive. + valuemap: + name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: 39add64d1cef451091f5416440ea0adc + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Disk size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.9.{#SNMPINDEX}]' + key: 'system.hw.virtualdisk.size[cpqDaLogDrvSize.{#SNMPINDEX}]' + trends: '0' + units: B + description: | + Logical Drive Size. + This is the size of the logical drive in megabytes. This value + is calculated using the value 1,048,576 (2^20) as a megabyte. + Drive manufacturers sometimes use the number 1,000,000 as a + megabyte when giving drive capacities so this value may + differ from the advertised size of a drive. + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: e0de2e2cc2ac423c95bcca5c77b1a53c + name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.4.{#SNMPINDEX}]' + key: 'system.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}]' + description: 'Logical Drive Status.' + valuemap: + name: 'CPQIDA-MIB::cpqDaLogDrvStatus' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 3f809df0d34f47a2bc1addbf2f4387ac + expression: 'count(/HP iLO by SNMP/system.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}],#1,"eq","{$VDISK_CRIT_STATUS}")=1' + name: 'HP iLO: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check virtual disk for warnings or errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 439b8dfa246f42d190d8f4deeebfeb53 + expression: 'count(/HP iLO by SNMP/system.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}],#1,"ne","{$VDISK_OK_STATUS}")=1' + name: 'HP iLO: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk is not in OK state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check virtual disk for warnings or errors' + dependencies: + - name: 'HP iLO: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed' + expression: 'count(/HP iLO by SNMP/system.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}],#1,"eq","{$VDISK_CRIT_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: hardware + - tag: target + value: hp + - tag: target + value: ilo + macros: + - macro: '{$DISK_ARRAY_CACHE_BATTERY_CRIT_STATUS:"capacitorFailed"}' + value: '7' + - macro: '{$DISK_ARRAY_CACHE_BATTERY_CRIT_STATUS:"failed"}' + value: '4' + - macro: '{$DISK_ARRAY_CACHE_BATTERY_WARN_STATUS:"degraded"}' + value: '5' + - macro: '{$DISK_ARRAY_CACHE_BATTERY_WARN_STATUS:"notPresent"}' + value: '6' + - macro: '{$DISK_ARRAY_CACHE_CRIT_STATUS:"cacheModCriticalFailure"}' + value: '8' + - macro: '{$DISK_ARRAY_CACHE_OK_STATUS:"enabled"}' + value: '3' + - macro: '{$DISK_ARRAY_CACHE_WARN_STATUS:"cacheModDegradedFailsafeSpeed"}' + value: '7' + - macro: '{$DISK_ARRAY_CACHE_WARN_STATUS:"cacheModFlashMemNotAttached"}' + value: '6' + - macro: '{$DISK_ARRAY_CACHE_WARN_STATUS:"cacheReadCacheNotMapped"}' + value: '9' + - macro: '{$DISK_ARRAY_CACHE_WARN_STATUS:"invalid"}' + value: '2' + - macro: '{$DISK_ARRAY_CRIT_STATUS}' + value: '4' + - macro: '{$DISK_ARRAY_WARN_STATUS}' + value: '3' + - macro: '{$DISK_FAIL_STATUS}' + value: '3' + - macro: '{$DISK_SMART_FAIL_STATUS:"replaceDrive"}' + value: '3' + - macro: '{$DISK_SMART_FAIL_STATUS:"replaceDriveSSDWearOut"}' + value: '4' + - macro: '{$DISK_WARN_STATUS}' + value: '4' + - macro: '{$FAN_CRIT_STATUS}' + value: '4' + - macro: '{$FAN_WARN_STATUS}' + value: '3' + - macro: '{$HEALTH_CRIT_STATUS}' + value: '4' + - macro: '{$HEALTH_WARN_STATUS}' + value: '3' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$PSU_CRIT_STATUS}' + value: '4' + - macro: '{$PSU_WARN_STATUS}' + value: '3' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$VDISK_CRIT_STATUS}' + value: '3' + - macro: '{$VDISK_OK_STATUS}' + value: '2' + valuemaps: + - uuid: 1a03c5602a4a49f8839d820c666434fc + name: 'CPQHLTH-MIB::cpqHeTemperatureCondition' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: degraded + - value: '4' + newvalue: failed + - uuid: f1e590a8cc744e22b900595851833357 + name: 'CPQHLTH-MIB::cpqHeTemperatureLocale' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: unknown + - value: '3' + newvalue: system + - value: '4' + newvalue: systemBoard + - value: '5' + newvalue: ioBoard + - value: '6' + newvalue: cpu + - value: '7' + newvalue: memory + - value: '8' + newvalue: storage + - value: '9' + newvalue: removableMedia + - value: '10' + newvalue: powerSupply + - value: '11' + newvalue: ambient + - value: '12' + newvalue: chassis + - value: '13' + newvalue: bridgeCard + - uuid: 7502d61cf7644a2d9cff7462f53569ee + name: 'CPQIDA-MIB::cpqDaAccelBattery' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: Ok + - value: '3' + newvalue: Recharging + - value: '4' + newvalue: Failed + - value: '5' + newvalue: Degraded + - value: '6' + newvalue: 'Not Present' + - value: '7' + newvalue: 'Capacitor failed' + - uuid: 20d96ea63e994ba49244b94a4c24aec3 + name: 'CPQIDA-MIB::cpqDaAccelStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: invalid + - value: '3' + newvalue: enabled + - value: '4' + newvalue: tmpDisabled + - value: '5' + newvalue: permDisabled + - value: '6' + newvalue: cacheModFlashMemNotAttached + - value: '7' + newvalue: cacheModDegradedFailsafeSpeed + - value: '8' + newvalue: cacheModCriticalFailure + - value: '9' + newvalue: cacheReadCacheNotMapped + - uuid: 140a21785b764c95a3f78c8c05ed0844 + name: 'CPQIDA-MIB::cpqDaCntlrModel' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ida + - value: '3' + newvalue: idaExpansion + - value: '4' + newvalue: ida-2 + - value: '5' + newvalue: smart + - value: '6' + newvalue: smart-2e + - value: '7' + newvalue: smart-2p + - value: '8' + newvalue: smart-2sl + - value: '9' + newvalue: smart-3100es + - value: '10' + newvalue: smart-3200 + - value: '11' + newvalue: smart-2dh + - value: '12' + newvalue: smart-221 + - value: '13' + newvalue: sa-4250es + - value: '14' + newvalue: sa-4200 + - value: '15' + newvalue: sa-integrated + - value: '16' + newvalue: sa-431 + - value: '17' + newvalue: sa-5300 + - value: '18' + newvalue: raidLc2 + - value: '19' + newvalue: sa-5i + - value: '20' + newvalue: sa-532 + - value: '21' + newvalue: sa-5312 + - value: '22' + newvalue: sa-641 + - value: '23' + newvalue: sa-642 + - value: '24' + newvalue: sa-6400 + - value: '25' + newvalue: sa-6400em + - value: '26' + newvalue: sa-6i + - value: '27' + newvalue: sa-generic + - value: '29' + newvalue: sa-p600 + - value: '30' + newvalue: sa-p400 + - value: '31' + newvalue: sa-e200 + - value: '32' + newvalue: sa-e200i + - value: '33' + newvalue: sa-p400i + - value: '34' + newvalue: sa-p800 + - value: '35' + newvalue: sa-e500 + - value: '36' + newvalue: sa-p700m + - value: '37' + newvalue: sa-p212 + - value: '38' + newvalue: sa-p410 + - value: '39' + newvalue: sa-p410i + - value: '40' + newvalue: sa-p411 + - value: '41' + newvalue: sa-b110i + - value: '42' + newvalue: sa-p712m + - value: '43' + newvalue: sa-p711m + - value: '44' + newvalue: sa-p812 + - value: '45' + newvalue: sw-1210m + - value: '46' + newvalue: sa-p220i + - value: '47' + newvalue: sa-p222 + - value: '48' + newvalue: sa-p420 + - value: '49' + newvalue: sa-p420i + - value: '50' + newvalue: sa-p421 + - value: '51' + newvalue: sa-b320i + - value: '52' + newvalue: sa-p822 + - value: '53' + newvalue: sa-p721m + - value: '54' + newvalue: sa-b120i + - value: '55' + newvalue: hps-1224 + - value: '56' + newvalue: hps-1228 + - value: '57' + newvalue: hps-1228m + - value: '58' + newvalue: sa-p822se + - value: '59' + newvalue: hps-1224e + - value: '60' + newvalue: hps-1228e + - value: '61' + newvalue: hps-1228em + - value: '62' + newvalue: sa-p230i + - value: '63' + newvalue: sa-p430i + - value: '64' + newvalue: sa-p430 + - value: '65' + newvalue: sa-p431 + - value: '66' + newvalue: sa-p731m + - value: '67' + newvalue: sa-p830i + - value: '68' + newvalue: sa-p830 + - value: '69' + newvalue: sa-p831 + - value: '70' + newvalue: sa-p530 + - value: '71' + newvalue: sa-p531 + - value: '72' + newvalue: sa-p244br + - value: '73' + newvalue: sa-p246br + - value: '74' + newvalue: sa-p440 + - value: '75' + newvalue: sa-p440ar + - value: '76' + newvalue: sa-p441 + - value: '77' + newvalue: sa-p741m + - value: '78' + newvalue: sa-p840 + - value: '79' + newvalue: sa-p841 + - value: '80' + newvalue: sh-h240ar + - value: '81' + newvalue: sh-h244br + - value: '82' + newvalue: sh-h240 + - value: '83' + newvalue: sh-h241 + - value: '84' + newvalue: sa-b140i + - value: '85' + newvalue: sh-generic + - value: '88' + newvalue: sa-p840ar + - uuid: 442c9095de9f4aa5bcca659292b2c12b + name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol' + mappings: + - value: '0' + newvalue: other + - value: '2' + newvalue: none + - value: '3' + newvalue: RAID-1/RAID-10 + - value: '4' + newvalue: RAID-4 + - value: '5' + newvalue: RAID-5 + - value: '7' + newvalue: RAID-6 + - value: '8' + newvalue: RAID-50 + - value: '9' + newvalue: RAID-60 + - value: '10' + newvalue: 'RAID-1 ADM' + - value: '11' + newvalue: 'RAID-10 ADM' + - uuid: 8db38b47aba64739ae9f078f43b42888 + name: 'CPQIDA-MIB::cpqDaLogDrvStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: failed + - value: '4' + newvalue: unconfigured + - value: '5' + newvalue: recovering + - value: '6' + newvalue: readyForRebuild + - value: '7' + newvalue: rebuilding + - value: '8' + newvalue: wrongDrive + - value: '9' + newvalue: badConnect + - value: '10' + newvalue: overheating + - value: '11' + newvalue: shutdown + - value: '12' + newvalue: expanding + - value: '13' + newvalue: notAvailable + - value: '14' + newvalue: queuedForExpansion + - value: '15' + newvalue: multipathAccessDegraded + - value: '16' + newvalue: erasing + - value: '17' + newvalue: predictiveSpareRebuildReady + - value: '18' + newvalue: rapidParityInitInProgress + - value: '19' + newvalue: rapidParityInitPending + - value: '20' + newvalue: noAccessEncryptedNoCntlrKey + - value: '21' + newvalue: unencryptedToEncryptedInProgress + - value: '22' + newvalue: newLogDrvKeyRekeyInProgress + - value: '23' + newvalue: noAccessEncryptedCntlrEncryptnNotEnbld + - value: '24' + newvalue: unencryptedToEncryptedNotStarted + - value: '25' + newvalue: newLogDrvKeyRekeyRequestReceived + - uuid: 8351a024aa4d42d1915b44abe8acc4aa + name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType' + mappings: + - value: '1' + newvalue: Other + - value: '2' + newvalue: rotatingPlatters + - value: '3' + newvalue: solidState + - uuid: 54b288da67e1431c9d401cf47a518bcc + name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: replaceDrive + - value: '4' + newvalue: replaceDriveSSDWearOut + - uuid: 68bc7370fb8a43ee9957240e29636562 + name: 'CPQIDA-MIB::cpqDaPhyDrvStatus' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: failed + - value: '4' + newvalue: predictiveFailure + - uuid: 8374297ea234491b980591a8daa88e1f + name: 'CPQSINFO-MIB::status' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: ok + - value: '3' + newvalue: degraded + - value: '4' + newvalue: failed + - uuid: 98d8b8c35272455281f6ae0775691117 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 1d84ec840bfb4ca0a8e98d11008e8423 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 261749b9936c4a26b48d660f01435fb7 + expression: '(last(/HP iLO by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/HP iLO by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/HP iLO by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/HP iLO by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'HP iLO: Host has been restarted' + event_name: 'HP iLO: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'HP iLO: No SNMP data collection' + expression: 'max(/HP iLO by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Hadoop_by_HTTP.yaml b/Hadoop_by_HTTP.yaml new file mode 100644 index 0000000..53b8dc2 --- /dev/null +++ b/Hadoop_by_HTTP.yaml @@ -0,0 +1,1565 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: e129aeba7c814bf189772cf5919b4bbb + template: 'Hadoop by HTTP' + name: 'Hadoop by HTTP' + description: | + The template gets the Hadoop metrics from cluster's hosts (ResourceManager, NodeManagers, NameNode, DataNodes) by HTTP agent. You should define the IP address (or FQDN) and Web-UI port for the ResourceManager in {$HADOOP.RESOURCEMANAGER.HOST} and {$HADOOP.RESOURCEMANAGER.PORT} macros and for the NameNode in {$HADOOP.NAMENODE.HOST} and {$HADOOP.NAMENODE.PORT} macros respectively. Macros can be set in the template or overridden at the host level. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/413459-discussion-thread-for-official-zabbix-template-hadoop + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: d2d19ac9d1eb434c98a55cbf76c27850 + name: 'Get DataNodes states' + type: HTTP_AGENT + key: hadoop.datanodes.get + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + parsed = JSON.parse(value); + var result = []; + + function getNodes(nodes, state) { + Object.keys(nodes).forEach(function (field) { + var Node = {}; + Node['HostName'] = field || ''; + Node['adminState'] = nodes[field].adminState || ''; + Node['operState'] = state || ''; + Node['version'] = nodes[field].version || ''; + result.push(Node); + }); + } + + getNodes(JSON.parse(parsed.beans[0].LiveNodes), 'Live'); + getNodes(JSON.parse(parsed.beans[0].DeadNodes), 'Dead'); + getNodes(JSON.parse(parsed.beans[0].DecomNodes), 'Decommission'); + getNodes(JSON.parse(parsed.beans[0].EnteringMaintenanceNodes), 'Maintenance'); + + return JSON.stringify(result); + } + catch (error) { + throw 'Failed to process response received from Hadoop'; + } + url: '{$HADOOP.NAMENODE.HOST}:{$HADOOP.NAMENODE.PORT}/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo' + tags: + - tag: component + value: raw + - uuid: 2cb55b7ed9cd41878dc985497f45e084 + name: 'NameNode: Total blocks' + type: DEPENDENT + key: hadoop.namenode.blocks_total + delay: '0' + description: 'Count of blocks tracked by NameNode.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].BlocksTotal.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: 1d098dc6fa134053b6c6be0e7618092e + name: 'NameNode: Blocks allocable' + type: DEPENDENT + key: hadoop.namenode.block_capacity + delay: '0' + description: 'Maximum number of blocks allocable.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].BlockCapacity.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: 26ca0bbd18e04b49b9eb8d2a74f4fd15 + name: 'NameNode: Capacity remaining' + type: DEPENDENT + key: hadoop.namenode.capacity_remaining + delay: '0' + units: B + description: 'Available capacity.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].CapacityRemaining.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: c73c2b6c24b846e49bdb68c3f5a01419 + name: 'NameNode: Corrupt blocks' + type: DEPENDENT + key: hadoop.namenode.corrupt_blocks + delay: '0' + description: 'Number of corrupt blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].CorruptBlocks.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: 82198b21427a4e39a173369db42d9de3 + name: 'NameNode: Total files' + type: DEPENDENT + key: hadoop.namenode.files_total + delay: '0' + description: 'Total count of files tracked by the NameNode.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].FilesTotal.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: 687406d06ce94a8291b2e72bb2f8bec4 + name: 'Get NameNode stats' + type: HTTP_AGENT + key: hadoop.namenode.get + history: '0' + value_type: TEXT + trends: '0' + url: '{$HADOOP.NAMENODE.HOST}:{$HADOOP.NAMENODE.PORT}/jmx' + tags: + - tag: component + value: raw + - uuid: ea72dc1574f348d19432a1a922b4ed35 + name: 'NameNode: Get info' + type: DEPENDENT + key: hadoop.namenode.info + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name=~''Hadoop:service=NameNode,name=*'')]' + error_handler: CUSTOM_VALUE + error_handler_params: '[]' + master_item: + key: hadoop.namenode.get + tags: + - tag: component + value: raw + - uuid: 30ee7e09067e4f00a4f26ad6c00454b2 + name: 'NameNode: Missing blocks' + type: DEPENDENT + key: hadoop.namenode.missing_blocks + delay: '0' + description: 'Number of missing blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].MissingBlocks.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + triggers: + - uuid: 3b92daaaddb74105a5e57c4b381e3060 + expression: 'min(/Hadoop by HTTP/hadoop.namenode.missing_blocks,15m)>0' + name: 'Hadoop: NameNode: Cluster has missing blocks' + priority: AVERAGE + description: 'A missing block is far worse than a corrupt block, because a missing block cannot be recovered by copying a replica.' + tags: + - tag: scope + value: notice + - uuid: 3473bad0a7c94c8b9fd35cd4398e6215 + name: 'NameNode: Dead DataNodes' + type: DEPENDENT + key: hadoop.namenode.num_dead_data_nodes + delay: '0' + description: 'Count of dead DataNodes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].NumDeadDataNodes.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + triggers: + - uuid: b2d1a26791aa4b16865b4410c50c7ceb + expression: 'min(/Hadoop by HTTP/hadoop.namenode.num_dead_data_nodes,5m)>0' + name: 'Hadoop: NameNode: Cluster has DataNodes in Dead state' + priority: AVERAGE + description: 'The death of a DataNode causes a flurry of network activity, as the NameNode initiates replication of blocks lost on the dead nodes.' + tags: + - tag: scope + value: notice + - uuid: 398a8c95db3248b684f222fe7b912fe3 + name: 'NameNode: Alive DataNodes' + type: DEPENDENT + key: hadoop.namenode.num_live_data_nodes + delay: '0' + description: 'Count of alive DataNodes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].NumLiveDataNodes.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: 15bcb22fdc7f4e2c8f24560ef641d63d + name: 'NameNode: Stale DataNodes' + type: DEPENDENT + key: hadoop.namenode.num_stale_data_nodes + delay: '0' + description: 'DataNodes that do not send a heartbeat within 30 seconds are marked as "stale".' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].StaleDataNodes.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: b72d54b849fc48fd8e7cdacd75943c23 + name: 'NameNode: Block Pool Renaming' + type: DEPENDENT + key: hadoop.namenode.percent_block_pool_used + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=NameNodeInfo'')].PercentBlockPoolUsed.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: 3cfbf084a31b479c91be356556d43c0d + name: 'NameNode: Percent capacity remaining' + type: DEPENDENT + key: hadoop.namenode.percent_remaining + delay: '0' + value_type: FLOAT + units: '%' + description: 'Available capacity in percent.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=NameNodeInfo'')].PercentRemaining.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + triggers: + - uuid: 3104295848c5497085f397b8f3e06ef6 + expression: 'max(/Hadoop by HTTP/hadoop.namenode.percent_remaining,15m)<{$HADOOP.CAPACITY_REMAINING.MIN.WARN}' + name: 'Hadoop: NameNode: Cluster capacity remaining is low' + event_name: 'Hadoop: NameNode: Cluster capacity remaining is low (below {$HADOOP.CAPACITY_REMAINING.MIN.WARN}% for 15m)' + priority: WARNING + description: 'A good practice is to ensure that disk use never exceeds 80 percent capacity.' + tags: + - tag: scope + value: capacity + - uuid: a9e6c1e2f9544c71844785b4baa9c017 + name: 'NameNode: RPC queue & processing time' + type: DEPENDENT + key: hadoop.namenode.rpc_processing_time_avg + delay: '0' + value_type: FLOAT + units: s + description: 'Average time spent on processing RPC requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=RpcActivityForPort9000'')].RpcProcessingTimeAvgTime.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: 9f00149ef0c2444ebbc9327b24acd7b9 + name: 'NameNode: Total load' + type: DEPENDENT + key: hadoop.namenode.total_load + delay: '0' + description: 'The current number of concurrent file accesses (read/write) across all DataNodes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].TotalLoad.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: 6abfe537a36646a0b10fe2c72586d249 + name: 'NameNode: Transactions since last checkpoint' + type: DEPENDENT + key: hadoop.namenode.transactions_since_last_checkpoint + delay: '0' + description: 'Total number of transactions since last checkpoint.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].TransactionsSinceLastCheckpoint.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: 249098bbeb7a43cdac59f1297ca95104 + name: 'NameNode: Under-replicated blocks' + type: DEPENDENT + key: hadoop.namenode.under_replicated_blocks + delay: '0' + description: 'The number of blocks with insufficient replication.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].UnderReplicatedBlocks.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + - uuid: 7e8769eb77304b6f9c6e1d5bbd420fd0 + name: 'NameNode: Uptime' + type: DEPENDENT + key: hadoop.namenode.uptime + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''java.lang:type=Runtime'')].Uptime.first()' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: hadoop.namenode.get + tags: + - tag: component + value: system + triggers: + - uuid: 9fac0ae651ab40a08551945eb0a93b68 + expression: 'nodata(/Hadoop by HTTP/hadoop.namenode.uptime,30m)=1' + name: 'Hadoop: NameNode: Failed to fetch NameNode API page' + event_name: 'Hadoop: NameNode: Failed to fetch NameNode API 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: 'Hadoop: NameNode: Service is unavailable' + expression: 'last(/Hadoop by HTTP/net.tcp.service["tcp","{$HADOOP.NAMENODE.HOST}","{$HADOOP.NAMENODE.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: 84d866bc0dc3486d9c5dc9beefec8d31 + expression: 'last(/Hadoop by HTTP/hadoop.namenode.uptime)<10m' + name: 'Hadoop: NameNode: Service has been restarted' + event_name: 'Hadoop: NameNode: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 396eb8f791d54254b08ddee553d3d944 + name: 'NameNode: Failed volumes' + type: DEPENDENT + key: hadoop.namenode.volume_failures_total + delay: '0' + description: 'Number of failed volumes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=NameNode,name=FSNamesystem'')].VolumeFailuresTotal.first()' + master_item: + key: hadoop.namenode.info + tags: + - tag: component + value: namenode + triggers: + - uuid: fcf791b6d0594dbb9ddfc3f93bc94825 + expression: 'min(/Hadoop by HTTP/hadoop.namenode.volume_failures_total,15m)>0' + name: 'Hadoop: NameNode: Cluster has volume failures' + priority: AVERAGE + description: 'HDFS now allows for disks to fail in place, without affecting DataNode operations, until a threshold value is reached. This is set on each DataNode via the dfs.datanode.failed.volumes.tolerated property; it defaults to 0, meaning that any volume failure will shut down the DataNode; on a production cluster where DataNodes typically have 6, 8, or 12 disks, setting this parameter to 1 or 2 is typically the best practice.' + tags: + - tag: scope + value: notice + - uuid: 6d7546c5d15d4e478b2e87e35d5306b0 + name: 'Get NodeManagers states' + type: HTTP_AGENT + key: hadoop.nodemanagers.get + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(JSON.parse(JSON.parse(value).beans[0].LiveNodeManagers));' + url: '{$HADOOP.RESOURCEMANAGER.HOST}:{$HADOOP.RESOURCEMANAGER.PORT}/jmx?qry=Hadoop:service=ResourceManager,name=RMNMInfo' + tags: + - tag: component + value: raw + - uuid: e693cff98ec74cc198ec6b5e973f116c + name: 'Get ResourceManager stats' + type: HTTP_AGENT + key: hadoop.resourcemanager.get + history: '0' + value_type: TEXT + trends: '0' + url: '{$HADOOP.RESOURCEMANAGER.HOST}:{$HADOOP.RESOURCEMANAGER.PORT}/jmx' + tags: + - tag: component + value: raw + - uuid: 5b9200a5a39c41c2b4b88e7d41d90e7b + name: 'ResourceManager: Get info' + type: DEPENDENT + key: hadoop.resourcemanager.info + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name=~''Hadoop:service=ResourceManager,name=*'')]' + error_handler: CUSTOM_VALUE + error_handler_params: '[]' + master_item: + key: hadoop.resourcemanager.get + tags: + - tag: component + value: raw + - uuid: 63d4fe7384044027b08b99698355fd8b + name: 'ResourceManager: Active NMs' + type: DEPENDENT + key: hadoop.resourcemanager.num_active_nm + delay: '0' + description: 'Number of Active NodeManagers.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=ResourceManager,name=ClusterMetrics'')].NumActiveNMs.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: hadoop.resourcemanager.info + tags: + - tag: component + value: resourcemanager + triggers: + - uuid: eb02a30f45394e4d84d9d7239002ed40 + expression: 'max(/Hadoop by HTTP/hadoop.resourcemanager.num_active_nm,5m)=0' + name: 'Hadoop: ResourceManager: Cluster has no active NodeManagers' + priority: HIGH + description: 'Cluster is unable to execute any jobs without at least one NodeManager.' + tags: + - tag: scope + value: notice + - uuid: 3fccfdd8738544ca8969ade842430fc8 + name: 'ResourceManager: Decommissioned NMs' + type: DEPENDENT + key: hadoop.resourcemanager.num_decommissioned_nm + delay: '0' + description: 'Number of Decommissioned NodeManagers.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=ResourceManager,name=ClusterMetrics'')].NumDecommissionedNMs.first()' + master_item: + key: hadoop.resourcemanager.info + tags: + - tag: component + value: resourcemanager + - uuid: 9aad193a9e074575878e44aa96ff4237 + name: 'ResourceManager: Decommissioning NMs' + type: DEPENDENT + key: hadoop.resourcemanager.num_decommissioning_nm + delay: '0' + description: 'Number of Decommissioning NodeManagers.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=ResourceManager,name=ClusterMetrics'')].NumDecommissioningNMs.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: hadoop.resourcemanager.info + tags: + - tag: component + value: resourcemanager + - uuid: c4bbf5295b2a44619e2b641468071f9b + name: 'ResourceManager: Lost NMs' + type: DEPENDENT + key: hadoop.resourcemanager.num_lost_nm + delay: '0' + description: 'Number of Lost NodeManagers.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=ResourceManager,name=ClusterMetrics'')].NumLostNMs.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: hadoop.resourcemanager.info + tags: + - tag: component + value: resourcemanager + - uuid: b7791ce30e8f4aa7b5eea2ee7ca7eef9 + name: 'ResourceManager: Rebooted NMs' + type: DEPENDENT + key: hadoop.resourcemanager.num_rebooted_nm + delay: '0' + description: 'Number of Rebooted NodeManagers.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=ResourceManager,name=ClusterMetrics'')].NumRebootedNMs.first()' + master_item: + key: hadoop.resourcemanager.info + tags: + - tag: component + value: resourcemanager + - uuid: 666152b3bf544a29b9e58a9f417c0ab8 + name: 'ResourceManager: Shutdown NMs' + type: DEPENDENT + key: hadoop.resourcemanager.num_shutdown_nm + delay: '0' + description: 'Number of Shutdown NodeManagers.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=ResourceManager,name=ClusterMetrics'')].NumShutdownNMs.first()' + master_item: + key: hadoop.resourcemanager.info + tags: + - tag: component + value: resourcemanager + - uuid: e6aa4b4b29414f2fb1f06bd536552c1c + name: 'ResourceManager: Unhealthy NMs' + type: DEPENDENT + key: hadoop.resourcemanager.num_unhealthy_nm + delay: '0' + description: 'Number of Unhealthy NodeManagers.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=ResourceManager,name=ClusterMetrics'')].NumUnhealthyNMs.first()' + master_item: + key: hadoop.resourcemanager.info + tags: + - tag: component + value: resourcemanager + triggers: + - uuid: 0f35a0fa7a404559a3df225b906f0653 + expression: 'min(/Hadoop by HTTP/hadoop.resourcemanager.num_unhealthy_nm,15m)>0' + name: 'Hadoop: ResourceManager: Cluster has unhealthy NodeManagers' + priority: AVERAGE + description: 'YARN considers any node with disk utilization exceeding the value specified under the property yarn.nodemanager.disk-health-checker.max-disk-utilization-per-disk-percentage (in yarn-site.xml) to be unhealthy. Ample disk space is critical to ensure uninterrupted operation of a Hadoop cluster, and large numbers of unhealthyNodes (the number to alert on depends on the size of your cluster) should be quickly investigated and resolved.' + tags: + - tag: scope + value: notice + - uuid: c4c3195326e34ebcb57e5039beffce7c + name: 'ResourceManager: RPC queue & processing time' + type: DEPENDENT + key: hadoop.resourcemanager.rpc_processing_time_avg + delay: '0' + value_type: FLOAT + units: s + description: 'Average time spent on processing RPC requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name==''Hadoop:service=ResourceManager,name=RpcActivityForPort8031'')].RpcProcessingTimeAvgTime.first()' + master_item: + key: hadoop.resourcemanager.info + tags: + - tag: component + value: resourcemanager + - uuid: 4e74ca69a84d441e95e2c20afd25fada + name: 'ResourceManager: Uptime' + type: DEPENDENT + key: hadoop.resourcemanager.uptime + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''java.lang:type=Runtime'')].Uptime.first()' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: hadoop.resourcemanager.get + tags: + - tag: component + value: system + triggers: + - uuid: 7d4d026992344602a199966a8308a571 + expression: 'nodata(/Hadoop by HTTP/hadoop.resourcemanager.uptime,30m)=1' + name: 'Hadoop: ResourceManager: Failed to fetch ResourceManager API page' + event_name: 'Hadoop: ResourceManager: Failed to fetch ResourceManager API 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: 'Hadoop: ResourceManager: Service is unavailable' + expression: 'last(/Hadoop by HTTP/net.tcp.service["tcp","{$HADOOP.RESOURCEMANAGER.HOST}","{$HADOOP.RESOURCEMANAGER.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: ade7cc30a4184ef89ed896bae56e0b18 + expression: 'last(/Hadoop by HTTP/hadoop.resourcemanager.uptime)<10m' + name: 'Hadoop: ResourceManager: Service has been restarted' + event_name: 'Hadoop: ResourceManager: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 66a87b21d32c436bb2d2eb23ec328f91 + name: 'NameNode: Service response time' + type: SIMPLE + key: 'net.tcp.service.perf["tcp","{$HADOOP.NAMENODE.HOST}","{$HADOOP.NAMENODE.PORT}"]' + value_type: FLOAT + units: s + description: 'Hadoop NameNode API performance.' + tags: + - tag: component + value: network + triggers: + - uuid: 4e4a6ab28fe5492d8fe4e291b8a586dc + expression: 'min(/Hadoop by HTTP/net.tcp.service.perf["tcp","{$HADOOP.NAMENODE.HOST}","{$HADOOP.NAMENODE.PORT}"],5m)>{$HADOOP.NAMENODE.RESPONSE_TIME.MAX.WARN}' + name: 'Hadoop: NameNode: Service response time is too high' + event_name: 'Hadoop: NameNode: Service response time is too high (over {$HADOOP.NAMENODE.RESPONSE_TIME.MAX.WARN} for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'Hadoop: NameNode: Service is unavailable' + expression: 'last(/Hadoop by HTTP/net.tcp.service["tcp","{$HADOOP.NAMENODE.HOST}","{$HADOOP.NAMENODE.PORT}"])=0' + tags: + - tag: scope + value: performance + - uuid: 98b11f1156dc472fbce27ca053e01d4e + name: 'ResourceManager: Service response time' + type: SIMPLE + key: 'net.tcp.service.perf["tcp","{$HADOOP.RESOURCEMANAGER.HOST}","{$HADOOP.RESOURCEMANAGER.PORT}"]' + value_type: FLOAT + units: s + description: 'Hadoop ResourceManager API performance.' + tags: + - tag: component + value: network + triggers: + - uuid: e8e55f4c7e9e4823927a8c1345d3b941 + expression: 'min(/Hadoop by HTTP/net.tcp.service.perf["tcp","{$HADOOP.RESOURCEMANAGER.HOST}","{$HADOOP.RESOURCEMANAGER.PORT}"],5m)>{$HADOOP.RESOURCEMANAGER.RESPONSE_TIME.MAX.WARN}' + name: 'Hadoop: ResourceManager: Service response time is too high' + event_name: 'Hadoop: ResourceManager: Service response time is too high (over {$HADOOP.RESOURCEMANAGER.RESPONSE_TIME.MAX.WARN} for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'Hadoop: ResourceManager: Service is unavailable' + expression: 'last(/Hadoop by HTTP/net.tcp.service["tcp","{$HADOOP.RESOURCEMANAGER.HOST}","{$HADOOP.RESOURCEMANAGER.PORT}"])=0' + tags: + - tag: scope + value: performance + - uuid: 2c52d856e07e4524abf3c2ae4b47c6b6 + name: 'NameNode: Service status' + type: SIMPLE + key: 'net.tcp.service["tcp","{$HADOOP.NAMENODE.HOST}","{$HADOOP.NAMENODE.PORT}"]' + description: 'Hadoop NameNode API port availability.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f7e16c4ec91e4c04b13b73ee817c71d7 + expression: 'last(/Hadoop by HTTP/net.tcp.service["tcp","{$HADOOP.NAMENODE.HOST}","{$HADOOP.NAMENODE.PORT}"])=0' + name: 'Hadoop: NameNode: Service is unavailable' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 615b75c42ebe471da798a0613667d499 + name: 'ResourceManager: Service status' + type: SIMPLE + key: 'net.tcp.service["tcp","{$HADOOP.RESOURCEMANAGER.HOST}","{$HADOOP.RESOURCEMANAGER.PORT}"]' + description: 'Hadoop ResourceManager API port availability.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a9ac7ede0c004fe18ab9f1fee36ad2b2 + expression: 'last(/Hadoop by HTTP/net.tcp.service["tcp","{$HADOOP.RESOURCEMANAGER.HOST}","{$HADOOP.RESOURCEMANAGER.PORT}"])=0' + name: 'Hadoop: ResourceManager: Service is unavailable' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 0f05e90a6fc547d18f291ae2264db9d1 + name: 'Data node discovery' + type: HTTP_AGENT + key: hadoop.datanode.discovery + delay: 1h + item_prototypes: + - uuid: ef570f8b37c545bd880b7df20bd19f06 + name: '{#HOSTNAME}: Admin state' + type: DEPENDENT + key: 'hadoop.datanode.admin_state[{#HOSTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Administrative state.' + preprocessing: + - type: JSONPATH + parameters: + - $.adminState + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hadoop.datanode.raw_info[{#HOSTNAME}]' + tags: + - tag: component + value: datanode + - uuid: 14904ca75991456784d2082c14b7ec88 + name: '{#HOSTNAME}: Used' + type: DEPENDENT + key: 'hadoop.datanode.dfs_used[{#HOSTNAME}]' + delay: '0' + units: B + description: 'Used disk space.' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''Hadoop:service=DataNode,name=FSDatasetState'')].DfsUsed.first()' + master_item: + key: 'hadoop.datanode.get[{#HOSTNAME}]' + tags: + - tag: component + value: capacity + - uuid: 6d2d030b3ddb41a394faede737329bbb + name: 'Hadoop DataNode {#HOSTNAME}: Get stats' + type: HTTP_AGENT + key: 'hadoop.datanode.get[{#HOSTNAME}]' + history: '0' + value_type: TEXT + trends: '0' + url: '{#INFOADDR}/jmx' + tags: + - tag: component + value: raw + - uuid: 01bc20e53e314089a55b270961062c00 + name: '{#HOSTNAME}: JVM Garbage collection time' + type: DEPENDENT + key: 'hadoop.datanode.jvm.gc_time[{#HOSTNAME}]' + delay: '0' + units: '!ms' + description: 'The JVM garbage collection time in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''Hadoop:service=DataNode,name=JvmMetrics'')].GcTimeMillis.first()' + master_item: + key: 'hadoop.datanode.get[{#HOSTNAME}]' + tags: + - tag: component + value: datanode + - uuid: 4cae9eef95f24810a6607de5348b7b54 + name: '{#HOSTNAME}: JVM Heap usage' + type: DEPENDENT + key: 'hadoop.datanode.jvm.mem_heap_used[{#HOSTNAME}]' + delay: '0' + value_type: FLOAT + units: '!MB' + description: 'The JVM heap usage in MBytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''Hadoop:service=DataNode,name=JvmMetrics'')].MemHeapUsedM.first()' + master_item: + key: 'hadoop.datanode.get[{#HOSTNAME}]' + tags: + - tag: component + value: capacity + - uuid: dc30742dba2e4e5d99ca237615ffaef3 + name: '{#HOSTNAME}: JVM Threads' + type: DEPENDENT + key: 'hadoop.datanode.jvm.threads[{#HOSTNAME}]' + delay: '0' + description: 'The number of JVM threads.' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''java.lang:type=Threading'')].ThreadCount.first()' + master_item: + key: 'hadoop.datanode.get[{#HOSTNAME}]' + tags: + - tag: component + value: datanode + - uuid: 57c00b46aef94c018806cdae43adfab5 + name: '{#HOSTNAME}: Number of failed volumes' + type: DEPENDENT + key: 'hadoop.datanode.numfailedvolumes[{#HOSTNAME}]' + delay: '0' + description: 'Number of failed storage volumes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''Hadoop:service=DataNode,name=FSDatasetState'')].NumFailedVolumes.first()' + master_item: + key: 'hadoop.datanode.get[{#HOSTNAME}]' + tags: + - tag: component + value: datanode + - uuid: a6541492d4f7426b8016d1a8932b87ce + name: '{#HOSTNAME}: Oper state' + type: DEPENDENT + key: 'hadoop.datanode.oper_state[{#HOSTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Operational state.' + preprocessing: + - type: JSONPATH + parameters: + - $.operState + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hadoop.datanode.raw_info[{#HOSTNAME}]' + tags: + - tag: component + value: datanode + trigger_prototypes: + - uuid: 9f657289a04041e5bcaa1947f62f607d + expression: 'last(/Hadoop by HTTP/hadoop.datanode.oper_state[{#HOSTNAME}])<>"Live"' + name: 'Hadoop: {#HOSTNAME}: DataNode has state {ITEM.VALUE}.' + priority: AVERAGE + description: 'The state is different from normal.' + tags: + - tag: scope + value: notice + - uuid: e1f9badba66147e6aaa2f895e6638fb9 + name: 'Hadoop DataNode {#HOSTNAME}: Get raw info' + type: DEPENDENT + key: 'hadoop.datanode.raw_info[{#HOSTNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.HostName==''{#HOSTNAME}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hadoop.datanodes.get + tags: + - tag: component + value: raw + - uuid: 5a46ec3c89eb40d4ad57cec2080c66f8 + name: '{#HOSTNAME}: Remaining' + type: DEPENDENT + key: 'hadoop.datanode.remaining[{#HOSTNAME}]' + delay: '0' + units: B + description: 'Remaining disk space.' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''Hadoop:service=DataNode,name=FSDatasetState'')].Remaining.first()' + master_item: + key: 'hadoop.datanode.get[{#HOSTNAME}]' + tags: + - tag: component + value: capacity + - uuid: 2ac19ff8ee7f480f9974be56ab06eaaf + name: '{#HOSTNAME}: Uptime' + type: DEPENDENT + key: 'hadoop.datanode.uptime[{#HOSTNAME}]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''java.lang:type=Runtime'')].Uptime.first()' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'hadoop.datanode.get[{#HOSTNAME}]' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 3eccb9daf76f4bde88b424cf6f2d21f6 + expression: 'nodata(/Hadoop by HTTP/hadoop.datanode.uptime[{#HOSTNAME}],30m)=1' + name: 'Hadoop: {#HOSTNAME}: Failed to fetch DataNode API page' + event_name: 'Hadoop: {#HOSTNAME}: Failed to fetch DataNode API 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: 'Hadoop: {#HOSTNAME}: DataNode has state {ITEM.VALUE}.' + expression: 'last(/Hadoop by HTTP/hadoop.datanode.oper_state[{#HOSTNAME}])<>"Live"' + tags: + - tag: scope + value: availability + - uuid: e40298d300764251abcf93d5df3d9a67 + expression: 'last(/Hadoop by HTTP/hadoop.datanode.uptime[{#HOSTNAME}])<10m' + name: 'Hadoop: {#HOSTNAME}: Service has been restarted' + event_name: 'Hadoop: {#HOSTNAME}: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 62b4ca9b1e8a43aa89fbeb78ac16c8cf + name: '{#HOSTNAME}: Version' + type: DEPENDENT + key: 'hadoop.datanode.version[{#HOSTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'DataNode software version.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hadoop.datanode.raw_info[{#HOSTNAME}]' + tags: + - tag: component + value: system + graph_prototypes: + - uuid: c497416bcce1416ebcede7fc491ccdba + name: '{#HOSTNAME}: DataNode {#HOSTNAME} DFS size' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'Hadoop by HTTP' + key: 'hadoop.datanode.dfs_used[{#HOSTNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Hadoop by HTTP' + key: 'hadoop.datanode.remaining[{#HOSTNAME}]' + url: '{$HADOOP.NAMENODE.HOST}:{$HADOOP.NAMENODE.PORT}/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + parsed = JSON.parse(value); + var result = []; + + function getNodes(nodes) { + Object.keys(nodes).forEach(function (field) { + var Node = {}; + Node['{#HOSTNAME}'] = field || ''; + Node['{#INFOADDR}'] = nodes[field].infoAddr || ''; + result.push(Node); + }); + } + + getNodes(JSON.parse(parsed.beans[0].LiveNodes)); + getNodes(JSON.parse(parsed.beans[0].DeadNodes)); + getNodes(JSON.parse(parsed.beans[0].DecomNodes)); + getNodes(JSON.parse(parsed.beans[0].EnteringMaintenanceNodes)); + + return JSON.stringify(result); + } + catch (error) { + throw 'Failed to process response received from Hadoop.'; + } + - uuid: de2d5f97843345668bc0b8c8336b9c14 + name: 'Node manager discovery' + type: HTTP_AGENT + key: hadoop.nodemanager.discovery + delay: 1h + item_prototypes: + - uuid: ffa4704e099a4f1a8b49add245938501 + name: '{#HOSTNAME}: Available memory' + type: DEPENDENT + key: 'hadoop.nodemanager.availablememory[{#HOSTNAME}]' + delay: '0' + units: '!MB' + preprocessing: + - type: JSONPATH + parameters: + - $.AvailableMemoryMB + master_item: + key: 'hadoop.nodemanager.raw_info[{#HOSTNAME}]' + tags: + - tag: component + value: memory + - uuid: e8d0ea2c96b643f899e370ab73c5c262 + name: '{#HOSTNAME}: Container launch avg duration' + type: DEPENDENT + key: 'hadoop.nodemanager.container_launch_duration_avg[{#HOSTNAME}]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''Hadoop:service=NodeManager,name=NodeManagerMetrics'')].ContainerLaunchDurationAvgTime.first()' + master_item: + key: 'hadoop.nodemanager.get[{#HOSTNAME}]' + tags: + - tag: component + value: nodemanager + - uuid: 23c89dfb26a34b77bf34fcf543f719f2 + name: 'Hadoop NodeManager {#HOSTNAME}: Get stats' + type: HTTP_AGENT + key: 'hadoop.nodemanager.get[{#HOSTNAME}]' + history: '0' + value_type: TEXT + trends: '0' + url: '{#NODEHTTPADDRESS}/jmx' + tags: + - tag: component + value: raw + - uuid: 82e289c999a246a6bd1feb85349d0348 + name: '{#HOSTNAME}: JVM Garbage collection time' + type: DEPENDENT + key: 'hadoop.nodemanager.jvm.gc_time[{#HOSTNAME}]' + delay: '0' + units: '!ms' + description: 'The JVM garbage collection time in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''Hadoop:service=NodeManager,name=JvmMetrics'')].GcTimeMillis.first()' + master_item: + key: 'hadoop.nodemanager.get[{#HOSTNAME}]' + tags: + - tag: component + value: nodemanager + - uuid: 4032f0a266c44b34896e8179bbed2419 + name: '{#HOSTNAME}: JVM Heap usage' + type: DEPENDENT + key: 'hadoop.nodemanager.jvm.mem_heap_used[{#HOSTNAME}]' + delay: '0' + value_type: FLOAT + units: '!MB' + description: 'The JVM heap usage in MBytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''Hadoop:service=NodeManager,name=JvmMetrics'')].MemHeapUsedM.first()' + master_item: + key: 'hadoop.nodemanager.get[{#HOSTNAME}]' + tags: + - tag: component + value: nodemanager + - uuid: d7485913b2db4e31a8f02f63f8c18913 + name: '{#HOSTNAME}: JVM Threads' + type: DEPENDENT + key: 'hadoop.nodemanager.jvm.threads[{#HOSTNAME}]' + delay: '0' + description: 'The number of JVM threads.' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''java.lang:type=Threading'')].ThreadCount.first()' + master_item: + key: 'hadoop.nodemanager.get[{#HOSTNAME}]' + tags: + - tag: component + value: nodemanager + - uuid: 662cafd31e194db8808c75789bf712eb + name: '{#HOSTNAME}: Number of containers' + type: DEPENDENT + key: 'hadoop.nodemanager.numcontainers[{#HOSTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.NumContainers + master_item: + key: 'hadoop.nodemanager.raw_info[{#HOSTNAME}]' + tags: + - tag: component + value: nodemanager + - uuid: a8b11a7fb3244792abf4ffa9461e4712 + name: 'Hadoop NodeManager {#HOSTNAME}: Get raw info' + type: DEPENDENT + key: 'hadoop.nodemanager.raw_info[{#HOSTNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.HostName==''{#HOSTNAME}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: hadoop.nodemanagers.get + tags: + - tag: component + value: raw + - uuid: 01a5bcdbfc1c4a84a471738998aed372 + name: '{#HOSTNAME}: RPC queue & processing time' + type: DEPENDENT + key: 'hadoop.nodemanager.rpc_processing_time_avg[{#HOSTNAME}]' + delay: '0' + value_type: FLOAT + description: 'Average time spent on processing RPC requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''Hadoop:service=NodeManager,name=RpcActivityForPort8040'')].RpcProcessingTimeAvgTime.first()' + master_item: + key: 'hadoop.nodemanager.get[{#HOSTNAME}]' + tags: + - tag: component + value: nodemanager + - uuid: bab9c705d31e42ce9af65b396e18504b + name: '{#HOSTNAME}: State' + type: DEPENDENT + key: 'hadoop.nodemanager.state[{#HOSTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'State of the node - valid values are: NEW, RUNNING, UNHEALTHY, DECOMMISSIONING, DECOMMISSIONED, LOST, REBOOTED, SHUTDOWN.' + preprocessing: + - type: JSONPATH + parameters: + - $.State + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hadoop.nodemanager.raw_info[{#HOSTNAME}]' + tags: + - tag: component + value: nodemanager + trigger_prototypes: + - uuid: 8752a292093347fcb16d3f06dd97c5c3 + expression: 'last(/Hadoop by HTTP/hadoop.nodemanager.state[{#HOSTNAME}])<>"RUNNING"' + name: 'Hadoop: {#HOSTNAME}: NodeManager has state {ITEM.VALUE}.' + priority: AVERAGE + description: 'The state is different from normal.' + tags: + - tag: scope + value: notice + - uuid: f8f6799130d34848a7dfb65815939c48 + name: '{#HOSTNAME}: Uptime' + type: DEPENDENT + key: 'hadoop.nodemanager.uptime[{#HOSTNAME}]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - '$.beans[?(@.name==''java.lang:type=Runtime'')].Uptime.first()' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'hadoop.nodemanager.get[{#HOSTNAME}]' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 6f8a6308d4334dd9bebe7af2fa3fb831 + expression: 'nodata(/Hadoop by HTTP/hadoop.nodemanager.uptime[{#HOSTNAME}],30m)=1' + name: 'Hadoop: {#HOSTNAME}: Failed to fetch NodeManager API page' + event_name: 'Hadoop: {#HOSTNAME}: Failed to fetch NodeManager API 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: 'Hadoop: {#HOSTNAME}: NodeManager has state {ITEM.VALUE}.' + expression: 'last(/Hadoop by HTTP/hadoop.nodemanager.state[{#HOSTNAME}])<>"RUNNING"' + tags: + - tag: scope + value: availability + - uuid: 05f3cf8ed34f4a708df508f0e50e119d + expression: 'last(/Hadoop by HTTP/hadoop.nodemanager.uptime[{#HOSTNAME}])<10m' + name: 'Hadoop: {#HOSTNAME}: Service has been restarted' + event_name: 'Hadoop: {#HOSTNAME}: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d92b66e61a5244a995693ab8aedee96e + name: '{#HOSTNAME}: Used memory' + type: DEPENDENT + key: 'hadoop.nodemanager.usedmemory[{#HOSTNAME}]' + delay: '0' + units: '!MB' + preprocessing: + - type: JSONPATH + parameters: + - $.UsedMemoryMB + master_item: + key: 'hadoop.nodemanager.raw_info[{#HOSTNAME}]' + tags: + - tag: component + value: memory + - uuid: c4d46de2d6d341f5a2c1826236f94e5e + name: '{#HOSTNAME}: Version' + type: DEPENDENT + key: 'hadoop.nodemanager.version[{#HOSTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.NodeManagerVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'hadoop.nodemanager.raw_info[{#HOSTNAME}]' + tags: + - tag: component + value: system + url: '{$HADOOP.RESOURCEMANAGER.HOST}:{$HADOOP.RESOURCEMANAGER.PORT}/jmx?qry=Hadoop:service=ResourceManager,name=RMNMInfo' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + parsed = JSON.parse(value); + var result = []; + + function getNodes(nodes) { + Object.keys(nodes).forEach(function (field) { + var Node = {}; + Node['{#HOSTNAME}'] = nodes[field].HostName || ''; + Node['{#NODEHTTPADDRESS}'] = nodes[field].NodeHTTPAddress || ''; + result.push(Node); + }); + } + + getNodes(JSON.parse(parsed.beans[0].LiveNodeManagers)); + + return JSON.stringify(result); + } + catch (error) { + throw 'Failed to process response received from Hadoop.'; + } + tags: + - tag: class + value: application + - tag: target + value: hadoop + macros: + - macro: '{$HADOOP.CAPACITY_REMAINING.MIN.WARN}' + value: '20' + description: 'The Hadoop cluster capacity remaining percent for trigger expression.' + - macro: '{$HADOOP.NAMENODE.HOST}' + value: NameNode + description: 'The Hadoop NameNode host IP address or FQDN.' + - macro: '{$HADOOP.NAMENODE.PORT}' + value: '9870' + description: 'The Hadoop NameNode Web-UI port.' + - macro: '{$HADOOP.NAMENODE.RESPONSE_TIME.MAX.WARN}' + value: 10s + description: 'The Hadoop NameNode API page maximum response time in seconds for trigger expression.' + - macro: '{$HADOOP.RESOURCEMANAGER.HOST}' + value: ResourceManager + description: 'The Hadoop ResourceManager host IP address or FQDN.' + - macro: '{$HADOOP.RESOURCEMANAGER.PORT}' + value: '8088' + description: 'The Hadoop ResourceManager Web-UI port.' + - macro: '{$HADOOP.RESOURCEMANAGER.RESPONSE_TIME.MAX.WARN}' + value: 10s + description: 'The Hadoop ResourceManager API page maximum response time in seconds for trigger expression.' + dashboards: + - uuid: 474829439a064a6ba1c33d8d81e6e832 + name: 'Hadoop: Overview' + pages: + - name: Main + widgets: + - type: item + name: 'NameNode status' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Hadoop by HTTP' + key: 'net.tcp.service["tcp","{$HADOOP.NAMENODE.HOST}","{$HADOOP.NAMENODE.PORT}"]' + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + 'y': '2' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Hadoop by HTTP' + key: hadoop.namenode.rpc_processing_time_avg + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Hadoop by HTTP' + name: 'NameNode: DataNodes' + - type: STRING + name: reference + value: AAAAC + - type: item + name: 'NameNode uptime' + x: '12' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Hadoop by HTTP' + key: hadoop.namenode.uptime + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'NameNode response time' + x: '24' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Hadoop by HTTP' + key: 'net.tcp.service.perf["tcp","{$HADOOP.NAMENODE.HOST}","{$HADOOP.NAMENODE.PORT}"]' + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'ResourceManager status' + x: '36' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Hadoop by HTTP' + key: 'net.tcp.service["tcp","{$HADOOP.RESOURCEMANAGER.HOST}","{$HADOOP.RESOURCEMANAGER.PORT}"]' + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + x: '36' + 'y': '2' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Hadoop by HTTP' + key: hadoop.resourcemanager.rpc_processing_time_avg + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Hadoop by HTTP' + name: 'NameNode: NMs' + - type: STRING + name: reference + value: AAAAD + - type: item + name: 'ResourceManager uptime' + x: '48' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Hadoop by HTTP' + key: hadoop.resourcemanager.uptime + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'ResourceManager response time' + x: '60' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Hadoop by HTTP' + key: 'net.tcp.service.perf["tcp","{$HADOOP.RESOURCEMANAGER.HOST}","{$HADOOP.RESOURCEMANAGER.PORT}"]' + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + valuemaps: + - uuid: 6c967c4df18d4c7ebb0fd4be17df292a + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 632a641116194105983cc581b1bd890d + name: 'NameNode: DataNodes' + graph_items: + - color: 199C0D + calc_fnc: ALL + item: + host: 'Hadoop by HTTP' + key: hadoop.namenode.num_live_data_nodes + - sortorder: '1' + color: F63100 + calc_fnc: ALL + item: + host: 'Hadoop by HTTP' + key: hadoop.namenode.num_dead_data_nodes + - sortorder: '2' + color: 00611C + calc_fnc: ALL + item: + host: 'Hadoop by HTTP' + key: hadoop.namenode.num_stale_data_nodes + - uuid: 96ef586f2f554d028efcbb75b4c7024b + name: 'NameNode: NMs' + graph_items: + - color: 199C0D + calc_fnc: ALL + item: + host: 'Hadoop by HTTP' + key: hadoop.resourcemanager.num_active_nm + - sortorder: '1' + color: F63100 + calc_fnc: ALL + item: + host: 'Hadoop by HTTP' + key: hadoop.resourcemanager.num_lost_nm + - sortorder: '2' + color: 00611C + calc_fnc: ALL + item: + host: 'Hadoop by HTTP' + key: hadoop.resourcemanager.num_rebooted_nm + - sortorder: '3' + color: F7941D + calc_fnc: ALL + item: + host: 'Hadoop by HTTP' + key: hadoop.resourcemanager.num_shutdown_nm + - sortorder: '4' + color: FC6EA3 + calc_fnc: ALL + item: + host: 'Hadoop by HTTP' + key: hadoop.resourcemanager.num_unhealthy_nm diff --git a/HashiCorp_Consul_Cluster_by_HTTP.yaml b/HashiCorp_Consul_Cluster_by_HTTP.yaml new file mode 100644 index 0000000..f6639cf --- /dev/null +++ b/HashiCorp_Consul_Cluster_by_HTTP.yaml @@ -0,0 +1,527 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: 3db29bb6b2b14fa289ba7915264efcdf + template: 'HashiCorp Consul Cluster by HTTP' + name: 'HashiCorp Consul Cluster by HTTP' + description: | + Get HashiCorp Consul Cluster services and nodes by HTTP agent from API endpoints. + + Don't forget to change macros {$CONSUL.CLUSTER.URL}, {$CONSUL.TOKEN}. + Some metrics may not be collected depending on your HashiCorp Consul instance version and configuration. + More information about metrics you can find in official documentation: https://www.consul.io/docs/agent/telemetry + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: fd087c72bb7842c6b84b0b70788506b0 + name: 'Get services' + type: HTTP_AGENT + key: consul.get_catalog_services + history: '0' + value_type: TEXT + trends: '0' + description: 'Catalog of services registered in a given datacenter.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + url: '{$CONSUL.CLUSTER.URL}/v1/catalog/services' + headers: + - name: X-Consul-Token + value: '{$CONSUL.TOKEN}' + - name: X-Consul-Namespace + value: '{$CONSUL.NAMESPACE}' + tags: + - tag: component + value: raw + - uuid: cad23435cc454f01b47034bd8427931d + name: 'Get nodes Serf health status' + type: HTTP_AGENT + key: consul.get_cluster_serf + history: '0' + value_type: TEXT + trends: '0' + description: 'Get Serf Health Status for all agents in cluster.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + url: '{$CONSUL.CLUSTER.URL}/v1/health/state/any?filter=CheckID==serfHealth' + headers: + - name: X-Consul-Token + value: '{$CONSUL.TOKEN}' + - name: X-Consul-Namespace + value: '{$CONSUL.NAMESPACE}' + tags: + - tag: component + value: health + - tag: component + value: raw + - uuid: e52fcc1af52e4df5b18118355260a8d6 + name: 'Cluster leader' + type: HTTP_AGENT + key: consul.get_leader + value_type: TEXT + trends: '0' + description: 'Current leader address.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: TRIM + parameters: + - '"' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + timeout: 15s + url: '{$CONSUL.CLUSTER.URL}/v1/status/leader' + headers: + - name: X-Consul-Token + value: '{$CONSUL.TOKEN}' + tags: + - tag: component + value: leader + - tag: component + value: raw + triggers: + - uuid: 8f612c3cfbb74f55a7defed05039e2a5 + expression: 'last(/HashiCorp Consul Cluster by HTTP/consul.get_leader,#1)<>last(/HashiCorp Consul Cluster by HTTP/consul.get_leader,#2) and length(last(/HashiCorp Consul Cluster by HTTP/consul.get_leader))>0' + name: 'HashiCorp Consul Cluster: Leader has been changed' + event_name: 'HashiCorp Consul Cluster: Leader has been changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'Consul cluster version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 859451004516499e9636d96cde023d21 + name: 'Get nodes' + type: HTTP_AGENT + key: consul.get_nodes + history: '0' + value_type: TEXT + trends: '0' + description: 'Catalog of nodes registered in a given datacenter.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + url: '{$CONSUL.CLUSTER.URL}/v1/catalog/nodes' + headers: + - name: X-Consul-Token + value: '{$CONSUL.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 2400f78a5ada4a59b63fc049b6e3b3bf + name: 'Nodes: peers' + type: HTTP_AGENT + key: consul.get_peers + description: 'The number of Raft peers for the datacenter in which the agent is running.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: JSONPATH + parameters: + - $.length() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + timeout: 15s + url: '{$CONSUL.CLUSTER.URL}/v1/status/peers' + headers: + - name: X-Consul-Token + value: '{$CONSUL.TOKEN}' + tags: + - tag: component + value: raft + - uuid: 31be2fd640a141279d41871df877a42c + name: 'Nodes: critical' + type: DEPENDENT + key: consul.nodes_critical + delay: '0' + description: 'Number of agents on current dc with serf health status ''critical''.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Status == "critical")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_cluster_serf + tags: + - tag: component + value: consul + triggers: + - uuid: 8660702ae3674eb083d6dacb81ec3a4d + expression: 'last(/HashiCorp Consul Cluster by HTTP/consul.nodes_critical)>0' + name: 'HashiCorp Consul Cluster: One or more nodes in cluster in ''critical'' state' + priority: AVERAGE + description: 'One or more agents on current dc with serf health status ''critical''.' + tags: + - tag: scope + value: availability + - uuid: 6303f2b128f64bec9760bc3807bb9a34 + name: 'Nodes: passing' + type: DEPENDENT + key: consul.nodes_passing + delay: '0' + description: 'Number of agents on current dc with serf health status ''passing''.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Status == "passing")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_cluster_serf + tags: + - tag: component + value: consul + - uuid: 3eef4079f15d4db8852822ebda6d36fe + name: 'Nodes: total' + type: DEPENDENT + key: consul.nodes_total + delay: '0' + description: 'Number of nodes on current dc.' + preprocessing: + - type: JSONPATH + parameters: + - $.length() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_nodes + tags: + - tag: component + value: consul + - uuid: b02337cc9a6b4c34a85d85a231c4e51f + name: 'Nodes: warning' + type: DEPENDENT + key: consul.nodes_warning + delay: '0' + description: 'Number of agents on current dc with serf health status ''warning''.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Status == "warning")].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_cluster_serf + tags: + - tag: component + value: consul + triggers: + - uuid: 92136d6ee73b4bb5b88b9f1da1afe740 + expression: 'last(/HashiCorp Consul Cluster by HTTP/consul.nodes_warning)>0' + name: 'HashiCorp Consul Cluster: One or more nodes in cluster in ''warning'' state' + priority: WARNING + description: 'One or more agents on current dc with serf health status ''warning''.' + tags: + - tag: scope + value: availability + - uuid: 30101e37fce144bdacce0a58b4c9de0e + name: 'Services: total' + type: DEPENDENT + key: consul.services_total + delay: '0' + description: 'Number of services on current dc.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return Object.keys(JSON.parse(value)).length;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_catalog_services + tags: + - tag: component + value: consul + discovery_rules: + - uuid: ea1b655bdf7940f6a431e2e04a8dfcd6 + name: 'Consul cluster nodes discovery' + type: DEPENDENT + key: consul.lld_nodes + delay: '0' + filter: + conditions: + - macro: '{#NODE_NAME}' + value: '{$CONSUL.LLD.FILTER.NODE_NAME.MATCHES}' + formulaid: A + - macro: '{#NODE_NAME}' + value: '{$CONSUL.LLD.FILTER.NODE_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: ddb71b90bde94760a4a456c15e647917 + name: 'Node ["{#NODE_NAME}"]: Serf Health' + type: DEPENDENT + key: 'consul.serf.health["{#NODE_NAME}"]' + delay: '0' + description: 'Node Serf Health Status.' + valuemap: + name: 'Consul health state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Node == "{#NODE_NAME}" && @.CheckID == "serfHealth")].Status.first()' + - type: JAVASCRIPT + parameters: + - | + var state = ['passing', 'warning', 'critical']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_cluster_serf + tags: + - tag: component + value: health + host_prototypes: + - uuid: 20efdd208e1548a7877a970e1600e5ba + host: 'Consul {#NODE_NAME}' + name: 'Consul {#NODE_NAME}' + group_links: + - group: + name: Applications + group_prototypes: + - name: 'Consul cluster/{#NODE_DATACENTER}' + templates: + - name: 'HashiCorp Consul Node by HTTP' + macros: + - macro: '{$CONSUL.NODE.API.URL}' + value: '{#NODE_API_URL}' + description: 'Consul instance URL' + tags: + - tag: address + value: '{#NODE_ADDRESS}' + - tag: datacenter + value: '{#NODE_DATACENTER}' + custom_interfaces: 'YES' + interfaces: + - ip: '{#NODE_ADDRESS}' + master_item: + key: consul.get_nodes + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + consul_api_scheme = '{$CONSUL.API.SCHEME}', + consul_api_port = '{$CONSUL.API.PORT}', + result = []; + + data.forEach(function (instance) { + if (instance["ID"] != '') { + result.push({ + '{#NODE_NAME}': instance["Node"], + '{#NODE_ADDRESS}': instance["Address"], + '{#NODE_API_URL}': consul_api_scheme + '://' + instance["Address"] + ':' + consul_api_port, + '{#NODE_DATACENTER}': instance["Datacenter"] + }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: d84aadcb4d4d4215826c859de416b739 + name: 'Consul cluster services discovery' + type: DEPENDENT + key: consul.lld_services + delay: '0' + filter: + conditions: + - macro: '{#SERVICE_NAME}' + value: '{$CONSUL.LLD.FILTER.SERVICE_NAME.MATCHES}' + formulaid: A + - macro: '{#SERVICE_NAME}' + value: '{$CONSUL.LLD.FILTER.SERVICE_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 38576dd458a94259ab273204ffe9aebd + name: '["{#SERVICE_NAME}"]: Get raw service state' + type: HTTP_AGENT + key: 'consul.get_service_stats["{#SERVICE_NAME}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Retrieve service instances providing the service indicated on the path.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + url: '{$CONSUL.CLUSTER.URL}/v1/health/service/{#SERVICE_NAME}' + status_codes: '200, 429, 503' + headers: + - name: X-Consul-Token + value: '{$CONSUL.TOKEN}' + - name: X-Consul-Namespace + value: '{$CONSUL.NAMESPACE}' + tags: + - tag: component + value: service + - tag: service + value: '{#SERVICE_NAME}' + - uuid: 70a37e9934fa47f3bd7d553c70179d10 + name: 'Service ["{#SERVICE_NAME}"]: Nodes critical' + type: DEPENDENT + key: 'consul.service.nodes_critical["{#SERVICE_NAME}"]' + delay: '0' + description: 'The number of nodes with service status `critical` from those registered.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Service.Service == "{#SERVICE_NAME}")].Checks[?(@.CheckID == "serfHealth" && @.Status == ''critical'')].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'consul.get_service_stats["{#SERVICE_NAME}"]' + tags: + - tag: component + value: service + - tag: service + value: '{#SERVICE_NAME}' + trigger_prototypes: + - uuid: 60919b58bd484597aa7ec03f308eb614 + expression: 'last(/HashiCorp Consul Cluster by HTTP/consul.service.nodes_critical["{#SERVICE_NAME}"])>{$CONSUL.SERVICE_NODES.CRITICAL.MAX.AVG:"{#SERVICE_NAME}"}' + name: 'HashiCorp Consul Cluster: Service ["{#SERVICE_NAME}"]: Too many nodes with service status ''critical''' + event_name: 'HashiCorp Consul Cluster: Service ["{#SERVICE_NAME}"]: Too many nodes with service status ''critical'' (over {$CONSUL.SERVICE_NODES.CRITICAL.MAX.AVG:"{#SERVICE_NAME}"})' + priority: AVERAGE + description: 'One or more nodes with service status ''critical''.' + tags: + - tag: scope + value: availability + - uuid: 3807bd01fda5425694eb8e4169eb4078 + name: 'Service ["{#SERVICE_NAME}"]: Nodes passing' + type: DEPENDENT + key: 'consul.service.nodes_passing["{#SERVICE_NAME}"]' + delay: '0' + description: 'The number of nodes with service status `passing` from those registered.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Service.Service == "{#SERVICE_NAME}")].Checks[?(@.CheckID == "serfHealth" && @.Status == ''passing'')].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'consul.get_service_stats["{#SERVICE_NAME}"]' + tags: + - tag: component + value: service + - tag: service + value: '{#SERVICE_NAME}' + - uuid: 8a23dbb1d28c472291c06e0da572424a + name: 'Service ["{#SERVICE_NAME}"]: Nodes warning' + type: DEPENDENT + key: 'consul.service.nodes_warning["{#SERVICE_NAME}"]' + delay: '0' + description: 'The number of nodes with service status `warning` from those registered.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Service.Service == "{#SERVICE_NAME}")].Checks[?(@.CheckID == "serfHealth" && @.Status == ''warning'')].length()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'consul.get_service_stats["{#SERVICE_NAME}"]' + tags: + - tag: component + value: service + - tag: service + value: '{#SERVICE_NAME}' + master_item: + key: consul.get_catalog_services + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = []; + + Object.keys(JSON.parse(value)).forEach(function (v) { + data.push({ '{#SERVICE_NAME}': v }) + }); + + return JSON.stringify(data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: software + - tag: target + value: consul + macros: + - macro: '{$CONSUL.API.PORT}' + value: '8500' + description: 'Consul API port. Using in node LLD.' + - macro: '{$CONSUL.API.SCHEME}' + value: http + description: 'Consul API scheme. Using in node LLD.' + - macro: '{$CONSUL.CLUSTER.URL}' + value: 'http://localhost:8500' + description: 'Consul cluster URL.' + - macro: '{$CONSUL.LLD.FILTER.NODE_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable discovered nodes.' + - macro: '{$CONSUL.LLD.FILTER.NODE_NAME.NOT_MATCHES}' + value: 'CHANGE IF NEEDED' + description: 'Filter to exclude discovered nodes.' + - macro: '{$CONSUL.LLD.FILTER.SERVICE_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable discovered services.' + - macro: '{$CONSUL.LLD.FILTER.SERVICE_NAME.NOT_MATCHES}' + value: 'CHANGE IF NEEDED' + description: 'Filter to exclude discovered services.' + - macro: '{$CONSUL.NAMESPACE}' + description: 'Consul service namespace. Enterprise only, in case of Open Source version leave this macro empty. Do not specify this macro to get all of services.' + - macro: '{$CONSUL.SERVICE_NODES.CRITICAL.MAX.AVG}' + value: '0' + description: 'Maximum number of service nodes in status ''critical'' for trigger expression. Can be used with context.' + - macro: '{$CONSUL.TOKEN}' + value: '' + description: 'Consul auth token.' + valuemaps: + - uuid: 9c120a74ede844e6a410b7e2c2d712bb + name: 'Consul health state' + mappings: + - value: '0' + newvalue: passing + - value: '1' + newvalue: warning + - value: '2' + newvalue: critical + - value: '255' + newvalue: unknown diff --git a/HashiCorp_Consul_Node_by_HTTP.yaml b/HashiCorp_Consul_Node_by_HTTP.yaml new file mode 100644 index 0000000..45fa875 --- /dev/null +++ b/HashiCorp_Consul_Node_by_HTTP.yaml @@ -0,0 +1,2092 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 884bdbeea93c4be0a11a2c92a5f8adce + template: 'HashiCorp Consul Node by HTTP' + name: 'HashiCorp Consul Node by HTTP' + description: | + Get HashiCorp Consul Node metrics by HTTP agent from metrics endpoint. + + Don't forget to change macros {$CONSUL.NODE.API.URL}, {$CONSUL.TOKEN}. + Some metrics may not be collected depending on your HashiCorp Consul instance version and configuration. + More information about metrics you can find in official documentation: https://www.consul.io/docs/agent/telemetry + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 9f90fe43daaa43369b000754e1630e41 + name: 'ACL: resolves, rate' + type: DEPENDENT + key: consul.acl.resolves.rate + delay: '0' + value_type: FLOAT + description: 'The number of ACL resolves per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_acl_ResolveToken_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: acl + - uuid: 1c969d5d7546444e91e883661d63890b + name: 'Catalog: deregister, rate' + type: DEPENDENT + key: consul.catalog.deregister.rate + delay: '0' + value_type: FLOAT + description: 'The number of catalog deregister operation per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_catalog_deregister_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: catalog + - uuid: 8f01480896f8426688aee08e2ee0fc20 + name: 'Catalog: register, rate' + type: DEPENDENT + key: consul.catalog.register.rate + delay: '0' + value_type: FLOAT + description: 'The number of catalog register operation per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_catalog_register_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: catalog + - uuid: dabcb6819c9444a6a287a6458056ef31 + name: 'Number of checks' + type: DEPENDENT + key: consul.checks_number + delay: '0' + description: 'Number of checks on current node.' + preprocessing: + - type: JSONPATH + parameters: + - $.Stats.agent.checks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_node_info + tags: + - tag: component + value: consul + - uuid: 8e48706f9bda4689bec45f4a80fcc3cb + name: 'Number of check monitors' + type: DEPENDENT + key: consul.check_monitors_number + delay: '0' + description: 'Number of check monitors on current node.' + preprocessing: + - type: JSONPATH + parameters: + - $.Stats.agent.check_monitors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_node_info + tags: + - tag: component + value: consul + - uuid: 2706adc5e5a64c4480269938e2b90fc1 + name: 'Client RPC, per second' + type: DEPENDENT + key: consul.client_rpc + delay: '0' + value_type: FLOAT + units: Rps + description: | + Number of times per second whenever a Consul agent in client mode makes an RPC request to a Consul server. + This gives a measure of how much a given agent is loading the Consul servers. + This is only generated by agents in client mode, not Consul servers. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_client_rpc + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: rpc + - uuid: 3fd30bfd7c324c53a346974c9f38e9db + name: 'Client RPC failed ,per second' + type: DEPENDENT + key: consul.client_rpc_failed + delay: '0' + value_type: FLOAT + units: Rps + description: 'Number of times per second whenever a Consul agent in client mode makes an RPC request to a Consul server and fails.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_client_rpc_failed + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: rpc + - uuid: 12b9bbac571b431ea06a13a7154ef673 + name: 'Process CPU seconds, total' + type: DEPENDENT + key: consul.cpu_seconds_total.rate + delay: '0' + value_type: FLOAT + units: s + description: 'Total user and system CPU time spent in seconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_cpu_seconds_total + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: cpu + - uuid: 7513b847ac754a25972adb3547a871ca + name: 'GC pause, p50' + type: DEPENDENT + key: consul.gc_pause.p50 + delay: '0' + value_type: FLOAT + units: s + description: 'The 50 percentile (median) for the number of nanoseconds consumed by stop-the-world garbage collection (GC) pauses since Consul started, in milliseconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_runtime_gc_pause_ns{quantile="0.5"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: gs + - uuid: 3ec74713a835498197e59df962e27bab + name: 'GC pause, p90' + type: DEPENDENT + key: consul.gc_pause.p90 + delay: '0' + value_type: FLOAT + units: s + description: 'The 90 percentile for the number of nanoseconds consumed by stop-the-world garbage collection (GC) pauses since Consul started, in milliseconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_runtime_gc_pause_ns{quantile="0.9"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: gc + - uuid: 2b3cbe778f1c4d858e43320b8c25960d + name: 'Get local services' + type: SCRIPT + key: consul.get_local_services + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Consul = { + setParams: function (params) { + ['api_endpoint', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + }); + + Consul.params = params; + if (typeof Consul.params.api_endpoint === 'string' && !Consul.params.api_endpoint.endsWith('/')) { + Consul.params.api_endpoint += '/'; + } + + Consul.tls = new CTlsConfig(params.tls_verify); + Consul.tls.checkURL(Consul.params.api_endpoint); + }, + + request: function (query) { + var response, + request = new HttpRequest(Consul.tls.options), + url = Consul.params.api_endpoint + query; + + request.addHeader('Content-Type: application/json'); + request.addHeader('X-Consul-Token: ' + Consul.params.token); + + Zabbix.log(4, '[ Consul ] Sending request: ' + url); + response = request.get(url); + + Zabbix.log(4, '[ Consul ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Consul Agent API.'; + } + } + + return { + status: request.getStatus(), + response: response + }; + }, + + getServices: function () { + var result = Consul.request('v1/agent/services'), + services = []; + + if (typeof result.response !== 'object' || result.status != 200) { + throw 'Cannot get service list from Consul Agent API.'; + } + + Object.keys(result.response).forEach(function (service) { + services.push(result.response[service]['ID']); + }); + + return services; + }, + + getServiceStats: function (service_id) { + var result = Consul.request('v1/agent/health/service/id/' + service_id); + + if (typeof result.response !== 'object' || [200, 429, 503].indexOf(result.status) === -1) { + throw 'Cannot get service info from Consul Agent API.'; + } + + return result.response; + } + } + + try { + Consul.setParams(JSON.parse(value)); + + var services = Consul.getServices(), + result = []; + + services.forEach(function (service) { + var service_stats = Consul.getServiceStats(service); + + result.push({ + 'id': service, + 'name': service_stats['Service']['Service'], + 'status': service_stats['AggregatedStatus'], + 'checks': service_stats['Checks'], + 'namespace': typeof service_stats['Service']['Namespace'] === 'undefined' ? 'None' : service_stats['Service']['Namespace'] + }); + }); + + return JSON.stringify(result); + } + catch (error) { + error += ((String(error).endsWith('.')) ? '' : '.'); + Zabbix.log(3, '[ Consul ] ERROR: ' + error); + + return JSON.stringify({error: error + ' Check debug log for more information.'}); + } + description: 'Get all the services that are registered with the local agent and their status.' + timeout: 15s + parameters: + - name: api_endpoint + value: '{$CONSUL.NODE.API.URL}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"HashiCorp Consul Node"}' + - name: token + value: '{$CONSUL.TOKEN}' + tags: + - tag: component + value: raw + - uuid: f2fb4c76b4974319846d4773cfb64b0c + name: 'Get local services check' + type: DEPENDENT + key: consul.get_local_services.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Data collection check.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_local_services + tags: + - tag: component + value: status + triggers: + - uuid: 5cf09b213c044033af1d8e1d8821bc38 + expression: 'length(last(/HashiCorp Consul Node by HTTP/consul.get_local_services.check))>0' + name: 'HashiCorp Consul Node: Failed to get local services' + priority: WARNING + description: 'Failed to get local services. Check debug log for more information.' + tags: + - tag: scope + value: availability + - uuid: c0e199969c19444fb68fd8497fcab047 + name: 'Get instance metrics' + type: HTTP_AGENT + key: consul.get_metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get raw metrics from Consul instance /metrics endpoint.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + url: '{$CONSUL.NODE.API.URL}/v1/agent/metrics?format=prometheus' + headers: + - name: X-Consul-Token + value: '{$CONSUL.TOKEN}' + tags: + - tag: component + value: health + - tag: component + value: raw + - uuid: 7e2689de8d78499fb52d718989b7ec8b + name: 'Get node info' + type: HTTP_AGENT + key: consul.get_node_info + history: '0' + value_type: TEXT + trends: '0' + description: 'Get configuration and member information of the local agent.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + url: '{$CONSUL.NODE.API.URL}/v1/agent/self' + headers: + - name: X-Consul-Token + value: '{$CONSUL.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 2bcd79ab2c0a4ef88c0d2386d9bec1ff + name: 'Goroutine count' + type: DEPENDENT + key: consul.goroutines + delay: '0' + description: 'The number of Goroutines on Consul instance.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - go_goroutines + - value + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: goroutines + - uuid: 6613be65c0794e76a210263810a4692d + name: 'KV store: apply, p50' + type: DEPENDENT + key: consul.kvs.apply.p50 + delay: '0' + value_type: FLOAT + units: ms + description: 'The 50 percentile (median) for the time it takes to complete an update to the KV store.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_kvs_apply{quantile="0.5"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: kvs + - uuid: 2dc05550018c4d67bab58bd8f86bc365 + name: 'KV store: apply, p90' + type: DEPENDENT + key: consul.kvs.apply.p90 + delay: '0' + value_type: FLOAT + units: ms + description: 'The 90 percentile for the time it takes to complete an update to the KV store.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_kvs_apply{quantile="0.9"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: kvs + - uuid: 978bf96102d0411f8c18e92652a003c4 + name: 'KV store: apply, rate' + type: DEPENDENT + key: consul.kvs.apply.rate + delay: '0' + value_type: FLOAT + description: 'The number of updates to the KV store per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_kvs_apply_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: kvs + - uuid: 1b21a53ce7144350af8b50e57c3acf6b + name: 'Memberlist: degraded' + type: DEPENDENT + key: consul.memberlist.degraded + delay: '0' + description: | + This metric counts the number of times the Consul agent has performed failure detection on another agent at a slower probe rate. + The agent uses its own health metric as an indicator to perform this action. + If its health score is low, it means that the node is healthy, and vice versa. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_memberlist_degraded + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: consul.get_metrics + tags: + - tag: component + value: health + - uuid: 0a3b25abf7de4212bda5c92c13341593 + name: 'Memberlist: gossip, p90' + type: DEPENDENT + key: consul.memberlist.dispatch_log.p90 + delay: '0' + value_type: FLOAT + description: 'The 90 percentile for the number of gossips (messages) broadcasted to a set of randomly selected nodes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_memberlist_gossip{quantile="0.9"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: gossip + - uuid: 592fb528d5c14491892c496f7ce9a60b + name: 'Memberlist: gossip, p50' + type: DEPENDENT + key: consul.memberlist.gossip.p50 + delay: '0' + value_type: FLOAT + units: ms + description: 'The 50 for the number of gossips (messages) broadcasted to a set of randomly selected nodes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_memberlist_gossip{quantile="0.5"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: gossip + - uuid: 32259a799f6949e4be4f7d8722a2dbbe + name: 'Memberlist: health score' + type: DEPENDENT + key: consul.memberlist.health_score + delay: '0' + description: | + This metric describes a node's perception of its own health based on how well it is meeting the soft real-time requirements of the protocol. + This metric ranges from 0 to 8, where 0 indicates "totally healthy". + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_memberlist_health_score + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: consul.get_metrics + tags: + - tag: component + value: health + triggers: + - uuid: f964a907c55148bf80991352c7f2ae83 + expression: 'max(/HashiCorp Consul Node by HTTP/consul.memberlist.health_score,#3)>{$CONSUL.NODE.HEALTH_SCORE.MAX.HIGH}' + name: 'HashiCorp Consul Node: Node''s health score is critical' + event_name: 'HashiCorp Consul Node: Node''s health score is over {$CONSUL.NODE.HEALTH_SCORE.MAX.HIGH}' + priority: AVERAGE + description: | + This metric ranges from 0 to 8, where 0 indicates "totally healthy". + This health score is used to scale the time between outgoing probes, and higher scores translate into longer probing intervals. + For more details see section IV of the Lifeguard paper: https://arxiv.org/pdf/1707.00788.pdf + tags: + - tag: scope + value: availability + - uuid: 1fedc58f33ed4b9797fb37acfceba192 + expression: 'max(/HashiCorp Consul Node by HTTP/consul.memberlist.health_score,#3)>{$CONSUL.NODE.HEALTH_SCORE.MAX.WARN}' + name: 'HashiCorp Consul Node: Node''s health score is warning' + event_name: 'HashiCorp Consul Node: Node''s health score is too high (over {$CONSUL.NODE.HEALTH_SCORE.MAX.WARN} for 3m)' + priority: WARNING + description: | + This metric ranges from 0 to 8, where 0 indicates "totally healthy". + This health score is used to scale the time between outgoing probes, and higher scores translate into longer probing intervals. + For more details see section IV of the Lifeguard paper: https://arxiv.org/pdf/1707.00788.pdf + dependencies: + - name: 'HashiCorp Consul Node: Node''s health score is critical' + expression: 'max(/HashiCorp Consul Node by HTTP/consul.memberlist.health_score,#3)>{$CONSUL.NODE.HEALTH_SCORE.MAX.HIGH}' + tags: + - tag: scope + value: availability + - uuid: 1ebba76d809b415488fb0591afeaef6f + name: 'Memberlist: msg alive' + type: DEPENDENT + key: consul.memberlist.msg.alive + delay: '0' + description: 'This metric counts the number of alive Consul agents, that the agent has mapped out so far, based on the message information given by the network layer.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_memberlist_msg_alive + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: consul.get_metrics + tags: + - tag: component + value: health + - uuid: 9768a2ce01de4bfe92a17935791b4da4 + name: 'Memberlist: msg dead' + type: DEPENDENT + key: consul.memberlist.msg.dead + delay: '0' + description: 'This metric counts the number of times a Consul agent has marked another agent to be a dead node.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_memberlist_msg_dead + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: consul.get_metrics + tags: + - tag: component + value: health + - uuid: 43ea04dd91ba4c208e9ad09bbc0016af + name: 'Memberlist: msg suspect' + type: DEPENDENT + key: consul.memberlist.msg.suspect + delay: '0' + description: 'The number of times a Consul agent suspects another as failed while probing during gossip protocol.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_memberlist_msg_suspect + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: consul.get_metrics + tags: + - tag: component + value: health + - uuid: 8b3ee806fcf34a46aa61cbfee460d9f7 + name: 'Memberlist: probe node, p50' + type: DEPENDENT + key: consul.memberlist.probe_node.p50 + delay: '0' + value_type: FLOAT + units: ms + description: 'The 50 percentile (median) for the time taken to perform a single round of failure detection on a select Consul agent.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_memberlist_probeNode{quantile="0.5"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: memberlist + - uuid: 9a178ba5f7fa4d9a8ecfddfe84257ab6 + name: 'Memberlist: probe node, p90' + type: DEPENDENT + key: consul.memberlist.probe_node.p90 + delay: '0' + value_type: FLOAT + units: ms + description: 'The 90 percentile for the time taken to perform a single round of failure detection on a select Consul agent.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_memberlist_probeNode{quantile="0.9"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: memberlist + - uuid: ef688e2ad7494a08a535c019fe19c0a9 + name: 'Memberlist: push pull node, p50' + type: DEPENDENT + key: consul.memberlist.push_pull_node.p50 + delay: '0' + value_type: FLOAT + description: 'The 50 percentile (median) for the number of Consul agents that have exchanged state with this agent.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_memberlist_pushPullNode{quantile="0.5"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: memberlist + - uuid: ae085470652242ba8a2077bebee7a2c7 + name: 'Memberlist: push pull node, p90' + type: DEPENDENT + key: consul.memberlist.push_pull_node.p90 + delay: '0' + value_type: FLOAT + units: ms + description: 'The 90 percentile for the number of Consul agents that have exchanged state with this agent.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_memberlist_pushPullNode{quantile="0.9"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: memberlist + - uuid: a5d4e2e589564cc9898537c0a8c6a21a + name: 'TCP connections, accepted per second' + type: DEPENDENT + key: consul.memberlist.tcp_accept + delay: '0' + value_type: FLOAT + units: Rps + description: 'This metric counts the number of times a Consul agent has accepted an incoming TCP stream connection per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_memberlist_tcp_accept + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: tcp + - uuid: df0a553d811444d1ab767563a1d513a3 + name: 'TCP connections, per second' + type: DEPENDENT + key: consul.memberlist.tcp_connect + delay: '0' + value_type: FLOAT + units: Rps + description: 'This metric counts the number of times a Consul agent has initiated a push/pull sync with an other agent per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_memberlist_tcp_connect + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: tcp + - uuid: ba12a6464199443d8d73164a8dd87f4f + name: 'TCP send bytes, per second' + type: DEPENDENT + key: consul.memberlist.tcp_sent + delay: '0' + value_type: FLOAT + units: Bps + description: 'This metric measures the total number of bytes sent by a Consul agent through the TCP protocol per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_memberlist_tcp_sent + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: tcp + - uuid: dde5f5c5c7d44f1dbbcddb4a541f41cc + name: 'UDP received bytes, per second' + type: DEPENDENT + key: consul.memberlist.udp_received + delay: '0' + value_type: FLOAT + units: Bps + description: 'This metric measures the total number of bytes received by a Consul agent through the UDP protocol per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_memberlist_udp_received + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: udp + - uuid: fa79687f332f4136881577838476c329 + name: 'UDP sent bytes, per second' + type: DEPENDENT + key: consul.memberlist.udp_sent + delay: '0' + value_type: FLOAT + units: Bps + description: 'This metric measures the total number of bytes sent by a Consul agent through the UDP protocol per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_memberlist_udp_sent + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: udp + - uuid: 59b28123e8154318aca6a283a1b18391 + name: 'Open file descriptors, max' + type: DEPENDENT + key: consul.process_max_fds + delay: '0' + value_type: FLOAT + description: 'Maximum number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_max_fds + - value + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: fds + - uuid: 38ad7b5d43004865bd823f1dae61395a + name: 'Open file descriptors' + type: DEPENDENT + key: consul.process_open_fds + delay: '0' + value_type: FLOAT + description: 'Number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_open_fds + - value + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: fds + - uuid: 8cb242ddeb7f4a0685c706a24f1f85c5 + name: 'RSS memory usage' + type: DEPENDENT + key: consul.resident_memory_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Resident memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_resident_memory_bytes + - value + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: memory + - uuid: ee52c7cd8a4d452d85564a47c44198a6 + name: Role + type: DEPENDENT + key: consul.role + delay: '0' + description: 'Role of current Consul agent.' + valuemap: + name: 'Consul Node role' + preprocessing: + - type: JSONPATH + parameters: + - $.Config.Server + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_node_info + tags: + - tag: component + value: consul + - uuid: e311c5bdba3e45b68887bc924c7dc206 + name: 'Serf member: failed, rate' + type: DEPENDENT + key: consul.serf.member.failed.rate + delay: '0' + value_type: FLOAT + description: | + Increments when an agent is marked dead. + This can be an indicator of overloaded agents, network problems, or configuration errors where agents cannot connect to each other on the required ports. + Shown as events per second. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_serf_member_failed + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: serf + - uuid: 11ba84beb3494504bd514500ef663cff + name: 'Serf member: flap, rate' + type: DEPENDENT + key: consul.serf.member.flap.rate + delay: '0' + value_type: FLOAT + description: | + Increments when an agent is marked dead and then recovers within a short time period. + This can be an indicator of overloaded agents, network problems, or configuration errors where agents cannot connect to each other on the required ports. + Shown as events per second. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_serf_member_flap + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: serf + - uuid: f4c224ffb17d49029fef6647dde22c90 + name: 'Serf member: join, rate' + type: DEPENDENT + key: consul.serf.member.join.rate + delay: '0' + value_type: FLOAT + description: | + Increments when an agent joins the cluster. If an agent flapped or failed this counter also increments when it re-joins. + Shown as events per second. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_serf_member_join + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: serf + - uuid: 3264823eb6774c2092b4ffe4638b61a5 + name: 'Serf member: left, rate' + type: DEPENDENT + key: consul.serf.member.left.rate + delay: '0' + value_type: FLOAT + description: 'Increments when an agent leaves the cluster. Shown as events per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_serf_member_left + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: serf + - uuid: 53bb4e76cd1840e8ae9a129d592e202e + name: 'Serf member: update, rate' + type: DEPENDENT + key: consul.serf.member.update.rate + delay: '0' + value_type: FLOAT + description: 'Increments when a Consul agent updates. Shown as events per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_serf_member_update + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: serf + - uuid: 614e63c6eb254b45a5fb3dbb985c5c3c + name: 'Number of services' + type: DEPENDENT + key: consul.services_number + delay: '0' + description: 'Number of services on current node.' + preprocessing: + - type: JSONPATH + parameters: + - $.Stats.agent.services + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_node_info + tags: + - tag: component + value: consul + - uuid: d9988aeda27f4fb09ececcde13efc71a + name: 'Snapshot: append line, p50' + type: DEPENDENT + key: consul.snapshot.append_line.p50 + delay: '0' + value_type: FLOAT + units: ms + description: 'The 50 percentile (median) for the time taken by the Consul agent to append an entry into the existing log.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_serf_snapshot_appendLine{quantile="0.5"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: snapshot + - uuid: 0b701ec082e64eb19e60650c13cd44fd + name: 'Snapshot: append line, p90' + type: DEPENDENT + key: consul.snapshot.append_line.p90 + delay: '0' + value_type: FLOAT + units: ms + description: 'The 90 percentile for the time taken by the Consul agent to append an entry into the existing log.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_serf_snapshot_appendLine{quantile="0.9"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: snapshot + - uuid: d56de8b09978421c9703fe327d03a32b + name: 'Snapshot: append line, rate' + type: DEPENDENT + key: consul.snapshot.append_line.rate + delay: '0' + value_type: FLOAT + description: 'The number of snapshot appendLine operations per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_serf_snapshot_appendLine_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: snapshot + - uuid: 12e1a4538f124c4281106b9033b1592d + name: 'Snapshot: compact, p50' + type: DEPENDENT + key: consul.snapshot.compact.p50 + delay: '0' + value_type: FLOAT + units: ms + description: | + The 50 percentile (median) for the time taken by the Consul agent to compact a log. + This operation occurs only when the snapshot becomes large enough to justify the compaction. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_serf_snapshot_compact{quantile="0.5"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: snapshot + - uuid: c55de444dd30484eb116abfd6f28a9a0 + name: 'Snapshot: compact, p90' + type: DEPENDENT + key: consul.snapshot.compact.p90 + delay: '0' + value_type: FLOAT + units: ms + description: | + The 90 percentile for the time taken by the Consul agent to compact a log. + This operation occurs only when the snapshot becomes large enough to justify the compaction. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_serf_snapshot_compact{quantile="0.9"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: snapshot + - uuid: 586be345685b4f0dbbb31f2062bebc01 + name: 'Snapshot: compact, rate' + type: DEPENDENT + key: consul.snapshot.compact.rate + delay: '0' + value_type: FLOAT + description: 'The number of snapshot compact operations per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_serf_snapshot_compact_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: snapshot + - uuid: 777e8cdd1cfc4f4bba613ef08320f1bb + name: Version + type: DEPENDENT + key: consul.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of Consul agent.' + preprocessing: + - type: JSONPATH + parameters: + - $.Config.Version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_node_info + tags: + - tag: component + value: consul + triggers: + - uuid: fa78d269c01548a083085a3a98e5a59b + expression: 'last(/HashiCorp Consul Node by HTTP/consul.version,#1)<>last(/HashiCorp Consul Node by HTTP/consul.version,#2) and length(last(/HashiCorp Consul Node by HTTP/consul.version))>0' + name: 'HashiCorp Consul Node: Version has been changed' + event_name: 'HashiCorp Consul Node: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Consul version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 62c0bb503c084f9da10f1be3c716608b + name: 'Virtual memory size' + type: DEPENDENT + key: consul.virtual_memory_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Virtual memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_virtual_memory_bytes + - value + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: memory + discovery_rules: + - uuid: 565c42fc4e444433aaafd656813b82f7 + name: 'HTTP API methods discovery' + type: DEPENDENT + key: consul.http_api_discovery + delay: '0' + description: 'Discovery HTTP API methods specific metrics.' + item_prototypes: + - uuid: 4bdb2007bada4840aa453630e701059c + name: 'HTTP request: ["{#HTTP_METHOD}"], p50' + type: DEPENDENT + key: 'consul.http.api.p50["{#HTTP_METHOD}"]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The 50 percentile (median) of how long it takes to service the given HTTP request for the given verb.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_api_http{method = "{#HTTP_METHOD}", quantile = "0.5"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: consul.get_metrics + tags: + - tag: component + value: api + - tag: verb + value: '{#HTTP_METHOD}' + - uuid: 537b455889d54deab7ada216a89f1cb2 + name: 'HTTP request: ["{#HTTP_METHOD}"], p90' + type: DEPENDENT + key: 'consul.http.api.p90["{#HTTP_METHOD}"]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The 90 percentile of how long it takes to service the given HTTP request for the given verb.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_api_http{method = "{#HTTP_METHOD}", quantile = "0.9"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: consul.get_metrics + tags: + - tag: component + value: api + - tag: verb + value: '{#HTTP_METHOD}' + - uuid: 53cdb47018df434381f7fc3e401a4dee + name: 'HTTP request: ["{#HTTP_METHOD}"], rate' + type: DEPENDENT + key: 'consul.http.api.rate["{#HTTP_METHOD}"]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of HTTP request for the given verb per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_api_http_count{method = "{#HTTP_METHOD}"}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: api + - tag: verb + value: '{#HTTP_METHOD}' + master_item: + key: consul.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'consul_api_http{method =~ ".*"}' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var http_method = item.labels.method; + if (!(lookup[http_method])) { + lookup[http_method] = 1; + result.push({ "{#HTTP_METHOD}": http_method }); + } + }) + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: dd87920ea8184ec793229878407a0993 + name: 'Local node services discovery' + type: DEPENDENT + key: consul.node_services_lld + delay: '0' + filter: + conditions: + - macro: '{#SERVICE_NAME}' + value: '{$CONSUL.LLD.FILTER.LOCAL_SERVICE_NAME.MATCHES}' + formulaid: A + - macro: '{#SERVICE_NAME}' + value: '{$CONSUL.LLD.FILTER.LOCAL_SERVICE_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SERVICE_NAMESPACE}' + value: '{$CONSUL.LLD.FILTER.SERVICE_NAMESPACE.MATCHES}' + formulaid: C + - macro: '{#SERVICE_NAMESPACE}' + value: '{$CONSUL.LLD.FILTER.SERVICE_NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discover metrics for services that are registered with the local agent.' + item_prototypes: + - uuid: 44b0f82769d244d6a20b9ce0b5cc5cb6 + name: '["{#SERVICE_NAME}"]: Aggregated status' + type: DEPENDENT + key: 'consul.service.aggregated_state["{#SERVICE_ID}"]' + delay: '0' + discover: NO_DISCOVER + description: 'Aggregated values of all health checks for the service instance.' + valuemap: + name: 'Consul health state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SERVICE_ID}")].status.first()' + - type: JAVASCRIPT + parameters: + - | + var state = ['passing', 'warning', 'critical']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_local_services + tags: + - tag: component + value: service + - tag: namespace + value: '{#SERVICE_NAMESPACE}' + - tag: service + value: '{#SERVICE_NAME}' + trigger_prototypes: + - uuid: 661551e1e9e94b25b7bd6ea876640b6d + expression: 'last(/HashiCorp Consul Node by HTTP/consul.service.aggregated_state["{#SERVICE_ID}"]) = 2' + name: 'HashiCorp Consul Node: Aggregated status is ''critical''' + event_name: 'HashiCorp Consul Node: Node''s health score is over {$CONSUL.NODE.HEALTH_SCORE.MAX.HIGH}' + priority: AVERAGE + description: 'Aggregated state of service on the local agent is ''critical''.' + tags: + - tag: scope + value: availability + - uuid: 724f6a5e16f64a779a71ad9a9378fb60 + expression: 'last(/HashiCorp Consul Node by HTTP/consul.service.aggregated_state["{#SERVICE_ID}"]) = 1' + name: 'HashiCorp Consul Node: Aggregated status is ''warning''' + priority: WARNING + description: 'Aggregated state of service on the local agent is ''warning''.' + tags: + - tag: scope + value: availability + - uuid: 20a0ec9e059548a192c9c37bd7aeaaed + name: '["{#SERVICE_NAME}"]: Check ["{#SERVICE_CHECK_NAME}"]: Output' + type: DEPENDENT + key: 'consul.service.check.output["{#SERVICE_ID}/{#SERVICE_CHECK_ID}"]' + delay: '0' + value_type: CHAR + trends: '0' + discover: NO_DISCOVER + description: 'Current output of health check for the service.' + valuemap: + name: 'Consul health state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SERVICE_ID}")].checks[?(@.CheckID == "{#SERVICE_CHECK_ID}")].Output.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_local_services + tags: + - tag: check + value: '{#SERVICE_CHECK_NAME}' + - tag: component + value: service + - tag: namespace + value: '{#SERVICE_NAMESPACE}' + - tag: service + value: '{#SERVICE_NAME}' + - uuid: 3b67eb4df3dc4d9b9f4ab4c35a592367 + name: '["{#SERVICE_NAME}"]: Check ["{#SERVICE_CHECK_NAME}"]: Status' + type: DEPENDENT + key: 'consul.service.check.state["{#SERVICE_ID}/{#SERVICE_CHECK_ID}"]' + delay: '0' + discover: NO_DISCOVER + description: 'Current state of health check for the service.' + valuemap: + name: 'Consul health state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#SERVICE_ID}")].checks[?(@.CheckID == "{#SERVICE_CHECK_ID}")].Status.first()' + - type: JAVASCRIPT + parameters: + - | + var state = ['passing', 'warning', 'critical']; + + return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim()); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_local_services + tags: + - tag: check + value: '{#SERVICE_CHECK_NAME}' + - tag: component + value: service + - tag: namespace + value: '{#SERVICE_NAMESPACE}' + - tag: service + value: '{#SERVICE_NAME}' + master_item: + key: consul.get_local_services + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + result = []; + + if (data.length === 0) { + return '[]' + }; + data.forEach(function (service) { + + result.push({ + '{#TYPE}': 'aggregated_status', + '{#SERVICE_NAME}': service.name, + '{#SERVICE_ID}': service.id, + '{#SERVICE_NAMESPACE}': service.namespace + }); + + if (service['checks'] !== 0) { + service['checks'].forEach(function (check) { + result.push({ + '{#TYPE}': 'service_check', + '{#SERVICE_NAME}': service.name, + '{#SERVICE_ID}': service.id, + '{#SERVICE_NAMESPACE}': service.namespace, + '{#SERVICE_CHECK_ID}': check["CheckID"], + '{#SERVICE_CHECK_NAME}': check["Name"] + }); + }); + } + + }); + + return JSON.stringify(result) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'aggregated status' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: aggregated_status + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Aggregated status' + discover: DISCOVER + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: State + discover: DISCOVER + - name: checks + step: '2' + filter: + conditions: + - macro: '{#TYPE}' + value: service_check + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Check + discover: DISCOVER + - uuid: 6ff39fd6911945b2baa9b762d5a86df2 + name: 'Raft leader metrics discovery' + type: DEPENDENT + key: consul.raft.leader.discovery + delay: '0' + description: 'Discover raft metrics for leader nodes.' + item_prototypes: + - uuid: 440e2a259cd64b918ebfb607961da2c8 + name: 'Autopilot healthy' + type: DEPENDENT + key: 'consul.autopilot.healthy[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Tracks the overall health of the local server cluster. 1 if all servers are healthy, 0 if one or more are unhealthy.' + valuemap: + name: 'Consul Autopilot healthy' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_autopilot_healthy + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: consul.get_metrics + tags: + - tag: component + value: health + - uuid: 2e4fd6c5aac84054aef867fc9d8cb3c5 + name: 'Raft state: commit time, p50' + type: DEPENDENT + key: 'consul.raft.commit_time.p50[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The 50 percentile (median) time it takes to commit a new entry to the raft log on the leader, in milliseconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_raft_commitTime{quantile="0.5"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + - uuid: 9428c07a23364967aef060cf3303b996 + name: 'Raft state: commit time, p90' + type: DEPENDENT + key: 'consul.raft.commit_time.p90[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The 90 percentile time it takes to commit a new entry to the raft log on the leader, in milliseconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_raft_commitTime{quantile="0.9"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + - uuid: d54c97e8c4204f8c9f79911440f1bd13 + name: 'Raft state: commit, rate' + type: DEPENDENT + key: 'consul.raft.commit_time.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of commits a new entry to the Raft log on the leader per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_raft_commitTime_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + - uuid: 3c56ebe6e022430e861488873ac6f716 + name: 'Raft state: dispatch log, p50' + type: DEPENDENT + key: 'consul.raft.dispatch_log.p50[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The 50 percentile (median) time it takes for the leader to write log entries to disk, in milliseconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_raft_leader_dispatchLog{quantile="0.5"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + - uuid: fd1e6c33254b467f8355491dc96889eb + name: 'Raft state: dispatch log, p90' + type: DEPENDENT + key: 'consul.raft.dispatch_log.p90[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The 90 percentile time it takes for the leader to write log entries to disk, in milliseconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_raft_leader_dispatchLog{quantile="0.9"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + - uuid: bc73aeda20a543ac957d1531f25fd5a9 + name: 'Raft state: dispatch log, rate' + type: DEPENDENT + key: 'consul.raft.dispatch_log.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The number of times a Raft leader writes a log to disk per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_raft_leader_dispatchLog_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + - uuid: 526a787732224555adde561ec86844fb + name: 'Raft state: leader last contact, p50' + type: DEPENDENT + key: 'consul.raft.leader_last_contact.p50[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The 50 percentile (median) of how long it takes a leader node to communicate with followers during a leader lease check, in milliseconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_raft_leader_lastContact{quantile="0.5"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + - uuid: 1ae3d9e4647b4972b1572946a2794715 + name: 'Raft state: leader last contact, p90' + type: DEPENDENT + key: 'consul.raft.leader_last_contact.p90[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The 90 percentile of how long it takes a leader node to communicate with followers during a leader lease check, in milliseconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'consul_raft_leader_lastContact{quantile="0.9"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (isNaN(value)) ? 0 : value;' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + master_item: + key: consul.get_node_info + preprocessing: + - type: JAVASCRIPT + parameters: + - | + return JSON.stringify(JSON.parse(value)["Stats"]["leader"] === true + ? [{'{#SINGLETON}': ''}] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: f7dfc3d88f5440bea02080205d3f0a9b + name: 'Raft server metrics discovery' + type: DEPENDENT + key: consul.raft.server.discovery + delay: '0' + description: 'Discover raft metrics for server nodes.' + item_prototypes: + - uuid: 428f1d7924634383aabcd5b37f561a41 + name: 'Raft: apply, rate' + type: DEPENDENT + key: 'consul.raft.apply.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: Rps + description: | + Incremented whenever a leader first passes a message into the Raft commit process (called an Apply operation). + This metric describes the arrival rate of new logs into Raft per second. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_raft_apply + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + - uuid: 25dd098b98124fa8a9518963c8b4e5ce + name: 'Raft state' + type: DEPENDENT + key: 'consul.raft.state[{#SINGLETON}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Current state of Consul agent.' + preprocessing: + - type: JSONPATH + parameters: + - $.Stats.raft.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: consul.get_node_info + tags: + - tag: component + value: raft + - uuid: 7b030c4eac68464e8c454577ab0f0f53 + name: 'Raft state: candidate' + type: DEPENDENT + key: 'consul.raft.state_candidate[{#SINGLETON}]' + delay: '0' + description: 'The number of initiated leader elections.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_raft_state_candidate + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + - uuid: e89157e341d8409c96e31a9d541a7fe8 + name: 'Raft state: leader' + type: DEPENDENT + key: 'consul.raft.state_leader[{#SINGLETON}]' + delay: '0' + description: 'Increments when a server becomes a leader.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - consul_raft_state_leader + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: consul.get_metrics + tags: + - tag: component + value: raft + master_item: + key: consul.get_node_info + preprocessing: + - type: JAVASCRIPT + parameters: + - | + return JSON.stringify(JSON.parse(value)["Config"]["Server"] === true + ? [{'{#SINGLETON}': ''}] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: software + - tag: target + value: consul + macros: + - macro: '{$CONSUL.LLD.FILTER.LOCAL_SERVICE_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable discovered services on local node.' + - macro: '{$CONSUL.LLD.FILTER.LOCAL_SERVICE_NAME.NOT_MATCHES}' + value: 'CHANGE IF NEEDED' + description: 'Filter to exclude discovered services on local node.' + - macro: '{$CONSUL.LLD.FILTER.SERVICE_NAMESPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable discovered service by namespace on local node. Enterprise only, in case of Open Source version Namespace will be set to ''None''.' + - macro: '{$CONSUL.LLD.FILTER.SERVICE_NAMESPACE.NOT_MATCHES}' + value: 'CHANGE IF NEEDED' + description: 'Filter to exclude discovered service by namespace on local node. Enterprise only, in case of Open Source version Namespace will be set to ''None''.' + - macro: '{$CONSUL.NODE.API.URL}' + value: 'http://localhost:8500' + description: 'Consul instance URL.' + - macro: '{$CONSUL.NODE.HEALTH_SCORE.MAX.HIGH}' + value: '4' + description: 'Maximum acceptable value of node''s health score for AVERAGE trigger expression.' + - macro: '{$CONSUL.NODE.HEALTH_SCORE.MAX.WARN}' + value: '2' + description: 'Maximum acceptable value of node''s health score for WARNING trigger expression.' + - macro: '{$CONSUL.OPEN.FDS.MAX.WARN}' + value: '90' + description: 'Maximum percentage of used file descriptors.' + - macro: '{$CONSUL.TOKEN}' + value: '' + description: 'Consul auth token.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "HashiCorp Consul Node", e.g. {$HTTP.TLS.VERIFY:"HashiCorp Consul Node"}.' + valuemaps: + - uuid: 92638a6d5a9347edb011a8c999a9895e + name: 'Consul Autopilot healthy' + mappings: + - value: '0' + newvalue: Unhealthy + - value: '1' + newvalue: Healthy + - uuid: 1f966e7c41134551870c82f013f0b2cd + name: 'Consul health state' + mappings: + - value: '0' + newvalue: passing + - value: '1' + newvalue: warning + - value: '2' + newvalue: critical + - value: '255' + newvalue: unknown + - uuid: 8d8f7d7e37a44fe8ac590147f621cb4c + name: 'Consul Node role' + mappings: + - value: '0' + newvalue: Agent + - value: '1' + newvalue: Server + triggers: + - uuid: 9e1a0b7f49844d1db525d00d5f1060f0 + expression: 'min(/HashiCorp Consul Node by HTTP/consul.process_open_fds,5m)/last(/HashiCorp Consul Node by HTTP/consul.process_max_fds)*100>{$CONSUL.OPEN.FDS.MAX.WARN}' + name: 'HashiCorp Consul Node: Current number of open files is too high' + event_name: 'HashiCorp Consul Node: Current number of open files is too high (over {$CONSUL.OPEN.FDS.MAX.WARN}% for 5m)' + priority: WARNING + description: '"Heavy file descriptor usage (i.e., near the process’s file descriptor limit) indicates a potential file descriptor exhaustion issue."' + tags: + - tag: scope + value: capacity + graphs: + - uuid: 2411147c0f4a425394a64fcd3dc231f0 + name: 'Consul: Catalog operations' + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.catalog.register.rate + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.catalog.deregister.rate + - uuid: 929c2527abaf447f9909003e6a43d799 + name: 'Consul: File descriptors' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.process_open_fds + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.process_max_fds + - uuid: 6a987c1499f145ff8b68281f4fef3424 + name: 'Consul: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.virtual_memory_bytes + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.resident_memory_bytes + - uuid: ba792478fe3140709a06a852560307fd + name: 'Consul: Serf member operations' + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.serf.member.update.rate + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.serf.member.left.rate + - sortorder: '2' + color: 00611C + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.serf.member.join.rate + - sortorder: '3' + color: F7941D + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.serf.member.failed.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'HashiCorp Consul Node by HTTP' + key: consul.serf.member.flap.rate diff --git a/HashiCorp_Nomad_Client_by_HTTP.yaml b/HashiCorp_Nomad_Client_by_HTTP.yaml new file mode 100644 index 0000000..51984a6 --- /dev/null +++ b/HashiCorp_Nomad_Client_by_HTTP.yaml @@ -0,0 +1,2230 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 44eac6a1abe34999b85ad6d0e40073fd + template: 'HashiCorp Nomad Client by HTTP' + name: 'HashiCorp Nomad Client by HTTP' + description: | + Get HashiCorp Nomad client metrics by HTTP from metrics endpoint. + + More information about metrics is available in the official documentation: https://developer.hashicorp.com/nomad/docs/operations/metrics-reference. + + You can discuss this template or leave feedback on our forum: https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: f98bd789c9f7409aac2e1902776ddc21 + name: 'Service [rpc] state' + type: SIMPLE + key: 'net.tcp.service[tcp,,{$NOMAD.CLIENT.RPC.PORT}]' + description: 'Current [rpc] service state.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + triggers: + - uuid: f368ff4de45e4620963135836eb54092 + expression: 'last(/HashiCorp Nomad Client by HTTP/net.tcp.service[tcp,,{$NOMAD.CLIENT.RPC.PORT}]) = 0' + name: 'HashiCorp Nomad Client: Service [rpc] is down' + opdata: 'Service: rpc, Port: {$NOMAD.CLIENT.RPC.PORT}, State: {ITEM.LASTVALUE}' + priority: AVERAGE + description: | + Cannot establish the connection to [rpc] service port {$NOMAD.CLIENT.RPC.PORT}. + Check the Nomad state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 00b39edd70cc42daa565879494f15f38 + name: 'Service [serf] state' + type: SIMPLE + key: 'net.tcp.service[tcp,,{$NOMAD.CLIENT.SERF.PORT}]' + description: 'Current [serf] service state.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + triggers: + - uuid: 0108c9f85b48433c8b9864e41458994f + expression: 'last(/HashiCorp Nomad Client by HTTP/net.tcp.service[tcp,,{$NOMAD.CLIENT.SERF.PORT}]) = 0' + name: 'HashiCorp Nomad Client: Service [serf] is down' + opdata: 'Service: serf, Port: {$NOMAD.CLIENT.SERF.PORT}, State: {ITEM.LASTVALUE}' + priority: AVERAGE + description: | + Cannot establish the connection to [serf] service port {$NOMAD.CLIENT.SERF.PORT}. + Check the Nomad state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 13aa2136b7634c32a56fe00b29056d2d + name: 'CPU allocated' + type: DEPENDENT + key: nomad.client.allocated.cpu + delay: '0' + units: '!Mhz' + description: 'Total amount of CPU shares the scheduler has allocated to tasks.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocated_cpu + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - uuid: fb7211ae27c845bba8dca7e75e0083b8 + name: 'Disk allocated' + type: DEPENDENT + key: nomad.client.allocated.disk + delay: '0' + units: B + description: 'Total amount of disk space the scheduler has allocated to tasks.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocated_disk + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1000000' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: storage + - uuid: 27c71fbb37f14deba301c3b5c7daecb5 + name: 'Memory allocated' + type: DEPENDENT + key: nomad.client.allocated.memory + delay: '0' + units: B + description: 'Total amount of memory the scheduler has allocated to tasks.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocated_memory + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1000000' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: memory + - uuid: 945d348f2f2d4c02b3a1ec6f32f1290d + name: 'Allocations blocked' + type: DEPENDENT + key: nomad.client.allocations.blocked + delay: '0' + description: 'Number of allocations waiting for previous versions.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocations_blocked + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: allocations + - uuid: f556557bf5de438d9aaf941ab5c8d93b + name: 'Allocations completed, rate' + type: DEPENDENT + key: nomad.client.allocations.complete + delay: '0' + description: 'Number of allocations completed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocs_complete + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: allocations + - uuid: 586bc8f63e7f46cf99337c7f70809c43 + name: 'Allocations failed, rate' + type: DEPENDENT + key: nomad.client.allocations.failed + delay: '0' + description: 'Number of allocations failed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocs_failed + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: allocations + - uuid: 88b2eb8e9e8041df83674d3800b1f8c1 + name: 'Allocations migrating' + type: DEPENDENT + key: nomad.client.allocations.migrating + delay: '0' + description: 'Number of allocations migrating data from previous versions.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocations_migrating + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: allocations + - uuid: 717172608fbb4d81bfb65e7f4aa4aaf3 + name: 'Allocations OOM killed' + type: DEPENDENT + key: nomad.client.allocations.oom_killed + delay: '0' + description: 'Number of allocations OOM killed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocs_oom_killed + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: allocations + triggers: + - uuid: 747de32c46cb4d95851cee8a30c576b0 + expression: 'last(/HashiCorp Nomad Client by HTTP/nomad.client.allocations.oom_killed) > 0' + name: 'HashiCorp Nomad Client: OOM killed allocations found' + opdata: 'OOM killed: {ITEM.LASTVALUE}' + priority: WARNING + description: 'OOM killed allocations found.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 9fc77ab432c04cf4b1c0f1941da641d3 + name: 'Allocations pending' + type: DEPENDENT + key: nomad.client.allocations.pending + delay: '0' + description: 'Number of allocations pending (received by the client but not yet running).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocations_pending + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: allocations + - uuid: eae33da538c642868cf9afe9e6495c95 + name: 'Allocations restarted, rate' + type: DEPENDENT + key: nomad.client.allocations.restart + delay: '0' + description: 'Number of allocations restarted.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocs_restart + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: allocations + - uuid: 6a4903e8bfa04f18a44813349ea6b33d + name: 'Allocations running' + type: DEPENDENT + key: nomad.client.allocations.running + delay: '0' + description: 'Number of allocations running.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocations_running + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: allocations + - uuid: 3fcbebb8436d4dec8db6625e44520999 + name: 'Allocations starting' + type: DEPENDENT + key: nomad.client.allocations.start + delay: '0' + description: 'Number of allocations starting.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocations_start + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: allocations + - uuid: 166aad9bafeb478abcd8c61ea1d0cc98 + name: 'Allocations terminal' + type: DEPENDENT + key: nomad.client.allocations.terminal + delay: '0' + description: 'Number of allocations terminal.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_allocations_terminal + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: allocations + - uuid: 31faeb4af30f4f878050eca21e6f97df + name: 'CPU idle utilization' + type: DEPENDENT + key: nomad.client.cpu.idle + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization in idle state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_host_cpu_idle + - function + - avg + error_handler: DISCARD_VALUE + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - uuid: ad75d4b5e69c4e11bc886582791951be + name: 'CPU system utilization' + type: DEPENDENT + key: nomad.client.cpu.system + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization in system space.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_host_cpu_system + - function + - avg + error_handler: DISCARD_VALUE + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - uuid: 71eb3676049a4d60aa69ef3901005894 + name: 'CPU total utilization' + type: DEPENDENT + key: nomad.client.cpu.total + delay: '0' + value_type: FLOAT + units: '%' + description: 'Total CPU utilization.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_host_cpu_total + - function + - avg + error_handler: DISCARD_VALUE + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 59db4f1d22cb48fab0ced8ad9ec39a25 + expression: 'min(/HashiCorp Nomad Client by HTTP/nomad.client.cpu.total, 10m) >= {$NOMAD.CPU.UTIL.MIN}' + name: 'HashiCorp Nomad Client: High CPU utilization' + event_name: 'HashiCorp Nomad Client: High CPU utilization: (over >= {$NOMAD.CPU.UTIL.MIN}% over last 10m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: cc0671cc71fb4bdd8cdf7a959e1022fd + name: 'CPU user utilization' + type: DEPENDENT + key: nomad.client.cpu.user + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization in user space.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_host_cpu_user + - function + - avg + error_handler: DISCARD_VALUE + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - uuid: 71be24cf848a448dbb993a577015bd9e + name: 'Monitoring API response' + type: DEPENDENT + key: nomad.client.data.api.response + delay: '0' + value_type: TEXT + trends: '0' + description: 'Monitoring API response message.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var response = Object.keys(JSON.parse(value).header).filter(function (f) { + return f.match(/HTTP\/[\d.]+\s+\d{3}/); + }); + + return response.pop(); + } + catch (error) { + return "HTTP/1.1 408 Request timeout"; + } + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.client.data.get + tags: + - tag: component + value: status + triggers: + - uuid: 676e1535cde2424cbda78f18cd9084bf + expression: 'find(/HashiCorp Nomad Client by HTTP/nomad.client.data.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0' + name: 'HashiCorp Nomad Client: Monitoring API connection has failed' + event_name: 'HashiCorp Nomad Client: Monitoring API connection has failed. HTTP response code: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+(\d{3})", \1")}. Response message: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+\d{3}\s+(.*)", \1")}' + priority: AVERAGE + description: | + Monitoring API connection has failed. + Ensure that Nomad API URL and the necessary permissions have been defined correctly, check the service state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: fe07fd88f3e14273b3f0b135aab26236 + name: 'Telemetry get' + type: HTTP_AGENT + key: nomad.client.data.get + history: '0' + value_type: TEXT + trends: '0' + description: 'Telemetry data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"header":{"HTTP/1.1 408 Request timeout":""}}' + timeout: '{$NOMAD.DATA.TIMEOUT}' + url: '{$NOMAD.CLIENT.API.SCHEME}://{HOST.IP}:{$NOMAD.CLIENT.API.PORT}/v1/metrics' + query_fields: + - name: format + value: prometheus + status_codes: '' + http_proxy: '{$NOMAD.HTTP.PROXY}' + headers: + - name: X-Nomad-Token + value: '{$NOMAD.TOKEN}' + retrieve_mode: BOTH + output_format: JSON + tags: + - tag: component + value: raw + - uuid: c9bfa74720ea4e228e5d200ab1f38074 + name: 'Allocations API response' + type: DEPENDENT + key: nomad.client.job.allocs.api.response + delay: '0' + value_type: TEXT + trends: '0' + description: 'Allocations API response message.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var response = Object.keys(JSON.parse(value).header).filter(function (f) { + return f.match(/HTTP\/[\d.]+\s+\d{3}/); + }); + + return response.pop(); + } + catch (error) { + return "HTTP/1.1 408 Request timeout"; + } + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.client.job.allocs.get + tags: + - tag: component + value: status + triggers: + - uuid: 300f5fba0f45465aa6868a3f1d16633d + expression: 'find(/HashiCorp Nomad Client by HTTP/nomad.client.job.allocs.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0' + name: 'HashiCorp Nomad Client: Allocations API connection has failed' + event_name: 'HashiCorp Nomad Client: Allocations API connection has failed. HTTP response code: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+(\d{3})", \1")}. Response message: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+\d{3}\s+(.*)", \1")}' + priority: AVERAGE + description: | + Allocations API connection has failed. + Ensure that Nomad API URL and the necessary permissions have been defined correctly, check the service state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + dependencies: + - name: 'HashiCorp Nomad Client: Monitoring API connection has failed' + expression: 'find(/HashiCorp Nomad Client by HTTP/nomad.client.data.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0' + tags: + - tag: scope + value: availability + - uuid: 9948608c5b3a4dad9d1b433483296427 + name: 'Allocated jobs get' + type: HTTP_AGENT + key: nomad.client.job.allocs.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + description: 'Allocated jobs data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"header":{"HTTP/1.1 408 Request timeout":""}}' + timeout: '{$NOMAD.DATA.TIMEOUT}' + url: '{$NOMAD.CLIENT.API.SCHEME}://{HOST.IP}:{$NOMAD.CLIENT.API.PORT}/v1/allocations' + query_fields: + - name: reverse + value: 'true' + - name: task_states + value: 'false' + - name: filter + value: 'NodeID == "{HOST.HOST}" and DesiredStatus == "run" and ClientStatus == "running"' + status_codes: '' + http_proxy: '{$NOMAD.HTTP.PROXY}' + headers: + - name: X-Nomad-Token + value: '{$NOMAD.TOKEN}' + retrieve_mode: BOTH + output_format: JSON + tags: + - tag: component + value: raw + - uuid: f312a5ba5758426d83c5c3c414d765fd + name: 'Memory available' + type: DEPENDENT + key: nomad.client.memory.available + delay: '0' + value_type: FLOAT + units: B + description: 'Total amount of memory available to processes which includes free and cached memory.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_host_memory_available + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: memory + - uuid: e379e923ed6b45a682f1da192b3a328d + name: 'Memory free' + type: DEPENDENT + key: nomad.client.memory.free + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of memory which is free.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_host_memory_free + - value + - '' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: memory + - uuid: 50d152cf3c654e818aa7303841d5444a + name: 'Memory size' + type: DEPENDENT + key: nomad.client.memory.total + delay: '0' + value_type: FLOAT + units: B + description: 'Total amount of physical memory on the node.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_host_memory_total + - value + - '' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: memory + - uuid: b2638e0b928e46cd825304a3f1ca1682 + name: 'Memory used' + type: DEPENDENT + key: nomad.client.memory.used + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of memory used by processes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_host_memory_used + - value + - '' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: memory + - uuid: 933621a61d2241d084b48ec6b3bd5b74 + name: Metrics + type: DEPENDENT + key: nomad.client.metrics.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Nomad client metrics in raw format.' + preprocessing: + - type: JSONPATH + parameters: + - $.body + error_handler: DISCARD_VALUE + master_item: + key: nomad.client.data.get + tags: + - tag: component + value: raw + - uuid: 39430d6dceaa42a68c72ef68f67b1a12 + name: 'Nodes API response' + type: DEPENDENT + key: nomad.client.node.info.api.response + delay: '0' + value_type: TEXT + trends: '0' + description: 'Nodes API response message.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var response = Object.keys(JSON.parse(value).header).filter(function (f) { + return f.match(/HTTP\/[\d.]+\s+\d{3}/); + }); + + return response.pop(); + } + catch (error) { + return "HTTP/1.1 408 Request timeout"; + } + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.client.node.info.get + tags: + - tag: component + value: status + triggers: + - uuid: 3ea14e12d6154492a4505c4b51003ed3 + expression: 'find(/HashiCorp Nomad Client by HTTP/nomad.client.node.info.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0' + name: 'HashiCorp Nomad Client: Nodes API connection has failed' + event_name: 'HashiCorp Nomad Client: Nodes API connection has failed. HTTP response code: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+(\d{3})", \1")}. Response message: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+\d{3}\s+(.*)", \1")}' + priority: AVERAGE + description: | + Nodes API connection has failed. + Ensure that Nomad API URL and the necessary permissions have been defined correctly, check the service state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + dependencies: + - name: 'HashiCorp Nomad Client: Monitoring API connection has failed' + expression: 'find(/HashiCorp Nomad Client by HTTP/nomad.client.data.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0' + tags: + - tag: scope + value: availability + - uuid: 36eb68c80b194a4591208cf210fb6d6e + name: 'Node info get' + type: HTTP_AGENT + key: nomad.client.node.info.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + description: 'Node info data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"header":{"HTTP/1.1 408 Request timeout":""}}' + timeout: '{$NOMAD.DATA.TIMEOUT}' + url: '{$NOMAD.CLIENT.API.SCHEME}://{HOST.IP}:{$NOMAD.CLIENT.API.PORT}/v1/nodes' + query_fields: + - name: filter + value: 'ID == "{HOST.HOST}"' + status_codes: '' + http_proxy: '{$NOMAD.HTTP.PROXY}' + headers: + - name: X-Nomad-Token + value: '{$NOMAD.TOKEN}' + retrieve_mode: BOTH + output_format: JSON + tags: + - tag: component + value: raw + - uuid: 18e57950b0c041e0a2abc0dbd0644b33 + name: 'CPU unallocated' + type: DEPENDENT + key: nomad.client.unallocated.cpu + delay: '0' + units: '!Mhz' + description: 'Total amount of CPU shares free for the scheduler to allocate to tasks.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_unallocated_cpu + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - uuid: 44619e3740a9403581d54c6555ecd967 + name: 'Disk unallocated' + type: DEPENDENT + key: nomad.client.unallocated.disk + delay: '0' + units: B + description: 'Total amount of disk space free for the scheduler to allocate to tasks.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_unallocated_disk + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1000000' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: storage + - uuid: bc0928fcff2f458f83874d7442274e61 + name: 'Memory unallocated' + type: DEPENDENT + key: nomad.client.unallocated.memory + delay: '0' + units: B + description: 'Total amount of memory free for the scheduler to allocate to tasks.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_unallocated_memory + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1000000' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: memory + - uuid: 3561fb69284f4c88a7f5d8c7f04c3b14 + name: Uptime + type: DEPENDENT + key: nomad.client.uptime + delay: '0' + units: uptime + description: 'Uptime of the host running the Nomad client.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_client_uptime + - value + - '' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: system + triggers: + - uuid: 74fe77871e8c4161b5944f30dd4d1c84 + expression: 'last(/HashiCorp Nomad Client by HTTP/nomad.client.uptime) < 10m' + name: 'HashiCorp Nomad Client: The host has been restarted' + event_name: 'HashiCorp Nomad Client: The host has been restarted: (uptime < 10m)' + priority: WARNING + description: 'The host uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 872961bd507c4f6380168d2284ead1ae + name: 'Nomad client version' + type: DEPENDENT + key: nomad.client.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Nomad client version.' + preprocessing: + - type: JSONPATH + parameters: + - $.body..Version.first() + master_item: + key: nomad.client.node.info.get + tags: + - tag: component + value: system + triggers: + - uuid: afac97bced6f49bc994ae633b662722c + expression: 'change(/HashiCorp Nomad Client by HTTP/nomad.client.version)<>0' + name: 'HashiCorp Nomad Client: Nomad client version has changed' + event_name: 'HashiCorp Nomad Client: Nomad client version has changed to {ITEM.LASTVALUE}' + priority: INFO + description: 'Nomad client version has changed.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c41a6405aea7400fb90c207ce95c6594 + name: 'Allocated jobs discovery' + type: DEPENDENT + key: nomad.client.alloc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#JOB.NAME}' + value: '{$NOMAD.JOB.NAME.MATCHES}' + formulaid: A + - macro: '{#JOB.NAME}' + value: '{$NOMAD.JOB.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#JOB.NAMESPACE}' + value: '{$NOMAD.JOB.NAMESPACE.MATCHES}' + formulaid: C + - macro: '{#JOB.NAMESPACE}' + value: '{$NOMAD.JOB.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#JOB.TASK.GROUP}' + value: '{$NOMAD.JOB.TASK.GROUP.MATCHES}' + formulaid: E + - macro: '{#JOB.TASK.GROUP}' + value: '{$NOMAD.JOB.TASK.GROUP.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#JOB.TYPE}' + value: '{$NOMAD.JOB.TYPE.MATCHES}' + formulaid: G + - macro: '{#JOB.TYPE}' + value: '{$NOMAD.JOB.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + lifetime: '0' + description: 'Allocated jobs discovery.' + item_prototypes: + - uuid: ba9e5a022dbc4f7aa28a1db2ef6d73bb + name: 'Job ["{#JOB.NAME}"] CPU allocated' + type: DEPENDENT + key: 'nomad.client.allocs.cpu.allocated["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + units: '!Mhz' + description: 'Total CPU resources allocated by the ["{#JOB.NAME}"] job across all cores.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_cpu_allocated{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - tag: component + value: job + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + - uuid: 85daa0ce6d4f41ab83a3a65ceb8359a9 + name: 'Job ["{#JOB.NAME}"] CPU system utilization' + type: DEPENDENT + key: 'nomad.client.allocs.cpu.system["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Total CPU resources consumed by the ["{#JOB.NAME}"] job in system space.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_cpu_system{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - tag: component + value: job + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + - uuid: d5ec55f8d9a74c99924a01acb206295e + name: 'Job ["{#JOB.NAME}"] CPU throttled periods time' + type: DEPENDENT + key: 'nomad.client.allocs.cpu.throttled_periods["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Total number of CPU periods that the ["{#JOB.NAME}"] job was throttled.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_cpu_throttled_periods{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - tag: component + value: job + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + - uuid: 3122f6d0c1b24ea7bac7a3af4fc00fb2 + name: 'Job ["{#JOB.NAME}"] CPU throttled time' + type: DEPENDENT + key: 'nomad.client.allocs.cpu.throttled_time["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Total time that the ["{#JOB.NAME}"] job was throttled.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_cpu_throttled_time{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - tag: component + value: job + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + - uuid: 5ff1ea02768243f4971339bf70f89772 + name: 'Job ["{#JOB.NAME}"] CPU total utilization' + type: DEPENDENT + key: 'nomad.client.allocs.cpu.total_percent["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Total CPU resources consumed by the ["{#JOB.NAME}"] job across all cores.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_cpu_total_percent{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - tag: component + value: job + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + - uuid: 14179529be9d47bc898a5330ff37a9c5 + name: 'Job ["{#JOB.NAME}"] CPU ticks' + type: DEPENDENT + key: 'nomad.client.allocs.cpu.total_ticks["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + description: 'CPU ticks consumed by the process for the ["{#JOB.NAME}"] job in the last collection interval.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_cpu_total_ticks{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - tag: component + value: job + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + - uuid: 9fb3e3b461874e86aee9483d5af65535 + name: 'Job ["{#JOB.NAME}"] CPU user utilization' + type: DEPENDENT + key: 'nomad.client.allocs.cpu.user["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Total CPU resources consumed by the ["{#JOB.NAME}"] job in user space.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_cpu_user{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: cpu + - tag: component + value: job + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + - uuid: c353af0be02b47faa27036dfdd173176 + name: 'Job ["{#JOB.NAME}"] Memory allocated' + type: DEPENDENT + key: 'nomad.client.allocs.memory.allocated["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of memory allocated by the ["{#JOB.NAME}"] job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_memory_allocated{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: job + - tag: component + value: memory + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + - uuid: 7bd7a486864b4d0f82242676da2370ed + name: 'Job ["{#JOB.NAME}"] Memory cached' + type: DEPENDENT + key: 'nomad.client.allocs.memory.cache["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of memory cached by the ["{#JOB.NAME}"] job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_memory_cache{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: job + - tag: component + value: memory + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + - uuid: b1419d5017cf4f8ba23e8c774c451772 + name: 'Job ["{#JOB.NAME}"] Memory swapped' + type: DEPENDENT + key: 'nomad.client.allocs.memory.swap["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of memory swapped by the ["{#JOB.NAME}"] job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_memory_swap{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: job + - tag: component + value: memory + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + - uuid: 09ba4987f69c496ebeab3fb08f4b499b + name: 'Job ["{#JOB.NAME}"] Memory used' + type: DEPENDENT + key: 'nomad.client.allocs.memory.usage["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Total amount of memory used by the ["{#JOB.NAME}"] job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_allocs_memory_usage{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}' + - function + - avg + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: job + - tag: component + value: memory + - tag: job + value: '{#JOB.NAME}' + - tag: namespace + value: '{#JOB.NAMESPACE}' + - tag: task-group + value: '{#JOB.TASK.GROUP}' + graph_prototypes: + - uuid: 2c82c2841f414986b26fc6890707d36d + name: 'HashiCorp Nomad Client: Job ["{#JOB.NAME}"] task ["{#JOB.TASK.GROUP}"] namespace ["{#JOB.NAMESPACE}"] memory utilization' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.memory.allocated["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.memory.cache["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.memory.swap["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + - sortorder: '3' + color: F7941D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.memory.usage["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + - uuid: bb8bbdb0180f4b35800144deec4456bb + name: 'HashiCorp Nomad Client: Job [{#JOB.NAME}] task ["{#JOB.TASK.GROUP}"] namespace ["{#JOB.NAMESPACE}"] CPU throttling' + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.cpu.throttled_time["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.cpu.throttled_periods["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + - uuid: f25a5178570e44ecac6a48cb8351cdd3 + name: 'HashiCorp Nomad Client: Job [{#JOB.NAME}] task ["{#JOB.TASK.GROUP}"] namespace ["{#JOB.NAMESPACE}"] CPU utilization' + type: STACKED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.cpu.system["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.cpu.total_percent["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.cpu.user["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + master_item: + key: nomad.client.job.allocs.get + lld_macro_paths: + - lld_macro: '{#JOB.NAMESPACE}' + path: $.Namespace + - lld_macro: '{#JOB.NAME}' + path: $.JobID + - lld_macro: '{#JOB.TASK.GROUP}' + path: $.TaskGroup + - lld_macro: '{#JOB.TYPE}' + path: $.JobType + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var raw = JSON.parse(value), + body = raw.body, + exist_key = [], + result = []; + + function getField(data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + for (i in body) { + var uniq_element = true; + + for (key in exist_key) { + if ((exist_key[key].JobID == getField(body[i], 'JobID')) && + (exist_key[key].TaskGroup == getField(body[i], 'TaskGroup')) && + (exist_key[key].Namespace == getField(body[i], 'Namespace'))) { + uniq_element = false; + } + } + + if (uniq_element) { + exist_key.push({ 'JobID': body[i].JobID, 'TaskGroup': body[i].TaskGroup, 'Namespace': body[i].Namespace }); + result.push(body[i]); + } + } + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e2955bd147ed43cb894f0981c6eb3985 + name: 'Physical disks discovery' + type: DEPENDENT + key: nomad.client.disk.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DEV.NAME}' + value: '{$NOMAD.DISK.NAME.MATCHES}' + formulaid: A + - macro: '{#DEV.NAME}' + value: '{$NOMAD.DISK.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Physical disks discovery.' + item_prototypes: + - uuid: 4a79c99027494bb98b474e6f81db5e18 + name: 'Disk ["{#DEV.NAME}"] space available' + type: DEPENDENT + key: 'nomad.client.disk.available["{#DEV.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of space which is available on ["{#DEV.NAME}"] disk.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_host_disk_available{disk="{#DEV.NAME}"}' + - value + - '' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEV.NAME}' + - uuid: 21043b0ed4424e3086a00a567d134d45 + name: 'Disk ["{#DEV.NAME}"] inodes utilization' + type: DEPENDENT + key: 'nomad.client.disk.inodes_percent["{#DEV.NAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Disk space consumed by the inodes on ["{#DEV.NAME}"] disk.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_host_disk_inodes_percent{disk="{#DEV.NAME}"}' + - value + - '' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: inodes + - tag: component + value: storage + - tag: disk + value: '{#DEV.NAME}' + trigger_prototypes: + - uuid: 433c2227305a4aeb82eb1d390621a81e + expression: 'min(/HashiCorp Nomad Client by HTTP/nomad.client.disk.inodes_percent["{#DEV.NAME}"],5m) >= {$NOMAD.INODES.FREE.MIN.CRIT:"{#DEV.NAME}"}' + name: 'HashiCorp Nomad Client: Running out of free inodes on [{#DEV.NAME}] device' + event_name: 'HashiCorp Nomad Client: Running out of free inodes on [{#DEV.NAME}] (free < {$NOMAD.INODES.FREE.MIN.CRIT:"{#DEV.NAME}"}%)' + opdata: 'Free inodes: {ITEM.VALUE}' + priority: AVERAGE + description: | + It may become impossible to write to a disk if there are no index nodes left. + The following error messages may be returned as symptoms, even though the free space: + - No space left on device; + - Disk is full. + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - uuid: d0f2aacaada545c4a81d35f0eb454532 + expression: 'min(/HashiCorp Nomad Client by HTTP/nomad.client.disk.inodes_percent["{#DEV.NAME}"],5m) >= {$NOMAD.INODES.FREE.MIN.WARN:"{#DEV.NAME}"}' + name: 'HashiCorp Nomad Client: Running out of free inodes on [{#DEV.NAME}] device' + event_name: 'HashiCorp Nomad Client: Running out of free inodes on [{#DEV.NAME}] (free < {$NOMAD.INODES.FREE.MIN.WARN:"{#DEV.NAME}"}%)' + opdata: 'Free inodes: {ITEM.VALUE}' + priority: WARNING + description: | + It may become impossible to write to a disk if there are no index nodes left. + The following error messages may be returned as symptoms, even though the free space: + - No space left on device; + - Disk is full. + manual_close: 'YES' + dependencies: + - name: 'HashiCorp Nomad Client: Running out of free inodes on [{#DEV.NAME}] device' + expression: 'min(/HashiCorp Nomad Client by HTTP/nomad.client.disk.inodes_percent["{#DEV.NAME}"],5m) >= {$NOMAD.INODES.FREE.MIN.CRIT:"{#DEV.NAME}"}' + tags: + - tag: scope + value: capacity + - uuid: 4358e8accdd0400496b491cda7edc909 + name: 'Disk ["{#DEV.NAME}"] size' + type: DEPENDENT + key: 'nomad.client.disk.size["{#DEV.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Total size of the ["{#DEV.NAME}"] device.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_host_disk_size{disk="{#DEV.NAME}"}' + - value + - '' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEV.NAME}' + - uuid: 778f4609e236434d8b216b62bfebf885 + name: 'Disk ["{#DEV.NAME}"] space used' + type: DEPENDENT + key: 'nomad.client.disk.used["{#DEV.NAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of disk ["{#DEV.NAME}"] space which has been used.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_host_disk_used{disk="{#DEV.NAME}"}' + - value + - '' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEV.NAME}' + - uuid: aec5d7147bd64f508e793d7539a8524b + name: 'Disk ["{#DEV.NAME}"] space utilization' + type: DEPENDENT + key: 'nomad.client.disk.used_percent["{#DEV.NAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of disk ["{#DEV.NAME}"] space used.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_client_host_disk_used_percent{disk="{#DEV.NAME}"}' + - value + - '' + master_item: + key: nomad.client.metrics.get + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEV.NAME}' + trigger_prototypes: + - uuid: b3e22e93d51a4a8d825b0bd2e45fc7a2 + expression: 'min(/HashiCorp Nomad Client by HTTP/nomad.client.disk.used_percent["{#DEV.NAME}"],5m) >= {$NOMAD.DISK.UTIL.MIN.CRIT:"{#DEV.NAME}"}' + name: 'HashiCorp Nomad Client: High disk [{#DEV.NAME}] utilization' + event_name: 'HashiCorp Nomad Client: Disk [{#DEV.NAME}] space low (utilization: >= {$NOMAD.DISK.UTIL.MIN.CRIT:"{#DEV.NAME}"}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'High disk [{#DEV.NAME}] utilization.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - uuid: 05c3e6cd711f4a98a21c581a4437ffb5 + expression: 'min(/HashiCorp Nomad Client by HTTP/nomad.client.disk.used_percent["{#DEV.NAME}"],5m) >= {$NOMAD.DISK.UTIL.MIN.WARN:"{#DEV.NAME}"}' + name: 'HashiCorp Nomad Client: High disk [{#DEV.NAME}] utilization' + event_name: 'HashiCorp Nomad Client: Disk [{#DEV.NAME}] space low (utilization: >= {$NOMAD.DISK.UTIL.MIN.WARN:"{#DEV.NAME}"}%)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: WARNING + description: 'High disk [{#DEV.NAME}] utilization.' + manual_close: 'YES' + dependencies: + - name: 'HashiCorp Nomad Client: Running out of free inodes on [{#DEV.NAME}] device' + expression: 'min(/HashiCorp Nomad Client by HTTP/nomad.client.disk.inodes_percent["{#DEV.NAME}"],5m) >= {$NOMAD.INODES.FREE.MIN.CRIT:"{#DEV.NAME}"}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: e29168187396478ebec8c80825da070d + name: 'HashiCorp Nomad Client: Disk ["{#DEV.NAME}"] usage' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.disk.size["{#DEV.NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.disk.available["{#DEV.NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.disk.used["{#DEV.NAME}"]' + - uuid: 3b9290be87e94bd5987eb595debe5f26 + name: 'HashiCorp Nomad Client: Disk ["{#DEV.NAME}"] utilization' + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.disk.inodes_percent["{#DEV.NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.disk.used_percent["{#DEV.NAME}"]' + master_item: + key: nomad.client.metrics.get + lld_macro_paths: + - lld_macro: '{#DEV.NAME}' + path: $.labels.disk + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'nomad_client_host_disk_available{disk=~".*"}' + - uuid: cfa76f8c4aaf49c5888ef82d6d7d484d + name: 'Drivers discovery' + type: DEPENDENT + key: nomad.client.drivers.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DRIVER.DETECTED}' + value: '{$NOMAD.DRIVER.DETECT.MATCHES}' + formulaid: A + - macro: '{#DRIVER.DETECTED}' + value: '{$NOMAD.DRIVER.DETECT.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#DRIVER.NAME}' + value: '{$NOMAD.DRIVER.NAME.MATCHES}' + formulaid: C + - macro: '{#DRIVER.NAME}' + value: '{$NOMAD.DRIVER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Client drivers discovery.' + item_prototypes: + - uuid: 6ffea3b88b29451ea6491cbd34a61148 + name: 'Driver [{#DRIVER.NAME}] detection state' + type: DEPENDENT + key: 'nomad.client.driver.detected["{#DRIVER.NAME}"]' + delay: '0' + description: 'Driver [{#DRIVER.NAME}] detection state.' + valuemap: + name: 'Detection state' + preprocessing: + - type: JSONPATH + parameters: + - '$.body..Drivers.{#DRIVER.NAME}.Detected.first()' + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: nomad.client.node.info.get + tags: + - tag: component + value: driver + - tag: detected + value: '{#DRIVER.DETECTED}' + - tag: driver + value: '{#DRIVER.NAME}' + trigger_prototypes: + - uuid: 576192afab06466f80c95c1b17c1e6fa + expression: 'change(/HashiCorp Nomad Client by HTTP/nomad.client.driver.detected["{#DRIVER.NAME}"]) <> 0' + name: 'HashiCorp Nomad Client: Driver [{#DRIVER.NAME}] detection state has changed' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: INFO + description: 'The [{#DRIVER.NAME}] driver detection state has changed.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: fdff50758360474dafffee8cb7ba6289 + name: 'Driver [{#DRIVER.NAME}] state' + type: DEPENDENT + key: 'nomad.client.driver.state["{#DRIVER.NAME}"]' + delay: '0' + description: 'Driver [{#DRIVER.NAME}] state.' + valuemap: + name: 'Driver state' + preprocessing: + - type: JSONPATH + parameters: + - '$.body..Drivers.{#DRIVER.NAME}.Healthy.first()' + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.client.node.info.get + tags: + - tag: component + value: driver + - tag: detected + value: '{#DRIVER.DETECTED}' + - tag: driver + value: '{#DRIVER.NAME}' + trigger_prototypes: + - uuid: 5630f8b3585f4f5b8faf4a30d95755b8 + expression: 'last(/HashiCorp Nomad Client by HTTP/nomad.client.driver.state["{#DRIVER.NAME}"]) = 0 and last(/HashiCorp Nomad Client by HTTP/nomad.client.driver.detected["{#DRIVER.NAME}"]) = 1' + name: 'HashiCorp Nomad Client: Driver [{#DRIVER.NAME}] is in unhealthy state' + priority: WARNING + description: 'The [{#DRIVER.NAME}] driver detected, but its state is unhealthy.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: nomad.client.node.info.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var raw = JSON.parse(value), + body = raw.body[0], + arr = []; + + function getField(data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field "' + path + '" is not present in data received.'; + } + data = data[step]; + } + return data; + } + + var keys = Object.keys(getField(body,'Drivers')); + + for (k in keys) { + arr.push({ + '{#DRIVER.NAME}': keys[k], + '{#DRIVER.DETECTED}': getField(body.Drivers[keys[k]],'Detected'), + }); + } + + return JSON.stringify(arr); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: nomad-client + macros: + - macro: '{$NOMAD.API.RESPONSE.SUCCESS}' + value: '200' + description: 'HTTP API successful response code. Availability triggers threshold. Change, if needed.' + - macro: '{$NOMAD.CLIENT.API.PORT}' + value: '4646' + description: 'Nomad client API port.' + - macro: '{$NOMAD.CLIENT.API.SCHEME}' + value: http + description: 'Nomad client API scheme.' + - macro: '{$NOMAD.CLIENT.OPEN.FDS.MAX.WARN}' + value: '90' + description: 'Maximum percentage of used file descriptors.' + - macro: '{$NOMAD.CLIENT.RPC.PORT}' + value: '4647' + description: 'Nomad RPC service port.' + - macro: '{$NOMAD.CLIENT.SERF.PORT}' + value: '4648' + description: 'Nomad serf service port.' + - macro: '{$NOMAD.CPU.UTIL.MIN}' + value: '90' + description: 'CPU utilization threshold. Measured as a percentage.' + - macro: '{$NOMAD.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for an API.' + - macro: '{$NOMAD.DISK.NAME.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad client disks by name.' + - macro: '{$NOMAD.DISK.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad client disks by name.' + - macro: '{$NOMAD.DRIVER.DETECT.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad client drivers by detection state. Possible filtering values: `true`, `false`.' + - macro: '{$NOMAD.DRIVER.DETECT.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad client drivers by detection state. Possible filtering values: `true`, `false`.' + - macro: '{$NOMAD.DRIVER.NAME.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad client drivers by name.' + - macro: '{$NOMAD.DRIVER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad client drivers by name.' + - macro: '{$NOMAD.HTTP.PROXY}' + description: 'Sets the HTTP proxy for HTTP agent item. If this parameter is empty, then no proxy is used.' + - macro: '{$NOMAD.INODES.FREE.MIN.CRIT}' + value: '10' + description: 'Critical threshold of the filesystem metadata utilization. Measured as a percentage.' + - macro: '{$NOMAD.INODES.FREE.MIN.WARN}' + value: '20' + description: 'Warning threshold of the filesystem metadata utilization. Measured as a percentage.' + - macro: '{$NOMAD.JOB.NAME.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad client jobs by name.' + - macro: '{$NOMAD.JOB.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad client jobs by name.' + - macro: '{$NOMAD.JOB.NAMESPACE.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad client jobs by namespace.' + - macro: '{$NOMAD.JOB.NAMESPACE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad client jobs by namespace.' + - macro: '{$NOMAD.JOB.TASK.GROUP.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad client jobs by task group belonging.' + - macro: '{$NOMAD.JOB.TASK.GROUP.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad client jobs by task group belonging.' + - macro: '{$NOMAD.JOB.TYPE.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad client jobs by type.' + - macro: '{$NOMAD.JOB.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad client jobs by type.' + - macro: '{$NOMAD.RAM.AVAIL.MIN}' + value: '5' + description: 'CPU utilization threshold. Measured as a percentage.' + - macro: '{$NOMAD.TOKEN}' + value: '' + description: 'Nomad authentication token.' + dashboards: + - uuid: 6cb91bf47abb4c29b5fdf6de15ee5f9e + name: Allocations + pages: + - name: Allocations + widgets: + - type: item + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.allocations.running + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + 'y': '5' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.allocations.complete + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + 'y': '10' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.allocations.migrating + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '24' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.allocations.start + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '24' + 'y': '5' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.allocations.blocked + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '24' + 'y': '10' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.allocations.terminal + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '48' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.allocations.pending + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '48' + 'y': '5' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.allocations.restart + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '48' + 'y': '10' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.allocations.failed + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - uuid: 9df94875bc944537860bad6bbe832ca8 + name: 'Job resources' + pages: + - name: 'Job resources' + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + name: 'HashiCorp Nomad Client: Job [{#JOB.NAME}] task ["{#JOB.TASK.GROUP}"] namespace ["{#JOB.NAMESPACE}"] CPU utilization' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.cpu.allocated["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + - type: STRING + name: reference + value: AAAAH + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + name: 'HashiCorp Nomad Client: Job ["{#JOB.NAME}"] task ["{#JOB.TASK.GROUP}"] namespace ["{#JOB.NAMESPACE}"] memory utilization' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + name: 'HashiCorp Nomad Client: Job [{#JOB.NAME}] task ["{#JOB.TASK.GROUP}"] namespace ["{#JOB.NAMESPACE}"] CPU throttling' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + key: 'nomad.client.allocs.cpu.total_ticks["{#JOB.NAME}","{#JOB.TASK.GROUP}","{#JOB.NAMESPACE}"]' + - type: STRING + name: reference + value: AAAAI + - type: INTEGER + name: source_type + value: '3' + - uuid: 040a905f916a4311a52ecc2b084175a4 + name: 'Node resources' + pages: + - name: 'Node resources' + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + name: 'HashiCorp Nomad Client: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + name: 'HashiCorp Nomad Client: Memory utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + name: 'HashiCorp Nomad Client: Disk ["{#DEV.NAME}"] usage' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + name: 'HashiCorp Nomad Client: Memory allocation' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'HashiCorp Nomad Client by HTTP' + name: 'HashiCorp Nomad Client: Disk ["{#DEV.NAME}"] utilization' + - type: STRING + name: reference + value: AAAAE + valuemaps: + - uuid: 766a3c43981147bf85e9e157eb69c510 + name: 'Detection state' + mappings: + - value: '0' + newvalue: Undetected + - value: '1' + newvalue: Detected + - uuid: c202a63acca7407bb6d61bf631696691 + name: 'Driver state' + mappings: + - value: '0' + newvalue: Unhealthy + - value: '1' + newvalue: Healthy + - uuid: 40e17de6519d44bb80b4566e0569c31b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: d41ae1c102d84eab9629565bcc9b51df + expression: '(min(/HashiCorp Nomad Client by HTTP/nomad.client.memory.available, 10m) / last(/HashiCorp Nomad Client by HTTP/nomad.client.memory.total))*100 <= {$NOMAD.RAM.AVAIL.MIN}' + name: 'HashiCorp Nomad Client: High memory utilization' + event_name: 'HashiCorp Nomad Client: High memory utilization: (available < {$NOMAD.RAM.AVAIL.MIN}% over last 10m)' + opdata: 'RAM available: {ITEM.LASTVALUE1}, RAM total: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'RAM utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graphs: + - uuid: a221474b1f494f8e85edfefd3a86b2ad + name: 'HashiCorp Nomad Client: CPU utilization' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.cpu.idle + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.cpu.system + - sortorder: '2' + color: 00611C + item: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.cpu.total + - sortorder: '3' + color: F7941D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.cpu.user + - uuid: b36e33cf629444d096a222d4b806f10d + name: 'HashiCorp Nomad Client: Memory allocation' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.allocated.memory + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.unallocated.memory + - uuid: a5658f2456f745ca9de427ce3bc4fc98 + name: 'HashiCorp Nomad Client: Memory utilization' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.memory.available + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.memory.free + - sortorder: '2' + color: 00611C + item: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.memory.total + - sortorder: '3' + color: F7941D + item: + host: 'HashiCorp Nomad Client by HTTP' + key: nomad.client.memory.used diff --git a/HashiCorp_Nomad_Server_by_HTTP.yaml b/HashiCorp_Nomad_Server_by_HTTP.yaml new file mode 100644 index 0000000..c9fce9c --- /dev/null +++ b/HashiCorp_Nomad_Server_by_HTTP.yaml @@ -0,0 +1,3649 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 8598d0e2bd6f4903832ec91b7b300062 + template: 'HashiCorp Nomad Server by HTTP' + name: 'HashiCorp Nomad Server by HTTP' + description: | + Get HashiCorp Nomad server metrics by HTTP from metrics endpoint. + + More information about metrics is available in the official documentation: https://developer.hashicorp.com/nomad/docs/operations/metrics-reference. + + You can discuss this template or leave feedback on our forum: https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: c5903e91262b4877be8c7e8f304b2862 + name: 'Service [rpc] state' + type: SIMPLE + key: 'net.tcp.service[tcp,,{$NOMAD.SERVER.RPC.PORT}]' + description: 'Current [rpc] service state.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + triggers: + - uuid: 0b534fa4c6cd4e89bd0a44ca8e810fa2 + expression: 'last(/HashiCorp Nomad Server by HTTP/net.tcp.service[tcp,,{$NOMAD.SERVER.RPC.PORT}]) = 0' + name: 'HashiCorp Nomad Server: Service [rpc] is down' + opdata: 'Service: rpc, Port: {$NOMAD.SERVER.RPC.PORT}, State: {ITEM.LASTVALUE}' + priority: AVERAGE + description: | + Cannot establish the connection to [rpc] service port {$NOMAD.SERVER.RPC.PORT}. + Check the Nomad state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 9eecc3ee79f04448991c83ac93459597 + name: 'Service [serf] state' + type: SIMPLE + key: 'net.tcp.service[tcp,,{$NOMAD.SERVER.SERF.PORT}]' + description: 'Current [serf] service state.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + triggers: + - uuid: 00799e8927b547308fc9caab4ba2d24d + expression: 'last(/HashiCorp Nomad Server by HTTP/net.tcp.service[tcp,,{$NOMAD.SERVER.SERF.PORT}]) = 0' + name: 'HashiCorp Nomad Server: Service [serf] is down' + opdata: 'Service: serf, Port: {$NOMAD.SERVER.SERF.PORT}, State: {ITEM.LASTVALUE}' + priority: AVERAGE + description: | + Cannot establish the connection to [serf] service port {$NOMAD.SERVER.SERF.PORT}. + Check the Nomad state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 04821dab074f43e785dec52fbf69240e + name: 'Nomad raft version' + type: DEPENDENT + key: nomad.raft.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Nomad raft version.' + preprocessing: + - type: JSONPATH + parameters: + - $.body.stats.raft.protocol_version + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.stats.get + tags: + - tag: component + value: system + - uuid: 6ad163ebdefa4f5aa1e3712b7ddac7a7 + name: 'FSM allocation client update time' + type: DEPENDENT + key: nomad.server.alloc_client_update + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to apply AllocClientUpdate raft entry.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_fsm_alloc_client_update_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fsm + - uuid: 22947f9cc2734f95997a55d9e6392b77 + name: 'Autopilot failure tolerance' + type: DEPENDENT + key: nomad.server.autopilot.failure_tolerance + delay: '0' + description: 'The number of redundant healthy servers that can fail without causing an outage.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_autopilot_failure_tolerance + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: autopilot + triggers: + - uuid: fbb6d007481a4aab8d107a1d25a8c7ad + expression: 'last(/HashiCorp Nomad Server by HTTP/nomad.server.autopilot.failure_tolerance) < {$NOMAD.REDUNDANCY.MIN} and nodata(/HashiCorp Nomad Server by HTTP/nomad.server.autopilot.failure_tolerance,5m) = 0' + name: 'HashiCorp Nomad Server: Autopilot redundancy is low' + event_name: 'HashiCorp Nomad Server: Autopilot redundancy is low (less than {$NOMAD.REDUNDANCY.MIN})' + priority: WARNING + description: | + The autopilot redundancy is low. + Cluster crash risk is high due to one more server failure. + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - uuid: 05ce375320dd402ab6c75f8fffba74cb + name: 'Autopilot state' + type: DEPENDENT + key: nomad.server.autopilot.state + delay: '0' + description: 'Current autopilot state.' + valuemap: + name: 'Autopilot state' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_autopilot_healthy + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: autopilot + triggers: + - uuid: 73c14eec055e47c6af6d8728ba0fb416 + expression: 'last(/HashiCorp Nomad Server by HTTP/nomad.server.autopilot.state) = 0 and nodata(/HashiCorp Nomad Server by HTTP/nomad.server.autopilot.state,5m) = 0' + name: 'HashiCorp Nomad Server: Autopilot is unhealthy' + priority: AVERAGE + description: 'The autopilot is in unhealthy state. The successful failover probability is extremely low.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ace31f3772fe4ffe84741554e3fba8bc + name: 'CPU shares for blocked evaluations' + type: DEPENDENT + key: nomad.server.blocked_evals.cpu + delay: '0' + value_type: FLOAT + description: 'Amount of CPU shares requested by blocked evals.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_blocked_evals_cpu + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: cpu + - tag: component + value: evaluations + - uuid: d7fe536b4d0445328dfbf3b1188bea70 + name: 'CPU shares for blocked job evaluations' + type: DEPENDENT + key: nomad.server.blocked_evals.job.cpu + delay: '0' + value_type: FLOAT + description: 'Amount of CPU shares requested by blocked evals of a job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_blocked_evals_job_cpu + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: cpu + - tag: component + value: evaluations + - tag: component + value: jobs + - uuid: 2f07cbd6ec11449cae787a6e84fa5fbf + name: 'Memory shares for blocked job evaluations' + type: DEPENDENT + key: nomad.server.blocked_evals.job.memory + delay: '0' + value_type: FLOAT + description: 'Amount of memory requested by blocked evals of a job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_blocked_evals_job_memory + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - tag: component + value: jobs + - tag: component + value: memory + - uuid: 5460a81df8174fb5a7596b4243162d05 + name: 'Memory shares by blocked evaluations' + type: DEPENDENT + key: nomad.server.blocked_evals.memory + delay: '0' + value_type: FLOAT + description: 'Amount of memory requested by blocked evals.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_blocked_evals_memory + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - tag: component + value: memory + - uuid: 474d05060b0d4a608f6a2d319235af91 + name: 'Evaluations blocked' + type: DEPENDENT + key: nomad.server.blocked_evals.total_blocked + delay: '0' + value_type: FLOAT + description: 'Count of evals in the blocked state for any reason (cluster resource exhaustion or quota limits).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_blocked_evals_total_blocked + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - uuid: 80f5edf18daf407ba6b64374084a555b + name: 'Evaluations escaped' + type: DEPENDENT + key: nomad.server.blocked_evals.total_escaped + delay: '0' + value_type: FLOAT + description: | + Count of evals that have escaped computed node classes. + This indicates a scheduler optimization was skipped and is not usually a source of concern. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_blocked_evals_total_escaped + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - uuid: 356dec0f5d5b45d981db4b590ef7dd73 + name: 'Evaluations blocked due to quota limit' + type: DEPENDENT + key: nomad.server.blocked_evals.total_quota_limit + delay: '0' + value_type: FLOAT + description: 'Count of blocked evals due to quota limits (the resources for these jobs are not counted in other blocked_evals metrics, except for total_blocked).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_blocked_evals_total_quota_limit + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - uuid: 54ddea6f2fa04e6c8ceb456d4d67c530 + name: 'Evaluations enqueue time' + type: DEPENDENT + key: nomad.server.broker.eval_waiting + delay: '0' + value_type: FLOAT + units: s + description: 'Average time elapsed with evaluations waiting to be enqueued.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_eval_ack_sum + - function + - avg + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - uuid: 7df3a4b80f6b44c6a03b672182d3f73f + name: 'Services ready to schedule' + type: DEPENDENT + key: nomad.server.broker.service_ready + delay: '0' + value_type: FLOAT + description: 'Count of service evals ready to be scheduled.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_broker_service_ready + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: services + - uuid: 0da8881c8ddf4cd18e04b38201b83b7d + name: 'Services unacknowledged' + type: DEPENDENT + key: nomad.server.broker.service_unacked + delay: '0' + value_type: FLOAT + description: 'Count of unacknowledged service evals.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_broker_service_unacked + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: services + - uuid: 2a38602920224c31a221696cf65c6abc + name: 'System evaluations ready to schedule' + type: DEPENDENT + key: nomad.server.broker.system_ready + delay: '0' + value_type: FLOAT + description: 'Count of service evals ready to be scheduled.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_broker_system_ready + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - uuid: 3faaaa69672c4b999a12f054dbd8b980 + name: 'System evaluations unacknowledged' + type: DEPENDENT + key: nomad.server.broker.system_unacked + delay: '0' + value_type: FLOAT + description: 'Count of unacknowledged system evals.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_broker_system_unacked + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - uuid: 2e556f5894c9492a80b34c84ceb69dba + name: 'Evaluations pending' + type: DEPENDENT + key: nomad.server.broker.total_pending + delay: '0' + value_type: FLOAT + description: 'Evaluations that are pending until an existing evaluation for the same job completes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_broker_total_pending + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - uuid: 01e11850732a46709942c225d294a8ef + name: 'Evaluations ready' + type: DEPENDENT + key: nomad.server.broker.total_ready + delay: '0' + value_type: FLOAT + description: 'Number of evaluations ready to be processed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_broker_total_ready + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - uuid: d57805e0d8a24117bb64992a9aeb3dc3 + name: 'Evaluations unacked' + type: DEPENDENT + key: nomad.server.broker.total_unacked + delay: '0' + value_type: FLOAT + description: 'Evaluations dispatched for processing but incomplete.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_broker_total_unacked + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - uuid: ac1d1422adc248b48ba65268f9a43be8 + name: 'Evaluations waiting' + type: DEPENDENT + key: nomad.server.broker.total_waiting + delay: '0' + description: 'Count of evals waiting to be enqueued.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_broker_total_waiting + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: evaluations + - uuid: de3e13f7635e4058bd2ca12f6f454668 + name: 'RPC eval dequeue time' + type: DEPENDENT + key: nomad.server.client.dequeue + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Eval.Dequeue RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_eval_dequeue_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: ac2a5b69fef546d0924d631a9ed9cffd + name: 'RPC get client allocs time' + type: DEPENDENT + key: nomad.server.client.get_client_allocs + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Node.GetClientAllocs RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_client_get_client_allocs_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: 758f3474636c42378fac78a2f5e3b63b + name: 'RPC list time' + type: DEPENDENT + key: nomad.server.client.list + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Node.List RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_client_list_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: 588bb9b304634852af149d7903d42798 + name: 'RPC update allocations time' + type: DEPENDENT + key: nomad.server.client.update_alloc + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Node.UpdateAlloc RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_client_update_alloc_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: 1e1ce033c99b45a3892df8674deaf1f4 + name: 'RPC update status time' + type: DEPENDENT + key: nomad.server.client.update_status + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Node.UpdateStatus RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_client_update_status_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: c5bd6a645e9f49ba83fe065b2af6248e + name: 'CPU time, rate' + type: DEPENDENT + key: nomad.server.cpu.time + delay: '0' + value_type: FLOAT + units: s + description: 'Total user and system CPU time spent in seconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_cpu_seconds_total + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: cpu + - uuid: dbbee3bb99d347f9a9a5325b4f64a894 + name: 'Monitoring API response' + type: DEPENDENT + key: nomad.server.data.api.response + delay: '0' + value_type: TEXT + trends: '0' + description: 'Monitoring API response message.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var response = Object.keys(JSON.parse(value).header).filter(function (f) { + return f.match(/HTTP\/[\d.]+\s+\d{3}/); + }); + + return response.pop(); + } + catch (error) { + return "HTTP/1.1 408 Request timeout"; + } + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.server.data.get + tags: + - tag: component + value: status + triggers: + - uuid: 9dc8cd0bcbad4ee7a2afe45e33db53a7 + expression: 'find(/HashiCorp Nomad Server by HTTP/nomad.server.data.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0' + name: 'HashiCorp Nomad Server: Monitoring API connection has failed' + event_name: 'HashiCorp Nomad Server: Monitoring API connection has failed. HTTP response code: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+(\d{3})", \1")}. Response message: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+\d{3}\s+(.*)", \1")}' + priority: AVERAGE + description: | + Monitoring API connection has failed. + Ensure that Nomad API URL and the necessary permissions have been defined correctly, check the service state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: b7ba2f4a56b04de298fde77cbf5afb6a + name: 'Telemetry get' + type: HTTP_AGENT + key: nomad.server.data.get + history: '0' + value_type: TEXT + trends: '0' + description: 'Telemetry data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"header":{"HTTP/1.1 408 Request timeout":""}}' + timeout: '{$NOMAD.DATA.TIMEOUT}' + url: '{$NOMAD.SERVER.API.SCHEME}://{HOST.IP}:{$NOMAD.SERVER.API.PORT}/v1/metrics' + query_fields: + - name: format + value: prometheus + status_codes: '' + http_proxy: '{$NOMAD.HTTP.PROXY}' + headers: + - name: X-Nomad-Token + value: '{$NOMAD.TOKEN}' + retrieve_mode: BOTH + output_format: JSON + tags: + - tag: component + value: raw + - uuid: 7241c9923d714970ad950f9b7aa8ab52 + name: 'RPC evaluation acknowledgement time' + type: DEPENDENT + key: nomad.server.eval.ack + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Eval.Ack RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_eval_ack_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: b9085e173cec4ce2b2fa6fd68041695e + name: 'FSM apply plan results time' + type: DEPENDENT + key: nomad.server.fsm.apply_plan_results + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to apply ApplyPlanResults raft entry.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_fsm_apply_plan_results_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fsm + - uuid: 62b19ce1b2bb4fdaacff02d70101a10f + name: 'FSM job registration time' + type: DEPENDENT + key: nomad.server.fsm.register_job + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to apply RegisterJob raft entry.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_fsm_register_job_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fsm + - uuid: 2d0b9f09bfb5480ebd6d6cf96c15278e + name: 'FSM update evaluation time' + type: DEPENDENT + key: nomad.server.fsm.update_eval + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to apply UpdateEval raft entry.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_fsm_update_eval_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fsm + - uuid: 0abce7a087874e58a7da20acb3599535 + name: 'Heartbeats active' + type: DEPENDENT + key: nomad.server.heartbeat.active + delay: '0' + description: | + Number of active heartbeat timers. + Each timer represents a Nomad client connection. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_heartbeat_active + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - uuid: dc95deb3590148a9bc50ea151a0d46b7 + name: 'RPC job allocations time' + type: DEPENDENT + key: nomad.server.job.allocations + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Job.Allocations RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_allocations_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: 11e18e811fe7461181417ca1f5dad915 + name: 'RPC job evaluations time' + type: DEPENDENT + key: nomad.server.job.evaluations + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Job.Evaluations RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_evaluations_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: 0efaac3a59d44ce09d31435ddfa6aada + name: 'RPC get job time' + type: DEPENDENT + key: nomad.server.job.get_job + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Job.GetJob RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_get_job_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: 5ab3191f1f744682bab6d3142a1c39a4 + name: 'Jobs dead' + type: DEPENDENT + key: nomad.server.job_status.dead + delay: '0' + description: 'Number of dead jobs.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_status_dead + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: jobs + triggers: + - uuid: 44dcd52ebf54404e871501a4c4825424 + expression: 'last(/HashiCorp Nomad Server by HTTP/nomad.server.job_status.dead) > 0 and nodata(/HashiCorp Nomad Server by HTTP/nomad.server.job_status.dead,5m) = 0' + name: 'HashiCorp Nomad Server: Dead jobs found' + opdata: 'Current amount: {ITEM.LASTVALUE}' + priority: WARNING + description: | + Jobs with the `Dead` state discovered. + Check the {$NOMAD.SERVER.API.SCHEME}://{HOST.IP}:{$NOMAD.SERVER.API.PORT}/v1/jobs URL for the details. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 39a27315e33549dc88c6cb426a5a05c9 + name: 'Jobs pending' + type: DEPENDENT + key: nomad.server.job_status.pending + delay: '0' + description: 'Number of pending jobs.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_status_pending + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: jobs + - uuid: 97907d8816b14fb69063a55bdea22701 + name: 'Jobs running' + type: DEPENDENT + key: nomad.server.job_status.running + delay: '0' + description: 'Number of running jobs.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_status_running + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: jobs + - uuid: 4be8c941477046dd9dcc549020d687e7 + name: 'Job allocations completed' + type: DEPENDENT + key: nomad.server.job_summary.complete + delay: '0' + description: 'Number of complete allocations for a job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_summary_complete + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: jobs + - uuid: 6f6ad9a70b4e4759bc2e4cc213d697bb + name: 'Job allocations failed' + type: DEPENDENT + key: nomad.server.job_summary.failed + delay: '0' + description: 'Number of failed allocations for a job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_summary_failed + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: jobs + - uuid: 7a267a1b82b24157a19b52e6f285f0ce + name: 'RPC job summary time' + type: DEPENDENT + key: nomad.server.job_summary.get_job_summary + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Job.Summary RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_summary_get_job_summary_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: 0c408dff86604486b0f23efed00f4348 + name: 'Job allocations lost' + type: DEPENDENT + key: nomad.server.job_summary.lost + delay: '0' + description: 'Number of lost allocations for a job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_summary_lost + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: jobs + - uuid: d0de68553b484d2d9311b356a7b5a9e7 + name: 'Job allocations queued' + type: DEPENDENT + key: nomad.server.job_summary.queued + delay: '0' + description: 'Number of queued allocations for a job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_summary_queued + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: jobs + - uuid: 98ab06dce1f84ef5993e8cc793114008 + name: 'Job allocations running' + type: DEPENDENT + key: nomad.server.job_summary.running + delay: '0' + description: 'Number of running allocations for a job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_summary_running + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: jobs + - uuid: e3cc96bd72924bb5bd0334018a5a88be + name: 'Job allocations starting' + type: DEPENDENT + key: nomad.server.job_summary.starting + delay: '0' + description: 'Number of starting allocations for a job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_summary_starting + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: jobs + - uuid: 244a84e136c94a47b1b64b92d08ac20f + name: 'Job allocations unknown' + type: DEPENDENT + key: nomad.server.job_summary.unknown + delay: '0' + description: 'Number of unknown allocations for a job.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_job_summary_unknown + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: jobs + - uuid: 478f45d1095646bca5ffd3a6d923dddf + name: 'Leader barrier time' + type: DEPENDENT + key: nomad.server.leader.barrier + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to establish a raft barrier during leader transition.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_leader_barrier_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: leader + - tag: component + value: raft + - uuid: 8425336f75704a259bc066c795df1516 + name: 'Total reconcile time' + type: DEPENDENT + key: nomad.server.leader.reconcile + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to reconcile all serf peers with state store.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_leader_reconcile_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: leader + - tag: component + value: raft + - uuid: a5b6d36142174dd683e2aec5dd4ee1e9 + name: 'Reconcile peer time' + type: DEPENDENT + key: nomad.server.leader.reconcile_member + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to reconcile a serf peer with state store.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_leader_reconcileMember_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: leader + - tag: component + value: raft + - uuid: af6eda309cc545b2aa65efc0af103a02 + name: 'Gossip time' + type: DEPENDENT + key: nomad.server.memberlist.gossip + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to broadcast gossip messages.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_memberlist_gossip_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: gossip + - uuid: 25372c89439641d09521348033b1e324 + name: Metrics + type: DEPENDENT + key: nomad.server.metrics.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Nomad server metrics in raw format.' + preprocessing: + - type: JSONPATH + parameters: + - $.body + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.data.get + tags: + - tag: component + value: raw + - uuid: 8a003df55bae4bf0a14fefc6f02f28bf + name: 'Namespace list time' + type: DEPENDENT + key: nomad.server.namespace.list_namespace + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Namespace.ListNamespaces.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_namespace_list_namespace_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: namespaces + - uuid: dd8d8b5cdf914002ac58183b667ceb06 + name: 'Plan apply time' + type: DEPENDENT + key: nomad.server.plan.apply + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to apply a plan.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_plan_apply_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: plan + - uuid: d8d69f231d23457e82c6d3941f09cf5d + name: 'Plan evaluate time' + type: DEPENDENT + key: nomad.server.plan.evaluate + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to evaluate a plan.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_plan_evaluate_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: plan + - uuid: ee7b59fd19644bc4813696f8d806955f + name: 'Plan queue' + type: DEPENDENT + key: nomad.server.plan.queue_depth + delay: '0' + value_type: FLOAT + description: 'Count of evals in the plan queue.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_plan_queue_depth + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: plan + - uuid: 9df85708b74d40509d9c9412a15e5ce5 + name: 'RPC plan submit time' + type: DEPENDENT + key: nomad.server.plan.submit + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for Plan.Submit RPC call.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_plan_submit_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: plan + - tag: component + value: rpc + - uuid: 851eea2a548644ba884ca852c2759d90 + name: 'Plan raft index processing time' + type: DEPENDENT + key: nomad.server.plan.wait_for_index + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed that planner waits for the raft index of the plan to be processed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_plan_wait_for_index_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: plan + - uuid: 505ee2804b4e451892103b36cc38abde + name: 'Open file descriptors, max' + type: DEPENDENT + key: nomad.server.process_max_fds + delay: '0' + description: 'Maximum number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_max_fds + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fds + - uuid: cba898eca0c84a84a1ea0309e04b9f84 + name: 'Open file descriptors' + type: DEPENDENT + key: nomad.server.process_open_fds + delay: '0' + description: 'Number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_open_fds + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fds + - uuid: 1dd455d2776f4378a39980cfa8eba33c + name: 'FSM index' + type: DEPENDENT + key: nomad.server.raft.applied_index + delay: '0' + description: 'Current index applied to FSM.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_appliedIndex + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fsm + - uuid: bad74d0dc4b2431fbb5a442bc2fc1236 + name: 'Raft transactions, rate' + type: DEPENDENT + key: nomad.server.raft.apply + delay: '0' + description: 'Number of Raft transactions.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_apply + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: raft + - uuid: 804693ed989b44e3903bcd81159dd51d + name: 'Raft calls blocked, rate' + type: DEPENDENT + key: nomad.server.raft.barrier + delay: '0' + description: 'Count of blocking raft API calls.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_barrier + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: raft + - uuid: f7d1bc6c6a82475dabcdaaec7472fe02 + name: 'BoltDB freelist bytes' + type: DEPENDENT + key: nomad.server.raft.boltdb.freelist_bytes + delay: '0' + units: B + description: 'Number of freelist bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_freelistBytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: b3f246d0991746589f4d0d68653eb4e9 + name: 'BoltDB free page bytes' + type: DEPENDENT + key: nomad.server.raft.boltdb.free_page_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Number of free page bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_freePageBytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: e3d0d6f656f5484f8e8a8ca1195aad59 + name: 'BoltDB free pages' + type: DEPENDENT + key: nomad.server.raft.boltdb.num_free_pages + delay: '0' + description: 'Number of BoltDB free pages.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_numFreePages + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: 73f359bcb02d46a0adb6fdd51284afcf + name: 'BoltDB pending pages' + type: DEPENDENT + key: nomad.server.raft.boltdb.num_pending_pages + delay: '0' + description: 'Number of BoltDB pending pages.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_numPendingPages + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: 08afe7430e3c49e388f0a87c8bbf2ff4 + name: 'BoltDB open read transactions' + type: DEPENDENT + key: nomad.server.raft.boltdb.open_read_txn + delay: '0' + description: 'Number of current open read transactions.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_openReadTxn + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: 36e89e86c9124e868670e9cb7b247899 + name: 'BoltDB read transactions, rate' + type: DEPENDENT + key: nomad.server.raft.boltdb.total_read_txn + delay: '0' + description: 'Count of total read transactions.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_totalReadTxn + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: 2733afd943b346e38c8605259bea038c + name: 'BoltDB cursors' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.cursor_count + delay: '0' + description: 'Count of total database cursors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_cursorCount + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: 1641576e376c4c82a8b1882b4810db4c + name: 'BoltDB nodes, rate' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.node_count + delay: '0' + description: 'Count of total database nodes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_nodeCount + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: f0151f3431254030a3bcd538e8d2068b + name: 'BoltDB node dereferences, rate' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.node_deref + delay: '0' + value_type: FLOAT + description: 'Count of total database node dereferences.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_nodeDeref + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: 27a8a38acfc34e14b3fbb13aa58ad5d4 + name: 'BoltDB page allocations, rate' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.page_alloc + delay: '0' + value_type: FLOAT + description: 'Number of page allocations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_pageAlloc + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: 14a5fc715dad4eacaddb2f277e1f85f6 + name: 'BoltDB pages in use' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.page_count + delay: '0' + description: 'Number of pages in use.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_pageCount + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: dd9729e812614ab59c595b7183a883b0 + name: 'BoltDB rebalance operations, rate' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.rebalance + delay: '0' + value_type: FLOAT + description: 'Count of total rebalance operations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_rebalance + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: d270aa05d1ca4f3d9ee606937f1703cc + name: 'BoltDB rebalance time' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.rebalance_time + delay: '0' + value_type: FLOAT + units: s + description: 'Sample of rebalance operation times.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_rebalanceTime_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: 621478ee2bea482abffd6b8c80df5ee1 + name: 'BoltDB spill operations, rate' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.spill + delay: '0' + description: 'Count of total spill operations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_spill + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: 2ca3e7572bf04b04961107e7d9304887 + name: 'BoltDB spill time' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.spill_time + delay: '0' + value_type: FLOAT + units: s + description: 'Sample of spill operation times.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_spillTime_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: bd14547f789540618db85057eceb70db + name: 'BoltDB split operations, rate' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.split + delay: '0' + description: 'Count of total split operations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_split + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: b13b7b9eb66940c9bf4d14e711ee0279 + name: 'BoltDB write operations, rate' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.write + delay: '0' + description: 'Count of total write operations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_write + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: e9b31f3434aa4df0908a79ff5352a29e + name: 'BoltDB write time' + type: DEPENDENT + key: nomad.server.raft.boltdb.txstats.write_time + delay: '0' + value_type: FLOAT + units: s + description: 'Sample of write operation times.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_boltdb_txstats_writeTime_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: boltdb + - uuid: dce75575b01e4cf8bd84d6a40c74f22b + name: 'Cluster role' + type: DEPENDENT + key: nomad.server.raft.cluster_role + delay: '0' + description: 'Current role in the cluster.' + valuemap: + name: 'Cluster role' + preprocessing: + - type: JSONPATH + parameters: + - $.body.stats.raft.state + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Leader', + 'Follower', + 'Candidate', + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: nomad.server.stats.get + tags: + - tag: component + value: system + triggers: + - uuid: 1bc6ee807acd4532a58b4527f8865c1c + expression: 'change(/HashiCorp Nomad Server by HTTP/nomad.server.raft.cluster_role) <> 0' + name: 'HashiCorp Nomad Server: Cluster role has changed' + event_name: 'HashiCorp Nomad Server: Cluster role has changed to {ITEM.LASTVALUE}' + priority: INFO + description: 'Cluster role has changed.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a994ee525886407486adace82ea5ef90 + name: 'Raft commit logs enqueued' + type: DEPENDENT + key: nomad.server.raft.commit_num_logs + delay: '0' + description: 'Count of logs enqueued.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_commitNumLogs + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: raft + - uuid: 3160d5b81e1540aab3244f1cf6bce95d + name: 'Raft commit time' + type: DEPENDENT + key: nomad.server.raft.commit_time + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to commit writes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_worker_dequeue_eval_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: raft + - uuid: 09f1baf6fc2443f48e01814b939c0749 + name: 'FSM apply time' + type: DEPENDENT + key: nomad.server.raft.fsm.apply + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to apply write to FSM.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_fsm_apply_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fsm + - uuid: 18689de9474f4812ba9ed34d311ad3a1 + name: 'FSM autopilot time' + type: DEPENDENT + key: nomad.server.raft.fsm.autopilot + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to apply Autopilot raft entry.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_fsm_autopilot_sum + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fsm + - uuid: 6846f262148e49288ecb7aa0ad18f7d2 + name: 'FSM enqueue time' + type: DEPENDENT + key: nomad.server.raft.fsm.enqueue + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to enqueue write to FSM.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_fsm_enqueue_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fsm + - uuid: 4e2d0557fc984ed9858316c8409edd0e + name: 'FSM register node time' + type: DEPENDENT + key: nomad.server.raft.fsm.register_node + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to apply RegisterNode raft entry.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_fsm_register_node_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: fsm + - uuid: bb65ca263f3244fc883d9102bbf9bef7 + name: 'Raft last index' + type: DEPENDENT + key: nomad.server.raft.last_index + delay: '0' + description: 'Most recent index seen.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_lastIndex + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: raft + - uuid: bda052f13e3c4dacaafc4ddefbc98036 + name: 'Dispatch log time' + type: DEPENDENT + key: nomad.server.raft.leader.dispatch_log + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed to write log, mark in flight, and start replication.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_leader_dispatchLog_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: leader + - tag: component + value: raft + - uuid: f915e5e162814786943cd4cc85bb7aff + name: 'Logs dispatched' + type: DEPENDENT + key: nomad.server.raft.leader.dispatch_num_logs + delay: '0' + description: 'Count of logs dispatched.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_leader_dispatchNumLogs + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: leader + - tag: component + value: raft + - uuid: 7f9db272307c43e7b87b8a4a4a6eae16 + name: 'Leader last contact' + type: DEPENDENT + key: nomad.server.raft.leader.lastContact + delay: '0' + value_type: FLOAT + units: s + description: | + Time since last contact to leader. + General indicator of Raft latency. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'nomad_raft_leader_lastContact{quantile="0.99"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: STR_REPLACE + parameters: + - NaN + - '0' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: leader + - tag: component + value: raft + triggers: + - uuid: 65c69469e9354e81a632485a74bc711d + expression: 'min(/HashiCorp Nomad Server by HTTP/nomad.server.raft.leader.lastContact,5m) >= {$NOMAD.SERVER.LEADER.LATENCY} and nodata(/HashiCorp Nomad Server by HTTP/nomad.server.raft.leader.lastContact,5m) = 0' + name: 'HashiCorp Nomad Server: Leader last contact timeout exceeded' + event_name: 'HashiCorp Nomad Server: Leader last contact timeout exceeded: over {$NOMAD.SERVER.LEADER.LATENCY} for the last 5 minutes' + priority: WARNING + description: | + The nomad.raft.leader.lastContact metric is a general indicator of Raft latency which can be used to observe how Raft timing is performing and guide infrastructure provisioning. + If this number trends upwards, look at CPU, disk IOPs, and network latency. nomad.raft.leader.lastContact should not get too close to the leader lease timeout of 500ms. + tags: + - tag: scope + value: performance + - uuid: bca59612c439447ebe78ae68e68fd6cb + name: 'Raft peers' + type: DEPENDENT + key: nomad.server.raft.peers + delay: '0' + description: 'Current cluster raft peers amount.' + preprocessing: + - type: JSONPATH + parameters: + - $.body.stats.raft.num_peers + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.stats.get + tags: + - tag: component + value: system + - uuid: 36ff560da62740a0b4657b4afabcf902 + name: 'Raft transaction commit time' + type: DEPENDENT + key: nomad.server.raft.replication.appendEntries + delay: '0' + units: s + description: 'Raft transaction commit time.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_replication_appendEntries_rpc + - function + - avg + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: raft + - uuid: 662cd8712bbe4a4080a540f878b4ec44 + name: 'Heartbeat fails' + type: DEPENDENT + key: nomad.server.raft.transition.heartbeat_timeout + delay: '0' + description: 'Count of failing to heartbeat and starting election.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_raft_transition_heartbeat_timeout + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: raft + - uuid: 3dae4fd461fa4a5abdba717e538b8405 + name: 'Resident memory size' + type: DEPENDENT + key: nomad.server.resident_memory_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Resident memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_resident_memory_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: memory + - uuid: ec2d018e121442be9d3fb350f6572ca6 + name: 'RPC queries, rate' + type: DEPENDENT + key: nomad.server.rpc.query + delay: '0' + description: 'Number of RPC queries.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_rpc_query + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: 406d9bc9db1e44509a77acd11963f406 + name: 'RPC requests, rate' + type: DEPENDENT + key: nomad.server.rpc.request + delay: '0' + description: 'Number of RPC requests being handled.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_rpc_request + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: 0ef3cfaf0e694625bbc3f3a117ff9f06 + name: 'RPC error requests, rate' + type: DEPENDENT + key: nomad.server.rpc.request_error + delay: '0' + description: 'Number of RPC requests being handled that result in an error.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_rpc_request + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: network + - tag: component + value: rpc + - uuid: a0e7b48174de4e569762dc1654d63267 + name: 'Memory used' + type: DEPENDENT + key: nomad.server.runtime.alloc_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Memory utilization in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_runtime_alloc_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: memory + - uuid: 7d8883065c2c494f9c4853afe50d157c + name: 'Objects freed, rate' + type: DEPENDENT + key: nomad.server.runtime.free_count + delay: '0' + value_type: FLOAT + description: 'Count of objects freed from heap by go runtime GC.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_runtime_free_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: runtime + - uuid: 02b0699a706742d1bb557e32ed1b52ea + name: 'GC pause time' + type: DEPENDENT + key: nomad.server.runtime.gc_pause_ns + delay: '0' + value_type: FLOAT + units: s + description: 'Go runtime GC pause times.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_runtime_gc_pause_ns_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: runtime + - uuid: c3fc612a6bec45ee9ffd51d168801974 + name: 'Heap objects' + type: DEPENDENT + key: nomad.server.runtime.heap_objects + delay: '0' + description: | + Number of objects on the heap. + General memory pressure indicator. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_runtime_heap_objects + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: memory + - uuid: 9b1bcd0020b5413e920ce12af6124687 + name: Goroutines + type: DEPENDENT + key: nomad.server.runtime.num_goroutines + delay: '0' + description: 'Number of goroutines and general load pressure indicator.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_runtime_num_goroutines + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: memory + - uuid: 71256d39cf844c22be8d25a9170e61f2 + name: 'GC metadata size' + type: DEPENDENT + key: nomad.server.runtime.sys_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Go runtime GC metadata size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_runtime_sys_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: runtime + - uuid: 733b18dd02d7404bb8cf4c7447a374ae + name: 'GC runs' + type: DEPENDENT + key: nomad.server.runtime.total_gc_runs + delay: '0' + description: 'Count of go runtime GC runs.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_runtime_total_gc_runs + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: runtime + - uuid: c7f327a390884c928ebf228d8ebb3a4c + name: 'Allocation reschedule attempts' + type: DEPENDENT + key: nomad.server.scheduler.allocs.rescheduled.attempted + delay: '0' + description: 'Count of attempts to reschedule an allocation.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_scheduler_allocs_reschedule_attempted + - function + - sum + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: allocations + - uuid: 8293b40a695b4b24ab9b6576a0f9a4d8 + name: 'Memberlist events' + type: DEPENDENT + key: nomad.server.serf.queue.event + delay: '0' + value_type: FLOAT + description: 'Count of memberlist events received.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_serf_queue_Event_sum + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: memberlist + - uuid: 8aacc54e455b49b0ab0cfed4559829f7 + name: 'Memberlist changes' + type: DEPENDENT + key: nomad.server.serf.queue.intent + delay: '0' + value_type: FLOAT + description: 'Count of memberlist changes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_serf_queue_Intent_sum + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: memberlist + - uuid: 1c5f383a89f74934a6cb211bfd586856 + name: 'Memberlist queries' + type: DEPENDENT + key: nomad.server.serf.queue.queries + delay: '0' + value_type: FLOAT + description: 'Count of memberlist queries.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_serf_queue_Query_sum + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: memberlist + - uuid: e645f371b4ae48e2b2b782f4b0d0fae4 + name: 'Snapshot index' + type: DEPENDENT + key: nomad.server.state.snapshot.index + delay: '0' + description: 'Current snapshot index.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_state_snapshotIndex + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: state + - uuid: 02ba826868414a16909f13b98cc4c445 + name: 'Internal stats API response' + type: DEPENDENT + key: nomad.server.stats.api.response + delay: '0' + value_type: TEXT + trends: '0' + description: 'Internal stats API response message.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var response = Object.keys(JSON.parse(value).header).filter(function (f) { + return f.match(/HTTP\/[\d.]+\s+\d{3}/); + }); + + return response.pop(); + } + catch (error) { + return "HTTP/1.1 408 Request timeout"; + } + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.server.stats.get + tags: + - tag: component + value: status + triggers: + - uuid: b60dd78bd2d24c22afec63a8b420bcd6 + expression: 'find(/HashiCorp Nomad Server by HTTP/nomad.server.stats.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0' + name: 'HashiCorp Nomad Server: Internal stats API connection has failed' + event_name: 'HashiCorp Nomad Server: Internal stats API connection has failed. HTTP response code: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+(\d{3})", \1")}. Response message: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+\d{3}\s+(.*)", \1")}' + priority: AVERAGE + description: | + Internal stats API connection has failed. + Ensure that Nomad API URL and the necessary permissions have been defined correctly, check the service state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + dependencies: + - name: 'HashiCorp Nomad Server: Monitoring API connection has failed' + expression: 'find(/HashiCorp Nomad Server by HTTP/nomad.server.data.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0' + tags: + - tag: scope + value: availability + - uuid: f8d3a680e6f94250ab0a1ef8169889e3 + name: 'Internal stats get' + type: HTTP_AGENT + key: nomad.server.stats.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + description: 'Internal stats data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"header":{"HTTP/1.1 408 Request timeout":""}}' + timeout: '{$NOMAD.DATA.TIMEOUT}' + url: '{$NOMAD.SERVER.API.SCHEME}://{HOST.IP}:{$NOMAD.SERVER.API.PORT}/v1/agent/self' + query_fields: + - name: filter + value: 'ID == "{HOST.HOST}"' + status_codes: '' + http_proxy: '{$NOMAD.HTTP.PROXY}' + headers: + - name: X-Nomad-Token + value: '{$NOMAD.TOKEN}' + retrieve_mode: BOTH + output_format: JSON + tags: + - tag: component + value: raw + - uuid: 9593fe46e0d941f2b4ddef96baa39b0e + name: 'Vault tokens revoked' + type: DEPENDENT + key: nomad.server.vault.distributed_tokens_revoked + delay: '0' + value_type: FLOAT + description: 'Count of revoked tokens.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_vault_distributed_tokens_revoking + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: vault + - uuid: 40c41426ab96476c84647a18511af6e8 + name: 'Vault token last renewal' + type: DEPENDENT + key: nomad.server.vault.token_last_renewal + delay: '0' + value_type: FLOAT + units: s + description: 'Time since last successful Vault token renewal.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_vault_token_last_renewal + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: vault + - uuid: f62d8cf1e4b94c9b8796bd30fa799f7a + name: 'Vault token next renewal' + type: DEPENDENT + key: nomad.server.vault.token_next_renewal + delay: '0' + value_type: FLOAT + units: s + description: 'Time until next Vault token renewal attempt.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_vault_token_next_renewal + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: vault + - uuid: c619c340887b43e1a4db750e74f1d4aa + name: 'Vault token TTL' + type: DEPENDENT + key: nomad.server.vault.token_ttl + delay: '0' + value_type: FLOAT + units: s + description: 'Time to live for Vault token.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_vault_token_ttl + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: vault + - uuid: 921fc50044f94aceaa9d0789be854496 + name: 'Nomad server version' + type: DEPENDENT + key: nomad.server.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Nomad server version.' + preprocessing: + - type: JSONPATH + parameters: + - $.body.config.Version.Version + master_item: + key: nomad.server.stats.get + tags: + - tag: component + value: system + triggers: + - uuid: 3c7dfd5ec21144b6b58c603d60142200 + expression: 'change(/HashiCorp Nomad Server by HTTP/nomad.server.version)<>0' + name: 'HashiCorp Nomad Server: Nomad server version has changed' + event_name: 'HashiCorp Nomad Server: Nomad server version has changed to {ITEM.LASTVALUE}' + priority: INFO + description: 'Nomad server version has changed.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: d769576e16df4aed86004498055d5a94 + name: 'Virtual memory size' + type: DEPENDENT + key: nomad.server.virtual_memory_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Virtual memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_virtual_memory_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: memory + - uuid: d1addab9628140b09adb60c2820c1829 + name: 'Worker evaluation create time' + type: DEPENDENT + key: nomad.server.worker.create_eval + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for worker to create an eval.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_worker_dequeue_eval_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: workers + - uuid: 0875726948384b9696158d4db2b64691 + name: 'Worker evaluation dequeue time' + type: DEPENDENT + key: nomad.server.worker.dequeue_eval + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for worker to dequeue an eval.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_worker_dequeue_eval_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: workers + - uuid: 5bc2cf7713274e1ca8997415f26f7087 + name: 'Worker invoke scheduler time' + type: DEPENDENT + key: nomad.server.worker.invoke_scheduler_service + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for worker to invoke the scheduler.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_worker_invoke_scheduler_service_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: workers + - uuid: c21aca97ba274913860b28a1fd06abec + name: 'Worker acknowledgement send time' + type: DEPENDENT + key: nomad.server.worker.send_ack + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for worker to send acknowledgement.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_worker_send_ack_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: workers + - uuid: 3c7b49c3f60e4d69981f6dd3569e49e6 + name: 'Worker submit plan time' + type: DEPENDENT + key: nomad.server.worker.submit_plan + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for worker to submit plan.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_worker_submit_plan_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: workers + - uuid: f5cd72ca250f402f9ddd112fb858d1f7 + name: 'Worker update evaluation time' + type: DEPENDENT + key: nomad.server.worker.update_eval + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed for worker to submit updated eval.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_worker_update_eval_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: workers + - uuid: ae2e69196ef7416481e9904d9ee8862b + name: 'Worker log replication time' + type: DEPENDENT + key: nomad.server.worker.wait_for_index + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed that worker waits for the raft index of the eval to be processed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - nomad_nomad_worker_wait_for_index_sum + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: nomad.server.metrics.get + tags: + - tag: component + value: workers + tags: + - tag: class + value: software + - tag: target + value: nomad-server + macros: + - macro: '{$NOMAD.API.RESPONSE.SUCCESS}' + value: '200' + description: 'HTTP API successful response code. Availability triggers threshold. Change, if needed.' + - macro: '{$NOMAD.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for an API.' + - macro: '{$NOMAD.HTTP.PROXY}' + description: 'Sets the HTTP proxy for HTTP agent item. If this parameter is empty, then no proxy is used.' + - macro: '{$NOMAD.OPEN.FDS.MAX}' + value: '90' + description: 'Maximum percentage of used file descriptors.' + - macro: '{$NOMAD.REDUNDANCY.MIN}' + value: '1' + description: | + Amount of redundant servers to keep the cluster safe. + Default value - '1' for the 3-nodes cluster. + Change if needed. + - macro: '{$NOMAD.SERVER.API.PORT}' + value: '4646' + description: 'Nomad SERVER API port.' + - macro: '{$NOMAD.SERVER.API.SCHEME}' + value: http + description: 'Nomad SERVER API scheme.' + - macro: '{$NOMAD.SERVER.LEADER.LATENCY}' + value: 0.3s + description: 'Leader last contact latency threshold.' + - macro: '{$NOMAD.SERVER.RPC.PORT}' + value: '4647' + description: 'Nomad RPC service port.' + - macro: '{$NOMAD.SERVER.SERF.PORT}' + value: '4648' + description: 'Nomad serf service port.' + - macro: '{$NOMAD.TOKEN}' + value: '' + description: 'Nomad authentication token.' + dashboards: + - uuid: c721ccf33a6f412e994e0ef8c9dc81b5 + name: BoltDB + pages: + - name: BoltDB + widgets: + - type: item + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.cursor_count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + name: 'HashiCorp Nomad Server: Raft timers' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + name: 'HashiCorp Nomad Server: BoltDB operations' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + name: 'HashiCorp Nomad Server: BoltDB pages' + - type: STRING + name: reference + value: AAAAD + - type: item + x: '24' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.node_count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '48' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.node_deref + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - uuid: 5b6b8811398f48ebb4abb73620320211 + name: Cluster + pages: + - name: Cluster + widgets: + - type: item + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.cluster_role + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '30' + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + name: 'HashiCorp Nomad Server: Raft timers' + - type: STRING + name: reference + value: AAAAA + - type: item + 'y': '10' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.leader.dispatch_num_logs + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '18' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.autopilot.state + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '30' + - type: item + x: '24' + 'y': '10' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.apply + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '36' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.autopilot.failure_tolerance + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '48' + 'y': '10' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.applied_index + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '54' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.fsm.autopilot + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - uuid: c7f515dd33ee4045b96ffc6d83cec12a + name: Jobs + pages: + - name: Jobs + widgets: + - type: item + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.job_status.running + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + 'y': '5' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.job_summary.running + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + 'y': '10' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.job_summary.queued + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + 'y': '15' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.broker.total_ready + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + 'y': '20' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.blocked_evals.total_blocked + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '18' + 'y': '10' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.job_summary.lost + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '18' + 'y': '20' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.blocked_evals.total_quota_limit + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '24' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.job_status.pending + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '24' + 'y': '5' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.job_summary.starting + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '24' + 'y': '15' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.broker.total_pending + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '36' + 'y': '10' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.job_summary.failed + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '36' + 'y': '20' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.blocked_evals.total_escaped + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '48' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.job_status.dead + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '48' + 'y': '5' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.job_summary.complete + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '48' + 'y': '15' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.broker.total_waiting + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '54' + 'y': '10' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.job_summary.unknown + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + x: '54' + 'y': '20' + width: '18' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.broker.total_unacked + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + valuemaps: + - uuid: 9898b464447240919cf8e25016be687f + name: 'Autopilot state' + mappings: + - value: '0' + newvalue: Unhealthy + - value: '1' + newvalue: Healthy + - uuid: fe32599dc75c48f6ab0887652ceb728c + name: 'Cluster role' + mappings: + - value: '0' + newvalue: Leader + - value: '1' + newvalue: Follower + - value: '2' + newvalue: Candidate + - uuid: b90612059a164f3fa0c7ab871afa0c59 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 9b6d779864144e4e9e5e9924658d763e + expression: 'min(/HashiCorp Nomad Server by HTTP/nomad.server.process_open_fds,5m)/last(/HashiCorp Nomad Server by HTTP/nomad.server.process_max_fds)*100>{$NOMAD.OPEN.FDS.MAX}' + name: 'HashiCorp Nomad Server: Current number of open files is too high' + event_name: 'HashiCorp Nomad Server: Current number of open files is too high (over {$NOMAD.OPEN.FDS.MAX}% for 5m)' + priority: WARNING + description: 'Heavy file descriptor usage (i.e., near the process file descriptor limit) indicates a potential file descriptor exhaustion issue.' + tags: + - tag: scope + value: capacity + graphs: + - uuid: 5028c6df64d3442f8fda2bb1fbc5f6e9 + name: 'HashiCorp Nomad Server: BoltDB operations' + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.rebalance + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.spill + - sortorder: '2' + color: 00611C + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.split + - sortorder: '3' + color: F7941D + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.write + - uuid: 71832cf8ab4c4607985719e19646fcc7 + name: 'HashiCorp Nomad Server: BoltDB pages' + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.num_free_pages + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.page_count + - sortorder: '2' + color: 00611C + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.num_pending_pages + - sortorder: '3' + color: F7941D + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.page_alloc + - uuid: cc4f2fccc25840f0ba2049554c360080 + name: 'HashiCorp Nomad Server: BoltDB timers' + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.rebalance_time + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.spill_time + - sortorder: '2' + color: 00611C + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.boltdb.txstats.write_time + - uuid: fb8cbf7d131445f6ade454b7b7e2e748 + name: 'HashiCorp Nomad Server: Raft timers' + graph_items: + - color: 199C0D + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.leader.dispatch_log + - sortorder: '1' + color: F63100 + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.commit_time + - sortorder: '2' + color: 00611C + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.replication.appendEntries + - sortorder: '3' + color: F7941D + item: + host: 'HashiCorp Nomad Server by HTTP' + key: nomad.server.raft.fsm.apply diff --git a/HashiCorp_Nomad_by_HTTP.yaml b/HashiCorp_Nomad_by_HTTP.yaml new file mode 100644 index 0000000..a13b841 --- /dev/null +++ b/HashiCorp_Nomad_by_HTTP.yaml @@ -0,0 +1,607 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: f74adf26d9ab44ada318002d31fd2881 + template: 'HashiCorp Nomad by HTTP' + name: 'HashiCorp Nomad by HTTP' + description: | + Discover HashiCorp Nomad servers and clients automatically. + + Don't forget to change macro {$NOMAD.ENDPOINT.API.URL}, {$NOMAD.TOKEN} values. + + You can discuss this template or leave feedback on our forum: https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 50bf00cc5c9f41c887add07d0bba3cc1 + name: 'Client nodes API response' + type: DEPENDENT + key: nomad.client.nodes.api.response + delay: '0' + value_type: TEXT + trends: '0' + description: 'Client nodes API response message.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var response = Object.keys(JSON.parse(value).header).filter(function (f) { + return f.match(/HTTP\/[\d.]+\s+\d{3}/); + }); + + return response.pop(); + } + catch (error) { + return "HTTP/1.1 408 Request timeout"; + } + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.client.nodes.get + tags: + - tag: component + value: status + triggers: + - uuid: f2e1cbbf808946ca902c1f378747e936 + expression: 'find(/HashiCorp Nomad by HTTP/nomad.client.nodes.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0' + name: 'HashiCorp Nomad: Client nodes API connection has failed' + event_name: 'HashiCorp Nomad: Client nodes API connection has failed. HTTP response code: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+(\d{3})", \1")}. Response message: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+\d{3}\s+(.*)", \1")}' + priority: AVERAGE + description: | + Client nodes API connection has failed. + Ensure that Nomad API URL and the necessary permissions have been defined correctly, check the service state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 99d8cd0768094bef93995e4baa475186 + name: 'Nomad clients get' + type: HTTP_AGENT + key: nomad.client.nodes.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + description: 'Nomad clients data in raw format.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"header":{"HTTP/1.1 408 Request timeout":""}}' + timeout: '{$NOMAD.DATA.TIMEOUT}' + url: '{$NOMAD.ENDPOINT.API.URL}/v1/nodes' + query_fields: + - name: os + value: 'true' + status_codes: '' + http_proxy: '{$NOMAD.HTTP.PROXY}' + headers: + - name: X-Nomad-Token + value: '{$NOMAD.TOKEN}' + retrieve_mode: BOTH + output_format: JSON + tags: + - tag: component + value: raw + - uuid: 7a46e18358e641cc941b306de6eb5dc4 + name: 'Nomad clients count' + type: DEPENDENT + key: nomad.clients.count + delay: '0' + description: 'Nomad clients count.' + preprocessing: + - type: JSONPATH + parameters: + - '$.body[?(@.Name)].length()' + master_item: + key: nomad.client.nodes.get + tags: + - tag: component + value: environment + - uuid: e848e135a5574931accf114fcafb89d7 + name: Region + type: DEPENDENT + key: nomad.region + delay: '0' + value_type: CHAR + trends: '0' + description: 'Current cluster region.' + preprocessing: + - type: JSONPATH + parameters: + - $..region.first() + master_item: + key: nomad.server.nodes.get + tags: + - tag: component + value: environment + - uuid: 53a0c689f27547ccbcb0a57c736a5027 + name: 'Server-related APIs response' + type: DEPENDENT + key: nomad.server.api.response + delay: '0' + value_type: TEXT + trends: '0' + description: 'Server-related (`operator/raft/configuration`, `agent/members`) APIs error response message.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + error_handler_params: 'HTTP/1.1 200 OK' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nomad.server.nodes.get + triggers: + - uuid: 1560c32cb7de4fc8a58cf537c7958205 + expression: 'find(/HashiCorp Nomad by HTTP/nomad.server.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0' + name: 'HashiCorp Nomad: Server-related API connection has failed' + event_name: 'HashiCorp Nomad: Server-related API connection has failed. HTTP response code: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+(\d{3})", \1")}. Response message: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+\d{3}\s+(.*)", \1")}' + priority: AVERAGE + description: | + Server-related API connection has failed. + Ensure that Nomad API URL and the necessary permissions have been defined correctly, check the service state and network connectivity between Nomad and Zabbix. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 254354aa21764751bf7e1961e37de7ae + name: 'Nomad servers get' + type: SCRIPT + key: nomad.server.nodes.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Nomad = { + setParams: function (params) { + ['api_endpoint'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + }); + + Nomad.params = params; + if (typeof Nomad.params.api_endpoint === 'string' && !Nomad.params.api_endpoint.endsWith('/')) { + Nomad.params.api_endpoint += '/'; + } + + Nomad.tls = new CTlsConfig(params.tls_verify); + Nomad.tls.checkURL(Nomad.params.api_endpoint); + }, + + request: function (query) { + var response, + request = new HttpRequest(Nomad.tls.options), + url = Nomad.params.api_endpoint + query; + + request.addHeader('Content-Type: application/json'); + request.addHeader('X-Nomad-Token: ' + Nomad.params.token); + if (Nomad.params.http_proxy) { + request.setProxy(Nomad.params.http_proxy) + Zabbix.log(4, '[ Nomad ] Using http proxy: ' + Nomad.params.http_proxy); + } + + Zabbix.log(4, '[ Nomad ] Sending request: ' + url); + response = request.get(url); + + Zabbix.log(4, '[ Nomad ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Nomad agent API.'; + } + } + + return { + status: request.getStatus(), + response: response + }; + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getIds: function () { + var result = this.request('v1/operator/raft/configuration'); + + if (typeof result.response !== 'object' || result.status != 200) { + throw 'Cannot get servers list from Nomad agent API.'; + } + + return this.getField(result, 'response.Servers') + .map(function (srv) { + return srv['ID']; + }); + }, + + getServers: function () { + var ids = this.getIds(); + result = Nomad.request('v1/agent/members'); + + if (typeof result.response !== 'object' || result.status != 200) { + throw 'Cannot get servers list from Nomad agent API.'; + } + + return this.getField(result,'response.Members').filter(function (s) { + return ids.indexOf(s.Tags.id) >= 0; + }); + + }, + }; + + try { + Nomad.setParams(JSON.parse(value)); + + var servers = Nomad.getServers(); + + return JSON.stringify(servers); + + } + catch (error) { + error += ((String(error).endsWith('.')) ? '' : '.'); + Zabbix.log(3, '[ Nomad ] ERROR: ' + error); + + return JSON.stringify({ error: error + ' Check debug log for more information.' }); + } + description: 'Nomad servers data in raw format.' + timeout: '{$NOMAD.DATA.TIMEOUT}' + parameters: + - name: api_endpoint + value: '{$NOMAD.ENDPOINT.API.URL}' + - name: http_proxy + value: '{$NOMAD.HTTP.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"HashiCorp Nomad"}' + - name: token + value: '{$NOMAD.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 904e226008324cb8aa11f716e0420b51 + name: 'Nomad servers count' + type: DEPENDENT + key: nomad.servers.count + delay: '0' + description: 'Nomad servers count.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Name)].length()' + master_item: + key: nomad.server.nodes.get + tags: + - tag: component + value: environment + discovery_rules: + - uuid: 0ba167e5638344ab842224df5b8909e1 + name: 'Clients discovery' + type: DEPENDENT + key: nomad.clients.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CLIENT.DC}' + value: '{$NOMAD.CLIENT.DC.MATCHES}' + formulaid: A + - macro: '{#CLIENT.DC}' + value: '{$NOMAD.CLIENT.DC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#CLIENT.NAME}' + value: '{$NOMAD.CLIENT.NAME.MATCHES}' + formulaid: C + - macro: '{#CLIENT.NAME}' + value: '{$NOMAD.CLIENT.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#CLIENT.SCHEDULE.ELIGIBILITY}' + value: '{$NOMAD.CLIENT.SCHEDULE.ELIGIBILITY.MATCHES}' + formulaid: E + - macro: '{#CLIENT.SCHEDULE.ELIGIBILITY}' + value: '{$NOMAD.CLIENT.SCHEDULE.ELIGIBILITY.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Client nodes discovery.' + host_prototypes: + - uuid: 8284dcf3055749d3b27720526c665e34 + host: '{#CLIENT.ID}' + name: '{#CLIENT.NAME}-client' + group_links: + - group: + name: Applications + templates: + - name: 'HashiCorp Nomad Client by HTTP' + tags: + - tag: class + value: '{#CLIENT.CLASS}' + - tag: dc + value: '{#CLIENT.DC}' + - tag: drained + value: '{#CLIENT.DRAIN.STATE}' + - tag: os + value: '{#CLIENT.OS}' + - tag: scheduling + value: '{#CLIENT.SCHEDULE.ELIGIBILITY}' + - tag: service + value: nomad-client + - tag: version + value: '{#CLIENT.VERSION}' + custom_interfaces: 'YES' + interfaces: + - ip: '{#CLIENT.IP}' + master_item: + key: nomad.client.nodes.get + lld_macro_paths: + - lld_macro: '{#CLIENT.CLASS}' + path: $.NodeClass + - lld_macro: '{#CLIENT.DC}' + path: $.Datacenter + - lld_macro: '{#CLIENT.DRAIN.STATE}' + path: $.Drain + - lld_macro: '{#CLIENT.ID}' + path: $.ID + - lld_macro: '{#CLIENT.IP}' + path: $.Address + - lld_macro: '{#CLIENT.NAME}' + path: $.Name + - lld_macro: '{#CLIENT.OS}' + path: '$.Attributes[''os.name'']' + - lld_macro: '{#CLIENT.SCHEDULE.ELIGIBILITY}' + path: $.SchedulingEligibility + - lld_macro: '{#CLIENT.VERSION}' + path: $.Version + preprocessing: + - type: JSONPATH + parameters: + - $.body + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 202ee1d0060d48b09a48fe2039d3b081 + name: 'Servers discovery' + type: DEPENDENT + key: nomad.servers.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SERVER.DC}' + value: '{$NOMAD.SERVER.DC.MATCHES}' + formulaid: A + - macro: '{#SERVER.DC}' + value: '{$NOMAD.SERVER.DC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SERVER.NAME}' + value: '{$NOMAD.SERVER.NAME.MATCHES}' + formulaid: C + - macro: '{#SERVER.NAME}' + value: '{$NOMAD.SERVER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Server nodes discovery.' + host_prototypes: + - uuid: addb1ce7995f44089a13128052171445 + host: '{#SERVER.ID}' + name: '{#SERVER.NAME}' + group_links: + - group: + name: Applications + templates: + - name: 'HashiCorp Nomad Server by HTTP' + tags: + - tag: dc + value: '{#SERVER.DC}' + - tag: region + value: '{#SERVER.REGION}' + - tag: role + value: '{#SERVER.ROLE}' + - tag: service + value: nomad-server + - tag: version + value: '{#SERVER.VERSION}' + custom_interfaces: 'YES' + interfaces: + - ip: '{#SERVER.IP}' + master_item: + key: nomad.server.nodes.get + lld_macro_paths: + - lld_macro: '{#SERVER.DC}' + path: $.Tags.dc + - lld_macro: '{#SERVER.ID}' + path: $.Tags.id + - lld_macro: '{#SERVER.IP}' + path: $.Addr + - lld_macro: '{#SERVER.NAME}' + path: $.Name + - lld_macro: '{#SERVER.REGION}' + path: $.Tags.region + - lld_macro: '{#SERVER.ROLE}' + path: $.Tags.role + - lld_macro: '{#SERVER.VERSION}' + path: $.Tags.build + preprocessing: + - type: CHECK_JSON_ERROR + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: nomad + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "HashiCorp Nomad", e.g. {$HTTP.TLS.VERIFY:"HashiCorp Nomad"}.' + - macro: '{$NOMAD.API.RESPONSE.SUCCESS}' + value: '200' + description: 'HTTP API successful response code. Availability triggers threshold. Change, if needed.' + - macro: '{$NOMAD.CLIENT.DC.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad clients by datacenter belonging.' + - macro: '{$NOMAD.CLIENT.DC.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad clients by datacenter belonging.' + - macro: '{$NOMAD.CLIENT.NAME.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad clients by name.' + - macro: '{$NOMAD.CLIENT.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad clients by name.' + - macro: '{$NOMAD.CLIENT.SCHEDULE.ELIGIBILITY.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad clients by scheduling eligibility.' + - macro: '{$NOMAD.CLIENT.SCHEDULE.ELIGIBILITY.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad clients by scheduling eligibility.' + - macro: '{$NOMAD.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for an API.' + - macro: '{$NOMAD.ENDPOINT.API.URL}' + value: 'http://localhost:4646' + description: 'API endpoint URL for one of the Nomad cluster members.' + - macro: '{$NOMAD.HTTP.PROXY}' + description: 'Sets the HTTP proxy for script and HTTP agent items. If this parameter is empty, then no proxy is used.' + - macro: '{$NOMAD.SERVER.DC.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad servers by datacenter belonging.' + - macro: '{$NOMAD.SERVER.DC.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad servers by datacenter belonging.' + - macro: '{$NOMAD.SERVER.NAME.MATCHES}' + value: '.*' + description: 'The filter to include HashiCorp Nomad servers by name.' + - macro: '{$NOMAD.SERVER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude HashiCorp Nomad servers by name.' + - macro: '{$NOMAD.TOKEN}' + value: '' + description: 'Nomad authentication token.' + dashboards: + - uuid: 0b1cb124081f4cf1af2e35245aeb415f + name: 'Region resources' + pages: + - name: 'Region resources' + widgets: + - type: item + name: Region + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad by HTTP' + key: nomad.region + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + name: Servers + x: '24' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad by HTTP' + key: nomad.servers.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + name: Clients + x: '48' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'HashiCorp Nomad by HTTP' + key: nomad.clients.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' diff --git a/HashiCorp_Vault_by_HTTP.yaml b/HashiCorp_Vault_by_HTTP.yaml new file mode 100644 index 0000000..dc59ed1 --- /dev/null +++ b/HashiCorp_Vault_by_HTTP.yaml @@ -0,0 +1,2665 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 2f82248e411340429d390e8389850401 + template: 'HashiCorp Vault by HTTP' + name: 'HashiCorp Vault by HTTP' + description: | + Get HashiCorp Vault metrics from Vault API HTTP Prometheus metrics endpoint. + + Some metrics may not be collected depending on your Vault instance version and configuration. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Applications + items: + - uuid: cd948f4219164c77a17b56f1b01767d0 + name: 'Check mountpoint discovery' + type: DEPENDENT + key: vault.check_mountpoint_discovery + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^vault_rollback_attempt_(?:.+?)_count$"}' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + var name, + output = []; + + JSON.parse(value).forEach(function (v) { + if (name = v.name.match(/^vault_(rollback_attempt|route_rollback)_(.+?)_count$/)) { + output.push( + { + '{#MOUNTPOINT}': name[2].replace(/_/g, '/'), + '{#PATTERN_C}': 'vault_' + name[1] + '_' + name[2] + '_count', + '{#PATTERN_Q}': 'vault_' + name[1] + '_' + name[2] + } + ); + } + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: discovery + - tag: component + value: mountpoint + - uuid: 940cacdb967c40a1b9fba1c143c8589b + name: 'Check replication discovery' + type: DEPENDENT + key: vault.check_replication_discovery + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^replication_(?:.+)$"}' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value !== "[]" ? [{''{#SINGLETON}'': ''''}] : []);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: discovery + - tag: component + value: replication + - uuid: f9c8f0ec3a5640af8464f69d1cebbd42 + name: 'Check storage discovery' + type: DEPENDENT + key: vault.check_storage_discovery + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^vault_(?:.+)_(?:get|put|list|delete)_count$"}' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + var name, + output = []; + + JSON.parse(value).forEach(function (v) { + if (name = v.name.match(/^vault_((?!barrier).+?)_(get|put|list|delete)_count$/)) { + output.push( + { + '{#STORAGE}': name[1], + '{#OPERATION}': name[2].toUpperCase(), + '{#PATTERN_C}': 'vault_' + name[1] + '_' + name[2] + '_count', + '{#PATTERN_Q}': 'vault_' + name[1] + '_' + name[2] + } + ); + } + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: discovery + - tag: component + value: storage + - uuid: febb5558b1944187a0ac6e87ed153267 + name: 'Check WAL discovery' + type: DEPENDENT + key: vault.check_wal_discovery + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^vault_wal_(?:.+)$"}' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value !== "[]" ? [{''{#SINGLETON}'': ''''}] : []);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: discovery + - tag: component + value: wal + - uuid: 9607f909cfed4515bed2e0ea16749e0d + name: 'Clear metrics' + type: DEPENDENT + key: vault.clear_metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: CHECK_JSON_ERROR + parameters: + - $.errors + error_handler: DISCARD_VALUE + master_item: + key: vault.get_metrics + tags: + - tag: component + value: metrics + - tag: component + value: raw + - uuid: a78063c1186540fb88d3b958b14250bf + name: 'Get health' + type: HTTP_AGENT + key: vault.get_health + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"healthcheck": 0}' + url: '{$VAULT.API.SCHEME}://{$VAULT.HOST}:{$VAULT.API.PORT}/v1/sys/health' + status_codes: '200,429,472,473,503,501' + headers: + - name: X-Vault-Token + value: '{$VAULT.TOKEN}' + tags: + - tag: component + value: health + - tag: component + value: raw + - uuid: f92c90b99edc42d9b170d775c714fa0a + name: 'Get leader' + type: HTTP_AGENT + key: vault.get_leader + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + url: '{$VAULT.API.SCHEME}://{$VAULT.HOST}:{$VAULT.API.PORT}/v1/sys/leader' + headers: + - name: X-Vault-Token + value: '{$VAULT.TOKEN}' + tags: + - tag: component + value: leader + - tag: component + value: raw + - uuid: 4ccc4256252f4345a264db340f4ddbf5 + name: 'Get metrics' + type: HTTP_AGENT + key: vault.get_metrics + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + url: '{$VAULT.API.SCHEME}://{$VAULT.HOST}:{$VAULT.API.PORT}/v1/sys/metrics?format=prometheus' + status_codes: '200,503,403' + headers: + - name: X-Vault-Token + value: '{$VAULT.TOKEN}' + tags: + - tag: component + value: metrics + - tag: component + value: raw + - uuid: cf264b78e4c44d49a81eac141a86d011 + name: 'Get metrics error' + type: DEPENDENT + key: vault.get_metrics.error + delay: '0' + value_type: CHAR + trends: '0' + description: 'Get metrics error.' + preprocessing: + - type: JSONPATH + parameters: + - '$.errors[0]' + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_metrics + tags: + - tag: component + value: health + - tag: component + value: metrics + triggers: + - uuid: a43a4139d225461289d16b7a78002cb0 + expression: 'length(last(/HashiCorp Vault by HTTP/vault.get_metrics.error))>0' + name: 'HashiCorp Vault: Failed to get metrics' + event_name: 'HashiCorp Vault: Failed to get metrics (error: {ITEM.VALUE})' + priority: WARNING + dependencies: + - name: 'HashiCorp Vault: Vault server is sealed' + expression: 'last(/HashiCorp Vault by HTTP/vault.health.sealed)=1' + tags: + - tag: scope + value: availability + - uuid: e8cb015d45ad4e3b9f87d3cbbae3a980 + name: 'Get tokens' + type: SCRIPT + key: vault.get_tokens + delay: 15m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value); + + params['url'] = params.scheme + '://' + + params.host + ':' + + params.port + '/v1/auth/token/lookup-accessor'; + + var tls = new CTlsConfig(params.tls_verify); + tls.checkURL(params.url); + + var request = new HttpRequest(tls.options), + output = []; + + request.addHeader('X-Vault-Token: ' + params.token); + + params.accessors.trim().split(/\x20+/).forEach(function (accessor) { + if (!accessor) { + return; + } + + var response, + data = {}, + error_msg = ''; + + try { + response = request.post(params.url, JSON.stringify({ accessor: accessor })); + Zabbix.log(4, '[ Vault API ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Vault API. Check debug log for more information.'; + } + } + + if (request.getStatus() !== 200) { + throw response.errors && response.errors[0] || JSON.stringify(response); + } + + if (typeof response !== 'object' || typeof response.data === 'undefined') { + throw 'Cannot lookup token from Vault API. Check debug log for more information.'; + } + + data = response.data; + } + catch (error) { + error_msg = error; + } + + output.push({ + 'accessor': accessor, + 'token_name': data.display_name || 'null', + 'ttl': data.ttl || 0, + 'has_ttl': !!data.expire_time, + 'error': error_msg.toString() + }); + }); + + return JSON.stringify(output); + description: 'Get information about tokens via their accessors. Accessors are defined in the macro "{$VAULT.TOKEN.ACCESSORS}".' + parameters: + - name: accessors + value: '{$VAULT.TOKEN.ACCESSORS}' + - name: host + value: '{$VAULT.HOST}' + - name: port + value: '{$VAULT.API.PORT}' + - name: scheme + value: '{$VAULT.API.SCHEME}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"HashiCorp Vault"}' + - name: token + value: '{$VAULT.TOKEN}' + tags: + - tag: component + value: raw + - tag: component + value: tokens + - uuid: df395f64c8fc45d2a9442bb655474b4a + name: Healthcheck + type: DEPENDENT + key: vault.health.check + delay: '0' + description: 'Vault healthcheck.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.healthcheck + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_health + tags: + - tag: component + value: health + triggers: + - uuid: 93b4ae5089834a87ae41091fc9773501 + expression: 'last(/HashiCorp Vault by HTTP/vault.health.check)=0' + name: 'HashiCorp Vault: Vault server is not responding' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 05c46e931d29415f9a6a32f4dadd1eed + name: Initialized + type: DEPENDENT + key: vault.health.initialized + delay: '0' + description: 'Initialization status.' + valuemap: + name: 'Vault flag' + preprocessing: + - type: JSONPATH + parameters: + - $.initialized + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_health + tags: + - tag: component + value: health + - uuid: 75a3c56f1bb24646927cf9b490471cae + name: 'Performance standby' + type: DEPENDENT + key: vault.health.performance_standby + delay: '0' + description: 'Performance standby status.' + valuemap: + name: 'Vault flag' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_standby + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_health + tags: + - tag: component + value: health + - uuid: 488a43102a304f7ab4d2586088a2fded + name: 'Disaster Recovery replication' + type: DEPENDENT + key: vault.health.replication_dr_mode + delay: '0' + value_type: CHAR + trends: '0' + description: | + Disaster recovery replication mode + https://www.vaultproject.io/docs/enterprise/replication + preprocessing: + - type: JSONPATH + parameters: + - $.replication_dr_mode + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_health + tags: + - tag: component + value: health + - uuid: 509982bde325478a9d77f99c256f1068 + name: 'Performance replication' + type: DEPENDENT + key: vault.health.replication_performance_mode + delay: '0' + value_type: CHAR + trends: '0' + description: | + Performance replication mode + https://www.vaultproject.io/docs/enterprise/replication + preprocessing: + - type: JSONPATH + parameters: + - $.replication_performance_mode + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_health + tags: + - tag: component + value: health + - uuid: e6d2183bb8b14fa3a647d5cea1f56d4c + name: Sealed + type: DEPENDENT + key: vault.health.sealed + delay: '0' + description: 'Seal status.' + valuemap: + name: 'Vault flag' + preprocessing: + - type: JSONPATH + parameters: + - $.sealed + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_health + tags: + - tag: component + value: health + triggers: + - uuid: 3f4ebf7094914c219ac32132400f90c8 + expression: 'last(/HashiCorp Vault by HTTP/vault.health.sealed)=1' + name: 'HashiCorp Vault: Vault server is sealed' + priority: AVERAGE + description: 'https://www.vaultproject.io/docs/concepts/seal' + tags: + - tag: scope + value: availability + - uuid: 0641c979cf774d97a9bc52dbaffe8a0f + name: Standby + type: DEPENDENT + key: vault.health.standby + delay: '0' + description: 'Standby status.' + valuemap: + name: 'Vault flag' + preprocessing: + - type: JSONPATH + parameters: + - $.standby + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_health + tags: + - tag: component + value: health + - uuid: e7e79cc09faa409dbe3fa74e1db4cb5f + name: Version + type: DEPENDENT + key: vault.health.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Server version.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_health + tags: + - tag: component + value: health + triggers: + - uuid: ee9a561165b847c2a0719a767e5c4fe9 + expression: 'last(/HashiCorp Vault by HTTP/vault.health.version,#1)<>last(/HashiCorp Vault by HTTP/vault.health.version,#2) and length(last(/HashiCorp Vault by HTTP/vault.health.version))>0' + name: 'HashiCorp Vault: Version has changed' + event_name: 'HashiCorp Vault: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Vault version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 77da3cf43b0d4a449399f3de6d5e8477 + name: 'HA enabled' + type: DEPENDENT + key: vault.leader.ha_enabled + delay: '0' + description: 'HA enabled status.' + valuemap: + name: 'Vault flag' + preprocessing: + - type: JSONPATH + parameters: + - $.ha_enabled + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_leader + tags: + - tag: component + value: leader + - uuid: ea6a7f625c144dc6beff71d3a19004ab + name: 'Is leader' + type: DEPENDENT + key: vault.leader.is_self + delay: '0' + description: 'Leader status.' + valuemap: + name: 'Vault flag' + preprocessing: + - type: JSONPATH + parameters: + - $.is_self + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_leader + tags: + - tag: component + value: leader + - uuid: f23cbc80bf2d4064bf45cc27f6ec752e + name: 'Audit log request failures, rate' + type: DEPENDENT + key: vault.metrics.audit.log.request.failure.rate + delay: '0' + value_type: FLOAT + description: 'Number of audit log request failures.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_audit_log_request_failure + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: audit_log + - uuid: 33f2ce934ae5451dace5f880b3a2e6b7 + name: 'Audit log requests, rate' + type: DEPENDENT + key: vault.metrics.audit.log.request.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of all audit log requests across all audit log devices.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_audit_log_request_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: audit_log + - uuid: 6b8b37e62e374bc38994c5dcc6f0fc6d + name: 'Audit log response failures, rate' + type: DEPENDENT + key: vault.metrics.audit.log.response.failure.rate + delay: '0' + value_type: FLOAT + description: 'Number of audit log response failures.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_audit_log_response_failure + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: audit_log + - uuid: c336a5cecd4641b58be6ab1ba511f6ef + name: 'Audit log response, rate' + type: DEPENDENT + key: vault.metrics.audit.log.response.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of audit log responses across all audit log devices.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_audit_log_response_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: audit_log + - uuid: e1d11f77e8394b22b88ddcf9a1b8159b + name: 'Barrier DELETE ops, rate' + type: DEPENDENT + key: vault.metrics.barrier.delete.rate + delay: '0' + value_type: FLOAT + description: 'Number of DELETE operations at the barrier.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_barrier_delete_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: barrier + - uuid: 8a854323d051485091917391c630cc28 + name: 'Barrier LIST ops, rate' + type: DEPENDENT + key: vault.metrics.barrier.list.rate + delay: '0' + value_type: FLOAT + description: 'Number of LIST operations at the barrier.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_barrier_list_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: barrier + - uuid: 1dbf0413b1574f6e9b04abe5d06ab8aa + name: 'Barrier PUT ops, rate' + type: DEPENDENT + key: vault.metrics.barrier.put.rate + delay: '0' + value_type: FLOAT + description: 'Number of PUT operations at the barrier.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_barrier_put_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: barrier + - uuid: f0069229811749e5b399f1214176ae11 + name: 'Cache hit, rate' + type: DEPENDENT + key: vault.metrics.cache.hit.rate + delay: '0' + value_type: FLOAT + description: 'Number of times a value was retrieved from the LRU cache.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_cache_hit + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: cache + - uuid: 4df07a4ea4a048c7bc11b21b56cf96c6 + name: 'Cache miss, rate' + type: DEPENDENT + key: vault.metrics.cache.miss.rate + delay: '0' + value_type: FLOAT + description: 'Number of times a value was not in the LRU cache. The results in a read from the configured storage.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_cache_miss + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: cache + - uuid: d99841c57aa349ae8676072e12add35c + name: 'Cache write, rate' + type: DEPENDENT + key: vault.metrics.cache.write.rate + delay: '0' + value_type: FLOAT + description: 'Number of times a value was written to the LRU cache.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_cache_write + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: cache + - uuid: 004f1eebd08c46d4bbdab7a6c6e3f3ec + name: 'Check token, rate' + type: DEPENDENT + key: vault.metrics.core.check.token.rate + delay: '0' + value_type: FLOAT + description: 'Number of token checks handled by Vault core.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_core_check_token_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + - uuid: 77bf09bd2b554e5a8d0dde53045f05c7 + name: 'Fetch ACL and token, rate' + type: DEPENDENT + key: vault.metrics.core.fetch.acl_and_token + delay: '0' + value_type: FLOAT + description: 'Number of ACL and corresponding token entry fetches handled by Vault core.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_core_fetch_acl_and_token_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + - uuid: 4ddf18c7768147a396fe13608b5508fb + name: 'Requests, rate' + type: DEPENDENT + key: vault.metrics.core.handle.request + delay: '0' + value_type: FLOAT + description: 'Number of requests handled by Vault core.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_core_handle_request_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + - uuid: 2aa54d38cc2541e3ae4df89e86d63d20 + name: 'Leadership setup failed, counter' + type: DEPENDENT + key: vault.metrics.core.leadership.setup_failed + delay: '0' + description: 'Cluster leadership setup failures which have occurred in a highly available Vault cluster.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - vault_core_leadership_setup_failed + - type: JSONPATH + parameters: + - '$[?(@.name=="vault_core_leadership_setup_failed")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + triggers: + - uuid: c68ab0c784314291bde1cc8693fd5959 + expression: '(max(/HashiCorp Vault by HTTP/vault.metrics.core.leadership.setup_failed,1h)-min(/HashiCorp Vault by HTTP/vault.metrics.core.leadership.setup_failed,1h))>{$VAULT.LEADERSHIP.SETUP.FAILED.MAX.WARN}' + name: 'HashiCorp Vault: High frequency of leadership setup failures' + event_name: 'HashiCorp Vault: High frequency of leadership setup failures (over {$VAULT.LEADERSHIP.SETUP.FAILED.MAX.WARN} for 1h)' + priority: AVERAGE + description: 'There have been more than {$VAULT.LEADERSHIP.SETUP.FAILED.MAX.WARN} Vault leadership setup failures in the past 1h.' + tags: + - tag: scope + value: performance + - uuid: f0ca68774b5842d7803d2c2619958184 + name: 'Leadership setup lost, counter' + type: DEPENDENT + key: vault.metrics.core.leadership_lost + delay: '0' + description: 'Cluster leadership losses which have occurred in a highly available Vault cluster.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - vault_core_leadership_lost_count + - type: JSONPATH + parameters: + - '$[?(@.name=="vault_core_leadership_lost_count")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + triggers: + - uuid: 8d7f4f51272a4ce5a3a7ab9642e51d63 + expression: '(max(/HashiCorp Vault by HTTP/vault.metrics.core.leadership_lost,1h)-min(/HashiCorp Vault by HTTP/vault.metrics.core.leadership_lost,1h))>{$VAULT.LEADERSHIP.LOSSES.MAX.WARN}' + name: 'HashiCorp Vault: High frequency of leadership losses' + event_name: 'HashiCorp Vault: High frequency of leadership losses (over {$VAULT.LEADERSHIP.LOSSES.MAX.WARN} for 1h)' + priority: AVERAGE + description: 'There have been more than {$VAULT.LEADERSHIP.LOSSES.MAX.WARN} Vault leadership losses in the past 1h.' + tags: + - tag: scope + value: performance + - uuid: 2bdb273b513d4a06914cd6ea11ac2368 + name: 'Post-unseal ops, counter' + type: DEPENDENT + key: vault.metrics.core.post_unseal + delay: '0' + description: 'Duration of time taken by post-unseal operations handled by Vault core.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_core_post_unseal_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + - uuid: 81738d2323a94aa8a7f2b1d9721ac9f9 + name: 'Pre-seal ops, counter' + type: DEPENDENT + key: vault.metrics.core.pre_seal + delay: '0' + description: 'Duration of time taken by pre-seal operations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_core_pre_seal_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + - uuid: 42d7e5c3d5b24a65b9821e1aaf0df2a0 + name: 'Seal ops, counter' + type: DEPENDENT + key: vault.metrics.core.seal + delay: '0' + value_type: FLOAT + description: 'Duration of time taken by seal operations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_core_seal_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + - uuid: 95f6ab7294c547e7976a292447ef31fb + name: 'Internal seal ops, counter' + type: DEPENDENT + key: vault.metrics.core.seal_internal + delay: '0' + description: 'Duration of time taken by internal seal operations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_core_seal_internal_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + - uuid: e0ecf5aa8c2a4e0886b5a12588839efd + name: 'Requested seal ops, counter' + type: DEPENDENT + key: vault.metrics.core.seal_with_request + delay: '0' + description: 'Duration of time taken by requested seal operations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_core_seal_with_request_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + - uuid: 1d66f20a1d594b4fa7c81849b83a4ef9 + name: 'Leadership step downs, counter' + type: DEPENDENT + key: vault.metrics.core.step_down + delay: '0' + description: 'Cluster leadership step down.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - vault_core_step_down_count + - type: JSONPATH + parameters: + - '$[?(@.name=="vault_core_step_down_count")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + triggers: + - uuid: 5f2895eb5a94441f858c573584ec8b19 + expression: '(max(/HashiCorp Vault by HTTP/vault.metrics.core.step_down,1h)-min(/HashiCorp Vault by HTTP/vault.metrics.core.step_down,1h))>{$VAULT.LEADERSHIP.STEPDOWNS.MAX.WARN}' + name: 'HashiCorp Vault: High frequency of leadership step downs' + event_name: 'HashiCorp Vault: High frequency of leadership step downs (over {$VAULT.LEADERSHIP.STEPDOWNS.MAX.WARN} for 1h)' + priority: AVERAGE + description: 'There have been more than {$VAULT.LEADERSHIP.STEPDOWNS.MAX.WARN} Vault leadership step downs in the past 1h.' + tags: + - tag: scope + value: performance + - uuid: 075c83114d1746b6b773579404e0268d + name: 'Unseal ops, counter' + type: DEPENDENT + key: vault.metrics.core.unseal + delay: '0' + description: 'Duration of time taken by unseal operations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_core_unseal_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: core + - uuid: 5edebc9e295844ee8716d2b17152bdd9 + name: 'Fetch lease times, counter' + type: DEPENDENT + key: vault.metrics.expire.fetch.lease.times + delay: '0' + description: 'Time taken to fetch lease times.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_fetch_lease_times_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: 7f3ab929e48848e294cfa68b8e1783ad + name: 'Fetch lease times by token, counter' + type: DEPENDENT + key: vault.metrics.expire.fetch.lease.times.by_token + delay: '0' + description: 'Time taken to fetch lease times by token.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_fetch_lease_times_by_token_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: 66f1855a47624f10ae69735053e326f1 + name: 'Number of expiring leases' + type: DEPENDENT + key: vault.metrics.expire.num_leases + delay: '0' + description: 'Number of all leases which are eligible for eventual expiry.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_num_leases + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: b160780f06c846809f7aca043777754f + name: 'Register ops, count' + type: DEPENDENT + key: vault.metrics.expire.register + delay: '0' + value_type: FLOAT + description: 'Time taken for register operations.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_register_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: 89dcbfb69b8a44dcbf330d16d292ec1b + name: 'Register auth ops, count' + type: DEPENDENT + key: vault.metrics.expire.register.auth + delay: '0' + value_type: FLOAT + description: 'Time taken for register authentication operations which create lease entries without lease ID.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_register_auth_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: 2d418cd62ada44c6bd527db8da0731e1 + name: 'Expire renew, count' + type: DEPENDENT + key: vault.metrics.expire.renew + delay: '0' + value_type: FLOAT + description: 'Time taken to renew a lease.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_renew_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: 091c66e0f2794a72a97ddfc3a7142b72 + name: 'Renew token, count' + type: DEPENDENT + key: vault.metrics.expire.renew_token + delay: '0' + value_type: FLOAT + description: 'Time taken to renew a token which does not need to invoke a logical backend.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_renew_token_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: 21a1b8470a31484da1e3fd76d3c8094b + name: 'Expire revoke, count' + type: DEPENDENT + key: vault.metrics.expire.revoke + delay: '0' + value_type: FLOAT + description: 'Time taken to revoke a token.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_revoke_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: bc023bdad9504a86b17d2308db62e98f + name: 'Revoke secrets by token, count' + type: DEPENDENT + key: vault.metrics.expire.revoke.by_token + delay: '0' + value_type: FLOAT + description: 'Time taken to revoke all secrets issued with a given token.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_revoke_by_token_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: 6bed679f33b4415d833cb5033c5f824c + name: 'Expire revoke force, count' + type: DEPENDENT + key: vault.metrics.expire.revoke.force + delay: '0' + value_type: FLOAT + description: 'Time taken to forcibly revoke a token.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_revoke_force_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: 93041bd251d148c39e6e2e162f6f1078 + name: 'Expire revoke prefix, count' + type: DEPENDENT + key: vault.metrics.expire.revoke.prefix + delay: '0' + value_type: FLOAT + description: 'Tokens revoke on a prefix.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_expire_revoke_prefix_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: expire + - uuid: 5c3e5032315e466e81fca67ea880b33a + name: 'Policy DELETE ops, rate' + type: DEPENDENT + key: vault.metrics.policy.delete_policy.rate + delay: '0' + value_type: FLOAT + description: 'Number of operations to delete a policy.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_policy_delete_policy_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: policy + - uuid: bd790a83c48e4ea6bcc9271703036101 + name: 'Policy GET ops, rate' + type: DEPENDENT + key: vault.metrics.policy.get_policy.rate + delay: '0' + value_type: FLOAT + description: 'Number of operations to get a policy.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_policy_get_policy_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: policy + - uuid: 6650bc3487934dcebc2e1f4da2e1db13 + name: 'Policy LIST ops, rate' + type: DEPENDENT + key: vault.metrics.policy.list_policies.rate + delay: '0' + value_type: FLOAT + description: 'Number of operations to list policies.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_policy_list_policies_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: policy + - uuid: c8010706f8274e898812b722a82e9add + name: 'Policy SET ops, rate' + type: DEPENDENT + key: vault.metrics.policy.set_policy.rate + delay: '0' + value_type: FLOAT + description: 'Number of operations to set a policy.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_policy_set_policy_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: policy + - uuid: d7602cb55879403982afeabecb4c130a + name: 'Process CPU seconds, total' + type: DEPENDENT + key: vault.metrics.process.cpu.seconds.total + delay: '0' + value_type: FLOAT + units: s + description: 'Total user and system CPU time spent in seconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_cpu_seconds_total + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: process + - uuid: 095af4564c5445c0be7ad38811404535 + name: 'Open file descriptors, max' + type: DEPENDENT + key: vault.metrics.process.max.fds + delay: '0' + value_type: FLOAT + description: 'Maximum number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_max_fds + - value + - '' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: process + - uuid: 0b2c6c947c46409b93acea8e67a0f058 + name: 'Open file descriptors, current' + type: DEPENDENT + key: vault.metrics.process.open.fds + delay: '0' + value_type: FLOAT + description: 'Number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_open_fds + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: process + - uuid: ddd6b5b8206442a7b5f0026e82bc2bd2 + name: 'Process resident memory' + type: DEPENDENT + key: vault.metrics.process.resident_memory.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Resident memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_resident_memory_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: process + - uuid: 241f8503d30c41df9e902cf31ddf715e + name: Uptime + type: DEPENDENT + key: vault.metrics.process.uptime + delay: '0' + units: s + description: 'Server uptime.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_start_time_seconds + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.now()/1000 - Number(value));' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: process + triggers: + - uuid: a60eed70ecbc44fa935ec87d83fe4793 + expression: 'last(/HashiCorp Vault by HTTP/vault.metrics.process.uptime)<10m' + name: 'HashiCorp Vault: Service has been restarted' + event_name: 'HashiCorp Vault: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bf3a561bc96b46fc9a818a9f43c57be5 + name: 'Process virtual memory, current' + type: DEPENDENT + key: vault.metrics.process.virtual_memory.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Virtual memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_virtual_memory_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: process + - uuid: 17c568d745534c218dc292043234b215 + name: 'Process virtual memory, max' + type: DEPENDENT + key: vault.metrics.process.virtual_memory.max.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Maximum amount of virtual memory available in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_virtual_memory_max_bytes + - value + - '' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: process + - uuid: 58e6fbc8a6084008b08c7fc03ad4a703 + name: 'Runtime allocated bytes' + type: DEPENDENT + key: vault.metrics.runtime.alloc.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Number of bytes allocated by the Vault process. This could burst from time to time, but should return to a steady state value.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_runtime_alloc_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: runtime + - uuid: 3b2208b0248b4288ad91a8a5e3090b29 + name: 'Runtime freed objects' + type: DEPENDENT + key: vault.metrics.runtime.free.count + delay: '0' + value_type: FLOAT + description: 'Number of freed objects.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_runtime_free_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: runtime + - uuid: c1a159a37d4e4130a4a19d0ded2b0b72 + name: 'Runtime heap objects' + type: DEPENDENT + key: vault.metrics.runtime.heap.objects + delay: '0' + value_type: FLOAT + description: 'Number of objects on the heap. This is a good general memory pressure indicator worth establishing a baseline and thresholds for alerting.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_runtime_heap_objects + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: runtime + - uuid: f8f0f80be7514fe5b085f04858ac4d7a + name: 'Runtime malloc count' + type: DEPENDENT + key: vault.metrics.runtime.malloc.count + delay: '0' + value_type: FLOAT + description: 'Cumulative count of allocated heap objects.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_runtime_malloc_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: runtime + - uuid: b728e92f88db47308272eff7e3bb8c08 + name: 'Runtime num goroutines' + type: DEPENDENT + key: vault.metrics.runtime.num_goroutines + delay: '0' + value_type: FLOAT + description: 'Number of goroutines. This serves as a general system load indicator worth establishing a baseline and thresholds for alerting.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_runtime_num_goroutines + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: runtime + - uuid: 9af322bade374b45b78d949e632747a8 + name: 'Runtime sys bytes' + type: DEPENDENT + key: vault.metrics.runtime.sys.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Number of bytes allocated to Vault. This includes what is being used by Vault''s heap and what has been reclaimed but not given back to the operating system.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_runtime_sys_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: runtime + - uuid: 38f50f3173c346cebe6e321347e0270f + name: 'Runtime GC runs, total' + type: DEPENDENT + key: vault.metrics.runtime.total.gc.runs + delay: '0' + description: 'Total number of garbage collection runs since Vault was last started.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_runtime_total_gc_runs + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: runtime + - uuid: 20f0708b63784c4190e8e6256f2d57f3 + name: 'Secret kv entries' + type: DEPENDENT + key: vault.metrics.secret.kv.count + delay: '0' + description: 'Number of entries in each key-value secret engine.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - vault_secret_kv_count + - type: JSONPATH + parameters: + - '$[?(@.name=="vault_secret_kv_count")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: secret + - uuid: 568b4b77ae58468da7bb407d349bd330 + name: 'Token secret lease creation, rate' + type: DEPENDENT + key: vault.metrics.secret.lease.creation.rate + delay: '0' + value_type: FLOAT + description: 'Counts the number of leases created by secret engines.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - vault_secret_lease_creation + - type: JSONPATH + parameters: + - '$[?(@.name=="vault_secret_lease_creation")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: secret + - uuid: 37576dbac47349fca97fe27c4906124d + name: 'Token count, total' + type: DEPENDENT + key: vault.metrics.token + delay: '0' + description: 'Total number of service tokens available for use; counts all un-expired and un-revoked tokens in Vault''s token store. This measurement is performed every 10 minutes.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - vault_token_count + - type: JSONPATH + parameters: + - '$[?(@.name=="vault_token_count")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: 4c7ae38abae146fdbaf334501b3644f1 + name: 'Token count by auth, total' + type: DEPENDENT + key: vault.metrics.token.by_auth + delay: '0' + description: 'Total number of service tokens that were created by an auth method.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - vault_token_count_by_auth + - type: JSONPATH + parameters: + - '$[?(@.name=="vault_token_count_by_auth")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: 2f9011a7dd6f4b078402dbb50256ee0a + name: 'Token count by policy, total' + type: DEPENDENT + key: vault.metrics.token.by_policy + delay: '0' + description: 'Total number of service tokens that have a policy attached.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - vault_token_count_by_policy + - type: JSONPATH + parameters: + - '$[?(@.name=="vault_token_count_by_policy")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: c5b512233ae745c390d85e604bf7449e + name: 'Token count by ttl, total' + type: DEPENDENT + key: vault.metrics.token.by_ttl + delay: '0' + description: 'Number of service tokens, grouped by the TTL range they were assigned at creation.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - vault_token_count_by_ttl + - type: JSONPATH + parameters: + - '$[?(@.name=="vault_token_count_by_ttl")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: 1a203f57eb0647ca98a848913bb5b707 + name: 'Token create, count' + type: DEPENDENT + key: vault.metrics.token.create + delay: '0' + value_type: FLOAT + description: 'The time taken to create a token.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_token_create_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: 0033d69a310041e58107e06a296492bd + name: 'Token createAccessor, count' + type: DEPENDENT + key: vault.metrics.token.createAccessor + delay: '0' + value_type: FLOAT + description: 'The time taken to create a token accessor.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_token_createAccessor_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: 3c73e0cdfe4147abb86ce939189e4cec + name: 'Token creation, rate' + type: DEPENDENT + key: vault.metrics.token.creation.rate + delay: '0' + value_type: FLOAT + description: 'Number of service or batch tokens created.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - vault_token_creation + - type: JSONPATH + parameters: + - '$[?(@.name=="vault_token_creation")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: ad0c38837e774d9b8164bad51ae9fd4c + name: 'Token lookup, rate' + type: DEPENDENT + key: vault.metrics.token.lookup.rate + delay: '0' + value_type: FLOAT + description: 'Number of token look up.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_token_lookup_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: 0d30ca2565b24659839e7e31fc8f6739 + name: 'Token revoke, count' + type: DEPENDENT + key: vault.metrics.token.revoke + delay: '0' + value_type: FLOAT + description: 'The time taken to look up a token.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_token_revoke_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: c851263be6d94ab39b548a57bbad4eab + name: 'Token revoke tree, count' + type: DEPENDENT + key: vault.metrics.token.revoke.tree + delay: '0' + value_type: FLOAT + description: 'Time taken to revoke a token tree.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_token_revoke_tree_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: 830ff368911c4532b10ff1e8c6c9e59b + name: 'Token store, count' + type: DEPENDENT + key: vault.metrics.token.store + delay: '0' + value_type: FLOAT + description: 'Time taken to store an updated token entry without writing to the secondary index.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_token_store_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: token + - uuid: 2f0e733e6b1c406b88d012e727ab0169 + name: 'Runtime GC pause, total' + type: DEPENDENT + key: vault.metrics.total.gc.pause + delay: '0' + units: s + description: 'The total garbage collector pause time since Vault was last started.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_runtime_total_gc_pause_ns + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-9' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: runtime + - uuid: f616fbcd3d20456bb34cde735cf7fad5 + name: 'Barrier GET ops, rate' + type: DEPENDENT + key: vault.metrics.vault.barrier.get.rate + delay: '0' + value_type: FLOAT + description: 'Number of GET operations at the barrier.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_barrier_get_count + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: barrier + discovery_rules: + - uuid: ca7bbea60da54770b164ee11d9cd325f + name: 'Mountpoint metrics discovery' + type: DEPENDENT + key: vault.mountpoint.discovery + delay: '0' + description: 'Mountpoint metrics discovery.' + item_prototypes: + - uuid: 3956d1e526d944c7b68d09a1cf52f11e + name: 'Rollback attempt [{#MOUNTPOINT}] ops, rate' + type: DEPENDENT + key: 'vault.metrics.rollback.attempt.rate[{#MOUNTPOINT}]' + delay: '0' + value_type: FLOAT + description: 'Number of operations to perform a rollback operation on the given mount point.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{#PATTERN_C}' + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: mountpoint + - tag: mountpoint + value: '{#MOUNTPOINT}' + - uuid: e0a4232e6a20433ba26e4313ff9ec1bc + name: 'Route rollback [{#MOUNTPOINT}] ops, rate' + type: DEPENDENT + key: 'vault.metrics.route.rollback.rate[{#MOUNTPOINT}]' + delay: '0' + value_type: FLOAT + description: 'Number of operations to dispatch a rollback operation to a backend, and for that backend to process it. Rollback operations are automatically scheduled to clean up partial errors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{#PATTERN_C}' + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: mountpoint + - tag: mountpoint + value: '{#MOUNTPOINT}' + master_item: + key: vault.check_mountpoint_discovery + - uuid: f2015f2394a64e7e923a2030400bcd69 + name: 'Replication metrics discovery' + type: DEPENDENT + key: vault.replication.discovery + delay: '0' + description: 'Discovery for replication metrics.' + item_prototypes: + - uuid: af047eca9606472680288e5b5703bca9 + name: 'Stream WAL guard found, count{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.logshipper.streamWALs.guard_found[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of incidences where the starting Merkle Tree index used to begin streaming WAL entries is matched/found.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - logshipper_streamWALs_guard_found + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: replication + - uuid: df61d6db369540fd9934648189e9175a + name: 'Stream WAL missing guard, count{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.logshipper.streamWALs.missing_guard[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of incidences where the starting Merkle Tree index used to begin streaming WAL entries is not matched/found.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - logshipper_streamWALs_missing_guard + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: replication + - uuid: 288ffb2cd8bc45f39a7e6d98a2100022 + name: 'Last remote WAL{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.replication.fsm.last_remote_wal[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The index of the last remote WAL.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - replication_fsm_last_remote_wal + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: replication + - uuid: ca9c56e53093436f99a6a80f499aac45 + name: 'Merkle commit index{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.replication.merkle.commit_index[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The last committed index in the Merkle Tree.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - replication_merkle_commit_index + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: replication + - uuid: 854a4541b78c4df6b9d4971d71c7df49 + name: 'Last DR WAL{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.replication.wal.last_dr_wal[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The index of the last DR WAL.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - replication_wal_last_dr_wal + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: replication + - uuid: 5aed3273a8c24236817f8bd3b5860f87 + name: 'Last performance WAL{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.replication.wal.last_performance_wal[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The index of the last Performance WAL.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - replication_wal_last_performance_wal + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: replication + - uuid: f5bcef9569f44212b813cc0ec821b1ea + name: 'Last WAL{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.replication.wal.last_wal[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The index of the last WAL.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - replication_wal_last_wal + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: replication + master_item: + key: vault.check_replication_discovery + - uuid: ef703fedc3b347e9bb878d159d6756d8 + name: 'Storage metrics discovery' + type: DEPENDENT + key: vault.storage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#STORAGE}' + value: '{$VAULT.LLD.FILTER.STORAGE.MATCHES}' + formulaid: A + description: 'Storage backend metrics discovery.' + item_prototypes: + - uuid: 0cdb0bcf0ff448ff8c5d673f9b66d17a + name: 'Storage [{#STORAGE}] {#OPERATION} ops, rate' + type: DEPENDENT + key: 'vault.metrics.storage.rate[{#STORAGE}, {#OPERATION}]' + delay: '0' + value_type: FLOAT + description: 'Number of a {#OPERATION} operation against the {#STORAGE} storage backend.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{#PATTERN_C}' + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: storage + - tag: operation + value: '{#OPERATION}' + - tag: storage + value: '{#STORAGE}' + master_item: + key: vault.check_storage_discovery + - uuid: d580dee4c0bc4a0db91c9c5af70965af + name: 'Token metrics discovery' + type: DEPENDENT + key: vault.tokens.discovery + delay: '0' + description: 'Tokens metrics discovery.' + item_prototypes: + - uuid: 9a9359e74c3a48b1bbada84d772e665a + name: 'Token [{#TOKEN_NAME}] error' + type: DEPENDENT + key: 'vault.token_via_accessor.error["{#ACCESSOR}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Token lookup error text.' + valuemap: + name: 'Vault flag' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.accessor == "{#ACCESSOR}")].error.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_tokens + tags: + - tag: component + value: token + - tag: token + value: '{#TOKEN_NAME}' + trigger_prototypes: + - uuid: 8cd5d903d4e74974a8469554b737ee3d + expression: 'length(last(/HashiCorp Vault by HTTP/vault.token_via_accessor.error["{#ACCESSOR}"]))>0' + name: 'HashiCorp Vault: Token [{#TOKEN_NAME}] lookup error occurred' + priority: WARNING + dependencies: + - name: 'HashiCorp Vault: Vault server is sealed' + expression: 'last(/HashiCorp Vault by HTTP/vault.health.sealed)=1' + tags: + - tag: scope + value: availability + - uuid: caa3f9ca96b14b929dd75238602fead9 + name: 'Token [{#TOKEN_NAME}] has TTL' + type: DEPENDENT + key: 'vault.token_via_accessor.has_ttl["{#ACCESSOR}"]' + delay: '0' + description: 'The Token has TTL.' + valuemap: + name: 'Vault flag' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.accessor == "{#ACCESSOR}")].has_ttl.first()' + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: vault.get_tokens + tags: + - tag: component + value: token + - tag: token + value: '{#TOKEN_NAME}' + - uuid: 0f872d9d811c44f6a9a9f8f5089ca0a1 + name: 'Token [{#TOKEN_NAME}] TTL' + type: DEPENDENT + key: 'vault.token_via_accessor.ttl["{#ACCESSOR}"]' + delay: '0' + units: s + description: 'The TTL period of the token.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.accessor == "{#ACCESSOR}")].ttl.first()' + master_item: + key: vault.get_tokens + tags: + - tag: component + value: token + - tag: token + value: '{#TOKEN_NAME}' + trigger_prototypes: + - uuid: f4f0db7e26d9470a86d11e86d1ae26e2 + expression: 'last(/HashiCorp Vault by HTTP/vault.token_via_accessor.has_ttl["{#ACCESSOR}"])=1 and last(/HashiCorp Vault by HTTP/vault.token_via_accessor.ttl["{#ACCESSOR}"])<{$VAULT.TOKEN.TTL.MIN.CRIT}' + name: 'HashiCorp Vault: Token [{#TOKEN_NAME}] will expire soon' + event_name: 'HashiCorp Vault: Token [{#TOKEN_NAME}] will expire soon (less than {$VAULT.TOKEN.TTL.MIN.CRIT})' + priority: AVERAGE + tags: + - tag: scope + value: security + - uuid: 0e2143a2a46d44778db34ac9af69bbfc + expression: 'last(/HashiCorp Vault by HTTP/vault.token_via_accessor.has_ttl["{#ACCESSOR}"])=1 and last(/HashiCorp Vault by HTTP/vault.token_via_accessor.ttl["{#ACCESSOR}"])<{$VAULT.TOKEN.TTL.MIN.WARN}' + name: 'HashiCorp Vault: Token [{#TOKEN_NAME}] will expire soon' + event_name: 'HashiCorp Vault: Token [{#TOKEN_NAME}] will expire soon (less than {$VAULT.TOKEN.TTL.MIN.WARN})' + priority: WARNING + dependencies: + - name: 'HashiCorp Vault: Token [{#TOKEN_NAME}] will expire soon' + expression: 'last(/HashiCorp Vault by HTTP/vault.token_via_accessor.has_ttl["{#ACCESSOR}"])=1 and last(/HashiCorp Vault by HTTP/vault.token_via_accessor.ttl["{#ACCESSOR}"])<{$VAULT.TOKEN.TTL.MIN.CRIT}' + tags: + - tag: scope + value: security + master_item: + key: vault.get_tokens + lld_macro_paths: + - lld_macro: '{#ACCESSOR}' + path: $.accessor + - lld_macro: '{#TOKEN_NAME}' + path: $.token_name + - uuid: ce7b2bb4c09c42d5a4b9e92c1c3dee23 + name: 'WAL metrics discovery' + type: DEPENDENT + key: vault.wal.discovery + delay: '0' + description: 'Discovery for WAL metrics.' + item_prototypes: + - uuid: 7e21309d1778466cae08e6424108d0e9 + name: 'Delete WALs, count{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.wal.deletewals[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Time taken to delete a Write Ahead Log (WAL).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_wal_deletewals_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: wal + - uuid: 80d5a79d35bc4b3a970f311b0c8c3fbf + name: 'Flush ready WAL, count{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.wal.flushready[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Time taken to flush a ready Write Ahead Log (WAL) to storage.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_wal_flushready_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: wal + - uuid: daee033751164b6591d326d2d59b7e3a + name: 'GC deleted WAL{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.wal.gc.deleted[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of Write Ahead Logs (WAL) deleted during each garbage collection run.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_wal_gc_deleted + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: wal + - uuid: b45b43ac739246719e517d04eb384787 + name: 'WALs on disk, total{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.wal.gc.total[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total Number of Write Ahead Logs (WAL) on disk.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_wal_gc_total + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: wal + - uuid: b1e306d6136a4b6d933bd2154b3d5d6e + name: 'Load WALs, count{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.wal.loadWAL[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Time taken to load a Write Ahead Log (WAL).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_wal_loadWAL_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: wal + - uuid: de8fea26aa1546d2bdf1ec7dd5205a3b + name: 'Persist WALs, count{#SINGLETON}' + type: DEPENDENT + key: 'vault.metrics.wal.persistwals[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Time taken to persist a Write Ahead Log (WAL).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - vault_wal_persistwals_count + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: vault.clear_metrics + tags: + - tag: component + value: wal + master_item: + key: vault.check_wal_discovery + tags: + - tag: class + value: software + - tag: target + value: vault + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "HashiCorp Vault", e.g. {$HTTP.TLS.VERIFY:"HashiCorp Vault"}.' + - macro: '{$VAULT.API.PORT}' + value: '8200' + description: 'Vault port.' + - macro: '{$VAULT.API.SCHEME}' + value: http + description: 'Vault API scheme.' + - macro: '{$VAULT.HOST}' + value: '' + description: 'Vault host name.' + - macro: '{$VAULT.LEADERSHIP.LOSSES.MAX.WARN}' + value: '5' + description: 'Maximum number of Vault leadership losses.' + - macro: '{$VAULT.LEADERSHIP.SETUP.FAILED.MAX.WARN}' + value: '5' + description: 'Maximum number of Vault leadership setup failed.' + - macro: '{$VAULT.LEADERSHIP.STEPDOWNS.MAX.WARN}' + value: '5' + description: 'Maximum number of Vault leadership step downs.' + - macro: '{$VAULT.LLD.FILTER.STORAGE.MATCHES}' + value: .+ + description: 'Filter of discoverable storage backends.' + - macro: '{$VAULT.OPEN.FDS.MAX.WARN}' + value: '90' + description: 'Maximum percentage of used file descriptors for trigger expression.' + - macro: '{$VAULT.TOKEN}' + value: '' + description: 'Vault auth token.' + - macro: '{$VAULT.TOKEN.ACCESSORS}' + description: 'Vault accessors separated by spaces for monitoring token expiration time.' + - macro: '{$VAULT.TOKEN.TTL.MIN.CRIT}' + value: 3d + description: 'Token TTL critical threshold.' + - macro: '{$VAULT.TOKEN.TTL.MIN.WARN}' + value: 7d + description: 'Token TTL warning threshold.' + valuemaps: + - uuid: 547a6b8002d44a8f8f363023c6097b1e + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 46edbd58c7384b53bb31775244c23343 + name: 'Vault flag' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + triggers: + - uuid: ebe6f65e82ed4f00bd7c5be30841a25c + expression: 'min(/HashiCorp Vault by HTTP/vault.metrics.process.open.fds,5m)/last(/HashiCorp Vault by HTTP/vault.metrics.process.max.fds)*100>{$VAULT.OPEN.FDS.MAX.WARN}' + name: 'HashiCorp Vault: Current number of open files is too high' + event_name: 'HashiCorp Vault: Current number of open files is too high (over {$VAULT.OPEN.FDS.MAX.WARN}% for 5m)' + priority: WARNING + tags: + - tag: scope + value: capacity + graphs: + - uuid: b4fc517d099340558fe813c6fb8c6be2 + name: 'Vault: Cache rate' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.cache.hit.rate + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.cache.miss.rate + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.cache.write.rate + - uuid: 81fa6888cef7496eb46a15f11e8a238c + name: 'Vault: Expiring leases' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.expire.num_leases + - uuid: a96e30071bef4da6839e405ae5b183c5 + name: 'Vault: K/V secret engine entries' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.secret.kv.count + - uuid: e7e470ee9e914d4d9fc81b598889f873 + name: 'Vault: Requests rate' + graph_items: + - drawtype: GRADIENT_LINE + color: 34bdeb + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.core.handle.request + - uuid: 2e4eda3a71b74e14a0c4843a96a53dbc + name: 'Vault: Runtime memory' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.runtime.alloc.bytes + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.process.resident_memory.bytes + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.process.virtual_memory.bytes + - uuid: db2043aa454a440995a178e342d3eca5 + name: 'Vault: Token checks' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.core.check.token.rate + - uuid: 39770778f73c49b0a333d313b76f4020 + name: 'Vault: Token lookup' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.token.lookup.rate + - uuid: 6b23dff0bd364416b520cca9dab56b47 + name: 'Vault: Tokens count' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'HashiCorp Vault by HTTP' + key: vault.metrics.token diff --git a/Hikvision_camera_by_HTTP.yaml b/Hikvision_camera_by_HTTP.yaml new file mode 100644 index 0000000..ed63aab --- /dev/null +++ b/Hikvision_camera_by_HTTP.yaml @@ -0,0 +1,1503 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: d37f71c7e3f7469bab645852a69a2018 + name: 'Templates/Video surveillance' + templates: + - uuid: 3fb4020df2984b0ab64dfd8355ff5c65 + template: 'Hikvision camera by HTTP' + name: 'Hikvision camera by HTTP' + description: | + This template is designed for the effortless deployment of Hikvision cameras monitoring by Zabbix via HTTP and doesn't require any external scripts. + + Sample device overview page: + https://www.hikvision.com/en/products/IP-Products/Network-Cameras/ + + Setup: + + 1. Set the hostname or IP address of the Hikvision ISAPI host in the '{$HIKVISION_ISAPI_HOST}' macro. + + 2. Set the user name and password in the '{$PASSWORD}' and '{$USER}' macros. + + 3. Change other macros according to your camera configuration if necessary. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Video surveillance' + items: + - uuid: e889b3a7e6044f0284081f9d6427b416 + name: 'Boot loader released date' + type: DEPENDENT + key: hikvision_cam.boot_released_date + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.bootReleasedDate + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 61c6f0073e604a449d8f724d762cfb7f + name: 'Boot loader version' + type: DEPENDENT + key: hikvision_cam.boot_version + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: SOFTWARE_APP_E + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.bootVersion + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 247a70ed0cc543d69183a6a793cd9978 + name: 'CPU utilization' + type: DEPENDENT + key: hikvision_cam.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization in %' + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceStatus.CPUList.CPU.cpuUtilization + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_status + tags: + - tag: component + value: cpu + triggers: + - uuid: 0ae4dbcc05544fb7b67183fcf3b9654b + expression: 'min(/Hikvision camera by HTTP/hikvision_cam.cpu.util,5m)>{$CPU.UTIL.CRIT}' + name: 'Hikvision: High CPU utilization' + event_name: 'Hikvision: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 7e65f407b515429caf415820dd633b0e + name: 'Current device time' + type: DEPENDENT + key: hikvision_cam.current_device_time + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceStatus.currentDeviceTime + error_handler: DISCARD_VALUE + master_item: + key: hikvision_cam.get_status + tags: + - tag: component + value: system + - uuid: 42b0f3ae08cf4730a52ea2ddda6f5bae + name: 'Device description' + type: DEPENDENT + key: hikvision_cam.device_description + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: NOTES + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.deviceDescription + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 4abc7dcef6ec4b97bd1350d2e93f58d4 + name: 'Device ID' + type: DEPENDENT + key: hikvision_cam.device_id + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.deviceID + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: f4e6f9d05fea4489a9eaa47effe66ceb + name: 'Device location' + type: DEPENDENT + key: hikvision_cam.device_location + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: LOCATION + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.deviceLocation + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 278a04c86c22419886aa64fad8e05c9e + name: 'Device name' + type: DEPENDENT + key: hikvision_cam.device_name + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: NAME + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.deviceName + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 84d86e688a31402a82798f9e2ff04ab8 + name: 'Device type' + type: DEPENDENT + key: hikvision_cam.device_type + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: TYPE + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.deviceType + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 66ee550f4838455e9500561d790a76d1 + name: 'Encoder released date' + type: DEPENDENT + key: hikvision_cam.encoder_released_date + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: SOFTWARE_APP_D + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.encoderReleasedDate + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 4798d54b70ee445293c12b3a8038b8c8 + name: 'Encoder version' + type: DEPENDENT + key: hikvision_cam.encoder_version + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: SOFTWARE_APP_C + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.encoderVersion + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: ac6ee4d15c584709a7bdf2b89048aacc + name: 'Firmware released date' + type: DEPENDENT + key: hikvision_cam.firmware_released_date + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: SOFTWARE_APP_B + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.firmwareReleasedDate + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: eafe1a75a24c479cb5bf116be2272375 + name: 'Firmware version' + type: DEPENDENT + key: hikvision_cam.firmware_version + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: SOFTWARE_APP_A + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.firmwareVersion + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + triggers: + - uuid: 3c0b5a0046894a54803cd984cda13fa2 + expression: 'last(/Hikvision camera by HTTP/hikvision_cam.firmware_version,#1)<>last(/Hikvision camera by HTTP/hikvision_cam.firmware_version,#2) and length(last(/Hikvision camera by HTTP/hikvision_cam.firmware_version))>0' + name: 'Hikvision: Version has changed' + event_name: 'Hikvision: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Hikvision camera version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0ddd3af82fb64b75821dc1fab96c16ab + name: 'Get device info' + type: HTTP_AGENT + key: hikvision_cam.get_info + history: '0' + value_type: TEXT + trends: '0' + authtype: DIGEST + username: '{$USER}' + password: '{$PASSWORD}' + description: 'Used to get the device information' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"html":{"head":{"title":"Connection error"}}}' + - type: XML_TO_JSON + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '{"html":{"head":{"title":"Connection error"}}}' + url: 'http://{$HIKVISION_ISAPI_HOST}:{$HIKVISION_ISAPI_PORT}/ISAPI/System/deviceInfo' + status_codes: '200,401' + tags: + - tag: component + value: raw + - uuid: d0fc2ebf4ae140b68546e2425321f797 + name: 'Get device info: Login status' + type: DEPENDENT + key: hikvision_cam.get_info.login_status + delay: '0' + valuemap: + name: 'Login status' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + + if ("html" in data){ + if (data.html.head.title === "Document Error: Unauthorized") + {return 1} + else if (data.html.head.title === "Connection error") + {return 2} + } + return 0; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 1ad3e3c9f60043a58f63addc8768c887 + name: 'Get system status' + type: HTTP_AGENT + key: hikvision_cam.get_status + history: '0' + value_type: TEXT + trends: '0' + authtype: DIGEST + username: '{$USER}' + password: '{$PASSWORD}' + description: 'It is used to get the status information of the device' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"html":{"head":{"title":"Connection error"}}}' + - type: XML_TO_JSON + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '{"html":{"head":{"title":"Connection error"}}}' + url: 'http://{$HIKVISION_ISAPI_HOST}:{$HIKVISION_ISAPI_PORT}/ISAPI/System/status' + status_codes: '200,401' + tags: + - tag: component + value: raw + - uuid: ebca4ac32e2e4bfd8bf3cdae155a4ee6 + name: 'Get system status: Login status' + type: DEPENDENT + key: hikvision_cam.get_status.login_status + delay: '0' + valuemap: + name: 'Login status' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + + if ("html" in data){ + if (data.html.head.title === "Document Error: Unauthorized") + {return 1} + else if (data.html.head.title === "Connection error") + {return 2} + } + return 0; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_status + tags: + - tag: component + value: system + - uuid: 65f89830d9f041f9a1558936dfcffc5f + name: 'Get streaming channels' + type: HTTP_AGENT + key: hikvision_cam.get_streaming + history: '0' + value_type: TEXT + trends: '0' + authtype: DIGEST + username: '{$USER}' + password: '{$PASSWORD}' + description: 'Used to get the properties of streaming channels for the device' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"html":{"head":{"title":"Connection error"}}}' + - type: XML_TO_JSON + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '{"html":{"head":{"title":"Connection error"}}}' + url: 'http://{$HIKVISION_ISAPI_HOST}:{$HIKVISION_ISAPI_PORT}/ISAPI/Streaming/channels' + status_codes: '200,401' + tags: + - tag: component + value: raw + - uuid: c90527e1a2a948b5a5f678ec0d981954 + name: 'Get streaming channels: Login status' + type: DEPENDENT + key: hikvision_cam.get_streaming.login_status + delay: '0' + valuemap: + name: 'Login status' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + + if ("html" in data){ + if (data.html.head.title === "Document Error: Unauthorized") + {return 1} + else if (data.html.head.title === "Connection error") + {return 2} + } + return 0; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: system + - uuid: 03aecf4021c2402bb415798ef339b914 + name: 'Hardware version' + type: DEPENDENT + key: hikvision_cam.hardware_version + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.hardwareVersion + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: da9ec53ecc6b4c25b6539666eb9f6544 + name: MACaddress + type: DEPENDENT + key: hikvision_cam.mac_address + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: MACADDRESS_A + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.macAddress + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: network + - uuid: d1d026c6240c493387374b756b04452f + name: 'Memory utilization' + type: DEPENDENT + key: hikvision_cam.memory.usage + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization in %' + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceStatus.MemoryList.Memory.memoryUsage + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_status + tags: + - tag: component + value: memory + triggers: + - uuid: 62cfa0b87f234f1cb67b9b5b6b2fa8f2 + expression: 'min(/Hikvision camera by HTTP/hikvision_cam.memory.usage,5m)>{$MEMORY.UTIL.MAX}' + name: 'Hikvision: High memory utilization' + event_name: 'Hikvision: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: b295689d34934401b0eda407edaee426 + name: Model + type: DEPENDENT + key: hikvision_cam.model + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: b6715593c52a4255ae6a4f68c3de6b6d + name: 'Serial number' + type: DEPENDENT + key: hikvision_cam.serial_number + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: SERIALNO_A + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.serialNumber + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + triggers: + - uuid: 281999cbd6324aacbbb86b4945000c60 + expression: 'last(/Hikvision camera by HTTP/hikvision_cam.serial_number,#1)<>last(/Hikvision camera by HTTP/hikvision_cam.serial_number,#2) and length(last(/Hikvision camera by HTTP/hikvision_cam.serial_number))>0' + name: 'Hikvision: Camera has been replaced' + event_name: 'Hikvision: Camera has been replaced (new serial number received)' + priority: INFO + description: 'Camera serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 72ffbe3d976b437ab5df06b32a5c4b12 + name: 'Supported beep' + type: DEPENDENT + key: hikvision_cam.support_beep + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.supportBeep + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 03d220eb782346269de6b0867ed3acd3 + name: 'Supported video loss' + type: DEPENDENT + key: hikvision_cam.support_video_loss + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.supportVideoLoss + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: d29814c630f94d5cabdc350d8b161b5b + name: 'System contact' + type: DEPENDENT + key: hikvision_cam.system_contact + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: CONTACT + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.systemContact + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 8678cee9999b45f1975f9639c8c197af + name: 'Telecontrol ID' + type: DEPENDENT + key: hikvision_cam.telecontrol_id + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceInfo.telecontrolID + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: hikvision_cam.get_info + tags: + - tag: component + value: system + - uuid: 4e680a5e347948fe8118b58c2c62d55f + name: Uptime + type: DEPENDENT + key: hikvision_cam.uptime + delay: '0' + trends: '0' + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + preprocessing: + - type: JSONPATH + parameters: + - $.DeviceStatus.deviceUpTime + error_handler: DISCARD_VALUE + master_item: + key: hikvision_cam.get_status + tags: + - tag: component + value: system + triggers: + - uuid: f46b43fe9b354990929e7fdb80b792ec + expression: 'last(/Hikvision camera by HTTP/hikvision_cam.uptime)<10m' + name: 'Hikvision: Camera has been restarted' + event_name: 'Hikvision: Camera has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 00647c38d30d44378bdcf573178063ec + name: 'PTZ discovery' + type: HTTP_AGENT + key: hikvision_cam.ptz.discovery + delay: 1d + authtype: DIGEST + username: '{$USER}' + password: '{$PASSWORD}' + item_prototypes: + - uuid: bb3be316a5fc4b25bd15c903909b7746 + name: 'Channel "{#PTZ_CHANNEL_ID}": Get PTZ info: Channel "{#PTZ_CHANNEL_ID}": Login status' + type: DEPENDENT + key: 'hikvision_cam.get_ptz.login_status[{#PTZ_CHANNEL_ID}]' + delay: '0' + valuemap: + name: 'Login status' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + + if ("html" in data){ + if (data.html.head.title === "Document Error: Unauthorized") + {return 1} + else if (data.html.head.title === "Connection error") + {return 2} + } + return 0; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hikvision_cam.get_ptz[{#PTZ_CHANNEL_ID}]' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 7ce39ff8b5f14fcbb7b575f9c44a9efd + expression: 'last(/Hikvision camera by HTTP/hikvision_cam.get_ptz.login_status[{#PTZ_CHANNEL_ID}])=1' + name: 'Hikvision: Channel "{#PTZ_CHANNEL_ID}": Authorisation error' + priority: WARNING + description: 'Check the correctness of the authorization data' + manual_close: 'YES' + dependencies: + - name: 'Hikvision: Authorisation error' + expression: | + last(/Hikvision camera by HTTP/hikvision_cam.get_info.login_status)=1 or + last(/Hikvision camera by HTTP/hikvision_cam.get_streaming.login_status)=1 or + last(/Hikvision camera by HTTP/hikvision_cam.get_status.login_status)=1 + tags: + - tag: scope + value: notice + - uuid: c702b7321b664f5d950b0d879bbd7371 + expression: 'last(/Hikvision camera by HTTP/hikvision_cam.get_ptz.login_status[{#PTZ_CHANNEL_ID}])=2' + name: 'Hikvision: Channel "{#PTZ_CHANNEL_ID}": Error receiving data' + priority: WARNING + description: 'Check the availability of the HTTP port' + manual_close: 'YES' + dependencies: + - name: 'Hikvision: Error receiving data' + expression: | + last(/Hikvision camera by HTTP/hikvision_cam.get_info.login_status)=2 or + last(/Hikvision camera by HTTP/hikvision_cam.get_streaming.login_status)=2 or + last(/Hikvision camera by HTTP/hikvision_cam.get_status.login_status)=2 + tags: + - tag: scope + value: notice + - uuid: 6799d99ad02743a1b294b80bbed52280 + name: 'Channel "{#PTZ_CHANNEL_ID}": Get PTZ info' + type: HTTP_AGENT + key: 'hikvision_cam.get_ptz[{#PTZ_CHANNEL_ID}]' + history: '0' + value_type: TEXT + trends: '0' + authtype: DIGEST + username: '{$USER}' + password: '{$PASSWORD}' + description: 'High precision positioning which is accurate to a bit after the decimal point' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"html":{"head":{"title":"Connection error"}}}' + - type: XML_TO_JSON + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '{"html":{"head":{"title":"Connection error"}}}' + url: 'http://{$HIKVISION_ISAPI_HOST}:{$HIKVISION_ISAPI_PORT}/ISAPI/PTZCtrl/channels/{#PTZ_CHANNEL_ID}/status' + status_codes: '200,401' + tags: + - tag: component + value: raw + - uuid: 16225fb78f414308829d035cd32f8468 + name: 'Channel "{#PTZ_CHANNEL_ID}": Absolute zoom' + type: DEPENDENT + key: 'hikvision_cam.ptz.absolute_zoom[{#PTZ_CHANNEL_ID}]' + delay: '0' + value_type: FLOAT + units: '!x' + preprocessing: + - type: JSONPATH + parameters: + - $.PTZStatus.AbsoluteHigh.absoluteZoom + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.1' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hikvision_cam.get_ptz[{#PTZ_CHANNEL_ID}]' + tags: + - tag: component + value: ptz + - tag: ptz-id + value: '{#PTZ_CHANNEL_ID}' + - uuid: 6282376b25a9462e84b748d011f2fbf6 + name: 'Channel "{#PTZ_CHANNEL_ID}": Azimuth' + type: DEPENDENT + key: 'hikvision_cam.ptz.azimuth[{#PTZ_CHANNEL_ID}]' + delay: '0' + value_type: FLOAT + units: '!°' + preprocessing: + - type: JSONPATH + parameters: + - $.PTZStatus.AbsoluteHigh.azimuth + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.1' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hikvision_cam.get_ptz[{#PTZ_CHANNEL_ID}]' + tags: + - tag: component + value: ptz + - tag: ptz-id + value: '{#PTZ_CHANNEL_ID}' + - uuid: da148a9826724869a58d286a07edc036 + name: 'Channel "{#PTZ_CHANNEL_ID}": Elevation' + type: DEPENDENT + key: 'hikvision_cam.ptz.elevation[{#PTZ_CHANNEL_ID}]' + delay: '0' + value_type: FLOAT + units: '!°' + preprocessing: + - type: JSONPATH + parameters: + - $.PTZStatus.AbsoluteHigh.elevation + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.1' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'hikvision_cam.get_ptz[{#PTZ_CHANNEL_ID}]' + tags: + - tag: component + value: ptz + - tag: ptz-id + value: '{#PTZ_CHANNEL_ID}' + trigger_prototypes: + - uuid: dbf391b5e18b4e018d889e460b7acc74 + expression: | + last(/Hikvision camera by HTTP/hikvision_cam.ptz.absolute_zoom[{#PTZ_CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.ptz.absolute_zoom[{#PTZ_CHANNEL_ID}],#2) or + last(/Hikvision camera by HTTP/hikvision_cam.ptz.azimuth[{#PTZ_CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.ptz.azimuth[{#PTZ_CHANNEL_ID}],#2) or + last(/Hikvision camera by HTTP/hikvision_cam.ptz.elevation[{#PTZ_CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.ptz.elevation[{#PTZ_CHANNEL_ID}],#2) + name: 'Hikvision: Channel "{#PTZ_CHANNEL_ID}": PTZ position changed' + priority: INFO + description: 'The direction of the camera has changed' + manual_close: 'YES' + tags: + - tag: scope + value: notice + url: 'http://{$HIKVISION_ISAPI_HOST}:{$HIKVISION_ISAPI_PORT}/ISAPI/PTZCtrl/channels' + status_codes: '200,401' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + var out = []; + + if ("PTZChannel" in data.PTZChannelList) { + out.push({ + "{#PTZ_CHANNEL_ID}": data.PTZChannelList.PTZChannel.id + }) + } + + return JSON.stringify(out); + - uuid: 0bf00b49acd448ddbd1f4fac7630c40e + name: 'Streaming channels discovery' + type: HTTP_AGENT + key: hikvision_cam.streaming.discovery + delay: 1d + authtype: DIGEST + username: '{$USER}' + password: '{$PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#CHANNEL_ENABLED}' + value: 'true' + formulaid: A + item_prototypes: + - uuid: 90ef1dd6e3d04ce8ab84731377c07ea6 + name: 'Channel "{#CHANNEL_ID}": Constant bitRate' + type: DEPENDENT + key: 'hikvision_cam.constant_bit_rate[{#CHANNEL_ID}]' + delay: '0' + units: '!kbit/s' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.constantBitRate' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$.[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: b992569a9db346ac85886fe7a5e55074 + name: 'Channel "{#CHANNEL_ID}": Fixed quality' + type: DEPENDENT + key: 'hikvision_cam.fixed_quality[{#CHANNEL_ID}]' + delay: '0' + units: '%' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.fixedQuality' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: 7343f2206cfd4942976b5dca214a7558 + name: 'Channel "{#CHANNEL_ID}": GovLength' + type: DEPENDENT + key: 'hikvision_cam.gov_length[{#CHANNEL_ID}]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.GovLength' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: ef1df8955ab84efab5ae9be340715431 + name: 'Channel "{#CHANNEL_ID}": H264Profile' + type: DEPENDENT + key: 'hikvision_cam.h264Profile[{#CHANNEL_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.H264Profile' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: ce45290377cc402bacda95ea8a136946 + name: 'Channel "{#CHANNEL_ID}": Key frame interval' + type: DEPENDENT + key: 'hikvision_cam.key_frame_interval[{#CHANNEL_ID}]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.keyFrameInterval' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.01' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: 4d621b75e2ef432a9cab88b61718125d + name: 'Channel "{#CHANNEL_ID}": Frame rate (max)' + type: DEPENDENT + key: 'hikvision_cam.max_frame_rate[{#CHANNEL_ID}]' + delay: '0' + units: '!fps' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.maxFrameRate' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.01' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: 12f1fadb9d364e6b96ab01b468c94891 + name: 'Channel "{#CHANNEL_ID}": Smoothing' + type: DEPENDENT + key: 'hikvision_cam.smoothing[{#CHANNEL_ID}]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.smoothing' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: 1854ab4fd6f14adf90c0ddb42712a4ef + name: 'Channel "{#CHANNEL_ID}": Snapshot image type' + type: DEPENDENT + key: 'hikvision_cam.snap_shot_image_type[{#CHANNEL_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.snapShotImageType' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: d1523faa362842ef9313ffc15a6d5e8c + name: 'Channel "{#CHANNEL_ID}": VBR lower' + type: DEPENDENT + key: 'hikvision_cam.vbr_lower_cap[{#CHANNEL_ID}]' + delay: '0' + units: '!kbit/s' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.vbrLowerCap' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: 725669dc6bfd4871a3133ab7fcd4c571 + name: 'Channel "{#CHANNEL_ID}": VBR upper' + type: DEPENDENT + key: 'hikvision_cam.vbr_upper_cap[{#CHANNEL_ID}]' + delay: '0' + units: '!kbit/s' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.vbrUpperCap' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: 96ef96886e9244f08cf245f4253839b2 + name: 'Channel "{#CHANNEL_ID}": Video codec type' + type: DEPENDENT + key: 'hikvision_cam.video_codec_type[{#CHANNEL_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.videoCodecType' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: 59e8f0440ec04306a0c79cc8c9a5c91f + name: 'Channel "{#CHANNEL_ID}": Video quality control type' + type: DEPENDENT + key: 'hikvision_cam.video_quality_control_type[{#CHANNEL_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.videoQualityControlType' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: 18f5eed445154a42828cea423db9ebec + name: 'Channel "{#CHANNEL_ID}": Resolution height' + type: DEPENDENT + key: 'hikvision_cam.video_resolution_height[{#CHANNEL_ID}]' + delay: '0' + units: '!px' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.videoResolutionHeight' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: 13f343a9c3804846a31867e942602199 + name: 'Channel "{#CHANNEL_ID}": Resolution width' + type: DEPENDENT + key: 'hikvision_cam.video_resolution_width[{#CHANNEL_ID}]' + delay: '0' + units: '!px' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.videoResolutionWidth' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + - uuid: 2ccd4b38faf046b88a0983249ca0c4f6 + name: 'Channel "{#CHANNEL_ID}": Video scan type' + type: DEPENDENT + key: 'hikvision_cam.video_scan_type[{#CHANNEL_ID}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$.StreamingChannelList.StreamingChannel[?(@.id=={#CHANNEL_ID})].Video.videoScanType' + error_handler: DISCARD_VALUE + - type: JSONPATH + parameters: + - '$[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: hikvision_cam.get_streaming + tags: + - tag: component + value: stream + - tag: stream-id + value: '{#CHANNEL_ID}' + trigger_prototypes: + - uuid: 16cf4d23b3c8410586703efca81ebe52 + expression: | + last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_height[{#CHANNEL_ID}])<>{$HIKVISION_STREAM_HEIGHT} or + last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_width[{#CHANNEL_ID}])<>{$HIKVISION_STREAM_WIDTH} + name: 'Hikvision: Channel "{#CHANNEL_ID}": Invalid video stream resolution parameters' + priority: WARNING + description: | + expected: {$HIKVISION_STREAM_WIDTH} px x {$HIKVISION_STREAM_HEIGHT} px + received: {ITEM.LASTVALUE2} x {ITEM.LASTVALUE1} + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4f2a512d8f95414495dec5670e5e9680 + expression: | + last(/Hikvision camera by HTTP/hikvision_cam.fixed_quality[{#CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.fixed_quality[{#CHANNEL_ID}],#2) or + last(/Hikvision camera by HTTP/hikvision_cam.constant_bit_rate[{#CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.constant_bit_rate[{#CHANNEL_ID}],#2) or + last(/Hikvision camera by HTTP/hikvision_cam.video_quality_control_type[{#CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.video_quality_control_type[{#CHANNEL_ID}],#2) or + last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_width[{#CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_width[{#CHANNEL_ID}],#2) or + last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_height[{#CHANNEL_ID}],#1)<>last(/Hikvision camera by HTTP/hikvision_cam.video_resolution_height[{#CHANNEL_ID}],#2) + name: 'Hikvision: Channel "{#CHANNEL_ID}": Parameters of video stream are changed' + priority: INFO + manual_close: 'YES' + tags: + - tag: scope + value: notice + url: 'http://{$HIKVISION_ISAPI_HOST}:{$HIKVISION_ISAPI_PORT}/ISAPI/Streaming/channels' + status_codes: '200,401' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + var out = []; + + data.StreamingChannelList.StreamingChannel.forEach(function (field) { + out.push({ + "{#CHANNEL_ID}": field.id, + "{#CHANNEL_NAME}": field.channelName, + "{#CHANNEL_ENABLED}": field.enabled + }); + }) + + return JSON.stringify(out); + overrides: + - name: 'trigger disabled non main channels' + step: '1' + filter: + conditions: + - macro: '{#CHANNEL_ID}' + value: '{$HIKVISION_MAIN_CHANNEL_ID}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Invalid video stream resolution parameters' + discover: NO_DISCOVER + status: ENABLED + tags: + - tag: class + value: device + - tag: target + value: cctv + - tag: target + value: hikvision + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$HIKVISION_ISAPI_HOST}' + value: '' + description: 'The hostname or IP address of the Hikvision ISAPI host.' + - macro: '{$HIKVISION_ISAPI_PORT}' + value: '80' + description: 'ISAPI port on device' + - macro: '{$HIKVISION_MAIN_CHANNEL_ID}' + value: '101' + description: 'Main video stream ID' + - macro: '{$HIKVISION_STREAM_HEIGHT}' + value: '1080' + description: 'Main video stream image height' + - macro: '{$HIKVISION_STREAM_WIDTH}' + value: '1920' + description: 'Main video stream image width' + - macro: '{$MEMORY.UTIL.MAX}' + value: '95' + - macro: '{$PASSWORD}' + type: SECRET_TEXT + - macro: '{$USER}' + value: admin + dashboards: + - uuid: db988ae8a2044b4da5e0ca388bb92d39 + name: 'Hikvision camera: Overview' + pages: + - widgets: + - type: graph + name: 'Hikvision camera: CPU utilization' + width: '36' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Hikvision camera by HTTP' + name: 'Hikvision camera: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Hikvision camera: Memory' + x: '36' + width: '36' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Hikvision camera by HTTP' + name: 'Hikvision camera: Memory' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 4c14241141504a9d852d83965c309f31 + name: 'Login status' + mappings: + - value: '0' + newvalue: OK + - value: '1' + newvalue: Unauthorized + - value: '2' + newvalue: 'Connection error' + triggers: + - uuid: 2bd6d99edd0f4b2d8045e43e4586b637 + expression: | + last(/Hikvision camera by HTTP/hikvision_cam.get_info.login_status)=1 or + last(/Hikvision camera by HTTP/hikvision_cam.get_streaming.login_status)=1 or + last(/Hikvision camera by HTTP/hikvision_cam.get_status.login_status)=1 + name: 'Hikvision: Authorisation error' + priority: WARNING + description: 'Check the correctness of the authorization data' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 58b5d210fe24434b9aaa365fba764742 + expression: | + last(/Hikvision camera by HTTP/hikvision_cam.get_info.login_status)=2 or + last(/Hikvision camera by HTTP/hikvision_cam.get_streaming.login_status)=2 or + last(/Hikvision camera by HTTP/hikvision_cam.get_status.login_status)=2 + name: 'Hikvision: Error receiving data' + priority: WARNING + description: 'Check the availability of the HTTP port' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 30cfa75b2afb490f8448a63366577144 + name: 'Hikvision camera: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Hikvision camera by HTTP' + key: hikvision_cam.cpu.util + - uuid: 0cd19b0f8f57435e8b3e1284574e4b79 + name: 'Hikvision camera: Memory' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 1A7C11 + item: + host: 'Hikvision camera by HTTP' + key: hikvision_cam.memory.usage diff --git a/Huawei_OceanStor_5300_V5_by_SNMP.yaml b/Huawei_OceanStor_5300_V5_by_SNMP.yaml new file mode 100644 index 0000000..e55d402 --- /dev/null +++ b/Huawei_OceanStor_5300_V5_by_SNMP.yaml @@ -0,0 +1,1926 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 7c2cb727f85b492d88cd56e17127c64d + name: Templates/SAN + templates: + - uuid: c5564dd58c394b969d5365cc5de3e7f8 + template: 'Huawei OceanStor 5300 V5 by SNMP' + name: 'Huawei OceanStor 5300 V5 by SNMP' + description: | + The template to monitor SAN Huawei OceanStor 5300 V5 by Zabbix SNMP agent. + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/418855-discussion-thread-for-official-zabbix-template-huawei-oceanstor + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/SAN + items: + - uuid: 86d978c810024643829d3192156e9e6c + name: Status + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.1.3.0]' + key: 'huawei.5300.v5[status]' + description: 'System running status.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + - uuid: 04c8d7f53668449ea32c4ed611b71237 + name: 'Capacity total' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.1.5.0]' + key: 'huawei.5300.v5[totalCapacity]' + units: B + description: 'Total capacity of a device.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: storage + - uuid: ef77f126052b4f9e9cddafdab20577d1 + name: 'Capacity used' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.1.4.0]' + key: 'huawei.5300.v5[usedCapacity]' + units: B + description: 'Used capacity of a device.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: storage + - uuid: 0a2e129d84d14e88bf953f3a9ca76b46 + name: Version + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.1.6.0]' + key: 'huawei.5300.v5[version]' + value_type: CHAR + trends: '0' + description: 'The device version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: b6eb791cc14644dfb0a69a2cce150ab1 + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[version],#1)<>last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[version],#2) and length(last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[version]))>0' + name: 'Huawei OceanStor 5300 V5: Storage version has been changed' + event_name: 'Huawei OceanStor 5300 V5: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'OceanStor 5300 V5 version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 030530f5193246f4b983ec802030e49b + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ef6b5dc40f9a49599aae97c2cf68d3cb + expression: 'max(/Huawei OceanStor 5300 V5 by SNMP/icmpping,#3)=0' + name: 'Huawei OceanStor 5300 V5: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: c82fa3f20c7443e4849ea8e8aec1e49d + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c9765f7f271d46c99ad7dd45efa79849 + expression: 'min(/Huawei OceanStor 5300 V5 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Huawei OceanStor 5300 V5 by SNMP/icmppingloss,5m)<100' + name: 'Huawei OceanStor 5300 V5: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Huawei OceanStor 5300 V5: Unavailable by ICMP ping' + expression: 'max(/Huawei OceanStor 5300 V5 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0a95c43c70e54ad49f073fee69a2452d + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b8815a9e952047e09d1e657cea5d538e + expression: 'avg(/Huawei OceanStor 5300 V5 by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Huawei OceanStor 5300 V5: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Huawei OceanStor 5300 V5: High ICMP ping loss' + expression: 'min(/Huawei OceanStor 5300 V5 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Huawei OceanStor 5300 V5 by SNMP/icmppingloss,5m)<100' + - name: 'Huawei OceanStor 5300 V5: Unavailable by ICMP ping' + expression: 'max(/Huawei OceanStor 5300 V5 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2ec396a7adf64637ae453d7f26cd5b20 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: e98719af84414ef5ab3dd788c7d2d72f + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: cf59fb53834d4b14bdb0251e66c5143f + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f54aca2b926e4d4d980f980acb0aefac + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: fed7a954ea614cb086b901b2e6957621 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 354fe7cd2632425b9f937e8714d79798 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 72a31faa805b40e795a57649c724da1e + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/system.name,#1)<>last(/Huawei OceanStor 5300 V5 by SNMP/system.name,#2) and length(last(/Huawei OceanStor 5300 V5 by SNMP/system.name))>0' + name: 'Huawei OceanStor 5300 V5: System name has changed' + event_name: 'Huawei OceanStor 5300 V5: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: f14eaa207ac9480995d2a2a10bea1467 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: bf571c06cc264eca89d68f0b0b7559f7 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 197767da1b3c4c4f8f3c59ab3c3fc5b8 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b0c4103eac9447ee9f7f31627baf4eea + expression: 'max(/Huawei OceanStor 5300 V5 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Huawei OceanStor 5300 V5: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Huawei OceanStor 5300 V5: Unavailable by ICMP ping' + expression: 'max(/Huawei OceanStor 5300 V5 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 6de9606d1f594546b76e79bbb72a8a56 + name: 'BBU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ID},1.3.6.1.4.1.34774.4.1.23.5.5.1.1,{#LOCATION},1.3.6.1.4.1.34774.4.1.23.5.5.1.2]' + key: huawei.5300.bbu.discovery + delay: 1h + description: 'Discovery of BBU' + item_prototypes: + - uuid: e9632c3596954729a8d49039ea787efd + name: 'BBU {#ID} on {#LOCATION}: Health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.5.1.3.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoBBUHealthStatus, "{#ID}:{#LOCATION}"]' + description: | + Health status of a BBU. For details, see definition of Enum Values (HEALTH_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: bbu + value: '{#ID}' + - tag: component + value: health + - tag: component + value: power + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: fb73cddd30164af8aa243bd3e2b2f803 + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoBBUHealthStatus, "{#ID}:{#LOCATION}"])<>1' + name: 'Huawei OceanStor 5300 V5: BBU {#ID} on {#LOCATION}: Health status is not Normal' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: a861b76edde842448f39afd9788fa852 + name: 'BBU {#ID} on {#LOCATION}: Running status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.5.1.4.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoBBURunningStatus, "{#ID}:{#LOCATION}"]' + description: | + Running status of a BBU. For details, see definition of Enum Values (RUNNING_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: bbu + value: '{#ID}' + - tag: component + value: health + - tag: component + value: power + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: 15d809b0be1c4d1da9158a83d303789c + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoBBURunningStatus, "{#ID}:{#LOCATION}"])<>2' + name: 'Huawei OceanStor 5300 V5: BBU {#ID} on {#LOCATION}: Running status is not Online' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: c676eae5d7c548e788f7addc2343389f + name: 'Controllers discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ID},1.3.6.1.4.1.34774.4.1.23.5.2.1.1]' + key: huawei.5300.controllers.discovery + delay: 1h + description: 'Discovery of controllers' + item_prototypes: + - uuid: f9023618aa2b4c23a81c8cc3793bac0d + name: 'Controller {#ID}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.2.1.8.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoControllerCPUUsage, "{#ID}"]' + value_type: FLOAT + units: '%' + description: 'CPU usage of a controller {#ID}.' + tags: + - tag: component + value: cpu + - tag: controller + value: '{#ID}' + trigger_prototypes: + - uuid: a51b4e42efaa4924b6c2990c9c0abf30 + expression: 'min(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoControllerCPUUsage, "{#ID}"],5m)>{$CPU.UTIL.CRIT}' + name: 'Huawei OceanStor 5300 V5: Controller {#ID}: High CPU utilization' + event_name: 'Huawei OceanStor 5300 V5: Controller {#ID}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 99798c647f2344d2896b644f2bd7e1c0 + name: 'Controller {#ID}: Health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.2.1.2.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoControllerHealthStatus, "{#ID}"]' + description: | + Controller health status. For details, see definition of Enum Values (HEALTH_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: controller + value: '{#ID}' + trigger_prototypes: + - uuid: 52cf517dd30146578b32fd1399ec81cc + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoControllerHealthStatus, "{#ID}"])<>1' + name: 'Huawei OceanStor 5300 V5: Controller {#ID}: Health status is not Normal' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 42b61bf322fb495d94802c23f85f22b2 + name: 'Controller {#ID}: Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.2.1.9.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoControllerMemoryUsage, "{#ID}"]' + units: '%' + description: 'Memory usage of a controller {#ID}.' + tags: + - tag: component + value: memory + - tag: controller + value: '{#ID}' + trigger_prototypes: + - uuid: 8d4fe305737f41a595c1d2efb3e8a153 + expression: 'min(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoControllerMemoryUsage, "{#ID}"],{$HUAWEI.5300.MEM.MAX.TIME})>{$HUAWEI.5300.MEM.MAX.WARN}' + name: 'Huawei OceanStor 5300 V5: Controller {#ID}: Memory usage is too high' + event_name: 'Huawei OceanStor 5300 V5: Controller {#ID}: Memory usage is too high (over {$HUAWEI.5300.MEM.MAX.WARN} for {$HUAWEI.5300.MEM.MAX.TIME})' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: 4797e9608d2445e385ad9db6097feeeb + name: 'Controller {#ID}: Role' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.2.1.6.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoControllerRole, "{#ID}"]' + description: 'Controller role.' + valuemap: + name: 'Huawei storage: Controller role' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - tag: controller + value: '{#ID}' + trigger_prototypes: + - uuid: 8b8ec3f843e74533a43f24393004cc84 + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoControllerRole, "{#ID}"],#1)<>last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoControllerRole, "{#ID}"],#2)' + name: 'Huawei OceanStor 5300 V5: Controller {#ID}: Role has been changed' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b9a0053b16c04cefbdfc320659d79754 + name: 'Controller {#ID}: Running status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.2.1.3.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoControllerRunningStatus, "{#ID}"]' + description: | + Controller running status. For details, see definition of Enum Values (RUNNING_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: controller + value: '{#ID}' + trigger_prototypes: + - uuid: 6ab64eb5e1c146838ad48b7b9b063587 + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoControllerRunningStatus, "{#ID}"])<>27' + name: 'Huawei OceanStor 5300 V5: Controller {#ID}: Running status is not Online' + priority: AVERAGE + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: ac083f05484846e6a8c4799410e1f566 + name: 'Controller {#ID}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwInfoControllerCPUUsage, "{#ID}"]' + - uuid: 3a0b0a1fcdd9402cb67e93903049b070 + name: 'Disks discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ID},1.3.6.1.4.1.34774.4.1.23.5.1.1.1,{#MODEL},1.3.6.1.4.1.34774.4.1.23.5.1.1.12,{#LOCATION},1.3.6.1.4.1.34774.4.1.23.5.1.1.4]' + key: huawei.5300.disks.discovery + delay: 1h + description: 'Discovery of disks' + item_prototypes: + - uuid: 4952b2d54c3a4bb98e26f8221d2833a8 + name: 'Disk {#MODEL} on {#LOCATION}: Health score' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.1.1.25.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoDiskHealthMark, "{#ID}"]' + description: 'Health score of a disk. If the value is 255, indicating invalid.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: disk + value: '{#MODEL}' + - tag: location + value: '{#LOCATION}' + - uuid: d30c2d9d18d54af08c18bd35b5664a0d + name: 'Disk {#MODEL} on {#LOCATION}: Health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.1.1.2.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoDiskHealthStatus, "{#ID}"]' + description: | + Disk health status. For details, see definition of Enum Values (HEALTH_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: disk + value: '{#MODEL}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: fc1c8d30f09c49a3999e282bff6ea370 + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoDiskHealthStatus, "{#ID}"])<>1' + name: 'Huawei OceanStor 5300 V5: Disk {#MODEL} on {#LOCATION}: Health status is not Normal' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: d5f1c54d524847ebae2015968e772d92 + name: 'Disk {#MODEL} on {#LOCATION}: Running status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.1.1.3.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoDiskRunningStatus, "{#ID}"]' + description: | + Disk running status. For details, see definition of Enum Values (RUNNING_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: disk + value: '{#MODEL}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: 53aaf06848a346f188799d1cbb5d948f + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoDiskRunningStatus, "{#ID}"])<>27' + name: 'Huawei OceanStor 5300 V5: Disk {#MODEL} on {#LOCATION}: Running status is not Online' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 769abd2f1a8d43cda52c8021c20fe3c4 + name: 'Disk {#MODEL} on {#LOCATION}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.1.1.11.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoDiskTemperature, "{#ID}"]' + units: °C + description: 'Disk temperature.' + tags: + - tag: component + value: environment + - tag: disk + value: '{#MODEL}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: 906de152d3594f1d8cc15b4b717d6202 + expression: 'min(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoDiskTemperature, "{#ID}"],{$HUAWEI.5300.DISK.TEMP.MAX.TIME})>{$HUAWEI.5300.DISK.TEMP.MAX.WARN:"{#MODEL}"}' + name: 'Huawei OceanStor 5300 V5: Disk {#MODEL} on {#LOCATION}: Temperature is too high' + event_name: 'Huawei OceanStor 5300 V5: Disk {#MODEL} on {#LOCATION}: Temperature is too high (over {$HUAWEI.5300.DISK.TEMP.MAX.WARN:"{#MODEL}"} for {$HUAWEI.5300.DISK.TEMP.MAX.TIME})' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: HIGH + tags: + - tag: scope + value: availability + - tag: scope + value: notice + - uuid: 21e6235b6b314ce6a6392aafc9a3de07 + name: 'Enclosure discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#NAME},1.3.6.1.4.1.34774.4.1.23.5.6.1.2]' + key: huawei.5300.enclosure.discovery + delay: 1h + description: 'Discovery of enclosures' + item_prototypes: + - uuid: a2be3a03bccf48a0baa067d8ef83a3b1 + name: 'Enclosure {#NAME}: Health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.6.1.4.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoEnclosureHealthStatus, "{#NAME}"]' + description: | + Enclosure health status. For details, see definition of Enum Values (HEALTH_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: 9b8fb5b02b0b4158a2b564f47281f716 + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoEnclosureHealthStatus, "{#NAME}"])<>1' + name: 'Huawei OceanStor 5300 V5: Enclosure {#NAME}: Health status is not Normal' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: b96af65318d64932bc13e8e81155644c + name: 'Enclosure {#NAME}: Running status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.6.1.5.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoEnclosureRunningStatus, "{#NAME}"]' + description: | + Enclosure running status. For details, see definition of Enum Values (RUNNING_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: 3c430a2073ff42d9908490858c9c2817 + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoEnclosureRunningStatus, "{#NAME}"])<>27' + name: 'Huawei OceanStor 5300 V5: Enclosure {#NAME}: Running status is not Online' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 37fa5a5f2d7d440dbb38781bddf5cd46 + name: 'Enclosure {#NAME}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.6.1.8.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoEnclosureTemperature, "{#NAME}"]' + units: °C + description: 'Enclosure temperature.' + tags: + - tag: component + value: environment + - tag: enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: 622fcc16c03e4ba4ad8371ea5c1c314f + expression: 'min(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoEnclosureTemperature, "{#NAME}"],{$HUAWEI.5300.TEMP.MAX.TIME})>{$HUAWEI.5300.TEMP.MAX.WARN}' + name: 'Huawei OceanStor 5300 V5: Enclosure {#NAME}: Temperature is too high' + event_name: 'Huawei OceanStor 5300 V5: Enclosure {#NAME}: Temperature is too high (over {$HUAWEI.5300.TEMP.MAX.WARN} for {$HUAWEI.5300.TEMP.MAX.TIME})' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: HIGH + tags: + - tag: scope + value: availability + - tag: scope + value: notice + - uuid: ae390e1c100d490ab4e878bac8951744 + name: 'FANs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ID},1.3.6.1.4.1.34774.4.1.23.5.4.1.1,{#LOCATION},1.3.6.1.4.1.34774.4.1.23.5.4.1.2]' + key: huawei.5300.fan.discovery + delay: 1h + description: 'Discovery of FANs' + item_prototypes: + - uuid: c75f70a1c6d44a87aec0b27c3d9fbf5e + name: 'FAN {#ID} on {#LOCATION}: Health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.4.1.3.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoFanHealthStatus, "{#ID}:{#LOCATION}"]' + description: | + Health status of a fan. For details, see definition of Enum Values (HEALTH_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: fan + value: '{#ID}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: 1f41c20696d44eb29a1273718c9faf2f + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoFanHealthStatus, "{#ID}:{#LOCATION}"])<>1' + name: 'Huawei OceanStor 5300 V5: FAN {#ID} on {#LOCATION}: Health status is not Normal' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 800d348ca4394215800c227b421e9bea + name: 'FAN {#ID} on {#LOCATION}: Running status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.5.4.1.4.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoFanRunningStatus, "{#ID}:{#LOCATION}"]' + description: | + Operating status of a fan. For details, see definition of Enum Values (RUNNING_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: fan + value: '{#ID}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: c225c9d853184d579d18c27f7e906fd2 + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoFanRunningStatus, "{#ID}:{#LOCATION}"])<>2' + name: 'Huawei OceanStor 5300 V5: FAN {#ID} on {#LOCATION}: Running status is not Running' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: aeb30b2aec4842bfb0a9f946988783a2 + name: 'LUNs discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#NAME},1.3.6.1.4.1.34774.4.1.19.9.4.1.2]' + key: huawei.5300.lun.discovery + delay: 1h + description: 'Discovery of LUNs' + item_prototypes: + - uuid: d434317e77514a18907a400f68ad773e + name: 'LUN {#NAME}: Average total I/O latency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.4.1.13.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfLunAverageIOResponseTime, "{#NAME}"]' + units: '!ms' + description: 'Average I/O latency of the node in milliseconds.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + trigger_prototypes: + - uuid: aae494cb840049fb83df354c13daaf53 + expression: 'min(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwPerfLunAverageIOResponseTime, "{#NAME}"],{$HUAWEI.5300.LUN.IO.TIME.MAX.TIME})>{$HUAWEI.5300.LUN.IO.TIME.MAX.WARN}' + name: 'Huawei OceanStor 5300 V5: LUN {#NAME}: Average I/O response time is too high' + event_name: 'Huawei OceanStor 5300 V5: LUN {#NAME}: Average I/O response time is too high (over {$HUAWEI.5300.LUN.IO.TIME.MAX.WARN}ms for {$HUAWEI.5300.LUN.IO.TIME.MAX.TIME})' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 75e6ce80f06c4b3b86a13de4aadf25d7 + name: 'LUN {#NAME}: Average read I/O latency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.4.1.15.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfLunAverageReadIOLatency, "{#NAME}"]' + units: '!ms' + description: 'Average read I/O response time in milliseconds.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + - uuid: b639b6cc20524fe1a5c415a6218b5382 + name: 'LUN {#NAME}: Average write I/O latency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.4.1.16.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfLunAverageWriteIOLatency, "{#NAME}"]' + units: '!ms' + description: 'Average write I/O response time in milliseconds.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + - uuid: 6e2c299282f045cca7a07dedd30b5f89 + name: 'LUN {#NAME}: Read operations per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.4.1.4.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfLunReadIOPS, "{#NAME}"]' + units: '!iops' + description: 'Read IOPS of the node.' + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + - uuid: 8e376b38196b4954895b10aefbdf65ba + name: 'LUN {#NAME}: Read traffic per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.4.1.7.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfLunReadTraffic, "{#NAME}"]' + units: Bps + description: 'Current read bandwidth for the LUN.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: traffic + - tag: lun + value: '{#NAME}' + - uuid: 4d83d160c92845c9ac0f51f5f0158c3b + name: 'LUN {#NAME}: Total I/O per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.4.1.3.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfLunTotalIOPS, "{#NAME}"]' + units: '!iops' + description: 'Current IOPS of the LUN.' + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + - uuid: 1bbe8185981349dcb8a867955ff19c2f + name: 'LUN {#NAME}: Total traffic per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.4.1.6.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfLunTotalTraffic, "{#NAME}"]' + units: Bps + description: 'Current total bandwidth for the LUN.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: traffic + - tag: lun + value: '{#NAME}' + - uuid: 1aed4e060c9743caa13d1ace2cee16f3 + name: 'LUN {#NAME}: Write operations per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.4.1.5.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfLunWriteIOPS, "{#NAME}"]' + units: '!iops' + description: 'Write IOPS of the node.' + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + - uuid: 4a21edb8ea37437f8435565e04c5ce28 + name: 'LUN {#NAME}: Write traffic per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.4.1.8.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfLunWriteTraffic, "{#NAME}"]' + units: Bps + description: 'Current write bandwidth for the LUN.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: traffic + - tag: lun + value: '{#NAME}' + - uuid: 4c85003e7f7441adb4490efcb03e477e + name: 'LUN {#NAME}: Capacity' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.19.9.4.1.5.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwStorageLunCapacity, "{#NAME}"]' + units: B + description: 'Capacity of the LUN.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: traffic + - tag: lun + value: '{#NAME}' + - uuid: f613af109f2846c88e845f626743232b + name: 'LUN {#NAME}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.19.9.4.1.11.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwStorageLunStatus, "{#NAME}"]' + description: 'Status of the LUN.' + valuemap: + name: 'Huawei storage: LUN status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: lun + value: '{#NAME}' + trigger_prototypes: + - uuid: 757eef04912d44b4b4f9e1abab54fb4d + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwStorageLunStatus, "{#NAME}"])<>1' + name: 'Huawei OceanStor 5300 V5: LUN {#NAME}: Status is not Normal' + priority: AVERAGE + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 36d1eb7893f54db28afb1f4725aef1a1 + name: 'LUN {#NAME}: LUN I/O' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfLunTotalIOPS, "{#NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfLunReadIOPS, "{#NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfLunWriteIOPS, "{#NAME}"]' + - uuid: f86ef671d9454bb8878835ba1c96ba20 + name: 'LUN {#NAME}: LUN I/O latency' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfLunAverageIOResponseTime, "{#NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfLunAverageReadIOLatency, "{#NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfLunAverageWriteIOLatency, "{#NAME}"]' + - uuid: eb10b5b56a964c2ba7870d2dc7cf787b + name: 'LUN {#NAME}: LUN traffic' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfLunTotalTraffic, "{#NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfLunReadTraffic, "{#NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfLunWriteTraffic, "{#NAME}"]' + - uuid: 6b934c21d8c54adf8b2e6d28e250537b + name: 'Nodes performance discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#NODE},1.3.6.1.4.1.34774.4.1.21.3.1.1]' + key: huawei.5300.nodes.discovery + delay: 1h + description: 'Discovery of nodes performance counters' + item_prototypes: + - uuid: ac917a8a5b364f66a62c580cb6249c02 + name: 'Node {#NODE}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.3.1.2.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfNodeCPUUsage, "{#NODE}"]' + value_type: FLOAT + units: '%' + description: 'CPU usage of the node {#NODE}.' + tags: + - tag: component + value: cpu + - tag: node + value: '{#NODE}' + trigger_prototypes: + - uuid: 8495a55d6549460d9b132675a39b818b + expression: 'min(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwPerfNodeCPUUsage, "{#NODE}"],5m)>{$CPU.UTIL.CRIT}' + name: 'Huawei OceanStor 5300 V5: Node {#NODE}: High CPU utilization' + event_name: 'Huawei OceanStor 5300 V5: Node {#NODE}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 336022218b44497f84056fce4ed4d2bf + name: 'Node {#NODE}: Average I/O latency' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.3.1.4.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfNodeDelay, "{#NODE}"]' + value_type: FLOAT + units: '!ms' + description: 'Average I/O latency of the node.' + tags: + - tag: component + value: operations + - tag: node + value: '{#NODE}' + trigger_prototypes: + - uuid: 8f54bfe029fe43c7a049c6a97c8598bf + expression: 'min(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwPerfNodeDelay, "{#NODE}"],{$HUAWEI.5300.NODE.IO.DELAY.MAX.TIME})>{$HUAWEI.5300.NODE.IO.DELAY.MAX.WARN}' + name: 'Huawei OceanStor 5300 V5: Node {#NODE}: Average I/O latency is too high' + event_name: 'Huawei OceanStor 5300 V5: Node {#NODE}: Average I/O latency is too high (over {$HUAWEI.5300.NODE.IO.DELAY.MAX.WARN}ms for {$HUAWEI.5300.NODE.IO.DELAY.MAX.TIME})' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 3019a48ac4d34552a00c3344d04ec055 + name: 'Node {#NODE}: Read operations per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.3.1.6.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfNodeReadIOPS, "{#NODE}"]' + units: '!iops' + description: 'Read IOPS of the node.' + tags: + - tag: component + value: operations + - tag: node + value: '{#NODE}' + - uuid: e0c9807e30cc49c480f4862bf7228da8 + name: 'Node {#NODE}: Read traffic per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.3.1.9.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfNodeReadTraffic, "{#NODE}"]' + units: Bps + description: 'Read bandwidth for the node.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: traffic + - tag: node + value: '{#NODE}' + - uuid: 1c3d8562d32d4412b649738c05350c4d + name: 'Node {#NODE}: Total I/O per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.3.1.5.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfNodeTotalIOPS, "{#NODE}"]' + units: '!iops' + description: 'Total IOPS of the node.' + tags: + - tag: component + value: operations + - tag: node + value: '{#NODE}' + - uuid: 604ab970767b4a4e80e5e2e29d30f9a1 + name: 'Node {#NODE}: Total traffic per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.3.1.8.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfNodeTotalTraffic, "{#NODE}"]' + units: Bps + description: 'Total bandwidth for the node.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: traffic + - tag: node + value: '{#NODE}' + - uuid: bd0c930ef95b4bb6838cac49dd38bf6f + name: 'Node {#NODE}: Write operations per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.3.1.7.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfNodeWriteIOPS, "{#NODE}"]' + units: '!iops' + description: 'Write IOPS of the node.' + tags: + - tag: component + value: operations + - tag: node + value: '{#NODE}' + - uuid: 4f5105903075422cb6643dca913df933 + name: 'Node {#NODE}: Write traffic per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.21.3.1.7.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwPerfNodeWriteTraffic, "{#NODE}"]' + units: Bps + description: 'Write bandwidth for the node.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: traffic + - tag: node + value: '{#NODE}' + graph_prototypes: + - uuid: 62f3a059a92a454eba1a71fb3a62b787 + name: 'Node {#NODE}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfNodeCPUUsage, "{#NODE}"]' + - uuid: 1061657e43594c139c49125c1710a10a + name: 'Node {#NODE}: Node I/O' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfNodeTotalIOPS, "{#NODE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfNodeReadIOPS, "{#NODE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfNodeWriteIOPS, "{#NODE}"]' + - uuid: 81b69fee1dde49e0b0fbe5c06077d289 + name: 'Node {#NODE}: Node traffic' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfNodeTotalTraffic, "{#NODE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfNodeReadTraffic, "{#NODE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwPerfNodeWriteTraffic, "{#NODE}"]' + - uuid: 746fcf5132a54e0588713e6313d03e02 + name: 'Storage pools discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#NAME},1.3.6.1.4.1.34774.4.1.23.4.2.1.2,{#THRESHOLD},1.3.6.1.4.1.34774.4.1.23.4.2.1.14]' + key: huawei.5300.pool.discovery + delay: 1h + description: 'Discovery of storage pools' + item_prototypes: + - uuid: 07d22960999a4d8392b90280bf8d3389 + name: 'Pool {#NAME}: Capacity free' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.4.2.1.9.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoStoragePoolFreeCapacity, "{#NAME}"]' + units: B + description: 'Available capacity of a storage pool.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + - uuid: a800b047bda64f528ad4d22698efaa7d + name: 'Pool {#NAME}: Capacity used percentage' + type: CALCULATED + key: 'huawei.5300.v5[hwInfoStoragePoolFreeCapacityPct, "{#NAME}"]' + units: '%' + params: 'last(//huawei.5300.v5[hwInfoStoragePoolSubscribedCapacity, "{#NAME}"])/last(//huawei.5300.v5[hwInfoStoragePoolTotalCapacity, "{#NAME}"])*100' + description: 'Used capacity of a storage pool in percents.' + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: 2ea46713fe664a64a851edca422257f8 + expression: 'min(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoStoragePoolFreeCapacityPct, "{#NAME}"],{$HUAWEI.5300.POOL.CAPACITY.THRESH.TIME})>{#THRESHOLD}' + name: 'Huawei OceanStor 5300 V5: Pool {#NAME}: Used capacity is too high' + event_name: 'Huawei OceanStor 5300 V5: Pool {#NAME}: Used capacity is too high (over {#THRESHOLD}%)' + priority: AVERAGE + tags: + - tag: scope + value: capacity + - uuid: 8a8bb086e75b4476af3686e5d28d8cfc + name: 'Pool {#NAME}: Health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.4.2.1.5.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoStoragePoolHealthStatus, "{#NAME}"]' + description: | + Health status of a storage pool. For details, see definition of Enum Values (HEALTH_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: 8089b48aafb4403fa3187164685f8ca3 + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoStoragePoolHealthStatus, "{#NAME}"])<>1' + name: 'Huawei OceanStor 5300 V5: Pool {#NAME}: Health status is not Normal' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: a5e886744b82456e8a028f01d458307a + name: 'Pool {#NAME}: Running status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.4.2.1.6.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoStoragePoolRunningStatus, "{#NAME}"]' + description: | + Operating status of a storage pool. For details, see definition of Enum Values (RUNNING_STATUS_E). + https://support.huawei.com/enterprise/en/centralized-storage/oceanstor-5300-v5-pid-22462029?category=reference-guides&subcategory=mib-reference + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: 5ff1d6b5d90040928b90908859c2e8cd + expression: 'last(/Huawei OceanStor 5300 V5 by SNMP/huawei.5300.v5[hwInfoStoragePoolRunningStatus, "{#NAME}"])<>27' + name: 'Huawei OceanStor 5300 V5: Pool {#NAME}: Running status is not Online' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 8e59b01ae52b403a8e0da860c909faa1 + name: 'Pool {#NAME}: Capacity used' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.4.2.1.8.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoStoragePoolSubscribedCapacity, "{#NAME}"]' + units: B + description: 'Used capacity of a storage pool.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + - uuid: e82a9a0946814522a517694df270a400 + name: 'Pool {#NAME}: Capacity total' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.23.4.2.1.7.{#SNMPINDEX}]' + key: 'huawei.5300.v5[hwInfoStoragePoolTotalCapacity, "{#NAME}"]' + units: B + description: 'Total capacity of a storage pool.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + graph_prototypes: + - uuid: 6a2ef2bf36e44139b8550d7f1950669a + name: 'Pool {#NAME}: Capacity' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwInfoStoragePoolTotalCapacity, "{#NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwInfoStoragePoolSubscribedCapacity, "{#NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[hwInfoStoragePoolFreeCapacity, "{#NAME}"]' + tags: + - tag: class + value: hardware + - tag: class + value: storage + - tag: target + value: huawei + - tag: target + value: huawei-oceanstor-5300-v5 + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of the CPU utilization expressed in %.' + - macro: '{$HUAWEI.5300.DISK.TEMP.MAX.TIME}' + value: 5m + description: 'The time during which temperature of disk may exceed the threshold.' + - macro: '{$HUAWEI.5300.DISK.TEMP.MAX.WARN}' + value: '45' + description: 'Maximum temperature of disk. Can be used with {#MODEL} as context.' + - macro: '{$HUAWEI.5300.LUN.IO.TIME.MAX.TIME}' + value: 5m + description: 'The time during which average I/O response time of LUN may exceed the threshold.' + - macro: '{$HUAWEI.5300.LUN.IO.TIME.MAX.WARN}' + value: '100' + description: 'Maximum average I/O response time of LUN in milliseconds.' + - macro: '{$HUAWEI.5300.MEM.MAX.TIME}' + value: 5m + description: 'The time during which memory usage may exceed the threshold.' + - macro: '{$HUAWEI.5300.MEM.MAX.WARN}' + value: '90' + description: 'Maximum percentage of memory used' + - macro: '{$HUAWEI.5300.NODE.IO.DELAY.MAX.TIME}' + value: 5m + description: 'The time during which average I/O latency of node may exceed the threshold.' + - macro: '{$HUAWEI.5300.NODE.IO.DELAY.MAX.WARN}' + value: '20' + description: 'Maximum average I/O latency of node in milliseconds.' + - macro: '{$HUAWEI.5300.POOL.CAPACITY.THRESH.TIME}' + value: 5m + description: 'The time during which free capacity may exceed the {#THRESHOLD} from hwInfoStoragePoolFullThreshold.' + - macro: '{$HUAWEI.5300.TEMP.MAX.TIME}' + value: 3m + description: 'The time during which temperature of enclosure may exceed the threshold.' + - macro: '{$HUAWEI.5300.TEMP.MAX.WARN}' + value: '35' + description: 'Maximum temperature of enclosure' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + dashboards: + - uuid: 8d8982eb9082421ea74ba92f1ea7018e + name: 'OceanStor 5300 V5: Overview' + pages: + - name: 'Capacity total' + widgets: + - type: graph + name: 'OceanStor 5300 V5: Capacity total' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Huawei OceanStor 5300 V5 by SNMP' + name: 'OceanStor 5300 V5: Capacity' + - type: STRING + name: reference + value: AAAAA + - name: 'CPU utilization' + widgets: + - type: graphprototype + name: 'Controller {#ID}: CPU utilization' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor 5300 V5 by SNMP' + name: 'Controller {#ID}: CPU utilization' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + name: 'Node {#NODE}: CPU utilization' + x: '36' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor 5300 V5 by SNMP' + name: 'Node {#NODE}: CPU utilization' + - type: STRING + name: reference + value: AAAAC + - name: Node + widgets: + - type: graphprototype + name: 'Node {#NODE}: Node I/O' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor 5300 V5 by SNMP' + name: 'Node {#NODE}: Node I/O' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + name: 'Node {#NODE}: Node traffic' + x: '36' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor 5300 V5 by SNMP' + name: 'Node {#NODE}: Node traffic' + - type: STRING + name: reference + value: AAAAE + - name: Lun + widgets: + - type: graphprototype + name: 'LUN {#NAME}: LUN I/O' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor 5300 V5 by SNMP' + name: 'LUN {#NAME}: LUN I/O' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + name: 'LUN {#NAME}: LUN traffic' + x: '36' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor 5300 V5 by SNMP' + name: 'LUN {#NAME}: LUN traffic' + - type: STRING + name: reference + value: AAAAG + valuemaps: + - uuid: b5c6d9d67da54531a918c93a9c98cec8 + name: 'Huawei storage: Controller role' + mappings: + - value: '0' + newvalue: Normal + - value: '1' + newvalue: Master + - value: '2' + newvalue: Slave + - uuid: b7f399070ee0419cac1722f80268ff1a + name: 'Huawei storage: Health status' + mappings: + - value: '0' + newvalue: Undefined + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Fault + - value: '3' + newvalue: Pre-fail + - value: '4' + newvalue: 'Partially broken' + - value: '5' + newvalue: Degraded + - value: '6' + newvalue: 'Bad sectors found' + - value: '7' + newvalue: 'Bit errors found' + - value: '8' + newvalue: Consistent + - value: '9' + newvalue: Inconsistent + - value: '10' + newvalue: Busy + - value: '11' + newvalue: 'No input' + - value: '12' + newvalue: 'Low battery' + - value: '13' + newvalue: 'Single link fault' + - value: '14' + newvalue: Invalid + - value: '15' + newvalue: 'Write protect' + - uuid: e361f6b8fe92430f86d0e3dc70118ba9 + name: 'Huawei storage: LUN status' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Faulty + - value: '3' + newvalue: Unformatted + - value: '4' + newvalue: Formatting + - uuid: ae5093d843784258aa32437cde486574 + name: 'Huawei storage: Running status' + mappings: + - value: '0' + newvalue: Undefined + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Running + - value: '3' + newvalue: 'Not running' + - value: '4' + newvalue: 'Not existed' + - value: '5' + newvalue: 'Sleep in high temperature' + - value: '6' + newvalue: Starting + - value: '7' + newvalue: 'Power failure protection' + - value: '8' + newvalue: 'Spin down' + - value: '9' + newvalue: Started + - value: '10' + newvalue: 'Link Up' + - value: '11' + newvalue: 'Link Down' + - value: '12' + newvalue: 'Powering on' + - value: '13' + newvalue: 'Powered off' + - value: '14' + newvalue: Pre-copy + - value: '15' + newvalue: Copyback + - value: '16' + newvalue: Reconstruction + - value: '17' + newvalue: Expansion + - value: '18' + newvalue: Unformatted + - value: '19' + newvalue: Formatting + - value: '20' + newvalue: Unmapped + - value: '21' + newvalue: 'Initial synchronizing' + - value: '22' + newvalue: Consistent + - value: '23' + newvalue: Synchronizing + - value: '24' + newvalue: Synchronized + - value: '25' + newvalue: Unsynchronized + - value: '26' + newvalue: Split + - value: '27' + newvalue: Online + - value: '28' + newvalue: Offline + - value: '29' + newvalue: Locked + - value: '30' + newvalue: Enabled + - value: '31' + newvalue: Disabled + - value: '32' + newvalue: Balancing + - value: '33' + newvalue: 'To be recovered' + - value: '34' + newvalue: Interrupted + - value: '35' + newvalue: Invalid + - value: '36' + newvalue: 'Not start' + - value: '37' + newvalue: Queuing + - value: '38' + newvalue: Stopped + - value: '39' + newvalue: Copying + - value: '40' + newvalue: Completed + - value: '41' + newvalue: Paused + - value: '42' + newvalue: 'Reverse synchronizing' + - value: '43' + newvalue: Activated + - value: '44' + newvalue: Restore + - value: '45' + newvalue: Inactive + - value: '46' + newvalue: Idle + - value: '47' + newvalue: 'Powering off' + - value: '48' + newvalue: Charging + - value: '49' + newvalue: 'Charging completed' + - value: '50' + newvalue: Discharging + - value: '51' + newvalue: Upgrading + - value: '52' + newvalue: 'Power Lost' + - value: '53' + newvalue: Initializing + - value: '54' + newvalue: 'Apply change' + - value: '55' + newvalue: 'Online disable' + - value: '56' + newvalue: 'Offline disable' + - value: '57' + newvalue: 'Online frozen' + - value: '58' + newvalue: 'Offline frozen' + - value: '59' + newvalue: Closed + - value: '60' + newvalue: Removing + - value: '61' + newvalue: 'In service' + - value: '62' + newvalue: 'Out of service' + - value: '63' + newvalue: 'Running normal' + - value: '64' + newvalue: 'Running fail' + - value: '65' + newvalue: 'Running success' + - value: '66' + newvalue: 'Running success' + - value: '67' + newvalue: 'Running failed' + - value: '68' + newvalue: Waiting + - value: '69' + newvalue: Canceling + - value: '70' + newvalue: Canceled + - value: '71' + newvalue: 'About to synchronize' + - value: '72' + newvalue: 'Synchronizing data' + - value: '73' + newvalue: 'Failed to synchronize' + - value: '74' + newvalue: Fault + - value: '75' + newvalue: Migrating + - value: '76' + newvalue: Migrated + - value: '77' + newvalue: Activating + - value: '78' + newvalue: Deactivating + - value: '79' + newvalue: 'Start failed' + - value: '80' + newvalue: 'Stop failed' + - value: '81' + newvalue: Decommissioning + - value: '82' + newvalue: Decommissioned + - value: '83' + newvalue: Recommissioning + - value: '84' + newvalue: 'Replacing node' + - value: '85' + newvalue: Scheduling + - value: '86' + newvalue: Pausing + - value: '87' + newvalue: Suspending + - value: '88' + newvalue: Suspended + - value: '89' + newvalue: Overload + - value: '90' + newvalue: 'To be switch' + - value: '91' + newvalue: Switching + - value: '92' + newvalue: 'To be cleanup' + - value: '93' + newvalue: 'Forced start' + - value: '94' + newvalue: Error + - value: '95' + newvalue: 'Job completed' + - value: '96' + newvalue: 'Partition Migrating' + - value: '97' + newvalue: Mount + - value: '98' + newvalue: Umount + - value: '99' + newvalue: INSTALLING + - value: '100' + newvalue: 'To Be Synchronized' + - value: '101' + newvalue: Connecting + - value: '102' + newvalue: 'Service Switching' + - value: '103' + newvalue: 'Power-on failed' + - value: '104' + newvalue: REPAIRING + - value: '105' + newvalue: abnormal + - value: '106' + newvalue: Deleting + - value: '107' + newvalue: Modifying + - value: '108' + newvalue: 'Running(clearing data)' + - value: '109' + newvalue: 'Running(synchronizing data)' + - uuid: 0aa29a4ffa224d56a107a1cfbd6c416a + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: d107957d44424014a251dff95751a41f + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 0e3713bdf52e40d692cf256ac2a01988 + expression: '(last(/Huawei OceanStor 5300 V5 by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Huawei OceanStor 5300 V5 by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Huawei OceanStor 5300 V5 by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Huawei OceanStor 5300 V5 by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Huawei OceanStor 5300 V5: Host has been restarted' + event_name: 'Huawei OceanStor 5300 V5: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Huawei OceanStor 5300 V5: No SNMP data collection' + expression: 'max(/Huawei OceanStor 5300 V5 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 9401d60314c441a5a04d7a9709c6970e + name: 'OceanStor 5300 V5: Capacity' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[totalCapacity]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor 5300 V5 by SNMP' + key: 'huawei.5300.v5[usedCapacity]' diff --git a/Huawei_OceanStor_Dorado_by_SNMP.yaml b/Huawei_OceanStor_Dorado_by_SNMP.yaml new file mode 100644 index 0000000..b256a05 --- /dev/null +++ b/Huawei_OceanStor_Dorado_by_SNMP.yaml @@ -0,0 +1,2321 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 7c2cb727f85b492d88cd56e17127c64d + name: Templates/SAN + templates: + - uuid: 521d864fe8574f19b350f7ddbe259042 + template: 'Huawei OceanStor Dorado by SNMP' + name: 'Huawei OceanStor Dorado by SNMP' + description: | + This template is developed to monitor SAN Huawei OceanStor Dorado via the Zabbix SNMP agent. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/418855-discussion-thread-for-official-zabbix-template-huawei-oceanstor + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/SAN + items: + - uuid: b1b27fc308a643c080ca461aa43ac155 + name: 'BBU SNMP walk' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.34774.4.1.23.5.5.1.1,1.3.6.1.4.1.34774.4.1.23.5.5.1.2,1.3.6.1.4.1.34774.4.1.23.5.5.1.3,1.3.6.1.4.1.34774.4.1.23.5.5.1.4]' + key: huawei.dorado.bbu.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of device backup battery units.' + tags: + - tag: component + value: raw + - uuid: 5966b59ae96c4044a2c53d84728aa385 + name: 'Capacity total' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.1.5.0]' + key: huawei.dorado.capacity.total + units: B + description: 'Total capacity of a device.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - uuid: 0bb56fda578e44b28dfaca63e37c6026 + name: 'Capacity used' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.1.4.0]' + key: huawei.dorado.capacity.used + units: B + description: 'Used capacity of a device.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: storage + - uuid: 251875b1bf7f4aea800eebdf826c92cc + name: 'Controller SNMP walk' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.34774.4.1.23.5.2.1.1,1.3.6.1.4.1.34774.4.1.23.5.2.1.8,1.3.6.1.4.1.34774.4.1.23.5.2.1.9,1.3.6.1.4.1.34774.4.1.23.5.2.1.2,1.3.6.1.4.1.34774.4.1.23.5.2.1.3,1.3.6.1.4.1.34774.4.1.23.5.2.1.6]' + key: huawei.dorado.controller.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of device controllers.' + tags: + - tag: component + value: raw + - uuid: 502c0446b3ac4c7c91fb81076e8fded0 + name: 'Disk SNMP walk' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.34774.4.1.23.5.1.1.1,1.3.6.1.4.1.34774.4.1.23.5.1.1.12,1.3.6.1.4.1.34774.4.1.23.5.1.1.4,1.3.6.1.4.1.34774.4.1.23.5.1.1.2,1.3.6.1.4.1.34774.4.1.23.5.1.1.3,1.3.6.1.4.1.34774.4.1.23.5.1.1.11]' + key: huawei.dorado.disk.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of device disks.' + tags: + - tag: component + value: raw + - uuid: dc3f094725ff4794844687d4037ea2c2 + name: 'Enclosure SNMP walk' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.34774.4.1.23.5.6.1.2,1.3.6.1.4.1.34774.4.1.23.5.6.1.4,1.3.6.1.4.1.34774.4.1.23.5.6.1.5,1.3.6.1.4.1.34774.4.1.23.5.6.1.8]' + key: huawei.dorado.enclosure.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of device enclosures.' + tags: + - tag: component + value: raw + - uuid: fe922a88992f49f9a6bf4ed080c880d7 + name: 'Fan SNMP walk' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.34774.4.1.23.5.4.1.1,1.3.6.1.4.1.34774.4.1.23.5.4.1.2,1.3.6.1.4.1.34774.4.1.23.5.4.1.3,1.3.6.1.4.1.34774.4.1.23.5.4.1.4]' + key: huawei.dorado.fan.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of device fans.' + tags: + - tag: component + value: raw + - uuid: 269a95fbb3ce4f1eb9dc684777875d87 + name: 'LUN SNMP walk' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.34774.4.1.19.9.4.1.2,1.3.6.1.4.1.34774.4.1.19.9.4.1.11,1.3.6.1.4.1.34774.4.1.21.4.1.13,1.3.6.1.4.1.34774.4.1.21.4.1.15,1.3.6.1.4.1.34774.4.1.21.4.1.16,1.3.6.1.4.1.34774.4.1.21.4.1.3,1.3.6.1.4.1.34774.4.1.21.4.1.4,1.3.6.1.4.1.34774.4.1.21.4.1.5,1.3.6.1.4.1.34774.4.1.21.4.1.6,1.3.6.1.4.1.34774.4.1.21.4.1.7,1.3.6.1.4.1.34774.4.1.21.4.1.8,1.3.6.1.4.1.34774.4.1.19.9.4.1.5]' + key: huawei.dorado.lun.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of device logical unit numbers.' + tags: + - tag: component + value: raw + - uuid: 2170d4e5ca684e579dd511e59e5e9828 + name: 'Node SNMP walk' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.34774.4.1.21.3.1.1,1.3.6.1.4.1.34774.4.1.21.3.1.2,1.3.6.1.4.1.34774.4.1.21.3.1.5,1.3.6.1.4.1.34774.4.1.21.3.1.6,1.3.6.1.4.1.34774.4.1.21.3.1.7,1.3.6.1.4.1.34774.4.1.21.3.1.8,1.3.6.1.4.1.34774.4.1.21.3.1.9,1.3.6.1.4.1.34774.4.1.21.3.1.10,1.3.6.1.4.1.34774.4.1.21.3.1.4]' + key: huawei.dorado.node.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of device nodes.' + tags: + - tag: component + value: raw + - uuid: 5daf9372f493406c818b27f5149dcff3 + name: 'Storage pool SNMP walk' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.34774.4.1.23.4.2.1.2,1.3.6.1.4.1.34774.4.1.23.4.2.1.14,1.3.6.1.4.1.34774.4.1.23.4.2.1.5,1.3.6.1.4.1.34774.4.1.23.4.2.1.6,1.3.6.1.4.1.34774.4.1.23.4.2.1.7,1.3.6.1.4.1.34774.4.1.23.4.2.1.9,1.3.6.1.4.1.34774.4.1.23.4.2.1.27]' + key: huawei.dorado.pool.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of device storage pools.' + tags: + - tag: component + value: raw + - uuid: 4ad5a10227d74eaaaaf3678a6884b67d + name: Status + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.1.3.0]' + key: huawei.dorado.status + description: 'System status.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: system + - uuid: 3ed972a612394bf285f816debcd8e89a + name: Version + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.34774.4.1.1.6.0]' + key: huawei.dorado.version + value_type: CHAR + trends: '0' + description: 'The device version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + triggers: + - uuid: eb140be38e9c4f51b105347ddffa6997 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.version,#1)<>last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.version,#2) and length(last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.version))>0' + name: 'Huawei Dorado: Storage version has changed' + event_name: 'Huawei Dorado: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 590714e7fb3f4d468c19385146f76433 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 914602a8433444a18ac0672f776b836e + expression: 'max(/Huawei OceanStor Dorado by SNMP/icmpping,#3)=0' + name: 'Huawei Dorado: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 3bcc87c0fee74e64be9b66cc9080008e + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 60f0ddb37f534c5baf4a7ad254d57ea7 + expression: 'min(/Huawei OceanStor Dorado by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Huawei OceanStor Dorado by SNMP/icmppingloss,5m)<100' + name: 'Huawei Dorado: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Huawei Dorado: Unavailable by ICMP ping' + expression: 'max(/Huawei OceanStor Dorado by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 137b8177ba0b4949a895be9dde23400c + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9af7c5ff0d974d0abb51cd483e46e537 + expression: 'avg(/Huawei OceanStor Dorado by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Huawei Dorado: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Huawei Dorado: High ICMP ping loss' + expression: 'min(/Huawei OceanStor Dorado by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Huawei OceanStor Dorado by SNMP/icmppingloss,5m)<100' + - name: 'Huawei Dorado: Unavailable by ICMP ping' + expression: 'max(/Huawei OceanStor Dorado by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2959893b639d457abb18a2b7e9abda23 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: f80391019ebb4b18beb7a987c3a20830 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e7ddfe4774ad4ed7959d2e2200b50e8f + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 35b225e3dff343b0a0b82b8239d6bea3 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f0fa4b45ea2b41d0b0f40630680fb532 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 494d880ba7be4d9fb641b148597f805d + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 6beeaf5594eb46e183db9e725277e0b6 + expression: 'last(/Huawei OceanStor Dorado by SNMP/system.name,#1)<>last(/Huawei OceanStor Dorado by SNMP/system.name,#2) and length(last(/Huawei OceanStor Dorado by SNMP/system.name))>0' + name: 'Huawei Dorado: System name has changed' + event_name: 'Huawei Dorado: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 4371c836612f4456a6ce191af79a23a2 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 634f6b6a4e724c158ba4726f063a1684 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6816cad193a64edcbcf3f09d736eab9b + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4c9c747fc91c493b9b35db7d1dcc1461 + expression: 'max(/Huawei OceanStor Dorado by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Huawei Dorado: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Huawei Dorado: Unavailable by ICMP ping' + expression: 'max(/Huawei OceanStor Dorado by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 362c06913f594e868ed1c8c90e29dfb3 + name: 'BBU discovery' + type: DEPENDENT + key: huawei.dorado.bbu.discovery + delay: '0' + description: 'Discovery of BBUs.' + item_prototypes: + - uuid: 1e9048a8d6884ad6a69af5a3d82e55b2 + name: 'BBU [{#ID}] on [{#LOCATION}]: Health status' + type: DEPENDENT + key: 'huawei.dorado.bbu.health_status["{#ID}:{#LOCATION}"]' + delay: '0' + description: 'Health status of a BBU.' + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.5.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.bbu.snmp.walk + tags: + - tag: bbu + value: '{#ID}' + - tag: component + value: health + - tag: component + value: power + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: 0870e96a18244b1a856ed22109c30120 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.bbu.health_status["{#ID}:{#LOCATION}"])<>1' + name: 'Huawei Dorado: BBU [{#ID}] on [{#LOCATION}]: Health status is not Normal' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: d426241b0e884e8d9b13a954435ba906 + name: 'BBU [{#ID}] on [{#LOCATION}]: Running status' + type: DEPENDENT + key: 'huawei.dorado.bbu.running_status["{#ID}:{#LOCATION}"]' + delay: '0' + description: 'Running status of a BBU.' + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.5.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.bbu.snmp.walk + tags: + - tag: bbu + value: '{#ID}' + - tag: component + value: health + - tag: component + value: power + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: cd796c86d0784168864b50a3c710fe4a + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.bbu.running_status["{#ID}:{#LOCATION}"])<>27' + name: 'Huawei Dorado: BBU [{#ID}] on [{#LOCATION}]: Running status is not Online' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + master_item: + key: huawei.dorado.bbu.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#ID}' + - 1.3.6.1.4.1.34774.4.1.23.5.5.1.1 + - '0' + - '{#LOCATION}' + - 1.3.6.1.4.1.34774.4.1.23.5.5.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 82033f0c72c1424eb606ad2cc9573015 + name: 'Controller discovery' + type: DEPENDENT + key: huawei.dorado.controller.discovery + delay: '0' + description: 'Discovery of controllers.' + item_prototypes: + - uuid: 6862050dda61467c9bb2f754441a7e75 + name: 'Controller [{#ID}]: CPU utilization' + type: DEPENDENT + key: 'huawei.dorado.controller.cpu["{#ID}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization of the controller.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.controller.snmp.walk + tags: + - tag: component + value: cpu + - tag: controller + value: '{#ID}' + trigger_prototypes: + - uuid: c24df0ffa9b04f22b0507abe1f600c61 + expression: 'min(/Huawei OceanStor Dorado by SNMP/huawei.dorado.controller.cpu["{#ID}"],5m)>{$CPU.UTIL.CRIT}' + name: 'Huawei Dorado: Controller [{#ID}]: High CPU utilization' + event_name: 'Huawei Dorado: Controller [{#ID}]: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: ab427b8e87444481a6ab84630a1ff0f0 + name: 'Controller [{#ID}]: Health status' + type: DEPENDENT + key: 'huawei.dorado.controller.health_status["{#ID}"]' + delay: '0' + description: 'Controller health status.' + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.2.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.controller.snmp.walk + tags: + - tag: component + value: health + - tag: controller + value: '{#ID}' + trigger_prototypes: + - uuid: c9abbb0c329b4fdfba9e10cd2edacbc0 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.controller.health_status["{#ID}"])<>1' + name: 'Huawei Dorado: Controller [{#ID}]: Health status is not Normal' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 7e1f6c169dda4b7baed033a40c20a3f7 + name: 'Controller [{#ID}]: Memory utilization' + type: DEPENDENT + key: 'huawei.dorado.controller.memory["{#ID}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization of the controller.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.2.1.9.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.controller.snmp.walk + tags: + - tag: component + value: memory + - tag: controller + value: '{#ID}' + trigger_prototypes: + - uuid: 7c5da0319c4f47e3a96f6d088bb29627 + expression: 'min(/Huawei OceanStor Dorado by SNMP/huawei.dorado.controller.memory["{#ID}"],{$HUAWEI.DORADO.MEM.MAX.TIME})>{$HUAWEI.DORADO.MEM.MAX.WARN}' + name: 'Huawei Dorado: Controller [{#ID}]: Memory usage is too high' + event_name: 'Huawei Dorado: Controller [{#ID}]: Memory usage is too high (over {$HUAWEI.DORADO.MEM.MAX.WARN} for {$HUAWEI.DORADO.MEM.MAX.TIME})' + opdata: 'Current memory usage: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: 6de50a16225c43b9b1f9b36980e30ee8 + name: 'Controller [{#ID}]: Role' + type: DEPENDENT + key: 'huawei.dorado.controller.role["{#ID}"]' + delay: '0' + description: 'Controller role.' + valuemap: + name: 'Huawei storage: Controller role' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.2.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.controller.snmp.walk + tags: + - tag: component + value: system + - tag: controller + value: '{#ID}' + trigger_prototypes: + - uuid: b0952e778f38497eb1ea54e64d036bdd + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.controller.role["{#ID}"],#1)<>last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.controller.role["{#ID}"],#2)' + name: 'Huawei Dorado: Controller [{#ID}]: Role has been changed' + opdata: 'Current role: {ITEM.LASTVALUE1}' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 935c5f5526a8456c941a1d8f2d5c6cb4 + name: 'Controller [{#ID}]: Running status' + type: DEPENDENT + key: 'huawei.dorado.controller.running_status["{#ID}"]' + delay: '0' + description: 'Controller running status.' + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.controller.snmp.walk + tags: + - tag: component + value: health + - tag: controller + value: '{#ID}' + trigger_prototypes: + - uuid: ecb968841d8e4a1781da9a095bd87582 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.controller.running_status["{#ID}"])<>27' + name: 'Huawei Dorado: Controller [{#ID}]: Running status is not Online' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: edfad14e047a49769c363c76f176e295 + name: 'Controller [{#ID}]: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.controller.cpu["{#ID}"]' + master_item: + key: huawei.dorado.controller.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#ID}' + - 1.3.6.1.4.1.34774.4.1.23.5.2.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a19ac722e1d846b5ab1458891e9146a3 + name: 'Disk discovery' + type: DEPENDENT + key: huawei.dorado.disk.discovery + delay: '0' + description: 'Discovery of disks.' + item_prototypes: + - uuid: fce3691a4029427b86d6475f45a562ba + name: 'Disk [{#MODEL}] on [{#LOCATION}]: Health status' + type: DEPENDENT + key: 'huawei.dorado.disk.health_status["{#ID}"]' + delay: '0' + description: 'Disk health status.' + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.1.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.disk.snmp.walk + tags: + - tag: component + value: health + - tag: disk + value: '{#MODEL}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: 88bc0077cf754fe9beee20b00234ce9d + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.disk.health_status["{#ID}"])<>1' + name: 'Huawei Dorado: Disk [{#MODEL}] on [{#LOCATION}]: Health status is not Normal' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 6462dd9890f9492399d39472eaca42e0 + name: 'Disk [{#MODEL}] on [{#LOCATION}]: Running status' + type: DEPENDENT + key: 'huawei.dorado.disk.running_status["{#ID}"]' + delay: '0' + description: 'Disk running status.' + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.1.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.disk.snmp.walk + tags: + - tag: component + value: health + - tag: disk + value: '{#MODEL}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: 568c21eb9f2744e183ab6dcd15493277 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.disk.running_status["{#ID}"])<>27' + name: 'Huawei Dorado: Disk [{#MODEL}] on [{#LOCATION}]: Running status is not Online' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: cd6759e70695454783dd7c0a68ed2739 + name: 'Disk [{#MODEL}] on [{#LOCATION}]: Temperature' + type: DEPENDENT + key: 'huawei.dorado.disk.temperature["{#ID}"]' + delay: '0' + units: °C + description: 'Disk temperature.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.1.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.disk.snmp.walk + tags: + - tag: component + value: environment + - tag: disk + value: '{#MODEL}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: aaf26be9ddff459692cd83187e66b5d4 + expression: 'min(/Huawei OceanStor Dorado by SNMP/huawei.dorado.disk.temperature["{#ID}"],{$HUAWEI.DORADO.DISK.TEMP.MAX.TIME})>{$HUAWEI.DORADO.DISK.TEMP.MAX.WARN:"{#MODEL}"}' + name: 'Huawei Dorado: Disk [{#MODEL}] on [{#LOCATION}]: Temperature is too high' + event_name: 'Huawei Dorado: Disk [{#MODEL}] on [{#LOCATION}]: Temperature is too high (over {$HUAWEI.DORADO.DISK.TEMP.MAX.WARN:"{#MODEL}"} for {$HUAWEI.DORADO.DISK.TEMP.MAX.TIME})' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: HIGH + tags: + - tag: scope + value: availability + - tag: scope + value: notice + master_item: + key: huawei.dorado.disk.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#ID}' + - 1.3.6.1.4.1.34774.4.1.23.5.1.1.1 + - '0' + - '{#MODEL}' + - 1.3.6.1.4.1.34774.4.1.23.5.1.1.12 + - '0' + - '{#LOCATION}' + - 1.3.6.1.4.1.34774.4.1.23.5.1.1.4 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a4abd7c7f02a425a9fed40a9adbda88d + name: 'Enclosure discovery' + type: DEPENDENT + key: huawei.dorado.enclosure.discovery + delay: '0' + description: 'Discovery of enclosures.' + item_prototypes: + - uuid: 7babf3c5b33b4a6096fb4dc30d0fb930 + name: 'Enclosure [{#NAME}]: Health status' + type: DEPENDENT + key: 'huawei.dorado.enclosure.health_status["{#NAME}"]' + delay: '0' + description: 'Enclosure health status.' + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.6.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.enclosure.snmp.walk + tags: + - tag: component + value: health + - tag: enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: 2df422b9873044b58246384d439077e0 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.enclosure.health_status["{#NAME}"])<>1' + name: 'Huawei Dorado: Enclosure [{#NAME}]: Health status is not Normal' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 7b084bb85c1c45cc951f798ef10cb749 + name: 'Enclosure [{#NAME}]: Running status' + type: DEPENDENT + key: 'huawei.dorado.enclosure.running_status["{#NAME}"]' + delay: '0' + description: 'Enclosure running status.' + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.6.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.enclosure.snmp.walk + tags: + - tag: component + value: health + - tag: enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: 3878efb681404801b078e68d03c1f422 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.enclosure.running_status["{#NAME}"])<>27' + name: 'Huawei Dorado: Enclosure [{#NAME}]: Running status is not Online' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 67c17f51ee7e4ad696aa95b9d590c299 + name: 'Enclosure [{#NAME}]: Temperature' + type: DEPENDENT + key: 'huawei.dorado.enclosure.temperature["{#NAME}"]' + delay: '0' + units: °C + description: 'Enclosure temperature.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.6.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.enclosure.snmp.walk + tags: + - tag: component + value: environment + - tag: enclosure + value: '{#NAME}' + trigger_prototypes: + - uuid: 84056bbf218a43ccbf6a3c94fff53973 + expression: 'min(/Huawei OceanStor Dorado by SNMP/huawei.dorado.enclosure.temperature["{#NAME}"],{$HUAWEI.DORADO.TEMP.MAX.TIME})>{$HUAWEI.DORADO.TEMP.MAX.WARN}' + name: 'Huawei Dorado: Enclosure [{#NAME}]: Temperature is too high' + event_name: 'Huawei Dorado: Enclosure [{#NAME}]: Temperature is too high (over {$HUAWEI.DORADO.TEMP.MAX.WARN} for {$HUAWEI.DORADO.TEMP.MAX.TIME})' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: HIGH + tags: + - tag: scope + value: availability + - tag: scope + value: notice + master_item: + key: huawei.dorado.enclosure.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NAME}' + - 1.3.6.1.4.1.34774.4.1.23.5.6.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a03f01844ebd4b44afd45614c7e5ed22 + name: 'Fan discovery' + type: DEPENDENT + key: huawei.dorado.fan.discovery + delay: '0' + description: 'Discovery of fans.' + item_prototypes: + - uuid: 4a08efa163e5448ab8d01e69535979a1 + name: 'Fan [{#ID}] on [{#LOCATION}]: Health status' + type: DEPENDENT + key: 'huawei.dorado.fan.health_status["{#ID}:{#LOCATION}"]' + delay: '0' + description: 'Health status of a fan.' + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.4.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.fan.snmp.walk + tags: + - tag: component + value: health + - tag: fan + value: '{#ID}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: 61b916bc59964edaab00fb2f7fba7bdb + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.fan.health_status["{#ID}:{#LOCATION}"])<>1' + name: 'Huawei Dorado: Fan [{#ID}] on [{#LOCATION}]: Health status is not Normal' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 22c3254048bc4973a62069fe9ff35dab + name: 'Fan [{#ID}] on [{#LOCATION}]: Running status' + type: DEPENDENT + key: 'huawei.dorado.fan.running_status["{#ID}:{#LOCATION}"]' + delay: '0' + description: 'Operating status of a fan.' + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.5.4.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.fan.snmp.walk + tags: + - tag: component + value: health + - tag: fan + value: '{#ID}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: 6fbecb53cd334f65a8fba8d1ab0d9218 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.fan.running_status["{#ID}:{#LOCATION}"])<>2' + name: 'Huawei Dorado: Fan [{#ID}] on [{#LOCATION}]: Running status is not Running' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + master_item: + key: huawei.dorado.fan.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#ID}' + - 1.3.6.1.4.1.34774.4.1.23.5.4.1.1 + - '0' + - '{#LOCATION}' + - 1.3.6.1.4.1.34774.4.1.23.5.4.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9ae2d586c6fd49dfa0e64bce7ed2f249 + name: 'LUN discovery' + type: DEPENDENT + key: huawei.dorado.lun.discovery + delay: '0' + description: 'Discovery of LUNs.' + item_prototypes: + - uuid: 3e6998def6124b32840002022139e540 + name: 'LUN [{#NAME}]: Read traffic per second' + type: DEPENDENT + key: 'huawei.dorado.lun.bps.read["{#NAME}"]' + delay: '0' + units: Bps + description: 'Current read bandwidth for the LUN.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.4.1.7.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: network + - tag: lun + value: '{#NAME}' + - uuid: c43287cfec514dc1a5062b4acf6fa495 + name: 'LUN [{#NAME}]: Total traffic per second' + type: DEPENDENT + key: 'huawei.dorado.lun.bps.total["{#NAME}"]' + delay: '0' + units: Bps + description: 'Current total bandwidth for the LUN.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.4.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: network + - tag: lun + value: '{#NAME}' + - uuid: c69a608ac519491cab8596fd4bfff1fb + name: 'LUN [{#NAME}]: Write traffic per second' + type: DEPENDENT + key: 'huawei.dorado.lun.bps.write["{#NAME}"]' + delay: '0' + units: Bps + description: 'Current write bandwidth for the LUN.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.4.1.8.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: network + - tag: lun + value: '{#NAME}' + - uuid: ec45b31280a2414d91ce7aa7fcf44615 + name: 'LUN [{#NAME}]: Capacity' + type: DEPENDENT + key: 'huawei.dorado.lun.capacity["{#NAME}"]' + delay: '0' + units: B + description: 'Capacity of the LUN.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.19.9.4.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: network + - tag: lun + value: '{#NAME}' + - uuid: e180a7a129a34ee3b8d2784cd892075b + name: 'LUN [{#NAME}]: Read operations per second' + type: DEPENDENT + key: 'huawei.dorado.lun.iops.read["{#NAME}"]' + delay: '0' + units: '!iops' + description: 'Read IOPS of the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.4.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + - uuid: 2353b672d2aa4a06804589419c5602e0 + name: 'LUN [{#NAME}]: Total I/O per second' + type: DEPENDENT + key: 'huawei.dorado.lun.iops.total["{#NAME}"]' + delay: '0' + units: '!iops' + description: 'Current IOPS of the LUN.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.4.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + - uuid: 21c76754695e4f09ae9907c6ca181fe7 + name: 'LUN [{#NAME}]: Write operations per second' + type: DEPENDENT + key: 'huawei.dorado.lun.iops.write["{#NAME}"]' + delay: '0' + units: '!iops' + description: 'Write IOPS of the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.4.1.5.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + - uuid: 7cf0c90782b744a584e411bf3295a4fd + name: 'LUN [{#NAME}]: Average read I/O latency' + type: DEPENDENT + key: 'huawei.dorado.lun.latency.read["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average read I/O response time.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.4.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + - uuid: beacd28febb1411ab77074fe5a344b3a + name: 'LUN [{#NAME}]: Average total I/O latency' + type: DEPENDENT + key: 'huawei.dorado.lun.latency.total["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average I/O latency of the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.4.1.13.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + trigger_prototypes: + - uuid: 919c9c661e3f42dcba7cbceaebc05617 + expression: 'min(/Huawei OceanStor Dorado by SNMP/huawei.dorado.lun.latency.total["{#NAME}"],{$HUAWEI.DORADO.LUN.IO.TIME.MAX.TIME})>{$HUAWEI.DORADO.LUN.IO.TIME.MAX.WARN}' + name: 'Huawei Dorado: LUN [{#NAME}]: Average I/O response time is too high' + event_name: 'Huawei Dorado: LUN [{#NAME}]: Average I/O response time is too high (over {$HUAWEI.DORADO.LUN.IO.TIME.MAX.WARN}μs for {$HUAWEI.DORADO.LUN.IO.TIME.MAX.TIME})' + opdata: 'Current response time: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 18edb1b0b27e4be4badf566ff6973dbb + name: 'LUN [{#NAME}]: Average write I/O latency' + type: DEPENDENT + key: 'huawei.dorado.lun.latency.write["{#NAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average write I/O response time.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.4.1.16.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: operations + - tag: lun + value: '{#NAME}' + - uuid: e66dc4118b8043ca9be590ae1fc509ef + name: 'LUN [{#NAME}]: Status' + type: DEPENDENT + key: 'huawei.dorado.lun.status["{#NAME}"]' + delay: '0' + description: 'Status of the LUN.' + valuemap: + name: 'Huawei storage: LUN status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.19.9.4.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.lun.snmp.walk + tags: + - tag: component + value: health + - tag: lun + value: '{#NAME}' + trigger_prototypes: + - uuid: 3ea80d4ef5294e9b86d9b500681b4816 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.lun.status["{#NAME}"])<>1' + name: 'Huawei Dorado: LUN [{#NAME}]: Status is not Normal' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: e6e60a64dc2540ab963a910ed4de7a51 + name: 'LUN [{#NAME}]: LUN I/O' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.lun.iops.total["{#NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.lun.iops.read["{#NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.lun.iops.write["{#NAME}"]' + - uuid: 46bdcee9618d4074b3ac6367146951a5 + name: 'LUN [{#NAME}]: LUN I/O latency' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.lun.latency.total["{#NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.lun.latency.read["{#NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.lun.latency.write["{#NAME}"]' + - uuid: 2ac150dce55249e3951edf46eb1cb0df + name: 'LUN [{#NAME}]: LUN traffic' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.lun.bps.total["{#NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.lun.bps.read["{#NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.lun.bps.write["{#NAME}"]' + master_item: + key: huawei.dorado.lun.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NAME}' + - 1.3.6.1.4.1.34774.4.1.19.9.4.1.2 + - '0' + - uuid: f7fad4cdd7e74a449318e31900c58dbb + name: 'Node performance discovery' + type: DEPENDENT + key: huawei.dorado.node.discovery + delay: '0' + description: 'Discovery of node performance counters.' + item_prototypes: + - uuid: f95b67c8d5d34f9da3ed1491c353b33b + name: 'Node [{#NODE}]: Read traffic per second' + type: DEPENDENT + key: 'huawei.dorado.node.bps.read["{#NODE}"]' + delay: '0' + units: Bps + description: 'Read bandwidth for the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.3.1.9.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: huawei.dorado.node.snmp.walk + tags: + - tag: component + value: network + - tag: node + value: '{#NODE}' + - uuid: 1f3bb492970b4027884b92b505629c6e + name: 'Node [{#NODE}]: Total traffic per second' + type: DEPENDENT + key: 'huawei.dorado.node.bps.total["{#NODE}"]' + delay: '0' + units: Bps + description: 'Total bandwidth for the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.3.1.8.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: huawei.dorado.node.snmp.walk + tags: + - tag: component + value: network + - tag: node + value: '{#NODE}' + - uuid: af7c068d5134442bb09b38c767cbc631 + name: 'Node [{#NODE}]: Write traffic per second' + type: DEPENDENT + key: 'huawei.dorado.node.bps.write["{#NODE}"]' + delay: '0' + units: Bps + description: 'Write bandwidth for the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.3.1.10.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: huawei.dorado.node.snmp.walk + tags: + - tag: component + value: network + - tag: node + value: '{#NODE}' + - uuid: e853a21f897346e0a1756dad24ac1283 + name: 'Node [{#NODE}]: CPU utilization' + type: DEPENDENT + key: 'huawei.dorado.node.cpu["{#NODE}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization of the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.node.snmp.walk + tags: + - tag: component + value: cpu + - tag: node + value: '{#NODE}' + trigger_prototypes: + - uuid: c72396c32e084414baadfb348d3a1cea + expression: 'min(/Huawei OceanStor Dorado by SNMP/huawei.dorado.node.cpu["{#NODE}"],5m)>{$CPU.UTIL.CRIT}' + name: 'Huawei Dorado: Node [{#NODE}]: High CPU utilization' + event_name: 'Huawei Dorado: Node [{#NODE}]: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: d15b0dc04b75487285b131f7740063d7 + name: 'Node [{#NODE}]: Average latency' + type: DEPENDENT + key: 'huawei.dorado.node.delay["{#NODE}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Average I/O latency of the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.3.1.4.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: huawei.dorado.node.snmp.walk + tags: + - tag: component + value: network + - tag: node + value: '{#NODE}' + - uuid: c71f8355bde14dceb229fba492b9ac91 + name: 'Node [{#NODE}]: Read operations per second' + type: DEPENDENT + key: 'huawei.dorado.node.iops.read["{#NODE}"]' + delay: '0' + units: '!iops' + description: 'Read IOPS of the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.node.snmp.walk + tags: + - tag: component + value: operations + - tag: node + value: '{#NODE}' + - uuid: 51439886809745208877caa660a5e953 + name: 'Node [{#NODE}]: Total I/O per second' + type: DEPENDENT + key: 'huawei.dorado.node.iops.total["{#NODE}"]' + delay: '0' + units: '!iops' + description: 'Total IOPS of the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.3.1.5.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.node.snmp.walk + tags: + - tag: component + value: operations + - tag: node + value: '{#NODE}' + - uuid: fd9755ff4ef346c1a6e3ce43891fd6eb + name: 'Node [{#NODE}]: Write operations per second' + type: DEPENDENT + key: 'huawei.dorado.node.iops.write["{#NODE}"]' + delay: '0' + units: '!iops' + description: 'Write IOPS of the node.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.21.3.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: huawei.dorado.node.snmp.walk + tags: + - tag: component + value: operations + - tag: node + value: '{#NODE}' + graph_prototypes: + - uuid: 26e44f9399fd4d1f8504d8cbccab3a56 + name: 'Node [{#NODE}]: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.node.cpu["{#NODE}"]' + - uuid: 5909816dcac74dd492cde0b964ac0705 + name: 'Node [{#NODE}]: Node I/O' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.node.iops.total["{#NODE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.node.iops.read["{#NODE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.node.iops.write["{#NODE}"]' + - uuid: d69a0f1bf42a4fe6bdcd4bb10318effb + name: 'Node [{#NODE}]: Node traffic' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.node.bps.total["{#NODE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.node.bps.read["{#NODE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.node.bps.write["{#NODE}"]' + master_item: + key: huawei.dorado.node.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NODE}' + - 1.3.6.1.4.1.34774.4.1.21.3.1.1 + - '0' + - '{#NODE.DELAY}' + - 1.3.6.1.4.1.34774.4.1.21.3.1.4 + - '0' + overrides: + - name: 'V700 specific, node delay' + step: '1' + filter: + conditions: + - macro: '{#NODE.DELAY}' + operator: NOT_EXISTS + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Average latency' + discover: NO_DISCOVER + - uuid: eb0e35cdc3014b3898ad5a6720715ce6 + name: 'Storage pool discovery' + type: DEPENDENT + key: huawei.dorado.pool.discovery + delay: '0' + description: 'Discovery of storage pools.' + item_prototypes: + - uuid: a3c342459f1c4c6dbdb58ff48efd1d9b + name: 'Storage pool [{#NAME}]: Capacity free' + type: DEPENDENT + key: 'huawei.dorado.pool.capacity.free["{#NAME}"]' + delay: '0' + units: B + description: 'Available capacity of a storage pool.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.4.2.1.9.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: huawei.dorado.pool.snmp.walk + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + - uuid: 15d4e63a8295458cb17f873bff59791f + name: 'Storage pool [{#NAME}]: Capacity total' + type: DEPENDENT + key: 'huawei.dorado.pool.capacity.total["{#NAME}"]' + delay: '0' + units: B + description: 'Total capacity of a storage pool.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.4.2.1.7.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.pool.snmp.walk + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + - uuid: 50f34df052df497db7bdcfb489619b5f + name: 'Storage pool [{#NAME}]: Capacity used' + type: DEPENDENT + key: 'huawei.dorado.pool.capacity.used["{#NAME}"]' + delay: '0' + units: B + description: 'Used capacity of a storage pool.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.4.2.1.27.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: huawei.dorado.pool.snmp.walk + tags: + - tag: component + value: storage + - tag: pool + value: '{#NAME}' + - uuid: 1fea3b68249e475c97ff7e14645d5fda + name: 'Storage pool [{#NAME}]: Health status' + type: DEPENDENT + key: 'huawei.dorado.pool.health_status["{#NAME}"]' + delay: '0' + description: 'Health status of a storage pool.' + valuemap: + name: 'Huawei storage: Health status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.4.2.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.pool.snmp.walk + tags: + - tag: component + value: health + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: 86016fd601704dd6943e952aa5f4bff6 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.pool.health_status["{#NAME}"])<>1' + name: 'Huawei Dorado: Storage pool [{#NAME}]: Health status is not Normal' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 5d4c872c88864dcd9e19ea603914f8fb + name: 'Storage pool [{#NAME}]: Running status' + type: DEPENDENT + key: 'huawei.dorado.pool.running_status["{#NAME}"]' + delay: '0' + description: 'Operating status of a storage pool.' + valuemap: + name: 'Huawei storage: Running status' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.34774.4.1.23.4.2.1.6.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: huawei.dorado.pool.snmp.walk + tags: + - tag: component + value: health + - tag: pool + value: '{#NAME}' + trigger_prototypes: + - uuid: 462a2775a1c144eb9854bccab7d38ca0 + expression: 'last(/Huawei OceanStor Dorado by SNMP/huawei.dorado.pool.running_status["{#NAME}"])<>27' + name: 'Huawei Dorado: Storage pool [{#NAME}]: Running status is not Online' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 7c57d0ba8e4144ba903104648709590e + name: 'Storage pool [{#NAME}]: Capacity' + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.pool.capacity.total["{#NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.pool.capacity.free["{#NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: 'huawei.dorado.pool.capacity.used["{#NAME}"]' + master_item: + key: huawei.dorado.pool.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#NAME}' + - 1.3.6.1.4.1.34774.4.1.23.4.2.1.2 + - '0' + - '{#POOL.USED.CAPACITY}' + - 1.3.6.1.4.1.34774.4.1.23.4.2.1.27 + - '0' + overrides: + - name: 'V700 specific, pool used capacity' + step: '1' + filter: + conditions: + - macro: '{#POOL.USED.CAPACITY}' + operator: NOT_EXISTS + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Capacity used' + discover: NO_DISCOVER + tags: + - tag: class + value: hardware + - tag: class + value: storage + - tag: target + value: huawei + - tag: target + value: huawei-oceanstor-dorado + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of CPU utilization expressed in %.' + - macro: '{$HUAWEI.DORADO.DISK.TEMP.MAX.TIME}' + value: 5m + description: 'The time during which the disk temperature may exceed the threshold.' + - macro: '{$HUAWEI.DORADO.DISK.TEMP.MAX.WARN}' + value: '45' + description: 'Maximum disk temperature. Can be used with `{#MODEL}` as context.' + - macro: '{$HUAWEI.DORADO.LUN.IO.TIME.MAX.TIME}' + value: 5m + description: 'The time during which the average I/O response time of a LUN may exceed the threshold.' + - macro: '{$HUAWEI.DORADO.LUN.IO.TIME.MAX.WARN}' + value: '0.0001' + description: 'Maximum average I/O response time of a LUN in seconds.' + - macro: '{$HUAWEI.DORADO.MEM.MAX.TIME}' + value: 5m + description: 'The time during which memory usage may exceed the threshold.' + - macro: '{$HUAWEI.DORADO.MEM.MAX.WARN}' + value: '90' + description: 'Maximum percentage of memory used.' + - macro: '{$HUAWEI.DORADO.TEMP.MAX.TIME}' + value: 3m + description: 'The time during which the enclosure temperature may exceed the threshold.' + - macro: '{$HUAWEI.DORADO.TEMP.MAX.WARN}' + value: '35' + description: 'Maximum enclosure temperature.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + dashboards: + - uuid: 7660a71516b84b47b104ab4f976a13ef + name: Overview + pages: + - name: 'Capacity total' + widgets: + - type: graph + name: 'Capacity total' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Huawei OceanStor Dorado by SNMP' + name: Capacity + - type: STRING + name: reference + value: EFDAA + - name: 'CPU utilization' + widgets: + - type: graphprototype + name: 'Controller [{#ID}]: CPU utilization' + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor Dorado by SNMP' + name: 'Controller [{#ID}]: CPU utilization' + - type: STRING + name: reference + value: FCBEC + - type: graphprototype + name: 'Node [{#NODE}]: CPU utilization' + 'y': '4' + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor Dorado by SNMP' + name: 'Node [{#NODE}]: CPU utilization' + - type: STRING + name: reference + value: EABAA + - name: Node + widgets: + - type: graphprototype + name: 'Node [{#NODE}]: Node I/O' + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor Dorado by SNMP' + name: 'Node [{#NODE}]: Node I/O' + - type: STRING + name: reference + value: CEFEF + - type: graphprototype + name: 'Node [{#NODE}]: Node traffic' + 'y': '4' + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor Dorado by SNMP' + name: 'Node [{#NODE}]: Node traffic' + - type: STRING + name: reference + value: DEEEA + - name: Lun + widgets: + - type: graphprototype + name: 'LUN [{#NAME}]: LUN I/O' + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor Dorado by SNMP' + name: 'LUN [{#NAME}]: LUN I/O' + - type: STRING + name: reference + value: BCFDA + - type: graphprototype + name: 'LUN [{#NAME}]: LUN traffic' + 'y': '4' + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei OceanStor Dorado by SNMP' + name: 'LUN [{#NAME}]: LUN traffic' + - type: STRING + name: reference + value: CFFDA + valuemaps: + - uuid: 98ea0c82a56a434ea9cd02ddb31eef6a + name: 'Huawei storage: Controller role' + mappings: + - value: '0' + newvalue: Normal + - value: '1' + newvalue: Master + - value: '2' + newvalue: Slave + - uuid: 7ef6825cca084ab9a3250448596fac32 + name: 'Huawei storage: Health status' + mappings: + - value: '0' + newvalue: Undefined + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Fault + - value: '3' + newvalue: Pre-fail + - value: '4' + newvalue: 'Partially broken' + - value: '5' + newvalue: Degraded + - value: '6' + newvalue: 'Bad sectors found' + - value: '7' + newvalue: 'Bit errors found' + - value: '8' + newvalue: Consistent + - value: '9' + newvalue: Inconsistent + - value: '10' + newvalue: Busy + - value: '11' + newvalue: 'No input' + - value: '12' + newvalue: 'Low battery' + - value: '13' + newvalue: 'Single link fault' + - value: '14' + newvalue: Invalid + - value: '15' + newvalue: 'Write protect' + - uuid: 654d5d768ff041c6abc0a438be5698f4 + name: 'Huawei storage: LUN status' + mappings: + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Faulty + - value: '3' + newvalue: Unformatted + - value: '4' + newvalue: Formatting + - uuid: e03d03289e84401b8c7e2ba1ddc67ba7 + name: 'Huawei storage: Running status' + mappings: + - value: '0' + newvalue: Undefined + - value: '1' + newvalue: Normal + - value: '2' + newvalue: Running + - value: '3' + newvalue: 'Not running' + - value: '4' + newvalue: 'Not existed' + - value: '5' + newvalue: 'Sleep in high temperature' + - value: '6' + newvalue: Starting + - value: '7' + newvalue: 'Power failure protection' + - value: '8' + newvalue: 'Spin down' + - value: '9' + newvalue: Started + - value: '10' + newvalue: 'Link Up' + - value: '11' + newvalue: 'Link Down' + - value: '12' + newvalue: 'Powering on' + - value: '13' + newvalue: 'Powered off' + - value: '14' + newvalue: Pre-copy + - value: '15' + newvalue: Copyback + - value: '16' + newvalue: Reconstruction + - value: '17' + newvalue: Expansion + - value: '18' + newvalue: Unformatted + - value: '19' + newvalue: Formatting + - value: '20' + newvalue: Unmapped + - value: '21' + newvalue: 'Initial synchronizing' + - value: '22' + newvalue: Consistent + - value: '23' + newvalue: Synchronizing + - value: '24' + newvalue: Synchronized + - value: '25' + newvalue: Unsynchronized + - value: '26' + newvalue: Split + - value: '27' + newvalue: Online + - value: '28' + newvalue: Offline + - value: '29' + newvalue: Locked + - value: '30' + newvalue: Enabled + - value: '31' + newvalue: Disabled + - value: '32' + newvalue: Balancing + - value: '33' + newvalue: 'To be recovered' + - value: '34' + newvalue: Interrupted + - value: '35' + newvalue: Invalid + - value: '36' + newvalue: 'Not start' + - value: '37' + newvalue: Queuing + - value: '38' + newvalue: Stopped + - value: '39' + newvalue: Copying + - value: '40' + newvalue: Completed + - value: '41' + newvalue: Paused + - value: '42' + newvalue: 'Reverse synchronizing' + - value: '43' + newvalue: Activated + - value: '44' + newvalue: Restore + - value: '45' + newvalue: Inactive + - value: '46' + newvalue: Idle + - value: '47' + newvalue: 'Powering off' + - value: '48' + newvalue: Charging + - value: '49' + newvalue: 'Charging completed' + - value: '50' + newvalue: Discharging + - value: '51' + newvalue: Upgrading + - value: '52' + newvalue: 'Power Lost' + - value: '53' + newvalue: Initializing + - value: '54' + newvalue: 'Apply change' + - value: '55' + newvalue: 'Online disable' + - value: '56' + newvalue: 'Offline disable' + - value: '57' + newvalue: 'Online frozen' + - value: '58' + newvalue: 'Offline frozen' + - value: '59' + newvalue: Closed + - value: '60' + newvalue: Removing + - value: '61' + newvalue: 'In service' + - value: '62' + newvalue: 'Out of service' + - value: '63' + newvalue: 'Running normal' + - value: '64' + newvalue: 'Running fail' + - value: '65' + newvalue: 'Running success' + - value: '66' + newvalue: 'Running success' + - value: '67' + newvalue: 'Running failed' + - value: '68' + newvalue: Waiting + - value: '69' + newvalue: Canceling + - value: '70' + newvalue: Canceled + - value: '71' + newvalue: 'About to synchronize' + - value: '72' + newvalue: 'Synchronizing data' + - value: '73' + newvalue: 'Failed to synchronize' + - value: '74' + newvalue: Fault + - value: '75' + newvalue: Migrating + - value: '76' + newvalue: Migrated + - value: '77' + newvalue: Activating + - value: '78' + newvalue: Deactivating + - value: '79' + newvalue: 'Start failed' + - value: '80' + newvalue: 'Stop failed' + - value: '81' + newvalue: Decommissioning + - value: '82' + newvalue: Decommissioned + - value: '83' + newvalue: Recommissioning + - value: '84' + newvalue: 'Replacing node' + - value: '85' + newvalue: Scheduling + - value: '86' + newvalue: Pausing + - value: '87' + newvalue: Suspending + - value: '88' + newvalue: Suspended + - value: '89' + newvalue: Overload + - value: '90' + newvalue: 'To be switch' + - value: '91' + newvalue: Switching + - value: '92' + newvalue: 'To be cleanup' + - value: '93' + newvalue: 'Forced start' + - value: '94' + newvalue: Error + - value: '95' + newvalue: 'Job completed' + - value: '96' + newvalue: 'Partition Migrating' + - value: '97' + newvalue: Mount + - value: '98' + newvalue: Umount + - value: '99' + newvalue: INSTALLING + - value: '100' + newvalue: 'To Be Synchronized' + - value: '101' + newvalue: Connecting + - value: '102' + newvalue: 'Service Switching' + - value: '103' + newvalue: 'Power-on failed' + - value: '104' + newvalue: REPAIRING + - value: '105' + newvalue: abnormal + - value: '106' + newvalue: Deleting + - value: '107' + newvalue: Modifying + - value: '108' + newvalue: 'Running(clearing data)' + - value: '109' + newvalue: 'Running(synchronizing data)' + - uuid: f8cf9fe95cc54dcba96d4bfe8d8ec34b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: da38017b841a4c17adff896fe2cbc9fe + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 41d6237c6623468ba232930318f7a335 + expression: '(last(/Huawei OceanStor Dorado by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Huawei OceanStor Dorado by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Huawei OceanStor Dorado by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Huawei OceanStor Dorado by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Huawei Dorado: Host has been restarted' + event_name: 'Huawei Dorado: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Huawei Dorado: No SNMP data collection' + expression: 'max(/Huawei OceanStor Dorado by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: b4c9351df38148929d02371a49b751e4 + name: Capacity + graph_items: + - color: 199C0D + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: huawei.dorado.capacity.total + - sortorder: '1' + color: F63100 + item: + host: 'Huawei OceanStor Dorado by SNMP' + key: huawei.dorado.capacity.used diff --git a/Huawei_VRP_by_SNMP.yaml b/Huawei_VRP_by_SNMP.yaml new file mode 100644 index 0000000..75f753b --- /dev/null +++ b/Huawei_VRP_by_SNMP.yaml @@ -0,0 +1,1777 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: ad4c3dad4b7b492685d1fd3bd3a664f9 + template: 'Huawei VRP by SNMP' + name: 'Huawei VRP by SNMP' + description: | + Template Net Huawei VRP + + MIBs used: + EtherLike-MIB + HUAWEI-ENTITY-EXTENT-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + ENTITY-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 1cd98c8030f14fbca6abee35eb87e45b + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 49df55106af2439eb79e66caa2717ec9 + expression: 'max(/Huawei VRP by SNMP/icmpping,#3)=0' + name: 'Huawei VRP: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: ee1ee4ce3b3a4545bd407ecc3e428049 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b7ca2b5273be4f50b5c20b422a534868 + expression: 'min(/Huawei VRP by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Huawei VRP by SNMP/icmppingloss,5m)<100' + name: 'Huawei VRP: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Huawei VRP: Unavailable by ICMP ping' + expression: 'max(/Huawei VRP by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4f3bda2c7ab84a418bde7602cf0d608d + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c322fda29bab4f99a0ea204814390551 + expression: 'avg(/Huawei VRP by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Huawei VRP: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Huawei VRP: High ICMP ping loss' + expression: 'min(/Huawei VRP by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Huawei VRP by SNMP/icmppingloss,5m)<100' + - name: 'Huawei VRP: Unavailable by ICMP ping' + expression: 'max(/Huawei VRP by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 023b4403df464029a1493c53a0122d6f + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 9aba5f7df03b4904869e0043dc73b9ae + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 034cdbc177c346e0b49791250b8bf66d + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 202c91a61d644285a0d74d88ae1b1a79 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 78041d1a10ed4cb6b89a77bc1478b009 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3fad2aa468c2492a89b28bdbffd00c6c + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 740f78d69b20405da79525365fdc29fe + expression: 'last(/Huawei VRP by SNMP/system.name,#1)<>last(/Huawei VRP by SNMP/system.name,#2) and length(last(/Huawei VRP by SNMP/system.name))>0' + name: 'Huawei VRP: System name has changed' + event_name: 'Huawei VRP: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: e9dd0d849aaa499da9e2ef9e21ccd50e + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a5e66466550f44a4b1d2137c751e9009 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 291fbe54d7c845bb9ec5b080be084612 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: cefe56d564434018b6a31c196cc7eb55 + expression: 'max(/Huawei VRP by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Huawei VRP: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Huawei VRP: Unavailable by ICMP ping' + expression: 'max(/Huawei VRP by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 40ceaa1bc97342c18e6af3e0b931a08b + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2011.5.25.31.1.1.10.1.1]' + key: discovery.fans + delay: 1h + item_prototypes: + - uuid: dfd00d1c27034d1b8f800939e33e8ddb + name: '#{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2011.5.25.31.1.1.10.1.7.{#SNMPINDEX}]' + key: 'sensor.fan.status[hwEntityFanState.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: HUAWEI-ENTITY-EXTENT-MIB' + valuemap: + name: 'HUAWEI-ENTITY-EXTENT-MIB::hwEntityFanState' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: ba459f7ce17a4f71a46fa1a0337f0f89 + expression: 'count(/Huawei VRP by SNMP/sensor.fan.status[hwEntityFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Huawei VRP: #{#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: df877d1d7c9f44b5917b47aa474bbd2f + name: 'Entity Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: entity.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_CLASS}' + value: '3' + formulaid: A + item_prototypes: + - uuid: c25af879114744fda58fb8516a0c171a + name: '{#ENT_NAME}: Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.2.{#SNMPINDEX}]' + key: 'system.hw.model[entPhysicalDescr.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 597d528e3de944a5807ff37a97763a7e + name: 'MPU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: mpu.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_NAME}' + value: 'MPU.*' + formulaid: A + description: 'http://support.huawei.com/enterprise/KnowledgebaseReadAction.action?contentId=KB1000090234. Filter limits results to Main Processing Units' + item_prototypes: + - uuid: 29549c71091a44108377a90eb9afff25 + name: '{#ENT_NAME}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2011.5.25.31.1.1.1.1.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: HUAWEI-ENTITY-EXTENT-MIB + The temperature for the {#SNMPVALUE}. + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: d28db9267b9d488f8f359dd7d14d2ac1 + expression: 'avg(/Huawei VRP by SNMP/sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#ENT_NAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Huawei VRP by SNMP/sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#ENT_NAME}"}-3' + name: 'Huawei VRP: {#ENT_NAME}: Temperature is above critical threshold' + event_name: 'Huawei VRP: {#ENT_NAME}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#ENT_NAME}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c54c36491adf4a488d11f2538b337129 + expression: 'avg(/Huawei VRP by SNMP/sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#ENT_NAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Huawei VRP by SNMP/sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#ENT_NAME}"}-3' + name: 'Huawei VRP: {#ENT_NAME}: Temperature is above warning threshold' + event_name: 'Huawei VRP: {#ENT_NAME}: Temperature is above warning threshold: >{$TEMP_WARN:"{#ENT_NAME}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Huawei VRP: {#ENT_NAME}: Temperature is above critical threshold' + expression: 'avg(/Huawei VRP by SNMP/sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#ENT_NAME}"}' + recovery_expression: 'max(/Huawei VRP by SNMP/sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#ENT_NAME}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7b2cffb3ad47440d8b79b39958794ed9 + expression: 'avg(/Huawei VRP by SNMP/sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#ENT_NAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Huawei VRP by SNMP/sensor.temp.value[hwEntityTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#ENT_NAME}"}+3' + name: 'Huawei VRP: {#ENT_NAME}: Temperature is too low' + event_name: 'Huawei VRP: {#ENT_NAME}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#ENT_NAME}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6fae73ea06ff4e99956085fb807d75ae + name: '{#ENT_NAME}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.{#SNMPINDEX}]' + key: 'system.cpu.util[hwEntityCpuUsage.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: HUAWEI-ENTITY-EXTENT-MIB + The CPU usage for this entity. Generally, the CPU usage will calculate the overall CPU usage on the entity, and itis not sensible with the number of CPU on the entity. + Reference: http://support.huawei.com/enterprise/KnowledgebaseReadAction.action?contentId=KB1000090234 + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 66bfe7805cae4447a32a6e5877e1231b + expression: 'min(/Huawei VRP by SNMP/system.cpu.util[hwEntityCpuUsage.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Huawei VRP: {#ENT_NAME}: High CPU utilization' + event_name: 'Huawei VRP: {#ENT_NAME}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: d7e128d526c14d1bb5519090104f0e04 + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: e379ca4d50a3434e82841e8884a84656 + expression: 'last(/Huawei VRP by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#1)<>last(/Huawei VRP by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#2) and length(last(/Huawei VRP by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]))>0' + name: 'Huawei VRP: {#ENT_NAME}: Device has been replaced' + event_name: 'Huawei VRP: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 110646e0177f4fbe840f6ba2d1d2afc4 + name: '{#ENT_NAME}: Hardware version(revision)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.8.{#SNMPINDEX}]' + key: 'system.hw.version[entPhysicalHardwareRev.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 4472c8f94cd241468c851283f9854730 + name: '{#ENT_NAME}: Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.10.{#SNMPINDEX}]' + key: 'system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + trigger_prototypes: + - uuid: 698067d647424c96addeb3c9f960dd07 + expression: 'last(/Huawei VRP by SNMP/system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}],#1)<>last(/Huawei VRP by SNMP/system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}],#2) and length(last(/Huawei VRP by SNMP/system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}]))>0' + name: 'Huawei VRP: {#ENT_NAME}: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possible reasons that system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Huawei VRP: System name has changed' + expression: 'last(/Huawei VRP by SNMP/system.name,#1)<>last(/Huawei VRP by SNMP/system.name,#2) and length(last(/Huawei VRP by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 6215b7e957884516a350f8a7038c7d3e + name: '{#ENT_NAME}: Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2011.5.25.31.1.1.1.1.7.{#SNMPINDEX}]' + key: 'vm.memory.util[hwEntityMemUsage.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: HUAWEI-ENTITY-EXTENT-MIB + The memory usage for the entity. This object indicates what percent of memory are used. + Reference: http://support.huawei.com/enterprise/KnowledgebaseReadAction.action?contentId=KB1000090234 + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 2d93533c7cc74dc9a85e280605e21e7d + expression: 'min(/Huawei VRP by SNMP/vm.memory.util[hwEntityMemUsage.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Huawei VRP: {#ENT_NAME}: High memory utilization' + event_name: 'Huawei VRP: {#ENT_NAME}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 29cf1159b56b4cf086a980609efaf046 + name: '{#ENT_NAME}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Huawei VRP by SNMP' + key: 'system.cpu.util[hwEntityCpuUsage.{#SNMPINDEX}]' + - uuid: ff65fc169cd343bbb866033bccd51abf + name: '{#ENT_NAME}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Huawei VRP by SNMP' + key: 'vm.memory.util[hwEntityMemUsage.{#SNMPINDEX}]' + - uuid: 840dc40761294dc294cdd909318a7053 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: e5972a8dce67488cb6119c4f49d59a12 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d21e9fec64c54fd19605f8a8ba230211 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e5323fadbfbe4773ab450312a2c29164 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c5bc13495caf4a208b21bcd0a515a19d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9291e8cfc58a4c029ff339bae4892faf + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 998389bdf381441e92ddd597272002fa + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c45208952a8f43e7a4ac90dbc9bf2eac + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1659d815112945478585fceef9318e68 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b67a4949e886409b89537338f657570e + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Huawei VRP: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f6135b96b3584060b3a605312748edf4 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 675512801cb5498887b8411c5afd5f0c + expression: | + change(/Huawei VRP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Huawei VRP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Huawei VRP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Huawei VRP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Huawei VRP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Huawei VRP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Huawei VRP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Huawei VRP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Huawei VRP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Huawei VRP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Huawei VRP: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Huawei VRP: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 9ebcd822aa6a4fb493c74c4d4759510b + expression: | + (avg(/Huawei VRP by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Huawei VRP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Huawei VRP by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Huawei VRP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Huawei VRP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Huawei VRP by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Huawei VRP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Huawei VRP by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Huawei VRP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Huawei VRP: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Huawei VRP: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Huawei VRP: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 609c079cc7fd486fb4c938acd1c8b47f + expression: | + min(/Huawei VRP by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Huawei VRP by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Huawei VRP by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Huawei VRP by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Huawei VRP: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Huawei VRP: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Huawei VRP: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Huawei VRP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 2a0d7c12dc4146399cda6b80a1b75f26 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Huawei VRP by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Huawei VRP by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Huawei VRP by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Huawei VRP by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Huawei VRP by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Huawei VRP by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 3d5bfd91c42b4656bf5843484ca2e016 + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: 75c0d230a0ff43c2b0d40a071d058c72 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5f275f483fca402ba8f9aa485398d85b + expression: 'last(/Huawei VRP by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'Huawei VRP: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + tags: + - tag: class + value: network + - tag: target + value: huawei + - tag: target + value: huawei-vrp + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '2' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + dashboards: + - uuid: 861eb1017c334f1d8e7e2a0271f69d57 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Huawei VRP by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 64bf3ebd444c4c4ca472b0846790b107 + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 5d3f20a830b34f668c5f3ece41a039cd + name: 'HUAWEI-ENTITY-EXTENT-MIB::hwEntityFanState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: abnormal + - uuid: ec040521269743e7a402bbdd1c952ea3 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: a46f120c4e16400980806c27eb08de1e + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 3bde7ef9431d4a9e86d3cb88bb46a38b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: c2435e2487434b3b888c54cb4b6c0139 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: c8c41677f4ba463b90cea501e9112483 + expression: '(last(/Huawei VRP by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Huawei VRP by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Huawei VRP by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Huawei VRP by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Huawei VRP: Host has been restarted' + event_name: 'Huawei VRP: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Huawei VRP: No SNMP data collection' + expression: 'max(/Huawei VRP by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/IBM_IMM_by_SNMP.yaml b/IBM_IMM_by_SNMP.yaml new file mode 100644 index 0000000..9906d7a --- /dev/null +++ b/IBM_IMM_by_SNMP.yaml @@ -0,0 +1,933 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: c9e1acd3ae4a427ab39724b6bcaf839e + template: 'IBM IMM by SNMP' + name: 'IBM IMM by SNMP' + description: | + Template Server IBM IMM + + MIBs used: + IMM-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + + Known Issues: + + Description: Some IMMs (IMM1) do not return disks + Version: IMM1 + Device: IBM x3250M3 + + Description: Some IMMs (IMM1) do not return fan status: fanHealthStatus + Version: IMM1 + Device: IBM x3250M3 + + Description: IMM1 servers (M2, M3 generations) sysObjectID is NET-SNMP-MIB::netSnmpAgentOIDs.10 + Version: IMM1 + Device: IMM1 servers (M2,M3 generations) + + Description: IMM1 servers (M2, M3 generations) only Ambient temperature sensor available + Version: IMM1 + Device: IMM1 servers (M2,M3 generations) + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 303807b2799f4f7cace3d781e9ed1715 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 937225d93eea44b3a8328eee03cf66f0 + expression: 'max(/IBM IMM by SNMP/icmpping,#3)=0' + name: 'IBM IMM: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 4af423253e1b4960825b49041d9c8feb + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ec37a141b33c46308b8d810069ce9142 + expression: 'min(/IBM IMM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/IBM IMM by SNMP/icmppingloss,5m)<100' + name: 'IBM IMM: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'IBM IMM: Unavailable by ICMP ping' + expression: 'max(/IBM IMM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b1659e3298fb447f8ee93e8bab98a22d + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 0541700de60549da8439f9b75cf83e7f + expression: 'avg(/IBM IMM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'IBM IMM: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'IBM IMM: High ICMP ping loss' + expression: 'min(/IBM IMM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/IBM IMM by SNMP/icmppingloss,5m)<100' + - name: 'IBM IMM: Unavailable by ICMP ping' + expression: 'max(/IBM IMM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e0a1cdb1df4d408087a8ed3d473ce1fe + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 6686560b390540b593a2d3bb3289ea41 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 905c91ce799849dfb56b800c93849826 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7075609a2d2545828a93f701d7b02c17 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.5.2.1.5.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: IMM-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: db393421a28b44148b0a1e1273186900 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.5.2.1.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IMM-MIB + Machine serial number VPD information + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: b2bf06198d5840c6905ea6cf6d9e443c + expression: 'last(/IBM IMM by SNMP/system.hw.serialnumber,#1)<>last(/IBM IMM by SNMP/system.hw.serialnumber,#2) and length(last(/IBM IMM by SNMP/system.hw.serialnumber))>0' + name: 'IBM IMM: Device has been replaced' + event_name: 'IBM IMM: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 81e5ed7d945d40f780eb9bd872ea1832 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 589def06a1b74a7f8ada7cc4576aa9eb + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 596ce9f7e6b848e4869cd195996c7114 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 188852025e644d5ab583f9d7a9dea06c + expression: 'last(/IBM IMM by SNMP/system.name,#1)<>last(/IBM IMM by SNMP/system.name,#2) and length(last(/IBM IMM by SNMP/system.name))>0' + name: 'IBM IMM: System name has changed' + event_name: 'IBM IMM: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 97cd7cf6a9a545788a2f709bacb925ed + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: ad8eada79b464821a14759f32f6d7f2a + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 33572e0e11214d8b8454e6947e0d282d + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.4.1.0]' + key: 'system.status[systemHealthStat.0]' + delay: 30s + trends: '0' + description: | + MIB: IMM-MIB + Indicates status of system health for the system in which the IMM resides. Value of 'nonRecoverable' indicates a severe error has occurred and the system may not be functioning. A value of 'critical' indicates that an error has occurred but the system is currently functioning properly. A value of 'nonCritical' indicates that a condition has occurred that may change the state of the system in the future but currently the system is working properly. A value of 'normal' indicates that the system is operating normally. + valuemap: + name: 'IMM-MIB::systemHealthStat' + tags: + - tag: component + value: system + triggers: + - uuid: ea8fbc9446d34033b60a8214b8199ea1 + expression: 'count(/IBM IMM by SNMP/system.status[systemHealthStat.0],#1,"eq","{$HEALTH_DISASTER_STATUS}")=1' + name: 'IBM IMM: System is in unrecoverable state!' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for faults' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a76c198aeb7d452a8c710ddde21aa12e + expression: 'count(/IBM IMM by SNMP/system.status[systemHealthStat.0],#1,"eq","{$HEALTH_CRIT_STATUS}")=1' + name: 'IBM IMM: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for errors' + dependencies: + - name: 'IBM IMM: System is in unrecoverable state!' + expression: 'count(/IBM IMM by SNMP/system.status[systemHealthStat.0],#1,"eq","{$HEALTH_DISASTER_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: acd147a3d41b49478410f4d49562cde2 + expression: 'count(/IBM IMM by SNMP/system.status[systemHealthStat.0],#1,"eq","{$HEALTH_WARN_STATUS}")=1' + name: 'IBM IMM: System status is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the device for warnings' + dependencies: + - name: 'IBM IMM: System is in unrecoverable state!' + expression: 'count(/IBM IMM by SNMP/system.status[systemHealthStat.0],#1,"eq","{$HEALTH_DISASTER_STATUS}")=1' + - name: 'IBM IMM: System status is in critical state' + expression: 'count(/IBM IMM by SNMP/system.status[systemHealthStat.0],#1,"eq","{$HEALTH_CRIT_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 59d2bec423a84ca186d5785ddea5270b + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fbec2f12ac244723bb31dec5efcc6f85 + expression: 'max(/IBM IMM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'IBM IMM: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'IBM IMM: Unavailable by ICMP ping' + expression: 'max(/IBM IMM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c93e3c9379a4434f84334e5989ec2592 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#FAN_DESCR},1.3.6.1.4.1.2.3.51.3.1.3.2.1.2]' + key: fan.discovery + delay: 1h + description: 'IMM-MIB::fanDescr' + item_prototypes: + - uuid: 3281ba9d16754ff79a9ed0e2bb328129 + name: '{#FAN_DESCR}: Fan speed, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.3.2.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.speed.percentage[fanSpeed.{#SNMPINDEX}]' + units: '%' + description: | + MIB: IMM-MIB + Fan speed expressed in percent(%) of maximum RPM. + An octet string expressed as 'ddd% of maximum' where:d is a decimal digit or blank space for a leading zero. + If the fan is determined not to be running or the fan speed cannot be determined, the string will indicate 'Offline'. + preprocessing: + - type: REGEX + parameters: + - '(\d{1,3}) *%( of maximum)?' + - \1 + tags: + - tag: component + value: fan + - uuid: 6e576c4059c84b6fa80376ee59fd373b + name: '{#FAN_DESCR}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.3.2.1.10.{#SNMPINDEX}]' + key: 'sensor.fan.status[fanHealthStatus.{#SNMPINDEX}]' + delay: 3m + value_type: CHAR + trends: '0' + description: | + MIB: IMM-MIB + A description of the fan component status. + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: b2d4ae5922174af6b0ef274accc8ae21 + expression: 'count(/IBM IMM by SNMP/sensor.fan.status[fanHealthStatus.{#SNMPINDEX}],#1,"ne","{$FAN_OK_STATUS}")=1' + name: 'IBM IMM: {#FAN_DESCR}: Fan is not in normal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + - uuid: dbf08da1d50c4a919bd2bbb1ee15f77e + name: 'Physical Disk Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2.3.51.3.1.12.2.1.1]' + key: physicalDisk.discovery + delay: 1h + item_prototypes: + - uuid: 08f626e126bf45fa8f978a2324118626 + name: '{#SNMPINDEX}: Physical disk part number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.12.2.1.2.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.part_number[diskFruName.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IMM-MIB + disk module FRU name. + tags: + - tag: component + value: disk + - tag: component + value: storage + - uuid: da7aa00e553c4014a70fe08f5fdb67fd + name: '{#SNMPINDEX}: Physical disk status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.12.2.1.3.{#SNMPINDEX}]' + key: 'system.hw.physicaldisk.status[diskHealthStatus.{#SNMPINDEX}]' + delay: 3m + value_type: CHAR + trends: '0' + description: 'MIB: IMM-MIB' + tags: + - tag: component + value: disk + - tag: component + value: storage + trigger_prototypes: + - uuid: 45eb3fe3369a41b199179e2eca725027 + expression: 'count(/IBM IMM by SNMP/system.hw.physicaldisk.status[diskHealthStatus.{#SNMPINDEX}],#1,"ne","{$DISK_OK_STATUS}")=1' + name: 'IBM IMM: {#SNMPINDEX}: Physical disk is not in OK state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check physical disk for warnings or errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e83e43db572d4a25b80629a115214ae8 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#PSU_DESCR},1.3.6.1.4.1.2.3.51.3.1.11.2.1.2]' + key: psu.discovery + delay: 1h + description: 'IMM-MIB::powerFruName' + item_prototypes: + - uuid: e8c7e01f5c3f40d29cdaa7506e293c80 + name: '{#PSU_DESCR}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.11.2.1.6.{#SNMPINDEX}]' + key: 'sensor.psu.status[powerHealthStatus.{#SNMPINDEX}]' + delay: 3m + value_type: CHAR + trends: '0' + description: | + MIB: IMM-MIB + A description of the power module status. + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 4e7767484cff49b098e73b068ef04160 + expression: 'count(/IBM IMM by SNMP/sensor.psu.status[powerHealthStatus.{#SNMPINDEX}],#1,"ne","{$PSU_OK_STATUS}")=1' + name: 'IBM IMM: {#PSU_DESCR}: Power supply is not in normal state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: notice + - uuid: b5ac4b78efca4e8a9d8b2eb875f49c49 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2.3.51.3.1.1.2.1.2]' + key: tempDescr.discovery + delay: 1h + filter: + conditions: + - macro: '{#SNMPVALUE}' + value: '(DIMM|PSU|PCH|RAID|RR|PCI).*' + formulaid: A + description: 'Scanning IMM-MIB::tempTable' + item_prototypes: + - uuid: 02af08c624bc444aae5d1f1b8f8b5d4a + name: '{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.1.2.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.value[tempReading.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: IMM-MIB + Temperature readings of testpoint: {#SNMPVALUE} + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 958eebe18bd94670b2b9029064a84bc9 + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/IBM IMM by SNMP/sensor.temp.value[tempReading.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'IBM IMM: {#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'IBM IMM: {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ecb8ac5828e44a94a32164dce9811fbc + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/IBM IMM by SNMP/sensor.temp.value[tempReading.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'IBM IMM: {#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'IBM IMM: {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'IBM IMM: {#SNMPVALUE}: Temperature is above critical threshold' + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"}' + recovery_expression: 'max(/IBM IMM by SNMP/sensor.temp.value[tempReading.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8ff82421c9f74d509766e7dc139ab2c8 + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/IBM IMM by SNMP/sensor.temp.value[tempReading.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'IBM IMM: {#SNMPVALUE}: Temperature is too low' + event_name: 'IBM IMM: {#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1e4d30dcff7f48bc872127d11f2e22b8 + name: 'Temperature Discovery Ambient' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2.3.51.3.1.1.2.1.2]' + key: tempDescr.discovery.ambient + delay: 1h + filter: + conditions: + - macro: '{#SNMPVALUE}' + value: 'Ambient.*' + formulaid: A + description: 'Scanning IMM-MIB::tempTable with Ambient filter' + item_prototypes: + - uuid: c29ef915c0a6419eabd041ea34775c45 + name: 'Ambient: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.1.2.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.value[tempReading.Ambient.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: IMM-MIB + Temperature readings of testpoint: Ambient + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 615967071d6b40f6b02e386c9586a66e + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.Ambient.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/IBM IMM by SNMP/sensor.temp.value[tempReading.Ambient.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Ambient"}-3' + name: 'IBM IMM: Ambient: Temperature is above critical threshold' + event_name: 'IBM IMM: Ambient: Temperature is above critical threshold: >{$TEMP_CRIT:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e6bcdf201e304471aa84cc8d34b290ec + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.Ambient.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/IBM IMM by SNMP/sensor.temp.value[tempReading.Ambient.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Ambient"}-3' + name: 'IBM IMM: Ambient: Temperature is above warning threshold' + event_name: 'IBM IMM: Ambient: Temperature is above warning threshold: >{$TEMP_WARN:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'IBM IMM: Ambient: Temperature is above critical threshold' + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.Ambient.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Ambient"}' + recovery_expression: 'max(/IBM IMM by SNMP/sensor.temp.value[tempReading.Ambient.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Ambient"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: dd773e52746840e4b6f7517740873102 + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.Ambient.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Ambient"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/IBM IMM by SNMP/sensor.temp.value[tempReading.Ambient.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Ambient"}+3' + name: 'IBM IMM: Ambient: Temperature is too low' + event_name: 'IBM IMM: Ambient: Temperature is too low: <{$TEMP_CRIT_LOW:"Ambient"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7eb45db4b05e42d39e0e2cf889dec2b8 + name: 'Temperature Discovery CPU' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2.3.51.3.1.1.2.1.2]' + key: tempDescr.discovery.cpu + delay: 1h + filter: + conditions: + - macro: '{#SNMPVALUE}' + value: 'CPU [0-9]* Temp' + formulaid: A + description: 'Scanning IMM-MIB::tempTable with CPU filter' + item_prototypes: + - uuid: 87da5286971d4f6487c3220c85850658 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2.3.51.3.1.1.2.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.value[tempReading.CPU.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: IMM-MIB + Temperature readings of testpoint: CPU + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: e994d3d8398147c49062bc712dc4c204 + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.CPU.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/IBM IMM by SNMP/sensor.temp.value[tempReading.CPU.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'IBM IMM: CPU: Temperature is above critical threshold' + event_name: 'IBM IMM: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3b7396311de1487e90416aa2c42cb03d + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.CPU.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/IBM IMM by SNMP/sensor.temp.value[tempReading.CPU.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'IBM IMM: CPU: Temperature is above warning threshold' + event_name: 'IBM IMM: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'IBM IMM: CPU: Temperature is above critical threshold' + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.CPU.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/IBM IMM by SNMP/sensor.temp.value[tempReading.CPU.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e39d0e009efb4216ac7cbbe544ad4bc0 + expression: 'avg(/IBM IMM by SNMP/sensor.temp.value[tempReading.CPU.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/IBM IMM by SNMP/sensor.temp.value[tempReading.CPU.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'IBM IMM: CPU: Temperature is too low' + event_name: 'IBM IMM: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: hardware + - tag: target + value: ibm + - tag: target + value: imm + macros: + - macro: '{$DISK_OK_STATUS}' + value: Normal + - macro: '{$FAN_OK_STATUS}' + value: Normal + - macro: '{$HEALTH_CRIT_STATUS}' + value: '2' + - macro: '{$HEALTH_DISASTER_STATUS}' + value: '0' + - macro: '{$HEALTH_WARN_STATUS}' + value: '4' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$PSU_OK_STATUS}' + value: Normal + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"Ambient"}' + value: '35' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"Ambient"}' + value: '30' + dashboards: + - uuid: bb225bac9cfd482198a8bc767744f2f1 + name: 'IBM IMM: Overview' + pages: + - name: Temperature + widgets: + - type: graphprototype + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'IBM IMM by SNMP' + key: 'sensor.temp.value[tempReading.{#SNMPINDEX}]' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + 'y': '4' + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'IBM IMM by SNMP' + key: 'sensor.temp.value[tempReading.Ambient.{#SNMPINDEX}]' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + 'y': '8' + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'IBM IMM by SNMP' + key: 'sensor.temp.value[tempReading.CPU.{#SNMPINDEX}]' + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: source_type + value: '3' + - name: Fan + widgets: + - type: graphprototype + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'IBM IMM by SNMP' + key: 'sensor.fan.speed.percentage[fanSpeed.{#SNMPINDEX}]' + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: source_type + value: '3' + valuemaps: + - uuid: 61bded84be1d419083d8bd8a8bd25152 + name: 'IMM-MIB::systemHealthStat' + mappings: + - value: '0' + newvalue: nonRecoverable + - value: '2' + newvalue: critical + - value: '4' + newvalue: nonCritical + - value: '255' + newvalue: normal + - uuid: 2fa79738fa194e04bfaeee91a2e4396f + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: c446435a96c24db2845ba0651eb44c94 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 7dd529ec3f1a4a59846a3a76536a7fa0 + expression: '(last(/IBM IMM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/IBM IMM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/IBM IMM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/IBM IMM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'IBM IMM: Host has been restarted' + event_name: 'IBM IMM: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'IBM IMM: No SNMP data collection' + expression: 'max(/IBM IMM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/ICMP_Ping.yaml b/ICMP_Ping.yaml new file mode 100644 index 0000000..3fc66e1 --- /dev/null +++ b/ICMP_Ping.yaml @@ -0,0 +1,120 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 37e5eb5606bc4abba66c8b20381a1e8a + template: 'ICMP Ping' + name: 'ICMP Ping' + description: | + Template Net ICMP Ping + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: db5a94f6cea14deba957202b2f014469 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b030876299434f3ba43e11c584104a81 + expression: 'max(/ICMP Ping/icmpping,#3)=0' + name: 'ICMP Ping: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 04b21adaf422473a88df2c52786474ed + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 42c4b0310aaf4b9c8cb502542b7dea90 + expression: 'min(/ICMP Ping/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/ICMP Ping/icmppingloss,5m)<100' + name: 'ICMP Ping: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'ICMP Ping: Unavailable by ICMP ping' + expression: 'max(/ICMP Ping/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a79e33e5fd264725b934f603fa071555 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 32b4d8f3eba34bd380803410111d4b7f + expression: 'avg(/ICMP Ping/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'ICMP Ping: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'ICMP Ping: High ICMP ping loss' + expression: 'min(/ICMP Ping/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/ICMP Ping/icmppingloss,5m)<100' + - name: 'ICMP Ping: Unavailable by ICMP ping' + expression: 'max(/ICMP Ping/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: icmp + macros: + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + valuemaps: + - uuid: bdb5d65d925542eaa61c302dc40fbfe8 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up diff --git a/IIS_by_Zabbix_agent.yaml b/IIS_by_Zabbix_agent.yaml new file mode 100644 index 0000000..01d6c1c --- /dev/null +++ b/IIS_by_Zabbix_agent.yaml @@ -0,0 +1,791 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: c7c7e5dc319b4801982e719beb1c5191 + template: 'IIS by Zabbix agent' + name: 'IIS by Zabbix agent' + description: | + Get metrics from IIS using Zabbix agent running on Windows. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/401862-discussion-thread-for-official-zabbix-template-internet-information-services + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Applications + items: + - uuid: 96f2dd86997d4e259875b2fa9b1a3169 + name: '{$IIS.PORT} port ping' + type: SIMPLE + key: 'net.tcp.service[{$IIS.SERVICE},,{$IIS.PORT}]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: da7d9c749f884c179a105b0c9475e6bd + expression: 'last(/IIS by Zabbix agent/net.tcp.service[{$IIS.SERVICE},,{$IIS.PORT}])=0' + name: 'IIS: Port {$IIS.PORT} is down' + priority: AVERAGE + manual_close: 'YES' + dependencies: + - name: 'IIS: The World Wide Web Publishing Service (W3SVC) is not running' + expression: 'last(/IIS by Zabbix agent/service.info[W3SVC])<>0' + tags: + - tag: scope + value: availability + - uuid: 50d8f5a08bbc494b8525f26eedbee781 + name: 'Anonymous users per second' + key: 'perf_counter_en["\Web Service(_Total)\Anonymous Users/sec", 60]' + value_type: FLOAT + description: 'The number of requests from users over an anonymous connection per second. Average per minute.' + tags: + - tag: component + value: users + - uuid: ac80660edbb74c1fb4739368806900d5 + name: 'Bytes Received per second' + key: 'perf_counter_en["\Web Service(_Total)\Bytes Received/sec", 60]' + value_type: FLOAT + units: Bps + description: 'The average rate per minute at which data bytes are received by the service at the Application Layer. Does not include protocol headers or control bytes.' + tags: + - tag: component + value: network + - uuid: 5a0648316a164446bbf605930469d4c4 + name: 'Bytes Sent per second' + key: 'perf_counter_en["\Web Service(_Total)\Bytes Sent/sec", 60]' + value_type: FLOAT + units: Bps + description: 'The average rate per minute at which data bytes are sent by the service.' + tags: + - tag: component + value: network + - uuid: f086d17b51254e16bd43b57b39dc000e + name: 'Bytes Total per second' + key: 'perf_counter_en["\Web Service(_Total)\Bytes Total/Sec", 60]' + value_type: FLOAT + units: Bps + description: 'The average rate per minute of total bytes/sec transferred by the Web service (sum of bytes sent/sec and bytes received/sec).' + tags: + - tag: component + value: network + - uuid: b94dc0df81234c7d97197fe30875d5e9 + name: 'Method CGI requests per second' + key: 'perf_counter_en["\Web Service(_Total)\CGI Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of CGI requests that are simultaneously being processed by the Web service. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 1e8244ebb5524c72af1d506df7bb2982 + name: 'Connection attempts per second' + key: 'perf_counter_en["\Web Service(_Total)\Connection Attempts/Sec", 60]' + value_type: FLOAT + description: 'The average rate per minute that connections using the Web service are being attempted. The count is the average for all Web sites combined.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: connections + - uuid: 2b4cb17b486643eda9a560b43af70d74 + name: 'Method COPY requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Copy Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests made using the COPY method. Copy requests are used for copying files and directories. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 1baed2823f1a4d2ca618cac5ab8bbcbb + name: 'Current connections' + key: 'perf_counter_en["\Web Service(_Total)\Current Connections"]' + value_type: FLOAT + description: 'The number of active connections.' + tags: + - tag: component + value: connections + - uuid: 350a6c7fac354570bbba04aa2fd6c98a + name: 'Method DELETE requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Delete Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the DELETE method made. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 6ae641f632ae4422a6f71898078dc2ee + name: 'Method GET requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Get Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests made using the GET method. GET requests are generally used for basic file retrievals or image maps, though they can be used with forms. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 5e37ff2d4d1b4bf6bad855a3d09ec6c7 + name: 'Method HEAD requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Head Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the HEAD method made. HEAD requests generally indicate a client is querying the state of a document they already have to see if it needs to be refreshed. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 18217a40ddbc421fb2db1b19d1fb7d59 + name: 'Method ISAPI requests per second' + key: 'perf_counter_en["\Web Service(_Total)\ISAPI Extension Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of ISAPI Extension requests that are simultaneously being processed by the Web service. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: b7634ae2a9d5454bbac631b55e896277 + name: 'Locked errors per second' + key: 'perf_counter_en["\Web Service(_Total)\Locked Errors/Sec", 60]' + value_type: FLOAT + description: 'The rate of errors due to requests that couldn''t be satisfied by the server because the requested document was locked. These are generally reported as an HTTP 423 error code to the client. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: errors + - uuid: 069548a7c9e840bb8975f9b02b582c51 + name: 'Method LOCK requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Lock Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests made using the LOCK method. Lock requests are used to lock a file for one user so that only that user can modify the file. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 02c1fe0d15d94744959e4b53b21309fe + name: 'Method MKCOL requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Mkcol Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the MKCOL method made. Mkcol requests are used to create directories on the server. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 6395e8edb1394396bd7602f621cf4b00 + name: 'Method MOVE requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Move Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the MOVE method made. Move requests are used for moving files and directories. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: d67523ef47464f8c9735d0a0359b5c77 + name: 'NonAnonymous users per second' + key: 'perf_counter_en["\Web Service(_Total)\NonAnonymous Users/sec", 60]' + value_type: FLOAT + description: 'The number of requests from users over a non-anonymous connection per second. Average per minute.' + tags: + - tag: component + value: users + - uuid: 11d9995d25114e4fad666a1b75734c01 + name: 'Not Found errors per second' + key: 'perf_counter_en["\Web Service(_Total)\Not Found Errors/Sec", 60]' + value_type: FLOAT + description: 'The rate of errors due to requests that couldn''t be satisfied by the server because the requested document could not be found. These are generally reported to the client with HTTP error code 404. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: errors + - uuid: 22ececa2db2d488587b1194883723ea6 + name: 'Method OPTIONS requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Options Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the OPTIONS method made. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 1653ca4c0c6743f39d9b1e764022da7c + name: 'Method Total Other requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Other Request Methods/Sec", 60]' + value_type: FLOAT + description: 'Total Other Request Methods is the number of HTTP requests that are not OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, MOVE, COPY, MKCOL, PROPFIND, PROPPATCH, SEARCH, LOCK or UNLOCK methods (since service startup). Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 5f1210173665453e84f8f330a8c15eea + name: 'Method POST requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Post Requests/Sec", 60]' + value_type: FLOAT + description: 'Rate of HTTP requests using POST method. Generally used for forms or gateway requests. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: f197e93e03d04025bc855d4d77c35010 + name: 'Method PROPFIND requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Propfind Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the PROPFIND method made. Propfind requests retrieve property values on files and directories. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 55c71bab45b04a2ca2afb526bf7c3e7f + name: 'Method PROPPATCH requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Proppatch Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the PROPPATCH method made. Proppatch requests set property values on files and directories. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: d1d19cf6c920465184aa2b2a8b4439c9 + name: 'Method PUT requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Put Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the PUT method made. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 20ae8a67912045dc9b69c83d68e5e8ea + name: 'Method MS-SEARCH requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Search Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the MS-SEARCH method made. Search requests are used to query the server to find resources that match a set of conditions provided by the client. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 4aa9419482eb484a8fc1773bee8b2993 + name: Uptime + key: 'perf_counter_en["\Web Service(_Total)\Service Uptime"]' + value_type: FLOAT + units: s + description: 'The service uptime expressed in seconds.' + tags: + - tag: component + value: application + triggers: + - uuid: 7bbf8a836c66422abd4469d28afbcc00 + expression: 'last(/IIS by Zabbix agent/perf_counter_en["\Web Service(_Total)\Service Uptime"])<10m' + name: 'IIS: Service has been restarted' + event_name: 'IIS: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 805f7dca2ac74f5bbfb81c5e7bfa6e09 + name: 'Total connection attempts' + key: 'perf_counter_en["\Web Service(_Total)\Total Connection Attempts (all instances)"]' + value_type: FLOAT + description: 'The total number of connections to the Web or FTP service that have been attempted since service startup. The count is the total for all Web sites or FTP sites combined.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: connections + - uuid: 90eb19d7d37f439da2c78c44d85784ef + name: 'Method Total requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Total Method Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of all HTTP requests received. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: c2ddd72243ba4a499a7a1e9ba6e4046c + name: 'Method TRACE requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Trace Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the TRACE method made. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 05a19416695b436daf701d9750b015a8 + name: 'Method TRACE requests per second' + key: 'perf_counter_en["\Web Service(_Total)\Unlock Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the UNLOCK method made. Unlock requests are used to remove locks from files. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 1e4b39ec2cca49fb9fb5a306c2724568 + name: 'Files cache hits percentage' + key: 'perf_counter_en["\Web Service Cache\File Cache Hits %"]' + value_type: FLOAT + description: 'The ratio of user-mode file cache hits to total cache requests (since service startup). Note: This value might be low if the Kernel URI cache hits percentage is high.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: cache + - uuid: d9c46d370afc496ba0a0ad0c141b4490 + name: 'File cache misses' + key: 'perf_counter_en["\Web Service Cache\File Cache Misses"]' + value_type: FLOAT + description: 'The total number of unsuccessful lookups in the user-mode file cache since service startup.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: cache + - uuid: 566f0bea097e4b0bb7042e4f0302ff26 + name: 'URIs cache hits percentage' + key: 'perf_counter_en["\Web Service Cache\URI Cache Hits %"]' + value_type: FLOAT + description: 'The ratio of user-mode URI Cache Hits to total cache requests (since service startup)' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: cache + - uuid: ab1884be28b54ea7bb187bbe843bb6a7 + name: 'URI cache misses' + key: 'perf_counter_en["\Web Service Cache\URI Cache Misses"]' + value_type: FLOAT + description: 'The total number of unsuccessful lookups in the user-mode URI cache since service startup.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: cache + - uuid: 7d76ec3d35f6446c842595c4831fabf4 + name: 'World Wide Web Publishing Service (W3SVC) state' + key: 'service.info[W3SVC]' + description: 'The World Wide Web Publishing Service (W3SVC) provides web connectivity and administration of websites through the IIS snap-in. If the World Wide Web Publishing Service stops, the operating system cannot serve any form of web request. This service was dependent on "Windows Process Activation Service".' + valuemap: + name: 'Windows service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: cac6bbb13ce84772a976275da0805179 + expression: 'last(/IIS by Zabbix agent/service.info[W3SVC])<>0' + name: 'IIS: The World Wide Web Publishing Service (W3SVC) is not running' + priority: HIGH + description: 'The World Wide Web Publishing Service (W3SVC) is not in the running state. IIS cannot start.' + dependencies: + - name: 'IIS: Windows process Activation Service (WAS) is not running' + expression: 'last(/IIS by Zabbix agent/service.info[WAS])<>0' + tags: + - tag: scope + value: availability + - uuid: 38858eb3cc2f4580a0a3c56c11fdeba5 + name: 'Windows Process Activation Service (WAS) state' + key: 'service.info[WAS]' + description: 'Windows Process Activation Service (WAS) is a tool for managing worker processes that contain applications that host Windows Communication Foundation (WCF) services. Worker processes handle requests that are sent to a Web Server for specific application pools. Each application pool sets boundaries for the applications it contains.' + valuemap: + name: 'Windows service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 98fc8e403ac0405e84bf533336c4102c + expression: 'last(/IIS by Zabbix agent/service.info[WAS])<>0' + name: 'IIS: Windows process Activation Service (WAS) is not running' + priority: HIGH + description: 'Windows Process Activation Service (WAS) is not in the running state. IIS cannot start.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 6148952d54d54982af404c6c845ccbf2 + name: 'Application pools discovery' + key: 'wmi.getall[root\webAdministration, select Name from ApplicationPool]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#APPPOOL}' + value: '{$IIS.APPPOOL.MATCHES}' + formulaid: A + - macro: '{#APPPOOL}' + value: '{$IIS.APPPOOL.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 270068fe6e6844ae9bbf993509eda7e0 + name: 'AppPool {#APPPOOL} state' + key: 'perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Current Application Pool State"]' + description: 'The state of the application pool.' + valuemap: + name: 'Application pool state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: application-pool + value: '{#APPPOOL}' + - tag: component + value: application + trigger_prototypes: + - uuid: 56c6df39f3d1419ca4ce67c70f464ab7 + expression: 'last(/IIS by Zabbix agent/perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Current Application Pool State"])<>3 and {$IIS.APPPOOL.MONITORED:"{#APPPOOL}"}=1' + name: 'IIS: Application pool {#APPPOOL} is not in Running state' + priority: HIGH + dependencies: + - name: 'IIS: The World Wide Web Publishing Service (W3SVC) is not running' + expression: 'last(/IIS by Zabbix agent/service.info[W3SVC])<>0' + tags: + - tag: scope + value: availability + - uuid: f039a53351d54132ab9ad046282389d8 + name: '{#APPPOOL} Uptime' + key: 'perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Current Application Pool Uptime"]' + value_type: FLOAT + units: s + description: 'The web application uptime period since the last restart.' + tags: + - tag: application-pool + value: '{#APPPOOL}' + - tag: component + value: application + trigger_prototypes: + - uuid: 53afe8614ac542feaed1d656152bafd2 + expression: 'last(/IIS by Zabbix agent/perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Current Application Pool Uptime"])<10m' + name: 'IIS: {#APPPOOL} has been restarted' + event_name: 'IIS: {#APPPOOL} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4700b5729ca440869de976ae347598cf + name: 'AppPool {#APPPOOL} recycles' + key: 'perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Total Application Pool Recycles"]' + description: 'The number of times the application pool has been recycled since Windows Process Activation Service (WAS) started.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: application-pool + value: '{#APPPOOL}' + - tag: component + value: application + trigger_prototypes: + - uuid: 665d5fbd0b9247e890a9cfa1b39fa415 + expression: 'last(/IIS by Zabbix agent/perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Total Application Pool Recycles"],#1)<>last(/IIS by Zabbix agent/perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Total Application Pool Recycles"],#2) and {$IIS.APPPOOL.MONITORED:"{#APPPOOL}"}=1' + name: 'IIS: Application pool {#APPPOOL} has been recycled' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 193642cad7214206a00db4f710bfbef8 + name: 'AppPool {#APPPOOL} current queue size' + key: 'perf_counter_en["\HTTP Service Request Queues({#APPPOOL})\CurrentQueueSize"]' + delay: 30s + description: 'The number of requests in the queue.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: application-pool + value: '{#APPPOOL}' + - tag: component + value: application + trigger_prototypes: + - uuid: 8cebd49164154999903dab2c03fd4be9 + expression: 'min(/IIS by Zabbix agent/perf_counter_en["\HTTP Service Request Queues({#APPPOOL})\CurrentQueueSize"],{$IIS.QUEUE.MAX.TIME})>{$IIS.QUEUE.MAX.WARN}' + name: 'IIS: Request queue of {#APPPOOL} is too large' + event_name: 'IIS: Request queue of {#APPPOOL} is too large (over {$IIS.QUEUE.MAX.WARN})' + priority: WARNING + dependencies: + - name: 'IIS: Application pool {#APPPOOL} is not in Running state' + expression: 'last(/IIS by Zabbix agent/perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Current Application Pool State"])<>3 and {$IIS.APPPOOL.MONITORED:"{#APPPOOL}"}=1' + tags: + - tag: scope + value: performance + lld_macro_paths: + - lld_macro: '{#APPPOOL}' + path: $.Name + tags: + - tag: class + value: application + - tag: target + value: iis + macros: + - macro: '{$IIS.APPPOOL.MATCHES}' + value: .+ + description: 'This macro is used in application pools discovery. Can be overridden on the host or linked template level.' + - macro: '{$IIS.APPPOOL.MONITORED}' + value: '1' + description: 'Monitoring status for discovered application pools. Use context to avoid trigger firing for specific application pools. "1" - enabled, "0" - disabled.' + - macro: '{$IIS.APPPOOL.NOT_MATCHES}' + value: '' + description: 'This macro is used in application pools discovery. Can be overridden on the host or linked template level.' + - macro: '{$IIS.PORT}' + value: '80' + description: 'Listening port.' + - macro: '{$IIS.QUEUE.MAX.TIME}' + value: 5m + description: 'The time during which the queue length may exceed the threshold.' + - macro: '{$IIS.QUEUE.MAX.WARN}' + description: 'Maximum application pool''s request queue length for trigger expression.' + - macro: '{$IIS.SERVICE}' + value: http + description: 'The service (http/https/etc) for port check. See "net.tcp.service" documentation page for more information: https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/simple_checks' + dashboards: + - uuid: 4851a7b0882642e193e73f4ffc3286d5 + name: 'IIS Overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'IIS by Zabbix agent' + name: 'IIS: Requests rate' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'IIS by Zabbix agent' + name: 'IIS: Cache misses' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'IIS by Zabbix agent' + name: 'IIS: Cache hits percentage' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 63d1ad6b4cf643da870b14c53da6c52f + name: 'Application pool state' + mappings: + - value: '1' + newvalue: Uninitialized + - value: '2' + newvalue: Initialized + - value: '3' + newvalue: Running + - value: '4' + newvalue: Disabling + - value: '5' + newvalue: Disabled + - value: '6' + newvalue: 'Shutdown Pending' + - value: '7' + newvalue: 'Delete Pending' + - uuid: 5f3f78a3470c48b69442d942f21d11d0 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: d65f1af3c1e24a338983c52c5aa07d27 + name: 'Windows service state' + mappings: + - value: '0' + newvalue: Running + - value: '1' + newvalue: Paused + - value: '2' + newvalue: 'Start pending' + - value: '3' + newvalue: 'Pause pending' + - value: '4' + newvalue: 'Continue pending' + - value: '5' + newvalue: 'Stop pending' + - value: '6' + newvalue: Stopped + - value: '7' + newvalue: Unknown + - value: '255' + newvalue: 'No such service' + graphs: + - uuid: 3a0454724c9a444cbeb3ad0da2a3a560 + name: 'IIS: Cache hits percentage' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service Cache\URI Cache Hits %"]' + - sortorder: '1' + color: F63100 + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service Cache\File Cache Hits %"]' + - uuid: 4a0a6a0b83f34a88aa753206227304da + name: 'IIS: Cache misses' + graph_items: + - color: 199C0D + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service Cache\URI Cache Misses"]' + - sortorder: '1' + color: F63100 + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service Cache\File Cache Misses"]' + - uuid: 16cfe68447114012bd93fef6dac80be9 + name: 'IIS: Requests rate' + graph_items: + - color: 199C0D + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service(_Total)\Total Method Requests/Sec", 60]' + - sortorder: '1' + color: F63100 + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service(_Total)\Other Request Methods/Sec", 60]' + - sortorder: '2' + color: 00611C + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service(_Total)\Get Requests/Sec", 60]' + - sortorder: '3' + color: F7941D + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service(_Total)\Post Requests/Sec", 60]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service(_Total)\Put Requests/Sec", 60]' + - sortorder: '5' + color: 6C59DC + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service(_Total)\Delete Requests/Sec", 60]' + - sortorder: '6' + color: C7A72D + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service(_Total)\Head Requests/Sec", 60]' + - sortorder: '7' + color: BA2A5D + item: + host: 'IIS by Zabbix agent' + key: 'perf_counter_en["\Web Service(_Total)\Trace Requests/Sec", 60]' diff --git a/IIS_by_Zabbix_agent_active.yaml b/IIS_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..1daf2b2 --- /dev/null +++ b/IIS_by_Zabbix_agent_active.yaml @@ -0,0 +1,871 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 4677be3e07bf4f3285496f2f4230b928 + template: 'IIS by Zabbix agent active' + name: 'IIS by Zabbix agent active' + description: | + Get metrics from IIS using Zabbix agent running on Windows. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/401862-discussion-thread-for-official-zabbix-template-internet-information-services + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Applications + items: + - uuid: 8fa6b28b8226408db07a2317a99581a5 + name: '{$IIS.PORT} port ping' + type: SIMPLE + key: 'net.tcp.service[{$IIS.SERVICE},,{$IIS.PORT}]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2b73bb4c09404d748e019ef2257a9e20 + expression: 'last(/IIS by Zabbix agent active/net.tcp.service[{$IIS.SERVICE},,{$IIS.PORT}])=0' + name: 'IIS: Port {$IIS.PORT} is down' + priority: AVERAGE + manual_close: 'YES' + dependencies: + - name: 'IIS: The World Wide Web Publishing Service (W3SVC) is not running' + expression: 'last(/IIS by Zabbix agent active/service.info[W3SVC])<>0' + tags: + - tag: scope + value: availability + - uuid: e70f872ed9184757b8a62c732658faa5 + name: 'Anonymous users per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Anonymous Users/sec", 60]' + value_type: FLOAT + description: 'The number of requests from users over an anonymous connection per second. Average per minute.' + tags: + - tag: component + value: users + - uuid: 64816de795864c8fae879e670dfe9e93 + name: 'Bytes Received per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Bytes Received/sec", 60]' + value_type: FLOAT + units: Bps + description: 'The average rate per minute at which data bytes are received by the service at the Application Layer. Does not include protocol headers or control bytes.' + tags: + - tag: component + value: network + - uuid: 1b0b636e0bbd4948b3047071a4b964fc + name: 'Bytes Sent per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Bytes Sent/sec", 60]' + value_type: FLOAT + units: Bps + description: 'The average rate per minute at which data bytes are sent by the service.' + tags: + - tag: component + value: network + - uuid: 5abf01f6e7a7419d9a1de9803ccf1060 + name: 'Bytes Total per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Bytes Total/Sec", 60]' + value_type: FLOAT + units: Bps + description: 'The average rate per minute of total bytes/sec transferred by the Web service (sum of bytes sent/sec and bytes received/sec).' + tags: + - tag: component + value: network + - uuid: 37b23949ca94466eb552c6fd8239b650 + name: 'Method CGI requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\CGI Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of CGI requests that are simultaneously being processed by the Web service. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: d32eb1398fa7454eb91329aa39d1e90e + name: 'Connection attempts per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Connection Attempts/Sec", 60]' + value_type: FLOAT + description: 'The average rate per minute that connections using the Web service are being attempted. The count is the average for all Web sites combined.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: connections + - uuid: 182bceaa31194bdd8c906cf226039b0b + name: 'Method COPY requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Copy Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests made using the COPY method. Copy requests are used for copying files and directories. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 8b316e2896f041dca9b4adc601093b5c + name: 'Current connections' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Current Connections"]' + value_type: FLOAT + description: 'The number of active connections.' + tags: + - tag: component + value: connections + - uuid: 7da6cf8a65b94b6f8d89dc53c7de38eb + name: 'Method DELETE requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Delete Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the DELETE method made. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 5381bfc071524f32bb5290379d2e978d + name: 'Method GET requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Get Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests made using the GET method. GET requests are generally used for basic file retrievals or image maps, though they can be used with forms. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 414b17c9eb11460cb55d35aeb7b8c071 + name: 'Method HEAD requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Head Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the HEAD method made. HEAD requests generally indicate a client is querying the state of a document they already have to see if it needs to be refreshed. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: d5b38b5472214d629e832d2709c64b3c + name: 'Method ISAPI requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\ISAPI Extension Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of ISAPI Extension requests that are simultaneously being processed by the Web service. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 74fed9efa0ae4301aab2f73d76fd8357 + name: 'Locked errors per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Locked Errors/Sec", 60]' + value_type: FLOAT + description: 'The rate of errors due to requests that couldn''t be satisfied by the server because the requested document was locked. These are generally reported as an HTTP 423 error code to the client. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: errors + - uuid: cdf63d485cd1419385caabc050eb533c + name: 'Method LOCK requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Lock Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests made using the LOCK method. Lock requests are used to lock a file for one user so that only that user can modify the file. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: edbe50383897434cb33378b973628061 + name: 'Method MKCOL requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Mkcol Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the MKCOL method made. Mkcol requests are used to create directories on the server. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 51a74530b894484a9ba101eb1176a982 + name: 'Method MOVE requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Move Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the MOVE method made. Move requests are used for moving files and directories. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 6dfe3dbde2544c5080c3845d54c83219 + name: 'NonAnonymous users per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\NonAnonymous Users/sec", 60]' + value_type: FLOAT + description: 'The number of requests from users over a non-anonymous connection per second. Average per minute.' + tags: + - tag: component + value: users + - uuid: 13e65fdff0704e6f87133b8efe34704f + name: 'Not Found errors per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Not Found Errors/Sec", 60]' + value_type: FLOAT + description: 'The rate of errors due to requests that couldn''t be satisfied by the server because the requested document could not be found. These are generally reported to the client with HTTP error code 404. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: errors + - uuid: dcb0338dc59d4c95b9f712fed84a3aa2 + name: 'Method OPTIONS requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Options Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the OPTIONS method made. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: eb6a098fef824b2e9abe80b4331190f4 + name: 'Method Total Other requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Other Request Methods/Sec", 60]' + value_type: FLOAT + description: 'Total Other Request Methods is the number of HTTP requests that are not OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, MOVE, COPY, MKCOL, PROPFIND, PROPPATCH, SEARCH, LOCK or UNLOCK methods (since service startup). Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 222bb49332214781bc48a0eb610035c2 + name: 'Method POST requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Post Requests/Sec", 60]' + value_type: FLOAT + description: 'Rate of HTTP requests using POST method. Generally used for forms or gateway requests. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 011fff85fb0440b78ca7857454577c08 + name: 'Method PROPFIND requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Propfind Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the PROPFIND method made. Propfind requests retrieve property values on files and directories. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 3b8a1eea86034a268ac37031c08d3740 + name: 'Method PROPPATCH requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Proppatch Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the PROPPATCH method made. Proppatch requests set property values on files and directories. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: c4615d7155d14f98b76705df1a5778e4 + name: 'Method PUT requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Put Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the PUT method made. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: a1cfef3952c346ccb39e85038e49ae63 + name: 'Method MS-SEARCH requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Search Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the MS-SEARCH method made. Search requests are used to query the server to find resources that match a set of conditions provided by the client. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: d53040c921324b2195045dacb3738d6f + name: Uptime + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Service Uptime"]' + value_type: FLOAT + units: s + description: 'The service uptime expressed in seconds.' + tags: + - tag: component + value: application + triggers: + - uuid: f68768567f334d369d52797309f95c41 + expression: 'last(/IIS by Zabbix agent active/perf_counter_en["\Web Service(_Total)\Service Uptime"])<10m' + name: 'IIS: Service has been restarted' + event_name: 'IIS: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f181123b522946018d9ac90599693cfe + name: 'Total connection attempts' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Total Connection Attempts (all instances)"]' + value_type: FLOAT + description: 'The total number of connections to the Web or FTP service that have been attempted since service startup. The count is the total for all Web sites or FTP sites combined.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: connections + - uuid: ff70ce9edf1c45ba8263d33847992baf + name: 'Method Total requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Total Method Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of all HTTP requests received. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: fff9e968d5474adfbfd4ae9e19d836d9 + name: 'Method TRACE requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Trace Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the TRACE method made. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 0b6b770a6b014b8c857277e1d9cf6ffe + name: 'Method TRACE requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service(_Total)\Unlock Requests/Sec", 60]' + value_type: FLOAT + description: 'The rate of HTTP requests using the UNLOCK method made. Unlock requests are used to remove locks from files. Average per minute.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: requests + - uuid: 5ef9aec68d5b4fe79b17453ab8988b59 + name: 'Files cache hits percentage' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service Cache\File Cache Hits %"]' + value_type: FLOAT + description: 'The ratio of user-mode file cache hits to total cache requests (since service startup). Note: This value might be low if the Kernel URI cache hits percentage is high.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: cache + - uuid: a041713a95e746f5b4797a7aecaed9a5 + name: 'File cache misses' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service Cache\File Cache Misses"]' + value_type: FLOAT + description: 'The total number of unsuccessful lookups in the user-mode file cache since service startup.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: cache + - uuid: 5488881cba254b6b8f49ebacae2bc4c4 + name: 'URIs cache hits percentage' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service Cache\URI Cache Hits %"]' + value_type: FLOAT + description: 'The ratio of user-mode URI Cache Hits to total cache requests (since service startup)' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: cache + - uuid: ffd18aef119f4c7c845c6a3e76fb747d + name: 'URI cache misses' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service Cache\URI Cache Misses"]' + value_type: FLOAT + description: 'The total number of unsuccessful lookups in the user-mode URI cache since service startup.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: cache + - uuid: 31d4f21ce4c6412b912ca65fe9aee83c + name: 'World Wide Web Publishing Service (W3SVC) state' + type: ZABBIX_ACTIVE + key: 'service.info[W3SVC]' + description: 'The World Wide Web Publishing Service (W3SVC) provides web connectivity and administration of websites through the IIS snap-in. If the World Wide Web Publishing Service stops, the operating system cannot serve any form of web request. This service was dependent on "Windows Process Activation Service".' + valuemap: + name: 'Windows service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: ca139b8b27c44f7fb22938fd3419cff5 + expression: 'last(/IIS by Zabbix agent active/service.info[W3SVC])<>0' + name: 'IIS: The World Wide Web Publishing Service (W3SVC) is not running' + priority: HIGH + description: 'The World Wide Web Publishing Service (W3SVC) is not in the running state. IIS cannot start.' + dependencies: + - name: 'IIS: Windows process Activation Service (WAS) is not running' + expression: 'last(/IIS by Zabbix agent active/service.info[WAS])<>0' + tags: + - tag: scope + value: availability + - uuid: 7f016ce3ab3941b78741dfb72c6d7693 + name: 'Windows Process Activation Service (WAS) state' + type: ZABBIX_ACTIVE + key: 'service.info[WAS]' + description: 'Windows Process Activation Service (WAS) is a tool for managing worker processes that contain applications that host Windows Communication Foundation (WCF) services. Worker processes handle requests that are sent to a Web Server for specific application pools. Each application pool sets boundaries for the applications it contains.' + valuemap: + name: 'Windows service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: d7a16291f196424ca9c39af4271ab78f + expression: 'last(/IIS by Zabbix agent active/service.info[WAS])<>0' + name: 'IIS: Windows process Activation Service (WAS) is not running' + priority: HIGH + description: 'Windows Process Activation Service (WAS) is not in the running state. IIS cannot start.' + tags: + - tag: scope + value: availability + - uuid: bfe53ca77e2046d6bb9ece5250e227f1 + name: 'Active agent availability' + type: INTERNAL + key: 'zabbix[host,active_agent,available]' + description: | + Availability of active checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - unknown + 1 - available + 2 - not available + valuemap: + name: zabbix.host.active_agent.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b9d8edc865f54e8eb56e84392817ff5b + expression: 'min(/IIS by Zabbix agent active/zabbix[host,active_agent,available],{$AGENT.TIMEOUT})=2' + name: 'IIS: Active checks are not available' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Active checks are considered unavailable. Agent is not sending heartbeat for prolonged time.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 1dfb7339b81b4237a4e90b29328de297 + name: 'Application pools discovery' + type: ZABBIX_ACTIVE + key: 'wmi.getall[root\webAdministration, select Name from ApplicationPool]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#APPPOOL}' + value: '{$IIS.APPPOOL.MATCHES}' + formulaid: A + - macro: '{#APPPOOL}' + value: '{$IIS.APPPOOL.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 82c0636b84d84863a2051d6b708d841b + name: 'AppPool {#APPPOOL} state' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Current Application Pool State"]' + description: 'The state of the application pool.' + valuemap: + name: 'Application pool state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: application-pool + value: '{#APPPOOL}' + - tag: component + value: application + trigger_prototypes: + - uuid: a7184495eb684293ada387292c812b0f + expression: 'last(/IIS by Zabbix agent active/perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Current Application Pool State"])<>3 and {$IIS.APPPOOL.MONITORED:"{#APPPOOL}"}=1' + name: 'IIS: Application pool {#APPPOOL} is not in Running state' + priority: HIGH + dependencies: + - name: 'IIS: The World Wide Web Publishing Service (W3SVC) is not running' + expression: 'last(/IIS by Zabbix agent active/service.info[W3SVC])<>0' + tags: + - tag: scope + value: availability + - uuid: f0a6fe8a4cc44582a3048f1a00442736 + name: '{#APPPOOL} Uptime' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Current Application Pool Uptime"]' + value_type: FLOAT + units: s + description: 'The web application uptime period since the last restart.' + tags: + - tag: application-pool + value: '{#APPPOOL}' + - tag: component + value: application + trigger_prototypes: + - uuid: d2a9854722a44253a39c8eaab67f7677 + expression: 'last(/IIS by Zabbix agent active/perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Current Application Pool Uptime"])<10m' + name: 'IIS: {#APPPOOL} has been restarted' + event_name: 'IIS: {#APPPOOL} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e2cfc77aebab4b14bf6a690dbdd0c2b1 + name: 'AppPool {#APPPOOL} recycles' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Total Application Pool Recycles"]' + description: 'The number of times the application pool has been recycled since Windows Process Activation Service (WAS) started.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: application-pool + value: '{#APPPOOL}' + - tag: component + value: application + trigger_prototypes: + - uuid: 27a93967a29849f3aef833db136e1b8e + expression: 'last(/IIS by Zabbix agent active/perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Total Application Pool Recycles"],#1)<>last(/IIS by Zabbix agent active/perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Total Application Pool Recycles"],#2) and {$IIS.APPPOOL.MONITORED:"{#APPPOOL}"}=1' + name: 'IIS: Application pool {#APPPOOL} has been recycled' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: d525c1c47ee2402d9635ae276a5e58ec + name: 'AppPool {#APPPOOL} current queue size' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\HTTP Service Request Queues({#APPPOOL})\CurrentQueueSize"]' + delay: 30s + description: 'The number of requests in the queue.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: application-pool + value: '{#APPPOOL}' + - tag: component + value: application + trigger_prototypes: + - uuid: 68499a4737d24ee6846aaea2a37b7b4f + expression: 'min(/IIS by Zabbix agent active/perf_counter_en["\HTTP Service Request Queues({#APPPOOL})\CurrentQueueSize"],{$IIS.QUEUE.MAX.TIME})>{$IIS.QUEUE.MAX.WARN}' + name: 'IIS: Request queue of {#APPPOOL} is too large' + event_name: 'IIS: Request queue of {#APPPOOL} is too large (over {$IIS.QUEUE.MAX.WARN})' + priority: WARNING + dependencies: + - name: 'IIS: Application pool {#APPPOOL} is not in Running state' + expression: 'last(/IIS by Zabbix agent active/perf_counter_en["\APP_POOL_WAS({#APPPOOL})\Current Application Pool State"])<>3 and {$IIS.APPPOOL.MONITORED:"{#APPPOOL}"}=1' + tags: + - tag: scope + value: performance + lld_macro_paths: + - lld_macro: '{#APPPOOL}' + path: $.Name + tags: + - tag: class + value: application + - tag: target + value: iis + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 5m + description: 'Timeout after which agent is considered unavailable.' + - macro: '{$IIS.APPPOOL.MATCHES}' + value: .+ + description: 'This macro is used in application pools discovery. Can be overridden on the host or linked template level.' + - macro: '{$IIS.APPPOOL.MONITORED}' + value: '1' + description: 'Monitoring status for discovered application pools. Use context to avoid trigger firing for specific application pools. "1" - enabled, "0" - disabled.' + - macro: '{$IIS.APPPOOL.NOT_MATCHES}' + value: '' + description: 'This macro is used in application pools discovery. Can be overridden on the host or linked template level.' + - macro: '{$IIS.PORT}' + value: '80' + description: 'Listening port.' + - macro: '{$IIS.QUEUE.MAX.TIME}' + value: 5m + description: 'The time during which the queue length may exceed the threshold.' + - macro: '{$IIS.QUEUE.MAX.WARN}' + description: 'Maximum application pool''s request queue length for trigger expression.' + - macro: '{$IIS.SERVICE}' + value: http + description: 'The service (http/https/etc) for port check. See "net.tcp.service" documentation page for more information: https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/simple_checks' + dashboards: + - uuid: 5fab732455514f558e99fc392a1a7e7e + name: 'IIS Overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'IIS by Zabbix agent active' + name: 'IIS: Requests rate' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'IIS by Zabbix agent active' + name: 'IIS: Cache misses' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'IIS by Zabbix agent active' + name: 'IIS: Cache hits percentage' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 636c6915a8154b6ea1ea5b00f015c149 + name: 'Application pool state' + mappings: + - value: '1' + newvalue: Uninitialized + - value: '2' + newvalue: Initialized + - value: '3' + newvalue: Running + - value: '4' + newvalue: Disabling + - value: '5' + newvalue: Disabled + - value: '6' + newvalue: 'Shutdown Pending' + - value: '7' + newvalue: 'Delete Pending' + - uuid: 41be60c561114627b861677603b92acb + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 6dc834d8e50842d3a7337b0f88540b61 + name: 'Windows service state' + mappings: + - value: '0' + newvalue: Running + - value: '1' + newvalue: Paused + - value: '2' + newvalue: 'Start pending' + - value: '3' + newvalue: 'Pause pending' + - value: '4' + newvalue: 'Continue pending' + - value: '5' + newvalue: 'Stop pending' + - value: '6' + newvalue: Stopped + - value: '7' + newvalue: Unknown + - value: '255' + newvalue: 'No such service' + - uuid: c63064c6717e4604805491ce54166356 + name: zabbix.host.active_agent.available + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: available + - value: '2' + newvalue: 'not available' + graphs: + - uuid: e3b3f8f973204070a37b9eb861e2a079 + name: 'IIS: Cache hits percentage' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service Cache\URI Cache Hits %"]' + - sortorder: '1' + color: F63100 + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service Cache\File Cache Hits %"]' + - uuid: 2ac5f3ee169b4e79ad6f08e4dffbffeb + name: 'IIS: Cache misses' + graph_items: + - color: 199C0D + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service Cache\URI Cache Misses"]' + - sortorder: '1' + color: F63100 + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service Cache\File Cache Misses"]' + - uuid: 4c488d9247ca49ac8b33d655ccbca2b3 + name: 'IIS: Requests rate' + graph_items: + - color: 199C0D + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service(_Total)\Total Method Requests/Sec", 60]' + - sortorder: '1' + color: F63100 + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service(_Total)\Other Request Methods/Sec", 60]' + - sortorder: '2' + color: 00611C + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service(_Total)\Get Requests/Sec", 60]' + - sortorder: '3' + color: F7941D + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service(_Total)\Post Requests/Sec", 60]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service(_Total)\Put Requests/Sec", 60]' + - sortorder: '5' + color: 6C59DC + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service(_Total)\Delete Requests/Sec", 60]' + - sortorder: '6' + color: C7A72D + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service(_Total)\Head Requests/Sec", 60]' + - sortorder: '7' + color: BA2A5D + item: + host: 'IIS by Zabbix agent active' + key: 'perf_counter_en["\Web Service(_Total)\Trace Requests/Sec", 60]' diff --git a/Ignite_by_JMX.yaml b/Ignite_by_JMX.yaml new file mode 100644 index 0000000..6fbfad6 --- /dev/null +++ b/Ignite_by_JMX.yaml @@ -0,0 +1,1937 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: ab05dbb15ff047f192782f617f0627ac + template: 'Ignite by JMX' + name: 'Ignite by JMX' + description: | + The template to monitor Apache Ignite by Zabbix that work without any external scripts. + It works with both standalone and cluster instances. + The metrics are discoverable and collected by JMX. + Current JMX tree hierarchy contains classloader by default. Add the following jvm option `-DIGNITE_MBEAN_APPEND_CLASS_LOADER_ID=false`to will exclude one level with Classloader name. + You can set {$IGNITE.USER} and {$IGNITE.PASSWORD} macros in the template for using on the host level. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + discovery_rules: + - uuid: 2aa2cf6500b347e083c492aa2eade85a + name: 'Data region metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=DataRegionMetrics,*"]' + delay: 10m + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXNAME}' + value: '{$IGNITE.LLD.FILTER.DATA.REGION.MATCHES}' + formulaid: A + - macro: '{#JMXNAME}' + value: '{$IGNITE.LLD.FILTER.DATA.REGION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 56780f0bc58e499bb452e5879961ac9d + name: 'Data region {#JMXNAME}: Allocation, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",AllocationRate]' + value_type: FLOAT + units: '!pps' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Allocation rate (pages per second) averaged across rateTimeInternal.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 9b3528eb623c4fdda10228671268bcdb + name: 'Data region {#JMXNAME}: Checkpoint buffer size' + type: JMX + key: 'jmx["{#JMXOBJ}",CheckpointBufferSize]' + value_type: FLOAT + units: B + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Total size in bytes for checkpoint buffer.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 21f8fc17522d40cc8723053e8ed8716f + name: 'Data region {#JMXNAME}: Dirty pages' + type: JMX + key: 'jmx["{#JMXOBJ}",DirtyPages]' + value_type: FLOAT + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Number of pages in memory not yet synchronized with persistent storage.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 8bcc78ee4e984f9c8c07b60e5dd35c42 + name: 'Data region {#JMXNAME}: Eviction, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",EvictionRate]' + value_type: FLOAT + units: '!pps' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Eviction rate (pages per second).' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + trigger_prototypes: + - uuid: e210c54ba16f4d879d8a4fb88c365c53 + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",EvictionRate],5m)>0' + name: 'Ignite: Data region {#JMXNAME}: Node started to evict pages' + priority: INFO + description: 'You store more data than region can accommodate. Data started to move to disk it can make requests work slower. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - uuid: 7fa689749cd64474af294976e4bc7762 + name: 'Data region {#JMXNAME}: Size, max' + type: JMX + key: 'jmx["{#JMXOBJ}",MaxSize]' + value_type: FLOAT + units: B + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Maximum memory region size defined by its data region.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: bb0dd42c5a3c400f95a7084792e7522e + name: 'Data region {#JMXNAME}: Offheap size' + type: JMX + key: 'jmx["{#JMXOBJ}",OffHeapSize]' + value_type: FLOAT + units: B + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Offheap size in bytes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: a793c5e41891467fb3ee53722f9fae13 + name: 'Data region {#JMXNAME}: Offheap used size' + type: JMX + key: 'jmx["{#JMXOBJ}",OffheapUsedSize]' + value_type: FLOAT + units: B + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Total used offheap size in bytes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: b4fb229defdb434b8307d91e2f17f5db + name: 'Data region {#JMXNAME}: Pages fill factor' + type: JMX + key: 'jmx["{#JMXOBJ}",PagesFillFactor]' + value_type: FLOAT + units: '%' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The percentage of the used space.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 4ca77d42a8f44e278b44417d33094535 + name: 'Data region {#JMXNAME}: Pages replace, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",PagesReplaceRate]' + value_type: FLOAT + units: '!pps' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Rate at which pages in memory are replaced with pages from persistent storage (pages per second).' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + trigger_prototypes: + - uuid: 70ef41de47b2463a9c580e790754a49c + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",PagesReplaceRate],5m)>0' + name: 'Ignite: Data region {#JMXNAME}: Pages replace rate more than 0' + priority: WARNING + description: 'There is more data than DataRegionMaxSize. Cluster started to replace pages in memory. Page replacement can slow down operations.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: b62d56147b3d43aebd1f3c9eb13a8e05 + name: 'Data region {#JMXNAME}: Allocated, bytes' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalAllocatedSize]' + value_type: FLOAT + units: B + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Total size of memory allocated in bytes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 14b02d5526c44f2599e1893b815b1d2b + name: 'Data region {#JMXNAME}: Used checkpoint buffer size' + type: JMX + key: 'jmx["{#JMXOBJ}",UsedCheckpointBufferSize]' + value_type: FLOAT + units: B + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Used checkpoint buffer size in bytes.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: data-region + value: '{#JMXNAME}' + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + trigger_prototypes: + - uuid: 480b7cc1a967436b8620f9552f8ac4f6 + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",UsedCheckpointBufferSize],5m)/last(/Ignite by JMX/jmx["{#JMXOBJ}",CheckpointBufferSize])*100>{$IGNITE.CHECKPOINT.PUSED.MAX.HIGH}' + name: 'Ignite: Data region {#JMXNAME}: Checkpoint buffer utilization is too high' + event_name: 'Ignite: Data region {#JMXNAME}: Checkpoint buffer utilization is too high (over {$IGNITE.CHECKPOINT.PUSED.MAX.HIGH} in 5m)' + priority: HIGH + description: 'Checkpoint buffer utilization is high. Threads will be throttled to avoid buffer overflow. It can be caused by high disk utilization.' + tags: + - tag: scope + value: capacity + - uuid: 67eddf17affd49b7844cd0846bc56f7d + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",UsedCheckpointBufferSize],5m)/last(/Ignite by JMX/jmx["{#JMXOBJ}",CheckpointBufferSize])*100>{$IGNITE.CHECKPOINT.PUSED.MAX.WARN}' + name: 'Ignite: Data region {#JMXNAME}: Checkpoint buffer utilization is too high' + event_name: 'Ignite: Data region {#JMXNAME}: Checkpoint buffer utilization is too high (over {$IGNITE.CHECKPOINT.PUSED.MAX.WARN} in 5m)' + priority: WARNING + description: 'Checkpoint buffer utilization is high. Threads will be throttled to avoid buffer overflow. It can be caused by high disk utilization.' + dependencies: + - name: 'Ignite: Data region {#JMXNAME}: Checkpoint buffer utilization is too high' + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",UsedCheckpointBufferSize],5m)/last(/Ignite by JMX/jmx["{#JMXOBJ}",CheckpointBufferSize])*100>{$IGNITE.CHECKPOINT.PUSED.MAX.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 736fbc965aa448309d022de34354decf + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",OffheapUsedSize],5m)/last(/Ignite by JMX/jmx["{#JMXOBJ}",OffHeapSize])*100>{$IGNITE.DATA.REGION.PUSED.MAX.HIGH}' + name: 'Ignite: Data region {#JMXNAME}: Data region utilization is too high' + event_name: 'Ignite: Data region {#JMXNAME}: Data region utilization is too high (over {$IGNITE.DATA.REGION.PUSED.MAX.HIGH} in 5m)' + priority: HIGH + description: 'Data region utilization is high. Increase data region size or delete any data.' + tags: + - tag: scope + value: capacity + - uuid: 6ded19e7616b45f08e37e716d8256c5e + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",OffheapUsedSize],5m)/last(/Ignite by JMX/jmx["{#JMXOBJ}",OffHeapSize])*100>{$IGNITE.DATA.REGION.PUSED.MAX.WARN}' + name: 'Ignite: Data region {#JMXNAME}: Data region utilization is too high' + event_name: 'Ignite: Data region {#JMXNAME}: Data region utilization is too high (over {$IGNITE.DATA.REGION.PUSED.MAX.WARN} in 5m)' + priority: WARNING + description: 'Data region utilization is high. Increase data region size or delete any data.' + dependencies: + - name: 'Ignite: Data region {#JMXNAME}: Data region utilization is too high' + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",OffheapUsedSize],5m)/last(/Ignite by JMX/jmx["{#JMXOBJ}",OffHeapSize])*100>{$IGNITE.DATA.REGION.PUSED.MAX.HIGH}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 0ac5a59cc5a64e2ea6bc6e266919ecca + name: 'Data region {#JMXNAME}: Checkpoint buffer utilization' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CheckpointBufferSize]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",UsedCheckpointBufferSize]' + - uuid: 330be15755ca4b5dbee88e21b2e58df2 + name: 'Data region {#JMXNAME}: DataRegion utilization' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",OffHeapSize]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",OffheapUsedSize]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 92f16f4d02e149c5ae5b09f1007cead8 + name: 'Local node metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=Kernal,name=ClusterLocalNodeMetricsMXBeanImpl,*"]' + delay: 30m + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + item_prototypes: + - uuid: 7f8721ab4e6c4b23bd1e948f8c1c4480 + name: '[{#JMXIGNITEINSTANCENAME}]: Jobs active, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentActiveJobs]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Number of currently active jobs concurrently executing on the node.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 13b1867082c340d0a6f317c94376a055 + name: '[{#JMXIGNITEINSTANCENAME}]: Jobs cancelled, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentCancelledJobs]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Number of cancelled jobs that are still running.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 832c3683406c460c826522f8b2e3aafa + name: '[{#JMXIGNITEINSTANCENAME}]: PME duration, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentPmeDuration]' + units: ms + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Current PME duration in milliseconds.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + trigger_prototypes: + - uuid: 81587d91606348a6b5385d4b59331adf + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",CurrentPmeDuration],5m) > {$IGNITE.PME.DURATION.MAX.HIGH}' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: PME duration is too long' + event_name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: PME duration is too long (over {$IGNITE.PME.DURATION.MAX.HIGH} for 5 min)' + priority: HIGH + description: 'PME duration is over {$IGNITE.PME.DURATION.MAX.HIGH}ms. Looks like PME is hung.' + tags: + - tag: scope + value: performance + - uuid: 0de7ca62c7044e48a8931cf0dfe8ce34 + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",CurrentPmeDuration],5m) > {$IGNITE.PME.DURATION.MAX.WARN}' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: PME duration is too long' + event_name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: PME duration is too long (over {$IGNITE.PME.DURATION.MAX.WARN} for 5 min)' + priority: WARNING + description: 'PME duration is over {$IGNITE.PME.DURATION.MAX.WARN}ms.' + dependencies: + - name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: PME duration is too long' + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",CurrentPmeDuration],5m) > {$IGNITE.PME.DURATION.MAX.HIGH}' + tags: + - tag: scope + value: performance + - uuid: 6b68ba90e40b4fa0a798dfde64ba8f01 + name: '[{#JMXIGNITEINSTANCENAME}]: Jobs rejected, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentRejectedJobs]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Number of jobs rejected after more recent collision resolution operation.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: c459658bf32f4ca5aac6cfe1f8a8cc5b + name: '[{#JMXIGNITEINSTANCENAME}]: Threads count, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentThreadCount]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Current number of live threads.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + trigger_prototypes: + - uuid: 8c4ddb0485464c409077f86241956a56 + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",CurrentThreadCount],15m) > {$IGNITE.THREADS.COUNT.MAX.WARN}' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Number of running threads is too high' + event_name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Number of running threads is too high (over {$IGNITE.THREADS.COUNT.MAX.WARN} for 15 min)' + priority: WARNING + description: 'Number of running threads is over {$IGNITE.THREADS.COUNT.MAX.WARN}.' + dependencies: + - name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: PME duration is too long' + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",CurrentPmeDuration],5m) > {$IGNITE.PME.DURATION.MAX.HIGH}' + tags: + - tag: scope + value: performance + - uuid: e29b01d139bd4d7e8248ccddb2a19baa + name: '[{#JMXIGNITEINSTANCENAME}]: Jobs waiting, current' + type: JMX + key: 'jmx["{#JMXOBJ}",CurrentWaitingJobs]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Number of queued jobs currently waiting to be executed.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + trigger_prototypes: + - uuid: a723fdecd1b34609b92bb351b1b44a46 + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",CurrentWaitingJobs],15m) > {$IGNITE.JOBS.QUEUE.MAX.WARN}' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Number of queued jobs is too high' + event_name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Number of queued jobs is too high (over {$IGNITE.JOBS.QUEUE.MAX.WARN} for 15 min)' + priority: WARNING + description: 'Number of queued jobs is over {$IGNITE.JOBS.QUEUE.MAX.WARN}.' + tags: + - tag: scope + value: performance + - uuid: 5f61ae253e4f459ebc403ca69d85a617 + name: '[{#JMXIGNITEINSTANCENAME}]: Heap memory used' + type: JMX + key: 'jmx["{#JMXOBJ}",HeapMemoryUsed]' + units: B + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Current heap size that is used for object allocation.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 923c561a1a504ce399bf6b1892e29a3e + name: '[{#JMXIGNITEINSTANCENAME}]: Jobs cancelled, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalCancelledJobs]' + value_type: FLOAT + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Total number of jobs cancelled by the node per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: d6044f18b5e741818ca299ce8b19ccdb + name: '[{#JMXIGNITEINSTANCENAME}]: Jobs executed, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalExecutedJobs]' + value_type: FLOAT + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Total number of jobs handled by the node per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 15135ffe1ec74e8c920ee4c70b986904 + name: '[{#JMXIGNITEINSTANCENAME}]: Jobs rejects, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalRejectedJobs]' + value_type: FLOAT + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Total number of jobs this node rejects during collision resolution operations since node startup per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + graph_prototypes: + - uuid: 40e5feb97990445da11d8d8f49643882 + name: '[{#JMXIGNITEINSTANCENAME}]: Jobs current state' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CurrentActiveJobs]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CurrentWaitingJobs]' + - sortorder: '2' + color: 00611C + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CurrentRejectedJobs]' + - sortorder: '3' + color: F7941D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CurrentCancelledJobs]' + - uuid: cd3eedf54f44492d83138e3f8adf2564 + name: '[{#JMXIGNITEINSTANCENAME}]: Jobs rate' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",TotalCancelledJobs]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",TotalRejectedJobs]' + - sortorder: '2' + color: 00611C + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",TotalExecutedJobs]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: 1b3b0461964a418a962539ec4c17aca6 + name: 'Cluster metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=Kernal,name=ClusterMetricsMXBeanImpl,*"]' + delay: 30m + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + item_prototypes: + - uuid: 238c39ab7d5640abb3a81f0a51acc065 + name: '[{#JMXIGNITEINSTANCENAME}]: Nodes, Active baseline' + type: JMX + key: 'jmx["{#JMXOBJ}",ActiveBaselineNodes]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of nodes that are currently active in the baseline topology.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 4edffa6b8f294d959797a5c6ca4ccc5a + name: '[{#JMXIGNITEINSTANCENAME}]: Nodes, Baseline' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalBaselineNodes]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Total baseline nodes that are registered in the baseline topology.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: a4116287c8a34359a46eff1217f7418d + name: '[{#JMXIGNITEINSTANCENAME}]: Nodes, Client' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalClientNodes]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of client nodes in the cluster.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 517a320bd6964ec7906bf6b0408d834b + name: '[{#JMXIGNITEINSTANCENAME}]: Nodes, total' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalNodes]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Total number of nodes.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 9cfa72ba360840d9b87de9c59b780529 + name: '[{#JMXIGNITEINSTANCENAME}]: Nodes, Server' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalServerNodes]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of server nodes in the cluster.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + trigger_prototypes: + - uuid: e2c38e56189d4ed79bac6bd4ca8e477c + expression: 'change(/Ignite by JMX/jmx["{#JMXOBJ}",TotalServerNodes])>0' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Server node added to the topology' + priority: INFO + description: 'One or more server node added to the topology. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: notice + - uuid: 81efb2805dbc49719a316d1992aaac3a + expression: 'change(/Ignite by JMX/jmx["{#JMXOBJ}",TotalServerNodes])<0' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Server node left the topology' + priority: WARNING + description: 'One or more server node left the topology. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: notice + trigger_prototypes: + - uuid: 17f9fd03d3144812bf776c0f8ca836e4 + expression: 'last(/Ignite by JMX/jmx["{#JMXOBJ}",TotalServerNodes])>last(/Ignite by JMX/jmx["{#JMXOBJ}",TotalBaselineNodes])' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: There are nodes is not in topology' + priority: INFO + description: 'One or more server node left the topology. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: notice + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: c1513c51c41046c288b9add14feaabdb + name: 'Ignite kernal metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=Kernal,name=IgniteKernal,*"]' + delay: 30m + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + item_prototypes: + - uuid: b9e23036503a4227bfbb21969583120e + name: '[{#JMXIGNITEINSTANCENAME}]: Version' + type: JMX + key: 'jmx["{#JMXOBJ}",FullVersion]' + value_type: CHAR + trends: '0' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Version of Ignite instance.' + preprocessing: + - type: REGEX + parameters: + - '(.*)-\d+' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + trigger_prototypes: + - uuid: 08a1f4bd227e4f96b501a4681bf9fc8f + expression: 'last(/Ignite by JMX/jmx["{#JMXOBJ}",FullVersion],#1)<>last(/Ignite by JMX/jmx["{#JMXOBJ}",FullVersion],#2) and length(last(/Ignite by JMX/jmx["{#JMXOBJ}",FullVersion]))>0' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Version has changed' + event_name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: '[{#JMXIGNITEINSTANCENAME}] version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: cfa6cb5b02634c9d803b7c3a0774a7ce + name: '[{#JMXIGNITEINSTANCENAME}]: Local node ID' + type: JMX + key: 'jmx["{#JMXOBJ}",LocalNodeId]' + value_type: CHAR + trends: '0' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Unique identifier for this node within grid.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: d48d3694467e4153af369475672e4811 + name: '[{#JMXIGNITEINSTANCENAME}]: Uptime' + type: JMX + key: 'jmx["{#JMXOBJ}",UpTime]' + units: uptime + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Uptime of Ignite instance.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + trigger_prototypes: + - uuid: d90f8b10d32240d882317bf9fb628eae + expression: 'nodata(/Ignite by JMX/jmx["{#JMXOBJ}",UpTime],10m)=1' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Failed to fetch info data' + event_name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Failed to fetch info data (or no data for 10m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f3415dd32a3b450f80b29b83bd54fdef + expression: 'last(/Ignite by JMX/jmx["{#JMXOBJ}",UpTime])<10m' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Instance has been restarted' + event_name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Instance has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: afd0c3182f8d4a299a180848eb096b95 + name: 'TCP Communication SPI metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=SPIs,name=TcpCommunicationSpi,*"]' + delay: 30m + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + item_prototypes: + - uuid: c6d996a3b2754963a916f44e8e99e828 + name: '[{#JMXIGNITEINSTANCENAME}]: Communication outbound messages queue' + type: JMX + key: 'jmx["{#JMXOBJ}",OutboundMessagesQueueSize]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Outbound messages queue size.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 8a25c98dd3374e78ba26cebea1eaaebc + name: '[{#JMXIGNITEINSTANCENAME}]: Communication messages received, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",ReceivedMessagesCount]' + value_type: FLOAT + units: '!msg/s' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of messages received per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 6eacaf2c8e9e4f53991d547f81731780 + name: '[{#JMXIGNITEINSTANCENAME}]: Communication messages sent, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",SentMessagesCount]' + value_type: FLOAT + units: '!msg/s' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of messages sent per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + graph_prototypes: + - uuid: 9a116cfc05bc46d1bab248048f125a78 + name: '[{#JMXIGNITEINSTANCENAME}]: Communication messages rate' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",SentMessagesCount]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",ReceivedMessagesCount]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: bab4df33f0bb4b5d892438865b6a97f2 + name: 'TCP discovery SPI' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=SPIs,name=TcpDiscoverySpi,*"]' + delay: 30m + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + item_prototypes: + - uuid: d7a4b267f29b4baab3af479e7b49ae66 + name: '[{#JMXIGNITEINSTANCENAME}]: Coordinator' + type: JMX + key: 'jmx["{#JMXOBJ}",Coordinator]' + value_type: CHAR + trends: '0' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Current coordinator UUID.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + trigger_prototypes: + - uuid: 82e24abcc7874382a2af0018a4a001e1 + expression: 'last(/Ignite by JMX/jmx["{#JMXOBJ}",Coordinator],#1)<>last(/Ignite by JMX/jmx["{#JMXOBJ}",Coordinator],#2) and length(last(/Ignite by JMX/jmx["{#JMXOBJ}",Coordinator]))>0' + name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Coordinator has changed' + event_name: 'Ignite: [{#JMXIGNITEINSTANCENAME}]: Version has changed (new version: {ITEM.VALUE})' + priority: WARNING + description: '[{#JMXIGNITEINSTANCENAME}] version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7b7a7edb2602436c8b53d6f9f4ea2236 + name: '[{#JMXIGNITEINSTANCENAME}]: Discovery message worker queue' + type: JMX + key: 'jmx["{#JMXOBJ}",MessageWorkerQueueSize]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Message worker queue current size.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: d933d5036b1f41358130c512af1161c6 + name: '[{#JMXIGNITEINSTANCENAME}]: Nodes failed' + type: JMX + key: 'jmx["{#JMXOBJ}",NodesFailed]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Nodes failed count.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 4464386c72704016a790371e8117896c + name: '[{#JMXIGNITEINSTANCENAME}]: Nodes joined' + type: JMX + key: 'jmx["{#JMXOBJ}",NodesJoined]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Nodes join count.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: fda81af6a86948b394b53f1ec505993a + name: '[{#JMXIGNITEINSTANCENAME}]: Nodes left' + type: JMX + key: 'jmx["{#JMXOBJ}",NodesLeft]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Nodes left count.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 57aeab81263f45fba8189347d5446045 + name: '[{#JMXIGNITEINSTANCENAME}]: Discovery reconnect, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",ReconnectCount]' + value_type: FLOAT + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Number of times node tries to (re)establish connection to another node per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 615e7eb22a2d46ab863628d40bff4d7d + name: '[{#JMXIGNITEINSTANCENAME}]: TotalProcessedMessages' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalProcessedMessages]' + value_type: FLOAT + units: '!msg/s' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of messages received per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: b896207c7fda48ea9265cebfee12f6df + name: '[{#JMXIGNITEINSTANCENAME}]: Discovery messages received, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalReceivedMessages]' + value_type: FLOAT + units: '!msg/s' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of messages processed per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + graph_prototypes: + - uuid: 348631d78d0644209001b054f18b2dc9 + name: '[{#JMXIGNITEINSTANCENAME}]: Discovery messages rate' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",TotalProcessedMessages]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",TotalReceivedMessages]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: 709e596e106b40869be746dc84214c06 + name: 'Transaction metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=TransactionMetrics,name=TransactionMetricsMxBeanImpl,*"]' + delay: 30m + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + item_prototypes: + - uuid: 9bdf9d13664b405f9737590323bc4a1c + name: '[{#JMXIGNITEINSTANCENAME}]: Locked keys' + type: JMX + key: 'jmx["{#JMXOBJ}",LockedKeysNumber]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of keys locked on the node.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: ac461a17802440a8906ea7471659935a + name: '[{#JMXIGNITEINSTANCENAME}]: Transactions owner, current' + type: JMX + key: 'jmx["{#JMXOBJ}",OwnerTransactionsNumber]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of active transactions for which this node is the initiator.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 3754810fbb1f47fe858880ada9f40921 + name: '[{#JMXIGNITEINSTANCENAME}]: Transactions committed, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TransactionsCommittedNumber]' + value_type: FLOAT + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of transactions which were committed per second.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: ff5a1a7f579c430c8f1860d241bd8b2f + name: '[{#JMXIGNITEINSTANCENAME}]: Transactions holding lock, current' + type: JMX + key: 'jmx["{#JMXOBJ}",TransactionsHoldingLockNumber]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of active transactions holding at least one key lock.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - uuid: 3de3a27adea84e9cbb2cae812a3bc9c6 + name: '[{#JMXIGNITEINSTANCENAME}]: Transactions rolledback, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TransactionsRolledBackNumber]' + value_type: FLOAT + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of transactions which were rollback per second.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + graph_prototypes: + - uuid: a10ff3fbfd92437ca24cddd82afe3572 + name: '[{#JMXIGNITEINSTANCENAME}]: Transactions' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",OwnerTransactionsNumber]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",TransactionsHoldingLockNumber]' + - uuid: 0f84dd85e01d475fa1257085814800da + name: '[{#JMXIGNITEINSTANCENAME}]: Transactions rate' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",TransactionsRolledBackNumber]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",TransactionsCommittedNumber]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - uuid: aefce82342554933ae1214dcd7ca708b + name: 'Cache groups' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=\"Cache groups\",*"]' + delay: 10m + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXNAME}' + value: '{$IGNITE.LLD.FILTER.CACHE.MATCHES}' + formulaid: A + - macro: '{#JMXNAME}' + value: '{$IGNITE.LLD.FILTER.CACHE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 0014580397654a279b3c8906e457ee74 + name: 'Cache group [{#JMXNAME}]: Backups' + type: JMX + key: 'jmx["{#JMXOBJ}",Backups]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Count of backups configured for cache group.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-name + value: '{#JMXNAME}' + - uuid: 8b5acfc3a3c64714b57381fc0ae6b1a6 + name: 'Cache group [{#JMXNAME}]: Caches' + type: JMX + key: 'jmx["{#JMXOBJ}",Caches]' + value_type: CHAR + trends: '0' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'List of caches.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-name + value: '{#JMXNAME}' + trigger_prototypes: + - uuid: b500b51a688d4b55942ce7311e82c54f + expression: 'last(/Ignite by JMX/jmx["{#JMXOBJ}",Caches],#1)<>last(/Ignite by JMX/jmx["{#JMXOBJ}",Caches],#2) and length(last(/Ignite by JMX/jmx["{#JMXOBJ}",Caches]))>0' + name: 'Ignite: Cache group [{#JMXNAME}]: List of caches has changed' + event_name: 'Ignite: Cache group [{#JMXNAME}]: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'List of caches has changed. Significant changes have occurred in the cluster. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 253059e09010451f94ad0e6b10be7cc5 + name: 'Cache group [{#JMXNAME}]: Local node partitions, moving' + type: JMX + key: 'jmx["{#JMXOBJ}",LocalNodeMovingPartitionsCount]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Count of partitions with state MOVING for this cache group located on this node.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-name + value: '{#JMXNAME}' + trigger_prototypes: + - uuid: 32a4aa1043b44c6198f01951d9ac32b4 + expression: 'max(/Ignite by JMX/jmx["{#JMXOBJ}",LocalNodeMovingPartitionsCount],30m)>0' + name: 'Ignite: Cache group [{#JMXNAME}]: Rebalance in progress' + priority: INFO + description: 'Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 84edf5609ef94d0185a15a606384e609 + name: 'Cache group [{#JMXNAME}]: Local node partitions, owning' + type: JMX + key: 'jmx["{#JMXOBJ}",LocalNodeOwningPartitionsCount]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Count of partitions with state OWNING for this cache group located on this node.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-name + value: '{#JMXNAME}' + - uuid: 314499dd6d214bdcbc524f83c6cbaa2b + name: 'Cache group [{#JMXNAME}]: Local node entries, renting' + type: JMX + key: 'jmx["{#JMXOBJ}",LocalNodeRentingEntriesCount]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Count of entries remains to evict in RENTING partitions located on this node for this cache group.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-name + value: '{#JMXNAME}' + - uuid: 06aff67a70624af899b2f111d7e6c34b + name: 'Cache group [{#JMXNAME}]: Local node partitions, renting' + type: JMX + key: 'jmx["{#JMXOBJ}",LocalNodeRentingPartitionsCount]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Count of partitions with state RENTING for this cache group located on this node.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-name + value: '{#JMXNAME}' + - uuid: 6888861452b64b9e90ece1d1ab97ab4d + name: 'Cache group [{#JMXNAME}]: Partition copies, max' + type: JMX + key: 'jmx["{#JMXOBJ}",MaximumNumberOfPartitionCopies]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Maximum number of partition copies for all partitions of this cache group.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-name + value: '{#JMXNAME}' + - uuid: 9910268fcb3a46aca2eeaf581420ca31 + name: 'Cache group [{#JMXNAME}]: Partition copies, min' + type: JMX + key: 'jmx["{#JMXOBJ}",MinimumNumberOfPartitionCopies]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Minimum number of partition copies for all partitions of this cache group.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-name + value: '{#JMXNAME}' + trigger_prototypes: + - uuid: 8755dd8b09e347659aee2450bcdd5c28 + expression: 'max(/Ignite by JMX/jmx["{#JMXOBJ}",MinimumNumberOfPartitionCopies],30m)=0' + name: 'Ignite: Cache group [{#JMXNAME}]: There is no copy for partitions' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: edc59b661b004f9a8687b6a6b0e1dc09 + name: 'Cache group [{#JMXNAME}]: Partitions' + type: JMX + key: 'jmx["{#JMXOBJ}",Partitions]' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Count of partitions for cache group.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-name + value: '{#JMXNAME}' + trigger_prototypes: + - uuid: 1b85d75607294d6a8fded5b85f7f9a4a + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",Backups],5m)>=max(/Ignite by JMX/jmx["{#JMXOBJ}",MinimumNumberOfPartitionCopies],5m)' + name: 'Ignite: Cache group [{#JMXNAME}]: One or more backups are unavailable' + priority: WARNING + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: ffb5efed84144196a631b0bdef33a13e + name: 'Cache group [{#JMXNAME}]: Partitions' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",LocalNodeMovingPartitionsCount]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",LocalNodeRentingPartitionsCount]' + - sortorder: '2' + color: 00611C + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",LocalNodeOwningPartitionsCount]' + - sortorder: '3' + color: F7941D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",LocalNodeRentingEntriesCount]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: d532f96029b7415fac925e6fd53100f4 + name: 'Thread pool metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:group=\"Thread Pools\",*"]' + delay: 10m + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXNAME}' + value: '{$IGNITE.LLD.FILTER.THREAD.POOL.MATCHES}' + formulaid: A + - macro: '{#JMXNAME}' + value: '{$IGNITE.LLD.FILTER.THREAD.POOL.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 1646bb35234742bb894a5abfd1fbf021 + name: 'Thread pool [{#JMXNAME}]: Pool size, core' + type: JMX + key: 'jmx["{#JMXOBJ}",CorePoolSize]' + units: '!msg' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The core number of threads.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: thread-pool + value: '{#JMXNAME}' + - uuid: 959cfe87996b4d6886bb90db2265deef + name: 'Thread pool [{#JMXNAME}]: Pool size, max' + type: JMX + key: 'jmx["{#JMXOBJ}",MaximumPoolSize]' + units: '!msg' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The maximum allowed number of threads.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: thread-pool + value: '{#JMXNAME}' + - uuid: 6c7897c2f2c842988a1e6802eb11adde + name: 'Thread pool [{#JMXNAME}]: Pool size' + type: JMX + key: 'jmx["{#JMXOBJ}",PoolSize]' + units: '!msg' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Current number of threads in the pool.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: thread-pool + value: '{#JMXNAME}' + - uuid: 0b4b22918f374603a2f14efc95c217da + name: 'Thread pool [{#JMXNAME}]: Queue size' + type: JMX + key: 'jmx["{#JMXOBJ}",QueueSize]' + units: '!msg' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Current size of the execution queue.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: thread-pool + value: '{#JMXNAME}' + trigger_prototypes: + - uuid: 1d29e40969d54e9090724c8a774eaf4d + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",QueueSize],5m) > {$IGNITE.THREAD.QUEUE.MAX.WARN:"{#JMXNAME}"}' + name: 'Ignite: Thread pool [{#JMXNAME}]: Too many messages in queue' + event_name: 'Ignite: Thread pool [{#JMXNAME}]: Too many messages in queue (over {$IGNITE.THREAD.QUEUE.MAX.WARN:"{#JMXNAME}"} for 5 min)' + priority: AVERAGE + description: 'Number of messages in queue more than {$IGNITE.THREAD.QUEUE.MAX.WARN:"{#JMXNAME}"}.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 112c375ee9264c1996ea8c35e467f4a4 + name: 'Thread pool [{#JMXNAME}]: Thread pool size' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",PoolSize]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",MaximumPoolSize]' + - sortorder: '2' + color: 00611C + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CorePoolSize]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: b050fc87d8a3400282739f03c1a5fefd + name: 'Cache metrics' + type: JMX + key: 'jmx.discovery[beans,"org.apache:name=\"org.apache.ignite.internal.processors.cache.CacheLocalMetricsMXBeanImpl\",*"]' + delay: 10m + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXGROUP}' + value: '{$IGNITE.LLD.FILTER.CACHE.MATCHES}' + formulaid: A + - macro: '{#JMXGROUP}' + value: '{$IGNITE.LLD.FILTER.CACHE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 372f156464634c2b98c2ce3bfe9ac2f4 + name: 'Cache group [{#JMXGROUP}]: Cache gets, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheGets]' + value_type: FLOAT + units: ops + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of gets to the cache per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-group + value: '{#JMXGROUP}' + - uuid: 5e633d192b3a472e9a29b4e0a0013ab1 + name: 'Cache group [{#JMXGROUP}]: Cache hits, pct' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheHitPercentage]' + value_type: FLOAT + units: '%' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Percentage of successful hits.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-group + value: '{#JMXGROUP}' + - uuid: 0d79c416c12748f9a3471003ce4d88fb + name: 'Cache group [{#JMXGROUP}]: Cache misses, pct' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheMissPercentage]' + value_type: FLOAT + units: '%' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'Percentage of accesses that failed to find anything.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-group + value: '{#JMXGROUP}' + - uuid: fb324608d65545c79e71df0978d0d053 + name: 'Cache group [{#JMXGROUP}]: Cache puts, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CachePuts]' + value_type: FLOAT + units: ops + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of puts to the cache per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-group + value: '{#JMXGROUP}' + - uuid: 503f39545fa04af79e8dc85f0550ed6b + name: 'Cache group [{#JMXGROUP}]: Cache removals, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheRemovals]' + value_type: FLOAT + units: ops + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of removals from the cache per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-group + value: '{#JMXGROUP}' + - uuid: 182dea03e7d64425aea8c64e1d5714ba + name: 'Cache group [{#JMXGROUP}]: Cache size' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheSize]' + units: '!keys' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of non-null values in the cache as a long value.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-group + value: '{#JMXGROUP}' + - uuid: 74119c1570c24155b450db6e5c1126cd + name: 'Cache group [{#JMXGROUP}]: Cache transaction commits, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheTxCommits]' + value_type: FLOAT + units: '!tps' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of transaction commits per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-group + value: '{#JMXGROUP}' + - uuid: 34d8a8ac772a48c486bfb101e7129fd8 + name: 'Cache group [{#JMXGROUP}]: Cache transaction rollbacks, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CacheTxRollbacks]' + value_type: FLOAT + units: '!tps' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of transaction rollback per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-group + value: '{#JMXGROUP}' + - uuid: cb6b9006d41c46f29ff902a76a27c6f5 + name: 'Cache group [{#JMXGROUP}]: Cache heap entries' + type: JMX + key: 'jmx["{#JMXOBJ}",HeapEntriesCount]' + units: '!keys' + username: '{$IGNITE.USER}' + password: '{$IGNITE.PASSWORD}' + description: 'The number of entries in heap memory.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: ignite + - tag: instance-name + value: '{#JMXIGNITEINSTANCENAME}' + - tag: jmx-group + value: '{#JMXGROUP}' + trigger_prototypes: + - uuid: 97aa5e21a05743b9bb6714d7d5d28a67 + expression: 'last(/Ignite by JMX/jmx["{#JMXOBJ}",CacheSize])=last(/Ignite by JMX/jmx["{#JMXOBJ}",HeapEntriesCount])' + name: 'Ignite: Cache group [{#JMXGROUP}]: All entries are in heap' + priority: INFO + description: 'All entries are in heap. Possibly you use eager queries it may cause out of memory exceptions for big caches. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bfc948858de94088a96c9eddb14b893d + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",CacheTxRollbacks],5m) > max(/Ignite by JMX/jmx["{#JMXOBJ}",CacheTxCommits],5m)' + name: 'Ignite: Cache group [{#JMXGROUP}]: Success transactions less than rollbacks for 5m' + priority: WARNING + dependencies: + - name: 'Ignite: Cache group [{#JMXGROUP}]: There are no success transactions for cache for 5m' + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",CacheTxRollbacks],5m)>0 and max(/Ignite by JMX/jmx["{#JMXOBJ}",CacheTxCommits],5m)=0' + tags: + - tag: scope + value: notice + - uuid: 1d80fe9b052444359eca04629e45e799 + expression: 'min(/Ignite by JMX/jmx["{#JMXOBJ}",CacheTxRollbacks],5m)>0 and max(/Ignite by JMX/jmx["{#JMXOBJ}",CacheTxCommits],5m)=0' + name: 'Ignite: Cache group [{#JMXGROUP}]: There are no success transactions for cache for 5m' + priority: AVERAGE + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 50482d45d20a42e581cfdb0a40a9a9dc + name: 'Cache group [{#JMXGROUP}]: Cache hits' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CacheHitPercentage]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CacheMissPercentage]' + - uuid: 1ce594e3eed64627a337e690b772a741 + name: 'Cache group [{#JMXGROUP}]: Cache ops' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CacheGets]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CachePuts]' + - sortorder: '2' + color: 00611C + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CacheRemovals]' + - uuid: 91e7fb726cf24bbf9aab6467b9e3a217 + name: 'Cache group [{#JMXGROUP}]: Cache transactions' + graph_items: + - color: 199C0D + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CacheTxCommits]' + - sortorder: '1' + color: F63100 + item: + host: 'Ignite by JMX' + key: 'jmx["{#JMXOBJ}",CacheTxRollbacks]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + for (var item, i = 0; item = data.data[i++];) { + if (!('{#JMXIGNITEINSTANCENAME}' in item)) { + Object.assign(item, { + '{#JMXIGNITEINSTANCENAME}': 'null' + }); + } + + } + + return JSON.stringify(data) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: database + - tag: target + value: ignite + macros: + - macro: '{$IGNITE.CHECKPOINT.PUSED.MAX.HIGH}' + value: '80' + description: 'The maximum percent of checkpoint buffer utilization for high trigger expression.' + - macro: '{$IGNITE.CHECKPOINT.PUSED.MAX.WARN}' + value: '66' + description: 'The maximum percent of checkpoint buffer utilization for warning trigger expression.' + - macro: '{$IGNITE.DATA.REGION.PUSED.MAX.HIGH}' + value: '90' + description: 'The maximum percent of data region utilization for high trigger expression.' + - macro: '{$IGNITE.DATA.REGION.PUSED.MAX.WARN}' + value: '80' + description: 'The maximum percent of data region utilization for warning trigger expression.' + - macro: '{$IGNITE.JOBS.QUEUE.MAX.WARN}' + value: '10' + description: 'The maximum number of queued jobs for trigger expression.' + - macro: '{$IGNITE.LLD.FILTER.CACHE.MATCHES}' + value: '.*' + description: 'Filter of discoverable cache groups.' + - macro: '{$IGNITE.LLD.FILTER.CACHE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered cache groups.' + - macro: '{$IGNITE.LLD.FILTER.DATA.REGION.MATCHES}' + value: '.*' + description: 'Filter of discoverable data regions.' + - macro: '{$IGNITE.LLD.FILTER.DATA.REGION.NOT_MATCHES}' + value: ^(sysMemPlc|TxLog)$ + description: 'Filter to exclude discovered data regions.' + - macro: '{$IGNITE.LLD.FILTER.THREAD.POOL.MATCHES}' + value: '.*' + description: 'Filter of discoverable thread pools.' + - macro: '{$IGNITE.LLD.FILTER.THREAD.POOL.NOT_MATCHES}' + value: ^(GridCallbackExecutor|GridRebalanceStripedExecutor|GridDataStreamExecutor|StripedExecutor)$ + description: 'Filter to exclude discovered thread pools.' + - macro: '{$IGNITE.PASSWORD}' + value: '' + - macro: '{$IGNITE.PME.DURATION.MAX.HIGH}' + value: '60000' + description: 'The maximum PME duration in ms for high trigger expression.' + - macro: '{$IGNITE.PME.DURATION.MAX.WARN}' + value: '10000' + description: 'The maximum PME duration in ms for warning trigger expression.' + - macro: '{$IGNITE.THREAD.QUEUE.MAX.WARN}' + value: '1000' + description: 'Threshold for thread pool queue size. Can be used with thread pool name as context.' + - macro: '{$IGNITE.THREADS.COUNT.MAX.WARN}' + value: '1000' + description: 'The maximum number of running threads for trigger expression.' + - macro: '{$IGNITE.USER}' + value: zabbix diff --git a/InfluxDB_by_HTTP.yaml b/InfluxDB_by_HTTP.yaml new file mode 100644 index 0000000..ad4ae96 --- /dev/null +++ b/InfluxDB_by_HTTP.yaml @@ -0,0 +1,820 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: a6fe3640b23544e7ae15d438b38ce1cd + template: 'InfluxDB by HTTP' + name: 'InfluxDB by HTTP' + description: | + Get InfluxDB metrics by HTTP agent from Prometheus metrics endpoint. + For organization discovery template need to use Authorization via API token. See docs: https://docs.influxdata.com/influxdb/v2.0/security/tokens/ + + Don't forget change macros {$INFLUXDB.URL}, {$INFLUXDB.API.TOKEN}. + Some metrics may not be collected depending on your InfluxDB instance version and configuration. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 286bb866060e47948c02408ebc841f1f + name: 'Get instance metrics' + type: HTTP_AGENT + key: influx.get_metrics + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: PROMETHEUS_TO_JSON + parameters: + - '' + url: '{$INFLUXDB.URL}/metrics' + tags: + - tag: component + value: raw + - uuid: f8f514943c9040d7b41f14db92ca6c91 + name: 'Instance status' + type: HTTP_AGENT + key: influx.healthcheck + description: 'Get the health of an instance.' + valuemap: + name: 'InfluxDB healthcheck' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"status":"fail"}]}' + - type: JAVASCRIPT + parameters: + - 'return JSON.parse(value).status == ''pass'' ? 1: 0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + url: '{$INFLUXDB.URL}/health' + tags: + - tag: component + value: health + triggers: + - uuid: de130833b4514481aa56d3ba06e648fc + expression: 'last(/InfluxDB by HTTP/influx.healthcheck)=0' + name: 'InfluxDB: Health check was failed' + priority: HIGH + description: 'The InfluxDB instance is not available or unhealthy.' + tags: + - tag: scope + value: availability + - uuid: 56b1a9f2eb454a9b96a0e0a73d5439cf + name: 'Boltdb reads, rate' + type: DEPENDENT + key: influxdb.boltdb_reads.rate + delay: '0' + value_type: FLOAT + description: 'Total number of boltdb reads per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="boltdb_reads_total")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: boltdb + - uuid: 7bd505a8abb944c2bed17f8e4e5a8c84 + name: 'Boltdb writes, rate' + type: DEPENDENT + key: influxdb.boltdb_writes.rate + delay: '0' + value_type: FLOAT + description: 'Total number of boltdb writes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="boltdb_writes_total")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: boltdb + - uuid: 5d5e26ee272a4af6ac979e69a83de74d + name: 'Buckets, total' + type: DEPENDENT + key: influxdb.buckets.total + delay: '0' + description: 'Number of total buckets on the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="influxdb_buckets_total")].value.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: influx.get_metrics + tags: + - tag: component + value: buckets + - uuid: 1c5931f514804a95ac4bfba3ec4a7d82 + name: 'Dashboards, total' + type: DEPENDENT + key: influxdb.dashboards.total + delay: '0' + description: 'Number of total dashboards on the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="influxdb_dashboards_total")].value.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: influx.get_metrics + tags: + - tag: component + value: dashboards + - uuid: 915f00d9dc9847bb8bc8007d034bb80d + name: 'Organizations, total' + type: DEPENDENT + key: influxdb.organizations.total + delay: '0' + description: 'Number of total organizations on the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="influxdb_organizations_total")].value.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: influx.get_metrics + tags: + - tag: component + value: organizations + - uuid: e05aa2c424c140afa3794878ed2c3baa + name: 'Scrapers, total' + type: DEPENDENT + key: influxdb.scrapers.total + delay: '0' + description: 'Number of total scrapers on the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="influxdb_scrapers_total")].value.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: influx.get_metrics + tags: + - tag: component + value: scrapers + - uuid: f77894d5ede9481381a268670bc88766 + name: 'Task runs failed, rate' + type: DEPENDENT + key: influxdb.task_executor_complete.failed.rate + delay: '0' + description: 'Total number of failure runs across all tasks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="task_executor_total_runs_complete" && @.labels.status == "failed")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: tasks + triggers: + - uuid: f0d2137905bc477f979d035c06111844 + expression: 'min(/InfluxDB by HTTP/influxdb.task_executor_complete.failed.rate,5m)>{$INFLUXDB.TASK.RUN.FAIL.MAX.WARN}' + name: 'InfluxDB: Too many tasks failure runs' + event_name: 'InfluxDB: Too many tasks failure runs (over {$INFLUXDB.TASK.RUN.FAIL.MAX.WARN} for 5m)' + priority: WARNING + description: '"Number of failure runs completed across all tasks is too high."' + tags: + - tag: scope + value: performance + - uuid: a0183b6d934c4612b358c027c75eda6e + name: 'Task runs successful, rate' + type: DEPENDENT + key: influxdb.task_executor_complete.successful.rate + delay: '0' + description: 'Total number of runs successful completed across all tasks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="task_executor_total_runs_complete" && @.labels.status == "success")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: tasks + - uuid: c3f147a2afb3438d8bacbb41fac6b1d0 + name: 'Workers currently running' + type: DEPENDENT + key: influxdb.task_executor_runs_active.total + delay: '0' + description: 'Total number of workers currently running tasks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="task_executor_total_runs_active")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: influx.get_metrics + tags: + - tag: component + value: tasks + - uuid: 25595754557d49fca7c671df3f6a898c + name: 'Workers busy, pct' + type: DEPENDENT + key: influxdb.task_executor_workers_busy.pct + delay: '0' + units: '%' + description: 'Percent of total available workers that are currently busy.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="task_executor_workers_busy")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: influx.get_metrics + tags: + - tag: component + value: tasks + - uuid: 94d98714ecce4847be0bdb7b8802f1ec + name: 'Telegrafs, total' + type: DEPENDENT + key: influxdb.telegrafs.total + delay: '0' + description: 'Number of total telegraf configurations on the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="influxdb_telegrafs_total")].value.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: influx.get_metrics + tags: + - tag: component + value: telegraf + - uuid: 23bad615af024a2e9f06d4541cf6f910 + name: 'Telegraf plugins, total' + type: DEPENDENT + key: influxdb.telegraf_plugins.total + delay: '0' + description: 'Number of individual telegraf plugins configured.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="influxdb_telegraf_plugins_count")].value.sum()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: influx.get_metrics + tags: + - tag: component + value: telegraf + - uuid: 079c1eee7d93484b9126598b23921e9d + name: 'Tokens, total' + type: DEPENDENT + key: influxdb.tokens.total + delay: '0' + description: 'Number of total tokens on the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="influxdb_tokens_total")].value.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: influx.get_metrics + tags: + - tag: component + value: tokens + - uuid: 8699e951b7944659993422334a4cddc0 + name: Uptime + type: DEPENDENT + key: influxdb.uptime + delay: '0' + value_type: FLOAT + units: s + description: 'InfluxDB process uptime in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="influxdb_uptime_seconds")].value.first()' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: uptime + triggers: + - uuid: 335f27fb002544838f7150b11238d86b + expression: 'last(/InfluxDB by HTTP/influxdb.uptime)<10m' + name: 'InfluxDB: Service has been restarted' + event_name: 'InfluxDB: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 86357d43721f4e6aa6b1dd7e63dd2f47 + name: 'Users, total' + type: DEPENDENT + key: influxdb.users.total + delay: '0' + description: 'Number of total users on the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="influxdb_users_total")].value.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: influx.get_metrics + tags: + - tag: component + value: tokens + - uuid: d31e0d0823af4f6c999cae3d49b3815b + name: Version + type: DEPENDENT + key: influxdb.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the InfluxDB instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="influxdb_info")].labels.version.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: influx.get_metrics + tags: + - tag: component + value: version + triggers: + - uuid: d2b02cc426c748608968ae08c0823461 + expression: 'last(/InfluxDB by HTTP/influxdb.version,#1)<>last(/InfluxDB by HTTP/influxdb.version,#2) and length(last(/InfluxDB by HTTP/influxdb.version))>0' + name: 'InfluxDB: Version has changed' + event_name: 'InfluxDB: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'InfluxDB version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 41766fd081804c399c3a7e70dd1fbf03 + name: 'Organizations discovery' + type: HTTP_AGENT + key: influxdb.orgs.discovery + delay: 10m + filter: + evaltype: AND + conditions: + - macro: '{#ORG_NAME}' + value: '{$INFLUXDB.ORG_NAME.MATCHES}' + formulaid: A + - macro: '{#ORG_NAME}' + value: '{$INFLUXDB.ORG_NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of organizations metrics.' + item_prototypes: + - uuid: c84ae278bd7c4387873bc8bbf6d8ba8f + name: '[{#ORG_NAME}] Query response bytes, failed' + type: DEPENDENT + key: 'influxdb.org.http_query_response_bytes.failed.rate["{#ORG_NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Count of bytes returned with status not 200 per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="http_query_response_bytes" && @.labels.status != "200" && @.labels.endpoint == "/api/v2/query" && @.labels.org_id == "{#ORG_ID}") ].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: queries + - tag: organization + value: '{#ORG_NAME}' + - uuid: fb13e133cf054e8783ba6bf5deaf1686 + name: '[{#ORG_NAME}] Query response bytes, success' + type: DEPENDENT + key: 'influxdb.org.http_query_response_bytes.success.rate["{#ORG_NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Count of bytes returned with status 200 per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="http_query_response_bytes" && @.labels.status == "200" && @.labels.endpoint == "/api/v2/query" && @.labels.org_id == "{#ORG_ID}") ].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: queries + - tag: organization + value: '{#ORG_NAME}' + - uuid: 9688861c4268455193772389a957264f + name: '[{#ORG_NAME}] Query requests, failed' + type: DEPENDENT + key: 'influxdb.org.query_request.failed.rate["{#ORG_NAME}"]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'Total number of query requests with status not 200 per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="http_query_request_count" && @.labels.status != "200" && @.labels.endpoint == "/api/v2/query" && @.labels.org_id == "{#ORG_ID}") ].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: queries + - tag: organization + value: '{#ORG_NAME}' + trigger_prototypes: + - uuid: 893fa5755b514c36aa177c4f4e25b254 + expression: 'min(/InfluxDB by HTTP/influxdb.org.query_request.failed.rate["{#ORG_NAME}"],5m)>{$INFLUXDB.REQ.FAIL.MAX.WARN}' + name: 'InfluxDB: [{#ORG_NAME}]: Too many requests failures' + event_name: 'InfluxDB: [{#ORG_NAME}]: Too many requests failures (over {$INFLUXDB.REQ.FAIL.MAX.WARN} for 5m)' + priority: WARNING + description: 'Too many query requests failed.' + tags: + - tag: scope + value: performance + - uuid: da53d3185ba744c38fc264993c72b1b9 + name: '[{#ORG_NAME}] Query requests, success' + type: DEPENDENT + key: 'influxdb.org.query_request.success.rate["{#ORG_NAME}"]' + delay: '0' + value_type: FLOAT + units: Rps + description: 'Total number of query requests with status 200 per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="http_query_request_count" && @.labels.status == "200" && @.labels.endpoint == "/api/v2/query" && @.labels.org_id == "{#ORG_ID}") ].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: queries + - tag: organization + value: '{#ORG_NAME}' + - uuid: 4f8dbb16f7a842678e4fb4343c88b560 + name: '[{#ORG_NAME}] Query requests bytes, failed' + type: DEPENDENT + key: 'influxdb.org.query_request_bytes.failed.rate["{#ORG_NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Count of bytes received with status not 200 per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="http_query_request_bytes" && @.labels.status != "200" && @.labels.endpoint == "/api/v2/query" && @.labels.org_id == "{#ORG_ID}") ].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: queries + - tag: organization + value: '{#ORG_NAME}' + - uuid: 6bbeb22e5c9b46a2bf480dcf41b4eb0e + name: '[{#ORG_NAME}] Query requests bytes, success' + type: DEPENDENT + key: 'influxdb.org.query_request_bytes.success.rate["{#ORG_NAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Count of bytes received with status 200 per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="http_query_request_bytes" && @.labels.status == "200" && @.labels.endpoint == "/api/v2/query" && @.labels.org_id == "{#ORG_ID}") ].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: influx.get_metrics + tags: + - tag: component + value: queries + - tag: organization + value: '{#ORG_NAME}' + graph_prototypes: + - uuid: 925d6b2f79b2479ab031118d795811fb + name: 'InfluxDB: [{#ORG_NAME}]: Query requests' + graph_items: + - color: 199C0D + item: + host: 'InfluxDB by HTTP' + key: 'influxdb.org.query_request.success.rate["{#ORG_NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'InfluxDB by HTTP' + key: 'influxdb.org.query_request.failed.rate["{#ORG_NAME}"]' + - uuid: 01921ee545c540bd8c0d51429bcce11b + name: 'InfluxDB: [{#ORG_NAME}]: Query traffic' + graph_items: + - color: 199C0D + item: + host: 'InfluxDB by HTTP' + key: 'influxdb.org.http_query_response_bytes.success.rate["{#ORG_NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'InfluxDB by HTTP' + key: 'influxdb.org.http_query_response_bytes.failed.rate["{#ORG_NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'InfluxDB by HTTP' + key: 'influxdb.org.query_request_bytes.failed.rate["{#ORG_NAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'InfluxDB by HTTP' + key: 'influxdb.org.query_request_bytes.success.rate["{#ORG_NAME}"]' + url: '{$INFLUXDB.URL}/api/v2/orgs' + headers: + - name: Content-type + value: application/json + - name: Authorization + value: 'Token {$INFLUXDB.API.TOKEN}' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).orgs.forEach(function (e) { + result.push({ + "{#ORG_ID}": e.id, + "{#ORG_NAME}": e.name, + "{#ORG_DESCRIPTION}": e.description + }); + }); + + return JSON.stringify(result) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: database + - tag: target + value: influxdb + macros: + - macro: '{$INFLUXDB.API.TOKEN}' + description: 'InfluxDB API Authorization Token' + - macro: '{$INFLUXDB.ORG_NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable organizations' + - macro: '{$INFLUXDB.ORG_NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered organizations' + - macro: '{$INFLUXDB.REQ.FAIL.MAX.WARN}' + value: '2' + description: 'Maximum number of query requests failures for trigger expression.' + - macro: '{$INFLUXDB.TASK.RUN.FAIL.MAX.WARN}' + value: '2' + description: 'Maximum number of tasks runs failures for trigger expression.' + - macro: '{$INFLUXDB.URL}' + value: 'http://localhost:8086' + description: 'InfluxDB instance URL' + dashboards: + - uuid: 41d42bb27ae14b529b337aac88bf4685 + name: 'InfluxDB: Overview' + pages: + - name: Main + widgets: + - type: item + name: 'Instance status' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'InfluxDB by HTTP' + key: influx.healthcheck + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + name: 'InfluxDB: Tasks runs' + 'y': '2' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'InfluxDB by HTTP' + name: 'InfluxDB: Tasks runs' + - type: STRING + name: reference + value: AAAAA + - type: item + name: Uptime + x: '12' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'InfluxDB by HTTP' + key: influxdb.uptime + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: Version + x: '24' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'InfluxDB by HTTP' + key: influxdb.version + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'Workers busy, pct' + x: '36' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'InfluxDB by HTTP' + key: influxdb.task_executor_workers_busy.pct + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Workers currently running' + x: '48' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'InfluxDB by HTTP' + key: influxdb.task_executor_runs_active.total + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: 'Users, total' + x: '60' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'InfluxDB by HTTP' + key: influxdb.users.total + - type: INTEGER + name: show.0 + value: '2' + - name: Organizations + widgets: + - type: graphprototype + name: 'InfluxDB: Query requests' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'InfluxDB by HTTP' + name: 'InfluxDB: [{#ORG_NAME}]: Query requests' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + name: 'InfluxDB: Query traffic' + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'InfluxDB by HTTP' + name: 'InfluxDB: [{#ORG_NAME}]: Query traffic' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: d1b4478bdfc44c6db79a4a262f605d92 + name: 'InfluxDB healthcheck' + mappings: + - value: '0' + newvalue: Failed + - value: '1' + newvalue: Ok + graphs: + - uuid: dd6b62b969594ddbb82895a8f8fc5623 + name: 'InfluxDB: Tasks runs' + graph_items: + - color: 199C0D + item: + host: 'InfluxDB by HTTP' + key: influxdb.task_executor_complete.failed.rate + - sortorder: '1' + color: F63100 + item: + host: 'InfluxDB by HTTP' + key: influxdb.task_executor_complete.successful.rate diff --git a/Intel_Qlogic_Infiniband_by_SNMP.yaml b/Intel_Qlogic_Infiniband_by_SNMP.yaml new file mode 100644 index 0000000..d541327 --- /dev/null +++ b/Intel_Qlogic_Infiniband_by_SNMP.yaml @@ -0,0 +1,1729 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 6f7f2c44e13a46a4b219fbb5db92f3f7 + template: 'Intel_Qlogic Infiniband by SNMP' + name: 'Intel_Qlogic Infiniband by SNMP' + description: | + Template Net Intel_Qlogic Infiniband + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + ICS-CHASSIS-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 45c9681958504f3b8b161a2c7c728dbb + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a3a6c95c0a32405d81b1bc7690f1bd1f + expression: 'max(/Intel_Qlogic Infiniband by SNMP/icmpping,#3)=0' + name: 'Intel Qlogic: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 81af3843a1e44469affca02640f22b77 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9c78f78339724840b7ab6db4c62f5aa0 + expression: 'min(/Intel_Qlogic Infiniband by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Intel_Qlogic Infiniband by SNMP/icmppingloss,5m)<100' + name: 'Intel Qlogic: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Intel Qlogic: Unavailable by ICMP ping' + expression: 'max(/Intel_Qlogic Infiniband by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 771d21b9c40b426d97eff54c6ac5227e + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 3c5e0b2660764386ac162ed5d2778a56 + expression: 'avg(/Intel_Qlogic Infiniband by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Intel Qlogic: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Intel Qlogic: High ICMP ping loss' + expression: 'min(/Intel_Qlogic Infiniband by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Intel_Qlogic Infiniband by SNMP/icmppingloss,5m)<100' + - name: 'Intel Qlogic: Unavailable by ICMP ping' + expression: 'max(/Intel_Qlogic Infiniband by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5bb2ef0f72244294bcc469710a0a1225 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 8570bf70c217434cb40b9efa74d7e070 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1c17fbf4b11b45f087668eefa9438341 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9cfafe1389af4e569886c5acd8d95de9 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10222.2.1.1.1.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ICS-CHASSIS-MIB' + preprocessing: + - type: REGEX + parameters: + - 'Firmware Version: ([0-9.]+),' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 1ca7574040da41a3bf416daa8172d952 + expression: 'last(/Intel_Qlogic Infiniband by SNMP/system.hw.firmware,#1)<>last(/Intel_Qlogic Infiniband by SNMP/system.hw.firmware,#2) and length(last(/Intel_Qlogic Infiniband by SNMP/system.hw.firmware))>0' + name: 'Intel Qlogic: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 656086e221e84a9a90cc16855f564571 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10222.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ICS-CHASSIS-MIB' + inventory_link: MODEL + preprocessing: + - type: REGEX + parameters: + - '(.+) - Firmware' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: f0fece305afd4ef9b7e9e6e9dd297e21 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: d1ee46aa709d43919ae3727e4d55af42 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7f06f097558d4ef3801207031e660756 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: cfcabcb7d9ca4fd59ed79775bcf059bb + expression: 'last(/Intel_Qlogic Infiniband by SNMP/system.name,#1)<>last(/Intel_Qlogic Infiniband by SNMP/system.name,#2) and length(last(/Intel_Qlogic Infiniband by SNMP/system.name))>0' + name: 'Intel Qlogic: System name has changed' + event_name: 'Intel Qlogic: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: db4c4bc058b147a293b12f8737e42a53 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: c4c4e044967a432a829ca88d8dcd8c2e + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a182c41cf58b465895ff677ca96e5b65 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ccbd4c4da58f4b72a82371c2f3eaf4e1 + expression: 'max(/Intel_Qlogic Infiniband by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Intel Qlogic: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Intel Qlogic: Unavailable by ICMP ping' + expression: 'max(/Intel_Qlogic Infiniband by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 74e3c6efb7f24ffaa2b59c3518d37b32 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.10222.2.1.6.5.1.2]' + key: fan.discovery + delay: 1h + description: 'icsChassisFanDescription of icsChassisFanTable' + item_prototypes: + - uuid: c0bcbe5b06e34e65b1ea5d24e5c7bf18 + name: '{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10222.2.1.6.5.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[icsChassisFanOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: ICS-CHASSIS-MIB + The operational status of the fan unit. + valuemap: + name: 'ICS-CHASSIS-MIB::icsChassisFanOperStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 7ceeb8d2ec314fc1b8dbe9746e9a667a + expression: 'count(/Intel_Qlogic Infiniband by SNMP/sensor.fan.status[icsChassisFanOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Intel Qlogic: {#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 10fcb5ff857448bf88ebfb02d1bea505 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: f099609537764e45bf023b07f983c6cc + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8a6b75dab396460b85b2b0a5c545a163 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ab73df14ab8d4d00994d0fad4abe0cf2 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7edbc6d440c94857818fed946ee74ef0 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ae4ac83054d344d6be098d4c70c9cbf7 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 88f432e3c475431c8295497d68ec904b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ae55937ae3084131b58263805ba6d3ad + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a0818a565e9e4ac69312a04b69de9c95 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 18cef8eb4ade4e15bd04ad476e95a185 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Intel Qlogic: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f979174f556c4906825d9373f60f22ab + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ead4b546caa5429197d566010e3a4a43 + expression: | + change(/Intel_Qlogic Infiniband by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Intel_Qlogic Infiniband by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Intel_Qlogic Infiniband by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Intel_Qlogic Infiniband by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Intel_Qlogic Infiniband by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Intel_Qlogic Infiniband by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Intel_Qlogic Infiniband by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Intel_Qlogic Infiniband by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Intel_Qlogic Infiniband by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Intel_Qlogic Infiniband by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Intel Qlogic: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Intel Qlogic: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 9d5d70c272a641c0ae63aca365cdb103 + expression: | + (avg(/Intel_Qlogic Infiniband by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Intel_Qlogic Infiniband by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Intel_Qlogic Infiniband by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Intel_Qlogic Infiniband by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Intel_Qlogic Infiniband by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Intel_Qlogic Infiniband by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Intel_Qlogic Infiniband by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Intel_Qlogic Infiniband by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Intel_Qlogic Infiniband by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Intel Qlogic: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Intel Qlogic: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Intel Qlogic: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: fba9e43d9fcb43fb9cf5128f1287ac7c + expression: | + min(/Intel_Qlogic Infiniband by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Intel_Qlogic Infiniband by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Intel_Qlogic Infiniband by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Intel_Qlogic Infiniband by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Intel Qlogic: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Intel Qlogic: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Intel Qlogic: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Intel_Qlogic Infiniband by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 148e429035204c199b146850c94dae71 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Intel_Qlogic Infiniband by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Intel_Qlogic Infiniband by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Intel_Qlogic Infiniband by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Intel_Qlogic Infiniband by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Intel_Qlogic Infiniband by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Intel_Qlogic Infiniband by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 757aae6d5bcc40f5a14f1c3225569892 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.10222.2.1.4.7.1.2]' + key: psu.discovery + delay: 1h + description: 'A textual description of the power supply, that can be assigned by the administrator.' + item_prototypes: + - uuid: 2fbaed6a1a0d4b5b85be9f48d0fd7862 + name: '{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10222.2.1.4.7.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[icsChassisPowerSupplyEntry.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: ICS-CHASSIS-MIB + Actual status of the power supply: + (1) unknown: status not known. + (2) disabled: power supply is disabled. + (3) failed - power supply is unable to supply power due to failure. + (4) warning - power supply is supplying power, but an output or sensor is bad or warning. + (5) standby - power supply believed usable,but not supplying power. + (6) engaged - power supply is supplying power. + (7) redundant - power supply is supplying power, but not needed. + (8) notPresent - power supply is supplying power is not present. + valuemap: + name: 'ICS-CHASSIS-MIB::icsChassisPowerSupplyOperStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 1d0c9610cd984124bb7fed812e9edb16 + expression: 'count(/Intel_Qlogic Infiniband by SNMP/sensor.psu.status[icsChassisPowerSupplyEntry.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'Intel Qlogic: {#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7ae4943842ea491c899ce0f84210e202 + expression: 'count(/Intel_Qlogic Infiniband by SNMP/sensor.psu.status[icsChassisPowerSupplyEntry.{#SNMPINDEX}],#1,"eq","{$PSU_WARN_STATUS}")=1' + name: 'Intel Qlogic: {#SNMPVALUE}: Power supply is in warning state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the power supply unit for errors' + dependencies: + - name: 'Intel Qlogic: {#SNMPVALUE}: Power supply is in critical state' + expression: 'count(/Intel_Qlogic Infiniband by SNMP/sensor.psu.status[icsChassisPowerSupplyEntry.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9c408be55f0b4b1384191275f1b624a8 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_TYPE},1.3.6.1.4.1.10222.2.1.9.8.1.2,{#SENSOR_INFO},1.3.6.1.4.1.10222.2.1.9.8.1.7]' + key: temp.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR_TYPE}' + value: '2' + formulaid: A + description: 'Discovering sensor''s table with temperature filter' + item_prototypes: + - uuid: 16048f5e4b6a497d8007336a3faa7ccf + name: '{#SENSOR_INFO}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10222.2.1.9.8.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: ICS-CHASSIS-MIB + The operational status of the sensor. + valuemap: + name: 'ICS-CHASSIS-MIB::icsChassisSensorSlotOperStatus' + tags: + - tag: component + value: temperature + - uuid: 943a4862c1e34cc1a30364a2677b327b + name: '{#SENSOR_INFO}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10222.2.1.9.8.1.8.{#SNMPINDEX}]' + key: 'sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: ICS-CHASSIS-MIB + The current value read from the sensor. + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 03e351b056504735b02da8c37dad6bf0 + expression: 'avg(/Intel_Qlogic Infiniband by SNMP/sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Intel_Qlogic Infiniband by SNMP/sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}+3' + name: 'Intel Qlogic: {#SENSOR_INFO}: Temperature is too low' + event_name: 'Intel Qlogic: {#SENSOR_INFO}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + trigger_prototypes: + - uuid: 61c220a2ae9a4074baf4051214679e77 + expression: | + avg(/Intel_Qlogic Infiniband by SNMP/sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_INFO}"} + or + last(/Intel_Qlogic Infiniband by SNMP/sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}])={$TEMP_CRIT_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Intel_Qlogic Infiniband by SNMP/sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_INFO}"}-3' + name: 'Intel Qlogic: {#SENSOR_INFO}: Temperature is above critical threshold' + event_name: 'Intel Qlogic: {#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d6f38aebdcde46e688350b40d5cbe85b + expression: | + avg(/Intel_Qlogic Infiniband by SNMP/sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SENSOR_INFO}"} + or + last(/Intel_Qlogic Infiniband by SNMP/sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}])={$TEMP_WARN_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Intel_Qlogic Infiniband by SNMP/sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SENSOR_INFO}"}-3' + name: 'Intel Qlogic: {#SENSOR_INFO}: Temperature is above warning threshold' + event_name: 'Intel Qlogic: {#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Intel Qlogic: {#SENSOR_INFO}: Temperature is above critical threshold' + expression: | + avg(/Intel_Qlogic Infiniband by SNMP/sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_INFO}"} + or + last(/Intel_Qlogic Infiniband by SNMP/sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}])={$TEMP_CRIT_STATUS} + recovery_expression: 'max(/Intel_Qlogic Infiniband by SNMP/sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_INFO}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1b369978fa354767834598c87c0df1e0 + name: 'Unit Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.4.1.10222.2.1.1.9.1.3,{#ENT_NAME},1.3.6.1.4.1.10222.2.1.1.9.1.2]' + key: unit.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_CLASS}' + value: '2' + formulaid: A + item_prototypes: + - uuid: fe7ccdebf77246009bc91f9a18cc8ddb + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10222.2.1.1.10.1.1.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[icsChassisSystemUnitFruSerialNumber.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ICS-CHASSIS-MIB + The serial number of the FRU. If not available, this value is a zero-length string. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 90778aeb97244258a830e89eeb263e54 + expression: 'last(/Intel_Qlogic Infiniband by SNMP/system.hw.serialnumber[icsChassisSystemUnitFruSerialNumber.{#SNMPINDEX}],#1)<>last(/Intel_Qlogic Infiniband by SNMP/system.hw.serialnumber[icsChassisSystemUnitFruSerialNumber.{#SNMPINDEX}],#2) and length(last(/Intel_Qlogic Infiniband by SNMP/system.hw.serialnumber[icsChassisSystemUnitFruSerialNumber.{#SNMPINDEX}]))>0' + name: 'Intel Qlogic: {#ENT_NAME}: Device has been replaced' + event_name: 'Intel Qlogic: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + tags: + - tag: class + value: network + - tag: target + value: intel + - tag: target + value: qlogic-infiniband + macros: + - macro: '{$FAN_CRIT_STATUS}' + value: '3' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '3' + - macro: '{$PSU_WARN_STATUS}' + value: '4' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_CRIT_STATUS}' + value: '3' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN_STATUS}' + value: '2' + dashboards: + - uuid: 01b7f2c33ed343e68e995f7132ec61eb + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Intel_Qlogic Infiniband by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 39299506ad14445fa7b7a9e78cc54619 + name: 'ICS-CHASSIS-MIB::icsChassisFanOperStatus' + mappings: + - value: '1' + newvalue: online + - value: '2' + newvalue: operational + - value: '3' + newvalue: failed + - value: '4' + newvalue: offline + - uuid: 535cb21845474749994bf7c395e39312 + name: 'ICS-CHASSIS-MIB::icsChassisPowerSupplyOperStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: disabled + - value: '3' + newvalue: failed + - value: '4' + newvalue: warning + - value: '5' + newvalue: standby + - value: '6' + newvalue: engaged + - value: '7' + newvalue: redundant + - value: '8' + newvalue: notPresent + - uuid: 4c80241c4d5d4b949577e9741710a32b + name: 'ICS-CHASSIS-MIB::icsChassisSensorSlotOperStatus' + mappings: + - value: '1' + newvalue: invalid + - value: '2' + newvalue: bad + - value: '3' + newvalue: warning + - value: '4' + newvalue: good + - value: '5' + newvalue: disabled + - uuid: 59e447d9af934975975b38972c8a7fca + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: f959de5e694a4e46a35da37ff58af887 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 9c931d7fbc984fd6b3a44a09fec264e1 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: d6130251df4c41c0b417fcd8d71f3f15 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 20166f9c8d5448a494b6b578471df8cc + expression: '(last(/Intel_Qlogic Infiniband by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Intel_Qlogic Infiniband by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Intel_Qlogic Infiniband by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Intel_Qlogic Infiniband by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Intel Qlogic: Host has been restarted' + event_name: 'Intel Qlogic: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Intel Qlogic: No SNMP data collection' + expression: 'max(/Intel_Qlogic Infiniband by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Intel_SR1530_IPMI.yaml b/Intel_SR1530_IPMI.yaml new file mode 100644 index 0000000..8a55794 --- /dev/null +++ b/Intel_SR1530_IPMI.yaml @@ -0,0 +1,312 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: f01bd64eef4049fabe087cccae590226 + template: 'Intel SR1530 IPMI' + name: 'Intel SR1530 IPMI' + description: | + Template for monitoring Intel SR1530 server system. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: f1d7b90d87c6411e9d887d223b4f9022 + name: 'BB +1.8V SM' + type: IPMI + key: bb_1.8v_sm + value_type: FLOAT + units: V + ipmi_sensor: 'BB +1.8V SM' + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: 55cc8ccf46954499a9c274ab301dd857 + expression: 'last(/Intel SR1530 IPMI/bb_1.8v_sm)<1.597 or last(/Intel SR1530 IPMI/bb_1.8v_sm)>2.019' + name: 'Intel SR1530: BB +1.8V SM Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1530: Power' + expression: 'last(/Intel SR1530 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: 55e3dc7d5bd34da0862d724ab5d18bb7 + expression: 'last(/Intel SR1530 IPMI/bb_1.8v_sm)<1.646 or last(/Intel SR1530 IPMI/bb_1.8v_sm)>1.960' + name: 'Intel SR1530: BB +1.8V SM Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1530: BB +1.8V SM Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1530 IPMI/bb_1.8v_sm)<1.597 or last(/Intel SR1530 IPMI/bb_1.8v_sm)>2.019' + - name: 'Intel SR1530: Power' + expression: 'last(/Intel SR1530 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: 21820c76180446ff9965f8937e6d1ba0 + name: 'BB +3.3V' + type: IPMI + key: bb_3.3v + value_type: FLOAT + units: V + ipmi_sensor: 'BB +3.3V' + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: 35a0dedd6fb244759a4feca2c1aff961 + expression: 'last(/Intel SR1530 IPMI/bb_3.3v)<2.876 or last(/Intel SR1530 IPMI/bb_3.3v)>3.729' + name: 'Intel SR1530: BB +3.3V Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1530: Power' + expression: 'last(/Intel SR1530 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: bd2472feb90f40429fbbcd0bddbdd455 + expression: 'last(/Intel SR1530 IPMI/bb_3.3v)<2.970 or last(/Intel SR1530 IPMI/bb_3.3v)>3.618' + name: 'Intel SR1530: BB +3.3V Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1530: BB +3.3V Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1530 IPMI/bb_3.3v)<2.876 or last(/Intel SR1530 IPMI/bb_3.3v)>3.729' + - name: 'Intel SR1530: Power' + expression: 'last(/Intel SR1530 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: 7bd5269be38c417aba374c9e8af28f8c + name: 'BB +3.3V STBY' + type: IPMI + key: bb_3.3v_stby + value_type: FLOAT + units: V + ipmi_sensor: 'BB +3.3V STBY' + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: c0f82f508d38405d978c746f5c95a178 + expression: 'last(/Intel SR1530 IPMI/bb_3.3v_stby)<2.876 or last(/Intel SR1530 IPMI/bb_3.3v_stby)>3.729' + name: 'Intel SR1530: BB +3.3V STBY Critical [{ITEM.VALUE}]' + priority: DISASTER + tags: + - tag: scope + value: availability + - uuid: 8f957e674af84229aa2e1ee78bf941a0 + expression: 'last(/Intel SR1530 IPMI/bb_3.3v_stby)<2.970 or last(/Intel SR1530 IPMI/bb_3.3v_stby)>3.618' + name: 'Intel SR1530: BB +3.3V STBY Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1530: BB +3.3V STBY Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1530 IPMI/bb_3.3v_stby)<2.876 or last(/Intel SR1530 IPMI/bb_3.3v_stby)>3.729' + tags: + - tag: scope + value: availability + - uuid: 7931e499e1894942a4763432a6a446fd + name: 'BB +5.0V' + type: IPMI + key: bb_5.0v + value_type: FLOAT + units: V + ipmi_sensor: 'BB +5.0V' + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: dec3da3d68b04f3c9ea16fabe17b8faa + expression: 'last(/Intel SR1530 IPMI/bb_5.0v)<4.362 or last(/Intel SR1530 IPMI/bb_5.0v)>5.663' + name: 'Intel SR1530: BB +5.0V Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1530: Power' + expression: 'last(/Intel SR1530 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: e2683b71d36b4ab4ad8a98c964b19118 + expression: 'last(/Intel SR1530 IPMI/bb_5.0v)<4.483 or last(/Intel SR1530 IPMI/bb_5.0v)>5.495' + name: 'Intel SR1530: BB +5.0V Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1530: BB +5.0V Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1530 IPMI/bb_5.0v)<4.362 or last(/Intel SR1530 IPMI/bb_5.0v)>5.663' + - name: 'Intel SR1530: Power' + expression: 'last(/Intel SR1530 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: 2e6d7059cbb349889c639e9fba09bd8c + name: 'BB Ambient Temp' + type: IPMI + key: bb_ambient_temp + value_type: FLOAT + units: C + ipmi_sensor: 'BB Ambient Temp' + tags: + - tag: component + value: system + - tag: component + value: temperature + triggers: + - uuid: 0adcefe86a99468d9d7f0db2021ec8c9 + expression: 'last(/Intel SR1530 IPMI/bb_ambient_temp)<5 or last(/Intel SR1530 IPMI/bb_ambient_temp)>66' + name: 'Intel SR1530: BB Ambient Temp Critical [{ITEM.VALUE}]' + priority: DISASTER + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6630637c02224bacbe3456a388233775 + expression: 'last(/Intel SR1530 IPMI/bb_ambient_temp)<10 or last(/Intel SR1530 IPMI/bb_ambient_temp)>61' + name: 'Intel SR1530: BB Ambient Temp Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1530: BB Ambient Temp Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1530 IPMI/bb_ambient_temp)<5 or last(/Intel SR1530 IPMI/bb_ambient_temp)>66' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1821294a921d401f822678ce1d246163 + name: Power + type: IPMI + key: power + ipmi_sensor: power + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: 85722b8734df45d589afd69262a498a4 + expression: 'last(/Intel SR1530 IPMI/power)=0' + name: 'Intel SR1530: Power' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: efc577d6deba4f46b1fe79e6a1a26fdd + name: 'Processor Vcc' + type: IPMI + key: processor_vcc + value_type: FLOAT + units: V + ipmi_sensor: 'Processor Vcc' + tags: + - tag: component + value: system + - tag: component + value: voltage + - uuid: 89e5edc9cd6d4984a7a76320f7800ae9 + name: 'System Fan 3' + type: IPMI + key: system_fan_3 + value_type: FLOAT + units: RPM + ipmi_sensor: 'System Fan 3' + tags: + - tag: component + value: fan + - tag: component + value: system + tags: + - tag: class + value: hardware + - tag: target + value: intel + - tag: target + value: intel-sr1530 + dashboards: + - uuid: f298fb0b3cee40e6b2588c6b8b078a8a + name: 'Intel SR1530 IPMI Overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Intel SR1530 IPMI' + name: 'Intel SR1530 IPMI: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Intel SR1530 IPMI' + name: 'Intel SR1530 IPMI: Fan speed and ambient temperature' + - type: STRING + name: reference + value: AAAAB + graphs: + - uuid: e1fff55999a6420f987659ca0dc8c102 + name: 'Intel SR1530 IPMI: Fan speed and ambient temperature' + graph_items: + - color: 199C0D + item: + host: 'Intel SR1530 IPMI' + key: bb_ambient_temp + - sortorder: '1' + color: F63100 + item: + host: 'Intel SR1530 IPMI' + key: system_fan_3 + - uuid: bec82c29b93c4841a89d0978a899c70b + name: 'Intel SR1530 IPMI: Voltage' + graph_items: + - color: 199C0D + item: + host: 'Intel SR1530 IPMI' + key: power + - sortorder: '1' + color: F63100 + item: + host: 'Intel SR1530 IPMI' + key: bb_1.8v_sm + - sortorder: '2' + color: 00611C + item: + host: 'Intel SR1530 IPMI' + key: bb_3.3v + - sortorder: '3' + color: F7941D + item: + host: 'Intel SR1530 IPMI' + key: bb_3.3v_stby + - sortorder: '4' + color: FC6EA3 + item: + host: 'Intel SR1530 IPMI' + key: bb_5.0v + - sortorder: '5' + color: 6C59DC + item: + host: 'Intel SR1530 IPMI' + key: processor_vcc diff --git a/Intel_SR1630_IPMI.yaml b/Intel_SR1630_IPMI.yaml new file mode 100644 index 0000000..d17dbc4 --- /dev/null +++ b/Intel_SR1630_IPMI.yaml @@ -0,0 +1,485 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 2327c665b46e4aa781d41240168c3867 + template: 'Intel SR1630 IPMI' + name: 'Intel SR1630 IPMI' + description: | + Template for monitoring Intel SR1630 server system. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 8271dc34162d4657be1a67b5d8a4473b + name: 'Baseboard Temp' + type: IPMI + key: baseboard_temp + value_type: FLOAT + units: C + ipmi_sensor: 'Baseboard Temp' + tags: + - tag: component + value: system + - tag: component + value: temperature + triggers: + - uuid: 2e1ee68913a34cb78f31d5001f10793d + expression: 'last(/Intel SR1630 IPMI/baseboard_temp)<5 or last(/Intel SR1630 IPMI/baseboard_temp)>90' + name: 'Intel SR1630: Baseboard Temp Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c51b207bcbd041039a1f5a1a7973e262 + expression: 'last(/Intel SR1630 IPMI/baseboard_temp)<10 or last(/Intel SR1630 IPMI/baseboard_temp)>83' + name: 'Intel SR1630: Baseboard Temp Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1630: Baseboard Temp Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1630 IPMI/baseboard_temp)<5 or last(/Intel SR1630 IPMI/baseboard_temp)>90' + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d2827f4cc6c4470daf4fd20868ed94c8 + name: 'BB +1.05V PCH' + type: IPMI + key: bb_1.05v_pch + value_type: FLOAT + units: V + ipmi_sensor: 'BB +1.05V PCH' + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: ec813e0d4ccb48d2af680281034a901f + expression: 'last(/Intel SR1630 IPMI/bb_1.05v_pch)<0.953 or last(/Intel SR1630 IPMI/bb_1.05v_pch)>1.149' + name: 'Intel SR1630: BB +1.05V PCH Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: 2b0db1b054f842a4891162fbe33e50e8 + expression: 'last(/Intel SR1630 IPMI/bb_1.05v_pch)<0.985 or last(/Intel SR1630 IPMI/bb_1.05v_pch)>1.117' + name: 'Intel SR1630: BB +1.05V PCH Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1630: BB +1.05V PCH Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1630 IPMI/bb_1.05v_pch)<0.953 or last(/Intel SR1630 IPMI/bb_1.05v_pch)>1.149' + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: 3bbcfcb625fa4805806601284c3eda20 + name: 'BB +1.1V P1 Vccp' + type: IPMI + key: bb_1.1v_p1_vccp + value_type: FLOAT + units: V + ipmi_sensor: 'BB +1.1V P1 Vccp' + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: 2e18cf768c2b468eae5549a326325c61 + expression: 'last(/Intel SR1630 IPMI/bb_1.1v_p1_vccp)<0.683 or last(/Intel SR1630 IPMI/bb_1.1v_p1_vccp)>1.543' + name: 'Intel SR1630: BB +1.1V P1 Vccp Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: 465d51e2a260431dbc7e8e7d39994274 + expression: 'last(/Intel SR1630 IPMI/bb_1.1v_p1_vccp)<0.708 or last(/Intel SR1630 IPMI/bb_1.1v_p1_vccp)>1.501' + name: 'Intel SR1630: BB +1.1V P1 Vccp Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1630: BB +1.1V P1 Vccp Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1630 IPMI/bb_1.1v_p1_vccp)<0.683 or last(/Intel SR1630 IPMI/bb_1.1v_p1_vccp)>1.543' + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: 350b21b2a569489a9c4c7376bf788a0e + name: 'BB +1.5V P1 DDR3' + type: IPMI + key: bb_1.5v_p1_ddr3 + value_type: FLOAT + units: V + ipmi_sensor: 'BB +1.5V P1 DDR3' + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: cb2aa635a08c495f9a540c60ce5d1333 + expression: 'last(/Intel SR1630 IPMI/bb_1.5v_p1_ddr3)<1.362 or last(/Intel SR1630 IPMI/bb_1.5v_p1_ddr3)>1.635' + name: 'Intel SR1630: BB +1.5V P1 DDR3 Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: db42f9fd43f04849a07048f5b5a38a4c + expression: 'last(/Intel SR1630 IPMI/bb_1.5v_p1_ddr3)<1.401 or last(/Intel SR1630 IPMI/bb_1.5v_p1_ddr3)>1.589' + name: 'Intel SR1630: BB +1.5V P1 DDR3 Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1630: BB +1.5V P1 DDR3 Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1630 IPMI/bb_1.5v_p1_ddr3)<1.362 or last(/Intel SR1630 IPMI/bb_1.5v_p1_ddr3)>1.635' + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: 6bc6b9c60ce24189b8b0f8a928fab701 + name: 'BB +3.3V' + type: IPMI + key: bb_3.3v + value_type: FLOAT + units: V + ipmi_sensor: 'BB +3.3V' + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: 9eea7fcd8b574f35aee3e3acb4267f4a + expression: 'last(/Intel SR1630 IPMI/bb_3.3v)<2.982 or last(/Intel SR1630 IPMI/bb_3.3v)>3.625' + name: 'Intel SR1630: BB +3.3V Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: 93fd529afb20436f94f9184bb2213335 + expression: 'last(/Intel SR1630 IPMI/bb_3.3v)<3.067 or last(/Intel SR1630 IPMI/bb_3.3v)>3.525' + name: 'Intel SR1630: BB +3.3V Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1630: BB +3.3V Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1630 IPMI/bb_3.3v)<2.982 or last(/Intel SR1630 IPMI/bb_3.3v)>3.625' + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: aef2b61786354719a6d99f60cff59f14 + name: 'BB +3.3V STBY' + type: IPMI + key: bb_3.3v_stby + value_type: FLOAT + units: V + ipmi_sensor: 'BB +3.3V STBY' + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: 3f5aa41308714b73ab555e36ecbe889e + expression: 'last(/Intel SR1630 IPMI/bb_3.3v_stby)<2.982 or last(/Intel SR1630 IPMI/bb_3.3v_stby)>3.625' + name: 'Intel SR1630: BB +3.3V STBY Critical [{ITEM.VALUE}]' + priority: DISASTER + tags: + - tag: scope + value: availability + - uuid: e631b683ce8f4d0ca5f22adb8ae791c7 + expression: 'last(/Intel SR1630 IPMI/bb_3.3v_stby)<3.067 or last(/Intel SR1630 IPMI/bb_3.3v_stby)>3.525' + name: 'Intel SR1630: BB +3.3V STBY Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1630: BB +3.3V STBY Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1630 IPMI/bb_3.3v_stby)<2.982 or last(/Intel SR1630 IPMI/bb_3.3v_stby)>3.625' + tags: + - tag: scope + value: availability + - uuid: 5a60f33969e54742989571dc2f93be57 + name: 'BB +5.0V' + type: IPMI + key: bb_5.0v + value_type: FLOAT + units: V + ipmi_sensor: 'BB +5.0V' + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: 54f7b55a71b544bf877b283593a2ca32 + expression: 'last(/Intel SR1630 IPMI/bb_5.0v)<4.471 or last(/Intel SR1630 IPMI/bb_5.0v)>5.538' + name: 'Intel SR1630: BB +5.0V Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: a1e9f3ba84c54a39a255c682e43e793b + expression: 'last(/Intel SR1630 IPMI/bb_5.0v)<4.630 or last(/Intel SR1630 IPMI/bb_5.0v)>5.380' + name: 'Intel SR1630: BB +5.0V Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1630: BB +5.0V Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1630 IPMI/bb_5.0v)<4.471 or last(/Intel SR1630 IPMI/bb_5.0v)>5.538' + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - uuid: d59236617a234098b0cd62ac30cba975 + name: 'Front Panel Temp' + type: IPMI + key: front_panel_temp + value_type: FLOAT + units: C + ipmi_sensor: 'Front Panel Temp' + tags: + - tag: component + value: system + - tag: component + value: temperature + triggers: + - uuid: b4b5e024b8b44e9eb3238405a0b1d223 + expression: 'last(/Intel SR1630 IPMI/front_panel_temp)<0 or last(/Intel SR1630 IPMI/front_panel_temp)>48' + name: 'Intel SR1630: Front Panel Temp Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b7125d20d8664530a78c9b3b56b2f479 + expression: 'last(/Intel SR1630 IPMI/front_panel_temp)<5 or last(/Intel SR1630 IPMI/front_panel_temp)>44' + name: 'Intel SR1630: Front Panel Temp Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1630: Front Panel Temp Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1630 IPMI/front_panel_temp)<0 or last(/Intel SR1630 IPMI/front_panel_temp)>48' + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e4f51e8a51fb4f23afe9d505ede91891 + name: Power + type: IPMI + key: power + ipmi_sensor: power + tags: + - tag: component + value: system + - tag: component + value: voltage + triggers: + - uuid: dea67d2c71804d369e9b948922a4e86b + expression: 'last(/Intel SR1630 IPMI/power)=0' + name: 'Intel SR1630: Power' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: ede3efc70c794c3390531b41a28411ef + name: 'System Fan 2' + type: IPMI + key: system_fan_2 + value_type: FLOAT + units: RPM + ipmi_sensor: 'System Fan 2' + tags: + - tag: component + value: fan + - tag: component + value: system + triggers: + - uuid: 95653ec3aa484822888818ea0fd6261b + expression: 'last(/Intel SR1630 IPMI/system_fan_2)<324' + name: 'Intel SR1630: System Fan 2 Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0a6c1831607a4f059e5325fcc11e34cf + expression: 'last(/Intel SR1630 IPMI/system_fan_2)<378' + name: 'Intel SR1630: System Fan 2 Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + - name: 'Intel SR1630: System Fan 2 Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1630 IPMI/system_fan_2)<324' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b51ab327c547413fb94dae69e93458d2 + name: 'System Fan 3' + type: IPMI + key: system_fan_3 + value_type: FLOAT + units: RPM + ipmi_sensor: 'System Fan 3' + tags: + - tag: component + value: fan + - tag: component + value: system + triggers: + - uuid: dc2255a797ef424ea22f553f8de53061 + expression: 'last(/Intel SR1630 IPMI/system_fan_3)<324' + name: 'Intel SR1630: System Fan 3 Critical [{ITEM.VALUE}]' + priority: DISASTER + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f1c938c42c6a4933b108da70cb2daf5d + expression: 'last(/Intel SR1630 IPMI/system_fan_3)<378' + name: 'Intel SR1630: System Fan 3 Non-Critical [{ITEM.VALUE}]' + priority: HIGH + dependencies: + - name: 'Intel SR1630: Power' + expression: 'last(/Intel SR1630 IPMI/power)=0' + - name: 'Intel SR1630: System Fan 3 Critical [{ITEM.VALUE}]' + expression: 'last(/Intel SR1630 IPMI/system_fan_3)<324' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: hardware + - tag: target + value: intel + - tag: target + value: intel-sr1630 + dashboards: + - uuid: 40f258b8b6a5411fa02d4958d3f7c8c8 + name: 'Intel SR1630 IPMI Overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Intel SR1630 IPMI' + name: 'Intel SR1630 IPMI: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Intel SR1630 IPMI' + name: 'Intel SR1630 IPMI: Fan speed and temperature' + - type: STRING + name: reference + value: AAAAB + graphs: + - uuid: aab06155f8aa4bc991603a3c8c335d6e + name: 'Intel SR1630 IPMI: Fan speed and temperature' + graph_items: + - color: 199C0D + item: + host: 'Intel SR1630 IPMI' + key: front_panel_temp + - sortorder: '1' + color: F63100 + item: + host: 'Intel SR1630 IPMI' + key: baseboard_temp + - sortorder: '2' + color: 00611C + item: + host: 'Intel SR1630 IPMI' + key: system_fan_2 + - sortorder: '3' + color: F7941D + item: + host: 'Intel SR1630 IPMI' + key: system_fan_3 + - uuid: d4e77359d3fe4a75b0bbf9d7919834da + name: 'Intel SR1630 IPMI: Voltage' + graph_items: + - color: 199C0D + item: + host: 'Intel SR1630 IPMI' + key: power + - sortorder: '1' + color: F63100 + item: + host: 'Intel SR1630 IPMI' + key: bb_1.05v_pch + - sortorder: '2' + color: 00611C + item: + host: 'Intel SR1630 IPMI' + key: bb_3.3v + - sortorder: '3' + color: F7941D + item: + host: 'Intel SR1630 IPMI' + key: bb_3.3v_stby + - sortorder: '4' + color: FC6EA3 + item: + host: 'Intel SR1630 IPMI' + key: bb_5.0v diff --git a/Jenkins_by_HTTP.yaml b/Jenkins_by_HTTP.yaml new file mode 100644 index 0000000..d8c935b --- /dev/null +++ b/Jenkins_by_HTTP.yaml @@ -0,0 +1,2326 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 2ef2f2eb75ee4a0bae839e22aa76e5fc + template: 'Jenkins by HTTP' + name: 'Jenkins by HTTP' + description: | + Get Jenkins metrics by HTTP agent. + Metrics are collected by requests to Metrics API. Install Metrics plugin and configure access to the Metrics Servlet by issuing API key. + Don't forget to change macros {$JENKINS.URL}, {$JENKINS.USER}, {$JENKINS.API.TOKEN}, {$JENKINS.API.KEY}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 7ae6f7fae8d4485fb850c84ac00b7ff1 + name: 'Get computer info' + type: HTTP_AGENT + key: jenkins.computer_info + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$JENKINS.USER}' + password: '{$JENKINS.API.TOKEN}' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + url: '{$JENKINS.URL}/computer/api/json' + tags: + - tag: component + value: computers + - tag: component + value: raw + - uuid: 790aedce97be4e7dae6f4de8238340a7 + name: 'File descriptor ratio' + type: DEPENDENT + key: jenkins.descriptor.ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of used to total file descriptors' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''vm.file.descriptor.ratio''].value' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: fds + triggers: + - uuid: 5ec22ac264d445769039bd4c13e41bf7 + expression: 'min(/Jenkins by HTTP/jenkins.descriptor.ratio,5m)>{$JENKINS.FILE_DESCRIPTORS.MAX.WARN}' + name: 'Jenkins: Current number of used files is too high' + event_name: 'Jenkins: Current number of used files is too high (over {$JENKINS.FILE_DESCRIPTORS.MAX.WARN}% for 5m)' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 0b3cf1992122407795eef5ab9474101d + name: 'Disk space check' + type: DEPENDENT + key: jenkins.disk_space + delay: '0' + description: 'Returns FAIL if any of the Jenkins disk space monitors are reporting the disk space as less than the configured threshold.' + valuemap: + name: 'Jenkins healthcheck' + preprocessing: + - type: JSONPATH + parameters: + - '$[''disk-space''].healthy' + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.healthcheck + tags: + - tag: component + value: disk + - uuid: 8095797fe6ef478db4a8acb60e1dcc54 + name: 'Disk space check message' + type: DEPENDENT + key: jenkins.disk_space.message + delay: '0' + value_type: CHAR + trends: '0' + description: 'The message will reference the first node which fails this check. There may be other nodes that fail the check, but this health check is designed to fail fast.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''disk-space''].message' + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: jenkins.healthcheck + tags: + - tag: component + value: disk + - uuid: 26902068daf94cf3a5aec360be9abc18 + name: 'Executors count' + type: DEPENDENT + key: jenkins.executor.count + delay: '0' + description: 'The number of executors available to Jenkins. This is corresponds to the sum of all the executors of all the online nodes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.executor.count.value''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: executors + - uuid: 7b672586e5194370a0c141570174d21a + name: 'Executors free' + type: DEPENDENT + key: jenkins.executor.free + delay: '0' + description: 'The number of executors available to Jenkins that are not currently in use.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.executor.free.value''].value' + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: executors + - uuid: 197470fead89470f94a910e9405498fe + name: 'Executors in use' + type: DEPENDENT + key: jenkins.executor.in_use + delay: '0' + description: 'The number of executors available to Jenkins that are currently in use.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.executor.in-use.value''].value' + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: executors + - uuid: 035f0609b9ba4231a31f3310ca8151b8 + name: 'Get gauges' + type: DEPENDENT + key: jenkins.gauges.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw items for gauges metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.gauges + master_item: + key: jenkins.get_metrics + tags: + - tag: component + value: raw + - uuid: db4c0de52dca4c8a853edf918b35bbe4 + name: 'Get service metrics' + type: HTTP_AGENT + key: jenkins.get_metrics + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + url: '{$JENKINS.URL}/metrics/{$JENKINS.API.KEY}/metrics' + tags: + - tag: component + value: raw + - uuid: 4be0216b409d46a2a12e2929a9a03295 + name: 'Get healthcheck' + type: HTTP_AGENT + key: jenkins.healthcheck + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + url: '{$JENKINS.URL}/metrics/{$JENKINS.API.KEY}/healthcheck' + tags: + - tag: component + value: health + - uuid: d9677f596dae43e4984838061fe19d45 + name: 'HTTP active requests, rate' + type: DEPENDENT + key: jenkins.http.active_requests.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of currently active requests against the Jenkins master Web UI.' + preprocessing: + - type: JSONPATH + parameters: + - '$.counters.[''http.activeRequests''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.get_metrics + tags: + - tag: component + value: requests + - uuid: d95c9a1b19ed4da38bec3217eee2e590 + name: 'HTTP response 400, rate' + type: DEPENDENT + key: jenkins.http.bad_request.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is responding to requests with an HTTP/400 status code.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.responseCodes.badRequest''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: requests + - tag: http-code + value: '400' + - uuid: b3d77a909487431bab2b0b7f7c89bf90 + name: 'HTTP response 201, rate' + type: DEPENDENT + key: jenkins.http.created.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is responding to requests with an HTTP/201 status code.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.responseCodes.created''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: requests + - tag: http-code + value: '201' + - uuid: 3265515d32f840e9ade25c0d2892b372 + name: 'HTTP response 403, rate' + type: DEPENDENT + key: jenkins.http.forbidden.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is responding to requests with an HTTP/403 status code.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.responseCodes.forbidden''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: requests + - tag: http-code + value: '403' + - uuid: 22b8fc85f441484cad8b2641748d75a1 + name: 'HTTP response 404, rate' + type: DEPENDENT + key: jenkins.http.not_found.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is responding to requests with an HTTP/404 status code.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.responseCodes.notFound''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: requests + - tag: http-code + value: '404' + - uuid: 1a9a6b663aaa48bbacfc56c1569521c0 + name: 'HTTP response 304, rate' + type: DEPENDENT + key: jenkins.http.not_modified.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is responding to requests with an HTTP/304 status code.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.responseCodes.notModified''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: requests + - tag: http-code + value: '304' + - uuid: 2a79c1139b44402fa8f31d6b61a0d739 + name: 'HTTP response 204, rate' + type: DEPENDENT + key: jenkins.http.no_content.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is responding to requests with an HTTP/204 status code.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.responseCodes.noContent''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: requests + - tag: http-code + value: '204' + - uuid: c4c1dfcf2d904985a0ca6956724adf41 + name: 'HTTP response 200, rate' + type: DEPENDENT + key: jenkins.http.ok.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is responding to requests with an HTTP/200 status code.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.responseCodes.ok''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: requests + - tag: http-code + value: '200' + - uuid: afdab05416084124887bcec705f2603d + name: 'HTTP response other, rate' + type: DEPENDENT + key: jenkins.http.other.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is responding to requests with a non-informational status code that is not in the list: HTTP/200, HTTP/201, HTTP/204, HTTP/304, HTTP/400, HTTP/403, HTTP/404, HTTP/500, or HTTP/503.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.responseCodes.other''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: requests + - tag: http-code + value: other + - uuid: 5169a969034b4da29eaab59c7c3aa719 + name: 'HTTP requests, rate' + type: DEPENDENT + key: jenkins.http.requests.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is receiving requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.requests''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: requests + - uuid: 9a4ad856db02403b8b523179bf4b3699 + name: 'HTTP requests, median' + type: DEPENDENT + key: jenkins.http.requests_p50.rate + delay: '0' + value_type: FLOAT + units: s + description: 'The time spent generating the corresponding responses.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.requests''].p50' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: requests + - uuid: 6766b45e349e4a4d88593207df6b35ba + name: 'HTTP requests, p95' + type: DEPENDENT + key: jenkins.http.requests_p95.rate + delay: '0' + value_type: FLOAT + units: s + description: 'The time spent generating the corresponding responses.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.requests''].p95' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: requests + - uuid: 320cc4d7fafc4c87ab8d92bd76901982 + name: 'HTTP response 500, rate' + type: DEPENDENT + key: jenkins.http.server_error.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is responding to requests with an HTTP/500 status code.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.responseCodes.serverError''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: requests + - tag: http-code + value: '500' + - uuid: d4ad6574138443a18e721f3d518d5e61 + name: 'HTTP response 503, rate' + type: DEPENDENT + key: jenkins.http.service_unavailable.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The rate at which the Jenkins master Web UI is responding to requests with an HTTP/503 status code.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''http.responseCodes.serviceUnavailable''].count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: requests + - tag: http-code + value: '503' + - uuid: ecca8e2341c14ede9e397ddc39df5592 + name: 'Job blocked duration, median' + type: DEPENDENT + key: jenkins.job.blocked.duration.p50 + delay: '0' + value_type: FLOAT + units: s + description: 'The amount of time which jobs spend in the blocked state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.blocked.duration''].p50' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 859a7845f3d8483ba3378f7077509784 + name: 'Job blocked duration, p95' + type: DEPENDENT + key: jenkins.job.blocked.duration.p95 + delay: '0' + value_type: FLOAT + units: s + description: 'The amount of time which jobs spend in the blocked state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.blocked.duration''].p95' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: ca4e141c83344aeeb32d9ea2d9017cbf + name: 'Job blocked, m1 rate' + type: DEPENDENT + key: jenkins.job.blocked.m1.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs in the build queue enter the blocked state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.blocked.duration''].m1_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: d0a242007b424a0e80dbfb90577eaab2 + name: 'Job blocked, m5 rate' + type: DEPENDENT + key: jenkins.job.blocked.m5.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs in the build queue enter the blocked state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.blocked.duration''].m5_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 3c2ba170a89040089b226871512e237b + name: 'Job buildable duration, median' + type: DEPENDENT + key: jenkins.job.buildable.duration.p50 + delay: '0' + value_type: FLOAT + units: s + description: 'The amount of time which jobs spend in the buildable state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.buildable.duration''].p50' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 9047881efcb84822b7da852f4c66dbff + name: 'Job buildable duration, p95' + type: DEPENDENT + key: jenkins.job.buildable.duration.p95 + delay: '0' + value_type: FLOAT + units: s + description: 'The amount of time which jobs spend in the buildable state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.buildable.duration''].p95' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 1d8e643a0ddc44aa951ee516372e587b + name: 'Job buildable, m1 rate' + type: DEPENDENT + key: jenkins.job.buildable.m1.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs in the build queue enter the buildable state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.buildable.duration''].m1_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 0e1d712b9a854922b28e3ddf871bf7b1 + name: 'Job buildable, m5 rate' + type: DEPENDENT + key: jenkins.job.buildable.m5.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs in the build queue enter the buildable state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.buildable.duration''].m5_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: c0c0335fd8654cfaa9534c816fbee967 + name: 'Job building duration, median' + type: DEPENDENT + key: jenkins.job.building.duration.p50 + delay: '0' + value_type: FLOAT + units: s + description: 'The amount of time which jobs spend building.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.building.duration''].p50' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 61fb13ee0d0f4e1bb5fdab1ea35371ef + name: 'Job building duration, p95' + type: DEPENDENT + key: jenkins.job.building.duration.p95 + delay: '0' + value_type: FLOAT + units: s + description: 'The amount of time which jobs spend building.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.building.duration''].p95' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 08ebe2359c4f4134aaf610b50bcba8fe + name: 'Job building, m1 rate' + type: DEPENDENT + key: jenkins.job.building.m1.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs are built.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.building.duration''].m1_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 36f551fd55814000b76b5b63c05051d7 + name: 'Job building, m5 rate' + type: DEPENDENT + key: jenkins.job.building.m5.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs are built.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.building.duration''].m5_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 39bc5fdfbe884c72816d34045438ea7d + name: 'Jobs count' + type: DEPENDENT + key: jenkins.job.count.value + delay: '0' + description: 'The number of jobs in Jenkins.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.count.value''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: jobs + - uuid: af40fcdb50c545bd9b49a6f4b7a26fea + name: 'Job queuing duration, median' + type: DEPENDENT + key: jenkins.job.queuing.duration.p50 + delay: '0' + value_type: FLOAT + units: s + description: 'The total time which jobs spend in the build queue.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.queuing.duration''].p50' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: f797a4698f1b41f885a8cdd3d98924e2 + name: 'Job queuing duration, p95' + type: DEPENDENT + key: jenkins.job.queuing.duration.p95 + delay: '0' + value_type: FLOAT + units: s + description: 'The total time which jobs spend in the build queue.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.queuing.duration''].p95' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: d9f785e6f2e148ee98d922524f014037 + name: 'Job queuing, m1 rate' + type: DEPENDENT + key: jenkins.job.queuing.m1.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs are queued.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.queuing.duration''].m1_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 10c80e91b2214ab2b43458a1d65c3a18 + name: 'Job queuing, m5 rate' + type: DEPENDENT + key: jenkins.job.queuing.m5.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs are queued.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.queuing.duration''].m5_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: ff842a648bcc4aaa89f2200e0d4bb661 + name: 'Job scheduled, m1 rate' + type: DEPENDENT + key: jenkins.job.scheduled.m1.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs are scheduled. If a job is already in the queue and an identical request for scheduling the job is received then Jenkins will coalesce the two requests. This metric gives a reasonably pure measure of the load requirements of the Jenkins master as it is unaffected by the number of executors available to the system.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.scheduled''].m1_rate' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: jobs + - uuid: bc2de2ce8e9d474d8e2591d76adecabe + name: 'Jobs scheduled, m5 rate' + type: DEPENDENT + key: jenkins.job.scheduled.m5.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs are scheduled. If a job is already in the queue and an identical request for scheduling the job is received then Jenkins will coalesce the two requests. This metric gives a reasonably pure measure of the load requirements of the Jenkins master as it is unaffected by the number of executors available to the system.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.scheduled''].m5_rate' + master_item: + key: jenkins.meters.raw + tags: + - tag: component + value: jobs + - uuid: 975124750e3e4c969711185ea58bcb49 + name: 'Job total duration, median' + type: DEPENDENT + key: jenkins.job.total.duration.p50 + delay: '0' + value_type: FLOAT + units: s + description: 'The total time which jobs spend from entering the build queue to completing building.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.total.duration''].p50' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: dbc0aeedccb740b4a7c1b5f84eb2513b + name: 'Job total duration, p95' + type: DEPENDENT + key: jenkins.job.total.duration.p95 + delay: '0' + value_type: FLOAT + units: s + description: 'The total time which jobs spend from entering the build queue to completing building.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.total.duration''].p95' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 19c5a45a673c4af2be5808faf35a3892 + name: 'Job total, m1 rate' + type: DEPENDENT + key: jenkins.job.total.m1.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs are queued.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.total.duration''].m1_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 58067833af494a66b4a44bc25ac17a0e + name: 'Job total, m5 rate' + type: DEPENDENT + key: jenkins.job.total.m5.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs are queued.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.total.duration''].m5_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: dd7a1e8142f94ef099f6aa0ed1facce3 + name: 'Job waiting duration, median' + type: DEPENDENT + key: jenkins.job.waiting.duration.p50 + delay: '0' + value_type: FLOAT + units: s + description: 'The total amount of time that jobs spend in their quiet period.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.waiting.duration''].p50' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: bb339169024b4461a39261f3fe36de4f + name: 'Job waiting duration, p95' + type: DEPENDENT + key: jenkins.job.waiting.duration.p95 + delay: '0' + value_type: FLOAT + units: s + description: 'The total amount of time that jobs spend in their quiet period.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.waiting.duration''].p95' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 2d21f74757374b769ae8e76d4d7afa79 + name: 'Job waiting, m1 rate' + type: DEPENDENT + key: jenkins.job.waiting.m1.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs enter the quiet period.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.waiting.duration''].m1_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: 9e16580148964e9aae3a660b18721bee + name: 'Job waiting, m5 rate' + type: DEPENDENT + key: jenkins.job.waiting.m5.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which jobs enter the quiet period.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.job.waiting.duration''].m5_rate' + master_item: + key: jenkins.timers.raw + tags: + - tag: component + value: jobs + - uuid: dc47555812a0485e9d77da3e5a1c1227 + name: 'Get jobs info' + type: HTTP_AGENT + key: jenkins.job_info + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$JENKINS.USER}' + password: '{$JENKINS.API.TOKEN}' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + url: '{$JENKINS.URL}/api/json' + query_fields: + - name: tree + value: 'jobs[name,description,url,healthReport[score],lastBuild[number,result,duration,timestamp],lastSuccessfulBuild[number,result,duration,timestamp],lastFailedBuild[number,result,duration,timestamp]]' + tags: + - tag: component + value: jobs + - tag: component + value: raw + - uuid: dd8237e43a0d494394da664bc58a5fec + name: 'Get meters' + type: DEPENDENT + key: jenkins.meters.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw items for meters metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.meters + master_item: + key: jenkins.get_metrics + tags: + - tag: component + value: raw + - uuid: 930fa76b32484155ae3ec8964e3952a1 + name: 'Nodes count' + type: DEPENDENT + key: jenkins.node.count + delay: '0' + description: 'The number of build nodes available to Jenkins, both online and offline.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.node.count.value''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: nodes + - uuid: 440bdc39d2444b9e83cc863e34f3b416 + name: 'Nodes offline' + type: DEPENDENT + key: jenkins.node.offline + delay: '0' + description: 'The number of build nodes available to Jenkins but currently offline.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.node.offline.value''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: nodes + - uuid: 758ead9ea71646be882b9bff280ce4d6 + name: 'Nodes online' + type: DEPENDENT + key: jenkins.node.online + delay: '0' + description: 'The number of build nodes available to Jenkins and currently online.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.node.online.value''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: nodes + triggers: + - uuid: 4cee7d0f5faf4595a67c6c0e33153f4d + expression: 'last(/Jenkins by HTTP/jenkins.node.online)=0' + name: 'Jenkins: Service has no online nodes' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 21cad39b9c914516827b09d04716a71f + name: 'Service ping' + type: HTTP_AGENT + key: jenkins.ping + valuemap: + name: 'Service state' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: REGEX + parameters: + - '{$JENKINS.PING.REPLY}' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + url: '{$JENKINS.URL}/metrics/{$JENKINS.API.KEY}/ping' + tags: + - tag: component + value: health + triggers: + - uuid: ae12ac7aa5c54858a794eb8fc888f90c + expression: 'last(/Jenkins by HTTP/jenkins.ping)=0' + name: 'Jenkins: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 81609d18d2004fe28f9cb096cdb03995 + name: 'Plugins check' + type: DEPENDENT + key: jenkins.plugins + delay: '0' + description: 'Returns FAIL if any of the Jenkins plugins failed to start.' + valuemap: + name: 'Jenkins healthcheck' + preprocessing: + - type: JSONPATH + parameters: + - $.plugins.healthy + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.healthcheck + tags: + - tag: component + value: plugins + - uuid: e3fae3ddf1fa47db9925106098bc31eb + name: 'Plugins active' + type: DEPENDENT + key: jenkins.plugins.active + delay: '0' + description: 'The number of plugins in the Jenkins instance that started successfully.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.plugins.active''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: plugins + - uuid: e8a9f7bd98004939b75749c29227859c + name: 'Plugins failed' + type: DEPENDENT + key: jenkins.plugins.failed + delay: '0' + description: 'The number of plugins in the Jenkins instance that failed to start. A value other than 0 is typically indicative of a potential issue within the Jenkins installation that will either be solved by explicitly disabling the plugin(s) or by resolving the plugin dependency issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.plugins.failed''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: plugins + - uuid: 0b2ad285bc2b4ef5a01633d57099434c + name: 'Plugins inactive' + type: DEPENDENT + key: jenkins.plugins.inactive + delay: '0' + description: 'The number of plugins in the Jenkins instance that are not currently enabled.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.plugins.inactive''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: plugins + - uuid: d678faf0377a4024a930adcdb1c2db2f + name: 'Plugins check message' + type: DEPENDENT + key: jenkins.plugins.message + delay: '0' + value_type: CHAR + trends: '0' + description: 'The message of plugins health check.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''plugins''].message' + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: jenkins.healthcheck + tags: + - tag: component + value: plugins + - uuid: f1bf69d134a848178b21a050c830aa8a + name: 'Plugins with update' + type: DEPENDENT + key: jenkins.plugins.with_update + delay: '0' + description: 'The number of plugins in the Jenkins instance that have a newer version reported as available in the current Jenkins update center metadata held by Jenkins. This value is not indicative of an issue with Jenkins but high values can be used as a trigger to review the plugins with updates with a view to seeing whether those updates potentially contain fixes for issues that could be affecting your Jenkins instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.plugins.withUpdate''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: plugins + - uuid: a5b58789e54b43f896d4d7e64f8415d3 + name: 'Projects count' + type: DEPENDENT + key: jenkins.project.count + delay: '0' + description: 'The number of projects.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.project.count.value''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: application + - uuid: db758cf660c14d69b37f724545de7662 + name: 'Build queue, blocked' + type: DEPENDENT + key: jenkins.queue.blocked + delay: '0' + description: 'The number of jobs that are in the Jenkins build queue and currently in the blocked state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.queue.blocked.value''].value' + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: queue + - uuid: 1160d4150fa840b5a4628eeb6e8cdaab + name: 'Build queue, buildable' + type: DEPENDENT + key: jenkins.queue.buildable + delay: '0' + description: 'The number of jobs that are in the Jenkins build queue and currently in the blocked state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.queue.buildable.value''].value' + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: queue + - uuid: 456ddd17c4044d578a11d8cac80d229b + name: 'Build queue, pending' + type: DEPENDENT + key: jenkins.queue.pending + delay: '0' + description: 'The number of jobs that are in the Jenkins build queue and currently in the blocked state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.queue.pending.value''].value' + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: queue + - uuid: f99d731f466445dcb3aeda3f306a5de6 + name: 'Build queue, size' + type: DEPENDENT + key: jenkins.queue.size + delay: '0' + description: 'The number of jobs that are in the Jenkins build queue.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.queue.size.value''].value' + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: queue + - uuid: 90387bb3b3384adcafa66b4c9543d1ab + name: 'Build queue, stuck' + type: DEPENDENT + key: jenkins.queue.stuck + delay: '0' + description: 'The number of jobs that are in the Jenkins build queue and currently in the blocked state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.queue.stuck.value''].value' + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: queue + - uuid: 9c97e12efa624176b95aef3413aec1a8 + name: 'CPU Load' + type: DEPENDENT + key: jenkins.system.cpu.load + delay: '0' + value_type: FLOAT + description: 'The system load on the Jenkins master as reported by the JVM''s Operating System JMX bean. The calculation of system load is operating system dependent. Typically this is the sum of the number of processes that are currently running plus the number that are waiting to run. This is typically comparable against the number of CPU cores.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''system.cpu.load''].value' + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: cpu + - uuid: ca81bc28fbc14dbc9eb7b0fa6a46a65d + name: Uptime + type: DEPENDENT + key: jenkins.system.uptime + delay: '0' + units: s + description: 'The number of seconds since the Jenkins master JVM started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''vm.uptime.milliseconds''].value' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: application + triggers: + - uuid: 7d20942598a648ebb2e03f9acdb3e5e3 + expression: 'last(/Jenkins by HTTP/jenkins.system.uptime)<10m' + name: 'Jenkins: Host has been restarted' + event_name: 'Jenkins: {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: ea80ab8045a44f96a5cb2736c009258f + name: 'Temporary space check' + type: DEPENDENT + key: jenkins.temporary_space + delay: '0' + description: 'Returns FAIL if any of the Jenkins temporary space monitors are reporting the temporary space as less than the configured threshold.' + valuemap: + name: 'Jenkins healthcheck' + preprocessing: + - type: JSONPATH + parameters: + - '$[''temporary-space''].healthy' + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.healthcheck + tags: + - tag: component + value: disk + - uuid: d884c3a9662e48eeaf6c9ba50641a2cb + name: 'Temporary space check message' + type: DEPENDENT + key: jenkins.temporary_space.message + delay: '0' + value_type: CHAR + trends: '0' + description: 'The message will reference the first node which fails this check. There may be other nodes that fail the check, but this health check is designed to fail fast.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''temporary-space''].message' + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: jenkins.healthcheck + tags: + - tag: component + value: disk + - uuid: 39f474c3c6f841af9b14113df04bf078 + name: 'Thread deadlock check' + type: DEPENDENT + key: jenkins.thread_deadlock + delay: '0' + description: 'Returns FAIL if there are any deadlocked threads in the Jenkins master JVM.' + valuemap: + name: 'Jenkins healthcheck' + preprocessing: + - type: JSONPATH + parameters: + - '$[''thread-deadlock''].healthy' + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.healthcheck + tags: + - tag: component + value: threads + - uuid: 64f62df61b6b4f4c9963e09b827850e1 + name: 'Thread deadlock check message' + type: DEPENDENT + key: jenkins.thread_deadlock.message + delay: '0' + value_type: CHAR + trends: '0' + description: 'The message of thread deadlock health check.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''thread-deadlock''].message' + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: jenkins.healthcheck + tags: + - tag: component + value: system + - uuid: b988986e794d44c79629f865cc6f77e7 + name: 'Get timers' + type: DEPENDENT + key: jenkins.timers.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw items for timers metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.timers + master_item: + key: jenkins.get_metrics + tags: + - tag: component + value: raw + - uuid: ae836e5439cf494a9ed0681836da854e + name: Version + type: DEPENDENT + key: jenkins.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of Jenkins server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''jenkins.versions.core''].value' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: jenkins.gauges.raw + tags: + - tag: component + value: application + triggers: + - uuid: 3dd66b51ed1b4fc2a250daf3e9999e4f + expression: 'last(/Jenkins by HTTP/jenkins.version,#1)<>last(/Jenkins by HTTP/jenkins.version,#2) and length(last(/Jenkins by HTTP/jenkins.version))>0' + name: 'Jenkins: Version has changed' + event_name: 'Jenkins: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Jenkins version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: eb3e35534745476c8b205acb88382c77 + name: 'Computers discovery' + type: HTTP_AGENT + key: jenkins.computers + delay: 1h + authtype: BASIC + username: '{$JENKINS.USER}' + password: '{$JENKINS.API.TOKEN}' + item_prototypes: + - uuid: fe0191db274944699107010f7f7c8091 + name: 'Computer [{#DISPLAY_NAME}]: Available physical memory' + type: DEPENDENT + key: 'jenkins.computer.available_physical_memory[{#DISPLAY_NAME}]' + delay: '0' + units: B + description: 'The total physical memory of the system, available bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.monitorData[''hudson.node_monitors.SwapSpaceMonitor''].availablePhysicalMemory' + error_handler: DISCARD_VALUE + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: component + value: memory + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: 4d00cdff0ed0442ab419754264d78ec9 + name: 'Computer [{#DISPLAY_NAME}]: Available swap space' + type: DEPENDENT + key: 'jenkins.computer.available_swap_space[{#DISPLAY_NAME}]' + delay: '0' + units: B + description: 'Available swap space in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.monitorData[''hudson.node_monitors.SwapSpaceMonitor''].availableSwapSpace' + error_handler: DISCARD_VALUE + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: component + value: memory + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: ff5a78519c834902ae607832b67f2558 + name: 'Computer [{#DISPLAY_NAME}]: Clock difference' + type: DEPENDENT + key: 'jenkins.computer.clock_difference[{#DISPLAY_NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'The clock difference between the master and nodes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.monitorData[''hudson.node_monitors.ClockMonitor''].diff' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: 4dcf897c9c2c4ce58483ef6de6786000 + name: 'Computer [{#DISPLAY_NAME}]: Available disk space' + type: DEPENDENT + key: 'jenkins.computer.disk_space[{#DISPLAY_NAME}]' + delay: '0' + units: B + description: 'The available disk space of $JENKINS_HOME on agent.' + preprocessing: + - type: JSONPATH + parameters: + - '$.monitorData[''hudson.node_monitors.DiskSpaceMonitor''].size' + error_handler: DISCARD_VALUE + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: component + value: disk + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: fad90db95f69491da5f9af0967995021 + name: 'Computer [{#DISPLAY_NAME}]: Get computer' + type: DEPENDENT + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for a computer.' + preprocessing: + - type: JSONPATH + parameters: + - '$.computer.[?(@.displayName == "{#DISPLAY_NAME}")].first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: jenkins.computer_info + tags: + - tag: component + value: computers + - tag: component + value: raw + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: 1bca0941b2d24de5980eeb5cb3516b2c + name: 'Computer [{#DISPLAY_NAME}]: Idle' + type: DEPENDENT + key: 'jenkins.computer.idle[{#DISPLAY_NAME}]' + delay: '0' + description: 'Returns true if all the executors of this computer are idle.' + valuemap: + name: 'Computer state' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: 38a5eb0b4fb44b93b9f764edcd3f6c49 + name: 'Computer [{#DISPLAY_NAME}]: Executors' + type: DEPENDENT + key: 'jenkins.computer.numExecutors[{#DISPLAY_NAME}]' + delay: '0' + description: 'The maximum number of concurrent builds that Jenkins may perform on this node.' + preprocessing: + - type: JSONPATH + parameters: + - $.numExecutors + error_handler: DISCARD_VALUE + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: 8ddcfbf9b9d84fb290e9f30db7406ea1 + name: 'Computer [{#DISPLAY_NAME}]: Offline cause reason' + type: DEPENDENT + key: 'jenkins.computer.offline.reason[{#DISPLAY_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'If the computer was offline (either temporarily or not), will return the cause as a string (without user info). Empty string if the system was put offline without given a cause.' + preprocessing: + - type: JSONPATH + parameters: + - $.offlineCauseReason + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: a2068445af644089be8501da5b02144a + name: 'Computer [{#DISPLAY_NAME}]: Response time average' + type: DEPENDENT + key: 'jenkins.computer.response_time[{#DISPLAY_NAME}]' + delay: '0' + units: s + description: 'The round trip network response time from the master to the agent' + preprocessing: + - type: JSONPATH + parameters: + - '$.monitorData[''hudson.node_monitors.ResponseTimeMonitor''].average' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: b8af2fb1f6d646978739b9c44ea85a27 + name: 'Computer [{#DISPLAY_NAME}]: State' + type: DEPENDENT + key: 'jenkins.computer.state[{#DISPLAY_NAME}]' + delay: '0' + description: | + Represents the actual online/offline state. + Node description: {#DESCRIPTION} + valuemap: + name: 'Computer online' + preprocessing: + - type: JSONPATH + parameters: + - $.offline + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: f1318d38fa5a469a999265896e4546dd + name: 'Computer [{#DISPLAY_NAME}]: Temporarily offline' + type: DEPENDENT + key: 'jenkins.computer.temp_offline[{#DISPLAY_NAME}]' + delay: '0' + description: 'Returns true if this node is marked temporarily offline.' + valuemap: + name: 'Computer state' + preprocessing: + - type: JSONPATH + parameters: + - $.temporarilyOffline + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: 5704446ab4f34eb2bc33b8ed6d8da691 + name: 'Computer [{#DISPLAY_NAME}]: Available temp space' + type: DEPENDENT + key: 'jenkins.computer.temp_space[{#DISPLAY_NAME}]' + delay: '0' + units: B + description: 'The available disk space of the temporary directory. Java tools and tests/builds often create files in the temporary directory, and may not function properly if there''s no available space.' + preprocessing: + - type: JSONPATH + parameters: + - '$.monitorData[''hudson.node_monitors.TemporarySpaceMonitor''].size' + error_handler: DISCARD_VALUE + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: component + value: disk + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: 5c3dc14eb6264153a0cd7ddd8effb869 + name: 'Computer [{#DISPLAY_NAME}]: Total physical memory' + type: DEPENDENT + key: 'jenkins.computer.total_physical_memory[{#DISPLAY_NAME}]' + delay: '0' + units: B + description: 'Total physical memory of the system, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.monitorData[''hudson.node_monitors.SwapSpaceMonitor''].totalPhysicalMemory' + error_handler: DISCARD_VALUE + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: component + value: memory + - tag: computer + value: '{#DISPLAY_NAME}' + - uuid: c18b82a205d345fa9c1b92e59521735a + name: 'Computer [{#DISPLAY_NAME}]: Total swap space' + type: DEPENDENT + key: 'jenkins.computer.total_swap_space[{#DISPLAY_NAME}]' + delay: '0' + units: B + description: 'Total number of swap space in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.monitorData[''hudson.node_monitors.SwapSpaceMonitor''].totalSwapSpace' + error_handler: DISCARD_VALUE + master_item: + key: 'jenkins.computer.get[{#DISPLAY_NAME}]' + tags: + - tag: component + value: computers + - tag: component + value: memory + - tag: computer + value: '{#DISPLAY_NAME}' + trigger_prototypes: + - uuid: a2347420d1f14fd2b55cbb0865282268 + expression: 'last(/Jenkins by HTTP/jenkins.computer.state[{#DISPLAY_NAME}])=1 and length(last(/Jenkins by HTTP/jenkins.computer.offline.reason[{#DISPLAY_NAME}]))>0' + name: 'Jenkins: Computer [{#DISPLAY_NAME}]: Node is down' + priority: AVERAGE + description: 'Node down with reason: {{ITEM.LASTVALUE2}.regsub("(.*)",\1)}' + dependencies: + - name: 'Jenkins: Computer [{#DISPLAY_NAME}]: Node is temporarily offline' + expression: 'last(/Jenkins by HTTP/jenkins.computer.temp_offline[{#DISPLAY_NAME}])=1 and length(last(/Jenkins by HTTP/jenkins.computer.offline.reason[{#DISPLAY_NAME}]))>0' + - name: 'Jenkins: Service has no online nodes' + expression: 'last(/Jenkins by HTTP/jenkins.node.online)=0' + tags: + - tag: scope + value: availability + - uuid: bf04115784bc48ffa27d5d2d65176853 + expression: 'last(/Jenkins by HTTP/jenkins.computer.temp_offline[{#DISPLAY_NAME}])=1 and length(last(/Jenkins by HTTP/jenkins.computer.offline.reason[{#DISPLAY_NAME}]))>0' + name: 'Jenkins: Computer [{#DISPLAY_NAME}]: Node is temporarily offline' + priority: INFO + description: 'Node is temporarily Offline with reason: {{ITEM.LASTVALUE2}.regsub("(.*)",\1)}' + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 6296f12b13934006bd462eb4937ca248 + name: 'Computer [{#DISPLAY_NAME}]: Physical memory' + graph_items: + - color: 199C0D + item: + host: 'Jenkins by HTTP' + key: 'jenkins.computer.total_physical_memory[{#DISPLAY_NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Jenkins by HTTP' + key: 'jenkins.computer.available_physical_memory[{#DISPLAY_NAME}]' + - uuid: b8dcbbaf33d54a0fab3780a5fdd541e0 + name: 'Computer [{#DISPLAY_NAME}]: Swap space' + graph_items: + - color: 199C0D + item: + host: 'Jenkins by HTTP' + key: 'jenkins.computer.available_swap_space[{#DISPLAY_NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Jenkins by HTTP' + key: 'jenkins.computer.total_swap_space[{#DISPLAY_NAME}]' + url: '{$JENKINS.URL}/computer/api/json' + query_fields: + - name: tree + value: 'computer[description,displayName,monitorData]' + lld_macro_paths: + - lld_macro: '{#DESCRIPTION}' + path: $.description + - lld_macro: '{#DISPLAY_NAME}' + path: $.displayName + preprocessing: + - type: JSONPATH + parameters: + - '$.computer.[*]' + - uuid: 25949e5e452e4fa384ec4aa2088375aa + name: 'Jobs discovery' + type: HTTP_AGENT + key: jenkins.jobs + delay: 1h + authtype: BASIC + username: '{$JENKINS.USER}' + password: '{$JENKINS.API.TOKEN}' + item_prototypes: + - uuid: b2a99bad873046cda1d5b839aa43ba91 + name: 'Job [{#NAME}]: Health score' + type: DEPENDENT + key: 'jenkins.build.health[{#NAME}]' + delay: '0' + description: | + Represents health of project. A number between 0-100. + Job Description: {#DESCRIPTION} + Job Url: {#URL} + preprocessing: + - type: JSONPATH + parameters: + - $.healthReport..score.first() + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: health + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + trigger_prototypes: + - uuid: c440cd7d92884c9594c8616f1ac99d74 + expression: 'last(/Jenkins by HTTP/jenkins.build.health[{#NAME}])<{$JENKINS.JOB.HEALTH.SCORE.MIN.WARN}' + name: 'Jenkins: Job [{#NAME}]: Job is unhealthy' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: c82a3a59d2974e24bfa2489bd02fb10a + name: 'Job [{#NAME}]: Get job' + type: DEPENDENT + key: 'jenkins.job.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for a job.' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs.[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: jenkins.job_info + tags: + - tag: component + value: health + - tag: component + value: jobs + - tag: component + value: raw + - tag: job + value: '{#NAME}' + - uuid: a0fa8864c536408895f13758eacb486f + name: 'Job [{#NAME}]: Last Build duration' + type: DEPENDENT + key: 'jenkins.last_build.duration[{#NAME}]' + delay: '0' + units: s + description: 'Build duration (in seconds).' + preprocessing: + - type: JSONPATH + parameters: + - $.lastBuild.duration + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - uuid: 338020d76f8e4b28b1e1c02f97b889f4 + name: 'Job [{#NAME}]: Last Build number' + type: DEPENDENT + key: 'jenkins.last_build.number[{#NAME}]' + delay: '0' + description: 'Details: {#URL}/lastBuild/' + preprocessing: + - type: JSONPATH + parameters: + - $.lastBuild.number + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - uuid: a3a70807138548a29e9212f48f07946d + name: 'Job [{#NAME}]: Last Build result' + type: DEPENDENT + key: 'jenkins.last_build.result[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.lastBuild.result + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - uuid: d53a3f165052440098d087d4f2b868b6 + name: 'Job [{#NAME}]: Last Build timestamp' + type: DEPENDENT + key: 'jenkins.last_build.timestamp[{#NAME}]' + delay: '0' + units: unixtime + preprocessing: + - type: JSONPATH + parameters: + - $.lastBuild.timestamp + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - uuid: 907e48fadc6e4a04a076ca9368f73395 + name: 'Job [{#NAME}]: Last Failed Build duration' + type: DEPENDENT + key: 'jenkins.last_failed_build.duration[{#NAME}]' + delay: '0' + units: s + description: 'Build duration (in seconds).' + preprocessing: + - type: JSONPATH + parameters: + - $.lastFailedBuild.duration + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - uuid: 2e4afc599bf54ea29b1b8734f5aea121 + name: 'Job [{#NAME}]: Last Failed Build number' + type: DEPENDENT + key: 'jenkins.last_failed_build.number[{#NAME}]' + delay: '0' + description: 'Details: {#URL}/lastFailedBuild/' + preprocessing: + - type: JSONPATH + parameters: + - $.lastFailedBuild.number + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - uuid: e1885df4d7a440c0805207f0afb28cb5 + name: 'Job [{#NAME}]: Last Failed Build timestamp' + type: DEPENDENT + key: 'jenkins.last_failed_build.timestamp[{#NAME}]' + delay: '0' + units: unixtime + preprocessing: + - type: JSONPATH + parameters: + - $.lastFailedBuild.timestamp + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - uuid: d750d312fa424215931375963100217d + name: 'Job [{#NAME}]: Last Successful Build duration' + type: DEPENDENT + key: 'jenkins.last_successful_build.duration[{#NAME}]' + delay: '0' + units: s + description: 'Build duration (in seconds).' + preprocessing: + - type: JSONPATH + parameters: + - $.lastSuccessfulBuild.duration + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - uuid: 701c272b59c046e4948a7dc814374d59 + name: 'Job [{#NAME}]: Last Successful Build number' + type: DEPENDENT + key: 'jenkins.last_successful_build.number[{#NAME}]' + delay: '0' + description: 'Details: {#URL}/lastSuccessfulBuild/' + preprocessing: + - type: JSONPATH + parameters: + - $.lastSuccessfulBuild.number + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - uuid: 1adbf52ee3f946118f8a37cf2487262d + name: 'Job [{#NAME}]: Last Successful Build timestamp' + type: DEPENDENT + key: 'jenkins.last_successful_build.timestamp[{#NAME}]' + delay: '0' + units: unixtime + preprocessing: + - type: JSONPATH + parameters: + - $.lastSuccessfulBuild.timestamp + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'jenkins.job.get[{#NAME}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + url: '{$JENKINS.URL}/api/json' + query_fields: + - name: tree + value: 'jobs[name,description,url]' + lld_macro_paths: + - lld_macro: '{#DESCRIPTION}' + path: $.description + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#URL}' + path: $.url + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs.[*]' + tags: + - tag: class + value: application + - tag: target + value: jenkins + macros: + - macro: '{$JENKINS.API.KEY}' + description: 'API key to access Metrics Servlet' + - macro: '{$JENKINS.API.TOKEN}' + description: 'API token for HTTP BASIC authentication.' + - macro: '{$JENKINS.FILE_DESCRIPTORS.MAX.WARN}' + value: '85' + description: 'Maximum percentage of file descriptors usage alert threshold (for trigger expression).' + - macro: '{$JENKINS.JOB.HEALTH.SCORE.MIN.WARN}' + value: '50' + description: 'Minimum job''s health score (for trigger expression).' + - macro: '{$JENKINS.PING.REPLY}' + value: pong + description: 'Expected reply to the ping.' + - macro: '{$JENKINS.URL}' + description: 'Jenkins URL in the format `://:`' + - macro: '{$JENKINS.USER}' + value: zabbix + description: 'Username for HTTP BASIC authentication' + valuemaps: + - uuid: d1b719ea85464279bd473fcdb34008da + name: 'Computer online' + mappings: + - value: '0' + newvalue: Online + - value: '1' + newvalue: Offline + - uuid: 5313fc2399b24216945ed6416a00d55d + name: 'Computer state' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: a51dacf033d1423a886ca9dbfdf9b175 + name: 'Jenkins healthcheck' + mappings: + - value: '0' + newvalue: Failed + - value: '1' + newvalue: Ok + - uuid: b45a6b0148074212bf45d6bb311565c2 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: d79dc9c1dab142d18791172e6df0a4e9 + expression: 'last(/Jenkins by HTTP/jenkins.disk_space)=0 and length(last(/Jenkins by HTTP/jenkins.disk_space.message))>0' + name: 'Jenkins: Disk space is too low' + priority: WARNING + description: | + Jenkins disk space monitors are reporting the disk space as less than the configured threshold. The message will reference the first node which fails this check. + Health check message: {{ITEM.LASTVALUE2}.regsub("(.*)",\1)} + tags: + - tag: scope + value: capacity + - uuid: 121e23bd172d447cb975595685495a93 + expression: 'last(/Jenkins by HTTP/jenkins.plugins)=0 and length(last(/Jenkins by HTTP/jenkins.plugins.message))>0' + name: 'Jenkins: One or more Jenkins plugins failed to start' + priority: INFO + description: | + A failure is typically indicative of a potential issue within the Jenkins installation that will either be solved by explicitly disabling the failing plugin(s) or by resolving the corresponding plugin dependency issues. + Health check message: {{ITEM.LASTVALUE2}.regsub("(.*)",\1)} + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 34de8503a2c84fffb1beb701a4a991ab + expression: 'last(/Jenkins by HTTP/jenkins.temporary_space)=0 and length(last(/Jenkins by HTTP/jenkins.temporary_space.message))>0' + name: 'Jenkins: Temporary space is too low' + priority: WARNING + description: | + Jenkins temporary space monitors are reporting the temporary space as less than the configured threshold. The message will reference the first node which fails this check. + Health check message: {{ITEM.LASTVALUE2}.regsub("(.*)",\1)} + tags: + - tag: scope + value: capacity + - uuid: f0a09eb0743948bb8f52a4c28aa728c5 + expression: 'last(/Jenkins by HTTP/jenkins.thread_deadlock)=0 and length(last(/Jenkins by HTTP/jenkins.thread_deadlock.message))>0' + name: 'Jenkins: There are deadlocked threads in Jenkins master JVM' + priority: WARNING + description: | + There are any deadlocked threads in the Jenkins master JVM. + Health check message: {{ITEM.LASTVALUE2}.regsub('(.*)',\1)} + tags: + - tag: scope + value: performance + graphs: + - uuid: 3fdcf5d5d81f4bf3b854984917cb3d32 + name: 'Jenkins: Executors' + graph_items: + - color: 199C0D + item: + host: 'Jenkins by HTTP' + key: jenkins.executor.count + - sortorder: '1' + color: F63100 + item: + host: 'Jenkins by HTTP' + key: jenkins.executor.free + - sortorder: '2' + color: 00611C + item: + host: 'Jenkins by HTTP' + key: jenkins.executor.in_use + - uuid: 6278f5e2def74f2ba8e92872d26a8940 + name: 'Jenkins: Queues' + graph_items: + - color: 199C0D + item: + host: 'Jenkins by HTTP' + key: jenkins.queue.blocked + - sortorder: '1' + color: F63100 + item: + host: 'Jenkins by HTTP' + key: jenkins.queue.size + - sortorder: '2' + color: 00611C + item: + host: 'Jenkins by HTTP' + key: jenkins.queue.buildable + - sortorder: '3' + color: F7941D + item: + host: 'Jenkins by HTTP' + key: jenkins.queue.pending + - sortorder: '4' + color: FC6EA3 + item: + host: 'Jenkins by HTTP' + key: jenkins.queue.stuck diff --git a/Jira_Data_Center_by_JMX.yaml b/Jira_Data_Center_by_JMX.yaml new file mode 100644 index 0000000..ee77853 --- /dev/null +++ b/Jira_Data_Center_by_JMX.yaml @@ -0,0 +1,1950 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: a7f0c853c6634b1dacaaf43c2a0d9375 + template: 'Jira Data Center by JMX' + name: 'Jira Data Center by JMX' + description: | + This template is used for monitoring Jira Data Center health. It is designed for standalone operation for on-premises Jira installations. + + This template uses a single data source, JMX, which requires JMX RMI setup of your Jira application and Java Gateway setup on the Zabbix side. + If you need "Garbage collector" and "Web server" monitoring, add "Generic Java JMX" and "Apache Tomcat by JMX" templates on the same host. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Setup: + Metrics are collected by JMX. + 0. Deploy the Zabbix Java Gateway component ([instructions](https://www.zabbix.com/documentation/7.0/manual/concepts/java)). + 1. Enable and configure JMX access to Jira Data Center. See documentation for [instructions](https://confluence.atlassian.com/adminjiraserver/live-monitoring-using-the-jmx-interface-939707304.html). + 2. Assign the "Jira Data Center by JMX" template to the host with a JMX interface. + 2. If your Jira installation requires authentication for JMX, set the values in the host macros `{$JMX.USERNAME}` and `{$JMX.PASSWORD}`. + 3. (Optional) Set custom macro values and add macros with context for specific metrics following the macro description. + 4. (Optional) Assign the "Generic Java JMX" template for garbage collector monitoring. + 5. (Optional) Assign the "Apache Tomcat by JMX" template for web server monitoring. + + tested_on: + - Jira Data Center 9.14.1 + - Jira Data Center 9.12.4 + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 27334384618d4b2f91d700b188463a56 + name: 'License: Users: Get' + type: JMX + key: 'jmx.discovery[attributes,"com.atlassian.jira:type=jira.license"]' + history: '0' + value_type: TEXT + trends: '0' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'License data for the discovery rule.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value).data; + var result = {}; + + data.forEach(function(item) { + var attributes = item["{#JMXATTR}"].split("."); + var license = attributes[0].replace("jira-",""); + var property = attributes.slice(1).join('_'); + if (!result[license]) { + result[license] = {'properties': {} }; + } + + result[license]['properties'][property] = item["{#JMXVALUE}"]; + }); + + return JSON.stringify(result); + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: license + - tag: component + value: raw + - uuid: 11a89b91831b4b5d899bff63ba935cbb + name: 'DB: Connections: Limit' + type: JMX + key: 'jmx["com.atlassian.jira:name=BasicDataSource,connectionpool=connections",MaxTotal]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Total allowed database connection count.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: database + - uuid: f064dbd8781848c09184fb83a3a46097 + name: 'DB: Connections: Active' + type: JMX + key: 'jmx["com.atlassian.jira:name=BasicDataSource,connectionpool=connections",NumActive]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Active database connection count.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: database + - uuid: 2928e1e3b68940938a0b107eb5d72b95 + name: 'DB: Reads' + type: JMX + key: 'jmx["com.atlassian.jira:type=db.reads",invocation\.count]' + value_type: FLOAT + units: rps + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: | + Database read operations from Jira per second. + Units: rps - read operations per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: database + - uuid: ad5c16fa48864dc6b625a23f95ecf07a + name: 'DB: Writes' + type: JMX + key: 'jmx["com.atlassian.jira:type=db.writes",invocation\.count]' + value_type: FLOAT + units: wps + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: | + Database write operations from Jira per second. + Units: wps - write operations per second. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: database + - uuid: 942556b043734986a2c5e261e97d5b1c + name: 'Entity: Attachments' + type: JMX + key: 'jmx["com.atlassian.jira:type=entity.attachments.total",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The number of attachments.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + - tag: component + value: entity + - uuid: 7aa003c53cb14555a88ee02e804ca45f + name: 'Entity: Components' + type: JMX + key: 'jmx["com.atlassian.jira:type=entity.components.total",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The number of components.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + - uuid: 8ddf2cb59bb44d8a8fe7f2ca9e44ad20 + name: 'Entity: Custom fields' + type: JMX + key: 'jmx["com.atlassian.jira:type=entity.customfields.total",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The number of custom fields.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + - uuid: 2c8d303953ed44b6815129a6a77ee5c6 + name: 'Entity: Filters' + type: JMX + key: 'jmx["com.atlassian.jira:type=entity.filters.total",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The number of filters.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + - uuid: 5d9a669481ab448eb5c9e0b64f3517b0 + name: 'Entity: Issues' + type: JMX + key: 'jmx["com.atlassian.jira:type=entity.issues.total",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The number of issues.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + - tag: component + value: entity + - tag: component + value: issue + - uuid: b6a8a8ed8a9242858560b0743cc955aa + name: 'Entity: Versions created' + type: JMX + key: 'jmx["com.atlassian.jira:type=entity.versions.total",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The number of versions created.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + - uuid: 2152f7eb0bff4c9888e131634b770673 + name: 'Issue: Created per minute' + type: JMX + key: 'jmx["com.atlassian.jira:type=issue.created.count",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Issues created per minute.' + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + - tag: component + value: issue + - uuid: 25fdfd0e3dce4d95ac2cdaed41ba5fb6 + name: 'Issue: Search per minute' + type: JMX + key: 'jmx["com.atlassian.jira:type=issue.search.count",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Issue searches performed per minute.' + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + - tag: component + value: issue + - uuid: 060d5f5ccf3a4ab197e4b95d9eb88b17 + name: 'Issue: Updates per minute' + type: JMX + key: 'jmx["com.atlassian.jira:type=issue.updated.count",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Issue updates performed per minute.' + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + - tag: component + value: issue + - uuid: bb565c20d5ad4cf1a94aea5966ec12fa + name: 'DB: Connections: Failed per minute' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=failures,name=counter",Count]' + delay: 0;m0-59 + value_type: FLOAT + units: fpm + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: | + The count of database connection failures registered in one minute. + Units: fpm - fails per minute. + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: database + - uuid: 8fb52b3e150a4f5fb84e8b527aaaf5a5 + name: 'DB: Connections: Latency' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=latency,name=value",Value]' + value_type: FLOAT + units: ms + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The latest measure of latency when querying the database.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: database + - uuid: 2d22d7c78abe40b8a82fb70a8d1091d1 + name: 'DB: Pool: Connections: Active' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=pool,category03=numActive,name=value",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Active connection count of the database pool.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: database + - uuid: c18d258cdb8f420e8cb18a9e6e7c2bf8 + name: 'DB: Pool: Connections: Idle' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=pool,category03=numIdle,name=value",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Idle connection count of the database pool.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: database + triggers: + - uuid: 5fd9800d1c3641c584e32106ea61e33d + expression: 'min(/Jira Data Center by JMX/jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=pool,category03=numIdle,name=value",Value],5m)<=0' + name: 'Jira Data Center: DB: Pool: Out of idle connections' + opdata: 'Idle connections: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Fires when out of idle connections in database pool for 5 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: fc7870021dc04bf499db8834be67987e + name: 'DB: Connections: State' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=state,name=value",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The state of the database connection.' + valuemap: + name: 'Connection availability' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: database + triggers: + - uuid: 524b7cb0ac9940ad80e11f1c93f1d7df + expression: 'max(/Jira Data Center by JMX/jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=state,name=value",Value],3m)=0' + name: 'Jira Data Center: DB: Connection lost' + opdata: 'Connection state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Database connection lost' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 25d810c7fd5e4116a8e2323b7a2537a0 + name: 'HTTP: Pool: Connections: Active' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=http,category01=connection,category02=pool,category03=numActive,name=value",Value]' + value_type: FLOAT + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The latest measure of the number of active connections in the HTTP connection pool.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: http + - uuid: b244d220b7e24d48913f4e8e1b490732 + name: 'HTTP: Pool: Connections: Idle' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=http,category01=connection,category02=pool,category03=numIdle,name=value",Value]' + value_type: FLOAT + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The latest measure of the number of idle connections in the HTTP connection pool.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: http + triggers: + - uuid: 7f0fde38527c4bb2930a1e57343c4422 + expression: 'min(/Jira Data Center by JMX/jmx["com.atlassian.jira:type=metrics,category00=http,category01=connection,category02=pool,category03=numIdle,name=value",Value],5m)<=0' + name: 'Jira Data Center: HTTP: Pool: Out of idle connections' + opdata: 'active {ITEM.LASTVALUE1} from {ITEM.LASTVALUE2}' + priority: WARNING + description: 'All available connections are utilized. It can cause outages for users as the system is unable to serve their requests.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - uuid: 195bc0648f6445bbbe205a5869383c68 + name: 'HTTP: Sessions: Active' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=http,category01=connection,category02=sessions,category03=active,name=value",Value]' + value_type: FLOAT + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The latest measure of the number of active user sessions.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: http + - uuid: 0d5a76f579284baf9eaa47180ed2c3fa + name: 'HTTP: Requests per minute' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=http,category01=requests,name=value",Value]' + value_type: FLOAT + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The latest measure of the total number of HTTP requests per minute.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: http + - uuid: 7029cc0f375740c79790b410b92579a1 + name: 'Mail: Queue: Processing state' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=jobRunning,name=value",Value]' + value_type: FLOAT + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The latest indicator of the state of a mail queue job.' + valuemap: + name: 'Mail sender' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: mail + - uuid: 27f65a6cc7a147c2a95d3348db0cc9eb + name: 'Mail: Sent per minute' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numEmailsSentPerMin,name=value",Value]' + value_type: FLOAT + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The latest measure of the number of emails sent by the SMTP server per minute.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: mail + - uuid: ec7e12f99490496c814e9000108ec8c9 + name: 'Mail: Queue: Error' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numErrors,name=value",Value]' + value_type: FLOAT + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The latest measure of the number of items in an error mail queue.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: mail + triggers: + - uuid: f0940aecb8f24e788dae0e62c81a0c65 + expression: 'max(/Jira Data Center by JMX/jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numErrors,name=value",Value],5m)>0' + name: 'Jira Data Center: Mail: Error queue contains one or more items' + priority: WARNING + description: | + A mail queue attempts to resend items up to 10 times. If the operation fails for the 11th time, the items are put into an error mail queue. + You can remove items from the error mail queue in one of the following ways: + - Manually clear the whole error queue. + - Manually resend all items from the error queue to a mail queue. + You should pay attention to the cases where an error mail queue item gets back to an error mail queue after you resend the items manually. These cases might indicate permanent performance issues. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 67789113243b4689af58e42d0a127878 + name: 'Mail: Queue' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numItems,name=value",Value]' + value_type: FLOAT + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The latest measure of the number of items in a mail queue.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: mail + triggers: + - uuid: 6fc20e23f96f4bf8a856d1c86679cbd5 + expression: 'min(/Jira Data Center by JMX/jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numItems,name=value",Value],30m)>0' + name: 'Jira Data Center: Mail: Queue: Doesn’t empty over an extended period' + priority: WARNING + description: 'Might indicate SMTP performance or connection problems.' + manual_close: 'YES' + dependencies: + - name: 'Jira Data Center: Mail: Queue job is not running' + expression: 'max(/Jira Data Center by JMX/jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=jobRunning,name=value",Value],15m)=0 and min(/Jira Data Center by JMX/jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numItems,name=value",Value],15m)>0' + tags: + - tag: scope + value: performance + - uuid: 3d311c2e46af4c98b11f5f1a50b5318e + name: 'Mail: Processed per minute' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numItemsProcessedPerMin,name=value",Value]' + value_type: FLOAT + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The latest measure of the number of items processed by a mail queue per minute.' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: mail + - uuid: 6a81cf33cc834115b352324a18355368 + name: 'Quicksearch: Concurrent searches' + type: JMX + key: 'jmx["com.atlassian.jira:type=quicksearch.concurrent.search",Value]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The number of concurrent searches that are being performed in real-time by using the quick search.' + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: application + discovery_rules: + - uuid: 6b671426094e4268b48f51eb97ddd8bf + name: 'Storage discovery' + type: JMX + key: 'jmx.discovery[beans,"com.atlassian.jira:type=metrics,category00=home,category01=*,category02=write,category03=latency,*,name=value"]' + delay: 1h + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXCATEGORY01}' + value: '{$JIRA_DC.LLD.FILTER.MATCHES.HOMEFOLDERS}' + formulaid: A + - macro: '{#JMXCATEGORY01}' + value: '{$JIRA_DC.LLD.FILTER.NOT.MATCHES.HOMEFOLDERS}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of the Jira storage metrics.' + item_prototypes: + - uuid: 933c9c8b11e848f88775ee9b54f8d292 + name: 'Storage [{#JMXCATEGORY01}]: Latency' + type: JMX + key: 'jmx["{#JMXOBJ}",Value]' + delay: 15m + value_type: FLOAT + units: s + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'The median latency of writing a small file (~30 bytes) to `{#JMXCATEGORY01}`.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: storage + trigger_prototypes: + - uuid: 7aaf19b9466942f7a2f4aed1fb5d5973 + expression: 'min(/Jira Data Center by JMX/jmx["{#JMXOBJ}",Value],5m)>{$JIRA_DC.STORAGE.LATENCY.WARN:"{#JMXCATEGORY01}"}' + name: 'Jira Data Center: Storage [{#JMXCATEGORY01}]: Slow performance' + event_name: 'Jira Data Center: Storage [{#JMXCATEGORY01}]: Slow performance (latency > {$JIRA_DC.STORAGE.LATENCY.WARN:"{#JMXCATEGORY01}"}s)' + opdata: 'Average latency: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Fires when latency grows above the threshold: `{$JIRA_DC.STORAGE.LATENCY.WARN:"{#JMXCATEGORY01}"}`s' + manual_close: 'YES' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 5f5f61fe9bc848be87789a8ac6e2fbb2 + name: 'Storage [{#JMXCATEGORY01}]: Latency' + graph_items: + - color: 199C0D + item: + host: 'Jira Data Center by JMX' + key: 'jmx["{#JMXOBJ}",Value]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: 886f8b2c518d4f3bb3d4441e29bf13fc + name: 'Indexing latency discovery' + type: JMX + key: 'jmx.discovery[beans,"com.atlassian.jira:type=metrics,category00=indexing,name=*"]' + delay: 1h + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXNAME}' + value: '{$JIRA_DC.LLD.FILTER.MATCHES.INDEXING}' + formulaid: A + - macro: '{#JMXNAME}' + value: '{$JIRA_DC.LLD.FILTER.NOT.MATCHES.INDEXING}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of the Jira indexing metrics.' + item_prototypes: + - uuid: 2b02e3232de34ae9803f80ac94ade79c + name: 'Indexing [{#JMXNAME}]: Latency' + type: JMX + key: 'jmx["com.atlassian.jira:type=metrics,category00=indexing,name={#JMXNAME}",Mean]' + delay: 15m + value_type: FLOAT + units: s + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Average time spent on indexing operations.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: indexing + trigger_prototypes: + - uuid: 73c679de66e941fcbabe54cb9807fcf4 + expression: 'min(/Jira Data Center by JMX/jmx["com.atlassian.jira:type=metrics,category00=indexing,name={#JMXNAME}",Mean],5m)>{$JIRA_DC.INDEXING.LATENCY.WARN:"{#JMXNAME}"}' + name: 'Jira Data Center: Indexing [{#JMXNAME}]: Slow performance' + event_name: 'Jira Data Center: Indexing [{#JMXNAME}]: Slow performance (latency > {$JIRA_DC.INDEXING.LATENCY.WARN:"{#JMXNAME}"}s)' + opdata: 'Average latency: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Fires when latency grows above the threshold: `{$JIRA_DC.INDEXING.LATENCY.WARN:"{#JMXNAME}"}`s' + manual_close: 'YES' + tags: + - tag: scope + value: performance + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: 70db70727f824102b769a652713432ad + name: 'Issue latency discovery' + type: JMX + key: 'jmx.discovery[beans,"com.atlassian.jira:type=metrics,category00=issue,name=*"]' + delay: 1h + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXNAME}' + value: '{$JIRA_DC.LLD.FILTER.MATCHES.ISSUE}' + formulaid: A + - macro: '{#JMXNAME}' + value: '{$JIRA_DC.LLD.FILTER.NOT.MATCHES.ISSUE}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of the Jira issue latency metrics.' + item_prototypes: + - uuid: da6d68fa14f24f58bcbe1157b9818321 + name: 'Issue [{#JMXNAME}]: Latency' + type: JMX + key: 'jmx["{#JMXOBJ}",Mean]' + delay: 15m + value_type: FLOAT + units: s + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Average time spent on issue `{#JMXNAME}` operations.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: issue + trigger_prototypes: + - uuid: 5df1f61ce5d24204bcef4b8f021ea98a + expression: 'min(/Jira Data Center by JMX/jmx["{#JMXOBJ}",Mean],5m)>{$JIRA_DC.ISSUE.LATENCY.WARN:"{#JMXNAME}"}' + name: 'Jira Data Center: Issue [{#JMXNAME}]: Slow operations' + event_name: 'Jira Data Center: Issue [{#JMXNAME}]: Slow operations (longer then {$JIRA_DC.ISSUE.LATENCY.WARN:"{#JMXNAME}"}s)' + opdata: 'Average latency: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Fires when latency grows above the threshold: `{$JIRA_DC.ISSUE.LATENCY.WARN:"{#JMXNAME}"}`s' + manual_close: 'YES' + tags: + - tag: scope + value: performance + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: 2bd3e8ce78f84ccba599137b0e0ab6a0 + name: 'Mail server discovery' + type: JMX + key: 'jmx.discovery[beans,"com.atlassian.jira:type=metrics,category00=mail,category01=*,category02=connection,category03=state,name=*"]' + delay: 1h + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#JMXCATEGORY01}' + value: '{$JIRA_DC.LLD.FILTER.MATCHES.MAIL}' + formulaid: A + - macro: '{#JMXCATEGORY01}' + value: '{$JIRA_DC.LLD.FILTER.NOT.MATCHES.MAIL}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of the Jira connected mail servers.' + item_prototypes: + - uuid: 5281bee6b829433a875c0e026d805206 + name: 'Mail [{#JMXCATEGORY01},{#JMXNAME}]: Connection state' + type: JMX + key: 'jmx["{#JMXOBJ}",Connected]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Shows connection state of Jira to discovered mail server: `{#JMXCATEGORY01}-{#JMXNAME}`' + valuemap: + name: 'Connection availability' + preprocessing: + - type: BOOL_TO_DECIMAL + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: mail + - tag: mail + value: '{#JMXCATEGORY01}-{#JMXNAME}' + trigger_prototypes: + - uuid: a28f2598b457479299d4fbf917d8189d + expression: 'max(/Jira Data Center by JMX/jmx["{#JMXOBJ}",Connected],5m)=0' + name: 'Jira Data Center: Mail [{#JMXCATEGORY01}-{#JMXNAME}]: Server disconnected' + opdata: 'Server state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Trigger is fired when discovered mail server `{#JMXCATEGORY01}-{#JMXNAME}` becomes unavailable' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 949854436d6542f9a859a65cec20572d + name: 'Mail [{#JMXCATEGORY01},{#JMXNAME}]: Failures per minute' + type: JMX + key: 'jmx["{#JMXOBJ}",TotalFailures]' + username: '{$JMX.USER}' + password: '{$JMX.PASSWORD}' + description: 'Count of failed connections to discovered mail server `{#JMXCATEGORY01}-{#JMXNAME}` per minute' + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + tags: + - tag: component + value: mail + - tag: mail + value: '{#JMXCATEGORY01}-{#JMXNAME}' + graph_prototypes: + - uuid: f51ddde64f414715bb5074f96cee8768 + name: 'Mail [{#JMXCATEGORY01},{#JMXNAME}]: State and failures' + graph_items: + - drawtype: FILLED_REGION + color: 199C0D + item: + host: 'Jira Data Center by JMX' + key: 'jmx["{#JMXOBJ}",Connected]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + yaxisside: RIGHT + item: + host: 'Jira Data Center by JMX' + key: 'jmx["{#JMXOBJ}",TotalFailures]' + jmx_endpoint: 'service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi' + - uuid: 750f1986954f4cfda847bc66ecbfd910 + name: 'License discovery' + type: DEPENDENT + key: jmx.license.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#LICENSE.TYPE}' + value: '{$JIRA_DC.LLD.FILTER.MATCHES.LICENSE}' + formulaid: A + - macro: '{#LICENSE.TYPE}' + value: '{$JIRA_DC.LLD.FILTER.NOT.MATCHES.LICENSE}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of the Jira licenses.' + item_prototypes: + - uuid: e2f1224ac6de4a24a50bf6b4356fdd25 + name: 'License [{#LICENSE.TYPE}]: Users: Current' + type: DEPENDENT + key: 'jmx.license.get.user.current["{#LICENSE.TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'Current user count for `{#LICENSE.TYPE}`.' + valuemap: + name: 'Limit mapping' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#LICENSE.TYPE}.properties.current_user_count' + master_item: + key: 'jmx.discovery[attributes,"com.atlassian.jira:type=jira.license"]' + tags: + - tag: component + value: application + - tag: component + value: license + - tag: license + value: '{#LICENSE.TYPE}' + - uuid: 77e789c5d8484367997f45ce24b65cd9 + name: 'License [{#LICENSE.TYPE}]: Users: Maximum' + type: DEPENDENT + key: 'jmx.license.get.user.max["{#LICENSE.TYPE}"]' + delay: '0' + value_type: FLOAT + description: | + User count limit for `{#LICENSE.TYPE}`. + `-1` = No limits for the license type. + valuemap: + name: 'Limit mapping' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#LICENSE.TYPE}.properties.max_user_count' + master_item: + key: 'jmx.discovery[attributes,"com.atlassian.jira:type=jira.license"]' + tags: + - tag: component + value: application + - tag: component + value: license + - tag: license + value: '{#LICENSE.TYPE}' + trigger_prototypes: + - uuid: 26439a9cf50f4dfea02e5c763feee50c + expression: 'last(/Jira Data Center by JMX/jmx.license.get.user.max["{#LICENSE.TYPE}"])>=0 * (100*last(/Jira Data Center by JMX/jmx.license.get.user.current["{#LICENSE.TYPE}"])/last(/Jira Data Center by JMX/jmx.license.get.user.max["{#LICENSE.TYPE}"])>{$JIRA_DC.LICENSE.USER.CAPACITY.WARN:"{#LICENSE.TYPE}"})' + name: 'Jira Data Center: License [{#LICENSE.TYPE}]: Low user capacity' + event_name: 'Jira Data Center: License [{#LICENSE.TYPE}]: Low user capacity (created > {$JIRA_DC.LICENSE.USER.CAPACITY.WARN:"{#LICENSE.TYPE}"}%)' + opdata: 'created {ITEM.LASTVALUE1} from {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Fires when relative user quantity grows above the threshold: `{$JIRA_DC.LICENSE.USER.CAPACITY.WARN:"{#LICENSE.TYPE}"}`%' + manual_close: 'YES' + dependencies: + - name: 'Jira Data Center: License [{#LICENSE.TYPE}]: User count reached the limit' + expression: 'last(/Jira Data Center by JMX/jmx.license.get.user.max["{#LICENSE.TYPE}"])>=0 * ((last(/Jira Data Center by JMX/jmx.license.get.user.max["{#LICENSE.TYPE}"])-last(/Jira Data Center by JMX/jmx.license.get.user.current["{#LICENSE.TYPE}"]))<=0)' + tags: + - tag: scope + value: capacity + - uuid: 62e93342b6a64b999d485eab28c55bf1 + expression: 'last(/Jira Data Center by JMX/jmx.license.get.user.max["{#LICENSE.TYPE}"])>=0 * ((last(/Jira Data Center by JMX/jmx.license.get.user.max["{#LICENSE.TYPE}"])-last(/Jira Data Center by JMX/jmx.license.get.user.current["{#LICENSE.TYPE}"]))<=0)' + name: 'Jira Data Center: License [{#LICENSE.TYPE}]: User count reached the limit' + opdata: 'created {ITEM.LASTVALUE1} from {ITEM.LASTVALUE2}' + priority: AVERAGE + description: | + Fires when user quantity reaches the limit. + It won't fire if the limit is disabled (set to `-1`). + manual_close: 'YES' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: c79af894d8b944f6bbedf86dfe1a5e84 + name: 'License [{#LICENSE.TYPE}]: Users' + ymin_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + item: + host: 'Jira Data Center by JMX' + key: 'jmx.license.get.user.current["{#LICENSE.TYPE}"]' + - sortorder: '1' + drawtype: FILLED_REGION + color: 199C0D + item: + host: 'Jira Data Center by JMX' + key: 'jmx.license.get.user.max["{#LICENSE.TYPE}"]' + master_item: + key: 'jmx.discovery[attributes,"com.atlassian.jira:type=jira.license"]' + lld_macro_paths: + - lld_macro: '{#LICENSE.PROPERTIES}' + path: $.properties + - lld_macro: '{#LICENSE.TYPE}' + path: $.license + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + var lld_form = []; + + for (var key in data) { + lld_form.push({"license": key}); + } + return JSON.stringify(lld_form); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: jira-datacenter + macros: + - macro: '{$JIRA_DC.DB.CONNECTION.USAGE.WARN}' + value: '80' + description: 'Warning threshold for database connections usage (%).' + - macro: '{$JIRA_DC.INDEXING.LATENCY.WARN}' + value: '5' + description: 'Warning threshold for indexing operation latency (in seconds).' + - macro: '{$JIRA_DC.ISSUE.LATENCY.WARN}' + value: '5' + description: 'Warning threshold for issue operation latency (in seconds).' + - macro: '{$JIRA_DC.LICENSE.USER.CAPACITY.WARN}' + value: '80' + description: 'User capacity warning threshold (%).' + - macro: '{$JIRA_DC.LLD.FILTER.MATCHES.HOMEFOLDERS}' + value: local|share + description: 'Used for storage metric discovery.' + - macro: '{$JIRA_DC.LLD.FILTER.MATCHES.INDEXING}' + value: '.*' + description: 'Used for indexing metric discovery.' + - macro: '{$JIRA_DC.LLD.FILTER.MATCHES.ISSUE}' + value: '.*' + description: 'Used for issue discovery.' + - macro: '{$JIRA_DC.LLD.FILTER.MATCHES.LICENSE}' + value: '.*' + description: 'Used for license discovery.' + - macro: '{$JIRA_DC.LLD.FILTER.MATCHES.MAIL}' + value: '.*' + description: 'Used for mail server connection metric discovery.' + - macro: '{$JIRA_DC.LLD.FILTER.NOT.MATCHES.HOMEFOLDERS}' + value: 'NO MATCH' + description: 'Used for storage metric discovery.' + - macro: '{$JIRA_DC.LLD.FILTER.NOT.MATCHES.INDEXING}' + value: 'NO MATCH' + description: 'Used for indexing metric discovery.' + - macro: '{$JIRA_DC.LLD.FILTER.NOT.MATCHES.ISSUE}' + value: 'NO MATCH' + description: 'Used for issue discovery.' + - macro: '{$JIRA_DC.LLD.FILTER.NOT.MATCHES.LICENSE}' + value: 'NO MATCH' + description: 'Used for license discovery.' + - macro: '{$JIRA_DC.LLD.FILTER.NOT.MATCHES.MAIL}' + value: 'NO MATCH' + description: 'Used for mail server connection metric discovery.' + - macro: '{$JIRA_DC.STORAGE.LATENCY.WARN}' + value: '5' + description: 'Warning threshold for storage write operation latency (in seconds).' + - macro: '{$JMX.PASSWORD}' + type: SECRET_TEXT + description: 'Password for JMX.' + - macro: '{$JMX.USER}' + description: 'User for JMX.' + dashboards: + - uuid: 0917c28fa1874a088f03a15e60c96c57 + name: 'Jira: Data Center' + pages: + - name: Application + widgets: + - type: item + name: 'Jira: Issue count' + width: '12' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=entity.issues.total",Value]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: svggraph + name: 'Jira: Issue: Operations per minute' + 'y': '3' + width: '24' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00FF00 + - type: STRING + name: ds.0.color.1 + value: 0000FF + - type: STRING + name: ds.0.color.2 + value: FFBF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=issue.created.count",Value]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=issue.updated.count",Value]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=issue.search.count",Value]' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAEAA + - type: item + name: 'Jira: Attachment count' + x: '12' + width: '12' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=entity.attachments.total",Value]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Jira: Filter count' + x: '24' + width: '12' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=entity.filters.total",Value]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: svggraph + name: 'Jira: Issue: Latency' + x: '24' + 'y': '3' + width: '24' + height: '6' + fields: + - type: INTEGER + name: ds.0.aggregate_function + value: '3' + - type: STRING + name: ds.0.aggregate_interval + value: 30m + - type: STRING + name: ds.0.color + value: FFBF00 + - type: STRING + name: ds.0.items.0 + value: 'Issue [*]: Latency' + - type: INTEGER + name: ds.0.type + value: '3' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '5' + - type: STRING + name: or.0.color + value: 00FF00 + - type: STRING + name: or.0.items.0 + value: '*Create*' + - type: STRING + name: or.1.color + value: 0000FF + - type: STRING + name: or.1.items.0 + value: '*Update*' + - type: STRING + name: or.2.color + value: FF0000 + - type: STRING + name: or.2.items.0 + value: '*Delete*' + - type: STRING + name: or.3.color + value: FFBF00 + - type: STRING + name: or.3.items.0 + value: '*ReIndex*' + - type: STRING + name: or.4.color + value: 4000FF + - type: STRING + name: or.4.items.0 + value: '*DeIndex*' + - type: STRING + name: reference + value: AAEAC + - type: INTEGER + name: show_problems + value: '1' + - type: item + name: 'Jira: Component count' + x: '36' + width: '12' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=entity.components.total",Value]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Jira: Custom field count' + x: '48' + width: '12' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=entity.customfields.total",Value]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: svggraph + name: 'Jira: Quicksearch: Concurrent searches' + x: '48' + 'y': '3' + width: '24' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FFBF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=quicksearch.concurrent.search",Value]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAEAB + - type: item + name: 'Jira: Version count' + x: '60' + width: '12' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=entity.versions.total",Value]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - name: Database + widgets: + - type: item + name: 'Jira: DB: Connection state' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=state,name=value",Value]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: STRING + name: thresholds.0.color + value: 4CAF50 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: EF5350 + - type: STRING + name: thresholds.1.threshold + value: '0' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: svggraph + name: 'Jira: DB: Connections: Latency' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF0000 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=latency,name=value",Value]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Jira: DB: Connections' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF0000 + - type: STRING + name: ds.0.color.1 + value: 00FF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:name=BasicDataSource,connectionpool=connections",NumActive]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:name=BasicDataSource,connectionpool=connections",MaxTotal]' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAFA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Jira: DB: Writes per second' + x: '24' + width: '24' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=db.writes",invocation\.count]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: svggraph + name: 'Jira: DB: Pool connections' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF0000 + - type: STRING + name: ds.0.color.1 + value: 00FF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=pool,category03=numActive,name=value",Value]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=pool,category03=numIdle,name=value",Value]' + - type: INTEGER + name: ds.0.stacked + value: '1' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Jira: DB: Connections: Failed per minute' + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF0000 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=db,category01=connection,category02=failures,name=counter",Count]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAFE + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Jira: DB: Reads per second' + x: '48' + width: '24' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FFBF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=db.reads",invocation\.count]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAF + - name: HTTP + widgets: + - type: svggraph + name: 'Jira: HTTP: Sessions: Active' + width: '24' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FFBF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=http,category01=connection,category02=sessions,category03=active,name=value",Value]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AABAA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Jira: HTTP: Pool connections' + x: '24' + width: '24' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF0000 + - type: STRING + name: ds.0.color.1 + value: 00FF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=http,category01=connection,category02=pool,category03=numActive,name=value",Value]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=http,category01=connection,category02=pool,category03=numIdle,name=value",Value]' + - type: INTEGER + name: ds.0.stacked + value: '1' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AABAB + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Jira: HTTP: Requests per minute' + x: '48' + width: '24' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FFBF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=http,category01=requests,name=value",Value]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AABAC + - name: Mail + widgets: + - type: item + name: 'Jira: Mail: Queue: Processing state' + width: '24' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=jobRunning,name=value",Value]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: STRING + name: thresholds.0.color + value: FFBF00 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: svggraph + name: 'Jira: Mail: Processed per minute' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FFBF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numItemsProcessedPerMin,name=value",Value]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AADAE + - type: graphprototype + name: 'Jira: Mail server discovery' + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Jira Data Center by JMX' + name: 'Mail [{#JMXCATEGORY01},{#JMXNAME}]: State and failures' + - type: STRING + name: reference + value: AADFA + - type: svggraph + name: 'Jira: Mail: Queue' + x: '24' + width: '24' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FFBF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numItems,name=value",Value]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AADAA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Jira: Mail: Sent per minute' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 00FF00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numEmailsSentPerMin,name=value",Value]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AADAF + - type: svggraph + name: 'Jira: Mail: Queue: Error' + x: '48' + width: '24' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF0000 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Jira Data Center by JMX' + key: 'jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numErrors,name=value",Value]' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AADAC + - type: INTEGER + name: show_problems + value: '1' + - name: License + widgets: + - type: honeycomb + name: 'Jira: License: Users' + width: '72' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'License [*]: Users: *' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("\[(.*)]: Users: (.*)","\1: \2")}' + - type: STRING + name: reference + value: BAAAA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - name: Storage + widgets: + - type: graphprototype + name: 'Jira: Storage latency' + width: '72' + height: '5' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Jira Data Center by JMX' + name: 'Storage [{#JMXCATEGORY01}]: Latency' + - type: STRING + name: reference + value: AAFAA + - name: Indexing + widgets: + - type: svggraph + name: 'Jira: Indexing: Latency' + width: '72' + height: '6' + fields: + - type: INTEGER + name: ds.0.aggregate_function + value: '3' + - type: STRING + name: ds.0.aggregate_interval + value: 30m + - type: STRING + name: ds.0.color + value: FFBF00 + - type: STRING + name: ds.0.items.0 + value: 'Indexing [*]: Latency' + - type: INTEGER + name: ds.0.type + value: '3' + - type: INTEGER + name: legend_columns + value: '2' + - type: INTEGER + name: legend_lines + value: '7' + - type: STRING + name: or.0.color + value: BF00FF + - type: STRING + name: or.0.items.0 + value: '*CreateChangeHistoryDocument*' + - type: STRING + name: or.1.color + value: 0080FF + - type: STRING + name: or.1.items.0 + value: '*CreateIssueDocumentBatch*' + - type: STRING + name: or.2.color + value: 00FFFF + - type: STRING + name: or.2.items.0 + value: '*LuceneConditionalUpdateDocument*' + - type: STRING + name: or.3.color + value: 00FF00 + - type: STRING + name: or.3.items.0 + value: '*LuceneUpdateDocument*' + - type: STRING + name: or.4.color + value: FFFF00 + - type: STRING + name: or.4.items.0 + value: '*changehistoryAddSearchExtractors*' + - type: STRING + name: or.5.color + value: FF8000 + - type: STRING + name: or.5.items.0 + value: '*issueAddSearchExtractors*' + - type: STRING + name: or.6.color + value: CC6600 + - type: STRING + name: or.6.items.0 + value: '*CreateCommentDocument*' + - type: STRING + name: or.7.color + value: 4000FF + - type: STRING + name: or.7.items.0 + value: '*IssueAddFieldIndexers*' + - type: STRING + name: or.8.color + value: FF0000 + - type: STRING + name: or.8.items.0 + value: '*LuceneDeleteDocument*' + - type: STRING + name: or.9.color + value: '666699' + - type: STRING + name: or.9.items.0 + value: '*WaitForLucene*' + - type: STRING + name: or.10.color + value: FFBF00 + - type: STRING + name: or.10.items.0 + value: '*commentAddSearchExtractors*' + - type: STRING + name: or.11.color + value: 00FFBF + - type: STRING + name: or.11.items.0 + value: '*worklogAddSearchExtractors*' + - type: STRING + name: reference + value: ABAAA + - type: INTEGER + name: show_problems + value: '1' + valuemaps: + - uuid: 6d06a74d603f4ffd8540c8b87f910c7e + name: 'Connection availability' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: ae5cd12f5e3f4da7aab84db686771cb1 + name: 'Limit mapping' + mappings: + - value: '-1' + newvalue: Limitless + - uuid: c5e16a1b701e429e8eff56c598530d60 + name: 'Mail sender' + mappings: + - value: '0' + newvalue: Inactive + - value: '1' + newvalue: Running + triggers: + - uuid: a91e17e5f510499eb6d0848703cf3df1 + expression: 'min(/Jira Data Center by JMX/jmx["com.atlassian.jira:name=BasicDataSource,connectionpool=connections",NumActive],5m)=last(/Jira Data Center by JMX/jmx["com.atlassian.jira:name=BasicDataSource,connectionpool=connections",MaxTotal])' + name: 'Jira Data Center: DB: Connection limit reached' + opdata: 'active {ITEM.LASTVALUE1} from {ITEM.LASTVALUE2}' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 8de58465caad4a188a1a84140ec9ebcf + expression: '100*min(/Jira Data Center by JMX/jmx["com.atlassian.jira:name=BasicDataSource,connectionpool=connections",NumActive],5m)/last(/Jira Data Center by JMX/jmx["com.atlassian.jira:name=BasicDataSource,connectionpool=connections",MaxTotal])>{$JIRA_DC.DB.CONNECTION.USAGE.WARN}' + name: 'Jira Data Center: DB: Connection usage is near the limit' + event_name: 'Jira Data Center: DB: Connection usage is near the limit (above {$JIRA_DC.DB.CONNECTION.USAGE.WARN}%)' + opdata: 'active {ITEM.LASTVALUE1} from {ITEM.LASTVALUE2}' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 7fc17e55907041c2a907310bd45f14be + expression: 'max(/Jira Data Center by JMX/jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=jobRunning,name=value",Value],15m)=0 and min(/Jira Data Center by JMX/jmx["com.atlassian.jira:type=metrics,category00=mail,category01=queue,category02=numItems,name=value",Value],15m)>0' + name: 'Jira Data Center: Mail: Queue job is not running' + priority: AVERAGE + description: | + It should be running when its queue is not empty. + Might indicate SMTP server connection problems. + manual_close: 'YES' + tags: + - tag: scope + value: availability diff --git a/Juniper_MX_by_SNMP.yaml b/Juniper_MX_by_SNMP.yaml new file mode 100644 index 0000000..aead3c8 --- /dev/null +++ b/Juniper_MX_by_SNMP.yaml @@ -0,0 +1,3752 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: fe7eb8b22ce84017b07bcab36e9032dc + template: 'Juniper MX by SNMP' + name: 'Juniper MX by SNMP' + description: | + The template for monitoring Juniper MX Series by SNMP. + + MIBs used: + SNMPv2-MIB + EtherLike-MIB + HOST-RESOURCES-MIB + IF-MIB + OSPF-MIB + JUNIPER-ALARM-MIB + JUNIPER-DOM-MIB + JUNIPER-MIB + BGP4-V2-MIB-JUNIPER + OSPFV3-MIB-JUNIPER + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 2af50dac1b3245a9b6c350c1096209b6 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 07752b9c9851403a9ce753fcd122f808 + expression: 'max(/Juniper MX by SNMP/icmpping,#3)=0' + name: 'Juniper MX: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 250e30e7298444df8208e15c6a32a1c5 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e4cc0c30ff1544d68adfe9f3863e0f19 + expression: 'min(/Juniper MX by SNMP/icmppingloss,5m)>{$JUNIPER.MX.ICMP_LOSS_WARN} and min(/Juniper MX by SNMP/icmppingloss,5m)<100' + name: 'Juniper MX: High ICMP ping loss' + event_name: 'Juniper MX: High ICMP ping loss (over {$JUNIPER.MX.ICMP_LOSS_WARN}% for 5m)' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packet loss detected.' + dependencies: + - name: 'Juniper MX: Unavailable by ICMP ping' + expression: 'max(/Juniper MX by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8b40a9b8da8546e2a0b593e7dbb72537 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d573e7a77408476e854de2e556480acc + expression: 'avg(/Juniper MX by SNMP/icmppingsec,5m)>{$JUNIPER.MX.ICMP_RESPONSE_TIME_WARN}' + name: 'Juniper MX: High ICMP ping response time' + event_name: 'Juniper MX: High ICMP ping response time (over {$JUNIPER.MX.ICMP_RESPONSE_TIME_WARN}s for 5m)' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Juniper MX: High ICMP ping loss' + expression: 'min(/Juniper MX by SNMP/icmppingloss,5m)>{$JUNIPER.MX.ICMP_LOSS_WARN} and min(/Juniper MX by SNMP/icmppingloss,5m)<100' + - name: 'Juniper MX: Unavailable by ICMP ping' + expression: 'max(/Juniper MX by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0335221808684100bd1e062a730a909d + name: 'SNMP walk BGP Peer' + type: SNMP_AGENT + snmp_oid: 'walk[ 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.3, 1.3.6.1.4.1.2636.5.1.1.2.4.1.1.1, 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.2, 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7, 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.8, 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.10, 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.2, 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.11, 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.14, 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.13]' + key: juniper.mx.bgp.peer.data.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning `BGP4-V2-MIB-JUNIPER::jnxBgpM2PeerData` for BGP Peer Data.' + tags: + - tag: component + value: raw + - uuid: a6bab1f7b7bd45cf9dcfbb309957cf91 + name: 'SNMP walk BGP Prefix Counters' + type: SNMP_AGENT + snmp_oid: 'walk[ 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.1, 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.2, 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7, 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.8, 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.9, 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.10, 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.11]' + key: juniper.mx.bgp.prefix.counters.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning `BGP4-V2-MIB-JUNIPER::jnxBgpM2PrefixCountersTable` for Prefix Counters.' + tags: + - tag: component + value: raw + - uuid: 9d7d94b8c0d046d2a1a6426e89128719 + name: 'SNMP walk Multi-lane digital optical monitoring' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2636.3.60.1.2.1.1.1, 1.3.6.1.4.1.2636.3.60.1.2.1.1.2, 1.3.6.1.4.1.2636.3.60.1.2.1.1.4, 1.3.6.1.4.1.2636.3.60.1.2.1.1.6, 1.3.6.1.4.1.2636.3.60.1.2.1.1.8, 1.3.6.1.4.1.2636.3.60.1.2.1.1.9, 1.3.6.1.4.1.2636.3.60.1.1.1.1.8, 1.3.6.1.4.1.2636.3.60.1.1.1.1.30, 1.3.6.1.2.1.2.2.1.8, 1.3.6.1.2.1.2.2.1.7, 1.3.6.1.2.1.31.1.1.1.18, 1.3.6.1.2.1.31.1.1.1.1, 1.3.6.1.2.1.2.2.1.2, 1.3.6.1.2.1.2.2.1.3]' + key: juniper.mx.dom.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning `JUNIPER-DOM-MIB::jnxDomModuleLaneTable` for multi-lane digital optical monitoring.' + tags: + - tag: component + value: raw + - uuid: 7ddc368f670e40d1b5770e0a4428ce45 + name: 'SNMP walk EtherLike-MIB interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.10.7.2.1.19,1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2]' + key: juniper.mx.net.if.duplex.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of interfaces from IF-MIB and EtherLike-MIB. Interfaces with operational status `up(1)` are discovered.' + tags: + - tag: component + value: raw + - uuid: b11839f1bddd4781b23111511db1615a + name: 'SNMP walk Network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8, 1.3.6.1.2.1.2.2.1.2, 1.3.6.1.2.1.2.2.1.3, 1.3.6.1.2.1.2.2.1.7, 1.3.6.1.2.1.2.2.1.13, 1.3.6.1.2.1.2.2.1.14, 1.3.6.1.2.1.2.2.1.19, 1.3.6.1.2.1.2.2.1.20, 1.3.6.1.2.1.31.1.1.1.1, 1.3.6.1.2.1.31.1.1.1.6, 1.3.6.1.2.1.31.1.1.1.10, 1.3.6.1.2.1.31.1.1.1.15, 1.3.6.1.2.1.31.1.1.1.18]' + key: juniper.mx.net.if.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovery of interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: f42152e7c0504aa4bfa611725f365afc + name: 'SNMP walk Operating Table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2636.3.1.13.1.5, 1.3.6.1.4.1.2636.3.1.13.1.7, 1.3.6.1.4.1.2636.3.1.13.1.8, 1.3.6.1.4.1.2636.3.1.13.1.5.2, 1.3.6.1.4.1.2636.3.1.13.1.5.4, 1.3.6.1.4.1.2636.3.1.13.1.6.4, 1.3.6.1.4.1.2636.3.1.13.1.6.2, 1.3.6.1.4.1.2636.3.1.13.1.11]' + key: juniper.mx.operating.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning `JUNIPER-MIB::jnxOperatingTable` for CPU, Memory, Temperature, and Fans.' + tags: + - tag: component + value: raw + - uuid: 80f06a9c2725450e9b5a16377b2cf7af + name: 'SNMP walk OSPF Neighbors' + type: SNMP_AGENT + snmp_oid: 'walk[ 1.3.6.1.2.1.14.10.1.1, 1.3.6.1.2.1.14.10.1.3, 1.3.6.1.2.1.14.10.1.5, 1.3.6.1.2.1.14.10.1.6, 1.3.6.1.2.1.14.10.1.7, 1.3.6.1.2.1.14.10.1.11]' + key: juniper.mx.ospf.nbr.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning `OSPF-MIB::ospfNbrTable` for OSPF Neighbors.' + tags: + - tag: component + value: raw + - uuid: 4f3115a33a6a43b6bf0ab2be3eeec995 + name: 'SNMP walk OSPFv3 Neighbors' + type: SNMP_AGENT + snmp_oid: 'walk[ 1.3.6.1.4.1.2636.5.4.1.1.9.1.5, 1.3.6.1.4.1.2636.5.4.1.1.9.1.7, 1.3.6.1.4.1.2636.5.4.1.1.9.1.8, 1.3.6.1.4.1.2636.5.4.1.1.9.1.9, 1.3.6.1.4.1.2636.5.4.1.1.9.1.11]' + key: juniper.mx.ospfv3.nbr.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning `OSPFV3-MIB-JUNIPER::jnxOspfv3NbrTable` for OSPFv3 Neighbors.' + tags: + - tag: component + value: raw + - uuid: d72814c5b9c64f4e843a04137b99dad6 + name: 'SNMP walk Redundancy Table' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2636.3.1.14.1.5, 1.3.6.1.4.1.2636.3.1.14.1.6, 1.3.6.1.4.1.2636.3.1.14.1.10, 1.3.6.1.4.1.2636.3.1.14.1.16, 1.3.6.1.4.1.2636.3.1.14.1.7]' + key: juniper.mx.redundancy.table.snmp.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Scanning `JUNIPER-MIB::jnxRedundancyTable` for Router Redundancy.' + tags: + - tag: component + value: raw + - uuid: b9b7da53c32a4b48958c313ed45870b1 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'juniper.mx.system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Name and contact information of the contact person for the node. If not provided, the value is a zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 092dbc3c0da648449e69047d3f83b2ba + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'juniper.mx.system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating system, and networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e101a0bd30ae45f6bff0b2b8c914f95b + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2636.3.1.2.0]' + key: juniper.mx.system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: JUNIPER-MIB + The name, model, or detailed description of the device, indicating which product it represents, for example, `M40`. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 7fbc5fa8ef084cf585d5a617812b2d70 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2636.3.1.3.0]' + key: juniper.mx.system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: JUNIPER-MIB + The serial number of this subject, blank if unknown or unavailable. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 317bc72900e24f4991798775b48bc641 + expression: 'last(/Juniper MX by SNMP/juniper.mx.system.hw.serialnumber,#1)<>last(/Juniper MX by SNMP/juniper.mx.system.hw.serialnumber,#2) and length(last(/Juniper MX by SNMP/juniper.mx.system.hw.serialnumber))>0' + name: 'Juniper MX: Device has been replaced' + event_name: 'Juniper MX: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c2bcb74f5afe4659af6a614ea98dbf51 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'juniper.mx.system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from `sysUpTime` in the SNMPv2-MIB [RFC1907] because `sysUpTime` is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: ef6895d078204d17b7f3ba142c2075bf + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'juniper.mx.system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1a80dba9043e43edb4c073f397e471c9 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: juniper.mx.system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is a zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: faec7813bfc14e5da59bfaf7ad639461 + expression: 'last(/Juniper MX by SNMP/juniper.mx.system.name,#1)<>last(/Juniper MX by SNMP/juniper.mx.system.name,#2) and length(last(/Juniper MX by SNMP/juniper.mx.system.name))>0' + name: 'Juniper MX: System name has changed' + event_name: 'Juniper MX: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 33b048b47db542d6bc304a0048e4b743 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'juniper.mx.system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 832ad6d2465e4c20813c194114d2655b + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'juniper.mx.system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1). + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8f743934b3364cadbef2f178cc5aabb1 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'juniper.mx.system.sw.os[sysDescr.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'kernel (JUNOS [0-9a-zA-Z\.\-]+)' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 007d3cb1343144cc9ee01d24df45082d + expression: 'last(/Juniper MX by SNMP/juniper.mx.system.sw.os[sysDescr.0],#1)<>last(/Juniper MX by SNMP/juniper.mx.system.sw.os[sysDescr.0],#2) and length(last(/Juniper MX by SNMP/juniper.mx.system.sw.os[sysDescr.0]))>0' + name: 'Juniper MX: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possible reasons - system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Juniper MX: System name has changed' + expression: 'last(/Juniper MX by SNMP/juniper.mx.system.name,#1)<>last(/Juniper MX by SNMP/juniper.mx.system.name,#2) and length(last(/Juniper MX by SNMP/juniper.mx.system.name))>0' + tags: + - tag: scope + value: notice + - uuid: d2d0f8b19fc3474880ce2decd2880ce8 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other `snmptrap` items.' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 8223b49a0d1f4467a5f79e423a4bf862 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a30f49e7b715409abec697f303ccc46c + expression: 'max(/Juniper MX by SNMP/zabbix[host,snmp,available],{$JUNIPER.MX.SNMP.TIMEOUT})=0' + name: 'Juniper MX: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Juniper MX: Unavailable by ICMP ping' + expression: 'max(/Juniper MX by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 68b0e4b2b82e41db9293dfff16bba68a + name: 'BGP Peer discovery' + type: DEPENDENT + key: juniper.mx.bgp.peer.discovery + delay: '0' + description: 'Scanning `BGP4-V2-MIB-JUNIPER::jnxBgpM2PeerData` for BGP Peer.' + item_prototypes: + - uuid: 86a197104cd74bea88d26179e645146e + name: 'BGP AS [{#BGPM2_PEER_REMOTE_AS}] Peer [{#BGPM2_PEER_REMOTE_ADDR}]: Established time' + type: DEPENDENT + key: 'juniper.mx.bgp.established.time[jnxBgpM2PeerFsmEstablishedTime.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: s + description: 'This timer indicates how long (in seconds) this peer has been in the Established state or how long since this peer was last in the Established state. It is set to zero when a new peer is configured or the router is booted.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.1.1.2.4.1.1.1.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.bgp.peer.data.snmp.walk + tags: + - tag: address + value: '{#BGPM2_PEER_REMOTE_ADDR}' + - tag: as + value: '{#BGPM2_PEER_REMOTE_AS}' + - tag: component + value: bgp + - tag: component + value: network + - uuid: 68baa298dd0d44fb823ae291fbe21db3 + name: 'BGP AS [{#BGPM2_PEER_REMOTE_AS}] Peer [{#BGPM2_PEER_REMOTE_ADDR}]: State' + type: DEPENDENT + key: 'juniper.mx.bgp.state[jnxBgpM2PeerState.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The remote BGP peer''s FSM state.' + valuemap: + name: 'BGP4-V2-MIB-JUNIPER::jnxBgpM2PeerState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.1.1.2.1.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.bgp.peer.data.snmp.walk + tags: + - tag: address + value: '{#BGPM2_PEER_REMOTE_ADDR}' + - tag: as + value: '{#BGPM2_PEER_REMOTE_AS}' + - tag: component + value: bgp + - tag: component + value: network + - uuid: 21a9a3b2f07c4b5b844b6e26289f5789 + name: 'BGP AS [{#BGPM2_PEER_REMOTE_AS}] Peer [{#BGPM2_PEER_REMOTE_ADDR}]: Status' + type: DEPENDENT + key: 'juniper.mx.bgp.status[jnxBgpM2PeerStatus.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'Whether or not the BGP FSM for this remote peer is halted or running. The BGP FSM for a remote peer is halted after processing a Stop event. Likewise, it is in the running state after a Start event. The `jnxBgpM2PeerState` will generally be in the idle state when the FSM is halted, although some extensions such as Graceful Restart will leave the peer in the Idle state but with the FSM running.' + valuemap: + name: 'BGP4-V2-MIB-JUNIPER::jnxBgpM2PeerStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.1.1.2.1.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.bgp.peer.data.snmp.walk + tags: + - tag: address + value: '{#BGPM2_PEER_REMOTE_ADDR}' + - tag: as + value: '{#BGPM2_PEER_REMOTE_AS}' + - tag: component + value: bgp + - tag: component + value: network + trigger_prototypes: + - uuid: cdbf01b1b5bc4dfd8e53fe43efe8f6c0 + expression: 'last(/Juniper MX by SNMP/juniper.mx.bgp.state[jnxBgpM2PeerState.{#SNMPINDEX}],#3)<>6 and last(/Juniper MX by SNMP/juniper.mx.bgp.status[jnxBgpM2PeerStatus.{#SNMPINDEX}])=2' + name: 'Juniper MX: BGP AS [{#BGPM2_PEER_REMOTE_AS}] Peer [{#BGPM2_PEER_REMOTE_ADDR}]: is down' + opdata: 'Current state: {ITEM.LASTVALUE1}, Status: {ITEM.LASTVALUE2}' + priority: HIGH + description: 'Session [BGP AS [{#BGPM2_PEER_REMOTE_AS}] Peer [{#BGPM2_PEER_REMOTE_ADDR}]] is down, check the BGP configuration. For information on checking the BGP configuration, see https://www.juniper.net/documentation/us/en/software/junos/bgp/topics/topic-map/troubleshooting-bgp-sessions.html.' + tags: + - tag: scope + value: notice + master_item: + key: juniper.mx.bgp.peer.data.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#BGPM2_PEER_INDEX}' + - 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.14 + - '0' + - '{#BGPM2_PEER_REMOTE_ADDR}' + - 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.11 + - '0' + - '{#BGPM2_PEER_REMOTE_AS}' + - 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.13 + - '0' + error_handler: CUSTOM_ERROR + error_handler_params: 'BGP instance is not running' + - type: JAVASCRIPT + parameters: + - | + var bgp = JSON.parse(value); + + bgp.forEach(function (item, index, array) { + var ip = item["{#BGPM2_PEER_REMOTE_ADDR}"]; + var parts = ip.trim().split(' '); + + if (parts.length === 4) { + for (var i = 0; i < parts.length; ++i) { + parts[i] = parseInt(parts[i], 16); + } + ip = parts.join('.'); + } + else if (parts.length == 16) { + var ipSegments = []; + for (var i = 0; i < parts.length; i += 4) { + var ipv6 = parts.slice(i, i + 4).join(''); + ipv6 = parseInt(ipv6, 16).toString(16); + ipSegments.push(ipv6 || '0'); + } + ip = ipSegments.join(':').toLowerCase(); + + var maxZeros = 0, currZeros = 0, startIdx = -1, maxStartIdx = -1; + for (i = 0; i < ipSegments.length; i++) { + if (ipSegments[i] === '0') { + if (currZeros === 0) startIdx = i; + currZeros++; + } else { + if (currZeros > maxZeros) { + maxZeros = currZeros; + maxStartIdx = startIdx; + } + currZeros = 0; + } + } + if (currZeros > maxZeros) { + maxZeros = currZeros; + maxStartIdx = startIdx; + } + if (maxZeros > 1) { + ipSegments.splice(maxStartIdx, maxZeros, ''); + ip = ipSegments.join(':').replace(/(^:|:$)/, ''); + } + } + + array[index]["{#BGPM2_PEER_REMOTE_ADDR}"] = ip; + }); + + return JSON.stringify(bgp); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: cf094cdd507c4de2987638b4eae8c7f2 + name: 'BGP Prefix counter discovery' + type: DEPENDENT + key: juniper.mx.bgp.prefix.discovery + delay: '0' + description: 'Scanning `BGP4-V2-MIB-JUNIPER::jnxBgpM2PrefixCountersTable` for Prefix Counters.' + item_prototypes: + - uuid: bbb40d9366e2447284f131be0757f771 + name: 'BGP [{#BGPM2_AFI_SAFI}]: Accepted prefixes' + type: DEPENDENT + key: 'juniper.mx.bgp.prefix.accepted[jnxBgpM2PrefixInPrefixesAccepted.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The number of prefixes for a peer that are installed in the Adj-Ribs-In and are eligible to become active in the Loc-Rib.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.1.1.2.6.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.bgp.prefix.counters.snmp.walk + tags: + - tag: component + value: bgp + - tag: component + value: network + - uuid: 5a4790cb345945518b5fb72ad3d1e600 + name: 'BGP [{#BGPM2_AFI_SAFI}]: Active prefixes' + type: DEPENDENT + key: 'juniper.mx.bgp.prefix.active[jnxBgpM2PrefixInPrefixesActive.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The number of prefixes for a peer that are installed in the Adj-Ribs-In and are the active route in the Loc-Rib.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.1.1.2.6.2.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.bgp.prefix.counters.snmp.walk + tags: + - tag: component + value: bgp + - tag: component + value: network + - uuid: d6ed9f3cf0c046e692fe22a1bbb42637 + name: 'BGP [{#BGPM2_AFI_SAFI}]: Advertised prefixes' + type: DEPENDENT + key: 'juniper.mx.bgp.prefix.advertised[jnxBgpM2PrefixOutPrefixes.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The number of prefixes for a peer that are installed in the peer''s Adj-Ribs-Out.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.1.1.2.6.2.1.10.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.bgp.prefix.counters.snmp.walk + tags: + - tag: component + value: bgp + - tag: component + value: network + - uuid: 573ceb98192c403ab93a7e4df07f982d + name: 'BGP [{#BGPM2_AFI_SAFI}]: Received prefixes' + type: DEPENDENT + key: 'juniper.mx.bgp.prefix.received[jnxBgpM2PrefixInPrefixes.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The number of prefixes received from a peer and stored in the Adj-Ribs-In for that peer.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.bgp.prefix.counters.snmp.walk + tags: + - tag: component + value: bgp + - tag: component + value: network + - uuid: 827208095c444966b85b0ce9e5cf16da + name: 'BGP [{#BGPM2_AFI_SAFI}]: Rejected prefixes' + type: DEPENDENT + key: 'juniper.mx.bgp.prefix.rejected[jnxBgpM2PrefixInPrefixesRejected.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The number of prefixes for a peer that are installed in the Adj-Ribs-In and are NOT eligible to become active in the Loc-Rib.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.1.1.2.6.2.1.9.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.bgp.prefix.counters.snmp.walk + tags: + - tag: component + value: bgp + - tag: component + value: network + master_item: + key: juniper.mx.bgp.prefix.counters.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#BGPM2_PREFIX_AFI}' + - 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.1 + - '0' + - '{#BGPM2_PREFIX_SAFI}' + - 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.2 + - '0' + error_handler: CUSTOM_ERROR + error_handler_params: 'BGP instance is not running' + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var afiSafiMap = { + '1.1': 'IPv4 unicast', + '1.2': 'IPv4 multicast', + '2.1': 'IPv6 unicast', + '2.2': 'IPv6 multicast', + '25.65': 'BGP-VPLS/BGP-L2VPN', + '1.128': 'L3VPN IPv4 unicast', + '1.129': 'L3VPN IPv4 multicast', + '2.128': 'L3VPN IPv6 unicast', + '2.129': 'L3VPN IPv6 multicast', + '1.132': 'RT-Constrain', + '1.133': 'Flow-spec', + '1.134': 'Flow-spec', + '3.128': 'CLNS VPN', + '1.5': 'NG-MVPN IPv4', + '2.5': 'NG-MVPN IPv6', + '1.66': 'MDT-SAFI', + '1.4': 'labeled IPv4', + '2.4': 'labeled IPv6 (6PE)' + }; + + var outArr = []; + inArray.forEach(function (item) { + item['{#BGPM2_AFI_SAFI}'] = afiSafiMap[item['{#SNMPINDEX}'].slice(2)] === undefined ? "" : afiSafiMap[item['{#SNMPINDEX}'].slice(2)]; + outArr.push(item) + }); + return JSON.stringify(outArr); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 68ad7154365b434f90e6461d4352fbfb + name: 'CPU and Memory discovery' + type: DEPENDENT + key: juniper.mx.cpu.mem.discovery + delay: '0' + filter: + conditions: + - macro: '{#SNMPVALUE}' + value: 'FPC.*' + formulaid: A + - macro: '{#SNMPVALUE}' + value: 'Routing Engine.*' + formulaid: B + description: | + Scanning `JUNIPER-MIB::jnxOperatingTable` for CPU and Memory. + http://kb.juniper.net/InfoCenter/index?page=content&id=KB17526&actp=search. Filter limits results to Routing Engines. + item_prototypes: + - uuid: fc9c467c5aef496286063eb22150399b + name: 'System [{#SNMPVALUE}]: CPU utilization' + type: DEPENDENT + key: 'juniper.mx.cpu.util[jnxOperatingCPU.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: JUNIPER-MIB + The CPU utilization, in percent, of this subject. Zero if unavailable or inapplicable. + Reference: http://kb.juniper.net/library/CUSTOMERSERVICE/GLOBAL_JTAC/BK26199/SRX%20SNMP%20Monitoring%20Guide_v1.1.pdf + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.3.1.13.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.operating.snmp.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 2739dd5737084c40ab83214560b5a750 + expression: 'min(/Juniper MX by SNMP/juniper.mx.cpu.util[jnxOperatingCPU.{#SNMPINDEX}],5m)>{$JUNIPER.MX.CPU.UTIL.CRIT}' + name: 'Juniper MX: System [{#SNMPVALUE}]: High CPU utilization' + event_name: 'Juniper MX: System [{#SNMPVALUE}]: High CPU utilization (over {$JUNIPER.MX.CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: e6809619fd6e468190ec180e482badb7 + name: 'System [{#SNMPVALUE}]: Memory utilization' + type: DEPENDENT + key: 'juniper.mx.memory.util[jnxOperatingBuffer.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: JUNIPER-MIB + The buffer pool utilization, in percent, of this subject. Zero if unavailable or inapplicable. + Reference: http://kb.juniper.net/library/CUSTOMERSERVICE/GLOBAL_JTAC/BK26199/SRX%20SNMP%20Monitoring%20Guide_v1.1.pdf + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.3.1.13.1.11.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.operating.snmp.walk + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: b88715979b6e4d56ab60dccdb6ce1089 + expression: 'min(/Juniper MX by SNMP/juniper.mx.memory.util[jnxOperatingBuffer.{#SNMPINDEX}],5m)>{$JUNIPER.MX.MEMORY.UTIL.MAX}' + name: 'Juniper MX: System [{#SNMPVALUE}]: High memory utilization' + event_name: 'Juniper MX: System [{#SNMPVALUE}]: High memory utilization (>{$JUNIPER.MX.MEMORY.UTIL.MAX}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 409271fb7c764e94890fdf37dece3135 + name: 'Juniper MX: System [{#SNMPVALUE}]: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Juniper MX by SNMP' + key: 'juniper.mx.cpu.util[jnxOperatingCPU.{#SNMPINDEX}]' + - uuid: fe3ee4ee1f8648de90d1462ba268963a + name: 'Juniper MX: System [{#SNMPVALUE}]: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Juniper MX by SNMP' + key: 'juniper.mx.memory.util[jnxOperatingBuffer.{#SNMPINDEX}]' + master_item: + key: juniper.mx.operating.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.2636.3.1.13.1.5 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 97578fc561dd40ba95a7f8baa331fda4 + name: 'Multi-lane DOM discovery' + type: DEPENDENT + key: juniper.mx.dom.lane.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFALIAS}' + value: '{$JUNIPER.MX.NET.IF.IFALIAS.MATCHES}' + formulaid: A + - macro: '{#IFALIAS}' + value: '{$JUNIPER.MX.NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFDESCR}' + value: '{$JUNIPER.MX.NET.IF.IFDESCR.MATCHES}' + formulaid: C + - macro: '{#IFDESCR}' + value: '{$JUNIPER.MX.NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFNAME}' + value: '{$JUNIPER.MX.NET.IF.IFNAME.MATCHES}' + formulaid: E + - macro: '{#IFNAME}' + value: '{$JUNIPER.MX.NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#LASERTEMP}' + value: ^0$ + operator: NOT_MATCHES_REGEX + formulaid: G + - macro: '{#MODULELANECOUNT}' + operator: EXISTS + formulaid: H + - macro: '{#RXLASER}' + value: ^0$ + operator: NOT_MATCHES_REGEX + formulaid: I + description: 'Used for information about Digital Optical Monitoring for a Lane of an SFF optical module, as defined in JUNIPER-DOM-MIB.' + item_prototypes: + - uuid: 8af21c5d4a5a422da72048b595e4b557 + name: 'SFP [{#IFNAME}][{#IFALIAS}]: Module lane [{#LANEINDEX}] alarms' + type: DEPENDENT + key: 'juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'This item identifies all the active DOM alarms on a particular Lane of an SFF physical interface.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.3.60.1.2.1.1.2.{#PORTINDEX}.{#LANEINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + function parseBits(bitString) { + var bitsArray = bitString.split(' '); + var bits = ''; + for (var i = 0; i < bitsArray.length; i++) { + var binaryString = parseInt(bitsArray[i], 16).toString(2); + + while (binaryString.length < 8) { + binaryString = '0' + binaryString; + } + + bits += binaryString; + } + + var bitFlags = { + domLaneRxLaserPowerHighAlarm: 0, + domLaneRxLaserPowerLowAlarm: 1, + domLaneTxLaserBiasCurrentHighAlarm: 2, + domLaneTxLaserBiasCurrentLowAlarm: 3, + domLaneTxLaserOutputPowerHighAlarm: 4, + domLaneTxLaserOutputPowerLowAlarm: 5, + domLaneLaserTemperatureHighAlarm: 6, + domLaneLaserTemperatureLowAlarm: 7 + }; + + var result = {}; + + for (var flag in bitFlags) { + if (bitFlags.hasOwnProperty(flag)) { + var index = bitFlags[flag]; + result[flag] = bits[index] === '1'; + } + } + + return result; + } + + return JSON.stringify(parseBits(value)); + master_item: + key: juniper.mx.dom.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: dom + - tag: component + value: network + - tag: sfp + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 06fa038e24c54f4db6d9ff0394c508b3 + expression: 'jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneRxLaserPowerHighAlarm")="true"' + name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Rx power high' + event_name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Rx laser power high on [{#LANEINDEX}] lane' + opdata: 'Status alarm: "true"' + priority: WARNING + description: 'Receiver laser power - high alarm threshold.' + tags: + - tag: scope + value: performance + - uuid: 51f020c7950d4337b88f0006a8895700 + expression: 'jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneRxLaserPowerLowAlarm")="true"' + name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Rx power low' + event_name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Rx laser power low on [{#LANEINDEX}] lane' + opdata: 'Status alarm: "true"' + priority: WARNING + description: 'Receiver laser power - low alarm threshold.' + tags: + - tag: scope + value: performance + - uuid: 24dc66bf852a444cb8a5e8190d6c585d + expression: 'jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneLaserTemperatureHighAlarm")="true"' + name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Temperature High' + event_name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Laser temperature high on [{#LANEINDEX}] lane' + opdata: 'Status alarm: "true"' + priority: WARNING + description: 'Module temperature - high alarm threshold.' + tags: + - tag: scope + value: performance + - uuid: 030018ccb02e43af8ff228ca10c6175c + expression: 'jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneLaserTemperatureLowAlarm")="true"' + name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Temperature Low' + event_name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Laser temperature low on [{#LANEINDEX}] lane' + opdata: 'Status alarm: "true"' + priority: WARNING + description: 'Module temperature - low alarm threshold.' + tags: + - tag: scope + value: performance + - uuid: 67575aa6971e4aa6987d61a3cd890a41 + expression: 'jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneTxLaserBiasCurrentHighAlarm")="true"' + name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx bias high' + event_name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx laser bias current high on [{#LANEINDEX}] lane' + opdata: 'Status alarm: "true"' + priority: WARNING + description: 'Transmitter laser bias current - high alarm threshold.' + tags: + - tag: scope + value: performance + - uuid: 27b9d3d1af0c4c65bcf22e6d71c760af + expression: 'jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneTxLaserBiasCurrentLowAlarm")="true"' + name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx bias low' + event_name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx laser bias current low on [{#LANEINDEX}] lane' + opdata: 'Status alarm: "true"' + priority: WARNING + description: 'Transmitter laser bias current - low alarm threshold.' + tags: + - tag: scope + value: performance + - uuid: c64e77302be84ff7bb7e2b4b2e33b6c7 + expression: 'jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneTxLaserOutputPowerHighAlarm")="true"' + name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx power high' + event_name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx laser power high on [{#LANEINDEX}] lane' + opdata: 'Status alarm: "true"' + priority: WARNING + description: 'Transmitter laser power - high alarm threshold.' + tags: + - tag: scope + value: performance + - uuid: e8ff233746604369b4419ca405990d5b + expression: 'jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneTxLaserOutputPowerLowAlarm")="true"' + name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx power low' + event_name: 'Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx laser power low on [{#LANEINDEX}] lane' + opdata: 'Status alarm: "true"' + priority: WARNING + description: 'Transmitter laser power - low alarm threshold.' + tags: + - tag: scope + value: performance + - uuid: eb00143fd1364120aa02238f60d4c05e + name: 'SFP [{#IFNAME}][{#IFALIAS}]: Rx optical power lane [{#LANEINDEX}]' + type: DEPENDENT + key: 'juniper.mx.dom.rx.lane.laser[jnxDomCurrentLaneRxLaserPower.{#SNMPINDEX}.{#LANEINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: 'Receiver laser power on a particular Lane of an SFF physical interface.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.3.60.1.2.1.1.6.{#PORTINDEX}.{#LANEINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.01' + master_item: + key: juniper.mx.dom.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: dom + - tag: component + value: network + - tag: sfp + value: '{#IFNAME}' + - uuid: bc1cda13a6fd4041b30c1ac045927cd9 + name: 'SFP [{#IFNAME}][{#IFALIAS}]: Tx optical power lane [{#LANEINDEX}]' + type: DEPENDENT + key: 'juniper.mx.dom.tx.lane.laser[jnxDomCurrentLaneTxLaserOutputPower.{#SNMPINDEX}.{#LANEINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: 'Transmitter laser power on a particular Lane of an SFF physical interface.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.3.60.1.2.1.1.8.{#PORTINDEX}.{#LANEINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.01' + master_item: + key: juniper.mx.dom.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: dom + - tag: component + value: network + - tag: sfp + value: '{#IFNAME}' + master_item: + key: juniper.mx.dom.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#MODULELANECOUNT}' + - 1.3.6.1.4.1.2636.3.60.1.1.1.1.30 + - '0' + - '{#LASERTEMP}' + - 1.3.6.1.4.1.2636.3.60.1.2.1.1.9 + - '0' + - '{#RXLASER}' + - 1.3.6.1.4.1.2636.3.60.1.2.1.1.6 + - '0' + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#LANEINDEX}' + - 1.3.6.1.4.1.2636.3.60.1.2.1.1.1 + - '0' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + var inputArray = JSON.parse(value); + + var transformedArray = inputArray.reduce(function (acc, item) { + var snmpIndex = item["{#SNMPINDEX}"]; + var mainIndex = snmpIndex.split('.')[0]; + + if (item["{#LANEINDEX}"] !== undefined) { + var portData = null; + + for (var i = 0; i < inputArray.length; i++) { + if (inputArray[i]["{#SNMPINDEX}"] === mainIndex) { + portData = inputArray[i]; + break; + } + } + + if (portData) { + acc.push(Object.assign( + {}, + item, + { "{#PORTINDEX}": mainIndex }, + portData + )); + } + } + return acc; + }, []); + + return JSON.stringify(transformedArray); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9ac8c0a8ae384e6898e89a873e54e1b0 + name: 'FAN discovery' + type: DEPENDENT + key: juniper.mx.fans.discovery + delay: '0' + description: 'Scanning `JUNIPER-MIB::jnxOperatingTable` for Fans.' + item_prototypes: + - uuid: ebd56d08899842779b2695ad3370c95e + name: 'Sensor [{#SNMPVALUE}]: Fan status' + type: DEPENDENT + key: 'juniper.mx.sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: JUNIPER-MIB + Current status of the Fan tray. + valuemap: + name: 'JUNIPER-MIB::jnxOperatingState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.3.1.13.1.6.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.operating.snmp.walk + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 6c40d7e7701b4615a29b0e4eafb04aff + expression: 'count(/Juniper MX by SNMP/juniper.mx.sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}],#1,"eq","{$JUNIPER.MX.FAN_CRIT_STATUS}")=1' + name: 'Juniper MX: Sensor [{#SNMPVALUE}]: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the Fan unit.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: juniper.mx.operating.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.2636.3.1.13.1.5.4 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 83627dc5919249198673890c25100b18 + name: 'Network interface discovery' + type: DEPENDENT + key: juniper.mx.net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$JUNIPER.MX.NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$JUNIPER.MX.NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$JUNIPER.MX.NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$JUNIPER.MX.NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$JUNIPER.MX.NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$JUNIPER.MX.NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$JUNIPER.MX.NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$JUNIPER.MX.NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$JUNIPER.MX.NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$JUNIPER.MX.NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$JUNIPER.MX.NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$JUNIPER.MX.NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovery of interfaces from IF-MIB.' + item_prototypes: + - uuid: 1e464a20cc784884b5287a4c0568a70d + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Inbound packets discarded' + type: DEPENDENT + key: 'juniper.mx.net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.net.if.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9300b7ac45464856ae46f8f6294fcb48 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Inbound packets with errors' + type: DEPENDENT + key: 'juniper.mx.net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.net.if.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d1f4a2d1ab0b4239a5c515f2afa1599d + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Bits received' + type: DEPENDENT + key: 'juniper.mx.net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of `ifInOctets`. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: juniper.mx.net.if.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6ec380888ae745ec953c00ae3272dd85 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Outbound packets discarded' + type: DEPENDENT + key: 'juniper.mx.net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.net.if.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ca31a4568ca64a91acab57c7d4a12171 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Outbound packets with errors' + type: DEPENDENT + key: 'juniper.mx.net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.net.if.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 69165e8edad0451f9571eba53d484453 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Bits sent' + type: DEPENDENT + key: 'juniper.mx.net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of `ifOutOctets`. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: juniper.mx.net.if.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 38d091d8365b44eea6ead60d5b6090e7 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Speed' + type: DEPENDENT + key: 'juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: juniper.mx.net.if.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f731f0ad12c94b57aa3e819a9a3f8344 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Operational status' + type: DEPENDENT + key: 'juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The `testing(3)` state indicates that no operational packet scan can be passed. + - If `ifAdminStatus` is `down(2)`, then `ifOperStatus` should be `down(2)`. + - If `ifAdminStatus` is changed to `up(1)`, then `ifOperStatus` should change to `up(1)` if the interface is ready to transmit and receive network traffic. + - It should change to `dormant(5)` if the interface is waiting for external actions (such as a serial line waiting for an incoming connection). + - It should remain in the `down(2)` state if and only if there is a fault that prevents it from going to the `up(1)` state. + - It should remain in the `notPresent(6)` state if the interface has missing (typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.net.if.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e6e97882d81242019bbb072a4b3cd9aa + expression: '{$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=1 and last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=0' + name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: a1931245d15a4f0ca792ab62d149ba2c + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Interface type' + type: DEPENDENT + key: 'juniper.mx.net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for `ifType` are assigned by the Internet Assigned Numbers Authority (IANA), through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: juniper.mx.net.if.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 140de6180ae64aeab26d898518392c54 + expression: | + change(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Link down' + expression: '{$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=1 and last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 0a9b64496e794daaa3fd126a0f821fec + expression: | + (avg(/Juniper MX by SNMP/juniper.mx.net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$JUNIPER.MX.IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Juniper MX by SNMP/juniper.mx.net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$JUNIPER.MX.IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Juniper MX by SNMP/juniper.mx.net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$JUNIPER.MX.IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Juniper MX by SNMP/juniper.mx.net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$JUNIPER.MX.IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: High bandwidth usage' + event_name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: High bandwidth usage (>{$JUNIPER.MX.IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Link down' + expression: '{$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=1 and last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 643b17bf71574d77bb06240af9c6fbc5 + expression: | + min(/Juniper MX by SNMP/juniper.mx.net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$JUNIPER.MX.IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Juniper MX by SNMP/juniper.mx.net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$JUNIPER.MX.IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Juniper MX by SNMP/juniper.mx.net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$JUNIPER.MX.IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Juniper MX by SNMP/juniper.mx.net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$JUNIPER.MX.IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: High error rate' + event_name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: High error rate (>{$JUNIPER.MX.IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$JUNIPER.MX.IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Link down' + expression: '{$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=1 and last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 4200eaa606f94c35a4a9ab787c752761 + name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Juniper MX by SNMP' + key: 'juniper.mx.net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Juniper MX by SNMP' + key: 'juniper.mx.net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Juniper MX by SNMP' + key: 'juniper.mx.net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Juniper MX by SNMP' + key: 'juniper.mx.net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Juniper MX by SNMP' + key: 'juniper.mx.net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Juniper MX by SNMP' + key: 'juniper.mx.net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: juniper.mx.net.if.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3dcf819694834d29aae6a35c4aaa1c18 + name: 'EtherLike-MIB discovery' + type: DEPENDENT + key: juniper.mx.net.if.duplex.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + - macro: '{#SNMPVALUE}' + operator: EXISTS + formulaid: C + description: 'Discovery of interfaces from IF-MIB and EtherLike-MIB. Interfaces with the `up(1)` operational status are discovered.' + item_prototypes: + - uuid: 03c1a0c21ef04f428af38ad963a7c5ec + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Duplex status' + type: DEPENDENT + key: 'juniper.mx.net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC entity. `unknown` indicates that the current duplex mode could not be determined. + Management control of the duplex mode is accomplished through the MAU MIB. When an interface does not support autonegotiation or when autonegotiation is not enabled, the duplex mode is controlled using `ifMauDefaultType`. When autonegotiation is supported and enabled, duplex mode is controlled using `ifMauAutoNegAdvertisedBits`. In either case, the currently operating duplex mode in reflected both in this object and in `ifMauType`. + Note that this object provides redundant information with `ifMauType`. Normally, redundant objects are discouraged. However, in this instance, it allows a management application to determine the duplex status of an interface without having to know every possible value of `ifMauType`. This was felt to be sufficiently valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.net.if.duplex.snmp.walk + tags: + - tag: alias + value: '{#IFALIAS}' + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0e37a15e7be949d9a2706b298c4d4182 + expression: 'last(/Juniper MX by SNMP/juniper.mx.net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + master_item: + key: juniper.mx.net.if.duplex.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.10.7.2.1.19 + - '0' + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9e66d89fdca04840b28d11d80de100ad + name: 'OSPF Neighbor discovery' + type: DEPENDENT + key: juniper.mx.ospf.neighbor.discovery + delay: '0' + description: 'Scanning `OSPF-MIB::ospfNbrTable` for OSPF Neighbors.' + item_prototypes: + - uuid: d8e5d85898294f2cbfb97e59458fdac5 + name: 'OSPF Neighbor [{#OSPF_IP_ADDR}]: Events' + type: DEPENDENT + key: 'juniper.mx.ospf.events[ospfNbrEvents.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The number of times this neighbor relationship has changed state, or an error has occurred.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.ospf.nbr.snmp.walk + tags: + - tag: address + value: '{#OSPF_IP_ADDR}' + - tag: component + value: network + - tag: component + value: ospf + trigger_prototypes: + - uuid: 604dcfd4cee146aaa1c74bea48aec3fd + expression: 'last(/Juniper MX by SNMP/juniper.mx.ospf.events[ospfNbrEvents.{#SNMPINDEX}],#1)<>last(/Juniper MX by SNMP/juniper.mx.ospf.events[ospfNbrEvents.{#SNMPINDEX}],#2)' + name: 'Juniper MX: OSPF Neighbor [{#OSPF_IP_ADDR}]: Number of relationship has changed' + opdata: 'Number of relationship changes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The number of times the [{#OSPF_IP_ADDR}] neighbor relationship has changed.' + tags: + - tag: scope + value: performance + - uuid: 9d4b254d98a14c3ca3a34c7a5ccdc4c2 + name: 'OSPF Neighbor [{#OSPF_IP_ADDR}]: Hello suppressed' + type: DEPENDENT + key: 'juniper.mx.ospf.hello.suppressed[ospfNbrHelloSuppressed.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'Indicates whether Hellos are being suppressed to the neighbor.' + valuemap: + name: 'OSPF-MIB::ospfNbrHelloSuppressed' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.ospf.nbr.snmp.walk + tags: + - tag: address + value: '{#OSPF_IP_ADDR}' + - tag: component + value: network + - tag: component + value: ospf + - uuid: 78726e19b6f34285868684ee2b6bfb84 + name: 'OSPF Neighbor [{#OSPF_IP_ADDR}]: Router Id' + type: DEPENDENT + key: 'juniper.mx.ospf.rtr.id[ospfNbrRtrId.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'A 32-bit integer (represented as a type `IpAddress`) uniquely identifying the neighboring router in the Autonomous System.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.ospf.nbr.snmp.walk + tags: + - tag: address + value: '{#OSPF_IP_ADDR}' + - tag: component + value: network + - tag: component + value: ospf + - uuid: a09f5412c1854cb28ac393e0b8568802 + name: 'OSPF Neighbor [{#OSPF_IP_ADDR}]: State' + type: DEPENDENT + key: 'juniper.mx.ospf.state[ospfNbrState.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The state of the relationship with this neighbor.' + valuemap: + name: 'OSPF-MIB::ospfNbrState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.14.10.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.ospf.nbr.snmp.walk + tags: + - tag: address + value: '{#OSPF_IP_ADDR}' + - tag: component + value: network + - tag: component + value: ospf + trigger_prototypes: + - uuid: 72fa4c432ac64c16a2eb624750813ff6 + expression: 'last(/Juniper MX by SNMP/juniper.mx.ospf.state[ospfNbrState.{#SNMPINDEX}]) = 1' + name: 'Juniper MX: OSPF Neighbor [{#OSPF_IP_ADDR}]: State down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'OSPF neighbor [{#OSPF_IP_ADDR}] in operational state `down`.' + tags: + - tag: scope + value: performance + - uuid: 1b9b5f7074bd4321bfa000d5dfc8d487 + expression: 'last(/Juniper MX by SNMP/juniper.mx.ospf.state[ospfNbrState.{#SNMPINDEX}]) = 3' + name: 'Juniper MX: OSPF Neighbor [{#OSPF_IP_ADDR}]: State init' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'OSPF neighbor [{#OSPF_IP_ADDR}] in operational state `init`.' + tags: + - tag: scope + value: performance + master_item: + key: juniper.mx.ospf.nbr.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#OSPF_IP_ADDR}' + - 1.3.6.1.2.1.14.10.1.1 + - '0' + error_handler: CUSTOM_ERROR + error_handler_params: 'OSPF instance is not running' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 66a0878f65f6420b82a4249a3f7956b0 + name: 'OSPFv3 Neighbor discovery' + type: DEPENDENT + key: juniper.mx.ospfv3.neighbor.discovery + delay: '0' + description: 'Scanning `OSPFV3-MIB-JUNIPER::jnxOspfv3NbrTable` for OSPFv3 Neighbors.' + item_prototypes: + - uuid: f4c944eaeafb4b3480fc5c5d9d089842 + name: 'OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: Events' + type: DEPENDENT + key: 'juniper.mx.ospfv3.events[jnxOspfv3NbrEvents.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The number of times the [{#OSPFV3_IP_ADDR}] neighbor relationship has changed state, or an error has occurred.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.4.1.1.9.1.9.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.ospfv3.nbr.snmp.walk + tags: + - tag: address + value: '{#OSPFV3_IP_ADDR}' + - tag: component + value: network + - tag: component + value: ospfv3 + trigger_prototypes: + - uuid: 25b9d8bd021646ecb3f0b6293b8c01b3 + expression: 'last(/Juniper MX by SNMP/juniper.mx.ospfv3.events[jnxOspfv3NbrEvents.{#SNMPINDEX}],#1)<>last(/Juniper MX by SNMP/juniper.mx.ospfv3.events[jnxOspfv3NbrEvents.{#SNMPINDEX}],#2)' + name: 'Juniper MX: OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: relationship has changed' + opdata: 'Number of relationship changes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The number of times the [{#OSPFV3_IP_ADDR}] neighbor relationship has changed.' + tags: + - tag: scope + value: performance + - uuid: b64ebde2fd354302acc3d087aab5a155 + name: 'OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: Hello suppressed' + type: DEPENDENT + key: 'juniper.mx.ospfv3.hello.suppressed[jnxOspfv3NbrHelloSuppressed.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'Indicates whether Hellos are being suppressed to the neighbor.' + valuemap: + name: 'OSPF-MIB::ospfNbrHelloSuppressed' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.4.1.1.9.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.ospfv3.nbr.snmp.walk + tags: + - tag: address + value: '{#OSPFV3_IP_ADDR}' + - tag: component + value: network + - tag: component + value: ospfv3 + - uuid: baed51479df94547a2a089543ed3928c + name: 'OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: Priority' + type: DEPENDENT + key: 'juniper.mx.ospfv3.priority[jnxOspfv3NbrPriority.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The priority of this neighbor in the designated router election algorithm. The value `0` signifies that the neighbor is not eligible to become the designated router on this particular network.' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.4.1.1.9.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.ospfv3.nbr.snmp.walk + tags: + - tag: address + value: '{#OSPFV3_IP_ADDR}' + - tag: component + value: network + - tag: component + value: ospfv3 + - uuid: 4adfe63f7b5042d8bd312dd8285c17e5 + name: 'OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: State' + type: DEPENDENT + key: 'juniper.mx.ospfv3.state[jnxOspfv3NbrState.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: 'The state of the relationship with this neighbor.' + valuemap: + name: 'OSPF-MIB::ospfNbrState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.5.4.1.1.9.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: juniper.mx.ospfv3.nbr.snmp.walk + tags: + - tag: address + value: '{#OSPFV3_IP_ADDR}' + - tag: component + value: network + - tag: component + value: ospfv3 + trigger_prototypes: + - uuid: acfa268322b044cdbdeef1d4c97b8c15 + expression: 'last(/Juniper MX by SNMP/juniper.mx.ospfv3.state[jnxOspfv3NbrState.{#SNMPINDEX}]) = 1' + name: 'Juniper MX: OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: State down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'OSPF neighbor [{#OSPFV3_IP_ADDR}] in operational state `down`.' + tags: + - tag: scope + value: performance + - uuid: abbab005937b4c488205b70860ffc5a6 + expression: 'last(/Juniper MX by SNMP/juniper.mx.ospfv3.state[jnxOspfv3NbrState.{#SNMPINDEX}]) = 3' + name: 'Juniper MX: OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: State init' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'OSPFv3 neighbor [{#OSPFV3_IP_ADDR}] in operational state `init`.' + tags: + - tag: scope + value: performance + master_item: + key: juniper.mx.ospfv3.nbr.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#OSPFV3_IP_ADDR}' + - 1.3.6.1.4.1.2636.5.4.1.1.9.1.5 + - '0' + error_handler: CUSTOM_ERROR + error_handler_params: 'OSPF instance is not running' + - type: JAVASCRIPT + parameters: + - | + var ospf = JSON.parse(value); + + ospf.forEach(function (item, index, array) { + var ip = item["{#OSPFV3_IP_ADDR}"]; + var parts = ip.trim().split(' '); + + if (parts.length === 4) { + for (var i = 0; i < parts.length; ++i) { + parts[i] = parseInt(parts[i], 16); + } + ip = parts.join('.'); + } + else if (parts.length == 16) { + var ipSegments = []; + for (var i = 0; i < parts.length; i += 4) { + var ipv6 = parts.slice(i, i + 4).join(''); + ipv6 = parseInt(ipv6, 16).toString(16); + ipSegments.push(ipv6 || '0'); + } + ip = ipSegments.join(':').toLowerCase(); + + var maxZeros = 0, currZeros = 0, startIdx = -1, maxStartIdx = -1; + for (i = 0; i < ipSegments.length; i++) { + if (ipSegments[i] === '0') { + if (currZeros === 0) startIdx = i; + currZeros++; + } else { + if (currZeros > maxZeros) { + maxZeros = currZeros; + maxStartIdx = startIdx; + } + currZeros = 0; + } + } + if (currZeros > maxZeros) { + maxZeros = currZeros; + maxStartIdx = startIdx; + } + if (maxZeros > 1) { + ipSegments.splice(maxStartIdx, maxZeros, ''); + ip = ipSegments.join(':').replace(/(^:|:$)/, ''); + } + } + + array[index]["{#OSPFV3_IP_ADDR}"] = ip; + }); + + return JSON.stringify(ospf); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 25dab3bda75b497eb91101d2a687b3d2 + name: 'PSU discovery' + type: DEPENDENT + key: juniper.mx.psu.discovery + delay: '0' + description: 'Scanning `JUNIPER-MIB::jnxOperatingTable` for Power Supplies.' + item_prototypes: + - uuid: 3526d4374e8d422ab87b92dca0159a8e + name: 'Sensor [{#SNMPVALUE}]: Power supply status' + type: DEPENDENT + key: 'juniper.mx.sensor.psu.status["{#SNMPINDEX}"]' + delay: '0' + trends: '0' + description: | + MIB: JUNIPER-MIB + If are using DC power supplies, there is a known issue on PR 1064039 where the fans do not detect the temperature correctly and fail to cool the power supply causing shutdown to occur. + This is fixed in Junos 13.3R7 https://forums.juniper.net/t5/Routing/PEM-0-not-OK-MX104/m-p/289644#M14122 + valuemap: + name: 'JUNIPER-MIB::jnxOperatingState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.3.1.13.1.6.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.operating.snmp.walk + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 2e68ce04be164ea5a728639ad0dadd35 + expression: 'count(/Juniper MX by SNMP/juniper.mx.sensor.psu.status["{#SNMPINDEX}"],#1,"eq","{$JUNIPER.MX.PSU_CRIT_STATUS}")=1' + name: 'Juniper MX: Sensor [{#SNMPVALUE}]: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: juniper.mx.operating.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.2636.3.1.13.1.5.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f63fb6e235914131baff69bf7778e082 + name: 'Redundancy discovery' + type: DEPENDENT + key: juniper.mx.redundancy.discovery + delay: '0' + description: 'Scanning `JUNIPER-MIB::jnxRedundancyTable`.' + item_prototypes: + - uuid: 6fe1d6a3d81240ecb1d9b0d7123b653e + name: 'Redundancy [{#SNMPVALUE}][{#CHASSISDESCR}]: Current running state' + type: DEPENDENT + key: 'juniper.mx.redundancy.state["{#SNMPINDEX}"]' + delay: '0' + trends: '0' + description: | + MIB: JUNIPER-MIB + The current running state for the `Redundancy [{#SNMPVALUE}][{#CHASSISDESCR}]` subject. + valuemap: + name: 'JUNIPER-MIB::jnxRedundancyState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.3.1.14.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.redundancy.table.snmp.walk + tags: + - tag: component + value: redundancy + - uuid: da3134d4cb084090a7c2c7df9d99c6f8 + name: 'Redundancy [{#SNMPVALUE}][{#CHASSISDESCR}]: Reason of the last switchover' + type: DEPENDENT + key: 'juniper.mx.redundancy.switchover.reason["{#SNMPINDEX}"]' + delay: '0' + trends: '0' + description: | + MIB: JUNIPER-MIB + The reason of the last switchover for the `Redundancy [{#SNMPVALUE}][{#CHASSISDESCR}]` subject. + valuemap: + name: 'JUNIPER-MIB::jnxRedundancySwitchoverReason' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.3.1.14.1.10.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.redundancy.table.snmp.walk + tags: + - tag: component + value: redundancy + master_item: + key: juniper.mx.redundancy.table.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.2636.3.1.14.1.5 + - '0' + - '{#CHASSISDESCR}' + - 1.3.6.1.4.1.2636.3.1.14.1.16 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: de9c2e302e6445d0b78235b9cc29444d + name: 'Temperature discovery' + type: DEPENDENT + key: juniper.mx.temperature.discovery + delay: '0' + filter: + conditions: + - macro: '{#SNMPVALUE}' + value: '[^0]+' + formulaid: A + description: 'Scanning `JUNIPER-MIB::jnxOperatingTable` for Temperature.' + item_prototypes: + - uuid: e01b55a38ca6441ca87672285ea896d5 + name: 'Sensor [{#SENSOR_INFO}]: Temperature' + type: DEPENDENT + key: 'sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: °C + description: | + MIB: JUNIPER-MIB + The temperature in Celsius of [{#SENSOR_INFO}]. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2636.3.1.13.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: juniper.mx.operating.snmp.walk + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 8ae058e6a8044f52b2f36159a089b5f1 + expression: 'avg(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$JUNIPER.MX.TEMP_CRIT:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$JUNIPER.MX.TEMP_CRIT:"{#SENSOR_INFO}"}-3' + name: 'Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is above critical threshold' + event_name: 'Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is above critical threshold: >{$JUNIPER.MX.TEMP_CRIT:"Juniper MX: Sensor [{#SENSOR_INFO}]"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as the temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b48e691a3db64b9481c2b23b8f349dc3 + expression: 'avg(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$JUNIPER.MX.TEMP_WARN:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$JUNIPER.MX.TEMP_WARN:"{#SENSOR_INFO}"}-3' + name: 'Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is above warning threshold' + event_name: 'Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is above warning threshold: >{$JUNIPER.MX.TEMP_WARN:"Juniper MX: Sensor [{#SENSOR_INFO}]"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as the temperature sensor status if available.' + dependencies: + - name: 'Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is above critical threshold' + expression: 'avg(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$JUNIPER.MX.TEMP_CRIT:"{#SENSOR_INFO}"}' + recovery_expression: 'max(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$JUNIPER.MX.TEMP_CRIT:"{#SENSOR_INFO}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: eb9e6a9987584dedbae36d636569c03f + expression: 'avg(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$JUNIPER.MX.TEMP_CRIT_LOW:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$JUNIPER.MX.TEMP_CRIT_LOW:"{#SENSOR_INFO}"}+3' + name: 'Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is too low' + event_name: 'Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is too low: <{$JUNIPER.MX.TEMP_CRIT_LOW:"Juniper MX: Sensor [{#SENSOR_INFO}]"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'This trigger uses temperature sensor values as well as the temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: juniper.mx.operating.snmp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.2636.3.1.13.1.7 + - '0' + - '{#SENSOR_INFO}' + - 1.3.6.1.4.1.2636.3.1.13.1.5 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: juniper + - tag: target + value: mx + macros: + - macro: '{$JUNIPER.MX.CPU.UTIL.CRIT}' + value: '90' + description: 'Threshold of CPU utilization for trigger in %. Can be used with interface name as context.' + - macro: '{$JUNIPER.MX.FAN_CRIT_STATUS}' + value: '6' + description: 'Threshold of status sensor for trigger. All statuses defined in valuemap `JUNIPER-MIB::jnxOperatingState`.' + - macro: '{$JUNIPER.MX.ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$JUNIPER.MX.ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$JUNIPER.MX.IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$JUNIPER.MX.IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$JUNIPER.MX.IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$JUNIPER.MX.MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold of memory utilization for trigger in %. Can be used with interface name as context.' + - macro: '{$JUNIPER.MX.NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$JUNIPER.MX.NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignores `down(2)` administrative status' + - macro: '{$JUNIPER.MX.NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$JUNIPER.MX.NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$JUNIPER.MX.NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$JUNIPER.MX.NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$JUNIPER.MX.NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$JUNIPER.MX.NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out loopbacks, nulls, docker `veth` links, and `docker0 bridge` by default.' + - macro: '{$JUNIPER.MX.NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$JUNIPER.MX.NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignores `notPresent(6)`' + - macro: '{$JUNIPER.MX.NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$JUNIPER.MX.NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$JUNIPER.MX.PSU_CRIT_STATUS}' + value: '6' + description: 'Threshold of status sensor for trigger. All statuses defined in valuemap `JUNIPER-MIB::jnxOperatingState`.' + - macro: '{$JUNIPER.MX.SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$JUNIPER.MX.TEMP_CRIT}' + value: '60' + description: 'Threshold of temperature sensor for trigger. Can be used with interface name as context.' + - macro: '{$JUNIPER.MX.TEMP_CRIT:"Routing Engine"}' + value: '80' + description: 'Threshold of temperature sensor for trigger. Used for Routing Engine.' + - macro: '{$JUNIPER.MX.TEMP_CRIT_LOW}' + value: '5' + description: 'Threshold of temperature sensor for trigger. Can be used with interface name as context.' + - macro: '{$JUNIPER.MX.TEMP_WARN}' + value: '50' + description: 'Threshold of temperature sensor for trigger. Can be used with interface name as context.' + - macro: '{$JUNIPER.MX.TEMP_WARN:"Routing Engine"}' + value: '70' + description: 'Threshold of temperature sensor for trigger. Used for Routing Engine.' + dashboards: + - uuid: 6131b952fe8f42e7b65a8a8538d86016 + name: 'Juniper MX: General' + pages: + - name: 'Juniper MX: Overview' + widgets: + - type: svggraph + name: 'Juniper MX: Memory utilization' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 3ea900 + - type: STRING + name: ds.0.items.0 + value: '*Memory utilization' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_aggregation + value: '1' + - type: INTEGER + name: legend_lines + value: '4' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: CCDBA + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: simple_triggers + value: '1' + - type: INTEGER + name: working_time + value: '1' + - type: honeycomb + name: 'Juniper MX: Temperature' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: bg_color + value: A5D6A7 + - type: STRING + name: items.0 + value: '*Temperature' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: CACFE + - type: STRING + name: secondary_label_color + value: 2334b9 + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: FF0000 + - type: STRING + name: thresholds.0.threshold + value: '80' + - type: svggraph + name: 'Juniper MX: CPU utilization' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 00c3ff + - type: STRING + name: ds.0.items.0 + value: '*CPU utilization' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_aggregation + value: '1' + - type: INTEGER + name: legend_lines + value: '4' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: ADFBC + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: simple_triggers + value: '1' + - type: INTEGER + name: working_time + value: '1' + - type: honeycomb + name: 'Juniper MX: Current running state' + x: '36' + 'y': '5' + width: '12' + height: '5' + fields: + - type: STRING + name: bg_color + value: A5D6A7 + - type: STRING + name: items.0 + value: '*Current running state' + - type: STRING + name: reference + value: EFDCB + - type: INTEGER + name: show.0 + value: '2' + - type: honeycomb + name: 'Juniper MX: Reason of the last switchover' + x: '48' + 'y': '5' + width: '12' + height: '5' + fields: + - type: STRING + name: bg_color + value: A5D6A7 + - type: STRING + name: items.0 + value: '*Reason of the last switchover' + - type: STRING + name: reference + value: FCEDA + - type: INTEGER + name: show.0 + value: '2' + - type: item + name: 'Juniper MX: OS' + x: '60' + 'y': '5' + width: '12' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Juniper MX by SNMP' + key: 'juniper.mx.system.sw.os[sysDescr.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '10' + - name: 'Juniper MX: Network' + widgets: + - type: svggraph + name: 'Juniper MX: Bits received' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '006274' + - type: STRING + name: ds.0.items.0 + value: '*Bits received' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: ABFFD + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Juniper MX: Inbound packets discarded' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 9c640a + - type: STRING + name: ds.0.items.0 + value: '*Inbound packets discarded' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: DBEAF + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Juniper MX: Inbound packets with errors' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: d73deb + - type: STRING + name: ds.0.items.0 + value: '*Inbound packets with errors' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: DBDEA + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Juniper MX: Bits sent' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: b51b1b + - type: STRING + name: ds.0.items.0 + value: '*Bits sent' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: DEDDA + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Juniper MX: Outbound packets discarded' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 3d5c25 + - type: STRING + name: ds.0.items.0 + value: '*Outbound packets discarded' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: FBDDA + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Juniper MX: Outbound packets with errors' + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 33309a + - type: STRING + name: ds.0.items.0 + value: '*Outbound packets with errors' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: EEDCC + - type: INTEGER + name: working_time + value: '1' + - name: 'Juniper MX: Digital Lane Monitoring' + widgets: + - type: svggraph + name: 'Juniper MX: Tx optical power lane' + width: '36' + height: '8' + fields: + - type: STRING + name: ds.0.color + value: 29b00b + - type: STRING + name: ds.0.items.0 + value: '*Tx optical power lane*' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: BBCBB + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Juniper MX: Rx optical power lane' + x: '36' + width: '36' + height: '8' + fields: + - type: STRING + name: ds.0.color + value: 0d62c3 + - type: STRING + name: ds.0.items.0 + value: '*Rx optical power lane*' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: CEACB + - type: INTEGER + name: working_time + value: '1' + - name: 'Juniper MX: BGP/OSPF' + widgets: + - type: honeycomb + name: 'Juniper MX: BGP Peer state' + width: '18' + height: '5' + fields: + - type: STRING + name: bg_color + value: A5D6A7 + - type: STRING + name: items.0 + value: '*peer * State' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: CEFEB + - type: STRING + name: secondary_label_color + value: 2334b9 + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: 'Juniper MX: BGP Accepted/Rejected prefixes' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: d882f2 + - type: STRING + name: ds.0.items.0 + value: 'BGP * Accepted prefixes' + - type: STRING + name: ds.1.color + value: 4ba26e + - type: STRING + name: ds.1.items.0 + value: 'BGP * Rejected prefixes' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: FEFAD + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Juniper MX: BGP Advertised/Received prefixes' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: d882f2 + - type: STRING + name: ds.0.items.0 + value: 'BGP * Advertised prefixes' + - type: STRING + name: ds.1.color + value: 9bde59 + - type: STRING + name: ds.1.items.0 + value: 'BGP * Received prefixes' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: EDDBF + - type: INTEGER + name: working_time + value: '1' + - type: honeycomb + name: 'Juniper MX: BGP Peer status' + x: '18' + width: '18' + height: '5' + fields: + - type: STRING + name: bg_color + value: A5D6A7 + - type: STRING + name: items.0 + value: '*peer * Status' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: DFDBB + - type: STRING + name: secondary_label_color + value: 2334b9 + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Juniper MX: OSPF Neighbor State' + x: '36' + width: '18' + height: '5' + fields: + - type: STRING + name: bg_color + value: A5D6A7 + - type: STRING + name: items.0 + value: '*OSPF Neighbor * State' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: EDAAA + - type: STRING + name: secondary_label_color + value: 2334b9 + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: 'Juniper MX: OSPF/OSPFv3 Number of relationship' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 00c3ff + - type: STRING + name: ds.0.items.0 + value: 'OSPF Neighbor * Events' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color + value: 756dbc + - type: STRING + name: ds.1.items.0 + value: 'OSPFv3 Neighbor * Events' + - type: INTEGER + name: legend_aggregation + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: ABDDC + - type: INTEGER + name: simple_triggers + value: '1' + - type: INTEGER + name: working_time + value: '1' + - type: honeycomb + name: 'Juniper MX: OSPFv3 Neighbor State' + x: '54' + width: '18' + height: '5' + fields: + - type: STRING + name: bg_color + value: A5D6A7 + - type: STRING + name: items.0 + value: '*OSPFv3 Neighbor * State' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: EECBF + - type: STRING + name: secondary_label_color + value: 2334b9 + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + valuemaps: + - uuid: 3b94e9f3175c4822b93682636e5cf64d + name: 'BGP4-V2-MIB-JUNIPER::jnxBgpM2PeerState' + mappings: + - value: '1' + newvalue: idle + - value: '2' + newvalue: connect + - value: '3' + newvalue: active + - value: '4' + newvalue: opensent + - value: '5' + newvalue: openconfirm + - value: '6' + newvalue: established + - uuid: 6a57534ae79048229a3ed10f9f0a52e4 + name: 'BGP4-V2-MIB-JUNIPER::jnxBgpM2PeerStatus' + mappings: + - value: '1' + newvalue: halted + - value: '2' + newvalue: running + - uuid: aba24883ea0f4a569748153eb554443a + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 93ba7232ec5d47db9478d91b6bdfd01b + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: ecb1a90bea804c79aa074876a95397ae + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 71aa874db0c647f2ab6b6f6ed741efa3 + name: 'JUNIPER-MIB::jnxOperatingState' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: running + - value: '3' + newvalue: ready + - value: '4' + newvalue: reset + - value: '5' + newvalue: runningAtFullSpeed + - value: '6' + newvalue: 'down or off' + - value: '7' + newvalue: standby + - uuid: 0432e6064cae4a22bdd512d0c8900f35 + name: 'JUNIPER-MIB::jnxRedundancyState' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: master + - value: '3' + newvalue: backup + - value: '4' + newvalue: disabled + - value: '5' + newvalue: notApplicable + - uuid: 742e0675e0b84ba685b1b06172334215 + name: 'JUNIPER-MIB::jnxRedundancySwitchoverReason' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: neverSwitched + - value: '3' + newvalue: userSwitched + - value: '4' + newvalue: autoSwitched + - uuid: 5d007beac7eb4743ab241d6a1c80847a + name: 'OSPF-MIB::ospfNbrHelloSuppressed' + mappings: + - value: '1' + newvalue: 'true' + - value: '2' + newvalue: 'false' + - uuid: ed5b11312aaf44e0b888c58743e89f81 + name: 'OSPF-MIB::ospfNbrState' + mappings: + - value: '1' + newvalue: down + - value: '2' + newvalue: attempt + - value: '3' + newvalue: init + - value: '4' + newvalue: twoWay + - value: '5' + newvalue: exchangeStart + - value: '6' + newvalue: exchange + - value: '7' + newvalue: loading + - value: '8' + newvalue: full + - uuid: 1373262e914a430abe52ec79d2fc138b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: bcba269d955b452d87a6f49f7a35ed2a + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 4882bb9496ac40bc97c3c5278c0181c8 + expression: '(last(/Juniper MX by SNMP/juniper.mx.system.hw.uptime[hrSystemUptime.0])>0 and last(/Juniper MX by SNMP/juniper.mx.system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Juniper MX by SNMP/juniper.mx.system.hw.uptime[hrSystemUptime.0])=0 and last(/Juniper MX by SNMP/juniper.mx.system.net.uptime[sysUpTime.0])<10m)' + name: 'Juniper MX: Host has been restarted' + event_name: 'Juniper MX: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Juniper MX: No SNMP data collection' + expression: 'max(/Juniper MX by SNMP/zabbix[host,snmp,available],{$JUNIPER.MX.SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Juniper_by_SNMP.yaml b/Juniper_by_SNMP.yaml new file mode 100644 index 0000000..39fecbe --- /dev/null +++ b/Juniper_by_SNMP.yaml @@ -0,0 +1,1893 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: a326034825984bbd8a3a5885f3939bb3 + template: 'Juniper by SNMP' + name: 'Juniper by SNMP' + description: | + Template Net Juniper + + MIBs used: + EtherLike-MIB + JUNIPER-ALARM-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + JUNIPER-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: e5cf73357ca349818155522325a7c6bc + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d90e80fd900246dcab90447ee2a6a7a1 + expression: 'max(/Juniper by SNMP/icmpping,#3)=0' + name: 'Juniper: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 3a1c4412bb9340169827209df2554a50 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d3911ede372e4eb3b89b30e8e340a716 + expression: 'min(/Juniper by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Juniper by SNMP/icmppingloss,5m)<100' + name: 'Juniper: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Juniper: Unavailable by ICMP ping' + expression: 'max(/Juniper by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ad350f912d2f4ead90aacdefa245cdf3 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 751d9855903f4f00b674b511fe992121 + expression: 'avg(/Juniper by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Juniper: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Juniper: High ICMP ping loss' + expression: 'min(/Juniper by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Juniper by SNMP/icmppingloss,5m)<100' + - name: 'Juniper: Unavailable by ICMP ping' + expression: 'max(/Juniper by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e5470bc511a5499e9b8dc8bf4de8f054 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: b8583eaf0353493ba18e751c9355dfa7 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ca8d30d561184ff4bf1b4ef07feb7302 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7a472141ebcf4816bffe9bb49f003db6 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2636.3.1.2.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: JUNIPER-MIB + The name, model, or detailed description of the box,indicating which product the box is about, for example 'M40'. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: b836efdbd3ac4becac319030250c1beb + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2636.3.1.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: JUNIPER-MIB + The serial number of this subject, blank if unknown or unavailable. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 9f1f3316ed6f4d50a4c9f71a15f35d50 + expression: 'last(/Juniper by SNMP/system.hw.serialnumber,#1)<>last(/Juniper by SNMP/system.hw.serialnumber,#2) and length(last(/Juniper by SNMP/system.hw.serialnumber))>0' + name: 'Juniper: Device has been replaced' + event_name: 'Juniper: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 833dd7b3b4e94dc89b4e7098cec3fce2 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 7a0062fa788c4abdbeb83df30276a0fd + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 87d8d5844b044be1a2a3261f98116fb0 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 97157acd882944e29d6fb9fa1a2d9506 + expression: 'last(/Juniper by SNMP/system.name,#1)<>last(/Juniper by SNMP/system.name,#2) and length(last(/Juniper by SNMP/system.name))>0' + name: 'Juniper: System name has changed' + event_name: 'Juniper: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: bd29b0df96ac4b93bbd0746257d3601d + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: ebfd8c6f87d3401197bb8d9835206878 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 414a29c595b2439dacb15b4fa0734ab4 + name: 'Overall system health status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2636.3.4.2.3.1.0]' + key: 'system.status[jnxRedAlarmState.0]' + delay: 30s + trends: '0' + description: | + MIB: JUNIPER-ALARM-MIB + The red alarm indication on the craft interface panel. + The red alarm is on when there is some system + failure or power supply failure or the system + is experiencing a hardware malfunction or some + threshold is being exceeded. + + This red alarm state could be turned off by the + ACO/LT (Alarm Cut Off / Lamp Test) button on the + front panel module. + valuemap: + name: 'JUNIPER-ALARM-MIB::jnxRedAlarmState' + tags: + - tag: component + value: system + triggers: + - uuid: 1190bb9c05424ac5a0052bd191c274f2 + expression: 'count(/Juniper by SNMP/system.status[jnxRedAlarmState.0],#1,"eq","{$HEALTH_CRIT_STATUS}")=1' + name: 'Juniper: System status is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check the device for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 24cd5862c2de4cbaad0b3bbce7f26a65 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.sw.os[sysDescr.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: SNMPv2-MIB' + inventory_link: OS + preprocessing: + - type: REGEX + parameters: + - 'kernel (JUNOS [0-9a-zA-Z\.\-]+)' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 9249511ecf4a4a2d952aa0c4fe55a5d0 + expression: 'last(/Juniper by SNMP/system.sw.os[sysDescr.0],#1)<>last(/Juniper by SNMP/system.sw.os[sysDescr.0],#2) and length(last(/Juniper by SNMP/system.sw.os[sysDescr.0]))>0' + name: 'Juniper: Operating system description has changed' + priority: INFO + description: 'Operating system description has changed. Possible reasons that system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Juniper: System name has changed' + expression: 'last(/Juniper by SNMP/system.name,#1)<>last(/Juniper by SNMP/system.name,#2) and length(last(/Juniper by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 80ff69518e07493aac6059e1009d9a9f + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 417527b3749c4a1c891d761c0978fb2e + expression: 'max(/Juniper by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Juniper: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Juniper: Unavailable by ICMP ping' + expression: 'max(/Juniper by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 3ce46d56008248cf960c6bf689ea7c0b + name: 'CPU and Memory Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5]' + key: jnxOperatingTable.discovery + delay: 1h + filter: + conditions: + - macro: '{#SNMPVALUE}' + value: 'Routing Engine.*' + formulaid: A + description: | + Scanning JUNIPER-MIB::jnxOperatingTable for CPU and Memory + http://kb.juniper.net/InfoCenter/index?page=content&id=KB17526&actp=search. Filter limits results to Routing Engines + item_prototypes: + - uuid: 932c89bb249d412fabd3549ddcbf654e + name: '{#SNMPVALUE}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2636.3.1.13.1.8.{#SNMPINDEX}]' + key: 'system.cpu.util[jnxOperatingCPU.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: JUNIPER-MIB + The CPU utilization in percentage of this subject. Zero if unavailable or inapplicable. + Reference: http://kb.juniper.net/library/CUSTOMERSERVICE/GLOBAL_JTAC/BK26199/SRX%20SNMP%20Monitoring%20Guide_v1.1.pdf + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 248c49bc4f47437b9b91e20b57da197d + expression: 'min(/Juniper by SNMP/system.cpu.util[jnxOperatingCPU.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Juniper: {#SNMPVALUE}: High CPU utilization' + event_name: 'Juniper: {#SNMPVALUE}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: f60e29b4392e4a3e882a4175e618890c + name: '{#SNMPVALUE}: Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2636.3.1.13.1.11.{#SNMPINDEX}]' + key: 'vm.memory.util[jnxOperatingBuffer.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + description: | + MIB: JUNIPER-MIB + The buffer pool utilization in percentage of this subject. Zero if unavailable or inapplicable. + Reference: http://kb.juniper.net/library/CUSTOMERSERVICE/GLOBAL_JTAC/BK26199/SRX%20SNMP%20Monitoring%20Guide_v1.1.pdf + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: ab1f3dcba55d41da974c3ac60ca5b8f2 + expression: 'min(/Juniper by SNMP/vm.memory.util[jnxOperatingBuffer.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Juniper: {#SNMPVALUE}: High memory utilization' + event_name: 'Juniper: {#SNMPVALUE}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 7cc53c92b6be4fc59d2928e73f6fe8c3 + name: '{#SNMPVALUE}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Juniper by SNMP' + key: 'system.cpu.util[jnxOperatingCPU.{#SNMPINDEX}]' + - uuid: 646779d729d8417383eb0e1240a69767 + name: '{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Juniper by SNMP' + key: 'vm.memory.util[jnxOperatingBuffer.{#SNMPINDEX}]' + - uuid: 6e60561a198d43cf8c0fbe9a8ba1c492 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5.4]' + key: jnxOperatingTable.discovery.fans + delay: 1h + description: 'Scanning JUNIPER-MIB::jnxOperatingTable for Fans' + item_prototypes: + - uuid: be611a0c7aee4d72a0b5c53d199b7469 + name: '{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2636.3.1.13.1.6.4.{#SNMPINDEX}]' + key: 'sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: JUNIPER-MIB' + valuemap: + name: 'JUNIPER-ALARM-MIB::jnxOperatingState' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: f8f1dee0b0ff465d98c6f6bcdfaff17f + expression: 'count(/Juniper by SNMP/sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Juniper: {#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: aa36adb11a874374a739d96a2f9a0b3d + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5.2]' + key: jnxOperatingTable.discovery.psu + delay: 1h + description: 'Scanning JUNIPER-MIB::jnxOperatingTable for Power Supplies' + item_prototypes: + - uuid: c7101436ab3a4c0696cf74bc3c97c265 + name: '{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2636.3.1.13.1.6.2.{#SNMPINDEX}]' + key: 'sensor.psu.status[jnxOperatingState.2.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: JUNIPER-MIB + If they are using DC power supplies there is a known issue on PR 1064039 where the fans do not detect the temperature correctly and fail to cool the power supply causing the shutdown to occur. + This is fixed in Junos 13.3R7 https://forums.juniper.net/t5/Routing/PEM-0-not-OK-MX104/m-p/289644#M14122 + valuemap: + name: 'JUNIPER-ALARM-MIB::jnxOperatingState' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: e577226331f6483fbd1e414bb7d365f7 + expression: 'count(/Juniper by SNMP/sensor.psu.status[jnxOperatingState.2.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'Juniper: {#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e28a9bc06ada4427a7e135aa41c4f76b + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.7,{#SENSOR_INFO},1.3.6.1.4.1.2636.3.1.13.1.5]' + key: jnxOperatingTable.discovery.temp + delay: 1h + filter: + conditions: + - macro: '{#SNMPVALUE}' + value: '[^0]+' + formulaid: A + description: | + Scanning JUNIPER-MIB::jnxOperatingTable for Temperature + http://kb.juniper.net/InfoCenter/index?page=content&id=KB17526&actp=search. Filter limits results to Routing Engines + item_prototypes: + - uuid: 96f44fbce5de45e6918efd140283453b + name: '{#SENSOR_INFO}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2636.3.1.13.1.7.{#SNMPINDEX}]' + key: 'sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: JUNIPER-MIB + The temperature in Celsius (degrees C) of {#SENSOR_INFO} + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: c82ca2b550f540b7a4c8f9548e15cfb0 + expression: 'avg(/Juniper by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Juniper by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_INFO}"}-3' + name: 'Juniper: {#SENSOR_INFO}: Temperature is above critical threshold' + event_name: 'Juniper: {#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 51113c80e4bd46de8ea247e0bd3b19dd + expression: 'avg(/Juniper by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Juniper by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SENSOR_INFO}"}-3' + name: 'Juniper: {#SENSOR_INFO}: Temperature is above warning threshold' + event_name: 'Juniper: {#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Juniper: {#SENSOR_INFO}: Temperature is above critical threshold' + expression: 'avg(/Juniper by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_INFO}"}' + recovery_expression: 'max(/Juniper by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_INFO}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 35b56753b2424f0989ca09cb67f7d9a3 + expression: 'avg(/Juniper by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Juniper by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}+3' + name: 'Juniper: {#SENSOR_INFO}: Temperature is too low' + event_name: 'Juniper: {#SENSOR_INFO}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8ec2a60b8bfe43e7b9227042da1cf2ac + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 3ccc2d240a264ac59388dfcabbd0d794 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3d94079eddb141ceac3b6a134168e422 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0cde648550284243a078965f165a069a + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d440b154c6194043a657fca8c4ed3179 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e9ed9d3d6b8b4340b7f1e22ca066a61d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9c2bd3364f984af498b7bedbccc23c77 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 339529dba51f4ae5abe508a2461e0e71 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 51cda26d008e458790fd722a95072814 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c993121dca984691bd2cdf0d41c318b4 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Juniper: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 68dd9241092f4f2994d6e5d53cec96b7 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: faabf122af7e4cca8fdc6e57060b2e69 + expression: | + change(/Juniper by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Juniper by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Juniper by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Juniper by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Juniper by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Juniper by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Juniper by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Juniper by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Juniper by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Juniper by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Juniper: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Juniper: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: f937622c6f7540579a60328398430f00 + expression: | + (avg(/Juniper by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Juniper by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Juniper by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Juniper by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Juniper by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Juniper by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Juniper by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Juniper by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Juniper by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Juniper: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Juniper: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Juniper: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 5731e4345a544b45b6a70a71284b878d + expression: | + min(/Juniper by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Juniper by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Juniper by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Juniper by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Juniper: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Juniper: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Juniper: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Juniper by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: bdb09ef524a34b65aaee2c574cd77bde + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Juniper by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Juniper by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Juniper by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Juniper by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Juniper by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Juniper by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: f4446053584f49fcb1375a3a4ba537e9 + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: bbe031a739e9406bb89c028a24535dc5 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a2f686bf06cc4e0a8aa24675abd5d557 + expression: 'last(/Juniper by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'Juniper: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + tags: + - tag: class + value: network + - tag: target + value: juniper + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '6' + - macro: '{$HEALTH_CRIT_STATUS}' + value: '3' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '6' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"Routing Engine"}' + value: '80' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"Routing Engine"}' + value: '70' + dashboards: + - uuid: 1276b12d41594e38afa2308925983a50 + name: 'Juniper: General' + pages: + - name: 'Juniper: General' + widgets: + - type: graphprototype + name: 'Memory utilization' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Juniper by SNMP' + name: '{#SNMPVALUE}: Memory utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + name: 'CPU utilization' + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Juniper by SNMP' + name: '{#SNMPVALUE}: CPU utilization' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 69625f8a027542638c3ca9b64522602d + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 79269236a24e4a1d8f40a600ee1c3a65 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: f345b4dd14784f7f96902ad7f95d4038 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 64128e7f2adf44988b0ca3edd76cba61 + name: 'JUNIPER-ALARM-MIB::jnxOperatingState' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: running + - value: '3' + newvalue: ready + - value: '4' + newvalue: reset + - value: '5' + newvalue: runningAtFullSpeed + - value: '6' + newvalue: 'down or off' + - value: '7' + newvalue: standby + - uuid: 3aaa451c55cd4e72ab84b65dd8310564 + name: 'JUNIPER-ALARM-MIB::jnxRedAlarmState' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: 'off' + - value: '3' + newvalue: 'on - RedAlarm' + - uuid: e3bf54eef520492a94ad3d7bd7c3dede + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 022ceae4990140a59b2ceca83a826dd5 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 23e25e580543411ab8ffc2a4c1ca3c54 + expression: '(last(/Juniper by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Juniper by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Juniper by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Juniper by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Juniper: Host has been restarted' + event_name: 'Juniper: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Juniper: No SNMP data collection' + expression: 'max(/Juniper by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Kubernetes_API_server_by_HTTP.yaml b/Kubernetes_API_server_by_HTTP.yaml new file mode 100644 index 0000000..1763250 --- /dev/null +++ b/Kubernetes_API_server_by_HTTP.yaml @@ -0,0 +1,1280 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 85ce114c802e4e28a5f3597e07d07032 + template: 'Kubernetes API server by HTTP' + name: 'Kubernetes API server by HTTP' + description: | + Get Kubernetes API server metrics by HTTP agent from Prometheus metrics endpoint. + + Don't forget change macros {$KUBE.API.SERVER.URL}, {$KUBE.API.TOKEN}. + Some metrics may not be collected depending on your Kubernetes API server instance version and configuration. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 28944ee2c0a3478e84612cd5650f3cd5 + name: 'Request terminations, rate' + type: DEPENDENT + key: kubernetes.api.apiserver_request_terminations + delay: '0' + value_type: FLOAT + description: 'Number of requests which apiserver terminated in self-defense per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - apiserver_request_terminations_total + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - uuid: 1ac74141a4b241b196bc47d0dee37a2c + name: 'API server requests: 0' + type: DEPENDENT + key: kubernetes.api.apiserver_request_total_0.rate + delay: '0' + value_type: FLOAT + description: 'Counter of apiserver requests broken out for each HTTP response code.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'apiserver_request_total{code = "0"}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: '0' + - uuid: d7f8363e1bc5424f89c7386fcbe6fb06 + name: 'API server requests: 2xx, rate' + type: DEPENDENT + key: kubernetes.api.apiserver_request_total_200.rate + delay: '0' + value_type: FLOAT + description: 'Counter of apiserver requests broken out for each HTTP response code.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'apiserver_request_total{code =~ "2.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: 2xx + - uuid: 453852b621ca4a7cbc4d80e5327c80da + name: 'API server requests: 3xx, rate' + type: DEPENDENT + key: kubernetes.api.apiserver_request_total_300.rate + delay: '0' + value_type: FLOAT + description: 'Counter of apiserver requests broken out for each HTTP response code.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'apiserver_request_total{code =~ "3.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: 3xx + - uuid: 1f72779899f94620bc55870f5e2c2ca0 + name: 'API server requests: 4xx, rate' + type: DEPENDENT + key: kubernetes.api.apiserver_request_total_400.rate + delay: '0' + value_type: FLOAT + description: 'Counter of apiserver requests broken out for each HTTP response code.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'apiserver_request_total{code =~ "4.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: 4xx + - uuid: 1c24d58b28bc423e868a965d689cf146 + name: 'API server requests: 5xx, rate' + type: DEPENDENT + key: kubernetes.api.apiserver_request_total_500.rate + delay: '0' + value_type: FLOAT + description: 'Counter of apiserver requests broken out for each HTTP response code.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'apiserver_request_total{code =~ "5.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: 5xx + triggers: + - uuid: 0e1ef1630b5d4cb98270564f324f5382 + expression: 'min(/Kubernetes API server by HTTP/kubernetes.api.apiserver_request_total_500.rate,5m)>{$KUBE.API.HTTP.SERVER.ERROR}' + name: 'Kubernetes API server: Too many server errors' + event_name: 'Kubernetes API server: Too many server errors (over {$KUBE.API.HTTP.SERVER.ERROR} for 5m)' + priority: WARNING + description: '"Kubernetes API server is experiencing high error rate (with 5xx HTTP code).' + tags: + - tag: scope + value: availability + - uuid: 5bd8b2deaf1142369ba67afc7a41ab11 + name: 'TLS handshake errors, rate' + type: DEPENDENT + key: kubernetes.api.apiserver_tls_handshake_errors_total.rate + delay: '0' + value_type: FLOAT + description: 'Number of requests dropped with ''TLS handshake error from'' error per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - apiserver_tls_handshake_errors_total + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: tls + - uuid: 54723f57a20a47a698fbf47cbec0f7a1 + name: 'Audit events, total' + type: DEPENDENT + key: kubernetes.api.audit_event_total + delay: '0' + value_type: FLOAT + description: 'Accumulated number audit events generated and sent to the audit backend.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - apiserver_audit_event_total + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: audit + - uuid: de87284b8bd644398e4a88a064e206bb + name: CPU + type: DEPENDENT + key: kubernetes.api.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'Total user and system CPU usage ratio.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_cpu_seconds_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: cpu + - uuid: e4e3c570a55a48689c145c4a2310c597 + name: 'Get API instance metrics' + type: HTTP_AGENT + key: kubernetes.api.get_metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get raw metrics from API instance /metrics endpoint.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + url: '{$KUBE.API.SERVER.URL}' + headers: + - name: Authorization + value: 'Bearer {$KUBE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 79db985ac8f645999fe8aa73b4073bfb + name: Goroutines + type: DEPENDENT + key: kubernetes.api.go_goroutines + delay: '0' + value_type: FLOAT + description: 'Number of goroutines that currently exist.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - go_goroutines + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: goroutines + - uuid: 2022d65c2f7a4f07bc1cba435a2be1e9 + name: 'Go threads' + type: DEPENDENT + key: kubernetes.api.go_threads + delay: '0' + value_type: FLOAT + description: 'Number of OS threads created.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - go_threads + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: go-threads + - uuid: 837c546cb3bc400ab7a62a672792f88b + name: 'gRPCs messages received, rate' + type: DEPENDENT + key: kubernetes.api.grpc_client_msg_received.rate + delay: '0' + value_type: FLOAT + description: 'Total number of gRPC stream messages received per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - grpc_client_msg_received_total + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: grpc + - uuid: 353559f3b9684647a74bd429d80731b9 + name: 'gRPCs messages sent, rate' + type: DEPENDENT + key: kubernetes.api.grpc_client_msg_sent.rate + delay: '0' + value_type: FLOAT + description: 'Total number of gRPC stream messages sent per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - grpc_client_msg_sent_total + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: grpc + - uuid: 0850afe759684950be79135ed4f32c79 + name: 'gRPCs client started, rate' + type: DEPENDENT + key: kubernetes.api.grpc_client_started.rate + delay: '0' + value_type: FLOAT + description: 'Total number of RPCs started per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - grpc_client_started_total + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: grpc + - uuid: 187702b1c3a24d07aaf9cc07fa359095 + name: 'Fds max' + type: DEPENDENT + key: kubernetes.api.max_fds + delay: '0' + value_type: FLOAT + description: 'Maximum allowed open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_max_fds + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: fds + - uuid: 41f802305a234b1ab9fb0e89d1e40290 + name: 'Fds open' + type: DEPENDENT + key: kubernetes.api.open_fds + delay: '0' + value_type: FLOAT + description: 'Number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_open_fds + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: fds + - uuid: 53fd5211b6da47d3b3fc87ab8a2d0c33 + name: 'Resident memory, bytes' + type: DEPENDENT + key: kubernetes.api.process_resident_memory_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Resident memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_resident_memory_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: memory + - uuid: 010a983426c9407eb4b6bf7822b411ce + name: 'Virtual memory, bytes' + type: DEPENDENT + key: kubernetes.api.process_virtual_memory_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Virtual memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_virtual_memory_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: memory + - uuid: 3f15d60ef7cb4a068424d5835d04a817 + name: 'HTTP requests: 2xx, rate' + type: DEPENDENT + key: kubernetes.api.rest_client_requests_total_200.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 2xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "2.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: 2xx + - uuid: 450607dda045428fb6d4a96ca8888c19 + name: 'HTTP requests: 3xx, rate' + type: DEPENDENT + key: kubernetes.api.rest_client_requests_total_300.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 3xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "3.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: 3xx + - uuid: f11b87e0bc5a41ff956391b6cb7115c5 + name: 'HTTP requests: 4xx, rate' + type: DEPENDENT + key: kubernetes.api.rest_client_requests_total_400.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 4xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "4.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: 4xx + - uuid: 2588c2332fea48f8bae414e8b7c42184 + name: 'HTTP requests: 5xx, rate' + type: DEPENDENT + key: kubernetes.api.rest_client_requests_total_500.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 5xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "5.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: http-code + value: 5xx + triggers: + - uuid: 4c79888da91448738092c86e5f427a6a + expression: 'min(/Kubernetes API server by HTTP/kubernetes.api.rest_client_requests_total_500.rate,5m)>{$KUBE.API.HTTP.CLIENT.ERROR}' + name: 'Kubernetes API server: Too many client errors' + event_name: 'Kubernetes API server: Too many client errors (over {$KUBE.API.HTTP.CLIENT.ERROR} for 5m)' + priority: WARNING + description: '"Kubernetes API client is experiencing high error rate (with 5xx HTTP code).' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 22c5e2a84d9542c1905d0c20f4ca6700 + name: 'Watchers metrics discovery' + type: DEPENDENT + key: kubernetes.api.apiserver_registered_watchers.discovery + delay: '0' + description: 'Discovery watchers by kind.' + item_prototypes: + - uuid: 09d0815f893c42c1b95721f7f908940a + name: 'Watchers: {#KIND}' + type: DEPENDENT + key: 'kubernetes.api.apiserver_registered_watchers["{#KIND}"]' + delay: '0' + value_type: FLOAT + description: 'Number of currently registered watchers for a given resource.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'apiserver_registered_watchers{kind = "{#KIND}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: watchers + - tag: kind + value: '{#KIND}' + master_item: + key: kubernetes.api.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'apiserver_registered_watchers{kind =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var kind = item.labels.kind; + if (!(lookup[kind])) { + lookup[kind] = 1; + result.push({ '{#KIND}': kind }); + } + }); + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 45ad0dd7331d4b9391d26b78838b0433 + name: 'Authentication requests discovery' + type: DEPENDENT + key: kubernetes.api.authenticated_user_requests.discovery + delay: '0' + description: 'Discovery authentication attempts by name.' + item_prototypes: + - uuid: 6950d30d0b1d4162acee45f184453fbd + name: 'Authenticated requests: {#NAME}, rate' + type: DEPENDENT + key: 'kubernetes.api.authenticated_user_requests.rate["{#NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Counter of authenticated requests broken out by username per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'authenticated_user_requests{result = "{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: authentication + - tag: name + value: '{#NAME}' + master_item: + key: kubernetes.api.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'authenticated_user_requests{username =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var name = item.labels.username; + if (!(lookup[result])) { + lookup[name] = 1; + result.push({ '{#NAME}': name }); + } + }); + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: ca23c310c71f4e88891ceae883527389 + name: 'Authentication attempts discovery' + type: DEPENDENT + key: kubernetes.api.authentication_attempts.discovery + delay: '0' + description: 'Discovery authentication attempts by result.' + item_prototypes: + - uuid: d9ddaa016a7c4ca381fbe857959dd0fd + name: 'Authentication attempts: {#RESULT}, rate' + type: DEPENDENT + key: 'kubernetes.api.authentication_attempts.rate["{#RESULT}"]' + delay: '0' + value_type: FLOAT + description: 'Authentication attempts by result per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'authentication_attempts{result = "{#RESULT}"}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: authentication + - tag: result + value: '{#RESULT}' + master_item: + key: kubernetes.api.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'authentication_attempts{result =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var result_api = item.labels.result; + if (!(lookup[result])) { + lookup[result_api] = 1; + result.push({ '{#RESULT}': result_api }); + } + }); + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 8dcd7c95a9364efdb2fe64c651360ad4 + name: 'Etcd objects metrics discovery' + type: DEPENDENT + key: kubernetes.api.etcd_object_counts.discovery + delay: '0' + description: 'Discovery etcd objects by resource.' + item_prototypes: + - uuid: 75c15b57189d4cbeb6ed6397fc377e2a + name: 'etcd objects: {#RESOURCE}' + type: DEPENDENT + key: 'kubernetes.api.etcd_object_counts["{#RESOURCE}"]' + delay: '0' + value_type: FLOAT + description: 'Number of stored objects at the time of last check split by kind.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'etcd_object_counts{ resource = "{#RESOURCE}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: etcd + - tag: resource + value: '{#RESOURCE}' + master_item: + key: kubernetes.api.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'etcd_object_counts{resource =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var resource = item.labels.resource; + if (!(lookup[resource])) { + lookup[resource] = 1; + result.push({ '{#RESOURCE}': resource }); + } + }); + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 099e6ff46075457cba6b669a5880ceef + name: 'gRPC completed requests discovery' + type: DEPENDENT + key: kubernetes.api.grpc_client_handled.discovery + delay: '0' + description: 'Discovery grpc completed requests by grpc code.' + item_prototypes: + - uuid: 690dc00ad92d44d0b9bc7db58c07bd8f + name: 'gRPCs completed: {#GRPC_CODE}, rate' + type: DEPENDENT + key: 'kubernetes.api.grpc_client_handled_total.rate["{#GRPC_CODE}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of RPCs completed by the client regardless of success or failure per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'grpc_client_handled_total{grpc_code = "{#GRPC_CODE}"}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: grpc + - tag: grpc-code + value: '{#GRPC_CODE}' + master_item: + key: kubernetes.api.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'grpc_client_handled_total{grpc_code =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var grpc_code = item.labels.grpc_code; + if (!(lookup[grpc_code])) { + lookup[grpc_code] = 1; + result.push({ '{#GRPC_CODE}': grpc_code }); + } + }); + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 948e1d84d44642a78f59c92271a21a68 + name: 'Requests inflight discovery' + type: DEPENDENT + key: kubernetes.api.inflight_requests.discovery + delay: '0' + description: 'Discovery requests inflight by kind.' + item_prototypes: + - uuid: 5076679154cc464ebab0b678f65c8853 + name: 'Requests current: {#KIND}' + type: DEPENDENT + key: 'kubernetes.api.current_inflight_requests["{#KIND}"]' + delay: '0' + value_type: FLOAT + description: 'Maximal number of currently used inflight request limit of this apiserver per request kind in last second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'apiserver_current_inflight_requests{request_kind = "{#KIND}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: kind + value: '{#KIND}' + master_item: + key: kubernetes.api.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'apiserver_current_inflight_requests{request_kind =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var request_kind = item.labels.request_kind; + if (!(lookup[request_kind])) { + lookup[request_kind] = 1; + result.push({ '{#KIND}': request_kind }); + } + }); + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 7cd3ef5e2c874db18088b3531c944b25 + name: 'Long-running requests' + type: DEPENDENT + key: kubernetes.api.longrunning_gauge.discovery + delay: '0' + description: 'Discovery of long-running requests by verb, resource and scope.' + item_prototypes: + - uuid: feee53d3fc69401ba359ecd97788e552 + name: 'Long-running ["{#VERB}"] requests ["{#RESOURCE}"]: {#SCOPE}' + type: DEPENDENT + key: 'kubernetes.api.longrunning_gauge["{#RESOURCE}","{#SCOPE}","{#VERB}"]' + delay: '0' + value_type: FLOAT + description: 'Gauge of all active long-running apiserver requests broken out by verb, resource and scope. Not all requests are tracked this way.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'apiserver_longrunning_gauge{resource = "{#RESOURCE}", scope = "{#SCOPE}", verb = "{#VERB}"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: resource + value: '{#RESOURCE}' + - tag: scope + value: '{#SCOPE}' + - tag: verb + value: '{#VERB}' + master_item: + key: kubernetes.api.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'apiserver_longrunning_gauge{resource =~ ".*", scope =~ ".*", verb =~ ".*"}' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var request_kind = item.labels.resource + item.labels.scope + item.labels.verb; + if (!(lookup[request_kind])) { + lookup[request_kind] = 1; + result.push({ + '{#RESOURCE}': item.labels.resource, + '{#SCOPE}': item.labels.scope, + '{#VERB}': item.labels.verb + }); + } + }); + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 7c5ffdbafc5e4e349cc62ed0d0c0f20f + name: 'Request duration histogram' + type: DEPENDENT + key: kubernetes.api.requests_bucket.discovery + delay: '0' + description: 'Discovery raw data and percentile items of request duration.' + item_prototypes: + - uuid: 5135a1bc92514c79965edea9d7d2a47e + name: '["{#VERB}"] Requests bucket: {#LE}' + type: DEPENDENT + key: 'kubernetes.api.request_duration_seconds_bucket[{#LE},"{#VERB}"]' + delay: '0' + history: 1h + value_type: FLOAT + trends: '0' + discover: NO_DISCOVER + description: 'Response latency distribution in seconds for each verb.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'apiserver_request_duration_seconds_bucket{le="{#LE}",verb="{#VERB}"}' + - function + - sum + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: requests + - tag: verb + value: '{#VERB}' + - uuid: a4f39bb87ef248edbb578c0c89baba46 + name: '["{#VERB}"] Requests, p50' + type: CALCULATED + key: 'kubernetes.api.request_duration_seconds_p50["{#VERB}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.api.request_duration_seconds_bucket[*,"{#VERB}"],5m,50)' + description: '50 percentile of response latency distribution in seconds for each verb.' + tags: + - tag: component + value: requests + - tag: verb + value: '{#VERB}' + - uuid: 12d65aff584e459586284967e570fc0a + name: '["{#VERB}"] Requests, p90' + type: CALCULATED + key: 'kubernetes.api.request_duration_seconds_p90["{#VERB}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.api.request_duration_seconds_bucket[*,"{#VERB}"],5m,90)' + description: '90 percentile of response latency distribution in seconds for each verb.' + tags: + - tag: component + value: requests + - tag: verb + value: '{#VERB}' + - uuid: 3e900f1e4cab4edba4d068f1b6759428 + name: '["{#VERB}"] Requests, p95' + type: CALCULATED + key: 'kubernetes.api.request_duration_seconds_p95["{#VERB}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.api.request_duration_seconds_bucket[*,"{#VERB}"],5m,95)' + description: '95 percentile of response latency distribution in seconds for each verb.' + tags: + - tag: component + value: requests + - tag: verb + value: '{#VERB}' + - uuid: a34c3c5f5f844c46a4d3f148cacd3fd3 + name: '["{#VERB}"] Requests, p99' + type: CALCULATED + key: 'kubernetes.api.request_duration_seconds_p99["{#VERB}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.api.request_duration_seconds_bucket[*,"{#VERB}"],5m,99)' + description: '99 percentile of response latency distribution in seconds for each verb.' + tags: + - tag: component + value: requests + - tag: verb + value: '{#VERB}' + graph_prototypes: + - uuid: a974cb068f184b7385bf5eb2e4ba084a + name: 'Kubernetes API: ["{#VERB}"] Requests latency' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes API server by HTTP' + key: 'kubernetes.api.request_duration_seconds_p90["{#VERB}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes API server by HTTP' + key: 'kubernetes.api.request_duration_seconds_p95["{#VERB}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Kubernetes API server by HTTP' + key: 'kubernetes.api.request_duration_seconds_p99["{#VERB}"]' + - sortorder: '3' + color: F7941D + item: + host: 'Kubernetes API server by HTTP' + key: 'kubernetes.api.request_duration_seconds_p50["{#VERB}"]' + master_item: + key: kubernetes.api.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~ "apiserver_request_duration_*", verb =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + lookup_histogram = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + if (item.name === 'apiserver_request_duration_seconds_count') { + var label_verb = item.labels.verb; + if (lookup[label_verb]) { + return; + } + lookup[label_verb] = 1; + result.push({ + '{#TYPE}': 'totals', + '{#VERB}': label_verb + }); + + } + else if (item.name === 'apiserver_request_duration_seconds_bucket') { + var labels = item.labels.verb + item.labels.le; + + if (lookup_histogram[labels]) { + return; + } + + lookup_histogram[labels] = 1; + result.push({ + '{#TYPE}': 'buckets', + '{#VERB}': item.labels.verb, + '{#LE}': item.labels.le + }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'bucket item' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: buckets + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: bucket + discover: DISCOVER + - name: 'total item' + step: '2' + filter: + conditions: + - macro: '{#TYPE}' + value: totals + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: NOT_LIKE + value: bucket + discover: DISCOVER + - uuid: d015cafd6e9f4707bb78125ff17cc679 + name: 'Workqueue metrics discovery' + type: DEPENDENT + key: kubernetes.api.workqueue.discovery + delay: '0' + description: 'Discovery workqueue metrics by name.' + item_prototypes: + - uuid: cf58e773a5684eafa74b56ed43490148 + name: '["{#NAME}"] Workqueue adds total, rate' + type: DEPENDENT + key: 'kubernetes.api.workqueue_adds_total.rate["{#NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of adds handled by workqueue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'workqueue_adds_total{name = "{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: 4fe45ff01cdf4bdf85e74a52d2d3b917 + name: '["{#NAME}"] Workqueue depth' + type: DEPENDENT + key: 'kubernetes.api.workqueue_depth["{#NAME}"]' + delay: '0' + value_type: FLOAT + description: 'Current depth of workqueue.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'workqueue_depth{name = "{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.api.get_metrics + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + master_item: + key: kubernetes.api.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'workqueue_adds_total{name =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var name = item.labels.name; + if (!(lookup[name])) { + lookup[name] = 1; + result.push({ '{#NAME}': name }); + } + }); + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: software + - tag: target + value: api-server + - tag: target + value: kubernetes + macros: + - macro: '{$KUBE.API.HTTP.CLIENT.ERROR}' + value: '2' + description: 'Maximum number of HTTP client requests failures used for trigger.' + - macro: '{$KUBE.API.HTTP.SERVER.ERROR}' + value: '2' + description: 'Maximum number of HTTP server requests failures used for trigger.' + - macro: '{$KUBE.API.SERVER.URL}' + value: 'https://localhost:6443/metrics' + description: 'Kubernetes API server metrics endpoint URL.' + - macro: '{$KUBE.API.TOKEN}' + description: 'API Authorization Token.' + dashboards: + - uuid: 5dd45bdfb5ed45bd9e3b26f01806820f + name: 'API server overview' + pages: + - name: 'HTTP requests rate' + widgets: + - type: graph + width: '72' + height: '10' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Kubernetes API server by HTTP' + name: 'Kubernetes API: HTTP requests rate' + - type: STRING + name: reference + value: AAAAA + - name: 'Requests duration histogram' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Kubernetes API server by HTTP' + name: 'Kubernetes API: ["{#VERB}"] Requests latency' + - type: STRING + name: reference + value: AAAAB + graphs: + - uuid: 749ed49ec625449db0a345d639f7d8fd + name: 'Kubernetes API: HTTP requests rate' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes API server by HTTP' + key: kubernetes.api.apiserver_request_total_200.rate + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes API server by HTTP' + key: kubernetes.api.rest_client_requests_total_200.rate + - sortorder: '2' + color: 00611C + item: + host: 'Kubernetes API server by HTTP' + key: kubernetes.api.apiserver_request_total_300.rate + - sortorder: '3' + color: F7941D + item: + host: 'Kubernetes API server by HTTP' + key: kubernetes.api.rest_client_requests_total_300.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'Kubernetes API server by HTTP' + key: kubernetes.api.apiserver_request_total_400.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'Kubernetes API server by HTTP' + key: kubernetes.api.rest_client_requests_total_400.rate + - sortorder: '6' + color: C7A72D + item: + host: 'Kubernetes API server by HTTP' + key: kubernetes.api.apiserver_request_total_500.rate + - sortorder: '7' + color: BA2A5D + item: + host: 'Kubernetes API server by HTTP' + key: kubernetes.api.rest_client_requests_total_500.rate + - sortorder: '8' + color: F230E0 + item: + host: 'Kubernetes API server by HTTP' + key: kubernetes.api.apiserver_request_total_0.rate diff --git a/Kubernetes_Controller_manager_by_HTTP.yaml b/Kubernetes_Controller_manager_by_HTTP.yaml new file mode 100644 index 0000000..7136221 --- /dev/null +++ b/Kubernetes_Controller_manager_by_HTTP.yaml @@ -0,0 +1,860 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 2420a8a4fda74fbc81743aed69fafa3b + template: 'Kubernetes Controller manager by HTTP' + name: 'Kubernetes Controller manager by HTTP' + description: | + Get Kubernetes Controller manager metrics by HTTP agent from Prometheus metrics endpoint. + + Don't forget change macros {$KUBE.API.SERVER.URL}. + Some metrics may not be collected depending on your Kubernetes Controller manager instance version and configuration. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 774693b22f844424a93f6a56001c8cba + name: 'REST Client requests: 2xx, rate' + type: DEPENDENT + key: kubernetes.controller.client_http_requests_200.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 2xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "2.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: rest + - tag: http-code + value: 2xx + - uuid: ace0d156101b481d9f53c3f48e84bd38 + name: 'REST Client requests: 3xx, rate' + type: DEPENDENT + key: kubernetes.controller.client_http_requests_300.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 3xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "3.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: rest + - tag: http-code + value: 3xx + - uuid: c6b67e4330184ca98281773c69925d98 + name: 'REST Client requests: 4xx, rate' + type: DEPENDENT + key: kubernetes.controller.client_http_requests_400.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 4xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "4.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: rest + - tag: http-code + value: 4xx + - uuid: ac6397e9f62749199f857e6c859daa59 + name: 'REST Client requests: 5xx, rate' + type: DEPENDENT + key: kubernetes.controller.client_http_requests_500.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 5xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "5.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: rest + - tag: http-code + value: 5xx + triggers: + - uuid: 13c32daebddd454bb5908a9a27c3a76f + expression: 'min(/Kubernetes Controller manager by HTTP/kubernetes.controller.client_http_requests_500.rate,5m)>{$KUBE.CONTROLLER.HTTP.CLIENT.ERROR}' + name: 'Kubernetes Controller manager: Too many HTTP client errors' + event_name: 'Kubernetes Controller manager: Too many HTTP client errors (over {$KUBE.CONTROLLER.HTTP.CLIENT.ERROR} for 5m)' + priority: WARNING + description: '"Kubernetes Controller manager is experiencing high error rate (with 5xx HTTP code).' + tags: + - tag: scope + value: availability + - uuid: 6bde8365469f47359fcc5716207b8870 + name: CPU + type: DEPENDENT + key: kubernetes.controller.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'Total user and system CPU usage ratio.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_cpu_seconds_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: cpu + - uuid: c684929ea8444a6aa24f1fb80812a6eb + name: 'Kubernetes Controller: Get Controller metrics' + type: HTTP_AGENT + key: kubernetes.controller.get_metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get raw metrics from Controller instance /metrics endpoint.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + url: '{$KUBE.CONTROLLER.SERVER.URL}' + headers: + - name: Authorization + value: 'Bearer {$KUBE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 8e4f98354c89410ebad42af485e3f710 + name: Goroutines + type: DEPENDENT + key: kubernetes.controller.go_goroutines + delay: '0' + value_type: FLOAT + description: 'Number of goroutines that currently exist.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - go_goroutines + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: goroutines + - uuid: f30ba3d8679b4ffd86a20427892da228 + name: 'Go threads' + type: DEPENDENT + key: kubernetes.controller.go_threads + delay: '0' + value_type: FLOAT + description: 'Number of OS threads created.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - go_threads + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: go-threads + - uuid: b9ef0724331f4f9da830c470b8e2fea1 + name: 'Leader election status' + type: DEPENDENT + key: kubernetes.controller.leader_election_master_status + delay: '0' + value_type: FLOAT + description: 'Gauge of if the reporting system is master of the relevant lease, 0 indicates backup, 1 indicates master.' + valuemap: + name: 'Leader status' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - leader_election_master_status + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: leader + - uuid: 5bb0657b329c44e6a7a6dd169551205b + name: 'Fds max' + type: DEPENDENT + key: kubernetes.controller.max_fds + delay: '0' + value_type: FLOAT + description: 'Maximum allowed open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_max_fds + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: fds + - uuid: 43698df9a76c410792f0fdb9d41ee42c + name: 'Fds open' + type: DEPENDENT + key: kubernetes.controller.open_fds + delay: '0' + value_type: FLOAT + description: 'Number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_open_fds + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: fds + - uuid: 7497f4f8d1d8422dad301d9d25b42150 + name: 'Resident memory, bytes' + type: DEPENDENT + key: kubernetes.controller.process_resident_memory_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Resident memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_resident_memory_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: memory + - uuid: 884a7a4de05548ffbdf14629bbe5d181 + name: 'Virtual memory, bytes' + type: DEPENDENT + key: kubernetes.controller.process_virtual_memory_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Virtual memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_virtual_memory_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: memory + discovery_rules: + - uuid: 3117060c51564c2e897e3194821b137f + name: 'Workqueue metrics discovery' + type: DEPENDENT + key: kubernetes.controller.workqueue.discovery + delay: '0' + item_prototypes: + - uuid: 70277a128a254462ad0bf7a023738ba0 + name: '["{#NAME}"]: Workqueue duration seconds bucket, {#LE}' + type: DEPENDENT + key: 'kubernetes.controller.duration_seconds_bucket[{#LE},"{#NAME}"]' + delay: '0' + history: 1h + value_type: FLOAT + trends: '0' + discover: NO_DISCOVER + description: 'How long in seconds processing an item from workqueue takes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'workqueue_work_duration_seconds_bucket{name = "{#NAME}",le = "{#LE}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: 8357905c82ea42b98d686eee2d9c35f6 + name: '["{#NAME}"]: Queue duration seconds bucket, {#LE}' + type: DEPENDENT + key: 'kubernetes.controller.queue_duration_seconds_bucket[{#LE},"{#NAME}"]' + delay: '0' + history: 1h + value_type: FLOAT + trends: '0' + discover: NO_DISCOVER + description: 'How long in seconds an item stays in workqueue before being requested.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'workqueue_queue_duration_seconds_bucket{name = "{#NAME}",le = "{#LE}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: 940dc936417849c7aed7ae824883fdaf + name: '["{#NAME}"]: Workqueue adds total, rate' + type: DEPENDENT + key: 'kubernetes.controller.workqueue_adds_total["{#NAME}"]' + delay: '0' + value_type: FLOAT + discover: NO_DISCOVER + description: 'Total number of adds handled by workqueue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'workqueue_adds_total{name = "{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: 7edfab667cdf41908bd551c0a25e4adc + name: '["{#NAME}"]: Workqueue depth' + type: DEPENDENT + key: 'kubernetes.controller.workqueue_depth["{#NAME}"]' + delay: '0' + value_type: FLOAT + discover: NO_DISCOVER + description: 'Current depth of workqueue.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'workqueue_depth{name = "{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: 9a510f3b3d3547c1817b72e38340ccd2 + name: '["{#NAME}"]: Workqueue longest running processor, sec' + type: DEPENDENT + key: 'kubernetes.controller.workqueue_longest_running_processor_seconds["{#NAME}"]' + delay: '0' + value_type: FLOAT + discover: NO_DISCOVER + units: s + description: 'How many seconds has the longest running processor for workqueue been running.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'workqueue_longest_running_processor_seconds{name = "{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: 0657d0741d5649a2b0ad87c2f39dc243 + name: '["{#NAME}"]: Workqueue queue duration, 50p' + type: CALCULATED + key: 'kubernetes.controller.workqueue_queue_duration_seconds_p50["{#NAME}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.controller.queue_duration_seconds_bucket[*,"{#NAME}"],5m,50)' + description: '50 percentile of how long in seconds an item stays in workqueue before being requested. If there are no requests for 5 minute, item value will be discarded.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: 9f976d181b7f4776a271e683d9efd396 + name: '["{#NAME}"]: Workqueue queue duration, p90' + type: CALCULATED + key: 'kubernetes.controller.workqueue_queue_duration_seconds_p90["{#NAME}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.controller.queue_duration_seconds_bucket[*,"{#NAME}"],5m,90)' + description: '90 percentile of how long in seconds an item stays in workqueue before being requested, by queue.' + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: ce4b9daa161742ffb6fec0790c1dc689 + name: '["{#NAME}"]: Workqueue queue duration, p95' + type: CALCULATED + key: 'kubernetes.controller.workqueue_queue_duration_seconds_p95["{#NAME}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.controller.queue_duration_seconds_bucket[*,"{#NAME}"],5m,95)' + description: '95 percentile of how long in seconds an item stays in workqueue before being requested, by queue.' + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: 61d5f616cc474ae3adfcbd1a15fdd607 + name: '["{#NAME}"]: Workqueue queue duration, p99' + type: CALCULATED + key: 'kubernetes.controller.workqueue_queue_duration_seconds_p99["{#NAME}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.controller.queue_duration_seconds_bucket[*,"{#NAME}"],5m,99)' + description: '99 percentile of how long in seconds an item stays in workqueue before being requested, by queue.' + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: a4e25b0e8cd340d48e098b89ffcdd49a + name: '["{#NAME}"]: Workqueue retries, rate' + type: DEPENDENT + key: 'kubernetes.controller.workqueue_retries_total["{#NAME}"]' + delay: '0' + value_type: FLOAT + discover: NO_DISCOVER + description: 'Total number of retries handled by workqueue per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'workqueue_retries_total{name = "{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: e230e1573f4042b088a8a4b2e3998d43 + name: '["{#NAME}"]: Workqueue unfinished work, sec' + type: DEPENDENT + key: 'kubernetes.controller.workqueue_unfinished_work_seconds["{#NAME}"]' + delay: '0' + value_type: FLOAT + discover: NO_DISCOVER + units: s + description: 'How many seconds of work has done that is in progress and hasn''t been observed by work_duration. Large values indicate stuck threads. One can deduce the number of stuck threads by observing the rate at which this increases.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'workqueue_unfinished_work_seconds{name = "{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.controller.get_metrics + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: 68efc8bc4fec458384e21b7b19db696c + name: '["{#NAME}"]: Workqueue work duration, 50p' + type: CALCULATED + key: 'kubernetes.controller.workqueue_work_duration_seconds_p50["{#NAME}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.controller.duration_seconds_bucket[*,"{#NAME}"],5m,50)' + description: '50 percentiles of how long in seconds processing an item from workqueue takes, by queue.' + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: ff4f4b222dfd47f69b96513fed4393f5 + name: '["{#NAME}"]: Workqueue work duration, p90' + type: CALCULATED + key: 'kubernetes.controller.workqueue_work_duration_seconds_p90["{#NAME}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.controller.duration_seconds_bucket[*,"{#NAME}"],5m,90)' + description: '90 percentile of how long in seconds processing an item from workqueue takes, by queue.' + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: 34a688601a404d63aea3a774a9f5970a + name: '["{#NAME}"]: Workqueue work duration, p95' + type: CALCULATED + key: 'kubernetes.controller.workqueue_work_duration_seconds_p95["{#NAME}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.controller.duration_seconds_bucket[*,"{#NAME}"],5m,95)' + description: '95 percentile of how long in seconds processing an item from workqueue takes, by queue.' + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + - uuid: e5b4ea49906e4a12b01757854a5766a4 + name: '["{#NAME}"]: Workqueue work duration, p99' + type: CALCULATED + key: 'kubernetes.controller.workqueue_work_duration_seconds_p99["{#NAME}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.controller.duration_seconds_bucket[*,"{#NAME}"],5m,99)' + description: '99 percentile of how long in seconds processing an item from workqueue takes, by queue.' + tags: + - tag: component + value: workqueue + - tag: workqueue + value: '{#NAME}' + graph_prototypes: + - uuid: 40113b2f3fe04e9dbfd4d6dc204be7ce + name: 'Kubernetes Controller Manager: ["{#NAME}"] Workqueue add rate' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Controller manager by HTTP' + key: 'kubernetes.controller.workqueue_adds_total["{#NAME}"]' + - uuid: 99bd6b4904964738a2ba7f165cc78d9c + name: 'Kubernetes Controller Manager: ["{#NAME}"] Workqueue depth' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Controller manager by HTTP' + key: 'kubernetes.controller.workqueue_depth["{#NAME}"]' + - uuid: 4f823f87056b42d29a284f8e2614b76f + name: 'Kubernetes Controller Manager: ["{#NAME}"] Workqueue latency' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Controller manager by HTTP' + key: 'kubernetes.controller.workqueue_queue_duration_seconds_p95["{#NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes Controller manager by HTTP' + key: 'kubernetes.controller.workqueue_queue_duration_seconds_p99["{#NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Kubernetes Controller manager by HTTP' + key: 'kubernetes.controller.workqueue_queue_duration_seconds_p90["{#NAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'Kubernetes Controller manager by HTTP' + key: 'kubernetes.controller.workqueue_queue_duration_seconds_p50["{#NAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Kubernetes Controller manager by HTTP' + key: 'kubernetes.controller.workqueue_work_duration_seconds_p95["{#NAME}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Kubernetes Controller manager by HTTP' + key: 'kubernetes.controller.workqueue_work_duration_seconds_p99["{#NAME}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'Kubernetes Controller manager by HTTP' + key: 'kubernetes.controller.workqueue_work_duration_seconds_p90["{#NAME}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'Kubernetes Controller manager by HTTP' + key: 'kubernetes.controller.workqueue_work_duration_seconds_p50["{#NAME}"]' + master_item: + key: kubernetes.controller.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~ "workqueue_*", name =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + if (item.name === 'workqueue_adds_total') { + var label_name = item.labels.name; + + if (lookup[label_name]) { + return; + } + lookup[label_name] = 1; + result.push({ + '{#TYPE}': 'totals', + '{#NAME}': label_name + }); + } + else if (item.name === 'workqueue_work_duration_seconds_bucket') { + result.push({ + '{#TYPE}': 'buckets', + '{#NAME}': item.labels.name, + '{#LE}': item.labels.le + }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'bucket item' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: buckets + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: bucket + discover: DISCOVER + - name: 'total item' + step: '2' + filter: + conditions: + - macro: '{#TYPE}' + value: totals + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: NOT_LIKE + value: bucket + discover: DISCOVER + tags: + - tag: class + value: software + - tag: target + value: controller-manager + - tag: target + value: kubernetes + macros: + - macro: '{$KUBE.API.TOKEN}' + description: 'API Authorization Token' + - macro: '{$KUBE.CONTROLLER.HTTP.CLIENT.ERROR}' + value: '2' + description: 'Maximum number of HTTP client requests failures used for trigger.' + - macro: '{$KUBE.CONTROLLER.SERVER.URL}' + value: 'https://localhost:10257/metrics' + description: 'Kubernetes Controller manager metrics endpoint URL.' + dashboards: + - uuid: 9e088e468b7048698e737f5b4719ce33 + name: 'Controller Manager overview' + pages: + - name: General + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Kubernetes Controller manager by HTTP' + name: 'Kubernetes Controller Manager: Memory usage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Kubernetes Controller manager by HTTP' + name: 'Kubernetes Controller Manager: REST Client query rate' + - type: STRING + name: reference + value: AAAAB + - name: 'Workqueue metrics' + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Kubernetes Controller manager by HTTP' + name: 'Kubernetes Controller Manager: ["{#NAME}"] Workqueue add rate' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Kubernetes Controller manager by HTTP' + name: 'Kubernetes Controller Manager: ["{#NAME}"] Workqueue depth' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + 'y': '10' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Kubernetes Controller manager by HTTP' + name: 'Kubernetes Controller Manager: ["{#NAME}"] Workqueue latency' + - type: STRING + name: reference + value: AAAAE + valuemaps: + - uuid: fa1732213d27418a88a61c964d93e9d7 + name: 'Leader status' + mappings: + - value: '0' + newvalue: backup + - value: '1' + newvalue: master + graphs: + - uuid: 23af35d1d9af40e2ace1915ab8df7eec + name: 'Kubernetes Controller Manager: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Controller manager by HTTP' + key: kubernetes.controller.process_virtual_memory_bytes + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes Controller manager by HTTP' + key: kubernetes.controller.process_resident_memory_bytes + - uuid: 908af34b10044af9b028e5e024eb89b3 + name: 'Kubernetes Controller Manager: REST Client query rate' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Controller manager by HTTP' + key: kubernetes.controller.client_http_requests_500.rate + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes Controller manager by HTTP' + key: kubernetes.controller.client_http_requests_400.rate + - sortorder: '2' + color: 00611C + item: + host: 'Kubernetes Controller manager by HTTP' + key: kubernetes.controller.client_http_requests_300.rate + - sortorder: '3' + color: F7941D + item: + host: 'Kubernetes Controller manager by HTTP' + key: kubernetes.controller.client_http_requests_200.rate diff --git a/Kubernetes_Kubelet_by_HTTP.yaml b/Kubernetes_Kubelet_by_HTTP.yaml new file mode 100644 index 0000000..9b51c94 --- /dev/null +++ b/Kubernetes_Kubelet_by_HTTP.yaml @@ -0,0 +1,860 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: e785916967c14544b59c3644c3edda3a + template: 'Kubernetes Kubelet by HTTP' + name: 'Kubernetes Kubelet by HTTP' + description: | + Get Kubernetes kubelet metrics by HTTP agent from Prometheus metrics endpoint. + + Don't forget change macros {$KUBE.KUBELET.URL}, {$KUBE.API.TOKEN}. + Some metrics may not be collected depending on your Kubernetes API server instance version and configuration. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-0 + groups: + - name: Templates/Applications + items: + - uuid: 1f94bbb521cb41dfa093e1408efbb15a + name: 'Get cadvisor metrics' + type: HTTP_AGENT + key: kube.cadvisor.metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Collecting raw Kubelet metrics from /metrics/cadvisor endpoint.' + timeout: 10s + url: '{$KUBE.KUBELET.URL}{$KUBE.KUBELET.CADVISOR.ENDPOINT}' + status_codes: '200, 403' + headers: + - name: Authorization + value: 'Bearer {$KUBE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 35783053a41646ffb6420f8d41880b39 + name: 'Containers ready' + type: DEPENDENT + key: kube.kubelet.containers.ready + delay: '0' + value_type: FLOAT + description: 'The number of ready containers.' + preprocessing: + - type: JSONPATH + parameters: + - '$.items[*].status.containerStatuses[?(@.ready == ''true'')].length()' + master_item: + key: kube.pods + tags: + - tag: component + value: containers + - uuid: bc395860d45b45cb89401fc7e50bc015 + name: 'Containers restarts' + type: DEPENDENT + key: kube.kubelet.containers.restarts + delay: '0' + value_type: FLOAT + description: 'The number of times the container has been restarted.' + preprocessing: + - type: JSONPATH + parameters: + - '$.items[*].status.containerStatuses[*].restartCount.sum()' + master_item: + key: kube.pods + tags: + - tag: component + value: containers + - uuid: e524234eea87438d9ee2a1db9f24cfbb + name: 'Containers started' + type: DEPENDENT + key: kube.kubelet.containers.started + delay: '0' + value_type: FLOAT + description: 'The number of started containers.' + preprocessing: + - type: JSONPATH + parameters: + - '$.items[*].status.containerStatuses[?(@.started == ''true'')].length()' + master_item: + key: kube.pods + tags: + - tag: component + value: containers + - uuid: cff44957e9a54d5d887d4f92b3e4da72 + name: 'CPU cores, total' + type: DEPENDENT + key: kube.kubelet.cpu.cores + delay: '0' + value_type: FLOAT + description: 'The number of cores in this machine (available until kubernetes v1.18).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - machine_cpu_cores + - value + - '' + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: containers + - uuid: 6735723da30d41dcb7bd46c954b2998f + name: 'Machine memory, bytes' + type: DEPENDENT + key: kube.kubelet.machine.memory + delay: '0' + value_type: FLOAT + units: B + description: 'Resident memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_resident_memory_bytes + - value + - '' + master_item: + key: kube.kubelet.metrics + tags: + - tag: component + value: memory + - uuid: c71fc79a77104ef4a0d6b89d5f7b7bad + name: 'Get kubelet metrics' + type: HTTP_AGENT + key: kube.kubelet.metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Collecting raw Kubelet metrics from /metrics endpoint.' + timeout: 10s + url: '{$KUBE.KUBELET.URL}{$KUBE.KUBELET.METRIC.ENDPOINT}' + status_codes: '200, 403' + headers: + - name: Authorization + value: 'Bearer {$KUBE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 46635d3fee04488caa4b07de7709f71e + name: 'Pods running' + type: DEPENDENT + key: kube.kubelet.pods.running + delay: '0' + value_type: FLOAT + description: 'The number of running pods.' + preprocessing: + - type: JSONPATH + parameters: + - '$.items[?(@.status.phase == "Running")].length()' + master_item: + key: kube.pods + tags: + - tag: component + value: pods + - uuid: d1388216cb384ff08c984919572b0ffb + name: 'File descriptors, max' + type: DEPENDENT + key: kube.kubelet.process_max_fds + delay: '0' + value_type: FLOAT + description: 'Maximum number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_max_fds + - value + - '' + master_item: + key: kube.kubelet.metrics + tags: + - tag: component + value: descriptors + - uuid: dc3a6371dcb34ae5b65cbf5224d4712c + name: 'File descriptors, open' + type: DEPENDENT + key: kube.kubelet.process_open_fds + delay: '0' + value_type: FLOAT + description: 'Number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_open_fds + - value + - '' + master_item: + key: kube.kubelet.metrics + tags: + - tag: component + value: descriptors + - uuid: c382b67cf7e947fbb9c29e86446ffac5 + name: 'Virtual memory, bytes' + type: DEPENDENT + key: kube.kubelet.virtual.memory + delay: '0' + value_type: FLOAT + units: B + description: 'Virtual memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_virtual_memory_bytes + - value + - '' + master_item: + key: kube.kubelet.metrics + tags: + - tag: component + value: memory + - uuid: 11da04549bd840b0a8d5c70ff0d2b46f + name: 'Containers last state terminated' + type: DEPENDENT + key: kube.kublet.containers.terminated + delay: '0' + value_type: FLOAT + description: 'The number of containers that were previously terminated.' + preprocessing: + - type: JSONPATH + parameters: + - '$.items[*].status.containerStatuses[?(@.lastState.terminated.exitCode > 0)].length()' + master_item: + key: kube.pods + tags: + - tag: component + value: containers + - uuid: 7c8cc6c3ed8e412eb69e7ab8e2fe7e12 + name: 'Get pods' + type: HTTP_AGENT + key: kube.pods + history: '0' + value_type: TEXT + trends: '0' + description: 'Collecting raw Kubelet metrics from /pods endpoint.' + timeout: 10s + url: '{$KUBE.KUBELET.URL}{$KUBE.KUBELET.PODS.ENDPOINT}' + status_codes: '200, 403' + headers: + - name: Authorization + value: 'Bearer {$KUBE.API.TOKEN}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 5f70768ebe62429a96e17576dd767382 + name: 'Container memory discovery' + type: DEPENDENT + key: kube.kubelet.container.memory.cache.discovery + delay: '0' + lifetime: '0' + item_prototypes: + - uuid: 8f8b1df2a801475a92604544b2019b2e + name: 'Namespace [{#NAMESPACE}] Pod [{#POD}] Container [{#CONTAINER}]: Memory page cache' + type: DEPENDENT + key: 'kube.kubelet.container.memory.cache["{#CONTAINER}", "{#NAMESPACE}", "{#POD}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Number of bytes of page cache memory.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'container_memory_cache{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}' + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: memory + - tag: container + value: '{#CONTAINER}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#POD}' + - uuid: 6dcf948e79b94f3f96677a7948d2dfd4 + name: 'Namespace [{#NAMESPACE}] Pod [{#POD}] Container [{#CONTAINER}]: Memory max usage' + type: DEPENDENT + key: 'kube.kubelet.container.memory.max_usage["{#CONTAINER}", "{#NAMESPACE}", "{#POD}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Maximum memory usage recorded in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'container_memory_max_usage_bytes{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}' + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: memory + - tag: container + value: '{#CONTAINER}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#POD}' + - uuid: 47d35c31a52643c1b587efcec57f9dff + name: 'Namespace [{#NAMESPACE}] Pod [{#POD}] Container [{#CONTAINER}]: RSS' + type: DEPENDENT + key: 'kube.kubelet.container.memory.rss["{#CONTAINER}", "{#NAMESPACE}", "{#POD}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Size of RSS in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'container_memory_rss{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}' + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: memory + - tag: container + value: '{#CONTAINER}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#POD}' + - uuid: 2cf31296f67947ec85f576773352a25b + name: 'Namespace [{#NAMESPACE}] Pod [{#POD}] Container [{#CONTAINER}]: Swap' + type: DEPENDENT + key: 'kube.kubelet.container.memory.swap["{#CONTAINER}", "{#NAMESPACE}", "{#POD}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Container swap usage in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'container_memory_swap{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}' + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: memory + - tag: container + value: '{#CONTAINER}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#POD}' + - uuid: 146d17ecec7149efb20878d7e0466eeb + name: 'Namespace [{#NAMESPACE}] Pod [{#POD}] Container [{#CONTAINER}]: Usage' + type: DEPENDENT + key: 'kube.kubelet.container.memory.usage["{#CONTAINER}", "{#NAMESPACE}", "{#POD}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Current memory usage in bytes, including all memory regardless of when it was accessed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'container_memory_usage_bytes{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}' + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: memory + - tag: container + value: '{#CONTAINER}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#POD}' + - uuid: d3a24d207c6d4201a5e7235f246e0c59 + name: 'Namespace [{#NAMESPACE}] Pod [{#POD}] Container [{#CONTAINER}]: Working set' + type: DEPENDENT + key: 'kube.kubelet.container.memory.working_set["{#CONTAINER}", "{#NAMESPACE}", "{#POD}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Current working set in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'container_memory_working_set_bytes{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}' + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: memory + - tag: container + value: '{#CONTAINER}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#POD}' + master_item: + key: kube.cadvisor.metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'container_memory_cache{container !~ "POD", namespace =~ ".*", pod =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var container_labels = item.labels.container + item.labels.namespace + item.labels.pod; + if (item.labels.container !== '' && !lookup[container_labels]) { + lookup[container_labels] = 1; + result.push({ + '{#CONTAINER}': item.labels.container, + '{#NAMESPACE}': item.labels.namespace, + '{#POD}': item.labels.pod + }); + } + }) + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: b98223fcf0ee4a558035ed23de0d2616 + name: 'Pods discovery' + type: DEPENDENT + key: kube.kubelet.pods.discovery + delay: '0' + lifetime: '0' + item_prototypes: + - uuid: 41e8f027979a462983789f1f45a9e332 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}] CPU: Load average, 10s' + type: DEPENDENT + key: 'kube.pod.container_cpu_load_average_10s[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Pods cpu load average over the last 10 seconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'container_cpu_load_average_10s{container!="", container!="POD", pod="{#NAME}", namespace="{#NAMESPACE}"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: pod + - tag: pod + value: '{#NAME}' + - uuid: 434c913e7547435bb74c922f81f3ff7a + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}] CPU: System seconds, total' + type: DEPENDENT + key: 'kube.pod.container_cpu_system_seconds_total[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'System cpu time consumed. It is calculated from the cumulative value using the `Change per second` preprocessing step.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'container_cpu_system_seconds_total{container!="", container!="POD", pod="{#NAME}", namespace="{#NAMESPACE}"}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: pod + - tag: pod + value: '{#NAME}' + - uuid: 08ae25c1a6a34fae9f3131b14c061e4d + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}] CPU: Usage seconds, total' + type: DEPENDENT + key: 'kube.pod.container_cpu_usage_seconds_total[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Consumed cpu time. It is calculated from the cumulative value using the `Change per second` preprocessing step.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'container_cpu_usage_seconds_total{container!="", container!="POD", pod="{#NAME}", namespace="{#NAMESPACE}"}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: pod + - tag: pod + value: '{#NAME}' + - uuid: e0b1c1edcc3c4738a71b46712a085ed0 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}] CPU: User seconds, total' + type: DEPENDENT + key: 'kube.pod.container_cpu_user_seconds_total[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'User cpu time consumed. It is calculated from the cumulative value using the `Change per second` preprocessing step.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'container_cpu_user_seconds_total{container!="", container!="POD", pod="{#NAME}", namespace="{#NAMESPACE}"}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kube.cadvisor.metrics + tags: + - tag: component + value: pod + - tag: pod + value: '{#NAME}' + master_item: + key: kube.pods + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.metadata.namespace + - lld_macro: '{#NAME}' + path: $.metadata.name + preprocessing: + - type: JSONPATH + parameters: + - $.items + error_handler: DISCARD_VALUE + - uuid: cb42f71e6bfb4661861e3601e31eeaa6 + name: 'REST client requests discovery' + type: DEPENDENT + key: kube.kubelet.rest.requests.discovery + delay: '0' + item_prototypes: + - uuid: c569ce73bfb44098be3ceb8d016e3d24 + name: 'Host [{#HOST}] Request method [{#METHOD}] Code:[{#CODE}]' + type: DEPENDENT + key: 'kube.kubelet.rest.requests["{#CODE}", "{#HOST}", "{#METHOD}"]' + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests, partitioned by status code, method, and host.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code="{#CODE}", host="{#HOST}", method="{#METHOD}"}' + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.kubelet.metrics + tags: + - tag: code + value: '{#CODE}' + - tag: component + value: requests + - tag: host + value: '{#HOST}' + - tag: method + value: '{#METHOD}' + master_item: + key: kube.kubelet.metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'rest_client_requests_total{code =~ ".*", host =~ ".*", method =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var request_labels = item.labels.code + item.labels.host + item.labels.method; + if (!(lookup[request_labels])) { + lookup[request_labels] = 1; + result.push({ + '{#CODE}': item.labels.code, + '{#HOST}': item.labels.host, + '{#METHOD}': item.labels.method + }); + } + }) + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 6feb0006bb364a8f9295495c92741c16 + name: 'Runtime operations discovery' + type: DEPENDENT + key: kube.kubelet.runtime_operations_bucket.discovery + delay: '0' + item_prototypes: + - uuid: 13de106611a347e0907dda9ff52f3a20 + name: '[{#OP_TYPE}] Runtime operations bucket: {#LE}' + type: DEPENDENT + key: 'kube.kublet.runtime_ops_duration_seconds_bucket[{#LE},"{#OP_TYPE}"]' + delay: '0' + history: 1h + value_type: FLOAT + trends: '0' + discover: NO_DISCOVER + description: 'Duration in seconds of runtime operations. Broken down by operation type.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kubelet_runtime_operations_duration_seconds_bucket{le="{#LE}",operation_type="{#OP_TYPE}"}' + - function + - sum + master_item: + key: kube.kubelet.metrics + tags: + - tag: component + value: operations + - uuid: 3d9545d396b24ef6b87eb730ad93cda7 + name: '[{#OP_TYPE}] Operations, p50' + type: CALCULATED + key: 'kube.kublet.runtime_ops_duration_seconds_p50["{#OP_TYPE}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kube.kublet.runtime_ops_duration_seconds_bucket[*,"{#OP_TYPE}"],5m,50)' + description: '50 percentile of operation latency distribution in seconds for each verb.' + tags: + - tag: component + value: operations + - uuid: 039a47a0b20741e79701fecb924e6a08 + name: '[{#OP_TYPE}] Operations, p90' + type: CALCULATED + key: 'kube.kublet.runtime_ops_duration_seconds_p90["{#OP_TYPE}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kube.kublet.runtime_ops_duration_seconds_bucket[*,"{#OP_TYPE}"],5m,90)' + description: '90 percentile of operation latency distribution in seconds for each verb.' + tags: + - tag: component + value: operations + - uuid: e846265636ac433ba2bce034aca1e394 + name: '[{#OP_TYPE}] Operations, p95' + type: CALCULATED + key: 'kube.kublet.runtime_ops_duration_seconds_p95["{#OP_TYPE}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kube.kublet.runtime_ops_duration_seconds_bucket[*,"{#OP_TYPE}"],5m,95)' + description: '95 percentile of operation latency distribution in seconds for each verb.' + tags: + - tag: component + value: operations + - uuid: 68f17a6132dd48deb3825efd2b83b6ce + name: '[{#OP_TYPE}] Operations, p99' + type: CALCULATED + key: 'kube.kublet.runtime_ops_duration_seconds_p99["{#OP_TYPE}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kube.kublet.runtime_ops_duration_seconds_bucket[*,"{#OP_TYPE}"],5m,99)' + description: '99 percentile of operation latency distribution in seconds for each verb.' + tags: + - tag: component + value: operations + - uuid: 736abc78366e44b69234caf56abe8a4a + name: '[{#OP_TYPE}] Runtime operations total, rate' + type: DEPENDENT + key: 'kube.kublet.runtime_ops_total.rate["{#OP_TYPE}"]' + delay: '0' + value_type: FLOAT + discover: NO_DISCOVER + description: 'Cumulative number of runtime operations by operation type.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kubelet_runtime_operations_total{operation_type="{#OP_TYPE}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kube.kubelet.metrics + tags: + - tag: component + value: operations + graph_prototypes: + - uuid: 3a32d1b4253b48078279b24fdf8f3476 + name: 'Kubernetes: [{#OP_TYPE}] Operations latency' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Kubelet by HTTP' + key: 'kube.kublet.runtime_ops_duration_seconds_p90["{#OP_TYPE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes Kubelet by HTTP' + key: 'kube.kublet.runtime_ops_duration_seconds_p95["{#OP_TYPE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Kubernetes Kubelet by HTTP' + key: 'kube.kublet.runtime_ops_duration_seconds_p99["{#OP_TYPE}"]' + - sortorder: '3' + color: F7941D + item: + host: 'Kubernetes Kubelet by HTTP' + key: 'kube.kublet.runtime_ops_duration_seconds_p50["{#OP_TYPE}"]' + master_item: + key: kube.kubelet.metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~ "kubelet_runtime_operations_*", operation_type =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + lookup_histogram = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + if (item.name === 'kubelet_runtime_operations_total'){ + var op_type = item.labels.operation_type; + + if (lookup[op_type]) { + return; + } + lookup[op_type] = 1; + result.push({ + '{#TYPE}': 'totals', + '{#OP_TYPE}': op_type + }); + } + + else if (item.name === 'kubelet_runtime_operations_duration_seconds_bucket'){ + var labels = item.labels.operation_type + item.labels.le; + + if (lookup_histogram[labels]) { + return; + } + lookup_histogram[labels] = 1; + result.push({ + '{#TYPE}': 'buckets', + '{#OP_TYPE}': item.labels.operation_type, + '{#LE}': item.labels.le + }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'bucket item' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: buckets + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: bucket + discover: DISCOVER + - name: 'total item' + step: '2' + filter: + conditions: + - macro: '{#TYPE}' + value: totals + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: NOT_LIKE + value: bucket + discover: DISCOVER + tags: + - tag: class + value: software + - tag: target + value: kubelet + - tag: target + value: kubernetes + macros: + - macro: '{$KUBE.API.TOKEN}' + description: 'Service account bearer token.' + - macro: '{$KUBE.KUBELET.CADVISOR.ENDPOINT}' + value: /metrics/cadvisor + description: 'cAdvisor metrics from Kubelet /metrics/cadvisor endpoint.' + - macro: '{$KUBE.KUBELET.METRIC.ENDPOINT}' + value: /metrics + description: 'Kubelet /metrics endpoint.' + - macro: '{$KUBE.KUBELET.PODS.ENDPOINT}' + value: /pods + description: 'Kubelet /pods endpoint.' + - macro: '{$KUBE.KUBELET.URL}' + value: 'https://localhost:10250' + description: 'Kubernetes Kubelet instance URL.' + dashboards: + - uuid: ecaddf40146948668ec7c75505fd8af8 + name: 'Kubelet overview' + pages: + - name: Operations + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Kubernetes Kubelet by HTTP' + name: 'Kubernetes: [{#OP_TYPE}] Operations latency' + - type: STRING + name: reference + value: AAAAA diff --git a/Kubernetes_Scheduler_by_HTTP.yaml b/Kubernetes_Scheduler_by_HTTP.yaml new file mode 100644 index 0000000..cd1d71a --- /dev/null +++ b/Kubernetes_Scheduler_by_HTTP.yaml @@ -0,0 +1,1031 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: ece96efdf0a045b99ede7978fa9366d6 + template: 'Kubernetes Scheduler by HTTP' + name: 'Kubernetes Scheduler by HTTP' + description: | + Get Kubernetes Scheduler metrics by HTTP agent from Prometheus metrics endpoint. + + Don't forget change macros {$KUBE.API.SERVER.URL}. + Some metrics may not be collected depending on your Kubernetes Scheduler instance version and configuration. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 87e91f23320043549457a5b2ab8ddf74 + name: 'REST Client requests: 2xx, rate' + type: DEPENDENT + key: kubernetes.scheduler.client_http_requests_200.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 2xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "2.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: rest + - tag: http-code + value: 2xx + - uuid: b790f8c9a6b44f54837a6b3cb1dcec41 + name: 'REST Client requests: 3xx, rate' + type: DEPENDENT + key: kubernetes.scheduler.client_http_requests_300.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 3xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "3.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: rest + - tag: http-code + value: 3xx + - uuid: 84e09cb3134b492b983649bc29da11ee + name: 'REST Client requests: 4xx, rate' + type: DEPENDENT + key: kubernetes.scheduler.client_http_requests_400.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 4xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "4.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: rest + - tag: http-code + value: 4xx + - uuid: d94fce6ae59b4735b93e1ccfb9084dc2 + name: 'REST Client requests: 5xx, rate' + type: DEPENDENT + key: kubernetes.scheduler.client_http_requests_500.rate + delay: '0' + value_type: FLOAT + description: 'Number of HTTP requests with 5xx status code per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'rest_client_requests_total{code =~ "5.."}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: rest + - tag: http-code + value: 5xx + triggers: + - uuid: ea92474a61214053b2cd20775817010e + expression: 'min(/Kubernetes Scheduler by HTTP/kubernetes.scheduler.client_http_requests_500.rate,5m)>{$KUBE.SCHEDULER.HTTP.CLIENT.ERROR}' + name: 'Kubernetes Scheduler: Too many REST Client errors' + event_name: 'Kubernetes Scheduler: Too many REST Client errors (over {$KUBE.SCHEDULER.HTTP.CLIENT.ERROR} for 5m)' + priority: WARNING + description: '"Kubernetes Scheduler REST Client requests is experiencing high error rate (with 5xx HTTP code).' + tags: + - tag: scope + value: availability + - uuid: b1d79dbb773d47668476a12ca8ee3d08 + name: CPU + type: DEPENDENT + key: kubernetes.scheduler.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'Total user and system CPU usage ratio.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_cpu_seconds_total + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: cpu + - uuid: 2534eacdaf9b44d68388b366da40af59 + name: 'Get Scheduler metrics' + type: HTTP_AGENT + key: kubernetes.scheduler.get_metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get raw metrics from Scheduler instance /metrics endpoint.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 15s + url: '{$KUBE.SCHEDULER.SERVER.URL}' + headers: + - name: Authorization + value: 'Bearer {$KUBE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: a21ec7ee8a76449f99199777d35cdd03 + name: Goroutines + type: DEPENDENT + key: kubernetes.scheduler.go_goroutines + delay: '0' + value_type: FLOAT + description: 'Number of goroutines that currently exist.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - go_goroutines + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: goroutines + - uuid: d7493f23748f440b8cae127e6ff70bb7 + name: 'Go threads' + type: DEPENDENT + key: kubernetes.scheduler.go_threads + delay: '0' + value_type: FLOAT + description: 'Number of OS threads created.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - go_threads + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: go-threads + - uuid: 11471cff0d664bdb906cf54821af9710 + name: 'Fds max' + type: DEPENDENT + key: kubernetes.scheduler.max_fds + delay: '0' + value_type: FLOAT + description: 'Maximum allowed open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_max_fds + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: fds + - uuid: 2aa6fb05cb3e4f33a05ebf331be1ed54 + name: 'Fds open' + type: DEPENDENT + key: kubernetes.scheduler.open_fds + delay: '0' + value_type: FLOAT + description: 'Number of open file descriptors.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_open_fds + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: fds + - uuid: f8272f957dc447f19876395994050edd + name: 'Resident memory, bytes' + type: DEPENDENT + key: kubernetes.scheduler.process_resident_memory_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Resident memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_resident_memory_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: memory + - uuid: 0319ccb3efb94aeba6181c1f34cc999a + name: 'Virtual memory, bytes' + type: DEPENDENT + key: kubernetes.scheduler.process_virtual_memory_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Virtual memory size in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - process_virtual_memory_bytes + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: memory + - uuid: f198d7705dd34d52b57a31aa8b5a423a + name: 'Schedule attempts: error' + type: DEPENDENT + key: kubernetes.scheduler.scheduler_schedule_attempts.error.rate + delay: '0' + value_type: FLOAT + description: 'Number of attempts to schedule pods with result "error" per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'scheduler_schedule_attempts_total{result = "error"}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: scheduler + triggers: + - uuid: 9116327bc14f4f189ca867b43187f6bd + expression: 'min(/Kubernetes Scheduler by HTTP/kubernetes.scheduler.scheduler_schedule_attempts.error.rate,5m)>{$KUBE.SCHEDULER.ERROR}' + name: 'Kubernetes Scheduler: Too many schedule attempts with errors' + event_name: 'Kubernetes Scheduler: Too many schedule attempts with errors (over {$KUBE.SCHEDULER.ERROR} for 5m)' + priority: WARNING + description: 'Number of attempts to schedule pods with ''error'' result is too high. ''error'' means an internal scheduler problem.' + tags: + - tag: scope + value: performance + - uuid: d5c901849f134b40b077c50e02415fff + name: 'Schedule attempts: scheduled' + type: DEPENDENT + key: kubernetes.scheduler.scheduler_schedule_attempts.scheduled.rate + delay: '0' + value_type: FLOAT + description: 'Number of attempts to schedule pods with result "scheduled" per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'scheduler_schedule_attempts_total{result = "scheduled"}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: scheduler + - uuid: 5736a89200684c709c22f9fb3711bb83 + name: 'Schedule attempts: unschedulable' + type: DEPENDENT + key: kubernetes.scheduler.scheduler_schedule_attempts.unschedulable.rate + delay: '0' + value_type: FLOAT + description: 'Number of attempts to schedule pods with result "unschedulable" per second.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'scheduler_schedule_attempts_total{result = "unschedulable"}' + - function + - sum + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: scheduler + triggers: + - uuid: 16efba4ba322416fa2b8986273b83904 + expression: 'min(/Kubernetes Scheduler by HTTP/kubernetes.scheduler.scheduler_schedule_attempts.unschedulable.rate,5m)>{$KUBE.SCHEDULER.UNSCHEDULABLE}' + name: 'Kubernetes Scheduler: Too many unschedulable pods' + event_name: 'Kubernetes Scheduler: Too many unschedulable pods (over {$KUBE.SCHEDULER.UNSCHEDULABLE} for 5m)' + priority: WARNING + description: 'Number of attempts to schedule pods with ''unschedulable'' result is too high. ''unschedulable'' means a pod could not be scheduled.' + tags: + - tag: scope + value: performance + discovery_rules: + - uuid: 0dacff4b5ab841569642350388f4e534 + name: 'e2e scheduling histogram' + type: DEPENDENT + key: kubernetes.controller.e2e_scheduling.discovery + delay: '0' + description: 'Discovery raw data and percentile items of e2e scheduling latency.' + item_prototypes: + - uuid: eaeb8c321626466bbf7c08008a82b9c8 + name: '["{#RESULT}"]: e2e scheduling seconds bucket, {#LE}' + type: DEPENDENT + key: 'kubernetes.scheduler.e2e_scheduling_bucket[{#LE},"{#RESULT}"]' + delay: '0' + history: 1h + value_type: FLOAT + trends: '0' + discover: NO_DISCOVER + description: 'E2e scheduling latency in seconds (scheduling algorithm + binding)' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'scheduler_e2e_scheduling_duration_seconds_bucket{result = "{#RESULT}",le = "{#LE}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: e2e-scheduling + - tag: result + value: '{#RESULT}' + - uuid: b8fd5b4454484f4298e2c2b1e5c832c5 + name: '["{#RESULT}"]: e2e scheduling, p50' + type: CALCULATED + key: 'kubernetes.scheduler.e2e_scheduling_p50["{#RESULT}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.e2e_scheduling_bucket[*,"{#RESULT}"],5m,50)' + description: '50 percentile of e2e scheduling latency.' + tags: + - tag: component + value: e2e-scheduling + - tag: result + value: '{#RESULT}' + - uuid: 01edd56cd1c94d4b80589d91349e4be5 + name: '["{#RESULT}"]: e2e scheduling, p90' + type: CALCULATED + key: 'kubernetes.scheduler.e2e_scheduling_p90["{#RESULT}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.e2e_scheduling_bucket[*,"{#RESULT}"],5m,90)' + description: '90 percentile of e2e scheduling latency.' + tags: + - tag: component + value: e2e-scheduling + - tag: result + value: '{#RESULT}' + - uuid: 706fc27da4d34a4e9189c566c7aa96ff + name: '["{#RESULT}"]: e2e scheduling, p95' + type: CALCULATED + key: 'kubernetes.scheduler.e2e_scheduling_p95["{#RESULT}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.e2e_scheduling_bucket[*,"{#RESULT}"],5m,95)' + description: '95 percentile of e2e scheduling latency.' + tags: + - tag: component + value: e2e-scheduling + - tag: result + value: '{#RESULT}' + - uuid: 829627aeab764590b3a17e6b10c56709 + name: '["{#RESULT}"]: e2e scheduling, p99' + type: CALCULATED + key: 'kubernetes.scheduler.e2e_scheduling_p99["{#RESULT}"]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.e2e_scheduling_bucket[*,"{#RESULT}"],5m,99)' + description: '95 percentile of e2e scheduling latency.' + tags: + - tag: component + value: e2e-scheduling + - tag: result + value: '{#RESULT}' + graph_prototypes: + - uuid: be0cb738e2a346f8a24cabf0f76a6e6a + name: 'Kubernetes Scheduler: ["{#RESULT}"] E2e latency' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.e2e_scheduling_p50["{#RESULT}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.e2e_scheduling_p90["{#RESULT}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.e2e_scheduling_p95["{#RESULT}"]' + - sortorder: '3' + color: F7941D + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.e2e_scheduling_p99["{#RESULT}"]' + master_item: + key: kubernetes.scheduler.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~ "scheduler_e2e_scheduling_duration_*", result =~ ".*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + if (item.name === "scheduler_e2e_scheduling_duration_seconds_count"){ + var label_result = item.labels.result; + + if (lookup[label_result]) { + return; + } + lookup[label_result] = 1; + result.push({ + '{#TYPE}': 'totals', + '{#RESULT}': label_result + }); + + } + else if (item.name === "scheduler_e2e_scheduling_duration_seconds_bucket"){ + result.push({ + '{#TYPE}': 'buckets', + '{#RESULT}': item.labels.result, + '{#LE}': item.labels.le + }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'bucket item' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: buckets + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: bucket + discover: DISCOVER + - name: 'total item' + step: '2' + filter: + conditions: + - macro: '{#TYPE}' + value: totals + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: NOT_LIKE + value: bucket + discover: DISCOVER + - uuid: 8cfc88eb0f6b4ae09d93bd9fc275659d + name: 'Binding histogram' + type: DEPENDENT + key: kubernetes.scheduler.binding.discovery + delay: '0' + description: 'Discovery raw data of binding latency.' + item_prototypes: + - uuid: 17a3d7122cd844ea905059020532907b + name: 'Binding duration bucket, {#LE}' + type: DEPENDENT + key: 'kubernetes.scheduler.binding_duration[{#LE}]' + delay: '0' + history: 1h + value_type: FLOAT + trends: '0' + discover: NO_DISCOVER + description: 'Binding latency in seconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'scheduler_binding_duration_seconds_bucket{le = "{#LE}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: binding + - uuid: 5f40c030c1964ff7ab7786cee97bee81 + name: 'Binding duration, p50' + type: CALCULATED + key: 'kubernetes.scheduler.binding_duration_p50[{#SINGLETON}]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.binding_duration[*],5m,50)' + description: '50 percentile of binding latency in seconds.' + tags: + - tag: component + value: binding + - uuid: 19ba0e215a9f4e13b3079fcdaf124cc5 + name: 'Binding duration, p90' + type: CALCULATED + key: 'kubernetes.scheduler.binding_duration_p90[{#SINGLETON}]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.binding_duration[*],5m,90)' + description: '90 percentile of binding latency in seconds.' + tags: + - tag: component + value: binding + - uuid: b24d657a1568437fac77535a80d63bc3 + name: 'Binding duration, p95' + type: CALCULATED + key: 'kubernetes.scheduler.binding_duration_p95[{#SINGLETON}]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.binding_duration[*],5m,95)' + description: '99 percentile of binding latency in seconds.' + tags: + - tag: component + value: binding + - uuid: 258d5d4b6534488a92ba29185e3ca56f + name: 'Binding duration, p99' + type: CALCULATED + key: 'kubernetes.scheduler.binding_duration_p99[{#SINGLETON}]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.binding_duration[*],5m,99)' + description: '95 percentile of binding latency in seconds.' + tags: + - tag: component + value: binding + graph_prototypes: + - uuid: 1c8da2cb32ae4dfaa0d16cff0cecfc43 + name: 'Kubernetes Scheduler: [{#SINGLETON}]Binding latency' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.binding_duration_p50[{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.binding_duration_p90[{#SINGLETON}]' + - sortorder: '2' + color: 00611C + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.binding_duration_p95[{#SINGLETON}]' + - sortorder: '3' + color: F7941D + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.binding_duration_p99[{#SINGLETON}]' + master_item: + key: kubernetes.scheduler.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~ "scheduler_binding_duration_seconds_*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + JSON.parse(value).forEach(function (item) { + if (item.name === "scheduler_binding_duration_seconds_count"){ + result.push({ + '{#TYPE}': 'totals', + '{#SINGLETON}': '' + }); + + } + else if (item.name === "scheduler_binding_duration_seconds_bucket"){ + result.push({ + '{#TYPE}': 'buckets', + '{#LE}': item.labels.le + }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'bucket item' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: buckets + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: bucket + discover: DISCOVER + - name: 'total item' + step: '2' + filter: + conditions: + - macro: '{#TYPE}' + value: totals + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: NOT_LIKE + value: bucket + discover: DISCOVER + - uuid: 5d4a17f09a7e4ad3b4ac72c30bac5e7d + name: 'Scheduling algorithm histogram' + type: DEPENDENT + key: kubernetes.scheduler.scheduling_algorithm.discovery + delay: '0' + description: 'Discovery raw data of scheduling algorithm latency.' + item_prototypes: + - uuid: c794f7fbd7494bb69d9c51140c443236 + name: 'Scheduling algorithm duration bucket, {#LE}' + type: DEPENDENT + key: 'kubernetes.scheduler.scheduling_algorithm_duration[{#LE}]' + delay: '0' + history: 1h + value_type: FLOAT + trends: '0' + discover: NO_DISCOVER + description: 'Scheduling algorithm latency in seconds.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'scheduler_scheduling_algorithm_duration_seconds_bucket{le = "{#LE}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kubernetes.scheduler.get_metrics + tags: + - tag: component + value: scheduling-algorithm + - uuid: 3df35ee6e86a424f89f51bb74cb40b9d + name: 'Scheduling algorithm duration, p50' + type: CALCULATED + key: 'kubernetes.scheduler.scheduling_algorithm_duration_p50[{#SINGLETON}]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.scheduling_algorithm_duration[*],5m,50)' + description: '50 percentile of scheduling algorithm latency in seconds.' + tags: + - tag: component + value: scheduling-algorithm + - uuid: 2368f2c98f3641bdbd030d94ca53a4dd + name: 'Scheduling algorithm duration, p90' + type: CALCULATED + key: 'kubernetes.scheduler.scheduling_algorithm_duration_p90[{#SINGLETON}]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.scheduling_algorithm_duration[*],5m,90)' + description: '90 percentile of scheduling algorithm latency in seconds.' + tags: + - tag: component + value: scheduling-algorithm + - uuid: 6ca6a2480c4343a8b9a4e6598ec86501 + name: 'Scheduling algorithm duration, p95' + type: CALCULATED + key: 'kubernetes.scheduler.scheduling_algorithm_duration_p95[{#SINGLETON}]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.scheduling_algorithm_duration[*],5m,95)' + description: '95 percentile of scheduling algorithm latency in seconds.' + tags: + - tag: component + value: scheduling-algorithm + - uuid: 955f0989372c4f9d82ad364b09f5efea + name: 'Scheduling algorithm duration, p99' + type: CALCULATED + key: 'kubernetes.scheduler.scheduling_algorithm_duration_p99[{#SINGLETON}]' + value_type: FLOAT + discover: NO_DISCOVER + units: s + params: 'bucket_percentile(//kubernetes.scheduler.scheduling_algorithm_duration[*],5m,99)' + description: '99 percentile of scheduling algorithm latency in seconds.' + tags: + - tag: component + value: scheduling-algorithm + graph_prototypes: + - uuid: 94607df22a1c49e5aa290fd50e9c2238 + name: 'Kubernetes Scheduler: [{#SINGLETON}]Scheduling algorithm duration' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.scheduling_algorithm_duration_p50[{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.scheduling_algorithm_duration_p90[{#SINGLETON}]' + - sortorder: '2' + color: 00611C + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.scheduling_algorithm_duration_p95[{#SINGLETON}]' + - sortorder: '3' + color: F7941D + item: + host: 'Kubernetes Scheduler by HTTP' + key: 'kubernetes.scheduler.scheduling_algorithm_duration_p99[{#SINGLETON}]' + master_item: + key: kubernetes.scheduler.get_metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~ "scheduler_scheduling_algorithm_duration_seconds_*"}' + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + JSON.parse(value).forEach(function (item) { + if (item.name === "scheduler_scheduling_algorithm_duration_seconds_count"){ + result.push({ + '{#TYPE}': 'totals', + '{#SINGLETON}': '' + }); + + } + else if (item.name === "scheduler_scheduling_algorithm_duration_seconds_bucket"){ + result.push({ + '{#TYPE}': 'buckets', + '{#LE}': item.labels.le + }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'bucket item' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: buckets + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: bucket + discover: DISCOVER + - name: 'total item' + step: '2' + filter: + conditions: + - macro: '{#TYPE}' + value: totals + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: NOT_LIKE + value: bucket + discover: DISCOVER + tags: + - tag: class + value: software + - tag: target + value: kubernetes + - tag: target + value: scheduler + macros: + - macro: '{$KUBE.API.TOKEN}' + description: 'API Authorization Token.' + - macro: '{$KUBE.SCHEDULER.ERROR}' + value: '2' + description: 'Maximum number of scheduling failures with ''error'' used for trigger.' + - macro: '{$KUBE.SCHEDULER.HTTP.CLIENT.ERROR}' + value: '2' + description: 'Maximum number of HTTP client requests failures used for trigger.' + - macro: '{$KUBE.SCHEDULER.SERVER.URL}' + value: 'https://localhost:10259/metrics' + description: 'Kubernetes Scheduler metrics endpoint URL.' + - macro: '{$KUBE.SCHEDULER.UNSCHEDULABLE}' + value: '2' + description: 'Maximum number of scheduling failures with ''unschedulable'' used for trigger.' + dashboards: + - uuid: 2292bfff871944bda9471a2ea714d04e + name: 'Scheduler overview' + pages: + - name: General + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Kubernetes Scheduler by HTTP' + name: 'Kubernetes Scheduler: Memory usage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Kubernetes Scheduler by HTTP' + name: 'Kubernetes Scheduler: REST Client query rate' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Kubernetes Scheduler by HTTP' + name: 'Kubernetes Scheduler: Scheduling attempts rate' + - type: STRING + name: reference + value: AAAAC + - name: Latencies + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Kubernetes Scheduler by HTTP' + name: 'Kubernetes Scheduler: [{#SINGLETON}]Binding latency' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Kubernetes Scheduler by HTTP' + name: 'Kubernetes Scheduler: ["{#RESULT}"] E2e latency' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Kubernetes Scheduler by HTTP' + name: 'Kubernetes Scheduler: [{#SINGLETON}]Scheduling algorithm duration' + - type: STRING + name: reference + value: AAAAF + graphs: + - uuid: dd98f209541449f4a476718c46a0e721 + name: 'Kubernetes Scheduler: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Scheduler by HTTP' + key: kubernetes.scheduler.process_virtual_memory_bytes + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes Scheduler by HTTP' + key: kubernetes.scheduler.process_resident_memory_bytes + - uuid: fd57f67690424eb6a2e5bee610c305ad + name: 'Kubernetes Scheduler: REST Client query rate' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Scheduler by HTTP' + key: kubernetes.scheduler.client_http_requests_500.rate + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes Scheduler by HTTP' + key: kubernetes.scheduler.client_http_requests_400.rate + - sortorder: '2' + color: 00611C + item: + host: 'Kubernetes Scheduler by HTTP' + key: kubernetes.scheduler.client_http_requests_300.rate + - sortorder: '3' + color: F7941D + item: + host: 'Kubernetes Scheduler by HTTP' + key: kubernetes.scheduler.client_http_requests_200.rate + - uuid: 4ee3ca9852a2440ea100e21291ac9103 + name: 'Kubernetes Scheduler: Scheduling attempts rate' + graph_items: + - color: 199C0D + item: + host: 'Kubernetes Scheduler by HTTP' + key: kubernetes.scheduler.scheduler_schedule_attempts.scheduled.rate + - sortorder: '1' + color: F63100 + item: + host: 'Kubernetes Scheduler by HTTP' + key: kubernetes.scheduler.scheduler_schedule_attempts.unschedulable.rate + - sortorder: '2' + color: 00611C + item: + host: 'Kubernetes Scheduler by HTTP' + key: kubernetes.scheduler.scheduler_schedule_attempts.error.rate diff --git a/Kubernetes_cluster_state_by_HTTP.yaml b/Kubernetes_cluster_state_by_HTTP.yaml new file mode 100644 index 0000000..243085f --- /dev/null +++ b/Kubernetes_cluster_state_by_HTTP.yaml @@ -0,0 +1,4122 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: 07695028a2ba4b66a5414797bec791df + template: 'Kubernetes cluster state by HTTP' + name: 'Kubernetes cluster state by HTTP' + description: | + Get Kubernetes state metrics by HTTP. + Metrics are collected by requests to Kubernetes API. + + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: 41c79d9286734cc3b0e3aa5ef729e5fe + name: 'Get component statuses' + type: HTTP_AGENT + key: kube.componentstatuses + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + timeout: 10s + url: '{$KUBE.API.URL}{$KUBE.API.COMPONENTSTATUSES.ENDPOINT}' + status_codes: '200, 403' + headers: + - name: Authorization + value: 'Bearer {$KUBE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: e40b126a0cf64ce6bfed3b3de1d4dfa8 + name: 'Control plane LLD' + type: SCRIPT + key: kube.control_plane.lld + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Kube = { + params: {}, + + setParams: function (params) { + ['api_token', 'api_url', 'api_server_scheme', 'api_server_port', 'controller_scheme', 'controller_port', + 'scheduler_scheme', 'scheduler_port', 'control_plane_taint'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + }); + + Kube.params = params; + if (typeof Kube.params.api_url === 'string' && !Kube.params.api_url.endsWith('/')) { + Kube.params.api_url += '/'; + } + + Kube.tls = new CTlsConfig(params.tls_verify); + Kube.tls.checkURL(Kube.params.api_url); + }, + + apiRequest: function (query) { + var request = new HttpRequest(Kube.tls.options), + response, + url = encodeURI(Kube.params.api_url + query); + if (typeof Kube.params.http_proxy !== 'undefined' && Kube.params.http_proxy !== '') { + request.setProxy(Kube.params.http_proxy); + } + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Kube.params.api_token); + + Zabbix.log(4, '[ Kubernetes ] Sending request: ' + url); + + if (Kube.params.http_proxy) { + Zabbix.log(4, '[ Kubernetes ] Using http proxy: ' + Kube.params.http_proxy); + } + + response = request.get(url); + + Zabbix.log(4, '[ Kubernetes ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Kubernetes API. Check debug log for more information.'; + } + return response; + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getNodes: function () { + var result = Kube.apiRequest('api/v1/nodes?labelSelector=' + Kube.params.control_plane_taint); + + if (typeof result !== 'object' + || typeof result.items === 'undefined') { + throw 'Cannot get control plane nodes from Kubernetes API. Check debug log for more information.'; + }; + + var nodes = result.items, + IPv4 = /(?:\d{1,3}\.){3}\d{1,3}/, + controlPlaneNodes = [], + hostname = Kube.params.api_url.match(/https?:\/\/([\w.-]+|\[[a-f0-9:]+\]|[^a-zA-Z:]+)(?::\d+)?/); + + if (typeof hostname[1] === 'undefined') { + Zabbix.log(4, '[ Kubernetes ] Received incorrect Kubernetes API url: ' + api_url + '. Expected format: ://:'); + throw 'Cannot get hostname from Kubernetes API url. Check debug log for more information.'; + }; + + controlPlaneNodes = nodes.map(function (node) { + var internalIPs = Kube.getField(node, 'status.addresses').filter(function (addr) { + return addr.type === 'InternalIP'; + }); + var internalIP = internalIPs.length && internalIPs[0].address; + + return { + '{#NAME}': Kube.getField(node, 'metadata.name'), + '{#IP}': internalIP, + '{#KUBE.API.SERVER.URL}': Kube.params.api_server_scheme + '://' + (IPv4.test(internalIP) ? internalIP : '[' + internalIP + ']') + ':' + Kube.params.api_server_port + '/metrics', + '{#KUBE.CONTROLLER.SERVER.URL}': Kube.params.controller_scheme + '://' + (IPv4.test(internalIP) ? internalIP : '[' + internalIP + ']') + ':' + Kube.params.controller_port + '/metrics', + '{#KUBE.SCHEDULER.SERVER.URL}': Kube.params.scheduler_scheme + '://' + (IPv4.test(internalIP) ? internalIP : '[' + internalIP + ']') + ':' + Kube.params.scheduler_port + '/metrics', + '{#COMPONENT.API}': 'API', + '{#COMPONENT.CONTROLLER}': 'Controller manager', + '{#COMPONENT.SCHEDULER}': 'Scheduler', + '{#CLUSTER_HOSTNAME}': hostname[1] + }; + }); + + return JSON.stringify(controlPlaneNodes); + } + }; + + try { + Kube.setParams(JSON.parse(value)); + return Kube.getNodes(); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Kubernetes ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: 'Generation of data for Control plane discovery rules.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + timeout: 10s + parameters: + - name: api_server_port + value: '{$KUBE.API_SERVER.PORT}' + - name: api_server_scheme + value: '{$KUBE.API_SERVER.SCHEME}' + - name: api_token + value: '{$KUBE.API.TOKEN}' + - name: api_url + value: '{$KUBE.API.URL}' + - name: controller_port + value: '{$KUBE.CONTROLLER_MANAGER.PORT}' + - name: controller_scheme + value: '{$KUBE.CONTROLLER_MANAGER.SCHEME}' + - name: control_plane_taint + value: '{$KUBE.CONTROL_PLANE.TAINT}' + - name: http_proxy + value: '{$KUBE.HTTP.PROXY}' + - name: scheduler_port + value: '{$KUBE.SCHEDULER.PORT}' + - name: scheduler_scheme + value: '{$KUBE.SCHEDULER.SCHEME}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Kubernetes cluster state"}' + tags: + - tag: component + value: raw + - uuid: 6f22e81d69d04eeca88a7992463556a7 + name: 'CronJob count' + type: DEPENDENT + key: kube.cronjob.count + delay: '0' + description: 'Number of cronjobs.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - kube_cronjob_created + - function + - count + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cronjob + - uuid: 483fc2c315264ae5963d34a45f80156e + name: 'Deployment count' + type: DEPENDENT + key: kube.deployment.count + delay: '0' + description: 'The number of deployments.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - kube_deployment_created + - function + - count + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: deployment + - uuid: 93126582e30e45b8a70f6e45402e2f54 + name: 'Endpoint count' + type: DEPENDENT + key: kube.endpoint.count + delay: '0' + description: 'Number of endpoints.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - kube_endpoint_created + - function + - count + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: endpoint + - uuid: c08df3a8ae044ae9a331db33bcca7db3 + name: 'Job count' + type: DEPENDENT + key: kube.job.count + delay: '0' + description: 'Number of jobs (generated by cronjob + job).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - kube_job_created + - function + - count + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: job + - uuid: d731fb05f0284921ab3548ba631f019c + name: 'Get livez' + type: HTTP_AGENT + key: kube.livez + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var output = [], + component; + + value.split(/\n/).forEach(function (entry) { + if (component = entry.match(/^\[.+\](.+)\s(\w+)$/)) { + output.push({ + name: component[1], + value: component[2] + }); + } + }); + + return JSON.stringify(output); + timeout: 10s + url: '{$KUBE.API.URL}{$KUBE.API.LIVEZ.ENDPOINT}?verbose' + status_codes: '200, 403' + headers: + - name: Authorization + value: 'Bearer {$KUBE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: d266edd6dda34e15888b572569a1f301 + name: 'Namespace count' + type: DEPENDENT + key: kube.namespace.count + delay: '0' + description: 'The number of namespaces.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - kube_namespace_created + - function + - count + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: namespace + - uuid: 968e1dcaf76645aebd4979b9ad4eca9e + name: 'Node count' + type: DEPENDENT + key: kube.node.count + delay: '0' + description: 'The number of nodes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - kube_node_created + - function + - count + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: node + - uuid: aae78585c668466da5d0ab8d8b899828 + name: 'Node LLD' + type: SCRIPT + key: kube.node.lld + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Kube = { + params: {}, + + setParams: function (params) { + ['api_url', 'api_token', 'kubelet_scheme', 'kubelet_port'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + }); + ['node_filter_labels', 'node_filter_annotations'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined') { + throw 'Parameter can be empty but not removed: "' + field + '".'; + } + }); + + Kube.params = params; + if (typeof Kube.params.api_url === 'string' && !Kube.params.api_url.endsWith('/')) { + Kube.params.api_url += '/'; + } + + Kube.tls = new CTlsConfig(params.tls_verify); + Kube.tls.checkURL(Kube.params.api_url); + }, + + apiRequest: function (query) { + var request = new HttpRequest(Kube.tls.options), + response, + url = encodeURI(Kube.params.api_url + query); + + if (typeof Kube.params.http_proxy !== 'undefined' && Kube.params.http_proxy !== '') { + request.setProxy(Kube.params.http_proxy); + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Kube.params.api_token); + + Zabbix.log(4, '[ Kubernetes ] Sending request: ' + url); + + if (Kube.params.http_proxy) { + Zabbix.log(4, '[ Kubernetes ] Using http proxy: ' + Kube.params.http_proxy); + } + + response = request.get(url); + + Zabbix.log(4, '[ Kubernetes ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + + } + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Kubernetes API. Check debug log for more information.'; + } + return response; + + }, + + parseFilters: function (csv) { + if (!csv) + return []; + + var filters = []; + const filterCapture = /([!\w\-\.\/]+)\s*:\s*(.*)/; + const onComma = /\s*,\s*/; + + csv.split(onComma).forEach(function (kv) { + var match = kv.match(filterCapture); + if (!match) { + Zabbix.log(3, 'Cannot parse filter from: "' + kv + '"'); + return; + } + + filters.push({ key: match[1], expression: match[2] }); + }); + + return filters; + }, + + filter: function (name, data, filters) { + if (typeof data !== 'object') { + return true; + } + + return filters.every(function (filter) { + const filter_key = filter.key.startsWith('!') ? filter.key.substring(1) : filter.key; + + if (!(filter_key in data)) { + return true; + } + + const isExcludingFilter = filter.key.startsWith('!'); + const isMatchForFilter = new RegExp(filter.expression).test(data[filter_key]); + + if ((isExcludingFilter && isMatchForFilter) || + (!isExcludingFilter && !isMatchForFilter)) { + Zabbix.log(4, '[ Kubernetes ] Discarded "' + name + '" by filter "' + filter.key + ': ' + filter.expression + '"'); + return false; + } + + return true; + }); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getNodes: function () { + var result = Kube.apiRequest('api/v1/nodes'); + if (typeof result !== 'object' + || typeof result.items === 'undefined') { + throw 'Cannot get nodes from Kubernetes API. Check debug log for more information.'; + }; + var nodes = result.items, + IPv4 = /(?:\d{1,3}\.){3}\d{1,3}/, + kubeNodes = [], + hostname = Kube.params.api_url.match(/https?:\/\/([\w.-]+|\[[a-f0-9:]+\]|[^a-zA-Z:]+)(?::\d+)?/), + filterNodeLabels = Kube.parseFilters(Kube.params.node_filter_labels), + filterNodeAnnotations = Kube.parseFilters(Kube.params.node_filter_annotations); + + if (typeof hostname[1] === 'undefined') { + Zabbix.log(4, '[ Kubernetes ] Received incorrect Kubernetes API url: ' + api_url + '. Expected format: ://:'); + throw 'Cannot get hostname from Kubernetes API url. Check debug log for more information.'; + }; + + kubeNodes = nodes.map(function (node) { + if (Kube.filter(Kube.getField(node, 'metadata.name'), Kube.getField(node, 'metadata.labels'), filterNodeLabels) + && Kube.filter(Kube.getField(node, 'metadata.name'), Kube.getField(node, 'metadata.annotations'), filterNodeAnnotations)) { + Zabbix.log(4, '[ Kubernetes ] Filtered node "' + node.metadata.name + '"'); + + var internalIPs = Kube.getField(node, 'status.addresses').filter(function (addr) { + return addr.type === 'InternalIP'; + }); + + var internalIP = internalIPs.length && internalIPs[0].address; + + return { + '{#NAME}': node.metadata.name, + '{#IP}': internalIP, + '{#KUBE.KUBELET.URL}': Kube.params.kubelet_scheme + '://' + (IPv4.test(internalIP) ? internalIP : '[' + internalIP + ']') + ':' + Kube.params.kubelet_port, + '{#COMPONENT}': 'Kubelet', + '{#CLUSTER_HOSTNAME}': hostname[1] + }; + } + }); + + return JSON.stringify(kubeNodes); + + }, + }; + + try { + Kube.setParams(JSON.parse(value)); + return Kube.getNodes(); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Kubernetes ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: 'Generation of data for Kubelet discovery rules.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + timeout: 10s + parameters: + - name: api_token + value: '{$KUBE.API.TOKEN}' + - name: api_url + value: '{$KUBE.API.URL}' + - name: http_proxy + value: '{$KUBE.HTTP.PROXY}' + - name: kubelet_port + value: '{$KUBE.KUBELET.PORT}' + - name: kubelet_scheme + value: '{$KUBE.KUBELET.SCHEME}' + - name: node_filter_annotations + value: '{$KUBE.KUBELET.FILTER.ANNOTATIONS}' + - name: node_filter_labels + value: '{$KUBE.KUBELET.FILTER.LABELS}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Kubernetes cluster state"}' + tags: + - tag: component + value: raw + - uuid: 3a5eaef4e8134dfb9f2935f98a8b88f7 + name: 'Get readyz' + type: HTTP_AGENT + key: kube.readyz + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var output = [], + component; + + value.split(/\n/).forEach(function (entry) { + if (component = entry.match(/^\[.+\](.+)\s(\w+)$/)) { + output.push({ + name: component[1], + value: component[2] + }); + } + }); + + return JSON.stringify(output); + timeout: 10s + url: '{$KUBE.API.URL}{$KUBE.API.READYZ.ENDPOINT}?verbose' + status_codes: '200, 403' + headers: + - name: Authorization + value: 'Bearer {$KUBE.API.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 262b0114fed14fec91d50589e97307a7 + name: 'Service count' + type: DEPENDENT + key: kube.service.count + delay: '0' + description: 'The number of services.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - kube_service_created + - function + - count + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: service + - uuid: 66e69f9970ce478f8f0ff13f26b248e3 + name: 'Get state metrics' + type: SCRIPT + key: kube.state.metrics + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Kube = { + params: {}, + + setParams: function (params) { + ['api_url', 'api_token', 'state_endpoint_name'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + }); + + Kube.params = params; + if (typeof Kube.params.api_url === 'string' && !Kube.params.api_url.endsWith('/')) { + Kube.params.api_url += '/'; + } + + Kube.tls = new CTlsConfig(params.tls_verify); + Kube.tls.checkURL(Kube.params.api_url); + }, + + apiRequest: function (query) { + var request = new HttpRequest(Kube.tls.options), + response, + url = encodeURI(Kube.params.api_url + query); + + if (typeof Kube.params.http_proxy !== 'undefined' && Kube.params.http_proxy !== '') { + request.setProxy(Kube.params.http_proxy); + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Kube.params.api_token); + + Zabbix.log(4, '[ Kubernetes ] Sending request: ' + url); + + if (Kube.params.http_proxy) { + Zabbix.log(4, '[ Kubernetes ] Using http proxy: ' + Kube.params.http_proxy); + } + + response = request.get(url); + + Zabbix.log(4, '[ Kubernetes ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Kubernetes API. Check debug log for more information.'; + } + return response; + }, + + getEndpoint: function (ep) { + if (typeof ep.subsets[0].addresses !== 'undefined') { + var scheme, + addr, + port; + ep.subsets.forEach(function (subset) { + var lp = subset.ports.filter(function (port) { + if (port.name !== 'http' && + port.name !== 'https' && + port.name !== 'https-main') { + return false; + } + scheme = port.name.match(/https?/); + return true; + }) + if (lp.length) { + port = lp[0].port + addr = subset.addresses[0].ip + } + }) + return { + scheme: scheme || 'http', + address: addr || ep.subsets[0].addresses[0].ip, + port: port || 8080 + } + } + }, + + getMetricsEndpoint: function () { + var result = Kube.apiRequest('api/v1/endpoints'), + endpoint = []; + + if (typeof result !== 'object' + || typeof result.items === 'undefined') { + throw 'Cannot get endpoints from Kubernetes API. Check debug log for more information.'; + }; + + result.items.forEach(function (ep) { + if (ep.metadata.name === Kube.params.state_endpoint_name && Array.isArray(ep.subsets)) { + endpoint.push(Kube.getEndpoint(ep)); + } + if (typeof Kube.params.openshift_endpoint_name !== 'undefined' && Kube.params.openshift_endpoint_name !== '' + && ep.metadata.name === Kube.params.openshift_endpoint_name && Array.isArray(ep.subsets)) { + endpoint.push(Kube.getEndpoint(ep)); + } + }); + if (endpoint.length === 0) { + throw 'Cannot get state metrics endpoints from Kubernetes API. Check debug log for more information.'; + } + return endpoint; + }, + + getStateMetrics: function () { + var metrics_endpoint = Kube.getMetricsEndpoint(), + IPv4 = /(?:\d{1,3}\.){3}\d{1,3}/, + result = '', + request = new HttpRequest(Kube.tls.options); + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Kube.params.api_token); + + if (typeof Kube.params.http_proxy !== 'undefined' && Kube.params.http_proxy !== '') { + request.setProxy(Kube.params.http_proxy); + Zabbix.log(4, '[ Kubernetes ] Using http proxy: ' + Kube.params.http_proxy); + } + + metrics_endpoint.forEach(function (endpoint) { + var url = endpoint.scheme + '://' + (IPv4.test(endpoint.address) ? endpoint.address : '[' + endpoint.address + ']') + ':' + endpoint.port + '/metrics'; + + Zabbix.log(4, '[ Kubernetes ] Sending request: ' + url); + response = request.get(url); + Zabbix.log(4, '[ Kubernetes ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + if (response === null) { + throw 'Failed to get state metrics. Check debug log for more information.'; + } + result += response + '\n'; + } + ); + + return result; + + } + }; + + try { + Kube.setParams(JSON.parse(value)); + + var stateMetrics = Kube.getStateMetrics(); + + return stateMetrics; + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Kubernetes ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: 'Collecting Kubernetes metrics from kube-state-metrics.' + timeout: 10s + parameters: + - name: api_token + value: '{$KUBE.API.TOKEN}' + - name: api_url + value: '{$KUBE.API.URL}' + - name: http_proxy + value: '{$KUBE.HTTP.PROXY}' + - name: openshift_endpoint_name + value: '{$OPENSHIFT.STATE.ENDPOINT.NAME}' + - name: state_endpoint_name + value: '{$KUBE.STATE.ENDPOINT.NAME}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Kubernetes cluster state"}' + tags: + - tag: component + value: raw + - uuid: 3940412bea334e139a72b223197582eb + name: 'StatefulSet count' + type: DEPENDENT + key: kube.statefulset.count + delay: '0' + description: 'The number of statefulsets.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - kube_statefulset_created + - function + - count + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: statefulset + discovery_rules: + - uuid: dbfd8959361f4cdd973ed552eb18eb86 + name: 'API servers discovery' + type: DEPENDENT + key: kube.api_servers.discovery + delay: '0' + host_prototypes: + - uuid: a67ac5100e6d499088e4c81856f947fc + host: 'API {#NAME}' + name: 'API {#NAME}' + group_links: + - group: + name: Applications + group_prototypes: + - name: '{#CLUSTER_HOSTNAME}: Kubernetes/Components: {#COMPONENT.API}' + templates: + - name: 'Kubernetes API server by HTTP' + macros: + - macro: '{$KUBE.API.SERVER.URL}' + value: '{#KUBE.API.SERVER.URL}' + tags: + - tag: addr + value: '{#IP}' + custom_interfaces: 'YES' + interfaces: + - ip: '{#IP}' + master_item: + key: kube.control_plane.lld + - uuid: 920b56d5e9234da6b60717763e206736 + name: 'Component statuses discovery' + type: DEPENDENT + key: kube.componentstatuses.discovery + delay: '0' + item_prototypes: + - uuid: 766e311f05f646d18eaaaa9ea9afa691 + name: 'Component [{#NAME}]: Healthy' + type: DEPENDENT + key: 'kube.componentstatuses.healthy[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Cluster component healthy.' + preprocessing: + - type: JSONPATH + parameters: + - '$.items.[?(@.metadata.name == "{#NAME}")].conditions[?(@.type == "Healthy")].status.first()' + error_handler: DISCARD_VALUE + master_item: + key: kube.componentstatuses + tags: + - tag: component + value: component + - tag: component + value: '{#NAME}' + - tag: status + value: healthy + trigger_prototypes: + - uuid: 58828a692aa2418ba98c6d66a23f1506 + expression: 'count(/Kubernetes cluster state by HTTP/kube.componentstatuses.healthy[{#NAME}],#2,"ne","True")=2 and length(last(/Kubernetes cluster state by HTTP/kube.componentstatuses.healthy[{#NAME}]))>0' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'count(/Kubernetes cluster state by HTTP/kube.componentstatuses.healthy[{#NAME}],#3,"eq","True")=3' + name: 'Kubernetes cluster state: Component [{#NAME}] is unhealthy' + priority: WARNING + tags: + - tag: scope + value: availability + master_item: + key: kube.componentstatuses + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.metadata.name + preprocessing: + - type: JSONPATH + parameters: + - $.items + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 08463c66bce845e7acff0d91785e0982 + name: 'Controller manager nodes discovery' + type: DEPENDENT + key: kube.controller_manager.discovery + delay: '0' + host_prototypes: + - uuid: 9d529f3924fc4831a62fb1eec79b64d7 + host: 'Controller manager {#NAME}' + name: 'Controller manager {#NAME}' + group_links: + - group: + name: Applications + group_prototypes: + - name: '{#CLUSTER_HOSTNAME}: Kubernetes/Components: {#COMPONENT.CONTROLLER}' + templates: + - name: 'Kubernetes Controller manager by HTTP' + macros: + - macro: '{$KUBE.CONTROLLER.SERVER.URL}' + value: '{#KUBE.CONTROLLER.SERVER.URL}' + tags: + - tag: addr + value: '{#IP}' + custom_interfaces: 'YES' + interfaces: + - ip: '{#IP}' + master_item: + key: kube.control_plane.lld + - uuid: 9bb7532f14dd42c6a532636126e507f9 + name: 'CronJob discovery' + type: DEPENDENT + key: kube.cronjob.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: fd1afcc4646146588fd3c22cf2f7e040 + name: 'Namespace [{#NAMESPACE}] CronJob [{#NAME}]: Completion failed' + type: DEPENDENT + key: 'kube.cronjob.completion.failed[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'Number of jobs the execution of which has failed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_job_failed{namespace="{#NAMESPACE}", job_name=~"{#NAME}-*", condition="true"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cronjob + - tag: cronjob + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 5ba1dfd55c784f8597575b38399d5e36 + name: 'Namespace [{#NAMESPACE}] CronJob [{#NAME}]: Completion succeeded' + type: DEPENDENT + key: 'kube.cronjob.completion.succeeded[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'Number of jobs the execution of which has been completed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_job_complete{namespace="{#NAMESPACE}", job_name=~"{#NAME}-*", condition="true"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cronjob + - tag: cronjob + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 7ae683d5a1ed4f84a09b38863bd263a7 + name: 'Namespace [{#NAMESPACE}] CronJob [{#NAME}]: Last schedule' + type: DEPENDENT + key: 'kube.cronjob.last_schedule_time[{#NAMESPACE}/{#NAME}]' + delay: '0' + units: unixtime + description: 'LastScheduleTime keeps information of when was the last time the job was successfully scheduled.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_cronjob_status_last_schedule_time{namespace="{#NAMESPACE}", cronjob="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1' + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cronjob + - tag: cronjob + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 8ad7e96b34604a4991698288a7af8027 + name: 'Namespace [{#NAMESPACE}] CronJob [{#NAME}]: Next schedule' + type: DEPENDENT + key: 'kube.cronjob.next_schedule_time[{#NAMESPACE}/{#NAME}]' + delay: '0' + units: unixtime + description: 'Next time the cronjob should be scheduled. The time after lastScheduleTime or after the cron job''s creation time if it''s never been scheduled. Use this to determine if the job is delayed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_cronjob_next_schedule_time{namespace="{#NAMESPACE}", cronjob="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1' + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cronjob + - tag: cronjob + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 329e8166d1ec42cca7508580efaad366 + name: 'Namespace [{#NAMESPACE}] CronJob [{#NAME}]: Suspend' + type: DEPENDENT + key: 'kube.cronjob.spec_suspend[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'Suspend flag tells the controller to suspend subsequent executions.' + valuemap: + name: 'Boolean format' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_cronjob_spec_suspend{namespace="{#NAMESPACE}", cronjob="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cronjob + - tag: cronjob + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: ce13a921915a4232971f2e29102cac64 + name: 'Namespace [{#NAMESPACE}] CronJob [{#NAME}]: Active' + type: DEPENDENT + key: 'kube.cronjob.status_active[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'Active holds pointers to currently running jobs.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_cronjob_status_active{namespace="{#NAMESPACE}", cronjob="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cronjob + - tag: cronjob + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 26993138717242079583b1c17d0e8dc8 + name: 'Namespace [{#NAMESPACE}] CronJob [{#NAME}]: Failed' + type: DEPENDENT + key: 'kube.cronjob.status_failed[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'The number of pods which reached the Failed phase and the reason for failure.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_job_status_failed{namespace="{#NAMESPACE}", job_name=~"{#NAME}-*"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cronjob + - tag: cronjob + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 9e5adc642c3a40ab80654542903cd314 + name: 'Namespace [{#NAMESPACE}] CronJob [{#NAME}]: Succeeded' + type: DEPENDENT + key: 'kube.cronjob.status_succeeded[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'The number of pods which reached the Succeeded phase.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_job_status_succeeded{namespace="{#NAMESPACE}", job_name=~"{#NAME}-*"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cronjob + - tag: cronjob + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.cronjob + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - kube_cronjob_created + - uuid: 907dd8e2792e4e1591a99e4cdf65b0f0 + name: 'Daemonset discovery' + type: DEPENDENT + key: kube.daemonset.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: 61a295b5e2ec4e1f91984a74d0695c1b + name: 'Namespace [{#NAMESPACE}] Daemonset [{#NAME}]: Desired' + type: DEPENDENT + key: 'kube.daemonset.desired[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of nodes that should be running the daemon pod.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_daemonset_status_desired_number_scheduled{namespace="{#NAMESPACE}", daemonset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: daemonset + - tag: daemonset + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 5393cb9b29e442198967cdd2a040d673 + name: 'Namespace [{#NAMESPACE}] Daemonset [{#NAME}]: Misscheduled' + type: DEPENDENT + key: 'kube.daemonset.misscheduled[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of nodes that run a daemon pod but are not supposed to.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_daemonset_status_number_misscheduled{namespace="{#NAMESPACE}", daemonset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: daemonset + - tag: daemonset + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 193ccc0290514c4594193a8bcfd60312 + name: 'Namespace [{#NAMESPACE}] Daemonset [{#NAME}]: Ready' + type: DEPENDENT + key: 'kube.daemonset.ready[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of nodes that should be running the daemon pod and have one or more running and ready.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_daemonset_status_number_ready{namespace="{#NAMESPACE}", daemonset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: daemonset + - tag: daemonset + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 5727ade78d394d8da1ae46b5d35b5f54 + name: 'Namespace [{#NAMESPACE}] Daemonset [{#NAME}]: Scheduled' + type: DEPENDENT + key: 'kube.daemonset.scheduled[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of nodes that run at least one daemon pod and are supposed to.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_daemonset_status_current_number_scheduled{namespace="{#NAMESPACE}", daemonset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: daemonset + - tag: daemonset + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: d7c1ebe9e42942719dae731a2c440208 + name: 'Namespace [{#NAMESPACE}] Daemonset [{#NAME}]: Updated number scheduled' + type: DEPENDENT + key: 'kube.daemonset.updated[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The total number of nodes that are running updated daemon pod.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_daemonset_status_updated_number_scheduled{namespace="{#NAMESPACE}", daemonset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: daemonset + - tag: daemonset + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.daemonset + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - kube_daemonset_status_number_ready + - uuid: 461770e4762f498e86f3f1c931fe27a9 + name: 'Deployment discovery' + type: DEPENDENT + key: kube.deployment.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: 943c67dc814e4b06a57fbc4ef609686a + name: 'Namespace [{#NAMESPACE}] Deployment [{#NAME}]: Replicas' + type: DEPENDENT + key: 'kube.deployment.replicas[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of replicas per deployment.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_deployment_status_replicas{namespace="{#NAMESPACE}", deployment="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: deployment + - tag: deployment + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 23d730bdea7f444eb5f2ee8bf5987379 + name: 'Namespace [{#NAMESPACE}] Deployment [{#NAME}]: Replicas available' + type: DEPENDENT + key: 'kube.deployment.replicas_available[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of available replicas per deployment.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_deployment_status_replicas_available{namespace="{#NAMESPACE}", deployment="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: deployment + - tag: deployment + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: status + value: available + - uuid: b79fe110f4d64a94bb78d7f1e9b175e7 + name: 'Namespace [{#NAMESPACE}] Deployment [{#NAME}]: Replicas desired' + type: DEPENDENT + key: 'kube.deployment.replicas_desired[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of desired pods for a deployment.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_deployment_spec_replicas{namespace="{#NAMESPACE}", deployment="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: deployment + - tag: deployment + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: b6d4d557e6104f6b9e1084863cf4024d + name: 'Namespace [{#NAMESPACE}] Deployment [{#NAME}]: Replicas mismatched' + type: DEPENDENT + key: 'kube.deployment.replicas_mismatched[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of available replicas not matching the desired number of replicas.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^kube_deployment_(spec_replicas|status_replicas_available)$", namespace="{#NAMESPACE}", deployment="{#NAME}"}' + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + replicas_desired, + replicas_available; + + if (data.length !== 2) { + throw 'Incorrect length of JSON (must be 2). Actual length: ' + data.length; + } + + JSON.parse(value).forEach(function (item) { + if (item.name === 'kube_deployment_spec_replicas') { + replicas_desired = item.value; + } + if (item.name === 'kube_deployment_status_replicas_available') { + replicas_available = item.value; + } + }); + + return Math.abs(replicas_desired - replicas_available); + master_item: + key: kube.state.metrics + tags: + - tag: component + value: deployment + - tag: deployment + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 891537523f98425c8bb1566f984b535a + name: 'Namespace [{#NAMESPACE}] Deployment [{#NAME}]: Replicas unavailable' + type: DEPENDENT + key: 'kube.deployment.replicas_unavailable[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of unavailable replicas per deployment.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_deployment_status_replicas_unavailable{namespace="{#NAMESPACE}", deployment="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: deployment + - tag: deployment + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: status + value: unavailable + - uuid: 241480bc5e90426abbf5d2792cd846cd + name: 'Namespace [{#NAMESPACE}] Deployment [{#NAME}]: Replicas updated' + type: DEPENDENT + key: 'kube.deployment.replicas_updated[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of updated replicas per deployment.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_deployment_status_replicas_updated{namespace="{#NAMESPACE}", deployment="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: deployment + - tag: deployment + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: status + value: updated + - uuid: 2651b21facca4bd88929079f4372da37 + name: 'Namespace [{#NAMESPACE}] Deployment [{#NAME}]: Rollingupdate max unavailable' + type: DEPENDENT + key: 'kube.deployment.rollingupdate.max_unavailable[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Maximum number of unavailable replicas during a rolling update of a deployment.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_deployment_spec_strategy_rollingupdate_max_unavailable{namespace="{#NAMESPACE}", deployment="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: deployment + - tag: deployment + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: edc5635267b146d2b0a986e5820227ac + name: 'Namespace [{#NAMESPACE}] Deployment [{#NAME}]: Paused' + type: DEPENDENT + key: 'kube.deployment.spec_paused[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Whether the deployment is paused and will not be processed by the deployment controller.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_deployment_spec_paused{namespace="{#NAMESPACE}", deployment="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: deployment + - tag: deployment + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + trigger_prototypes: + - uuid: aa9f828467d84252aecc00dd342b5661 + expression: | + min(/Kubernetes cluster state by HTTP/kube.deployment.replicas_mismatched[{#NAMESPACE}/{#NAME}],{$KUBE.REPLICA.MISMATCH.EVAL_PERIOD:"deployment:{#NAMESPACE}:{#NAME}"})>0 + and last(/Kubernetes cluster state by HTTP/kube.deployment.replicas_desired[{#NAMESPACE}/{#NAME}])>=0 + and last(/Kubernetes cluster state by HTTP/kube.deployment.replicas_available[{#NAMESPACE}/{#NAME}])>=0 + name: 'Kubernetes cluster state: Namespace [{#NAMESPACE}] Deployment [{#NAME}]: Deployment replicas mismatch' + opdata: 'Desired: {ITEM.LASTVALUE2}, available: {ITEM.LASTVALUE3}' + priority: WARNING + description: 'Deployment has not matched the expected number of replicas during the specified trigger evaluation period.' + tags: + - tag: scope + value: availability + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.deployment + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - kube_deployment_spec_paused + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 671a0dd7f6e54c6893094fa4360d3dd4 + name: 'Endpoint discovery' + type: DEPENDENT + key: kube.endpoint.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: d587eb7186dd425ead2c9554825ba20a + name: 'Namespace [{#NAMESPACE}] Endpoint [{#NAME}]: Address available' + type: DEPENDENT + key: 'kube.endpoint.address_available[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of addresses available in endpoint.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_endpoint_address_available{namespace="{#NAMESPACE}", endpoint="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: endpoint + - tag: endpoint + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: status + value: available + - uuid: 91fc21c37e144890858137f7f5c38135 + name: 'Namespace [{#NAMESPACE}] Endpoint [{#NAME}]: Address not ready' + type: DEPENDENT + key: 'kube.endpoint.address_not_ready[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of addresses not ready in endpoint.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_endpoint_address_not_ready{namespace="{#NAMESPACE}", endpoint="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: endpoint + - tag: endpoint + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: status + value: not-ready + - uuid: f6c2a426e0154c34b2bcb98eeeb88a0d + name: 'Namespace [{#NAMESPACE}] Endpoint [{#NAME}]: Age' + type: DEPENDENT + key: 'kube.endpoint.age[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Endpoint age (number of seconds since creation).' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_endpoint_created{namespace="{#NAMESPACE}", endpoint="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return (Math.floor(Date.now()/1000)-Number(value));' + master_item: + key: kube.state.metrics + tags: + - tag: component + value: endpoint + - tag: endpoint + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.endpoint + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - kube_endpoint_created + - uuid: bc6897c5abe246fdb1ba72c1e71cdb81 + name: 'Job discovery' + type: DEPENDENT + key: kube.job.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: b1fad48e204e4bf9a03c79baa0f58963 + name: 'Namespace [{#NAMESPACE}] Job [{#NAME}]: Completion failed' + type: DEPENDENT + key: 'kube.job.completion.failed[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'Number of jobs the execution of which has failed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_job_failed{namespace="{#NAMESPACE}", job_name="{#NAME}", condition="true"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: job + - tag: job + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 51d3653b2c7543dba04339ded6ff65dd + name: 'Namespace [{#NAMESPACE}] Job [{#NAME}]: Completion succeeded' + type: DEPENDENT + key: 'kube.job.completion.succeeded[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'Number of jobs the execution of which has been completed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_job_complete{namespace="{#NAMESPACE}", job_name="{#NAME}", condition="true"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: job + - tag: job + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: f175e0bd1f6b41a2b62e69df40b3fc07 + name: 'Namespace [{#NAMESPACE}] Job [{#NAME}]: Failed' + type: DEPENDENT + key: 'kube.job.status_failed[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'The number of pods which reached the Failed phase and the reason for failure.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_job_status_failed{namespace="{#NAMESPACE}", job_name="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: job + - tag: job + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + - uuid: b909868367d5481d982d33d5248167ab + name: 'Namespace [{#NAMESPACE}] Job [{#NAME}]: Succeeded' + type: DEPENDENT + key: 'kube.job.status_succeeded[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'The number of pods which reached the Succeeded phase.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_job_status_succeeded{namespace="{#NAMESPACE}", job_name="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: job + - tag: job + value: '{#NAME}' + - tag: namespace + value: '{#NAMESPACE}' + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.job_name + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'kube_job_owner{owner_is_controller!="true"}' + - uuid: 11ca82627209443a96693e443d6391c1 + name: 'Kubelet discovery' + type: DEPENDENT + key: kube.kubelet.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$KUBE.LLD.FILTER.KUBELET_NODE.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$KUBE.LLD.FILTER.KUBELET_NODE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + host_prototypes: + - uuid: c1c4807f378a47dfa59e9bbc8e43f5e2 + host: 'Kubelet {#NAME}' + name: 'Kubelet {#NAME}' + group_links: + - group: + name: Applications + group_prototypes: + - name: '{#CLUSTER_HOSTNAME}: Kubernetes/Components: {#COMPONENT}' + templates: + - name: 'Kubernetes Kubelet by HTTP' + macros: + - macro: '{$KUBE.KUBELET.URL}' + value: '{#KUBE.KUBELET.URL}' + tags: + - tag: addr + value: '{#IP}' + custom_interfaces: 'YES' + interfaces: + - ip: '{#IP}' + master_item: + key: kube.node.lld + - uuid: 438e963e02a749b5a2cc487b9fd5db05 + name: 'Livez discovery' + type: DEPENDENT + key: kube.livez.discovery + delay: '0' + item_prototypes: + - uuid: 93548d985c1542a891bfc74f2d42d59a + name: 'Livez [{#NAME}]: Healthcheck' + type: DEPENDENT + key: 'kube.livez.healthcheck[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Result of livez healthcheck for component.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name == "{#NAME}")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: kube.livez + tags: + - tag: component + value: livez + - tag: component + value: '{#NAME}' + trigger_prototypes: + - uuid: 9fcb23d29ac3481a8613515cc2cccfcf + expression: 'count(/Kubernetes cluster state by HTTP/kube.livez.healthcheck[{#NAME}],#2,"ne","ok")=2 and length(last(/Kubernetes cluster state by HTTP/kube.livez.healthcheck[{#NAME}]))>0' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'count(/Kubernetes cluster state by HTTP/kube.livez.healthcheck[{#NAME}],#3,"eq","ok")=3' + name: 'Kubernetes cluster state: Livez [{#NAME}] is unhealthy' + priority: WARNING + tags: + - tag: scope + value: availability + master_item: + key: kube.livez + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 9d161120d2be48d1abb6e56107057874 + name: 'Node discovery' + type: DEPENDENT + key: kube.node.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$KUBE.LLD.FILTER.NODE.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$KUBE.LLD.FILTER.NODE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 4f994219cbe94dfe8d96af1ad5018212 + name: 'Node [{#NAME}]: CPU allocatable' + type: DEPENDENT + key: 'kube.node.cpu_allocatable[{#NAME}]' + delay: '0' + value_type: FLOAT + units: cpu + description: 'The CPU resources of a node that are available for scheduling.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_node_status_allocatable{node="{#NAME}", resource="cpu"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cpu + - tag: node + value: '{#NAME}' + - tag: status + value: allocatable + - uuid: 5d3ad3e1b2a547aea65b557ff2765ef7 + name: 'Node [{#NAME}]: CPU capacity' + type: DEPENDENT + key: 'kube.node.cpu_capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + units: cpu + description: 'The capacity for CPU resources of a node.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_node_status_capacity{node="{#NAME}", resource="cpu"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: cpu + - tag: node + value: '{#NAME}' + - tag: status + value: capacity + - uuid: 49440553854441f39ecbcf7052d83e51 + name: 'Node [{#NAME}]: Ephemeral storage allocatable' + type: DEPENDENT + key: 'kube.node.ephemeral_storage_allocatable[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The allocatable ephemeral storage of a node that is available for scheduling.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_node_status_allocatable{node="{#NAME}", resource="ephemeral_storage"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: ephemeral-storage + - tag: node + value: '{#NAME}' + - tag: status + value: capacity + - uuid: 2831a4b1bc1549198203f3e894f07a1f + name: 'Node [{#NAME}]: Ephemeral storage capacity' + type: DEPENDENT + key: 'kube.node.ephemeral_storage_capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The ephemeral storage capacity of a node.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_node_status_capacity{node="{#NAME}", resource="ephemeral_storage"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: ephemeral-storage + - tag: node + value: '{#NAME}' + - tag: status + value: capacity + - uuid: 0247f7ba014443a0b13a4fdd3e191062 + name: 'Node [{#NAME}]: Memory allocatable' + type: DEPENDENT + key: 'kube.node.memory_allocatable[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The memory resources of a node that are available for scheduling.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_node_status_allocatable{node="{#NAME}", resource="memory"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: memory + - tag: node + value: '{#NAME}' + - tag: status + value: allocatable + - uuid: 3336028952b14e2ab3dae55659156ea3 + name: 'Node [{#NAME}]: Memory capacity' + type: DEPENDENT + key: 'kube.node.memory_capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The capacity for memory resources of a node.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_node_status_capacity{node="{#NAME}", resource="memory"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: memory + - tag: node + value: '{#NAME}' + - tag: status + value: capacity + - uuid: 049eb92c52a24c9887d7120f2a7e106c + name: 'Node [{#NAME}]: Pods allocatable' + type: DEPENDENT + key: 'kube.node.pods_allocatable[{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The pods resources of a node that are available for scheduling.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_node_status_allocatable{node="{#NAME}", resource="pods"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pods + - tag: node + value: '{#NAME}' + - tag: status + value: allocatable + - uuid: 163edc95ec7d41f29099b94409916d82 + name: 'Node [{#NAME}]: Pods capacity' + type: DEPENDENT + key: 'kube.node.pods_capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The capacity for pods resources of a node.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_node_status_capacity{node="{#NAME}", resource="pods"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pods + - tag: node + value: '{#NAME}' + - tag: status + value: capacity + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.labels.node + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - kube_node_info + - uuid: a7bf79185bab4eb8891e5a154424a96d + name: 'PodDisruptionBudget discovery' + type: DEPENDENT + key: kube.pdb.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: 3eef1fb3311e429fa3043c9e4d88335f + name: 'Namespace [{#NAMESPACE}] PodDisruptionBudget [{#NAME}]: Disruptions allowed' + type: DEPENDENT + key: 'kube.pdb.disruptions_allowed[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of pod disruptions that are allowed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_poddisruptionbudget_status_pod_disruptions_allowed{namespace="{#NAMESPACE}", poddisruptionbudget="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pdb + - tag: namespace + value: '{#NAMESPACE}' + - tag: pdb + value: '{#NAME}' + - uuid: a303e07be68c40bdb7d996696af53c98 + name: 'Namespace [{#NAMESPACE}] PodDisruptionBudget [{#NAME}]: Pods desired' + type: DEPENDENT + key: 'kube.pdb.pods_desired[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Minimum desired number of healthy pods.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_poddisruptionbudget_status_desired_healthy{namespace="{#NAMESPACE}", poddisruptionbudget="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pdb + - tag: namespace + value: '{#NAMESPACE}' + - tag: pdb + value: '{#NAME}' + - uuid: f2a82d6de52446f594a6554137508604 + name: 'Namespace [{#NAMESPACE}] PodDisruptionBudget [{#NAME}]: Pods healthy' + type: DEPENDENT + key: 'kube.pdb.pods_healthy[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Current number of healthy pods.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_poddisruptionbudget_status_current_healthy{namespace="{#NAMESPACE}", poddisruptionbudget="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pdb + - tag: namespace + value: '{#NAMESPACE}' + - tag: pdb + value: '{#NAME}' + - uuid: 2c15033188ab4062a432f30c3320677f + name: 'Namespace [{#NAMESPACE}] PodDisruptionBudget [{#NAME}]: Pods total' + type: DEPENDENT + key: 'kube.pdb.pods_total[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Total number of pods counted by this disruption budget.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_poddisruptionbudget_status_expected_pods{namespace="{#NAMESPACE}", poddisruptionbudget="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pdb + - tag: namespace + value: '{#NAMESPACE}' + - tag: pdb + value: '{#NAME}' + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.poddisruptionbudget + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - kube_poddisruptionbudget_created + - uuid: d88889ab64804c4389d3755ea49b80d6 + name: 'Pod discovery' + type: DEPENDENT + key: kube.pod.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: 3a145b38d57f4164a7a9ef0dd15c530a + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Containers CPU limits' + type: DEPENDENT + key: 'kube.pod.containers.limits.cpu[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The limit on CPU cores to be used by a container.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_container_resource_limits{namespace="{#NAMESPACE}", pod="{#NAME}", resource="cpu"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: resource + value: cpu + - uuid: e1dd38e6fb484610891aef057a58daf0 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Containers memory limits' + type: DEPENDENT + key: 'kube.pod.containers.limits.memory[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The limit on memory to be used by a container.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_container_resource_limits{namespace="{#NAMESPACE}", pod="{#NAME}", resource="memory"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: resource + value: memory + - uuid: 8465ea15f3974476924cb66df5a63e0c + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Containers CPU requests' + type: DEPENDENT + key: 'kube.pod.containers.requests.cpu[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of requested CPU cores by a container.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_container_resource_requests{namespace="{#NAMESPACE}", pod="{#NAME}", resource="cpu"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: resource + value: cpu + - uuid: 27379c192d0841a5adb2c2e4ae937263 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Containers memory requests' + type: DEPENDENT + key: 'kube.pod.containers.requests.memory[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The number of requested memory bytes by a container.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_container_resource_requests{namespace="{#NAMESPACE}", pod="{#NAME}", resource="memory"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: resource + value: memory + - uuid: 1719bf9d1a1c443dbddcefb91483a77c + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Containers ready' + type: DEPENDENT + key: 'kube.pod.containers_ready[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Describes whether the containers readiness check succeeded.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_container_status_ready{namespace="{#NAMESPACE}", pod="{#NAME}"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: status + value: ready + - uuid: fbc8f3a91ec9429ca4c6d70c07480dcc + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Containers restarts' + type: DEPENDENT + key: 'kube.pod.containers_restarts[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of container restarts.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_container_status_restarts_total{namespace="{#NAMESPACE}", pod="{#NAME}"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: status + value: restarts + trigger_prototypes: + - uuid: 4656457043d04f4a9b829222ad071d22 + expression: '(last(/Kubernetes cluster state by HTTP/kube.pod.containers_restarts[{#NAMESPACE}/{#NAME}])-min(/Kubernetes cluster state by HTTP/kube.pod.containers_restarts[{#NAMESPACE}/{#NAME}],15m))>1' + name: 'Kubernetes cluster state: Namespace [{#NAMESPACE}] Pod [{#NAME}]: Pod is crash looping' + priority: WARNING + description: 'Containers of the pod keep restarting. This most likely indicates that the pod is in the CrashLoopBackOff state.' + tags: + - tag: scope + value: availability + - uuid: b96149f7a44d4a49903421fbc38c0101 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Containers running' + type: DEPENDENT + key: 'kube.pod.containers_running[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'Describes whether the container is currently in running state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_container_status_running{namespace="{#NAMESPACE}", pod="{#NAME}"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: status + value: running + - uuid: 50785c1c96894866973ebf8491e3c320 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Containers terminated' + type: DEPENDENT + key: 'kube.pod.containers_terminated[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Describes whether the container is currently in terminated state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_container_status_terminated{namespace="{#NAMESPACE}", pod="{#NAME}"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: status + value: terminated + - uuid: 01d80d5f171f4af2b3b1da70679e87ba + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Containers waiting' + type: DEPENDENT + key: 'kube.pod.containers_waiting[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Describes whether the container is currently in waiting state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_container_status_waiting{namespace="{#NAMESPACE}", pod="{#NAME}"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: status + value: waiting + - uuid: dedbaa4308624b6b982a7e6b62f92d3f + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}] Phase: Failed' + type: DEPENDENT + key: 'kube.pod.phase.failed[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Pod is in failed state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Failed"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: phase + value: failed + - tag: pod + value: '{#NAME}' + - uuid: fa3759bb7873453b9842f3e459403163 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}] Phase: Pending' + type: DEPENDENT + key: 'kube.pod.phase.pending[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Pod is in pending state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Pending"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: phase + value: pending + - tag: pod + value: '{#NAME}' + - uuid: 59168479f1e246bf8da46606f3ce2a5e + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}] Phase: Running' + type: DEPENDENT + key: 'kube.pod.phase.running[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Pod is in unknown state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Running"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: phase + value: running + - tag: pod + value: '{#NAME}' + - uuid: 8a9451a6466f4c64b31377d850841578 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}] Phase: Succeeded' + type: DEPENDENT + key: 'kube.pod.phase.succeeded[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Pod is in succeeded state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Succeeded"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: phase + value: succeeded + - tag: pod + value: '{#NAME}' + - uuid: 9303dab482754a7b991b3ba4afef96e7 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}] Phase: Unknown' + type: DEPENDENT + key: 'kube.pod.phase.unknown[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Pod is in unknown state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Unknown"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: phase + value: unknown + - tag: pod + value: '{#NAME}' + - uuid: d946bc58d5a44aa9936b09c825a51f59 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Ready' + type: DEPENDENT + key: 'kube.pod.ready[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Describes whether the pod is ready to serve requests.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_status_ready{namespace="{#NAMESPACE}", pod="{#NAME}", condition="true"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: status + value: ready + - uuid: 0f858209a4b344de80b1382710c6f153 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Scheduled' + type: DEPENDENT + key: 'kube.pod.scheduled[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Describes the status of the scheduling process for the pod.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_status_scheduled{namespace="{#NAMESPACE}", pod="{#NAME}", condition="true"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: status + value: scheduled + - uuid: 93ba93d04ec34b5193252f19a33f5d59 + name: 'Namespace [{#NAMESPACE}] Pod [{#NAME}]: Unschedulable' + type: DEPENDENT + key: 'kube.pod.unschedulable[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Describes the unschedulable status for the pod.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_pod_status_unschedulable{namespace="{#NAMESPACE}", pod="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: pod + value: '{#NAME}' + - tag: status + value: unschedulable + trigger_prototypes: + - uuid: 5bf79dee7b974064b5848a7dcf6428c2 + expression: 'min(/Kubernetes cluster state by HTTP/kube.pod.phase.failed[{#NAMESPACE}/{#NAME}],10m)>0 or min(/Kubernetes cluster state by HTTP/kube.pod.phase.pending[{#NAMESPACE}/{#NAME}],10m)>0 or min(/Kubernetes cluster state by HTTP/kube.pod.phase.unknown[{#NAMESPACE}/{#NAME}],10m)>0' + name: 'Kubernetes cluster state: Namespace [{#NAMESPACE}] Pod [{#NAME}]: Pod is not healthy' + priority: HIGH + tags: + - tag: scope + value: availability + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.pod + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - kube_pod_start_time + - uuid: 657edb22832e43f5a084cf872c6bc6e4 + name: 'PV discovery' + type: DEPENDENT + key: kube.pv.discovery + delay: '0' + lifetime: '0' + item_prototypes: + - uuid: f93e620a32114a239bc622246ff57eb0 + name: 'PV [{#NAME}] Capacity bytes' + type: DEPENDENT + key: 'kube.pv.capacity.bytes[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'A capacity of the persistent volume in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolume_capacity_bytes{persistentvolume="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pv + - tag: pv + value: '{#NAME}' + - uuid: f1f7c15a30e04203b63b3f828f1e49c6 + name: 'PV status phase: Available, sum' + type: DEPENDENT + key: 'kube.pv.status_phase.available.sum[{#SINGLETON}]' + delay: '0' + discover: NO_DISCOVER + description: 'The total amount of persistent volumes in the Available phase.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolume_status_phase{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}", phase="Available"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: phase + - tag: component + value: pv + - tag: phase + value: available + - uuid: 236db4d5cb4149f691003c0b50bf2b55 + name: 'PV status phase: Bound, sum' + type: DEPENDENT + key: 'kube.pv.status_phase.bound.sum[{#SINGLETON}]' + delay: '0' + discover: NO_DISCOVER + description: 'The total amount of persistent volumes in the Bound phase.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolume_status_phase{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}", phase="Bound"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: phase + - tag: component + value: pv + - tag: phase + value: bound + - uuid: bc5e42637e454baeb38eef946093f38a + name: 'PV status phase: Failed, sum' + type: DEPENDENT + key: 'kube.pv.status_phase.failed.sum[{#SINGLETON}]' + delay: '0' + discover: NO_DISCOVER + description: 'The total amount of persistent volumes in the Failed phase.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolume_status_phase{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}", phase="Failed"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: phase + - tag: component + value: pv + - tag: phase + value: failed + - uuid: e69e327a90094195997a28e36fe47441 + name: 'PV status phase: Pending, sum' + type: DEPENDENT + key: 'kube.pv.status_phase.pending.sum[{#SINGLETON}]' + delay: '0' + discover: NO_DISCOVER + description: 'The total amount of persistent volumes in the Pending phase.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolume_status_phase{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}", phase="Pending"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: phase + - tag: component + value: pv + - tag: phase + value: pending + - uuid: 121d33d774534d38809b014f0af20d72 + name: 'PV status phase: Released, sum' + type: DEPENDENT + key: 'kube.pv.status_phase.released.sum[{#SINGLETON}]' + delay: '0' + discover: NO_DISCOVER + description: 'The total amount of persistent volumes in the Released phase.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolume_status_phase{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}", phase="Released"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: phase + - tag: component + value: pv + - tag: phase + value: released + - uuid: f2982e1a1c4a46f08b855d6f35e60c85 + name: 'PV [{#NAME}] Status phase' + type: DEPENDENT + key: 'kube.pv.status_phase[{#NAME}]' + delay: '0' + description: 'The current status phase of the persistent volume.' + valuemap: + name: 'PV and PVC status phases' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolume_status_phase{persistentvolume="{#NAME}"} == 1' + - label + - phase + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''Available'', ''Bound'', ''Failed'', ''Lost'', ''Pending'', ''Released''].indexOf(value) + 1 || ''Problem with status processing in JS, no such PV status: '' + value;' + master_item: + key: kube.state.metrics + tags: + - tag: component + value: phase + - tag: component + value: pv + - tag: pv + value: '{#NAME}' + trigger_prototypes: + - uuid: ccc486f937bd454e9e7193181a998bdb + expression: 'count(/Kubernetes cluster state by HTTP/kube.pv.status_phase[{#NAME}],2m,,3)>=2' + name: 'Kubernetes cluster state: PV [{#NAME}]: PV has failed' + priority: WARNING + tags: + - tag: scope + value: availability + master_item: + key: kube.state.metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'kube_persistentvolume_info{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}"}' + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value), + output = []; + + input.forEach(function (metric) { + output.push({ '{#NAME}': metric.labels.persistentvolume }); + }); + + if (output.length > 0) { + output.push({ '{#SINGLETON}': '' }); + } + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'sum items' + step: '1' + filter: + conditions: + - macro: '{#SINGLETON}' + operator: EXISTS + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: 'status phase.*sum' + discover: DISCOVER + - operationobject: ITEM_PROTOTYPE + operator: NOT_REGEXP + value: 'status phase.*sum' + discover: NO_DISCOVER + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 4143b2f294ac45a5ab570a94a626fca6 + name: 'PVC discovery' + type: DEPENDENT + key: kube.pvc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: 9187144531f145398bfbe7281290533d + name: 'Namespace [{#NAMESPACE}] PVC [{#NAME}] Requested storage' + type: DEPENDENT + key: 'kube.pvc.requested.storage[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The capacity of storage requested by the persistent volume claim.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolumeclaim_resource_requests_storage_bytes{namespace="{#NAMESPACE}", persistentvolumeclaim="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: pvc + - tag: namespace + value: '{#NAMESPACE}' + - tag: pvc + value: '{#NAME}' + - uuid: 41bc1f54992a492da414846b91d48b0e + name: 'Namespace [{#NAMESPACE}] PVC status phase: Bound, sum' + type: DEPENDENT + key: 'kube.pvc.status_phase.bound.sum[{#NAMESPACE}]' + delay: '0' + discover: NO_DISCOVER + description: 'The total amount of persistent volume claims in the Bound phase.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolumeclaim_status_phase{namespace="{#NAMESPACE}", phase="Bound"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: phase + - tag: component + value: pvc + - tag: namespace + value: '{#NAMESPACE}' + - tag: phase + value: bound + - uuid: f3b3979c04424b908b514589c2995ff8 + name: 'Namespace [{#NAMESPACE}] PVC status phase: Lost, sum' + type: DEPENDENT + key: 'kube.pvc.status_phase.lost.sum[{#NAMESPACE}]' + delay: '0' + discover: NO_DISCOVER + description: 'The total amount of persistent volume claims in the Lost phase.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolumeclaim_status_phase{namespace="{#NAMESPACE}", phase="Lost"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: phase + - tag: component + value: pvc + - tag: namespace + value: '{#NAMESPACE}' + - tag: phase + value: lost + - uuid: 237d8ee073c04c21a14269f15ab679fd + name: 'Namespace [{#NAMESPACE}] PVC status phase: Pending, sum' + type: DEPENDENT + key: 'kube.pvc.status_phase.pending.sum[{#NAMESPACE}]' + delay: '0' + discover: NO_DISCOVER + description: 'The total amount of persistent volume claims in the Pending phase.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolumeclaim_status_phase{namespace="{#NAMESPACE}", phase="Pending"}' + - function + - sum + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: phase + - tag: component + value: pvc + - tag: namespace + value: '{#NAMESPACE}' + - tag: phase + value: pending + - uuid: f036e514626b4610b531f9be09289daa + name: 'Namespace [{#NAMESPACE}] PVC [{#NAME}] Status phase' + type: DEPENDENT + key: 'kube.pvc.status_phase[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'The current status phase of the persistent volume claim.' + valuemap: + name: 'PV and PVC status phases' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_persistentvolumeclaim_status_phase{namespace="{#NAMESPACE}", persistentvolumeclaim="{#NAME}"} == 1' + - label + - phase + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''Available'', ''Bound'', ''Failed'', ''Lost'', ''Pending'', ''Released''].indexOf(value) + 1 || ''Problem with status processing in JS, no such PVC status: '' + value;' + master_item: + key: kube.state.metrics + tags: + - tag: component + value: phase + - tag: component + value: pvc + - tag: namespace + value: '{#NAMESPACE}' + - tag: pvc + value: '{#NAME}' + trigger_prototypes: + - uuid: 6cdf93dad1c647239570cbb3789f1a2c + expression: 'count(/Kubernetes cluster state by HTTP/kube.pvc.status_phase[{#NAMESPACE}/{#NAME}],2m,,5)>=2' + name: 'Kubernetes cluster state: NS [{#NAMESPACE}] PVC [{#NAME}]: PVC is pending' + priority: WARNING + tags: + - tag: scope + value: availability + master_item: + key: kube.state.metrics + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - kube_persistentvolumeclaim_info + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value), + lookup = {}, + output = []; + + input.forEach(function (metric) { + var namespace = metric.labels.namespace; + if (!(lookup[namespace])) { + lookup[namespace] = 1; + output.push({ + '{#IS_SUM}': '', + '{#NAMESPACE}': metric.labels.namespace + }); + } + output.push({ + '{#NAME}': metric.labels.persistentvolumeclaim, + '{#NAMESPACE}': metric.labels.namespace + }); + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'sum items' + step: '1' + filter: + conditions: + - macro: '{#IS_SUM}' + operator: EXISTS + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: 'status phase.*sum' + discover: DISCOVER + - operationobject: ITEM_PROTOTYPE + operator: NOT_REGEXP + value: 'status phase.*sum' + discover: NO_DISCOVER + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: ee274767c42345e3a501f43e81a3364a + name: 'Readyz discovery' + type: DEPENDENT + key: kube.readyz.discovery + delay: '0' + item_prototypes: + - uuid: c0693fb2709e4b01a35ca433edb84db7 + name: 'Readyz [{#NAME}]: Healthcheck' + type: DEPENDENT + key: 'kube.readyz.healthcheck[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Result of readyz healthcheck for component.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name == "{#NAME}")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: kube.readyz + tags: + - tag: component + value: readyz + - tag: component + value: '{#NAME}' + trigger_prototypes: + - uuid: 1a88c2cf94d3444c9e5320776b323ce6 + expression: 'count(/Kubernetes cluster state by HTTP/kube.readyz.healthcheck[{#NAME}],#2,"ne","ok")=2 and length(last(/Kubernetes cluster state by HTTP/kube.readyz.healthcheck[{#NAME}]))>0' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'count(/Kubernetes cluster state by HTTP/kube.readyz.healthcheck[{#NAME}],#3,"eq","ok")=3' + name: 'Kubernetes cluster state: Readyz [{#NAME}] is unhealthy' + priority: WARNING + tags: + - tag: scope + value: availability + master_item: + key: kube.readyz + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 6244f250f6cd411080221843ad1c59f2 + name: 'ReplicaSet discovery' + type: DEPENDENT + key: kube.replicaset.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: 928536dae27c4e3497627b9f5642a7a8 + name: 'Namespace [{#NAMESPACE}] ReplicaSet [{#NAME}]: Fully labeled replicas' + type: DEPENDENT + key: 'kube.replicaset.fully_labeled_replicas[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of fully labeled replicas per ReplicaSet.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_replicaset_status_fully_labeled_replicas{namespace="{#NAMESPACE}", replicaset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: replicaset + - tag: namespace + value: '{#NAMESPACE}' + - tag: replicaset + value: '{#NAME}' + - tag: status + value: fully-labeled + - uuid: 4e911e4b71c342dba2227ed7ef360190 + name: 'Namespace [{#NAMESPACE}] ReplicaSet [{#NAME}]: Ready' + type: DEPENDENT + key: 'kube.replicaset.ready[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of ready replicas per ReplicaSet.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_replicaset_status_ready_replicas{namespace="{#NAMESPACE}", replicaset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: replicaset + - tag: namespace + value: '{#NAMESPACE}' + - tag: replicaset + value: '{#NAME}' + - tag: status + value: ready + - uuid: 545c8486dcc9409c93c6efee0f4b2ad6 + name: 'Namespace [{#NAMESPACE}] ReplicaSet [{#NAME}]: Replicas' + type: DEPENDENT + key: 'kube.replicaset.replicas[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of replicas per ReplicaSet.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_replicaset_status_replicas{namespace="{#NAMESPACE}", replicaset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: replicaset + - tag: namespace + value: '{#NAMESPACE}' + - tag: replicaset + value: '{#NAME}' + - uuid: 30aea656c8a5470ea4566333077628b3 + name: 'Namespace [{#NAMESPACE}] ReplicaSet [{#NAME}]: Desired replicas' + type: DEPENDENT + key: 'kube.replicaset.replicas_desired[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of desired pods for a ReplicaSet.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_replicaset_spec_replicas{namespace="{#NAMESPACE}", replicaset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: replicaset + - tag: namespace + value: '{#NAMESPACE}' + - tag: replicaset + value: '{#NAME}' + - tag: status + value: desired + - uuid: a249a4762874499eb83eb8864df5c357 + name: 'Namespace [{#NAMESPACE}] ReplicaSet [{#NAME}]: Replicas mismatched' + type: DEPENDENT + key: 'kube.replicaset.replicas_mismatched[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of ready replicas not matching the desired number of replicas.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^kube_replicaset_(spec_replicas|status_ready_replicas)$", namespace="{#NAMESPACE}", replicaset="{#NAME}"}' + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + replicas_desired, + replicas_ready; + + if (data.length !== 2) { + throw 'Incorrect length of JSON (must be 2). Actual length: ' + data.length; + } + + JSON.parse(value).forEach(function (item) { + if (item.name === 'kube_replicaset_spec_replicas') { + replicas_desired = item.value; + } + if (item.name === 'kube_replicaset_status_ready_replicas') { + replicas_ready = item.value; + } + }); + + return Math.abs(replicas_desired - replicas_ready); + master_item: + key: kube.state.metrics + tags: + - tag: component + value: replicaset + - tag: namespace + value: '{#NAMESPACE}' + - tag: replicaset + value: '{#NAME}' + trigger_prototypes: + - uuid: 8046757dbd3b459c9cd9f7bd369dd416 + expression: | + min(/Kubernetes cluster state by HTTP/kube.replicaset.replicas_mismatched[{#NAMESPACE}/{#NAME}],{$KUBE.REPLICA.MISMATCH.EVAL_PERIOD:"replicaset:{#NAMESPACE}:{#NAME}"})>0 + and last(/Kubernetes cluster state by HTTP/kube.replicaset.replicas_desired[{#NAMESPACE}/{#NAME}])>=0 + and last(/Kubernetes cluster state by HTTP/kube.replicaset.ready[{#NAMESPACE}/{#NAME}])>=0 + name: 'Kubernetes cluster state: Namespace [{#NAMESPACE}] RS [{#NAME}]: ReplicaSet mismatch' + opdata: 'Desired: {ITEM.LASTVALUE2}, ready: {ITEM.LASTVALUE3}' + priority: WARNING + description: 'ReplicaSet has not matched the expected number of replicas during the specified trigger evaluation period.' + tags: + - tag: scope + value: availability + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.replicaset + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - kube_replicaset_status_replicas + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: f732cbb0e71e4ab896c973e355d7a6a4 + name: 'Scheduler servers nodes discovery' + type: DEPENDENT + key: kube.scheduler.discovery + delay: '0' + host_prototypes: + - uuid: 46da4b85c58f4c59825e61778a64a58e + host: 'Scheduler {#NAME}' + name: 'Scheduler {#NAME}' + group_links: + - group: + name: Applications + group_prototypes: + - name: '{#CLUSTER_HOSTNAME}: Kubernetes/Components: {#COMPONENT.SCHEDULER}' + templates: + - name: 'Kubernetes Scheduler by HTTP' + macros: + - macro: '{$KUBE.SCHEDULER.SERVER.URL}' + value: '{#KUBE.SCHEDULER.SERVER.URL}' + tags: + - tag: addr + value: '{#IP}' + custom_interfaces: 'YES' + interfaces: + - ip: '{#IP}' + master_item: + key: kube.control_plane.lld + - uuid: 37812660877243e9bdbc0ffc7815578c + name: 'StatefulSet discovery' + type: DEPENDENT + key: kube.statefulset.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: 9cc34425228f44868f3cd46450d557ca + name: 'Namespace [{#NAMESPACE}] StatefulSet [{#NAME}]: Replicas' + type: DEPENDENT + key: 'kube.statefulset.replicas[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of replicas per StatefulSet.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_statefulset_status_replicas{namespace="{#NAMESPACE}", statefulset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: statefulset + - tag: namespace + value: '{#NAMESPACE}' + - tag: statefulset + value: '{#NAME}' + - uuid: 33e5a534b35f40c6ad7fef53212ef970 + name: 'Namespace [{#NAMESPACE}] StatefulSet [{#NAME}]: Current replicas' + type: DEPENDENT + key: 'kube.statefulset.replicas_current[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of current replicas per StatefulSet.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_statefulset_status_replicas_current{namespace="{#NAMESPACE}", statefulset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: statefulset + - tag: namespace + value: '{#NAMESPACE}' + - tag: statefulset + value: '{#NAME}' + - uuid: 3fee3afc8b924b13ae24ab4b5e793acf + name: 'Namespace [{#NAMESPACE}] StatefulSet [{#NAME}]: Desired replicas' + type: DEPENDENT + key: 'kube.statefulset.replicas_desired[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of desired pods for a StatefulSet.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_statefulset_replicas{namespace="{#NAMESPACE}", statefulset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: statefulset + - tag: namespace + value: '{#NAMESPACE}' + - tag: statefulset + value: '{#NAME}' + - tag: status + value: ready + - uuid: e2c3e03fe9bd42beab8a5d09c0a766bd + name: 'Namespace [{#NAMESPACE}] StatefulSet [{#NAME}]: Replicas mismatched' + type: DEPENDENT + key: 'kube.statefulset.replicas_mismatched[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of ready replicas not matching the number of replicas.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^kube_statefulset_(status_replicas|status_replicas_ready)$", namespace="{#NAMESPACE}", statefulset="{#NAME}"}' + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + replicas, + replicas_ready; + + if (data.length !== 2) { + throw 'Incorrect length of JSON (must be 2). Actual length: ' + data.length; + } + + JSON.parse(value).forEach(function (item) { + if (item.name === 'kube_statefulset_status_replicas') { + replicas = item.value; + } + if (item.name === 'kube_statefulset_status_replicas_ready') { + replicas_ready = item.value; + } + }); + + return Math.abs(replicas - replicas_ready); + master_item: + key: kube.state.metrics + tags: + - tag: component + value: statefulset + - tag: namespace + value: '{#NAMESPACE}' + - tag: statefulset + value: '{#NAME}' + - uuid: b35c1cebd902484998f383585ce29b76 + name: 'Namespace [{#NAMESPACE}] StatefulSet [{#NAME}]: Ready replicas' + type: DEPENDENT + key: 'kube.statefulset.replicas_ready[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of ready replicas per StatefulSet.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_statefulset_status_replicas_ready{namespace="{#NAMESPACE}", statefulset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: statefulset + - tag: namespace + value: '{#NAMESPACE}' + - tag: statefulset + value: '{#NAME}' + - tag: status + value: ready + - uuid: b00b1cfed30e4b90b9754d543e72d7aa + name: 'Namespace [{#NAMESPACE}] StatefulSet [{#NAME}]: Updated replicas' + type: DEPENDENT + key: 'kube.statefulset.replicas_updated[{#NAMESPACE}/{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The number of updated replicas per StatefulSet.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'kube_statefulset_status_replicas_updated{namespace="{#NAMESPACE}", statefulset="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: statefulset + - tag: namespace + value: '{#NAMESPACE}' + - tag: statefulset + value: '{#NAME}' + - tag: status + value: updated + trigger_prototypes: + - uuid: c29a27fe5a0345c8af9e0d4e99b22dcb + expression: '(last(/Kubernetes cluster state by HTTP/kube.statefulset.replicas_ready[{#NAMESPACE}/{#NAME}]) / last(/Kubernetes cluster state by HTTP/kube.statefulset.replicas_current[{#NAMESPACE}/{#NAME}]))<>1' + name: 'Kubernetes cluster state: Namespace [{#NAMESPACE}] StatefulSet [{#NAME}]: StatefulSet is down' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 469d6933f5494ca48a212cdc364058e0 + expression: | + min(/Kubernetes cluster state by HTTP/kube.statefulset.replicas_mismatched[{#NAMESPACE}/{#NAME}],{$KUBE.REPLICA.MISMATCH.EVAL_PERIOD:"statefulset:{#NAMESPACE}:{#NAME}"})>0 + and last(/Kubernetes cluster state by HTTP/kube.statefulset.replicas[{#NAMESPACE}/{#NAME}])>=0 + and last(/Kubernetes cluster state by HTTP/kube.statefulset.replicas_ready[{#NAMESPACE}/{#NAME}])>=0 + name: 'Kubernetes cluster state: Namespace [{#NAMESPACE}] StatefulSet [{#NAME}]: StatefulSet replicas mismatch' + opdata: 'Replicas: {ITEM.LASTVALUE2}, ready: {ITEM.LASTVALUE3}' + priority: WARNING + description: 'StatefulSet has not matched the number of replicas during the specified trigger evaluation period.' + tags: + - tag: scope + value: availability + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.statefulset + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - kube_statefulset_status_replicas + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 428c4419ac8b4c91995a2aa7332b1943 + name: 'OpenShift Build discovery' + type: DEPENDENT + key: openshift.build.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: 4d1013542dcb45b3ae59fd276b0df3e0 + name: 'Namespace [{#NAMESPACE}] Build [{#NAME}]: Created' + type: DEPENDENT + key: 'openshift.build.created.time[{#NAMESPACE}/{#NAME}]' + delay: '0' + units: unixtime + description: 'OpenShift Build Unix creation timestamp.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'openshift_build_created{namespace="{#NAMESPACE}", build="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.state.metrics + tags: + - tag: build + value: '{#NAME}' + - tag: component + value: build + - tag: component + value: openshift + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 97ebce9edb774e25943ed22416caaa0b + name: 'Namespace [{#NAMESPACE}] Build [{#NAME}]: Generation' + type: DEPENDENT + key: 'openshift.build.sequence.number[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'Sequence number representing a specific generation of the desired state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'openshift_build_metadata_generation{namespace="{#NAMESPACE}", build="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: build + value: '{#NAME}' + - tag: component + value: build + - tag: component + value: openshift + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 9a8bdd353a5a499c8c66468c1325ae16 + name: 'Namespace [{#NAMESPACE}] Build [{#NAME}]: Status phase' + type: DEPENDENT + key: 'openshift.build.status_phase[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'The Build phase.' + valuemap: + name: 'Build status phases' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'openshift_build_status_phase{build="{#NAME}"} == 1' + - label + - build_phase + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''complete'', ''cancelled'', ''new'', ''pending'', ''running'', ''failed'', ''error''].indexOf(value) + 1 || ''Problem with status processing in JS, no such build status: '' + value;' + master_item: + key: kube.state.metrics + tags: + - tag: build + value: '{#NAME}' + - tag: component + value: build + - tag: component + value: openshift + - tag: namespace + value: '{#NAMESPACE}' + trigger_prototypes: + - uuid: b3364370ae954d69b7fad1ac3afd238b + expression: 'count(/Kubernetes cluster state by HTTP/openshift.build.status_phase[{#NAMESPACE}/{#NAME}],2m,"ge",6)>=2' + name: 'Kubernetes cluster state: Build [{#NAME}]: Build has failed' + priority: WARNING + tags: + - tag: scope + value: availability + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.build + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - openshift_build_created + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 974679d1b2bc4d7294baeca07bd19e07 + name: 'OpenShift BuildConfig discovery' + type: DEPENDENT + key: openshift.buildconfig.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: 09d0c8ed4d604d898f212419ccdf8324 + name: 'Namespace [{#NAMESPACE}] BuildConfig [{#NAME}]: Created' + type: DEPENDENT + key: 'openshift.buildconfig.created.time[{#NAMESPACE}/{#NAME}]' + delay: '0' + units: unixtime + description: 'OpenShift BuildConfig Unix creation timestamp.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'openshift_buildconfig_created{namespace="{#NAMESPACE}", buildconfig="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.state.metrics + tags: + - tag: buildconfig + value: '{#NAME}' + - tag: component + value: buildconfig + - tag: component + value: openshift + - tag: namespace + value: '{#NAMESPACE}' + - uuid: 2e90ec2497eb4eb3bf41b68282f07e6d + name: 'Namespace [{#NAMESPACE}] BuildConfig [{#NAME}]: Generation' + type: DEPENDENT + key: 'openshift.buildconfig.generation[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'Sequence number representing a specific generation of the desired state.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'openshift_buildconfig_metadata_generation{namespace="{#NAMESPACE}", buildconfig="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: buildconfig + value: '{#NAME}' + - tag: component + value: buildconfig + - tag: component + value: openshift + - tag: namespace + value: '{#NAMESPACE}' + - uuid: e97bf96c39d1407cbc42013bcd3a5095 + name: 'Namespace [{#NAMESPACE}] BuildConfig [{#NAME}]: Latest version' + type: DEPENDENT + key: 'openshift.buildconfig.status[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'The latest version of BuildConfig.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'openshift_buildconfig_status_latest_version{namespace="{#NAMESPACE}", buildconfig="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.state.metrics + tags: + - tag: buildconfig + value: '{#NAME}' + - tag: component + value: buildconfig + - tag: component + value: openshift + - tag: namespace + value: '{#NAMESPACE}' + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.buildconfig + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - openshift_buildconfig_created + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: d7e21c75073548078e06159ff94680c9 + name: 'OpenShift ClusterResourceQuota discovery' + type: DEPENDENT + key: openshift.cluster.resource.quota.discovery + delay: '0' + lifetime: '0' + item_prototypes: + - uuid: 0b3826bad61c407ab4b9e103f0a3ae18 + name: 'Quota [{#NAME}] Resource [{#RESOURCE}]: Type [{#TYPE}]]' + type: DEPENDENT + key: 'openshift.cluster.resource.quota[{#RESOURCE}/{#NAME}/{#TYPE}]' + delay: '0' + description: 'Usage about resource quota.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'openshift_clusterresourcequota_usage{name="{#NAME}", resource="{#RESOURCE}", type="{#TYPE}"}' + - value + - '' + error_handler: DISCARD_VALUE + master_item: + key: kube.state.metrics + tags: + - tag: component + value: openshift + - tag: quota + value: '{#NAME}' + - tag: resource + value: '{#RESOURCE}' + - tag: type + value: '{#TYPE}' + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.labels.name + - lld_macro: '{#RESOURCE}' + path: $.labels.resource + - lld_macro: '{#TYPE}' + path: $.labels.type + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - openshift_clusterresourcequota_usage + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 140a80726c60443ca5bb87b758924f7f + name: 'OpenShift Route discovery' + type: DEPENDENT + key: openshift.route.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: '0' + item_prototypes: + - uuid: a59550207a484b918193d4a57b08d97e + name: 'Namespace [{#NAMESPACE}] Route [{#NAME}]: Created' + type: DEPENDENT + key: 'openshift.route.created.time[{#NAMESPACE}/{#NAME}]' + delay: '0' + units: unixtime + description: 'OpenShift Route Unix creation timestamp.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'openshift_route_created{namespace="{#NAMESPACE}", route="{#NAME}"}' + - value + - '' + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.state.metrics + tags: + - tag: component + value: openshift + - tag: component + value: route + - tag: host + value: '{#HOST}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: route + value: '{#NAME}' + - uuid: d55f9134b0fa4f3ea0eea93a682ab4f9 + name: 'Namespace [{#NAMESPACE}] Route [{#NAME}]: Status' + type: DEPENDENT + key: 'openshift.route.status[{#NAMESPACE}/{#NAME}]' + delay: '0' + description: 'Information about route status.' + valuemap: + name: 'Boolean format' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'openshift_route_status{route="{#NAME}"} == 1' + - label + - status + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: kube.state.metrics + tags: + - tag: component + value: openshift + - tag: component + value: route + - tag: host + value: '{#HOST}' + - tag: namespace + value: '{#NAMESPACE}' + - tag: route + value: '{#NAME}' + trigger_prototypes: + - uuid: 98a6d7ba3a4049d693f5471819ee4b2e + expression: 'count(/Kubernetes cluster state by HTTP/openshift.route.status[{#NAMESPACE}/{#NAME}],2m,,0)>=2' + name: 'Kubernetes cluster state: Route [{#NAME}] with issue: Status is false' + priority: WARNING + tags: + - tag: scope + value: availability + master_item: + key: kube.state.metrics + lld_macro_paths: + - lld_macro: '{#HOST}' + path: $.labels.host + - lld_macro: '{#NAMESPACE}' + path: $.labels.namespace + - lld_macro: '{#NAME}' + path: $.labels.route + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - openshift_route_info + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: software + - tag: target + value: cluster-state + - tag: target + value: kubernetes + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Kubernetes cluster state", e.g. {$HTTP.TLS.VERIFY:"Kubernetes cluster state"}.' + - macro: '{$KUBE.API.COMPONENTSTATUSES.ENDPOINT}' + value: /api/v1/componentstatuses + description: 'Kubernetes API componentstatuses endpoint /api/v1/componentstatuses' + - macro: '{$KUBE.API.LIVEZ.ENDPOINT}' + value: /livez + description: 'Kubernetes API livez endpoint /livez' + - macro: '{$KUBE.API.READYZ.ENDPOINT}' + value: /readyz + description: 'Kubernetes API readyz endpoint /readyz' + - macro: '{$KUBE.API.TOKEN}' + description: 'Service account bearer token.' + - macro: '{$KUBE.API.URL}' + value: 'https://kubernetes.default.svc.cluster.local:443' + description: 'Kubernetes API endpoint URL in the format ://:' + - macro: '{$KUBE.API_SERVER.PORT}' + value: '6443' + description: 'Kubernetes API servers metrics endpoint port. Used in ControlPlane LLD.' + - macro: '{$KUBE.API_SERVER.SCHEME}' + value: https + description: 'Kubernetes API servers metrics endpoint scheme. Used in ControlPlane LLD.' + - macro: '{$KUBE.CONTROLLER_MANAGER.PORT}' + value: '10257' + description: 'Kubernetes Controller manager metrics endpoint port. Used in ControlPlane LLD.' + - macro: '{$KUBE.CONTROLLER_MANAGER.SCHEME}' + value: https + description: 'Kubernetes Controller manager metrics endpoint scheme. Used in ControlPlane LLD.' + - macro: '{$KUBE.CONTROL_PLANE.TAINT}' + value: node-role.kubernetes.io/control-plane + description: 'Taint that applies to control plane nodes. Change if needed. Used in ControlPlane LLD.' + - macro: '{$KUBE.HTTP.PROXY}' + description: 'Sets the HTTP proxy to `http_proxy` value. If this parameter is empty, then no proxy is used.' + - macro: '{$KUBE.KUBELET.FILTER.ANNOTATIONS}' + description: 'Node annotations to filter Kubelets (regex in values are supported). See the template''s README.md for details.' + - macro: '{$KUBE.KUBELET.FILTER.LABELS}' + description: 'Node labels to filter Kubelets (regex in values are supported). See the template''s README.md for details.' + - macro: '{$KUBE.KUBELET.PORT}' + value: '10250' + description: 'Kubernetes Kubelet metrics endpoint port. Used in Kubelet LLD.' + - macro: '{$KUBE.KUBELET.SCHEME}' + value: https + description: 'Kubernetes Kubelet metrics endpoint scheme. Used in Kubelet LLD.' + - macro: '{$KUBE.LLD.FILTER.KUBELET_NODE.MATCHES}' + value: '.*' + description: 'Filter of discoverable Kubelets by nodename.' + - macro: '{$KUBE.LLD.FILTER.KUBELET_NODE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Kubelets by nodename.' + - macro: '{$KUBE.LLD.FILTER.NAMESPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable metrics by namespace.' + - macro: '{$KUBE.LLD.FILTER.NAMESPACE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered metrics by namespace.' + - macro: '{$KUBE.LLD.FILTER.NODE.MATCHES}' + value: '.*' + description: 'Filter of discoverable nodes by nodename.' + - macro: '{$KUBE.LLD.FILTER.NODE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered nodes by nodename.' + - macro: '{$KUBE.LLD.FILTER.PV.MATCHES}' + value: '.*' + description: 'Filter of discoverable persistent volumes by name.' + - macro: '{$KUBE.LLD.FILTER.PV.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered persistent volumes by name.' + - macro: '{$KUBE.REPLICA.MISMATCH.EVAL_PERIOD}' + value: '#5' + description: 'The evaluation period range which is used for calculation of expressions in trigger prototypes (time period or value range). Can be used with context.' + - macro: '{$KUBE.SCHEDULER.PORT}' + value: '10259' + description: 'Kubernetes Scheduler metrics endpoint port. Used in ControlPlane LLD.' + - macro: '{$KUBE.SCHEDULER.SCHEME}' + value: https + description: 'Kubernetes Scheduler metrics endpoint scheme. Used in ControlPlane LLD.' + - macro: '{$KUBE.STATE.ENDPOINT.NAME}' + value: zabbix-kube-state-metrics + description: 'Endpoint name for kube-state-metrics service (check with `kubectl get ep -n monitoring -owide`).' + - macro: '{$OPENSHIFT.STATE.ENDPOINT.NAME}' + value: openshift-state-metrics + description: 'OpenShift state endpoint name.' + valuemaps: + - uuid: a435f7e23050406ca40cf6f5f872b5a7 + name: 'Boolean format' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: a315a447059e49f9bc0c3e2e9964696f + name: 'Build status phases' + mappings: + - value: '1' + newvalue: complete + - value: '2' + newvalue: cancelled + - value: '3' + newvalue: new + - value: '4' + newvalue: pending + - value: '5' + newvalue: running + - value: '6' + newvalue: failed + - value: '7' + newvalue: error + - uuid: f5aa4a786972420b859029116aac8a2f + name: 'PV and PVC status phases' + mappings: + - value: '1' + newvalue: Available + - value: '2' + newvalue: Bound + - value: '3' + newvalue: Failed + - value: '4' + newvalue: Lost + - value: '5' + newvalue: Pending + - value: '6' + newvalue: Released diff --git a/Kubernetes_nodes_by_HTTP.yaml b/Kubernetes_nodes_by_HTTP.yaml new file mode 100644 index 0000000..ad59e6e --- /dev/null +++ b/Kubernetes_nodes_by_HTTP.yaml @@ -0,0 +1,1703 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: f397be2340734d24bc666102fbe184a5 + template: 'Kubernetes nodes by HTTP' + name: 'Kubernetes nodes by HTTP' + description: | + Get Kubernetes nodes metrics by HTTP. + Metrics are collected by requests to Kubernetes API. + + Don't forget to read the README.md for the correct setup of the template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Applications + items: + - uuid: 70dab03a327a4dc0ab9fe8031052584d + name: 'Get nodes' + type: SCRIPT + key: kube.nodes + delay: 0;s00 + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Kube = { + params: {}, + pods_limit: 1000, + + setParams: function (params) { + ['api_token', 'api_url'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' + || params[field] === '') { + throw 'Required param is not set: "' + field + '".'; + } + }); + ['endpoint_name', 'pod_filter_labels', 'pod_filter_annotations', 'node_filter_labels', 'node_filter_annotations'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined') { + throw 'Parameter can be empty but not removed: "' + field + '".'; + } + }); + + Kube.params = params; + if (typeof Kube.params.api_url === 'string' && !Kube.params.api_url.endsWith('/')) { + Kube.params.api_url += '/'; + } + + Kube.tls = new CTlsConfig(params.tls_verify); + Kube.tls.checkURL(Kube.params.api_url); + }, + + apiRequest: function (query) { + var request = new HttpRequest(Kube.tls.options), + response, + url = encodeURI(Kube.params.api_url + query); + if (typeof Kube.params.http_proxy !== 'undefined' && Kube.params.http_proxy !== '') { + request.setProxy(Kube.params.http_proxy); + } + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + Kube.params.api_token); + + if (Kube.params.http_proxy) { + Zabbix.log(4, '[ Kubernetes ] Using http proxy: ' + Kube.params.http_proxy); + } + response = request.get(url); + + Zabbix.log(4, '[ Kubernetes ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Kubernetes API. Check debug log for more information.'; + } + return response; + }, + + parseFilters: function (csv) { + if (!csv) + return []; + + var filters = []; + const filterCapture = /([!\w\-\.\/]+)\s*:\s*(.*)/; + const onComma = /\s*,\s*/; + + csv.split(onComma).forEach(function (kv) { + var match = kv.match(filterCapture); + if (!match) { + Zabbix.log(3, 'Cannot parse filter from: "' + kv + '"'); + return; + } + + filters.push({ key: match[1], expression: match[2] }); + }); + + return filters; + }, + + filter: function (name, data, filters) { + if (typeof data !== 'object') { + return true; + } + + return filters.every(function (filter) { + const filter_key = filter.key.startsWith('!') ? filter.key.substring(1) : filter.key; + + if (!(filter_key in data)) { + return true; + } + + const isExcludingFilter = filter.key.startsWith('!'); + const isMatchForFilter = new RegExp(filter.expression).test(data[filter_key]); + + if ((isExcludingFilter && isMatchForFilter) || + (!isExcludingFilter && !isMatchForFilter)) { + Zabbix.log(4, '[ Kubernetes ] Discarded "' + name + '" by filter "' + filter.key + ': ' + filter.expression + '"'); + return false; + } + + return true; + }); + }, + + getField: function (data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + }, + + getNodes: function () { + var result = Kube.apiRequest('api/v1/nodes'), + output = [], + filterNodeLabels = Kube.parseFilters(Kube.params.node_filter_labels), + filterNodeAnnotations = Kube.parseFilters(Kube.params.node_filter_annotations); + if (typeof result !== 'object' + || typeof result.items === 'undefined') { + throw 'Cannot get nodes from Kubernetes API. Check debug log for more information.'; + } + + result.items.forEach(function (filternode) { + if (Kube.filter(Kube.getField(filternode, 'metadata.name'), Kube.getField(filternode, 'metadata.labels'), filterNodeLabels) + && Kube.filter(Kube.getField(filternode, 'metadata.name'), Kube.getField(filternode, 'metadata.annotations'), filterNodeAnnotations)) { + Zabbix.log(4, '[ Kubernetes ] Filtered node "' + filternode.metadata.name + '"'); + + output.push({ + filternode + }); + } + }); + + return output; + }, + + getPods: function () { + var result = [], + continue_token, + Pods = []; + + while (continue_token !== '') { + var data = Kube.apiRequest('api/v1/pods?limit=' + Kube.pods_limit + + ((typeof continue_token !== 'undefined') ? '&continue=' + continue_token : '')); + + if (typeof data !== 'object' + || typeof data.items === 'undefined') { + throw 'Cannot get pods from Kubernetes API. Check debug log for more information.'; + }; + + result.push.apply(result, data.items); + continue_token = data.metadata.continue || ''; + } + result.forEach(function (pod) { + + var containers = { + limits: { cpu: 0, memory: 0 }, + requests: { cpu: 0, memory: 0 }, + restartCount: 0 + }, + containerStatuses = [{ restartCount: 0 }]; + + if (typeof pod.status.hostIP === 'object' + || typeof pod.status.hostIP === 'undefined') { + pod.status.hostIP = 'none'; + }; + + Kube.getField(pod, 'spec.containers').forEach(function (container) { + var limits = container.resources.limits, + requests = container.resources.requests; + + if (typeof limits !== 'undefined') { + containers.limits.cpu += Fmt.cpuFormat(limits.cpu); + containers.limits.memory += Fmt.memoryFormat(limits.memory); + } + + if (typeof requests !== 'undefined') { + containers.requests.cpu += Fmt.cpuFormat(requests.cpu); + containers.requests.memory += Fmt.memoryFormat(requests.memory); + } + }); + + if (typeof pod.status.containerStatuses !== 'object' + || typeof pod.status.containerStatuses === 'undefined') { + pod.status.containerStatuses = containerStatuses; + }; + pod.status.containerStatuses.forEach(function (container) { + containers.restartCount += container.restartCount; + + }); + + Pods.push({ + 'name': pod.metadata.name, + 'nodeIP': pod.status.hostIP, + 'namespace': pod.metadata.namespace, + 'labels': pod.metadata.labels, + 'annotations': pod.metadata.annotations, + 'phase': pod.status.phase, + 'conditions': pod.status.conditions, + 'startTime': pod.status.startTime, + 'containers': containers, + 'hostname': 'none' + }) + }); + return Pods; + }, + + getEndpointIPs: function () { + var endpoints = Kube.apiRequest('api/v1/endpoints'), + endpointIPs = []; + if (typeof endpoints !== 'object' + || typeof endpoints.items === 'undefined') { + throw 'Cannot get endpoints from Kubernetes API. Check debug log for more information.'; + }; + + endpoints.items.forEach(function (ep) { + if (Kube.getField(ep, 'metadata.name') !== Kube.params.endpoint_name) { + return; + } + if (!Array.isArray(ep.subsets)) { + return; + } + endpointIPs = ep.subsets; + + }); + return endpointIPs; + } + }, + + Fmt = { + factors: { + Ki: 1024, K: 1000, + Mi: 1024 ** 2, M: 1000 ** 2, + Gi: 1024 ** 3, G: 1000 ** 3, + Ti: 1024 ** 4, T: 1000 ** 4, + }, + + cpuFormat: function (cpu) { + if (typeof cpu === 'undefined') { + return 0; + } + + if (cpu.indexOf('m') > -1) { + return parseInt(cpu) / 1000; + } + + return parseInt(cpu); + }, + + memoryFormat: function (mem) { + if (typeof mem === 'undefined') { + return 0; + } + + var pair, + factor; + + if (pair = mem.match(/(\d+)(\w*)/)) { + if (factor = Fmt.factors[pair[2]]) { + return parseInt(pair[1]) * factor; + } + + return mem; + } + + return parseInt(mem); + } + + } + + try { + Kube.setParams(JSON.parse(value)); + + var nodes = Kube.getNodes(), + pods = Kube.getPods(), + Pods = [], + hostname = Kube.params.api_url.match(/https?:\/\/([\w.-]+|\[[a-f0-9:]+\]|[^a-zA-Z:]+)(?::\d+)?/), + filterPodLabels = Kube.parseFilters(Kube.params.pod_filter_labels), + filterPodAnnotations = Kube.parseFilters(Kube.params.pod_filter_annotations), + endpointIPs = Kube.getEndpointIPs(); + if (typeof hostname[1] === 'undefined') { + Zabbix.log(4, '[ Kubernetes ] Received incorrect Kubernetes API url: ' + api_url + '. Expected format: ://:'); + throw 'Cannot get hostname from Kubernetes API url. Check debug log for more information.'; + }; + for (idx in nodes) { + var nodePodsCount = 0, + endpointpod = [], + roles = []; + Object.keys(nodes[idx].filternode.metadata.labels).forEach(function (label) { + var splitLabel = label.match(/^node-role.kubernetes.io\/([\w\.-]+)/); + + if (splitLabel) { + roles.push(splitLabel[1]); + } + }); + var internalIPs = Kube.getField(nodes[idx].filternode, 'status.addresses').filter(function (addr) { + return addr.type === 'InternalIP'; + }); + var internalIP = internalIPs.length && internalIPs[0].address; + + var Hostname = Kube.getField(nodes[idx].filternode, 'status.addresses').filter(function (addr) { + return addr.type === 'Hostname'; + }); + var Hostname = Hostname.length && Hostname[0].address; + + pods.forEach(function (pod) { + if (pod.nodeIP !== internalIP) { + return; + } + nodePodsCount++; + pod.hostname = Hostname; + Pods = pods.filter(function (f) { + return (f.hostname !== 'none' || f.phase === 'Pending') && ( + Kube.filter(f.name, f.labels, filterPodLabels) + && Kube.filter(f.name, f.annotations, filterPodAnnotations) + ); + } + ) + }); + + endpointIPs.forEach(function (agent) { + for (k in Kube.getField(agent, 'addresses')) { + if (Kube.getField(agent.addresses[k], 'ip') === internalIP) { + endpointpod = Kube.getField(agent.addresses[k], 'targetRef.name') + } + for (k in agent.notReadyAddresses) { + if (agent.notReadyAddresses[k].ip === internalIP) { + endpointpod = 'notReadyAddresses' + } + } + + } + }); + + delete nodes[idx].filternode.metadata.managedFields; + delete nodes[idx].filternode.status.images; + nodes[idx].filternode.status.capacity.cpu = Fmt.cpuFormat(nodes[idx].filternode.status.capacity.cpu); + nodes[idx].filternode.status.capacity.memory = Fmt.memoryFormat(nodes[idx].filternode.status.capacity.memory); + nodes[idx].filternode.status.allocatable.cpu = Fmt.cpuFormat(nodes[idx].filternode.status.allocatable.cpu); + nodes[idx].filternode.status.allocatable.memory = Fmt.memoryFormat(nodes[idx].filternode.status.allocatable.memory); + nodes[idx].filternode.status.podsCount = nodePodsCount; + nodes[idx].filternode.status.roles = roles.join(', '); + nodes[idx].filternode.status.agent = endpointpod; + nodes[idx].filternode.internalIP = internalIP; + nodes[idx].filternode.clusterhostname = hostname[1]; + + } + + return JSON.stringify({ nodes, Pods }); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Kubernetes ] ERROR: ' + error); + return JSON.stringify({ error: error }); + } + description: 'Collecting and processing cluster nodes data via Kubernetes API.' + timeout: 10s + parameters: + - name: api_token + value: '{$KUBE.API.TOKEN}' + - name: api_url + value: '{$KUBE.API.URL}' + - name: endpoint_name + value: '{$KUBE.NODES.ENDPOINT.NAME}' + - name: http_proxy + value: '{$KUBE.HTTP.PROXY}' + - name: node_filter_annotations + value: '{$KUBE.NODE.FILTER.ANNOTATIONS}' + - name: node_filter_labels + value: '{$KUBE.NODE.FILTER.LABELS}' + - name: pod_filter_annotations + value: '{$KUBE.POD.FILTER.ANNOTATIONS}' + - name: pod_filter_labels + value: '{$KUBE.POD.FILTER.LABELS}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Kubernetes nodes"}' + tags: + - tag: component + value: raw + - uuid: f78df5e88780418b894017086f8d9641 + name: 'Get nodes check' + type: DEPENDENT + key: kube.nodes.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Data collection check.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: kube.nodes + tags: + - tag: component + value: status + triggers: + - uuid: 827016cf41254f38aa58ff99e22f9e6f + expression: 'length(last(/Kubernetes nodes by HTTP/kube.nodes.check))>0' + name: 'Kubernetes nodes: Failed to get nodes' + priority: WARNING + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: f408d71f02f645f6a7e24047a57860b6 + name: 'Node discovery' + type: DEPENDENT + key: kube.node.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$KUBE.LLD.FILTER.NODE.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$KUBE.LLD.FILTER.NODE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ROLES}' + value: '{$KUBE.LLD.FILTER.NODE.ROLE.MATCHES}' + formulaid: C + - macro: '{#ROLES}' + value: '{$KUBE.LLD.FILTER.NODE.ROLE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 6f986c54ff744522abd793347dba5148 + name: 'Node [{#NAME}] Addresses: External IP' + type: DEPENDENT + key: 'kube.node.addresses.external_ip[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Typically the IP address of the node that is externally routable (available from outside the cluster).' + preprocessing: + - type: JSONPATH + parameters: + - '$.status.addresses[?(@.type == "ExternalIP")].address.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: addresses + - tag: node + value: '{#NAME}' + - uuid: a6bb3067ed44446e9b4831f5be57661b + name: 'Node [{#NAME}] Addresses: Internal IP' + type: DEPENDENT + key: 'kube.node.addresses.internal_ip[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Typically the IP address of the node that is routable only within the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$.status.addresses[?(@.type == "InternalIP")].address.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: addresses + - tag: node + value: '{#NAME}' + - uuid: 57eb59ad6e63466f993cd7064788c75d + name: 'Node [{#NAME}] Allocatable: CPU' + type: DEPENDENT + key: 'kube.node.allocatable.cpu[{#NAME}]' + delay: '0' + value_type: FLOAT + description: | + Allocatable CPU. + + 'Allocatable' on a Kubernetes node is defined as the amount of compute resources that are available for pods. The scheduler does not over-subscribe 'Allocatable'. 'CPU', 'memory' and 'ephemeral-storage' are supported as of now. + preprocessing: + - type: JSONPATH + parameters: + - $.status.allocatable.cpu + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: allocatable + - tag: node + value: '{#NAME}' + - uuid: 843ecf5ca78148caa49f3b4cca26e4d4 + name: 'Node [{#NAME}] Allocatable: Memory' + type: DEPENDENT + key: 'kube.node.allocatable.memory[{#NAME}]' + delay: '0' + units: B + description: | + Allocatable Memory. + + 'Allocatable' on a Kubernetes node is defined as the amount of compute resources that are available for pods. The scheduler does not over-subscribe 'Allocatable'. 'CPU', 'memory' and 'ephemeral-storage' are supported as of now. + preprocessing: + - type: JSONPATH + parameters: + - $.status.allocatable.memory + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: allocatable + - tag: node + value: '{#NAME}' + - uuid: be853c34395643af828e349105e2feba + name: 'Node [{#NAME}] Allocatable: Pods' + type: DEPENDENT + key: 'kube.node.allocatable.pods[{#NAME}]' + delay: '0' + description: 'https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/' + preprocessing: + - type: JSONPATH + parameters: + - $.status.allocatable.pods + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: allocatable + - tag: node + value: '{#NAME}' + - uuid: 96c25644261446afb70ce874ff1c7b7d + name: 'Node [{#NAME}] Capacity: CPU' + type: DEPENDENT + key: 'kube.node.capacity.cpu[{#NAME}]' + delay: '0' + value_type: FLOAT + description: | + CPU resource capacity. + + https://kubernetes.io/docs/concepts/architecture/nodes/#capacity + preprocessing: + - type: JSONPATH + parameters: + - $.status.capacity.cpu + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: capacity + - tag: node + value: '{#NAME}' + - uuid: e890e682c3454d20b7cd3becc950279f + name: 'Node [{#NAME}] Capacity: Memory' + type: DEPENDENT + key: 'kube.node.capacity.memory[{#NAME}]' + delay: '0' + units: B + description: | + Memory resource capacity. + + https://kubernetes.io/docs/concepts/architecture/nodes/#capacity + preprocessing: + - type: JSONPATH + parameters: + - $.status.capacity.memory + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: capacity + - tag: node + value: '{#NAME}' + - uuid: f45997b967964ed29c29b64b94544a48 + name: 'Node [{#NAME}] Capacity: Pods' + type: DEPENDENT + key: 'kube.node.capacity.pods[{#NAME}]' + delay: '0' + description: 'https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/' + preprocessing: + - type: JSONPATH + parameters: + - $.status.capacity.pods + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: capacity + - tag: node + value: '{#NAME}' + - uuid: ad5f8baa9ff44ca0ba17fc83e197420e + name: 'Node [{#NAME}] Conditions: Disk pressure' + type: DEPENDENT + key: 'kube.node.conditions.diskpressure[{#NAME}]' + delay: '0' + description: 'True if pressure exists on the disk size - that is, if the disk capacity is low; otherwise False.' + valuemap: + name: 'Node conditions' + preprocessing: + - type: JSONPATH + parameters: + - '$.status.conditions[?(@.type == "DiskPressure")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';' + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: conditions + - tag: node + value: '{#NAME}' + trigger_prototypes: + - uuid: 4e283f3f104a4239a0b1c24f0313ab95 + expression: 'last(/Kubernetes nodes by HTTP/kube.node.conditions.diskpressure[{#NAME}])=1' + name: 'Kubernetes nodes: Node [{#NAME}] Conditions: Pressure exists on the disk size' + event_name: 'Kubernetes nodes: Node [{#NAME}] Conditions: Pressure exists on the disk size (state: {ITEM.VALUE})' + priority: WARNING + description: 'True - pressure exists on the disk size - that is, if the disk capacity is low; otherwise False.' + tags: + - tag: scope + value: performance + - uuid: 44b60c111e2a4d0bae0de443394d0add + name: 'Node [{#NAME}] Conditions: Memory pressure' + type: DEPENDENT + key: 'kube.node.conditions.memorypressure[{#NAME}]' + delay: '0' + description: 'True if pressure exists on the node memory - that is, if the node memory is low; otherwise False.' + valuemap: + name: 'Node conditions' + preprocessing: + - type: JSONPATH + parameters: + - '$.status.conditions[?(@.type == "MemoryPressure")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';' + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: conditions + - tag: node + value: '{#NAME}' + trigger_prototypes: + - uuid: f580b6534bf54281912515874ca46cdf + expression: 'last(/Kubernetes nodes by HTTP/kube.node.conditions.memorypressure[{#NAME}])=1' + name: 'Kubernetes nodes: Node [{#NAME}] Conditions: Pressure exists on the node memory' + event_name: 'Kubernetes nodes: Node [{#NAME}] Conditions: Pressure exists on the node memory (state: {ITEM.VALUE})' + priority: WARNING + description: 'True - pressure exists on the node memory - that is, if the node memory is low; otherwise False' + tags: + - tag: scope + value: performance + - uuid: 8c77db54e90d474a8ff35a98c67772d5 + name: 'Node [{#NAME}] Conditions: Network unavailable' + type: DEPENDENT + key: 'kube.node.conditions.networkunavailable[{#NAME}]' + delay: '0' + description: 'True if the network for the node is not correctly configured, otherwise False.' + valuemap: + name: 'Node conditions' + preprocessing: + - type: JSONPATH + parameters: + - '$.status.conditions[?(@.type == "NetworkUnavailable")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';' + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: conditions + - tag: node + value: '{#NAME}' + trigger_prototypes: + - uuid: 0da0db08077a42668efcc886c155bf4e + expression: 'last(/Kubernetes nodes by HTTP/kube.node.conditions.networkunavailable[{#NAME}])=1' + name: 'Kubernetes nodes: Node [{#NAME}] Conditions: Network is not correctly configured' + event_name: 'Kubernetes nodes: Node [{#NAME}] Conditions: Network is not correctly configured (state: {ITEM.VALUE})' + priority: WARNING + description: 'True - the network for the node is not correctly configured, otherwise False' + tags: + - tag: scope + value: availability + - uuid: 31f02b4517e24571962fefd61e09e2a5 + name: 'Node [{#NAME}] Conditions: PID pressure' + type: DEPENDENT + key: 'kube.node.conditions.pidpressure[{#NAME}]' + delay: '0' + description: 'True if pressure exists on the processes - that is, if there are too many processes on the node; otherwise False.' + valuemap: + name: 'Node conditions' + preprocessing: + - type: JSONPATH + parameters: + - '$.status.conditions[?(@.type == "PIDPressure")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';' + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: conditions + - tag: node + value: '{#NAME}' + trigger_prototypes: + - uuid: 5f6a7fce910e4cf79e9fc778519ad00f + expression: 'last(/Kubernetes nodes by HTTP/kube.node.conditions.pidpressure[{#NAME}])=1' + name: 'Kubernetes nodes: Node [{#NAME}] Conditions: Pressure exists on the processes' + event_name: 'Kubernetes nodes: Node [{#NAME}] Conditions: Pressure exists on the processes (state: {ITEM.VALUE})' + priority: WARNING + description: 'True - pressure exists on the processes - that is, if there are too many processes on the node; otherwise False' + tags: + - tag: scope + value: performance + - uuid: 9341a018a45848feae0f61660ca5f849 + name: 'Node [{#NAME}] Conditions: Ready' + type: DEPENDENT + key: 'kube.node.conditions.ready[{#NAME}]' + delay: '0' + description: 'True if the node is healthy and ready to accept pods, False if the node is not healthy and is not accepting pods, and Unknown if the node controller has not heard from the node in the last node-monitor-grace-period (default is 40 seconds).' + valuemap: + name: 'Node conditions' + preprocessing: + - type: JSONPATH + parameters: + - '$.status.conditions[?(@.type == "Ready")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';' + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: conditions + - tag: node + value: '{#NAME}' + trigger_prototypes: + - uuid: 02f873ab69fb4df49578cf5e1cbad1b8 + expression: 'last(/Kubernetes nodes by HTTP/kube.node.conditions.ready[{#NAME}])<>1' + name: 'Kubernetes nodes: Node [{#NAME}] Conditions: Is not in Ready state' + event_name: 'Kubernetes nodes: Node [{#NAME}] Conditions: Is not in Ready state (state: {ITEM.VALUE})' + priority: WARNING + description: | + False - if the node is not healthy and is not accepting pods. + Unknown - if the node controller has not heard from the node in the last node-monitor-grace-period (default is 40 seconds). + tags: + - tag: scope + value: availability + - uuid: 3d8536659ac44347b36e61f60873fa61 + name: 'Node [{#NAME}]: Get data' + type: DEPENDENT + key: 'kube.node.get[{#NAME}]' + delay: '0' + history: '0' + value_type: CHAR + trends: '0' + description: 'Collecting and processing cluster by node [{#NAME}] data via Kubernetes API.' + preprocessing: + - type: JSONPATH + parameters: + - '$.nodes..[?(@.metadata.name == "{#NAME}")].first()' + master_item: + key: kube.nodes + tags: + - tag: component + value: raw + - tag: node + value: '{#NAME}' + - uuid: 8f9152074e2041d7b5cd2c6215e06832 + name: 'Node [{#NAME}] Info: Architecture' + type: DEPENDENT + key: 'kube.node.info.architecture[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Node architecture.' + preprocessing: + - type: JSONPATH + parameters: + - $.status.nodeInfo.architecture + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: info + - tag: node + value: '{#NAME}' + - uuid: 405fe8cae9be4ea8888f378dadda8946 + name: 'Node [{#NAME}] Info: Container runtime' + type: DEPENDENT + key: 'kube.node.info.containerruntime[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Container runtime. + + https://kubernetes.io/docs/setup/production-environment/container-runtimes/ + preprocessing: + - type: JSONPATH + parameters: + - $.status.nodeInfo.containerRuntimeVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: info + - tag: node + value: '{#NAME}' + - uuid: a14e705e142f4c34bfc9175686b18754 + name: 'Node [{#NAME}] Info: Kernel version' + type: DEPENDENT + key: 'kube.node.info.kernelversion[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Node kernel version.' + preprocessing: + - type: JSONPATH + parameters: + - $.status.nodeInfo.kernelVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: info + - tag: node + value: '{#NAME}' + - uuid: f1a1ea522dfd49d09a69b9b014845f7a + name: 'Node [{#NAME}] Info: Kubelet version' + type: DEPENDENT + key: 'kube.node.info.kubeletversion[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of Kubelet.' + preprocessing: + - type: JSONPATH + parameters: + - $.status.nodeInfo.kubeletVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: info + - tag: node + value: '{#NAME}' + - uuid: d39865e0754b4280926b89f19dddb740 + name: 'Node [{#NAME}] Info: KubeProxy version' + type: DEPENDENT + key: 'kube.node.info.kubeproxyversion[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of KubeProxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.status.nodeInfo.kubeProxyVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: info + - tag: node + value: '{#NAME}' + - uuid: fe06e13c3aec4efc8f7c9539b6600097 + name: 'Node [{#NAME}] Info: Operating system' + type: DEPENDENT + key: 'kube.node.info.operatingsystem[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Node operating system.' + preprocessing: + - type: JSONPATH + parameters: + - $.status.nodeInfo.operatingSystem + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: info + - tag: node + value: '{#NAME}' + - uuid: 1b25ffe6190c408996b87622b7b87329 + name: 'Node [{#NAME}] Info: OS image' + type: DEPENDENT + key: 'kube.node.info.osversion[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Node OS image.' + preprocessing: + - type: JSONPATH + parameters: + - $.status.nodeInfo.kernelVersion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: info + - tag: node + value: '{#NAME}' + - uuid: bcd18bdb8cd1466fa81bbe2e75ba996c + name: 'Node [{#NAME}] Info: Roles' + type: DEPENDENT + key: 'kube.node.info.roles[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Node roles.' + preprocessing: + - type: JSONPATH + parameters: + - $.status.roles + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: info + - tag: node + value: '{#NAME}' + - uuid: 1fb0ebd40fcb4e6c8a22bb646191adb2 + name: 'Node [{#NAME}] Limits: CPU' + type: DEPENDENT + key: 'kube.node.limits.cpu[{#NAME}]' + delay: '0' + value_type: FLOAT + description: | + Node CPU limits. + + https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + preprocessing: + - type: JSONPATH + parameters: + - '$.Pods[?(@.hostname == "{#NAME}")].containers.limits.cpu.sum()' + master_item: + key: kube.nodes + tags: + - tag: component + value: limits + - tag: node + value: '{#NAME}' + - uuid: e3ad703e83724cc7a5b918d9efae6e62 + name: 'Node [{#NAME}] Limits: Memory' + type: DEPENDENT + key: 'kube.node.limits.memory[{#NAME}]' + delay: '0' + units: B + description: | + Node Memory limits. + + https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + preprocessing: + - type: JSONPATH + parameters: + - '$.Pods[?(@.hostname == "{#NAME}")].containers.limits.memory.sum()' + master_item: + key: kube.nodes + tags: + - tag: component + value: limits + - tag: node + value: '{#NAME}' + - uuid: 8ea2954c99cc4e22a82c5a333146d936 + name: 'Node [{#NAME}] Requests: CPU' + type: DEPENDENT + key: 'kube.node.requests.cpu[{#NAME}]' + delay: '0' + value_type: FLOAT + description: | + Node CPU requests. + + https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + preprocessing: + - type: JSONPATH + parameters: + - '$.Pods[?(@.hostname == "{#NAME}")].containers.requests.cpu.sum()' + master_item: + key: kube.nodes + tags: + - tag: component + value: requests + - tag: node + value: '{#NAME}' + - uuid: 32f2f1d3ad084c6c9bbb96ad2fe9d98d + name: 'Node [{#NAME}] Requests: Memory' + type: DEPENDENT + key: 'kube.node.requests.memory[{#NAME}]' + delay: '0' + units: B + description: | + Node Memory requests. + + https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + preprocessing: + - type: JSONPATH + parameters: + - '$.Pods[?(@.hostname == "{#NAME}")].containers.requests.memory.sum()' + master_item: + key: kube.nodes + tags: + - tag: component + value: requests + - tag: node + value: '{#NAME}' + - uuid: 0e30ed9718a54eb1ac643ac643471ca2 + name: 'Node [{#NAME}] Uptime' + type: DEPENDENT + key: 'kube.node.uptime[{#NAME}]' + delay: '0' + units: s + description: 'Node uptime.' + preprocessing: + - type: JSONPATH + parameters: + - $.metadata.creationTimestamp + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor((Date.now() - new Date(value)) / 1000);' + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: uptime + - tag: node + value: '{#NAME}' + trigger_prototypes: + - uuid: b322a8c9a4404da49c434e78822d6ac5 + expression: 'last(/Kubernetes nodes by HTTP/kube.node.uptime[{#NAME}])<10' + name: 'Kubernetes nodes: Node [{#NAME}] has been restarted' + event_name: 'Kubernetes nodes: Node [{#NAME}] has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 0203ec4fb37a4eb180edcba398bf470d + name: 'Node [{#NAME}] Used: Pods' + type: DEPENDENT + key: 'kube.node.used.pods[{#NAME}]' + delay: '0' + description: 'Current number of pods on the node.' + preprocessing: + - type: JSONPATH + parameters: + - $.status.podsCount + master_item: + key: 'kube.node.get[{#NAME}]' + tags: + - tag: component + value: used + - tag: node + value: '{#NAME}' + trigger_prototypes: + - uuid: f64efc13be2c4c53a48de40504cf064d + expression: 'last(/Kubernetes nodes by HTTP/kube.node.limits.cpu[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.cpu[{#NAME}]) > 0.9' + name: 'Kubernetes nodes: Node [{#NAME}] Limits: Total CPU limits are too high' + event_name: 'Kubernetes nodes: Node [{#NAME}] Limits: Total CPU limits are too high (more than 90% of allocatable)' + opdata: 'Limits: {ITEM.LASTVALUE1}, Allocatable: {ITEM.LASTVALUE2}' + priority: WARNING + dependencies: + - name: 'Kubernetes nodes: Node [{#NAME}] Limits: Total CPU limits are too high' + expression: 'last(/Kubernetes nodes by HTTP/kube.node.limits.cpu[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.cpu[{#NAME}]) > 1' + tags: + - tag: scope + value: performance + - uuid: 4c035b6c85574141832691e7ad264f40 + expression: 'last(/Kubernetes nodes by HTTP/kube.node.limits.cpu[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.cpu[{#NAME}]) > 1' + name: 'Kubernetes nodes: Node [{#NAME}] Limits: Total CPU limits are too high' + event_name: 'Kubernetes nodes: Node [{#NAME}] Limits: Total CPU limits are too high (more than 100% of allocatable)' + opdata: 'Limits: {ITEM.LASTVALUE1}, Allocatable: {ITEM.LASTVALUE2}' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: 5d0d803cfbbe42edb7d32d731ae5f741 + expression: 'last(/Kubernetes nodes by HTTP/kube.node.limits.memory[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.memory[{#NAME}]) > 0.9' + name: 'Kubernetes nodes: Node [{#NAME}] Limits: Total memory limits are too high' + event_name: 'Kubernetes nodes: Node [{#NAME}] Limits: Total memory limits are too high (more than 90% of allocatable)' + opdata: 'Limits: {ITEM.LASTVALUE1}, Allocatable: {ITEM.LASTVALUE2}' + priority: WARNING + dependencies: + - name: 'Kubernetes nodes: Node [{#NAME}] Limits: Total memory limits are too high' + expression: 'last(/Kubernetes nodes by HTTP/kube.node.limits.memory[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.memory[{#NAME}]) > 1' + tags: + - tag: scope + value: performance + - uuid: 4fa15174194c476899a96fcf233a5aea + expression: 'last(/Kubernetes nodes by HTTP/kube.node.limits.memory[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.memory[{#NAME}]) > 1' + name: 'Kubernetes nodes: Node [{#NAME}] Limits: Total memory limits are too high' + event_name: 'Kubernetes nodes: Node [{#NAME}] Limits: Total memory limits are too high (more than 100% of allocatable)' + opdata: 'Limits: {ITEM.LASTVALUE1}, Allocatable: {ITEM.LASTVALUE2}' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: 256cf876a4674dd09123bb388c1a9d32 + expression: 'last(/Kubernetes nodes by HTTP/kube.node.requests.cpu[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.cpu[{#NAME}]) > 0.5' + name: 'Kubernetes nodes: Node [{#NAME}] Requests: Total CPU requests are too high' + event_name: 'Kubernetes nodes: Node [{#NAME}] Requests: Total CPU requests are too high (more than 50% of allocatable)' + opdata: 'Requests: {ITEM.LASTVALUE1}, Allocatable: {ITEM.LASTVALUE2}' + priority: WARNING + dependencies: + - name: 'Kubernetes nodes: Node [{#NAME}] Requests: Total CPU requests are too high' + expression: 'last(/Kubernetes nodes by HTTP/kube.node.requests.cpu[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.cpu[{#NAME}]) > 0.8' + tags: + - tag: scope + value: performance + - uuid: 7fa6901f620c4b388d550c669089dde2 + expression: 'last(/Kubernetes nodes by HTTP/kube.node.requests.cpu[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.cpu[{#NAME}]) > 0.8' + name: 'Kubernetes nodes: Node [{#NAME}] Requests: Total CPU requests are too high' + event_name: 'Kubernetes nodes: Node [{#NAME}] Requests: Total CPU requests are too high (more than 80% of allocatable)' + opdata: 'Requests: {ITEM.LASTVALUE1}, Allocatable: {ITEM.LASTVALUE2}' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: d73aa5aa2a9b424789181033630bb432 + expression: 'last(/Kubernetes nodes by HTTP/kube.node.requests.memory[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.memory[{#NAME}]) > 0.5' + name: 'Kubernetes nodes: Node [{#NAME}] Requests: Total memory requests are too high' + event_name: 'Kubernetes nodes: Node [{#NAME}] Requests: Total memory requests are too high (more than 50% of allocatable)' + opdata: 'Requests: {ITEM.LASTVALUE1}, Allocatable: {ITEM.LASTVALUE2}' + priority: WARNING + dependencies: + - name: 'Kubernetes nodes: Node [{#NAME}] Requests: Total memory requests are too high' + expression: 'last(/Kubernetes nodes by HTTP/kube.node.requests.memory[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.memory[{#NAME}]) > 0.8' + tags: + - tag: scope + value: performance + - uuid: ad9a65c4786e48b9a4b77c1214fa2e1f + expression: 'last(/Kubernetes nodes by HTTP/kube.node.requests.memory[{#NAME}]) / last(/Kubernetes nodes by HTTP/kube.node.allocatable.memory[{#NAME}]) > 0.8' + name: 'Kubernetes nodes: Node [{#NAME}] Requests: Total memory requests are too high' + event_name: 'Kubernetes nodes: Node [{#NAME}] Requests: Total memory requests are too high (more than 80% of allocatable)' + opdata: 'Requests: {ITEM.LASTVALUE1}, Allocatable: {ITEM.LASTVALUE2}' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: 0126dfbfa9d949499e0f7689b714c855 + expression: 'last(/Kubernetes nodes by HTTP/kube.node.used.pods[{#NAME}])/ last(/Kubernetes nodes by HTTP/kube.node.capacity.pods[{#NAME}]) > 0.9' + name: 'Kubernetes nodes: Node [{#NAME}] Used: Kubelet too many pods' + event_name: 'Kubernetes nodes: Node [{#NAME}] Used: Kubelet too many pods (more than 95% of capacity)' + opdata: 'Used: {ITEM.LASTVALUE1}, Capacity: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Kubelet is running at capacity.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 646efb7b19f5408dba2f3fe2d6a92213 + name: 'Node [{#NAME}] Allocatable: Pod limits' + graph_items: + - sortorder: '1' + drawtype: BOLD_LINE + color: 4CAF50 + item: + host: 'Kubernetes nodes by HTTP' + key: 'kube.node.allocatable.pods[{#NAME}]' + - sortorder: '2' + drawtype: BOLD_LINE + color: AB47BC + item: + host: 'Kubernetes nodes by HTTP' + key: 'kube.node.capacity.pods[{#NAME}]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: 1E88E5 + calc_fnc: MAX + item: + host: 'Kubernetes nodes by HTTP' + key: 'kube.node.used.pods[{#NAME}]' + host_prototypes: + - uuid: bfcbf26edd704bdfaa65e244a987839e + host: '{#NAME}' + name: '{#NAME}' + status: DISABLED + discover: NO_DISCOVER + group_links: + - group: + name: Applications + group_prototypes: + - name: '{#CLUSTER_HOSTNAME}: Kubernetes/Nodes/Role: {#ROLES}' + templates: + - name: 'Linux by Zabbix agent' + macros: + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^/(dev|sys|run|proc|etc/.+|.+/shm|hostfs/root/var/lib/docker/.+)$ + description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$ + description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level' + tags: + - tag: addr + value: '{#IP}' + - tag: arch + value: '{#ARCH}' + - tag: os + value: '{#OS}' + - tag: roles + value: '{#ROLES}' + custom_interfaces: 'YES' + interfaces: + - ip: '{#IP}' + master_item: + key: kube.nodes + lld_macro_paths: + - lld_macro: '{#ARCH}' + path: '$.metadata.labels[''kubernetes.io/arch'']' + - lld_macro: '{#CLUSTER_HOSTNAME}' + path: $.clusterhostname + - lld_macro: '{#ENDPOINT}' + path: $.status.agent + - lld_macro: '{#IP}' + path: $.internalIP + - lld_macro: '{#NAME}' + path: $.metadata.name + - lld_macro: '{#OS}' + path: '$.metadata.labels[''kubernetes.io/os'']' + - lld_macro: '{#ROLES}' + path: $.status.roles + preprocessing: + - type: JSONPATH + parameters: + - $.nodes..filternode + overrides: + - name: 'Endpoints host' + step: '1' + filter: + conditions: + - macro: '{#ENDPOINT}' + value: 'zabbix-helm-chart-agent.*' + formulaid: A + operations: + - operationobject: HOST_PROTOTYPE + operator: REGEXP + discover: DISCOVER + status: ENABLED + - uuid: b9dd5b50208e415da509f61ec73451c1 + name: 'Pod discovery' + type: DEPENDENT + key: kube.pod.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.POD.NAMESPACE.MATCHES}' + formulaid: A + - macro: '{#NAMESPACE}' + value: '{$KUBE.LLD.FILTER.POD.NAMESPACE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NODE}' + value: '{$KUBE.LLD.FILTER.NODE.MATCHES}' + formulaid: C + - macro: '{#NODE}' + value: '{$KUBE.LLD.FILTER.NODE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + lifetime: '0' + item_prototypes: + - uuid: ed4ea3dbbce74404a5039aa9918b8e2b + name: 'Node [{#NODE}] Namespace [{#NAMESPACE}] Pod [{#POD}] Conditions: Containers ready' + type: DEPENDENT + key: 'kube.pod.conditions.containers_ready[{#NAMESPACE}/{#POD}]' + delay: '0' + description: | + All containers in the Pod are ready. + + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions + valuemap: + name: 'Pod conditions' + preprocessing: + - type: JSONPATH + parameters: + - '$.conditions[?(@.type == "ContainersReady")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';' + master_item: + key: 'kube.pod.get[{#NAMESPACE}/{#POD}]' + tags: + - tag: component + value: conditions + - tag: namespace + value: '{#NAMESPACE}' + - tag: node + value: '{#NODE}' + - tag: pod + value: '{#POD}' + - uuid: 647ca68c325742d083e37c05e2826205 + name: 'Node [{#NODE}] Namespace [{#NAMESPACE}] Pod [{#POD}] Conditions: Initialized' + type: DEPENDENT + key: 'kube.pod.conditions.initialized[{#NAMESPACE}/{#POD}]' + delay: '0' + description: | + All init containers have started successfully. + + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions + valuemap: + name: 'Pod conditions' + preprocessing: + - type: JSONPATH + parameters: + - '$.conditions[?(@.type == "Initialized")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';' + master_item: + key: 'kube.pod.get[{#NAMESPACE}/{#POD}]' + tags: + - tag: component + value: conditions + - tag: namespace + value: '{#NAMESPACE}' + - tag: node + value: '{#NODE}' + - tag: pod + value: '{#POD}' + - uuid: b73a5c5d3b614815be157eb53c6afb1f + name: 'Node [{#NODE}] Namespace [{#NAMESPACE}] Pod [{#POD}] Conditions: Ready' + type: DEPENDENT + key: 'kube.pod.conditions.ready[{#NAMESPACE}/{#POD}]' + delay: '0' + description: | + The Pod is able to serve requests and should be added to the load balancing pools of all matching Services. + + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions + valuemap: + name: 'Pod conditions' + preprocessing: + - type: JSONPATH + parameters: + - '$.conditions[?(@.type == "Ready")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';' + master_item: + key: 'kube.pod.get[{#NAMESPACE}/{#POD}]' + tags: + - tag: component + value: conditions + - tag: namespace + value: '{#NAMESPACE}' + - tag: node + value: '{#NODE}' + - tag: pod + value: '{#POD}' + - uuid: 5956cd1780604f0793efd7bbce2559b6 + name: 'Node [{#NODE}] Namespace [{#NAMESPACE}] Pod [{#POD}] Conditions: Scheduled' + type: DEPENDENT + key: 'kube.pod.conditions.scheduled[{#NAMESPACE}/{#POD}]' + delay: '0' + description: | + The Pod has been scheduled to a node. + + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions + valuemap: + name: 'Pod conditions' + preprocessing: + - type: JSONPATH + parameters: + - '$.conditions[?(@.type == "PodScheduled")].status.first()' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';' + master_item: + key: 'kube.pod.get[{#NAMESPACE}/{#POD}]' + tags: + - tag: component + value: conditions + - tag: namespace + value: '{#NAMESPACE}' + - tag: node + value: '{#NODE}' + - tag: pod + value: '{#POD}' + - uuid: 5fd018faebb84462bf8111861795b04e + name: 'Node [{#NODE}] Namespace [{#NAMESPACE}] Pod [{#POD}] Containers: Restarts' + type: DEPENDENT + key: 'kube.pod.containers.restartcount[{#NAMESPACE}/{#POD}]' + delay: '0' + description: 'The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection.' + preprocessing: + - type: JSONPATH + parameters: + - $.containers.restartCount + error_handler: DISCARD_VALUE + master_item: + key: 'kube.pod.get[{#NAMESPACE}/{#POD}]' + tags: + - tag: component + value: container + - tag: namespace + value: '{#NAMESPACE}' + - tag: node + value: '{#NODE}' + - tag: pod + value: '{#POD}' + trigger_prototypes: + - uuid: 8f1808cd67614cda959ec70e92a59235 + expression: '(last(/Kubernetes nodes by HTTP/kube.pod.containers.restartcount[{#NAMESPACE}/{#POD}])-min(/Kubernetes nodes by HTTP/kube.pod.containers.restartcount[{#NAMESPACE}/{#POD}],15m))>1' + name: 'Kubernetes nodes: Node [{#NODE}] Namespace [{#NAMESPACE}] Pod [{#POD}]: Pod is crash looping' + priority: WARNING + description: 'Containers of the pod keep restarting. This most likely indicates that the pod is in the CrashLoopBackOff state.' + tags: + - tag: scope + value: availability + - uuid: 34a542538cf449f287a99052870988be + name: 'Node [{#NODE}] Namespace [{#NAMESPACE}] Pod [{#POD}]: Get data' + type: DEPENDENT + key: 'kube.pod.get[{#NAMESPACE}/{#POD}]' + delay: '0' + history: '0' + value_type: CHAR + trends: '0' + description: 'Collecting and processing cluster by node [{#NODE}] data via Kubernetes API.' + preprocessing: + - type: JSONPATH + parameters: + - '$.Pods[?(@.name == "{#POD}" && @.namespace == "{#NAMESPACE}")].first()' + master_item: + key: kube.nodes + tags: + - tag: component + value: raw + - tag: namespace + value: '{#NAMESPACE}' + - tag: node + value: '{#NODE}' + - tag: pod + value: '{#POD}' + - uuid: 6862be81e52b4abcb319a8847b022634 + name: 'Node [{#NODE}] Namespace [{#NAMESPACE}] Pod [{#POD}] Status: Phase' + type: DEPENDENT + key: 'kube.pod.status.phase[{#NAMESPACE}/{#POD}]' + delay: '0' + description: | + The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. + + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + valuemap: + name: 'Pod phase' + preprocessing: + - type: JSONPATH + parameters: + - $.phase + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return [''Pending'', ''Running'', ''Succeeded'', ''Failed'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';' + master_item: + key: 'kube.pod.get[{#NAMESPACE}/{#POD}]' + tags: + - tag: component + value: pod + - tag: namespace + value: '{#NAMESPACE}' + - tag: node + value: '{#NODE}' + - tag: pod + value: '{#POD}' + trigger_prototypes: + - uuid: e565d243bef84007b09addb22ea3d759 + expression: 'count(/Kubernetes nodes by HTTP/kube.pod.status.phase[{#NAMESPACE}/{#POD}],10m, "regexp","^(1|4|5)$")>=9' + name: 'Kubernetes nodes: Node [{#NODE}] Namespace [{#NAMESPACE}] Pod [{#POD}] Status: Kubernetes Pod not healthy' + priority: HIGH + description: 'Pod has been in a non-ready state for longer than 10 minutes.' + tags: + - tag: scope + value: availability + - uuid: abb0b84204164301bb9fc6ab14284631 + name: 'Node [{#NODE}] Namespace [{#NAMESPACE}] Pod [{#POD}]: Uptime' + type: DEPENDENT + key: 'kube.pod.uptime[{#NAMESPACE}/{#POD}]' + delay: '0' + units: s + description: 'Pod uptime.' + preprocessing: + - type: JSONPATH + parameters: + - $.startTime + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor((Date.now() - new Date(value)) / 1000);' + master_item: + key: 'kube.pod.get[{#NAMESPACE}/{#POD}]' + tags: + - tag: component + value: uptime + - tag: namespace + value: '{#NAMESPACE}' + - tag: node + value: '{#NODE}' + - tag: pod + value: '{#POD}' + master_item: + key: kube.nodes + lld_macro_paths: + - lld_macro: '{#NAMESPACE}' + path: $.namespace + - lld_macro: '{#NODE}' + path: $.hostname + - lld_macro: '{#POD}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.Pods + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: software + - tag: target + value: kubernetes + - tag: target + value: nodes + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Kubernetes nodes", e.g. {$HTTP.TLS.VERIFY:"Kubernetes nodes"}.' + - macro: '{$KUBE.API.TOKEN}' + description: 'Service account bearer token.' + - macro: '{$KUBE.API.URL}' + value: 'https://kubernetes.default.svc.cluster.local:443' + description: 'Kubernetes API endpoint URL in the format ://:' + - macro: '{$KUBE.HTTP.PROXY}' + description: 'Sets the HTTP proxy to `http_proxy` value. If this parameter is empty, then no proxy is used.' + - macro: '{$KUBE.LLD.FILTER.NODE.MATCHES}' + value: '.*' + description: 'Filter of discoverable nodes.' + - macro: '{$KUBE.LLD.FILTER.NODE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered nodes.' + - macro: '{$KUBE.LLD.FILTER.NODE.ROLE.MATCHES}' + value: '.*' + description: 'Filter of discoverable nodes by role.' + - macro: '{$KUBE.LLD.FILTER.NODE.ROLE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered node by role.' + - macro: '{$KUBE.LLD.FILTER.POD.NAMESPACE.MATCHES}' + value: '.*' + description: 'Filter of discoverable pods by namespace.' + - macro: '{$KUBE.LLD.FILTER.POD.NAMESPACE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered pods by namespace.' + - macro: '{$KUBE.NODE.FILTER.ANNOTATIONS}' + description: 'Annotations to filter nodes (regex in values are supported). See the template''s README.md for details.' + - macro: '{$KUBE.NODE.FILTER.LABELS}' + description: 'Labels to filter nodes (regex in values are supported). See the template''s README.md for details.' + - macro: '{$KUBE.NODES.ENDPOINT.NAME}' + value: zabbix-zabbix-helm-chart-agent + description: 'Kubernetes nodes endpoint name. See "kubectl -n monitoring get ep".' + - macro: '{$KUBE.POD.FILTER.ANNOTATIONS}' + description: 'Annotations to filter pods (regex in values are supported). See the template''s README.md for details.' + - macro: '{$KUBE.POD.FILTER.LABELS}' + description: 'Labels to filter Pods (regex in values are supported). See the template''s README.md for details.' + valuemaps: + - uuid: 785b20f8979341c4b470870ec8f50414 + name: 'Node conditions' + mappings: + - value: '1' + newvalue: 'True' + - value: '2' + newvalue: 'False' + - value: '3' + newvalue: Unknown + - uuid: f93e30e125de4909b52e7c38bc3f2c97 + name: 'Pod conditions' + mappings: + - value: '1' + newvalue: 'True' + - value: '2' + newvalue: 'False' + - value: '3' + newvalue: Unknown + - uuid: 21ff77dde5964dcfb4bb2ae202a5f33c + name: 'Pod phase' + mappings: + - value: '1' + newvalue: Pending + - value: '2' + newvalue: Running + - value: '3' + newvalue: Succeeded + - value: '4' + newvalue: Failed + - value: '5' + newvalue: Unknown diff --git a/Linux_by_Prom.yaml b/Linux_by_Prom.yaml new file mode 100644 index 0000000..8d3be9f --- /dev/null +++ b/Linux_by_Prom.yaml @@ -0,0 +1,2619 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: 2506b0ca01884903b547b1e19b76ce6d + template: 'Linux by Prom' + name: 'Linux by Prom' + description: | + This template collects Linux metrics from node_exporter 0.18 and above. Support for older node_exporter versions is provided as 'best effort'. + + Setup: + + 1. Set up the node_exporter according to the official documentation: + https://prometheus.io/docs/guides/node-exporter/ + + Use node_exporter v0.18.0 or above. + + 2. Set the hostname or IP address of the node_exporter host in the '{$NODE_EXPORTER_HOST}' macro. You can also change the Prometheus endpoint port in the '{$NODE_EXPORTER_PORT}' macro if necessary. + + Known Issues: + + - Node Exporter 0.16.0 renamed many metrics. CPU utilization for "guest" and "guest_nice" metrics are not supported in this template with Node Exporter < 0.16. Disk IO metrics are not supported. Other metrics provided as best effort. See https://github.com/prometheus/node_exporter/releases/tag/v0.16.0 for details. + - Version: below 0.16.0 + - Metric node_network_info with label 'device' cannot be found, so network discovery is not possible. + - Version: below 0.18 + + Notes on filesystem (FS) discovery: + - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default. + - BTRFS allocates a default of 10% of the volume for its own needs. + - To mitigate potential disasters, FS usage triggers are based on the maximum available space. + - Utilization formula: 'pused = 100 - 100 * (available / total - free + available)' + - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387225-discussion-thread-for-official-zabbix-template-for-linux + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: 9a60d1e53caa4049a33aa52f3f55ad75 + name: 'Version of node_exporter running' + type: DEPENDENT + key: 'agent.version[node_exporter]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - node_exporter_build_info + - label + - version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: node_exporter.get + tags: + - tag: component + value: application + - uuid: d3631bd7effc4cd1bc45c991b3c3038f + name: 'Number of open file descriptors' + type: DEPENDENT + key: 'fd.open[node_exporter]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - node_filefd_allocated + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: system + - uuid: a8b78e776e1d4011bbcb6dd54e32b40b + name: 'Maximum number of open file descriptors' + type: DEPENDENT + key: 'kernel.maxfiles[node_exporter]' + delay: '0' + value_type: FLOAT + description: 'May be increased by using `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - node_filefd_maximum + - value + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: node_exporter.get + tags: + - tag: component + value: system + triggers: + - uuid: c0002ad071d7497ab32633c93624e0c2 + expression: 'last(/Linux by Prom/kernel.maxfiles[node_exporter])<{$KERNEL.MAXFILES.MIN}' + name: 'Linux: Configured max number of open filedescriptors is too low' + event_name: 'Linux: Configured max number of open filedescriptors is too low (< {$KERNEL.MAXFILES.MIN})' + priority: INFO + dependencies: + - name: 'Linux: Running out of file descriptors' + expression: 'last(/Linux by Prom/fd.open[node_exporter])/last(/Linux by Prom/kernel.maxfiles[node_exporter])*100>80' + tags: + - tag: scope + value: performance + - uuid: 8b2fffcba0b24ca8a687361645ffaa1d + name: 'Get node_exporter metrics' + type: HTTP_AGENT + key: node_exporter.get + history: 1h + value_type: TEXT + trends: '0' + url: 'http://{$NODE_EXPORTER_HOST}:{$NODE_EXPORTER_PORT}/metrics' + tags: + - tag: component + value: raw + triggers: + - uuid: e33fafc8476e404aa4150d0d491f4c83 + expression: 'nodata(/Linux by Prom/node_exporter.get,30m)=1' + name: 'Linux: node_exporter is not available' + event_name: 'Linux: node_exporter is not available (or no data for 30m)' + priority: WARNING + description: 'Failed to fetch system metrics from node_exporter in time.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 75afcb39d2d7496e9490cd14f1431600 + name: 'System boot time' + type: DEPENDENT + key: 'system.boottime[node_exporter]' + delay: '0' + value_type: FLOAT + units: unixtime + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"^node_boot_time(?:_seconds)?$"}' + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: system + - uuid: a732c4df8af047fbb874e1fb363b5e9e + name: 'CPU guest time' + type: DEPENDENT + key: 'system.cpu.guest[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Time spent on running a virtual CPU for a guest operating system.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_guest_seconds_total)?$",cpu=~".+",mode=~"^(?:user|guest)$"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function(acc,obj){ + return acc + parseFloat(obj['value']) + },0)/valueArr.length; + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 759809ee6c9e43cf8ff44f987221a90e + name: 'CPU guest nice time' + type: DEPENDENT + key: 'system.cpu.guest_nice[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The time spent on running a niced guest (a virtual CPU for guest operating systems under the control of the Linux kernel).' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_guest_seconds_total)?$",cpu=~".+",mode=~"^(?:nice|guest_nice)$"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function(acc,obj){ + return acc + parseFloat(obj['value']) + },0)/valueArr.length; + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 7bb99c606c6b497aaef279663b60829b + name: 'CPU idle time' + type: DEPENDENT + key: 'system.cpu.idle[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent doing nothing.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="idle"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function(acc,obj){ + return acc + parseFloat(obj['value']) + },0)/valueArr.length; + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 4d3f64c79c684d55bcde14ca5bf3022a + name: 'CPU interrupt time' + type: DEPENDENT + key: 'system.cpu.interrupt[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent servicing hardware interrupts.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="irq"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function(acc,obj){ + return acc + parseFloat(obj['value']) + },0)/valueArr.length; + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 76206cf435fd4a979dbbf74807b532de + name: 'Interrupts per second' + type: DEPENDENT + key: 'system.cpu.intr[node_exporter]' + delay: '0' + value_type: FLOAT + description: 'Number of interrupts processed.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"node_intr"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 6a727e148a2c4956bcfb6de0a3486c2d + name: 'CPU iowait time' + type: DEPENDENT + key: 'system.cpu.iowait[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Time the CPU has been waiting for I/O to complete.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="iowait"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function(acc,obj){ + return acc + parseFloat(obj['value']) + },0)/valueArr.length; + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 78fb393fe3d64cd7bf79be5427715add + name: 'Load average (1m avg)' + type: DEPENDENT + key: 'system.cpu.load.avg1[node_exporter]' + delay: '0' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - node_load1 + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 7fc62b26b9ff43429632f1985dc07851 + name: 'Load average (5m avg)' + type: DEPENDENT + key: 'system.cpu.load.avg5[node_exporter]' + delay: '0' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - node_load5 + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 35fb0319c599403bbea0e616c9066e27 + name: 'Load average (15m avg)' + type: DEPENDENT + key: 'system.cpu.load.avg15[node_exporter]' + delay: '0' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - node_load15 + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 86de794832794f57ba428cca31031005 + name: 'CPU nice time' + type: DEPENDENT + key: 'system.cpu.nice[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that have been niced.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="nice"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function(acc,obj){ + return acc + parseFloat(obj['value']) + },0)/valueArr.length; + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: d7db65cfeaac4541bd98d06dc35f89e2 + name: 'Number of CPUs' + type: DEPENDENT + key: 'system.cpu.num[node_exporter]' + delay: '0' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="idle"}' + - type: JAVASCRIPT + parameters: + - 'return JSON.parse(value).length' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: cf3cd5840b91477d8e9254820896b978 + name: 'CPU softirq time' + type: DEPENDENT + key: 'system.cpu.softirq[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent servicing software interrupts.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="softirq"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function(acc,obj){ + return acc + parseFloat(obj['value']) + },0)/valueArr.length; + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 2ee5885c4de646c0926f0c1a48890e68 + name: 'CPU steal time' + type: DEPENDENT + key: 'system.cpu.steal[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The amount of "stolen" CPU from this virtual machine by the hypervisor for other tasks, such as running another virtual machine.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="steal"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function(acc,obj){ + return acc + parseFloat(obj['value']) + },0)/valueArr.length; + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: b873e0d178d144fca3597d617fc119e7 + name: 'Context switches per second' + type: DEPENDENT + key: 'system.cpu.switches[node_exporter]' + delay: '0' + value_type: FLOAT + description: 'The combined rate at which all processors on the computer are switched from one thread to another.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"node_context_switches"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: e296be976c5944b19a7178304ed6140c + name: 'CPU system time' + type: DEPENDENT + key: 'system.cpu.system[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running the kernel and its processes.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="system"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function(acc,obj){ + return acc + parseFloat(obj['value']) + },0)/valueArr.length; + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 832698e707d14bad8171ca71a2533350 + name: 'CPU user time' + type: DEPENDENT + key: 'system.cpu.user[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that are not niced.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="user"}' + - type: JAVASCRIPT + parameters: + - | + var valueArr = JSON.parse(value); + return valueArr.reduce(function(acc,obj){ + return acc + parseFloat(obj['value']) + },0)/valueArr.length; + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: cpu + - uuid: 76f60c7e4f1a482198ff4f101020bbcc + name: 'CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[node_exporter]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization expressed in %.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100 - value)' + master_item: + key: 'system.cpu.idle[node_exporter]' + tags: + - tag: component + value: cpu + triggers: + - uuid: 4c924f8243a7431886a2d69368cb7142 + expression: 'min(/Linux by Prom/system.cpu.util[node_exporter],5m)>{$CPU.UTIL.CRIT}' + name: 'Linux: High CPU utilization' + event_name: 'Linux: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + dependencies: + - name: 'Linux: Load average is too high' + expression: | + min(/Linux by Prom/system.cpu.load.avg1[node_exporter],5m)/last(/Linux by Prom/system.cpu.num[node_exporter])>{$LOAD_AVG_PER_CPU.MAX.WARN} + and last(/Linux by Prom/system.cpu.load.avg5[node_exporter])>0 + and last(/Linux by Prom/system.cpu.load.avg15[node_exporter])>0 + tags: + - tag: scope + value: performance + - uuid: c47995760ef3458eb6237e434ef4eef8 + name: 'System description' + type: DEPENDENT + key: 'system.descr[node_exporter]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Labeled system information as provided by the uname system call.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - node_uname_info + - type: JAVASCRIPT + parameters: + - | + var info = JSON.parse(value)[0]; + return info.labels.sysname+' version: '+info.labels.release+' '+info.labels.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: node_exporter.get + tags: + - tag: component + value: system + - uuid: 9fcb3dd70dc244f2b2ff86560b37ec7e + name: 'System local time' + type: DEPENDENT + key: 'system.localtime[node_exporter]' + delay: '0' + value_type: FLOAT + units: unixtime + description: 'The local system time of the host.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"^node_time(?:_seconds)?$"}' + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: system + triggers: + - uuid: e91c10be1c4a4c3fadfe06aec6c1e4e4 + expression: 'fuzzytime(/Linux by Prom/system.localtime[node_exporter],{$SYSTEM.FUZZYTIME.MAX})=0' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'fuzzytime(/Linux by Prom/system.localtime[node_exporter],{$SYSTEM.FUZZYTIME.MIN})=1' + name: 'Linux: System time is out of sync' + event_name: 'Linux: System time is out of sync (diff with Zabbix server > {$SYSTEM.FUZZYTIME.MAX})' + priority: WARNING + description: 'The host''s system time is different from Zabbix server time.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c70cfa2ad5754089935883c5b3172656 + name: 'System name' + type: DEPENDENT + key: 'system.name[node_exporter]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - node_uname_info + - label + - nodename + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: node_exporter.get + tags: + - tag: component + value: system + triggers: + - uuid: e827e944568b46e284820630482317bd + expression: 'last(/Linux by Prom/system.name[node_exporter],#1)<>last(/Linux by Prom/system.name[node_exporter],#2) and length(last(/Linux by Prom/system.name[node_exporter]))>0' + name: 'Linux: System name has changed' + event_name: 'Linux: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: ce4bb6c485cc4b739dce31b631634790 + name: 'Operating system architecture' + type: DEPENDENT + key: 'system.sw.arch[node_exporter]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - node_uname_info + - label + - machine + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: node_exporter.get + tags: + - tag: component + value: os + - uuid: 11ff4e02245f4c2e9ce00e55c1a77b39 + name: 'Operating system' + type: DEPENDENT + key: 'system.sw.os[node_exporter]' + delay: '0' + value_type: CHAR + trends: '0' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'system.descr[node_exporter]' + tags: + - tag: component + value: os + triggers: + - uuid: 00974d5b128c4b1db64ca100770fb11b + expression: 'last(/Linux by Prom/system.sw.os[node_exporter],#1)<>last(/Linux by Prom/system.sw.os[node_exporter],#2) and length(last(/Linux by Prom/system.sw.os[node_exporter]))>0' + name: 'Linux: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Linux: System name has changed' + expression: 'last(/Linux by Prom/system.name[node_exporter],#1)<>last(/Linux by Prom/system.name[node_exporter],#2) and length(last(/Linux by Prom/system.name[node_exporter]))>0' + tags: + - tag: scope + value: notice + - uuid: ccc3c4d69fef412aa53c6a7320ef44fb + name: 'Free swap space' + type: DEPENDENT + key: 'system.swap.free[node_exporter]' + delay: '0' + value_type: FLOAT + units: B + description: 'The free space of the swap volume/file expressed in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"node_memory_SwapFree"}' + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 99feb76b7da04b00a0d191b92bf979a1 + name: 'Free swap space in %' + type: CALCULATED + key: 'system.swap.pfree[node_exporter]' + value_type: FLOAT + units: '%' + params: 'last(//system.swap.free[node_exporter])/last(//system.swap.total[node_exporter])*100' + description: 'The free space of the swap volume/file expressed in %.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: d0c1ef0a679546d780df30a02a27df44 + name: 'Total swap space' + type: DEPENDENT + key: 'system.swap.total[node_exporter]' + delay: '0' + value_type: FLOAT + units: B + description: 'Total space of the swap volume/file expressed in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"node_memory_SwapTotal"}' + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 7eeabdb6bf44483bab91faaab8bb24d5 + name: 'System uptime' + type: DEPENDENT + key: 'system.uptime[node_exporter]' + delay: '0' + trends: '0' + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"^node_boot_time(?:_seconds)?$"}' + - value + - '' + - type: JAVASCRIPT + parameters: + - 'return (Math.floor(Date.now()/1000)-Number(value));' + master_item: + key: node_exporter.get + tags: + - tag: component + value: system + triggers: + - uuid: 83311a7c73c441d39d88fe0fc7b55af9 + expression: 'last(/Linux by Prom/system.uptime[node_exporter])<10m' + name: 'Linux: {HOST.NAME} has been restarted' + event_name: 'Linux: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'The device uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 70a75efafbc84cbebd1bb262ec797523 + name: 'Available memory' + type: DEPENDENT + key: 'vm.memory.available[node_exporter]' + delay: '0' + value_type: FLOAT + units: B + description: | + The available memory: + - in Linux - available = free + buffers + cache; + - on other platforms calculation may vary. + + See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item. + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"node_memory_MemAvailable"}' + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: memory + - uuid: e3ad296f16084e9caa923b449d8c725f + name: 'Total memory' + type: DEPENDENT + key: 'vm.memory.total[node_exporter]' + delay: '0' + value_type: FLOAT + units: B + description: 'Total memory expressed in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"node_memory_MemTotal"}' + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: memory + - uuid: 60c716c692fb482f9abffb0fc9ce4324 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[node_exporter]' + value_type: FLOAT + units: '%' + params: '(last(//vm.memory.total[node_exporter])-last(//vm.memory.available[node_exporter]))/last(//vm.memory.total[node_exporter])*100' + description: 'Percentage calculated as (total-available)/total*100.' + tags: + - tag: component + value: memory + triggers: + - uuid: 72304b3a167e41ccbcdb75568c65294a + expression: 'min(/Linux by Prom/vm.memory.util[node_exporter],5m)>{$MEMORY.UTIL.MAX}' + name: 'Linux: High memory utilization' + event_name: 'Linux: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + dependencies: + - name: 'Linux: Lack of available memory' + expression: 'max(/Linux by Prom/vm.memory.available[node_exporter],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Prom/vm.memory.total[node_exporter])>0' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + discovery_rules: + - uuid: 91531a7a68564860976096df6899fe88 + name: 'Network interface discovery' + type: DEPENDENT + key: 'net.if.discovery[node_exporter]' + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: A + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: C + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: E + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovery of network interfaces. Requires node_exporter v0.18 and up.' + item_prototypes: + - uuid: ee28aff27b4f40eaa8e903ce3fab8555 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[node_exporter,"{#IFNAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_network_receive_drop_total{device="{#IFNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f6b39f743bb6438d876236ae651f68ee + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[node_exporter,"{#IFNAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_network_receive_errs_total{device="{#IFNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: eea37c3779994ac5b35bb3b125429340 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[node_exporter,"{#IFNAME}"]' + delay: '0' + value_type: FLOAT + units: bps + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_network_receive_bytes_total{device="{#IFNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: node_exporter.get + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: aec995b7fe724823bdb41f134594b648 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[node_exporter,"{#IFNAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_network_transmit_drop_total{device="{#IFNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4ffe74b94eb14a4ea61c0df790d0920f + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[node_exporter"{#IFNAME}"]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_network_transmit_errs_total{device="{#IFNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ddc4111fefec473e8d8b079f6eb50c05 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[node_exporter,"{#IFNAME}"]' + delay: '0' + value_type: FLOAT + units: bps + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_network_transmit_bytes_total{device="{#IFNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: node_exporter.get + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 51f9a39ad6d940ae914cd0a350d83dab + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[node_exporter,"{#IFNAME}"]' + delay: '0' + trends: '0' + units: bps + description: 'Sets value to "0" if metric is missing in `node_exporter` output.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_network_speed_bytes{device="{#IFNAME}"}' + - value + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: node_exporter.get + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4097f76d86cd417db586c5973e1da90b + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[node_exporter,"{#IFNAME}"]' + delay: '0' + trends: '0' + description: 'Reference: https://www.kernel.org/doc/Documentation/networking/operstates.txt' + valuemap: + name: ifOperStatus + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_network_info{device="{#IFNAME}"}' + - label + - operstate + - type: JAVASCRIPT + parameters: + - | + var newvalue; + switch(value) { + case "unknown": + newvalue = 0; + break; + case "notpresent": + newvalue = 1; + break; + case "down": + newvalue = 2; + break; + case "lowerlayerdown": + newvalue = 3; + break; + case "testing": + newvalue = 4; + break; + case "dormant": + newvalue = 5; + break; + case "up": + newvalue = 6; + break; default: + newvalue = "Problem parsing interface operstate in JS"; + } + return newvalue; + master_item: + key: node_exporter.get + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e35b59dc09754451a721793831edc3d4 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2 and (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#1)<>last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0, marking this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ce9cfd9880c44aaea18cfa2ab2fdf0e1 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[node_exporter,"{#IFNAME}"]' + delay: '0' + trends: '0' + description: 'node_network_protocol_type protocol_type value of /sys/class/net/.' + valuemap: + name: 'Linux::Interface protocol types' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_network_protocol_type{device="{#IFNAME}"}' + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 96bbb9726ef149a5b97f96d54502593a + expression: | + change(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])<0 and last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])>0 + and ( + last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=6 or + last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=7 or + last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=11 or + last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=62 or + last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=69 or + last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=117 + ) + and + (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])>0 and last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"],#2)>0) or + (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2) + name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2 and (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#1)<>last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#2))' + recovery_expression: 'last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 08d5857e474042b5906288156c8c5d52 + expression: | + change(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])<0 and last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])>0 + and + (last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=6 + or last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=1) + and + (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])>0 and last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"],#2)>0) or + (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2) + name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2 and (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#1)<>last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#2))' + recovery_expression: 'last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 11e2c8023463482da878cdad5bb7de76 + expression: | + (avg(/Linux by Prom/net.if.in[node_exporter,"{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"]) or + avg(/Linux by Prom/net.if.out[node_exporter,"{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])) and + last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Linux by Prom/net.if.in[node_exporter,"{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"]) and + avg(/Linux by Prom/net.if.out[node_exporter,"{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"]) + name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2 and (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#1)<>last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#2))' + recovery_expression: 'last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 6e8269b2260e42de97aec08043a768df + expression: | + min(/Linux by Prom/net.if.in.errors[node_exporter,"{#IFNAME}"],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Linux by Prom/net.if.out.errors[node_exporter"{#IFNAME}"],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Linux by Prom/net.if.in.errors[node_exporter,"{#IFNAME}"],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Linux by Prom/net.if.out.errors[node_exporter"{#IFNAME}"],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2 and (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#1)<>last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#2))' + recovery_expression: 'last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: cf143a7bb6d548fc9d3b089dcbb47ccf + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by Prom' + key: 'net.if.in[node_exporter,"{#IFNAME}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Linux by Prom' + key: 'net.if.out[node_exporter,"{#IFNAME}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Linux by Prom' + key: 'net.if.out.errors[node_exporter"{#IFNAME}"]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Linux by Prom' + key: 'net.if.in.errors[node_exporter,"{#IFNAME}"]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Linux by Prom' + key: 'net.if.out.discards[node_exporter,"{#IFNAME}"]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Linux by Prom' + key: 'net.if.in.discards[node_exporter,"{#IFNAME}"]' + master_item: + key: node_exporter.get + lld_macro_paths: + - lld_macro: '{#HELP}' + path: $.help + - lld_macro: '{#IFALIAS}' + path: $.labels.ifalias + - lld_macro: '{#IFNAME}' + path: $.labels.device + - lld_macro: '{#IFOPERSTATUS}' + path: $.labels.operstate + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_network_info$"}' + - uuid: 920f367e232945b8992d0f32e6f9324d + name: 'Block devices discovery' + type: DEPENDENT + key: 'vfs.dev.discovery[node_exporter]' + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.MATCHES}' + formulaid: A + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 0a0949bcdf754fbe82e772ffbd69b5ba + name: '{#DEVNAME}: Disk average queue size (avgqu-sz)' + type: DEPENDENT + key: 'vfs.dev.queue_size[node_exporter,"{#DEVNAME}"]' + delay: '0' + value_type: FLOAT + description: 'The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_disk_io_time_weighted_seconds_total{device="{#DEVNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 9d158ecffdaa43f6bd0ab867ca68620b + name: '{#DEVNAME}: Disk read request avg waiting time (r_await)' + type: CALCULATED + key: 'vfs.dev.read.await[node_exporter,"{#DEVNAME}"]' + value_type: FLOAT + units: '!ms' + params: '(last(//vfs.dev.read.time.rate[node_exporter,"{#DEVNAME}"])/(last(//vfs.dev.read.rate[node_exporter,"{#DEVNAME}"])+(last(//vfs.dev.read.rate[node_exporter,"{#DEVNAME}"])=0)))*1000*(last(//vfs.dev.read.rate[node_exporter,"{#DEVNAME}"]) > 0)' + description: 'This formula contains two Boolean expressions that evaluates to 1 or 0 in order to set calculated metric to zero and to avoid division by zero exception.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: dcd6f61ffb2f491ba78845514654a8cf + name: '{#DEVNAME}: Disk read rate' + type: DEPENDENT + key: 'vfs.dev.read.rate[node_exporter,"{#DEVNAME}"]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: 'r/s. The number (after merges) of read requests completed per second for the device.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_disk_reads_completed_total{device="{#DEVNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 73940f30ea2b4b88b0047e54b773b747 + name: '{#DEVNAME}: Disk read time (rate)' + type: DEPENDENT + key: 'vfs.dev.read.time.rate[node_exporter,"{#DEVNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Rate of total read time counter. Used in `r_await` calculation.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_disk_read_time_seconds_total{device="{#DEVNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: d087a0525500450c9a307ff21f58482a + name: '{#DEVNAME}: Disk utilization' + type: DEPENDENT + key: 'vfs.dev.util[node_exporter,"{#DEVNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'This item is the percentage of elapsed time during which the selected disk drive was busy while servicing read or write requests.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_disk_io_time_seconds_total{device="{#DEVNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 94203a49081047b6bc76cd66aecd55ce + name: '{#DEVNAME}: Disk write request avg waiting time (w_await)' + type: CALCULATED + key: 'vfs.dev.write.await[node_exporter,"{#DEVNAME}"]' + value_type: FLOAT + units: '!ms' + params: '(last(//vfs.dev.write.time.rate[node_exporter,"{#DEVNAME}"])/(last(//vfs.dev.write.rate[node_exporter,"{#DEVNAME}"])+(last(//vfs.dev.write.rate[node_exporter,"{#DEVNAME}"])=0)))*1000*(last(//vfs.dev.write.rate[node_exporter,"{#DEVNAME}"]) > 0)' + description: 'This formula contains two Boolean expressions that evaluates to 1 or 0 in order to set calculated metric to zero and to avoid division by zero exception.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 806ba0a56fab4b5094008c98bb817e2b + name: '{#DEVNAME}: Disk write rate' + type: DEPENDENT + key: 'vfs.dev.write.rate[node_exporter,"{#DEVNAME}"]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: 'w/s. The number (after merges) of write requests completed per second for the device.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_disk_writes_completed_total{device="{#DEVNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 601cc30457934b7f8f050b2cea13ccea + name: '{#DEVNAME}: Disk write time (rate)' + type: DEPENDENT + key: 'vfs.dev.write.time.rate[node_exporter,"{#DEVNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Rate of total write time counter. Used in `w_await` calculation.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - 'node_disk_write_time_seconds_total{device="{#DEVNAME}"}' + - value + - '' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + trigger_prototypes: + - uuid: 412381f71bba441b955898839f81d51c + expression: 'min(/Linux by Prom/vfs.dev.read.await[node_exporter,"{#DEVNAME}"],15m) > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} or min(/Linux by Prom/vfs.dev.write.await[node_exporter,"{#DEVNAME}"],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}' + name: 'Linux: {#DEVNAME}: Disk read/write request responses are too high' + event_name: 'Linux: {#DEVNAME}: Disk read/write request responses are too high (read > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} ms for 15m or write > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"} ms for 15m)' + priority: WARNING + description: 'This trigger might indicate the disk `{#DEVNAME}` saturation.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 13a5a74a99734449b08075bbb25bb498 + name: '{#DEVNAME}: Disk average waiting time' + graph_items: + - color: 199C0D + item: + host: 'Linux by Prom' + key: 'vfs.dev.read.await[node_exporter,"{#DEVNAME}"]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Prom' + key: 'vfs.dev.write.await[node_exporter,"{#DEVNAME}"]' + - uuid: bad3d3ba32534ef194a4837d666ddccb + name: '{#DEVNAME}: Disk read/write rates' + graph_items: + - color: 199C0D + item: + host: 'Linux by Prom' + key: 'vfs.dev.read.rate[node_exporter,"{#DEVNAME}"]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Prom' + key: 'vfs.dev.write.rate[node_exporter,"{#DEVNAME}"]' + - uuid: aa53b66adaac4e62863ea2dd59ba3ea1 + name: '{#DEVNAME}: Disk utilization and queue' + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'Linux by Prom' + key: 'vfs.dev.queue_size[node_exporter,"{#DEVNAME}"]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Prom' + key: 'vfs.dev.util[node_exporter,"{#DEVNAME}"]' + master_item: + key: node_exporter.get + lld_macro_paths: + - lld_macro: '{#DEVNAME}' + path: $.labels.device + - lld_macro: '{#HELP}' + path: $.help + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - 'node_disk_io_now{device=~".+"}' + - uuid: 85d047920c1342b992fa1905eb489a44 + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: 'vfs.fs.discovery[node_exporter]' + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSDEVICE}' + value: '{$VFS.FS.FSDEVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSDEVICE.MATCHES}' + formulaid: B + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: C + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: E + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovery of file systems of different types.' + item_prototypes: + - uuid: 3a3edb8bf5a74a63baa27c64d1a44493 + name: 'FS [{#FSNAME}]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.free[node_exporter,"{#FSNAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"^node_filesystem_avail(?:_bytes)?$", mountpoint="{#FSNAME}"}' + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: ee1dad3677214561baafa6d930358ee0 + name: 'FS [{#FSNAME}]: Inodes: Free, in %' + type: DEPENDENT + key: 'vfs.fs.inode.pfree[node_exporter,"{#FSNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free metadata space expressed as a percentage.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"node_filesystem_files.*",mountpoint="{#FSNAME}"}' + - type: JAVASCRIPT + parameters: + - | + var inode_free; + var inode_total; + + JSON.parse(value).forEach(function (metric) { + if (metric['name'] == 'node_filesystem_files') { + inode_total = parseFloat(metric['value']); + } else if (metric['name'] == 'node_filesystem_files_free') { + inode_free = parseFloat(metric['value']); + } + }); + + return (inode_free / inode_total) * 100; + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 27cabcc9d9644ba6b7bd8c92a740e3cc + expression: 'min(/Linux by Prom/vfs.fs.inode.pfree[node_exporter,"{#FSNAME}"],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'Linux: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: c639215f6dd94c71aebf97265a282a0d + expression: 'min(/Linux by Prom/vfs.fs.inode.pfree[node_exporter,"{#FSNAME}"],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'Linux: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + dependencies: + - name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + expression: 'min(/Linux by Prom/vfs.fs.inode.pfree[node_exporter,"{#FSNAME}"],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 89afe41bb0d74c579a9cff8b036d30dc + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.pused[node_exporter,"{#FSNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_filesystem_(avail|free|size)(?:_bytes)?$",mountpoint="{#FSNAME}"}' + - type: JAVASCRIPT + parameters: + - | + var available, + free, + total; + + JSON.parse(value).forEach(function(metric) { + if (metric['name'] == 'node_filesystem_size_bytes'){ + total = parseFloat(metric['value']); + } else if (metric['name'] == 'node_filesystem_free_bytes'){ + free = parseFloat(metric['value']); + } else if (metric['name'] == 'node_filesystem_avail_bytes'){ + available = parseFloat(metric['value']); + } + }); + if ((total - free + available) <= 0){ + return 0; + } else { + return (100 - 100 * available / (total - free + available)); + } + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: d5687d7aa0484b389f0bd168d50ee1e6 + expression: 'min(/Linux by Prom/vfs.fs.pused[node_exporter,"{#FSNAME}"],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Space is critically low' + event_name: 'Linux: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.total[node_exporter,"{#FSNAME}"])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The storage space usage exceeds the '{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%' limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 8f765148cfd64d5ebda93f39d0b20e36 + expression: 'min(/Linux by Prom/vfs.fs.pused[node_exporter,"{#FSNAME}"],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Space is low' + event_name: 'Linux: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.total[node_exporter,"{#FSNAME}"])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The storage space usage exceeds the '{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%' limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'Linux: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/Linux by Prom/vfs.fs.pused[node_exporter,"{#FSNAME}"],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: acb3d42ae23b48cbacd0e99c27697798 + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.total[node_exporter,"{#FSNAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"^node_filesystem_size(?:_bytes)?$", mountpoint="{#FSNAME}"}' + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 89e559a7ff364dd78b638454896692c5 + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.used[node_exporter,"{#FSNAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: | + Used storage expressed in bytes. + Reserved space is not counted in. + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_filesystem_(free|size)(?:_bytes)?$",mountpoint="{#FSNAME}"}' + - type: JAVASCRIPT + parameters: + - | + var free; + var total; + + JSON.parse(value).forEach(function(metric) { + if (metric['name'] == 'node_filesystem_size_bytes'){ + total = parseFloat(metric['value']); + } else if (metric['name'] == 'node_filesystem_free_bytes'){ + free = parseFloat(metric['value']); + } + }); + + return (total-free); + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 3946668d2bbf47ef85ae7fcea639c622 + name: 'FS [{#FSNAME}]: Filesystem is read-only' + type: DEPENDENT + key: 'vfs.fs.[node_exporter,"{#FSNAME}"]' + delay: '0' + description: 'The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.' + preprocessing: + - type: PROMETHEUS_PATTERN + parameters: + - '{__name__=~"^node_filesystem_readonly$", mountpoint="{#FSNAME}"}' + - value + - '' + master_item: + key: node_exporter.get + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: a17990454b7e4f96b659e61f426453c8 + expression: 'last(/Linux by Prom/vfs.fs.[node_exporter,"{#FSNAME}"],#2)=0 and last(/Linux by Prom/vfs.fs.[node_exporter,"{#FSNAME}"])=1' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Linux by Prom/vfs.fs.[node_exporter,"{#FSNAME}"])=0' + name: 'Linux: FS [{#FSNAME}]: Filesystem has become read-only' + priority: AVERAGE + description: 'The filesystem has become read-only, possibly due to an I/O error. It is available only for Zabbix agents 6.4 and higher.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 4c6237d835a34d458de8cf2c108d1290 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'Linux by Prom' + key: 'vfs.fs.pused[node_exporter,"{#FSNAME}"]' + - uuid: 1febfc95ae1945b3a620cc49264d0eae + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Linux by Prom' + key: 'vfs.fs.total[node_exporter,"{#FSNAME}"]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Linux by Prom' + key: 'vfs.fs.used[node_exporter,"{#FSNAME}"]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'Linux by Prom' + key: 'vfs.fs.free[node_exporter,"{#FSNAME}"]' + master_item: + key: node_exporter.get + lld_macro_paths: + - lld_macro: '{#FSDEVICE}' + path: $.device + - lld_macro: '{#FSNAME}' + path: $.mountpoint + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: PROMETHEUS_TO_JSON + parameters: + - '{__name__=~"^node_filesystem_size(?:_bytes)?$", mountpoint=~".+"}' + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'mountpoint': filesystem.labels.mountpoint, + 'fstype': filesystem.labels.fstype, + 'device': filesystem.labels.device + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Skip metadata collection for dynamic FS' + step: '1' + filter: + conditions: + - macro: '{#FSTYPE}' + value: ^(btrfs|zfs)$ + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Inodes + discover: NO_DISCOVER + tags: + - tag: class + value: os + - tag: target + value: linux + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization expressed in %.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$KERNEL.MAXFILES.MIN}' + value: '256' + - macro: '{$LOAD_AVG_PER_CPU.MAX.WARN}' + value: '1.5' + description: 'Load per CPU considered sustainable. Tune if needed.' + - macro: '{$MEMORY.AVAILABLE.MIN}' + value: 20M + description: 'Used as a threshold in the memory available trigger.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the memory utilization trigger.' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '^.*$' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9A-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0` bridge by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^notpresent$ + description: 'Ignore `notpresent(1)`.' + - macro: '{$NODE_EXPORTER_HOST}' + value: '' + description: 'The hostname or IP address of the node_exporter host.' + - macro: '{$NODE_EXPORTER_PORT}' + value: '9100' + description: 'TCP Port node_exporter is listening on.' + - macro: '{$SWAP.PFREE.MIN.WARN}' + value: '50' + description: 'Warning threshold of the minimum free swap.' + - macro: '{$SYSTEM.FUZZYTIME.MAX}' + value: 60s + description: 'The upper threshold for difference of system time.' + - macro: '{$SYSTEM.FUZZYTIME.MIN}' + value: 10s + description: 'The lower threshold for difference of system time. Used in recovery expression to avoid trigger flapping.' + - macro: '{$VFS.DEV.DEVNAME.MATCHES}' + value: .+ + description: 'Used in block device discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + value: '^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)' + description: 'Used in block device discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.READ.AWAIT.WARN}' + value: '20' + description: 'Disk read average response time (in ms) before the trigger fires.' + - macro: '{$VFS.DEV.WRITE.AWAIT.WARN}' + value: '20' + description: 'Disk write average response time (in ms) before the trigger fires.' + - macro: '{$VFS.FS.FSDEVICE.MATCHES}' + value: ^.+$ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSDEVICE.NOT_MATCHES}' + value: ^\s$ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: d0966792c5d04c4a92d9422114a09385 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Prom' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Prom' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + - type: STRING + name: reference + value: AAAEC + - uuid: 19dac6b780aa49558bf4a3782ba4b3b6 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Prom' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAJ + - uuid: 558606056f464970a7c544ba75d544f2 + name: 'System performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Prom' + name: 'Linux: System load' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Prom' + name: 'Linux: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Prom' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEA + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Prom' + name: '{#DEVNAME}: Disk read/write rates' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Prom' + name: '{#DEVNAME}: Disk average waiting time' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + 'y': '25' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Prom' + name: '{#DEVNAME}: Disk utilization and queue' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + 'y': '30' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Prom' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAI + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Prom' + name: 'Linux: CPU usage' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Prom' + name: 'Linux: Swap usage' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 4827063819f14d539f509552c84f5f94 + name: ifOperStatus + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: notpresent + - value: '2' + newvalue: down + - value: '3' + newvalue: lowerlayerdown + - value: '4' + newvalue: testing + - value: '5' + newvalue: dormant + - value: '6' + newvalue: up + - uuid: 4d912f1ee95942038f306ddefb3a57b3 + name: 'Linux::Interface protocol types' + mappings: + - value: '0' + newvalue: 'from KA9Q: NET/ROM pseudo' + - value: '1' + newvalue: Ethernet + - value: '2' + newvalue: 'Experimental Ethernet' + - value: '3' + newvalue: 'AX.25 Level 2' + - value: '4' + newvalue: 'PROnet token ring' + - value: '5' + newvalue: Chaosnet + - value: '6' + newvalue: 'IEEE 802.2 Ethernet/TR/TB' + - value: '7' + newvalue: ARCnet + - value: '8' + newvalue: APPLEtalk + - value: '15' + newvalue: 'Frame Relay DLCI' + - value: '19' + newvalue: ATM + - value: '23' + newvalue: 'Metricom STRIP (new IANA id)' + - value: '24' + newvalue: 'IEEE 1394 IPv4 - RFC 2734' + - value: '27' + newvalue: EUI-64 + - value: '32' + newvalue: InfiniBand + - value: '256' + newvalue: ARPHRD_SLIP + - value: '257' + newvalue: ARPHRD_CSLIP + - value: '258' + newvalue: ARPHRD_SLIP6 + - value: '259' + newvalue: ARPHRD_CSLIP6 + - value: '260' + newvalue: 'Notional KISS type' + - value: '264' + newvalue: ARPHRD_ADAPT + - value: '270' + newvalue: ARPHRD_ROSE + - value: '271' + newvalue: 'CCITT X.25' + - value: '272' + newvalue: 'Boards with X.25 in firmware' + - value: '280' + newvalue: 'Controller Area Network' + - value: '512' + newvalue: ARPHRD_PPP + - value: '513' + newvalue: 'Cisco HDLC' + - value: '516' + newvalue: LAPB + - value: '517' + newvalue: 'Digital''s DDCMP protocol' + - value: '518' + newvalue: 'Raw HDLC' + - value: '519' + newvalue: 'Raw IP' + - value: '768' + newvalue: 'IPIP tunnel' + - value: '769' + newvalue: 'IP6IP6 tunnel' + - value: '770' + newvalue: 'Frame Relay Access Device' + - value: '771' + newvalue: 'SKIP vif' + - value: '772' + newvalue: 'Loopback device' + - value: '773' + newvalue: 'Localtalk device' + - value: '774' + newvalue: 'Fiber Distributed Data Interface' + - value: '775' + newvalue: 'AP1000 BIF' + - value: '776' + newvalue: 'sit0 device - IPv6-in-IPv4' + - value: '777' + newvalue: 'IP over DDP tunneller' + - value: '778' + newvalue: 'GRE over IP' + - value: '779' + newvalue: 'PIMSM register interface' + - value: '780' + newvalue: 'High Performance Parallel Interface' + - value: '781' + newvalue: 'Nexus 64Mbps Ash' + - value: '782' + newvalue: 'Acorn Econet' + - value: '783' + newvalue: Linux-IrDA + - value: '784' + newvalue: 'Point to point fibrechannel' + - value: '785' + newvalue: 'Fibrechannel arbitrated loop' + - value: '786' + newvalue: 'Fibrechannel public loop' + - value: '787' + newvalue: 'Fibrechannel fabric' + - value: '800' + newvalue: 'Magic type ident for TR' + - value: '801' + newvalue: 'IEEE 802.11' + - value: '802' + newvalue: 'IEEE 802.11 + Prism2 header' + - value: '803' + newvalue: 'IEEE 802.11 + radiotap header' + - value: '804' + newvalue: ARPHRD_IEEE802154 + - value: '805' + newvalue: 'IEEE 802.15.4 network monitor' + - value: '820' + newvalue: 'PhoNet media type' + - value: '821' + newvalue: 'PhoNet pipe header' + - value: '822' + newvalue: 'CAIF media type' + - value: '823' + newvalue: 'GRE over IPv6' + - value: '824' + newvalue: 'Netlink header' + - value: '825' + newvalue: 'IPv6 over LoWPAN' + - value: '826' + newvalue: 'Vsock monitor header' + triggers: + - uuid: 16e6a4d340164dee9379a3fc0aac0576 + expression: 'max(/Linux by Prom/system.swap.pfree[node_exporter],5m)<{$SWAP.PFREE.MIN.WARN} and last(/Linux by Prom/system.swap.total[node_exporter])>0' + name: 'Linux: High swap space usage' + event_name: 'Linux: High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)' + opdata: 'Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'If there is no swap configured, this trigger is ignored.' + dependencies: + - name: 'Linux: High memory utilization' + expression: 'min(/Linux by Prom/vm.memory.util[node_exporter],5m)>{$MEMORY.UTIL.MAX}' + - name: 'Linux: Lack of available memory' + expression: 'max(/Linux by Prom/vm.memory.available[node_exporter],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Prom/vm.memory.total[node_exporter])>0' + tags: + - tag: scope + value: capacity + - uuid: f78ed17586964a46a9de0c4f183984f6 + expression: 'max(/Linux by Prom/vm.memory.available[node_exporter],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Prom/vm.memory.total[node_exporter])>0' + name: 'Linux: Lack of available memory' + event_name: 'Linux: Lack of available memory (<{$MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})' + opdata: 'Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: AVERAGE + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: e5897641e5594bf6b7b18ae4e107bd50 + expression: | + min(/Linux by Prom/system.cpu.load.avg1[node_exporter],5m)/last(/Linux by Prom/system.cpu.num[node_exporter])>{$LOAD_AVG_PER_CPU.MAX.WARN} + and last(/Linux by Prom/system.cpu.load.avg5[node_exporter])>0 + and last(/Linux by Prom/system.cpu.load.avg15[node_exporter])>0 + name: 'Linux: Load average is too high' + event_name: 'Linux: Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)' + opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The load average per CPU is too high. The system may be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 7effa63c9c994a6786279802aa7328ad + expression: 'last(/Linux by Prom/fd.open[node_exporter])/last(/Linux by Prom/kernel.maxfiles[node_exporter])*100>80' + name: 'Linux: Running out of file descriptors' + event_name: 'Linux: Running out of file descriptors (less than < 20% free)' + opdata: '{ITEM.LASTVALUE1} of {ITEM.LASTVALUE2} file descriptors are in use.' + priority: WARNING + tags: + - tag: scope + value: performance + graphs: + - uuid: bb8bb267b32b46bfa2a6277b65730396 + name: 'Linux: CPU jumps' + graph_items: + - color: 199C0D + item: + host: 'Linux by Prom' + key: 'system.cpu.switches[node_exporter]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Prom' + key: 'system.cpu.intr[node_exporter]' + - uuid: 09ebf28dc8504ab2bfd07130d1f6ca91 + name: 'Linux: CPU usage' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Linux by Prom' + key: 'system.cpu.system[node_exporter]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Prom' + key: 'system.cpu.user[node_exporter]' + - sortorder: '2' + color: 00611C + item: + host: 'Linux by Prom' + key: 'system.cpu.nice[node_exporter]' + - sortorder: '3' + color: F7941D + item: + host: 'Linux by Prom' + key: 'system.cpu.iowait[node_exporter]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Linux by Prom' + key: 'system.cpu.steal[node_exporter]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Linux by Prom' + key: 'system.cpu.interrupt[node_exporter]' + - sortorder: '6' + color: C7A72D + item: + host: 'Linux by Prom' + key: 'system.cpu.softirq[node_exporter]' + - sortorder: '7' + color: BA2A5D + item: + host: 'Linux by Prom' + key: 'system.cpu.guest[node_exporter]' + - sortorder: '8' + color: F230E0 + item: + host: 'Linux by Prom' + key: 'system.cpu.guest_nice[node_exporter]' + - uuid: 9cd184535b6b4fd5978a302bdedeac0b + name: 'Linux: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by Prom' + key: 'system.cpu.util[node_exporter]' + - uuid: 1383a8b57e6743de946c8a43016ee2f7 + name: 'Linux: Memory usage' + ymin_type_1: FIXED + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Linux by Prom' + key: 'vm.memory.total[node_exporter]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Prom' + key: 'vm.memory.available[node_exporter]' + - uuid: 81e79ef1219a4c48af1f740017bbde6a + name: 'Linux: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by Prom' + key: 'vm.memory.util[node_exporter]' + - uuid: 567684533d2442b286119c7d392e2bb7 + name: 'Linux: Swap usage' + graph_items: + - color: 199C0D + item: + host: 'Linux by Prom' + key: 'system.swap.free[node_exporter]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Prom' + key: 'system.swap.total[node_exporter]' + - uuid: f9cbf136d01040ffa18753fb40d55f79 + name: 'Linux: System load' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Linux by Prom' + key: 'system.cpu.load.avg1[node_exporter]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Prom' + key: 'system.cpu.load.avg5[node_exporter]' + - sortorder: '2' + color: 00611C + item: + host: 'Linux by Prom' + key: 'system.cpu.load.avg15[node_exporter]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Linux by Prom' + key: 'system.cpu.num[node_exporter]' diff --git a/Linux_by_SNMP.yaml b/Linux_by_SNMP.yaml new file mode 100644 index 0000000..7d55374 --- /dev/null +++ b/Linux_by_SNMP.yaml @@ -0,0 +1,3093 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: 4d3a7adbb6964bd08f2b9d28e0da6496 + template: 'Linux by SNMP' + name: 'Linux by SNMP' + description: | + This is an official Linux template. It requires an SNMP client. + + MIBs used: + EtherLike-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + UCD-DISKIO-MIB + UCD-SNMP-MIB + IF-MIB + + Notes on filesystem (FS) discovery: + - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default. + - BTRFS allocates a default of 10% of the volume for its own needs. + - To mitigate potential disasters, FS usage triggers are based on the maximum available space. + - Utilization formula: 'pused = 100 * (used / used + available)' + - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387225-discussion-thread-for-official-zabbix-template-for-linux + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: 28f98683b9af4558813287cfa151719b + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 28927c3715714a77a259d48943ddb8fe + expression: 'max(/Linux by SNMP/icmpping,#3)=0' + name: 'Linux: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: bc5a3fbab2834f8bb012325071c5b2e0 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f6d63c03e6f34888897464102fa369ec + expression: 'min(/Linux by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Linux by SNMP/icmppingloss,5m)<100' + name: 'Linux: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Linux: Unavailable by ICMP ping' + expression: 'max(/Linux by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b1e02fd733c14d71935e24fbe8786d40 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1c1b86790d6442e59f50d94f9844c337 + expression: 'avg(/Linux by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Linux: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Linux: High ICMP ping loss' + expression: 'min(/Linux by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Linux by SNMP/icmppingloss,5m)<100' + - name: 'Linux: Unavailable by ICMP ping' + expression: 'max(/Linux by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: da392895de1c447eb5d3f1f950360639 + name: 'Linux: SNMP walk EtherLike-MIB interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.10.7.2.1.19,1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with `up(1)` Operational Status are discovered.' + tags: + - tag: component + value: raw + - uuid: 661b9bbeb1f146da9c0d9bfa8e5f26d5 + name: 'Linux: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 85a597b741bb4e6e8fa9806e8737caf4 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: e45c4b2df4a640a1a36154cb2b717e9d + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: fdb0807c4a9a452f8a3cbab01a4ddb2e + name: 'Interrupts per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.11.59.0]' + key: 'system.cpu.intr[ssRawInterrupts.0]' + value_type: FLOAT + description: 'Number of interrupts processed.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: eeaba506dee342518660c03d422faa2a + name: 'Load average (1m avg)' + type: DEPENDENT + key: 'system.cpu.load.avg1[laLoad.1]' + delay: '0' + value_type: FLOAT + description: 'MIB: UCD-SNMP-MIB' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.laName == ''Load-1'')].laLoad.first()' + master_item: + key: system.cpu.load.walk + tags: + - tag: component + value: cpu + - uuid: e0c8a351d59f42b78e6db4a0c50aa5d2 + name: 'Load average (5m avg)' + type: DEPENDENT + key: 'system.cpu.load.avg5[laLoad.2]' + delay: '0' + value_type: FLOAT + description: 'MIB: UCD-SNMP-MIB' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.laName == ''Load-5'')].laLoad.first()' + master_item: + key: system.cpu.load.walk + tags: + - tag: component + value: cpu + - uuid: 0a5c406d4e434dbba248a18318f6a869 + name: 'Load average (15m avg)' + type: DEPENDENT + key: 'system.cpu.load.avg15[laLoad.3]' + delay: '0' + value_type: FLOAT + description: 'MIB: UCD-SNMP-MIB' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.laName == ''Load-15'')].laLoad.first()' + master_item: + key: system.cpu.load.walk + tags: + - tag: component + value: cpu + - uuid: 063a77f98871429e81d46691bf61c09f + name: 'SNMP walk CPU load averages' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2021.10.1.2,1.3.6.1.4.1.2021.10.1.3]' + key: system.cpu.load.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: UCD-SNMP-MIB + SNMP walk through laTable. The collected data used in dependent CPU load average items. + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - laName + - 1.3.6.1.4.1.2021.10.1.2 + - '0' + - laLoad + - 1.3.6.1.4.1.2021.10.1.3 + - '0' + tags: + - tag: component + value: cpu + - tag: component + value: raw + - uuid: f835f2d2e65c4efc8934a61870d907ca + name: 'Number of CPUs' + type: DEPENDENT + key: 'system.cpu.num[snmp]' + delay: '0' + description: 'Count the number of CPU cores by counting number of cores discovered in hrProcessorTable using LLD.' + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: JAVASCRIPT + parameters: + - 'return JSON.parse(value).length;' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: e10a890dc6724cbda96f7c40c49cd730 + name: 'Context switches per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.11.60.0]' + key: 'system.cpu.switches[ssRawContexts.0]' + value_type: FLOAT + description: 'The combined rate at which all processors on the computer are switched from one thread to another.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: fb2a968ed48f4c6287da2b06bc3b95f3 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.4.1.2021.11.53.0,1.3.6.1.4.1.2021.11.52.0,1.3.6.1.4.1.2021.11.50.0,1.3.6.1.4.1.2021.11.64.0,1.3.6.1.4.1.2021.11.61.0,1.3.6.1.4.1.2021.11.51.0,1.3.6.1.4.1.2021.11.54.0,1.3.6.1.4.1.2021.11.56.0,1.3.6.1.4.1.2021.11.65.0,1.3.6.1.4.1.2021.11.66.0]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: cpu + - tag: component + value: raw + - uuid: abd4d4b7097644478329b578dfa7bf09 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d1a9af129dbb4fed8e67efcca383aeae + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9f2b3de3245e4ffea5aefc636e0f3da1 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3ee68ecd1edc4f5d9cddefa78f8d502e + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: eeb0355174d74892a4e3a078e6ac7952 + expression: 'last(/Linux by SNMP/system.name,#1)<>last(/Linux by SNMP/system.name,#2) and length(last(/Linux by SNMP/system.name))>0' + name: 'Linux: System name has changed' + event_name: 'Linux: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: d3fba18851db4be08df04ab85536bb14 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 5b17833c4646423d8fd4115fa19d2ffe + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a8ad10709a6e457187f58695de20b027 + name: 'Free swap space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.4.0]' + key: 'system.swap.free[memAvailSwap.0]' + units: B + description: | + MIB: UCD-SNMP-MIB + The amount of swap space currently unused or available. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 52ae3f1d7b3d4b669b40f0fddbb0e326 + name: 'Free swap space in %' + type: CALCULATED + key: 'system.swap.pfree[snmp]' + value_type: FLOAT + units: '%' + params: 'last(//system.swap.free[memAvailSwap.0])/last(//system.swap.total[memTotalSwap.0])*100' + description: 'The free space of the swap volume/file expressed in %.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 7db5193027794961840c228c6280fe5b + name: 'Total swap space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.3.0]' + key: 'system.swap.total[memTotalSwap.0]' + units: B + description: | + MIB: UCD-SNMP-MIB + The total amount of swap space configured for this host. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 94c5ede90a50467989a4559e51c0bcef + name: 'SNMP walk block devices' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2021.13.15.1.1.2,1.3.6.1.4.1.2021.13.15.1.1.5,1.3.6.1.4.1.2021.13.15.1.1.6,1.3.6.1.4.1.2021.13.15.1.1.9]' + key: vfs.dev.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Block devices are discovered from UCD-DISKIO-MIB::diskIOTable (http://net-snmp.sourceforge.net/docs/mibs/ucdDiskIOMIB.html#diskIOTable).' + tags: + - tag: component + value: raw + - uuid: 8ad72047f03a452f9698254fe6b4ffd2 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2021.9.1.1,1.3.6.1.4.1.2021.9.1.2,1.3.6.1.4.1.2021.9.1.3,1.3.6.1.4.1.2021.9.1.10,1.3.6.1.4.1.2021.9.1.11,1.3.6.1.4.1.2021.9.1.12,1.3.6.1.4.1.2021.9.1.13,1.3.6.1.4.1.2021.9.1.14,1.3.6.1.4.1.2021.9.1.15,1.3.6.1.4.1.2021.9.1.16]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: UCD-SNMP-MIB + Snmp walk through dskEntry table. Collected data used in filesystem lld and dependent item prototypes. + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - dskPath + - 1.3.6.1.4.1.2021.9.1.2 + - '0' + - dskDevice + - 1.3.6.1.4.1.2021.9.1.3 + - '0' + - dskPercentNode + - 1.3.6.1.4.1.2021.9.1.10 + - '0' + - dskTotalLow + - 1.3.6.1.4.1.2021.9.1.11 + - '0' + - dskTotalHigh + - 1.3.6.1.4.1.2021.9.1.12 + - '0' + - dskAvailLow + - 1.3.6.1.4.1.2021.9.1.13 + - '0' + - dskAvailHigh + - 1.3.6.1.4.1.2021.9.1.14 + - '0' + - dskUsedLow + - 1.3.6.1.4.1.2021.9.1.15 + - '0' + - dskUsedHigh + - 1.3.6.1.4.1.2021.9.1.16 + - '0' + - dskEntry + - 1.3.6.1.4.1.2021.9.1.1 + - '0' + tags: + - tag: component + value: raw + - tag: component + value: storage + - uuid: ad8a3857e8b04dffbc0c052a0d36fe08 + name: 'Available memory' + type: CALCULATED + key: 'vm.memory.available[snmp]' + units: B + params: 'last(//vm.memory.free[memAvailReal.0])+last(//vm.memory.buffers[memBuffer.0])+last(//vm.memory.cached[memCached.0])' + description: 'Please note that memory utilization is a rough estimate, since memory available is calculated as free+buffers+cached, which is not 100% accurate, but the best we can get using SNMP.' + tags: + - tag: component + value: memory + - uuid: c071dae605b64cce886df7d2865e77e0 + name: 'Memory (buffers)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.14.0]' + key: 'vm.memory.buffers[memBuffer.0]' + units: B + description: | + MIB: UCD-SNMP-MIB + Memory used by kernel buffers (Buffers in /proc/meminfo). + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: d5e0a99bfd9844108c3d26d53d1a3d0c + name: 'Memory (cached)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.15.0]' + key: 'vm.memory.cached[memCached.0]' + units: B + description: | + MIB: UCD-SNMP-MIB + Memory used by the page cache and slabs (Cached and Slab in /proc/meminfo). + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: fc3fb5310e8f4af7a093b9df9eede403 + name: 'Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.6.0]' + key: 'vm.memory.free[memAvailReal.0]' + units: B + description: 'MIB: UCD-SNMP-MIB' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: de35484e53b24894aa050f15e1941106 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.5.0]' + key: 'vm.memory.total[memTotalReal.0]' + units: B + description: | + MIB: UCD-SNMP-MIB + Total memory expressed in bytes. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 640d893d48d44f2ebe2c9e9bb0158f76 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[snmp]' + value_type: FLOAT + units: '%' + params: '(last(//vm.memory.total[memTotalReal.0])-(last(//vm.memory.free[memAvailReal.0])+last(//vm.memory.buffers[memBuffer.0])+last(//vm.memory.cached[memCached.0])))/last(//vm.memory.total[memTotalReal.0])*100' + description: 'Please note that memory utilization is a rough estimate, since memory available is calculated as free+buffers+cached, which is not 100% accurate, but the best we can get using SNMP.' + tags: + - tag: component + value: memory + triggers: + - uuid: 063b87d246b04e74a439114a05f00fe5 + expression: 'min(/Linux by SNMP/vm.memory.util[snmp],5m)>{$MEMORY.UTIL.MAX}' + name: 'Linux: High memory utilization' + event_name: 'Linux: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + dependencies: + - name: 'Linux: Lack of available memory' + expression: 'max(/Linux by SNMP/vm.memory.available[snmp],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by SNMP/vm.memory.total[memTotalReal.0])>0' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 03491bb9b98f4267bf1ff56cc226d819 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 63d99e49b3584fb2bf61a7d56725fb3c + expression: 'max(/Linux by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Linux: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Linux: Unavailable by ICMP ping' + expression: 'max(/Linux by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 4089ef5360ec4b2a98b7742e8e4e9dd6 + name: 'CPU discovery' + type: DEPENDENT + key: 'cpu.discovery[snmp]' + delay: '0' + description: 'This discovery will create set of per core CPU metrics from UCD-SNMP-MIB, using {#CPU.COUNT} in preprocessing. That''s the only reason why LLD is used.' + item_prototypes: + - uuid: 528c02f7e0414cb5a97def6702fceb2a + name: 'CPU guest time' + type: DEPENDENT + key: 'system.cpu.guest[ssCpuRawGuest.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Time spent on running a virtual CPU for a guest operating system. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.65.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: ce514c83afb345b2b0f3b85d6ec89dc3 + name: 'CPU guest nice time' + type: DEPENDENT + key: 'system.cpu.guest_nice[ssCpuRawGuestNice.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Time spent on running a niced guest (a virtual CPU for guest operating systems under the control of the Linux kernel). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.66.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: 394bffd2086545af806f4ad990f853a1 + name: 'CPU idle time' + type: DEPENDENT + key: 'system.cpu.idle[ssCpuRawIdle.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Time the CPU has spent doing nothing. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.53.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: 88e9044abe71483a8670b572517ff4ad + name: 'CPU interrupt time' + type: DEPENDENT + key: 'system.cpu.interrupt[ssCpuRawInterrupt.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Time the CPU has spent servicing hardware interrupts. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.56.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: 87d1467c79cc4a3d8e5caf3b35de7e17 + name: 'CPU iowait time' + type: DEPENDENT + key: 'system.cpu.iowait[ssCpuRawWait.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Time the CPU has been waiting for I/O to complete. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.54.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: d35896698d2a459fb682eb170e7005de + name: 'CPU nice time' + type: DEPENDENT + key: 'system.cpu.nice[ssCpuRawNice.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Time the CPU has spent running users' processes that have been niced. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.51.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: b48b79d7c2464bd996776477e55ce724 + name: 'CPU softirq time' + type: DEPENDENT + key: 'system.cpu.softirq[ssCpuRawSoftIRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Time the CPU has been servicing software interrupts. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.61.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: f0e15f783b434cc49c97681e15def25c + name: 'CPU steal time' + type: DEPENDENT + key: 'system.cpu.steal[ssCpuRawSteal.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + The amount of "stolen" CPU from this virtual machine by the hypervisor for other tasks, such as running another virtual machine. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.64.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: 9f063ab6a217459e9e1ae95cc77071ff + name: 'CPU system time' + type: DEPENDENT + key: 'system.cpu.system[ssCpuRawSystem.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Time the CPU has spent running the kernel and its processes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.52.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: e07c1afe5f8c4db0bae364933df3e571 + name: 'CPU user time' + type: DEPENDENT + key: 'system.cpu.user[ssCpuRawUser.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Time the CPU has spent running users' processes that are not niced. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.50.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: dfd150b9966c49e6b8bf08570438f17c + name: 'CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[snmp,{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization expressed in %.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100 - value)' + master_item: + key: 'system.cpu.idle[ssCpuRawIdle.{#SNMPINDEX}]' + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 34b29a2e43b347d0ada6b80a472a659e + expression: 'min(/Linux by SNMP/system.cpu.util[snmp,{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'Linux: High CPU utilization' + event_name: 'Linux: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: fe9835f96dfd4912933e1c3db7943fdf + name: 'Linux: CPU usage{#SINGLETON}' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Linux by SNMP' + key: 'system.cpu.system[ssCpuRawSystem.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by SNMP' + key: 'system.cpu.user[ssCpuRawUser.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'Linux by SNMP' + key: 'system.cpu.nice[ssCpuRawNice.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'Linux by SNMP' + key: 'system.cpu.iowait[ssCpuRawWait.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Linux by SNMP' + key: 'system.cpu.steal[ssCpuRawSteal.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Linux by SNMP' + key: 'system.cpu.interrupt[ssCpuRawInterrupt.{#SNMPINDEX}]' + - sortorder: '6' + color: C7A72D + item: + host: 'Linux by SNMP' + key: 'system.cpu.softirq[ssCpuRawSoftIRQ.{#SNMPINDEX}]' + - sortorder: '7' + color: BA2A5D + item: + host: 'Linux by SNMP' + key: 'system.cpu.guest[ssCpuRawGuest.{#SNMPINDEX}]' + - sortorder: '8' + color: F230E0 + item: + host: 'Linux by SNMP' + key: 'system.cpu.guest_nice[ssCpuRawGuestNice.{#SNMPINDEX}]' + - uuid: 22a742f192bb42a3b80e62b214eab9a8 + name: 'Linux: CPU utilization{#SINGLETON}' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by SNMP' + key: 'system.cpu.util[snmp,{#SNMPINDEX}]' + master_item: + key: 'system.cpu.num[snmp]' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify([{"{#CPU.COUNT}": value, "{#SNMPINDEX}": 0, "{#SINGLETON}":""}])' + - uuid: c29a7bbfba3441b1b155e68cbe44a685 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 772ca56d1df84c33847fb3de9a2fa048 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 23d5c37a8a66495c81babc76085dd0d0 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 229e36fe673e43c0a69f942c086fea97 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bbaad86407a349ed81b3b329e0754cdb + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 184b63fa8f184915a8bd365afebae00f + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ad64f09ccd88467f811499ef17096c0a + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 54b1b171187b44c2a0b8dfadf06f9b00 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4aaabfdfeeac4c779255fd8b5a4550f4 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 038c4ebc6bdf48f69b60fca856318638 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ce0a2b8f62ff4591b5e3bc8b348bf946 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 02387536c92f449384c23a0744e71ee3 + expression: | + change(/Linux by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Linux by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Linux by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Linux by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Linux by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Linux by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Linux by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Linux by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Linux by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Linux by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: efe5516d1c164a8cb243c4806b9684a2 + expression: | + (avg(/Linux by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Linux by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Linux by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Linux by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Linux by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: dbbd6222837345b891dd613f6d40f98f + expression: | + min(/Linux by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Linux by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Linux by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Linux by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Linux by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: c09b8ad9356741fcb9560446b50d8cf0 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Linux by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Linux by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Linux by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Linux by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Linux by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3943b515dcfc4321be0e15eb99eb0077 + name: 'EtherLike-MIB Discovery' + type: DEPENDENT + key: net.if.duplex.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + - macro: '{#SNMPVALUE}' + operator: EXISTS + formulaid: C + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with `up(1)` Operational Status are discovered.' + item_prototypes: + - uuid: cc55ecff67a044b3a6cd17136757fc32 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: DEPENDENT + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC entity. `unknown` indicates that the current duplex mode could not be determined. + Management control of the duplex mode is accomplished through the MAU MIB. When an interface does not support autonegotiation or when autonegotiation is not enabled, the duplex mode is controlled using `ifMauDefaultType`. When autonegotiation is supported and enabled, duplex mode is controlled using `ifMauAutoNegAdvertisedBits`. In either case, the currently operating duplex mode in reflected both in this object and in `ifMauType`. + Note that this object provides redundant information with `ifMauType`. Normally, redundant objects are discouraged. However, in this instance, it allows a management application to determine the duplex status of an interface without having to know every possible value of `ifMauType`. This was felt to be sufficiently valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.duplex.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1e1f12c0cf744fd3aaac6570325bd661 + expression: 'last(/Linux by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'Linux: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + master_item: + key: net.if.duplex.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.10.7.2.1.19 + - '0' + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 57792d6e2b4e40a8a285848525bec38d + name: 'Block devices discovery' + type: DEPENDENT + key: 'vfs.dev.discovery[snmp]' + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.MATCHES}' + formulaid: A + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Block devices are discovered from UCD-DISKIO-MIB::diskIOTable (http://net-snmp.sourceforge.net/docs/mibs/ucdDiskIOMIB.html#diskIOTable)' + item_prototypes: + - uuid: b136adad88154c31a123b46522b41191 + name: '{#DEVNAME}: Disk read rate' + type: DEPENDENT + key: 'vfs.dev.read.rate[diskIOReads.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: | + MIB: UCD-DISKIO-MIB + The number of read accesses from this device since boot. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2021.13.15.1.1.5.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vfs.dev.walk + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: b1fb6665c96b4c9f999b3803d45eea3e + name: '{#DEVNAME}: Disk utilization' + type: DEPENDENT + key: 'vfs.dev.util[diskIOLA1.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-DISKIO-MIB + The 1 minute average load of disk (%) + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2021.13.15.1.1.9.{#SNMPINDEX}' + - '0' + master_item: + key: vfs.dev.walk + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 147ad615fd544ab39494ce829da0bb14 + name: '{#DEVNAME}: Disk write rate' + type: DEPENDENT + key: 'vfs.dev.write.rate[diskIOWrites.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: | + MIB: UCD-DISKIO-MIB + The number of write accesses from this device since boot. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2021.13.15.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vfs.dev.walk + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + graph_prototypes: + - uuid: 76f7583a5256463a82d60c0fef3c6a7f + name: '{#DEVNAME}: Disk read/write rates' + graph_items: + - color: 199C0D + item: + host: 'Linux by SNMP' + key: 'vfs.dev.read.rate[diskIOReads.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by SNMP' + key: 'vfs.dev.write.rate[diskIOWrites.{#SNMPINDEX}]' + master_item: + key: vfs.dev.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#DEVNAME}' + - 1.3.6.1.4.1.2021.13.15.1.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0ba976a284574157b2b51f103a324d43 + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: 'vfs.fs.discovery[snmp]' + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSDEVICE}' + value: '{$VFS.FS.FSDEVICE.MATCHES}' + formulaid: A + - macro: '{#FSDEVICE}' + value: '{$VFS.FS.FSDEVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: C + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'UCD-SNMP-MIB::dskEntry table discovery with storage filter' + item_prototypes: + - uuid: eb734d1738e24cbaaacf48fe1396e0f0 + name: 'FS [{#FSNAME}]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.free[dskAvail.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: B + description: | + UCD-SNMP-MIB::dskEntry + Available storage space is calculated from two portions: + dskAvailHigh + dskAvailLow + Together they compose 64-bit number. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const portionHigh = 4294967296; + + const obj = JSON.parse(value); + + const dskAvailHigh = parseInt(obj['dskAvailHigh'], 10), + dskAvailLow = parseInt(obj['dskAvailLow'], 10); + + return (dskAvailHigh * portionHigh + dskAvailLow) * 1024; + master_item: + key: 'vfs.fs.walk.data[dskEntry.{#SNMPINDEX}]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 96d3b16a29c44dacbf57127395d4f760 + name: 'FS [{#FSNAME}]: Inodes: Free, in %' + type: DEPENDENT + key: 'vfs.fs.inode.pfree[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Free metadata space expressed as percentage. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var obj = JSON.parse(value); + var dskPercentNode = obj['dskPercentNode']; + + return (100 - dskPercentNode); + master_item: + key: 'vfs.fs.walk.data[dskEntry.{#SNMPINDEX}]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: c2a464a9d8f24b1f96251feabeec8b6a + expression: 'min(/Linux by SNMP/vfs.fs.inode.pfree[{#SNMPINDEX}],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'Linux: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 396da67ae447497781d9f37215490b71 + expression: 'min(/Linux by SNMP/vfs.fs.inode.pfree[{#SNMPINDEX}],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'Linux: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + dependencies: + - name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + expression: 'min(/Linux by SNMP/vfs.fs.inode.pfree[{#SNMPINDEX}],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 0cb84e1611e944e68caf677492d169e5 + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.pused[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + UCD-SNMP-MIB::dskEntry + Space utilization is calculated as the percentage of currently used space compared to the maximum available space. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const portionHigh = 4294967296; + + const obj = JSON.parse(value); + + const dskAvailHigh = parseInt(obj['dskAvailHigh'], 10), + dskAvailLow = parseInt(obj['dskAvailLow'], 10), + dskUsedHigh = parseInt(obj['dskUsedHigh'], 10), + dskUsedLow = parseInt(obj['dskUsedLow'], 10); + + const available = (dskAvailHigh * portionHigh + dskAvailLow) * 1024, + used = (dskUsedHigh * portionHigh + dskUsedLow) * 1024; + + if ((available + used) <= 0) { + return 0; + } + + return used / (used + available) * 100; + master_item: + key: 'vfs.fs.walk.data[dskEntry.{#SNMPINDEX}]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 4e84d5b0e3bb4729a6eabd5882d2d603 + expression: 'min(/Linux by SNMP/vfs.fs.pused[{#SNMPINDEX}],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Space is critically low' + event_name: 'Linux: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.total[dskTotal.{#SNMPINDEX}])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the '{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%' limit; + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 210ae86feef14fa0a82c97331e522937 + expression: 'min(/Linux by SNMP/vfs.fs.pused[{#SNMPINDEX}],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Space is low' + event_name: 'Linux: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.total[dskTotal.{#SNMPINDEX}])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the '{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%' limit; + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'Linux: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/Linux by SNMP/vfs.fs.pused[{#SNMPINDEX}],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 9117a148b85c4593a3df470a1e023573 + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.total[dskTotal.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: B + description: | + MIB: UCD-SNMP-MIB + Total storage is calculated from two portions: + dskTotalHigh + dskTotalLow + Together they compose 64-bit number. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const portionHigh = 4294967296; + + const obj = JSON.parse(value); + + const dskTotalHigh = parseInt(obj['dskTotalHigh'], 10), + dskTotalLow = parseInt(obj['dskTotalLow'], 10); + + return (dskTotalHigh * portionHigh + dskTotalLow) * 1024; + master_item: + key: 'vfs.fs.walk.data[dskEntry.{#SNMPINDEX}]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 04168e44dd0f4d3c96496c3fadd13fde + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.used[dskUsed.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: B + description: | + MIB: UCD-SNMP-MIB + Used storage is calculated from two portions: + dskUsedHigh + dskUsedLow + Together they compose 64-bit number. + Reserved space is not counted in. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const portionHigh = 4294967296; + + const obj = JSON.parse(value); + + const dskUsedHigh = parseInt(obj['dskUsedHigh'], 10), + dskUsedLow = parseInt(obj['dskUsedLow'], 10); + + return (dskUsedHigh * portionHigh + dskUsedLow) * 1024; + master_item: + key: 'vfs.fs.walk.data[dskEntry.{#SNMPINDEX}]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 73d029a287c34f3291bce17c7d1d08f8 + name: 'FS [{#FSNAME}]: Get data' + type: DEPENDENT + key: 'vfs.fs.walk.data[dskEntry.{#SNMPINDEX}]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: UCD-SNMP-MIB + Intermediate data for subsequent processing. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + + result = data.filter(function(obj) { + return obj["{\#SNMPINDEX}"] === "{#SNMPINDEX}"; + })[0]; + + return JSON.stringify(result); + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + graph_prototypes: + - uuid: 528473595e39475ebb9b2150447f3280 + name: 'FS [{#FSNAME}]: Space usage graph, in % (relative to max available)' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'Linux by SNMP' + key: 'vfs.fs.pused[{#SNMPINDEX}]' + - uuid: e5e83dc2bb384b2a96fae9cdbf0baba7 + name: 'FS [{#FSNAME}]: Space utilization chart (relative to total)' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Linux by SNMP' + key: 'vfs.fs.total[dskTotal.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Linux by SNMP' + key: 'vfs.fs.used[dskUsed.{#SNMPINDEX}]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'Linux by SNMP' + key: 'vfs.fs.free[dskAvail.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + lld_macro_paths: + - lld_macro: '{#FSDEVICE}' + path: $.dskDevice + - lld_macro: '{#FSNAME}' + path: $.dskPath + - lld_macro: '{#SNMPINDEX}' + path: $.index + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'dskPath': filesystem.dskPath, + 'dskDevice': filesystem.dskDevice, + 'index': filesystem['{#SNMPINDEX}'] + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: os + - tag: target + value: linux + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization expressed in %.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$LOAD_AVG_PER_CPU.MAX.WARN}' + value: '1.5' + description: 'Load per CPU considered sustainable. Tune if needed.' + - macro: '{$MEMORY.AVAILABLE.MIN}' + value: 20M + description: 'Used as a threshold in the available memory trigger.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the memory utilization trigger.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$SWAP.PFREE.MIN.WARN}' + value: '50' + description: 'The warning threshold of the minimum free swap.' + - macro: '{$VFS.DEV.DEVNAME.MATCHES}' + value: .+ + description: 'Used in block device discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + value: '^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)' + description: 'Used in block device discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSDEVICE.MATCHES}' + value: .+ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSDEVICE.NOT_MATCHES}' + value: '.*(tmpfs|shm)$' + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: db1904856337427f9b5ae667e0d93b45 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by SNMP' + name: 'FS [{#FSNAME}]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by SNMP' + name: 'FS [{#FSNAME}]: Space usage graph, in % (relative to max available)' + - type: STRING + name: reference + value: AAAEC + - uuid: e0f04b83911a47ba8ee30fa91b4f63a9 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAI + - uuid: 59f09fada3ab43d1bdb70091f92e77f1 + name: 'System performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by SNMP' + name: 'Linux: System load' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by SNMP' + name: 'Linux: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by SNMP' + name: 'FS [{#FSNAME}]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEA + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by SNMP' + name: '{#DEVNAME}: Disk read/write rates' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'Linux by SNMP' + key: 'vfs.dev.util[diskIOLA1.{#SNMPINDEX}]' + - type: STRING + name: reference + value: AAAAG + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + 'y': '25' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by SNMP' + name: 'Linux: CPU usage{#SINGLETON}' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by SNMP' + name: 'Linux: Swap usage' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 1fe48656fa5e4a23903921a5b0f2aac4 + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 1578e9a6c5f24dd1915d981c245b68fa + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 4a342bf160284052bc94e123d13f7992 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 1ccba0a6ed744226ba878957e7d1aa47 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 72e9f56c06b546319580d856fc112dc1 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 8d66563ff7744cd6847325d473eaacfe + expression: 'max(/Linux by SNMP/system.swap.pfree[snmp],5m)<{$SWAP.PFREE.MIN.WARN} and last(/Linux by SNMP/system.swap.total[memTotalSwap.0])>0' + name: 'Linux: High swap space usage' + event_name: 'Linux: High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)' + opdata: 'Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'If there is no swap configured, this trigger is ignored.' + dependencies: + - name: 'Linux: High memory utilization' + expression: 'min(/Linux by SNMP/vm.memory.util[snmp],5m)>{$MEMORY.UTIL.MAX}' + - name: 'Linux: Lack of available memory' + expression: 'max(/Linux by SNMP/vm.memory.available[snmp],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by SNMP/vm.memory.total[memTotalReal.0])>0' + tags: + - tag: scope + value: capacity + - uuid: e129fb90ec084a83806aec27141cd6eb + expression: '(last(/Linux by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Linux by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Linux by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Linux by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Linux: Host has been restarted' + event_name: 'Linux: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Linux: No SNMP data collection' + expression: 'max(/Linux by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + - uuid: b0a04a6a01854d0eb6f9f225c1108261 + expression: 'max(/Linux by SNMP/vm.memory.available[snmp],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by SNMP/vm.memory.total[memTotalReal.0])>0' + name: 'Linux: Lack of available memory' + event_name: 'Linux: Lack of available memory (<{$MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})' + opdata: 'Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The system is running out of memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 33df3354161047f0b47ad7736b70a302 + expression: | + min(/Linux by SNMP/system.cpu.load.avg1[laLoad.1],5m)/last(/Linux by SNMP/system.cpu.num[snmp])>{$LOAD_AVG_PER_CPU.MAX.WARN} + and last(/Linux by SNMP/system.cpu.load.avg5[laLoad.2])>0 + and last(/Linux by SNMP/system.cpu.load.avg15[laLoad.3])>0 + name: 'Linux: Load average is too high' + event_name: 'Linux: Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)' + opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The load average per CPU is too high. The system may be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graphs: + - uuid: ff743a3e32e7497b9b98173b3611687f + name: 'Linux: CPU jumps' + graph_items: + - color: 199C0D + item: + host: 'Linux by SNMP' + key: 'system.cpu.switches[ssRawContexts.0]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by SNMP' + key: 'system.cpu.intr[ssRawInterrupts.0]' + - uuid: 16b11e6079864c71a7d068276a8e8650 + name: 'Linux: Memory usage' + ymin_type_1: FIXED + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Linux by SNMP' + key: 'vm.memory.total[memTotalReal.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by SNMP' + key: 'vm.memory.available[snmp]' + - uuid: 5cd95425d8fe4705833995ccfb484c66 + name: 'Linux: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by SNMP' + key: 'vm.memory.util[snmp]' + - uuid: 421c99e9076c4f24931206255577c988 + name: 'Linux: Swap usage' + graph_items: + - color: 199C0D + item: + host: 'Linux by SNMP' + key: 'system.swap.free[memAvailSwap.0]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by SNMP' + key: 'system.swap.total[memTotalSwap.0]' + - uuid: feff7234e6cc420e94acc3c0dab0a61e + name: 'Linux: System load' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Linux by SNMP' + key: 'system.cpu.load.avg1[laLoad.1]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by SNMP' + key: 'system.cpu.load.avg5[laLoad.2]' + - sortorder: '2' + color: 00611C + item: + host: 'Linux by SNMP' + key: 'system.cpu.load.avg15[laLoad.3]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Linux by SNMP' + key: 'system.cpu.num[snmp]' diff --git a/Linux_by_Zabbix_agent.yaml b/Linux_by_Zabbix_agent.yaml new file mode 100644 index 0000000..d9602d8 --- /dev/null +++ b/Linux_by_Zabbix_agent.yaml @@ -0,0 +1,2157 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: f8f7908280354f2abeed07dc788c3747 + template: 'Linux by Zabbix agent' + name: 'Linux by Zabbix agent' + description: | + This is an official Linux template. It requires Zabbix agent 7.0 or newer. + + Notes on filesystem (FS) discovery: + - The ext4/3/2 filesystem reserves space for privileged usage, typically set at 5% by default. + - BTRFS allocates a default of 10% of the volume for its own needs. + - To mitigate potential disasters, FS usage triggers are based on the maximum available space. + - Utilization formula: 'pused = 100 - 100 * (available / total - free + available)' + - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387225-discussion-thread-for-official-zabbix-template-for-linux + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: df561a0cece94760a78704edf7da7326 + name: 'Host name of Zabbix agent running' + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: f94f9f4699e94c369e6c98b2a2f485ce + name: 'Zabbix agent ping' + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + - uuid: 27c42cf180b44632b5d9b8b5788165b3 + name: 'Version of Zabbix agent running' + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: ef386d03ff2c42ffa236acd5215ad547 + name: 'Maximum number of open file descriptors' + key: kernel.maxfiles + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: b9bdcf42f54a409a9a9a616dbd0eaed2 + expression: 'last(/Linux by Zabbix agent/kernel.maxfiles)<{$KERNEL.MAXFILES.MIN}' + name: 'Linux: Configured max number of open filedescriptors is too low' + event_name: 'Linux: Configured max number of open filedescriptors is too low (< {$KERNEL.MAXFILES.MIN})' + priority: INFO + tags: + - tag: scope + value: performance + - uuid: 678d70c041954ac8982fb5118b49f6e7 + name: 'Maximum number of processes' + key: kernel.maxproc + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 8cf253ca3eea4109a90443f9cb76fc5c + expression: 'last(/Linux by Zabbix agent/kernel.maxproc)<{$KERNEL.MAXPROC.MIN}' + name: 'Linux: Configured max number of processes is too low' + event_name: 'Linux: Configured max number of processes is too low (< {$KERNEL.MAXPROC.MIN})' + priority: INFO + dependencies: + - name: 'Linux: Getting closer to process limit' + expression: 'last(/Linux by Zabbix agent/proc.num)/last(/Linux by Zabbix agent/kernel.maxproc)*100>80' + tags: + - tag: scope + value: performance + - uuid: ab7d0471092544a6a950184d1bac906d + name: 'Number of processes' + key: proc.num + tags: + - tag: component + value: system + - uuid: b2637293884d40108f41b11767dd5be0 + name: 'Number of running processes' + key: 'proc.num[,,run]' + tags: + - tag: component + value: system + - uuid: 27cb0f66bb624146acfdd81b58f108a3 + name: 'System boot time' + key: system.boottime + delay: 15m + units: unixtime + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 5d186a46867b4eaaafd6396d3239dd3b + name: 'Interrupts per second' + key: system.cpu.intr + value_type: FLOAT + description: 'Number of interrupts processed.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: 48528aa936a04c8189375a6eae4033da + name: 'Load average (1m avg)' + key: 'system.cpu.load[all,avg1]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 953beb580df8418cb88b667b9dd37259 + name: 'Load average (5m avg)' + key: 'system.cpu.load[all,avg5]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 5716000e38e24dae8ead4ed98ede024b + name: 'Load average (15m avg)' + key: 'system.cpu.load[all,avg15]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: f72e115544eb4079b09fec8c3539241c + name: 'Number of CPUs' + key: system.cpu.num + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: cpu + - uuid: 73e85aa10a704fc7950d2d077f0c54ee + name: 'Context switches per second' + key: system.cpu.switches + value_type: FLOAT + description: 'The combined rate at which all processors on the computer are switched from one thread to another.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: ca4235ec7607469cb0124a6253d3c489 + name: 'CPU utilization' + type: DEPENDENT + key: system.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization expressed in %.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100 - value)' + master_item: + key: 'system.cpu.util[,idle]' + tags: + - tag: component + value: cpu + triggers: + - uuid: b4e904559b694df0ad45bcce7930c3a6 + expression: 'min(/Linux by Zabbix agent/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + name: 'Linux: High CPU utilization' + event_name: 'Linux: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + dependencies: + - name: 'Linux: Load average is too high' + expression: | + min(/Linux by Zabbix agent/system.cpu.load[all,avg1],5m)/last(/Linux by Zabbix agent/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN} + and last(/Linux by Zabbix agent/system.cpu.load[all,avg5])>0 + and last(/Linux by Zabbix agent/system.cpu.load[all,avg15])>0 + tags: + - tag: scope + value: performance + - uuid: 69b187838fb74f319e47c2ff4f99ef54 + name: 'CPU guest time' + key: 'system.cpu.util[,guest]' + value_type: FLOAT + units: '%' + description: 'Time spent on running a virtual CPU for a guest operating system.' + tags: + - tag: component + value: cpu + - uuid: a2b07497f2f343a99d26ad77e65bb54f + name: 'CPU guest nice time' + key: 'system.cpu.util[,guest_nice]' + value_type: FLOAT + units: '%' + description: 'Time spent on running a niced guest (a virtual CPU for guest operating systems under the control of the Linux kernel).' + tags: + - tag: component + value: cpu + - uuid: 7aad6d159baa4a24901847144f0d231b + name: 'CPU idle time' + key: 'system.cpu.util[,idle]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent doing nothing.' + tags: + - tag: component + value: cpu + - uuid: cc4bc7693ae84f9bb18cee38d0814195 + name: 'CPU interrupt time' + key: 'system.cpu.util[,interrupt]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent servicing hardware interrupts.' + tags: + - tag: component + value: cpu + - uuid: 5df67d9162cc437585990cc8708be894 + name: 'CPU iowait time' + key: 'system.cpu.util[,iowait]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has been waiting for I/O to complete.' + tags: + - tag: component + value: cpu + - uuid: 8ee6e54c86ba44ab88bb9e83c632c1ed + name: 'CPU nice time' + key: 'system.cpu.util[,nice]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that have been niced.' + tags: + - tag: component + value: cpu + - uuid: a949a36004a449c58bef0cdc9d3fafd6 + name: 'CPU softirq time' + key: 'system.cpu.util[,softirq]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has been servicing software interrupts.' + tags: + - tag: component + value: cpu + - uuid: 3161dbd18e874e69b729c8e903cf7390 + name: 'CPU steal time' + key: 'system.cpu.util[,steal]' + value_type: FLOAT + units: '%' + description: 'The amount of "stolen" CPU from this virtual machine by the hypervisor for other tasks, such as running another virtual machine.' + tags: + - tag: component + value: cpu + - uuid: d93097ed5ce74d35b6041ef2b5ba18e8 + name: 'CPU system time' + key: 'system.cpu.util[,system]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running the kernel and its processes.' + tags: + - tag: component + value: cpu + - uuid: 57f9e2e34fab41e18e2bc93e786c92c6 + name: 'CPU user time' + key: 'system.cpu.util[,user]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that are not niced.' + tags: + - tag: component + value: cpu + - uuid: 207341f390134e37ad431e2823666eb9 + name: 'System name' + key: system.hostname + delay: 1h + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 371a12f95a26438d8da659c84364631b + expression: 'change(/Linux by Zabbix agent/system.hostname) and length(last(/Linux by Zabbix agent/system.hostname))>0' + name: 'Linux: System name has changed' + event_name: 'Linux: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 6072902361404672a444841c786875e6 + name: 'System local time' + key: system.localtime + units: unixtime + description: 'The local system time of the host.' + tags: + - tag: component + value: system + triggers: + - uuid: fb77b6ac381c4b5289584bd91e7da7d5 + expression: 'fuzzytime(/Linux by Zabbix agent/system.localtime,{$SYSTEM.FUZZYTIME.MAX})=0' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'fuzzytime(/Linux by Zabbix agent/system.localtime,{$SYSTEM.FUZZYTIME.MIN})=1' + name: 'Linux: System time is out of sync' + event_name: 'Linux: System time is out of sync (diff with Zabbix server > {$SYSTEM.FUZZYTIME.MAX})' + priority: WARNING + description: 'The host''s system time is different from Zabbix server time.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fd21580a151246b0a340bf924c326aa8 + name: 'Operating system architecture' + key: system.sw.arch + delay: 1h + value_type: CHAR + trends: '0' + description: 'The architecture of the operating system.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + - uuid: 5e4c3d14634843e9b7b182e8fc08efbe + name: 'Operating system' + key: system.sw.os + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: b1998f98c06b49dd8d71e1c6df409371 + expression: 'change(/Linux by Zabbix agent/system.sw.os) and length(last(/Linux by Zabbix agent/system.sw.os))>0' + name: 'Linux: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Linux: System name has changed' + expression: 'change(/Linux by Zabbix agent/system.hostname) and length(last(/Linux by Zabbix agent/system.hostname))>0' + tags: + - tag: scope + value: notice + - uuid: 58818005e76d46dda14d6592f601ab00 + name: 'Number of installed packages' + key: system.sw.packages.get + delay: 1h + preprocessing: + - type: JSONPATH + parameters: + - $.length() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: os + triggers: + - uuid: b950c306394f4b3c902060a8273cbcde + expression: 'change(/Linux by Zabbix agent/system.sw.packages.get)<>0' + name: 'Linux: Number of installed packages has been changed' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 160b82c121b147cbbf18c34dbb01d3ce + name: 'Free swap space' + key: 'system.swap.size[,free]' + units: B + description: 'The free space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: ca423242172f4b20ba47c26f4a61aee7 + name: 'Free swap space in %' + key: 'system.swap.size[,pfree]' + value_type: FLOAT + units: '%' + description: 'The free space of the swap volume/file expressed in %.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 102c81b5523c4be0b4beae3cb88ebde1 + name: 'Total swap space' + key: 'system.swap.size[,total]' + units: B + description: 'The total space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: fc6898682f904c57ba28bcb3748b237f + name: 'System description' + key: system.uname + delay: 15m + value_type: CHAR + trends: '0' + description: 'The information as normally returned by `uname -a`.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8537f6c6ac6b438c80caf227946df891 + name: 'System uptime' + key: system.uptime + delay: 30s + trends: '0' + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + tags: + - tag: component + value: system + triggers: + - uuid: 1dbab80d7b6847e5b5a676cffba0fd1d + expression: 'last(/Linux by Zabbix agent/system.uptime)<10m' + name: 'Linux: {HOST.NAME} has been restarted' + event_name: 'Linux: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'The host uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 88056b3d2e424d5aba7cabcd4b043c9e + name: 'Number of logged in users' + key: system.users.num + description: 'The number of users who are currently logged in.' + tags: + - tag: component + value: environment + - uuid: 3b93d3590df24a46b29f6eb06f5e2446 + name: 'Checksum of /etc/passwd' + key: 'vfs.file.cksum[/etc/passwd,sha256]' + delay: 15m + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: security + triggers: + - uuid: 3a764881727b4e7eb01e137ccfc968a2 + expression: 'last(/Linux by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/Linux by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)' + name: 'Linux: /etc/passwd has been changed' + priority: INFO + manual_close: 'YES' + dependencies: + - name: 'Linux: Operating system description has changed' + expression: 'change(/Linux by Zabbix agent/system.sw.os) and length(last(/Linux by Zabbix agent/system.sw.os))>0' + - name: 'Linux: System name has changed' + expression: 'change(/Linux by Zabbix agent/system.hostname) and length(last(/Linux by Zabbix agent/system.hostname))>0' + tags: + - tag: scope + value: security + - uuid: 868440292732425c8f9df52882822c82 + name: 'Get filesystems' + key: vfs.fs.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.' + tags: + - tag: component + value: raw + - uuid: e811e6e2ae84461294e121f12e767b40 + name: 'Available memory' + key: 'vm.memory.size[available]' + units: B + description: | + The available memory: + - in Linux = free + buffers + cache; + - on other platforms calculation may vary. + + See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item. + tags: + - tag: component + value: memory + - uuid: 20779a4c43374e5f9bea2584e93b85ef + name: 'Available memory in %' + key: 'vm.memory.size[pavailable]' + value_type: FLOAT + units: '%' + description: 'The available memory as percentage of the total. See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item.' + tags: + - tag: component + value: memory + - uuid: d5c3541a7c0949ce812df1beb0732941 + name: 'Total memory' + key: 'vm.memory.size[total]' + units: B + description: 'Total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 403cebed115441369e94d35d070ca7b8 + name: 'Memory utilization' + type: DEPENDENT + key: vm.memory.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of used memory is calculated as `100-pavailable`.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100-value);' + master_item: + key: 'vm.memory.size[pavailable]' + tags: + - tag: component + value: memory + triggers: + - uuid: cfd395b1cde74ef18a5e5f840bd5142a + expression: 'min(/Linux by Zabbix agent/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + name: 'Linux: High memory utilization' + event_name: 'Linux: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + dependencies: + - name: 'Linux: Lack of available memory' + expression: 'max(/Linux by Zabbix agent/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent/vm.memory.size[total])>0' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: ca48c53be1bf46ae9dd2707158a55139 + name: 'Zabbix agent availability' + type: INTERNAL + key: 'zabbix[host,agent,available]' + description: 'Used for monitoring the availability status of the agent.' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: 93594214371b4dc88b41663cad8537f0 + expression: 'max(/Linux by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0' + name: 'Linux: Zabbix agent is not available' + event_name: 'Linux: Zabbix agent is not available (for {$AGENT.TIMEOUT})' + priority: AVERAGE + description: 'For passive agents only, host availability is used with `{$AGENT.TIMEOUT}` as a time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: acfdea9c46ef48c68e6636f43b8f96a2 + name: 'Network interface discovery' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: A + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'The discovery of network interfaces.' + item_prototypes: + - uuid: 4d66608e190e4be7a438ea5d0d26e353 + name: 'Interface {#IFNAME}: Inbound packets discarded' + key: 'net.if.in["{#IFNAME}",dropped]' + delay: 3m + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ed79960ca91f4e2ca45fed014a02c50b + name: 'Interface {#IFNAME}: Inbound packets with errors' + key: 'net.if.in["{#IFNAME}",errors]' + delay: 3m + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c9941a1f8d904309b581cae5ccc1660c + name: 'Interface {#IFNAME}: Bits received' + key: 'net.if.in["{#IFNAME}"]' + delay: 3m + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0795a375a41d46a2b5c89547061cec8e + name: 'Interface {#IFNAME}: Outbound packets discarded' + key: 'net.if.out["{#IFNAME}",dropped]' + delay: 3m + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f8e8bbc069414e928a5da9817f4599a5 + name: 'Interface {#IFNAME}: Outbound packets with errors' + key: 'net.if.out["{#IFNAME}",errors]' + delay: 3m + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 82897d99b0114c67b0f5b449c768c8e7 + name: 'Interface {#IFNAME}: Bits sent' + key: 'net.if.out["{#IFNAME}"]' + delay: 3m + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3efd24ad36b04eb995cfeab82721c2fe + name: 'Interface {#IFNAME}: Operational status' + key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"]' + trends: '0' + description: 'Reference: https://www.kernel.org/doc/Documentation/networking/operstates.txt' + valuemap: + name: ifOperStatus + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var newvalue; + switch(value) { + case "unknown": + newvalue = 0; + break; + case "notpresent": + newvalue = 1; + break; + case "down": + newvalue = 2; + break; + case "lowerlayerdown": + newvalue = 3; + break; + case "testing": + newvalue = 4; + break; + case "dormant": + newvalue = 5; + break; + case "up": + newvalue = 6; + break; default: + newvalue = "Problem parsing interface operstate in JS"; + } + return newvalue; + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4d7f18ca132340b885c0692464dc429f + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Linux: Interface {#IFNAME}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f4c456e1f9ef4adbbd11f1ee17fa4d76 + name: 'Interface {#IFNAME}: Speed' + key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]' + delay: 5m + trends: '0' + units: bps + description: | + It indicates the latest or current speed value of the interface. The value is an integer representing the link speed expressed in bits/sec. + This attribute is only valid for the interfaces that implement the ethtool `get_link_ksettings` method (mostly Ethernet). + + Reference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d537e74070c74e4385ad241e8514dd3a + name: 'Interface {#IFNAME}: Interface type' + key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/type"]' + delay: 1h + trends: '0' + description: | + It indicates the interface protocol type as a decimal value. + See `include/uapi/linux/if_arp.h` for all possible values. + Reference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net + valuemap: + name: 'Linux::Interface protocol types' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2ffdc1d5a318492bb497facd263843bd + expression: | + change(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])<0 and last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0 + and + (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/type"])=6 or last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/type"])=1) + and + (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0 and last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"],#2)>0) or + (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2) + name: 'Linux: Interface {#IFNAME}: Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))' + recovery_expression: 'last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: f64186d30b4e4c4281fce84349cbd646 + expression: | + (avg(/Linux by Zabbix agent/net.if.in["{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]) or + avg(/Linux by Zabbix agent/net.if.out["{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])) and + last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Linux by Zabbix agent/net.if.in["{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]) and + avg(/Linux by Zabbix agent/net.if.out["{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]) + name: 'Linux: Interface {#IFNAME}: High bandwidth usage' + event_name: 'Linux: Interface {#IFNAME}: High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))' + recovery_expression: 'last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: ad50aecf8e7746b2a85f24507f1d511d + expression: | + min(/Linux by Zabbix agent/net.if.in["{#IFNAME}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Linux by Zabbix agent/net.if.out["{#IFNAME}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Linux by Zabbix agent/net.if.in["{#IFNAME}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Linux by Zabbix agent/net.if.out["{#IFNAME}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Linux: Interface {#IFNAME}: High error rate' + event_name: 'Linux: Interface {#IFNAME}: High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))' + recovery_expression: 'last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 50ced0f22d9d478eb4b639ef64e242ab + name: 'Interface {#IFNAME}: Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: 'net.if.in["{#IFNAME}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Linux by Zabbix agent' + key: 'net.if.out["{#IFNAME}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent' + key: 'net.if.out["{#IFNAME}",errors]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent' + key: 'net.if.in["{#IFNAME}",errors]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent' + key: 'net.if.out["{#IFNAME}",dropped]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent' + key: 'net.if.in["{#IFNAME}",dropped]' + - uuid: 2bbdc79f082d4c618e01bec625e9c90a + name: 'Block devices discovery' + key: vfs.dev.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.MATCHES}' + formulaid: A + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#DEVTYPE}' + value: disk + formulaid: C + item_prototypes: + - uuid: 5e29abb8d56044f69426ed3594f8ac9f + name: '{#DEVNAME}: Disk average queue size (avgqu-sz)' + type: DEPENDENT + key: 'vfs.dev.queue_size[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + description: 'The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.' + preprocessing: + - type: JSONPATH + parameters: + - '$[10]' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 9600208af80e4a6abe55bb5a2240ea8e + name: '{#DEVNAME}: Disk read request avg waiting time (r_await)' + type: CALCULATED + key: 'vfs.dev.read.await[{#DEVNAME}]' + value_type: FLOAT + units: '!ms' + params: '(last(//vfs.dev.read.time.rate[{#DEVNAME}])/(last(//vfs.dev.read.rate[{#DEVNAME}])+(last(//vfs.dev.read.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.read.rate[{#DEVNAME}]) > 0)' + description: 'This formula contains two Boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: f4b982d8e7ee47adb34d74d817db43a6 + name: '{#DEVNAME}: Disk read rate' + type: DEPENDENT + key: 'vfs.dev.read.rate[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: 'r/s (read operations per second) - the number (after merges) of read requests completed per second for the device.' + preprocessing: + - type: JSONPATH + parameters: + - '$[0]' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 877a3e892d9e489f98f2f16ea05bfdc2 + name: '{#DEVNAME}: Disk read time (rate)' + type: DEPENDENT + key: 'vfs.dev.read.time.rate[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + description: 'The rate of total read time counter; used in `r_await` calculation.' + preprocessing: + - type: JSONPATH + parameters: + - '$[3]' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 4a3ee3166ee748e1855a2b02d44e9d62 + name: '{#DEVNAME}: Disk utilization' + type: DEPENDENT + key: 'vfs.dev.util[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of elapsed time during which the selected disk drive was busy while servicing read or write requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$[9]' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '0.1' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 5907708cf4854d48ae3ebf8f0bc41eef + name: '{#DEVNAME}: Disk write request avg waiting time (w_await)' + type: CALCULATED + key: 'vfs.dev.write.await[{#DEVNAME}]' + value_type: FLOAT + units: '!ms' + params: '(last(//vfs.dev.write.time.rate[{#DEVNAME}])/(last(//vfs.dev.write.rate[{#DEVNAME}])+(last(//vfs.dev.write.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.write.rate[{#DEVNAME}]) > 0)' + description: 'This formula contains two Boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: c4eb904dfddd4b0f8cdee4b2c477e213 + name: '{#DEVNAME}: Disk write rate' + type: DEPENDENT + key: 'vfs.dev.write.rate[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: 'w/s (write operations per second) - the number (after merges) of write requests completed per second for the device.' + preprocessing: + - type: JSONPATH + parameters: + - '$[4]' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: e828495863304b219e24965f7b91e963 + name: '{#DEVNAME}: Disk write time (rate)' + type: DEPENDENT + key: 'vfs.dev.write.time.rate[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + description: 'The rate of total write time counter; used in `w_await` calculation.' + preprocessing: + - type: JSONPATH + parameters: + - '$[7]' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 8309fd01a5864ad68866717d0fe67080 + name: '{#DEVNAME}: Get stats' + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The contents of get `/sys/block/{#DEVNAME}/stat` to get the disk statistics.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value.trim().split(/ +/));' + tags: + - tag: component + value: raw + trigger_prototypes: + - uuid: eb6230f786d04b658ce62c30a9309a34 + expression: 'min(/Linux by Zabbix agent/vfs.dev.read.await[{#DEVNAME}],15m) > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} or min(/Linux by Zabbix agent/vfs.dev.write.await[{#DEVNAME}],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}' + name: 'Linux: {#DEVNAME}: Disk read/write request responses are too high' + event_name: 'Linux: {#DEVNAME}: Disk read/write request responses are too high (read > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} ms for 15m or write > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"} ms for 15m)' + priority: WARNING + description: 'This trigger might indicate the disk `{#DEVNAME}` saturation.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 5e9b35b27b90489390d397758fbfdf64 + name: '{#DEVNAME}: Disk average waiting time' + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: 'vfs.dev.read.await[{#DEVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Zabbix agent' + key: 'vfs.dev.write.await[{#DEVNAME}]' + - uuid: d436d6d5456c44f0a534bf1f681d5039 + name: '{#DEVNAME}: Disk read/write rates' + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: 'vfs.dev.read.rate[{#DEVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Zabbix agent' + key: 'vfs.dev.write.rate[{#DEVNAME}]' + - uuid: c42e4045e0974e89a306c57fb188c4fa + name: '{#DEVNAME}: Disk utilization and queue' + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent' + key: 'vfs.dev.queue_size[{#DEVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Zabbix agent' + key: 'vfs.dev.util[{#DEVNAME}]' + - uuid: 7d090603037e4defb34ef74021d3adcd + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: vfs.fs.dependent.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'The discovery of mounted filesystems with different types.' + item_prototypes: + - uuid: 4da7f08a979a46df8b8aeebb42a46207 + name: 'FS [{#FSNAME}]: Inodes: Free, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free metadata space expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.inodes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 115b2d37807f476faf6d02ef406acabd + expression: 'min(/Linux by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'Linux: {#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: ea012c7295344ffe8c66f7ea54d81042 + expression: 'min(/Linux by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'Linux: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + dependencies: + - name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + expression: 'min(/Linux by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: d53e00855fb349e29bd74146e55265ae + name: 'FS [{#FSNAME}]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + delay: '0' + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.free + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 61ffe6fcb9d94199aaeb5d568ab74a27 + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pused + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 9abccdfff8be4e14967ac917ca09afe1 + expression: 'min(/Linux by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Space is critically low' + event_name: 'Linux: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: d6d348ea500c428da6ba718816c4b048 + expression: 'min(/Linux by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Space is low' + event_name: 'Linux: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'Linux: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/Linux by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: a6d90e0bc5ef4fb7acee8682687c485f + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + delay: '0' + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.total + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: efee06a191aa4e5c8faa2762988b6955 + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + delay: '0' + units: B + description: 'Used storage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.used + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 686df59ab1e64b228a1efc20561cf520 + name: 'FS [{#FSNAME}]: Get data' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},data]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Intermediate data of `{#FSNAME}` filesystem.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.fsname==''{#FSNAME}'')].first()' + master_item: + key: vfs.fs.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: c4bfc3639837451bb1fcf98ea654c939 + name: 'FS [{#FSNAME}]: Option: Read-only' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},readonly]' + delay: '0' + description: 'The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.' + preprocessing: + - type: JSONPATH + parameters: + - $.options + error_handler: DISCARD_VALUE + - type: REGEX + parameters: + - '(?:^|,)ro\b' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: c8e2f67378d84b3ba687467bc6daf63a + expression: 'last(/Linux by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/Linux by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=1' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Linux by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=0' + name: 'Linux: FS [{#FSNAME}]: Filesystem has become read-only' + priority: AVERAGE + description: 'The filesystem has become read-only, possibly due to an I/O error. Available only for Zabbix agents 6.4 and higher.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: c2a31e9370b342b1942cc5308fd63a2c + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'Linux by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + - uuid: bb209e7862ad4f8f8f7efcd003146e97 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Linux by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Linux by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'Linux by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + master_item: + key: vfs.fs.get + lld_macro_paths: + - lld_macro: '{#FSNAME}' + path: $.fsname + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'fsname': filesystem.fsname, + 'fstype': filesystem.fstype + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Skip metadata collection for dynamic FS' + step: '1' + filter: + conditions: + - macro: '{#FSTYPE}' + value: ^(btrfs|zfs)$ + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Inodes + discover: NO_DISCOVER + tags: + - tag: class + value: os + - tag: target + value: linux + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 3m + description: 'Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode).' + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization expressed in %.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$KERNEL.MAXFILES.MIN}' + value: '256' + - macro: '{$KERNEL.MAXPROC.MIN}' + value: '1024' + - macro: '{$LOAD_AVG_PER_CPU.MAX.WARN}' + value: '1.5' + description: 'The CPU load per core is considered sustainable. If necessary, it can be tuned.' + - macro: '{$MEMORY.AVAILABLE.MIN}' + value: 20M + description: 'Used as a threshold in the available memory trigger.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the memory utilization trigger.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9A-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0` bridge by default.' + - macro: '{$SWAP.PFREE.MIN.WARN}' + value: '50' + description: 'The warning threshold of the minimum free swap.' + - macro: '{$SYSTEM.FUZZYTIME.MAX}' + value: 60s + description: 'The upper threshold for difference of system time.' + - macro: '{$SYSTEM.FUZZYTIME.MIN}' + value: 10s + description: 'The lower threshold for difference of system time. Used in recovery expression to avoid trigger flapping.' + - macro: '{$VFS.DEV.DEVNAME.MATCHES}' + value: .+ + description: 'Used for block device discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + value: '^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)' + description: 'Used for block device discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.READ.AWAIT.WARN}' + value: '20' + description: 'The average response time (in ms) of disk read before the trigger fires.' + - macro: '{$VFS.DEV.WRITE.AWAIT.WARN}' + value: '20' + description: 'The average response time (in ms) of disk write before the trigger fires.' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: c689ad3115fd46a4b927d1f70ee2e5a4 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + - type: STRING + name: reference + value: AAAEC + - uuid: 14aa11c326a54ec390d4c209d30cc741 + name: 'Network interfaces' + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: 'Interface {#IFNAME}: Network traffic' + - type: STRING + name: reference + value: AAAAJ + - uuid: e9ca2f8e715f428b8edc0129aa0c79de + name: 'System performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: 'Linux: System load' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: 'Linux: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEA + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: '{#DEVNAME}: Disk read/write rates' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: '{#DEVNAME}: Disk average waiting time' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + 'y': '25' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: '{#DEVNAME}: Disk utilization and queue' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + 'y': '30' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: 'Interface {#IFNAME}: Network traffic' + - type: STRING + name: reference + value: AAAAI + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: 'Linux: CPU usage' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Zabbix agent' + name: 'Linux: Swap usage' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 8c048c6cca8248f2860c208e8db0f59e + name: ifOperStatus + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: notpresent + - value: '2' + newvalue: down + - value: '3' + newvalue: lowerlayerdown + - value: '4' + newvalue: testing + - value: '5' + newvalue: dormant + - value: '6' + newvalue: up + - uuid: 044df261808442a8af9e5cda0acaa6a5 + name: 'Linux::Interface protocol types' + mappings: + - value: '0' + newvalue: 'from KA9Q: NET/ROM pseudo' + - value: '1' + newvalue: Ethernet + - value: '2' + newvalue: 'Experimental Ethernet' + - value: '3' + newvalue: 'AX.25 Level 2' + - value: '4' + newvalue: 'PROnet token ring' + - value: '5' + newvalue: Chaosnet + - value: '6' + newvalue: 'IEEE 802.2 Ethernet/TR/TB' + - value: '7' + newvalue: ARCnet + - value: '8' + newvalue: APPLEtalk + - value: '15' + newvalue: 'Frame Relay DLCI' + - value: '19' + newvalue: ATM + - value: '23' + newvalue: 'Metricom STRIP (new IANA id)' + - value: '24' + newvalue: 'IEEE 1394 IPv4 - RFC 2734' + - value: '27' + newvalue: EUI-64 + - value: '32' + newvalue: InfiniBand + - value: '256' + newvalue: ARPHRD_SLIP + - value: '257' + newvalue: ARPHRD_CSLIP + - value: '258' + newvalue: ARPHRD_SLIP6 + - value: '259' + newvalue: ARPHRD_CSLIP6 + - value: '260' + newvalue: 'Notional KISS type' + - value: '264' + newvalue: ARPHRD_ADAPT + - value: '270' + newvalue: ARPHRD_ROSE + - value: '271' + newvalue: 'CCITT X.25' + - value: '272' + newvalue: 'Boards with X.25 in firmware' + - value: '280' + newvalue: 'Controller Area Network' + - value: '512' + newvalue: ARPHRD_PPP + - value: '513' + newvalue: 'Cisco HDLC' + - value: '516' + newvalue: LAPB + - value: '517' + newvalue: 'Digital''s DDCMP protocol' + - value: '518' + newvalue: 'Raw HDLC' + - value: '519' + newvalue: 'Raw IP' + - value: '768' + newvalue: 'IPIP tunnel' + - value: '769' + newvalue: 'IP6IP6 tunnel' + - value: '770' + newvalue: 'Frame Relay Access Device' + - value: '771' + newvalue: 'SKIP vif' + - value: '772' + newvalue: 'Loopback device' + - value: '773' + newvalue: 'Localtalk device' + - value: '774' + newvalue: 'Fiber Distributed Data Interface' + - value: '775' + newvalue: 'AP1000 BIF' + - value: '776' + newvalue: 'sit0 device - IPv6-in-IPv4' + - value: '777' + newvalue: 'IP over DDP tunneller' + - value: '778' + newvalue: 'GRE over IP' + - value: '779' + newvalue: 'PIMSM register interface' + - value: '780' + newvalue: 'High Performance Parallel Interface' + - value: '781' + newvalue: 'Nexus 64Mbps Ash' + - value: '782' + newvalue: 'Acorn Econet' + - value: '783' + newvalue: Linux-IrDA + - value: '784' + newvalue: 'Point to point fibrechannel' + - value: '785' + newvalue: 'Fibrechannel arbitrated loop' + - value: '786' + newvalue: 'Fibrechannel public loop' + - value: '787' + newvalue: 'Fibrechannel fabric' + - value: '800' + newvalue: 'Magic type ident for TR' + - value: '801' + newvalue: 'IEEE 802.11' + - value: '802' + newvalue: 'IEEE 802.11 + Prism2 header' + - value: '803' + newvalue: 'IEEE 802.11 + radiotap header' + - value: '804' + newvalue: ARPHRD_IEEE802154 + - value: '805' + newvalue: 'IEEE 802.15.4 network monitor' + - value: '820' + newvalue: 'PhoNet media type' + - value: '821' + newvalue: 'PhoNet pipe header' + - value: '822' + newvalue: 'CAIF media type' + - value: '823' + newvalue: 'GRE over IPv6' + - value: '824' + newvalue: 'Netlink header' + - value: '825' + newvalue: 'IPv6 over LoWPAN' + - value: '826' + newvalue: 'Vsock monitor header' + - uuid: 5488e5d78d704b78aee60c60414ce0c3 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 64faba3a883241a88da8833970ac3ab0 + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up + triggers: + - uuid: ae5269e17d434927bfd6edc09a9a1f4d + expression: 'last(/Linux by Zabbix agent/proc.num)/last(/Linux by Zabbix agent/kernel.maxproc)*100>80' + name: 'Linux: Getting closer to process limit' + event_name: 'Linux: Getting closer to process limit (over 80% used)' + opdata: '{ITEM.LASTVALUE1} active, {ITEM.LASTVALUE2} limit.' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: f49fc01c5ac945d59455563bdbcc6469 + expression: 'max(/Linux by Zabbix agent/system.swap.size[,pfree],5m)<{$SWAP.PFREE.MIN.WARN} and last(/Linux by Zabbix agent/system.swap.size[,total])>0' + name: 'Linux: High swap space usage' + event_name: 'Linux: High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)' + opdata: 'Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'If there is no swap configured, this trigger is ignored.' + dependencies: + - name: 'Linux: High memory utilization' + expression: 'min(/Linux by Zabbix agent/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + - name: 'Linux: Lack of available memory' + expression: 'max(/Linux by Zabbix agent/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent/vm.memory.size[total])>0' + tags: + - tag: scope + value: capacity + - uuid: 686470cef97f48f6b017e9fc7a078afe + expression: 'max(/Linux by Zabbix agent/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent/vm.memory.size[total])>0' + name: 'Linux: Lack of available memory' + event_name: 'Linux: Lack of available memory (<{$MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})' + opdata: 'Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The system is running out of memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 695f0c352377409d95aca3fe76d1cae2 + expression: | + min(/Linux by Zabbix agent/system.cpu.load[all,avg1],5m)/last(/Linux by Zabbix agent/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN} + and last(/Linux by Zabbix agent/system.cpu.load[all,avg5])>0 + and last(/Linux by Zabbix agent/system.cpu.load[all,avg15])>0 + name: 'Linux: Load average is too high' + event_name: 'Linux: Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)' + opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The load average per CPU is too high. The system may be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graphs: + - uuid: 4a72646168d545c398c92e09c975a966 + name: 'Linux: CPU jumps' + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: system.cpu.switches + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Zabbix agent' + key: system.cpu.intr + - uuid: f217c30162b24c9190785fad1ec83b73 + name: 'Linux: CPU usage' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.util[,system]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.util[,user]' + - sortorder: '2' + color: 00611C + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.util[,nice]' + - sortorder: '3' + color: F7941D + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.util[,iowait]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.util[,steal]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.util[,interrupt]' + - sortorder: '6' + color: C7A72D + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.util[,softirq]' + - sortorder: '7' + color: BA2A5D + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.util[,guest]' + - sortorder: '8' + color: F230E0 + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.util[,guest_nice]' + - uuid: 668ae470ea33444bb40e3b83b97659c3 + name: 'Linux: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: system.cpu.util + - uuid: f260a63bc3b04c3b80b47f83bb05ed9c + name: 'Linux: Memory usage' + ymin_type_1: FIXED + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: 'vm.memory.size[total]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Zabbix agent' + key: 'vm.memory.size[available]' + - uuid: bac7a8fb7e014696b54d262bf40e5b12 + name: 'Linux: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: vm.memory.util + - uuid: fa49531c9c3d4087b2205bed6ed0469f + name: 'Linux: Processes' + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: proc.num + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Zabbix agent' + key: 'proc.num[,,run]' + - uuid: 1ca6e2d883114853bd402110c3fd211e + name: 'Linux: Swap usage' + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: 'system.swap.size[,free]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Zabbix agent' + key: 'system.swap.size[,total]' + - uuid: 1b8cc9470a5040d79090a3e5dfcb0a76 + name: 'Linux: System load' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.load[all,avg1]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.load[all,avg5]' + - sortorder: '2' + color: 00611C + item: + host: 'Linux by Zabbix agent' + key: 'system.cpu.load[all,avg15]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent' + key: system.cpu.num diff --git a/Linux_by_Zabbix_agent_active.yaml b/Linux_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..519e7df --- /dev/null +++ b/Linux_by_Zabbix_agent_active.yaml @@ -0,0 +1,2208 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: e2307c94f1744af7a8f1f458a67af424 + template: 'Linux by Zabbix agent active' + name: 'Linux by Zabbix agent active' + description: | + This is an official Linux template. It requires Zabbix agent 7.0 or newer. + + Notes on filesystem (FS) discovery: + - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default. + - BTRFS allocates a default of 10% of the volume for its own needs. + - To mitigate potential disasters, FS usage triggers are based on the maximum available space. + - Utilization formula: 'pused = 100 - 100 * (available / total - free + available)' + - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387225-discussion-thread-for-official-zabbix-template-for-linux + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: a31cfdf92de04535adb957e0c72f54bd + name: 'Host name of Zabbix agent running' + type: ZABBIX_ACTIVE + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 7c266646bfa843dabfe4ba5a3fd9026e + name: 'Zabbix agent ping' + type: ZABBIX_ACTIVE + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + triggers: + - uuid: c1b9fdbe6a584d2cb25ff7077c667af1 + expression: 'nodata(/Linux by Zabbix agent active/agent.ping,{$AGENT.NODATA_TIMEOUT})=1' + name: 'Linux: Zabbix agent is not available' + event_name: 'Linux: Zabbix agent is not available (or nodata for {$AGENT.NODATA_TIMEOUT})' + priority: AVERAGE + description: 'For active agents, `nodata()` with `agent.ping` is used with `{$AGENT.NODATA_TIMEOUT}` as a time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 91dbe302bd8e4954b91e9ce3a795b4eb + name: 'Version of Zabbix agent running' + type: ZABBIX_ACTIVE + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: 66ed2ffc888c40c6b80dcc259c087d08 + name: 'Maximum number of open file descriptors' + type: ZABBIX_ACTIVE + key: kernel.maxfiles + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a7716b62422243b991a2697752d7cb1f + expression: 'last(/Linux by Zabbix agent active/kernel.maxfiles)<{$KERNEL.MAXFILES.MIN}' + name: 'Linux: Configured max number of open filedescriptors is too low' + event_name: 'Linux: Configured max number of open filedescriptors is too low (< {$KERNEL.MAXFILES.MIN})' + priority: INFO + tags: + - tag: scope + value: performance + - uuid: d60cc4367893424d9671b1f05ba83599 + name: 'Maximum number of processes' + type: ZABBIX_ACTIVE + key: kernel.maxproc + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 740ed348fb1d41dca7c410123b668a48 + expression: 'last(/Linux by Zabbix agent active/kernel.maxproc)<{$KERNEL.MAXPROC.MIN}' + name: 'Linux: Configured max number of processes is too low' + event_name: 'Linux: Configured max number of processes is too low (< {$KERNEL.MAXPROC.MIN})' + priority: INFO + dependencies: + - name: 'Linux: Getting closer to process limit' + expression: 'last(/Linux by Zabbix agent active/proc.num)/last(/Linux by Zabbix agent active/kernel.maxproc)*100>80' + tags: + - tag: scope + value: performance + - uuid: ccb6fdbe1267475780e978c0c5de986c + name: 'Number of processes' + type: ZABBIX_ACTIVE + key: proc.num + tags: + - tag: component + value: system + - uuid: 436bf5615731425a97fdcdbaac5f4000 + name: 'Number of running processes' + type: ZABBIX_ACTIVE + key: 'proc.num[,,run]' + tags: + - tag: component + value: system + - uuid: 42bb6cbed08a4884a99328b38e4c1654 + name: 'System boot time' + type: ZABBIX_ACTIVE + key: system.boottime + delay: 15m + units: unixtime + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 0a2218b9d9124c7284962f84bdefaab8 + name: 'Interrupts per second' + type: ZABBIX_ACTIVE + key: system.cpu.intr + value_type: FLOAT + description: 'Number of interrupts processed.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: c692df07acc44b4ea1f4f88cd4ee64eb + name: 'Load average (1m avg)' + type: ZABBIX_ACTIVE + key: 'system.cpu.load[all,avg1]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 18862acd219e4259a9b9665c32550fa5 + name: 'Load average (5m avg)' + type: ZABBIX_ACTIVE + key: 'system.cpu.load[all,avg5]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 61040b6d85df4a2087e562f0216e723d + name: 'Load average (15m avg)' + type: ZABBIX_ACTIVE + key: 'system.cpu.load[all,avg15]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 6e98a6a53c1a44c09b5e3c19971b834c + name: 'Number of CPUs' + type: ZABBIX_ACTIVE + key: system.cpu.num + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: cpu + - uuid: 47e3a1d3955d4bccb07a0e32f768273d + name: 'Context switches per second' + type: ZABBIX_ACTIVE + key: system.cpu.switches + value_type: FLOAT + description: 'The combined rate at which all processors on the computer are switched from one thread to another.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: 9cb786aec7de4f749f33c6e5adfbaf75 + name: 'CPU utilization' + type: DEPENDENT + key: system.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU utilization expressed in %.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100 - value)' + master_item: + key: 'system.cpu.util[,idle]' + tags: + - tag: component + value: cpu + triggers: + - uuid: e299778a6fcc4805bd5806f3b2ffe1c2 + expression: 'min(/Linux by Zabbix agent active/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + name: 'Linux: High CPU utilization' + event_name: 'Linux: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + dependencies: + - name: 'Linux: Load average is too high' + expression: | + min(/Linux by Zabbix agent active/system.cpu.load[all,avg1],5m)/last(/Linux by Zabbix agent active/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN} + and last(/Linux by Zabbix agent active/system.cpu.load[all,avg5])>0 + and last(/Linux by Zabbix agent active/system.cpu.load[all,avg15])>0 + tags: + - tag: scope + value: performance + - uuid: 4ef463cc12da45e6b5a97cee93fd5ba0 + name: 'CPU guest time' + type: ZABBIX_ACTIVE + key: 'system.cpu.util[,guest]' + value_type: FLOAT + units: '%' + description: 'Time spent on running a virtual CPU for a guest operating system.' + tags: + - tag: component + value: cpu + - uuid: 0cb7f1c9774241968208724ab56f4d86 + name: 'CPU guest nice time' + type: ZABBIX_ACTIVE + key: 'system.cpu.util[,guest_nice]' + value_type: FLOAT + units: '%' + description: 'Time spent on running a niced guest (a virtual CPU for guest operating systems under the control of the Linux kernel).' + tags: + - tag: component + value: cpu + - uuid: 8a20c7edef6d449e8771ff57cebb87d8 + name: 'CPU idle time' + type: ZABBIX_ACTIVE + key: 'system.cpu.util[,idle]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent doing nothing.' + tags: + - tag: component + value: cpu + - uuid: 9329b55874bb4de7a52f941f382ba9ce + name: 'CPU interrupt time' + type: ZABBIX_ACTIVE + key: 'system.cpu.util[,interrupt]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent servicing hardware interrupts.' + tags: + - tag: component + value: cpu + - uuid: 4859bb1b6e21469a917aa56fbfbe1698 + name: 'CPU iowait time' + type: ZABBIX_ACTIVE + key: 'system.cpu.util[,iowait]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has been waiting for I/O to complete.' + tags: + - tag: component + value: cpu + - uuid: d965fa68eea3454e83179116c5483322 + name: 'CPU nice time' + type: ZABBIX_ACTIVE + key: 'system.cpu.util[,nice]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that have been niced.' + tags: + - tag: component + value: cpu + - uuid: 2ff77e25f0fe45238c64a6532735cdd5 + name: 'CPU softirq time' + type: ZABBIX_ACTIVE + key: 'system.cpu.util[,softirq]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has been servicing software interrupts.' + tags: + - tag: component + value: cpu + - uuid: 434c154ba392476f9ad8a94968840e19 + name: 'CPU steal time' + type: ZABBIX_ACTIVE + key: 'system.cpu.util[,steal]' + value_type: FLOAT + units: '%' + description: 'The amount of "stolen" CPU from this virtual machine by the hypervisor for other tasks, such as running another virtual machine.' + tags: + - tag: component + value: cpu + - uuid: 75622323ae4447e8a21a04ef191fdc2d + name: 'CPU system time' + type: ZABBIX_ACTIVE + key: 'system.cpu.util[,system]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running the kernel and its processes.' + tags: + - tag: component + value: cpu + - uuid: c74b64926aae4a8e8c2299d8bfe2e188 + name: 'CPU user time' + type: ZABBIX_ACTIVE + key: 'system.cpu.util[,user]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that are not niced.' + tags: + - tag: component + value: cpu + - uuid: fdf4eb1b98d04b229a1c9a3c0b5837ba + name: 'System name' + type: ZABBIX_ACTIVE + key: system.hostname + delay: 1h + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: c2fc80044fa94f0d97c72bd1d749b731 + expression: 'change(/Linux by Zabbix agent active/system.hostname) and length(last(/Linux by Zabbix agent active/system.hostname))>0' + name: 'Linux: System name has changed' + event_name: 'Linux: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: c8fa467600ab48ce8cec353bab6c3a54 + name: 'System local time' + type: ZABBIX_ACTIVE + key: system.localtime + units: unixtime + description: 'The local system time of the host.' + tags: + - tag: component + value: system + - uuid: 627cbcb2432a4aeda6e90363d9b0c1db + name: 'Operating system architecture' + type: ZABBIX_ACTIVE + key: system.sw.arch + delay: 1h + value_type: CHAR + trends: '0' + description: 'The architecture of the operating system.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + - uuid: d8c633f2fd1947028079a5939835dcd8 + name: 'Operating system' + type: ZABBIX_ACTIVE + key: system.sw.os + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: e27cb7063ca841a2b78aa547ec0d001c + expression: 'change(/Linux by Zabbix agent active/system.sw.os) and length(last(/Linux by Zabbix agent active/system.sw.os))>0' + name: 'Linux: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Linux: System name has changed' + expression: 'change(/Linux by Zabbix agent active/system.hostname) and length(last(/Linux by Zabbix agent active/system.hostname))>0' + tags: + - tag: scope + value: notice + - uuid: 16b1e5ab950040ef8c29139e0649d622 + name: 'Number of installed packages' + type: ZABBIX_ACTIVE + key: system.sw.packages.get + delay: 1h + preprocessing: + - type: JSONPATH + parameters: + - $.length() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: os + triggers: + - uuid: bd57d37531ac48f5b96a9f45453f3c35 + expression: 'change(/Linux by Zabbix agent active/system.sw.packages.get)<>0' + name: 'Linux: Number of installed packages has been changed' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f08e1de57cbd4b08b9fd3294d0d95906 + name: 'Free swap space' + type: ZABBIX_ACTIVE + key: 'system.swap.size[,free]' + units: B + description: 'The free space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 56b8f84d22264b92b70a6ab0c3c70f19 + name: 'Free swap space in %' + type: ZABBIX_ACTIVE + key: 'system.swap.size[,pfree]' + value_type: FLOAT + units: '%' + description: 'The free space of the swap volume/file expressed in %.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 3a9fb924ab1d47168ffcab9d237d808a + name: 'Total swap space' + type: ZABBIX_ACTIVE + key: 'system.swap.size[,total]' + units: B + description: 'The total space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: d3d73dcc92b34511971eddf956dc4c0f + name: 'System description' + type: ZABBIX_ACTIVE + key: system.uname + delay: 15m + value_type: CHAR + trends: '0' + description: 'The information as normally returned by `uname -a`.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 51bdea745e0547ad92a74fefaea54e39 + name: 'System uptime' + type: ZABBIX_ACTIVE + key: system.uptime + delay: 30s + trends: '0' + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + tags: + - tag: component + value: system + triggers: + - uuid: 64dbab85caf749f59f3da0c374746bc2 + expression: 'last(/Linux by Zabbix agent active/system.uptime)<10m' + name: 'Linux: {HOST.NAME} has been restarted' + event_name: 'Linux: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'The host uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4ea1cfb5813a422b98caebcd870959ef + name: 'Number of logged in users' + type: ZABBIX_ACTIVE + key: system.users.num + description: 'The number of users who are currently logged in.' + tags: + - tag: component + value: environment + - uuid: 87f35de24ba74a8d8f70430c8da85261 + name: 'Checksum of /etc/passwd' + type: ZABBIX_ACTIVE + key: 'vfs.file.cksum[/etc/passwd,sha256]' + delay: 15m + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: security + triggers: + - uuid: c5a76894508c4f0e9dcc9f70e6f39f49 + expression: 'last(/Linux by Zabbix agent active/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/Linux by Zabbix agent active/vfs.file.cksum[/etc/passwd,sha256],#2)' + name: 'Linux: /etc/passwd has been changed' + priority: INFO + manual_close: 'YES' + dependencies: + - name: 'Linux: Operating system description has changed' + expression: 'change(/Linux by Zabbix agent active/system.sw.os) and length(last(/Linux by Zabbix agent active/system.sw.os))>0' + - name: 'Linux: System name has changed' + expression: 'change(/Linux by Zabbix agent active/system.hostname) and length(last(/Linux by Zabbix agent active/system.hostname))>0' + tags: + - tag: scope + value: security + - uuid: 6c1de983421846c9acef8f465ff2f196 + name: 'Get filesystems' + type: ZABBIX_ACTIVE + key: vfs.fs.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.' + tags: + - tag: component + value: raw + - uuid: 5bf94ec3debc459fa3e13449199052ee + name: 'Available memory' + type: ZABBIX_ACTIVE + key: 'vm.memory.size[available]' + units: B + description: | + The available memory: + - in Linux = free + buffers + cache; + - on other platforms calculation may vary. + + See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item. + tags: + - tag: component + value: memory + - uuid: 99efd95a41b34457a2ec0d8c96324e7c + name: 'Available memory in %' + type: ZABBIX_ACTIVE + key: 'vm.memory.size[pavailable]' + value_type: FLOAT + units: '%' + description: 'The available memory as percentage of the total. See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item.' + tags: + - tag: component + value: memory + - uuid: 013fe8b15c86442eadc10763706ec594 + name: 'Total memory' + type: ZABBIX_ACTIVE + key: 'vm.memory.size[total]' + units: B + description: 'Total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 07e60e812d32443ba8e8b0eb27166b98 + name: 'Memory utilization' + type: DEPENDENT + key: vm.memory.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of used memory is calculated as `100-pavailable`.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100-value);' + master_item: + key: 'vm.memory.size[pavailable]' + tags: + - tag: component + value: memory + triggers: + - uuid: fb368aa704064a44b9a4ed8c129cf3e8 + expression: 'min(/Linux by Zabbix agent active/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + name: 'Linux: High memory utilization' + event_name: 'Linux: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + dependencies: + - name: 'Linux: Lack of available memory' + expression: 'max(/Linux by Zabbix agent active/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent active/vm.memory.size[total])>0' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 090fb1a5698e4e7080abf379b377b6f5 + name: 'Active agent availability' + type: INTERNAL + key: 'zabbix[host,active_agent,available]' + description: | + Availability of active checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - unknown + 1 - available + 2 - not available + valuemap: + name: zabbix.host.active_agent.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a022259fc3cf454f93bc82cca27391f1 + expression: 'min(/Linux by Zabbix agent active/zabbix[host,active_agent,available],{$AGENT.TIMEOUT})=2' + name: 'Linux: Active checks are not available' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Active checks are considered unavailable. Agent has not sent a heartbeat for a prolonged time.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 0b47631fb1334f78a7fe5207194a5476 + name: 'Network interface discovery' + type: ZABBIX_ACTIVE + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: A + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'The discovery of network interfaces.' + item_prototypes: + - uuid: f1a4f18b78754e669d1ddc593765f2e4 + name: 'Interface {#IFNAME}: Inbound packets discarded' + type: ZABBIX_ACTIVE + key: 'net.if.in["{#IFNAME}",dropped]' + delay: 3m + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f0eb218780ce44128117d73d65d412a9 + name: 'Interface {#IFNAME}: Inbound packets with errors' + type: ZABBIX_ACTIVE + key: 'net.if.in["{#IFNAME}",errors]' + delay: 3m + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 37dd13afa2b84b0e906a80016b9b2bf5 + name: 'Interface {#IFNAME}: Bits received' + type: ZABBIX_ACTIVE + key: 'net.if.in["{#IFNAME}"]' + delay: 3m + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 12a56bb72eef43648293ce1d6c8f9c42 + name: 'Interface {#IFNAME}: Outbound packets discarded' + type: ZABBIX_ACTIVE + key: 'net.if.out["{#IFNAME}",dropped]' + delay: 3m + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 90362d020e82429d87b0b1688355831d + name: 'Interface {#IFNAME}: Outbound packets with errors' + type: ZABBIX_ACTIVE + key: 'net.if.out["{#IFNAME}",errors]' + delay: 3m + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 63616a66fb5e4fd7a725c5186b47e516 + name: 'Interface {#IFNAME}: Bits sent' + type: ZABBIX_ACTIVE + key: 'net.if.out["{#IFNAME}"]' + delay: 3m + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 83b33479fd774915b100b69c527519c8 + name: 'Interface {#IFNAME}: Operational status' + type: ZABBIX_ACTIVE + key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"]' + trends: '0' + description: 'Reference: https://www.kernel.org/doc/Documentation/networking/operstates.txt' + valuemap: + name: ifOperStatus + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var newvalue; + switch(value) { + case "unknown": + newvalue = 0; + break; + case "notpresent": + newvalue = 1; + break; + case "down": + newvalue = 2; + break; + case "lowerlayerdown": + newvalue = 3; + break; + case "testing": + newvalue = 4; + break; + case "dormant": + newvalue = 5; + break; + case "up": + newvalue = 6; + break; default: + newvalue = "Problem parsing interface operstate in JS"; + } + return newvalue; + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1b8e42925e1b48969f35d91800fe5229 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Linux: Interface {#IFNAME}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 86dd61015ecc43428803b309bdfa9691 + name: 'Interface {#IFNAME}: Speed' + type: ZABBIX_ACTIVE + key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]' + delay: 5m + trends: '0' + units: bps + description: | + It indicates the latest or current speed value of the interface. The value is an integer representing the link speed expressed in bits/sec. + This attribute is only valid for the interfaces that implement the ethtool `get_link_ksettings` method (mostly Ethernet). + + Reference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e675114e23414b9dbc2d19d00f32bc70 + name: 'Interface {#IFNAME}: Interface type' + type: ZABBIX_ACTIVE + key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/type"]' + delay: 1h + trends: '0' + description: | + It indicates the interface protocol type as a decimal value. + See `include/uapi/linux/if_arp.h` for all possible values. + Reference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net + valuemap: + name: 'Linux::Interface protocol types' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c0fd4630351f424aa6c8b7f2e85f0f9e + expression: | + change(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])<0 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0 + and + (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/type"])=6 or last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/type"])=1) + and + (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"],#2)>0) or + (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2) + name: 'Linux: Interface {#IFNAME}: Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))' + recovery_expression: 'last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 5370cb085c454077a2dd6c39890f706a + expression: | + (avg(/Linux by Zabbix agent active/net.if.in["{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]) or + avg(/Linux by Zabbix agent active/net.if.out["{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])) and + last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Linux by Zabbix agent active/net.if.in["{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]) and + avg(/Linux by Zabbix agent active/net.if.out["{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]) + name: 'Linux: Interface {#IFNAME}: High bandwidth usage' + event_name: 'Linux: Interface {#IFNAME}: High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))' + recovery_expression: 'last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 58f4ba4b2795407896752da57462629d + expression: | + min(/Linux by Zabbix agent active/net.if.in["{#IFNAME}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Linux by Zabbix agent active/net.if.out["{#IFNAME}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Linux by Zabbix agent active/net.if.in["{#IFNAME}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Linux by Zabbix agent active/net.if.out["{#IFNAME}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Linux: Interface {#IFNAME}: High error rate' + event_name: 'Linux: Interface {#IFNAME}: High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Linux: Interface {#IFNAME}: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))' + recovery_expression: 'last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 6e2814a0ef824df7b418bbd86b260181 + name: 'Interface {#IFNAME}: Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: 'net.if.in["{#IFNAME}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Linux by Zabbix agent active' + key: 'net.if.out["{#IFNAME}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent active' + key: 'net.if.out["{#IFNAME}",errors]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent active' + key: 'net.if.in["{#IFNAME}",errors]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent active' + key: 'net.if.out["{#IFNAME}",dropped]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent active' + key: 'net.if.in["{#IFNAME}",dropped]' + - uuid: ff825e7028c24138a7ea6625353a1790 + name: 'Block devices discovery' + type: ZABBIX_ACTIVE + key: vfs.dev.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.MATCHES}' + formulaid: A + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#DEVTYPE}' + value: disk + formulaid: C + item_prototypes: + - uuid: 9a0448cf8a184d52a7872df410f25d6b + name: '{#DEVNAME}: Disk average queue size (avgqu-sz)' + type: DEPENDENT + key: 'vfs.dev.queue_size[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + description: 'The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.' + preprocessing: + - type: JSONPATH + parameters: + - '$[10]' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 1b3559f0d90948f0a72c2fdfdc80930b + name: '{#DEVNAME}: Disk read request avg waiting time (r_await)' + type: CALCULATED + key: 'vfs.dev.read.await[{#DEVNAME}]' + value_type: FLOAT + units: '!ms' + params: '(last(//vfs.dev.read.time.rate[{#DEVNAME}])/(last(//vfs.dev.read.rate[{#DEVNAME}])+(last(//vfs.dev.read.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.read.rate[{#DEVNAME}]) > 0)' + description: 'This formula contains two Boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 3bb5f84b2e954c28843fa1fb3898c034 + name: '{#DEVNAME}: Disk read rate' + type: DEPENDENT + key: 'vfs.dev.read.rate[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: 'r/s (read operations per second) - the number (after merges) of read requests completed per second for the device.' + preprocessing: + - type: JSONPATH + parameters: + - '$[0]' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: df02934521b54864b2538b764c5d549b + name: '{#DEVNAME}: Disk read time (rate)' + type: DEPENDENT + key: 'vfs.dev.read.time.rate[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + description: 'The rate of total read time counter; used in `r_await` calculation.' + preprocessing: + - type: JSONPATH + parameters: + - '$[3]' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 72546bd5eefb4ac7a0b2992a25e5f0c5 + name: '{#DEVNAME}: Disk utilization' + type: DEPENDENT + key: 'vfs.dev.util[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of elapsed time during which the selected disk drive was busy while servicing read or write requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$[9]' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '0.1' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 8422c37735774134996be62580e7bf0f + name: '{#DEVNAME}: Disk write request avg waiting time (w_await)' + type: CALCULATED + key: 'vfs.dev.write.await[{#DEVNAME}]' + value_type: FLOAT + units: '!ms' + params: '(last(//vfs.dev.write.time.rate[{#DEVNAME}])/(last(//vfs.dev.write.rate[{#DEVNAME}])+(last(//vfs.dev.write.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.write.rate[{#DEVNAME}]) > 0)' + description: 'This formula contains two Boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 4ba78909402d4bb8ab32f12c679ea3db + name: '{#DEVNAME}: Disk write rate' + type: DEPENDENT + key: 'vfs.dev.write.rate[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: 'w/s (write operations per second) - the number (after merges) of write requests completed per second for the device.' + preprocessing: + - type: JSONPATH + parameters: + - '$[4]' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 7717dd9841004fa08b35b0e9f42bffaf + name: '{#DEVNAME}: Disk write time (rate)' + type: DEPENDENT + key: 'vfs.dev.write.time.rate[{#DEVNAME}]' + delay: '0' + value_type: FLOAT + description: 'The rate of total write time counter; used in `w_await` calculation.' + preprocessing: + - type: JSONPATH + parameters: + - '$[7]' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 39877664726f4886aa88f3d1592bbcb1 + name: '{#DEVNAME}: Get stats' + type: ZABBIX_ACTIVE + key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The contents of get `/sys/block/{#DEVNAME}/stat` to get the disk statistics.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value.trim().split(/ +/));' + tags: + - tag: component + value: raw + trigger_prototypes: + - uuid: fd5732c3cf5249f9a05e3b6cedc2d2fd + expression: 'min(/Linux by Zabbix agent active/vfs.dev.read.await[{#DEVNAME}],15m) > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} or min(/Linux by Zabbix agent active/vfs.dev.write.await[{#DEVNAME}],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}' + name: 'Linux: {#DEVNAME}: Disk read/write request responses are too high' + event_name: 'Linux: {#DEVNAME}: Disk read/write request responses are too high (read > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} ms for 15m or write > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"} ms for 15m)' + priority: WARNING + description: 'This trigger might indicate the disk `{#DEVNAME}` saturation.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: feca6a365b8d49d2a66ff4bfac089fc8 + name: '{#DEVNAME}: Disk average waiting time' + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: 'vfs.dev.read.await[{#DEVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Zabbix agent active' + key: 'vfs.dev.write.await[{#DEVNAME}]' + - uuid: b136583f822a4d48a52a17f4bb0d07d9 + name: '{#DEVNAME}: Disk read/write rates' + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: 'vfs.dev.read.rate[{#DEVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Zabbix agent active' + key: 'vfs.dev.write.rate[{#DEVNAME}]' + - uuid: 8863772fb82b49a891ea50cbec5cdd05 + name: '{#DEVNAME}: Disk utilization and queue' + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent active' + key: 'vfs.dev.queue_size[{#DEVNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Zabbix agent active' + key: 'vfs.dev.util[{#DEVNAME}]' + - uuid: 5c9b5dbed44c4af0957ff9316f8fb761 + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: vfs.fs.dependent.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'The discovery of mounted filesystems with different types.' + item_prototypes: + - uuid: 5cc9099851ee4f4498fd74ec2c377eb4 + name: 'FS [{#FSNAME}]: Inodes: Free, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free metadata space expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.inodes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 98e196ffb6f0422baf007fcff5f45b60 + expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'Linux: {#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: a17e14a65c53447a9ce607799a62e7dd + expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'Linux: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + dependencies: + - name: 'Linux: FS [{#FSNAME}]: Running out of free inodes' + expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 4c658024f34c49d7bd5f6ca9b33c13d7 + name: 'FS [{#FSNAME}]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + delay: '0' + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.free + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: b33989051217493cb9124302297e409f + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pused + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: cf4079132a9d4124aa5e29d6839ae35b + expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Space is critically low' + event_name: 'Linux: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: b56b8cad3bb34fab8132e07a32c432d9 + expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'Linux: FS [{#FSNAME}]: Space is low' + event_name: 'Linux: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'Linux: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 5cee504041e347719b35ee2c5a6056b8 + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + delay: '0' + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.total + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: f23970d301be4085ab9038d3078b3871 + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + delay: '0' + units: B + description: 'Used storage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.used + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 7eb5cb610b1e4c438af380383c75047f + name: 'FS [{#FSNAME}]: Get data' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},data]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Intermediate data of `{#FSNAME}` filesystem.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.fsname==''{#FSNAME}'')].first()' + master_item: + key: vfs.fs.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: e335d40e5d0e4e41b29f1b355018dd91 + name: 'FS [{#FSNAME}]: Option: Read-only' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},readonly]' + delay: '0' + description: 'The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.' + preprocessing: + - type: JSONPATH + parameters: + - $.options + error_handler: DISCARD_VALUE + - type: REGEX + parameters: + - '(?:^|,)ro\b' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 001c20d581824f0380244745ce0fae9e + expression: 'last(/Linux by Zabbix agent active/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/Linux by Zabbix agent active/vfs.fs.dependent[{#FSNAME},readonly])=1' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Linux by Zabbix agent active/vfs.fs.dependent[{#FSNAME},readonly])=0' + name: 'Linux: FS [{#FSNAME}]: Filesystem has become read-only' + priority: AVERAGE + description: 'The filesystem has become read-only, possibly due to an I/O error. Available only for Zabbix agents 6.4 and higher.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 7af98afdf5ad43c9b77dddbe4e68b84f + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'Linux by Zabbix agent active' + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + - uuid: 1c4fcab8d16440529fb3f2347cd04f51 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Linux by Zabbix agent active' + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Linux by Zabbix agent active' + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'Linux by Zabbix agent active' + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + master_item: + key: vfs.fs.get + lld_macro_paths: + - lld_macro: '{#FSNAME}' + path: $.fsname + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'fsname': filesystem.fsname, + 'fstype': filesystem.fstype + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Skip metadata collection for dynamic FS' + step: '1' + filter: + conditions: + - macro: '{#FSTYPE}' + value: ^(btrfs|zfs)$ + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Inodes + discover: NO_DISCOVER + tags: + - tag: class + value: os + - tag: target + value: linux + macros: + - macro: '{$AGENT.NODATA_TIMEOUT}' + value: 30m + description: 'No data timeout for active agents. Consider to keep it relatively high.' + - macro: '{$AGENT.TIMEOUT}' + value: 5m + description: 'Timeout after which agent is considered unavailable.' + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization expressed in %.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$KERNEL.MAXFILES.MIN}' + value: '256' + - macro: '{$KERNEL.MAXPROC.MIN}' + value: '1024' + - macro: '{$LOAD_AVG_PER_CPU.MAX.WARN}' + value: '1.5' + description: 'The CPU load per core is considered sustainable. If necessary, it can be tuned.' + - macro: '{$MEMORY.AVAILABLE.MIN}' + value: 20M + description: 'Used as a thresholdin the memory available trigger.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Used as a thresholdin the memory utilization trigger.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9A-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0` bridge by default.' + - macro: '{$SWAP.PFREE.MIN.WARN}' + value: '50' + description: 'The warning threshold of the minimum free swap.' + - macro: '{$VFS.DEV.DEVNAME.MATCHES}' + value: .+ + description: 'Used for block device discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + value: '^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)' + description: 'Used for block device discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.READ.AWAIT.WARN}' + value: '20' + description: 'The average response time (in ms) of disk read before the trigger fires.' + - macro: '{$VFS.DEV.WRITE.AWAIT.WARN}' + value: '20' + description: 'The average response time (in ms) of disk write before the trigger fires.' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: 9dca5f83cd664db1ba41b8751ce3d055 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + - type: STRING + name: reference + value: AAAEC + - uuid: 6d179c1f45c2438e9e6a3aa567d46b0c + name: 'Network interfaces' + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: 'Interface {#IFNAME}: Network traffic' + - type: STRING + name: reference + value: AAAAJ + - uuid: 3e6ceed431734cc29836019e93b5f89e + name: 'System performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: 'Linux: System load' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: 'Linux: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEA + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: '{#DEVNAME}: Disk read/write rates' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: '{#DEVNAME}: Disk average waiting time' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + 'y': '25' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: '{#DEVNAME}: Disk utilization and queue' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + 'y': '30' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: 'Interface {#IFNAME}: Network traffic' + - type: STRING + name: reference + value: AAAAI + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: 'Linux: CPU usage' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Linux by Zabbix agent active' + name: 'Linux: Swap usage' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 276914b5aee2435da609d3112ecd359d + name: ifOperStatus + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: notpresent + - value: '2' + newvalue: down + - value: '3' + newvalue: lowerlayerdown + - value: '4' + newvalue: testing + - value: '5' + newvalue: dormant + - value: '6' + newvalue: up + - uuid: 79afe98a54a648bb981c29e70ba6652c + name: 'Linux::Interface protocol types' + mappings: + - value: '0' + newvalue: 'from KA9Q: NET/ROM pseudo' + - value: '1' + newvalue: Ethernet + - value: '2' + newvalue: 'Experimental Ethernet' + - value: '3' + newvalue: 'AX.25 Level 2' + - value: '4' + newvalue: 'PROnet token ring' + - value: '5' + newvalue: Chaosnet + - value: '6' + newvalue: 'IEEE 802.2 Ethernet/TR/TB' + - value: '7' + newvalue: ARCnet + - value: '8' + newvalue: APPLEtalk + - value: '15' + newvalue: 'Frame Relay DLCI' + - value: '19' + newvalue: ATM + - value: '23' + newvalue: 'Metricom STRIP (new IANA id)' + - value: '24' + newvalue: 'IEEE 1394 IPv4 - RFC 2734' + - value: '27' + newvalue: EUI-64 + - value: '32' + newvalue: InfiniBand + - value: '256' + newvalue: ARPHRD_SLIP + - value: '257' + newvalue: ARPHRD_CSLIP + - value: '258' + newvalue: ARPHRD_SLIP6 + - value: '259' + newvalue: ARPHRD_CSLIP6 + - value: '260' + newvalue: 'Notional KISS type' + - value: '264' + newvalue: ARPHRD_ADAPT + - value: '270' + newvalue: ARPHRD_ROSE + - value: '271' + newvalue: 'CCITT X.25' + - value: '272' + newvalue: 'Boards with X.25 in firmware' + - value: '280' + newvalue: 'Controller Area Network' + - value: '512' + newvalue: ARPHRD_PPP + - value: '513' + newvalue: 'Cisco HDLC' + - value: '516' + newvalue: LAPB + - value: '517' + newvalue: 'Digital''s DDCMP protocol' + - value: '518' + newvalue: 'Raw HDLC' + - value: '519' + newvalue: 'Raw IP' + - value: '768' + newvalue: 'IPIP tunnel' + - value: '769' + newvalue: 'IP6IP6 tunnel' + - value: '770' + newvalue: 'Frame Relay Access Device' + - value: '771' + newvalue: 'SKIP vif' + - value: '772' + newvalue: 'Loopback device' + - value: '773' + newvalue: 'Localtalk device' + - value: '774' + newvalue: 'Fiber Distributed Data Interface' + - value: '775' + newvalue: 'AP1000 BIF' + - value: '776' + newvalue: 'sit0 device - IPv6-in-IPv4' + - value: '777' + newvalue: 'IP over DDP tunneller' + - value: '778' + newvalue: 'GRE over IP' + - value: '779' + newvalue: 'PIMSM register interface' + - value: '780' + newvalue: 'High Performance Parallel Interface' + - value: '781' + newvalue: 'Nexus 64Mbps Ash' + - value: '782' + newvalue: 'Acorn Econet' + - value: '783' + newvalue: Linux-IrDA + - value: '784' + newvalue: 'Point to point fibrechannel' + - value: '785' + newvalue: 'Fibrechannel arbitrated loop' + - value: '786' + newvalue: 'Fibrechannel public loop' + - value: '787' + newvalue: 'Fibrechannel fabric' + - value: '800' + newvalue: 'Magic type ident for TR' + - value: '801' + newvalue: 'IEEE 802.11' + - value: '802' + newvalue: 'IEEE 802.11 + Prism2 header' + - value: '803' + newvalue: 'IEEE 802.11 + radiotap header' + - value: '804' + newvalue: ARPHRD_IEEE802154 + - value: '805' + newvalue: 'IEEE 802.15.4 network monitor' + - value: '820' + newvalue: 'PhoNet media type' + - value: '821' + newvalue: 'PhoNet pipe header' + - value: '822' + newvalue: 'CAIF media type' + - value: '823' + newvalue: 'GRE over IPv6' + - value: '824' + newvalue: 'Netlink header' + - value: '825' + newvalue: 'IPv6 over LoWPAN' + - value: '826' + newvalue: 'Vsock monitor header' + - uuid: d4a5821461a243c9bf320ea58be1af23 + name: zabbix.host.active_agent.available + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: available + - value: '2' + newvalue: 'not available' + - uuid: e815d397c5e44f1791622fd598bc1131 + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up + triggers: + - uuid: fa21b02aebe143b192a20cd9403a68d0 + expression: 'last(/Linux by Zabbix agent active/proc.num)/last(/Linux by Zabbix agent active/kernel.maxproc)*100>80' + name: 'Linux: Getting closer to process limit' + event_name: 'Linux: Getting closer to process limit (over 80% used)' + opdata: '{ITEM.LASTVALUE1} active, {ITEM.LASTVALUE2} limit.' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 722692e0703e4609852439a9b751826d + expression: 'max(/Linux by Zabbix agent active/system.swap.size[,pfree],5m)<{$SWAP.PFREE.MIN.WARN} and last(/Linux by Zabbix agent active/system.swap.size[,total])>0' + name: 'Linux: High swap space usage' + event_name: 'Linux: High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)' + opdata: 'Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'If there is no swap configured, this trigger is ignored.' + dependencies: + - name: 'Linux: High memory utilization' + expression: 'min(/Linux by Zabbix agent active/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + - name: 'Linux: Lack of available memory' + expression: 'max(/Linux by Zabbix agent active/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent active/vm.memory.size[total])>0' + tags: + - tag: scope + value: capacity + - uuid: b3f51f3c63024d209fd01e17293127a6 + expression: 'max(/Linux by Zabbix agent active/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent active/vm.memory.size[total])>0' + name: 'Linux: Lack of available memory' + event_name: 'Linux: Lack of available memory (<{$MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})' + opdata: 'Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The system is running out of memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 72825a0c706043429ed1ff6656763052 + expression: | + min(/Linux by Zabbix agent active/system.cpu.load[all,avg1],5m)/last(/Linux by Zabbix agent active/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN} + and last(/Linux by Zabbix agent active/system.cpu.load[all,avg5])>0 + and last(/Linux by Zabbix agent active/system.cpu.load[all,avg15])>0 + name: 'Linux: Load average is too high' + event_name: 'Linux: Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)' + opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The load average per CPU is too high. The system may be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graphs: + - uuid: 2e4890b0db694721b1e903ecf01c612c + name: 'Linux: CPU jumps' + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: system.cpu.switches + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Zabbix agent active' + key: system.cpu.intr + - uuid: 27b4612871004ca282f7d91057150800 + name: 'Linux: CPU usage' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.util[,system]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.util[,user]' + - sortorder: '2' + color: 00611C + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.util[,nice]' + - sortorder: '3' + color: F7941D + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.util[,iowait]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.util[,steal]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.util[,interrupt]' + - sortorder: '6' + color: C7A72D + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.util[,softirq]' + - sortorder: '7' + color: BA2A5D + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.util[,guest]' + - sortorder: '8' + color: F230E0 + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.util[,guest_nice]' + - uuid: 3bebe4d0071441f4b95170fd0278a4dd + name: 'Linux: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: system.cpu.util + - uuid: a4d67a1cd253431faaedf888dad90e72 + name: 'Linux: Memory usage' + ymin_type_1: FIXED + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: 'vm.memory.size[total]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Linux by Zabbix agent active' + key: 'vm.memory.size[available]' + - uuid: 4aaf22daf96b4b29ad3a2e935f4e2d4c + name: 'Linux: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: vm.memory.util + - uuid: 60078a7b24494a41a3595650b113ee1d + name: 'Linux: Processes' + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: proc.num + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Zabbix agent active' + key: 'proc.num[,,run]' + - uuid: a70c0c13381a4fb68eaeb66226ffe2bb + name: 'Linux: Swap usage' + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: 'system.swap.size[,free]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Zabbix agent active' + key: 'system.swap.size[,total]' + - uuid: d47109e977ec4362a3f3bb5e7708b48a + name: 'Linux: System load' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.load[all,avg1]' + - sortorder: '1' + color: F63100 + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.load[all,avg5]' + - sortorder: '2' + color: 00611C + item: + host: 'Linux by Zabbix agent active' + key: 'system.cpu.load[all,avg15]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Linux by Zabbix agent active' + key: system.cpu.num diff --git a/MSSQL_by_ODBC.yaml b/MSSQL_by_ODBC.yaml new file mode 100644 index 0000000..0017dfe --- /dev/null +++ b/MSSQL_by_ODBC.yaml @@ -0,0 +1,5036 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 001a1677f6a949b6bddfdb2926023300 + template: 'MSSQL by ODBC' + name: 'MSSQL by ODBC' + description: | + This template is designed for the effortless deployment of MSSQL monitoring by Zabbix via ODBC and doesn't require any external scripts. + + Setup: + + 1. Create an MSSQL user for monitoring. + + View Server State and View Any Definition permissions should be granted to the user. + Grant this user read permissions to the sysjobschedules, sysjobhistory, and sysjobs tables. + + For more information, see MSSQL documentation: + + - Create a database user: https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/create-a-database-user?view=sql-server-ver16 + + - GRANT Server Permissions: https://docs.microsoft.com/en-us/sql/t-sql/statements/grant-server-permissions-transact-sql?view=sql-server-ver16 + + - Configure a User to Create and Manage SQL Server Agent Jobs: https://docs.microsoft.com/en-us/sql/ssms/agent/configure-a-user-to-create-and-manage-sql-server-agent-jobs?view=sql-server-ver16 + + 2. Set the user name and password in the host macros ({$MSSQL.USER} and {$MSSQL.PASSWORD}). + + 3. Do not forget to install Microsoft ODBC driver on Zabbix server or Zabbix proxy and specify data source name in macro {$MSSQL.DSN}. + + See Microsoft documentation for instructions: https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver16. + + Note! Credentials in the odbc.ini do not work for MSSQL. + + The "Service's TCP port state" item uses the {$MSSQL.HOST} and {$MSSQL.PORT} macros to check the availability of the MSSQL instance, change these if necessary. Keep in mind that if dynamic ports are used on the MSSQL server side, this check will not work correctly. + + If your instance uses a non-default TCP port, set the port in your section of odbc.ini in the line Server = IP or FQDN name, port. + + Note: You can use the context macros {$MSSQL.BACKUP_FULL.USED}, {$MSSQL.BACKUP_LOG.USED}, and {$MSSQL.BACKUP_DIFF.USED} to disable backup age triggers for a certain database. If set to a value other than "1", the trigger expression for the backup age will not fire. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-7 + groups: + - name: Templates/Databases + items: + - uuid: f495898e37c94bfda4ce387f7129b996 + name: 'Get availability groups' + type: ODBC + key: 'db.odbc.get[get_availability_group,"{$MSSQL.DSN}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT + ag.name as group_name, + ISNULL(ags.primary_recovery_health, 2) as primary_recovery_health, + ISNULL(ags.primary_replica, 'Unknown') as primary_replica, + ISNULL( + ags.secondary_recovery_health, 2 + ) as secondary_recovery_health, + ags.synchronization_health as synchronization_health + FROM + sys.dm_hadr_availability_group_states ags + JOIN sys.availability_groups ag ON ag.group_id = ags.group_id + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'The item gets availability group states - name, primary and secondary health, synchronization health.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 9c902b33ed254e1892e44218a67876d3 + name: 'Get database' + type: ODBC + key: 'db.odbc.get[get_database,"{$MSSQL.DSN}"]' + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT name as dbname, recovery_model + FROM sys.databases + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'Getting databases - database name and recovery model.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 9948ac27a2f84ba5a74ee0860d934f4e + name: 'Get DB mirroring' + type: ODBC + key: 'db.odbc.get[get_db_mirroring,"{$MSSQL.DSN}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT + ISNULL(m.mirroring_role, 0) as mirroring_role, + ISNULL(m.mirroring_role_sequence, 0) as mirroring_role_sequence, + ISNULL(m.mirroring_state, 7) as mirroring_state, + ISNULL(m.mirroring_witness_state, 3) as mirroring_witness_state, + ISNULL(m.mirroring_safety_level, 3) as mirroring_safety_level, + db_name(m.database_id) as dbname + FROM + sys.database_mirroring as m + WHERE + m.mirroring_state_desc IS NOT NULL + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'Getting DB mirroring.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: cae1f9b034b04357b038212b04cac794 + name: 'Get job status' + type: ODBC + key: 'db.odbc.get[get_job_status,"{$MSSQL.DSN}"]' + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT sj.name AS job_name, + sj.enabled AS enabled, + sjs.last_run_outcome AS run_status, + sjs.last_outcome_message AS last_run_status_message, + sjs.last_run_duration/10000*3600 + sjs.last_run_duration/100%100*60 + sjs.last_run_duration%100 AS run_duration, + CASE sjs.last_run_date + WHEN 0 THEN NULL + ELSE CONVERT( + VARCHAR(25), + TODATETIMEOFFSET(msdb.dbo.agent_datetime(sjs.last_run_date,sjs.last_run_time), DATEPART(TZoffset, SYSDATETIMEOFFSET())), + 126) + END AS last_run_date_time, + sja.next_scheduled_run_date AS next_run_date_time + FROM msdb..sysjobs AS sj + LEFT JOIN msdb..sysjobservers AS sjs + ON sj.job_id = sjs.job_id + LEFT JOIN ( + SELECT job.job_id, + max(act.session_id) AS s_id, + CONVERT( + VARCHAR(25), + TODATETIMEOFFSET(max(act.next_scheduled_run_date), DATEPART(TZoffset, SYSDATETIMEOFFSET())), + 126) AS next_scheduled_run_date + FROM msdb..sysjobs AS job + LEFT JOIN msdb..sysjobactivity AS act + ON act.job_id = job.job_id + GROUP BY job.job_id ) AS sja + ON sja.job_id = sj.job_id + WHERE Enabled = 1 + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'The item gets the SQL agent job status.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 9b106ca122fb4b75a761e80f4239f906 + name: 'Get last backup' + type: ODBC + key: 'db.odbc.get[get_last_backup,"{$MSSQL.DSN}"]' + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT bs.database_name as dbname, + [type], + DATEDIFF(SECOND, bs.backup_finish_date, getdate()) as time_since_last_backup, + (DATEDIFF(SECOND, bs.backup_start_date, bs.backup_finish_date)) as duration, + db.recovery_model as db_recovery_model + FROM msdb.dbo.backupset as bs + LEFT JOIN sys.databases as db ON bs.database_name = db.name + WHERE bs.database_name not in ( + SELECT AGDatabases.database_name AS Databasename + FROM sys.dm_hadr_availability_group_states States + INNER JOIN master.sys.availability_groups Groups + ON States.group_id = Groups.group_id + INNER JOIN sys.availability_databases_cluster AGDatabases + ON Groups.group_id = AGDatabases.group_id + WHERE primary_replica != @@Servername OR primary_replica is NULL + ) and db.name is not NULL + GROUP BY bs.database_name, + backup_finish_date, + [type], + backup_start_date, + db.recovery_model + HAVING backup_finish_date = ( + SELECT MAX(backup_finish_date) + FROM msdb.dbo.backupset + WHERE database_name = bs.database_name + AND bs.type = [type] + ) + ORDER BY bs.database_name + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'The item gets information about backup processes.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 3960ea4dc0054ee099d5bca005535e6b + name: 'Get local DB' + type: ODBC + key: 'db.odbc.get[get_local_db,"{$MSSQL.DSN}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT ag.name AS group_name, + drs.database_state as database_state, + drs.is_suspended as is_suspended, + drs.synchronization_health as synchronization_health, + arcs.replica_server_name AS replica_name, + db_name(drs.database_id) AS dbname, + drs.is_local + FROM sys.dm_hadr_database_replica_states drs + JOIN sys.dm_hadr_availability_replica_cluster_states arcs + ON arcs.replica_id = drs.replica_id + JOIN sys.availability_groups ag + ON ag.group_id = arcs.group_id + JOIN sys.dm_hadr_availability_replica_states ars + ON ars.replica_id = arcs.replica_id + WHERE drs.is_local = 1 + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'Getting the states of the local availability database.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: e4480bba876d472294920020734eadf5 + name: 'Get non-local DB' + type: ODBC + key: 'db.odbc.get[get_non_local_db,"{$MSSQL.DSN}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT ag.name AS group_name, + ISNULL(drs.log_send_queue_size, 0) as log_send_queue_size, + ISNULL(drs.redo_queue_size, 0) as redo_queue_size, + arcs.replica_server_name AS replica_name, + db_name(drs.database_id) AS dbname, + drs.is_local + FROM sys.dm_hadr_database_replica_states drs + JOIN sys.dm_hadr_availability_replica_cluster_states arcs + ON arcs.replica_id = drs.replica_id + JOIN sys.availability_groups ag + ON ag.group_id = arcs.group_id + JOIN sys.dm_hadr_availability_replica_states ars + ON ars.replica_id = arcs.replica_id + WHERE drs.is_local = 0 + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'Getting the non-local availability database.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 3fcb3b84bdee42428bedc39fcc582c9e + name: 'Get quorum' + type: ODBC + key: 'db.odbc.get[get_quorum,"{$MSSQL.DSN}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT quorum_type, quorum_state, cluster_name + FROM sys.dm_hadr_cluster + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'Getting quorum - cluster name, type, and state.' + timeout: 10s + tags: + - tag: component + value: raw + - uuid: 69a31cdfbf9b4099bf89adb26e8b9f06 + name: 'Get quorum member' + type: ODBC + key: 'db.odbc.get[get_quorum_member,"{$MSSQL.DSN}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT a.member_name, a.member_type, a.member_state, a.number_of_quorum_votes, b.cluster_name + FROM sys.dm_hadr_cluster_members a + CROSS JOIN sys.dm_hadr_cluster b + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'Getting quorum members - member name, type, state, and number of quorum votes.' + timeout: 10s + tags: + - tag: component + value: raw + - uuid: 7a82483c605d4e8eb67c2576069cf8a9 + name: 'Get replica' + type: ODBC + key: 'db.odbc.get[get_replica,"{$MSSQL.DSN}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT + ars.connected_state as connected_state, + ars.is_local as is_local, + arcs.join_state as join_state, + ISNULL(ars.operational_state, 6) as operational_state, + ISNULL(ars.recovery_health, 2) as recovery_health, + ars.role as role, + ars.synchronization_health as synchronization_health, + ag.name as group_name, + arcs.replica_server_name as replica_name + FROM + sys.dm_hadr_availability_replica_cluster_states as arcs + JOIN sys.availability_groups ag ON ag.group_id = arcs.group_id + JOIN sys.dm_hadr_availability_replica_states ars ON ars.replica_id = arcs.replica_id + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'Getting the database replica.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: ff07b83d161c4e0fbddf8c2e2c282258 + name: 'Get performance counters' + type: ODBC + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + delay: 0;m0-59 + history: '0' + value_type: TEXT + trends: '0' + params: | + DECLARE @SQLNAME NVARCHAR(22) + SET @SQLNAME = CASE WHEN @@SERVICENAME = 'MSSQLSERVER' THEN 'SQLServer' ELSE 'MSSQL$' + @@SERVICENAME END + SELECT object_name, + counter_name, + instance_name, + cntr_value + FROM sys.dm_os_performance_counters + UNION SELECT @SQLNAME AS object_name, + 'Version' AS counter_name, + @@version AS instance_name, + 0 AS cntr_value + UNION SELECT @SQLNAME AS object_name, + 'Uptime' AS counter_name, + '' AS instance_name, + DATEDIFF(second, sqlserver_start_time, GETDATE()) AS cntr_value + FROM sys.dm_os_sys_info + UNION SELECT @SQLNAME + ':Databases' AS object_name, + 'State' AS counter_name, + name AS instance_name, + state AS cntr_value + FROM sys.databases + UNION SELECT a.object_name, + 'BufferCacheHitRatio' AS counter_name, + '' AS instance_name, + cast(a.cntr_value * ISNULL((100.0 / NULLIF(b.cntr_value,0)),0) AS dec(3, 0)) AS cntr_value + FROM sys.dm_os_performance_counters a + JOIN ( + SELECT cntr_value, + OBJECT_NAME + FROM sys.dm_os_performance_counters + WHERE counter_name = 'Buffer cache hit ratio base' + AND OBJECT_NAME = @SQLNAME + ':Buffer Manager' + ) b + ON a.OBJECT_NAME = b.OBJECT_NAME + WHERE a.counter_name = 'Buffer cache hit ratio' + AND a.OBJECT_NAME = @SQLNAME + ':Buffer Manager' + UNION SELECT a.object_name, + 'WorktablesFromCacheRatio' AS counter_name, + '' AS instance_name, + cast(a.cntr_value * ISNULL((100.0 / NULLIF(b.cntr_value,0)),0) AS dec(3, 0)) AS cntr_value + FROM sys.dm_os_performance_counters a + JOIN ( + SELECT cntr_value, + OBJECT_NAME + FROM sys.dm_os_performance_counters + WHERE counter_name = 'Worktables From Cache Base' + AND OBJECT_NAME = @SQLNAME + ':Access Methods' + ) b + ON a.OBJECT_NAME = b.OBJECT_NAME + WHERE a.counter_name = 'Worktables From Cache Ratio' + AND a.OBJECT_NAME = @SQLNAME + ':Access Methods' + UNION SELECT a.object_name, + 'CacheHitRatio' AS counter_name, + '_Total' AS instance_name, + cast(a.cntr_value * ISNULL((100.0 / NULLIF(b.cntr_value,0)),0) AS dec(3, 0)) AS cntr_value + FROM sys.dm_os_performance_counters a + JOIN ( + SELECT cntr_value, + OBJECT_NAME + FROM sys.dm_os_performance_counters + WHERE counter_name = 'Cache Hit Ratio Base' + AND OBJECT_NAME = @SQLNAME + ':Plan Cache' + AND instance_name = '_Total' + ) b + ON a.OBJECT_NAME = b.OBJECT_NAME + WHERE a.counter_name = 'Cache Hit Ratio' + AND a.OBJECT_NAME = @SQLNAME + ':Plan Cache' + AND instance_name = '_Total' + username: '{$MSSQL.USER}' + password: '{$MSSQL.PASSWORD}' + description: 'The item gets server global status information.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: c0400032a74549078448a928f17d3128 + name: 'Get Access Methods counters' + type: DEPENDENT + key: mssql.access_methods.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server information about access methods.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Access Methods'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - uuid: 9a83826b50ac4928b9a716cf94ed6b61 + name: 'Auto-param attempts per second' + type: DEPENDENT + key: mssql.autoparam_attempts_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of auto-parameterization attempts per second. The total should be the sum of the failed, safe, and unsafe auto-parameterizations. Auto-parameterization occurs when an instance of SQL Server tries to parameterize a Transact-SQL request by replacing some literals with parameters so that reuse of the resulting cached execution plan across multiple similar-looking requests is possible. Note that auto-parameterizations are also known as simple parameterizations in the newer versions of SQL Server. This counter does not include forced parameterizations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Auto-Param Attempts/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: 1d49af2907d541719e4482439de3ef40 + name: 'Average latch wait time' + type: CALCULATED + key: mssql.average_latch_wait_time + delay: 0;m0-59s3 + value_type: FLOAT + units: ms + params: | + (last(//mssql.average_latch_wait_time_raw) - last(//mssql.average_latch_wait_time_raw,#2)) / + (last(//mssql.average_latch_wait_time_base) - last(//mssql.average_latch_wait_time_base,#2) + + (last(//mssql.average_latch_wait_time_base) - last(//mssql.average_latch_wait_time_base,#2)=0)) + description: 'Average latch wait time (in milliseconds) for latch requests that had to wait.' + tags: + - tag: component + value: wait-time + - uuid: f9d78cd9c941471287a24ca94005e9ac + name: 'Average latch wait time base' + type: DEPENDENT + key: mssql.average_latch_wait_time_base + delay: '0' + description: 'For internal use only.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Average Latch Wait Time Base'')].cntr_value.first()' + master_item: + key: mssql.latches_info.raw + tags: + - tag: component + value: wait-time + - uuid: 7248e70669674ef5a7a85deb20b1fe8e + name: 'Average latch wait time raw' + type: DEPENDENT + key: mssql.average_latch_wait_time_raw + delay: '0' + units: ms + description: 'Average latch wait time (in milliseconds) for latch requests that had to wait.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Average Latch Wait Time (ms)'')].cntr_value.first()' + master_item: + key: mssql.latches_info.raw + tags: + - tag: component + value: wait-time + - uuid: 2915866b5891480aafd73463aca88a21 + name: 'Total average wait time' + type: CALCULATED + key: mssql.average_wait_time + delay: 0;m0-59s3 + value_type: FLOAT + units: ms + params: | + (last(//mssql.average_wait_time_raw) - last(//mssql.average_wait_time_raw,#2)) / + (last(//mssql.average_wait_time_base) - last(//mssql.average_wait_time_base,#2) + + (last(//mssql.average_wait_time_base) - last(//mssql.average_wait_time_base,#2)=0)) + description: 'The average wait time, in milliseconds, for each lock request that had to wait.' + tags: + - tag: component + value: wait-time + triggers: + - uuid: fad2c1e9d0ba45bcbb47ccbb327f0b98 + expression: 'min(/MSSQL by ODBC/mssql.average_wait_time,5m)>{$MSSQL.AVERAGE_WAIT_TIME.MAX}' + name: 'MSSQL: Total average wait time for locks is high' + event_name: 'MSSQL: Total average wait time for locks is high (over {$MSSQL.AVERAGE_WAIT_TIME.MAX}ms for 5m)' + priority: WARNING + description: 'An average wait time longer than 500 ms may indicate excessive blocking. This value should generally correlate to "Lock Waits/sec" and move up or down with it accordingly.' + tags: + - tag: scope + value: performance + - uuid: 2a63096aa40a4374bdd7426b9fe0767e + name: 'Total average wait time base' + type: DEPENDENT + key: mssql.average_wait_time_base + delay: '0' + description: 'For internal use only.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Average Wait Time Base'')].cntr_value.first()' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: wait-time + - uuid: f0cd7858dabf4b7da93314dc9a8ddeaa + name: 'Total average wait time raw' + type: DEPENDENT + key: mssql.average_wait_time_raw + delay: '0' + units: ms + description: 'Average amount of wait time (in milliseconds) for each lock request that resulted in a wait. Information for all locks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Average Wait Time (ms)'')].cntr_value.first()' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: wait-time + - uuid: 00b6e46811fd43a396e2a38dd976d220 + name: 'Batch requests per second' + type: DEPENDENT + key: mssql.batch_requests_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of Transact-SQL command batches received per second. This statistic is affected by all constraints (such as I/O, number of users, cache size, complexity of requests, and so on). High batch requests mean good throughput.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Batch Requests/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: ed950d204a1f40a6925856828c7807aa + name: 'Buffer cache hit ratio' + type: DEPENDENT + key: mssql.buffer_cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'Indicates the percentage of pages found in the buffer cache without having to read from the disk. The ratio is the total number of cache hits divided by the total number of cache lookups over the last few thousand page accesses. After a long period of time, the ratio changes very little. Since reading from the cache is much less expensive than reading from the disk, a higher value is preferred for this item. To increase the buffer cache hit ratio, consider increasing the amount of memory available to MSSQL Server or using the buffer pool extension feature.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''BufferCacheHitRatio'')].cntr_value.first()' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: cache + triggers: + - uuid: f84fa297023a4aee903e4d32bbad9360 + expression: 'max(/MSSQL by ODBC/mssql.buffer_cache_hit_ratio,5m)<{$MSSQL.BUFFER_CACHE_RATIO.MIN.CRIT}' + name: 'MSSQL: Percentage of the buffer cache efficiency is low' + event_name: 'MSSQL: Percentage of the buffer cache efficiency is low (below {$MSSQL.BUFFER_CACHE_RATIO.MIN.CRIT}% for 5m)' + priority: HIGH + description: 'Too low buffer cache hit ratio.' + tags: + - tag: scope + value: performance + - uuid: 42e5bf05da06425282134d3cf806d023 + expression: 'max(/MSSQL by ODBC/mssql.buffer_cache_hit_ratio,5m)<{$MSSQL.BUFFER_CACHE_RATIO.MIN.WARN}' + name: 'MSSQL: Percentage of the buffer cache efficiency is low' + event_name: 'MSSQL: Percentage of the buffer cache efficiency is low (below {$MSSQL.BUFFER_CACHE_RATIO.MIN.WARN}% for 5m)' + priority: WARNING + description: 'Low buffer cache hit ratio.' + dependencies: + - name: 'MSSQL: Percentage of the buffer cache efficiency is low' + expression: 'max(/MSSQL by ODBC/mssql.buffer_cache_hit_ratio,5m)<{$MSSQL.BUFFER_CACHE_RATIO.MIN.CRIT}' + tags: + - tag: scope + value: performance + - uuid: eadb0b4b4eed412c9a29137a2f4232fd + name: 'Get Buffer Manager counters' + type: DEPENDENT + key: mssql.buffer_manager.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server information about the buffer pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Buffer Manager'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - uuid: 1900fc83a4d74c599f5f3438450b5d8b + name: 'Cache hit ratio' + type: DEPENDENT + key: mssql.cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'Ratio between cache hits and lookups.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''CacheHitRatio'')].cntr_value.first()' + master_item: + key: mssql.cache_info.raw + tags: + - tag: component + value: cache + - uuid: b9bab8e37b9c46acbf9c64073bfcf0e6 + name: 'Get Cache counters' + type: DEPENDENT + key: mssql.cache_info.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server information about cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Plan Cache'' && @.instance_name==''_Total'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - uuid: 064e1279ae0a4260ab02c08cd3c3f77d + name: 'Cache objects in use' + type: DEPENDENT + key: mssql.cache_objects_in_use + delay: '0' + description: 'Number of cache objects in use.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Cache Objects in use'')].cntr_value.first()' + master_item: + key: mssql.cache_info.raw + tags: + - tag: component + value: cache + - uuid: de8c0d7f9c0b42438560dc28e47fdd19 + name: 'Cache object counts' + type: DEPENDENT + key: mssql.cache_object_counts + delay: '0' + description: 'Number of cache objects in the cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Cache Object Counts'')].cntr_value.first()' + master_item: + key: mssql.cache_info.raw + tags: + - tag: component + value: cache + - uuid: ae2d22cd04ed452dbdb04ae3f71b8586 + name: 'Cache pages' + type: DEPENDENT + key: mssql.cache_pages + delay: '0' + description: 'Number of 8-kilobyte (KB) pages used by cache objects.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Cache Pages'')].cntr_value.first()' + master_item: + key: mssql.cache_info.raw + tags: + - tag: component + value: cache + - tag: component + value: page + - uuid: d72b6aadab0c4d6d83bc72da0ce661c3 + name: 'Checkpoint pages per second' + type: DEPENDENT + key: mssql.checkpoint_pages_sec.rate + delay: '0' + value_type: FLOAT + description: 'Indicates the number of pages flushed to the disk per second by a checkpoint or other operation which required all dirty pages to be flushed.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Checkpoint pages/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - tag: component + value: performance + - uuid: 9c1ca822375644669821fe1bea4c5f2a + name: 'Database pages' + type: DEPENDENT + key: mssql.database_pages + delay: '0' + description: 'Indicates the number of pages in the buffer pool with database content.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Database pages'')].cntr_value.first()' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - uuid: 871e3520aac84c18bcaf2f3a0d565b79 + name: 'Total data file size' + type: DEPENDENT + key: mssql.data_files_size + delay: '0' + units: B + description: 'Total size of all data files.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Data File(s) Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: mssql.db_info.raw + tags: + - tag: component + value: application + - uuid: 9f7bc0b3ae25483cb7290ef6feaa5c84 + name: 'Get DB counters' + type: DEPENDENT + key: mssql.db_info.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets summary information about databases.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Databases'' && @.instance_name==''_Total'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - uuid: 4cdecc74a6e44b57b17f44988d3ffa21 + name: 'Total errors per second' + type: DEPENDENT + key: mssql.errors_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Errors/sec'' && @.instance_name==''_Total'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_errors.raw + tags: + - tag: component + value: error + - tag: component + value: performance + - uuid: 5ed7f6931c42424f8ec3dbe2e6c46f03 + name: 'Failed auto-params per second' + type: DEPENDENT + key: mssql.failed_autoparams_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of failed auto-parameterization attempts per second. This number should be small. Note that auto-parameterizations are also known as simple parameterizations in the newer versions of SQL Server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Failed Auto-Params/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: cee8f4d47d41463299c50b5c7925a650 + name: 'Forwarded records per second' + type: DEPENDENT + key: mssql.forwarded_records_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of records per second fetched through forwarded record pointers.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Forwarded Records/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: performance + - uuid: 22d1a41352c4477ba3db5d1a9e038597 + name: 'Free list stalls per second' + type: DEPENDENT + key: mssql.free_list_stalls_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Indicates the number of requests per second that had to wait for a free page.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Free list stalls/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: performance + triggers: + - uuid: f055a294ef3b43dd8958e77c303a5fee + expression: 'min(/MSSQL by ODBC/mssql.free_list_stalls_sec.rate,5m)>{$MSSQL.FREE_LIST_STALLS.MAX}' + name: 'MSSQL: Number of rps waiting for a free page is high' + event_name: 'MSSQL: Number of rps waiting for a free page is high (over {$MSSQL.FREE_LIST_STALLS.MAX} for 5m)' + priority: WARNING + description: 'Some requests have to wait for a free page.' + tags: + - tag: scope + value: performance + - uuid: ace67686bb93456c80b40be1f33c173f + name: 'Full scans per second' + type: DEPENDENT + key: mssql.full_scans_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of unrestricted full scans per second. These can be either base-table or full-index scans. Values greater than 1 or 2 indicate that there are table / index page scans. If that is combined with high CPU, this counter requires further investigation, otherwise, if the full scans are on small tables, it can be ignored.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Full Scans/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: performance + - uuid: 6c17a38a9e9246ecbad3a6b2cb83c6cc + name: 'Get General Statistics counters' + type: DEPENDENT + key: mssql.general_statistics.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets general statistics information.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*General Statistics'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - uuid: f2539791f65a40569bcf6b1c89647904 + name: 'Granted Workspace Memory' + type: DEPENDENT + key: mssql.granted_workspace_memory + delay: '0' + units: B + description: 'Specifies the total amount of memory currently granted to executing processes, such as hash, sort, bulk copy, and index creation operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Granted Workspace Memory (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: 585f1a22108143d8b39337900da8860c + name: 'Index searches per second' + type: DEPENDENT + key: mssql.index_searches_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of index searches per second. These are used to start a range scan, reposition a range scan, revalidate a scan point, fetch a single index record, and search down the index to locate where to insert a new row.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Index Searches/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: performance + - uuid: eafdabca35bd40a58432dd36a210a4e4 + name: 'Errors per second (Info errors)' + type: DEPENDENT + key: mssql.info_errors_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Errors/sec'' && @.instance_name==''Info Errors'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_errors.raw + tags: + - tag: component + value: error + - tag: component + value: performance + - uuid: b68d1f8108d7494b9d4d891911708c72 + name: 'Errors per second (Kill connection errors)' + type: DEPENDENT + key: mssql.kill_connection_errors_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Errors/sec'' && @.instance_name==''Kill Connection Errors'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_errors.raw + tags: + - tag: component + value: error + - tag: component + value: performance + - uuid: 04714203d50645fdb4c69e333facd60e + name: 'Get Latches counters' + type: DEPENDENT + key: mssql.latches_info.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server information about latches.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Latches'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - uuid: c1242c5530654057bca59cb9ad12c319 + name: 'Latch waits per second' + type: DEPENDENT + key: mssql.latch_waits_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of latch requests that could not be granted immediately. Latches are lightweight means of holding a very transient server resource, such as an address in memory.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Latch Waits/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.latches_info.raw + tags: + - tag: component + value: performance + - tag: component + value: wait-time + - uuid: 66cc84326bd146ac89f91ddeaa61f63a + name: 'Lazy writes per second' + type: DEPENDENT + key: mssql.lazy_writes_sec.rate + delay: '0' + value_type: FLOAT + description: 'Indicates the number of buffers written per second by the buffer manager''s lazy writer. The lazy writer is a system process that flushes out batches of dirty, aged buffers (buffers that contain changes that must be written back to the disk before the buffer can be reused for a different page) and makes them available to user processes. The lazy writer eliminates the need to perform frequent checkpoints in order to create available buffers.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Lazy writes/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: performance + triggers: + - uuid: 8aa547cda82f4dfcaef5ca0467590f64 + expression: 'min(/MSSQL by ODBC/mssql.lazy_writes_sec.rate,5m)>{$MSSQL.LAZY_WRITES.MAX}' + name: 'MSSQL: Number of buffers written per second by the lazy writer is high' + event_name: 'MSSQL: Number of buffers written per second by the lazy writer is high (over {$MSSQL.LAZY_WRITES.MAX} for 5m)' + priority: WARNING + description: 'The number of buffers written per second by the buffer manager''s lazy writer exceeds the threshold.' + tags: + - tag: scope + value: performance + - uuid: 1b39ade916d243299f6350faaee167c8 + name: 'Get Locks counters' + type: DEPENDENT + key: mssql.locks_info.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server information about locks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Locks'' && @.instance_name==''_Total'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - uuid: 1b4c71c016504eb08b1a49146095c231 + name: 'Total lock requests per second' + type: DEPENDENT + key: mssql.lock_requests_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of new locks and lock conversions per second requested from the lock manager.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Lock Requests/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: lock + - tag: component + value: performance + triggers: + - uuid: be4e0b1aec8d494b984be248424d69cf + expression: 'min(/MSSQL by ODBC/mssql.lock_requests_sec.rate,5m)>{$MSSQL.LOCK_REQUESTS.MAX}' + name: 'MSSQL: Total number of locks per second is high' + event_name: 'MSSQL: Total number of locks per second is high (over {$MSSQL.LOCK_REQUESTS.MAX} for 5m)' + priority: WARNING + description: 'Number of new locks and lock conversions per second requested from the lock manager is high.' + tags: + - tag: scope + value: performance + - uuid: 0ac1aab7013249c6a0beb89217bf52c6 + name: 'Total lock requests per second that timed out' + type: DEPENDENT + key: mssql.lock_timeouts_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of timed out lock requests per second, including requests for NOWAIT locks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Lock Timeouts/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: lock + - tag: component + value: performance + triggers: + - uuid: 9b62d84b8d9c4209b894151f59c42b27 + expression: 'min(/MSSQL by ODBC/mssql.lock_timeouts_sec.rate,5m)>{$MSSQL.LOCK_TIMEOUTS.MAX}' + name: 'MSSQL: Total lock requests per second that timed out is high' + event_name: 'MSSQL: Total lock requests per second that timed out is high (over {$MSSQL.LOCK_TIMEOUTS.MAX} for 5m)' + priority: WARNING + description: 'The total number of timed out lock requests per second, including requests for NOWAIT locks, is high.' + tags: + - tag: scope + value: performance + - uuid: 77be28b4732d4665a4e880f2ea309245 + name: 'Total lock requests per second that required waiting' + type: DEPENDENT + key: mssql.lock_waits_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of lock requests per second that required the caller to wait.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Lock Waits/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: lock + - tag: component + value: performance + triggers: + - uuid: 879748a03c89495398b41fc1dbeba9ed + expression: 'min(/MSSQL by ODBC/mssql.lock_waits_sec.rate,5m)>0' + name: 'MSSQL: Some blocking is occurring for 5m' + priority: AVERAGE + description: 'Values greater than zero indicate at least some blocking is occurring, while a value of zero can quickly eliminate blocking as a potential root-cause problem.' + tags: + - tag: scope + value: performance + - uuid: bf4ef99559f94147b9b64144f6b795c0 + name: 'Lock wait time' + type: DEPENDENT + key: mssql.lock_wait_time + delay: '0' + value_type: FLOAT + units: ms + description: 'Average of total wait time (in milliseconds) for locks in the last second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Lock Wait Time (ms)'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: lock + - uuid: c7856bdb5285421cb79cec0782fa1188 + name: 'Logins per second' + type: DEPENDENT + key: mssql.logins_sec.rate + delay: '0' + value_type: FLOAT + description: 'Total number of logins started per second. This does not include pooled connections. Any value over 2 may indicate insufficient connection pooling.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Logins/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.general_statistics.raw + tags: + - tag: component + value: performance + - uuid: cf4af2cbeaff42b2a71c91544286998f + name: 'Logouts per second' + type: DEPENDENT + key: mssql.logouts_sec.rate + delay: '0' + value_type: FLOAT + description: 'Total number of logout operations started per second. Any value over 2 may indicate insufficient connection pooling.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Logouts/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.general_statistics.raw + tags: + - tag: component + value: performance + - uuid: e0620ce52e6d4269b9d12e82c749a146 + name: 'Total log file size' + type: DEPENDENT + key: mssql.log_files_size + delay: '0' + units: B + description: 'Total size of all the transaction log files.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log File(s) Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: mssql.db_info.raw + tags: + - tag: component + value: log + - uuid: 636e7c85a79947a39f7b176e8e3c5b82 + name: 'Total log file used size' + type: DEPENDENT + key: mssql.log_files_used_size + delay: '0' + units: B + description: 'The cumulative size of all the log files in the database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log File(s) Used Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: mssql.db_info.raw + tags: + - tag: component + value: log + - uuid: 28c1045fb77249aea23f55f48dd89c69 + name: 'Maximum workspace memory' + type: DEPENDENT + key: mssql.maximum_workspace_memory + delay: '0' + units: B + description: 'Indicates the maximum amount of memory available for executing processes, such as hash, sort, bulk copy, and index creation operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Maximum Workspace Memory (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: d39c5f2b89de4bc88c7724a8e2b270d7 + name: 'Memory grants outstanding' + type: DEPENDENT + key: mssql.memory_grants_outstanding + delay: '0' + description: 'Specifies the total number of processes that have successfully acquired a workspace memory grant.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Memory Grants Outstanding'')].cntr_value.first()' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: cb468e25c20f43f08fcefd45354ff882 + name: 'Memory grants pending' + type: DEPENDENT + key: mssql.memory_grants_pending + delay: '0' + description: 'Specifies the total number of processes waiting for a workspace memory grant.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Memory Grants Pending'')].cntr_value.first()' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: 982b21186af84be2a34f76e5bccb7a27 + name: 'Get Memory counters' + type: DEPENDENT + key: mssql.mem_manager.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets memory information.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Memory Manager'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - uuid: 18c0d77ded2b4533a559643006a93406 + name: 'Total lock requests per second that have deadlocks' + type: DEPENDENT + key: mssql.number_deadlocks_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of lock requests per second that resulted in a deadlock.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Number of Deadlocks/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: deadlock + - tag: component + value: performance + triggers: + - uuid: a8f77c32a7194af9b2674f0931c25212 + expression: 'min(/MSSQL by ODBC/mssql.number_deadlocks_sec.rate,5m)>{$MSSQL.DEADLOCKS.MAX}' + name: 'MSSQL: Number of deadlocks is high' + event_name: 'MSSQL: Number of deadlocks is high (over {$MSSQL.DEADLOCKS.MAX} for 5m)' + priority: AVERAGE + description: 'Too many deadlocks are occurring currently.' + tags: + - tag: scope + value: performance + - uuid: bbb7fcac41b2403ab0b0c76f3437e81f + name: 'Errors per second (DB offline errors)' + type: DEPENDENT + key: mssql.offline_errors_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Errors/sec'' && @.instance_name==''DB Offline Errors'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_errors.raw + tags: + - tag: component + value: error + - tag: component + value: performance + - uuid: 94a869db684046d9b65db9ee022a9c9e + name: 'Page life expectancy' + type: DEPENDENT + key: mssql.page_life_expectancy + delay: '0' + value_type: FLOAT + units: s + description: 'Indicates the number of seconds a page will stay in the buffer pool without references.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Page life expectancy'')].cntr_value.first()' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + triggers: + - uuid: 4eb155a86f8b4441a6707e8a3816a068 + expression: 'max(/MSSQL by ODBC/mssql.page_life_expectancy,15m)<{$MSSQL.PAGE_LIFE_EXPECTANCY.MIN}' + name: 'MSSQL: Page life expectancy is low' + event_name: 'MSSQL: Page life expectancy is low (less {$MSSQL.PAGE_LIFE_EXPECTANCY.MIN}min for 15m)' + priority: HIGH + description: 'The page stays in the buffer pool without references for less time than the threshold value.' + tags: + - tag: scope + value: performance + - uuid: 628f787578e04b83882aca052a7f976a + name: 'Page lookups per second' + type: DEPENDENT + key: mssql.page_lookups_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Indicates the number of requests per second to find a page in the buffer pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Page lookups/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: performance + - uuid: 433257a5dfe4488c8073db03bfb05315 + name: 'Page reads per second' + type: DEPENDENT + key: mssql.page_reads_sec.rate + delay: '0' + value_type: FLOAT + description: 'Indicates the number of physical database page reads that are issued per second. This statistic displays the total number of physical page reads across all databases. As physical I/O is expensive, you may be able to minimize the cost either by using a larger data cache, intelligent indexes, and more efficient queries, or by changing the database design.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Page reads/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - tag: component + value: performance + triggers: + - uuid: c0b765b22b264d7c9086edc5cda35592 + expression: 'min(/MSSQL by ODBC/mssql.page_reads_sec.rate,5m)>{$MSSQL.PAGE_READS.MAX}' + name: 'MSSQL: Number of physical database page reads per second is high' + event_name: 'MSSQL: Number of physical database page reads per second is high (over {$MSSQL.PAGE_READS.MAX} for 5m)' + priority: WARNING + description: 'The physical database page reads are issued too frequently.' + tags: + - tag: scope + value: performance + - uuid: fc3dd6a1bf1242769e2b58f25421a19d + name: 'Page splits per second' + type: DEPENDENT + key: mssql.page_splits_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of page splits per second that occur as a result of overflowing index pages.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Page Splits/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: page + - tag: component + value: performance + - uuid: a8b3639fe7b44d88a75e724c083518b5 + name: 'Page writes per second' + type: DEPENDENT + key: mssql.page_writes_sec.rate + delay: '0' + value_type: FLOAT + description: 'Indicates the number of physical database page writes that are issued per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Page writes/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - tag: component + value: performance + triggers: + - uuid: 548941f4a7cc4cadba64d8efd46655da + expression: 'min(/MSSQL by ODBC/mssql.page_writes_sec.rate,5m)>{$MSSQL.PAGE_WRITES.MAX}' + name: 'MSSQL: Number of physical database page writes per second is high' + event_name: 'MSSQL: Number of physical database page writes per second is high (over {$MSSQL.PAGE_WRITES.MAX} for 5m)' + priority: WARNING + description: 'The physical database page writes are issued too frequently.' + tags: + - tag: scope + value: performance + - uuid: 76918163a16e4ad786bed2040acc8061 + name: 'Percent of ad hoc queries running' + type: CALCULATED + key: mssql.percent_of_adhoc_queries + delay: 0;m0-59s3 + value_type: FLOAT + units: '%' + params: | + last(//mssql.sql_compilations_sec.rate) * 100 / + (last(//mssql.batch_requests_sec.rate) + (last(//mssql.batch_requests_sec.rate)=0)) + description: 'The ratio of SQL compilations per second to batch requests per second, in percent.' + tags: + - tag: component + value: application + triggers: + - uuid: c5c1840220cd44fcaa7b47e0d52309bb + expression: 'min(/MSSQL by ODBC/mssql.percent_of_adhoc_queries,15m) > {$MSSQL.PERCENT_COMPILATIONS.MAX}' + name: 'MSSQL: Percent of ad hoc queries running is high' + event_name: 'MSSQL: Percent of ad hoc queries running is over {$MSSQL.PERCENT_COMPILATIONS.MAX}% for 15m' + priority: WARNING + description: 'The lower this value is, the better. High values often indicate excessive ad hoc querying and should be as low as possible. If excessive ad hoc querying is happening, try rewriting the queries as procedures or invoke the queries using `sp_executeSQL`. When rewriting isn''t possible, consider using a plan guide or setting the database to parameterization forced mode.' + tags: + - tag: scope + value: performance + - uuid: ceab0472883f47b0a18b04fc6f7438ab + name: 'Percent of Recompiled Transact-SQL Objects' + type: CALCULATED + key: mssql.percent_recompilations_to_compilations + delay: 0;m0-59s3 + value_type: FLOAT + units: '%' + params: | + last(//mssql.sql_recompilations_sec.rate) * 100 / + (last(//mssql.sql_compilations_sec.rate) + (last(//mssql.sql_compilations_sec.rate)=0)) + description: 'The ratio of SQL re-compilations per second to SQL compilations per second, in percent.' + tags: + - tag: component + value: application + triggers: + - uuid: d5bad8ead8704e00bf332032e22ebfdd + expression: 'min(/MSSQL by ODBC/mssql.percent_recompilations_to_compilations,15m) > {$MSSQL.PERCENT_RECOMPILATIONS.MAX}' + name: 'MSSQL: Percent of times statement recompiles is high' + event_name: 'MSSQL: Percent of times statement recompiles is over {$MSSQL.PERCENT_RECOMPILATIONS.MAX}% for 15m' + priority: WARNING + description: 'This number should be at or near zero, since recompiles can cause deadlocks and exclusive compile locks. This counter''s value should follow in proportion to "Batch Requests/sec" and "SQL Compilations/sec".' + tags: + - tag: scope + value: performance + - uuid: 5c0bee24f9494bb49860171ff875caf7 + name: 'Number of blocked processes' + type: DEPENDENT + key: mssql.processes_blocked + delay: '0' + description: 'Number of currently blocked processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Processes blocked'')].cntr_value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: mssql.general_statistics.raw + tags: + - tag: component + value: application + - uuid: fc14b0c814234b12a3943eb0435cd28c + name: 'Read-ahead pages per second' + type: DEPENDENT + key: mssql.readahead_pages_sec.rate + delay: '0' + value_type: FLOAT + description: 'Indicates the number of pages read per second in anticipation of use.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Readahead pages/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - tag: component + value: performance + - uuid: be47be0cbb924982aaf9573c5a233144 + name: 'Safe auto-params per second' + type: DEPENDENT + key: mssql.safe_autoparams_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of safe auto-parameterization attempts per second. Safe refers to a determination that a cached execution plan can be shared between different similar-looking Transact-SQL statements. SQL Server makes many auto-parameterization attempts, some of which turn out to be safe and others fail. Note that auto-parameterizations are also known as simple parameterizations in the newer versions of SQL Server. This does not include forced parameterizations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Safe Auto-Params/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: 9ce27df57ebc4ecca1a4741e66c9fba0 + name: 'Full scans to Index searches ratio' + type: CALCULATED + key: mssql.scan_to_search + delay: 0;m0-59s3 + value_type: FLOAT + params: 'last(//mssql.full_scans_sec.rate) / (last(//mssql.index_searches_sec.rate) + (last(//mssql.index_searches_sec.rate)=0))' + description: 'The ratio of full scans per second to index searches per second. The threshold recommendation is strictly for OLTP workloads.' + tags: + - tag: component + value: application + triggers: + - uuid: 3c22a74a94d641389b57a6013ddd10cb + expression: 'min(/MSSQL by ODBC/mssql.scan_to_search,15m) > 0.001' + name: 'MSSQL: Number of index and table scans exceeds index searches in the last 15m' + priority: WARNING + description: 'Index searches are preferable to index and table scans. For OLTP applications, optimize for more index searches and less scans (preferably, 1 full scan for every 1000 index searches). Index and table scans are expensive I/O operations.' + tags: + - tag: scope + value: performance + - uuid: e9ea451a38424f6b9da59b8bbb068b51 + name: 'SQL compilations per second' + type: DEPENDENT + key: mssql.sql_compilations_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of SQL compilations per second. Indicates the number of times the compile code path is entered. Includes runs caused by statement-level recompilations in SQL Server. After SQL Server user activity is stable, this value reaches a steady state.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''SQL Compilations/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: c7e0a26bf403482daec65a4b3cd0fd18 + name: 'Get SQL Errors counters' + type: DEPENDENT + key: mssql.sql_errors.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets SQL error information.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*SQL Errors'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - uuid: a72415acabda46309c4dbc692e026cc2 + name: 'SQL re-compilations per second' + type: DEPENDENT + key: mssql.sql_recompilations_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of statement recompiles per second. Counts the number of times statement recompiles are triggered. Generally, you want the recompiles to be low.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''SQL Re-Compilations/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: ca60d01d14d04566bf1a5e6b3b819538 + name: 'Get SQL Statistics counters' + type: DEPENDENT + key: mssql.sql_statistics.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets SQL statistics information.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*SQL Statistics'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - uuid: 595aa3989b4e41cc8649827525adc0a0 + name: 'Table lock escalations per second' + type: DEPENDENT + key: mssql.table_lock_escalations.rate + delay: '0' + value_type: FLOAT + description: 'Number of times locks on a table were escalated to the TABLE or HoBT granularity.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Table Lock Escalations/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: lock + - tag: component + value: performance + - uuid: 37269b33e05349a1bfd05e4e493da6d4 + name: 'Target pages' + type: DEPENDENT + key: mssql.target_pages + delay: '0' + description: 'The optimal number of pages in the buffer pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Target pages'')].cntr_value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - uuid: 2679f7e843e549ce9468f6cab05a71d5 + name: 'Target server memory' + type: DEPENDENT + key: mssql.target_server_memory + delay: '0' + units: B + description: 'Indicates the ideal amount of memory the server can consume.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Target Server Memory (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: 8c7d63f3689f464394a6035a3cad4009 + name: 'Total latch wait time' + type: DEPENDENT + key: mssql.total_latch_wait_time + delay: '0' + value_type: FLOAT + units: ms + description: 'Total latch wait time (in milliseconds) for latch requests in the last second. This value should stay stable compared to the number of latch waits per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Total Latch Wait Time (ms)'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.latches_info.raw + tags: + - tag: component + value: wait-time + - uuid: 9112ed9b9d3741018d40f2dc892fa0f6 + name: 'Total server memory' + type: DEPENDENT + key: mssql.total_server_memory + delay: '0' + units: B + description: 'Specifies the amount of memory the server has committed using the memory manager.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Total Server Memory (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: 273b373d8b41411fafcfd1e93bb8ce2c + name: 'Total transactions number' + type: DEPENDENT + key: mssql.transactions + delay: '0' + description: 'The number of currently active transactions of all types.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Transactions'' && @.counter_name==''Transactions'')].cntr_value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: transaction + - uuid: 127e1f73ce414eeb87d2cbfef46ccdef + name: 'Total transactions per second' + type: DEPENDENT + key: mssql.transactions_sec.rate + delay: '0' + value_type: FLOAT + description: 'Total number of transactions started for all databases per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Transactions/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.db_info.raw + tags: + - tag: component + value: performance + - tag: component + value: transaction + - uuid: ef6450dfcb9a476ca1bf97524e05d43d + name: 'Unsafe auto-params per second' + type: DEPENDENT + key: mssql.unsafe_autoparams_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of unsafe auto-parameterization attempts per second. For example, the query has some characteristics that prevent the cached plan from being shared. These are designated as unsafe. This does not count the number of forced parameterizations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Unsafe Auto-Params/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: 27449e795c0a4e4e90c9ee6b6bf3df90 + name: Uptime + type: DEPENDENT + key: mssql.uptime + delay: '0' + trends: '0' + units: uptime + description: 'MSSQL Server uptime in the format "N days, hh:mm:ss".' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Uptime'')].cntr_value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 0321c9f671394cb180fdce53b4033cf4 + expression: 'nodata(/MSSQL by ODBC/mssql.uptime,30m)=1' + name: 'MSSQL: Failed to fetch info data' + event_name: 'MSSQL: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for items for the last 30 minutes.' + dependencies: + - name: 'MSSQL: Service is unavailable' + expression: 'last(/MSSQL by ODBC/net.tcp.service[tcp,{$MSSQL.HOST},{$MSSQL.PORT}])=0' + tags: + - tag: scope + value: availability + - uuid: aa10f863608a494281f41e12f0d2b1a5 + expression: 'last(/MSSQL by ODBC/mssql.uptime)<10m' + name: 'MSSQL: Service has been restarted' + event_name: 'MSSQL: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4e13bfc5927a421fb2996eec7e013448 + name: 'Number of users connected' + type: DEPENDENT + key: mssql.user_connections + delay: '0' + description: 'Number of users connected to MSSQL Server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''User Connections'')].cntr_value.first()' + master_item: + key: mssql.general_statistics.raw + tags: + - tag: component + value: application + - uuid: 5942cad838e8430a9ff71293dec52af8 + name: 'Errors per second (User errors)' + type: DEPENDENT + key: mssql.user_errors_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Errors/sec'' && @.instance_name==''User Errors'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_errors.raw + tags: + - tag: component + value: error + - tag: component + value: performance + - uuid: 7013504d4a6c4b40a0aab11dab15d107 + name: Version + type: DEPENDENT + key: mssql.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'MSSQL Server version.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Version'')].instance_name.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 4ece2c9172714c68b8345834cc37d927 + expression: 'last(/MSSQL by ODBC/mssql.version,#1)<>last(/MSSQL by ODBC/mssql.version,#2) and length(last(/MSSQL by ODBC/mssql.version))>0' + name: 'MSSQL: Version has changed' + event_name: 'MSSQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + description: 'MSSQL version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ea84affd97864dfaad7edf31e16e1300 + name: 'Work files created per second' + type: DEPENDENT + key: mssql.workfiles_created_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of work files created per second. For example, work files can be used to store temporary results for hash joins and hash aggregates.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Workfiles Created/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: performance + triggers: + - uuid: 2f7e2dd4a94e4e92b468f4e2e2364f71 + expression: 'min(/MSSQL by ODBC/mssql.workfiles_created_sec.rate,5m)>{$MSSQL.WORK_FILES.MAX}' + name: 'MSSQL: Number of work files created per second is high' + event_name: 'MSSQL: Number of work files created per second is high (over {$MSSQL.WORK_FILES.MAX} for 5m)' + priority: AVERAGE + description: 'Too many work files created per second to store temporary results for hash joins and hash aggregates.' + tags: + - tag: scope + value: performance + - uuid: a38e7fdf994842558227dfad03e9943b + name: 'Work tables created per second' + type: DEPENDENT + key: mssql.worktables_created_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of work tables created per second. For example, work tables can be used to store temporary results for query spool, LOB variables, XML variables, and cursors.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Worktables Created/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: performance + triggers: + - uuid: 0214004de3084ce6b35d5bba53a66947 + expression: 'min(/MSSQL by ODBC/mssql.worktables_created_sec.rate,5m)>{$MSSQL.WORK_TABLES.MAX}' + name: 'MSSQL: Number of work tables created per second is high' + event_name: 'MSSQL: Number of work tables created per second is high (over {$MSSQL.WORK_TABLES.MAX} for 5m)' + priority: AVERAGE + description: 'Too many work tables created per second to store temporary results for query spool, LOB variables, XML variables, and cursors.' + tags: + - tag: scope + value: performance + - uuid: d93779b26c1a4784be31d32130eebf92 + name: 'Worktables from cache ratio' + type: DEPENDENT + key: mssql.worktables_from_cache_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of work tables created where the initial two pages of the work table were not allocated but were immediately available from the work table cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''WorktablesFromCacheRatio'')].cntr_value.first()' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: cache + triggers: + - uuid: 98dee2bc42484988b208e100cc25ae05 + expression: 'max(/MSSQL by ODBC/mssql.worktables_from_cache_ratio,5m)<{$MSSQL.WORKTABLES_FROM_CACHE_RATIO.MIN.CRIT}' + name: 'MSSQL: Percentage of work tables available from the work table cache is low' + event_name: 'MSSQL: Percentage of work tables available from the work table cache is low (below {$MSSQL.WORKTABLES_FROM_CACHE_RATIO.MIN.CRIT}% for 5m)' + priority: HIGH + description: 'A value less than 90% may indicate insufficient memory, since execution plans are being dropped, or, on 32-bit systems, may indicate the need for an upgrade to a 64-bit system.' + tags: + - tag: scope + value: performance + - uuid: c0302965c2574b43955a1d37a8fce9eb + name: 'Service''s TCP port state' + type: SIMPLE + key: 'net.tcp.service[tcp,{$MSSQL.HOST},{$MSSQL.PORT}]' + delay: 30s + description: 'Test the availability of MSSQL Server on a TCP port.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: network + triggers: + - uuid: 152af5cc3ce04d4aa8ab255c37aed6c6 + expression: 'last(/MSSQL by ODBC/net.tcp.service[tcp,{$MSSQL.HOST},{$MSSQL.PORT}])=0' + name: 'MSSQL: Service is unavailable' + priority: DISASTER + description: 'The TCP port of the MSSQL Server service is currently unavailable.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 6261715081794a49938d848c677da657 + name: 'Availability group discovery' + type: DEPENDENT + key: mssql.availability.group.discovery + delay: '0' + description: 'Discovery of the existing availability groups.' + item_prototypes: + - uuid: 381c88cf5b0c47319b036e79265b0a20 + name: 'MSSQL AG ''{#GROUP_NAME}'': Primary replica recovery health' + type: DEPENDENT + key: 'mssql.primary_recovery_health["{#GROUP_NAME}"]' + delay: '0' + description: | + Indicates the recovery health of the primary replica: + 0 = In progress + 1 = Online + 2 = Unavailable + valuemap: + name: 'MSSQL AG Recovery health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.group_name==''{#GROUP_NAME}'')].primary_recovery_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_availability_group,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: availability-group + trigger_prototypes: + - uuid: c472a4f8400e451db529d5e12b863216 + expression: 'last(/MSSQL by ODBC/mssql.primary_recovery_health["{#GROUP_NAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'': Primary replica recovery health in progress' + priority: WARNING + description: 'The primary replica is in the synchronization process.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: scope + value: notice + - uuid: df51dcd0ef864705bc542e1233c1135b + name: 'MSSQL AG ''{#GROUP_NAME}'': Primary replica name' + type: DEPENDENT + key: 'mssql.primary_replica["{#GROUP_NAME}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Name of the server instance that is hosting the current primary replica.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.group_name==''{#GROUP_NAME}'')].primary_replica.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'db.odbc.get[get_availability_group,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: availability-group + - uuid: d2e76a734bd84484b6bd59b33c921f34 + name: 'MSSQL AG ''{#GROUP_NAME}'': Secondary replica recovery health' + type: DEPENDENT + key: 'mssql.secondary_recovery_health["{#GROUP_NAME}"]' + delay: '0' + description: | + Indicates the recovery health of a secondary replica: + 0 = In progress + 1 = Online + 2 = Unavailable + valuemap: + name: 'MSSQL AG Recovery health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.group_name==''{#GROUP_NAME}'')].secondary_recovery_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_availability_group,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: availability-group + trigger_prototypes: + - uuid: 1fbf51eb9f8b432c8e0d9ec3af1cab44 + expression: 'last(/MSSQL by ODBC/mssql.secondary_recovery_health["{#GROUP_NAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'': Secondary replica recovery health in progress' + priority: WARNING + description: 'The secondary replica is in the synchronization process.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: scope + value: notice + - uuid: fe59d23d0ba44777b0abf1a35b2c014e + name: 'MSSQL AG ''{#GROUP_NAME}'': Synchronization health' + type: DEPENDENT + key: 'mssql.synchronization_health["{#GROUP_NAME}"]' + delay: '0' + description: | + Reflects a rollup of the `synchronization_health` of all availability replicas in the availability group: + 0 = Not healthy. None of the availability replicas have a healthy synchronization. + 1 = Partially healthy. The synchronization of some, but not all, availability replicas is healthy. + 2 = Healthy. The synchronization of every availability replica is healthy. + valuemap: + name: 'MSSQL AG Synchronization health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.group_name==''{#GROUP_NAME}'')].synchronization_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_availability_group,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: availability-group + trigger_prototypes: + - uuid: 2ee92e5ea41744ac9e27ffaa4313bdec + expression: 'last(/MSSQL by ODBC/mssql.synchronization_health["{#GROUP_NAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'': All replicas unhealthy' + priority: DISASTER + description: 'None of the availability replicas have a healthy synchronization.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: scope + value: availability + - uuid: fd24c78f1db24186932d17d1145b6e92 + expression: 'last(/MSSQL by ODBC/mssql.synchronization_health["{#GROUP_NAME}"])=1' + name: 'MSSQL: AG ''{#GROUP_NAME}'': Some replicas unhealthy' + priority: HIGH + description: 'The synchronization health of some, but not all, availability replicas is healthy.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: scope + value: availability + master_item: + key: 'db.odbc.get[get_availability_group,"{$MSSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#GROUP_NAME}' + path: $.group_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: 2e38ea24c9bf4a5480df0816b7c659b3 + name: 'Database discovery' + type: DEPENDENT + key: mssql.database.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$MSSQL.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DBNAME}' + value: '{$MSSQL.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Scanning databases in DBMS.' + item_prototypes: + - uuid: 9c9dab20d8fa46f888c6aa7c7c9bf1b9 + name: 'MSSQL DB ''{#DBNAME}'': Last diff backup duration' + type: DEPENDENT + key: 'mssql.backup.diff.duration["{#DBNAME}"]' + delay: '0' + units: s + description: 'Duration of the last differential backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''I'')].duration.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: bd663e1e9b40469cb4ca430186b049db + name: 'MSSQL DB ''{#DBNAME}'': Last diff backup (time ago)' + type: DEPENDENT + key: 'mssql.backup.diff["{#DBNAME}"]' + delay: '0' + units: s + description: 'The amount of time since the last differential backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''I'')].time_since_last_backup.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 036892c6b9de41c698a4e9acd5457e6a + expression: 'last(/MSSQL by ODBC/mssql.backup.diff["{#DBNAME}"])>{$MSSQL.BACKUP_DIFF.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_DIFF.USED:"{#DBNAME}"}=1' + name: 'MSSQL: DB ''{#DBNAME}'': Diff backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Diff backup older than {$MSSQL.BACKUP_DIFF.CRIT:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The differential backup has not been executed for a long time.' + manual_close: 'YES' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 9a294163ee034fc6a58f5534a7d79aac + expression: 'last(/MSSQL by ODBC/mssql.backup.diff["{#DBNAME}"])>{$MSSQL.BACKUP_DIFF.WARN:"{#DBNAME}"} and {$MSSQL.BACKUP_DIFF.USED:"{#DBNAME}"}=1' + name: 'MSSQL: DB ''{#DBNAME}'': Diff backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Diff backup older than {$MSSQL.BACKUP_DIFF.WARN:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The differential backup has not been executed for a long time.' + manual_close: 'YES' + dependencies: + - name: 'MSSQL: DB ''{#DBNAME}'': Diff backup is old' + expression: 'last(/MSSQL by ODBC/mssql.backup.diff["{#DBNAME}"])>{$MSSQL.BACKUP_DIFF.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_DIFF.USED:"{#DBNAME}"}=1' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 52929d988ad34aac945ff2ce9e448261 + name: 'MSSQL DB ''{#DBNAME}'': Last full backup duration' + type: DEPENDENT + key: 'mssql.backup.full.duration["{#DBNAME}"]' + delay: '0' + units: s + description: 'Duration of the last full backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''D'')].duration.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 06d0ac1eeca843a289defa1cf1d728a3 + name: 'MSSQL DB ''{#DBNAME}'': Last full backup (time ago)' + type: DEPENDENT + key: 'mssql.backup.full["{#DBNAME}"]' + delay: '0' + units: s + description: 'The amount of time since the last full backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''D'')].time_since_last_backup.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 09c8e059ffa44d0eb1be626b5d820dc9 + expression: 'last(/MSSQL by ODBC/mssql.backup.full["{#DBNAME}"])>{$MSSQL.BACKUP_FULL.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_FULL.USED:"{#DBNAME}"}=1' + name: 'MSSQL: DB ''{#DBNAME}'': Full backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Full backup older than {$MSSQL.BACKUP_FULL.CRIT:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The full backup has not been executed for a long time.' + manual_close: 'YES' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: b380d76b1055482ca8cd69c90611f1a5 + expression: 'last(/MSSQL by ODBC/mssql.backup.full["{#DBNAME}"])>{$MSSQL.BACKUP_FULL.WARN:"{#DBNAME}"} and {$MSSQL.BACKUP_FULL.USED:"{#DBNAME}"}=1' + name: 'MSSQL: DB ''{#DBNAME}'': Full backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Full backup older than {$MSSQL.BACKUP_FULL.WARN:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The full backup has not been executed for a long time.' + manual_close: 'YES' + dependencies: + - name: 'MSSQL: DB ''{#DBNAME}'': Full backup is old' + expression: 'last(/MSSQL by ODBC/mssql.backup.full["{#DBNAME}"])>{$MSSQL.BACKUP_FULL.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_FULL.USED:"{#DBNAME}"}=1' + tags: + - tag: scope + value: availability + - uuid: 218241c7c5a648a59021999f97516349 + name: 'MSSQL DB ''{#DBNAME}'': Last log backup duration' + type: DEPENDENT + key: 'mssql.backup.log.duration["{#DBNAME}"]' + delay: '0' + units: s + description: 'Duration of the last log backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''L'')].duration.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: c5e796bc904848efb2557c8a9a07b828 + name: 'MSSQL DB ''{#DBNAME}'': Last log backup (time ago)' + type: DEPENDENT + key: 'mssql.backup.log["{#DBNAME}"]' + delay: '0' + units: s + description: 'The amount of time since the last log backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''L'')].time_since_last_backup.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: a6a276b5a8ce4b00b277e507ea7b15ee + name: 'MSSQL DB ''{#DBNAME}'': Get last backup' + type: DEPENDENT + key: 'mssql.backup.raw["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets information about backup processes for {#DBNAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_last_backup,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 52a2d8012fea467582b09505e9c880be + name: 'MSSQL DB ''{#DBNAME}'': Recovery model' + type: DEPENDENT + key: 'mssql.backup.recovery_model["{#DBNAME}"]' + delay: '0' + description: | + Recovery model selected: + 1 = Full + 2 = Bulk_logged + 3 = Simple + valuemap: + name: 'MSSQL Recovery model' + preprocessing: + - type: JSONPATH + parameters: + - '$[0].db_recovery_model' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: f4f218f22d6d48419260003880b38abd + name: 'MSSQL DB ''{#DBNAME}'': Active transactions' + type: DEPENDENT + key: 'mssql.db.active_transactions["{#DBNAME}"]' + delay: '0' + description: 'Number of active transactions for the database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Active Transactions'')].cntr_value.first()' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: ff3916f807784639a1821229d4d722d8 + name: 'MSSQL DB ''{#DBNAME}'': Data file size' + type: DEPENDENT + key: 'mssql.db.data_files_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Cumulative size of all the data files in the database including any automatic growth. Monitoring this counter is useful, for example, for determining the correct size of `tempdb`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Data File(s) Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 0d7bdf4c18fa49e79926e6f6d078d50f + name: 'MSSQL DB ''{#DBNAME}'': Log bytes flushed per second' + type: DEPENDENT + key: 'mssql.db.log_bytes_flushed_sec.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Total number of log bytes flushed per second. Useful for determining trends and utilization of the transaction log.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Bytes Flushed/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 85536311e68047a6a8bf13c51c8d0647 + name: 'MSSQL DB ''{#DBNAME}'': Log file size' + type: DEPENDENT + key: 'mssql.db.log_files_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Cumulative size of all the transaction log files in the database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log File(s) Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 75fd2f42e274471c97cb23dc740863b8 + name: 'MSSQL DB ''{#DBNAME}'': Log file used size' + type: DEPENDENT + key: 'mssql.db.log_files_used_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Cumulative size of all the log files in the database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log File(s) Used Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: c10b6f364aa547d8b4abe431ae27d70b + name: 'MSSQL DB ''{#DBNAME}'': Log flushes per second' + type: DEPENDENT + key: 'mssql.db.log_flushes_sec.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of log flushes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Flushes/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 5404c8682b294a06a3027dc10d0b43fc + name: 'MSSQL DB ''{#DBNAME}'': Log flush waits per second' + type: DEPENDENT + key: 'mssql.db.log_flush_waits_sec.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of commits per second waiting for the log flush.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Flush Waits/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: b351fc1128c24faf88d36717d0a0d1a5 + expression: 'min(/MSSQL by ODBC/mssql.db.log_flush_waits_sec.rate["{#DBNAME}"],5m)>{$MSSQL.LOG_FLUSH_WAITS.MAX:"{#DBNAME}"}' + name: 'MSSQL: DB ''{#DBNAME}'': Number of commits waiting for the log flush is high' + event_name: 'MSSQL: DB ''{#DBNAME}'': Number of commits waiting for the log flush is high (over {$MSSQL.LOG_FLUSH_WAITS.MAX:"{#DBNAME}"}/sec for 5m)' + priority: WARNING + description: 'Too many commits are waiting for the log flush.' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: performance + - uuid: f1abdb0800534f6bbf9f1403e7dea9e4 + name: 'MSSQL DB ''{#DBNAME}'': Log flush wait time' + type: DEPENDENT + key: 'mssql.db.log_flush_wait_time["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: ms + description: 'Total wait time (in milliseconds) to flush the log. On an Always On secondary database, this value indicates the wait time for log records to be hardened to disk.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Flush Wait Time'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 80351c56215148b8ab75d95dc81ff0d0 + expression: 'min(/MSSQL by ODBC/mssql.db.log_flush_wait_time["{#DBNAME}"],5m)>{$MSSQL.LOG_FLUSH_WAIT_TIME.MAX:"{#DBNAME}"}' + name: 'MSSQL: DB ''{#DBNAME}'': Total wait time to flush the log is high' + event_name: 'MSSQL: DB ''{#DBNAME}'': Total wait time to flush the log is high (over {$MSSQL.LOG_FLUSH_WAIT_TIME.MAX:"{#DBNAME}"}ms for 5m)' + priority: WARNING + description: 'The wait time to flush the log is too long.' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: performance + - uuid: fdb24058e54243e8b5a888ec40d506e9 + name: 'MSSQL DB ''{#DBNAME}'': Log growths' + type: DEPENDENT + key: 'mssql.db.log_growths["{#DBNAME}"]' + delay: '0' + description: 'Total number of times the transaction log for the database has been expanded.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Growths'')].cntr_value.first()' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: a1a96d8bfef740ec9c8eadd9704ab605 + name: 'MSSQL DB ''{#DBNAME}'': Log shrinks' + type: DEPENDENT + key: 'mssql.db.log_shrinks["{#DBNAME}"]' + delay: '0' + description: 'Total number of times the transaction log for the database has been shrunk.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Shrinks'')].cntr_value.first()' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 26d1515df1be450e861e4f7a9f76b03d + name: 'MSSQL DB ''{#DBNAME}'': Log truncations' + type: DEPENDENT + key: 'mssql.db.log_truncations["{#DBNAME}"]' + delay: '0' + description: 'Number of times the transaction log has been shrunk.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Truncations'')].cntr_value.first()' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 9f9cda56992841408ab8307b7019b76f + name: 'MSSQL DB ''{#DBNAME}'': Percent log used' + type: DEPENDENT + key: 'mssql.db.percent_log_used["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of log space in use.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Percent Log Used'')].cntr_value.first()' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: f02958e3ee174c6dbe900e3dd92cacdc + expression: 'min(/MSSQL by ODBC/mssql.db.percent_log_used["{#DBNAME}"],5m)>{$MSSQL.PERCENT_LOG_USED.MAX:"{#DBNAME}"}' + name: 'MSSQL: DB ''{#DBNAME}'': Percent of log usage is high' + event_name: 'MSSQL: DB ''{#DBNAME}'': Percent of log usage is high (over {$MSSQL.PERCENT_LOG_USED.MAX:"{#DBNAME}"}% for 5m)' + priority: WARNING + description: 'There''s not enough space left in the log.' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: performance + - uuid: 74b107e240274c69ae1e8f0632b67e14 + name: 'MSSQL DB ''{#DBNAME}'': Get performance counters' + type: DEPENDENT + key: 'mssql.db.perf_raw["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server status information for {#DBNAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Databases'' && @.instance_name==''{#DBNAME}'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_status_variables,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: fe7d7c3e0aab43d79c00eaceb39c8c6c + name: 'MSSQL DB ''{#DBNAME}'': State' + type: DEPENDENT + key: 'mssql.db.state["{#DBNAME}"]' + delay: '0' + description: | + 0 = Online + 1 = Restoring + 2 = Recovering | SQL Server 2008 and later + 3 = Recovery_pending | SQL Server 2008 and later + 4 = Suspect + 5 = Emergency | SQL Server 2008 and later + 6 = Offline | SQL Server 2008 and later + 7 = Copying | Azure SQL Database Active Geo-Replication + 10 = Offline_secondary | Azure SQL Database Active Geo-Replication + valuemap: + name: 'MSSQL DB state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''State'')].cntr_value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 6b8c8cf8e0d24b7f8d9aa7469a0facd4 + expression: 'last(/MSSQL by ODBC/mssql.db.state["{#DBNAME}"])>1' + name: 'MSSQL: DB ''{#DBNAME}'': State is {ITEM.VALUE}' + priority: HIGH + description: 'The DB has a non-working state.' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 267b1d54c40641f5aeb4e3e7adfa4680 + name: 'MSSQL DB ''{#DBNAME}'': Transactions per second' + type: DEPENDENT + key: 'mssql.db.transactions_sec.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of transactions started for the database per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Transactions/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 4a6e76dc9a5148649d07e35e962b5893 + expression: 'last(/MSSQL by ODBC/mssql.backup.log["{#DBNAME}"])>{$MSSQL.BACKUP_LOG.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_LOG.USED:"{#DBNAME}"}=1 and last(/MSSQL by ODBC/mssql.backup.recovery_model["{#DBNAME}"])<>3' + name: 'MSSQL: DB ''{#DBNAME}'': Log backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Log backup older than {$MSSQL.BACKUP_LOG.CRIT:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The log backup has not been executed for a long time.' + manual_close: 'YES' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 6000420450cf453bae3652c7f7d05e2b + expression: 'last(/MSSQL by ODBC/mssql.backup.log["{#DBNAME}"])>{$MSSQL.BACKUP_LOG.WARN:"{#DBNAME}"} and {$MSSQL.BACKUP_LOG.USED:"{#DBNAME}"}=1 and last(/MSSQL by ODBC/mssql.backup.recovery_model["{#DBNAME}"])<>3' + name: 'MSSQL: DB ''{#DBNAME}'': Log backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Log backup older than {$MSSQL.BACKUP_LOG.WARN:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The log backup has not been executed for a long time.' + manual_close: 'YES' + dependencies: + - name: 'MSSQL: DB ''{#DBNAME}'': Log backup is old' + expression: 'last(/MSSQL by ODBC/mssql.backup.log["{#DBNAME}"])>{$MSSQL.BACKUP_LOG.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_LOG.USED:"{#DBNAME}"}=1 and last(/MSSQL by ODBC/mssql.backup.recovery_model["{#DBNAME}"])<>3' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + graph_prototypes: + - uuid: ac52c952ba954065bbbb5c722630cd0b + name: 'DB ''{#DBNAME}'': Log size' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: 'mssql.db.log_files_size["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: 'mssql.db.log_files_used_size["{#DBNAME}"]' + - uuid: 49d3be5c3ce34cfc9c13456a2ae301f6 + name: 'DB ''{#DBNAME}'': Number of Log changes' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: 'mssql.db.log_growths["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: 'mssql.db.log_shrinks["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by ODBC' + key: 'mssql.db.log_truncations["{#DBNAME}"]' + - uuid: 9553b9169f5e441abecfde1c07ca1a4e + name: 'DB ''{#DBNAME}'': Size' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: 'mssql.db.data_files_size["{#DBNAME}"]' + master_item: + key: 'db.odbc.get[get_database,"{$MSSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#DBNAME}' + path: $.dbname + - lld_macro: '{#RECOVERY_MODEL}' + path: $.recovery_model + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + overrides: + - name: 'Log backup' + step: '1' + filter: + conditions: + - macro: '{#RECOVERY_MODEL}' + value: '3' + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Log backup is old' + discover: NO_DISCOVER + - uuid: 6d972c575a944d49badfc2e6a614f686 + name: 'Job discovery' + type: DEPENDENT + key: mssql.job.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#JOBNAME}' + value: '{$MSSQL.JOB.MATCHES}' + formulaid: A + - macro: '{#JOBNAME}' + value: '{$MSSQL.JOB.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Scanning jobs in DBMS.' + item_prototypes: + - uuid: 4e1e21603b01420f9b25e85f5987e7ec + name: 'MSSQL Job ''{#JOBNAME}'': Enabled' + type: DEPENDENT + key: 'mssql.job.enabled["{#JOBNAME}"]' + delay: '0' + description: | + The possible values of the job status: + 0 = Disabled + 1 = Enabled + valuemap: + name: 'MSSQL - Yes / No' + preprocessing: + - type: JSONPATH + parameters: + - $.enabled + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + - uuid: 3ceba63a77e24628a2ee9439d574bac5 + name: 'MSSQL Job ''{#JOBNAME}'': Last run date-time' + type: DEPENDENT + key: 'mssql.job.lastrundatetime["{#JOBNAME}"]' + delay: '0' + units: unixtime + description: 'The last date-time of the job run.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_run_date_time + - type: JAVASCRIPT + parameters: + - 'return value == ''null'' ? 0 : Math.floor(new Date(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + - uuid: b9984c1238554a559b444853e9f66653 + name: 'MSSQL Job ''{#JOBNAME}'': Last run status message' + type: DEPENDENT + key: 'mssql.job.lastrunstatusmessage["{#JOBNAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'An informational message about the last run of the job.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_run_status_message + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + - uuid: 1c725adad98f44158b43127d4c5fb0f3 + name: 'MSSQL Job ''{#JOBNAME}'': Next run date-time' + type: DEPENDENT + key: 'mssql.job.nextrundatetime["{#JOBNAME}"]' + delay: '0' + units: unixtime + description: 'The next date-time of the job run.' + preprocessing: + - type: JSONPATH + parameters: + - $.next_run_date_time + - type: JAVASCRIPT + parameters: + - 'return value == ''null'' ? 0 : Math.floor(new Date(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + - uuid: eaa43a261e114979af236698ea7ae32c + name: 'MSSQL Job ''{#JOBNAME}'': Run status' + type: DEPENDENT + key: 'mssql.job.runstatus["{#JOBNAME}"]' + delay: '0' + description: | + The possible values of the job status: + 0 ⇒ Failed + 1 ⇒ Succeeded + 2 ⇒ Retry + 3 ⇒ Canceled + 4 ⇒ Running + valuemap: + name: 'MSSQL Job Run Status' + preprocessing: + - type: JSONPATH + parameters: + - $.run_status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + trigger_prototypes: + - uuid: 304f468605164fd2baa1905cedf2c897 + expression: 'last(/MSSQL by ODBC/mssql.job.runstatus["{#JOBNAME}"])=0' + name: 'MSSQL: Job ''{#JOBNAME}'': Failed to run' + priority: WARNING + description: 'The last run of the job has failed.' + manual_close: 'YES' + tags: + - tag: mssql-job + value: '{#JOBNAME}' + - tag: scope + value: performance + - uuid: 69da58fe4c7e42028fa96388df526103 + name: 'MSSQL Job ''{#JOBNAME}'': Run duration' + type: DEPENDENT + key: 'mssql.job.run_duration["{#JOBNAME}"]' + delay: '0' + units: s + description: 'Duration of the last-run job.' + preprocessing: + - type: JSONPATH + parameters: + - $.run_duration + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + trigger_prototypes: + - uuid: 7e45cb8f41114388ac8772006d929da2 + expression: 'last(/MSSQL by ODBC/mssql.job.run_duration["{#JOBNAME}"])>{$MSSQL.JOB_DURATION.WARN:"{#JOBNAME}"}' + name: 'MSSQL: Job ''{#JOBNAME}'': Job duration is high' + event_name: 'MSSQL: Job ''{#JOBNAME}'': Job duration is greater than {$MSSQL.JOB_DURATION.WARN:"{#JOBNAME}"}' + opdata: 'Job duration: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The job is taking too long.' + manual_close: 'YES' + tags: + - tag: mssql-job + value: '{#JOBNAME}' + - tag: scope + value: performance + - uuid: 3660503b46be4c92a7b1d5040bc8cd0d + name: 'MSSQL Job ''{#JOBNAME}'': Get job status' + type: DEPENDENT + key: 'mssql.job.status_raw["{#JOBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets the status of SQL agent job {#JOBNAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.job_name==''{#JOBNAME}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.get[get_job_status,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: raw + - tag: mssql-job + value: '{#JOBNAME}' + master_item: + key: 'db.odbc.get[get_job_status,"{$MSSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#JOBNAME}' + path: $.job_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: af25f87b29c24c05a57a82f7b1347ad4 + name: 'Local database discovery' + type: DEPENDENT + key: mssql.local.db.discovery + delay: '0' + description: 'Discovery of the local availability databases.' + item_prototypes: + - uuid: 7e4baf2802394b93bf5770f4f72d7f05 + name: 'MSSQL AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': Suspended' + type: DEPENDENT + key: 'mssql.local_db.is_suspended["{#DBNAME}"]' + delay: '0' + description: | + Database state: + 0 = Resumed + 1 = Suspended + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'' && @.group_name==''{#GROUP_NAME}'')].is_suspended.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_local_db,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: local-db + - tag: local-db + value: '{#DBNAME}' + - uuid: f8111429599e49bd947a12b9771d1a3d + name: 'MSSQL AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': State' + type: DEPENDENT + key: 'mssql.local_db.state["{#DBNAME}"]' + delay: '0' + description: | + 0 = Online + 1 = Restoring + 2 = Recovering + 3 = Recovery pending + 4 = Suspect + 5 = Emergency + 6 = Offline + valuemap: + name: 'MSSQL DB state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'' && @.group_name==''{#GROUP_NAME}'')].database_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_local_db,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: local-db + - tag: local-db + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 78923c9c52e74c80a77d418afe9e438d + expression: 'last(/MSSQL by ODBC/mssql.local_db.state["{#DBNAME}"])>0' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': "{#DBNAME}" is {ITEM.VALUE}' + priority: WARNING + description: 'The local availability database has a non-working state.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: local-db + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: e7d7fbac95e94c45b6515c8e1b7baf1a + name: 'MSSQL AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': Synchronization health' + type: DEPENDENT + key: 'mssql.local_db.synchronization_health["{#DBNAME}"]' + delay: '0' + description: | + Reflects the intersection of the synchronization state of a database that is joined to the availability group on the availability replica and the availability mode of the availability replica (synchronous-commit or asynchronous-commit mode): + 0 = Not healthy. The synchronization_state of the database is 0 ("Not synchronizing"). + 1 = Partially healthy. A database on a synchronous-commit availability replica is considered partially healthy if synchronization_state is 1 ("Synchronizing"). + 2 = Healthy. A database on an synchronous-commit availability replica is considered healthy if synchronization_state is 2 ("Synchronized"), and a database on an asynchronous-commit availability replica is considered healthy if synchronization_state is 1 ("Synchronizing"). + valuemap: + name: 'MSSQL AG Synchronization health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'' && @.group_name==''{#GROUP_NAME}'')].synchronization_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_local_db,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: local-db + - tag: local-db + value: '{#DBNAME}' + trigger_prototypes: + - uuid: e51c10f9d86d458da9fdb7e21b4e0102 + expression: 'last(/MSSQL by ODBC/mssql.local_db.synchronization_health["{#DBNAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': "{#DBNAME}" is Not healthy' + priority: HIGH + description: 'The synchronization state of the local availability database is "Not synchronizing".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: local-db + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: dc636f10f12c4f1ead597eca778561ec + expression: 'last(/MSSQL by ODBC/mssql.local_db.synchronization_health["{#DBNAME}"])=1' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': "{#DBNAME}" is Partially healthy' + priority: AVERAGE + description: 'A database on a synchronous-commit availability replica is considered partially healthy if synchronization state is "Synchronizing".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: local-db + value: '{#DBNAME}' + - tag: scope + value: availability + master_item: + key: 'db.odbc.get[get_local_db,"{$MSSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#DBNAME}' + path: $.dbname + - lld_macro: '{#GROUP_NAME}' + path: $.group_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: d247eb5485f145ff9487424371a802b7 + name: 'Mirroring discovery' + type: DEPENDENT + key: mssql.mirroring.discovery + delay: '0' + description: 'To see the row for a database other than master or tempdb, you must either be the database owner or have at least ALTER ANY DATABASE or VIEW ANY DATABASE server-level permission or CREATE DATABASE permission in the master database. To see non-NULL values on a mirror database, you must be a member of the sysadmin fixed server role.' + item_prototypes: + - uuid: faccb61c8215482ab375c03444a0e8fd + name: 'MSSQL Mirroring ''{#DBNAME}'': Role' + type: DEPENDENT + key: 'mssql.mirroring.role["{#DBNAME}"]' + delay: '0' + description: | + Current role of the local database plays in the database mirroring session. + 1 = Principal + 2 = Mirror + valuemap: + name: 'MSSQL Mirroring Role' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')].mirroring_role.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_db_mirroring,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: mssql-mirroring + - tag: mssql-mirroring + value: '{#DBNAME}' + - uuid: 19cdd945ced447d28b7480c07c1f61bc + name: 'MSSQL Mirroring ''{#DBNAME}'': Role sequence' + type: DEPENDENT + key: 'mssql.mirroring.role_sequence["{#DBNAME}"]' + delay: '0' + description: 'The number of times that mirroring partners have switched the principal and mirror roles due to a failover or forced service.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')].mirroring_role_sequence.first()' + - type: SIMPLE_CHANGE + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_db_mirroring,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: mssql-mirroring + - tag: mssql-mirroring + value: '{#DBNAME}' + - uuid: bedb23d788074424afdb2751c8a7e2b7 + name: 'MSSQL Mirroring ''{#DBNAME}'': Safety level' + type: DEPENDENT + key: 'mssql.mirroring.safety_level["{#DBNAME}"]' + delay: '0' + description: | + Safety setting for updates on the mirror database: + 0 = Unknown state + 1 = Off [asynchronous] + 2 = Full [synchronous] + valuemap: + name: 'MSSQL Safety level' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')].mirroring_safety_level.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_db_mirroring,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: mssql-mirroring + - tag: mssql-mirroring + value: '{#DBNAME}' + - uuid: 5df06f00a6194242af45ff5cccf43988 + name: 'MSSQL Mirroring ''{#DBNAME}'': State' + type: DEPENDENT + key: 'mssql.mirroring.state["{#DBNAME}"]' + delay: '0' + description: | + State of the mirror database and of the database mirroring session. + 0 = Suspended + 1 = Disconnected from the other partner + 2 = Synchronizing + 3 = Pending failover + 4 = Synchronized + 5 = The partners are not synchronized. Failover is not possible now. + 6 = The partners are synchronized. Failover is potentially possible. For information about the requirements for the failover, see Database Mirroring Operating Modes: https://learn.microsoft.com/en-us/sql/database-engine/database-mirroring/database-mirroring-operating-modes?view=sql-server-ver16. + valuemap: + name: 'MSSQL Mirroring State' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')].mirroring_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_db_mirroring,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: mssql-mirroring + - tag: mssql-mirroring + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 323543b0df0e474abf9190a9630242b1 + expression: 'last(/MSSQL by ODBC/mssql.mirroring.state["{#DBNAME}"])=3' + name: 'MSSQL: Mirroring ''{#DBNAME}'': "{#DBNAME}" is {ITEM.VALUE}' + priority: WARNING + description: 'The state of the mirror database and of the database mirroring session is "Pending failover".' + tags: + - tag: mssql-mirroring + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 9a2bcdfb32654a55b8a75c8bf4331950 + expression: 'last(/MSSQL by ODBC/mssql.mirroring.state["{#DBNAME}"])=5' + name: 'MSSQL: Mirroring ''{#DBNAME}'': "{#DBNAME}" is {ITEM.VALUE}' + priority: HIGH + description: 'The state of the mirror database and of the database mirroring session is "Not synchronized". The partners are not synchronized. A failover is not possible now.' + tags: + - tag: mssql-mirroring + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: c673a7c4820840528a4aa1771a5a56d4 + expression: 'last(/MSSQL by ODBC/mssql.mirroring.state["{#DBNAME}"])>=0 and last(/MSSQL by ODBC/mssql.mirroring.state["{#DBNAME}"])<=2' + name: 'MSSQL: Mirroring ''{#DBNAME}'': "{#DBNAME}" is {ITEM.VALUE}' + priority: INFO + description: 'The state of the mirror database and of the database mirroring session is "Suspended", "Disconnected from the other partner", or "Synchronizing".' + tags: + - tag: mssql-mirroring + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 7e4763d493a745e99082ca71a54c23c2 + name: 'MSSQL Mirroring ''{#DBNAME}'': Witness state' + type: DEPENDENT + key: 'mssql.mirroring.witness_state["{#DBNAME}"]' + delay: '0' + description: | + State of the witness in the database mirroring session of the database: + 0 = Unknown + 1 = Connected + 2 = Disconnected + valuemap: + name: 'MSSQL Witness state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')].mirroring_witness_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_db_mirroring,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: mssql-mirroring + - tag: mssql-mirroring + value: '{#DBNAME}' + trigger_prototypes: + - uuid: ec374424b79346c99f1d815e0815c799 + expression: 'last(/MSSQL by ODBC/mssql.mirroring.witness_state["{#DBNAME}"])=2' + name: 'MSSQL: Mirroring ''{#DBNAME}'': "{#DBNAME}" Witness is disconnected' + priority: WARNING + description: 'The state of the witness in the database mirroring session of the database is "Disconnected".' + tags: + - tag: mssql-mirroring + value: '{#DBNAME}' + - tag: scope + value: availability + graph_prototypes: + - uuid: 9bf9203bd4b449b39e288fbb79f9d627 + name: 'Mirroring ''{#DBNAME}'': States' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: 'mssql.mirroring.state["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: 'mssql.mirroring.witness_state["{#DBNAME}"]' + master_item: + key: 'db.odbc.get[get_db_mirroring,"{$MSSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#DBNAME}' + path: $.dbname + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: dcf4eae19c7043fc85f7ec414502ef84 + name: 'Non-local database discovery' + type: DEPENDENT + key: mssql.non.local.db.discovery + delay: '0' + description: 'Discovery of the non-local (not local to SQL Server instance) availability databases.' + item_prototypes: + - uuid: 32d3797d6b22413e98aa206d3092947f + name: 'MSSQL AG ''{#GROUP_NAME}'' Non-Local DB ''*{#REPLICA_NAME}*{#DBNAME}'': Log queue size' + type: DEPENDENT + key: 'mssql.non-local_db.log_send_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"]' + delay: '0' + units: B + description: 'Amount of the log records of the primary database that has not been sent to the secondary databases.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'' && @.group_name==''{#GROUP_NAME}'' && @.replica_name==''{#REPLICA_NAME}'')].log_send_queue_size.first()' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_non_local_db,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: non-local-db + - tag: non-local-db + value: '{#DBNAME}' + trigger_prototypes: + - uuid: def3b1d47dac4d039bffcc78f955b433 + expression: 'last(/MSSQL by ODBC/mssql.non-local_db.log_send_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#1)>last(/MSSQL by ODBC/mssql.non-local_db.log_send_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#2) and last(/MSSQL by ODBC/mssql.non-local_db.log_send_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#2)>last(/MSSQL by ODBC/mssql.non-local_db.log_send_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#3)' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Non-Local DB ''*{#REPLICA_NAME}*{#DBNAME}'': Log queue size is growing' + priority: HIGH + description: 'The log records of the primary database are not sent to the secondary databases.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: non-local-db + value: '{#DBNAME}' + - tag: scope + value: capacity + - uuid: 66d9735553754192bb9acf7b27c1501f + name: 'MSSQL AG ''{#GROUP_NAME}'' Non-Local DB ''*{#REPLICA_NAME}*{#DBNAME}'': Redo log queue size' + type: DEPENDENT + key: 'mssql.non-local_db.redo_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"]' + delay: '0' + units: B + description: 'Amount of log records in the log files of the secondary replica that has not yet been redone.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'' && @.group_name==''{#GROUP_NAME}'' && @.replica_name==''{#REPLICA_NAME}'')].redo_queue_size.first()' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_non_local_db,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: non-local-db + - tag: non-local-db + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 2102f244f58b4fe981d569fe0fe599a9 + expression: 'last(/MSSQL by ODBC/mssql.non-local_db.redo_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#1)>last(/MSSQL by ODBC/mssql.non-local_db.redo_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#2) and last(/MSSQL by ODBC/mssql.non-local_db.redo_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#2)>last(/MSSQL by ODBC/mssql.non-local_db.redo_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#3)' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Non-Local DB ''*{#REPLICA_NAME}*{#DBNAME}'': Redo log queue size is growing' + priority: HIGH + description: 'The log records in the log files of the secondary replica have not yet been redone.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: non-local-db + value: '{#DBNAME}' + - tag: scope + value: capacity + master_item: + key: 'db.odbc.get[get_non_local_db,"{$MSSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#DBNAME}' + path: $.dbname + - lld_macro: '{#GROUP_NAME}' + path: $.group_name + - lld_macro: '{#REPLICA_NAME}' + path: $.replica_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: baed17bf5a4846439e720388c9ae7c17 + name: 'Quorum discovery' + type: DEPENDENT + key: mssql.quorum.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CLUSTER_NAME}' + value: ^.+$ + formulaid: A + description: 'Discovery of the quorum of the WSFC cluster.' + item_prototypes: + - uuid: 6c30ce79872d4bb2b27965acd277e1e9 + name: 'MSSQL Cluster ''{#CLUSTER_NAME}'': Quorum state' + type: DEPENDENT + key: 'mssql.quorum.state.[{#CLUSTER_NAME}]' + delay: '0' + description: | + State of the WSFC quorum, one of: + 0 = Unknown quorum state + 1 = Normal quorum + 2 = Forced quorum + valuemap: + name: 'MSSQL Quorum state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.cluster_name==''{#CLUSTER_NAME}'')].quorum_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_quorum,"{$MSSQL.DSN}"]' + tags: + - tag: cluster-name + value: '{#CLUSTER_NAME}' + - tag: component + value: quorum + - uuid: 4d7f29272d1c4889bae0aa50bcd31e9c + name: 'MSSQL Cluster ''{#CLUSTER_NAME}'': Quorum type' + type: DEPENDENT + key: 'mssql.quorum.type.[{#CLUSTER_NAME}]' + delay: '0' + description: | + Type of quorum used by this WSFC cluster, one of: + 0 = Node Majority. This quorum configuration can sustain failures of half the nodes (rounding up) minus one. + 1 = Node and Disk Majority. If the disk witness remains on line, this quorum configuration can sustain failures of half the nodes (rounding up). + 2 = Node and File Share Majority. This quorum configuration works in a similar way to Node and Disk Majority, but uses a file-share witness instead of a disk witness. + 3 = No Majority: Disk Only. If the quorum disk is online, this quorum configuration can sustain failures of all nodes except one. + 4 = Unknown Quorum. Unknown quorum for the cluster. + 5 = Cloud Witness. Cluster utilizes Microsoft Azure for quorum arbitration. If the cloud witness is available, the cluster can sustain the failure of half the nodes (rounding up). + valuemap: + name: 'MSSQL Quorum type' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.cluster_name==''{#CLUSTER_NAME}'')].quorum_type.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'db.odbc.get[get_quorum,"{$MSSQL.DSN}"]' + tags: + - tag: cluster-name + value: '{#CLUSTER_NAME}' + - tag: component + value: quorum + master_item: + key: 'db.odbc.get[get_quorum,"{$MSSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#CLUSTER_NAME}' + path: $.cluster_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: 1ea73914e10e407abe3b4e715f6759b4 + name: 'Quorum members discovery' + type: DEPENDENT + key: mssql.quorum.member.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CLUSTER_NAME}' + value: ^.+$ + formulaid: A + - macro: '{#MEMBER_NAME}' + value: '{$MSSQL.QUORUM.MEMBER.DISCOVERY.NAME.MATCHES}' + formulaid: B + - macro: '{#MEMBER_NAME}' + value: '{$MSSQL.QUORUM.MEMBER.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Discovery of the quorum members of the WSFC cluster.' + item_prototypes: + - uuid: 0dc6b43da4854b1cbb41ad0d5c5079a9 + name: 'MSSQL Cluster member ''{#MEMBER_NAME}'': Member state' + type: DEPENDENT + key: 'mssql.quorum_members.member_state.[{#MEMBER_NAME}]' + delay: '0' + description: | + The member state, one of: + 0 = Offline + 1 = Online + valuemap: + name: 'MSSQL Quorum members state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.member_name==''{#MEMBER_NAME}'')].member_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_quorum_member,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: 'quorum members' + - tag: quorum-members-name + value: '{#MEMBER_NAME}' + - uuid: 337cd4bfedc846048fc366bb7cf1bebd + name: 'MSSQL Cluster member ''{#MEMBER_NAME}'': Member type' + type: DEPENDENT + key: 'mssql.quorum_members.member_type.[{#MEMBER_NAME}]' + delay: '0' + description: | + The type of member, one of: + 0 = WSFC node + 1 = Disk witness + 2 = File share witness + 3 = Cloud Witness + valuemap: + name: 'MSSQL Quorum members type' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.member_name==''{#MEMBER_NAME}'')].member_type.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'db.odbc.get[get_quorum_member,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: 'quorum members' + - tag: quorum-members-name + value: '{#MEMBER_NAME}' + - uuid: d8fff68f86494892bbe1cb2c6b281075 + name: 'MSSQL Cluster member ''{#MEMBER_NAME}'': Number of quorum votes' + type: DEPENDENT + key: 'mssql.quorum_members.number_of_quorum_votes.[{#MEMBER_NAME}]' + delay: '0' + description: 'Number of quorum votes possessed by this quorum member.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.member_name==''{#MEMBER_NAME}'')].number_of_quorum_votes.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'db.odbc.get[get_quorum_member,"{$MSSQL.DSN}"]' + tags: + - tag: component + value: 'quorum members' + - tag: quorum-members-name + value: '{#MEMBER_NAME}' + master_item: + key: 'db.odbc.get[get_quorum_member,"{$MSSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#CLUSTER_NAME}' + path: $.cluster_name + - lld_macro: '{#MEMBER_NAME}' + path: $.member_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: 024656ffe254416781cb4ad52ae456ea + name: 'Replication discovery' + type: DEPENDENT + key: mssql.replica.discovery + delay: '0' + description: 'Discovery of the database replicas.' + item_prototypes: + - uuid: 7403de703b024d428edfc59f3aa9181b + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Connected state' + type: DEPENDENT + key: 'mssql.replica.connected_state["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Whether a secondary replica is currently connected to the primary replica: + 0 = Disconnected. The response of an availability replica to the "Disconnected" state depends on its role: + On the primary replica, if a secondary replica is disconnected, its secondary databases are marked as "Not synchronized" on the primary replica, which waits for the secondary to reconnect; + On a secondary replica, upon detecting that it is disconnected, the secondary replica attempts to reconnect to the primary replica. + 1 = Connected. Each primary replica tracks the connection state for every secondary replica in the same availability group. Secondary replicas track the connection state of only the primary replica. + valuemap: + name: 'MSSQL AG Connected state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].connected_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_replica,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + - uuid: 51cb8f4fe5954c0ea21eff6102034862 + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Is local' + type: DEPENDENT + key: 'mssql.replica.is_local["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Whether the replica is local: + 0 = Indicates a remote secondary replica in an availability group whose primary replica is hosted by the local server instance. This value occurs only on the primary replica location. + 1 = Indicates a local replica. On secondary replicas, this is the only available value for the availability group to which the replica belongs. + valuemap: + name: 'MSSQL - Yes / No' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].is_local.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_replica,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + - uuid: ec1b71f75c4247c28d5830bd8004f0ac + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Join state' + type: DEPENDENT + key: 'mssql.replica.join_state["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + 0 = Not joined + 1 = Joined, standalone instance + 2 = Joined, failover cluster instance + valuemap: + name: 'MSSQL AG Join state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].join_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_replica,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + - uuid: ad3e6d5bf510496eb050b9a05f8341e1 + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Operational state' + type: DEPENDENT + key: 'mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Current operational state of the replica: + 0 = Pending failover + 1 = Pending + 2 = Online + 3 = Offline + 4 = Failed + 5 = Failed, no quorum + 6 = Not local + valuemap: + name: 'MSSQL AG Operational state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].operational_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_replica,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + trigger_prototypes: + - uuid: 0192e9d5795a4d46acb8de29f710edcd + expression: 'last(/MSSQL by ODBC/mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=0 or last(/MSSQL by ODBC/mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=1 or last(/MSSQL by ODBC/mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=3' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is {ITEM.VALUE}' + priority: WARNING + description: 'The operational state of the replica in a given availability group is "Pending" or "Offline".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + - uuid: 3f2006b9ae114e01b442b34fec9373d3 + expression: 'last(/MSSQL by ODBC/mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=4' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is {ITEM.VALUE}' + priority: AVERAGE + description: 'The operational state of the replica in a given availability group is "Failed".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + - uuid: 94ea79848a5048d8ae417df709b8d612 + expression: 'last(/MSSQL by ODBC/mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=5' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is {ITEM.VALUE}' + priority: HIGH + description: 'The operational state of the replica in a given availability group is "Failed, no quorum".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + - uuid: 2a58cab2197348d997bdb69bb128414d + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Recovery health' + type: DEPENDENT + key: 'mssql.replica.recovery_health["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Rollup of the "database_state" column of the `sys.dm_hadr_database_replica_states` dynamic management view: + 0 = In progress. At least one joined database has a database state other than "Online" (database_state is not "0"). + 1 = Online. All the joined databases have a database state of "Online" (database_state is "0"). + valuemap: + name: 'MSSQL AG Recovery health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].recovery_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_replica,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + trigger_prototypes: + - uuid: 58f508b855364d769e2be977793a03c8 + expression: 'last(/MSSQL by ODBC/mssql.replica.recovery_health["{#GROUP_NAME}_{#REPLICA_NAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} Recovery in progress' + priority: INFO + description: 'At least one joined database has a database state other than "Online".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: notice + - uuid: 5139a4cef5ac46d2ab34cd8bda1c84ac + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Role' + type: DEPENDENT + key: 'mssql.replica.role["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Current Always On availability group role of a local replica or a connected remote replica: + 0 = Resolving + 1 = Primary + 2 = Secondary + valuemap: + name: 'MSSQL AG Role' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].role.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_replica,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + - uuid: 5655f95df0e043acba246f65e4905b0d + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Sync health' + type: DEPENDENT + key: 'mssql.replica.synchronization_health["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Reflects a rollup of the database synchronization state (synchronization_state) of all joined availability databases (also known as replicas) and the availability mode of the replica (synchronous-commit or asynchronous-commit mode). The rollup will reflect the least healthy accumulated state of the databases on the replica: + 0 = Not healthy. At least one joined database is in the "Not synchronizing" state. + 1 = Partially healthy. Some replicas are not in the target synchronization state: synchronous-commit replicas should be synchronized, and asynchronous-commit replicas should be synchronizing. + 2 = Healthy. All replicas are in the target synchronization state: synchronous-commit replicas are synchronized, and asynchronous-commit replicas are synchronizing. + valuemap: + name: 'MSSQL AG Synchronization health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].synchronization_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_replica,"{$MSSQL.DSN}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + trigger_prototypes: + - uuid: f2f4d198ad2242088d867abe6fac4ecd + expression: 'last(/MSSQL by ODBC/mssql.replica.synchronization_health["{#GROUP_NAME}_{#REPLICA_NAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is Not healthy' + priority: AVERAGE + description: 'At least one joined database is in the "Not synchronizing" state.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + - uuid: 070af612aa7248588fc058d8f9fb9929 + expression: 'last(/MSSQL by ODBC/mssql.replica.synchronization_health["{#GROUP_NAME}_{#REPLICA_NAME}"])=1' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is Partially healthy' + priority: WARNING + description: 'Some replicas are not in the target synchronization state: synchronous-commit replicas should be synchronized, and asynchronous-commit replicas should be synchronizing.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + trigger_prototypes: + - uuid: 7c6afc5596e94af0979bd20d5ef542ea + expression: 'last(/MSSQL by ODBC/mssql.replica.connected_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=0 and last(/MSSQL by ODBC/mssql.replica.role["{#GROUP_NAME}_{#REPLICA_NAME}"])=2' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is disconnected' + priority: WARNING + description: | + The response of an availability replica to the "Disconnected" state depends on its role: + On the primary replica, if a secondary replica is disconnected, its secondary databases are marked as "Not synchronized" on the primary replica, which waits for the secondary to reconnect; + On a secondary replica, upon detecting that it is disconnected, the secondary replica attempts to reconnect to the primary replica. + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + master_item: + key: 'db.odbc.get[get_replica,"{$MSSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#GROUP_NAME}' + path: $.group_name + - lld_macro: '{#REPLICA_NAME}' + path: $.replica_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: class + value: database + - tag: target + value: mssql + macros: + - macro: '{$MSSQL.AVERAGE_WAIT_TIME.MAX}' + value: '500' + description: 'The maximum average wait time, in milliseconds - for the trigger expression.' + - macro: '{$MSSQL.BACKUP_DIFF.CRIT}' + value: 6d + description: 'The maximum of days without a differential backup - for the High trigger expression.' + - macro: '{$MSSQL.BACKUP_DIFF.USED}' + value: '1' + description: 'The flag for checking the age of a differential backup. If set to a value other than "1", the trigger expression for the differential backup age will not fire. Can be used with context for database name.' + - macro: '{$MSSQL.BACKUP_DIFF.WARN}' + value: 3d + description: 'The maximum of days without a differential backup - for the Warning trigger expression.' + - macro: '{$MSSQL.BACKUP_FULL.CRIT}' + value: 10d + description: 'The maximum of days without a full backup - for the High trigger expression.' + - macro: '{$MSSQL.BACKUP_FULL.USED}' + value: '1' + description: 'The flag for checking the age of a full backup. If set to a value other than "1", the trigger expression for the full backup age will not fire. Can be used with context for database name.' + - macro: '{$MSSQL.BACKUP_FULL.WARN}' + value: 9d + description: 'The maximum of days without a full backup - for the Warning trigger expression.' + - macro: '{$MSSQL.BACKUP_LOG.CRIT}' + value: 8h + description: 'The maximum of days without a log backup - for the High trigger expression.' + - macro: '{$MSSQL.BACKUP_LOG.USED}' + value: '1' + description: 'The flag for checking the age of a log backup. If set to a value other than "1", the trigger expression for the log backup age will not fire. Can be used with context for database name.' + - macro: '{$MSSQL.BACKUP_LOG.WARN}' + value: 4h + description: 'The maximum of days without a log backup - for the Warning trigger expression.' + - macro: '{$MSSQL.BUFFER_CACHE_RATIO.MIN.CRIT}' + value: '30' + description: 'The minimum buffer cache hit ratio, in percent - for the High trigger expression.' + - macro: '{$MSSQL.BUFFER_CACHE_RATIO.MIN.WARN}' + value: '50' + description: 'The minimum buffer cache hit ratio, in percent - for the Warning trigger expression.' + - macro: '{$MSSQL.DBNAME.MATCHES}' + value: '.*' + description: 'This macro is used in database discovery. It can be overridden on the host or linked template level.' + - macro: '{$MSSQL.DBNAME.NOT_MATCHES}' + value: master|tempdb|model|msdb + description: 'This macro is used in database discovery. It can be overridden on the host or linked template level.' + - macro: '{$MSSQL.DEADLOCKS.MAX}' + value: '1' + description: 'The maximum deadlocks per second - for the trigger expression.' + - macro: '{$MSSQL.DSN}' + value: '' + description: 'System data source name.' + - macro: '{$MSSQL.FREE_LIST_STALLS.MAX}' + value: '2' + description: 'The maximum free list stalls per second - for the trigger expression.' + - macro: '{$MSSQL.HOST}' + value: localhost + description: 'The hostname or IP address of the MSSQL instance.' + - macro: '{$MSSQL.JOB.MATCHES}' + value: '.*' + description: 'This macro is used in job discovery. It can be overridden on the host or linked template level.' + - macro: '{$MSSQL.JOB.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in job discovery. It can be overridden on the host or linked template level.' + - macro: '{$MSSQL.JOB_DURATION.WARN}' + value: 1h + description: 'The maximum job duration - for the Warning trigger expression.' + - macro: '{$MSSQL.LAZY_WRITES.MAX}' + value: '20' + description: 'The maximum lazy writes per second - for the trigger expression.' + - macro: '{$MSSQL.LOCK_REQUESTS.MAX}' + value: '1000' + description: 'The maximum lock requests per second - for the trigger expression.' + - macro: '{$MSSQL.LOCK_TIMEOUTS.MAX}' + value: '1' + description: 'The maximum lock timeouts per second - for the trigger expression.' + - macro: '{$MSSQL.LOG_FLUSH_WAITS.MAX}' + value: '1' + description: 'The maximum log flush waits per second - for the trigger expression.' + - macro: '{$MSSQL.LOG_FLUSH_WAIT_TIME.MAX}' + value: '1' + description: 'The maximum log flush wait time, in milliseconds - for the trigger expression.' + - macro: '{$MSSQL.PAGE_LIFE_EXPECTANCY.MIN}' + value: '300' + description: 'The minimum page life expectancy - for the trigger expression.' + - macro: '{$MSSQL.PAGE_READS.MAX}' + value: '90' + description: 'The maximum page reads per second - for the trigger expression.' + - macro: '{$MSSQL.PAGE_WRITES.MAX}' + value: '90' + description: 'The maximum page writes per second - for the trigger expression.' + - macro: '{$MSSQL.PASSWORD}' + value: '' + description: 'MSSQL user password.' + - macro: '{$MSSQL.PERCENT_COMPILATIONS.MAX}' + value: '10' + description: 'The maximum percentage of Transact-SQL compilations - for the trigger expression.' + - macro: '{$MSSQL.PERCENT_LOG_USED.MAX}' + value: '80' + description: 'The maximum percentage of log used - for the trigger expression.' + - macro: '{$MSSQL.PERCENT_READAHEAD.MAX}' + value: '20' + description: 'The maximum percentage of pages read per second in anticipation of use - for the trigger expression.' + - macro: '{$MSSQL.PERCENT_RECOMPILATIONS.MAX}' + value: '10' + description: 'The maximum percentage of Transact-SQL recompilations - for the trigger expression.' + - macro: '{$MSSQL.PORT}' + value: '1433' + description: 'MSSQL TCP port.' + - macro: '{$MSSQL.QUORUM.MEMBER.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Filter to include discovered quorum member by name.' + - macro: '{$MSSQL.QUORUM.MEMBER.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered quorum member by name.' + - macro: '{$MSSQL.USER}' + value: '' + description: 'MSSQL username.' + - macro: '{$MSSQL.WORKTABLES_FROM_CACHE_RATIO.MIN.CRIT}' + value: '90' + description: 'The minimum percentage of work tables from the cache ratio - for the High trigger expression.' + - macro: '{$MSSQL.WORK_FILES.MAX}' + value: '20' + description: 'The maximum number of work files created per second - for the trigger expression.' + - macro: '{$MSSQL.WORK_TABLES.MAX}' + value: '20' + description: 'The maximum number of work tables created per second - for the trigger expression.' + dashboards: + - uuid: 168d5d7b54374d8a951818ba619e0319 + name: 'MSSQL: Overview' + pages: + - name: Main + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Errors' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Server memory' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Waits per second' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Database pages' + - type: STRING + name: reference + value: AAAAG + - type: graph + 'y': '20' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Transactions' + - type: STRING + name: reference + value: AAAAI + - type: graph + 'y': '25' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Pages' + - type: STRING + name: reference + value: AAAAK + - type: graph + 'y': '30' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Memory grants outstanding and pending' + - type: STRING + name: reference + value: AAAAM + - type: graph + 'y': '35' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Access methods' + - type: STRING + name: reference + value: AAAAO + - type: graph + 'y': '40' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Logins per second and Logouts per second' + - type: STRING + name: reference + value: AAAAQ + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Locks' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Memory/cache load' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Wait times' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Cache objects' + - type: STRING + name: reference + value: AAAAH + - type: graph + x: '36' + 'y': '20' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Compilations' + - type: STRING + name: reference + value: AAAAJ + - type: graph + x: '36' + 'y': '25' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Page life expectancy' + - type: STRING + name: reference + value: AAAAL + - type: graph + x: '36' + 'y': '30' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Processes blocked' + - type: STRING + name: reference + value: AAAAN + - type: graph + x: '36' + 'y': '35' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'MSSQL: Auto-params' + - type: STRING + name: reference + value: AAAAP + - name: Databases + widgets: + - type: graphprototype + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'DB ''{#DBNAME}'': Size' + - type: STRING + name: reference + value: AAAAR + - type: INTEGER + name: rows + value: '3' + - type: graphprototype + x: '36' + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MSSQL by ODBC' + name: 'DB ''{#DBNAME}'': Log size' + - type: STRING + name: reference + value: AAAAS + - type: INTEGER + name: rows + value: '3' + valuemaps: + - uuid: c66ee50a8b3f4b6788b732bb8a6b514e + name: 'MSSQL - Yes / No' + mappings: + - value: '0' + newvalue: 'No' + - value: '1' + newvalue: 'Yes' + - uuid: bfbb00eb85d747dabeda2954a5d659b7 + name: 'MSSQL AG Connected state' + mappings: + - value: '0' + newvalue: Disconnected + - value: '1' + newvalue: Connected + - uuid: 47413c135c094cdc8b59f18a9b195a78 + name: 'MSSQL AG Join state' + mappings: + - value: '0' + newvalue: 'Not joined' + - value: '1' + newvalue: 'Joined, standalone instance' + - value: '2' + newvalue: 'Joined, failover cluster instance' + - uuid: a570f341d9a8470797aecfebd376b2b8 + name: 'MSSQL AG Operational state' + mappings: + - value: '0' + newvalue: 'Pending failover' + - value: '1' + newvalue: Pending + - value: '2' + newvalue: Online + - value: '3' + newvalue: Offline + - value: '4' + newvalue: Failed + - value: '5' + newvalue: 'Failed, no quorum' + - value: '6' + newvalue: 'Replica is not local' + - uuid: 4ec6a96ff6c64756b2f27e47972fd9f6 + name: 'MSSQL AG Recovery health' + mappings: + - value: '0' + newvalue: 'In progress' + - value: '1' + newvalue: Online + - value: '2' + newvalue: 'Replica is not local' + - uuid: 596556fba6064efb8155233371eb2950 + name: 'MSSQL AG Role' + mappings: + - value: '0' + newvalue: Resolving + - value: '1' + newvalue: Primary + - value: '2' + newvalue: Secondary + - uuid: 2ab0923b3ce14ffc9dd454114f6b15be + name: 'MSSQL AG Synchronization health' + mappings: + - value: '0' + newvalue: 'Not healthy' + - value: '1' + newvalue: 'Partially healthy' + - value: '2' + newvalue: Healthy + - uuid: bac1a10dad134d50add5bc9550e2ebf3 + name: 'MSSQL DB state' + mappings: + - value: '0' + newvalue: ONLINE + - value: '1' + newvalue: RESTORING + - value: '2' + newvalue: RECOVERING + - value: '3' + newvalue: RECOVERY_PENDING + - value: '4' + newvalue: SUSPECT + - value: '5' + newvalue: EMERGENCY + - value: '6' + newvalue: OFFLINE + - value: '7' + newvalue: COPYING + - value: '10' + newvalue: OFFLINE_SECONDARY + - uuid: eefa6e0e6f8b4facbc12004437b7ee8f + name: 'MSSQL Job Run Status' + mappings: + - value: '0' + newvalue: Failed + - value: '1' + newvalue: Succeeded + - value: '2' + newvalue: Retry + - value: '3' + newvalue: Canceled + - value: '4' + newvalue: Running + - value: '5' + newvalue: Unknown + - uuid: 09aaa82ccd6a444b80d5d3bb182fbafd + name: 'MSSQL Mirroring Role' + mappings: + - value: '0' + newvalue: 'Database is inaccessible or is not mirrored' + - value: '1' + newvalue: Principal + - value: '2' + newvalue: Mirror + - uuid: f1c105c262c5476798a93eaa4c46fbda + name: 'MSSQL Mirroring State' + mappings: + - value: '0' + newvalue: Suspended + - value: '1' + newvalue: 'Disconnected from the other partner' + - value: '2' + newvalue: Synchronizing + - value: '3' + newvalue: 'Pending failover' + - value: '4' + newvalue: Synchronized + - value: '5' + newvalue: 'The partners are not synchronized. Failover is not possible now.' + - value: '6' + newvalue: 'The partners are synchronized. Failover is potentially possible.' + - value: '7' + newvalue: 'Database is inaccessible or is not mirrored' + - uuid: 1454643e9cad46f8953f4c054509151c + name: 'MSSQL Quorum members state' + mappings: + - value: '0' + newvalue: Offline + - value: '1' + newvalue: Online + - uuid: caa789916da048c691f8eef5a71a856e + name: 'MSSQL Quorum members type' + mappings: + - value: '0' + newvalue: 'WSFC node' + - value: '1' + newvalue: 'Disk witness' + - value: '2' + newvalue: 'File share witness' + - value: '3' + newvalue: 'Cloud Witness' + - uuid: 23c9fede4c9a4a21854b3fc83de459a7 + name: 'MSSQL Quorum state' + mappings: + - value: '0' + newvalue: 'Unknown quorum state' + - value: '1' + newvalue: 'Normal quorum' + - value: '2' + newvalue: 'Forced quorum' + - uuid: fbf296f404ad45d5b02e3c20104b9b9e + name: 'MSSQL Quorum type' + mappings: + - value: '0' + newvalue: 'Node Majority' + - value: '1' + newvalue: 'Node and Disk Majority' + - value: '2' + newvalue: 'Node and File Share Majority' + - value: '3' + newvalue: 'No Majority: Disk Only' + - value: '4' + newvalue: 'Unknown Quorum' + - value: '5' + newvalue: 'Cloud Witness' + - uuid: f59af5b534994dccaebb4afc3266520b + name: 'MSSQL Recovery model' + mappings: + - value: '1' + newvalue: FULL + - value: '2' + newvalue: BULK_LOGGED + - value: '3' + newvalue: SIMPLE + - uuid: e70421b2c3db4ce1937791bdb432040e + name: 'MSSQL Safety level' + mappings: + - value: '0' + newvalue: 'Unknown state' + - value: '1' + newvalue: 'Off [asynchronous]' + - value: '2' + newvalue: 'Full [synchronous]' + - value: '3' + newvalue: 'Database is inaccessible or is not mirrored' + - uuid: aa9de6e21d08486db04f29e10d11a94c + name: 'MSSQL Witness state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Connected + - value: '2' + newvalue: Disconnected + - value: '3' + newvalue: 'No witness exists' + - uuid: 03cde96b90a641598db572a662dc2064 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: a1397bd4e9334a24a34dba0687b263e6 + expression: 'last(/MSSQL by ODBC/mssql.forwarded_records_sec.rate) * 100 > 10 * last(/MSSQL by ODBC/mssql.batch_requests_sec.rate)' + name: 'MSSQL: Too frequently using pointers' + priority: WARNING + description: 'Rows with VARCHAR columns can experience expansion when VARCHAR values are updated with a longer string. In the case where the row cannot fit in the existing page, the row migrates, and access to the row will traverse a pointer. This only happens on heaps (tables without clustered indexes). In cases where clustered indexes cannot be used, drop non-clustered indexes, build a clustered index to reorg pages and rows, drop the clustered index, then recreate non-clustered indexes.' + tags: + - tag: scope + value: performance + - uuid: 2a58729eb605461b853ec4e855878226 + expression: 'last(/MSSQL by ODBC/mssql.readahead_pages_sec.rate) > {$MSSQL.PERCENT_READAHEAD.MAX} / 100 * last(/MSSQL by ODBC/mssql.page_reads_sec.rate)' + name: 'MSSQL: Too many physical reads occurring' + priority: WARNING + description: 'If this value makes up even a sizeable minority of the total "Page Reads/sec" (say, greater than 20% of the total page reads), you may have too many physical reads occurring.' + tags: + - tag: scope + value: performance + graphs: + - uuid: d2db0e08beb6445a8b5dd9fb46249265 + name: 'MSSQL: Access methods' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.forwarded_records_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.full_scans_sec.rate + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by ODBC' + key: mssql.index_searches_sec.rate + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by ODBC' + key: mssql.page_splits_sec.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'MSSQL by ODBC' + key: mssql.workfiles_created_sec.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'MSSQL by ODBC' + key: mssql.worktables_created_sec.rate + - uuid: f22186d86d9346fe9e1f3292e1f0017c + name: 'MSSQL: Auto-params' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.autoparam_attempts_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.failed_autoparams_sec.rate + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by ODBC' + key: mssql.safe_autoparams_sec.rate + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by ODBC' + key: mssql.unsafe_autoparams_sec.rate + - uuid: 24ef7368fb364616892c4928ba6167c6 + name: 'MSSQL: Cache objects' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.cache_object_counts + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.cache_objects_in_use + - uuid: 1f713999d38745b6bb2828e397a32970 + name: 'MSSQL: Compilations' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.sql_compilations_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.sql_recompilations_sec.rate + - uuid: 91af398cfb86472ba4a69e3df0816be7 + name: 'MSSQL: Database pages' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.database_pages + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.target_pages + - uuid: 0c9aaf223d6f4ba9bd17b0289af4bbe2 + name: 'MSSQL: Errors' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.errors_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.offline_errors_sec.rate + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by ODBC' + key: mssql.info_errors_sec.rate + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by ODBC' + key: mssql.kill_connection_errors_sec.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'MSSQL by ODBC' + key: mssql.user_errors_sec.rate + - uuid: e35985317393409b9a764adcb05f07d0 + name: 'MSSQL: Locks' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.lock_requests_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.lock_timeouts_sec.rate + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by ODBC' + key: mssql.number_deadlocks_sec.rate + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by ODBC' + key: mssql.lock_waits_sec.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'MSSQL by ODBC' + key: mssql.average_wait_time + - uuid: 8796ad9cc04f48cdbe8ef2cb5f429997 + name: 'MSSQL: Logins per second and Logouts per second' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.logins_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.logouts_sec.rate + - uuid: bc588f8933d846a19accdb66eb29ccb9 + name: 'MSSQL: Memory/cache load' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.cache_hit_ratio + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.buffer_cache_hit_ratio + - uuid: 3d431f6cc6d34ef5820f2a24f3872b41 + name: 'MSSQL: Memory grants outstanding and pending' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.memory_grants_outstanding + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.memory_grants_pending + - uuid: 0f0bc58e0c18421591d265f81c000021 + name: 'MSSQL: Page life expectancy' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.page_life_expectancy + - uuid: 2b1d0e42f61a4312998775d21f7cabb7 + name: 'MSSQL: Pages' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.page_lookups_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.page_reads_sec.rate + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by ODBC' + key: mssql.page_writes_sec.rate + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by ODBC' + key: mssql.readahead_pages_sec.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'MSSQL by ODBC' + key: mssql.checkpoint_pages_sec.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'MSSQL by ODBC' + key: mssql.free_list_stalls_sec.rate + - sortorder: '6' + color: C7A72D + item: + host: 'MSSQL by ODBC' + key: mssql.lazy_writes_sec.rate + - uuid: 2e9273b0472c4a3e9049bea3548301d5 + name: 'MSSQL: Processes blocked' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.processes_blocked + - uuid: f124ce3778bd4722bf0d2d598ac31b0f + name: 'MSSQL: Server memory' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.target_server_memory + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.total_server_memory + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by ODBC' + key: mssql.granted_workspace_memory + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by ODBC' + key: mssql.maximum_workspace_memory + - uuid: 59ffd52c5c334d20870fc209c6c61398 + name: 'MSSQL: Transactions' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.transactions_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.batch_requests_sec.rate + - uuid: 6979c0bcba0e4ac08c6bfefa0c648d40 + name: 'MSSQL: Waits per second' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.latch_waits_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.lock_waits_sec.rate + - uuid: 41cc736d93ce45d6aeb6dede77c97f08 + name: 'MSSQL: Wait times' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by ODBC' + key: mssql.average_latch_wait_time + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by ODBC' + key: mssql.total_latch_wait_time + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by ODBC' + key: mssql.average_wait_time + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by ODBC' + key: mssql.lock_wait_time diff --git a/MSSQL_by_Zabbix_agent_2.yaml b/MSSQL_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..a39e36f --- /dev/null +++ b/MSSQL_by_Zabbix_agent_2.yaml @@ -0,0 +1,4798 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 75fc96367e8d4588ba8314145fc12d35 + template: 'MSSQL by Zabbix agent 2' + name: 'MSSQL by Zabbix agent 2' + description: | + This template is designed for the effortless deployment of MSSQL monitoring by Zabbix via Zabbix agent 2 and uses a loadable plugin to run SQL queries. + + Setup: + + 1. Deploy Zabbix agent 2 with the MSSQL plugin. You can use this template starting with version 7.0.0 of Zabbix and 7.0.10 of the MSSQL plugin. + + For more information, see MSSQL plugin documentation: https://git.zabbix.com/projects/AP/repos/mssql/browse + + Important! Starting with version 7.0-4 of this template, the MSSQL plugin must be updated to a version equal to or above 7.0.10. (You can check the version of the template in its YAML file under the "vendor" section.) + + Loadable plugin requires installation of one of the following: + + - Separate package + + - Binary file + + - Compilation from sources: https://www.zabbix.com/documentation/7.0/manual/extensions/plugins/build + + 2. Create an MSSQL user for monitoring. + + View Server State and View Any Definition permissions should be granted to the user. + Grant this user read permissions to the sysjobschedules, sysjobhistory, and sysjobs tables. + + For more information, see MSSQL documentation: + + - Create a database user: https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/create-a-database-user?view=sql-server-ver16 + + - GRANT Server Permissions: https://docs.microsoft.com/en-us/sql/t-sql/statements/grant-server-permissions-transact-sql?view=sql-server-ver16 + + - Configure a User to Create and Manage SQL Server Agent Jobs: https://docs.microsoft.com/en-us/sql/ssms/agent/configure-a-user-to-create-and-manage-sql-server-agent-jobs?view=sql-server-ver16 + + 3. Set the user name and password in the host macros ({$MSSQL.USER} and {$MSSQL.PASSWORD}). + + 4. Set the connection string for the MSSQL instance in the {$MSSQL.URI} macro as a URI, such as , or specify the named session - . + + The "Service's TCP port state" item uses the {$MSSQL.HOST} and {$MSSQL.PORT} macros to check the availability of the MSSQL instance, change these if necessary. Keep in mind that if dynamic ports are used on the MSSQL server side, this check will not work correctly. + + Note: You can use the context macros {$MSSQL.BACKUP_FULL.USED}, {$MSSQL.BACKUP_LOG.USED}, and {$MSSQL.BACKUP_DIFF.USED} to disable backup age triggers for a certain database. If set to a value other than "1", the trigger expression for the backup age will not fire. + + Note: Since version 7.0.6, you can also connect to the MSSQL instance using its name. To do this, set the connection string in the {$MSSQL.URI} macro as . + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Databases + items: + - uuid: 668f0a143b164fd5b62b1311ac798ca3 + name: 'Get Access Methods counters' + type: DEPENDENT + key: mssql.access_methods.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server information about access methods.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Access Methods'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - uuid: e48534a4fd3042ee9c2f0155230298a2 + name: 'Auto-param attempts per second' + type: DEPENDENT + key: mssql.autoparam_attempts_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of auto-parameterization attempts per second. The total should be the sum of the failed, safe, and unsafe auto-parameterizations. Auto-parameterization occurs when an instance of SQL Server tries to parameterize a Transact-SQL request by replacing some literals with parameters so that reuse of the resulting cached execution plan across multiple similar-looking requests is possible. Note that auto-parameterizations are also known as simple parameterizations in the newer versions of SQL Server. This counter does not include forced parameterizations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Auto-Param Attempts/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: 71ade3c11bcd4f4691c5fa1c3fa6ded1 + name: 'Get availability groups' + key: 'mssql.availability.group.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets availability group states - name, primary and secondary health, synchronization health.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 8c5e2250dcc4405d95cc33167be33bb2 + name: 'Average latch wait time' + type: CALCULATED + key: mssql.average_latch_wait_time + delay: 0;m0-59s3 + value_type: FLOAT + units: ms + params: | + (last(//mssql.average_latch_wait_time_raw) - last(//mssql.average_latch_wait_time_raw,#2)) / + (last(//mssql.average_latch_wait_time_base) - last(//mssql.average_latch_wait_time_base,#2) + + (last(//mssql.average_latch_wait_time_base) - last(//mssql.average_latch_wait_time_base,#2)=0)) + description: 'Average latch wait time (in milliseconds) for latch requests that had to wait.' + tags: + - tag: component + value: wait-time + - uuid: 394d622b256945289ed9ca88999e024d + name: 'Average latch wait time base' + type: DEPENDENT + key: mssql.average_latch_wait_time_base + delay: '0' + description: 'For internal use only.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Average Latch Wait Time Base'')].cntr_value.first()' + master_item: + key: mssql.latches_info.raw + tags: + - tag: component + value: wait-time + - uuid: fe80511b840544da86ef3dd1b34bfce2 + name: 'Average latch wait time raw' + type: DEPENDENT + key: mssql.average_latch_wait_time_raw + delay: '0' + units: ms + description: 'Average latch wait time (in milliseconds) for latch requests that had to wait.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Average Latch Wait Time (ms)'')].cntr_value.first()' + master_item: + key: mssql.latches_info.raw + tags: + - tag: component + value: wait-time + - uuid: 3ba031d33d9147f786ee6fb6fddafaed + name: 'Total average wait time' + type: CALCULATED + key: mssql.average_wait_time + delay: 0;m0-59s3 + value_type: FLOAT + units: ms + params: | + (last(//mssql.average_wait_time_raw) - last(//mssql.average_wait_time_raw,#2)) / + (last(//mssql.average_wait_time_base) - last(//mssql.average_wait_time_base,#2) + + (last(//mssql.average_wait_time_base) - last(//mssql.average_wait_time_base,#2)=0)) + description: 'The average wait time, in milliseconds, for each lock request that had to wait.' + tags: + - tag: component + value: wait-time + triggers: + - uuid: 7d284dc23d4649c79bf67e13f1edc83b + expression: 'min(/MSSQL by Zabbix agent 2/mssql.average_wait_time,5m)>{$MSSQL.AVERAGE_WAIT_TIME.MAX}' + name: 'MSSQL: Total average wait time for locks is high' + event_name: 'MSSQL: Total average wait time for locks is high (over {$MSSQL.AVERAGE_WAIT_TIME.MAX}ms for 5m)' + priority: WARNING + description: 'An average wait time longer than 500 ms may indicate excessive blocking. This value should generally correlate to "Lock Waits/sec" and move up or down with it accordingly.' + tags: + - tag: scope + value: performance + - uuid: fc14601c16314459bc8277ebd244997d + name: 'Total average wait time base' + type: DEPENDENT + key: mssql.average_wait_time_base + delay: '0' + description: 'For internal use only.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Average Wait Time Base'')].cntr_value.first()' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: wait-time + - uuid: 5fa855e501dc42e68d8a06e435c08024 + name: 'Total average wait time raw' + type: DEPENDENT + key: mssql.average_wait_time_raw + delay: '0' + units: ms + description: 'Average amount of wait time (in milliseconds) for each lock request that resulted in a wait. Information for all locks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Average Wait Time (ms)'')].cntr_value.first()' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: wait-time + - uuid: b6c19fe6e67f4686a23455211fb2c076 + name: 'Batch requests per second' + type: DEPENDENT + key: mssql.batch_requests_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of Transact-SQL command batches received per second. This statistic is affected by all constraints (such as I/O, number of users, cache size, complexity of requests, and so on). High batch requests mean good throughput.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Batch Requests/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: e2581ae0fd6d4cc18728b7301cb22730 + name: 'Buffer cache hit ratio' + type: DEPENDENT + key: mssql.buffer_cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'Indicates the percentage of pages found in the buffer cache without having to read from the disk. The ratio is the total number of cache hits divided by the total number of cache lookups over the last few thousand page accesses. After a long period of time, the ratio changes very little. Since reading from the cache is much less expensive than reading from the disk, a higher value is preferred for this item. To increase the buffer cache hit ratio, consider increasing the amount of memory available to MSSQL Server or using the buffer pool extension feature.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''BufferCacheHitRatio'')].cntr_value.first()' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: cache + triggers: + - uuid: 9ee2397e2560447eb01d4d50cde5fa9d + expression: 'max(/MSSQL by Zabbix agent 2/mssql.buffer_cache_hit_ratio,5m)<{$MSSQL.BUFFER_CACHE_RATIO.MIN.CRIT}' + name: 'MSSQL: Percentage of the buffer cache efficiency is low' + event_name: 'MSSQL: Percentage of the buffer cache efficiency is low (below {$MSSQL.BUFFER_CACHE_RATIO.MIN.CRIT}% for 5m)' + priority: HIGH + description: 'Too low buffer cache hit ratio.' + tags: + - tag: scope + value: performance + - uuid: c22ac1cbc5224eb98fde9f87c52a3724 + expression: 'max(/MSSQL by Zabbix agent 2/mssql.buffer_cache_hit_ratio,5m)<{$MSSQL.BUFFER_CACHE_RATIO.MIN.WARN}' + name: 'MSSQL: Percentage of the buffer cache efficiency is low' + event_name: 'MSSQL: Percentage of the buffer cache efficiency is low (below {$MSSQL.BUFFER_CACHE_RATIO.MIN.WARN}% for 5m)' + priority: WARNING + description: 'Low buffer cache hit ratio.' + dependencies: + - name: 'MSSQL: Percentage of the buffer cache efficiency is low' + expression: 'max(/MSSQL by Zabbix agent 2/mssql.buffer_cache_hit_ratio,5m)<{$MSSQL.BUFFER_CACHE_RATIO.MIN.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 2e0810566767476db6cd0ca4eccb9e99 + name: 'Get Buffer Manager counters' + type: DEPENDENT + key: mssql.buffer_manager.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server information about the buffer pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Buffer Manager'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - uuid: ca959c973e8a4a549c0c33c85dce3598 + name: 'Cache hit ratio' + type: DEPENDENT + key: mssql.cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'Ratio between cache hits and lookups.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''CacheHitRatio'')].cntr_value.first()' + master_item: + key: mssql.cache_info.raw + tags: + - tag: component + value: cache + - uuid: 9925ceb7e021480598aab2bfba74370d + name: 'Get Cache counters' + type: DEPENDENT + key: mssql.cache_info.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server information about cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Plan Cache'' && @.instance_name==''_Total'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - uuid: 913fa728180d4a73a093a2ee05454081 + name: 'Cache objects in use' + type: DEPENDENT + key: mssql.cache_objects_in_use + delay: '0' + description: 'Number of cache objects in use.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Cache Objects in use'')].cntr_value.first()' + master_item: + key: mssql.cache_info.raw + tags: + - tag: component + value: cache + - uuid: 4dbb2d972bcc42f19aaa537a0d0431e9 + name: 'Cache object counts' + type: DEPENDENT + key: mssql.cache_object_counts + delay: '0' + description: 'Number of cache objects in the cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Cache Object Counts'')].cntr_value.first()' + master_item: + key: mssql.cache_info.raw + tags: + - tag: component + value: cache + - uuid: 952940ebb15942b3ac7d4b96c816a7c3 + name: 'Cache pages' + type: DEPENDENT + key: mssql.cache_pages + delay: '0' + description: 'Number of 8-kilobyte (KB) pages used by cache objects.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Cache Pages'')].cntr_value.first()' + master_item: + key: mssql.cache_info.raw + tags: + - tag: component + value: cache + - tag: component + value: page + - uuid: 14bba7081bd84521994b2a28d1af422d + name: 'Checkpoint pages per second' + type: DEPENDENT + key: mssql.checkpoint_pages_sec.rate + delay: '0' + value_type: FLOAT + description: 'Indicates the number of pages flushed to the disk per second by a checkpoint or other operation which required all dirty pages to be flushed.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Checkpoint pages/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - tag: component + value: performance + - uuid: f74a2bc9da424fc0ad288ddce6a4f6fa + name: 'Database pages' + type: DEPENDENT + key: mssql.database_pages + delay: '0' + description: 'Indicates the number of pages in the buffer pool with database content.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Database pages'')].cntr_value.first()' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - uuid: d124c9d4a3724e32a37895ad1cbc036b + name: 'Total data file size' + type: DEPENDENT + key: mssql.data_files_size + delay: '0' + units: B + description: 'Total size of all data files.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Data File(s) Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: mssql.db_info.raw + tags: + - tag: component + value: application + - uuid: 6c942840048b463e9439f327adceb767 + name: 'Get database' + key: 'mssql.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting databases - database name and recovery model.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 7ee97938f31d4983b3c216684089c23f + name: 'Get DB counters' + type: DEPENDENT + key: mssql.db_info.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets summary information about databases.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Databases'' && @.instance_name==''_Total'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - uuid: b82b979548824464a204d49a9c760c99 + name: 'Total errors per second' + type: DEPENDENT + key: mssql.errors_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Errors/sec'' && @.instance_name==''_Total'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_errors.raw + tags: + - tag: component + value: error + - tag: component + value: performance + - uuid: 152cf9cbf35f475bb242ddcb58e23c35 + name: 'Failed auto-params per second' + type: DEPENDENT + key: mssql.failed_autoparams_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of failed auto-parameterization attempts per second. This number should be small. Note that auto-parameterizations are also known as simple parameterizations in the newer versions of SQL Server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Failed Auto-Params/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: e7c66d2857034bfcbef7af94673ea66f + name: 'Forwarded records per second' + type: DEPENDENT + key: mssql.forwarded_records_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of records per second fetched through forwarded record pointers.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Forwarded Records/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: performance + - uuid: 7d688d051647440595e42bd798ce78dc + name: 'Free list stalls per second' + type: DEPENDENT + key: mssql.free_list_stalls_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Indicates the number of requests per second that had to wait for a free page.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Free list stalls/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: performance + triggers: + - uuid: 5cf3182a47694569b9d75822404b77f7 + expression: 'min(/MSSQL by Zabbix agent 2/mssql.free_list_stalls_sec.rate,5m)>{$MSSQL.FREE_LIST_STALLS.MAX}' + name: 'MSSQL: Number of rps waiting for a free page is high' + event_name: 'MSSQL: Number of rps waiting for a free page is high (over {$MSSQL.FREE_LIST_STALLS.MAX} for 5m)' + priority: WARNING + description: 'Some requests have to wait for a free page.' + tags: + - tag: scope + value: performance + - uuid: 5e8ccbe07c254c2086a58aafe1aa2fdf + name: 'Full scans per second' + type: DEPENDENT + key: mssql.full_scans_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of unrestricted full scans per second. These can be either base-table or full-index scans. Values greater than 1 or 2 indicate that there are table / index page scans. If that is combined with high CPU, this counter requires further investigation, otherwise, if the full scans are on small tables, it can be ignored.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Full Scans/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: performance + - uuid: 055399281d2b4e7a90ae1fb4b181a0b2 + name: 'Get General Statistics counters' + type: DEPENDENT + key: mssql.general_statistics.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets general statistics information.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*General Statistics'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - uuid: 5aa885322d4d4f2d9b55d8f2d65f55b0 + name: 'Granted Workspace Memory' + type: DEPENDENT + key: mssql.granted_workspace_memory + delay: '0' + units: B + description: 'Specifies the total amount of memory currently granted to executing processes, such as hash, sort, bulk copy, and index creation operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Granted Workspace Memory (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: 65a2e35bc66e45a08690faf08733c5fb + name: 'Index searches per second' + type: DEPENDENT + key: mssql.index_searches_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of index searches per second. These are used to start a range scan, reposition a range scan, revalidate a scan point, fetch a single index record, and search down the index to locate where to insert a new row.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Index Searches/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: performance + - uuid: 5439b52bd72e4204876d0c3716eb0a23 + name: 'Errors per second (Info errors)' + type: DEPENDENT + key: mssql.info_errors_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Errors/sec'' && @.instance_name==''Info Errors'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_errors.raw + tags: + - tag: component + value: error + - tag: component + value: performance + - uuid: e36f8695b4f74178a19bb88afad586b8 + name: 'Get job status' + key: 'mssql.job.status.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets the SQL agent job status.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: c43a0e1c2adf45cf8809e9a361ec190e + name: 'Errors per second (Kill connection errors)' + type: DEPENDENT + key: mssql.kill_connection_errors_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Errors/sec'' && @.instance_name==''Kill Connection Errors'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_errors.raw + tags: + - tag: component + value: error + - tag: component + value: performance + - uuid: a394835aeddd46a18327f25747e3564d + name: 'Get last backup' + key: 'mssql.last.backup.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets information about backup processes.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 2bd7c7ec217b4f62b7d94a42e9324f51 + name: 'Get Latches counters' + type: DEPENDENT + key: mssql.latches_info.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server information about latches.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Latches'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - uuid: 2daa0932d2a9491f9b262c06def40ccc + name: 'Latch waits per second' + type: DEPENDENT + key: mssql.latch_waits_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'The number of latch requests that could not be granted immediately. Latches are lightweight means of holding a very transient server resource, such as an address in memory.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Latch Waits/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.latches_info.raw + tags: + - tag: component + value: performance + - tag: component + value: wait-time + - uuid: d5710a51fb474d14b7d7716781b76c58 + name: 'Lazy writes per second' + type: DEPENDENT + key: mssql.lazy_writes_sec.rate + delay: '0' + value_type: FLOAT + description: 'Indicates the number of buffers written per second by the buffer manager''s lazy writer. The lazy writer is a system process that flushes out batches of dirty, aged buffers (buffers that contain changes that must be written back to the disk before the buffer can be reused for a different page) and makes them available to user processes. The lazy writer eliminates the need to perform frequent checkpoints in order to create available buffers.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Lazy writes/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: performance + triggers: + - uuid: 96698537fee846199197a25beecaafca + expression: 'min(/MSSQL by Zabbix agent 2/mssql.lazy_writes_sec.rate,5m)>{$MSSQL.LAZY_WRITES.MAX}' + name: 'MSSQL: Number of buffers written per second by the lazy writer is high' + event_name: 'MSSQL: Number of buffers written per second by the lazy writer is high (over {$MSSQL.LAZY_WRITES.MAX} for 5m)' + priority: WARNING + description: 'The number of buffers written per second by the buffer manager''s lazy writer exceeds the threshold.' + tags: + - tag: scope + value: performance + - uuid: f049c16678ad4daa83e55ab6c3a99fbc + name: 'Get local DB' + key: 'mssql.local.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting the states of the local availability database.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 46040926001f46c685c160820194a969 + name: 'Get Locks counters' + type: DEPENDENT + key: mssql.locks_info.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server information about locks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Locks'' && @.instance_name==''_Total'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - uuid: d8adec0bd76a4e1881b8b7e0ba44c7a1 + name: 'Total lock requests per second' + type: DEPENDENT + key: mssql.lock_requests_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of new locks and lock conversions per second requested from the lock manager.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Lock Requests/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: lock + - tag: component + value: performance + triggers: + - uuid: 19137e1b06fe4f1eaf5e76c5ae47d29d + expression: 'min(/MSSQL by Zabbix agent 2/mssql.lock_requests_sec.rate,5m)>{$MSSQL.LOCK_REQUESTS.MAX}' + name: 'MSSQL: Total number of locks per second is high' + event_name: 'MSSQL: Total number of locks per second is high (over {$MSSQL.LOCK_REQUESTS.MAX} for 5m)' + priority: WARNING + description: 'Number of new locks and lock conversions per second requested from the lock manager is high.' + tags: + - tag: scope + value: performance + - uuid: 3077e748f89844e0b666a82c26051399 + name: 'Total lock requests per second that timed out' + type: DEPENDENT + key: mssql.lock_timeouts_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of timed out lock requests per second, including requests for NOWAIT locks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Lock Timeouts/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: lock + - tag: component + value: performance + triggers: + - uuid: a7313fad35804feeaddf544acb2a0d26 + expression: 'min(/MSSQL by Zabbix agent 2/mssql.lock_timeouts_sec.rate,5m)>{$MSSQL.LOCK_TIMEOUTS.MAX}' + name: 'MSSQL: Total lock requests per second that timed out is high' + event_name: 'MSSQL: Total lock requests per second that timed out is high (over {$MSSQL.LOCK_TIMEOUTS.MAX} for 5m)' + priority: WARNING + description: 'The total number of timed out lock requests per second, including requests for NOWAIT locks, is high.' + tags: + - tag: scope + value: performance + - uuid: bcb606f27714414a92347a45e6bc8d31 + name: 'Total lock requests per second that required waiting' + type: DEPENDENT + key: mssql.lock_waits_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of lock requests per second that required the caller to wait.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Lock Waits/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: lock + - tag: component + value: performance + triggers: + - uuid: c4fb968a66784746a11feee64a8f98e8 + expression: 'min(/MSSQL by Zabbix agent 2/mssql.lock_waits_sec.rate,5m)>0' + name: 'MSSQL: Some blocking is occurring for 5m' + priority: AVERAGE + description: 'Values greater than zero indicate at least some blocking is occurring, while a value of zero can quickly eliminate blocking as a potential root-cause problem.' + tags: + - tag: scope + value: performance + - uuid: 706b5931a7d24e2190d071c1088ba469 + name: 'Lock wait time' + type: DEPENDENT + key: mssql.lock_wait_time + delay: '0' + value_type: FLOAT + units: ms + description: 'Average of total wait time (in milliseconds) for locks in the last second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Lock Wait Time (ms)'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: lock + - uuid: 343c44bfdd154e99879fbecb4e703dab + name: 'Logins per second' + type: DEPENDENT + key: mssql.logins_sec.rate + delay: '0' + value_type: FLOAT + description: 'Total number of logins started per second. This does not include pooled connections. Any value over 2 may indicate insufficient connection pooling.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Logins/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.general_statistics.raw + tags: + - tag: component + value: performance + - uuid: da069a96cc3c410db1c053d3de2a6508 + name: 'Logouts per second' + type: DEPENDENT + key: mssql.logouts_sec.rate + delay: '0' + value_type: FLOAT + description: 'Total number of logout operations started per second. Any value over 2 may indicate insufficient connection pooling.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Logouts/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.general_statistics.raw + tags: + - tag: component + value: performance + - uuid: e00f3549800a477ba77a8635a27d849b + name: 'Total log file size' + type: DEPENDENT + key: mssql.log_files_size + delay: '0' + units: B + description: 'Total size of all the transaction log files.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log File(s) Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: mssql.db_info.raw + tags: + - tag: component + value: log + - uuid: fb2125c36295434a8821462b5c86fbee + name: 'Total log file used size' + type: DEPENDENT + key: mssql.log_files_used_size + delay: '0' + units: B + description: 'The cumulative size of all the log files in the database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log File(s) Used Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: mssql.db_info.raw + tags: + - tag: component + value: log + - uuid: 462eecc28a3f44ef831fc76d3a0a278b + name: 'Maximum workspace memory' + type: DEPENDENT + key: mssql.maximum_workspace_memory + delay: '0' + units: B + description: 'Indicates the maximum amount of memory available for executing processes, such as hash, sort, bulk copy, and index creation operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Maximum Workspace Memory (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: 08919bb644c746c7a51fcc43d3581309 + name: 'Memory grants outstanding' + type: DEPENDENT + key: mssql.memory_grants_outstanding + delay: '0' + description: 'Specifies the total number of processes that have successfully acquired a workspace memory grant.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Memory Grants Outstanding'')].cntr_value.first()' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: f790245e08654eddb5cceff6405e68e2 + name: 'Memory grants pending' + type: DEPENDENT + key: mssql.memory_grants_pending + delay: '0' + description: 'Specifies the total number of processes waiting for a workspace memory grant.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Memory Grants Pending'')].cntr_value.first()' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: 4114e184cecd4040a26d9156ac11b6d2 + name: 'Get Memory counters' + type: DEPENDENT + key: mssql.mem_manager.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets memory information.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Memory Manager'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - uuid: fb51801472fc4ca7beed49c2586ba1cb + name: 'Get DB mirroring' + key: 'mssql.mirroring.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting DB mirroring.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 8730198507594f4aa38d45bf00e65a38 + name: 'Get non-local DB' + key: 'mssql.nonlocal.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting the non-local availability database.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 0e8935dc71584982b20ff2dbe42b31a4 + name: 'Total lock requests per second that have deadlocks' + type: DEPENDENT + key: mssql.number_deadlocks_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Number of lock requests per second that resulted in a deadlock.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Number of Deadlocks/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.locks_info.raw + tags: + - tag: component + value: deadlock + - tag: component + value: performance + triggers: + - uuid: f0b039f08b694db1bbafe6b3d8d4e9ab + expression: 'min(/MSSQL by Zabbix agent 2/mssql.number_deadlocks_sec.rate,5m)>{$MSSQL.DEADLOCKS.MAX}' + name: 'MSSQL: Number of deadlocks is high' + event_name: 'MSSQL: Number of deadlocks is high (over {$MSSQL.DEADLOCKS.MAX} for 5m)' + priority: AVERAGE + description: 'Too many deadlocks are occurring currently.' + tags: + - tag: scope + value: performance + - uuid: 6e8968403b9e4abfbc5ec0a4c990636c + name: 'Errors per second (DB offline errors)' + type: DEPENDENT + key: mssql.offline_errors_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Errors/sec'' && @.instance_name==''DB Offline Errors'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_errors.raw + tags: + - tag: component + value: error + - tag: component + value: performance + - uuid: 0b53d7e1a0174db2b6ebc1c47ac92d9e + name: 'Page life expectancy' + type: DEPENDENT + key: mssql.page_life_expectancy + delay: '0' + value_type: FLOAT + units: s + description: 'Indicates the number of seconds a page will stay in the buffer pool without references.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Page life expectancy'')].cntr_value.first()' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + triggers: + - uuid: e47d0eeac246490cbeedb8ba1cf77e94 + expression: 'max(/MSSQL by Zabbix agent 2/mssql.page_life_expectancy,15m)<{$MSSQL.PAGE_LIFE_EXPECTANCY.MIN}' + name: 'MSSQL: Page life expectancy is low' + event_name: 'MSSQL: Page life expectancy is low (less {$MSSQL.PAGE_LIFE_EXPECTANCY.MIN}sec for 15m)' + priority: HIGH + description: 'The page stays in the buffer pool without references for less time than the threshold value.' + tags: + - tag: scope + value: performance + - uuid: 97fb6c5dd7de48879f378ac464c37f48 + name: 'Page lookups per second' + type: DEPENDENT + key: mssql.page_lookups_sec.rate + delay: '0' + value_type: FLOAT + units: rps + description: 'Indicates the number of requests per second to find a page in the buffer pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Page lookups/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: performance + - uuid: 936ded2166da48a8acc3c94262b0bbac + name: 'Page reads per second' + type: DEPENDENT + key: mssql.page_reads_sec.rate + delay: '0' + value_type: FLOAT + description: 'Indicates the number of physical database page reads that are issued per second. This statistic displays the total number of physical page reads across all databases. As physical I/O is expensive, you may be able to minimize the cost either by using a larger data cache, intelligent indexes, and more efficient queries, or by changing the database design.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Page reads/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - tag: component + value: performance + triggers: + - uuid: 5050b7c4e5a4445d9c4aae031b01115b + expression: 'min(/MSSQL by Zabbix agent 2/mssql.page_reads_sec.rate,5m)>{$MSSQL.PAGE_READS.MAX}' + name: 'MSSQL: Number of physical database page reads per second is high' + event_name: 'MSSQL: Number of physical database page reads per second is high (over {$MSSQL.PAGE_READS.MAX} for 5m)' + priority: WARNING + description: 'The physical database page reads are issued too frequently.' + tags: + - tag: scope + value: performance + - uuid: 7e39012b0bc640689d3b295fc8f2abc6 + name: 'Page splits per second' + type: DEPENDENT + key: mssql.page_splits_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of page splits per second that occur as a result of overflowing index pages.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Page Splits/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: page + - tag: component + value: performance + - uuid: 2be68cb7cfe441339af164b3b4ce9c90 + name: 'Page writes per second' + type: DEPENDENT + key: mssql.page_writes_sec.rate + delay: '0' + value_type: FLOAT + description: 'Indicates the number of physical database page writes that are issued per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Page writes/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - tag: component + value: performance + triggers: + - uuid: 48e32bec13d34ad88db7c9cc98d86a3b + expression: 'min(/MSSQL by Zabbix agent 2/mssql.page_writes_sec.rate,5m)>{$MSSQL.PAGE_WRITES.MAX}' + name: 'MSSQL: Number of physical database page writes per second is high' + event_name: 'MSSQL: Number of physical database page writes per second is high (over {$MSSQL.PAGE_WRITES.MAX} for 5m)' + priority: WARNING + description: 'The physical database page writes are issued too frequently.' + tags: + - tag: scope + value: performance + - uuid: 2064cd9f8e7646fa8fb329ca287fedd2 + name: 'Percent of ad hoc queries running' + type: CALCULATED + key: mssql.percent_of_adhoc_queries + delay: 0;m0-59s3 + value_type: FLOAT + units: '%' + params: | + last(//mssql.sql_compilations_sec.rate) * 100 / + (last(//mssql.batch_requests_sec.rate) + (last(//mssql.batch_requests_sec.rate)=0)) + description: 'The ratio of SQL compilations per second to batch requests per second, in percent.' + tags: + - tag: component + value: application + triggers: + - uuid: cf0649863fe5421aa1dc279d1ca7e360 + expression: 'min(/MSSQL by Zabbix agent 2/mssql.percent_of_adhoc_queries,15m) > {$MSSQL.PERCENT_COMPILATIONS.MAX}' + name: 'MSSQL: Percent of ad hoc queries running is high' + event_name: 'MSSQL: Percent of ad hoc queries running is over {$MSSQL.PERCENT_COMPILATIONS.MAX}% for 15m' + priority: WARNING + description: 'The lower this value is, the better. High values often indicate excessive ad hoc querying and should be as low as possible. If excessive ad hoc querying is happening, try rewriting the queries as procedures or invoke the queries using `sp_executeSQL`. When rewriting isn''t possible, consider using a plan guide or setting the database to parameterization forced mode.' + tags: + - tag: scope + value: performance + - uuid: 98b0754f231c4160bcd2daafeef64fe0 + name: 'Percent of Recompiled Transact-SQL Objects' + type: CALCULATED + key: mssql.percent_recompilations_to_compilations + delay: 0;m0-59s3 + value_type: FLOAT + units: '%' + params: | + last(//mssql.sql_recompilations_sec.rate) * 100 / + (last(//mssql.sql_compilations_sec.rate) + (last(//mssql.sql_compilations_sec.rate)=0)) + description: 'The ratio of SQL re-compilations per second to SQL compilations per second, in percent.' + tags: + - tag: component + value: application + triggers: + - uuid: 1218fe12f4d542d99d997ede6cc30813 + expression: 'min(/MSSQL by Zabbix agent 2/mssql.percent_recompilations_to_compilations,15m) > {$MSSQL.PERCENT_RECOMPILATIONS.MAX}' + name: 'MSSQL: Percent of times statement recompiles is high' + event_name: 'MSSQL: Percent of times statement recompiles is over {$MSSQL.PERCENT_RECOMPILATIONS.MAX}% for 15m' + priority: WARNING + description: 'This number should be at or near zero, since recompiles can cause deadlocks and exclusive compile locks. This counter''s value should follow in proportion to "Batch Requests/sec" and "SQL Compilations/sec".' + tags: + - tag: scope + value: performance + - uuid: 2128f1e7d0fa46e2bdb8b06f5c07c436 + name: 'Get performance counters' + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + delay: 0;m0-59 + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server global status information.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 9b769f48534c4e6cb9bb2cd4079bd808 + name: 'Number of blocked processes' + type: DEPENDENT + key: mssql.processes_blocked + delay: '0' + description: 'Number of currently blocked processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Processes blocked'')].cntr_value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: mssql.general_statistics.raw + tags: + - tag: component + value: application + - uuid: 432178b4071e46758c421f6d9b75f4cd + name: 'Get quorum' + key: 'mssql.quorum.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting quorum - cluster name, type, and state.' + timeout: 10s + tags: + - tag: component + value: raw + - uuid: 7343a6e34956475db3e79f7cfa905baa + name: 'Get quorum member' + key: 'mssql.quorum.member.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting quorum members - member name, type, state, and number of quorum votes.' + timeout: 10s + tags: + - tag: component + value: raw + - uuid: 18b09445472c46be81281c0cb55297ea + name: 'Read-ahead pages per second' + type: DEPENDENT + key: mssql.readahead_pages_sec.rate + delay: '0' + value_type: FLOAT + description: 'Indicates the number of pages read per second in anticipation of use.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Readahead pages/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - tag: component + value: performance + - uuid: 77deceae02df4e2280f42ae7b7b16f76 + name: 'Get replica' + key: 'mssql.replica.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting the database replica.' + timeout: 30s + tags: + - tag: component + value: raw + - uuid: 7c5778b466fe488a9c7571a0b0b35597 + name: 'Safe auto-params per second' + type: DEPENDENT + key: mssql.safe_autoparams_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of safe auto-parameterization attempts per second. Safe refers to a determination that a cached execution plan can be shared between different similar-looking Transact-SQL statements. SQL Server makes many auto-parameterization attempts, some of which turn out to be safe and others fail. Note that auto-parameterizations are also known as simple parameterizations in the newer versions of SQL Server. This does not include forced parameterizations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Safe Auto-Params/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: 5dda9c1a17fa43ada4a6857e62148f1a + name: 'Full scans to Index searches ratio' + type: CALCULATED + key: mssql.scan_to_search + delay: 0;m0-59s3 + value_type: FLOAT + params: 'last(//mssql.full_scans_sec.rate) / (last(//mssql.index_searches_sec.rate) + (last(//mssql.index_searches_sec.rate)=0))' + description: 'The ratio of full scans per second to index searches per second. The threshold recommendation is strictly for OLTP workloads.' + tags: + - tag: component + value: application + triggers: + - uuid: 378cdaf994ea4167b7727996357d7564 + expression: 'min(/MSSQL by Zabbix agent 2/mssql.scan_to_search,15m) > 0.001' + name: 'MSSQL: Number of index and table scans exceeds index searches in the last 15m' + priority: WARNING + description: 'Index searches are preferable to index and table scans. For OLTP applications, optimize for more index searches and less scans (preferably, 1 full scan for every 1000 index searches). Index and table scans are expensive I/O operations.' + tags: + - tag: scope + value: performance + - uuid: f02b411d44784721a4fb4e032f094867 + name: 'SQL compilations per second' + type: DEPENDENT + key: mssql.sql_compilations_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of SQL compilations per second. Indicates the number of times the compile code path is entered. Includes runs caused by statement-level recompilations in SQL Server. After SQL Server user activity is stable, this value reaches a steady state.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''SQL Compilations/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: 60c2c827c40a4d09b0b41cd7004cb0b0 + name: 'Get SQL Errors counters' + type: DEPENDENT + key: mssql.sql_errors.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets SQL error information.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*SQL Errors'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - uuid: 515fe1b64f82415fbdfd118358bdcc2d + name: 'SQL re-compilations per second' + type: DEPENDENT + key: mssql.sql_recompilations_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of statement recompiles per second. Counts the number of times statement recompiles are triggered. Generally, you want the recompiles to be low.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''SQL Re-Compilations/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: 8c18cf97c2dc4e94a9b889c72d76cdde + name: 'Get SQL Statistics counters' + type: DEPENDENT + key: mssql.sql_statistics.raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets SQL statistics information.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*SQL Statistics'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - uuid: 78b85902a71b47b1845bb55a797e8800 + name: 'Table lock escalations per second' + type: DEPENDENT + key: mssql.table_lock_escalations.rate + delay: '0' + value_type: FLOAT + description: 'Number of times locks on a table were escalated to the TABLE or HoBT granularity.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Table Lock Escalations/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: lock + - tag: component + value: performance + - uuid: 29b91e97aa5f4efcafa38d59568c16ec + name: 'Target pages' + type: DEPENDENT + key: mssql.target_pages + delay: '0' + description: 'The optimal number of pages in the buffer pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Target pages'')].cntr_value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: mssql.buffer_manager.raw + tags: + - tag: component + value: page + - uuid: 06de7547c13c4e25af22c14fc7af84bd + name: 'Target server memory' + type: DEPENDENT + key: mssql.target_server_memory + delay: '0' + units: B + description: 'Indicates the ideal amount of memory the server can consume.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Target Server Memory (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: 304dd414b91c450db0594bd7135e340b + name: 'Total latch wait time' + type: DEPENDENT + key: mssql.total_latch_wait_time + delay: '0' + value_type: FLOAT + units: ms + description: 'Total latch wait time (in milliseconds) for latch requests in the last second. This value should stay stable compared to the number of latch waits per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Total Latch Wait Time (ms)'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.latches_info.raw + tags: + - tag: component + value: wait-time + - uuid: a1dd82b237304bf39d9e34d6ff7d76a2 + name: 'Total server memory' + type: DEPENDENT + key: mssql.total_server_memory + delay: '0' + units: B + description: 'Specifies the amount of memory the server has committed using the memory manager.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Total Server Memory (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: mssql.mem_manager.raw + tags: + - tag: component + value: memory + - uuid: f7c8f1bbf68c4f43b0e263d45022346e + name: 'Total transactions number' + type: DEPENDENT + key: mssql.transactions + delay: '0' + description: 'The number of currently active transactions of all types.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Transactions'' && @.counter_name==''Transactions'')].cntr_value.first()' + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: transaction + - uuid: c23c93f8492946ba9932bf8c8a7a306e + name: 'Total transactions per second' + type: DEPENDENT + key: mssql.transactions_sec.rate + delay: '0' + value_type: FLOAT + description: 'Total number of transactions started for all databases per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Transactions/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.db_info.raw + tags: + - tag: component + value: performance + - tag: component + value: transaction + - uuid: b2805c08cc28424ca8fca0ab51ace519 + name: 'Unsafe auto-params per second' + type: DEPENDENT + key: mssql.unsafe_autoparams_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of unsafe auto-parameterization attempts per second. For example, the query has some characteristics that prevent the cached plan from being shared. These are designated as unsafe. This does not count the number of forced parameterizations.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Unsafe Auto-Params/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_statistics.raw + tags: + - tag: component + value: performance + - uuid: f4b8d9b10b4c40f6a38c03729025f618 + name: Uptime + type: DEPENDENT + key: mssql.uptime + delay: '0' + trends: '0' + units: uptime + description: 'MSSQL Server uptime in the format "N days, hh:mm:ss".' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Uptime'')].cntr_value.first()' + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: application + triggers: + - uuid: b64d08b9212645cd8bab9e35a8e29942 + expression: 'nodata(/MSSQL by Zabbix agent 2/mssql.uptime,30m)=1' + name: 'MSSQL: Failed to fetch info data' + event_name: 'MSSQL: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for items for the last 30 minutes.' + dependencies: + - name: 'MSSQL: Service is unavailable' + expression: 'last(/MSSQL by Zabbix agent 2/net.tcp.service[tcp,{$MSSQL.HOST},{$MSSQL.PORT}])=0' + tags: + - tag: scope + value: availability + - uuid: 4ab35137c34845c495bc3837ac1f6f9f + expression: 'last(/MSSQL by Zabbix agent 2/mssql.uptime)<10m' + name: 'MSSQL: Service has been restarted' + event_name: 'MSSQL: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 821f3a9f694349c2afb983d4c26ff090 + name: 'Number of users connected' + type: DEPENDENT + key: mssql.user_connections + delay: '0' + description: 'Number of users connected to MSSQL Server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''User Connections'')].cntr_value.first()' + master_item: + key: mssql.general_statistics.raw + tags: + - tag: component + value: application + - uuid: 27e1d9f9005f475784f930c8cbaefa91 + name: 'Errors per second (User errors)' + type: DEPENDENT + key: mssql.user_errors_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Errors/sec'' && @.instance_name==''User Errors'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.sql_errors.raw + tags: + - tag: component + value: error + - tag: component + value: performance + - uuid: 624ea81f4a7c43659f291a2fc7913778 + name: Version + key: 'mssql.version["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + value_type: CHAR + trends: '0' + description: 'MSSQL Server version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + triggers: + - uuid: 12643eb3af884023ab61802559cde946 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.version["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"],#1)<>last(/MSSQL by Zabbix agent 2/mssql.version["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"],#2) and length(last(/MSSQL by Zabbix agent 2/mssql.version["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]))>0' + name: 'MSSQL: Version has changed' + event_name: 'MSSQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + description: 'MSSQL version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 081cc2db8e9b481f8ca39e5f02f8f48d + name: 'Work files created per second' + type: DEPENDENT + key: mssql.workfiles_created_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of work files created per second. For example, work files can be used to store temporary results for hash joins and hash aggregates.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Workfiles Created/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: performance + triggers: + - uuid: 6d25ee02edc14d7497b339627cc0c680 + expression: 'min(/MSSQL by Zabbix agent 2/mssql.workfiles_created_sec.rate,5m)>{$MSSQL.WORK_FILES.MAX}' + name: 'MSSQL: Number of work files created per second is high' + event_name: 'MSSQL: Number of work files created per second is high (over {$MSSQL.WORK_FILES.MAX} for 5m)' + priority: AVERAGE + description: 'Too many work files created per second to store temporary results for hash joins and hash aggregates.' + tags: + - tag: scope + value: performance + - uuid: a2127497537a46b6be10fac14be04259 + name: 'Work tables created per second' + type: DEPENDENT + key: mssql.worktables_created_sec.rate + delay: '0' + value_type: FLOAT + description: 'Number of work tables created per second. For example, work tables can be used to store temporary results for query spool, LOB variables, XML variables, and cursors.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Worktables Created/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: performance + triggers: + - uuid: 4cd0c8e7089144aeaeb10c4866e89b06 + expression: 'min(/MSSQL by Zabbix agent 2/mssql.worktables_created_sec.rate,5m)>{$MSSQL.WORK_TABLES.MAX}' + name: 'MSSQL: Number of work tables created per second is high' + event_name: 'MSSQL: Number of work tables created per second is high (over {$MSSQL.WORK_TABLES.MAX} for 5m)' + priority: AVERAGE + description: 'Too many work tables created per second to store temporary results for query spool, LOB variables, XML variables, and cursors.' + tags: + - tag: scope + value: performance + - uuid: dbcf930a346c40db9d8fafa89eafe79a + name: 'Worktables from cache ratio' + type: DEPENDENT + key: mssql.worktables_from_cache_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of work tables created where the initial two pages of the work table were not allocated but were immediately available from the work table cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''WorktablesFromCacheRatio'')].cntr_value.first()' + master_item: + key: mssql.access_methods.raw + tags: + - tag: component + value: cache + triggers: + - uuid: cb3dd51615d447379a3abda929faf881 + expression: 'max(/MSSQL by Zabbix agent 2/mssql.worktables_from_cache_ratio,5m)<{$MSSQL.WORKTABLES_FROM_CACHE_RATIO.MIN.CRIT}' + name: 'MSSQL: Percentage of work tables available from the work table cache is low' + event_name: 'MSSQL: Percentage of work tables available from the work table cache is low (below {$MSSQL.WORKTABLES_FROM_CACHE_RATIO.MIN.CRIT}% for 5m)' + priority: HIGH + description: 'A value less than 90% may indicate insufficient memory, since execution plans are being dropped, or, on 32-bit systems, may indicate the need for an upgrade to a 64-bit system.' + tags: + - tag: scope + value: performance + - uuid: 7fc4f1f9c3df45269972e617ce81f4b2 + name: 'Service''s TCP port state' + type: SIMPLE + key: 'net.tcp.service[tcp,{$MSSQL.HOST},{$MSSQL.PORT}]' + delay: 30s + description: 'Test the availability of MSSQL Server on a TCP port.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: network + triggers: + - uuid: 2ea9eaf463144defbd85340a824f7986 + expression: 'last(/MSSQL by Zabbix agent 2/net.tcp.service[tcp,{$MSSQL.HOST},{$MSSQL.PORT}])=0' + name: 'MSSQL: Service is unavailable' + priority: DISASTER + description: 'The TCP port of the MSSQL Server service is currently unavailable.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 7f7d64674f2b41a69f9330fc050fc582 + name: 'Availability group discovery' + type: DEPENDENT + key: mssql.availability.group.discovery + delay: '0' + description: 'Discovery of the existing availability groups.' + item_prototypes: + - uuid: a4db74ea2c2c4919ae57d474548c13f1 + name: 'MSSQL AG ''{#GROUP_NAME}'': Primary replica recovery health' + type: DEPENDENT + key: 'mssql.primary_recovery_health["{#GROUP_NAME}"]' + delay: '0' + description: | + Indicates the recovery health of the primary replica: + 0 = In progress + 1 = Online + 2 = Unavailable + valuemap: + name: 'MSSQL AG Recovery health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.group_name==''{#GROUP_NAME}'')].primary_recovery_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.availability.group.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: availability-group + trigger_prototypes: + - uuid: 7f0c69068dd6415abd193555684ba39d + expression: 'last(/MSSQL by Zabbix agent 2/mssql.primary_recovery_health["{#GROUP_NAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'': Primary replica recovery health in progress' + priority: WARNING + description: 'The primary replica is in the synchronization process.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: scope + value: notice + - uuid: ede1746a6614499781c6dec46671cdfa + name: 'MSSQL AG ''{#GROUP_NAME}'': Primary replica name' + type: DEPENDENT + key: 'mssql.primary_replica["{#GROUP_NAME}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Name of the server instance that is hosting the current primary replica.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.group_name==''{#GROUP_NAME}'')].primary_replica.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'mssql.availability.group.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: availability-group + - uuid: 49612aea8b164a79b994d2155c70b491 + name: 'MSSQL AG ''{#GROUP_NAME}'': Secondary replica recovery health' + type: DEPENDENT + key: 'mssql.secondary_recovery_health["{#GROUP_NAME}"]' + delay: '0' + description: | + Indicates the recovery health of a secondary replica: + 0 = In progress + 1 = Online + 2 = Unavailable + valuemap: + name: 'MSSQL AG Recovery health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.group_name==''{#GROUP_NAME}'')].secondary_recovery_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.availability.group.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: availability-group + trigger_prototypes: + - uuid: 4fc114d3f43741b38bdf7b8b73a6fe3e + expression: 'last(/MSSQL by Zabbix agent 2/mssql.secondary_recovery_health["{#GROUP_NAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'': Secondary replica recovery health in progress' + priority: WARNING + description: 'The secondary replica is in the synchronization process.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: scope + value: notice + - uuid: f6a776b81e9d445e9b401ecdc781fe26 + name: 'MSSQL AG ''{#GROUP_NAME}'': Synchronization health' + type: DEPENDENT + key: 'mssql.synchronization_health["{#GROUP_NAME}"]' + delay: '0' + description: | + Reflects a rollup of the `synchronization_health` of all availability replicas in the availability group: + 0 = Not healthy. None of the availability replicas have a healthy synchronization. + 1 = Partially healthy. The synchronization of some, but not all, availability replicas is healthy. + 2 = Healthy. The synchronization of every availability replica is healthy. + valuemap: + name: 'MSSQL AG Synchronization health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.group_name==''{#GROUP_NAME}'')].synchronization_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.availability.group.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: availability-group + trigger_prototypes: + - uuid: 1aa3dd01e7654dea903010b47f166596 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.synchronization_health["{#GROUP_NAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'': All replicas unhealthy' + priority: DISASTER + description: 'None of the availability replicas have a healthy synchronization.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: scope + value: availability + - uuid: 02766fa029c14e85914e20b81f14be2c + expression: 'last(/MSSQL by Zabbix agent 2/mssql.synchronization_health["{#GROUP_NAME}"])=1' + name: 'MSSQL: AG ''{#GROUP_NAME}'': Some replicas unhealthy' + priority: HIGH + description: 'The synchronization health of some, but not all, availability replicas is healthy.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: scope + value: availability + master_item: + key: 'mssql.availability.group.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + lld_macro_paths: + - lld_macro: '{#GROUP_NAME}' + path: $.group_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: 13116bb9e52040718b40f0a6e734342a + name: 'Database discovery' + type: DEPENDENT + key: mssql.database.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$MSSQL.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DBNAME}' + value: '{$MSSQL.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Scanning databases in DBMS.' + item_prototypes: + - uuid: 39264e40f3304b3fb5d85fbac83008f8 + name: 'MSSQL DB ''{#DBNAME}'': Last diff backup duration' + type: DEPENDENT + key: 'mssql.backup.diff.duration["{#DBNAME}"]' + delay: '0' + units: s + description: 'Duration of the last differential backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''I'')].duration.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 45613ebe8c77431fbfa3ab00d39e68e5 + name: 'MSSQL DB ''{#DBNAME}'': Last diff backup (time ago)' + type: DEPENDENT + key: 'mssql.backup.diff["{#DBNAME}"]' + delay: '0' + units: s + description: 'The amount of time since the last differential backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''I'')].time_since_last_backup.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 4ff9a2f1c06347a291e99eb4269d87a5 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.backup.diff["{#DBNAME}"])>{$MSSQL.BACKUP_DIFF.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_DIFF.USED:"{#DBNAME}"}=1' + name: 'MSSQL: DB ''{#DBNAME}'': Diff backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Diff backup older than {$MSSQL.BACKUP_DIFF.CRIT:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The differential backup has not been executed for a long time.' + manual_close: 'YES' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 49260837210a4086a6f2a4183cefbf8c + expression: 'last(/MSSQL by Zabbix agent 2/mssql.backup.diff["{#DBNAME}"])>{$MSSQL.BACKUP_DIFF.WARN:"{#DBNAME}"} and {$MSSQL.BACKUP_DIFF.USED:"{#DBNAME}"}=1' + name: 'MSSQL: DB ''{#DBNAME}'': Diff backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Diff backup older than {$MSSQL.BACKUP_DIFF.WARN:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The differential backup has not been executed for a long time.' + manual_close: 'YES' + dependencies: + - name: 'MSSQL: DB ''{#DBNAME}'': Diff backup is old' + expression: 'last(/MSSQL by Zabbix agent 2/mssql.backup.diff["{#DBNAME}"])>{$MSSQL.BACKUP_DIFF.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_DIFF.USED:"{#DBNAME}"}=1' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 5da7fa72e56740d3938e8bb5bb32839e + name: 'MSSQL DB ''{#DBNAME}'': Last full backup duration' + type: DEPENDENT + key: 'mssql.backup.full.duration["{#DBNAME}"]' + delay: '0' + units: s + description: 'Duration of the last full backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''D'')].duration.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 32c38b20af8f42698fb96bf0bbb05dec + name: 'MSSQL DB ''{#DBNAME}'': Last full backup (time ago)' + type: DEPENDENT + key: 'mssql.backup.full["{#DBNAME}"]' + delay: '0' + units: s + description: 'The amount of time since the last full backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''D'')].time_since_last_backup.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: ba1b19c9513f4adeba3e6f300c08748d + expression: 'last(/MSSQL by Zabbix agent 2/mssql.backup.full["{#DBNAME}"])>{$MSSQL.BACKUP_FULL.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_FULL.USED:"{#DBNAME}"}=1' + name: 'MSSQL: DB ''{#DBNAME}'': Full backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Full backup older than {$MSSQL.BACKUP_FULL.CRIT:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The full backup has not been executed for a long time.' + manual_close: 'YES' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: a8e099c8276f435cb4d55623be443db5 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.backup.full["{#DBNAME}"])>{$MSSQL.BACKUP_FULL.WARN:"{#DBNAME}"} and {$MSSQL.BACKUP_FULL.USED:"{#DBNAME}"}=1' + name: 'MSSQL: DB ''{#DBNAME}'': Full backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Full backup older than {$MSSQL.BACKUP_FULL.WARN:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The full backup has not been executed for a long time.' + manual_close: 'YES' + dependencies: + - name: 'MSSQL: DB ''{#DBNAME}'': Full backup is old' + expression: 'last(/MSSQL by Zabbix agent 2/mssql.backup.full["{#DBNAME}"])>{$MSSQL.BACKUP_FULL.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_FULL.USED:"{#DBNAME}"}=1' + tags: + - tag: scope + value: availability + - uuid: a7aaa846c6694ddf9daf5d18db5a3037 + name: 'MSSQL DB ''{#DBNAME}'': Last log backup duration' + type: DEPENDENT + key: 'mssql.backup.log.duration["{#DBNAME}"]' + delay: '0' + units: s + description: 'Duration of the last log backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''L'')].duration.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 453a48800bce43b58a372b7466b944bd + name: 'MSSQL DB ''{#DBNAME}'': Last log backup (time ago)' + type: DEPENDENT + key: 'mssql.backup.log["{#DBNAME}"]' + delay: '0' + units: s + description: 'The amount of time since the last log backup.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.type==''L'')].time_since_last_backup.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 6800612ef91f4f149e24c4cf9a9f915c + name: 'MSSQL DB ''{#DBNAME}'': Get last backup' + type: DEPENDENT + key: 'mssql.backup.raw["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets information about backup processes for {#DBNAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.last.backup.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: f8bc0815cbc1471eb949429a95503287 + name: 'MSSQL DB ''{#DBNAME}'': Recovery model' + type: DEPENDENT + key: 'mssql.backup.recovery_model["{#DBNAME}"]' + delay: '0' + description: | + Recovery model selected: + 1 = Full + 2 = Bulk_logged + 3 = Simple + valuemap: + name: 'MSSQL Recovery model' + preprocessing: + - type: JSONPATH + parameters: + - '$[0].db_recovery_model' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'mssql.backup.raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: ccd715be77234994b8931ca89abb015a + name: 'MSSQL DB ''{#DBNAME}'': Active transactions' + type: DEPENDENT + key: 'mssql.db.active_transactions["{#DBNAME}"]' + delay: '0' + description: 'Number of active transactions for the database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Active Transactions'')].cntr_value.first()' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: cba4bf9b39fc4cd69152f15cfd0edb56 + name: 'MSSQL DB ''{#DBNAME}'': Data file size' + type: DEPENDENT + key: 'mssql.db.data_files_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Cumulative size of all the data files in the database including any automatic growth. Monitoring this counter is useful, for example, for determining the correct size of `tempdb`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Data File(s) Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 9cd2a1a539604c68b4540d424a608d4c + name: 'MSSQL DB ''{#DBNAME}'': Log bytes flushed per second' + type: DEPENDENT + key: 'mssql.db.log_bytes_flushed_sec.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Total number of log bytes flushed per second. Useful for determining trends and utilization of the transaction log.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Bytes Flushed/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: ff2f2fd39e11418ea93b79ba27b73e3d + name: 'MSSQL DB ''{#DBNAME}'': Log file size' + type: DEPENDENT + key: 'mssql.db.log_files_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Cumulative size of all the transaction log files in the database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log File(s) Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 7466329cc603401095def32026d8182d + name: 'MSSQL DB ''{#DBNAME}'': Log file used size' + type: DEPENDENT + key: 'mssql.db.log_files_used_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Cumulative size of all the log files in the database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log File(s) Used Size (KB)'')].cntr_value.first()' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 6c874bd1dd7746b4894d5b25e3de0f7c + name: 'MSSQL DB ''{#DBNAME}'': Log flushes per second' + type: DEPENDENT + key: 'mssql.db.log_flushes_sec.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of log flushes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Flushes/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 64dc4faefc0f4709b5e740c036e9a272 + name: 'MSSQL DB ''{#DBNAME}'': Log flush waits per second' + type: DEPENDENT + key: 'mssql.db.log_flush_waits_sec.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of commits per second waiting for the log flush.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Flush Waits/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 4bdf258b6902407cbcc7b27cc906ee48 + expression: 'min(/MSSQL by Zabbix agent 2/mssql.db.log_flush_waits_sec.rate["{#DBNAME}"],5m)>{$MSSQL.LOG_FLUSH_WAITS.MAX:"{#DBNAME}"}' + name: 'MSSQL: DB ''{#DBNAME}'': Number of commits waiting for the log flush is high' + event_name: 'MSSQL: DB ''{#DBNAME}'': Number of commits waiting for the log flush is high (over {$MSSQL.LOG_FLUSH_WAITS.MAX:"{#DBNAME}"}/sec for 5m)' + priority: WARNING + description: 'Too many commits are waiting for the log flush.' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: performance + - uuid: 1e4289626cd540dbbc9e54be9d6a0836 + name: 'MSSQL DB ''{#DBNAME}'': Log flush wait time' + type: DEPENDENT + key: 'mssql.db.log_flush_wait_time["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: ms + description: 'Total wait time (in milliseconds) to flush the log. On an Always On secondary database, this value indicates the wait time for log records to be hardened to disk.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Flush Wait Time'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 1baacf9d55d746599a28c407087ea5fb + expression: 'min(/MSSQL by Zabbix agent 2/mssql.db.log_flush_wait_time["{#DBNAME}"],5m)>{$MSSQL.LOG_FLUSH_WAIT_TIME.MAX:"{#DBNAME}"}' + name: 'MSSQL: DB ''{#DBNAME}'': Total wait time to flush the log is high' + event_name: 'MSSQL: DB ''{#DBNAME}'': Total wait time to flush the log is high (over {$MSSQL.LOG_FLUSH_WAIT_TIME.MAX:"{#DBNAME}"}ms for 5m)' + priority: WARNING + description: 'The wait time to flush the log is too long.' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: performance + - uuid: e0ebbdccf06e4bd580944eca894fd765 + name: 'MSSQL DB ''{#DBNAME}'': Log growths' + type: DEPENDENT + key: 'mssql.db.log_growths["{#DBNAME}"]' + delay: '0' + description: 'Total number of times the transaction log for the database has been expanded.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Growths'')].cntr_value.first()' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: f4705df239ff4b52a7594adc8bff1786 + name: 'MSSQL DB ''{#DBNAME}'': Log shrinks' + type: DEPENDENT + key: 'mssql.db.log_shrinks["{#DBNAME}"]' + delay: '0' + description: 'Total number of times the transaction log for the database has been shrunk.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Shrinks'')].cntr_value.first()' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 23f7b754af114e779bfb12b954041a3a + name: 'MSSQL DB ''{#DBNAME}'': Log truncations' + type: DEPENDENT + key: 'mssql.db.log_truncations["{#DBNAME}"]' + delay: '0' + description: 'Number of times the transaction log has been shrunk.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Log Truncations'')].cntr_value.first()' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - uuid: 622cd26e368144c7b4b4a760be6e9d80 + name: 'MSSQL DB ''{#DBNAME}'': Percent log used' + type: DEPENDENT + key: 'mssql.db.percent_log_used["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of log space in use.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Percent Log Used'')].cntr_value.first()' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: f2a80dfd54ca4e2391adbc7006118987 + expression: 'min(/MSSQL by Zabbix agent 2/mssql.db.percent_log_used["{#DBNAME}"],5m)>{$MSSQL.PERCENT_LOG_USED.MAX:"{#DBNAME}"}' + name: 'MSSQL: DB ''{#DBNAME}'': Percent of log usage is high' + event_name: 'MSSQL: DB ''{#DBNAME}'': Percent of log usage is high (over {$MSSQL.PERCENT_LOG_USED.MAX:"{#DBNAME}"}% for 5m)' + priority: WARNING + description: 'There''s not enough space left in the log.' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: performance + - uuid: 84e28628c11d4c35a7ee7b1a714c7b59 + name: 'MSSQL DB ''{#DBNAME}'': Get performance counters' + type: DEPENDENT + key: 'mssql.db.perf_raw["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets server status information for {#DBNAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.object_name=~''.*Databases'' && @.instance_name==''{#DBNAME}'')]' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.perfcounter.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 2032b8a3889a4a9f941529c4b62aa860 + name: 'MSSQL DB ''{#DBNAME}'': State' + type: DEPENDENT + key: 'mssql.db.state["{#DBNAME}"]' + delay: '0' + description: | + 0 = Online + 1 = Restoring + 2 = Recovering | SQL Server 2008 and later + 3 = Recovery_pending | SQL Server 2008 and later + 4 = Suspect + 5 = Emergency | SQL Server 2008 and later + 6 = Offline | SQL Server 2008 and later + 7 = Copying | Azure SQL Database Active Geo-Replication + 10 = Offline_secondary | Azure SQL Database Active Geo-Replication + valuemap: + name: 'MSSQL DB state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''State'')].cntr_value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 0963794ed0b0483bbaa9dc0858c9f445 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.db.state["{#DBNAME}"])>1' + name: 'MSSQL: DB ''{#DBNAME}'': State is {ITEM.VALUE}' + priority: HIGH + description: 'The DB has a non-working state.' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: e2f693fb31d84532a67d6f7e2f479acc + name: 'MSSQL DB ''{#DBNAME}'': Transactions per second' + type: DEPENDENT + key: 'mssql.db.transactions_sec.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of transactions started for the database per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.counter_name==''Transactions/sec'')].cntr_value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mssql.db.perf_raw["{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 7b708b7c408f4b2fb5d1bc6d017d6c68 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.backup.log["{#DBNAME}"])>{$MSSQL.BACKUP_LOG.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_LOG.USED:"{#DBNAME}"}=1 and last(/MSSQL by Zabbix agent 2/mssql.backup.recovery_model["{#DBNAME}"])<>3' + name: 'MSSQL: DB ''{#DBNAME}'': Log backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Log backup older than {$MSSQL.BACKUP_LOG.CRIT:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The log backup has not been executed for a long time.' + manual_close: 'YES' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: dc580ac10b3f451686b8163bdf21b759 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.backup.log["{#DBNAME}"])>{$MSSQL.BACKUP_LOG.WARN:"{#DBNAME}"} and {$MSSQL.BACKUP_LOG.USED:"{#DBNAME}"}=1 and last(/MSSQL by Zabbix agent 2/mssql.backup.recovery_model["{#DBNAME}"])<>3' + name: 'MSSQL: DB ''{#DBNAME}'': Log backup is old' + event_name: 'MSSQL: DB ''{#DBNAME}'': Log backup older than {$MSSQL.BACKUP_LOG.WARN:"{#DBNAME}"}' + opdata: 'Time since last backup: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The log backup has not been executed for a long time.' + manual_close: 'YES' + dependencies: + - name: 'MSSQL: DB ''{#DBNAME}'': Log backup is old' + expression: 'last(/MSSQL by Zabbix agent 2/mssql.backup.log["{#DBNAME}"])>{$MSSQL.BACKUP_LOG.CRIT:"{#DBNAME}"} and {$MSSQL.BACKUP_LOG.USED:"{#DBNAME}"}=1 and last(/MSSQL by Zabbix agent 2/mssql.backup.recovery_model["{#DBNAME}"])<>3' + tags: + - tag: database + value: '{#DBNAME}' + - tag: scope + value: availability + graph_prototypes: + - uuid: 8175463b48da43b596b0fd733dfa1b2e + name: 'DB ''{#DBNAME}'': Log size' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: 'mssql.db.log_files_size["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: 'mssql.db.log_files_used_size["{#DBNAME}"]' + - uuid: 768ec0884405473fb269f8b465b214e6 + name: 'DB ''{#DBNAME}'': Number of Log changes' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: 'mssql.db.log_growths["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: 'mssql.db.log_shrinks["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by Zabbix agent 2' + key: 'mssql.db.log_truncations["{#DBNAME}"]' + - uuid: d60af32a941e41ed9d0a65f996df89e4 + name: 'DB ''{#DBNAME}'': Size' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: 'mssql.db.data_files_size["{#DBNAME}"]' + master_item: + key: 'mssql.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + lld_macro_paths: + - lld_macro: '{#DBNAME}' + path: $.dbname + - lld_macro: '{#RECOVERY_MODEL}' + path: $.recovery_model + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + overrides: + - name: 'Log backup' + step: '1' + filter: + conditions: + - macro: '{#RECOVERY_MODEL}' + value: '3' + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Log backup is old' + discover: NO_DISCOVER + - uuid: 749fe36645994fc2aa45d7916862b893 + name: 'Job discovery' + type: DEPENDENT + key: mssql.job.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#JOBNAME}' + value: '{$MSSQL.JOB.MATCHES}' + formulaid: A + - macro: '{#JOBNAME}' + value: '{$MSSQL.JOB.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Scanning jobs in DBMS.' + item_prototypes: + - uuid: 7503acf68ad44180ace4113d654752d1 + name: 'MSSQL Job ''{#JOBNAME}'': Enabled' + type: DEPENDENT + key: 'mssql.job.enabled["{#JOBNAME}"]' + delay: '0' + description: | + The possible values of the job status: + 0 = Disabled + 1 = Enabled + valuemap: + name: 'MSSQL - Yes / No' + preprocessing: + - type: JSONPATH + parameters: + - $.enabled + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + - uuid: a42c8a24b329498581b8a81c13d16076 + name: 'MSSQL Job ''{#JOBNAME}'': Last run date-time' + type: DEPENDENT + key: 'mssql.job.lastrundatetime["{#JOBNAME}"]' + delay: '0' + units: unixtime + description: 'The last date-time of the job run.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_run_date_time + - type: JAVASCRIPT + parameters: + - 'return value == ''null'' ? 0 : Math.floor(new Date(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + - uuid: b86b627c1a234d409950345b9d7a1f73 + name: 'MSSQL Job ''{#JOBNAME}'': Last run status message' + type: DEPENDENT + key: 'mssql.job.lastrunstatusmessage["{#JOBNAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'An informational message about the last run of the job.' + preprocessing: + - type: JSONPATH + parameters: + - $.last_run_status_message + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + - uuid: fcc4d2cfa5674d33b8831e03b23f40c5 + name: 'MSSQL Job ''{#JOBNAME}'': Next run date-time' + type: DEPENDENT + key: 'mssql.job.nextrundatetime["{#JOBNAME}"]' + delay: '0' + units: unixtime + description: 'The next date-time of the job run.' + preprocessing: + - type: JSONPATH + parameters: + - $.next_run_date_time + - type: JAVASCRIPT + parameters: + - 'return value == ''null'' ? 0 : Math.floor(new Date(value) / 1000);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + - uuid: 7bb5fb0220ef4649955049ee1b6d6c73 + name: 'MSSQL Job ''{#JOBNAME}'': Run status' + type: DEPENDENT + key: 'mssql.job.runstatus["{#JOBNAME}"]' + delay: '0' + description: | + The possible values of the job status: + 0 ⇒ Failed + 1 ⇒ Succeeded + 2 ⇒ Retry + 3 ⇒ Canceled + 4 ⇒ Running + valuemap: + name: 'MSSQL Job Run Status' + preprocessing: + - type: JSONPATH + parameters: + - $.run_status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + trigger_prototypes: + - uuid: f404c4f644ee450ebbd269eb7c8897d9 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.job.runstatus["{#JOBNAME}"])=0' + name: 'MSSQL: Job ''{#JOBNAME}'': Failed to run' + priority: WARNING + description: 'The last run of the job has failed.' + manual_close: 'YES' + tags: + - tag: mssql-job + value: '{#JOBNAME}' + - tag: scope + value: performance + - uuid: 6ae51f0fd7c04e01aa9e1af302d461d0 + name: 'MSSQL Job ''{#JOBNAME}'': Run duration' + type: DEPENDENT + key: 'mssql.job.run_duration["{#JOBNAME}"]' + delay: '0' + units: s + description: 'Duration of the last-run job.' + preprocessing: + - type: JSONPATH + parameters: + - $.run_duration + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'mssql.job.status_raw["{#JOBNAME}"]' + tags: + - tag: component + value: mssql-job + - tag: mssql-job + value: '{#JOBNAME}' + trigger_prototypes: + - uuid: b8bf7358712242609e64ce60303eb80f + expression: 'last(/MSSQL by Zabbix agent 2/mssql.job.run_duration["{#JOBNAME}"])>{$MSSQL.JOB_DURATION.WARN:"{#JOBNAME}"}' + name: 'MSSQL: Job ''{#JOBNAME}'': Job duration is high' + event_name: 'MSSQL: Job ''{#JOBNAME}'': Job duration is greater than {$MSSQL.JOB_DURATION.WARN:"{#JOBNAME}"}' + opdata: 'Job duration: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The job is taking too long.' + manual_close: 'YES' + tags: + - tag: mssql-job + value: '{#JOBNAME}' + - tag: scope + value: performance + - uuid: 1bd249b766384ec28f9dfa0212ac3472 + name: 'MSSQL Job ''{#JOBNAME}'': Get job status' + type: DEPENDENT + key: 'mssql.job.status_raw["{#JOBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets the status of SQL agent job {#JOBNAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.job_name==''{#JOBNAME}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: 'mssql.job.status.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: raw + - tag: mssql-job + value: '{#JOBNAME}' + master_item: + key: 'mssql.job.status.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + lld_macro_paths: + - lld_macro: '{#JOBNAME}' + path: $.job_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: f47cad40c2dd42d4a80fb5628b8cc790 + name: 'Local database discovery' + type: DEPENDENT + key: mssql.local.db.discovery + delay: '0' + description: 'Discovery of the local availability databases.' + item_prototypes: + - uuid: af88b98cb0274de89dbf3b65a1b5c107 + name: 'MSSQL AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': Suspended' + type: DEPENDENT + key: 'mssql.local_db.is_suspended["{#DBNAME}"]' + delay: '0' + description: | + Database state: + 0 = Resumed + 1 = Suspended + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'' && @.group_name==''{#GROUP_NAME}'')].is_suspended.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.local.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: local-db + - tag: local-db + value: '{#DBNAME}' + - uuid: b0f834ec67b743a994acc4d2681c594f + name: 'MSSQL AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': State' + type: DEPENDENT + key: 'mssql.local_db.state["{#DBNAME}"]' + delay: '0' + description: | + 0 = Online + 1 = Restoring + 2 = Recovering + 3 = Recovery pending + 4 = Suspect + 5 = Emergency + 6 = Offline + valuemap: + name: 'MSSQL DB state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'' && @.group_name==''{#GROUP_NAME}'')].database_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.local.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: local-db + - tag: local-db + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 7eb2d73718b0451790c5d81d63517c1b + expression: 'last(/MSSQL by Zabbix agent 2/mssql.local_db.state["{#DBNAME}"])>0' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': "{#DBNAME}" is {ITEM.VALUE}' + priority: WARNING + description: 'The local availability database has a non-working state.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: local-db + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: bdbe4f929d0247baa8522b0bae2e3b3e + name: 'MSSQL AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': Synchronization health' + type: DEPENDENT + key: 'mssql.local_db.synchronization_health["{#DBNAME}"]' + delay: '0' + description: | + Reflects the intersection of the synchronization state of a database that is joined to the availability group on the availability replica and the availability mode of the availability replica (synchronous-commit or asynchronous-commit mode): + 0 = Not healthy. The synchronization_state of the database is 0 ("Not synchronizing"). + 1 = Partially healthy. A database on a synchronous-commit availability replica is considered partially healthy if synchronization_state is 1 ("Synchronizing"). + 2 = Healthy. A database on an synchronous-commit availability replica is considered healthy if synchronization_state is 2 ("Synchronized"), and a database on an asynchronous-commit availability replica is considered healthy if synchronization_state is 1 ("Synchronizing"). + valuemap: + name: 'MSSQL AG Synchronization health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'' && @.group_name==''{#GROUP_NAME}'')].synchronization_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.local.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: local-db + - tag: local-db + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 47ba6c51cf34498a991b68b341210eca + expression: 'last(/MSSQL by Zabbix agent 2/mssql.local_db.synchronization_health["{#DBNAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': "{#DBNAME}" is Not healthy' + priority: HIGH + description: 'The synchronization state of the local availability database is "Not synchronizing".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: local-db + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 112b6ba5294946c7973d278392266439 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.local_db.synchronization_health["{#DBNAME}"])=1' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Local DB ''{#DBNAME}'': "{#DBNAME}" is Partially healthy' + priority: AVERAGE + description: 'A database on a synchronous-commit availability replica is considered partially healthy if synchronization state is "Synchronizing".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: local-db + value: '{#DBNAME}' + - tag: scope + value: availability + master_item: + key: 'mssql.local.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + lld_macro_paths: + - lld_macro: '{#DBNAME}' + path: $.dbname + - lld_macro: '{#GROUP_NAME}' + path: $.group_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: 7c12efa1fd27435a968d910abcb1c095 + name: 'Mirroring discovery' + type: DEPENDENT + key: mssql.mirroring.discovery + delay: '0' + description: 'To see the row for a database other than master or tempdb, you must either be the database owner or have at least ALTER ANY DATABASE or VIEW ANY DATABASE server-level permission or CREATE DATABASE permission in the master database. To see non-NULL values on a mirror database, you must be a member of the sysadmin fixed server role.' + item_prototypes: + - uuid: ad3744d9c53f44008f6557a25333268d + name: 'MSSQL Mirroring ''{#DBNAME}'': Role' + type: DEPENDENT + key: 'mssql.mirroring.role["{#DBNAME}"]' + delay: '0' + description: | + Current role of the local database plays in the database mirroring session. + 1 = Principal + 2 = Mirror + valuemap: + name: 'MSSQL Mirroring Role' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')].mirroring_role.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.mirroring.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: mssql-mirroring + - tag: mssql-mirroring + value: '{#DBNAME}' + - uuid: da278bc7d59b4590a5a869d800b57835 + name: 'MSSQL Mirroring ''{#DBNAME}'': Role sequence' + type: DEPENDENT + key: 'mssql.mirroring.role_sequence["{#DBNAME}"]' + delay: '0' + description: 'The number of times that mirroring partners have switched the principal and mirror roles due to a failover or forced service.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')].mirroring_role_sequence.first()' + - type: SIMPLE_CHANGE + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.mirroring.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: mssql-mirroring + - tag: mssql-mirroring + value: '{#DBNAME}' + - uuid: ff0f198e003d4804a4ef471336b7b64b + name: 'MSSQL Mirroring ''{#DBNAME}'': Safety level' + type: DEPENDENT + key: 'mssql.mirroring.safety_level["{#DBNAME}"]' + delay: '0' + description: | + Safety setting for updates on the mirror database: + 0 = Unknown state + 1 = Off [asynchronous] + 2 = Full [synchronous] + valuemap: + name: 'MSSQL Safety level' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')].mirroring_safety_level.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.mirroring.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: mssql-mirroring + - tag: mssql-mirroring + value: '{#DBNAME}' + - uuid: c0578a39b0a349d3bc4418bd25efbfd9 + name: 'MSSQL Mirroring ''{#DBNAME}'': State' + type: DEPENDENT + key: 'mssql.mirroring.state["{#DBNAME}"]' + delay: '0' + description: | + State of the mirror database and of the database mirroring session. + 0 = Suspended + 1 = Disconnected from the other partner + 2 = Synchronizing + 3 = Pending failover + 4 = Synchronized + 5 = The partners are not synchronized. Failover is not possible now. + 6 = The partners are synchronized. Failover is potentially possible. For information about the requirements for the failover, see Database Mirroring Operating Modes: https://learn.microsoft.com/en-us/sql/database-engine/database-mirroring/database-mirroring-operating-modes?view=sql-server-ver16. + valuemap: + name: 'MSSQL Mirroring State' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')].mirroring_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.mirroring.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: mssql-mirroring + - tag: mssql-mirroring + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 33ef90679bcb47f09cc0c5372ea54fdc + expression: 'last(/MSSQL by Zabbix agent 2/mssql.mirroring.state["{#DBNAME}"])=3' + name: 'MSSQL: Mirroring ''{#DBNAME}'': "{#DBNAME}" is {ITEM.VALUE}' + priority: WARNING + description: 'The state of the mirror database and of the database mirroring session is "Pending failover".' + tags: + - tag: mssql-mirroring + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 4e7813c78c8f47808cfb5c970de2ad99 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.mirroring.state["{#DBNAME}"])=5' + name: 'MSSQL: Mirroring ''{#DBNAME}'': "{#DBNAME}" is {ITEM.VALUE}' + priority: HIGH + description: 'The state of the mirror database and of the database mirroring session is "Not synchronized". The partners are not synchronized. A failover is not possible now.' + tags: + - tag: mssql-mirroring + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 5554197e2079495ab49491ca0855ccee + expression: 'last(/MSSQL by Zabbix agent 2/mssql.mirroring.state["{#DBNAME}"])>=0 and last(/MSSQL by Zabbix agent 2/mssql.mirroring.state["{#DBNAME}"])<=2' + name: 'MSSQL: Mirroring ''{#DBNAME}'': "{#DBNAME}" is {ITEM.VALUE}' + priority: INFO + description: 'The state of the mirror database and of the database mirroring session is "Suspended", "Disconnected from the other partner", or "Synchronizing".' + tags: + - tag: mssql-mirroring + value: '{#DBNAME}' + - tag: scope + value: availability + - uuid: 84be4a93d1774b5096831c082b9154de + name: 'MSSQL Mirroring ''{#DBNAME}'': Witness state' + type: DEPENDENT + key: 'mssql.mirroring.witness_state["{#DBNAME}"]' + delay: '0' + description: | + State of the witness in the database mirroring session of the database: + 0 = Unknown + 1 = Connected + 2 = Disconnected + valuemap: + name: 'MSSQL Witness state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'')].mirroring_witness_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.mirroring.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: mssql-mirroring + - tag: mssql-mirroring + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 3a3903f3008b4360a93e45d94f344a42 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.mirroring.witness_state["{#DBNAME}"])=2' + name: 'MSSQL: Mirroring ''{#DBNAME}'': "{#DBNAME}" Witness is disconnected' + priority: WARNING + description: 'The state of the witness in the database mirroring session of the database is "Disconnected".' + tags: + - tag: mssql-mirroring + value: '{#DBNAME}' + - tag: scope + value: availability + graph_prototypes: + - uuid: 37c8f69765e3456bbfdfbe096c78e910 + name: 'Mirroring ''{#DBNAME}'': States' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: 'mssql.mirroring.state["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: 'mssql.mirroring.witness_state["{#DBNAME}"]' + master_item: + key: 'mssql.mirroring.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + lld_macro_paths: + - lld_macro: '{#DBNAME}' + path: $.dbname + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: faaa289d832d4dcda5de868d832a7d31 + name: 'Non-local database discovery' + type: DEPENDENT + key: mssql.non.local.db.discovery + delay: '0' + description: 'Discovery of the non-local (not local to SQL Server instance) availability databases.' + item_prototypes: + - uuid: ab9c87918819445f8c4eaf3fd3226a5a + name: 'MSSQL AG ''{#GROUP_NAME}'' Non-Local DB ''*{#REPLICA_NAME}*{#DBNAME}'': Log queue size' + type: DEPENDENT + key: 'mssql.non-local_db.log_send_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"]' + delay: '0' + units: B + description: 'Amount of the log records of the primary database that has not been sent to the secondary databases.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'' && @.group_name==''{#GROUP_NAME}'' && @.replica_name==''{#REPLICA_NAME}'')].log_send_queue_size.first()' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.nonlocal.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: non-local-db + - tag: non-local-db + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 16b1fc9ee0e340ac8f1742d04ffc6393 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.non-local_db.log_send_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#1)>last(/MSSQL by Zabbix agent 2/mssql.non-local_db.log_send_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#2) and last(/MSSQL by Zabbix agent 2/mssql.non-local_db.log_send_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#2)>last(/MSSQL by Zabbix agent 2/mssql.non-local_db.log_send_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#3)' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Non-Local DB ''*{#REPLICA_NAME}*{#DBNAME}'': Log queue size is growing' + priority: HIGH + description: 'The log records of the primary database are not sent to the secondary databases.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: non-local-db + value: '{#DBNAME}' + - tag: scope + value: capacity + - uuid: dd2a6b660ed148e7b1c729ffb2a4ad76 + name: 'MSSQL AG ''{#GROUP_NAME}'' Non-Local DB ''*{#REPLICA_NAME}*{#DBNAME}'': Redo log queue size' + type: DEPENDENT + key: 'mssql.non-local_db.redo_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"]' + delay: '0' + units: B + description: 'Amount of log records in the log files of the secondary replica that has not yet been redone.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.dbname==''{#DBNAME}'' && @.group_name==''{#GROUP_NAME}'' && @.replica_name==''{#REPLICA_NAME}'')].redo_queue_size.first()' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.nonlocal.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: non-local-db + - tag: non-local-db + value: '{#DBNAME}' + trigger_prototypes: + - uuid: b4748575543a451c85fa013e4867e38f + expression: 'last(/MSSQL by Zabbix agent 2/mssql.non-local_db.redo_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#1)>last(/MSSQL by Zabbix agent 2/mssql.non-local_db.redo_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#2) and last(/MSSQL by Zabbix agent 2/mssql.non-local_db.redo_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#2)>last(/MSSQL by Zabbix agent 2/mssql.non-local_db.redo_queue_size["{#GROUP_NAME}*{#REPLICA_NAME}*{#DBNAME}"],#3)' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Non-Local DB ''*{#REPLICA_NAME}*{#DBNAME}'': Redo log queue size is growing' + priority: HIGH + description: 'The log records in the log files of the secondary replica have not yet been redone.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: non-local-db + value: '{#DBNAME}' + - tag: scope + value: capacity + master_item: + key: 'mssql.nonlocal.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + lld_macro_paths: + - lld_macro: '{#DBNAME}' + path: $.dbname + - lld_macro: '{#GROUP_NAME}' + path: $.group_name + - lld_macro: '{#REPLICA_NAME}' + path: $.replica_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: ee0ccf3f0e6e4bfbb500942811874ece + name: 'Quorum discovery' + type: DEPENDENT + key: mssql.quorum.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CLUSTER_NAME}' + value: ^.+$ + formulaid: A + description: 'Discovery of the quorum of the WSFC cluster.' + item_prototypes: + - uuid: 3ddd6e3780de4b7a8cb2e37d515d5a8f + name: 'MSSQL Cluster ''{#CLUSTER_NAME}'': Quorum state' + type: DEPENDENT + key: 'mssql.quorum.state.[{#CLUSTER_NAME}]' + delay: '0' + description: | + State of the WSFC quorum, one of: + 0 = Unknown quorum state + 1 = Normal quorum + 2 = Forced quorum + valuemap: + name: 'MSSQL Quorum state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.cluster_name==''{#CLUSTER_NAME}'')].quorum_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.quorum.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: cluster-name + value: '{#CLUSTER_NAME}' + - tag: component + value: quorum + - uuid: 1a00d48af79340478b359a958cb78e3f + name: 'MSSQL Cluster ''{#CLUSTER_NAME}'': Quorum type' + type: DEPENDENT + key: 'mssql.quorum.type.[{#CLUSTER_NAME}]' + delay: '0' + description: | + Type of quorum used by this WSFC cluster, one of: + 0 = Node Majority. This quorum configuration can sustain failures of half the nodes (rounding up) minus one. + 1 = Node and Disk Majority. If the disk witness remains on line, this quorum configuration can sustain failures of half the nodes (rounding up). + 2 = Node and File Share Majority. This quorum configuration works in a similar way to Node and Disk Majority, but uses a file-share witness instead of a disk witness. + 3 = No Majority: Disk Only. If the quorum disk is online, this quorum configuration can sustain failures of all nodes except one. + 4 = Unknown Quorum. Unknown quorum for the cluster. + 5 = Cloud Witness. Cluster utilizes Microsoft Azure for quorum arbitration. If the cloud witness is available, the cluster can sustain the failure of half the nodes (rounding up). + valuemap: + name: 'MSSQL Quorum type' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.cluster_name==''{#CLUSTER_NAME}'')].quorum_type.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'mssql.quorum.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: cluster-name + value: '{#CLUSTER_NAME}' + - tag: component + value: quorum + master_item: + key: 'mssql.quorum.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + lld_macro_paths: + - lld_macro: '{#CLUSTER_NAME}' + path: $.cluster_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: 57e6fe3d425d4d74a360f26bb5ff5e57 + name: 'Quorum members discovery' + type: DEPENDENT + key: mssql.quorum.member.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CLUSTER_NAME}' + value: ^.+$ + formulaid: A + - macro: '{#MEMBER_NAME}' + value: '{$MSSQL.QUORUM.MEMBER.DISCOVERY.NAME.MATCHES}' + formulaid: B + - macro: '{#MEMBER_NAME}' + value: '{$MSSQL.QUORUM.MEMBER.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Discovery of the quorum members of the WSFC cluster.' + item_prototypes: + - uuid: 6fec1fe9856c4b7eb1f7446e01a75ce5 + name: 'MSSQL Cluster member ''{#MEMBER_NAME}'': Member state' + type: DEPENDENT + key: 'mssql.quorum_members.member_state.[{#MEMBER_NAME}]' + delay: '0' + description: | + The member state, one of: + 0 = Offline + 1 = Online + valuemap: + name: 'MSSQL Quorum members state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.member_name==''{#MEMBER_NAME}'')].member_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.quorum.member.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: 'quorum members' + - tag: quorum-members-name + value: '{#MEMBER_NAME}' + - uuid: d8dd85b6fc764ba4abc4d5cff0cefced + name: 'MSSQL Cluster member ''{#MEMBER_NAME}'': Member type' + type: DEPENDENT + key: 'mssql.quorum_members.member_type.[{#MEMBER_NAME}]' + delay: '0' + description: | + The type of member, one of: + 0 = WSFC node + 1 = Disk witness + 2 = File share witness + 3 = Cloud Witness + valuemap: + name: 'MSSQL Quorum members type' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.member_name==''{#MEMBER_NAME}'')].member_type.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'mssql.quorum.member.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: 'quorum members' + - tag: quorum-members-name + value: '{#MEMBER_NAME}' + - uuid: 87154fcf731b461b94e816ce58ef44ac + name: 'MSSQL Cluster member ''{#MEMBER_NAME}'': Number of quorum votes' + type: DEPENDENT + key: 'mssql.quorum_members.number_of_quorum_votes.[{#MEMBER_NAME}]' + delay: '0' + description: 'Number of quorum votes possessed by this quorum member.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.member_name==''{#MEMBER_NAME}'')].number_of_quorum_votes.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'mssql.quorum.member.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: component + value: 'quorum members' + - tag: quorum-members-name + value: '{#MEMBER_NAME}' + master_item: + key: 'mssql.quorum.member.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + lld_macro_paths: + - lld_macro: '{#CLUSTER_NAME}' + path: $.cluster_name + - lld_macro: '{#MEMBER_NAME}' + path: $.member_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: f72e7102f3314225b298a44332361aea + name: 'Replication discovery' + type: DEPENDENT + key: mssql.replica.discovery + delay: '0' + description: 'Discovery of the database replicas.' + item_prototypes: + - uuid: a685cc983de040a6a6456d0568b74492 + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Connected state' + type: DEPENDENT + key: 'mssql.replica.connected_state["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Whether a secondary replica is currently connected to the primary replica: + 0 = Disconnected. The response of an availability replica to the "Disconnected" state depends on its role: + On the primary replica, if a secondary replica is disconnected, its secondary databases are marked as "Not synchronized" on the primary replica, which waits for the secondary to reconnect; + On a secondary replica, upon detecting that it is disconnected, the secondary replica attempts to reconnect to the primary replica. + 1 = Connected. Each primary replica tracks the connection state for every secondary replica in the same availability group. Secondary replicas track the connection state of only the primary replica. + valuemap: + name: 'MSSQL AG Connected state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].connected_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.replica.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + - uuid: 8dd557f2254a43adb8d56864d8910c11 + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Is local' + type: DEPENDENT + key: 'mssql.replica.is_local["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Whether the replica is local: + 0 = Indicates a remote secondary replica in an availability group whose primary replica is hosted by the local server instance. This value occurs only on the primary replica location. + 1 = Indicates a local replica. On secondary replicas, this is the only available value for the availability group to which the replica belongs. + valuemap: + name: 'MSSQL - Yes / No' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].is_local.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.replica.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + - uuid: 1f6c0f9e0757405eb172fa97f8dfe990 + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Join state' + type: DEPENDENT + key: 'mssql.replica.join_state["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + 0 = Not joined + 1 = Joined, standalone instance + 2 = Joined, failover cluster instance + valuemap: + name: 'MSSQL AG Join state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].join_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.replica.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + - uuid: bc71481dd6b047679946f8488dd844f7 + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Operational state' + type: DEPENDENT + key: 'mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Current operational state of the replica: + 0 = Pending failover + 1 = Pending + 2 = Online + 3 = Offline + 4 = Failed + 5 = Failed, no quorum + 6 = Not local + valuemap: + name: 'MSSQL AG Operational state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].operational_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.replica.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + trigger_prototypes: + - uuid: 7a05f5f0393f442d8e5d78669e9dd8cb + expression: 'last(/MSSQL by Zabbix agent 2/mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=0 or last(/MSSQL by Zabbix agent 2/mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=1 or last(/MSSQL by Zabbix agent 2/mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=3' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is {ITEM.VALUE}' + priority: WARNING + description: 'The operational state of the replica in a given availability group is "Pending" or "Offline".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + - uuid: 5f67fcecd9864c5a97c0bb7c8281cd81 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=4' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is {ITEM.VALUE}' + priority: AVERAGE + description: 'The operational state of the replica in a given availability group is "Failed".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + - uuid: 7e387d698f214c458a6e45d64191185e + expression: 'last(/MSSQL by Zabbix agent 2/mssql.replica.operational_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=5' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is {ITEM.VALUE}' + priority: HIGH + description: 'The operational state of the replica in a given availability group is "Failed, no quorum".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + - uuid: a1ae4502e4a445f7801ba8283124e480 + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Recovery health' + type: DEPENDENT + key: 'mssql.replica.recovery_health["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Rollup of the "database_state" column of the `sys.dm_hadr_database_replica_states` dynamic management view: + 0 = In progress. At least one joined database has a database state other than "Online" (database_state is not "0"). + 1 = Online. All the joined databases have a database state of "Online" (database_state is "0"). + valuemap: + name: 'MSSQL AG Recovery health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].recovery_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.replica.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + trigger_prototypes: + - uuid: 9c5f393288114e1081055f18c136dd07 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.replica.recovery_health["{#GROUP_NAME}_{#REPLICA_NAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} Recovery in progress' + priority: INFO + description: 'At least one joined database has a database state other than "Online".' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: notice + - uuid: 50afa669369d4a5e936748aee07e76f0 + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Role' + type: DEPENDENT + key: 'mssql.replica.role["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Current Always On availability group role of a local replica or a connected remote replica: + 0 = Resolving + 1 = Primary + 2 = Secondary + valuemap: + name: 'MSSQL AG Role' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].role.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.replica.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + - uuid: 6a1abecd7c0044dd82442b30df3b4eae + name: 'MSSQL AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': Sync health' + type: DEPENDENT + key: 'mssql.replica.synchronization_health["{#GROUP_NAME}_{#REPLICA_NAME}"]' + delay: '0' + description: | + Reflects a rollup of the database synchronization state (synchronization_state) of all joined availability databases (also known as replicas) and the availability mode of the replica (synchronous-commit or asynchronous-commit mode). The rollup will reflect the least healthy accumulated state of the databases on the replica: + 0 = Not healthy. At least one joined database is in the "Not synchronizing" state. + 1 = Partially healthy. Some replicas are not in the target synchronization state: synchronous-commit replicas should be synchronized, and asynchronous-commit replicas should be synchronizing. + 2 = Healthy. All replicas are in the target synchronization state: synchronous-commit replicas are synchronized, and asynchronous-commit replicas are synchronizing. + valuemap: + name: 'MSSQL AG Synchronization health' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.replica_name==''{#REPLICA_NAME}'' && @.group_name==''{#GROUP_NAME}'')].synchronization_health.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mssql.replica.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: component + value: replica + - tag: replica + value: '{#REPLICA_NAME}' + trigger_prototypes: + - uuid: 57aef51f42cd4e40a1041bb6862fde27 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.replica.synchronization_health["{#GROUP_NAME}_{#REPLICA_NAME}"])=0' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is Not healthy' + priority: AVERAGE + description: 'At least one joined database is in the "Not synchronizing" state.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + - uuid: e2ce3d5eb0174f1789ed01f3516f25dd + expression: 'last(/MSSQL by Zabbix agent 2/mssql.replica.synchronization_health["{#GROUP_NAME}_{#REPLICA_NAME}"])=1' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is Partially healthy' + priority: WARNING + description: 'Some replicas are not in the target synchronization state: synchronous-commit replicas should be synchronized, and asynchronous-commit replicas should be synchronizing.' + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + trigger_prototypes: + - uuid: b6e37290b6b44d2888bdbfe53a949b63 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.replica.connected_state["{#GROUP_NAME}_{#REPLICA_NAME}"])=0 and last(/MSSQL by Zabbix agent 2/mssql.replica.role["{#GROUP_NAME}_{#REPLICA_NAME}"])=2' + name: 'MSSQL: AG ''{#GROUP_NAME}'' Replica ''{#REPLICA_NAME}'': {#REPLICA_NAME} is disconnected' + priority: WARNING + description: | + The response of an availability replica to the "Disconnected" state depends on its role: + On the primary replica, if a secondary replica is disconnected, its secondary databases are marked as "Not synchronized" on the primary replica, which waits for the secondary to reconnect; + On a secondary replica, upon detecting that it is disconnected, the secondary replica attempts to reconnect to the primary replica. + tags: + - tag: availability-group + value: '{#GROUP_NAME}' + - tag: replica + value: '{#REPLICA_NAME}' + - tag: scope + value: availability + master_item: + key: 'mssql.replica.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]' + lld_macro_paths: + - lld_macro: '{#GROUP_NAME}' + path: $.group_name + - lld_macro: '{#REPLICA_NAME}' + path: $.replica_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: class + value: database + - tag: target + value: mssql + macros: + - macro: '{$MSSQL.AVERAGE_WAIT_TIME.MAX}' + value: '500' + description: 'The maximum average wait time, in milliseconds - for the trigger expression.' + - macro: '{$MSSQL.BACKUP_DIFF.CRIT}' + value: 6d + description: 'The maximum of days without a differential backup - for the High trigger expression.' + - macro: '{$MSSQL.BACKUP_DIFF.USED}' + value: '1' + description: 'The flag for checking the age of a differential backup. If set to a value other than "1", the trigger expression for the differential backup age will not fire. Can be used with context for database name.' + - macro: '{$MSSQL.BACKUP_DIFF.WARN}' + value: 3d + description: 'The maximum of days without a differential backup - for the Warning trigger expression.' + - macro: '{$MSSQL.BACKUP_FULL.CRIT}' + value: 10d + description: 'The maximum of days without a full backup - for the High trigger expression.' + - macro: '{$MSSQL.BACKUP_FULL.USED}' + value: '1' + description: 'The flag for checking the age of a full backup. If set to a value other than "1", the trigger expression for the full backup age will not fire. Can be used with context for database name.' + - macro: '{$MSSQL.BACKUP_FULL.WARN}' + value: 9d + description: 'The maximum of days without a full backup - for the Warning trigger expression.' + - macro: '{$MSSQL.BACKUP_LOG.CRIT}' + value: 8h + description: 'The maximum of days without a log backup - for the High trigger expression.' + - macro: '{$MSSQL.BACKUP_LOG.USED}' + value: '1' + description: 'The flag for checking the age of a log backup. If set to a value other than "1", the trigger expression for the log backup age will not fire. Can be used with context for database name.' + - macro: '{$MSSQL.BACKUP_LOG.WARN}' + value: 4h + description: 'The maximum of days without a log backup - for the Warning trigger expression.' + - macro: '{$MSSQL.BUFFER_CACHE_RATIO.MIN.CRIT}' + value: '30' + description: 'The minimum buffer cache hit ratio, in percent - for the High trigger expression.' + - macro: '{$MSSQL.BUFFER_CACHE_RATIO.MIN.WARN}' + value: '50' + description: 'The minimum buffer cache hit ratio, in percent - for the Warning trigger expression.' + - macro: '{$MSSQL.DBNAME.MATCHES}' + value: '.*' + description: 'This macro is used in database discovery. It can be overridden on the host or linked template level.' + - macro: '{$MSSQL.DBNAME.NOT_MATCHES}' + value: master|tempdb|model|msdb + description: 'This macro is used in database discovery. It can be overridden on the host or linked template level.' + - macro: '{$MSSQL.DEADLOCKS.MAX}' + value: '1' + description: 'The maximum deadlocks per second - for the trigger expression.' + - macro: '{$MSSQL.FREE_LIST_STALLS.MAX}' + value: '2' + description: 'The maximum free list stalls per second - for the trigger expression.' + - macro: '{$MSSQL.HOST}' + value: localhost + description: 'The hostname or IP address of the MSSQL instance.' + - macro: '{$MSSQL.JOB.MATCHES}' + value: '.*' + description: 'This macro is used in job discovery. It can be overridden on the host or linked template level.' + - macro: '{$MSSQL.JOB.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in job discovery. It can be overridden on the host or linked template level.' + - macro: '{$MSSQL.JOB_DURATION.WARN}' + value: 1h + description: 'The maximum job duration - for the Warning trigger expression.' + - macro: '{$MSSQL.LAZY_WRITES.MAX}' + value: '20' + description: 'The maximum lazy writes per second - for the trigger expression.' + - macro: '{$MSSQL.LOCK_REQUESTS.MAX}' + value: '1000' + description: 'The maximum lock requests per second - for the trigger expression.' + - macro: '{$MSSQL.LOCK_TIMEOUTS.MAX}' + value: '1' + description: 'The maximum lock timeouts per second - for the trigger expression.' + - macro: '{$MSSQL.LOG_FLUSH_WAITS.MAX}' + value: '1' + description: 'The maximum log flush waits per second - for the trigger expression.' + - macro: '{$MSSQL.LOG_FLUSH_WAIT_TIME.MAX}' + value: '1' + description: 'The maximum log flush wait time, in milliseconds - for the trigger expression.' + - macro: '{$MSSQL.PAGE_LIFE_EXPECTANCY.MIN}' + value: '300' + description: 'The minimum page life (in seconds) expectancy - for the trigger expression.' + - macro: '{$MSSQL.PAGE_READS.MAX}' + value: '90' + description: 'The maximum page reads per second - for the trigger expression.' + - macro: '{$MSSQL.PAGE_WRITES.MAX}' + value: '90' + description: 'The maximum page writes per second - for the trigger expression.' + - macro: '{$MSSQL.PASSWORD}' + value: '' + description: 'MSSQL user password.' + - macro: '{$MSSQL.PERCENT_COMPILATIONS.MAX}' + value: '10' + description: 'The maximum percentage of Transact-SQL compilations - for the trigger expression.' + - macro: '{$MSSQL.PERCENT_LOG_USED.MAX}' + value: '80' + description: 'The maximum percentage of log used - for the trigger expression.' + - macro: '{$MSSQL.PERCENT_READAHEAD.MAX}' + value: '20' + description: 'The maximum percentage of pages read per second in anticipation of use - for the trigger expression.' + - macro: '{$MSSQL.PERCENT_RECOMPILATIONS.MAX}' + value: '10' + description: 'The maximum percentage of Transact-SQL recompilations - for the trigger expression.' + - macro: '{$MSSQL.PORT}' + value: '1433' + description: 'MSSQL TCP port.' + - macro: '{$MSSQL.QUORUM.MEMBER.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Filter to include discovered quorum member by name.' + - macro: '{$MSSQL.QUORUM.MEMBER.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered quorum member by name.' + - macro: '{$MSSQL.URI}' + value: '' + description: 'Connection string.' + - macro: '{$MSSQL.USER}' + value: '' + description: 'MSSQL username.' + - macro: '{$MSSQL.WORKTABLES_FROM_CACHE_RATIO.MIN.CRIT}' + value: '90' + description: 'The minimum percentage of work tables from the cache ratio - for the High trigger expression.' + - macro: '{$MSSQL.WORK_FILES.MAX}' + value: '20' + description: 'The maximum number of work files created per second - for the trigger expression.' + - macro: '{$MSSQL.WORK_TABLES.MAX}' + value: '20' + description: 'The maximum number of work tables created per second - for the trigger expression.' + dashboards: + - uuid: 699c7aa81a4b476abb938f3db0debf73 + name: 'MSSQL: Overview' + pages: + - name: Main + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Errors' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Server memory' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Waits per second' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Database pages' + - type: STRING + name: reference + value: AAAAG + - type: graph + 'y': '20' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Transactions' + - type: STRING + name: reference + value: AAAAI + - type: graph + 'y': '25' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Pages' + - type: STRING + name: reference + value: AAAAK + - type: graph + 'y': '30' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Memory grants outstanding and pending' + - type: STRING + name: reference + value: AAAAM + - type: graph + 'y': '35' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Access methods' + - type: STRING + name: reference + value: AAAAO + - type: graph + 'y': '40' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Logins per second and Logouts per second' + - type: STRING + name: reference + value: AAAAQ + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Locks' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Memory/cache load' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Wait times' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Cache objects' + - type: STRING + name: reference + value: AAAAH + - type: graph + x: '36' + 'y': '20' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Compilations' + - type: STRING + name: reference + value: AAAAJ + - type: graph + x: '36' + 'y': '25' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Page life expectancy' + - type: STRING + name: reference + value: AAAAL + - type: graph + x: '36' + 'y': '30' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Processes blocked' + - type: STRING + name: reference + value: AAAAN + - type: graph + x: '36' + 'y': '35' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'MSSQL: Auto-params' + - type: STRING + name: reference + value: AAAAP + - name: Databases + widgets: + - type: graphprototype + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'DB ''{#DBNAME}'': Size' + - type: STRING + name: reference + value: AAAAR + - type: INTEGER + name: rows + value: '3' + - type: graphprototype + x: '36' + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MSSQL by Zabbix agent 2' + name: 'DB ''{#DBNAME}'': Log size' + - type: STRING + name: reference + value: AAAAS + - type: INTEGER + name: rows + value: '3' + valuemaps: + - uuid: 0d7dbd62613540cc8dd70d2f0ec76db6 + name: 'MSSQL - Yes / No' + mappings: + - value: '0' + newvalue: 'No' + - value: '1' + newvalue: 'Yes' + - uuid: 1f962ea838d640d5905ae14d66826239 + name: 'MSSQL AG Connected state' + mappings: + - value: '0' + newvalue: Disconnected + - value: '1' + newvalue: Connected + - uuid: 034a175b7fba4e4d8e85806c8f801f18 + name: 'MSSQL AG Join state' + mappings: + - value: '0' + newvalue: 'Not joined' + - value: '1' + newvalue: 'Joined, standalone instance' + - value: '2' + newvalue: 'Joined, failover cluster instance' + - uuid: fbbaea2f75f94b7ba0bb2ed2756e2593 + name: 'MSSQL AG Operational state' + mappings: + - value: '0' + newvalue: 'Pending failover' + - value: '1' + newvalue: Pending + - value: '2' + newvalue: Online + - value: '3' + newvalue: Offline + - value: '4' + newvalue: Failed + - value: '5' + newvalue: 'Failed, no quorum' + - value: '6' + newvalue: 'Replica is not local' + - uuid: c90a7f77957a40c8bb6c9370ff1f63d1 + name: 'MSSQL AG Recovery health' + mappings: + - value: '0' + newvalue: 'In progress' + - value: '1' + newvalue: Online + - value: '2' + newvalue: 'Replica is not local' + - uuid: b07e0cd2c7fd4411b16305141058c9d7 + name: 'MSSQL AG Role' + mappings: + - value: '0' + newvalue: Resolving + - value: '1' + newvalue: Primary + - value: '2' + newvalue: Secondary + - uuid: dd1d46bfb14946769dc929ae1947a328 + name: 'MSSQL AG Synchronization health' + mappings: + - value: '0' + newvalue: 'Not healthy' + - value: '1' + newvalue: 'Partially healthy' + - value: '2' + newvalue: Healthy + - uuid: eeca1ed2c3cb4624b045b9ba0007f1a6 + name: 'MSSQL DB state' + mappings: + - value: '0' + newvalue: ONLINE + - value: '1' + newvalue: RESTORING + - value: '2' + newvalue: RECOVERING + - value: '3' + newvalue: RECOVERY_PENDING + - value: '4' + newvalue: SUSPECT + - value: '5' + newvalue: EMERGENCY + - value: '6' + newvalue: OFFLINE + - value: '7' + newvalue: COPYING + - value: '10' + newvalue: OFFLINE_SECONDARY + - uuid: bc4b734c0c3e4f508323a8880a9b27db + name: 'MSSQL Job Run Status' + mappings: + - value: '0' + newvalue: Failed + - value: '1' + newvalue: Succeeded + - value: '2' + newvalue: Retry + - value: '3' + newvalue: Canceled + - value: '4' + newvalue: Running + - value: '5' + newvalue: Unknown + - uuid: 09480e835f474f22ba463b7c6b486de1 + name: 'MSSQL Mirroring Role' + mappings: + - value: '0' + newvalue: 'Database is inaccessible or is not mirrored' + - value: '1' + newvalue: Principal + - value: '2' + newvalue: Mirror + - uuid: 6fd710f80063456483f47dab9fdab3c3 + name: 'MSSQL Mirroring State' + mappings: + - value: '0' + newvalue: Suspended + - value: '1' + newvalue: 'Disconnected from the other partner' + - value: '2' + newvalue: Synchronizing + - value: '3' + newvalue: 'Pending failover' + - value: '4' + newvalue: Synchronized + - value: '5' + newvalue: 'The partners are not synchronized. Failover is not possible now.' + - value: '6' + newvalue: 'The partners are synchronized. Failover is potentially possible.' + - value: '7' + newvalue: 'Database is inaccessible or is not mirrored' + - uuid: 300744b8bf494bc09cae58f1366e8043 + name: 'MSSQL Quorum members state' + mappings: + - value: '0' + newvalue: Offline + - value: '1' + newvalue: Online + - uuid: 38b1c1c9183f450cb3256fefaa8ae24a + name: 'MSSQL Quorum members type' + mappings: + - value: '0' + newvalue: 'WSFC node' + - value: '1' + newvalue: 'Disk witness' + - value: '2' + newvalue: 'File share witness' + - value: '3' + newvalue: 'Cloud Witness' + - uuid: 047cb848051f4e85a1f45664fd51255b + name: 'MSSQL Quorum state' + mappings: + - value: '0' + newvalue: 'Unknown quorum state' + - value: '1' + newvalue: 'Normal quorum' + - value: '2' + newvalue: 'Forced quorum' + - uuid: 2697dc5e3d5e462aac7951844a9fa76c + name: 'MSSQL Quorum type' + mappings: + - value: '0' + newvalue: 'Node Majority' + - value: '1' + newvalue: 'Node and Disk Majority' + - value: '2' + newvalue: 'Node and File Share Majority' + - value: '3' + newvalue: 'No Majority: Disk Only' + - value: '4' + newvalue: 'Unknown Quorum' + - value: '5' + newvalue: 'Cloud Witness' + - uuid: 1002338ba75c49f89ce5c27872818ff3 + name: 'MSSQL Recovery model' + mappings: + - value: '1' + newvalue: FULL + - value: '2' + newvalue: BULK_LOGGED + - value: '3' + newvalue: SIMPLE + - uuid: 8800c652dc154231b40e996b39c7c2dd + name: 'MSSQL Safety level' + mappings: + - value: '0' + newvalue: 'Unknown state' + - value: '1' + newvalue: 'Off [asynchronous]' + - value: '2' + newvalue: 'Full [synchronous]' + - value: '3' + newvalue: 'Database is inaccessible or is not mirrored' + - uuid: 0be116423b4949959053d581cafa096c + name: 'MSSQL Witness state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Connected + - value: '2' + newvalue: Disconnected + - value: '3' + newvalue: 'No witness exists' + - uuid: faafc4168c5a4eb09d20ab4168fbbc9e + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 366fa3cfcba94e038ad77c2f5a2649a2 + expression: 'last(/MSSQL by Zabbix agent 2/mssql.forwarded_records_sec.rate) * 100 > 10 * last(/MSSQL by Zabbix agent 2/mssql.batch_requests_sec.rate)' + name: 'MSSQL: Too frequently using pointers' + priority: WARNING + description: 'Rows with VARCHAR columns can experience expansion when VARCHAR values are updated with a longer string. In the case where the row cannot fit in the existing page, the row migrates, and access to the row will traverse a pointer. This only happens on heaps (tables without clustered indexes). In cases where clustered indexes cannot be used, drop non-clustered indexes, build a clustered index to reorg pages and rows, drop the clustered index, then recreate non-clustered indexes.' + tags: + - tag: scope + value: performance + - uuid: 274773f4bb9d4af798e8922b5054226b + expression: 'last(/MSSQL by Zabbix agent 2/mssql.readahead_pages_sec.rate) > {$MSSQL.PERCENT_READAHEAD.MAX} / 100 * last(/MSSQL by Zabbix agent 2/mssql.page_reads_sec.rate)' + name: 'MSSQL: Too many physical reads occurring' + priority: WARNING + description: 'If this value makes up even a sizeable minority of the total "Page Reads/sec" (say, greater than 20% of the total page reads), you may have too many physical reads occurring.' + tags: + - tag: scope + value: performance + graphs: + - uuid: 7d06995b2daf4496a3f4856e5c562e59 + name: 'MSSQL: Access methods' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.forwarded_records_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.full_scans_sec.rate + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.index_searches_sec.rate + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.page_splits_sec.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.workfiles_created_sec.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.worktables_created_sec.rate + - uuid: c1df070c49994a9fb3b15a3f9f15cf59 + name: 'MSSQL: Auto-params' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.autoparam_attempts_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.failed_autoparams_sec.rate + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.safe_autoparams_sec.rate + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.unsafe_autoparams_sec.rate + - uuid: 15b49ae51375483182c927a06c7e094a + name: 'MSSQL: Cache objects' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.cache_object_counts + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.cache_objects_in_use + - uuid: b3422c184eb7476e97e5b0f09bb70160 + name: 'MSSQL: Compilations' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.sql_compilations_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.sql_recompilations_sec.rate + - uuid: ecc056aa9b4d4da3b41f6ad7ec8d600c + name: 'MSSQL: Database pages' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.database_pages + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.target_pages + - uuid: b1decdef518c43c3bc8813b028e04025 + name: 'MSSQL: Errors' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.errors_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.offline_errors_sec.rate + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.info_errors_sec.rate + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.kill_connection_errors_sec.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.user_errors_sec.rate + - uuid: 6dff1806a75343a6a81a94c5fee6a632 + name: 'MSSQL: Locks' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.lock_requests_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.lock_timeouts_sec.rate + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.number_deadlocks_sec.rate + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.lock_waits_sec.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.average_wait_time + - uuid: ef6f803fbb744e8faa04673b5e3f5b38 + name: 'MSSQL: Logins per second and Logouts per second' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.logins_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.logouts_sec.rate + - uuid: b68986ff810f4336ad907d550f973b56 + name: 'MSSQL: Memory/cache load' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.cache_hit_ratio + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.buffer_cache_hit_ratio + - uuid: 335d81ea81384d1e85de7527598ce3f6 + name: 'MSSQL: Memory grants outstanding and pending' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.memory_grants_outstanding + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.memory_grants_pending + - uuid: 157c122b6d474441b4f95b91beee5730 + name: 'MSSQL: Page life expectancy' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.page_life_expectancy + - uuid: fff870597f4649d2a72941fb972d201c + name: 'MSSQL: Pages' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.page_lookups_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.page_reads_sec.rate + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.page_writes_sec.rate + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.readahead_pages_sec.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.checkpoint_pages_sec.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.free_list_stalls_sec.rate + - sortorder: '6' + color: C7A72D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.lazy_writes_sec.rate + - uuid: 3297eadad79f4f7d8597f0eccb0af926 + name: 'MSSQL: Processes blocked' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.processes_blocked + - uuid: 418dc893929c4f62beb361dcaaa6c56a + name: 'MSSQL: Server memory' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.target_server_memory + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.total_server_memory + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.granted_workspace_memory + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.maximum_workspace_memory + - uuid: 31467ce0afe24b2fa1a547f28eebc24a + name: 'MSSQL: Transactions' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.transactions_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.batch_requests_sec.rate + - uuid: e35b61f7a547477cba31c9949be61f5e + name: 'MSSQL: Waits per second' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.latch_waits_sec.rate + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.lock_waits_sec.rate + - uuid: ae485dce95974187a046b9743f32f629 + name: 'MSSQL: Wait times' + graph_items: + - color: 199C0D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.average_latch_wait_time + - sortorder: '1' + color: F63100 + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.total_latch_wait_time + - sortorder: '2' + color: 00611C + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.average_wait_time + - sortorder: '3' + color: F7941D + item: + host: 'MSSQL by Zabbix agent 2' + key: mssql.lock_wait_time diff --git a/Mantis_BT_by_HTTP.yaml b/Mantis_BT_by_HTTP.yaml new file mode 100644 index 0000000..bf9b94b --- /dev/null +++ b/Mantis_BT_by_HTTP.yaml @@ -0,0 +1,945 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 2c96393f8f2945c1a9f03f86adf5eb57 + template: 'Mantis BT by HTTP' + name: 'Mantis BT by HTTP' + description: | + Get Mantis BT issues by HTTP. + Metrics are collected by requests to Mantis BT API. + Please change macros {$MANTIS.URL} and {$MANTIS.TOKEN}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: bf1b74b98d5b4311afeb721059c01da9 + name: 'Get projects' + type: HTTP_AGENT + key: mantisbt.get.projects + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + description: 'Get projects from Mantis BT.' + timeout: 30s + url: '{$MANTIS.URL}/api/rest/projects/' + http_proxy: '{$MANTIS.HTTP.PROXY}' + headers: + - name: Authorization + value: '{$MANTIS.TOKEN}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: fc1e8a60cf544b3bbc92e6b6907b5e51 + name: 'Projects discovery' + type: DEPENDENT + key: mantisbt.projects.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ENABLED}' + value: 'true' + formulaid: A + - macro: '{#NAME}' + value: '{$MANTIS.LLD.FILTER.PROJECTS.MATCHES}' + formulaid: B + - macro: '{#NAME}' + value: '{$MANTIS.LLD.FILTER.PROJECTS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Discovery rule for a Mantis BT projects.' + item_prototypes: + - uuid: baffdd6d9e51403084fc4a98bb4b9ff7 + name: 'Project [{#NAME}]: High priority issues' + type: DEPENDENT + key: 'mantis.project.priority.high_issues[{#NAME}]' + delay: '0' + description: 'Count of "high" priority issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.priority.name==''high'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 8e68e80eaa9e45c1b6fdc8289361e016 + name: 'Project [{#NAME}]: Immediate priority issues' + type: DEPENDENT + key: 'mantis.project.priority.immediate_issues[{#NAME}]' + delay: '0' + description: 'Count of "immediate" priority issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.priority.name==''immediate'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 3e53778307b649f7b22ec82ab4e27894 + name: 'Project [{#NAME}]: Low priority issues' + type: DEPENDENT + key: 'mantis.project.priority.low_issues[{#NAME}]' + delay: '0' + description: 'Count of "low" priority issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.priority.name==''low'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: f5279ccc0e84466f94f334a36e25316f + name: 'Project [{#NAME}]: None priority issues' + type: DEPENDENT + key: 'mantis.project.priority.none_issues[{#NAME}]' + delay: '0' + description: 'Count of "none" priority issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.priority.name==''none'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 5a9ee1a754f24fcda08a1e3b42d711d7 + name: 'Project [{#NAME}]: Normal priority issues' + type: DEPENDENT + key: 'mantis.project.priority.normal_issues[{#NAME}]' + delay: '0' + description: 'Count of "normal" priority issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.priority.name==''normal'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: c712113bccd34af2bb8018a52b6c581d + name: 'Project [{#NAME}]: Urgent priority issues' + type: DEPENDENT + key: 'mantis.project.priority.urgent_issues[{#NAME}]' + delay: '0' + description: 'Count of "urgent" priority issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.priority.name==''urgent'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 752c79c4182a427daf92c9b97f035956 + name: 'Project [{#NAME}]: Duplicate issues' + type: DEPENDENT + key: 'mantis.project.resolution.duplicate_issues[{#NAME}]' + delay: '0' + description: 'Count of "duplicate" resolution issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.resolution.name==''duplicate'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: c9dd80708bba4864a86b1bf8e4712b56 + name: 'Project [{#NAME}]: Fixed issues' + type: DEPENDENT + key: 'mantis.project.resolution.fixed_issues[{#NAME}]' + delay: '0' + description: 'Count of "fixed" resolution issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.resolution.name==''fixed'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: bdfe85927f6449ac9ed9b5015cbc9e64 + name: 'Project [{#NAME}]: Not fixable issues' + type: DEPENDENT + key: 'mantis.project.resolution.not_fixable_issues[{#NAME}]' + delay: '0' + description: 'Count of "not fixable" resolution issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.resolution.name==''not fixable'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 77738b7324ff439fbe57053df2cac93a + name: 'Project [{#NAME}]: No change required issues' + type: DEPENDENT + key: 'mantis.project.resolution.no_change_required_issues[{#NAME}]' + delay: '0' + description: 'Count of "no change required" resolution issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.resolution.name==''no change required'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: be2a9993006e4a7f9949f231f0d9e031 + name: 'Project [{#NAME}]: Open issues' + type: DEPENDENT + key: 'mantis.project.resolution.open_issues[{#NAME}]' + delay: '0' + description: 'Count of "open" resolution issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.resolution.name==''open'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: bbfd75e3793a44cbbcaa21dc600d1f26 + name: 'Project [{#NAME}]: Reopened issues' + type: DEPENDENT + key: 'mantis.project.resolution.reopened_issues[{#NAME}]' + delay: '0' + description: 'Count of "reopened" resolution issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.resolution.name==''reopened'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: cf279da7ccad4b97bc99075d8a668bb7 + name: 'Project [{#NAME}]: Suspended issues' + type: DEPENDENT + key: 'mantis.project.resolution.suspended_issues[{#NAME}]' + delay: '0' + description: 'Count of "suspended" resolution issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.resolution.name==''suspended'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: c015da7c78a941baab2bebeefdbb13a9 + name: 'Project [{#NAME}]: Unable to reproduce issues' + type: DEPENDENT + key: 'mantis.project.resolution.unable_to_reproduce_issues[{#NAME}]' + delay: '0' + description: 'Count of "unable to reproduce" resolution issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.resolution.name==''unable to duplicate'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 5957a3ad86c94d909bcc4b4827dd5207 + name: 'Project [{#NAME}]: Will not fix issues' + type: DEPENDENT + key: 'mantis.project.resolution.wont_fix_issues[{#NAME}]' + delay: '0' + description: 'Count of "wont fix" resolution issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.resolution.name==''wont fix'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: d92c955b5c944602a56c617ea2f14777 + name: 'Project [{#NAME}]: Block severity issues' + type: DEPENDENT + key: 'mantis.project.severity.block_issues[{#NAME}]' + delay: '0' + description: 'Count of "block" severity issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.severity.name==''block'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 09d0ac69f19043ae84ada034074f8580 + name: 'Project [{#NAME}]: Crash severity issues' + type: DEPENDENT + key: 'mantis.project.severity.crash_issues[{#NAME}]' + delay: '0' + description: 'Count of "crash" severity issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.severity.name==''crash'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 22f520e836b147d9875cf8cc692b4c23 + name: 'Project [{#NAME}]: Feature severity issues' + type: DEPENDENT + key: 'mantis.project.severity.feature_issues[{#NAME}]' + delay: '0' + description: 'Count of "feature" severity issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.severity.name==''feature'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: e6f970c08dac44d6a40b01b65b87de5e + name: 'Project [{#NAME}]: Major severity issues' + type: DEPENDENT + key: 'mantis.project.severity.major_issues[{#NAME}]' + delay: '0' + description: 'Count of "major" severity issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.severity.name==''major'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 31720b277c4948dc8de07cb8d0c274a5 + name: 'Project [{#NAME}]: Minor severity issues' + type: DEPENDENT + key: 'mantis.project.severity.minor_issues[{#NAME}]' + delay: '0' + description: 'Count of "minor" severity issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.severity.name==''minor'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 4018e9393c0f4179a4d7abf454b7d2de + name: 'Project [{#NAME}]: Text severity issues' + type: DEPENDENT + key: 'mantis.project.severity.text_issues[{#NAME}]' + delay: '0' + description: 'Count of "text" severity issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.severity.name==''text'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 36d9f115d1084b08964abf4152402dbb + name: 'Project [{#NAME}]: Trivial severity issues' + type: DEPENDENT + key: 'mantis.project.severity.trivial_issues[{#NAME}]' + delay: '0' + description: 'Count of "trivial" severity issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.severity.name==''trivial'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 6ba8709cfad2441cbe4752ef7dd0fc70 + name: 'Project [{#NAME}]: Tweak severity issues' + type: DEPENDENT + key: 'mantis.project.severity.tweak_issues[{#NAME}]' + delay: '0' + description: 'Count of "tweak" severity issues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.severity.name==''tweak'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 6760e0bab28c48468f4f27de02c701b1 + name: 'Project [{#NAME}]: Acknowledged issues' + type: DEPENDENT + key: 'mantis.project.status.acknowledged_issues[{#NAME}]' + delay: '0' + description: 'Count of issues with ''acknowledged'' status.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.status.name==''acknowledged'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: c72781a9c6d44fd799139a7b2cdfe67a + name: 'Project [{#NAME}]: Assigned issues' + type: DEPENDENT + key: 'mantis.project.status.assigned_issues[{#NAME}]' + delay: '0' + description: 'Count of issues with ''assigned'' status.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.status.name==''assigned'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 474bda77652147959ba3fa853c667a87 + name: 'Project [{#NAME}]: Closed issues' + type: DEPENDENT + key: 'mantis.project.status.closed_issues[{#NAME}]' + delay: '0' + description: 'Count of issues with ''closed'' status.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.status.name==''closed'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: b9954705d26a40d0ba80300d444a5e8c + name: 'Project [{#NAME}]: Confirmed issues' + type: DEPENDENT + key: 'mantis.project.status.confirmed_issues[{#NAME}]' + delay: '0' + description: 'Count of issues with ''confirmed'' status.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.status.name==''confirmed'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 91148a664c3548b98b9ae0ebb99edddc + name: 'Project [{#NAME}]: Feedback issues' + type: DEPENDENT + key: 'mantis.project.status.feedback_issues[{#NAME}]' + delay: '0' + description: 'Count of issues with ''feedback'' status.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.status.name==''feedback'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 9db47ff1cfbe43849f85d445d334ee0d + name: 'Project [{#NAME}]: New issues' + type: DEPENDENT + key: 'mantis.project.status.new_issues[{#NAME}]' + delay: '0' + description: 'Count of issues with ''new'' status.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.status.name==''new'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 0954f125f47c45ba81b46702d53478fa + name: 'Project [{#NAME}]: Resolved issues' + type: DEPENDENT + key: 'mantis.project.status.resolved_issues[{#NAME}]' + delay: '0' + description: 'Count of issues with ''resolved'' status.' + preprocessing: + - type: JSONPATH + parameters: + - '$.issues[?(@.status.name==''resolved'')].length()' + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: 56afe0d7c0dd471abc14cc0ed926aef7 + name: 'Project [{#NAME}]: Total issues' + type: DEPENDENT + key: 'mantis.project.total_issues[{#NAME}]' + delay: '0' + description: 'Count of issues in project.' + preprocessing: + - type: JSONPATH + parameters: + - $.issues.length() + master_item: + key: 'mantisbt.get.issues[{#NAME}]' + tags: + - tag: component + value: project + - tag: project + value: '{#NAME}' + - uuid: f0064281917741aaa9b8e808509077e1 + name: 'Project [{#NAME}]: Get issues' + type: HTTP_AGENT + key: 'mantisbt.get.issues[{#NAME}]' + delay: 20m + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting project issues.' + timeout: 30s + url: '{$MANTIS.URL}/api/rest/issues?project_id={#ID}&page_size=0' + http_proxy: '{$MANTIS.HTTP.PROXY}' + headers: + - name: Authorization + value: '{$MANTIS.TOKEN}' + tags: + - tag: component + value: raw + graph_prototypes: + - uuid: ae0b82f566b9487fa8eeb78565858616 + name: 'Mantis BT: [{#NAME}] Issues by priority' + width: '400' + height: '400' + type: PIE + show_3d: 'YES' + graph_items: + - color: 199C0D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.priority.none_issues[{#NAME}]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.priority.low_issues[{#NAME}]' + - sortorder: '2' + color: 00611C + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.priority.normal_issues[{#NAME}]' + - sortorder: '3' + color: F7941D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.priority.high_issues[{#NAME}]' + - sortorder: '4' + color: FC6EA3 + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.priority.urgent_issues[{#NAME}]' + - sortorder: '5' + color: 6C59DC + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.priority.immediate_issues[{#NAME}]' + - uuid: 09d08c384bfb4bc28f7620cc8e50ada5 + name: 'Mantis BT: [{#NAME}] Issues by resolution' + width: '400' + height: '400' + type: PIE + show_3d: 'YES' + graph_items: + - color: 199C0D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.resolution.open_issues[{#NAME}]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.resolution.fixed_issues[{#NAME}]' + - sortorder: '2' + color: 00611C + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.resolution.reopened_issues[{#NAME}]' + - sortorder: '3' + color: F7941D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.resolution.unable_to_reproduce_issues[{#NAME}]' + - sortorder: '4' + color: FC6EA3 + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.resolution.not_fixable_issues[{#NAME}]' + - sortorder: '5' + color: 6C59DC + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.resolution.duplicate_issues[{#NAME}]' + - sortorder: '6' + color: C7A72D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.resolution.no_change_required_issues[{#NAME}]' + - sortorder: '7' + color: BA2A5D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.resolution.suspended_issues[{#NAME}]' + - sortorder: '8' + color: F230E0 + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.resolution.wont_fix_issues[{#NAME}]' + - uuid: 4f53368cdfff4d6ebdd9dde250e620fe + name: 'Mantis BT: [{#NAME}] Issues by severity' + width: '400' + height: '400' + type: PIE + show_3d: 'YES' + graph_items: + - color: 199C0D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.severity.feature_issues[{#NAME}]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.severity.trivial_issues[{#NAME}]' + - sortorder: '2' + color: 00611C + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.severity.text_issues[{#NAME}]' + - sortorder: '3' + color: F7941D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.severity.tweak_issues[{#NAME}]' + - sortorder: '4' + color: FC6EA3 + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.severity.minor_issues[{#NAME}]' + - sortorder: '5' + color: 6C59DC + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.severity.major_issues[{#NAME}]' + - sortorder: '6' + color: C7A72D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.severity.crash_issues[{#NAME}]' + - sortorder: '7' + color: BA2A5D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.severity.block_issues[{#NAME}]' + - uuid: ef79603b8e6f4acc99e62f59e651f7c5 + name: 'Mantis BT: [{#NAME}] Issues by status' + width: '400' + height: '400' + type: PIE + show_3d: 'YES' + graph_items: + - color: 199C0D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.status.new_issues[{#NAME}]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.status.resolved_issues[{#NAME}]' + - sortorder: '2' + color: 00611C + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.status.closed_issues[{#NAME}]' + - sortorder: '3' + color: F7941D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.status.assigned_issues[{#NAME}]' + - sortorder: '4' + color: FC6EA3 + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.status.feedback_issues[{#NAME}]' + - sortorder: '5' + color: 6C59DC + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.status.acknowledged_issues[{#NAME}]' + - sortorder: '6' + color: C7A72D + calc_fnc: LAST + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.status.confirmed_issues[{#NAME}]' + - uuid: 3b03ebc9ff5544ce9011aedbdf51976a + name: 'Mantis BT: [{#NAME}] Issues total' + graph_items: + - color: 199C0D + calc_fnc: ALL + item: + host: 'Mantis BT by HTTP' + key: 'mantis.project.total_issues[{#NAME}]' + master_item: + key: mantisbt.get.projects + lld_macro_paths: + - lld_macro: '{#ENABLED}' + path: $.enabled + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.projects + tags: + - tag: class + value: application + - tag: target + value: mantis-bt + macros: + - macro: '{$MANTIS.HTTP.PROXY}' + description: 'Proxy for http requests.' + - macro: '{$MANTIS.LLD.FILTER.PROJECTS.MATCHES}' + value: '.*' + description: 'Filter of discoverable projects.' + - macro: '{$MANTIS.LLD.FILTER.PROJECTS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered projects.' + - macro: '{$MANTIS.TOKEN}' + type: SECRET_TEXT + description: 'MantisBT Token.' + - macro: '{$MANTIS.URL}' + description: 'MantisBT URL.' + dashboards: + - uuid: 9ab065a6d60c4990b97529c290ff7cb9 + name: 'Mantis BT: Issues' + pages: + - name: 'Mantis BT: Issues' + widgets: + - type: graphprototype + name: 'Mantis BT: Issues total' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Mantis BT by HTTP' + name: 'Mantis BT: [{#NAME}] Issues total' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + name: 'Mantis BT: Issues by priority' + 'y': '5' + width: '18' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Mantis BT by HTTP' + name: 'Mantis BT: [{#NAME}] Issues by priority' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + name: 'Mantis BT: Issues by resolution' + x: '18' + 'y': '5' + width: '18' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Mantis BT by HTTP' + name: 'Mantis BT: [{#NAME}] Issues by resolution' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + name: 'Mantis BT: Issues by severity' + x: '36' + 'y': '5' + width: '18' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Mantis BT by HTTP' + name: 'Mantis BT: [{#NAME}] Issues by severity' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + name: 'Mantis BT: Issues by status' + x: '54' + 'y': '5' + width: '18' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Mantis BT by HTTP' + name: 'Mantis BT: [{#NAME}] Issues by status' + - type: STRING + name: reference + value: AAAAE diff --git a/Mellanox_by_SNMP.yaml b/Mellanox_by_SNMP.yaml new file mode 100644 index 0000000..3c91f99 --- /dev/null +++ b/Mellanox_by_SNMP.yaml @@ -0,0 +1,2077 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: a60798c651604d93a062bec0f8a89751 + template: 'Mellanox by SNMP' + name: 'Mellanox by SNMP' + description: | + The updated template for monitoring the Mellanox network switches over SNMP agent. All items collected in one template without any linked templates. + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + ENTITY-SENSORS-MIB + ENTITY-STATE-MIB + ENTITY-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 87480ce035a94f299c4cf4103eaaf066 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fe4c81a386814dfa80ffc76e1b7da9a1 + expression: 'max(/Mellanox by SNMP/icmpping,#3)=0' + name: 'Mellanox: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 50e85be3969447c58fcfeca5d9a1a9bb + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 52b307324c37481693d419df236cbbd7 + expression: 'min(/Mellanox by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Mellanox by SNMP/icmppingloss,5m)<100' + name: 'Mellanox: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Mellanox: Unavailable by ICMP ping' + expression: 'max(/Mellanox by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7567e999d75442379066babdc9b50894 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 39a9cff305074e1a8b7c6ed0c526fda9 + expression: 'avg(/Mellanox by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Mellanox: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Mellanox: High ICMP ping loss' + expression: 'min(/Mellanox by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Mellanox by SNMP/icmppingloss,5m)<100' + - name: 'Mellanox: Unavailable by ICMP ping' + expression: 'max(/Mellanox by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0cb8aadeb5554583a65c3496cfed2c1b + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: f62a8b653c3d44d09864a4a4c910aeb1 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c33470549bda45e88ecb8ded7d0b5e87 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CPU.UTIL},1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.util + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that processors was not idle. + Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#CPU.UTIL}''].avg()' + tags: + - tag: component + value: cpu + triggers: + - uuid: 26913093ab414fe69ff157102ae54796 + expression: 'min(/Mellanox by SNMP/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + name: 'Mellanox: High CPU utilization' + event_name: 'Mellanox: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 64c4f3e890ec4c29be07ba2d06345534 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f867fb976e0b49a895129865e95096c2 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: e0d2149e1a114f3a971c324673beae2f + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f63d1f71a97e45b0ab5716299ef298ea + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: ff7ad0676a774cf49a4568e752dd916b + expression: 'last(/Mellanox by SNMP/system.name,#1)<>last(/Mellanox by SNMP/system.name,#2) and length(last(/Mellanox by SNMP/system.name))>0' + name: 'Mellanox: System name has changed' + event_name: 'Mellanox: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: d7f06d23f6b14677b5183f2cc94fc10d + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + The time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f1535f45138b472c945e231a9beb9cc5 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: aba117057e824b6789fca847cae9e0fc + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 6e476399963a414a847c4c514055bf43 + expression: 'max(/Mellanox by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Mellanox: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Mellanox: Unavailable by ICMP ping' + expression: 'max(/Mellanox by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 55a44fb2235f4e25b960422338674193 + name: 'Entity Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: entity.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_CLASS}' + value: '3' + formulaid: A + item_prototypes: + - uuid: d3643a044d4544e8a3487ed79c3a5390 + name: '{#ENT_NAME}: Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.{#SNMPINDEX}]' + key: 'system.hw.model[entPhysicalModelName.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 9f2e2fd678e94554be29654a5746099f + name: '{#ENT_NAME}: Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}]' + key: 'system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 585db2b2a42b4eb09770ca2241a557d0 + expression: 'last(/Mellanox by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#1)<>last(/Mellanox by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}],#2) and length(last(/Mellanox by SNMP/system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]))>0' + name: 'Mellanox: {#ENT_NAME}: Device has been replaced' + event_name: 'Mellanox: {#ENT_NAME}: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 2c10f61247804bd4a8aa59fb3568d938 + name: 'Fan Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.99.1.1.1.1,{#SENSOR_INFO},1.3.6.1.2.1.47.1.1.1.1.2]' + key: fan.discovery + delay: 1h + filter: + evaltype: OR + conditions: + - macro: '{#SNMPVALUE}' + value: '10' + formulaid: A + description: 'ENTITY-SENSORS-MIB::EntitySensorDataType discovery with rpm filter' + item_prototypes: + - uuid: 284de830d5924f528b0c86abe5dbc48d + name: '{#SENSOR_INFO}: Fan speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.99.1.1.1.4.{#SNMPINDEX}]' + key: 'sensor.fan.speed[entPhySensorValue.{#SNMPINDEX}]' + units: rpm + description: | + MIB: ENTITY-SENSORS-MIB + The most recent measurement obtained by the agent for this sensor. + To correctly interpret the value of this object, the associated entPhySensorType, + entPhySensorScale, and entPhySensorPrecision objects must also be examined. + tags: + - tag: component + value: fan + - uuid: 401d26902e6f4080ab2b0123d95a08ba + name: '{#SENSOR_INFO}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.99.1.1.1.5.{#SNMPINDEX}]' + key: 'sensor.fan.status[entPhySensorOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: ENTITY-SENSORS-MIB + The operational status of the sensor {#SENSOR_INFO} + valuemap: + name: 'ENTITY-SENSORS-MIB::EntitySensorStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: de81ef4f2c3f4f44a745a1fa1f179784 + expression: 'count(/Mellanox by SNMP/sensor.fan.status[entPhySensorOperStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'Mellanox: {#SENSOR_INFO}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value).filter(function (item) { + return (typeof item['{#SNMPVALUE}'] !== 'undefined'); + }); + + return JSON.stringify(data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 9e0d4ed074214f22bbbc9c8a5e3b9d0d + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 8f6e736b5c9c48a68e16122d592534b2 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c625b20266a04a1ba0421b4a64629dcc + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 262f5aa5582441ecb93fd7df6a59a76d + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b7c510be904e4d06830ae13a16bc9668 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 67b4b6520bbd45fd96d78a5942b54c09 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8e149281afb742758a00b699a281a584 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ddbde55ce98f465a8973d60b1ecb0f8c + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6a1429de015640768d2cdd2adc4b09d7 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 46918cfc713a4b1da7eed32cead0070b + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Mellanox: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 7ecba23625b64d94873b938ebbce500b + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2dc62fe3cd624e2ba99caa9ff94273f6 + expression: | + change(/Mellanox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Mellanox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Mellanox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Mellanox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Mellanox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Mellanox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Mellanox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Mellanox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Mellanox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Mellanox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Mellanox: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Mellanox: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 20e8f28ebc304ba185d475dbba51c4b8 + expression: | + (avg(/Mellanox by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Mellanox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Mellanox by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Mellanox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Mellanox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Mellanox by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Mellanox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Mellanox by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Mellanox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Mellanox: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Mellanox: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Mellanox: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 6740479821cd49c199c345dd736a11f7 + expression: | + min(/Mellanox by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Mellanox by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Mellanox by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Mellanox by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Mellanox: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Mellanox: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Mellanox: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Mellanox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: cabe6db1b71f42d9bc3cef730221a14b + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Mellanox by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Mellanox by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Mellanox by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Mellanox by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Mellanox by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Mellanox by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 8d0cb484e4544ffca4319ccece754123 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' + key: psu.discovery + delay: 1h + filter: + conditions: + - macro: '{#ENT_CLASS}' + value: '6' + formulaid: A + item_prototypes: + - uuid: 38a00c9f9f9447d0a0c9788ca9dcc9f2 + name: '{#ENT_NAME}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.131.1.1.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[entStateOper.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: ENTITY-STATE-MIB' + valuemap: + name: 'ENTITY-STATE-MIB::EntityOperState' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 5d2d688ad68343ff8884c11e9d233b98 + expression: 'count(/Mellanox by SNMP/sensor.psu.status[entStateOper.{#SNMPINDEX}],#1,"eq","{$PSU.STATUS.CRIT}")=1' + name: 'Mellanox: {#ENT_NAME}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 247124c5f8db4825bf4ea593bd0ff413 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SENSOR_TYPE},1.3.6.1.2.1.99.1.1.1.1,{#SENSOR_INFO},1.3.6.1.2.1.47.1.1.1.1.2,{#SENSOR_PRECISION},1.3.6.1.2.1.99.1.1.1.3]' + key: temp.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR_PRECISION}' + value: '1' + formulaid: A + - macro: '{#SENSOR_TYPE}' + value: '8' + formulaid: B + description: 'ENTITY-SENSORS-MIB::EntitySensorDataType discovery with temperature filter' + item_prototypes: + - uuid: 4f298c0f2b6547b7b1827b3faebd1089 + name: '{#SENSOR_INFO}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.99.1.1.1.5.{#SNMPINDEX}]' + key: 'sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: ENTITY-SENSORS-MIB + The operational status of the sensor {#SENSOR_INFO}. Possible values: + - ok(1) indicates that the agent can obtain the sensor value. + - unavailable(2) indicates that the agent presently cannot obtain the sensor value. + - nonoperational(3) indicates that the agent believes the sensor is broken. The sensor could have a hard failure (disconnected wire), or a soft failure such as out-of-range, jittery, or wildly fluctuating readings. + valuemap: + name: 'ENTITY-SENSORS-MIB::EntitySensorStatus' + tags: + - tag: component + value: temperature + - uuid: ffe7f6dff12f4b4ba24ddc28c6d1182b + name: '{#SENSOR_INFO}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.99.1.1.1.4.{#SNMPINDEX}]' + key: 'sensor.temp.value[entPhySensorValue.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: ENTITY-SENSORS-MIB + The most recent measurement obtained by the agent for this sensor. + To correctly interpret the value of this object, the associated entPhySensorType, + entPhySensorScale, and entPhySensorPrecision objects must also be examined. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 7259bdafbe7f4227999d7365a99e536d + expression: 'avg(/Mellanox by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Mellanox by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"{#SENSOR_INFO}"}-3' + name: 'Mellanox: {#SENSOR_INFO}: Temperature is above critical threshold' + event_name: 'Mellanox: {#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP.MAX.CRIT:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7bfa2bd0177940f4aff8dc95867ceb44 + expression: 'avg(/Mellanox by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)<{$TEMP.MIN.CRIT:"{#SENSOR_INFO}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Mellanox by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)>{$TEMP.MIN.CRIT:"{#SENSOR_INFO}"}+3' + name: 'Mellanox: {#SENSOR_INFO}: Temperature is too low' + event_name: 'Mellanox: {#SENSOR_INFO}: Temperature is too low: <{$TEMP.MIN.CRIT:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + trigger_prototypes: + - uuid: 352650536eef4858be1437a720712932 + expression: | + avg(/Mellanox by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)>{$TEMP.MAX.WARN:"{#SENSOR_INFO}"} + or + last(/Mellanox by SNMP/sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}])={$TEMP.STATUS.WARN} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Mellanox by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)<{$TEMP.MAX.WARN:"{#SENSOR_INFO}"}-3' + name: 'Mellanox: {#SENSOR_INFO}: Temperature is above warning threshold' + event_name: 'Mellanox: {#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP.MAX.WARN:"{#SENSOR_INFO}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Mellanox: {#SENSOR_INFO}: Temperature is above critical threshold' + expression: 'avg(/Mellanox by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)>{$TEMP.MAX.CRIT:"{#SENSOR_INFO}"}' + recovery_expression: 'max(/Mellanox by SNMP/sensor.temp.value[entPhySensorValue.{#SNMPINDEX}],5m)<{$TEMP.MAX.CRIT:"{#SENSOR_INFO}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value).filter(function (item) { + return (typeof item['{#SENSOR_PRECISION}'] !== 'undefined'); + }); + + return JSON.stringify(data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: f4c83472c88b419da104e4c5a35d6fc9 + name: 'Storage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#FSNAME},1.3.6.1.2.1.25.2.3.1.3,{#FSTYPE},1.3.6.1.2.1.25.2.3.1.2,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4]' + key: 'vfs.fs.discovery[snmp]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 84e47981247243bd888a870700da8be3 + name: '{#FSNAME}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageUsed.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for {#FSNAME}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 1a743f5b617f4800b5b2b9672f34693c + name: '{#FSNAME}: Total space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}]' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in units of hrStorageAllocationUnits. + This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. + For example, the amount of main storage allocated to a buffer pool might be modified or the amount of disk space allocated to virtual storage might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 82fadd771c3040c9ba001a9a40a83163 + name: '{#FSNAME}: Used space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}]' + key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: f1eb2ddb27d24cd99d8aba4485dfeeb9 + expression: | + last(/Mellanox by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and + ((last(/Mellanox by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Mellanox by SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"} or timeleft(/Mellanox by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) + name: 'Mellanox: {#FSNAME}: Disk space is critically low' + event_name: 'Mellanox: {#FSNAME}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: b2e084f280434a3a8291e5dc691dfd7b + expression: | + last(/Mellanox by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"} and + ((last(/Mellanox by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Mellanox by SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"{#FSNAME}"} or timeleft(/Mellanox by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) + name: 'Mellanox: {#FSNAME}: Disk space is low' + event_name: 'Mellanox: {#FSNAME}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"{#FSNAME}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'Mellanox: {#FSNAME}: Disk space is critically low' + expression: | + last(/Mellanox by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and + ((last(/Mellanox by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Mellanox by SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"} or timeleft(/Mellanox by SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 323ae8e8795543958fe6affc78a3853c + name: '{#FSNAME}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Mellanox by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'Mellanox by SNMP' + key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 32a20a1f65d64db3bf17d6d405321253 + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#MEMNAME},1.3.6.1.2.1.25.2.3.1.3,{#MEMTYPE},1.3.6.1.2.1.25.2.3.1.2,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4]' + key: vm.memory.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#MEMNAME}' + value: '{$MEMORY.NAME.MATCHES}' + formulaid: A + - macro: '{#MEMNAME}' + value: '{$MEMORY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#MEMTYPE}' + value: '{$MEMORY.TYPE.MATCHES}' + formulaid: C + - macro: '{#MEMTYPE}' + value: '{$MEMORY.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'HOST-RESOURCES-MIB::hrStorage discovery with memory filter' + item_prototypes: + - uuid: 70918ede8bff4f76be467a806a015b21 + name: '{#MEMNAME}: Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}]' + key: 'vm.memory.total[hrStorageSize.{#SNMPINDEX}]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in units of hrStorageAllocationUnits. + This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. + For example, the amount of main memory allocated to a buffer pool might be modified or the amount of disk space allocated to virtual memory might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + tags: + - tag: component + value: memory + - uuid: e661062e7fcb45968ca1e9a1306f4848 + name: '{#MEMNAME}: Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}]' + key: 'vm.memory.used[hrStorageUsed.{#SNMPINDEX}]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + tags: + - tag: component + value: memory + - uuid: cedea4befd6a47b8983eff5dee9feed9 + name: '{#MEMNAME}: Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.{#SNMPINDEX}])/last(//vm.memory.total[hrStorageSize.{#SNMPINDEX}])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 912430a103414c6eb9c8e55c45246f48 + expression: 'min(/Mellanox by SNMP/vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Mellanox: {#MEMNAME}: High memory utilization' + event_name: 'Mellanox: {#MEMNAME}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: bc2042eaf8244d28891e6d71414847da + name: '{#MEMNAME}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Mellanox by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: network + - tag: target + value: mellanox + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '3' + description: 'The critical value of the FAN sensor for trigger expression.' + - macro: '{$ICMP.LOSS.WARN}' + value: '20' + - macro: '{$ICMP.RESPONSE_TIME.WARN}' + value: '0.15' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in memory discovery. Can be overridden on the host level.' + - macro: '{$MEMORY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in memory discovery. Can be overridden on the host level if you need to filter out results.' + - macro: '{$MEMORY.TYPE.MATCHES}' + value: '.*(\.2|hrStorageRam)$' + description: 'This macro is used in memory discovery. Can be overridden on the host level.' + - macro: '{$MEMORY.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in memory discovery. Can be overridden on the host level if you need to filter out results.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'The warning threshold of the "Physical memory: Memory utilization" item.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status.' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6).' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU.STATUS.CRIT}' + value: '2' + description: 'The critical value of the PSU sensor for trigger expression.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$TEMP.MAX.CRIT}' + value: '60' + description: 'The temperature maximum critical value for trigger expression.' + - macro: '{$TEMP.MAX.WARN}' + value: '50' + description: 'The temperature maximum warning value for trigger expression.' + - macro: '{$TEMP.MIN.CRIT}' + value: '5' + description: 'The temperature minimum critical value for trigger expression.' + - macro: '{$TEMP.STATUS.WARN}' + value: '3' + description: 'The critical value of the TEMP sensor for trigger expression.' + - macro: '{$VFS.FS.FREE.MIN.CRIT}' + value: 5G + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.FREE.MIN.WARN}' + value: 10G + description: 'The warning threshold of the filesystem utilization.' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'This macro is used in filesystems discovery. Can be overridden on the host level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/$|/run|/proc|.+/shm$) + description: 'This macro is used in filesystems discovery. Can be overridden on the host level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: '.*(\.4|\.9|hrStorageFixedDisk|hrStorageFlashMemory)$' + description: 'This macro is used in filesystems discovery. Can be overridden on the host level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in filesystems discovery. Can be overridden on the host level.' + dashboards: + - uuid: 5d189179d9144198b020fce10f645872 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Mellanox by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAD + - uuid: e41382f2a3394e52b885bb6a70df35ff + name: 'System performance' + pages: + - widgets: + - type: graph + name: 'CPU utilization' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Mellanox by SNMP' + name: 'Mellanox: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + name: '{#MEMNAME}: Memory utilization' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Mellanox by SNMP' + name: '{#MEMNAME}: Memory utilization' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: rows + value: '5' + - type: graphprototype + name: '{#FSNAME}: Disk space usage' + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Mellanox by SNMP' + name: '{#FSNAME}: Disk space usage' + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: d42214398aea4362b4fc61a090f188e1 + name: 'ENTITY-SENSORS-MIB::EntitySensorStatus' + mappings: + - value: '1' + newvalue: ok + - value: '2' + newvalue: unavailable + - value: '3' + newvalue: nonoperational + - uuid: bd1dc90aa54849d0a5ae9bdf368d03a9 + name: 'ENTITY-STATE-MIB::EntityOperState' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: disabled + - value: '3' + newvalue: enabled + - value: '4' + newvalue: testing + - uuid: 04fa3aad27e044a094dce939b3d361ec + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: afe0ce28ed5d49dd822cc7013356c599 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: deb16b99706645929e300b0590f013f3 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: a85fe23199cd4d779655f690a706d7c7 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 667856dcaad04a108cb0a5150e825a50 + expression: | + (last(/Mellanox by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Mellanox by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) + or (last(/Mellanox by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Mellanox by SNMP/system.net.uptime[sysUpTime.0])<10m) + name: 'Mellanox: Host has been restarted' + event_name: 'Mellanox: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Mellanox: No SNMP data collection' + expression: 'max(/Mellanox by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 89bf34a1c3db423caa4fbeae774fa9cf + name: 'Mellanox: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Mellanox by SNMP' + key: system.cpu.util diff --git a/Memcached_by_Zabbix_agent_2.yaml b/Memcached_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..cad2784 --- /dev/null +++ b/Memcached_by_Zabbix_agent_2.yaml @@ -0,0 +1,763 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 05894ba2c9184d33992bf1bd21c347f6 + template: 'Memcached by Zabbix agent 2' + name: 'Memcached by Zabbix agent 2' + description: | + Get Memcached metrics from plugin for the New Zabbix Agent (zabbix-agent2). + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/398623-discussion-thread-for-official-zabbix-template-memcached + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 2c9d2fd0c59249c999cb315243ae994e + name: 'Commands: FLUSH per second' + type: DEPENDENT + key: memcached.commands.flush.rate + delay: '0' + value_type: FLOAT + description: 'The flush_all command invalidates all items in the database. This operation incurs a performance penalty and shouldn''t take place in production, so check your debug scripts.' + preprocessing: + - type: JSONPATH + parameters: + - $.cmd_flush + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: commands + - uuid: 1f636f46889e41cda9abf80df4ae53a7 + name: 'Commands: GET per second' + type: DEPENDENT + key: memcached.commands.get.rate + delay: '0' + value_type: FLOAT + description: 'Number of GET requests received by server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.cmd_get + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: commands + - uuid: 82988c3b793841c4b99a7cbf18f9ac5f + name: 'Commands: SET per second' + type: DEPENDENT + key: memcached.commands.set.rate + delay: '0' + value_type: FLOAT + description: 'Number of SET requests received by server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.cmd_set + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: commands + - uuid: d19885f5dc5b4afaa68ae180c60117ca + name: 'Maximum number of bytes' + type: DEPENDENT + key: memcached.config.limit_maxbytes + delay: '0' + units: B + description: 'Maximum number of bytes allowed in cache. You can adjust this setting via a config file or the command line while starting your Memcached server.' + preprocessing: + - type: JSONPATH + parameters: + - $.limit_maxbytes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: cache + - uuid: 4ac11cc6469346aa88ad804c8af749a8 + name: 'Open connections' + type: DEPENDENT + key: memcached.connections.current + delay: '0' + description: 'The number of clients presently connected' + preprocessing: + - type: JSONPATH + parameters: + - $.curr_connections + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: connections + - uuid: 2d9fee94ab6e458b953bf6f4808e9300 + name: 'Max connections' + type: DEPENDENT + key: memcached.connections.max + delay: '0' + description: 'Max number of concurrent connections' + preprocessing: + - type: JSONPATH + parameters: + - $.max_connections + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: connections + - uuid: 166f2d677f0d4d31bdd5313fa7755d56 + name: 'Queued connections per second' + type: DEPENDENT + key: memcached.connections.queued.rate + delay: '0' + value_type: FLOAT + description: 'Number of times that memcached has hit its connections limit and disabled its listener' + preprocessing: + - type: JSONPATH + parameters: + - $.listen_disabled_num + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 922a59008cd94e0688db8528be296f89 + expression: 'min(/Memcached by Zabbix agent 2/memcached.connections.queued.rate,5m)>{$MEMCACHED.CONN.QUEUED.MAX.WARN}' + name: 'Memcached: Too many queued connections' + event_name: 'Memcached: Too many queued connections (over {$MEMCACHED.CONN.QUEUED.MAX.WARN} in 5m)' + priority: WARNING + description: 'The max number of connections is reached and a new connection had to wait in the queue as a result.' + tags: + - tag: scope + value: capacity + - uuid: 7ecc849f54be41dcbc6c037d89a6c240 + name: 'New connections per second' + type: DEPENDENT + key: memcached.connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections opened per second' + preprocessing: + - type: JSONPATH + parameters: + - $.total_connections + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: connections + - uuid: 8c224388b06b417fbf89dd25631b10ad + name: 'Connection structures' + type: DEPENDENT + key: memcached.connections.structures + delay: '0' + description: 'Number of connection structures allocated by the server' + preprocessing: + - type: JSONPATH + parameters: + - $.connection_structures + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: connections + - uuid: 891b3347dac6440caef69c9dd7ec0a18 + name: 'Throttled connections' + type: DEPENDENT + key: memcached.connections.throttled.rate + delay: '0' + value_type: FLOAT + description: 'Number of times a client connection was throttled. When sending GETs in batch mode and the connection contains too many requests (limited by -R parameter) the connection might be throttled to prevent starvation.' + preprocessing: + - type: JSONPATH + parameters: + - $.conn_yields + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 33c9b918d21343dea3bcd2c3e3505fc5 + expression: 'min(/Memcached by Zabbix agent 2/memcached.connections.throttled.rate,5m)>{$MEMCACHED.CONN.THROTTLED.MAX.WARN}' + name: 'Memcached: Too many throttled connections' + event_name: 'Memcached: Too many throttled connections (over {$MEMCACHED.CONN.THROTTLED.MAX.WARN} in 5m)' + priority: WARNING + description: | + Number of times a client connection was throttled is too high. + When sending GETs in batch mode and the connection contains too many requests (limited by -R parameter) the connection might be throttled to prevent starvation. + tags: + - tag: scope + value: performance + - uuid: f67cae24aa3d4b56b00ef7a3e3a45432 + name: 'CPU sys' + type: DEPENDENT + key: memcached.cpu.sys + delay: '0' + value_type: FLOAT + units: s + description: 'System CPU consumed by the Memcached server' + preprocessing: + - type: JSONPATH + parameters: + - $.rusage_system + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: cpu + triggers: + - uuid: a30bb4344e714b7f984e86046797b9b1 + expression: 'nodata(/Memcached by Zabbix agent 2/memcached.cpu.sys,30m)=1' + name: 'Memcached: Failed to fetch info data' + event_name: 'Memcached: Failed to fetch info data (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: 'Memcached: Service is down' + expression: 'last(/Memcached by Zabbix agent 2/memcached.ping["{$MEMCACHED.CONN.URI}"])=0' + tags: + - tag: scope + value: notice + - uuid: d7b2094d846243e59a092dc42bbe30c3 + name: 'CPU user' + type: DEPENDENT + key: memcached.cpu.user + delay: '0' + value_type: FLOAT + units: s + description: 'User CPU consumed by the Memcached server' + preprocessing: + - type: JSONPATH + parameters: + - $.rusage_user + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: cpu + - uuid: 57a4c2e763c3430daacd4495b91c3e74 + name: Ping + key: 'memcached.ping["{$MEMCACHED.CONN.URI}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + triggers: + - uuid: c6184e4c3cc54e199244dc8efb3cacf8 + expression: 'last(/Memcached by Zabbix agent 2/memcached.ping["{$MEMCACHED.CONN.URI}"])=0' + name: 'Memcached: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 7ecd604d8f1143d6b3cf02c4d0ef22dc + name: 'Process id' + type: DEPENDENT + key: memcached.process_id + delay: '0' + description: 'PID of the server process' + preprocessing: + - type: JSONPATH + parameters: + - $.pid + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: application + - uuid: ce294455f98a4c8c98a4ec70abb2b996 + name: 'Bytes used' + type: DEPENDENT + key: memcached.stats.bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Current number of bytes used to store items.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: memory + - uuid: 7977b28169a9411d98549d0c85ffb78b + name: 'Read bytes per second' + type: DEPENDENT + key: memcached.stats.bytes_read.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The network''s read rate per second in B/sec' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes_read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: network + - uuid: e81a3fa33a124cdfba36e40d1be6edd8 + name: 'Written bytes per second' + type: DEPENDENT + key: memcached.stats.bytes_written.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The network''s read rate per second in B/sec' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes_written + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: network + - uuid: efc05c70a56d4be4a6ad59fa1c2915a3 + name: 'Current number of items stored' + type: DEPENDENT + key: memcached.stats.curr_items + delay: '0' + description: 'Current number of items stored by this instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.curr_items + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: keyspace + - uuid: ce47a49ce6af46b7bc9757ed1b5cd02e + name: 'Evictions per second' + type: DEPENDENT + key: memcached.stats.evictions.rate + delay: '0' + description: | + "An eviction is when an item that still has time to live is removed from the cache because a brand new item needs to be allocated. + The item is selected with a pseudo-LRU mechanism. + A high number of evictions coupled with a low hit rate means your application is setting a large number of keys that are never used again." + preprocessing: + - type: JSONPATH + parameters: + - $.evictions + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: keyspace + - uuid: 07acbb8eb36049258ca414d9e314ed79 + name: 'Hits per second' + type: DEPENDENT + key: memcached.stats.hits.rate + delay: '0' + description: 'Number of successful GET requests (items requested and found) per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.get_hits + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: requests + - uuid: 3988a6c751814573869ed3533039faac + name: 'Misses per second' + type: DEPENDENT + key: memcached.stats.misses.rate + delay: '0' + description: 'Number of missed GET requests (items requested but not found) per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.get_misses + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: requests + - uuid: 7c28164178fc493c9f202df0c7103bb5 + name: Threads + type: DEPENDENT + key: memcached.stats.threads + delay: '0' + description: 'Number of worker threads requested' + preprocessing: + - type: JSONPATH + parameters: + - $.threads + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: threads + - uuid: 6bbc3deb32f947b2bc966c15f6e76726 + name: 'New items per second' + type: DEPENDENT + key: memcached.stats.total_items.rate + delay: '0' + description: 'Number of new items stored per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_items + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: keyspace + - uuid: 3a096b6d7d9945fe9a25d1fb5c835f1a + name: 'Get status' + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 4e90d731c49447cf9bb6a72cb9675586 + name: Uptime + type: DEPENDENT + key: memcached.uptime + delay: '0' + units: s + description: 'Number of seconds since Memcached server start' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: application + triggers: + - uuid: c53a2d7b861b41458976bfa03ab1a105 + expression: 'last(/Memcached by Zabbix agent 2/memcached.uptime)<10m' + name: 'Memcached: Service has been restarted' + event_name: 'Memcached: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 64986809298145ebbf8f6ded1c41f2df + name: 'Memcached version' + type: DEPENDENT + key: memcached.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the Memcached server' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'memcached.stats["{$MEMCACHED.CONN.URI}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 086e757b4a2048eabd5e91b4a0ccc07b + expression: 'last(/Memcached by Zabbix agent 2/memcached.version,#1)<>last(/Memcached by Zabbix agent 2/memcached.version,#2) and length(last(/Memcached by Zabbix agent 2/memcached.version))>0' + name: 'Memcached: Version has changed' + event_name: 'Memcached: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Memcached version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + tags: + - tag: class + value: application + - tag: target + value: memcached + macros: + - macro: '{$MEMCACHED.CONN.PRC.MAX.WARN}' + value: '80' + description: 'Maximum percentage of connected clients' + - macro: '{$MEMCACHED.CONN.QUEUED.MAX.WARN}' + value: '1' + description: 'Maximum number of queued connections per second' + - macro: '{$MEMCACHED.CONN.THROTTLED.MAX.WARN}' + value: '1' + description: 'Maximum number of throttled connections per second' + - macro: '{$MEMCACHED.CONN.URI}' + value: 'tcp://localhost:11211' + description: 'Connection string in the URI format (password is not used). This param overwrites a value configured in the "Plugins.Memcached.Uri" option of the configuration file (if it''s set), otherwise, the plugin''s default value is used: "tcp://localhost:11211"' + - macro: '{$MEMCACHED.MEM.PUSED.MAX.WARN}' + value: '90' + description: 'Maximum percentage of memory used' + dashboards: + - uuid: 6bdcf15253fb4f7692a71c6f1e16d6c6 + name: 'Memcached: Overview' + pages: + - name: Main + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Memcached by Zabbix agent 2' + name: 'Memcached: Commands' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Memcached by Zabbix agent 2' + name: 'Memcached: Connections' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Memcached by Zabbix agent 2' + name: 'Memcached: Network' + - type: STRING + name: reference + value: AAAAE + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Memcached by Zabbix agent 2' + name: 'Memcached: Keyspace' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Memcached by Zabbix agent 2' + name: 'Memcached: Connections rate' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Memcached by Zabbix agent 2' + name: 'Memcached: Uptime' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: acd57d4f29a34286a801ce49cd6553fe + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: e6129a8ace1945fa9020c6c0008cb19c + expression: 'min(/Memcached by Zabbix agent 2/memcached.stats.bytes,5m)/last(/Memcached by Zabbix agent 2/memcached.config.limit_maxbytes)*100>{$MEMCACHED.MEM.PUSED.MAX.WARN}' + name: 'Memcached: Memory usage is too high' + event_name: 'Memcached: Memory usage is too high (over {$MEMCACHED.MEM.PUSED.MAX.WARN} in 5m)' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 61021d383c9f41b990292bab2738356d + expression: 'min(/Memcached by Zabbix agent 2/memcached.connections.current,5m)/last(/Memcached by Zabbix agent 2/memcached.connections.max)*100>{$MEMCACHED.CONN.PRC.MAX.WARN}' + name: 'Memcached: Total number of connected clients is too high' + event_name: 'Memcached: Total number of connected clients is too high (over {$MEMCACHED.CONN.PRC.MAX.WARN}% in 5m)' + priority: WARNING + description: 'When the number of connections reaches the value of the "max_connections" parameter, new connections will be rejected.' + tags: + - tag: scope + value: capacity + graphs: + - uuid: 72cf2b87802c4eeca5411946e6b1a29b + name: 'Memcached: Commands' + graph_items: + - color: 199C0D + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.commands.flush.rate + - sortorder: '1' + color: F63100 + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.commands.set.rate + - sortorder: '2' + color: 00611C + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.commands.get.rate + - uuid: 3d738b083ce04ffa8d4bd9bf2e394f6a + name: 'Memcached: Connections' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.connections.max + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.connections.current + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.connections.structures + - uuid: 195f209046ba426c9e57c6a317c76ef4 + name: 'Memcached: Connections rate' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.connections.rate + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.connections.throttled.rate + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.connections.queued.rate + - uuid: 8ace604110bf4a4d9eb7a4b6add0492d + name: 'Memcached: Keyspace' + graph_items: + - color: 199C0D + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.stats.hits.rate + - sortorder: '1' + color: F63100 + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.stats.misses.rate + - uuid: bb6305e9a84749669433e53cd2b7b8b8 + name: 'Memcached: Network' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.stats.bytes_read.rate + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.stats.bytes_written.rate + - uuid: 599a96c18e214610a41afadef8f11e11 + name: 'Memcached: Uptime' + graph_items: + - color: 199C0D + item: + host: 'Memcached by Zabbix agent 2' + key: memcached.uptime diff --git a/Microsoft_365_reports_by_HTTP.yaml b/Microsoft_365_reports_by_HTTP.yaml new file mode 100644 index 0000000..b56987e --- /dev/null +++ b/Microsoft_365_reports_by_HTTP.yaml @@ -0,0 +1,9439 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 03e93dc9a8194a17958544a056d02316 + template: 'Microsoft 365 reports by HTTP' + name: 'Microsoft 365 reports by HTTP' + description: | + This template is designed to monitor Microsoft 365 reports by HTTP. It works without any external scripts and uses script items. + The template uses endpoints in the Microsoft Graph API to gather daily metrics from weekly reports. + The template is meant to be used as a long-term trend monitoring tool. + + Setup: + 1. Register the app with Microsoft Entra ID. + 2. Configure Microsoft Graph application permissions on the app ID: + `Reports.Read.All` - required for app usage and activity metrics + `ServiceHealth.Read.All` - required for service discovery and service status metrics + 3. Request administrator consent. + 4. Configure the macros: `{$MS365.APP.ID}`, `{$MS365.PASSWORD}`, `{$MS365.TENANT.ID}`. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: 33f44ece510247938a7ccc79b5209b9f + name: 'Apps: Activity, Exchange active users' + type: DEPENDENT + key: ms365.apps.activity.exchange.users.active + delay: '0' + trends: '0' + description: 'The number of active Exchange users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].exchangeActive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 43b10a8d427647ae9a82f6d71560bedd + name: 'Apps: Activity, Exchange inactive users' + type: DEPENDENT + key: ms365.apps.activity.exchange.users.inactive + delay: '0' + trends: '0' + description: 'The number of inactive Exchange users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].exchangeInactive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 004104d830b9440e9fb92fb0d289426a + name: 'Apps: Activity, Office 365 active users' + type: DEPENDENT + key: ms365.apps.activity.office365.users.active + delay: '0' + trends: '0' + description: 'The number of active Office 365 users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].office365Active' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: dd05d33806a74a54a7640ab639a004a3 + name: 'Apps: Activity, Office 365 inactive users' + type: DEPENDENT + key: ms365.apps.activity.office365.users.inactive + delay: '0' + trends: '0' + description: 'The number of inactive Office 365 users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].office365Inactive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: f9b84bbc76eb4f278d32913fdcece5f4 + name: 'Apps: Activity, OneDrive active users' + type: DEPENDENT + key: ms365.apps.activity.onedrive.users.active + delay: '0' + trends: '0' + description: 'The number of active OneDrive users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].oneDriveActive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 699122d921a046c2a652139cc982225c + name: 'Apps: Activity, OneDrive inactive users' + type: DEPENDENT + key: ms365.apps.activity.onedrive.users.inactive + delay: '0' + trends: '0' + description: 'The number of inactive OneDrive users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].oneDriveInactive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 245c30401bd64ba8a4dbbda7eaeab608 + name: 'Apps: Activity, report date' + type: DEPENDENT + key: ms365.apps.activity.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the user count by activity.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].reportRefreshDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - tag: component + value: date + - uuid: 6546281eff194c048f9aaaf1cd1d2a8c + name: 'Apps: Activity, SharePoint active users' + type: DEPENDENT + key: ms365.apps.activity.sharepoint.users.active + delay: '0' + trends: '0' + description: 'The number of active SharePoint users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].sharePointActive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 0fdf0c1e5f1c4e94962ef76dd7377635 + name: 'Apps: Activity, SharePoint inactive users' + type: DEPENDENT + key: ms365.apps.activity.sharepoint.users.inactive + delay: '0' + trends: '0' + description: 'The number of inactive SharePoint users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].sharePointInactive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: a977a7e3b51d42efb2c93c2269c64c91 + name: 'Apps: Activity, Skype for Business active users' + type: DEPENDENT + key: ms365.apps.activity.skypeforbusiness.users.active + delay: '0' + trends: '0' + description: 'The number of active Skype for Business users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].skypeForBusinessActive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 04f4507608b940d7a51990586cb034cd + name: 'Apps: Activity, Skype for Business inactive users' + type: DEPENDENT + key: ms365.apps.activity.skypeforbusiness.users.inactive + delay: '0' + trends: '0' + description: 'The number of inactive Skype for Business users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].skypeForBusinessInactive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 3a424ddd198d4cef9357daabba9937aa + name: 'Apps: Activity, Teams active users' + type: DEPENDENT + key: ms365.apps.activity.teams.users.active + delay: '0' + trends: '0' + description: 'The number of active Teams users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].teamsActive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: f14f9730db914c7ba9162bb13c2a0882 + name: 'Apps: Activity, Teams inactive users' + type: DEPENDENT + key: ms365.apps.activity.teams.users.inactive + delay: '0' + trends: '0' + description: 'The number of inactive Teams users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].teamsInactive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 5c3a5ebbc416479884252b1fbd787ba4 + name: 'Apps: Activity, Yammer active users' + type: DEPENDENT + key: ms365.apps.activity.yammer.users.active + delay: '0' + trends: '0' + description: 'The number of active Yammer users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].yammerActive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: fe91f316df80446993e1eab32320582e + name: 'Apps: Activity, Yammer inactive users' + type: DEPENDENT + key: ms365.apps.activity.yammer.users.inactive + delay: '0' + trends: '0' + description: 'The number of inactive Yammer users during the week before the report date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ServicesUserCounts[0].yammerInactive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 02333e83fd734a7b8cf699784e325242 + name: 'Apps: Get errors' + type: DEPENDENT + key: ms365.apps.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests for Apps metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - tag: component + value: error + triggers: + - uuid: eab5ac8df92f43398ad62a2dacb53e98 + expression: 'length(last(/Microsoft 365 reports by HTTP/ms365.apps.errors))>0' + name: 'Microsoft 365: Apps: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: d1a7d542fb44426b87a6835bb0d7990f + name: 'Apps: Office, Excel user count' + type: DEPENDENT + key: ms365.apps.office.user_count.excel + delay: '0' + trends: '0' + description: 'The number of active Excel users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppUserCounts[0].userCounts[0].excel' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: b82c96446428497f906820ac786be412 + name: 'Apps: Office, OneNote user count' + type: DEPENDENT + key: ms365.apps.office.user_count.onenote + delay: '0' + trends: '0' + description: 'The number of active OneNote users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppUserCounts[0].userCounts[0].oneNote' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 09555143c7874e2fa69671501d10c0c5 + name: 'Apps: Office, Outlook user count' + type: DEPENDENT + key: ms365.apps.office.user_count.outlook + delay: '0' + trends: '0' + description: 'The number of active Outlook users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppUserCounts[0].userCounts[0].outlook' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 3f195401fb4241c2bea951e9cae2a6b1 + name: 'Apps: Office, PowerPoint user count' + type: DEPENDENT + key: ms365.apps.office.user_count.powerpoint + delay: '0' + trends: '0' + description: 'The number of active PowerPoint users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppUserCounts[0].userCounts[0].powerPoint' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 69134417295047fb9e70d6285fa7a336 + name: 'Apps: Office, user count report date' + type: DEPENDENT + key: ms365.apps.office.user_count.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of active users for each app.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppUserCounts[0].userCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - tag: component + value: date + - uuid: facc876f75db491a983cf985dfd9285d + name: 'Apps: Office, Teams user count' + type: DEPENDENT + key: ms365.apps.office.user_count.teams + delay: '0' + trends: '0' + description: 'The number of active Teams users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppUserCounts[0].userCounts[0].teams' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 6d3fbb21ab084ca6a8795098048fbd11 + name: 'Apps: Office, Word user count' + type: DEPENDENT + key: ms365.apps.office.user_count.word + delay: '0' + trends: '0' + description: 'The number of active Word users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppUserCounts[0].userCounts[0].word' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: c78a87d0d84845d6939126af05b83d95 + name: 'Apps: Platform, Mac user count' + type: DEPENDENT + key: ms365.apps.platform.user_count.mac + delay: '0' + trends: '0' + description: 'The number of active users on the Mac platform.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppPlatformUserCounts[0].userCounts[0].mac' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 694ebc5c063d4a24b1faf7787c49e270 + name: 'Apps: Platform, mobile user count' + type: DEPENDENT + key: ms365.apps.platform.user_count.mobile + delay: '0' + trends: '0' + description: 'The number of active users on the mobile platform.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppPlatformUserCounts[0].userCounts[0].mobile' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 41f2b5c5140846619592e7dc8ccc3c32 + name: 'Apps: Platform, user count report date' + type: DEPENDENT + key: ms365.apps.platform.user_count.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of active users per platform.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppPlatformUserCounts[0].userCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - tag: component + value: date + - uuid: cbba35c140dc4505806b74682f30c02b + name: 'Apps: Platform, web user count' + type: DEPENDENT + key: ms365.apps.platform.user_count.web + delay: '0' + trends: '0' + description: 'The number of active users on the web platform.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppPlatformUserCounts[0].userCounts[0].web' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: f8e8f4f7b1954307b2cc178367a1a8c0 + name: 'Apps: Platform, Windows user count' + type: DEPENDENT + key: ms365.apps.platform.user_count.windows + delay: '0' + trends: '0' + description: 'The number of active users on the Windows platform.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getM365AppPlatformUserCounts[0].userCounts[0].windows' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: f694dc8e49084d3a961c7124cb712c43 + name: 'Apps: Get reports' + type: SCRIPT + key: ms365.apps.reports.get + delay: 6h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + const ms365 = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + ms365.params = params; + ms365.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + const response = new HttpRequest(ms365.tls.options), + login = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + login.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(ms365.params.tenant_id) + '/oauth2/v2.0/token', + 'grant_type=client_credentials&scope=https://graph.microsoft.com/.default&client_id=' + encodeURIComponent(ms365.params.app_id) + '&client_secret=' + encodeURIComponent(ms365.params.password) + ); + + if (login.getStatus() < 200 || login.getStatus() >= 300) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + ms365.token = response['access_token']; + }, + + request: function (url) { + const response = new HttpRequest(ms365.tls.options), + request = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + request.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + if (!ms365.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + ms365.token); + + Zabbix.log(4, '[ Microsoft 365 ] Request url: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ Microsoft 365 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return ms365.nullToZero(data); + }, + + nullToZero: function (data) { + Object.keys(data).forEach(function (key) { + if (data[key] === null) { + data[key] = 0; + } else if (typeof data[key] === 'object') { + ms365.nullToZero(data[key]); + } + }); + + return data; + }, + + getMetricsData: function (endpoints) { + const data = {}; + + data.metrics = {}; + endpoints.forEach(function (field) { + link = 'https://graph.microsoft.com/beta/reports/' + field + '(period=\'D7\')?$format=application/json'; + answer = ms365.getField(ms365.request(link), 'value'); + + data.metrics[field] = answer; + }); + + return data; + }, + + getServiceData: function () { + var data = {}, + + link = 'https://graph.microsoft.com/beta/admin/serviceAnnouncement/healthOverviews/'; + data.services = ms365.request(link); + + return data; + } + }; + + + endpoints = [ + 'getOffice365ActiveUserCounts', + 'getOffice365ServicesUserCounts', + 'getM365AppUserCounts', + 'getM365AppPlatformUserCounts' + ]; + + try { + ms365.setParams(JSON.parse(value)); + ms365.login(); + return JSON.stringify(ms365.getMetricsData(endpoints)); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Microsoft 365 ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: | + Accumulated data from the Microsoft Graph API "reports" endpoints. + More information: + https://learn.microsoft.com/en-us/graph/api/resources/report?view=graph-rest-beta + timeout: '{$MS365.API.TIMEOUT}' + parameters: + - name: app_id + value: '{$MS365.APP.ID}' + - name: http_proxy + value: '{$MS365.HTTP.PROXY}' + - name: password + value: '{$MS365.PASSWORD}' + - name: tenant_id + value: '{$MS365.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Microsoft 365 reports"}' + tags: + - tag: component + value: apps + - tag: component + value: raw + - uuid: 229db8688139475bbb61dee9567f07a0 + name: 'Apps: Users, Exchange' + type: DEPENDENT + key: ms365.apps.users.exchange + delay: '0' + trends: '0' + description: 'The number of daily Exchange users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ActiveUserCounts[6].exchange' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 2f7a16de43c24f3f89e62606f3a2c900 + name: 'Apps: Users, Office 365' + type: DEPENDENT + key: ms365.apps.users.office365 + delay: '0' + trends: '0' + description: 'The number of daily Office 365 users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ActiveUserCounts[6].office365' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: c0108adb522245bda915ce523624091d + name: 'Apps: Users, OneDrive' + type: DEPENDENT + key: ms365.apps.users.onedrive + delay: '0' + trends: '0' + description: 'The number of daily OneDrive users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ActiveUserCounts[6].oneDrive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: baf254f6a7d34ebc89824a6b9631025a + name: 'Apps: Users, report date' + type: DEPENDENT + key: ms365.apps.users.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the active user count report.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ActiveUserCounts[6].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - tag: component + value: date + - uuid: 855d1296c4a2470f9e1c56d0b887b5bc + name: 'Apps: Users, SharePoint' + type: DEPENDENT + key: ms365.apps.users.sharepoint + delay: '0' + trends: '0' + description: 'The number of daily SharePoint users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ActiveUserCounts[6].sharePoint' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 8de7670a3d57464897db996620638edd + name: 'Apps: Users, Skype for Business' + type: DEPENDENT + key: ms365.apps.users.skype + delay: '0' + trends: '0' + description: 'The number of daily Skype for Business users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ActiveUserCounts[6].skypeForBusiness' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 27ea23488a6f4660a5335a802995071d + name: 'Apps: Users, Teams' + type: DEPENDENT + key: ms365.apps.users.teams + delay: '0' + trends: '0' + description: 'The number of daily Teams users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ActiveUserCounts[6].teams' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: a9212ec491ac4b57ae1d1242abd5fa29 + name: 'Apps: Users, Yammer' + type: DEPENDENT + key: ms365.apps.users.yammer + delay: '0' + trends: '0' + description: 'The number of daily Yammer users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOffice365ActiveUserCounts[6].yammer' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.apps.reports.get + tags: + - tag: component + value: apps + - uuid: 8ed3af9876f94f138a0f6e19ea02235a + name: 'OneDrive: Get errors' + type: DEPENDENT + key: ms365.onedrive.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests for OneDrive metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: error + - tag: component + value: onedrive + triggers: + - uuid: b526cc91e49041a1ba4fac76b8f464c2 + expression: 'length(last(/Microsoft 365 reports by HTTP/ms365.onedrive.errors))>0' + name: 'Microsoft 365: OneDrive: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: e7e2570b2b124cd08b21b065f95ae8d7 + name: 'OneDrive: Files, activity, report date' + type: DEPENDENT + key: ms365.onedrive.files.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of report of the number of active OneDrive files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveActivityFileCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: date + - tag: component + value: onedrive + - uuid: ee6d3acbdd674f479cd6c99a2f113e2e + name: 'OneDrive: Files, shared externally' + type: DEPENDENT + key: ms365.onedrive.files.shared_externally + delay: '0' + trends: '0' + description: 'The number of externally shared OneDrive files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveActivityFileCounts[0].sharedExternally' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: b94ba3d65ebd4bcca434c54a7252739c + name: 'OneDrive: Files, shared internally' + type: DEPENDENT + key: ms365.onedrive.files.shared_internally + delay: '0' + trends: '0' + description: 'The number of internally shared OneDrive files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveActivityFileCounts[0].sharedInternally' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: 35327a7d610a442d87b1672532b9ada3 + name: 'OneDrive: Files, synced' + type: DEPENDENT + key: ms365.onedrive.files.synced + delay: '0' + trends: '0' + description: 'The number of synced OneDrive files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveActivityFileCounts[0].synced' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: 86e92424c4a946768f48fe757ea1883e + name: 'OneDrive: Files, viewed or edited' + type: DEPENDENT + key: ms365.onedrive.files.viewed_or_edited + delay: '0' + trends: '0' + description: 'The number of viewed or edited OneDrive files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveActivityFileCounts[0].viewedOrEdited' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: e6a94bc310e142ccaa398533c2161e43 + name: 'OneDrive: File count, active' + type: DEPENDENT + key: ms365.onedrive.file_count.active + delay: '0' + trends: '0' + description: 'The total number of active files across all sites. A file is considered active if it has been saved, synced, modified, or shared.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveUsageFileCounts[0].active' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: 24d396224317427080e538897d7bdc81 + name: 'OneDrive: File count, report date' + type: DEPENDENT + key: ms365.onedrive.file_count.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the OneDrive file count report.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveUsageFileCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: date + - tag: component + value: onedrive + - uuid: 4413b1514364430f9846aa952893b2d4 + name: 'OneDrive: File count, total' + type: DEPENDENT + key: ms365.onedrive.file_count.total + delay: '0' + trends: '0' + description: 'The total number of files across all sites.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveUsageFileCounts[0].total' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: 31b78185119446f397404ae7abf05684 + name: 'OneDrive: Get reports' + type: SCRIPT + key: ms365.onedrive.reports.get + delay: 6h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + const ms365 = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + ms365.params = params; + ms365.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + const response = new HttpRequest(ms365.tls.options), + login = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + login.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(ms365.params.tenant_id) + '/oauth2/v2.0/token', + 'grant_type=client_credentials&scope=https://graph.microsoft.com/.default&client_id=' + encodeURIComponent(ms365.params.app_id) + '&client_secret=' + encodeURIComponent(ms365.params.password) + ); + + if (login.getStatus() < 200 || login.getStatus() >= 300) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + ms365.token = response['access_token']; + }, + + request: function (url) { + const response = new HttpRequest(ms365.tls.options), + request = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + request.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + if (!ms365.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + ms365.token); + + Zabbix.log(4, '[ Microsoft 365 ] Request url: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ Microsoft 365 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return ms365.nullToZero(data); + }, + + nullToZero: function (data) { + Object.keys(data).forEach(function (key) { + if (data[key] === null) { + data[key] = 0; + } else if (typeof data[key] === 'object') { + ms365.nullToZero(data[key]); + } + }); + + return data; + }, + + getMetricsData: function (endpoints) { + const data = {}; + + data.metrics = {}; + endpoints.forEach(function (field) { + link = 'https://graph.microsoft.com/beta/reports/' + field + '(period=\'D7\')?$format=application/json'; + answer = ms365.getField(ms365.request(link), 'value'); + + data.metrics[field] = answer; + }); + + return data; + }, + + getServiceData: function () { + var data = {}, + + link = 'https://graph.microsoft.com/beta/admin/serviceAnnouncement/healthOverviews/'; + data.services = ms365.request(link); + + return data; + } + }; + + + const endpoints = [ + 'getOneDriveActivityUserCounts', + 'getOneDriveActivityFileCounts', + 'getOneDriveUsageAccountCounts', + 'getOneDriveUsageFileCounts', + 'getOneDriveUsageStorage' + ]; + + try { + ms365.setParams(JSON.parse(value)); + ms365.login(); + return JSON.stringify(ms365.getMetricsData(endpoints)); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Microsoft 365 ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: | + Accumulated data from the Microsoft Graph API "reports" endpoints. + More information: + https://learn.microsoft.com/en-us/graph/api/resources/report?view=graph-rest-beta + timeout: '{$MS365.API.TIMEOUT}' + parameters: + - name: app_id + value: '{$MS365.APP.ID}' + - name: http_proxy + value: '{$MS365.HTTP.PROXY}' + - name: password + value: '{$MS365.PASSWORD}' + - name: tenant_id + value: '{$MS365.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Microsoft 365 reports"}' + tags: + - tag: component + value: onedrive + - tag: component + value: raw + - uuid: b32aba6af3444230b9bd06ba8544c906 + name: 'OneDrive: Business sites, active' + type: DEPENDENT + key: ms365.onedrive.sites.active + delay: '0' + trends: '0' + description: 'The number of active OneDrive for Business sites. Any site on which users have viewed, modified, uploaded, downloaded, shared, or synced files is considered an active site.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveUsageAccountCounts[0].active' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: 023d27c3fbbc4228b374ddec9cc8e35b + name: 'OneDrive: Business sites, report date' + type: DEPENDENT + key: ms365.onedrive.sites.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the number of OneDrive for Business sites report.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveUsageAccountCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: date + - tag: component + value: onedrive + - uuid: c15eff389f904d9798fe7935d8ce9328 + name: 'OneDrive: Business sites, total' + type: DEPENDENT + key: ms365.onedrive.sites.total + delay: '0' + trends: '0' + description: 'The number of OneDrive for Business sites.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveUsageAccountCounts[0].total' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: 4482652327664e8fab8301ec559fa897 + name: 'OneDrive: Storage, report date' + type: DEPENDENT + key: ms365.onedrive.storage.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the amount of storage used in OneDrive for Business.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveUsageStorage[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: date + - tag: component + value: onedrive + - uuid: dfcbbd4b82f549fb926ddabef52317ca + name: 'OneDrive: Storage, total' + type: DEPENDENT + key: ms365.onedrive.storage.total + delay: '0' + trends: '0' + units: B + description: 'The total amount of storage used in OneDrive for Business.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveUsageStorage[?(@.siteType == "All")].storageUsedInBytes.first()' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: 5bd03a64dfa94cfe9f279219fdca22ff + name: 'OneDrive: Users, report date' + type: DEPENDENT + key: ms365.onedrive.users.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of active OneDrive users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveActivityUserCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: date + - tag: component + value: onedrive + - uuid: 36ed7c38f7d544968830e876e6e6b24d + name: 'OneDrive: Users, shared externally' + type: DEPENDENT + key: ms365.onedrive.users.shared_externally + delay: '0' + trends: '0' + description: 'The number of users who have shared OneDrive files externally.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveActivityUserCounts[0].sharedExternally' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: d393a09d304a4cb2b4bc4faa75361962 + name: 'OneDrive: Users, shared internally' + type: DEPENDENT + key: ms365.onedrive.users.shared_internally + delay: '0' + trends: '0' + description: 'The number of users who have shared OneDrive files internally.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveActivityUserCounts[0].sharedInternally' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: 463d39ac2dee4bd09bd9547d269fc0cd + name: 'OneDrive: Users, synced' + type: DEPENDENT + key: ms365.onedrive.users.synced + delay: '0' + trends: '0' + description: 'The number of users who have synced OneDrive files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveActivityUserCounts[0].synced' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: 5e68a062cb2e40508f7d65bc5c07e5f6 + name: 'OneDrive: Users, viewed or edited' + type: DEPENDENT + key: ms365.onedrive.users.viewed_or_edited + delay: '0' + trends: '0' + description: 'The number of users who have viewed or edited OneDrive files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getOneDriveActivityUserCounts[0].viewedOrEdited' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.onedrive.reports.get + tags: + - tag: component + value: onedrive + - uuid: b1e7a98c1fd04a6da30b2572e440a90f + name: 'Outlook: Activity, meetings created' + type: DEPENDENT + key: ms365.outlook.activity.meetings_created + delay: '0' + trends: '0' + description: 'The number of times a "Meeting request sent" action was recorded.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityCounts[0].meetingCreated' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 0b6090e26675480eadffb518685398a7 + name: 'Outlook: Activity, meetings interacted' + type: DEPENDENT + key: ms365.outlook.activity.meetings_interacted + delay: '0' + trends: '0' + description: 'The number of times a meeting request accept, tentative, decline, or cancel action was recorded.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityCounts[0].meetingInteracted' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: c8692fab4c5e4af1860beca648a5fa7e + name: 'Outlook: Activity, emails read' + type: DEPENDENT + key: ms365.outlook.activity.read + delay: '0' + trends: '0' + description: 'The number of times an "Email read" action was recorded.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityCounts[0].read' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 0e205e2458f047399e682bfa68881395 + name: 'Outlook: Activity, emails received' + type: DEPENDENT + key: ms365.outlook.activity.received + delay: '0' + trends: '0' + description: 'The number of times an "Email received" action was recorded.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityCounts[0].receive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 6eb5581fba9e4613b1e966852bb166cc + name: 'Outlook: Activity, report date' + type: DEPENDENT + key: ms365.outlook.activity.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the Outlook activity count report.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityCounts[0].reportRefreshDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: date + - tag: component + value: outlook + - uuid: b090b886df704dc3baf0d6e7eb4d08f8 + name: 'Outlook: Activity, emails sent' + type: DEPENDENT + key: ms365.outlook.activity.sent + delay: '0' + trends: '0' + description: 'The number of times an "Email sent" action was recorded.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityCounts[0].send' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 2acaed1cc8fc4111ad71a38d4ae2f004 + name: 'Outlook: Get errors' + type: DEPENDENT + key: ms365.outlook.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests for Outlook metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: error + - tag: component + value: outlook + triggers: + - uuid: 79d0d9d9622347e2a7c937b7831ac01b + expression: 'length(last(/Microsoft 365 reports by HTTP/ms365.outlook.errors))>0' + name: 'Microsoft 365: Outlook: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: 37e6321c075945c5b06bc77783bd5b73 + name: 'Outlook: Mailbox, active' + type: DEPENDENT + key: ms365.outlook.mailbox.active + delay: '0' + trends: '0' + description: 'The number of active user mailboxes in your organization. A mailbox is considered active if the user has sent or read any emails.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getMailboxUsageMailboxCounts[0].active' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 637165130fc44abcafcc84366929f74e + name: 'Outlook: Mailbox, active in %' + type: DEPENDENT + key: ms365.outlook.mailbox.active.percentage + delay: '0' + trends: '0' + units: '%' + description: 'Percentage of active user mailboxes in your organization. A mailbox is considered active if the user has sent or read any emails.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getMailboxUsageMailboxCounts[0].active * 100 / data.metrics.getMailboxUsageMailboxCounts[0].total; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 292361cb20a84d028003732027405882 + name: 'Outlook: Mailbox, report date' + type: DEPENDENT + key: ms365.outlook.mailbox.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the unique user count per app.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getMailboxUsageMailboxCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: date + - tag: component + value: outlook + - uuid: 5eec6999430b4dcb87fdf54162839e42 + name: 'Outlook: Mailbox, total' + type: DEPENDENT + key: ms365.outlook.mailbox.total + delay: '0' + trends: '0' + description: 'The total number of user mailboxes in your organization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getMailboxUsageMailboxCounts[0].total' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 4e4d78bd44db421a908288031489c3d4 + name: 'Outlook: Get reports' + type: SCRIPT + key: ms365.outlook.reports.get + delay: 6h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + const ms365 = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + ms365.params = params; + ms365.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + const response = new HttpRequest(ms365.tls.options), + login = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + login.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(ms365.params.tenant_id) + '/oauth2/v2.0/token', + 'grant_type=client_credentials&scope=https://graph.microsoft.com/.default&client_id=' + encodeURIComponent(ms365.params.app_id) + '&client_secret=' + encodeURIComponent(ms365.params.password) + ); + + if (login.getStatus() < 200 || login.getStatus() >= 300) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + ms365.token = response['access_token']; + }, + + request: function (url) { + const response = new HttpRequest(ms365.tls.options), + request = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + request.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + if (!ms365.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + ms365.token); + + Zabbix.log(4, '[ Microsoft 365 ] Request url: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ Microsoft 365 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return ms365.nullToZero(data); + }, + + nullToZero: function (data) { + Object.keys(data).forEach(function (key) { + if (data[key] === null) { + data[key] = 0; + } else if (typeof data[key] === 'object') { + ms365.nullToZero(data[key]); + } + }); + + return data; + }, + + getMetricsData: function (endpoints) { + const data = {}; + + data.metrics = {}; + endpoints.forEach(function (field) { + link = 'https://graph.microsoft.com/beta/reports/' + field + '(period=\'D7\')?$format=application/json'; + answer = ms365.getField(ms365.request(link), 'value'); + + data.metrics[field] = answer; + }); + + return data; + }, + + getServiceData: function () { + var data = {}, + + link = 'https://graph.microsoft.com/beta/admin/serviceAnnouncement/healthOverviews/'; + data.services = ms365.request(link); + + return data; + } + }; + + + endpoints = [ + 'getEmailActivityCounts', + 'getEmailActivityUserCounts', + 'getEmailAppUsageUserCounts', + 'getMailboxUsageMailboxCounts', + 'getMailboxUsageStorage' + ]; + + try { + ms365.setParams(JSON.parse(value)); + ms365.login(); + return JSON.stringify(ms365.getMetricsData(endpoints)); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Microsoft 365 ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: | + Accumulated data from the Microsoft Graph API "reports" endpoints. + More information: + https://learn.microsoft.com/en-us/graph/api/resources/report?view=graph-rest-beta + timeout: '{$MS365.API.TIMEOUT}' + parameters: + - name: app_id + value: '{$MS365.APP.ID}' + - name: http_proxy + value: '{$MS365.HTTP.PROXY}' + - name: password + value: '{$MS365.PASSWORD}' + - name: tenant_id + value: '{$MS365.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Microsoft 365 reports"}' + tags: + - tag: component + value: outlook + - tag: component + value: raw + - uuid: d633c87e65574b2a9453c48efc899368 + name: 'Outlook: Mailbox, storage, report date' + type: DEPENDENT + key: ms365.outlook.storage.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the mailbox storage report.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getMailboxUsageStorage[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: date + - tag: component + value: outlook + - uuid: e57fc3c97fca4fb2ac806be8548c69c2 + name: 'Outlook: Mailbox, storage used' + type: DEPENDENT + key: ms365.outlook.storage.used + delay: '0' + trends: '0' + units: B + description: 'The amount of mailbox storage used in your organization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getMailboxUsageStorage[0].storageUsedInBytes' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 866cc243422f4494a53f731189de97b0 + name: 'Outlook: User count, IMAP4 applications' + type: DEPENDENT + key: ms365.outlook.user_count.imap4app + delay: '0' + trends: '0' + description: 'The number of unique users of other IMAP4 applications.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailAppUsageUserCounts[6].imap4App' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 7cafa2052df1426d8ca136b02d517166 + name: 'Outlook: User count, Outlook for Mac' + type: DEPENDENT + key: ms365.outlook.user_count.mac + delay: '0' + trends: '0' + description: 'The number of unique users of Outlook for Mac.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailAppUsageUserCounts[6].outlookForMac' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: b0192e926ec44808a89423ed0231d858 + name: 'Outlook: User count, mail for Mac' + type: DEPENDENT + key: ms365.outlook.user_count.mail_for_mac + delay: '0' + trends: '0' + description: 'The number of unique users of mail for Mac.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailAppUsageUserCounts[6].mailForMac' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 3df9660d9f764c26bf281041aae2466e + name: 'Outlook: User count, meetings created' + type: DEPENDENT + key: ms365.outlook.user_count.meetings_created + delay: '0' + trends: '0' + description: 'The number of users a "Meeting request sent" action was recorded for.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityUserCounts[0].meetingCreated' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 50703e1aec3d47218d08495f2c7112c2 + name: 'Outlook: User count, meetings interacted' + type: DEPENDENT + key: ms365.outlook.user_count.meetings_interacted + delay: '0' + trends: '0' + description: 'The number of users a meeting request accept, tentative, decline, or cancel action was recorded for.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityUserCounts[0].meetingInteracted' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 9afd7131c46043dbac392b22f042edcc + name: 'Outlook: User count, Outlook for mobile' + type: DEPENDENT + key: ms365.outlook.user_count.mobile + delay: '0' + trends: '0' + description: 'The number of unique users of Outlook for mobile.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailAppUsageUserCounts[6].outlookForMobile' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: c832f65eb47d4fe69824296994bd39e7 + name: 'Outlook: User count, POP3 applications' + type: DEPENDENT + key: ms365.outlook.user_count.pop3app + delay: '0' + trends: '0' + description: 'The number of unique users of other POP3 applications.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailAppUsageUserCounts[6].pop3App' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 9f612d7d0f3c45c6a12bab26609a31ba + name: 'Outlook: User count, emails read' + type: DEPENDENT + key: ms365.outlook.user_count.read + delay: '0' + trends: '0' + description: 'The number of users an "Email read" action was recorded for.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityUserCounts[0].read' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 2f6ca8ba75da45d2ac91af9e526e411d + name: 'Outlook: User count, emails received' + type: DEPENDENT + key: ms365.outlook.user_count.received + delay: '0' + trends: '0' + description: 'The number of users an "Email received" action was recorded for.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityUserCounts[0].receive' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 9798b94176294350a4c6f9de40839c3f + name: 'Outlook: User count, report date' + type: DEPENDENT + key: ms365.outlook.user_count.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the Outlook activity user count report.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityUserCounts[0].reportRefreshDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: date + - tag: component + value: outlook + - uuid: d4835c7b293845c9a28d7c4ee4d25d01 + name: 'Outlook: User count, app usage, report date' + type: DEPENDENT + key: ms365.outlook.user_count.report_date.app + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the unique user count per app.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailAppUsageUserCounts[6].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: date + - tag: component + value: outlook + - uuid: 176af3cbc220429dbed826714cf4374d + name: 'Outlook: User count, emails sent' + type: DEPENDENT + key: ms365.outlook.user_count.sent + delay: '0' + trends: '0' + description: 'The number of users an "Email sent" action was recorded for.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailActivityUserCounts[0].send' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 48e8bcbc05bb488784da9630a8a05565 + name: 'Outlook: User count, SMTP applications' + type: DEPENDENT + key: ms365.outlook.user_count.smtpapp + delay: '0' + trends: '0' + description: 'The number of unique users of other SMTP applications.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailAppUsageUserCounts[6].smtpApp' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 031244dc15cc4eccb75be311a84d2c74 + name: 'Outlook: User count, Outlook for web' + type: DEPENDENT + key: ms365.outlook.user_count.web + delay: '0' + trends: '0' + description: 'The number of unique users of Outlook for web.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailAppUsageUserCounts[6].outlookForWeb' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: 01f6f3d0946548e086df06ea90a16c84 + name: 'Outlook: User count, Outlook for Windows' + type: DEPENDENT + key: ms365.outlook.user_count.windows + delay: '0' + trends: '0' + description: 'The number of unique users of Outlook for Windows.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getEmailAppUsageUserCounts[6].outlookForWindows' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.outlook.reports.get + tags: + - tag: component + value: outlook + - uuid: b547935175f441f2a3a2bf41c8abc99b + name: 'Services: Get errors' + type: DEPENDENT + key: ms365.services.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests for Services metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ms365.services.get + tags: + - tag: component + value: error + - tag: component + value: service + triggers: + - uuid: 54c11aad4113433a866272988a64c2bf + expression: 'length(last(/Microsoft 365 reports by HTTP/ms365.services.errors))>0' + name: 'Microsoft 365: Services: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: 53c72fa948454b998f612c4d099dd440 + name: 'Services: Get services' + type: SCRIPT + key: ms365.services.get + delay: 6h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + const ms365 = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + ms365.params = params; + ms365.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + const response = new HttpRequest(ms365.tls.options), + login = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + login.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(ms365.params.tenant_id) + '/oauth2/v2.0/token', + 'grant_type=client_credentials&scope=https://graph.microsoft.com/.default&client_id=' + encodeURIComponent(ms365.params.app_id) + '&client_secret=' + encodeURIComponent(ms365.params.password) + ); + + if (login.getStatus() < 200 || login.getStatus() >= 300) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + ms365.token = response['access_token']; + }, + + request: function (url) { + const response = new HttpRequest(ms365.tls.options), + request = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + request.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + if (!ms365.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + ms365.token); + + Zabbix.log(4, '[ Microsoft 365 ] Request url: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ Microsoft 365 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return ms365.nullToZero(data); + }, + + nullToZero: function (data) { + Object.keys(data).forEach(function (key) { + if (data[key] === null) { + data[key] = 0; + } else if (typeof data[key] === 'object') { + ms365.nullToZero(data[key]); + } + }); + + return data; + }, + + getMetricsData: function (endpoints) { + const data = {}; + + data.metrics = {}; + endpoints.forEach(function (field) { + link = 'https://graph.microsoft.com/beta/reports/' + field + '(period=\'D7\')?$format=application/json'; + answer = ms365.getField(ms365.request(link), 'value'); + + data.metrics[field] = answer; + }); + + return data; + }, + + getServiceData: function () { + var data = {}, + + link = 'https://graph.microsoft.com/beta/admin/serviceAnnouncement/healthOverviews/'; + data.services = ms365.request(link); + + return data; + } + }; + + + try { + ms365.setParams(JSON.parse(value)); + ms365.login(); + return JSON.stringify(ms365.getServiceData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Microsoft 365 ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: | + The list of Microsoft cloud services and their health statuses subscribed by a tenant. + More information: + https://learn.microsoft.com/en-us/graph/api/servicehealth-get?view=graph-rest-beta&tabs=http + timeout: '{$MS365.API.TIMEOUT}' + parameters: + - name: app_id + value: '{$MS365.APP.ID}' + - name: http_proxy + value: '{$MS365.HTTP.PROXY}' + - name: password + value: '{$MS365.PASSWORD}' + - name: tenant_id + value: '{$MS365.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Microsoft 365 reports"}' + tags: + - tag: component + value: raw + - tag: component + value: service + - uuid: d4256e411ced4566b9abea622acbbf6d + name: 'SharePoint: Get errors' + type: DEPENDENT + key: ms365.sharepoint.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests for SharePoint metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: error + - tag: component + value: sharepoint + triggers: + - uuid: af3d4e3b2ca84ad39780d6d5e13afdee + expression: 'length(last(/Microsoft 365 reports by HTTP/ms365.sharepoint.errors))>0' + name: 'Microsoft 365: SharePoint: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: 2d9db2f1db4741a6a2afb9088cf31218 + name: 'SharePoint: Files, activity, report date' + type: DEPENDENT + key: ms365.sharepoint.files.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of active SharePoint files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityFileCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: date + - tag: component + value: sharepoint + - uuid: 0fa7e6c2f6eb46da8ee577fd88d502b2 + name: 'SharePoint: Files, shared externally' + type: DEPENDENT + key: ms365.sharepoint.files.shared_externally + delay: '0' + trends: '0' + description: 'The number of externally shared SharePoint files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityFileCounts[0].sharedExternally' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: dba7c4e8e1244edfa2e227d5db8f89cc + name: 'SharePoint: Files, shared internally' + type: DEPENDENT + key: ms365.sharepoint.files.shared_internally + delay: '0' + trends: '0' + description: 'The number of internally shared SharePoint files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityFileCounts[0].sharedInternally' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: 72cdf53a7fc04b01ac47f7fad3dc1973 + name: 'SharePoint: Files, synced' + type: DEPENDENT + key: ms365.sharepoint.files.synced + delay: '0' + trends: '0' + description: 'The number of files synced to a SharePoint site.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityFileCounts[0].synced' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: 8a26811f0bdc4f7baab93a87e76bfd78 + name: 'SharePoint: Files, viewed or edited' + type: DEPENDENT + key: ms365.sharepoint.files.viewed_or_edited + delay: '0' + trends: '0' + description: 'The number of viewed or edited SharePoint files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityFileCounts[0].viewedOrEdited' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: ef4edb2188b244858f2f052a5880877d + name: 'SharePoint: File count, active' + type: DEPENDENT + key: ms365.sharepoint.file_count.active + delay: '0' + trends: '0' + description: 'The total number of active files across all sites. A file is considered active if it has been saved, synced, modified, or shared.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointSiteUsageFileCounts[0].active' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: 0f919b2dba8c42a1b14425fe0d28a27f + name: 'SharePoint: File count, report date' + type: DEPENDENT + key: ms365.sharepoint.file_count.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the SharePoint file count report.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointSiteUsageFileCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: date + - tag: component + value: sharepoint + - uuid: 9a79514b201a4c6b9721ef9188d234e1 + name: 'SharePoint: File count, total' + type: DEPENDENT + key: ms365.sharepoint.file_count.total + delay: '0' + trends: '0' + description: 'The total number of files across all sites.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointSiteUsageFileCounts[0].total' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: 05e43c1b8a7d4d4abe773c3129c0100a + name: 'SharePoint: Pages, view count' + type: DEPENDENT + key: ms365.sharepoint.pages_viewed.count + delay: '0' + trends: '0' + description: 'The number of pages viewed across all sites.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointSiteUsagePages[0].pageViewCount' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: 58cb9338fa684f9f9631a6f3f8736469 + name: 'SharePoint: Pages, viewed, report date' + type: DEPENDENT + key: ms365.sharepoint.pages_viewed.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of pages viewed.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointSiteUsagePages[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: date + - tag: component + value: sharepoint + - uuid: 71f0ccd4e8a846009dd9b81392f3330c + name: 'SharePoint: Pages, visited' + type: DEPENDENT + key: ms365.sharepoint.pages_visited.count + delay: '0' + trends: '0' + description: 'The number of unique pages visited by users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityPages[0].visitedPageCount' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: de53a4cec0fb42c4bdee64a1539876c7 + name: 'SharePoint: Pages, visited, report date' + type: DEPENDENT + key: ms365.sharepoint.pages_visited.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of pages visited.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityPages[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: date + - tag: component + value: sharepoint + - uuid: fd2cb544cfd744c1a94a1d32243978e6 + name: 'SharePoint: Get reports' + type: SCRIPT + key: ms365.sharepoint.reports.get + delay: 6h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + const ms365 = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + ms365.params = params; + ms365.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + const response = new HttpRequest(ms365.tls.options), + login = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + login.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(ms365.params.tenant_id) + '/oauth2/v2.0/token', + 'grant_type=client_credentials&scope=https://graph.microsoft.com/.default&client_id=' + encodeURIComponent(ms365.params.app_id) + '&client_secret=' + encodeURIComponent(ms365.params.password) + ); + + if (login.getStatus() < 200 || login.getStatus() >= 300) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + ms365.token = response['access_token']; + }, + + request: function (url) { + const response = new HttpRequest(ms365.tls.options), + request = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + request.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + if (!ms365.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + ms365.token); + + Zabbix.log(4, '[ Microsoft 365 ] Request url: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ Microsoft 365 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return ms365.nullToZero(data); + }, + + nullToZero: function (data) { + Object.keys(data).forEach(function (key) { + if (data[key] === null) { + data[key] = 0; + } else if (typeof data[key] === 'object') { + ms365.nullToZero(data[key]); + } + }); + + return data; + }, + + getMetricsData: function (endpoints) { + const data = {}; + + data.metrics = {}; + endpoints.forEach(function (field) { + link = 'https://graph.microsoft.com/beta/reports/' + field + '(period=\'D7\')?$format=application/json'; + answer = ms365.getField(ms365.request(link), 'value'); + + data.metrics[field] = answer; + }); + + return data; + }, + + getServiceData: function () { + var data = {}, + + link = 'https://graph.microsoft.com/beta/admin/serviceAnnouncement/healthOverviews/'; + data.services = ms365.request(link); + + return data; + } + }; + + + endpoints = [ + 'getSharePointActivityFileCounts', + 'getSharePointActivityUserCounts', + 'getSharePointActivityPages', + 'getSharePointSiteUsageFileCounts', + 'getSharePointSiteUsageSiteCounts', + 'getSharePointSiteUsageStorage', + 'getSharePointSiteUsagePages' + ]; + + try { + ms365.setParams(JSON.parse(value)); + ms365.login(); + return JSON.stringify(ms365.getMetricsData(endpoints)); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Microsoft 365 ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: | + Accumulated data from the Microsoft Graph API "reports" endpoints. + More information: + https://learn.microsoft.com/en-us/graph/api/resources/report?view=graph-rest-beta + timeout: '{$MS365.API.TIMEOUT}' + parameters: + - name: app_id + value: '{$MS365.APP.ID}' + - name: http_proxy + value: '{$MS365.HTTP.PROXY}' + - name: password + value: '{$MS365.PASSWORD}' + - name: tenant_id + value: '{$MS365.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Microsoft 365 reports"}' + tags: + - tag: component + value: raw + - tag: component + value: sharepoint + - uuid: e17280ef24ff426fb2dbf3fb0c7beaa4 + name: 'SharePoint: Sites, report date' + type: DEPENDENT + key: ms365.sharepoint.site.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of SharePoint sites.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointSiteUsageSiteCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: date + - tag: component + value: sharepoint + - uuid: 92930bce83b449b4963ea8e27ed4bb33 + name: 'SharePoint: Sites, active' + type: DEPENDENT + key: ms365.sharepoint.sites.active + delay: '0' + trends: '0' + description: 'The number of active SharePoint sites.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointSiteUsageSiteCounts[0].active' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: ea038226a3c34a8eada1836f08a9a17b + name: 'SharePoint: Sites, total' + type: DEPENDENT + key: ms365.sharepoint.sites.total + delay: '0' + trends: '0' + description: 'The number of SharePoint sites.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointSiteUsageSiteCounts[0].total' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: 2feda0c4073445bcbe6a99e1eed1b838 + name: 'SharePoint: Storage, report date' + type: DEPENDENT + key: ms365.sharepoint.storage.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the amount of storage used in SharePoint.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointSiteUsageStorage[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: date + - tag: component + value: sharepoint + - uuid: 18e892b6167442ec9c385cee5b1d919c + name: 'SharePoint: Storage, total' + type: DEPENDENT + key: ms365.sharepoint.storage.total + delay: '0' + trends: '0' + units: B + description: 'The total amount of storage used in SharePoint.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointSiteUsageStorage[0].storageUsedInBytes' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: 9cffe16ecb9347ddb59afd577996e676 + name: 'SharePoint: Users, report date' + type: DEPENDENT + key: ms365.sharepoint.user_count.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of active SharePoint users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityUserCounts[0].reportDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: date + - tag: component + value: sharepoint + - uuid: 11bd113ce58b4d95a4b75965ede4f7f3 + name: 'SharePoint: Users, shared externally' + type: DEPENDENT + key: ms365.sharepoint.user_count.shared_externally + delay: '0' + trends: '0' + description: 'The number of users who have shared SharePoint files externally.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityUserCounts[0].sharedExternally' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: 08ad2690bc3c4c2eb88094754a7b3044 + name: 'SharePoint: Users, shared internally' + type: DEPENDENT + key: ms365.sharepoint.user_count.shared_internally + delay: '0' + trends: '0' + description: 'The number of users who have shared SharePoint files internally.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityUserCounts[0].sharedInternally' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: a632ededd9794a1f97c8d06caefb6965 + name: 'SharePoint: Users, synced' + type: DEPENDENT + key: ms365.sharepoint.user_count.synced + delay: '0' + trends: '0' + description: 'The number of users who have synced SharePoint files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityUserCounts[0].synced' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: 234db342146044399cb243376b81f571 + name: 'SharePoint: Users, viewed or edited' + type: DEPENDENT + key: ms365.sharepoint.user_count.viewed_or_edited + delay: '0' + trends: '0' + description: 'The number of users who have viewed or edited SharePoint files.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityUserCounts[0].viewedOrEdited' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: f6883d5517054554b3553e3497925c58 + name: 'SharePoint: Users, pages visited' + type: DEPENDENT + key: ms365.sharepoint.user_count.visited_page + delay: '0' + trends: '0' + description: 'The number of users who have visited unique pages.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getSharePointActivityUserCounts[0].visitedPage' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.sharepoint.reports.get + tags: + - tag: component + value: sharepoint + - uuid: 34bfd72749ec4b8d9e6bb305a6d105b5 + name: 'Teams: Team activity, active channels' + type: DEPENDENT + key: ms365.teams.activity.team.active_channels + delay: '0' + trends: '0' + description: 'The number of active channels across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].activeChannels' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 8b87fb80bc274241861d2d4683deb16a + name: 'Teams: Team activity, active external users' + type: DEPENDENT + key: ms365.teams.activity.team.active_external_users + delay: '0' + trends: '0' + description: 'The number of active external users across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].activeExternalUsers' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 329e2462f6c3461aa839d234e69137d1 + name: 'Teams: Team activity, active shared channels' + type: DEPENDENT + key: ms365.teams.activity.team.active_shared_channels + delay: '0' + trends: '0' + description: 'The number of active shared channels across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].activeSharedChannels' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 9297ac6f704249b189a826ca113624dd + name: 'Teams: Team activity, active users' + type: DEPENDENT + key: ms365.teams.activity.team.active_users + delay: '0' + trends: '0' + description: 'The number of active users across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].activeUsers' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 88e359b530424573ab9ffa9703648886 + name: 'Teams: Team activity, channel messages' + type: DEPENDENT + key: ms365.teams.activity.team.channel_messages + delay: '0' + trends: '0' + description: 'The number of channel messages across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].channelMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: ba3d03da9c184f9fb4451eda4b9fb013 + name: 'Teams: Team activity, guests' + type: DEPENDENT + key: ms365.teams.activity.team.guests + delay: '0' + trends: '0' + description: 'The number of guests across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].guests' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: e46f6cc21cdd479581f52d34fba062b9 + name: 'Teams: Team activity, meetings organized' + type: DEPENDENT + key: ms365.teams.activity.team.meetings_organized + delay: '0' + trends: '0' + description: 'The number of organized meetings across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].meetingsOrganized' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 49f96c1827e744158c70654b0a1d9933 + name: 'Teams: Team activity, mentions' + type: DEPENDENT + key: ms365.teams.activity.team.mentions + delay: '0' + trends: '0' + description: 'The number of mentions across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].mentions' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 222be36f3ef84bc281d125ef0609ec82 + name: 'Teams: Team activity, post messages' + type: DEPENDENT + key: ms365.teams.activity.team.messages.posts + delay: '0' + trends: '0' + description: 'The number of post messages across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].postMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 823acbc537544d89a8411025d1624715 + name: 'Teams: Team activity, reply messages' + type: DEPENDENT + key: ms365.teams.activity.team.messages.replies + delay: '0' + trends: '0' + description: 'The number of reply messages across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].replyMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 0f9ae923e0694e149e441c7c48c5e13d + name: 'Teams: Team activity, reactions' + type: DEPENDENT + key: ms365.teams.activity.team.reactions + delay: '0' + trends: '0' + description: 'The number of reactions across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].reactions' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 83f8432b7ab246e59da295fa50294c78 + name: 'Teams: Team activity, report date' + type: DEPENDENT + key: ms365.teams.activity.team.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of team activities.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].reportRefreshDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: date + - tag: component + value: teams + - uuid: 3d76b28d9ce048f59ab49e722a576cbe + name: 'Teams: Team activity, urgent messages' + type: DEPENDENT + key: ms365.teams.activity.team.urgent_messages + delay: '0' + trends: '0' + description: 'The number of urgent messages across Microsoft Teams over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].urgentMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: ba7e5388f43b40c1bd63516c1edb995d + name: 'Teams: User activity, calls' + type: DEPENDENT + key: ms365.teams.activity.user.calls + delay: '0' + trends: '0' + description: 'The number of 1:1 calls licensed or non-licensed Microsoft Teams users participated in during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].calls' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: e17c33e6ea724db1884ba8b8519050e5 + name: 'Teams: User activity, audio duration' + type: DEPENDENT + key: ms365.teams.activity.user.duration.audio + delay: '0' + trends: '0' + units: s + description: 'The sum of the audio duration of licensed or non-licensed Microsoft Teams users during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].audioDuration' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: JAVASCRIPT + parameters: + - | + function iso8601DurationToSeconds(iso8601Duration) { + const iso8601DurationRegex = /(-)?P(?:([.,\d]+)Y)?(?:([.,\d]+)M)?(?:([.,\d]+)W)?(?:([.,\d]+)D)?(?:T(?:([.,\d]+)H)?(?:([.,\d]+)M)?(?:([.,\d]+)S)?)?/; + const matches = iso8601Duration.match(iso8601DurationRegex); + + duration = 0; + matches.forEach( function (field, index) { + if (field != undefined) { + switch(index) { + case 2: duration += parseInt(field) * daysInThisYear() * 86400; break; + case 3: duration += parseInt(field) * daysInThisMonth() * 86400; break; + case 4: duration += parseInt(field) * 604800; break; + case 5: duration += parseInt(field) * 86400; break; + case 6: duration += parseInt(field) * 3600; break; + case 7: duration += parseInt(field) * 60; break; + case 8: duration += parseInt(field); + } + } + }); + + return duration; + }; + + function daysInThisMonth() { + const now = new Date(); + + return new Date(now.getFullYear(), now.getMonth()+1, 0).getDate(); + }; + + function daysInThisYear() { + const now = new Date(); + + return new Date(now.getFullYear(), 2, 0).getDate() + 337; + }; + + return iso8601DurationToSeconds(value); + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: ab085552326c4e51847ec6f51377601e + name: 'Teams: User activity, screen share duration' + type: DEPENDENT + key: ms365.teams.activity.user.duration.screen_share + delay: '0' + trends: '0' + units: s + description: 'The sum of the screen share duration of licensed or non-licensed Microsoft Teams users during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].screenShareDuration' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: JAVASCRIPT + parameters: + - | + function iso8601DurationToSeconds(iso8601Duration) { + const iso8601DurationRegex = /(-)?P(?:([.,\d]+)Y)?(?:([.,\d]+)M)?(?:([.,\d]+)W)?(?:([.,\d]+)D)?(?:T(?:([.,\d]+)H)?(?:([.,\d]+)M)?(?:([.,\d]+)S)?)?/; + const matches = iso8601Duration.match(iso8601DurationRegex); + + duration = 0; + matches.forEach( function (field, index) { + if (field != undefined) { + switch(index) { + case 2: duration += parseInt(field) * daysInThisYear() * 86400; break; + case 3: duration += parseInt(field) * daysInThisMonth() * 86400; break; + case 4: duration += parseInt(field) * 604800; break; + case 5: duration += parseInt(field) * 86400; break; + case 6: duration += parseInt(field) * 3600; break; + case 7: duration += parseInt(field) * 60; break; + case 8: duration += parseInt(field); + } + } + }); + + return duration; + }; + + function daysInThisMonth() { + const now = new Date(); + + return new Date(now.getFullYear(), now.getMonth()+1, 0).getDate(); + }; + + function daysInThisYear() { + const now = new Date(); + + return new Date(now.getFullYear(), 2, 0).getDate() + 337; + }; + + return iso8601DurationToSeconds(value); + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 50d50c7daccc4eafb3d98fd5de233ba2 + name: 'Teams: User activity, video duration' + type: DEPENDENT + key: ms365.teams.activity.user.duration.video + delay: '0' + trends: '0' + units: s + description: 'The sum of the video duration of licensed or non-licensed Microsoft Teams users during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].videoDuration' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: JAVASCRIPT + parameters: + - | + function iso8601DurationToSeconds(iso8601Duration) { + const iso8601DurationRegex = /(-)?P(?:([.,\d]+)Y)?(?:([.,\d]+)M)?(?:([.,\d]+)W)?(?:([.,\d]+)D)?(?:T(?:([.,\d]+)H)?(?:([.,\d]+)M)?(?:([.,\d]+)S)?)?/; + const matches = iso8601Duration.match(iso8601DurationRegex); + + duration = 0; + matches.forEach( function (field, index) { + if (field != undefined) { + switch(index) { + case 2: duration += parseInt(field) * daysInThisYear() * 86400; break; + case 3: duration += parseInt(field) * daysInThisMonth() * 86400; break; + case 4: duration += parseInt(field) * 604800; break; + case 5: duration += parseInt(field) * 86400; break; + case 6: duration += parseInt(field) * 3600; break; + case 7: duration += parseInt(field) * 60; break; + case 8: duration += parseInt(field); + } + } + }); + + return duration; + }; + + function daysInThisMonth() { + const now = new Date(); + + return new Date(now.getFullYear(), now.getMonth()+1, 0).getDate(); + }; + + function daysInThisYear() { + const now = new Date(); + + return new Date(now.getFullYear(), 2, 0).getDate() + 337; + }; + + return iso8601DurationToSeconds(value); + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 580aa03b32364b648e2068ac2db70400 + name: 'Teams: User activity, attended meetings' + type: DEPENDENT + key: ms365.teams.activity.user.meetings.attended + delay: '0' + trends: '0' + description: 'The sum of the scheduled one-time and recurring, ad-hoc, and unclassified meetings attended by licensed or non-licensed Microsoft Teams users during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].meetingsAttended' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: eb8bef4579a44ad381808574be6d20e9 + name: 'Teams: User activity, organized meetings' + type: DEPENDENT + key: ms365.teams.activity.user.meetings.organized + delay: '0' + trends: '0' + description: 'The sum of the scheduled one-time and recurring, ad-hoc, and unclassified meetings organized by licensed or non-licensed Microsoft Teams users during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].meetingsOrganized' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 72a82b9a3b594f2abda27e21718cc937 + name: 'Teams: User activity, meetings' + type: DEPENDENT + key: ms365.teams.activity.user.meetings.total + delay: '0' + trends: '0' + description: 'The sum of the scheduled one-time and recurring, ad-hoc, and unclassified meetings licensed or non-licensed Microsoft Teams users participated in during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].meetings' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 1c667ffc4f744a838ba4a82664507b8a + name: 'Teams: User activity, team chat messages' + type: DEPENDENT + key: ms365.teams.activity.user.messages.in_team + delay: '0' + trends: '0' + description: 'The number of unique messages that were posted in team chats by licensed or non-licensed Microsoft Teams users during the week before the report refresh date. This includes original posts and replies.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].teamChatMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 7b21ea233e5242a0bdafe3c9d190b2a1 + name: 'Teams: User activity, post messages' + type: DEPENDENT + key: ms365.teams.activity.user.messages.posts + delay: '0' + trends: '0' + description: 'The number of post messages in all channels made by licensed or non-licensed Microsoft Teams users during the week before the report refresh date. A post is the original message in a teams chat.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].postMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: b833bc817058414fa44ee68b91cb729d + name: 'Teams: User activity, private chat messages' + type: DEPENDENT + key: ms365.teams.activity.user.messages.private + delay: '0' + trends: '0' + description: 'The number of unique messages that were posted in private chats by licensed or non-licensed Microsoft Teams users during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].privateChatMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: ef4c68446d674310aebdc8da9d20002e + name: 'Teams: User activity, reply messages' + type: DEPENDENT + key: ms365.teams.activity.user.messages.replies + delay: '0' + trends: '0' + description: 'The number of reply messages in all channels made by licensed or non-licensed Microsoft Teams users during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].replyMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 16098eacf17a4fa4a1704b0b87ee4f5e + name: 'Teams: User activity, report date' + type: DEPENDENT + key: ms365.teams.activity.user.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of activities by all users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityTotalDistributionCounts[0].reportRefreshDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: date + - tag: component + value: teams + - uuid: dec6dfcf6d1040999633356029597861 + name: 'Teams: Device usage (guests), Android' + type: DEPENDENT + key: ms365.teams.device.guests.android + delay: '0' + trends: '0' + description: 'The number of unique non-licensed Microsoft Teams users (guests) recorded via the Teams mobile client for Android over the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].androidPhone - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].androidPhone; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: f69460d4a5b64cdfb1d46d108ee0f703 + name: 'Teams: Device usage (guests), Chrome OS' + type: DEPENDENT + key: ms365.teams.device.guests.chromeos + delay: '0' + trends: '0' + description: 'The number of unique non-licensed Microsoft Teams users (guests) recorded via the Teams desktop client on a ChromeOS computer over the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].chromeOS - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].chromeOS; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: c425439d85834854b702dcca49c84579 + name: 'Teams: Device usage (guests), iOS' + type: DEPENDENT + key: ms365.teams.device.guests.ios + delay: '0' + trends: '0' + description: 'The number of unique non-licensed Microsoft Teams users (guests) recorded via the Teams mobile client for iOS over the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].ios - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].ios; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: 90b8cfc7f64944599cf756fc4e8cb72c + name: 'Teams: Device usage (guests), Linux' + type: DEPENDENT + key: ms365.teams.device.guests.linux + delay: '0' + trends: '0' + description: 'The number of unique non-licensed Microsoft Teams users (guests) recorded via the Teams desktop client on a Linux computer over the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].linux - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].linux; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: 60b11d13d4e74476a0e48832d6bc9f79 + name: 'Teams: Device usage (guests), Mac' + type: DEPENDENT + key: ms365.teams.device.guests.mac + delay: '0' + trends: '0' + description: 'The number of unique non-licensed Microsoft Teams users (guests) recorded via the Teams desktop client on a macOS computer over the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].mac - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].mac; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: bda18a4088f940c1b36510fd135819aa + name: 'Teams: Device usage (guests), web client' + type: DEPENDENT + key: ms365.teams.device.guests.web + delay: '0' + trends: '0' + description: 'The number of unique non-licensed Microsoft Teams users (guests) recorded via the Teams web client over the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].web - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].web; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: d62bfc1f1a7b4480bbf10659782c3ea2 + name: 'Teams: Device usage (guests), Windows' + type: DEPENDENT + key: ms365.teams.device.guests.windows + delay: '0' + trends: '0' + description: 'The number of unique non-licensed Microsoft Teams users (guests) recorded via the Teams desktop client on a Windows-based computer over the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].windows - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].windows; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: b7b407ce61984b5ba717dfb0ff50c369 + name: 'Teams: Device usage (total), Android' + type: DEPENDENT + key: ms365.teams.device.total.android + delay: '0' + trends: '0' + description: 'The number of unique Microsoft Teams users (licensed or non-licensed) recorded via the Teams mobile client for Android over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].androidPhone' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: 5bef589815d241b49456676c8fa065f8 + name: 'Teams: Device usage (total), Chrome OS' + type: DEPENDENT + key: ms365.teams.device.total.chromeos + delay: '0' + trends: '0' + description: 'The number of unique Microsoft Teams users (licensed or non-licensed) recorded via the Teams desktop client on a ChromeOS computer over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].chromeOS' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: 063563a9f8964f6f8c7a518a4ebbec4d + name: 'Teams: Device usage (total), iOS' + type: DEPENDENT + key: ms365.teams.device.total.ios + delay: '0' + trends: '0' + description: 'The number of unique Microsoft Teams users (licensed or non-licensed) recorded via the Teams mobile client for iOS over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].ios' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: aeb3d4065bc34d74a592daa8bc72f353 + name: 'Teams: Device usage (total), Linux' + type: DEPENDENT + key: ms365.teams.device.total.linux + delay: '0' + trends: '0' + description: 'The number of unique Microsoft Teams users (licensed or non-licensed) recorded via the Teams desktop client on a Linux computer over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].linux' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: 090671fa6fc945a391080eb44df88223 + name: 'Teams: Device usage (total), Mac' + type: DEPENDENT + key: ms365.teams.device.total.mac + delay: '0' + trends: '0' + description: 'The number of unique Microsoft Teams users (licensed or non-licensed) recorded via the Teams desktop client on a macOS computer over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].mac' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: 5b7f0955910a46e8996614c52df16792 + name: 'Teams: Device usage (total), report date' + type: DEPENDENT + key: ms365.teams.device.total.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of device usage of both licensed and non-licensed users.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].reportRefreshDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: date + - tag: component + value: teams + - uuid: a71fb7e8da9e4882bcb5440b5b475a31 + name: 'Teams: Device usage (total), web client' + type: DEPENDENT + key: ms365.teams.device.total.web + delay: '0' + trends: '0' + description: 'The number of unique Microsoft Teams users (licensed or non-licensed) recorded via the Teams web client over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].web' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: 68c3b651d315491db16222fd8aa96237 + name: 'Teams: Device usage (total), Windows' + type: DEPENDENT + key: ms365.teams.device.total.windows + delay: '0' + trends: '0' + description: 'The number of unique Microsoft Teams users (licensed or non-licensed) recorded via the Teams desktop client on a Windows-based computer over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].windows' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: d25d13138a7f4690825549476a32d3ec + name: 'Teams: Device usage (users), Android' + type: DEPENDENT + key: ms365.teams.device.users.android + delay: '0' + trends: '0' + description: 'The number of unique licensed Microsoft Teams users recorded via the Teams mobile client for Android over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].androidPhone' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: fbdad9980995479da7d5413a55c18ef3 + name: 'Teams: Device usage (users), Chrome OS' + type: DEPENDENT + key: ms365.teams.device.users.chromeos + delay: '0' + trends: '0' + description: 'The number of unique licensed Microsoft Teams users recorded via the Teams desktop client on a ChromeOS computer over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].chromeOS' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: b8274b598bb34488b6bd8f1bb9e3dbca + name: 'Teams: Device usage (users), iOS' + type: DEPENDENT + key: ms365.teams.device.users.ios + delay: '0' + trends: '0' + description: 'The number of unique licensed Microsoft Teams users recorded via the Teams mobile client for iOS over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].ios' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: 24de6354c4b04c7aa5ad12bfb8858800 + name: 'Teams: Device usage (users), Linux' + type: DEPENDENT + key: ms365.teams.device.users.linux + delay: '0' + trends: '0' + description: 'The number of unique licensed Microsoft Teams users recorded via the Teams desktop client on a Linux computer over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].linux' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: 1037aa5c3bf14114b6f1aaf61c3a4ea3 + name: 'Teams: Device usage (users), Mac' + type: DEPENDENT + key: ms365.teams.device.users.mac + delay: '0' + trends: '0' + description: 'The number of unique licensed Microsoft Teams users recorded via the Teams desktop client on a macOS computer over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].mac' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: e95474426572429cb795648aeae3881a + name: 'Teams: Device usage (users), web client' + type: DEPENDENT + key: ms365.teams.device.users.web + delay: '0' + trends: '0' + description: 'The number of unique licensed Microsoft Teams users recorded via the Teams web client over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].web' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: c7d6439dbb394b66949050e00205995e + name: 'Teams: Device usage (users), Windows' + type: DEPENDENT + key: ms365.teams.device.users.windows + delay: '0' + trends: '0' + description: 'The number of unique licensed Microsoft Teams users recorded via the Teams desktop client on a Windows-based computer over the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].windows' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: device + - tag: component + value: teams + - uuid: aca93ce9a84d4cd5a2465dd43ce47156 + name: 'Teams: Get errors' + type: DEPENDENT + key: ms365.teams.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'A list of errors from API requests for Teams metrics.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: error + - tag: component + value: teams + triggers: + - uuid: 18c8af3eea6f49b1ba795b476e218ab9 + expression: 'length(last(/Microsoft 365 reports by HTTP/ms365.teams.errors))>0' + name: 'Microsoft 365: Teams: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: a77e654c05ec44ed991a36c6b1df472f + name: 'Teams: Get reports' + type: SCRIPT + key: ms365.teams.reports.get + delay: 6h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + const ms365 = { + params: {}, + token: null, + + setParams: function (params) { + ['app_id', 'password', 'tenant_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + ms365.params = params; + ms365.tls = new CTlsConfig(params.tls_verify); + }, + + login: function () { + const response = new HttpRequest(ms365.tls.options), + login = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + login.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + + response = login.post( + 'https://login.microsoftonline.com/' + encodeURIComponent(ms365.params.tenant_id) + '/oauth2/v2.0/token', + 'grant_type=client_credentials&scope=https://graph.microsoft.com/.default&client_id=' + encodeURIComponent(ms365.params.app_id) + '&client_secret=' + encodeURIComponent(ms365.params.password) + ); + + if (login.getStatus() < 200 || login.getStatus() >= 300) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse login session response.'; + } + + if (!response.hasOwnProperty('access_token')) { + throw 'Authentication response does not contain access token.'; + } + + ms365.token = response['access_token']; + }, + + request: function (url) { + const response = new HttpRequest(ms365.tls.options), + request = new HttpRequest(ms365.tls.options); + + if (typeof ms365.params.http_proxy !== 'undefined' && ms365.params.http_proxy !== '') { + request.setProxy(ms365.params.http_proxy); + Zabbix.log(4, '[ Microsoft 365 ] Using HTTP proxy: ' + ms365.params.http_proxy); + } + + if (!ms365.token) { + throw 'Request does not contain access token.'; + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Bearer ' + ms365.token); + + Zabbix.log(4, '[ Microsoft 365 ] Request url: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ Microsoft 365 ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return ms365.nullToZero(data); + }, + + nullToZero: function (data) { + Object.keys(data).forEach(function (key) { + if (data[key] === null) { + data[key] = 0; + } else if (typeof data[key] === 'object') { + ms365.nullToZero(data[key]); + } + }); + + return data; + }, + + getMetricsData: function (endpoints) { + const data = {}; + + data.metrics = {}; + endpoints.forEach(function (field) { + link = 'https://graph.microsoft.com/beta/reports/' + field + '(period=\'D7\')?$format=application/json'; + answer = ms365.getField(ms365.request(link), 'value'); + + data.metrics[field] = answer; + }); + + return data; + }, + + getServiceData: function () { + var data = {}, + + link = 'https://graph.microsoft.com/beta/admin/serviceAnnouncement/healthOverviews/'; + data.services = ms365.request(link); + + return data; + } + }; + + + endpoints = [ + 'getTeamsDeviceUsageDistributionUserCounts', + 'getTeamsDeviceUsageDistributionTotalUserCounts', + 'getTeamsUserActivityTotalDistributionCounts', + 'getTeamsUserActivityDistributionUserCounts', + 'getTeamsUserActivityDistributionTotalUserCounts', + 'getTeamsTeamActivityDistributionCounts' + ]; + + try { + ms365.setParams(JSON.parse(value)); + ms365.login(); + return JSON.stringify(ms365.getMetricsData(endpoints)); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Microsoft 365 ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: | + Accumulated data from the Microsoft Graph API "reports" endpoints. + More information: + https://learn.microsoft.com/en-us/graph/api/resources/report?view=graph-rest-beta + timeout: '{$MS365.API.TIMEOUT}' + parameters: + - name: app_id + value: '{$MS365.APP.ID}' + - name: http_proxy + value: '{$MS365.HTTP.PROXY}' + - name: password + value: '{$MS365.PASSWORD}' + - name: tenant_id + value: '{$MS365.TENANT.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Microsoft 365 reports"}' + tags: + - tag: component + value: raw + - tag: component + value: teams + - uuid: 7e67ccc2a42c4d5abbc3e0d0d7984d05 + name: 'Teams: User count (guests), calls' + type: DEPENDENT + key: ms365.teams.user_count.guests.calls + delay: '0' + trends: '0' + description: 'The number of non-licensed Microsoft Teams users (guests) who participated in calls during the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].calls - data.metrics.getTeamsUserActivityDistributionUserCounts[0].calls; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: ddc63a611a24420db83976ccd1a6c8a0 + name: 'Teams: User count (guests), meetings' + type: DEPENDENT + key: ms365.teams.user_count.guests.meetings + delay: '0' + trends: '0' + description: 'The number of non-licensed Microsoft Teams users (guests) who participated in meetings during the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].meetings - data.metrics.getTeamsUserActivityDistributionUserCounts[0].meetings; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 6907e19e2e8042faaf60b55fd7298e22 + name: 'Teams: User count (guests), team chat messages' + type: DEPENDENT + key: ms365.teams.user_count.guests.messages.in_team + delay: '0' + trends: '0' + description: 'The number of non-licensed Microsoft Teams users (guests) who posted or replied in team chats during the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].teamChatMessages - data.metrics.getTeamsUserActivityDistributionUserCounts[0].teamChatMessages; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: f91e43ecd3874b0ba51d0bca9c2a4bd2 + name: 'Teams: User count (guests), private chat messages' + type: DEPENDENT + key: ms365.teams.user_count.guests.messages.private + delay: '0' + trends: '0' + description: 'The number of non-licensed Microsoft Teams users (guests) who posted or replied in private chats during the week before the report refresh date.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data=JSON.parse(value); + + return data.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].privateChatMessages - data.metrics.getTeamsUserActivityDistributionUserCounts[0].privateChatMessages; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 79caf6821ff84df5b20ab9c56e25423c + name: 'Teams: User count (total), calls' + type: DEPENDENT + key: ms365.teams.user_count.total.calls + delay: '0' + trends: '0' + description: 'The number of licensed or non-licensed Microsoft Teams users who participated in calls during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].calls' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 6d1c327b01ec44188f2693aac595a4d9 + name: 'Teams: User count (total), meetings' + type: DEPENDENT + key: ms365.teams.user_count.total.meetings + delay: '0' + trends: '0' + description: 'The number of licensed or non-licensed Microsoft Teams users who participated in meetings during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].meetings' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: e594430f98cd442d8ca7705320c35ff9 + name: 'Teams: User count (total), team chat messages' + type: DEPENDENT + key: ms365.teams.user_count.total.messages.in_team + delay: '0' + trends: '0' + description: 'The number of licensed or non-licensed Microsoft Teams users who posted or replied in team chats during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].teamChatMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: b83cb233a3464734873ac5c1fb62c3c2 + name: 'Teams: User count (total), private chat messages' + type: DEPENDENT + key: ms365.teams.user_count.total.messages.private + delay: '0' + trends: '0' + description: 'The number of licensed or non-licensed Microsoft Teams users who posted or replied in private chats during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].privateChatMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 34dcf8e943644be8b82691d845ea2f40 + name: 'Teams: User count (total), report date' + type: DEPENDENT + key: ms365.teams.user_count.total.report_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'The date of the report of the number of licensed or non-licensed Microsoft Teams users in activity.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].reportRefreshDate' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: date + - tag: component + value: teams + - uuid: 47348e11d1d646c88330853b8e002143 + name: 'Teams: User count (users), calls' + type: DEPENDENT + key: ms365.teams.user_count.users.calls + delay: '0' + trends: '0' + description: 'The number of licensed Microsoft Teams users who participated in calls during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityDistributionUserCounts[0].calls' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 68b1c4eaf0864acd81cc7f79f41eeec6 + name: 'Teams: User count (users), meetings' + type: DEPENDENT + key: ms365.teams.user_count.users.meetings + delay: '0' + trends: '0' + description: 'The number of licensed Microsoft Teams users who participated in meetings during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityDistributionUserCounts[0].meetings' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 0f9486c175254cbf9a1b3f7cdd98b594 + name: 'Teams: User count (users), team chat messages' + type: DEPENDENT + key: ms365.teams.user_count.users.messages.in_team + delay: '0' + trends: '0' + description: 'The number of licensed Microsoft Teams users who posted or replied in team chats during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityDistributionUserCounts[0].teamChatMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + - uuid: 86ebe049e2264190b166c71189e6183d + name: 'Teams: User count (users), private chat messages' + type: DEPENDENT + key: ms365.teams.user_count.users.messages.private + delay: '0' + trends: '0' + description: 'The number of licensed Microsoft Teams users who posted or replied in private chats during the week before the report refresh date.' + preprocessing: + - type: JSONPATH + parameters: + - '$.metrics.getTeamsUserActivityDistributionUserCounts[0].privateChatMessages' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.teams.reports.get + tags: + - tag: component + value: teams + discovery_rules: + - uuid: f28e588e81fa4fbdaeb65463843c2c1d + name: 'Microsoft cloud service discovery' + type: DEPENDENT + key: ms365.service.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$MS365.SERVICE.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$MS365.SERVICE.NAME.NOT.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'The list of Microsoft cloud services subscribed by a tenant.' + item_prototypes: + - uuid: 0cfd7176865a4c3c8c78c536a792c336 + name: 'Services: {#NAME} health status' + type: DEPENDENT + key: 'ms365.service.health[{#NAME}]' + delay: '0' + trends: '0' + description: | + Overall service health status of `[{#NAME}]`. + More information about health status values can be found here: + https://learn.microsoft.com/en-us/graph/api/resources/servicehealthissue?view=graph-rest-beta#servicehealthstatus-values + valuemap: + name: 'Services health status' + preprocessing: + - type: JSONPATH + parameters: + - '$.services.value[?(@.service == ''{#NAME}'')].status.first()' + - type: JAVASCRIPT + parameters: + - | + if (value !== 'null') { + const idx = [ + 'serviceOperational', + 'investigating', + 'restoringService', + 'verifyingService', + 'serviceRestored', + 'postIncidentReviewPublished', + 'serviceDegradation', + 'serviceInterruption', + 'extendedRecovery', + 'falsePositive', + 'investigationSuspended', + ].indexOf(value); + + return idx !== -1 ? idx : 11; + } + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: ms365.services.get + tags: + - tag: component + value: health + - tag: component + value: service + - tag: service + value: '{#NAME}' + trigger_prototypes: + - uuid: eaf40afe3cbf402f8148913e9b7baf98 + expression: 'last(/Microsoft 365 reports by HTTP/ms365.service.health[{#NAME}])=6' + name: 'Microsoft 365: Services: {#NAME} is degraded.' + opdata: '{ITEM.LASTVALUE1}' + priority: WARNING + description: | + The service has the "Degraded" health status. + An issue is confirmed that may affect the use of a service or feature. You might see this status if a service is performing slower than usual, there are intermittent interruptions, or if a feature isn't working. + manual_close: 'YES' + tags: + - tag: scope + value: health + - uuid: 312dc15bd57b49dfb86a5185b6c2cefa + expression: 'last(/Microsoft 365 reports by HTTP/ms365.service.health[{#NAME}])=7' + name: 'Microsoft 365: Services: {#NAME} is interrupted.' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + The service has the "Interruption" health status. + An issue was determined that affects users being able to access the service. In this case, the issue is significant and can be reproduced consistently. + manual_close: 'YES' + tags: + - tag: scope + value: health + master_item: + key: ms365.services.get + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.service + preprocessing: + - type: JSONPATH + parameters: + - $.services.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: application + - tag: target + value: ms365 + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Microsoft 365 reports", e.g. {$HTTP.TLS.VERIFY:"Microsoft 365 reports"}.' + - macro: '{$MS365.API.TIMEOUT}' + value: 15s + description: 'API response timeout.' + - macro: '{$MS365.APP.ID}' + description: 'Microsoft application ID.' + - macro: '{$MS365.HTTP.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$MS365.PASSWORD}' + type: SECRET_TEXT + description: 'The secret for the registered Microsoft application.' + - macro: '{$MS365.SERVICE.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in the Microsoft cloud service discovery rule.' + - macro: '{$MS365.SERVICE.NAME.NOT.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in the Microsoft cloud service discovery rule.' + - macro: '{$MS365.TENANT.ID}' + description: 'Microsoft tenant ID.' + dashboards: + - uuid: 8c376826b58546b184f03415a5fedd46 + name: 'Microsoft 365' + display_period: '120' + pages: + - name: Apps + widgets: + - type: item + name: 'Report date' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'User count, by app' + 'y': '2' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: STRING + name: ds.0.color.6 + value: FFD54F + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.exchange + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.office365 + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.onedrive + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.sharepoint + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.skype + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.teams + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.yammer + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: ds.0.type.5 + value: '0' + - type: INTEGER + name: ds.0.type.6 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '5' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'User count, by platform' + 'y': '7' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: B4B400 + - type: STRING + name: ds.0.color.1 + value: BAE37D + - type: STRING + name: ds.0.color.2 + value: 0EC9AC + - type: STRING + name: ds.0.color.3 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.mac + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.mobile + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.web + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.windows + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '10' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'User count, by office app' + 'y': '12' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 385CC7 + - type: STRING + name: ds.0.color.1 + value: 0EC9AC + - type: STRING + name: ds.0.color.2 + value: FF465C + - type: STRING + name: ds.0.color.3 + value: 2AB5FF + - type: STRING + name: ds.0.color.4 + value: 524BBC + - type: STRING + name: ds.0.color.5 + value: FFD54F + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.word + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.excel + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.powerpoint + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.outlook + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.teams + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.onenote + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: ds.0.type.5 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '15' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'Weekly active user count, by app' + 'y': '17' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: STRING + name: ds.0.color.6 + value: FFD54F + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.exchange.users.active + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.office365.users.active + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.onedrive.users.active + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.sharepoint.users.active + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.skypeforbusiness.users.active + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.teams.users.active + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.yammer.users.active + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: ds.0.type.5 + value: '0' + - type: INTEGER + name: ds.0.type.6 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '20' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'Weekly inactive user count, by app' + 'y': '22' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: STRING + name: ds.0.color.6 + value: FFD54F + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.exchange.users.inactive + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.office365.users.inactive + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.onedrive.users.inactive + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.sharepoint.users.inactive + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.skypeforbusiness.users.inactive + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.teams.users.inactive + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.yammer.users.inactive + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: ds.0.type.5 + value: '0' + - type: INTEGER + name: ds.0.type.6 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: svggraph + name: 'User count, by app' + x: '12' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: STRING + name: ds.0.color.6 + value: FFD54F + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.exchange + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.office365 + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.onedrive + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.sharepoint + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.skype + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.teams + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.yammer + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: FAADC + - type: svggraph + name: 'User count, by platform' + x: '12' + 'y': '5' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: B4B400 + - type: STRING + name: ds.0.color.1 + value: BAE37D + - type: STRING + name: ds.0.color.2 + value: 0EC9AC + - type: STRING + name: ds.0.color.3 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.mac + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.mobile + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.web + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.windows + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '2' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: ADFEF + - type: svggraph + name: 'User count, by office app' + x: '12' + 'y': '10' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 385CC7 + - type: STRING + name: ds.0.color.1 + value: 0EC9AC + - type: STRING + name: ds.0.color.2 + value: FF465C + - type: STRING + name: ds.0.color.3 + value: 2AB5FF + - type: STRING + name: ds.0.color.4 + value: 524BBC + - type: STRING + name: ds.0.color.5 + value: FFD54F + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.word + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.excel + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.powerpoint + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.outlook + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.teams + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.onenote + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: BCCED + - type: svggraph + name: 'Weekly active user count, by app' + x: '12' + 'y': '15' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: STRING + name: ds.0.color.6 + value: FFD54F + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.exchange.users.active + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.office365.users.active + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.onedrive.users.active + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.sharepoint.users.active + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.skypeforbusiness.users.active + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.teams.users.active + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.yammer.users.active + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: FCADE + - type: svggraph + name: 'Weekly inactive user count, by app' + x: '12' + 'y': '20' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: STRING + name: ds.0.color.6 + value: FFD54F + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.exchange.users.inactive + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.office365.users.inactive + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.onedrive.users.inactive + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.sharepoint.users.inactive + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.skypeforbusiness.users.inactive + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.teams.users.inactive + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.activity.yammer.users.inactive + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: FBFFA + - name: Teams + widgets: + - type: item + name: 'Report date' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'Weekly user activity count' + 'y': '2' + width: '12' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: FFD54F + - type: STRING + name: ds.0.color.2 + value: 2AB5FF + - type: STRING + name: ds.0.color.3 + value: BAE37D + - type: STRING + name: ds.0.color.4 + value: 0EC9AC + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: STRING + name: ds.0.color.6 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.calls + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.meetings.total + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.messages.in_team + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.messages.replies + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.messages.posts + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.meetings.organized + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.meetings.attended + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: ds.0.type.5 + value: '0' + - type: INTEGER + name: ds.0.type.6 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '6' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'Weekly unique users, by device type' + 'y': '8' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: BAE37D + - type: STRING + name: ds.0.color.1 + value: 0EC9AC + - type: STRING + name: ds.0.color.2 + value: FFD54F + - type: STRING + name: ds.0.color.3 + value: B4B400 + - type: STRING + name: ds.0.color.4 + value: 6AC8FF + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: STRING + name: ds.0.color.6 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.web + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.android + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.ios + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.mac + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.chromeos + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.windows + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.linux + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: ds.0.type.5 + value: '0' + - type: INTEGER + name: ds.0.type.6 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '11' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'Weekly unique users, by action' + 'y': '13' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: FFD54F + - type: STRING + name: ds.0.color.2 + value: 0EC9AC + - type: STRING + name: ds.0.color.3 + value: 2AB5FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.calls + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.meetings + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.messages.private + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.messages.in_team + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '16' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'Weekly team activity count' + 'y': '18' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 6AC8FF + - type: STRING + name: ds.0.color.1 + value: 0EC9AC + - type: STRING + name: ds.0.color.2 + value: 2AB5FF + - type: STRING + name: ds.0.color.3 + value: 385CC7 + - type: STRING + name: ds.0.color.4 + value: BAE37D + - type: STRING + name: ds.0.color.5 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.channel_messages + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.mentions + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.messages.posts + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.reactions + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.messages.replies + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.urgent_messages + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: ds.0.type.5 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '21' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'Weekly team activity count' + 'y': '23' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: BAE37D + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: 2AB5FF + - type: STRING + name: ds.0.color.3 + value: 0EC9AC + - type: STRING + name: ds.0.color.4 + value: FF465C + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.active_channels + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.active_external_users + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.active_shared_channels + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.active_users + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.guests + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.meetings_organized + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: ds.0.type.5 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Weekly private messages' + x: '12' + width: '15' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.messages.private + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: svggraph + name: 'Weekly user activity count' + x: '12' + 'y': '2' + width: '60' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: FFD54F + - type: STRING + name: ds.0.color.2 + value: 2AB5FF + - type: STRING + name: ds.0.color.3 + value: BAE37D + - type: STRING + name: ds.0.color.4 + value: 0EC9AC + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: STRING + name: ds.0.color.6 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.calls + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.meetings.total + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.messages.in_team + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.messages.replies + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.messages.posts + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.meetings.organized + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.meetings.attended + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: EAADC + - type: svggraph + name: 'Weekly unique users, by device type' + x: '12' + 'y': '6' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: BAE37D + - type: STRING + name: ds.0.color.1 + value: 0EC9AC + - type: STRING + name: ds.0.color.2 + value: FFD54F + - type: STRING + name: ds.0.color.3 + value: B4B400 + - type: STRING + name: ds.0.color.4 + value: 6AC8FF + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: STRING + name: ds.0.color.6 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.web + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.android + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.ios + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.mac + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.chromeos + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.windows + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.linux + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: FBCAB + - type: svggraph + name: 'Weekly unique users, by action' + x: '12' + 'y': '11' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: FFD54F + - type: STRING + name: ds.0.color.2 + value: 0EC9AC + - type: STRING + name: ds.0.color.3 + value: 2AB5FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.calls + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.meetings + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.messages.private + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.messages.in_team + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '2' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: CBDDE + - type: svggraph + name: 'Weekly team activity count' + x: '12' + 'y': '16' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 6AC8FF + - type: STRING + name: ds.0.color.1 + value: 0EC9AC + - type: STRING + name: ds.0.color.2 + value: 2AB5FF + - type: STRING + name: ds.0.color.3 + value: 385CC7 + - type: STRING + name: ds.0.color.4 + value: BAE37D + - type: STRING + name: ds.0.color.5 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.channel_messages + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.mentions + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.messages.posts + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.reactions + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.messages.replies + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.urgent_messages + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: ADEDE + - type: svggraph + name: 'Weekly team activity count' + x: '12' + 'y': '21' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: BAE37D + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: 2AB5FF + - type: STRING + name: ds.0.color.3 + value: 0EC9AC + - type: STRING + name: ds.0.color.4 + value: FF465C + - type: STRING + name: ds.0.color.5 + value: 524BBC + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.active_channels + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.active_external_users + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.active_shared_channels + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.active_users + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.guests + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.team.meetings_organized + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: DCCAD + - type: item + name: 'Weekly audio duration' + x: '27' + width: '15' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.duration.audio + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '50' + - type: item + name: 'Weekly video duration' + x: '42' + width: '15' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.duration.video + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '50' + - type: item + name: 'Weekly screen share duration' + x: '57' + width: '15' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.duration.screen_share + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '50' + - name: Outlook + widgets: + - type: item + name: 'Report date' + 'y': '3' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'Emails sent/received/read' + 'y': '5' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: STRING + name: ds.0.color.1 + value: FF465C + - type: STRING + name: ds.0.color.2 + value: 2AB5FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.read + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.received + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.sent + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '8' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'Meetings created/interacted' + 'y': '10' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.meetings_created + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.meetings_interacted + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '13' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.report_date.app + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'User count, by app/platform' + 'y': '15' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: FFD54F + - type: STRING + name: ds.0.color.1 + value: B4B400 + - type: STRING + name: ds.0.color.2 + value: FF465C + - type: STRING + name: ds.0.color.3 + value: 0EC9AC + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: STRING + name: ds.0.color.5 + value: BAE37D + - type: STRING + name: ds.0.color.6 + value: FF465C + - type: STRING + name: ds.0.color.7 + value: 2AB5FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.mac + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.mail_for_mac + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.mobile + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.web + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.windows + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.imap4app + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.pop3app + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.smtpapp + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: ds.0.type.5 + value: '0' + - type: INTEGER + name: ds.0.type.6 + value: '0' + - type: INTEGER + name: ds.0.type.7 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '18' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'User count, by activity' + 'y': '20' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: STRING + name: ds.0.color.1 + value: FF465C + - type: STRING + name: ds.0.color.2 + value: 2AB5FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.read + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.received + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.sent + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '23' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'User count, meetings' + 'y': '25' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.meetings_created + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.meetings_interacted + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + x: '12' + width: '24' + height: '1' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.mailbox.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '80' + - type: gauge + name: 'Active mailboxes' + x: '12' + 'y': '1' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.mailbox.active.percentage + - type: INTEGER + name: show.0 + value: '3' + - type: INTEGER + name: show.1 + value: '5' + - type: INTEGER + name: show.2 + value: '2' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: INTEGER + name: units_size + value: '30' + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: INTEGER + name: value_size + value: '30' + - type: svggraph + name: 'Emails sent/received/read' + x: '12' + 'y': '3' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: STRING + name: ds.0.color.1 + value: FF465C + - type: STRING + name: ds.0.color.2 + value: 2AB5FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.read + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.received + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.sent + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: STRING + name: reference + value: DEEEF + - type: svggraph + name: 'Meetings created/interacted' + x: '12' + 'y': '8' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.meetings_created + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.meetings_interacted + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: STRING + name: reference + value: EBAAE + - type: svggraph + name: 'User count, by app/platform' + x: '12' + 'y': '13' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FFD54F + - type: STRING + name: ds.0.color.1 + value: B4B400 + - type: STRING + name: ds.0.color.2 + value: FF465C + - type: STRING + name: ds.0.color.3 + value: 0EC9AC + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: STRING + name: ds.0.color.5 + value: BAE37D + - type: STRING + name: ds.0.color.6 + value: FF465C + - type: STRING + name: ds.0.color.7 + value: 2AB5FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.mac + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.mail_for_mac + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.mobile + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.web + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.windows + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.imap4app + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.pop3app + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.smtpapp + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '3' + - type: STRING + name: reference + value: EFCAF + - type: svggraph + name: 'User count, by activity' + x: '12' + 'y': '18' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: STRING + name: ds.0.color.1 + value: FF465C + - type: STRING + name: ds.0.color.2 + value: 2AB5FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.read + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.received + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.sent + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: STRING + name: reference + value: DFFFC + - type: svggraph + name: 'User count, meetings' + x: '12' + 'y': '23' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.meetings_created + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.meetings_interacted + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: STRING + name: reference + value: EDCBE + - type: item + name: 'Total mailboxes' + x: '24' + 'y': '1' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.mailbox.total + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: item + name: 'Report date' + x: '36' + width: '12' + height: '1' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.storage.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '80' + - type: item + name: 'Total storage used' + x: '36' + 'y': '1' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.storage.used + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - name: OneDrive + widgets: + - type: item + name: 'Report date' + 'y': '3' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'Files shared/synced/viewed or edited' + 'y': '5' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.shared_externally + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.shared_internally + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.synced + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.viewed_or_edited + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '8' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'User count, file activity' + 'y': '10' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.shared_externally + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.shared_internally + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.synced + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.viewed_or_edited + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + x: '12' + width: '24' + height: '1' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.sites.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '80' + - type: item + name: 'Business site count (active)' + x: '12' + 'y': '1' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.sites.active + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: svggraph + name: 'Files shared/synced/viewed or edited' + x: '12' + 'y': '3' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.shared_externally + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.shared_internally + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.synced + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.viewed_or_edited + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '2' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: FDFEC + - type: svggraph + name: 'User count, file activity' + x: '12' + 'y': '8' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.shared_externally + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.shared_internally + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.synced + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.viewed_or_edited + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '2' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: FDEAF + - type: item + name: 'Business site count (total)' + x: '24' + 'y': '1' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.sites.total + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: item + name: 'Report date' + x: '36' + width: '24' + height: '1' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.file_count.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '80' + - type: item + name: 'File count (active)' + x: '36' + 'y': '1' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.file_count.active + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: item + name: 'File count (total)' + x: '48' + 'y': '1' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.file_count.total + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: item + name: 'Report date' + x: '60' + width: '12' + height: '1' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.storage.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '80' + - type: item + name: 'Total storage used' + x: '60' + 'y': '1' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.storage.total + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - name: SharePoint + widgets: + - type: item + name: 'Report date' + width: '10' + height: '1' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.pages_viewed.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '80' + - type: item + name: 'Pages, view count' + 'y': '1' + width: '10' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.pages_viewed.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: item + name: 'Report date' + 'y': '3' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'File count, by action' + 'y': '5' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.shared_externally + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.shared_internally + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.synced + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.viewed_or_edited + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.file_count.active + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + 'y': '8' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '50' + - type: piechart + name: 'User count, by action' + 'y': '10' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.shared_externally + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.shared_internally + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.synced + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.viewed_or_edited + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.visited_page + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: ds.0.type.2 + value: '0' + - type: INTEGER + name: ds.0.type.3 + value: '0' + - type: INTEGER + name: ds.0.type.4 + value: '0' + - type: INTEGER + name: legend + value: '0' + - type: item + name: 'Report date' + x: '10' + width: '10' + height: '1' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.pages_visited.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '80' + - type: item + name: 'Pages, visited' + x: '10' + 'y': '1' + width: '10' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.pages_visited.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: svggraph + name: 'File count, by action' + x: '12' + 'y': '3' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.shared_externally + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.shared_internally + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.synced + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.viewed_or_edited + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.file_count.active + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: FCADE + - type: svggraph + name: 'User count, by action' + x: '12' + 'y': '8' + width: '60' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 2AB5FF + - type: STRING + name: ds.0.color.1 + value: 6AC8FF + - type: STRING + name: ds.0.color.2 + value: BAE37D + - type: STRING + name: ds.0.color.3 + value: FF465C + - type: STRING + name: ds.0.color.4 + value: 385CC7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.shared_externally + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.shared_internally + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.synced + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.viewed_or_edited + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.visited_page + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '3' + - type: INTEGER + name: legend_lines + value: '2' + - type: STRING + name: reference + value: AFEEC + - type: item + name: 'Report date' + x: '20' + width: '20' + height: '1' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.site.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '80' + - type: item + name: 'Business site count (active)' + x: '20' + 'y': '1' + width: '10' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.sites.active + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: item + name: 'Business site count (total)' + x: '30' + 'y': '1' + width: '10' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.sites.total + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: item + name: 'Report date' + x: '40' + width: '20' + height: '1' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.file_count.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '80' + - type: item + name: 'File count (active)' + x: '40' + 'y': '1' + width: '10' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.file_count.active + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: item + name: 'File count (total)' + x: '50' + 'y': '1' + width: '10' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.file_count.total + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - type: item + name: 'Report date' + x: '60' + width: '12' + height: '1' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.storage.report_date + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '80' + - type: item + name: 'Total storage used' + x: '60' + 'y': '1' + width: '12' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: down_color + value: FF465C + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.storage.total + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: STRING + name: updown_color + value: FFD54F + - type: STRING + name: up_color + value: 0EC9AC + - type: INTEGER + name: value_size + value: '70' + - name: Services + widgets: + - type: honeycomb + name: 'Microsoft 365 Services health statuses' + width: '72' + height: '6' + fields: + - type: STRING + name: items.0 + value: '*health status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(Services: )(Microsoft)?(.*)(health status)","\3")}' + - type: STRING + name: reference + value: AAAAF + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: 2AB5FF + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: BAE37D + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: STRING + name: thresholds.4.color + value: 6AC8FF + - type: STRING + name: thresholds.4.threshold + value: '4' + - type: STRING + name: thresholds.5.color + value: 385CC7 + - type: STRING + name: thresholds.5.threshold + value: '5' + - type: STRING + name: thresholds.6.color + value: FF465C + - type: STRING + name: thresholds.6.threshold + value: '6' + - type: STRING + name: thresholds.7.color + value: ED1248 + - type: STRING + name: thresholds.7.threshold + value: '7' + - type: STRING + name: thresholds.8.color + value: B4B400 + - type: STRING + name: thresholds.8.threshold + value: '8' + - type: STRING + name: thresholds.9.color + value: 524BBC + - type: STRING + name: thresholds.9.threshold + value: '9' + - type: STRING + name: thresholds.10.color + value: DC0000 + - type: STRING + name: thresholds.10.threshold + value: '10' + valuemaps: + - uuid: cb431f0185884aabae7d46890926e724 + name: 'Services health status' + mappings: + - value: '0' + newvalue: Operational + - value: '1' + newvalue: Investigating + - value: '2' + newvalue: Restoring + - value: '3' + newvalue: Verifying + - value: '4' + newvalue: Restored + - value: '5' + newvalue: 'Review published' + - value: '6' + newvalue: Degraded + - value: '7' + newvalue: Interruption + - value: '8' + newvalue: 'Extended recovery' + - value: '9' + newvalue: 'False positive' + - value: '10' + newvalue: 'Investigation suspended' + - value: '11' + newvalue: Unknown + graphs: + - uuid: 31bda44b06aa4776b9827c07c084be32 + name: 'Apps: Office, user count' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.outlook + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.word + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.excel + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.powerpoint + - sortorder: '4' + color: FC6EA3 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.onenote + - sortorder: '5' + color: 6C59DC + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.office.user_count.teams + - uuid: 0d20b6626d4e4a99ac7822d2d5bbb0fa + name: 'Apps: Platform, user count' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.windows + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.mac + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.mobile + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.platform.user_count.web + - uuid: ce9d576ef0c04c6a80a00b4095b2ed44 + name: 'Apps: Users, by app' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.office365 + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.exchange + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.onedrive + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.sharepoint + - sortorder: '4' + color: FC6EA3 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.skype + - sortorder: '5' + color: 6C59DC + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.yammer + - sortorder: '6' + color: C7A72D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.apps.users.teams + - uuid: d7ba1bdfe6534c27a0d01cf9a84c7eb6 + name: 'OneDrive: Business sites, active/total' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.sites.total + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.sites.active + - uuid: 88b75a01c7b541eca8480d821508e9db + name: 'OneDrive: File count, active/total' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.file_count.total + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.file_count.active + - uuid: 4d7df5535bf24a3bbe69b823be31bbcf + name: 'OneDrive: Files, activity' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.viewed_or_edited + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.synced + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.shared_internally + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.files.shared_externally + - uuid: 6975a23a719f40f2928468331f004617 + name: 'OneDrive: Users, activity' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.viewed_or_edited + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.synced + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.shared_internally + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.onedrive.users.shared_externally + - uuid: 167557c1299e42d4bf514544ca248bab + name: 'Outlook: Activity, emails sent/receive/read' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.sent + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.received + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.read + - uuid: 62ecec3ead3b4fbda519e34cd2f7e59f + name: 'Outlook: Activity, meetings created/interacted' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.meetings_created + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.activity.meetings_interacted + - uuid: 410245360e6b4b8abc5578a9fea9aed9 + name: 'Outlook: Mailbox, active/total' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.mailbox.total + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.mailbox.active + - uuid: e5495197b747402f840a0a36fc2d3822 + name: 'Outlook: User count, app usage' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.mail_for_mac + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.mac + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.windows + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.mobile + - sortorder: '4' + color: FC6EA3 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.web + - sortorder: '5' + color: 6C59DC + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.pop3app + - sortorder: '6' + color: C7A72D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.imap4app + - sortorder: '7' + color: BA2A5D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.smtpapp + - uuid: 1820edb683844f5ba7aab911314f9148 + name: 'Outlook: User count, emails sent/receive/read' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.sent + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.received + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.read + - uuid: 2bc072171a974632ac16f17c55a6e6db + name: 'Outlook: User count, meetings created/interacted' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.meetings_created + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.outlook.user_count.meetings_interacted + - uuid: 368ccbec6efc4be0acafc376bed02c86 + name: 'SharePoint: File count, active/total' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.file_count.total + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.file_count.active + - uuid: 8b74bc9ef37f4126b5c2e570c674c101 + name: 'SharePoint: Files, activity' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.viewed_or_edited + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.synced + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.shared_internally + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.files.shared_externally + - uuid: d56dec11b20d40adb288f54799d52626 + name: 'SharePoint: Sites, active/total' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.sites.total + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.sites.active + - uuid: e904e8075548406c8eea9a5576817ef1 + name: 'SharePoint: Users, activity' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.viewed_or_edited + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.synced + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.shared_internally + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.shared_externally + - sortorder: '4' + color: FC6EA3 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.sharepoint.user_count.visited_page + - uuid: 2c9b134db13844f59054cc81b2135edc + name: 'Teams: Device usage (guests), by device type' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.guests.web + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.guests.android + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.guests.ios + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.guests.mac + - sortorder: '4' + color: FC6EA3 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.guests.windows + - sortorder: '5' + color: 6C59DC + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.guests.chromeos + - sortorder: '6' + color: C7A72D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.guests.linux + - uuid: e2c59d05b05c4a32aa027cfb6d2c2f67 + name: 'Teams: Device usage (total), by device type' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.web + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.android + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.ios + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.mac + - sortorder: '4' + color: FC6EA3 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.windows + - sortorder: '5' + color: 6C59DC + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.chromeos + - sortorder: '6' + color: C7A72D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.total.linux + - uuid: 072347b5896d477ea875520211e7d71b + name: 'Teams: Device usage (users), by device type' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.users.web + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.users.android + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.users.ios + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.users.mac + - sortorder: '4' + color: FC6EA3 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.users.windows + - sortorder: '5' + color: 6C59DC + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.users.chromeos + - sortorder: '6' + color: C7A72D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.device.users.linux + - uuid: 7535ecb32e0147d686562ba988d3c655 + name: 'Teams: User activity, audio/video/screen share duration' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.duration.audio + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.duration.video + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.activity.user.duration.screen_share + - uuid: fcb3abcbd08b48db85b065ebf90ae9b8 + name: 'Teams: User count (total), by activity' + graph_items: + - color: 199C0D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.messages.in_team + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.messages.private + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.calls + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft 365 reports by HTTP' + key: ms365.teams.user_count.total.meetings diff --git a/Microsoft_Exchange_Server_2016_by_Zabbix_agent.yaml b/Microsoft_Exchange_Server_2016_by_Zabbix_agent.yaml new file mode 100644 index 0000000..ed82925 --- /dev/null +++ b/Microsoft_Exchange_Server_2016_by_Zabbix_agent.yaml @@ -0,0 +1,637 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: cbf70ed444394566bcf213dd63d4d352 + template: 'Microsoft Exchange Server 2016 by Zabbix agent' + name: 'Microsoft Exchange Server 2016 by Zabbix agent' + description: | + The template to monitor Microsoft Exchange Server 2016 by Zabbix that works without any external scripts. + The metrics are collected by Zabbix agent. + Recommended to use it with "OS Windows by Zabbix agent" template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/415007-discussion-thread-for-official-zabbix-template-microsoft-exchange + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: b4978a9a4cff4ce88fbc82683b61eec4 + name: 'Databases total mounted' + key: 'perf_counter_en["\MSExchange Active Manager(_total)\Database Mounted"]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + description: 'Shows the number of active database copies on the server.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: component + value: application + - uuid: 9b59700d8db8472fbde41c85c7a06ffc + name: 'ActiveSync: ping command pending' + key: 'perf_counter_en["\MSExchange ActiveSync\Ping Commands Pending", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of ping commands currently pending in the queue.' + tags: + - tag: component + value: application + - uuid: fa70b4e2d17c44c6945dd2d1c971c34c + name: 'ActiveSync: requests per second' + key: 'perf_counter_en["\MSExchange ActiveSync\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of HTTP requests received from the client via ASP.NET per second. Determines the current Exchange ActiveSync request rate. Used only to determine current user load.' + tags: + - tag: component + value: application + - uuid: 8528015c73134a239d7ac235464788dd + name: 'ActiveSync: sync commands per second' + key: 'perf_counter_en["\MSExchange ActiveSync\Sync Commands/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of sync commands processed per second. Clients use this command to synchronize items within a folder.' + tags: + - tag: component + value: application + - uuid: 456cb7af0b224a59afabae36d24d2cbc + name: 'Autodiscover: requests per second' + key: 'perf_counter_en["\MSExchangeAutodiscover\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of Autodiscover service requests processed each second. Determines current user load.' + tags: + - tag: component + value: application + - uuid: b9a539175cbb4259b064a787a25e9dbe + name: 'Availability Service: availability requests per second' + key: 'perf_counter_en["\MSExchange Availability Service\Availability Requests (sec)", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of requests serviced per second. The request can be only for free/ busy information or include suggestions. One request may contain multiple mailboxes. Determines the rate at which Availability service requests are occurring.' + tags: + - tag: component + value: application + - uuid: 3c2a83dfef35497baf8c38b801854882 + name: 'Outlook Web App: current unique users' + key: 'perf_counter_en["\MSExchange OWA\Current Unique Users", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of unique users currently logged on to Outlook Web App. This value monitors the number of unique active user sessions, so that users are only removed from this counter after they log off or their session times out. Determines current user load.' + tags: + - tag: component + value: application + - uuid: 2c7fd331673e4d84aa09551222469b08 + name: 'Outlook Web App: requests per second' + key: 'perf_counter_en["\MSExchange OWA\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of requests handled by Outlook Web App per second. Determines current user load.' + tags: + - tag: component + value: application + - uuid: 9808449df53148a9a988a69d66944371 + name: 'MSExchangeWS: requests per second' + key: 'perf_counter_en["\MSExchangeWS\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of requests processed each second. Determines current user load.' + tags: + - tag: component + value: application + discovery_rules: + - uuid: f3d6e34eaff844bfab582cb55d679e82 + name: 'Databases discovery' + key: 'perf_instance.discovery["MSExchange Active Manager"]' + delay: 1h + description: 'Discovery of Exchange databases.' + item_prototypes: + - uuid: 0b2d46b766f24947b76b49d8368044a5 + name: 'Active Manager [{#INSTANCE}]: Database copy role' + key: 'perf_counter_en["\MSExchange Active Manager({#INSTANCE})\Database Copy Role Active"]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Database copy active or passive role.' + valuemap: + name: 'Exchange database copy role' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + - uuid: 9ad0743878ed411ab1e76b8e774e91e9 + name: 'Information Store [{#INSTANCE}]: Page faults per second' + key: 'perf_counter_en["\MSExchange Database({#INF.STORE})\Database Page Fault Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Indicates the rate of page faults that can''t be serviced because there are no pages available for allocation from the database cache. If this counter is above 0, it''s an indication that the MSExchange Database\I/O Database Writes (Attached) Average Latency is too high.' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + trigger_prototypes: + - uuid: 07e0dce4546b4d15bfbb34fa2044c319 + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchange Database({#INF.STORE})\Database Page Fault Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.FAULTS.TIME})>{$MS.EXCHANGE.DB.FAULTS.WARN}' + name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: Page faults is too high' + event_name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: Page faults is too high (>{$MS.EXCHANGE.DB.FAULTS.WARN} for {$MS.EXCHANGE.DB.FAULTS.TIME})' + priority: AVERAGE + description: 'Too much page faults stalls for database "{#INSTANCE}". This counter should be 0 on production servers.' + tags: + - tag: scope + value: notice + - uuid: 1af9e0b4abb74e07af1d0d183333f0c4 + name: 'Information Store [{#INSTANCE}]: Log records stalled' + key: 'perf_counter_en["\MSExchange Database({#INF.STORE})\Log Record Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Indicates the number of log records that can''t be added to the log buffers per second because the log buffers are full. The average value should be below 10 per second. Spikes (maximum values) shouldn''t be higher than 100 per second.' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + trigger_prototypes: + - uuid: 688cbee95ef2432abc03c81d39049a44 + expression: 'avg(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchange Database({#INF.STORE})\Log Record Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.LOG.STALLS.TIME})>{$MS.EXCHANGE.LOG.STALLS.WARN}' + name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: Log records stalls is too high' + event_name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: Log records stalls is too high (>{$MS.EXCHANGE.LOG.STALLS.WARN} for {$MS.EXCHANGE.LOG.STALLS.TIME})' + priority: AVERAGE + description: 'Stalled log records too high. The average value should be less than 10 threads waiting.' + tags: + - tag: scope + value: notice + - uuid: 1b53de26c73a49bdb7fe55328db03ddd + name: 'Information Store [{#INSTANCE}]: Log threads waiting' + key: 'perf_counter_en["\MSExchange Database({#INF.STORE})\Log Threads Waiting", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Indicates the number of threads waiting to complete an update of the database by writing their data to the log.' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + - uuid: 1da31e52e5dd4b72bea5811a9bb06a01 + name: 'Database Counters [{#INSTANCE}]: Active database read operations per second' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of database read operations.' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + - uuid: 0bc5750ca13f4f738904e45f9860b76a + name: 'Database Counters [{#INSTANCE}]: Active database read operations latency' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Shows the average length of time per database read operation. Should be less than 20 ms on average.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + trigger_prototypes: + - uuid: 053583bbe81d4ce0961ee365cee5a802 + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.ACTIVE.READ.TIME})>{$MS.EXCHANGE.DB.ACTIVE.READ.WARN}' + name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average read time latency is too high' + event_name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average read time latency is too high (>{$MS.EXCHANGE.DB.ACTIVE.READ.WARN}s for {$MS.EXCHANGE.DB.ACTIVE.READ.TIME})' + priority: WARNING + description: 'Should be less than 20ms on average.' + tags: + - tag: scope + value: performance + - uuid: 3095c843659341fd854fb297a9fdf14a + name: 'Database Counters [{#INSTANCE}]: Passive database read operations latency' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Shows the average length of time per passive database read operation. Should be less than 200ms on average.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + trigger_prototypes: + - uuid: 4a07a86df67b4aa08e538d4463c2d3df + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.PASSIVE.READ.TIME})>{$MS.EXCHANGE.DB.PASSIVE.READ.WARN}' + name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average read time latency is too high' + event_name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average read time latency is too high (>{$MS.EXCHANGE.DB.PASSIVE.READ.WARN}s for {$MS.EXCHANGE.DB.PASSIVE.READ.TIME})' + priority: WARNING + description: 'Should be less than 200ms on average.' + tags: + - tag: scope + value: performance + - uuid: 7456bcbbac114ead9c417bcbeefa0e1c + name: 'Database Counters [{#INSTANCE}]: Active database write operations per second' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of database write operations per second for each attached database instance.' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + - uuid: e45413cc0e46458f9a00132b30c7c354 + name: 'Database Counters [{#INSTANCE}]: Active database write operations latency' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Shows the average length of time per database write operation. Should be less than 50ms on average.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + trigger_prototypes: + - uuid: 87cc1ca8b39541e89eb02a1c094892c0 + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME})>{$MS.EXCHANGE.DB.ACTIVE.WRITE.WARN}' + name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average write time latency is too high for {$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME}' + priority: WARNING + description: 'Should be less than 50ms on average.' + tags: + - tag: scope + value: performance + - uuid: 5b7fc1949b67404584d2809556f3d595 + name: 'Database Counters [{#INSTANCE}]: Passive database write operations latency' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Shows the average length of time, in ms, per passive database write operation. Should be less than the read latency for the same instance, as measured by the MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency counter.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + - uuid: 6128c55bf63a4c48981dfccd077b4635 + name: 'Information Store [{#INSTANCE}]: Active mailboxes count' + key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Active mailboxes"]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Number of active mailboxes in this database.' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + - uuid: 4db79306eb044db899be5e7672651959 + name: 'Information Store [{#INSTANCE}]: Database state' + key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Database State"]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: | + Database state. Possible values: + 0: Database without any copy and dismounted. + 1: Database is a primary database and mounted. + 2: Database is a passive copy and the state is healthy. + valuemap: + name: 'Exchange database state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + - uuid: 6bc9bc6d20df4de89ff03d63f21f6eab + name: 'Information Store [{#INSTANCE}]: RPC requests latency' + key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'RPC Latency average is the average latency of RPC requests per database. Average is calculated over all RPCs since exrpc32 was loaded. Should be less than 50ms at all times, with spikes less than 100ms.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + trigger_prototypes: + - uuid: b9b2f224082a4ec687d121534402170c + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.RPC.TIME})>{$MS.EXCHANGE.RPC.WARN}' + name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: RPC Requests latency is too high' + event_name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: RPC Requests latency is too high (>{$MS.EXCHANGE.RPC.WARN}s for {$MS.EXCHANGE.RPC.TIME})' + priority: WARNING + description: 'Should be less than 50ms at all times, with spikes less than 100ms.' + tags: + - tag: scope + value: performance + - uuid: 5321c367d288406d8d9eac217a444e9c + name: 'Information Store [{#INSTANCE}]: RPC requests per second' + key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC Operations/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of RPC operations per second for each database instance.' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + - uuid: 701d6a4fcfe14f899e0282eb75e08753 + name: 'Information Store [{#INSTANCE}]: RPC requests total' + key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC requests", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Indicates the overall RPC requests currently executing within the information store process. Should be below 70 at all times.' + tags: + - tag: component + value: database + - tag: database + value: '{#INSTANCE}' + trigger_prototypes: + - uuid: 6349d2b6cd13413187b8c77e10fa96a2 + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC requests", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.RPC.COUNT.TIME})>{$MS.EXCHANGE.RPC.COUNT.WARN}' + name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: RPC Requests total count is too high' + event_name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: RPC Requests total count is too high (>{$MS.EXCHANGE.RPC.COUNT.WARN} for {$MS.EXCHANGE.RPC.COUNT.TIME})' + priority: WARNING + description: 'Should be below 70 at all times.' + tags: + - tag: scope + value: performance + trigger_prototypes: + - uuid: 2eb26276a3a24ce4af517ff8740f4566 + expression: 'avg(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME})>avg(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME})' + name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average write time latency is higher than read time latency for {$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME}' + priority: WARNING + description: 'Should be less than the read latency for the same instance, as measured by the MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency counter.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: d3de0d2651bf49bc856c3354437cea70 + name: 'Database Counters [{#INSTANCE}]: Read and write stats' + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + + data.forEach(function(instance) { + if (instance["{#INSTANCE}"] === '_total') { + instance["{#INF.STORE}"] = 'Information Store'; + } + else { + instance["{#INF.STORE}"] = 'Information Store - ' + instance["{#INSTANCE}"]; + } + }) + + return JSON.stringify(data); + - uuid: 635f8c96cf544dcd97e4a58b2e9353de + name: 'LDAP discovery' + key: 'perf_instance_en.discovery["MSExchange ADAccess Domain Controllers"]' + delay: 1h + description: 'Discovery of domain controller.' + item_prototypes: + - uuid: b1c046c5aca04b85bf907f83c05b4142 + name: 'Domain Controller [{#INSTANCE}]: Read time' + key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Read Time", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Time that it takes to send an LDAP read request to the domain controller in question and get a response. Should ideally be below 50 ms; spikes below 100 ms are acceptable.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: ldap + - tag: ldap + value: '{#INSTANCE}' + trigger_prototypes: + - uuid: 799366198fd04746bf265431c00269ab + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Read Time", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.LDAP.TIME})>{$MS.EXCHANGE.LDAP.WARN}' + name: 'MS Exchange 2016: Domain Controller [{#INSTANCE}]: LDAP read time is too high' + event_name: 'MS Exchange 2016: Domain Controller [{#INSTANCE}]: LDAP read time is too high (>{$MS.EXCHANGE.LDAP.WARN}s for {$MS.EXCHANGE.LDAP.TIME})' + priority: AVERAGE + description: 'Should be less than 50ms at all times, with spikes less than 100ms.' + tags: + - tag: scope + value: performance + - uuid: c7326e542e534afd9a1df9a8ec1226e4 + name: 'Domain Controller [{#INSTANCE}]: Search time' + key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Search Time", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Time that it takes to send an LDAP search request and get a response. Should ideally be below 50 ms; spikes below 100 ms are acceptable.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: ldap + - tag: ldap + value: '{#INSTANCE}' + trigger_prototypes: + - uuid: 0db1b4e3f149481e8b04fe8b5eafa508 + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent/perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Search Time", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.LDAP.TIME})>{$MS.EXCHANGE.LDAP.WARN}' + name: 'MS Exchange 2016: Domain Controller [{#INSTANCE}]: LDAP search time is too high' + event_name: 'MS Exchange 2016: Domain Controller [{#INSTANCE}]: LDAP search time is too high (>{$MS.EXCHANGE.LDAP.WARN}s for {$MS.EXCHANGE.LDAP.TIME})' + priority: AVERAGE + description: 'Should be less than 50ms at all times, with spikes less than 100ms.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 68caa8f72b21476f8f18695843c14328 + name: 'Domain Controller [{#INSTANCE}]: Timings' + graph_items: + - color: 199C0D + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Read Time", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Search Time", {$MS.EXCHANGE.PERF.INTERVAL}]' + - uuid: 8a1cb7e22e55406e8e721a2189d7e00d + name: 'Web services discovery' + key: 'perf_instance_en.discovery["Web Service"]' + delay: 1h + description: 'Discovery of Exchange web services.' + item_prototypes: + - uuid: 3c3d1881bb294a31afa09605699a6965 + name: 'Web Service [{#INSTANCE}]: Current connections' + key: 'perf_counter_en["\Web Service({#INSTANCE})\Current Connections", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the current number of connections established to the each Web Service.' + tags: + - tag: component + value: web + - tag: web + value: '{#INSTANCE}' + tags: + - tag: class + value: application + - tag: target + value: ms-exchange + macros: + - macro: '{$MS.EXCHANGE.DB.ACTIVE.READ.TIME}' + value: 5m + description: 'The time during which the active database read operations latency may exceed the threshold.' + - macro: '{$MS.EXCHANGE.DB.ACTIVE.READ.WARN}' + value: '0.02' + description: 'Threshold for active database read operations latency trigger.' + - macro: '{$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME}' + value: 10m + description: 'The time during which the active database write operations latency may exceed the threshold.' + - macro: '{$MS.EXCHANGE.DB.ACTIVE.WRITE.WARN}' + value: '0.05' + description: 'Threshold for active database write operations latency trigger.' + - macro: '{$MS.EXCHANGE.DB.FAULTS.TIME}' + value: 5m + description: 'The time during which the database page faults may exceed the threshold.' + - macro: '{$MS.EXCHANGE.DB.FAULTS.WARN}' + value: '0' + description: 'Threshold for database page faults trigger.' + - macro: '{$MS.EXCHANGE.DB.PASSIVE.READ.TIME}' + value: 5m + description: 'The time during which the passive database read operations latency may exceed the threshold.' + - macro: '{$MS.EXCHANGE.DB.PASSIVE.READ.WARN}' + value: '0.2' + description: 'Threshold for passive database read operations latency trigger.' + - macro: '{$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME}' + value: 10m + description: 'The time during which the passive database write operations latency may exceed the threshold.' + - macro: '{$MS.EXCHANGE.LDAP.TIME}' + value: 5m + description: 'The time during which the LDAP metrics may exceed the threshold.' + - macro: '{$MS.EXCHANGE.LDAP.WARN}' + value: '0.05' + description: 'Threshold for LDAP triggers.' + - macro: '{$MS.EXCHANGE.LOG.STALLS.TIME}' + value: 10m + description: 'The time during which the log records stalled may exceed the threshold.' + - macro: '{$MS.EXCHANGE.LOG.STALLS.WARN}' + value: '100' + description: 'Threshold for log records stalled trigger.' + - macro: '{$MS.EXCHANGE.PERF.INTERVAL}' + value: '60' + description: 'Update interval for perf_counter_en items.' + - macro: '{$MS.EXCHANGE.RPC.COUNT.TIME}' + value: 5m + description: 'The time during which the RPC total requests may exceed the threshold.' + - macro: '{$MS.EXCHANGE.RPC.COUNT.WARN}' + value: '70' + description: 'Threshold for LDAP triggers.' + - macro: '{$MS.EXCHANGE.RPC.TIME}' + value: 10m + description: 'The time during which the RPC requests latency may exceed the threshold.' + - macro: '{$MS.EXCHANGE.RPC.WARN}' + value: '0.05' + description: 'Threshold for RPC requests latency trigger.' + valuemaps: + - uuid: 4a0e19e58ade4e8c878a6b87f4021416 + name: 'Exchange database copy role' + mappings: + - value: '0' + newvalue: Passive + - value: '1' + newvalue: Active + - uuid: 2d131c4a033c4145a6bd66ec4c0c030a + name: 'Exchange database state' + mappings: + - value: '0' + newvalue: Dismounted + - value: '1' + newvalue: Mounted + - value: '2' + newvalue: Healthy + graphs: + - uuid: 47dd0ffded994286a6110082c1693433 + name: 'MS Exchange [Client Access Server]: Request rate' + graph_items: + - color: 199C0D + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange ActiveSync\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange Availability Service\Availability Requests (sec)", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchange OWA\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent' + key: 'perf_counter_en["\MSExchangeWS\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' diff --git a/Microsoft_Exchange_Server_2016_by_Zabbix_agent_active.yaml b/Microsoft_Exchange_Server_2016_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..a8cafca --- /dev/null +++ b/Microsoft_Exchange_Server_2016_by_Zabbix_agent_active.yaml @@ -0,0 +1,670 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: a0e05ca631034676821b7e0e1ce25488 + template: 'Microsoft Exchange Server 2016 by Zabbix agent active' + name: 'Microsoft Exchange Server 2016 by Zabbix agent active' + description: | + The template to monitor Microsoft Exchange Server 2016 by Zabbix that works without any external scripts. + The metrics are collected by Zabbix agent active. + Recommended to use it with "OS Windows by Zabbix agent active" template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/415007-discussion-thread-for-official-zabbix-template-microsoft-exchange + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 5af1c3257c264abda20023eae10b3b86 + name: 'Databases total mounted' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Active Manager(_total)\Database Mounted"]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + description: 'Shows the number of active database copies on the server.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: component + value: application + - uuid: bb9de29f56124a77a6ac1d3f8cbd72e9 + name: 'ActiveSync: ping command pending' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange ActiveSync\Ping Commands Pending", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of ping commands currently pending in the queue.' + tags: + - tag: component + value: application + - uuid: 038e740be37c40339520b4c4b1b0d18b + name: 'ActiveSync: requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange ActiveSync\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of HTTP requests received from the client via ASP.NET per second. Determines the current Exchange ActiveSync request rate. Used only to determine current user load.' + tags: + - tag: component + value: application + - uuid: 953665dbe8f948ff821333a4d50eada6 + name: 'ActiveSync: sync commands per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange ActiveSync\Sync Commands/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of sync commands processed per second. Clients use this command to synchronize items within a folder.' + tags: + - tag: component + value: application + - uuid: c8ed8a7e36c6453183aee1a778a4749a + name: 'Autodiscover: requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchangeAutodiscover\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of Autodiscover service requests processed each second. Determines current user load.' + tags: + - tag: component + value: application + - uuid: 2260d98130814d369ac1c90324caaa26 + name: 'Availability Service: availability requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Availability Service\Availability Requests (sec)", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of requests serviced per second. The request can be only for free/ busy information or include suggestions. One request may contain multiple mailboxes. Determines the rate at which Availability service requests are occurring.' + tags: + - tag: component + value: application + - uuid: b4336fce2d27450b95de4f1bbbf947f3 + name: 'Outlook Web App: current unique users' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange OWA\Current Unique Users", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of unique users currently logged on to Outlook Web App. This value monitors the number of unique active user sessions, so that users are only removed from this counter after they log off or their session times out. Determines current user load.' + tags: + - tag: component + value: application + - uuid: 14344546f3a748fbb8f78e503e92255f + name: 'Outlook Web App: requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange OWA\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of requests handled by Outlook Web App per second. Determines current user load.' + tags: + - tag: component + value: application + - uuid: e8c8e348c01e48ad92ee02060717e097 + name: 'MSExchangeWS: requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchangeWS\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of requests processed each second. Determines current user load.' + tags: + - tag: component + value: application + - uuid: b20b5df8198e4cdc8b584061f6815d5d + name: 'Active agent availability' + type: INTERNAL + key: 'zabbix[host,active_agent,available]' + description: | + Availability of active checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - unknown + 1 - available + 2 - not available + valuemap: + name: zabbix.host.active_agent.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8f04c3d6b3224382abf7472e8a4e38ba + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/zabbix[host,active_agent,available],{$AGENT.TIMEOUT})=2' + name: 'MS Exchange 2016: Active checks are not available' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Active checks are considered unavailable. Agent is not sending heartbeat for prolonged time.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 3b23aa50517a4081b8463f694757cd0c + name: 'Databases discovery' + type: ZABBIX_ACTIVE + key: 'perf_instance.discovery["MSExchange Active Manager"]' + delay: 1h + description: 'Discovery of Exchange databases.' + item_prototypes: + - uuid: 7e0a5f324690432199728f577dbcc91a + name: 'Active Manager [{#INSTANCE}]: Database copy role' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Active Manager({#INSTANCE})\Database Copy Role Active"]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Database copy active or passive role.' + valuemap: + name: 'Exchange database copy role' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: component + value: application + - uuid: 947396e622b24e2090a23607ee7a06a4 + name: 'Information Store [{#INSTANCE}]: Page faults per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Database({#INF.STORE})\Database Page Fault Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Indicates the rate of page faults that can''t be serviced because there are no pages available for allocation from the database cache. If this counter is above 0, it''s an indication that the MSExchange Database\I/O Database Writes (Attached) Average Latency is too high.' + tags: + - tag: component + value: application + trigger_prototypes: + - uuid: c3540ee98c464c3bbcf680e26ce6165a + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database({#INF.STORE})\Database Page Fault Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.FAULTS.TIME})>{$MS.EXCHANGE.DB.FAULTS.WARN}' + name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: Page faults is too high' + event_name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: Page faults is too high (>{$MS.EXCHANGE.DB.FAULTS.WARN} for {$MS.EXCHANGE.DB.FAULTS.TIME})' + priority: AVERAGE + description: 'Too much page faults stalls for database "{#INSTANCE}". This counter should be 0 on production servers.' + tags: + - tag: scope + value: notice + - uuid: 8c1ca3d79ef445668e8a5ba04a278e6f + name: 'Information Store [{#INSTANCE}]: Log records stalled' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Database({#INF.STORE})\Log Record Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Indicates the number of log records that can''t be added to the log buffers per second because the log buffers are full. The average value should be below 10 per second. Spikes (maximum values) shouldn''t be higher than 100 per second.' + tags: + - tag: component + value: application + trigger_prototypes: + - uuid: 1e1f575f25d74f7480f9812b54ad8f39 + expression: 'avg(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database({#INF.STORE})\Log Record Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.LOG.STALLS.TIME})>{$MS.EXCHANGE.LOG.STALLS.WARN}' + name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: Log records stalls is too high' + event_name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: Log records stalls is too high (>{$MS.EXCHANGE.LOG.STALLS.WARN} for {$MS.EXCHANGE.LOG.STALLS.TIME})' + priority: AVERAGE + description: 'Stalled log records too high. The average value should be less than 10 threads waiting.' + tags: + - tag: scope + value: notice + - uuid: 9173dba68e55434aaa324b3e38ba22bb + name: 'Information Store [{#INSTANCE}]: Log threads waiting' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Database({#INF.STORE})\Log Threads Waiting", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Indicates the number of threads waiting to complete an update of the database by writing their data to the log.' + tags: + - tag: component + value: application + - uuid: 9ad96174c29142f6904322d08d76fe8e + name: 'Database Counters [{#INSTANCE}]: Active database read operations per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of database read operations.' + tags: + - tag: component + value: application + - uuid: 0df865f52f304f97aa01a706e455e153 + name: 'Database Counters [{#INSTANCE}]: Active database read operations latency' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Shows the average length of time per database read operation. Should be less than 20 ms on average.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: application + trigger_prototypes: + - uuid: 85be5ba2d3e847a485c968ac47afc495 + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.ACTIVE.READ.TIME})>{$MS.EXCHANGE.DB.ACTIVE.READ.WARN}' + name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average read time latency is too high' + event_name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average read time latency is too high (>{$MS.EXCHANGE.DB.ACTIVE.READ.WARN}s for {$MS.EXCHANGE.DB.ACTIVE.READ.TIME})' + priority: WARNING + description: 'Should be less than 20ms on average.' + tags: + - tag: scope + value: performance + - uuid: 8381c3c3971f4b3380cfe5d663e31416 + name: 'Database Counters [{#INSTANCE}]: Passive database read operations latency' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Shows the average length of time per passive database read operation. Should be less than 200ms on average.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: application + trigger_prototypes: + - uuid: 6a4fe761e26c4b6497106da05dac40fe + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.PASSIVE.READ.TIME})>{$MS.EXCHANGE.DB.PASSIVE.READ.WARN}' + name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average read time latency is too high' + event_name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average read time latency is too high (>{$MS.EXCHANGE.DB.PASSIVE.READ.WARN}s for {$MS.EXCHANGE.DB.PASSIVE.READ.TIME})' + priority: WARNING + description: 'Should be less than 200ms on average.' + tags: + - tag: scope + value: performance + - uuid: defb4f7dfb6f4a97a4928bab82897845 + name: 'Database Counters [{#INSTANCE}]: Active database write operations per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of database write operations per second for each attached database instance.' + tags: + - tag: component + value: application + - uuid: 9c83e27f56f94bea9e635158037a0c8b + name: 'Database Counters [{#INSTANCE}]: Active database write operations latency' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Shows the average length of time per database write operation. Should be less than 50ms on average.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: application + trigger_prototypes: + - uuid: 6feb589776294bf0ab31a55af188f1f6 + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME})>{$MS.EXCHANGE.DB.ACTIVE.WRITE.WARN}' + name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average write time latency is too high for {$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME}' + priority: WARNING + description: 'Should be less than 50ms on average.' + tags: + - tag: scope + value: performance + - uuid: a53596604a4c4a49bd04bfda30064d78 + name: 'Database Counters [{#INSTANCE}]: Passive database write operations latency' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Shows the average length of time, in ms, per passive database write operation. Should be less than the read latency for the same instance, as measured by the MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency counter.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: application + - uuid: 9ef13ef1197a4ba1abba1591ae588fa8 + name: 'Information Store [{#INSTANCE}]: Active mailboxes count' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Active mailboxes"]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Number of active mailboxes in this database.' + tags: + - tag: component + value: application + - uuid: 0e3dbea7e5694cc48c5216d92db67f7f + name: 'Information Store [{#INSTANCE}]: Database state' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Database State"]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: | + Database state. Possible values: + 0: Database without any copy and dismounted. + 1: Database is a primary database and mounted. + 2: Database is a passive copy and the state is healthy. + valuemap: + name: 'Exchange database state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: application + - uuid: 4a08076fdfcb4226a122474f5c2e98d9 + name: 'Information Store [{#INSTANCE}]: RPC requests latency' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'RPC Latency average is the average latency of RPC requests per database. Average is calculated over all RPCs since exrpc32 was loaded. Should be less than 50ms at all times, with spikes less than 100ms.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: application + trigger_prototypes: + - uuid: 42009d7b910743e1803f10b6a918a67b + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.RPC.TIME})>{$MS.EXCHANGE.RPC.WARN}' + name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: RPC Requests latency is too high' + event_name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: RPC Requests latency is too high (>{$MS.EXCHANGE.RPC.WARN}s for {$MS.EXCHANGE.RPC.TIME})' + priority: WARNING + description: 'Should be less than 50ms at all times, with spikes less than 100ms.' + tags: + - tag: scope + value: performance + - uuid: c423048154634eb29f4fe56c306f5b04 + name: 'Information Store [{#INSTANCE}]: RPC requests per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC Operations/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the number of RPC operations per second for each database instance.' + tags: + - tag: component + value: application + - uuid: 0f4970d43155441ab0f860e4e06328e0 + name: 'Information Store [{#INSTANCE}]: RPC requests total' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC requests", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Indicates the overall RPC requests currently executing within the information store process. Should be below 70 at all times.' + tags: + - tag: component + value: application + trigger_prototypes: + - uuid: 127241a9e517424687e56eea393b11db + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC requests", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.RPC.COUNT.TIME})>{$MS.EXCHANGE.RPC.COUNT.WARN}' + name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: RPC Requests total count is too high' + event_name: 'MS Exchange 2016: Information Store [{#INSTANCE}]: RPC Requests total count is too high (>{$MS.EXCHANGE.RPC.COUNT.WARN} for {$MS.EXCHANGE.RPC.COUNT.TIME})' + priority: WARNING + description: 'Should be below 70 at all times.' + tags: + - tag: scope + value: performance + trigger_prototypes: + - uuid: 9c9732c8d3314c12aecd268aa445e8bc + expression: 'avg(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME})>avg(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME})' + name: 'MS Exchange 2016: Database Counters [{#INSTANCE}]: Average write time latency is higher than read time latency for {$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME}' + priority: WARNING + description: 'Should be less than the read latency for the same instance, as measured by the MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency counter.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 3749d38f7b7f478486c1181aeabd19c1 + name: 'Database Counters [{#INSTANCE}]: Read and write stats' + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + + data.forEach(function(instance) { + if (instance["{#INSTANCE}"] === '_total') { + instance["{#INF.STORE}"] = 'Information Store'; + } + else { + instance["{#INF.STORE}"] = 'Information Store - ' + instance["{#INSTANCE}"]; + } + }) + + return JSON.stringify(data); + - uuid: c18f965b9ba6419ea578238ebc8168bb + name: 'LDAP discovery' + type: ZABBIX_ACTIVE + key: 'perf_instance_en.discovery["MSExchange ADAccess Domain Controllers"]' + delay: 1h + description: 'Discovery of domain controller.' + item_prototypes: + - uuid: 577f868ff1e54113b61e8f74a084f611 + name: 'Domain Controller [{#INSTANCE}]: Read time' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Read Time", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Time that it takes to send an LDAP read request to the domain controller in question and get a response. Should ideally be below 50 ms; spikes below 100 ms are acceptable.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: application + trigger_prototypes: + - uuid: 3d49bb3d2bdd45998938e531dbaafd33 + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Read Time", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.LDAP.TIME})>{$MS.EXCHANGE.LDAP.WARN}' + name: 'MS Exchange 2016: Domain Controller [{#INSTANCE}]: LDAP read time is too high' + event_name: 'MS Exchange 2016: Domain Controller [{#INSTANCE}]: LDAP read time is too high (>{$MS.EXCHANGE.LDAP.WARN}s for {$MS.EXCHANGE.LDAP.TIME})' + priority: AVERAGE + description: 'Should be less than 50ms at all times, with spikes less than 100ms.' + tags: + - tag: scope + value: performance + - uuid: 1c94a8c06c5a4d4894060b68fc44a093 + name: 'Domain Controller [{#INSTANCE}]: Search time' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Search Time", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + units: s + description: 'Time that it takes to send an LDAP search request and get a response. Should ideally be below 50 ms; spikes below 100 ms are acceptable.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: application + trigger_prototypes: + - uuid: 8415fc742e154f9a9455ac9c0cdc85fd + expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Search Time", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.LDAP.TIME})>{$MS.EXCHANGE.LDAP.WARN}' + name: 'MS Exchange 2016: Domain Controller [{#INSTANCE}]: LDAP search time is too high' + event_name: 'MS Exchange 2016: Domain Controller [{#INSTANCE}]: LDAP search time is too high (>{$MS.EXCHANGE.LDAP.WARN}s for {$MS.EXCHANGE.LDAP.TIME})' + priority: AVERAGE + description: 'Should be less than 50ms at all times, with spikes less than 100ms.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 004b61b0e602483780f7c944219cf110 + name: 'Domain Controller [{#INSTANCE}]: Timings' + graph_items: + - color: 199C0D + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Read Time", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Search Time", {$MS.EXCHANGE.PERF.INTERVAL}]' + - uuid: 8749f11f547546ac8bf81478c798186f + name: 'Web services discovery' + type: ZABBIX_ACTIVE + key: 'perf_instance_en.discovery["Web Service"]' + delay: 1h + description: 'Discovery of Exchange web services.' + item_prototypes: + - uuid: 91f7649f17bf4d7a9ded8bec70ff09e2 + name: 'Web Service [{#INSTANCE}]: Current connections' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Web Service({#INSTANCE})\Current Connections", {$MS.EXCHANGE.PERF.INTERVAL}]' + delay: '{$MS.EXCHANGE.PERF.INTERVAL}' + value_type: FLOAT + description: 'Shows the current number of connections established to the each Web Service.' + tags: + - tag: component + value: application + tags: + - tag: class + value: application + - tag: target + value: ms-exchange + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 5m + description: 'Timeout after which agent is considered unavailable.' + - macro: '{$MS.EXCHANGE.DB.ACTIVE.READ.TIME}' + value: 5m + description: 'The time during which the active database read operations latency may exceed the threshold.' + - macro: '{$MS.EXCHANGE.DB.ACTIVE.READ.WARN}' + value: '0.02' + description: 'Threshold for active database read operations latency trigger.' + - macro: '{$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME}' + value: 10m + description: 'The time during which the active database write operations latency may exceed the threshold.' + - macro: '{$MS.EXCHANGE.DB.ACTIVE.WRITE.WARN}' + value: '0.05' + description: 'Threshold for active database write operations latency trigger.' + - macro: '{$MS.EXCHANGE.DB.FAULTS.TIME}' + value: 5m + description: 'The time during which the database page faults may exceed the threshold.' + - macro: '{$MS.EXCHANGE.DB.FAULTS.WARN}' + value: '0' + description: 'Threshold for database page faults trigger.' + - macro: '{$MS.EXCHANGE.DB.PASSIVE.READ.TIME}' + value: 5m + description: 'The time during which the passive database read operations latency may exceed the threshold.' + - macro: '{$MS.EXCHANGE.DB.PASSIVE.READ.WARN}' + value: '0.2' + description: 'Threshold for passive database read operations latency trigger.' + - macro: '{$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME}' + value: 10m + description: 'The time during which the passive database write operations latency may exceed the threshold.' + - macro: '{$MS.EXCHANGE.LDAP.TIME}' + value: 5m + description: 'The time during which the LDAP metrics may exceed the threshold.' + - macro: '{$MS.EXCHANGE.LDAP.WARN}' + value: '0.05' + description: 'Threshold for LDAP triggers.' + - macro: '{$MS.EXCHANGE.LOG.STALLS.TIME}' + value: 10m + description: 'The time during which the log records stalled may exceed the threshold.' + - macro: '{$MS.EXCHANGE.LOG.STALLS.WARN}' + value: '100' + description: 'Threshold for log records stalled trigger.' + - macro: '{$MS.EXCHANGE.PERF.INTERVAL}' + value: '60' + description: 'Update interval for perf_counter_en items.' + - macro: '{$MS.EXCHANGE.RPC.COUNT.TIME}' + value: 5m + description: 'The time during which the RPC total requests may exceed the threshold.' + - macro: '{$MS.EXCHANGE.RPC.COUNT.WARN}' + value: '70' + description: 'Threshold for LDAP triggers.' + - macro: '{$MS.EXCHANGE.RPC.TIME}' + value: 10m + description: 'The time during which the RPC requests latency may exceed the threshold.' + - macro: '{$MS.EXCHANGE.RPC.WARN}' + value: '0.05' + description: 'Threshold for RPC requests latency trigger.' + valuemaps: + - uuid: 0797c152a163407aa9490a63f80a8fd1 + name: 'Exchange database copy role' + mappings: + - value: '0' + newvalue: Passive + - value: '1' + newvalue: Active + - uuid: a4fac47b56e4470c9c6d435d7eb06845 + name: 'Exchange database state' + mappings: + - value: '0' + newvalue: Dismounted + - value: '1' + newvalue: Mounted + - value: '2' + newvalue: Healthy + - uuid: 0407f8e83ce94d9b88db8dab241e44c0 + name: zabbix.host.active_agent.available + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: available + - value: '2' + newvalue: 'not available' + graphs: + - uuid: d1e720c28aba4d48a522d509bdd7d324 + name: 'MS Exchange [Client Access Server]: Request rate' + graph_items: + - color: 199C0D + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange ActiveSync\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '1' + color: F63100 + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange Availability Service\Availability Requests (sec)", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '2' + color: 00611C + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchange OWA\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' + - sortorder: '3' + color: F7941D + item: + host: 'Microsoft Exchange Server 2016 by Zabbix agent active' + key: 'perf_counter_en["\MSExchangeWS\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]' diff --git a/Microsoft_SharePoint_by_HTTP.yaml b/Microsoft_SharePoint_by_HTTP.yaml new file mode 100644 index 0000000..cb10de3 --- /dev/null +++ b/Microsoft_SharePoint_by_HTTP.yaml @@ -0,0 +1,758 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 8d5fe5b4ebb64255a2429b34c7dd3681 + template: 'Microsoft SharePoint by HTTP' + name: 'Microsoft SharePoint by HTTP' + description: | + Overview: + Template receives data via HTTP Agent. + Setup: + Create a new host. + Define macros according to your Sharepoint web portal. + It is recommended to fill in the values of the filter macros to avoid getting redundant data. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 71e23c666b84414490589a509b60c488 + name: 'Get directory structure' + type: SCRIPT + key: sharepoint.get_dir + delay: '{$SHAREPOINT.GET_INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + + const js_start = new Date().getTime(); + + var params = JSON.parse(value); + var result = { + status: 0, + data: {} + }; + + var tls = new CTlsConfig(params.tls_verify); + tls.checkURL(params.url); + var req = new HttpRequest(tls.options); + + var out = {}; + var queue = []; + + var node; + var obj_iter_by_name; + var cpath; + + var current_folder; + var child_folders; + var child_files; + var obj_iter_file; + + req.addHeader('Accept: application/json; odata=verbose'); + req.setHttpAuth(HTTPAUTH_NTLM, params.user, params.password); + queue.push({ + patch: params.root, + json: [] + }); + + while (queue.length) { + node = queue.pop(); + obj_iter_by_name = out; + cpath = node.json.slice() + + current_folder = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')"))); + + result.status = req.getStatus(); + if (result.status != 200) { + throw result.status; + } + + cpath.forEach(function (nd) { + obj_iter_by_name = obj_iter_by_name[nd] + }); + + obj_iter_by_name[current_folder.d.Name] = { + meta: { + size: 0, + created: Math.round(new Date(current_folder.d.TimeCreated).getTime() / 1000), + modified: Math.round(new Date(current_folder.d.TimeLastModified).getTime() / 1000) + }, + data: {} + } + + child_folders = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')/Folders"))); + + cpath.push(current_folder.d.Name, "data"); + child_folders.d.results.forEach(function (dir) { + queue.push({ + patch: dir.ServerRelativeUrl, + json: cpath + }); + }); + + child_files = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')/Files"))); + child_files.d.results.forEach(function (file) { + obj_iter_by_name[current_folder.d.Name].data[file.Name] = { + meta: { + size: file.Length, + created: Math.round(new Date(file.TimeCreated).getTime() / 1000), + modified: Math.round(new Date(file.TimeLastModified).getTime() / 1000) + } + }; + + obj_iter_file = out; + cpath.forEach(function (nd) { + obj_iter_file = obj_iter_file[nd]; + if (nd != "data") { + obj_iter_file.meta.size += +file.Length; + } + }); + }); + + } + + result.data = out; + + } catch (error) { + Zabbix.log(3, "Sharepoint fs scan failed: " + params.url + " Error: " + error); + if (!Number.isInteger(error)) + result.status = 520; + } + + result.time = new Date().getTime() - js_start; + return JSON.stringify(result); + description: 'Used to get directory structure information' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"status":520,"data":{},"time":0}' + parameters: + - name: password + value: '{$SHAREPOINT.PASSWORD}' + - name: root + value: '{$SHAREPOINT.ROOT}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Microsoft SharePoint"}' + - name: url + value: '{$SHAREPOINT.URL}' + - name: user + value: '{$SHAREPOINT.USER}' + tags: + - tag: component + value: raw + - uuid: cd47c3d00ce545b0a557e0e68c89d53e + name: 'Get directory structure: Status' + type: DEPENDENT + key: sharepoint.get_dir.status + delay: '0' + description: 'HTTP response (status) code. Indicates whether the HTTP request was successfully completed. Additional information is available in the server log file.' + valuemap: + name: 'HTTP response status code' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: CUSTOM_ERROR + error_handler_params: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: sharepoint.get_dir + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: ed1d66a1410e4af79af462e749ce979b + expression: 'last(/Microsoft SharePoint by HTTP/sharepoint.get_dir.status)<>200' + name: 'MS SharePoint: Error getting directory structure.' + priority: WARNING + description: 'Error getting directory structure. Check the Zabbix server log for more details.' + tags: + - tag: scope + value: availability + - uuid: b2daa471665541168b2a394b9b226d73 + name: 'Get directory structure: Exec time' + type: DEPENDENT + key: sharepoint.get_dir.time + delay: '0' + units: '!ms' + description: 'The time taken to execute the script for obtaining the data structure (in ms). Less is better.' + preprocessing: + - type: JSONPATH + parameters: + - $.time + error_handler: CUSTOM_ERROR + error_handler_params: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: sharepoint.get_dir + tags: + - tag: component + value: performance + triggers: + - uuid: 9e5bcc08d5f040de86afa38f5a653dd7 + expression: 'last(/Microsoft SharePoint by HTTP/sharepoint.get_dir.time)>2000' + name: 'MS SharePoint: Server responds slowly to API request' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 7b59d767712f49b3bbc17947999ca944 + name: 'Health score' + type: HTTP_AGENT + key: sharepoint.health_score + authtype: NTLM + username: '{$SHAREPOINT.USER}' + password: '{$SHAREPOINT.PASSWORD}' + description: 'This item specifies a value between 0 and 10, where 0 represents a low load and a high ability to process requests and 10 represents a high load and that the server is throttling requests to maintain adequate throughput.' + preprocessing: + - type: REGEX + parameters: + - 'X-SharePointHealthScore\b:\s(\d+)' + - \1 + - type: IN_RANGE + parameters: + - '0' + - '10' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + url: '{$SHAREPOINT.URL}' + retrieve_mode: HEADERS + request_method: HEAD + tags: + - tag: component + value: health + triggers: + - uuid: 3a0451e3edda4a73aded57aa254fd813 + expression: 'last(/Microsoft SharePoint by HTTP/sharepoint.health_score)>"{$SHAREPOINT.MAX_HEALTH_SCORE}"' + name: 'MS SharePoint: Bad health score' + priority: AVERAGE + tags: + - tag: scope + value: performance + discovery_rules: + - uuid: 0fe7e8e5480a42b7903cb7ac9bf931cc + name: 'Directory discovery' + type: SCRIPT + key: sharepoint.directory.discovery + delay: '{$SHAREPOINT.LLD_INTERVAL}' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + + var params = JSON.parse(value); + var result = []; + + var tls = new CTlsConfig(params.tls_verify); + tls.checkURL(params.url); + var req = new HttpRequest(tls.options); + + var queue = []; + + var node; + var current_folder; + var child_folders; + var child_files; + + req.addHeader('Accept: application/json; odata=verbose'); + req.setHttpAuth(HTTPAUTH_NTLM, params.user, params.password); + queue.push({ + patch: params.root, + json_query: '$["data"]' + }); + + while (queue.length) { + node = queue.pop(); + + current_folder = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')"))); + + result.status = req.getStatus(); + if (result.status != 200) { + throw result.status; + } + + result.push({ + '{#SHAREPOINT.LLD.NAME}': current_folder.d.Name, + '{#SHAREPOINT.LLD.TYPE}': 'FOLDER', + '{#SHAREPOINT.LLD.FULL_PATH}': node.patch, + '{#SHAREPOINT.LLD.JSON_PATH}': node.json_query + '["' + current_folder.d.Name + '"]', + '{#SHAREPOINT.LLD.SIZE}': 0, + '{#SHAREPOINT.LLD.CREATED}': Math.round(new Date(current_folder.d.TimeCreated).getTime() / 1000), + '{#SHAREPOINT.LLD.MODIFIED}': Math.round(new Date(current_folder.d.TimeLastModified).getTime() / 1000) + }); + + child_folders = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')/Folders"))); + + child_folders.d.results.forEach(function (dir) { + queue.push({ + patch: dir.ServerRelativeUrl, + json_query: node.json_query + '["' + current_folder.d.Name + '"]["data"]' + }); + }); + + child_files = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')/Files"))); + child_files.d.results.forEach(function (file) { + result.push({ + '{#SHAREPOINT.LLD.NAME}': file.Name, + '{#SHAREPOINT.LLD.TYPE}': 'FILE', + '{#SHAREPOINT.LLD.FULL_PATH}': file.ServerRelativeUrl, + '{#SHAREPOINT.LLD.JSON_PATH}': node.json_query + '["' + current_folder.d.Name + '"]' + '["data"]["' + file.Name + '"]', + '{#SHAREPOINT.LLD.SIZE}': file.Length, + '{#SHAREPOINT.LLD.CREATED}': Math.round(new Date(file.TimeCreated).getTime() / 1000), + '{#SHAREPOINT.LLD.MODIFIED}': Math.round(new Date(file.TimeLastModified).getTime() / 1000) + }); + }); + } + + } catch (error) { + Zabbix.log(3, "Sharepoint fs discovery failed: " + params.url + " Error: " + error); + return "Sharepoint fs discovery failed: " + params.url + " Error: " + error; + } + + return JSON.stringify(result); + filter: + evaltype: AND + conditions: + - macro: '{#SHAREPOINT.LLD.FULL_PATH}' + value: '{$SHAREPOINT.LLD.FILTER.FULL_PATH.MATCHES}' + formulaid: A + - macro: '{#SHAREPOINT.LLD.FULL_PATH}' + value: '{$SHAREPOINT.LLD.FILTER.FULL_PATH.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SHAREPOINT.LLD.NAME}' + value: '{$SHAREPOINT.LLD.FILTER.NAME.MATCHES}' + formulaid: C + - macro: '{#SHAREPOINT.LLD.NAME}' + value: '{$SHAREPOINT.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#SHAREPOINT.LLD.TYPE}' + value: '{$SHAREPOINT.LLD.FILTER.TYPE.MATCHES}' + formulaid: E + - macro: '{#SHAREPOINT.LLD.TYPE}' + value: '{$SHAREPOINT.LLD.FILTER.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + item_prototypes: + - uuid: 337493ed37424be98abd4c0550279a0b + name: 'Created ({#SHAREPOINT.LLD.FULL_PATH})' + type: DEPENDENT + key: 'sharepoint.created["{#SHAREPOINT.LLD.FULL_PATH}"]' + delay: '0' + units: unixtime + description: | + Date of creation: + {#SHAREPOINT.LLD.FULL_PATH} + preprocessing: + - type: JSONPATH + parameters: + - '{{#SHAREPOINT.LLD.JSON_PATH}.regsub("(.*)", \1)}.meta.created' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: sharepoint.get_dir + tags: + - tag: component + value: storage + - tag: full-path + value: '{#SHAREPOINT.LLD.FULL_PATH}' + - uuid: b230bfba317e4d2eb2c6a816bd357d71 + name: 'Modified ({#SHAREPOINT.LLD.FULL_PATH})' + type: DEPENDENT + key: 'sharepoint.modified["{#SHAREPOINT.LLD.FULL_PATH}"]' + delay: '0' + units: unixtime + description: | + Date of change: + {#SHAREPOINT.LLD.FULL_PATH} + preprocessing: + - type: JSONPATH + parameters: + - '{{#SHAREPOINT.LLD.JSON_PATH}.regsub("(.*)", \1)}.meta.modified' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: sharepoint.get_dir + tags: + - tag: component + value: storage + - tag: full-path + value: '{#SHAREPOINT.LLD.FULL_PATH}' + trigger_prototypes: + - uuid: d1683e2fcdda45969ff451e43ae696c2 + expression: 'last(/Microsoft SharePoint by HTTP/sharepoint.modified["{#SHAREPOINT.LLD.FULL_PATH}"],#1)<>last(/Microsoft SharePoint by HTTP/sharepoint.modified["{#SHAREPOINT.LLD.FULL_PATH}"],#2)' + name: 'MS SharePoint: Sharepoint object is changed' + opdata: '{#SHAREPOINT.LLD.FULL_PATH}' + priority: INFO + description: 'Updated date of modification of folder / file' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 68c3d2d2b33a494ab85ca6b883398fbb + name: 'Size ({#SHAREPOINT.LLD.FULL_PATH})' + type: DEPENDENT + key: 'sharepoint.size["{#SHAREPOINT.LLD.FULL_PATH}"]' + delay: '0' + units: B + description: | + Size of: + {#SHAREPOINT.LLD.FULL_PATH} + preprocessing: + - type: JSONPATH + parameters: + - '{{#SHAREPOINT.LLD.JSON_PATH}.regsub("(.*)", \1)}.meta.size' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 24h + master_item: + key: sharepoint.get_dir + tags: + - tag: component + value: storage + - tag: full-path + value: '{#SHAREPOINT.LLD.FULL_PATH}' + parameters: + - name: password + value: '{$SHAREPOINT.PASSWORD}' + - name: root + value: '{$SHAREPOINT.ROOT}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Microsoft SharePoint"}' + - name: url + value: '{$SHAREPOINT.URL}' + - name: user + value: '{$SHAREPOINT.USER}' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: software + - tag: target + value: microsoft + - tag: target + value: sharepoint + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Microsoft SharePoint", e.g. {$HTTP.TLS.VERIFY:"Microsoft SharePoint"}.' + - macro: '{$SHAREPOINT.GET_INTERVAL}' + value: 1m + - macro: '{$SHAREPOINT.LLD.FILTER.FULL_PATH.MATCHES}' + value: ^/ + description: 'Filter of discoverable dictionaries by full path.' + - macro: '{$SHAREPOINT.LLD.FILTER.FULL_PATH.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered dictionaries by full path.' + - macro: '{$SHAREPOINT.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable dictionaries by name.' + - macro: '{$SHAREPOINT.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered dictionaries by name.' + - macro: '{$SHAREPOINT.LLD.FILTER.TYPE.MATCHES}' + value: FOLDER + description: 'Filter of discoverable types.' + - macro: '{$SHAREPOINT.LLD.FILTER.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered types.' + - macro: '{$SHAREPOINT.LLD_INTERVAL}' + value: 3h + - macro: '{$SHAREPOINT.MAX_HEALTH_SCORE}' + value: '5' + description: | + Must be in the range from 0 to 10 + in details: https://docs.microsoft.com/en-us/openspecs/sharepoint_protocols/ms-wsshp/c60ddeb6-4113-4a73-9e97-26b5c3907d33 + - macro: '{$SHAREPOINT.PASSWORD}' + type: SECRET_TEXT + - macro: '{$SHAREPOINT.ROOT}' + value: '/Shared Documents' + - macro: '{$SHAREPOINT.URL}' + description: 'Portal page URL. For example http://sharepoint.companyname.local/' + - macro: '{$SHAREPOINT.USER}' + dashboards: + - uuid: 3f81ca5cc29a43b28e1c1d02c131cbd5 + name: 'Sharepoint: Overview' + pages: + - name: General + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft SharePoint by HTTP' + key: sharepoint.get_dir.status + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: source_type + value: '1' + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft SharePoint by HTTP' + key: sharepoint.get_dir.time + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Microsoft SharePoint by HTTP' + key: sharepoint.health_score + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '1' + valuemaps: + - uuid: 70add725d6a84f6f9ed0917107dfffc9 + name: 'HTTP response status code' + mappings: + - value: '100' + newvalue: Continue + - value: '101' + newvalue: 'Switching Protocols' + - value: '102' + newvalue: Processing + - value: '200' + newvalue: OK + - value: '201' + newvalue: Created + - value: '202' + newvalue: Accepted + - value: '203' + newvalue: 'Non-Authoritative Information' + - value: '204' + newvalue: 'No Content' + - value: '205' + newvalue: 'Reset Content' + - value: '206' + newvalue: 'Partial Content' + - value: '207' + newvalue: Multi-Status + - value: '208' + newvalue: 'Already Reported' + - value: '226' + newvalue: 'IM Used' + - value: '300' + newvalue: 'Multiple Choices' + - value: '301' + newvalue: 'Moved Permanently' + - value: '302' + newvalue: Found + - value: '303' + newvalue: 'See Other' + - value: '304' + newvalue: 'Not Modified' + - value: '305' + newvalue: 'Use Proxy' + - value: '306' + newvalue: 'Switch Proxy' + - value: '307' + newvalue: 'Temporary Redirect' + - value: '308' + newvalue: 'Permanent Redirect/Resume Incomplete' + - value: '400' + newvalue: 'Bad Request' + - value: '401' + newvalue: Unauthorized + - value: '402' + newvalue: 'Payment Required' + - value: '403' + newvalue: Forbidden + - value: '404' + newvalue: 'Not Found' + - value: '405' + newvalue: 'Method Not Allowed' + - value: '406' + newvalue: 'Not Acceptable' + - value: '407' + newvalue: 'Proxy Authentication Required' + - value: '408' + newvalue: 'Request Timeout' + - value: '409' + newvalue: Conflict + - value: '410' + newvalue: Gone + - value: '411' + newvalue: 'Length Required' + - value: '412' + newvalue: 'Precondition Failed' + - value: '413' + newvalue: 'Payload Too Large' + - value: '414' + newvalue: 'Request-URI Too Long' + - value: '415' + newvalue: 'Unsupported Media Type' + - value: '416' + newvalue: 'Requested Range Not Satisfiable' + - value: '417' + newvalue: 'Expectation Failed' + - value: '418' + newvalue: 'I''m a Teapot' + - value: '419' + newvalue: 'Authentication Timeout' + - value: '420' + newvalue: 'Method Failure/Enhance Your Calm' + - value: '421' + newvalue: 'Misdirected Request' + - value: '422' + newvalue: 'Unprocessable Entity' + - value: '423' + newvalue: Locked + - value: '424' + newvalue: 'Failed Dependency' + - value: '426' + newvalue: 'Upgrade Required' + - value: '428' + newvalue: 'Precondition Required' + - value: '429' + newvalue: 'Too Many Requests' + - value: '431' + newvalue: 'Request Header Fields Too Large' + - value: '440' + newvalue: 'Login Timeout' + - value: '444' + newvalue: 'No Response' + - value: '449' + newvalue: 'Retry With' + - value: '450' + newvalue: 'Blocked by Windows Parental Controls' + - value: '451' + newvalue: 'Unavailable for Legal Reasons/Redirect' + - value: '494' + newvalue: 'Request Header Too Large' + - value: '495' + newvalue: 'Cert Error' + - value: '496' + newvalue: 'No Cert' + - value: '497' + newvalue: 'HTTP to HTTPS' + - value: '498' + newvalue: 'Token Expired/Invalid' + - value: '499' + newvalue: 'Client Closed Request/Token Required' + - value: '500' + newvalue: 'Internal Server Error' + - value: '501' + newvalue: 'Not Implemented' + - value: '502' + newvalue: 'Bad Gateway' + - value: '503' + newvalue: 'Service Unavailable' + - value: '504' + newvalue: 'Gateway Timeout' + - value: '505' + newvalue: 'HTTP Version Not Supported' + - value: '506' + newvalue: 'Variant Also Negotiates' + - value: '507' + newvalue: 'Insufficient Storage' + - value: '508' + newvalue: 'Loop Detected' + - value: '509' + newvalue: 'Bandwidth Limit Exceeded' + - value: '510' + newvalue: 'Not Extended' + - value: '511' + newvalue: 'Network Authentication Required' + - value: '520' + newvalue: 'Unknown Error' + - value: '598' + newvalue: 'Network Read Timeout Error' + - value: '599' + newvalue: 'Network Connect Timeout Error' diff --git a/MikroTik_CCR1009-7G-1C-1SPC_by_SNMP.yaml b/MikroTik_CCR1009-7G-1C-1SPC_by_SNMP.yaml new file mode 100644 index 0000000..10cce46 --- /dev/null +++ b/MikroTik_CCR1009-7G-1C-1SPC_by_SNMP.yaml @@ -0,0 +1,2649 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: d596d6d231bf49c08890aa3ff135ecc6 + template: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + name: 'MikroTik CCR1009-7G-1C-1S+PC by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR1009-7G-1C-1S+PC. + + 7x Gigabit Ethernet, 1x Combo port (SFP or Gigabit Ethernet), 1xSFP+ cage, 9 + cores x 1GHz CPU, 2GB RAM, LCD panel, passive cooling desktop enclosure, SmartCard + slot, RouterOS L6, PSU + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 3614c3929ad5439f9829fd07e83d2d04 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: feca40f53ed54c84afbb83d2650bbab6 + expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 7d018eef194b4734a67537b410d083d1 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: bca3c4bf4f89480e9c6ccfaaed0039bf + expression: 'min(/MikroTik CCR1009-7G-1C-1SPC by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1009-7G-1C-1SPC by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 55b40d51d6694cf5b2da626587afe20e + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b78ca1d148624deb95177f56eb738338 + expression: 'avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR1009-7G-1C-1SPC by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1009-7G-1C-1SPC by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f553b00ae11b448cb29889e1efc171f0 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: a3790b7f9524491ea12c8fae01ec0121 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: f5aa15bcdd8a41449014241122f42ed5 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 45de6d3b762042f1beba38b42a5ce271 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: fe052ca02fe84ec99dfe01443be4ddf0 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 42f88903cca745a8a54fed6355d72a86 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4367659d4f49400aa0a4674c74ad00b8 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 79b791b5ce1a4e5e8f68b561aeaac838 + expression: 'last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3d375341d2a140679973c46fe7281dd5 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: b1233463a69346b68d538f1c43aa467d + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a981ac3d5e7843049eb581ab284edd04 + expression: 'last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: da2967c30d774681af4b7007bfbd01c5 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 8d35083324f245fda442d6c2183a2007 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a72a6424b8a24277a952d0d2e3974ad3 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 203415c1da0d4e36b1e52904c8f77ad7 + expression: 'last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.name,#1)<>last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.name,#2) and length(last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 04b76355c37041569f60b8d36d279f31 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 79d95aec65934350b59a52e4af4b0fd7 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f9d30c789f16452d89ee417a2aee11f1 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: f7e4983c483944869d44fe5ea4289786 + expression: 'last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.name,#1)<>last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.name,#2) and length(last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: f40d0ccfccd748128775c7bb3f4d9177 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 5546cedfd50648d2a893b6ea59fd7453 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 5a78d97bd5f14a6b97873a3abe41db20 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: dc5f8ec0557c4e9980f2224e150e89e7 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 6a571f6691ec459bbc63e1a8dece1c04 + expression: 'min(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 7bbae2f760b2437a92e27abc5f0c4c7a + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c48e5ab4112d46898f219f4e9d2e4bae + expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: b5d7f793a40449af9342a0751d606c04 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 39223b273e314bf88eccfa23d2bdf520 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 1586816e4cfe4060b9c2d4c305439e4d + expression: 'min(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 473d7e39becc4c56bef6687d3e197dd8 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f3b3f73ab8ad4138b4acb0f3ff7aa732 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: f52a2b2e6f6045119473176e6680fb67 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 7662e3eded674ca996c98d5af253d767 + expression: 'avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ad69a0bc0507456787ef21628985e22f + expression: 'avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d66e0fa34fbf4fc49ac5ebfed3f6dbb0 + expression: 'avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: bea5c8de3a354405a60f417e7c3f9852 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: b2ac80947a314b8590500aed1ba15b34 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: d9e2f17aa26d47239ba7ee40d5b39759 + expression: 'avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f6bcaf561a23406e84a22549aed2485d + expression: 'avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fcf0566a31b9400c9790638caad03e34 + expression: 'avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1009-7G-1C-1SPC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: d7d28fbb900742f58ba741a7b2810656 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 89139aaa90244af89be5b13e31e568db + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 88449b36f96740349cd1e08127b7b39c + expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5f60c2de483e4aae8fbedc50798f3bb9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: cdab150de72d4e8bb2af4e412be6de27 + expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: df09bd33847c4cf9931b68c49fa0cc2e + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5eb2071556a749b382e8d6668fc7c699 + expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 10459f3a756e48f991bbddf9e466f5bb + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9e119f5f5ae74caeb58e9736f5e7e8b1 + expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 38deeca2121f4698834d9f8c984be4bf + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2f9915f91c984f56af4f9505c52aea9a + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 0bfd56d26ed04702904b7846f9d27d89 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e9b16dbe554948ffac6a124c2545e8ed + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ec6db43c1009423db17a9db20c193801 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f6b5c40031a9451d93e0c1a53c60d90e + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4fe579127b3249b08c210c8b3f767f7a + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8bb2e43eaeae433381360f436151ca96 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 2ae0d22024c74c80ba6be1549fa4f17e + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9e85e8cd51f0489d8aaefdc31ccbffd4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2844bdd0d5094a38a88f756e1fed71ad + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 16791055befb41f3b12dabf4aa0c6540 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f282823a66354c1aa88b2338efb376f0 + expression: 'last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: afd7c5604cbc4142903dcc6dce8d5653 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 088e163cea204bdf81c29b7dd9aa6cce + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ff3b483497b84ff081d5ab28104e4579 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 33618d8ffb5c4d07a2b290e4c75073c9 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 17633027e7b84b1bbbeae76d53167713 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5c532fd7877a413eaa528137b67d6857 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 524fc8bdd17e4eb99184829300e5c056 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 534bf0300941479d9e468d418014d098 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f1d0b7bbd5824ab7959be1230a4c0beb + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7310ec80c5ce4bd9a8d193ca10ffc636 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 71d2a42612124a3eaa61a3baee1d4691 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0ec14ed9e07441bc94331081b1eefea7 + expression: | + change(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 6446f31cc81540c4967afe496edcc01b + expression: | + (avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 9a38ec2a71ac47e3afe4c7b65ee22b9f + expression: | + min(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: f8bbfd7785b54c6c8d48bb23340748c9 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d8ff7af06d6d4fe39d7ab93eb803978a + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 30dd1b502cac45538f16b4d985966d55 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 565b745c23864f1797a2cb3a11eedf7f + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 8cfa6b214639494fa8db1cb673f45e1d + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 93eaacd1543d440c93faa4b7c4fcd02d + expression: | + last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 70397fb0b0754a42a9c97c77c2037d2a + expression: | + last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1009-7G-1C-1SPC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: bff3cf781de1430d81a20a71a055e35d + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr1009-7g-1c-1spluspc + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 7856119c51f14262a0faebfb97bcc7be + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 2c87030228374ab0a2f1051f5fdd1c48 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 20bb48090ee04eadb771f56365193646 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: e7be0480e0904cc6a68cc027961d36f3 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 1cab243abc4747c3ae5bc1e432c8e2f2 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 7cb3423e736d435b87a21687c09debf0 + expression: '(last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR1009-7G-1C-1SPC by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR1009-7G-1C-1SPC by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 852cd213b59640f09cd62303fa4c0d9d + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-1SPC by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR1009-7G-1C-1S_by_SNMP.yaml b/MikroTik_CCR1009-7G-1C-1S_by_SNMP.yaml new file mode 100644 index 0000000..525ef7e --- /dev/null +++ b/MikroTik_CCR1009-7G-1C-1S_by_SNMP.yaml @@ -0,0 +1,2649 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: a809695fbc784b75adcd4833c86bca8d + template: 'MikroTik CCR1009-7G-1C-1S by SNMP' + name: 'MikroTik CCR1009-7G-1C-1S+ by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR1009-7G-1C-1S+. + + 1U rackmount, 7x Gigabit Ethernet, 1x Combo port (SFP or Gigabit Ethernet), + 1xSFP+ cage, 9 cores x 1.2GHz CPU, 2GB RAM, LCD panel, Dual Power supplies, + SmartCard slot, RouterOS L6 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 41881ff47c664642a6e9e9776eb17295 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5021ba3d848e4c0d80c9644ab70b313b + expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 17ef5c841e254cf399f05b4a1ebfbddd + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b4c65c535f9841d98da1d32a9aaed7b8 + expression: 'min(/MikroTik CCR1009-7G-1C-1S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1009-7G-1C-1S by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b85868ac7f9646f9b8a672ca0a047dd9 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 493e740c3b3a48c3a308492d67ea11f8 + expression: 'avg(/MikroTik CCR1009-7G-1C-1S by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR1009-7G-1C-1S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1009-7G-1C-1S by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 026dd9264a97421f91194ddc2cea5d6c + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 0609a92c671e4d23a17cda1c2f61999d + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: ad29673a93724660bbf7f34cc8b9b103 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 2c510a601eb34626bdcc105dc6e88083 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9499128c1774463bab250708d911a318 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 0bba1b52c87d47119974e30e373423c6 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: cdf7d11d3d47482ca5dad14596256025 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 7469aef39ea84a729b87d06d3dd0e9af + expression: 'last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ad2df2ad5b4d4bac8da4a24e2c082ad1 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: d55015e95d2e4eebb72168b5311f7512 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a30f1485711d4a649503638fd3a7d702 + expression: 'last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 87ed039a5c7d4d5f8e6459ad8f5bfa0f + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 0fc01029ea6c491690c76be5b4a1a10f + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8a59a79c33ce484888308a171b5dd507 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: cada2ef5e9b14392885a05f9d50186d8 + expression: 'last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.name,#1)<>last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.name,#2) and length(last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: bd0d3629dc4445968d42642640cee4ef + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 66afc3c4f48e4e008c323c46afd38b21 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6004aeb9600c42b5a74155f06cdf8af0 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 8574af8f375a4443bbf030ebf8d904b5 + expression: 'last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.name,#1)<>last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.name,#2) and length(last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 8b1edf5ca04f4a409ac64670e9cc47d5 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: cef294e9c4874526a093935ac3f093b6 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 3b3a0def1cf740f496bbd345de5ed605 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: d7dadc80881a4d3c9be8f1b660232c03 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 18ae9503588a4d398f387ab0d9015e26 + expression: 'min(/MikroTik CCR1009-7G-1C-1S by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: d2a7924b19e14fb5a0adea4664cddb52 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b19e8ce655fb48e389a384a78826d5d6 + expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 3d3038d06ddb4fc282940f4a76e4ec85 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 58dbd69b7c9446169824fd5ef009cb89 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 2f1676c21f7044a289a8fd3077f9c95f + expression: 'min(/MikroTik CCR1009-7G-1C-1S by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 5154454506aa483b8683638345709c0f + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 12abe276614d445d9e958122c5608f9c + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: d1d55d21b8ca40d88221086d66b919e7 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 306d44e9256041089e0499678d0a9b6b + expression: 'avg(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3ef08416c6e649469b036b730f756a35 + expression: 'avg(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: db4a2f3baf9c44058e81df8924c51714 + expression: 'avg(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 28fc52f85b454d24bf7e99f971f0bac4 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 6d1b24e94e8840c884c1cac3e8842eea + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 3de221d9357541e68cb0e949f58b0f3c + expression: 'avg(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 21158d7b18b64861b373be6718006753 + expression: 'avg(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c1c9783678e846ec88d1b68486abd5a0 + expression: 'avg(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1009-7G-1C-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 873a002d903f440b8861dfae848d9bc9 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 9cd95e5678be442b8e7377f513c97888 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 86e76d6d249a4f339ca2841d9b433204 + expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bb6f2eb38a2c4aee968332eefcca5f7a + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4b5ad89e3ecf4d38a8bdb75b10028ba2 + expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 59124b030d4f498094eb01952c42b1da + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 404195780f234277874f9c1d88ce286a + expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 79f14b61c0044e7a92745288c7cf0159 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1e58c3aaa1a9469bb170fc50b75e1686 + expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 7cbf0b34c2154834b34f25ef18c70748 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 805d0b67d5e14d1abf2e1d3426c98691 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: ab6c29dc1dc6416a95480dd0114283e4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 06452635ff154445b04377dd42ea3f0d + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ee7e17722ffa4a71ba337b9cb2b8d05e + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 06295e345bb948d196a22baa485ecedd + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7d9df48a9bd74cbc8be35a78dded0701 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 43f128e426044f5b82419ad75ca6e17c + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 4f7a3606547d46ad86820784f2c59d64 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a3d138d7663b43ddbf11b71377f33e19 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0939fc0eddef42698e6bb505159c5a4e + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6aa454cc8cac42b79045c71393b88130 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: cb698e80cd15409bad16d476fc637a61 + expression: 'last(/MikroTik CCR1009-7G-1C-1S by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f4df6cb6afce4d0298e1f97f8d0a7ad5 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 083ce77f9fcf4e4e8cd32ba1fcb97c37 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0e6b356f0adf473bbaf9dd06c5841a4f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2c09bbd51b8e4831918ae3af18d3afff + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9f02418a4efd4b8984b5a8077f66a90a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2dbfd918f1e84062a20551658c7c334a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 18048b87397d48c5bd49bed17255cff4 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 844a0876ea2f435dbf9f0642659102b2 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6665aecef4f844b68f71ef27fd5011dc + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 013ab2e8443a4380b29960f1eb748ff1 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ff6673977cc44e7f9aa883baaf9186cc + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 597cab58269142b2bcf893e72baa9a0f + expression: | + change(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: ce9c951bfca14de29b0d0379c3da3b38 + expression: | + (avg(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 25d69f21627e49aab9fde89e3c1f8078 + expression: | + min(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: e717bd84cf5f4d02b80537b10483af81 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 11edf7c91daf4377ae12c38f16066d3a + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 43f8b0a75131483cb6dd5e800fb400b4 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 9fc01e7f1027439cbf1d0e35e0c7d353 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 58593e0ecf5c42f79340a7da5f1c1e86 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: e6500e2d99fa46dea445d9cc469df81e + expression: | + last(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 33a9e94bff174f31978be450df1f3c40 + expression: | + last(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1009-7G-1C-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: ec4206d099ad41b79c2c65f1c684a8ae + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr1009-7g-1c-1splus + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: aa1e1324c9624662a1f7ebc43f285c08 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 3a94c6ec55bb4acea2aff228712bc4f2 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 0a80c83f5dcc47b095641aa5a0ed3fcf + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: e785477c09fb4857b2b6ab0065eb30bb + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 845e465060de4e619f5d2fc841730211 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 354a68e77ee043a684ab8be18628ffca + expression: '(last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR1009-7G-1C-1S by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR1009-7G-1C-1S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 5ba0ddfa9e4444bca1221b9ba2f833ce + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-1S by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR1009-7G-1C-PC_by_SNMP.yaml b/MikroTik_CCR1009-7G-1C-PC_by_SNMP.yaml new file mode 100644 index 0000000..09bd643 --- /dev/null +++ b/MikroTik_CCR1009-7G-1C-PC_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 012e7043ff9849e197c42bf41cdf4d9a + template: 'MikroTik CCR1009-7G-1C-PC by SNMP' + name: 'MikroTik CCR1009-7G-1C-PC by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR1009-7G-1C-PC. + + 7x Gigabit Ethernet, 1x Combo port (SFP or Gigabit Ethernet), 9 cores x 1GHz + CPU, 1GB RAM, passive cooling case, RouterOS L6 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 70022c25c1ed4af49c878af7f2c5b73c + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fe75c4f4867942638e3d39face2aea7f + expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: f22e586a94424cb18483170ffa9f8b33 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ebb9113e215a4ab999b5faf043c3cdd3 + expression: 'min(/MikroTik CCR1009-7G-1C-PC by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1009-7G-1C-PC by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cf38efbab9c84551bb15f0544fb57838 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ac9ee5f5347945eaa12f8551ca54ec9b + expression: 'avg(/MikroTik CCR1009-7G-1C-PC by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR1009-7G-1C-PC by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1009-7G-1C-PC by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a5e69b0ccb2a498ba287245bf8914985 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 8450323925164aa8a98411b526de8178 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 7b02fde229c24c99a5ce8f9073717855 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 4f5b003c74924567972b75b3c240c16c + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3ea40037cf5048cbbbd791ebf754c473 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 4d011e0751664b31b216329a1963afc2 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 701b0e5e1b0d4f6199836c12bbeb23fb + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: de61b57b4fd54166a207bc040aa482a4 + expression: 'last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3172eba914574fd894cd4ab3c1295ed7 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: c5ade5b11ba84948ba84c0f975c6cbbe + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 1776f8b97fba4feb962b0a47e4780076 + expression: 'last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 466b42bafcaf4a9a891a1d554cfd688c + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: bb4e80a9dfaf4165abac4fa360e77bf3 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 651753ff590d41a7b7478ca98ec9b0d9 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 796b3caf5996404c93c8266fe7c5aa89 + expression: 'last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.name,#1)<>last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.name,#2) and length(last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 8fd10918d51640619279d5874e06e20b + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 744a4d413ff74ffea13e0d6a0813eeee + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6f1cabbfe9b84535b77ba2d7b32706fc + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 0b8bd128fed047c591b839f3f46412dd + expression: 'last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.name,#1)<>last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.name,#2) and length(last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 263db67af47d40bc9d63639383284fff + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: aef1126fc6354f5083ce2b35d03aaa3c + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: f3f71753cbe14516929027f5f7c39380 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: bde1da2443a3415296281c5259bc0b10 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 2dec63fe94b943549c8351fe1e737975 + expression: 'min(/MikroTik CCR1009-7G-1C-PC by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 22fd5ba91f1d4297b07e4be7f420735a + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a6a88593c32342deb0b72e998872a3c9 + expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: e6521ab9c51647ccaac14af8d146eb7f + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 97a47249871c4977bb68762cbc0c7b7d + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: e25580100dde402eaf640b6653223a82 + expression: 'min(/MikroTik CCR1009-7G-1C-PC by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: d8eb7cb6b67348c0911756a89bfffe99 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: c53b0d6476944defadfb0746ccae7ae6 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 494a81d5b48047e0bce42dd126f573cb + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 5b950c6be6494ba7b743a572a208fd42 + expression: 'avg(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f091c3d0b2754d1a883ad9e5f96f7037 + expression: 'avg(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e9c78b7e0b0d4d64b420b5802c91f02a + expression: 'avg(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: b6389e2689eb439183ad1a25590f421d + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 311bd2dea3ea4db896d92ba8a82429bf + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 67f8c41b8c4748a6b5ab836821e79610 + expression: 'avg(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d18498b9f4df42fca625f01ec465d819 + expression: 'avg(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b457b4345c694e3a9963b74c9c2992c6 + expression: 'avg(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1009-7G-1C-PC by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 182d09c6f9764ffc9481f0930039dd95 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: a330dd93ef5b478480de6ab2be32e887 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0f5a0e7593b447e2a9a5071f2ec4a30b + expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f99cdf9843ab4b67a2160e29ed5ab333 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 932fe21bdb6c460581093fb523b3c4b2 + expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 055aeb31cf1e4964b5e55e5caf090acd + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d6dcbaaaa89c4cfe80060830c595e4bb + expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ac8523f8566a43a5afd01dd074f24a6d + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d6e15977be5242edb4dd4bb8dcd0fbd0 + expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 15c4b3a688e4485ca2ab76a990e43ce1 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a244eb79522f47a6983a9a346fbc947a + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 7e359ae7be7f4c56bf8495c9fca6f4d2 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9b04a4945910475c945ac92a1558ee41 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1c06ee28e2b242f1b6449340b9250c4c + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 67d9b1ca3e80411691981c86dc571373 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ce995698b4ec4af18a3687eb9212c6ee + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ed8c46d319f742cb90cf948822cff340 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: cc2e1021e5b34fd59ad7c4f83f765d44 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8980ce3faa3f4c45963255029ced713d + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 49f612f570814c809330e4d940a85ddf + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 64617cafa0e74284ba3662e6ee4cee0b + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 36dc48462d28464787978c8e6f74cafe + expression: 'last(/MikroTik CCR1009-7G-1C-PC by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4a6d05e315d3402989b53df2ce59ab8c + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 512bdfa8d1344722b8b1d08c12e1383e + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e00497ab2965474e9c5d3ab7ea6589f9 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8624f7dd1e2742b1a721d0c62d005afe + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 530649dcb53f4069b1ab1d0cca8e26a1 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2dfd48d9417c4bf8b9ec6b272a245b9e + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cef1258beb714f1c9d81e48de7c5deed + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 567ebfed5b574f7a93949373e03ecfa9 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8086dade1d974203ad8e4dcfccc48014 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 13d005d75c364bfd89008c30df81afc8 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 24ae5851f6d84bc0aeeac124e8a3b35f + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6cf5856a75df4190a0ba25ec62347194 + expression: | + change(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 7538c8f6c90f441cae42f030a34365f9 + expression: | + (avg(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 6ac02e1d7b024c1ca4e3e19215d09c6b + expression: | + min(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1009-7G-1C-PC by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 625ca63a5c744a3896af126018dccfd1 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2dd57c81d5e645a2a321d0519522310b + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 0e374b652a644f1f8db14960e0bd9457 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 4d9c4d471c7e4919b9a8d801e514a7db + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 1471eee2cfc8486da6b20358954a512e + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: fc93929bd60542d3896fbcdd590479be + expression: | + last(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 6aa796b2784848a7ab26a7e6da8993a9 + expression: | + last(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1009-7G-1C-PC by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: ee6f2f6f632a4e04849e64251bcd7eeb + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr1009-7g-1c-pc + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 77bcec82c37e42c5ad87f6ebe6259ab8 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: fc286c3054704db2bc3b0e8b88ff74c0 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 1299953fcf1143fb9155f889f39af069 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 85dc872152ec4c5f8af35558e554abae + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 1f457b001e2e4d6c8ce2c386ea4d7f77 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 99da791be26943ec806a2c690f74a66d + expression: '(last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR1009-7G-1C-PC by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR1009-7G-1C-PC by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 0d8972aadf0f4e19bb93ce9bed6723fa + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1009-7G-1C-PC by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR1016-12G_by_SNMP.yaml b/MikroTik_CCR1016-12G_by_SNMP.yaml new file mode 100644 index 0000000..0e0244c --- /dev/null +++ b/MikroTik_CCR1016-12G_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 5ed19d1f74224588bf5f53ac47003acc + template: 'MikroTik CCR1016-12G by SNMP' + name: 'MikroTik CCR1016-12G by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR1016-12G. + + 1U rackmount, 12x Gigabit Ethernet, LCD, 16 cores x 1.2GHz CPU, 2GB RAM, 17.8mpps + fastpath, Up to 12Gbit/s throughput, RouterOS L6, Dual PSU + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: fa447fdbf6e7440381f73a55e244405c + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 81ff4b462e134758bf758ea598a89ac5 + expression: 'max(/MikroTik CCR1016-12G by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 7d502a4b55224f3b8b4323c568d34535 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5cf5ce1e93f54801a94370f4db68422a + expression: 'min(/MikroTik CCR1016-12G by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1016-12G by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1016-12G by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5631c72ae88f4755822b993d42dd2c02 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f9e60c1f73a24df5a9d84ebb81b28861 + expression: 'avg(/MikroTik CCR1016-12G by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR1016-12G by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1016-12G by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1016-12G by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d00e09c5cf7145b59c0c3ee462b5ec10 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 3da4c495d5d0420abeb9612840241097 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 3b3bc4be23664c91b61f835f5eb601ac + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 4f4699712b2547c68ce6f5cc0523c0d5 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 00bc8fe0f076428bb92c8c5cbe2de8b1 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: dfc51b19b72544d998a5c5ef6ca1c21e + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 929df02b3b7a462f949c948d655d2f77 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 4ff0ad1fe7a043f28e46403ab4ce500b + expression: 'last(/MikroTik CCR1016-12G by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR1016-12G by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR1016-12G by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9e85d395c80b4db8868d5bccf64edfaa + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 14b7fb61e1e64fbd900fd376ee087a40 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 0abb489d471e414b84d9bfe5d6d0e453 + expression: 'last(/MikroTik CCR1016-12G by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR1016-12G by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR1016-12G by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6625f426dcc949559a35ddfb3aed43d3 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 252fc6ffddbf403a91e0bf1f558526d6 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8891f56528a34481838f9a8303412b0d + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 5a2e293b0f664c93ac675f925f0ee3e0 + expression: 'last(/MikroTik CCR1016-12G by SNMP/system.name,#1)<>last(/MikroTik CCR1016-12G by SNMP/system.name,#2) and length(last(/MikroTik CCR1016-12G by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 4d42c5c9972445889de6e09abfdbc847 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f91f4184edee42bbbd45dc23668946f2 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6cd07fdee09249c092abbee25f526c9a + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 3146fc39809741a09a46852ef392b694 + expression: 'last(/MikroTik CCR1016-12G by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR1016-12G by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR1016-12G by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR1016-12G by SNMP/system.name,#1)<>last(/MikroTik CCR1016-12G by SNMP/system.name,#2) and length(last(/MikroTik CCR1016-12G by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 89c237c439e146af9ff1e84f70330b6c + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: e6db19f9ea46407dac1744adc4caa945 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: d05360006eb148a6a66f157513bfe26f + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 1ccd49102df74a0da7bc068ef3e6c81c + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 4093f81ecb9f4320b5c5ca719a6b8574 + expression: 'min(/MikroTik CCR1016-12G by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 7ddd377d90e34afe92e33df8be63b759 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f8bfaedd5b0f45ae9e91831865b2c1fa + expression: 'max(/MikroTik CCR1016-12G by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1016-12G by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 9edfde07815b4a03895c24f7703fbe9e + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 8fa7a6a3038e4dbfaa9d82a83e8e990e + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 20cfcbcae14b4b7fb9c86486f4e6b972 + expression: 'min(/MikroTik CCR1016-12G by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 4bd6447ec4e54e45b12893adf4a92bc3 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 902597a2a07e40e59035f62cf623fd9b + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: f0e80b87c6874ed8acea53ff369c9f61 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: c84e4932a71849549be90027810335ea + expression: 'avg(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 67d43cb946d94556bb921b0b120d58ee + expression: 'avg(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cd3aaf374f81487f98f0056920870782 + expression: 'avg(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: aeb7b829ab72424f96c53ac8d5788dfe + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: c6d9685ed59d4d719205cea9e750cae3 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 1e6346dade484f4aad2a63c03ebf32d4 + expression: 'avg(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9eafc6dc38614e26a301d943f4f8dd5d + expression: 'avg(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d6cc20f91d5748fd85ab8743b5152be6 + expression: 'avg(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1016-12G by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: e4dddf65df514c03993ef70372bbdb78 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 13ed66b5078249179ebbb076461e4358 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6c73b57b26b1484c83d7a8185829bd85 + expression: 'max(/MikroTik CCR1016-12G by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8d84ea1e90a0441ca84c4d0922a6489b + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5eafa20544ed463fad00fb233b34f92c + expression: 'max(/MikroTik CCR1016-12G by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a5e73872ef424a6082f408e3217502eb + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0d079b01ba334fcd8f3e527ec7102c3b + expression: 'max(/MikroTik CCR1016-12G by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: eaaceff4c42949ff86c7557ba5f994dc + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: fddf1697f5c04bae95c4752d2627856f + expression: 'max(/MikroTik CCR1016-12G by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 3048504b46b7470ca54ef976cf973411 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: adb864eee4b744328d91e8f9339bc79c + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: a715384f98d44f609be86fccb780a6e4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b3ae9d00db964983a878382f52b3a171 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 85e91fc9812543228e069b97f1fcce30 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 78d7ad1a885e46a3a94a7d9014addf60 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7cc3ec557e144b4e83038c29a9d3bddd + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 7a5ef1da8c6d4d569a6d01bb76d4700e + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 76a32e833625423eb441305aacbfe13b + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5803d60c0a96463f9768627847b306aa + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4697cee2b20944d49e31c3727c67db66 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a504100b84894c01890a70c6fbbecb97 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 815c19538e7b48edb63bd46ad4d641d3 + expression: 'last(/MikroTik CCR1016-12G by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d93cca84ed0f4fbb9209d4d9880e9945 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: b8bbf89906084f53998d9785d6c0cd95 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 94ce6be8cec6430490a50a19fdabb154 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d16cbebb823e4ed9a55f0c3a9be66f84 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 984ed6174e284d87a4fad9a73c6c9b7c + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c5d4c6d3b6ce41a4911315e774ba8395 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ab7fe09d3aa6427ebaae6b6c0de1d47f + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 573c2c167a554e6c9be9616e3a041732 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 872a74bdeab845d8829d7adfeab9ceb5 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 80c35372193e4616969d2e681a412606 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: c5adf6b317794b3da1227d20410ecdd3 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4246c08015084a69a8025aaa928efb3f + expression: | + change(/MikroTik CCR1016-12G by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR1016-12G by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR1016-12G by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR1016-12G by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR1016-12G by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR1016-12G by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR1016-12G by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR1016-12G by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR1016-12G by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR1016-12G by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: b96a1bd98a964bc4b3aa10f1b723c256 + expression: | + (avg(/MikroTik CCR1016-12G by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1016-12G by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR1016-12G by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1016-12G by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR1016-12G by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR1016-12G by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1016-12G by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR1016-12G by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1016-12G by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: b2999652071a4eecb8f7112b03168412 + expression: | + min(/MikroTik CCR1016-12G by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR1016-12G by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR1016-12G by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR1016-12G by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1016-12G by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 0594fca19f084adaaab11ab876ab303a + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ed6a12f9caca4aa2875e2dfd28ae73e2 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: fa8acc788ee34826ab8f593c40aa4129 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 99dbbdae777d4910939c2993a70f6892 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 7ce857423f0b4eb188bf07434449e600 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 79b2a705172743a88de436aa62be33ad + expression: | + last(/MikroTik CCR1016-12G by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1016-12G by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1016-12G by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1016-12G by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 8c8e59c2079d4bfcbd775b0c38bbf253 + expression: | + last(/MikroTik CCR1016-12G by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1016-12G by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1016-12G by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1016-12G by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR1016-12G by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1016-12G by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1016-12G by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1016-12G by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 7fb9b943f8ce49a88f48095d24f9efda + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr1016-12g + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 0ebc05a8c9de4326845dc05235b2b47a + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR1016-12G by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 22f415a6b99d4266adc34008f74b8273 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 6ed02c4fe35042698491af23e9f9bf81 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: c16dce20ddb24e648936f2c874df7611 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 9556e9053f5f49e2b8f8f4c312a15fc0 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 4748e443639d47b2a969070386524eee + expression: '(last(/MikroTik CCR1016-12G by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR1016-12G by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR1016-12G by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR1016-12G by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR1016-12G by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 7c3a67d410e44adc9ec226715dcbe88d + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1016-12G by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR1016-12S-1S_by_SNMP.yaml b/MikroTik_CCR1016-12S-1S_by_SNMP.yaml new file mode 100644 index 0000000..3527779 --- /dev/null +++ b/MikroTik_CCR1016-12S-1S_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 654910b270d9464f863ed085ba7302ce + template: 'MikroTik CCR1016-12S-1S by SNMP' + name: 'MikroTik CCR1016-12S-1S+ by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR1016-12S-1S+. + + 1U rackmount, 12xSFP cage, 1xSFP+ cage, 16 cores x 1.2GHz CPU, 2GB RAM, LCD + panel, Dual Power supplies, RouterOS L6 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 452c7c9d9aa64d71a41f74949ab0a233 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ace4ead8482a47fea59f346d0cc41c62 + expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 84123d3f0fac4b178b3bb1cb878553e8 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e474571997454a96a7e86294c876c0a7 + expression: 'min(/MikroTik CCR1016-12S-1S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1016-12S-1S by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: be0dd1d97e0b4f14b0283899821795a3 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d4e0d30eadce4dd5a37afd48a10ed379 + expression: 'avg(/MikroTik CCR1016-12S-1S by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR1016-12S-1S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1016-12S-1S by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9c2738cd8cde4634bf406c3fd3da5181 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: ba6810f58e114c5abcb0ff9c1e105d53 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: dcace506d88d437893b1b9fce0eaee89 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 601f9df762134a84aa5e2509a58f0309 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 601c6b5e9f224b8f861bf05a3e2ac0dd + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 03977b99f6fd4723bc29ce6790deca0b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9bb0cd6e869b4e00800c2893b4cf43bf + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 8012e0275fc24d9e9688cfccb3134aae + expression: 'last(/MikroTik CCR1016-12S-1S by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR1016-12S-1S by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR1016-12S-1S by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6d2bed107e30443ea44f3c3cd61f7cf5 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 460078d3884e4927818a3015dc36ec17 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: c6e011ff0a1f41c5b90bb8fba507fe7d + expression: 'last(/MikroTik CCR1016-12S-1S by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR1016-12S-1S by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR1016-12S-1S by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 094dba661554421087ef6454e6e899f6 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 87a5ef8c320c46f2a8936e64e53b2c2e + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 05d02e7166c74b87ab67e2c76e9fa6dc + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 1060d8c4dda547d9902dc94ac68f1b33 + expression: 'last(/MikroTik CCR1016-12S-1S by SNMP/system.name,#1)<>last(/MikroTik CCR1016-12S-1S by SNMP/system.name,#2) and length(last(/MikroTik CCR1016-12S-1S by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: ab98bfc1746743feb6ab0d4a21c1a3bf + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 7fb0ffa57e5446e5912350700638e7a5 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c71d909522214671afd2b636aa54a06d + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: f8ac6aaa8c06474d9a9b86e5e43b5ed5 + expression: 'last(/MikroTik CCR1016-12S-1S by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR1016-12S-1S by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR1016-12S-1S by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR1016-12S-1S by SNMP/system.name,#1)<>last(/MikroTik CCR1016-12S-1S by SNMP/system.name,#2) and length(last(/MikroTik CCR1016-12S-1S by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: f3db6fc2fa544ee8b7603024016784f3 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 1077bedb2f1b48509ec5a4f299aac7cf + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: b24d15e975cd4423a4ef27008ee5fda1 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 3ea0ffecf896435284e268758203272d + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 63e95c315b6f422e9d4f6e532e847e9c + expression: 'min(/MikroTik CCR1016-12S-1S by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 3fe54510eaa1418aba59a833bf93b5dd + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c98fffdacb89455aa6f4f62060d360de + expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 574e87197ce64d3ba47b7f99ee1bf45d + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 363e697a888342a2974be7d51728b144 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: a8920b239ceb42e6b3e26ffd310a409a + expression: 'min(/MikroTik CCR1016-12S-1S by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 0c73159da76a4b61bbc7c8116af9d7fc + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 53f14b1963614f2e8061c840c384f401 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 107afb2b34884a5d968d820be0ad4ceb + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: c3b13c3d1f8c4d53b1fa67f9abc168bd + expression: 'avg(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 80fd1bd8bf564aecbe37b77294c84ae6 + expression: 'avg(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 335090c080c04b909f1b46b404dd025c + expression: 'avg(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 7d321af0e12c4149a2c61e22326d4074 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 48385fb97a77406bbf7f6da6f76c02fc + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 5b86f67e1e184ef79b7023760d951747 + expression: 'avg(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c62972c2c47d403bb92d43ff7b9b5a20 + expression: 'avg(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fc2ffec9e7054c82880a560da071781a + expression: 'avg(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1016-12S-1S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 6c3a1517e3ab441db0bb102f9efe3aed + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 9aec7b05f5be4b03b5627b38eac0a8e1 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 42329cfbff37430f87adfefa852b39fe + expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f752e73907bb485391661bde8301c894 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0259421d33e745d992e5eb03091b787a + expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7a0c2eafe0e0464788dea620cdb16cb0 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ac07e47a3ce447febb5049da33931109 + expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9b02e4b2f89349ec9b364f023d0f999a + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ef75c9ab974c46a99579c544e43a2c2c + expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 43b1fee8802d46ed838db745daff8be1 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 274527cab9a440f4b7ec6b65998338ec + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 53b3902bab07498f9db3fb888a023392 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 045edf92e0084089961529eb7d5b1baf + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a351cfdfce4a474fa08282338accc213 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d0447954c1214428841537404b2ca7fd + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0fe201eb562b4080bdef34e6fe43ae30 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3d3ffa19c93e4d6aaaf63178cf2c3728 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 51f998a0c59846178819f51a3ee1b72b + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9ed7d527871e428282ac08c5c4b94ad4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7cdfe024544f494f9cc241ace013be76 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f7655d3d40d742f5abec39dfc753dbc2 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ff2543e8251945f29036cb43fda69c72 + expression: 'last(/MikroTik CCR1016-12S-1S by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3833c90d67194b87b5c914a3a6164be2 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: ec2329aab27946d48b49cef91e28303f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bd4691f3e0774477b33708bfdb35a4c3 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3f2f73c8d6824027802fead0f090fdbb + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0164020946ce4198aed52d97fa39cf80 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0482022b45794bc590837d3b4f8ed757 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2be5cdf9d1674b8c871ae93c6315b29b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6aca8bc6ff7c45cea816f076aa70f9ba + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f86b184949024d6d89b8425fe706259b + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b0bc658fd9654ca4802593051c5a368f + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: a0e4472622824516a9c176f99015d55f + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 837272175f904763bd4c0462946e9a0e + expression: | + change(/MikroTik CCR1016-12S-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR1016-12S-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR1016-12S-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR1016-12S-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR1016-12S-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR1016-12S-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR1016-12S-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR1016-12S-1S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR1016-12S-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR1016-12S-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: d57a8a917c2a4ad89618acef7c5f1fcb + expression: | + (avg(/MikroTik CCR1016-12S-1S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1016-12S-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR1016-12S-1S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1016-12S-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR1016-12S-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR1016-12S-1S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1016-12S-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR1016-12S-1S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1016-12S-1S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: d7b2ed63b7f941878d34b64ca7ffe21b + expression: | + min(/MikroTik CCR1016-12S-1S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR1016-12S-1S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR1016-12S-1S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR1016-12S-1S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1016-12S-1S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: a6b64d432afc465d9816a55de2cb4a79 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8c4d698df0b044018e22d6ae97e3ffeb + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 9976d1dea8234a8c9baccac8cde90796 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 31b78c198bf54971b7d523341538ac55 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 0774ba4162ca42e68b7ad37e76e9ef7b + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 7e201487d2ed496492eb2dbb1a169021 + expression: | + last(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: fcc24d6aa85a4ae4b104d9523afe073d + expression: | + last(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1016-12S-1S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 8a71589751e94467973c7f52af45f440 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr1016-12s-1splus + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 04493c68b50549408235b16bc9f6141e + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR1016-12S-1S by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 1fd54fd1f5b245aa92674432cac9455d + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: e8025fb20449470da19bf5881ebe3467 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: f9e0c946ec844715a29819e037a52d46 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: d0c9d2ac973d49f09fd14d04803ccdf6 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 916fbb00982f4fb38b1942cf44daf5f2 + expression: '(last(/MikroTik CCR1016-12S-1S by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR1016-12S-1S by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR1016-12S-1S by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR1016-12S-1S by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR1016-12S-1S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 745d4ccb40fc47299aa0fce0d534ff7d + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1016-12S-1S by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR1036-12G-4S-EM_by_SNMP.yaml b/MikroTik_CCR1036-12G-4S-EM_by_SNMP.yaml new file mode 100644 index 0000000..40e00b9 --- /dev/null +++ b/MikroTik_CCR1036-12G-4S-EM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 930c0e0534a9424fb01f2b6218d8ce59 + template: 'MikroTik CCR1036-12G-4S-EM by SNMP' + name: 'MikroTik CCR1036-12G-4S-EM by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR1036-12G-4S-EM. + + 1U rackmount, 12x Gigabit Ethernet, 4xSFP cages, LCD, 36 cores x 1.2GHz CPU, + 8GB RAM, 24 mpps fastpath, Up to 16Gbit/s throughput, RouterOS L6, Dual PSU + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 42a75eedbb7e41209bdf0b77b410981e + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f9fd5f6cd1a24a22ae48b0628193e0c4 + expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 29036393918345269f36aa4daba59823 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c72587594cfb49a6a8b39575e39ea8eb + expression: 'min(/MikroTik CCR1036-12G-4S-EM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1036-12G-4S-EM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ac362f04138e40b0b2611a66101cb6d7 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7d3593f5ee8f4350867de676743c4f60 + expression: 'avg(/MikroTik CCR1036-12G-4S-EM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR1036-12G-4S-EM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1036-12G-4S-EM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 940603fe2a43458584566823954d7106 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 6f7af549a539443eb2ea18383157e818 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 7e58aff2b1704d99a73ecc607fbf286d + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: b6a9d9049fef46c69ae2508892060a43 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 0371d3a8d3ba4977b118a1d2c8a37c71 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 267ee9321d50436f8c5a3ab6c1bbbfec + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3b45bf2cd74b496e8882ef8421f3075f + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: e0decdba5c7a44ef9983da4d0912ba37 + expression: 'last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 11cf922dd6534e9faad83972f43021f0 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 87694d7f0a6742c5922fc3f1d3c4c950 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: ee34d0bdac3f4b0489fc96a3feecb72b + expression: 'last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7f1bc41c42fc410881b45972129ccf15 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 34303c8ce03c4b59bca308055c7d3506 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 0f635b37975e45a88116436b46f76486 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 10caf9fc68e14308a0dbe730e7e4199e + expression: 'last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.name,#1)<>last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.name,#2) and length(last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: c9d27f7a8a2a40699e0b013c5badcbc0 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a55661d0520a4a3686938402b9a39ecf + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4118b55b18df44798e3593e7c4ab1dd7 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 65ac535fb0114cc098bd89d1e2a5cfed + expression: 'last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.name,#1)<>last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.name,#2) and length(last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: ae6075aa924446c8a73be7af098aed96 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 9c918b9f51a14b5aabe9bf662d459a45 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 4664580c7f80415a8813dfac83c3f616 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 635ee2092ff64314910c0612fc33ee6c + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 1ed5e95e003d4119bd578ac4f572ba16 + expression: 'min(/MikroTik CCR1036-12G-4S-EM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 048e394bc01149b4976b0bde0e5cfa62 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d4932539ba7245ff8975cc8c224f8d36 + expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: d00d9cce234d4d75ac0035da246aad00 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: b1099ed1cd3742ffaaa1a5aae3cd27aa + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 519211164f324540a624c3f1046dbd44 + expression: 'min(/MikroTik CCR1036-12G-4S-EM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 7ad0424405ea4a1d9e9269d3f4c70fdd + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 657a8813b0784c7b9034b320f9d90a7f + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 814160afbb4f4a5e9b3c8c2add8aeddb + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 09b73cf701ab4f4aac2fdbb4ff26e893 + expression: 'avg(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3e86bb9cfaa5410d8b932f80c413e340 + expression: 'avg(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5f52e2e9403544b987568c00046deaea + expression: 'avg(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: fa20d2b065454093b058086c5936dff3 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 3c392ed2b8194b9ebdc88a3865f3c03f + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 6c46256f6d124cf9b3d602f7536a4788 + expression: 'avg(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8b61d889f30e43f28102163a6284c8d4 + expression: 'avg(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: edbf42873c99405cb77d0eb3fd6986a8 + expression: 'avg(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1036-12G-4S-EM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 1022bfe65683409f92d390a005250d35 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 1c4f1f6d7a374db0a15411a7ba8b300c + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bbe7c7f1238649119b44e657c5f0d292 + expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 060e1a17f8244cf48f55605e9977bf36 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8f858819c89542bc88afa76981b4639a + expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 66389bb0e1a846f8a26567d0d9e182fe + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ad82b43ac27c44258f4a4f3ca212cdbf + expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b6f955df3ab04d85baf81d60ad41eb4c + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6a3ce63f84ef4df9b8e9cc231ddf3fe0 + expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 687618f8d1c74502b6cf0fa90bd634a1 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 7b29429668f84059956e617b64d58373 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 77422704136d4a80908a28fe79c7242f + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a026d85a54c04205833a36b39d5f0b73 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b5e956501870483fb045df1655751b69 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e2a923c0d22e4872acc473e3783ccdb6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8017849385a648df8f45e35a8a1a080a + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 04c6bcdd1e634c129707b0b39c86cc8c + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 88aa7fca3e0b4e778674da7ece8cf4dc + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5edccab248474bf6beb3132626be1675 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 13f3f91149694ed8bd33067fa82979d8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b244af1db2374fbb865c735e81a56ae8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4a5a914ac69f42eb8fa9ca5ef30e63cc + expression: 'last(/MikroTik CCR1036-12G-4S-EM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b788130afb324d5c9f034d67b40c68f9 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 4657c8bb29004084aa03a4e612aa4167 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8bf7bea2c4504ac688a8b340a015bfa9 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 96c5ae0259c8477699a793e2bfa4989c + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7abf14afbffe4398ad0c61509cac0524 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ed5d74e331f14e44b96ec39a25f9c975 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cf89dbbd5501476d98a5aae1bab4f2d7 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a0d069ef6c7449d79c1d1629ba507ddf + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 111f84c9c695410eb1a5296ff2309cb7 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6aa1807ef8c94f09a7bd527f5c34fd1f + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 069253500b244569b6c20bcd9b436873 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f3c8a1a967524ca2bba4c646987e3fc8 + expression: | + change(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: b810391bc8204730b88b3059e2eefa16 + expression: | + (avg(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 6f66143ac9064cdfa02884fde84a4c96 + expression: | + min(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-12G-4S-EM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: acb45b1477594e53a0fbc1af74c0ef2d + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: da85811fdfe24a82b4d7a13a243893ba + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 1eb7fcbc95d34a108cf8deb3dce47784 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 24a12296bd844160b4d34988be84f368 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 159cecb702d2450e9e868c108903e360 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 07a38ca5caf7408fa0e61ec5bb2d2c9a + expression: | + last(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 313ea923495e4a0289519b8c228f018a + expression: | + last(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-12G-4S-EM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 07380c601c834361b6ccec958d64a643 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr1036-12g-4s-em + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 3b27bf4ae0884defa769c07be8c699a2 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 91555b102b4344ecabb9ffba5cefdfd2 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: e93fd9e1a289402f9631275a21da92a8 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 562a1120aa7148b3a3ebd862480574bf + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: eaac357da10f4fa3ad2cf4cb5784c45a + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 8138034748544325bad6bdc90484ad21 + expression: '(last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR1036-12G-4S-EM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR1036-12G-4S-EM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: e1b400bae7da404e8e808dfeb54bc2ce + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-12G-4S-EM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR1036-12G-4S_by_SNMP.yaml b/MikroTik_CCR1036-12G-4S_by_SNMP.yaml new file mode 100644 index 0000000..1fd693c --- /dev/null +++ b/MikroTik_CCR1036-12G-4S_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 82b428ad78d34988b93f3d577f2b6adc + template: 'MikroTik CCR1036-12G-4S by SNMP' + name: 'MikroTik CCR1036-12G-4S by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR1036-12G-4S. + + 1U rackmount, 12x Gigabit Ethernet, 4xSFP cages, LCD, 36 cores x 1.2GHz CPU, + 4GB RAM, 24 mpps fastpath, Up to 16Gbit/s throughput, RouterOS L6, Dual PSU + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 32e1e322b3b34c7d9dc1cf7cac89f223 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 65c639dc46a345da90e22ca0dc491d8c + expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: c0abc057afc84b459e0b5cfe43abbd03 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 65eb4b94fead4b57acda0b7ac001c41c + expression: 'min(/MikroTik CCR1036-12G-4S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1036-12G-4S by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5302099600ae4973810fe71d21ab4533 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 410faf17c1ca41408cb773270dc614b3 + expression: 'avg(/MikroTik CCR1036-12G-4S by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR1036-12G-4S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1036-12G-4S by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2848d2045f9c4a76ac49bee199f622d7 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 409c178fb90841ffb1f2825c4eb01140 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 9a30d3659344407ab31a3997e75e2c8a + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: ffb768eca167467b910da993f38f3ca7 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9dff6be2d3694e84aacf544f3e859790 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: b9348f8739fc4296a19a92de49f261fc + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9316b737e8174862b0ce60ad10dca68b + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 565c94a00dde43c1af72f8c2d00edcb5 + expression: 'last(/MikroTik CCR1036-12G-4S by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR1036-12G-4S by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR1036-12G-4S by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c758cdb68e854cedbb9fc53d361c878b + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: b04e3b3b91294e3b9a5968e475166473 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6d02cc3ff4144efda53554446feb0058 + expression: 'last(/MikroTik CCR1036-12G-4S by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR1036-12G-4S by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR1036-12G-4S by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e8aeeb3ddfe6405ba5c02cbcf50681f4 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b5fbca72e7724e689c5563877e3beef1 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9e21e99f85ec464cba6473f4c0d15e96 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: ed7279478045454b809f46211c5c71b9 + expression: 'last(/MikroTik CCR1036-12G-4S by SNMP/system.name,#1)<>last(/MikroTik CCR1036-12G-4S by SNMP/system.name,#2) and length(last(/MikroTik CCR1036-12G-4S by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: cbb288d0de7c4732b74ff812698cccbc + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f48f704473374e1991267a007809ec00 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d0d399bd9e7e4aca86de1b4aa23cfa0c + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 18900918495f4dd99cbde564a071bf34 + expression: 'last(/MikroTik CCR1036-12G-4S by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR1036-12G-4S by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR1036-12G-4S by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR1036-12G-4S by SNMP/system.name,#1)<>last(/MikroTik CCR1036-12G-4S by SNMP/system.name,#2) and length(last(/MikroTik CCR1036-12G-4S by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 757ab436c2aa4500a6800ec367cdd109 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 8be77fd4f4704108aedd5ab35a212172 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: b8102bbf381c4a6e9d759e3ae3902616 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 383e2e5544ef439199784bcf81cced10 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: d89ab73e0c534f84ae9481a1a48d5064 + expression: 'min(/MikroTik CCR1036-12G-4S by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 4c0d4bc7872847248c4659bf7f29dee1 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 56f238340c7e40b39eb8cc04a67cf465 + expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: e3e28fe259aa4a43b30e5b919d44afcd + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 5e2e23eecdb64096bd797eec839e8c3d + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 24667b99976c417985bbb1a307184d88 + expression: 'min(/MikroTik CCR1036-12G-4S by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 29baf5d5e81846de97fd1dd470d55583 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f2726d5b184f49b38b7911c4357a7a13 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 6edefebb1b15445f80742f9d3d3e7f02 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: aa6398ab43ec491ab5aa96c8d8422112 + expression: 'avg(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 186b82ffb7934fe8a62a150970dc2468 + expression: 'avg(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 58357816e19b4c9986e8d26165c4f29a + expression: 'avg(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 99d9e2e9d49241158e7e6a4b582be953 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 651743f22cbb4fb58233a5af65bb66f3 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 522ee0ddfd7e40a4b81612d4ba4266cf + expression: 'avg(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6a5b1f729c054ec7acc3665ffb831bcc + expression: 'avg(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f4198424045742619f84410ee7a2939c + expression: 'avg(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1036-12G-4S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: be0f695c529c4eb299ec52cf35894748 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 4356a26c242f4a3a9f4d8f6db98d21f8 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b7d3eebe1d6944b88ed8afa923caf884 + expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 34bf54ed6a5f4e53986f359d544c30cb + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 94c9e778f2a7471c8002dfa6918dde8f + expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3823c35804ca433c8bcb5911f72bcea1 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 77e69f355f7348a4bc823a8428980356 + expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b978cd0e8ea54e76ac2306550880c3bb + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c1926140ee5d4532adeecf590f740e96 + expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 610a541bb14d4913bf2da6621c34e374 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 1a244ce7f50e465bbea8774ce17a334c + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: df991a11507f4a29ae4b9d49ff210a25 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 50e5ff8d2fcd40969e84bfeb4337a3f3 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e618a4a331f744a4b3803197d49560af + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 16cdd7e0531a4e589f6a80516afa05f4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b8c258ea4d8d43e2a76563cd67e310ae + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 12c3d78774c74147a6117369b96b4256 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 529e53e857584a1b9f9baa4ffbe711b4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f9436b34ccd54749adcf2ce4250306fa + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e230eabed9c346ea953cfd1d74e7539d + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2c38689dacdb426b93a933693e6aa400 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d32004c5c1804105aee11b22722556e1 + expression: 'last(/MikroTik CCR1036-12G-4S by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 60bd54d856ff48cebdcc36cae159f05e + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: e974d85fe4124c52b24d9ff8b8d30e1f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8193ad4c190f465da3cca3f5bc0ca2d9 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2957eff649ec42d98e9426242a7ea875 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 123f16658e504451add404e15acefc47 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8306c1a20a964b90b145160a246ff8a6 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ce76a9441b314208b097c132894cebd7 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 13b5a00bc3a747df9c21bf123b78362f + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 87f30fec9a0c43bd9f96712448c585b3 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7b8a57cb6eeb4eb5b2a6e270065f6032 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 9c36325c00124757a18cb91d5860e7b6 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bc744a57d4e44fd187453b4b8f72538e + expression: | + change(/MikroTik CCR1036-12G-4S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR1036-12G-4S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR1036-12G-4S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR1036-12G-4S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR1036-12G-4S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR1036-12G-4S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR1036-12G-4S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR1036-12G-4S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR1036-12G-4S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR1036-12G-4S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 4a4f855dd0744cd29c3d24eb7e00de35 + expression: | + (avg(/MikroTik CCR1036-12G-4S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1036-12G-4S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR1036-12G-4S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1036-12G-4S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR1036-12G-4S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR1036-12G-4S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1036-12G-4S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR1036-12G-4S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1036-12G-4S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: f8e4afe44bc041e9b1853644d1b662f8 + expression: | + min(/MikroTik CCR1036-12G-4S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR1036-12G-4S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR1036-12G-4S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR1036-12G-4S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-12G-4S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 877800605f9f473e93ca08ea1e0fa25d + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a32b1f9c2e3049e7bcd3af65c4b107f6 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: ea30a631843d404c8eac9fe189ef0d74 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 9186466c7a374a9d9a243bec3e00efdc + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 9bdbfc448dcb4d3fbfff2fc1a78b938d + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 73127568919e45ca9df89ab08285a3b5 + expression: | + last(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 954903eaecf54c26874d9e5ce47e044b + expression: | + last(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-12G-4S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: d9d444f2cfd5498d857d74aed0678406 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr1036-12g-4s + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 1f3b3cfac3514a6aab90198fef5cfa16 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR1036-12G-4S by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 584f260e2200488084f41fbe709dd0ab + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 12b06f3b345c43e7b9b6f2299b2608bb + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 8dd8911e238240a3a0455805bb8128af + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 2f9ffba5f4ae4226b8ff39e4bff0b5d1 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: ecf84d7e28504c23a40b013683d1cfee + expression: '(last(/MikroTik CCR1036-12G-4S by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR1036-12G-4S by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR1036-12G-4S by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR1036-12G-4S by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR1036-12G-4S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 4ed5a17cbf3b46d2a68d6e29a71147c9 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-12G-4S by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR1036-8G-2SEM_by_SNMP.yaml b/MikroTik_CCR1036-8G-2SEM_by_SNMP.yaml new file mode 100644 index 0000000..8b23dbd --- /dev/null +++ b/MikroTik_CCR1036-8G-2SEM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 7b3ecb24366f4685970df8e1143323f0 + template: 'MikroTik CCR1036-8G-2SEM by SNMP' + name: 'MikroTik CCR1036-8G-2S+EM by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR1036-8G-2S+EM. + + 1U rackmount, 8x Gigabit Ethernet, 2xSFP+ cages, LCD, 36 cores x 1.2GHz CPU, + 8GB RAM, 41.5mpps fastpath, Up to 28Gbit/s throughput, RouterOS L6, Dual PSU + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: ee528734341c4cf8815442ca2762ad56 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 151029088e374c23bb89abe498da70ef + expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 20177d9560fd41518274117a8573fcbf + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f719d0a102d84edb8c2672502ee28b25 + expression: 'min(/MikroTik CCR1036-8G-2SEM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1036-8G-2SEM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 47ded308c77c4cbba98051665f09a378 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: acba03a0cc9a40fb89258e1ece7dce30 + expression: 'avg(/MikroTik CCR1036-8G-2SEM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR1036-8G-2SEM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1036-8G-2SEM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9838b7f90f4242c9abf16e39b7a7da81 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: a2e6607f1e83434bb1ae4d14727613f1 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 5fc1581406334366ba038c350335c7af + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 1e20df1ba4f740768c5d167928b52a91 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 53bc8450cca74b67bde3405684dd26a9 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 1e0feae3c04e4736bf7a4485e36be60e + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a808f02d217e4b338fbd5d8f52474d7d + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a42442ce9d7d4a378964296eed6a6b33 + expression: 'last(/MikroTik CCR1036-8G-2SEM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR1036-8G-2SEM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR1036-8G-2SEM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 721918724f3f47189db3d73a51eed73e + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 028dcc2c59f34754b646c0a07e6e4709 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 2da3a78731324233be1563691f353d04 + expression: 'last(/MikroTik CCR1036-8G-2SEM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR1036-8G-2SEM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR1036-8G-2SEM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6ba9b468dd2143a4a816c4bec1cee079 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 966c104811674f4cbae586a8b5356247 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 18bbaa17cf224712944aa4ccfd3c56f8 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: f2d7211cd2ca476facec96075e06298c + expression: 'last(/MikroTik CCR1036-8G-2SEM by SNMP/system.name,#1)<>last(/MikroTik CCR1036-8G-2SEM by SNMP/system.name,#2) and length(last(/MikroTik CCR1036-8G-2SEM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 34d40f56c17541ddb276e773d0e39737 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a21804a0cb5549ea8f8b447802600aaa + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5f186d66075841689596629ffecd1d45 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 855a1e17110e49eaaaf4dd263f16a591 + expression: 'last(/MikroTik CCR1036-8G-2SEM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR1036-8G-2SEM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR1036-8G-2SEM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR1036-8G-2SEM by SNMP/system.name,#1)<>last(/MikroTik CCR1036-8G-2SEM by SNMP/system.name,#2) and length(last(/MikroTik CCR1036-8G-2SEM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 1fcdd40fa482412bbd5045c0b453c662 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 19a2d0e30b0c4123899147a6230863cf + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 8b64d82e4b7b46a28cc88b1fc6c772d8 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: a1a1e9109bb24cefb67b397dc94d3ed9 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 9a83e6b6a0874a49a983cb610a7e0e50 + expression: 'min(/MikroTik CCR1036-8G-2SEM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: f77c57fb2dca4391ba2d741ef636b0cd + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b14b41ca31c342be803852075ff5c9f9 + expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c10d4bba94a54260853ce18bb4a1dbac + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: d7d582f52ddd4c14ad45bbcf98e7cce3 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: bc07372dff2f4f72a6b1b7c0e02f79c7 + expression: 'min(/MikroTik CCR1036-8G-2SEM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 01ef650a4abb4a1f9ff59f507ba15528 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 43bfef9ab73c4111a6781bc0a6ed4831 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 5a085632c4b54eb5a6ce87d2634f722c + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b3ce44c470a64dc49bc169c06bf9761d + expression: 'avg(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 876a62a4aa6a449d888f1233c24c0dbc + expression: 'avg(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 79304fcbafe349d4adeebe277858d23a + expression: 'avg(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: a5a949d4fee442ffa2feb45f703396dd + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: efe26a08e5244aba9529e2a19512b022 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 80af013716d944e8be4cef996aabfef2 + expression: 'avg(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ab46cd19e709417ebeb5c3b9964e2eee + expression: 'avg(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 06e95d596af74a288b3787cb665255bb + expression: 'avg(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1036-8G-2SEM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: abc09b388f484f10aa5d7e7203bdbbcf + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 2923109d73144954a1da93508c2ae589 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4f9b8def6c3e4d72b7afeb50808cae21 + expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0d85d562ee204270becddfe118253dcd + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: aa5d408235834a5e8492a55e178f5dc7 + expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 67ef3c61b30048fda4139fbc29cb7abc + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5c4489b0d28649a9a487d65833043589 + expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: afc1517dbedf49c089eacf2467392963 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1d77ead6601b40d5b22afc9098a8a211 + expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 594db09a7c024245a5eead39296b3c2c + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 474fc7c380b74f11b366fc548b4e2fbf + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: f86eddbb80e04ed594c87c16bd4d0bba + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 105399b0d5d84b9094b7eb75603d75b3 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8d0b0fca17b343dab54abe2b3f4b49f9 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e17ac687194544698dee18404081a7d9 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7d942107cdaf4ff58c9ad7a1a21f260d + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 543247e3c8a74ebcb21aec300625eceb + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 54047484e062468ebbca526199a823ac + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7ffae69ac5c644efa17ba9db8e3d16bd + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 03fdd1fb023d4e109e1a69bd01e1b588 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 139d2b1d8a0946f5b3febab4e9fd0587 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1b02cd1523474c949dcabd004a01089f + expression: 'last(/MikroTik CCR1036-8G-2SEM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f684ba95e12942a28e9c152670ea1a4c + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 00901669a3b34b90bbc7df4fb135b998 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 08d326dcf526411c948211b415f67992 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f5ec52a22acb4156aae1d804bbae2668 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: af396e21711f419ba854d78ea6dc5244 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1a961ca305f748a99e807efeacbef3be + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9a9671c5bc574aff993c898453496781 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d313a2ecd18d4230bd5b0e77c230be85 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f24cb71bbf454cd492149aae3ce492b9 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 80d625abfee747ffa6513c604aff983f + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: b41c85b4504a4a5e9ef546096ac45c11 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1d4bee528df346c6b9ac8e73352b0871 + expression: | + change(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 17ab3a7deafe4ffdbc33a1d3ebef3039 + expression: | + (avg(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 94fa2681675b4295ad1ee4d86e6f85f0 + expression: | + min(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-8G-2SEM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 244bb4d31f8240959e1496d3ed88ca95 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f6f52142e7464eaa829cab9823eff606 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 95b91a8569934b29b89d500cd3673d03 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 79e5b2ee35d648d3b3a5f4988f3e7592 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 6bce04e7abea4d16bb901d81e618f186 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 768953b43aab47d0bfcf9eeef75625ad + expression: | + last(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 74b9590a3e2448bc926fdd29bc6ec153 + expression: | + last(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-8G-2SEM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 2cd5ec756edb4c189a003a1cfa4f5cb4 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr1036-8g-2splusem + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 75582c9c102a44938cff3c1deae9910d + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 33859113b37a4ed7b36e31ec6d016fd5 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 480088441ae34e1d93cd19fa6379e30f + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 72f64e97a698449cbd0b6b60bc418b2e + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: a52a4ff531194e7090d12246e011e9d0 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 75e9434ddcb34c5489190d8b6de07e87 + expression: '(last(/MikroTik CCR1036-8G-2SEM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR1036-8G-2SEM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR1036-8G-2SEM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR1036-8G-2SEM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR1036-8G-2SEM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 4e79fe4d16424ead95e1d5ea25382120 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-8G-2SEM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR1036-8G-2S_by_SNMP.yaml b/MikroTik_CCR1036-8G-2S_by_SNMP.yaml new file mode 100644 index 0000000..acc5855 --- /dev/null +++ b/MikroTik_CCR1036-8G-2S_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 7f44e67e3f564ec9894c9142d7276553 + template: 'MikroTik CCR1036-8G-2S by SNMP' + name: 'MikroTik CCR1036-8G-2S+ by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR1036-8G-2S+. + + 1U rackmount, 8x Gigabit Ethernet, 2xSFP+ cages, LCD, 36 cores x 1.2GHz CPU, + 4GB RAM, 41.5mpps fastpath, Up to 28Gbit/s throughput, RouterOS L6, Dual PSU + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: d7b2d9c7f8dc4b7a8ff57b129af585b2 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 00453dcba3e74c4cb1bfce45c0d29590 + expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: d6a55e92ef1f49669df5641093aefbdd + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ef9c639da1fb4c7d9e9082b76468353e + expression: 'min(/MikroTik CCR1036-8G-2S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1036-8G-2S by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b784087e681644f68b96f4d7a041e57e + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8a7a50a814854217bae736f9766a9f42 + expression: 'avg(/MikroTik CCR1036-8G-2S by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR1036-8G-2S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1036-8G-2S by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 462a235c5c604d689f2d50bf880d5dee + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: b3cda334d0ed432781c81d0330f6c449 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 972afbe794124caa8fd35b44856c4b73 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 451ed0953b82410797051f377fda6e5b + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1cd91800dd174e29a159df144a897586 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 9264b3ce82d648fbb209fd11a0d7069c + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e565515e2bfe469db344bd78bdfcba74 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 26d7b5b5fc4149d4869a4e3a94173172 + expression: 'last(/MikroTik CCR1036-8G-2S by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR1036-8G-2S by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR1036-8G-2S by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2ef71aac4f8b462cb4103327331c359c + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 5d766873d7ee41ddad6d90199c1e8a38 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 79405589edba4a878d7d2ab5d0399076 + expression: 'last(/MikroTik CCR1036-8G-2S by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR1036-8G-2S by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR1036-8G-2S by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: af308a3e3ff14620a683f09d935887a7 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b4c93df60aca48ffa7b7f67b58918b5f + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 74e4c3fb1719453faa539e5c4c03e725 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 3d3902234c994181819a311b9f1947dd + expression: 'last(/MikroTik CCR1036-8G-2S by SNMP/system.name,#1)<>last(/MikroTik CCR1036-8G-2S by SNMP/system.name,#2) and length(last(/MikroTik CCR1036-8G-2S by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 95869b7593644ccebab3fc2bb81f493c + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9a33a5e56bcf422fa357fdb664a93d03 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 56f7e706b7f84fdf827f5a14fb3bdc7c + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 1ed2e0368bb94a4fbfa8a82764b3b40d + expression: 'last(/MikroTik CCR1036-8G-2S by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR1036-8G-2S by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR1036-8G-2S by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR1036-8G-2S by SNMP/system.name,#1)<>last(/MikroTik CCR1036-8G-2S by SNMP/system.name,#2) and length(last(/MikroTik CCR1036-8G-2S by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: be26aef4d3d54c5289ecbddd5cf65d49 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 818712f7986b40e8a3ce3994f43199ea + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 0b3849a88cf9436284dea73e86f70405 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: deb60e7c19b74431aed7b6c26fb7616b + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 03cdc40813dd4d5093512db3c5e574ff + expression: 'min(/MikroTik CCR1036-8G-2S by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 6fe6e7afa7bd42269e6b7e49661d1c3f + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2fdfcfe056e848f2b0a628d87ad4aa6c + expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c58edbe489db4e26a93a75c58c88a1f3 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 76610d269fa74931b5942475c179e840 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: a9f3354cf2044306ba8ca1aae227ee60 + expression: 'min(/MikroTik CCR1036-8G-2S by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 58020e927fcb4113a0339a9f2458f711 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d86c3660acfb4595946453fce47eb8df + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: d46e25089d8144d1b56062cc2d3e9059 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: f399cf1f48d24ec3b3f33159cb7b4fe0 + expression: 'avg(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0c240046f1434ffb8c2cba26e4b0e61d + expression: 'avg(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f810f58531c54e3bbcf6d0e677100237 + expression: 'avg(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: db9785c59e4b4b1e922fd5a6ded18ae6 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 1798378de4a34ef39db1c9b22a1131e8 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 773c5f9316c44d8297b4fd3cdd236da1 + expression: 'avg(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3d688fda4da843e192c26d955d8d8dd9 + expression: 'avg(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2a21380034244b29878bbb198cca6712 + expression: 'avg(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1036-8G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: ccebe51b33a6459b99847e6a379f6037 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 774a4dd9c60a441b8bcac9a771f89a3d + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 67152820f4884d51a16966f339947955 + expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1ee273ffb87749a897d5de628694eef2 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ca8b841c9830497dabd0138fafade175 + expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c35c822a0f3f4dd3bd80beb1d9bbdd05 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e8f613b6301b43efa4a2e84d62ec520f + expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 676b0104a7d94496a139ddd470bf7b2a + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c215c39df396474e865ae9b36c40545f + expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: e95ab4bef8354ea2bd66e421a2c63460 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 364c87891bd34038a38c3339e6367c60 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 98d33e0d19a7401293471c0c26f8657e + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: acf03c7db037477c99bfa298ff11c976 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 37c8c5e1dfaf4b7c841a21c2519bc699 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ca04a3369ba347ffaf2c67825bd2d200 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5e7de2ae51d5463e835eb73b9f07186e + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6130a63b523a4d5780cc7c6187e25092 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 220f9e350c134b59bbaa38142996274b + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4d2b9aaebdb1460dba179e2139802b66 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0447138203d9420287fe3317148ffdd7 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c00fb1e73f1b495c8994bbaf3d6d4d50 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 587ccbe7d604489783b66411a3b21cb1 + expression: 'last(/MikroTik CCR1036-8G-2S by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 943ddeb0de9f457cac2a0f4eccc7a3d3 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: f499f2a08c364fe6b7ba7c2edbeaa25a + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1468bc68752741b2b58f1d26ec4957d5 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4fdb243ad3714135bb1a04ca12ec42ef + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d5e1c2875beb42d9a1b5b876ee4e1d7b + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 23e1145639f54a509fc4b629af9bfe9a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c41739be871e4044b8218ff1cc289ea4 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f9db52be572643c3ac04ef113aa84262 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0f8614d6d02840e1868ffd4540048daf + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1f7c8669552d4890ac963f53aefcf100 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 934e91a1cbee404fb99411147351230b + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e9c85085a0d546ba910b139c99adee10 + expression: | + change(/MikroTik CCR1036-8G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR1036-8G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR1036-8G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR1036-8G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR1036-8G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR1036-8G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR1036-8G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR1036-8G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR1036-8G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR1036-8G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 91c48f7aac824bfbb58d78bd791a60e2 + expression: | + (avg(/MikroTik CCR1036-8G-2S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1036-8G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR1036-8G-2S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1036-8G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR1036-8G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR1036-8G-2S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1036-8G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR1036-8G-2S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1036-8G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: d7a049070a434aa5b3a9c320f25eb040 + expression: | + min(/MikroTik CCR1036-8G-2S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR1036-8G-2S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR1036-8G-2S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR1036-8G-2S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1036-8G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 93da4c226ca84d9ca20e4496b2e2201f + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: df12abb1cede4e059dd54454550f2501 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: dbb260b0d9334f60a27e59536c05873c + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 175c5f77af65445fb21d0d876fcb3983 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 827812e4bfef4bc5aa61630a8965d56f + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 72a2fc862c354ab0a3d8fb491aaed9e1 + expression: | + last(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: d66a941be43a440fb13386d9a319a5b3 + expression: | + last(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1036-8G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: f724179d92fa44b4adc25a2808522fc6 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr1036-8g-2splus + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: c01a5f4bd16a40ea93c25faf5f9eede3 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR1036-8G-2S by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 6e4c66c16e274c5f8caa1617020884cc + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: ec8ebd0e1ace4fc4b455cd932c5abb6f + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 33a1f843573446878618a06307d76f8d + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 4e2dde2550564c3baa667b369e03b257 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 7b5ce136e1524c2c85febecb055e50f8 + expression: '(last(/MikroTik CCR1036-8G-2S by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR1036-8G-2S by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR1036-8G-2S by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR1036-8G-2S by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR1036-8G-2S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 0dc1b1e2370940a2974ce4e00c2aa27e + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1036-8G-2S by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR1072-1G-8S_by_SNMP.yaml b/MikroTik_CCR1072-1G-8S_by_SNMP.yaml new file mode 100644 index 0000000..eeadce1 --- /dev/null +++ b/MikroTik_CCR1072-1G-8S_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: e7894db1c4c94e0f8715977e751368b3 + template: 'MikroTik CCR1072-1G-8S by SNMP' + name: 'MikroTik CCR1072-1G-8S+ by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR1072-1G-8S+. + + 1U rackmount, 1x Gigabit Ethernet, 8xSFP+ cages, LCD, 72 cores x 1GHz CPU, 16GB + RAM, up to 120 million packets per second, 80Gbps throughput, RouterOS L6 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 244e7111eefb48c98b1410eb53690989 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2510c2fd36cf4379b15e3e18abffea95 + expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 30907fe670ce46ad957b199bc58534bf + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 48a93170038b41af9fd8b6f25500ee37 + expression: 'min(/MikroTik CCR1072-1G-8S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1072-1G-8S by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 20d51d89f4604f6f8f56f1de7dcbb5cf + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1e70b999e9854c4093a75a960f8282a2 + expression: 'avg(/MikroTik CCR1072-1G-8S by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR1072-1G-8S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR1072-1G-8S by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e4642df48e6e46ae878f8bbee74bfe1d + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 2d2521940a8b421496c046de602748ad + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 7215e2ee187f45439e367c0ee9b78fd8 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 8bd0bba343264b6fa43c1c99d39f4bdc + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 84ba58953f8e4ee7ad5c8a3278253136 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: b022eea34d6d4e46b403e3e6eb1df42e + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e06462712e7c45f296fa8dc0c53871d0 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 385231b6c7eb4ce6a275969b437c8d44 + expression: 'last(/MikroTik CCR1072-1G-8S by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR1072-1G-8S by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR1072-1G-8S by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b1a6e11a8ba64f9e9270db35847b3421 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 0fa99ad0d0744f24ab49ad9be423b3d4 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: bb2cc5758a154bc0ad07138e87f353a4 + expression: 'last(/MikroTik CCR1072-1G-8S by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR1072-1G-8S by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR1072-1G-8S by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c86226f9db8e4eda9216c0e5f96bf826 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 4d85307924e84fe8ab5cecb8ee8afead + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 09fdf7b507614abe811670bb36c20aec + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 9e3ce4eb299547199e67c131556d5bc5 + expression: 'last(/MikroTik CCR1072-1G-8S by SNMP/system.name,#1)<>last(/MikroTik CCR1072-1G-8S by SNMP/system.name,#2) and length(last(/MikroTik CCR1072-1G-8S by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: f57e6a6b360b4844be4c125c44f4b799 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 241278e60289451ba100834fcb41b04b + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 00ed6d0e4cd84395a74a5015e3440877 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: ff7510d9e2d44057a089b9486af74971 + expression: 'last(/MikroTik CCR1072-1G-8S by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR1072-1G-8S by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR1072-1G-8S by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR1072-1G-8S by SNMP/system.name,#1)<>last(/MikroTik CCR1072-1G-8S by SNMP/system.name,#2) and length(last(/MikroTik CCR1072-1G-8S by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: d35b717a39b44521b4cf3c9f66d090cc + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: f7c0ee962f1c4fab9262181dd9dee211 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: d3c3ff16e7dd4d2e811e72cb0279a827 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: ee81aaa76f1d40a898ba48e0dde79d13 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: a7fa3a261f0c4362938700ff8954cdc9 + expression: 'min(/MikroTik CCR1072-1G-8S by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 7a54976f73f14c0cacff759a406806a9 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a2d66f40be294b8b81a96e11afcfe7ec + expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 1abbf37ece7c40ca93bb925c7bd27d89 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: df4993b4508b4f4bba6a328323e8cc0a + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: a47faa0771b348ed8fd040027deebd95 + expression: 'min(/MikroTik CCR1072-1G-8S by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 3370f88daa5947b3b23514c98202cd48 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4a85e5aaa45a4a289323e0438e6f5f09 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: d4687d0ffe8d4ac39d027fc8e9647c0d + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b32ecc16390c42bfbc0ad23305f59392 + expression: 'avg(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fb39a804a60e4154ad6602fad05c399d + expression: 'avg(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e35e3256fd58439d923ca54b7e33e64c + expression: 'avg(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 4cc4ce99e8c2450aa6a74075306f1b13 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 7765ee205fe64485a341109b2173e85f + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: ea9da810d00445f3b4649f8aec0d9ef7 + expression: 'avg(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 28a883547a4449ea96c1168aef939a65 + expression: 'avg(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 760505068a3946edbd38294f867e08e5 + expression: 'avg(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR1072-1G-8S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 750de67c2b6043a3a317ece3f2d182a5 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: f4ba5f4c17d2408b80f6962782d3527b + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: eacd5dec75404c9e80bd18d5ea0f3bff + expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 676d18905c9b43c4ad36b45c90bc6248 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0e79530582ee4e3aa270d8a43a96f7f0 + expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: af72ce8fb6344e6ebb946ea81453b276 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ddbe2cfcdd6f4d5895780fa6510acb73 + expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a78be7de743d49d8b9fa9070d32e4db9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5f8087b4f9ae4d3693d55d189c1f99f4 + expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: cfccdd73e3b246c9b2b4f9b242964699 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 81214dcd098f44d4aa3c3e33a8f23e0b + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: d9b11f3313d24adcbe7146ec9df681fe + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7e24b5bc03d74b1aa2ee0c9e4c56ac89 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 80fa9dbbb386432d9c534cbc86de36f7 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d258ab237f1f4e79a31778d42ef14447 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0b7cd68c901d46fea18594cb7b1df015 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ded0e3b9a1c84f84aa7fb6e05f0afded + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 572e7a2adba6465986872543912bc2b8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 29efa5a1a2fe4076a2a178374a52ada1 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c5a823ac8d684b8fb386090e3f48eaeb + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f8d680f85dae470296e8c25e692a3a0f + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e25c484ec45a4a01b51f961318813e30 + expression: 'last(/MikroTik CCR1072-1G-8S by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f8ba0c9d18ef405bbf1619f98028ee80 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 149ca6424d7241db8153ddb52ef1426c + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fd1cebcc629b4b559603b9520a97f30a + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8d07a2c675194a8c84c854a5717f2ab0 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 209f0a2d63174582bc660dc4d9c4410d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d1cd8ebe0db54c26af2f4d1695b74144 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c56972bb674c448496cdd99039a75480 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a1526abe61a3440cbdda84ae6bbf0dc5 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 335473458efe48e1b5a93e2f365d489b + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 24634d43d28146ca802ae4aee7af276a + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 192cfe0188a045f8ac9e903bc605f80f + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7a475a2472c64ee2b15b5f36c93e17db + expression: | + change(/MikroTik CCR1072-1G-8S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR1072-1G-8S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR1072-1G-8S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR1072-1G-8S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR1072-1G-8S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR1072-1G-8S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR1072-1G-8S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR1072-1G-8S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR1072-1G-8S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR1072-1G-8S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 2154cc56a5304ec5b6327852cf4eea8b + expression: | + (avg(/MikroTik CCR1072-1G-8S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1072-1G-8S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR1072-1G-8S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR1072-1G-8S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR1072-1G-8S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR1072-1G-8S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1072-1G-8S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR1072-1G-8S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR1072-1G-8S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 450f5f3106cf4755b48cbfd9d0c2a287 + expression: | + min(/MikroTik CCR1072-1G-8S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR1072-1G-8S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR1072-1G-8S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR1072-1G-8S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR1072-1G-8S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 18284f037cd04993b3eb236ab3616781 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 036680a2cc2e4c568a221b6456821b47 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 0b5ebfdb1d72421dbaf381bf1dd609ca + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 47623ca42a2c4b80b9140d4672329d26 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: cf424ebd271a4cda9ce1f69a3c735dfb + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 044aabf4d95c4c9ba7ccec76446f50af + expression: | + last(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 3a5a7043d1b64fe5a7fdefc341fcc22a + expression: | + last(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR1072-1G-8S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 719dcbc5a85e4d3e99a7906e8b9ee28d + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr1072-1g-8splus + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 6d5617cf4f184387987fe1dd7f052215 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR1072-1G-8S by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 766be8ef402c431995ab5c5e70970cf4 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 2a9c7cab3ad0446896cc2ef6121d4452 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: b5de6f35c8c14486b755175e8dee1d41 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 506571817e794083bdf3a7276b60c22d + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: be74bf6810694df98cd43a669e247aab + expression: '(last(/MikroTik CCR1072-1G-8S by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR1072-1G-8S by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR1072-1G-8S by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR1072-1G-8S by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR1072-1G-8S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: b7c290c65f1b4af7b22627824350bb21 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR1072-1G-8S by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR2004-16G-2S_by_SNMP.yaml b/MikroTik_CCR2004-16G-2S_by_SNMP.yaml new file mode 100644 index 0000000..3ea4a3a --- /dev/null +++ b/MikroTik_CCR2004-16G-2S_by_SNMP.yaml @@ -0,0 +1,2650 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: ab871d051e304f83950171c5243aa4db + template: 'MikroTik CCR2004-16G-2S by SNMP' + name: 'MikroTik CCR2004-16G-2S+ by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR2004-16G-2S+. + + This powerful and affordable router crushes all previous CCR models in single-core + performance. 16x Gigabit Ethernet ports, 2x10G SFP+ cages, active cooling and + the best single-core performance per watt & best overall performance per watt + among all the CCR devices. + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: fe29736edd494d61ac4339ed5234bbdf + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f37a32635c674102aaf1b7ceafa8532a + expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: dcda1847f1324215ace997f21e2c9136 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1889f2943a044c49830914fd18846172 + expression: 'min(/MikroTik CCR2004-16G-2S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR2004-16G-2S by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5505dcdce64f4d4bafc65250fdc44d55 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 805b3e4698dc4c55a4cc40712e14e494 + expression: 'avg(/MikroTik CCR2004-16G-2S by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR2004-16G-2S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR2004-16G-2S by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c94d1e5e789f4521bca649ff8106b4ab + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: d11712ab5740403f8ce5172310ce6f46 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: bd102e739e6d4ec183d94d8965f9c0da + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 77a875ad0d3348618ad166e13df8859c + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9a83fbe37f80430f986267edf2a52d4f + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: e2610c67fd0546d0a4f6d44515c38bfa + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b74cbfd6dbc84c0c916402c81fb11fe9 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6172f360bcca4bc6a105a5093be8665c + expression: 'last(/MikroTik CCR2004-16G-2S by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR2004-16G-2S by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR2004-16G-2S by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3c8159ac8de24685be689387f69e0e20 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: cc917e510e004211be5fc624b071fc95 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 80072866ba994094a279eb45020311d1 + expression: 'last(/MikroTik CCR2004-16G-2S by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR2004-16G-2S by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR2004-16G-2S by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7b849a56812d4ceda43c4c3c96c09911 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cfbb37cb51c94191a8812b4fc18846c9 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 234bbf0b94ae4efe9e0708ef7748a592 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 9ffbe2020d8b46f1ac730c038e9d1f51 + expression: 'last(/MikroTik CCR2004-16G-2S by SNMP/system.name,#1)<>last(/MikroTik CCR2004-16G-2S by SNMP/system.name,#2) and length(last(/MikroTik CCR2004-16G-2S by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 15665fae5ef043d2b39863ae3148f5da + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a947ad3c3e634a4185ed7e4d80ac2b11 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4776598588384d30ac472ec39df3ef25 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: d66d2b488b784574943c90f20d0153ce + expression: 'last(/MikroTik CCR2004-16G-2S by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR2004-16G-2S by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR2004-16G-2S by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR2004-16G-2S by SNMP/system.name,#1)<>last(/MikroTik CCR2004-16G-2S by SNMP/system.name,#2) and length(last(/MikroTik CCR2004-16G-2S by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 9d427efe6eda4905a4ea8838807a3aec + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 0260f825e71e419da953e2f6285318bc + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 49b860cd17af4bed904651fbe620d533 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 4a339ee32bc047a790562e1d17c4f733 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 02a8b7e7ebbb4d1baf5ee155167e36ba + expression: 'min(/MikroTik CCR2004-16G-2S by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: b7d3a7a170bc417190109ee6316f14e2 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 6c2ff9e7f39a46918bf5d1843c7bf615 + expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: fac0b2a001034a888731ce9ff4d0a0b1 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 76c25cbcbd7a415e821917887b552440 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: a81f9bcd4d4d4c4593654293b55f864d + expression: 'min(/MikroTik CCR2004-16G-2S by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 1695386899b54ad5b5b3e9268f323801 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b1f40fbc259f44db830072b49a5825ad + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 69c3af5ff75f4a6296f6cecd8c8259ba + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: ac0cfe319121487fb2009436d27f4f2b + expression: 'avg(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c1c53cec6a204411b9739eac84447c2a + expression: 'avg(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f0d3f01db5d44b74826326048bca05a8 + expression: 'avg(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: f65e9753464a4521bb8a537daab08a5b + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 44c8106b4f174854962a97a5fe3fc3c8 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: dbfb3ba672c944149aea12b3f4a1cdbe + expression: 'avg(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8c4ffcc25b254dc29928ac1ac0272b7a + expression: 'avg(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: df1aa24cf39947528099405c6cd311f4 + expression: 'avg(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR2004-16G-2S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 33669092f8b542fea3911e23337feb2f + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 338524bc1bdf414686576671882b5f68 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f929a190e2624171a7a4b80919ae025e + expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2fd85f6131924caeb2e73a630c7970e5 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: dff7058dd39f4cb294533048160b3b75 + expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e2133a97d7c4406e9b708c31b1ad691f + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e57c17fcddd04bdf921a9f1b6151ccb2 + expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f52a4a4442894479bfd0f9acf9b92945 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 95e376a33c1642c9a7d33b40bcda3389 + expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 6c9bc962ee1040c8b1c0a3b3d2353b61 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ac44d8d2afa445aa9684549d0d951a3a + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: deed4c15fd03467ba270ef2476dbdd44 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 85cdb71f2f184c73baef88358c86fc27 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e77874f460dc4a8580c63076388af10c + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7d033a3bf8644f3aa7f66dddd6d45f44 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1f70e9c256b64e698affb2216d124d24 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f072c431d2e24b84bfd3eba28cebd3fc + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: cac2679f249c41cab8047a266b63f685 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ef0f673527f4462e9728ef06b73d9e99 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 455d7ff186ae4990a1d60a8c3c165344 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2e9d6f80bfa445beb64b4d5b17125800 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 569c6b51c3714d84bce3522093e442a6 + expression: 'last(/MikroTik CCR2004-16G-2S by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 69a5667ce42d4c33a358f85ef695fae4 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: c830e4e275b64bbcadcdcfdc299ea555 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6ceda965a17f40f48cab26b697b66f13 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 24b6d9edd4f14d75954581c5f9396c4f + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 36a4bc21b0ed46bcb025388dad56ac51 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 655955f36c4849a796bb01f7a9a305f1 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d85d1c9656fc4f54ad77d127b0d544d3 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 85e2e5686cd24b7a9d32a2718609493b + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d0c19009d4c748a68122136f942b33b2 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7596859088f04a0785c6e5b07d446ba8 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 31d0a94b3f284ea699ce740276c5174c + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ef8a1963f5e743bb921edaa2115c9076 + expression: | + change(/MikroTik CCR2004-16G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR2004-16G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR2004-16G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR2004-16G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR2004-16G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR2004-16G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR2004-16G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR2004-16G-2S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR2004-16G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR2004-16G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 5fe8afc5b0554c0f99b8fc4fe914deca + expression: | + (avg(/MikroTik CCR2004-16G-2S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR2004-16G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR2004-16G-2S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR2004-16G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR2004-16G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR2004-16G-2S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR2004-16G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR2004-16G-2S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR2004-16G-2S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: f4eec00173b3447080d0528805b31aef + expression: | + min(/MikroTik CCR2004-16G-2S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR2004-16G-2S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR2004-16G-2S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR2004-16G-2S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR2004-16G-2S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 84a67bfc0ec444dfaba6eef5e651c244 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a03cd6a56cd540dea337b63f8ca5a1a1 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 6a9a5fa133dd4b1c9e4fb2f21a5ec905 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 8b2f31738f90436b984801b4cef65b66 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: dbc682e6a824455db742449efb76b4cf + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 8ddf161b19eb4716b1ec7cb270970703 + expression: | + last(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 0a19983ae1d443bbb4224a61d46b62de + expression: | + last(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR2004-16G-2S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 90c58f1e92914a32a4189f0029a5a5fc + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr2004-16g-2splus + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 853f6029980a4ce88bccf0d633670a91 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR2004-16G-2S by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 39905ed60f834c78836e3fe8b4cf34fe + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 308b4e2991ad4af88564441bc0e23b93 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 1624693f374e437db131f743864e865b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 95c329958acd4df1b5e2459725d50115 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: a885ccc0d0e546fe8a970ff4876f9471 + expression: '(last(/MikroTik CCR2004-16G-2S by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR2004-16G-2S by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR2004-16G-2S by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR2004-16G-2S by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR2004-16G-2S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 7b8e1c45b866470fb94ead58b60e852c + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR2004-16G-2S by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CCR2004-1G-12S2XS_by_SNMP.yaml b/MikroTik_CCR2004-1G-12S2XS_by_SNMP.yaml new file mode 100644 index 0000000..d355a07 --- /dev/null +++ b/MikroTik_CCR2004-1G-12S2XS_by_SNMP.yaml @@ -0,0 +1,2649 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: f2efeb94f4bd4ed9ab34a973c0363eb8 + template: 'MikroTik CCR2004-1G-12S2XS by SNMP' + name: 'MikroTik CCR2004-1G-12S+2XS by SNMP' + description: | + The template for monitoring Ethernet router MikroTik CCR2004-1G-12S+2XS. + + The Connectivity Router - your best companion when it comes to SFP, SFP+ and + SFP28 management! 1, 10 and 25 Gbps ports in a single device to make your life + easier. + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 9d1eadf8cb614f7db24af010754ecea5 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d17f5a29c6104de78dd9b66ae8144e9b + expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 747a11088cdb4336acde1a3db6b6fb0a + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f3ad9f5ef4734e6da08c699d937a1521 + expression: 'min(/MikroTik CCR2004-1G-12S2XS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR2004-1G-12S2XS by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5511b24404044a999a4e63b5742fba69 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 831afefc75dc472ab3d010757abab4e2 + expression: 'avg(/MikroTik CCR2004-1G-12S2XS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CCR2004-1G-12S2XS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CCR2004-1G-12S2XS by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7eea07e69bb74773b4741a220560dc21 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 6704e6cb375f4c1fa6ba5dd0d7cc48b7 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 03477df2c6a54edbb33043e0ad372aca + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 07ed423ecd90404da796326fdf88d59f + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: bfb0d94318e1416ba02a6d691a72e5a9 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 14a7067e6be141af97af075439c741a0 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9f94a0e5d26b401d84ca8a58b8121f2e + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 324d699f4767400e88e16f37ffcd2abd + expression: 'last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.hw.firmware,#1)<>last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: be05eb6603df4b2b974319c0b90dd543 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: c147284d49cb43b3950a28de281cf4a0 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 53e8fc3eac46426fbce375cc2ce983c8 + expression: 'last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b4d7b0ae4b874f41afc1d2bb18444f59 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: fc1ac08bab0c482f85f7666c9f932863 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a1cfc4a89a29405790c8004648397c16 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: ed353db14a0742a7a865e9805025e9a9 + expression: 'last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.name,#1)<>last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.name,#2) and length(last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: acec0fba9acb475298c23815478e1232 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 68aaafe3efc449c1b718af4da8675d76 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1da1f71f2dfd4c9ca450217a07068872 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 2a0736cbd3324122b51c4ac4629c1323 + expression: 'last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.name,#1)<>last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.name,#2) and length(last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 040616eaf53849ecbc02a4c7dea5ebd1 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 4b1df0f8bebc443398bdb240a7a30db5 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 370e2a4ed66f4cc8ba31abdcff08598f + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 8fef22e8a7e0484b8e4ca48b66b322a1 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 8246aab86f954be8968169f55889a842 + expression: 'min(/MikroTik CCR2004-1G-12S2XS by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 37dad400826443b9a70df99c46cadb7b + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7a821734dc78455fa363bf7a8c2f2dc2 + expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: d006aef2136542aab3e97092fff6ba09 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 76e284355196457393427df6475672c4 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: bc2854ed0ff645ae9a932ab5baa62a91 + expression: 'min(/MikroTik CCR2004-1G-12S2XS by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 13064af8424048bca2e925c4bc050700 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d135fc6382b74d1dac9287de6140adda + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 0da61f3ed2b64dd0b261e56e55e52e29 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b3d35f977375429a8a0f4b76dabf294c + expression: 'avg(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3be96603ac0a474694bf53d2b8aa8487 + expression: 'avg(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 809c702cedf749b6b53f591ee37c56ba + expression: 'avg(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: db3d7ea3f60f4e4fa53156f9ae87b651 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 6e122ae0407044ad9359fd2ce74b5897 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 973e5d05599c4ee79d8cc210b004f38d + expression: 'avg(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 58c9f09a52ed48f7b65a4ab6a7b19c35 + expression: 'avg(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cfb884d37884407fbba3f93515020352 + expression: 'avg(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CCR2004-1G-12S2XS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: d7d673db00e445b98ed9109f51f4a16e + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 93cb7e4e0fd2443d9c1c3ae472200980 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f5bf9d28bfb344728e481a3a478c6986 + expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 32087595f17c44d9b94d7762ef427ba5 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0b427fe9c54d486792c9388b8c2968cc + expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5a65177ee82a417f924cffbc6a92b593 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 130cdbfb721646ef92c6c1664dffce72 + expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c42347e1e0e046b68f557ce011be1886 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2df17dc1ca8f4d9fb135c23f86fb50d3 + expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 2d92488ff5874fbb9b13065df937a315 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 99450e2d4e3c4dfb8e1b7c28430cdebf + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 7be1291f79874e29aee64798671a6c80 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7ed23e95f7144fddb4f7c5797ea462b9 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7d94a281ff544e5bbabd0d41f3672174 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e184a832057f43b6bdacd2b6f3cb0c0a + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8c7307d75f5345dfb389cfad66cb88aa + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f69f464b8b59471f808b43772e1f5f4e + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 8012ad63d0e24bf0bfddc428389384de + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e6e8db7c216d41fcbfd28845c541255d + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e272eecff3f343eab7b6641e6429c47a + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 024d36a1f48f4976848bdfff2ee18fba + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d1a52557a4f746da96893c3d1436b3f2 + expression: 'last(/MikroTik CCR2004-1G-12S2XS by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 975657e824c94bf3a8360291daa1ee16 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 44c508b767ae44ea8257326f7d6077da + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 410f18fab2a34f30b9bde48c53b0758c + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d813c68f3b974dae80d2bb8060b4916a + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f0b88262b4ea40cc86b98dab09a0c8e5 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4bf81a1abe324c48b907e9f3f67152f2 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cd35bca00aaf4e4bbb577c4945dfb4cf + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b5642292e0064832b40a09cbec0027c5 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 274f221a50894d67ae7c8fa8f969811a + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: cb6f6e2bddc0454eb142cc35344e7082 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 50a691ac0639468ca1fadf2223da3319 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 127e4dfad7884ac782f9d31d0b84dfee + expression: | + change(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 839abcd582c340c8986edba7e8df360b + expression: | + (avg(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 32debbc2bfb546a0bcc3091494ee5b60 + expression: | + min(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CCR2004-1G-12S2XS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: c78f1a22b8a540e2a0d2b2f5672d4810 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2d71376139af4ae9a723edde527f5373 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: c84b3754fea94a91972a12d024a7ea34 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 2b54aec93faf4db280732db48075ff49 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: d02b3ec6c2d3489da7c29e85996d1a7c + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: dfcf03d83fb147b18be991b65d2298d6 + expression: | + last(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 95f44fd2b533449593e2095edda00fc9 + expression: | + last(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CCR2004-1G-12S2XS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 379200cf5dd64fcf8986b18d9ecc4cd5 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: ccr2004-1g-12splus2xs + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 4224f4be4a794f1ebefc37ec46eb41bc + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: d58e77f172d14ec5ab67d03296c7d38c + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: acf4edb812eb4123af1d8560e63221bd + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: ad346998940e4b4e8e131b26ee4bee23 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 6bd7aa56b18d4545891bfb11b69ddbd4 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 285c2be6116d4e5fae7d0cbad5ccecb2 + expression: '(last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CCR2004-1G-12S2XS by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CCR2004-1G-12S2XS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 9bda3903ad57436e831cfabedbf8295f + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CCR2004-1G-12S2XS by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS106-1C-5S_by_SNMP.yaml b/MikroTik_CRS106-1C-5S_by_SNMP.yaml new file mode 100644 index 0000000..5966b68 --- /dev/null +++ b/MikroTik_CRS106-1C-5S_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 20ea139663264c21bca0dcecf2e95589 + template: 'MikroTik CRS106-1C-5S by SNMP' + name: 'MikroTik CRS106-1C-5S by SNMP' + description: | + The template for monitoring Switch MikroTik CRS106-1C-5S. + + Smart Switch, 5x SFP cages, 1x Combo port (SFP or Gigabit Ethernet), 400MHz + CPU, 128MB RAM, desktop case, RouterOS L5 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 805fba01bb75425d98471a62dfe2aec2 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 93236f96ce364b1ab95c603503c6984f + expression: 'max(/MikroTik CRS106-1C-5S by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 0855d5a498274c078e8d2725b613f491 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e7c3d84b4e3f4faabd28f36984116925 + expression: 'min(/MikroTik CRS106-1C-5S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS106-1C-5S by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS106-1C-5S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 58c2d3109593425ca65b1da7b93de738 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4219929d04dd4367bf82c0c97f85eae7 + expression: 'avg(/MikroTik CRS106-1C-5S by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS106-1C-5S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS106-1C-5S by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS106-1C-5S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bdb027dba5ee41ad9213b392a20b42f2 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 20bfa7ce2793454a9c6215dc31c1c3a2 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: ceb8ab85069b4c7ca7c6517cf0c5b9d5 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 47b25b5beacc4890b8e3218ec26482a9 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f2572809e413471fa91f33189f575dc4 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: a4366a2506b64e07984fe3a3e1f1ecb6 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1a2326a0d3884a679d05e4430f24f9cd + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6739b5af597443449dcfb946d2b89393 + expression: 'last(/MikroTik CRS106-1C-5S by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS106-1C-5S by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS106-1C-5S by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2c11a09561a447949a86bbb75b9b7b08 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 8d750b95502a462dbca47ff6aacd24da + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: dfc2b8c7f27049a6bd51c283cc6a29ce + expression: 'last(/MikroTik CRS106-1C-5S by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS106-1C-5S by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS106-1C-5S by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: cb05d9fcd5f04045b38b2653aa3f054f + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 4578904cc2cd43af9f537ceef6307403 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b8600abc5e0a47ab821b656b2b781654 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 3bbc3dcf8127414abb426c830e8fddee + expression: 'last(/MikroTik CRS106-1C-5S by SNMP/system.name,#1)<>last(/MikroTik CRS106-1C-5S by SNMP/system.name,#2) and length(last(/MikroTik CRS106-1C-5S by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 6d23ba015bfa40a180851bd0a8e4ead7 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: eb2be7f070704027a3bc190da2937f5a + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4f4d1445451a41758afc06ba2a287805 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: dc48fc089a314b7ebae646f2dfb925c5 + expression: 'last(/MikroTik CRS106-1C-5S by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS106-1C-5S by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS106-1C-5S by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS106-1C-5S by SNMP/system.name,#1)<>last(/MikroTik CRS106-1C-5S by SNMP/system.name,#2) and length(last(/MikroTik CRS106-1C-5S by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: fa0703e764af4de88dd966d296da4cea + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: af7785e1221c4c458a333189d70208a2 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: ecb4ad0744b04ad9a9e650012e394e6b + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 2a8f4c7d1c52496093779c4a70e01668 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: fdcc98f2475247f29fdf48c3a4a69058 + expression: 'min(/MikroTik CRS106-1C-5S by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 506984ef2c14483cbfa7ab7e126cd258 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e38ee3ff9c5a438fa7785db98162b84a + expression: 'max(/MikroTik CRS106-1C-5S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS106-1C-5S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 6ac6410ae08249bf9c726821804aa003 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: bb72b4f6a895437a9eaf0d36a3ad5b68 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 08ca4ad1230144488299a8f4eaacef7f + expression: 'min(/MikroTik CRS106-1C-5S by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 9be53d92e0294bd095ee45b175187503 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a3099e04128b4ff7abbd6ac772306bc5 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 4dcd1df8ddf147c7b6dfd406ab6b6a6d + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 3f1ce913660a493387485d5dab3ebfc4 + expression: 'avg(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e7a78d2798b44c438a81c308d1a1c0ed + expression: 'avg(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 890865ebc7ea41ef8e9d3c794395092b + expression: 'avg(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 255e1f84524643ea8d827ad0492d5a73 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 461a7262a99f43cf99856fec3482dab7 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 0c035a51301746588e0bc01bb0bf425a + expression: 'avg(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: efc19507ca614ef487d0a9a637a8f7a6 + expression: 'avg(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 54b7d721900742acbb1548714c34c7c2 + expression: 'avg(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS106-1C-5S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: bd83bc1bdaf54b2595e8199219a6fa48 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 018eedc3f8c1435e9fad6581baaf6870 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9c9bab7ccb354d478ae1d5f7ab66f5ea + expression: 'max(/MikroTik CRS106-1C-5S by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9bb9bc5e259d40c0aca83914d08385d9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f44e31574a68494cbcefbc961662063b + expression: 'max(/MikroTik CRS106-1C-5S by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9ef5ed92e2e84b309dd05b862646970e + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9ebee838e00c46bba067094ea9732f6d + expression: 'max(/MikroTik CRS106-1C-5S by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 44f45954c01d4aa4bec812cb70bdedc4 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 90fc1e486dd9409aacf0f68f86caf80c + expression: 'max(/MikroTik CRS106-1C-5S by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 512de641fee14826b8c0f7c3d16e176f + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2319b534a79449108a419e8c866e66bd + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 5f92245ccdad4191980caa0b44b24a56 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 71fbf20e2ec8495c920df331edd59f11 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 59b84a7a0419432fb0651a86e437c88a + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 62208faa28fa42bb8444408f054b1a90 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f1966c50faf640539d3c3bbad1202b4a + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 032c67a20a064ca180eb0f23a43a67ea + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 8af73d5a781a4bcea86ef627eecc90b6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7c86d11f26724fbc820aefb5c8a5f036 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e8bc0e639cc342eda083157fe6a0e187 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ae5b708b4a044e81ac6f5be93762fed9 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2e15eff553614e51a59590c6e3df4a42 + expression: 'last(/MikroTik CRS106-1C-5S by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 845b1efc219e45f0a5b5cc9da4cd4473 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 37f61cae4f334011a5bb3e71a0d7e9cc + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a6dea41689604e7f9b3c0415b255da53 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f7da909ba9a24f4fbfead2636b0a15c5 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9b5bf23911b747e39229d905dd6e6fe8 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d2257baa2950456daf6c75cfaf7529c2 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 81e957d3ac6f40d78d17541ae25664e0 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bbb3fc3e3b7f401db406767070b02ee6 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6b4baafc654841238c65f6d08742a441 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b9f20adf207c43d192921831fd5c882c + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 9d878d01c9b94756b778524b1792bfb6 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b88f9f6974434f6ab26fbb747feb66e6 + expression: | + change(/MikroTik CRS106-1C-5S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS106-1C-5S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS106-1C-5S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS106-1C-5S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS106-1C-5S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS106-1C-5S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS106-1C-5S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS106-1C-5S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS106-1C-5S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS106-1C-5S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 7dd2c3c0a76649f097999376f6bd4bfc + expression: | + (avg(/MikroTik CRS106-1C-5S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS106-1C-5S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS106-1C-5S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS106-1C-5S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS106-1C-5S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS106-1C-5S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS106-1C-5S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS106-1C-5S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS106-1C-5S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 53652249393a485dab8db23696953e31 + expression: | + min(/MikroTik CRS106-1C-5S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS106-1C-5S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS106-1C-5S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS106-1C-5S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS106-1C-5S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 3e3ce3b1ea2f40eb9d32244326247a16 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6378383173b54dd4add56b5b8b3a6e49 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: c958dc4fb8b54d6c809b69478f92a991 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 341aa7a1559c4af48c2a8b5446930f2f + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: d0e6479c9b004f8b95fe47f197779b82 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 6a2a5c6ce51b4f6b912a01e45d1a5409 + expression: | + last(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 0df7d927286d47998fcf15c41bce944f + expression: | + last(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS106-1C-5S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: a58c6530ebe04f54ad52abca0629ca3d + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs106-1c-5s + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 40c7246fafa940d68c36f6de76049054 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS106-1C-5S by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: ce35f7985cc545bb821b0d0603ddcdd5 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 15e27cbe878e40b69ca4b16a3f6d1e2a + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: aae875e8761d49fda56524ee5d37f279 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 287ca5d5072f4fa7b96a31a0812e1cc5 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: f445d5e35c2b4296a670165e332be78c + expression: '(last(/MikroTik CRS106-1C-5S by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS106-1C-5S by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS106-1C-5S by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS106-1C-5S by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS106-1C-5S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 68f84aa153e54bc29be28a81d70f99e8 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS106-1C-5S by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS109-8G-1S-2HnD-IN_by_SNMP.yaml b/MikroTik_CRS109-8G-1S-2HnD-IN_by_SNMP.yaml new file mode 100644 index 0000000..5a4c323 --- /dev/null +++ b/MikroTik_CRS109-8G-1S-2HnD-IN_by_SNMP.yaml @@ -0,0 +1,2649 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: fac16383680c4454be48b6db870d975e + template: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + name: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + description: | + The template for monitoring Switch MikroTik CRS109-8G-1S-2HnD-IN. + + 8x Gigabit Smart Switch, 1x SFP cage, LCD, 802.11b/g/n Dual Chain wireless, + 600MHz CPU, 128MB RAM, Metal desktop case, RouterOS L5, supports 10-57V, 802.3af/at + compliant + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 9cb91d0e91ad4ea0980915a55042a92c + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 04d896fcaf2c4573bb077432604ca2ad + expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 7871185930284f9eb03c359baf2cd703 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c6468c0bef2c4ad2958d69df8364722a + expression: 'min(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 701c51a923e940b288bc486df8bcb896 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2b339fa462ce498fbf5d7557e8548930 + expression: 'avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0d99f44d8cd946c080edf97cdd666c4e + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 6cf5e50c19624d41bf53759f0dc10b4b + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 3d716d3580c24e49834f8b7927a62f18 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 787629e255a043ec89a9235792af48e8 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e8edfe1c42b048e69048164c04f24c99 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: d2c1cba3782e48e8a416e6bf5126de26 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: af43dfeeeb7c4f2ea7636e3409e70f1f + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 07248a02609a4964be773df77f86f30a + expression: 'last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 74bfb7d4834a499a8946c8275012ee76 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 13fa6f235afa4f968f9de61b0727dced + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a79318151008414cb9a0c3d788b76f76 + expression: 'last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d2825ec79526468bae315bcf4271c3bf + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 8d7d12e82d0141e7919135d93e955d02 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c549da27ab6741619d96c0473b6e5e81 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 3517d04dc5c34d07aad7ec73381deaaf + expression: 'last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.name,#1)<>last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.name,#2) and length(last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: dd1816fc79704e6687bb841d729695c7 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 8204bf9e17794dc1994d657baaafa62d + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b6e1b6013d3b41c68b4a0cc85bb539d6 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 829598b7b1b4404bbd959ae186734251 + expression: 'last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.name,#1)<>last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.name,#2) and length(last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 1ae38813c9984ddd8aae451c727200b3 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 53c2b19776d14395832025f398d613eb + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 644de67163d14fe384128d7a89780d09 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 9b69a0a71c2a410783d8275a732b800a + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 7f44b9ee964f4ae798f3af4c12799e12 + expression: 'min(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 62a7b8240f65452db1b62ebd3e608328 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: bb5432b89f7248758d05d4c44cdf0d0a + expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: b65b318fff444191b92f52c023bdee21 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: abec452fb1d54a13819afa0449a6c91d + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 37579561f5e74042827d0d3fc5dc85e7 + expression: 'min(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: f5d0c8258423411d86e9daf1a14418b1 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0c527e54de0f40d28c01d597cee2b37c + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: e65a3b598bd64bbfaf434ec1549d0ef6 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 50a28d8380d64feca6fb2691e2477fed + expression: 'avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6bd9170284ef49b4825cf347e1f43548 + expression: 'avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ccda9a03941b42b0ac184e22aa23666c + expression: 'avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 5afeb3e22aa4479ba0f2cfde3e39155a + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: ca23bb18b5df4e9f9f447b27ff453c1a + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 2c4b897afc03484fb7e435af025ac9a3 + expression: 'avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8de55e3f0a2d46f69d430362b208654b + expression: 'avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5d4582baab9b4b98ba6d6e3e78678280 + expression: 'avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 1040b8ec32f947d4bfce2fba18d7caae + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: ced1ce9c4d494243810034ddad5cb1bd + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b3abf2a74b1444d7af3cdfc8ac550ec4 + expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b6cf57437c7043a584ebb8376d658ef4 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e3300b34a9f34bbd91af48f5b8e89d9e + expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a68c39fc6e4248d9b6b073a67f58f4ac + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7a06e44d440b4b85ad3b102fccf24309 + expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 46d0b195b09e4def9ecce5f0d306add9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6950612291f84d1d805b2f250c133096 + expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 8099417bb7b44a5da8e0d7d05fc3c6e4 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 64ab5419005745f68eb2d06b0e48c6ac + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: c0a00ab0bfa543988d32114409df5dc5 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5d4556364513438399429334cc12f3d6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 689e40655841450b9b8c91595a26774a + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: bac9f6f2692348348abdc29cc4ead952 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: eb067e2b305642599ad39cacac524902 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f02ad98b3cb94232b322c4b66683e4b7 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 3ee889778c50431ead46cafe033b6945 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7666985eaeca4e78b03e8097acb39ca5 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6717ff0736644482be60d2dc2a6b6f1a + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 175056db73b443acbc16e9943cb83660 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 68fac07f6dd045ba8040c7fe813bdf2e + expression: 'last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: cc608b1f528d4098b8393eba8dd997d7 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: eb8ba9ef1cd842abafac43e6878edebf + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2af6f068b36a4a4dbaef7a545ea9ef87 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 82e97f30fe794772873c93e45fa93e3c + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 49e742f27d8c43eba3bdaf661a2af64a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2aeed3cfe655422289358c5baede343a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9447ff7e4baa430f8447ebaf910e5714 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f85bd6cedc754e45ba653247a94dae89 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 71eaf25c58ed46b8bbe72b7b6e41510d + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 518c5d16112b4b76a043d74e98748901 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 0f12f613a5a648ef8309af58cb69805e + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: fac8789a47e44e1e98a047f9a8af8a16 + expression: | + change(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 6f683ec4b17642b6add94e73ea306f2f + expression: | + (avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 71e00ff03c6c46f6a4b5b986c67e3c2c + expression: | + min(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 939d3dd20774413386677ddee8eab5eb + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8c2a6cde808244e3b99408f942095c5b + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: e12df58e65b94ae7b63f56f745d85857 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: e1fe51aa353d4808bce466924ccfc280 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 6169a9872cde47b7888e6e2c3b8f90cd + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 463c460bdff441ce9af1ea170ea4dbc2 + expression: | + last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: a758c3e0841e4fff93ff4bcaa41505eb + expression: | + last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 1ef7e8e42a954db4b7293a080a00bc9d + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs109-8g-1s-2hnd-in + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 3e5abbc412334f3b9f96a77c4a833c7c + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 10ff85e100864e88910e26efd34896d3 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: b65a31c66306406a8fe73e6c210c0ba6 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: d8e4b86f85e549e4a3641b36c3b8c0b2 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 61071e8ff079488dab143843f124fa99 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 40fac3f864c442f9bcbcbd5757070c38 + expression: '(last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS109-8G-1S-2HnD-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: f06f354dfd2b4ca881efdece1f8ed149 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS109-8G-1S-2HnD-IN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS112-8G-4S-IN_by_SNMP.yaml b/MikroTik_CRS112-8G-4S-IN_by_SNMP.yaml new file mode 100644 index 0000000..b0734fe --- /dev/null +++ b/MikroTik_CRS112-8G-4S-IN_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 8d7d49fd0b3f4b1f9046dc0e94457931 + template: 'MikroTik CRS112-8G-4S-IN by SNMP' + name: 'MikroTik CRS112-8G-4S-IN by SNMP' + description: | + The template for monitoring Switch MikroTik CRS112-8G-4S-IN. + + 8x Gigabit Ethernet Smart Switch, 4x SFP cages, 400MHz CPU, 128MB RAM, desktop + case, RouterOS L5 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 850f48b6cbe44d419363a581abb968f8 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c63272b308134676a35c7b8311d71589 + expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 6ab02f2204e94d9fa90e905c70312544 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 09d55f6987784bffb6024266e0895878 + expression: 'min(/MikroTik CRS112-8G-4S-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS112-8G-4S-IN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fb7fad1847eb4df9a2c26f60f61afa5c + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 235acd3457814902b4bf316065d05e00 + expression: 'avg(/MikroTik CRS112-8G-4S-IN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS112-8G-4S-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS112-8G-4S-IN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7a119a4a9a8c4da0972b5ce82723d645 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: b78240b0045d4816a6df23d650063d5e + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 9bad59edc7f9432988cf286b5497a7e4 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: a0396c448a24457583dcb11a7847731c + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d012ab84c8d6422cb087607c6d840358 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 7f69a36c9c86495bb84eb1e4768520bb + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5c3719bbbd424403b78d73824fdb45aa + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6729f53f42ff445c8ab26b91cdb811e2 + expression: 'last(/MikroTik CRS112-8G-4S-IN by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS112-8G-4S-IN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS112-8G-4S-IN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 35142b0597a348838f0f77cf7c11266f + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 0a2b5f7921d74498bb1761e5bb773dec + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 24e52c80e5544295b778c677d0de35b2 + expression: 'last(/MikroTik CRS112-8G-4S-IN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS112-8G-4S-IN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS112-8G-4S-IN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 730caedb1aba4e2bb914a9ac5e45bee0 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: dee2119103e640eab76243f6ff769c77 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: bd417ca6edeb4e7bbf446b8a3d003e7a + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 5431acc090c34d879e911cd90a52eb48 + expression: 'last(/MikroTik CRS112-8G-4S-IN by SNMP/system.name,#1)<>last(/MikroTik CRS112-8G-4S-IN by SNMP/system.name,#2) and length(last(/MikroTik CRS112-8G-4S-IN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 479d3825a16b4060a06b3bba21515a9c + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 3fadb391f77d44d099b0f1f7b51f8062 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c98293d0ebe844d390474d48a937d0fc + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 8846801d462142938e7e0683dd481087 + expression: 'last(/MikroTik CRS112-8G-4S-IN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS112-8G-4S-IN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS112-8G-4S-IN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS112-8G-4S-IN by SNMP/system.name,#1)<>last(/MikroTik CRS112-8G-4S-IN by SNMP/system.name,#2) and length(last(/MikroTik CRS112-8G-4S-IN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 3d10f1085341451cba47f63b06a4a06f + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 545eb326fcd94bbcafd561824f1759db + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 8a6c7605ff3d45c092dff46fdc9fa1f8 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 8b8c952075db4ac6884cb0b352a75496 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: d9f9ee61646a4881bcb34a5e564738f3 + expression: 'min(/MikroTik CRS112-8G-4S-IN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 769ce4d237c043a2a86af0a66ff06a1a + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2f271102d58b4068b87eab5ff70b7798 + expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 58462afd23c44a788d49469d4ba5f5b4 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: d44241dbf0384aaa85346f42720497a4 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 9fc63b1881da411baea0e78cd671606a + expression: 'min(/MikroTik CRS112-8G-4S-IN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: f3bb0b7df1904d698e1ec9e5c6b1254d + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b3042bcb96014348a57d25cd12829795 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: f720cbe0adb243c5b66f303bda66dc5c + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 9ab9bb63b838495f863feee9d62fcb72 + expression: 'avg(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1f68799afde34df49dd0d693872aa19a + expression: 'avg(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 21a3e86813114562a8e382bd3120030f + expression: 'avg(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: fc23fc78ca3145798b76216070acb4d5 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: e78b76cc8a864070b275f1e82d5a0cd0 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 52e3b8b493eb4ab09bacb707ed7454ab + expression: 'avg(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 00ed3d5d280f47a1b20073e87f6ec6f0 + expression: 'avg(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0e8120688a774b63823848119deaf4a5 + expression: 'avg(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS112-8G-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 2b33d07e9e4049feb9344a226d019e5c + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 678ca89bd7f7423e8e2d8d6dd21f7992 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4d8a166e4cc8442c87c2989fa87b8e1d + expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: aae34986ae5f4641891454a28570a71c + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1affa10b3e2d477c92951193292f57d0 + expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6b3e94493e3d4e2fa5a02850646131f2 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bb085163f97341259cd0d42e38c1685e + expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7e0266ca1918400abb2acfb74cb1208f + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4b214d3637994c89816ef4f951ce8828 + expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 68b35ab5b6314e7c919cbcb7a6a5983c + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 813fcc3573204df59efc2f4c83a14402 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 5062d6176d4c4ede829fb7679e093e56 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 57f9dfd940c84045a71a0d3032ec408b + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7219178010374790b7d121431223a50c + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 423a6fa257f14693b5669a663fbaa184 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5deabb9273f74a60bc5d869c8a744060 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3e5cfaec61a145a3b6dd2236da486408 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 8685d4c133e146d19389698719a19d6e + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 54a475089c49498ea96d0e063b37f678 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e69f18d991704f349e551e0f4024e685 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 787f088f58794997b39d55864ffcf25a + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9b32c491ea3d41bca60ab53c664ee369 + expression: 'last(/MikroTik CRS112-8G-4S-IN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a667d9273ccf46a5a9fafb58c10adf6c + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 9811386d3e94401c95520c93fde75b46 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8845d896a14f4db68cee5c8d4b9e612a + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 421c2c5345114a2686e880fb995c159d + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7b0e671970444dca8e1386ec7f0ca0eb + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 65118ff16f3649c1bab06b5620b278ea + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 92a754f7ae904787ae8f2fcd4bd0112b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3426adc2f7224e9ea037be081146df32 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 37a01e7bb0e24177961220d810df16a2 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d9beebab41fd436fad7f54cfab6e5eb0 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 90e74ae087de40efb7fe19e06b70a5d0 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f2b1a41fe508425cadd992422f9f2e1a + expression: | + change(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 89c85677363b4416a8718b6455c5e2ec + expression: | + (avg(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: b1ae075b11a2481da6a64b65c5d0d4a8 + expression: | + min(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS112-8G-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: a4e49eeebc8e4129b586f92ee8a0c51e + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0b14bb3471344128b65c76460c69edcb + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: b40d1fecfb4d45318642012a60debe15 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: a659baef4d94473caa9cfe962d04ffd9 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: f0584dd985664955b7513c97cce54f83 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 572cb48de9bd4010b907cff6efa9f3a8 + expression: | + last(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 10639cc4b8de4879a99c70061d5d48ea + expression: | + last(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS112-8G-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: a3cb6c6211b745469b2e42d7f10d2fda + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs112-8g-4s-in + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: ef07458aaeaf40f5b3862f633fd13567 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 554abaed99124d0eb787506c0cb1b56a + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: b59e05d6e52a4e3fb7546d7435c0dddd + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 59c270831db949389b6c8ae00b0ff394 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: c6ee3b849b6942238cf691ecdb90be26 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 7bcd342f9c4f467a98ab38a5ea3e174b + expression: '(last(/MikroTik CRS112-8G-4S-IN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS112-8G-4S-IN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS112-8G-4S-IN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS112-8G-4S-IN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS112-8G-4S-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: c16ba646be654f1ba85a9fa5955e15de + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS112-8G-4S-IN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS112-8P-4S-IN_by_SNMP.yaml b/MikroTik_CRS112-8P-4S-IN_by_SNMP.yaml new file mode 100644 index 0000000..03cb898 --- /dev/null +++ b/MikroTik_CRS112-8P-4S-IN_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 538ec67ce01341a9b281dbd86d86d2a2 + template: 'MikroTik CRS112-8P-4S-IN by SNMP' + name: 'MikroTik CRS112-8P-4S-IN by SNMP' + description: | + The template for monitoring Switch MikroTik CRS112-8P-4S-IN. + + 8x Gigabit Ethernet Smart Switch with PoE-out, 4x SFP cages, 400MHz CPU, 128MB + RAM, desktop case, RouterOS L5 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 8a3ff0b65daf4c47999b0f9877339b47 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 16ef2e7fa1a949298407a0a0b4d77746 + expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 710be8da30564d90816b724c4aa409f4 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1dbb087e217944aebb6cd2ed14685a46 + expression: 'min(/MikroTik CRS112-8P-4S-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS112-8P-4S-IN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9a37178d9a534fbca0c71e7f6387b718 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2dd9b73423b946f89dc7a421e12fd58e + expression: 'avg(/MikroTik CRS112-8P-4S-IN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS112-8P-4S-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS112-8P-4S-IN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6eea8e195ed24eefa9cb2c11df07683b + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 4776694f7d35412e9269dcda24a9a884 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: fd5785cc745a4c23b36e7b88920cb677 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 52453d3272f04c1b90334407a44ed110 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d449d74135b2411bada1c4f861fc471c + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 419bf63514994b58abba6586d4241c72 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 23de7a030b324ae2bee4fa96d6a724da + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 0f66010aec32455eb56414c1ba576982 + expression: 'last(/MikroTik CRS112-8P-4S-IN by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS112-8P-4S-IN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS112-8P-4S-IN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c41bb4d7171b44aca3656092aa2b12b8 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: de134343b324455c9e17396c75aac869 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 59c929b470d342b691b01b5d12f87456 + expression: 'last(/MikroTik CRS112-8P-4S-IN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS112-8P-4S-IN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS112-8P-4S-IN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 41c7402ad2354e5e8e5395b3e86d291c + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: c911a3f7ceb740719933b255aa78a86e + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c1bebf0a8a444b84a94f2edf0a631a4f + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 40ae2f08e95b4affab12454007f4bdc6 + expression: 'last(/MikroTik CRS112-8P-4S-IN by SNMP/system.name,#1)<>last(/MikroTik CRS112-8P-4S-IN by SNMP/system.name,#2) and length(last(/MikroTik CRS112-8P-4S-IN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 66bffe7a0b8041b1aca4609cfebaa924 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 4ccdb09d16244ab990eb187ed7c06248 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 709a68530d314d448fbf9f9339af594f + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: c9fb96d72f6942d1b4320014b2e40b0c + expression: 'last(/MikroTik CRS112-8P-4S-IN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS112-8P-4S-IN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS112-8P-4S-IN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS112-8P-4S-IN by SNMP/system.name,#1)<>last(/MikroTik CRS112-8P-4S-IN by SNMP/system.name,#2) and length(last(/MikroTik CRS112-8P-4S-IN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: e70529cb6c5745a688ab44cf3bf4fd79 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: d80810c2936846d9b037f5e9d00eb6f6 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 82807a05026644379df67c28026b9696 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 7bfd8141f2d34548a16f73ff7bb665eb + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 72863d07fe654e78b740e2f48e0cebe5 + expression: 'min(/MikroTik CRS112-8P-4S-IN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 3d39d94dbe8b42f9a2dd6d726f04e6fb + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d720c3c0a669406cad47bf135de9be8c + expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 1a85ac0568c2458f90a90cb7a0642370 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 768094b0e66b42beb95b8f67003b1650 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: a2148ac68e78401c81ea5ef66cddc04c + expression: 'min(/MikroTik CRS112-8P-4S-IN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: f4d14cb6ccdd44ccb5e43d449baa8d65 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 50423572f0824002b674a005262086bb + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 0e27fff5b5264b7dbaf9b3bd6babebeb + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 0e9494a8018f4943a84c1e6b6304439f + expression: 'avg(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6877c6d086354b5eac351ddbe1dc5656 + expression: 'avg(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 608d5359e01148a2b8dcc507a11f5ea3 + expression: 'avg(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 715783a411ee47bb9cca13c7ef7b5938 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 078f3735ac0d4403b539c27a77284658 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 5eff445458ec4f2f9b9b9085f9487f7d + expression: 'avg(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3d9498b115df444981717267ccbe926b + expression: 'avg(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c3b94c3a222746cc9f88c5f44c3e882b + expression: 'avg(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS112-8P-4S-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 4ec79e9f9a65495eae664a3b8a503978 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 5993db957ee9482d8145eb73f9e47d4f + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d3b264a57365416ba32dd5ee7f3b2c72 + expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ccfcd108155b4d359388311b7d74c988 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c69186a3c737437696414d1d1c434a3c + expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9e9296bb427c42828eede79f5ec62c1a + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8179d0962048402c9843878c34f3a45c + expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 53fd3660ee2b45eeadb7300962bb1ac4 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: fdb14600d90a448a83bdc51dd170296b + expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 5cdf7db912de4880950b91606659976a + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 67a4605912ca4fc0a37325b87e637600 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 1cd0e51853ff4209a21912f6ea9bd1b6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 73bcd9521b2e4a13898d1dab0632e76e + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 332f17f8800145088ea65fbd56bcc355 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5d3d6f97506b4fc3a5cef2c6a03cdbaf + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f74d9c3ed71c45bb910f08bcb0fb3eda + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5ace2ebfb2734287abf9d361fedfb4f3 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 22afbe0ad8394eb4a37788884df98278 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d171d2cc8f774581ac7bb39ec8749bcd + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2527a7e7306640dc83a0c810a9ff248c + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a1f9dec23d75439b9d47670c93881360 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f60557875559490a891eb81c11e0cf37 + expression: 'last(/MikroTik CRS112-8P-4S-IN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: c2479dd8eab044e3b5f141a0f993a24c + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 5cefc809031745debdad7316afafb304 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3b0097d2131f4081a6f80d5d91c5db71 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ec9f44208eae4baf84b8efeac18d4218 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b1c8a69233b94c898b8f5af80a29b182 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: da9968a76a9c43d3bbf6ecbe786797e2 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e356fde53c964f17a4b0794102bf76e6 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d32f4d57b4f34b1696480ba583812e69 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 68e8bd9d8a56444a95cb7215518e4c2c + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bdab20ca351f4d39a27c636b33df9de1 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 835bd6ca78b143af833d267e408f9862 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ba58df29a51d4ad6b415654f10968e27 + expression: | + change(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 29ca187c6d6941caab396f6b57e86746 + expression: | + (avg(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 72076d70d7b644b19e64bd55fab5e594 + expression: | + min(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS112-8P-4S-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 490128f059d24904ab5e6ef0454ea3d4 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 1c4b3868273546bb8d2a95f30cc9d1ed + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: edc44941d5e449b4ba5400e3c614861d + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 1fe1c3ed7e1d413e9c5717f7bc511845 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: bffab5765d194dd6a8f74b5b40f2ec8f + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 2e7f4f0eaf384c68acaf1bafadc6296a + expression: | + last(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 380f830e3e714a99b9c7b30c1fbce14b + expression: | + last(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS112-8P-4S-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 3923f122da254a36b7c89cf96d85dc02 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs112-8p-4s-in + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 27f10d9f84914d3eb00de7940fb49f96 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 844451a575b14c3abccb52db6637c57c + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: f258811d525d47d7a491ffca5cf36211 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: cadc9c4a3e0549a9bd4092539a6e788b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 85b1c3feb18c4cbeb187dff5c4dd723b + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: d81cc3699a454ae3bd9bf813fff8e286 + expression: '(last(/MikroTik CRS112-8P-4S-IN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS112-8P-4S-IN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS112-8P-4S-IN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS112-8P-4S-IN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS112-8P-4S-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: f68d99090e0c421288deee125650eba0 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS112-8P-4S-IN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS125-24G-1S-2HnD-IN_by_SNMP.yaml b/MikroTik_CRS125-24G-1S-2HnD-IN_by_SNMP.yaml new file mode 100644 index 0000000..fa768cd --- /dev/null +++ b/MikroTik_CRS125-24G-1S-2HnD-IN_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: c8db153405704d859ba5ee19f08b46f3 + template: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + name: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + description: | + The template for monitoring Switch MikroTik CRS125-24G-1S-2HnD-IN. + + 24x Gigabit Ethernet layer 3 Smart Switch, 1x SFP cage, LCD, 802.11b/g/n Dual + Chain wireless, 600MHz CPU, 128MB RAM, Metal desktop case, RouterOS L5 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 743501d05f1540d681f8112a805f1a0d + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: eccaf3e02f9944638588b82322322c32 + expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 21ee91bb65fc4b6bbb83c1e35558b7d1 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 71286dd187734ee18b53fdf73602ef7d + expression: 'min(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f13323a6a0e84d2c865f4bf2d5e59f79 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 18e8caa0b7a44c64aaec1d5eecf76297 + expression: 'avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5ec4870e9f7c43c3878cf05e1f4dbf09 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: c0063fa878ba4844b1a81eec31be3a8e + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 2dff60db5ff640839ebfddbc68c72243 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: adabeec14fdb405495907ef6771a11a1 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b448f8cfabf640ae9f61470baf2dbab1 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: c6403a32598e400db8084d77083d1621 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2fc0c608418046d0bbfc371f5f8d8c22 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: f0c59541e6df4c649e7c2ef76d7bda4b + expression: 'last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6a3ca4bce4da4e8eb6a15a2dcf51bce1 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 589cacbe509547bf944f7c8e3a518c7d + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a1cf2d27ddc447988aa808318aef167f + expression: 'last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d226673194c84ee7968632b06060d905 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: e0e2d52ad8cd41dd92a97669e89c5fc6 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6edc651f2acd4a718b1802aec08cad0f + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 681af1da9ba7432aa407019b1ff5192f + expression: 'last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.name,#1)<>last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.name,#2) and length(last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 3afb18b2452e45778ce5cdaa20bf58b8 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 590c0449f2fe40999ac2d758bfa60058 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 31fb56c30de1477bbe69306c2b9e3d69 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 9bfebd1764bb4acc82fa8c7f175c0b87 + expression: 'last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.name,#1)<>last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.name,#2) and length(last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: e4aa12d55f344d8e8a2f78ebb2242db8 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: cb66968d87fe41a2ad4c5cb769849be4 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 62b4597135824686b5de3cd51fcd46f4 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 414bec3767eb49c39bd67a135f60ba02 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 9af92a1dddd0405587bb090b8fd5757d + expression: 'min(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 752fd8bdeaed449484add53bf1cfbcd7 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 147de2ef3a3447cf9401f4197e911b17 + expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 6d574937fd7e47c8ba7da4fc7df2b812 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: bbf74ce8d13f4b3eb6e3a949f9fc95fc + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: c06050c48eac4f8f90df94c6d125f369 + expression: 'min(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 7af56504cad442c68f801cbfff17952b + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4001b2da26774319b5e8754eccb9ace6 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: e998ed1fcfc7498a873448c59d912f48 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 9f6533c6505948abb10869f4d0a11070 + expression: 'avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e683521cc3de43eaa7c8ecbbb360fb7d + expression: 'avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2d1bba8f19694737a6cb59e12289327c + expression: 'avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: fd1e16940eef4715906c2f8241df141e + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: b9b599a6f7d746959af746bf348c3c45 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 8db96c9e7d164b0fa6d2af61899ea427 + expression: 'avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 33c12e280a464d20960ae73341ea3dbe + expression: 'avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4fa5ef5d55fd4fc8a21516dbfb0ff7eb + expression: 'avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 6da207d2ffa84756a676fa7e7bd19e40 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 28a57925dbcf410287cc33e680208531 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: fd43c6f8ed834db3a69e6c30c29878ed + expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bf05683ec6bd4882af965c5671bca4c8 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 685f5eba5ddd4b2ba3173fc82367b476 + expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 39b0a1c4d5134fb7a2a6bd114278a773 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4a4f14e171504413ae16d92597fe1024 + expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 250f123915b94618b4af6aa4166f6e9a + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ed070d7bccb649a49b29eda9b8a02192 + expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: efcb23bafcdc48f1b64090c437c18799 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e6a361bc321a401dbcc3a362799d450a + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: cbaec92328d34e08a4c168961cfc8833 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ede61f7e21cc41e2abe7e8931aef6b95 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3ce1884489f4482a887756abf92248e5 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 56bdd3739b874e8db259ac6e4736affb + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f952b47d2a4e4f2991db17dd89e79f24 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a2e92faea0da45b59a9dd254440c875b + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: dfcc5d5ab4584fd48ea22b5f5e00e8c6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6509bb0c5e044c0580398ca99b768b75 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8661f6e91dbf4d9a93785f07157eec93 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ec83a91a8b284f3a9137c8c4cf36a9c3 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 89940e123e8c4c04b402a436c977d999 + expression: 'last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0f943d18ef9148798fe783d3aadb9047 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 6d300fabf1494f4a8f454eba95dfecf9 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d14d2c8908d64ce0b3adb45fc8c4a210 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0621b5bff79843ea9579eac665a352bc + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d4d79ba39825445b8cb59e76bb67250e + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0558424847e9412889bf0d009e0002c7 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 56ba20c1f5ba4ea58dca9dafd83c8352 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 906c4b98ecff4caf874d44d362a62a07 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e2d06c66e8574b5ca0083ecdb8e5b050 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1f51aae95ee44368be4327fa0bb02c8a + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ff460a89977d4935a59a193d08d31f4a + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7ff7bef321134c08bc70b8988abb91c4 + expression: | + change(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 43f1d416170f493d825b087a88fd8b0e + expression: | + (avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 6e91f3d30c5a492dbb56b284594aa6ba + expression: | + min(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 748a89b01346486f8241d73272e2c669 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6b80e43f0d004ab4baeb51a772d91457 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 929ef695efdf4e60a2e47cc0be74e69c + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 1c12733c14eb45a8bb36b3fcb8ef7ce7 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 6202b55760514c64832b9df48828c344 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: e5df295edd2848329708aaf765a8e8be + expression: | + last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 31ff4cd8ae95435193ecc37238327c4c + expression: | + last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: e4d5a4fb28804aacb284c58ce3b8cc09 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs125-24g-1s-2hnd-in + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 00fd7d5a79c1491e9e76559f3ee86cb1 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 88ab84cb938a40a3918f884efd188d15 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 6b690add355342aea58455d2e54f9202 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: b217d2a84c9844a08e6fef80c9dc6297 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: be9bb4ec29c7453aaef08944117fa319 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 6cbc680faf50402a8aa5eb6b2b848f7b + expression: '(last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS125-24G-1S-2HnD-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 468ff969bf854e30b118c517caa85d82 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS125-24G-1S-2HnD-IN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS212-1G-10S-1SIN_by_SNMP.yaml b/MikroTik_CRS212-1G-10S-1SIN_by_SNMP.yaml new file mode 100644 index 0000000..5bff254 --- /dev/null +++ b/MikroTik_CRS212-1G-10S-1SIN_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: cdb6ebceb1174bada392dd24889b14d9 + template: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + name: 'MikroTik CRS212-1G-10S-1S+IN by SNMP' + description: | + The template for monitoring Switch MikroTik CRS212-1G-10S-1S+IN. + + Smart Switch, 1x Gigabit LAN, 10x SFP cages, 1x SFP+ cage, LCD, 400MHz CPU, + 64MB RAM, Metal desktop case, RouterOS L5 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: f32e2f3c5177420098c4d49d41efff73 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 6883be571ae343a791670f2f0c36cd02 + expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: e23f070baecf4e85bfd4b919a313363f + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ea3e5695d49f4868bd6a83e67689e5d6 + expression: 'min(/MikroTik CRS212-1G-10S-1SIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS212-1G-10S-1SIN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 19cb2bfb6b5a4aa48f38a6346ad1832f + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4439b1b6d31d4824ba1ed448d9bda1b4 + expression: 'avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS212-1G-10S-1SIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS212-1G-10S-1SIN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: beda6c376a0e46ee8558a0084690eeb4 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 633c28cb77e345edb42366280afe8b03 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: ddc1215a46464ed6b5e379d243816bc4 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 2fed3da1b4d646cfab6e0249e2cb9c6c + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: cd348b7d795641c8ba04fa4eab0f312d + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 87adae25334a4965a6d03f5c611d8359 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 86226852333f4573b461e7283ae93c8a + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 70a98e004bd34fb48e9c410ca52f4bc0 + expression: 'last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: cf0cd44044154f0097685ac4da1e0f6b + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 3ec9f238ffa643c28011036ece349c2e + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: e4da63844b774f4eb9e0188f659f256d + expression: 'last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 76f9415c139b4c78bb5e77e094ced5e4 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: c8656758df544bccae950414c2adb969 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1a852e5ecb4745e4aaf6d819c8614c0c + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: ab81c691a90a409fa0d24ddac4ee455f + expression: 'last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.name,#1)<>last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.name,#2) and length(last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: a8f78c05de534873a8cb2250c528387b + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 1f4839491fae42fd96d63f960486dc02 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8ebce52c1fe045ef9e774aefb3359667 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 9f738a1caee34259a3d38e52ddb6c791 + expression: 'last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.name,#1)<>last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.name,#2) and length(last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 37778f9029cd486fbeedd2db776d7d8f + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 1ca1d02815cb46dba0b2b27de86cd1d4 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 891105963e744b8283682a5e4520347b + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: b78b6b52884148f6b925e99b418f1838 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 640203769816409d883d5ba38a6ff4e5 + expression: 'min(/MikroTik CRS212-1G-10S-1SIN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 6ff75377e11348e7be6e65301ba29aaa + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 94b83963c4474cd5a8d21a8cdae584f4 + expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 17aca6820fbf4ae3b7c0bbd36ae191a5 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 0617289aa301456381283c8d42ca6edb + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 087f5705a7ce4a88a8c699541ee704be + expression: 'min(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: acbf5458996a46428574c0a90df0958b + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: dde29665f66f4a74bda66ffe6896b8e8 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: f3302ebef61b469898e0f37ac3607723 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 8aa17694ab184951b24093d8a765eae0 + expression: 'avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3c33429067c84714b68c4bbd8f729bc7 + expression: 'avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 100002ca08614467b16f313dfeda6e68 + expression: 'avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 1b64317c196f4a31b8c7dfd614b285a7 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 412e6077aaed46bebb182343f1b97023 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 757ac3b43a62450f9e49885dd654167f + expression: 'avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 71f8b72b4c7240a8a4e10b503a2aec9f + expression: 'avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 818f218a8ee3455db507dcded146c3ea + expression: 'avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS212-1G-10S-1SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 708e4d3595004248a8acece9641eb4d6 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 7e39549bb6e34cefbd03c9f789ff5f83 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6a8f6966f59a45e48a68f0343c372973 + expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7486c89623e34e8a84d51df4ea38347a + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0b4661e442014e21a98e56b8b332a6ba + expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8b1a41af48da46e5a0c37e78a68127df + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d04782f202c44772b039867d744582de + expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0c18873c93914367a7aa54156964e0f8 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d8d6a75db4de4ff7b8b2f4ab1f8d7258 + expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 52ae7c9217d64fc89821768bb16df21c + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 05c6b3cfcb15488d801fcfbd2df1d68c + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: b306260935274f8b93476cce0f740da6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: fb5bb87dd9ec4ffd8ac9745dd7e5e698 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a0576fd0cfbc47d3a48d651dfed2cf7f + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 29464ad001e944e2a007e9b6aedf07ca + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9f93a69ba465474b8ff554e9017de788 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9e73e76f915e447191c77ffa452d3a38 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: aa139caf38304d84b98a905b2d1f246a + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e5b5cdbce91946e38b4d194c3bc645c1 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 847ad6413af94fe89bf6d4f78a1fc449 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3cc43df83ca24a50b44e8b6d899d29ff + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6dfee746a74b4f96b103202b00ed3720 + expression: 'last(/MikroTik CRS212-1G-10S-1SIN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 162858d4c89c44008f4c8c4226cf598d + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: b0142c0f46e04546be8383863c1255ba + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 01791b11bba547abb88d2d607c88903d + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8e9f42386005498ba508ba72570a6b26 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e3e1bd9a9c3c43fcba1e8177ad653682 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 653e8d4bfcb147989e5a5a5d49b3bca8 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6d516f24cbc24bd48656a3a7713c2c0a + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ff25d8ade4ef44b6888a26aac9d54344 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 15679b8403054515af9c4ad21081cf2e + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 61ea7de46c3841c7a4fc04f67ef1448f + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 08ff8dd9165b43519b633c4d276fc2e8 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b34e8d6b7e81481bb19b3f39236c29e4 + expression: | + change(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 3c74af72b29e4b8484ccf36539caf234 + expression: | + (avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 6fae861a027a4965b5b80500a218c0f1 + expression: | + min(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS212-1G-10S-1SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: b9376c60bb114fc4b6c018d068dd6d7b + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2d496a1a38a14321bf35adf43537dce4 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: be9283a19af84ddb9cb2c9475d4a7170 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: ad99f629e6e94c8abad0215c9a914907 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 9c2accea5a7a488ab6ebc3dd31f3e797 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 2e330eb1ac0a4427ab150c2f1c3949b0 + expression: | + last(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: ba3b9fe3bb7041c5a2e7d9fec8bed517 + expression: | + last(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS212-1G-10S-1SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 712ea2b949224520bcde3bc03428d21e + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs212-1g-10s-1splusin + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: acd7bf00fdaf47fd8d167aed76a7c63a + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 9a2a53f5b1ee4cfd8128d6fd3ee94f19 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 6efc0b7ffc2e4205b2cbcca15ceba64c + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: d6a4ac3dba1d494e8a61150fbdd8cacc + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 4fa91d64132a4c2089cba197f734c0e3 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 1d5170eb0ba14c4e8799d712ee84d004 + expression: '(last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS212-1G-10S-1SIN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS212-1G-10S-1SIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: c8af9bb0fa0f47d1a1ee3a36d346483f + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS212-1G-10S-1SIN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS305-1G-4SIN_by_SNMP.yaml b/MikroTik_CRS305-1G-4SIN_by_SNMP.yaml new file mode 100644 index 0000000..17341f6 --- /dev/null +++ b/MikroTik_CRS305-1G-4SIN_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 223101f878704022a04c30c3ff066e3f + template: 'MikroTik CRS305-1G-4SIN by SNMP' + name: 'MikroTik CRS305-1G-4S+IN by SNMP' + description: | + The template for monitoring Switch MikroTik CRS305-1G-4S+IN. + + Five-port desktop switch with one Gigabit Ethernet port and four SFP+ 10Gbps + ports + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 84648b17d61b4faebfd5861a0fd1afe6 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 31542fecf2794dcb8b96293087b71526 + expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 896f08cd051e41a8bbb0f63fd1a23bb8 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ded01e910a0046fa94a89c7011cc9514 + expression: 'min(/MikroTik CRS305-1G-4SIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS305-1G-4SIN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 209d4503520a4a61a183f7f1c303a801 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5c9b3116dc4140bdb7903a094fbf098f + expression: 'avg(/MikroTik CRS305-1G-4SIN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS305-1G-4SIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS305-1G-4SIN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f5e5336f6421402b8c5b2ea6df651c21 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 8c82a88fd1e84ebc8b364e25cd454b43 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 035cd00faa4b48d69b8ba9d93d5adb1a + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 44e64e9c36ce40d7b2a2138dab8030ee + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b555f355a97e4a1998ebb08df62c380e + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 14055a3a922f43c083ec97dcb8899085 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a90c400056634a4b8e1befa2b5868e1c + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 66ea5bdabba4438ba8f9959e0c4b24ec + expression: 'last(/MikroTik CRS305-1G-4SIN by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS305-1G-4SIN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS305-1G-4SIN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d1a55ccf0dd640439c149672d9f86c11 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 4ab55ba9cf82449a8b683ded8c691a11 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 425777ce38e54daba1f6501bd4f6bf6b + expression: 'last(/MikroTik CRS305-1G-4SIN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS305-1G-4SIN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS305-1G-4SIN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 43da9de2e9b949ea9844ac7e8991aa51 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 1e385c4c4f7145d1a7973fe1f7dcc1ed + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 83cb30ef232d46f79f01c47ae7477270 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 1e2f2debb1cc4f13b133cbe6600c99cc + expression: 'last(/MikroTik CRS305-1G-4SIN by SNMP/system.name,#1)<>last(/MikroTik CRS305-1G-4SIN by SNMP/system.name,#2) and length(last(/MikroTik CRS305-1G-4SIN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 2b284f4d96704b71920bc8b3beac050c + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 1c220049b4b94d08b35e03fde9111ded + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: dcb3f5f1561543959e170e62e61f1457 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 73aec359593a4ce9ae07e66a39ea2275 + expression: 'last(/MikroTik CRS305-1G-4SIN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS305-1G-4SIN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS305-1G-4SIN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS305-1G-4SIN by SNMP/system.name,#1)<>last(/MikroTik CRS305-1G-4SIN by SNMP/system.name,#2) and length(last(/MikroTik CRS305-1G-4SIN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 1ad2255031b94fd8a344a9436f2154af + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 4cf79d752ffe4eeeb80db78bd1f39813 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 4682ebaf961d4782b7447de52646dfd4 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 805237bf56894386acfc37c7f38ad907 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 179753654a4849d48935c10417994eb7 + expression: 'min(/MikroTik CRS305-1G-4SIN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 3616f93a2ed449e38d95722f4e318497 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 3efee76288274e42921647d5a1d82ab1 + expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: dcc0b3e7e4304c27b9156deb1fb56781 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: d6a562ef91ef4c608232e2d0f98dfcd9 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 295ec169c36b482790f9091db3a39357 + expression: 'min(/MikroTik CRS305-1G-4SIN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: aec4c254cd944a1f8ac6bc911e6ab77c + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 1805474bc45841be9203aa4431c6e5f6 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: c1d7c3be659d46b79a6122a3b07053d1 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: ae05e13963974301850e66f5e4f33a2c + expression: 'avg(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f5b55111b94e427082a07baa856bb4fb + expression: 'avg(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1e19d78e1b394165ab9dc6da8c072ab8 + expression: 'avg(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 13c315f3af5747deb5590a52d979f2df + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 6915ae48936a4ce084412df12c92b80f + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 588874bb24d64ca6b10179eab36fa7c2 + expression: 'avg(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 40cd8afdf46a4d03aa426cedd7ce7d9a + expression: 'avg(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ae2260c1ecdd44e48e72d43ce1936222 + expression: 'avg(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS305-1G-4SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 87ca6cf207f147bc926d521530449c81 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: ae2ffeed2a7749dba00ab3a2b65d4091 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1e1893cd271a4b1f9d04afb520cd6925 + expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9e1d91dcc55b43b9a9a33a50e08f7037 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c045d57678f4478cb6caf5fb0a80d0e9 + expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 45cb37b6dcb64115b7fc021359f5e2e1 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8125b0058dfd42e786bcf3cac7ab4c88 + expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: da44c19b868a41058a5c91792e4153b0 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bf70869515ec4c35814efa05b8305403 + expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 15a4213a18ae489f8f11aa948a075e68 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5db9feb9d197453aaafd348c3d525f3c + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: f07162a9b65f4b8ba99e9ad37ea78141 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c57390f8e3764add926431b9b6351ea0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4723a555cf1e4c179e9af54cd8c7ca10 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0004683dd9e84d3b92bb5f6b5304bb9b + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b4e81fbbecf2479798c604c3514b25d9 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 26e3b6942ca64f0ca17080a7149d695c + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: bc35de18a55042b2a090d3bdaa87029c + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b06f561f915f43c198d4fd011ea676f0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f14009a9bae64d0ba293f710149ca764 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 62ae5c6fc3504346b37b997798bd635e + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9b78a081991540cda9aad21e6255b632 + expression: 'last(/MikroTik CRS305-1G-4SIN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 341d0f810f7b47e4ac81a7bf25716179 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: f00173a7cd3546a68064f348b99dbb78 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d758573510064110bdd2b4319476d909 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 405b8cbc415a4d63a9ce1d925d89c233 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0afa40c2bcd24f09b4ab9943cf383198 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: dac4dcac3a8244448aa9c41a369dac2f + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7063424dec694e81900014d9e0281d13 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7b50701968654f54815b9952a224ae5b + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f7ea1a7b96cd4095b1bb71b023a55a5d + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 979f432cdb8442faa8105b295b394dda + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: c45e431a237d44ad9942c388d8399016 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 19b7437f8a91461da91c77abec3ae9f2 + expression: | + change(/MikroTik CRS305-1G-4SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS305-1G-4SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 462f683cfd5d4c5096b23d7051440671 + expression: | + (avg(/MikroTik CRS305-1G-4SIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS305-1G-4SIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS305-1G-4SIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS305-1G-4SIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 25641b52614a4e3b9a11af9212c47b4f + expression: | + min(/MikroTik CRS305-1G-4SIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS305-1G-4SIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS305-1G-4SIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS305-1G-4SIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS305-1G-4SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 4262ac5550524146acac664b0bd65f3f + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 94d8fa584eef4573acc2861060902fc1 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 32902345efc2483d86aa7dfd2d02d6c0 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: afec00d5d90c4386b2d32c03f22a6374 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: b3bb874134804e9f8370a774867715bd + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 7589fe3f0e3e4c26ac21cd314b1c07e7 + expression: | + last(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 30977d9643d6482c89fe5a08030c559a + expression: | + last(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS305-1G-4SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 7924cfc798e048918fc496133557bea2 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs305-1g-4splusin + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 1babaf61ac334c4ab7fe76a62dd9555e + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 741d15ef55334ec9b017e355a1ed958b + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 9b1f0649653b46c7be262934f376926e + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 9493572ff58f4e4c86208bb8ac839aa3 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: bb18fe8a5404430e95b6bb00d571e6ed + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: a888ad0e55f14ba0803bf6923dc7d227 + expression: '(last(/MikroTik CRS305-1G-4SIN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS305-1G-4SIN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS305-1G-4SIN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS305-1G-4SIN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS305-1G-4SIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: cc0355295c4545f08e2499321ac6a787 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS305-1G-4SIN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS309-1G-8SIN_by_SNMP.yaml b/MikroTik_CRS309-1G-8SIN_by_SNMP.yaml new file mode 100644 index 0000000..156d7e4 --- /dev/null +++ b/MikroTik_CRS309-1G-8SIN_by_SNMP.yaml @@ -0,0 +1,2647 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: bcc01f2b466345c4bcbe0cea1a7884d1 + template: 'MikroTik CRS309-1G-8SIN by SNMP' + name: 'MikroTik CRS309-1G-8S+IN by SNMP' + description: | + The template for monitoring Switch MikroTik CRS309-1G-8S+IN. + + Desktop switch with one Gigabit Ethernet port and eight SFP+ 10Gbps ports + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 1b8d0df3c9a2401488a12c5d051de0a4 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 16bfb1a39fe54fa0b512ed93c8c3b00a + expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 3b909ebca73b4baa9364db355d5e59d7 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d166ae7475f5416499b46a00cf5de374 + expression: 'min(/MikroTik CRS309-1G-8SIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS309-1G-8SIN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 29d7a47ae93d4911991c092032c1ee9b + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a59d0752d5724f01a783ef8b4131b9d4 + expression: 'avg(/MikroTik CRS309-1G-8SIN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS309-1G-8SIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS309-1G-8SIN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 150711267ef340699fe081bb23e7331f + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: e5776492fa6f4d71a1897a7cfa6b6917 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 2c3c5ede40d241669525c556c59faa95 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 46ec5face2a247c68467116594f4ed53 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: be3ad72bd2164a5cba49bc9423c97595 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 6b823352365a4b4da3437839445f7373 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a66560b690d544ef8fc657812a602157 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 32127aca202644c5915255006e9544b5 + expression: 'last(/MikroTik CRS309-1G-8SIN by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS309-1G-8SIN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS309-1G-8SIN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c8239bb961ee453da2885a8abef9be34 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: df405f764813407eb03d6f7a6308c5cc + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 7bb01da1713c42c1ab28c1ae2adc1260 + expression: 'last(/MikroTik CRS309-1G-8SIN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS309-1G-8SIN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS309-1G-8SIN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6e5f3a092d7f44f98f9f72ec7b65a412 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 0f0dfeaaac954d2fbc3a6b20dc756c59 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 0a4d7bb40fbb49c48d210e763b3f2426 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 01cb61daac1f42d3ab0a5fafd2b113a4 + expression: 'last(/MikroTik CRS309-1G-8SIN by SNMP/system.name,#1)<>last(/MikroTik CRS309-1G-8SIN by SNMP/system.name,#2) and length(last(/MikroTik CRS309-1G-8SIN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 0c36805ca5cd40d099060ee447cb85db + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a307185251ec4bb7a2fafc41fabf7eee + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 55775fa17c604dddb86c7644556830e6 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 28568c2163ee4a0aa262241064922c7d + expression: 'last(/MikroTik CRS309-1G-8SIN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS309-1G-8SIN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS309-1G-8SIN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS309-1G-8SIN by SNMP/system.name,#1)<>last(/MikroTik CRS309-1G-8SIN by SNMP/system.name,#2) and length(last(/MikroTik CRS309-1G-8SIN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: bf66ea54f8874cc89bb11a4a3c325d1f + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 14aff8f369f9440aac2110a4a52e7eb5 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: cbe45fbc0f9e4b1a94966ccb859463ae + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 03626c0f7cf24394b47f24a1af36dcd0 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 7224d01c717a4dd3800fbd8d8e9399b8 + expression: 'min(/MikroTik CRS309-1G-8SIN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 1620fd9982ed4e27a2e4bfcff915765e + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a564c084ec414271b212db6c9b301db7 + expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 3c978b9c2e4c4c01b7ec7ce7af02f27a + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 521d764377654b93816ee70e8c80fc0a + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: d6343a3648f0493bb786d598a8e51ab4 + expression: 'min(/MikroTik CRS309-1G-8SIN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 00464f2edb3f47cdbd60b0801ffeff2a + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8afd22083a1343cf81d947e42516583e + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 165ef578bc8144c79e3bb23cf9aece72 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 6b909503dc46413fad04d4cf4d7b6939 + expression: 'avg(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 94833673685645f68729a8f98b5a213e + expression: 'avg(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: aac8de5837494421a642793cc5a9009c + expression: 'avg(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 24e13986d6224173bec425a3ca2562fa + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 9909cd00a6a24e7693bcee846e806bd2 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 3d4dc47de9db4049a4baebf68df16b1e + expression: 'avg(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cf105fee78774aa7ae119f2638528423 + expression: 'avg(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1bf28981db8d414199c3fb7bd20e669a + expression: 'avg(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS309-1G-8SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 9acd8e04d272467c8c1cd0452068bf93 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: f07ac80125fe425bb87aeb409ae198db + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c27c37092c5f48f1944417cbd47f6c25 + expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a418c6b3e88f45a398daf2c0fc529d13 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9525ed0ec7bb426587ffcf4879590d5b + expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e0659a14e4c14779a02bc4bd5fa2b8cf + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d7c501de314140aeb2b6f344bad2c501 + expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2fe3fa0e2ec84a098add91a09ff9332d + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f124b3bbba784fff966adef3c722eb70 + expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 2c2721344ed74562912a7c7526f84314 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: fe6101d8772d482e999e0351c40ccbd1 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 918507201ca94b3284d3ea0790e5dfcb + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2cac58114b934cd4bf6738db973f04e7 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: eb1304a13add439b8a0eba33f0be85bd + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9135865a5f6341449f661b2effe38c19 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 10ca39f536ec49e081e0edc5c0b2972f + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2b6a52cd5f1b4786a6176b4ea11887fb + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: a736f4197c594f10b144ca1775111d1d + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 17646c7e68fa4733a8ecccd3321513c5 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3c0beda9dfe0447f953a3be51fba7e48 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d327bafe453345468ed568b30c3c0ca5 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: aa16e2906256441bb0c6680e9c95f547 + expression: 'last(/MikroTik CRS309-1G-8SIN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b761c3efd08042499f1a87cd73ee0cd1 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: cc86ba34ec6c42f486c4146cc37ea63d + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 81c3d7ef1c7f414e8f19d8f4f8937e1b + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5f99d418a9d94f2d97656fa59604404c + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6a99973eda6a4005b28ff986e800b123 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e7f43353462e418188c3c00379138466 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fa23f5e5fbf847c2b1d6b5eb38e05a59 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5cfd077fd3484986a6888b6e2be6e5fa + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fef3726d05b346db9adb9f0b8e1f65e2 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b810190964d44084b2294ea56c7b5ee5 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 12cba2c25cab458f8792bcb7226cf714 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 370d7a702a62401ca9dd904b3c7ec39c + expression: | + change(/MikroTik CRS309-1G-8SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS309-1G-8SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: b78e00216b3441fbb217d6b14cba2979 + expression: | + (avg(/MikroTik CRS309-1G-8SIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS309-1G-8SIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS309-1G-8SIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS309-1G-8SIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 921716eadabd441d87d23a53ea1ffa8e + expression: | + min(/MikroTik CRS309-1G-8SIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS309-1G-8SIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS309-1G-8SIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS309-1G-8SIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS309-1G-8SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 5781cd59d9864144817fbe3a258d9cb6 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: fc051342ffd646fd86702f89ad9da14b + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: e7e62890c210420882a04af7dd07cde9 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 9bcda8136943432eaedfa8ed80dd48e7 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 19b70b4990ca4813a0237a5bd6b8915b + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 2d873bbec47d4b3281b1aa33c87c60a0 + expression: | + last(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 6bab52e75f8e4286a7c4ec7336a4d417 + expression: | + last(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS309-1G-8SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 9a733d07f30643769872935987fbbc14 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs309-1g-8splusin + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: eb6b74906d59481c8c68905908e9b283 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: eb2dc24843604c1b8ef9169ce65e570c + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: ea9e3359b57840c8b1fa1b1c0cbf55c5 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: e392411ac64845efaedeec750731caa8 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 9200cc616f934bc5b0df6136c53e0650 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: a1d58fc2668b465a81a86536c1f646ad + expression: '(last(/MikroTik CRS309-1G-8SIN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS309-1G-8SIN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS309-1G-8SIN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS309-1G-8SIN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS309-1G-8SIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: ae3d51bc351f4da7a17565928cfe6e0b + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS309-1G-8SIN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS312-4C8XG-RM_by_SNMP.yaml b/MikroTik_CRS312-4C8XG-RM_by_SNMP.yaml new file mode 100644 index 0000000..2a66731 --- /dev/null +++ b/MikroTik_CRS312-4C8XG-RM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 8da94e2f01ff46e28becf0b08ff09ace + template: 'MikroTik CRS312-4C8XG-RM by SNMP' + name: 'MikroTik CRS312-4C+8XG-RM by SNMP' + description: | + The template for monitoring Switch MikroTik CRS312-4C+8XG-RM. + + Switch of the future: the first MikroTik product with 10G RJ45 Ethernet ports + and SFP+ + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: ba6ae11c71a94ea6858663030b8ce445 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: db42c8af11744c5ab3f47f72ebc4a510 + expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: cf937bb3e6524714a037c79e3fd09982 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 844a3542770748cf9a99070e6f55fba6 + expression: 'min(/MikroTik CRS312-4C8XG-RM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS312-4C8XG-RM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f5b621e08b5e41949dde460f61ef5458 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4b4911507b374dfc9c1b105c4c09e3b8 + expression: 'avg(/MikroTik CRS312-4C8XG-RM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS312-4C8XG-RM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS312-4C8XG-RM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1b6cbc7e31c0454c901e424757751474 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 8f509a71c40348ba9502fd6eeb795589 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: a018cf2626764f17853a526f5b6d574e + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 03af1591f3af444781a6a3e058de7dd6 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d3a059306c60489dbf7a7417f3a1e072 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: c0f09ce0c4d7454dab1474a606de48a0 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7befae11c37c415c821465a2b923d901 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 58b860a92baa43158419a843ae89687f + expression: 'last(/MikroTik CRS312-4C8XG-RM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS312-4C8XG-RM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS312-4C8XG-RM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f533de2af2824b30a43995499f5ec467 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 4cb71c3fa0aa4ca8aa4c2c03a017a28a + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 54368f9d9e9f494ba55f8f5fac20196b + expression: 'last(/MikroTik CRS312-4C8XG-RM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS312-4C8XG-RM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS312-4C8XG-RM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 59bd59afea7c430ab9b87036d6f68d80 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 50d138e88427408a858322b2a3d31d78 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4c1fbb2ffa0246f7be58fd4d82f6009e + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: dc073a13e66f4d528af68db048184c2f + expression: 'last(/MikroTik CRS312-4C8XG-RM by SNMP/system.name,#1)<>last(/MikroTik CRS312-4C8XG-RM by SNMP/system.name,#2) and length(last(/MikroTik CRS312-4C8XG-RM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 7bd86e80b5154212bc883dc5bd15cad7 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 2d1e9c027c0e40faa7ba792de117eafb + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1e0024446d5f4696919f3a246dda3868 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: dd39ada0b3b14009968866d766e9e16d + expression: 'last(/MikroTik CRS312-4C8XG-RM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS312-4C8XG-RM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS312-4C8XG-RM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS312-4C8XG-RM by SNMP/system.name,#1)<>last(/MikroTik CRS312-4C8XG-RM by SNMP/system.name,#2) and length(last(/MikroTik CRS312-4C8XG-RM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 4b74f8ee93c742649c4b0b663338befa + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 06bdef85cb3849819a6fa43dfcdf7ba1 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 05b7592dca7744e39bbea87e73b6062c + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: f39b87bfab3347b1bc016a35aa58f1be + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: de55f957c95d404380cb490126f88e3d + expression: 'min(/MikroTik CRS312-4C8XG-RM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 3687b61660ab43ba9abd8be56f5de6aa + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: cb430613680b4bd087d79a4f1004f453 + expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 9f244f13f1c346feb1852908e347a9ce + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 67bd6121ef4946ac9e73fc3974eb72ed + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 693899638cc1411a9f178cdf6d53b22a + expression: 'min(/MikroTik CRS312-4C8XG-RM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 57470db47a7543ae906b1a567f31b0df + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0ea5fe1af3f14c258407cdcf5c8492cd + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 99d748b7c76e4ea493784fd62348cc55 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 9084cab74227494d9ebd02ea9a4309d2 + expression: 'avg(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5dc37a79bb254104a9a46383b14b0e3e + expression: 'avg(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 35fd07bdd3d84ccab6172255af3989ac + expression: 'avg(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 0b6e7345eb5d48ce88d577f1023a7479 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 1e429d1a498044d3b95d2a73db924f77 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: d26213a8d92e4845a7767a0a7fe340b6 + expression: 'avg(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 47e2acacb8414731b56ec86e1a9e3e3c + expression: 'avg(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 69c54b6ef3a04343bd9df41153398067 + expression: 'avg(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS312-4C8XG-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: e3d529ed5a1b4d89b156e1a2bdd73905 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 41ac19f7e4d2423e8211517127be3e4e + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6e805c219d884cb38bcd51dde95af1a4 + expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fdffd7bb090b4acc85692c0fa113aed6 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 93ca96ceac4043fbbd88004165d94c3a + expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c8b7cde011cf45efbfbdb54a99f7afb9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0f7f11abdba9495fa4fa33ad1a872244 + expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ce8dc75d99944f88afc937e1025f4bcc + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: da0b1d4940d64a5c9b96c83600cb4963 + expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 6223ee7e40ed4b0ebfeb64a48d8401b9 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 174a070e450a4b6a851e6f774cea0496 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 0b0aa41ec369423ba346cf6c9f7c9075 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 40aa76b4a7e74961a20a6891e5084fa6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 34e0b4d61e954c5598df74624eec7de4 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4484896071184e62992201bf6590ed4f + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2fadfc227fbb418f9d0bccf1af2a871c + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 009b58f603c74f66a5341db132e489ba + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 9ad3feaeee5f4663b598e95e18fd81e2 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2938eec3c8dd4dcf931d52d64191a68d + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 43db9c3fcc074d4d8c9d041ed0d40ade + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 231504212d1a4f688a35b77014e9ef20 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b885a22b88114ea7a275f0758d82210c + expression: 'last(/MikroTik CRS312-4C8XG-RM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: fde8e6bf22cd489c8f0b0fb2ae359e98 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 5e8a27d5081342b5b925d45db77a7bc1 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 70a39d1297ea4264be096468bbd41d64 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b2e76644e59e40f79ef1c93922d5e8d1 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 35321b8973694e488f903eb9e4168939 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3f7ded53a81d4dcc81250c8bc9a1da97 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 17dc051e60bc41839e255b38353ef49f + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9cbf512a2f0e4bfa86f2df14393c10de + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 291a3c4e906040d782ccdd15058a8fa1 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b8325c85797b4b56a2ebb5f998751bcc + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f422f3fce9fb4413b3f1e6d2885959f6 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3aa76bfc278a484387be9ef760005d55 + expression: | + change(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 9b698eef38ca438383c7bc06c2589166 + expression: | + (avg(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 71f098c03cf945cd9a5a9a26f46bb54e + expression: | + min(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS312-4C8XG-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: cfa3941d81bb423bb0d282cd87ffc599 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a52c622d98b643dfb67459f5b6b63e3d + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: ac51787aeada4d6596deee43a66818e8 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 8b12975b2d1f4c03adce5fd9aaacd8e2 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 4445602fc420442db98c58cd28d68b46 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 49a1cefb001c47bbae541e71673d5eb5 + expression: | + last(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 5145ea5e4fb04f9c9dfc90d61ca65d1b + expression: | + last(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS312-4C8XG-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 71de1b81db87432bbd66eafdc123e767 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs312-4cplus8xg-rm + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 93192f585e0349c2b80cf6d4df772c95 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 09f1738eab3c4fc381b22b1d82a8d192 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: e56e7aefbc244b1f9a93fb787d7043db + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 8ca1d63f5ca1449fb4f2dbb94b54835a + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: c5f9837a1d6d42bb9ffae512dd63f0d6 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 1cfae25fa7b041b98b5b97a5bca0796a + expression: '(last(/MikroTik CRS312-4C8XG-RM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS312-4C8XG-RM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS312-4C8XG-RM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS312-4C8XG-RM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS312-4C8XG-RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: a586c06ba9ad4299a4f26cde5c14478d + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS312-4C8XG-RM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS317-1G-16SRM_by_SNMP.yaml b/MikroTik_CRS317-1G-16SRM_by_SNMP.yaml new file mode 100644 index 0000000..3da9b08 --- /dev/null +++ b/MikroTik_CRS317-1G-16SRM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: f474ff823fe84d689b9e4c6a4f0ce59e + template: 'MikroTik CRS317-1G-16SRM by SNMP' + name: 'MikroTik CRS317-1G-16S+RM by SNMP' + description: | + The template for monitoring Switch MikroTik CRS317-1G-16S+RM. + + Smart Switch, 1 x Gigabit LAN, 16 x SFP+ cages, Dual Core 800MHz CPU, 1GB RAM, + 1U rackmount passive cooling case, Dual Power Supplies + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 41e58aa91bc74509aad190e0c07a7afe + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f4acabb314ea4a38935ebb722bf47ed9 + expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 97c6159702a5412c87ee2d42602a4ead + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 629b35a8b5414240953062d4b4caad60 + expression: 'min(/MikroTik CRS317-1G-16SRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS317-1G-16SRM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fd7a6cdbb0b94c7d9d9584873427027d + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 28ce838e43004acebc74c42e782b65cb + expression: 'avg(/MikroTik CRS317-1G-16SRM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS317-1G-16SRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS317-1G-16SRM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8b36357da06d4185815f5cd6f62bac4a + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: f4110ec0e7474808a9d0111fe64a9bc8 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 18144ae33c344636a8c8f496f9d31769 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 8e0533aa1f3e48ce8b5a6a2ad388cf32 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c56b7dd474b64fb59d5088340e0de6c0 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 23d51bb62dd24ddbb8d8332ddd62aac7 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d2ae97a860254ce8935a939ad715d583 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 0d646e6c03f14c259b81862187a6eec1 + expression: 'last(/MikroTik CRS317-1G-16SRM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS317-1G-16SRM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS317-1G-16SRM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bad88a688384478b841c24f935d5c3a1 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: dd694bbf5faf4c7a8a30d5ffd817b678 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 992d3bd742224ad7abc375d20e60e1af + expression: 'last(/MikroTik CRS317-1G-16SRM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS317-1G-16SRM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS317-1G-16SRM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c36c9dba589944d4bc4253019663831e + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 10d7ca748c1c4363a7d0ea997de8bbb7 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 50e9e01258084593a5c0e55d5c3ea50b + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: f01bb34d5f30454bb72e6b00e187c066 + expression: 'last(/MikroTik CRS317-1G-16SRM by SNMP/system.name,#1)<>last(/MikroTik CRS317-1G-16SRM by SNMP/system.name,#2) and length(last(/MikroTik CRS317-1G-16SRM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 61ada578e2654f2b9773e86ac7f9f5a7 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 5a20282446cc4ec797860f33e6767712 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2906c09ebcc34c908a6ab8530804b67f + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: b3e063c9221d4bf69acb21a16859bb15 + expression: 'last(/MikroTik CRS317-1G-16SRM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS317-1G-16SRM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS317-1G-16SRM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS317-1G-16SRM by SNMP/system.name,#1)<>last(/MikroTik CRS317-1G-16SRM by SNMP/system.name,#2) and length(last(/MikroTik CRS317-1G-16SRM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 27b2bb60cd234327bd82b0016d723e32 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 6417f5bc08084fa29f2dab421c5093fd + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 01618781ca974f5e8b1bf58b65092038 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: ffee597574084c638b668fb11a735962 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 95ac8c277d8940ecb1545be2dc514c54 + expression: 'min(/MikroTik CRS317-1G-16SRM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 2dc35ca9c25146eb9d5955bdb338fbf4 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1c20500d7efe42e59d3562c980201ef1 + expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 43a205f5dd7d4874a68c1a9930f43260 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: c510805ee348445b851bc93e95daf8f6 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 9e5d5b925a5c42a2af13b3a6727a4cb9 + expression: 'min(/MikroTik CRS317-1G-16SRM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: cd07ebaa31e84139be82ee2f018656ca + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d7dee0d21034492e80cd52070f242131 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 48068386e2fa47afbac7f41fd8c36a72 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: ba13b39c8a6146bf9b3b6d46fb71fcc6 + expression: 'avg(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3a469cd75bac4782b18aff3011c766b3 + expression: 'avg(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 11f6f7f659a445e7930b7ab3532a8ebb + expression: 'avg(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 33b7e69a7e3b44548c14b5d290518d23 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 2ba207937e5146adaa5e02903ae70b8b + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 3392f74fc5974701b62673f5c51700d4 + expression: 'avg(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0e4acbc3bad54347a362cbf57c0464e3 + expression: 'avg(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 42c7cd22b6c74fc7b36f5b6593db02e5 + expression: 'avg(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS317-1G-16SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 3824e4d95d2d47ea858f7885d3fadbb8 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 161f4066cd2d4cc393afad6bac50dcc5 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 027b0481f1de4967973208e3477c0094 + expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3728775b43bb4fd9927cc83b31441e73 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7dc5c0d4f77441a5a29239b1aa77d00b + expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 25aeaf59b6a446428d81743da8fad36f + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 95d3868b6d1c45629acc756865cf6f78 + expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5696d89760ef4e168e79a68c9503a752 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 94cb13b08f4f46c2bccd3b5ac22ccb3e + expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 3691a1aa1379413ea25118524890d3be + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d4d7077e3d1c45de8320982d2d2757f7 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: a5b2a6adc309482f8f4ae0ac696b6188 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1f5889a3511e423eba944249026cade2 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 116c9e2164244af7ac233192cc2c0fa8 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7f66614630514280a2e4694f601527e1 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6a1710f2a57546bbb825fa30dff7dfc6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ca977ba6126442d2b4fe511ccf78c021 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: fa5d5e176fd540299ef75d4a9693ed09 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1bdcdd568543421e8e5cbd953698bbd2 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8ea83d2c84144a209c0ed5592207027c + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8525fbb691d4494b8e03eb7b1b4a7ecd + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1317af27066547e2a07f2dd27923e22b + expression: 'last(/MikroTik CRS317-1G-16SRM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: fd942651e7e0407682c5d092280413fb + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 7e8d09a331534bb8b18aba0d846b4b92 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f18e8d58775a476a9e267ea510046b3b + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7c9a00d1ccc64ac2bbb299a2ef3f9f7b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e7e15324c7884bafa830004c30c398ad + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7f752c82bf234f30b70a7ce19879963f + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d49de2ae77484870876f463f208ff1bb + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bb086f35ade448f5938f169ad6eaba94 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7a270cb32f7541678c6a6b3e32f6fba9 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6251339e2940419994033e0689fa16a7 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: dc8c468874464b2cad3435bc59b7f3e2 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 53447bc4ecb04af7b4d9ef6a57c78a29 + expression: | + change(/MikroTik CRS317-1G-16SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS317-1G-16SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 05e4dbc448fc431f90a831af90408113 + expression: | + (avg(/MikroTik CRS317-1G-16SRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS317-1G-16SRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS317-1G-16SRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS317-1G-16SRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 0af66a5ab69448549374ef932be1d57b + expression: | + min(/MikroTik CRS317-1G-16SRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS317-1G-16SRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS317-1G-16SRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS317-1G-16SRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS317-1G-16SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: defce00a7d8e47abbf3f3126d138c6bb + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9164b9995cf2443189314c8177353070 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: d710a862bf0043aca18a6c961320ecba + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 20ca55174f764308933c395b1f8c25b6 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: b1293070b58b4859b3cc730a08e24f1c + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: ee1e3d1444c947d2898cf120dc3fc53f + expression: | + last(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: a6f92ac3ee824ef486a82f441fb60a67 + expression: | + last(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS317-1G-16SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 94e91ae74ed048fdaee82856f500f28b + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs317-1g-16splusrm + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 35737b763a08439eaa9fa42b3a4b7cec + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 898bfaed08a44954897385e63d854c0f + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: d441d05e0e24462b817c5b3eae8d9b9d + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 04f7843b43454cc487e70cd3639b4024 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 84bf465ed8e3421e817ba4648e7707e9 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: bd172615c09147ed8deb102f88eb8900 + expression: '(last(/MikroTik CRS317-1G-16SRM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS317-1G-16SRM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS317-1G-16SRM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS317-1G-16SRM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS317-1G-16SRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: bc108737d87842138ef5e53d50950722 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS317-1G-16SRM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS326-24G-2SIN_by_SNMP.yaml b/MikroTik_CRS326-24G-2SIN_by_SNMP.yaml new file mode 100644 index 0000000..9d1da7c --- /dev/null +++ b/MikroTik_CRS326-24G-2SIN_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: c5f41fe0f54f470f9e304384838f150a + template: 'MikroTik CRS326-24G-2SIN by SNMP' + name: 'MikroTik CRS326-24G-2S+IN by SNMP' + description: | + The template for monitoring Switch MikroTik CRS326-24G-2S+IN. + + 24 Gigabit ports, 2 SFP+ cages and a desktop case – server room power for your + home! + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 7e700116048d4392a71946764268fce8 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d914dc20fb664be7832aae19f07df37f + expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 5408eda422114912937f6810b5746f71 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 70d6789335b74cdd87a1a23bf4a3f875 + expression: 'min(/MikroTik CRS326-24G-2SIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS326-24G-2SIN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5ec629ad1b1a44ceb3b138d84eb2d99d + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 49f77a9948164eb7aeffc3efe3f60ce1 + expression: 'avg(/MikroTik CRS326-24G-2SIN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS326-24G-2SIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS326-24G-2SIN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fddaf4522c1f4d18af49e3bccbc63ee3 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 3fb9a05330114b8bacbe7f172a782063 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 75bbba08fdf14ff190d0ea4f9e23d3bd + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 417db3f4da664196a5cd40b3f7d65caa + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3760283279a4405fa74cd33f352731e6 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: aff391166f0d4e13b3d047143446c9ff + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8da4bc75729549f8ba60c5edd47f1419 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 65e43afe1d04447fb334d5efbd76c185 + expression: 'last(/MikroTik CRS326-24G-2SIN by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS326-24G-2SIN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS326-24G-2SIN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 05352d9bfb6d48b682c4d5e23ff28daf + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 19bfda7a644b462880226d790eebd154 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 3a3ac7e0d5fc4feca67eb2447fcbcf34 + expression: 'last(/MikroTik CRS326-24G-2SIN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS326-24G-2SIN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS326-24G-2SIN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9a3c0d8062f9470faeb350b3f025dc93 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 0e41c468f5db44bcab6f8e1a078e5309 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 72e38e1011654a3eb413f133169b3811 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 63f90de57f5f4b5b92d0db0b54d0b1d2 + expression: 'last(/MikroTik CRS326-24G-2SIN by SNMP/system.name,#1)<>last(/MikroTik CRS326-24G-2SIN by SNMP/system.name,#2) and length(last(/MikroTik CRS326-24G-2SIN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: edbcea616a6d459898cae926963e9ee4 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b5c8153787384711ae6fde2c1d9cd45c + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: aca36fae2c2f4856a8cacf7348a31b54 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 2f18268819414337aca3f919343d6577 + expression: 'last(/MikroTik CRS326-24G-2SIN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS326-24G-2SIN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS326-24G-2SIN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS326-24G-2SIN by SNMP/system.name,#1)<>last(/MikroTik CRS326-24G-2SIN by SNMP/system.name,#2) and length(last(/MikroTik CRS326-24G-2SIN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 2529412985f84e19a5516eff963a8498 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 2ee29a6f60eb45fdb1193283ed54e7bc + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: aef42cabe6cb4c8dbb0c6cea532c6a3f + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 0012d55c993c43f4b620e282a9799cd8 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: cfd67344627840a081d286d8188c0888 + expression: 'min(/MikroTik CRS326-24G-2SIN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: ea1305a4dbf94c848271814a5c3d08c4 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1b222c2531f140399fe94a54556c6422 + expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 55e1dad7a38743f2ba0ba1546a55638d + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 602f38f90f3545adbc070d035539ec8d + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: d9f63d9be04940949d9dd655cf1a7bd2 + expression: 'min(/MikroTik CRS326-24G-2SIN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 5add7060d926465da9707003ba6e69e7 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 69bb93aca6c140959ad2ddd484a774e7 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 987908255779438fa44009e8cc021daf + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: bf5e439b3dfe4a5b82df00c0ed291895 + expression: 'avg(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bc428b5477294722a18477dc061a59e9 + expression: 'avg(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 21aa13901d7449a39f64a41cb151d687 + expression: 'avg(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 2298f69eb20647468f92dfee2740d653 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: b22c36030deb4143a6843bfeb3ea1ebe + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 0a2cde44b8ea45178e0859ae7c1125e5 + expression: 'avg(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0379f91f1b4e40d1b35c30ac538a8b61 + expression: 'avg(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7d4b709e7b5c4e9aa68a9c6f8df69e75 + expression: 'avg(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS326-24G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 94742faea5cb4922af607bcf66494c75 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: fda8316e54e2457492d19ad3f0fdefba + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4ae567c4a5be46a4a1a135a5f61aece8 + expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9b636bb8baa54fec808391d5387affb1 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1e6aca20d3c140f69580920d37820c9a + expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ce63b34ac4ed4e98af2e9cf165fd4edd + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 65a6c1de5d8e4a4d8857a4b97fcb1a7a + expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2879b1fddfa3422d81f3d54bf10eeba9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: df73d669f65940a79065915e11a3e3bf + expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: b19bb2dd693444b8b1cfc5b3e53ef8e8 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4c8b8a486e7348c383f28ffcb4db6182 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: cc0acc56261542178aef0227e886a582 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a29816c787c3404f8e2c2492b3c97fc3 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: da4acf2e97e44415951f9a22042e7722 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b6a61875bfbb47ad9e1ffc93f11f533a + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7c62e6580f44467e9d1ceaef77394a5e + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: c256b93e9a9d4c25a4c347ebd4ce87a0 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: da4b16ed30de474dac4a260b8d813f69 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ae5c0adc6b05408ca1cf362d4c01eafe + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 321b92fdbbde4c5c91ca04c28861fe11 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: da85b9260e374c58946d337686158519 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 233fb21420794842b00c0fb12db86e51 + expression: 'last(/MikroTik CRS326-24G-2SIN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b14afecca0b944cf9c8e6330ae80c530 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 55617d4e8b80468d89a4e187419a7952 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 47237970af2d45208906b87fbc1f9339 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 50caf27cd8ff4a349a888741a301e776 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 22c2413e4100432ea8dc0e8816b31ba4 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6859685be5784fe3a3adc209d4b69b6e + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e3836dded4c84b218af72d2358e9c228 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 25815a4b39e147e6be4cc7db9f79090d + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5193b82dafc14ef6905af63cc99ee7cf + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2eed9a625d3c45b4bfd4fdd70b58461d + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 17651e8aa6134c77868ee1c74a626209 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c05d1756423841658946ffaddf78ef79 + expression: | + change(/MikroTik CRS326-24G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS326-24G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: e08df3d8533c46a9aac0144486098b78 + expression: | + (avg(/MikroTik CRS326-24G-2SIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS326-24G-2SIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS326-24G-2SIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS326-24G-2SIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: dcd307c6b1074213976f0f26cb699699 + expression: | + min(/MikroTik CRS326-24G-2SIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS326-24G-2SIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS326-24G-2SIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS326-24G-2SIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS326-24G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 35c60c8ed9ad40b3ae44021cb50649c6 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d4eb86620709480a93c863cc4080ceef + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: ea8ea45343ad4b86bc67c631326b2b9d + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: bf9374d0427c4e5493752ee648ee5bb1 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: b8a263e710ad4864bd7406e637b44c21 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 3e07aa63774040ef9369b3280cae156d + expression: | + last(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: caae865a278946958a38fa40a41f180f + expression: | + last(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS326-24G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: ae2d847c53c14a619217843f10c9695e + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs326-24g-2splusin + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 972424d75a26487687af78bf778242e7 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: a47c7db9e85a42f6807209393d5be773 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 79a3153cc7f74b8ab41acec0f722476c + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: f430b2fa108a4c2c964d4e39c794cfaf + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 5bc4289f35bd41b9a5034da380f78eba + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: b31c237e2046464c95b1ab70dc08e118 + expression: '(last(/MikroTik CRS326-24G-2SIN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS326-24G-2SIN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS326-24G-2SIN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS326-24G-2SIN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS326-24G-2SIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 1db45fd5a6664e6e954ba08a305faaa4 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS326-24G-2SIN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS326-24G-2SRM_by_SNMP.yaml b/MikroTik_CRS326-24G-2SRM_by_SNMP.yaml new file mode 100644 index 0000000..cf2d451 --- /dev/null +++ b/MikroTik_CRS326-24G-2SRM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: bc80883918ac4f879427ca145122b5cb + template: 'MikroTik CRS326-24G-2SRM by SNMP' + name: 'MikroTik CRS326-24G-2S+RM by SNMP' + description: | + The template for monitoring Switch MikroTik CRS326-24G-2S+RM. + + 24 Gigabit port switch with 2 x SFP+ cages in 1U rackmount case, Dual boot (RouterOS + or SwitchOS) + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: cb5c19012cfd413fb280ccf6f2754f65 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b74334acbba2407d8baff550f0db6d64 + expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 877d543f8a0040a7bf6b48c734f9622f + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 160e58bf2d05433882e3e0c8f187c42e + expression: 'min(/MikroTik CRS326-24G-2SRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS326-24G-2SRM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 689a05d4bdec404abea16439908b9b22 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ee3f5dbb8f5848c888c0d599be2dd4fa + expression: 'avg(/MikroTik CRS326-24G-2SRM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS326-24G-2SRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS326-24G-2SRM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 124fa909031144c5b26c91c2f5cb71a1 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: a352e9a765d441a1ab10e6966fb27dfd + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 237fc861aa3b4a33ac6b1b4aee3f05b0 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: ee5e1ba0c8d94747a0da617ba01fd998 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9b4fcab963ff43adb954043ac7e310a0 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 743f06984d5549d2832c55914d3cbc5e + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b6b5e17543b54d32a6efac05a346717b + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: f91e54b227304a688092ffcbabf88d41 + expression: 'last(/MikroTik CRS326-24G-2SRM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS326-24G-2SRM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS326-24G-2SRM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: da7d1bace5b84ec59f2a669c090c3b1f + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 903370300c154ba09796eaca48f5e54f + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: aeb6d1d52ee24d7393a4a5a31f7267fb + expression: 'last(/MikroTik CRS326-24G-2SRM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS326-24G-2SRM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS326-24G-2SRM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bccedf8a6d434ee19ef03ae4b15db6e6 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a8e5af6ef52d457098ff5a9cd10a30da + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1db5d107bd1f4395b1e746ee9a345f21 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 635b2c749af2495aa87688001bd73a6c + expression: 'last(/MikroTik CRS326-24G-2SRM by SNMP/system.name,#1)<>last(/MikroTik CRS326-24G-2SRM by SNMP/system.name,#2) and length(last(/MikroTik CRS326-24G-2SRM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 83a1109159ca4513ba278a3c290d10b9 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b1b6c41064924674b43851832fbb7b10 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 823e2b2060f64bed86d2a99d5e1487c5 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: be2544b8b967408288a750c82a8f9059 + expression: 'last(/MikroTik CRS326-24G-2SRM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS326-24G-2SRM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS326-24G-2SRM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS326-24G-2SRM by SNMP/system.name,#1)<>last(/MikroTik CRS326-24G-2SRM by SNMP/system.name,#2) and length(last(/MikroTik CRS326-24G-2SRM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 7ec72049975a4c9d8597414e898055ab + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: ef5f00c33dea46b59b756eda8bb62f26 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: da09619f39da49d59cf0125b45d567a6 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: ec6c40e7c02c49efbb7116bc6917b42b + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 4fbf859b65774291850b37f700945a36 + expression: 'min(/MikroTik CRS326-24G-2SRM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 8161db2e10c84693961e742fda8a7fa2 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 6ed1c046ba1a4246a6e30d5147e58250 + expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 4f4f6561dbaa4b89a77461a91339d552 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: d2396df3e96d472289886c54bbb6fca2 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 6b4d22ac23db45beb398d591a157782e + expression: 'min(/MikroTik CRS326-24G-2SRM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 355ef2168d414a4ebce1cc754e9f53e8 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9c0018fd8715414887115820c3094146 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: f3670784a4e34fb6b9ed84c4c43998ed + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 519c8f4f6a62492fbf739c2303f76aa5 + expression: 'avg(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4b2e16580fe6436aa3e37813c83fde98 + expression: 'avg(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6cf5bdc92724485ba64f5d06b01f4656 + expression: 'avg(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 732470e573084fd6b7d27d99189004ba + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: ce36e933fd9146c29d9d46ebfef95489 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 2218bd775d8c421992346f40d0b38fa4 + expression: 'avg(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 093386c3b35f45bab6cea6d6396064b1 + expression: 'avg(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 17ac58cd999d49f1ae31bc6a9280f887 + expression: 'avg(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 846190a30b804bfda47b31796819f8fb + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 222211769ab340509fba69d8f354029b + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1f7f8781515a44b4b12db1a162e9a8f4 + expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f6c1350d1a694bae98bf59d862ac8f59 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 79166253631142cf87660a658c77169e + expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7242abcbe9314f23ac5512edbf4c39a1 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e5d37873211c44aca51f7926a9b2add6 + expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fc2d8f9f26da4e4abb625394e66b194a + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 51c15917a456414ca6fef2cc86156484 + expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 97b0559a53d64cd1aa0e0dfd1720c15b + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 18f56223df0a415fb99869ba8a8ee514 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 36b565d6f34a47b29a859ca50a0b557e + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f4c638ed14314c8790e34b9e32ee6f17 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2986ecfb1d7641289cd1aca79e1f206f + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f2ceea0e555440808c983d61d4cd620e + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3f8622b3bd154ec5b2bf8fc75e35183f + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: c475a511980841b49b7615b93c873eae + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 8337fdf60e9b45c2b4c1a155d5b2603d + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6ecceab4ba1345708fa806542ce85051 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9da88d1a5d3649f0ac023319f529026d + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2c0ffadf84784e20af33236fbe6aa763 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e9057c50ee5148119a922bd170e7463f + expression: 'last(/MikroTik CRS326-24G-2SRM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a7da0c4a802f426293c53be9de92c2bd + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: e95e0022cb4842158e13bbbe639c897d + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 70d09c8adda84e20a2f88543d061bae1 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4dfaf66c7f4e4120a74f0c7732dc4607 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9de9d790a7b7413d9d5c846105f08e9c + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c99856d2f78e4de893717c70b4a5d71d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 658a5d7e0c9d49af99c8c1851d79660b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 30a84a0c28f84167aa4d59d456571071 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: affe22bbc74b43ff8dc58e83d6a79f9c + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f32914fd53134704a5c11b501decb57e + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ebcc896ec938477b830def5aceb7f211 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4549b4a23bc24c0d8998f2dc6a77a520 + expression: | + change(/MikroTik CRS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 676efabc192b4583b60c52ce440d00f2 + expression: | + (avg(/MikroTik CRS326-24G-2SRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS326-24G-2SRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS326-24G-2SRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS326-24G-2SRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: cd633c8e31824cb1b38c6e9dad58ca7e + expression: | + min(/MikroTik CRS326-24G-2SRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS326-24G-2SRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS326-24G-2SRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS326-24G-2SRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 8063d2bd97224c4794ac9af17a724f85 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 77cfcc80cb8d407ca178ba7b9e50f182 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 48fa37490d794fafaa3585510b4ebda9 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 306d4dbbacd949b58631f178937c667e + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 29c812f5a94f49a5a28690af05553bbf + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: c01561923734478abc70b7c02d2d9add + expression: | + last(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: e53a74871f2b4fadb8ff206f348fc90c + expression: | + last(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 228fb326e5f94c4f8df119f610be831f + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs326-24g-2splusrm + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: b8a25b454da34f93a0f05b161df24323 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 8c73c67d22c343c5a37d23afe2fbe98b + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 7d7a0f21f1aa40ceb5acd6f1d9815875 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: c9ed7ee77afb436e8c85baba81aa3971 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: ef6e97ca311d411c8b1d3dc7d87a1fce + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 869d6bd39ef1440193978c60518a91f7 + expression: '(last(/MikroTik CRS326-24G-2SRM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS326-24G-2SRM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS326-24G-2SRM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS326-24G-2SRM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS326-24G-2SRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 33edde1a5a2946b9aef99e55e6bea4fa + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS326-24G-2SRM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS326-24S2QRM_by_SNMP.yaml b/MikroTik_CRS326-24S2QRM_by_SNMP.yaml new file mode 100644 index 0000000..58fc7bd --- /dev/null +++ b/MikroTik_CRS326-24S2QRM_by_SNMP.yaml @@ -0,0 +1,2647 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: e7ed0e0cbd0b439394f6498ea90dc31d + template: 'MikroTik CRS326-24S2QRM by SNMP' + name: 'MikroTik CRS326-24S+2Q+RM by SNMP' + description: | + The template for monitoring Switch MikroTik CRS326-24S+2Q+RM. + + Our fastest switch for the most demanding setups + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 794bf23a9839416bae6c2d04489eeaf3 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d81a92c3079b4d25be205b1e56b15a73 + expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: e563c3cb4a254b70a6f034fc81c2f672 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: cd4376c2f8e449b9b4923720374198af + expression: 'min(/MikroTik CRS326-24S2QRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS326-24S2QRM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a3a45a21356644f7bccced62a2d8ce3b + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9e00ffd6364d4e238985a4f23601e1c6 + expression: 'avg(/MikroTik CRS326-24S2QRM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS326-24S2QRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS326-24S2QRM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 27e581ee8e544c2598c03060bb77c087 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: ac29915d449346a48c951d4b784e3c5f + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 88f1d48a273f4400930efd1086b61b64 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: e170bed368914833917c81d70fea7e1c + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d26a15dbe3bf4358adbc8c423c4387fc + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: d668a2c3ee2b49629f4520b3627e5cc1 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8ac79dd0cff146c9ae018a8ba626f9e7 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: db665e87151d441395fce421949a9bb0 + expression: 'last(/MikroTik CRS326-24S2QRM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS326-24S2QRM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS326-24S2QRM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8b6f433b2de14edcb0efb036c562b090 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 484e12b0d4a24d19b9edfd300cfef958 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a5e267a8584a4d099f0d36d30ce17d0b + expression: 'last(/MikroTik CRS326-24S2QRM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS326-24S2QRM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS326-24S2QRM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7052c7bbeffe4dbbbbc08f70c8d2679f + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 8a856d5811924020a98ce56910cb52af + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 37b571d2c80e484d826ab688768d2036 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 968c0bef31dc4ae89426b7dee5b76ea1 + expression: 'last(/MikroTik CRS326-24S2QRM by SNMP/system.name,#1)<>last(/MikroTik CRS326-24S2QRM by SNMP/system.name,#2) and length(last(/MikroTik CRS326-24S2QRM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: d2fbbaae58704270b5fc8d04bca76209 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b2c67ce1f337481e9ffe6a1f3c467c8c + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9c810b41d48243668158812fdfdea4f7 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 9fe8a423c0a8411191337e48818cd835 + expression: 'last(/MikroTik CRS326-24S2QRM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS326-24S2QRM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS326-24S2QRM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS326-24S2QRM by SNMP/system.name,#1)<>last(/MikroTik CRS326-24S2QRM by SNMP/system.name,#2) and length(last(/MikroTik CRS326-24S2QRM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 31743a0c3cb14763a68b81cc715f6658 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: b34dda68e02640f88df173b7eeab267f + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 561afbad2b3d4d20a3fbe9753abd8623 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: f605ea1480d947b3bad4d1592c215643 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: ef73c971f14444f18a8b0956c8bd5796 + expression: 'min(/MikroTik CRS326-24S2QRM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 641ccd0e5ec8454bb0bc62d3e8362cc2 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: cd1295131197495183bcc095622fb296 + expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 315ea6f2b17e4bb5a019394e8cd50a59 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: aa3298d983b8462b86d3dde1e34130a5 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 887bf529d1aa43dbaec9a92a390fc0cd + expression: 'min(/MikroTik CRS326-24S2QRM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 22d8af79856d488a947501bb351d3431 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3b40ad0d38434b10a190ed2563b7ebee + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 50d3a1b778cc4981b069dffe98a21ba2 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 4ec904a360ff48668e5273ba4dd223fa + expression: 'avg(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c8dcfe797232437991ab8da001e9855e + expression: 'avg(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 90cea4e309944224abe0052a9eeb2e59 + expression: 'avg(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: b606e130e79e4664892e94f25bbdb7ee + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 32fa64de0bb44217907a3f8ca6683036 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b0718bee8c8d422683e5f9f2915a35c0 + expression: 'avg(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bb57907f2cec4eeda6e7ace60d90a2f3 + expression: 'avg(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7c1161969d7f490fba58d113a7cf9da2 + expression: 'avg(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS326-24S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: d7a8644f9af749afa7194b9bda688f74 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 85213524f70d47a98dd3067ad69bef9f + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ce0b05960b714a03b34f626d262f410a + expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b51fb106f4724770b841a0f604655d2e + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e97689431f51481db6836b937214a926 + expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b7520a6b109a421b8d2c051751c62aae + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: de8a3e44f9494ae0b9506785386c0604 + expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: eb86d792431b41b0ad214e5ddf37cafe + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4c4e3d9b71974e3192070aa344e37221 + expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 895e92a3343f40a393cfae577148bc73 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5039dfabeb7c493c8f8fdc0e448f921d + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: ba279749a9a34c31b54c21c2ece7a277 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 96176e87857f422fae7e82eb10b75037 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6dc6a1f0f3254cd89cc643796480e820 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8ef96b8baa8b4e1187479213a46aca29 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8dd35e2eedf545399834152eba4ac03a + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: cc00fd051776439cb2267611af6d9b9b + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 23dd58dbfcc841fd893869ecc3d8af41 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b73c3270404e4dd3a25bf128a6cc0ef2 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: fe0b8b2c15ef45b7b61a97e2624d40f8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f5080d802e114edea1a74513cad65043 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 034fd6289a4a4d549ea927ae48d8b225 + expression: 'last(/MikroTik CRS326-24S2QRM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 83044efa2ab24bec9b9cba167429c1fe + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 7f6edc44bbc94228befed84190c70fdb + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4080212fd8264ec99caa6559f69d4a81 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 68b31566f60a4336a03893e01f72f32c + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 17cadd22893c4266abe046e89925c570 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9ac86d8e79a74ec6ba6223e379a409cc + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4cae0453843645d4bc52f613f1622d28 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e84f616abb4e4e9ca5a278bf6f446508 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f3537d0d3dfd4cb1aff00930115f927d + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 066a5460a2964a7586a90494dcc29c4f + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: a0c424489d3640d68027bd4e0f1a6a5f + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a14597e77d1a47cfae87df483df50d44 + expression: | + change(/MikroTik CRS326-24S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS326-24S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS326-24S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS326-24S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS326-24S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS326-24S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS326-24S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS326-24S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS326-24S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS326-24S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 86aee07149c9403eba4e32030c52ae0e + expression: | + (avg(/MikroTik CRS326-24S2QRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS326-24S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS326-24S2QRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS326-24S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS326-24S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS326-24S2QRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS326-24S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS326-24S2QRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS326-24S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 2fa427f9d66548ee9574495847cd521a + expression: | + min(/MikroTik CRS326-24S2QRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS326-24S2QRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS326-24S2QRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS326-24S2QRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS326-24S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: b88abc1dd12d46ce86ca491699c6bddf + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2117133adbd14de6beb78907eec23c77 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 418e091863284108b3db341b7d897430 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 0fde6656cbcb41839171e972e6fea8ac + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: a73e8eeae6044e6098e55abc93010a29 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: e6c0c2401c0940ef8edae9aa38aa49e3 + expression: | + last(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: d72e1d5537ec498788f6e7e57e18f65d + expression: | + last(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS326-24S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: f93f28ba09be4fadac28a304b1050c00 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs326-24splus2qplusrm + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: f279c9f7496844678f427316cb383809 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS326-24S2QRM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: d9450045bbb64855ae135a53308f3a22 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 6a6b6e7caa4d41b4b08781b665219425 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 03feaa2653754a39a49be179e127cfef + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 26e5c5020edb4553a70bf0647d5e99a7 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 119f36d60a1141f5a5dee9ee3aba894b + expression: '(last(/MikroTik CRS326-24S2QRM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS326-24S2QRM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS326-24S2QRM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS326-24S2QRM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS326-24S2QRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 1dae33c6c10340ffa674ad86d3eded57 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS326-24S2QRM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS328-24P-4SRM_by_SNMP.yaml b/MikroTik_CRS328-24P-4SRM_by_SNMP.yaml new file mode 100644 index 0000000..c46f56d --- /dev/null +++ b/MikroTik_CRS328-24P-4SRM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: dcf88bca5aaf4123a10eb3daab28a9af + template: 'MikroTik CRS328-24P-4SRM by SNMP' + name: 'MikroTik CRS328-24P-4S+RM by SNMP' + description: | + The template for monitoring Switch MikroTik CRS328-24P-4S+RM. + + 24 port Gigabit Ethernet router/switch with four 10Gbps SFP+ ports in 1U rackmount + case, Dual Boot and PoE output, 500W + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 9afb4d3954164976aad193e27dcc08b7 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 0f59da9697304abd8c074c51ce3a4bef + expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: ead664e6adfc4911854075c0c173ea88 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 14b723dee48541a3a8b36c128681a200 + expression: 'min(/MikroTik CRS328-24P-4SRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS328-24P-4SRM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 95ca4a96e93d4d8cb4d1d9d97b711231 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f8666db5e5a64d3fa7119deac48c317c + expression: 'avg(/MikroTik CRS328-24P-4SRM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS328-24P-4SRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS328-24P-4SRM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 352106c95d3f42b39c90b3eb69832ec0 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 0701e676a22f4ef894e4180f4ef3e2e4 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: a3e60d1ff0444f0485f3b41100f21c15 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 714588b12797482192a786a131dab9f6 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5a818c4ca96d4de5ae22a08f05005619 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 1a35e1108dbd47b4bd818668e5523aec + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a4b55762b7ad446fa5c213883b8eebd2 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 98b8b373def34eec9e814c039dcfb20b + expression: 'last(/MikroTik CRS328-24P-4SRM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS328-24P-4SRM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS328-24P-4SRM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f5c605a329274039883a04e6993d1e22 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 1d0da69b54a24b938cc1e9b37163dca3 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: da1a900485be412996f607b9669daf83 + expression: 'last(/MikroTik CRS328-24P-4SRM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS328-24P-4SRM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS328-24P-4SRM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 093f8cdde4514b3cb81233a59eec8277 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 4445d982dc354baf8c7649ab9250b3f9 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 53e45ee656db47afabc6ad18d3f61c37 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 375ba33fbee4425d97cbb15e410e52d3 + expression: 'last(/MikroTik CRS328-24P-4SRM by SNMP/system.name,#1)<>last(/MikroTik CRS328-24P-4SRM by SNMP/system.name,#2) and length(last(/MikroTik CRS328-24P-4SRM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 54d630b4d80e4ac0a9942630a80b14d8 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b6aacb1fd6b8413f837f2cb3b1977a22 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8fe83ecd500341999fc23e74d61dcf6b + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 41ec834afc7a49409cc9996459b15452 + expression: 'last(/MikroTik CRS328-24P-4SRM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS328-24P-4SRM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS328-24P-4SRM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS328-24P-4SRM by SNMP/system.name,#1)<>last(/MikroTik CRS328-24P-4SRM by SNMP/system.name,#2) and length(last(/MikroTik CRS328-24P-4SRM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 93c10a76cad8418b874104acf355874c + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: f79fd8f841404f88aa130513c8264e27 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 05cfdd5f009843a3a2b80939fb6f773d + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 26765cfd258e46d18c3d085c170c1004 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 86bc4c3dbd024d8d84a90f25fa8c0932 + expression: 'min(/MikroTik CRS328-24P-4SRM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: bd170bcf34104168884e123da7ed93da + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5ea3db8ebb2f49ab9fe7d38de50a4003 + expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 06ffa927f56746138f8bb938b1875c51 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: f9f2d060eebe444f893916e756f10d41 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: dfedf883e0e043a8924796421d0836da + expression: 'min(/MikroTik CRS328-24P-4SRM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 50d486acb91e4c3d801caa22b74d46d3 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 318eae7c977a44f9b24891376cefc129 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: ee1b96c22a8d4d87bbd8cdd28ff75859 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: cc60802009c449eaa49992f38c176f8c + expression: 'avg(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f83dac15be7a4f6a891406fe1e307074 + expression: 'avg(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7044f89f39fd4fa7ba1bc790e86fc960 + expression: 'avg(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 4376a8c9a1d94d9da621d66f41546644 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 4ee4e5b2384e48bd86df5e6f26d37e84 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 2cc0f3a6c39340b78e6b1795b90ee052 + expression: 'avg(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5f460952122241d5900e83f68e097e32 + expression: 'avg(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e729643fce2d43d8b5de5a5f3d0fa184 + expression: 'avg(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS328-24P-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: bcf3a43092af4746bd6260c0fbc0961e + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 98abf29563eb46bfabe324973333e806 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: de98377f082840a0929e2f9024eb873d + expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c9ffc4c45804499aa820715d6d939448 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4cf201a794cf48dfbaf574a04f8111b6 + expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 26a591c37a114fd8bdcc16a7144aa92c + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3666c8cb456a4e4581c4ebac22db115a + expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cc7ca6b56a1f46ce9ed350511a8b2f17 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4b0a6c73bc1f4e7692cb9196dbdf059c + expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: badd6b852574497db920e2fd65c42cf6 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e9ac830b1f3a41c19739f09a1d89e2e7 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 5258a6d10fc14c66b721df917aaf13b0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d41f53d1a100475699f3afa9ec75eb14 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ab3b88358f934afb9f9f3d9be2d32ded + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 02bd9f30327d4061809dc2a6ec76d152 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d4b928ebdc964a86a6e10b054d73bf1b + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 054261dc7c2141c3b176c8692f1d9709 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 65a5879884a944e9925c54f312c61dc5 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0807ecb116b24ff09018962be0d0e457 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 27e9f662777645aa902981947c954800 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 679353503cb74edc85886f48b34d1f7d + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 26baba4f44aa436fbe96c86a4a511156 + expression: 'last(/MikroTik CRS328-24P-4SRM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 402036489b6644478c97aee607bbbad2 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: f76b6bc13f1b4473b763ee08ae88f124 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c3765b5414de494bbbe33e866896540b + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2beecb8e00e847ca8c9362c8a46d1d45 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b76bd53b81f14ca2805bc5e602c31a3d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: adcc570a20814513b751b714f78e9671 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3eaffea1148549a8bea62b833b973af7 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a794f88cabf1479e99322684a617814a + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e85098b6a7f94975afb3c5089eff9018 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 073891fc4c8b4ec9b316deb9c4147cab + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: d82342898fec45c69092e1cc925292cf + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: eaa731129de3470e830007ac7ce932f5 + expression: | + change(/MikroTik CRS328-24P-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS328-24P-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 4060d8dedaac41c8bce5b82df01eb53c + expression: | + (avg(/MikroTik CRS328-24P-4SRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS328-24P-4SRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS328-24P-4SRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS328-24P-4SRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 294c29c25bae472fa13f20d6c75442bf + expression: | + min(/MikroTik CRS328-24P-4SRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS328-24P-4SRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS328-24P-4SRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS328-24P-4SRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS328-24P-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 6d1f89e29e334ce885510f21e327cec1 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8f1b9e4dcc914aaf945ca40f78f48d87 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: b069c0bfdd034fa39baf37234ca93052 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: f2329eab56e1412b89b33f7e4a39fe29 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: ffd4528f23d14c55ad0cc37e96c0037d + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: e9f77bfbd9e64dc0a9549c0e54da0582 + expression: | + last(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: ff9b2a577fc64bdeb0c8e1feaac80862 + expression: | + last(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS328-24P-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 5d51c5894f3745c58fbd83fe408b38f8 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs328-24p-4splusrm + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 501127e6726c4f8d9f5892607e15a320 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: d081693e5965461ab47d1e39712d0730 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 4028b1d91dd34224af78d961a8139422 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 1b36de603f4a489ab58b3a2007664b97 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 827c5e25ce6c499690912ce2f51f2d23 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 4e0a9fd604b04e6295108f8edf7910a9 + expression: '(last(/MikroTik CRS328-24P-4SRM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS328-24P-4SRM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS328-24P-4SRM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS328-24P-4SRM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS328-24P-4SRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 24acb886bb9343bcaf125e58419e67a9 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS328-24P-4SRM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS328-4C-20S-4SRM_by_SNMP.yaml b/MikroTik_CRS328-4C-20S-4SRM_by_SNMP.yaml new file mode 100644 index 0000000..5d46607 --- /dev/null +++ b/MikroTik_CRS328-4C-20S-4SRM_by_SNMP.yaml @@ -0,0 +1,2649 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 6742f5ed33ca4c19b8e61203770e5fe5 + template: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + name: 'MikroTik CRS328-4C-20S-4S+RM by SNMP' + description: | + The template for monitoring Switch MikroTik CRS328-4C-20S-4S+RM. + + Smart Switch, 20 x SFP cages, 4 x SFP+ cages, 4 x Combo ports (Gigabit Ethernet + or SFP), 800MHz CPU, 512MB RAM, 1U rackmount case, Dual Power Supplies, RouterOS + L5 or SwitchOS (Dual Boot) + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 1d202d0a1c0d45d09a995ef741176869 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fa71a2bcc742439a8eb76923db6dd34c + expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: ec3285050dd44b47b648f9c61ab8c9e4 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c315770210b94fe39126514c41d6fa5d + expression: 'min(/MikroTik CRS328-4C-20S-4SRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS328-4C-20S-4SRM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b71903a18c4246238d7e9a8e99904794 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fe1eba68b565403a968bec8561362376 + expression: 'avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS328-4C-20S-4SRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS328-4C-20S-4SRM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7c6d299419b845b99644d879daa6b0e1 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 1e02843c30d241f8bcf0dd63715fda44 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 6460447c65a6427cafd53e618d5d7bc1 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: bb4b0528c6c946b49f5b7a8da8cbabe0 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2e69894166ce430f8a7bf30e51948684 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 1caa3bcecbf441d4bdea4e1adcfd399d + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1b876d8c8ea3422a82e4b571853bee64 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 656a970a84fd4f65adc021b317f8db04 + expression: 'last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ecb890a4585f47989973617ca4fcce42 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: c283b3b41d074d9596145d97f33d132b + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: ba6f7f02b3dc47b6a15a40f81c86ee1e + expression: 'last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2521a17fcdb048c3ac5b3e425eb48ad6 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 8539d2a032e741b1845d6423772600ec + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7731343e3a584e4cba4241f6114f1b12 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: caff4557fe8d4e0cb994c16a4d1c3eae + expression: 'last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.name,#1)<>last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.name,#2) and length(last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 38d674115439443a848b43c72e71a345 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: fa9788e34ffe4107bf7b1d72008af5e6 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f2e20d27ca50462c88220e91f24b11c8 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: b720a6b27e14473db885682085ce07e1 + expression: 'last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.name,#1)<>last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.name,#2) and length(last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: d9dad10e76a949bd8447e97f6b566ba8 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 9c917c649b6e4a849283c5cd8c9f3c93 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 357a2467154c4dd283f76b9cdbdff62e + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: e5e85e7c2e0440cb90dcff96deffd559 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 6d68e3acb5a34a9eb68f6ea1e329241d + expression: 'min(/MikroTik CRS328-4C-20S-4SRM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 4087946c74884ef085a79fe174495646 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: eaa6f1c7bd334122af4cb08af35ebd86 + expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 06aae70f34df4409af34ca144482a0eb + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 400249b05da24140970579ae8d488406 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 000c63d6cf4d44f28c2705098ce88918 + expression: 'min(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 8153f104b6d54637a07df2a38faade77 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b3f51cd4147748e197e79c4497a26d3b + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: ef785b02dd6742b797ec65468c385499 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 23eaad92fd06421a94ed77347ed7805f + expression: 'avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e596c08e59974762a21d5e7c2bb06eb5 + expression: 'avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8faa5c80c64545b8bde41c02bf450288 + expression: 'avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 3d3d5ab7c4d54019bdf8030ed47bad6a + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 4b18f19aca9e44d6bad22909cb335657 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 6e77737e71a640b1b0832fb8a317a848 + expression: 'avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9ea2d3a683994dcc816d7210cfda6f38 + expression: 'avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 82fc4ea36e9e4a388e38bf4fb5d46148 + expression: 'avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS328-4C-20S-4SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: b50ab71d8aea456cb6f9c9248d4f7dbf + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 5630a05024904a749c7b01d6ae94d783 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: eab50deb6a2e45e8b7bcd447dc6c28e9 + expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4c8305bf9bdf40a8bade711fe408f825 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a12e8f4ef8c2496aacc7cbc35b9ede34 + expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bdca12c838c045d487053f390a6d8722 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 32cb826e59324b90910717b778a714f2 + expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9d3604bde08943debef2b5e7c794c902 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4220c67e66074f048261a4b42092c381 + expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: e95b0db7e92b43fa8bd9c357027c4fcb + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8a86e70394b14aca90cbd379f6aba7a3 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 5e600d097e8b42c283fac75c41b4f032 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1ba331166f2443f1940863a41904f241 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c5dd9be7abc0465c8fbacf67f1ad5267 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 02aa0fbddbd34a9db73896ea41e35045 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5a3e0dbe67f74cad870becbb1363a577 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2ea30a7ef6064f93967dc2c6e33eeb3a + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 89bafc75794a491f87f97f7eb5a5c499 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8ab55cb0548f41c0ad2a98bd409be417 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f95630ccf4364ac995854d22918a0dbf + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5f9ad684c36e4050beb3e6fd5851ec30 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bd6dc784f23746d19a09b6ea322ecf24 + expression: 'last(/MikroTik CRS328-4C-20S-4SRM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a7df21169dd443bcae6bb4c346303978 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 3cc53291a325471892d06fa2b36dd272 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3bd86398a02c4356ad9067fcd1c1c730 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a4f73343bffa45baa82d1b6d8dfaf831 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e44d0375cae641418ccda6e57a932035 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7503b03c728f4f1e804e7af9eda7b040 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 171c12b008354e6aab1ec60320a8425a + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d2dc748e268d42ffbe47775201a26e8c + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5e4c53dcbfd34740af71944828ca7450 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d007eb009f2d4b699cf5af8a0ccedfe9 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ec088a3b0bac441294cb5cefffb87818 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 332308663e4e478d97383a638b2b1d02 + expression: | + change(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: c854aedfd3594f21b40bd227de48c871 + expression: | + (avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: f74f365e18d64e2096a326456622b3e1 + expression: | + min(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS328-4C-20S-4SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 447b17f420a143e0ace94d75858e28fd + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 840e6b4e7d664308b2ce4912effc36f7 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: e2ce3e31898447259ad7631d70f8f192 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: fec4bc35fb504363b8dac0473735b1d9 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: d4cc931928874bed96935faa743aaff2 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 708c6b4a613c4795bd2b3c8b10b9fed4 + expression: | + last(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 1220479e0e0b4dbbb7590ec2b8359009 + expression: | + last(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS328-4C-20S-4SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 3ce597bd788841829b006adfc17034a2 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs328-4c-20s-4splusrm + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 6c02eea5cb6f444ba0778bf96801a6ad + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 42f75b8ccc1642699bc4c681379cdf9a + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: eaf1d4babd704133811b0a0bc912d319 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 057602363ab44b638e1c116e1e4edafd + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 14fa9bc957f644c19e88352fcd00a196 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 661c463acbed4777b8269b9277a255fc + expression: '(last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS328-4C-20S-4SRM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS328-4C-20S-4SRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 2fbbbe5c78d14824a1a2234769e4e687 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS328-4C-20S-4SRM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS354-48G-4S2QRM_by_SNMP.yaml b/MikroTik_CRS354-48G-4S2QRM_by_SNMP.yaml new file mode 100644 index 0000000..250361b --- /dev/null +++ b/MikroTik_CRS354-48G-4S2QRM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: d1c1ab5db2c34c17ae3541407f8b7faa + template: 'MikroTik CRS354-48G-4S2QRM by SNMP' + name: 'MikroTik CRS354-48G-4S+2Q+RM by SNMP' + description: | + The template for monitoring Switch MikroTik CRS354-48G-4S+2Q+RM. + + Best price and best performance on the market – this 48 port switch will rock + any setup, including 40 Gbps devices! + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 24ab31dd7fd44ed5a5fd22e02fca0a11 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 987ae7ade202464ba51fd8fcc67d3a19 + expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 80ab3090289a481da72c0d93764eb18a + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: bf7a369d3b2a455496f8920177666d91 + expression: 'min(/MikroTik CRS354-48G-4S2QRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS354-48G-4S2QRM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 15552636da9a40b6b2bec461798f3c0d + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9a35ff4d142640e387f247a8ae5021bc + expression: 'avg(/MikroTik CRS354-48G-4S2QRM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS354-48G-4S2QRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS354-48G-4S2QRM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9ef56761ca344a9a8774ad109bc00834 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 0ca8eb8ed89a4e1eb5f4b40050a3fa7a + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 197098286a9b4b6bac5bd79a4f0eb522 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 9ad920cf294a4fcbaa78ea4f01385588 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 778d3453ddb84b53ac3598bf8ae78286 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: d0db3ce8a567414a96bbe5b02b1967dd + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e24fe19f052f4901aeb9feab8199e461 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 7e708c7bf76445959909bf03adf676dc + expression: 'last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f054bfb710c14307ade4081fb441e840 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 941a740a1dcc40cf88dd56039f26cf92 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 0b2e29ba173346248fb4d799f7e16cf1 + expression: 'last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b2fa99d8602342358690da734fc553a5 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cd48a08f2b4a4dd3961488a00424fcce + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 139496c157af4e12b28ca337ca60c7fa + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 135707c751764f9087ebd32e1fe0b7ba + expression: 'last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.name,#1)<>last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.name,#2) and length(last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 3137916543634345a5688f631657fa30 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 78f353c258764fa69637afe7f8ab440b + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 73fd8a7f00b2442c8d5bfab913d8eff9 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: b0c3673f0aee4a23a7811f54416924bf + expression: 'last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.name,#1)<>last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.name,#2) and length(last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 85468f79d320417ea0f0e28087c75565 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 011ea07e21a24cd1a4b42149ffe128db + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 902a71cc5c094a62a2a7f735d07643cf + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 4ae4d4e6fe0d4bf290f96e1d430f2655 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 5e104649223b40cdadeaa338321ca690 + expression: 'min(/MikroTik CRS354-48G-4S2QRM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: e01e3b3a9db44d2db55ae6d289d963c4 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 239d876c15fe45ccb33ca87aba3a170f + expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 506fab7cb3c045f890437a7e959f2171 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: f5b155d37a2148e694ab5815b3738894 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: f8801c652f414d4b881715e10d1a69ac + expression: 'min(/MikroTik CRS354-48G-4S2QRM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: f44de058c1ac47a182203d3ebb97e1ad + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ddf965753be54765afd2ce23a0895ba7 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 5235b45eb9be42748cd9740626734961 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 5e2a48b70bb5491791e1e796d9b57700 + expression: 'avg(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6064422d708f4ee3a54dd0dccd6c2ef4 + expression: 'avg(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b61c653ea25c47f397288e7a6c88c343 + expression: 'avg(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: aa5a9445830441ee9795763529df49ae + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 454aab3736a24babaa379f7526a41e5d + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 7f1abc774f4e48928a52a755f9655d33 + expression: 'avg(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4c3b3b0c4e4c4903856c673ed34c32b2 + expression: 'avg(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 46ce97f9fd33406996e21d7c4cfe4615 + expression: 'avg(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS354-48G-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 714fc311cc2a46659cb42859cb196902 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 69c1e3a5f4694ee59207ea3c56d3f643 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5caa686e721a40e991d0f4b71eaecc7f + expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bfceb2b2627a467ba9a3916b3c34d27f + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ce67126d64254dabb9d5df68dcdb5a69 + expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7284e5a86c6e43c485e8c7b9ec633cad + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7401d1955be04599b1d0e5dfb3d2a4f5 + expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8309561fc4f14ccdb69da3728c4fb0eb + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d668e892231d4614af5673f11d8070cf + expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 417c7efde3d44f27894d47ac2f6ce025 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e35084133a5e4693aea5f84b96a6480a + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 56f594fa8595463886e857977c172eb3 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 48bba64f95304974819ef7a15bbbce85 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 401390a283de4ec29bfb1c0c99820a7e + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b67454e3882d4c16bb51094017775630 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: db3274433926415b97f8e34a9f04a9ac + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 1512667e82b743f09392103d73374861 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 92e6fbfd1cf843fbb26a62aed1360214 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c1d0e3150e5a4ad39f39cebe0a381aaa + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c176e70d536e42c9aa62f4952e166c9b + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: df1e4f1603d14e07b5308d5fd5eb55b0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a5ac3a7a8ac447bdb1d35b9456351624 + expression: 'last(/MikroTik CRS354-48G-4S2QRM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 71ccfba5cc2d432e9414023d0f75b8db + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: c5601b788d6f4671a40185e744fb6bb1 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5b408d3188a04d30a5897746bd27feb8 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 28c8d1007d794e2c90f3303ed05bfba9 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2529b37765ea41d8a780f20e37e49add + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 95533937102b46f4bc862f326b555913 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7cf5ce8e6ade4a0dbbe5491cbc50797a + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 484b2b4b18724db8a2e718a24546686a + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ba7998aa6ff34a4d828aa37aba12f55a + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 914bfdb045554132902dff8f910878d4 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 5f0fc074d5144155a8bc67208bdb24ea + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f1c3a3541f9948eb890816493e6251e5 + expression: | + change(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: ec1a319bff034c6387ed43d083c0ca85 + expression: | + (avg(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 1d46257a2eb14abf8f3dddae5e3974ca + expression: | + min(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS354-48G-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 7b2f6006d6a64efe96366c1dfa220f1e + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5222de6258624467a0b0245312047307 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: b2f996b4a5e842d3b3b3ec3813faf82f + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 8303806786424c7499d013d4a55d4b6a + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: f9361907c6b944a0b282fc8ecabe050f + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: adf6f10ebb2e42989ed41b69e3411431 + expression: | + last(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: da4dd8436d6f4787801e6d2f10b59a47 + expression: | + last(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS354-48G-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: f85b7f7ab6a4454ebd777f5b8cc00900 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs354-48g-4splus2qplusrm + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: eaf7b6cad42c4ab880464402ad2ba327 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 328bdd06aa634535895f099b1ae489a2 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 1404a90ce0c24bdfb85712fa4ada16f7 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 92b5d1e8e71948fba8a01231ff5661ae + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 6c09aa1071a04b4381d625bfa862651c + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 1906ad6961664c74a2de31d20cd279b2 + expression: '(last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS354-48G-4S2QRM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS354-48G-4S2QRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 4c949d698efc46ca8b4db208fbffbf79 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS354-48G-4S2QRM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CRS354-48P-4S2QRM_by_SNMP.yaml b/MikroTik_CRS354-48P-4S2QRM_by_SNMP.yaml new file mode 100644 index 0000000..a42a8a5 --- /dev/null +++ b/MikroTik_CRS354-48P-4S2QRM_by_SNMP.yaml @@ -0,0 +1,2647 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: fa5e5e131eb34bbea1b1f7b2352a853d + template: 'MikroTik CRS354-48P-4S2QRM by SNMP' + name: 'MikroTik CRS354-48P-4S+2Q+RM by SNMP' + description: | + The template for monitoring Switch MikroTik CRS354-48P-4S+2Q+RM. + + The 48 port champion you’ve been waiting for - now with PoE-out! + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 394f2cd81cc747009c16e0fa7c7febc1 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 94618414658d4f5bad5f1cf544fba55d + expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 513874d2dce848fca9d5be0f8a698a27 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ecb0d03f65144dbe8e8e22339576fe1a + expression: 'min(/MikroTik CRS354-48P-4S2QRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS354-48P-4S2QRM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5261e46912184a41a32c3d309cd8554c + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: bb70a4e882224f9d8302f8726ff81a8d + expression: 'avg(/MikroTik CRS354-48P-4S2QRM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CRS354-48P-4S2QRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CRS354-48P-4S2QRM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9aa7461f98fa4a5db662b35466b0b102 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: c5ff7db372af4f2b92dfe19d45ee1b9d + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 93d399db31b64d36bfe87a1f99195663 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: d83e355ae790441594a2ca6d5ec37de0 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: eae8e0a3cf144efc8decc672413bf511 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 38a1523e8ce54611842e76fd4f614c15 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 397dce267b79414fb563dc2f184d2930 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 9b20e7d8a4c844069a75adc95dcb6223 + expression: 'last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: cc3d781f3ba64faa9914d34a4d450fd6 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: d611ea9fbcff489e9175dcb6f0ffe2d1 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: ec99b185eb1d4af2943cd49f4b1e3dcf + expression: 'last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7b93e987a3e442e39e2f822a0c271678 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 49a731f14f3b4bae8f16eb6a7a5d3b7a + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2f54cf3f5bfd41d29b46887c8de02df3 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: f4c43870fa484e4088c1d9c973387140 + expression: 'last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.name,#1)<>last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.name,#2) and length(last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: bce151f2eece481ab9ff10bd492ec514 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 45d0902fc8764108983d75f51a7c13ca + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4257226c6b90413baaa7a2b8beeb3c01 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 54ca398b57a8450ba004aa15a310f599 + expression: 'last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.name,#1)<>last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.name,#2) and length(last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: e1fc1f83c9754629ba9c77af9edcaabe + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: b319b01c532f453aa0b39c6cac9c06e8 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 7522d72e76254a60b59fc2c67590701a + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 4b9d180956ca4f17abc9c232856f1a78 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: a60e5b95514e4a6ba5bdc1d2bc95818c + expression: 'min(/MikroTik CRS354-48P-4S2QRM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 7c119d5bedb542f288fe4a04dc629b94 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ce74c74936194791b8f8a09acd9d5501 + expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 95a34c80dcd848e3b5ccad0f57a06532 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: a1d0f17280d543bb825830f808dad88a + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: c5ddc3a0e73943ef939341972db502e1 + expression: 'min(/MikroTik CRS354-48P-4S2QRM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: c23045bfa1ef442490ecc2d3c9120018 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 84b79932cea04e7fa9dc64fe119a2825 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 13f73255283f4f6b923edae51f98f5f6 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 963f7342ba58427189be8e5d482bd1db + expression: 'avg(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3bc320302ce64512bf5cabdddbf8827a + expression: 'avg(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2341cc2581aa47629ba79efb0dde8f12 + expression: 'avg(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 2ed1bdac264e4d05b1873e69c17cc288 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 1d1fbc3838c341cc9b874721a824deef + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 310fc63d695d4d79adb61b152467dc6b + expression: 'avg(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 45d51b9e79ce4086934b7a93837855fd + expression: 'avg(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 84ea7da850864101a35eb96acb475dec + expression: 'avg(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CRS354-48P-4S2QRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 1250fe89b2b645adb6d8a444e286c34a + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 65bd1f9096914fa5952a842f869376e3 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 832ceaf8547b4395a4495ad2d64c9f3e + expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: da6ebd895cb7465d964de43bb1f97125 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 64e8b603db0240bda81435df0ec8f275 + expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 817d4b9c195c4b74a986dee3f509d56f + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8085843742774a44ada60c14cf33aeb4 + expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3031a59f08914941ae9f7fc8f494b132 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e315b7387f1943eb9432986565aee291 + expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 5e4a66d716554e8da4f9d85f5a5ba138 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e8d513955f9b4f819c408cf3aac35ec1 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 22665dbacc9d48d985d7ca4e463319b5 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 18664eb3c8dd4e768f9de382ee8bba85 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a6badb125d8d412a8d9142882ab4b956 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: bb2ad51473f04db188bd4e335591b94b + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8afb3efbe69e4541bc74760ab4ba3130 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 829a233a44aa4cd2880732ad863d2d27 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: b2a8832875e14a0f9639de640f260e92 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7e4ba0da31a24287b12f07940f449131 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 30511ea997e740d2a6313005e7f56a71 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 01e691a3d2fb401484af4e768cab09b7 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 611cb0ad354a4ac0b52715483b4426ad + expression: 'last(/MikroTik CRS354-48P-4S2QRM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 71bd3db236e245299334bf7b03e3b7da + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 4ef7919acd4a45ed93214a6a940c8f39 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f28824308896450f8e9b2842dd103db6 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ae10194c5e7f465b902f0cb20f7b8776 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b07c109994db4a5eaa065589c54edcc1 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 90b82a51bd104a79804213b1b566fb5a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 65dfa7a917a24279823f3c5bac76c1d9 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b19861fbf90c474c99f644c6880cf813 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cf3c4275cfe1466ab07d672031bac4af + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2426c10e34db430a946528f02ae605d4 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 91c1bbf2dd264ee3a0f741d4398cf02a + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0eca316085f046599bd3db8ce7b186f1 + expression: | + change(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 417ef3b4a8814b01bcb4715248df543c + expression: | + (avg(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: a674f655342a42b094b0084fab1bde99 + expression: | + min(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CRS354-48P-4S2QRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 5921d8fc6ee94d1d9d8f96ba34215c1c + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0cad2cd6715f44d6a912a63cdc15926b + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 00bc5ff9329240978654621ee37af739 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 435c8ca87deb4fbfad0df451c9b3dc57 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 5c7b4cf01d2d4b8f9cb5022a54b4593d + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 63d24ac83bc24eb5b64ecc47c75c1c4a + expression: | + last(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: ed3c082e9f264f20862f9cd20d4e9724 + expression: | + last(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CRS354-48P-4S2QRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 17e8f43e55f74e8a9d648003153eae55 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: crs354-48p-4splus2qplusrm + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 99653a15e8c64511a3922c97e5ea6ef2 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: a020e149d8cd44b4bc01757e860fea9b + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: eb92bcec20754ffda075157e919ff103 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: ff7e81f30cbc4a8e9bdd4ab9f1b67332 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 51f609663817483cb44991b1057b6fd1 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: ec03a67de5ca4d8d834e1689a1cd28bf + expression: '(last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CRS354-48P-4S2QRM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CRS354-48P-4S2QRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 00dee725174d41488e156ed07764be15 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CRS354-48P-4S2QRM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CSS326-24G-2SRM_by_SNMP.yaml b/MikroTik_CSS326-24G-2SRM_by_SNMP.yaml new file mode 100644 index 0000000..9e28fe0 --- /dev/null +++ b/MikroTik_CSS326-24G-2SRM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 75ada0d6fb22416a9e6e5f44c2c3f64a + template: 'MikroTik CSS326-24G-2SRM by SNMP' + name: 'MikroTik CSS326-24G-2S+RM by SNMP' + description: | + The template for monitoring Switch MikroTik CSS326-24G-2S+RM. + + SwOS powered 24 port Gigabit Ethernet switch with two SFP+ ports in 1U rackmount + case + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 8075b9b02fb14be1888ed2a64775f7eb + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7c5ac0cbe19b4a119e8cd02802169849 + expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 581804928209426ab53c232419f0d201 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4b63a258093a4b5f8c7f415c054e290c + expression: 'min(/MikroTik CSS326-24G-2SRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CSS326-24G-2SRM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 919171c77ef34d96b071d04c279d467f + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8d37fb7e0f32438ea1b1f55389c4c024 + expression: 'avg(/MikroTik CSS326-24G-2SRM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CSS326-24G-2SRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CSS326-24G-2SRM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: afec8f57e23f42b2837fb036952f649c + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 2b5526a8b35c4733bbb79606d7818749 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 0f21accc1a4247e9951b6c0d8b9a49af + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: a79df3796e4b4f5183a8ee38d554843f + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 56d7791a6ba84e47b5042a035cf9a1ee + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 4d3eab41a8c845a7bfbe5dbb3b6fd45b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ac47dac361224d288e4455e9a689d690 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6be0e3bc49134d8c9823736e1c4dcb98 + expression: 'last(/MikroTik CSS326-24G-2SRM by SNMP/system.hw.firmware,#1)<>last(/MikroTik CSS326-24G-2SRM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CSS326-24G-2SRM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 01ef36b50b394e4bb9670abd48a05369 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 2321d2d106f6432a9de5b5a633315e5e + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a6c0fe000ca34b7490c4a56f5c57346b + expression: 'last(/MikroTik CSS326-24G-2SRM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CSS326-24G-2SRM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CSS326-24G-2SRM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 90e82de3b7b043269947a13acaf0eae3 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: dd009a8b6f2d409c89cd5f5c60bea1b8 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 52a05ea08b8640f784861b5b2b75dfa8 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 23b043f4b2344b8ea9140387454e6b02 + expression: 'last(/MikroTik CSS326-24G-2SRM by SNMP/system.name,#1)<>last(/MikroTik CSS326-24G-2SRM by SNMP/system.name,#2) and length(last(/MikroTik CSS326-24G-2SRM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 848026e8f903413d8faecf0233d69a8e + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 06a2d329ae384c8fb773719c34593d0f + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ae9626b78f3e4e89842fb82592e2f520 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 660fbce28f334bb79afc6a9ba8596316 + expression: 'last(/MikroTik CSS326-24G-2SRM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CSS326-24G-2SRM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CSS326-24G-2SRM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CSS326-24G-2SRM by SNMP/system.name,#1)<>last(/MikroTik CSS326-24G-2SRM by SNMP/system.name,#2) and length(last(/MikroTik CSS326-24G-2SRM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 0a7e39d9bd554b578f41eb1c03b14523 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 4972cad8ac8f44d8a3d01278d602b21d + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: a66e0f5458094b13bbdb7c9193b334e5 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 5c095d3737054b68a32f491e34f4ab32 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: ac97984b2153426c89247bd88797b4a2 + expression: 'min(/MikroTik CSS326-24G-2SRM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: e77993cb5e6f4b71a7fb71cd85ea548a + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8d9d64c66ffe48899e799bf720182b6c + expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: a67f85c892114c60bf0daac055b2a8b4 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 4869b0ebcc9a4b7aa230dea7fecdc772 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 62fb5cb70674493ea1c7db4df42cf8f4 + expression: 'min(/MikroTik CSS326-24G-2SRM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: b14c854295504c2fbbb0481bebd5db00 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8fa3b36e1d7943c7b1d7b9a75c65d087 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 39a398bdbb564bb7b9b120b36e01115c + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 43a5c40a58f541faa120a514dc47451e + expression: 'avg(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bb4a5e936ba74269b8a8fa2e1ca2b27e + expression: 'avg(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 46754e9a44b04fdeabc9d6a1370505dc + expression: 'avg(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: be5b2f204fa545d4b581201dfbf57335 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: a3c4ebcac6134235a5f51ad0a825acae + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 5b25032a33c3443585d74f3412f13d3e + expression: 'avg(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 44f2b8515564492c9b2e68985f753cf9 + expression: 'avg(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cd9978c41951477c9d3ef44f7d4d717c + expression: 'avg(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CSS326-24G-2SRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 92d612ae6ba74d01a369713b27732da4 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 2461a98399364aabb2774f0330a09f38 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 889e25ecd5104014bd798cb577f59bd5 + expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 932b36d99dea4cc6b41daef5b452adb2 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8733d8912d8d400b9dafcc845854cb3a + expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e2d2db403dce4b8e980dce441399c31c + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a801c0260917479f9f905a8b32085fc6 + expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 18d7874870c74f9e93bafba284a038d2 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: cfcecfe761064f5baa312a0c54633261 + expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 0e692d0869b14d84a2aafd12aa424d29 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 479f5860d57c4a89869b03c98cb17e0d + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: bd884aa372ad4c29bc0431068a6d665b + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 57f41aedeaf947c7b2b99e11a8f5f6a9 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 46026e2ec35649f181707026f49055a3 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 885b452398fd4131a80ae84b484018ac + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b685866be093464f96fc8731e6cb24a6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6177e332ddf1464a843560c8aaef03f8 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 39cd37fd8f5b49d0ada87b665a3af974 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4249cd712d244445a4d69affa771b387 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 78346d4d85e045bdb151fb51108d81ed + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f836d1e069cc40fa9e31fd12456a9155 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0a36e10a866e455f98f1954b4c663d64 + expression: 'last(/MikroTik CSS326-24G-2SRM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 127a96854d2b41e98054deefcb4ae611 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 9f1f78e4cd2649fcbfb579019b899cac + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e460dc068df843b186d0deb849b6dcc3 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c1a647eb08494764b278d2d37c2ff95b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ec3b763a78cd4fe2bd32270d8d6dd13f + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c51489ce84b74371bea2a5c366a2dc5d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 397ab9b47b9c47b19238e468f5258c1d + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9f6c72493ee74c208834fedd93e4b593 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 30a4494efd164dad8df7975cf4f67d0a + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a0071a9d0e604160af201436b9879256 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f6163d52349d48938752e4a46595026b + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2215de4000e640c3b34a5333dfb3ec79 + expression: | + change(/MikroTik CSS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CSS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 1b7348beb2044c2cbb59904cde8fc02b + expression: | + (avg(/MikroTik CSS326-24G-2SRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CSS326-24G-2SRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CSS326-24G-2SRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CSS326-24G-2SRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: cd7fe7efe80241efae4e7dd2952313bc + expression: | + min(/MikroTik CSS326-24G-2SRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CSS326-24G-2SRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CSS326-24G-2SRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CSS326-24G-2SRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CSS326-24G-2SRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 2db7e672a25341008a6928fca2bb0c81 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9d5a922b41df4c9ba2e6c806aaa86ea5 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 4844d14f11a24be48f31ae5084e803d9 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 0496f8a356b14caa8a06ec4be8b04e65 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 7805deb172f0405ca211e47bb49eb557 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 7e550dcc8005425db0c20785d3818466 + expression: | + last(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 92d4b209c4e249fcab9d72eae2da160d + expression: | + last(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CSS326-24G-2SRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: a6a6dffb9d24445aaf4de5d0c5f386e0 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: css326-24g-2splusrm + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 210efbe6a9a447f49a268792381e73fe + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 03170ad661d94227a3ed44be919bb70b + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 154285efa1184f648f415c16c80ed959 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: e99c8b74b91047ce94ccf9d257da7952 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 4e98aec63e9a447085e18b0c00878c72 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: e2283150bf9e4248aa9bb5bd9cc1881e + expression: '(last(/MikroTik CSS326-24G-2SRM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CSS326-24G-2SRM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CSS326-24G-2SRM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CSS326-24G-2SRM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CSS326-24G-2SRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 7a77d8dfe791413ea16222e4159c7ef4 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CSS326-24G-2SRM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_CSS610-8G-2SIN_by_SNMP.yaml b/MikroTik_CSS610-8G-2SIN_by_SNMP.yaml new file mode 100644 index 0000000..ccfedd5 --- /dev/null +++ b/MikroTik_CSS610-8G-2SIN_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 8d22b4d1a9c6457fbd6fd959263f91db + template: 'MikroTik CSS610-8G-2SIN by SNMP' + name: 'MikroTik CSS610-8G-2S+IN by SNMP' + description: | + The template for monitoring Switch MikroTik CSS610-8G-2S+IN. + + Eight 1G Ethernet ports and two SFP+ ports for 10G fiber connectivity. Portable, + powerful and extremely cost-effective - this switch is an instant classic! + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: b919a35c522a4e578e4141f3c418d516 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4c4560f84de94f36a3e7d4941ded2cba + expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 8173ce900a384eb6be5941be7ab89b15 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 44efdc627091496baa1fbe4bbe078e6f + expression: 'min(/MikroTik CSS610-8G-2SIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CSS610-8G-2SIN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ad7aa85d14834683b63b43cf48222259 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 0a8c65b849dd4cb1a0d740d57323f76c + expression: 'avg(/MikroTik CSS610-8G-2SIN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik CSS610-8G-2SIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik CSS610-8G-2SIN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 65e7c0f418a94507a124ae74e9ba302b + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: d09dfb0d4a7141d797d8f48b97564953 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: b5d724ef958b4716b09dcbda5ae0ced7 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 44ae86def1564418a90f4c4a4c0b9e85 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 42b758a3d32b46499e2242fb083896f5 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: b8f058b9f1cb493798fb971c1d06f0d8 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c7582351ce394433b50aef17cc01b5b2 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 1a920e11feb447deba1aa2d8fbb24f85 + expression: 'last(/MikroTik CSS610-8G-2SIN by SNMP/system.hw.firmware,#1)<>last(/MikroTik CSS610-8G-2SIN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik CSS610-8G-2SIN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9e5fac593cf94a9d973ba8b604e1dfd2 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: f5531013912c4ed68e6b0b4d89165803 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 1167a5bf26e24eb89479904841ef890b + expression: 'last(/MikroTik CSS610-8G-2SIN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik CSS610-8G-2SIN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik CSS610-8G-2SIN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 96f11f9c23434a68b82d075f85af3c31 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 6ee460010096474e9a574efba9f5a321 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 05efe5444887488cad6e765f29c8872a + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 56b334cfbcf54eba95c229b097e3cfd7 + expression: 'last(/MikroTik CSS610-8G-2SIN by SNMP/system.name,#1)<>last(/MikroTik CSS610-8G-2SIN by SNMP/system.name,#2) and length(last(/MikroTik CSS610-8G-2SIN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: bc75baec3ea248e5a287b00906e18775 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 2cdbeb7f0c09494996884bcfd5d97df0 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 86323c3d935642f980f158e5868f35e0 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 4a1aacf6350844e5858c3eed35b544eb + expression: 'last(/MikroTik CSS610-8G-2SIN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik CSS610-8G-2SIN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik CSS610-8G-2SIN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik CSS610-8G-2SIN by SNMP/system.name,#1)<>last(/MikroTik CSS610-8G-2SIN by SNMP/system.name,#2) and length(last(/MikroTik CSS610-8G-2SIN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: c1e35414044f415fae94d45754fb5c8f + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 3ab4fc5c9fba4e098977500051a8ac98 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: df10ebd3cfa44fe6838889ff81e8cab0 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 132ff52c4648491c9743bcf11b680236 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: f58eb093a57948f1bf674be6a207b0d3 + expression: 'min(/MikroTik CSS610-8G-2SIN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 5534d6b602624c7a99c70c3b75e4478b + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a63e914da20a47ef9d478b53d5e18042 + expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: fc9d85ea9e364ae58f4bd34dc702bd29 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: afc355f3e1ed467ea0103f8bbcd426e0 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 4a30b05ebe764253bfe646c3d68aef41 + expression: 'min(/MikroTik CSS610-8G-2SIN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 1d1ce73e95dc4ad9b20d19010e524344 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b2e8ea00836544f78a33586ba8b92b45 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: f77d01ca88eb4851951df2a481208bca + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 7475c0fe7374472db189a828aeca7b60 + expression: 'avg(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 225e0c1c96c94a32a84511107b71ea6d + expression: 'avg(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b5300fdf6fe8405d84fdd7a8821ac504 + expression: 'avg(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 4b3d7a1cf06e4fa184403f3796c3ed13 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 0cb6b32ae5a84259ab847d0cc802f16c + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: e208be80d815435ea6fc35df960bd2f6 + expression: 'avg(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7153cf7699df438d8d04e5d3163e37b3 + expression: 'avg(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 30adf35ae2764123a80f64e81c11c9dd + expression: 'avg(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik CSS610-8G-2SIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 7040fb77df5b4300bc9084b76b901940 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 12c180e262234293a6f1546424797d21 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 35142b5bd9064d63a661b07b24381564 + expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cfb4d7bc97054f2fa76d9b945f65f151 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ddd0efc2e01e4b6ca2948a5d3973dcd5 + expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8d134db6ad6342308926fa1de66a1f42 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 90f360f3394d49a19413dcbf0dc0eab6 + expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: de1b466fd287481cacebcbea3339d984 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f753e8c0d5fe43779fc3c427fcb087dd + expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: d1ff1951fe214755acf84088b44616cd + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 740cd4e70898478caef811525702e0eb + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: da1b743f2888401394de67c74e54aa72 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9132dd54ff2f44cc8ddcb152c892ee06 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 867d40ce9bf44892b0f70f8465f727b0 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f16dcddcb1344f3db732c7e794bd5bad + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: cfe19d4825d14a91975023848a7464d8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6059d2ecbecd480b85d1c4e94eb65059 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: b9d03050f7234ec48d380fc686ea35c7 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 71332c155c18442ab89d0f3bf49a11e3 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 706ba145d130418995b4e61b19df3a6d + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a852223b28574abc9d76dc0053699209 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0ec46a410f97442fb9308a0922d43648 + expression: 'last(/MikroTik CSS610-8G-2SIN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 32198eb34e2c4b0583718f70453c07af + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: da796620bb934064a801a476bdb6f12f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: df4b1fb0cd1c496f899f72a71912a0e8 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9c94e7fea09a4564a8badee716956faf + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 20f2f1af873a4a669cb3a26c04dc9ffb + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 951aabf89c3f40fab81974e3b7f05a3f + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 240c2875c51a4ed9b417e86a2d00ef58 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9a5ce33805674092ab3040890f753ca6 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d13d7eaba7314f4a8b387b373cca5c6f + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a50ddafe680c447db056a9a9012faead + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 66553455009c4044bbd0cd4c259bd3b4 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 426f6a84191544c79eeabfbfb7590a35 + expression: | + change(/MikroTik CSS610-8G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik CSS610-8G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 69788ba37d1147c2b67d4dbbc9b33eff + expression: | + (avg(/MikroTik CSS610-8G-2SIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik CSS610-8G-2SIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik CSS610-8G-2SIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik CSS610-8G-2SIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 376cee5b35f840d68db5d1daed510eb3 + expression: | + min(/MikroTik CSS610-8G-2SIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik CSS610-8G-2SIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik CSS610-8G-2SIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik CSS610-8G-2SIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik CSS610-8G-2SIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: a99459605b774ff19684b24f62b1c5fd + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9eb6e527f56c445f8ca77717742472a7 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: c5b9a5819b1f4c34acb71d9cc12b7ef1 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: acd377f6db0f4a7eab0c1289309b69ad + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 7a66d6925e3d48c6aae02daaf1051860 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 1f6e2a2bdf04499eabb18118fdbfcc4f + expression: | + last(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 7fe3563d08ad470f909545c146b1b2c1 + expression: | + last(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik CSS610-8G-2SIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: b3730be1499f4aa094217acb7a84148f + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: css610-8g-2splusin + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: fa009f91126345febe515a2d76329a0f + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 373f90696d5446dfb8b96ac601ea46bf + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: ec31f6a5de23428babb52891633c1cbf + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 46a72cb8e18e4f6287a01663b70d65b8 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 3ecff0e7f545452eaf0a4ea5c259099d + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 3afcbbeb91004c2dae24efaf37fec710 + expression: '(last(/MikroTik CSS610-8G-2SIN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik CSS610-8G-2SIN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik CSS610-8G-2SIN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik CSS610-8G-2SIN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik CSS610-8G-2SIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: c03e4e6d267d4529a68fd193f9f4923d + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik CSS610-8G-2SIN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_FiberBox_by_SNMP.yaml b/MikroTik_FiberBox_by_SNMP.yaml new file mode 100644 index 0000000..858703b --- /dev/null +++ b/MikroTik_FiberBox_by_SNMP.yaml @@ -0,0 +1,2647 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 2bd6f566391d49dab6bee184522ab5fa + template: 'MikroTik FiberBox by SNMP' + name: 'MikroTik FiberBox by SNMP' + description: | + The template for monitoring Switch MikroTik FiberBox. + + An outdoor switch with five SFP ports + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: c5cc6ac52ea14002b65acbddf9f48045 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 6a7f532a2e4a4b4cbe9435e560f8d281 + expression: 'max(/MikroTik FiberBox by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 99b96d870f9e473f82d753e73e5a0662 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 17c92f554c45423eb5b44bd08f34ad7f + expression: 'min(/MikroTik FiberBox by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik FiberBox by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik FiberBox by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 02d39b670ab94ee2a915c2b33aae5b47 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 3b093888ce154887afaa6f738218d718 + expression: 'avg(/MikroTik FiberBox by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik FiberBox by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik FiberBox by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik FiberBox by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cc31d87a9f76429d9063aa89c1e99229 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 5c2f6f54f1b7498fa4c038a6cd8e1f26 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: d933122252654a9f9f9c6eb8a62f2de0 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 6e1f3e5e1fd2426eb057cd3e6d857826 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: eace29d74902498794e0b471d478e42b + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 98e095b208874cadb7de6380a0b28166 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 079bddb94e6d427b9b4232ba4da15b53 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 2a00f0a84a274bf98254d1bbb9f1ad93 + expression: 'last(/MikroTik FiberBox by SNMP/system.hw.firmware,#1)<>last(/MikroTik FiberBox by SNMP/system.hw.firmware,#2) and length(last(/MikroTik FiberBox by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c787c308e66348c2a2041c612ef70513 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 87b44381d4154c34bb1de1d8e56bc0f9 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 519f97f0275f4e9caf7e320e932ee911 + expression: 'last(/MikroTik FiberBox by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik FiberBox by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik FiberBox by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1634bc47137b4de9942b33ca99eb4541 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 2e0fbbb7dc1d42a199b04261af201a07 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 59b1e8b64a30407b9e503f94c4b13b8a + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: dd116049df75471b8aacbedd082f2634 + expression: 'last(/MikroTik FiberBox by SNMP/system.name,#1)<>last(/MikroTik FiberBox by SNMP/system.name,#2) and length(last(/MikroTik FiberBox by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: c952f3c5768d4bdfa671ffb047968fd6 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 6f192955e5c64c958f6c7a0564a51d0a + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3a8bf0dd575f4718a87c007408f98a80 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 97933a27c0eb4e0cb67fceb9877641d9 + expression: 'last(/MikroTik FiberBox by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik FiberBox by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik FiberBox by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik FiberBox by SNMP/system.name,#1)<>last(/MikroTik FiberBox by SNMP/system.name,#2) and length(last(/MikroTik FiberBox by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: b0efa7e7c390457b860529cd06839d09 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: f5291559b3da497ba0cb9d7d36f531aa + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 40578c7f19bd4d2b9045abb2ccdd247f + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: f076a1ed65f340579771f6f9c6f5d724 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 72662034829d4d008f19cd3231b18bd1 + expression: 'min(/MikroTik FiberBox by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: ac42b3af7d964b16a44b8553e09b5e4e + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7b8af02b531842e2b7f50037a8b3679a + expression: 'max(/MikroTik FiberBox by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik FiberBox by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 169cb8a2290645ef8b19b1fb559471cd + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 9056ec8b1cf84e4c972b77897908e8af + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: c5c743eec5fd430385a3ab3f1b9ccd61 + expression: 'min(/MikroTik FiberBox by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: cc63e64026b24e5ea1324ecc1049f5e9 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik FiberBox by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ba436d334f7648db8a7b792418232fde + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 8c341838dcb7463caa565c5b50b131bd + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 788f637f7c28499cb0b8227bbcfddbf6 + expression: 'avg(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f2952ccdadf0474a85e626eeae67ee8f + expression: 'avg(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fbd7daacdcde41fa9395a3dba62c7365 + expression: 'avg(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: bd5ed76fb50d44e0925cf59b9f7b33b2 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 3bcaff90977a4c68812498d86efdb0c4 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 732a162ce6aa424e8660882cccfaf40b + expression: 'avg(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 64daf72dc6824976bbc28c0e76b9318c + expression: 'avg(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3a6e8742e68d4e4cb77931acec6202f2 + expression: 'avg(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik FiberBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 7ff8e43421a3408d99e3cf038cd1d32c + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 74dbe99ea3f84e25b5c9b675615d6234 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 89422cbc4e294e5392352b3daa42a27b + expression: 'max(/MikroTik FiberBox by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6044310bd6814fcea1bfc496fdb4e1cd + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1f5dbc7e06fb4a48a516f21095ad95eb + expression: 'max(/MikroTik FiberBox by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a34aaedb745d46c3b60a53ba3f4619fd + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 13229b29783c42119d9242d4e2d795ef + expression: 'max(/MikroTik FiberBox by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 777ea9e79ab24c9b9cc524317c5d7a3e + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: acdd956a5d49476a86ced8d9ac561979 + expression: 'max(/MikroTik FiberBox by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: c0d3b6d20f554a9c8014d9cf9d0f9055 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik FiberBox by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik FiberBox by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik FiberBox by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik FiberBox by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8dccf29262d64d02aa9ec070a113e9c5 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 7da2dfc825894d23830e461da773d2a8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 02f7b1b3fb6f4a66bc4b02dedc2e08dd + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 59a008e602744b87a435d43ffcbd7270 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 41d0a02df0d6474895eb69c559da7d86 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 479ac2c04b3144ababdeddb75a0437f8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 03b7a6369c624c169416d85d6bdd8bd3 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: e7fabf081a154b6bb345bdf08bb655ca + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 54de59401d8b40f3b6446780d13a89f8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d32f654355f64421aeae49b6fbedd976 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b5341b9ed36045ce951f455232b74983 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a6f2bfc1407f4b96ac51aa7ec69b234d + expression: 'last(/MikroTik FiberBox by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2f7a46aee66e4dbf997ac51362f2bb55 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 23ea1788a4334a2b8ec9b4980bbccc9d + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c802ca6e2ecc4d149b877eca9a01190e + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: dfcec8edd17a4865b75df11c0929ce68 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 01c46647d3e34f04bef49464f3ecee7a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 89b2e0e05b51489881bd3999cff7460e + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0e299540733d41f7a31fca8c834d4a64 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 031c50df657944dd86e736d2747a3d6e + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3d0785af532942398bbc7c71f1c902ad + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1dec7dd2894f4296963217dc13c78abe + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: d3f08b8e8b5f440a9ce30440b96ee2cc + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9d517af24f104293b6ca6b2b8de70d3b + expression: | + change(/MikroTik FiberBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik FiberBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik FiberBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik FiberBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik FiberBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik FiberBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik FiberBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik FiberBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik FiberBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik FiberBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: a95105e0711543388452fdb960bd2caf + expression: | + (avg(/MikroTik FiberBox by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik FiberBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik FiberBox by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik FiberBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik FiberBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik FiberBox by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik FiberBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik FiberBox by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik FiberBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 1881f3af98ec450cb15b88ac749bacf6 + expression: | + min(/MikroTik FiberBox by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik FiberBox by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik FiberBox by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik FiberBox by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik FiberBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: ff833b0eb23a4e5d9ae1eb534d7ef0f3 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik FiberBox by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik FiberBox by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik FiberBox by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik FiberBox by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik FiberBox by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik FiberBox by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4f9aab06d404429095f58719a45169df + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 42dca57a2239444484284cb7cd999af2 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 1065889d15ad41cea31648c789a72035 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 8eb65066ede74a32968a87485801775a + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: d48fafd1402e4774a5e7c2d854e3ebbc + expression: | + last(/MikroTik FiberBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik FiberBox by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik FiberBox by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik FiberBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 802aa708fd8e42fdaa61d1aa3394c58b + expression: | + last(/MikroTik FiberBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik FiberBox by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik FiberBox by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik FiberBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik FiberBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik FiberBox by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik FiberBox by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik FiberBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 2a6511d5067b4377936d922609939d6c + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik FiberBox by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik FiberBox by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: fiberbox + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: d32ae92db9a142978e2a8f59b7e5b20e + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik FiberBox by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 405ab38009ec49348abe0b0c40cf8400 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: f8b354a36e1b483a9b62e151e9979e44 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: d6794baa748e42ecbbb7ff798a7b6dfe + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 80459903b71047d1979a2043fa4a77a9 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 63045c3ca20d4cd390b1247dfd3876c4 + expression: '(last(/MikroTik FiberBox by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik FiberBox by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik FiberBox by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik FiberBox by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik FiberBox by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 9e157495c5ef4961beff72c4f500c2a1 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik FiberBox by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_PowerBox_Pro_by_SNMP.yaml b/MikroTik_PowerBox_Pro_by_SNMP.yaml new file mode 100644 index 0000000..973e640 --- /dev/null +++ b/MikroTik_PowerBox_Pro_by_SNMP.yaml @@ -0,0 +1,2647 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: c03e1ab0128a4ae1847bc04a34f5634e + template: 'MikroTik PowerBox Pro by SNMP' + name: 'MikroTik PowerBox Pro by SNMP' + description: | + The template for monitoring Ethernet router MikroTik PowerBox Pro. + + Five Gigabit Ethernet Router with 4xPoE-out ports, SFP cage and outdoor enclosure + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: bbdbcca7ead1408f93dda57b8dfab21e + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a3fbb030723c45208c51c923ca11fe1c + expression: 'max(/MikroTik PowerBox Pro by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 4d2850a0021b47f581630fdfbba20ea2 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 6e46f7a198bb4cbcb4555e80a4ce7045 + expression: 'min(/MikroTik PowerBox Pro by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik PowerBox Pro by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik PowerBox Pro by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8c4bc8d2cbcc4433bb59db4137f9ae9d + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1ac1be3472d04dddaadfa68228997594 + expression: 'avg(/MikroTik PowerBox Pro by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik PowerBox Pro by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik PowerBox Pro by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik PowerBox Pro by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3416ecf2fd304658b724b3c0f5de202e + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 2f44c6ec36f442b490cac1231bbad884 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: c9683aa4310744b7889c2e5f8ca7d967 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 6c3eb8d3da7d437eb04be7c3782c9322 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: cf0b87d2fca34aa0b99d58251f438c27 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: bc3fea02652d4c5d82c2179313cc8987 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 0647d4e175d8467ca7f7579f92c56b82 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: fe286c10b77a4178b53136d088c09977 + expression: 'last(/MikroTik PowerBox Pro by SNMP/system.hw.firmware,#1)<>last(/MikroTik PowerBox Pro by SNMP/system.hw.firmware,#2) and length(last(/MikroTik PowerBox Pro by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1237d193c49a4110bce86971e3c142f1 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 2e56609d113d4e7ab304ac20c4debb97 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: b84f0bcdae4a4ef7887877b7f054ca3c + expression: 'last(/MikroTik PowerBox Pro by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik PowerBox Pro by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik PowerBox Pro by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e589fb99827e4e8197f6ecb8872b4f10 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 72ed8c2083474e38823957e17ca41971 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 967b9b8b943d4fb79ff7075d6bb1e31a + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 39c5e6d11d4c4866adac2a145a18dfb7 + expression: 'last(/MikroTik PowerBox Pro by SNMP/system.name,#1)<>last(/MikroTik PowerBox Pro by SNMP/system.name,#2) and length(last(/MikroTik PowerBox Pro by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 35e0a5603e7c43609c0405135dbaa957 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 277a7aa61ce241c089dc5367e9a5e0c3 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3013805399d449c9ac4469b1310504db + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 8d2847030c154c958ae3cc72841f7b73 + expression: 'last(/MikroTik PowerBox Pro by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik PowerBox Pro by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik PowerBox Pro by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik PowerBox Pro by SNMP/system.name,#1)<>last(/MikroTik PowerBox Pro by SNMP/system.name,#2) and length(last(/MikroTik PowerBox Pro by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 32ee0bad03f64031b06626fd4ad22991 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 2d7199ec103340b280154f08de8699f6 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 54c72d743ada42dcaa0c39e9493517f8 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 9aa6bb105738415e8971772cdb9273cc + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 4e4df5360a9b40b5a4f6d1aa706d23d7 + expression: 'min(/MikroTik PowerBox Pro by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 0604fe933a364f40bf3f964f2ba7f6d7 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 67cd4c3273394776a7e7497ec8c1a091 + expression: 'max(/MikroTik PowerBox Pro by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik PowerBox Pro by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 25d6d157fcd943fb9f0c56077cd77c9b + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: bca98eb13b794c299f72820136883671 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 4d838f76e7d14c73a89a6a8cab585e77 + expression: 'min(/MikroTik PowerBox Pro by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: b98fcdee076b497e84bb8613d2697b6e + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 19ae76cf5af647a4ab5e3dd32f9e4509 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: b91e83c420b14d32a65bb19bca8ec5fe + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 70bcead0c721429ea2140eb12e32e5a9 + expression: 'avg(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 04687ea5280b4448844b17afa9c655c6 + expression: 'avg(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 62fd1bbcbe9e4db7851ad08b75d9f54f + expression: 'avg(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 46b03489e77c4100b49aa05c9e860879 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 02b57d8b31cf4a618daa8021b8c926b6 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 9d035691d2344fa0bd64e6724828626e + expression: 'avg(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 869eb891b56e4d499586a9e40fdb5f95 + expression: 'avg(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5d18aa2f47154e999e9077f3cb06e3ed + expression: 'avg(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik PowerBox Pro by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 11214845bb78433d85ffbc220a53384a + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 2ff135f602264e0199f6cc0e622a9cf3 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bca448bbec634737adbc1935bfb96395 + expression: 'max(/MikroTik PowerBox Pro by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 668dc62196eb4aae90a39ca3dc039b07 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d7894ea315a24f42936eb44d85f60a8a + expression: 'max(/MikroTik PowerBox Pro by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2d38d81dfcf24505962a0f6b03c7734d + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: fb73c03756734684b5b1078de2d485ab + expression: 'max(/MikroTik PowerBox Pro by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 191ddb89d1bb47a3bed0dc8b22eb2234 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c0bc438b1ee248109e3471d6af153c14 + expression: 'max(/MikroTik PowerBox Pro by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 1a664f38671a469793eab15850dda3a5 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 132311b3514a496b9668605a9b37e22a + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 7caf1b16bfb34b83ad1883f5270bea00 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1bd56573eac644f7b76ec3dd1099e6ea + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 729b8bf1472c4ddda72ccb601740ccbb + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: fcd60ae4386a4eb2bac72c7544d915df + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9089bdc9a64a41f9b4b69b241ae27b5b + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 54e807c66d9e42089ace3bae82bce367 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: de6f8a579d4e4ccd858e5f017c787653 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 790cae75cd274f279c221854015e2ba0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ab549ccfcdb7413a913ed6fe33430cc8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e773a8468b604062b7838b19039a21c4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 91ea1c2de293413c9b24932282a673ee + expression: 'last(/MikroTik PowerBox Pro by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 066b2690d6234e2cb2bffd715f4ec4b9 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: ee0d3007bb9d4f8b8d83a052f98620a1 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f3d75b29bee14d779c94707322dd682a + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a4e9ed82f52043378d6304178c3e3f78 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 37cc5408843b4a35b3817b099fd1e420 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e8f7113e11d34e7bb15ba4ab5e2691f6 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 97827ffc7fae4320a9c1553d4c0490b8 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c8c2482534994abaa5d0cf23ad5cb62f + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 17bc03edd5fd42a0844e9105109c14e4 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e2c87fe418e342699ac14d1f9755258c + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 6246d2dd236d4ebe820cf85d690e847d + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2a68840307594164a2ca408decd6dba5 + expression: | + change(/MikroTik PowerBox Pro by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik PowerBox Pro by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik PowerBox Pro by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik PowerBox Pro by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik PowerBox Pro by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik PowerBox Pro by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik PowerBox Pro by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik PowerBox Pro by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik PowerBox Pro by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik PowerBox Pro by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: fe4d3130c3284b46b649a92b019a712b + expression: | + (avg(/MikroTik PowerBox Pro by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik PowerBox Pro by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik PowerBox Pro by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik PowerBox Pro by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik PowerBox Pro by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik PowerBox Pro by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik PowerBox Pro by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik PowerBox Pro by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik PowerBox Pro by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 22d8b44c4e6d467298c3528d98b02e1d + expression: | + min(/MikroTik PowerBox Pro by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik PowerBox Pro by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik PowerBox Pro by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik PowerBox Pro by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik PowerBox Pro by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 1dde48f425814a8391c26327dab3d9e3 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 708837461f69453cac8eeddac2ed95ff + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 0ec6cd6ed5d142d6a17a3637f2884a0f + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: d581f883c370430ba37c89a43a7ffab6 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: e36052b8960b4107a1222cda719dfb35 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 21b45f8f32344ed9a2323ef940fdb564 + expression: | + last(/MikroTik PowerBox Pro by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik PowerBox Pro by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik PowerBox Pro by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik PowerBox Pro by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 13db9f1c26754199937d4447976591ce + expression: | + last(/MikroTik PowerBox Pro by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik PowerBox Pro by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik PowerBox Pro by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik PowerBox Pro by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik PowerBox Pro by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik PowerBox Pro by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik PowerBox Pro by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik PowerBox Pro by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 35d96744ce7f47e292c09f85c114c549 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: powerbox-pro + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 477c1005ab64425489ae4221d4d34c37 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik PowerBox Pro by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: f3c5ab8576b34585a21cc5c12ea2f030 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 6f4886e0f3014d9796ba3014a2cf4190 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 15c511178ebd4ea1b08cf75048915a8d + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 5b9f23af5c684b2f8360032126ac323e + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: b3004ef6450848c8bb55e7c802c2bd96 + expression: '(last(/MikroTik PowerBox Pro by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik PowerBox Pro by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik PowerBox Pro by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik PowerBox Pro by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik PowerBox Pro by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: a7d7e7246e46435ea688b55a66652dfd + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik PowerBox Pro by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_PowerBox_by_SNMP.yaml b/MikroTik_PowerBox_by_SNMP.yaml new file mode 100644 index 0000000..aee23f9 --- /dev/null +++ b/MikroTik_PowerBox_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 0c7b3c03a5854f868b56f3ab63e2d3f7 + template: 'MikroTik PowerBox by SNMP' + name: 'MikroTik PowerBox by SNMP' + description: | + The template for monitoring Ethernet router MikroTik PowerBox. + + 650MHz CPU, 64MB RAM, 5xEthernet with PoE output for four ports, RouterOS L4, + outdoor case, PSU + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 3034f0f82fb140fa944491b4627e8187 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b1a43fa0251248fa897994575b8a27ac + expression: 'max(/MikroTik PowerBox by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 7b58dc12021b466a9d4d66eb12cfa15d + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 740b195a7246457ea28635c4b8ef0f83 + expression: 'min(/MikroTik PowerBox by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik PowerBox by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik PowerBox by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e6054de71dfe487f81f652af7105b63c + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d85b8d94139d44c69349898d2149e7bd + expression: 'avg(/MikroTik PowerBox by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik PowerBox by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik PowerBox by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik PowerBox by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 315cf9b2115041108a9c509650b4934d + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: b0ae9aa61be043309a13e2675ba8fc3d + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: d2a55d810c9e484fa230d90b7a5d78a2 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 369c73ea224941c7acc8519bb4a561f1 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1cd88ad46ac74b3cb6da7702f7eade1b + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 9dcc1a8373424d52be6e79ec2e1d2ce5 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f44c0f3952034baab2a7051ef835ad6a + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 2deae9223199442b895df43cb2b0904c + expression: 'last(/MikroTik PowerBox by SNMP/system.hw.firmware,#1)<>last(/MikroTik PowerBox by SNMP/system.hw.firmware,#2) and length(last(/MikroTik PowerBox by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d1826b39b0004104bb5e81b3c6a5e944 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: ddd2fc89869f4feca6141ed16d6cfe1c + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: ae8533bd4fa84d8f8e8969498d5530ed + expression: 'last(/MikroTik PowerBox by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik PowerBox by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik PowerBox by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 218903c6b9c04999ab58583dfc22d42d + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 85358d92f1ce45c6adb0eb8fa269f8c6 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 84a2ef84a1614afba525253263fcdea4 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 90a6f09f02ba4a36b019c6624ad13812 + expression: 'last(/MikroTik PowerBox by SNMP/system.name,#1)<>last(/MikroTik PowerBox by SNMP/system.name,#2) and length(last(/MikroTik PowerBox by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: fea0f7388a314d939626739b0ddf5186 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 58d2b5fae1fa41149eed29d761d7e3f7 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2e106a43efd24438adb62bec628e2176 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: b0b935a8197e4188962b7d859d2b412b + expression: 'last(/MikroTik PowerBox by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik PowerBox by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik PowerBox by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik PowerBox by SNMP/system.name,#1)<>last(/MikroTik PowerBox by SNMP/system.name,#2) and length(last(/MikroTik PowerBox by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: d86496cfc8444af2aabc000e6a80b689 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 3067b57e3dd841959b11a972903b8f35 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 981a289b960f4df19cc0e2728618bb3e + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 477247613d5546bc95b4d2b7e1695743 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: f9d7f4390619408eb5a20baa5e4ebbfe + expression: 'min(/MikroTik PowerBox by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 642ca5d699a248cb9a354c1a4b0aaed7 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 36ee677a31184b738cd02b91aee5ff78 + expression: 'max(/MikroTik PowerBox by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik PowerBox by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c3b780f997184c4582d1f78ab246ee5b + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: f97d176c12434b40acf7c78ba16281c3 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: acf19a5a27674b8db8b4913257534506 + expression: 'min(/MikroTik PowerBox by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: ff17c33d5a8743f8aff8a2b2a0ab314e + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik PowerBox by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2376b53a6f4045fcacbd6d6c0d78d0bc + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: c602a12c83ca48ff84c875d818528a87 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 93deb16896994ddf8509332b293f078a + expression: 'avg(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bbe383abfe5a48ad8a0b4a9c943cfd11 + expression: 'avg(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 915d9a838c0945d0bad74aa2fb79da79 + expression: 'avg(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: a221763ac5874a0ab8b9c76aa10809e6 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 02fed23773644b0ea25f5363cf732b45 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 9b3e19c885d34128b47b87d071d959f1 + expression: 'avg(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 921ad5dc74e44e139a523ef11dd2743e + expression: 'avg(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0501798bf83342c5ac1f960649163a58 + expression: 'avg(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik PowerBox by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 4fede59bf19241c6a0b730ca22a41a95 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: e29ee4177ba844ad81f1a806c6fe6249 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c5709dbe38eb40e1ae8ae0cc564543b4 + expression: 'max(/MikroTik PowerBox by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c091457e6f3c40afa1ccc9bf925d3051 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 96e644aa6f2c4399853ab05a7ada5afa + expression: 'max(/MikroTik PowerBox by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9e7ace2975934b8ba3e30af079be073d + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d4e38db917ca40da8ebd3da22442696e + expression: 'max(/MikroTik PowerBox by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6b58214098e54179b47c797dc6ef24d9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5837ae05e1694017ad026d215af06683 + expression: 'max(/MikroTik PowerBox by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 72f1bbbe190e48d8a45c4b2bf13e9f19 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik PowerBox by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik PowerBox by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik PowerBox by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik PowerBox by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ce069decd92a49b1b9e119214db8b454 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: d11505d36324428ab52aaeebdd745e3b + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 04eae1230e61488d8dff502aa879182d + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4eb4222707b14888b9385a8d39711a52 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0cfca6cd2419475d94a3f6ca8dfdfe90 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 956eb6d3e03143edb7b1c23e5a081842 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 53309eb8dfcb4772a0adb0c81cb4f155 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 37fc95a13ea043b7ada13a147e2ab280 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3c0821c1de9d43e58780de3729fb27c4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6fd532b46b944a7d8b8f188f9d0b11d1 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 38a6aba4e8df4833926424670f198be4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 722a78d3b55d4a66be1dba0b705704d8 + expression: 'last(/MikroTik PowerBox by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e637baa779224aca9006590a39346f00 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 7332bcbd5eca49f3a5365d86264f1028 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cb7b2f212cba40ad80cca243b05c3bc0 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8b0d5ae995c546779eedfe926e2063ad + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b47a007b7bff429b91347a937cbefa45 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5358ca10aa794e298fd4e8571abe654d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6e9189d7a23d4b5eb08e6b9a36a6a740 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0faeb4dc5e144f9794519f37a1ca26e6 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 10a37f86af134370838f58c09edd4e58 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 018a5f1c3af44b64a6d31e095fce0dfc + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 908cd9a188eb480fa50e90bb17e99575 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6ca7d0731b294e1081e95cb6cf2a122d + expression: | + change(/MikroTik PowerBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik PowerBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik PowerBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik PowerBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik PowerBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik PowerBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik PowerBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik PowerBox by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik PowerBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik PowerBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 4d7141f9e9e34656a89b011b20453494 + expression: | + (avg(/MikroTik PowerBox by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik PowerBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik PowerBox by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik PowerBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik PowerBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik PowerBox by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik PowerBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik PowerBox by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik PowerBox by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 01d85d1674674c7b9fc0fbaf96814160 + expression: | + min(/MikroTik PowerBox by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik PowerBox by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik PowerBox by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik PowerBox by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik PowerBox by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: d87bbff565484898a444d2015bcefd56 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik PowerBox by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik PowerBox by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik PowerBox by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik PowerBox by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik PowerBox by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik PowerBox by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 008a264a38134966870cf3834e5843c0 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: ec15b56d865b4ce8a2f09a6358c88f84 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 1107dc2e53fa47d6ab9678e50b824d7f + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: da751c6f6d0d4c1ea7615f96f0213113 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 3e812901cab94bbc9d5f15e8b70da4a0 + expression: | + last(/MikroTik PowerBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik PowerBox by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik PowerBox by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik PowerBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: bee86ff10a084f76b4b266aa5e20df22 + expression: | + last(/MikroTik PowerBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik PowerBox by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik PowerBox by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik PowerBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik PowerBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik PowerBox by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik PowerBox by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik PowerBox by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: d2c0b6dba77f4a9b99dc4e3693227514 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik PowerBox by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik PowerBox by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: powerbox + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: bc11448142fb45d9be6dbc9e9a1251f7 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik PowerBox by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 1688633d1275445f846db4e63be4ec87 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 54cc6fac26fa4e038de096b4e4a27ca9 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 7b5f3cb781fd49e1bc0a1811fc6bdb3c + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 07adb358b3dc45dd848501bb129c184f + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 2d0d281a078546959a644e758ede97d6 + expression: '(last(/MikroTik PowerBox by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik PowerBox by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik PowerBox by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik PowerBox by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik PowerBox by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 8704623362864987b9f699a2c8fff1d0 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik PowerBox by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB1100AHx4_Dude_Edition_by_SNMP.yaml b/MikroTik_RB1100AHx4_Dude_Edition_by_SNMP.yaml new file mode 100644 index 0000000..243b274 --- /dev/null +++ b/MikroTik_RB1100AHx4_Dude_Edition_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: fac50638cb77468598c29a6a47520c24 + template: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + name: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + description: | + The template for monitoring Ethernet router MikroTik RB1100AHx4 Dude Edition. + + Powerful 1U rackmount router with 13x Gigabit Ethernet ports, 60GB M.2 drive + for Dude database + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: a370113cc46d4415bea51cefdeb21891 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c093758529824015be966f41e9e27757 + expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 6573dd2d23f4490f85d5fffe19e388da + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 05873e7bbc8347f48daf707af0a3a1df + expression: 'min(/MikroTik RB1100AHx4 Dude Edition by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB1100AHx4 Dude Edition by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 09e3d93e5dd542ab8436b5b712f77e48 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f0a1435b054f46a3a496ab8c92591d96 + expression: 'avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB1100AHx4 Dude Edition by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB1100AHx4 Dude Edition by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 63022c75670f4965bf5f9ffe2ae5ce98 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 0402d2260bea47fba074bd90e441dd88 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 9578f10764514cd68325646e82d44697 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 45e9507c2cf1476784a4797dd380e048 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2f7865bcd7ec419bbf6598b2e8e41c39 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 0bee0b14582d47b091304be4fb9b8ba1 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: fea2d45d484c40d5bbd0a63bbcf32f38 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 9f571e3e7d7b4025a62cb4d61684a63f + expression: 'last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 21aa5025c29a45d4ac5961d07f03f5ca + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: e2160944535143e5a9768b9dc1041bb9 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6c56d13df5a84f8c81e3b11b5979fe2f + expression: 'last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 424081b2ac3f453f84c7c0cf0d6270e5 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a7ceef9763e24dd890f5d4bc0a4074d3 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 85d210e692744fbb94d8a794bbc2034a + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 64b6467c681f43f4954a24d7bc326588 + expression: 'last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.name,#1)<>last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.name,#2) and length(last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 7e01891bd9194635931778fba9b45fd0 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b95e62bdc53a40a9b4bfc4b023a34067 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c1b8a435332a4608a833703409c3844e + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: cbc5e573f7ff4d4186782e18abb18323 + expression: 'last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.name,#1)<>last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.name,#2) and length(last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: c0b8af43957d41bd8b69e6512f6b6a6a + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 0f96c2050b2d407d9355406ff3ba57da + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: a4ba4c5b3c2e48b08231bd8f1ca9acf1 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 0b6a0a9ba8c5454594c7b6dff8b32963 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 41dc7494d2d04e2e8fd9f31d744cdf94 + expression: 'min(/MikroTik RB1100AHx4 Dude Edition by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 7e0d82664c024f0fbeefb38cd4f91bec + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 289a3d4d39e14627bb26817d21221c05 + expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 430a8cab45af4c24b72972d6373fccd9 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: c11b3e4201f24576bd2947f464af430d + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 40af64475bf54290b74ac2ed6f3183f2 + expression: 'min(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: e1da6708532c4582a7404ccce8e5f1c0 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3bcc104afb9a4ca29c0fe55a88484b08 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: f8fe2949e8b247289e731d52c57abf4d + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: a1116b45b6e341dabc44b226c4741f97 + expression: 'avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7b61f191e2634044a81981627fb52483 + expression: 'avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c62859952edc45fd8c09a267e6badab9 + expression: 'avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 7add1dd4dfd84661b86fcf3f932e3ffb + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: ce006f12a6d342539ee9f2f20ff987aa + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 9980a1f6561c4b16935e204dfdf67c65 + expression: 'avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c0be5c2bae7f45e780addd984a3f77c4 + expression: 'avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ee368004b1f24293b8162d78b456a6d0 + expression: 'avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB1100AHx4 Dude Edition by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: fe42e32d477d4718bf37ff36ff630bb7 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: a56f2452a3a4404a8fad38827100fce4 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6b1a507739c940ffb528a41d5af76069 + expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4d1753721a72454f8681ca87affad3a9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0b2b0b8cdf964cc48d7ece2be62d115e + expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ea0e06c8297147bc9afb9c878f757efe + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4d271b81500f4513a1408dfa8f0e1e29 + expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6c9e70511a6c400a968eee3119cb32a3 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8875480665294938bee208b23d416d34 + expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 1bc26beb83ed42d1a5818082ca17e1e5 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9dab50003a824e0faddea18cf89e88b2 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 0cd27b4eb0ac4eed88c3804848186016 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1d48037aa1f844d49029ed722defe80e + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 554c6d88b86641a1a9fc6d1bde08eeb9 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 44f03138eed845a693b071a9d7171c68 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 41192738c7564ca0ad454ab525046438 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 1d8f0b4f75a044a0a5d8547471514346 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 8ed53c72c98940a79c5eb8c840c884f3 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a23cdf72497c47769a089496d4b06773 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 94a9518972d041a4b82e9237311c6ff4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c88218013c5242dc934d0d92775f27e3 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c529624e4a254ecba9659fc9d43f9df4 + expression: 'last(/MikroTik RB1100AHx4 Dude Edition by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ee778a5b20f6482d87d473212b740cf5 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 6dedda7d9d7e4debb9fbd1dbf3249e8e + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4ee2f3a994dc4cbdb733a0c949775b2b + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f6498742503a431e94f84271b58d5dcf + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6e7823dd59b84368afc4cfa354c740a0 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e2c2d9926c384963b950578e6cc11b8f + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 87badc6ee6b74dc5807a6879d0803754 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fe56f8b25da34c9da8b0506357f4f3d8 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d9ef7b596d2c4b02a0b499deef12ded9 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 789cf81a742c41dfa356b253b01faeca + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 85384a663bdb4dabb33a941c52e90843 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bf2dcee19ae44de98fed1b9f41d80ea9 + expression: | + change(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 92470dac23d7480f817f1d903e6ba869 + expression: | + (avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 7ab169c391b142afa4fd1441d1cb7595 + expression: | + min(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB1100AHx4 Dude Edition by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: aaaa92c62d944ee9a09f600af7ec1e03 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8a9272779331436896db3a69fac40bb7 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: fbca4c6a7a9e4dbbb44319976eaccbbc + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 0b10047762544ca4b56a3fa543257cfd + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 149563c5cf7e42a18f3aaed2cc32c6bd + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 47a1f1bee8f64507900f48de26bba052 + expression: | + last(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 419bd5a8f90d4e879be3707a3ad3f551 + expression: | + last(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB1100AHx4 Dude Edition by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: c64a26d248d344d5bf8f64d7265fd7f9 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb1100ahx4-dude-edition + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 6c15e187574e4dffbcf9f606824e01f7 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 6baa15161f3645ec9f7c55454fb5b575 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 9fa04834870c42d18cff898de904b7d1 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: cb3fc2c6a23845979765dc351158e134 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 239cc24f3e7046059da55c621f7f7741 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 81a1b9e9630c4b28b035da3b9fa7e6d7 + expression: '(last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB1100AHx4 Dude Edition by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB1100AHx4 Dude Edition by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 443e4ca5308d4e839fce0b7fc1da4932 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB1100AHx4 Dude Edition by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB1100AHx4_by_SNMP.yaml b/MikroTik_RB1100AHx4_by_SNMP.yaml new file mode 100644 index 0000000..56663ed --- /dev/null +++ b/MikroTik_RB1100AHx4_by_SNMP.yaml @@ -0,0 +1,2647 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 3dfd1a55987848e5aa6ffe92c228f63b + template: 'MikroTik RB1100AHx4 by SNMP' + name: 'MikroTik RB1100AHx4 by SNMP' + description: | + The template for monitoring Ethernet router MikroTik RB1100AHx4. + + Powerful 1U rackmount router with 13x Gigabit Ethernet ports + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 5300868a14bb4d54a2699577337da83a + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 169edfa3b9c94c61899cc540a5f4bd5c + expression: 'max(/MikroTik RB1100AHx4 by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: e2e270cb27ab438da77094dbeed276c5 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: cb4bbbd51e854ac5b6877b85fd7b8bf5 + expression: 'min(/MikroTik RB1100AHx4 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB1100AHx4 by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB1100AHx4 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e0d6d460bcd34360a627851069e354ef + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 01e6c7a1fc2243dcabfd5ac1dec841ad + expression: 'avg(/MikroTik RB1100AHx4 by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB1100AHx4 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB1100AHx4 by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB1100AHx4 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 392f67c076ea43bd8fb2e356e0b11ebb + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 8fabcdd6078443f1b27add9103ac8e73 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 82a936c79d154070a261078bff07cd50 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 628cf911c63948b3acc96071099ee33a + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 09408704f52d4a8abd39fc674319a385 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 915a3a0b5beb4b04b9cf2cf452625e4b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3442b390250b480f887e1311b369c54e + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 9c552d88fc734c2d8b9976831396dcc4 + expression: 'last(/MikroTik RB1100AHx4 by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB1100AHx4 by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB1100AHx4 by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3f580252fdf44bd4a1172a73ea1b681f + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 737a739207f142e292cbce0d6f7208d5 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 59393bfb9a2b4fe9acf09735ab9b6dd7 + expression: 'last(/MikroTik RB1100AHx4 by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB1100AHx4 by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB1100AHx4 by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 31874dc23f0046f98c978300e74ced72 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 245703e1e1ec43fd9a4cd2aa687e8062 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: fb2143870ae849f38d6349bf97678506 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 53e27314562746fb803664ddbd13876f + expression: 'last(/MikroTik RB1100AHx4 by SNMP/system.name,#1)<>last(/MikroTik RB1100AHx4 by SNMP/system.name,#2) and length(last(/MikroTik RB1100AHx4 by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: f16dcd469ae44e0bb1a3bf5cd7745172 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 6521da361f8c4d1383256b2297cbf637 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b9fc7b36a3394404be56c55176b20e39 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: d517281567044119bdc82dccb20c9724 + expression: 'last(/MikroTik RB1100AHx4 by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB1100AHx4 by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB1100AHx4 by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB1100AHx4 by SNMP/system.name,#1)<>last(/MikroTik RB1100AHx4 by SNMP/system.name,#2) and length(last(/MikroTik RB1100AHx4 by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 37a9d23461a8465a848d0adebbb5e5e1 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 73ce1c102e3a4d4885438c16eff34ddf + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 9e2ee7cca26b49d3990b832eda44ee2a + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 7b1572625e04447eb308be35061921f2 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: ce1f7003b6dc4ca6a0e435c06aba6e1a + expression: 'min(/MikroTik RB1100AHx4 by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: d8be2555490b4eb68a8b8c7ea20eacb8 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a462a1b6a16e4636aa3a70bbed7cc1cd + expression: 'max(/MikroTik RB1100AHx4 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB1100AHx4 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 4d7e84f0ed08471d8ec0717c93d410dc + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: bd42dc92c6b3407a909e979aff0e70a5 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 8ab046f6fb47499ebe6d34ad8ce20f59 + expression: 'min(/MikroTik RB1100AHx4 by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: ee998c9684054b1299161b15b243729f + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 978810fe8ed54f719c1b3816f539d0c9 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: fe90df42e8654cbdb521ecec3d428444 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 75e1b534632a42d08535fc863c280536 + expression: 'avg(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 117c3a91044a4d6da15b235017caf99f + expression: 'avg(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b20c703b353f444bb6d77d45433108fe + expression: 'avg(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 7d8c3e389a3d44c1999028b92464a607 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 5674848e4bc44f81942d8fd5a1d08397 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: f63a8665f1bb4fce930c8e6d68ca9bc4 + expression: 'avg(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 61ef8b6e39fa4dfa9ad0398acab924a9 + expression: 'avg(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 92626f1037574adf9e25e175b6e5781b + expression: 'avg(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB1100AHx4 by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 95cfcb66e6fb440d99b960637adfca93 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: c69a7cf907b940bda9881ffc4a13c6f9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3a29ebeb278444eb9940c6840b2e0a4e + expression: 'max(/MikroTik RB1100AHx4 by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9f0442c4c061485080d0f8ff5f7c831f + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4c0dfdccda7a4a0a9b889b4a643d02e4 + expression: 'max(/MikroTik RB1100AHx4 by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7eda5e5f336a4366801c4cf98cf13520 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 858fcf334125405aaed104a0f50d4097 + expression: 'max(/MikroTik RB1100AHx4 by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 79d3b5dad8af46c7972b28b208a439f6 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d6e6ca097afd4c1fa12e1c67f9a575db + expression: 'max(/MikroTik RB1100AHx4 by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: bc3bcbb9babe4f3d8a27de335ab2352e + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: cd991f115dfa4aed82ca363bea78c951 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: c8379a61cf50439ca8fcf6e7bd9e1882 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f1f871ee559e4cebb1fd1f535a38e01d + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0d04c1ee59454dc2a6207ef39dfbcc1b + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e0f09269707249ff95ccf4024c907f2f + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3df5076b23ef4e05aa6bf24be663f6f0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: cbd4c9b8a0f64ea394f9d2d542aa25ef + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 0e75174bf57445c3852ef11b342b2892 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 774b0b02798a40fd95127ad17e182a03 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: fffdd563250347e4b489c9fa4d61bc87 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3c94839027f64bddbc6b3d5abd0cc0bf + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f0f924ded1064d70964e5669eb1e3a62 + expression: 'last(/MikroTik RB1100AHx4 by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 60b595ded1d14e9885d8d34fcf3efa6f + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: d80f7f3e0752494f95ef13381433e687 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 25c32c5de7be49f6a2f3144ed8e17122 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 21369947f18c4f019cde51713440cddf + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 79b84574a2b04137aad734b482ac5847 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c4dc8fc4c8aa41a288b3b5335f9ff546 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6c578490506b46a8b801d6fe294ce194 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 395fd1b9e5834ffb93594140f5a0ef09 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 04c3ebee2ed24e64b3b8c3f347908913 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b41b12e1ed5148cbbd97a0bcf838ef44 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ebdbf3ee4cdd4e7c84d5aeb2cfeba519 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4558a208b2ef4376a1f33db1383c62b6 + expression: | + change(/MikroTik RB1100AHx4 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB1100AHx4 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB1100AHx4 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB1100AHx4 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB1100AHx4 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB1100AHx4 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB1100AHx4 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB1100AHx4 by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB1100AHx4 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB1100AHx4 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 13c5c29276ae4d2293dd3a178131608e + expression: | + (avg(/MikroTik RB1100AHx4 by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB1100AHx4 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB1100AHx4 by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB1100AHx4 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB1100AHx4 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB1100AHx4 by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB1100AHx4 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB1100AHx4 by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB1100AHx4 by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: e22b4649dbd94b3982636622b92212a8 + expression: | + min(/MikroTik RB1100AHx4 by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB1100AHx4 by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB1100AHx4 by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB1100AHx4 by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB1100AHx4 by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: aeecc40859234efd954770c664faabc4 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 731d669f787c45609df243f28ba610a3 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 5b2a71ca1ecc4b24a42415100fcfe2fd + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 89ebfc327e5b4b63ae6571bd671489d9 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 94c3ff07a2aa4e1f9e7a5fcd35ae0d33 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: e665c0343ae140d08b8ae96b6c28f4d4 + expression: | + last(/MikroTik RB1100AHx4 by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB1100AHx4 by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB1100AHx4 by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB1100AHx4 by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: c685347700044a78a38e4e892d3dfec4 + expression: | + last(/MikroTik RB1100AHx4 by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB1100AHx4 by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB1100AHx4 by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB1100AHx4 by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB1100AHx4 by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB1100AHx4 by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB1100AHx4 by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB1100AHx4 by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 15c1c509c03540449b26d7ae9ce99cdd + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb1100ahx4 + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: a442da5d5a56447b8bf60a9cc61b8d3b + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB1100AHx4 by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 7c2123a387904176a8285e3e1405622f + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 618992ab84bd450c95e42ce469bbd45f + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 0cd4de70a85e44d28b6cad58f76dd298 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: ecb1dff8b48f4537ab39a61186db0dd7 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: f71809adab344e60a2f6260548359167 + expression: '(last(/MikroTik RB1100AHx4 by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB1100AHx4 by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB1100AHx4 by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB1100AHx4 by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB1100AHx4 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: f74fdb024a054e26881e5e90804f9fee + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB1100AHx4 by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB2011UiAS-IN_by_SNMP.yaml b/MikroTik_RB2011UiAS-IN_by_SNMP.yaml new file mode 100644 index 0000000..27816cf --- /dev/null +++ b/MikroTik_RB2011UiAS-IN_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 8cf537f34600403b9de31d3db4eb2a1d + template: 'MikroTik RB2011UiAS-IN by SNMP' + name: 'MikroTik RB2011UiAS-IN by SNMP' + description: | + The template for monitoring Ethernet router MikroTik RB2011UiAS-IN. + + Desktop metal case, 5xEthernet, 5xGigabit Ethernet, USB, LCD, PoE out on port + 10, 600MHz CPU, 128MB RAM, RouterOS L5 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 62d449bc199943da94effce92d24e522 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f38f2bf1b3954e87afaae1b24f051705 + expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 71dc309a3c174cac8d4e5d97fb385252 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2384103bcdef45e48026fbb913a09e41 + expression: 'min(/MikroTik RB2011UiAS-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB2011UiAS-IN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8084778076a444728f47b436237aa265 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 492c760974924a489adf628a78facf20 + expression: 'avg(/MikroTik RB2011UiAS-IN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB2011UiAS-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB2011UiAS-IN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ee7ed053257048ffa7edae3b2b0a100f + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 22988243945244b0a8170aa3e50f904e + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: fa9062eeb9eb4ea5878c8da04bf728fe + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: d843cbacd73648d79c3f002ad7d2510b + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ff529ff6cb624b9092ab5d06ddfeb6a9 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: cd5897cf9ef2423fbcc9ef483e556677 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1dfd38ddc91a4e70980734a4cfcc38e0 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 84b149555c7a4ba896260eef821e65e4 + expression: 'last(/MikroTik RB2011UiAS-IN by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB2011UiAS-IN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB2011UiAS-IN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e85420056601495aa0b7da67042a941a + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 4b177e4109404eebaa6674b8fc36953b + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 5444e9d45fd5482b9913f33a0e46afac + expression: 'last(/MikroTik RB2011UiAS-IN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB2011UiAS-IN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB2011UiAS-IN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d88eae8b609e42d68219e2b6d68422d1 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 50bcd5f286db4540a6070fb7815b47f5 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 02354807e4ca4a049866fe8f793007ff + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 2783c5306701462290c245ff68ce0804 + expression: 'last(/MikroTik RB2011UiAS-IN by SNMP/system.name,#1)<>last(/MikroTik RB2011UiAS-IN by SNMP/system.name,#2) and length(last(/MikroTik RB2011UiAS-IN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 72507c577f1748078be97e4e9080b6c9 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 7eb0b2b9722f4f2c8d0ce0adc189b2f9 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 54cf84706fad45a2af8d42f928108c4d + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 7297756962334a7e92bec8fba24cc346 + expression: 'last(/MikroTik RB2011UiAS-IN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB2011UiAS-IN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB2011UiAS-IN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB2011UiAS-IN by SNMP/system.name,#1)<>last(/MikroTik RB2011UiAS-IN by SNMP/system.name,#2) and length(last(/MikroTik RB2011UiAS-IN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 2c92b96aea704a1f9d2140e1a69a6e52 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 21c6ba2b92674bec82e2d438bcfc9bc0 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 23d7f8ca24e44c41a92fefa63b41e176 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 3008075b5b134c3db792e591ae7ca316 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 3f856c135f7a4124b606a368ddbaea70 + expression: 'min(/MikroTik RB2011UiAS-IN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 7a7f3e558ca84e6ebd3279ec7ddaf6ab + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8a6f02ead39b4b42be807585266c1fec + expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: b8d5bf8f5a274ef68254b5ba1bf2e06e + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: e8f42ba36969459bae7a4fbbbf9acd17 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 660252e504e242f39a8116ef95593088 + expression: 'min(/MikroTik RB2011UiAS-IN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: ae1265d4feac404f874035b440c0704b + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9274cb0e9be74c7fa259dd5575fb3c96 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 3a8df6e05ca442c0888c58afe63cae06 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 8c905104ec08406bbb9eef074386d533 + expression: 'avg(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b78a65cb7a81475390b652bb998bad77 + expression: 'avg(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d86c54c62fcd456aa879a23aa539fdc7 + expression: 'avg(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: d1f11d8c8a4e42a9b77fe3c263c43d00 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: b6d115a3a9d84dfbbf6800b35a8988d5 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 0ce7d965b0ce4e259dad9ef1c964cf75 + expression: 'avg(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e6e1ac1371c8479a8c9b30513f10c57b + expression: 'avg(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5f04a5beb30c4fc48c3553f41631ec8e + expression: 'avg(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB2011UiAS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: f2ae9156eac7461183251fe44606a804 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 84c75bb385dc4a3fb17713eb169ef8e1 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9e5b175a657040acb532677e5e3efd4e + expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 575cdf6fe364405d8f5815d6f511f551 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3e5f0494aec9433ab7d7637fab2095f2 + expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 91fd8a8ecde749a8a689da2014049c76 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 52cfc831296f4ebbb9bb9d66a164c129 + expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 46641f0183c24377a291635a57fb5b15 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 22da96573bbd471785f694bbdbca7cd1 + expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: ab60feb4736e4a50988b1d721e1caacf + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e3027e0691a94961bd3955fdaeb10344 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: d1424ea6d6bb405dbcc828a7cd331fc2 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7a0f50f929db4a38985261b221885ea2 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e2113b513f02404c81ae0a924d51596d + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 18cb28a2ab264dc1acbb998f94a505ec + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ff5d2e77f98e444690506781950f0421 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ed8e11b608b84f5a803e37c11d22253c + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 85baf735bf374522aa03368ef023bd31 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b931d7192a004ec9bd0986617bf7d61e + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d09039bc2f7f4f8b8ba5263c5e44bde1 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6939f8f2f12342ca8ef18c87ed5e78d0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c5d53608ecb34d68a3d1ffbe5807dabb + expression: 'last(/MikroTik RB2011UiAS-IN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 611b4a16aeea48fdb0aac0a14f390f00 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: a723cc7880ab4c25b83379ef569fb939 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b341e196860b4b388bfb2ee5c10d6494 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 27eca86b5b7b43cdb5363a5d93939922 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 976a674793c640448cf897084b641b0a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 78e7ff29409042a0b792c8eca8d18aea + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5a6b30537bf34d249ed55b477414172e + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 45c1a8fd813d4341bf2c0346aa6af0cf + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 090b099f4b894d91bd12a8ea9cdf92a2 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5ca938e575294b8283154e162968d00d + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 9613cbdf5e204ea98955cc0f63edd137 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 246b22c8fee74df3af90178f1015eabd + expression: | + change(/MikroTik RB2011UiAS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB2011UiAS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB2011UiAS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB2011UiAS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB2011UiAS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB2011UiAS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB2011UiAS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB2011UiAS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB2011UiAS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB2011UiAS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 80a39aa88bc14897ad94816f088fee1d + expression: | + (avg(/MikroTik RB2011UiAS-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB2011UiAS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB2011UiAS-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB2011UiAS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB2011UiAS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB2011UiAS-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB2011UiAS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB2011UiAS-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB2011UiAS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 5f15f82f958040f59ad31151a464d023 + expression: | + min(/MikroTik RB2011UiAS-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB2011UiAS-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB2011UiAS-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB2011UiAS-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011UiAS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: f0e06f6423b4486f8d56c7fb7cf210d6 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 18663281a59f4b2190affab16310ce72 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 5a365ef0ba0d42f390d0810dc0165187 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: ca68df704e444123a01895d9256b1f97 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 32c7e5e885304b859f223bc0575c92e1 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 388504f73df94d21bea32bdbda0fadb7 + expression: | + last(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: ef0ef8ddead24672adf8e65eed13f60f + expression: | + last(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011UiAS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 34f9709c906243f0bc22557121a55f03 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb2011uias-in + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 3d84bfffeafb419c8ca2ece568d3b880 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB2011UiAS-IN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 2cc282d274444241a03ee557db156c73 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 4c9d084f51dd4c649b645c71a812220d + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 3136d5ca9dd543d1a63a6df52bb60249 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 8f791785fd354a10b5c5a005e023d6c8 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: f96b1dcd1cf84538a0d7729c5e4c683b + expression: '(last(/MikroTik RB2011UiAS-IN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB2011UiAS-IN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB2011UiAS-IN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB2011UiAS-IN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB2011UiAS-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 94e38f4bb3614d12917ffd17a0d544a1 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011UiAS-IN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB2011UiAS-RM_by_SNMP.yaml b/MikroTik_RB2011UiAS-RM_by_SNMP.yaml new file mode 100644 index 0000000..9ba0566 --- /dev/null +++ b/MikroTik_RB2011UiAS-RM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 969cf5dca58f47f0b271ccf62ef79c13 + template: 'MikroTik RB2011UiAS-RM by SNMP' + name: 'MikroTik RB2011UiAS-RM by SNMP' + description: | + The template for monitoring Ethernet router MikroTik RB2011UiAS-RM. + + 1U rackmount, 5xEthernet, 5xGigabit Ethernet, USB, LCD, PoE out on port 10, + 600MHz CPU, 128MB RAM, RouterOS L5 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 213f42d5e99e42a8a75dffbc4116e152 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ec9cc9ca00754d17a9ee8ff38e4aca2f + expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: bc20ba68642a441c90bac530b8847386 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 1377c7e423284ac487afdeac6252f1e7 + expression: 'min(/MikroTik RB2011UiAS-RM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB2011UiAS-RM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5c929e46faef4f0c8ee90fe5a34e9092 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 143e8c34dc344611ace63e6bcfbfa556 + expression: 'avg(/MikroTik RB2011UiAS-RM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB2011UiAS-RM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB2011UiAS-RM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2e4c6db52cf54c12afcc627a746c56c1 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 05b58973c1d446fb9093253f30c3478e + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 92854c9aff57441b9754ba9aabb4ade7 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 38753c1261dd42fd8500e843985fdea3 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 29d5c318ee4b4a76bed39f0caa1a4ed1 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 9ae03f4d4bcf424e936430198f0762f3 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: df95ed3cd37c4460bf643d9c1ec30cae + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: e0f5e6575df14242a14813cf95f763d2 + expression: 'last(/MikroTik RB2011UiAS-RM by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB2011UiAS-RM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB2011UiAS-RM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5e688e8e57d84ec79f78cad69914ea96 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: a4028eb828784fef80489e16e3d78659 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 09d6eff5d5e24ba9801d29a594913c5e + expression: 'last(/MikroTik RB2011UiAS-RM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB2011UiAS-RM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB2011UiAS-RM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c8f1e09b30a84047ac6a98bcc70b15a7 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 1f119c891ad74776b71c6858adcb67e3 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 788f52304f4c480c9e32b7f089279f66 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: ecfbc704498740ee89afbffd1a2db22d + expression: 'last(/MikroTik RB2011UiAS-RM by SNMP/system.name,#1)<>last(/MikroTik RB2011UiAS-RM by SNMP/system.name,#2) and length(last(/MikroTik RB2011UiAS-RM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: b7517cd5156c4693865edc871df8f7c5 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 61c2671ecc0b4fbcb40866ebc30f5ffe + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7c089e6fa1464c92ae25265351e46c61 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 2cfe859d44ee4088b3a62f832391091f + expression: 'last(/MikroTik RB2011UiAS-RM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB2011UiAS-RM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB2011UiAS-RM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB2011UiAS-RM by SNMP/system.name,#1)<>last(/MikroTik RB2011UiAS-RM by SNMP/system.name,#2) and length(last(/MikroTik RB2011UiAS-RM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 6ff6648e94ea41198a454e9fe2c95c83 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 796e3dc988dd43ff8a7ea11a8eeac257 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 456b72f5cd6d4a64871345d150068244 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 5e68cf8cdbed4517a7b6828be1cc4aab + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: f32f4750dd6f469d84560e0a27dad550 + expression: 'min(/MikroTik RB2011UiAS-RM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: e4f4e0c0df9343a483a186f54d59caaf + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7d47b1df3a984db891811b14832ba2ee + expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 670bb575294046a48f794a2dc778a5da + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 9d2d64319d2d42d1be4381adce895a62 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 544c2e61e9b0434e962823246974ede8 + expression: 'min(/MikroTik RB2011UiAS-RM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 7fe947fc9d9e480a8d0fa0eac5c893ba + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3872a0f5d79e4e8a97af4e82d1221407 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: f053aa3feb9047cc9c50da0e861ce16a + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 1dc430575d5546c188615191fdc50ae7 + expression: 'avg(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 04ef546dd200411d84f167a5e1ffd8ce + expression: 'avg(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f24798b46eea407cb2bd9e38068e68d9 + expression: 'avg(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 5ac26b1da21e436fa20f5234304acc75 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: ae93311998d34ec9bd1ce91b895d758d + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 81e424e84231418d888ca1a9126c29fa + expression: 'avg(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 53bc0055eacf4e9d931498e89811e86e + expression: 'avg(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9635cda9637b4216adb68675640639c2 + expression: 'avg(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB2011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 70b4d26ec96d45e781afeebe746ba1e7 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: cb24ba6daff44ede865706f777e49558 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bd8b0cbb30b144bc82b91f508de543e1 + expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b93fca52bea34a168af7374f8d2c04ee + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b2c222622bd8405a8f3f8138969e4d00 + expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 67cae98893f642d2b0c4bdf11db1a30b + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3fe7fc4d601143a58ebd8affe7ee78a5 + expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6c149338df7843e6bd195558d9d12ee8 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c70991ad8d2b460bb2b4860b16ba45b4 + expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: a48cfa3fb1e443448d7b2a2d5f93ac3b + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b3809e90799748f5ba6f8215b17c80df + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 20ddae019a2c469ea1ae211e09d87b5d + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e6fdab57c4ac4d7db29e020ca2be465a + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9a9a7b48404b47b1bca12b6aace8a025 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 70d5dd712b5b4993bf050410fccd1794 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 99ae41fb9ba84763884d3eb02f70de96 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: bae34f809a49486193684d22232e315a + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 2ee6fbfd5e584b1485a9e2aa23e41945 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ed5ba3fc1d4142f5a42dd75e57bf5583 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: fbb5e46eab824ff894528a54702ac824 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c0b897b0fee1406fa0fe6a5d50debd27 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 555d5c8083fe42f09096097e1bb87499 + expression: 'last(/MikroTik RB2011UiAS-RM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 65c99a07936d4b19a2dbd2694b116184 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: c2df69bb6ae143d78b11a5ab58b0aab9 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bf32bcb3bdc74f14a1764799cf8e0d8d + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cabd4bf8a6194e7382099e3ea9b5ec9e + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 06c282bad0f548ad8d0f9d574ded79f0 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1b4edb82855a423c88ba3d15da04fb73 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 59208d42b7bf44889d415d7faee1f1e0 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5c85ca41d6bb4f5e8f2b7ee576aa7d45 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f9f0e97c0ad446c2ae7839352993c51c + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e3a3b7bdfec649dab8e51cf2ba9685d6 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 9666b77845214d02af4fd8a9561e51dc + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 48212db512234a48863444e08dd6ac8d + expression: | + change(/MikroTik RB2011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB2011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB2011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB2011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB2011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB2011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB2011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB2011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB2011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB2011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: d658285fc06f498dbdb4ff3e02fdbb9c + expression: | + (avg(/MikroTik RB2011UiAS-RM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB2011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB2011UiAS-RM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB2011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB2011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB2011UiAS-RM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB2011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB2011UiAS-RM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB2011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 49fc7dbdc2294a92a52a30125d4f12a5 + expression: | + min(/MikroTik RB2011UiAS-RM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB2011UiAS-RM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB2011UiAS-RM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB2011UiAS-RM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 7352b3dabe82417b9dc31bafdd28e555 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6c508160b0494f7da7b44c6952db5042 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 56ed6da227c44c3399700f2bb4eb936a + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 40724614055e428db71f41bd19d4924a + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 350d841e1f99454283606a8af07f20d8 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 728a9e55d14b4b859caf170cc910879e + expression: | + last(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 12ffbe36a2e14c139f5d662ea509912d + expression: | + last(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 9f02d5eaea4c4b7cbc3211d80841fa58 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb2011uias-rm + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 142f1a7377e84118a0e48e69414f12ca + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB2011UiAS-RM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 270aa43aec684b4691a231c73aeb3f0f + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 4e3a9e65c5734c34b6a73f9f68513e3e + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: f90f3e32b5b54f0c93aa0e5722810917 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: c3ffbe98192e4639843ab4a3584965ac + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: e2afe16e11e14b80aa4a228eb9182f6a + expression: '(last(/MikroTik RB2011UiAS-RM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB2011UiAS-RM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB2011UiAS-RM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB2011UiAS-RM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB2011UiAS-RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: ebe8e5c8da874fdebb1f42864ca6b3e2 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011UiAS-RM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB2011iL-IN_by_SNMP.yaml b/MikroTik_RB2011iL-IN_by_SNMP.yaml new file mode 100644 index 0000000..e3d5ffc --- /dev/null +++ b/MikroTik_RB2011iL-IN_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 141438a05f904b518c7d3ddfbbabf91f + template: 'MikroTik RB2011iL-IN by SNMP' + name: 'MikroTik RB2011iL-IN by SNMP' + description: | + The template for monitoring Ethernet router MikroTik RB2011iL-IN. + + Desktop metal case, 5xEthernet, 5xGigabit Ethernet, PoE out on port 10, 600MHz + CPU, 64MB RAM, RouterOS L4 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: d232978e9c9649e89d9a18bfac551b9b + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5dea6d7aa1344f27b66dbdce2350e93a + expression: 'max(/MikroTik RB2011iL-IN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 74855f44b9ab4d008bcef0c81a1bf9b2 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a8d51531113a4017b732eb8d7247c777 + expression: 'min(/MikroTik RB2011iL-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB2011iL-IN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011iL-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8ff37956cfc544029ac3cbe2c2076156 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7acce40acf3a4eb28af79fc6d95bf190 + expression: 'avg(/MikroTik RB2011iL-IN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB2011iL-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB2011iL-IN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011iL-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 90beada4eaac4ebe87cceb3b07e4ef54 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 5f06a59ecc054d609afee34922983993 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: ca7ea780520d42788007c25b181ecf6e + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 70ead6c2139a4ac1a9a52d127920bfda + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6f7e1d9451304f0788a95297eca8c5a5 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: bcda47c141cc4b71a80ba54ad8e195df + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: fce13abb920940cdb20cdf70f2e94d90 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 0bc8753d55d047cd870eb7bd2db7849c + expression: 'last(/MikroTik RB2011iL-IN by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB2011iL-IN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB2011iL-IN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 45bdf887a0a3433cbb77a9ce792f2fec + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 2f862ca4d6854c9bb56c46303cb5fd0a + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 4a87af156bc44861bcd76514d60183f5 + expression: 'last(/MikroTik RB2011iL-IN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB2011iL-IN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB2011iL-IN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 96372468281d4b0e866a3aa4db1839be + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cb46cc279c9d4622931cc4dd4536d076 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 96a7343422ae4c16a0dc8636965209b7 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: e09f00f0ad144e7a96e3abb38e4ab109 + expression: 'last(/MikroTik RB2011iL-IN by SNMP/system.name,#1)<>last(/MikroTik RB2011iL-IN by SNMP/system.name,#2) and length(last(/MikroTik RB2011iL-IN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: a86251203418473f805f71c7661bcd5b + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: c806691d31554b558ce6b940725269ba + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 71a6d0a5cfd94c14b97af236ce4fc1c9 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: b5b061ff649547e6b63bdd9dc545c652 + expression: 'last(/MikroTik RB2011iL-IN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB2011iL-IN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB2011iL-IN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB2011iL-IN by SNMP/system.name,#1)<>last(/MikroTik RB2011iL-IN by SNMP/system.name,#2) and length(last(/MikroTik RB2011iL-IN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: d170f05138c34010b66e2bf13a40685d + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 54b4475f0bfb4c02b1f4fc68d4288bb7 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 2e60d597dcc94824bea105b5e51e5d06 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 700227d0426b44ee87a5f33ef5b5b29e + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 8e0b50b2687a4259ba9b9457c6a2d911 + expression: 'min(/MikroTik RB2011iL-IN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 011c6ec5f5df442890da5b669efbe5dc + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 096f1ccc1fd24cffb48720def5297031 + expression: 'max(/MikroTik RB2011iL-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011iL-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: e909a37161a04c1794f5f27f817ef870 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: bb419ac3a71446909b89fea0503fe8b8 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: c90699faebaa41ccb0910a08ca56c014 + expression: 'min(/MikroTik RB2011iL-IN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 9334f197c1014cdcbc079895467af3dc + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 09873df4de564b1395b88c417a923b11 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 5b12bb4397794b308985b4a866b0f517 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 216c4b7093ce4b1688c24031c61b9e53 + expression: 'avg(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2c1aefbb49d84198b9dc5b633cc510cb + expression: 'avg(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e56cea52d6d64a62a02856a74e32601b + expression: 'avg(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 65646365a9fe475fa4aaa70dfd653fb9 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 69a55949c8df47d0894f6bdd2247c728 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 77015cbdfaf8411ea08a78982b15885c + expression: 'avg(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c3a882d877f94cf7965984128c314f99 + expression: 'avg(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9c97fd1e8cb94e53a8f8d1bd15b94dcf + expression: 'avg(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB2011iL-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 057ce43acaf24b6a970d0a6368c16092 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 7c28d5b873c241d598e84dead4674d62 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 40ec9ac31c784b6f8de50945dff9f414 + expression: 'max(/MikroTik RB2011iL-IN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b638cb8d9d014947ae1937b3fae245c8 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e29bb10956c64db1ba0809112449de26 + expression: 'max(/MikroTik RB2011iL-IN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e7e5263b25a34b2fa176101cbb3d79c6 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ae6d45eb89244d67b38408dcaf20424f + expression: 'max(/MikroTik RB2011iL-IN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1b3914c1eb1d4e53b38dc9d16670b61f + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a02267b7d6d4497b98c1c2e465f92796 + expression: 'max(/MikroTik RB2011iL-IN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 847089ea1c2245b198b3a176b2d27fab + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0f19e3b4d64c4ae6acedd0fbd2094942 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: bd7e6ea3407e4f798b978589ea6b8613 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 589dcc0883b94ab59cd9d549242aa01d + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b7013da0523b4257ad6cf10919d2e446 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1cfeb4f0b1c84205b20c007d52a20fdb + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d79f7c775cdb48f39909b6ca7e4ef9d3 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e8d6873c8ba344398cefa2b7cf0510ba + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: b0ec2ef595354dabadd0d8d4936ab73c + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c24334458fd446c9b9b72f10c10df63b + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9d1fa283c578496b8dc757b277af72a4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2f13b2d5685640fc8290692c26261144 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 58d63b8b9c404a5382b44e25bf091feb + expression: 'last(/MikroTik RB2011iL-IN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b115d18980cb4523a6d9a1541a279588 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 49750186b18247479dd05ba4ac45d406 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bb2665aff8fa4f709dd619c759a6d854 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5d456ea5d19840f395e0daffe4eab09d + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9daf559ebf0d4156b5668c71b796c0f0 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 18f9e0bd4d614ac09ccef19d220352bd + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b3425f3b387047d09641cceb422677bb + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4b7aa43124084e32a7af56128a6b7969 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 950a0a505f0748098d67fd9408728508 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f5085ef8cfde4046a423c59d977258d4 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 311017c930b940a38ce0959f5c145916 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 24edc4d534254e638458cb08d0fb7492 + expression: | + change(/MikroTik RB2011iL-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB2011iL-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB2011iL-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB2011iL-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB2011iL-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB2011iL-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB2011iL-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB2011iL-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB2011iL-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB2011iL-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 358f84761e004f48ba31aed484cdc947 + expression: | + (avg(/MikroTik RB2011iL-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB2011iL-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB2011iL-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB2011iL-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB2011iL-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB2011iL-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB2011iL-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB2011iL-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB2011iL-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: c14516c2c7f24762af7d6555f9f38158 + expression: | + min(/MikroTik RB2011iL-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB2011iL-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB2011iL-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB2011iL-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011iL-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 53a5526a801b4c01853a7bcfac8245be + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 983c946b09b9488690b43ccdaf3969b5 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: ce053243825b43e1818962addf49751c + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: c999deba04d846b38c31642447806540 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: b64d80a23f57425385d5fb8e36c015ad + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: a140f5a63cba423c8f59439efd8d501f + expression: | + last(/MikroTik RB2011iL-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011iL-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011iL-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011iL-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: c3e3d8a9bcac473e8c641f116355ccbb + expression: | + last(/MikroTik RB2011iL-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011iL-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011iL-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011iL-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB2011iL-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011iL-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011iL-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011iL-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 3e3f290cf0054136af76e39706d521ad + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb2011il-in + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: aa403799a6694d70bf343271750071a4 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB2011iL-IN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 5ad8c335be4242fab3fe494707553a44 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: ab80a859fba74ce085fdfdddbadeda8e + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 4c5a4ebb20fd4111b444af3db223a21a + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 46e81d323d9745f4af7af06ff9f85d3a + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 27e64b9d917d4163b2f66c6f790b5a44 + expression: '(last(/MikroTik RB2011iL-IN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB2011iL-IN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB2011iL-IN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB2011iL-IN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB2011iL-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 6b29037c9b0143c883790da6cc9c2a28 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011iL-IN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB2011iL-RM_by_SNMP.yaml b/MikroTik_RB2011iL-RM_by_SNMP.yaml new file mode 100644 index 0000000..5552b2d --- /dev/null +++ b/MikroTik_RB2011iL-RM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 6d9737c72e5540d39e3553b773a587b1 + template: 'MikroTik RB2011iL-RM by SNMP' + name: 'MikroTik RB2011iL-RM by SNMP' + description: | + The template for monitoring Ethernet router MikroTik RB2011iL-RM. + + 1U rackmount, 5xEthernet, 5xGigabit Ethernet, PoE out on port 10, 600MHz CPU, + 64MB RAM, RouterOS L4 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 2bdbc3203fcb4db1a5473c4afedaa619 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5ec7bb4a650f4c53a76ec3f89769952d + expression: 'max(/MikroTik RB2011iL-RM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 7a77bc7a86684b7e965c0ec344435336 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 66718f4417324cd7a88de35776b26c64 + expression: 'min(/MikroTik RB2011iL-RM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB2011iL-RM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011iL-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 17bd0b5a70754d7eba3c4428ac9b58db + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 95b144dfafeb40be96155e0a6e53515e + expression: 'avg(/MikroTik RB2011iL-RM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB2011iL-RM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB2011iL-RM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011iL-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 77509cb42fce4c169c6057f146a8b79a + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 77f78108b48c4d81a922bd23f233466f + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: c5f15688308f44528a7ed495fce07a94 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: de67cf0e735944ba9380730d88b86d06 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 150579efc2dd48c28f7cbc1d2186fa8b + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 23382e5a72fa4769832c7fa5ee357153 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: cb60ed419a0e4d43bd63fda86f86c12a + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 5924d076b0724fbcaa2090c786b20068 + expression: 'last(/MikroTik RB2011iL-RM by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB2011iL-RM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB2011iL-RM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ba01d10fe2254462b4c2eabaa6cf9d6c + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: fc5c04dc408f47708d69d04e51f25d7c + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 5df5c72272694a7f8a698ddda7b662cb + expression: 'last(/MikroTik RB2011iL-RM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB2011iL-RM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB2011iL-RM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 68f23663d1da4e12b259bc6f2689de9b + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cdca0920185f4aaf95ee88b13982ba50 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f5f63d603edf48febfbde03d7d223f1e + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 5d609e8337b94830a52752ef8db4fd75 + expression: 'last(/MikroTik RB2011iL-RM by SNMP/system.name,#1)<>last(/MikroTik RB2011iL-RM by SNMP/system.name,#2) and length(last(/MikroTik RB2011iL-RM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: f97078f111d54ab7b091f59870baa4a5 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: ff6a6d61e4f24bc5a0832562ea3b13e0 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6bc59bf95f73427eaea0c59598d0deb3 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 18fce4771aad421e949e78ec9484a888 + expression: 'last(/MikroTik RB2011iL-RM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB2011iL-RM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB2011iL-RM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB2011iL-RM by SNMP/system.name,#1)<>last(/MikroTik RB2011iL-RM by SNMP/system.name,#2) and length(last(/MikroTik RB2011iL-RM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: f55f9ec7c2c1456295be98b7e47b3b02 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 4b0e4a132da94cd4b20e1f4ab4428405 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 501e0023828440498faed0e1214efe1c + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 3ddbf0f659724782a930dd42154eb64a + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 454c77360eb44d6aacf067327d1aecbe + expression: 'min(/MikroTik RB2011iL-RM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 2c0f53dbcfa447aea2e9550d502cb111 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c36eb285f1a94d29a40afb4bb8e923d4 + expression: 'max(/MikroTik RB2011iL-RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011iL-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 822fd977341648b0a79966a714e58257 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 070b9699eebe4938b06a464f33bd3154 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 00f27ff850b046faabdaeeae1b2a2fcd + expression: 'min(/MikroTik RB2011iL-RM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: d49245850291438f9eb06c588a2f28cd + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0f5f2641521c4f4094bfc3d113df6232 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 45f9905f21b34ac88e8a707b2280171a + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: d4d0bf767e7741fc98d9f930ade655f3 + expression: 'avg(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4299f4f1519a46ed86d4727cefa01c1e + expression: 'avg(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3cc5640941bc491e9cc23cc9b467952e + expression: 'avg(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 05b63a97b9f248098a9ab7c586f8a866 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 249a48a839cc4961a8949ee8323a6202 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 420f9002f53646729666658f193c733e + expression: 'avg(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: af33ef97881a4ab48686aa63676c7a2d + expression: 'avg(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8aa51a89c64f4626aa8646f9e1717669 + expression: 'avg(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB2011iL-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: c08a3dd904394cf29846630497e87d5a + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 886f5cb0ec0544519ab2c3e69cea369a + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 32cb8289aea54c4099ee36d58dd31b72 + expression: 'max(/MikroTik RB2011iL-RM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4e4ca30922404b0ea9dd78e47b26385a + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 32764a33204e41bfb1c5395a52302c27 + expression: 'max(/MikroTik RB2011iL-RM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b006482c393f4f0790f25497b5da6c31 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: eab70beb20504b1d98be8d7cd82031fa + expression: 'max(/MikroTik RB2011iL-RM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 55bb3ead60744b758a12b42c021d0e85 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c08f7ab1fb374e7db4f4c0525009cd93 + expression: 'max(/MikroTik RB2011iL-RM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: f1de2d4d636e4fafa6ec513988f3eac2 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 41277234ea344cb5b42cbb9b4862e1f5 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 138416a8fbbb450b86ab031adb8dcf00 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e70a0e3c001f47bf93fa7458d8a30bf8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3555a29c614e4927b577349e0ba3efc5 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1f07e24ab5e446cabd93af0936878ca6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c48101c768414fb09a948bd237086107 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8b4de033e601487eb8a97e5cdbb3ac88 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 243a3f623bba44c88f1ba3223a6de970 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b1af2acef4104aa5bff253add659c027 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 09b1511e2cd34810a2468ac47e36560e + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 846f7fb0449542b8b4081a98eebe3dd1 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 04bd0420c7474d90b10045328c5027a0 + expression: 'last(/MikroTik RB2011iL-RM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f984abdb831647d4aff155d0b24ae954 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 944e76b770c84d7791cbcca1a679ee3a + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 04bbdf422aa04d68a9ee43add64517d2 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2c87ca86d3af453db42ab47399e4e578 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c3ce7b6ff39b4e2da36a180b1012ede2 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0afe36d6d0a348cab7e370b9d3692ef8 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2beebac52d2042868aeac37131890501 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e2033425d53e4448947f0f89a751520e + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 33498ba5cdb2475dadc64a13bfdda78f + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 72ef5c7b0bb74f1fb88085616293169c + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 0e7454246fda4867b3dab1c7151ea085 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9f31bde8ab2e4edd8a142cdf0e4274d0 + expression: | + change(/MikroTik RB2011iL-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB2011iL-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB2011iL-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB2011iL-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB2011iL-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB2011iL-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB2011iL-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB2011iL-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB2011iL-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB2011iL-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 794d401f1b66402cb9309d9acd63321c + expression: | + (avg(/MikroTik RB2011iL-RM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB2011iL-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB2011iL-RM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB2011iL-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB2011iL-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB2011iL-RM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB2011iL-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB2011iL-RM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB2011iL-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: df2b99f9fcfc4df195b500cc637fb4d6 + expression: | + min(/MikroTik RB2011iL-RM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB2011iL-RM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB2011iL-RM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB2011iL-RM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011iL-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 977ce93695aa468b88f4cf33d2fdc79d + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d1f10311b85e4bf3b2c146cdbf888df2 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: e6dd665216134d83aca954fd64d5446b + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: a71336fb643e4c85b67e3fb18244df4b + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 669704d6f48f429eb4a872d8937dd00a + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: a4a3e86a03684038ba779bac1041eaec + expression: | + last(/MikroTik RB2011iL-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011iL-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011iL-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011iL-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 7202bab5700444f58d4eabd9433f0efd + expression: | + last(/MikroTik RB2011iL-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011iL-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011iL-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011iL-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB2011iL-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011iL-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011iL-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011iL-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 1c6cfa9ff24044cebe60949a50aae44d + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb2011il-rm + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 22ca218bf54043509708defeae6b2192 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB2011iL-RM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 77234a3478a44316b69d7cb39b018b47 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 42a4cc6793864b5fa8fcfbb158b993cc + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 09896efced0143bc9f4c9f33db6051a4 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 097987211d8a41c5bb87be4f8b9e4598 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 0dcc036b17de4d00bf7d51b7b6076e3c + expression: '(last(/MikroTik RB2011iL-RM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB2011iL-RM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB2011iL-RM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB2011iL-RM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB2011iL-RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: a444848444fc4c06bdec32a9bf7fcf17 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011iL-RM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB2011iLS-IN_by_SNMP.yaml b/MikroTik_RB2011iLS-IN_by_SNMP.yaml new file mode 100644 index 0000000..9d1ce22 --- /dev/null +++ b/MikroTik_RB2011iLS-IN_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 318fd61c22fa4f1a92a71376814d6c32 + template: 'MikroTik RB2011iLS-IN by SNMP' + name: 'MikroTik RB2011iLS-IN by SNMP' + description: | + The template for monitoring Ethernet router MikroTik RB2011iLS-IN. + + Desktop metal case, 5xEthernet, 5xGigabit Ethernet, SFP cage, PoE out on port + 10, 600MHz CPU, 64MB RAM, RouterOS L4 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: a7fc5ad5ffb14a6185e288617294aa98 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7257cb86a65547b5901cac08cacee3aa + expression: 'max(/MikroTik RB2011iLS-IN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 783ce77b38434492a9944dc5b3531a35 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ae82608801a642d9b3ef8ddd06cee7f6 + expression: 'min(/MikroTik RB2011iLS-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB2011iLS-IN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011iLS-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bc7299499e2847eeb8d4e9ebcbc2519a + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d2f60c5c4a124a549eb02f62874dba8b + expression: 'avg(/MikroTik RB2011iLS-IN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB2011iLS-IN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB2011iLS-IN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011iLS-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: aec4de5980224cb8b4f7e573866ea86d + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 3d2748be91c24dc69202b9fed8ecd8b8 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 397dd775fe6d4046aa91dfca36d3be96 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 30bc4fcfe70a45ceb6b3a8b945779e31 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: dd634cc1e804449b90693bf1925dc3d4 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 042947145fd142f3a1f6ae86826480eb + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ed51e55b8fa64c5599399fc93d81d329 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 2349e4eac44548349cc9f7806f8726db + expression: 'last(/MikroTik RB2011iLS-IN by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB2011iLS-IN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB2011iLS-IN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 692ccc1f29fe4f15ae7ca0bee54bf6b6 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 0645ecb1a28040d9b89af280ca3093ea + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: f43a3aa77c8e4e9f81add08ac624be88 + expression: 'last(/MikroTik RB2011iLS-IN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB2011iLS-IN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB2011iLS-IN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 806003915aa24c368a822a424f123d45 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 59b84e78871849fd8e2da3608c4fd45f + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e68119b9b48e4a49a4ff3ce41b8bf613 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: f64be38a3557482087d75ed423ced500 + expression: 'last(/MikroTik RB2011iLS-IN by SNMP/system.name,#1)<>last(/MikroTik RB2011iLS-IN by SNMP/system.name,#2) and length(last(/MikroTik RB2011iLS-IN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 56f939dcf88843fda2fe4b062cca2d6a + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 08476c93ef374c8baba1e6f80c5544cf + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 551f25631a13497b924c1b285b93ee5f + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 76d4c429deaf491982b7b1049634550a + expression: 'last(/MikroTik RB2011iLS-IN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB2011iLS-IN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB2011iLS-IN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB2011iLS-IN by SNMP/system.name,#1)<>last(/MikroTik RB2011iLS-IN by SNMP/system.name,#2) and length(last(/MikroTik RB2011iLS-IN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: c654378ae0234392b1526df325125b0a + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: c077abb2ecc84c88b2173bff8e9ab9aa + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 4029907022564beeb405c065ae4febff + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 5521e149584846118dcb280496b3aca4 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: cfca5a71a1534e199e9c3b867b8c6c3b + expression: 'min(/MikroTik RB2011iLS-IN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 33e8ea0575174bc69002753a5e5d90bd + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 81af7d744ebf422ba065308fcb3c225a + expression: 'max(/MikroTik RB2011iLS-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB2011iLS-IN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 4de6b86871874118b83ed7cfd31f3113 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 4dcba527c8de49eb90a9cc58e881202e + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 1edf137678504b9d8dced37d9a1d3f5a + expression: 'min(/MikroTik RB2011iLS-IN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 28b696fbb7ce4cf4941932ceb04700cb + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e738626cc9af4c9ba47f18ede6d6ffa3 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 0f06d2c64a2f4b6690736e3f74ea8e59 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: e9ab4a4bc78e47a19409d2bfe4d1d5fa + expression: 'avg(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1e81f6308a2748adbed17064d648b566 + expression: 'avg(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3a679a3d653d42cabed24e238fa01c38 + expression: 'avg(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 6a9998434d8b4a93a7fba87eaf642600 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 53d76ef4e9224a63bd30e3d1fc89542f + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 88fc1612d1b14108a1d90313fa1cb0e7 + expression: 'avg(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 048ffb5e510746e6b56daec287db6739 + expression: 'avg(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fcc70d3662ac49499a0f5bb68a13c007 + expression: 'avg(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB2011iLS-IN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 53adc733f3c34ddd943e5ccb41d1b536 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 23c7a946500a420a87ead3d7c923f176 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d9acbd875f514ce8a19638125c096aed + expression: 'max(/MikroTik RB2011iLS-IN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 93254f62b3e74acaa3c5839b9f844363 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 569c192c940a49f7b180162e4b83be24 + expression: 'max(/MikroTik RB2011iLS-IN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 67eb22e623174b06a24460985521d3d4 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7b31d412d15140d7be66d4b9963150de + expression: 'max(/MikroTik RB2011iLS-IN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: dda3ef44c9204c46a8affb68aeeec803 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7512216ac6e24d5f88a187621d0d7285 + expression: 'max(/MikroTik RB2011iLS-IN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 360063285da04ed29523562086c769c4 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 65ce926cc8bb4e55859204eb287c640b + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: bb7c28ff27104b0a8aa8f7052f71dd32 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 437edde63aa74619a3f4531039c1e73d + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 091618c93d8a405a94d4147d18d985d7 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: af82a882030b45ca90805a13bf4390f5 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 616f6787b7e8427aa727711c115afbed + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9ab6be8cd3f44b7ba6df32589b844e77 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 29efb756bbc44a2bbd772633279cd754 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0921eb633d6d44f2add1031cbc5ae2fa + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a7a9c42aa3054035b9190a38f3456e44 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 23b17acfff4246208f744864e5af2108 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bcb6d9302db14ee3a7dd120304b7a5a5 + expression: 'last(/MikroTik RB2011iLS-IN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: fee6ff9551144a1c9888afccc73cddc2 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 296295e0f95c4302a6b96216f8a3011e + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 59ec7c3ac8304d2885623ab64bad205e + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6590c395369244baa3a145197fb929b7 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 49ca22d9508740af9de2712bed15d185 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: dd61dfacc7dd4fd8afaf6825aedb699a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 976e391051da4a33a1ff3b85b9ff3639 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: eaf35c9b8212444ca1736f6fd4e36b0d + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f91919c8c9d049b0ae2d6a4d459f7d98 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 97aeb18c33b24e29acefa286a52e6815 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: dcfbfcdc02664c59b73711a01eb00e35 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3ea926e679704c50b2a8b72bbdbb7136 + expression: | + change(/MikroTik RB2011iLS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB2011iLS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB2011iLS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB2011iLS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB2011iLS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB2011iLS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB2011iLS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB2011iLS-IN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB2011iLS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB2011iLS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 544e37fe922d4b6aa28c05becbf6485b + expression: | + (avg(/MikroTik RB2011iLS-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB2011iLS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB2011iLS-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB2011iLS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB2011iLS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB2011iLS-IN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB2011iLS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB2011iLS-IN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB2011iLS-IN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 4f224bcc233c4a378d3af6e4b8ad7df9 + expression: | + min(/MikroTik RB2011iLS-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB2011iLS-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB2011iLS-IN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB2011iLS-IN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB2011iLS-IN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 8a0efdf4dfd94a398a09d2df1037802d + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 162e5f08fbcc4ad88fdb633731bd942a + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: fbeab8db403d458b96fcd8084bd98f60 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: ad4d9e4a1a5341fa841eecdd84acf8b8 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: fa6b2e7962e84b53ad0f7909984e6bca + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: c3e8a5f013f34395afeffc5eabbe01ac + expression: | + last(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 2199168e964c4bd79ad06de3c1226f1d + expression: | + last(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB2011iLS-IN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: baa457270f57426da7d271df998f8c83 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb2011ils-in + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 4ef520833de5431b9b28d9a5cf2bf674 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB2011iLS-IN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 8ab38f3183414268a97886537f26bb62 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 94cc38c8cfd3498ca3e08b2f3a215d7b + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: ffb74f2e72274c3eadcee61d34faf885 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 680e9b81d3094abc8a37ae0645076fe0 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 2139aea23b214169a369b4776865f501 + expression: '(last(/MikroTik RB2011iLS-IN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB2011iLS-IN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB2011iLS-IN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB2011iLS-IN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB2011iLS-IN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 8a6c7b5e3e4d4cc580e3f323fbc623b4 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB2011iLS-IN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB260GSP_by_SNMP.yaml b/MikroTik_RB260GSP_by_SNMP.yaml new file mode 100644 index 0000000..8c2113b --- /dev/null +++ b/MikroTik_RB260GSP_by_SNMP.yaml @@ -0,0 +1,2647 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 5331ecc3be9f47d6a8eb0732ae141239 + template: 'MikroTik RB260GSP by SNMP' + name: 'MikroTik RB260GSP by SNMP' + description: | + The template for monitoring Switch MikroTik RB260GSP. + + 5x Gigabit PoE out Ethernet Smart Switch, SFP cage, plastic case, SwOS + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: deea3cfb1f7442edbc4e715ca73395e8 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 247cdbc159624b33a4b415d3e048c087 + expression: 'max(/MikroTik RB260GSP by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 468b063753fd4bca861646312909abf7 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4d4cde77c8324a88ac0798e2f096be69 + expression: 'min(/MikroTik RB260GSP by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB260GSP by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB260GSP by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fe030b0a6cb447a1b1c2fe5f96b2bffa + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 0f9f0ffd9322422babb52a5a5058d97e + expression: 'avg(/MikroTik RB260GSP by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB260GSP by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB260GSP by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB260GSP by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2999403c64bb45cfb237d11fa8392562 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 44d98891c0a04a8680fe30331f0e44ac + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: cc100edb014b4ff8b119ffe683403396 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: e8656127772b4835b2b102d972b29de8 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ed241d40ab044cb3ade0c7b4b504cade + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: e35b5c62cfa241fdad672ee8b7303044 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: df5bf48843cd4981bf719769b3194a3d + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 1f05ddb5fc1c4d18a5d9f5755b22a080 + expression: 'last(/MikroTik RB260GSP by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB260GSP by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB260GSP by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 50100a89b236431d9ba7e4f2352fa2b9 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 65a753ce87934f75aa719e3e59f76dbd + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 9bc744f5b70748e68b13933b618f9550 + expression: 'last(/MikroTik RB260GSP by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB260GSP by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB260GSP by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4cb64b20e3c84697b744db08b605c5b0 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: d5c52de296b04ceab2cfd1a87ccffc6b + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d3e819d5e0dc403fb4b9dafd1ddc59d5 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: a5fed81db3c7447c8c62b02974765f57 + expression: 'last(/MikroTik RB260GSP by SNMP/system.name,#1)<>last(/MikroTik RB260GSP by SNMP/system.name,#2) and length(last(/MikroTik RB260GSP by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: f0b0b111aac440189f71bb1b2830ded3 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 530490cf5862413b8e7896aa8c0cb627 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b5a74fe98a7948a9b189953b457b2975 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 72cedbd4d23948c3941d5b2011f5cdab + expression: 'last(/MikroTik RB260GSP by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB260GSP by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB260GSP by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB260GSP by SNMP/system.name,#1)<>last(/MikroTik RB260GSP by SNMP/system.name,#2) and length(last(/MikroTik RB260GSP by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: ad95f1d123f54de3a2b06dfa32e25eed + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 806938d083e848b4b84b2c222c4f4d2e + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 0d4cc61a9f8c44f385606bc8394eaeb4 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 836ba120a51d4c659c034e3a94003c0f + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 971f8265db9348ce942f4e0adb49bd1a + expression: 'min(/MikroTik RB260GSP by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 9a70b1387ea14502aadcf05f636e7a5c + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a82f1cafcb424685bb2f562c1c6dce11 + expression: 'max(/MikroTik RB260GSP by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB260GSP by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: f83ea9e9a0e646f5a9b8c7e1e0290512 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 11a2162c7c734d0d935ca5b5e03b0b1f + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 636401049a4e46c48e7b89e2b0c8c72b + expression: 'min(/MikroTik RB260GSP by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 32c572f1f36545299c21cb9a3b46365f + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6ccb140a18804e2a955f89063f3d1fba + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: cff4aeb5cf4b4349858983fca3deb508 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: fac1eacc650b485faa1f05207a865ed6 + expression: 'avg(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c604329ca3374ed5b29339c10070b9de + expression: 'avg(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 37927a5941e245d9bce883ce155fefdf + expression: 'avg(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: e0d8cd7456724c0690548859ea217994 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 77bba6eb9e9f4c7dafd8ecb0d895aa4d + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 4f2a304aba6e45c7a0186d8b069be904 + expression: 'avg(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7ab0db29abff475d908e9db2e86ee16a + expression: 'avg(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ae7e34f53a3d407d86484baffad515fe + expression: 'avg(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB260GSP by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 4176400783ec41aca75e6edb5a2e7950 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: a9d05b694288494c8a67065fae149b7e + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a7d31dad39524586ad9cca3c52ab0802 + expression: 'max(/MikroTik RB260GSP by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0da46f1b48e34e8d866bdcee4c4f318e + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: abae11ffeea140debcd8f32c34f10f31 + expression: 'max(/MikroTik RB260GSP by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9960c89e7efd40ea8df4da693350156b + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f7804db0113d42a49322193872ddc616 + expression: 'max(/MikroTik RB260GSP by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8c703fdcb8fa4ce8978034d004c723fa + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 73f6c8071582400b952f945388a181c2 + expression: 'max(/MikroTik RB260GSP by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 00e2b89ffee645e4ac3d95a4219d63ab + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5d0bb62dda9747f4bf10059b0b318088 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 82b095474acf43708ed38960e819bac1 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e493d9b31000454ab5322d128fc017dd + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 78e165faa8e84eb5a5b5e33de95667fb + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3091e881221f4ac79337ee723e18bdae + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 00ffa0a22f24402ca0b28fcd8deb539a + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: faa2bf517e6e46aaa8aebdc4571007b7 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 895e3f8cb6774b13a2e51cbc10f2ddbb + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: dfe08b76e5794a918047afdeecd30244 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: fa59c976b98c4074a04183d569cc9c19 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 22ec1aa3f660417e9b99f341553ff158 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e159cf84958443ec9d148c3e83cf8e41 + expression: 'last(/MikroTik RB260GSP by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5450b5a9f856449ba52b6185e4e005cd + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: b0690345e9d643669eab19da5436c1e9 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: be752ed58d3e4bcbb575f5aa77bc573f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: de703efe12a147ccab5ed87dca174293 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 15a9c5f7e9b3403986182e9f63a557f6 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fc09d50cbadb46c499fe153bd9f4b4aa + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fd545abd5b7146dd823d2bd2f1339054 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8beaa10b22194fcda348ae031d0e2284 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bac4bcf127634d06b90c6d2b7c0469a1 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f0d3817bc7f243c591078b806f3ae712 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 96fe507b89234141ad615998fbf581d2 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6e11e178d1e2418fa94bd2718a6eccaf + expression: | + change(/MikroTik RB260GSP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB260GSP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB260GSP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB260GSP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB260GSP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB260GSP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB260GSP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB260GSP by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB260GSP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB260GSP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 54be09c46d2e4c6694fbd4eef4f4e055 + expression: | + (avg(/MikroTik RB260GSP by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB260GSP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB260GSP by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB260GSP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB260GSP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB260GSP by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB260GSP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB260GSP by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB260GSP by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 3c122a7c5e6348f28f8c04391f73f14b + expression: | + min(/MikroTik RB260GSP by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB260GSP by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB260GSP by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB260GSP by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB260GSP by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 6f6c52b8c09140358b7c058d397903d0 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 16ccb0c6d72f49e991f2034b06e7ad26 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 4616b7a26c5d4646abe4d8d87f988ae9 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: c227791696414ebf9167558b1e2933f5 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: dd45e3173ac148caa583f5e39aa12889 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: c8c7b25b435e4157a22c8f4d6fce9ea5 + expression: | + last(/MikroTik RB260GSP by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB260GSP by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB260GSP by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB260GSP by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: e63fb086de874cfe86e0d03d2d57f157 + expression: | + last(/MikroTik RB260GSP by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB260GSP by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB260GSP by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB260GSP by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB260GSP by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB260GSP by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB260GSP by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB260GSP by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: eafa602b8f4a4d6883fcd65555057190 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb260gsp + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 7f9b0854855746f49e4a7e20ff98b85a + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB260GSP by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: e730f38a15e34cb4b52d27710056a28a + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 486c1f40eae844d28eb8acfdebf52bb3 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: cdebb7ffdc0c4191a2b84569e3d8d40c + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 9b957d38b829475a8cbe06991ff90659 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: a3c432e1d04448d3940f69f8d9633c8f + expression: '(last(/MikroTik RB260GSP by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB260GSP by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB260GSP by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB260GSP by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB260GSP by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 5a5125a0a5554baa842e1f41fcba86cb + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB260GSP by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB260GS_by_SNMP.yaml b/MikroTik_RB260GS_by_SNMP.yaml new file mode 100644 index 0000000..ce62b76 --- /dev/null +++ b/MikroTik_RB260GS_by_SNMP.yaml @@ -0,0 +1,2647 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 1a74dd95e7244493a1b13b94fe9dd9e8 + template: 'MikroTik RB260GS by SNMP' + name: 'MikroTik RB260GS by SNMP' + description: | + The template for monitoring Switch MikroTik RB260GS. + + 5x Gigabit Ethernet Smart Switch, SFP cage, plastic case, SwOS + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 7915232f946d4a9ea2c441899d063f8d + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4db071c60daf4a6a836754875b22d27d + expression: 'max(/MikroTik RB260GS by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: e2ad26afb3674a63a5ffb68ccfa84ccc + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5ce287958dc743abaa50a18c8ad3f2a5 + expression: 'min(/MikroTik RB260GS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB260GS by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB260GS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0338080fdaee47d09df04fd70a56889b + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 314db7fe9ce6403785f737263ee87914 + expression: 'avg(/MikroTik RB260GS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB260GS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB260GS by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB260GS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8f59fcb385c5452f93b3d893522a9917 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: debb90a64e164da098f27fe0a44fd18e + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 4b22a7465109474db7a86274de0b519e + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 9b93b930cf354451b2613f410db63b55 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 50b5f8dc5e3042cdac11d97d7cce14bd + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 6b3f14b033914ef58797c15a751fe086 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1f05547dfa4146bd837288c6cfb0b0e4 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a5f7839a9a0d4272ae0312b8954a9313 + expression: 'last(/MikroTik RB260GS by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB260GS by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB260GS by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 286376d7fb9e4fa9a608d7494b500f4f + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: ad481c4efe304683ac539107a121b10a + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 672fcd1d34374373b0992d80d46d885c + expression: 'last(/MikroTik RB260GS by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB260GS by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB260GS by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 012230315f3548d9948d1ad7ddc8d005 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 37b6610ae0bf4989b1431182dcd239c1 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 73459a4cdf8a45a1a480102cfe5119c1 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 6f811bec794348e4937cbff22dbf5fb4 + expression: 'last(/MikroTik RB260GS by SNMP/system.name,#1)<>last(/MikroTik RB260GS by SNMP/system.name,#2) and length(last(/MikroTik RB260GS by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: d379b98f901444368311a7c22c51cbcd + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: c2a7d5ecda21446bbd55cec32ab3f50e + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 111bd5c32550427682bb0e683754fda9 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 7538c487e4f14cdcb6fc3a6b415ed559 + expression: 'last(/MikroTik RB260GS by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB260GS by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB260GS by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB260GS by SNMP/system.name,#1)<>last(/MikroTik RB260GS by SNMP/system.name,#2) and length(last(/MikroTik RB260GS by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 376db50b5a4e41cc9e6a2d6e0034639c + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 1b352f84778349c78422b9d4c648d05b + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: f3f37d9595244448ab98704c49678800 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 10858c87568841f688e9b0b7e43811dd + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 6975f0abf1504caebd3a13193da1bdcc + expression: 'min(/MikroTik RB260GS by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 6814429f90bb417a9af42b7be081b777 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9a5729d397ad431aa79048b69a65fbd9 + expression: 'max(/MikroTik RB260GS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB260GS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 3c377424bbb24740bebe49250a6770f5 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 3285f355316a4c1d9171f8cacd8f4928 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: f6b89443734b4c79920496ff9244f6d3 + expression: 'min(/MikroTik RB260GS by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 9fc1b8a3fef146648e8e34ad5be8f5e3 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB260GS by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 16f1d8ca6a654816ae56e2cd00016ba1 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 57e73f67141a42ec92a04c3d9d394907 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b9eee5f17d084ba7b6971aaf6165b313 + expression: 'avg(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 64193d2ccc1c4813b8585b5d3d81f962 + expression: 'avg(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: be0ff2612a014f2db296b4066c22cfdd + expression: 'avg(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 12053fcb928a4b788734ea4010de08fd + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 6fcfd9b1a6324b23a5705a7118874be2 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 3035592657fe4a6a89fcacbd05f84573 + expression: 'avg(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5ae663e6743744bba8606334ab17eb60 + expression: 'avg(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 635d0ddc5ba6442bbb51ea451f502662 + expression: 'avg(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB260GS by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 407a0b73cfc041e3a338d9e8fe637fe9 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 166695395ca44bfab7cdacb6737a2c29 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6eb10d964aaf44bb8849f35f39e6b909 + expression: 'max(/MikroTik RB260GS by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8f6aea26ce3744298233fa751137b0b0 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c8c83d70279b461c95f5c8f4deb59d7e + expression: 'max(/MikroTik RB260GS by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 37c41907076142bfb5a8884f959960f0 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 557d79e0013b4b91a16ce2a0c507256a + expression: 'max(/MikroTik RB260GS by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e019cd1da3644f5592ccdb904f8eda47 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: fddeb17ef9dd4876b9ba818d732cbd40 + expression: 'max(/MikroTik RB260GS by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 7972b1fd0ffc46148f1a8f27bf4ac1b6 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB260GS by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB260GS by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB260GS by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB260GS by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9ce0b88fb735494aa3854a64f2c84f4d + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 6cae369274a844128a5e524c2e453416 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3e08aa7a5e9743b8bcc416a0e94c0310 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: fb4354c77ff94515954a4a4b537ac235 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5c90dc649ab14bbfb174af66aa5cfb2b + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5eae6da3d4684988abad5add9da275fd + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: cb2ad2c7ab5c4399b70031fd7c31f772 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 2dd6648a8d9941b587b5fd248562c6e7 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 88092d9350254ce1ac44524b33f502b8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5cd10bfcae974f26865be0847bd481b1 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 05bba59e89ff4812a11393bc88e357ae + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: cc74f3058c1945a59c95d49e3fdbb47b + expression: 'last(/MikroTik RB260GS by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 442498a0dc4a407caa7fc547d9f4b83c + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 9c1a70e71c0a4004b287185e65525f23 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a7d6baba939c4d659e040dbc1684a282 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8aa1645a0e904d67b7ad817b2da6bfa0 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c51737e07a6c4a1cb54bba98fc411e03 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7d3ab5988cba43c69df4f64542aca0ec + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d6e87ac1ef4d4d4cbba229c420dfd5d6 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bb37147d244f4d548da1aa607c7f4396 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 78b80a419eba483bbf6f6ad12095f53b + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1bb803809e6a4b66a4dabbaf7dada2c0 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: a8cc24b0c22a4cddbc05524288bb8862 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d29da0701e5346ac81450a6002bb53c4 + expression: | + change(/MikroTik RB260GS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB260GS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB260GS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB260GS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB260GS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB260GS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB260GS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB260GS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB260GS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB260GS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 79709d95fe7a48d3a90b6a502788be89 + expression: | + (avg(/MikroTik RB260GS by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB260GS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB260GS by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB260GS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB260GS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB260GS by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB260GS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB260GS by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB260GS by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: b8470cef21e146b4b8ecfde73682d2ee + expression: | + min(/MikroTik RB260GS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB260GS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB260GS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB260GS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB260GS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 20e634246d814e808e00940e9606607e + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB260GS by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB260GS by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB260GS by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB260GS by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB260GS by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB260GS by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 49c4ca48be2543ec9aab27b52c4a4f8b + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: ed6f9d957ccc4a85a638b239082d0013 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 7d835648f2f64bf1a1615e9e70822ccd + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: f078344e85614978973618685d022859 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 67f66bb09eba4cb2b823fbf96391e0ca + expression: | + last(/MikroTik RB260GS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB260GS by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB260GS by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB260GS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: f28661579bf04f6eaa1bc06f92f8d8f2 + expression: | + last(/MikroTik RB260GS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB260GS by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB260GS by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB260GS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB260GS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB260GS by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB260GS by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB260GS by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 2854850c8c14498b9256fd64027455d6 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB260GS by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB260GS by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb260gs + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 5df88be6ffd14fcebe2f789d8f1e45e3 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB260GS by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: bba96f7bcedf4277b5411562b17b0216 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: e1c29894283b4837b9fb6b1929b2af2e + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 9c3206fa143949e1a3d6423bc410a2dd + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 85e730aa40d141f488e0d0e5cc51f4cf + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 44a2d709f4d0471997697905b8e3b456 + expression: '(last(/MikroTik RB260GS by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB260GS by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB260GS by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB260GS by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB260GS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: ee6f5b2202f14999b71f5713fdbf15fa + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB260GS by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB3011UiAS-RM_by_SNMP.yaml b/MikroTik_RB3011UiAS-RM_by_SNMP.yaml new file mode 100644 index 0000000..142709b --- /dev/null +++ b/MikroTik_RB3011UiAS-RM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: cc762a057f0f467ab571b6d76a9bb278 + template: 'MikroTik RB3011UiAS-RM by SNMP' + name: 'MikroTik RB3011UiAS-RM by SNMP' + description: | + The template for monitoring Ethernet router MikroTik RB3011UiAS-RM. + + 1U rackmount, 10xGigabit Ethernet, SFP, USB 3.0, LCD, PoE out on port 10, 2x1.4GHz + CPU, 1GB RAM, RouterOS L5 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 8b3077a1ea304d48acee2089f8dab717 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4c7a404a7e7b413bbbac7a21c77b3fcc + expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: cd14c56b398f4e51bc250dbb266d8792 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a9c3882f12d94b84a2cbed81db007011 + expression: 'min(/MikroTik RB3011UiAS-RM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB3011UiAS-RM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 183a44fa82d74603a4673f8a213e221f + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 20cb06fa668d459e80505b23501735a7 + expression: 'avg(/MikroTik RB3011UiAS-RM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB3011UiAS-RM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB3011UiAS-RM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9d86b3b5ece7456fb4baa3b557bed1c1 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 3724f2b9d41d4cb7952734a3f96393a8 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: b820cdaeb0724fb3b5eb635e7705ee5c + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 69517cfdea8e4602bc7b56f5975e8d64 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4ee3bbf180a749d6ab35bed974677b8d + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 6323e16160534164a046730cb95f8dd4 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 354b56e7cce646c8b143434af11ebd1a + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 4a440903276347d9827dcfa3653d496c + expression: 'last(/MikroTik RB3011UiAS-RM by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB3011UiAS-RM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB3011UiAS-RM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3da25a0046ac4f2c9ec35d3ac9db9ae7 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: a935a058a7644773b40d0cfbaae218e2 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 7b48c923659d4569b24692da4037b824 + expression: 'last(/MikroTik RB3011UiAS-RM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB3011UiAS-RM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB3011UiAS-RM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 074b83202e714d7d9bf63bf331f4f284 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 8ad2b0e46d544272a2a2a79251830ecd + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: cd0923c4fed2454f9ba10ae12a237c4a + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: bf71167252cf48c99477a03d09523aa0 + expression: 'last(/MikroTik RB3011UiAS-RM by SNMP/system.name,#1)<>last(/MikroTik RB3011UiAS-RM by SNMP/system.name,#2) and length(last(/MikroTik RB3011UiAS-RM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 473bcbf0aece42b5bf03ac5d9655060f + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9dbc5959f5c94484ad27fff82ff1e4a2 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 14e1297549d74f48be28bdfe70746600 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 80b76f59fdfd407ea5c3294736113749 + expression: 'last(/MikroTik RB3011UiAS-RM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB3011UiAS-RM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB3011UiAS-RM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB3011UiAS-RM by SNMP/system.name,#1)<>last(/MikroTik RB3011UiAS-RM by SNMP/system.name,#2) and length(last(/MikroTik RB3011UiAS-RM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 0d3a2f07ab8643668864e90203bdaaa1 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: b0a11ac957ff4b91b2d032ca2e97fd86 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 3702de756584423b93730807b797a1db + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 5e58d0e859a94279b4e52aa4b16d3702 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: d55a4746f70a4d539a9fadd9a335794f + expression: 'min(/MikroTik RB3011UiAS-RM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 471ac0649f454c6ab2d386ef593486a9 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7a790a7c2af34786838280924d2cb252 + expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 261714f543bc43bbbbc2784aee405593 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 051141b1443a4312bade08bfa68d97c8 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: e20e628acaae44d58c7f385f98cdb126 + expression: 'min(/MikroTik RB3011UiAS-RM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 2567831d8429484887c61f9606cee3aa + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b63bd0e852a7431cbff672703f5fa68f + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: fd85963c79484ab2964e7cbce4cd666e + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: d009789ee3204089bbd1e60b23fa757f + expression: 'avg(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 51d2ea964a684bfa85e509e549be251b + expression: 'avg(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1cc47452c533402596797c5c6ae8351f + expression: 'avg(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 9d802db2738d4e0cb7bac8cd574b4283 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 00ec9a3110f54225b1cf7ef17119b63f + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 49bf5605212f44e18a0a9f0e4afde82b + expression: 'avg(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d7d5fa71143e4601b41d24ce85031ed2 + expression: 'avg(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2478f32c04984bd8a53cb9211953d7c2 + expression: 'avg(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB3011UiAS-RM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 2f495a17418a47bfb48d7df1128eddd2 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 9e1b7a12b16a4e0a868a34e81b37187e + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 6dcde689dccb4221bffd0c36f000dcf2 + expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 20c47d65290648a49f68a723111b6d20 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d8d809f110c044bdab269c961b947f0a + expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4f03ff31d0654285828e4a78c960bc5e + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a935e2731aac466bb21fd0e3c092cb7c + expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5cc7f564912c4827aedb940f59e574dd + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2193529f37424dc29976bae9681cfff9 + expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 3faa534c23d641348044d56d871307f0 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ab13751dc03e482db3d9f98c74fb1e40 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 97f2d5c9a53b425fb490305bbdecb1d8 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 935ca7fa58e94bc2b4783676f57f1788 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b0c6132fffb04ab3a4d392f35d2d418d + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c7e6451019bd4780bb2ffa717c98ddfd + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4783ff6618d74aabab4a998467091b59 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4a884bea9c754839befbf0faf07e39a8 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: bae785059d8b4d5ca3c29a0c64e52858 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a01aec216aff475ab47c0d1ca9ebb6ac + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 5a6c2c39fd3e444eae67e221721463c0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 859f9073a0b94928816ad037283b5e0b + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0f33b00af9164264b0d6fc91831a343e + expression: 'last(/MikroTik RB3011UiAS-RM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 439bb27734ca4edd91edeca7d97271f6 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: b0e6bc0f708942feaa910179e25a61a9 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0a874ea342fc4339b03eb852558d7fb7 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b846f52186964673ab6addfd6cb89d77 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a0ef0375118b4c6d930041c049949f10 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6c8d6d0caa5a48fba3f6896b69c39688 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 52322d25a33542f9bdaab07df875c610 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 60577a786d9c4ffab235e9d9dca2b443 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fa2bc982f1384ea7af181876f61ab031 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8af0f04b3392466382d73d4986782c24 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: c2a7039babd34c22a123b7d6473cd6e3 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 19c663970db044c39cc43028e7d0642d + expression: | + change(/MikroTik RB3011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB3011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB3011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB3011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB3011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB3011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB3011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB3011UiAS-RM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB3011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB3011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: df9f785e1515408b8b3735a653673100 + expression: | + (avg(/MikroTik RB3011UiAS-RM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB3011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB3011UiAS-RM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB3011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB3011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB3011UiAS-RM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB3011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB3011UiAS-RM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB3011UiAS-RM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 5f5b45aa0b4943d191670dcafe035707 + expression: | + min(/MikroTik RB3011UiAS-RM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB3011UiAS-RM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB3011UiAS-RM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB3011UiAS-RM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB3011UiAS-RM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: d23b57867776455cb272851a73ea227f + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 16d488e47b614bcca12af8f2493f8a0b + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 164b2f394aa3470faa18ba70e42b458f + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 4f634d0afb6542e0b27347ba8555d92b + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 5f55ba87f4084a4693c3c7f8818b5d6b + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: ccbd9c9dab504a7bab4f403386e5178f + expression: | + last(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 9b4adeaeed41450f839967a3d049b027 + expression: | + last(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB3011UiAS-RM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 15a9b60d61574e46a0684cf9ec893347 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb3011uias-rm + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 46da6bf75fe5468199249296e71f7eae + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB3011UiAS-RM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: e6d270e997dc40dcb0b2d69f0eeaad69 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 3435384894224f579ceb1d9529532d49 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 470819e8e6e04c988f1ddaf4ae78362c + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: a57b96fc823f4634901a4da9df6d8f25 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 3dfea70b489141e1ba7e967a8de964b8 + expression: '(last(/MikroTik RB3011UiAS-RM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB3011UiAS-RM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB3011UiAS-RM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB3011UiAS-RM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB3011UiAS-RM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 36790292e1ba4b8db9cd6f9420e8ef06 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB3011UiAS-RM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB4011iGSRM_by_SNMP.yaml b/MikroTik_RB4011iGSRM_by_SNMP.yaml new file mode 100644 index 0000000..83fd525 --- /dev/null +++ b/MikroTik_RB4011iGSRM_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 780c4a9a657e42fc83f1ab9a535f5184 + template: 'MikroTik RB4011iGSRM by SNMP' + name: 'MikroTik RB4011iGS+RM by SNMP' + description: | + The template for monitoring Ethernet router MikroTik RB4011iGS+RM. + + Powerful 10xGigabit port router with a Quad-core 1.4Ghz CPU, 1GB RAM, SFP+ 10Gbps + cage and desktop case with rack ears + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 27bc040d774a492f9ea7661b11931756 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7651bd1c9c3b431eba1db692abe311a1 + expression: 'max(/MikroTik RB4011iGSRM by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: a77a1ed1ff254715bc2b3aa4774add63 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 433634cc1ce0426ba8337add07ee07f0 + expression: 'min(/MikroTik RB4011iGSRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB4011iGSRM by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB4011iGSRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 02eacfbcc4c14ac48aba36c142974c46 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a114fb9720bd429f8d406bac7b40a6d2 + expression: 'avg(/MikroTik RB4011iGSRM by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB4011iGSRM by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB4011iGSRM by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB4011iGSRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bcbea364e6264d6a81052e19fb308de9 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 6ac6276902234fe085ae6fa3afe94c16 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: ad62b571c1c4444881787a040cf03b2b + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: db3e28ce72d5488c9d81b4daeaabe9f9 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d95cb59429ac4d50845abefc5b0d4a6b + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 1aa8ba6aacfd4c358600c68c5b22455e + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e98ee47f44a24acab59bf6d10a1f6612 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: a61fd73d9dea4257bfbfc3d705475ae5 + expression: 'last(/MikroTik RB4011iGSRM by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB4011iGSRM by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB4011iGSRM by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 176f7b3c6e4848c79f0f0f99021c644f + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: fffcae15a44d4165af9f293a4dfc3134 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: c31be8015ce640629af6cd3ed09dc617 + expression: 'last(/MikroTik RB4011iGSRM by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB4011iGSRM by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB4011iGSRM by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 437fe5b12b2d478fb69c1047b6421d96 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 7045e4f4ab0244969d7ab6ada0f2d3cc + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5ee60303a3f44dccb8e2636c61ea882b + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 58cd8a4c443e43d595a1afc5d045b67b + expression: 'last(/MikroTik RB4011iGSRM by SNMP/system.name,#1)<>last(/MikroTik RB4011iGSRM by SNMP/system.name,#2) and length(last(/MikroTik RB4011iGSRM by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 349e048d1dc04ae49c6e616a4f4499c7 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9757a0d30651457a97860d475e1ce892 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: a46b0c33e93840e182208a099e6206df + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 991217a368944e34abe41bd465921a47 + expression: 'last(/MikroTik RB4011iGSRM by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB4011iGSRM by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB4011iGSRM by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB4011iGSRM by SNMP/system.name,#1)<>last(/MikroTik RB4011iGSRM by SNMP/system.name,#2) and length(last(/MikroTik RB4011iGSRM by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: a1747b98b45d40d8beb2be1806180a86 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 4255253ed78749d597385af02b95c8fe + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: fb1cd4666b1d4ee48141c77a7b9f07db + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 430682c60e8644baa65bcfa66dcd1b37 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 5b0479439c444be284cac4c699f64b53 + expression: 'min(/MikroTik RB4011iGSRM by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 6fc9f1fc908241ff9484e15802f1e4ae + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 463cc0b4e29d4dddba8ddb16b8faa12b + expression: 'max(/MikroTik RB4011iGSRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB4011iGSRM by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 70b02231b6874b13a6f4f32808c7d7a9 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 54c47bf1d9d64e9c8f45f8d9cfc135a6 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 08f3a59bf7324ff4904737f2c6b94989 + expression: 'min(/MikroTik RB4011iGSRM by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 7e342bf419d54f9081e0447dbd3d40ae + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f31ffac30e7e40b7bd113a17862810ef + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 6d84a0c0f8904b4db46a4f185c4438d6 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 1c270c25cfdb4b44b35ad7115105dfbc + expression: 'avg(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3941319b74e64d8a921714b4748003f1 + expression: 'avg(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4b669ac2471b442dbfd82e70b0dba586 + expression: 'avg(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: a273bbb0f2744f229f08f83002f9ef09 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: b0106d75e8484aea9c4431ff319a35c3 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: a3bcec91e98349fa9d53cb96aeb377ac + expression: 'avg(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9a03df6c9c3141e4845382ea5ae2d609 + expression: 'avg(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f53807b0daa24b2f9bd3d6ab755008fb + expression: 'avg(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB4011iGSRM by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 3de8323ff508430eac61e3f1104d72d5 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 5d3a719d567647c0914c7f5a742282c9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 001e4d76e846438592bd8c7b76025e51 + expression: 'max(/MikroTik RB4011iGSRM by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5d1bd43223bf41a699abb04ec1f6bf66 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c8adfeee1f4b42b38ba756919d18ffce + expression: 'max(/MikroTik RB4011iGSRM by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 840ffc4306d843e6ba23b57fe736de14 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c826e712355c4c40a4699346581c1032 + expression: 'max(/MikroTik RB4011iGSRM by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ab9d6abcd72b46dc9fadd9bd638084a8 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ab44544163f14c31b2c45fe890b62ea4 + expression: 'max(/MikroTik RB4011iGSRM by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: c2d5d609a81e41c0b16f1537239761cd + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: cb00ced4d3d04160a4074cf74455e7ca + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: e88ae445d283419da86347c21756ac8d + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 389996b0d06b403da09ea7ad26d2058b + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4126c7d4e1bc442ab3d64decbaf5bc2b + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8b46ce31662e4784901bb62d8d427db6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: da476e57bb0545ea9c5586dd359a8016 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9cbb1cad26b745ad9d18f4666a6380f7 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: ca4f60a9add646869fbed2d3a9c669e4 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 47ad66f9b9be48a2b28bc1c294bc088e + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3dd8fd21a42f493e81d42799c395f25b + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1fe7cef52ef1453a97a7f23292cf7f6c + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7830a4b9c5b24762ab083a24c978cf44 + expression: 'last(/MikroTik RB4011iGSRM by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a75de8a9798243ee8f0b8629f54e3259 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 7fd32545717c44d7b4b117e53b64acc1 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9a2c81dbd79e46bbb3c48d070420a99f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4e6f08a3ea114a6292ac778f3e85891d + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4f918f4895f74e17bc60ce81e922a41d + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: aab55962d3c34894a1803e4c8fbf54b2 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 838819ed65ce4b38a5f5a603aceac7a5 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4550a521700f4184a1abb5c56680d745 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bc1f11185a9740799bf47205d918e90c + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b56d0177668c4803b2de395f12c48070 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 322bbc3e779041f9a2c1d776168c44e4 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0203940b08b54db982bafbfef0a8ab3c + expression: | + change(/MikroTik RB4011iGSRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB4011iGSRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB4011iGSRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB4011iGSRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB4011iGSRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB4011iGSRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB4011iGSRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB4011iGSRM by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB4011iGSRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB4011iGSRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 883a34a4a82a47f99b63703e3ecd2106 + expression: | + (avg(/MikroTik RB4011iGSRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB4011iGSRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB4011iGSRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB4011iGSRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB4011iGSRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB4011iGSRM by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB4011iGSRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB4011iGSRM by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB4011iGSRM by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: af6d0bf9ba9a4402bf9ec52b7bfe998f + expression: | + min(/MikroTik RB4011iGSRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB4011iGSRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB4011iGSRM by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB4011iGSRM by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB4011iGSRM by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 73c5e6335b24436f82f141c0c0f4fec5 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: dd1c96b4ca6a4dffb18c17227ccbe0f6 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 4f25df9f57b443e5acd933712e07c480 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 2fd43d9ea33a480286e331118e10bc11 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: c3d7e0d1fed74855897397a27938b090 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 7ec2dad6b1de421d800a086ad45e8fdd + expression: | + last(/MikroTik RB4011iGSRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB4011iGSRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB4011iGSRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB4011iGSRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: e91014be808f40ceba0123f0e59e9975 + expression: | + last(/MikroTik RB4011iGSRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB4011iGSRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB4011iGSRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB4011iGSRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB4011iGSRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB4011iGSRM by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB4011iGSRM by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB4011iGSRM by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: a552f5e0c0cc44cfaf344d581d522885 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb4011igsplusrm + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 0ee66a6d6b654d2581199d5eeb5cb6b1 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB4011iGSRM by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 1a0d7378fe7340b68845b69fb4f93483 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 11d4940866204548bc22f75188bcbc23 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: c9b07b4e497c4723a45effe620dae0e8 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 2a3d5a84618f48d2a98f1ce43b1541f9 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 7419d6e22c5d493ba843adf4f4f85529 + expression: '(last(/MikroTik RB4011iGSRM by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB4011iGSRM by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB4011iGSRM by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB4011iGSRM by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB4011iGSRM by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 9d12a71550b440b4b4b9574a523b5b5b + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB4011iGSRM by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_RB5009UGSIN_by_SNMP.yaml b/MikroTik_RB5009UGSIN_by_SNMP.yaml new file mode 100644 index 0000000..00fce9f --- /dev/null +++ b/MikroTik_RB5009UGSIN_by_SNMP.yaml @@ -0,0 +1,2649 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 7b6f7a12a6b449ca926e74c894eca354 + template: 'MikroTik RB5009UGSIN by SNMP' + name: 'MikroTik RB5009UG+S+IN by SNMP' + description: | + The template for monitoring Ethernet router MikroTik RB5009UG+S+IN. + + The ultimate heavy-duty home lab router with USB 3.0, 1G and 2.5G Ethernet and + a 10G SFP+ cage. You can mount four of these new routers in a single 1U rackmount + space! Unprecedented processing power in such a small form factor. + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: ef5bb0f6f7794a899e9158375a100eac + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: afd45d5f0f1b48d68af5e58e5b13f7d2 + expression: 'max(/MikroTik RB5009UGSIN by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 3341d9f675074db882fac927d722eaa1 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: bea20e4b6a634c3bb4c3c3f2c0ae91ce + expression: 'min(/MikroTik RB5009UGSIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB5009UGSIN by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB5009UGSIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: dfaf20182fa7415d84a70157ef7d3a63 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 30e3c09970614f7eb6434aacdc427fcb + expression: 'avg(/MikroTik RB5009UGSIN by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik RB5009UGSIN by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik RB5009UGSIN by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB5009UGSIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 82e17ef7dc8e4a0eab8cbd22a5debb8b + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 7960fa31620c466b83b333a2045b5763 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 01d49dbd697343eb95913424eb783ca2 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 3d3a73fd1c05477ab6a8bc5bd4a451d9 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6b4efaf2db754ab3a228fa8eaae62c82 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 27c30b2dbe0048ecbd5b1236ac04b542 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2031dfc697c244c59e036a0b166772e2 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: d6de889ff3dc4c07a57bb5396a25a760 + expression: 'last(/MikroTik RB5009UGSIN by SNMP/system.hw.firmware,#1)<>last(/MikroTik RB5009UGSIN by SNMP/system.hw.firmware,#2) and length(last(/MikroTik RB5009UGSIN by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6b8b9d12f8d449a5be35d89d8c68719d + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 20e6d99fff5943ff85c2beedb0b292f3 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6c509b4e298e4df7b4e9cecc064dc8eb + expression: 'last(/MikroTik RB5009UGSIN by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik RB5009UGSIN by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik RB5009UGSIN by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f5f8ed93998a4b5799d1f6b2e1984006 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: ba4d97d2010f4d3498fc71e4b10a0941 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f592e2f6cdde465a85c89944de669418 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 78efe7ad5d8740f7ae087beb2952f74d + expression: 'last(/MikroTik RB5009UGSIN by SNMP/system.name,#1)<>last(/MikroTik RB5009UGSIN by SNMP/system.name,#2) and length(last(/MikroTik RB5009UGSIN by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: fadb61328389434c888cb8bfd6e964ed + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9977da08f1374d1c82e92332bbcc199e + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2b704d1b595b4fe5aec1f855ff6574ea + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: aafa92f02db4429b8ea5c43f1e13ad4e + expression: 'last(/MikroTik RB5009UGSIN by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik RB5009UGSIN by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik RB5009UGSIN by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik RB5009UGSIN by SNMP/system.name,#1)<>last(/MikroTik RB5009UGSIN by SNMP/system.name,#2) and length(last(/MikroTik RB5009UGSIN by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 5350a6c911424c839afe59812e0be1e0 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: aa54b9f3cf6746b897c07e7f3eac3c1f + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: b5a826e18b2941aeb1f3e091928225e0 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 767414861593473896fb39004ea488d4 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 570f6f393cf24ee9b0731978bca9d7d7 + expression: 'min(/MikroTik RB5009UGSIN by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: f6a6763b5b344669ab6b605d3d4707f7 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 265226f23bfc4bd58cddd2a154c168ac + expression: 'max(/MikroTik RB5009UGSIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik RB5009UGSIN by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: b68414c0aaaf439cbf0c1c48bbd7203a + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: e8aa4a6608c64edba3aa8a5dd4008350 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 745e204551104bbca3a2db75f55f04cc + expression: 'min(/MikroTik RB5009UGSIN by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 36b36fdd03504844b5df446a542abc10 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: c2630a4fef56441895dde6e8dbf415b6 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: d84c08e7bfde4fff825120e5e2431575 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: f7f22555f0524fab8addb969f565b12b + expression: 'avg(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a291daa1248f4bfca3bdded26cdd3562 + expression: 'avg(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4952d45ee57747de90b71e7073da13bc + expression: 'avg(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 8e19febc9ea54bdfbe8dd05538f03d41 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 63a9a283529a47c1921b9e91925783f5 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: d6ae3c415fa842339e6f1085296fdca3 + expression: 'avg(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3baba3844f1644e29fa20addb4c483e4 + expression: 'avg(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f81d3388b38845f1921e30332a487335 + expression: 'avg(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik RB5009UGSIN by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 1fe627df6dea431593ca811a29049908 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 7eec5f18909443408ac504689dd3035b + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 77565b5e0dbb4415b5f24ebe91d6e5b9 + expression: 'max(/MikroTik RB5009UGSIN by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cad3593fb06346f7b8e5d293c570dc32 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 271d7342775141cabcebb53ecb7e9a14 + expression: 'max(/MikroTik RB5009UGSIN by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bbd99dc8983d44e2956f81592def392c + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: bea4466e83fd4733b269d92657e1107e + expression: 'max(/MikroTik RB5009UGSIN by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a7b2478c97854e1b8eab67bb0da603f1 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 53ef6c7af6114f5e8f76d15aa82d33d8 + expression: 'max(/MikroTik RB5009UGSIN by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: e00f330b8e514a87b6d08c298b7d03f6 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 568c8d68683744a091aa4c40ea902e5d + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: ab249acfd6fd4e4384b08caa78975a27 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6a4a5b09f98c48aca9f95166549411cd + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 803e24bc996e4ad69242c12b62040f19 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4c6a4b99a41248a28779e5c3ed5f195f + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1442e5f206ed4fa99f9a0b711da2e40d + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f6efd53d717a49dc9b9e96cc6a670181 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 4cfce086b7904dbf859af6049c31e1bf + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b0f8d38a88534138a571429d09d2a728 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: da3f58e212c44b5aa39475a65038595c + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: aaf43960f1554a9986d09de5d19238b7 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 67152198cf984ffeb453d6f149aae38f + expression: 'last(/MikroTik RB5009UGSIN by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e91f8259895343b7924c4d44f71aad82 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: fe34a8167761431598cb66871b8ccc0d + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4d23dbb885804af4b402edb00fa2b853 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 197ab3671e5b4b8f804627691a331d85 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4c0104ac14af4ebca549b82e59dbf135 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: dfc294dd052d49a0ba964294ded0f433 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b051145f6cff4725a3e2a1f90414261b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ff597532ec2b4a81a0344c3bc16214f1 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: eaa27aca2b754db99c80b0a5c9f92227 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 33ce2abc89ee40b2bf88f30b9834ec8c + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 4ae74d12983d42b7bff4dd5c72e9502a + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0a611eb7adb546bcab8352199c9fc08b + expression: | + change(/MikroTik RB5009UGSIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik RB5009UGSIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik RB5009UGSIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik RB5009UGSIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik RB5009UGSIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik RB5009UGSIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik RB5009UGSIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik RB5009UGSIN by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik RB5009UGSIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik RB5009UGSIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 464770fa9e3b41399da04f251ff3a215 + expression: | + (avg(/MikroTik RB5009UGSIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB5009UGSIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik RB5009UGSIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik RB5009UGSIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik RB5009UGSIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik RB5009UGSIN by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB5009UGSIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik RB5009UGSIN by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik RB5009UGSIN by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 4bb5165672484ce0bea109fcef1cf62b + expression: | + min(/MikroTik RB5009UGSIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik RB5009UGSIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik RB5009UGSIN by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik RB5009UGSIN by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik RB5009UGSIN by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 9133b7a0e09d4f248dfb8b6a0f4dabd5 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 110e21a587044f2486479bd583cb21e1 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: d268756d1e3b4557ace5aac8491e1fc8 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 303a899d2a19448dab031c6265a5ebdd + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: cd0f312fa6044c639abb345c6297ab6b + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: da49d6b3b96c4c32b1439d13a289a2ef + expression: | + last(/MikroTik RB5009UGSIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB5009UGSIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB5009UGSIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB5009UGSIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: dd9a814580fd47be8982b9ca83217070 + expression: | + last(/MikroTik RB5009UGSIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB5009UGSIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB5009UGSIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB5009UGSIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik RB5009UGSIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik RB5009UGSIN by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik RB5009UGSIN by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik RB5009UGSIN by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 2bcf421df683424fa9bff018ec7135b7 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: rb5009ugplussplusin + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: eb213f78035d4d61b4296fec1651e108 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik RB5009UGSIN by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 209d3691ddba4079971e42b4c66bbf7b + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 537470b0ce914388bae1f5c9d0b7e650 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: f4e3f00eee7942b4a923008204a5efae + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 7e6ac491ba67468ca65aaadd506b0653 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: f4c5126396ce4a07b9f0ef82aea599e3 + expression: '(last(/MikroTik RB5009UGSIN by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik RB5009UGSIN by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik RB5009UGSIN by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik RB5009UGSIN by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik RB5009UGSIN by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 00b301e0452b4c43abdba945529c667d + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik RB5009UGSIN by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_hEX_PoE_by_SNMP.yaml b/MikroTik_hEX_PoE_by_SNMP.yaml new file mode 100644 index 0000000..18f00db --- /dev/null +++ b/MikroTik_hEX_PoE_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: ff57532daf924030b364e3b75acb74c4 + template: 'MikroTik hEX PoE by SNMP' + name: 'MikroTik hEX PoE by SNMP' + description: | + The template for monitoring Ethernet router MikroTik hEX PoE. + + 5x Gigabit Ethernet with PoE output for four ports, SFP, USB, 800MHz CPU, 128MB + RAM, RouterOS L4 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 517295fd0fa14eac945a1f999e25d306 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c187031a85c340219bf773e53b1eb70b + expression: 'max(/MikroTik hEX PoE by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 71383adcc92c44d3866c0c8592c3e99c + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c30d9d87e01d4a4fb5f859b9b96a9597 + expression: 'min(/MikroTik hEX PoE by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX PoE by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX PoE by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ed501823d99341b88d17ecd8b0b83fc4 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 71bd6b58f328466fa8855e45f98d9148 + expression: 'avg(/MikroTik hEX PoE by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik hEX PoE by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX PoE by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX PoE by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e5abe1d4af994d86a2aeebf97ebca324 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 1b22814a8b02449391c1aae1d1f25ceb + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 977608b526c843f2aca7dcd9a18d9334 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: a1f09e41ce824318be6b2852c82d5ea2 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9244bd8596854d6eb586cd7686ec25e6 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 27f4de9554c44842a118ed22da40897f + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3521c975bbb443b1b66ec32ea561745f + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: fe1e4e312e5a4ee48fecb03895b51201 + expression: 'last(/MikroTik hEX PoE by SNMP/system.hw.firmware,#1)<>last(/MikroTik hEX PoE by SNMP/system.hw.firmware,#2) and length(last(/MikroTik hEX PoE by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6178d9f5c5e947fe8e3fb774cc5a373a + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: c449cc37420643ee8493419bde54aac6 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 250374059d8a45f78107f1f5b9bda7b1 + expression: 'last(/MikroTik hEX PoE by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik hEX PoE by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik hEX PoE by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 971d14b46bad442499d7aea95c067dc7 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 433dfca6d6fd4b4b903c48a3cf862052 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 47326c2cd58242e18397d522df49ad76 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 689814337c114068a71c0d510b6ffdee + expression: 'last(/MikroTik hEX PoE by SNMP/system.name,#1)<>last(/MikroTik hEX PoE by SNMP/system.name,#2) and length(last(/MikroTik hEX PoE by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 88c412ccc0944b96be165b4de91e5ee9 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: e4807c61ed6841eb8b96a0e058343b42 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 65da6e280942476e842effb8a08e2c6f + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 2615116273594f659184fdc9f2612c91 + expression: 'last(/MikroTik hEX PoE by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik hEX PoE by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik hEX PoE by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik hEX PoE by SNMP/system.name,#1)<>last(/MikroTik hEX PoE by SNMP/system.name,#2) and length(last(/MikroTik hEX PoE by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 8756dffb1a514c7c8395783689c774e7 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: b4ce328c64a2471e98a1f608028797d5 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 9a7746065ea84c8da33740d3552c7073 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: d294f3fa005b4c90a82fbc3fd5037fb7 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 851e15f5b81a43b3be5d3eda921c9430 + expression: 'min(/MikroTik hEX PoE by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 18941d2b2b45432f9114b7ff69844ec1 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: dbe7f9e93602427e81932c39b4383974 + expression: 'max(/MikroTik hEX PoE by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX PoE by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 9311078329d04ea5a752806a0ee89918 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 81d1874fd7d14f04b5c8511f34156869 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 87ea6ae2f5374f68acfbd4d368c8aae8 + expression: 'min(/MikroTik hEX PoE by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 1646642b07fd4dcaa99e1ad91cf34b52 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9a9de341ab9042ba93a59bc755a67d07 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 544db32c591a4ed1ab8113212de6e920 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 89ccd80168694f6cb7742f79ab2f02ae + expression: 'avg(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a27c393597ac4618846b7c9d906167c7 + expression: 'avg(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 648519d0cc5b4795ab917893a71f1872 + expression: 'avg(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 361b9a2d66864d14806c8ef41ddf958a + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: edd3813705ad49cf84ee609e51c0b04e + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 48244ed562b144c192177e64b06d268c + expression: 'avg(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1b239ec1f0834b6ebe1ebc974121504b + expression: 'avg(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d31b9428aef346d49ec00acd2388f657 + expression: 'avg(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik hEX PoE by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 2dd64ba5c59643f78d472e2281870390 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: eaeb2ee093644c169dffd897c7563704 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 573a668131014af2bc2989edbcdbf8b8 + expression: 'max(/MikroTik hEX PoE by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0a022c73ee604112a46dac1d80312b35 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8b6d36e582d34ed7bdec1aaa406d0939 + expression: 'max(/MikroTik hEX PoE by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d51b890123044db4bbbbbb2bf8255f11 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7e8ac19ee7aa43d7bc849f5a093e846a + expression: 'max(/MikroTik hEX PoE by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6a60892c64f44ba39ac4db3ea3b06a76 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 36404ef697ea49329f0572be3940fbd6 + expression: 'max(/MikroTik hEX PoE by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: d96cc35ffec845a0bfdc742d9c789011 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 63dc090d3529456e9e9a2eb19c288165 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 4c2272fcee0445d9bc1214c1ba3816bf + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 38db6983c1044493ba02a2ca204ed981 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 58ba2fb7ac314593924d11dfddf96dcc + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e6b23b9175eb4a97bce37e07d33891d0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b80ecc7de8714f48831cf1c6bb1870b9 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ba0e7757c7b645c98b67fda025e7c1d6 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 8c1c9f22250c470caa565a55c70bf108 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6be247ddc3a94489b25bee5595e7efea + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1ea73c7d20834a168ebb4a5afca21e32 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 767c4c5614ff4802b8447079b31bbd42 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f75775427c074c83a1002b716733aa7f + expression: 'last(/MikroTik hEX PoE by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 69471c3749694f3083a04ff02e396f34 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 530ea86406af41409432376096f66287 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 369c88f8e6fc48498f42feb7480a51b3 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d646ae15a461418aa8e8da230c5782eb + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3e6a5520bc15470da4ac5a4c8a294728 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 340ea8c167bf44479c564e46a515fad0 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a63fbf01f29b46c19f6c8af8711e18f4 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a4bf8af96225494886df5fe116af2ada + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 31f8c6c9170b490586ff13e88d33ef53 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 28bc939657054f55a94e3818cba84344 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 76233c986f8e4e0d9c7262e5a20f3576 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f65d4d21623e4b0cb8a98f088e304de7 + expression: | + change(/MikroTik hEX PoE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik hEX PoE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik hEX PoE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik hEX PoE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik hEX PoE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik hEX PoE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik hEX PoE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik hEX PoE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik hEX PoE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik hEX PoE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 98c16c4da816482195fc9a3c43f4cc2b + expression: | + (avg(/MikroTik hEX PoE by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX PoE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik hEX PoE by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX PoE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik hEX PoE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik hEX PoE by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX PoE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik hEX PoE by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX PoE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: e24c732a680c4f7fac04eb4fd20e3839 + expression: | + min(/MikroTik hEX PoE by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik hEX PoE by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik hEX PoE by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik hEX PoE by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX PoE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 50f1876239d24cfc93478d4839fa2956 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e626b00e480f4ff8a059be7e85934bf8 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: a6bdcbcf646d4735a4698ce3636ea7a1 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 05023f80d98c4234830e56c2c42059f7 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: f6dd161551a0414ca51e4f7c5b1de616 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 6d5b2060b6c946c7835867727dec0f87 + expression: | + last(/MikroTik hEX PoE by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX PoE by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX PoE by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX PoE by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: e05e7d6b7b6c45f7974f39a258a754f8 + expression: | + last(/MikroTik hEX PoE by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX PoE by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX PoE by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX PoE by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik hEX PoE by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX PoE by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX PoE by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX PoE by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: afe07c8019d5460f9624577328d8c3a6 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: hex-poe + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 30874028a5d143229fcadd280205dd5d + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik hEX PoE by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 15171bce73d64d4db72399fefc7c55f1 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: bcd9de0d817246688f7682a1b66ed046 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: c0bded469f6a4378a7fdcadd7c858b24 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 427da1e5397442f3a00e445928f054ed + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 6919d6afa065438b976979a4f782414e + expression: '(last(/MikroTik hEX PoE by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik hEX PoE by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik hEX PoE by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik hEX PoE by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik hEX PoE by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: c80620de3cdf4e42820898df686e2935 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX PoE by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_hEX_PoE_lite_by_SNMP.yaml b/MikroTik_hEX_PoE_lite_by_SNMP.yaml new file mode 100644 index 0000000..134f1a3 --- /dev/null +++ b/MikroTik_hEX_PoE_lite_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: a5ddacdd5ac64b82bf5183769cc03e8c + template: 'MikroTik hEX PoE lite by SNMP' + name: 'MikroTik hEX PoE lite by SNMP' + description: | + The template for monitoring Ethernet router MikroTik hEX PoE lite. + + 5xEthernet with PoE output for four ports, USB, 650MHz CPU, 64MB RAM, RouterOS + L4 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: ab72f64db4304a2db7c6c2d1ec8eebb4 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9d1eaf8c440842b6867f539d8e4580b9 + expression: 'max(/MikroTik hEX PoE lite by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: dc2b92f5ee3148828d66f17679873755 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: bb1bddbd5b3b4c97a056a3030cb8220c + expression: 'min(/MikroTik hEX PoE lite by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX PoE lite by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX PoE lite by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b0933870b3424664ab150192ca5e790f + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4de979003a374346a66e18e0dc0ae8b3 + expression: 'avg(/MikroTik hEX PoE lite by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik hEX PoE lite by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX PoE lite by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX PoE lite by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 15263d03b5bc40eda79495ba51042d7f + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 02b9eb47a0a646ea88c4d8afaa24afd7 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: d661c8c6e6b847d49d722ce1938efee8 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 02174f3b849a4fe490d79273ad9b4d1d + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 78849e4286984e72ab462795c2f29b03 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: eba52f0801c74394afce9b85132f4a0a + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f9085ebffffa4e2abca0aa7c0e50599f + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 81f162170b3f4cf0a5376f43ba8c826d + expression: 'last(/MikroTik hEX PoE lite by SNMP/system.hw.firmware,#1)<>last(/MikroTik hEX PoE lite by SNMP/system.hw.firmware,#2) and length(last(/MikroTik hEX PoE lite by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3d8a9da605f74a9089b49def0f6a4bff + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: e35a6c46c241466a9d96f1017bf3b467 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: ba2f0b5e00a94aff9db6b436a64b91bd + expression: 'last(/MikroTik hEX PoE lite by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik hEX PoE lite by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik hEX PoE lite by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b2fb7a55ee1b4030b4f621e73a730749 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: ece69e2a6d174678a770c6cc05d20b45 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5577c25fe0ab4decb44fdf31ffd6b345 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 0b1965fc09b549f8a0301c3b560f6e04 + expression: 'last(/MikroTik hEX PoE lite by SNMP/system.name,#1)<>last(/MikroTik hEX PoE lite by SNMP/system.name,#2) and length(last(/MikroTik hEX PoE lite by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 44cb15bcd76e4bdba7a5c8f91211226c + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 645d1046c0f64a079e97f57f5bb03aad + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c25789ed5a2e40b090016c759c5a96cc + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 857cc7715ae243879509d5ba827f0533 + expression: 'last(/MikroTik hEX PoE lite by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik hEX PoE lite by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik hEX PoE lite by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik hEX PoE lite by SNMP/system.name,#1)<>last(/MikroTik hEX PoE lite by SNMP/system.name,#2) and length(last(/MikroTik hEX PoE lite by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: a40f18da3905480aa83619354feb63d3 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: c45124bc11da4ebebf0dc1a9cd7c261e + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 45ec9416e047428b8c535f95985bb61d + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: d7aa64e64e534b1e9dbd65dd2bdda819 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: f328399a209d4adaa8fed3dc9577539f + expression: 'min(/MikroTik hEX PoE lite by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 58e51b1aac7f4433b8f7160d044bc8c4 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7b2ebd40ed1f4e72ac77c9bc31eab800 + expression: 'max(/MikroTik hEX PoE lite by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX PoE lite by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 2a630c50c8bc4b5d895accbe43af54f8 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 3cc001fddd7848d29d829479fbb74279 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: ecb6b125d94643cf80b38078f1d42ad2 + expression: 'min(/MikroTik hEX PoE lite by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 150c76d3d44a4025904f4b0b57ff37be + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9abd143a230545b5912e56ebdeff5fad + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 69b35a7a4e60483c9bf69367b6151d06 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b7ab6a1e8efd4accaeef15ed26b66308 + expression: 'avg(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 5a24a5c02664439da2ee76753e25ec8a + expression: 'avg(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c21ad0f3058d4a57a1dc137576217655 + expression: 'avg(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 399c977682b54f21a2de66c620e30f13 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: bbd42a0a59854a0cb8e8661a43308585 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: de90614e78854f81822379c9b5ffc74e + expression: 'avg(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 11e619b8b2144751995926ecc71add69 + expression: 'avg(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 931a8a585db94a6eadbaa2cc6ef7c730 + expression: 'avg(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik hEX PoE lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 76bb411f762949169d70dc5f69ce43f7 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: ad25c7037c8246558c996ebca60f97ad + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 09762405d2114ec79510f7954dcdae86 + expression: 'max(/MikroTik hEX PoE lite by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7424d9ceb77b4a06a935b44f7c1ba568 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3f6e42b8dbcb4cd4b47c067fe5b7d1ea + expression: 'max(/MikroTik hEX PoE lite by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f3a86df3351f4dd080031a9c821f5252 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e4778ad9d8ee4568b212241439a79e27 + expression: 'max(/MikroTik hEX PoE lite by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e551b72d1cd04297a9c9ea0e64e29255 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3eb7aa8563c54b72b7193ef83793acc0 + expression: 'max(/MikroTik hEX PoE lite by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: aa8108d017b74c4e81bc5bb4c659ff18 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 814d31895b51492db101ebb5c184ce03 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 21ca9e298c2b4e469eac9de27d00f3e1 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4bf8c167c8f743bc8a5f0adf32d546fb + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f9953f3ff399439eb71e80f410ebb4a2 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: be0690e2061e46709c35b4d1645eb4f6 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 27f4310379d14bf7bb6b30eebfabf2cc + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 63b0a6b344984f679f06c11089b6bedc + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: a75ecbdb067e4b8e89fca2c467689822 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: dfa45dda12b448109f9cc04003c63812 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 65fdd09f484a4923bf5a379a9e5d5a8f + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f49f8079f71948858ae1b158b6aa186f + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c3737199ab5342829ca6fae6d1de74f9 + expression: 'last(/MikroTik hEX PoE lite by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 477f5879c64a43f58a3a769781cdc5bf + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: ea5abf52a338464aa4c73f18ea4ebe23 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bdf2c149889b48b9a1837d2e9d3d9fee + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ca60ce8dcd674a608e0517d2e647f273 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9cb988645c5d49eb9b598904907d0ab3 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 99b8a1cf6c36400b849aa84f4a71f098 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 94bd65da101541eb87cf17c49b3fdd88 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b8584ff473de4f20b4ab1e1b0c435251 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 55435c135d5341eb89d37185c894c557 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 101e11f167e64235aa2d5f7d06f43548 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: caede69c454b46db9a46c7a42b994cf1 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0a6434fa071a47d4bbf9dfb922580cfa + expression: | + change(/MikroTik hEX PoE lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik hEX PoE lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik hEX PoE lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik hEX PoE lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik hEX PoE lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik hEX PoE lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik hEX PoE lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik hEX PoE lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik hEX PoE lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik hEX PoE lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: f07cc9964edc4a819717be63759a150d + expression: | + (avg(/MikroTik hEX PoE lite by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX PoE lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik hEX PoE lite by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX PoE lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik hEX PoE lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik hEX PoE lite by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX PoE lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik hEX PoE lite by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX PoE lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 62a5f85871ca4fc3aed8e4cf0423649a + expression: | + min(/MikroTik hEX PoE lite by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik hEX PoE lite by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik hEX PoE lite by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik hEX PoE lite by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX PoE lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: e5f8b95c8bbc479ebad65e967591956b + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 567a3273ef3e464c8f5d995c3af5ff21 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 97ddda9d5c8542f8b5f905e4bb9d7479 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 868c3c9fe3c54e3193f3e0b6329828db + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: e75b2f65357c40e487b9b9f3387fcb0a + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: b911cb33e9044a599d10c06e5b0f90fb + expression: | + last(/MikroTik hEX PoE lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX PoE lite by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX PoE lite by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX PoE lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: eada2d5bde184483bc0496677aff2c3c + expression: | + last(/MikroTik hEX PoE lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX PoE lite by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX PoE lite by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX PoE lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik hEX PoE lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX PoE lite by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX PoE lite by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX PoE lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: edc8dcfebff945e6b3131aa3d12e497c + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: hex-poe-lite + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 449136e998d2420f84ab5d1778dbb76f + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik hEX PoE lite by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: c212726bbd1047f2aa72c2f88b1bd4d8 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 1d00e802a2c44775a84e2cff4e9f3e65 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 47444d3fbb2f414dbb1c6ad7cb77ee13 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 451f6505bd2e43e08ab5f86e0e7ff816 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: f6de5bd6b737473fa0bb8adcd7388f2f + expression: '(last(/MikroTik hEX PoE lite by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik hEX PoE lite by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik hEX PoE lite by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik hEX PoE lite by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik hEX PoE lite by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: a927d6e3b4f7401281acf19a4f83dae9 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX PoE lite by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_hEX_S_by_SNMP.yaml b/MikroTik_hEX_S_by_SNMP.yaml new file mode 100644 index 0000000..8a3ce4c --- /dev/null +++ b/MikroTik_hEX_S_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 7802db8c2f9c4a7eba7b381b8f3fa5c5 + template: 'MikroTik hEX S by SNMP' + name: 'MikroTik hEX S by SNMP' + description: | + The template for monitoring Ethernet router MikroTik hEX S. + + 5x Gigabit Ethernet, SFP, Dual Core 880MHz CPU, 256MB RAM, USB, microSD, RouterOS + L4, IPsec hardware encryption support and The Dude server package + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 085e72fc9fde405faaeaf097b29e12a8 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 99b9920681f941c187f81d1c91755891 + expression: 'max(/MikroTik hEX S by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: c0bffcb2d515415db279b20fcdf3c2ad + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 530db893da94415db5fa5b1f26570bd5 + expression: 'min(/MikroTik hEX S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX S by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9b58686f36c6431f8c5d7f990403a823 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 662e7c6a20bb4038b171f39f88bc5c5a + expression: 'avg(/MikroTik hEX S by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik hEX S by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX S by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 75214946ec7b4b0bbc8e86f9e83b7f7c + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: c08c6737b99140caa73d2a81cc86f9e9 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 7c5a4f5306ae4fa6bb4f428c68eccc5c + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 6185cb0ed5824d55ab7a3115e34fcd3e + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: f2d1ab4e84554749ae28567b4031e6fd + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 3f9b8a4a60074fd7b08f15db63e95447 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: dd3b07cbd6d74fec88e1d371846b48a4 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: bdc6d6b5a4be4bba95f1635d8cf165d7 + expression: 'last(/MikroTik hEX S by SNMP/system.hw.firmware,#1)<>last(/MikroTik hEX S by SNMP/system.hw.firmware,#2) and length(last(/MikroTik hEX S by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ea51e70e43e24056b25309ce0fa8f9d8 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: a577dbe3cfde4294ab93e0ab114c24c7 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 9bcc039b8f1e4b3c84414d0d62d6c52d + expression: 'last(/MikroTik hEX S by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik hEX S by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik hEX S by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 42eee310a68844deb422d5ff3a715efa + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: db89a699f89f45648f7e10476fbb1ba7 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 819e7be322cb41728e01c9c91ae925f5 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: ed72b3a73f5d498586ddfe57e9ad8638 + expression: 'last(/MikroTik hEX S by SNMP/system.name,#1)<>last(/MikroTik hEX S by SNMP/system.name,#2) and length(last(/MikroTik hEX S by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 25aaf430db3d4a19a9b0f7c082e904bc + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 1bde09547e21422ab7e17cdc0503aa53 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 34a57dc1a4f54f7ea156fa5c7b5f61de + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 21dd8dc14526470493b31ebddf14574c + expression: 'last(/MikroTik hEX S by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik hEX S by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik hEX S by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik hEX S by SNMP/system.name,#1)<>last(/MikroTik hEX S by SNMP/system.name,#2) and length(last(/MikroTik hEX S by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 64d260bc3e5240309575d88c93ea8cdf + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 4d8039dcceb344dcb4de5c4895a4e199 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 664555ffcf5e48039bdcf98bf79247ef + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 8aa0e7e65d12468e9fdf4e2faebd3450 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: bdd1ff379f214b1896c0e7ee5d6e6e16 + expression: 'min(/MikroTik hEX S by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 57f802d3cb784200bb047ccd947d34b0 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e33c3d29eb9f41b49cc6002a5ee14058 + expression: 'max(/MikroTik hEX S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX S by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 455bfeb9d0b14c77a43129d489e3140b + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: e0fd55cedc7340f2a453865f02f3a668 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: ca6c0d5b13a24f6b9e28296818ae1624 + expression: 'min(/MikroTik hEX S by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 37edfa6825394b30b3742eac201a3a58 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX S by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f328cfadd7c149c98d8e6694ff8a1d16 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 7c007188eb6b465c8b56f415ac1a8efc + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 21775fd4ca0143838ea2c2c7c16c4b75 + expression: 'avg(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7c75f3db8a8341819bb4455d4a6440e3 + expression: 'avg(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3247cd9062894b59bb736c3c75bf2f67 + expression: 'avg(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 7f462b2b67494acc8e968a38ae2949e7 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 219015883daa4871be424d46c4af4126 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: ce2928b0b45a4e74976c4ebb01f769b6 + expression: 'avg(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9401397315604181973ac4a5e0c6a5ba + expression: 'avg(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 466053cdfce44600bf1ff0ced3c4fce4 + expression: 'avg(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik hEX S by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 9bab04f1de2b4bb59ee2f5116b67829e + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 88a280a7905449e793add1d1217f92f9 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9a48a8512ac74bff9c44733842d21693 + expression: 'max(/MikroTik hEX S by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b04b0c8358f84225bd33ba0a4494bc91 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c5e6899f9dee47d7812366a26e5191d9 + expression: 'max(/MikroTik hEX S by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9600e46ee74e48b48d169399b2dda431 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 207bea70b82e4a6087f104cb1ec1f8a2 + expression: 'max(/MikroTik hEX S by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 67466da7befe41a9a0a6d84b6c2508d2 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3b7135afe54a4acfbf5d14510f6b22c1 + expression: 'max(/MikroTik hEX S by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 709b83b504d5409091a71fc4351f06f7 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik hEX S by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik hEX S by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik hEX S by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik hEX S by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0e917c0aa21343248fe29278d61b961a + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 6e320401044041cda2c048b4af73fb8e + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ad811b6b140844e59dd6ac2618e1b9bb + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9e3847a985c14de59faf61670478b6bf + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 51174e5e7d41479fab6b9077ef5d40d9 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: bd2ece0be43f48b1a390d6f44c796f4a + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: edb9c0ee0f4e4de2819919ddb2a88a99 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: b867fd906472452ba9c503fe7f82f680 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e96e64d9fe5944b4b5bb1324fb2845b0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 720d95d0ef294d019fc91b2ed2debb14 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 4d8828d7d008441fa7497dbc88d6d065 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: de36b7b78e8b4bea936347995a0eaeb1 + expression: 'last(/MikroTik hEX S by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d9f19a854ae14b56a35f87eca75b3b9e + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: f68ea90e6b774e0db583fa311f66c91f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8e30986c6563461ab42925fe30db21ab + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c38dc98405b14309b3c81df08cccfdea + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 396930e89bcc4a1c94df333b75e43799 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8a08acc839f94e22ba0f24d6c469e137 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0a85e89b937842659b588a51b1593e09 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 141fc60bd89646a1a3d4dbdff9689037 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c21517a23e5f4042b55a9b9171357525 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ef94e6ea0f0547ed9b67073d91a745ec + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 2117c921d1b747c1953ee0e54619b338 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8a7a6eb94ea24a819764bdcc5131238d + expression: | + change(/MikroTik hEX S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik hEX S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik hEX S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik hEX S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik hEX S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik hEX S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik hEX S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik hEX S by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik hEX S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik hEX S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 0d59255268064ca68352411117f5e9cf + expression: | + (avg(/MikroTik hEX S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik hEX S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik hEX S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik hEX S by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik hEX S by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX S by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 062828dbf3964ca9bf6014b15ea13648 + expression: | + min(/MikroTik hEX S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik hEX S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik hEX S by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik hEX S by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX S by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 0b818f0991254d05b2e7434e1a4e3f31 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX S by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik hEX S by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik hEX S by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik hEX S by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik hEX S by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik hEX S by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 63c54ef0b1a54c2a9cce978a5923d83f + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 6cddae4271784cc5bb19102f2f8f44a0 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: abea1d8e522a48fcb35d3b05b41cd576 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: ed5fce36f7904eb7bf5929b90fd5b535 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: f303b6ce2be34c8ca0f51e5c73e47715 + expression: | + last(/MikroTik hEX S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: cdef153d2e914c12ba3303c938489359 + expression: | + last(/MikroTik hEX S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik hEX S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX S by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX S by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX S by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: b5b0436352614bf1ab0f84731dc4f627 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik hEX S by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik hEX S by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: hex-s + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 138f717936cd4e72bfc724a7128a1d85 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik hEX S by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 6ea0ca9342014c71be6d5c38203bcf55 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 97906247683e4a488e191c5aba0b1bb3 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 7a87ed0256064913ac714fe514f3a87b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 18e987751fe7494bba178a5412592b90 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 3b0a33b89325422c90a05950eb7b4ece + expression: '(last(/MikroTik hEX S by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik hEX S by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik hEX S by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik hEX S by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik hEX S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 1df82d3644a941869ea2fe632982e2aa + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX S by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_hEX_by_SNMP.yaml b/MikroTik_hEX_by_SNMP.yaml new file mode 100644 index 0000000..bfe371f --- /dev/null +++ b/MikroTik_hEX_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 68c2034014f24115ae9e910962530472 + template: 'MikroTik hEX by SNMP' + name: 'MikroTik hEX by SNMP' + description: | + The template for monitoring Ethernet router MikroTik hEX. + + 5x Gigabit Ethernet, Dual Core 880MHz CPU, 256MB RAM, USB, microSD, RouterOS + L4 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: c481552e81c040cc902c5a02e8971ba5 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2759e7d4eb114d0984aff53e6656e57e + expression: 'max(/MikroTik hEX by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 0b2a45e80039439ca76648ff3eff0515 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 32d2897f2f1d42b0b2d4f40d6332cf48 + expression: 'min(/MikroTik hEX by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bee8dc9f001443c38134e692b933aa89 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 138f10a500aa4b29abf9760c80e22b06 + expression: 'avg(/MikroTik hEX by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik hEX by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d3667df2f5684e479c579c48f84c8015 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: e470f22a8f114567a98d50b0b440dfcd + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: d44db2b3812246e09860a63d42512382 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 65095df07cf849789fe6d78cbc9e2712 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 92ff237e1b074d35b47e029168cd9f14 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: cd8bd2a11d164a9eafc6771bb80eb449 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7154ef6b0f0b4d4a99fdf1d7ec8b2262 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 0c58b3a529a541c5813e6d374fb1af38 + expression: 'last(/MikroTik hEX by SNMP/system.hw.firmware,#1)<>last(/MikroTik hEX by SNMP/system.hw.firmware,#2) and length(last(/MikroTik hEX by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0e326a00dadf46928949a2270a4e7619 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 17dd769754ca4559b53b191baa8ac571 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 3a683df3455e4c3b9693f70d7cc2312c + expression: 'last(/MikroTik hEX by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik hEX by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik hEX by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 32d6b1147607490287da049b08140f0b + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a6d38cac0dcc4bb085e6d7dc9536407d + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 860ffeeac47c434c8890fef9c13f5105 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: d6d2aa238d864cc1902b94e44e46b627 + expression: 'last(/MikroTik hEX by SNMP/system.name,#1)<>last(/MikroTik hEX by SNMP/system.name,#2) and length(last(/MikroTik hEX by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 2d1af72cb5174acfaaf50992b2aeb25e + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 6d82211969d74fb7b33f1e9d90c83902 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7df965b410944b07a5effd80fc3e5514 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 752e3b231fb9428baa28a7dffd90b2a5 + expression: 'last(/MikroTik hEX by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik hEX by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik hEX by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik hEX by SNMP/system.name,#1)<>last(/MikroTik hEX by SNMP/system.name,#2) and length(last(/MikroTik hEX by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: f65b50872b6c4ad59943002667e2fadf + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 3698fb3739a8435da6e40f4c2245b78e + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: b15a14a08a06417a9ca3586754a3c968 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: ac044f3cfc33483db97ef1daecaafd6e + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 3887f8ec0f8a4eadb45b3d3388fdd3bf + expression: 'min(/MikroTik hEX by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: c814df3020694764834105ce89cb5232 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9a95ecc339b34b3a8713d62c68e2b330 + expression: 'max(/MikroTik hEX by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 8bdd4763b58b4bb5ae2cd68f28a7d5aa + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: cf88e868bd54481e8992495620b76886 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 2d0e7e1624ef40de9a7ba351917ec339 + expression: 'min(/MikroTik hEX by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 8dd00c34191d4daab61d4b9b9abe76af + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ce444de5ad9944b3bfb8dffb26e0314a + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 401bd6a8a97643d5888157488dd9a4b6 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 3b40b247aeb14a6d833a3c67594938ae + expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cf13c4a9be634dd09d1f14a9774a0009 + expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 16f478f052aa47328ac6e23e778d353c + expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 6da7e4227e054a3ca41950f208cd8c01 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 82aeb0418e3445bd92a6626e75d25b7a + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 8b2e3dedb9884c81a8370732a1f3a367 + expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c5c22051e035432eba2ad5f77da002c0 + expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9b49825517f44a7fa37d2d96abd8848b + expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 485845b1ea494e12a042e6e55f8758bb + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 156f0fb44c0d43dba742edfd66ad7144 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1491814409194648a9d98bcb18ac77cc + expression: 'max(/MikroTik hEX by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 379ec65a6b9f4136950b21a9d90cc547 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e7a5fc01703c4474add6aac174ef5b16 + expression: 'max(/MikroTik hEX by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f4de2c971a664990a8c6bafc42c089fd + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d529f287404945b9a265fefff65768d5 + expression: 'max(/MikroTik hEX by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: de256c8eb72a457d81fb33f192320037 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 2f85f97d29774922b6fecc19379726d8 + expression: 'max(/MikroTik hEX by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 70a56aeed598461e8d41997d056b83fd + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik hEX by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik hEX by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik hEX by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik hEX by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e6c42eb8ef5b4827852b41e577924d82 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: dd0be192693f476e97455b7e05f85aee + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 85ae5fc4ef5e404ebd0ffcb14a14d8b7 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 2412519dbd114cb3b8a16dcb8c11d087 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 01abec24a89f4112991dfb272512a716 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: de7416fa19824a9abf3223dc2dc77c26 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f26774cbab2949f69b634eb8b5821e58 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: ead6f31f7dd74d019223d242513eaef9 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e704ea4180ed4e33ba1aee5402e01101 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: aba46c2b5c614cc7873d2edaeb1d3493 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 17a2738e73924bb9928eedd098f3ba7c + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 92cf3f4cf7a64de58347d2e459321f92 + expression: 'last(/MikroTik hEX by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4c29001a422d4c93829f613674c760ab + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 0dbfe46640fc42a9abaabd7272404cec + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 32e0d3493c2142389f5dffecb9720551 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 45ebaba72cb643c98340640f40129113 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 13c44a7c91ed4781aa390cf0fe45224a + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b20fe4196472445e9cbb73152e819f5b + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e55c393989a1461e8a3e05733164a273 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0e5816801ead429688acc6c4e6387c9d + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f8c119662e5a460588e15558e83be9d3 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c8fd70162f264509a4bd4898015f522f + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: c08335ca5dae457b8d0139df59e96057 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1ebf4ecd3b254ace99f6738cd066035c + expression: | + change(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 01d1b416123541eaad013386e1605241 + expression: | + (avg(/MikroTik hEX by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik hEX by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik hEX by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik hEX by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: baa41e89c189448e9d9a5918ef4918be + expression: | + min(/MikroTik hEX by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik hEX by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik hEX by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik hEX by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 29c240aec2bf440c9e69751f16c6aec8 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik hEX by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik hEX by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik hEX by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik hEX by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik hEX by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6bac0ef3a12748a5b63a7bbe39dc0a13 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 4110589dc6ee47bdaf23dade490edffb + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 8e9bb2413bd142d194d0563590441797 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 5021e0a0f78b4d6f80965efb0975fe04 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 927bf28b0d7f4409ab7b2de288e59b66 + expression: | + last(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: ca6639ac0950404da35738314aa3b88e + expression: | + last(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: a7e05919813b4ebb9fc0e4535d342807 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik hEX by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik hEX by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: hex + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: b599ca881f0e41ee9ea2eda0a5bc3dcc + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik hEX by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: e440d3590aee41198de71b1b8d03b4b9 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 9f7f414526dd464f813b6c193317729c + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: b31538483a81433a9136af0e3f210b2c + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 61a780952af848389136a09bbebbec46 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 40869f938b4f470cad6f5d8996edd088 + expression: '(last(/MikroTik hEX by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik hEX by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik hEX by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik hEX by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik hEX by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 60d570c2447d418f90d0a64842f970b0 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_hEX_lite_by_SNMP.yaml b/MikroTik_hEX_lite_by_SNMP.yaml new file mode 100644 index 0000000..71189c9 --- /dev/null +++ b/MikroTik_hEX_lite_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 2785d83763c641a7a7937b516665d93a + template: 'MikroTik hEX lite by SNMP' + name: 'MikroTik hEX lite by SNMP' + description: | + The template for monitoring Ethernet router MikroTik hEX lite. + + 5x Ethernet, Small plastic case, 850MHz CPU, 64MB RAM, Most affordable MPLS + router, RouterOS L4 + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 8a48b3331df141bda0f3d9cca2b678f2 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 78f7c3cb9ad94841b6ef337df5a41914 + expression: 'max(/MikroTik hEX lite by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: b781c132adc34334b27b9e7762c4b7d6 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 899836cd67f74868954af828bcf35521 + expression: 'min(/MikroTik hEX lite by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX lite by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX lite by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f1fb3fc2def948559f1db70e4581bbdd + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f5930e10af6e43d380c97f2522780a8e + expression: 'avg(/MikroTik hEX lite by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik hEX lite by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX lite by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX lite by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 934a7b99f99844ea8fac5c4c3b799898 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: b3383829ce684182b78dabfa908c00c2 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 324dbec2e7bf49f999411dfb25372701 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 81a3cea5e62e41ecbecbfa1c3bd821e2 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e1120e04fc1344bebf89ec883fdd0e00 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 8cb003746f8a47a09a21eadb327de4f9 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c15fe701615f41809cdb9440e308339c + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 8fb6d0748d5a4e589e397f0523944bc5 + expression: 'last(/MikroTik hEX lite by SNMP/system.hw.firmware,#1)<>last(/MikroTik hEX lite by SNMP/system.hw.firmware,#2) and length(last(/MikroTik hEX lite by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 10cecca7315d4732badc194787d6e58f + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: ab2590092f894a1c97787d5edb470b65 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: c76bf7b6d13b49a4916a00709ee7c9ba + expression: 'last(/MikroTik hEX lite by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik hEX lite by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik hEX lite by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 691b2eadbe314570841aafbe2ad2afb1 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 3812d629520d45c58ec3603a4eeca72e + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e6f61d8243514cdebac021b5124fce8c + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 6aeb9e554ba1411f868668b8f31dca49 + expression: 'last(/MikroTik hEX lite by SNMP/system.name,#1)<>last(/MikroTik hEX lite by SNMP/system.name,#2) and length(last(/MikroTik hEX lite by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: f7bd0ce4612c46c8a07239b5fe19231a + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 2736a10a1fc446eb8b9f448e894b14fe + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 0c40e8e1ccca4418b9bfc22a84c08b4e + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: b5cddf34bbe74bb08663b85c83035f57 + expression: 'last(/MikroTik hEX lite by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik hEX lite by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik hEX lite by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik hEX lite by SNMP/system.name,#1)<>last(/MikroTik hEX lite by SNMP/system.name,#2) and length(last(/MikroTik hEX lite by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 5d66a2c3f54543908039c46cdd3e4f76 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 93743e909ba5414294005084cb83fc93 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 039d0c2fe2224a57b77def7dd4dd2cfd + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: bdb11b0d08184bd188276b7559286e65 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 4a08a50891814c0d813c39a4615bffac + expression: 'min(/MikroTik hEX lite by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 1d892561e2ca48a3a6d8e2aec6ff7505 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fea996e6b5e14205ad6e41faa9f53263 + expression: 'max(/MikroTik hEX lite by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik hEX lite by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 9c7a81a8e2654d58acf463a00cce14f5 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: a9c3336d847a44e6b6e652e6acc6844b + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 4910a9cc5fdf4eefa05e1e0f339828c4 + expression: 'min(/MikroTik hEX lite by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 2c545076c11b4783b2bd951b38a58618 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX lite by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 89af9490b6c74ab8ae81630c171e4326 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: e7b3d6ee055c4aad8697c7fe6b46321f + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 0a16b13ef86e4b968690de77d4fdd851 + expression: 'avg(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 26ad73c494494a83a6b7eab785efe3ce + expression: 'avg(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 19c2754a812c48bd87fd250aac01b97b + expression: 'avg(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 132954d3fced48d9a272be2f748c915d + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: caff962e717e4d2f93d2c67a59316aa6 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: fada5a58781c4684b70e7aea77a96040 + expression: 'avg(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 87d04ed8af6040f1b2230244b7ffcc18 + expression: 'avg(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e5ca03c450eb4ccfa4dc94de0d6eeaaf + expression: 'avg(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik hEX lite by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 78120670dc214ff5833e8b65c830b9bf + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 53d319fb092540c490a945a1918b04a8 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ef64375fbe9b456d895d5fa75b524bc4 + expression: 'max(/MikroTik hEX lite by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1da2986f9f9542b58781f141c95a268b + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ccc2b5cabd164f2c94268bd8fbb17299 + expression: 'max(/MikroTik hEX lite by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 889d3fa6f6fb416bb66be28fbe59ea1e + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 07ac669be6d14c878ed3824adbcaa035 + expression: 'max(/MikroTik hEX lite by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4291982f94354c16812ffa4522e74a9b + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e351a08588664f29aab5a784ff3bbc1c + expression: 'max(/MikroTik hEX lite by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 3336863bfebf4480aeac28755c770954 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik hEX lite by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik hEX lite by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik hEX lite by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik hEX lite by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 39954b6664a74494a1af7de587704e43 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: 522e6177173542d7b83e109447765c7a + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 01984514830c48d7a8b716700181bd19 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 40ba0370ec1b4432814c654bc65558fb + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9984f8a346b1452d8ccac4e471ff6a18 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 21f387d4d01d47bc98852aee0cbc3e03 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: c2d5d79d5dc14876ae9951c8813804cb + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 84066dd7587748e1908b38eae4029121 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7dd11163c97f4d31b46b7fade589b135 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 84248b4499ec4b3399905bbb2a7d9e76 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8a7f54f2f8b747bba0de16dd53750679 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9361f7dd8cba43e4a237678d00eb26b6 + expression: 'last(/MikroTik hEX lite by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 1eede533e5224a8d92c3a2a3d069a00c + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 292b067b92524af1b183b9d26455d092 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 67a0721ca54d47b2b1971fb81ab6a195 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 330bc494646c49a1acc43f134e9dea59 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b2bc232de2be40e9b18322bbfe9bd339 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 419eb76aa4bd4e6dbf47cbaee0e3b6a5 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d599db57d24745aba77ae60faef325c8 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 84970927eb194b00ab4b5aa8093b5709 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cd76e4940cbf4582b3e6f1c7a0ec28fc + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 89186fdd35cd4300803d8cbfaa86fa71 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 3c0b9f206c9744d381903da1877e207f + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 775cb415657c4772aa345e886c33af52 + expression: | + change(/MikroTik hEX lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik hEX lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik hEX lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik hEX lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik hEX lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik hEX lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik hEX lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik hEX lite by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik hEX lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik hEX lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 5ca398d5648b46449d93b13ed69d24ab + expression: | + (avg(/MikroTik hEX lite by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik hEX lite by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik hEX lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik hEX lite by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik hEX lite by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX lite by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 51cc89abce1c45f4895d904fbf4c7a73 + expression: | + min(/MikroTik hEX lite by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik hEX lite by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik hEX lite by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik hEX lite by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik hEX lite by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 66f5c80600ec4220bf365e5f138948a1 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX lite by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik hEX lite by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik hEX lite by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik hEX lite by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik hEX lite by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik hEX lite by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e89f36e5fdfd4ff0a22370dd45a900be + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 836926c431cb48a9ab94ad752243a60a + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 4e63d5682c0147f3a314ab6def8043b7 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 2c8d3e482b6a453e8f46ea59ea75445f + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: cd0ef8f6c93340a1aadd0559ef302476 + expression: | + last(/MikroTik hEX lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX lite by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX lite by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 0460d9d1f873497ea57430cf067c786e + expression: | + last(/MikroTik hEX lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX lite by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX lite by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik hEX lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik hEX lite by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX lite by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX lite by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 277327e948d24186a0723bc0fe4debf4 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik hEX lite by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik hEX lite by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: hex-lite + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 627aef32b53a429684be6b5df05fbb3c + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik hEX lite by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 76ca35629e874d2f90546a74a4b36ffb + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: a6383fcd4ce349eeac45dea55c502ded + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 7cc0bd53766f455fa18674f6c6d08b47 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 8882c6eab8a7460e81bed27d01992b08 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: d893994cfe8145b8bb0cf294b8a49f1f + expression: '(last(/MikroTik hEX lite by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik hEX lite by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik hEX lite by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik hEX lite by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik hEX lite by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: e05047c0d48043218995a5342d291480 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik hEX lite by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_netPower_15FR_by_SNMP.yaml b/MikroTik_netPower_15FR_by_SNMP.yaml new file mode 100644 index 0000000..5b3b6b1 --- /dev/null +++ b/MikroTik_netPower_15FR_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: f1928e12f9554599a9adb516f38b6bf6 + template: 'MikroTik netPower 15FR by SNMP' + name: 'MikroTik netPower 15FR by SNMP' + description: | + The template for monitoring Switch MikroTik netPower 15FR. + + An outdoor 18 port switch with 15 reverse PoE ports and SFP. Cut costs, not + speed - choose GPEN over GPON! + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: cd22f3bc12c642e1b8bcd708b7ae68a2 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8b77ade2f79b4e3bafc22e7d8766e477 + expression: 'max(/MikroTik netPower 15FR by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 4f918b392de8452b943c71ef69f17fad + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: cf4a28f174764d20953c4dcbca1576b6 + expression: 'min(/MikroTik netPower 15FR by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik netPower 15FR by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik netPower 15FR by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7deb2be6b623485fb0e6bbf88a02dbf7 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5ab1684fe5f34e3faa06192f47562b86 + expression: 'avg(/MikroTik netPower 15FR by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik netPower 15FR by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik netPower 15FR by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik netPower 15FR by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 94e1ebf58d8d43ba95ab7e6264887dfb + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 616f1ecdc8fa4f9fbdb4a967ef3148d5 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: ba5410ba09354d87a3f3941d3b45b013 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 84a4224286024f56a09301195b6efa72 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 0d8544ddbb6947bbb005cec3304317a1 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 2d7c4a734e3b4980b02166caa994d939 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c3a06a34c55c42c89d9158ac8e735564 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 86d3bc7830274e24b19f0b7120f9c957 + expression: 'last(/MikroTik netPower 15FR by SNMP/system.hw.firmware,#1)<>last(/MikroTik netPower 15FR by SNMP/system.hw.firmware,#2) and length(last(/MikroTik netPower 15FR by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 350020213bbd4ca59fad42e8347abd67 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 3540413716f141329c4ffadb402a051d + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 8964055d1c7445e68b9ba2eb30faf1fc + expression: 'last(/MikroTik netPower 15FR by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik netPower 15FR by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik netPower 15FR by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c30a010e7f134bc88fc47708d02a0a31 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 225a0364e38845b489a9dc94055790ac + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8fa41471e9b44d138848ab7ecfb7d354 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: a67b112302804d90931ea112d7412aa7 + expression: 'last(/MikroTik netPower 15FR by SNMP/system.name,#1)<>last(/MikroTik netPower 15FR by SNMP/system.name,#2) and length(last(/MikroTik netPower 15FR by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 3ad913927c424bc9b2ab09365921f41a + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 6320b2b82e3c42f993a053be2ed60a5d + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: d8413ee1e46846fabbc3f7239d74df02 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: ad61f9029ba449aab240fee852d1e49e + expression: 'last(/MikroTik netPower 15FR by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik netPower 15FR by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik netPower 15FR by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik netPower 15FR by SNMP/system.name,#1)<>last(/MikroTik netPower 15FR by SNMP/system.name,#2) and length(last(/MikroTik netPower 15FR by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: cf99345bee674cd3bced77141bb267c3 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: d80ed64a5916414091a72caf33d650ee + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: bd680110f05848aaa2754da8d00f60e4 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 1a8c279dc19c4944804d27e0e6f7b5b3 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 660db85a472349e7878bcdf41faa4689 + expression: 'min(/MikroTik netPower 15FR by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 6ee24adf573947e29e23436f45a47e08 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f0686a8c2a6e42de980d6bca8ce4a0da + expression: 'max(/MikroTik netPower 15FR by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik netPower 15FR by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 41c63da374c3490ca27e7bc3298f269d + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: d28ec3c6c00741eda325a53cb7e45e4d + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 6fa6e471c9594ea9a65d54a72a7a7b54 + expression: 'min(/MikroTik netPower 15FR by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 308c726fa1ac419490b645f68bde63de + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8575e3af9dc841c489d0d72cf3880da1 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 8fc500e6a2b743cf9c948b099839dc8a + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 46615aebb0e2414b9094e5e25c0a6314 + expression: 'avg(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: db07d94668634efca75ab714cc2cf083 + expression: 'avg(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 664ab6cc5ce044af8d6899473ea0a8b1 + expression: 'avg(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: fe69d484c5734fc88eb7cb9d8e79288e + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 511cdf90845747b5bfc43c46c245aec5 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: f81db05dfee24aaaa8cc27aca30e7455 + expression: 'avg(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: edab3732eb9a41f4b42da927ee8996a7 + expression: 'avg(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0ef1463290ce45ab83838acb51e9d5ab + expression: 'avg(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik netPower 15FR by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 325f04ecd27949d6a5c486850e7d189c + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: b615320ad07f48ecbf8cae0fed33a492 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 30101628e09d4c67a1d4d7938b7b5674 + expression: 'max(/MikroTik netPower 15FR by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f4f48561aad24599886457011a6a4995 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 179fb6a3947f4a4bad4d914dfbf2727e + expression: 'max(/MikroTik netPower 15FR by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f492fe605f56443d98b136a4d6d81d70 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d92f9fa8a9a648ad817295ba5b26c254 + expression: 'max(/MikroTik netPower 15FR by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 32b98a463dc74c11b4e1695970fca8fc + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: df1dc76e73904e35850f1b104dca01ea + expression: 'max(/MikroTik netPower 15FR by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 3282106194e14f4e935d10a97d85a536 + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: aef802a72bea446781b9456246984457 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: c501d4366af34a3a8e30b6e224c3fafa + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b723d3bf59c047039fc23568f445aa98 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9ba87c338496445dbc1fb2019a07941e + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3d1256ace78141cc94a8b36ddcd5578c + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c9c7f1e0788845398a415a6e649e3818 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 802b868d392d4f65bb47178566fc113c + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: ccaff01089e04fad846522db993649db + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 26b0c07f668e43718e6fea333f68fc63 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 8ea5913e43c740b19c28647eef54c3ae + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 3ddfb23ff23c44ee9d9690374f82d028 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: fb10d55898f74edbb7a1541481cbde49 + expression: 'last(/MikroTik netPower 15FR by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 62392f64c22b47d8bb2cf4fcb1c24682 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 8b99bd7b719940428af4af9f3a43ae72 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 67bbe49205f6440398bfc5f28df04c3f + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9df47891dc1540f98068c1734a2bab0e + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e8e937775f794e7ca7e78e8e5cc1e555 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 88e9b94950084ffcbae95936b9af3c66 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5b3a4925f5c54ae78c46eee45e81588e + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: faca9de83a1c4309972af08848b0480d + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9e73b53e463f479fbdaaf17433530cf2 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0aac9b47a3f04cc7bea4f118e66d2a2e + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: b1e65d5043c84e7b9a9185cd0ea36074 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d01d880fa506470a85c4219963c6275d + expression: | + change(/MikroTik netPower 15FR by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik netPower 15FR by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik netPower 15FR by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik netPower 15FR by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik netPower 15FR by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik netPower 15FR by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik netPower 15FR by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik netPower 15FR by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik netPower 15FR by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik netPower 15FR by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 65d28a326c624b9da28eb0d0477138fb + expression: | + (avg(/MikroTik netPower 15FR by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik netPower 15FR by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik netPower 15FR by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik netPower 15FR by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik netPower 15FR by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik netPower 15FR by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik netPower 15FR by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik netPower 15FR by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik netPower 15FR by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 1dcf1776170c44b38acb30d3c20f62a8 + expression: | + min(/MikroTik netPower 15FR by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik netPower 15FR by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik netPower 15FR by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik netPower 15FR by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik netPower 15FR by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 6744532b53474f93944f103e71a61612 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f72f57ef12e84957aea8cd402b3061c2 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: e97a95f91dc24615ac510da4e1e13c60 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: a1838a262c5446d798d1ca6f5b9237c1 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 517b5e46327f48e9b3db685167a77d13 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 2ba297940326432dbbc91974ed99d53d + expression: | + last(/MikroTik netPower 15FR by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik netPower 15FR by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik netPower 15FR by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik netPower 15FR by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: e3054ae302bd4c29b81b6f4c58c39021 + expression: | + last(/MikroTik netPower 15FR by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik netPower 15FR by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik netPower 15FR by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik netPower 15FR by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik netPower 15FR by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik netPower 15FR by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik netPower 15FR by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik netPower 15FR by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 9d68b0bd14fb432bb730cf1c69098dd7 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: netpower-15fr + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 7cefb865cde143638af45ea57ac71ac6 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik netPower 15FR by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 839bc47f8c5a4c08a124d98a67d1d008 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: e5ff01ab289d41c3b0400ddddd560252 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 60d08c7e151244b6818a208dc71be165 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 4afed47df39742559534158284d405a4 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 6ca7b6f5acfb499b8ffbf5988a95616c + expression: '(last(/MikroTik netPower 15FR by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik netPower 15FR by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik netPower 15FR by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik netPower 15FR by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik netPower 15FR by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 0840a833bec844fcbbbda3398b8f2d81 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik netPower 15FR by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_netPower_16P_by_SNMP.yaml b/MikroTik_netPower_16P_by_SNMP.yaml new file mode 100644 index 0000000..292217f --- /dev/null +++ b/MikroTik_netPower_16P_by_SNMP.yaml @@ -0,0 +1,2648 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: b126aaf4499d49d7b4fcee0329b7dea7 + template: 'MikroTik netPower 16P by SNMP' + name: 'MikroTik netPower 16P by SNMP' + description: | + The template for monitoring Switch MikroTik netPower 16P. + + An outdoor 18 port switch with 16 Gigabit PoE-out ports and 2 SFP+. Power all + your access points anywhere! + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 1456a122964042f48b033f5c31dd8376 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ad75e791ea804015af4f056851d065e5 + expression: 'max(/MikroTik netPower 16P by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 5571d787631e48e782de334341fabb8f + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 53146df6198e4aa8a08ee2f5148b9273 + expression: 'min(/MikroTik netPower 16P by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik netPower 16P by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik netPower 16P by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d39e275bb89745caa0a6b27ac88c58fe + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d30292aa239f4b08866dd626bea719d4 + expression: 'avg(/MikroTik netPower 16P by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik netPower 16P by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik netPower 16P by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik netPower 16P by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2fbbb3ab2ea24c79b2d17d626eb9d9e4 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: c300402ec1054fea9d51f561ed0a9540 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: c18df4381e984a599904b4fcf19d2f70 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 64eb10d744834f2697951abf073d5149 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2eb45102f7ef4abc9ee58548ea98c774 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 4d6158d361f943af9dd63ef425e5cf28 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 166760a906dd4377a9b548a4809da3fd + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 4b2840d437844c54aa8328a2af6ab16a + expression: 'last(/MikroTik netPower 16P by SNMP/system.hw.firmware,#1)<>last(/MikroTik netPower 16P by SNMP/system.hw.firmware,#2) and length(last(/MikroTik netPower 16P by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: fd26be143fce4e5bb10c61899b518eb2 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 17f7aa01b647470382387fa9698bb80d + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 356423e8d963491c84c0ff910a324db9 + expression: 'last(/MikroTik netPower 16P by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik netPower 16P by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik netPower 16P by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f0ff722acc544222bac0a51456515570 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: c92d6baa96784a30a17e785e6214e3e3 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3b9de782051549bea9f39dd6ceb6b946 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 31d043884c104f02aabfc12edc7cca38 + expression: 'last(/MikroTik netPower 16P by SNMP/system.name,#1)<>last(/MikroTik netPower 16P by SNMP/system.name,#2) and length(last(/MikroTik netPower 16P by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: ddbd6f5ee0094e5ca2f62aa07fe71fd5 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 6455af8d14904fcf892a03989a0b8a37 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6f2ceb1729884e39a364207defb39b96 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 381ec628763d43e8a7f287d4bab024ee + expression: 'last(/MikroTik netPower 16P by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik netPower 16P by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik netPower 16P by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik netPower 16P by SNMP/system.name,#1)<>last(/MikroTik netPower 16P by SNMP/system.name,#2) and length(last(/MikroTik netPower 16P by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 731f08c5f7004052a54842a51b04da2f + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: efdb24ce66d8410cae4a932160c12bf2 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 3d359d909fef46ec96fd6f66a7be6d3b + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: ca6584d0bc71410bb93a7c295e6993b3 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 35b88fa6b15845e78a3a7211fe2ed0af + expression: 'min(/MikroTik netPower 16P by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 84fc11c2d18449cb8b903b6a8ac05959 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5a3c6162200746f2b5fc1df3120dcc40 + expression: 'max(/MikroTik netPower 16P by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik netPower 16P by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c8e3efbae6ae49a19192b5df2ee9fea8 + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 53ba83109bb34b21a689cba89cd80ee2 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: e40966f36f804bbab518eb0cbc711fca + expression: 'min(/MikroTik netPower 16P by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: d8f0a7f28ec647eebdeb1db630e63249 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: bbef794582294a2ea1321ac233a4af43 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 351f9998f3a24e21a18570d9aa782734 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 725caccdc4fe495e93e2cfa438f52674 + expression: 'avg(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ea9e2193843d4a71bd24bead9394685d + expression: 'avg(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ac521e5e0c9d416ba0f61563a85a66ff + expression: 'avg(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 6db4d343f263423aa2429e64efbef34b + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 9ea80b6d187a4117aea55f07c782f336 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: b5a55e90742148ae91fb30394d79a50a + expression: 'avg(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f5ccdff135ee46ed81889d2882d54b3a + expression: 'avg(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: dd21e53afab64548ae180079d705dee5 + expression: 'avg(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik netPower 16P by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: b26cd292bf634d3e9c7cbf96fae9a9c1 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: a204035a215842089680883e013f6162 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 1119a5651b6b469199e6cd8484ea000b + expression: 'max(/MikroTik netPower 16P by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c6fb1da5c6d642579285caf0712e870c + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 22c7a42c10524dfab69c6e9566a28150 + expression: 'max(/MikroTik netPower 16P by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 766550d88a2b46ee905b611dd2b740f8 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 14f69778aac0476290fd2ddff01693fd + expression: 'max(/MikroTik netPower 16P by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a5af3f3c24fa4804b7ce63e7fb377f64 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a6e1255d7904488788f4e5358b4b1a70 + expression: 'max(/MikroTik netPower 16P by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 955940cc271f48b89a14caebc9cd7adf + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ddb15a63887e4581b375f8462a645c14 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: b7a7dab289b04d1baada39071b8dfeed + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7b987144335b4ba58231327e9686bfef + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: fa450c03ad6f4628915bfe5148d3f159 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: bba6280d021147ae98ba429ad2c58f80 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: c46c846e04784177b8cfb1efb8678391 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a0b2f2d19eda41f78501d076da56be98 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 624a0f31d0214e968545a64d7bf14184 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 493ac987474b4d59969765d1ac7e9053 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: d16e8308541043209d509d8c7f1d502c + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: f8da5dbe8a684455b7e384372ede531b + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d332b384052e4538869186b6c44ae332 + expression: 'last(/MikroTik netPower 16P by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 7296321823c4439ba324965a820221a6 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 3cd3522e656b49ee890bb5b89a9cd36c + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b5a661b631e94afcbe6f1e7e941bd089 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 10bedeb24a414598984a8c83730ae718 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b8fd82530c854f54b87e8263dc7be4d8 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 8368e3d0f297470f9948681ad83c4a77 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2fb86f95aaf04867b219646000a5b851 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a8d1a185804a49e68c2584373770b33e + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 112b5660056246e58af76fef04b44c7f + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7337464491af47fdae8202c1e68585ac + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 577f83588c44447c9c6e79ec334b29f3 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 74b27cf9dbed4239bcbeb3967074fc2f + expression: | + change(/MikroTik netPower 16P by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik netPower 16P by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik netPower 16P by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik netPower 16P by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik netPower 16P by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik netPower 16P by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik netPower 16P by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik netPower 16P by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik netPower 16P by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik netPower 16P by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 487e923c839049718746d1875ffb4152 + expression: | + (avg(/MikroTik netPower 16P by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik netPower 16P by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik netPower 16P by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik netPower 16P by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik netPower 16P by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik netPower 16P by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik netPower 16P by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik netPower 16P by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik netPower 16P by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: fe9c5bef78df4e0b84920a40d1549e6e + expression: | + min(/MikroTik netPower 16P by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik netPower 16P by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik netPower 16P by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik netPower 16P by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik netPower 16P by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 37f70e8457bc4c8c8578bb63d9243843 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: af98fd7de06d4f48920cbdb96f0b6165 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 8a5e4dbb9a194daa918c30f2a12d8b95 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 45a98099bb5443f192d997c0207503b7 + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: c823bfe0913b4316b28079aecac9c5f1 + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 5f17a45877b44fbab75b614db365db47 + expression: | + last(/MikroTik netPower 16P by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik netPower 16P by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik netPower 16P by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik netPower 16P by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: c5c80f5a24484c05b62d7bb5474f2091 + expression: | + last(/MikroTik netPower 16P by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik netPower 16P by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik netPower 16P by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik netPower 16P by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik netPower 16P by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik netPower 16P by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik netPower 16P by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik netPower 16P by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 37977ee583bd41ba95521c2907457999 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: netpower-16p + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: d8a88389a7684d90932d984523cc2669 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik netPower 16P by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: f67e80e8803c4aa7bf64347a6ab40336 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: bb70b4c197574b659fec20c066393945 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 828e978dbe3d445d8059c31f8902e403 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 47facf2a4a234c31851d1ec80a803cbe + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: d721994d11d04783af8d3a474de35b1c + expression: '(last(/MikroTik netPower 16P by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik netPower 16P by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik netPower 16P by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik netPower 16P by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik netPower 16P by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 91052db6edb34215856dfe7479114987 + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik netPower 16P by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MikroTik_netPower_Lite_7R_by_SNMP.yaml b/MikroTik_netPower_Lite_7R_by_SNMP.yaml new file mode 100644 index 0000000..73bbc6b --- /dev/null +++ b/MikroTik_netPower_Lite_7R_by_SNMP.yaml @@ -0,0 +1,2647 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 1782caa5bf724f66a23e7dbb96ef7ba2 + template: 'MikroTik netPower Lite 7R by SNMP' + name: 'MikroTik netPower Lite 7R by SNMP' + description: | + The template for monitoring Switch MikroTik netPower Lite 7R. + + An outdoor reverse PoE switch with Gigabit Ethernet and 10G SFP+ ports. + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 9a6ed6ec60a74ffd9142d21489ac8470 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9eba3716ff704612a9c498a7b5a72a15 + expression: 'max(/MikroTik netPower Lite 7R by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 9ad8e2e7b1ee488f9470836f8cd8f4b6 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: c0069ca77aa140d3ad4559979ad0973d + expression: 'min(/MikroTik netPower Lite 7R by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik netPower Lite 7R by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik netPower Lite 7R by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9a3155664a4d4f5797733f66939bc506 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9b01547e80e84f16b017901233e1fddd + expression: 'avg(/MikroTik netPower Lite 7R by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/MikroTik netPower Lite 7R by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik netPower Lite 7R by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik netPower Lite 7R by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a7a673b6f0cd4d588828028caba5d8c7 + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: b1acc89ec5a44933aee32f7fce4bef74 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 886163a11a0d4dd4922fc4fda700ddcf + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: e9f5b25afb7e44918e19df044c71d238 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: fc274078fc4f4a70b85572e1ebabb681 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 449b88f9f0bb423d89def3227b1d9e38 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: bece431938dc48d79221aae1c14bb118 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: c9b18f3abf444a849606d278d9db0924 + expression: 'last(/MikroTik netPower Lite 7R by SNMP/system.hw.firmware,#1)<>last(/MikroTik netPower Lite 7R by SNMP/system.hw.firmware,#2) and length(last(/MikroTik netPower Lite 7R by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d25a80f7bc97479690fcb07d44462606 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: e9b1a9ee39334a7e986ca5fa85baea41 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 42d7e9c9f03e4b2a8af09b1c54913bba + expression: 'last(/MikroTik netPower Lite 7R by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik netPower Lite 7R by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik netPower Lite 7R by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 850f16c89c1a44c585852784dc32bb1b + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f3af39a93b684b99880bfbd50b146ec5 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2258348183a64037bdad1af1a0af29b3 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 146922ff45f24d7ea7d3b7b5f0631f77 + expression: 'last(/MikroTik netPower Lite 7R by SNMP/system.name,#1)<>last(/MikroTik netPower Lite 7R by SNMP/system.name,#2) and length(last(/MikroTik netPower Lite 7R by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 4116de1f7bcb4902adcc14a449d58b80 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 90919bb372954e0eb87fae49ed98ca70 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8a2568f84b394419b6f8ede2872dc3f1 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 4400b69762f948f78365b74569ed54af + expression: 'last(/MikroTik netPower Lite 7R by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik netPower Lite 7R by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik netPower Lite 7R by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/MikroTik netPower Lite 7R by SNMP/system.name,#1)<>last(/MikroTik netPower Lite 7R by SNMP/system.name,#2) and length(last(/MikroTik netPower Lite 7R by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 7b4cbeded8984cb881e5502258af4fe4 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 2a897066661b413fb7d0f6ae795a8b78 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 194e39cf188e40ba88b4c1f41b01b0c9 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 0d8527333e0a4f509b9fe0699577b081 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 348923e33c3049ea8b27a5d920528300 + expression: 'min(/MikroTik netPower Lite 7R by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 8aa3e5e4cb8440998922015c32994cd2 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d51c0c2689a14b41aed889d67ec596df + expression: 'max(/MikroTik netPower Lite 7R by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/MikroTik netPower Lite 7R by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 583f23a35ad84a808a6029b7a46b24fc + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 5a0fdf4fa043461dabd6d581ce58a8a4 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 6c1a7d6fd11541fb93a8e73f8712db83 + expression: 'min(/MikroTik netPower Lite 7R by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 29d6c58dd153437a9a62c95fdaa0d016 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d37741d8f523452381e8400eb0ac11cb + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: e6290dc78db8453c94c22eee0940fc01 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: e51ab41e7ac142afabac3ddbe622fc0b + expression: 'avg(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8046c8fbb72f4cf3afe0154fc2e41d6d + expression: 'avg(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3a4f8decfaf44650bb4066141e36f42a + expression: 'avg(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: ebc661ab6f4d48da8294d4199172dc1a + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: f1f656e272c8469b98bda73e0cc6a861 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: db6e52bc27714f51bc61e7cc3c3ebad1 + expression: 'avg(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 9e1b2270bc144295a7b0edc2ba98c81b + expression: 'avg(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 27e033be9fd94be2bbc3969e9cb51ac4 + expression: 'avg(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/MikroTik netPower Lite 7R by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: e161530a74ca473993b1be2cd03a45a8 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 534301e9868e4cd0b71d6556164b3d70 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0161455f62224813a81ed396716437db + expression: 'max(/MikroTik netPower Lite 7R by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6b7494b2ddac49d9b72e31a1c18fc9e1 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c54da31a0d9f4219b8f5a4f47e30fb4e + expression: 'max(/MikroTik netPower Lite 7R by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ce8f8d1d78bd451f962cb25130f829ce + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5e1e679028cf499d80484e1fc11e8ba6 + expression: 'max(/MikroTik netPower Lite 7R by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ac1f673cad3d4e45a870b09a4d33a1fa + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e1610c79b6704dfc948f77117d928b5d + expression: 'max(/MikroTik netPower Lite 7R by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 0d03f46cbb0c44b99e6369bd256a6cfb + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 01c811631d98499d83c296f34ce36aee + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: c046aa8719a44d598328182e56d3162c + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: fe51564fb48a4434875eb376ec52fd60 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a8688972d13f4757b027c4f257193ff8 + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 10dd0b3680c04bde89d521fd8c705887 + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1a6dd112444a4c64a556dda3833fd6d2 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: de8845213cb14554aa0306b19c997e47 + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: c130a29f18a146d483cde32122880e23 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: b80079f3815c438bb45a76febc53d531 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 1dc8656481a2470c92e97bef53f17d41 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 489322ce283c434684d4f59829c257d2 + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 0c4ff636a9834ee39a16032fd5cd2048 + expression: 'last(/MikroTik netPower Lite 7R by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 0e526afef3484016aaf73752c4931fa9 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 86c29ff24d8a48ac9006749e37a8da67 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 03412734b2614e8a92a9e8b45c6422bd + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 48c2f9a47a074a40b20db214de37d830 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ca3d79c0bc594979bbc44fe5c729afd0 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: abea3c44fdc2424db5ccf5d388e492f6 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9ff32d3dcc7b4edbbc5f5603fbd4272d + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6ad90d1c5e15433599a516dd88c85ff7 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e9d5d234876e47e9a36779c2e1e247e4 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 532c7b90f432422398ad782959fb330c + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 63912ec5f0be48ad966c2a0b0605a9fc + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 91828300121c45d49d9ec4b5e61d872f + expression: | + change(/MikroTik netPower Lite 7R by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik netPower Lite 7R by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/MikroTik netPower Lite 7R by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/MikroTik netPower Lite 7R by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/MikroTik netPower Lite 7R by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/MikroTik netPower Lite 7R by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/MikroTik netPower Lite 7R by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/MikroTik netPower Lite 7R by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/MikroTik netPower Lite 7R by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik netPower Lite 7R by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 8d68e034bf6b4302ad4026fca4fd1e86 + expression: | + (avg(/MikroTik netPower Lite 7R by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik netPower Lite 7R by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/MikroTik netPower Lite 7R by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik netPower Lite 7R by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/MikroTik netPower Lite 7R by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/MikroTik netPower Lite 7R by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik netPower Lite 7R by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/MikroTik netPower Lite 7R by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik netPower Lite 7R by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 0f981e35c326480585104d8ed108bd70 + expression: | + min(/MikroTik netPower Lite 7R by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/MikroTik netPower Lite 7R by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/MikroTik netPower Lite 7R by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/MikroTik netPower Lite 7R by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/MikroTik netPower Lite 7R by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: e68556274dda430aa646c2c299d26c6a + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ffe565a9cbb24c5ba7112a5db9d43231 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 926e106ebed847cb8179f1672be567b9 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: e308837cc63741b7af3175521c7a66ec + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 36d4268675794bfcba1ca0b2a586770d + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 1019a14b0998497daff1707692bc38ac + expression: | + last(/MikroTik netPower Lite 7R by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik netPower Lite 7R by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik netPower Lite 7R by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik netPower Lite 7R by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 1c431594950944138617449b126c5d92 + expression: | + last(/MikroTik netPower Lite 7R by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik netPower Lite 7R by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik netPower Lite 7R by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik netPower Lite 7R by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/MikroTik netPower Lite 7R by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/MikroTik netPower Lite 7R by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik netPower Lite 7R by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik netPower Lite 7R by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 43b64db05b454192adb237afed0b7b02 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + - tag: target + value: netpower-lite-7r + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: d3dae4b78c8a45f6ad84b25f89bc3fed + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MikroTik netPower Lite 7R by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: c3ca1fe6814948818bde09a430c55d56 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 526dda4a360a4b81b3875c105087b417 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 325bbbb044504b29957d9a759d7947d0 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 77b701dfe7914b54ad7f361e0ff55f3f + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 06c5437331284cf1ae61668b8fd285b5 + expression: '(last(/MikroTik netPower Lite 7R by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik netPower Lite 7R by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik netPower Lite 7R by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik netPower Lite 7R by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/MikroTik netPower Lite 7R by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 7416ed490d2649a19930540ed8bfff7d + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MikroTik netPower Lite 7R by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/Mikrotik_by_SNMP.yaml b/Mikrotik_by_SNMP.yaml new file mode 100644 index 0000000..0b7e4bd --- /dev/null +++ b/Mikrotik_by_SNMP.yaml @@ -0,0 +1,2652 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 815b5a81b29a477695fddbd533ad9c84 + template: 'Mikrotik by SNMP' + name: 'Mikrotik by SNMP' + description: | + Template Net Mikrotik + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + MIKROTIK-MIB + IF-MIB + + Known Issues: + + Description: Doesn't have ifHighSpeed filled. Fixed in more recent versions + Version: RouterOS 6.28 or lower + + Description: Doesn't have any temperature sensors + Version: RouterOS 6.38.5 + Device: Mikrotik 941-2nD, Mikrotik 951G-2HnD + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: 'Templates/Network devices' + items: + - uuid: cba2e98b8ea14ff0a03dee515337ac7d + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: dc51a869c302440ba48d352545782e6e + expression: 'max(/Mikrotik by SNMP/icmpping,#3)=0' + name: 'MikroTik: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 81b47dcd39864dd6812344bd0dc34963 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 83fa0a00b298491a967e052ec0c3bafe + expression: 'min(/Mikrotik by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Mikrotik by SNMP/icmppingloss,5m)<100' + name: 'MikroTik: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/Mikrotik by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3bb0c6c8aad64f21a11dc58c6be2eeaf + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7c027442ed3c44a0a26b4f35458a37f9 + expression: 'avg(/Mikrotik by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'MikroTik: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'MikroTik: High ICMP ping loss' + expression: 'min(/Mikrotik by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Mikrotik by SNMP/icmppingloss,5m)<100' + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/Mikrotik by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3eaa90d933914ba18663ebf21c4675bb + name: 'Mikrotik: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: a23fdffc346b4adb833924d9975542c2 + name: 'SNMP walk wireless interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]' + key: net.if.wireless.walk + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - uuid: 540698a8c58d4a659e2c2ecdd5cb76e0 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 9d2b98385edb49979abcde5481560253 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2f9bb0334ae74e22b3ff917dec5fa924 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: 763d10f3cf344cd488db9c156c893d18 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 260eff3ec4034e33aea9c25962a782be + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Current firmware version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 62a9cd04a4dc4f5a9b59a01e54fb983f + expression: 'last(/Mikrotik by SNMP/system.hw.firmware,#1)<>last(/Mikrotik by SNMP/system.hw.firmware,#2) and length(last(/Mikrotik by SNMP/system.hw.firmware))>0' + name: 'MikroTik: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8d2c5a405ffa42fc81a2c9b914e20874 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 2c5a89f75a8d4e38ad021b3539ce8273 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + RouterBOARD serial number. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6c1dcb2e8e76405887af69a6a08e53df + expression: 'last(/Mikrotik by SNMP/system.hw.serialnumber,#1)<>last(/Mikrotik by SNMP/system.hw.serialnumber,#2) and length(last(/Mikrotik by SNMP/system.hw.serialnumber))>0' + name: 'MikroTik: Device has been replaced' + event_name: 'MikroTik: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 94f4af679dba4d3e9047ebcf8c1bc419 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9766fcd2e7b64865a6ef60f3ab27002f + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2d99a01f7c0d4ca38f3bc9a5f8db3ab7 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 0172b76bc48d4dcead140c4880499777 + expression: 'last(/Mikrotik by SNMP/system.name,#1)<>last(/Mikrotik by SNMP/system.name,#2) and length(last(/Mikrotik by SNMP/system.name))>0' + name: 'MikroTik: System name has changed' + event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: ff6fea946fb143e3b8b151eafb403952 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9d8a27d216f146ae88479e8e6bcbd301 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7e3b3e78086742a7b9cda953367a2d83 + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]' + key: 'system.sw.os[mtxrLicVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + Software version. + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 739f60e0862d4fe88cc2a5fe626211a8 + expression: 'last(/Mikrotik by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/Mikrotik by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/Mikrotik by SNMP/system.sw.os[mtxrLicVersion.0]))>0' + name: 'MikroTik: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: System name has changed' + expression: 'last(/Mikrotik by SNMP/system.name,#1)<>last(/Mikrotik by SNMP/system.name,#2) and length(last(/Mikrotik by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 2af6a2f85926468ab8242e4f5c6fb096 + name: 'SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering mounted filesystems. + tags: + - tag: component + value: raw + - uuid: 0636e173288d42e68faf62c381a65087 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]' + key: 'vm.memory.total[hrStorageSize.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 7d4a1591887848028ea8bae81b7d01a7 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]' + key: 'vm.memory.used[hrStorageUsed.Memory]' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 56017f610bf74f0aaaa92e9183e68ea5 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.Memory]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: e4b4ba5ec80c4d83adbb10739edf4574 + expression: 'min(/Mikrotik by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}' + name: 'MikroTik: High memory utilization' + event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 754f890d63c042f6976a1ad25c317574 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2cc6310f1a824d40903f497f155a7834 + expression: 'max(/Mikrotik by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'MikroTik: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'MikroTik: Unavailable by ICMP ping' + expression: 'max(/Mikrotik by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: fb2a399dbdb54484a9f58ae2437c32fb + name: 'CPU discovery' + type: DEPENDENT + key: hrProcessorLoad.discovery + delay: '0' + description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.' + item_prototypes: + - uuid: 560173245c8245128bc7071b8201fe12 + name: '#{#SNMPINDEX}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 7843aa49df2b4f218bf633bee4f01df6 + expression: 'min(/Mikrotik by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization' + event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 1e6e64b461dc4010a582d2f39fcfa4f8 + name: '#{#SNMPINDEX}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Mikrotik by SNMP' + key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9a4ae5c2a50d4414ab0eed2c70bcd9c3 + name: 'Temperature CPU discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]' + key: mtxrHlProcessorTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlProcessorTemperature + Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: ad101c676b5243eca67eb68d879f5212 + name: 'CPU: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: edcc83694dc847f8a8dcb7e192f96404 + expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above critical threshold' + event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1c380934165343a68345c761de9cbdb5 + expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3' + name: 'MikroTik: CPU: Temperature is above warning threshold' + event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: CPU: Temperature is above critical threshold' + expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}' + recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 47a89879a7db47e9bf598e27f7c084e7 + expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3' + name: 'MikroTik: CPU: Temperature is too low' + event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.11 + - '0' + error_handler: DISCARD_VALUE + - uuid: 9c6a401a70ec4dba92bd9e270fe7dc79 + name: 'Temperature sensor discovery' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]' + key: mtxrHlTemperature.discovery + delay: 1h + description: | + MIKROTIK-MIB::mtxrHlTemperature + Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items. + item_prototypes: + - uuid: 2bfb758ca6264401902524b32e04f472 + name: 'Device: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]' + key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]' + value_type: FLOAT + units: °C + description: | + MIB: MIKROTIK-MIB + mtxrHlTemperature Device temperature in Celsius (degrees C). + Might be missing in entry models (RB750, RB450G..). + + Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 21afb343688c4c0e8189a7dbc4f441e1 + expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + name: 'MikroTik: Device: Temperature is above critical threshold' + event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0ba64ff53885473ca8dcd333a770a7ed + expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3' + name: 'MikroTik: Device: Temperature is above warning threshold' + event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.' + dependencies: + - name: 'MikroTik: Device: Temperature is above critical threshold' + expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}' + recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cdbfc8fabf9f45fc95dedba327e30a1d + expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3' + name: 'MikroTik: Device: Temperature is too low' + event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.14988.1.1.3.10 + - '0' + error_handler: DISCARD_VALUE + - uuid: 017797e68eae49afaa864dd57757bbd8 + name: 'LTE modem discovery' + type: DEPENDENT + key: mtxrLTEModem.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.LTEMODEM.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.' + item_prototypes: + - uuid: 25cf4b11ade848fb9947ef85c59da65a + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP' + type: DEPENDENT + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRP Reference Signal Received Power. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f23c654001384f6e981fd33aeab0af6f + expression: 'max(/Mikrotik by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 467f6179fa7d43c2a23333330c1ceac1 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ' + type: DEPENDENT + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSRQ Reference Signal Received Quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 57f8757b80914c248a35d0899791a48e + expression: 'max(/Mikrotik by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0994d40dab10493c96c4f79d0cc5e619 + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI' + type: DEPENDENT + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: dbm + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalRSSI Received Signal Strength Indicator. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e2c692d5d4ca49b688656a1abe6228e5 + expression: 'max(/Mikrotik by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1c5a284353964175b4541c78fea7d07d + name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR' + type: DEPENDENT + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: db + description: | + MIB: MIKROTIK-MIB + mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e163c4af8ff1451a8728e569c5d3c04c + expression: 'max(/Mikrotik by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 4f6bc67c40eb441189ec233f926f19ec + name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'Mikrotik by SNMP' + key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'Mikrotik by SNMP' + key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'Mikrotik by SNMP' + key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'Mikrotik by SNMP' + key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5eada6e6837648859ccb440525281698 + name: 'AP channel discovery' + type: DEPENDENT + key: mtxrWlAp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: ^1$ + formulaid: A + - macro: '{#IFTYPE}' + value: ^71$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlAp.' + item_prototypes: + - uuid: db129187106741d88fc14774a1a5652d + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: a9ca50960dd043038808f3572d1fb281 + name: 'Interface {#IFNAME}({#IFALIAS}): AP band' + type: DEPENDENT + key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApBand + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 9f5c294b30d24e5084e8953173bf886e + name: 'Interface {#IFNAME}({#IFALIAS}): SSID' + type: DEPENDENT + key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApSsid Service Set Identifier. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 6140d7fe8011400cb827339f8f6f9cdf + name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor' + type: DEPENDENT + key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: MIKROTIK-MIB + mtxrWlApNoiseFloor + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 45fc6875a91d47debb4e39d93e5b8186 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 644433b2a1fa4b38916e2ae4bf74c28d + name: 'CAPsMAN AP channel discovery' + type: DEPENDENT + key: mtxrWlCMChannel.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$IFNAME.WIFI.MATCHES}' + formulaid: A + - macro: '{#IFTYPE}' + value: ^1$ + formulaid: B + description: 'MIKROTIK-MIB::mtxrWlCMChannel.' + item_prototypes: + - uuid: 5dc0caa311304e6a96c620b10f52f267 + name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients' + type: DEPENDENT + key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMAuthClientCount Number of authentication clients. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 7df773f57c234d219f5a75e11844f5e0 + name: 'Interface {#IFNAME}({#IFALIAS}): AP channel' + type: DEPENDENT + key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMChannel + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: 0db356f16542489586aacdecb029f691 + name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients' + type: DEPENDENT + key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: e2212bb46d804d6687a2fe992f867b9d + name: 'Interface {#IFNAME}({#IFALIAS}): AP state' + type: DEPENDENT + key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: MIKROTIK-MIB + mtxrWlCMState Wireless interface state. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.wireless.walk + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e4aedbd5e0c64cf48831bf08192e19bf + expression: 'last(/Mikrotik by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running' + priority: WARNING + description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: net.if.wireless.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFNAME}' + - 1.3.6.1.4.1.14988.1.1.14.1.1.2 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 39f9ac305fe2497498916dc709b9a097 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 2048a885fd67433786f6c3f650962a71 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 32e41ced890a4b349a5167269450efa6 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 10806818bfa34f2c94ab9a42720e7e41 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e899752523044d2c830e9cd48ba2cb72 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d3fd9bb2202e441282a6008dbf27cc5b + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: af78d9ecefd445c5840bf09e1b3ef438 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 16c880544cb741fb90c5ba2823225bb0 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3fd63f1049924a5491b9080702bc5fdb + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: db74692dd86a428fba64e57751fce1ba + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 5fb27bdadc9848118bc64a720ff6dea0 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 564e8f3f288a40e9926b75b2711f45d1 + expression: | + change(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 25cc75fecfd1499ebc65ea434b98cb18 + expression: | + (avg(/Mikrotik by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Mikrotik by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Mikrotik by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Mikrotik by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 4c3aef072fcb47b98f0cdc3b651fae71 + expression: | + min(/Mikrotik by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Mikrotik by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Mikrotik by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Mikrotik by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 6c0e720cb0f24bf4a8cfbebb2759dde9 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Mikrotik by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Mikrotik by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Mikrotik by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Mikrotik by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Mikrotik by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Mikrotik by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6bb65981928d40378a95ee74aff82cc5 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: OR + conditions: + - macro: '{#STORAGE_TYPE}' + value: .+4$ + formulaid: A + - macro: '{#STORAGE_TYPE}' + value: .+hrStorageFixedDisk + formulaid: B + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: b602ff4381e04e50a9282fe6f9f5c834 + name: 'Disk-{#SNMPINDEX}: Space utilization' + type: CALCULATED + key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' + description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 64747345083e4b38b0e963ccd0b8271b + name: 'Disk-{#SNMPINDEX}: Total space' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in + units of hrStorageAllocationUnits. This object is + writable to allow remote configuration of the size of + the storage area in those cases where such an + operation makes sense and is possible on the + underlying system. For example, the amount of main + memory allocated to a buffer pool might be modified or + the amount of disk space allocated to virtual memory + might be modified. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 35034472b281453bbfbcf65b5d60dd7e + name: 'Disk-{#SNMPINDEX}: Used space' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: c866ac0197ee401ab0c5cc6ec0757985 + expression: | + last(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/Mikrotik by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Mikrotik by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: AVERAGE + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 9adb977fde7345d8950265a9127cde57 + expression: | + last(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and + ((last(/Mikrotik by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Mikrotik by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low' + event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)' + opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' + priority: WARNING + description: | + Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}. + Second condition should be one of the following: + - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}. + - The disk will be full in less than 24 hours. + manual_close: 'YES' + dependencies: + - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low' + expression: | + last(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and + ((last(/Mikrotik by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Mikrotik by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d) + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + graph_prototypes: + - uuid: 82acee070ff1461ba0cdff337184da97 + name: 'Disk-{#SNMPINDEX}: Disk space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Mikrotik by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'Mikrotik by SNMP' + key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FSNAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - '{#ALLOC_UNITS}' + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: mikrotik + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$IFNAME.LTEMODEM.MATCHES}' + value: ^lte + description: 'This macro is used in LTE modem discovery. It can be overridden on the host.' + - macro: '{$IFNAME.WIFI.MATCHES}' + value: WIFI + description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.' + - macro: '{$LTEMODEM.RSRP.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSRP minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSRQ.MIN.WARN}' + value: '-20' + description: 'The LTE modem RSRQ minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.RSSI.MIN.WARN}' + value: '-100' + description: 'The LTE modem RSSI minimum value for warning trigger expression.' + - macro: '{$LTEMODEM.SINR.MIN.WARN}' + value: '0' + description: 'The LTE modem SINR minimum value for warning trigger expression.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT:"CPU"}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN:"CPU"}' + value: '70' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + dashboards: + - uuid: 923cc21534e0400d8a8e325ebc199549 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Mikrotik by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: b020eb645cff47c0b91891a36652c087 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 0ab024c489794d1299d2992ad5b3e1e8 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 4197110252654153a2eee46de014a4c0 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: f63bc9f2c0d0427b9d1eccae7a1d612d + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 53e737a095a840df9abfcfd9c26007bf + expression: '(last(/Mikrotik by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Mikrotik by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Mikrotik by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Mikrotik by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'MikroTik: Host has been restarted' + event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'MikroTik: No SNMP data collection' + expression: 'max(/Mikrotik by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 42efab7c7fae46729b2ad410b0be57cc + name: 'Mikrotik: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Mikrotik by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.Memory]' diff --git a/MongoDB_cluster_by_Zabbix_agent_2.yaml b/MongoDB_cluster_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..c18ad68 --- /dev/null +++ b/MongoDB_cluster_by_Zabbix_agent_2.yaml @@ -0,0 +1,1373 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + host_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Databases + templates: + - uuid: d38b271797bd41f2ad8c79d83b9d8d9c + template: 'MongoDB cluster by Zabbix agent 2' + name: 'MongoDB cluster by Zabbix agent 2' + description: | + Get MongoDB metrics from plugin for the zabbix-agent2. + 1. Setup and configure zabbix-agent2 compiled with the MongoDB monitoring plugin. + 2. Set the {$MONGODB.CONNSTRING} such as or named session. + 3. Set the user name and password in host macros ({$MONGODB.USER}, {$MONGODB.PASSWORD}) if you want to override parameters from the Zabbix agent configuration file. + + All sharded Mongodb nodes (mongod) will be discovered with attached template "MongoDB node". + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420659-discussion-thread-for-official-zabbix-template-db-mongodb + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + items: + - uuid: 78db5504896649198605e140abb942be + name: 'Configserver heartbeat' + type: DEPENDENT + key: mongodb.config_server_heartbeat + delay: '0' + units: s + description: 'Difference between the latest optime of the CSRS primary that the mongos has seen and cluster time.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + if (typeof data.sharding === 'undefined') { + throw 'The metric is available for a sharded cluster only.'; + } + return (data["$clusterTime"].clusterTime.T - data.sharding.lastSeenConfigServerOpTime.ts.T); + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: configserver + - uuid: fccb23cdee01483cabe6ef14a532664b + name: 'Connections, active' + type: DEPENDENT + key: mongodb.connections.active + delay: '0' + description: | + The number of active client connections to the server. + Active client connections refers to client connections that currently have operations in progress. + Available starting in 4.0.7, 0 for older versions. + preprocessing: + - type: JSONPATH + parameters: + - $.connections.active + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 1f881cbd515d462eb5839fe4e1e21ee1 + name: 'Connections, available' + type: DEPENDENT + key: mongodb.connections.available + delay: '0' + description: '"The number of unused incoming connections available."' + preprocessing: + - type: JSONPATH + parameters: + - $.connections.available + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: eae86b6f98db49099259a466b78d1c59 + expression: 'max(/MongoDB cluster by Zabbix agent 2/mongodb.connections.available,5m)<{$MONGODB.CONNS.AVAILABLE.MIN.WARN}' + name: 'MongoDB cluster: Available connections is low' + event_name: 'MongoDB cluster: Available connections less then {$MONGODB.CONNS.AVAILABLE.MIN.WARN}' + priority: WARNING + description: | + Too few available connections. + Consider this value in combination with the value of connections current to understand the connection load on the database. + tags: + - tag: scope + value: capacity + - uuid: 087d1a405b7a456692a52b0d20c43eb3 + name: 'Connections, current' + type: DEPENDENT + key: mongodb.connections.current + delay: '0' + description: | + The number of incoming connections from clients to the database server. + This number includes the current shell session. + preprocessing: + - type: JSONPATH + parameters: + - $.connections.current + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 18ed07f0efb54f55970483d15613d320 + name: 'New connections, rate' + type: DEPENDENT + key: mongodb.connections.rate + delay: '0' + value_type: FLOAT + description: '"Rate of all incoming connections created to the server."' + preprocessing: + - type: JSONPATH + parameters: + - $.connections.totalCreated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 281e5a1a19dc402a992331252b27ee63 + name: 'Connection pool: available' + type: DEPENDENT + key: mongodb.connection_pool.available + delay: '0' + description: 'The total number of available outgoing connections from the current mongos instance to other members of the sharded cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalAvailable + master_item: + key: 'mongodb.connpool.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 58522550e8bc4f479681d961ba789b92 + name: 'Connection pool: client connections' + type: DEPENDENT + key: mongodb.connection_pool.client + delay: '0' + description: 'The number of active and stored outgoing synchronous connections from the current mongos instance to other members of the sharded cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.numClientConnections + master_item: + key: 'mongodb.connpool.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 9b9d601d2d5c4d8da5d97c2785d8e0fa + name: 'Connection pool: created, rate' + type: DEPENDENT + key: mongodb.connection_pool.created.rate + delay: '0' + value_type: FLOAT + description: 'The total number of outgoing connections created per second by the current mongos instance to other members of the sharded cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalCreated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.connpool.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 9394a15a25e342688335b7d83db25b2d + name: 'Connection pool: in use' + type: DEPENDENT + key: mongodb.connection_pool.in_use + delay: '0' + description: 'Reports the total number of outgoing connections from the current mongos instance to other members of the sharded cluster set that are currently in use.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalInUse + master_item: + key: 'mongodb.connpool.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 22c66363ffae4ae2b436a26b8ecca3ab + name: 'Connection pool: refreshing' + type: DEPENDENT + key: mongodb.connection_pool.refreshing + delay: '0' + description: 'Reports the total number of outgoing connections from the current mongos instance to other members of the sharded cluster that are currently being refreshed.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalRefreshing + master_item: + key: 'mongodb.connpool.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 55dbfe5d52c44954b9e5669a043f10b4 + name: 'Connection pool: scoped' + type: DEPENDENT + key: mongodb.connection_pool.scoped + delay: '0' + description: 'Number of active and stored outgoing scoped synchronous connections from the current mongos instance to other members of the sharded cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.numAScopedConnections + master_item: + key: 'mongodb.connpool.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: f34fcc3866b446748b7a8d11311edd82 + name: 'Get mongodb.connpool.stats' + key: 'mongodb.connpool.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns current info about connpool.stats.' + tags: + - tag: component + value: connections + - tag: component + value: raw + - uuid: 22ca0c06006b49009f25fcd829f1b5bf + name: 'Cursor: open pinned' + type: DEPENDENT + key: mongodb.cursor.open.pinned + delay: '0' + description: 'Number of pinned open cursors.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cursor.open.pinned + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cursors + - uuid: 45bfa997dab9498e8e3851de750e21a2 + name: 'Cursor: open total' + type: DEPENDENT + key: mongodb.cursor.open.total + delay: '0' + description: 'Number of cursors that MongoDB is maintaining for clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cursor.open.total + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cursors + triggers: + - uuid: 67db1f543818476ca0b07e2cc1709452 + expression: 'min(/MongoDB cluster by Zabbix agent 2/mongodb.cursor.open.total,5m)>{$MONGODB.CURSOR.OPEN.MAX.WARN}' + name: 'MongoDB cluster: Too many cursors opened by MongoDB for clients' + event_name: 'MongoDB cluster: Too many cursors opened by MongoDB for clients (over {$MONGODB.CURSOR.OPEN.MAX.WARN} in 5m)' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 5d3a3c724a6a45fb99a0af5330bf9cf2 + name: 'Cursor: timed out, rate' + type: DEPENDENT + key: mongodb.cursor.timed_out.rate + delay: '0' + value_type: FLOAT + description: 'Number of cursors that time out, per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cursor.timedOut + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cursors + triggers: + - uuid: 5ea8cf9c955940a6a580cd6f4bb2cc78 + expression: 'min(/MongoDB cluster by Zabbix agent 2/mongodb.cursor.timed_out.rate,5m)>{$MONGODB.CURSOR.TIMEOUT.MAX.WARN}' + name: 'MongoDB cluster: Too many cursors are timing out' + event_name: 'MongoDB cluster: Too many cursors are timing out (over {$MONGODB.CURSOR.TIMEOUT.MAX.WARN} per second in 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 110685e463e141ca800b2638e3532d51 + name: 'Jumbo chunks' + key: 'mongodb.jumbo_chunks.count["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + description: 'Total number of ''jumbo'' chunks in the mongo cluster.' + tags: + - tag: component + value: application + - uuid: fa28a98992e74cdf8c54b4faa01de89a + name: 'Last seen configserver' + type: DEPENDENT + key: mongodb.last_seen_config_server + delay: '0' + units: unixtime + description: 'The latest optime of the CSRS primary that the mongos has seen.' + preprocessing: + - type: JSONPATH + parameters: + - $.sharding.lastSeenConfigServerOpTime.ts.T + error_handler: CUSTOM_ERROR + error_handler_params: 'The metric is available for a sharded cluster only.' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: configserver + - uuid: df2423ff36e24357809c7a7211144898 + name: Architecture + type: DEPENDENT + key: mongodb.mem.bits + delay: '0' + units: bit + description: 'A number, either 64 or 32, that indicates whether the MongoDB instance is compiled for 64-bit or 32-bit architecture.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem.bits + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: application + - uuid: f6a06e0d7cf84cc1a40d8d2dcde7b01a + name: 'Memory: resident' + type: DEPENDENT + key: mongodb.mem.resident + delay: '0' + units: B + description: 'Amount of memory currently used by the database process.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem.resident + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: memory + - uuid: 2c5548ae9c614efb81e58a2e4ec3d3e4 + name: 'Memory: virtual' + type: DEPENDENT + key: mongodb.mem.virtual + delay: '0' + units: B + description: 'Amount of virtual memory used by the mongos process.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem.virtual + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: memory + - uuid: 16925e0ca40747d1818e512962d31a83 + name: 'Cursor: open no timeout' + type: DEPENDENT + key: mongodb.metrics.cursor.open.no_timeout + delay: '0' + description: 'Number of open cursors with the option DBQuery.Option.noTimeout set to prevent timeout after a period of inactivity.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cursor.open.noTimeout + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cursors + - uuid: 59481dcb9b5a487985297e2f41f72dd1 + name: 'Bytes in, rate' + type: DEPENDENT + key: mongodb.network.bytes_in.rate + delay: '0' + value_type: FLOAT + description: 'The total number of bytes that the server has received over network connections initiated by clients or other mongod/mongos instances per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.network.bytesIn + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: network + - uuid: 13cba18ba344440bba4371585fd8e4c0 + name: 'Bytes out, rate' + type: DEPENDENT + key: mongodb.network.bytes_out.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The total number of bytes that the server has sent over network connections initiated by clients or other mongod/mongos instances per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.network.bytesOut + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: network + - uuid: eb821875b59c4bf8bc98f9afec146e88 + name: 'Requests, rate' + type: DEPENDENT + key: mongodb.network.numRequests.rate + delay: '0' + value_type: FLOAT + units: '!Rps' + description: 'Number of distinct requests that the server has received per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.network.numRequests + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: network + - uuid: b98fb6d98b9a4282ba0b2d9770722035 + name: 'Operations: command' + type: DEPENDENT + key: mongodb.opcounters.command.rate + delay: '0' + value_type: FLOAT + description: | + The number of commands issued to the database per second. + Counts all commands except the write commands: insert, update, and delete. + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.command + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: f4e917e9cdd3439abbe6ea7b9a9034b7 + name: 'Operations: delete' + type: DEPENDENT + key: mongodb.opcounters.delete.rate + delay: '0' + value_type: FLOAT + description: 'The number of delete operations the mongos instance per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.delete + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 165d5a180ed541ba9a19916134962368 + name: 'Operations: getmore, rate' + type: DEPENDENT + key: mongodb.opcounters.getmore.rate + delay: '0' + value_type: FLOAT + description: | + The number of "getmore" operations the mongos per second. This counter can be high even if the query count is low. + Secondary nodes send getMore operations as part of the replication process. + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.getmore + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 021a00004efe434a9b2f316c0d25c175 + name: 'Operations: insert, rate' + type: DEPENDENT + key: mongodb.opcounters.insert.rate + delay: '0' + value_type: FLOAT + description: 'The number of insert operations received the mongos instance per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.insert + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 0866b3b6bc1748a98e8bfd9308152304 + name: 'Operations: query, rate' + type: DEPENDENT + key: mongodb.opcounters.query.rate + delay: '0' + value_type: FLOAT + description: 'The number of queries received the mongos instance per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.query + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 329e6d41de1c47dba8f3f9d287c93eda + name: 'Operations: update, rate' + type: DEPENDENT + key: mongodb.opcounters.update.rate + delay: '0' + value_type: FLOAT + description: 'The number of update operations the mongos instance per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.update + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: ff979eb9ba4a4420a753913df5431219 + name: Ping + key: 'mongodb.ping["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + delay: 30s + description: 'Test if a connection is alive or not.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + tags: + - tag: component + value: health + triggers: + - uuid: cd74289970204ca281c5bc7d5c695e95 + expression: 'last(/MongoDB cluster by Zabbix agent 2/mongodb.ping["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"])=0' + name: 'MongoDB cluster: Connection to mongos proxy is unavailable' + priority: HIGH + description: 'Connection to mongos proxy instance is currently unavailable.' + tags: + - tag: scope + value: availability + - uuid: b8c6dadff060447e9718b49fdc796d8d + name: 'Get server status' + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The mongos statistic' + tags: + - tag: component + value: raw + - uuid: e88da2ca6ccc4fdfa256fa51e050792d + name: Uptime + type: DEPENDENT + key: mongodb.uptime + delay: '0' + units: s + description: 'Number of seconds since the Mongos server start.' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: application + triggers: + - uuid: ee70d6da232a4068b574c9c147c622c9 + expression: 'nodata(/MongoDB cluster by Zabbix agent 2/mongodb.uptime,10m)=1' + name: 'MongoDB cluster: Failed to fetch info data' + event_name: 'MongoDB cluster: Failed to fetch info data (or no data for 10m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 10 minutes' + manual_close: 'YES' + dependencies: + - name: 'MongoDB cluster: Connection to mongos proxy is unavailable' + expression: 'last(/MongoDB cluster by Zabbix agent 2/mongodb.ping["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"])=0' + tags: + - tag: scope + value: notice + - uuid: 99ff438a7e3e4b0a8190b2ab9f41f076 + expression: 'last(/MongoDB cluster by Zabbix agent 2/mongodb.uptime)<10m' + name: 'MongoDB cluster: Mongos server has been restarted' + event_name: 'MongoDB cluster: Mongos server has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: dda1722d6e6b4189978fd44ace0f8f86 + name: 'Mongos version' + type: DEPENDENT + key: mongodb.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the Mongos server' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 921ee489887943838d69558f103ad646 + expression: 'last(/MongoDB cluster by Zabbix agent 2/mongodb.version,#1)<>last(/MongoDB cluster by Zabbix agent 2/mongodb.version,#2) and length(last(/MongoDB cluster by Zabbix agent 2/mongodb.version))>0' + name: 'MongoDB cluster: Version has changed' + event_name: 'MongoDB cluster: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'MongoDB cluster version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: eb57a506cc5640a79e6df51179321ba0 + name: 'Config servers discovery' + key: 'mongodb.cfg.discovery["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + delay: 30m + description: 'Discovery shared cluster config servers.' + host_prototypes: + - uuid: 809db5d8d32a45898e8401f288a42fac + host: '{#HOSTNAME}' + name: '{#HOSTNAME}' + group_links: + - group: + name: Databases + group_prototypes: + - name: 'MongoDB sharded cluster/{#REPLICASET}' + templates: + - name: 'MongoDB node by Zabbix agent 2' + macros: + - macro: '{$MONGODB.CONNSTRING}' + value: '{#MONGOD_URI}' + description: 'Connection string in the URI format (password is not used).' + - uuid: 61a19fbf4f9f4c2f9ad215b08d41e544 + name: 'Collection discovery' + key: 'mongodb.collections.discovery["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + delay: 30m + filter: + evaltype: AND + conditions: + - macro: '{#COLLECTION}' + value: '{$MONGODB.LLD.FILTER.COLLECTION.MATCHES}' + formulaid: A + - macro: '{#COLLECTION}' + value: '{$MONGODB.LLD.FILTER.COLLECTION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#DBNAME}' + value: '{$MONGODB.LLD.FILTER.DB.MATCHES}' + formulaid: C + - macro: '{#DBNAME}' + value: '{$MONGODB.LLD.FILTER.DB.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: | + Collect collections metrics. + Note, depending on the number of DBs and collections this discovery operation may be expensive. Use filters with macros {$MONGODB.LLD.FILTER.DB.MATCHES}, {$MONGODB.LLD.FILTER.DB.NOT_MATCHES}, {$MONGODB.LLD.FILTER.COLLECTION.MATCHES}, {$MONGODB.LLD.FILTER.COLLECTION.NOT_MATCHES}. + item_prototypes: + - uuid: 253af5ef7858482fbeaa0c06c033b47a + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Objects, avg size' + type: DEPENDENT + key: 'mongodb.collection.avg_obj_size["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'The size of the average object in the collection in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.avgObjSize + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: objects + - tag: database + value: '{#DBNAME}' + - uuid: 59465dc6e9384c7baf1a6239a6c66f0e + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Capped' + type: DEPENDENT + key: 'mongodb.collection.capped["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Whether or not the collection is capped.' + valuemap: + name: 'MongoDB flag' + preprocessing: + - type: JSONPATH + parameters: + - $.capped + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: application + - tag: database + value: '{#DBNAME}' + - uuid: 03b8eb71502a4805902f7a5856e7c7b6 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Objects, count' + type: DEPENDENT + key: 'mongodb.collection.count["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + description: 'Total number of objects in the collection.' + preprocessing: + - type: JSONPATH + parameters: + - $.count + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: objects + - tag: database + value: '{#DBNAME}' + - uuid: 2a78fa441bef4523bd0fee4934fc7b55 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Capped, max number' + type: DEPENDENT + key: 'mongodb.collection.max["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'Maximum number of documents in a capped collection.' + preprocessing: + - type: JSONPATH + parameters: + - $.max + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: application + - tag: database + value: '{#DBNAME}' + - uuid: 294985df777b42e0a56a229366bbac5d + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Capped, max size' + type: DEPENDENT + key: 'mongodb.collection.max_size["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + units: B + description: 'Maximum size of a capped collection in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxSize + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: 8da7cc960e8d42ccb3efe065fff5f0e9 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Indexes' + type: DEPENDENT + key: 'mongodb.collection.nindexes["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + description: 'Total number of indices on the collection.' + preprocessing: + - type: JSONPATH + parameters: + - $.nindexes + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: application + - tag: database + value: '{#DBNAME}' + - uuid: 191a21d9a1b94b238009e31433dbaa38 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Size' + type: DEPENDENT + key: 'mongodb.collection.size["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + units: B + description: 'The total size in bytes of the data in the collection plus the size of every indexes on the mongodb.collection.' + preprocessing: + - type: JSONPATH + parameters: + - $.size + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: aa964be0bc5c4318bc92c3192c269d8e + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Get collection stats {#DBNAME}.{#COLLECTION}' + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns a variety of storage statistics for a given collection.' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: ef82b9f814cd4917b3714e73d7ac87ac + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Storage size' + type: DEPENDENT + key: 'mongodb.collection.storage_size["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + units: B + description: 'Total storage space allocated to this collection for document storage.' + preprocessing: + - type: JSONPATH + parameters: + - $.storageSize + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: 25ece32c5f764461913f605ba3d7736a + name: 'Database discovery' + key: 'mongodb.db.discovery["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + delay: 30m + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$MONGODB.LLD.FILTER.DB.MATCHES}' + formulaid: A + - macro: '{#DBNAME}' + value: '{$MONGODB.LLD.FILTER.DB.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: | + Collect database metrics. + Note, depending on the number of DBs this discovery operation may be expensive. Use filters with macros {$MONGODB.LLD.FILTER.DB.MATCHES}, {$MONGODB.LLD.FILTER.DB.NOT_MATCHES}. + item_prototypes: + - uuid: 6dea9a371b94402aad9f8c6d7fcc5761 + name: 'MongoDB {#DBNAME}: Size, data' + type: DEPENDENT + key: 'mongodb.db.data_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total size of the data held in this database including the padding factor.' + preprocessing: + - type: JSONPATH + parameters: + - $.dataSize + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: 98c9e25c24b146aeaec4953913bb720a + name: 'MongoDB {#DBNAME}: Extents' + type: DEPENDENT + key: 'mongodb.db.extents["{#DBNAME}"]' + delay: '0' + description: 'Contains a count of the number of extents in the database across all collections.' + preprocessing: + - type: JSONPATH + parameters: + - $.numExtents + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: collections + - tag: database + value: '{#DBNAME}' + - uuid: cfb3598af7f14911965d548ea815cb33 + name: 'MongoDB {#DBNAME}: Size, file' + type: DEPENDENT + key: 'mongodb.db.file_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total size of the data held in this database including the padding factor (only available with the mmapv1 storage engine).' + preprocessing: + - type: JSONPATH + parameters: + - $.fileSize + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: 1716a51105f2415eb179a43022656e4a + name: 'MongoDB {#DBNAME}: Size, index' + type: DEPENDENT + key: 'mongodb.db.index_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total size of all indexes created on this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.indexSize + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: f28f2df7b1e64aea99b20ca8deda2a25 + name: 'MongoDB {#DBNAME}: Objects, count' + type: DEPENDENT + key: 'mongodb.db.objects["{#DBNAME}"]' + delay: '0' + description: 'Number of objects (documents) in the database across all collections.' + preprocessing: + - type: JSONPATH + parameters: + - $.objects + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: objects + - tag: database + value: '{#DBNAME}' + - uuid: ed3076f82f494b6e953a9a5a3199df06 + name: 'MongoDB {#DBNAME}: Objects, avg size' + type: DEPENDENT + key: 'mongodb.db.size["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'The average size of each document in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.avgObjSize + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: objects + - tag: database + value: '{#DBNAME}' + - uuid: 7fbc424bca06451d9ed1fe689ea81bf9 + name: 'MongoDB {#DBNAME}: Get db stats {#DBNAME}' + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns statistics reflecting the database system''s state.' + tags: + - tag: component + value: database + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: ae54fbae851b4b5a949611420fbc8ce0 + name: 'MongoDB {#DBNAME}: Size, storage' + type: DEPENDENT + key: 'mongodb.db.storage_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total amount of space allocated to collections in this database for document storage.' + preprocessing: + - type: JSONPATH + parameters: + - $.storageSize + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + graph_prototypes: + - uuid: 44e0e02d1e9a420b9dc917d8cf4bf983 + name: 'MongoDB {#DBNAME}: Disk usage' + graph_items: + - color: 199C0D + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: 'mongodb.db.index_size["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: 'mongodb.db.storage_size["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: 'mongodb.db.file_size["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: 'mongodb.db.data_size["{#DBNAME}"]' + - uuid: a8bcea1509974c0f9d0051591e92cd5a + name: 'Shards discovery' + key: 'mongodb.sh.discovery["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + delay: 30m + description: 'Discovery shared cluster hosts.' + host_prototypes: + - uuid: 3fcd3244b1234186bda9a35c8f61c850 + host: '{#HOSTNAME}' + name: '{#HOSTNAME}' + group_links: + - group: + name: Databases + group_prototypes: + - name: 'MongoDB sharded cluster/{#ID}' + templates: + - name: 'MongoDB node by Zabbix agent 2' + macros: + - macro: '{$MONGODB.CONNSTRING}' + value: '{#MONGOD_URI}' + description: 'Connection string in the URI format (password is not used).' + tags: + - tag: class + value: database + - tag: target + value: mongodb-cluster + macros: + - macro: '{$MONGODB.CONNS.AVAILABLE.MIN.WARN}' + value: '1000' + description: 'Minimum number of available connections' + - macro: '{$MONGODB.CONNSTRING}' + value: 'tcp://localhost:27017' + description: 'Connection string in the URI format (password is not used). This param overwrites a value configured in the "Server" option of the configuration file (if it''s set), otherwise, the plugin''s default value is used: "tcp://localhost:27017"' + - macro: '{$MONGODB.CURSOR.OPEN.MAX.WARN}' + value: '10000' + description: 'Maximum number of open cursors' + - macro: '{$MONGODB.CURSOR.TIMEOUT.MAX.WARN}' + value: '1' + description: 'Maximum number of cursors timing out per second' + - macro: '{$MONGODB.LLD.FILTER.COLLECTION.MATCHES}' + value: '.*' + description: 'Filter of discoverable collections' + - macro: '{$MONGODB.LLD.FILTER.COLLECTION.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered collections' + - macro: '{$MONGODB.LLD.FILTER.DB.MATCHES}' + value: '.*' + description: 'Filter of discoverable databases' + - macro: '{$MONGODB.LLD.FILTER.DB.NOT_MATCHES}' + value: (admin|config|local) + description: 'Filter to exclude discovered databases' + - macro: '{$MONGODB.PASSWORD}' + description: 'MongoDB user password' + - macro: '{$MONGODB.USER}' + description: 'MongoDB username' + dashboards: + - uuid: b850d8e640bc4ce58a4aa4a2967c6ecf + name: 'Cluster overview' + pages: + - name: General + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB cluster by Zabbix agent 2' + name: 'MongoDB cluster: Connection pool' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB cluster by Zabbix agent 2' + name: 'MongoDB cluster: Connections' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB cluster by Zabbix agent 2' + name: 'MongoDB cluster: Cursors' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB cluster by Zabbix agent 2' + name: 'MongoDB cluster: Network' + - type: STRING + name: reference + value: AAAAD + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB cluster by Zabbix agent 2' + name: 'MongoDB cluster: Operations rate' + - type: STRING + name: reference + value: AAAAE + - name: Databases + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MongoDB cluster by Zabbix agent 2' + name: 'MongoDB {#DBNAME}: Disk usage' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: 2014769595e34d4bb18dbcf4d9eaf112 + name: 'MongoDB flag' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: 3cedce4712fa4a3eba63ccd7a790ecf6 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 311d33ada96e4910a350e62abc6d5321 + name: 'MongoDB cluster: Connection pool' + graph_items: + - color: 199C0D + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.connection_pool.available + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.connection_pool.refreshing + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.connection_pool.in_use + - sortorder: '3' + color: F7941D + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.connection_pool.scoped + - sortorder: '4' + color: FC6EA3 + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.connection_pool.client + - uuid: 71a5a2d563d64bceacd564fe25b4d49e + name: 'MongoDB cluster: Connections' + graph_items: + - color: 199C0D + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.connections.available + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.connections.active + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.connections.current + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + yaxisside: RIGHT + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.connections.rate + - uuid: b4277ddaf3c5486cacba0f9b7208c5b2 + name: 'MongoDB cluster: Cursors' + graph_items: + - color: 199C0D + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.cursor.open.total + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.cursor.open.pinned + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.metrics.cursor.open.no_timeout + - uuid: d612246739784b9b9403dee6024493ce + name: 'MongoDB cluster: Network' + graph_items: + - color: 199C0D + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.network.bytes_out.rate + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.network.bytes_in.rate + - uuid: 4228deefccae4cd2959b183ba3e36295 + name: 'MongoDB cluster: Operations rate' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.opcounters.query.rate + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.opcounters.insert.rate + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.opcounters.getmore.rate + - sortorder: '3' + drawtype: BOLD_LINE + color: F7941D + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.opcounters.update.rate + - sortorder: '4' + drawtype: BOLD_LINE + color: FC6EA3 + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.opcounters.delete.rate + - sortorder: '5' + drawtype: BOLD_LINE + color: 6C59DC + item: + host: 'MongoDB cluster by Zabbix agent 2' + key: mongodb.opcounters.command.rate diff --git a/MongoDB_node_by_Zabbix_agent_2.yaml b/MongoDB_node_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..6ada879 --- /dev/null +++ b/MongoDB_node_by_Zabbix_agent_2.yaml @@ -0,0 +1,3191 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 81aa8c5ab5594f77a2b26fb7f5094048 + template: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB node by Zabbix agent 2' + description: | + Get MongoDB metrics from plugin for the zabbix-agent2. + 1. Setup and configure zabbix-agent2 compiled with the MongoDB monitoring plugin. + 2. Set the {$MONGODB.CONNSTRING} such as or named session. + 3. Set the user name and password in host macros ({$MONGODB.USER}, {$MONGODB.PASSWORD}) if you want to override parameters from the Zabbix agent configuration file. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/420659-discussion-thread-for-official-zabbix-template-db-mongodb + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Databases + items: + - uuid: bfd58d9efaf54e038f96458f68fd48af + name: 'Document: deleted, rate' + type: DEPENDENT + key: mongod.document.deleted.rate + delay: '0' + value_type: FLOAT + description: 'Number of documents deleted per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.document.deleted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: documents + - uuid: 5ecc078aeda04e3ca34ed42d966cdf40 + name: 'Document: inserted, rate' + type: DEPENDENT + key: mongod.document.inserted.rate + delay: '0' + value_type: FLOAT + description: 'Number of documents inserted per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.document.inserted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: documents + - uuid: 56fc9870503645069a9d937ac21ab7c2 + name: 'Document: returned, rate' + type: DEPENDENT + key: mongod.document.returned.rate + delay: '0' + value_type: FLOAT + description: 'Number of documents returned by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.document.returned + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: documents + - uuid: d21a95f1862b4c17b5a4ed83a67ffb1b + name: 'Document: updated, rate' + type: DEPENDENT + key: mongod.document.updated.rate + delay: '0' + value_type: FLOAT + description: 'Number of documents updated per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.document.updated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: documents + - uuid: d5ec0427c5ca49119f6e94211b0297bf + name: 'Active clients: readers' + type: DEPENDENT + key: mongodb.active_clients.readers + delay: '0' + description: 'The number of the active client connections performing read operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.globalLock.activeClients.readers + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: clients + - uuid: 1c2dc0b60eb44d259e02accf2531b389 + name: 'Active clients: total' + type: DEPENDENT + key: mongodb.active_clients.total + delay: '0' + description: 'The total number of internal client connections to the database including system threads as well as queued readers and writers.' + preprocessing: + - type: JSONPATH + parameters: + - $.globalLock.activeClients.total + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: clients + - uuid: 9c5512c83e1844c5b4fdb675336edbf6 + name: 'Active clients: writers' + type: DEPENDENT + key: mongodb.active_clients.writers + delay: '0' + description: 'The number of active client connections performing write operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.globalLock.activeClients.writers + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: clients + - uuid: 5e6fa5d1c9fc48ada6c0bc5c8d1d3ec4 + name: 'Asserts: message, rate' + type: DEPENDENT + key: mongodb.asserts.msg.rate + delay: '0' + value_type: FLOAT + description: | + The number of message assertions raised per second. + Check the log file for more information about these messages. + preprocessing: + - type: JSONPATH + parameters: + - $.asserts.msg + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: asserts + - uuid: 32d5177badac49eda8ce1f47c851ebf2 + name: 'Asserts: regular, rate' + type: DEPENDENT + key: mongodb.asserts.regular.rate + delay: '0' + value_type: FLOAT + description: | + The number of regular assertions raised per second. + Check the log file for more information about these messages. + preprocessing: + - type: JSONPATH + parameters: + - $.asserts.regular + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: asserts + - uuid: 67f2ef15386a47b6b88fc95dd7fe1be6 + name: 'Asserts: rollovers, rate' + type: DEPENDENT + key: mongodb.asserts.rollovers.rate + delay: '0' + value_type: FLOAT + description: | + Number of times that the rollover counters roll over per second. + The counters rollover to zero every 2^30 assertions. + preprocessing: + - type: JSONPATH + parameters: + - $.asserts.rollovers + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: asserts + - uuid: a7dfd56310d44d7dac1f3c02fa5fbc79 + name: 'Asserts: user, rate' + type: DEPENDENT + key: mongodb.asserts.user.rate + delay: '0' + value_type: FLOAT + description: | + The number of "user asserts" that have occurred per second. + These are errors that user may generate, such as out of disk space or duplicate key. + preprocessing: + - type: JSONPATH + parameters: + - $.asserts.user + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: asserts + - uuid: 41638aa2b3374e56ad00ef9113e1ea61 + name: 'Asserts: warning, rate' + type: DEPENDENT + key: mongodb.asserts.warning.rate + delay: '0' + value_type: FLOAT + description: 'The number of warnings raised per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.asserts.warning + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: asserts + - uuid: 46f0a53612de4448ab8e98098375656b + name: 'Get collections usage stats' + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns usage statistics for each collection.' + tags: + - tag: component + value: collections + - tag: component + value: raw + - uuid: 6ce4b63c962646ef91e4a705a42f36de + name: 'Connections, active' + type: DEPENDENT + key: mongodb.connections.active + delay: '0' + description: | + The number of active client connections to the server. + Active client connections refers to client connections that currently have operations in progress. + Available starting in 4.0.7, 0 for older versions. + preprocessing: + - type: JSONPATH + parameters: + - $.connections.active + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 3b53fa8cf9cb4d1a9ff364cd5d8ae724 + name: 'Connections, available' + type: DEPENDENT + key: mongodb.connections.available + delay: '0' + description: 'The number of unused incoming connections available.' + preprocessing: + - type: JSONPATH + parameters: + - $.connections.available + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: c4d86707cd124d9db195ca6afd636e71 + name: 'Connections, current' + type: DEPENDENT + key: mongodb.connections.current + delay: '0' + description: | + The number of incoming connections from clients to the database server. + This number includes the current shell session. + preprocessing: + - type: JSONPATH + parameters: + - $.connections.current + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 37fd836b53fa4db88aeb0faeeccc2856 + name: 'New connections, rate' + type: DEPENDENT + key: mongodb.connections.rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'Rate of all incoming connections created to the server.' + preprocessing: + - type: JSONPATH + parameters: + - $.connections.totalCreated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 0f04a5b3b0e5415185e01ecf75f426ec + name: 'Current queue: readers' + type: DEPENDENT + key: mongodb.current_queue.readers + delay: '0' + description: | + The number of operations that are currently queued and waiting for the read lock. + A consistently small read-queue, particularly of shorter operations, should cause no concern. + preprocessing: + - type: JSONPATH + parameters: + - $.globalLock.currentQueue.readers + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: global-lock + - uuid: 47ecaffb9638429eb308572b7d7beb5a + name: 'Current queue: total' + type: DEPENDENT + key: mongodb.current_queue.total + delay: '0' + description: 'The total number of operations queued waiting for the lock.' + preprocessing: + - type: JSONPATH + parameters: + - $.globalLock.currentQueue.total + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: global-lock + - uuid: e68ff1592a5648fc8b5475054c327ac6 + name: 'Current queue: writers' + type: DEPENDENT + key: mongodb.current_queue.writers + delay: '0' + description: | + The number of operations that are currently queued and waiting for the write lock. + A consistently small write-queue, particularly of shorter operations, is no cause for concern. + preprocessing: + - type: JSONPATH + parameters: + - $.globalLock.currentQueue.writers + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: global-lock + - uuid: 1d2c068feba240d6b934b65249d1b5ea + name: 'Cursor: open pinned' + type: DEPENDENT + key: mongodb.cursor.open.pinned + delay: '0' + description: 'Number of pinned open cursors.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cursor.open.pinned + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cursors + - uuid: f23bf716eced4ba5948b06c24c780904 + name: 'Cursor: open total' + type: DEPENDENT + key: mongodb.cursor.open.total + delay: '0' + description: 'Number of cursors that MongoDB is maintaining for clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cursor.open.total + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cursors + triggers: + - uuid: ed4a0c66c76d4ca699d0f2188cc8e71f + expression: 'min(/MongoDB node by Zabbix agent 2/mongodb.cursor.open.total,5m)>{$MONGODB.CURSOR.OPEN.MAX.WARN}' + name: 'MongoDB node: Too many cursors opened by MongoDB for clients' + event_name: 'MongoDB node: Too many cursors opened by MongoDB for clients (over {$MONGODB.CURSOR.OPEN.MAX.WARN} in 5m)' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: b30b4c7b6d88467bbde22db411660d6b + name: 'Cursor: timed out, rate' + type: DEPENDENT + key: mongodb.cursor.timed_out.rate + delay: '0' + value_type: FLOAT + description: 'Number of cursors that time out, per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cursor.timedOut + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cursors + triggers: + - uuid: 41d37791111b461d94da779e4b2c7e46 + expression: 'min(/MongoDB node by Zabbix agent 2/mongodb.cursor.timed_out.rate,5m)>{$MONGODB.CURSOR.TIMEOUT.MAX.WARN}' + name: 'MongoDB node: Too many cursors are timing out' + event_name: 'MongoDB node: Too many cursors are timing out (over {$MONGODB.CURSOR.TIMEOUT.MAX.WARN} per second in 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 4d0b20f4eeca4418bb08e7e2905cc68c + name: Architecture + type: DEPENDENT + key: mongodb.mem.bits + delay: '0' + units: bit + description: 'A number, either 64 or 32, that indicates whether the MongoDB instance is compiled for 64-bit or 32-bit architecture.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem.bits + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: application + - uuid: c88392536a334f9a9c907be28090424c + name: 'Memory: mapped' + type: DEPENDENT + key: mongodb.mem.mapped + delay: '0' + units: B + description: 'Amount of mapped memory by the database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem.mapped + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: memory + - uuid: 7a10ad84604246679104111e83fa762e + name: 'Memory: mapped with journal' + type: DEPENDENT + key: mongodb.mem.mapped_with_journal + delay: '0' + units: B + description: 'The amount of mapped memory, including the memory used for journaling.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem.mappedWithJournal + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: memory + - uuid: 2248b869cfca42bd95140451c0974f8c + name: 'Memory: resident' + type: DEPENDENT + key: mongodb.mem.resident + delay: '0' + units: B + description: 'Amount of memory currently used by the database process.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem.resident + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: memory + - uuid: 561ea7508e44443cb692b7dfe8ed3bdc + name: 'Memory: virtual' + type: DEPENDENT + key: mongodb.mem.virtual + delay: '0' + units: B + description: 'Amount of virtual memory used by the mongod process.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem.virtual + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: memory + - uuid: 9c79163da0b44e39a704969ab1d6280b + name: 'Cursor: open no timeout' + type: DEPENDENT + key: mongodb.metrics.cursor.open.no_timeout + delay: '0' + description: 'Number of open cursors with the option DBQuery.Option.noTimeout set to prevent timeout after a period of inactivity.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.cursor.open.noTimeout + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cursors + - uuid: ba0502f80a044670993bdb63587cd282 + name: 'Bytes in, rate' + type: DEPENDENT + key: mongodb.network.bytes_in.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The total number of bytes that the server has received over network connections initiated by clients or other mongod/mongos instances per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.network.bytesIn + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: network + - uuid: 0545114b39a649ef9a4b75da500031fb + name: 'Bytes out, rate' + type: DEPENDENT + key: mongodb.network.bytes_out.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The total number of bytes that the server has sent over network connections initiated by clients or other mongod/mongos instances per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.network.bytesOut + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: network + - uuid: 73aba89f9012437eb3ed843ccbe63c06 + name: 'Requests, rate' + type: DEPENDENT + key: mongodb.network.numRequests.rate + delay: '0' + value_type: FLOAT + units: '!Rps' + description: 'Number of distinct requests that the server has received per second' + preprocessing: + - type: JSONPATH + parameters: + - $.network.numRequests + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: network + - uuid: 532a1f4a64624434986f54b9ac2d2e3a + name: 'Operations: command, rate' + type: DEPENDENT + key: mongodb.opcounters.command.rate + delay: '0' + value_type: FLOAT + description: | + The number of commands issued to the database the mongod instance per second. + Counts all commands except the write commands: insert, update, and delete. + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.command + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 540f30705ced49da89a16f80828e8775 + name: 'Operations: delete, rate' + type: DEPENDENT + key: mongodb.opcounters.delete.rate + delay: '0' + value_type: FLOAT + description: 'The number of delete operations the mongod instance per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.delete + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 229345df70c240b5ab113b358fb738d9 + name: 'Operations: getmore, rate' + type: DEPENDENT + key: mongodb.opcounters.getmore.rate + delay: '0' + value_type: FLOAT + description: | + The number of "getmore" operations since the mongod instance per second. This counter can be high even if the query count is low. + Secondary nodes send getMore operations as part of the replication process. + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.getmore + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 4236ad60fcef48f793ac6da4cccdb029 + name: 'Operations: insert, rate' + type: DEPENDENT + key: mongodb.opcounters.insert.rate + delay: '0' + value_type: FLOAT + description: 'The number of insert operations received since the mongod instance per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.insert + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: b0f7def2c62047bba0db77d18f1df920 + name: 'Operations: query, rate' + type: DEPENDENT + key: mongodb.opcounters.query.rate + delay: '0' + value_type: FLOAT + description: 'The number of queries received the mongod instance per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.query + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 019ed179e4e1407db799e01920280e02 + name: 'Operations: update, rate' + type: DEPENDENT + key: mongodb.opcounters.update.rate + delay: '0' + value_type: FLOAT + description: 'The number of update operations the mongod instance per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.opcounters.update + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 8e7406e64edd4fe5ba87d4018011c958 + name: 'Get oplog stats' + key: 'mongodb.oplog.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns status of the replica set, using data polled from the oplog.' + tags: + - tag: component + value: oplog + - tag: component + value: replicaset + - uuid: 350da28ce7ab42f9b96728ec730d4bd6 + name: Ping + key: 'mongodb.ping["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + delay: 30s + description: 'Test if a connection is alive or not.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + tags: + - tag: component + value: health + triggers: + - uuid: c4ab9bfdd6d14634870f8ebb44081655 + expression: 'last(/MongoDB node by Zabbix agent 2/mongodb.ping["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"])=0' + name: 'MongoDB node: Connection to MongoDB is unavailable' + priority: HIGH + description: 'Connection to MongoDB instance is currently unavailable.' + tags: + - tag: scope + value: availability + - uuid: 3b448eff509240faba344f7b325f3e28 + name: 'Get Replica Set status' + key: 'mongodb.rs.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the replica set status from the point of view of the member where the method is run.' + tags: + - tag: component + value: raw + - tag: component + value: replicaset + - uuid: fb0cc7d44559406cada9d90a51bc999c + name: 'Get server status' + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns a database''s state.' + tags: + - tag: component + value: raw + - uuid: 2d1bf92792014ed8a3f8d8b13907fc7d + name: Uptime + type: DEPENDENT + key: mongodb.uptime + delay: '0' + value_type: FLOAT + units: s + description: 'Number of seconds that the mongod process has been active.' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 166444342def4adc954aa35f3dc22dba + expression: 'nodata(/MongoDB node by Zabbix agent 2/mongodb.uptime,10m)=1' + name: 'MongoDB node: Failed to fetch info data' + event_name: 'MongoDB node: Failed to fetch info data (or no data for 10m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 10 minutes' + manual_close: 'YES' + dependencies: + - name: 'MongoDB node: Connection to MongoDB is unavailable' + expression: 'last(/MongoDB node by Zabbix agent 2/mongodb.ping["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"])=0' + tags: + - tag: scope + value: availability + - uuid: 992590e47a7f42dda0e074c2f7a3e5ba + expression: 'last(/MongoDB node by Zabbix agent 2/mongodb.uptime)<10m' + name: 'MongoDB node: mongod process has been restarted' + event_name: 'MongoDB node: mongod process has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c5679875dc254ddd833ee40ef4a2b3cf + name: 'MongoDB version' + key: 'mongodb.version["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + delay: 15m + value_type: CHAR + trends: '0' + description: 'Version of the MongoDB server.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: application + triggers: + - uuid: 0856e13b7e7644c5b353fcfa577acb51 + expression: 'last(/MongoDB node by Zabbix agent 2/mongodb.version["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"],#1)<>last(/MongoDB node by Zabbix agent 2/mongodb.version["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"],#2) and length(last(/MongoDB node by Zabbix agent 2/mongodb.version["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]))>0' + name: 'MongoDB node: Version has changed' + event_name: 'MongoDB node: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'MongoDB version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: a6398a8ae4fe4891a03bb6041bf71f53 + name: 'Collection discovery' + key: 'mongodb.collections.discovery["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + delay: 30m + filter: + evaltype: AND + conditions: + - macro: '{#COLLECTION}' + value: '{$MONGODB.LLD.FILTER.COLLECTION.MATCHES}' + formulaid: A + - macro: '{#COLLECTION}' + value: '{$MONGODB.LLD.FILTER.COLLECTION.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#DBNAME}' + value: '{$MONGODB.LLD.FILTER.DB.MATCHES}' + formulaid: C + - macro: '{#DBNAME}' + value: '{$MONGODB.LLD.FILTER.DB.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: | + Collect collections metrics. + Note, depending on the number of DBs and collections this discovery operation may be expensive. Use filters with macros {$MONGODB.LLD.FILTER.DB.MATCHES}, {$MONGODB.LLD.FILTER.DB.NOT_MATCHES}, {$MONGODB.LLD.FILTER.COLLECTION.MATCHES}, {$MONGODB.LLD.FILTER.COLLECTION.NOT_MATCHES}. + item_prototypes: + - uuid: fbcfeba93bce4f3fa965176b9b3208b0 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Objects, avg size' + type: DEPENDENT + key: 'mongodb.collection.avg_obj_size["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'The size of the average object in the collection in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.avgObjSize + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: objects + - tag: database + value: '{#DBNAME}' + - uuid: ee5d3cefe6584900b400a4f598c84c1b + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Capped' + type: DEPENDENT + key: 'mongodb.collection.capped["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + description: 'Whether or not the collection is capped.' + valuemap: + name: 'MongoDB flag' + preprocessing: + - type: JSONPATH + parameters: + - $.capped + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: application + - tag: database + value: '{#DBNAME}' + - uuid: 5fc5b90792054b09a651b5d41328ca56 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Objects, count' + type: DEPENDENT + key: 'mongodb.collection.count["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + description: 'Total number of objects in the collection.' + preprocessing: + - type: JSONPATH + parameters: + - $.count + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: objects + - tag: database + value: '{#DBNAME}' + - uuid: 0ab52dbdcb424d759f6f717d8197cb30 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Capped: max number' + type: DEPENDENT + key: 'mongodb.collection.max_number["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'Maximum number of documents that may be present in a capped collection.' + preprocessing: + - type: JSONPATH + parameters: + - $.max + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: application + - tag: database + value: '{#DBNAME}' + - uuid: 8c0fe89cfa9f40e3bb04c92c417757df + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Capped: max size' + type: DEPENDENT + key: 'mongodb.collection.max_size["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + units: B + description: 'Maximum size of a capped collection in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxSize + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: b8ebe075b01248179d93c5d174286d2f + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Indexes' + type: DEPENDENT + key: 'mongodb.collection.nindexes["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + description: 'Total number of indices on the collection.' + preprocessing: + - type: JSONPATH + parameters: + - $.nindexes + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: application + - tag: database + value: '{#DBNAME}' + - uuid: a4d05a4ee48b4ce2aa4fbebd240b8c4c + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: commands, ms/s' + type: DEPENDENT + key: 'mongodb.collection.ops.commands.ms["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) the mongod has spent to operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].commands.time' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: b6d89c096fec4194bbe834e026f33178 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: commands, rate' + type: DEPENDENT + key: 'mongodb.collection.ops.commands.rate["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'The number of operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].commands.count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 6375b055efe84cdaa0a42c4b9981dde7 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: getmore, ms/s' + type: DEPENDENT + key: 'mongodb.collection.ops.getmore.ms["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) the mongod has spent to operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].getmore.time' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 760a0a70a2674ad7acd9d551865693ef + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: getmore, rate' + type: DEPENDENT + key: 'mongodb.collection.ops.getmore.rate["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'The number of operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].getmore.count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 812f76c720fe47ba9fd8764c349c4a36 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: insert, ms/s' + type: DEPENDENT + key: 'mongodb.collection.ops.insert.ms["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) the mongod has spent to operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].insert.time' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: c824a6a997ef4308b47cdc4118799f33 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: insert, rate' + type: DEPENDENT + key: 'mongodb.collection.ops.insert.rate["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'The number of operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].insert.count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 77de05da93b34432a7c2442fc01ca624 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: queries, ms/s' + type: DEPENDENT + key: 'mongodb.collection.ops.queries.ms["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) the mongod has spent to operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].queries.time' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 41b1f661ceab494f81e7a4b943a07020 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: queries, rate' + type: DEPENDENT + key: 'mongodb.collection.ops.queries.rate["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'The number of operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].queries.count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: a46f2c1c973d4eef8d9a7b1150702c74 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: remove, ms/s' + type: DEPENDENT + key: 'mongodb.collection.ops.remove.ms["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) the mongod has spent to operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].remove.time' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 89b74a8511b84f4bb8cab94fc5471632 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: remove, rate' + type: DEPENDENT + key: 'mongodb.collection.ops.remove.rate["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'The number of operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].remove.count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 67eaf64e851a45afbd69303ad0256077 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: total, ms/s' + type: DEPENDENT + key: 'mongodb.collection.ops.total.ms["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) the mongod has spent to operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].total.time' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 1ca4ae9dcf494efdbf85d635d49d4de8 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: total, rate' + type: DEPENDENT + key: 'mongodb.collection.ops.total.rate["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'The number of operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].total.count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 89b6f13894d64bdcbe0d0ec41568051a + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: update, ms/s' + type: DEPENDENT + key: 'mongodb.collection.ops.update.ms["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) the mongod has spent to operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].update.time' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 8d75aa686d0d4f3f93089b8b089f1d3c + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations: update, rate' + type: DEPENDENT + key: 'mongodb.collection.ops.update.rate["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'The number of operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].update.count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 4d575525f749436ea4ea9098c3b164ba + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Read lock, ms/s' + type: DEPENDENT + key: 'mongodb.collection.read_lock.ms["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) the mongod has spent to operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].readLock.time' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: 9d2d62a252054e428d9b8863a2128ad8 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Read lock, rate' + type: DEPENDENT + key: 'mongodb.collection.read_lock.rate["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'The number of operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].readLock.count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: e5e471e100834da5a2e9dddaaa453227 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Size' + type: DEPENDENT + key: 'mongodb.collection.size["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + units: B + description: 'The total size in bytes of the data in the collection plus the size of every indexes on the mongodb.collection.' + preprocessing: + - type: JSONPATH + parameters: + - $.size + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: d43709c548b84ea9b2c3c1b159bf28a3 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Get collection stats {#DBNAME}.{#COLLECTION}' + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns a variety of storage statistics for a given collection.' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: a2f095952fa44ed3a199b098c5fbee7a + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Storage size' + type: DEPENDENT + key: 'mongodb.collection.storage_size["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + units: B + description: 'Total storage space allocated to this collection for document storage.' + preprocessing: + - type: JSONPATH + parameters: + - $.storageSize + master_item: + key: 'mongodb.collection.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}","{#COLLECTION}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: a4c46912b5e643be8565f2b0d32c62a9 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Write lock, ms/s' + type: DEPENDENT + key: 'mongodb.collection.write_lock.ms["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) the mongod has spent to operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].writeLock.time' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + - uuid: ef83d379681241eaadd8be8de755a2bd + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Write lock, rate' + type: DEPENDENT + key: 'mongodb.collection.write_lock.rate["{#DBNAME}","{#COLLECTION}"]' + delay: '0' + value_type: FLOAT + description: 'The number of operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.totals["{#DBNAME}.{#COLLECTION}"].writeLock.count' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: collection + value: '{#COLLECTION}' + - tag: component + value: operations + - tag: database + value: '{#DBNAME}' + graph_prototypes: + - uuid: 76e921eae63a49b99102d880d5844a46 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Locks' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.read_lock.rate["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.write_lock.rate["{#DBNAME}","{#COLLECTION}"]' + - uuid: ab97504abcc844d5a408d4b7cf85e5a5 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Locks time' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.read_lock.ms["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.write_lock.ms["{#DBNAME}","{#COLLECTION}"]' + - uuid: dcfc8fcc0b484c8baea14525aa212dc2 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.queries.rate["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.getmore.rate["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.insert.rate["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '3' + color: F7941D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.update.rate["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.remove.rate["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.commands.rate["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '6' + drawtype: BOLD_LINE + color: C7A72D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.total.rate["{#DBNAME}","{#COLLECTION}"]' + - uuid: 554ac3ac477c47cfbaaba3d6419109f0 + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations time' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.queries.ms["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.getmore.ms["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.insert.ms["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '3' + color: F7941D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.update.ms["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.remove.ms["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.commands.ms["{#DBNAME}","{#COLLECTION}"]' + - sortorder: '6' + drawtype: BOLD_LINE + color: C7A72D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.collection.ops.total.ms["{#DBNAME}","{#COLLECTION}"]' + - uuid: a2a57b40d12944ae8ee21c166706b132 + name: 'Database discovery' + key: 'mongodb.db.discovery["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + delay: 30m + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$MONGODB.LLD.FILTER.DB.MATCHES}' + formulaid: A + - macro: '{#DBNAME}' + value: '{$MONGODB.LLD.FILTER.DB.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: | + Collect database metrics. + Note, depending on the number of DBs this discovery operation may be expensive. Use filters with macros {$MONGODB.LLD.FILTER.DB.MATCHES}, {$MONGODB.LLD.FILTER.DB.NOT_MATCHES}. + item_prototypes: + - uuid: cbb85c1a212a49a1bbdd9336f4a8fe68 + name: 'MongoDB {#DBNAME}: Collections' + type: DEPENDENT + key: 'mongodb.db.collections["{#DBNAME}"]' + delay: '0' + description: 'Contains a count of the number of collections in that database.' + preprocessing: + - type: JSONPATH + parameters: + - $.collections + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: collections + - tag: database + value: '{#DBNAME}' + - uuid: a9d502096d664f6da44a6ab82f8b7d36 + name: 'MongoDB {#DBNAME}: Size, data' + type: DEPENDENT + key: 'mongodb.db.data_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total size of the data held in this database including the padding factor.' + preprocessing: + - type: JSONPATH + parameters: + - $.dataSize + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: c5f4ae6a260e4c10aae0d51441fcbbf7 + name: 'MongoDB {#DBNAME}: Extents' + type: DEPENDENT + key: 'mongodb.db.extents["{#DBNAME}"]' + delay: '0' + description: 'Contains a count of the number of extents in the database across all collections.' + preprocessing: + - type: JSONPATH + parameters: + - $.numExtents + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: collections + - tag: database + value: '{#DBNAME}' + - uuid: cecffb75221440ac957fda5d676d7714 + name: 'MongoDB {#DBNAME}: Size, file' + type: DEPENDENT + key: 'mongodb.db.file_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total size of the data held in this database including the padding factor (only available with the mmapv1 storage engine).' + preprocessing: + - type: JSONPATH + parameters: + - $.fileSize + error_handler: DISCARD_VALUE + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: 9567515baf7b46a0a685717839f4a48f + name: 'MongoDB {#DBNAME}: Size, index' + type: DEPENDENT + key: 'mongodb.db.index_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total size of all indexes created on this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.indexSize + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + - uuid: cd5ecd2eafc640319aa2f049db2cf582 + name: 'MongoDB {#DBNAME}: Objects, count' + type: DEPENDENT + key: 'mongodb.db.objects["{#DBNAME}"]' + delay: '0' + description: 'Number of objects (documents) in the database across all collections.' + preprocessing: + - type: JSONPATH + parameters: + - $.objects + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: objects + - tag: database + value: '{#DBNAME}' + - uuid: cadce6df66ec4872bd6b517233f77bfc + name: 'MongoDB {#DBNAME}: Objects, avg size' + type: DEPENDENT + key: 'mongodb.db.size["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: B + description: 'The average size of each document in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.avgObjSize + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: objects + - tag: database + value: '{#DBNAME}' + - uuid: 829536cb5dd448d8a05a30cf6eff8599 + name: 'MongoDB {#DBNAME}: Get db stats {#DBNAME}' + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns statistics reflecting the database system''s state.' + tags: + - tag: component + value: database + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 197a1d1f5d14413da8fe6c93bfdcf4f3 + name: 'MongoDB {#DBNAME}: Size, storage' + type: DEPENDENT + key: 'mongodb.db.storage_size["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total amount of space allocated to collections in this database for document storage.' + preprocessing: + - type: JSONPATH + parameters: + - $.storageSize + master_item: + key: 'mongodb.db.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: disk + - tag: database + value: '{#DBNAME}' + graph_prototypes: + - uuid: e65fcfed4eca4d518b5e6b5b6085ede8 + name: 'MongoDB {#DBNAME}: Collections stats' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.db.collections["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.db.objects["{#DBNAME}"]' + - uuid: 5dc13b4aebf24a1b8448c26d93b42d7a + name: 'MongoDB {#DBNAME}: Disk usage' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.db.index_size["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.db.storage_size["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.db.file_size["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.db.data_size["{#DBNAME}"]' + - uuid: eaa4b8fc535143f887673834987ce7be + name: 'Replication discovery' + type: DEPENDENT + key: mongodb.rs.discovery + delay: '0' + description: 'Collect metrics by Zabbix agent if it exists.' + item_prototypes: + - uuid: aed5de1374ea427185d478e87b7f1449 + name: 'Apply batches, ms/s' + type: DEPENDENT + key: 'mongodb.rs.apply.batches.ms.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) the mongod has spent applying operations from the oplog.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.apply.batches.totalMillis + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: a460d4356895439d9cf9143b38a18213 + name: 'Apply batches, rate' + type: DEPENDENT + key: 'mongodb.rs.apply.batches.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of batches applied across all databases per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.apply.batches.num + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: 48970eb366f144b4b9ed3f72fbd983a7 + name: 'Apply ops, rate' + type: DEPENDENT + key: 'mongodb.rs.apply.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of oplog operations applied per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.apply.ops + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: 8d8b0046f9fd409891d3d225f8a462ff + name: Buffer + type: DEPENDENT + key: 'mongodb.rs.buffer.count[{#RS_NAME}]' + delay: '0' + description: 'Number of operations in the oplog buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.buffer.count + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: 0a7522edb2a647989627de85f7e61319 + name: 'Buffer, max size' + type: DEPENDENT + key: 'mongodb.rs.buffer.max_size[{#RS_NAME}]' + delay: '0' + units: B + description: 'Maximum size of the buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.buffer.maxSizeBytes + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: fd9b7ea20e1e4e91b7a3c75d5416efe8 + name: 'Buffer, size' + type: DEPENDENT + key: 'mongodb.rs.buffer.size[{#RS_NAME}]' + delay: '0' + units: B + description: 'Current size of the contents of the oplog buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.buffer.sizeBytes + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: 6f07d080d01d45dfa5383640c76175c5 + name: 'Replication lag' + type: DEPENDENT + key: 'mongodb.rs.lag[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Delay between a write operation on the primary and its copy to a secondary.' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.self == "true")].lag.first()' + master_item: + key: 'mongodb.rs.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + trigger_prototypes: + - uuid: 778d0b15affe4867b3e7f3e396c2a700 + expression: 'min(/MongoDB node by Zabbix agent 2/mongodb.rs.lag[{#RS_NAME}],5m)>{$MONGODB.REPL.LAG.MAX.WARN}' + name: 'MongoDB node: Replication lag with primary is too high' + event_name: 'MongoDB node: Replication lag with primary is too high (over {$MONGODB.REPL.LAG.MAX.WARN} in 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: be060c8d3fec46d5832f8047d3512903 + name: 'Network bytes, rate' + type: DEPENDENT + key: 'mongodb.rs.network.bytes.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Amount of data read from the replication sync source per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.network.bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: network + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: 68b7ac3fee984352bab02b07e0823f51 + name: 'Network getmores, ms/s' + type: DEPENDENT + key: 'mongodb.rs.network.getmores.ms.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) required to collect data from getmore operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.network.getmores.totalMillis + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: 86d9ddbfc35447c7889bef826bab016f + name: 'Network getmores, rate' + type: DEPENDENT + key: 'mongodb.rs.network.getmores.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of getmore operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.network.getmores.num + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: d2b3075c9728473a9dc8a0585ce43cfd + name: 'Network ops, rate' + type: DEPENDENT + key: 'mongodb.rs.network.ops.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of operations read from the replication source per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.network.ops + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: operations + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: 7f9d03a683764e32a35b9c1d4da5ddab + name: 'Network readers created, rate' + type: DEPENDENT + key: 'mongodb.rs.network.readers.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of oplog query processes created per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.network.readersCreated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: network + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: 341410549bfd46058a9cb289b3254639 + name: 'MongoDB {#RS_NAME}: Oplog time diff' + type: DEPENDENT + key: 'mongodb.rs.oplog.timediff[{#RS_NAME}]' + delay: '0' + units: s + description: 'Oplog window: difference between the first and last operation in the oplog. Only present if there are entries in the oplog.' + preprocessing: + - type: JSONPATH + parameters: + - $.timediff + master_item: + key: 'mongodb.oplog.stats["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: f759273556f5427196c86e822dc7aa95 + name: 'Preload docs, ms/s' + type: DEPENDENT + key: 'mongodb.rs.preload.docs.ms.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) spent loading documents as part of the pre-fetch stage of replication.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.preload.docs.totalMillis + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: a364941cb8da416a84c0ca897a04c8f9 + name: 'Preload docs, rate' + type: DEPENDENT + key: 'mongodb.rs.preload.docs.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of documents loaded per second during the pre-fetch stage of replication.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.preload.docs.num + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: c78b8e62a12b466ea6f1de84d0e9080a + name: 'Preload indexes, ms/s' + type: DEPENDENT + key: 'mongodb.rs.preload.indexes.ms.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + units: ms/s + description: 'Fraction of time (ms/s) spent loading documents as part of the pre-fetch stage of replication.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.preload.indexes.totalMillis + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: ce37bf73939041ab869e4b2faaaedae3 + name: 'Preload indexes, rate' + type: DEPENDENT + key: 'mongodb.rs.preload.indexes.rate[{#RS_NAME}]' + delay: '0' + value_type: FLOAT + description: 'Number of index entries loaded by members before updating documents as part of the pre-fetch stage of replication.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.repl.preload.indexes.num + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: 49e786da687a4b36a17bf617026e3c83 + name: 'Node state' + type: DEPENDENT + key: 'mongodb.rs.state[{#RS_NAME}]' + delay: '0' + description: 'An integer between 0 and 10 that represents the replica state of the current member.' + valuemap: + name: 'ReplicaSet node state' + preprocessing: + - type: JSONPATH + parameters: + - $.myState + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mongodb.rs.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + trigger_prototypes: + - uuid: f9f29647a3db426c9c303fc47cfc48eb + expression: 'last(/MongoDB node by Zabbix agent 2/mongodb.rs.state[{#RS_NAME}],#1)<>last(/MongoDB node by Zabbix agent 2/mongodb.rs.state[{#RS_NAME}],#2)' + recovery_mode: NONE + name: 'MongoDB node: Node in ReplicaSet changed the state' + event_name: 'MongoDB node: Node in ReplicaSet changed the state (new state: {ITEM.VALUE})' + priority: WARNING + description: 'Node in ReplicaSet changed the state. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 211d5f6768c044f8ac959724160d3ddc + name: 'Number of replicas' + type: DEPENDENT + key: 'mongodb.rs.total_nodes[{#RS_NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'The number of replicated nodes in current ReplicaSet.' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.self == "true")].totalNodes.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mongodb.rs.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: 4b81b6e4ce1644689e5d8a4490650e6b + name: 'Unhealthy replicas' + type: DEPENDENT + key: 'mongodb.rs.unhealthy[{#RS_NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + discover: NO_DISCOVER + description: 'The replicated nodes in current ReplicaSet with member health value = 0.' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.self == "true")].unhealthyNodes.first()' + - type: JAVASCRIPT + parameters: + - | + var value = JSON.parse(value); + return value.length ? JSON.stringify(value) : ''; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mongodb.rs.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + - uuid: b8d4a32cfa9f4b4fb5177e3389d15a5a + name: 'Number of unhealthy replicas' + type: DEPENDENT + key: 'mongodb.rs.unhealthy_count[{#RS_NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'The number of replicated nodes with member health value = 0.' + preprocessing: + - type: JSONPATH + parameters: + - '$.members[?(@.self == "true")].unhealthyCount.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mongodb.rs.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: replication + - tag: replicaset + value: '{#RS_NAME}' + trigger_prototypes: + - uuid: 975c5e5817b148ba8a8d551ac42053d0 + expression: 'last(/MongoDB node by Zabbix agent 2/mongodb.rs.unhealthy_count[{#RS_NAME}])>0 and length(last(/MongoDB node by Zabbix agent 2/mongodb.rs.unhealthy[{#RS_NAME}]))>0' + name: 'MongoDB node: There are unhealthy replicas in ReplicaSet' + priority: AVERAGE + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 52724c49dd544470916eab1301be30da + name: 'MongoDB: Replication lag time [{#RS_NAME}]' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: 'mongodb.rs.lag[{#RS_NAME}]' + master_item: + key: 'mongodb.rs.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var status = JSON.parse(value) + return JSON.stringify(status.set + ? [{'{#RS_NAME}': status.set, '{#NODE_STATE}': status.myState}] + : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Primary metrics' + step: '1' + filter: + conditions: + - macro: '{#NODE_STATE}' + value: '1' + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Number of replicas' + discover: DISCOVER + status: ENABLED + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Number of unhealthy replicas' + discover: DISCOVER + status: ENABLED + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Replication lag' + discover: NO_DISCOVER + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Unhealthy replicas' + discover: DISCOVER + status: ENABLED + - name: 'Arbiter metrics' + step: '2' + filter: + conditions: + - macro: '{#NODE_STATE}' + value: '7' + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Replication lag' + discover: NO_DISCOVER + - uuid: 9b37bb1d3e244a95ac5702bcf3ab19a9 + name: 'WiredTiger metrics' + type: DEPENDENT + key: mongodb.wired_tiger.discovery + delay: '0' + description: 'Collect metrics of WiredTiger Storage Engine if it exists.' + item_prototypes: + - uuid: 918e705019734ca7a200a7c4422c6bab + name: 'WiredTiger cache: bytes' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.bytes_in_cache[{#SINGLETON}]' + delay: '0' + units: B + description: 'Size of the data currently in cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache[''bytes currently in the cache'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: 20edd994c8b04e35bea96e6eacd33611 + name: 'WiredTiger cache: bytes, max' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.maximum_bytes_configured[{#SINGLETON}]' + delay: '0' + units: B + description: 'Maximum cache size.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache[''maximum bytes configured'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: 4e07f3e517bf41c1b42661d3bbd5237e + name: 'WiredTiger cache: max page size at eviction' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.max_page_size_eviction[{#SINGLETON}]' + delay: '0' + units: B + description: 'Maximum page size at eviction.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache[''maximum page size at eviction'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: 692685a9f3d9461daa88fdfcb0771e05 + name: 'WiredTiger cache: modified pages evicted' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.modified_pages_evicted[{#SINGLETON}]' + delay: '0' + description: 'Number of pages, that have been modified, evicted from the cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache[''modified pages evicted'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: 634060250f474f269aed1df61f709ca7 + name: 'WiredTiger cache: pages evicted by application threads, rate' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.pages_evicted_threads.rate[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of page evicted by application threads per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache.[''pages evicted by application threads'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: 547ccf6f4c7f4629831e39f72cbcfb70 + name: 'WiredTiger cache: pages held in cache' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.pages_in_cache[{#SINGLETON}]' + delay: '0' + description: 'Number of pages currently held in the cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache[''pages currently held in the cache'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: c01890f434b14e998e2aea7d61d600e5 + name: 'WiredTiger cache: pages read into cache' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.pages_read[{#SINGLETON}]' + delay: '0' + description: 'Number of pages read into the cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache[''pages read into cache'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: 0aa52db6d7684a2496fb0599139cd142 + name: 'WiredTiger cache: pages written from cache' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.pages_written[{#SINGLETON}]' + delay: '0' + description: 'Number of pages written from the cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache[''pages written from cache'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: 851100dc722b4e74883fa469e062a2e2 + name: 'WiredTiger cache: in-memory page splits' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.splits[{#SINGLETON}]' + delay: '0' + description: 'In-memory page splits.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache[''in-memory page splits'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: 85706ecdaa0e4c789a6542cbde35e80a + name: 'WiredTiger cache: tracked dirty bytes in the cache' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.tracked_dirty_bytes[{#SINGLETON}]' + delay: '0' + units: B + description: 'Size of the dirty data in the cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache.[''tracked dirty bytes in the cache'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: 7993e04be54b4dc0b663a105b7b9a3c4 + name: 'WiredTiger cache: unmodified pages evicted' + type: DEPENDENT + key: 'mongodb.wired_tiger.cache.unmodified_pages_evicted[{#SINGLETON}]' + delay: '0' + description: 'Number of pages, that were not modified, evicted from the cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$.wiredTiger.cache.[''unmodified pages evicted'']' + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: cache + - tag: component + value: wired-tiger + - uuid: b1a9800865db4ac8959bbdc4b2ab39ee + name: 'WiredTiger concurrent transactions: read, available' + type: DEPENDENT + key: 'mongodb.wired_tiger.concurrent_transactions.read.available[{#SINGLETON}]' + delay: '0' + description: 'Number of available read tickets (concurrent transactions) remaining.' + preprocessing: + - type: JSONPATH + parameters: + - $.wiredTiger.concurrentTransactions.read.available + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: transactions + - tag: component + value: wired-tiger + trigger_prototypes: + - uuid: 967928b915f64623b4416ed0dbf6ba98 + expression: 'max(/MongoDB node by Zabbix agent 2/mongodb.wired_tiger.concurrent_transactions.read.available[{#SINGLETON}],5m)<{$MONGODB.WIRED_TIGER.TICKETS.AVAILABLE.MIN.WARN}' + name: 'MongoDB node: Available WiredTiger read tickets is low' + event_name: 'MongoDB node: Available WiredTiger read tickets less than {$MONGODB.WIRED_TIGER.TICKETS.AVAILABLE.MIN.WARN}' + priority: WARNING + description: | + Too few available read tickets. + When the number of available read tickets remaining reaches zero, new read requests will be queued until a new read ticket is available. + tags: + - tag: scope + value: capacity + - uuid: b9415bf5203840209e149a6be4b110a1 + name: 'WiredTiger concurrent transactions: read, out' + type: DEPENDENT + key: 'mongodb.wired_tiger.concurrent_transactions.read.out[{#SINGLETON}]' + delay: '0' + description: 'Number of read tickets (concurrent transactions) in use.' + preprocessing: + - type: JSONPATH + parameters: + - $.wiredTiger.concurrentTransactions.read.out + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: transactions + - tag: component + value: wired-tiger + - uuid: 46c67d017c5040f691695fcd7645c224 + name: 'WiredTiger concurrent transactions: read, total tickets' + type: DEPENDENT + key: 'mongodb.wired_tiger.concurrent_transactions.read.totalTickets[{#SINGLETON}]' + delay: '0' + description: 'Total number of read tickets (concurrent transactions) available.' + preprocessing: + - type: JSONPATH + parameters: + - $.wiredTiger.concurrentTransactions.read.totalTickets + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: transactions + - tag: component + value: wired-tiger + - uuid: cb36bdd5ce0442cca03e46436f82c6a2 + name: 'WiredTiger concurrent transactions: write, available' + type: DEPENDENT + key: 'mongodb.wired_tiger.concurrent_transactions.write.available[{#SINGLETON}]' + delay: '0' + description: 'Number of available write tickets (concurrent transactions) remaining.' + preprocessing: + - type: JSONPATH + parameters: + - $.wiredTiger.concurrentTransactions.write.available + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: transactions + - tag: component + value: wired-tiger + trigger_prototypes: + - uuid: 485e6e846f274b528902b3ffd08f2fc4 + expression: 'max(/MongoDB node by Zabbix agent 2/mongodb.wired_tiger.concurrent_transactions.write.available[{#SINGLETON}],5m)<{$MONGODB.WIRED_TIGER.TICKETS.AVAILABLE.MIN.WARN}' + name: 'MongoDB node: Available WiredTiger write tickets is low' + event_name: 'MongoDB node: Available WiredTiger write tickets less than {$MONGODB.WIRED_TIGER.TICKETS.AVAILABLE.MIN.WARN}' + priority: WARNING + description: | + Too few available write tickets. + When the number of available write tickets remaining reaches zero, new write requests will be queued until a new write ticket is available. + tags: + - tag: scope + value: capacity + - uuid: b997757256e441dca58758192126ac44 + name: 'WiredTiger concurrent transactions: write, out' + type: DEPENDENT + key: 'mongodb.wired_tiger.concurrent_transactions.write.out[{#SINGLETON}]' + delay: '0' + description: 'Number of write tickets (concurrent transactions) in use.' + preprocessing: + - type: JSONPATH + parameters: + - $.wiredTiger.concurrentTransactions.write.out + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: transactions + - tag: component + value: wired-tiger + - uuid: e9eb61954ab6462d9dbcf9206467b076 + name: 'WiredTiger concurrent transactions: write, total tickets' + type: DEPENDENT + key: 'mongodb.wired_tiger.concurrent_transactions.write.totalTickets[{#SINGLETON}]' + delay: '0' + description: 'Total number of write tickets (concurrent transactions) available.' + preprocessing: + - type: JSONPATH + parameters: + - $.wiredTiger.concurrentTransactions.write.totalTickets + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + tags: + - tag: component + value: transactions + - tag: component + value: wired-tiger + master_item: + key: 'mongodb.server.status["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + return JSON.stringify(JSON.parse(value).wiredTiger + ? [{'{#SINGLETON}': ''}] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: database + - tag: target + value: mongodb-node + macros: + - macro: '{$MONGODB.CONNS.PCT.USED.MAX.WARN}' + value: '80' + description: 'Maximum percentage of used connections' + - macro: '{$MONGODB.CONNSTRING}' + value: 'tcp://localhost:27017' + description: 'Connection string in the URI format (password is not used). This param overwrites a value configured in the "Server" option of the configuration file (if it''s set), otherwise, the plugin''s default value is used: "tcp://localhost:27017"' + - macro: '{$MONGODB.CURSOR.OPEN.MAX.WARN}' + value: '10000' + description: 'Maximum number of open cursors' + - macro: '{$MONGODB.CURSOR.TIMEOUT.MAX.WARN}' + value: '1' + description: 'Maximum number of cursors timing out per second' + - macro: '{$MONGODB.LLD.FILTER.COLLECTION.MATCHES}' + value: '.*' + description: 'Filter of discoverable collections' + - macro: '{$MONGODB.LLD.FILTER.COLLECTION.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered collections' + - macro: '{$MONGODB.LLD.FILTER.DB.MATCHES}' + value: '.*' + description: 'Filter of discoverable databases' + - macro: '{$MONGODB.LLD.FILTER.DB.NOT_MATCHES}' + value: (admin|config|local) + description: 'Filter to exclude discovered databases' + - macro: '{$MONGODB.PASSWORD}' + description: 'MongoDB user password' + - macro: '{$MONGODB.REPL.LAG.MAX.WARN}' + value: 10s + description: 'Maximum replication lag in seconds' + - macro: '{$MONGODB.USER}' + description: 'MongoDB username' + - macro: '{$MONGODB.WIRED_TIGER.TICKETS.AVAILABLE.MIN.WARN}' + value: '5' + description: 'Minimum number of available WiredTiger read or write tickets remaining' + dashboards: + - uuid: 31fcc4b685ed401ca1d3164ee283d91c + name: 'Node overview' + pages: + - name: General + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB: Active clients' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB: Activity' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB: Connections' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB: Cursors' + - type: STRING + name: reference + value: AAAAD + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB: Documents' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '25' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB: Memory usage' + - type: STRING + name: reference + value: AAAAF + - type: graph + 'y': '30' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB: Network' + - type: STRING + name: reference + value: AAAAG + - type: graph + 'y': '35' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB: Operations' + - type: STRING + name: reference + value: AAAAH + - type: graph + 'y': '40' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB: Queued operations' + - type: STRING + name: reference + value: AAAAI + - name: Collections + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Locks' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Locks time' + - type: STRING + name: reference + value: AAAAK + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations' + - type: STRING + name: reference + value: AAAAL + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB {#DBNAME}.{#COLLECTION}: Operations time' + - type: STRING + name: reference + value: AAAAM + - name: Databases + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB {#DBNAME}: Collections stats' + - type: STRING + name: reference + value: AAAAN + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB {#DBNAME}: Disk usage' + - type: STRING + name: reference + value: AAAAO + - name: Replication + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'MongoDB node by Zabbix agent 2' + name: 'MongoDB: Replication lag time [{#RS_NAME}]' + - type: STRING + name: reference + value: AAAAP + valuemaps: + - uuid: 9f921e1503e74204b8f128966f9562bc + name: 'MongoDB flag' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: a99141555eff42ff8d367f10d9a7c569 + name: 'ReplicaSet node state' + mappings: + - value: '0' + newvalue: STARTUP + - value: '1' + newvalue: PRIMARY + - value: '2' + newvalue: SECONDARY + - value: '3' + newvalue: RECOVERING + - value: '5' + newvalue: STARTUP2 + - value: '6' + newvalue: UNKNOWN + - value: '7' + newvalue: ARBITER + - value: '8' + newvalue: DOWN + - value: '9' + newvalue: ROLLBACK + - value: '10' + newvalue: REMOVED + - uuid: b37ba44823e34a13a119f86f3d58a65a + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 58142b2a76114e69af259ea1b5c19bbc + expression: 'min(/MongoDB node by Zabbix agent 2/mongodb.connections.current,5m)/(last(/MongoDB node by Zabbix agent 2/mongodb.connections.available)+last(/MongoDB node by Zabbix agent 2/mongodb.connections.current))*100>{$MONGODB.CONNS.PCT.USED.MAX.WARN}' + name: 'MongoDB node: Total number of open connections is too high' + event_name: 'MongoDB node: Total number of open connections is too high (over {$MONGODB.CONNS.PCT.USED.MAX.WARN%} in 5m)' + priority: WARNING + description: | + Too few available connections. + If MongoDB runs low on connections, in may not be able to handle incoming requests in a timely manner. + tags: + - tag: scope + value: capacity + graphs: + - uuid: b018e24581464b0282df09fb9d6fc129 + name: 'MongoDB: Active clients' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.active_clients.total + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.active_clients.readers + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.active_clients.writers + - uuid: 815c7f2a6dd941df9bc10bc9153e0e97 + name: 'MongoDB: Activity' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.connections.rate + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.network.numRequests.rate + - uuid: d7787063a8614cb4afdf41811a8ade59 + name: 'MongoDB: Connections' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.connections.available + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.connections.active + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.connections.current + - uuid: 230bda1ddd4a45b6a2f11dbea252276e + name: 'MongoDB: Cursors' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.cursor.open.total + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.cursor.open.pinned + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.metrics.cursor.open.no_timeout + - uuid: 509211f5f33d4c57a49c5416b2f33937 + name: 'MongoDB: Documents' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongod.document.deleted.rate + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongod.document.inserted.rate + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongod.document.returned.rate + - sortorder: '3' + color: F7941D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongod.document.updated.rate + - uuid: f47175a50c6f488b993d3b04ecb28af4 + name: 'MongoDB: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.mem.mapped + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.mem.resident + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.mem.virtual + - sortorder: '3' + color: F7941D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.mem.mapped_with_journal + - uuid: f1311a6b0d5f4564898d6679a45c438d + name: 'MongoDB: Network' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.network.bytes_out.rate + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.network.bytes_in.rate + - uuid: 27c36a56bdca436d8a0fe43c9ee8233b + name: 'MongoDB: Operations' + graph_items: + - color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.opcounters.query.rate + - sortorder: '1' + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.opcounters.insert.rate + - sortorder: '2' + color: 00611C + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.opcounters.getmore.rate + - sortorder: '3' + color: F7941D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.opcounters.update.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.opcounters.delete.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.opcounters.command.rate + - uuid: e228af86d0a34bd4b494cb6b8cda2ad8 + name: 'MongoDB: Queued operations' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.current_queue.total + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.current_queue.readers + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'MongoDB node by Zabbix agent 2' + key: mongodb.current_queue.writers diff --git a/Morningstar_ProStar_MPPT_by_SNMP.yaml b/Morningstar_ProStar_MPPT_by_SNMP.yaml new file mode 100644 index 0000000..da41b58 --- /dev/null +++ b/Morningstar_ProStar_MPPT_by_SNMP.yaml @@ -0,0 +1,1313 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: b84324c2a40a496dbbb379bbf5dde8d5 + template: 'Morningstar ProStar MPPT by SNMP' + name: 'Morningstar ProStar MPPT by SNMP' + description: | + MIBs used: + PROSTAR-MPPT + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Network devices' + items: + - uuid: a517a7aafbab426eb6ced8d5f57c1fa4 + name: 'Array: Sweep Pmax' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.64.0]' + key: 'array.sweep_pmax[arrayMaxPowerSweep.0]' + value_type: FLOAT + units: W + description: | + MIB: PROSTAR-MPPT + Array Max. Power (sweep) + Description:Array Max. Power (last sweep) + Scaling Factor:1.0 + Units:W + Range:[0.0, 500] + Modbus address:0x003E + tags: + - tag: component + value: array + - uuid: 7714c76013e341f8b6753cc5a50a960f + name: 'Array: Sweep Vmp' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.63.0]' + key: 'array.sweep_vmp[arrayVmp.0]' + value_type: FLOAT + units: V + description: | + MIB: PROSTAR-MPPT + Array Vmp + Description:Array Max. Power Point Voltage + Scaling Factor:1.0 + Units:V + Range:[0.0, 5000.0] + Modbus address:0x003D + tags: + - tag: component + value: array + - uuid: 379ab969ad784968a1090ff98f5801ff + name: 'Array: Sweep Voc' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.65.0]' + key: 'array.sweep_voc[arrayVoc.0]' + value_type: FLOAT + units: V + description: | + MIB: PROSTAR-MPPT + Array Voc + Description:Array Open Circuit Voltage + Scaling Factor:1.0 + Units:V + Range:[0.0, 80.0] + Modbus address:0x003F + tags: + - tag: component + value: array + - uuid: 41a1118e1be3417daa79faace733d861 + name: 'Array: Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.31.0]' + key: 'array.voltage[arrayVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: PROSTAR-MPPT + Array Voltage + Description:Array Voltage + Scaling Factor:1.0 + Units:V + Range:[0, 80] + Modbus address:0x0013 + tags: + - tag: component + value: array + - uuid: fe5c3b724e894573acdaf522a2213adb + name: 'Battery: Battery Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.30.0]' + key: 'battery.voltage.discovery[batteryTerminalVoltage.0]' + delay: 15m + history: '0' + value_type: FLOAT + units: V + description: 'MIB: PROSTAR-MPPT' + tags: + - tag: component + value: battery + - tag: component + value: discovery + - tag: component + value: raw + - uuid: ed1d54fce0904b7c9d0895a094f55108 + name: 'Battery: Charge Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.33.0]' + key: 'charge.current[chargeCurrent.0]' + value_type: FLOAT + units: A + description: | + MIB: PROSTAR-MPPT + Charge Current + Description:Charge Current + Scaling Factor:1.0 + Units:A + Range:[0, 40] + Modbus address:0x0010 + tags: + - tag: component + value: battery + - uuid: 1b1b61995c0d4d89a7f9ad4e14c3541f + name: 'Battery: Charge State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.45.0]' + key: 'charge.state[chargeState.0]' + value_type: FLOAT + description: | + MIB: PROSTAR-MPPT + Charge State + Description:Control State + Modbus address:0x0021 + + 0: Start + 1: NightCheck + 2: Disconnect + 3: Night + 4: Fault + 5: BulkMppt + 6: Absorption + 7: Float + 8: Equalize + 9: Slave + 10: Fixed + valuemap: + name: 'ProStar MPPT charge state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: battery + triggers: + - uuid: fe4863fdd4d64e1c977328bd3d0f687f + expression: 'last(/Morningstar ProStar MPPT by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.CRIT}' + name: 'Morningstar ProStar MPPT: Battery: Device charge in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 4d064e4877474d72b85c9cdfb7b09dad + expression: 'last(/Morningstar ProStar MPPT by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.WARN}' + name: 'Morningstar ProStar MPPT: Battery: Device charge in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar MPPT: Battery: Device charge in critical state' + expression: 'last(/Morningstar ProStar MPPT by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 009eb72ff6674da49d1dd85a6f9459cf + name: 'Counter: Charge Amp-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.49.0]' + key: 'counter.charge_amp_hours[ahChargeResettable.0]' + value_type: FLOAT + units: Ah + description: | + MIB: PROSTAR-MPPT + Ah Charge (Resettable) + Description:Ah Charge (Resettable) + Scaling Factor:0.1 + Units:Ah + Range:[0.0, 4294967294] + Modbus addresses:H=0x0026 L=0x0027 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + tags: + - tag: component + value: counter + - uuid: 4a53a2211a1249d59369ad65762ffe47 + name: 'Counter: Charge KW-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.51.0]' + key: 'counter.charge_kw_hours[kwhChargeResettable.0]' + value_type: FLOAT + units: '!kWh' + description: | + MIB: PROSTAR-MPPT + kWh Charge (Resettable) + Description:Kilowatt Hours Charge (Resettable) + Scaling Factor:1.0 + Units:kWh + Range:[0.0, 65535] + Modbus address:0x002A + tags: + - tag: component + value: counter + - uuid: c72ef851c2d240c9835c1703cec49fd6 + name: 'Counter: Load Amp-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.56.0]' + key: 'counter.load_amp_hours[ahLoadResettable.0]' + value_type: FLOAT + units: Ah + description: | + MIB: PROSTAR-MPPT + Description:Ah Load (Resettable) + Scaling Factor:0.1 + Units:Ah + Range:[0.0, 4294967294] + Modbus addresses:H=0x0032 L=0x0033 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + tags: + - tag: component + value: counter + - uuid: 29a7d76472fb4025bc78fbeab273e955 + name: 'Load: Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.34.0]' + key: 'load.current[loadCurrent.0]' + value_type: FLOAT + units: A + description: | + MIB: PROSTAR-MPPT + Load Current + Description:Load Current + Scaling Factor:1.0 + Units:A + Range:[0, 60] + Modbus address:0x0016 + tags: + - tag: component + value: load + - uuid: ae927b5cba5b43f5a2136fd3ee71b63d + name: 'Load: State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.53.0]' + key: 'load.state[loadState.0]' + value_type: FLOAT + description: | + MIB: PROSTAR-MPPT + Load State + Description:Load State + Modbus address:0x002E + + 0: Start + 1: Normal + 2: LvdWarning + 3: Lvd + 4: Fault + 5: Disconnect + 6: NormalOff + 7: Override + 8: NotUsed + valuemap: + name: 'ProStar MPPT load state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: load + triggers: + - uuid: a88025c5e5a748e3a6dfa01685ba075b + expression: 'last(/Morningstar ProStar MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar ProStar MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"fault"}' + name: 'Morningstar ProStar MPPT: Load: Device load in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 9ab107b39b874fed83d09e7c1964a699 + expression: 'last(/Morningstar ProStar MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.WARN:"lvdWarning"} or last(/Morningstar ProStar MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.WARN:"override"}' + name: 'Morningstar ProStar MPPT: Load: Device load in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar MPPT: Load: Device load in critical state' + expression: 'last(/Morningstar ProStar MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar ProStar MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"fault"}' + tags: + - tag: scope + value: notice + - uuid: 47894752dd1d41f1aa882387acf6dc3a + name: 'Load: Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.32.0]' + key: 'load.voltage[loadVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: PROSTAR-MPPT + Load Voltage + Description:Load Voltage + Scaling Factor:1.0 + Units:V + Range:[0, 80] + Modbus address:0x0014 + tags: + - tag: component + value: load + - uuid: d44cb5d7db31402dae79275a9148817d + name: 'Status: Alarms' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.59.0]' + key: 'status.alarms[alarms.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: PROSTAR-MPPT + Description:Alarms + Modbus addresses:H=0x0038 L=0x0039 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'rtsOpen', + 'rtsShorted', + 'rtsDisconnected', + 'heatsinkTempSensorOpen', + 'heatsinkTempSensorShorted', + 'heatsinkTempLimit', + 'inductorTempSensorOpen', + 'inductorTempSensorShorted', + 'inductorTempLimit', + 'currentLimit', + 'currentMeasurementError', + 'batterySenseOutOfRange', + 'batterySenseDisconnected', + 'uncalibrated', + 'tb5v', + 'fp10SupplyOutOfRange', + 'unused', + 'mosfetOpen', + 'arrayCurrentOffset', + 'loadCurrentOffset', + 'p33SupplyOutOfRange', + 'p12SupplyOutOfRange', + 'hightInputVoltageLimit', + 'controllerReset', + 'loadLvd', + 'logTimeout', + 'eepromAccessFailure' + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No alarms'; + tags: + - tag: component + value: status + triggers: + - uuid: a2d0ab5150dd4bad8b5ec4f2c6aa13f8 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","arrayCurrentOffset")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "arrayCurrentOffset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: cc6a15f16fd8470a9dcd9a9e01cba61c + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","batterySenseDisconnected")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "batterySenseDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 55d4726d9b9047c79cf690353d950797 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","batterySenseOutOfRange")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "batterySenseOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 7f015198395042219666cde4458d407c + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","controllerReset")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "controllerReset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 48339339e5a7465fbc67266998c9a8fe + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","currentLimit")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "currentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: c88074037099498c896bb4793e04fea3 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","currentMeasurementError")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "currentMeasurementError" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: cecd8ee17e5143ffb46495e927750c82 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","eepromAccessFailure")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "eepromAccessFailure" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 4affa15e1c1c42459ea8dd6820d1c008 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","fp10SupplyOutOfRange")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "fp10SupplyOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 41e4225072a3468696cfb534c65b9736 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempLimit")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "heatsinkTempLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 5d269997a57d44ceb545e751e8e2d919 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorOpen")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "heatsinkTempSensorOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: a8342a4e2fff40a7b830086dec303fd9 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorShorted")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "heatsinkTempSensorShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 32e5b7ae81ce4ebea9b05ff7ab411e5a + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","hightInputVoltageLimit")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "hightInputVoltageLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: c10d27c1d9d54b8981a639e7bf0dfc02 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","inductorTempLimit")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "inductorTempLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 9f80959684b34b6498a1634097cd0d22 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","inductorTempSensorOpen")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "inductorTempSensorOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: cc735ddcc98e4c099bb770e2b2a171b5 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","inductorTempSensorShorted")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "inductorTempSensorShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 217935cd6c7547bc95f5af51b3e643d4 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","loadCurrentOffset")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "loadCurrentOffset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: cb05261f120240bf944b304ffc4979e6 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","loadLvd")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "loadLvd" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 1ed1de932e084ce5ba03747bdd8ca4e5 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","logTimeout")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "logTimeout" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 8824f80f1ef245508d6d0d660e3cabf1 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","mosfetOpen")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "mosfetOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 59569aaebf32403c9fd310f6b26845b0 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","p12SupplyOutOfRange")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "p12SupplyOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 4775d3a7b843455eb404661c070be092 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","p33SupplyOutOfRange")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "p33SupplyOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 2015d2b876564ad79699a23fc6b60f07 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","rtsDisconnected")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "rtsDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: cce1eb2bee094a3b9a993ec2d60d182b + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","rtsShorted")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "rtsShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 7a07b757660a4c9a879ac03a94832720 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","tb5v")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "tb5v" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 39205fc6d2cd4888994cccb016b4b2f8 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","uncalibrated")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "uncalibrated" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 8fbb5c650fa040c892a1d10a17fbbf14 + name: 'Status: Array Faults' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.46.0]' + key: 'status.array_faults[arrayFaults.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: PROSTAR-MPPT + Description:Array Faults + Modbus address:0x0022 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'overcurrent', + 'mosfetSShorted', + 'software', + 'batteryHvd', + 'arrayHvd', + 'customSettingsEdit', + 'rtsShorted', + 'rtsNoLongerValid', + 'localTempSensorDamaged', + 'batteryLowVoltageDisconnect', + 'slaveTimeout', + 'dipSwitchChanged', + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No faults'; + tags: + - tag: component + value: status + triggers: + - uuid: 8322f8ca8e2e462a8799dc399f17ba27 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","arrayHvd")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "arrayHvd" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 6a138cd2af754bb3a22173e8da28b254 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","batteryHvd")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "batteryHvd" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 8e42cf21ec10409da840021bfd26f74c + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","batteryLowVoltageDisconnect")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "batteryLowVoltageDisconnect" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d1112d9828064a879d56626ac6339dbf + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","customSettingsEdit")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "customSettingsEdit" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 75a67f17a33e41eea34585fade6319ef + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","dipSwitchChanged")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "dipSwitchChanged" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 4502112383524f0499ea13e6f83ce789 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","localTempSensorDamaged")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "localTempSensorDamaged" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: f1489dc1f8574895bd233b14ce080748 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","mosfetSShorted")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "mosfetSShorted" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 4ea903d3e8644ddaa5309eaa9715b894 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","overcurrent")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "overcurrent" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: e12a29ec16ea423cb69ca4ce460f201b + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","rtsNoLongerValid")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "rtsNoLongerValid" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 3ec4307bb2c444fc8eca27f9b7a136e2 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","rtsShorted")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "rtsShorted" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 915c00d98e144ee7a9a2d50d0bd474c0 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","slaveTimeout")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "slaveTimeout" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 9aac314eef594a8d86fd4b88308428e5 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","software")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "software" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 712a9b442bec4e89acf4ee5d5bf26fb8 + name: 'Status: Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: status.hw.uptime + units: uptime + description: 'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + - uuid: fb4d2147a8224b599ad908eca1b019e4 + name: 'Status: Load Faults' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.54.0]' + key: 'status.load_faults[loadFaults.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: PROSTAR-MPPT + Description:Array Faults + Modbus address:0x0022 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'externalShortCircuit', + 'overcurrent', + 'mosfetShorted', + 'software', + 'loadHvd', + 'highTempDisconnect', + 'dipSwitchChanged', + 'customSettingsEdit' + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No faults'; + tags: + - tag: component + value: status + triggers: + - uuid: 93750f768ba94f1bb9302fc17c76faeb + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","customSettingsEdit")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "customSettingsEdit" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 456e2c36369f4519b2c80bcfe1acb4b0 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","dipSwitchChanged")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "dipSwitchChanged" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 359df17c40684187b7ae92c8aa0c9624 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","externalShortCircuit")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "externalShortCircuit" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 6dadf09064304f4381ad9ed0436e562a + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","highTempDisconnect")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "highTempDisconnect" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: bc41145ae8074290913a47cc3fd11e1e + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","loadHvd")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "loadHvd" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 8c8a7021928e4bf78b6309574e298876 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","mosfetShorted")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "mosfetShorted" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: b7d3f05837bd4d788d14f1aaf18b0482 + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","overcurrent")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "overcurrent" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 801728740c1948b1a751469e6443daab + expression: 'count(/Morningstar ProStar MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","software")=2' + name: 'Morningstar ProStar MPPT: Status: Device has "software" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 526ee94df484462a9264e57d92954e64 + name: 'Status: Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: status.net.uptime + units: uptime + description: 'The time (in hundredths of a second) since the network management portion of the system was last re-initialized.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + triggers: + - uuid: 59cbcaaee8304b38a1144b3abf40bd9d + expression: 'nodata(/Morningstar ProStar MPPT by SNMP/status.net.uptime,5m)=1' + name: 'Morningstar ProStar MPPT: Status: Failed to fetch data' + event_name: 'Morningstar ProStar MPPT: Status: Failed to fetch data (or no data for 5m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 5 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 20ce95acdff6486684461f10579a73b4 + name: 'Battery: Target Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.48.0]' + key: 'target.voltage[targetVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: PROSTAR-MPPT + Target Voltage + Description:Target Regulation Voltage + Scaling Factor:1.0 + Units:V + Range:[0.0, 80.0] + Modbus address:0x0024 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: battery + - uuid: 9a87cdcf65184059be334e986bcf801d + name: 'Temperature: Ambient' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.40.0]' + key: 'temp.ambient[ambientTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: PROSTAR-MPPT + Ambient Temperature + Description:Ambient Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-128, 127] + Modbus address:0x001C + tags: + - tag: component + value: temperature + - uuid: 1a8e79f49e86429abc80dd29598299ee + name: 'Temperature: Battery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.39.0]' + key: 'temp.battery[batteryTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: PROSTAR-MPPT + Battery Temperature + Description:Battery Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-128, 127] + Modbus address:0x001B + tags: + - tag: component + value: temperature + triggers: + - uuid: c74e1d3be1c24bde986bbce068db4bb8 + expression: 'min(/Morningstar ProStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + name: 'Morningstar ProStar MPPT: Temperature: Critically high battery temperature' + event_name: 'Morningstar ProStar MPPT: Temperature: Critically high battery temperature (over {$BATTERY.TEMP.MAX.CRIT}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 0c2180ae5deb41adb503e37bf91c34e2 + expression: 'max(/Morningstar ProStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + name: 'Morningstar ProStar MPPT: Temperature: Critically low battery temperature' + event_name: 'Morningstar ProStar MPPT: Temperature: Critically low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 1ab91d781c734f1eb2b9552f6dee9370 + expression: 'min(/Morningstar ProStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.WARN}' + name: 'Morningstar ProStar MPPT: Temperature: High battery temperature' + event_name: 'Morningstar ProStar MPPT: Temperature: High battery temperature (over {$BATTERY.TEMP.MAX.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar MPPT: Temperature: Critically high battery temperature' + expression: 'min(/Morningstar ProStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 6ec855dc6a5c42a79f1f40e14655418a + expression: 'max(/Morningstar ProStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.WARN}' + name: 'Morningstar ProStar MPPT: Temperature: Low battery temperature' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar MPPT: Temperature: Critically low battery temperature' + expression: 'max(/Morningstar ProStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 7d0cf28c0d334154971738df11775d1f + name: 'Temperature: Heatsink' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.38.0]' + key: 'temp.heatsink[heatsinkTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: PROSTAR-MPPT + Heatsink Temperature + Description:Heatsink Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-128, 127] + Modbus address:0x001A + tags: + - tag: component + value: temperature + discovery_rules: + - uuid: 1a21c30663c74c23b60e6ad72e228681 + name: 'Battery voltage discovery' + type: DEPENDENT + key: battery.voltage.discovery + delay: '0' + description: 'Discovery for battery voltage triggers' + item_prototypes: + - uuid: c02c73a349ec4a6b8557e142c4866148 + name: 'Battery: Voltage{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.5.30.0]' + key: 'battery.voltage[batteryTerminalVoltage.0{#SINGLETON}]' + value_type: FLOAT + units: V + description: | + MIB: PROSTAR-MPPT + Battery Terminal Voltage + Description:Battery Terminal Voltage + Scaling Factor:1.0 + Units:V + Range:[0.0, 80.0] + Modbus address:0x0012 + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: 402f73ca5b8d412689a7e715223e890d + expression: 'min(/Morningstar ProStar MPPT by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + name: 'Morningstar ProStar MPPT: Battery: Critically high battery voltage' + event_name: 'Morningstar ProStar MPPT: Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 753a0d25832d434186f586f895124f31 + expression: 'max(/Morningstar ProStar MPPT by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + name: 'Morningstar ProStar MPPT: Battery: Critically low battery voltage' + event_name: 'Morningstar ProStar MPPT: Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 66e1fdfbfa5740dfa8945626f7f8be78 + expression: 'min(/Morningstar ProStar MPPT by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.WARN}' + name: 'Morningstar ProStar MPPT: Battery: High battery voltage' + event_name: 'Morningstar ProStar MPPT: Battery: High battery voltage (over {#VOLTAGE.MAX.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar MPPT: Battery: Critically high battery voltage' + expression: 'min(/Morningstar ProStar MPPT by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: c9f3d03ce06641eb9b184f511a3a0341 + expression: 'max(/Morningstar ProStar MPPT by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.WARN}' + name: 'Morningstar ProStar MPPT: Battery: Low battery voltage' + event_name: 'Morningstar ProStar MPPT: Battery: Low battery voltage (below {#VOLTAGE.MIN.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar MPPT: Battery: Critically low battery voltage' + expression: 'max(/Morningstar ProStar MPPT by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 480e4c11060a4e34851b48bf7b9c5bb1 + name: 'Voltage: Battery/Load{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar ProStar MPPT by SNMP' + key: 'battery.voltage[batteryTerminalVoltage.0{#SINGLETON}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar ProStar MPPT by SNMP' + key: 'load.voltage[loadVoltage.0]' + master_item: + key: 'battery.voltage.discovery[batteryTerminalVoltage.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var v_range = [ + [[0, 18], [12, 15, 11.5, 15.5]], + [[18, 36], [24, 30, 23, 31]], + [[36, 99], [48, 60, 46, 62]], + ], + result = []; + + for (var idx in v_range) { + if (v_range[idx][0][0] < value && value <= v_range[idx][0][1]) { + result = [{ + '{#VOLTAGE.MIN.WARN}': parseInt({$VOLTAGE.MIN.WARN}) || v_range[idx][1][0], + '{#VOLTAGE.MAX.WARN}': parseInt({$VOLTAGE.MAX.WARN}) || v_range[idx][1][1], + '{#VOLTAGE.MIN.CRIT}': parseInt({$VOLTAGE.MIN.CRIT}) || v_range[idx][1][2], + '{#VOLTAGE.MAX.CRIT}': parseInt({$VOLTAGE.MAX.CRIT}) || v_range[idx][1][3], + '{#SINGLETON}': '' + }]; + break; + } + } + + return JSON.stringify(result); + tags: + - tag: class + value: power + - tag: target + value: morningstar + macros: + - macro: '{$BATTERY.TEMP.MAX.CRIT}' + value: '60' + description: 'Battery high temperature critical value' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '45' + description: 'Battery high temperature warning value' + - macro: '{$BATTERY.TEMP.MIN.CRIT}' + value: '-20' + description: 'Battery low temperature critical value' + - macro: '{$BATTERY.TEMP.MIN.WARN}' + value: '0' + description: 'Battery low temperature warning value' + - macro: '{$CHARGE.STATE.CRIT}' + value: '4' + description: fault + - macro: '{$CHARGE.STATE.WARN}' + value: '2' + description: disconnect + - macro: '{$LOAD.STATE.CRIT:"fault"}' + value: '4' + description: fault + - macro: '{$LOAD.STATE.CRIT:"lvd"}' + value: '3' + description: lvd + - macro: '{$LOAD.STATE.WARN:"disconnect"}' + value: '5' + description: disconnect + - macro: '{$LOAD.STATE.WARN:"lvdWarning"}' + value: '2' + description: lvdWarning + - macro: '{$LOAD.STATE.WARN:"override"}' + value: '7' + description: override + - macro: '{$VOLTAGE.MAX.CRIT}' + - macro: '{$VOLTAGE.MAX.WARN}' + - macro: '{$VOLTAGE.MIN.CRIT}' + - macro: '{$VOLTAGE.MIN.WARN}' + dashboards: + - uuid: 3765513f1a4945c0801639e4c689f99f + name: 'Morningstar ProStar MPPT: Overview' + pages: + - widgets: + - type: graph + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar ProStar MPPT by SNMP' + name: 'Array: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '4' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar ProStar MPPT by SNMP' + name: 'Current: Charge/Load' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '8' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar ProStar MPPT by SNMP' + name: 'Temperature: Ambient/Battery/Heatsink' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: 1703c3aeb1b24641821e1c6d2cb4c8b7 + name: 'ProStar MPPT charge state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: NightCheck + - value: '2' + newvalue: Disconnect + - value: '3' + newvalue: Night + - value: '4' + newvalue: Fault + - value: '5' + newvalue: BulkMppt + - value: '6' + newvalue: Absorption + - value: '7' + newvalue: Float + - value: '8' + newvalue: Equalize + - value: '9' + newvalue: Slave + - value: '10' + newvalue: Fixed + - uuid: b5403a0805a54b9294f69a1e11a438b1 + name: 'ProStar MPPT load state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: Normal + - value: '2' + newvalue: LvdWarning + - value: '3' + newvalue: Lvd + - value: '4' + newvalue: Fault + - value: '5' + newvalue: Disconnect + - value: '6' + newvalue: NormalOff + - value: '7' + newvalue: Override + - value: '8' + newvalue: NotUsed + triggers: + - uuid: ca65a39c019046c29a522a6ca93ceb75 + expression: '(last(/Morningstar ProStar MPPT by SNMP/status.hw.uptime)>0 and last(/Morningstar ProStar MPPT by SNMP/status.hw.uptime)<10m) or (last(/Morningstar ProStar MPPT by SNMP/status.hw.uptime)=0 and last(/Morningstar ProStar MPPT by SNMP/status.net.uptime)<10m)' + name: 'Morningstar ProStar MPPT: Status: Device has been restarted' + event_name: 'Morningstar ProStar MPPT: Status: Device has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 0662dc480c2b487e9f9afc389166a15b + name: 'Array: Voltage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar ProStar MPPT by SNMP' + key: 'array.sweep_vmp[arrayVmp.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar ProStar MPPT by SNMP' + key: 'array.sweep_voc[arrayVoc.0]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Morningstar ProStar MPPT by SNMP' + key: 'array.voltage[arrayVoltage.0]' + - uuid: 94bbfd8a60a8412998ff617011db9372 + name: 'Current: Charge/Load' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar ProStar MPPT by SNMP' + key: 'charge.current[chargeCurrent.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar ProStar MPPT by SNMP' + key: 'load.current[loadCurrent.0]' + - uuid: 02652b1251244702bf28f691e72ba27e + name: 'Temperature: Ambient/Battery/Heatsink' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar ProStar MPPT by SNMP' + key: 'temp.ambient[ambientTemperature.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar ProStar MPPT by SNMP' + key: 'temp.battery[batteryTemperature.0]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Morningstar ProStar MPPT by SNMP' + key: 'temp.heatsink[heatsinkTemperature.0]' diff --git a/Morningstar_ProStar_PWM_by_SNMP.yaml b/Morningstar_ProStar_PWM_by_SNMP.yaml new file mode 100644 index 0000000..f4055f3 --- /dev/null +++ b/Morningstar_ProStar_PWM_by_SNMP.yaml @@ -0,0 +1,1216 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 24bed6339f0a492fab86fe757394b937 + template: 'Morningstar ProStar PWM by SNMP' + name: 'Morningstar ProStar PWM by SNMP' + description: | + MIBs used: + PROSTAR-PWM + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 953fb8b3c23f420bb6132874ce3e33e2 + name: 'Array: Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.31.0]' + key: 'array.voltage[arrayVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: PROSTAR-PWM + Description:Array Voltage + Scaling Factor:1.0 + Units:V + Range:[0, 80] + Modbus address:0x0013 + tags: + - tag: component + value: array + - uuid: a80ad3ace9b14446bc5fd5d6aaa5af87 + name: 'Battery: Battery Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.30.0]' + key: 'battery.voltage.discovery[batteryTerminalVoltage.0]' + delay: 15m + history: '0' + value_type: FLOAT + units: V + description: 'MIB: PROSTAR-PWM' + tags: + - tag: component + value: battery + - tag: component + value: discovery + - tag: component + value: raw + - uuid: 148008b117c94155ba81600e3050ab25 + name: 'Battery: Charge Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.33.0]' + key: 'charge.current[chargeCurrent.0]' + value_type: FLOAT + units: A + description: | + MIB: PROSTAR-PWM + Description:Charge Current + Scaling Factor:1.0 + Units:A + Range:[0, 40] + Modbus address:0x0011 + tags: + - tag: component + value: battery + - uuid: a7ae2d3b911e4bb5a7eeb770470245a5 + name: 'Battery: Charge State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.45.0]' + key: 'charge.state[chargeState.0]' + value_type: FLOAT + description: | + MIB: PROSTAR-PWM + Description:Control State + Modbus address:0x0021 + + 0: Start + 1: NightCheck + 2: Disconnect + 3: Night + 4: Fault + 5: Bulk + 6: Pwm + 7: Float + 8: Equalize + valuemap: + name: 'ProStar PWM charge state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: battery + triggers: + - uuid: f12fc2c1a7a142a287304c18bafa1181 + expression: 'last(/Morningstar ProStar PWM by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.CRIT}' + name: 'Morningstar ProStar PWM: Battery: Device charge in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: adf8cf02aa1e42fa84e1f11ddae4df01 + expression: 'last(/Morningstar ProStar PWM by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.WARN}' + name: 'Morningstar ProStar PWM: Battery: Device charge in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar PWM: Battery: Device charge in critical state' + expression: 'last(/Morningstar ProStar PWM by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 8acd2e7944694a828cf9b739b75513d9 + name: 'Counter: Charge Amp-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.49.0]' + key: 'counter.charge_amp_hours[ahChargeResettable.0]' + value_type: FLOAT + units: Ah + description: | + MIB: PROSTAR-PWM + Description:Ah Charge (Resettable) + Scaling Factor:0.1 + Units:Ah + Range:[0.0, 4294967294] + Modbus addresses:H=0x0026 L=0x0027 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + tags: + - tag: component + value: counter + - uuid: 0e7124df3f2b4298b1a13576d0b2d5e7 + name: 'Counter: Charge KW-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.51.0]' + key: 'counter.charge_kw_hours[kwhChargeResettable.0]' + value_type: FLOAT + units: '!kWh' + description: | + MIB: PROSTAR-PWM + Description:Kilowatt Hours Charge (Resettable) + Scaling Factor:1.0 + Units:kWh + Range:[0.0, 65535] + Modbus address:0x002A + tags: + - tag: component + value: counter + - uuid: 104a7db1c27d40b3bbee506f7f922393 + name: 'Counter: Load Amp-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.56.0]' + key: 'counter.load_amp_hours[ahLoadResettable.0]' + value_type: FLOAT + units: Ah + description: | + MIB: PROSTAR-PWM + Description:Ah Load (Resettable) + Scaling Factor:0.1 + Units:Ah + Range:[0.0, 4294967294] + Modbus addresses:H=0x0032 L=0x0033 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + tags: + - tag: component + value: counter + - uuid: dcade8607cf142a2b88333f9880448fc + name: 'Load: Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.34.0]' + key: 'load.current[loadCurrent.0]' + value_type: FLOAT + units: A + description: | + MIB: PROSTAR-PWM + Description:Load Current + Scaling Factor:1.0 + Units:A + Range:[0, 60] + Modbus address:0x0016 + tags: + - tag: component + value: load + - uuid: 14b3ca3869374f54a467e5e9017f918a + name: 'Load: State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.53.0]' + key: 'load.state[loadState.0]' + value_type: FLOAT + description: | + MIB: PROSTAR-PWM + Description:Load State + Modbus address:0x002E + + 0: Start + 1: Normal + 2: LvdWarning + 3: Lvd + 4: Fault + 5: Disconnect + 6: NormalOff + 7: Override + 8: NotUsed + valuemap: + name: 'ProStar PWM load state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: load + triggers: + - uuid: 7a8bf4420b6b48ab8a5bc999eecae760 + expression: 'last(/Morningstar ProStar PWM by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar ProStar PWM by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"fault"}' + name: 'Morningstar ProStar PWM: Load: Device load in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 5152f9cd4ee34be485f3cb0a0f60afd5 + expression: 'last(/Morningstar ProStar PWM by SNMP/load.state[loadState.0])={$LOAD.STATE.WARN:"lvdWarning"} or last(/Morningstar ProStar PWM by SNMP/load.state[loadState.0])={$LOAD.STATE.WARN:"override"}' + name: 'Morningstar ProStar PWM: Load: Device load in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar PWM: Load: Device load in critical state' + expression: 'last(/Morningstar ProStar PWM by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar ProStar PWM by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"fault"}' + tags: + - tag: scope + value: notice + - uuid: cccc0976a62b47b1a558d521704c125d + name: 'Load: Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.32.0]' + key: 'load.voltage[loadVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: PROSTAR-PWM + Description:Load Voltage + Scaling Factor:1.0 + Units:V + Range:[0, 80] + Modbus address:0x0014 + tags: + - tag: component + value: load + - uuid: 7c1c1e03425c4b4bb176cf45458b916a + name: 'Status: Alarms' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.59.0]' + key: 'status.alarms[alarms.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: PROSTAR-PWM + Description:Alarms + Modbus addresses:H=0x0038 L=0x0039 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'rtsOpen', + 'rtsShorted', + 'rtsDisconnected', + 'heatsinkTempSensorOpen', + 'heatsinkTempSensorShorted', + 'heatsinkTempLimit', + 'currentLimit', + 'currentMeasurementError', + 'batterySenseOutOfRange', + 'batterySenseDisconnected', + 'uncalibrated', + 'batteryTempOutOfRange', + 'fp10SupplyOutOfRange', + 'mosfetOpen', + 'arrayCurrentOffset', + 'loadCurrentOffset', + 'p33SupplyOutOfRange', + 'p12SupplyOutOfRange', + 'hightInputVoltageLimit', + 'controllerReset', + 'loadLvd', + 'logTimeout', + 'eepromAccessFailure' + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No alarms'; + tags: + - tag: component + value: status + triggers: + - uuid: 67fd46f034c3486e9af3cabfc5dc8056 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","arrayCurrentOffset")=2' + name: 'Morningstar ProStar PWM: Status: Device has "arrayCurrentOffset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 31cc0b05b83045de80a7d07f26545010 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","batterySenseDisconnected")=2' + name: 'Morningstar ProStar PWM: Status: Device has "batterySenseDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 9e498d21bc7f4ca1937f1628f4b1ea55 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","batterySenseOutOfRange")=2' + name: 'Morningstar ProStar PWM: Status: Device has "batterySenseOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 8a09c7609f9a45cea5b217757a7d2e5e + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","batteryTempOutOfRange")=2' + name: 'Morningstar ProStar PWM: Status: Device has "batteryTempOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: b173b8ca12f8464aae6476009b4c89e8 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","controllerReset")=2' + name: 'Morningstar ProStar PWM: Status: Device has "controllerReset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: cdbac88810ff49caa35771e661d8b312 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","currentLimit")=2' + name: 'Morningstar ProStar PWM: Status: Device has "currentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 7758388df28d4540ba393f4423fef00a + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","currentMeasurementError")=2' + name: 'Morningstar ProStar PWM: Status: Device has "currentMeasurementError" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: a56fef1f61c44ba884ec448b0d306c1d + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","eepromAccessFailure")=2' + name: 'Morningstar ProStar PWM: Status: Device has "eepromAccessFailure" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: fefea5daa03d453c8c5148ddb39997f9 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","fp10SupplyOutOfRange")=2' + name: 'Morningstar ProStar PWM: Status: Device has "fp10SupplyOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: c252c82aff2a4ac680965115cb2fab64 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempLimit")=2' + name: 'Morningstar ProStar PWM: Status: Device has "heatsinkTempLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 5b93a0a09a62481d8096ec743c2ceaff + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorOpen")=2' + name: 'Morningstar ProStar PWM: Status: Device has "heatsinkTempSensorOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: f28e5143a238470ba93c1345c814f87d + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorShorted")=2' + name: 'Morningstar ProStar PWM: Status: Device has "heatsinkTempSensorShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 75c84ef378984fca854b34a8ef79668c + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","hightInputVoltageLimit")=2' + name: 'Morningstar ProStar PWM: Status: Device has "hightInputVoltageLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 5c1551f7e2be40e0b8b50ed263f8e293 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","loadCurrentOffset")=2' + name: 'Morningstar ProStar PWM: Status: Device has "loadCurrentOffset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 665117c5b9b64ea09a1d661e9c40fc43 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","loadLvd")=2' + name: 'Morningstar ProStar PWM: Status: Device has "loadLvd" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: b89c002c859c419ea748b43d575e9e27 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","logTimeout")=2' + name: 'Morningstar ProStar PWM: Status: Device has "logTimeout" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 17f51e7b248b4e63934e8b529b85b2ef + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","mosfetOpen")=2' + name: 'Morningstar ProStar PWM: Status: Device has "mosfetOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 75e23772250741d0b1fc1ddff2a72ef6 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","p12SupplyOutOfRange")=2' + name: 'Morningstar ProStar PWM: Status: Device has "p12SupplyOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: fc374c9ac9fa4f979fbff9f7c7d83565 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","p33SupplyOutOfRange")=2' + name: 'Morningstar ProStar PWM: Status: Device has "p33SupplyOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: fbec2a1fdbe54d8da352471acf67bad1 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","rtsDisconnected")=2' + name: 'Morningstar ProStar PWM: Status: Device has "rtsDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 915da6e7b1cd410da9a6c68e3b4abd85 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","rtsShorted")=2' + name: 'Morningstar ProStar PWM: Status: Device has "rtsShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: e8bf2213a5444e2c9923b6f093d43f75 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.alarms[alarms.0],#3,"like","uncalibrated")=2' + name: 'Morningstar ProStar PWM: Status: Device has "uncalibrated" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 2517d96e51c14372a0336c9a6ed5d078 + name: 'Status: Array Faults' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.46.0]' + key: 'status.array_faults[arrayFaults.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: PROSTAR-PWM + Description:Array Faults + Modbus address:0x0022 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'overcurrent', + 'mosfetSShorted', + 'software', + 'batteryHvd', + 'arrayHvd', + 'customSettingsEdit', + 'rtsShorted', + 'rtsNoLongerValid', + 'localTempSensorDamaged', + 'batteryLowVoltageDisconnect', + 'slaveTimeout', + 'dipSwitchChanged', + 'p3Fault', + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No faults'; + tags: + - tag: component + value: status + triggers: + - uuid: b2ff69793e124031a79a668b03678fac + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","arrayHvd")=2' + name: 'Morningstar ProStar PWM: Status: Device has "arrayHvd" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: a4ca36ccaa9d45ceb79303afef1c49f0 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","batteryHvd")=2' + name: 'Morningstar ProStar PWM: Status: Device has "batteryHvd" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: f4d1120afb13456b9d45f8795dbc30b7 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","batteryLowVoltageDisconnect")=2' + name: 'Morningstar ProStar PWM: Status: Device has "batteryLowVoltageDisconnect" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 9e5f2c575945458ea8a39f33cb23b833 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","customSettingsEdit")=2' + name: 'Morningstar ProStar PWM: Status: Device has "customSettingsEdit" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: fd904f4469324784ac2c469e64069f94 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","dipSwitchChanged")=2' + name: 'Morningstar ProStar PWM: Status: Device has "dipSwitchChanged" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 62076ce0967049c8bde39f71afcb85d9 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","localTempSensorDamaged")=2' + name: 'Morningstar ProStar PWM: Status: Device has "localTempSensorDamaged" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: ea8487afe1c14bc08f3d9fd7f75d208f + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","mosfetSShorted")=2' + name: 'Morningstar ProStar PWM: Status: Device has "mosfetSShorted" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: b0bb139541ae493bafc40dac9074d898 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","overcurrent")=2' + name: 'Morningstar ProStar PWM: Status: Device has "overcurrent" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 8af94d7ff1a84e18b10122b0e3743d45 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","p3Fault")=2' + name: 'Morningstar ProStar PWM: Status: Device has "p3Fault" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: b41cb2e05acb40f59efa50a25f66cd62 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","rtsNoLongerValid")=2' + name: 'Morningstar ProStar PWM: Status: Device has "rtsNoLongerValid" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d99c3f126c7e480cb4fcc705349eb61d + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","rtsShorted")=2' + name: 'Morningstar ProStar PWM: Status: Device has "rtsShorted" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 711b28f19cb74c0faeef73263ca1fb8f + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","slaveTimeout")=2' + name: 'Morningstar ProStar PWM: Status: Device has "slaveTimeout" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: e4a261d750d546c7b5d5067dd9a0ec25 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.array_faults[arrayFaults.0],#3,"like","software")=2' + name: 'Morningstar ProStar PWM: Status: Device has "software" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 2c9f864ac33b4c2d992459c6519d045a + name: 'Status: Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: status.hw.uptime + units: uptime + description: 'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + - uuid: 1cd47d04af104cb9ab1cd7dc745a6aea + name: 'Status: Load Faults' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.54.0]' + key: 'status.load_faults[loadFaults.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: PROSTAR-PWM + Description:Load Faults + Modbus address:0x002F + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'externalShortCircuit', + 'overcurrent', + 'mosfetShorted', + 'software', + 'loadHvd', + 'highTempDisconnect', + 'dipSwitchChanged', + 'customSettingsEdit', + 'p3Fault' + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No faults'; + tags: + - tag: component + value: status + triggers: + - uuid: 99ab5f0d3014459a8cd7d137d3a1f688 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.load_faults[loadFaults.0],#3,"like","customSettingsEdit")=2' + name: 'Morningstar ProStar PWM: Status: Device has "customSettingsEdit" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 77752192092f4f1caceef19c3c164b72 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.load_faults[loadFaults.0],#3,"like","dipSwitchChanged")=2' + name: 'Morningstar ProStar PWM: Status: Device has "dipSwitchChanged" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d2e55501d89844aeb47f7887a11754a9 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.load_faults[loadFaults.0],#3,"like","externalShortCircuit")=2' + name: 'Morningstar ProStar PWM: Status: Device has "externalShortCircuit" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: a6548502cfc4406098ba3129af8efcb5 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.load_faults[loadFaults.0],#3,"like","highTempDisconnect")=2' + name: 'Morningstar ProStar PWM: Status: Device has "highTempDisconnect" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 6e8f0127bc7b42dea9d867ab174f458c + expression: 'count(/Morningstar ProStar PWM by SNMP/status.load_faults[loadFaults.0],#3,"like","loadHvd")=2' + name: 'Morningstar ProStar PWM: Status: Device has "loadHvd" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 2a303d4712e244a9b051fb1b0247fac5 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.load_faults[loadFaults.0],#3,"like","mosfetShorted")=2' + name: 'Morningstar ProStar PWM: Status: Device has "mosfetShorted" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 5720e2e15e5f42099fd7de361f62c99a + expression: 'count(/Morningstar ProStar PWM by SNMP/status.load_faults[loadFaults.0],#3,"like","overcurrent")=2' + name: 'Morningstar ProStar PWM: Status: Device has "overcurrent" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 2f522d50a8124ed2a8af4d7b6417c31c + expression: 'count(/Morningstar ProStar PWM by SNMP/status.load_faults[loadFaults.0],#3,"like","p3Fault")=2' + name: 'Morningstar ProStar PWM: Status: Device has "p3Fault" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: e75abe852b9c4e1d91a1f8f83622ef64 + expression: 'count(/Morningstar ProStar PWM by SNMP/status.load_faults[loadFaults.0],#3,"like","software")=2' + name: 'Morningstar ProStar PWM: Status: Device has "software" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 42f6a75d923d4262b37d85c4f7d1d322 + name: 'Status: Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: status.net.uptime + units: uptime + description: 'The time (in hundredths of a second) since the network management portion of the system was last re-initialized.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + triggers: + - uuid: 16c1444a745a47e59fd22bd1a64baef3 + expression: 'nodata(/Morningstar ProStar PWM by SNMP/status.net.uptime,5m)=1' + name: 'Morningstar ProStar PWM: Status: Failed to fetch data' + event_name: 'Morningstar ProStar PWM: Status: Failed to fetch data (or no data for 5m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 5 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f4b7bfb000754a17b4719863d3755519 + name: 'Battery: Target Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.48.0]' + key: 'target.voltage[targetVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: PROSTAR-PWM + Description:Target Regulation Voltage + Scaling Factor:1.0 + Units:V + Range:[0.0, 80.0] + Modbus address:0x0024 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: battery + - uuid: 13d3479a7b5940b5a53d5f13bea9e2d1 + name: 'Temperature: Ambient' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.40.0]' + key: 'temp.ambient[ambientTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: PROSTAR-PWM + Description:Ambient Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-128, 127] + Modbus address:0x001C + tags: + - tag: component + value: temperature + - uuid: 39763f7fccd94aefb720a34871c0962b + name: 'Temperature: Battery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.39.0]' + key: 'temp.battery[batteryTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: PROSTAR-PWM + Description:Battery Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-128, 127] + Modbus address:0x001B + tags: + - tag: component + value: temperature + triggers: + - uuid: 46eb3a0e80294a4db8324d56337ed712 + expression: 'min(/Morningstar ProStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + name: 'Morningstar ProStar PWM: Temperature: Critically high battery temperature' + event_name: 'Morningstar ProStar PWM: Temperature: Critically high battery temperature (over {$BATTERY.TEMP.MAX.CRIT}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: c3f3ba5b2cab4481bb62fa8527554e96 + expression: 'max(/Morningstar ProStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + name: 'Morningstar ProStar PWM: Temperature: Critically low battery temperature' + event_name: 'Morningstar ProStar PWM: Temperature: Critically low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 80aaf1de029b4d6eadce9f2a946f6dde + expression: 'min(/Morningstar ProStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.WARN}' + name: 'Morningstar ProStar PWM: Temperature: High battery temperature' + event_name: 'Morningstar ProStar PWM: Temperature: High battery temperature (over {$BATTERY.TEMP.MAX.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar PWM: Temperature: Critically high battery temperature' + expression: 'min(/Morningstar ProStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + tags: + - tag: scope + value: notice + - uuid: cf1db336ea124f9a9fd6eb367f93f0e8 + expression: 'max(/Morningstar ProStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.WARN}' + name: 'Morningstar ProStar PWM: Temperature: Low battery temperature' + event_name: 'Morningstar ProStar PWM: Temperature: Low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar PWM: Temperature: Critically low battery temperature' + expression: 'max(/Morningstar ProStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 1d13bd3ea24a4fcab3cd5b7586e6033a + name: 'Temperature: Heatsink' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.38.0]' + key: 'temp.heatsink[heatsinkTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: PROSTAR-PWM + Description:Heatsink Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-128, 127] + Modbus address:0x001A + tags: + - tag: component + value: temperature + discovery_rules: + - uuid: 17148797def9484ba26b0afdcc44bfd5 + name: 'Battery voltage discovery' + type: DEPENDENT + key: battery.voltage.discovery + delay: '0' + description: 'Discovery for battery voltage triggers' + item_prototypes: + - uuid: 6e4ed5ae449c48eeb328d30b76d083a2 + name: 'Battery: Voltage{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.6.30.0]' + key: 'battery.voltage[batteryTerminalVoltage.0{#SINGLETON}]' + value_type: FLOAT + units: V + description: | + MIB: PROSTAR-PWM + Description:Control State + Modbus address:0x0021 + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: e89cf2b8066840c2876642f0d8db1edd + expression: 'min(/Morningstar ProStar PWM by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + name: 'Morningstar ProStar PWM: Battery: Critically high battery voltage' + event_name: 'Morningstar ProStar PWM: Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 8356aba9afb242b09902873a5f0e1d47 + expression: 'max(/Morningstar ProStar PWM by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + name: 'Morningstar ProStar PWM: Battery: Critically low battery voltage' + event_name: 'Morningstar ProStar PWM: Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 77f130af976c43edb8c823de5cbd57b2 + expression: 'min(/Morningstar ProStar PWM by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.WARN}' + name: 'Morningstar ProStar PWM: Battery: High battery voltage' + event_name: 'Morningstar ProStar PWM: Battery: High battery voltage (over {#VOLTAGE.MAX.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar PWM: Battery: Critically high battery voltage' + expression: 'min(/Morningstar ProStar PWM by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: 6c288c8b28db4f8e95c8ad2aa8b838ef + expression: 'max(/Morningstar ProStar PWM by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.WARN}' + name: 'Morningstar ProStar PWM: Battery: Low battery voltage' + event_name: 'Morningstar ProStar PWM: Battery: Low battery voltage (below {#VOLTAGE.MIN.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar ProStar PWM: Battery: Critically low battery voltage' + expression: 'max(/Morningstar ProStar PWM by SNMP/battery.voltage[batteryTerminalVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 8ecd4f88627a4dadb132fdbb6d911b6b + name: 'Voltage: Battery/Load{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar ProStar PWM by SNMP' + key: 'battery.voltage[batteryTerminalVoltage.0{#SINGLETON}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar ProStar PWM by SNMP' + key: 'load.voltage[loadVoltage.0]' + master_item: + key: 'battery.voltage.discovery[batteryTerminalVoltage.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var v_range = [ + [[0, 18], [12, 15, 11.5, 15.5]], + [[18, 36], [24, 30, 23, 31]], + [[36, 99], [48, 60, 46, 62]], + ], + result = []; + + for (var idx in v_range) { + if (v_range[idx][0][0] < value && value <= v_range[idx][0][1]) { + result = [{ + '{#VOLTAGE.MIN.WARN}': parseInt({$VOLTAGE.MIN.WARN}) || v_range[idx][1][0], + '{#VOLTAGE.MAX.WARN}': parseInt({$VOLTAGE.MAX.WARN}) || v_range[idx][1][1], + '{#VOLTAGE.MIN.CRIT}': parseInt({$VOLTAGE.MIN.CRIT}) || v_range[idx][1][2], + '{#VOLTAGE.MAX.CRIT}': parseInt({$VOLTAGE.MAX.CRIT}) || v_range[idx][1][3], + '{#SINGLETON}': '' + }]; + break; + } + } + + return JSON.stringify(result); + tags: + - tag: class + value: power + - tag: target + value: morningstar + macros: + - macro: '{$BATTERY.TEMP.MAX.CRIT}' + value: '60' + description: 'Battery high temperature critical value' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '45' + description: 'Battery high temperature warning value' + - macro: '{$BATTERY.TEMP.MIN.CRIT}' + value: '-20' + description: 'Battery low temperature critical value' + - macro: '{$BATTERY.TEMP.MIN.WARN}' + value: '0' + description: 'Battery low temperature warning value' + - macro: '{$CHARGE.STATE.CRIT}' + value: '4' + description: fault + - macro: '{$CHARGE.STATE.WARN}' + value: '2' + description: disconnect + - macro: '{$LOAD.STATE.CRIT:"fault"}' + value: '4' + description: fault + - macro: '{$LOAD.STATE.CRIT:"lvd"}' + value: '3' + description: lvd + - macro: '{$LOAD.STATE.WARN:"disconnect"}' + value: '5' + description: disconnect + - macro: '{$LOAD.STATE.WARN:"lvdWarning"}' + value: '2' + description: lvdWarning + - macro: '{$LOAD.STATE.WARN:"override"}' + value: '7' + description: override + - macro: '{$VOLTAGE.MAX.CRIT}' + - macro: '{$VOLTAGE.MAX.WARN}' + - macro: '{$VOLTAGE.MIN.CRIT}' + - macro: '{$VOLTAGE.MIN.WARN}' + dashboards: + - uuid: eb560f95bfa3418b8b614ef066b36dde + name: 'Morningstar ProStar PWM: Overview' + pages: + - widgets: + - type: graph + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar ProStar PWM by SNMP' + name: 'Array: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '4' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar ProStar PWM by SNMP' + name: 'Current: Charge/Load' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '8' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar ProStar PWM by SNMP' + name: 'Temperature: Ambient/Battery/Heatsink' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: f94eb6ad54c44281878c7c018c6209d1 + name: 'ProStar PWM charge state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: NightCheck + - value: '2' + newvalue: Disconnect + - value: '3' + newvalue: Night + - value: '4' + newvalue: Fault + - value: '5' + newvalue: Bulk + - value: '6' + newvalue: Pwm + - value: '7' + newvalue: Float + - value: '8' + newvalue: Equalize + - uuid: f0be8765c74e4c4788d4ff99a6c5ccd4 + name: 'ProStar PWM load state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: Normal + - value: '2' + newvalue: LvdWarning + - value: '3' + newvalue: Lvd + - value: '4' + newvalue: Fault + - value: '5' + newvalue: Disconnect + - value: '6' + newvalue: NormalOff + - value: '7' + newvalue: Override + - value: '8' + newvalue: NotUsed + triggers: + - uuid: dea364bf454746bca6be38d7e0759d06 + expression: '(last(/Morningstar ProStar PWM by SNMP/status.hw.uptime)>0 and last(/Morningstar ProStar PWM by SNMP/status.hw.uptime)<10m) or (last(/Morningstar ProStar PWM by SNMP/status.hw.uptime)=0 and last(/Morningstar ProStar PWM by SNMP/status.net.uptime)<10m)' + name: 'Morningstar ProStar PWM: Status: Device has been restarted' + event_name: 'Morningstar ProStar PWM: Status: Device has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 730d1e1e43224d1ea7b08f53988a7a60 + name: 'Array: Voltage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar ProStar PWM by SNMP' + key: 'array.voltage[arrayVoltage.0]' + - uuid: 252a40cfba4242deac69f8ed77a04b84 + name: 'Current: Charge/Load' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar ProStar PWM by SNMP' + key: 'charge.current[chargeCurrent.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar ProStar PWM by SNMP' + key: 'load.current[loadCurrent.0]' + - uuid: 94e4d2db752b4c54a8b497516b515fe0 + name: 'Temperature: Ambient/Battery/Heatsink' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar ProStar PWM by SNMP' + key: 'temp.ambient[ambientTemperature.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar ProStar PWM by SNMP' + key: 'temp.battery[batteryTemperature.0]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Morningstar ProStar PWM by SNMP' + key: 'temp.heatsink[heatsinkTemperature.0]' diff --git a/Morningstar_SunSaver_MPPT_by_SNMP.yaml b/Morningstar_SunSaver_MPPT_by_SNMP.yaml new file mode 100644 index 0000000..6751116 --- /dev/null +++ b/Morningstar_SunSaver_MPPT_by_SNMP.yaml @@ -0,0 +1,1222 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: f1336fd88ab0415a9c02892a71e50032 + template: 'Morningstar SunSaver MPPT by SNMP' + name: 'Morningstar SunSaver MPPT by SNMP' + description: | + MIBs used: + SUNSAVER-MPPT + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 9836b1fc81b84a44b2a708291bd5bf1a + name: 'Array: Sweep Pmax' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.57.0]' + key: 'array.sweep_pmax[arrayMaxPowerSweep.0]' + value_type: FLOAT + units: W + description: | + MIB: SUNSAVER-MPPT + Description:Array Open Circuit Voltage + Scaling Factor:0.0030517578125 + Units:V + Range:[0.0, 80.0] + Modbus address:0x002A + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01509857178' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: array + - uuid: 0842746ca41c44128a575113307259e2 + name: 'Array: Sweep Vmp' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.56.0]' + key: 'array.sweep_vmp[arrayVmp.0]' + value_type: FLOAT + units: V + description: | + MIB: SUNSAVER-MPPT + Description:Array Max. Power Point Voltage + Scaling Factor:0.0030517578125 + Units:V + Range:[0.0, 5000.0] + Modbus address:0x0028 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.003051757813' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: array + - uuid: 0e3371208513416ab1b9afdf2c3b2c08 + name: 'Array: Sweep Voc' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.58.0]' + key: 'array.sweep_voc[arrayVoc.0]' + value_type: FLOAT + units: V + description: | + MIB: SUNSAVER-MPPT + Description:Array Open Circuit Voltage + Scaling Factor:0.0030517578125 + Units:V + Range:[0.0, 80.0] + Modbus address:0x002A + preprocessing: + - type: MULTIPLIER + parameters: + - '0.003051757813' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: array + - uuid: da1f347b28dd4fbeb123f228adefb0ed + name: 'Array: Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.31.0]' + key: 'array.voltage[arrayVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: SUNSAVER-MPPT + Description:Array Voltage + Scaling Factor:0.0030517578125 + Units:V + Range:[0, 80] + Modbus address:0x0009 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.003051757813' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: array + - uuid: f8803a1390b745f08673d4ea998548a9 + name: 'Battery: Battery Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.30.0]' + key: 'battery.voltage.discovery[batteryVoltage.0]' + delay: 15m + history: '0' + value_type: FLOAT + units: V + description: 'MIB: SUNSAVER-MPPT' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.003051757813' + tags: + - tag: component + value: battery + - tag: component + value: discovery + - tag: component + value: raw + - uuid: a36313ef0933403788a42de8a62b4838 + name: 'Battery: Charge Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.33.0]' + key: 'charge.current[chargeCurrent.0]' + value_type: FLOAT + units: A + description: | + MIB: SUNSAVER-MPPT + Description:Target Regulation Voltage + Scaling Factor:0.0030517578125 + Units:V + Range:[0.0, 80.0] + Modbus address:0x0014 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.002415771484' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + - uuid: 4da765c8e26540c190ea07be08b87abc + name: 'Battery: Charge State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.39.0]' + key: 'charge.state[chargeState.0]' + value_type: FLOAT + description: | + MIB: SUNSAVER-MPPT + Description:Control State + Modbus address:0x0011 + + 0: Start + 1: NightCheck + 2: Disconnect + 3: Night + 4: Fault + 5: BulkMppt + 6: Pwm + 7: Float + 8: Equalize + valuemap: + name: 'SunSaver MPPT charge state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: battery + triggers: + - uuid: 0362139c66f4464db8c022b9ffce5502 + expression: 'last(/Morningstar SunSaver MPPT by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.CRIT}' + name: 'Morningstar SunSaver MPPT: Battery: Device charge in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d5439cee53b148ecb4186286c4e93ada + expression: 'last(/Morningstar SunSaver MPPT by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.WARN}' + name: 'Morningstar SunSaver MPPT: Battery: Device charge in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar SunSaver MPPT: Battery: Device charge in critical state' + expression: 'last(/Morningstar SunSaver MPPT by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 149545b9154044e3af27b4e9ad809c0e + name: 'Counter: Charge Amp-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.43.0]' + key: 'counter.charge_amp_hours[ahChargeResettable.0]' + value_type: FLOAT + units: Ah + description: | + MIB: SUNSAVER-MPPT + Description:Ah Charge(Resettable) + Scaling Factor:0.1 + Units:Ah + Range:[0.0, 4294967294] + Modbus addresses:H=0x0015 L=0x0016 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + tags: + - tag: component + value: counter + - uuid: f6d0f89c747b4418ad34c32b5ac9a5b9 + name: 'Counter: Charge KW-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.45.0]' + key: 'counter.charge_kw_hours[kwhCharge.0]' + units: '!kWh' + description: 'MIB: SUNSAVER-MPPT' + tags: + - tag: component + value: counter + - uuid: 28e679eace174d289ca5ccf90f3b9150 + name: 'Counter: Load Amp-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.49.0]' + key: 'counter.load_amp_hours[ahLoadResettable.0]' + value_type: FLOAT + units: Ah + description: | + MIB: SUNSAVER-MPPT + Description:Ah Load(Resettable) + Scaling Factor:0.1 + Units:Ah + Range:[0.0, 4294967294] + Modbus addresses:H=0x001D L=0x001E + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + tags: + - tag: component + value: counter + - uuid: 6491ee507d9a4c099852d33e57df48a9 + name: 'Load: Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.34.0]' + key: 'load.current[loadCurrent.0]' + value_type: FLOAT + units: A + description: | + MIB: SUNSAVER-MPPT + Description:Load Current + Scaling Factor:0.002415771484375 + Units:A + Range:[0, 60] + Modbus address:0x000C + preprocessing: + - type: MULTIPLIER + parameters: + - '0.002415771484' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: load + - uuid: c5dfef2deee445ec88e2d63dbfbbaf68 + name: 'Load: State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.46.0]' + key: 'load.state[loadState.0]' + value_type: FLOAT + description: | + MIB: SUNSAVER-MPPT + Description:Load State + Modbus address:0x001A + + 0: Start + 1: Normal + 2: LvdWarning + 3: Lvd + 4: Fault + 5: Disconnect + 6: NormalOff + 7: Override + 8: NotUsed + valuemap: + name: 'SunSaver MPPT load state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: load + triggers: + - uuid: bbd3a89b012a40daa646ec7113d43e43 + expression: 'last(/Morningstar SunSaver MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar SunSaver MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"fault"}' + name: 'Morningstar SunSaver MPPT: Load: Device load in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 8f6967c1b577431c995a3c13f8cdb1c1 + expression: 'last(/Morningstar SunSaver MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.WARN:"lvdWarning"} or last(/Morningstar SunSaver MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.WARN:"override"}' + name: 'Morningstar SunSaver MPPT: Load: Device load in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar SunSaver MPPT: Load: Device load in critical state' + expression: 'last(/Morningstar SunSaver MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar SunSaver MPPT by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"fault"}' + tags: + - tag: scope + value: notice + - uuid: a9ca69fcedbb4524a8eb4b92b975008e + name: 'Load: Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.32.0]' + key: 'load.voltage[loadVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: SUNSAVER-MPPT + Description:Load Voltage + Scaling Factor:0.0030517578125 + Units:V + Range:[0, 80] + Modbus address:0x000A + preprocessing: + - type: MULTIPLIER + parameters: + - '0.003051757813' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: load + - uuid: 91f2c1893b594e808032eb0140247d7a + name: 'Status: Alarms' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.52.0]' + key: 'status.alarms[alarms.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: SUNSAVER-MPPT + Description:Alarms + Modbus addresses:H=0x0023 L=0x0024 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'rtsOpen', + 'rtsShorted', + 'rtsDisconnected', + 'heatsinkTempSensorOpen', + 'heatsinkTempSensorShorted', + 'sspptHot', + 'currentLimit', + 'currentOffset', + 'undefined', + 'undefined1', + 'uncalibrated', + 'rtsMiswire', + 'undefined12', + 'undefined123', + 'systemMiswire', + 'mosfetSOpen', + 'p12VoltageReferenceOff', + 'highVaCurrentLimit', + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No alarms'; + tags: + - tag: component + value: status + triggers: + - uuid: 86220f6cc9164490b6d80be4a249e749 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","currentLimit")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "currentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 69016ea6a1204435b3ddb8de6b8944dc + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","currentOffset")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "currentOffset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 2c02465ea74e4c63ab783d235c8f1a30 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorOpen")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "heatsinkTempSensorOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 1aa289c68f0b4b44a043281e6df9e462 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorShorted")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "heatsinkTempSensorShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 6d0ce7d6e2cc407ba0f4d989bdd9a141 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","highVaCurrentLimit")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "highVaCurrentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 718a3426363040e1ab82864635444056 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","mosfetSOpen")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "mosfetSOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 4eb4df0b4cf04a198190312cdb33538f + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","p12VoltageReferenceOff")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "p12VoltageReferenceOff" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: e2ac890bb16d4e0798b0410f33c8a860 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","rtsDisconnected")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "rtsDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 3b02b27bd4674ae3b820730cee8e611a + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","rtsMiswire")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "rtsMiswire" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: d253c037d5974ee38e888162687b96ef + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","rtsShorted")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "rtsShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 1bea0c0e01314dbaa1cfdfa5a0625755 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","sspptHot")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "sspptHot" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: d28d0e51500a45859ccb6969d9b5493f + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","systemMiswire")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "systemMiswire" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 427f75a98d4440a38e40522bccec03bb + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.alarms[alarms.0],#3,"like","uncalibrated")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "uncalibrated" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: f44756455697466cb905aa6ae4d0220d + name: 'Status: Array Faults' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.40.0]' + key: 'status.array_faults[arrayFaults.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: SUNSAVER-MPPT + Description:Array Faults + Modbus address:0x0012 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'overcurrent', + 'mosfetSShorted', + 'softwareFault', + 'batteryHvd', + 'arrayHvd', + 'customSettingsEdit', + 'rtsShorted', + 'rtsNoLongerValid', + 'localTempSensorDamaged', + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No faults'; + tags: + - tag: component + value: status + triggers: + - uuid: 2d8b0bdeb95c49d68771af384d985311 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","arrayHvd")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "arrayHvd" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 2e07c5d51691462ca0961d77ea974bd5 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","batteryHvd")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "batteryHvd" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 65d2cd1ff93f45db9d7f572ee0a8f568 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","customSettingsEdit")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "customSettingsEdit" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: fe217d10399044d7b1008f0010691e1e + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","localTempSensorDamaged")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "localTempSensorDamaged" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: fa62f9e4f0f84e278938ba18785a1b5f + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","mosfetSShorted")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "mosfetSShorted" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 6f450621a12e46369745b2a0fed018ac + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","overcurrent")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "overcurrent" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 7ea38daa41a94ab3a9c1efc34276b17b + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","rtsNoLongerValid")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "rtsNoLongerValid" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 91edc885c3f140cc85bb6085f06e6820 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","rtsShorted")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "rtsShorted" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: cae74543a0da478d80b9302a2431fe4b + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.array_faults[arrayFaults.0],#3,"like","softwareFault")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "softwareFault" array faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 76a660b88bb74e90971bdaec703d3c17 + name: 'Status: Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: status.hw.uptime + units: uptime + description: 'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + - uuid: 24762b0c264745548150a4bd5913156f + name: 'Status: Load Faults' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.47.0]' + key: 'status.load_faults[loadFaults.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: SUNSAVER-MPPT + Description:Array Faults + Modbus address:0x0012 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'externalShortCircuit', + 'overcurrent', + 'mosfetShorted', + 'software', + 'loadHvd', + 'highTempDisconnect', + 'customSettingsEdit', + 'unknownLoadFault' + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No faults'; + tags: + - tag: component + value: status + triggers: + - uuid: d086fbb093344723a4bb5fe928e984ff + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","customSettingsEdit")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "customSettingsEdit" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 5743ed062a954330928092fb8574002a + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","externalShortCircuit")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "externalShortCircuit" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 354a1512bca5468585a489dd14fc793d + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","highTempDisconnect")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "highTempDisconnect" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 3640e470580846ac9e1651cba186d0a3 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","loadHvd")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "loadHvd" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d3911d64792e4b88b31cb51a405a1a2e + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","mosfetShorted")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "mosfetShorted" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d1bfa4177c0844ec9fc2bc7270c09338 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","overcurrent")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "overcurrent" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: baaba919b58546f08cdcd1e2791feb27 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","software")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "software" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 41e47074c983421a83b1e500d4591188 + expression: 'count(/Morningstar SunSaver MPPT by SNMP/status.load_faults[loadFaults.0],#3,"like","unknownLoadFault")=2' + name: 'Morningstar SunSaver MPPT: Status: Device has "unknownLoadFault" load faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 63512390f2a04885bf8d0e19653a72b1 + name: 'Status: Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: status.net.uptime + units: uptime + description: 'The time (in hundredths of a second) since the network management portion of the system was last re-initialized.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + triggers: + - uuid: 72e6e08faed647a98a027bd25b6a7106 + expression: 'nodata(/Morningstar SunSaver MPPT by SNMP/status.net.uptime,5m)=1' + name: 'Morningstar SunSaver MPPT: Status: Failed to fetch data' + event_name: 'Morningstar SunSaver MPPT: Status: Failed to fetch data (or no data for 5m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 5 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 52afa576b83b49e69ec8d379fbc42965 + name: 'Battery: Target Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.42.0]' + key: 'target.voltage[targetVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: SUNSAVER-MPPT + Description:Target Regulation Voltage + Scaling Factor:0.0030517578125 + Units:V + Range:[0.0, 80.0] + Modbus address:0x0014 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.003051757813' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + - uuid: 430cf6fcb9b74943a8ca7f1d9d06fa56 + name: 'Temperature: Ambient' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.37.0]' + key: 'temp.ambient[ambientTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: SUNSAVER-MPPT + Description:Ambient Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-128, 127] + Modbus address:0x000F + tags: + - tag: component + value: temperature + - uuid: 157faa85ae244950b4a114b95bad6d50 + name: 'Temperature: Battery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.36.0]' + key: 'temp.battery[batteryTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: SUNSAVER-MPPT + Description:Heatsink Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-128, 127] + Modbus address:0x000D + tags: + - tag: component + value: temperature + triggers: + - uuid: cc121c44be05440a82d3344c530456e5 + expression: 'min(/Morningstar SunSaver MPPT by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + name: 'Morningstar SunSaver MPPT: Temperature: Critically high battery temperature' + event_name: 'Morningstar SunSaver MPPT: Temperature: Critically high battery temperature (over {$BATTERY.TEMP.MAX.CRIT}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 9e0d552b93ae402d98c327420c99d160 + expression: 'max(/Morningstar SunSaver MPPT by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + name: 'Morningstar SunSaver MPPT: Temperature: Critically low battery temperature' + event_name: 'Morningstar SunSaver MPPT: Temperature: Critically low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 95b600e280b94949b41422eb60def010 + expression: 'min(/Morningstar SunSaver MPPT by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.WARN}' + name: 'Morningstar SunSaver MPPT: Temperature: High battery temperature' + event_name: 'Morningstar SunSaver MPPT: Temperature: High battery temperature (over {$BATTERY.TEMP.MAX.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar SunSaver MPPT: Temperature: Critically high battery temperature' + expression: 'min(/Morningstar SunSaver MPPT by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + tags: + - tag: scope + value: notice + - uuid: e351922a0a8c4c53972d9477d47af528 + expression: 'max(/Morningstar SunSaver MPPT by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.WARN}' + name: 'Morningstar SunSaver MPPT: Temperature: Low battery temperature' + event_name: 'Morningstar SunSaver MPPT: Temperature: Low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar SunSaver MPPT: Temperature: Critically low battery temperature' + expression: 'max(/Morningstar SunSaver MPPT by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 5f238fe557a7412cad5f3864e407284e + name: 'Temperature: Heatsink' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.35.0]' + key: 'temp.heatsink[heatsinkTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: SUNSAVER-MPPT + Description:Battery Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-128, 127] + Modbus address:0x000E + tags: + - tag: component + value: temperature + discovery_rules: + - uuid: 81b324d81e6549d59cbf14163181fb48 + name: 'Battery voltage discovery' + type: DEPENDENT + key: battery.voltage.discovery + delay: '0' + description: 'Discovery for battery voltage triggers' + item_prototypes: + - uuid: 903b96b7eb37482da469fc802d3da1b0 + name: 'Battery: Voltage{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.3.30.0]' + key: 'battery.voltage[batteryVoltage.0{#SINGLETON}]' + value_type: FLOAT + units: V + description: | + MIB: SUNSAVER-MPPT + Description:Control State + Modbus address:0x0011 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.003051757813' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: bf4ad2cee8cf41baafa3d81df5fbe4d3 + expression: 'min(/Morningstar SunSaver MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + name: 'Morningstar SunSaver MPPT: Battery: Critically high battery voltage' + event_name: 'Morningstar SunSaver MPPT: Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 2aedfef9b8764881a4768e6b32793820 + expression: 'max(/Morningstar SunSaver MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + name: 'Morningstar SunSaver MPPT: Battery: Critically low battery voltage' + event_name: 'Morningstar SunSaver MPPT: Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: bec4c7a6a1ab44a4adc8e4286b9a41d9 + expression: 'min(/Morningstar SunSaver MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.WARN}' + name: 'Morningstar SunSaver MPPT: Battery: High battery voltage' + event_name: 'Morningstar SunSaver MPPT: Battery: High battery voltage (over {#VOLTAGE.MAX.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar SunSaver MPPT: Battery: Critically high battery voltage' + expression: 'min(/Morningstar SunSaver MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: c06425d8a0a24b5f80fd0591be61b3f0 + expression: 'max(/Morningstar SunSaver MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.WARN}' + name: 'Morningstar SunSaver MPPT: Battery: Low battery voltage' + event_name: 'Morningstar SunSaver MPPT: Battery: Low battery voltage (below {#VOLTAGE.MIN.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar SunSaver MPPT: Battery: Critically low battery voltage' + expression: 'max(/Morningstar SunSaver MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: b3520796c85a45df954633bc5f87d80b + name: 'Voltage: Battery/Load{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar SunSaver MPPT by SNMP' + key: 'battery.voltage[batteryVoltage.0{#SINGLETON}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar SunSaver MPPT by SNMP' + key: 'load.voltage[loadVoltage.0]' + master_item: + key: 'battery.voltage.discovery[batteryVoltage.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var v_range = [ + [[0, 18], [12, 15, 11.5, 15.5]], + [[18, 36], [24, 30, 23, 31]], + [[36, 99], [48, 60, 46, 62]], + ], + result = []; + + for (var idx in v_range) { + if (v_range[idx][0][0] < value && value <= v_range[idx][0][1]) { + result = [{ + '{#VOLTAGE.MIN.WARN}': parseInt({$VOLTAGE.MIN.WARN}) || v_range[idx][1][0], + '{#VOLTAGE.MAX.WARN}': parseInt({$VOLTAGE.MAX.WARN}) || v_range[idx][1][1], + '{#VOLTAGE.MIN.CRIT}': parseInt({$VOLTAGE.MIN.CRIT}) || v_range[idx][1][2], + '{#VOLTAGE.MAX.CRIT}': parseInt({$VOLTAGE.MAX.CRIT}) || v_range[idx][1][3], + '{#SINGLETON}': '' + }]; + break; + } + } + + return JSON.stringify(result); + tags: + - tag: class + value: power + - tag: target + value: morningstar + macros: + - macro: '{$BATTERY.TEMP.MAX.CRIT}' + value: '60' + description: 'Battery high temperature critical value' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '45' + description: 'Battery high temperature warning value' + - macro: '{$BATTERY.TEMP.MIN.CRIT}' + value: '-20' + description: 'Battery low temperature critical value' + - macro: '{$BATTERY.TEMP.MIN.WARN}' + value: '0' + description: 'Battery low temperature warning value' + - macro: '{$CHARGE.STATE.CRIT}' + value: '4' + description: fault + - macro: '{$CHARGE.STATE.WARN}' + value: '2' + description: disconnect + - macro: '{$LOAD.STATE.CRIT:"fault"}' + value: '4' + description: fault + - macro: '{$LOAD.STATE.CRIT:"lvd"}' + value: '3' + description: lvd + - macro: '{$LOAD.STATE.WARN:"disconnect"}' + value: '5' + description: disconnect + - macro: '{$LOAD.STATE.WARN:"lvdWarning"}' + value: '2' + description: lvdWarning + - macro: '{$LOAD.STATE.WARN:"override"}' + value: '7' + description: override + - macro: '{$VOLTAGE.MAX.CRIT}' + - macro: '{$VOLTAGE.MAX.WARN}' + - macro: '{$VOLTAGE.MIN.CRIT}' + - macro: '{$VOLTAGE.MIN.WARN}' + dashboards: + - uuid: 154e1f8f24fc4a3080e003a5bdd81ff8 + name: 'Morningstar SunSaver MPPT: Overview' + pages: + - widgets: + - type: graph + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar SunSaver MPPT by SNMP' + name: 'Array: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '4' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar SunSaver MPPT by SNMP' + name: 'Current: Charge/Load' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '8' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar SunSaver MPPT by SNMP' + name: 'Temperature: Ambient/Battery/Heatsink' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: b51b9440e801481fbb76f28b4a5431d1 + name: 'SunSaver MPPT charge state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: NightCheck + - value: '2' + newvalue: Disconnect + - value: '3' + newvalue: Night + - value: '4' + newvalue: Fault + - value: '5' + newvalue: BulkMppt + - value: '6' + newvalue: Pwm + - value: '7' + newvalue: Float + - value: '8' + newvalue: Equalize + - uuid: f21076ed51104b84ba4d78dd74bd1a5b + name: 'SunSaver MPPT load state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: Normal + - value: '2' + newvalue: LvdWarning + - value: '3' + newvalue: Lvd + - value: '4' + newvalue: Fault + - value: '5' + newvalue: Disconnect + - value: '6' + newvalue: NormalOff + - value: '7' + newvalue: Override + - value: '8' + newvalue: NotUsed + triggers: + - uuid: fd5dcb256d4547da9c432c1b9c01b0ae + expression: '(last(/Morningstar SunSaver MPPT by SNMP/status.hw.uptime)>0 and last(/Morningstar SunSaver MPPT by SNMP/status.hw.uptime)<10m) or (last(/Morningstar SunSaver MPPT by SNMP/status.hw.uptime)=0 and last(/Morningstar SunSaver MPPT by SNMP/status.net.uptime)<10m)' + name: 'Morningstar SunSaver MPPT: Status: Device has been restarted' + event_name: 'Morningstar SunSaver MPPT: Status: Device has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 6090c266226d431193b00fb3db49ae07 + name: 'Array: Voltage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar SunSaver MPPT by SNMP' + key: 'array.sweep_vmp[arrayVmp.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar SunSaver MPPT by SNMP' + key: 'array.sweep_voc[arrayVoc.0]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Morningstar SunSaver MPPT by SNMP' + key: 'array.voltage[arrayVoltage.0]' + - uuid: ad5b73c7352747a6930c9d8647f70bf1 + name: 'Current: Charge/Load' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar SunSaver MPPT by SNMP' + key: 'charge.current[chargeCurrent.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar SunSaver MPPT by SNMP' + key: 'load.current[loadCurrent.0]' + - uuid: 7b96265600a748728d881f5dfee485d2 + name: 'Temperature: Ambient/Battery/Heatsink' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar SunSaver MPPT by SNMP' + key: 'temp.ambient[ambientTemperature.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar SunSaver MPPT by SNMP' + key: 'temp.battery[batteryTemperature.0]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Morningstar SunSaver MPPT by SNMP' + key: 'temp.heatsink[heatsinkTemperature.0]' diff --git a/Morningstar_SureSine_by_SNMP.yaml b/Morningstar_SureSine_by_SNMP.yaml new file mode 100644 index 0000000..2f8f4b5 --- /dev/null +++ b/Morningstar_SureSine_by_SNMP.yaml @@ -0,0 +1,594 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 3bbfe42c78c74f04a2565431fbdd19e2 + template: 'Morningstar SureSine by SNMP' + name: 'Morningstar SureSine by SNMP' + description: | + MIBs used: + SURESINE + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: c577d82138d04ca689155f01fe32dd74 + name: 'Battery: Battery Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.9.30.0]' + key: 'battery.voltage.discovery[batteryVoltageSlow.0]' + delay: 15m + history: '0' + value_type: FLOAT + units: V + description: 'MIB: SURESINE' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.0002581787109375' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + - tag: component + value: discovery + - tag: component + value: raw + - uuid: 0cbf90bdfbc44bc9939167625c20aaed + name: 'Load: A/C Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.9.31.0]' + key: 'load.ac_current[acCurrent.0]' + value_type: FLOAT + description: | + MIB: SURESINE + Description:AC Output Current + Scaling Factor:0.0001953125 + Units:A + Range:[0.0, 17] + Modbus address:0x0005 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.0001953125' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: load + - uuid: 193eeecf87c24527b5ba4b0df2b66cfc + name: 'Load: State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.9.33.0]' + key: 'load.state[loadState.0]' + value_type: FLOAT + description: | + MIB: SURESINE + Description:Load State + Modbus address:0x000B + + 0: Start + 1: LoadOn + 2: LvdWarning + 3: LowVoltageDisconnect + 4: Fault + 5: Disconnect + 6: NormalOff + 7: UnknownState + 8: Standby + valuemap: + name: 'SureSine load state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: load + triggers: + - uuid: 83a1cad652b445a69541208f81b12c23 + expression: 'last(/Morningstar SureSine by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar SureSine by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"fault"}' + name: 'Morningstar SureSine: Load: Device load in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: bed6bfb29f5d4a3e89b9028b45bfb8b8 + expression: 'last(/Morningstar SureSine by SNMP/load.state[loadState.0])={$LOAD.STATE.WARN:"lvdWarning"} or last(/Morningstar SureSine by SNMP/load.state[loadState.0])={$LOAD.STATE.WARN:"override"}' + name: 'Morningstar SureSine: Load: Device load in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar SureSine: Load: Device load in critical state' + expression: 'last(/Morningstar SureSine by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar SureSine by SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"fault"}' + tags: + - tag: scope + value: notice + - uuid: d15815c3d6024a83ac03425e23d798cd + name: 'Status: Alarms' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.9.34.0]' + key: 'status.alarms[alarms.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: SURESINE + Description:Faults + Modbus address:0x0007 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'heatsinkTempSensorOpen', + 'heatsinkTempSensorShort', + 'unknownAlarm', + 'suresineHot' + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No alarms'; + tags: + - tag: component + value: status + triggers: + - uuid: 6181b0f6c4cf4febaa86039dae994f30 + expression: 'count(/Morningstar SureSine by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorOpen")=2' + name: 'Morningstar SureSine: Status: Device has "heatsinkTempSensorOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: ebe250d8faf543429bd5732114f05fd4 + expression: 'count(/Morningstar SureSine by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorShort")=2' + name: 'Morningstar SureSine: Status: Device has "heatsinkTempSensorShort" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: ff3ee8e7bd074037a99a56f02dfaff72 + expression: 'count(/Morningstar SureSine by SNMP/status.alarms[alarms.0],#3,"like","suresineHot")=2' + name: 'Morningstar SureSine: Status: Device has "suresineHot" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 64c7437f53f74578a85b358f73529322 + expression: 'count(/Morningstar SureSine by SNMP/status.alarms[alarms.0],#3,"like","unknownAlarm")=2' + name: 'Morningstar SureSine: Status: Device has "unknownAlarm" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: d92ff915ccda482db946118238ea2ef3 + name: 'Status: Faults' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.9.35.0]' + key: 'status.faults[faults.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: SURESINE + Description:Faults + Modbus address:0x0007 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'reset', + 'overcurrent', + 'unknownFault', + 'software', + 'highVoltageDisconnect', + 'suresineHot', + 'dipSwitchChanged', + 'customSettingsEdit' + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No faults'; + tags: + - tag: component + value: status + triggers: + - uuid: 438d1fb319234de9aaa74fa565e6c661 + expression: 'count(/Morningstar SureSine by SNMP/status.faults[faults.0],#3,"like","customSettingsEdit")=2' + name: 'Morningstar SureSine: Status: Device has "customSettingsEdit" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 174685e8f89f4e21b7275db6be7623b2 + expression: 'count(/Morningstar SureSine by SNMP/status.faults[faults.0],#3,"like","dipSwitchChanged")=2' + name: 'Morningstar SureSine: Status: Device has "dipSwitchChanged" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 283d5eb818744b25b4275509b0492bfd + expression: 'count(/Morningstar SureSine by SNMP/status.faults[faults.0],#3,"like","highVoltageDisconnect")=2' + name: 'Morningstar SureSine: Status: Device has "highVoltageDisconnect" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: a271f6d0e1504e46966da689b91cf1f7 + expression: 'count(/Morningstar SureSine by SNMP/status.faults[faults.0],#3,"like","overcurrent")=2' + name: 'Morningstar SureSine: Status: Device has "overcurrent" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 88df087dcb434c5d9980d249f077a661 + expression: 'count(/Morningstar SureSine by SNMP/status.faults[faults.0],#3,"like","reset")=2' + name: 'Morningstar SureSine: Status: Device has "reset" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 9fa2ec74f9b34f0082d9173f57e1edf6 + expression: 'count(/Morningstar SureSine by SNMP/status.faults[faults.0],#3,"like","software")=2' + name: 'Morningstar SureSine: Status: Device has "software" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 970e89c852c34a219ad0c1fce357e97a + expression: 'count(/Morningstar SureSine by SNMP/status.faults[faults.0],#3,"like","suresineHot")=2' + name: 'Morningstar SureSine: Status: Device has "suresineHot" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: fe023e11a544470cb09db1585d7f1e83 + expression: 'count(/Morningstar SureSine by SNMP/status.faults[faults.0],#3,"like","unknownFault")=2' + name: 'Morningstar SureSine: Status: Device has "unknownFault" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d1e50f16fab54a8e97372b52cebae18d + name: 'Status: Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: status.hw.uptime + units: uptime + description: 'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + - uuid: cb4a5c3033f84baa8260a8199265e5a9 + name: 'Status: Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: status.net.uptime + units: uptime + description: 'The time (in hundredths of a second) since the network management portion of the system was last re-initialized.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + triggers: + - uuid: db5506294fd945659eae945014332a62 + expression: 'nodata(/Morningstar SureSine by SNMP/status.net.uptime,5m)=1' + name: 'Morningstar SureSine: Status: Failed to fetch data' + event_name: 'Morningstar SureSine: Status: Failed to fetch data (or no data for 5m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 5 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: c6119c74beeb4ab69854d52f2eaa969d + name: 'Temperature: Heatsink' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.9.32.0]' + key: 'temp.heatsink[heatsinkTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: SURESINE + Description:Heatsink Temperature + Scaling Factor:1 + Units:C + Range:[-128, 127] + Modbus address:0x0006 + tags: + - tag: component + value: temperature + discovery_rules: + - uuid: c43e02a5d94343e2b54cba50b3388826 + name: 'Battery voltage discovery' + type: DEPENDENT + key: battery.voltage.discovery + delay: '0' + description: 'Discovery for battery voltage triggers' + item_prototypes: + - uuid: 3a526ad82f7a48c589c3079599e0334e + name: 'Battery: Voltage{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.9.30.0]' + key: 'battery.voltage[batteryVoltageSlow.0{#SINGLETON}]' + value_type: FLOAT + units: V + description: | + MIB: SURESINE + Description:Battery Voltage(slow) + Scaling Factor:0.0002581787109375 + Units:V + Range:[0.0, 17.0] + Modbus address:0x0004 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.0002581787109375' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: 4b27f6ecdc674803a883a8a60e3ddce2 + expression: 'min(/Morningstar SureSine by SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + name: 'Morningstar SureSine: Battery: Critically high battery voltage' + event_name: 'Morningstar SureSine: Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: dfbcd455a92d423fbb841f2d6b6293a8 + expression: 'max(/Morningstar SureSine by SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + name: 'Morningstar SureSine: Battery: Critically low battery voltage' + event_name: 'Morningstar SureSine: Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: e0173479978841ec8607430cf2fb356e + expression: 'min(/Morningstar SureSine by SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.WARN}' + name: 'Morningstar SureSine: Battery: High battery voltage' + event_name: 'Morningstar SureSine: Battery: High battery voltage (over {#VOLTAGE.MAX.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar SureSine: Battery: Critically high battery voltage' + expression: 'min(/Morningstar SureSine by SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: 75a433d7ec28440f947a4aaed3aed33d + expression: 'max(/Morningstar SureSine by SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.WARN}' + name: 'Morningstar SureSine: Battery: Low battery voltage' + event_name: 'Morningstar SureSine: Battery: Low battery voltage (below {#VOLTAGE.MIN.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar SureSine: Battery: Critically low battery voltage' + expression: 'max(/Morningstar SureSine by SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 6cdc54f509c045b0880af6f7f901b6ab + name: 'Voltage: Battery{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar SureSine by SNMP' + key: 'battery.voltage[batteryVoltageSlow.0{#SINGLETON}]' + master_item: + key: 'battery.voltage.discovery[batteryVoltageSlow.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var v_range = [ + [[0, 18], [12, 15, 11.5, 15.5]], + [[18, 36], [24, 30, 23, 31]], + [[36, 99], [48, 60, 46, 62]], + ], + result = []; + + for (var idx in v_range) { + if (v_range[idx][0][0] < value && value <= v_range[idx][0][1]) { + result = [{ + '{#VOLTAGE.MIN.WARN}': parseInt({$VOLTAGE.MIN.WARN}) || v_range[idx][1][0], + '{#VOLTAGE.MAX.WARN}': parseInt({$VOLTAGE.MAX.WARN}) || v_range[idx][1][1], + '{#VOLTAGE.MIN.CRIT}': parseInt({$VOLTAGE.MIN.CRIT}) || v_range[idx][1][2], + '{#VOLTAGE.MAX.CRIT}': parseInt({$VOLTAGE.MAX.CRIT}) || v_range[idx][1][3], + '{#SINGLETON}': '' + }]; + break; + } + } + + return JSON.stringify(result); + tags: + - tag: class + value: power + - tag: target + value: morningstar + macros: + - macro: '{$BATTERY.TEMP.MAX.CRIT}' + value: '60' + description: 'Battery high temperature critical value' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '45' + description: 'Battery high temperature warning value' + - macro: '{$BATTERY.TEMP.MIN.CRIT}' + value: '-20' + description: 'Battery low temperature critical value' + - macro: '{$BATTERY.TEMP.MIN.WARN}' + value: '0' + description: 'Battery low temperature warning value' + - macro: '{$CHARGE.STATE.CRIT}' + value: '4' + description: fault + - macro: '{$CHARGE.STATE.WARN}' + value: '2' + description: disconnect + - macro: '{$LOAD.STATE.CRIT:"fault"}' + value: '4' + description: fault + - macro: '{$LOAD.STATE.CRIT:"lvd"}' + value: '3' + description: lvd + - macro: '{$LOAD.STATE.WARN:"disconnect"}' + value: '5' + description: disconnect + - macro: '{$LOAD.STATE.WARN:"lvdWarning"}' + value: '2' + description: lvdWarning + - macro: '{$LOAD.STATE.WARN:"override"}' + value: '7' + description: override + - macro: '{$VOLTAGE.MAX.CRIT}' + - macro: '{$VOLTAGE.MAX.WARN}' + - macro: '{$VOLTAGE.MIN.CRIT}' + - macro: '{$VOLTAGE.MIN.WARN}' + dashboards: + - uuid: 86ee955124f74ba496ce291b0004f46d + name: 'Morningstar SureSine: Overview' + pages: + - widgets: + - type: graph + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar SureSine by SNMP' + name: 'Current: A/C Load' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '4' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar SureSine by SNMP' + name: 'Temperature: Heatsink' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 1d6f60ea7d414cb8a26ddad70fc352b2 + name: 'SureSine load state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: LoadOn + - value: '2' + newvalue: LvdWarning + - value: '3' + newvalue: LowVoltageDisconnect + - value: '4' + newvalue: Fault + - value: '5' + newvalue: Disconnect + - value: '6' + newvalue: NormalOff + - value: '7' + newvalue: UnknownState + - value: '8' + newvalue: Standby + triggers: + - uuid: f9404001de4c4c1d8438e0b560977398 + expression: '(last(/Morningstar SureSine by SNMP/status.hw.uptime)>0 and last(/Morningstar SureSine by SNMP/status.hw.uptime)<10m) or (last(/Morningstar SureSine by SNMP/status.hw.uptime)=0 and last(/Morningstar SureSine by SNMP/status.net.uptime)<10m)' + name: 'Morningstar SureSine: Status: Device has been restarted' + event_name: 'Morningstar SureSine: Status: Device has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 45df99d33eb0472e946d2f6f7a5a2745 + name: 'Current: A/C Load' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar SureSine by SNMP' + key: 'load.ac_current[acCurrent.0]' + - uuid: e15d5c71b19444f18d5917519d3fdb74 + name: 'Temperature: Heatsink' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar SureSine by SNMP' + key: 'temp.heatsink[heatsinkTemperature.0]' diff --git a/Morningstar_TriStar_MPPT_600V_by_SNMP.yaml b/Morningstar_TriStar_MPPT_600V_by_SNMP.yaml new file mode 100644 index 0000000..999749c --- /dev/null +++ b/Morningstar_TriStar_MPPT_600V_by_SNMP.yaml @@ -0,0 +1,1269 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 2d20a2fbd540492089fdcafc8feb60e3 + template: 'Morningstar TriStar MPPT 600V by SNMP' + name: 'Morningstar TriStar MPPT 600V by SNMP' + description: | + MIBs used: + TRISTAR-MPPT + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 2e83c42d78e8486f936733e3cb6dee6b + name: 'Array: Array Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.31.0]' + key: 'array.current[arrayCurrent.0]' + value_type: FLOAT + units: A + description: | + MIB: TRISTAR-MPPT + Description:Array Current + Scaling Factor:1.0 + Units:A + Range:[-10, 80] + Modbus address:0x001d + tags: + - tag: component + value: array + - uuid: 9750ce4073d9467fa18f0e35f990c081 + name: 'Array: Sweep Pmax' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.33.0]' + key: 'array.sweep_pmax[arrayPmaxLastSweep.0]' + value_type: FLOAT + units: W + description: | + MIB: TRISTAR-MPPT + Description:Pmax (last sweep) + Scaling Factor:1.0 + Units:W + Range:[-10, 5000] + Modbus address:0x003c + tags: + - tag: component + value: array + - uuid: de36a1087b2d4ade8369c620c794c881 + name: 'Array: Sweep Vmp' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.34.0]' + key: 'array.sweep_vmp[arrayVmpLastSweep.0]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Vmp (last sweep) + Scaling Factor:1.0 + Units:V + Range:[-10, 650.0] + Modbus address:0x003d + tags: + - tag: component + value: array + - uuid: a8f4819131fe4247aef9b1cd819b47d9 + name: 'Array: Sweep Voc' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.35.0]' + key: 'array.sweep_voc[arrayVocLastSweep.0]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Voc (last sweep) + Scaling Factor:1.0 + Units:V + Range:[-10, 650.0] + Modbus address:0x003e + tags: + - tag: component + value: array + - uuid: e13c3135ce8649ea9c88d4f9eb56219e + name: 'Array: Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.30.0]' + key: 'array.voltage[arrayVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Array Voltage + Scaling Factor:1.0 + Units:V + Range:[-10, 650] + Modbus address:0x001b + tags: + - tag: component + value: array + - uuid: 058dc403d9b541978aebcb2944ecf75f + name: 'Battery: Battery Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.36.0]' + key: 'battery.voltage.discovery[batteryVoltage.0]' + delay: 15m + history: '0' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Battery voltage + Scaling Factor:1.0 + Units:V + Range:[-10, 80] + Modbus address:0x0018 + tags: + - tag: component + value: battery + - tag: component + value: discovery + - tag: component + value: raw + - uuid: 5e42ba3c9a764b9690feb04d4bf7df45 + name: 'Battery: Charge Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.42.0]' + key: 'charge.current[batteryCurrent.0]' + value_type: FLOAT + units: A + description: | + MIB: TRISTAR-MPPT + Description:Battery Current + Scaling Factor:1.0 + Units:A + Range:[-10, 80] + Modbus address:0x001c + tags: + - tag: component + value: battery + - uuid: 6e168ff947324068aad1fc16d577369d + name: 'Battery: Output Power' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.44.0]' + key: 'charge.output_power[ outputPower.0]' + value_type: FLOAT + units: W + description: | + MIB: TRISTAR-MPPT + Description:Output Power + Scaling Factor:1.0 + Units:W + Range:[-10, 4000] + Modbus address:0x003a + tags: + - tag: component + value: battery + - uuid: aa20a89288c444a492910cb1a7f19499 + name: 'Battery: Charge State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.46.0]' + key: 'charge.state[chargeState.0]' + value_type: FLOAT + description: | + MIB: TRISTAR-MPPT + Description:Charge State + Modbus address:0x0032 + + 0: Start + 1: NightCheck + 2: Disconnect + 3: Night + 4: Fault + 5: Mppt + 6: Absorption + 7: Float + 8: Equalize + 9: Slave + 10: Fixed + valuemap: + name: 'TriStar MPPT 600V charge state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: battery + triggers: + - uuid: ed2b56b78fce47f88b679774640706b5 + expression: 'last(/Morningstar TriStar MPPT 600V by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.CRIT}' + name: 'Morningstar TriStar MPPT 600V: Battery: Device charge in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 6f21bda91cc640809f0f4faf04ba86f4 + expression: 'last(/Morningstar TriStar MPPT 600V by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.WARN}' + name: 'Morningstar TriStar MPPT 600V: Battery: Device charge in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar MPPT 600V: Battery: Device charge in critical state' + expression: 'last(/Morningstar TriStar MPPT 600V by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 3d67ceefb2c443d38051e2d22aca45ce + name: 'Counter: Charge Amp-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.50.0]' + key: 'counter.charge_amp_hours[ahChargeResetable.0]' + value_type: FLOAT + units: Ah + description: | + MIB: TRISTAR-MPPT + Description:Ah Charge Resettable + Scaling Factor:1.0 + Units:Ah + Range:[0.0, 5000] + Modbus addresses:H=0x0034 L=0x0035 + tags: + - tag: component + value: counter + - uuid: 1a7ff2c884784eb4817956e0ecd5b718 + name: 'Counter: Charge KW-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.52.0]' + key: 'counter.charge_kw_hours[kwhChargeResetable.0]' + value_type: FLOAT + units: '!kWh' + description: | + MIB: TRISTAR-MPPT + Description:kWh Charge Resettable + Scaling Factor:1.0 + Units:kWh + Range:[0.0, 65535.0] + Modbus address:0x0038 + tags: + - tag: component + value: counter + - uuid: a2b5a78fe649480ea0cc580b5fa30bde + name: 'Status: Alarms' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.57.0]' + key: 'status.alarms[alarms.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: TRISTAR-MPPT + Description:Alarms + Modbus addresses:H=0x002e L=0x002f + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'rtsOpen', + 'rtsShorted', + 'rtsDisconnected', + 'heatsinkTempSensorOpen', + 'heatsinkTempSensorShorted', + 'highTemperatureCurrentLimit', + 'currentLimit', + 'currentOffset', + 'batterySense', + 'batterySenseDisconnected', + 'uncalibrated', + 'rtsMiswire', + 'highVoltageDisconnect', + 'undefined', + 'systemMiswire', + 'mosfetSOpen', + 'p12VoltageOutOfRange', + 'highArrayVCurrentLimit', + 'maxAdcValueReached', + 'controllerWasReset', + 'alarm21Internal', + 'p3VoltageOutOfRange', + 'derateLimit', + 'arrayCurrentOffset', + 'ee-i2cRetryLimit', + 'ethernetAlarm', + 'lvd', + 'software', + 'fp12VoltageOutOfRange', + 'extflashFault', + 'slaveControlFault', + 'alarm32Undefined' + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No alarms'; + tags: + - tag: component + value: status + triggers: + - uuid: 62d1ffe8417c4ef9b746d17185d8853b + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","alarm21Internal")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "alarm21Internal" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 367d91fa49c241e795a2b497739c6f01 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","arrayCurrentOffset")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "arrayCurrentOffset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 1c1baf4eea9e416a98bcf3e12d7ae01f + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","batterySense")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "batterySense" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: b627e79de7b446d69ee245b07f755405 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","batterySenseDisconnected")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "batterySenseDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 73aba1af987843d98542105f2b41c5bd + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","controllerWasReset")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "controllerWasReset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: aae5a3441b9e4394a39e7a8c5ce29e0c + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","currentLimit")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "currentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: f8e42483b1534ed586252db0c8880aa6 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","currentOffset")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "currentOffset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: bd32be9b60334cc1b80d2de129f0f1a2 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","derateLimit")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "derateLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: e0886663f4df4ff0965fac33951d4ffc + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","ee-i2cRetryLimit")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "ee-i2cRetryLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: abfeb2c3c566401b9f30cd28765aacff + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","ethernetAlarm")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "ethernetAlarm" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: a0ffdbf5695d4945960df6ea7defa071 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","extflashFault")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "extflashFault" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: f92ce5a55f0a4a65beca0abb748b7c04 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","fp12VoltageOutOfRange")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "fp12VoltageOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 5bdcd298878a4baf97aab8df338e1123 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorOpen")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "heatsinkTempSensorOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 9fe220d99b524db8bbfe5b511ee91fa7 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorShorted")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "heatsinkTempSensorShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: dc8d3f71c60643b7a6a25a9d7452ce60 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","highArrayVCurrentLimit")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "highArrayVCurrentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: d279f44217b046c789c865b8b44c9342 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","highTemperatureCurrentLimit")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "highTemperatureCurrentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: b48d1c04e95c4b89a7240fc2a611a499 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","highVoltageDisconnect")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "highVoltageDisconnect" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 767be108224d43a99ac2568166c9cd33 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","lvd")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "lvd" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 107b8a4a63c146fa908f5b7ccc716258 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","maxAdcValueReached")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "maxAdcValueReached" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 5792c3702ab94123891e02ee4c05339f + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","mosfetSOpen")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "mosfetSOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: a115f88a282e41179b569633234f04e2 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","p3VoltageOutOfRange")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "p3VoltageOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 8a3906ceae5547ca8f9c916ca46e7be8 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","p12VoltageOutOfRange")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "p12VoltageOutOfRange" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 49d3fb027a88462aa7f67442a507c051 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","rtsDisconnected")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "rtsDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 650cf2d3c06f4c55ac90b1dd23ca25d1 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","rtsMiswire")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "rtsMiswire" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 48bb77b135c84d6a9e3792d8385f16da + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","rtsShorted")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "rtsShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 7e363c7cc8ce4104a9c6269c9e94ac26 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","slaveControlFault")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "slaveControlFault" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: e1235a2201a542bb9ac67345c70641e3 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","software")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "software" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: cb5b84c99bcf45459bdc955c8604264b + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","systemMiswire")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "systemMiswire" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 72ce41657c1848d897255ad3de77d942 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.alarms[alarms.0],#3,"like","uncalibrated")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "uncalibrated" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 81efe20cce1b4b26a6eda83e86fbd49c + name: 'Status: Faults' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.55.0]' + key: 'status.faults[faults.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: TRISTAR-MPPT + Description:Faults + Modbus addresses:H=0x002c L=0x002d + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'overcurrent', + 'fetShort', + 'softwareFault', + 'batteryHvd', + 'arrayHvd', + 'dipSwitchChange', + 'customSettingsEdit', + 'rtsShorted', + 'rtsDisconnected', + 'eepromRetryLimit', + 'controllerWasReset', + 'chargeSlaveControlTimeout', + 'rs232SerialToMeterBridge', + 'batteryLvd', + 'fault14Undefined', + 'powerboardCommunicationFault', + 'fault16Software', + 'fault17Software', + 'fault18Software', + 'fault19Software', + 'fault20Software', + 'fault21Software', + 'fpgaVersion', + 'currentSensorReferenceOutOfRange', + 'ia-refSlaveModeTimeout', + 'blockbusBoot', + 'hscommMaster', + 'hscomm', + 'slave', + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No faults'; + tags: + - tag: component + value: status + triggers: + - uuid: 747a56182a6f4336b720a95b0609013c + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","arrayHvd")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "arrayHvd" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: e9d7a51b64444e27b28b13ebf38a11c3 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","batteryHvd")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "batteryHvd" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: b898ac485d094f1cb65020ad5459641b + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","batteryLvd")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "batteryLvd" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 806e83938072453ab66895044907c02d + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","blockbusBoot")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "blockbusBoot" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: f20f87cd6ce3414182cd2088a947ef24 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","chargeSlaveControlTimeout")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "chargeSlaveControlTimeout" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: f4478548ad17400c9cddbf8b27720952 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","controllerWasReset")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "controllerWasReset" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 6c9a64ff6f61457daf826e831f51b048 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","currentSensorReferenceOutOfRange")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "currentSensorReferenceOutOfRange" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 74d39d01841f454e8f72457104a42cb7 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","customSettingsEdit")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "customSettingsEdit" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 12d55fb0398c4fbb87ca948f2e692a38 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","dipSwitchChange")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "dipSwitchChange" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 25e71e9c3ad945ed9f48945cac45bb56 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","eepromRetryLimit")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "eepromRetryLimit" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: f6fafa09a41a428c87d5ef303071a7f7 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","fault16Software")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "fault16Software" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 8f079e7606d14dc2ab6313fdae80bafc + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","fault17Software")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "fault17Software" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: c388f647dd48445d8b8e3eee02ea38fc + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","fault18Software")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "fault18Software" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 1466954e09704b3092772f0996f692f4 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","fault19Software")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "fault19Software" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 86595bafc3054fd99343f24bbfdc44e3 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","fault20Software")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "fault20Software" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d269607e330243fe93e2f85c36d38114 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","fault21Software")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "fault21Software" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 68d6b95b6b9e42ada5a212a913d1ae43 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","fetShort")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "fetShort" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: dcb1c2bcc704405c8baae825124e3958 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","fpgaVersion")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "fpgaVersion" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 351af5c43f984930b4ebdb8690c52e7d + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","hscomm")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "hscomm" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: b32067a9b80c4836af4120f9f8e21bbd + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","hscommMaster")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "hscommMaster" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: bb61ea6f03c94556bf4f333bc050206f + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","ia-refSlaveModeTimeout")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "ia-refSlaveModeTimeout" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 843654df3185400e854c8c1f0229c32c + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","overcurrent")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "overcurrent" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 642f03d6eda346aca835e75088b7067b + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","powerboardCommunicationFault")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "powerboardCommunicationFault" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 4d8f0244f8d047bc8730ffc2f02a976d + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","rs232SerialToMeterBridge")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "rs232SerialToMeterBridge" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 6c125b8f681b47a99f7535292bd0507c + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","rtsDisconnected")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "rtsDisconnected" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: abad398631f34dac8094e4bcd14e3613 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","rtsShorted")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "rtsShorted" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 6824d221feb042da860248a4b418105c + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","slave")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "slave" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 56adf438e90f410497246b27b6da49f4 + expression: 'count(/Morningstar TriStar MPPT 600V by SNMP/status.faults[faults.0],#3,"like","softwareFault")=2' + name: 'Morningstar TriStar MPPT 600V: Status: Device has "softwareFault" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d61bd2d5717740518867bfbf734914c9 + name: 'Status: Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: status.hw.uptime + units: uptime + description: 'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + - uuid: e6a4dd0a61c8479985a1179842d22766 + name: 'Status: Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: status.net.uptime + units: uptime + description: 'The time (in hundredths of a second) since the network management portion of the system was last re-initialized.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + triggers: + - uuid: c4f0ea9e18884bc0b546933871017098 + expression: 'nodata(/Morningstar TriStar MPPT 600V by SNMP/status.net.uptime,5m)=1' + name: 'Morningstar TriStar MPPT 600V: Status: Failed to fetch data' + event_name: 'Morningstar TriStar MPPT 600V: Status: Failed to fetch data (or no data for 5m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 5 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 738f2e6d143a4e6db3ecf2736ca843cb + name: 'Battery: Target Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.45.0]' + key: 'target.voltage[targetRegulationVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Target Voltage + Scaling Factor:1.0 + Units:V + Range:[-10, 650.0] + Modbus address:0x0033 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: battery + - uuid: 4f3fdc6382704fb584fbe11264a0e5c2 + name: 'Temperature: Battery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.48.0]' + key: 'temp.battery[batteryTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: TRISTAR-MPPT + Description:Batt. Temp + Scaling Factor:1.0 + Units:C + Range:[-40, 80] + Modbus address:0x0025 + tags: + - tag: component + value: temperature + triggers: + - uuid: bc117de353304889980c7836603abb0d + expression: 'min(/Morningstar TriStar MPPT 600V by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + name: 'Morningstar TriStar MPPT 600V: Temperature: Critically high battery temperature' + event_name: 'Morningstar TriStar MPPT 600V: Temperature: Critically high battery temperature (over {$BATTERY.TEMP.MAX.CRIT}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 25a8f16d632940c3a2c994a9f2a76851 + expression: 'max(/Morningstar TriStar MPPT 600V by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + name: 'Morningstar TriStar MPPT 600V: Temperature: Critically low battery temperature' + event_name: 'Morningstar TriStar MPPT 600V: Temperature: Critically low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: db1152c815c84d208be0db3dac63acb4 + expression: 'min(/Morningstar TriStar MPPT 600V by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.WARN}' + name: 'Morningstar TriStar MPPT 600V: Temperature: High battery temperature' + event_name: 'Morningstar TriStar MPPT 600V: Temperature: High battery temperature (over {$BATTERY.TEMP.MAX.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar MPPT 600V: Temperature: Critically high battery temperature' + expression: 'min(/Morningstar TriStar MPPT 600V by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 9c331fb9a30b4867a3e16acd7e9f8983 + expression: 'max(/Morningstar TriStar MPPT 600V by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.WARN}' + name: 'Morningstar TriStar MPPT 600V: Temperature: Low battery temperature' + event_name: 'Morningstar TriStar MPPT 600V: Temperature: Low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar MPPT 600V: Temperature: Critically low battery temperature' + expression: 'max(/Morningstar TriStar MPPT 600V by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + tags: + - tag: scope + value: notice + - uuid: d3abc18d718540039adcfcb4a74bea43 + name: 'Temperature: Heatsink' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.49.0]' + key: 'temp.heatsink[heatsinkTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: TRISTAR-MPPT + Description:HS Temp + Scaling Factor:1.0 + Units:C + Range:[-40, 80] + Modbus address:0x0023 + tags: + - tag: component + value: temperature + discovery_rules: + - uuid: 7ba9493b38174751b448419b0b03312e + name: 'Battery voltage discovery' + type: DEPENDENT + key: battery.voltage.discovery + delay: '0' + description: 'Discovery for battery voltage triggers' + item_prototypes: + - uuid: 429d19822647434ca7df7016f44d690f + name: 'Battery: Voltage{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.7.36.0]' + key: 'battery.voltage[batteryVoltage.0{#SINGLETON}]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Battery voltage + Scaling Factor:1.0 + Units:V + Range:[-10, 80] + Modbus address:0x0018 + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: f326b9eb93fe4267bf9f4a07bb578eca + expression: 'min(/Morningstar TriStar MPPT 600V by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + name: 'Morningstar TriStar MPPT 600V: Battery: Critically high battery voltage' + event_name: 'Morningstar TriStar MPPT 600V: Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 07fb5dd68c954da3982392dfcb2de0b8 + expression: 'max(/Morningstar TriStar MPPT 600V by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + name: 'Morningstar TriStar MPPT 600V: Battery: Critically low battery voltage' + event_name: 'Morningstar TriStar MPPT 600V: Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: aca6ef49842d4b3ba543fcf470473a96 + expression: 'min(/Morningstar TriStar MPPT 600V by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.WARN}' + name: 'Morningstar TriStar MPPT 600V: Battery: High battery voltage' + event_name: 'Morningstar TriStar MPPT 600V: Battery: High battery voltage (over {#VOLTAGE.MAX.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar MPPT 600V: Battery: Critically high battery voltage' + expression: 'min(/Morningstar TriStar MPPT 600V by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: b8673c0802a244d0850730e3fdf5a6dc + expression: 'max(/Morningstar TriStar MPPT 600V by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.WARN}' + name: 'Morningstar TriStar MPPT 600V: Battery: Low battery voltage' + event_name: 'Morningstar TriStar MPPT 600V: Battery: Low battery voltage (below {#VOLTAGE.MIN.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar MPPT 600V: Battery: Critically low battery voltage' + expression: 'max(/Morningstar TriStar MPPT 600V by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 592990e094e842f68463ab542878d5a9 + name: 'Battery: Voltage{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar MPPT 600V by SNMP' + key: 'battery.voltage[batteryVoltage.0{#SINGLETON}]' + master_item: + key: 'battery.voltage.discovery[batteryVoltage.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var v_range = [ + [[0, 18], [12, 15, 11.5, 15.5]], + [[18, 36], [24, 30, 23, 31]], + [[36, 99], [48, 60, 46, 62]], + ], + result = []; + + for (var idx in v_range) { + if (v_range[idx][0][0] < value && value <= v_range[idx][0][1]) { + result = [{ + '{#VOLTAGE.MIN.WARN}': parseInt({$VOLTAGE.MIN.WARN}) || v_range[idx][1][0], + '{#VOLTAGE.MAX.WARN}': parseInt({$VOLTAGE.MAX.WARN}) || v_range[idx][1][1], + '{#VOLTAGE.MIN.CRIT}': parseInt({$VOLTAGE.MIN.CRIT}) || v_range[idx][1][2], + '{#VOLTAGE.MAX.CRIT}': parseInt({$VOLTAGE.MAX.CRIT}) || v_range[idx][1][3], + '{#SINGLETON}': '' + }]; + break; + } + } + + return JSON.stringify(result); + tags: + - tag: class + value: power + - tag: target + value: morningstar + macros: + - macro: '{$BATTERY.TEMP.MAX.CRIT}' + value: '60' + description: 'Battery high temperature critical value' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '45' + description: 'Battery high temperature warning value' + - macro: '{$BATTERY.TEMP.MIN.CRIT}' + value: '-20' + description: 'Battery low temperature critical value' + - macro: '{$BATTERY.TEMP.MIN.WARN}' + value: '0' + description: 'Battery low temperature warning value' + - macro: '{$CHARGE.STATE.CRIT}' + value: '4' + description: fault + - macro: '{$CHARGE.STATE.WARN}' + value: '2' + description: disconnect + - macro: '{$LOAD.STATE.CRIT:"fault"}' + value: '4' + description: fault + - macro: '{$LOAD.STATE.CRIT:"lvd"}' + value: '3' + description: lvd + - macro: '{$LOAD.STATE.WARN:"disconnect"}' + value: '5' + description: disconnect + - macro: '{$LOAD.STATE.WARN:"lvdWarning"}' + value: '2' + description: lvdWarning + - macro: '{$LOAD.STATE.WARN:"override"}' + value: '7' + description: override + - macro: '{$VOLTAGE.MAX.CRIT}' + - macro: '{$VOLTAGE.MAX.WARN}' + - macro: '{$VOLTAGE.MIN.CRIT}' + - macro: '{$VOLTAGE.MIN.WARN}' + dashboards: + - uuid: aaa5fbc301ab439e8774e054c843c0f0 + name: 'Morningstar TriStar MPPT 600V: Overview' + pages: + - widgets: + - type: graph + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar TriStar MPPT 600V by SNMP' + name: 'Array: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '4' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar TriStar MPPT 600V by SNMP' + name: 'Battery: Current' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '8' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar TriStar MPPT 600V by SNMP' + name: 'Battery: Output Power (Watts)' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '12' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar TriStar MPPT 600V by SNMP' + name: 'Temperature: Battery/Heatsink' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 8a0dfdf98d254c219905751cccc878d7 + name: 'TriStar MPPT 600V charge state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: NightCheck + - value: '2' + newvalue: Disconnect + - value: '3' + newvalue: Night + - value: '4' + newvalue: Fault + - value: '5' + newvalue: Mppt + - value: '6' + newvalue: Absorption + - value: '7' + newvalue: Float + - value: '8' + newvalue: Equalize + - value: '9' + newvalue: Slave + - value: '10' + newvalue: Fixed + triggers: + - uuid: 5393dee9b39d438a8c1553a0be0fb0f2 + expression: '(last(/Morningstar TriStar MPPT 600V by SNMP/status.hw.uptime)>0 and last(/Morningstar TriStar MPPT 600V by SNMP/status.hw.uptime)<10m) or (last(/Morningstar TriStar MPPT 600V by SNMP/status.hw.uptime)=0 and last(/Morningstar TriStar MPPT 600V by SNMP/status.net.uptime)<10m)' + name: 'Morningstar TriStar MPPT 600V: Status: Device has been restarted' + event_name: 'Morningstar TriStar MPPT 600V: Status: Device has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 6627675fc86645a88d7be9a80c91a8b4 + name: 'Array: Voltage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar MPPT 600V by SNMP' + key: 'array.sweep_vmp[arrayVmpLastSweep.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar TriStar MPPT 600V by SNMP' + key: 'array.sweep_voc[arrayVocLastSweep.0]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Morningstar TriStar MPPT 600V by SNMP' + key: 'array.voltage[arrayVoltage.0]' + - uuid: 711c5f397c5e4031b36070d20debcc13 + name: 'Battery: Current' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar MPPT 600V by SNMP' + key: 'charge.current[batteryCurrent.0]' + - uuid: 12163228805449dcb48116a1a0b470d9 + name: 'Battery: Output Power (Watts)' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar MPPT 600V by SNMP' + key: 'charge.output_power[ outputPower.0]' + - uuid: 09e9cd48bb6241e8b667e6e1b9f7c3ad + name: 'Temperature: Battery/Heatsink' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar MPPT 600V by SNMP' + key: 'temp.battery[batteryTemperature.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar TriStar MPPT 600V by SNMP' + key: 'temp.heatsink[heatsinkTemperature.0]' diff --git a/Morningstar_TriStar_MPPT_by_SNMP.yaml b/Morningstar_TriStar_MPPT_by_SNMP.yaml new file mode 100644 index 0000000..b2b6a26 --- /dev/null +++ b/Morningstar_TriStar_MPPT_by_SNMP.yaml @@ -0,0 +1,1082 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 07b32152c3654e8ead4c1eeae24efa8f + template: 'Morningstar TriStar MPPT by SNMP' + name: 'Morningstar TriStar MPPT by SNMP' + description: | + MIBs used: + TRISTAR-MPPT + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 2c3dcfd83bf946fb9da84f648c1efbac + name: 'Array: Array Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.31.0]' + key: 'array.current[arrayCurrent.0]' + value_type: FLOAT + units: A + description: | + MIB: TRISTAR-MPPT + Description:Array Current + Scaling Factor:0.00244140625 + Units:A + Range:[-10, 80] + Modbus address:0x001d + preprocessing: + - type: MULTIPLIER + parameters: + - '0.00244140625' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: array + - uuid: 53c1cccd0262422eb18bb6745adb2369 + name: 'Array: Sweep Pmax' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.33.0]' + key: 'array.sweep_pmax[arrayPmaxLastSweep.0]' + value_type: FLOAT + units: W + description: | + MIB: TRISTAR-MPPT + Description:Pmax (last sweep) + Scaling Factor:0.10986328125 + Units:W + Range:[-10, 5000] + Modbus address:0x003c + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1098632813' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: array + - uuid: 2f0bbf8b6d53457283069aaf8e0386ae + name: 'Array: Sweep Vmp' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.34.0]' + key: 'array.sweep_vmp[arrayVmpLastSweep.0]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Vmp (last sweep) + Scaling Factor:0.0054931640625 + Units:V + Range:[-10, 180.0] + Modbus address:0x003d + preprocessing: + - type: MULTIPLIER + parameters: + - '0.005493164063' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: array + - uuid: ced0f7c4abb6409399a9e05797841497 + name: 'Array: Sweep Voc' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.35.0]' + key: 'array.sweep_voc[arrayVocLastSweep.0]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Voc (last sweep) + Scaling Factor:0.0054931640625 + Units:V + Range:[-10, 180.0] + Modbus address:0x003e + preprocessing: + - type: MULTIPLIER + parameters: + - '0.005493164063' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: array + - uuid: 419b9faf88284121a8806c60c8a4550d + name: 'Array: Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.30.0]' + key: 'array.voltage[arrayVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Array Voltage + Scaling Factor:0.0054931640625 + Units:V + Range:[-10, 180] + Modbus address:0x001b + preprocessing: + - type: MULTIPLIER + parameters: + - '0.005493164063' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: array + - uuid: f40795d2c28b4f53ac50399ca6e6f8d6 + name: 'Battery: Battery Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.36.0]' + key: 'battery.voltage.discovery[batteryVoltage.0]' + delay: 15m + history: '0' + value_type: FLOAT + units: V + description: 'MIB: TRISTAR-MPPT' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.005493164063' + tags: + - tag: component + value: battery + - tag: component + value: discovery + - tag: component + value: raw + - uuid: e1646c9847064d53913d9c57d1b59de7 + name: 'Battery: Charge Current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.42.0]' + key: 'charge.current[batteryCurrent.0]' + value_type: FLOAT + units: A + description: | + MIB: TRISTAR-MPPT + Description:Battery Current + Scaling Factor:0.00244140625 + Units:A + Range:[-10, 80] + Modbus address:0x001c + preprocessing: + - type: MULTIPLIER + parameters: + - '0.00244140625' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + - uuid: e70284aa07924a61add98dc516f0429e + name: 'Battery: Output Power' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.44.0]' + key: 'charge.output_power[ outputPower.0]' + value_type: FLOAT + units: W + description: | + MIB: TRISTAR-MPPT + Description:Output Power + Scaling Factor:0.10986328125 + Units:W + Range:[-10, 5000] + Modbus address:0x003a + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1098632813' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + - uuid: 7ad0e0153d6342a5bdd1576b2ad815e3 + name: 'Battery: Charge State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.46.0]' + key: 'charge.state[chargeState.0]' + value_type: FLOAT + description: | + MIB: TRISTAR-MPPT + Description:Charge State + Modbus address:0x0032 + + 0: Start + 1: NightCheck + 2: Disconnect + 3: Night + 4: Fault + 5: Mppt + 6: Absorption + 7: Float + 8: Equalize + 9: Slave + valuemap: + name: 'TriStar MPPT charge state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: battery + triggers: + - uuid: 6c6371d2476246789d23404e068e5179 + expression: 'last(/Morningstar TriStar MPPT by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.CRIT}' + name: 'Morningstar TriStar MPPT: Battery: Device charge in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 65bdeac02fed4febae857f571319bf37 + expression: 'last(/Morningstar TriStar MPPT by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.WARN}' + name: 'Morningstar TriStar MPPT: Battery: Device charge in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar MPPT: Battery: Device charge in critical state' + expression: 'last(/Morningstar TriStar MPPT by SNMP/charge.state[chargeState.0])={$CHARGE.STATE.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 48db3379939b4698b8f30ff7118a9a95 + name: 'Counter: Charge Amp-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.50.0]' + key: 'counter.charge_amp_hours[ahChargeResetable.0]' + value_type: FLOAT + units: Ah + description: | + MIB: TRISTAR-MPPT + Description:Ah Charge Resettable + Scaling Factor:0.1 + Units:Ah + Range:[0.0, 5000] + Modbus addresses:H=0x0034 L=0x0035 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + tags: + - tag: component + value: counter + - uuid: f14eb25c426141d1875d5828b5c62c30 + name: 'Counter: Charge KW-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.52.0]' + key: 'counter.charge_kw_hours[kwhChargeResetable.0]' + units: '!kWh' + description: | + MIB: TRISTAR-MPPT + Description:kWh Charge Resettable + Scaling Factor:0.1 + Units:kWh + Range:[0.0, 65535.0] + Modbus address:0x0038 + tags: + - tag: component + value: counter + - uuid: 5c96236f9623495289b94bd4d63e6faf + name: 'Status: Alarms' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.57.0]' + key: 'status.alarms[alarms.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: TRISTAR-MPPT + Description:Faults + Modbus address:0x002c + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'rtsOpen', + 'rtsShorted', + 'rtsDisconnected', + 'heatsinkTempSensorOpen', + 'heatsinkTempSensorShorted', + 'highTemperatureCurrentLimit', + 'currentLimit', + 'currentOffset', + 'batterySense', + 'batterySenseDisconnected', + 'uncalibrated', + 'rtsMiswire', + 'highVoltageDisconnect', + 'undefined', + 'systemMiswire', + 'mosfetSOpen', + 'p12VoltageReferenceOff', + 'highArrayVCurrentLimit', + 'maxAdcValueReached', + 'controllerWasReset', + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No alarms'; + tags: + - tag: component + value: status + triggers: + - uuid: b073c972bb64463aaee85c6129fad319 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","batterySense")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "batterySense" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 80a2d0a457024c22b39f0fcd45992e1e + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","batterySenseDisconnected")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "batterySenseDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: bac1cc54818245f9baa8dc07ddc0f850 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","controllerWasReset")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "controllerWasReset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 86c2dfb7b0984eaab02f47c58337f468 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","currentLimit")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "currentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: dd000390277a4e848a3236501817addf + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","currentOffset")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "currentOffset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 650ecb9c06464937a3f797e73a3d756d + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorOpen")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "heatsinkTempSensorOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 5999a4b6c49a4dabb6350d826b01e646 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorShorted")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "heatsinkTempSensorShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 7331337c7ffb4933bca3982614657912 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","highArrayVCurrentLimit")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "highArrayVCurrentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 82a2e0adba7444c6945666fcb9430808 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","highTemperatureCurrentLimit")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "highTemperatureCurrentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: b1f6d22d205e449a811da905e679800f + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","highVoltageDisconnect")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "highVoltageDisconnect" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: e3ce50b9b696486f945ee5a4c1a7a753 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","maxAdcValueReached")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "maxAdcValueReached" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 1536cf07556b4cddb62186030a4321ca + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","mosfetSOpen")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "mosfetSOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 136621f032544ea8af5e86a14ec03cb6 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","p12VoltageReferenceOff")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "p12VoltageReferenceOff" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 62ecaaf59a984b2999d13540c5220470 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","rtsDisconnected")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "rtsDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 12037d207b3f413198594877cc7a3862 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","rtsMiswire")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "rtsMiswire" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 330f9dfe6ea34b17bcf4cac2c908d78c + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","rtsShorted")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "rtsShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: fba13770ff67433489ec95d62b65d4b5 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","systemMiswire")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "systemMiswire" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: de6208b4474f4743ad99444fd7eb135d + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.alarms[alarms.0],#3,"like","uncalibrated")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "uncalibrated" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 64a01cde330e437499a719237f68fda2 + name: 'Status: Faults' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.55.0]' + key: 'status.faults[faults.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: TRISTAR-MPPT + Description:Faults + Modbus address:0x002c + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'overcurrent', + 'fetShort', + 'softwareFault', + 'batteryHvd', + 'arrayHvd', + 'dipSwitchChange', + 'customSettingsEdit', + 'rtsShorted', + 'rtsDisconnected', + 'eepromRetryLimit', + 'fault11Undefined', + 'slaveControlTimeout', + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No faults'; + tags: + - tag: component + value: status + triggers: + - uuid: 2a1b5a65311144d69c03255336f9f15f + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","arrayHvd")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "arrayHvd" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: f837f0839967493bb0e38b21000f5e9a + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","batteryHvd")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "batteryHvd" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 05b70b4be5554dd5ac2c65af04d79986 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","customSettingsEdit")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "customSettingsEdit" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 24ecb8842ea84a82b4d05a4e85150c55 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","dipSwitchChange")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "dipSwitchChange" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 008d82bc793b49afa6cd37d038c837fe + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","eepromRetryLimit")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "eepromRetryLimit" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 71dbbf441c234dcfbf014fc043bf5d3a + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","fetShort")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "fetShort" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: c100ec68ddaf40e6964ba2598141daa7 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","overcurrent")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "overcurrent" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 435df7ebe3e047ffada64dcf7e69148a + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","rtsDisconnected")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "rtsDisconnected" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 88443c84eaa0415db976e7a5d6c1dec4 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","rtsShorted")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "rtsShorted" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: b19111ec08094dbca30a804011b02ed2 + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","slaveControlTimeout")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "slaveControlTimeout" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 0d90cab800ad4bbcbf880c157a7a9dae + expression: 'count(/Morningstar TriStar MPPT by SNMP/status.faults[faults.0],#3,"like","softwareFault")=2' + name: 'Morningstar TriStar MPPT: Status: Device has "softwareFault" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 5e2aebe0ce2044588636be62cde6b6a3 + name: 'Status: Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: status.hw.uptime + units: uptime + description: 'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + - uuid: 5f1e79c9987648c8abb325a507209a07 + name: 'Status: Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: status.net.uptime + units: uptime + description: 'The time (in hundredths of a second) since the network management portion of the system was last re-initialized.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + triggers: + - uuid: db9317cb9a6645d2bd8f4760f7579c17 + expression: 'nodata(/Morningstar TriStar MPPT by SNMP/status.net.uptime,5m)=1' + name: 'Morningstar TriStar MPPT: Status: Failed to fetch data' + event_name: 'Morningstar TriStar MPPT: Status: Failed to fetch data (or no data for 5m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 5 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: c46896a6169142b59fc7f534f1981993 + name: 'Battery: Target Voltage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.45.0]' + key: 'target.voltage[targetRegulationVoltage.0]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Target Voltage + Scaling Factor:0.0054931640625 + Units:V + Range:[-10, 180.0] + Modbus address:0x0033 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.005493164063' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + - uuid: 9aee4500f32a4016be4f137c948b3d67 + name: 'Temperature: Battery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.48.0]' + key: 'temp.battery[batteryTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: TRISTAR-MPPT + Description:Batt. Temp + Scaling Factor:1.0 + Units:C + Range:[-40, 80] + Modbus address:0x0025 + tags: + - tag: component + value: temperature + triggers: + - uuid: 5ec1c2e4786048fc889a37a12a2f4ad6 + expression: 'min(/Morningstar TriStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + name: 'Morningstar TriStar MPPT: Temperature: Critically high battery temperature' + event_name: 'Morningstar TriStar MPPT: Temperature: Critically high battery temperature (over {$BATTERY.TEMP.MAX.CRIT}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 84c059ff133f4f4d8145615c0a98eb50 + expression: 'max(/Morningstar TriStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + name: 'Morningstar TriStar MPPT: Temperature: Critically low battery temperature' + event_name: 'Morningstar TriStar MPPT: Temperature: Critically low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 11d2b988cfec425c9ffb082e9c78490d + expression: 'min(/Morningstar TriStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.WARN}' + name: 'Morningstar TriStar MPPT: Temperature: High battery temperature' + event_name: 'Morningstar TriStar MPPT: Temperature: High battery temperature (over {$BATTERY.TEMP.MAX.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar MPPT: Temperature: Critically high battery temperature' + expression: 'min(/Morningstar TriStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 46122992e8a04c7bb7a8c8037a2da74a + expression: 'max(/Morningstar TriStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.WARN}' + name: 'Morningstar TriStar MPPT: Temperature: Low battery temperature' + event_name: 'Morningstar TriStar MPPT: Temperature: Low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar MPPT: Temperature: Critically low battery temperature' + expression: 'max(/Morningstar TriStar MPPT by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + tags: + - tag: scope + value: notice + - uuid: ffed57b626254db6bcc0df6de51d39fa + name: 'Temperature: Heatsink' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.49.0]' + key: 'temp.heatsink[heatsinkTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: TRISTAR-MPPT + Description:HS Temp + Scaling Factor:1.0 + Units:C + Range:[-40, 80] + Modbus address:0x0023 + tags: + - tag: component + value: temperature + discovery_rules: + - uuid: 5c8910a7991240a9b586d0d87ef00d5d + name: 'Battery voltage discovery' + type: DEPENDENT + key: battery.voltage.discovery + delay: '0' + description: 'Discovery for battery voltage triggers' + item_prototypes: + - uuid: 763cce63817f471095bdce7a6127b0bf + name: 'Battery: Voltage{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.2.36.0]' + key: 'battery.voltage[batteryVoltage.0{#SINGLETON}]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR-MPPT + Description:Battery voltage + Scaling Factor:0.0054931640625 + Units:V + Range:[-10, 180.0] + Modbus address:0x0018 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.005493164063' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: cf9bb1b6e84d4b03b38f13c1c1d4905c + expression: 'min(/Morningstar TriStar MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + name: 'Morningstar TriStar MPPT: Battery: Critically high battery voltage' + event_name: 'Morningstar TriStar MPPT: Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: d977ded736704d748ca49595f3658b89 + expression: 'max(/Morningstar TriStar MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + name: 'Morningstar TriStar MPPT: Battery: Critically low battery voltage' + event_name: 'Morningstar TriStar MPPT: Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 00deb7608b3e4444bd4833f5b8ae5875 + expression: 'min(/Morningstar TriStar MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.WARN}' + name: 'Morningstar TriStar MPPT: Battery: High battery voltage' + event_name: 'Morningstar TriStar MPPT: Battery: High battery voltage (over {#VOLTAGE.MAX.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar MPPT: Battery: Critically high battery voltage' + expression: 'min(/Morningstar TriStar MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: 2877138cdfb0448a9a83eb807b5da24a + expression: 'max(/Morningstar TriStar MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.WARN}' + name: 'Morningstar TriStar MPPT: Battery: Low battery voltage' + event_name: 'Morningstar TriStar MPPT: Battery: Low battery voltage (below {#VOLTAGE.MIN.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar MPPT: Battery: Critically low battery voltage' + expression: 'max(/Morningstar TriStar MPPT by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: f95cafe8c2a744908e3a290b0b2f6252 + name: 'Battery: Voltage{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar MPPT by SNMP' + key: 'battery.voltage[batteryVoltage.0{#SINGLETON}]' + master_item: + key: 'battery.voltage.discovery[batteryVoltage.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var v_range = [ + [[0, 18], [12, 15, 11.5, 15.5]], + [[18, 36], [24, 30, 23, 31]], + [[36, 99], [48, 60, 46, 62]], + ], + result = []; + + for (var idx in v_range) { + if (v_range[idx][0][0] < value && value <= v_range[idx][0][1]) { + result = [{ + '{#VOLTAGE.MIN.WARN}': parseInt({$VOLTAGE.MIN.WARN}) || v_range[idx][1][0], + '{#VOLTAGE.MAX.WARN}': parseInt({$VOLTAGE.MAX.WARN}) || v_range[idx][1][1], + '{#VOLTAGE.MIN.CRIT}': parseInt({$VOLTAGE.MIN.CRIT}) || v_range[idx][1][2], + '{#VOLTAGE.MAX.CRIT}': parseInt({$VOLTAGE.MAX.CRIT}) || v_range[idx][1][3], + '{#SINGLETON}': '' + }]; + break; + } + } + + return JSON.stringify(result); + tags: + - tag: class + value: power + - tag: target + value: morningstar + macros: + - macro: '{$BATTERY.TEMP.MAX.CRIT}' + value: '60' + description: 'Battery high temperature critical value' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '45' + description: 'Battery high temperature warning value' + - macro: '{$BATTERY.TEMP.MIN.CRIT}' + value: '-20' + description: 'Battery low temperature critical value' + - macro: '{$BATTERY.TEMP.MIN.WARN}' + value: '0' + description: 'Battery low temperature warning value' + - macro: '{$CHARGE.STATE.CRIT}' + value: '4' + description: fault + - macro: '{$CHARGE.STATE.WARN}' + value: '2' + description: disconnect + - macro: '{$LOAD.STATE.CRIT:"fault"}' + value: '4' + description: fault + - macro: '{$LOAD.STATE.CRIT:"lvd"}' + value: '3' + description: lvd + - macro: '{$LOAD.STATE.WARN:"disconnect"}' + value: '5' + description: disconnect + - macro: '{$LOAD.STATE.WARN:"lvdWarning"}' + value: '2' + description: lvdWarning + - macro: '{$LOAD.STATE.WARN:"override"}' + value: '7' + description: override + - macro: '{$VOLTAGE.MAX.CRIT}' + - macro: '{$VOLTAGE.MAX.WARN}' + - macro: '{$VOLTAGE.MIN.CRIT}' + - macro: '{$VOLTAGE.MIN.WARN}' + dashboards: + - uuid: ae1fed8a8f3949698ee8510fedf839fe + name: 'Morningstar TriStar MPPT: Overview' + pages: + - widgets: + - type: graph + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar TriStar MPPT by SNMP' + name: 'Array: Voltage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '4' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar TriStar MPPT by SNMP' + name: 'Battery: Current' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '8' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar TriStar MPPT by SNMP' + name: 'Battery: Output Power (Watts)' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '12' + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar TriStar MPPT by SNMP' + name: 'Temperature: Battery/Heatsink' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 3c6c60ef422c4788bf0c5b74ffab7ef0 + name: 'TriStar MPPT charge state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: NightCheck + - value: '2' + newvalue: Disconnect + - value: '3' + newvalue: Night + - value: '4' + newvalue: Fault + - value: '5' + newvalue: Mppt + - value: '6' + newvalue: Absorption + - value: '7' + newvalue: Float + - value: '8' + newvalue: Equalize + - value: '9' + newvalue: Slave + triggers: + - uuid: aab5be196ac64dc69883c3109fcd094f + expression: '(last(/Morningstar TriStar MPPT by SNMP/status.hw.uptime)>0 and last(/Morningstar TriStar MPPT by SNMP/status.hw.uptime)<10m) or (last(/Morningstar TriStar MPPT by SNMP/status.hw.uptime)=0 and last(/Morningstar TriStar MPPT by SNMP/status.net.uptime)<10m)' + name: 'Morningstar TriStar MPPT: Status: Device has been restarted' + event_name: 'Morningstar TriStar MPPT: Status: Device has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 8cdd58f62fcc4ca89d114fbe7eddc26d + name: 'Array: Voltage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar MPPT by SNMP' + key: 'array.sweep_vmp[arrayVmpLastSweep.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar TriStar MPPT by SNMP' + key: 'array.sweep_voc[arrayVocLastSweep.0]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Morningstar TriStar MPPT by SNMP' + key: 'array.voltage[arrayVoltage.0]' + - uuid: 067062eca2b34488a9defc3aa002c88c + name: 'Battery: Current' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar MPPT by SNMP' + key: 'charge.current[batteryCurrent.0]' + - uuid: 1889ace5679d4f63b59237812b5d0718 + name: 'Battery: Output Power (Watts)' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar MPPT by SNMP' + key: 'charge.output_power[ outputPower.0]' + - uuid: 87918502df2743e1be04a02b02c44b61 + name: 'Temperature: Battery/Heatsink' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar MPPT by SNMP' + key: 'temp.battery[batteryTemperature.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar TriStar MPPT by SNMP' + key: 'temp.heatsink[heatsinkTemperature.0]' diff --git a/Morningstar_TriStar_PWM_by_SNMP.yaml b/Morningstar_TriStar_PWM_by_SNMP.yaml new file mode 100644 index 0000000..2797174 --- /dev/null +++ b/Morningstar_TriStar_PWM_by_SNMP.yaml @@ -0,0 +1,1168 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 230fa9f7c1774821bbe6cdcbbba5cbc6 + template: 'Morningstar TriStar PWM by SNMP' + name: 'Morningstar TriStar PWM by SNMP' + description: | + MIBs used: + TRISTAR + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: b76ef47ada0c43cfb50c6a80c8ca55e5 + name: 'Battery: Battery Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.30.0]' + key: 'battery.voltage.discovery[batteryVoltage.0]' + delay: 15m + history: '0' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR + Description:Battery voltage + Scaling Factor:0.002950042724609375 + Units:V + Range:[0.0, 80.0] + Modbus address:0x0008 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.002950042725' + tags: + - tag: component + value: battery + - tag: component + value: discovery + - tag: component + value: raw + - uuid: 0c57da022cf8497e88f788cee1b3a0a6 + name: 'Status: Control Mode' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.45.0]' + key: 'control.mode[controlMode.0]' + value_type: FLOAT + description: | + MIB: TRISTAR + Description:Control Mode + Modbus address:0x001A + + 0: charge + 1: loadControl + 2: diversion + 3: lighting + valuemap: + name: 'TriStar PWM control mode' + tags: + - tag: component + value: status + - uuid: 25a576060f6948e59a855462b04c7276 + name: 'Counter: Amp-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.39.0]' + key: 'counter.charge_amp_hours[ahResettable.0]' + value_type: FLOAT + units: Ah + description: | + MIB: TRISTAR + Description:Ah (Resettable) + Scaling Factor:0.1 + Units:Ah + Range:[0.0, 50000.0] + Modbus addresses:H=0x0011 L=0x0012 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + tags: + - tag: component + value: counter + - uuid: d2351af0b6244044949eba67a7f7b39c + name: 'Counter: KW-hours' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.49.0]' + key: 'counter.charge_kw_hours[kilowattHours.0]' + value_type: FLOAT + units: '!kWh' + description: | + MIB: TRISTAR + Description:Kilowatt Hours + Scaling Factor:1.0 + Units:kWh + Range:[0.0, 5000.0] + Modbus address:0x001E + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: counter + - uuid: 03c3397ac32b47499002b13e0735ec9b + name: 'Status: Alarms' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.42.0]' + key: 'status.alarms[alarms.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: TRISTAR + Description:Alarms + Modbus addresses:H=0x001D L=0x0017 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'rtsOpen', + 'rtsShorted', + 'rtsDisconnected', + 'heatsinkTempSensorOpen', + 'heatsinkTempSensorShorted', + 'tristarHot', + 'currentLimit', + 'currentOffset', + 'batterySense', + 'batterySenseDisconnected', + 'uncalibrated', + 'rtsMiswire', + 'highVoltageDisconnect', + 'diversionLoadNearMax', + 'systemMiswire', + 'mosfetSOpen', + 'p12VoltageReferenceOff', + 'loadDisconnectState', + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No alarms'; + tags: + - tag: component + value: status + triggers: + - uuid: 121d47c6bbdd45bca261df2e01ea41c6 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","batterySense")=2' + name: 'Morningstar TriStar PWM: Status: Device has "batterySense" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: fd2d9290144143d39bb5a3cf0a2d261f + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","batterySenseDisconnected")=2' + name: 'Morningstar TriStar PWM: Status: Device has "batterySenseDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 83d5b8d52acd4e21ac6d3a9cf05dcd04 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","currentLimit")=2' + name: 'Morningstar TriStar PWM: Status: Device has "currentLimit" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: d9529a4372d848038e6ee561d62e9f22 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","currentOffset")=2' + name: 'Morningstar TriStar PWM: Status: Device has "currentOffset" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 5f3983acc1cc417e860c1305b11c15ea + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","diversionLoadNearMax")=2' + name: 'Morningstar TriStar PWM: Status: Device has "diversionLoadNearMax" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 878e04df7e7b416bb0d2213b5dbb80e6 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorOpen")=2' + name: 'Morningstar TriStar PWM: Status: Device has "heatsinkTempSensorOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: c642ed9496ce4322809c7142d32929a5 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorShorted")=2' + name: 'Morningstar TriStar PWM: Status: Device has "heatsinkTempSensorShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 532421fe17bf4732a01a6990e34e649a + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","highVoltageDisconnect")=2' + name: 'Morningstar TriStar PWM: Status: Device has "highVoltageDisconnect" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: ae90e8034baf4b21906d56d18bfa4da8 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","loadDisconnectState")=2' + name: 'Morningstar TriStar PWM: Status: Device has "loadDisconnectState" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 8d8b721c6dee40499b29bee44b21589a + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","mosfetSOpen")=2' + name: 'Morningstar TriStar PWM: Status: Device has "mosfetSOpen" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 8cda8e5773de4583b9baa6a6e542e32c + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","p12VoltageReferenceOff")=2' + name: 'Morningstar TriStar PWM: Status: Device has "p12VoltageReferenceOff" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 1b6192b8ca364c229b35ba6de89ad56b + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","rtsDisconnected")=2' + name: 'Morningstar TriStar PWM: Status: Device has "rtsDisconnected" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 176de77a142d45a3ac39ea42989e209c + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","rtsMiswire")=2' + name: 'Morningstar TriStar PWM: Status: Device has "rtsMiswire" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: f63029eabc8e498ea7e6336d312ac169 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","rtsShorted")=2' + name: 'Morningstar TriStar PWM: Status: Device has "rtsShorted" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 480b69c1febf45a2971788c2f967c45d + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","systemMiswire")=2' + name: 'Morningstar TriStar PWM: Status: Device has "systemMiswire" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 4a287e4086c4458aaa3dc48bbb8ee219 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","tristarHot")=2' + name: 'Morningstar TriStar PWM: Status: Device has "tristarHot" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: de665482d2574730a3a839948dd730ea + expression: 'count(/Morningstar TriStar PWM by SNMP/status.alarms[alarms.0],#3,"like","uncalibrated")=2' + name: 'Morningstar TriStar PWM: Status: Device has "uncalibrated" alarm flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: 9d0f4444f98c4ec082d35559e8fe9ac5 + name: 'Status: Faults' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.43.0]' + key: 'status.faults[faults.0]' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: TRISTAR + Description:Battery voltage + Scaling Factor:0.002950042724609375 + Units:V + Range:[0.0, 80.0] + Modbus address:0x0008 + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + var FIELDS = [ + 'externalShort', + 'overcurrent', + 'mosfetSShorted', + 'softwareFault', + 'highVoltageDisconnect', + 'tristarHot', + 'dipSwitchChange', + 'customSettingsEdit', + 'reset', + 'systemMiswire', + 'rtsShorted', + 'rtsDisconnected', + ]; + + var flags = parseInt(value.replace(/\x20/g, ''), 16), + result = []; + + for (var i = 0, f = 1 << 31 >>> 0, l = FIELDS.length; i < l; i++, f >>>= 1) { + if (flags & f) { + result.push(FIELDS[i]); + } + } + + return result.length ? result.join('\n') : 'No faults'; + tags: + - tag: component + value: status + triggers: + - uuid: 514b041aebdd4ddb8ab2d1222c0ef295 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","customSettingsEdit")=2' + name: 'Morningstar TriStar PWM: Status: Device has "customSettingsEdit" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 1a40ce8b87f04ab1b4f30387e9ce2d9d + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","dipSwitchChange")=2' + name: 'Morningstar TriStar PWM: Status: Device has "dipSwitchChange" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 49b120c3933c43b1b7f5c77f7b359997 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","externalShort")=2' + name: 'Morningstar TriStar PWM: Status: Device has "externalShort" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: f063b9f717c44ab988db7ac95bfca68f + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","highVoltageDisconnect")=2' + name: 'Morningstar TriStar PWM: Status: Device has "highVoltageDisconnect" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 468716d748f1470cb764ce1af922164d + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","mosfetSShorted")=2' + name: 'Morningstar TriStar PWM: Status: Device has "mosfetSShorted" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: b6f65dfca421490eafff48991cdf1e3b + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","overcurrent")=2' + name: 'Morningstar TriStar PWM: Status: Device has "overcurrent" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 73561a5765694633b1dc0ef1b1f60fd4 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","reset")=2' + name: 'Morningstar TriStar PWM: Status: Device has "reset" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d14c7d928f57448390c2b4c588a28c65 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","rtsDisconnected")=2' + name: 'Morningstar TriStar PWM: Status: Device has "rtsDisconnected" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: d94067598c234968b4929404067eff86 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","rtsShorted")=2' + name: 'Morningstar TriStar PWM: Status: Device has "rtsShorted" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 886b18bee7cd4f8eb454973e2d2ae59f + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","softwareFault")=2' + name: 'Morningstar TriStar PWM: Status: Device has "softwareFault" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 2e520cdafaaa4eefad5ebea71819c3a6 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","systemMiswire")=2' + name: 'Morningstar TriStar PWM: Status: Device has "systemMiswire" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 041be44e639d4d1eadb15230a678e278 + expression: 'count(/Morningstar TriStar PWM by SNMP/status.faults[faults.0],#3,"like","tristarHot")=2' + name: 'Morningstar TriStar PWM: Status: Device has "tristarHot" faults flag' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 6903297e21e14aa8b5eed4eb0f7e1e01 + name: 'Status: Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: status.hw.uptime + units: uptime + description: 'The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + - uuid: 642eec19ba5d450186590e9f5bba36db + name: 'Status: Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: status.net.uptime + units: uptime + description: 'The time (in hundredths of a second) since the network management portion of the system was last re-initialized.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: status + triggers: + - uuid: 64aa2a79fe854def8e179a4d27790417 + expression: 'nodata(/Morningstar TriStar PWM by SNMP/status.net.uptime,5m)=1' + name: 'Morningstar TriStar PWM: Status: Failed to fetch data' + event_name: 'Morningstar TriStar PWM: Status: Failed to fetch data (or no data for 5m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 5 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: bc729e23973b4d9d97d694d884431e0b + name: 'Temperature: Battery' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.37.0]' + key: 'temp.battery[batteryTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: TRISTAR + Description:Battery Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-40, 120] + Modbus address:0x000F + tags: + - tag: component + value: temperature + triggers: + - uuid: e759b90e2bf44bbb8e5efe5b9e458e40 + expression: 'min(/Morningstar TriStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + name: 'Morningstar TriStar PWM: Temperature: Critically high battery temperature' + event_name: 'Morningstar TriStar PWM: Temperature: Critically high battery temperature (over {$BATTERY.TEMP.MAX.CRIT}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: e57f335f657d45768509f139d31dcdae + expression: 'max(/Morningstar TriStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + name: 'Morningstar TriStar PWM: Temperature: Critically low battery temperature' + event_name: 'Morningstar TriStar PWM: Temperature: Critically low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 7d1444dba9334e91ad425a6f2ff9fef9 + expression: 'min(/Morningstar TriStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.WARN}' + name: 'Morningstar TriStar PWM: Temperature: High battery temperature' + event_name: 'Morningstar TriStar PWM: Temperature: High battery temperature (over {$BATTERY.TEMP.MAX.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar PWM: Temperature: Critically high battery temperature' + expression: 'min(/Morningstar TriStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)>{$BATTERY.TEMP.MAX.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 14fe4a22b28c4d08a24da51a54e36e81 + expression: 'max(/Morningstar TriStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.WARN}' + name: 'Morningstar TriStar PWM: Temperature: Low battery temperature' + event_name: 'Morningstar TriStar PWM: Temperature: Low battery temperature (below {$BATTERY.TEMP.MIN.WARN}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar PWM: Temperature: Critically low battery temperature' + expression: 'max(/Morningstar TriStar PWM by SNMP/temp.battery[batteryTemperature.0],5m)<{$BATTERY.TEMP.MIN.CRIT}' + tags: + - tag: scope + value: notice + - uuid: a9a009058e99419dbb6cbef5b7797388 + name: 'Temperature: Heatsink' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.36.0]' + key: 'temp.heatsink[heatsinkTemperature.0]' + value_type: FLOAT + units: C + description: | + MIB: TRISTAR + Description:Heatsink Temperature + Scaling Factor:1.0 + Units:deg C + Range:[-40, 120] + Modbus address:0x000E + tags: + - tag: component + value: temperature + discovery_rules: + - uuid: 0e06c296579f4b6aa40d69ebb62742b4 + name: 'Battery voltage discovery' + type: DEPENDENT + key: battery.voltage.discovery + delay: '0' + description: 'Discovery for battery voltage triggers' + item_prototypes: + - uuid: e1960caed8c44606bb684e28cdfac3c7 + name: 'Battery: Voltage{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.30.0]' + key: 'battery.voltage[batteryVoltage.0{#SINGLETON}]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR + Description:Battery voltage + Scaling Factor:0.002950042724609375 + Units:V + Range:[0.0, 80.0] + Modbus address:0x0008 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.002950042725' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: 156ec13d673b4a8aa02a87b1794cb722 + expression: 'min(/Morningstar TriStar PWM by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + name: 'Morningstar TriStar PWM: Battery: Critically high battery voltage' + event_name: 'Morningstar TriStar PWM: Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: 5e4400321f4f45b39397c68a4ba54d8e + expression: 'max(/Morningstar TriStar PWM by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + name: 'Morningstar TriStar PWM: Battery: Critically low battery voltage' + event_name: 'Morningstar TriStar PWM: Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - uuid: fa6502a4a0214f7f933e982182d21d6b + expression: 'min(/Morningstar TriStar PWM by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.WARN}' + name: 'Morningstar TriStar PWM: Battery: High battery voltage' + event_name: 'Morningstar TriStar PWM: Battery: High battery voltage (over {#VOLTAGE.MAX.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar PWM: Battery: Critically high battery voltage' + expression: 'min(/Morningstar TriStar PWM by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: a5275748f4c742ea8ab9efd266901e95 + expression: 'max(/Morningstar TriStar PWM by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.WARN}' + name: 'Morningstar TriStar PWM: Battery: Low battery voltage' + event_name: 'Morningstar TriStar PWM: Battery: Low battery voltage (below {#VOLTAGE.MIN.WARN}V for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar PWM: Battery: Critically low battery voltage' + expression: 'max(/Morningstar TriStar PWM by SNMP/battery.voltage[batteryVoltage.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: bbdea967f4f34a299dd8d9bee43f2841 + name: 'Battery: Voltage{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar PWM by SNMP' + key: 'battery.voltage[batteryVoltage.0{#SINGLETON}]' + master_item: + key: 'battery.voltage.discovery[batteryVoltage.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var v_range = [ + [[0, 18], [12, 15, 11.5, 15.5]], + [[18, 36], [24, 30, 23, 31]], + [[36, 99], [48, 60, 46, 62]], + ], + result = []; + + for (var idx in v_range) { + if (v_range[idx][0][0] < value && value <= v_range[idx][0][1]) { + result = [{ + '{#VOLTAGE.MIN.WARN}': parseInt({$VOLTAGE.MIN.WARN}) || v_range[idx][1][0], + '{#VOLTAGE.MAX.WARN}': parseInt({$VOLTAGE.MAX.WARN}) || v_range[idx][1][1], + '{#VOLTAGE.MIN.CRIT}': parseInt({$VOLTAGE.MIN.CRIT}) || v_range[idx][1][2], + '{#VOLTAGE.MAX.CRIT}': parseInt({$VOLTAGE.MAX.CRIT}) || v_range[idx][1][3], + '{#SINGLETON}': '' + }]; + break; + } + } + + return JSON.stringify(result); + - uuid: 58a500192e61490f97f33d5b5f6e972f + name: 'Charge mode discovery' + type: DEPENDENT + key: controlmode.charge.discovery + delay: '0' + lifetime: 1h + description: 'Discovery for device in charge mode' + item_prototypes: + - uuid: f5d120bee1964f10853819d576ddb930 + name: 'Array: Voltage{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.32.0]' + key: 'array.voltage[arrayloadVoltage.0{#SINGLETON}]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR + Description:Array/Load Voltage + Scaling Factor:0.00424652099609375 + Units:V + Range:[0, 80] + Modbus address:0x000A + preprocessing: + - type: MULTIPLIER + parameters: + - '0.004246520996' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: array + - uuid: b5d74de2e96440a5a00a4a4dffffbb26 + name: 'Battery: Charge Current{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.33.0]' + key: 'charge.current[chargeCurrent.0{#SINGLETON}]' + value_type: FLOAT + units: A + description: | + MIB: TRISTAR + Description:Charge Current + Scaling Factor:0.002034515380859375 + Units:A + Range:[0, 60] + Modbus address:0x000B + preprocessing: + - type: MULTIPLIER + parameters: + - '0.002034515381' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + graph_prototypes: + - uuid: 9886a05be4a74a82a208e3a5950f022d + name: 'Array: Voltage{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar PWM by SNMP' + key: 'array.voltage[arrayloadVoltage.0{#SINGLETON}]' + - uuid: cd64c57669314d2e9526fbc580034c81 + name: 'Battery: Charge Current{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar PWM by SNMP' + key: 'charge.current[chargeCurrent.0{#SINGLETON}]' + master_item: + key: 'control.mode[controlMode.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(parseInt(value) === 0 ? [{ ''{#SINGLETON}'': '''' }] : []);' + - uuid: 02fbfa1dd59a4b9c87bb81da81312f54 + name: 'Charge + Diversion mode discovery' + type: DEPENDENT + key: controlmode.charge_diversion.discovery + delay: '0' + lifetime: 1h + description: 'Discovery for device in charge and diversion modes' + item_prototypes: + - uuid: e08b526bbb484753a11c99011d31d945 + name: 'Battery: Charge State{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.46.0]' + key: 'charge.state[controlState.0{#SINGLETON}]' + value_type: FLOAT + description: | + MIB: TRISTAR + Description:Control State + Modbus address:0x001B + valuemap: + name: 'TriStar PWM charge state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: battery + trigger_prototypes: + - uuid: da21473ce79c42269cc24d3e470b7d07 + expression: 'last(/Morningstar TriStar PWM by SNMP/charge.state[controlState.0{#SINGLETON}])={$CHARGE.STATE.CRIT}' + name: 'Morningstar TriStar PWM: Battery: Device charge in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: 79a592050bc64c018cfa5c7b779fba02 + expression: 'last(/Morningstar TriStar PWM by SNMP/charge.state[controlState.0{#SINGLETON}])={$CHARGE.STATE.WARN}' + name: 'Morningstar TriStar PWM: Battery: Device charge in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar PWM: Battery: Device charge in critical state' + expression: 'last(/Morningstar TriStar PWM by SNMP/charge.state[controlState.0{#SINGLETON}])={$CHARGE.STATE.CRIT}' + tags: + - tag: scope + value: notice + - uuid: edd7d01d2523481293f3ac9e8f3c0a00 + name: 'Battery: Target Voltage{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.38.0]' + key: 'target.voltage[targetVoltage.0{#SINGLETON}]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR + Description:Target Regulation Voltage + Scaling Factor:0.002950042724609375 + Units:V + Range:[0.0, 80.0] + Modbus address:0x0010 + preprocessing: + - type: MULTIPLIER + parameters: + - '0.002950042725' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: battery + master_item: + key: 'control.mode[controlMode.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var mode = parseInt(value); + return JSON.stringify((mode === 0 || mode === 2) ? [{ '{#SINGLETON}': '' }] : []); + - uuid: 8c345c0134fe4d90af83292e557d7309 + name: 'Diversion mode discovery' + type: DEPENDENT + key: controlmode.diversion.discovery + delay: '0' + lifetime: 1h + description: 'Discovery for device in diversion mode' + item_prototypes: + - uuid: 33e6b5a75c1e454cb7b7bc0b1426d1b9 + name: 'Load: PWM Duty Cycle{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.48.0]' + key: 'diversion.pwm_duty_cycle[pwmDutyCycle.0{#SINGLETON}]' + value_type: FLOAT + description: | + MIB: TRISTAR + Description:PWM Duty Cycle + Scaling Factor:0.392156862745098 + Units:% + Range:[0.0, 100.0] + Modbus address:0x001C + preprocessing: + - type: MULTIPLIER + parameters: + - '0.3921568627' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: load + master_item: + key: 'control.mode[controlMode.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(parseInt(value) === 2 ? [{ ''{#SINGLETON}'': '''' }] : []);' + - uuid: 54bfd7f730e64af89f937e9b1b6e4d79 + name: 'Load mode discovery' + type: DEPENDENT + key: controlmode.load.discovery + delay: '0' + lifetime: 1h + description: 'Discovery for device in load mode' + item_prototypes: + - uuid: 6d42918b9c244f88a23ab1daf2a929ce + name: 'Load: State{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.47.0]' + key: 'load.state[loadState.0{#SINGLETON}]' + value_type: FLOAT + description: | + MIB: TRISTAR + Description:Load State + Modbus address:0x001B + + 0: Start + 1: Normal + 2: LvdWarning + 3: Lvd + 4: Fault + 5: Disconnect + 6: LvdWarning1 + 7: OverrideLvd + 8: Equalize + valuemap: + name: 'TriStar PWM load state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: load + trigger_prototypes: + - uuid: 9035e0a92d384a3c844b8a4d4ebd1eb9 + expression: 'last(/Morningstar TriStar PWM by SNMP/load.state[loadState.0{#SINGLETON}])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar TriStar PWM by SNMP/load.state[loadState.0{#SINGLETON}])={$LOAD.STATE.CRIT:"fault"}' + name: 'Morningstar TriStar PWM: Load: Device load in critical state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: notice + - uuid: a2d13f97c4bd46bfab8e74a2f2a7df2e + expression: 'last(/Morningstar TriStar PWM by SNMP/load.state[loadState.0{#SINGLETON}])={$LOAD.STATE.WARN:"lvdWarning"} or last(/Morningstar TriStar PWM by SNMP/load.state[loadState.0{#SINGLETON}])={$LOAD.STATE.WARN:"override"}' + name: 'Morningstar TriStar PWM: Load: Device load in warning state' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Morningstar TriStar PWM: Load: Device load in critical state' + expression: 'last(/Morningstar TriStar PWM by SNMP/load.state[loadState.0{#SINGLETON}])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar TriStar PWM by SNMP/load.state[loadState.0{#SINGLETON}])={$LOAD.STATE.CRIT:"fault"}' + tags: + - tag: scope + value: notice + master_item: + key: 'control.mode[controlMode.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(parseInt(value) === 1 ? [{ ''{#SINGLETON}'': '''' }] : []);' + - uuid: 2e2e01f5c1db4224a97162382c77832c + name: 'Load + Diversion mode discovery' + type: DEPENDENT + key: controlmode.load_diversion.discovery + delay: '0' + lifetime: 1h + description: 'Discovery for device in load and diversion modes' + item_prototypes: + - uuid: b6db019203cc41ca94dcbe54382fdaad + name: 'Load: Current{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.34.0]' + key: 'load.current[loadCurrent.0{#SINGLETON}]' + value_type: FLOAT + units: A + description: | + MIB: TRISTAR + Description:Load Current + Scaling Factor:0.00966400146484375 + Units:A + Range:[0, 60] + Modbus address:0x000C + preprocessing: + - type: MULTIPLIER + parameters: + - '0.009664001465' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: load + - uuid: f87ddb7d31d748c8917030ede731f37a + name: 'Load: Voltage{#SINGLETON}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.33333.8.32.0]' + key: 'load.voltage[arrayloadVoltage.0{#SINGLETON}]' + value_type: FLOAT + units: V + description: | + MIB: TRISTAR + Description:Array/Load Voltage + Scaling Factor:0.00424652099609375 + Units:V + Range:[0, 80] + Modbus address:0x000A + preprocessing: + - type: MULTIPLIER + parameters: + - '0.004246520996' + - type: REGEX + parameters: + - '^(\d+)(\.\d{1,2})?' + - \1\2 + tags: + - tag: component + value: load + graph_prototypes: + - uuid: 91ee10b435144218ab3dfac8f6bf7bdd + name: 'Load: Current{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar PWM by SNMP' + key: 'load.current[loadCurrent.0{#SINGLETON}]' + - uuid: b4b595193e0c40a2b390f7ce6eefba4a + name: 'Load: Voltage{#SINGLETON}' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar PWM by SNMP' + key: 'load.voltage[arrayloadVoltage.0{#SINGLETON}]' + master_item: + key: 'control.mode[controlMode.0]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var mode = parseInt(value); + return JSON.stringify((mode === 1 || mode === 2) ? [{ '{#SINGLETON}': '' }] : []); + tags: + - tag: class + value: power + - tag: target + value: morningstar + macros: + - macro: '{$BATTERY.TEMP.MAX.CRIT}' + value: '60' + description: 'Battery high temperature critical value' + - macro: '{$BATTERY.TEMP.MAX.WARN}' + value: '45' + description: 'Battery high temperature warning value' + - macro: '{$BATTERY.TEMP.MIN.CRIT}' + value: '-20' + description: 'Battery low temperature critical value' + - macro: '{$BATTERY.TEMP.MIN.WARN}' + value: '0' + description: 'Battery low temperature warning value' + - macro: '{$CHARGE.STATE.CRIT}' + value: '4' + description: fault + - macro: '{$CHARGE.STATE.WARN}' + value: '2' + description: disconnect + - macro: '{$LOAD.STATE.CRIT:"fault"}' + value: '4' + description: fault + - macro: '{$LOAD.STATE.CRIT:"lvd"}' + value: '3' + description: lvd + - macro: '{$LOAD.STATE.WARN:"disconnect"}' + value: '5' + description: disconnect + - macro: '{$LOAD.STATE.WARN:"lvdWarning"}' + value: '2' + description: lvdWarning + - macro: '{$LOAD.STATE.WARN:"override"}' + value: '7' + description: override + - macro: '{$VOLTAGE.MAX.CRIT}' + - macro: '{$VOLTAGE.MAX.WARN}' + - macro: '{$VOLTAGE.MIN.CRIT}' + - macro: '{$VOLTAGE.MIN.WARN}' + dashboards: + - uuid: 7b5209a7cf3f407fb825712f3558bf03 + name: 'Morningstar TriStar PWM: Overview' + pages: + - widgets: + - type: graph + width: '72' + height: '4' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Morningstar TriStar PWM by SNMP' + name: 'Temperature: Battery/Heatsink' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: 4985c4742d5844e7bc0aee5aeeacc436 + name: 'TriStar PWM charge state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: NightCheck + - value: '2' + newvalue: Disconnect + - value: '3' + newvalue: Night + - value: '4' + newvalue: Fault + - value: '5' + newvalue: Bulk + - value: '6' + newvalue: Absorption + - value: '7' + newvalue: Float + - value: '8' + newvalue: Equalize + - uuid: 252c3fb63cc34bb1a36ae6e9cbe5880c + name: 'TriStar PWM control mode' + mappings: + - value: '0' + newvalue: Charge + - value: '1' + newvalue: LoadControl + - value: '2' + newvalue: Diversion + - value: '3' + newvalue: Lighting + - uuid: 735e1a0d990a4c449e59eeb402f3b40e + name: 'TriStar PWM load state' + mappings: + - value: '0' + newvalue: Start + - value: '1' + newvalue: Normal + - value: '2' + newvalue: LvdWarning + - value: '3' + newvalue: Lvd + - value: '4' + newvalue: Fault + - value: '5' + newvalue: Disconnect + - value: '6' + newvalue: LvdWarning1 + - value: '7' + newvalue: OverrideLvd + - value: '8' + newvalue: Equalize + triggers: + - uuid: f0549419f015448497cd7d15a2bf96fa + expression: '(last(/Morningstar TriStar PWM by SNMP/status.hw.uptime)>0 and last(/Morningstar TriStar PWM by SNMP/status.hw.uptime)<10m) or (last(/Morningstar TriStar PWM by SNMP/status.hw.uptime)=0 and last(/Morningstar TriStar PWM by SNMP/status.net.uptime)<10m)' + name: 'Morningstar TriStar PWM: Status: Device has been restarted' + event_name: 'Morningstar TriStar PWM: Status: Device has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: ce3aa40eac5f4ee199ed214752304e19 + name: 'Temperature: Battery/Heatsink' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Morningstar TriStar PWM by SNMP' + key: 'temp.battery[batteryTemperature.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Morningstar TriStar PWM by SNMP' + key: 'temp.heatsink[heatsinkTemperature.0]' diff --git a/MySQL_by_ODBC.yaml b/MySQL_by_ODBC.yaml new file mode 100644 index 0000000..4d87776 --- /dev/null +++ b/MySQL_by_ODBC.yaml @@ -0,0 +1,1703 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: e19c120027e04da69b130e0f6cea29fc + template: 'MySQL by ODBC' + name: 'MySQL by ODBC' + description: | + Requirements for template operation: + 1. Create a MySQL user for monitoring. For example: + + CREATE USER 'zbx_monitor'@'%' IDENTIFIED BY ''; + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%'; + + For more information please read the MySQL documentation https://dev.mysql.com/doc/refman/8.0/en/grant.html. + + NOTE: In order to collect replication metrics, MariaDB Enterprise Server 10.5.8-5 and above and MariaDB Community Server 10.5.9 and above require the SLAVE MONITOR privilege to be set for the monitoring user: + + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW,SLAVE MONITOR ON *.* TO 'zbx_monitor'@'%'; + + For more information please read the MariaDB documentation https://mariadb.com/docs/server/ref/mdb/privileges/SLAVE_MONITOR/. + + 2. Set the user name and password in the host macros ({$MYSQL.USER} and {$MYSQL.PASSWORD}). + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384189-discussion-thread-for-official-zabbix-template-db-mysql. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Databases + items: + - uuid: 70491bf6b6af401c9dfb10c0cbfddee1 + name: 'Get database' + type: ODBC + key: 'db.odbc.get[get_database,"{$MYSQL.DSN}"]' + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: 'show databases' + username: '{$MYSQL.USER}' + password: '{$MYSQL.PASSWORD}' + description: 'Used for scanning databases in DBMS.' + tags: + - tag: component + value: raw + - uuid: e389af9f1d134e028e3b637544c8a265 + name: 'Get replication' + type: ODBC + key: 'db.odbc.get[get_replication,"{$MYSQL.DSN}"]' + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: 'show replica status' + username: '{$MYSQL.USER}' + password: '{$MYSQL.PASSWORD}' + description: 'Gets replication status information.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: deprecated + - type: JAVASCRIPT + parameters: + - | + var result = []; + + if (value === "deprecated") { + result = [{ + "replica_key": "slave", + "replica_name": "Slave", + "source_key": "master", + "source_name": "Master" + }]; + } else { + try { + value = JSON.parse(value); + if (value.length > 0) { + result = [{ + "replica_key": "replica", + "replica_name": "Replica", + "source_key": "source", + "source_name": "Source" + }]; + } + } + catch (error) { + Zabbix.log(3, "MySQL replica status ERROR: " + error); + } + } + + return JSON.stringify(result); + tags: + - tag: component + value: raw + - uuid: 72e0f88741d746bf88e8951ef69681f9 + name: 'Get status variables' + type: ODBC + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + history: '0' + value_type: TEXT + trends: '0' + params: 'show global status' + username: '{$MYSQL.USER}' + password: '{$MYSQL.PASSWORD}' + description: 'Gets server global status information.' + tags: + - tag: component + value: raw + - uuid: 5b7c14e38799427cb6520f47bf8afe6c + name: Status + type: ODBC + key: 'db.odbc.select[ping,"{$MYSQL.DSN}"]' + params: 'select "1"' + username: '{$MYSQL.USER}' + password: '{$MYSQL.PASSWORD}' + description: 'MySQL server status.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: e664e41d7b4f4336a3e5ef4720f6ee41 + expression: 'last(/MySQL by ODBC/db.odbc.select[ping,"{$MYSQL.DSN}"])=0' + name: 'MySQL: Service is down' + priority: HIGH + description: 'MySQL is down.' + tags: + - tag: scope + value: availability + - uuid: b9fb80ca366e4d33801472bcd013f881 + name: Version + type: ODBC + key: 'db.odbc.select[version,"{$MYSQL.DSN}"]' + delay: 15m + value_type: CHAR + trends: '0' + params: 'select version()' + username: '{$MYSQL.USER}' + password: '{$MYSQL.PASSWORD}' + description: 'MySQL server version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: application + triggers: + - uuid: 4090a1d3d82d47ac85964baeae121b2b + expression: 'last(/MySQL by ODBC/db.odbc.select[version,"{$MYSQL.DSN}"],#1)<>last(/MySQL by ODBC/db.odbc.select[version,"{$MYSQL.DSN}"],#2) and length(last(/MySQL by ODBC/db.odbc.select[version,"{$MYSQL.DSN}"]))>0' + name: 'MySQL: Version has changed' + event_name: 'MySQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + description: 'The MySQL version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 73235748ba4742c0aa3c4f29509a162d + name: 'Aborted clients per second' + type: DEPENDENT + key: mysql.aborted_clients.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections that were aborted because the client died without closing the connection properly.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Aborted_clients'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: connections + - uuid: b6185e79abd744f78ce579a83381ba87 + name: 'Aborted connections per second' + type: DEPENDENT + key: mysql.aborted_connects.rate + delay: '0' + value_type: FLOAT + description: 'Number of failed attempts to connect to the MySQL server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Aborted_connects'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 5934cb80f9c3442d978c63780b1ebc9f + expression: 'min(/MySQL by ODBC/mysql.aborted_connects.rate,5m)>{$MYSQL.ABORTED_CONN.MAX.WARN}' + name: 'MySQL: Server has aborted connections' + event_name: 'MySQL: Server has aborted connections (over {$MYSQL.ABORTED_CONN.MAX.WARN} for 5m)' + priority: AVERAGE + description: 'The number of failed attempts to connect to the MySQL server is more than `{$MYSQL.ABORTED_CONN.MAX.WARN}` in the last 5 minutes.' + dependencies: + - name: 'MySQL: Refused connections' + expression: 'last(/MySQL by ODBC/mysql.connection_errors_max_connections.rate)>0' + tags: + - tag: scope + value: availability + - uuid: 9db77e72fd9d404a8e1fd4e72c92d75c + name: 'Binlog cache disk use' + type: DEPENDENT + key: mysql.binlog_cache_disk_use + delay: '0' + value_type: FLOAT + description: 'Number of transactions that used a temporary disk cache because they could not fit in the regular binary log cache, being larger than `binlog_cache_size`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Binlog_cache_disk_use'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: cache + - uuid: 05e7e91206bb4138a945ea0de2d8c01d + name: 'Buffer pool efficiency' + type: CALCULATED + key: mysql.buffer_pool_efficiency + value_type: FLOAT + units: '%' + params: | + 100 - (last(//mysql.innodb_buffer_pool_reads) / + ( last(//mysql.innodb_buffer_pool_read_requests) + + ( last(//mysql.innodb_buffer_pool_read_requests) = 0 ) ) * 100 * + ( last(//mysql.innodb_buffer_pool_read_requests) > 0 )) + description: 'The item shows how effectively the buffer pool is serving reads.' + tags: + - tag: component + value: memory + - uuid: ad5520e067ea405eb939d319fa9690e9 + name: 'Buffer pool utilization' + type: CALCULATED + key: mysql.buffer_pool_utilization + value_type: FLOAT + units: '%' + params: | + ( last(//mysql.innodb_buffer_pool_pages_total) - + last(//mysql.innodb_buffer_pool_pages_free) ) / + ( last(//mysql.innodb_buffer_pool_pages_total) + + ( last(//mysql.innodb_buffer_pool_pages_total) = 0 ) ) * 100 * + ( last(//mysql.innodb_buffer_pool_pages_total) > 0 ) + description: 'Ratio of used to total pages in the buffer pool.' + tags: + - tag: component + value: memory + triggers: + - uuid: f4c2e4edf0c34bb1856ed392f2bc7c87 + expression: 'max(/MySQL by ODBC/mysql.buffer_pool_utilization,5m)<{$MYSQL.BUFF_UTIL.MIN.WARN}' + name: 'MySQL: Buffer pool utilization is too low' + event_name: 'MySQL: Buffer pool utilization is too low (less than {$MYSQL.BUFF_UTIL.MIN.WARN}% for 5m)' + priority: WARNING + description: 'The buffer pool utilization is less than `{$MYSQL.BUFF_UTIL.MIN.WARN}`% in the last 5 minutes. This means that there is a lot of unused RAM allocated for the buffer pool, which you can easily reallocate at the moment.' + tags: + - tag: scope + value: notice + - uuid: f05d592e6ae74e64bc54c649418761a6 + name: 'Bytes received' + type: DEPENDENT + key: mysql.bytes_received.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes received from all clients.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Bytes_received'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: network + - uuid: ce737bc186f24014a70c75da2386986d + name: 'Bytes sent' + type: DEPENDENT + key: mysql.bytes_sent.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes sent to all clients.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Bytes_sent'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: network + - uuid: a43ec23dad9345a5a1b0ff8bda12ed77 + name: 'Command Delete per second' + type: DEPENDENT + key: mysql.com_delete.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_delete` counter variable indicates the number of times the `DELETE` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Com_delete'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: operations + - uuid: cd924e3b51074b3baf642a7aa1eeb474 + name: 'Command Insert per second' + type: DEPENDENT + key: mysql.com_insert.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_insert` counter variable indicates the number of times the `INSERT` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Com_insert'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: operations + - uuid: 31e6372d1249442ab3ebdd993f397e26 + name: 'Command Select per second' + type: DEPENDENT + key: mysql.com_select.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_select` counter variable indicates the number of times the `SELECT` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Com_select'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: operations + - uuid: 0f5f638777284093bcdc5f2dacc8e951 + name: 'Command Update per second' + type: DEPENDENT + key: mysql.com_update.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_update` counter variable indicates the number of times the `UPDATE` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Com_update'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: operations + - uuid: fad5f4e1885341d1958f653afb85ff07 + name: 'Connections per second' + type: DEPENDENT + key: mysql.connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of connection attempts (successful or not) to the MySQL server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Connections'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: connections + - uuid: 4b67e0e6291b4e0c841334ac052d7253 + name: 'Connection errors accept per second' + type: DEPENDENT + key: mysql.connection_errors_accept.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors that occurred during calls to `accept()` on the listening port.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Connection_errors_accept'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: connections + - uuid: 76ad3a39e89e44daad08cc00174d4918 + name: 'Connection errors internal per second' + type: DEPENDENT + key: mysql.connection_errors_internal.rate + delay: '0' + value_type: FLOAT + description: 'Number of refused connections due to internal server errors, for example, out of memory errors, or failed thread starts.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Connection_errors_internal'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: connections + - uuid: 83dfb916c7674e1fbd300be444241e25 + name: 'Connection errors max connections per second' + type: DEPENDENT + key: mysql.connection_errors_max_connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of refused connections due to the `max_connections` limit being reached.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Connection_errors_max_connections'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: ac781c951ac0453a9c1008b2cf801518 + expression: 'last(/MySQL by ODBC/mysql.connection_errors_max_connections.rate)>0' + name: 'MySQL: Refused connections' + event_name: 'MySQL: Refused connections (max_connections limit reached)' + priority: AVERAGE + description: 'Number of refused connections due to the `max_connections` limit being reached.' + tags: + - tag: scope + value: availability + - uuid: 9be4cb9e209344d0869a56082d16ec53 + name: 'Connection errors peer address per second' + type: DEPENDENT + key: mysql.connection_errors_peer_address.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors while searching for the connecting client''s IP address.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Connection_errors_peer_address'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: connections + - uuid: e50b9fea89cc440abc0155dc25346f05 + name: 'Connection errors select per second' + type: DEPENDENT + key: mysql.connection_errors_select.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors during calls to `select()` or `poll()` on the listening port. The client would not necessarily have been rejected in these cases.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Connection_errors_select'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: connections + - uuid: a82a7ada012141c6bdff63bc8d615786 + name: 'Connection errors tcpwrap per second' + type: DEPENDENT + key: mysql.connection_errors_tcpwrap.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections the libwrap library has refused.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Connection_errors_tcpwrap'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: connections + - uuid: 84d748ab80444e10bdb60bcfbdfa850a + name: 'Created tmp tables on disk per second' + type: DEPENDENT + key: mysql.created_tmp_disk_tables.rate + delay: '0' + value_type: FLOAT + description: 'Number of internal on-disk temporary tables created by the server while executing statements.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Created_tmp_disk_tables'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: storage + - tag: component + value: tables + triggers: + - uuid: 8aec6a51fa3e4320b3c7c40858ac7f96 + expression: 'min(/MySQL by ODBC/mysql.created_tmp_disk_tables.rate,5m)>{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}' + name: 'MySQL: Number of on-disk temporary tables created per second is high' + event_name: 'MySQL: Number of on-disk temporary tables created per second is high (over {$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: c5f2ae1ef46e4f65842ab4a31625906a + name: 'Created tmp files on disk per second' + type: DEPENDENT + key: mysql.created_tmp_files.rate + delay: '0' + value_type: FLOAT + description: 'How many temporary files `mysqld` has created.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Created_tmp_files'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: storage + triggers: + - uuid: c1dbcf829bdf43fda3b4c2add576c8f0 + expression: 'min(/MySQL by ODBC/mysql.created_tmp_files.rate,5m)>{$MYSQL.CREATED_TMP_FILES.MAX.WARN}' + name: 'MySQL: Number of temporary files created per second is high' + event_name: 'MySQL: Number of temporary files created per second is high (over {$MYSQL.CREATED_TMP_FILES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: 95fa4f4f1db44b2bb65889da246c03b5 + name: 'Created tmp tables on memory per second' + type: DEPENDENT + key: mysql.created_tmp_tables.rate + delay: '0' + value_type: FLOAT + description: 'Number of internal temporary tables created by the server while executing statements.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Created_tmp_tables'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: memory + - tag: component + value: tables + triggers: + - uuid: d65c3ec6cacd41c58f5e2b209ca5a810 + expression: 'min(/MySQL by ODBC/mysql.created_tmp_tables.rate,5m)>{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}' + name: 'MySQL: Number of internal temporary tables created per second is high' + event_name: 'MySQL: Number of internal temporary tables created per second is high (over {$MYSQL.CREATED_TMP_TABLES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: e31f66bbc32b404c92debc4d9367162d + name: 'InnoDB buffer pool pages free' + type: DEPENDENT + key: mysql.innodb_buffer_pool_pages_free + delay: '0' + description: 'The total size of the InnoDB buffer pool, in pages.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_buffer_pool_pages_free'')].Value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 41019c084618404db183326c215d71f6 + name: 'InnoDB buffer pool pages total' + type: DEPENDENT + key: mysql.innodb_buffer_pool_pages_total + delay: '0' + description: 'The total size of the InnoDB buffer pool, in pages.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_buffer_pool_pages_total'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 441b718148974e289db93299f869feba + name: 'InnoDB buffer pool reads' + type: DEPENDENT + key: mysql.innodb_buffer_pool_reads + delay: '0' + description: 'Number of logical reads that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_buffer_pool_reads'')].Value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 22ae5946fc2548cf8eee39a57ce8512b + name: 'InnoDB buffer pool reads per second' + type: DEPENDENT + key: mysql.innodb_buffer_pool_reads.rate + delay: '0' + value_type: FLOAT + description: 'Number of logical reads per second that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_buffer_pool_reads'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 0a1775a7de33464e9ce8134950527021 + name: 'InnoDB buffer pool read requests' + type: DEPENDENT + key: mysql.innodb_buffer_pool_read_requests + delay: '0' + description: 'Number of logical read requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_buffer_pool_read_requests'')].Value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 98684abf32e642bd8784e68e64357dc9 + name: 'InnoDB buffer pool read requests per second' + type: DEPENDENT + key: mysql.innodb_buffer_pool_read_requests.rate + delay: '0' + value_type: FLOAT + description: 'Number of logical read requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_buffer_pool_read_requests'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 4e829cbb3cc2485dac2757867badd0f4 + name: 'Innodb buffer pool wait free' + type: DEPENDENT + key: mysql.innodb_buffer_pool_wait_free + delay: '0' + value_type: FLOAT + description: 'Number of times InnoDB waited for a free page before reading or creating a page. Normally, writes to the InnoDB buffer pool happen in the background. When no clean pages are available, dirty pages are flushed first in order to free some up. This counts the numbers of wait for this operation to finish. If this value is not small, look at the increasing `innodb_buffer_pool_size`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_buffer_pool_wait_free'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 4680fd31a2514e3f827b0060a6d5bfc4 + name: 'Calculated value of innodb_log_file_size' + type: CALCULATED + key: mysql.innodb_log_file_size + value_type: FLOAT + params: '(last(//mysql.innodb_os_log_written) - last(//mysql.innodb_os_log_written,#1:now-1h)) / {$MYSQL.INNODB_LOG_FILES}' + description: '`Innodb_log_file_size` is calculated as: (`innodb_os_log_written`-`innodb_os_log_written`(time shift -1h))/`{$MYSQL.INNODB_LOG_FILES}`. `Innodb_log_file_size` is the size in bytes of the each InnoDB redo log file in the log group. The combined size can be no more than 512 GB. Larger values mean less disk I/O due to less flushing checkpoint activity, but also slower recovery from a crash.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 79218a1068394ce69dfc6eeb626e83bc + name: 'Innodb number open files' + type: DEPENDENT + key: mysql.innodb_num_open_files + delay: '0' + value_type: FLOAT + description: 'Number of open files held by InnoDB. InnoDB only.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_num_open_files'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: system + - uuid: fc561c5392bb43a4842977bdf4b882a8 + name: 'Innodb log written' + type: DEPENDENT + key: mysql.innodb_os_log_written + delay: '0' + value_type: FLOAT + units: B + description: 'Number of bytes written to the InnoDB log.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_os_log_written'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: system + - uuid: a62951afcfbd44e595a4d294b24056e5 + name: 'InnoDB row lock time' + type: DEPENDENT + key: mysql.innodb_row_lock_time + delay: '0' + value_type: FLOAT + units: s + description: 'The total time spent in acquiring row locks for InnoDB tables, in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_row_lock_time'')].Value.first()' + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 22277695b7154c019a76ca730e68e833 + name: 'InnoDB row lock time max' + type: DEPENDENT + key: mysql.innodb_row_lock_time_max + delay: '0' + value_type: FLOAT + units: s + description: 'The maximum time to acquire a row lock for InnoDB tables, in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_row_lock_time_max'')].Value.first()' + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 17c4270927a74d8388da8c25d9065556 + name: 'InnoDB row lock waits' + type: DEPENDENT + key: mysql.innodb_row_lock_waits + delay: '0' + description: 'Number of times operations on InnoDB tables had to wait for a row lock.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Innodb_row_lock_waits'')].Value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 6106ebf4cae842c1a5acc2f13518de4f + name: 'Max used connections' + type: DEPENDENT + key: mysql.max_used_connections + delay: '0' + description: 'The maximum number of connections that have been in use simultaneously since the server start.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Max_used_connections'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: connections + - uuid: 85e17b6b196e4916838e0318992fe33c + name: 'Open tables' + type: DEPENDENT + key: mysql.open_tables + delay: '0' + value_type: FLOAT + description: 'Number of tables that are open.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Open_tables'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: tables + - uuid: c23ce7b2689745728465c5b405d7b3ba + name: 'Open table definitions' + type: DEPENDENT + key: mysql.open_table_definitions + delay: '0' + value_type: FLOAT + description: 'Number of cached table definitions.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Open_table_definitions'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: tables + - uuid: 2f0ced88c4524455bf790b3bc6512d04 + name: 'Queries per second' + type: DEPENDENT + key: mysql.queries.rate + delay: '0' + value_type: FLOAT + description: 'Number of statements executed by the server. This variable includes statements executed within stored programs, unlike the `Questions` variable.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Queries'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: queries + - uuid: 8d0fc2eb0be94d68966e09fca88e8deb + name: 'Questions per second' + type: DEPENDENT + key: mysql.questions.rate + delay: '0' + value_type: FLOAT + description: 'Number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the `Queries` variable.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Questions'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: queries + - uuid: b0227399437f4219b65ab1511d5e67c6 + name: 'Slow queries per second' + type: DEPENDENT + key: mysql.slow_queries.rate + delay: '0' + value_type: FLOAT + description: 'Number of queries that have taken more than `long_query_time` seconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Slow_queries'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: queries + triggers: + - uuid: b981c7a2ffed4eddbc9f1d6913c2e4b0 + expression: 'min(/MySQL by ODBC/mysql.slow_queries.rate,5m)>{$MYSQL.SLOW_QUERIES.MAX.WARN}' + name: 'MySQL: Server has slow queries' + event_name: 'MySQL: Server has slow queries (over {$MYSQL.SLOW_QUERIES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The number of slow queries is more than `{$MYSQL.SLOW_QUERIES.MAX.WARN}` in the last 5 minutes.' + tags: + - tag: scope + value: performance + - uuid: b675fd71138a4845965309dc5d6428d9 + name: 'Threads cached' + type: DEPENDENT + key: mysql.threads_cached + delay: '0' + description: 'Number of threads in the thread cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Threads_cached'')].Value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: threads + - uuid: af56c636c8b94e4f9976d0d6cf60fcbb + name: 'Threads connected' + type: DEPENDENT + key: mysql.threads_connected + delay: '0' + description: 'Number of currently open connections.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Threads_connected'')].Value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: threads + - uuid: 8a50d5788f8a449b994dbe76536076a2 + name: 'Threads created per second' + type: DEPENDENT + key: mysql.threads_created.rate + delay: '0' + value_type: FLOAT + description: 'Number of threads created to handle connections. If the value of `Threads_created` is large, you may want to increase the `thread_cache_size` value. The cache miss rate can be calculated as `Threads_created`/`Connections`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Threads_created'')].Value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: threads + - uuid: c41afa83f6a94efda34d7b41c95c89ac + name: 'Threads running' + type: DEPENDENT + key: mysql.threads_running + delay: '0' + description: 'Number of threads that are not sleeping.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Threads_running'')].Value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: threads + - uuid: 8fbad224ebdf46e7b25a0be015f21972 + name: Uptime + type: DEPENDENT + key: mysql.uptime + delay: '0' + units: uptime + description: 'Number of seconds that the server has been up.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Uptime'')].Value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: application + triggers: + - uuid: ba9eb4fc244b41a6a30237e7a382fa54 + expression: 'nodata(/MySQL by ODBC/mysql.uptime,30m)=1' + name: 'MySQL: Failed to fetch info data' + event_name: 'MySQL: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for items for the last 30 minutes.' + dependencies: + - name: 'MySQL: Service is down' + expression: 'last(/MySQL by ODBC/db.odbc.select[ping,"{$MYSQL.DSN}"])=0' + tags: + - tag: scope + value: availability + - uuid: cd8f5996bd85434998595e041d6b0908 + expression: 'last(/MySQL by ODBC/mysql.uptime)<10m' + name: 'MySQL: Service has been restarted' + event_name: 'MySQL: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'MySQL uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 0987fb6afdae4587bc32864fa42728f2 + name: 'Database discovery' + type: DEPENDENT + key: mysql.database.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DATABASE}' + value: '{$MYSQL.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DATABASE}' + value: '{$MYSQL.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of the databases.' + item_prototypes: + - uuid: f358179ef78b4a31affa9e049b4048b8 + name: 'Size of database {#DATABASE}' + type: ODBC + key: 'db.odbc.select[{#DATABASE}_size,"{$MYSQL.DSN}"]' + delay: 5m + units: B + params: 'SELECT COALESCE(SUM(DATA_LENGTH + INDEX_LENGTH),0) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA="{#DATABASE}"' + username: '{$MYSQL.USER}' + password: '{$MYSQL.PASSWORD}' + description: 'Database size.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: storage + - tag: database + value: '{#DATABASE}' + master_item: + key: 'db.odbc.get[get_database,"{$MYSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#DATABASE}' + path: $.Database + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: ad12522557df499e9a78b8b3c07733dd + name: 'MariaDB discovery' + type: DEPENDENT + key: mysql.extra_metric.discovery + delay: '0' + description: 'Used for additional metrics if MariaDB is used.' + item_prototypes: + - uuid: eb8713584314461488b8769f1081d48d + name: 'Binlog commits' + type: DEPENDENT + key: 'mysql.binlog_commits[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of transactions committed to the binary log.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Binlog_commits'')].Value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: transactions + - uuid: cbb7c1fadd934420b47950f52751795f + name: 'Binlog group commits' + type: DEPENDENT + key: 'mysql.binlog_group_commits[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of group commits done to the binary log.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Binlog_group_commits'')].Value.first()' + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: transactions + - uuid: 278488a9c0f543f6815a24592766d9bb + name: 'Master GTID wait count' + type: DEPENDENT + key: 'mysql.master_gtid_wait_count[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The number of times `MASTER_GTID_WAIT` called.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Master_gtid_wait_count'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: transactions + - uuid: 93ad282dc3b24dba9f0351b0d0a59d39 + name: 'Master GTID wait timeouts' + type: DEPENDENT + key: 'mysql.master_gtid_wait_timeouts[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of timeouts occurring in `MASTER_GTID_WAIT`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Master_gtid_wait_timeouts'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: transactions + - uuid: fd8bf7e639af4d3291030cdb9dd37bc9 + name: 'Master GTID wait time' + type: DEPENDENT + key: 'mysql.master_gtid_wait_time[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of time spent in `MASTER_GTID_WAIT`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.Variable_name==''Master_gtid_wait_time'')].Value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'db.odbc.get[get_status_variables,"{$MYSQL.DSN}"]' + tags: + - tag: component + value: transactions + master_item: + key: 'db.odbc.select[version,"{$MYSQL.DSN}"]' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value.search(''MariaDB'')>-1 ? [{''{#SINGLETON}'': ''''}] : []);' + - uuid: d0a235c0267c48e28bc6ecb99fb2380d + name: 'Replication discovery' + type: DEPENDENT + key: mysql.replication.discovery + delay: '0' + description: 'Discovery of the replication.' + item_prototypes: + - uuid: d88f65c4bee84e74bb6e00061ab27f0c + name: 'Replication {#REPLICA.NAME} status' + type: ODBC + key: 'db.odbc.get["get_{#REPLICA.KEY}_status","{$MYSQL.DSN}"]' + history: '0' + value_type: TEXT + trends: '0' + params: 'show {#REPLICA.KEY} status' + username: '{$MYSQL.USER}' + password: '{$MYSQL.PASSWORD}' + description: 'Gets status information on the essential parameters of the {#REPLICA.KEY} threads.' + preprocessing: + - type: JSONPATH + parameters: + - $.first() + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + if (value.indexOf("Source_Host") !== 0) { + value = value.replace(/Source/g, "Master"); + value = value.replace(/Replica_/g, "Slave_"); + } + + return value; + tags: + - tag: component + value: raw + - uuid: 15f7b22867f54551afbed139d746e210 + name: 'Replication Seconds Behind {#SOURCE.NAME}' + type: DEPENDENT + key: 'mysql.seconds_behind_master["{#REPLICA.KEY}"]' + delay: '0' + units: s + description: 'The number of seconds the {#REPLICA.KEY} SQL thread has been behind processing the {#SOURCE.KEY} binary log. A high number (or an increasing one) can indicate that the {#REPLICA.KEY} is unable to handle events from the {#SOURCE.KEY} in a timely fashion.' + preprocessing: + - type: JSONPATH + parameters: + - $.Seconds_Behind_Master + - type: MATCHES_REGEX + parameters: + - \d+ + error_handler: CUSTOM_ERROR + error_handler_params: 'Replication is not performed.' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get["get_{#REPLICA.KEY}_status","{$MYSQL.DSN}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: f2188a73bbf34ffcb95b3e11e2824feb + expression: 'min(/MySQL by ODBC/mysql.seconds_behind_master["{#REPLICA.KEY}"],5m)>{$MYSQL.REPL_LAG.MAX.WARN}' + name: 'MySQL: Replication lag is too high' + event_name: 'MySQL: Replication lag is too high (over {$MYSQL.REPL_LAG.MAX.WARN} for 5m)' + priority: WARNING + description: 'Replication delay is too long.' + tags: + - tag: scope + value: notice + - uuid: e063b116753d4124a88443fe4de20d41 + name: 'Replication {#REPLICA.NAME} IO Running' + type: DEPENDENT + key: 'mysql.slave_io_running["{#REPLICA.KEY}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Whether the I/O thread for reading the {#SOURCE.KEY}''s binary log is running. Normally, you want this to be `Yes` unless you have not yet started a replication or have explicitly stopped it with `stop {#REPLICA.KEY}`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Slave_IO_Running + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get["get_{#REPLICA.KEY}_status","{$MYSQL.DSN}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: 6f216036f4f14ae7adc8c70126bb315a + expression: 'count(/MySQL by ODBC/mysql.slave_io_running["{#REPLICA.KEY}"],#1,"ne","Yes")=1' + name: 'MySQL: The {#REPLICA.KEY} I/O thread is not connected to a replication {#SOURCE.KEY}' + priority: WARNING + description: 'Whether the {#REPLICA.KEY} I/O thread is connected to the {#SOURCE.KEY}.' + dependencies: + - name: 'MySQL: The {#REPLICA.KEY} I/O thread is not running' + expression: 'count(/MySQL by ODBC/mysql.slave_io_running["{#REPLICA.KEY}"],#1,"eq","No")=1' + tags: + - tag: scope + value: availability + - uuid: ba08061a61df4bbb8bac516ecec91b70 + expression: 'count(/MySQL by ODBC/mysql.slave_io_running["{#REPLICA.KEY}"],#1,"eq","No")=1' + name: 'MySQL: The {#REPLICA.KEY} I/O thread is not running' + priority: AVERAGE + description: 'Whether the I/O thread for reading the {#SOURCE.KEY}''s binary log is running.' + tags: + - tag: scope + value: notice + - uuid: 113be79554c14c2aad08036febb15d71 + name: 'Replication {#REPLICA.NAME} SQL Running' + type: DEPENDENT + key: 'mysql.slave_sql_running["{#REPLICA.KEY}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Whether the SQL thread for executing events in the relay log is running. + As with the I/O thread, this should normally be `Yes`. + preprocessing: + - type: JSONPATH + parameters: + - $.Slave_SQL_Running + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get["get_{#REPLICA.KEY}_status","{$MYSQL.DSN}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: 39d229e5e3f34e8b828b4a0e2eaa0026 + expression: 'count(/MySQL by ODBC/mysql.slave_sql_running["{#REPLICA.KEY}"],#1,"eq","No")=1' + name: 'MySQL: The SQL thread is not running' + priority: WARNING + description: 'Whether the SQL thread for executing events in the relay log is running.' + dependencies: + - name: 'MySQL: The {#REPLICA.KEY} I/O thread is not running' + expression: 'count(/MySQL by ODBC/mysql.slave_io_running["{#REPLICA.KEY}"],#1,"eq","No")=1' + tags: + - tag: scope + value: notice + - uuid: a88eb463bb9740a4a4256306f11816bf + name: 'Replication {#REPLICA.NAME} SQL Running State' + type: DEPENDENT + key: 'mysql.slave_sql_running_state["{#REPLICA.KEY}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Shows the state of the SQL driver threads.' + preprocessing: + - type: JSONPATH + parameters: + - $.Slave_SQL_Running_State + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'db.odbc.get["get_{#REPLICA.KEY}_status","{$MYSQL.DSN}"]' + tags: + - tag: component + value: replication + master_item: + key: 'db.odbc.get[get_replication,"{$MYSQL.DSN}"]' + lld_macro_paths: + - lld_macro: '{#REPLICA.KEY}' + path: $.replica_key + - lld_macro: '{#REPLICA.NAME}' + path: $.replica_name + - lld_macro: '{#SOURCE.KEY}' + path: $.source_key + - lld_macro: '{#SOURCE.NAME}' + path: $.source_name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: class + value: database + - tag: target + value: mysql + macros: + - macro: '{$MYSQL.ABORTED_CONN.MAX.WARN}' + value: '3' + description: 'Number of failed attempts to connect to the MySQL server for trigger expressions.' + - macro: '{$MYSQL.BUFF_UTIL.MIN.WARN}' + value: '50' + description: 'The minimum buffer pool utilization in percentage for trigger expressions.' + - macro: '{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}' + value: '10' + description: 'The maximum number of temporary tables created on a disk per second for trigger expressions.' + - macro: '{$MYSQL.CREATED_TMP_FILES.MAX.WARN}' + value: '10' + description: 'The maximum number of temporary files created on a disk per second for trigger expressions.' + - macro: '{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}' + value: '30' + description: 'The maximum number of temporary tables created in memory per second for trigger expressions.' + - macro: '{$MYSQL.DBNAME.MATCHES}' + value: .+ + description: 'Filter of discoverable databases.' + - macro: '{$MYSQL.DBNAME.NOT_MATCHES}' + value: information_schema + description: 'Filter to exclude discovered databases.' + - macro: '{$MYSQL.DSN}' + value: '' + description: 'System data source name.' + - macro: '{$MYSQL.INNODB_LOG_FILES}' + value: '2' + description: 'Number of physical files in the InnoDB redo log for calculating `innodb_log_file_size`.' + - macro: '{$MYSQL.PASSWORD}' + value: '' + description: 'MySQL user password.' + - macro: '{$MYSQL.REPL_LAG.MAX.WARN}' + value: 30m + description: 'Amount of time the slave is behind the master for trigger expressions.' + - macro: '{$MYSQL.SLOW_QUERIES.MAX.WARN}' + value: '3' + description: 'Number of slow queries for trigger expressions.' + - macro: '{$MYSQL.USER}' + value: '' + description: 'MySQL username.' + dashboards: + - uuid: d56c53704c264552a09cf3e59a1835f3 + name: 'MySQL performance' + pages: + - widgets: + - type: graph + name: 'MySQL: Operations' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by ODBC' + name: 'MySQL: Operations' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'MySQL: Connections' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by ODBC' + name: 'MySQL: Connections' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: 'MySQL: InnoDB buffer pool' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by ODBC' + name: 'MySQL: InnoDB buffer pool' + - type: STRING + name: reference + value: AAAAE + - type: graph + name: 'MySQL: Queries' + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by ODBC' + name: 'MySQL: Queries' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: 'MySQL: Bandwidth' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by ODBC' + name: 'MySQL: Bandwidth' + - type: STRING + name: reference + value: AAAAD + - type: graph + name: 'MySQL: Threads' + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by ODBC' + name: 'MySQL: Threads' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: 622c38d0af2a4b6ea7a640a5d1a22b93 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 3522a11cae374d08a751f419e51748e1 + name: 'MySQL: Bandwidth' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MySQL by ODBC' + key: mysql.bytes_received.rate + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'MySQL by ODBC' + key: mysql.bytes_sent.rate + - uuid: 51a6827371434314b76eaed17db0e09e + name: 'MySQL: Connections' + graph_items: + - color: 199C0D + item: + host: 'MySQL by ODBC' + key: mysql.aborted_clients.rate + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by ODBC' + key: mysql.aborted_connects.rate + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by ODBC' + key: mysql.connections.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by ODBC' + key: mysql.max_used_connections + - uuid: 07edad9e34394a689dc294c8ec27a37e + name: 'MySQL: InnoDB buffer pool' + graph_items: + - color: 199C0D + item: + host: 'MySQL by ODBC' + key: mysql.innodb_buffer_pool_pages_free + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by ODBC' + key: mysql.innodb_buffer_pool_pages_total + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by ODBC' + key: mysql.innodb_buffer_pool_read_requests.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by ODBC' + key: mysql.innodb_buffer_pool_reads.rate + - uuid: 93bb7077e60047e59ac3fd308044722a + name: 'MySQL: Operations' + graph_items: + - color: 199C0D + item: + host: 'MySQL by ODBC' + key: mysql.com_delete.rate + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by ODBC' + key: mysql.com_insert.rate + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by ODBC' + key: mysql.com_select.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by ODBC' + key: mysql.com_update.rate + - uuid: 172ad44d7cef4c20b08b4babf8969805 + name: 'MySQL: Queries' + graph_items: + - color: 199C0D + item: + host: 'MySQL by ODBC' + key: mysql.queries.rate + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by ODBC' + key: mysql.questions.rate + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by ODBC' + key: mysql.slow_queries.rate + - uuid: 1ce62612e1174b3fa91bde29ccaa27ef + name: 'MySQL: Threads' + graph_items: + - color: 199C0D + item: + host: 'MySQL by ODBC' + key: mysql.threads_cached + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by ODBC' + key: mysql.threads_connected + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by ODBC' + key: mysql.threads_created.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by ODBC' + key: mysql.threads_running diff --git a/MySQL_by_Zabbix_agent.yaml b/MySQL_by_Zabbix_agent.yaml new file mode 100644 index 0000000..8f2d0c0 --- /dev/null +++ b/MySQL_by_Zabbix_agent.yaml @@ -0,0 +1,1650 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: f255e3fc32124b55b2a17ef3c961e5f5 + template: 'MySQL by Zabbix agent' + name: 'MySQL by Zabbix agent' + description: | + Requirements for template operation: + + 1. Install Zabbix agent and MySQL client. If necessary, add the path to the 'mysql' and 'mysqladmin' utilities to the global environment variable PATH. + + 2. Copy the 'template_db_mysql.conf' file with user parameters into folder with Zabbix agent configuration (/etc/zabbix/zabbix_agentd.d/ by default). Don't forget to restart Zabbix agent. + + 3. Create the MySQL user that will be used for monitoring ('' at your discretion). For example: + + CREATE USER 'zbx_monitor'@'%' IDENTIFIED BY ''; + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%'; + + For more information, please see MySQL documentation (https://dev.mysql.com/doc/refman/8.0/en/grant.html). + + NOTE: In order to collect replication metrics, MariaDB Enterprise Server 10.5.8-5 and above and MariaDB Community Server 10.5.9 and above require the SLAVE MONITOR privilege to be set for the monitoring user: + + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW,SLAVE MONITOR ON *.* TO 'zbx_monitor'@'%'; + + For more information, please read the MariaDB documentation (https://mariadb.com/docs/server/ref/mdb/privileges/SLAVE_MONITOR/). + + 4. Create '.my.cnf' configuration file in the home directory of Zabbix agent for Linux distributions (/var/lib/zabbix by default) or 'my.cnf' in c:\ for Windows. For example: + + [client] + protocol=tcp + user='zbx_monitor' + password='' + + For more information, please see MySQL documentation (https://dev.mysql.com/doc/refman/8.0/en/option-files.html). + + NOTE: Linux distributions that use SELinux may require additional steps for access configuration. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384189-discussion-thread-for-official-zabbix-template-db-mysql + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Databases + items: + - uuid: b463e01655bf4dec81d5208f7a75766b + name: 'Aborted clients per second' + type: DEPENDENT + key: mysql.aborted_clients.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections that were aborted because the client died without closing the connection properly.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Aborted_clients'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: d33a03e48f6d45dca04a505bab07a860 + name: 'Aborted connections per second' + type: DEPENDENT + key: mysql.aborted_connects.rate + delay: '0' + value_type: FLOAT + description: 'Number of failed attempts to connect to the MySQL server.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Aborted_connects'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: e51c9ee3061c4e3889be1666afe6959d + expression: 'min(/MySQL by Zabbix agent/mysql.aborted_connects.rate,5m)>{$MYSQL.ABORTED_CONN.MAX.WARN}' + name: 'MySQL: Server has aborted connections' + event_name: 'MySQL: Server has aborted connections (over {$MYSQL.ABORTED_CONN.MAX.WARN} for 5m)' + priority: AVERAGE + description: 'The number of failed attempts to connect to the MySQL server is more than `{$MYSQL.ABORTED_CONN.MAX.WARN}` in the last 5 minutes.' + dependencies: + - name: 'MySQL: Refused connections' + expression: 'last(/MySQL by Zabbix agent/mysql.connection_errors_max_connections.rate)>0' + tags: + - tag: scope + value: availability + - uuid: 75b9c78d76334927a3fc2a4d1322ecc2 + name: 'Binlog cache disk use' + type: DEPENDENT + key: mysql.binlog_cache_disk_use + delay: '0' + value_type: FLOAT + description: 'Number of transactions that used a temporary disk cache because they could not fit in the regular binary log cache, being larger than `binlog_cache_size`.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Binlog_cache_disk_use'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: cache + - uuid: 9a447424aca84124abdfa389865126d4 + name: 'Buffer pool efficiency' + type: CALCULATED + key: mysql.buffer_pool_efficiency + value_type: FLOAT + units: '%' + params: | + 100 - (last(//mysql.innodb_buffer_pool_reads) / + ( last(//mysql.innodb_buffer_pool_read_requests) + + ( last(//mysql.innodb_buffer_pool_read_requests) = 0 ) ) * 100 * + ( last(//mysql.innodb_buffer_pool_read_requests) > 0 )) + description: 'The item shows how effectively the buffer pool is serving reads.' + tags: + - tag: component + value: memory + - uuid: 9aca02e86e744f43ab48e8ca9453cf77 + name: 'Buffer pool utilization' + type: CALCULATED + key: mysql.buffer_pool_utilization + value_type: FLOAT + units: '%' + params: | + ( last(//mysql.innodb_buffer_pool_pages_total) - + last(//mysql.innodb_buffer_pool_pages_free) ) / + ( last(//mysql.innodb_buffer_pool_pages_total) + + ( last(//mysql.innodb_buffer_pool_pages_total) = 0 ) ) * 100 * + ( last(//mysql.innodb_buffer_pool_pages_total) > 0 ) + description: 'Ratio of used to total pages in the buffer pool.' + tags: + - tag: component + value: memory + triggers: + - uuid: 0e8ea91d72a64507aaadf9ea5efa6412 + expression: 'max(/MySQL by Zabbix agent/mysql.buffer_pool_utilization,5m)<{$MYSQL.BUFF_UTIL.MIN.WARN}' + name: 'MySQL: Buffer pool utilization is too low' + event_name: 'MySQL: Buffer pool utilization is too low (less than {$MYSQL.BUFF_UTIL.MIN.WARN}% for 5m)' + priority: WARNING + description: 'The buffer pool utilization is less than `{$MYSQL.BUFF_UTIL.MIN.WARN}`% in the last 5 minutes. This means that there is a lot of unused RAM allocated for the buffer pool, which you can easily reallocate at the moment.' + tags: + - tag: scope + value: notice + - uuid: 56512a1e89d34826ad261ab27119e80d + name: 'Bytes received' + type: DEPENDENT + key: mysql.bytes_received.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes received from all clients.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Bytes_received'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: network + - uuid: c4cea16e3dbe4d328d9a50e113f3b904 + name: 'Bytes sent' + type: DEPENDENT + key: mysql.bytes_sent.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes sent to all clients.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Bytes_sent'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: network + - uuid: 24ab8f0bd32a45f591c676ef839876df + name: 'Command Delete per second' + type: DEPENDENT + key: mysql.com_delete.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_delete` counter variable indicates the number of times the `DELETE` statement has been executed.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Com_delete'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: operations + - uuid: e48c67c893e5494fb00ea31222bd2caf + name: 'Command Insert per second' + type: DEPENDENT + key: mysql.com_insert.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_insert` counter variable indicates the number of times the `INSERT` statement has been executed.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Com_insert'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: operations + - uuid: 718c3af61f2645e8ab7d3496d6639c79 + name: 'Command Select per second' + type: DEPENDENT + key: mysql.com_select.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_select` counter variable indicates the number of times the `SELECT` statement has been executed.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Com_select'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: operations + - uuid: e2c3ea26dd34472c9e5f0e48a67da6dd + name: 'Command Update per second' + type: DEPENDENT + key: mysql.com_update.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_update` counter variable indicates the number of times the `UPDATE` statement has been executed.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Com_update'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: operations + - uuid: bcf8a21aacc54a79a958604b278f9617 + name: 'Connections per second' + type: DEPENDENT + key: mysql.connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of connection attempts (successful or not) to the MySQL server.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connections'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: dc963a1250ab453cb090af0154d745c3 + name: 'Connection errors accept per second' + type: DEPENDENT + key: mysql.connection_errors_accept.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors that occurred during calls to `accept()` on the listening port.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_accept'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 4cff4caf382f4f00b534651212132bd2 + name: 'Connection errors internal per second' + type: DEPENDENT + key: mysql.connection_errors_internal.rate + delay: '0' + value_type: FLOAT + description: 'Number of refused connections due to internal server errors, for example, out of memory errors, or failed thread starts.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_internal'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 3cbc55fc7b764a61baceb11e98fd454c + name: 'Connection errors max connections per second' + type: DEPENDENT + key: mysql.connection_errors_max_connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of refused connections due to the `max_connections` limit being reached.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_max_connections'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 2ff2d0f399df4cb08b7196d3a4690567 + expression: 'last(/MySQL by Zabbix agent/mysql.connection_errors_max_connections.rate)>0' + name: 'MySQL: Refused connections' + event_name: 'MySQL: Refused connections (max_connections limit reached)' + priority: AVERAGE + description: 'Number of refused connections due to the `max_connections` limit being reached.' + tags: + - tag: scope + value: availability + - uuid: e577b4b6c553401bbb831b7278dbbcb7 + name: 'Connection errors peer address per second' + type: DEPENDENT + key: mysql.connection_errors_peer_address.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors while searching for the connecting client''s IP address.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_peer_address'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 228aaf5333ce4958aa3a07e0898add63 + name: 'Connection errors select per second' + type: DEPENDENT + key: mysql.connection_errors_select.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors during calls to `select()` or `poll()` on the listening port. The client would not necessarily have been rejected in these cases.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_select'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: a7632124b2b648bfa80a2e8a0381f4d2 + name: 'Connection errors tcpwrap per second' + type: DEPENDENT + key: mysql.connection_errors_tcpwrap.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections the libwrap library has refused.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_tcpwrap'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 52335a039571454ebaccc9ab103200a3 + name: 'Created tmp tables on disk per second' + type: DEPENDENT + key: mysql.created_tmp_disk_tables.rate + delay: '0' + value_type: FLOAT + description: 'Number of internal on-disk temporary tables created by the server while executing statements.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Created_tmp_disk_tables'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: storage + - tag: component + value: tables + triggers: + - uuid: 1b8761292e89476e91834f8e567a1dbe + expression: 'min(/MySQL by Zabbix agent/mysql.created_tmp_disk_tables.rate,5m)>{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}' + name: 'MySQL: Number of on-disk temporary tables created per second is high' + event_name: 'MySQL: Number of on-disk temporary tables created per second is high (over {$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: d1dd183666d44010a5054f2e1cc328de + name: 'Created tmp files on disk per second' + type: DEPENDENT + key: mysql.created_tmp_files.rate + delay: '0' + value_type: FLOAT + description: 'How many temporary files `mysqld` has created.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Created_tmp_files'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: storage + triggers: + - uuid: 9845d8dc676f4702ae34b626f39d21ac + expression: 'min(/MySQL by Zabbix agent/mysql.created_tmp_files.rate,5m)>{$MYSQL.CREATED_TMP_FILES.MAX.WARN}' + name: 'MySQL: Number of temporary files created per second is high' + event_name: 'MySQL: Number of temporary files created per second is high (over {$MYSQL.CREATED_TMP_FILES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: c9a94c3145a643ef8ceec33f63b85ae9 + name: 'Created tmp tables on memory per second' + type: DEPENDENT + key: mysql.created_tmp_tables.rate + delay: '0' + value_type: FLOAT + description: 'Number of internal temporary tables created by the server while executing statements.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Created_tmp_tables'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: memory + - tag: component + value: tables + triggers: + - uuid: c647a51864e04bc69a1f610b1dec56fe + expression: 'min(/MySQL by Zabbix agent/mysql.created_tmp_tables.rate,5m)>{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}' + name: 'MySQL: Number of internal temporary tables created per second is high' + event_name: 'MySQL: Number of internal temporary tables created per second is high (over {$MYSQL.CREATED_TMP_TABLES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: 2ba81b425bde4ba5b3f7d00a6c922ed9 + name: 'Get status variables' + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets server global status information.' + tags: + - tag: component + value: raw + - uuid: a9b965a07b504fa1b4e90acae0156221 + name: 'InnoDB buffer pool pages free' + type: DEPENDENT + key: mysql.innodb_buffer_pool_pages_free + delay: '0' + description: 'The total size of the InnoDB buffer pool, in pages.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_pages_free'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: efb2450fe30c4ec78b954a35595b7ac7 + name: 'InnoDB buffer pool pages total' + type: DEPENDENT + key: mysql.innodb_buffer_pool_pages_total + delay: '0' + description: 'The total size of the InnoDB buffer pool, in pages.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_pages_total'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 7738a4480f69427a96d46a9ca5b38d77 + name: 'InnoDB buffer pool reads' + type: DEPENDENT + key: mysql.innodb_buffer_pool_reads + delay: '0' + description: 'Number of logical reads that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_reads'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 1704fe0bf8de4882a6a16ebd75c4c3bf + name: 'InnoDB buffer pool reads per second' + type: DEPENDENT + key: mysql.innodb_buffer_pool_reads.rate + delay: '0' + value_type: FLOAT + description: 'Number of logical reads per second that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_reads'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 598dcdb7eeec42c78484be70c814cd8a + name: 'InnoDB buffer pool read requests' + type: DEPENDENT + key: mysql.innodb_buffer_pool_read_requests + delay: '0' + description: 'Number of logical read requests.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_read_requests'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 3ed432f4e0c949debaed9d60c5d13810 + name: 'InnoDB buffer pool read requests per second' + type: DEPENDENT + key: mysql.innodb_buffer_pool_read_requests.rate + delay: '0' + value_type: FLOAT + description: 'Number of logical read requests per second.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_read_requests'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 61db0feae0b440c087177f4312eb6b7a + name: 'Innodb buffer pool wait free' + type: DEPENDENT + key: mysql.innodb_buffer_pool_wait_free + delay: '0' + value_type: FLOAT + description: 'Number of times InnoDB waited for a free page before reading or creating a page. Normally, writes to the InnoDB buffer pool happen in the background. When no clean pages are available, dirty pages are flushed first in order to free some up. This counts the numbers of wait for this operation to finish. If this value is not small, look at the increasing `innodb_buffer_pool_size`.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_wait_free'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: e5413d85449e4baea683c6365808cc17 + name: 'Calculated value of innodb_log_file_size' + type: CALCULATED + key: mysql.innodb_log_file_size + value_type: FLOAT + params: '(last(//mysql.innodb_os_log_written) - last(//mysql.innodb_os_log_written,#1:now-1h)) / {$MYSQL.INNODB_LOG_FILES}' + description: '`Innodb_log_file_size` is calculated as: (`innodb_os_log_written`-`innodb_os_log_written`(time shift -1h))/`{$MYSQL.INNODB_LOG_FILES}`. `Innodb_log_file_size` is the size in bytes of the each InnoDB redo log file in the log group. The combined size can be no more than 512 GB. Larger values mean less disk I/O due to less flushing checkpoint activity, but also slower recovery from a crash.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 2eacd8c07f7148acaaa9b8f8602720ae + name: 'Innodb number open files' + type: DEPENDENT + key: mysql.innodb_num_open_files + delay: '0' + value_type: FLOAT + description: 'Number of open files held by InnoDB. InnoDB only.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_num_open_files'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: system + - uuid: 29d3513668ad4bdea28d947d2f983dd2 + name: 'Innodb log written' + type: DEPENDENT + key: mysql.innodb_os_log_written + delay: '0' + value_type: FLOAT + units: B + description: 'Number of bytes written to the InnoDB log.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_os_log_written'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: system + - uuid: 3811018fdfaf4d92a5b8ff5d631d0047 + name: 'InnoDB row lock time' + type: DEPENDENT + key: mysql.innodb_row_lock_time + delay: '0' + value_type: FLOAT + units: s + description: 'The total time spent in acquiring row locks for InnoDB tables, in milliseconds.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_row_lock_time'']/field[@name=''Value'']/text()' + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 579c1ad7680349a3b6a25dd12322fc14 + name: 'InnoDB row lock time max' + type: DEPENDENT + key: mysql.innodb_row_lock_time_max + delay: '0' + value_type: FLOAT + units: s + description: 'The maximum time to acquire a row lock for InnoDB tables, in milliseconds.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_row_lock_time_max'']/field[@name=''Value'']/text()' + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: a4618dd9ed1d4ff19f34bc82f41dbbbb + name: 'InnoDB row lock waits' + type: DEPENDENT + key: mysql.innodb_row_lock_waits + delay: '0' + description: 'Number of times operations on InnoDB tables had to wait for a row lock.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_row_lock_waits'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: e207dc3c0fe84928a36e643594d8cee5 + name: 'Max used connections' + type: DEPENDENT + key: mysql.max_used_connections + delay: '0' + description: 'The maximum number of connections that have been in use simultaneously since the server start.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Max_used_connections'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 3dd5ffb7c1cc45a487c5c7cabfa90ca6 + name: 'Open tables' + type: DEPENDENT + key: mysql.open_tables + delay: '0' + value_type: FLOAT + description: 'Number of tables that are open.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Open_tables'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: tables + - uuid: fe572969a6754248b10a35a5c0afedf3 + name: 'Open table definitions' + type: DEPENDENT + key: mysql.open_table_definitions + delay: '0' + value_type: FLOAT + description: 'Number of cached table definitions.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Open_table_definitions'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: tables + - uuid: 41cd6c8c535948f3bde6324e0912f1a8 + name: Status + key: 'mysql.ping["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + description: 'MySQL server status.' + valuemap: + name: 'Service state' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return value.indexOf(''is alive'') !== -1 ? 1 : 0;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: e78f07e3e507461f8fe33a31b1bc4eb9 + expression: 'last(/MySQL by Zabbix agent/mysql.ping["{$MYSQL.HOST}","{$MYSQL.PORT}"])=0' + name: 'MySQL: Service is down' + priority: HIGH + description: 'MySQL is down.' + tags: + - tag: scope + value: availability + - uuid: c11b8c8ec3e843cea63f6cc1d8309ccd + name: 'Queries per second' + type: DEPENDENT + key: mysql.queries.rate + delay: '0' + value_type: FLOAT + description: 'Number of statements executed by the server. This variable includes statements executed within stored programs, unlike the `Questions` variable.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Queries'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: queries + - uuid: cd7c5c4e262f4a73975d46d06ed903f9 + name: 'Questions per second' + type: DEPENDENT + key: mysql.questions.rate + delay: '0' + value_type: FLOAT + description: 'Number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the `Queries` variable.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Questions'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: queries + - uuid: a1cfc616f23648e9946f408c7146df0a + name: 'Slow queries per second' + type: DEPENDENT + key: mysql.slow_queries.rate + delay: '0' + value_type: FLOAT + description: 'Number of queries that have taken more than `long_query_time` seconds.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Slow_queries'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: queries + triggers: + - uuid: 113509b7a7b54a108c1c63346a52bbf2 + expression: 'min(/MySQL by Zabbix agent/mysql.slow_queries.rate,5m)>{$MYSQL.SLOW_QUERIES.MAX.WARN}' + name: 'MySQL: Server has slow queries' + event_name: 'MySQL: Server has slow queries (over {$MYSQL.SLOW_QUERIES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The number of slow queries is more than `{$MYSQL.SLOW_QUERIES.MAX.WARN}` in the last 5 minutes.' + tags: + - tag: scope + value: performance + - uuid: a9ce1d75a97d4740876fad7b5d569211 + name: 'Threads cached' + type: DEPENDENT + key: mysql.threads_cached + delay: '0' + description: 'Number of threads in the thread cache.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Threads_cached'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: threads + - uuid: a0079f5ffbdc40cc89b35a8b6170c32b + name: 'Threads connected' + type: DEPENDENT + key: mysql.threads_connected + delay: '0' + description: 'Number of currently open connections.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Threads_connected'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: threads + - uuid: 06976fcb42ab4a33b0056a864ecd31e7 + name: 'Threads created per second' + type: DEPENDENT + key: mysql.threads_created.rate + delay: '0' + value_type: FLOAT + description: 'Number of threads created to handle connections. If the value of `Threads_created` is large, you may want to increase the `thread_cache_size` value. The cache miss rate can be calculated as `Threads_created`/`Connections`.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Threads_created'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: threads + - uuid: 255c00a984ba462e84ba46a7430f21c9 + name: 'Threads running' + type: DEPENDENT + key: mysql.threads_running + delay: '0' + description: 'Number of threads that are not sleeping.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Threads_running'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: threads + - uuid: 6ffa704603014f0f9f765590955fb01c + name: Uptime + type: DEPENDENT + key: mysql.uptime + delay: '0' + units: uptime + description: 'Number of seconds that the server has been up.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Uptime'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: d3c80c770355464fb5a6be0357d0edca + expression: 'nodata(/MySQL by Zabbix agent/mysql.uptime,30m)=1' + name: 'MySQL: Failed to fetch info data' + event_name: 'MySQL: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for items for the last 30 minutes.' + dependencies: + - name: 'MySQL: Service is down' + expression: 'last(/MySQL by Zabbix agent/mysql.ping["{$MYSQL.HOST}","{$MYSQL.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: f02f51c764934cf394c5ad3f9c4e70d2 + expression: 'last(/MySQL by Zabbix agent/mysql.uptime)<10m' + name: 'MySQL: Service has been restarted' + event_name: 'MySQL: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'MySQL uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: a5d0f152c3ef4e069c3d5a6a5a9470fe + name: Version + key: 'mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + delay: 15m + value_type: CHAR + trends: '0' + description: 'MySQL server version.' + preprocessing: + - type: REGEX + parameters: + - '(Server version)\s+(.+)' + - \2 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + triggers: + - uuid: 7eab3a7337904ad1b2061d209371543b + expression: 'last(/MySQL by Zabbix agent/mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"],#1)<>last(/MySQL by Zabbix agent/mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"],#2) and length(last(/MySQL by Zabbix agent/mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"]))>0' + name: 'MySQL: Version has changed' + event_name: 'MySQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + description: 'The MySQL version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 8ceb226f000d48f099ee6e128ad551b5 + name: 'Database discovery' + key: 'mysql.db.discovery["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$MYSQL.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DBNAME}' + value: '{$MYSQL.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Scanning databases in DBMS.' + item_prototypes: + - uuid: dda45077011d4f8fa5c25b1f351179ca + name: 'Size of database {#DBNAME}' + key: 'mysql.dbsize["{$MYSQL.HOST}","{$MYSQL.PORT}","{#DBNAME}"]' + delay: 5m + units: B + description: 'Database size.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + return JSON.stringify(value.split("\n").map(function (name) { + return ({"{#DBNAME}": name}); + })); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: bc28468760e14d069ef7b47858846a50 + name: 'MariaDB discovery' + type: DEPENDENT + key: mysql.extra_metric.discovery + delay: '0' + description: 'Used for additional metrics if MariaDB is used.' + item_prototypes: + - uuid: 7743cdbaf71c491189ac1a927409e998 + name: 'Binlog commits' + type: DEPENDENT + key: 'mysql.binlog_commits[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of transactions committed to the binary log.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Binlog_commits'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: transactions + - uuid: c897f8f0fb1c4e409dd95305fd221e01 + name: 'Binlog group commits' + type: DEPENDENT + key: 'mysql.binlog_group_commits[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of group commits done to the binary log.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Binlog_group_commits'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: transactions + - uuid: 749e72ebd1014f7faee352e23ac3dfdd + name: 'Master GTID wait count' + type: DEPENDENT + key: 'mysql.master_gtid_wait_count[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The number of times `MASTER_GTID_WAIT` called.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Master_gtid_wait_count'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: transactions + - uuid: 4a4537b0db5b43119af910d0ba421035 + name: 'Master GTID wait timeouts' + type: DEPENDENT + key: 'mysql.master_gtid_wait_timeouts[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of timeouts occurring in `MASTER_GTID_WAIT`.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Master_gtid_wait_timeouts'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: transactions + - uuid: c1e95abc88cf486a9226bf760254f797 + name: 'Master GTID wait time' + type: DEPENDENT + key: 'mysql.master_gtid_wait_time[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of time spent in `MASTER_GTID_WAIT`.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Master_gtid_wait_time'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: transactions + master_item: + key: 'mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value.search(''MariaDB'')>-1 ? [{''{#SINGLETON}'': ''''}] : []);' + - uuid: aed60b7ae3794d0ba25ad82da12b8966 + name: 'Replication discovery' + key: 'mysql.replication.discovery["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + delay: 1h + description: 'If "show slave status" returns Master_Host, "Replication: *" items are created.' + item_prototypes: + - uuid: 48555d71074f4cd4a61dca6187c8b29a + name: 'Replication Seconds Behind Master {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.seconds_behind_master["{#MASTER_HOST}"]' + delay: '0' + units: s + description: | + The number of seconds that the slave SQL thread is behind processing the master binary log. + A high number (or an increasing one) can indicate that the slave is unable to handle events + from the master in a timely fashion. + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row/field[@name=''Seconds_Behind_Master'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: NOT_MATCHES_REGEX + parameters: + - 'null' + error_handler: CUSTOM_ERROR + error_handler_params: 'Replication is not performed.' + master_item: + key: 'mysql.slave_status["{$MYSQL.HOST}","{$MYSQL.PORT}","{#SQL_STATEMENT}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: a5c91da088414d279f5ea3cd59093ce9 + expression: 'min(/MySQL by Zabbix agent/mysql.seconds_behind_master["{#MASTER_HOST}"],5m)>{$MYSQL.REPL_LAG.MAX.WARN}' + name: 'MySQL: Replication lag is too high' + event_name: 'MySQL: Replication lag is too high (over {$MYSQL.REPL_LAG.MAX.WARN} for 5m)' + priority: WARNING + description: 'Replication delay is too long.' + tags: + - tag: scope + value: notice + - uuid: 1c075f4785604d92a33a868e213070d8 + name: 'Replication Slave IO Running {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.slave_io_running["{#MASTER_HOST}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Whether the I/O thread for reading the master's binary log is running. + Normally, you want this to be `Yes` unless you have not yet started replication or have + explicitly stopped it with `STOP SLAVE`. + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row/field[@name=''Slave_IO_Running'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.slave_status["{$MYSQL.HOST}","{$MYSQL.PORT}","{#SQL_STATEMENT}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: 8ee45932311443cb906306b1d2c99b19 + expression: 'count(/MySQL by Zabbix agent/mysql.slave_io_running["{#MASTER_HOST}"],#1,"ne","Yes")=1' + name: 'MySQL: The slave I/O thread is not connected to a replication master' + priority: WARNING + description: 'Whether the slave I/O thread is connected to the master.' + dependencies: + - name: 'MySQL: The slave I/O thread is not running' + expression: 'count(/MySQL by Zabbix agent/mysql.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + tags: + - tag: scope + value: availability + - uuid: 4c8ca45f26254d9a9a1c9248f1fa1537 + expression: 'count(/MySQL by Zabbix agent/mysql.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + name: 'MySQL: The slave I/O thread is not running' + priority: AVERAGE + description: 'Whether the I/O thread for reading the master''s binary log is running.' + tags: + - tag: scope + value: notice + - uuid: 967c6fd13cc04562a9fea174bd90b8c4 + name: 'Replication Slave SQL Running {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.slave_sql_running["{#MASTER_HOST}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Whether the SQL thread for executing events in the relay log is running. + As with the I/O thread, this should normally be `Yes`. + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row/field[@name=''Slave_SQL_Running'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.slave_status["{$MYSQL.HOST}","{$MYSQL.PORT}","{#SQL_STATEMENT}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: bd0d20c05e3b46b6a7c341e5d122208b + expression: 'count(/MySQL by Zabbix agent/mysql.slave_sql_running["{#MASTER_HOST}"],#1,"eq","No")=1' + name: 'MySQL: The SQL thread is not running' + priority: WARNING + description: 'Whether the SQL thread for executing events in the relay log is running.' + dependencies: + - name: 'MySQL: The slave I/O thread is not running' + expression: 'count(/MySQL by Zabbix agent/mysql.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + tags: + - tag: scope + value: notice + - uuid: 27e807d840d4474484c2e1f896726b6b + name: 'Replication Slave SQL Running State {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.slave_sql_running_state["{#MASTER_HOST}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'This shows the state of the SQL driver threads.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Slave_SQL_Running_State'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.slave_status["{$MYSQL.HOST}","{$MYSQL.PORT}","{#SQL_STATEMENT}"]' + tags: + - tag: component + value: replication + - uuid: d87c7c03e5884a43912f60ad91c3b46f + name: 'Replication Slave status {#MASTER_HOST}' + key: 'mysql.slave_status["{$MYSQL.HOST}","{$MYSQL.PORT}","{#SQL_STATEMENT}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets status information on the essential parameters of the slave threads.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value.indexOf("Source_Host") !== 0) { + value = value.replace(/Source/g, "Master"); + value = value.replace(/Replica_/g, "Slave_"); + } + + return value; + tags: + - tag: component + value: raw + lld_macro_paths: + - lld_macro: '{#MASTER_HOST}' + path: $.master_host + - lld_macro: '{#SQL_STATEMENT}' + path: $.statement + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value.length === 0) { + return '[]'; + } + + try { + var matches = value.match(/statement="show (slave|replica) status[\s\S]*(?:Master|Source)_Host[^>]*>([^<]+)'; + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%'; + + For more information please read the MySQL documentation https://dev.mysql.com/doc/refman/8.0/en/grant.html. + + NOTE: In order to collect replication metrics, MariaDB Enterprise Server 10.5.8-5 and above and MariaDB Community Server 10.5.9 and above require the SLAVE MONITOR privilege to be set for the monitoring user: + + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW,SLAVE MONITOR ON *.* TO 'zbx_monitor'@'%'; + + For more information please read the MariaDB documentation https://mariadb.com/docs/server/ref/mdb/privileges/SLAVE_MONITOR/. + + 2. Set in the {$MYSQL.DSN} macro the data source name of the MySQL instance either session name from Zabbix agent 2 configuration file or URI. + Examples: MySQL1, tcp://localhost:3306, tcp://172.16.0.10, unix:/var/run/mysql.sock + For more information about MySQL Unix socket file please read the MySQL documentation https://dev.mysql.com/doc/refman/8.0/en/problems-with-mysql-sock.html. + + 3. If you had set URI in the {$MYSQL.DSN}, please define the user name and password in host macros ({$MYSQL.USER} and {$MYSQL.PASSWORD}). + Leave macros {$MYSQL.USER} and {$MYSQL.PASSWORD} empty if you use a session name. Set the user name and password in the Plugins.Mysql.<...> section of your Zabbix agent 2 configuration file. + For more information about configuring the Zabbix MySQL plugin please read the documentation https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/go/plugins/mysql/README.md. + + NOTE: In order to use this template for monitoring MySQL version 8.4 and later, Zabbix agent 2 version 7.0.22 and later should be used. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384189-discussion-thread-for-official-zabbix-template-db-mysql. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Databases + items: + - uuid: 8a7b77d4e96a4a2d93f63eb8ca3c979b + name: 'Aborted clients per second' + type: DEPENDENT + key: mysql.aborted_clients.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections that were aborted because the client died without closing the connection properly.' + preprocessing: + - type: JSONPATH + parameters: + - $.Aborted_clients + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 77a407bb911f4b938c32de289da83383 + name: 'Aborted connections per second' + type: DEPENDENT + key: mysql.aborted_connects.rate + delay: '0' + value_type: FLOAT + description: 'Number of failed attempts to connect to the MySQL server.' + preprocessing: + - type: JSONPATH + parameters: + - $.Aborted_connects + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 0f984c4458ae4a7f9388b1edb42090bf + expression: 'min(/MySQL by Zabbix agent 2/mysql.aborted_connects.rate,5m)>{$MYSQL.ABORTED_CONN.MAX.WARN}' + name: 'MySQL: Server has aborted connections' + event_name: 'MySQL: Server has aborted connections (over {$MYSQL.ABORTED_CONN.MAX.WARN} for 5m)' + priority: AVERAGE + description: 'The number of failed attempts to connect to the MySQL server is more than `{$MYSQL.ABORTED_CONN.MAX.WARN}` in the last 5 minutes.' + dependencies: + - name: 'MySQL: Refused connections' + expression: 'last(/MySQL by Zabbix agent 2/mysql.connection_errors_max_connections.rate)>0' + tags: + - tag: scope + value: availability + - uuid: 06338fe53a014be095f3807d58b9ed5b + name: 'Binlog cache disk use' + type: DEPENDENT + key: mysql.binlog_cache_disk_use + delay: '0' + value_type: FLOAT + description: 'Number of transactions that used a temporary disk cache because they could not fit in the regular binary log cache, being larger than `binlog_cache_size`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Binlog_cache_disk_use + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: cache + - uuid: e222b97642d04128af8c1ec20e463152 + name: 'Buffer pool efficiency' + type: CALCULATED + key: mysql.buffer_pool_efficiency + value_type: FLOAT + units: '%' + params: | + 100 - (last(//mysql.innodb_buffer_pool_reads) / + ( last(//mysql.innodb_buffer_pool_read_requests) + + ( last(//mysql.innodb_buffer_pool_read_requests) = 0 ) ) * 100 * + ( last(//mysql.innodb_buffer_pool_read_requests) > 0 )) + description: 'The item shows how effectively the buffer pool is serving reads.' + tags: + - tag: component + value: memory + - uuid: 70a1642e80114fd3a129c5774acc4f50 + name: 'Buffer pool utilization' + type: CALCULATED + key: mysql.buffer_pool_utilization + value_type: FLOAT + units: '%' + params: | + ( last(//mysql.innodb_buffer_pool_pages_total) - + last(//mysql.innodb_buffer_pool_pages_free) ) / + ( last(//mysql.innodb_buffer_pool_pages_total) + + ( last(//mysql.innodb_buffer_pool_pages_total) = 0 ) ) * 100 * + ( last(//mysql.innodb_buffer_pool_pages_total) > 0 ) + description: 'Ratio of used to total pages in the buffer pool.' + tags: + - tag: component + value: memory + triggers: + - uuid: d785a37fe8d7484d9998e47e0e1d741f + expression: 'max(/MySQL by Zabbix agent 2/mysql.buffer_pool_utilization,5m)<{$MYSQL.BUFF_UTIL.MIN.WARN}' + name: 'MySQL: Buffer pool utilization is too low' + event_name: 'MySQL: Buffer pool utilization is too low (less than {$MYSQL.BUFF_UTIL.MIN.WARN}% for 5m)' + priority: WARNING + description: 'The buffer pool utilization is less than `{$MYSQL.BUFF_UTIL.MIN.WARN}`% in the last 5 minutes. This means that there is a lot of unused RAM allocated for the buffer pool, which you can easily reallocate at the moment.' + tags: + - tag: scope + value: notice + - uuid: 1501b3b4d2b143378d162bd88ab70504 + name: 'Bytes received' + type: DEPENDENT + key: mysql.bytes_received.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes received from all clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.Bytes_received + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: network + - uuid: 0af5a1b506ef4f348a11757cea440a05 + name: 'Bytes sent' + type: DEPENDENT + key: mysql.bytes_sent.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes sent to all clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.Bytes_sent + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: network + - uuid: 0ebaced7ea3a4d9d9091128a8b0f6c49 + name: 'Command Delete per second' + type: DEPENDENT + key: mysql.com_delete.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_delete` counter variable indicates the number of times the `DELETE` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - $.Com_delete + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: cc5aeff5d46c43259b7a8d0ca3296e8a + name: 'Command Insert per second' + type: DEPENDENT + key: mysql.com_insert.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_insert` counter variable indicates the number of times the `INSERT` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - $.Com_insert + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: e50d21a5d6764626a1eb3eb9f15dbc61 + name: 'Command Select per second' + type: DEPENDENT + key: mysql.com_select.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_select` counter variable indicates the number of times the `SELECT` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - $.Com_select + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 6ce28af307b54a75817536105a14d80b + name: 'Command Update per second' + type: DEPENDENT + key: mysql.com_update.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_update` counter variable indicates the number of times the `UPDATE` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - $.Com_update + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: aeb1cc1b7c1d47acb8788e3751bd0e6f + name: 'Connections per second' + type: DEPENDENT + key: mysql.connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of connection attempts (successful or not) to the MySQL server.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connections + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: dd9a33e71dd8468a9e4f2e25d3028a88 + name: 'Connection errors accept per second' + type: DEPENDENT + key: mysql.connection_errors_accept.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors that occurred during calls to `accept()` on the listening port.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_accept + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 12627c45088c4ed6a69c743ddf12e42e + name: 'Connection errors internal per second' + type: DEPENDENT + key: mysql.connection_errors_internal.rate + delay: '0' + value_type: FLOAT + description: 'Number of refused connections due to internal server errors, for example, out of memory errors, or failed thread starts.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_internal + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 1ad00e1a8a984254bec89c75a2d57ea0 + name: 'Connection errors max connections per second' + type: DEPENDENT + key: mysql.connection_errors_max_connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of refused connections due to the `max_connections` limit being reached.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_max_connections + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 15cd0177e955459ba0862425755583a0 + expression: 'last(/MySQL by Zabbix agent 2/mysql.connection_errors_max_connections.rate)>0' + name: 'MySQL: Refused connections' + event_name: 'MySQL: Refused connections (max_connections limit reached)' + priority: AVERAGE + description: 'Number of refused connections due to the `max_connections` limit being reached.' + tags: + - tag: scope + value: availability + - uuid: fbabb9b53f754cf6be0f657e90897bd9 + name: 'Connection errors peer address per second' + type: DEPENDENT + key: mysql.connection_errors_peer_address.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors while searching for the connecting client''s IP address.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_peer_address + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 48a2a6533ca4412d86e9f85fd748ad3b + name: 'Connection errors select per second' + type: DEPENDENT + key: mysql.connection_errors_select.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors during calls to `select()` or `poll()` on the listening port. The client would not necessarily have been rejected in these cases.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_select + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 6a32e65b2e1a43bbaf718a0962271efe + name: 'Connection errors tcpwrap per second' + type: DEPENDENT + key: mysql.connection_errors_tcpwrap.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections the libwrap library has refused.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_tcpwrap + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: aaf0c77bf1b647e09633db28480ddfd7 + name: 'Created tmp tables on disk per second' + type: DEPENDENT + key: mysql.created_tmp_disk_tables.rate + delay: '0' + value_type: FLOAT + description: 'Number of internal on-disk temporary tables created by the server while executing statements.' + preprocessing: + - type: JSONPATH + parameters: + - $.Created_tmp_disk_tables + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: storage + - tag: component + value: tables + triggers: + - uuid: 8c4e0c429c8241e28b930bfce7e29be8 + expression: 'min(/MySQL by Zabbix agent 2/mysql.created_tmp_disk_tables.rate,5m)>{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}' + name: 'MySQL: Number of on-disk temporary tables created per second is high' + event_name: 'MySQL: Number of on-disk temporary tables created per second is high (over {$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: 970c9a50e7304c4eb81c46f4456c3350 + name: 'Created tmp files on disk per second' + type: DEPENDENT + key: mysql.created_tmp_files.rate + delay: '0' + value_type: FLOAT + description: 'How many temporary files `mysqld` has created.' + preprocessing: + - type: JSONPATH + parameters: + - $.Created_tmp_files + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: storage + triggers: + - uuid: 322b61acd92e46f787e96486d2553886 + expression: 'min(/MySQL by Zabbix agent 2/mysql.created_tmp_files.rate,5m)>{$MYSQL.CREATED_TMP_FILES.MAX.WARN}' + name: 'MySQL: Number of temporary files created per second is high' + event_name: 'MySQL: Number of temporary files created per second is high (over {$MYSQL.CREATED_TMP_FILES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: fef23a9c80e84d87803f3540277ade1e + name: 'Created tmp tables on memory per second' + type: DEPENDENT + key: mysql.created_tmp_tables.rate + delay: '0' + value_type: FLOAT + description: 'Number of internal temporary tables created by the server while executing statements.' + preprocessing: + - type: JSONPATH + parameters: + - $.Created_tmp_tables + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: memory + - tag: component + value: tables + triggers: + - uuid: 86ed19d4ddc84f0da4a77c1dcbdf8c60 + expression: 'min(/MySQL by Zabbix agent 2/mysql.created_tmp_tables.rate,5m)>{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}' + name: 'MySQL: Number of internal temporary tables created per second is high' + event_name: 'MySQL: Number of internal temporary tables created per second is high (over {$MYSQL.CREATED_TMP_TABLES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: a18b1092c42a4560abac7af42b14f007 + name: 'Get status variables' + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets server global status information.' + tags: + - tag: component + value: raw + - uuid: 51ab15a1c63348e48e6a75ed4e0ab5e3 + name: 'InnoDB buffer pool pages free' + type: DEPENDENT + key: mysql.innodb_buffer_pool_pages_free + delay: '0' + description: 'The total size of the InnoDB buffer pool, in pages.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_pages_free + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 14a8ea7cda164240bc7360454b4cd690 + name: 'InnoDB buffer pool pages total' + type: DEPENDENT + key: mysql.innodb_buffer_pool_pages_total + delay: '0' + description: 'The total size of the InnoDB buffer pool, in pages.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_pages_total + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 2b017cf20cb5412fa4e39dc9b4469930 + name: 'InnoDB buffer pool reads' + type: DEPENDENT + key: mysql.innodb_buffer_pool_reads + delay: '0' + description: 'Number of logical reads that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_reads + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 0f2b813c8d6740d783504055dcd9a9dc + name: 'InnoDB buffer pool reads per second' + type: DEPENDENT + key: mysql.innodb_buffer_pool_reads.rate + delay: '0' + value_type: FLOAT + description: 'Number of logical reads per second that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_reads + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: ab450aaa081d4a8d9db5dfd327d3b439 + name: 'InnoDB buffer pool read requests' + type: DEPENDENT + key: mysql.innodb_buffer_pool_read_requests + delay: '0' + description: 'Number of logical read requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_read_requests + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: dbf5bd4d705744bcb185e5044ff219e9 + name: 'InnoDB buffer pool read requests per second' + type: DEPENDENT + key: mysql.innodb_buffer_pool_read_requests.rate + delay: '0' + value_type: FLOAT + description: 'Number of logical read requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_read_requests + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 3ab113998cec43da9bb702f5894d7b24 + name: 'Innodb buffer pool wait free' + type: DEPENDENT + key: mysql.innodb_buffer_pool_wait_free + delay: '0' + value_type: FLOAT + description: 'Number of times InnoDB waited for a free page before reading or creating a page. Normally, writes to the InnoDB buffer pool happen in the background. When no clean pages are available, dirty pages are flushed first in order to free some up. This counts the numbers of wait for this operation to finish. If this value is not small, look at the increasing `innodb_buffer_pool_size`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_wait_free + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: e35cf67b6d2f44ffae908296faccfa50 + name: 'Calculated value of innodb_log_file_size' + type: CALCULATED + key: mysql.innodb_log_file_size + value_type: FLOAT + params: '(last(//mysql.innodb_os_log_written) - last(//mysql.innodb_os_log_written,#1:now-1h)) / {$MYSQL.INNODB_LOG_FILES}' + description: '`Innodb_log_file_size` is calculated as: (`innodb_os_log_written`-`innodb_os_log_written`(time shift -1h))/`{$MYSQL.INNODB_LOG_FILES}`. `Innodb_log_file_size` is the size in bytes of the each InnoDB redo log file in the log group. The combined size can be no more than 512 GB. Larger values mean less disk I/O due to less flushing checkpoint activity, but also slower recovery from a crash.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 2c1cba2399ab4b349e9751252c000b95 + name: 'Innodb number open files' + type: DEPENDENT + key: mysql.innodb_num_open_files + delay: '0' + value_type: FLOAT + description: 'Number of open files held by InnoDB. InnoDB only.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_num_open_files + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: system + - uuid: 6a4c63c40fb042868d2f23c86a0601a5 + name: 'Innodb log written' + type: DEPENDENT + key: mysql.innodb_os_log_written + delay: '0' + value_type: FLOAT + units: B + description: 'Number of bytes written to the InnoDB log.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_os_log_written + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: system + - uuid: 60cbafe89a294f6fb24e3b9efe241bf5 + name: 'InnoDB row lock time' + type: DEPENDENT + key: mysql.innodb_row_lock_time + delay: '0' + value_type: FLOAT + units: s + description: 'The total time spent in acquiring row locks for InnoDB tables, in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_row_lock_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 3827ee01c4434ff09555b4dba63bac47 + name: 'InnoDB row lock time max' + type: DEPENDENT + key: mysql.innodb_row_lock_time_max + delay: '0' + value_type: FLOAT + units: s + description: 'The maximum time to acquire a row lock for InnoDB tables, in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_row_lock_time_max + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 4a849f57a32847ffb41a0e8a7e7735ce + name: 'InnoDB row lock waits' + type: DEPENDENT + key: mysql.innodb_row_lock_waits + delay: '0' + description: 'Number of times operations on InnoDB tables had to wait for a row lock.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_row_lock_waits + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: afd9c494cc584ddd833298820d7beace + name: 'Max used connections' + type: DEPENDENT + key: mysql.max_used_connections + delay: '0' + description: 'The maximum number of connections that have been in use simultaneously since the server start.' + preprocessing: + - type: JSONPATH + parameters: + - $.Max_used_connections + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: e766adca92fa47299b79e75d263437cc + name: 'Open tables' + type: DEPENDENT + key: mysql.open_tables + delay: '0' + value_type: FLOAT + description: 'Number of tables that are open.' + preprocessing: + - type: JSONPATH + parameters: + - $.Open_tables + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: tables + - uuid: 26f839251a444e9abf83d4710718962a + name: 'Open table definitions' + type: DEPENDENT + key: mysql.open_table_definitions + delay: '0' + value_type: FLOAT + description: 'Number of cached table definitions.' + preprocessing: + - type: JSONPATH + parameters: + - $.Open_table_definitions + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: tables + - uuid: 8ca25701d88a4d33899a515d8e25dd5b + name: Status + key: 'mysql.ping["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + description: 'MySQL server status.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 907a105ecee24eef9dd89598a42b6974 + expression: 'last(/MySQL by Zabbix agent 2/mysql.ping["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"])=0' + name: 'MySQL: Service is down' + priority: HIGH + description: 'MySQL is down.' + tags: + - tag: scope + value: availability + - uuid: 345b2dd64d4041c7849aafc82cc63580 + name: 'Queries per second' + type: DEPENDENT + key: mysql.queries.rate + delay: '0' + value_type: FLOAT + description: 'Number of statements executed by the server. This variable includes statements executed within stored programs, unlike the `Questions` variable.' + preprocessing: + - type: JSONPATH + parameters: + - $.Queries + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: queries + - uuid: 73bc839df32e4d598f589a4a5440925e + name: 'Questions per second' + type: DEPENDENT + key: mysql.questions.rate + delay: '0' + value_type: FLOAT + description: 'Number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the `Queries` variable.' + preprocessing: + - type: JSONPATH + parameters: + - $.Questions + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: queries + - uuid: 0492b7b8c8464d0596c24dc877ba41e0 + name: 'Slow queries per second' + type: DEPENDENT + key: mysql.slow_queries.rate + delay: '0' + value_type: FLOAT + description: 'Number of queries that have taken more than `long_query_time` seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.Slow_queries + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: queries + triggers: + - uuid: 8ffcb17b0a644c5e8a2842b34d5713a8 + expression: 'min(/MySQL by Zabbix agent 2/mysql.slow_queries.rate,5m)>{$MYSQL.SLOW_QUERIES.MAX.WARN}' + name: 'MySQL: Server has slow queries' + event_name: 'MySQL: Server has slow queries (over {$MYSQL.SLOW_QUERIES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The number of slow queries is more than `{$MYSQL.SLOW_QUERIES.MAX.WARN}` in the last 5 minutes.' + tags: + - tag: scope + value: performance + - uuid: de0edc0ab52b488681a597ba6bda3e9e + name: 'Threads cached' + type: DEPENDENT + key: mysql.threads_cached + delay: '0' + description: 'Number of threads in the thread cache.' + preprocessing: + - type: JSONPATH + parameters: + - $.Threads_cached + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: threads + - uuid: 6cd93969a80b4f738cd734764011b324 + name: 'Threads connected' + type: DEPENDENT + key: mysql.threads_connected + delay: '0' + description: 'Number of currently open connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.Threads_connected + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: threads + - uuid: eaab0b45e023459fa5c1e8b76e860431 + name: 'Threads created per second' + type: DEPENDENT + key: mysql.threads_created.rate + delay: '0' + value_type: FLOAT + description: 'Number of threads created to handle connections. If the value of `Threads_created` is large, you may want to increase the `thread_cache_size` value. The cache miss rate can be calculated as `Threads_created`/`Connections`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Threads_created + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: threads + - uuid: c4258eb3d8db4f30bc29dc531c5276a2 + name: 'Threads running' + type: DEPENDENT + key: mysql.threads_running + delay: '0' + description: 'Number of threads that are not sleeping.' + preprocessing: + - type: JSONPATH + parameters: + - $.Threads_running + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: threads + - uuid: 1f3a71e74d8e42a1b539d67b4fc18531 + name: Uptime + type: DEPENDENT + key: mysql.uptime + delay: '0' + units: uptime + description: 'Number of seconds that the server has been up.' + preprocessing: + - type: JSONPATH + parameters: + - $.Uptime + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 6f4edf8bfca0477b8b28a8ff811476b3 + expression: 'nodata(/MySQL by Zabbix agent 2/mysql.uptime,30m)=1' + name: 'MySQL: Failed to fetch info data' + event_name: 'MySQL: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for items for the last 30 minutes.' + dependencies: + - name: 'MySQL: Service is down' + expression: 'last(/MySQL by Zabbix agent 2/mysql.ping["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"])=0' + tags: + - tag: scope + value: availability + - uuid: db5159889cb94f27840e6f4974ee5c0e + expression: 'last(/MySQL by Zabbix agent 2/mysql.uptime)<10m' + name: 'MySQL: Service has been restarted' + event_name: 'MySQL: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'MySQL uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 8058b068b90748fea464443058103fc8 + name: Version + key: 'mysql.version["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + delay: 15m + value_type: CHAR + trends: '0' + description: 'MySQL server version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: application + triggers: + - uuid: e22c2e2213d74df98d344a95c8a96b6d + expression: 'last(/MySQL by Zabbix agent 2/mysql.version["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"],#1)<>last(/MySQL by Zabbix agent 2/mysql.version["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"],#2) and length(last(/MySQL by Zabbix agent 2/mysql.version["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]))>0' + name: 'MySQL: Version has changed' + event_name: 'MySQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + description: 'The MySQL version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 49cbb331980040908673ceb2706d9542 + name: 'Database discovery' + key: 'mysql.db.discovery["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DATABASE}' + value: '{$MYSQL.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DATABASE}' + value: '{$MYSQL.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Scanning databases in DBMS.' + item_prototypes: + - uuid: e3e3c31483e94be2bd24b062bb049027 + name: 'Size of database {#DATABASE}' + key: 'mysql.db.size["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#DATABASE}"]' + delay: 5m + units: B + description: 'Database size.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: storage + - tag: database + value: '{#DATABASE}' + lld_macro_paths: + - lld_macro: '{#DATABASE}' + path: $.Database + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: 15035186d4d54962bc6b82ebbaea8784 + name: 'MariaDB discovery' + type: DEPENDENT + key: mysql.extra_metric.discovery + delay: '0' + description: 'Used for additional metrics if MariaDB is used.' + item_prototypes: + - uuid: c7ff129277134d86923dfb10e6d67928 + name: 'Binlog commits' + type: DEPENDENT + key: 'mysql.binlog_commits[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of transactions committed to the binary log.' + preprocessing: + - type: JSONPATH + parameters: + - $.Binlog_commits + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: transactions + - uuid: 07b27817a20244d68f2609c43aea1dea + name: 'Binlog group commits' + type: DEPENDENT + key: 'mysql.binlog_group_commits[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of group commits done to the binary log.' + preprocessing: + - type: JSONPATH + parameters: + - $.Binlog_group_commits + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: transactions + - uuid: 152c4219a8d14812a813a250c6f17071 + name: 'Master GTID wait count' + type: DEPENDENT + key: 'mysql.master_gtid_wait_count[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The number of times `MASTER_GTID_WAIT` called.' + preprocessing: + - type: JSONPATH + parameters: + - $.Master_gtid_wait_count + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: transactions + - uuid: 3f13ee12a3db4933804c103ebfb170c9 + name: 'Master GTID wait timeouts' + type: DEPENDENT + key: 'mysql.master_gtid_wait_timeouts[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of timeouts occurring in `MASTER_GTID_WAIT`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Master_gtid_wait_timeouts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: transactions + - uuid: 6ed43548a190425a83fce15b84b3ec87 + name: 'Master GTID wait time' + type: DEPENDENT + key: 'mysql.master_gtid_wait_time[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of time spent in `MASTER_GTID_WAIT`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Master_gtid_wait_time + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: transactions + master_item: + key: 'mysql.version["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value.search(''MariaDB'')>-1 ? [{''{#SINGLETON}'': ''''}] : []);' + - uuid: 59cd0d5f67e441f7ad3627233ab6b595 + name: 'Replication discovery' + key: 'mysql.replication.discovery["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + delay: 1h + description: 'If "show slave status" returns Master_Host, "Replication: *" items are created.' + item_prototypes: + - uuid: 130d6421b7864444a083dc7ffb1c03c5 + name: 'Replication Slave status {#MASTER_HOST}' + key: 'mysql.replication.get_slave_status["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#MASTER_HOST}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets status information on the essential parameters of the slave threads.' + tags: + - tag: component + value: raw + - uuid: bdbd657020b24a14a771a29a8a945a2b + name: 'Replication Seconds Behind Master {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.replication.seconds_behind_master["{#MASTER_HOST}"]' + delay: '0' + units: s + description: | + Number of seconds that the slave SQL thread is behind processing the master binary log. + A high number (or an increasing one) can indicate that the slave is unable to handle events + from the master in a timely fashion. + preprocessing: + - type: JSONPATH + parameters: + - $.Seconds_Behind_Master + - type: MATCHES_REGEX + parameters: + - \d+ + error_handler: CUSTOM_ERROR + error_handler_params: 'Replication is not performed.' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.replication.get_slave_status["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#MASTER_HOST}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: 373e215000a64e05b0379f186141067f + expression: 'min(/MySQL by Zabbix agent 2/mysql.replication.seconds_behind_master["{#MASTER_HOST}"],5m)>{$MYSQL.REPL_LAG.MAX.WARN}' + name: 'MySQL: Replication lag is too high' + event_name: 'MySQL: Replication lag is too high (over {$MYSQL.REPL_LAG.MAX.WARN} for 5m)' + priority: WARNING + description: 'Replication delay is too long.' + tags: + - tag: scope + value: notice + - uuid: 2a5eb9d62cd046138d7564aa22b9ca33 + name: 'Replication Slave IO Running {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.replication.slave_io_running["{#MASTER_HOST}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Whether the I/O thread for reading the master's binary log is running. + Normally, you want this to be Yes unless you have not yet started a replication or have + explicitly stopped it with STOP SLAVE. + preprocessing: + - type: JSONPATH + parameters: + - $.Slave_IO_Running + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.replication.get_slave_status["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#MASTER_HOST}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: efe46a25a1fd48e1a7504a9b06c26aee + expression: 'count(/MySQL by Zabbix agent 2/mysql.replication.slave_io_running["{#MASTER_HOST}"],#1,"ne","Yes")=1' + name: 'MySQL: The slave I/O thread is not connected to a replication master' + priority: WARNING + description: 'Whether the slave I/O thread is connected to the master.' + dependencies: + - name: 'MySQL: The slave I/O thread is not running' + expression: 'count(/MySQL by Zabbix agent 2/mysql.replication.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + tags: + - tag: scope + value: availability + - uuid: 369f7ade45cd4ca39f5aa47d638e5e00 + expression: 'count(/MySQL by Zabbix agent 2/mysql.replication.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + name: 'MySQL: The slave I/O thread is not running' + priority: AVERAGE + description: 'Whether the I/O thread for reading the master''s binary log is running.' + tags: + - tag: scope + value: notice + - uuid: 4fbb3cb164064694b37924dfcbaf2271 + name: 'Replication Slave SQL Running {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.replication.slave_sql_running["{#MASTER_HOST}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Whether the SQL thread for executing events in the relay log is running. + As with the I/O thread, this should normally be Yes. + preprocessing: + - type: JSONPATH + parameters: + - $.Slave_SQL_Running + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.replication.get_slave_status["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#MASTER_HOST}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: 9099f769af4c4008a69098f9e9f63673 + expression: 'count(/MySQL by Zabbix agent 2/mysql.replication.slave_sql_running["{#MASTER_HOST}"],#1,"eq","No")=1' + name: 'MySQL: The SQL thread is not running' + priority: WARNING + description: 'Whether the SQL thread for executing events in the relay log is running.' + dependencies: + - name: 'MySQL: The slave I/O thread is not running' + expression: 'count(/MySQL by Zabbix agent 2/mysql.replication.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + tags: + - tag: scope + value: notice + - uuid: bb79eaa9fc0d45e7b323a34d0c3f03cf + name: 'Replication Slave SQL Running State {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.replication.slave_sql_running_state["{#MASTER_HOST}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'This shows the state of the SQL driver threads.' + preprocessing: + - type: JSONPATH + parameters: + - $.Slave_SQL_Running_State + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.replication.get_slave_status["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#MASTER_HOST}"]' + tags: + - tag: component + value: replication + lld_macro_paths: + - lld_macro: '{#MASTER_HOST}' + path: $.Master_Host + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: class + value: database + - tag: target + value: mysql + macros: + - macro: '{$MYSQL.ABORTED_CONN.MAX.WARN}' + value: '3' + description: 'Number of failed attempts to connect to the MySQL server for trigger expressions.' + - macro: '{$MYSQL.BUFF_UTIL.MIN.WARN}' + value: '50' + description: 'The minimum buffer pool utilization in percentage for trigger expressions.' + - macro: '{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}' + value: '10' + description: 'The maximum number of temporary tables created on a disk per second for trigger expressions.' + - macro: '{$MYSQL.CREATED_TMP_FILES.MAX.WARN}' + value: '10' + description: 'The maximum number of temporary files created on a disk per second for trigger expressions.' + - macro: '{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}' + value: '30' + description: 'The maximum number of temporary tables created in memory per second for trigger expressions.' + - macro: '{$MYSQL.DBNAME.MATCHES}' + value: .+ + description: 'Filter of discoverable databases.' + - macro: '{$MYSQL.DBNAME.NOT_MATCHES}' + value: information_schema + description: 'Filter to exclude discovered databases.' + - macro: '{$MYSQL.DSN}' + value: '' + description: 'System data source name such as .' + - macro: '{$MYSQL.INNODB_LOG_FILES}' + value: '2' + description: 'Number of physical files in the InnoDB redo log for calculating `innodb_log_file_size`.' + - macro: '{$MYSQL.PASSWORD}' + description: 'MySQL user password.' + - macro: '{$MYSQL.REPL_LAG.MAX.WARN}' + value: 30m + description: 'Amount of time the slave is behind the master for trigger expressions.' + - macro: '{$MYSQL.SLOW_QUERIES.MAX.WARN}' + value: '3' + description: 'Number of slow queries for trigger expressions.' + - macro: '{$MYSQL.USER}' + description: 'MySQL user name.' + dashboards: + - uuid: ca5006123e0f4eb8bc0155027e663d2c + name: 'MySQL performance' + pages: + - widgets: + - type: graph + name: 'MySQL: Operations' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2' + name: 'MySQL: Operations' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'MySQL: Connections' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2' + name: 'MySQL: Connections' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: 'MySQL: InnoDB buffer pool' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2' + name: 'MySQL: InnoDB buffer pool' + - type: STRING + name: reference + value: AAAAE + - type: graph + name: 'MySQL: Queries' + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2' + name: 'MySQL: Queries' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: 'MySQL: Bandwidth' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2' + name: 'MySQL: Bandwidth' + - type: STRING + name: reference + value: AAAAD + - type: graph + name: 'MySQL: Threads' + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2' + name: 'MySQL: Threads' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: f2e8233fcf0a4dd2b53a82ca48436a88 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: b744bfe679fc48afbad8fe219fe88bb5 + name: 'MySQL: Bandwidth' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.bytes_received.rate + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.bytes_sent.rate + - uuid: 5fea4f7834644e0a80562c92b61c68d2 + name: 'MySQL: Connections' + graph_items: + - color: 199C0D + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.aborted_clients.rate + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.aborted_connects.rate + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.connections.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.max_used_connections + - uuid: d54d16a2b4d54bbd9a2a6669631ef96d + name: 'MySQL: InnoDB buffer pool' + graph_items: + - color: 199C0D + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.innodb_buffer_pool_pages_free + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.innodb_buffer_pool_pages_total + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.innodb_buffer_pool_read_requests.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.innodb_buffer_pool_reads.rate + - uuid: 2e962ad1647d4ccfb6db420a4c196d23 + name: 'MySQL: Operations' + graph_items: + - color: 199C0D + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.com_delete.rate + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.com_insert.rate + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.com_select.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.com_update.rate + - uuid: 04e6ec47b0de4476b5c7a65ae012ca23 + name: 'MySQL: Queries' + graph_items: + - color: 199C0D + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.queries.rate + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.questions.rate + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.slow_queries.rate + - uuid: 974ac20701394b60823abbb84420d166 + name: 'MySQL: Threads' + graph_items: + - color: 199C0D + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.threads_cached + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.threads_connected + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.threads_created.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by Zabbix agent 2' + key: mysql.threads_running diff --git a/MySQL_by_Zabbix_agent_2_active.yaml b/MySQL_by_Zabbix_agent_2_active.yaml new file mode 100644 index 0000000..415a93f --- /dev/null +++ b/MySQL_by_Zabbix_agent_2_active.yaml @@ -0,0 +1,1611 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 51ffd432b9324ce2b04e1d4dc4122d16 + template: 'MySQL by Zabbix agent 2 active' + name: 'MySQL by Zabbix agent 2 active' + description: | + Requirements for template operation: + + 1. Create a MySQL user for monitoring. For example: + + CREATE USER 'zbx_monitor'@'%' IDENTIFIED BY ''; + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%'; + + For more information please read the MySQL documentation https://dev.mysql.com/doc/refman/8.0/en/grant.html. + + NOTE: In order to collect replication metrics, MariaDB Enterprise Server 10.5.8-5 and above and MariaDB Community Server 10.5.9 and above require the SLAVE MONITOR privilege to be set for the monitoring user: + + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW,SLAVE MONITOR ON *.* TO 'zbx_monitor'@'%'; + + For more information please read the MariaDB documentation https://mariadb.com/docs/server/ref/mdb/privileges/SLAVE_MONITOR/. + + 2. Set in the {$MYSQL.DSN} macro the data source name of the MySQL instance either session name from Zabbix agent 2 configuration file or URI. + Examples: MySQL1, tcp://localhost:3306, tcp://172.16.0.10, unix:/var/run/mysql.sock + For more information about MySQL Unix socket file please read the MySQL documentation https://dev.mysql.com/doc/refman/8.0/en/problems-with-mysql-sock.html. + + 3. If you had set URI in the {$MYSQL.DSN}, please define the user name and password in host macros ({$MYSQL.USER} and {$MYSQL.PASSWORD}). + Leave macros {$MYSQL.USER} and {$MYSQL.PASSWORD} empty if you use a session name. Set the user name and password in the Plugins.Mysql.<...> section of your Zabbix agent 2 configuration file. + For more information about configuring the Zabbix MySQL plugin please read the documentation https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/go/plugins/mysql/README.md. + + NOTE: In order to use this template for monitoring MySQL version 8.4 and later, Zabbix agent 2 version 7.0.22 and later should be used. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384189-discussion-thread-for-official-zabbix-template-db-mysql. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Databases + items: + - uuid: 2c14889cb9c7426390652828687551a9 + name: 'Aborted clients per second' + type: DEPENDENT + key: mysql.aborted_clients.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections that were aborted because the client died without closing the connection properly.' + preprocessing: + - type: JSONPATH + parameters: + - $.Aborted_clients + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 038a2fd010bb45e18217a69c2af1607f + name: 'Aborted connections per second' + type: DEPENDENT + key: mysql.aborted_connects.rate + delay: '0' + value_type: FLOAT + description: 'Number of failed attempts to connect to the MySQL server.' + preprocessing: + - type: JSONPATH + parameters: + - $.Aborted_connects + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: a8dbc39812ea4ce488dab64ee230c38c + expression: 'min(/MySQL by Zabbix agent 2 active/mysql.aborted_connects.rate,5m)>{$MYSQL.ABORTED_CONN.MAX.WARN}' + name: 'MySQL: Server has aborted connections' + event_name: 'MySQL: Server has aborted connections (over {$MYSQL.ABORTED_CONN.MAX.WARN} for 5m)' + priority: AVERAGE + description: 'The number of failed attempts to connect to the MySQL server is more than `{$MYSQL.ABORTED_CONN.MAX.WARN}` in the last 5 minutes.' + dependencies: + - name: 'MySQL: Refused connections' + expression: 'last(/MySQL by Zabbix agent 2 active/mysql.connection_errors_max_connections.rate)>0' + tags: + - tag: scope + value: availability + - uuid: ae06d3e7db1d4a8fb85cc65a3dc5e355 + name: 'Binlog cache disk use' + type: DEPENDENT + key: mysql.binlog_cache_disk_use + delay: '0' + value_type: FLOAT + description: 'Number of transactions that used a temporary disk cache because they could not fit in the regular binary log cache, being larger than `binlog_cache_size`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Binlog_cache_disk_use + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: cache + - uuid: 82d31eef03914d4abde2448691d89a7a + name: 'Buffer pool efficiency' + type: CALCULATED + key: mysql.buffer_pool_efficiency + value_type: FLOAT + units: '%' + params: | + 100 - (last(//mysql.innodb_buffer_pool_reads) / + ( last(//mysql.innodb_buffer_pool_read_requests) + + ( last(//mysql.innodb_buffer_pool_read_requests) = 0 ) ) * 100 * + ( last(//mysql.innodb_buffer_pool_read_requests) > 0 )) + description: 'The item shows how effectively the buffer pool is serving reads.' + tags: + - tag: component + value: memory + - uuid: 9fa2d2ebecaa4ff4bf2ec01a68cdf2a2 + name: 'Buffer pool utilization' + type: CALCULATED + key: mysql.buffer_pool_utilization + value_type: FLOAT + units: '%' + params: | + ( last(//mysql.innodb_buffer_pool_pages_total) - + last(//mysql.innodb_buffer_pool_pages_free) ) / + ( last(//mysql.innodb_buffer_pool_pages_total) + + ( last(//mysql.innodb_buffer_pool_pages_total) = 0 ) ) * 100 * + ( last(//mysql.innodb_buffer_pool_pages_total) > 0 ) + description: 'Ratio of used to total pages in the buffer pool.' + tags: + - tag: component + value: memory + triggers: + - uuid: 69e652db80c145e4bf7a4d4e99e0cb35 + expression: 'max(/MySQL by Zabbix agent 2 active/mysql.buffer_pool_utilization,5m)<{$MYSQL.BUFF_UTIL.MIN.WARN}' + name: 'MySQL: Buffer pool utilization is too low' + event_name: 'MySQL: Buffer pool utilization is too low (less than {$MYSQL.BUFF_UTIL.MIN.WARN}% for 5m)' + priority: WARNING + description: 'The buffer pool utilization is less than `{$MYSQL.BUFF_UTIL.MIN.WARN}`% in the last 5 minutes. This means that there is a lot of unused RAM allocated for the buffer pool, which you can easily reallocate at the moment.' + tags: + - tag: scope + value: notice + - uuid: 632dbd84e6844ed397cf1b3ffc107960 + name: 'Bytes received' + type: DEPENDENT + key: mysql.bytes_received.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes received from all clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.Bytes_received + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: network + - uuid: 7ffc513ae6994a1aa5a3ed7f601255df + name: 'Bytes sent' + type: DEPENDENT + key: mysql.bytes_sent.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes sent to all clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.Bytes_sent + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: network + - uuid: 64a7029760b94798a48333c456325059 + name: 'Command Delete per second' + type: DEPENDENT + key: mysql.com_delete.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_delete` counter variable indicates the number of times the `DELETE` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - $.Com_delete + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: a8c673bc3339494186bf53bf566c6b48 + name: 'Command Insert per second' + type: DEPENDENT + key: mysql.com_insert.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_insert` counter variable indicates the number of times the `INSERT` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - $.Com_insert + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 5bbebf6e13c0428f89a599f4ff8110bf + name: 'Command Select per second' + type: DEPENDENT + key: mysql.com_select.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_select` counter variable indicates the number of times the `SELECT` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - $.Com_select + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: c681dee803994e6790a7cee1400be6eb + name: 'Command Update per second' + type: DEPENDENT + key: mysql.com_update.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_update` counter variable indicates the number of times the `UPDATE` statement has been executed.' + preprocessing: + - type: JSONPATH + parameters: + - $.Com_update + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: operations + - uuid: 7bad2c745fd44b2e8791ee134febf51f + name: 'Connections per second' + type: DEPENDENT + key: mysql.connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of connection attempts (successful or not) to the MySQL server.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connections + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 79fc34a7b0c0468c9b9848684ce8a91c + name: 'Connection errors accept per second' + type: DEPENDENT + key: mysql.connection_errors_accept.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors that occurred during calls to `accept()` on the listening port.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_accept + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 7906ad745983463188ed4559d134c144 + name: 'Connection errors internal per second' + type: DEPENDENT + key: mysql.connection_errors_internal.rate + delay: '0' + value_type: FLOAT + description: 'Number of refused connections due to internal server errors, for example, out of memory errors, or failed thread starts.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_internal + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 0280f2ad4fa84c408540492ef560b626 + name: 'Connection errors max connections per second' + type: DEPENDENT + key: mysql.connection_errors_max_connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of refused connections due to the `max_connections` limit being reached.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_max_connections + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 4f4cdc4d19624598aaa68d18e13a45e4 + expression: 'last(/MySQL by Zabbix agent 2 active/mysql.connection_errors_max_connections.rate)>0' + name: 'MySQL: Refused connections' + event_name: 'MySQL: Refused connections (max_connections limit reached)' + priority: AVERAGE + description: 'Number of refused connections due to the `max_connections` limit being reached.' + tags: + - tag: scope + value: availability + - uuid: a5140bb668234a048db647e4463f040c + name: 'Connection errors peer address per second' + type: DEPENDENT + key: mysql.connection_errors_peer_address.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors while searching for the connecting client''s IP address.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_peer_address + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 99dcacb6e1b4443faacd3b1a5330d240 + name: 'Connection errors select per second' + type: DEPENDENT + key: mysql.connection_errors_select.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors during calls to `select()` or `poll()` on the listening port. The client would not necessarily have been rejected in these cases.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_select + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: a6901afc9c0047f18f05e4a2bdbdea4e + name: 'Connection errors tcpwrap per second' + type: DEPENDENT + key: mysql.connection_errors_tcpwrap.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections the libwrap library has refused.' + preprocessing: + - type: JSONPATH + parameters: + - $.Connection_errors_tcpwrap + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 59efa8c9e8914cbda8d6e02706ef9972 + name: 'Created tmp tables on disk per second' + type: DEPENDENT + key: mysql.created_tmp_disk_tables.rate + delay: '0' + value_type: FLOAT + description: 'Number of internal on-disk temporary tables created by the server while executing statements.' + preprocessing: + - type: JSONPATH + parameters: + - $.Created_tmp_disk_tables + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: storage + - tag: component + value: tables + triggers: + - uuid: cc8af7c9017a4873a037b5a0a8f7ac5f + expression: 'min(/MySQL by Zabbix agent 2 active/mysql.created_tmp_disk_tables.rate,5m)>{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}' + name: 'MySQL: Number of on-disk temporary tables created per second is high' + event_name: 'MySQL: Number of on-disk temporary tables created per second is high (over {$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: f1a3a596911b49a8b8bf6f36dc375c41 + name: 'Created tmp files on disk per second' + type: DEPENDENT + key: mysql.created_tmp_files.rate + delay: '0' + value_type: FLOAT + description: 'How many temporary files `mysqld` has created.' + preprocessing: + - type: JSONPATH + parameters: + - $.Created_tmp_files + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: storage + triggers: + - uuid: 92ef67f27f384dd899ddb2865e00273a + expression: 'min(/MySQL by Zabbix agent 2 active/mysql.created_tmp_files.rate,5m)>{$MYSQL.CREATED_TMP_FILES.MAX.WARN}' + name: 'MySQL: Number of temporary files created per second is high' + event_name: 'MySQL: Number of temporary files created per second is high (over {$MYSQL.CREATED_TMP_FILES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: 8d67d3f53b794179a025f0813f766199 + name: 'Created tmp tables on memory per second' + type: DEPENDENT + key: mysql.created_tmp_tables.rate + delay: '0' + value_type: FLOAT + description: 'Number of internal temporary tables created by the server while executing statements.' + preprocessing: + - type: JSONPATH + parameters: + - $.Created_tmp_tables + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: memory + - tag: component + value: tables + triggers: + - uuid: 1d927f1cbb3b4105accbaef3f0994f81 + expression: 'min(/MySQL by Zabbix agent 2 active/mysql.created_tmp_tables.rate,5m)>{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}' + name: 'MySQL: Number of internal temporary tables created per second is high' + event_name: 'MySQL: Number of internal temporary tables created per second is high (over {$MYSQL.CREATED_TMP_TABLES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: b942938fd6564e3cbcc37c11f59b2bed + name: 'Get status variables' + type: ZABBIX_ACTIVE + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets server global status information.' + tags: + - tag: component + value: raw + - uuid: b0cf7faaf9e940abb7648c712963fc9e + name: 'InnoDB buffer pool pages free' + type: DEPENDENT + key: mysql.innodb_buffer_pool_pages_free + delay: '0' + description: 'The total size of the InnoDB buffer pool, in pages.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_pages_free + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: d1f7a0c2bb584d67b49dc963885d1bbb + name: 'InnoDB buffer pool pages total' + type: DEPENDENT + key: mysql.innodb_buffer_pool_pages_total + delay: '0' + description: 'The total size of the InnoDB buffer pool, in pages.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_pages_total + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 96687092654a4d8b9e06e81664d89c12 + name: 'InnoDB buffer pool reads' + type: DEPENDENT + key: mysql.innodb_buffer_pool_reads + delay: '0' + description: 'Number of logical reads that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_reads + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: fddcc5c8139241c8ba8b950ec4cf6b1c + name: 'InnoDB buffer pool reads per second' + type: DEPENDENT + key: mysql.innodb_buffer_pool_reads.rate + delay: '0' + value_type: FLOAT + description: 'Number of logical reads per second that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_reads + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 53f1325ca0804cee8c4dff0b0064e54a + name: 'InnoDB buffer pool read requests' + type: DEPENDENT + key: mysql.innodb_buffer_pool_read_requests + delay: '0' + description: 'Number of logical read requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_read_requests + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 946215157bce49e388eede72c9f89c57 + name: 'InnoDB buffer pool read requests per second' + type: DEPENDENT + key: mysql.innodb_buffer_pool_read_requests.rate + delay: '0' + value_type: FLOAT + description: 'Number of logical read requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_read_requests + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: f2962ff518834cc69c56f99f4387a6cb + name: 'Innodb buffer pool wait free' + type: DEPENDENT + key: mysql.innodb_buffer_pool_wait_free + delay: '0' + value_type: FLOAT + description: 'Number of times InnoDB waited for a free page before reading or creating a page. Normally, writes to the InnoDB buffer pool happen in the background. When no clean pages are available, dirty pages are flushed first in order to free some up. This counts the numbers of wait for this operation to finish. If this value is not small, look at the increasing `innodb_buffer_pool_size`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_buffer_pool_wait_free + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: c9e2183fde7d4fff96bd837c362c43e6 + name: 'Calculated value of innodb_log_file_size' + type: CALCULATED + key: mysql.innodb_log_file_size + value_type: FLOAT + params: '(last(//mysql.innodb_os_log_written) - last(//mysql.innodb_os_log_written,#1:now-1h)) / {$MYSQL.INNODB_LOG_FILES}' + description: '`Innodb_log_file_size` is calculated as: (`innodb_os_log_written`-`innodb_os_log_written`(time shift -1h))/`{$MYSQL.INNODB_LOG_FILES}`. `Innodb_log_file_size` is the size in bytes of the each InnoDB redo log file in the log group. The combined size can be no more than 512 GB. Larger values mean less disk I/O due to less flushing checkpoint activity, but also slower recovery from a crash.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 2f3c759f069c47a5bb7dd20f11d94cd4 + name: 'Innodb number open files' + type: DEPENDENT + key: mysql.innodb_num_open_files + delay: '0' + value_type: FLOAT + description: 'Number of open files held by InnoDB. InnoDB only.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_num_open_files + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: system + - uuid: a94b8d6e84254ac98141a5f173ca5ecc + name: 'Innodb log written' + type: DEPENDENT + key: mysql.innodb_os_log_written + delay: '0' + value_type: FLOAT + units: B + description: 'Number of bytes written to the InnoDB log.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_os_log_written + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: system + - uuid: 5b9c6129929b4d20b2f761709b8dc1a5 + name: 'InnoDB row lock time' + type: DEPENDENT + key: mysql.innodb_row_lock_time + delay: '0' + value_type: FLOAT + units: s + description: 'The total time spent in acquiring row locks for InnoDB tables, in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_row_lock_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 75ee06905e604bdb94f168fa208dfb66 + name: 'InnoDB row lock time max' + type: DEPENDENT + key: mysql.innodb_row_lock_time_max + delay: '0' + value_type: FLOAT + units: s + description: 'The maximum time to acquire a row lock for InnoDB tables, in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_row_lock_time_max + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 6c9472c9970641a2b1a6749e0a70b859 + name: 'InnoDB row lock waits' + type: DEPENDENT + key: mysql.innodb_row_lock_waits + delay: '0' + description: 'Number of times operations on InnoDB tables had to wait for a row lock.' + preprocessing: + - type: JSONPATH + parameters: + - $.Innodb_row_lock_waits + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 297d5be6f5054d00b91648cfb94ea186 + name: 'Max used connections' + type: DEPENDENT + key: mysql.max_used_connections + delay: '0' + description: 'The maximum number of connections that have been in use simultaneously since the server start.' + preprocessing: + - type: JSONPATH + parameters: + - $.Max_used_connections + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: connections + - uuid: 61a666fbb3eb489685c27c94c20c58ae + name: 'Open tables' + type: DEPENDENT + key: mysql.open_tables + delay: '0' + value_type: FLOAT + description: 'Number of tables that are open.' + preprocessing: + - type: JSONPATH + parameters: + - $.Open_tables + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: tables + - uuid: baf1e71d09aa4f13a5426803406de58d + name: 'Open table definitions' + type: DEPENDENT + key: mysql.open_table_definitions + delay: '0' + value_type: FLOAT + description: 'Number of cached table definitions.' + preprocessing: + - type: JSONPATH + parameters: + - $.Open_table_definitions + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: tables + - uuid: 338507e500574423915f798234c7f239 + name: Status + type: ZABBIX_ACTIVE + key: 'mysql.ping["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + description: 'MySQL server status.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 6fed4cabb4b349cd9a0f7e82e7706139 + expression: 'last(/MySQL by Zabbix agent 2 active/mysql.ping["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"])=0' + name: 'MySQL: Service is down' + priority: HIGH + description: 'MySQL is down.' + tags: + - tag: scope + value: availability + - uuid: 4cc293c5b36a430694665f879fea7a21 + name: 'Queries per second' + type: DEPENDENT + key: mysql.queries.rate + delay: '0' + value_type: FLOAT + description: 'Number of statements executed by the server. This variable includes statements executed within stored programs, unlike the `Questions` variable.' + preprocessing: + - type: JSONPATH + parameters: + - $.Queries + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: queries + - uuid: 218105acd6fd473b958c02adf8329d6a + name: 'Questions per second' + type: DEPENDENT + key: mysql.questions.rate + delay: '0' + value_type: FLOAT + description: 'Number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the `Queries` variable.' + preprocessing: + - type: JSONPATH + parameters: + - $.Questions + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: queries + - uuid: 4c9f5e35a2e44265bd75b1268ee1cafb + name: 'Slow queries per second' + type: DEPENDENT + key: mysql.slow_queries.rate + delay: '0' + value_type: FLOAT + description: 'Number of queries that have taken more than `long_query_time` seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.Slow_queries + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: queries + triggers: + - uuid: 28b12490a27641ce828ec4d2e80f81b6 + expression: 'min(/MySQL by Zabbix agent 2 active/mysql.slow_queries.rate,5m)>{$MYSQL.SLOW_QUERIES.MAX.WARN}' + name: 'MySQL: Server has slow queries' + event_name: 'MySQL: Server has slow queries (over {$MYSQL.SLOW_QUERIES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The number of slow queries is more than `{$MYSQL.SLOW_QUERIES.MAX.WARN}` in the last 5 minutes.' + tags: + - tag: scope + value: performance + - uuid: 6706352c0746437ab99b9b9b660b931d + name: 'Threads cached' + type: DEPENDENT + key: mysql.threads_cached + delay: '0' + description: 'Number of threads in the thread cache.' + preprocessing: + - type: JSONPATH + parameters: + - $.Threads_cached + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: threads + - uuid: 0fecd4e46e274ceb9aaddb10534cc8ff + name: 'Threads connected' + type: DEPENDENT + key: mysql.threads_connected + delay: '0' + description: 'Number of currently open connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.Threads_connected + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: threads + - uuid: 39ebfa8d6dde4ed9a8b53bb166d9b65c + name: 'Threads created per second' + type: DEPENDENT + key: mysql.threads_created.rate + delay: '0' + value_type: FLOAT + description: 'Number of threads created to handle connections. If the value of `Threads_created` is large, you may want to increase the `thread_cache_size` value. The cache miss rate can be calculated as `Threads_created`/`Connections`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Threads_created + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: threads + - uuid: a02ba173427b47f2a01ee456257db5e4 + name: 'Threads running' + type: DEPENDENT + key: mysql.threads_running + delay: '0' + description: 'Number of threads that are not sleeping.' + preprocessing: + - type: JSONPATH + parameters: + - $.Threads_running + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: threads + - uuid: 051ba64b0da0464c866f8e0fd84cfe2d + name: Uptime + type: DEPENDENT + key: mysql.uptime + delay: '0' + units: uptime + description: 'Number of seconds that the server has been up.' + preprocessing: + - type: JSONPATH + parameters: + - $.Uptime + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 3449a131f65d44c487a3346529713dd2 + expression: 'nodata(/MySQL by Zabbix agent 2 active/mysql.uptime,30m)=1' + name: 'MySQL: Failed to fetch info data' + event_name: 'MySQL: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for items for the last 30 minutes.' + dependencies: + - name: 'MySQL: Service is down' + expression: 'last(/MySQL by Zabbix agent 2 active/mysql.ping["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"])=0' + tags: + - tag: scope + value: availability + - uuid: f92226addbf14463aea5aedc4f7bf7d8 + expression: 'last(/MySQL by Zabbix agent 2 active/mysql.uptime)<10m' + name: 'MySQL: Service has been restarted' + event_name: 'MySQL: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'MySQL uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 674df57b5295448c89a7265902cc94ec + name: Version + type: ZABBIX_ACTIVE + key: 'mysql.version["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + delay: 15m + value_type: CHAR + trends: '0' + description: 'MySQL server version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: application + triggers: + - uuid: 36ce1008736b4a109a060e1150fec15f + expression: 'last(/MySQL by Zabbix agent 2 active/mysql.version["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"],#1)<>last(/MySQL by Zabbix agent 2 active/mysql.version["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"],#2) and length(last(/MySQL by Zabbix agent 2 active/mysql.version["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]))>0' + name: 'MySQL: Version has changed' + event_name: 'MySQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + description: 'The MySQL version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 1d8d7069e0064521b52b388e0c6bc0a7 + name: 'Database discovery' + type: ZABBIX_ACTIVE + key: 'mysql.db.discovery["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DATABASE}' + value: '{$MYSQL.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DATABASE}' + value: '{$MYSQL.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Scanning databases in DBMS.' + item_prototypes: + - uuid: f69eb8da26de4abb92cec75161e703f3 + name: 'Size of database {#DATABASE}' + type: ZABBIX_ACTIVE + key: 'mysql.db.size["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#DATABASE}"]' + delay: 5m + units: B + description: 'Database size.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: storage + - tag: database + value: '{#DATABASE}' + lld_macro_paths: + - lld_macro: '{#DATABASE}' + path: $.Database + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: 66b3fda765c64b79b66a1ce97a7d19e8 + name: 'MariaDB discovery' + type: DEPENDENT + key: mysql.extra_metric.discovery + delay: '0' + description: 'Used for additional metrics if MariaDB is used.' + item_prototypes: + - uuid: c0e3223f67014485ad5d56a174568f0b + name: 'Binlog commits' + type: DEPENDENT + key: 'mysql.binlog_commits[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of transactions committed to the binary log.' + preprocessing: + - type: JSONPATH + parameters: + - $.Binlog_commits + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: transactions + - uuid: b530d1b7fd7c485ab412358d362aba41 + name: 'Binlog group commits' + type: DEPENDENT + key: 'mysql.binlog_group_commits[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of group commits done to the binary log.' + preprocessing: + - type: JSONPATH + parameters: + - $.Binlog_group_commits + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: transactions + - uuid: fd1d44c4dcf14ddda1da4687e2c3e2b6 + name: 'Master GTID wait count' + type: DEPENDENT + key: 'mysql.master_gtid_wait_count[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The number of times `MASTER_GTID_WAIT` called.' + preprocessing: + - type: JSONPATH + parameters: + - $.Master_gtid_wait_count + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: transactions + - uuid: de68ab3003db47afa4714548d3dc0ff6 + name: 'Master GTID wait timeouts' + type: DEPENDENT + key: 'mysql.master_gtid_wait_timeouts[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of timeouts occurring in `MASTER_GTID_WAIT`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Master_gtid_wait_timeouts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: transactions + - uuid: 1a2a6de9e9b3482780023b1375368b7d + name: 'Master GTID wait time' + type: DEPENDENT + key: 'mysql.master_gtid_wait_time[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of time spent in `MASTER_GTID_WAIT`.' + preprocessing: + - type: JSONPATH + parameters: + - $.Master_gtid_wait_time + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + tags: + - tag: component + value: transactions + master_item: + key: 'mysql.version["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value.search(''MariaDB'')>-1 ? [{''{#SINGLETON}'': ''''}] : []);' + - uuid: aaf6d2423fb34bef850be2d1be3fc36a + name: 'Replication discovery' + type: ZABBIX_ACTIVE + key: 'mysql.replication.discovery["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}"]' + delay: 1h + description: 'If "show slave status" returns Master_Host, "Replication: *" items are created.' + item_prototypes: + - uuid: 6284876731214fb8bf51f09dd40cf5fe + name: 'Replication Slave status {#MASTER_HOST}' + type: ZABBIX_ACTIVE + key: 'mysql.replication.get_slave_status["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#MASTER_HOST}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets status information on the essential parameters of the slave threads.' + tags: + - tag: component + value: raw + - uuid: f8d25b5c73474a048f7998ec75784b2a + name: 'Replication Seconds Behind Master {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.replication.seconds_behind_master["{#MASTER_HOST}"]' + delay: '0' + units: s + description: | + Number of seconds that the slave SQL thread is behind processing the master binary log. + A high number (or an increasing one) can indicate that the slave is unable to handle events + from the master in a timely fashion. + preprocessing: + - type: JSONPATH + parameters: + - $.Seconds_Behind_Master + - type: MATCHES_REGEX + parameters: + - \d+ + error_handler: CUSTOM_ERROR + error_handler_params: 'Replication is not performed.' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.replication.get_slave_status["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#MASTER_HOST}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: a2d2da0c7df54bbfba3b1f50306c51d2 + expression: 'min(/MySQL by Zabbix agent 2 active/mysql.replication.seconds_behind_master["{#MASTER_HOST}"],5m)>{$MYSQL.REPL_LAG.MAX.WARN}' + name: 'MySQL: Replication lag is too high' + event_name: 'MySQL: Replication lag is too high (over {$MYSQL.REPL_LAG.MAX.WARN} for 5m)' + priority: WARNING + description: 'Replication delay is too long.' + tags: + - tag: scope + value: notice + - uuid: 9e0917199e5c4552ab84df0b6f7f590c + name: 'Replication Slave IO Running {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.replication.slave_io_running["{#MASTER_HOST}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Whether the I/O thread for reading the master's binary log is running. + Normally, you want this to be Yes unless you have not yet started a replication or have + explicitly stopped it with STOP SLAVE. + preprocessing: + - type: JSONPATH + parameters: + - $.Slave_IO_Running + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.replication.get_slave_status["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#MASTER_HOST}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: 82ace91dce1c45b688ed62c438613510 + expression: 'count(/MySQL by Zabbix agent 2 active/mysql.replication.slave_io_running["{#MASTER_HOST}"],#1,"ne","Yes")=1' + name: 'MySQL: The slave I/O thread is not connected to a replication master' + priority: WARNING + description: 'Whether the slave I/O thread is connected to the master.' + dependencies: + - name: 'MySQL: The slave I/O thread is not running' + expression: 'count(/MySQL by Zabbix agent 2 active/mysql.replication.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + tags: + - tag: scope + value: availability + - uuid: 3eab03819bb84d48bba973c7060dcada + expression: 'count(/MySQL by Zabbix agent 2 active/mysql.replication.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + name: 'MySQL: The slave I/O thread is not running' + priority: AVERAGE + description: 'Whether the I/O thread for reading the master''s binary log is running.' + tags: + - tag: scope + value: notice + - uuid: 438c4e34d77a43398503cf8ed5db034b + name: 'Replication Slave SQL Running {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.replication.slave_sql_running["{#MASTER_HOST}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Whether the SQL thread for executing events in the relay log is running. + As with the I/O thread, this should normally be Yes. + preprocessing: + - type: JSONPATH + parameters: + - $.Slave_SQL_Running + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.replication.get_slave_status["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#MASTER_HOST}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: ee129bbeec9d42e1be803f58d0c6e1b9 + expression: 'count(/MySQL by Zabbix agent 2 active/mysql.replication.slave_sql_running["{#MASTER_HOST}"],#1,"eq","No")=1' + name: 'MySQL: The SQL thread is not running' + priority: WARNING + description: 'Whether the SQL thread for executing events in the relay log is running.' + dependencies: + - name: 'MySQL: The slave I/O thread is not running' + expression: 'count(/MySQL by Zabbix agent 2 active/mysql.replication.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + tags: + - tag: scope + value: notice + - uuid: 2db5da5c9069492c8a513bcd39e8d6d9 + name: 'Replication Slave SQL Running State {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.replication.slave_sql_running_state["{#MASTER_HOST}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'This shows the state of the SQL driver threads.' + preprocessing: + - type: JSONPATH + parameters: + - $.Slave_SQL_Running_State + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.replication.get_slave_status["{$MYSQL.DSN}","{$MYSQL.USER}","{$MYSQL.PASSWORD}","{#MASTER_HOST}"]' + tags: + - tag: component + value: replication + lld_macro_paths: + - lld_macro: '{#MASTER_HOST}' + path: $.Master_Host + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: class + value: database + - tag: target + value: mysql + macros: + - macro: '{$MYSQL.ABORTED_CONN.MAX.WARN}' + value: '3' + description: 'Number of failed attempts to connect to the MySQL server for trigger expressions.' + - macro: '{$MYSQL.BUFF_UTIL.MIN.WARN}' + value: '50' + description: 'The minimum buffer pool utilization in percentage for trigger expressions.' + - macro: '{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}' + value: '10' + description: 'The maximum number of temporary tables created on a disk per second for trigger expressions.' + - macro: '{$MYSQL.CREATED_TMP_FILES.MAX.WARN}' + value: '10' + description: 'The maximum number of temporary files created on a disk per second for trigger expressions.' + - macro: '{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}' + value: '30' + description: 'The maximum number of temporary tables created in memory per second for trigger expressions.' + - macro: '{$MYSQL.DBNAME.MATCHES}' + value: .+ + description: 'Filter of discoverable databases.' + - macro: '{$MYSQL.DBNAME.NOT_MATCHES}' + value: information_schema + description: 'Filter to exclude discovered databases.' + - macro: '{$MYSQL.DSN}' + value: '' + description: 'System data source name such as .' + - macro: '{$MYSQL.INNODB_LOG_FILES}' + value: '2' + description: 'Number of physical files in the InnoDB redo log for calculating `innodb_log_file_size`.' + - macro: '{$MYSQL.PASSWORD}' + description: 'MySQL user password.' + - macro: '{$MYSQL.REPL_LAG.MAX.WARN}' + value: 30m + description: 'Amount of time the slave is behind the master for trigger expressions.' + - macro: '{$MYSQL.SLOW_QUERIES.MAX.WARN}' + value: '3' + description: 'Number of slow queries for trigger expressions.' + - macro: '{$MYSQL.USER}' + description: 'MySQL user name.' + dashboards: + - uuid: 403df820c4d3431ba3d2879f6025389e + name: 'MySQL performance' + pages: + - widgets: + - type: graph + name: 'MySQL: Operations' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2 active' + name: 'MySQL: Operations' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'MySQL: Connections' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2 active' + name: 'MySQL: Connections' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: 'MySQL: InnoDB buffer pool' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2 active' + name: 'MySQL: InnoDB buffer pool' + - type: STRING + name: reference + value: AAAAE + - type: graph + name: 'MySQL: Queries' + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2 active' + name: 'MySQL: Queries' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: 'MySQL: Bandwidth' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2 active' + name: 'MySQL: Bandwidth' + - type: STRING + name: reference + value: AAAAD + - type: graph + name: 'MySQL: Threads' + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'MySQL by Zabbix agent 2 active' + name: 'MySQL: Threads' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: 3592fb0098304d86ab35a6a86aa95ec5 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 723784c0caba4856a7bb1e934c3ac54a + name: 'MySQL: Bandwidth' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.bytes_received.rate + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.bytes_sent.rate + - uuid: 689482bd6602443f8b9dcdb16598a68e + name: 'MySQL: Connections' + graph_items: + - color: 199C0D + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.aborted_clients.rate + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.aborted_connects.rate + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.connections.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.max_used_connections + - uuid: cdfec90ec0894187a52050f3fc738be7 + name: 'MySQL: InnoDB buffer pool' + graph_items: + - color: 199C0D + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.innodb_buffer_pool_pages_free + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.innodb_buffer_pool_pages_total + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.innodb_buffer_pool_read_requests.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.innodb_buffer_pool_reads.rate + - uuid: 494552acd11044ef8fbea28d81c02e7d + name: 'MySQL: Operations' + graph_items: + - color: 199C0D + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.com_delete.rate + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.com_insert.rate + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.com_select.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.com_update.rate + - uuid: ec0107cf2ef4499ca6522a66bc915dbd + name: 'MySQL: Queries' + graph_items: + - color: 199C0D + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.queries.rate + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.questions.rate + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.slow_queries.rate + - uuid: 3e3616b5661546c98d20e9b1ef32c214 + name: 'MySQL: Threads' + graph_items: + - color: 199C0D + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.threads_cached + - sortorder: '1' + color: F63100 + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.threads_connected + - sortorder: '2' + color: 00611C + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.threads_created.rate + - sortorder: '3' + color: F7941D + item: + host: 'MySQL by Zabbix agent 2 active' + key: mysql.threads_running diff --git a/MySQL_by_Zabbix_agent_active.yaml b/MySQL_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..03e8bec --- /dev/null +++ b/MySQL_by_Zabbix_agent_active.yaml @@ -0,0 +1,1657 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 1ae69b01417849b180717f62ad7819d6 + template: 'MySQL by Zabbix agent active' + name: 'MySQL by Zabbix agent active' + description: | + Requirements for template operation: + + 1. Install Zabbix agent and MySQL client. If necessary, add the path to the 'mysql' and 'mysqladmin' utilities to the global environment variable PATH. + + 2. Copy the 'template_db_mysql.conf' file with user parameters into folder with Zabbix agent configuration (/etc/zabbix/zabbix_agentd.d/ by default). Don't forget to restart Zabbix agent. + + 3. Create the MySQL user that will be used for monitoring ('' at your discretion). For example: + + CREATE USER 'zbx_monitor'@'%' IDENTIFIED BY ''; + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%'; + + For more information, please see MySQL documentation (https://dev.mysql.com/doc/refman/8.0/en/grant.html). + + NOTE: In order to collect replication metrics, MariaDB Enterprise Server 10.5.8-5 and above and MariaDB Community Server 10.5.9 and above require the SLAVE MONITOR privilege to be set for the monitoring user: + + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW,SLAVE MONITOR ON *.* TO 'zbx_monitor'@'%'; + + For more information, please read the MariaDB documentation (https://mariadb.com/docs/server/ref/mdb/privileges/SLAVE_MONITOR/). + + 4. Create '.my.cnf' configuration file in the home directory of Zabbix agent for Linux distributions (/var/lib/zabbix by default) or 'my.cnf' in c:\ for Windows. For example: + + [client] + protocol=tcp + user='zbx_monitor' + password='' + + For more information, please see MySQL documentation (https://dev.mysql.com/doc/refman/8.0/en/option-files.html). + + NOTE: Linux distributions that use SELinux may require additional steps for access configuration. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384189-discussion-thread-for-official-zabbix-template-db-mysql + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Databases + items: + - uuid: 92637d299d254e83b41df8f9893ecc37 + name: 'Aborted clients per second' + type: DEPENDENT + key: mysql.aborted_clients.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections that were aborted because the client died without closing the connection properly.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Aborted_clients'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 7ae8f8a1572346d38abe38491f8f5800 + name: 'Aborted connections per second' + type: DEPENDENT + key: mysql.aborted_connects.rate + delay: '0' + value_type: FLOAT + description: 'Number of failed attempts to connect to the MySQL server.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Aborted_connects'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: f49998d4098348378c661927155cd6bf + expression: 'min(/MySQL by Zabbix agent active/mysql.aborted_connects.rate,5m)>{$MYSQL.ABORTED_CONN.MAX.WARN}' + name: 'MySQL: Server has aborted connections' + event_name: 'MySQL: Server has aborted connections (over {$MYSQL.ABORTED_CONN.MAX.WARN} for 5m)' + priority: AVERAGE + description: 'The number of failed attempts to connect to the MySQL server is more than `{$MYSQL.ABORTED_CONN.MAX.WARN}` in the last 5 minutes.' + dependencies: + - name: 'MySQL: Refused connections' + expression: 'last(/MySQL by Zabbix agent active/mysql.connection_errors_max_connections.rate)>0' + tags: + - tag: scope + value: availability + - uuid: 2265406d17394c4a835d209d53d6c259 + name: 'Binlog cache disk use' + type: DEPENDENT + key: mysql.binlog_cache_disk_use + delay: '0' + value_type: FLOAT + description: 'Number of transactions that used a temporary disk cache because they could not fit in the regular binary log cache, being larger than `binlog_cache_size`.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Binlog_cache_disk_use'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: cache + - uuid: 6179105b341e41e892398649eec227bb + name: 'Buffer pool efficiency' + type: CALCULATED + key: mysql.buffer_pool_efficiency + value_type: FLOAT + units: '%' + params: | + 100 - (last(//mysql.innodb_buffer_pool_reads) / + ( last(//mysql.innodb_buffer_pool_read_requests) + + ( last(//mysql.innodb_buffer_pool_read_requests) = 0 ) ) * 100 * + ( last(//mysql.innodb_buffer_pool_read_requests) > 0 )) + description: 'The item shows how effectively the buffer pool is serving reads.' + tags: + - tag: component + value: memory + - uuid: 427ee34312ca4fb595b71db9a350b1fc + name: 'Buffer pool utilization' + type: CALCULATED + key: mysql.buffer_pool_utilization + value_type: FLOAT + units: '%' + params: | + ( last(//mysql.innodb_buffer_pool_pages_total) - + last(//mysql.innodb_buffer_pool_pages_free) ) / + ( last(//mysql.innodb_buffer_pool_pages_total) + + ( last(//mysql.innodb_buffer_pool_pages_total) = 0 ) ) * 100 * + ( last(//mysql.innodb_buffer_pool_pages_total) > 0 ) + description: 'Ratio of used to total pages in the buffer pool.' + tags: + - tag: component + value: memory + triggers: + - uuid: 254756ed1bcb4ae3b342d34b86e1b6fc + expression: 'max(/MySQL by Zabbix agent active/mysql.buffer_pool_utilization,5m)<{$MYSQL.BUFF_UTIL.MIN.WARN}' + name: 'MySQL: Buffer pool utilization is too low' + event_name: 'MySQL: Buffer pool utilization is too low (less than {$MYSQL.BUFF_UTIL.MIN.WARN}% for 5m)' + priority: WARNING + description: 'The buffer pool utilization is less than `{$MYSQL.BUFF_UTIL.MIN.WARN}`% in the last 5 minutes. This means that there is a lot of unused RAM allocated for the buffer pool, which you can easily reallocate at the moment.' + tags: + - tag: scope + value: notice + - uuid: e22c542460114c7a8877d6a4c56be2f2 + name: 'Bytes received' + type: DEPENDENT + key: mysql.bytes_received.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes received from all clients.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Bytes_received'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: network + - uuid: 2b202ebdc9a546eaa794d61418783e8e + name: 'Bytes sent' + type: DEPENDENT + key: mysql.bytes_sent.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes sent to all clients.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Bytes_sent'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: network + - uuid: 776e1baca7eb43c693dc8b64552b76b4 + name: 'Command Delete per second' + type: DEPENDENT + key: mysql.com_delete.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_delete` counter variable indicates the number of times the `DELETE` statement has been executed.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Com_delete'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: operations + - uuid: d8cda6ee6a5340739b65c0fb74986358 + name: 'Command Insert per second' + type: DEPENDENT + key: mysql.com_insert.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_insert` counter variable indicates the number of times the `INSERT` statement has been executed.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Com_insert'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: operations + - uuid: 1782572b896c43bba77872f2d535dd1f + name: 'Command Select per second' + type: DEPENDENT + key: mysql.com_select.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_select` counter variable indicates the number of times the `SELECT` statement has been executed.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Com_select'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: operations + - uuid: 6a53476ac7b548098986dca948ab5395 + name: 'Command Update per second' + type: DEPENDENT + key: mysql.com_update.rate + delay: '0' + value_type: FLOAT + description: 'The `Com_update` counter variable indicates the number of times the `UPDATE` statement has been executed.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Com_update'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: operations + - uuid: 216667bd998a49b2b4edef82e3bdaa8b + name: 'Connections per second' + type: DEPENDENT + key: mysql.connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of connection attempts (successful or not) to the MySQL server.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connections'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 259c94b73afe486284dae1b15998b305 + name: 'Connection errors accept per second' + type: DEPENDENT + key: mysql.connection_errors_accept.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors that occurred during calls to `accept()` on the listening port.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_accept'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 7213544faa5d4f0984646ebc2a596dba + name: 'Connection errors internal per second' + type: DEPENDENT + key: mysql.connection_errors_internal.rate + delay: '0' + value_type: FLOAT + description: 'Number of refused connections due to internal server errors, for example, out of memory errors, or failed thread starts.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_internal'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: b6af884a95e34404b4356a6cad0ea838 + name: 'Connection errors max connections per second' + type: DEPENDENT + key: mysql.connection_errors_max_connections.rate + delay: '0' + value_type: FLOAT + description: 'Number of refused connections due to the `max_connections` limit being reached.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_max_connections'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 8ce8e2bd4713435e83ccd036e84e1120 + expression: 'last(/MySQL by Zabbix agent active/mysql.connection_errors_max_connections.rate)>0' + name: 'MySQL: Refused connections' + event_name: 'MySQL: Refused connections (max_connections limit reached)' + priority: AVERAGE + description: 'Number of refused connections due to the `max_connections` limit being reached.' + tags: + - tag: scope + value: availability + - uuid: 05e63d8964814d808bfa2833bcdd446e + name: 'Connection errors peer address per second' + type: DEPENDENT + key: mysql.connection_errors_peer_address.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors while searching for the connecting client''s IP address.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_peer_address'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: f43fd1f1c836446bb543b8f04e6ef564 + name: 'Connection errors select per second' + type: DEPENDENT + key: mysql.connection_errors_select.rate + delay: '0' + value_type: FLOAT + description: 'Number of errors during calls to `select()` or `poll()` on the listening port. The client would not necessarily have been rejected in these cases.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_select'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: e1af6725de7e4fb0b3ec97fa1339e099 + name: 'Connection errors tcpwrap per second' + type: DEPENDENT + key: mysql.connection_errors_tcpwrap.rate + delay: '0' + value_type: FLOAT + description: 'Number of connections the libwrap library has refused.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Connection_errors_tcpwrap'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 98f0e26ea13946ab9a1f277d22feece7 + name: 'Created tmp tables on disk per second' + type: DEPENDENT + key: mysql.created_tmp_disk_tables.rate + delay: '0' + value_type: FLOAT + description: 'Number of internal on-disk temporary tables created by the server while executing statements.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Created_tmp_disk_tables'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: storage + - tag: component + value: tables + triggers: + - uuid: 5b6d0d6c7fee4fefb1ed58017818f223 + expression: 'min(/MySQL by Zabbix agent active/mysql.created_tmp_disk_tables.rate,5m)>{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}' + name: 'MySQL: Number of on-disk temporary tables created per second is high' + event_name: 'MySQL: Number of on-disk temporary tables created per second is high (over {$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: 2c330fcdea6b4993997db65ff0127e95 + name: 'Created tmp files on disk per second' + type: DEPENDENT + key: mysql.created_tmp_files.rate + delay: '0' + value_type: FLOAT + description: 'How many temporary files `mysqld` has created.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Created_tmp_files'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: storage + triggers: + - uuid: 3c49bcc1e3e34d1ca6f1d1b5eeeeba9e + expression: 'min(/MySQL by Zabbix agent active/mysql.created_tmp_files.rate,5m)>{$MYSQL.CREATED_TMP_FILES.MAX.WARN}' + name: 'MySQL: Number of temporary files created per second is high' + event_name: 'MySQL: Number of temporary files created per second is high (over {$MYSQL.CREATED_TMP_FILES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: e324565c8aef4acba33f1ccc65a1c087 + name: 'Created tmp tables on memory per second' + type: DEPENDENT + key: mysql.created_tmp_tables.rate + delay: '0' + value_type: FLOAT + description: 'Number of internal temporary tables created by the server while executing statements.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Created_tmp_tables'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: memory + - tag: component + value: tables + triggers: + - uuid: ef985e5db11a49139b0022aaf80cb2d5 + expression: 'min(/MySQL by Zabbix agent active/mysql.created_tmp_tables.rate,5m)>{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}' + name: 'MySQL: Number of internal temporary tables created per second is high' + event_name: 'MySQL: Number of internal temporary tables created per second is high (over {$MYSQL.CREATED_TMP_TABLES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The application using the database may be in need of query optimization.' + tags: + - tag: scope + value: performance + - uuid: 202cc1174b7f4b63a8c90bdc54ec2bb2 + name: 'Get status variables' + type: ZABBIX_ACTIVE + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets server global status information.' + tags: + - tag: component + value: raw + - uuid: 5551d764b45c4d33a91701aa8b2b5d4f + name: 'InnoDB buffer pool pages free' + type: DEPENDENT + key: mysql.innodb_buffer_pool_pages_free + delay: '0' + description: 'The total size of the InnoDB buffer pool, in pages.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_pages_free'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: c7b4fc71c5d14e0f802e6a4c97c0a98b + name: 'InnoDB buffer pool pages total' + type: DEPENDENT + key: mysql.innodb_buffer_pool_pages_total + delay: '0' + description: 'The total size of the InnoDB buffer pool, in pages.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_pages_total'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 2f05d6a246844924a5e03a615bf20373 + name: 'InnoDB buffer pool reads' + type: DEPENDENT + key: mysql.innodb_buffer_pool_reads + delay: '0' + description: 'Number of logical reads that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_reads'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 1655258df96645eea062c66bee146292 + name: 'InnoDB buffer pool reads per second' + type: DEPENDENT + key: mysql.innodb_buffer_pool_reads.rate + delay: '0' + value_type: FLOAT + description: 'Number of logical reads per second that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_reads'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: a266591327664cddb056d9dc2e8de2c7 + name: 'InnoDB buffer pool read requests' + type: DEPENDENT + key: mysql.innodb_buffer_pool_read_requests + delay: '0' + description: 'Number of logical read requests.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_read_requests'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: a6b3a633cc0448859ef8b61763ccca1a + name: 'InnoDB buffer pool read requests per second' + type: DEPENDENT + key: mysql.innodb_buffer_pool_read_requests.rate + delay: '0' + value_type: FLOAT + description: 'Number of logical read requests per second.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_read_requests'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: ebbeed7d36604713b98677c3fc46a260 + name: 'Innodb buffer pool wait free' + type: DEPENDENT + key: mysql.innodb_buffer_pool_wait_free + delay: '0' + value_type: FLOAT + description: 'Number of times InnoDB waited for a free page before reading or creating a page. Normally, writes to the InnoDB buffer pool happen in the background. When no clean pages are available, dirty pages are flushed first in order to free some up. This counts the numbers of wait for this operation to finish. If this value is not small, look at the increasing `innodb_buffer_pool_size`.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_buffer_pool_wait_free'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: memory + - uuid: 8ce62d571e854df187d201bd4a7ccce1 + name: 'Calculated value of innodb_log_file_size' + type: CALCULATED + key: mysql.innodb_log_file_size + value_type: FLOAT + params: '(last(//mysql.innodb_os_log_written) - last(//mysql.innodb_os_log_written,#1:now-1h)) / {$MYSQL.INNODB_LOG_FILES}' + description: '`Innodb_log_file_size` is calculated as: (`innodb_os_log_written`-`innodb_os_log_written`(time shift -1h))/`{$MYSQL.INNODB_LOG_FILES}`. `Innodb_log_file_size` is the size in bytes of the each InnoDB redo log file in the log group. The combined size can be no more than 512 GB. Larger values mean less disk I/O due to less flushing checkpoint activity, but also slower recovery from a crash.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 323775cd92a04a2a81aa0f6db16ea103 + name: 'Innodb number open files' + type: DEPENDENT + key: mysql.innodb_num_open_files + delay: '0' + value_type: FLOAT + description: 'Number of open files held by InnoDB. InnoDB only.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_num_open_files'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: system + - uuid: 75d8c835dd7340c2ba31063364a412df + name: 'Innodb log written' + type: DEPENDENT + key: mysql.innodb_os_log_written + delay: '0' + value_type: FLOAT + units: B + description: 'Number of bytes written to the InnoDB log.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_os_log_written'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: system + - uuid: 23e12a6eff4b4886b8003407c25c11dc + name: 'InnoDB row lock time' + type: DEPENDENT + key: mysql.innodb_row_lock_time + delay: '0' + value_type: FLOAT + units: s + description: 'The total time spent in acquiring row locks for InnoDB tables, in milliseconds.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_row_lock_time'']/field[@name=''Value'']/text()' + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 346c72cd57a24762bc9ed8fabba70bde + name: 'InnoDB row lock time max' + type: DEPENDENT + key: mysql.innodb_row_lock_time_max + delay: '0' + value_type: FLOAT + units: s + description: 'The maximum time to acquire a row lock for InnoDB tables, in milliseconds.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_row_lock_time_max'']/field[@name=''Value'']/text()' + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: 6b7c9ed85e354d80b30ab34cef539be0 + name: 'InnoDB row lock waits' + type: DEPENDENT + key: mysql.innodb_row_lock_waits + delay: '0' + description: 'Number of times operations on InnoDB tables had to wait for a row lock.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Innodb_row_lock_waits'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: innodb + - tag: component + value: tables + - uuid: fb60316605b34ad292e1a01b898aea36 + name: 'Max used connections' + type: DEPENDENT + key: mysql.max_used_connections + delay: '0' + description: 'The maximum number of connections that have been in use simultaneously since the server start.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Max_used_connections'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: connections + - uuid: edb4e1bd71f74861a251d227a3338e69 + name: 'Open tables' + type: DEPENDENT + key: mysql.open_tables + delay: '0' + value_type: FLOAT + description: 'Number of tables that are open.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Open_tables'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: tables + - uuid: f6d9dae2b21043d18a498add8ca6de41 + name: 'Open table definitions' + type: DEPENDENT + key: mysql.open_table_definitions + delay: '0' + value_type: FLOAT + description: 'Number of cached table definitions.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Open_table_definitions'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: tables + - uuid: ca43acd282a8435884b33af454b207fb + name: Status + type: ZABBIX_ACTIVE + key: 'mysql.ping["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + description: 'MySQL server status.' + valuemap: + name: 'Service state' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return value.indexOf(''is alive'') !== -1 ? 1 : 0;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: fd1b0391ac694aa89950426d75ed3646 + expression: 'last(/MySQL by Zabbix agent active/mysql.ping["{$MYSQL.HOST}","{$MYSQL.PORT}"])=0' + name: 'MySQL: Service is down' + priority: HIGH + description: 'MySQL is down.' + tags: + - tag: scope + value: availability + - uuid: a11244940a734fba98f9845316493314 + name: 'Queries per second' + type: DEPENDENT + key: mysql.queries.rate + delay: '0' + value_type: FLOAT + description: 'Number of statements executed by the server. This variable includes statements executed within stored programs, unlike the `Questions` variable.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Queries'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: queries + - uuid: 790f6deb835a45d4af6e38c18566fccb + name: 'Questions per second' + type: DEPENDENT + key: mysql.questions.rate + delay: '0' + value_type: FLOAT + description: 'Number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the `Queries` variable.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Questions'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: queries + - uuid: bda290b8a1e940e7a98d23844f37670f + name: 'Slow queries per second' + type: DEPENDENT + key: mysql.slow_queries.rate + delay: '0' + value_type: FLOAT + description: 'Number of queries that have taken more than `long_query_time` seconds.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Slow_queries'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: queries + triggers: + - uuid: 72cbaa89dfc7447aad99ac7a9ae78a17 + expression: 'min(/MySQL by Zabbix agent active/mysql.slow_queries.rate,5m)>{$MYSQL.SLOW_QUERIES.MAX.WARN}' + name: 'MySQL: Server has slow queries' + event_name: 'MySQL: Server has slow queries (over {$MYSQL.SLOW_QUERIES.MAX.WARN} for 5m)' + priority: WARNING + description: 'The number of slow queries is more than `{$MYSQL.SLOW_QUERIES.MAX.WARN}` in the last 5 minutes.' + tags: + - tag: scope + value: performance + - uuid: 358e381b2e014fd2b5746e08157af0e1 + name: 'Threads cached' + type: DEPENDENT + key: mysql.threads_cached + delay: '0' + description: 'Number of threads in the thread cache.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Threads_cached'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: threads + - uuid: 242dbee07ddd4e16b7866aac62994f22 + name: 'Threads connected' + type: DEPENDENT + key: mysql.threads_connected + delay: '0' + description: 'Number of currently open connections.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Threads_connected'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: threads + - uuid: d676416897564faa820e753e4e7a1c8c + name: 'Threads created per second' + type: DEPENDENT + key: mysql.threads_created.rate + delay: '0' + value_type: FLOAT + description: 'Number of threads created to handle connections. If the value of `Threads_created` is large, you may want to increase the `thread_cache_size` value. The cache miss rate can be calculated as `Threads_created`/`Connections`.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Threads_created'']/field[@name=''Value'']/text()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: threads + - uuid: be72a43bd41c4f56a1437df12b2ca67e + name: 'Threads running' + type: DEPENDENT + key: mysql.threads_running + delay: '0' + description: 'Number of threads that are not sleeping.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Threads_running'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: threads + - uuid: 20fc2471bcb44807b1ef7b4e4e3e8f4b + name: Uptime + type: DEPENDENT + key: mysql.uptime + delay: '0' + units: uptime + description: 'Number of seconds that the server has been up.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Uptime'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 4e9e4b036c224c6a8f39a41e8ca2f225 + expression: 'nodata(/MySQL by Zabbix agent active/mysql.uptime,30m)=1' + name: 'MySQL: Failed to fetch info data' + event_name: 'MySQL: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for items for the last 30 minutes.' + dependencies: + - name: 'MySQL: Service is down' + expression: 'last(/MySQL by Zabbix agent active/mysql.ping["{$MYSQL.HOST}","{$MYSQL.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: 05c74a05d68445f38f4c5af591f0fbf8 + expression: 'last(/MySQL by Zabbix agent active/mysql.uptime)<10m' + name: 'MySQL: Service has been restarted' + event_name: 'MySQL: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'MySQL uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 2071500ce5ac486fa322fbab8acac046 + name: Version + type: ZABBIX_ACTIVE + key: 'mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + delay: 15m + value_type: CHAR + trends: '0' + description: 'MySQL server version.' + preprocessing: + - type: REGEX + parameters: + - '(Server version)\s+(.+)' + - \2 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + triggers: + - uuid: 87b33acf66644972b2a9c7daa4376634 + expression: 'last(/MySQL by Zabbix agent active/mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"],#1)<>last(/MySQL by Zabbix agent active/mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"],#2) and length(last(/MySQL by Zabbix agent active/mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"]))>0' + name: 'MySQL: Version has changed' + event_name: 'MySQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + description: 'The MySQL version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 5f6d9b9473494b6d8a9bd0f75211ffac + name: 'Database discovery' + type: ZABBIX_ACTIVE + key: 'mysql.db.discovery["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$MYSQL.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DBNAME}' + value: '{$MYSQL.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Scanning databases in DBMS.' + item_prototypes: + - uuid: def6d1e8f3584454b70fb11d99cb30d0 + name: 'Size of database {#DBNAME}' + type: ZABBIX_ACTIVE + key: 'mysql.dbsize["{$MYSQL.HOST}","{$MYSQL.PORT}","{#DBNAME}"]' + delay: 5m + units: B + description: 'Database size.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + return JSON.stringify(value.split("\n").map(function (name) { + return ({"{#DBNAME}": name}); + })); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: 5aa34129f8f144368e9cc8277ae3e66f + name: 'MariaDB discovery' + type: DEPENDENT + key: mysql.extra_metric.discovery + delay: '0' + description: 'Used for additional metrics if MariaDB is used.' + item_prototypes: + - uuid: b869afe6691944879e1ba4b3f1277b5c + name: 'Binlog commits' + type: DEPENDENT + key: 'mysql.binlog_commits[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of transactions committed to the binary log.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Binlog_commits'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: transactions + - uuid: 8a0e3e5eee0a4f5a83bde012eeb3c150 + name: 'Binlog group commits' + type: DEPENDENT + key: 'mysql.binlog_group_commits[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of group commits done to the binary log.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Binlog_group_commits'']/field[@name=''Value'']/text()' + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: transactions + - uuid: 5252fc984cae4a75b4edc8895c8b1fc7 + name: 'Master GTID wait count' + type: DEPENDENT + key: 'mysql.master_gtid_wait_count[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'The number of times `MASTER_GTID_WAIT` called.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Master_gtid_wait_count'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: transactions + - uuid: 151fd5b8ac8e4ac7ac21eeb7b285156a + name: 'Master GTID wait timeouts' + type: DEPENDENT + key: 'mysql.master_gtid_wait_timeouts[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of timeouts occurring in `MASTER_GTID_WAIT`.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Master_gtid_wait_timeouts'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: transactions + - uuid: 9fd7b98a3594423bb8c697003126eb93 + name: 'Master GTID wait time' + type: DEPENDENT + key: 'mysql.master_gtid_wait_time[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Total number of time spent in `MASTER_GTID_WAIT`.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Master_gtid_wait_time'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.get_status_variables["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + tags: + - tag: component + value: transactions + master_item: + key: 'mysql.version["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value.search(''MariaDB'')>-1 ? [{''{#SINGLETON}'': ''''}] : []);' + - uuid: af8c7f2a0fe7405194887397ee722e47 + name: 'Replication discovery' + type: ZABBIX_ACTIVE + key: 'mysql.replication.discovery["{$MYSQL.HOST}","{$MYSQL.PORT}"]' + delay: 1h + description: 'If "show slave status" returns Master_Host, "Replication: *" items are created.' + item_prototypes: + - uuid: bdea1669775442779bfafd536b29c26b + name: 'Replication Seconds Behind Master {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.seconds_behind_master["{#MASTER_HOST}"]' + delay: '0' + units: s + description: | + The number of seconds that the slave SQL thread is behind processing the master binary log. + A high number (or an increasing one) can indicate that the slave is unable to handle events + from the master in a timely fashion. + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row/field[@name=''Seconds_Behind_Master'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: NOT_MATCHES_REGEX + parameters: + - 'null' + error_handler: CUSTOM_ERROR + error_handler_params: 'Replication is not performed.' + master_item: + key: 'mysql.slave_status["{$MYSQL.HOST}","{$MYSQL.PORT}","{#SQL_STATEMENT}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: 31ac7f52dfc84a93a00862e40295419c + expression: 'min(/MySQL by Zabbix agent active/mysql.seconds_behind_master["{#MASTER_HOST}"],5m)>{$MYSQL.REPL_LAG.MAX.WARN}' + name: 'MySQL: Replication lag is too high' + event_name: 'MySQL: Replication lag is too high (over {$MYSQL.REPL_LAG.MAX.WARN} for 5m)' + priority: WARNING + description: 'Replication delay is too long.' + tags: + - tag: scope + value: notice + - uuid: b024947e0071477c8ce14b3c6a0e4f66 + name: 'Replication Slave IO Running {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.slave_io_running["{#MASTER_HOST}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Whether the I/O thread for reading the master's binary log is running. + Normally, you want this to be `Yes` unless you have not yet started replication or have + explicitly stopped it with `STOP SLAVE`. + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row/field[@name=''Slave_IO_Running'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.slave_status["{$MYSQL.HOST}","{$MYSQL.PORT}","{#SQL_STATEMENT}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: fceb91bcca89405faf5c68845d475d55 + expression: 'count(/MySQL by Zabbix agent active/mysql.slave_io_running["{#MASTER_HOST}"],#1,"ne","Yes")=1' + name: 'MySQL: The slave I/O thread is not connected to a replication master' + priority: WARNING + description: 'Whether the slave I/O thread is connected to the master.' + dependencies: + - name: 'MySQL: The slave I/O thread is not running' + expression: 'count(/MySQL by Zabbix agent active/mysql.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + tags: + - tag: scope + value: availability + - uuid: 7d4aa19570704ea5a571e73c19f57c73 + expression: 'count(/MySQL by Zabbix agent active/mysql.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + name: 'MySQL: The slave I/O thread is not running' + priority: AVERAGE + description: 'Whether the I/O thread for reading the master''s binary log is running.' + tags: + - tag: scope + value: notice + - uuid: 3bf0331407f04af6b2c36892b34af135 + name: 'Replication Slave SQL Running {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.slave_sql_running["{#MASTER_HOST}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Whether the SQL thread for executing events in the relay log is running. + As with the I/O thread, this should normally be `Yes`. + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row/field[@name=''Slave_SQL_Running'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'mysql.slave_status["{$MYSQL.HOST}","{$MYSQL.PORT}","{#SQL_STATEMENT}"]' + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: 01397ed577884506aec546fc8c6f1b08 + expression: 'count(/MySQL by Zabbix agent active/mysql.slave_sql_running["{#MASTER_HOST}"],#1,"eq","No")=1' + name: 'MySQL: The SQL thread is not running' + priority: WARNING + description: 'Whether the SQL thread for executing events in the relay log is running.' + dependencies: + - name: 'MySQL: The slave I/O thread is not running' + expression: 'count(/MySQL by Zabbix agent active/mysql.slave_io_running["{#MASTER_HOST}"],#1,"eq","No")=1' + tags: + - tag: scope + value: notice + - uuid: 9ac0db816bd7423d8956c05fb8e912d4 + name: 'Replication Slave SQL Running State {#MASTER_HOST}' + type: DEPENDENT + key: 'mysql.slave_sql_running_state["{#MASTER_HOST}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'This shows the state of the SQL driver threads.' + preprocessing: + - type: XMLPATH + parameters: + - '/resultset/row[field/text()=''Slave_SQL_Running_State'']/field[@name=''Value'']/text()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'mysql.slave_status["{$MYSQL.HOST}","{$MYSQL.PORT}","{#SQL_STATEMENT}"]' + tags: + - tag: component + value: replication + - uuid: 2a9a2449f0b945afb2b16a1f744ffaef + name: 'Replication Slave status {#MASTER_HOST}' + type: ZABBIX_ACTIVE + key: 'mysql.slave_status["{$MYSQL.HOST}","{$MYSQL.PORT}","{#SQL_STATEMENT}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets status information on the essential parameters of the slave threads.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value.indexOf("Source_Host") !== 0) { + value = value.replace(/Source/g, "Master"); + value = value.replace(/Replica_/g, "Slave_"); + } + + return value; + tags: + - tag: component + value: raw + lld_macro_paths: + - lld_macro: '{#MASTER_HOST}' + path: $.master_host + - lld_macro: '{#SQL_STATEMENT}' + path: $.statement + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value.length === 0) { + return '[]'; + } + + try { + var matches = value.match(/statement="show (slave|replica) status[\s\S]*(?:Master|Source)_Host[^>]*>([^<]+) {$NGINX.DROP_RATE.MAX.WARN}' + name: 'NGINX Plus: High connections drop rate' + event_name: 'NGINX Plus: High connections drop rate (more than {$NGINX.DROP_RATE.MAX.WARN} for 5m)' + priority: WARNING + description: 'The rate of dropped connections is greater than `{$NGINX.DROP_RATE.MAX.WARN}` for the last 5 minutes.' + tags: + - tag: scope + value: performance + - uuid: 0c0e5a2ba5f643e09d07e34d724aff9a + name: 'Connections idle' + type: DEPENDENT + key: nginx.connections.idle + delay: '0' + description: 'The current number of idle client connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + master_item: + key: nginx.connections + tags: + - tag: component + value: connections + - uuid: 51c50d69acdb451395736902733673fe + name: 'Get HTTP location zones' + type: HTTP_AGENT + key: nginx.http.location_zones + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the status information for each HTTP location zone.' + url: '{$NGINX.API.ENDPOINT}/6/http/location_zones/' + status_codes: '200,404' + tags: + - tag: component + value: location_zones + - tag: component + value: raw + - uuid: 5b337c675bc14d9ab3ac6d2cf5b82dce + name: 'Get HTTP zones' + type: HTTP_AGENT + key: nginx.http.server_zones + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the status information for each HTTP server zone.' + url: '{$NGINX.API.ENDPOINT}/6/http/server_zones/' + status_codes: '200,404' + tags: + - tag: component + value: raw + - tag: component + value: server_zones + - uuid: 4ec5e9b1d17141f49db5d9bf29134a49 + name: 'Get HTTP upstreams' + type: HTTP_AGENT + key: nginx.http.upstreams + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the status of each HTTP upstream server group and its servers.' + url: '{$NGINX.API.ENDPOINT}/6/http/upstreams/' + status_codes: '200,404' + tags: + - tag: component + value: raw + - tag: component + value: upstreams + - uuid: d6c37400f8e64d89a698896afa6589de + name: 'Get info' + type: HTTP_AGENT + key: nginx.info + history: '0' + value_type: TEXT + trends: '0' + description: 'Return status of the NGINX running instance.' + url: '{$NGINX.API.ENDPOINT}/6/nginx/' + status_codes: '200,404' + tags: + - tag: component + value: info + - tag: component + value: raw + - uuid: 178f9f0c2ae74a6bbf1ae6965021ccde + name: Address + type: DEPENDENT + key: nginx.info.address + delay: '0' + value_type: CHAR + trends: '0' + description: 'The address of the server that accepted status request.' + preprocessing: + - type: JSONPATH + parameters: + - $.address + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: nginx.info + tags: + - tag: component + value: info + - uuid: 14c417b374ef4674bb374979135f8617 + name: 'Get info error' + type: DEPENDENT + key: nginx.info.error + delay: '0' + value_type: CHAR + trends: '0' + description: 'The description of NGINX errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error.text + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nginx.info + tags: + - tag: component + value: health + - tag: component + value: info + triggers: + - uuid: e444c708371748bd831bba6c8d9a92e0 + expression: 'length(last(/NGINX Plus by HTTP/nginx.info.error))>0' + name: 'NGINX Plus: Server response error' + event_name: 'NGINX Plus: Server response error (text: {ITEM.VALUE})' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 9baff3e318d84cd78c6a8ec6ae294de5 + name: Generation + type: DEPENDENT + key: nginx.info.generation + delay: '0' + description: 'The total number of configuration reloads.' + preprocessing: + - type: JSONPATH + parameters: + - $.generation + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: nginx.info + tags: + - tag: component + value: info + - uuid: 1baceaa7af4d45e487a448670e213c94 + name: Uptime + type: DEPENDENT + key: nginx.info.uptime + delay: '0' + units: uptime + description: 'The server uptime.' + preprocessing: + - type: JSONPATH + parameters: + - $.load_timestamp + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return Math.floor((Date.now() - new Date(value)) / 1000);' + master_item: + key: nginx.info + tags: + - tag: component + value: info + triggers: + - uuid: 396fb4be618e45578566971d5399d611 + expression: 'nodata(/NGINX Plus by HTTP/nginx.info.uptime,30m)=1' + name: 'NGINX Plus: Failed to fetch info data' + event_name: 'NGINX Plus: Failed to fetch info data (or no data for 30m)' + priority: WARNING + description: 'Zabbix has not received any data for metrics for the last 30 minutes' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 95622a29bd58444b9f0bd985db99f922 + expression: 'last(/NGINX Plus by HTTP/nginx.info.uptime)<10m' + name: 'NGINX Plus: Host has been restarted' + event_name: 'NGINX Plus: {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: 89059effd28641e08e2002c807784bcb + name: Version + type: DEPENDENT + key: nginx.info.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'A version number of NGINX.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: nginx.info + tags: + - tag: component + value: info + triggers: + - uuid: a91ff018fe4f4a1495b08adeb2b0005f + expression: 'last(/NGINX Plus by HTTP/nginx.info.version,#1)<>last(/NGINX Plus by HTTP/nginx.info.version,#2) and length(last(/NGINX Plus by HTTP/nginx.info.version))>0' + name: 'NGINX Plus: Version has changed' + event_name: 'NGINX Plus: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Nginx version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 65377fc7308340348199c4c63720a7e1 + name: 'Get requests' + type: HTTP_AGENT + key: nginx.requests + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the status of the client''s HTTP requests.' + url: '{$NGINX.API.ENDPOINT}/6/http/requests/' + status_codes: '200,404' + tags: + - tag: component + value: raw + - tag: component + value: requests + - uuid: 630c4f81f9f44397a156e2d4e5d21af8 + name: 'Requests current' + type: DEPENDENT + key: nginx.requests.current + delay: '0' + description: 'The current number of client requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.current + master_item: + key: nginx.requests + tags: + - tag: component + value: requests + - uuid: 8130bfb659a94641b97a1abcdb9a4f66 + name: 'Requests total, rate' + type: DEPENDENT + key: nginx.requests.total.rate + delay: '0' + description: 'The total number of client requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nginx.requests + tags: + - tag: component + value: requests + - uuid: 9ea35f4f2ca24187896b7f44fb410d24 + name: 'Get resolvers' + type: HTTP_AGENT + key: nginx.resolvers + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the status information for each Resolver zone.' + url: '{$NGINX.API.ENDPOINT}/6/resolvers/' + status_codes: '200,404' + tags: + - tag: component + value: raw + - tag: component + value: resolvers + - uuid: e0798bb2d16c418781e19880fd78832c + name: 'Get SSL' + type: HTTP_AGENT + key: nginx.ssl + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the SSL statistics.' + url: '{$NGINX.API.ENDPOINT}/6/ssl/' + status_codes: '200,404' + tags: + - tag: component + value: raw + - tag: component + value: ssl + - uuid: 09c7ab8555d046a69a96889185650dfe + name: 'SSL handshakes, rate' + type: DEPENDENT + key: nginx.ssl.handshakes.rate + delay: '0' + description: 'The total number of successful SSL handshakes per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.handshakes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nginx.ssl + tags: + - tag: component + value: ssl + - uuid: 77fcc55ced2045e099b37580f7ef6d5b + name: 'SSL handshakes failed, rate' + type: DEPENDENT + key: nginx.ssl.handshakes_failed.rate + delay: '0' + description: 'The total number of failed SSL handshakes per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.handshakes_failed + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nginx.ssl + tags: + - tag: component + value: ssl + - uuid: 98ec8bec834a42caba8d260d939beb0e + name: 'SSL session reuses, rate' + type: DEPENDENT + key: nginx.ssl.session_reuses.rate + delay: '0' + description: 'The total number of session reuses during SSL handshake per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.session_reuses + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nginx.ssl + tags: + - tag: component + value: ssl + - uuid: 148a8612964b445ba37e340c9341f49d + name: 'Get Stream server zones' + type: HTTP_AGENT + key: nginx.stream.server_zones + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the status information for each server zone configured in the "stream" directive.' + url: '{$NGINX.API.ENDPOINT}/6/stream/server_zones/' + status_codes: '200,404' + tags: + - tag: component + value: raw + - tag: component + value: server_zones + - uuid: c48ca144a8414b2db1c35d518ca5a24f + name: 'Get Stream upstreams' + type: HTTP_AGENT + key: nginx.stream.upstreams + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns status of each stream upstream server group and its servers.' + url: '{$NGINX.API.ENDPOINT}/6/stream/upstreams/' + status_codes: '200,404' + tags: + - tag: component + value: raw + - tag: component + value: upstreams + discovery_rules: + - uuid: 33fdb45a55544c628c0106ed193ebc0b + name: 'HTTP location zones discovery' + type: DEPENDENT + key: nginx.http.location_zones.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: e75bc85680534ec18df16b9e69bc248c + name: 'HTTP location zone [{#NAME}]: Discarded, rate' + type: DEPENDENT + key: 'nginx.http.location_zones.discarded.rate[{#NAME}]' + delay: '0' + description: 'The total number of requests completed without sending a response per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.discarded + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.location_zones.raw[{#NAME}]' + tags: + - tag: component + value: location_zones + - tag: zone + value: '{#NAME}' + - uuid: 7dc23595142f45e2bd2a40698c21e34d + name: 'HTTP location zone [{#NAME}]: Raw data' + type: DEPENDENT + key: 'nginx.http.location_zones.raw[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the location zone with the name `{#NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#NAME}'']' + master_item: + key: nginx.http.location_zones + tags: + - tag: component + value: location_zones + - tag: component + value: raw + - tag: zone + value: '{#NAME}' + - uuid: 17e01c9171bd493f98b37811dcf49802 + name: 'HTTP location zone [{#NAME}]: Received, rate' + type: DEPENDENT + key: 'nginx.http.location_zones.received.rate[{#NAME}]' + delay: '0' + description: 'The total number of bytes received from clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.received + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.location_zones.raw[{#NAME}]' + tags: + - tag: component + value: location_zones + - tag: zone + value: '{#NAME}' + - uuid: c646c18580ef4b8695cbc03ce0d5122d + name: 'HTTP location zone [{#NAME}]: Requests, rate' + type: DEPENDENT + key: 'nginx.http.location_zones.requests.rate[{#NAME}]' + delay: '0' + description: 'The total number of client requests received from clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.location_zones.raw[{#NAME}]' + tags: + - tag: component + value: location_zones + - tag: zone + value: '{#NAME}' + - uuid: 82c9f68d10ec47f1a701eee692e3b9ae + name: 'HTTP location zone [{#NAME}]: Responses 1xx, rate' + type: DEPENDENT + key: 'nginx.http.location_zones.responses.1xx.rate[{#NAME}]' + delay: '0' + description: 'The number of responses with `1xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.1xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.location_zones.raw[{#NAME}]' + tags: + - tag: component + value: location_zones + - tag: zone + value: '{#NAME}' + - uuid: 0cedd14450ba44f0b4c026afabb522a9 + name: 'HTTP location zone [{#NAME}]: Responses 2xx, rate' + type: DEPENDENT + key: 'nginx.http.location_zones.responses.2xx.rate[{#NAME}]' + delay: '0' + description: 'The number of responses with `2xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.2xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.location_zones.raw[{#NAME}]' + tags: + - tag: component + value: location_zones + - tag: zone + value: '{#NAME}' + - uuid: 046a2a3b9a644dc1b4a0078b6722c867 + name: 'HTTP location zone [{#NAME}]: Responses 3xx, rate' + type: DEPENDENT + key: 'nginx.http.location_zones.responses.3xx.rate[{#NAME}]' + delay: '0' + description: 'The number of responses with `3xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.3xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.location_zones.raw[{#NAME}]' + tags: + - tag: component + value: location_zones + - tag: zone + value: '{#NAME}' + - uuid: 32eb7cb8f04044d6a00ead678ff44a00 + name: 'HTTP location zone [{#NAME}]: Responses 4xx, rate' + type: DEPENDENT + key: 'nginx.http.location_zones.responses.4xx.rate[{#NAME}]' + delay: '0' + description: 'The number of responses with `4xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.4xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.location_zones.raw[{#NAME}]' + tags: + - tag: component + value: location_zones + - tag: zone + value: '{#NAME}' + - uuid: dd5a27eb32da42d7998f89a96e29304f + name: 'HTTP location zone [{#NAME}]: Responses 5xx, rate' + type: DEPENDENT + key: 'nginx.http.location_zones.responses.5xx.rate[{#NAME}]' + delay: '0' + description: 'The number of responses with `5xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.5xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.location_zones.raw[{#NAME}]' + tags: + - tag: component + value: location_zones + - tag: zone + value: '{#NAME}' + - uuid: b6e3c7f074b54531aa57dce55169aedd + name: 'HTTP location zone [{#NAME}]: Responses total, rate' + type: DEPENDENT + key: 'nginx.http.location_zones.responses.total.rate[{#NAME}]' + delay: '0' + description: 'The total number of responses sent to clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.total + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.location_zones.raw[{#NAME}]' + tags: + - tag: component + value: location_zones + - tag: zone + value: '{#NAME}' + - uuid: 0af45d37b3a24d5491054aa3cf319315 + name: 'HTTP location zone [{#NAME}]: Sent, rate' + type: DEPENDENT + key: 'nginx.http.location_zones.sent.rate[{#NAME}]' + delay: '0' + description: 'The total number of bytes sent to clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.sent + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.location_zones.raw[{#NAME}]' + tags: + - tag: component + value: location_zones + - tag: zone + value: '{#NAME}' + graph_prototypes: + - uuid: 85880c097a1c47bfafa35de05304abbc + name: 'Nginx: HTTP location zone [{#NAME}]: Requests' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.location_zones.requests.rate[{#NAME}]' + - uuid: 6b05907e4c544986b977a1b496ca92e2 + name: 'Nginx: HTTP location zone [{#NAME}]: Responses' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.location_zones.responses.2xx.rate[{#NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.location_zones.responses.1xx.rate[{#NAME}]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.location_zones.responses.3xx.rate[{#NAME}]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.location_zones.responses.4xx.rate[{#NAME}]' + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.location_zones.responses.5xx.rate[{#NAME}]' + master_item: + key: nginx.http.location_zones + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var output = []; + + Object.keys(JSON.parse(value)).forEach(function (v) { + output.push({ '{#NAME}': v }) + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + - uuid: 85ad3fc40daa45b7a2fe00d570c5626c + name: 'HTTP server zones discovery' + type: DEPENDENT + key: nginx.http.server_zones.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.HTTP.ZONE.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.HTTP.ZONE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 46d056a7870545e49db03b0ec2bd1e9b + name: 'HTTP server zone [{#NAME}]: Discarded, rate' + type: DEPENDENT + key: 'nginx.http.server_zones.discarded.rate[{#NAME}]' + delay: '0' + description: 'The total number of requests completed without sending a response per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.discarded + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: e8dd5302fced4d23ba93656f383222d9 + name: 'HTTP server zone [{#NAME}]: Processing' + type: DEPENDENT + key: 'nginx.http.server_zones.processing[{#NAME}]' + delay: '0' + description: 'The number of client requests that are currently being processed.' + preprocessing: + - type: JSONPATH + parameters: + - $.processing + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: db1046fb656c4ddf8a057cc1d0cb44f6 + name: 'HTTP server zone [{#NAME}]: Raw data' + type: DEPENDENT + key: 'nginx.http.server_zones.raw[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the HTTP server zone with the name `{#NAME}` .' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#NAME}'']' + master_item: + key: nginx.http.server_zones + tags: + - tag: component + value: raw + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: edc834403218460b8c7b8b3ca0709a76 + name: 'HTTP server zone [{#NAME}]: Received, rate' + type: DEPENDENT + key: 'nginx.http.server_zones.received.rate[{#NAME}]' + delay: '0' + description: 'The total number of bytes received from clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.received + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: e33079d5cc684a5687bd7cd10eaec541 + name: 'HTTP server zone [{#NAME}]: Requests, rate' + type: DEPENDENT + key: 'nginx.http.server_zones.requests.rate[{#NAME}]' + delay: '0' + description: 'The total number of client requests received from clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 2b37ee1a3c1243c38534f70acf7a32d9 + name: 'HTTP server zone [{#NAME}]: Responses 1xx, rate' + type: DEPENDENT + key: 'nginx.http.server_zones.responses.1xx.rate[{#NAME}]' + delay: '0' + description: 'The number of responses with `1xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.1xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 4e127d8bfac940f1b3703053ada05fbd + name: 'HTTP server zone [{#NAME}]: Responses 2xx, rate' + type: DEPENDENT + key: 'nginx.http.server_zones.responses.2xx.rate[{#NAME}]' + delay: '0' + description: 'The number of responses with `2xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.2xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 6add98c2b5334160a0e4cc363f53cb7e + name: 'HTTP server zone [{#NAME}]: Responses 3xx, rate' + type: DEPENDENT + key: 'nginx.http.server_zones.responses.3xx.rate[{#NAME}]' + delay: '0' + description: 'The number of responses with `3xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.3xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 1f2cd6dcddf948a9bf17f05c68502f46 + name: 'HTTP server zone [{#NAME}]: Responses 4xx, rate' + type: DEPENDENT + key: 'nginx.http.server_zones.responses.4xx.rate[{#NAME}]' + delay: '0' + description: 'The number of responses with `4xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.4xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: fc6654f2627e47cbbe1a7628c073520a + name: 'HTTP server zone [{#NAME}]: Responses 5xx, rate' + type: DEPENDENT + key: 'nginx.http.server_zones.responses.5xx.rate[{#NAME}]' + delay: '0' + description: 'The number of responses with `5xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.5xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: fd81275f0c994a62a9412d595d7d2e8b + name: 'HTTP server zone [{#NAME}]: Responses total, rate' + type: DEPENDENT + key: 'nginx.http.server_zones.responses.total.rate[{#NAME}]' + delay: '0' + description: 'The total number of responses sent to clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.total + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 91acfc8de0e64d52820d509ced251e5b + name: 'HTTP server zone [{#NAME}]: Sent, rate' + type: DEPENDENT + key: 'nginx.http.server_zones.sent.rate[{#NAME}]' + delay: '0' + description: 'The total number of bytes sent to clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.sent + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + graph_prototypes: + - uuid: ba4bc0201f0741078e1512fd79bddf59 + name: 'Nginx: HTTP server zone [{#NAME}]: Requests' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.server_zones.requests.rate[{#NAME}]' + - uuid: 5870e9a861f046b3946c2464c6c5007d + name: 'Nginx: HTTP server zone [{#NAME}]: Responses' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.server_zones.responses.2xx.rate[{#NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.server_zones.responses.1xx.rate[{#NAME}]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.server_zones.responses.3xx.rate[{#NAME}]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.server_zones.responses.4xx.rate[{#NAME}]' + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.server_zones.responses.5xx.rate[{#NAME}]' + master_item: + key: nginx.http.server_zones + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var output = []; + + Object.keys(JSON.parse(value)).forEach(function (v) { + output.push({ '{#NAME}': v }) + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + - uuid: 007e9b12e7164f629d90a6f377333dc8 + name: 'HTTP upstream peers discovery' + type: DEPENDENT + key: nginx.http.upstream.peers.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#UPSTREAM}' + value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.MATCHES}' + formulaid: A + - macro: '{#UPSTREAM}' + value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: ad270fab134c44ae83c154670db4d317 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Active' + type: DEPENDENT + key: 'nginx.http.upstream.peer.active[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The current number of active connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: cd7455016ac549598df2551a716545ef + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Fails, rate' + type: DEPENDENT + key: 'nginx.http.upstream.peer.fails.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of unsuccessful attempts to communicate with the server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.fails + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: b0607f003d7a4713a28f0d75b7933087 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Header time' + type: DEPENDENT + key: 'nginx.http.upstream.peer.header_time.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + units: '!ms' + description: 'The average time to get the response header from the server.' + preprocessing: + - type: JSONPATH + parameters: + - $.header_time + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 89f89850409a4aff8447b9f7c2839f01 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, check' + type: DEPENDENT + key: 'nginx.http.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of health check requests made.' + preprocessing: + - type: JSONPATH + parameters: + - $.health_checks.checks + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 31292e9dbc8c45dd936ed1e77d44940b + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, fails' + type: DEPENDENT + key: 'nginx.http.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The number of failed health checks.' + preprocessing: + - type: JSONPATH + parameters: + - $.health_checks.fails + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 89c57fb94cab4635b14532961560a8bf + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, unhealthy' + type: DEPENDENT + key: 'nginx.http.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'Displays how many times the server has become `unhealthy` (the state - “unhealthy”.' + preprocessing: + - type: JSONPATH + parameters: + - $.health_checks.unhealthy + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 45905cc6029140a39a8c9228d0254063 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Raw data' + type: DEPENDENT + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the HTTP upstream with the name `[{#UPSTREAM}]`and peer with the name`[{#PEER}]`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].first()' + master_item: + key: nginx.http.upstreams + tags: + - tag: component + value: raw + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 8731deb89d1c4fc2bab90aca5802c721 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Received, rate' + type: DEPENDENT + key: 'nginx.http.upstream.peer.received.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of bytes received from this server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.received + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 3ff18cfb4028421e9af0460aeaa2d6a4 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Requests, rate' + type: DEPENDENT + key: 'nginx.http.upstream.peer.requests.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of client requests forwarded to this server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 6ca38995050e44488df4fde7dc543541 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 1xx, rate' + type: DEPENDENT + key: 'nginx.http.upstream.peer.responses.1xx.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The number of responses with `1xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.1xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: e526b61c48eb45568ef92434eee3a2cb + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 2xx, rate' + type: DEPENDENT + key: 'nginx.http.upstream.peer.responses.2xx.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The number of responses with `2xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.2xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 7b2851137d77418a8548e92332c66c86 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 3xx, rate' + type: DEPENDENT + key: 'nginx.http.upstream.peer.responses.3xx.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The number of responses with `3xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.3xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: cb81f113d289409ca26af48aeb68f8cc + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 4xx, rate' + type: DEPENDENT + key: 'nginx.http.upstream.peer.responses.4xx.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The number of responses with `4xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.4xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 172cb81d02f04fd48c7b82d8ae7dac69 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 5xx, rate' + type: DEPENDENT + key: 'nginx.http.upstream.peer.responses.5xx.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The number of responses with `5xx` status code per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.5xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: d587254989c743b4aa9c8043bf18baa5 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses total, rate' + type: DEPENDENT + key: 'nginx.http.upstream.peer.responses.total.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of responses obtained from this server.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.total + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 868562df5ab44d3cadeb6fa294b33559 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Response time' + type: DEPENDENT + key: 'nginx.http.upstream.peer.response_time.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + units: '!ms' + description: 'The average time to get the full response from the server.' + preprocessing: + - type: JSONPATH + parameters: + - $.response_time + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 2a0a36d22acf453e80d79820990db9b8 + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Sent, rate' + type: DEPENDENT + key: 'nginx.http.upstream.peer.sent.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of bytes sent to this server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.sent + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 33eacaa48f974c348e37475341a6c8af + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: State' + type: DEPENDENT + key: 'nginx.http.upstream.peer.state[{#UPSTREAM},{#PEER}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current state, which may be one of “up”, “draining”, “down”, “unavail”, “checking”, and “unhealthy”.' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + trigger_prototypes: + - uuid: fc6586fe2eef457bac1d71ce0313f95d + expression: 'find(/NGINX Plus by HTTP/nginx.http.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","up")=0 and find(/NGINX Plus by HTTP/nginx.http.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","down")=0' + name: 'NGINX Plus: HTTP upstream server is not in UP or DOWN state.' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: e89e6c141217465794febd9131ccafae + name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Unavail' + type: DEPENDENT + key: 'nginx.http.upstream.peer.unavail.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'Displays how many times the server has become unavailable for client requests (the state - “unavail”) due to the number of unsuccessful attempts reaching the `max_fails` threshold.' + preprocessing: + - type: JSONPATH + parameters: + - $.unavail + master_item: + key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + trigger_prototypes: + - uuid: e7b4782a796b4710b50a96f3d24c8208 + expression: 'sum(/NGINX Plus by HTTP/nginx.http.upstream.peer.responses.4xx.rate[{#UPSTREAM},{#PEER}],5m) > (sum(/NGINX Plus by HTTP/nginx.http.upstream.peer.responses.total.rate[{#UPSTREAM},{#PEER}],5m)*({$NGINX.HTTP.UPSTREAM.4XX.MAX.WARN}/100))' + name: 'NGINX Plus: Too many HTTP requests with code 4xx' + event_name: 'NGINX Plus: Too many HTTP requests with code 4xx (over {$NGINX.HTTP.UPSTREAM.4XX.MAX.WARN}% for 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: f542573d149547d3844f635bf2a87120 + expression: 'sum(/NGINX Plus by HTTP/nginx.http.upstream.peer.responses.5xx.rate[{#UPSTREAM},{#PEER}],5m) > (sum(/NGINX Plus by HTTP/nginx.http.upstream.peer.responses.total.rate[{#UPSTREAM},{#PEER}],5m)*({$NGINX.HTTP.UPSTREAM.5XX.MAX.WARN}/100))' + name: 'NGINX Plus: Too many HTTP requests with code 5xx' + event_name: 'NGINX Plus: Too many HTTP requests with code 5xx (over {$NGINX.HTTP.UPSTREAM.5XX.MAX.WARN}% for 5m)' + priority: HIGH + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 63582bcbe4c741e88cd64a43ff1b7d9d + name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]' + - uuid: 49cd8f25969d486ab4482b4986b1815a + name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.upstream.peer.responses.2xx.rate[{#UPSTREAM},{#PEER}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.upstream.peer.responses.1xx.rate[{#UPSTREAM},{#PEER}]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.upstream.peer.responses.3xx.rate[{#UPSTREAM},{#PEER}]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.upstream.peer.responses.4xx.rate[{#UPSTREAM},{#PEER}]' + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.http.upstream.peer.responses.5xx.rate[{#UPSTREAM},{#PEER}]' + master_item: + key: nginx.http.upstreams + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value), + output = []; + + Object.keys(input).forEach(function (upstream) { + input[upstream].peers.forEach(function (peer) { + output.push({ '{#UPSTREAM}': upstream, '{#PEER}': peer.server }) + }); + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + - uuid: 0cdb09e9004540239fd49eab09e3f324 + name: 'HTTP upstreams discovery' + type: DEPENDENT + key: nginx.http.upstreams.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: ef9a2a71c3a340c894f82c29503d6b6b + name: 'HTTP upstream [{#NAME}]: Keepalive' + type: DEPENDENT + key: 'nginx.http.upstreams.keepalive[{#NAME}]' + delay: '0' + description: 'The current number of idle keepalive connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.keepalive + master_item: + key: 'nginx.http.upstreams.raw[{#NAME}]' + tags: + - tag: component + value: upstreams + - tag: upstream + value: '{#NAME}' + - uuid: c3e92f3e636c4c45907fecd332eb700f + name: 'HTTP upstream [{#NAME}]: Raw data' + type: DEPENDENT + key: 'nginx.http.upstreams.raw[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the HTTP upstream with the name `{#NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#NAME}'']' + master_item: + key: nginx.http.upstreams + tags: + - tag: component + value: raw + - tag: component + value: upstream + - tag: upstream + value: '{#NAME}' + - uuid: 1a426d42dada4eb082aa4e912ae1256c + name: 'HTTP upstream [{#NAME}]: Zombies' + type: DEPENDENT + key: 'nginx.http.upstreams.zombies[{#NAME}]' + delay: '0' + description: 'The current number of servers removed from the group but still processing active client requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.zombies + master_item: + key: 'nginx.http.upstreams.raw[{#NAME}]' + tags: + - tag: component + value: upstreams + - tag: upstream + value: '{#NAME}' + - uuid: 8aa415f2a55a4e8fb28ea87a8d307bd4 + name: 'HTTP upstream [{#NAME}]: Zone' + type: DEPENDENT + key: 'nginx.http.upstreams.zone[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the shared memory zone that keeps the group''s configuration and run-time state.' + preprocessing: + - type: JSONPATH + parameters: + - $.zone + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'nginx.http.upstreams.raw[{#NAME}]' + tags: + - tag: component + value: upstreams + - tag: upstream + value: '{#NAME}' + master_item: + key: nginx.http.upstreams + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var output = []; + + Object.keys(JSON.parse(value)).forEach(function (v) { + output.push({ '{#NAME}': v }) + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + - uuid: 1f75b67c7c4044dfa8727cc7363e86d0 + name: 'Resolvers discovery' + type: DEPENDENT + key: nginx.resolvers.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.RESOLVER.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.RESOLVER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: f224bd4758e6481cae8779ec28a0ede4 + name: 'Resolver [{#NAME}]: Raw data' + type: DEPENDENT + key: 'nginx.resolvers.raw[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the `Resolver` with the name `{#NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#NAME}'']' + master_item: + key: nginx.resolvers + tags: + - tag: component + value: raw + - tag: component + value: resolver + - tag: upstream + value: '{#NAME}' + - uuid: 8fd2a1c5c148423886dccb939ca61b62 + name: 'Resolver [{#NAME}]: Requests addr, rate' + type: DEPENDENT + key: 'nginx.resolvers.requests.addr.rate[{#NAME}]' + delay: '0' + description: 'The total number of requests to resolve addresses to names per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.addr + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + - uuid: fb149324f11a4edc9971e9e2572282a6 + name: 'Resolver [{#NAME}]: Requests name, rate' + type: DEPENDENT + key: 'nginx.resolvers.requests.name.rate[{#NAME}]' + delay: '0' + description: 'The total number of requests to resolve names to addresses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.name + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + - uuid: 9ebd08e8b6a3416c940b16a03158bafe + name: 'Resolver [{#NAME}]: Requests srv, rate' + type: DEPENDENT + key: 'nginx.resolvers.requests.srv.rate[{#NAME}]' + delay: '0' + description: 'The total number of requests to resolve SRV records per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.requests.srv + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + - uuid: 8a7db7d9c24f4f88b9ad9dde32b2b2e0 + name: 'Resolver [{#NAME}]: Responses formerr, rate' + type: DEPENDENT + key: 'nginx.resolvers.responses.formerr.rate[{#NAME}]' + delay: '0' + description: 'The total number of `FORMERR` (format error) responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.formerr + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + - uuid: bf5a55d771724cfeaec90950f653b181 + name: 'Resolver [{#NAME}]: Responses noerror, rate' + type: DEPENDENT + key: 'nginx.resolvers.responses.noerror.rate[{#NAME}]' + delay: '0' + description: 'The total number of successful responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.noerror + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + - uuid: 46cd31140a3342568c7d7ae0cdae6270 + name: 'Resolver [{#NAME}]: Responses notimp, rate' + type: DEPENDENT + key: 'nginx.resolvers.responses.notimp.rate[{#NAME}]' + delay: '0' + description: 'The total number of `NOTIMP` (unimplemented) responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.notimp + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + - uuid: b4e002955de844a69a755076993b0577 + name: 'Resolver [{#NAME}]: Responses nxdomain, rate' + type: DEPENDENT + key: 'nginx.resolvers.responses.nxdomain.rate[{#NAME}]' + delay: '0' + description: 'The total number of `NXDOMAIN` (host not found) responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.nxdomain + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + - uuid: 114f260fc9754e80927494dce51f9e46 + name: 'Resolver [{#NAME}]: Responses refused, rate' + type: DEPENDENT + key: 'nginx.resolvers.responses.refused.rate[{#NAME}]' + delay: '0' + description: 'The total number of `REFUSED` (operation refused) responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.refused + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + - uuid: 7b4f4f609807407e849525f9f99c0fcc + name: 'Resolver [{#NAME}]: Responses servfail, rate' + type: DEPENDENT + key: 'nginx.resolvers.responses.servfail.rate[{#NAME}]' + delay: '0' + description: 'The total number of `SERVFAIL` (server failure) responses per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.servfail + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + - uuid: 28b11b8bfd6143ada94b041390281a2f + name: 'Resolver [{#NAME}]: Responses timedout, rate' + type: DEPENDENT + key: 'nginx.resolvers.responses.timedout.rate[{#NAME}]' + delay: '0' + description: 'The total number of timed out requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.timedout + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + - uuid: b68f19ad119941b58da491d2cd827277 + name: 'Resolver [{#NAME}]: Responses unknown, rate' + type: DEPENDENT + key: 'nginx.resolvers.responses.unknown.rate[{#NAME}]' + delay: '0' + description: 'The total number of requests completed with an unknown error per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.responses.unknown + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.resolvers.raw[{#NAME}]' + tags: + - tag: component + value: resolver + - tag: resolver + value: '{#NAME}' + graph_prototypes: + - uuid: 7c91ca5b8477468fa19c56b621e0c32a + name: 'Nginx: Resolver [{#NAME}]: Requests' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.requests.name.rate[{#NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.requests.srv.rate[{#NAME}]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.requests.addr.rate[{#NAME}]' + - uuid: e3535ce974114e6188752937c1bdb2c7 + name: 'Nginx: Resolver [{#NAME}]: Responses' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.responses.noerror.rate[{#NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.responses.formerr.rate[{#NAME}]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.responses.servfail.rate[{#NAME}]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.responses.nxdomain.rate[{#NAME}]' + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.responses.notimp.rate[{#NAME}]' + - sortorder: '5' + drawtype: GRADIENT_LINE + color: 6C59DC + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.responses.refused.rate[{#NAME}]' + - sortorder: '6' + drawtype: GRADIENT_LINE + color: C7A72D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.responses.timedout.rate[{#NAME}]' + - sortorder: '7' + drawtype: GRADIENT_LINE + color: BA2A5D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.resolvers.responses.unknown.rate[{#NAME}]' + master_item: + key: nginx.resolvers + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var output = []; + + Object.keys(JSON.parse(value)).forEach(function (v) { + output.push({ '{#NAME}': v }) + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + - uuid: bdc6582408be488997720ef8a4d1108e + name: 'Stream server zones discovery' + type: DEPENDENT + key: nginx.stream.server_zones.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.STREAM.ZONE.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.STREAM.ZONE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: e321037e23ff484cb4dc89a8e187919c + name: 'Stream server zone [{#NAME}]: Connections, rate' + type: DEPENDENT + key: 'nginx.stream.server_zones.connections.rate[{#NAME}]' + delay: '0' + description: 'The total number of connections accepted from clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.connections + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: c9e9d883123842d291c922d5bbcca8f3 + name: 'Stream server zone [{#NAME}]: Discarded, rate' + type: DEPENDENT + key: 'nginx.stream.server_zones.discarded.rate[{#NAME}]' + delay: '0' + description: 'The total number of connections completed without creating a session per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.discarded + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: f8d16f41fe9e4be685c28bb4acd2187f + name: 'Stream server zone [{#NAME}]: Processing' + type: DEPENDENT + key: 'nginx.stream.server_zones.processing[{#NAME}]' + delay: '0' + description: 'The number of client connections that are currently being processed.' + preprocessing: + - type: JSONPATH + parameters: + - $.processing + master_item: + key: 'nginx.stream.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: b3387022f2b44650823ce47394723069 + name: 'Stream server zone [{#NAME}]: Raw data' + type: DEPENDENT + key: 'nginx.stream.server_zones.raw[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of server zone with the name `{#NAME}`, configured in the "stream" directive.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#NAME}'']' + master_item: + key: nginx.stream.server_zones + tags: + - tag: component + value: raw + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 47a9959627e3423e9739b55dac23edd2 + name: 'Stream server zone [{#NAME}]: Received, rate' + type: DEPENDENT + key: 'nginx.stream.server_zones.received.rate[{#NAME}]' + delay: '0' + description: 'The total number of bytes received from clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.received + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 2aafb1ae6ce24f14a3494826d63cfce2 + name: 'Stream server zone [{#NAME}]: Sent, rate' + type: DEPENDENT + key: 'nginx.stream.server_zones.sent.rate[{#NAME}]' + delay: '0' + description: 'The total number of bytes sent to clients per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.sent + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 7399335b883040c495b5cbfade3e182e + name: 'Stream server zone [{#NAME}]: Sessions 2xx, rate' + type: DEPENDENT + key: 'nginx.stream.server_zones.sessions.2xx.rate[{#NAME}]' + delay: '0' + description: 'The total number of sessions completed with status code `2xx` per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.sessions.2xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 5e654682849748bea849db9ab73f7075 + name: 'Stream server zone [{#NAME}]: Sessions 4xx, rate' + type: DEPENDENT + key: 'nginx.stream.server_zones.sessions.4xx.rate[{#NAME}]' + delay: '0' + description: 'The total number of sessions completed with status code `4xx` per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.sessions.4xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 0cdc4545f6dc4a1e8f247291302824a4 + name: 'Stream server zone [{#NAME}]: Sessions 5xx, rate' + type: DEPENDENT + key: 'nginx.stream.server_zones.sessions.5xx.rate[{#NAME}]' + delay: '0' + description: 'The total number of sessions completed with status code `5xx` per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.sessions.5xx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + - uuid: 30313c91655042b8948422c13fbdfca3 + name: 'Stream server zone [{#NAME}]: Sessions total, rate' + type: DEPENDENT + key: 'nginx.stream.server_zones.sessions.total.rate[{#NAME}]' + delay: '0' + description: 'The total number of completed client sessions per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.sessions.total + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.server_zones.raw[{#NAME}]' + tags: + - tag: component + value: server_zones + - tag: zone + value: '{#NAME}' + graph_prototypes: + - uuid: f833112506e941d791057925c58bd1d9 + name: 'Nginx: Stream server zone [{#NAME}]: Sessions' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.stream.server_zones.sessions.2xx.rate[{#NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.stream.server_zones.sessions.4xx.rate[{#NAME}]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.stream.server_zones.sessions.5xx.rate[{#NAME}]' + master_item: + key: nginx.stream.server_zones + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var output = []; + + Object.keys(JSON.parse(value)).forEach(function (v) { + output.push({ '{#NAME}': v }) + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + - uuid: 435f8bc40dd244aabb7daee4be7d54e5 + name: 'Stream upstream peers discovery' + type: DEPENDENT + key: nginx.stream.upstream.peers.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#UPSTREAM}' + value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.MATCHES}' + formulaid: A + - macro: '{#UPSTREAM}' + value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 3337df557e734de8b019216c5c06fcea + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Active' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.active[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The current number of connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 2ae319abd31b40b7a765c300e5dfa954 + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Connections' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.connections.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of client connections forwarded to this server.' + preprocessing: + - type: JSONPATH + parameters: + - $.connections + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: f98409ef166b47f3a70d46dffe233166 + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Connect time' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.connect_time.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + units: '!ms' + description: 'The average time to connect to the upstream server.' + preprocessing: + - type: JSONPATH + parameters: + - $.connect_time + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 0b1000ddc883422cb9fb3382a839c10a + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Fails, rate' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.fails.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of unsuccessful attempts to communicate with the server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.fails + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 23a02d1c0a63483fb1eb4914a7e48ecf + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: First byte time' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.first_byte_time.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + units: '!ms' + description: 'The average time to receive the first byte of data.' + preprocessing: + - type: JSONPATH + parameters: + - $.first_byte_time + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: dac0196daad74fc385a336c7dbddbcfd + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, check' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of health check requests made.' + preprocessing: + - type: JSONPATH + parameters: + - $.health_checks.checks + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: af2a6991b432439cb4afb071974a05e7 + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, fails' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The number of failed health checks.' + preprocessing: + - type: JSONPATH + parameters: + - $.health_checks.fails + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 089bbb9c602a4654a3d2c582c643745f + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, unhealthy' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'Displays how many times the server has become `unhealthy` (the state - “unhealthy”).' + preprocessing: + - type: JSONPATH + parameters: + - $.health_checks.unhealthy + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 4501c6c20ccd4c93a54e0e23b75de76b + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Raw data' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the upstream with the name `[{#UPSTREAM}]`and peer with the name`[{#PEER}]`, configured in the "stream" directive.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].first()' + master_item: + key: nginx.stream.upstreams + tags: + - tag: component + value: raw + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 12193b1723eb419a9bbcb235c7b45308 + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Received, rate' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.received.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of bytes received from this server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.received + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: bda851b725454395b59988f03c534b3b + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Response time' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.response_time.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + units: '!ms' + description: 'The average time to receive the last byte of data.' + preprocessing: + - type: JSONPATH + parameters: + - $.response_time + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: 6ae8685716cf487fa72534a76e4b286a + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Sent, rate' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.sent.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'The total number of bytes sent to this server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.sent + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + - uuid: ae7b6564244845518816fffc38bbf9aa + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: State' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.state[{#UPSTREAM},{#PEER}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current state, which may be one of “up”, “draining”, “down”, “unavail”, “checking”, and “unhealthy”.' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + trigger_prototypes: + - uuid: 20ef9b9e953246ef856dd46033595e52 + expression: 'find(/NGINX Plus by HTTP/nginx.stream.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","up")=0 and find(/NGINX Plus by HTTP/nginx.stream.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","down")=0' + name: 'NGINX Plus: Stream upstream server is not in UP or DOWN state.' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 732f0ea262454ab3a4cfeb09aea66b9b + name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Unavail' + type: DEPENDENT + key: 'nginx.stream.upstream.peer.unavail.rate[{#UPSTREAM},{#PEER}]' + delay: '0' + description: 'Displays how many times the server has become unavailable for client requests (the state - “unavail”) due to the number of unsuccessful attempts reaching the `max_fails` threshold.' + preprocessing: + - type: JSONPATH + parameters: + - $.unavail + master_item: + key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]' + tags: + - tag: component + value: upstream + - tag: peer + value: '{#PEER}' + - tag: upstream + value: '{#UPSTREAM}' + graph_prototypes: + - uuid: abb23d681d0a461db00648b412b176c8 + name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.stream.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.stream.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'NGINX Plus by HTTP' + key: 'nginx.stream.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]' + master_item: + key: nginx.stream.upstreams + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var input = JSON.parse(value), + output = []; + + Object.keys(input).forEach(function (upstream) { + input[upstream].peers.forEach(function (peer) { + output.push({ '{#UPSTREAM}': upstream, '{#PEER}': peer.server }) + }); + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + - uuid: 8a8f9d8b47f84bd98a5315ae30944240 + name: 'Stream upstreams discovery' + type: DEPENDENT + key: nginx.stream.upstreams.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: 17a28cedacaf4a67929982037bf61f59 + name: 'Stream upstream [{#NAME}]: Raw data' + type: DEPENDENT + key: 'nginx.stream.upstreams.raw[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The raw data of the upstream with the name `[{#UPSTREAM}]`, configured in the "stream" directive.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#NAME}'']' + master_item: + key: nginx.stream.upstreams + tags: + - tag: component + value: raw + - tag: component + value: upstreams + - tag: upstream + value: '{#NAME}' + - uuid: 5537680fbc024713a077932cc55ef3a7 + name: 'Stream upstream [{#NAME}]: Zombies' + type: DEPENDENT + key: 'nginx.stream.upstreams.zombies[{#NAME}]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.zombies + master_item: + key: 'nginx.stream.upstreams.raw[{#NAME}]' + tags: + - tag: component + value: upstreams + - tag: upstream + value: '{#NAME}' + - uuid: 8c273c10ece545a58e4d34f6d3812fe0 + name: 'Stream upstream [{#NAME}]: Zone' + type: DEPENDENT + key: 'nginx.stream.upstreams.zone[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.zone + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'nginx.stream.upstreams.raw[{#NAME}]' + tags: + - tag: component + value: upstreams + - tag: upstream + value: '{#NAME}' + master_item: + key: nginx.stream.upstreams + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var output = []; + + Object.keys(JSON.parse(value)).forEach(function (v) { + output.push({ '{#NAME}': v }) + }); + + return JSON.stringify(output); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + tags: + - tag: class + value: software + - tag: target + value: nginx + macros: + - macro: '{$NGINX.API.ENDPOINT}' + description: 'NGINX Plus API URL in the format `://://`.' + - macro: '{$NGINX.DROP_RATE.MAX.WARN}' + value: '1' + description: 'The critical rate of the dropped connections for a trigger expression.' + - macro: '{$NGINX.HTTP.UPSTREAM.4XX.MAX.WARN}' + value: '5' + description: 'The maximum percentage of errors with the status code `4xx` (for a trigger expression).' + - macro: '{$NGINX.HTTP.UPSTREAM.5XX.MAX.WARN}' + value: '5' + description: 'The maximum percentage of errors with the status code `5xx` (for a trigger expression).' + - macro: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.MATCHES}' + value: '.*' + description: 'The filter to include the necessary discovered HTTP location zones.' + - macro: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude discovered HTTP location zones.' + - macro: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.MATCHES}' + value: '.*' + description: 'The filter to include the necessary discovered HTTP upstreams.' + - macro: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude discovered HTTP upstreams.' + - macro: '{$NGINX.LLD.FILTER.HTTP.ZONE.MATCHES}' + value: '.*' + description: 'The filter to include the necessary discovered HTTP server zones.' + - macro: '{$NGINX.LLD.FILTER.HTTP.ZONE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude discovered HTTP server zones.' + - macro: '{$NGINX.LLD.FILTER.RESOLVER.MATCHES}' + value: '.*' + description: 'The filter to include the necessary discovered `Resolvers`.' + - macro: '{$NGINX.LLD.FILTER.RESOLVER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude discovered `Resolvers`.' + - macro: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.MATCHES}' + value: '.*' + description: 'The filter to include the necessary discovered upstreams of the "stream" directive.' + - macro: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude discovered upstreams of the "stream" directive' + - macro: '{$NGINX.LLD.FILTER.STREAM.ZONE.MATCHES}' + value: '.*' + description: 'The filter to include discovered server zones of the "stream" directive.' + - macro: '{$NGINX.LLD.FILTER.STREAM.ZONE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The filter to exclude discovered server zones of the "stream" directive.' + dashboards: + - uuid: 8096f22c676e43008469b99bc5f81fd6 + name: 'Nginx: Overview' + pages: + - name: Main + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'NGINX Plus by HTTP' + name: 'Nginx: Connections' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'NGINX Plus by HTTP' + name: 'Nginx: SSL' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'NGINX Plus by HTTP' + name: 'Nginx: Requests' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'NGINX Plus by HTTP' + name: 'Nginx: Uptime' + - type: STRING + name: reference + value: AAAAD + graphs: + - uuid: a8b239f2f21a471fa3ac6a10a0419e9c + name: 'Nginx: Connections' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: nginx.connections.accepted.rate + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'NGINX Plus by HTTP' + key: nginx.connections.dropped + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'NGINX Plus by HTTP' + key: nginx.connections.active + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'NGINX Plus by HTTP' + key: nginx.connections.idle + - uuid: 4be7153e244b4c28a53c527aa9fd5706 + name: 'Nginx: Requests' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: nginx.requests.total.rate + - uuid: b1c647610c974bc8aad4fb55e1e3c8d3 + name: 'Nginx: SSL' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: nginx.ssl.handshakes.rate + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'NGINX Plus by HTTP' + key: nginx.ssl.handshakes_failed.rate + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'NGINX Plus by HTTP' + key: nginx.ssl.session_reuses.rate + - uuid: b2da29d4951745db8a66a076eb99d0aa + name: 'Nginx: Uptime' + graph_items: + - color: 199C0D + item: + host: 'NGINX Plus by HTTP' + key: nginx.info.uptime diff --git a/NetApp_AFF_A700_by_HTTP.yaml b/NetApp_AFF_A700_by_HTTP.yaml new file mode 100644 index 0000000..477815c --- /dev/null +++ b/NetApp_AFF_A700_by_HTTP.yaml @@ -0,0 +1,2161 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 7c2cb727f85b492d88cd56e17127c64d + name: Templates/SAN + templates: + - uuid: 79267c69f54a4e59b4152aba4e8c4bd5 + template: 'NetApp AFF A700 by HTTP' + name: 'NetApp AFF A700 by HTTP' + description: | + The template to monitor SAN NetApp AFF A700 cluster by Zabbix HTTP agent. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/SAN + items: + - uuid: 95d822159f2a4c4084ad36b18cd11a1d + name: 'Get chassis' + type: HTTP_AGENT + key: netapp.chassis.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/cluster/chassis?fields=id,state' + tags: + - tag: component + value: raw + - uuid: 49490a886b5f4e5c9e8cc121a6ffd713 + name: 'Get cluster' + type: HTTP_AGENT + key: netapp.cluster.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/cluster' + tags: + - tag: component + value: raw + - uuid: 2c98b9d6353a4b1f9c0a794681788c22 + name: 'Cluster location' + type: DEPENDENT + key: netapp.cluster.location + delay: '0' + value_type: CHAR + trends: '0' + description: 'The location of the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.location + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - uuid: a052583b18b44ed9b8df1c1eca375113 + name: 'Cluster name' + type: DEPENDENT + key: netapp.cluster.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.name + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - uuid: 63c3ea4634024fb88841cee7e64c964b + name: 'Cluster IOPS, other rate' + type: DEPENDENT + key: netapp.cluster.statistics.iops.other.rate + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for other I/O operations. Other I/O operations can be metadata operations, such as directory lookups and so on.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.iops_raw.other + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: iops + - uuid: 5f38f233c9c0446e8bb9e60229294cdf + name: 'Cluster IOPS, read rate' + type: DEPENDENT + key: netapp.cluster.statistics.iops.read.rate + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.iops_raw.read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: iops + - uuid: 8380db1dbf2a4c2e95eff184d3a61fde + name: 'Cluster IOPS, total rate' + type: DEPENDENT + key: netapp.cluster.statistics.iops.total.rate + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric aggregated over all types of I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.iops_raw.total + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: iops + - uuid: 65a4b938010045ef9735a7d9f6239ccd + name: 'Cluster IOPS, write rate' + type: DEPENDENT + key: netapp.cluster.statistics.iops.write.rate + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.iops_raw.write + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: iops + - uuid: 77253d87ce8242afa45a3c79ab96a91e + name: 'Cluster IOPS raw, other' + type: DEPENDENT + key: netapp.cluster.statistics.iops_raw.other + delay: '0' + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for other I/O operations. Other I/O operations can be metadata operations, such as directory lookups and so on.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.iops_raw.other + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: iops + - uuid: 14262390978b45729fa3ac593cf21a69 + name: 'Cluster IOPS raw, read' + type: DEPENDENT + key: netapp.cluster.statistics.iops_raw.read + delay: '0' + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.iops_raw.read + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: iops + - uuid: 7a0407b68348478f9bc56bf0629f59d2 + name: 'Cluster IOPS raw, total' + type: DEPENDENT + key: netapp.cluster.statistics.iops_raw.total + delay: '0' + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric aggregated over all types of I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.iops_raw.total + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: iops + - uuid: 92640d6a2d044100a59c5d180d43fbce + name: 'Cluster IOPS raw, write' + type: DEPENDENT + key: netapp.cluster.statistics.iops_raw.write + delay: '0' + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.iops_raw.write + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: iops + - uuid: 4bd4fe94e9a54fa2b8ab9bdf0475edff + name: 'Cluster latency, other' + type: CALCULATED + key: netapp.cluster.statistics.latency.other + value_type: FLOAT + units: '!ms' + params: | + (last(//netapp.cluster.statistics.latency_raw.other) - last(//netapp.cluster.statistics.latency_raw.other,#2)) / + (last(//netapp.cluster.statistics.iops_raw.other) - last(//netapp.cluster.statistics.iops_raw.other,#2) + + (last(//netapp.cluster.statistics.iops_raw.other) - last(//netapp.cluster.statistics.iops_raw.other,#2) = 0) ) * 0.001 + description: 'The average latency per I/O operation in milliseconds observed at the storage object. Performance metric for other I/O operations. Other I/O operations can be metadata operations, such as directory lookups and so on.' + tags: + - tag: component + value: cluster + - tag: component + value: latency + - uuid: 4b89e603f9cf4b92a85293b1ad15c005 + name: 'Cluster latency, read' + type: CALCULATED + key: netapp.cluster.statistics.latency.read + value_type: FLOAT + units: '!ms' + params: | + (last(//netapp.cluster.statistics.latency_raw.read) - last(//netapp.cluster.statistics.latency_raw.read,#2)) / + (last(//netapp.cluster.statistics.iops_raw.read) - last(//netapp.cluster.statistics.iops_raw.read,#2) + + (last(//netapp.cluster.statistics.iops_raw.read) - last(//netapp.cluster.statistics.iops_raw.read,#2) = 0) ) * 0.001 + description: 'The average latency per I/O operation in milliseconds observed at the storage object. Performance metric for read I/O operations.' + tags: + - tag: component + value: cluster + - tag: component + value: latency + - uuid: 2c953f67a7484e389d11ac5ef6b06c44 + name: 'Cluster latency, total' + type: CALCULATED + key: netapp.cluster.statistics.latency.total + value_type: FLOAT + units: '!ms' + params: | + (last(//netapp.cluster.statistics.latency_raw.total) - last(//netapp.cluster.statistics.latency_raw.total,#2)) / + (last(//netapp.cluster.statistics.iops_raw.total) - last(//netapp.cluster.statistics.iops_raw.total,#2) + + (last(//netapp.cluster.statistics.iops_raw.total) - last(//netapp.cluster.statistics.iops_raw.total,#2) = 0) ) * 0.001 + description: 'The average latency per I/O operation in milliseconds observed at the storage object. Performance metric aggregated over all types of I/O operations.' + tags: + - tag: component + value: cluster + - tag: component + value: latency + - uuid: 543ba306d85e41c98d34dab39463dd87 + name: 'Cluster latency, write' + type: CALCULATED + key: netapp.cluster.statistics.latency.write + value_type: FLOAT + units: '!ms' + params: | + (last(//netapp.cluster.statistics.latency_raw.write) - last(//netapp.cluster.statistics.latency_raw.write,#2)) / + (last(//netapp.cluster.statistics.iops_raw.write) - last(//netapp.cluster.statistics.iops_raw.write,#2) + + (last(//netapp.cluster.statistics.iops_raw.write) - last(//netapp.cluster.statistics.iops_raw.write,#2) = 0) ) * 0.001 + description: 'The average latency per I/O operation in milliseconds observed at the storage object. Performance metric for write I/O operations.' + tags: + - tag: component + value: cluster + - tag: component + value: latency + - uuid: acd5b961c4d843589514771fa9a0aaa3 + name: 'Cluster latency raw, other' + type: DEPENDENT + key: netapp.cluster.statistics.latency_raw.other + delay: '0' + units: '!mcs' + description: 'The raw latency in microseconds observed at the storage object. This can be divided by the raw IOPS value to calculate the average latency per I/O operation. Performance metric for other I/O operations. Other I/O operations can be metadata operations, such as directory lookups and so on.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.latency_raw.other + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: latency + - uuid: 3e81e918028d412eaa2cb27718ae3b98 + name: 'Cluster latency raw, read' + type: DEPENDENT + key: netapp.cluster.statistics.latency_raw.read + delay: '0' + units: '!mcs' + description: 'The raw latency in microseconds observed at the storage object. This can be divided by the raw IOPS value to calculate the average latency per I/O operation. Performance metric for read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.latency_raw.read + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: latency + - uuid: 78253f625b7e468898f6dd48c9707ad3 + name: 'Cluster latency raw, total' + type: DEPENDENT + key: netapp.cluster.statistics.latency_raw.total + delay: '0' + units: '!mcs' + description: 'The raw latency in microseconds observed at the storage object. This can be divided by the raw IOPS value to calculate the average latency per I/O operation. Performance metric aggregated over all types of I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.latency_raw.total + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: latency + - uuid: fb73702348d3468cad5312af772eaeb9 + name: 'Cluster latency raw, write' + type: DEPENDENT + key: netapp.cluster.statistics.latency_raw.write + delay: '0' + units: '!mcs' + description: 'The raw latency in microseconds observed at the storage object. This can be divided by the raw IOPS value to calculate the average latency per I/O operation. Performance metric for write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.latency_raw.write + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: latency + - uuid: 61acb5f1435f4452a789c44bfd105da3 + name: 'Cluster throughput, other rate' + type: DEPENDENT + key: netapp.cluster.statistics.throughput.other.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Throughput bytes observed at the storage object. Performance metric for other I/O operations. Other I/O operations can be metadata operations, such as directory lookups and so on.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.throughput_raw.other + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: throughput + - uuid: a1fad2e35b8f4c1da450b953d3952263 + name: 'Cluster throughput, read rate' + type: DEPENDENT + key: netapp.cluster.statistics.throughput.read.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Throughput bytes observed at the storage object. Performance metric for read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.throughput_raw.read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: throughput + - uuid: e894ad01c2d74edfb8f954198979070c + name: 'Cluster throughput, total rate' + type: DEPENDENT + key: netapp.cluster.statistics.throughput.total.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Throughput bytes observed at the storage object. Performance metric aggregated over all types of I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.throughput_raw.total + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: throughput + - uuid: c06c118d3fbe48b78db12e43232d6d97 + name: 'Cluster throughput, write rate' + type: DEPENDENT + key: netapp.cluster.statistics.throughput.write.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Throughput bytes observed at the storage object. Performance metric for write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.throughput_raw.write + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + - tag: component + value: throughput + - uuid: 5029bccf54f542b1a2dc760067ddabe3 + name: 'Cluster status' + type: DEPENDENT + key: netapp.cluster.status + delay: '0' + value_type: CHAR + trends: '0' + description: 'The status of the cluster: ok, error, partial_no_data, partial_no_response, partial_other_error, negative_delta, backfilled_data, inconsistent_delta_time, inconsistent_old_data.' + preprocessing: + - type: JSONPATH + parameters: + - $.statistics.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: cluster + triggers: + - uuid: c823a2eb325a4153871be705d7c24c72 + expression: '(last(/NetApp AFF A700 by HTTP/netapp.cluster.status)<>"ok")' + name: 'NetApp AFF A700: Cluster status is abnormal' + priority: AVERAGE + description: 'Any errors associated with the sample. For example, if the aggregation of data over multiple nodes fails then any of the partial errors might be returned, “ok” on success, or “error” on any internal uncategorized failure. Whenever a sample collection is missed but done at a later time, it is back filled to the previous 15 second timestamp and tagged with "backfilled_data". “Inconsistent_ delta_time” is encountered when the time between two collections is not the same for all nodes. Therefore, the aggregated value might be over or under inflated. “Negative_delta” is returned when an expected monotonically increasing value has decreased in value. “Inconsistent_old_data” is returned when one or more nodes do not have the latest data.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cd56dc70e28f4a3382f2f1b08a4fa584 + name: 'Cluster software version' + type: DEPENDENT + key: netapp.cluster.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'This returns the cluster version information. When the cluster has more than one node, the cluster version is equivalent to the lowest of generation, major, and minor versions on all nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.version.full + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.cluster.get + tags: + - tag: component + value: system + triggers: + - uuid: 4a2936f068ed486f8c8a2cf2cfa7440b + expression: 'last(/NetApp AFF A700 by HTTP/netapp.cluster.version,#1)<>last(/NetApp AFF A700 by HTTP/netapp.cluster.version,#2) and length(last(/NetApp AFF A700 by HTTP/netapp.cluster.version))>0' + name: 'NetApp AFF A700: Version has changed' + event_name: 'NetApp AFF A700: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The NetApp AFF A700 version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c9bf91e0f23c4961aed8ee5b32ff7767 + name: 'Get disks' + type: HTTP_AGENT + key: netapp.disks.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/storage/disks?fields=state,node.name' + tags: + - tag: component + value: raw + - uuid: 54163ca73a8c40188048ef5d89ec4927 + name: 'Get FRUs' + type: HTTP_AGENT + key: netapp.frus.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).records.forEach(function(chassis) { + chassis.frus.forEach(function(frus) { + frus.chassisId = chassis.id; + result.push(frus); + }) + }); + + return JSON.stringify(result); + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/cluster/chassis?fields=id,frus.id,frus.state' + tags: + - tag: component + value: raw + - uuid: c9b6ac2405af48c0899d1536662f752b + name: 'Get LUNs' + type: HTTP_AGENT + key: netapp.luns.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/storage/luns?fields=name,svm.name,space.size,space.used,status.state,status.container_state' + tags: + - tag: component + value: raw + - uuid: 5c36efc545ba4dcbb0be84da5e8088cc + name: 'Get nodes' + type: HTTP_AGENT + key: netapp.nodes.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/cluster/nodes?fields=*' + tags: + - tag: component + value: raw + - uuid: c677a3caf7a04710bc67b165b4152808 + name: 'Get ethernet ports' + type: HTTP_AGENT + key: netapp.ports.eth.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/network/ethernet/ports?fields=name,type,node.name,broadcast_domain.name,enabled,state,mtu,speed' + tags: + - tag: component + value: raw + - uuid: 2a6abfe87cc548bb81fcb217cde4f805 + name: 'Get FC ports' + type: HTTP_AGENT + key: netapp.ports.fc.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/network/fc/ports?fields=name,node.name,description,enabled,fabric.switch_port,state' + tags: + - tag: component + value: raw + - uuid: 7a813b7cb05d497fbf77bf11b01757dd + name: 'Get SVMs' + type: HTTP_AGENT + key: netapp.svms.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/svm/svms?fields=name,state,comment' + tags: + - tag: component + value: raw + - uuid: fa7fa8daaaa640d494af38614ba12c2e + name: 'Get volumes' + type: HTTP_AGENT + key: netapp.volumes.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/storage/volumes?fields=name,comment,state,type,svm.name,space.size,space.available,space.used,statistics' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: c5265605c1b5440999b7c0dbff8ce328 + name: 'Chassis discovery' + type: HTTP_AGENT + key: netapp.chassis.discovery + delay: 1h + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + item_prototypes: + - uuid: 7e6b1e1d5b484080b8f31929a78e44e7 + name: '{#ID}: State' + type: DEPENDENT + key: 'netapp.chassis.state[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The chassis state: ok, error.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.id==''{#ID}'')].state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.chassis.get + tags: + - tag: chassis + value: '{#ID}' + - tag: component + value: chassis + trigger_prototypes: + - uuid: 381eb797545d452a84d3dba43865bbed + expression: '(last(/NetApp AFF A700 by HTTP/netapp.chassis.state[{#ID}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.chassis.state[{#ID}],#2) and last(/NetApp AFF A700 by HTTP/netapp.chassis.state[{#ID}])="error")' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(last(/NetApp AFF A700 by HTTP/netapp.chassis.state[{#ID}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.chassis.state[{#ID}],#2) and last(/NetApp AFF A700 by HTTP/netapp.chassis.state[{#ID}])="ok")' + name: 'NetApp AFF A700: {#ID}: Chassis has something errors' + priority: AVERAGE + description: 'Something is wrong with the chassis.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/cluster/chassis?fields=id' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).records.forEach(function (chassis) { + result.push({"{#ID}": chassis.id}); + }); + + return JSON.stringify(result); + - uuid: e7c0955f88d342179b96f56e1f35afe2 + name: 'Disks discovery' + type: HTTP_AGENT + key: netapp.disks.discovery + delay: 1h + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + item_prototypes: + - uuid: f170a3d8e98048ce91bf10f1ebcd2611 + name: '{#DISKNAME}: State' + type: DEPENDENT + key: 'netapp.disk.state[{#NODENAME},{#DISKNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The state of the disk. Possible values: broken, copy, maintenance, partner, pending, present, reconstructing, removed, spare, unfail, zeroing' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#DISKNAME}''&&@.node.name==''{#NODENAME}'')].state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.disks.get + tags: + - tag: component + value: disk + - tag: disk + value: '{#DISKNAME}' + - tag: node + value: '{#NODENAME}' + trigger_prototypes: + - uuid: 72c1925f51c149eca27c7ddd1c81e44f + expression: '(last(/NetApp AFF A700 by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}])<>"present")' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(last(/NetApp AFF A700 by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}])="present")' + name: 'NetApp AFF A700: {#DISKNAME}: Disk of the Node "{#NODENAME}" has state different from "present"' + priority: AVERAGE + description: 'Something is wrong with the disk.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/storage/disks?fields=name,node.name' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).records.forEach(function (disk) { + result.push({"{#DISKNAME}": disk.name, "{#NODENAME}": disk.node.name}); + }); + + return JSON.stringify(result); + - uuid: 1ae3dea03a464096819de8a206b0780e + name: 'FRUs discovery' + type: DEPENDENT + key: netapp.frus.discovery + delay: '0' + item_prototypes: + - uuid: 643c9e0a8869464bacae0ff6161afe36 + name: '{#FRUID}: State' + type: DEPENDENT + key: 'netapp.chassis.fru.state[{#CHASSISID},{#FRUID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The FRU state: ok, error.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id==''{#FRUID}''&&@.chassisId==''{#CHASSISID}'')].state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.frus.get + tags: + - tag: chassis + value: '{#CHASSISID}' + - tag: component + value: fru + - tag: fru + value: '{#FRUID}' + trigger_prototypes: + - uuid: a17cb2ea98b6415d9e22e7f591d80adb + expression: '(last(/NetApp AFF A700 by HTTP/netapp.chassis.fru.state[{#CHASSISID},{#FRUID}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.chassis.fru.state[{#CHASSISID},{#FRUID}],#2) and last(/NetApp AFF A700 by HTTP/netapp.chassis.fru.state[{#CHASSISID},{#FRUID}])="error")' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(last(/NetApp AFF A700 by HTTP/netapp.chassis.fru.state[{#CHASSISID},{#FRUID}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.chassis.fru.state[{#CHASSISID},{#FRUID}],#2) and last(/NetApp AFF A700 by HTTP/netapp.chassis.fru.state[{#CHASSISID},{#FRUID}])="ok")' + name: 'NetApp AFF A700: {#FRUID}: FRU of the chassis "{#ID}" state is error' + priority: AVERAGE + description: 'Something is wrong with the FRU.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: netapp.frus.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).forEach(function (fru) { + result.push({"{#CHASSISID}": fru.chassisId, "{#FRUID}": fru.id}); + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: b75474be384f4d7fa0f625c4cebeef43 + name: 'LUNs discovery' + type: HTTP_AGENT + key: netapp.luns.discovery + delay: 1h + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + item_prototypes: + - uuid: 05dfdbc0cacb4f1fa458180e4b4fe35c + name: '{#LUNNAME}: Space size' + type: DEPENDENT + key: 'netapp.lun.space.size[{#SVMNAME},{#LUNNAME}]' + delay: '0' + units: B + description: 'The total provisioned size of the LUN.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.svm.name==''{#SVMNAME}''&&@.name==''{#LUNNAME}'')].space.size.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.luns.get + tags: + - tag: component + value: lun + - tag: lun + value: '{#LUNNAME}' + - tag: svm + value: '{#SVMNAME}' + - uuid: e12b5d04f3264ee2b602d459fb64c6ee + name: '{#LUNNAME}: Space used' + type: DEPENDENT + key: 'netapp.lun.space.used[{#SVMNAME},{#LUNNAME}]' + delay: '0' + units: B + description: 'The amount of space consumed by the main data stream of the LUN.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.svm.name==''{#SVMNAME}''&&@.name==''{#LUNNAME}'')].space.used.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.luns.get + tags: + - tag: component + value: lun + - tag: lun + value: '{#LUNNAME}' + - tag: svm + value: '{#SVMNAME}' + - uuid: 701fdb0345874ea39afc3362faa2f5a4 + name: '{#LUNNAME}: Container state' + type: DEPENDENT + key: 'netapp.lun.status.container_state[{#SVMNAME},{#LUNNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The state of the volume and aggregate that contain the LUN: online, aggregate_offline, volume_offline. LUNs are only available when their containers are available.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.svm.name==''{#SVMNAME}''&&@.name==''{#LUNNAME}'')].status.container_state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.luns.get + tags: + - tag: component + value: lun + - tag: lun + value: '{#LUNNAME}' + - tag: svm + value: '{#SVMNAME}' + trigger_prototypes: + - uuid: 7a4e0a681edd4db6b701b131fea0e5e4 + expression: '(last(/NetApp AFF A700 by HTTP/netapp.lun.status.container_state[{#SVMNAME},{#LUNNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.lun.status.container_state[{#SVMNAME},{#LUNNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.lun.status.container_state[{#SVMNAME},{#LUNNAME}])<>"online")' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(last(/NetApp AFF A700 by HTTP/netapp.lun.status.container_state[{#SVMNAME},{#LUNNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.lun.status.container_state[{#SVMNAME},{#LUNNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.lun.status.container_state[{#SVMNAME},{#LUNNAME}])="online")' + name: 'NetApp AFF A700: {#LUNNAME}: LUN of the SVM "{#SVMNAME}" has abnormal container state' + priority: AVERAGE + description: 'LUNs are only available when their containers are available.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: ae15b98b9de2472e8c56ddb2a13d7981 + name: '{#LUNNAME}: State' + type: DEPENDENT + key: 'netapp.lun.status.state[{#SVMNAME},{#LUNNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The state of the LUN. Normal states for a LUN are online and offline. Other states indicate errors. Possible values: foreign_lun_error, nvfail, offline, online, space_error.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.svm.name==''{#SVMNAME}''&&@.name==''{#LUNNAME}'')].status.state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.luns.get + tags: + - tag: component + value: lun + - tag: lun + value: '{#LUNNAME}' + - tag: svm + value: '{#SVMNAME}' + trigger_prototypes: + - uuid: 5b065dd69e654bee881ae60464a5c9fe + expression: '(last(/NetApp AFF A700 by HTTP/netapp.lun.status.state[{#SVMNAME},{#LUNNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.lun.status.state[{#SVMNAME},{#LUNNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.lun.status.state[{#SVMNAME},{#LUNNAME}])<>"online")' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(last(/NetApp AFF A700 by HTTP/netapp.lun.status.state[{#SVMNAME},{#LUNNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.lun.status.state[{#SVMNAME},{#LUNNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.lun.status.state[{#SVMNAME},{#LUNNAME}])="online")' + name: 'NetApp AFF A700: {#LUNNAME}: LUN of the SVM "{#SVMNAME}" has abnormal state' + priority: AVERAGE + description: 'Normal states for a LUN are online and offline. Other states indicate errors.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/storage/luns?fields=name,svm.name,space.size,space.used,status.state,status.container_state' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).records.forEach(function (lun) { + result.push({"{#LUNNAME}": lun.name, "{#SVMNAME}": lun.svm.name}); + }); + + return JSON.stringify(result); + - uuid: b914c4c37ba446eba7ecdc73a9692885 + name: 'Nodes discovery' + type: HTTP_AGENT + key: netapp.nodes.discovery + delay: 1h + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + item_prototypes: + - uuid: 23474d549a4c4e80b2e89c12a909dc0c + name: '{#NODENAME}: Software version' + type: DEPENDENT + key: 'netapp.node.version[{#NODENAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'This returns the cluster version information. When the cluster has more than one node, the cluster version is equivalent to the lowest of generation, major, and minor versions on all nodes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#NODENAME}'')].version.full.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.nodes.get + tags: + - tag: component + value: node + - tag: node + value: '{#NODENAME}' + trigger_prototypes: + - uuid: 34092a7ade784221ae50eb74a6fbcb5d + expression: 'last(/NetApp AFF A700 by HTTP/netapp.node.version[{#NODENAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.node.version[{#NODENAME}],#2) and length(last(/NetApp AFF A700 by HTTP/netapp.node.version[{#NODENAME}]))>0' + name: 'NetApp AFF A700: {#NODENAME}: Version has changed' + event_name: 'NetApp AFF A700: {#NODENAME}: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: '{#NODENAME} version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 416e2a3d707d4a5389c90566b588bf7f + name: '{#NODENAME}: Controller over temperature' + type: DEPENDENT + key: 'netapp.nodes.controller.over_temperature[{#NODENAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Specifies whether the hardware is currently operating outside of its recommended temperature range. The hardware shuts down if the temperature exceeds critical thresholds. Possible values: over, normal' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#NODENAME}'')].controller.over_temperature.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.nodes.get + tags: + - tag: component + value: node + - tag: node + value: '{#NODENAME}' + trigger_prototypes: + - uuid: 4dbb3a9da15f45989b8fa4217f3f25c3 + expression: '(last(/NetApp AFF A700 by HTTP/netapp.nodes.controller.over_temperature[{#NODENAME}])<>"normal")' + name: 'NetApp AFF A700: {#NODENAME}: Node has over temperature' + priority: AVERAGE + description: 'The hardware shuts down if the temperature exceeds critical thresholds(item''s value is "over").' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f554158202d347388304751c8bdf7515 + name: '{#NODENAME}: Location' + type: DEPENDENT + key: 'netapp.nodes.location[{#NODENAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The location of the node.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#NODENAME}'')].location.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.nodes.get + tags: + - tag: component + value: node + - tag: node + value: '{#NODENAME}' + - uuid: be634e1ba1ea454fbc6c7c8224909187 + name: '{#NODENAME}: Membership' + type: DEPENDENT + key: 'netapp.nodes.membership[{#NODENAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Possible values: + available - If a node is available, this means it is detected on the internal cluster network and can be added to the cluster. Nodes that have a membership of “available” are not returned when a GET request is called when the cluster exists. A query on the “membership” property for available must be provided to scan for nodes on the cluster network. Nodes that have a membership of “available” are returned automatically before a cluster is created. + joining - Joining nodes are in the process of being added to the cluster. The node may be progressing through the steps to become a member or might have failed. The job to add the node or create the cluster provides details on the current progress of the node. + member - Nodes that are members have successfully joined the cluster. + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#NODENAME}'')].membership.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.nodes.get + tags: + - tag: component + value: node + - tag: node + value: '{#NODENAME}' + - uuid: 5b3b6fab8fe54f3585c1a270caad2b3e + name: '{#NODENAME}: State' + type: DEPENDENT + key: 'netapp.nodes.state[{#NODENAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + State of the node: + up - Node is up and operational. + booting - Node is booting up. + down - Node has stopped or is dumping core. + taken_over - Node has been taken over by its HA partner and is not yet waiting for giveback. + waiting_for_giveback - Node has been taken over by its HA partner and is waiting for the HA partner to giveback disks. + degraded - Node has one or more critical services offline. + unknown - Node or its HA partner cannot be contacted and there is no information on the node's state. + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#NODENAME}'')].state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.nodes.get + tags: + - tag: component + value: node + - tag: node + value: '{#NODENAME}' + trigger_prototypes: + - uuid: db8ff0f2cd294cc5952992a0d476e798 + expression: '(last(/NetApp AFF A700 by HTTP/netapp.nodes.state[{#NODENAME}])<>"up")' + name: 'NetApp AFF A700: {#NODENAME}: Node state is abnormal' + priority: AVERAGE + description: | + The state of the node is different from up: + booting - Node is booting up. + down - Node has stopped or is dumping core. + taken_over - Node has been taken over by its HA partner and is not yet waiting for giveback. + waiting_for_giveback - Node has been taken over by its HA partner and is waiting for the HA partner to giveback disks. + degraded - Node has one or more critical services offline. + unknown - Node or its HA partner cannot be contacted and there is no information on the node's state. + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 56e0b6df4dbd456880c2481bec40b41e + name: '{#NODENAME}: Uptime' + type: DEPENDENT + key: 'netapp.nodes.uptime[{#NODENAME}]' + delay: '0' + units: s + description: 'The total time, in seconds, that the node has been up.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#NODENAME}'')].uptime.first()' + master_item: + key: netapp.nodes.get + tags: + - tag: component + value: node + - tag: node + value: '{#NODENAME}' + trigger_prototypes: + - uuid: 61357dfdb08846c4935f62ba894b159a + expression: 'last(/NetApp AFF A700 by HTTP/netapp.nodes.uptime[{#NODENAME}])<10m' + name: 'NetApp AFF A700: {#NODENAME}: Node has been restarted' + event_name: 'NetApp AFF A700: {#NODENAME}: Node has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/cluster/nodes?fields=name' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).records.forEach(function (node) { + result.push({"{#NODENAME}": node.name}); + }); + + return JSON.stringify(result); + - uuid: 98ed5727ede8490b8479a2194b2c847a + name: 'Ethernet ports discovery' + type: HTTP_AGENT + key: netapp.ports.ether.discovery + delay: 1h + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + item_prototypes: + - uuid: dda2086a96f844c7b5a8002549fe6bf5 + name: '{#ETHPORTNAME}: State' + type: DEPENDENT + key: 'netapp.port.eth.state[{#NODENAME},{#ETHPORTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The operational state of the port. Possible values: up, down.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#ETHPORTNAME}'')].state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.ports.eth.get + tags: + - tag: component + value: interfaces + - tag: interfaces + value: '{#ETHPORTNAME}' + - tag: node + value: '{#NODENAME}' + trigger_prototypes: + - uuid: 0fa3a54b559349d58b616720ee33cdf5 + expression: '(last(/NetApp AFF A700 by HTTP/netapp.port.eth.state[{#NODENAME},{#ETHPORTNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.port.eth.state[{#NODENAME},{#ETHPORTNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.port.eth.state[{#NODENAME},{#ETHPORTNAME}])="down")' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(last(/NetApp AFF A700 by HTTP/netapp.port.eth.state[{#NODENAME},{#ETHPORTNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.port.eth.state[{#NODENAME},{#ETHPORTNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.port.eth.state[{#NODENAME},{#ETHPORTNAME}])="up")' + name: 'NetApp AFF A700: {#ETHPORTNAME}: Ethernet port of the Node "{#NODENAME}" is down' + priority: AVERAGE + description: 'Something is wrong with the ethernet port.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/network/ethernet/ports?fields=name,state,node.name' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).records.forEach(function (port) { + result.push({"{#NODENAME}": port.node.name, "{#ETHPORTNAME}": port.name, "{#ETHPORTSTATE}": port.state}); + }); + + return JSON.stringify(result); + - uuid: bab3f935c2a04c89b0901f1c19d50558 + name: 'FC ports discovery' + type: HTTP_AGENT + key: netapp.ports.fc.discovery + delay: 1h + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + item_prototypes: + - uuid: b4358be015104524811f011ddf0fb1a1 + name: '{#FCPORTNAME}: Description' + type: DEPENDENT + key: 'netapp.port.fc.description[{#NODENAME},{#FCPORTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'A description of the FC port.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#FCPORTNAME}'')].description.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.ports.fc.get + tags: + - tag: component + value: fc-port + - tag: fc-port + value: '{#FCPORTNAME}' + - tag: node + value: '{#NODENAME}' + - uuid: e939576d865041dd8f4af24bb7811117 + name: '{#FCPORTNAME}: State' + type: DEPENDENT + key: 'netapp.port.fc.state[{#NODENAME},{#FCPORTNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + The operational state of the FC port. Possible values: + startup - The port is booting up. + link_not_connected - The port has finished initialization, but a link with the fabric is not established. + online - The port is initialized and a link with the fabric has been established. + link_disconnected - The link was present at one point on this port but is currently not established. + offlined_by_user - The port is administratively disabled. + offlined_by_system - The port is set to offline by the system. This happens when the port encounters too many errors. + node_offline - The state information for the port cannot be retrieved. The node is offline or inaccessible. + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#FCPORTNAME}'')].state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.ports.fc.get + tags: + - tag: component + value: fc-port + - tag: fc-port + value: '{#FCPORTNAME}' + - tag: node + value: '{#NODENAME}' + trigger_prototypes: + - uuid: a985c047b9834081bf21ae50836cef46 + expression: '(last(/NetApp AFF A700 by HTTP/netapp.port.fc.state[{#NODENAME},{#FCPORTNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.port.fc.state[{#NODENAME},{#FCPORTNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.port.fc.state[{#NODENAME},{#FCPORTNAME}])<>"online")' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(last(/NetApp AFF A700 by HTTP/netapp.port.fc.state[{#NODENAME},{#FCPORTNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.port.fc.state[{#NODENAME},{#FCPORTNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.port.fc.state[{#NODENAME},{#FCPORTNAME}])="online")' + name: 'NetApp AFF A700: {#FCPORTNAME}: FC port of the Node "{#NODENAME}" has state different from "online"' + priority: AVERAGE + description: 'Something is wrong with the FC port.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/network/fc/ports?fields=node.name,name,state' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).records.forEach(function (port) { + result.push({"{#NODENAME}": port.node.name, "{#FCPORTNAME}": port.name, "{#FCPORTSTATE}": port.state}); + }); + + return JSON.stringify(result); + - uuid: b2a5b50d7e3e4592ad9627ae85487554 + name: 'SVMs discovery' + type: HTTP_AGENT + key: netapp.svms.discovery + delay: 1h + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + item_prototypes: + - uuid: e7fab9c64c5348158418a02b1139eb68 + name: '{#SVMNAME}: Comment' + type: DEPENDENT + key: 'netapp.svm.comment[{#SVMNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The comment for the SVM.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#SVMNAME}'')].comment.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.svms.get + tags: + - tag: component + value: svm + - tag: svm + value: '{#SVMNAME}' + - uuid: 6534f78b5b6c4e61b8ee0ab05bcc6fa3 + name: '{#SVMNAME}: State' + type: DEPENDENT + key: 'netapp.svm.state[{#SVMNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'SVM state: starting, running, stopping, stopped, deleting.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#SVMNAME}'')].state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.svms.get + tags: + - tag: component + value: svm + - tag: svm + value: '{#SVMNAME}' + trigger_prototypes: + - uuid: 7c5695fd13a4489ca1c9772f1d3376a7 + expression: '(last(/NetApp AFF A700 by HTTP/netapp.svm.state[{#SVMNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.svm.state[{#SVMNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.svm.state[{#SVMNAME}])<>"running")' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(last(/NetApp AFF A700 by HTTP/netapp.svm.state[{#SVMNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.svm.state[{#SVMNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.svm.state[{#SVMNAME}])="running")' + name: 'NetApp AFF A700: {#SVMNAME}: SVM state is abnormal' + priority: AVERAGE + description: 'Something is wrong with the SVM.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/svm/svms?fields=name' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).records.forEach(function (svm) { + result.push({"{#SVMNAME}": svm.name}); + }); + + return JSON.stringify(result); + - uuid: 3d2001596c2642e7a6ee09d3ac7effb3 + name: 'Volumes discovery' + type: HTTP_AGENT + key: netapp.volumes.discovery + delay: 1h + authtype: BASIC + username: '{$NETAPP.USERNAME}' + password: '{$NETAPP.PASSWORD}' + item_prototypes: + - uuid: 7218a035d00b47faae1d47955de4f61f + name: '{#VOLUMENAME}: Comment' + type: DEPENDENT + key: 'netapp.volume.comment[{#VOLUMENAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'A comment for the volume.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].comment.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 63c67432c4dd48f3a9b2736b1d8eda60 + name: '{#VOLUMENAME}: Available size' + type: DEPENDENT + key: 'netapp.volume.space_available[{#VOLUMENAME}]' + delay: '0' + units: B + description: 'The available space, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].space.available.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: b17602cccbb84012b6cb8edd8bd80374 + name: '{#VOLUMENAME}: Space size' + type: DEPENDENT + key: 'netapp.volume.space_size[{#VOLUMENAME}]' + delay: '0' + units: B + description: 'Total provisioned size. The default size is equal to the minimum size of 20MB, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].space.size.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 0166239c8d4a4e42ba2f9b3b530143a8 + name: '{#VOLUMENAME}: Used size' + type: DEPENDENT + key: 'netapp.volume.space_used[{#VOLUMENAME}]' + delay: '0' + units: B + description: 'The virtual space used (includes volume reserves) before storage efficiency, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].space.used.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: fa2ae9b23fce43a49efa9c66369cce27 + name: '{#VOLUMENAME}: State' + type: DEPENDENT + key: 'netapp.volume.state[{#VOLUMENAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Volume state. A volume can only be brought online if it is offline. Taking a volume offline removes its junction path. The ''mixed'' state applies to FlexGroup volumes only and cannot be specified as a target state. An ''error'' state implies that the volume is not in a state to serve data.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].state.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + trigger_prototypes: + - uuid: b00f339ed1a9450ba096cabababcf76e + expression: '(last(/NetApp AFF A700 by HTTP/netapp.volume.state[{#VOLUMENAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.volume.state[{#VOLUMENAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.volume.state[{#VOLUMENAME}])<>"online")' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(last(/NetApp AFF A700 by HTTP/netapp.volume.state[{#VOLUMENAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.volume.state[{#VOLUMENAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.volume.state[{#VOLUMENAME}])="online")' + name: 'NetApp AFF A700: {#VOLUMENAME}: Volume state is abnormal' + priority: AVERAGE + description: 'A volume can only be brought online if it is offline. Taking a volume offline removes its junction path. The ''mixed'' state applies to FlexGroup volumes only and cannot be specified as a target state. An ''error'' state implies that the volume is not in a state to serve data.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: cb4cfb0ce84f405ebfbf2e4a64c12ca2 + name: '{#VOLUMENAME}: Volume IOPS, other rate' + type: DEPENDENT + key: 'netapp.volume.statistics.iops.other.rate[{#VOLUMENAME}]' + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for other I/O operations. Other I/O operations can be metadata operations, such as directory lookups and so on.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.iops_raw.other.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: iops + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: ae3142dae1294a16a4cdd0ef153f7cfb + name: '{#VOLUMENAME}: Volume IOPS, read rate' + type: DEPENDENT + key: 'netapp.volume.statistics.iops.read.rate[{#VOLUMENAME}]' + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.iops_raw.read.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: iops + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: b767b6185c744ddc8061bef36d16581d + name: '{#VOLUMENAME}: Volume IOPS, total rate' + type: DEPENDENT + key: 'netapp.volume.statistics.iops.total.rate[{#VOLUMENAME}]' + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric aggregated over all types of I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.iops_raw.total.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: iops + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: ffe8787aeaa2414e82a925ab0dbfb9aa + name: '{#VOLUMENAME}: Volume IOPS, write rate' + type: DEPENDENT + key: 'netapp.volume.statistics.iops.write.rate[{#VOLUMENAME}]' + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.iops_raw.write.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: iops + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 64a56ed125f249308d0f525aa0a3e56d + name: '{#VOLUMENAME}: Volume IOPS raw, other' + type: DEPENDENT + key: 'netapp.volume.statistics.iops_raw.other[{#VOLUMENAME}]' + delay: '0' + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for other I/O operations. Other I/O operations can be metadata operations, such as directory lookups and so on.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.iops_raw.other.first()' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: iops + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 01ee6910b06e42e294e2c80229cc960e + name: '{#VOLUMENAME}: Volume IOPS raw, read' + type: DEPENDENT + key: 'netapp.volume.statistics.iops_raw.read[{#VOLUMENAME}]' + delay: '0' + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.iops_raw.read.first()' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: iops + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 5964ea1edbb74fa4a7c04a79ef776ff3 + name: '{#VOLUMENAME}: Volume IOPS raw, total' + type: DEPENDENT + key: 'netapp.volume.statistics.iops_raw.total[{#VOLUMENAME}]' + delay: '0' + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric aggregated over all types of I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.iops_raw.total.first()' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: iops + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 77329ceefeef490e98f7d23689765c87 + name: '{#VOLUMENAME}: Volume IOPS raw, write' + type: DEPENDENT + key: 'netapp.volume.statistics.iops_raw.write[{#VOLUMENAME}]' + delay: '0' + units: '!iops' + description: 'The number of I/O operations observed at the storage object. Performance metric for write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.iops_raw.write.first()' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: iops + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: fc21c2c1ff87454ea9fc59af4d0d4693 + name: '{#VOLUMENAME}: Volume latency, other' + type: CALCULATED + key: 'netapp.volume.statistics.latency.other[{#VOLUMENAME}]' + value_type: FLOAT + units: '!ms' + params: | + (last(//netapp.volume.statistics.latency_raw.other[{#VOLUMENAME}]) - last(//netapp.volume.statistics.latency_raw.other[{#VOLUMENAME}],#2)) / + (last(//netapp.volume.statistics.iops_raw.other[{#VOLUMENAME}]) - last(//netapp.volume.statistics.iops_raw.other[{#VOLUMENAME}],#2) + + (last(//netapp.volume.statistics.iops_raw.other[{#VOLUMENAME}]) - last(//netapp.volume.statistics.iops_raw.other[{#VOLUMENAME}],#2) = 0) ) * 0.001 + description: 'The average latency per I/O operation in milliseconds observed at the storage object. Performance metric for other I/O operations. Other I/O operations can be metadata operations, such as directory lookups and so on.' + tags: + - tag: component + value: latency + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 3e80e6c55bd0497f87d4f4e71f11f0aa + name: '{#VOLUMENAME}: Volume latency, read' + type: CALCULATED + key: 'netapp.volume.statistics.latency.read[{#VOLUMENAME}]' + value_type: FLOAT + units: '!ms' + params: | + (last(//netapp.volume.statistics.latency_raw.read[{#VOLUMENAME}]) - last(//netapp.volume.statistics.latency_raw.read[{#VOLUMENAME}],#2)) / + (last(//netapp.volume.statistics.iops_raw.read[{#VOLUMENAME}]) - last(//netapp.volume.statistics.iops_raw.read[{#VOLUMENAME}],#2) + + (last(//netapp.volume.statistics.iops_raw.read[{#VOLUMENAME}]) - last(//netapp.volume.statistics.iops_raw.read[{#VOLUMENAME}],#2) = 0)) * 0.001 + description: 'The average latency per I/O operation in milliseconds observed at the storage object. Performance metric for read I/O operations.' + tags: + - tag: component + value: latency + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: ff804a090b064bfeb60183d7d7d2abe1 + name: '{#VOLUMENAME}: Volume latency, total' + type: CALCULATED + key: 'netapp.volume.statistics.latency.total[{#VOLUMENAME}]' + value_type: FLOAT + units: '!ms' + params: | + (last(//netapp.volume.statistics.latency_raw.total[{#VOLUMENAME}]) - last(//netapp.volume.statistics.latency_raw.total[{#VOLUMENAME}],#2)) / + (last(//netapp.volume.statistics.iops_raw.total[{#VOLUMENAME}]) - last(//netapp.volume.statistics.iops_raw.total[{#VOLUMENAME}],#2) + + (last(//netapp.volume.statistics.iops_raw.total[{#VOLUMENAME}]) - last(//netapp.volume.statistics.iops_raw.total[{#VOLUMENAME}],#2) = 0) ) * 0.001 + description: 'The average latency per I/O operation in milliseconds observed at the storage object. Performance metric aggregated over all types of I/O operations.' + tags: + - tag: component + value: latency + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: eb2b3a3c4807415a8a88d11b19ae7fe6 + name: '{#VOLUMENAME}: Volume latency, write' + type: CALCULATED + key: 'netapp.volume.statistics.latency.write[{#VOLUMENAME}]' + value_type: FLOAT + units: '!ms' + params: | + (last(//netapp.volume.statistics.latency_raw.write[{#VOLUMENAME}]) - last(//netapp.volume.statistics.latency_raw.write[{#VOLUMENAME}],#2)) / + (last(//netapp.volume.statistics.iops_raw.write[{#VOLUMENAME}]) - last(//netapp.volume.statistics.iops_raw.write[{#VOLUMENAME}],#2) + + (last(//netapp.volume.statistics.iops_raw.write[{#VOLUMENAME}]) - last(//netapp.volume.statistics.iops_raw.write[{#VOLUMENAME}],#2) = 0) ) * 0.001 + description: 'The average latency per I/O operation in milliseconds observed at the storage object. Performance metric for write I/O operations.' + tags: + - tag: component + value: latency + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 4fdf1c23cad2453aa00710289fde1460 + name: '{#VOLUMENAME}: Volume latency raw, other' + type: DEPENDENT + key: 'netapp.volume.statistics.latency_raw.other[{#VOLUMENAME}]' + delay: '0' + units: '!mcs' + description: 'The raw latency in microseconds observed at the storage object. Performance metric for other I/O operations. Other I/O operations can be metadata operations, such as directory lookups and so on.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.latency_raw.other.first()' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: latency + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 0923b8b2933e4b309a4b751eea06353a + name: '{#VOLUMENAME}: Volume latency raw, read' + type: DEPENDENT + key: 'netapp.volume.statistics.latency_raw.read[{#VOLUMENAME}]' + delay: '0' + units: '!mcs' + description: 'The raw latency in microseconds observed at the storage object. Performance metric for read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.latency_raw.read.first()' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: latency + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 48479110a92b4b3094e72882ec9d4812 + name: '{#VOLUMENAME}: Volume latency raw, total' + type: DEPENDENT + key: 'netapp.volume.statistics.latency_raw.total[{#VOLUMENAME}]' + delay: '0' + units: '!mcs' + description: 'The raw latency in microseconds observed at the storage object. Performance metric aggregated over all types of I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.latency_raw.total.first()' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: latency + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: a6c653c4a6164de9971b22e7a28c40d9 + name: '{#VOLUMENAME}: Volume latency raw, write' + type: DEPENDENT + key: 'netapp.volume.statistics.latency_raw.write[{#VOLUMENAME}]' + delay: '0' + units: '!mcs' + description: 'The raw latency in microseconds observed at the storage object. Performance metric for write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.latency_raw.write.first()' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: latency + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: f23b393e033a4285b7f5b8742b0be669 + name: '{#VOLUMENAME}: Volume throughput, other rate' + type: DEPENDENT + key: 'netapp.volume.statistics.throughput.other.rate[{#VOLUMENAME}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Throughput bytes observed at the storage object. Performance metric for other I/O operations. Other I/O operations can be metadata operations, such as directory lookups and so on.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.throughput_raw.other.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: throughput + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: fcbef2bcc3004ba6b1f122f00419fc2c + name: '{#VOLUMENAME}: Volume throughput, read rate' + type: DEPENDENT + key: 'netapp.volume.statistics.throughput.read.rate[{#VOLUMENAME}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Throughput bytes observed at the storage object. Performance metric for read I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.throughput_raw.read.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: throughput + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 9218d4e861244353bc779fc2dfd561b9 + name: '{#VOLUMENAME}: Volume throughput, total rate' + type: DEPENDENT + key: 'netapp.volume.statistics.throughput.total.rate[{#VOLUMENAME}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Throughput bytes observed at the storage object. Performance metric aggregated over all types of I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.throughput_raw.total.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: throughput + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 9d1cf308b4de4b88a632eee0b5a90267 + name: '{#VOLUMENAME}: Volume throughput, write rate' + type: DEPENDENT + key: 'netapp.volume.statistics.throughput.write.rate[{#VOLUMENAME}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Throughput bytes observed at the storage object. Performance metric for write I/O operations.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].statistics.throughput_raw.write.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: throughput + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 1b48c3ecd33f4acd88b57f5c76c2892c + name: '{#VOLUMENAME}: SVM name' + type: DEPENDENT + key: 'netapp.volume.svm_name[{#VOLUMENAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The volume belongs this SVM.' + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].svm.name.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + - uuid: 540405e59a93446cbbe71b05206a50be + name: '{#VOLUMENAME}: Type' + type: DEPENDENT + key: 'netapp.volume.type[{#VOLUMENAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + Type of the volume. + rw - read-write volume. + dp - data-protection volume. + ls - load-sharing dp volume. + preprocessing: + - type: JSONPATH + parameters: + - '$.records[?(@.name==''{#VOLUMENAME}'')].type.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: netapp.volumes.get + tags: + - tag: component + value: volume + - tag: volume + value: '{#VOLUMENAME}' + graph_prototypes: + - uuid: 5f9bc8697c9c4e22ab55781366fbb9c4 + name: '{#VOLUMENAME}: Volume latency' + graph_items: + - color: 199C0D + item: + host: 'NetApp AFF A700 by HTTP' + key: 'netapp.volume.statistics.latency.other[{#VOLUMENAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'NetApp AFF A700 by HTTP' + key: 'netapp.volume.statistics.latency.read[{#VOLUMENAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'NetApp AFF A700 by HTTP' + key: 'netapp.volume.statistics.latency.write[{#VOLUMENAME}]' + - sortorder: '3' + color: F7941D + item: + host: 'NetApp AFF A700 by HTTP' + key: 'netapp.volume.statistics.latency.total[{#VOLUMENAME}]' + - uuid: 2d38bfca52f14cd1a16eafef531c2a05 + name: '{#VOLUMENAME}: Volume size' + graph_items: + - color: 199C0D + item: + host: 'NetApp AFF A700 by HTTP' + key: 'netapp.volume.space_used[{#VOLUMENAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'NetApp AFF A700 by HTTP' + key: 'netapp.volume.space_available[{#VOLUMENAME}]' + timeout: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + url: '{$NETAPP.URL}/api/storage/volumes?fields=name' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).records.forEach(function (volume) { + result.push({"{#VOLUMENAME}": volume.name}); + }); + + return JSON.stringify(result); + tags: + - tag: class + value: network + - tag: target + value: netapp + - tag: target + value: netapp-aff-a700 + macros: + - macro: '{$NETAPP.HTTP.AGENT.TIMEOUT}' + value: 5s + description: 'The HTTP agent timeout to wait for a response from AFF700.' + - macro: '{$NETAPP.PASSWORD}' + description: 'AFF700 user password.' + - macro: '{$NETAPP.URL}' + description: 'AFF700 cluster URL address.' + - macro: '{$NETAPP.USERNAME}' + description: 'AFF700 user name.' + graphs: + - uuid: 840b4c30198c48e1b161d1b2deee26c8 + name: 'NetApp AFF A700: Cluster IOPS' + graph_items: + - color: 199C0D + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.iops.other.rate + - sortorder: '1' + color: F63100 + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.iops.read.rate + - sortorder: '2' + color: 00611C + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.iops.write.rate + - sortorder: '3' + color: F7941D + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.iops.total.rate + - uuid: 34c781f1f9e944ca8010118483470ad9 + name: 'NetApp AFF A700: Cluster latency' + graph_items: + - color: 199C0D + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.latency.other + - sortorder: '1' + color: F63100 + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.latency.read + - sortorder: '2' + color: 00611C + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.latency.write + - sortorder: '3' + color: F7941D + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.latency.total + - uuid: 8754fe099580424b84a4b51031a09fa1 + name: 'NetApp AFF A700: Cluster throughput' + graph_items: + - color: 199C0D + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.throughput.other.rate + - sortorder: '1' + color: F63100 + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.throughput.read.rate + - sortorder: '2' + color: 00611C + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.throughput.write.rate + - sortorder: '3' + color: F7941D + item: + host: 'NetApp AFF A700 by HTTP' + key: netapp.cluster.statistics.throughput.total.rate diff --git a/NetApp_FAS3220_by_SNMP.yaml b/NetApp_FAS3220_by_SNMP.yaml new file mode 100644 index 0000000..97d0ffd --- /dev/null +++ b/NetApp_FAS3220_by_SNMP.yaml @@ -0,0 +1,1674 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 7c2cb727f85b492d88cd56e17127c64d + name: Templates/SAN + templates: + - uuid: e118ab11c1ec4f9cbe21dfce1441c0f6 + template: 'NetApp FAS3220 by SNMP' + name: 'NetApp FAS3220 by SNMP' + description: | + The template to monitor SAN NetApp FAS3220 cluster by Zabbix SNMP agent. + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + NETAPP-MIB + IF-MIB + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/416694-discussion-thread-for-official-zabbix-template-netapp-fas3220 + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/SAN + items: + - uuid: 4239eba959f14e0ebc44a0fa7d124042 + name: 'Failed disks count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.6.4.7.0]' + key: 'fas3220.disk[diskFailedCount]' + description: 'The number of disks that are currently broken.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: storage + - uuid: 980e2c347d254c4d88d918b2171679bb + name: 'Failed disks message' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.6.4.10.0]' + key: 'fas3220.disk[diskFailedMessage]' + value_type: TEXT + trends: '0' + description: 'If diskFailedCount is non-zero, this is a string describing the failed disk or disks. Each failed disk is described.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: storage + - uuid: 7b6d8c8272714343bd420a32c6763c9e + name: 'Product firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.1.6.0]' + key: 'fas3220.inventory[productFirmwareVersion]' + value_type: CHAR + trends: '0' + description: 'Version string for the firmware running on this platform.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 3f0418935b9d40e98d129f280ba5ba6b + name: 'Product version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.1.2.0]' + key: 'fas3220.inventory[productVersion]' + value_type: CHAR + trends: '0' + description: | + MIB: NETAPP-MIB + Version string for the software running on this platform. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: system + - uuid: 62c6bb1b70ee4ece865b562e298cafb0 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 826eb817329249f59b7989c92ca62d99 + expression: 'max(/NetApp FAS3220 by SNMP/icmpping,#3)=0' + name: 'NetApp FAS3220: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: f7c934ef77d04c00bdec19f8e3950d85 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4fb4b0022ca3433c8da1402f1d996760 + expression: 'min(/NetApp FAS3220 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/NetApp FAS3220 by SNMP/icmppingloss,5m)<100' + name: 'NetApp FAS3220: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'NetApp FAS3220: Unavailable by ICMP ping' + expression: 'max(/NetApp FAS3220 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 72f8c27991b7440ba186f6eb037605cf + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: bb13f4d369294c0d83f8e6d888cbb062 + expression: 'avg(/NetApp FAS3220 by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'NetApp FAS3220: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'NetApp FAS3220: High ICMP ping loss' + expression: 'min(/NetApp FAS3220 by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/NetApp FAS3220 by SNMP/icmppingloss,5m)<100' + - name: 'NetApp FAS3220: Unavailable by ICMP ping' + expression: 'max(/NetApp FAS3220 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4380826947fc4df6a341fe074f42da6a + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 045800cfeaf6448ab9a9e97f8b5172c1 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c12c6668d9564855b227dee42a9d86f8 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 76483f37faf8485b922640a6ef8bb672 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f46b736cdb7f44fcacf33d272d905db8 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 65c5b2a3742c4c6d8a04c63bb96b46c6 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 5266fcf7c9db457885c219385cfd5025 + expression: 'last(/NetApp FAS3220 by SNMP/system.name,#1)<>last(/NetApp FAS3220 by SNMP/system.name,#2) and length(last(/NetApp FAS3220 by SNMP/system.name))>0' + name: 'NetApp FAS3220: System name has changed' + event_name: 'NetApp FAS3220: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 564b458cee7a4a2bb2b4f4777bead32d + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 2d9d7b390c774a188a07dbb5bb4a583e + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: fff713712c44477aa081445d9962c002 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e778b1ae80174f7aa82085b4882e1160 + expression: 'max(/NetApp FAS3220 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'NetApp FAS3220: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'NetApp FAS3220: Unavailable by ICMP ping' + expression: 'max(/NetApp FAS3220 by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c999a3f338934982aa4359d9f0a8df30 + name: 'Cluster metrics discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#NODE.NAME},1.3.6.1.4.1.789.1.25.2.1.1]' + key: fas3220.cluster.discovery + delay: 1h + description: 'Discovery of Cluster metrics per node' + item_prototypes: + - uuid: 2363873641874c50b70bf170e05ea10e + name: 'Node {#NODE.NAME}: Failed FAN count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.19.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeEnvFailedFanCount, "{#NODE.NAME}"]' + description: 'Count of the number of chassis fans that are not operating within the recommended RPM range.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: ac1d666db8c0495c860a59d98caeb4ab + name: 'Node {#NODE.NAME}: Failed FAN message' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.20.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeEnvFailedFanMessage, "{#NODE.NAME}"]' + value_type: TEXT + trends: '0' + description: 'Text message describing current condition of chassis fans. This is useful only if envFailedFanCount is not zero.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: ad74f96ff33249e1937c2702c4bbce94 + name: 'Node {#NODE.NAME}: Degraded power supplies count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.21.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeEnvFailedPowerSupplyCount, "{#NODE.NAME}"]' + description: 'Count of the number of power supplies that are in degraded mode.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 343e02ff8f9f417292a2bb548db355ee + name: 'Node {#NODE.NAME}: Degraded power supplies message' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.22.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeEnvFailedPowerSupplyMessage, "{#NODE.NAME}"]' + value_type: TEXT + trends: '0' + description: 'Text message describing the state of any power supplies that are currently degraded. This is useful only if envFailedPowerSupplyCount is not zero.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 73853db2e6924c8395aac1655fab24b4 + name: 'Node {#NODE.NAME}: Over-temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.18.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeEnvOverTemperature, "{#NODE.NAME}"]' + description: 'An indication of whether the hardware is currently operating outside of its recommended temperature range. The hardware will shutdown if the temperature exceeds critical thresholds.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: e03547e4ede74580909ed57c7f53dac1 + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.cluster[nodeEnvOverTemperature, "{#NODE.NAME}"])=2' + name: 'NetApp FAS3220: Node {#NODE.NAME}: Temperature is over than recommended' + priority: HIGH + description: 'The hardware will shutdown if the temperature exceeds critical thresholds.' + tags: + - tag: scope + value: availability + - uuid: c6663dc780f14fd4bb01a108d0d2c6b0 + name: 'Node {#NODE.NAME}: Health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.11.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeHealth, "{#NODE.NAME}"]' + description: 'Whether or not the node can communicate with the cluster.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: health + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 0c331366ac9d4398bfc815c3cb241e7c + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.cluster[nodeHealth, "{#NODE.NAME}"])=0' + name: 'NetApp FAS3220: Node {#NODE.NAME}: Node can not communicate with the cluster' + priority: HIGH + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b8c922cbd60e4432822268c2a642fd95 + name: 'Node {#NODE.NAME}: Location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.3.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeLocation, "{#NODE.NAME}"]' + value_type: CHAR + trends: '0' + description: 'Node Location. Same as sysLocation for a specific node.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: eae21d81e97a47dfa80701fb343294b4 + name: 'Node {#NODE.NAME}: Model' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.4.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeModel, "{#NODE.NAME}"]' + value_type: CHAR + trends: '0' + description: 'Node Model. Same as productModel for a specific node.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: cd00e7ff616f4b69a94af9e9494b060e + name: 'Node {#NODE.NAME}: NVRAM battery status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.17.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeNvramBatteryStatus, "{#NODE.NAME}"]' + description: | + An indication of the current status of the NVRAM battery or batteries. + Batteries which are fully or partially discharged may not fully protect the system during a crash. The end-of-life status values are based on the manufacturer's recommended life for the batteries. + Possible values: + ok(1), + partiallyDischarged(2), + fullyDischarged(3), + notPresent(4), + nearEndOfLife(5), + atEndOfLife(6), + unknown(7), + overCharged(8), + fullyCharged(9). + valuemap: + name: 'FAS3220 NVRAM battery status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 567a28dd5b364aea84a43438aee24c5c + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.cluster[nodeNvramBatteryStatus, "{#NODE.NAME}"])<>1' + name: 'NetApp FAS3220: Node {#NODE.NAME}: NVRAM battery status is not OK' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 4fc5f0cdd87147d59fe8d073e361c2d8 + name: 'Node {#NODE.NAME}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.5.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeSerialNumber, "{#NODE.NAME}"]' + value_type: CHAR + trends: '0' + description: 'Node Serial Number. Same as productSerialNum for a specific node.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 8ed05a8e28bd4b87b2b5981b45ec9fbe + name: 'Node {#NODE.NAME}: Uptime' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.25.2.1.7.{#SNMPINDEX}]' + key: 'fas3220.cluster[nodeUptime, "{#NODE.NAME}"]' + units: s + description: 'Node uptime. Same as sysUpTime for a specific node.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 6040422dc0b34863a90af558d72956ee + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.cluster[nodeUptime, "{#NODE.NAME}"])<10m' + name: 'NetApp FAS3220: Node {#NODE.NAME}: Host has been restarted' + event_name: 'NetApp FAS3220: Node {#NODE.NAME}: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + trigger_prototypes: + - uuid: 64a737bc63b1463eb533d2a187c6b58a + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.cluster[nodeEnvFailedPowerSupplyCount, "{#NODE.NAME}"])>0 and last(/NetApp FAS3220 by SNMP/fas3220.cluster[nodeEnvFailedPowerSupplyMessage, "{#NODE.NAME}"])=last(/NetApp FAS3220 by SNMP/fas3220.cluster[nodeEnvFailedPowerSupplyMessage, "{#NODE.NAME}"])' + name: 'NetApp FAS3220: Node {#NODE.NAME}: Degraded power supplies count is more than zero' + priority: AVERAGE + description: '{{ITEM.VALUE2}.regsub("(.*)", \1)}' + tags: + - tag: scope + value: availability + - uuid: 36b7326a738e41b7be3e0a478bc9f858 + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.cluster[nodeEnvFailedFanCount, "{#NODE.NAME}"])>0 and last(/NetApp FAS3220 by SNMP/fas3220.cluster[nodeEnvFailedFanMessage, "{#NODE.NAME}"])=last(/NetApp FAS3220 by SNMP/fas3220.cluster[nodeEnvFailedFanMessage, "{#NODE.NAME}"])' + name: 'NetApp FAS3220: Node {#NODE.NAME}: Failed FAN count is over than zero' + priority: HIGH + description: '{{ITEM.VALUE2}.regsub("(.*)", \1)}' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e0b97a8434f94d0ba14023cc434a8926 + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#NODE.NAME},1.3.6.1.4.1.789.1.2.1.14.1.1]' + key: fas3220.cpu.discovery + delay: 1h + description: 'Discovery of CPU metrics per node' + item_prototypes: + - uuid: 0cf9871cac314b0fb92710144acf3f66 + name: 'Node {#NODE.NAME}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.2.1.14.1.4.{#SNMPINDEX}]' + key: 'fas3220.cpu[cDOTCpuBusyTimePerCent, "{#NODE.NAME}"]' + value_type: FLOAT + units: '%' + description: 'The average, over the last minute, of the percentage of time that this processor was not idle.' + tags: + - tag: component + value: cpu + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: adb98d2d2f13435bbe1897208bb86989 + expression: 'min(/NetApp FAS3220 by SNMP/fas3220.cpu[cDOTCpuBusyTimePerCent, "{#NODE.NAME}"],5m)>{$CPU.UTIL.CRIT}' + name: 'NetApp FAS3220: Node {#NODE.NAME}: High CPU utilization' + event_name: 'NetApp FAS3220: Node {#NODE.NAME}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 5e87cb453b3f41138d75783eabeeb17b + name: 'Node {#NODE.NAME}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NetApp FAS3220 by SNMP' + key: 'fas3220.cpu[cDOTCpuBusyTimePerCent, "{#NODE.NAME}"]' + - uuid: b6dcacd213ce436aabb6c33d236fc077 + name: 'Filesystems discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#FSNAME},1.3.6.1.4.1.789.1.5.4.1.2,{#FSTYPE},1.3.6.1.4.1.789.1.5.4.1.23,{#VSERVER},1.3.6.1.4.1.789.1.5.4.1.34]' + key: fas3220.fs.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$FAS3220.FS.NAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$FAS3220.FS.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$FAS3220.FS.TYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$FAS3220.FS.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Filesystems discovery with filter.' + item_prototypes: + - uuid: 4f77d54089e34da8bf5b50033e3e2ca3 + name: '{#VSERVER}{#FSNAME}: Total space available' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.5.4.1.31.{#SNMPINDEX}]' + key: 'fas3220.fs[df64AvailKBytes, "{#VSERVER}{#FSNAME}"]' + units: B + description: 'The total disk space that is free for use on {#FSNAME}.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: filesystem + - tag: filesystem + value: '{#FSNAME}' + - tag: vserver + value: '{#VSERVER}' + trigger_prototypes: + - uuid: 6ab014a44ad84966a97125c478b10789 + expression: 'min(/NetApp FAS3220 by SNMP/fas3220.fs[df64AvailKBytes, "{#VSERVER}{#FSNAME}"],{$FAS3220.FS.TIME:"{#FSNAME}"})<{$FAS3220.FS.AVAIL.MIN.CRIT:"{#FSNAME}"} and {$FAS3220.FS.USE.PCT:"{#FSNAME}"}=0' + name: 'NetApp FAS3220: {#VSERVER}{#FSNAME}: Disk space is too low' + event_name: 'NetApp FAS3220: {#VSERVER}{#FSNAME}: Disk space is too low (below {$FAS3220.FS.AVAIL.MIN.CRIT:"{#FSNAME}"} for {$FAS3220.FS.TIME:"{#FSNAME}"})' + priority: HIGH + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: be517380be12421c867ed48e16fe5c4e + name: '{#VSERVER}{#FSNAME}: Total space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.5.4.1.29.{#SNMPINDEX}]' + key: 'fas3220.fs[df64TotalKBytes, "{#VSERVER}{#FSNAME}"]' + units: B + description: 'The total capacity in bytes for {#FSNAME}.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: filesystem + - tag: filesystem + value: '{#FSNAME}' + - tag: vserver + value: '{#VSERVER}' + - uuid: d4989438446a4d228b83b0b22c11af90 + name: '{#VSERVER}{#FSNAME}: Total space used' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.5.4.1.30.{#SNMPINDEX}]' + key: 'fas3220.fs[df64UsedKBytes, "{#VSERVER}{#FSNAME}"]' + units: B + description: 'The total disk space that is in use on {#FSNAME}.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: filesystem + - tag: filesystem + value: '{#FSNAME}' + - tag: vserver + value: '{#VSERVER}' + - uuid: 74868589894f468fa5daada73c042aca + name: '{#VSERVER}{#FSNAME}: Saved by compression percents' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.5.4.1.38.{#SNMPINDEX}]' + key: 'fas3220.fs[dfCompressSavedPercent, "{#VSERVER}{#FSNAME}"]' + value_type: FLOAT + units: '%' + description: 'Provides the percentage of compression savings in a volume, which is ((compr_saved/used)) * 10(compr_saved + 0). This is only returned for volumes.' + tags: + - tag: component + value: filesystem + - tag: filesystem + value: '{#FSNAME}' + - tag: vserver + value: '{#VSERVER}' + - uuid: 6fd01f706f8f4088b91cd6aad58a65ce + name: '{#VSERVER}{#FSNAME}: Saved by deduplication percents' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.5.4.1.40.{#SNMPINDEX}]' + key: 'fas3220.fs[dfDedupeSavedPercent, "{#VSERVER}{#FSNAME}"]' + value_type: FLOAT + units: '%' + description: 'Provides the percentage of deduplication savings in a volume, which is ((dedup_saved/(dedup_saved + used)) * 100). This is only returned for volumes.' + tags: + - tag: component + value: filesystem + - tag: filesystem + value: '{#FSNAME}' + - tag: vserver + value: '{#VSERVER}' + - uuid: b74fafe10c844feda4e72346b2fe88f6 + name: '{#VSERVER}{#FSNAME}: Used space percents' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.5.4.1.6.{#SNMPINDEX}]' + key: 'fas3220.fs[dfPerCentKBytesCapacity, "{#VSERVER}{#FSNAME}"]' + units: '%' + description: 'The percentage of disk space currently in use on {#FSNAME}.' + tags: + - tag: component + value: filesystem + - tag: filesystem + value: '{#FSNAME}' + - tag: vserver + value: '{#VSERVER}' + trigger_prototypes: + - uuid: 712d9096c8064ef19005c4989794db45 + expression: 'max(/NetApp FAS3220 by SNMP/fas3220.fs[dfPerCentKBytesCapacity, "{#VSERVER}{#FSNAME}"],{$FAS3220.FS.TIME:"{#FSNAME}"})>{$FAS3220.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and {$FAS3220.FS.USE.PCT:"{#FSNAME}"}=1' + name: 'NetApp FAS3220: {#VSERVER}{#FSNAME}: Disk space is too low' + event_name: 'NetApp FAS3220: {#VSERVER}{#FSNAME}: Disk space is too low (used over {$FAS3220.FS.PUSED.MAX.CRIT:"{#FSNAME}"}% for {$FAS3220.FS.TIME:"{#FSNAME}"})' + priority: HIGH + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 938f484a19454b8d9c80be5dbc1887df + name: '{#VSERVER}{#FSNAME}: Free space' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'NetApp FAS3220 by SNMP' + key: 'fas3220.fs[df64UsedKBytes, "{#VSERVER}{#FSNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'NetApp FAS3220 by SNMP' + key: 'fas3220.fs[df64UsedKBytes, "{#VSERVER}{#FSNAME}"]' + overrides: + - name: 'Do not discover aggregate metrics' + step: '1' + filter: + conditions: + - macro: '{#FSTYPE}' + value: 3|4 + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Saved + discover: NO_DISCOVER + - uuid: e06a66c956164722a289cb8832341451 + name: 'HA discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#NODE.NAME},1.3.6.1.4.1.789.1.21.2.1.1,{#PARTNER.NAME},1.3.6.1.4.1.789.1.21.2.1.8]' + key: fas3220.ha.discovery + delay: 1h + description: 'Discovery of high availability metrics per node' + item_prototypes: + - uuid: a6d4f2976de841108b53be013376549b + name: 'Node {#NODE.NAME}: Cannot takeover cause' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.21.2.1.5.{#SNMPINDEX}]' + key: 'fas3220.ha[haCannotTakeoverCause, "{#NODE.NAME}"]' + description: | + The reason node cannot take over it's HA partner {#PARTNER.NAME}. + Possible states: + ok(1), + unknownReason(2), + disabledByOperator(3), + interconnectOffline(4), + disabledByPartner(5), + takeoverFailed(6), + mailboxIsInDegradedState(7), + partnermailboxIsInUninitialisedState(8), + mailboxVersionMismatch(9), + nvramSizeMismatch(10), + kernelVersionMismatch(11), + partnerIsInBootingStage(12), + diskshelfIsTooHot(13), + partnerIsPerformingRevert(14), + nodeIsPerformingRevert(15), + sametimePartnerIsAlsoTryingToTakeUsOver(16), + alreadyInTakenoverMode(17), + nvramLogUnsynchronized(18), + stateofBackupMailboxIsDoubtful(19). + valuemap: + name: 'FAS3220 HA cannot takeover cause' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: ha + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 798e093f3c9941e6a2d7edc24dd22835 + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.ha[haCannotTakeoverCause, "{#NODE.NAME}"])<>1' + name: 'NetApp FAS3220: Node {#NODE.NAME}: Node cannot takeover it''s HA partner {#PARTNER.NAME}. Reason: {ITEM.VALUE}' + priority: HIGH + description: | + Possible reasons: + unknownReason(2), + disabledByOperator(3), + interconnectOffline(4), + disabledByPartner(5), + takeoverFailed(6), + mailboxIsInDegradedState(7), + partnermailboxIsInUninitialisedState(8), + mailboxVersionMismatch(9), + nvramSizeMismatch(10), + kernelVersionMismatch(11), + partnerIsInBootingStage(12), + diskshelfIsTooHot(13), + partnerIsPerformingRevert(14), + nodeIsPerformingRevert(15), + sametimePartnerIsAlsoTryingToTakeUsOver(16), + alreadyInTakenoverMode(17), + nvramLogUnsynchronized(18), + stateofBackupMailboxIsDoubtful(19). + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 70624f45000443999b416d5806ead949 + name: 'Node {#NODE.NAME}: HA settings' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.21.2.1.3.{#SNMPINDEX}]' + key: 'fas3220.ha[haSettings, "{#NODE.NAME}"]' + description: 'High Availability configuration settings. The value notConfigured(1) indicates that the HA is not licensed. The thisNodeDead(5) setting indicates that this node has been takenover.' + valuemap: + name: 'FAS3220 HA settings' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: ha + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: f4ee8e2a63e8471598b6aad929151404 + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.ha[haSettings, "{#NODE.NAME}"])=1' + name: 'NetApp FAS3220: Node {#NODE.NAME}: HA is not licensed' + priority: AVERAGE + description: 'The value notConfigured(1) indicates that the HA is not licensed.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: db2c37150e1649fba89898459150ada8 + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.ha[haSettings, "{#NODE.NAME}"])=5' + name: 'NetApp FAS3220: Node {#NODE.NAME}: Node has been taken over' + priority: HIGH + description: 'The thisNodeDead(5) setting indicates that this node has been takenover.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0984cb890ec64f748e6bc5531bf80112 + name: 'Network ports discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFNAME},1.3.6.1.4.1.789.1.22.2.1.2,{#NODE},1.3.6.1.4.1.789.1.22.2.1.1,{#TYPE},1.3.6.1.4.1.789.1.22.2.1.15,{#ROLE},1.3.6.1.4.1.789.1.22.2.1.3,{#IFDESCR},1.3.6.1.4.1.789.1.22.1.2.1.2]' + key: fas3220.net.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$FAS3220.NET.PORT.NAME.MATCHES}' + formulaid: A + - macro: '{#IFNAME}' + value: '{$FAS3220.NET.PORT.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ROLE}' + value: '{$FAS3220.NET.PORT.ROLE.MATCHES}' + formulaid: C + - macro: '{#TYPE}' + value: '{$FAS3220.NET.PORT.TYPE.MATCHES}' + formulaid: D + - macro: '{#TYPE}' + value: '{$FAS3220.NET.PORT.ROLE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: E + - macro: '{#TYPE}' + value: '{$FAS3220.NET.PORT.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Network interfaces discovery with filter.' + item_prototypes: + - uuid: abbab9f31f7a4e07a2e5f3fcb2150677 + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.1.2.1.28.{#IFSNMPINDEX}]' + key: 'fas3220.net.if[if64InDiscards, "{#NODE}", "{#IFNAME}"]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets that were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6f8c273e8efa40e3888716c7cad79f3f + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.1.2.1.29.{#IFSNMPINDEX}]' + key: 'fas3220.net.if[if64InErrors, "{#NODE}", "{#IFNAME}"]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6fa2bb39354e4024805a82acf4feab29 + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.1.2.1.25.{#IFSNMPINDEX}]' + key: 'fas3220.net.if[if64InOctets, "{#NODE}", "{#IFNAME}"]' + units: bps + description: 'The total number of octets received on the interface, including framing characters.' + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: b414bb327e744c4b932263502da396c1 + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.1.2.1.34.{#IFSNMPINDEX}]' + key: 'fas3220.net.if[if64OutDiscards, "{#NODE}", "{#IFNAME}"]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: baf565d001c044f8b8b5ea5caf09ea60 + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.1.2.1.35.{#IFSNMPINDEX}]' + key: 'fas3220.net.if[if64OutErrors, "{#NODE}", "{#IFNAME}"]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets that could not be transmitted because of errors. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: cd474bb9b7b741e8a19654f9e2a67890 + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.1.2.1.31.{#IFSNMPINDEX}]' + key: 'fas3220.net.if[if64OutOctets, "{#NODE}", "{#IFNAME}"]' + units: bps + description: 'The total number of octets transmitted out of the interface, including framing characters.' + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: fc759bc9f1fd479498157c5ded9d1123 + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Health degraded reason' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.2.1.32.{#SNMPINDEX}]' + key: 'fas3220.net.port[netportDegradedReason, "{#NODE}", "{#IFNAME}"]' + value_type: TEXT + trends: '0' + description: 'The list of reasons why the port is marked as degraded.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: d50375f621464117afa5c469d06aa3a6 + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Health' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.2.1.30.{#SNMPINDEX}]' + key: 'fas3220.net.port[netportHealthStatus, "{#NODE}", "{#IFNAME}"]' + value_type: FLOAT + description: 'The health status of the port.' + valuemap: + name: 'FAS3220 Port health' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: 13b38a463e7a49058ca6907a9430d49f + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): State' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.2.1.4.{#SNMPINDEX}]' + key: 'fas3220.net.port[netportLinkState, "{#NODE}", "{#IFNAME}"]' + description: 'The link-state of the port. Normally it is either UP(2) or DOWN(3).' + valuemap: + name: 'FAS3220 Port link state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: ba18b4cebd7547c1bd6f92bd9e0ca791 + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Role' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.2.1.3.{#SNMPINDEX}]' + key: 'fas3220.net.port[netportRole, "{#NODE}", "{#IFNAME}"]' + description: 'Role of the port. A port must have one of the following roles: cluster(1), data(2), mgmt(3), intercluster(4), cluster-mgmt(5) or undef(0). The cluster port is used to communicate to other node(s) in the cluster. The data port services clients'' requests. It is where all the file requests come in. The management port is used by administrator to manage resources within a node. The intercluster port is used to communicate to other cluster. The cluster-mgmt port is used to manage resources within the cluster. The undef role is for the port that has not yet been assigned a role.' + valuemap: + name: 'FAS3220 Port role' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7e8816bdb15e4f1ab60c2c1b9706a34f + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.2.1.11.{#SNMPINDEX}]' + key: 'fas3220.net.port[netportSpeedOper, "{#NODE}", "{#IFNAME}"]' + description: 'The speed appears on the port. It can be either undef(0), auto(1), ten Mb/s(2), hundred Mb/s(3), one Gb/s(4), or ten Gb/s(5).' + valuemap: + name: 'FAS3220 Port speed' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + - uuid: ea7cd0c80dae43e3bfd871b8ce1c541b + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Up by an administrator' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.789.1.22.2.1.14.{#SNMPINDEX}]' + key: 'fas3220.net.port[netportUpAdmin, "{#NODE}", "{#IFNAME}"]' + description: 'Indicates whether the port status is set ''UP'' by an administrator.' + valuemap: + name: 'FAS3220 Port UP by administrator' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#IFDESCR}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9ea5b5b667df4bd1943892150c9f2fda + expression: | + min(/NetApp FAS3220 by SNMP/fas3220.net.if[if64InErrors, "{#NODE}", "{#IFNAME}"],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/NetApp FAS3220 by SNMP/fas3220.net.if[if64OutErrors, "{#NODE}", "{#IFNAME}"],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/NetApp FAS3220 by SNMP/fas3220.net.if[if64InErrors, "{#NODE}", "{#IFNAME}"],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/NetApp FAS3220 by SNMP/fas3220.net.if[if64OutErrors, "{#NODE}", "{#IFNAME}"],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'NetApp FAS3220: Node {#NODE}: port {#IFNAME} ({#TYPE}): High error rate' + event_name: 'NetApp FAS3220: Node {#NODE}: port {#IFNAME} ({#TYPE}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 2c7730f4606a4833bc729c108349d7b4 + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.net.port[netportLinkState, "{#NODE}", "{#IFNAME}"])<>2 and last(/NetApp FAS3220 by SNMP/fas3220.net.port[netportUpAdmin, "{#NODE}", "{#IFNAME}"])=1' + name: 'NetApp FAS3220: Node {#NODE}: port {#IFNAME} ({#TYPE}): Link down' + priority: AVERAGE + description: 'Link state is not UP and the port status is set ''UP'' by an administrator.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a95e60addfe04055bb15138dd9d1f37f + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.net.port[netportHealthStatus, "{#NODE}", "{#IFNAME}"])<>0 and length(last(/NetApp FAS3220 by SNMP/fas3220.net.port[netportDegradedReason, "{#NODE}", "{#IFNAME}"]))>0' + name: 'NetApp FAS3220: Node {#NODE}: port {#IFNAME} ({#TYPE}): Port is not healthy' + priority: INFO + description: '{{ITEM.LASTVALUE2}.regsub("(.*)", \1)}' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 252ef20da69f43fd90afd5a560fdbd1e + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'NetApp FAS3220 by SNMP' + key: 'fas3220.net.if[if64InOctets, "{#NODE}", "{#IFNAME}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'NetApp FAS3220 by SNMP' + key: 'fas3220.net.if[if64OutOctets, "{#NODE}", "{#IFNAME}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'NetApp FAS3220 by SNMP' + key: 'fas3220.net.if[if64OutErrors, "{#NODE}", "{#IFNAME}"]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'NetApp FAS3220 by SNMP' + key: 'fas3220.net.if[if64InErrors, "{#NODE}", "{#IFNAME}"]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'NetApp FAS3220 by SNMP' + key: 'fas3220.net.if[if64OutDiscards, "{#NODE}", "{#IFNAME}"]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'NetApp FAS3220 by SNMP' + key: 'fas3220.net.if[if64InDiscards, "{#NODE}", "{#IFNAME}"]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + var descriptions = {}; + var out = []; + + data.forEach(function(elem) { + if (elem["{#IFDESCR}"]) { + var parts = elem["{#IFDESCR}"].split(":"); + var port = parts[parts.length-1].split(' '); + descriptions[parts[0] + ':' + port[port.length-1]] = { + "{#IFDESCR}": elem["{#IFDESCR}"], + "{#SNMPINDEX}": elem["{#SNMPINDEX}"] + } + } + }); + + data.forEach(function(elem) { + if (elem["{#IFNAME}"]) { + var port = descriptions[elem["{#NODE}"] + ':' + elem["{#IFNAME}"]]; + + elem["{#IFDESCR}"] = port["{#IFDESCR}"]; + elem["{#IFSNMPINDEX}"] = port["{#SNMPINDEX}"]; + + + switch(elem["{#TYPE}"]) { + case '0': + elem["{#TYPE}"] = 'physical'; + break; + case '1': + elem["{#TYPE}"] = 'if-group'; + break; + case '2': + elem["{#TYPE}"] = 'vlan'; + break; + case '3': + elem["{#TYPE}"] = 'undef'; + break; + }; + + out.push(elem); + } + }); + + return JSON.stringify(out); + tags: + - tag: class + value: hardware + - tag: target + value: netapp + - tag: target + value: netapp-fas3220 + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of the CPU utilization expressed in %.' + - macro: '{$FAS3220.FS.AVAIL.MIN.CRIT}' + value: 10G + description: 'Minimum available space on the disk. Can be used with {#FSNAME} as context.' + - macro: '{$FAS3220.FS.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level.' + - macro: '{$FAS3220.FS.NAME.NOT_MATCHES}' + value: snapshot + description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level.' + - macro: '{$FAS3220.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'Maximum percentage of disk used. Can be used with {#FSNAME} as context.' + - macro: '{$FAS3220.FS.TIME}' + value: 10m + description: 'The time during which disk usage may exceed the threshold. Can be used with {#FSNAME} as context.' + - macro: '{$FAS3220.FS.TYPE.MATCHES}' + value: '.*' + description: | + This macro is used in filesystems discovery. Can be overridden on the host or linked template level. + Value should be integer: + 2 - flexibleVolume, + 3 - aggregate, + 4 - stripedAggregate, + 5 - stripedVolume. + - macro: '{$FAS3220.FS.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: | + This macro is used in filesystems discovery. Can be overridden on the host or linked template level. + Value should be integer: + 2 - flexibleVolume, + 3 - aggregate, + 4 - stripedAggregate, + 5 - stripedVolume. + - macro: '{$FAS3220.FS.USE.PCT}' + value: '1' + description: | + Macro define what threshold will be used for disk space trigger: + 0 - use Bytes ({$FAS3220.FS.AVAIL.MIN.CRIT}) + 1 - use percents ({$FAS3220.FS.PUSED.MAX.CRIT}) + Can be used with {#FSNAME} as context. + - macro: '{$FAS3220.NET.PORT.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in net ports discovery. Can be overridden on the host or linked template level.' + - macro: '{$FAS3220.NET.PORT.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in net ports discovery. Can be overridden on the host or linked template level.' + - macro: '{$FAS3220.NET.PORT.ROLE.MATCHES}' + value: '.*' + description: | + This macro is used in net ports discovery. Can be overridden on the host or linked template level. + {#ROLE} is integer. Possible values: + 0 - undef + 1 - cluster + 2 - data + 3 - node-mgmt + 4 - intercluster + 5 - cluster-mgmt + - macro: '{$FAS3220.NET.PORT.ROLE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: | + This macro is used in net ports discovery. Can be overridden on the host or linked template level. + {#ROLE} is integer. Possible values: + 0 - undef + 1 - cluster + 2 - data + 3 - node-mgmt + 4 - intercluster + 5 - cluster-mgmt + - macro: '{$FAS3220.NET.PORT.TYPE.MATCHES}' + value: '.*' + description: | + This macro is used in net ports discovery. Can be overridden on the host or linked template level. + {#TYPE} is integer. Possible values: physical, if-group, vlan, undef. + - macro: '{$FAS3220.NET.PORT.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: | + This macro is used in net ports discovery. Can be overridden on the host or linked template level. + {#TYPE} is integer. Possible values: physical, if-group, vlan, undef. + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + - macro: '{$IF.UTIL.MAX}' + value: '95' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + dashboards: + - uuid: 868292f4d7f84b0f854938c27f7c911e + name: 'NetApp FAS3220: Overview' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'NetApp FAS3220 by SNMP' + name: 'Node {#NODE.NAME}: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'NetApp FAS3220 by SNMP' + name: '{#VSERVER}{#FSNAME}: Free space' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'NetApp FAS3220 by SNMP' + name: 'Node {#NODE}: port {#IFNAME} ({#TYPE}): Network traffic' + - type: STRING + name: reference + value: AAAAC + valuemaps: + - uuid: e078162b11ff49f59c3ab6d905f88f2c + name: 'FAS3220 HA cannot takeover cause' + mappings: + - value: '1' + newvalue: OK + - value: '2' + newvalue: 'Unknown reason' + - value: '3' + newvalue: 'Disabled by operator' + - value: '4' + newvalue: 'Interconnect offline' + - value: '5' + newvalue: 'Disabled by partner' + - value: '6' + newvalue: 'Takeover failed' + - value: '7' + newvalue: 'Mailbox is in degraded state' + - value: '8' + newvalue: 'Partner mailbox is in uninitialised state' + - value: '9' + newvalue: 'Mailbox version mismatch' + - value: '10' + newvalue: 'NVRAM size mismatch' + - value: '11' + newvalue: 'Kernel version mismatch' + - value: '12' + newvalue: 'Partner is in booting stage' + - value: '13' + newvalue: 'Disk shelf is too hot' + - value: '14' + newvalue: 'Partner is performing revert' + - value: '15' + newvalue: 'Node is performing revert' + - value: '16' + newvalue: 'Same time partner is also trying to take us over' + - value: '17' + newvalue: 'Already in takenover mode' + - value: '18' + newvalue: 'NVRAM log unsynchronized' + - value: '19' + newvalue: 'State of backup mailbox is doubtful' + - uuid: d6993f0258dd4978a85aa5c141f1706e + name: 'FAS3220 HA settings' + mappings: + - value: '1' + newvalue: 'Not configured' + - value: '2' + newvalue: Enabled + - value: '3' + newvalue: Disabled + - value: '4' + newvalue: 'Takeover by partner disabled' + - value: '5' + newvalue: 'This node dead' + - uuid: 1fe2bf70bd63468584708a9d09eb42a1 + name: 'FAS3220 NVRAM battery status' + mappings: + - value: '1' + newvalue: OK + - value: '2' + newvalue: 'Partially discharged' + - value: '3' + newvalue: 'Fully discharged' + - value: '4' + newvalue: 'Not present' + - value: '5' + newvalue: 'Near end of life' + - value: '6' + newvalue: 'At end of life' + - value: '7' + newvalue: Unknown + - value: '8' + newvalue: Overcharged + - value: '9' + newvalue: 'Fully charged' + - uuid: ee5e67c90bca4ded84df2d82589bc2fb + name: 'FAS3220 Port health' + mappings: + - value: '0' + newvalue: Healthy + - value: '1' + newvalue: Degraded + - uuid: bd6ea858292c414d9bfd435631001ef5 + name: 'FAS3220 Port link state' + mappings: + - value: '0' + newvalue: Undef + - value: '1' + newvalue: 'Off' + - value: '2' + newvalue: UP + - value: '3' + newvalue: DOWN + - uuid: c598c387157d4450b5bf8f68e6e794a4 + name: 'FAS3220 Port role' + mappings: + - value: '0' + newvalue: Undef + - value: '1' + newvalue: Cluster + - value: '2' + newvalue: Data + - value: '3' + newvalue: Node-MGMT + - value: '4' + newvalue: Intercluster + - value: '5' + newvalue: Cluster-MGMT + - uuid: 6b0fec10a0eb4c70a8982419c6e635b9 + name: 'FAS3220 Port speed' + mappings: + - value: '0' + newvalue: Undef + - value: '1' + newvalue: Auto + - value: '2' + newvalue: '10 Mb/s' + - value: '3' + newvalue: '100 Mb/s' + - value: '4' + newvalue: '10 Gb/s' + - value: '5' + newvalue: '100 Gb/s' + - uuid: c50cdd6dbe19482abdb870c12e7c7b8d + name: 'FAS3220 Port UP by administrator' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: d3b3a064c6e445db8b9179ac79d257bf + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 7ad319d1815e45a1a28a8cd2516fd8eb + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: d33ca3f0d2f14feca01dce7bdf476776 + expression: '(last(/NetApp FAS3220 by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/NetApp FAS3220 by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/NetApp FAS3220 by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/NetApp FAS3220 by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'NetApp FAS3220: Host has been restarted' + event_name: 'NetApp FAS3220: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'NetApp FAS3220: No SNMP data collection' + expression: 'max(/NetApp FAS3220 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + - uuid: 3e2d95918f364248ae07a2e436a986a0 + expression: 'last(/NetApp FAS3220 by SNMP/fas3220.disk[diskFailedCount])>0 and last(/NetApp FAS3220 by SNMP/fas3220.disk[diskFailedMessage],#1)<>last(/NetApp FAS3220 by SNMP/fas3220.disk[diskFailedMessage],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/NetApp FAS3220 by SNMP/fas3220.disk[diskFailedCount])=0' + name: 'NetApp FAS3220: Number of failed disks has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: '{{ITEM.LASTVALUE2}.regsub("(.*)", \1)}' + type: MULTIPLE + tags: + - tag: scope + value: availability + - tag: scope + value: performance diff --git a/Netgear_Fastpath_by_SNMP.yaml b/Netgear_Fastpath_by_SNMP.yaml new file mode 100644 index 0000000..d7deae3 --- /dev/null +++ b/Netgear_Fastpath_by_SNMP.yaml @@ -0,0 +1,1843 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 5920713da492452889adabc25e259caa + template: 'Netgear Fastpath by SNMP' + name: 'Netgear Fastpath by SNMP' + description: | + Template Net Netgear Fastpath + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + FASTPATH-SWITCHING-MIB + FASTPATH-BOXSERVICES-PRIVATE-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: a3d05c4b2b2e40ba8cd29255012f5582 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 424d07aafe9f4e8c8f647db6a43363d0 + expression: 'max(/Netgear Fastpath by SNMP/icmpping,#3)=0' + name: 'Netgear Fastpath: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 4c2b7fe079ba45f6b150d9aeda4b8ab1 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 9d2efd0614ba4e16b3479ed515d3a9a2 + expression: 'min(/Netgear Fastpath by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Netgear Fastpath by SNMP/icmppingloss,5m)<100' + name: 'Netgear Fastpath: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Netgear Fastpath: Unavailable by ICMP ping' + expression: 'max(/Netgear Fastpath by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f6d11b8498e04df9bcf392aee2aacde3 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 99888c77fc084d43b742a1f156d87832 + expression: 'avg(/Netgear Fastpath by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Netgear Fastpath: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Netgear Fastpath: High ICMP ping loss' + expression: 'min(/Netgear Fastpath by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Netgear Fastpath by SNMP/icmppingloss,5m)<100' + - name: 'Netgear Fastpath: Unavailable by ICMP ping' + expression: 'max(/Netgear Fastpath by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6f2e3553d7874f81b184b1b25a3d9ac6 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 44a19d5435e8476dafa2e52b481b9c75 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e8ffc912f0ee47cca513861fcecfddb0 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.4526.10.1.1.4.9.0]' + key: 'system.cpu.util[agentSwitchCpuProcessTotalUtilization.0]' + value_type: FLOAT + units: '%' + description: | + MIB: FASTPATH-SWITCHING-MIB + The CPU utilization expressed in %. + preprocessing: + - type: REGEX + parameters: + - '60 Secs \( ([0-9\.]+)%\).+300 Secs' + - \1 + tags: + - tag: component + value: cpu + triggers: + - uuid: 1e47f984c5514205aad2be5db1157fd2 + expression: 'min(/Netgear Fastpath by SNMP/system.cpu.util[agentSwitchCpuProcessTotalUtilization.0],5m)>{$CPU.UTIL.CRIT}' + name: 'Netgear Fastpath: High CPU utilization' + event_name: 'Netgear Fastpath: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 59c81fd37e334a0ba60b1256d3730624 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 2470e113b1174c70a1265bf4c4252b5f + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.4526.10.1.1.1.3.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: FASTPATH-SWITCHING-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 697f863cf86544d4a366e8827976ed50 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.4526.10.1.1.1.4.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: FASTPATH-SWITCHING-MIB + Serial number of the switch + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: eba057a7ef5743ecb2c037476c97fc38 + expression: 'last(/Netgear Fastpath by SNMP/system.hw.serialnumber,#1)<>last(/Netgear Fastpath by SNMP/system.hw.serialnumber,#2) and length(last(/Netgear Fastpath by SNMP/system.hw.serialnumber))>0' + name: 'Netgear Fastpath: Device has been replaced' + event_name: 'Netgear Fastpath: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d0e66c64c0b2449a9c5ffbbdaf176963 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: eeeceba5d9dd43de856ada8b5460f3d5 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 53b0dbb74854494eb834804a1f0afbe7 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 61e82ab169374a51a1ebd876cc7813a8 + expression: 'last(/Netgear Fastpath by SNMP/system.name,#1)<>last(/Netgear Fastpath by SNMP/system.name,#2) and length(last(/Netgear Fastpath by SNMP/system.name))>0' + name: 'Netgear Fastpath: System name has changed' + event_name: 'Netgear Fastpath: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 6538a853fd47460585dbc2b4853ea65b + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 8d5bfc785de5459c967659306d66b7e5 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5bd8c956163d4201a7e896abde28044b + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.4526.10.1.1.1.10.0]' + key: 'system.sw.os[agentInventoryOperatingSystem.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: FASTPATH-SWITCHING-MIB + Operating System running on this unit + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: bf0a6ff122a14f4c9baa640d27c8f982 + expression: 'last(/Netgear Fastpath by SNMP/system.sw.os[agentInventoryOperatingSystem.0],#1)<>last(/Netgear Fastpath by SNMP/system.sw.os[agentInventoryOperatingSystem.0],#2) and length(last(/Netgear Fastpath by SNMP/system.sw.os[agentInventoryOperatingSystem.0]))>0' + name: 'Netgear Fastpath: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Netgear Fastpath: System name has changed' + expression: 'last(/Netgear Fastpath by SNMP/system.name,#1)<>last(/Netgear Fastpath by SNMP/system.name,#2) and length(last(/Netgear Fastpath by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: f94ffd4d6eb84ae88cdf5033df65f249 + name: 'Available memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.4526.10.1.1.5.1.0]' + key: 'vm.memory.available[agentSwitchCpuProcessMemFree.0]' + units: B + description: | + MIB: FASTPATH-SWITCHING-MIB + The total memory freed for utilization. + tags: + - tag: component + value: memory + - uuid: 98037eeab349478c8c393b163ec5193e + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.4526.10.1.1.5.2.0]' + key: 'vm.memory.total[agentSwitchCpuProcessMemAvailable.0]' + units: B + description: | + MIB: FASTPATH-SWITCHING-MIB + The total Memory allocated for the tasks + tags: + - tag: component + value: memory + - uuid: 86ef153d78b5466cac76a32f81d8b958 + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage.0]' + value_type: FLOAT + units: '%' + params: '(last(//vm.memory.total[agentSwitchCpuProcessMemAvailable.0])-last(//vm.memory.available[agentSwitchCpuProcessMemFree.0]))/last(//vm.memory.total[agentSwitchCpuProcessMemAvailable.0])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 21c1a017dcc14148a9020207a6fd7488 + expression: 'min(/Netgear Fastpath by SNMP/vm.memory.util[memoryUsedPercentage.0],5m)>{$MEMORY.UTIL.MAX}' + name: 'Netgear Fastpath: High memory utilization' + event_name: 'Netgear Fastpath: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 755ae00add264d2ba735b45f7dc5ca23 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: cc91cb171901433bbb35752127e54ad0 + expression: 'max(/Netgear Fastpath by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Netgear Fastpath: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Netgear Fastpath: Unavailable by ICMP ping' + expression: 'max(/Netgear Fastpath by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 8fb96a540bab4deba00626237797cb62 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.4526.10.43.1.6.1.1]' + key: fan.discovery + delay: 1h + description: 'FASTPATH-BOXSERVICES-PRIVATE-MIB::1.3.6.1.4.1.4526.10.43.1.6.1.1' + item_prototypes: + - uuid: 9f515526de2c47108182b444d1d093c3 + name: '#{#SNMPVALUE}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.4526.10.43.1.6.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[boxServicesFanItemState.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: FASTPATH-BOXSERVICES-PRIVATE-MIB + The status of fan + valuemap: + name: 'FASTPATH-BOXSERVICES-PRIVATE-MIB::boxServicesFanItemState' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: ce48c2b0a07d4528b95668c853b6b4e0 + expression: 'count(/Netgear Fastpath by SNMP/sensor.fan.status[boxServicesFanItemState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS:\"failed\"}")=1' + name: 'Netgear Fastpath: #{#SNMPVALUE}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d37bcb60aa354c55b363e33c5ec3af9d + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 832ec51626724ebdb03b8d6134b6f786 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 50f169f55fb949aebf4233b702f2edb9 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 055c64e171144b119b2e0b2c427e1c77 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 036b6e8533044a0a8c5101f0dbc38c2f + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6ec1a97308a74aea8b68a1854d6692eb + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 36d9193337164198a0fcb76bc3d9adcf + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f5f25ce6e6604f0b9b2d685d664c7469 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 96d56a8cb6024d5d9841b7ac817e5aab + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8e06e74957de4467bb127e6f16cdd84c + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Netgear Fastpath: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 2baed21110ca4e50af898442668bdd8b + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 443260352dec4467b6eafdd4c6a8ba9c + expression: | + change(/Netgear Fastpath by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Netgear Fastpath by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Netgear Fastpath by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Netgear Fastpath by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Netgear Fastpath by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Netgear Fastpath by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Netgear Fastpath by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Netgear Fastpath by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Netgear Fastpath by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Netgear Fastpath by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Netgear Fastpath: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Netgear Fastpath: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 8b33b079505846558c6ee4f0afb05c5d + expression: | + (avg(/Netgear Fastpath by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Netgear Fastpath by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Netgear Fastpath by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Netgear Fastpath by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Netgear Fastpath by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Netgear Fastpath by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Netgear Fastpath by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Netgear Fastpath by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Netgear Fastpath by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Netgear Fastpath: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Netgear Fastpath: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Netgear Fastpath: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: bfc9aaa24f17487184a8b88d4bf310a5 + expression: | + min(/Netgear Fastpath by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Netgear Fastpath by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Netgear Fastpath by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Netgear Fastpath by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Netgear Fastpath: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Netgear Fastpath: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Netgear Fastpath: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Netgear Fastpath by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 7edcc1da1c1343a094028153e8f74fdb + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Netgear Fastpath by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Netgear Fastpath by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Netgear Fastpath by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Netgear Fastpath by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Netgear Fastpath by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Netgear Fastpath by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: 251d90e9c6ae4dad92328b677f6d6edf + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.4526.10.43.1.7.1.1]' + key: psu.discovery + delay: 1h + description: 'FASTPATH-BOXSERVICES-PRIVATE-MIB::boxServicesPowSupplyIndex' + item_prototypes: + - uuid: aa5a704044b44909b2a348184ec71bc0 + name: '#{#SNMPVALUE}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.4526.10.43.1.7.1.3.{#SNMPINDEX}]' + key: 'sensor.psu.status[boxServicesPowSupplyItemState.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: FASTPATH-BOXSERVICES-PRIVATE-MIB + The status of power supply + valuemap: + name: 'FASTPATH-BOXSERVICES-PRIVATE-MIB::boxServicesPowSupplyItemState' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 78d4bcad8d7d4694ad492b37003fa0b0 + expression: 'count(/Netgear Fastpath by SNMP/sensor.psu.status[boxServicesPowSupplyItemState.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS:\"failed\"}")=1' + name: 'Netgear Fastpath: #{#SNMPVALUE}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c63b577cb8544b54a40a4d86bc926ada + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.4526.10.43.1.8.1.1]' + key: temp.discovery + delay: 1h + description: 'FASTPATH-BOXSERVICES-PRIVATE-MIB::boxServicesTempSensorsTable' + item_prototypes: + - uuid: ac4a292ab2e548fea3326aaa92162140 + name: '#{#SNMPVALUE}: Temperature status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.4526.10.43.1.8.1.3.{#SNMPINDEX}]' + key: 'sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: | + MIB: FASTPATH-BOXSERVICES-PRIVATE-MIB + The state of temperature sensor + valuemap: + name: 'FASTPATH-BOXSERVICES-PRIVATE-MIB::boxServicesTempSensorState' + tags: + - tag: component + value: temperature + - uuid: 488762ecfb1549d294886681a6ec34f6 + name: '#{#SNMPVALUE}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.4526.10.43.1.8.1.5.{#SNMPINDEX}]' + key: 'sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: FASTPATH-BOXSERVICES-PRIVATE-MIB + The temperature value reported by sensor + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 222b4523c61144d1a91bb1b5cbd63caf + expression: 'avg(/Netgear Fastpath by SNMP/sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Netgear Fastpath by SNMP/sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}+3' + name: 'Netgear Fastpath: #{#SNMPVALUE}: Temperature is too low' + event_name: 'Netgear Fastpath: #{#SNMPVALUE}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + trigger_prototypes: + - uuid: bead54e2d2f34d45bafb41600e84ac2d + expression: | + avg(/Netgear Fastpath by SNMP/sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"} + or + last(/Netgear Fastpath by SNMP/sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}])={$TEMP_CRIT_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Netgear Fastpath by SNMP/sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + name: 'Netgear Fastpath: #{#SNMPVALUE}: Temperature is above critical threshold' + event_name: 'Netgear Fastpath: #{#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f3444dbde8344a1782449ec4260972d1 + expression: | + avg(/Netgear Fastpath by SNMP/sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SNMPVALUE}"} + or + last(/Netgear Fastpath by SNMP/sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}])={$TEMP_WARN_STATUS} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Netgear Fastpath by SNMP/sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SNMPVALUE}"}-3' + name: 'Netgear Fastpath: #{#SNMPVALUE}: Temperature is above warning threshold' + event_name: 'Netgear Fastpath: #{#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Netgear Fastpath: #{#SNMPVALUE}: Temperature is above critical threshold' + expression: | + avg(/Netgear Fastpath by SNMP/sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SNMPVALUE}"} + or + last(/Netgear Fastpath by SNMP/sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}])={$TEMP_CRIT_STATUS} + recovery_expression: 'max(/Netgear Fastpath by SNMP/sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SNMPVALUE}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: fastpath + - tag: target + value: netgear + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS:"failed"}' + value: '2' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS:"failed"}' + value: '2' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_CRIT_STATUS}' + value: '3' + - macro: '{$TEMP_WARN}' + value: '50' + - macro: '{$TEMP_WARN_STATUS}' + value: '2' + dashboards: + - uuid: f554c8db428d4c05909ec48a0f014ef1 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Netgear Fastpath by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + - uuid: 5432e9ce427549e0911cde9da29a3f9f + name: Overview + pages: + - name: Resources + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Netgear Fastpath by SNMP' + name: 'Netgear Fastpath: CPU utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Netgear Fastpath by SNMP' + name: 'Netgear Fastpath: Memory utilization' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Netgear Fastpath by SNMP' + name: 'Netgear Fastpath: Memory usage' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 3046d246b1064c749c1c9144442c0fac + name: 'FASTPATH-BOXSERVICES-PRIVATE-MIB::boxServicesFanItemState' + mappings: + - value: '1' + newvalue: operational + - value: '2' + newvalue: failed + - value: '3' + newvalue: powering + - value: '4' + newvalue: notpowering + - value: '5' + newvalue: notpresent + - uuid: d11e2b2f01c641728d1b7f764fa49f37 + name: 'FASTPATH-BOXSERVICES-PRIVATE-MIB::boxServicesPowSupplyItemState' + mappings: + - value: '1' + newvalue: operational + - value: '2' + newvalue: failed + - value: '3' + newvalue: powering + - value: '4' + newvalue: notpowering + - value: '5' + newvalue: notpresent + - uuid: 4da55a4de7284012890e1fd5458f039a + name: 'FASTPATH-BOXSERVICES-PRIVATE-MIB::boxServicesTempSensorState' + mappings: + - value: '1' + newvalue: normal + - value: '2' + newvalue: warning + - value: '3' + newvalue: critical + - value: '4' + newvalue: shutdown + - value: '5' + newvalue: notpresent + - value: '6' + newvalue: notoperational + - uuid: fecd5d9485284373bf7a2675c2b29698 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: fc2630e4b471489e86b27cad74869009 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 5f4a459df3414f51a6304e95e33719cb + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 8f0e780896f9432486996071a231fba3 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: d68e4595fd4c4e5a9307b268cfe06b3e + expression: '(last(/Netgear Fastpath by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Netgear Fastpath by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Netgear Fastpath by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Netgear Fastpath by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Netgear Fastpath: Host has been restarted' + event_name: 'Netgear Fastpath: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Netgear Fastpath: No SNMP data collection' + expression: 'max(/Netgear Fastpath by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: bcd1db5068794edd9a3d74f32bd018ed + name: 'Netgear Fastpath: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Netgear Fastpath by SNMP' + key: 'system.cpu.util[agentSwitchCpuProcessTotalUtilization.0]' + - uuid: 1cb7d7036dfe4999b0489cc8bfa254aa + name: 'Netgear Fastpath: Memory usage' + ymin_type_1: FIXED + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Netgear Fastpath by SNMP' + key: 'vm.memory.total[agentSwitchCpuProcessMemAvailable.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Netgear Fastpath by SNMP' + key: 'vm.memory.available[agentSwitchCpuProcessMemFree.0]' + - uuid: 88124449b8984ee6bca46269d1d3f1ae + name: 'Netgear Fastpath: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Netgear Fastpath by SNMP' + key: 'vm.memory.util[memoryUsedPercentage.0]' diff --git a/Network_Generic_Device_by_SNMP.yaml b/Network_Generic_Device_by_SNMP.yaml new file mode 100644 index 0000000..e601216 --- /dev/null +++ b/Network_Generic_Device_by_SNMP.yaml @@ -0,0 +1,1476 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 67332e679035423f85090aa985947c36 + template: 'Network Generic Device by SNMP' + name: 'Network Generic Device by SNMP' + description: | + Template Net Network Generic Device + + MIBs used: + EtherLike-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 8818ba559e364390a8f5881a9b3ab5c7 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d08cae0e7fa54dfea41449f0adabe05d + expression: 'max(/Network Generic Device by SNMP/icmpping,#3)=0' + name: 'Network Generic Device: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 06c6f4c60f9b4db0afa2886ad70507af + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d70eb18878114ae69e5f5f95f4b898cc + expression: 'min(/Network Generic Device by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Network Generic Device by SNMP/icmppingloss,5m)<100' + name: 'Network Generic Device: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Network Generic Device: Unavailable by ICMP ping' + expression: 'max(/Network Generic Device by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 29f84e5b82b748a5b08475dd45ade97a + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 09bcfc7a9e3d45d99d37b56a404df610 + expression: 'avg(/Network Generic Device by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Network Generic Device: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Network Generic Device: High ICMP ping loss' + expression: 'min(/Network Generic Device by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Network Generic Device by SNMP/icmppingloss,5m)<100' + - name: 'Network Generic Device: Unavailable by ICMP ping' + expression: 'max(/Network Generic Device by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4dad4c7dc007426ebb4b36439b64a55b + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 300812c78b9d4aeb82940d97ccee1d9e + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: c4996515da9e41728fb94c5134489e7b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 76f954f8d7fd41109919ccbbb6151164 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9bf103c35b284fc7ba9f7b4968006cd9 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: adb55c04903d4c37a9ccecc78ac877d5 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 5f11afa80f534add85dd03e06466fbc9 + expression: 'last(/Network Generic Device by SNMP/system.name,#1)<>last(/Network Generic Device by SNMP/system.name,#2) and length(last(/Network Generic Device by SNMP/system.name))>0' + name: 'Network Generic Device: System name has changed' + event_name: 'Network Generic Device: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 9b2549a4c09a4b0d9112aed011b03583 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 9d2e3e58dc4543d3b5df8ded3c2a4d90 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 28e7a457abdf42c3a647642b3c4964e0 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d534ea9f1ad34633bdd361f20733b749 + expression: 'max(/Network Generic Device by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Network Generic Device: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Network Generic Device: Unavailable by ICMP ping' + expression: 'max(/Network Generic Device by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 12e011a176284ab4807c2285768b0470 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 7f259420bb944d5397ffee61c72629d1 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bf2f604e912f4d15999a7931eea58d93 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 34a3f71da7fb4896be8bda4b8840577d + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}]' + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface,including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and another times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b7cb1f80962a46fe97ce1af186530eb3 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f51311b11b53440f9256ef01ed14ddf0 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2097ef34441343f291ce2bf160ba280f + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.16.{#SNMPINDEX}]' + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5a9cd6719c794d16bb53ab5c422cc619 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.5.{#SNMPINDEX}]' + key: 'net.if.speed[ifSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, + this object should contain the nominal bandwidth. + If the bandwidth of the interface is greater than the maximum value reportable by this object then + this object should report its maximum value (4,294,967,295) and ifHighSpeed must be used to report the interface's speed. + For a sub-layer which has no concept of bandwidth, this object should be zero. + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6808335d9cbf44f0ba21fc6a1f146ae7 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9b5fdc0da9fa49918b3986d1eee02cfc + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Network Generic Device: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 251413125851440a81acaeab7b1632d5 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f06a612448bc4cc2b0b5641708e9153a + expression: | + change(/Network Generic Device by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])<0 and last(/Network Generic Device by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 + and ( + last(/Network Generic Device by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Network Generic Device by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Network Generic Device by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Network Generic Device by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Network Generic Device by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Network Generic Device by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Network Generic Device by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 and last(/Network Generic Device by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Network Generic Device: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Network Generic Device: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: e0b02506b47145a8bde6a19890a2e32b + expression: | + (avg(/Network Generic Device by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Network Generic Device by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) or + avg(/Network Generic Device by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Network Generic Device by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])) and + last(/Network Generic Device by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Network Generic Device by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Network Generic Device by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) and + avg(/Network Generic Device by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Network Generic Device by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) + name: 'Network Generic Device: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Network Generic Device: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Network Generic Device: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 1a2e2ea2ecf047a68168bdcceb8d1e39 + expression: | + min(/Network Generic Device by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Network Generic Device by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Network Generic Device by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Network Generic Device by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Network Generic Device: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Network Generic Device: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Network Generic Device: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Network Generic Device by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 22241d9edde64631a50cea85c11f4433 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Network Generic Device by SNMP' + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Network Generic Device by SNMP' + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Network Generic Device by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Network Generic Device by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Network Generic Device by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Network Generic Device by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 4h + - uuid: f6784e45dac14c91bea4ffb14d4793e9 + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: a61d1e3f2aec496b81e1d6769995a633 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 58acb95392e845bdb2a7064af0228208 + expression: 'last(/Network Generic Device by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'Network Generic Device: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + tags: + - tag: class + value: network + - tag: target + value: generic + macros: + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + - macro: '{$IF.UTIL.MAX}' + value: '95' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + dashboards: + - uuid: fa7619be2ccf481db4f7a334b380e2ab + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Network Generic Device by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: df2e3dab72d94efba9a85bfd7d1c3148 + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 9b4ab9573d184bf381f80ba4392fedc7 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 8f5eaea6553c4053b1d04569bc14bcb7 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: b146c1413392488884ca17289a55055a + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 77a05f825d144596a08149088121951a + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 536fafc0bb664fcb8b4c8acc18fe5c29 + expression: '(last(/Network Generic Device by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Network Generic Device by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Network Generic Device by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Network Generic Device by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Network Generic Device: Host has been restarted' + event_name: 'Network Generic Device: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Network Generic Device: No SNMP data collection' + expression: 'max(/Network Generic Device by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Nextcloud_by_HTTP.yaml b/Nextcloud_by_HTTP.yaml new file mode 100644 index 0000000..3d3154a --- /dev/null +++ b/Nextcloud_by_HTTP.yaml @@ -0,0 +1,1610 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 34f386276a094e8e9a6e46653fdf05b1 + template: 'Nextcloud by HTTP' + name: 'Nextcloud by HTTP' + description: | + This template is designed for monitoring Nextcloud by HTTP via Zabbix, and it works without any external scripts. + Nextcloud is a suite of client-server software for creating and using file hosting services. + For more information, see the [`official documentation`](https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-api-overview.html#) + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: cf89012acb7749a396fc14a705145c91 + name: 'Active users, last 1 hour' + type: DEPENDENT + key: nextcloud.serverinfo.active_users.last1h + delay: '0' + description: 'The number of active users in the last 1 hour.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.activeUsers.last1hour + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: environment + - uuid: 355d11e7459a4c599a86b2c08b90fd56 + name: 'Active users, last 5 minutes' + type: DEPENDENT + key: nextcloud.serverinfo.active_users.last5m + delay: '0' + description: 'The number of active users in the last 5 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.activeUsers.last5minutes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: environment + - uuid: 6a28646d56804f9fa4d060af26579881 + name: 'Active users, last 24 hours' + type: DEPENDENT + key: nextcloud.serverinfo.active_users.last24hours + delay: '0' + description: 'The number of active users in the last day.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.activeUsers.last24hours + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: environment + - uuid: cca878683ecb4de4b648fa100b579748 + name: 'Apps installed' + type: DEPENDENT + key: nextcloud.serverinfo.apps.installed + delay: '0' + description: 'The number of installed applications.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.nextcloud.system.apps.num_installed + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: application + triggers: + - uuid: b0375ab303e74e7cadd911a4a2e98725 + expression: 'change(/Nextcloud by HTTP/nextcloud.serverinfo.apps.installed)<>0' + name: 'Nextcloud: Number of installed apps has been changed' + priority: INFO + description: 'Applications have been installed or removed.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d53e692d6c7d42fcb8a69e322f434da1 + name: 'Apps update available' + type: DEPENDENT + key: nextcloud.serverinfo.apps.update + delay: '0' + description: 'The number of applications for which an update is available.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.nextcloud.system.apps.num_updates_available + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: application + triggers: + - uuid: 180c82d98b694f27bc44d1fc20ccd06e + expression: 'last(/Nextcloud by HTTP/nextcloud.serverinfo.apps.update)<>0' + name: 'Nextcloud: Application updates are available' + priority: WARNING + description: 'Updates are available for some of the installed applications.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: cc488c36ae0643a7bacb5173935ba608 + name: 'Web server' + type: DEPENDENT + key: nextcloud.serverinfo.apps.webserver + delay: '0' + value_type: CHAR + trends: '0' + description: 'Web server description.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.webserver + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: environment + - uuid: b018847264af4db3b3969e037734d669 + name: 'CPU load, avg 1m' + type: DEPENDENT + key: nextcloud.serverinfo.cpu.avg.1m + delay: '0' + value_type: FLOAT + description: 'The average system load (the number of processes in the system run queue), last 1 minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.ocs.data.nextcloud.system.cpuload[0]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: cpu + triggers: + - uuid: 481edcbc45174b35a2d44003aa101817 + expression: 'min(/Nextcloud by HTTP/nextcloud.serverinfo.cpu.avg.1m,5m) > {$NEXTCLOUD.CPU.LOAD.MAX}' + name: 'Nextcloud: CPU load is too high' + event_name: 'Nextcloud: CPU load is too high (over {$NEXTCLOUD.CPU.LOAD.MAX} for 5m)' + priority: AVERAGE + description: 'High CPU load.' + tags: + - tag: scope + value: performance + - uuid: 1a7ca7bf50f042f7b0f025604cbeb008 + name: 'CPU load, avg 5m' + type: DEPENDENT + key: nextcloud.serverinfo.cpu.avg.5m + delay: '0' + value_type: FLOAT + description: 'The average system load (the number of processes in the system run queue), last 5 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.ocs.data.nextcloud.system.cpuload[1]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: cpu + - uuid: 06a34d8efcc043bbb027dbbddd37c8a2 + name: 'CPU load, avg 15m' + type: DEPENDENT + key: nextcloud.serverinfo.cpu.avg.15m + delay: '0' + value_type: FLOAT + description: 'The average system load (the number of processes in the system run queue), last 15 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.ocs.data.nextcloud.system.cpuload[2]' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: cpu + - uuid: 725bdfe6f7eb4888b453c8ddd8907ba2 + name: 'Database size' + type: DEPENDENT + key: nextcloud.serverinfo.db.size + delay: '0' + units: B + description: 'Size of database.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.database.size + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: storage + - uuid: a1992a76942e4a8ebcd010ca73eed0af + name: 'Database type' + type: DEPENDENT + key: nextcloud.serverinfo.db.type + delay: '0' + value_type: CHAR + trends: '0' + description: 'Database type.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.database.type + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: environment + - uuid: 9a244bfd15a94f07a4f88947c10ff4b9 + name: 'Database version' + type: DEPENDENT + key: nextcloud.serverinfo.db.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Database description.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.database.version + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: environment + triggers: + - uuid: d59f8e583cc34c578946607433d254ca + expression: 'change(/Nextcloud by HTTP/nextcloud.serverinfo.db.version)=1 and length(last(/Nextcloud by HTTP/nextcloud.serverinfo.db.version))>0' + name: 'Nextcloud: Database version has changed' + event_name: 'Nextcloud: Database version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Database version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 77bfc58708a54e8f89d83c962b7c2dac + name: 'Free space' + type: DEPENDENT + key: nextcloud.serverinfo.freespace + delay: '0' + units: B + description: 'The amount of free disk space.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.nextcloud.system.freespace + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: storage + triggers: + - uuid: 6d9d52db83e34d83891cc3bb449d59b2 + expression: 'last(/Nextcloud by HTTP/nextcloud.serverinfo.freespace)<{$NEXTCLOUD.STORAGE.FREE.MIN}' + name: 'Nextcloud: Disk space is low' + event_name: 'Nextcloud: Disk space is low (free < {$NEXTCLOUD.STORAGE.FREE.MIN})' + priority: AVERAGE + description: | + Condition should be the following: + - the disk free space is less than `{$NEXTCLOUD.STORAGE.FREE.MIN}`; + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 8a7fb4062f484de4a8579ebb83b297a2 + name: 'Get server information' + type: HTTP_AGENT + key: nextcloud.serverinfo.get_data + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NEXTCLOUD.USER.NAME}' + password: '{$NEXTCLOUD.USER.PASSWORD}' + description: | + This item provides useful server information, such as CPU load, RAM usage, disk usage, number of users, etc. + https://github.com/nextcloud/serverinfo + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get data.' + timeout: 10s + url: '{$NEXTCLOUD.SCHEMA}://{$NEXTCLOUD.ADDRESS}/ocs/v2.php/apps/serverinfo/api/v1/info' + query_fields: + - name: format + value: json + - name: skipApps + value: 'false' + - name: skipUpdate + value: 'false' + status_codes: '200,401' + http_proxy: '{$NEXTCLOUD.PROXY}' + headers: + - name: OCS-APIRequest + value: 'true' + tags: + - tag: component + value: raw + - uuid: 1e96304bec7447329f91875b7beadf7d + name: 'Memory free' + type: DEPENDENT + key: nextcloud.serverinfo.mem.free + delay: '0' + units: B + description: 'The amount of free RAM.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.nextcloud.system.mem_free + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + - uuid: e4b20717f8ea48f49c8814955cbf5c6d + name: 'Memory used, in %' + type: DEPENDENT + key: nextcloud.serverinfo.mem.pused + delay: '0' + units: '%' + description: 'RAM usage, in percent.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + function getField(data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + } + + var data = JSON.parse(value), + mem_total = getField(data,'ocs.data.nextcloud.system.mem_total'), + mem_free = getField(data,'ocs.data.nextcloud.system.mem_free'); + + return Math.ceil(100 - mem_free / mem_total * 100); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + triggers: + - uuid: b1f8786b975c443bac5daf351c29cde5 + expression: 'min(/Nextcloud by HTTP/nextcloud.serverinfo.mem.pused,5m) > {$NEXTCLOUD.MEM.PUSED.MAX}' + name: 'Nextcloud: High memory utilization' + event_name: 'Nextcloud: High memory utilization (>{$NEXTCLOUD.MEM.PUSED.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: 04f69d7593a045a0815e78d65882c895 + name: 'Memory total' + type: DEPENDENT + key: nextcloud.serverinfo.mem.total + delay: '0' + units: B + description: 'The size of the RAM.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.nextcloud.system.mem_total + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + - uuid: e6a227bd9ae54d0faff1f591219d766f + name: 'PHP maximum execution time' + type: DEPENDENT + key: nextcloud.serverinfo.php.max_execution_time + delay: '0' + units: s + description: 'By default, the maximum execution time for PHP scripts is set to 30 seconds. If a script runs for longer than 30 seconds, PHP stops the script and reports an error. You can control the amount of time PHP allows scripts to run by changing the ''max_execution_time'' directive in your php.ini file.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.php.max_execution_time + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: environment + - uuid: 50e1ce974d154e98a6d2bfce8fed78e1 + name: 'PHP memory free' + type: DEPENDENT + key: nextcloud.serverinfo.php.memory.free + delay: '0' + units: B + description: 'PHP free memory size.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.php.opcache.memory_usage.free_memory + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + - uuid: 87819fcbbc9745fa93a47c7043906299 + name: 'PHP memory limit' + type: DEPENDENT + key: nextcloud.serverinfo.php.memory.limit + delay: '0' + units: B + description: 'By default, the PHP memory limit is generally set to 128 MB, but it can be customized based on the application''s specific needs. The php.ini file is usually the standard location to set the PHP memory limit.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.php.memory_limit + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + - uuid: 0b8c6ee4a95b49a3b0b7eabf5131e56f + name: 'PHP memory used, in %' + type: DEPENDENT + key: nextcloud.serverinfo.php.memory.pused + delay: '0' + units: '%' + description: 'PHP memory used percentage' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + function getField(data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + } + + var data = JSON.parse(value), + php_total = getField(data,'ocs.data.server.php.memory_limit'), + php_free = getField(data,'ocs.data.server.php.opcache.memory_usage.used_memory'); + + return Math.ceil(php_free / php_total * 100); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + triggers: + - uuid: ee778919cf91495da4445974afa039e9 + expression: 'min(/Nextcloud by HTTP/nextcloud.serverinfo.php.memory.pused,5m) > {$NEXTCLOUD.PHP.MEM.PUSED.MAX}' + name: 'Nextcloud: High PHP memory utilization' + event_name: 'Nextcloud: High PHP memory utilization (>{$NEXTCLOUD.PHP.MEM.PUSED.MAX}% for 5m)' + priority: AVERAGE + description: 'The PHP is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: 1db9f9c33eca4537b9069d358b27ac06 + name: 'PHP memory used' + type: DEPENDENT + key: nextcloud.serverinfo.php.memory.used + delay: '0' + units: B + description: 'PHP memory used' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.php.opcache.memory_usage.used_memory + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + - uuid: 5f4eb296e96f4e7f9760ee5e2a2b7064 + name: 'PHP memory wasted' + type: DEPENDENT + key: nextcloud.serverinfo.php.memory.wasted + delay: '0' + units: B + description: 'Memory allocated to the service but not in use.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.php.opcache.memory_usage.wasted_memory + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + - uuid: 63acb31d32b143baaca36cf7c1eaf673 + name: 'PHP memory wasted, in %' + type: DEPENDENT + key: nextcloud.serverinfo.php.memory.wasted_percentage + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory allocated to the service but not in use, in percent.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.php.opcache.memory_usage.current_wasted_percentage + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + - uuid: 080ff2fb09a343cc90e62e9fe640c45c + name: 'PHP maximum upload file size' + type: DEPENDENT + key: nextcloud.serverinfo.php.upload_max_filesize + delay: '0' + units: B + description: 'By default, the maximum upload file size for PHP scripts is set to 128 megabytes. However, you may want to change this limit. For example, you can set a lower limit to prevent users from uploading large files to your site. To do this, change the ''upload_max_filesize'' and ''post_max_size'' directives.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.php.upload_max_filesize + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: environment + - uuid: 59b08f54ce2a4d058f43c09dd1a9c469 + name: 'PHP version' + type: DEPENDENT + key: nextcloud.serverinfo.php.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'PHP version' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.server.php.version + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: environment + triggers: + - uuid: ff6e12cb84bb494a9ffc692b28862a25 + expression: 'change(/Nextcloud by HTTP/nextcloud.serverinfo.php.version)=1 and length(last(/Nextcloud by HTTP/nextcloud.serverinfo.php.version))>0' + name: 'Nextcloud: PHP version has changed' + event_name: 'Nextcloud: PHP version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The PHP version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e02be7c876e8452bbf3722038bac9634 + name: 'Server information status' + type: DEPENDENT + key: nextcloud.serverinfo.status + delay: '0' + value_type: CHAR + trends: '0' + description: 'Server information API status' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.meta.message + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: system + triggers: + - uuid: b44c435b48264626ae2ec5cb610edac9 + expression: 'last(/Nextcloud by HTTP/nextcloud.serverinfo.status)<>"OK"' + name: 'Nextcloud: Server information unavailable' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: HIGH + description: 'Failed to get server information.' + tags: + - tag: scope + value: availability + - uuid: 2551bef7fa0f4ee0acbfd6bd0c90ef76 + name: 'Swap free' + type: DEPENDENT + key: nextcloud.serverinfo.swap.free + delay: '0' + units: B + description: 'The amount of free swap.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.nextcloud.system.swap_free + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + - uuid: 8a625e77ba964a49945c6367d95f3a88 + name: 'Swap used, in %' + type: DEPENDENT + key: nextcloud.serverinfo.swap.pused + delay: '0' + units: '%' + description: 'Swap usage, in percent.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + function getField(data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + } + + var data = JSON.parse(value), + swap_total = getField(data,'ocs.data.nextcloud.system.swap_total'), + swap_free = getField(data,'ocs.data.nextcloud.system.swap_free'); + + return Math.ceil(100 - swap_free / swap_total * 100); + - type: STR_REPLACE + parameters: + - NaN + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + triggers: + - uuid: da09c1862385450196651573aec00178 + expression: 'min(/Nextcloud by HTTP/nextcloud.serverinfo.swap.pused,5m) > {$NEXTCLOUD.SWAP.PUSED.MAX}' + name: 'Nextcloud: High swap utilization' + event_name: 'Nextcloud: High swap utilization (>{$NEXTCLOUD.SWAP.PUSED.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free swap.' + tags: + - tag: scope + value: performance + - uuid: 361f440188a3415280e2b5f1b6b5aafb + name: 'Swap total' + type: DEPENDENT + key: nextcloud.serverinfo.swap.total + delay: '0' + units: B + description: 'The size of the swap memory.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.nextcloud.system.swap_total + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: memory + - uuid: 202ccbfe8b3748918bdad4ff2d203a2f + name: 'Instance update available' + type: DEPENDENT + key: nextcloud.serverinfo.update + delay: '0' + description: 'This metric indicates that an update for Nextcloud is available. Note that this metric doesn''t work on Nextcloud version 27 and lower.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.nextcloud.system.update.available + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: system + triggers: + - uuid: b31ccb1f04c148e4b4abc7bc6516c2d5 + expression: 'last(/Nextcloud by HTTP/nextcloud.serverinfo.update)=1' + name: 'Nextcloud: Server not up to date' + priority: INFO + description: 'A new Nextcloud version is available.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c4939cb87ff8495784e3937c4bc7e34d + name: Version + type: DEPENDENT + key: nextcloud.serverinfo.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Nextcloud service version.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.nextcloud.system.version + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nextcloud.serverinfo.get_data + tags: + - tag: component + value: system + triggers: + - uuid: e66591237ce643b0971e69b18a88a7cc + expression: 'change(/Nextcloud by HTTP/nextcloud.serverinfo.version)=1 and length(last(/Nextcloud by HTTP/nextcloud.serverinfo.version))>0' + name: 'Nextcloud: Version has changed' + event_name: 'Nextcloud: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Nextcloud version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 477477630aa14dd8b3940f7b95697893 + name: 'Nextcloud: User discovery' + type: HTTP_AGENT + key: nextcloud.user.discovery + delay: 1h + authtype: BASIC + username: '{$NEXTCLOUD.USER.NAME}' + password: '{$NEXTCLOUD.USER.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#NEXTCLOUD.USER}' + value: '{$NEXTCLOUD.LLD.FILTER.USER.MATCHES}' + formulaid: A + - macro: '{#NEXTCLOUD.USER}' + value: '{$NEXTCLOUD.LLD.FILTER.USER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + lifetime: 1d + description: 'User discovery.' + item_prototypes: + - uuid: eb16b38dd7e94aaa8ff103ffdec16858 + name: 'User "{#NEXTCLOUD.USER}": Display name' + type: DEPENDENT + key: 'nextcloud.user.displayname[{#NEXTCLOUD.USER}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'User visible name.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.displayname + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: environment + - tag: user + value: '{#NEXTCLOUD.USER}' + - uuid: ed4fcf54655d49d3971d3ca1a63c6df2 + name: 'User "{#NEXTCLOUD.USER}": Status' + type: DEPENDENT + key: 'nextcloud.user.enabled[{#NEXTCLOUD.USER}]' + delay: '0' + description: 'User account status.' + valuemap: + name: 'User status' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.enabled + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: environment + - tag: user + value: '{#NEXTCLOUD.USER}' + trigger_prototypes: + - uuid: 402851b8791c4f6da8f513e6e8c51f46 + expression: 'change(/Nextcloud by HTTP/nextcloud.user.enabled[{#NEXTCLOUD.USER}]) = 1' + name: 'Nextcloud: User "{#NEXTCLOUD.USER}" status changed' + priority: INFO + description: 'User account status has changed.' + tags: + - tag: scope + value: notice + - uuid: 78b3e2a8e7844b0ea5929dbecd8a2ed7 + name: 'User "{#NEXTCLOUD.USER}": Get data' + type: HTTP_AGENT + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$NEXTCLOUD.USER.NAME}' + password: '{$NEXTCLOUD.USER.PASSWORD}' + description: 'Get common information about user' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get data.' + timeout: 10s + url: '{$NEXTCLOUD.SCHEMA}://{$NEXTCLOUD.ADDRESS}/ocs/v1.php/cloud/users/{#NEXTCLOUD.USER}' + query_fields: + - name: format + value: json + status_codes: '200,401' + http_proxy: '{$NEXTCLOUD.PROXY}' + headers: + - name: OCS-APIRequest + value: 'true' + tags: + - tag: component + value: raw + - tag: user + value: '{#NEXTCLOUD.USER}' + - uuid: d69ff358ddfe4ef3b5cc2f4218495975 + name: 'User "{#NEXTCLOUD.USER}": Last login, days ago' + type: DEPENDENT + key: 'nextcloud.user.inactive[{#NEXTCLOUD.USER}]' + delay: '0' + value_type: FLOAT + units: '!days ago' + description: 'The number of days since the user has last logged in.' + valuemap: + name: 'Last activity' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + function getField(data, path) { + var steps = path.split('.'); + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + + data = data[step]; + } + + return data; + } + + var data = JSON.parse(value), + lastlogin = getField(data,'ocs.data.lastLogin'); + + if (lastlogin === '0') + return -1 + + return Math.floor((Date.now() - lastlogin) / 1000 / 86400); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: environment + - tag: user + value: '{#NEXTCLOUD.USER}' + trigger_prototypes: + - uuid: d2392d1b6e974a2da32de3a1f20f54a6 + expression: 'last(/Nextcloud by HTTP/nextcloud.user.inactive[{#NEXTCLOUD.USER}]) > {$NEXTCLOUD.USER.MAX.INACTIVE:"{#NEXTCLOUD.USER}"}' + name: 'Nextcloud: User "{#NEXTCLOUD.USER}": inactive' + event_name: 'Nextcloud: User "{#NEXTCLOUD.USER}": inactive over {$NEXTCLOUD.USER.MAX.INACTIVE:"{#NEXTCLOUD.USER}"} days' + priority: INFO + description: 'The user has not logged in for more than {$NEXTCLOUD.USER.MAX.INACTIVE:"{#NEXTCLOUD.USER}"} days.' + tags: + - tag: scope + value: notice + - uuid: ee0911775cb4404586aa38d95a4659a1 + name: 'User "{#NEXTCLOUD.USER}": Language' + type: DEPENDENT + key: 'nextcloud.user.language[{#NEXTCLOUD.USER}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'User language.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.language + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: environment + - tag: user + value: '{#NEXTCLOUD.USER}' + - uuid: fbf8643740a748019950eddea3baa79d + name: 'User "{#NEXTCLOUD.USER}": Last login' + type: DEPENDENT + key: 'nextcloud.user.lastLogin[{#NEXTCLOUD.USER}]' + delay: '0' + units: unixtime + description: 'The time the user has last logged in.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.lastLogin + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: environment + - tag: user + value: '{#NEXTCLOUD.USER}' + - uuid: 289504a5d93243ae8a8e1598c5568f25 + name: 'User "{#NEXTCLOUD.USER}": Quota free space' + type: DEPENDENT + key: 'nextcloud.user.quota.free[{#NEXTCLOUD.USER}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The size of the free available space in the user''s storage.' + valuemap: + name: 'Quota type' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.quota.free + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: storage + - tag: user + value: '{#NEXTCLOUD.USER}' + - uuid: 3764a92e1b8b40a29da63202d435f648 + name: 'User "{#NEXTCLOUD.USER}": Quota used space, in %' + type: DEPENDENT + key: 'nextcloud.user.quota.pused[{#NEXTCLOUD.USER}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Usage of the allocated storage space, in percent.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.quota.relative + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: storage + - tag: user + value: '{#NEXTCLOUD.USER}' + trigger_prototypes: + - uuid: e39849b5b7394bd88002441afa27907c + expression: 'min(/Nextcloud by HTTP/nextcloud.user.quota.pused[{#NEXTCLOUD.USER}],5m) > {$NEXTCLOUD.USER.QUOTA.PUSED.MAX:"{#NEXTCLOUD.USER}"}' + name: 'Nextcloud: User "{#NEXTCLOUD.USER}": High quota utilization' + event_name: 'Nextcloud: User "{#NEXTCLOUD.USER}" High quota utilization (>{$NEXTCLOUD.USER.QUOTA.PUSED.MAX:"{#NEXTCLOUD.USER}"}% for 5m)' + priority: WARNING + description: 'More than {$NEXTCLOUD.USER.QUOTA.PUSED.MAX:"{#NEXTCLOUD.USER}"} percent of the allocated storage space has been used.' + tags: + - tag: scope + value: capacity + - uuid: 1d939132880f43438fcf84c46540e1cb + name: 'User "{#NEXTCLOUD.USER}": Quota total space' + type: DEPENDENT + key: 'nextcloud.user.quota.total[{#NEXTCLOUD.USER}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The size of space available in the user''s storage.' + valuemap: + name: 'Quota type' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.quota.total + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: storage + - tag: user + value: '{#NEXTCLOUD.USER}' + - uuid: f0ff887fde504a1f86c0d6c8c4fb1285 + name: 'User "{#NEXTCLOUD.USER}": Quota used space' + type: DEPENDENT + key: 'nextcloud.user.quota.used[{#NEXTCLOUD.USER}]' + delay: '0' + units: B + description: 'The size of the used available space in the user storage.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.quota.used + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: storage + - tag: user + value: '{#NEXTCLOUD.USER}' + - uuid: ac6ec7674e544151a4c5457d203d1e90 + name: 'User "{#NEXTCLOUD.USER}": Quota' + type: DEPENDENT + key: 'nextcloud.user.quota[{#NEXTCLOUD.USER}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The size of space available in the user''s storage.' + valuemap: + name: 'Quota type' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.quota.quota + error_handler: DISCARD_VALUE + - type: STR_REPLACE + parameters: + - none + - '-99' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: storage + - tag: user + value: '{#NEXTCLOUD.USER}' + - uuid: a1841e2a74dc4238842d1ec6643000ae + name: 'User "{#NEXTCLOUD.USER}": Storage location' + type: DEPENDENT + key: 'nextcloud.user.storageLocation[{#NEXTCLOUD.USER}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The location of the user''s store.' + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.storageLocation + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nextcloud.user.get_data[{#NEXTCLOUD.USER}]' + tags: + - tag: component + value: environment + - tag: user + value: '{#NEXTCLOUD.USER}' + graph_prototypes: + - uuid: 54e9ed6ca0e44cbb9c7d309e5bc9aa1b + name: 'Nextcloud: User "{#NEXTCLOUD.USER}": Quota' + type: PIE + show_3d: 'YES' + graph_items: + - color: 81C784 + item: + host: 'Nextcloud by HTTP' + key: 'nextcloud.user.quota.free[{#NEXTCLOUD.USER}]' + - sortorder: '1' + color: FF5722 + item: + host: 'Nextcloud by HTTP' + key: 'nextcloud.user.quota.used[{#NEXTCLOUD.USER}]' + - uuid: 298d3eca259c47b28c03e25b007128fb + name: 'Nextcloud: User "{#NEXTCLOUD.USER}": Quota, history' + type: STACKED + graph_items: + - color: 81C784 + item: + host: 'Nextcloud by HTTP' + key: 'nextcloud.user.quota.free[{#NEXTCLOUD.USER}]' + - sortorder: '1' + color: FF5722 + item: + host: 'Nextcloud by HTTP' + key: 'nextcloud.user.quota.used[{#NEXTCLOUD.USER}]' + timeout: 10s + url: '{$NEXTCLOUD.SCHEMA}://{$NEXTCLOUD.ADDRESS}/ocs/v1.php/cloud/users?format=json' + http_proxy: '{$NEXTCLOUD.PROXY}' + headers: + - name: OCS-APIRequest + value: 'true' + lld_macro_paths: + - lld_macro: '{#NEXTCLOUD.USER}' + path: $.user_name + preprocessing: + - type: JSONPATH + parameters: + - $.ocs.data.users + error_handler: CUSTOM_VALUE + error_handler_params: '[]' + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(JSON.parse(value).map(function(user) {return {user_name: user}}));' + tags: + - tag: class + value: application + - tag: target + value: nextcloud + macros: + - macro: '{$NEXTCLOUD.ADDRESS}' + value: 127.0.0.1 + description: 'IP or DNS name of Nextcloud server.' + - macro: '{$NEXTCLOUD.CPU.LOAD.MAX}' + value: '95' + description: 'CPU load threshold (the number of processes in the system run queue).' + - macro: '{$NEXTCLOUD.LLD.FILTER.USER.MATCHES}' + value: '.*' + description: 'Filter of discoverable users by name.' + - macro: '{$NEXTCLOUD.LLD.FILTER.USER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered users by name.' + - macro: '{$NEXTCLOUD.MEM.PUSED.MAX}' + value: '90' + description: 'Memory utilization threshold.' + - macro: '{$NEXTCLOUD.PHP.MEM.PUSED.MAX}' + value: '90' + description: 'PHP memory utilization threshold.' + - macro: '{$NEXTCLOUD.PROXY}' + description: 'Proxy HTTP(S) address.' + - macro: '{$NEXTCLOUD.SCHEMA}' + value: https + description: 'HTTP or HTTPS protocol of Nextcloud.' + - macro: '{$NEXTCLOUD.STORAGE.FREE.MIN}' + value: 1G + description: 'Free space threshold.' + - macro: '{$NEXTCLOUD.SWAP.PUSED.MAX}' + value: '90' + description: 'Swap utilization threshold.' + - macro: '{$NEXTCLOUD.USER.MAX.INACTIVE}' + value: '30' + description: 'How many days a user can be inactive.' + - macro: '{$NEXTCLOUD.USER.NAME}' + value: root + description: 'Nextcloud username.' + - macro: '{$NEXTCLOUD.USER.PASSWORD}' + type: SECRET_TEXT + description: 'Nextcloud user password.' + - macro: '{$NEXTCLOUD.USER.QUOTA.PUSED.MAX}' + value: '90' + description: 'Storage utilization threshold.' + dashboards: + - uuid: 580aef505caa41619a3296dda70b6512 + name: Nextcloud + pages: + - name: 'Nextcloud: Overview' + widgets: + - type: item + name: 'Nextcloud: Version' + width: '6' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.version + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '2' + - type: graph + name: 'Nextcloud: Active users' + 'y': '2' + width: '72' + height: '6' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nextcloud by HTTP' + name: 'Nextcloud: Active users' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Nextcloud: CPU load' + 'y': '8' + width: '72' + height: '6' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nextcloud by HTTP' + name: 'Nextcloud: CPU load' + - type: STRING + name: reference + value: AAAAB + - type: graph + name: 'Nextcloud: Database size' + 'y': '14' + width: '72' + height: '6' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nextcloud by HTTP' + name: 'Nextcloud: Database: size' + - type: STRING + name: reference + value: AAAAC + - type: graph + name: 'Nextcloud: Memory utilization' + 'y': '20' + width: '72' + height: '6' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nextcloud by HTTP' + name: 'Nextcloud: Memory utilization' + - type: STRING + name: reference + value: AAAAD + - type: item + name: 'Nextcloud: Web server' + x: '6' + width: '18' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.apps.webserver + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '2' + - type: item + name: 'Nextcloud: Free space' + x: '24' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.freespace + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '2' + - type: item + name: 'Nextcloud: Database' + x: '36' + width: '36' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.db.version + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '2' + - name: 'Nextcloud: Users' + widgets: + - type: graphprototype + name: 'Nextcloud: User quota usage' + width: '72' + height: '24' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Nextcloud by HTTP' + name: 'Nextcloud: User "{#NEXTCLOUD.USER}": Quota, history' + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: rows + value: '4' + valuemaps: + - uuid: b0913f72fb804d5ab9ef0e9ce13dc61a + name: Boolean + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: 19c5ab8f192d42f4bd35a969bef3c9d6 + name: 'Last activity' + mappings: + - value: '0' + newvalue: Today + - value: '1' + newvalue: Yesterday + - value: '-1' + newvalue: Never + - type: IN_RANGE + value: 2-7 + newvalue: 'This week' + - uuid: 18f5c94273b24b88a96bdf9d01b8d63b + name: 'Quota type' + mappings: + - value: '-3' + newvalue: Unlimited + - value: '-99' + newvalue: Unknown + - uuid: 3265bb49d935495abbcf8b24fbe8ed91 + name: 'User status' + mappings: + - value: '0' + newvalue: Disabled + - value: '1' + newvalue: Enabled + graphs: + - uuid: 46bd62563ab9414b868818271a8715ee + name: 'Nextcloud: Active users' + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.active_users.last5m + - sortorder: '1' + color: FFD54F + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.active_users.last1h + - sortorder: '2' + drawtype: BOLD_LINE + color: FF5722 + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.active_users.last24hours + - uuid: 7dbbcf04d99842f39292a29b1b71b3de + name: 'Nextcloud: CPU load' + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.cpu.avg.1m + - sortorder: '1' + color: FFD54F + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.cpu.avg.5m + - sortorder: '2' + drawtype: BOLD_LINE + color: FF5722 + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.cpu.avg.15m + - uuid: fff2891ee9f04a9abc259a4cafd4a2a1 + name: 'Nextcloud: Database: size' + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.db.size + - uuid: ced411f851ea4c11805d6bbdd3f20c61 + name: 'Nextcloud: Memory utilization' + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.mem.pused + - sortorder: '1' + color: FFD54F + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.swap.pused + - sortorder: '2' + drawtype: BOLD_LINE + color: FF5722 + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.php.memory.pused + - sortorder: '3' + color: 64B5F6 + item: + host: 'Nextcloud by HTTP' + key: nextcloud.serverinfo.php.memory.wasted_percentage diff --git a/Nginx_by_HTTP.yaml b/Nginx_by_HTTP.yaml new file mode 100644 index 0000000..7587ca8 --- /dev/null +++ b/Nginx_by_HTTP.yaml @@ -0,0 +1,468 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 13d5bb0a4ae84228bff408aab5be338e + template: 'Nginx by HTTP' + name: 'Nginx by HTTP' + description: | + This template is developed to monitor Nginx by Zabbix that works without any external scripts. + Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. + + The template collects metrics by polling the module 'ngx_http_stub_status_module' with HTTP agent remotely: + https://nginx.ru/en/docs/http/ngx_http_stub_status_module.html + + Active connections: 291 + server accepts handled requests + 16630948 16630948 31070465 + Reading: 6 Writing: 179 Waiting: 106 + + Setup: + + 1. See the setup instructions for 'ngx_http_stub_status_module': + https://nginx.ru/en/docs/http/ngx_http_stub_status_module.html + + Test the availability of the 'http_stub_status_module' with 'nginx -V 2>&1 | grep -o with-http_stub_status_module'. + + Example configuration of Nginx: + + location = /basic_status { + stub_status; + allow ; + deny all; + } + + 2. Set the hostname or IP address of the Nginx host or Nginx container in the '{$NGINX.STUB_STATUS.HOST}' macro. You can also change the status page port in the '{$NGINX.STUB_STATUS.PORT}' macro, the status page scheme in the '{$NGINX.STUB_STATUS.SCHEME}' macro and the status page path in the '{$NGINX.STUB_STATUS.PATH}' macro if necessary. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384765-discussion-thread-for-official-zabbix-template-nginx + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 18c6209295b347e2a96ef11b147139d8 + name: 'Service response time' + type: SIMPLE + key: 'net.tcp.service.perf[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"]' + value_type: FLOAT + units: s + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: fc1f7927b8864996986c1da44df57279 + expression: 'min(/Nginx by HTTP/net.tcp.service.perf[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"],5m)>{$NGINX.RESPONSE_TIME.MAX.WARN}' + name: 'Nginx: Service response time is too high' + event_name: 'Nginx: Service response time is too high (over {$NGINX.RESPONSE_TIME.MAX.WARN}s for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'Nginx: Service is down' + expression: 'last(/Nginx by HTTP/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0' + tags: + - tag: scope + value: performance + - uuid: e4a09193bc8f42f2888ece83f89f84af + name: 'Service status' + type: SIMPLE + key: 'net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 7b3de87ba0ea425280d42235bb626b8b + expression: 'last(/Nginx by HTTP/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0' + name: 'Nginx: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: e054b58ebbbe4b45961ba697b468ab9e + name: 'Connections accepted per second' + type: DEPENDENT + key: nginx.connections.accepted.rate + delay: '0' + value_type: FLOAT + description: 'The total number of accepted client connections.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \1 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nginx.get_stub_status + tags: + - tag: component + value: connections + - uuid: 2e4b049ab60947d9a05165f67388e531 + name: 'Connections active' + type: DEPENDENT + key: nginx.connections.active + delay: '0' + description: 'The current number of active client connections including waiting connections.' + preprocessing: + - type: REGEX + parameters: + - 'Active connections: ([0-9]+)' + - \1 + master_item: + key: nginx.get_stub_status + tags: + - tag: component + value: connections + - uuid: eecc0e887a744627be7f3b01cec6d46e + name: 'Connections dropped per second' + type: DEPENDENT + key: nginx.connections.dropped.rate + delay: '0' + value_type: FLOAT + description: 'The total number of dropped client connections.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var a = value.match(/server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)/) + if (a) { + return a[1]-a[2] + } + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nginx.get_stub_status + tags: + - tag: component + value: connections + triggers: + - uuid: 79767fbc18594069a1fc0cbec832f8ff + expression: 'min(/Nginx by HTTP/nginx.connections.dropped.rate,5m) > {$NGINX.DROP_RATE.MAX.WARN}' + name: 'Nginx: High connections drop rate' + event_name: 'Nginx: High connections drop rate (more than {$NGINX.DROP_RATE.MAX.WARN} for 5m)' + opdata: 'Current rate: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The rate of dropping connections has been greater than {$NGINX.DROP_RATE.MAX.WARN} for the last 5 minutes.' + dependencies: + - name: 'Nginx: Service is down' + expression: 'last(/Nginx by HTTP/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0' + tags: + - tag: scope + value: performance + - uuid: a53cf4f2d2ad4a84a70ff57df6299adc + name: 'Connections handled per second' + type: DEPENDENT + key: nginx.connections.handled.rate + delay: '0' + value_type: FLOAT + description: 'The total number of handled connections. Generally, the parameter value is the same as for the accepted connections, unless some resource limits have been reached (for example, the `worker_connections limit`).' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \2 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nginx.get_stub_status + tags: + - tag: component + value: connections + - uuid: 73493cbf8508419a8fed3abff8cc5851 + name: 'Connections reading' + type: DEPENDENT + key: nginx.connections.reading + delay: '0' + description: 'The current number of connections where Nginx is reading the request header.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \1 + master_item: + key: nginx.get_stub_status + tags: + - tag: component + value: connections + - uuid: cf393814511a48b498da8aab94d7ca00 + name: 'Connections waiting' + type: DEPENDENT + key: nginx.connections.waiting + delay: '0' + description: 'The current number of idle client connections waiting for a request.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \3 + master_item: + key: nginx.get_stub_status + tags: + - tag: component + value: connections + - uuid: b0d63efb16984042945fe42e192f7d4e + name: 'Connections writing' + type: DEPENDENT + key: nginx.connections.writing + delay: '0' + description: 'The current number of connections where Nginx is writing a response back to the client.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \2 + master_item: + key: nginx.get_stub_status + tags: + - tag: component + value: connections + - uuid: 86f93d1941d147fe94d754eddd3e8ff2 + name: 'Get stub status page' + type: HTTP_AGENT + key: nginx.get_stub_status + history: 1h + value_type: TEXT + trends: '0' + description: | + The following status information is provided: + `Active connections` - the current number of active client connections including waiting connections. + `Accepted` - the total number of accepted client connections. + `Handled` - the total number of handled connections. Generally, the parameter value is the same as for the accepted connections, unless some resource limits have been reached (for example, the `worker_connections` limit). + `Requests` - the total number of client requests. + `Reading` - the current number of connections where Nginx is reading the request header. + `Writing` - the current number of connections where Nginx is writing a response back to the client. + `Waiting` - the current number of idle client connections waiting for a request. + + See also [Module ngx_http_stub_status_module](https://nginx.org/en/docs/http/ngx_http_stub_status_module.html). + url: '{$NGINX.STUB_STATUS.SCHEME}://{$NGINX.STUB_STATUS.HOST}:{$NGINX.STUB_STATUS.PORT}/{$NGINX.STUB_STATUS.PATH}' + retrieve_mode: BOTH + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 78e0a6322a1941469a0e108a9367c420 + expression: | + find(/Nginx by HTTP/nginx.get_stub_status,,"iregexp","HTTP\\/[\\d.]+\\s+200")=0 or + nodata(/Nginx by HTTP/nginx.get_stub_status,30m)=1 + name: 'Nginx: Failed to fetch stub status page' + event_name: 'Nginx: Failed to fetch stub 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: 'Nginx: Service is down' + expression: 'last(/Nginx by HTTP/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: 071b3d77324740a59045be19da231d76 + name: 'Requests total' + type: DEPENDENT + key: nginx.requests.total + delay: '0' + description: 'The total number of client requests.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \3 + master_item: + key: nginx.get_stub_status + tags: + - tag: component + value: requests + - uuid: 81b17056ec664f9f926a74ee390ab9c1 + name: 'Requests per second' + type: DEPENDENT + key: nginx.requests.total.rate + delay: '0' + value_type: FLOAT + description: 'The total number of client requests.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \3 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: nginx.get_stub_status + tags: + - tag: component + value: requests + - uuid: 716b627d6d894ac2af3ae8c4aeaa8c0c + name: Version + type: DEPENDENT + key: nginx.version + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: REGEX + parameters: + - '(?i)Server: nginx\/(.+(?last(/Nginx by HTTP/nginx.version,#2) and length(last(/Nginx by HTTP/nginx.version))>0' + name: 'Nginx: Version has changed' + event_name: 'Nginx: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Nginx version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + tags: + - tag: class + value: software + - tag: target + value: nginx + macros: + - macro: '{$NGINX.DROP_RATE.MAX.WARN}' + value: '1' + description: 'The critical rate of the dropped connections for a trigger expression.' + - macro: '{$NGINX.RESPONSE_TIME.MAX.WARN}' + value: '10' + description: 'The maximum response time of Nginx expressed in seconds for a trigger expression.' + - macro: '{$NGINX.STUB_STATUS.HOST}' + value: '' + description: 'The hostname or IP address of the Nginx host or Nginx container of a stub_status.' + - macro: '{$NGINX.STUB_STATUS.PATH}' + value: basic_status + description: 'The path of the `Nginx stub_status` page.' + - macro: '{$NGINX.STUB_STATUS.PORT}' + value: '80' + description: 'The port of the `Nginx stub_status` host or container.' + - macro: '{$NGINX.STUB_STATUS.SCHEME}' + value: http + description: 'The protocol http or https of Nginx stub_status host or container.' + dashboards: + - uuid: 7d0bf76f09204bb7ba9ee995bf161d46 + name: 'Nginx performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nginx by HTTP' + name: 'Nginx: Connections by state' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nginx by HTTP' + name: 'Nginx: Connections per second' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nginx by HTTP' + name: 'Nginx: Requests per second' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 5c0883d194e8494498474106c22be2ca + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: aedcbacee74f4b0c861546c56e0fa9ab + name: 'Nginx: Connections by state' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Nginx by HTTP' + key: nginx.connections.active + - sortorder: '1' + color: F63100 + item: + host: 'Nginx by HTTP' + key: nginx.connections.waiting + - sortorder: '2' + color: 00611C + item: + host: 'Nginx by HTTP' + key: nginx.connections.writing + - sortorder: '3' + color: F7941D + item: + host: 'Nginx by HTTP' + key: nginx.connections.reading + - uuid: 6feb26e5eb3246c0adb8d151b1443859 + name: 'Nginx: Connections per second' + graph_items: + - color: 199C0D + item: + host: 'Nginx by HTTP' + key: nginx.connections.accepted.rate + - sortorder: '1' + color: F63100 + item: + host: 'Nginx by HTTP' + key: nginx.connections.handled.rate + - sortorder: '2' + color: 00611C + item: + host: 'Nginx by HTTP' + key: nginx.connections.dropped.rate + - uuid: 43a87936b35d4d28a658f810c2162a72 + name: 'Nginx: Requests per second' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Nginx by HTTP' + key: nginx.requests.total.rate diff --git a/Nginx_by_Zabbix_agent.yaml b/Nginx_by_Zabbix_agent.yaml new file mode 100644 index 0000000..1ef1cbf --- /dev/null +++ b/Nginx_by_Zabbix_agent.yaml @@ -0,0 +1,590 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 27f6424905884dbb96ab9210d987a56c + template: 'Nginx by Zabbix agent' + name: 'Nginx by Zabbix agent' + description: | + Get metrics from stub status module using Zabbix agent running on Linux + https://nginx.ru/en/docs/http/ngx_http_stub_status_module.html + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384765-discussion-thread-for-official-zabbix-template-nginx + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 75a7795df3034835bcfd143f7c3e9b94 + name: 'Service response time' + key: 'net.tcp.service.perf[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"]' + value_type: FLOAT + units: s + tags: + - tag: component + value: application + - tag: component + value: health + - uuid: f06e76888f464e13b7cc4c3db33e8131 + name: 'Service status' + key: 'net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + - uuid: 9e2be446ac79491c8be1bcd789392066 + name: 'Connections accepted per second' + type: DEPENDENT + key: nginx.connections.accepted.rate + delay: '0' + value_type: FLOAT + description: 'The total number of accepted client connections.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \1 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 436f2dc87cda418eb8f19ed6910c7bd0 + name: 'Connections active' + type: DEPENDENT + key: nginx.connections.active + delay: '0' + description: 'The current number of active client connections including waiting connections.' + preprocessing: + - type: REGEX + parameters: + - 'Active connections: ([0-9]+)' + - \1 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 4027e6db5e024aff98056faa2d4b43cd + name: 'Connections dropped per second' + type: DEPENDENT + key: nginx.connections.dropped.rate + delay: '0' + value_type: FLOAT + description: 'The total number of dropped client connections.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var a = value.match(/server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)/) + if (a) { + return a[1]-a[2] + } + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 06191636a7104e1bb40d197493b80958 + name: 'Connections handled per second' + type: DEPENDENT + key: nginx.connections.handled.rate + delay: '0' + value_type: FLOAT + description: 'The total number of handled connections. Generally, the parameter value is the same as for the accepted connections, unless some resource limits have been reached (for example, the `worker_connections limit`).' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \2 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: f5925c78389143c7924432483a5c716c + name: 'Connections reading' + type: DEPENDENT + key: nginx.connections.reading + delay: '0' + description: 'The current number of connections where Nginx is reading the request header.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \1 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: d6cfa828ba344ffe948d8d985b849316 + name: 'Connections waiting' + type: DEPENDENT + key: nginx.connections.waiting + delay: '0' + description: 'The current number of idle client connections waiting for a request.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \3 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: c038a572f73f4a418ddcc5aeb8b0a547 + name: 'Connections writing' + type: DEPENDENT + key: nginx.connections.writing + delay: '0' + description: 'The current number of connections where Nginx is writing a response back to the client.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \2 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: b28444fb9b834d03a72036882c80b921 + name: 'Requests total' + type: DEPENDENT + key: nginx.requests.total + delay: '0' + description: 'The total number of client requests.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \3 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: requests + - uuid: 2600a696278f490f86cadd8c8836f269 + name: 'Requests per second' + type: DEPENDENT + key: nginx.requests.total.rate + delay: '0' + value_type: FLOAT + description: 'The total number of client requests.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \3 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: requests + - uuid: 3dcc81006977478f92be6dd040d66eb5 + name: Version + type: DEPENDENT + key: nginx.version + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: REGEX + parameters: + - '(?i)Server: nginx\/(.+(?last(/Nginx by Zabbix agent/nginx.version,#2) and length(last(/Nginx by Zabbix agent/nginx.version))>0' + name: 'Nginx: Version has changed' + event_name: 'Nginx: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Nginx version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d43b4b99b6084076a4feb1fde51ecc40 + name: 'Get processes summary' + key: 'proc.get[{$NGINX.PROCESS.NAME.PARAMETER},,,summary]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The aggregated data of summary metrics for all processes.' + tags: + - tag: component + value: raw + - uuid: 52a23a9f6d60490c8f5565b938154f61 + name: 'Get stub status page' + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + history: 1h + value_type: TEXT + trends: '0' + description: | + The following status information is provided: + `Active connections` - the current number of active client connections including waiting connections. + `Accepted` - the total number of accepted client connections. + `Handled` - the total number of handled connections. Generally, the parameter value is the same as for the accepted connections, unless some resource limits have been reached (for example, the `worker_connections` limit). + `Requests` - the total number of client requests. + `Reading` - the current number of connections where Nginx is reading the request header. + `Writing` - the current number of connections where Nginx is writing a response back to the client. + `Waiting` - the current number of idle client connections waiting for a request. + + See also [Module ngx_http_stub_status_module](https://nginx.org/en/docs/http/ngx_http_stub_status_module.html). + tags: + - tag: component + value: application + - tag: component + value: health + discovery_rules: + - uuid: f4a898f929c54b3493506e68703fa2cc + name: 'Nginx process discovery' + type: DEPENDENT + key: nginx.proc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NGINX.NAME}' + value: '{$NGINX.PROCESS_NAME}' + formulaid: A + description: 'The discovery of Nginx process summary.' + item_prototypes: + - uuid: 632e441011674f04886096475180dcbb + name: 'Get process data' + type: DEPENDENT + key: 'nginx.proc.get[{#NGINX.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The summary metrics aggregated by a process {#NGINX.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@["name"]=="{#NGINX.NAME}")].first()' + error_handler: CUSTOM_VALUE + error_handler_params: 'Failed to retrieve process {#NGINX.NAME} data' + master_item: + key: 'proc.get[{$NGINX.PROCESS.NAME.PARAMETER},,,summary]' + tags: + - tag: component + value: raw + - uuid: ba3da6baccee4b31947bf20d3cae0e5f + name: 'Number of running processes' + type: DEPENDENT + key: 'nginx.proc.num[{#NGINX.NAME}]' + delay: '0' + description: 'The number of running processes {#NGINX.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.processes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nginx.proc.get[{#NGINX.NAME}]' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 903e6a1f30154ee49df3f8d87e0164cc + expression: 'last(/Nginx by Zabbix agent/nginx.proc.num[{#NGINX.NAME}])=0' + name: 'Nginx: Process is not running' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 5887d0062bed4233a03d4f408fac7163 + name: 'Memory usage, %' + type: DEPENDENT + key: 'nginx.proc.pmem[{#NGINX.NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of real memory used by a process {#NGINX.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.pmem + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.proc.get[{#NGINX.NAME}]' + tags: + - tag: component + value: memory + - uuid: 64d208475c034bae953a64cde1833ebb + name: 'Memory usage (rss)' + type: DEPENDENT + key: 'nginx.proc.rss[{#NGINX.NAME}]' + delay: '0' + units: B + description: 'The summary of resident set size memory used by a process {#NGINX.NAME} expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.rss + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.proc.get[{#NGINX.NAME}]' + tags: + - tag: component + value: memory + - uuid: 21fccb0286fb407c85f1972e994c698e + name: 'Memory usage (vsize)' + type: DEPENDENT + key: 'nginx.proc.vmem[{#NGINX.NAME}]' + delay: '0' + units: B + description: 'The summary of virtual memory used by a process {#NGINX.NAME} expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.vsize + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.proc.get[{#NGINX.NAME}]' + tags: + - tag: component + value: memory + - uuid: 84c95c1955bf4ccaa12a060a9acdb478 + name: 'CPU utilization' + key: 'proc.cpu.util[{#NGINX.NAME}]' + value_type: FLOAT + units: '%' + description: 'The percentage of the CPU utilization by a process {#NGINX.NAME}.' + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: a497b80eb03f469c9552881b498003b2 + expression: | + (find(/Nginx by Zabbix agent/web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"],,"iregexp","HTTP\\/[\\d.]+\\s+200")=0 or + nodata(/Nginx by Zabbix agent/web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"],30m)) and last(/Nginx by Zabbix agent/nginx.proc.num[{#NGINX.NAME}])>0 + name: 'Nginx: Failed to fetch stub status page' + event_name: 'Nginx: Failed to fetch stub 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: 'Nginx: Service is down' + expression: 'last(/Nginx by Zabbix agent/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent/nginx.proc.num[{#NGINX.NAME}])>0' + tags: + - tag: scope + value: availability + - uuid: f2d431fa9bc446608caa3f80ef27c41b + expression: 'min(/Nginx by Zabbix agent/nginx.connections.dropped.rate,5m) > {$NGINX.DROP_RATE.MAX.WARN} and last(/Nginx by Zabbix agent/nginx.proc.num[{#NGINX.NAME}])>0' + name: 'Nginx: High connections drop rate' + event_name: 'Nginx: High connections drop rate (more than {$NGINX.DROP_RATE.MAX.WARN} for 5m)' + opdata: 'Current rate: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The rate of dropping connections has been greater than {$NGINX.DROP_RATE.MAX.WARN} for the last 5 minutes.' + dependencies: + - name: 'Nginx: Service is down' + expression: 'last(/Nginx by Zabbix agent/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent/nginx.proc.num[{#NGINX.NAME}])>0' + tags: + - tag: scope + value: performance + - uuid: c043191c22f34522ba4f83430d9f88b1 + expression: 'last(/Nginx by Zabbix agent/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent/nginx.proc.num[{#NGINX.NAME}])>0' + name: 'Nginx: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f5db329410a14609a5f3e883ca493cc8 + expression: 'min(/Nginx by Zabbix agent/net.tcp.service.perf[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"],5m)>{$NGINX.RESPONSE_TIME.MAX.WARN} and last(/Nginx by Zabbix agent/nginx.proc.num[{#NGINX.NAME}])>0' + name: 'Nginx: Service response time is too high' + event_name: 'Nginx: Service response time is too high (over {$NGINX.RESPONSE_TIME.MAX.WARN}s for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'Nginx: Service is down' + expression: 'last(/Nginx by Zabbix agent/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent/nginx.proc.num[{#NGINX.NAME}])>0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 69ca908afa1d468d983a263d06910925 + name: 'Nginx: Memory usage[{#NGINX.NAME}]' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Nginx by Zabbix agent' + key: 'nginx.proc.vmem[{#NGINX.NAME}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Nginx by Zabbix agent' + key: 'nginx.proc.rss[{#NGINX.NAME}]' + master_item: + key: 'proc.get[{$NGINX.PROCESS.NAME.PARAMETER},,,summary]' + lld_macro_paths: + - lld_macro: '{#NGINX.NAME}' + path: $.name + tags: + - tag: class + value: software + - tag: target + value: nginx + macros: + - macro: '{$NGINX.DROP_RATE.MAX.WARN}' + value: '1' + description: 'The critical rate of the dropped connections for a trigger expression.' + - macro: '{$NGINX.PROCESS.NAME.PARAMETER}' + description: 'The process name of the Nginx server used in the item key `proc.get`. It could be specified if the correct process name is known.' + - macro: '{$NGINX.PROCESS_NAME}' + value: nginx + description: 'The process name filter for the Nginx process discovery.' + - macro: '{$NGINX.RESPONSE_TIME.MAX.WARN}' + value: '10' + description: 'The maximum response time of Nginx expressed in seconds for a trigger expression.' + - macro: '{$NGINX.STUB_STATUS.HOST}' + value: localhost + description: 'The hostname or IP address of the Nginx host or Nginx container of `astub_status`.' + - macro: '{$NGINX.STUB_STATUS.PATH}' + value: basic_status + description: 'The path of the `Nginx stub_status` page.' + - macro: '{$NGINX.STUB_STATUS.PORT}' + value: '80' + description: 'The port of the `Nginx stub_status` host or container.' + dashboards: + - uuid: 9d071e3a148c405e85c53ef25d54efaf + name: 'Nginx performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nginx by Zabbix agent' + name: 'Nginx: Connections by state' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nginx by Zabbix agent' + name: 'Nginx: Connections per second' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nginx by Zabbix agent' + name: 'Nginx: Requests per second' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 53c8528c18814f30a45d1540ab9e5c00 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: ba234158aeca468a8592d944f9aae691 + name: 'Nginx: Connections by state' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.active + - sortorder: '1' + color: F63100 + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.waiting + - sortorder: '2' + color: 00611C + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.writing + - sortorder: '3' + color: F7941D + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.reading + - uuid: b82a5b89864a47638421458f3e74563d + name: 'Nginx: Connections per second' + graph_items: + - color: 199C0D + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.accepted.rate + - sortorder: '1' + color: F63100 + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.handled.rate + - sortorder: '2' + color: 00611C + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.dropped.rate + - uuid: a2d2fec823514df09731381304c245e9 + name: 'Nginx: Requests per second' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Nginx by Zabbix agent' + key: nginx.requests.total.rate diff --git a/Nginx_by_Zabbix_agent_active.yaml b/Nginx_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..e5e051d --- /dev/null +++ b/Nginx_by_Zabbix_agent_active.yaml @@ -0,0 +1,595 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: d2cebb67b4d94a12a072db85e7be6a33 + template: 'Nginx by Zabbix agent active' + name: 'Nginx by Zabbix agent active' + description: | + Get metrics from stub status module using Zabbix agent running on Linux + https://nginx.ru/en/docs/http/ngx_http_stub_status_module.html + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384765-discussion-thread-for-official-zabbix-template-nginx + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 09762f260f544f57afa5157c6bc632a3 + name: 'Service response time' + type: ZABBIX_ACTIVE + key: 'net.tcp.service.perf[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"]' + value_type: FLOAT + units: s + tags: + - tag: component + value: application + - tag: component + value: health + - uuid: b68e4123d7c9483c9f77bc9c27fd0e7c + name: 'Service status' + type: ZABBIX_ACTIVE + key: 'net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + - uuid: 8db87e1a5a6e478eb4e554b477abb5a4 + name: 'Connections accepted per second' + type: DEPENDENT + key: nginx.connections.accepted.rate + delay: '0' + value_type: FLOAT + description: 'The total number of accepted client connections.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \1 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: cdc0f7d6ad334a219221d7c0b7bf866c + name: 'Connections active' + type: DEPENDENT + key: nginx.connections.active + delay: '0' + description: 'The current number of active client connections including waiting connections.' + preprocessing: + - type: REGEX + parameters: + - 'Active connections: ([0-9]+)' + - \1 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 7dea09085ee84f79837e6f43485f39df + name: 'Connections dropped per second' + type: DEPENDENT + key: nginx.connections.dropped.rate + delay: '0' + value_type: FLOAT + description: 'The total number of dropped client connections.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var a = value.match(/server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)/) + if (a) { + return a[1]-a[2] + } + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: eb25d53ee75148fa890054b116fb8960 + name: 'Connections handled per second' + type: DEPENDENT + key: nginx.connections.handled.rate + delay: '0' + value_type: FLOAT + description: 'The total number of handled connections. Generally, the parameter value is the same as for the accepted connections, unless some resource limits have been reached (for example, the `worker_connections limit`).' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \2 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 22d33954da1243c8a2c015f873f7cff3 + name: 'Connections reading' + type: DEPENDENT + key: nginx.connections.reading + delay: '0' + description: 'The current number of connections where Nginx is reading the request header.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \1 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 92c8ccf4863d46e1848fe2c61e0a86e2 + name: 'Connections waiting' + type: DEPENDENT + key: nginx.connections.waiting + delay: '0' + description: 'The current number of idle client connections waiting for a request.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \3 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: e5c99f0d7d714168a5ecd100aa42a63a + name: 'Connections writing' + type: DEPENDENT + key: nginx.connections.writing + delay: '0' + description: 'The current number of connections where Nginx is writing a response back to the client.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \2 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 9276808621ea44e19afd6e42ed4002ee + name: 'Requests total' + type: DEPENDENT + key: nginx.requests.total + delay: '0' + description: 'The total number of client requests.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \3 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: requests + - uuid: bc688f502c2940d584f22ace27342b92 + name: 'Requests per second' + type: DEPENDENT + key: nginx.requests.total.rate + delay: '0' + value_type: FLOAT + description: 'The total number of client requests.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \3 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: requests + - uuid: 3667a75132654b01b1e0aff6ed059353 + name: Version + type: DEPENDENT + key: nginx.version + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: REGEX + parameters: + - '(?i)Server: nginx\/(.+(?last(/Nginx by Zabbix agent active/nginx.version,#2) and length(last(/Nginx by Zabbix agent active/nginx.version))>0' + name: 'Nginx: Version has changed' + event_name: 'Nginx: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Nginx version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 94bb17445cf14e909fede8b7060c0211 + name: 'Get processes summary' + type: ZABBIX_ACTIVE + key: 'proc.get[{$NGINX.PROCESS.NAME.PARAMETER},,,summary]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The aggregated data of summary metrics for all processes.' + tags: + - tag: component + value: raw + - uuid: 04ed4f82a84b4a81aa8d1682e7a70b5f + name: 'Get stub status page' + type: ZABBIX_ACTIVE + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + history: 1h + value_type: TEXT + trends: '0' + description: | + The following status information is provided: + `Active connections` - the current number of active client connections including waiting connections. + `Accepted` - the total number of accepted client connections. + `Handled` - the total number of handled connections. Generally, the parameter value is the same as for the accepted connections, unless some resource limits have been reached (for example, the `worker_connections` limit). + `Requests` - the total number of client requests. + `Reading` - the current number of connections where Nginx is reading the request header. + `Writing` - the current number of connections where Nginx is writing a response back to the client. + `Waiting` - the current number of idle client connections waiting for a request. + + See also [Module ngx_http_stub_status_module](https://nginx.org/en/docs/http/ngx_http_stub_status_module.html). + tags: + - tag: component + value: application + - tag: component + value: health + discovery_rules: + - uuid: b0fa23a0c13b4c11b79369d6cfadc0bb + name: 'Nginx process discovery' + type: DEPENDENT + key: nginx.proc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NGINX.NAME}' + value: '{$NGINX.PROCESS_NAME}' + formulaid: A + description: 'The discovery of Nginx process summary.' + item_prototypes: + - uuid: 4a897c7bc31f4413b8c0d0eb050d0eac + name: 'Get process data' + type: DEPENDENT + key: 'nginx.proc.get[{#NGINX.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The summary metrics aggregated by a process {#NGINX.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@["name"]=="{#NGINX.NAME}")].first()' + error_handler: CUSTOM_VALUE + error_handler_params: 'Failed to retrieve process {#NGINX.NAME} data' + master_item: + key: 'proc.get[{$NGINX.PROCESS.NAME.PARAMETER},,,summary]' + tags: + - tag: component + value: raw + - uuid: f75fa5d7714941d0b25c9e8767a7a7f7 + name: 'Number of running processes' + type: DEPENDENT + key: 'nginx.proc.num[{#NGINX.NAME}]' + delay: '0' + description: 'The number of running processes {#NGINX.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.processes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nginx.proc.get[{#NGINX.NAME}]' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: c95c9632cded4bf48df1c736ec7078c5 + expression: 'last(/Nginx by Zabbix agent active/nginx.proc.num[{#NGINX.NAME}])=0' + name: 'Nginx: Process is not running' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 73bee8a0acc84c678a0b1974dbb82964 + name: 'Memory usage, %' + type: DEPENDENT + key: 'nginx.proc.pmem[{#NGINX.NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of real memory used by a process {#NGINX.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.pmem + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.proc.get[{#NGINX.NAME}]' + tags: + - tag: component + value: memory + - uuid: e799880b7374482196780173461213af + name: 'Memory usage (rss)' + type: DEPENDENT + key: 'nginx.proc.rss[{#NGINX.NAME}]' + delay: '0' + units: B + description: 'The summary of resident set size memory used by a process {#NGINX.NAME} expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.rss + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.proc.get[{#NGINX.NAME}]' + tags: + - tag: component + value: memory + - uuid: d993483fab9a41f5b5a6457e09647288 + name: 'Memory usage (vsize)' + type: DEPENDENT + key: 'nginx.proc.vmem[{#NGINX.NAME}]' + delay: '0' + units: B + description: 'The summary of virtual memory used by a process {#NGINX.NAME} expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.vsize + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.proc.get[{#NGINX.NAME}]' + tags: + - tag: component + value: memory + - uuid: 6045ce9aba4747f2a6a1475fc3f8b428 + name: 'CPU utilization' + type: ZABBIX_ACTIVE + key: 'proc.cpu.util[{#NGINX.NAME}]' + value_type: FLOAT + units: '%' + description: 'The percentage of the CPU utilization by a process {#NGINX.NAME}.' + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 17f59999c0ee40788aa20979f396616b + expression: | + (find(/Nginx by Zabbix agent active/web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"],,"iregexp","HTTP\\/[\\d.]+\\s+200")=0 or + nodata(/Nginx by Zabbix agent active/web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"],30m)) and last(/Nginx by Zabbix agent active/nginx.proc.num[{#NGINX.NAME}])>0 + name: 'Nginx: Failed to fetch stub status page' + event_name: 'Nginx: Failed to fetch stub 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: 'Nginx: Service is down' + expression: 'last(/Nginx by Zabbix agent active/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent active/nginx.proc.num[{#NGINX.NAME}])>0' + tags: + - tag: scope + value: availability + - uuid: ff0d5f7f9ae740e3966af8cba9856a00 + expression: 'min(/Nginx by Zabbix agent active/nginx.connections.dropped.rate,5m) > {$NGINX.DROP_RATE.MAX.WARN} and last(/Nginx by Zabbix agent active/nginx.proc.num[{#NGINX.NAME}])>0' + name: 'Nginx: High connections drop rate' + event_name: 'Nginx: High connections drop rate (more than {$NGINX.DROP_RATE.MAX.WARN} for 5m)' + opdata: 'Current rate: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The rate of dropping connections has been greater than {$NGINX.DROP_RATE.MAX.WARN} for the last 5 minutes.' + dependencies: + - name: 'Nginx: Service is down' + expression: 'last(/Nginx by Zabbix agent active/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent active/nginx.proc.num[{#NGINX.NAME}])>0' + tags: + - tag: scope + value: performance + - uuid: 5ed915dd28814134bcbf78738ad8173c + expression: 'last(/Nginx by Zabbix agent active/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent active/nginx.proc.num[{#NGINX.NAME}])>0' + name: 'Nginx: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: bc6c56323e694cd391f6a80ebbac0c35 + expression: 'min(/Nginx by Zabbix agent active/net.tcp.service.perf[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"],5m)>{$NGINX.RESPONSE_TIME.MAX.WARN} and last(/Nginx by Zabbix agent active/nginx.proc.num[{#NGINX.NAME}])>0' + name: 'Nginx: Service response time is too high' + event_name: 'Nginx: Service response time is too high (over {$NGINX.RESPONSE_TIME.MAX.WARN}s for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'Nginx: Service is down' + expression: 'last(/Nginx by Zabbix agent active/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent active/nginx.proc.num[{#NGINX.NAME}])>0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 60d7f859559246fe902edd8a12ab4c70 + name: 'Nginx: Memory usage[{#NGINX.NAME}]' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Nginx by Zabbix agent active' + key: 'nginx.proc.vmem[{#NGINX.NAME}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Nginx by Zabbix agent active' + key: 'nginx.proc.rss[{#NGINX.NAME}]' + master_item: + key: 'proc.get[{$NGINX.PROCESS.NAME.PARAMETER},,,summary]' + lld_macro_paths: + - lld_macro: '{#NGINX.NAME}' + path: $.name + tags: + - tag: class + value: software + - tag: target + value: nginx + macros: + - macro: '{$NGINX.DROP_RATE.MAX.WARN}' + value: '1' + description: 'The critical rate of the dropped connections for a trigger expression.' + - macro: '{$NGINX.PROCESS.NAME.PARAMETER}' + description: 'The process name of the Nginx server used in the item key `proc.get`. It could be specified if the correct process name is known.' + - macro: '{$NGINX.PROCESS_NAME}' + value: nginx + description: 'The process name filter for the Nginx process discovery.' + - macro: '{$NGINX.RESPONSE_TIME.MAX.WARN}' + value: '10' + description: 'The maximum response time of Nginx expressed in seconds for a trigger expression.' + - macro: '{$NGINX.STUB_STATUS.HOST}' + value: localhost + description: 'The hostname or IP address of the Nginx host or Nginx container of `astub_status`.' + - macro: '{$NGINX.STUB_STATUS.PATH}' + value: basic_status + description: 'The path of the `Nginx stub_status` page.' + - macro: '{$NGINX.STUB_STATUS.PORT}' + value: '80' + description: 'The port of the `Nginx stub_status` host or container.' + dashboards: + - uuid: d066178c8aa942a5b82e7a6fdbd21880 + name: 'Nginx performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nginx by Zabbix agent active' + name: 'Nginx: Connections by state' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nginx by Zabbix agent active' + name: 'Nginx: Connections per second' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Nginx by Zabbix agent active' + name: 'Nginx: Requests per second' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 664f36475a624b6bbf6a23c430baaa9b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 5321b82a5beb4688b29f369acd0191c1 + name: 'Nginx: Connections by state' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Nginx by Zabbix agent active' + key: nginx.connections.active + - sortorder: '1' + color: F63100 + item: + host: 'Nginx by Zabbix agent active' + key: nginx.connections.waiting + - sortorder: '2' + color: 00611C + item: + host: 'Nginx by Zabbix agent active' + key: nginx.connections.writing + - sortorder: '3' + color: F7941D + item: + host: 'Nginx by Zabbix agent active' + key: nginx.connections.reading + - uuid: 993c7b78c337451992a048be7ed028e4 + name: 'Nginx: Connections per second' + graph_items: + - color: 199C0D + item: + host: 'Nginx by Zabbix agent active' + key: nginx.connections.accepted.rate + - sortorder: '1' + color: F63100 + item: + host: 'Nginx by Zabbix agent active' + key: nginx.connections.handled.rate + - sortorder: '2' + color: 00611C + item: + host: 'Nginx by Zabbix agent active' + key: nginx.connections.dropped.rate + - uuid: d22b45b11f2746ae8a26b54417a67424 + name: 'Nginx: Requests per second' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Nginx by Zabbix agent active' + key: nginx.requests.total.rate diff --git a/Nutanix_Cluster_Prism_Element_by_HTTP.yaml b/Nutanix_Cluster_Prism_Element_by_HTTP.yaml new file mode 100644 index 0000000..846caf6 --- /dev/null +++ b/Nutanix_Cluster_Prism_Element_by_HTTP.yaml @@ -0,0 +1,5049 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: b6027e374e424481951ca2256099515c + template: 'Nutanix Cluster Prism Element by HTTP' + name: 'Nutanix Cluster Prism Element by HTTP' + description: | + Prism Element: It is a service already built into the platform for every Nutanix cluster deployed. It provides the ability to fully configure, manage, and monitor Nutanix clusters running any hypervisors, however, It only manages the cluster it is part of. + + This template is designed for the effortless deployment of Nutanix Cluster Prism Element monitoring and doesn't require any external scripts. + + This template can be used in discovery, as well as manually linked to a host - to do so, attach it to the host and manually set the value of the '{$NUTANIX.CLUSTER.UUID}' macro. + + More details can be found in the official documentation: + - on retrieving UUIDs: https://www.nutanixbible.com/19b-cli.html + - on the Nutanix Prism Element REST API: https://www.nutanix.dev/api_reference/apis/prism_v2.html + - on differences between Nutanix API versions: https://www.nutanix.dev/api-versions/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: 3761d4da912749c7a84f11a5cfbcf761 + name: 'Get alert' + type: SCRIPT + key: nutanix.cluster.alert.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Nutanix = { + params: {}, + + setParams: function (requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Nutanix.params = allParams; + Nutanix.tls = new CTlsConfig(allParams.tls_verify); + }, + + request: function (url) { + + var request = new HttpRequest(Nutanix.tls.options); + + if (typeof Nutanix.params.proxy !== 'undefined' && Nutanix.params.proxy !== '') { + request.setProxy(Nutanix.params.proxy); + } + + request.setHttpAuth(HTTPAUTH_BASIC, Nutanix.params.username, Nutanix.params.password); + + Zabbix.log(4, '[ Nutanix ] Sending request: ' + url); + + const response = request.get(url); + + Zabbix.log(4, '[ Nutanix ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Nutanix PRISM API. Check debug log for more information.'; + } + + return response; + }, + + deduplicateAlerts: function (full_data) { + const severity_mapping = [ + 'kinfo', + 'kwarning', + 'kcritical' + ] + + var output_data = {}; + for (var entity in full_data.entities) { + + if (Nutanix.params.api_method === 'clusters') { + if (result.entities[entity].node_uuid.split('-').length == 5) continue; + } + + var severity = severity_mapping.indexOf(full_data.entities[entity].severity.toLowerCase()), + message = full_data.entities[entity].message, + title = full_data.entities[entity].alert_title; + + full_data.entities[entity].context_types.forEach(function(context, index) { + message = message.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + title = title.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + }); + + key = md5(title + message); + if (key in output_data) { + if (full_data.entities[entity].created_time_stamp_in_usecs > output_data[key].created) { + output_data[key].created = full_data.entities[entity].created_time_stamp_in_usecs; + output_data[key].severity = severity !== -1 ? severity : 3; + output_data[key].state = full_data.entities[entity].resolved ? 0 : 1; + output_data[key].message = full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message; + output_data[key].last_id = full_data.entities[entity].id; + } + output_data[key].count += 1; + } else { + output_data[key] = { + "name": title + ' - ' + message, + "title": title != '' ? title : message, + "created": full_data.entities[entity].created_time_stamp_in_usecs, + "severity": severity !== -1 ? severity : 3, + "state": full_data.entities[entity].resolved ? 0 : 1, + "message": full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message, + "last_id": full_data.entities[entity].id, + "count": 1 + } + } + } + + return output_data; + }, + + cleanUnsupported: function (full_stat) { + var output_stat = {}; + for (var element in full_stat) { + if (full_stat[element] !== '-1') { + output_stat[element] = full_stat[element]; + } + }; + + return output_stat; + } + }; + + try { + const params = JSON.parse(value); + Nutanix.setParams(['endpoint_host', 'endpoint_port', 'username', 'password', 'auth_type', 'api_method', 'target_uuid'], params); + + const url = 'https://' + Nutanix.params.endpoint_host + ':' + Nutanix.params.endpoint_port + '/PrismGateway/services/rest/v2.0/' + Nutanix.params.api_method + '/' + Nutanix.params.target_uuid + '/alerts', + result = Nutanix.request(url); + + return JSON.stringify(Nutanix.deduplicateAlerts(result)); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(4, '[ Nutanix ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'Get data about alerts.' + timeout: '{$NUTANIX.TIMEOUT}' + parameters: + - name: api_method + value: clusters + - name: auth_type + value: basic + - name: endpoint_host + value: '{$NUTANIX.PRISM.ELEMENT.IP}' + - name: endpoint_port + value: '{$NUTANIX.PRISM.ELEMENT.PORT}' + - name: password + value: '{$NUTANIX.PASSWORD}' + - name: proxy + value: '{$NUTANIX.PROXY}' + - name: target_uuid + value: '{$NUTANIX.CLUSTER.UUID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Nutanix Cluster Prism Element"}' + - name: username + value: '{$NUTANIX.USER}' + tags: + - tag: component + value: raw + - uuid: 1dc2ba69aa5440d8830313157499179e + name: 'Get alert check' + type: DEPENDENT + key: nutanix.cluster.alert.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: nutanix.cluster.alert.get + tags: + - tag: component + value: status + triggers: + - uuid: 741e1271a7454b9ab0214ae39b04f9cb + expression: 'length(last(/Nutanix Cluster Prism Element by HTTP/nutanix.cluster.alert.get.check))>0' + name: 'Nutanix: Failed to get alert data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 5567209755544223bf83e977ec209eaa + name: 'General: Cluster operation mode' + type: DEPENDENT + key: nutanix.cluster.cluster.operation.mode + delay: '0' + description: | + The cluster operation mode. One of the following: + - NORMAL; + - OVERRIDE; + - READONLY; + - STANDALONE; + - SWITCH_TO_TWO_NODE; + - UNKNOWN. + valuemap: + name: 'Nutanix: Cluster operation mode' + preprocessing: + - type: JSONPATH + parameters: + - $.operation_mode + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'NORMAL', + 'OVERRIDE', + 'READONLY', + 'STANDALONE', + 'SWITCH_TO_TWO_NODE' + ].indexOf(value.toUpperCase()); + return idx !== -1 ? idx : 5; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: c11c24fa7c7047f5ba5f7f39bccb656e + name: 'Content Cache: References' + type: DEPENDENT + key: nutanix.cluster.content.cache.dedup.ref.num + delay: '0' + description: 'Average number of content cache references.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_num_dedup_ref_count_pph + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: e1696a8e6028406e8e9005ebc295a4fa + name: 'Content Cache: Hit rate, %' + type: DEPENDENT + key: nutanix.cluster.content.cache.hit.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Content cache hits over all lookups.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_hit_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: fc40402b8e51471fb3299796c62a9669 + name: 'Content Cache: Logical memory usage, bytes' + type: DEPENDENT + key: nutanix.cluster.content.cache.logical.memory.usage.bytes + delay: '0' + units: B + description: 'Logical memory used to cache data without deduplication in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_logical_memory_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: 24b35405698e4e4d95ef2be9c5d0d44f + name: 'Content Cache: Logical SSD usage, bytes' + type: DEPENDENT + key: nutanix.cluster.content.cache.logical.ssd.usage.bytes + delay: '0' + units: B + description: 'Logical SSD memory used to cache data without deduplication in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_logical_ssd_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: 91b14b7aec844e38805b003b89059304 + name: 'Content Cache: Number of lookups' + type: DEPENDENT + key: nutanix.cluster.content.cache.lookups.num + delay: '0' + description: 'Number of lookups on the content cache.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_num_lookups + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 95f4f380b95945d182fd99053477b592 + name: 'Content Cache: Physical memory usage, bytes' + type: DEPENDENT + key: nutanix.cluster.content.cache.physical.memory.usage.bytes + delay: '0' + units: B + description: 'Real memory used to cache data via the content cache in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_physical_memory_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: f2ecb476122e4289972b3132178c969e + name: 'Content Cache: Physical SSD usage, bytes' + type: DEPENDENT + key: nutanix.cluster.content.cache.physical.ssd.usage.bytes + delay: '0' + units: B + description: 'Real SSD usage used to cache data via the content cache in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_physical_ssd_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: aa48c01e28d840e6a2bb87b892835f48 + name: 'Content Cache: Logical saved memory usage, bytes' + type: DEPENDENT + key: nutanix.cluster.content.cache.saved.memory.usage.bytes + delay: '0' + units: B + description: 'Memory saved due to content cache deduplication in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_saved_memory_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: 894a313d9eb5409ba7c198c62cf7d9f9 + name: 'Content Cache: Saved SSD usage, bytes' + type: DEPENDENT + key: nutanix.cluster.content.cache.saved.ssd.usage.bytes + delay: '0' + units: B + description: 'SSD usage saved due to content cache deduplication in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_saved_ssd_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: c107dffc846940f2b32e1d7d01a22cb6 + name: 'Controller: Random IO' + type: DEPENDENT + key: nutanix.cluster.controller.io.random + delay: '0' + description: 'The number of random Input/Output operations from the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_random_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: eea230e867044336a10f8308f05b5c32 + name: 'Controller: Random IO, %' + type: DEPENDENT + key: nutanix.cluster.controller.io.random.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of random Input/Output from the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_random_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: ef919d4e2bff4cbc94bd59be2cfb50f4 + name: 'Controller: Sequence IO' + type: DEPENDENT + key: nutanix.cluster.controller.io.sequence + delay: '0' + description: 'The number of sequential Input/Output operations from the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_seq_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 058564b6e59f470c9ef74a9d6b68d8d9 + name: 'Controller: Sequence IO, %' + type: DEPENDENT + key: nutanix.cluster.controller.io.sequence.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sequential Input/Output from the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_seq_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: f9a5a272fad04acb8d5fc1d806e01d60 + name: 'General: IO' + type: DEPENDENT + key: nutanix.cluster.general.io + delay: '0' + description: 'The number of Input/Output operations from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 642236ff71de4ead98e8f738e8524694 + name: 'General: IO, bandwidth' + type: DEPENDENT + key: nutanix.cluster.general.io.bandwidth + delay: '0' + units: Bps + description: 'Data transferred in B/sec from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: bedecc8f97b74f7287a4a094fe26cfe7 + name: 'General: IO, latency' + type: DEPENDENT + key: nutanix.cluster.general.io.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output latency from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.avg_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: ee2c4b096f0f4ac1b60b6441094fe076 + name: 'General: Random IO' + type: DEPENDENT + key: nutanix.cluster.general.io.random + delay: '0' + description: 'The number of random Input/Output operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_random_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: c03b24dc56ae4c23a82578479ae2eb6d + name: 'General: Random IO, %' + type: DEPENDENT + key: nutanix.cluster.general.io.random.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of random Input/Output operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.random_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 78e01fe5d2dd4f07b9ee34b49fac9ca4 + name: 'General: Read IO' + type: DEPENDENT + key: nutanix.cluster.general.io.read + delay: '0' + description: 'Total number of Input/Output read operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_read_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 6fb8985279ff4aeb932270322a4e41f6 + name: 'General: Read IO, bandwidth' + type: DEPENDENT + key: nutanix.cluster.general.io.read.bandwidth + delay: '0' + units: Bps + description: 'Read data transferred in B/sec from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.read_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: a6fcbeca6b1648659e0e74225d40863a + name: 'General: Read IO, latency' + type: DEPENDENT + key: nutanix.cluster.general.io.read.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average Input/Output read latency.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.avg_read_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: d2b762b0b9b74e8a8e8a8e40a3e932cf + name: 'General: Read IO, %' + type: DEPENDENT + key: nutanix.cluster.general.io.read.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The total percentage of Input/Output operations that are reads.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.read_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: ba49928014e64b8d8f90dbc76c2b6b57 + name: 'General: IO total read, bytes' + type: DEPENDENT + key: nutanix.cluster.general.io.read.total.bytes + delay: '0' + units: B + description: 'Total size of Input/Output read operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_read_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 30a67ff848484e4e9552a1bcd66c1f68 + name: 'General: IO total read, sec' + type: DEPENDENT + key: nutanix.cluster.general.io.read.total.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Total time of Input/Output read operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_read_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 9ce271586ac249d2b2fa27fa9b3e3878 + name: 'General: Sequence IO' + type: DEPENDENT + key: nutanix.cluster.general.io.sequence + delay: '0' + description: 'The number of sequential Input/Output operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_seq_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 97990e2fb53b464cadc13d0038f21199 + name: 'General: Sequence IO, %' + type: DEPENDENT + key: nutanix.cluster.general.io.sequence.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sequential Input/Output.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.seq_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: a01ae646308045d3b88d8e917000018c + name: 'General: IO total, bytes' + type: DEPENDENT + key: nutanix.cluster.general.io.total.bytes + delay: '0' + units: B + description: 'Total size of Input/Output operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 108356c5fd5c49c79840b7a6d9de8659 + name: 'General: IO total, sec' + type: DEPENDENT + key: nutanix.cluster.general.io.total.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Total time of Input/Output operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: f9b61618e2e545ac9e859d101bc10651 + name: 'General: Write IO' + type: DEPENDENT + key: nutanix.cluster.general.io.write + delay: '0' + description: 'Input/Output write operations from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_write_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 86dea3be95e44cac9b4a7ab8b5105681 + name: 'General: Write IO, bandwidth' + type: DEPENDENT + key: nutanix.cluster.general.io.write.bandwidth + delay: '0' + units: Bps + description: 'Write data transferred in B/sec from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.write_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 700b81f909c1471eb2fc0611e74876f3 + name: 'General: Write IO, latency' + type: DEPENDENT + key: nutanix.cluster.general.io.write.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average Input/Output write operation latency.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.avg_write_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 41950b93ee44469c8589bb5c0f8c0911 + name: 'General: Write IO, %' + type: DEPENDENT + key: nutanix.cluster.general.io.write.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Total percentage of Input/Output operations that are writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.write_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 4aedd6caaa014e42a7bacac34e9809ac + name: 'General: IOPS' + type: DEPENDENT + key: nutanix.cluster.general.iops + delay: '0' + units: '!iops' + description: 'Input/Output operations per second from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: c9e26c8d0e2f44089a9591769ab2eceb + name: 'General: Read IOPS' + type: DEPENDENT + key: nutanix.cluster.general.iops.read + delay: '0' + units: '!iops' + description: 'Input/Output read operations per second from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_read_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 96182d97edac497883185899cd978f26 + name: 'General: Write IOPS' + type: DEPENDENT + key: nutanix.cluster.general.iops.write + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Total number of Input/Output write operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_write_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: f9433014206a42d3aecf207448f6dee0 + name: 'General: Storage capacity, bytes' + type: DEPENDENT + key: nutanix.cluster.general.storage.capacity.bytes + delay: '0' + units: B + description: 'Total size of the datastores used by this system in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage.capacity_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 702544e35ca1490cb401d7730df044fd + name: 'General: Storage free, bytes' + type: DEPENDENT + key: nutanix.cluster.general.storage.free.bytes + delay: '0' + units: B + description: 'Total free space of the datastores used by this system in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage.free_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 87a495b3a7e246e187d034166ec9e19d + name: 'General: Storage logical usage, bytes' + type: DEPENDENT + key: nutanix.cluster.general.storage.logical.usage.bytes + delay: '0' + units: B + description: 'Total logical space used by the datastores of this system in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage.logical_usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 02809b0e347d49eeb1f8a8deac32af86 + name: 'General: Storage usage, bytes' + type: DEPENDENT + key: nutanix.cluster.general.storage.usage.bytes + delay: '0' + units: B + description: 'Total physical datastore space used by this host and all its snapshots on the datastores.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage.usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 4df3faff926b4d92bffd46949e6443bf + name: 'General: Timespan, sec' + type: DEPENDENT + key: nutanix.cluster.general.timespan.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Cluster timespan.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.timespan_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 9b9d93d4a09c45d2bd61a530f5e35fe9 + name: 'General: Total transformed usage, bytes' + type: DEPENDENT + key: nutanix.cluster.general.transformed.usage.total.bytes + delay: '0' + units: B + description: 'Actual usage of storage.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_transformed_usage_bytes + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 1d7c83bbf00149b2a37c1f983d44f403 + name: 'General: Total untransformed usage, bytes' + type: DEPENDENT + key: nutanix.cluster.general.untransformed.usage.total.bytes + delay: '0' + units: B + description: 'Logical usage of storage (physical usage divided by the replication factor).' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_untransformed_usage_bytes + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 252f167e9e7d4db1abcfa9808a0c06d9 + name: 'General: Upgrade progress' + type: DEPENDENT + key: nutanix.cluster.general.upgrade.progress + delay: '0' + description: 'Indicates whether the cluster is currently in an update state.' + valuemap: + name: 'Nutanix: Boolean' + preprocessing: + - type: JSONPATH + parameters: + - $.is_upgrade_in_progress + error_handler: DISCARD_VALUE + - type: BOOL_TO_DECIMAL + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 400a5d3e0f1c47cd881c1dfe04b65948 + name: 'General: Version' + type: DEPENDENT + key: nutanix.cluster.general.upgrade.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Current software version in the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 4f03001a7caa42d29cc2213137fbbb16 + name: 'Hypervisor: CPU usage, %' + type: DEPENDENT + key: nutanix.cluster.hypervisor.cpu.usage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of CPU used by the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_cpu_usage_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: cpu + - uuid: a5338864811a4e5795ead521cbcf875e + name: 'Hypervisor: IO' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io + delay: '0' + value_type: FLOAT + description: 'The number of Input/Output operations from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 1f56c2405992402e8897cde88f36284e + name: 'Hypervisor: IO, bandwidth' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.bandwidth + delay: '0' + units: Bps + description: 'Data transferred in B/sec from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: f4a46c9187584d88a256eb364884303f + name: 'Hypervisor: IO, latency' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output operation latency from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_avg_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 58fe88d634a045f0ba0259ea2e55e757 + name: 'Hypervisor: Read IO' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.read + delay: '0' + description: 'The number of Input/Output read operations from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_read_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: cbf141d09f7347b2b3fdb16ccd6e172c + name: 'Hypervisor: Read IO, bandwidth' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.read.bandwidth + delay: '0' + units: Bps + description: 'Read data transferred in B/sec from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_read_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 8e163e2751cb43a098a0cbfb6405c1d3 + name: 'Hypervisor: Read IO, latency' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.read.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output read latency from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_avg_read_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 7b43893117524aaf823baafa3dd42e0a + name: 'Hypervisor: IO total read, bytes' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.read.total.bytes + delay: '0' + units: B + description: 'Total Input/Output read operation size from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_total_read_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: e60bc882d8024ca59b9b6719be60fb65 + name: 'Hypervisor: IO total read, sec' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.read.total.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Total Input/Output read operation time from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_total_read_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 91517ef954de4a0892bac9091b0ac09a + name: 'Hypervisor: IO total, bytes' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.total.bytes + delay: '0' + units: B + description: 'Total Input/Output operation size from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_total_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: dcc89d2d7d2e4d0c9c46b369af90b17a + name: 'Hypervisor: IO total, sec' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.total.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Total Input/Output operation time from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_total_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: ee50c946b2a9490fafc2c25abd7c39e1 + name: 'Hypervisor: Write IO' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.write + delay: '0' + description: 'Input/Output write operations from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_write_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 13a6557f9bce4e5094d35537da7c48a7 + name: 'Hypervisor: Write IO, bandwidth' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.write.bandwidth + delay: '0' + units: Bps + description: 'Write data transferred in B/sec from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_write_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: a161c827020740e28edf2c223f1c498b + name: 'Hypervisor: Write IO, latency' + type: DEPENDENT + key: nutanix.cluster.hypervisor.io.write.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output write latency from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_avg_write_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: e51fd2cd48a441d1a5699581ccab53fb + name: 'Hypervisor: IOPS' + type: DEPENDENT + key: nutanix.cluster.hypervisor.iops + delay: '0' + units: '!iops' + description: 'Input/Output operations per second from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 01241090d9f743d9bf8532c950506a2a + name: 'Hypervisor: Read IOPS' + type: DEPENDENT + key: nutanix.cluster.hypervisor.iops.read + delay: '0' + description: 'Input/Output read operations per second from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_read_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: c85d41ca89f2438fb9b4c06da9ae0bc7 + name: 'Hypervisor: Write IOPS' + type: DEPENDENT + key: nutanix.cluster.hypervisor.iops.write + delay: '0' + units: '!iops' + description: 'Input/Output write operations per second from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_write_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 6c7717cbf8f44c0dbc69f6b4bd845d65 + name: 'Hypervisor: Memory usage, %' + type: DEPENDENT + key: nutanix.cluster.hypervisor.memory.usage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of memory used by the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_memory_usage_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: memory + - uuid: 41f4cfc6eb7746799e4bb05306527995 + name: 'Hypervisor: Timespan, sec' + type: DEPENDENT + key: nutanix.cluster.hypervisor.timespan.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Hypervisor timespan.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_timespan_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: 95a5fd893da84a7098cba12ffa1743ca + name: 'Get metric' + type: SCRIPT + key: nutanix.cluster.metric.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Nutanix = { + params: {}, + + setParams: function (requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Nutanix.params = allParams; + Nutanix.tls = new CTlsConfig(allParams.tls_verify); + }, + + request: function (url) { + + var request = new HttpRequest(Nutanix.tls.options); + + if (typeof Nutanix.params.proxy !== 'undefined' && Nutanix.params.proxy !== '') { + request.setProxy(Nutanix.params.proxy); + } + + request.setHttpAuth(HTTPAUTH_BASIC, Nutanix.params.username, Nutanix.params.password); + + Zabbix.log(4, '[ Nutanix ] Sending request: ' + url); + + const response = request.get(url); + + Zabbix.log(4, '[ Nutanix ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Nutanix PRISM API. Check debug log for more information.'; + } + + return response; + }, + + deduplicateAlerts: function (full_data) { + const severity_mapping = [ + 'kinfo', + 'kwarning', + 'kcritical' + ] + + var output_data = {}; + for (var entity in full_data.entities) { + + if (Nutanix.params.api_method === 'clusters') { + if (result.entities[entity].node_uuid.split('-').length == 5) continue; + } + + var severity = severity_mapping.indexOf(full_data.entities[entity].severity.toLowerCase()), + message = full_data.entities[entity].message, + title = full_data.entities[entity].alert_title; + + full_data.entities[entity].context_types.forEach(function(context, index) { + message = message.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + title = title.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + }); + + key = md5(title + message); + if (key in output_data) { + if (full_data.entities[entity].created_time_stamp_in_usecs > output_data[key].created) { + output_data[key].created = full_data.entities[entity].created_time_stamp_in_usecs; + output_data[key].severity = severity !== -1 ? severity : 3; + output_data[key].state = full_data.entities[entity].resolved ? 0 : 1; + output_data[key].message = full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message; + output_data[key].last_id = full_data.entities[entity].id; + } + output_data[key].count += 1; + } else { + output_data[key] = { + "name": title + ' - ' + message, + "title": title != '' ? title : message, + "created": full_data.entities[entity].created_time_stamp_in_usecs, + "severity": severity !== -1 ? severity : 3, + "state": full_data.entities[entity].resolved ? 0 : 1, + "message": full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message, + "last_id": full_data.entities[entity].id, + "count": 1 + } + } + } + + return output_data; + }, + + cleanUnsupported: function (full_stat) { + var output_stat = {}; + for (var element in full_stat) { + if (full_stat[element] !== '-1') { + output_stat[element] = full_stat[element]; + } + }; + + return output_stat; + } + }; + + try { + const params = JSON.parse(value); + Nutanix.setParams(['endpoint_host', 'endpoint_port', 'username', 'password', 'auth_type', 'api_method', 'target_uuid'], params); + + const url = 'https://' + Nutanix.params.endpoint_host + ':' + Nutanix.params.endpoint_port + '/PrismGateway/services/rest/v2.0/' + Nutanix.params.api_method + '/' + Nutanix.params.target_uuid; + var result = Nutanix.request(url); + + result.stats = Nutanix.cleanUnsupported(result.stats); + + return JSON.stringify(result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(4, '[ Nutanix ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'Get data about basic metrics.' + timeout: '{$NUTANIX.TIMEOUT}' + parameters: + - name: api_method + value: clusters + - name: auth_type + value: basic + - name: endpoint_host + value: '{$NUTANIX.PRISM.ELEMENT.IP}' + - name: endpoint_port + value: '{$NUTANIX.PRISM.ELEMENT.PORT}' + - name: password + value: '{$NUTANIX.PASSWORD}' + - name: proxy + value: '{$NUTANIX.PROXY}' + - name: target_uuid + value: '{$NUTANIX.CLUSTER.UUID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Nutanix Cluster Prism Element"}' + - name: username + value: '{$NUTANIX.USER}' + tags: + - tag: component + value: raw + - uuid: e8f1b3e3920b46cfa96ff0602fb30e6b + name: 'Get metric check' + type: DEPENDENT + key: nutanix.cluster.metric.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: status + triggers: + - uuid: 5ac8ddec162b4668b1df1493216792d6 + expression: 'length(last(/Nutanix Cluster Prism Element by HTTP/nutanix.cluster.metric.get.check))>0' + name: 'Nutanix: Failed to get metric data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: fc9cc5b7999241e4ae0e097826633569 + name: 'General: Current redundancy factor' + type: DEPENDENT + key: nutanix.cluster.redundancy.factor.current + delay: '0' + description: 'Current value of the redundancy factor on the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.cluster_redundancy_state.current_redundancy_factor + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: df508a0e13a843e492d32ffd36eb99e8 + name: 'General: Desired redundancy factor' + type: DEPENDENT + key: nutanix.cluster.redundancy.factor.desired + delay: '0' + description: 'The desired value of the redundancy factor on the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.cluster_redundancy_state.desired_redundancy_factor + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: application + - uuid: b6c6cc1e1a62485fb5b4a1ea3c0b0c4b + name: 'Storage Controller: IO' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io + delay: '0' + description: 'Input/Output operations from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 2146014b3f00416ab56149329ebf1ca3 + name: 'Storage Controller: IO, bandwidth' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.bandwidth + delay: '0' + units: Bps + description: 'Data transferred in B/sec from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 6538913d53aa4c0da0b882a42b73faa0 + name: 'Storage Controller: IO, latency' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output latency from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_avg_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 315905ef6b2f497294ccf4702ab5aadf + name: 'Storage Controller: Read IO' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.read + delay: '0' + description: 'Input/Output read operations from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_read_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 7871d52184994b799f58e180f7dd89a7 + name: 'Storage Controller: Read IO, bandwidth' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.read.bandwidth + delay: '0' + units: Bps + description: 'Read data transferred in B/sec from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_read_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: f4709e46e4684dfe95951705a3462e42 + name: 'Storage Controller: Read IO, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.read.bytes + delay: '0' + units: B + description: 'Storage controller average read Input/Output in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_avg_read_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 57c98e0c2d8c426d91f02320b140a3b0 + name: 'Storage Controller: Read IO, latency' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.read.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output read latency from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_avg_read_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: d57e65a31e8047bd83064913b0f0fc96 + name: 'Storage Controller: Read IO, %' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.read.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of Input/Output operations from the Storage Controller that are reads.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_read_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: dc7f96ef1c814eb6900bd0bb41405c4f + name: 'Storage Controller: IO total read, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.read.total.bytes + delay: '0' + units: B + description: 'Total controller read Input/Output size.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_total_read_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 9084bbeefa514342bc6550b20145ae87 + name: 'Storage Controller: IO total read, sec' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.read.total.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Total controller read Input/Output time.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_total_read_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: cb3d76f22bec49959d17f827e1fda1b5 + name: 'Storage Controller: IO total, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.total.bytes + delay: '0' + units: B + description: 'Total controller Input/Output size.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_total_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: a5716932dcc3468f812c77b28f29bf01 + name: 'Storage Controller: IO total, sec' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.total.sec + delay: '0' + units: s + description: 'Total controller Input/Output time.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_total_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: ecde6b6bd4344b819a39b0d3e2d4e3dc + name: 'Storage Controller: Write IO' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.write + delay: '0' + description: 'Input/Output write operations to the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_write_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 6d973393007a4851a96f1a2208c99ac0 + name: 'Storage Controller: Write IO, bandwidth' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.write.bandwidth + delay: '0' + units: Bps + description: 'Write data transferred in B/sec to the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_write_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 829dfe75c62c4770acd8889d5e0f8f61 + name: 'Storage Controller: Write IO, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.write.bytes + delay: '0' + units: B + description: 'Storage Controller average write Input/Output in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_avg_write_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: a940bb2ff5d549f085997200eb1d09e7 + name: 'Storage Controller: Write IO, latency' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.write.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output write latency to the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_avg_write_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: dfda9f9c6f40488e8a47e591a75775de + name: 'Storage Controller: Write IO, %' + type: DEPENDENT + key: nutanix.cluster.storage.controller.io.write.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of Input/Output operations to the Storage Controller that are writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_write_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: b4c5601a57d34fd886a508523f297a49 + name: 'Storage Controller: IOPS' + type: DEPENDENT + key: nutanix.cluster.storage.controller.iops + delay: '0' + units: '!iops' + description: 'Input/Output operations per second from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: f963f424f6644d46b109293108a011b2 + name: 'Storage Controller: Read IOPS' + type: DEPENDENT + key: nutanix.cluster.storage.controller.iops.read + delay: '0' + units: '!iops' + description: 'Input/Output read operations per second from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_read_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 298dee7b25e044edb4657855b0ec3ae7 + name: 'Storage Controller: Write IOPS' + type: DEPENDENT + key: nutanix.cluster.storage.controller.iops.write + delay: '0' + units: '!iops' + description: 'Input/Output write operations per second to the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_write_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 3d48b9ed84164fabb18db28be446c933 + name: 'Storage Tier: Das-sata capacity, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.tier.das_sata.capacity.bytes + delay: '0' + units: B + description: 'The total capacity of Das-sata in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.das-sata.capacity_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: b3b933a4a7284d788095f2f98700a75a + name: 'Storage Tier: Das-sata free, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.tier.das_sata.free.bytes + delay: '0' + units: B + description: 'The free space of Das-sata in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.das-sata.free_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 81e208fb9c4949919091c18325557fd9 + name: 'Storage Tier: Das-sata usage, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.tier.das_sata.usage.bytes + delay: '0' + units: B + description: 'The used space of Das-sata in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.das-sata.usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 95c826ea031b462ea1e1ae79e3f4966d + name: 'Storage Tier: SSD capacity, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.tier.ssd.capacity.bytes + delay: '0' + units: B + description: 'The total capacity of SSD in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.ssd.capacity_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: a17766d845a1410b9b4fe20044d79217 + name: 'Storage Tier: SSD free, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.tier.ssd.free.bytes + delay: '0' + units: B + description: 'The free space of SSD in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.ssd.free_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 9a10e8850e5f419d8e600757598435bf + name: 'Storage Tier: SSD usage, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.tier.ssd.usage.bytes + delay: '0' + units: B + description: 'The used space of SSD in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.ssd.usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: 1d4367a1f30a46818871cd4a105c73dc + name: 'Storage Controller: Timespan, sec' + type: DEPENDENT + key: nutanix.cluster.storage.controller.timespan.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Controller timespan.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_timespan_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + - uuid: eb510c9fa96947b9a3d83ce6ab87d217 + name: 'Storage Controller: Total transformed usage, bytes' + type: DEPENDENT + key: nutanix.cluster.storage.controller.transformed.usage.total.bytes + delay: '0' + units: B + description: 'Actual usage of the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_total_transformed_usage_bytes + error_handler: DISCARD_VALUE + master_item: + key: nutanix.cluster.metric.get + tags: + - tag: component + value: storage + discovery_rules: + - uuid: 7990ed903e40431999d75702d83b2cbb + name: 'Alert discovery' + type: DEPENDENT + key: nutanix.cluster.alert.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALERT.NAME}' + value: '{$NUTANIX.ALERT.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#ALERT.NAME}' + value: '{$NUTANIX.ALERT.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ALERT.SEVERITY}' + value: '{$NUTANIX.ALERT.DISCOVERY.SEVERITY.MATCHES}' + formulaid: C + - macro: '{#ALERT.STATE}' + value: '{$NUTANIX.ALERT.DISCOVERY.STATE.MATCHES}' + formulaid: D + description: | + Discovery of all alerts. + Alerts will be grouped by title. For each alert, in addition to the basic information, the number of activation and last alert ID will be available. + item_prototypes: + - uuid: 0bc36bd639ed43548a3d223abecfc9aa + name: 'Alert [{#ALERT.NAME}]: Count alerts' + type: DEPENDENT + key: 'nutanix.cluster.alert.count["{#ALERT.KEY}"]' + delay: '0' + description: 'The number of times this alert was triggered.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.count' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.alert.get + tags: + - tag: component + value: alert + - uuid: eafc52b6bb6741b1b7ac2b55bfcf5150 + name: 'Alert [{#ALERT.NAME}]: Create datetime' + type: DEPENDENT + key: 'nutanix.cluster.alert.created["{#ALERT.KEY}"]' + delay: '0' + units: unixtime + description: 'The alert creation date and time.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.created' + - type: MULTIPLIER + parameters: + - '1.0E-6' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.alert.get + tags: + - tag: component + value: alert + - uuid: b5b880f906d24f16a7a6f9eaf301d2f0 + name: 'Alert [{#ALERT.NAME}]: Last alert ID' + type: DEPENDENT + key: 'nutanix.cluster.alert.last_id["{#ALERT.KEY}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Latest ID of the alert.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.last_id' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.cluster.alert.get + tags: + - tag: component + value: alert + - uuid: ae18c1bc06ea4a429a753b9c6d989cc0 + name: 'Alert [{#ALERT.NAME}]: Detailed message' + type: DEPENDENT + key: 'nutanix.cluster.alert.message["{#ALERT.KEY}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Detailed information about the current alert.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.message' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.cluster.alert.get + tags: + - tag: component + value: alert + - uuid: 6b72da2095154db1b7561a2bedca8b33 + name: 'Alert [{#ALERT.NAME}]: Severity' + type: DEPENDENT + key: 'nutanix.cluster.alert.severity["{#ALERT.KEY}"]' + delay: '0' + description: | + Alert severity. One of the following: + - Info; + - Warning; + - Critical; + - Unknown. + valuemap: + name: 'Nutanix: Alert severity' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.severity' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.alert.get + tags: + - tag: component + value: alert + - uuid: 269d93010a5c453e9361a15827325743 + name: 'Alert [{#ALERT.NAME}]: State' + type: DEPENDENT + key: 'nutanix.cluster.alert.state["{#ALERT.KEY}"]' + delay: '0' + description: | + Alert state. One of the following: + - OK; + - Problem. + valuemap: + name: 'Nutanix: Alert state' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.state' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.cluster.alert.get + tags: + - tag: component + value: alert + - uuid: d9c2ca71d1a041af83a1b4e9d1df46f2 + name: 'Alert [{#ALERT.NAME}]: Full title' + type: DEPENDENT + key: 'nutanix.cluster.alert.title["{#ALERT.KEY}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'The full title of the alert.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.title' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.cluster.alert.get + tags: + - tag: component + value: alert + master_item: + key: nutanix.cluster.alert.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#ALERT.KEY}": entity, + "{#ALERT.STATE}": json_data[entity].state, + "{#ALERT.TITLE}": json_data[entity].title, + "{#ALERT.SEVERITY}": json_data[entity].severity, + "{#ALERT.NAME}": json_data[entity].name.length > 50 ? json_data[entity].name.substr(0, 50) + '...' : json_data[entity].name + }); + } + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: cluster + - tag: target + value: nutanix + - tag: target + value: prism-element + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Nutanix Cluster Prism Element", e.g. {$HTTP.TLS.VERIFY:"Nutanix Cluster Prism Element"}.' + - macro: '{$NUTANIX.ALERT.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable Nutanix alerts by name.' + - macro: '{$NUTANIX.ALERT.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Nutanix alerts by name.' + - macro: '{$NUTANIX.ALERT.DISCOVERY.SEVERITY.MATCHES}' + value: '.*' + description: 'Filter to exclude discovered Nutanix alerts by severity. Set all possible severities for filtering in the range 0-2. "0" - Info, "1" - Warning, "2" - Critical.' + - macro: '{$NUTANIX.ALERT.DISCOVERY.STATE.MATCHES}' + value: '.*' + description: 'Filter to exclude discovered Nutanix alerts by state. Set "1" for filtering only problem alerts or "0" for resolved ones.' + - macro: '{$NUTANIX.CLUSTER.UUID}' + description: 'UUID of the cluster.' + - macro: '{$NUTANIX.PASSWORD}' + type: SECRET_TEXT + description: 'Nutanix API password.' + - macro: '{$NUTANIX.PRISM.ELEMENT.IP}' + value: '' + description: 'Set the Nutanix API IP here.' + - macro: '{$NUTANIX.PRISM.ELEMENT.PORT}' + value: '9440' + description: 'Set the Nutanix API port here.' + - macro: '{$NUTANIX.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$NUTANIX.TIMEOUT}' + value: 10s + description: 'API response timeout.' + - macro: '{$NUTANIX.USER}' + value: '' + description: 'Nutanix API username.' + dashboards: + - uuid: 5764865624cb41abb5ea6631a9b3dd41 + name: 'Nutanix Cluster Prism Element overview' + pages: + - name: Overview + widgets: + - type: item + name: 'General: Cluster operation mode' + width: '18' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.cluster.operation.mode + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: 47A76A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FDD835 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FDD835 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: FDD835 + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: STRING + name: thresholds.4.color + value: FDD835 + - type: STRING + name: thresholds.4.threshold + value: '4' + - type: STRING + name: thresholds.5.color + value: D2D2D2 + - type: STRING + name: thresholds.5.threshold + value: '5' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: IOPS + 'y': '2' + width: '54' + height: '5' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.iops + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.iops + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: PMVJG + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: IO + 'y': '7' + width: '54' + height: '5' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: PQNBF + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'General: Version' + x: '18' + width: '18' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.upgrade.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Timespan' + x: '36' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.timespan.sec + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Current redundancy factor' + x: '54' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.redundancy.factor.current + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Desired redundancy factor' + x: '54' + 'y': '2' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.redundancy.factor.desired + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: 'General: Storage: Total and free' + x: '54' + 'y': '4' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.storage.capacity.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.storage.free.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: PMVJF + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'General: Storage: Usage' + x: '54' + 'y': '8' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.storage.logical.usage.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.storage.usage.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: PMVJJ + - type: INTEGER + name: righty + value: '0' + - name: IO + widgets: + - type: svggraph + name: 'General: IOPS' + width: '40' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops.read + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops.write + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: TQOEE + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'General: Bandwidth' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.bandwidth + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.read.bandwidth + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.write.bandwidth + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: CJFZN + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'General: Latency' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.latency + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.read.latency + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.write.latency + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: PDAZX + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'General: IOPS' + x: '40' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Read IOPS' + x: '40' + 'y': '2' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops.read + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Write IOPS' + x: '40' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops.write + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: piechart + name: 'General: Read IO / Write IO' + x: '58' + width: '14' + height: '6' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.read.percent + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.write.percent + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_value + value: '1' + - type: INTEGER + name: space + value: '7' + - type: INTEGER + name: width + value: '40' + - name: 'Content Cache' + widgets: + - type: svggraph + name: 'Content Cache: Memory' + width: '54' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.logical.memory.usage.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.saved.memory.usage.bytes + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.physical.memory.usage.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: HNWKJ + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Content Cache: Logical memory usage' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Logical memory usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.logical.memory.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: 'Content Cache: SSD usage' + 'y': '6' + width: '54' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.logical.ssd.usage.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.physical.ssd.usage.bytes + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.saved.ssd.usage.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: GCYCT + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Content Cache: Logical SSD usage' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Logical SSD usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.logical.ssd.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Content Cache: Logical saved memory usage' + x: '18' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Logical saved memory usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.saved.memory.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Content Cache: Physical SSD usage' + x: '18' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Physical SSD usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.physical.ssd.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Content Cache: Physical memory usage' + x: '36' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Physical memory usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.physical.memory.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Content Cache: Saved SSD usage' + x: '36' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Saved SSD usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.saved.ssd.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: gauge + name: 'Content Cache: Hit rate' + x: '54' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: empty_color + value: E1F5FE + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.hit.percent + - type: STRING + name: units + value: '%' + - type: STRING + name: value_arc_color + value: 0040FF + - type: svggraph + name: 'Content Cache: Hit rate' + x: '54' + 'y': '4' + width: '18' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.hit.percent + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: lefty_static_units + value: '%' + - type: INTEGER + name: lefty_units + value: '1' + - type: INTEGER + name: legend + value: '0' + - type: STRING + name: reference + value: ZBMME + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Content Cache: Number of lookups' + x: '54' + 'y': '8' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.lookups.num + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Content Cache: References' + x: '54' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.dedup.ref.num + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - name: Hypervisor + widgets: + - type: svggraph + name: 'Hypervisor: IOPS' + width: '52' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.iops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.iops.read + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.iops.write + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: RUGEL + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Hypervisor: Latency' + 'y': '4' + width: '52' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.latency + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.read.latency + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.write.latency + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: GNBJL + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Hypervisor: Bandwidth' + 'y': '8' + width: '52' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.bandwidth + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.read.bandwidth + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.write.bandwidth + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: BVXJW + - type: INTEGER + name: righty + value: '0' + - type: gauge + name: 'Hypervisor: CPU usage' + x: '52' + width: '20' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: empty_color + value: E1F5FE + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.cpu.usage.percent + - type: STRING + name: thresholds.0.color + value: 29B6F6 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFF176 + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: F9A825 + - type: STRING + name: thresholds.2.threshold + value: '80' + - type: STRING + name: thresholds.3.color + value: FF465C + - type: STRING + name: thresholds.3.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: STRING + name: units + value: '%' + - type: svggraph + name: 'Hypervisor: CPU usage' + x: '52' + 'y': '3' + width: '20' + height: '3' + fields: + - type: STRING + name: ds.0.color.0 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.cpu.usage.percent + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: lefty_static_units + value: '%' + - type: INTEGER + name: lefty_units + value: '1' + - type: INTEGER + name: legend + value: '0' + - type: STRING + name: reference + value: LOWCD + - type: INTEGER + name: righty + value: '0' + - type: gauge + name: 'Hypervisor: Memory usage' + x: '52' + 'y': '6' + width: '20' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: empty_color + value: E1F5FE + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.memory.usage.percent + - type: STRING + name: thresholds.0.color + value: 29B6F6 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFF176 + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: F9A825 + - type: STRING + name: thresholds.2.threshold + value: '80' + - type: STRING + name: thresholds.3.color + value: FF465C + - type: STRING + name: thresholds.3.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: STRING + name: units + value: '%' + - type: svggraph + name: 'Hypervisor: Memory usage' + x: '52' + 'y': '9' + width: '20' + height: '3' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.memory.usage.percent + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: lefty_static_units + value: '%' + - type: INTEGER + name: lefty_units + value: '1' + - type: INTEGER + name: legend + value: '0' + - type: STRING + name: reference + value: WJDEV + - type: INTEGER + name: righty + value: '0' + - name: 'Storage controller' + widgets: + - type: svggraph + name: 'Storage controller: IOPS' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.iops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.iops.read + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.iops.write + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: VKETQ + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Storage controller: IO' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.read + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.write + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: RKARE + - type: INTEGER + name: righty + value: '0' + - type: piechart + name: 'Storage controller: Read IO / Write IO' + x: '36' + width: '12' + height: '6' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.read.percent + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.write.percent + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_value + value: '1' + - type: INTEGER + name: space + value: '7' + - type: INTEGER + name: width + value: '40' + - type: svggraph + name: 'Storage controller: Bandwidth' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.bandwidth + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.read.bandwidth + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.write.bandwidth + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: FCTEG + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Storage controller: Read IO / Write IO' + x: '48' + width: '24' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.read.percent + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.write.percent + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.stacked + value: '1' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: GVMJA + - type: INTEGER + name: righty + value: '0' + - name: 'Storage Tier' + widgets: + - type: svggraph + name: 'Storage Tier: Das-sata' + width: '50' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.das_sata.free.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.das_sata.usage.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: SCETD + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Storage Tier: Das-sata free' + 'y': '4' + width: '25' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Storage Tier: Das-sata free' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.das_sata.free.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: 'Storage Tier: SSD' + 'y': '6' + width: '50' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.ssd.free.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.ssd.usage.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: NEBOH + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Storage Tier: SSD free' + 'y': '10' + width: '25' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Storage Tier: SSD free' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.ssd.free.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Storage Tier: Das-sata usage' + x: '25' + 'y': '4' + width: '25' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Storage Tier: Das-sata usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.das_sata.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Storage Tier: SSD usage' + x: '25' + 'y': '10' + width: '25' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Storage Tier: SSD usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.ssd.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: piechart + name: 'Storage Tier: Das-sata Usage / Total' + x: '50' + width: '22' + height: '6' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.das_sata.capacity.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.das_sata.usage.bytes + - type: INTEGER + name: ds.0.type.0 + value: '1' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_value + value: '1' + - type: INTEGER + name: space + value: '7' + - type: INTEGER + name: width + value: '40' + - type: piechart + name: 'Storage Tier: SSD Usage / Total' + x: '50' + 'y': '6' + width: '22' + height: '6' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.ssd.capacity.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.ssd.usage.bytes + - type: INTEGER + name: ds.0.type.0 + value: '1' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_value + value: '1' + - type: INTEGER + name: space + value: '7' + - type: INTEGER + name: width + value: '40' + valuemaps: + - uuid: 86e15b9ab1e04285a8db065fbdf6eedf + name: 'Nutanix: Alert severity' + mappings: + - value: '0' + newvalue: Info + - value: '1' + newvalue: Warning + - value: '2' + newvalue: Critical + - value: '3' + newvalue: Unknown + - uuid: 079d797917c64626af20ce86249c2969 + name: 'Nutanix: Alert state' + mappings: + - value: '0' + newvalue: Ok + - value: '1' + newvalue: Problem + - uuid: 10ec1428fba54eeaabc6503361090761 + name: 'Nutanix: Boolean' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - value: '2' + newvalue: Unknown + - uuid: 537aaf6158724960a2535913030f0138 + name: 'Nutanix: Cluster operation mode' + mappings: + - value: '0' + newvalue: Normal + - value: '1' + newvalue: Override + - value: '2' + newvalue: Readonly + - value: '3' + newvalue: Standalone + - value: '4' + newvalue: 'Switch to two node' + - value: '5' + newvalue: Unknown + triggers: + - uuid: 95d69032f7d7426d8073524ecd72fcd4 + expression: 'last(/Nutanix Cluster Prism Element by HTTP/nutanix.cluster.redundancy.factor.current)<>last(/Nutanix Cluster Prism Element by HTTP/nutanix.cluster.redundancy.factor.desired)' + name: 'Nutanix: Redundancy factor mismatched' + priority: HIGH + description: 'Current redundancy factor does not match the desired redundancy factor.' + tags: + - tag: scope + value: availability + graphs: + - uuid: 65515b97fe634d65a85a1d364887c67b + name: 'Content Cache: Hit rate, %' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.hit.percent + - uuid: 47934bfa13084fa4a3986796298e0b47 + name: 'Content Cache: Memory, bytes' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.logical.memory.usage.bytes + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.saved.memory.usage.bytes + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.physical.memory.usage.bytes + - uuid: d044e823d54444c4985f653685b9b438 + name: 'Content Cache: SSD usage, bytes' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.logical.ssd.usage.bytes + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.physical.ssd.usage.bytes + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.content.cache.saved.ssd.usage.bytes + - uuid: 3ef6efe82e004c9bb274e8f653a1ae9e + name: 'General: IO, bandwidth' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.bandwidth + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.read.bandwidth + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.write.bandwidth + - uuid: 9630f812813549d8909ee46d06b38a7b + name: 'General: IO, latency' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.latency + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.read.latency + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.write.latency + - uuid: 03b6d22744a5461f937f481cf1ca0854 + name: 'General: IOPS' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops.read + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops.write + - uuid: b0881e58124f4e3c8967177a18293b01 + name: 'General: Read IO / Write IO' + type: STACKED + graph_items: + - color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.write.percent + - sortorder: '1' + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io.read.percent + - uuid: 2eb73e5623dc444d9296efb721b44534 + name: 'Hypervisor: CPU usage, %' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.cpu.usage.percent + - uuid: 80d34c61ea8b436caf6d295b2330c4fd + name: 'Hypervisor: IO, bandwidth' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.bandwidth + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.read.bandwidth + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.write.bandwidth + - uuid: 167229af868b49b5a0c66eaa3c6fad93 + name: 'Hypervisor: IO, latency' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.latency + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.read.latency + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io.write.latency + - uuid: f8a6865e91c44452bcfd26fdaefa42ba + name: 'Hypervisor: IOPS' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.iops + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.iops.read + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.iops.write + - uuid: 9da8e4c6642d4150ac5d45f1cb817253 + name: 'Hypervisor: Memory usage, %' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: FF465C + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.memory.usage.percent + - uuid: ad7e987b56954a51b898f9aa09b2ef89 + name: 'IO overview' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.io + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.io + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io + - uuid: c1ea65971d3d4816a68c9cf608939e0f + name: 'IOPS overview' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.general.iops + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.hypervisor.iops + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.iops + - uuid: 66c94c9ea2264d96864df112f09b7d5f + name: 'Storage Controller: IO' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.read + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.write + - uuid: ed97331326f14627900146141aff0333 + name: 'Storage Controller: IO, bandwidth' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.bandwidth + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.read.bandwidth + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.write.bandwidth + - uuid: 3a8aa7c3dc2d44ed8ab3c54fa092797d + name: 'Storage Controller: IOPS' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.iops + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.iops.read + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.iops.write + - uuid: baa376dae2024a5f83b5d84120878fd5 + name: 'Storage Controller: Read IO / Write IO' + type: STACKED + graph_items: + - color: FF0080 + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.read.percent + - sortorder: '1' + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.io.write.percent + - uuid: ac4df503b04a4f339c5d39bd72fd3832 + name: 'Storage Tier: Das-sata' + type: STACKED + graph_items: + - color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.das_sata.free.bytes + - sortorder: '1' + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.das_sata.usage.bytes + - uuid: 1edd2ff1710649ed9e037b2a00dc9f22 + name: 'Storage Tier: Free, bytes' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.das_sata.free.bytes + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.ssd.free.bytes + - uuid: ff4e11828c9244c2b4021c826bec0700 + name: 'Storage Tier: SSD' + type: STACKED + graph_items: + - color: 00BFFF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.ssd.free.bytes + - sortorder: '1' + color: 0040FF + item: + host: 'Nutanix Cluster Prism Element by HTTP' + key: nutanix.cluster.storage.controller.tier.ssd.usage.bytes diff --git a/Nutanix_Host_Prism_Element_by_HTTP.yaml b/Nutanix_Host_Prism_Element_by_HTTP.yaml new file mode 100644 index 0000000..5dda49f --- /dev/null +++ b/Nutanix_Host_Prism_Element_by_HTTP.yaml @@ -0,0 +1,6383 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 8ab5387c8887435587cce8383b2fc6c5 + template: 'Nutanix Host Prism Element by HTTP' + name: 'Nutanix Host Prism Element by HTTP' + description: | + Prism Element: It is a service already built into the platform for every Nutanix cluster deployed. It provides the ability to fully configure, manage, and monitor Nutanix clusters running any hypervisors, however, It only manages the cluster it is part of. + + This template is designed for the effortless deployment of Nutanix Host Prism Element monitoring and doesn't require any external scripts. + + This template can be used in discovery, as well as manually linked to a host - to do so, attach it to the host and manually set the value of the '{$NUTANIX.HOST.UUID}' macro. + + More details can be found in the official documentation: + - on retrieving UUIDs: https://www.nutanixbible.com/19b-cli.html + - on the Nutanix Prism Element REST API: https://www.nutanix.dev/api_reference/apis/prism_v2.html + - on differences between Nutanix API versions: https://www.nutanix.dev/api-versions/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: 48c5f1f6ea454fd69756268cd613129e + name: 'Get alert' + type: SCRIPT + key: nutanix.host.alert.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Nutanix = { + params: {}, + + setParams: function (requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Nutanix.params = allParams; + Nutanix.tls = new CTlsConfig(allParams.tls_verify); + }, + + request: function (url) { + + var request = new HttpRequest(Nutanix.tls.options); + + if (typeof Nutanix.params.proxy !== 'undefined' && Nutanix.params.proxy !== '') { + request.setProxy(Nutanix.params.proxy); + } + + request.setHttpAuth(HTTPAUTH_BASIC, Nutanix.params.username, Nutanix.params.password); + + Zabbix.log(4, '[ Nutanix ] Sending request: ' + url); + + const response = request.get(url); + + Zabbix.log(4, '[ Nutanix ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Nutanix PRISM API. Check debug log for more information.'; + } + + return response; + }, + + deduplicateAlerts: function (full_data) { + const severity_mapping = [ + 'kinfo', + 'kwarning', + 'kcritical' + ] + + var output_data = {}; + for (var entity in full_data.entities) { + + if (Nutanix.params.api_method === 'clusters') { + if (result.entities[entity].node_uuid.split('-').length == 5) continue; + } + + var severity = severity_mapping.indexOf(full_data.entities[entity].severity.toLowerCase()), + message = full_data.entities[entity].message, + title = full_data.entities[entity].alert_title; + + full_data.entities[entity].context_types.forEach(function(context, index) { + message = message.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + title = title.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + }); + + key = md5(title + message); + if (key in output_data) { + if (full_data.entities[entity].created_time_stamp_in_usecs > output_data[key].created) { + output_data[key].created = full_data.entities[entity].created_time_stamp_in_usecs; + output_data[key].severity = severity !== -1 ? severity : 3; + output_data[key].state = full_data.entities[entity].resolved ? 0 : 1; + output_data[key].message = full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message; + output_data[key].last_id = full_data.entities[entity].id; + } + output_data[key].count += 1; + } else { + output_data[key] = { + "name": title + ' - ' + message, + "title": title != '' ? title : message, + "created": full_data.entities[entity].created_time_stamp_in_usecs, + "severity": severity !== -1 ? severity : 3, + "state": full_data.entities[entity].resolved ? 0 : 1, + "message": full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message, + "last_id": full_data.entities[entity].id, + "count": 1 + } + } + } + + return output_data; + }, + + cleanUnsupported: function (full_stat) { + var output_stat = {}; + for (var element in full_stat) { + if (full_stat[element] !== '-1') { + output_stat[element] = full_stat[element]; + } + }; + + return output_stat; + } + }; + + try { + const params = JSON.parse(value); + Nutanix.setParams(['endpoint_host', 'endpoint_port', 'username', 'password', 'auth_type', 'api_method', 'target_uuid'], params); + + const url = 'https://' + Nutanix.params.endpoint_host + ':' + Nutanix.params.endpoint_port + '/PrismGateway/services/rest/v2.0/' + Nutanix.params.api_method + '/' + Nutanix.params.target_uuid + '/alerts', + result = Nutanix.request(url); + + return JSON.stringify(Nutanix.deduplicateAlerts(result)); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(4, '[ Nutanix ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'Get data about alerts.' + timeout: '{$NUTANIX.TIMEOUT}' + parameters: + - name: api_method + value: hosts + - name: auth_type + value: basic + - name: endpoint_host + value: '{$NUTANIX.PRISM.ELEMENT.IP}' + - name: endpoint_port + value: '{$NUTANIX.PRISM.ELEMENT.PORT}' + - name: password + value: '{$NUTANIX.PASSWORD}' + - name: proxy + value: '{$NUTANIX.PROXY}' + - name: target_uuid + value: '{$NUTANIX.HOST.UUID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Nutanix Host Prism Element"}' + - name: username + value: '{$NUTANIX.USER}' + tags: + - tag: component + value: raw + - uuid: fe2d1588c8df4d0e83bf35029a8c0811 + name: 'Get alert check' + type: DEPENDENT + key: nutanix.host.alert.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: nutanix.host.alert.get + tags: + - tag: component + value: status + triggers: + - uuid: 6dbb467d463e47dca35970591ef1446f + expression: 'length(last(/Nutanix Host Prism Element by HTTP/nutanix.host.alert.get.check))>0' + name: 'Nutanix: Failed to get alert data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 6b23ddc5bc4149cbbef4feb729ddd7d2 + name: 'Content Cache: References' + type: DEPENDENT + key: nutanix.host.content.cache.dedup.ref.num + delay: '0' + description: 'Average number of content cache references.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_num_dedup_ref_count_pph + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: f350acf8979145aca8bff3c26454e2b9 + name: 'Content Cache: Hit rate, %' + type: DEPENDENT + key: nutanix.host.content.cache.hit.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Content cache hits over all lookups.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_hit_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 669e026614974b378306a4ce65b67ffb + name: 'Content Cache: Logical memory usage, bytes' + type: DEPENDENT + key: nutanix.host.content.cache.logical.memory.usage.bytes + delay: '0' + units: B + description: 'Logical memory used to cache data without deduplication in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_logical_memory_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: 7d8e81cd62d6458a99db1d7aad0f229d + name: 'Content Cache: Logical SSD usage, bytes' + type: DEPENDENT + key: nutanix.host.content.cache.logical.ssd.usage.bytes + delay: '0' + units: B + description: 'Logical SSD memory used to cache data without deduplication in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_logical_ssd_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: 8589d38473b04d06a3a7f58dc2513560 + name: 'Content Cache: Number of lookups' + type: DEPENDENT + key: nutanix.host.content.cache.lookups.num + delay: '0' + description: 'Number of lookups on the content cache.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_num_lookups + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 36d0c74bfc3040a68516276e5ce763ac + name: 'Content Cache: Physical memory usage, bytes' + type: DEPENDENT + key: nutanix.host.content.cache.physical.memory.usage.bytes + delay: '0' + units: B + description: 'Real memory used to cache data via the content cache in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_physical_memory_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: bc4d165f550f4921ab6b2a622b3c1973 + name: 'Content Cache: Physical SSD usage, bytes' + type: DEPENDENT + key: nutanix.host.content.cache.physical.ssd.usage.bytes + delay: '0' + units: B + description: 'Real SSD usage used to cache data via the content cache in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_physical_ssd_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: 397007975419415eb70ffe0276cff446 + name: 'Content Cache: Logical saved memory usage, bytes' + type: DEPENDENT + key: nutanix.host.content.cache.saved.memory.usage.bytes + delay: '0' + units: B + description: 'Memory saved due to content cache deduplication in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_saved_memory_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: 7e25d096fc094f0987d4009efe2074ec + name: 'Content Cache: Saved SSD usage, bytes' + type: DEPENDENT + key: nutanix.host.content.cache.saved.ssd.usage.bytes + delay: '0' + units: B + description: 'SSD usage saved due to content cache deduplication in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.content_cache_saved_ssd_usage_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - tag: component + value: memory + - uuid: 634b72675f5346079d4f3c962a3316b9 + name: 'Controller: Random IO' + type: DEPENDENT + key: nutanix.host.controller.io.random + delay: '0' + description: 'The number of random Input/Output operations from the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_random_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: d51746d0f49a4631930f7200543254dd + name: 'Controller: Random IO, %' + type: DEPENDENT + key: nutanix.host.controller.io.random.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of random Input/Output from the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_random_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 4df61338cb7e4044b029187665103b3e + name: 'Controller: Sequence IO' + type: DEPENDENT + key: nutanix.host.controller.io.sequence + delay: '0' + description: 'The number of sequential Input/Output operations from the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_seq_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 946f9ef792c547edb275c7ad08532278 + name: 'Controller: Sequence IO, %' + type: DEPENDENT + key: nutanix.host.controller.io.sequence.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sequential Input/Output from the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_seq_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: a3a11c42c9da4eecb0aefa20792d4514 + name: 'Get disk' + type: SCRIPT + key: nutanix.host.disk.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Nutanix = { + params: {}, + + setParams: function (requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Nutanix.params = allParams; + Nutanix.tls = new CTlsConfig(allParams.tls_verify); + }, + + request: function (url) { + + var request = new HttpRequest(Nutanix.tls.options); + + if (typeof Nutanix.params.proxy !== 'undefined' && Nutanix.params.proxy !== '') { + request.setProxy(Nutanix.params.proxy); + } + + request.setHttpAuth(HTTPAUTH_BASIC, Nutanix.params.username, Nutanix.params.password); + + Zabbix.log(4, '[ Nutanix ] Sending request: ' + url); + + const response = request.get(url); + + Zabbix.log(4, '[ Nutanix ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Nutanix PRISM API. Check debug log for more information.'; + } + + return response; + }, + + deduplicateAlerts: function (full_data) { + const severity_mapping = [ + 'kinfo', + 'kwarning', + 'kcritical' + ] + + var output_data = {}; + for (var entity in full_data.entities) { + + if (Nutanix.params.api_method === 'clusters') { + if (result.entities[entity].node_uuid.split('-').length == 5) continue; + } + + var severity = severity_mapping.indexOf(full_data.entities[entity].severity.toLowerCase()), + message = full_data.entities[entity].message, + title = full_data.entities[entity].alert_title; + + full_data.entities[entity].context_types.forEach(function(context, index) { + message = message.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + title = title.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + }); + + key = md5(title + message); + if (key in output_data) { + if (full_data.entities[entity].created_time_stamp_in_usecs > output_data[key].created) { + output_data[key].created = full_data.entities[entity].created_time_stamp_in_usecs; + output_data[key].severity = severity !== -1 ? severity : 3; + output_data[key].state = full_data.entities[entity].resolved ? 0 : 1; + output_data[key].message = full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message; + output_data[key].last_id = full_data.entities[entity].id; + } + output_data[key].count += 1; + } else { + output_data[key] = { + "name": title + ' - ' + message, + "title": title != '' ? title : message, + "created": full_data.entities[entity].created_time_stamp_in_usecs, + "severity": severity !== -1 ? severity : 3, + "state": full_data.entities[entity].resolved ? 0 : 1, + "message": full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message, + "last_id": full_data.entities[entity].id, + "count": 1 + } + } + } + + return output_data; + }, + + cleanUnsupported: function (full_stat) { + var output_stat = {}; + for (var element in full_stat) { + if (full_stat[element] !== '-1') { + output_stat[element] = full_stat[element]; + } + }; + + return output_stat; + } + }; + + try { + const params = JSON.parse(value); + Nutanix.setParams(['endpoint_host', 'endpoint_port', 'username', 'password', 'auth_type', 'api_method', 'target_uuid'], params); + + const url = 'https://' + Nutanix.params.endpoint_host + ':' + Nutanix.params.endpoint_port + '/PrismGateway/services/rest/v2.0/' + Nutanix.params.api_method + '?search_attribute_list=node_uuid&search_string=' + Nutanix.params.target_uuid, + result = Nutanix.request(url); + + var output_data = {}; + for (var entity in result.entities) { + output_data[result.entities[entity].id] = result.entities[entity] + } + + return JSON.stringify(output_data); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(4, '[ Nutanix ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'Get data about installed disks.' + timeout: '{$NUTANIX.TIMEOUT}' + parameters: + - name: api_method + value: disks + - name: auth_type + value: basic + - name: endpoint_host + value: '{$NUTANIX.PRISM.ELEMENT.IP}' + - name: endpoint_port + value: '{$NUTANIX.PRISM.ELEMENT.PORT}' + - name: password + value: '{$NUTANIX.PASSWORD}' + - name: proxy + value: '{$NUTANIX.PROXY}' + - name: target_uuid + value: '{$NUTANIX.HOST.UUID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Nutanix Host Prism Element"}' + - name: username + value: '{$NUTANIX.USER}' + tags: + - tag: component + value: raw + - uuid: 28d0f61d06f24eb39af718e213c68d87 + name: 'Get disk check' + type: DEPENDENT + key: nutanix.host.disk.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: nutanix.host.disk.get + tags: + - tag: component + value: status + triggers: + - uuid: a105b91b5d48438b93abc257b238e2c9 + expression: 'length(last(/Nutanix Host Prism Element by HTTP/nutanix.host.disk.get.check))>0' + name: 'Nutanix: Failed to get disk data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 0931721d1a3943649344315e2de7f39f + name: 'General: Boot time' + type: DEPENDENT + key: nutanix.host.general.boot.time + delay: '0' + units: unixtime + description: 'The last host boot time.' + preprocessing: + - type: JSONPATH + parameters: + - $.boot_time_in_usecs + - type: MULTIPLIER + parameters: + - '1.0E-6' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 15b33f72661e4d5180460966d11a71d0 + name: 'General: Total CPU capacity' + type: DEPENDENT + key: nutanix.host.general.cpu.capacity.hz + delay: '0' + value_type: FLOAT + units: Hz + description: 'Total host CPU capacity in Hz.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_capacity_in_hz + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: cpu + - uuid: 7d17333b18c94a37a34b5390969f2832 + name: 'General: CPU frequency' + type: DEPENDENT + key: nutanix.host.general.cpu.frequency + delay: '0' + value_type: FLOAT + units: Hz + description: 'The processor frequency.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_frequency_in_hz + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: cpu + - uuid: c2c0f753b64f43aabd199fd4b3bf4182 + name: 'General: CPU model' + type: DEPENDENT + key: nutanix.host.general.cpu.model + delay: '0' + value_type: CHAR + trends: '0' + description: 'The processor model.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu_model + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: cpu + - uuid: a7d620e525264ccfa790f6b4f46591f1 + name: 'General: Degrade status' + type: DEPENDENT + key: nutanix.host.general.degraded + delay: '0' + description: | + Indicates whether the host is in a degraded state. One of the following: + - Normal; + - Degraded; + - Unknown. + valuemap: + name: 'Nutanix: Degraded state' + preprocessing: + - type: JSONPATH + parameters: + - $.is_degraded + - type: BOOL_TO_DECIMAL + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: health + triggers: + - uuid: f10f4b560bd140cabb3beb4ee1dbbf78 + expression: 'last(/Nutanix Host Prism Element by HTTP/nutanix.host.general.degraded)=1' + name: 'Nutanix: Host is in degraded status' + priority: HIGH + description: 'Host is in a degraded status. The host may soon become unavailable.' + tags: + - tag: scope + value: availability + - uuid: 4b4eb846e4de4461a02d1d24fbcadef1 + name: 'General: IO' + type: DEPENDENT + key: nutanix.host.general.io + delay: '0' + description: 'The number of Input/Output operations from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_io + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: e0ab22c1d8aa49dc9625ba4876e6a7c2 + name: 'General: IO, bandwidth' + type: DEPENDENT + key: nutanix.host.general.io.bandwidth + delay: '0' + units: Bps + description: 'Data transferred in B/sec from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 4094ad4a8d3a4e0a818fadc78f612f54 + name: 'General: IO, latency' + type: DEPENDENT + key: nutanix.host.general.io.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output latency from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.avg_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 80245fcfc1554a178d1a636c9356da77 + name: 'General: Random IO' + type: DEPENDENT + key: nutanix.host.general.io.random + delay: '0' + description: 'The number of random Input/Output operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_random_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: fcbabfd55e37442b85913f7efdabab91 + name: 'General: Random IO, %' + type: DEPENDENT + key: nutanix.host.general.io.random.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of random Input/Output.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.random_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 9f57e588e1e94101aadfbf1cdd42f45b + name: 'General: Read IO' + type: DEPENDENT + key: nutanix.host.general.io.read + delay: '0' + description: 'Input/Output read operations from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_read_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 98f8336a92cb4096b5edddf190bacab2 + name: 'General: Read IO, bandwidth' + type: DEPENDENT + key: nutanix.host.general.io.read.bandwidth + delay: '0' + units: Bps + description: 'Read data transferred in B/sec from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.read_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: bd84805286354e94b5f36a469c4840ae + name: 'General: Read IO, latency' + type: DEPENDENT + key: nutanix.host.general.io.read.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average Input/Output read latency.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.avg_read_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: b3e69532f2064ffba9282f3006b2b995 + name: 'General: Read IO, %' + type: DEPENDENT + key: nutanix.host.general.io.read.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The total percentage of Input/Output operations that are reads.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.read_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 9ff70ba2c78145b7a34d6d1c01a0305f + name: 'General: IO total read, bytes' + type: DEPENDENT + key: nutanix.host.general.io.read.total.bytes + delay: '0' + units: B + description: 'Total size of Input/Output read operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_read_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 68e37c5e0ecf4d32bb9d8bff4fbc860d + name: 'General: IO total read, sec' + type: DEPENDENT + key: nutanix.host.general.io.read.total.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Total time of Input/Output read operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_read_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 1685e6e8655d4b438d9a62057413360b + name: 'General: Sequence IO' + type: DEPENDENT + key: nutanix.host.general.io.sequence + delay: '0' + description: 'The number of sequential Input/Output operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_seq_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 67c05bbcbe564fe894d4f0c630b0df36 + name: 'General: Sequence IO, %' + type: DEPENDENT + key: nutanix.host.general.io.sequence.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sequential Input/Output.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.seq_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 6b2b1a101c284ccca77001c24296913b + name: 'General: IO total, bytes' + type: DEPENDENT + key: nutanix.host.general.io.total.bytes + delay: '0' + units: B + description: 'Total size of Input/Output operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 31ec053fb9074612aec2f390c3297922 + name: 'General: IO total, sec' + type: DEPENDENT + key: nutanix.host.general.io.total.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Total time of Input/Output operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 6a84248e84474c7fb5f43f002d5c8184 + name: 'General: Write IO' + type: DEPENDENT + key: nutanix.host.general.io.write + delay: '0' + description: 'Total number of Input/Output write operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_write_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 01da29a48ad844dda87220bdf51fc49b + name: 'General: Write IO, bandwidth' + type: DEPENDENT + key: nutanix.host.general.io.write.bandwidth + delay: '0' + units: Bps + description: 'Write data transferred in B/sec from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.write_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: dfa5a832da96436ab36adb2ce5c427a7 + name: 'General: Write IO, latency' + type: DEPENDENT + key: nutanix.host.general.io.write.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average Input/Output write operation latency.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.avg_write_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 1b46f733b32b401f820817ce10923f7c + name: 'General: Write IO, %' + type: DEPENDENT + key: nutanix.host.general.io.write.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Total percentage of Input/Output operations that are writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.write_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: d8760935333d464993158e756b5dc242 + name: 'General: IOPS' + type: DEPENDENT + key: nutanix.host.general.iops + delay: '0' + units: '!iops' + description: 'Input/Output operations per second from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: fd34deb2093943c6b4f4ce5494e66b97 + name: 'General: Read IOPS' + type: DEPENDENT + key: nutanix.host.general.iops.read + delay: '0' + units: '!iops' + description: 'Total number of Input/Output read operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_read_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 2be54532725d4286b0f2f5427fa77087 + name: 'General: Write IOPS' + type: DEPENDENT + key: nutanix.host.general.iops.write + delay: '0' + value_type: FLOAT + units: '!iops' + description: 'Total number of Input/Output operations write per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.num_write_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: fa448c5009ca461baf2973f6c3c65a72 + name: 'General: Maintenance mode' + type: DEPENDENT + key: nutanix.host.general.maintenance + delay: '0' + description: | + Indicates whether the host is in maintenance mode. One of the following: + - Normal; + - Maintenance; + - Unknown. + valuemap: + name: 'Nutanix: Maintenance mode' + preprocessing: + - type: JSONPATH + parameters: + - $.host_in_maintenance_mode + - type: BOOL_TO_DECIMAL + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 19f7001acc8e45c49b6d5734322ee05d + name: 'General: Total memory, bytes' + type: DEPENDENT + key: nutanix.host.general.memory.total.bytes + delay: '0' + units: B + description: 'Total host memory in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.memory_capacity_in_bytes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: memory + - uuid: e67d32de7523428d959c29a653a0647b + name: 'General: Reboot pending' + type: DEPENDENT + key: nutanix.host.general.reboot + delay: '0' + description: 'Indicates whether the host is pending to reboot.' + valuemap: + name: 'Nutanix: Boolean' + preprocessing: + - type: JSONPATH + parameters: + - $.reboot_pending + - type: BOOL_TO_DECIMAL + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: eee1f5f4f68a44ea8cfbb409370b0f80 + name: 'General: Host state' + type: DEPENDENT + key: nutanix.host.general.state + delay: '0' + description: | + Displays the host state. One of the following: + - NEW; + - NORMAL; + - MARKED_FOR_REMOVAL_BUT_NOT_DETACHABLE; + - DETACHABLE. + valuemap: + name: 'Nutanix: Host state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'NEW', + 'NORMAL', + 'MARKED_FOR_REMOVAL_BUT_NOT_DETACHABLE', + 'DETACHABLE' + ].indexOf(value.toUpperCase()); + return idx !== -1 ? idx : 4; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 2e52146c43cd46cba3ad350528e5c277 + name: 'General: Storage capacity, bytes' + type: DEPENDENT + key: nutanix.host.general.storage.capacity.bytes + delay: '0' + units: B + description: 'Total size of the datastores used by this system in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage.capacity_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 7917e0babb4b433da73a3d8f5a872bd1 + name: 'General: Storage free, bytes' + type: DEPENDENT + key: nutanix.host.general.storage.free.bytes + delay: '0' + units: B + description: 'Total free space of all the datastores used by this system in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage.free_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 51be63c3691049a683be08546387ab7a + name: 'General: Storage logical usage, bytes' + type: DEPENDENT + key: nutanix.host.general.storage.logical.usage.bytes + delay: '0' + units: B + description: 'Total logical used space by the datastores of this system in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage.logical_usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: ca11026b4f3e411588eea1eab0c8c299 + name: 'General: Storage usage, bytes' + type: DEPENDENT + key: nutanix.host.general.storage.usage.bytes + delay: '0' + units: B + description: 'Total physical datastore space used by this host and all its snapshots on the datastores.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage.usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: c603fce582d64d5abe2f5863640c9f58 + name: 'General: Timespan, sec' + type: DEPENDENT + key: nutanix.host.general.timespan.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Host timespan.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.timespan_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 229e67e4300143a5b1ff1f5e0738785f + name: 'General: Total transformed usage, bytes' + type: DEPENDENT + key: nutanix.host.general.transformed.usage.total.bytes + delay: '0' + units: B + description: 'Actual usage of storage.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_transformed_usage_bytes + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 653f6d1b6e2d47e3a3c44406b7d6de11 + name: 'General: Host type' + type: DEPENDENT + key: nutanix.host.general.type + delay: '0' + description: | + Displays the host type. One of the following: + - HYPER_CONVERGED; + - COMPUTE_ONLY. + valuemap: + name: 'Nutanix: Host type' + preprocessing: + - type: JSONPATH + parameters: + - $.host_type + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'HYPER_CONVERGED', + 'COMPUTE_ONLY' + ].indexOf(value.toUpperCase()); + return idx !== -1 ? idx : 2; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: b46931e9874342bb9071170235db1523 + name: 'General: Total untransformed usage, bytes' + type: DEPENDENT + key: nutanix.host.general.untransformed.usage.total.bytes + delay: '0' + units: B + description: 'Logical usage of storage (physical usage divided by the replication factor).' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.total_untransformed_usage_bytes + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 044d58d7c3394f6fa62dd6390218f5ea + name: 'General: Number of virtual machines' + type: DEPENDENT + key: nutanix.host.general.vms.num + delay: '0' + description: 'Number of virtual machines running on this host.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_vms + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 52aa85553198433298dbbac196ebf66a + name: 'Hypervisor: Number of CPU cores' + type: DEPENDENT + key: nutanix.host.hypervisor.cpu.cores.num + delay: '0' + description: 'The number of CPU cores.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_cpu_cores + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: cpu + - uuid: fc3b3850f7c4440cb9ff50194204e68f + name: 'Hypervisor: Number of CPU sockets' + type: DEPENDENT + key: nutanix.host.hypervisor.cpu.sockets.num + delay: '0' + description: 'The number of CPU sockets.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_cpu_sockets + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: cpu + - uuid: 674aff8c3c764f1aa9571789f3c8d938 + name: 'Hypervisor: Number of CPU threads' + type: DEPENDENT + key: nutanix.host.hypervisor.cpu.threads.num + delay: '0' + description: 'The number of CPU threads.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_cpu_threads + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: cpu + - uuid: a7153c897dd64d0a9b523401380d5074 + name: 'Hypervisor: CPU usage, %' + type: DEPENDENT + key: nutanix.host.hypervisor.cpu.usage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of CPU used by the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_cpu_usage_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: cpu + - uuid: 9b943b7fbdb14ea88a755c048dbcd42d + name: 'Hypervisor: IO' + type: DEPENDENT + key: nutanix.host.hypervisor.io + delay: '0' + value_type: FLOAT + description: 'The number of Input/Output operations from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: d3c5c2f3aac9497c82db53b22fef99bc + name: 'Hypervisor: IO, bandwidth' + type: DEPENDENT + key: nutanix.host.hypervisor.io.bandwidth + delay: '0' + units: Bps + description: 'Data transferred in B/sec from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: fdc056be2fa34e84aa801e0dd1c27f2c + name: 'Hypervisor: IO, latency' + type: DEPENDENT + key: nutanix.host.hypervisor.io.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output operation latency from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_avg_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 34b8a6a9dff44c858cff7762f8f6f129 + name: 'Hypervisor: Read IO' + type: DEPENDENT + key: nutanix.host.hypervisor.io.read + delay: '0' + description: 'Input/Output read operations per second from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_read_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 3ab152f1c0534e90b9c84ed56e8f6522 + name: 'Hypervisor: Read IO, bandwidth' + type: DEPENDENT + key: nutanix.host.hypervisor.io.read.bandwidth + delay: '0' + units: Bps + description: 'Read data transferred in B/sec from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_read_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: d8a7b7a2090a4b81947c2b0043b15460 + name: 'Hypervisor: Read IO, latency' + type: DEPENDENT + key: nutanix.host.hypervisor.io.read.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output read latency from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_avg_read_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 7d8e8c00ced846a4b214123a5c11b6ba + name: 'Hypervisor: IO total read, bytes' + type: DEPENDENT + key: nutanix.host.hypervisor.io.read.total.bytes + delay: '0' + units: B + description: 'Total size of Input/Output read operations from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_total_read_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 7cc44b50da26404a8a95a94f9640e259 + name: 'Hypervisor: IO total read, sec' + type: DEPENDENT + key: nutanix.host.hypervisor.io.read.total.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Total time of Input/Output read operations from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_total_read_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 4f2081e28140438d94103dd709f45d9a + name: 'Hypervisor: IO total, bytes' + type: DEPENDENT + key: nutanix.host.hypervisor.io.total.bytes + delay: '0' + units: B + description: 'Total Input/Output operation size from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_total_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 08a7564943fd4d608b5b57299ca52956 + name: 'Hypervisor: IO total, sec' + type: DEPENDENT + key: nutanix.host.hypervisor.io.total.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Total Input/Output operation time from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_total_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 6678f0f027274409b44a879e22bc2255 + name: 'Hypervisor: Write IO' + type: DEPENDENT + key: nutanix.host.hypervisor.io.write + delay: '0' + description: 'Input/Output write operations from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_write_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 80514bb25ca54a789da233349b98d4bc + name: 'Hypervisor: Write IO, bandwidth' + type: DEPENDENT + key: nutanix.host.hypervisor.io.write.bandwidth + delay: '0' + units: Bps + description: 'Write data transferred in B/sec from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_write_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 113e7fbd52e64d628275a2246f9b1572 + name: 'Hypervisor: Write IO, latency' + type: DEPENDENT + key: nutanix.host.hypervisor.io.write.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output write latency from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_avg_write_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 5bffd28af1c64bff97e923551621bc75 + name: 'Hypervisor: IOPS' + type: DEPENDENT + key: nutanix.host.hypervisor.iops + delay: '0' + units: '!iops' + description: 'Input/Output operations per second from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: b60f8c87b1484087835e1157895a9230 + name: 'Hypervisor: Read IOPS' + type: DEPENDENT + key: nutanix.host.hypervisor.iops.read + delay: '0' + description: 'The number of Input/Output read operations from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_read_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 0dc0d5c57c4044cb8a60b0f145960cde + name: 'Hypervisor: Write IOPS' + type: DEPENDENT + key: nutanix.host.hypervisor.iops.write + delay: '0' + units: '!iops' + description: 'Input/Output write operations per second from the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_write_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 6cea713941644a389591598d0a17ab9a + name: 'Hypervisor: Memory usage, %' + type: DEPENDENT + key: nutanix.host.hypervisor.memory.usage.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of memory used by the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_memory_usage_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: memory + - uuid: 3e8cb0f5766b4e8cb392ed652da8c19a + name: 'Hypervisor: Full name' + type: DEPENDENT + key: nutanix.host.hypervisor.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'Full name of the Hypervisor running on the host.' + preprocessing: + - type: JSONPATH + parameters: + - $.hypervisor_full_name + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 083f7f4c56fa4e10bf90341d59cfc571 + name: 'Hypervisor: Received, bytes' + type: DEPENDENT + key: nutanix.host.hypervisor.received.bytes + delay: '0' + units: B + description: 'Bytes received over the network reported by the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_received_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: network + - uuid: d99a423ebf124816ba85a2493500004c + name: 'Hypervisor: Timespan, sec' + type: DEPENDENT + key: nutanix.host.hypervisor.timespan.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Hypervisor timespan.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_timespan_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: application + - uuid: 7aeaafc3ac174692ad9b65ee1afc54f0 + name: 'Hypervisor: Transmitted, bytes' + type: DEPENDENT + key: nutanix.host.hypervisor.transmitted.bytes + delay: '0' + units: B + description: 'Bytes transmitted over the network reported by the Hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.hypervisor_num_transmitted_bytes + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: network + - uuid: 30b4da75a8f54b5385310b43fa6a2a7a + name: 'Get metric' + type: SCRIPT + key: nutanix.host.metric.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Nutanix = { + params: {}, + + setParams: function (requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Nutanix.params = allParams; + Nutanix.tls = new CTlsConfig(allParams.tls_verify); + }, + + request: function (url) { + + var request = new HttpRequest(Nutanix.tls.options); + + if (typeof Nutanix.params.proxy !== 'undefined' && Nutanix.params.proxy !== '') { + request.setProxy(Nutanix.params.proxy); + } + + request.setHttpAuth(HTTPAUTH_BASIC, Nutanix.params.username, Nutanix.params.password); + + Zabbix.log(4, '[ Nutanix ] Sending request: ' + url); + + const response = request.get(url); + + Zabbix.log(4, '[ Nutanix ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Nutanix PRISM API. Check debug log for more information.'; + } + + return response; + }, + + deduplicateAlerts: function (full_data) { + const severity_mapping = [ + 'kinfo', + 'kwarning', + 'kcritical' + ] + + var output_data = {}; + for (var entity in full_data.entities) { + + if (Nutanix.params.api_method === 'clusters') { + if (result.entities[entity].node_uuid.split('-').length == 5) continue; + } + + var severity = severity_mapping.indexOf(full_data.entities[entity].severity.toLowerCase()), + message = full_data.entities[entity].message, + title = full_data.entities[entity].alert_title; + + full_data.entities[entity].context_types.forEach(function(context, index) { + message = message.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + title = title.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + }); + + key = md5(title + message); + if (key in output_data) { + if (full_data.entities[entity].created_time_stamp_in_usecs > output_data[key].created) { + output_data[key].created = full_data.entities[entity].created_time_stamp_in_usecs; + output_data[key].severity = severity !== -1 ? severity : 3; + output_data[key].state = full_data.entities[entity].resolved ? 0 : 1; + output_data[key].message = full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message; + output_data[key].last_id = full_data.entities[entity].id; + } + output_data[key].count += 1; + } else { + output_data[key] = { + "name": title + ' - ' + message, + "title": title != '' ? title : message, + "created": full_data.entities[entity].created_time_stamp_in_usecs, + "severity": severity !== -1 ? severity : 3, + "state": full_data.entities[entity].resolved ? 0 : 1, + "message": full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message, + "last_id": full_data.entities[entity].id, + "count": 1 + } + } + } + + return output_data; + }, + + cleanUnsupported: function (full_stat) { + var output_stat = {}; + for (var element in full_stat) { + if (full_stat[element] !== '-1') { + output_stat[element] = full_stat[element]; + } + }; + + return output_stat; + } + }; + + try { + const params = JSON.parse(value); + Nutanix.setParams(['endpoint_host', 'endpoint_port', 'username', 'password', 'auth_type', 'api_method', 'target_uuid'], params); + + const url = 'https://' + Nutanix.params.endpoint_host + ':' + Nutanix.params.endpoint_port + '/PrismGateway/services/rest/v2.0/' + Nutanix.params.api_method + '/' + Nutanix.params.target_uuid; + var result = Nutanix.request(url); + + result.stats = Nutanix.cleanUnsupported(result.stats); + + return JSON.stringify(result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(4, '[ Nutanix ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'Get data about basic metrics.' + timeout: '{$NUTANIX.TIMEOUT}' + parameters: + - name: api_method + value: hosts + - name: auth_type + value: basic + - name: endpoint_host + value: '{$NUTANIX.PRISM.ELEMENT.IP}' + - name: endpoint_port + value: '{$NUTANIX.PRISM.ELEMENT.PORT}' + - name: password + value: '{$NUTANIX.PASSWORD}' + - name: proxy + value: '{$NUTANIX.PROXY}' + - name: target_uuid + value: '{$NUTANIX.HOST.UUID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Nutanix Host Prism Element"}' + - name: username + value: '{$NUTANIX.USER}' + tags: + - tag: component + value: raw + - uuid: 762928864e674745820593499facb776 + name: 'Get metric check' + type: DEPENDENT + key: nutanix.host.metric.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: status + triggers: + - uuid: f23095d512e845ae846a2b774b97de51 + expression: 'length(last(/Nutanix Host Prism Element by HTTP/nutanix.host.metric.get.check))>0' + name: 'Nutanix: Failed to get metric data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 9d0f46350adc468ca4160b7a7e7e85a6 + name: 'Storage Controller: IO' + type: DEPENDENT + key: nutanix.host.storage.controller.io + delay: '0' + description: 'Input/Output operations from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: f927375ff1394485922c56df0146d17b + name: 'Storage Controller: IO, bandwidth' + type: DEPENDENT + key: nutanix.host.storage.controller.io.bandwidth + delay: '0' + units: Bps + description: 'Data transferred in B/sec from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 1c92602ab01b4a43a554bca63bc251ed + name: 'Storage Controller: IO, latency' + type: DEPENDENT + key: nutanix.host.storage.controller.io.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output latency from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_avg_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 2811d78caec14a3fbec0e75983399677 + name: 'Storage Controller: Read IO' + type: DEPENDENT + key: nutanix.host.storage.controller.io.read + delay: '0' + description: 'Input/Output read operations from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_read_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 7f10496163da4c13a638c99ced62384d + name: 'Storage Controller: Read IO, bandwidth' + type: DEPENDENT + key: nutanix.host.storage.controller.io.read.bandwidth + delay: '0' + units: Bps + description: 'Read data transferred in B/sec from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_read_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 52f5ed73efa74dc8aaa308a1120b3c1d + name: 'Storage Controller: Read IO, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.io.read.bytes + delay: '0' + units: B + description: 'Storage Controller average read Input/Output in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_avg_read_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: ed5f0d67b7814aab8233693a60432726 + name: 'Storage Controller: Read IO, latency' + type: DEPENDENT + key: nutanix.host.storage.controller.io.read.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output read latency from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_avg_read_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 1f5ddc62861f44c6bd3de302805b490d + name: 'Storage Controller: Read IO, %' + type: DEPENDENT + key: nutanix.host.storage.controller.io.read.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of Input/Output operations from the Storage Controller that are reads.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_read_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 7266e0a734b94612b77da9173f247391 + name: 'Storage Controller: IO total read, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.io.read.total.bytes + delay: '0' + units: B + description: 'Total controller read Input/Output size.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_total_read_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: d49ffc420dee4731bf28f9835bb8e46d + name: 'Storage Controller: IO total read, sec' + type: DEPENDENT + key: nutanix.host.storage.controller.io.read.total.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Total controller read Input/Output time.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_total_read_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: c9e37cc8765d4492ae579029fddfe9a6 + name: 'Storage Controller: IO total, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.io.total.bytes + delay: '0' + units: B + description: 'Total controller Input/Output size.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_total_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: df7e8de51d1e4c309ace840439dc944e + name: 'Storage Controller: IO total, sec' + type: DEPENDENT + key: nutanix.host.storage.controller.io.total.sec + delay: '0' + units: s + description: 'Total controller Input/Output time.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_total_io_time_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: b7b1af82edeb4852a3febd9d29404e16 + name: 'Storage Controller: Write IO' + type: DEPENDENT + key: nutanix.host.storage.controller.io.write + delay: '0' + description: 'Input/Output write operations to the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_write_io + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 9378ffd9966d4980897022b2017ab63b + name: 'Storage Controller: Write IO, bandwidth' + type: DEPENDENT + key: nutanix.host.storage.controller.io.write.bandwidth + delay: '0' + units: Bps + description: 'Write data transferred in B/sec to the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_write_io_bandwidth_kBps + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 967bf0b92cf54179be5c9686fb83f7b3 + name: 'Storage Controller: Write IO, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.io.write.bytes + delay: '0' + units: B + description: 'Storage Controller average write Input/Output in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_avg_write_io_size_kbytes + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 3e8f8771f1e8406eb181caa86dbed38d + name: 'Storage Controller: Write IO, latency' + type: DEPENDENT + key: nutanix.host.storage.controller.io.write.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Input/Output write latency to the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_avg_write_io_latency_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 6f3462bba55c4570b1ad7a5d614f567c + name: 'Storage Controller: Write IO, %' + type: DEPENDENT + key: nutanix.host.storage.controller.io.write.percent + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of Input/Output operations to the Storage Controller that are writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_write_io_ppm + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.0001' + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 34174b3fb45e41af9aa75d0ba3b115ff + name: 'Storage Controller: IOPS' + type: DEPENDENT + key: nutanix.host.storage.controller.iops + delay: '0' + units: '!iops' + description: 'Input/Output operations per second from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: b7c2fcd576c744c4b51256dfc1f9e83d + name: 'Storage Controller: Read IOPS' + type: DEPENDENT + key: nutanix.host.storage.controller.iops.read + delay: '0' + units: '!iops' + description: 'Input/Output read operations per second from the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_read_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 7c8b93d01f0a4078837a00760de1d49c + name: 'Storage Controller: Write IOPS' + type: DEPENDENT + key: nutanix.host.storage.controller.iops.write + delay: '0' + units: '!iops' + description: 'Input/Output write operations per second to the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_num_write_iops + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 476b129cba244a5b8bb96ccc78de397d + name: 'Storage Tier: Das-sata capacity, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.tier.das_sata.capacity.bytes + delay: '0' + units: B + description: 'The total capacity of Das-sata in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.das-sata.capacity_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: eb23e35b137241f5a9b7142957aec07c + name: 'Storage Tier: Das-sata free, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.tier.das_sata.free.bytes + delay: '0' + units: B + description: 'The free space of Das-sata in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.das-sata.free_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 05273aaa28c74743b1bd57a528f575b6 + name: 'Storage Tier: Das-sata usage, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.tier.das_sata.usage.bytes + delay: '0' + units: B + description: 'The used space of Das-sata in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.das-sata.usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 92a3a023365848a988be29f5ad8e3bfe + name: 'Storage Tier: SSD capacity, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.tier.ssd.capacity.bytes + delay: '0' + units: B + description: 'The total capacity of SSD in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.ssd.capacity_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: f4bd200a2cae4cc898718d138a57083a + name: 'Storage Tier: SSD free, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.tier.ssd.free.bytes + delay: '0' + units: B + description: 'The free space of SSD in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.ssd.free_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 6cb0e31dcefd4354908feba5396b3959 + name: 'Storage Tier: SSD usage, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.tier.ssd.usage.bytes + delay: '0' + units: B + description: 'The used space of SSD in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.usage_stats.[''storage_tier.ssd.usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: c290ab59bfe24e00b7b54d35e039d08b + name: 'Storage Controller: Timespan, sec' + type: DEPENDENT + key: nutanix.host.storage.controller.timespan.sec + delay: '0' + value_type: FLOAT + units: s + description: 'Controller timespan.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_timespan_usecs + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '1.0E-6' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + - uuid: 85c0a08944454f5d9d60f3124dd834e0 + name: 'Storage Controller: Total transformed usage, bytes' + type: DEPENDENT + key: nutanix.host.storage.controller.transformed.usage.total.bytes + delay: '0' + units: B + description: 'Actual usage of the Storage Controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.stats.controller_total_transformed_usage_bytes + error_handler: DISCARD_VALUE + master_item: + key: nutanix.host.metric.get + tags: + - tag: component + value: storage + discovery_rules: + - uuid: 389dc85322634670a9e2048ac7d378f5 + name: 'Alert discovery' + type: DEPENDENT + key: nutanix.host.alert.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALERT.NAME}' + value: '{$NUTANIX.ALERT.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#ALERT.NAME}' + value: '{$NUTANIX.ALERT.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ALERT.SEVERITY}' + value: '{$NUTANIX.ALERT.DISCOVERY.SEVERITY.MATCHES}' + formulaid: C + - macro: '{#ALERT.STATE}' + value: '{$NUTANIX.ALERT.DISCOVERY.STATE.MATCHES}' + formulaid: D + description: | + Discovery of all alerts. + Alerts will be grouped by title. For each alert, in addition to the basic information, the number of activation and last alert ID will be available. + item_prototypes: + - uuid: 8fa4a777a3eb4be5a0030193743ee589 + name: 'Alert [{#ALERT.NAME}]: Count alerts' + type: DEPENDENT + key: 'nutanix.host.alert.count["{#ALERT.KEY}"]' + delay: '0' + description: 'The number of times this alert was triggered.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.count' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.alert.get + tags: + - tag: component + value: alert + - uuid: 2bcb76c0eafd49738c0fb055ab3c9142 + name: 'Alert [{#ALERT.NAME}]: Create datetime' + type: DEPENDENT + key: 'nutanix.host.alert.created["{#ALERT.KEY}"]' + delay: '0' + units: unixtime + description: 'The alert creation date and time.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.created' + - type: MULTIPLIER + parameters: + - '1.0E-6' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.alert.get + tags: + - tag: component + value: alert + - uuid: a489cfb61a3d4eb8a0faf7c8f6abd449 + name: 'Alert [{#ALERT.NAME}]: Last alert ID' + type: DEPENDENT + key: 'nutanix.host.alert.last_id["{#ALERT.KEY}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Latest ID of the alert.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.last_id' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.host.alert.get + tags: + - tag: component + value: alert + - uuid: 4ea82682f355440ba35372e506a5531d + name: 'Alert [{#ALERT.NAME}]: Detailed message' + type: DEPENDENT + key: 'nutanix.host.alert.message["{#ALERT.KEY}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Detailed information about the current alert.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.message' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.host.alert.get + tags: + - tag: component + value: alert + - uuid: 4cb36a2694c04c3caae239752551a963 + name: 'Alert [{#ALERT.NAME}]: Severity' + type: DEPENDENT + key: 'nutanix.host.alert.severity["{#ALERT.KEY}"]' + delay: '0' + description: | + Alert severity. One of the following: + - Info; + - Warning; + - Critical; + - Unknown. + valuemap: + name: 'Nutanix: Alert severity' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.severity' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.alert.get + tags: + - tag: component + value: alert + - uuid: 35c0d10c39f445f0a0d0df07588495b9 + name: 'Alert [{#ALERT.NAME}]: State' + type: DEPENDENT + key: 'nutanix.host.alert.state["{#ALERT.KEY}"]' + delay: '0' + description: | + Alert state. One of the following: + - OK; + - Problem. + valuemap: + name: 'Nutanix: Alert state' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.state' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.alert.get + tags: + - tag: component + value: alert + - uuid: 80a264a6ce9846fba559bc43a587710e + name: 'Alert [{#ALERT.NAME}]: Full title' + type: DEPENDENT + key: 'nutanix.host.alert.title["{#ALERT.KEY}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'The full title of the alert.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALERT.KEY}.title' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.host.alert.get + tags: + - tag: component + value: alert + master_item: + key: nutanix.host.alert.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#ALERT.KEY}": entity, + "{#ALERT.STATE}": json_data[entity].state, + "{#ALERT.TITLE}": json_data[entity].title, + "{#ALERT.SEVERITY}": json_data[entity].severity, + "{#ALERT.NAME}": json_data[entity].name.length > 50 ? json_data[entity].name.substr(0, 50) + '...' : json_data[entity].name + }); + } + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: a3255c6bd1014de0a486aa2b1bb5d047 + name: 'Disk discovery' + type: DEPENDENT + key: nutanix.host.disk.discovery + delay: '0' + description: 'Discovery of all disks.' + item_prototypes: + - uuid: 660ca0265176460090413cd91a29c821 + name: 'Disk [{#DISK.SERIAL}]: Space: Total, bytes' + type: DEPENDENT + key: 'nutanix.host.disk.capacity.bytes["{#DISK.SERIAL}"]' + delay: '0' + units: B + description: 'The total disk space in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#DISK.ID}''].usage_stats.[''storage.capacity_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: nutanix.host.disk.get + tags: + - tag: component + value: disk + - tag: location + value: '{#DISK.LOCATION}' + - tag: path + value: '{#DISK.MOUNT.PATH}' + - tag: serial + value: '{#DISK.SERIAL}' + - uuid: e7a8aadc572648f38fdcba9eaaa9ef78 + name: 'Disk [{#DISK.SERIAL}]: Space: Free, bytes' + type: DEPENDENT + key: 'nutanix.host.disk.free.bytes["{#DISK.SERIAL}"]' + delay: '0' + units: B + description: 'The free disk space in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#DISK.ID}''].usage_stats.[''storage.free_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.disk.get + tags: + - tag: component + value: disk + - tag: location + value: '{#DISK.LOCATION}' + - tag: path + value: '{#DISK.MOUNT.PATH}' + - tag: serial + value: '{#DISK.SERIAL}' + - uuid: a28563a3464c4fef8ff05b7683495efd + name: 'Disk [{#DISK.SERIAL}]: IO, latency' + type: DEPENDENT + key: 'nutanix.host.disk.io.avg.latency["{#DISK.SERIAL}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'The average Input/Output operation latency.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#DISK.ID}''].stats.avg_io_latency_usecs' + - type: MULTIPLIER + parameters: + - '1.0E-6' + master_item: + key: nutanix.host.disk.get + tags: + - tag: component + value: disk + - tag: location + value: '{#DISK.LOCATION}' + - tag: path + value: '{#DISK.MOUNT.PATH}' + - tag: serial + value: '{#DISK.SERIAL}' + - uuid: 21c81453cc8c44daaa50b1e5f45c1f4b + name: 'Disk [{#DISK.SERIAL}]: Bandwidth' + type: DEPENDENT + key: 'nutanix.host.disk.io.bandwidth["{#DISK.SERIAL}"]' + delay: '0' + units: Bps + description: 'Bandwidth of the disk in B/sec.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#DISK.ID}''].stats.io_bandwidth_kBps' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: nutanix.host.disk.get + tags: + - tag: component + value: disk + - tag: location + value: '{#DISK.LOCATION}' + - tag: path + value: '{#DISK.MOUNT.PATH}' + - tag: serial + value: '{#DISK.SERIAL}' + - uuid: 324f5d2658b34cc3ab4fcc4a6e2008fe + name: 'Disk [{#DISK.SERIAL}]: IOPS' + type: DEPENDENT + key: 'nutanix.host.disk.iops["{#DISK.SERIAL}"]' + delay: '0' + units: '!iops' + description: 'The number of Input/Output operations from the disk.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#DISK.ID}''].stats.num_iops' + master_item: + key: nutanix.host.disk.get + tags: + - tag: component + value: disk + - tag: location + value: '{#DISK.LOCATION}' + - tag: path + value: '{#DISK.MOUNT.PATH}' + - tag: serial + value: '{#DISK.SERIAL}' + - uuid: 2517600fc093419eab9cc822fa1454a6 + name: 'Disk [{#DISK.SERIAL}]: Space: Logical usage, bytes' + type: DEPENDENT + key: 'nutanix.host.disk.logical.usage.bytes["{#DISK.SERIAL}"]' + delay: '0' + units: B + description: 'The logical used disk space in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#DISK.ID}''].usage_stats.[''storage.logical_usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.disk.get + tags: + - tag: component + value: disk + - tag: location + value: '{#DISK.LOCATION}' + - tag: path + value: '{#DISK.MOUNT.PATH}' + - tag: serial + value: '{#DISK.SERIAL}' + - uuid: 673be2469f634e4cb992550d6665f0e9 + name: 'Disk [{#DISK.SERIAL}]: Online' + type: DEPENDENT + key: 'nutanix.host.disk.online["{#DISK.SERIAL}"]' + delay: '0' + description: 'Indicates whether the disk is online.' + valuemap: + name: 'Nutanix: Boolean' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#DISK.ID}''].online' + - type: BOOL_TO_DECIMAL + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '2' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.disk.get + tags: + - tag: component + value: disk + - tag: location + value: '{#DISK.LOCATION}' + - tag: path + value: '{#DISK.MOUNT.PATH}' + - tag: serial + value: '{#DISK.SERIAL}' + - uuid: d0ecf7b9e9cd4a7687ff9fd8adc8e7e3 + name: 'Disk [{#DISK.SERIAL}]: Status' + type: DEPENDENT + key: 'nutanix.host.disk.status["{#DISK.SERIAL}"]' + delay: '0' + description: | + Current disk status. One of the following: + - NORMAL; + - DATA_MIGRATION_INITIATED; + - MARKED_FOR_REMOVAL_BUT_NOT_DETACHABLE; + - DETACHABLE. + valuemap: + name: 'Nutanix: Disk status' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#DISK.ID}''].disk_status' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'NORMAL', + 'DATA_MIGRATION_INITIATED', + 'MARKED_FOR_REMOVAL_BUT_NOT_DETACHABLE', + 'DETACHABLE' + ].indexOf(value.toUpperCase()); + return idx !== -1 ? idx : 4; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.disk.get + tags: + - tag: component + value: disk + - tag: location + value: '{#DISK.LOCATION}' + - tag: path + value: '{#DISK.MOUNT.PATH}' + - tag: serial + value: '{#DISK.SERIAL}' + - uuid: 904596dcd2db4721bd923e325b8b889e + name: 'Disk [{#DISK.SERIAL}]: Space: Used, bytes' + type: DEPENDENT + key: 'nutanix.host.disk.usage.bytes["{#DISK.SERIAL}"]' + delay: '0' + units: B + description: 'The used disk space in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#DISK.ID}''].usage_stats.[''storage.usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.host.disk.get + tags: + - tag: component + value: disk + - tag: location + value: '{#DISK.LOCATION}' + - tag: path + value: '{#DISK.MOUNT.PATH}' + - tag: serial + value: '{#DISK.SERIAL}' + graph_prototypes: + - uuid: a9da4fc17600434b9abecd02a9e3d9f3 + name: 'Disk [{#DISK.SERIAL}]: Space: Logical usage and Used' + graph_items: + - drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: 'nutanix.host.disk.usage.bytes["{#DISK.SERIAL}"]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: 'nutanix.host.disk.logical.usage.bytes["{#DISK.SERIAL}"]' + - uuid: a225393ead3e4218be09cc19ba84392e + name: 'Disk [{#DISK.SERIAL}]: Space: Total and Used' + graph_items: + - drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: 'nutanix.host.disk.usage.bytes["{#DISK.SERIAL}"]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: 'nutanix.host.disk.capacity.bytes["{#DISK.SERIAL}"]' + master_item: + key: nutanix.host.disk.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#DISK.ID}": json_data[entity].id, + "{#DISK.SERIAL}": json_data[entity].mount_path.split('/').pop(), + "{#DISK.MOUNT.PATH}": json_data[entity].mount_path, + "{#DISK.LOCATION}": json_data[entity].location + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: host + - tag: target + value: nutanix + - tag: target + value: prism-element + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Nutanix Host Prism Element", e.g. {$HTTP.TLS.VERIFY:"Nutanix Host Prism Element"}.' + - macro: '{$NUTANIX.ALERT.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable Nutanix alerts by name.' + - macro: '{$NUTANIX.ALERT.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Nutanix alerts by name.' + - macro: '{$NUTANIX.ALERT.DISCOVERY.SEVERITY.MATCHES}' + value: '.*' + description: 'Filter to exclude discovered Nutanix alerts by severity. Set all possible severities for filtering in the range 0-2. "0" - Info, "1" - Warning, "2" - Critical.' + - macro: '{$NUTANIX.ALERT.DISCOVERY.STATE.MATCHES}' + value: '.*' + description: 'Filter to exclude discovered Nutanix alerts by state. Set "1" for filtering only problem alerts or "0" for resolved ones.' + - macro: '{$NUTANIX.HOST.UUID}' + description: 'UUID of the host.' + - macro: '{$NUTANIX.PASSWORD}' + type: SECRET_TEXT + description: 'Nutanix API password.' + - macro: '{$NUTANIX.PRISM.ELEMENT.IP}' + value: '' + description: 'Set the Nutanix API IP here.' + - macro: '{$NUTANIX.PRISM.ELEMENT.PORT}' + value: '9440' + description: 'Set the Nutanix API port here.' + - macro: '{$NUTANIX.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$NUTANIX.TIMEOUT}' + value: 10s + description: 'API response timeout.' + - macro: '{$NUTANIX.USER}' + value: '' + description: 'Nutanix API username.' + dashboards: + - uuid: ef6430bfad434b939f1bb22848cba40e + name: 'Nutanix Host Prism Element overview' + pages: + - name: Overview + widgets: + - type: item + name: 'General: Host state' + width: '18' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.state + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: 00BFFF + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 47A76A + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FF8F00 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: FF8F00 + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: STRING + name: thresholds.4.color + value: D2D2D2 + - type: STRING + name: thresholds.4.threshold + value: '4' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: IOPS + 'y': '2' + width: '54' + height: '6' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.iops + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.iops + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: PMVMG + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'General: Storage: Total and free' + 'y': '8' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.storage.capacity.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.storage.free.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: PMVKF + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'General: Reboot pending' + x: '18' + width: '18' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.reboot + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: 47A76A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF8F00 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: D2D2D2 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: 'General: Storage: Usage' + x: '18' + 'y': '8' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.storage.logical.usage.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.storage.usage.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: PMVKJ + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'General: Maintenance mode' + x: '36' + width: '18' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.maintenance + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: 47A76A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF8F00 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: D2D2D2 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Total CPU capacity' + x: '36' + 'y': '8' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.cpu.capacity.hz + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Total memory' + x: '36' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.memory.total.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Degrade status' + x: '54' + width: '18' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.degraded + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: 47A76A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF8F00 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: D2D2D2 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Number of virtual machines' + x: '54' + 'y': '2' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.vms.num + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Host type' + x: '54' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.type + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: item + name: 'General: Boot time' + x: '54' + 'y': '6' + width: '18' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.boot.time + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: item + name: 'General: CPU model' + x: '54' + 'y': '8' + width: '18' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.cpu.model + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '20' + - type: item + name: 'General: Timespan' + x: '54' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.timespan.sec + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - name: Performance + widgets: + - type: svggraph + name: 'Hypervisor: CPU usage' + width: '48' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.cpu.usage.percent + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: lefty_static_units + value: '%' + - type: INTEGER + name: lefty_units + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: RUGEL + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Hypervisor: Memory usage' + 'y': '5' + width: '48' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.memory.usage.percent + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: lefty_static_units + value: '%' + - type: INTEGER + name: lefty_units + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: RUGEN + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Number of CPU cores' + 'y': '10' + width: '24' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.cpu.cores.num + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Number of CPU sockets' + x: '24' + 'y': '10' + width: '24' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.cpu.sockets.num + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: gauge + name: 'Hypervisor: CPU usage' + x: '48' + width: '24' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: empty_color + value: E1F5FE + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.cpu.usage.percent + - type: STRING + name: thresholds.0.color + value: 29B6F6 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFF176 + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: F9A825 + - type: STRING + name: thresholds.2.threshold + value: '80' + - type: STRING + name: thresholds.3.color + value: FF465C + - type: STRING + name: thresholds.3.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: STRING + name: units + value: '%' + - type: item + name: 'General: Total CPU capacity' + x: '48' + 'y': '3' + width: '24' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.cpu.capacity.hz + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: gauge + name: 'Hypervisor: Memory usage' + x: '48' + 'y': '5' + width: '24' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: empty_color + value: E1F5FE + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.memory.usage.percent + - type: STRING + name: thresholds.0.color + value: 29B6F6 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFF176 + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: F9A825 + - type: STRING + name: thresholds.2.threshold + value: '80' + - type: STRING + name: thresholds.3.color + value: FF465C + - type: STRING + name: thresholds.3.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: STRING + name: units + value: '%' + - type: item + name: 'General: Total memory' + x: '48' + 'y': '8' + width: '24' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.memory.total.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Number of CPU threads' + x: '48' + 'y': '10' + width: '24' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.cpu.threads.num + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - name: IO + widgets: + - type: svggraph + name: 'General: IOPS' + width: '40' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops.read + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops.write + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: TQOEF + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'General: Bandwidth' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.bandwidth + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.read.bandwidth + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.write.bandwidth + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: CJFZM + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'General: Latency' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.latency + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.read.latency + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.write.latency + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: PDAZA + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'General: IOPS' + x: '40' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Read IOPS' + x: '40' + 'y': '2' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops.read + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'General: Write IOPS' + x: '40' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops.write + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: piechart + name: 'General: Read IO / Write IO' + x: '58' + width: '14' + height: '6' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.read.percent + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.write.percent + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_value + value: '1' + - type: INTEGER + name: space + value: '7' + - type: INTEGER + name: width + value: '40' + - name: 'Content Cache' + widgets: + - type: svggraph + name: 'Content Cache: Memory' + width: '54' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.logical.memory.usage.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.saved.memory.usage.bytes + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.physical.memory.usage.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: HNWKK + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Content Cache: Logical memory usage' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Logical memory usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.logical.memory.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: 'Content Cache: SSD usage' + 'y': '6' + width: '54' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.logical.ssd.usage.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.physical.ssd.usage.bytes + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.saved.ssd.usage.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: GCYCY + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Content Cache: Logical SSD usage' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Logical SSD usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.logical.ssd.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Content Cache: Logical saved memory usage' + x: '18' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Logical saved memory usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.saved.memory.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Content Cache: Physical SSD usage' + x: '18' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Physical SSD usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.physical.ssd.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Content Cache: Physical memory usage' + x: '36' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Physical memory usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.physical.memory.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Content Cache: Saved SSD usage' + x: '36' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Content Cache: Saved SSD usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.saved.ssd.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: gauge + name: 'Content Cache: Hit rate' + x: '54' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: empty_color + value: E1F5FE + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.hit.percent + - type: STRING + name: units + value: '%' + - type: STRING + name: value_arc_color + value: 0040FF + - type: svggraph + name: 'Content Cache: Hit rate' + x: '54' + 'y': '4' + width: '18' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.hit.percent + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: lefty_static_units + value: '%' + - type: INTEGER + name: lefty_units + value: '1' + - type: INTEGER + name: legend + value: '0' + - type: STRING + name: reference + value: ZBMMF + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Content Cache: Number of lookups' + x: '54' + 'y': '8' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.lookups.num + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Content Cache: References' + x: '54' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.dedup.ref.num + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - name: Hypervisor + widgets: + - type: svggraph + name: 'Hypervisor: IOPS' + width: '52' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.iops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.iops.read + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.iops.write + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: RUGEM + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Hypervisor: Latency' + 'y': '4' + width: '52' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.latency + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.read.latency + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.write.latency + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: GNBJL + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Hypervisor: Bandwidth' + 'y': '8' + width: '52' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.bandwidth + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.read.bandwidth + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.write.bandwidth + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: BVXJW + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Hypervisor: Full name' + x: '52' + width: '20' + hide_header: 'YES' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.name + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - type: item + name: 'Hypervisor: Timespan' + x: '52' + 'y': '2' + width: '20' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.timespan.sec + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: 'Hypervisor: Received' + x: '52' + 'y': '4' + width: '20' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.received.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend + value: '0' + - type: STRING + name: reference + value: LOWCE + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Hypervisor: Transmitted' + x: '52' + 'y': '8' + width: '20' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.transmitted.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend + value: '0' + - type: STRING + name: reference + value: LOWCF + - type: INTEGER + name: righty + value: '0' + - name: 'Storage controller' + widgets: + - type: svggraph + name: 'Storage controller: IOPS' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.iops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.iops.read + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.iops.write + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: VKETW + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Storage controller: IO' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.read + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.write + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: RKARF + - type: INTEGER + name: righty + value: '0' + - type: piechart + name: 'Storage controller: Read IO / Write IO' + x: '36' + width: '12' + height: '6' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.read.percent + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.write.percent + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_value + value: '1' + - type: INTEGER + name: space + value: '7' + - type: INTEGER + name: width + value: '40' + - type: svggraph + name: 'Storage controller: Bandwidth' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: FF0080 + - type: STRING + name: ds.0.color.2 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.bandwidth + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.read.bandwidth + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.write.bandwidth + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: FCTEE + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Storage controller: Read IO / Write IO' + x: '48' + width: '24' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.read.percent + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.write.percent + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.stacked + value: '1' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: GVMJB + - type: INTEGER + name: righty + value: '0' + - name: 'Storage Tier' + widgets: + - type: svggraph + name: 'Storage Tier: Das-sata' + width: '50' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.das_sata.free.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.das_sata.usage.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: SCETD + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Storage Tier: Das-sata free' + 'y': '4' + width: '25' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Storage Tier: Das-sata free' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.das_sata.free.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: 'Storage Tier: SSD' + 'y': '6' + width: '50' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.ssd.free.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.ssd.usage.bytes + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: NEBOH + - type: INTEGER + name: righty + value: '0' + - type: item + name: 'Storage Tier: SSD free' + 'y': '10' + width: '25' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Storage Tier: SSD free' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.ssd.free.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Storage Tier: Das-sata usage' + x: '25' + 'y': '4' + width: '25' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Storage Tier: Das-sata usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.das_sata.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Storage Tier: SSD usage' + x: '25' + 'y': '10' + width: '25' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Storage Tier: SSD usage' + - type: ITEM + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.ssd.usage.bytes + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: piechart + name: 'Storage Tier: Das-sata Usage / Total' + x: '50' + width: '22' + height: '6' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.das_sata.capacity.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.das_sata.usage.bytes + - type: INTEGER + name: ds.0.type.0 + value: '1' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_value + value: '1' + - type: INTEGER + name: space + value: '7' + - type: INTEGER + name: width + value: '40' + - type: piechart + name: 'Storage Tier: SSD Usage / Total' + x: '50' + 'y': '6' + width: '22' + height: '6' + fields: + - type: INTEGER + name: draw_type + value: '1' + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: STRING + name: ds.0.color.1 + value: 0040FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.ssd.capacity.bytes + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.ssd.usage.bytes + - type: INTEGER + name: ds.0.type.0 + value: '1' + - type: INTEGER + name: ds.0.type.1 + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_value + value: '1' + - type: INTEGER + name: space + value: '7' + - type: INTEGER + name: width + value: '40' + - name: Disk + widgets: + - type: honeycomb + name: 'Disk online' + width: '36' + height: '4' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: '*Online' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Disk.\[(.*)\]:\sOnline", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: LSGAM + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 47A76A + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: D2D2D2 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: graphprototype + name: 'Space: Total and Used' + 'y': '4' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + name: 'Disk [{#DISK.SERIAL}]: Space: Total and Used' + - type: STRING + name: reference + value: MLSDN + - type: graphprototype + name: 'Space: Free' + 'y': '8' + width: '72' + height: '4' + fields: + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + key: 'nutanix.host.disk.free.bytes["{#DISK.SERIAL}"]' + - type: STRING + name: reference + value: MLSDA + - type: INTEGER + name: source_type + value: '3' + - type: honeycomb + name: 'Disk status' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: 'Disk*Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Disk.\[(.*)\]:\sStatus", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: LSGAL + - type: STRING + name: thresholds.0.color + value: 47A76A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFB300 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FFB300 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: graphprototype + name: 'Space: Logical usage and Used' + x: '36' + 'y': '4' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Nutanix Host Prism Element by HTTP' + name: 'Disk [{#DISK.SERIAL}]: Space: Logical usage and Used' + - type: STRING + name: reference + value: MLSDX + valuemaps: + - uuid: c2fbc73721564974adb6251fdb372f70 + name: 'Nutanix: Alert severity' + mappings: + - value: '0' + newvalue: Info + - value: '1' + newvalue: Warning + - value: '2' + newvalue: Critical + - value: '3' + newvalue: Unknown + - uuid: 7972e3d351f04d1b9cd4b7a542d8a81f + name: 'Nutanix: Alert state' + mappings: + - value: '0' + newvalue: Ok + - value: '1' + newvalue: Problem + - uuid: 20773014179d419cae5306b0370d405c + name: 'Nutanix: Boolean' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - value: '2' + newvalue: Unknown + - uuid: 6e081d8e0e4e43f7914b311ce2925f82 + name: 'Nutanix: Degraded state' + mappings: + - value: '0' + newvalue: 'Not degraded' + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Unknown + - uuid: 1381c5ba61eb4cb89303b6256f81e036 + name: 'Nutanix: Disk status' + mappings: + - value: '0' + newvalue: Normal + - value: '1' + newvalue: 'Data migration initiated' + - value: '2' + newvalue: 'Marked for removal but not detachable' + - value: '3' + newvalue: Detachable + - value: '4' + newvalue: Unknown + - uuid: 513019c2559c48cfbc6c801179c4a7ce + name: 'Nutanix: Host state' + mappings: + - value: '0' + newvalue: New + - value: '1' + newvalue: Normal + - value: '2' + newvalue: 'Marked for removal but not detachable' + - value: '3' + newvalue: Detachable + - value: '4' + newvalue: Unknown + - uuid: d934bf8ae17c4ed78a439b92cf2f7bef + name: 'Nutanix: Host type' + mappings: + - value: '0' + newvalue: 'Hyper converged' + - value: '1' + newvalue: 'Compute only' + - value: '2' + newvalue: Unknown + - uuid: 1ee8073575c842269be02dd94211c22c + name: 'Nutanix: Maintenance mode' + mappings: + - value: '0' + newvalue: Normal + - value: '1' + newvalue: Maintenance + - value: '2' + newvalue: Unknown + graphs: + - uuid: 10cc868569aa457194f23f000d76c42c + name: 'Content Cache: Hit rate, %' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.hit.percent + - uuid: 7573a56ef8c147b7af2a3d6208af7169 + name: 'Content Cache: Memory, bytes' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.logical.memory.usage.bytes + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.saved.memory.usage.bytes + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.physical.memory.usage.bytes + - uuid: 6ec9ec1bcf17441fbe2fa2130a154f4e + name: 'Content Cache: SSD usage, bytes' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.logical.ssd.usage.bytes + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.physical.ssd.usage.bytes + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.content.cache.saved.ssd.usage.bytes + - uuid: 75c38f9f8c1c4760bff3f73f97de2f81 + name: 'General: IO, bandwidth' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.bandwidth + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.read.bandwidth + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.write.bandwidth + - uuid: c987de890149423184078af71fa4929e + name: 'General: IO, latency' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.latency + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.read.latency + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.write.latency + - uuid: 6ba2e066462543b1a5c732d4fe692f94 + name: 'General: IOPS' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops.read + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops.write + - uuid: ef5cc6450ff849d6bb17bca58f1ded6e + name: 'General: Read IO / Write IO' + type: STACKED + graph_items: + - color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.write.percent + - sortorder: '1' + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.io.read.percent + - uuid: d81d699dcc8f40928fc200919a6d18ca + name: 'Hypervisor: CPU usage, %' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.cpu.usage.percent + - uuid: d0053e62420149cdaea9ea121d35b12f + name: 'Hypervisor: IO, bandwidth' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.bandwidth + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.read.bandwidth + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.write.bandwidth + - uuid: 4856dc8a3c1c4932bbcf6a2c2a98a33e + name: 'Hypervisor: IO, latency' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.latency + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.read.latency + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.io.write.latency + - uuid: 1829358efd7445bbbf3d05233eb6d45d + name: 'Hypervisor: IOPS' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.iops + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.iops.read + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.iops.write + - uuid: d95d9844425b4db5af1346aeac315021 + name: 'Hypervisor: Memory usage, %' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: FF465C + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.memory.usage.percent + - uuid: 943cbd42a13147bdb76a5a171351b5c0 + name: 'Hypervisor: Received, bytes' + graph_items: + - drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.received.bytes + - uuid: e60a52fb92a043258b962457ea0cd616 + name: 'Hypervisor: Transmitted, bytes' + graph_items: + - drawtype: GRADIENT_LINE + color: FF465C + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.transmitted.bytes + - uuid: 0dc058779ebb484e85cc886ea431f669 + name: 'IOPS overview' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.general.iops + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.hypervisor.iops + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.iops + - uuid: be009461151d40f2a8e655eb3e9381fe + name: 'Storage Controller: IO' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.read + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.write + - uuid: b6529f70381a4762b0bf965be9a52e2f + name: 'Storage Controller: IO, bandwidth' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.bandwidth + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.read.bandwidth + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.write.bandwidth + - uuid: 031f1610f18441b9b96c8bb47e8913ac + name: 'Storage Controller: IOPS' + graph_items: + - drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.iops + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.iops.read + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.iops.write + - uuid: d52026a6d40844fbadc9b5e02f0e02ef + name: 'Storage Controller: Read IO / Write IO' + type: STACKED + graph_items: + - color: FF0080 + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.read.percent + - sortorder: '1' + color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.io.write.percent + - uuid: c0740b2c536646ceb85aabeca052e2cb + name: 'Storage Tier: Das-sata' + type: STACKED + graph_items: + - color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.das_sata.free.bytes + - sortorder: '1' + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.das_sata.usage.bytes + - uuid: 12fb09594c2f449182e641e5f12f32d0 + name: 'Storage Tier: SSD' + type: STACKED + graph_items: + - color: 00BFFF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.ssd.free.bytes + - sortorder: '1' + color: 0040FF + item: + host: 'Nutanix Host Prism Element by HTTP' + key: nutanix.host.storage.controller.tier.ssd.usage.bytes diff --git a/Nutanix_Prism_Element_by_HTTP.yaml b/Nutanix_Prism_Element_by_HTTP.yaml new file mode 100644 index 0000000..a7b59a4 --- /dev/null +++ b/Nutanix_Prism_Element_by_HTTP.yaml @@ -0,0 +1,1004 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: 0bb43a48a33f48ad910441384486edb4 + template: 'Nutanix Prism Element by HTTP' + name: 'Nutanix Prism Element by HTTP' + description: | + Prism Element: It is a service already built into the platform for every Nutanix cluster deployed. It provides the ability to fully configure, manage, and monitor Nutanix clusters running any hypervisors, however, it only manages the cluster it is part of. + + This template is designed for the effortless deployment of Nutanix Prism Element monitoring and doesn't require any external scripts. + + The templates "Nutanix Host Prism Element by HTTP" and "Nutanix Cluster Prism Element by HTTP" can be used in discovery, as well as manually linked to a host. + + More details can be found in the official documentation: + - on the Nutanix Prism Element REST API: https://www.nutanix.dev/api_reference/apis/prism_v2.html + - on the differences between Nutanix API versions: https://www.nutanix.dev/api-versions/ + - on the differences between Nutanix Prism Element REST API and Nutanix Prism Central REST API: https://next.nutanix.com/how-it-works-22/differences-between-prism-element-prism-central-and-prism-pro-37137 + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Applications + items: + - uuid: 0c073836f90a4072be7acfc5d1a96b9e + name: 'Get cluster' + type: SCRIPT + key: nutanix.cluster.get + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Nutanix = { + params: {}, + + setParams: function (requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Nutanix.params = allParams; + Nutanix.tls = new CTlsConfig(allParams.tls_verify); + }, + + request: function (url) { + + var request = new HttpRequest(Nutanix.tls.options); + + if (typeof Nutanix.params.proxy !== 'undefined' && Nutanix.params.proxy !== '') { + request.setProxy(Nutanix.params.proxy); + } + + request.setHttpAuth(HTTPAUTH_BASIC, Nutanix.params.username, Nutanix.params.password); + + Zabbix.log(4, '[ Nutanix ] Sending request: ' + url); + + const response = request.get(url); + + Zabbix.log(4, '[ Nutanix ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Nutanix PRISM API. Check debug log for more information.'; + } + + return response; + }, + + deduplicateAlerts: function (full_data) { + const severity_mapping = [ + 'kinfo', + 'kwarning', + 'kcritical' + ] + + var output_data = {}; + for (var entity in full_data.entities) { + + if (Nutanix.params.api_method === 'clusters') { + if (result.entities[entity].node_uuid.split('-').length == 5) continue; + } + + var severity = severity_mapping.indexOf(full_data.entities[entity].severity.toLowerCase()), + message = full_data.entities[entity].message, + title = full_data.entities[entity].alert_title; + + full_data.entities[entity].context_types.forEach(function(context, index) { + message = message.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + title = title.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + }); + + key = md5(title + message); + if (key in output_data) { + if (full_data.entities[entity].created_time_stamp_in_usecs > output_data[key].created) { + output_data[key].created = full_data.entities[entity].created_time_stamp_in_usecs; + output_data[key].severity = severity !== -1 ? severity : 3; + output_data[key].state = full_data.entities[entity].resolved ? 0 : 1; + output_data[key].message = full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message; + output_data[key].last_id = full_data.entities[entity].id; + } + output_data[key].count += 1; + } else { + output_data[key] = { + "name": title + ' - ' + message, + "title": title != '' ? title : message, + "created": full_data.entities[entity].created_time_stamp_in_usecs, + "severity": severity !== -1 ? severity : 3, + "state": full_data.entities[entity].resolved ? 0 : 1, + "message": full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message, + "last_id": full_data.entities[entity].id, + "count": 1 + } + } + } + + return output_data; + }, + + cleanUnsupported: function (full_stat) { + var output_stat = {}; + for (var element in full_stat) { + if (full_stat[element] !== '-1') { + output_stat[element] = full_stat[element]; + } + }; + + return output_stat; + } + }; + + try { + const params = JSON.parse(value); + Nutanix.setParams(['endpoint_host', 'endpoint_port', 'username', 'password', 'auth_type', 'api_method'], params); + + const url = 'https://' + Nutanix.params.endpoint_host + ':' + Nutanix.params.endpoint_port + '/PrismGateway/services/rest/v2.0/' + Nutanix.params.api_method, + result = Nutanix.request(url); + + return JSON.stringify(result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(4, '[ Nutanix ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'Get the available clusters.' + timeout: 10s + parameters: + - name: api_method + value: clusters + - name: auth_type + value: basic + - name: endpoint_host + value: '{$NUTANIX.PRISM.ELEMENT.IP}' + - name: endpoint_port + value: '{$NUTANIX.PRISM.ELEMENT.PORT}' + - name: password + value: '{$NUTANIX.PASSWORD}' + - name: proxy + value: '{$NUTANIX.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Nutanix Prism Element"}' + - name: username + value: '{$NUTANIX.USER}' + tags: + - tag: component + value: raw + - uuid: 435f96fef5e44fbaae3d3281a6fd88eb + name: 'Get cluster check' + type: DEPENDENT + key: nutanix.cluster.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: nutanix.cluster.get + tags: + - tag: component + value: status + triggers: + - uuid: baf3ae722bd44a09a628f9c81c541259 + expression: 'length(last(/Nutanix Prism Element by HTTP/nutanix.cluster.get.check))>0' + name: 'Nutanix: Failed to get cluster data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 06ce8fe78e9642cfb2064ad2aa25b50e + name: 'Get host' + type: SCRIPT + key: nutanix.host.get + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Nutanix = { + params: {}, + + setParams: function (requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Nutanix.params = allParams; + Nutanix.tls = new CTlsConfig(allParams.tls_verify); + }, + + request: function (url) { + + var request = new HttpRequest(Nutanix.tls.options); + + if (typeof Nutanix.params.proxy !== 'undefined' && Nutanix.params.proxy !== '') { + request.setProxy(Nutanix.params.proxy); + } + + request.setHttpAuth(HTTPAUTH_BASIC, Nutanix.params.username, Nutanix.params.password); + + Zabbix.log(4, '[ Nutanix ] Sending request: ' + url); + + const response = request.get(url); + + Zabbix.log(4, '[ Nutanix ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Nutanix PRISM API. Check debug log for more information.'; + } + + return response; + }, + + deduplicateAlerts: function (full_data) { + const severity_mapping = [ + 'kinfo', + 'kwarning', + 'kcritical' + ] + + var output_data = {}; + for (var entity in full_data.entities) { + + if (Nutanix.params.api_method === 'clusters') { + if (result.entities[entity].node_uuid.split('-').length == 5) continue; + } + + var severity = severity_mapping.indexOf(full_data.entities[entity].severity.toLowerCase()), + message = full_data.entities[entity].message, + title = full_data.entities[entity].alert_title; + + full_data.entities[entity].context_types.forEach(function(context, index) { + message = message.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + title = title.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + }); + + key = md5(title + message); + if (key in output_data) { + if (full_data.entities[entity].created_time_stamp_in_usecs > output_data[key].created) { + output_data[key].created = full_data.entities[entity].created_time_stamp_in_usecs; + output_data[key].severity = severity !== -1 ? severity : 3; + output_data[key].state = full_data.entities[entity].resolved ? 0 : 1; + output_data[key].message = full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message; + output_data[key].last_id = full_data.entities[entity].id; + } + output_data[key].count += 1; + } else { + output_data[key] = { + "name": title + ' - ' + message, + "title": title != '' ? title : message, + "created": full_data.entities[entity].created_time_stamp_in_usecs, + "severity": severity !== -1 ? severity : 3, + "state": full_data.entities[entity].resolved ? 0 : 1, + "message": full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message, + "last_id": full_data.entities[entity].id, + "count": 1 + } + } + } + + return output_data; + }, + + cleanUnsupported: function (full_stat) { + var output_stat = {}; + for (var element in full_stat) { + if (full_stat[element] !== '-1') { + output_stat[element] = full_stat[element]; + } + }; + + return output_stat; + } + }; + + try { + const params = JSON.parse(value); + Nutanix.setParams(['endpoint_host', 'endpoint_port', 'username', 'password', 'auth_type', 'api_method'], params); + + const url = 'https://' + Nutanix.params.endpoint_host + ':' + Nutanix.params.endpoint_port + '/PrismGateway/services/rest/v2.0/' + Nutanix.params.api_method, + result = Nutanix.request(url); + + return JSON.stringify(result); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(4, '[ Nutanix ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'Get the available hosts.' + timeout: 10s + parameters: + - name: api_method + value: hosts + - name: auth_type + value: basic + - name: endpoint_host + value: '{$NUTANIX.PRISM.ELEMENT.IP}' + - name: endpoint_port + value: '{$NUTANIX.PRISM.ELEMENT.PORT}' + - name: password + value: '{$NUTANIX.PASSWORD}' + - name: proxy + value: '{$NUTANIX.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Nutanix Prism Element"}' + - name: username + value: '{$NUTANIX.USER}' + tags: + - tag: component + value: raw + - uuid: 7fa751ec3908489391aa2403723e2ac1 + name: 'Get host check' + type: DEPENDENT + key: nutanix.host.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: nutanix.host.get + tags: + - tag: component + value: status + triggers: + - uuid: 56e915c86d4640c3b073cb8309bf1d6e + expression: 'length(last(/Nutanix Prism Element by HTTP/nutanix.host.get.check))>0' + name: 'Nutanix: Failed to get host data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 10cd43e73f1146cf8eb4bffd33978344 + name: 'Get storage container' + type: SCRIPT + key: nutanix.storage.container.get + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Nutanix = { + params: {}, + + setParams: function (requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Nutanix.params = allParams; + Nutanix.tls = new CTlsConfig(allParams.tls_verify); + }, + + request: function (url) { + + var request = new HttpRequest(Nutanix.tls.options); + + if (typeof Nutanix.params.proxy !== 'undefined' && Nutanix.params.proxy !== '') { + request.setProxy(Nutanix.params.proxy); + } + + request.setHttpAuth(HTTPAUTH_BASIC, Nutanix.params.username, Nutanix.params.password); + + Zabbix.log(4, '[ Nutanix ] Sending request: ' + url); + + const response = request.get(url); + + Zabbix.log(4, '[ Nutanix ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Nutanix PRISM API. Check debug log for more information.'; + } + + return response; + }, + + deduplicateAlerts: function (full_data) { + const severity_mapping = [ + 'kinfo', + 'kwarning', + 'kcritical' + ] + + var output_data = {}; + for (var entity in full_data.entities) { + + if (Nutanix.params.api_method === 'clusters') { + if (result.entities[entity].node_uuid.split('-').length == 5) continue; + } + + var severity = severity_mapping.indexOf(full_data.entities[entity].severity.toLowerCase()), + message = full_data.entities[entity].message, + title = full_data.entities[entity].alert_title; + + full_data.entities[entity].context_types.forEach(function(context, index) { + message = message.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + title = title.replace('{' + context + '}', full_data.entities[entity].context_values[index]); + }); + + key = md5(title + message); + if (key in output_data) { + if (full_data.entities[entity].created_time_stamp_in_usecs > output_data[key].created) { + output_data[key].created = full_data.entities[entity].created_time_stamp_in_usecs; + output_data[key].severity = severity !== -1 ? severity : 3; + output_data[key].state = full_data.entities[entity].resolved ? 0 : 1; + output_data[key].message = full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message; + output_data[key].last_id = full_data.entities[entity].id; + } + output_data[key].count += 1; + } else { + output_data[key] = { + "name": title + ' - ' + message, + "title": title != '' ? title : message, + "created": full_data.entities[entity].created_time_stamp_in_usecs, + "severity": severity !== -1 ? severity : 3, + "state": full_data.entities[entity].resolved ? 0 : 1, + "message": full_data.entities[entity].detailed_message != '' ? full_data.entities[entity].detailed_message : message, + "last_id": full_data.entities[entity].id, + "count": 1 + } + } + } + + return output_data; + }, + + cleanUnsupported: function (full_stat) { + var output_stat = {}; + for (var element in full_stat) { + if (full_stat[element] !== '-1') { + output_stat[element] = full_stat[element]; + } + }; + + return output_stat; + } + }; + + try { + const params = JSON.parse(value); + Nutanix.setParams(['endpoint_host', 'endpoint_port', 'username', 'password', 'auth_type', 'api_method'], params); + + const url = 'https://' + Nutanix.params.endpoint_host + ':' + Nutanix.params.endpoint_port + '/PrismGateway/services/rest/v2.0/' + Nutanix.params.api_method, + result = Nutanix.request(url); + + var output_data = {}; + for (var entity in result.entities) { + output_data[result.entities[entity].storage_container_uuid] = result.entities[entity] + } + + return JSON.stringify(output_data); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(4, '[ Nutanix ] ERROR: ' + error); + + return JSON.stringify({ 'error': error }); + } + description: 'Get the available storage containers.' + timeout: 10s + parameters: + - name: api_method + value: storage_containers + - name: auth_type + value: basic + - name: endpoint_host + value: '{$NUTANIX.PRISM.ELEMENT.IP}' + - name: endpoint_port + value: '{$NUTANIX.PRISM.ELEMENT.PORT}' + - name: password + value: '{$NUTANIX.PASSWORD}' + - name: proxy + value: '{$NUTANIX.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Nutanix Prism Element"}' + - name: username + value: '{$NUTANIX.USER}' + tags: + - tag: component + value: raw + - uuid: a59d77244200466384ec0b4cad7648db + name: 'Get storage container check' + type: DEPENDENT + key: nutanix.storage.container.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: nutanix.storage.container.get + tags: + - tag: component + value: status + triggers: + - uuid: f46c6213084c4afe88065beb6cdcef33 + expression: 'length(last(/Nutanix Prism Element by HTTP/nutanix.storage.container.get.check))>0' + name: 'Nutanix: Failed to get storage container data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 3611bdb3bf0343bc813510e11d32f273 + name: 'Cluster discovery' + type: DEPENDENT + key: nutanix.cluster.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NUTANIX.CLUSTER.NAME}' + value: '{$NUTANIX.CLUSTER.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NUTANIX.CLUSTER.NAME}' + value: '{$NUTANIX.CLUSTER.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of all clusters.' + host_prototypes: + - uuid: c1f630a16e304dcda7771895344638c7 + host: '{#NUTANIX.CLUSTER.UUID}' + name: '{#NUTANIX.CLUSTER.NAME}' + group_links: + - group: + name: Applications + templates: + - name: 'Nutanix Cluster Prism Element by HTTP' + macros: + - macro: '{$NUTANIX.CLUSTER.UUID}' + value: '{#NUTANIX.CLUSTER.UUID}' + description: 'UUID of the cluster.' + master_item: + key: nutanix.cluster.get + preprocessing: + - type: JSONPATH + parameters: + - $.entities + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value); + + const result = json_data.map(function(entity) { + return { + "{#NUTANIX.CLUSTER.NAME}": entity.name ? entity.name : entity.uuid, + "{#NUTANIX.CLUSTER.UUID}": entity.uuid + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 19cd9a3bc7ac4e42860f3e3b0ab20afe + name: 'Host discovery' + type: DEPENDENT + key: nutanix.host.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NUTANIX.HOST.NAME}' + value: '{$NUTANIX.HOST.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NUTANIX.HOST.NAME}' + value: '{$NUTANIX.HOST.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of all hosts.' + host_prototypes: + - uuid: 24ccbeb75dc949ccb6c094416618443b + host: '{#NUTANIX.HOST.UUID}' + name: '{#NUTANIX.HOST.NAME}' + group_links: + - group: + name: Applications + templates: + - name: 'Nutanix Host Prism Element by HTTP' + macros: + - macro: '{$NUTANIX.HOST.UUID}' + value: '{#NUTANIX.HOST.UUID}' + description: 'UUID of the host.' + master_item: + key: nutanix.host.get + preprocessing: + - type: JSONPATH + parameters: + - $.entities + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value); + + const result = json_data.map(function(entity) { + return { + "{#NUTANIX.HOST.NAME}": entity.name ? entity.name : entity.uuid, + "{#NUTANIX.HOST.UUID}": entity.uuid + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 7ece7ee4f9d0423b856b6ecd7f616026 + name: 'Storage container discovery' + type: DEPENDENT + key: nutanix.storage.container.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#STORAGE.CONTAINER.NAME}' + value: '{$NUTANIX.STORAGE.CONTAINER.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#STORAGE.CONTAINER.NAME}' + value: '{$NUTANIX.STORAGE.CONTAINER.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of all storage containers.' + item_prototypes: + - uuid: f0a6602489f54d5c8be85bb75ebd3e6f + name: 'Container [{#STORAGE.CONTAINER.NAME}]: Space: Total, bytes' + type: DEPENDENT + key: 'nutanix.storage.container.capacity.bytes["{#STORAGE.CONTAINER.UUID}"]' + delay: '0' + units: B + description: 'The total space of the storage container.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#STORAGE.CONTAINER.UUID}''].usage_stats.[''storage.capacity_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.storage.container.get + tags: + - tag: component + value: storage + - tag: container + value: '{#STORAGE.CONTAINER.NAME}' + - uuid: dac6fb1aa0ee4d93ab67e1bd3374c412 + name: 'Container [{#STORAGE.CONTAINER.NAME}]: Space: Free, bytes' + type: DEPENDENT + key: 'nutanix.storage.container.free.bytes["{#STORAGE.CONTAINER.UUID}"]' + delay: '0' + units: B + description: 'The free space of the storage container.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#STORAGE.CONTAINER.UUID}''].usage_stats.[''storage.free_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.storage.container.get + tags: + - tag: component + value: storage + - tag: container + value: '{#STORAGE.CONTAINER.NAME}' + - uuid: dc76d8405d204e90bd6213f34344dcb6 + name: 'Container [{#STORAGE.CONTAINER.NAME}]: Replication factor' + type: DEPENDENT + key: 'nutanix.storage.container.replication.factor["{#STORAGE.CONTAINER.UUID}"]' + delay: '0' + description: 'The replication factor of the storage container.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#STORAGE.CONTAINER.UUID}''].replication_factor' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.storage.container.get + tags: + - tag: component + value: storage + - tag: container + value: '{#STORAGE.CONTAINER.NAME}' + - uuid: 5d40812ff4f14146a5199edf271be1ec + name: 'Container [{#STORAGE.CONTAINER.NAME}]: Space: Used, bytes' + type: DEPENDENT + key: 'nutanix.storage.container.usage.bytes["{#STORAGE.CONTAINER.UUID}"]' + delay: '0' + units: B + description: 'The used space of the storage container.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#STORAGE.CONTAINER.UUID}''].usage_stats.[''storage.usage_bytes'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: nutanix.storage.container.get + tags: + - tag: component + value: storage + - tag: container + value: '{#STORAGE.CONTAINER.NAME}' + graph_prototypes: + - uuid: b067c9f9467b4760b43235aa453ee424 + name: 'Container [{#STORAGE.CONTAINER.NAME}]: Space: Total and Used' + graph_items: + - drawtype: GRADIENT_LINE + color: 0040FF + item: + host: 'Nutanix Prism Element by HTTP' + key: 'nutanix.storage.container.usage.bytes["{#STORAGE.CONTAINER.UUID}"]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 00BFFF + item: + host: 'Nutanix Prism Element by HTTP' + key: 'nutanix.storage.container.capacity.bytes["{#STORAGE.CONTAINER.UUID}"]' + master_item: + key: nutanix.storage.container.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#STORAGE.CONTAINER.UUID}": json_data[entity].storage_container_uuid, + "{#STORAGE.CONTAINER.NAME}": json_data[entity].name + }); + } + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: nutanix + - tag: target + value: prism-element + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Nutanix Prism Element", e.g. {$HTTP.TLS.VERIFY:"Nutanix Prism Element"}.' + - macro: '{$NUTANIX.CLUSTER.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable Nutanix clusters by name.' + - macro: '{$NUTANIX.CLUSTER.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Nutanix clusters by name.' + - macro: '{$NUTANIX.HOST.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable Nutanix hosts by name.' + - macro: '{$NUTANIX.HOST.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Nutanix hosts by name.' + - macro: '{$NUTANIX.PASSWORD}' + type: SECRET_TEXT + description: 'Nutanix API password.' + - macro: '{$NUTANIX.PRISM.ELEMENT.IP}' + value: '' + description: 'Set the Nutanix API IP here.' + - macro: '{$NUTANIX.PRISM.ELEMENT.PORT}' + value: '9440' + description: 'Set the Nutanix API port here.' + - macro: '{$NUTANIX.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$NUTANIX.STORAGE.CONTAINER.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable storage containers by name.' + - macro: '{$NUTANIX.STORAGE.CONTAINER.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered storage containers by name.' + - macro: '{$NUTANIX.USER}' + value: '' + description: 'Nutanix API username.' + dashboards: + - uuid: 02f05b74967140859a2e86d0d14b0545 + name: 'Nutanix Prism Element overview' + pages: + - name: 'Nutanix: Overview' + widgets: + - type: graphprototype + name: Capacity + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'Nutanix Prism Element by HTTP' + key: 'nutanix.storage.container.capacity.bytes["{#STORAGE.CONTAINER.UUID}"]' + - type: STRING + name: reference + value: MLSDY + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Free space' + 'y': '6' + width: '72' + height: '6' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Nutanix Prism Element by HTTP' + name: 'Container [{#STORAGE.CONTAINER.NAME}]: Space: Total and Used' + - type: STRING + name: reference + value: MLSDW + - type: honeycomb + name: 'Replication factor' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: '*Replication factor' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Container.\[(.*)\]:\sReplication factor", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: LSGAA + - type: INTEGER + name: secondary_label_bold + value: '0' + - type: INTEGER + name: secondary_label_decimal_places + value: '0' diff --git a/OPNsense_by_SNMP.yaml b/OPNsense_by_SNMP.yaml new file mode 100644 index 0000000..d4e8280 --- /dev/null +++ b/OPNsense_by_SNMP.yaml @@ -0,0 +1,2364 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 0c94915edb4c41bf8c627dddb4f68f5a + template: 'OPNsense by SNMP' + name: 'OPNsense by SNMP' + description: | + Template for monitoring OPNsense by SNMP + Setup: + 1. Enable bsnmpd daemon by creating new config file "/etc/rc.conf.d/bsnmpd" with the following content: + bsnmpd_enable="YES" + 2. Uncomment the following lines in "/etc/snmpd.config" file to enable required SNMP modules: + begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" + begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" + 3. Start bsnmpd daemon with the following command: + /etc/rc.d/bsnmpd start + 4. Setup a firewall rule to get access from Zabbix proxy or Zabbix server by SNMP (https://docs.opnsense.org/manual/firewall.html). + 5. Link the template to a host. + + + MIBs used: + BEGEMOT-PF-MIB + HOST-RESOURCES-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Applications + items: + - uuid: daf50788784c439b9775d4d377c17fe9 + name: 'SNMP walk pf network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12325.1.200.1.8.2]' + key: net.if.pf.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: BEGEMOT-PF-MIB + SNMP walk through pfInterfacesIfTable. The collected data used in network interfaces LLD for dependent item prototypes. + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - pfInterfacesIfDescr + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.2 + - '0' + - pfInterfacesIfRefsRule + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.6 + - '0' + - pfInterfacesIf4BytesInPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.7 + - '0' + - pfInterfacesIf4BytesInBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.8 + - '0' + - pfInterfacesIf4BytesOutPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.9 + - '0' + - pfInterfacesIf4BytesOutBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.10 + - '0' + - pfInterfacesIf4PktsInPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.11 + - '0' + - pfInterfacesIf4PktsInBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.12 + - '0' + - pfInterfacesIf4PktsOutPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.13 + - '0' + - pfInterfacesIf4PktsOutBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.14 + - '0' + - pfInterfacesIf6BytesInPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.15 + - '0' + - pfInterfacesIf6BytesInBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.16 + - '0' + - pfInterfacesIf6BytesOutPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.17 + - '0' + - pfInterfacesIf6BytesOutBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.18 + - '0' + - pfInterfacesIf6PktsInPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.19 + - '0' + - pfInterfacesIf6PktsInBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.20 + - '0' + - pfInterfacesIf6PktsOutPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.21 + - '0' + - pfInterfacesIf6PktsOutBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.22 + - '0' + tags: + - tag: component + value: raw + - uuid: da65fe5665114ca997894a781aa8a962 + name: 'SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 1a075e6ed87c4d40b912956e9c02573f + name: 'DHCP server status' + type: DEPENDENT + key: opnsense.dhcpd.status + delay: '0' + description: | + MIB: HOST-RESOURCES-MIB + The status of DHCP server process. + valuemap: + name: 'Services status' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.hrSWRunName == ''dhcpd'')].hrSWRunStatus.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: opnsense.sw.walk + tags: + - tag: component + value: application + triggers: + - uuid: fba46d0094bc4f0e98537ceca27dd6bc + expression: 'last(/OPNsense by SNMP/opnsense.dhcpd.status)=0' + name: 'OPNsense: DHCP server is not running' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check DHCP server settings.' + tags: + - tag: scope + value: availability + - uuid: c52c2b9a3d4e4446a8af02e5a51e9c55 + name: 'DNS server status' + type: DEPENDENT + key: opnsense.dns.status + delay: '0' + description: | + MIB: HOST-RESOURCES-MIB + The status of DNS server process. + valuemap: + name: 'Services status' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.hrSWRunName == ''unbound'')].hrSWRunStatus.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: opnsense.sw.walk + tags: + - tag: component + value: application + triggers: + - uuid: 0e2cbbbd999d476a84cb93a9b7ef42d6 + expression: 'last(/OPNsense by SNMP/opnsense.dns.status)=0' + name: 'OPNsense: DNS server is not running' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check DNS server settings.' + tags: + - tag: scope + value: availability + - uuid: 4bc80f5cece045cfa103fa9d4e5db9c6 + name: 'Web server status' + type: DEPENDENT + key: opnsense.lighttpd.status + delay: '0' + description: | + MIB: HOST-RESOURCES-MIB + The status of lighttpd process. + valuemap: + name: 'Services status' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.hrSWRunName == ''lighttpd'')].hrSWRunStatus.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: opnsense.sw.walk + tags: + - tag: component + value: application + triggers: + - uuid: 7864dec91012436f89b728019bf99fda + expression: 'last(/OPNsense by SNMP/opnsense.lighttpd.status)=0' + name: 'OPNsense: Web server is not running' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check lighttpd service status.' + tags: + - tag: scope + value: availability + - uuid: 6a77c077e6bb44439ad766de038f71f1 + name: 'Packets with bad offset' + type: DEPENDENT + key: opnsense.packets.bad.offset + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.2.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: opnsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: f8503508e3e646c781d637d1aefaf21a + name: 'Fragmented packets' + type: DEPENDENT + key: opnsense.packets.fragment + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.3.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: opnsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: ae0bfb3bd36e4b05ae490c4b70ba1313 + name: 'Packets matched a filter rule' + type: DEPENDENT + key: opnsense.packets.match + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.1.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: opnsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: 3983366c271f4e9896d738c58f2d850f + name: 'Packets dropped due to memory limitation' + type: DEPENDENT + key: opnsense.packets.mem.drop + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.6.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: opnsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: 7c8d4623d2fd4b77b0749caa67530bb2 + name: 'Normalized packets' + type: DEPENDENT + key: opnsense.packets.normalize + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.5.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: opnsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: 7b845d8282ee4c1394c71c22ada31da9 + name: 'Short packets' + type: DEPENDENT + key: opnsense.packets.short + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.4.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: opnsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: f2b82b136ea943909a7b6317bf8b7785 + name: 'Packet filter running status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.1.1.0]' + key: opnsense.pf.status + description: | + MIB: BEGEMOT-PF-MIB + True if packet filter is currently enabled. + valuemap: + name: 'SNMPv2-TC::TruthValue' + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 42d9a74d984d4ac2bf778be74cd8588f + expression: 'last(/OPNsense by SNMP/opnsense.pf.status)<>1' + name: 'OPNsense: Packet filter is not running' + opdata: 'Current running state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check PF status.' + tags: + - tag: scope + value: availability + - uuid: 6898f6b638234788b9ac07818d40f800 + name: 'SNMP walk pf counters' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12325.1.200.1.2]' + key: opnsense.pf_counters.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: BEGEMOT-PF-MIB + SNMP walk through pfCounter. The collected data used in dependent pf counter items. + tags: + - tag: component + value: raw + - uuid: 289cece23b5d4f17ba50d0373db4ed33 + name: 'Firewall rules count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.11.1.0]' + key: opnsense.rules.count + description: | + MIB: BEGEMOT-PF-MIB + The number of labeled filter rules on this system. + tags: + - tag: component + value: firewall + - uuid: 6e40ddbf15a54b0e8ae2d1c52d5c2eba + name: 'Source tracking table current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.4.1.0]' + key: opnsense.source.tracking.table.count + description: | + MIB: BEGEMOT-PF-MIB + Number of entries in the source tracking table. + tags: + - tag: component + value: network + - uuid: a9b848d5c2254efdaf74ff48ce4003c4 + name: 'Source tracking table limit' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.5.2.0]' + key: opnsense.source.tracking.table.limit + description: | + MIB: BEGEMOT-PF-MIB + Maximum number of 'sticky-address' or 'source-track' rules in the ruleset. + tags: + - tag: component + value: network + - uuid: 1452fc4e67564233b12dc892fde1959a + name: 'Source tracking table utilization in %' + type: CALCULATED + key: opnsense.source.tracking.table.pused + value_type: FLOAT + units: '%' + params: 'last(//opnsense.source.tracking.table.count) * 100 / last(//opnsense.source.tracking.table.limit)' + description: 'Utilization of source tracking table in %.' + tags: + - tag: component + value: network + triggers: + - uuid: d1f03d136f30401b8f70cbc3196446ee + expression: 'min(/OPNsense by SNMP/opnsense.source.tracking.table.pused,#3)>{$SOURCE.TRACKING.TABLE.UTIL.MAX}' + name: 'OPNsense: Source tracking table usage is high' + event_name: 'OPNsense: Source tracking table usage more than {$SOURCE.TRACKING.TABLE.UTIL.MAX}.' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the number of sticky connections.' + tags: + - tag: scope + value: capacity + - uuid: 1c399a2204bc44d4a9b1a4017840fd75 + name: 'States table current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.3.1.0]' + key: opnsense.state.table.count + description: | + MIB: BEGEMOT-PF-MIB + Number of entries in the state table. + tags: + - tag: component + value: network + - uuid: 3bd8ea1e2cb44b4cb0f7d16a9339b9e4 + name: 'States table limit' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.5.1.0]' + key: opnsense.state.table.limit + description: | + MIB: BEGEMOT-PF-MIB + Maximum number of 'keep state' rules in the ruleset. + tags: + - tag: component + value: network + - uuid: 17a0f633e2a14e63b0282b785a66c62a + name: 'States table utilization in %' + type: CALCULATED + key: opnsense.state.table.pused + value_type: FLOAT + units: '%' + params: 'last(//opnsense.state.table.count) * 100 / last(//opnsense.state.table.limit)' + description: 'Utilization of state table in %.' + tags: + - tag: component + value: network + triggers: + - uuid: f31e301def314e9b81ee0f8a26dc1e37 + expression: 'min(/OPNsense by SNMP/opnsense.state.table.pused,#3)>{$STATE.TABLE.UTIL.MAX}' + name: 'OPNsense: State table usage is high' + event_name: 'OPNsense: State table usage more than {$STATE.TABLE.UTIL.MAX}.' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the number of connections.' + tags: + - tag: scope + value: capacity + - uuid: b7582f10abf44e3aa4555b3d03de9c86 + name: 'SNMP walk software' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.4.2.1.2,1.3.6.1.2.1.25.4.2.1.7]' + key: opnsense.sw.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + SNMP walk through hrSWRunTable. The collected data used in dependent service status items. + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - hrSWRunName + - 1.3.6.1.2.1.25.4.2.1.2 + - '0' + - hrSWRunStatus + - 1.3.6.1.2.1.25.4.2.1.7 + - '0' + tags: + - tag: component + value: raw + - uuid: 00f2e8aa55754a7b9063afc1d7749d85 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f2cb074945624a8184ceb1ab3d3b2f52 + expression: 'max(/OPNsense by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'OPNsense: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: d7830514425f47eda3ac8ec20a1801b9 + name: 'Network interfaces discovery' + type: DEPENDENT + key: opnsense.net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '@Network interfaces for discovery' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 3a687275a219460c92433bda90be8d59 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 traffic blocked' + type: DEPENDENT + key: 'net.if.in.block.v4.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv4 bits per second blocked coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesInBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d34be70208614a599e8706ede8d28f6d + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 packets blocked' + type: DEPENDENT + key: 'net.if.in.block.v4.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv4 packets blocked coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsInBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e6bc104196ad44f8abf8b7609b464f07 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 traffic blocked' + type: DEPENDENT + key: 'net.if.in.block.v6.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv6 bits per second blocked coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesInBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b9335034e4f94bb1b15f5b74a6467f89 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 packets blocked' + type: DEPENDENT + key: 'net.if.in.block.v6.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv6 packets blocked coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsInBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 77ad7ea9f85d419a81d99531ba71ef1d + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c6f650d534c94a1bb0bf1faca829c538 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5a58e9ffee1f45c4a4f859c1f0b7c2dc + expression: 'min(/OPNsense by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/OPNsense by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: High input error rate' + event_name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: High input error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/OPNsense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: availability + - uuid: da65b40184d84a2a98dd595e17794875 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 traffic passed' + type: DEPENDENT + key: 'net.if.in.pass.v4.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv4 bits per second passed coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesInPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 367629501e4248e0b6de19e7123b0df6 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 packets passed' + type: DEPENDENT + key: 'net.if.in.pass.v4.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv4 packets passed coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsInPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a21b0c97af544225971a6d0a2ddeaf2c + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 traffic passed' + type: DEPENDENT + key: 'net.if.in.pass.v6.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv6 bits per second passed coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesInPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 23daac718d7743248b4e9e5dd9d537bf + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 packets passed' + type: DEPENDENT + key: 'net.if.in.pass.v6.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv6 packets passed coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsInPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: df19df9d63604ec294a49478a0963da2 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Bits received' + type: DEPENDENT + key: 'net.if.in[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0be1b473b51541c38012847e52ae9e1f + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 traffic blocked' + type: DEPENDENT + key: 'net.if.out.block.v4.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv4 bits per second blocked going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesOutBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7f335123af85457cb5b8c43279f26b27 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 packets blocked' + type: DEPENDENT + key: 'net.if.out.block.v4.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv4 packets blocked going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsOutBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: dae11126c26543a7afd3c169fbc76cd5 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 traffic blocked' + type: DEPENDENT + key: 'net.if.out.block.v6.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv6 bits per second blocked going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesOutBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a877f2c800874ce9bbf972ef8eb277be + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 packets blocked' + type: DEPENDENT + key: 'net.if.out.block.v6.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv6 packets blocked going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsOutBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d80bb6eac4ab43b58c6c785340b77494 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 357f0ab9a5814f06a04e5e2983226e26 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9d6dafdae44343f1a4e0934ec44da7b3 + expression: 'min(/OPNsense by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/OPNsense by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: High output error rate' + event_name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: High output error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/OPNsense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: availability + - uuid: be3ab46dc43d45da88917689e02b9f70 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 traffic passed' + type: DEPENDENT + key: 'net.if.out.pass.v4.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv4 bits per second passed going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesOutPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ec0b70c2c7d8452aaefefb737f567735 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 packets passed' + type: DEPENDENT + key: 'net.if.out.pass.v4.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv4 packets passed going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsOutPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 993af213503d4cf8b921ed630a01e7f9 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 traffic passed' + type: DEPENDENT + key: 'net.if.out.pass.v6.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv6 bits per second passed going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesOutPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d4c3d02a4e024d1a881789f9588c05f7 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 packets passed' + type: DEPENDENT + key: 'net.if.out.pass.v6.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv6 packets passed going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsOutPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1f6a8e8f3cc746249001293fba59fcf3 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Bits sent' + type: DEPENDENT + key: 'net.if.out[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bce50f45634d41b6a4ab8616e3a4d804 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Rules references count' + type: DEPENDENT + key: 'net.if.rules.refs[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: BEGEMOT-PF-MIB + The number of rules referencing this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIfRefsRule.first()' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 76c91001f4b64ba99c132c3dd476cb88 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Speed' + type: DEPENDENT + key: 'net.if.speed[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1b352c1f96e84f2fb72c6414c0e15b29 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Operational status' + type: DEPENDENT + key: 'net.if.status[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 4a189b213b8e40589be007367361d70e + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/OPNsense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + tags: + - tag: scope + value: availability + - uuid: 2874d024da724dc687d0d8fa940fcf87 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Interface type' + type: DEPENDENT + key: 'net.if.type[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: e351276dfe6a43db88bdb437d2ef4a8e + expression: | + change(/OPNsense by SNMP/net.if.speed[{#SNMPINDEX}])<0 and last(/OPNsense by SNMP/net.if.speed[{#SNMPINDEX}])>0 + and ( + last(/OPNsense by SNMP/net.if.type[{#SNMPINDEX}])=6 or + last(/OPNsense by SNMP/net.if.type[{#SNMPINDEX}])=7 or + last(/OPNsense by SNMP/net.if.type[{#SNMPINDEX}])=11 or + last(/OPNsense by SNMP/net.if.type[{#SNMPINDEX}])=62 or + last(/OPNsense by SNMP/net.if.type[{#SNMPINDEX}])=69 or + last(/OPNsense by SNMP/net.if.type[{#SNMPINDEX}])=117 + ) + and + (last(/OPNsense by SNMP/net.if.status[{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/OPNsense by SNMP/net.if.speed[{#SNMPINDEX}])>0 and last(/OPNsense by SNMP/net.if.speed[{#SNMPINDEX}],#2)>0) or + (last(/OPNsense by SNMP/net.if.status[{#SNMPINDEX}])=2) + name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + dependencies: + - name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/OPNsense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: capacity + - uuid: d9a23c4dee9c4fd0862748923d656023 + expression: | + (avg(/OPNsense by SNMP/net.if.in[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/OPNsense by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/OPNsense by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/OPNsense by SNMP/net.if.in[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/OPNsense by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: High inbound bandwidth usage' + event_name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: High inbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'In: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/OPNsense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: 4c120cefd9dd4f8aa257023610b3ed19 + expression: | + (avg(/OPNsense by SNMP/net.if.out[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/OPNsense by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/OPNsense by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/OPNsense by SNMP/net.if.out[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/OPNsense by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: High outbound bandwidth usage' + event_name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: High outbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'Out: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'OPNsense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/OPNsense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: d9c786ac274149ac9145499a85d25c35 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound packet filter traffic' + graph_items: + - color: 1A7C11 + item: + host: 'OPNsense by SNMP' + key: 'net.if.in.pass.v4.bps[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'OPNsense by SNMP' + key: 'net.if.in.block.v4.bps[{#SNMPINDEX}]' + - sortorder: '2' + color: 2774A4 + item: + host: 'OPNsense by SNMP' + key: 'net.if.in.pass.v6.bps[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + item: + host: 'OPNsense by SNMP' + key: 'net.if.in.block.v6.bps[{#SNMPINDEX}]' + - sortorder: '4' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.in.pass.v4.pps[{#SNMPINDEX}]' + - sortorder: '5' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.in.block.v4.pps[{#SNMPINDEX}]' + - sortorder: '6' + color: AC8C14 + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.in.pass.v6.pps[{#SNMPINDEX}]' + - sortorder: '7' + color: 611F27 + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.in.block.v6.pps[{#SNMPINDEX}]' + - uuid: ab44b919a9d94955b27bf9a4499e4bf5 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'OPNsense by SNMP' + key: 'net.if.in[{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: 2774A4 + item: + host: 'OPNsense by SNMP' + key: 'net.if.out[{#SNMPINDEX}]' + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.out.errors[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.in.errors[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.out.discards[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.in.discards[{#SNMPINDEX}]' + - uuid: 21b603de7402416fb2f472e56010f5f6 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound packet filter traffic' + graph_items: + - color: 1A7C11 + item: + host: 'OPNsense by SNMP' + key: 'net.if.out.pass.v4.bps[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'OPNsense by SNMP' + key: 'net.if.out.block.v4.bps[{#SNMPINDEX}]' + - sortorder: '2' + color: 2774A4 + item: + host: 'OPNsense by SNMP' + key: 'net.if.out.pass.v6.bps[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + item: + host: 'OPNsense by SNMP' + key: 'net.if.out.block.v6.bps[{#SNMPINDEX}]' + - sortorder: '4' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.out.pass.v4.pps[{#SNMPINDEX}]' + - sortorder: '5' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.out.block.v4.pps[{#SNMPINDEX}]' + - sortorder: '6' + color: AC8C14 + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.out.pass.v6.pps[{#SNMPINDEX}]' + - sortorder: '7' + color: 611F27 + yaxisside: RIGHT + item: + host: 'OPNsense by SNMP' + key: 'net.if.out.block.v6.pps[{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: opnsense + macros: + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Threshold of error packets rate for warning trigger. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Threshold of interface bandwidth utilization for warning trigger in %. Can be used with interface name as context.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for operational state of the interface for link down trigger. Can be used with interface name as context.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status.' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^pflog[0-9.]*$|^pfsync[0-9.]*$)' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6).' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP availability trigger.' + - macro: '{$SOURCE.TRACKING.TABLE.UTIL.MAX}' + value: '90' + description: 'Threshold of source tracking table utilization trigger in %.' + - macro: '{$STATE.TABLE.UTIL.MAX}' + value: '90' + description: 'Threshold of state table utilization trigger in %.' + dashboards: + - uuid: 8504c5b2ef0848aa972ef39258de6857 + name: 'OPNsense: Overview' + pages: + - name: 'Packet filter' + widgets: + - type: graph + width: '72' + height: '10' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'OPNsense by SNMP' + name: 'OPNsense: Packet filter reason codes' + - type: STRING + name: reference + value: AAAAA + - name: 'Network traffic' + widgets: + - type: graphprototype + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'OPNsense by SNMP' + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound packet filter traffic' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'OPNsense by SNMP' + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound packet filter traffic' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '20' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'OPNsense by SNMP' + name: 'Interface [{#IFNAME}({#IFALIAS})]: Network traffic' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: b556be6037b449139eab7830cdab494a + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: c9a24f17cf8243feb44825d707132180 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 0cb987b54d4243009aeae0454d0c059e + name: 'Services status' + mappings: + - value: '0' + newvalue: 'not running' + - value: '2' + newvalue: running + - uuid: 1e5ba7a78b5843f0a97edc51eaa96778 + name: 'SNMPv2-TC::TruthValue' + mappings: + - value: '1' + newvalue: 'true' + - value: '2' + newvalue: 'false' + - uuid: 187ea1eb9cdb4f52bf5a6651820024a9 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + graphs: + - uuid: 45c34572c76f4128a3aa779a4ccda241 + name: 'OPNsense: Packet filter reason codes' + type: STACKED + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'OPNsense by SNMP' + key: opnsense.packets.match + - sortorder: '1' + color: F63100 + item: + host: 'OPNsense by SNMP' + key: opnsense.packets.bad.offset + - sortorder: '2' + color: 00611C + item: + host: 'OPNsense by SNMP' + key: opnsense.packets.fragment + - sortorder: '3' + color: F7941D + item: + host: 'OPNsense by SNMP' + key: opnsense.packets.short + - sortorder: '4' + color: FC6EA3 + item: + host: 'OPNsense by SNMP' + key: opnsense.packets.normalize + - sortorder: '5' + color: 6C59DC + item: + host: 'OPNsense by SNMP' + key: opnsense.packets.mem.drop diff --git a/OS_processes_by_Zabbix_agent.yaml b/OS_processes_by_Zabbix_agent.yaml new file mode 100644 index 0000000..aff1516 --- /dev/null +++ b/OS_processes_by_Zabbix_agent.yaml @@ -0,0 +1,276 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 0f6889282f6048e2b1370e569e578985 + template: 'OS processes by Zabbix agent' + name: 'OS processes by Zabbix agent' + description: | + Get processes metrics using item proc.get by Zabbix agent. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 803390429cf949d3b8439dd5dd71c706 + name: 'Get process summary' + key: 'proc.get[,,,summary]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The summary of data metrics for all processes.' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 7c0e8b719d0e464f92ee42a3da75b682 + name: 'Processes discovery' + type: DEPENDENT + key: custom.proc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PROC.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$PROC.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#VMEM}' + value: '-1' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Discovery of OS summary processes.' + item_prototypes: + - uuid: 2e9b31e2b47741f4b35c5d15f33378ea + name: 'Process [{#NAME}]: Get data' + type: DEPENDENT + key: 'custom.proc.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Summary metrics collected during the process {#NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@["name"]=="{#NAME}")].first()' + error_handler: CUSTOM_VALUE + error_handler_params: 'Failed to retrieve process {#NAME} data' + master_item: + key: 'proc.get[,,,summary]' + tags: + - tag: component + value: raw + - tag: process + value: '{#NAME}' + - uuid: 822ffda22eb042b89fc50b212aab133f + name: 'Process [{#NAME}]: Size of locked memory' + type: DEPENDENT + key: 'custom.proc.mem.locked[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The size of locked memory {#NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.lck + error_handler: DISCARD_VALUE + master_item: + key: 'custom.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - tag: process + value: '{#NAME}' + - uuid: 0bb7d924b8814c42a494d8a3baf48a59 + name: 'Process [{#NAME}]: Number of running processes' + type: DEPENDENT + key: 'custom.proc.num[{#NAME}]' + delay: '0' + description: 'The number of running processes {#NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.processes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'custom.proc.get[{#NAME}]' + tags: + - tag: component + value: system + - tag: process + value: '{#NAME}' + trigger_prototypes: + - uuid: 66294f983a134a1e81165878f30d3ebc + expression: 'last(/OS processes by Zabbix agent/custom.proc.num[{#NAME}])=0' + name: 'OS: Process [{#NAME}]: Process is not running' + priority: HIGH + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: abccdac17c7e4b549fcfe70ceeedeb9b + name: 'Process [{#NAME}]: Number of page faults' + type: DEPENDENT + key: 'custom.proc.page[{#NAME}]' + delay: '0' + description: 'The number of page faults {#NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.page_faults + error_handler: DISCARD_VALUE + master_item: + key: 'custom.proc.get[{#NAME}]' + tags: + - tag: component + value: system + - tag: process + value: '{#NAME}' + - uuid: 4ffd202fb6044b819f6f28dc866ca8f1 + name: 'Process [{#NAME}]: Memory usage, %' + type: DEPENDENT + key: 'custom.proc.pmem[{#NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of real memory used by the process {#NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.pmem + error_handler: DISCARD_VALUE + master_item: + key: 'custom.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - tag: process + value: '{#NAME}' + - uuid: 7e573e38bce04167bc37712c0a3e2194 + name: 'Process [{#NAME}]: Memory usage (rss)' + type: DEPENDENT + key: 'custom.proc.rss[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The summary of Resident Set Size (RSS) memory used by the process {#NAME} in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.rss + error_handler: DISCARD_VALUE + master_item: + key: 'custom.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - tag: process + value: '{#NAME}' + - uuid: 12370d3b25024d2189cddba8d3b23938 + name: 'Process [{#NAME}]: Swap space used' + type: DEPENDENT + key: 'custom.proc.swap[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The swap space used by {#NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.swap + error_handler: DISCARD_VALUE + master_item: + key: 'custom.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - tag: process + value: '{#NAME}' + - uuid: a7265ca1b1d2463294e26d80fe075639 + name: 'Process [{#NAME}]: Number of threads' + type: DEPENDENT + key: 'custom.proc.thread[{#NAME}]' + delay: '0' + description: 'The number of threads {#NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.threads + error_handler: DISCARD_VALUE + master_item: + key: 'custom.proc.get[{#NAME}]' + tags: + - tag: component + value: system + - tag: process + value: '{#NAME}' + - uuid: c1b9b1d8f28947589e46041690899100 + name: 'Process [{#NAME}]: Memory usage (vsize)' + type: DEPENDENT + key: 'custom.proc.vmem[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The summary of virtual memory used by process {#NAME} in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.vsize + error_handler: DISCARD_VALUE + master_item: + key: 'custom.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - tag: process + value: '{#NAME}' + graph_prototypes: + - uuid: b8f5b539152445fdbadbfba92adad1bf + name: 'Process [{#NAME}]: Memory usage' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'OS processes by Zabbix agent' + key: 'custom.proc.vmem[{#NAME}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'OS processes by Zabbix agent' + key: 'custom.proc.rss[{#NAME}]' + master_item: + key: 'proc.get[,,,summary]' + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#VMEM}' + path: $.vsize + tags: + - tag: class + value: software + - tag: target + value: process + macros: + - macro: '{$PROC.NAME.MATCHES}' + value: '' + description: 'This macro is used in the discovery of processes. It can be overridden on a host-level or on a linked template-level.' + - macro: '{$PROC.NAME.NOT_MATCHES}' + value: '' + description: 'This macro is used in the discovery of processes. It can be overridden on a host-level or on a linked template-level.' diff --git a/OpenBSD_by_Zabbix_agent.yaml b/OpenBSD_by_Zabbix_agent.yaml new file mode 100644 index 0000000..a285ff2 --- /dev/null +++ b/OpenBSD_by_Zabbix_agent.yaml @@ -0,0 +1,1092 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: 760be6e1c2194a5bb7c0df47cc5f71ca + template: 'OpenBSD by Zabbix agent' + name: 'OpenBSD by Zabbix agent' + description: | + This is an Official OpenBSD template. It requires Zabbix agent 7.0 or newer. + + Notes on filesystem (FS) discovery: + - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default. + - BTRFS allocates a default of 10% of the volume for its own needs. + - To mitigate potential disasters, FS usage triggers are based on the maximum available space. + - Utilization formula: 'pused = 100 - 100 * (available / total - free + available)' + - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: 390a1b2080e842f3985b0076509cc550 + name: 'Host name of Zabbix agent running' + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 99dbf8825c0d4e1f9ae433bcb786d7c7 + name: 'Zabbix agent ping' + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + - uuid: c65db5a2b42c46dc90cf4891ad1ecc83 + name: 'Version of Zabbix agent running' + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: 56a83dc0e14e47339e13a451adcefef7 + name: 'Maximum number of opened files' + key: kernel.maxfiles + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + tags: + - tag: component + value: os + triggers: + - uuid: aab96e16dd194d72b9b049ffa8b41b02 + expression: 'last(/OpenBSD by Zabbix agent/kernel.maxfiles)<1024' + name: 'OpenBSD: Configured max number of opened files is too low on {HOST.NAME}' + priority: INFO + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: e55f8256dd2d48fd9e7fd786f872b4bc + name: 'Maximum number of processes' + key: kernel.maxproc + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + tags: + - tag: component + value: processes + triggers: + - uuid: 149b9b77d17543fba253666ccbd6a607 + expression: 'last(/OpenBSD by Zabbix agent/kernel.maxproc)<256' + name: 'OpenBSD: Configured max number of processes is too low on {HOST.NAME}' + priority: INFO + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: 7f8fdbc74cf14fa2afda3b57c548c751 + name: 'Number of running processes' + key: 'proc.num[,,run]' + description: 'The number of processes in a running state.' + tags: + - tag: component + value: processes + triggers: + - uuid: d67740bc103348ab8ab11df2bdb0ad8f + expression: 'avg(/OpenBSD by Zabbix agent/proc.num[,,run],5m)>30' + name: 'OpenBSD: Too many processes running on {HOST.NAME}' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 966acafb928b43f8a63ee673b1716d28 + name: 'Number of processes' + key: 'proc.num[]' + description: 'The total number of processes in any state.' + tags: + - tag: component + value: processes + triggers: + - uuid: dd1b0c14e6dd439ea8f7323cdcc607de + expression: 'avg(/OpenBSD by Zabbix agent/proc.num[],5m)>300' + name: 'OpenBSD: Too many processes on {HOST.NAME}' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 4e06c5b504c04c169ea1a0d6a7951eeb + name: 'Host boot time' + key: system.boottime + delay: 10m + units: unixtime + tags: + - tag: component + value: os + - uuid: f6ed0de8cbb545298b174b19938a527e + name: 'Interrupts per second' + key: system.cpu.intr + units: ips + description: 'Number of interrupts processed.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: 7e4eab397cfd43d2a4aef7e2aa8c3a37 + name: 'Processor load (1 min average per core)' + key: 'system.cpu.load[percpu,avg1]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + triggers: + - uuid: 1128bfb41f5f420c81feffb1d395cf9f + expression: 'avg(/OpenBSD by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5' + name: 'OpenBSD: Processor load is too high on {HOST.NAME}' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 55ad1da5b20c465f8db86701dcf3e974 + name: 'Processor load (5 min average per core)' + key: 'system.cpu.load[percpu,avg5]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 0403d3b318a649d4aa0da97e18546bcb + name: 'Processor load (15 min average per core)' + key: 'system.cpu.load[percpu,avg15]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 2226fac821fe4928a9d727770e0af4d0 + name: 'Context switches per second' + key: system.cpu.switches + units: sps + description: 'The combined rate at which all processors on the computer are switched from one thread to another.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: 4689c51946c845e5b31cb7ca5b58fbe3 + name: 'CPU idle time' + key: 'system.cpu.util[,idle]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent doing nothing.' + tags: + - tag: component + value: cpu + - uuid: ad032417f6de4e03a4f956bea65d8ce0 + name: 'CPU interrupt time' + key: 'system.cpu.util[,interrupt]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent servicing hardware interrupts.' + tags: + - tag: component + value: cpu + - uuid: 84030949a4d545b59db4aa3b38402174 + name: 'CPU nice time' + key: 'system.cpu.util[,nice]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that have been niced.' + tags: + - tag: component + value: cpu + - uuid: 63121eb34bc94eeabd7352992b67befb + name: 'CPU system time' + key: 'system.cpu.util[,system]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running the kernel and its processes.' + tags: + - tag: component + value: cpu + - uuid: c9adb1a7c2fd4db9b176f9008483f2d7 + name: 'CPU user time' + key: 'system.cpu.util[,user]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that are not niced.' + tags: + - tag: component + value: cpu + - uuid: a80cd7ca70954cd1b6b89a686f642b9d + name: 'Host name' + key: system.hostname + delay: 1h + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: d6927a9b74eb4cb8b15400baf784fc36 + expression: 'last(/OpenBSD by Zabbix agent/system.hostname,#1)<>last(/OpenBSD by Zabbix agent/system.hostname,#2)' + name: 'OpenBSD: Hostname was changed on {HOST.NAME}' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: cfff34f2374c410492b89cce1c6b5198 + name: 'Host local time' + key: system.localtime + units: unixtime + description: 'The local system time of the host.' + tags: + - tag: component + value: os + - uuid: e758448d5ec242e6a7a17f67c8f62874 + name: 'Free swap space' + key: 'system.swap.size[,free]' + units: B + description: 'The free space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 43648a7f2c79443781a0ad500e7a9e6c + name: 'Free swap space in %' + key: 'system.swap.size[,pfree]' + value_type: FLOAT + units: '%' + description: 'The free space of the swap volume/file expressed in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 0efa45d2c8884bc6b4090afc6408198b + expression: 'last(/OpenBSD by Zabbix agent/system.swap.size[,pfree])<50' + name: 'OpenBSD: Lack of free swap space on {HOST.NAME}' + priority: WARNING + description: 'It probably means that the systems requires more physical memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 61f33f0c3e35499b999626058048ec66 + name: 'Total swap space' + key: 'system.swap.size[,total]' + delay: 1h + units: B + description: 'Total space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: b19974c64b4141c2aca0e997b03c2f0a + name: 'System information' + key: system.uname + delay: 1h + value_type: CHAR + trends: '0' + description: 'Information as normally returned by `uname -a`.' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 3d3bcd54f24448c1a11746a4e75ea736 + expression: 'last(/OpenBSD by Zabbix agent/system.uname,#1)<>last(/OpenBSD by Zabbix agent/system.uname,#2)' + name: 'OpenBSD: Host information was changed on {HOST.NAME}' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: d14bcdc15cc24f90baea06a13077a54f + name: 'System uptime' + key: system.uptime + delay: 10m + units: uptime + tags: + - tag: component + value: os + triggers: + - uuid: de874b9d875a4298ab39888c9e9cb747 + expression: 'change(/OpenBSD by Zabbix agent/system.uptime)<0' + name: 'OpenBSD: {HOST.NAME} has just been restarted' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 165a44bf3b9d49378e500acb90aa7957 + name: 'Number of logged in users' + key: system.users.num + description: 'The number of users who are currently logged in.' + tags: + - tag: component + value: os + - tag: component + value: security + - uuid: f11f6e3539a244409f1c72dbd6f16b76 + name: 'Checksum of /etc/passwd' + key: 'vfs.file.cksum[/etc/passwd,sha256]' + delay: 15m + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: security + triggers: + - uuid: 9db4055df94d414d86938066ed05dbc5 + expression: 'last(/OpenBSD by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/OpenBSD by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)' + name: 'OpenBSD: /etc/passwd has been changed on {HOST.NAME}' + priority: WARNING + tags: + - tag: scope + value: security + - uuid: b5de01cf628b48cb899a8ad2a02a3b62 + name: 'Get filesystems' + key: vfs.fs.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.' + tags: + - tag: component + value: raw + - uuid: 5b6c92c92e434dff8ce19e28b3ba785e + name: 'Available memory' + key: 'vm.memory.size[available]' + units: B + description: 'Defined as free + cached + buffers.' + tags: + - tag: component + value: memory + triggers: + - uuid: bdf3c729b8bc4a9481c9041e4c1ea624 + expression: 'last(/OpenBSD by Zabbix agent/vm.memory.size[available])<20M' + name: 'OpenBSD: Lack of available memory on server {HOST.NAME}' + priority: AVERAGE + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: b32320608732421fac18437006bc1874 + name: 'Total memory' + key: 'vm.memory.size[total]' + delay: 1h + units: B + description: 'Total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 7ab36f1fcf0244229effa26f16889a36 + name: 'Zabbix agent availability' + type: INTERNAL + key: 'zabbix[host,agent,available]' + description: 'Used for monitoring the availability status of the agent.' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: d046f431e11d4bd7be42e66e14a21663 + expression: 'max(/OpenBSD by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0' + name: 'OpenBSD: Zabbix agent is not available' + event_name: 'OpenBSD: Zabbix agent is not available (for {$AGENT.TIMEOUT})' + priority: AVERAGE + description: 'For passive checks only; the availability of the agent(s) and a host is used with `{$AGENT.TIMEOUT}` as the time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: d02d41ad698942bfab1fe29fad31010a + name: 'Network interface discovery' + key: net.if.discovery + delay: 1h + filter: + conditions: + - macro: '{#IFNAME}' + value: '@Network interfaces for discovery' + formulaid: A + description: 'Used for the discovery of network interfaces.' + item_prototypes: + - uuid: 81dec4b8de8c4ab68aef26d9f00aee87 + name: 'Interface {#IFNAME}: Incoming network traffic' + key: 'net.if.in[{#IFNAME}]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interfaces + - tag: interfaces + value: '{#IFNAME}' + - uuid: 16bced1c77eb46799ecedcde5049dbdb + name: 'Interface {#IFNAME}: Outgoing network traffic' + key: 'net.if.out[{#IFNAME}]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interfaces + - tag: interfaces + value: '{#IFNAME}' + graph_prototypes: + - uuid: c79845ab3101451c8f0fe033b5b2166e + name: 'Interface {#IFNAME}: Network traffic' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 00AA00 + item: + host: 'OpenBSD by Zabbix agent' + key: 'net.if.in[{#IFNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 3333FF + item: + host: 'OpenBSD by Zabbix agent' + key: 'net.if.out[{#IFNAME}]' + - uuid: feb02c707aa64b91a3b340aa5ef23de9 + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: vfs.fs.dependent.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'The discovery of mounted filesystems with different types.' + item_prototypes: + - uuid: c29bc3c6bd844242b9165251dd3266bb + name: 'FS [{#FSNAME}]: Inodes: Free, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free metadata space expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.inodes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 25a43340efc94c8b982204a920441ff3 + expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + name: 'OpenBSD: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'OpenBSD: {#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 7802203fd5ba471db2be4f35eda44a0b + expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' + name: 'OpenBSD: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'OpenBSD: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + dependencies: + - name: 'OpenBSD: FS [{#FSNAME}]: Running out of free inodes' + expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: d53bf828e684464a88157fd3dfd1b8d4 + name: 'FS [{#FSNAME}]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + delay: '0' + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.free + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: bcae23e8404349af87c570c353bfe0fe + name: 'FS [{#FSNAME}]: Space: Available, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Deprecated metric. + Space availability expressed as a percentage, calculated using the current and maximum available spaces. + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: deprecated + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: bb0110994e1243d6b6763c41b34cfee1 + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pused + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: dfe8922f9bf94933a940133997df9997 + expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'OpenBSD: FS [{#FSNAME}]: Space is critically low' + event_name: 'OpenBSD: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 9741c9425c984804ac8fb9a52ef22221 + expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'OpenBSD: FS [{#FSNAME}]: Space is low' + event_name: 'OpenBSD: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'OpenBSD: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 5c27bfca98fc4e709b5fe66e8c181fbd + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + delay: '0' + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.total + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 840eed51cf264b5698fe4f38fd03ea16 + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + delay: '0' + units: B + description: 'Used storage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.used + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 03ed5a98a0a444f08bfc602877b1cc18 + name: 'FS [{#FSNAME}]: Get data' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},data]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Intermediate data of `{#FSNAME}` filesystem.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.fsname==''{#FSNAME}'')].first()' + master_item: + key: vfs.fs.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: f37d99368b3d463a9474422fccd703f9 + name: 'FS [{#FSNAME}]: Option: Read-only' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},readonly]' + delay: '0' + description: 'The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.' + preprocessing: + - type: JSONPATH + parameters: + - $.options + error_handler: DISCARD_VALUE + - type: REGEX + parameters: + - '(?:^|,)ro\b' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 7d1eaacab7ac4af7969c7fc22c67cfb8 + expression: 'last(/OpenBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/OpenBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=1' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/OpenBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=0' + name: 'OpenBSD: FS [{#FSNAME}]: Filesystem has become read-only' + priority: AVERAGE + description: 'The filesystem has become read-only, possibly due to an I/O error. Available only for Zabbix agents 6.4 and higher.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 5ea3f4e5af7a468fa4b7ba5dc6a9144d + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'OpenBSD by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + - uuid: 8b5ab39870b248b28e7099a2801b9c2d + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'OpenBSD by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'OpenBSD by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'OpenBSD by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + master_item: + key: vfs.fs.get + lld_macro_paths: + - lld_macro: '{#FSNAME}' + path: $.fsname + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'fsname': filesystem.fsname, + 'fstype': filesystem.fstype + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Skip metadata collection for dynamic FS' + step: '1' + filter: + conditions: + - macro: '{#FSTYPE}' + value: ^(btrfs|zfs)$ + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Inodes + discover: NO_DISCOVER + tags: + - tag: class + value: os + - tag: target + value: openbsd + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 3m + description: 'Timeout after which the agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (in passive mode).' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: c51fe9986e174a96a37187d09f175548 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'OpenBSD by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'OpenBSD by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + - type: STRING + name: reference + value: AAAEC + - uuid: b4606920366049bd98e2e6d31c602d67 + name: 'System performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'OpenBSD by Zabbix agent' + name: 'OpenBSD: CPU load' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'OpenBSD by Zabbix agent' + name: 'OpenBSD: Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'OpenBSD by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'OpenBSD by Zabbix agent' + name: 'OpenBSD: CPU utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'OpenBSD by Zabbix agent' + name: 'OpenBSD: Swap usage' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 693c226692c548869e77d3313934ca28 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 8dad41742edf49178119c70abea0a0dc + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up + graphs: + - uuid: 947de3b0729948b0ae2f03342a7e3f9f + name: 'OpenBSD: CPU jumps' + graph_items: + - color: '009900' + item: + host: 'OpenBSD by Zabbix agent' + key: system.cpu.switches + - sortorder: '1' + color: '000099' + item: + host: 'OpenBSD by Zabbix agent' + key: system.cpu.intr + - uuid: 765b83f3f7a246aa893eff4f19600326 + name: 'OpenBSD: CPU load' + ymin_type_1: FIXED + graph_items: + - color: '009900' + item: + host: 'OpenBSD by Zabbix agent' + key: 'system.cpu.load[percpu,avg1]' + - sortorder: '1' + color: '000099' + item: + host: 'OpenBSD by Zabbix agent' + key: 'system.cpu.load[percpu,avg5]' + - sortorder: '2' + color: '990000' + item: + host: 'OpenBSD by Zabbix agent' + key: 'system.cpu.load[percpu,avg15]' + - uuid: 512ed29b170642d285b14a7e9b2d43de + name: 'OpenBSD: CPU utilization' + show_triggers: 'NO' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: '009999' + item: + host: 'OpenBSD by Zabbix agent' + key: 'system.cpu.util[,interrupt]' + - sortorder: '1' + color: '990099' + item: + host: 'OpenBSD by Zabbix agent' + key: 'system.cpu.util[,nice]' + - sortorder: '2' + color: '990000' + item: + host: 'OpenBSD by Zabbix agent' + key: 'system.cpu.util[,system]' + - sortorder: '3' + color: '000099' + item: + host: 'OpenBSD by Zabbix agent' + key: 'system.cpu.util[,user]' + - sortorder: '4' + color: '009900' + item: + host: 'OpenBSD by Zabbix agent' + key: 'system.cpu.util[,idle]' + - uuid: 18bbcc8bba0840fc8353b90caa3e657f + name: 'OpenBSD: Memory usage' + graph_items: + - color: 00C800 + item: + host: 'OpenBSD by Zabbix agent' + key: 'vm.memory.size[available]' + - uuid: 8a422a49defb413ca16b1e8515b59e00 + name: 'OpenBSD: Swap usage' + width: '600' + height: '340' + show_work_period: 'NO' + show_triggers: 'NO' + type: PIE + show_3d: 'YES' + graph_items: + - color: AA0000 + type: GRAPH_SUM + item: + host: 'OpenBSD by Zabbix agent' + key: 'system.swap.size[,total]' + - sortorder: '1' + color: 00AA00 + item: + host: 'OpenBSD by Zabbix agent' + key: 'system.swap.size[,free]' diff --git a/OpenStack_Nova_by_HTTP.yaml b/OpenStack_Nova_by_HTTP.yaml new file mode 100644 index 0000000..323c699 --- /dev/null +++ b/OpenStack_Nova_by_HTTP.yaml @@ -0,0 +1,1512 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: ff637e001b91472d8730eb7f10e65800 + template: 'OpenStack Nova by HTTP' + name: 'OpenStack Nova by HTTP' + description: | + Discovers and monitors project limits, servers, services, hypervisors, availability zones, hypervisors and tenants with OpenStack Compute API by HTTP using script and HTTP agent items. + + This template receives token and service URL from parent host, therefore no additional configuration is necessary. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Cloud + items: + - uuid: 87d263a6f797439c8c7699d96f4305fb + name: 'Get availability zones' + type: HTTP_AGENT + key: openstack.nova.availability_zone.get + delay: '{$OPENSTACK.NOVA.INTERVAL.AVAILABILITY_ZONE}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets a list of availability zones and its data.' + preprocessing: + - type: JSONPATH + parameters: + - $.availabilityZoneInfo + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get availability zones list' + timeout: 10s + url: '{$OPENSTACK.NOVA.SERVICE.URL}/os-availability-zone/detail' + http_proxy: '{$OPENSTACK.HTTP.PROXY}' + headers: + - name: X-Auth-Token + value: '{$OPENSTACK.TOKEN}' + tags: + - tag: component + value: raw + - uuid: c4297b412ad54bae85a1219e2d988bcb + name: 'Get hypervisors' + type: HTTP_AGENT + key: openstack.nova.hypervisors.get + delay: '{$OPENSTACK.NOVA.INTERVAL.HYPERVISOR}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets a list of hypervisors and its data.' + preprocessing: + - type: JSONPATH + parameters: + - $.hypervisors + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get hypervisors list' + timeout: 10s + url: '{$OPENSTACK.NOVA.SERVICE.URL}/os-hypervisors/detail' + http_proxy: '{$OPENSTACK.HTTP.PROXY}' + headers: + - name: X-Auth-Token + value: '{$OPENSTACK.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 02698d2fcd2949868013dedb311b8db3 + name: 'Get absolute limits' + type: HTTP_AGENT + key: openstack.nova.limits.get + delay: '{$OPENSTACK.NOVA.INTERVAL.LIMITS}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets absolute limits for the project.' + preprocessing: + - type: JSONPATH + parameters: + - $.limits.absolute + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get absolute project limits' + timeout: 10s + url: '{$OPENSTACK.NOVA.SERVICE.URL}/limits' + http_proxy: '{$OPENSTACK.HTTP.PROXY}' + headers: + - name: X-Auth-Token + value: '{$OPENSTACK.TOKEN}' + tags: + - tag: component + value: raw + - uuid: bea005220b704f1fb6ca523647ae24ce + name: 'Instances count, current' + type: DEPENDENT + key: openstack.nova.limits.instances.current + delay: '0' + description: 'Number of servers in each tenant.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalInstancesUsed + master_item: + key: openstack.nova.limits.get + tags: + - tag: component + value: environment + - uuid: 29898c0cb13d4ccebc3da95c082da29b + name: 'Instances count, free' + type: CALCULATED + key: openstack.nova.limits.instances.free + delay: '{$OPENSTACK.NOVA.INTERVAL.LIMITS}' + params: last(//openstack.nova.limits.instances.max)-last(//openstack.nova.limits.instances.current) + description: 'Number of available servers for each tenant.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: environment + - uuid: 7526be4743564c32a293f96daf7cb242 + name: 'Instances count, max' + type: DEPENDENT + key: openstack.nova.limits.instances.max + delay: '0' + description: 'Number of allowed servers for each tenant.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxTotalInstances + master_item: + key: openstack.nova.limits.get + tags: + - tag: component + value: environment + - uuid: 64ae014b201945f299f80080dc63176d + name: 'RAM usage, current' + type: DEPENDENT + key: openstack.nova.limits.ram.current + delay: '0' + units: b + description: 'Amount of used server RAM.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalRAMUsed + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: openstack.nova.limits.get + tags: + - tag: component + value: environment + - uuid: bdc1492bbb5c4bcd844eaa6f6e76c1ff + name: 'RAM usage, free' + type: CALCULATED + key: openstack.nova.limits.ram.free + delay: '{$OPENSTACK.NOVA.INTERVAL.LIMITS}' + units: b + params: last(//openstack.nova.limits.ram.max)-last(//openstack.nova.limits.ram.current) + description: 'Amount of available server RAM.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: environment + - uuid: 50f2128cace04cf5a783e438de813e72 + name: 'RAM usage, max' + type: DEPENDENT + key: openstack.nova.limits.ram.max + delay: '0' + units: b + description: 'Amount of allowed server RAM.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxTotalRAMSize + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: openstack.nova.limits.get + tags: + - tag: component + value: environment + - uuid: 678f2c0017f54d8b827876005f6ca670 + name: 'vCPUs usage, current' + type: DEPENDENT + key: openstack.nova.limits.vcpu.current + delay: '0' + description: 'Number of used server cores in each tenant.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalCoresUsed + master_item: + key: openstack.nova.limits.get + tags: + - tag: component + value: environment + - uuid: 97d3b897722d4910aea8e4c3c5f6c9a9 + name: 'vCPUs usage, free' + type: CALCULATED + key: openstack.nova.limits.vcpu.free + delay: '{$OPENSTACK.NOVA.INTERVAL.LIMITS}' + params: last(//openstack.nova.limits.vcpu.max)-last(//openstack.nova.limits.vcpu.current) + description: 'Number of available server cores for each tenant.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: environment + - uuid: e0583793b29b4bb195198d196cc1f0cc + name: 'vCPUs usage, max' + type: DEPENDENT + key: openstack.nova.limits.vcpu.max + delay: '0' + description: 'Number of allowed server cores for each tenant.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxTotalCores + master_item: + key: openstack.nova.limits.get + tags: + - tag: component + value: environment + - uuid: 85d746d8b6cf404f95eeb7903c2e66e0 + name: 'Get servers' + type: HTTP_AGENT + key: openstack.nova.servers.get + delay: '{$OPENSTACK.NOVA.INTERVAL.SERVERS}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets a list of servers.' + preprocessing: + - type: JSONPATH + parameters: + - $.servers + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get servers list' + timeout: 10s + url: '{$OPENSTACK.NOVA.SERVICE.URL}/servers' + http_proxy: '{$OPENSTACK.HTTP.PROXY}' + headers: + - name: X-Auth-Token + value: '{$OPENSTACK.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 3db93b6116ad416eb10da851cce385a1 + name: 'Get compute services' + type: HTTP_AGENT + key: openstack.nova.services.get + delay: '{$OPENSTACK.NOVA.INTERVAL.SERVICES}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets a list of compute services and its data.' + preprocessing: + - type: JSONPATH + parameters: + - $.services + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get compute services list' + timeout: 10s + url: '{$OPENSTACK.NOVA.SERVICE.URL}/os-services' + http_proxy: '{$OPENSTACK.HTTP.PROXY}' + headers: + - name: X-Auth-Token + value: '{$OPENSTACK.TOKEN}' + tags: + - tag: component + value: raw + - uuid: c258e567922c4f71a4dee9c0d6b88b1e + name: 'Get tenants' + type: SCRIPT + key: openstack.nova.tenant.get + delay: '{$OPENSTACK.NOVA.INTERVAL.TENANTS}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + + const request_path = '/os-simple-tenant-usage'; + + function checkParams(params) { + ['api_url', 'api_token', 'period'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + if (field === 'period') { + const supported_values = ['y', 'm', 'w', 'd'] + if (supported_values.indexOf(params[field]) === -1) { + throw 'Tenant period not correctly set. Expected one of "y", "m", "w", "d"; received: ' + field + '.'; + } + } + }); + return params; + } + + function buildUrl(url, period) { + const current_date = new Date(); + var datetime_formatted = '' + switch (period) { + case 'y': + datetime_formatted = + current_date.getFullYear() + '-' + + '1-' + + '1T' + + '00:00:00' + break; + case 'm': + datetime_formatted = + current_date.getFullYear() + '-' + + (current_date.getMonth() + 1) + '-' + + '1T' + + '00:00:00' + break; + case 'w': + const first_date_of_week = current_date.getDate() - current_date.getDay() + 1 + datetime_formatted = + current_date.getFullYear() + '-' + + (current_date.getMonth() + 1) + '-' + + first_date_of_week + 'T' + + '00:00:00' + break; + case 'd': + datetime_formatted = + current_date.getFullYear() + '-' + + (current_date.getMonth() + 1) + '-' + + current_date.getDate() + 'T' + + '00:00:00' + break; + } + + return url + request_path + '?' + + 'start=' + encodeURIComponent(datetime_formatted) + } + + function getHttpData(url, params, api_token) { + const request = new HttpRequest(tls.options); + + request.addHeader('Content-Type: application/json'); + request.addHeader('X-Auth-Token: ' + api_token); + if (params['http_proxy']) { + request.setProxy(params['http_proxy']) + Zabbix.log(4, '[ Openstack Nova API ] Using http proxy: ' + params['http_proxy']); + } + + const response = request.get(url, JSON.stringify(params)); + Zabbix.log(4, '[ Openstack Nova API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } else { + throw 'Failed to receive data: invalid response status code ( ' + request.getStatus() + ' ). Check debug log for more information.'; + } + } + + return response; + } + + const params = checkParams(JSON.parse(value)), + url = params.api_url, + token = params.api_token, + period = params.period; + + const tls = new CTlsConfig(params.tls_verify); + tls.checkURL(url); + + return getHttpData(buildUrl(url, period), params, token); + description: 'Gets a list of tenants and its data.' + preprocessing: + - type: JSONPATH + parameters: + - $.tenant_usages + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not get tenant list' + timeout: 10s + parameters: + - name: api_token + value: '{$OPENSTACK.TOKEN}' + - name: api_url + value: '{$OPENSTACK.NOVA.SERVICE.URL}' + - name: http_proxy + value: '{$OPENSTACK.HTTP.PROXY}' + - name: period + value: '{$OPENSTACK.NOVA.TENANT.PERIOD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"OpenStack Nova"}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 55f919d49a364921a0e63e51dcabe9e2 + name: 'Nova: Availability zones discovery' + type: DEPENDENT + key: openstack.nova.availability_zone.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ZONE_NAME}' + value: '{$OPENSTACK.AVAILABILITY_ZONE.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#ZONE_NAME}' + value: '{$OPENSTACK.AVAILABILITY_ZONE.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovers OpenStack Nova availability zones.' + item_prototypes: + - uuid: 46f1348ce86742a6a645e137b0ecea63 + name: 'Availability zone [{#ZONE_NAME}]: Host count' + type: DEPENDENT + key: 'openstack.nova.availability_zone.host_count[{#ZONE_NAME}]' + delay: '0' + description: 'Count of hosts and service objects under single availability zone.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''hosts''].[*].[*].length()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed availability zone report' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.availability_zone.raw[{#ZONE_NAME}]' + tags: + - tag: component + value: application + - tag: component + value: zone + - uuid: 988be318a8d345e4ba1d339e7e877a2c + name: 'Availability zone [{#ZONE_NAME}]: Raw data' + type: DEPENDENT + key: 'openstack.nova.availability_zone.raw[{#ZONE_NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data of the availability zone.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.zoneName == "{#ZONE_NAME}")].first()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed availability zone report' + master_item: + key: openstack.nova.availability_zone.get + tags: + - tag: component + value: raw + - uuid: 2d99e000412244b998417c19399a8ff9 + name: 'Availability zone [{#ZONE_NAME}]: State' + type: DEPENDENT + key: 'openstack.nova.availability_zone.state[{#ZONE_NAME}]' + delay: '0' + description: 'Current state of the availability zone.' + valuemap: + name: 'Availability zone state' + preprocessing: + - type: JSONPATH + parameters: + - $.zoneState.available + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed availability zone report' + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.availability_zone.raw[{#ZONE_NAME}]' + tags: + - tag: component + value: application + - tag: component + value: zone + trigger_prototypes: + - uuid: 0b4865c81de741b8a96574eeb450cf40 + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.availability_zone.state[{#ZONE_NAME}])=0' + name: 'OpenStack Nova: Availability zone [{#ZONE_NAME}]: Zone is unavailable' + opdata: 'Current zone state: {ITEM.LASTVALUE}' + priority: WARNING + description: 'Availability zone is not available.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: openstack.nova.availability_zone.get + lld_macro_paths: + - lld_macro: '{#ZONE_NAME}' + path: $.zoneName + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 84b17b240632413fbc3cd5b261cc2fd6 + name: 'Nova: Hypervisor discovery' + type: DEPENDENT + key: openstack.nova.hypervisors.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#HOSTNAME}' + value: '{$OPENSTACK.HYPERVISOR.DISCOVERY.HOSTNAME.MATCHES}' + formulaid: A + - macro: '{#HOSTNAME}' + value: '{$OPENSTACK.HYPERVISOR.DISCOVERY.HOSTNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#HOST_IP}' + value: '{$OPENSTACK.HYPERVISOR.DISCOVERY.IP.MATCHES}' + formulaid: C + - macro: '{#HOST_IP}' + value: '{$OPENSTACK.HYPERVISOR.DISCOVERY.IP.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#TYPE}' + value: '{$OPENSTACK.HYPERVISOR.DISCOVERY.TYPE.MATCHES}' + formulaid: E + - macro: '{#TYPE}' + value: '{$OPENSTACK.HYPERVISOR.DISCOVERY.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovers OpenStack Nova hypervisors.' + item_prototypes: + - uuid: 3edd8fcf7d3643119b7b21111155fcc0 + name: 'Hypervisor [{#ID}]:[{#HOSTNAME}]: Raw data' + type: DEPENDENT + key: 'openstack.nova.hypervisors.raw[{#ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data of the hypervisor.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#ID}")].first()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed hypervisor report' + master_item: + key: openstack.nova.hypervisors.get + tags: + - tag: component + value: raw + - uuid: ef893a8517414964ade5d40064291f87 + name: 'Hypervisor [{#ID}]:[{#HOSTNAME}]: State' + type: DEPENDENT + key: 'openstack.nova.hypervisors.state[{#ID}]' + delay: '0' + description: 'State of the hypervisor.' + valuemap: + name: 'General state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed hypervisor report' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'down', + 'up' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.hypervisors.raw[{#ID}]' + tags: + - tag: component + value: application + - tag: component + value: hypervisor + trigger_prototypes: + - uuid: 5fb5ed829d9747499c385d268bf229ea + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.hypervisors.state[{#ID}])=0' + name: 'OpenStack Nova: Hypervisor [{#ID}]:[{#HOSTNAME}]: State is "down"' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: WARNING + description: 'State of the hypervisor is "down".' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 26d06619594049c594998359a4659686 + name: 'Hypervisor [{#ID}]:[{#HOSTNAME}]: Status' + type: DEPENDENT + key: 'openstack.nova.hypervisors.status[{#ID}]' + delay: '0' + description: 'Status of the hypervisor.' + valuemap: + name: 'General status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed hypervisor report' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'disabled', + 'enabled' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.hypervisors.raw[{#ID}]' + tags: + - tag: component + value: application + - tag: component + value: hypervisor + trigger_prototypes: + - uuid: 5022a6a84f884a31be1ff440a3c14732 + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.hypervisors.status[{#ID}])=0' + name: 'OpenStack Nova: Hypervisor [{#ID}]:[{#HOSTNAME}]: Status is "disabled"' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: INFO + description: 'Status of the hypervisor is disabled.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 5e9ced69d41d40ffabb04f9fd88b7730 + name: 'Hypervisor [{#ID}]:[{#HOSTNAME}]: Version' + type: DEPENDENT + key: 'openstack.nova.hypervisors.version[{#ID}]' + delay: '0' + value_type: FLOAT + description: 'Hypervisor version.' + preprocessing: + - type: JSONPATH + parameters: + - $.hypervisor_version + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed hypervisor report' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.hypervisors.raw[{#ID}]' + tags: + - tag: component + value: application + - tag: component + value: hypervisor + trigger_prototypes: + - uuid: 958ce612bb0a4b1ea67aba594dbd53b3 + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.hypervisors.version[{#ID}])<>last(/OpenStack Nova by HTTP/openstack.nova.hypervisors.version[{#ID}],#2) and length(last(/OpenStack Nova by HTTP/openstack.nova.hypervisors.version[{#ID}]))>0' + name: 'OpenStack Nova: Hypervisor [{#ID}]:[{#HOSTNAME}]: Version has changed' + opdata: 'Current version: {ITEM.LASTVALUE}' + priority: INFO + description: 'Version of the hypervisor has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + master_item: + key: openstack.nova.hypervisors.get + lld_macro_paths: + - lld_macro: '{#HOSTNAME}' + path: $.hypervisor_hostname + - lld_macro: '{#HOST_IP}' + path: $.host_ip + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#TYPE}' + path: $.hypervisor_type + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b38111e1499f414cbe662fada0d40b10 + name: 'Nova: Servers discovery' + type: DEPENDENT + key: openstack.nova.server.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SERVER_NAME}' + value: '{$OPENSTACK.SERVER.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#SERVER_NAME}' + value: '{$OPENSTACK.SERVER.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovers OpenStack Nova servers.' + item_prototypes: + - uuid: 84fd4be0c5f84744ac6bd93d4d4e8f0e + name: 'Server [{#SERVER_ID}]:[{#SERVER_NAME}]: Status' + type: HTTP_AGENT + key: 'openstack.nova.server.status.get[{#SERVER_ID}]' + delay: '{$OPENSTACK.NOVA.INTERVAL.SERVERS}' + description: 'Server status.' + valuemap: + name: 'Server status' + preprocessing: + - type: JSONPATH + parameters: + - $.server.status + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed server report' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'SHUTOFF', + 'ACTIVE', + 'PAUSED', + 'BUILD', + 'DELETED', + 'ERROR', + 'HARD_REBOOT', + 'MIGRATING', + 'PASSWORD', + 'REBOOT', + 'REBUILD', + 'RESCUE', + 'RESIZE', + 'REVERT_RESIZE', + 'SHELVED', + 'SHELVED_OFFLOADED', + 'SOFT_DELETED', + 'SUSPENDED', + 'UNKNOWN', + 'VERIFY_RESIZE', + ].indexOf(value); + return idx !== -1 ? idx : 30; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + timeout: 10s + url: '{$OPENSTACK.NOVA.SERVICE.URL}/servers/{#SERVER_ID}' + http_proxy: '{$OPENSTACK.HTTP.PROXY}' + headers: + - name: X-Auth-Token + value: '{$OPENSTACK.TOKEN}' + tags: + - tag: component + value: application + - tag: component + value: server + trigger_prototypes: + - uuid: 490262a25fb842c9a9b83a2e0be83654 + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.server.status.get[{#SERVER_ID}])<>last(/OpenStack Nova by HTTP/openstack.nova.server.status.get[{#SERVER_ID}],#2) and length(last(/OpenStack Nova by HTTP/openstack.nova.server.status.get[{#SERVER_ID}]))>0' + name: 'OpenStack Nova: Server [{#SERVER_ID}]:[{#SERVER_NAME}]: Status has changed' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: INFO + description: 'Status of the server has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'OpenStack Nova: Server [{#SERVER_ID}]:[{#SERVER_NAME}]: Status is "ERROR"' + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.server.status.get[{#SERVER_ID}])=5' + tags: + - tag: scope + value: availability + - uuid: 7d2ca81f24154099b3857aeaadef114f + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.server.status.get[{#SERVER_ID}])=5' + name: 'OpenStack Nova: Server [{#SERVER_ID}]:[{#SERVER_NAME}]: Status is "ERROR"' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: HIGH + description: 'Server is in "ERROR" status.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: openstack.nova.servers.get + lld_macro_paths: + - lld_macro: '{#SERVER_ID}' + path: $.id + - lld_macro: '{#SERVER_NAME}' + path: $.name + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4af40cd615d74e54a3759041470995fe + name: 'Nova: Compute services discovery' + type: DEPENDENT + key: openstack.nova.services.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#BINARY}' + value: '{$OPENSTACK.SERVICES.DISCOVERY.BINARY.MATCHES}' + formulaid: A + - macro: '{#BINARY}' + value: '{$OPENSTACK.SERVICES.DISCOVERY.BINARY.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#HOST}' + value: '{$OPENSTACK.SERVICES.DISCOVERY.HOST.MATCHES}' + formulaid: C + - macro: '{#HOST}' + value: '{$OPENSTACK.SERVICES.DISCOVERY.HOST.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovers OpenStack compute services.' + item_prototypes: + - uuid: 3bd724dad043411187a86466cf8ee2c6 + name: 'Compute service [{#HOST}]:[{#BINARY}]:[{#ID}]: Disabling reason' + type: DEPENDENT + key: 'openstack.nova.services.disabled.reason[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Reason for disabling a service.' + valuemap: + name: 'Compute service disabling reason' + preprocessing: + - type: JSONPATH + parameters: + - $.disabled_reason + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed services report' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.services.raw[{#ID}]' + tags: + - tag: component + value: application + - tag: component + value: service + - uuid: 60c5f4461ad84269983168b359a0ff87 + name: 'Compute service [{#HOST}]:[{#BINARY}]:[{#ID}]: Raw data' + type: DEPENDENT + key: 'openstack.nova.services.raw[{#ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data of the service.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == "{#ID}")].first()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed services report' + master_item: + key: openstack.nova.services.get + tags: + - tag: component + value: raw + - uuid: 8f123b2f902647b381b2c9a5af3bee80 + name: 'Compute service [{#HOST}]:[{#BINARY}]:[{#ID}]: State' + type: DEPENDENT + key: 'openstack.nova.services.state[{#ID}]' + delay: '0' + description: 'State of the service.' + valuemap: + name: 'General state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed services report' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'down', + 'up' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.services.raw[{#ID}]' + tags: + - tag: component + value: application + - tag: component + value: service + trigger_prototypes: + - uuid: 9479c68ee2db4104ac44f47931d96929 + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.services.state[{#ID}])=0' + name: 'OpenStack Nova: Compute service [{#HOST}]:[{#BINARY}]:[{#ID}]: State is "down"' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: WARNING + description: 'State of the service is "down".' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 65288a6f75094c74bbb04651c87cb323 + name: 'Compute service [{#HOST}]:[{#BINARY}]:[{#ID}]: Status' + type: DEPENDENT + key: 'openstack.nova.services.status[{#ID}]' + delay: '0' + description: 'Status of the service.' + valuemap: + name: 'General status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed services report' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'disabled', + 'enabled' + ].indexOf(value); + return idx !== -1 ? idx : 10; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.services.raw[{#ID}]' + tags: + - tag: component + value: application + - tag: component + value: service + trigger_prototypes: + - uuid: 177fa631136c4340816ee9e2cf90f1ac + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.services.status[{#ID}])=0 and length(last(/OpenStack Nova by HTTP/openstack.nova.services.disabled.reason[{#ID}]))>=0' + name: 'OpenStack Nova: Compute service [{#HOST}]:[{#BINARY}]:[{#ID}]: Status is "disabled"' + opdata: 'Current state: {ITEM.LASTVALUE1}, disabling reason: "{ITEM.VALUE2}"' + priority: INFO + description: 'Status of the server is disabled. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: openstack.nova.services.get + lld_macro_paths: + - lld_macro: '{#BINARY}' + path: $.binary + - lld_macro: '{#HOST}' + path: $.host + - lld_macro: '{#ID}' + path: $.id + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: dba72b914e5c45fd9049ee5e4194bdcf + name: 'Nova: Tenant discovery' + type: DEPENDENT + key: openstack.nova.tenant.discovery + delay: '0' + description: 'Discovers tenants and their usage data.' + item_prototypes: + - uuid: 73e8e9b39da64358948407efd6aded6b + name: 'Tenant [{#TENANT_ID}]: Total disk usage' + type: DEPENDENT + key: 'openstack.nova.tenant.disk_usage[{#TENANT_ID}]' + delay: '0' + value_type: FLOAT + units: '!hours' + description: | + Total disk usage hours for the current tenant (project). + Multiplying the server disk size (in GiB) by hours the server exists, and then adding that all together for each server. + preprocessing: + - type: JSONPATH + parameters: + - $.total_local_gb_usage + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed tenant report' + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.tenant.raw[{#TENANT_ID}]' + tags: + - tag: component + value: application + - tag: component + value: tenant + - uuid: c96dd7741d344b7f95f571640712faa0 + name: 'Tenant [{#TENANT_ID}]: Raw data' + type: DEPENDENT + key: 'openstack.nova.tenant.raw[{#TENANT_ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data of the tenant.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.tenant_id == "{#TENANT_ID}")].first()' + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the tenant report' + master_item: + key: openstack.nova.tenant.get + tags: + - tag: component + value: raw + - uuid: 634ccd12a49e440fb72f622f3fa36034 + name: 'Tenant [{#TENANT_ID}]: Total hours' + type: DEPENDENT + key: 'openstack.nova.tenant.total_hours[{#TENANT_ID}]' + delay: '0' + value_type: FLOAT + units: '!hours' + description: 'Total duration that the servers exist (in hours).' + preprocessing: + - type: JSONPATH + parameters: + - $.total_hours + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed tenant report' + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.tenant.raw[{#TENANT_ID}]' + tags: + - tag: component + value: application + - tag: component + value: tenant + - uuid: ce4fccd4d93a4621af8982d3e6b9dcbb + name: 'Tenant [{#TENANT_ID}]: Total memory usage' + type: DEPENDENT + key: 'openstack.nova.tenant.total_memory_mb_usage[{#TENANT_ID}]' + delay: '0' + value_type: FLOAT + units: '!hours' + description: | + Total memory usage hours for the current tenant (project). + Multiplying the server memory size (in MiB) by hours the server exists, and then adding that all together for each server. + preprocessing: + - type: JSONPATH + parameters: + - $.total_memory_mb_usage + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed tenant report' + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.tenant.raw[{#TENANT_ID}]' + tags: + - tag: component + value: application + - tag: component + value: tenant + - uuid: eee30f1ee62c40839bcf623c8a0a6ae6 + name: 'Tenant [{#TENANT_ID}]: Total vCPUs usage' + type: DEPENDENT + key: 'openstack.nova.tenant.total_vcpu[{#TENANT_ID}]' + delay: '0' + value_type: FLOAT + units: '!hours' + description: | + Total vCPU usage hours for the current tenant (project). + Multiplying the number of virtual CPUs of the server by hours the server exists, and then adding that all together for each server. + preprocessing: + - type: JSONPATH + parameters: + - $.total_vcpus_usage + error_handler: CUSTOM_ERROR + error_handler_params: 'Could not parse the detailed tenant report' + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openstack.nova.tenant.raw[{#TENANT_ID}]' + tags: + - tag: component + value: application + - tag: component + value: tenant + graph_prototypes: + - uuid: d456ccd13e38476bb43a948fd42fae1d + name: 'Tenant [{#TENANT_ID}]: Total disk utilization' + graph_items: + - color: 199C0D + item: + host: 'OpenStack Nova by HTTP' + key: 'openstack.nova.tenant.disk_usage[{#TENANT_ID}]' + - uuid: 97466fabfd21468584658ffe480d7e22 + name: 'Tenant [{#TENANT_ID}]: Total hours utilization' + graph_items: + - color: 199C0D + item: + host: 'OpenStack Nova by HTTP' + key: 'openstack.nova.tenant.total_hours[{#TENANT_ID}]' + - uuid: a6b67816bd694539b0ebb77255ab479c + name: 'Tenant [{#TENANT_ID}]: Total memory utilization' + graph_items: + - color: 199C0D + item: + host: 'OpenStack Nova by HTTP' + key: 'openstack.nova.tenant.total_memory_mb_usage[{#TENANT_ID}]' + - uuid: b8b3899c252945138cc8e241f37d8d40 + name: 'Tenant [{#TENANT_ID}]: Total vCPUs utilization' + graph_items: + - color: 199C0D + item: + host: 'OpenStack Nova by HTTP' + key: 'openstack.nova.tenant.total_vcpu[{#TENANT_ID}]' + master_item: + key: openstack.nova.tenant.get + lld_macro_paths: + - lld_macro: '{#TENANT_ID}' + path: $.tenant_id + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: cloud + - tag: target + value: nova + - tag: target + value: openstack + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "OpenStack Nova", e.g. {$HTTP.TLS.VERIFY:"OpenStack Nova"}.' + - macro: '{$OPENSTACK.AVAILABILITY_ZONE.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the zone name regex filter to use in availability zone discovery for including.' + - macro: '{$OPENSTACK.AVAILABILITY_ZONE.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the zone name regex filter to use in availability zone discovery for excluding.' + - macro: '{$OPENSTACK.HTTP.PROXY}' + description: 'Sets the HTTP proxy for script and HTTP agent items. If this parameter is empty, then no proxy is used.' + - macro: '{$OPENSTACK.HYPERVISOR.DISCOVERY.HOSTNAME.MATCHES}' + value: '.*' + description: 'Sets the hostname regex filter to use in hypervisor discovery for including.' + - macro: '{$OPENSTACK.HYPERVISOR.DISCOVERY.HOSTNAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the hostname regex filter to use in hypervisor discovery for excluding.' + - macro: '{$OPENSTACK.HYPERVISOR.DISCOVERY.IP.MATCHES}' + value: '.*' + description: 'Sets the host IP address regex filter to use in hypervisor discovery for including.' + - macro: '{$OPENSTACK.HYPERVISOR.DISCOVERY.IP.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the host IP address regex filter to use in hypervisor discovery for excluding.' + - macro: '{$OPENSTACK.HYPERVISOR.DISCOVERY.TYPE.MATCHES}' + value: '.*' + description: 'Sets the type regex filter to use in hypervisor discovery for including.' + - macro: '{$OPENSTACK.HYPERVISOR.DISCOVERY.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the type regex filter to use in hypervisor discovery for excluding.' + - macro: '{$OPENSTACK.NOVA.CPU.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a high severity event about vCPU resource usage.' + - macro: '{$OPENSTACK.NOVA.CPU.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a warning severity event about vCPU resource usage.' + - macro: '{$OPENSTACK.NOVA.INSTANCES.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a high severity event about instances resource count.' + - macro: '{$OPENSTACK.NOVA.INSTANCES.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a warning severity event about instances resource count.' + - macro: '{$OPENSTACK.NOVA.INTERVAL.AVAILABILITY_ZONE}' + value: 3m + description: 'Interval for availability zone HTTP agent item query.' + - macro: '{$OPENSTACK.NOVA.INTERVAL.HYPERVISOR}' + value: 3m + description: 'Interval for hypervisor HTTP agent item query.' + - macro: '{$OPENSTACK.NOVA.INTERVAL.LIMITS}' + value: 3m + description: 'Interval for absolute limit HTTP agent item query.' + - macro: '{$OPENSTACK.NOVA.INTERVAL.SERVERS}' + value: 3m + description: 'Interval for server HTTP agent item queries.' + - macro: '{$OPENSTACK.NOVA.INTERVAL.SERVICES}' + value: 3m + description: 'Interval for service HTTP agent item query.' + - macro: '{$OPENSTACK.NOVA.INTERVAL.TENANTS}' + value: 3m + description: 'Interval for tenant HTTP agent item query.' + - macro: '{$OPENSTACK.NOVA.RAM.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a high severity event about RAM resource usage.' + - macro: '{$OPENSTACK.NOVA.RAM.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a warning severity event about RAM resource usage.' + - macro: '{$OPENSTACK.NOVA.SERVICE.URL}' + description: 'API endpoint for Nova Service, e.g., https://local.openstack:8774/v2.1.' + - macro: '{$OPENSTACK.NOVA.TENANT.PERIOD}' + value: m + description: | + Period for which tenant usage statistics will be queried. Possible values are: + 'y' - current year until now, + 'm' - current month until now, + 'w' - current week until now, + 'd' - current day until now. + - macro: '{$OPENSTACK.SERVER.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the server name regex filter to use in server discovery for including.' + - macro: '{$OPENSTACK.SERVER.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the server name regex filter to use in server discovery for excluding.' + - macro: '{$OPENSTACK.SERVICES.DISCOVERY.BINARY.MATCHES}' + value: '.*' + description: 'Sets the binary name regex filter to use in compute services discovery for including.' + - macro: '{$OPENSTACK.SERVICES.DISCOVERY.BINARY.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the binary name regex filter to use in compute services discovery for excluding.' + - macro: '{$OPENSTACK.SERVICES.DISCOVERY.HOST.MATCHES}' + value: '.*' + description: 'Sets the host name regex filter to use in compute services discovery for including.' + - macro: '{$OPENSTACK.SERVICES.DISCOVERY.HOST.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the host name regex filter to use in compute services discovery for excluding.' + - macro: '{$OPENSTACK.TOKEN}' + type: SECRET_TEXT + description: 'API token for the monitoring user.' + dashboards: + - uuid: 462016340f49447f80b5d2405f3a682a + name: 'Nova: Limits overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'OpenStack Nova by HTTP' + name: 'Nova: Instances utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'OpenStack Nova by HTTP' + name: 'Nova: RAM utilization' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'OpenStack Nova by HTTP' + name: 'Nova: vCPUs utilization' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: b5d0c4e859eb4b2d854f551e3d8aeff5 + name: 'Availability zone state' + mappings: + - value: '0' + newvalue: Unavailable + - value: '1' + newvalue: Available + - uuid: 1073ca0bea3f46ebbfbcaba628484be8 + name: 'Compute service disabling reason' + mappings: + - value: 'null' + newvalue: N/A + - uuid: a497438c723f4be88f452af2e8627613 + name: 'General state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - value: '10' + newvalue: Unknown + - uuid: c8109a75cda24fe1afec8ea68686cdb0 + name: 'General status' + mappings: + - value: '0' + newvalue: Disabled + - value: '1' + newvalue: Enabled + - value: '10' + newvalue: Unknown + - uuid: 375a709551d84ba3b0d4f24b6e0bd291 + name: 'Server status' + mappings: + - value: '0' + newvalue: SHUTOFF + - value: '1' + newvalue: ACTIVE + - value: '2' + newvalue: PAUSED + - value: '3' + newvalue: BUILD + - value: '4' + newvalue: DELETED + - value: '5' + newvalue: ERROR + - value: '6' + newvalue: HARD_REBOOT + - value: '7' + newvalue: MIGRATING + - value: '8' + newvalue: PASSWORD + - value: '9' + newvalue: REBOOT + - value: '10' + newvalue: REBUILD + - value: '11' + newvalue: RESCUE + - value: '12' + newvalue: RESIZE + - value: '13' + newvalue: REVERT_RESIZE + - value: '14' + newvalue: SHELVED + - value: '15' + newvalue: SHELVED_OFFLOADED + - value: '16' + newvalue: SOFT_DELETED + - value: '17' + newvalue: SUSPENDED + - value: '18' + newvalue: UNKNOWN + - value: '19' + newvalue: VERIFY_RESIZE + - value: '30' + newvalue: Unknown + triggers: + - uuid: 3dbae725014d4f289e20f002f2674dc7 + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.limits.instances.current) >= ({$OPENSTACK.NOVA.INSTANCES.UTIL.WARN} / 100 * last(/OpenStack Nova by HTTP/openstack.nova.limits.instances.max))' + name: 'OpenStack Nova: Current instances count is high' + event_name: 'OpenStack Nova: Current instances count is high (used >= {$OPENSTACK.NOVA.INSTANCES.UTIL.WARN}%)' + opdata: 'Current: {ITEM.LASTVALUE1}, MAX: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Current instances count has exceeded {$OPENSTACK.NOVA.INSTANCES.UTIL.WARN}% of the max available instances count.' + dependencies: + - name: 'OpenStack Nova: Current instances count is too high' + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.limits.instances.current) >= ({$OPENSTACK.NOVA.INSTANCES.UTIL.HIGH} / 100 * last(/OpenStack Nova by HTTP/openstack.nova.limits.instances.max))' + tags: + - tag: scope + value: capacity + - uuid: 22592fabc09d416598fb4fb806048040 + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.limits.instances.current) >= ({$OPENSTACK.NOVA.INSTANCES.UTIL.HIGH} / 100 * last(/OpenStack Nova by HTTP/openstack.nova.limits.instances.max))' + name: 'OpenStack Nova: Current instances count is too high' + event_name: 'OpenStack Nova: Current instances count is too high (used >= {$OPENSTACK.NOVA.INSTANCES.UTIL.HIGH}%)' + opdata: 'Current: {ITEM.LASTVALUE1}, MAX: {ITEM.LASTVALUE2}' + priority: HIGH + description: 'Current instances count has exceeded {$OPENSTACK.NOVA.INSTANCES.UTIL.HIGH}% of the max available instances count.' + tags: + - tag: scope + value: capacity + - uuid: c9d9eca4b3e540f491210b5c2312e1ba + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.limits.ram.current) >= ({$OPENSTACK.NOVA.RAM.UTIL.WARN} / 100 * last(/OpenStack Nova by HTTP/openstack.nova.limits.ram.max))' + name: 'OpenStack Nova: Current RAM usage is high' + event_name: 'OpenStack Nova: Current RAM usage is high (used >= {$OPENSTACK.NOVA.RAM.UTIL.WARN}%)' + opdata: 'Current: {ITEM.LASTVALUE1}, MAX: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Current RAM usage has exceeded {$OPENSTACK.NOVA.RAM.UTIL.WARN}% of the max available RAM usage.' + dependencies: + - name: 'OpenStack Nova: Current RAM usage is too high' + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.limits.ram.current) >= ({$OPENSTACK.NOVA.RAM.UTIL.HIGH} / 100 * last(/OpenStack Nova by HTTP/openstack.nova.limits.ram.max))' + tags: + - tag: scope + value: capacity + - uuid: 9dfd643fb555419c9c3200a07cc7647e + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.limits.ram.current) >= ({$OPENSTACK.NOVA.RAM.UTIL.HIGH} / 100 * last(/OpenStack Nova by HTTP/openstack.nova.limits.ram.max))' + name: 'OpenStack Nova: Current RAM usage is too high' + event_name: 'OpenStack Nova: Current RAM usage is too high (used >= {$OPENSTACK.NOVA.RAM.UTIL.HIGH}%)' + opdata: 'Current: {ITEM.LASTVALUE1}, MAX: {ITEM.LASTVALUE2}' + priority: HIGH + description: 'Current RAM usage has exceeded {$OPENSTACK.NOVA.RAM.UTIL.HIGH}% of the max available RAM usage.' + tags: + - tag: scope + value: capacity + - uuid: 85b1a132602344e39a50ef10b29fca15 + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.limits.vcpu.current) >= ({$OPENSTACK.NOVA.CPU.UTIL.WARN} / 100 * last(/OpenStack Nova by HTTP/openstack.nova.limits.vcpu.max))' + name: 'OpenStack Nova: Current vCPU usage is high' + event_name: 'OpenStack Nova: Current vCPU usage is high (used >= {$OPENSTACK.NOVA.CPU.UTIL.WARN}%)' + opdata: 'Current: {ITEM.LASTVALUE1}, MAX: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Current vCPU usage has exceeded {$OPENSTACK.NOVA.CPU.UTIL.WARN}% of the max available vCPU usage.' + dependencies: + - name: 'OpenStack Nova: Current vCPU usage is too high' + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.limits.vcpu.current) >= ({$OPENSTACK.NOVA.CPU.UTIL.HIGH} / 100 * last(/OpenStack Nova by HTTP/openstack.nova.limits.vcpu.max))' + tags: + - tag: scope + value: capacity + - uuid: e62a7fb598b34a0cb5bee6bc0370f7dd + expression: 'last(/OpenStack Nova by HTTP/openstack.nova.limits.vcpu.current) >= ({$OPENSTACK.NOVA.CPU.UTIL.HIGH} / 100 * last(/OpenStack Nova by HTTP/openstack.nova.limits.vcpu.max))' + name: 'OpenStack Nova: Current vCPU usage is too high' + event_name: 'OpenStack Nova: Current vCPU usage is too high (used >= {$OPENSTACK.NOVA.CPU.UTIL.HIGH}%)' + opdata: 'Current: {ITEM.LASTVALUE1}, MAX: {ITEM.LASTVALUE2}' + priority: HIGH + description: 'Current vCPU usage has exceeded {$OPENSTACK.NOVA.CPU.UTIL.HIGH}% of the max available vCPU usage.' + tags: + - tag: scope + value: capacity + graphs: + - uuid: 462db790ba6c451b8d2d4f4669ed11b5 + name: 'Nova: Instances utilization' + graph_items: + - color: 00FF00 + item: + host: 'OpenStack Nova by HTTP' + key: openstack.nova.limits.instances.current + - sortorder: '1' + drawtype: DASHED_LINE + color: FF0000 + item: + host: 'OpenStack Nova by HTTP' + key: openstack.nova.limits.instances.max + - uuid: d65df309a6ae47f48ebf245257750e58 + name: 'Nova: RAM utilization' + graph_items: + - color: 00FF00 + item: + host: 'OpenStack Nova by HTTP' + key: openstack.nova.limits.ram.current + - sortorder: '1' + drawtype: DASHED_LINE + color: FF0000 + item: + host: 'OpenStack Nova by HTTP' + key: openstack.nova.limits.ram.max + - uuid: 5c7434d968b64c118138e413758630c0 + name: 'Nova: vCPUs utilization' + graph_items: + - color: 00FF00 + item: + host: 'OpenStack Nova by HTTP' + key: openstack.nova.limits.vcpu.current + - sortorder: '1' + drawtype: DASHED_LINE + color: FF0000 + item: + host: 'OpenStack Nova by HTTP' + key: openstack.nova.limits.vcpu.max diff --git a/OpenStack_by_HTTP.yaml b/OpenStack_by_HTTP.yaml new file mode 100644 index 0000000..c8100b4 --- /dev/null +++ b/OpenStack_by_HTTP.yaml @@ -0,0 +1,253 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + host_groups: + - uuid: 137f19e6e2dc4219b33553b812627bc2 + name: 'Virtual machines' + templates: + - uuid: 4e3fb27f028e4c35b8c9fc43b11c07d7 + template: 'OpenStack by HTTP' + name: 'OpenStack by HTTP' + description: | + Requests OpenStack API access token and discovers available OpenStack services using OpenStack Identity API by HTTP using script item and creates host prototypes for them. + + Template uses OpenStack application credentials for authorization. + + Zabbix currently supports OpenStack Nova service. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Cloud + items: + - uuid: 0518d08edbf2480abf15f4ef0e7a251a + name: 'Get access token and service catalog' + type: SCRIPT + key: openstack.identity.auth + delay: '{$OPENSTACK.AUTH.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + + const request_path = '/v3/auth/tokens'; + + function getHeader(headers, name, index) { + if (!headers || typeof headers !== 'object') { + return null; + } + + var target = name.toLowerCase(); + for (var key in headers) { + if (key.toLowerCase() === target) { + var value = headers[key]; + if (typeof index !== 'undefined') { + return (typeof value[index] !== 'undefined') ? value[index] : null; + } + + return value; + } + } + + return null; + } + + function checkParams(params) { + ['api_url', 'app_cred_id', 'app_cred_secret'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + return params; + } + + function getHttpData(url, params, app_cred_id, app_cred_secret) { + const request = new HttpRequest(tls.options); + + request.addHeader('Content-Type: application/json'); + + const request_body = { + "auth": { + "identity": { + "methods": [ + "application_credential" + ], + "application_credential": { + "id": app_cred_id, + "secret": app_cred_secret + } + } + } + }; + + if (params['http_proxy']) { + request.setProxy(params['http_proxy']) + Zabbix.log(4, '[ Openstack Nova API ] Using http proxy: ' + params['http_proxy']); + } + + const response = request.post(url, JSON.stringify(request_body)); + Zabbix.log(4, '[ Openstack Identity API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 201) { + if (typeof (response.error && response.error.message) !== 'undefined') { + throw response.error.message; + } else { + throw 'Failed to receive data: invalid response status code. Check debug log for more information.'; + } + } + + return {'request': request, 'response': response}; + } + + function parseHttpData(http_data) { + const headers = http_data['request'].getHeaders(true); + const token = getHeader(headers, 'x-subject-token', 0); + + if (!token) { + throw 'X-Subject-Token header not found.'; + } + + const supported_services = ['nova']; + + var ret = []; + const data = JSON.parse(http_data['response']); + if (data['token']['catalog']) { + const service_catalog = data['token']['catalog']; + } else { + throw 'Cannot find service catalog in HTTP response.' + } + + service_catalog.forEach(function (service) { + if (supported_services.indexOf(service.name) > -1) { + service.endpoints.forEach(function (endpoint) { + if (endpoint.interface === 'public') { + ret.push({ + 'service_name': service.name[0].toUpperCase() + service.name.slice(1), + 'service_url': endpoint.url, + 'token': token + }); + } + }) + } + }); + + return JSON.stringify(ret); + } + + const params = checkParams(JSON.parse(value)), + url = params.api_url, + auth_cred_id = params.app_cred_id, + auth_cred_secret = params.app_cred_secret; + + const tls = new CTlsConfig(params.tls_verify); + tls.checkURL(url); + + const httpData = getHttpData(url + request_path, params, auth_cred_id, auth_cred_secret); + return parseHttpData(httpData); + description: 'Authorizes user on the OpenStack Identity service and gets the service catalog.' + timeout: 10s + parameters: + - name: api_url + value: '{$OPENSTACK.KEYSTONE.API.ENDPOINT}' + - name: app_cred_id + value: '{$OPENSTACK.APP.CRED.ID}' + - name: app_cred_secret + value: '{$OPENSTACK.APP.CRED.SECRET}' + - name: http_proxy + value: '{$OPENSTACK.HTTP.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"OpenStack"}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: f827e364d7bd4013b02504a58fdc2d39 + name: 'OpenStack: Nova discovery' + type: DEPENDENT + key: openstack.services.nova.discovery + delay: '0' + filter: + conditions: + - macro: '{#SERVICE_NAME}' + value: ^Nova$ + formulaid: A + description: 'Discovers OpenStack services from the monitoring user''s services catalog.' + host_prototypes: + - uuid: 580d769292ec48379c5b84cd5c72533b + host: 'OpenStack {#SERVICE_NAME}' + name: 'OpenStack {#SERVICE_NAME}' + group_links: + - group: + name: 'Virtual machines' + templates: + - name: 'OpenStack Nova by HTTP' + macros: + - macro: '{$OPENSTACK.NOVA.SERVICE.URL}' + value: '{#SERVICE_URL}' + description: 'OpenStack Nova service path.' + - macro: '{$OPENSTACK.TOKEN}' + value: '{#TOKEN}' + description: 'OpenStack authorization token.' + master_item: + key: openstack.identity.auth + lld_macro_paths: + - lld_macro: '{#SERVICE_NAME}' + path: $.service_name + - lld_macro: '{#SERVICE_URL}' + path: $.service_url + - lld_macro: '{#TOKEN}' + path: $.token + tags: + - tag: class + value: cloud + - tag: target + value: openstack + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "OpenStack Nova", e.g. {$HTTP.TLS.VERIFY:"OpenStack"}.' + - macro: '{$OPENSTACK.APP.CRED.ID}' + description: 'Application credential ID for monitoring user access.' + - macro: '{$OPENSTACK.APP.CRED.SECRET}' + type: SECRET_TEXT + description: 'Application credential password for monitoring user access.' + - macro: '{$OPENSTACK.AUTH.INTERVAL}' + value: 50m + description: 'API token regeneration interval, in minutes. By default, OpenStack API tokens expire after 60m.' + - macro: '{$OPENSTACK.HTTP.PROXY}' + description: 'Sets the HTTP proxy for the authorization item. Host prototypes will also use this value for HTTP proxy. If this parameter is empty, then no proxy is used.' + - macro: '{$OPENSTACK.KEYSTONE.API.ENDPOINT}' + description: 'API endpoint for Identity Service, e.g., https://local.openstack:5000.' diff --git a/OpenWeatherMap_by_HTTP.yaml b/OpenWeatherMap_by_HTTP.yaml new file mode 100644 index 0000000..8cef7ea --- /dev/null +++ b/OpenWeatherMap_by_HTTP.yaml @@ -0,0 +1,764 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 8098b3c157ab456abd55d3840eef79c1 + template: 'OpenWeatherMap by HTTP' + name: 'OpenWeatherMap by HTTP' + description: | + Get weather metrics from OpenWeatherMap current weather API by HTTP. + It works without any external scripts and uses the Script item. + + Setup: + 1. Create a host. + + 2. Link the template to the host. + + 3. Customize the values of {$OPENWEATHERMAP.API.TOKEN} and {$LOCATION} macros. + OpenWeatherMap API Tokens are available in your OpenWeatherMap account https://home.openweathermap.org/api_keys. + Locations can be set by few ways: + - by geo coordinates (for example: 56.95,24.0833) + - by location name (for example: Riga) + - by location ID. Link to the list of city ID: http://bulk.openweathermap.org/sample/city.list.json.gz + - by zip/post code with a country code (for example: 94040,us) + A few locations can be added to the macro at the same time by "|" delimiter. + For example: 43.81821,7.76115|Riga|2643743|94040,us. + Please note that API requests by city name, zip-codes and city id will be deprecated soon. + + Language and units macros can be customized too if necessary. + List of available languages: https://openweathermap.org/current#multi. + Available units of measurement are: standard, metric and imperial https://openweathermap.org/current#data. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 7db240f752294b2eb86537d6c06cac5e + name: 'Get data' + type: SCRIPT + key: openweathermap.get.data + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + data = [], + error_msg = [], + measurement, + temp_unit, + wind_unit, + errors_only = [], + error_locations = [], + unique_errors, + new_error_msg; + + function getHttpData(query) { + url = tls.checkURL(params.api_endpoint + query) + '&appid=' + params.apikey + '&units=' + params.units + '&lang=' + params.lang; + response = request.get(url); + Zabbix.log(4, '[ Openweathermap ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response.'; + } + } + + if (request.getStatus() !== 200) { + if (response.error && response.error.message) { + throw response.error.message; + } + else { + throw 'Failed to receive data. Invalid response status code: ' + request.getStatus(); + } + } + return response; + } + + switch (params.units) { + case 'metric': + measurement = 'metric'; + temp_unit = 'C'; + wind_unit = 'meter/sec'; + break; + case 'imperial': + measurement = 'imperial'; + temp_unit = 'F'; + wind_unit = 'miles/hour'; + break; + default: + measurement = 'standard'; + temp_unit = 'K'; + wind_unit = 'meter/sec'; + } + + locations = params.location.split('|'); + for (var i in locations) { + try { + if (/^[0-9]+$/g.test(locations[i])) { + result = getHttpData('id=' + locations[i]); + } + else if (/^.*,[\w]+$/g.test(locations[i])) { + result = getHttpData('zip=' + locations[i]); + } + else if (/^(\-)?[0-9]{1,2}(\.[0-9]+)?,(\-)?[0-9]{1,2}(\.[0-9]+)?/g.test(locations[i])) { + coordinates = locations[i].split(','); + result = getHttpData('lat=' + coordinates[0] + '&lon=' + coordinates[1]); + } + else { + result = getHttpData('q=' + encodeURIComponent(locations[i])); + } + if (!data.filter(function (location) { return location.id === result.id; }).length) { + result.measurement = measurement; + result.temp_unit = temp_unit; + result.wind_unit = wind_unit; + data.push(result); + } + } catch (error) { + errors = {}; + errors.location = locations[i]; + errors.error = error.toString(); + error_msg.push(errors); + errors_only.push(error.toString()); + } + } + + if (error_msg.length === 0) { + return JSON.stringify({ + 'data': data, + 'errors': error_msg.toString() + }); + } else { + unique_errors = errors_only.filter(function (value, index, self) { + return self.indexOf(value) == index; + }); + + if (unique_errors.length === 1) { + for (var j in error_msg) { + error_locations.push(error_msg[j].location); + } + new_error_msg = 'Failed to retrieve data for the following locations: ' + error_locations + '. ' + unique_errors[0]; + return JSON.stringify({ + 'data': data, + 'errors': new_error_msg + }); + } else { + return JSON.stringify({ + 'data': data, + 'errors': error_msg + }); + } + } + description: 'JSON array with result of OpenWeatherMap API requests.' + parameters: + - name: apikey + value: '{$OPENWEATHERMAP.API.TOKEN}' + - name: api_endpoint + value: '{$OPENWEATHERMAP.API.ENDPOINT}' + - name: lang + value: '{$LANG}' + - name: location + value: '{$LOCATION}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"OpenWeatherMap"}' + - name: units + value: '{$UNITS}' + tags: + - tag: component + value: raw + - uuid: 2eb0520627084f2596743f53552c3744 + name: 'Get data collection errors' + type: DEPENDENT + key: openweathermap.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Errors from get data requests by script item.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: openweathermap.get.data + tags: + - tag: component + value: application + - tag: component + value: errors + triggers: + - uuid: 8c2c6f81e1e74f97a28538e714eee474 + expression: 'length(last(/OpenWeatherMap by HTTP/openweathermap.get.errors))>0' + name: 'OpenWeatherMap: There are errors in requests to OpenWeatherMap API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in requests to OpenWeatherMap API.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 8d3f96f4a23c43a2a28b75f078cc1ff2 + name: 'Locations discovery' + type: DEPENDENT + key: openweathermap.locations.discovery + delay: '0' + lifetime: 0d + description: 'Weather metrics discovery by location.' + item_prototypes: + - uuid: 8d19b2e691a440dcb014a6518b7bb0d6 + name: '[{#LOCATION}, {#COUNTRY}]: Cloudiness' + type: DEPENDENT + key: 'openweathermap.clouds[{#ID}]' + delay: '0' + units: '%' + description: 'Cloudiness in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.clouds.all + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openweathermap.location.data[{#ID}]' + tags: + - tag: component + value: environment + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + - uuid: 02463505cab64ae0bbc4554531372818 + name: '[{#LOCATION}, {#COUNTRY}]: Short weather status' + type: DEPENDENT + key: 'openweathermap.description[{#ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Short weather status description.' + preprocessing: + - type: JSONPATH + parameters: + - $.weather..description.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openweathermap.location.data[{#ID}]' + tags: + - tag: component + value: environment + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + - uuid: 5f8fa36c0be5475bad5c5c9074afa7e4 + name: '[{#LOCATION}, {#COUNTRY}]: Humidity' + type: DEPENDENT + key: 'openweathermap.humidity[{#ID}]' + delay: '0' + units: '%' + description: 'Humidity in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.main.humidity + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openweathermap.location.data[{#ID}]' + tags: + - tag: component + value: environment + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + - uuid: 51f79e4be0734ad5b548617eb535fae4 + name: '[{#LOCATION}, {#COUNTRY}]: Data' + type: DEPENDENT + key: 'openweathermap.location.data[{#ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'JSON with result of OpenWeatherMap API request by location.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.[?(@.id==''{#ID}'')].first()' + master_item: + key: openweathermap.get.data + tags: + - tag: component + value: raw + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + - uuid: a9ef27e9702c4f41bfbb95579ff2014e + name: '[{#LOCATION}, {#COUNTRY}]: Atmospheric pressure' + type: DEPENDENT + key: 'openweathermap.pressure[{#ID}]' + delay: '0' + units: Pa + description: 'Atmospheric pressure in Pa.' + preprocessing: + - type: JSONPATH + parameters: + - $.main.pressure + - type: MULTIPLIER + parameters: + - '100' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openweathermap.location.data[{#ID}]' + tags: + - tag: component + value: environment + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + - uuid: 6a0f10ae39a347319026ff147f1dc470 + name: '[{#LOCATION}, {#COUNTRY}]: Rain volume for the last one hour' + type: DEPENDENT + key: 'openweathermap.rain[{#ID}]' + delay: '0' + value_type: FLOAT + units: m + description: 'Rain volume for the lat one hour in m.' + preprocessing: + - type: JSONPATH + parameters: + - $.rain.1h + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openweathermap.location.data[{#ID}]' + tags: + - tag: component + value: environment + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + - uuid: 8310f65dceeb4b348f1a769b806d5239 + name: '[{#LOCATION}, {#COUNTRY}]: Snow volume for the last one hour' + type: DEPENDENT + key: 'openweathermap.snow[{#ID}]' + delay: '0' + value_type: FLOAT + units: m + description: 'Snow volume for the lat one hour in m.' + preprocessing: + - type: JSONPATH + parameters: + - $.snow.1h + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openweathermap.location.data[{#ID}]' + tags: + - tag: component + value: environment + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + - uuid: d30b8a4a56344ddd830d0bd633507b78 + name: '[{#LOCATION}, {#COUNTRY}]: Temperature' + type: DEPENDENT + key: 'openweathermap.temp[{#ID}]' + delay: '0' + value_type: FLOAT + units: '{#TEMP.UNIT}' + description: 'Atmospheric temperature value.' + preprocessing: + - type: JSONPATH + parameters: + - $.main.temp + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openweathermap.location.data[{#ID}]' + tags: + - tag: component + value: environment + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + trigger_prototypes: + - uuid: 3b7e55f13c6a4ba2930709d5c51c8a09 + expression: 'min(/OpenWeatherMap by HTTP/openweathermap.temp[{#ID}],#3)>{$TEMP.CRIT.HIGH}' + name: 'OpenWeatherMap: [{#LOCATION}, {#COUNTRY}]: Temperature is too high' + event_name: 'OpenWeatherMap: [{#LOCATION}, {#COUNTRY}]: Temperature is too high (over {$TEMP.CRIT.HIGH} for 30m)' + opdata: 'Current temp: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Temperature value is too high.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7c98d2784a2e42faa76e67348a0df7ff + expression: 'max(/OpenWeatherMap by HTTP/openweathermap.temp[{#ID}],#3)<{$TEMP.CRIT.LOW}' + name: 'OpenWeatherMap: [{#LOCATION}, {#COUNTRY}]: Temperature is too low' + event_name: 'OpenWeatherMap: [{#LOCATION}, {#COUNTRY}]: Temperature is too low (below {$TEMP.CRIT.LOW} for 30m)' + opdata: 'Current temp: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Temperature value is too low.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 23d4152f794d46f6af705749b9443100 + name: '[{#LOCATION}, {#COUNTRY}]: Visibility' + type: DEPENDENT + key: 'openweathermap.visibility[{#ID}]' + delay: '0' + units: m + description: 'Visibility in m.' + preprocessing: + - type: JSONPATH + parameters: + - $.visibility + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openweathermap.location.data[{#ID}]' + tags: + - tag: component + value: environment + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + - uuid: f3350dcbd4f247e7878c06b8695beddd + name: '[{#LOCATION}, {#COUNTRY}]: Wind direction' + type: DEPENDENT + key: 'openweathermap.wind.direction[{#ID}]' + delay: '0' + value_type: FLOAT + units: deg + description: 'Wind direction in degrees.' + valuemap: + name: 'Wind direction' + preprocessing: + - type: JSONPATH + parameters: + - $.wind.deg + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openweathermap.location.data[{#ID}]' + tags: + - tag: component + value: environment + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + - uuid: 67decabd27774e9fb6d9212621c43a54 + name: '[{#LOCATION}, {#COUNTRY}]: Wind speed' + type: DEPENDENT + key: 'openweathermap.wind.speed[{#ID}]' + delay: '0' + value_type: FLOAT + units: '{#WIND.UNIT}' + description: 'Wind speed value.' + preprocessing: + - type: JSONPATH + parameters: + - $.wind.speed + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'openweathermap.location.data[{#ID}]' + tags: + - tag: component + value: environment + - tag: country + value: '{#COUNTRY}' + - tag: location + value: '{#LOCATION}' + graph_prototypes: + - uuid: 62ba0562f77d46e0b04a387d82c1a51e + name: '[{#LOCATION}, {#COUNTRY}]: Atmospheric pressure' + graph_items: + - color: 199C0D + item: + host: 'OpenWeatherMap by HTTP' + key: 'openweathermap.pressure[{#ID}]' + - uuid: 6196267a6d974ef2acbebdb9b33f6b71 + name: '[{#LOCATION}, {#COUNTRY}]: Rain volume' + graph_items: + - color: 199C0D + item: + host: 'OpenWeatherMap by HTTP' + key: 'openweathermap.rain[{#ID}]' + - uuid: 27b47b89606e43f5a4180e9dde29d7d6 + name: '[{#LOCATION}, {#COUNTRY}]: Snow volume' + graph_items: + - color: 199C0D + item: + host: 'OpenWeatherMap by HTTP' + key: 'openweathermap.snow[{#ID}]' + - uuid: 3561e247237548f3a26c702924d05894 + name: '[{#LOCATION}, {#COUNTRY}]: Temperature' + graph_items: + - color: 199C0D + item: + host: 'OpenWeatherMap by HTTP' + key: 'openweathermap.temp[{#ID}]' + master_item: + key: openweathermap.get.data + lld_macro_paths: + - lld_macro: '{#COUNTRY}' + path: $.sys.country + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#LOCATION}' + path: $.name + - lld_macro: '{#TEMP.UNIT}' + path: $.temp_unit + - lld_macro: '{#WIND.UNIT}' + path: $.wind_unit + preprocessing: + - type: JSONPATH + parameters: + - $.data + - type: NOT_MATCHES_REGEX + parameters: + - '\[\]' + error_handler: CUSTOM_ERROR + error_handler_params: 'Failed to receive data about required locations from API' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: service + - tag: target + value: openweathermap + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "OpenWeatherMap", e.g. {$HTTP.TLS.VERIFY:"OpenWeatherMap"}.' + - macro: '{$LANG}' + value: en + description: 'List of available languages https://openweathermap.org/current#multi.' + - macro: '{$LOCATION}' + value: Riga + description: | + Locations can be set by few ways: + 1. by geo coordinates (for example: 56.95,24.0833) + 2. by location name (for example: Riga) + 3. by location ID. Link to the list of city ID: http://bulk.openweathermap.org/sample/city.list.json.gz + 4. by zip/post code with a country code (for example: 94040,us) + A few locations can be added to the macro at the same time by `|` delimiter. + For example: `43.81821,7.76115|Riga|2643743|94040,us`. + Please note that API requests by city name, zip-codes and city id will be deprecated soon. + - macro: '{$OPENWEATHERMAP.API.ENDPOINT}' + value: 'api.openweathermap.org/data/2.5/weather?' + description: 'OpenWeatherMap API endpoint.' + - macro: '{$OPENWEATHERMAP.API.TOKEN}' + type: SECRET_TEXT + description: 'Specify openweathermap API key.' + - macro: '{$TEMP.CRIT.HIGH}' + value: '30' + description: 'Threshold for high temperature trigger.' + - macro: '{$TEMP.CRIT.LOW}' + value: '-20' + description: 'Threshold for low temperature trigger.' + - macro: '{$UNITS}' + value: metric + description: 'Available units of measurement are standard, metric and imperial https://openweathermap.org/current#data.' + dashboards: + - uuid: 23d93d156d4d459db69000f3cdd3d788 + name: 'Openweathermap: General' + pages: + - name: 'Openweathermap: General' + widgets: + - type: graphprototype + name: Atmospheric.pressure + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'OpenWeatherMap by HTTP' + name: '[{#LOCATION}, {#COUNTRY}]: Atmospheric pressure' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + name: 'Snow volume' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'OpenWeatherMap by HTTP' + name: '[{#LOCATION}, {#COUNTRY}]: Snow volume' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + name: 'Rain volume' + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'OpenWeatherMap by HTTP' + name: '[{#LOCATION}, {#COUNTRY}]: Rain volume' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + name: Temperature + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'OpenWeatherMap by HTTP' + name: '[{#LOCATION}, {#COUNTRY}]: Temperature' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 9a8fdac997914722acfea90f1f9d45e9 + name: 'Wind direction' + mappings: + - type: IN_RANGE + value: '0 - 11.24' + newvalue: 'N' + - type: IN_RANGE + value: '11.25 - 33.74' + newvalue: NNE + - type: IN_RANGE + value: '33.75 - 56.24' + newvalue: NE + - type: IN_RANGE + value: '56.25 - 78.74' + newvalue: ENE + - type: IN_RANGE + value: '78.75 - 101.24' + newvalue: E + - type: IN_RANGE + value: '101.25 - 123.74' + newvalue: ESE + - type: IN_RANGE + value: '123.75 - 146.24' + newvalue: SE + - type: IN_RANGE + value: '146.25 - 168.74' + newvalue: SSE + - type: IN_RANGE + value: '168.75 - 191.24' + newvalue: S + - type: IN_RANGE + value: '191.25 - 213.74' + newvalue: SSW + - type: IN_RANGE + value: '213.75 - 236.24' + newvalue: SW + - type: IN_RANGE + value: '236.25 - 258.74' + newvalue: WSW + - type: IN_RANGE + value: '258.75 - 281.24' + newvalue: W + - type: IN_RANGE + value: '281.25 - 303.74' + newvalue: WNW + - type: IN_RANGE + value: '303.75 - 326.24' + newvalue: NW + - type: IN_RANGE + value: '326.25 - 348.74' + newvalue: NNW + - type: IN_RANGE + value: '348.75 - 379.99' + newvalue: 'N' diff --git a/Oracle_Cloud_Autonomous_Database_by_HTTP.yaml b/Oracle_Cloud_Autonomous_Database_by_HTTP.yaml new file mode 100644 index 0000000..13d93cd --- /dev/null +++ b/Oracle_Cloud_Autonomous_Database_by_HTTP.yaml @@ -0,0 +1,4473 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 178645e229484bcf9cb030dc1edccebb + template: 'Oracle Cloud Autonomous Database by HTTP' + name: 'Oracle Cloud Autonomous Database by HTTP' + description: | + This template monitors Oracle Cloud Infrastructure (OCI) autonomous database (serverless) resources. + + This template is not meant to be used independently, but together with Oracle Cloud by HTTP as a template for + LLD host prototypes. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Cloud + items: + - uuid: 8520813edccc4fb9ba975c27914c5633 + name: 'Database availability' + type: DEPENDENT + key: oci.aut.db.availability + delay: '0' + value_type: FLOAT + description: 'The database is available for connections in the given minute.' + valuemap: + name: 'Database availability' + preprocessing: + - type: JSONPATH + parameters: + - $.DatabaseAvailability + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 5h + master_item: + key: oci.aut.db.metrics.stats + tags: + - tag: component + value: environment + triggers: + - uuid: 21b1a5c7d7754eb6be30098b2df99a22 + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.availability) = 0' + name: 'OCI Autonomous DB: Database is not available' + priority: HIGH + description: 'Autonomous database is not available.' + dependencies: + - name: 'OCI Autonomous DB: Database is not available or accessible' + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 19 or last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 20' + tags: + - tag: scope + value: availability + - uuid: 038c4b2c000747799b60cb074aebbce5 + name: 'DB block changes' + type: DEPENDENT + key: oci.aut.db.block.changes + delay: '0' + description: | + The number of changes that were part of an update or delete operation that were made to all blocks in the SGA. + + Such changes generate redo log entries and thus become permanent changes to the database if + the transaction is committed. + + This statistic approximates total database work and indicates the rate at which buffers are being dirtied + during the selected time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.DBBlockChanges + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: a471a74943b24a4a81347404e37b7359 + name: 'Failed connections' + type: DEPENDENT + key: oci.aut.db.conn.failed + delay: '0' + description: 'The number of failed database connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.FailedConnections + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: cc1244e911314e9aaa6a995636848809 + name: 'CPU time' + type: DEPENDENT + key: oci.aut.db.cpu.time + delay: '0' + value_type: FLOAT + description: 'Average rate of accumulation of CPU time by foreground sessions in the database over the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.CpuTime + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: cpu + - uuid: da165d0adf324b9e98390d122925fd67 + name: 'CPU utilization, in %' + type: DEPENDENT + key: oci.aut.db.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: | + The CPU usage expressed as a percentage, aggregated across all consumer groups. + The utilization percentage is reported with respect to the number of CPUs the database is allowed to use. + preprocessing: + - type: JSONPATH + parameters: + - $.CpuUtilization + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 59fd2d0eff9f4f5493cd0de94ba57572 + expression: 'min(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.cpu.util,5m) >= {$OCI.AUTONOMOUS.DB.CPU.UTIL.WARN}' + name: 'OCI Autonomous DB: Current CPU utilization is high' + event_name: 'OCI Autonomous DB: Current CPU utilization is high (util >= {$OCI.AUTONOMOUS.DB.CPU.UTIL.WARN}%)' + opdata: 'Current: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current CPU utilization has exceeded `{$OCI.AUTONOMOUS.DB.CPU.UTIL.WARN}`% of the max available value.' + dependencies: + - name: 'OCI Autonomous DB: Current CPU utilization is too high' + expression: 'min(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.cpu.util,5m) >= {$OCI.AUTONOMOUS.DB.CPU.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: f8a53ef11d2140649bc701660183c33d + expression: 'min(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.cpu.util,5m) >= {$OCI.AUTONOMOUS.DB.CPU.UTIL.HIGH}' + name: 'OCI Autonomous DB: Current CPU utilization is too high' + event_name: 'OCI Autonomous DB: Current CPU utilization is too high (util >= {$OCI.AUTONOMOUS.DB.CPU.UTIL.HIGH}%)' + opdata: 'Current: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current CPU utilization has exceeded `{$OCI.AUTONOMOUS.DB.CPU.UTIL.HIGH}`% of the max available value.' + tags: + - tag: scope + value: capacity + - uuid: 47708f3446644bbc9afd11bd0e98d1f5 + name: 'Execute count' + type: DEPENDENT + key: oci.aut.db.exec.count + delay: '0' + description: 'The number of user and recursive calls that executed SQL statements during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.ExecuteCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 4a1af0cbea8645cc897d64e3c1ac802e + name: 'Connection latency' + type: DEPENDENT + key: oci.aut.db.latency.conn + delay: '0' + value_type: FLOAT + units: s + description: | + The time taken to connect to an Oracle Autonomous Database Serverless instance in each region + from a Compute service virtual machine in the same region. + preprocessing: + - type: JSONPATH + parameters: + - $.ConnectionLatency + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 5h + master_item: + key: oci.aut.db.metrics.stats + tags: + - tag: component + value: environment + - uuid: e233b1ab82384297b9ee88556969da31 + name: 'Query latency' + type: DEPENDENT + key: oci.aut.db.latency.query + delay: '0' + value_type: FLOAT + units: s + description: 'The time taken to display the results of a simple query on the user''s screen.' + preprocessing: + - type: JSONPATH + parameters: + - $.QueryLatency + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 5h + master_item: + key: oci.aut.db.metrics.stats + tags: + - tag: component + value: environment + - uuid: b39b36b4a72b4cbf80584614c3d996ed + name: 'Session logical reads' + type: DEPENDENT + key: oci.aut.db.logical.reads.session + delay: '0' + description: | + The sum of `db block gets` and `consistent gets` during the selected time interval. + This includes logical reads of database blocks from either the buffer cache or process private memory. + preprocessing: + - type: JSONPATH + parameters: + - $.LogicalReads + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 27b77344e5fc473693e48eb676ceb746 + name: 'Current logons' + type: DEPENDENT + key: oci.aut.db.logons + delay: '0' + description: 'The number of successful logons during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.CurrentLogons + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: f4c0af10cea04decbb049c02f06795e4 + name: 'Failed logons' + type: DEPENDENT + key: oci.aut.db.logons.failed + delay: '0' + value_type: FLOAT + description: | + The number of logons that failed because of an invalid user name and/or password + during the selected time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.FailedLogons + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 6104537179324cb48d82e05d64f3a19f + name: 'Get frequent metrics' + type: SCRIPT + key: oci.aut.db.metrics.frequent.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + function buildMql(id, metrics, defaultStatistic, resourceType) { + resourceType = resourceType === '' || resourceType === undefined ? 'resourceId' : resourceType; + this.query = '[' + params['req_interval'] + 'm]{' + resourceType + '=' + id + '}.'; + + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + const metric = ((Array.isArray(metrics[i]) ? metrics[i] : [metrics[i], defaultStatistic])); + metrics[i] = [metric[0], this.query + metric[1]]; + } + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'db_id', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Autonomous DB', 'Get metrics ' + params['req_interval'] + 'm', params); + + const metrics = [ + ['CpuTime', 'mean'], + ['CpuUtilization', 'mean'], + ['CurrentLogons', 'count'], + 'DBBlockChanges', + ['DBTime', 'mean'], + 'ExecuteCount', + 'FailedConnections', + ['FailedLogons', 'mean'], + 'HardParseCount', + 'LogicalReads', + 'ParseCount', + 'ParseFailureCount', + 'PhysicalReads', + 'PhysicalReadTotalBytes', + 'PhysicalWrites', + 'PhysicalWriteTotalBytes', + 'QueuedStatements', + 'RedoGenerated', + ['RunningStatements', 'mean'], + 'Sessions', + 'SQLNetBytesFromClient', + 'SQLNetBytesFromDBLink', + 'SQLNetBytesToClient', + 'SQLNetBytesToDBLink', + 'TransactionCount', + 'UserCalls', + 'UserCommits', + 'UserRollbacks', + ['WaitTime', 'mean'] + ]; + buildMql(params['db_id'], metrics, 'sum'); + + var result = {}; + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + result[metrics[i][0]] = oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), metrics[i][0] + metrics[i][1] + '()', 'oci_autonomous_database'), 'aggregatedDatapoints'); + } + return JSON.stringify(result); + description: 'Gets all metrics related to the database that have a collection frequency of 1 minute.' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: compartment_id + value: '{$OCI.AUTONOMOUS.DB.COMPARTMENT.ID}' + - name: db_id + value: '{$OCI.AUTONOMOUS.DB.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '1' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Autonomous Database"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: raw + - uuid: 87a25240776a4b8a9a17ac053b69fd99 + name: 'Get database stats' + type: SCRIPT + key: oci.aut.db.metrics.stats + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + function buildMql(id, metrics, defaultStatistic, resourceType) { + resourceType = resourceType === '' || resourceType === undefined ? 'resourceId' : resourceType; + this.query = '[' + params['req_interval'] + 'm]{' + resourceType + '=' + id + '}.'; + + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + const metric = ((Array.isArray(metrics[i]) ? metrics[i] : [metrics[i], defaultStatistic])); + metrics[i] = [metric[0], this.query + metric[1]]; + } + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'db_id', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Autonomous DB', 'Get metrics ' + params['req_interval'] + 'm', params); + + const metrics = [ + ['DatabaseAvailability', 'last'], + 'ConnectionLatency', + 'QueryLatency' + ]; + buildMql(params['db_id'], metrics, 'max'); + + var result = {}; + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + result[metrics[i][0]] = oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), metrics[i][0] + metrics[i][1] + '()', 'oci_autonomous_database'), 'aggregatedDatapoints'); + } + return JSON.stringify(result); + description: 'Gets all metrics related to specific database that have a collection frequency of 5 minutes.' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: compartment_id + value: '{$OCI.AUTONOMOUS.DB.COMPARTMENT.ID}' + - name: db_id + value: '{$OCI.AUTONOMOUS.DB.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '5' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Autonomous Database"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: raw + - uuid: cb2936c594e4450096559b3023f6aa4f + name: 'Get storage stats' + type: SCRIPT + key: oci.aut.db.metrics.storage.stats + delay: 60m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + function buildMql(id, metrics, defaultStatistic, resourceType) { + resourceType = resourceType === '' || resourceType === undefined ? 'resourceId' : resourceType; + this.query = '[' + params['req_interval'] + 'm]{' + resourceType + '=' + id + '}.'; + + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + const metric = ((Array.isArray(metrics[i]) ? metrics[i] : [metrics[i], defaultStatistic])); + metrics[i] = [metric[0], this.query + metric[1]]; + } + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'db_id', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Autonomous DB', 'Get metrics ' + params['req_interval'] + 'm', params); + + const metrics = [ + 'StorageAllocated', + 'StorageMax', + 'StorageUsed', + ['StorageUtilization', 'mean'] + ]; + buildMql(params['db_id'], metrics, 'max'); + + var result = {}; + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + result[metrics[i][0]] = oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), metrics[i][0] + metrics[i][1] + '()', 'oci_autonomous_database'), 'aggregatedDatapoints'); + } + return JSON.stringify(result); + description: 'Gets all storage metrics related to a specific database that have a collection frequency of 60 minutes.' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: compartment_id + value: '{$OCI.AUTONOMOUS.DB.COMPARTMENT.ID}' + - name: db_id + value: '{$OCI.AUTONOMOUS.DB.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '60' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Autonomous Database"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: raw + - uuid: 8ca09dafd8a744489ac122d995367a76 + name: 'Parse count (failures)' + type: DEPENDENT + key: oci.aut.db.parse.count.failed + delay: '0' + description: 'The number of parse failures during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.ParseFailureCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 0f052e0dd75d4ae190c3b87581e29136 + name: 'Parse count (hard)' + type: DEPENDENT + key: oci.aut.db.parse.count.hard + delay: '0' + description: | + The number of parse calls (real parses) during the selected time interval. + A hard parse is an expensive operation in terms of memory use as it requires Oracle to allocate a + workheap and other memory structures and then build a parse tree. + preprocessing: + - type: JSONPATH + parameters: + - $.HardParseCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: d5097f4c85ee40608ca8096f1d5f81c1 + name: 'Parse count (total)' + type: DEPENDENT + key: oci.aut.db.parse.count.total + delay: '0' + description: 'The number of hard and soft parses during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.ParseCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: db1b10f32442428b89a0437176b94906 + name: 'Physical read total bytes' + type: DEPENDENT + key: oci.aut.db.physical.read.bytes + delay: '0' + units: B + description: | + The size in bytes of disk reads by all database instance activity including + application reads, backup and recovery, and other utilities during the selected time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.PhysicalReadTotalBytes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: a0e9f2b67c364a8baecc611ff1637399 + name: 'Physical reads' + type: DEPENDENT + key: oci.aut.db.physical.reads + delay: '0' + description: 'The number of data blocks read from disk during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.PhysicalReads + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 81f85ed2baa44bb3a0b05255cc866c3e + name: 'Physical write total bytes' + type: DEPENDENT + key: oci.aut.db.physical.write.bytes + delay: '0' + units: B + description: | + The size in bytes of all disk writes for the database instance including + application activity, backup and recovery, and other utilities during the selected time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.PhysicalWriteTotalBytes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 2b9998f8dd7d493496146d10fff0a5ee + name: 'Physical writes' + type: DEPENDENT + key: oci.aut.db.physical.writes + delay: '0' + description: 'The number of data blocks written to disk during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.PhysicalWrites + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 2acac07f1c30472a84b8864a6cfa7985 + name: 'Queued statements' + type: DEPENDENT + key: oci.aut.db.queued.statements + delay: '0' + description: 'The number of queued SQL statements aggregated across all consumer groups during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.QueuedStatements + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 0f79764cca3f45688d79bb79c762ef99 + name: 'Redo generated' + type: DEPENDENT + key: oci.aut.db.redo.gen + delay: '0' + description: 'Amount of redo generated in bytes during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.RedoGenerated + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 11ca43167a374fe99eab91817957a3fb + name: Sessions + type: DEPENDENT + key: oci.aut.db.sessions + delay: '0' + description: 'The number of sessions in the database.' + preprocessing: + - type: JSONPATH + parameters: + - $.Sessions + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: a71a6114736f4ce89425ed8de504140d + name: 'Bytes received via SQL*Net from client' + type: DEPENDENT + key: oci.aut.db.sqlnet.bytes.recv.client + delay: '0' + units: B + description: 'The number of bytes received from the client over Oracle Net Services during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.SQLNetBytesFromClient + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: a1555ae851e1432c94169e430a782c7d + name: 'Bytes received via SQL*Net from DBLink' + type: DEPENDENT + key: oci.aut.db.sqlnet.bytes.recv.dblink + delay: '0' + units: B + description: 'The number of bytes received from a database link over Oracle Net Services during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.SQLNetBytesFromDBLink + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 35cdcf2b736745708910f2389a64670d + name: 'Bytes sent via SQL*Net to client' + type: DEPENDENT + key: oci.aut.db.sqlnet.bytes.sent.client + delay: '0' + units: B + description: 'The number of bytes sent to the client from the foreground processes during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.SQLNetBytesToClient + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 5cc3975e76a842b89a7c6d2ac5108b8c + name: 'Bytes sent via SQL*Net to DBLink' + type: DEPENDENT + key: oci.aut.db.sqlnet.bytes.sent.dblink + delay: '0' + units: B + description: 'The number of bytes sent over a database link during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.SQLNetBytesToDBLink + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 48d69be6970c41fcb110f18e18ff6387 + name: State + type: SCRIPT + key: oci.aut.db.state + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'db_id', 'http_status_code'], params); + var oci = new OCI('Autonomous DB', 'Get state', params); + + return oci.extractData('get', oci.executeRequest('get', '/20160918/autonomousDatabases/' + encodeURIComponent(params['db_id']), ''), 'lifecycleState'); + description: 'Gets the autonomous database state.' + valuemap: + name: 'Autonomous database state' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'PROVISIONING': 1, + 'AVAILABLE': 2, + 'STOPPING': 3, + 'STOPPED': 4, + 'STARTING': 5, + 'TERMINATING': 6, + 'TERMINATED': 7, + 'RESTORE_IN_PROGRESS': 8, + 'RESTORE_FAILED': 9, + 'BACKUP_IN_PROGRESS': 10, + 'SCALE_IN_PROGRESS': 11, + 'AVAILABLE_NEEDS_ATTENTION': 12, + 'UPDATING': 13, + 'MAINTENANCE_IN_PROGRESS': 14, + 'RESTARTING': 15, + 'RECREATING': 16, + 'ROLE_CHANGE_IN_PROGRESS': 17, + 'UPGRADING': 18, + 'UNAVAILABLE': 19, + 'INACCESSIBLE': 20, + 'STANDBY': 21 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.AUTONOMOUS.DB.HOST}' + - name: db_id + value: '{$OCI.AUTONOMOUS.DB.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Autonomous Database"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: environment + triggers: + - uuid: bb790262359f4e35af895b1a69ad511c + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 12' + name: 'OCI Autonomous DB: Available, needs attention' + priority: WARNING + description: 'Autonomous database is available, but needs attention.' + tags: + - tag: scope + value: availability + - uuid: 18594a88549843c498d0e037f51afc59 + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 19 or last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 20' + name: 'OCI Autonomous DB: Database is not available or accessible' + priority: HIGH + description: 'Autonomous database is not available or accessible.' + tags: + - tag: scope + value: availability + - uuid: 4ee1a96f29ef461c8830667e19637911 + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 9' + name: 'OCI Autonomous DB: Restore has failed' + priority: WARNING + description: 'Autonomous database restore has failed.' + tags: + - tag: scope + value: notice + - uuid: 783550ed705944259190fb10dae3f5a8 + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state,#1)<>last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state,#2)' + name: 'OCI Autonomous DB: State has changed' + event_name: 'OCI Autonomous DB: State has changed (new state: {ITEM.VALUE})' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: INFO + description: 'Autonomous database state has changed.' + manual_close: 'YES' + dependencies: + - name: 'OCI Autonomous DB: Available, needs attention' + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 12' + - name: 'OCI Autonomous DB: Database is not available or accessible' + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 19 or last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 20' + - name: 'OCI Autonomous DB: Restore has failed' + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 9' + - name: 'OCI Autonomous DB: State unknown' + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 0' + tags: + - tag: scope + value: notice + - uuid: 2bc79a5a19a544d39c6de861b94564af + expression: 'last(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.state) = 0' + name: 'OCI Autonomous DB: State unknown' + priority: WARNING + description: 'Autonomous database state is unknown.' + tags: + - tag: scope + value: availability + - uuid: 6111b1843fe94fefbf1ca1d530832d39 + name: 'Running statements' + type: DEPENDENT + key: oci.aut.db.statements.running + delay: '0' + value_type: FLOAT + description: 'The number of running SQL statements aggregated across all consumer groups during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.RunningStatements + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 7901279fcb2a4f6285874680ed5f55f5 + name: 'Storage space allocated' + type: DEPENDENT + key: oci.aut.db.storage.space.alloc + delay: '0' + value_type: FLOAT + units: B + description: 'Amount of space allocated to the database for all tablespaces during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.StorageAllocated + - type: MULTIPLIER + parameters: + - '1073741824' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: oci.aut.db.metrics.storage.stats + tags: + - tag: component + value: storage + - uuid: 9dd27df012b24019ad2562822b471a25 + name: 'Maximum storage space' + type: DEPENDENT + key: oci.aut.db.storage.space.max + delay: '0' + value_type: FLOAT + units: B + description: 'Maximum amount of storage reserved for the database during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.StorageMax + - type: MULTIPLIER + parameters: + - '1073741824' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: oci.aut.db.metrics.storage.stats + tags: + - tag: component + value: storage + - uuid: e5378b6a3d33462eb4f3ed6228532d10 + name: 'Storage space used' + type: DEPENDENT + key: oci.aut.db.storage.space.used + delay: '0' + value_type: FLOAT + units: B + description: 'Maximum amount of space used during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.StorageUsed + - type: MULTIPLIER + parameters: + - '1073741824' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: oci.aut.db.metrics.storage.stats + tags: + - tag: component + value: storage + - uuid: 5cad114ed74341199a4d3ef17c9acd8e + name: 'Storage utilization, in %' + type: DEPENDENT + key: oci.aut.db.storage.space.util + delay: '0' + value_type: FLOAT + units: '%' + description: | + The percentage of the reserved maximum storage currently allocated for all database tablespaces. + Represents the total reserved space for all tablespaces. + preprocessing: + - type: JSONPATH + parameters: + - $.StorageUtilization + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: oci.aut.db.metrics.storage.stats + tags: + - tag: component + value: storage + triggers: + - uuid: 37bb41d830424ba2871e768957225add + expression: 'min(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.storage.space.util,5m) >= {$OCI.AUTONOMOUS.DB.STORAGE.UTIL.WARN}' + name: 'OCI Autonomous DB: Current storage utilization is high' + event_name: 'OCI Autonomous DB: Current storage utilization is high (util >= {$OCI.AUTONOMOUS.DB.STORAGE.UTIL.WARN}%)' + opdata: 'Current: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current storage utilization has exceeded `{$OCI.AUTONOMOUS.DB.STORAGE.UTIL.WARN}`% of the max available value.' + dependencies: + - name: 'OCI Autonomous DB: Current storage utilization is too high' + expression: 'min(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.storage.space.util,5m) >= {$OCI.AUTONOMOUS.DB.STORAGE.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 8e16451106094713abaa624967026dc3 + expression: 'min(/Oracle Cloud Autonomous Database by HTTP/oci.aut.db.storage.space.util,5m) >= {$OCI.AUTONOMOUS.DB.STORAGE.UTIL.HIGH}' + name: 'OCI Autonomous DB: Current storage utilization is too high' + event_name: 'OCI Autonomous DB: Current storage utilization is too high (util >= {$OCI.AUTONOMOUS.DB.STORAGE.UTIL.HIGH}%)' + opdata: 'Current: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current storage utilization has exceeded `{$OCI.AUTONOMOUS.DB.STORAGE.UTIL.HIGH}`% of the max available value.' + tags: + - tag: scope + value: capacity + - uuid: 3455978b6e2a4291984bf1e7c95551e1 + name: 'DB time' + type: DEPENDENT + key: oci.aut.db.time + delay: '0' + value_type: FLOAT + description: | + The amount of time database user sessions spend executing database code (CPU time + wait time). + Database time is used to infer database call latency as it increases in direct proportion + to both database call latency (response time) and call volume. + + It is calculated as the average rate of accumulation of database time by foreground sessions in + the database over the selected time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.DBTime + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 35995e92de8e45b0a8493bc285ccd0c8 + name: 'Transaction count' + type: DEPENDENT + key: oci.aut.db.transaction.count + delay: '0' + description: 'The combined number of user commits and user rollbacks during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.TransactionCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 3e1cd8b4c829451499d605512e1a1bf0 + name: 'User calls' + type: DEPENDENT + key: oci.aut.db.user.calls + delay: '0' + description: 'The combined number of logons, parses, and execute calls during the selected time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.UserCalls + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 0cda6a956ca1476da28083cfc6de8bcc + name: 'User commits' + type: DEPENDENT + key: oci.aut.db.user.commits + delay: '0' + description: | + The number of user commits during the selected time interval. + When a user commits a transaction, the generated redo that reflects the changes made to database + blocks must be written to disk. Commits often represent the closest thing to a user transaction rate. + preprocessing: + - type: JSONPATH + parameters: + - $.UserCommits + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 99292418f1764484b1cda27b70af84cc + name: 'User rollbacks' + type: DEPENDENT + key: oci.aut.db.user.rollbacks + delay: '0' + description: | + Number of times users manually issue the `ROLLBACK` statement or an error occurs during a user's + transactions during the selected time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.UserRollbacks + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + - uuid: 8f627c48a0a94e41ad1b66d7a4817898 + name: 'Wait time' + type: DEPENDENT + key: oci.aut.db.wait.time + delay: '0' + value_type: FLOAT + description: | + Average rate of accumulation of non-idle wait time by foreground sessions in the database over the selected + time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.WaitTime + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.aut.db.metrics.frequent.get + tags: + - tag: component + value: environment + tags: + - tag: class + value: cloud + - tag: target + value: oci + - tag: target + value: oracle-cloud-infrastructure + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Oracle Cloud Autonomous Database", e.g. {$HTTP.TLS.VERIFY:"Oracle Cloud Autonomous Database"}.' + - macro: '{$OCI.AUTONOMOUS.DB.CPU.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about CPU resource utilization.' + - macro: '{$OCI.AUTONOMOUS.DB.CPU.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about CPU resource utilization.' + - macro: '{$OCI.AUTONOMOUS.DB.STORAGE.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about storage resource utilization.' + - macro: '{$OCI.AUTONOMOUS.DB.STORAGE.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about storage resource utilization.' + - macro: '{$OCI.HTTP.PROXY}' + description: 'Set an HTTP proxy for OCI API requests if needed.' + - macro: '{$OCI.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + dashboards: + - uuid: 26fb1668002c42e2b311eaef5850f2ad + name: 'OCI Autonomous DB: Overview' + pages: + - name: Main + display_period: '30' + widgets: + - type: item + name: State + width: '27' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: 'Current State' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.state + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: graph + name: 'CPU utilization' + 'y': '4' + width: '21' + height: '7' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Storage stats' + x: '21' + 'y': '4' + width: '21' + height: '7' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Storage stats' + - type: STRING + name: reference + value: AAAAB + - type: item + name: Availability + x: '27' + width: '15' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: Availability + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.availability + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '20' + - type: item + name: 'Connection latency' + x: '42' + width: '30' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: INTEGER + name: decimal_size + value: '60' + - type: STRING + name: description + value: 'Connection latency' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_size + value: '30' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.latency.conn + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '40' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '60' + - type: gauge + name: 'CPU utilization' + x: '42' + 'y': '2' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: CPU + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 145C96 + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.cpu.util + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: Sessions + x: '42' + 'y': '5' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: Sessions + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sessions + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Running statements' + x: '42' + 'y': '8' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Running Statements' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.statements.running + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: 'Storage utilization' + x: '57' + 'y': '2' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: STRING + name: description + value: 'Storage Utilization' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 00701c + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.storage.space.util + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Execute count' + x: '57' + 'y': '5' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Execute Count' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.exec.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Queued statements' + x: '57' + 'y': '8' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Queued Statements' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.queued.statements + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - name: CPU + display_period: '30' + widgets: + - type: gauge + name: 'CPU utilization' + width: '36' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: CPU + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 145C96 + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.cpu.util + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'CPU utilization' + 'y': '3' + width: '36' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: CPU utilization' + - type: STRING + name: reference + value: ABAAA + - type: gauge + name: 'CPU time' + x: '36' + width: '36' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: 'CPU Time' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 145C96 + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.cpu.util + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'CPU time' + x: '36' + 'y': '3' + width: '36' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: CPU time' + - type: STRING + name: reference + value: ABAAB + - name: Storage + display_period: '30' + widgets: + - type: gauge + name: 'Storage utilization' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: STRING + name: description + value: 'Storage Utilization' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 00701c + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.storage.space.util + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Storage utilization' + 'y': '3' + width: '18' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Storage utilization' + - type: STRING + name: reference + value: ACAAA + - type: item + name: 'Max storage space' + x: '18' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Max storage space' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.storage.space.max + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Storage stats' + x: '18' + 'y': '3' + width: '54' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Storage stats' + - type: STRING + name: reference + value: ACAAB + - type: item + name: 'Allocated Storage Space' + x: '36' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Allocated Storage Space' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.storage.space.alloc + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Used storage space' + x: '54' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Used Storage Space' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.storage.space.used + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - name: Read/Writes + display_period: '30' + widgets: + - type: item + name: 'Physical reads' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Physical Reads' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.physical.reads + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: Read/writes + 'y': '3' + width: '27' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Physical reads/writes' + - type: STRING + name: reference + value: ADAAA + - type: item + name: 'Physical writes' + x: '15' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Physical Writes' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.physical.writes + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Physical read total bytes' + x: '27' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Physical Read Total Bytes' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.physical.read.bytes + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Physical total read/write bytes' + x: '27' + 'y': '3' + width: '27' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Physical read/write total bytes' + - type: STRING + name: reference + value: ADAAB + - type: item + name: 'Physical write total bytes' + x: '42' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Physical Write Total Bytes' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.physical.write.bytes + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Logical reads session' + x: '54' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Logical Reads Session' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.logical.reads.session + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Logical reads session' + x: '54' + 'y': '3' + width: '18' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Session logical reads' + - type: STRING + name: reference + value: ADAAC + - type: INTEGER + name: show_legend + value: '0' + - name: Sessions + display_period: '30' + widgets: + - type: item + name: Sessions + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: Sessions + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sessions + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Failed connections' + 'y': '3' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF0000 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Failed Connections' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.conn.failed + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Session stats' + 'y': '6' + width: '30' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Session stats' + - type: STRING + name: reference + value: AEAAA + - type: item + name: Logons + x: '15' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: Logons + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.logons + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Failed logons' + x: '15' + 'y': '3' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF0000 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Failed Logons' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.logons.failed + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Wait time' + x: '30' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Wait Time' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.wait.time + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Wait time' + x: '30' + 'y': '3' + width: '15' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Wait time' + - type: STRING + name: reference + value: AEAAB + - type: INTEGER + name: show_legend + value: '0' + - type: item + name: 'DB time' + x: '45' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'DB Time' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.time + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'DB time' + x: '45' + 'y': '3' + width: '15' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: DB time' + - type: STRING + name: reference + value: AEAAC + - type: INTEGER + name: show_legend + value: '0' + - type: item + name: 'Connection latency' + x: '60' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Connection Latency' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.latency.conn + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Connection latency' + x: '60' + 'y': '3' + width: '12' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Connection latency' + - type: STRING + name: reference + value: AEAAD + - type: INTEGER + name: show_legend + value: '0' + - name: Users + display_period: '30' + widgets: + - type: item + name: 'User calls' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'User Calls' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.user.calls + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'User calls' + 'y': '3' + width: '18' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: User calls' + - type: STRING + name: reference + value: AFAAA + - type: item + name: 'User commits' + x: '18' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'User Commits' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.user.commits + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'User commits' + x: '18' + 'y': '3' + width: '18' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: User commits' + - type: STRING + name: reference + value: AFAAB + - type: item + name: 'User rollbacks' + x: '36' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'User Rollbacks' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.user.rollbacks + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'User rollbacks' + x: '36' + 'y': '3' + width: '18' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: User rollbacks' + - type: STRING + name: reference + value: AFAAC + - type: item + name: 'Execute count' + x: '54' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Execute Count' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.exec.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Execute count' + x: '54' + 'y': '3' + width: '18' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Execute count' + - type: STRING + name: reference + value: AFAAD + - name: Parses + display_period: '30' + widgets: + - type: item + name: 'Parse count (hard)' + width: '24' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Parse Count (Hard)' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.parse.count.hard + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Parse count (hard)' + 'y': '3' + width: '24' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Parse count hard' + - type: STRING + name: reference + value: AGAAA + - type: item + name: 'Parse count (failures)' + x: '24' + width: '24' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Parse Count (Failures)' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.parse.count.failed + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Parse count (failures)' + x: '24' + 'y': '3' + width: '24' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Parse count failures' + - type: STRING + name: reference + value: AGAAB + - type: item + name: 'Parse count (total)' + x: '48' + width: '24' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Parse Count (Total)' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.parse.count.total + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Parse count (total)' + x: '48' + 'y': '3' + width: '24' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Parse count total' + - type: STRING + name: reference + value: AGAAC + - name: 'SQL*Net' + display_period: '30' + widgets: + - type: item + name: 'Bytes received from client' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Bytes Received From Client' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sqlnet.bytes.recv.client + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'SQL*Net client bytes' + 'y': '3' + width: '36' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: SQL*Net client bytes' + - type: STRING + name: reference + value: AHAAA + - type: item + name: 'Bytes sent to client' + x: '18' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Bytes Sent To Client' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sqlnet.bytes.sent.client + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Bytes received from DBLink' + x: '36' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Bytes Received From DBLink' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sqlnet.bytes.recv.dblink + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'SQL*Net DBLink bytes' + x: '36' + 'y': '3' + width: '36' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: SQL*Net DBLink bytes' + - type: STRING + name: reference + value: AHAAB + - type: item + name: 'Bytes sent to DBLink' + x: '54' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Bytes Sent To DBLink' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sqlnet.bytes.sent.dblink + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - name: 'DB Calls' + display_period: '30' + widgets: + - type: item + name: 'Query latency' + width: '21' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Query Latency' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.latency.query + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Query latency' + 'y': '3' + width: '21' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Query latency' + - type: STRING + name: reference + value: AIAAA + - type: item + name: 'Running statements' + x: '21' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Running Statements' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.statements.running + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: Statements + x: '21' + 'y': '3' + width: '36' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + name: 'OCI Autonomous DB: Statements' + - type: STRING + name: reference + value: AIAAB + - type: item + name: 'Queued statements' + x: '33' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Queued Statements' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.queued.statements + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Transaction count' + x: '45' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Transaction Count' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.transaction.count + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'DB block changes' + x: '57' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'DB Block Changes' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.block.changes + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Redo generated' + x: '57' + 'y': '3' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Redo Generated' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.redo.gen + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + valuemaps: + - uuid: e336c0d4e22f4f9f9c42d6de65fed068 + name: 'Autonomous database state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Provisioning + - value: '2' + newvalue: Available + - value: '3' + newvalue: Stopping + - value: '4' + newvalue: Stopped + - value: '5' + newvalue: Starting + - value: '6' + newvalue: Terminating + - value: '7' + newvalue: Terminated + - value: '8' + newvalue: 'Restore in progress' + - value: '9' + newvalue: 'Restore failed' + - value: '10' + newvalue: 'Backup in progress' + - value: '11' + newvalue: 'Scale in progress' + - value: '12' + newvalue: 'Available needs attention' + - value: '13' + newvalue: Updating + - value: '14' + newvalue: 'Maintenance in progress' + - value: '15' + newvalue: Restarting + - value: '16' + newvalue: Recreating + - value: '17' + newvalue: 'Role change in progress' + - value: '18' + newvalue: Upgrading + - value: '19' + newvalue: Unavailable + - value: '20' + newvalue: Inaccessible + - value: '21' + newvalue: Standby + - uuid: 3b30e8a71ef342e78f9f29243aafd992 + name: 'Database availability' + mappings: + - value: '0' + newvalue: Unavailable + - value: '1' + newvalue: Available + graphs: + - uuid: 97956d8f4b084cf38c8e46c842e806f5 + name: 'OCI Autonomous DB: Connection latency' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.latency.conn + - uuid: adcd338dbf2746c980929932575ed953 + name: 'OCI Autonomous DB: CPU time' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.cpu.time + - uuid: 1324dac0566447fa9ae3808fb79a65e1 + name: 'OCI Autonomous DB: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.cpu.util + - uuid: 14ffe3b6eb084fdeac6cbdefdb356a3b + name: 'OCI Autonomous DB: DB time' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.time + - uuid: 464902ef122a438bba519071f29df0c8 + name: 'OCI Autonomous DB: Execute count' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.exec.count + - uuid: a23cf1625b5d4f6c848a6f7236dbeb6b + name: 'OCI Autonomous DB: Parse count failures' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.parse.count.failed + - uuid: e13b6b26310d4954a2df15244a7b2de9 + name: 'OCI Autonomous DB: Parse count hard' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.parse.count.hard + - uuid: 75997227333c46de87199c0247d5bdb5 + name: 'OCI Autonomous DB: Parse count total' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.parse.count.total + - uuid: e160cc5a9e22404a91e2bdcc33e22108 + name: 'OCI Autonomous DB: Physical read/write total bytes' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.physical.read.bytes + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.physical.write.bytes + - uuid: 2def3ab2a81a4b6abfb2b209f134c1af + name: 'OCI Autonomous DB: Physical reads/writes' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.physical.reads + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.physical.writes + - uuid: fd5d001fb93a409db9ebfdc66d0a8861 + name: 'OCI Autonomous DB: Query latency' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.latency.query + - uuid: 71a7e76a9bc34cc58abd77ef76d9ed4a + name: 'OCI Autonomous DB: Session logical reads' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.logical.reads.session + - uuid: c03100979bbf485dbd5c36900ec73469 + name: 'OCI Autonomous DB: Session stats' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sessions + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.conn.failed + - sortorder: '2' + color: 00611C + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.logons + - sortorder: '3' + color: F7941D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.logons.failed + - uuid: e8f1cdda63e44ca9a5b73bbd8c55ffa0 + name: 'OCI Autonomous DB: SQL*Net client bytes' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sqlnet.bytes.recv.client + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sqlnet.bytes.sent.client + - uuid: c485b41073d341a98e5aa239fc7afd21 + name: 'OCI Autonomous DB: SQL*Net DBLink bytes' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sqlnet.bytes.recv.dblink + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.sqlnet.bytes.sent.dblink + - uuid: 8adb6f1a0b3242be8142fc62370db900 + name: 'OCI Autonomous DB: Statements' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.statements.running + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.queued.statements + - sortorder: '2' + color: 00611C + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.transaction.count + - uuid: 2579982f4501490283fe2cbcf90330f0 + name: 'OCI Autonomous DB: Storage stats' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.storage.space.max + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.storage.space.alloc + - sortorder: '2' + color: 00611C + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.storage.space.used + - uuid: d96a821b6e6e4557a40e87246d2ffdfe + name: 'OCI Autonomous DB: Storage utilization' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.storage.space.util + - uuid: 3040bdaf0f8c49a68b80dbe60f8f9c9a + name: 'OCI Autonomous DB: User calls' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.user.calls + - uuid: 2620ae19fd7243d2ac37daabf9dbce46 + name: 'OCI Autonomous DB: User commits' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.user.commits + - uuid: 1e5d6a326c7e45cb83f7689c9a4bfce1 + name: 'OCI Autonomous DB: User rollbacks' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.user.rollbacks + - uuid: 3d55d19a57b34764a5f5cdc364204849 + name: 'OCI Autonomous DB: Wait time' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Autonomous Database by HTTP' + key: oci.aut.db.wait.time diff --git a/Oracle_Cloud_Block_Volume_by_HTTP.yaml b/Oracle_Cloud_Block_Volume_by_HTTP.yaml new file mode 100644 index 0000000..fd9847d --- /dev/null +++ b/Oracle_Cloud_Block_Volume_by_HTTP.yaml @@ -0,0 +1,1114 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 8afa1796d280425b99c7ea36900dac24 + template: 'Oracle Cloud Block Volume by HTTP' + name: 'Oracle Cloud Block Volume by HTTP' + description: | + This template monitors Oracle Cloud Infrastructure (OCI) block volume resources. + + This template is not meant to be used independently, but together with Oracle Cloud by HTTP as a template for + LLD host prototypes. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: dc2887a2b954406db8588c0ead37411f + name: 'Volume guaranteed IOPS' + type: DEPENDENT + key: oci.block.volume.iops + delay: '0' + value_type: FLOAT + units: '!IOPS' + description: | + Rate of change for guaranteed IOPS per SLA. + Expressed as the average of guaranteed IOPS during a given time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeGuaranteedIOPS + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.block.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: 5c1d0fd1686e4c74b33dbe12956d7b7c + name: 'Get metrics' + type: SCRIPT + key: oci.block.volume.metrics.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + function buildMql(id, metrics, defaultStatistic, resourceType) { + resourceType = resourceType === '' || resourceType === undefined ? 'resourceId' : resourceType; + this.query = '[' + params['req_interval'] + 'm]{' + resourceType + '=' + id + '}.'; + + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + const metric = ((Array.isArray(metrics[i]) ? metrics[i] : [metrics[i], defaultStatistic])); + metrics[i] = [metric[0], this.query + metric[1]]; + } + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'volume_id', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Block volume', 'Get metrics', params); + + const metrics = [ + 'VolumeReadThroughput', + 'VolumeWriteThroughput', + 'VolumeReadOps', + 'VolumeWriteOps', + ['VolumeThrottledIOs', 'sum'], + 'VolumeGuaranteedVPUsPerGB', + 'VolumeGuaranteedIOPS', + 'VolumeGuaranteedThroughput' + ]; + buildMql(params['volume_id'], metrics, 'mean'); + + var result = {}; + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + result[metrics[i][0]] = oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), metrics[i][0] + metrics[i][1] + '()', 'oci_blockstore'), 'aggregatedDatapoints'); + } + return JSON.stringify(result); + description: 'Gets block volume metrics.' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: compartment_id + value: '{$OCI.VOLUME.BLOCK.COMPARTMENT.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '1' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Block Volume"}' + - name: user_ocid + value: '{$OCI.API.USER}' + - name: volume_id + value: '{$OCI.VOLUME.BLOCK.ID}' + tags: + - tag: component + value: raw + - uuid: 680f9e8c96d34c099533adc99c33a48f + name: 'Volume read throughput' + type: DEPENDENT + key: oci.block.volume.read + delay: '0' + value_type: FLOAT + units: Bps + description: 'Read throughput. Expressed as bytes read per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeReadThroughput + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.block.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: 6b8060ce122142968e73da9a3e0813a1 + name: 'Volume read operations' + type: DEPENDENT + key: oci.block.volume.read.ops + delay: '0' + value_type: FLOAT + units: '!reads' + description: 'Activity level from I/O reads. Expressed as reads per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeReadOps + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.block.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: 4fdab3067ada41219c8208862e7c8b14 + name: State + type: SCRIPT + key: oci.block.volume.state + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'volume_id', 'http_status_code'], params); + var oci = new OCI('Block volume', 'Get volume state', params); + + return oci.extractData('get', oci.executeRequest('get', '/20160918/volumes/' + encodeURIComponent(params['volume_id']), ''), 'lifecycleState'); + description: 'Gets the block volume state.' + valuemap: + name: 'Block volume state' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'PROVISIONING': 1, + 'RESTORING': 2, + 'AVAILABLE': 3, + 'TERMINATING': 4, + 'TERMINATED': 5, + 'FAULTY': 6 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.CORE.HOST}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Block Volume"}' + - name: user_ocid + value: '{$OCI.API.USER}' + - name: volume_id + value: '{$OCI.VOLUME.BLOCK.ID}' + tags: + - tag: component + value: storage + triggers: + - uuid: 4ea859d86e29455aa4bdd2f3667894f6 + expression: 'min(/Oracle Cloud Block Volume by HTTP/oci.block.volume.state,5m) = 0' + name: 'OCI Block Volume: Block volume state unknown' + priority: WARNING + description: 'Block volume state is unknown.' + dependencies: + - name: 'OCI Block Volume: Block volume terminated or faulty' + expression: 'min(/Oracle Cloud Block Volume by HTTP/oci.block.volume.state,5m) >= 4' + tags: + - tag: scope + value: availability + - uuid: b8d9491d762f40c58fb1094fa0468d9e + expression: 'min(/Oracle Cloud Block Volume by HTTP/oci.block.volume.state,5m) >= 4' + name: 'OCI Block Volume: Block volume terminated or faulty' + priority: HIGH + description: 'Block volume state is "terminated"/"terminating" or "faulty".' + tags: + - tag: scope + value: availability + - uuid: cc9ef37437b04a40a4b48a9f21e36ff1 + name: 'Volume throttled operations' + type: DEPENDENT + key: oci.block.volume.throttled.ops + delay: '0' + description: 'Total sum of all the I/O operations that were throttled during a given time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeThrottledIOs + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.block.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: d1b199adc996404db814ba7568b054df + name: 'Volume guaranteed throughput' + type: DEPENDENT + key: oci.block.volume.throughput + delay: '0' + value_type: FLOAT + units: Bps + description: 'Rate of change for guaranteed throughput per SLA. Expressed as megabytes per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeGuaranteedThroughput + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.block.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: 607f3c4a8197473bb1872e4ed45edd26 + name: 'Volume guaranteed VPUs/GB' + type: DEPENDENT + key: oci.block.volume.vpu + delay: '0' + value_type: FLOAT + units: '!VPUs' + description: | + Rate of change for currently active VPUs/GB. + Expressed as the average of active VPUs/GB during a given time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeGuaranteedVPUsPerGB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.block.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: 9ec2ce2d21154028a5623b5d0ac9c082 + name: 'Volume write throughput' + type: DEPENDENT + key: oci.block.volume.write + delay: '0' + value_type: FLOAT + units: Bps + description: 'Write throughput. Expressed as bytes read per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeWriteThroughput + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.block.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: e55fee2db439493992a80e39ca647e9a + name: 'Volume write operations' + type: DEPENDENT + key: oci.block.volume.write.ops + delay: '0' + value_type: FLOAT + units: '!writes' + description: 'Activity level from I/O writes. Expressed as writes per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeWriteOps + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.block.volume.metrics.get + tags: + - tag: component + value: storage + tags: + - tag: class + value: cloud + - tag: target + value: oci + - tag: target + value: oracle-cloud-infrastructure + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Oracle Cloud Block Volume", e.g. {$HTTP.TLS.VERIFY:"Oracle Cloud Block Volume"}.' + - macro: '{$OCI.HTTP.PROXY}' + description: 'Set an HTTP proxy for OCI API requests if needed.' + - macro: '{$OCI.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + dashboards: + - uuid: f87041e2902c4286a648b0f53daee03f + name: 'OCI Block Volume: Overview' + pages: + - name: Overview + display_period: '30' + widgets: + - type: item + name: Availability + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.state + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Volume read operations' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Volume Read Operations' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.read.ops + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: Operations + 'y': '6' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Block Volume by HTTP' + name: 'OCI Block Volume: Operations' + - type: STRING + name: reference + value: AAAAA + - type: item + name: 'Volume write operations' + x: '18' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Volume Write Operations' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.write.ops + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Guaranteed IOPS' + x: '27' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Guaranteed IOPS' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.iops + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Volume read throughput' + x: '36' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Volume Read Throughput' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.read + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: Throughput + x: '36' + 'y': '6' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Block Volume by HTTP' + name: 'OCI Block Volume: Throughput' + - type: STRING + name: reference + value: AAAAB + - type: item + name: 'Guaranteed throughput' + x: '42' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Guaranteed Throughput' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.throughput + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Volume write throughput' + x: '54' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Volume Write Throughput' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.write + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Guaranteed VPUs/GB' + x: '57' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Guaranteed VPUs/GB' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.vpu + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + valuemaps: + - uuid: 780a56fd95474839943cbd2f8be2fc18 + name: 'Block volume state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Provisioning + - value: '2' + newvalue: Restoring + - value: '3' + newvalue: Available + - value: '4' + newvalue: Terminating + - value: '5' + newvalue: Terminated + - value: '6' + newvalue: Faulty + graphs: + - uuid: 68f6c72e67f947b29f879b89a205d59c + name: 'OCI Block Volume: Operations' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.read.ops + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.write.ops + - sortorder: '2' + color: 00611C + item: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.throttled.ops + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.iops + - uuid: 16076dfa25244b5093e8985ca2e3f18c + name: 'OCI Block Volume: Throughput' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.read + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.write + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.throughput + - uuid: 6078da9c1eb249548536663e57e7743c + name: 'OCI Block Volume: VPUs/GB' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Block Volume by HTTP' + key: oci.block.volume.vpu diff --git a/Oracle_Cloud_Boot_Volume_by_HTTP.yaml b/Oracle_Cloud_Boot_Volume_by_HTTP.yaml new file mode 100644 index 0000000..e02f28a --- /dev/null +++ b/Oracle_Cloud_Boot_Volume_by_HTTP.yaml @@ -0,0 +1,1115 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: e5486d98ff414c1391de1bd369a7f9db + template: 'Oracle Cloud Boot Volume by HTTP' + name: 'Oracle Cloud Boot Volume by HTTP' + description: | + Monitor Oracle Cloud Infrastructure (OCI) boot volume. + + This template is not meant to be used independently, but instead with Oracle Cloud by HTTP as a template for + LLD host prototypes. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: c629f4e4424b48288b7e7058eef2ca92 + name: 'Volume guaranteed IOPS' + type: DEPENDENT + key: oci.boot.volume.iops + delay: '0' + value_type: FLOAT + units: '!IOPS' + description: | + Rate of change for guaranteed IOPS per SLA. + Expressed as the average of guaranteed IOPS during a given time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeGuaranteedIOPS + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.boot.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: 388e89b8e68149438d714237e785ccde + name: 'Get metrics' + type: SCRIPT + key: oci.boot.volume.metrics.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + function buildMql(id, metrics, defaultStatistic, resourceType) { + resourceType = resourceType === '' || resourceType === undefined ? 'resourceId' : resourceType; + this.query = '[' + params['req_interval'] + 'm]{' + resourceType + '=' + id + '}.'; + + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + const metric = ((Array.isArray(metrics[i]) ? metrics[i] : [metrics[i], defaultStatistic])); + metrics[i] = [metric[0], this.query + metric[1]]; + } + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'volume_id', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Boot volume', 'Get metrics', params); + + const metrics = [ + 'VolumeReadThroughput', + 'VolumeWriteThroughput', + 'VolumeReadOps', + 'VolumeWriteOps', + ['VolumeThrottledIOs', 'sum'], + 'VolumeGuaranteedVPUsPerGB', + 'VolumeGuaranteedIOPS', + 'VolumeGuaranteedThroughput' + ]; + buildMql(params['volume_id'], metrics, 'mean'); + + var result = {}; + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + result[metrics[i][0]] = oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), metrics[i][0] + metrics[i][1] + '()', 'oci_blockstore'), 'aggregatedDatapoints'); + } + return JSON.stringify(result); + description: 'Gets boot volume metrics.' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: compartment_id + value: '{$OCI.VOLUME.BOOT.COMPARTMENT.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '1' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Boot Volume"}' + - name: user_ocid + value: '{$OCI.API.USER}' + - name: volume_id + value: '{$OCI.VOLUME.BOOT.ID}' + tags: + - tag: component + value: raw + - uuid: 01700702f306414892828674c0046e5c + name: 'Volume read throughput' + type: DEPENDENT + key: oci.boot.volume.read + delay: '0' + value_type: FLOAT + units: Bps + description: 'Read throughput. Expressed as bytes read per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeReadThroughput + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.boot.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: b004ee7931dd4eccbfc89d3a8c363209 + name: 'Volume read operations' + type: DEPENDENT + key: oci.boot.volume.read.ops + delay: '0' + value_type: FLOAT + units: '!reads' + description: 'Activity level from I/O reads. Expressed as reads per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeReadOps + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.boot.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: 3f0e4bed1fd14293b40b23595f01ebb1 + name: State + type: SCRIPT + key: oci.boot.volume.state + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'volume_id', 'http_status_code'], params); + var oci = new OCI('Boot volume', 'Get volume state', params); + + return oci.extractData('get', oci.executeRequest('get', '/20160918/bootVolumes/' + encodeURIComponent(params['volume_id']), ''), 'lifecycleState'); + description: 'Gets the boot volume state.' + valuemap: + name: 'Boot volume state' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'PROVISIONING': 1, + 'RESTORING': 2, + 'AVAILABLE': 3, + 'TERMINATING': 4, + 'TERMINATED': 5, + 'FAULTY': 6 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.CORE.HOST}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Boot Volume"}' + - name: user_ocid + value: '{$OCI.API.USER}' + - name: volume_id + value: '{$OCI.VOLUME.BOOT.ID}' + tags: + - tag: component + value: storage + triggers: + - uuid: b31f698c5b164afc85a14acc813f463d + expression: 'min(/Oracle Cloud Boot Volume by HTTP/oci.boot.volume.state,5m) = 0' + name: 'OCI Boot Volume: Boot volume state unknown' + priority: WARNING + description: 'Boot volume state is unknown.' + dependencies: + - name: 'OCI Boot Volume: Boot volume terminated or faulty' + expression: 'min(/Oracle Cloud Boot Volume by HTTP/oci.boot.volume.state,5m) >= 4' + tags: + - tag: scope + value: availability + - uuid: 6525eef6dd6c4cb0a22a6442773c3cfa + expression: 'min(/Oracle Cloud Boot Volume by HTTP/oci.boot.volume.state,5m) >= 4' + name: 'OCI Boot Volume: Boot volume terminated or faulty' + priority: HIGH + description: 'Boot volume state is "terminated"/"terminating" or "faulty".' + tags: + - tag: scope + value: availability + - uuid: cfdc208b621b46508f9addc7ddb0808c + name: 'Volume throttled operations' + type: DEPENDENT + key: oci.boot.volume.throttled.ops + delay: '0' + value_type: FLOAT + description: 'Total sum of all the I/O operations that were throttled during a given time interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeThrottledIOs + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.boot.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: 09bc5d7c95fe4b41bed9d786b78eba88 + name: 'Volume guaranteed throughput' + type: DEPENDENT + key: oci.boot.volume.throughput + delay: '0' + value_type: FLOAT + units: Bps + description: 'Rate of change for guaranteed throughput per SLA. Expressed as megabytes per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeGuaranteedThroughput + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.boot.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: a3e5f888d2c84d7eb105f1061b9fadd1 + name: 'Volume guaranteed VPUs/GB' + type: DEPENDENT + key: oci.boot.volume.vpu + delay: '0' + value_type: FLOAT + units: '!VPUs' + description: | + Rate of change for currently active VPUs/GB. + Expressed as the average of active VPUs/GB during a given time interval. + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeGuaranteedVPUsPerGB + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.boot.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: a92206102a7a45d7b5c46096486465b6 + name: 'Volume write throughput' + type: DEPENDENT + key: oci.boot.volume.write + delay: '0' + value_type: FLOAT + units: Bps + description: 'Write throughput. Expressed as bytes read per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeWriteThroughput + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.boot.volume.metrics.get + tags: + - tag: component + value: storage + - uuid: 724197c8dcfe4c3ea52bc25d99de727c + name: 'Volume write operations' + type: DEPENDENT + key: oci.boot.volume.write.ops + delay: '0' + value_type: FLOAT + units: '!writes' + description: 'Activity level from I/O writes. Expressed as writes per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.VolumeWriteOps + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.boot.volume.metrics.get + tags: + - tag: component + value: storage + tags: + - tag: class + value: cloud + - tag: target + value: oci + - tag: target + value: oracle-cloud-infrastructure + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Oracle Cloud Boot Volume", e.g. {$HTTP.TLS.VERIFY:"Oracle Cloud Boot Volume"}.' + - macro: '{$OCI.HTTP.PROXY}' + description: 'Set an HTTP proxy for OCI API requests if needed.' + - macro: '{$OCI.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + dashboards: + - uuid: 67db0d25f18a45b4913a15ab2618608c + name: 'OCI Boot Volume: Overview' + pages: + - name: Overview + display_period: '30' + widgets: + - type: item + name: Availability + width: '27' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.state + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Volume read operations' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Volume Read Operations' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.read.ops + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: Operations + 'y': '6' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Boot Volume by HTTP' + name: 'OCI Boot Volume: Operations' + - type: STRING + name: reference + value: AAAAA + - type: item + name: 'Volume write operations' + x: '18' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Volume Write Operations' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.write.ops + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Guaranteed IOPS' + x: '27' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Guaranteed IOPS' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.iops + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Volume read throughput' + x: '36' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Volume Read Throughput' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.read + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: Throughput + x: '36' + 'y': '6' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Boot Volume by HTTP' + name: 'OCI Boot Volume: Throughput' + - type: STRING + name: reference + value: AAAAB + - type: item + name: 'Guaranteed throughput' + x: '42' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Guaranteed Throughput' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.throughput + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Volume write throughput' + x: '54' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Volume Write Throughput' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.write + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Guaranteed VPUs/GB' + x: '57' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Guaranteed VPUs/GB' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.vpu + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + valuemaps: + - uuid: d881a2a2bedc4556a36f3d676ece0456 + name: 'Boot volume state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Provisioning + - value: '2' + newvalue: Restoring + - value: '3' + newvalue: Available + - value: '4' + newvalue: Terminating + - value: '5' + newvalue: Terminated + - value: '6' + newvalue: Faulty + graphs: + - uuid: 265e1b5e20084bfb9ab272996915b45d + name: 'OCI Boot Volume: Operations' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.read.ops + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.write.ops + - sortorder: '2' + color: 00611C + item: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.throttled.ops + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.iops + - uuid: 7e8aa92414d5431f80fdb1d1981d25f9 + name: 'OCI Boot Volume: Throughput' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.read + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.write + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.throughput + - uuid: fdfb060d0823480abe77581503f82a96 + name: 'OCI Boot Volume: VPUs/GB' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Boot Volume by HTTP' + key: oci.boot.volume.vpu diff --git a/Oracle_Cloud_Compute_by_HTTP.yaml b/Oracle_Cloud_Compute_by_HTTP.yaml new file mode 100644 index 0000000..932e642 --- /dev/null +++ b/Oracle_Cloud_Compute_by_HTTP.yaml @@ -0,0 +1,3443 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: e6b0aada359944d09ee4bd46c1a55587 + template: 'Oracle Cloud Compute by HTTP' + name: 'Oracle Cloud Compute by HTTP' + description: | + This template monitors Oracle Cloud Infrastructure (OCI) single compute instance resources and discovers attached + virtual network interface cards (VNICs) and monitors their resources. + + This template is not meant to be used independently, but together with Oracle Cloud by HTTP as a template for + LLD host prototypes. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Cloud + items: + - uuid: 657ad1d54de4454696573418f5f17f11 + name: 'Get instance availability' + type: SCRIPT + key: oci.compute.availability.get + delay: 5m + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'instance_id', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Compute', 'Get health', params); + const mql = 'InstanceAccessibilityStatus[' + params['req_interval'] + 'm]{resourceId=' + params['instance_id'] + '}.max()'; + + return JSON.stringify(oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), mql, 'oci_compute_instance_health'), 'aggregatedDatapoints')); + description: | + The accessibility status of a virtual machine instance. + A value of "1" indicates that the instance is unresponsive due to an issue with + the infrastructure or the instance itself. + A value of "0" indicates that an accessibility issue has not been detected. + If the instance is stopped, then the metric does not have a value. + valuemap: + name: 'Compute instance availability' + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: compartment_id + value: '{$OCI.COMPUTE.COMPARTMENT.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: instance_id + value: '{$OCI.COMPUTE.INSTANCE.ID}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '5' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Compute"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: environment + triggers: + - uuid: dbaee26c1de544d08fa6dd76ddc4c06a + expression: 'last(/Oracle Cloud Compute by HTTP/oci.compute.availability.get) = 1' + name: 'OCI Compute: Compute instance is not available' + priority: HIGH + description: 'Current instance availability.' + tags: + - tag: scope + value: availability + - uuid: 04a1f534ae844021be0935abf1214951 + name: 'CPU utilization, in %' + type: DEPENDENT + key: oci.compute.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'Activity level from the CPU. Expressed as a percentage of the total time.' + preprocessing: + - type: JSONPATH + parameters: + - $.CpuUtilization + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.metrics.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 38987527713b404f842e26ad12ce3015 + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.cpu.util,5m) >= {$OCI.COMPUTE.CPU.UTIL.WARN}' + name: 'OCI Compute: Current CPU utilization is high' + event_name: 'OCI Compute: Current CPU utilization is high (util >= {$OCI.COMPUTE.CPU.UTIL.WARN}%)' + opdata: 'Current: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current CPU utilization has exceeded `{$OCI.COMPUTE.CPU.UTIL.WARN}`% of the max available value.' + dependencies: + - name: 'OCI Compute: Current CPU utilization is too high' + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.cpu.util,5m) >= {$OCI.COMPUTE.CPU.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 082ba105bf614996a68054ad8c7d7101 + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.cpu.util,5m) >= {$OCI.COMPUTE.CPU.UTIL.HIGH}' + name: 'OCI Compute: Current CPU utilization is too high' + event_name: 'OCI Compute: Current CPU utilization is too high (util >= {$OCI.COMPUTE.CPU.UTIL.HIGH}%)' + opdata: 'Current: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current CPU utilization has exceeded `{$OCI.COMPUTE.CPU.UTIL.HIGH}`% of the max available value.' + tags: + - tag: scope + value: capacity + - uuid: 670783a729a647db9349d78ac61f1d94 + name: 'Disk read I/O' + type: DEPENDENT + key: oci.compute.disk.io.read + delay: '0' + value_type: FLOAT + units: '!reads/s' + description: 'Activity level from I/O reads. Expressed as reads per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.DiskIopsRead + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.metrics.get + tags: + - tag: component + value: storage + - uuid: cbd32ebd403c48b2b2f9815f13407afe + name: 'Disk write I/O' + type: DEPENDENT + key: oci.compute.disk.io.write + delay: '0' + value_type: FLOAT + units: '!writes/s' + description: 'Activity level from I/O writes. Expressed as writes per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.DiskIopsWritten + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.metrics.get + tags: + - tag: component + value: storage + - uuid: 15d234ef381747bfb76e7ccf9169046d + name: 'Disk bytes read' + type: DEPENDENT + key: oci.compute.disk.read + delay: '0' + value_type: FLOAT + units: Bps + description: 'Read throughput. Expressed as bytes read per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.DiskBytesRead + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.metrics.get + tags: + - tag: component + value: storage + - uuid: c7e061599b474ac49082d28572ab74c6 + name: 'Disk bytes written' + type: DEPENDENT + key: oci.compute.disk.written + delay: '0' + value_type: FLOAT + units: Bps + description: 'Write throughput. Expressed as bytes written per interval.' + preprocessing: + - type: JSONPATH + parameters: + - $.DiskBytesWritten + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.metrics.get + tags: + - tag: component + value: storage + - uuid: 75308c4fb9bd4bad8fbb80aa9b62b099 + name: 'Load average' + type: DEPENDENT + key: oci.compute.load.avg + delay: '0' + value_type: FLOAT + units: '!processes' + description: 'Average system load calculated over a 1-minute period. Expressed as a number of processes.' + preprocessing: + - type: JSONPATH + parameters: + - $.LoadAverage + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.metrics.get + tags: + - tag: component + value: environment + - uuid: 610796958f694aa99f3e9ea1082972bf + name: 'Memory allocation stalls' + type: DEPENDENT + key: oci.compute.mem.stalls + delay: '0' + value_type: FLOAT + units: '!stalls' + description: 'Number of times page reclaim was called directly.' + preprocessing: + - type: JSONPATH + parameters: + - $.MemoryAllocationStalls + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.metrics.get + tags: + - tag: component + value: memory + - uuid: ef284ac17689442e835b686126161bc5 + name: 'Memory utilization, in %' + type: DEPENDENT + key: oci.compute.mem.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'Space currently in use, measured in pages. Expressed as a percentage of used pages.' + preprocessing: + - type: JSONPATH + parameters: + - $.MemoryUtilization + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.metrics.get + tags: + - tag: component + value: memory + triggers: + - uuid: 9baaacf70a4446a7ae816afdc4db0ae8 + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.mem.util,5m) >= {$OCI.COMPUTE.MEM.UTIL.WARN}' + name: 'OCI Compute: Current memory utilization is high' + event_name: 'OCI Compute: Current memory utilization is high (util >= {$OCI.COMPUTE.MEM.UTIL.WARN}%)' + opdata: 'Current: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current memory utilization has exceeded `{$OCI.COMPUTE.MEM.UTIL.WARN}`% of the max available value.' + dependencies: + - name: 'OCI Compute: Current memory utilization is too high' + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.mem.util,5m) >= {$OCI.COMPUTE.MEM.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 3b894aa250f04ebdb63fb8a914fbd72a + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.mem.util,5m) >= {$OCI.COMPUTE.MEM.UTIL.HIGH}' + name: 'OCI Compute: Current memory utilization is too high' + event_name: 'OCI Compute: Current memory utilization is too high (util >= {$OCI.COMPUTE.MEM.UTIL.HIGH}%)' + opdata: 'Current: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current memory utilization has exceeded `{$OCI.COMPUTE.MEM.UTIL.HIGH}`% of the max available value.' + tags: + - tag: scope + value: capacity + - uuid: 65ff665a67374bb082f260ca473dfb1b + name: 'Get compute metrics' + type: SCRIPT + key: oci.compute.metrics.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + function buildMql(id, metrics, defaultStatistic, resourceType) { + resourceType = resourceType === '' || resourceType === undefined ? 'resourceId' : resourceType; + this.query = '[' + params['req_interval'] + 'm]{' + resourceType + '=' + id + '}.'; + + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + const metric = ((Array.isArray(metrics[i]) ? metrics[i] : [metrics[i], defaultStatistic])); + metrics[i] = [metric[0], this.query + metric[1]]; + } + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'instance_id', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Compute', 'Get metrics', params); + + const metrics = [ + ['CpuUtilization', 'mean'], + ['MemoryUtilization', 'mean'], + ['LoadAverage', 'mean'], + ['MemoryAllocationStalls', 'mean'], + 'DiskBytesRead', + 'DiskBytesWritten', + 'DiskIopsRead', + 'DiskIopsWritten', + 'NetworksBytesIn', + 'NetworksBytesOut' + ]; + buildMql(params['instance_id'], metrics, 'rate'); + + var result = {}; + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + result[metrics[i][0]] = oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), metrics[i][0] + metrics[i][1] + '()', 'oci_computeagent'), 'aggregatedDatapoints'); + } + return JSON.stringify(result); + description: 'Gets compute instance metrics.' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: compartment_id + value: '{$OCI.COMPUTE.COMPARTMENT.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: instance_id + value: '{$OCI.COMPUTE.INSTANCE.ID}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '1' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Compute"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: raw + - uuid: 0c910a86a99b47f08dee930f07422f45 + name: 'Network bytes in' + type: DEPENDENT + key: oci.compute.network.in + delay: '0' + value_type: FLOAT + units: Bps + description: 'Network bytes in for the compute instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.NetworksBytesIn + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.metrics.get + tags: + - tag: component + value: network + - uuid: a7a027ae583740e19e5f6288b3f15d10 + name: 'Network bytes out' + type: DEPENDENT + key: oci.compute.network.out + delay: '0' + value_type: FLOAT + units: Bps + description: 'Network bytes out for the compute instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.NetworksBytesOut + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.metrics.get + tags: + - tag: component + value: network + - uuid: 3c4a11c3c8fe40fca36635e2a6882816 + name: State + type: SCRIPT + key: oci.compute.state.get + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'instance_id', 'http_status_code'], params); + var oci = new OCI('Compute', 'Get state', params); + + return oci.extractData('get', oci.executeRequest('get', '/20160918/instances/' + encodeURIComponent(params['instance_id']), ''), 'lifecycleState'); + description: 'The current state of the instance.' + valuemap: + name: 'Compute instance state' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'MOVING': 1, + 'PROVISIONING': 2, + 'RUNNING': 3, + 'STARTING': 4, + 'STOPPING': 5, + 'STOPPED': 6, + 'CREATING_IMAGE': 7, + 'TERMINATING': 8, + 'TERMINATED': 9 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.CORE.HOST}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: instance_id + value: '{$OCI.COMPUTE.INSTANCE.ID}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Compute"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: environment + triggers: + - uuid: 2bce7c23998f4331a5eca3507fc671d9 + expression: 'last(/Oracle Cloud Compute by HTTP/oci.compute.state.get,#1)<>last(/Oracle Cloud Compute by HTTP/oci.compute.state.get,#2)' + name: 'OCI Compute: State has changed' + event_name: 'OCI Compute: State has changed (new state: {ITEM.VALUE})' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: INFO + description: 'Compute instance state has changed.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c0e74098afb14984af6355ac0711662e + name: 'Get VNICs' + type: SCRIPT + key: oci.compute.vnic.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'instance_id', 'availability_domain', 'http_status_code', 'compartment_id'], params); + var oci = new OCI('Compute', 'Get VNICs', params); + + return JSON.stringify(oci.extractData('get', oci.executeRequest('get', '/20160918/vnicAttachments', '?compartmentId=' + encodeURIComponent(params['compartment_id']) + '&availabilityDomain=' + encodeURIComponent(params['availability_domain']) + '&instanceId=' + encodeURIComponent(params['instance_id'])), ['vnicId', 'displayName', 'lifecycleState'])); + description: 'Gets information about all virtual network interface cards attached to the instance.' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.CORE.HOST}' + - name: availability_domain + value: '{$OCI.COMPUTE.AVAILABILITY.DOMAIN}' + - name: compartment_id + value: '{$OCI.COMPUTE.COMPARTMENT.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: instance_id + value: '{$OCI.COMPUTE.INSTANCE.ID}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Compute"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 4f4a058b2a0b4bddb4ddbdb7613934af + name: 'VNIC discovery' + type: DEPENDENT + key: oci.compute.vnic.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$OCI.COMPUTE.VNIC.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$OCI.COMPUTE.VNIC.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STATE}' + value: '{$OCI.COMPUTE.VNIC.DISCOVERY.STATE.MATCHES}' + formulaid: C + - macro: '{#STATE}' + value: '{$OCI.COMPUTE.VNIC.DISCOVERY.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discover compute instance VNICs.' + item_prototypes: + - uuid: 45fc4a9241f147c88e45352ac0f5018d + name: 'VNIC [{#NAME}]: Attachment state' + type: DEPENDENT + key: 'oci.compute.vnic.attachment[{#ID}]' + delay: '0' + description: 'Current attachment state of the VNIC.' + valuemap: + name: 'VNIC attachment state' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.id == ''{#ID}'')].state.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'ATTACHING': 1, + 'ATTACHED': 2, + 'DETACHING': 3, + 'DETACHED': 4 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.compute.vnic.get + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + trigger_prototypes: + - uuid: 7176da6364464cfcacadfcfe7e81fdb3 + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.vnic.attachment[{#ID}],5m) >= 3' + name: 'OCI Compute: VNIC [{#NAME}]: VNIC is not attached' + priority: HIGH + description: 'Virtual network interface card attachment status.' + tags: + - tag: scope + value: availability + - uuid: a9f4e55f3dd848b8bf0c861c81c2690a + name: 'VNIC [{#NAME}]: Egress packets dropped by security list' + type: DEPENDENT + key: 'oci.compute.vnic.egress.packets.dropped[{#ID}]' + delay: '0' + units: '!packets' + description: 'Packets sent by the VNIC, destined for the network, dropped due to security rule violations.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicEgressDropsSecurityList + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: 0ac50b3b570a470ca301185489c4d2a4 + name: 'VNIC [{#NAME}]: Smartnic buffer drops from host' + type: DEPENDENT + key: 'oci.compute.vnic.host.smartnic.drops[{#ID}]' + delay: '0' + units: '!packets' + description: | + Number of packets dropped in SmartNIC from the host due to buffer exhaustion. + This metric is available only for Bare Metal Instances. For virtual machines, these metric values are zero. + preprocessing: + - type: JSONPATH + parameters: + - $.SmartnicBufferDropsFromHost + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: 86258bd1db6a46c9862f175acac2daf2 + name: 'VNIC [{#NAME}]: Ingress packets dropped by security list' + type: DEPENDENT + key: 'oci.compute.vnic.ingress.packets.dropped[{#ID}]' + delay: '0' + units: '!packets' + description: 'Packets received from the network, destined for the VNIC, dropped due to security rule violations.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicIngressDropsSecurityList + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: eb79782153524452ba4ba8506fb207a5 + name: 'VNIC [{#NAME}]: Get metrics' + type: SCRIPT + key: 'oci.compute.vnic.metrics.get[{#ID}]' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + function buildMql(id, metrics, defaultStatistic, resourceType) { + resourceType = resourceType === '' || resourceType === undefined ? 'resourceId' : resourceType; + this.query = '[' + params['req_interval'] + 'm]{' + resourceType + '=' + id + '}.'; + + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + const metric = ((Array.isArray(metrics[i]) ? metrics[i] : [metrics[i], defaultStatistic])); + metrics[i] = [metric[0], this.query + metric[1]]; + } + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'vnic_id', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Compute - VNIC', 'Get metrics', params); + + const metrics = [ + 'VnicEgressDropsSecurityList', + 'VnicIngressDropsSecurityList', + 'VnicFromNetworkBytes', + 'VnicFromNetworkPackets', + 'VnicToNetworkBytes', + 'VnicToNetworkPackets', + 'VnicIngressDropsThrottle', + 'VnicEgressDropsThrottle', + 'VnicIngressDropsConntrackFull', + 'VnicEgressDropsConntrackFull', + 'VnicConntrackUtilPercent', + ['VnicConntrackIsFull', 'last'], + 'SmartnicBufferDropsFromNetwork', + 'SmartnicBufferDropsFromHost' + ]; + buildMql(params['vnic_id'], metrics, 'sum'); + + var result = {}; + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + result[metrics[i][0]] = oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), metrics[i][0] + metrics[i][1] + '()', 'oci_vcn'), 'aggregatedDatapoints'); + } + return JSON.stringify(result); + description: 'Gets virtual network interface card metrics.' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: compartment_id + value: '{$OCI.COMPUTE.COMPARTMENT.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '1' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Compute"}' + - name: user_ocid + value: '{$OCI.API.USER}' + - name: vnic_id + value: '{#ID}' + tags: + - tag: component + value: raw + - uuid: e083fab486984a1d8c0947924e2e6c60 + name: 'VNIC [{#NAME}]: Bytes to network' + type: DEPENDENT + key: 'oci.compute.vnic.net.bytes.egr[{#ID}]' + delay: '0' + units: B + description: 'Bytes sent from the VNIC to the network, before drops.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicToNetworkBytes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: 09b608c006b34276b34356802f755ce7 + name: 'VNIC [{#NAME}]: Bytes from network' + type: DEPENDENT + key: 'oci.compute.vnic.net.bytes.ingr[{#ID}]' + delay: '0' + units: B + description: 'Bytes received at the VNIC from the network, after drops.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicFromNetworkBytes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: 9e4d0babdaad4f7291974881d88fa991 + name: 'VNIC [{#NAME}]: Connection tracking table full' + type: DEPENDENT + key: 'oci.compute.vnic.net.conntrack.full[{#ID}]' + delay: '0' + description: 'Boolean (0/false, 1/true) that indicates the connection tracking table is full.' + valuemap: + name: 'Generic Bool' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicConntrackIsFull + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + trigger_prototypes: + - uuid: 4faafcd1719745749ae1e3b2c58a09d0 + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.vnic.net.conntrack.full[{#ID}],5m) = 1' + name: 'OCI Compute: VNIC [{#NAME}]: Conntrack table full' + priority: HIGH + description: 'Virtual network interface card connection tracking table is full.' + tags: + - tag: scope + value: availability + - uuid: 088fc9f8d317402099ed0cda9dffb525 + name: 'VNIC [{#NAME}]: Connection tracking table utilization, in %' + type: DEPENDENT + key: 'oci.compute.vnic.net.conntrack.util[{#ID}]' + delay: '0' + units: '%' + description: 'Total utilization percentage (0-100%) of the connection tracking table.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicConntrackUtilPercent + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + trigger_prototypes: + - uuid: c2fd382491624a74b2956be3dad187ea + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.vnic.net.conntrack.util[{#ID}],5m) >= {$OCI.COMPUTE.VNIC.CONNTRACK.UTIL.WARN}' + name: 'OCI Compute: VNIC [{#NAME}]: Current conntrack table utilization is high' + event_name: 'OCI Compute: VNIC [{#NAME}]: Current conntrack table utilization is high (util >= {$OCI.COMPUTE.VNIC.CONNTRACK.UTIL.WARN}%)' + opdata: 'Current: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Current conntrack table utilization has exceeded `{$OCI.COMPUTE.VNIC.CONNTRACK.UTIL.WARN}`% of the max available value.' + dependencies: + - name: 'OCI Compute: VNIC [{#NAME}]: Current conntrack table utilization is too high' + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.vnic.net.conntrack.util[{#ID}],5m) >= {$OCI.COMPUTE.VNIC.CONNTRACK.UTIL.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: cf98ffe12a2b413c9b1384e9ec167cbd + expression: 'min(/Oracle Cloud Compute by HTTP/oci.compute.vnic.net.conntrack.util[{#ID}],5m) >= {$OCI.COMPUTE.VNIC.CONNTRACK.UTIL.HIGH}' + name: 'OCI Compute: VNIC [{#NAME}]: Current conntrack table utilization is too high' + event_name: 'OCI Compute: VNIC [{#NAME}]: Current conntrack table utilization is too high (util >= {$OCI.COMPUTE.VNIC.CONNTRACK.UTIL.HIGH}%)' + opdata: 'Current: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Current conntrack table utilization has exceeded `{$OCI.COMPUTE.VNIC.CONNTRACK.UTIL.HIGH}`% of the max available value.' + tags: + - tag: scope + value: capacity + - uuid: 23be348ca25948468df11644a5f51d0d + name: 'VNIC [{#NAME}]: Egress packets dropped by full connection tracking table' + type: DEPENDENT + key: 'oci.compute.vnic.net.packets.egr.drop[{#ID}]' + delay: '0' + units: '!packets' + description: 'Packets sent from the VNIC, destined for the network, dropped due to the full connection tracking table.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicEgressDropsConntrackFull + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: bfa72f1cfc294d2b819cea22dbe7ddd8 + name: 'VNIC [{#NAME}]: Throttled egress packets' + type: DEPENDENT + key: 'oci.compute.vnic.net.packets.egr.throttled[{#ID}]' + delay: '0' + units: '!packets' + description: 'Packets sent from the VNIC, destined for the network, dropped due to throttling.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicEgressDropsThrottle + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: 06cee1bacd744926ac61f72cd8ba3ae5 + name: 'VNIC [{#NAME}]: Packets to network' + type: DEPENDENT + key: 'oci.compute.vnic.net.packets.egr[{#ID}]' + delay: '0' + units: '!packets' + description: 'Packets sent from the VNIC to the network, before drops.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicToNetworkPackets + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: 2564ee2fa8bd4d5f9859506c1486f45f + name: 'VNIC [{#NAME}]: Ingress packets dropped by full connection tracking table' + type: DEPENDENT + key: 'oci.compute.vnic.net.packets.ingr.drop[{#ID}]' + delay: '0' + units: '!packets' + description: 'Packets received from the network, destined for the VNIC, dropped due to the full connection tracking table.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicIngressDropsConntrackFull + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: 595654f8255f454fba44abfcfeeb8c14 + name: 'VNIC [{#NAME}]: Throttled ingress packets' + type: DEPENDENT + key: 'oci.compute.vnic.net.packets.ingr.throttled[{#ID}]' + delay: '0' + units: '!packets' + description: 'Packets received from the network, destined for the VNIC, dropped due to throttling.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicIngressDropsThrottle + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: 9c37d782e3594e199f0c77010853d893 + name: 'VNIC [{#NAME}]: Packets from network' + type: DEPENDENT + key: 'oci.compute.vnic.net.packets.ingr[{#ID}]' + delay: '0' + units: '!packets' + description: 'Packets received at the VNIC from the network, after drops.' + preprocessing: + - type: JSONPATH + parameters: + - $.VnicFromNetworkPackets + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + - uuid: 400c523fe78b4264948e363f278bbc6d + name: 'VNIC [{#NAME}]: Smartnic buffer drops from network' + type: DEPENDENT + key: 'oci.compute.vnic.net.smartnic.drops[{#ID}]' + delay: '0' + units: '!packets' + description: | + Number of packets dropped in SmartNIC from the network due to buffer exhaustion. + This metric is available only for Bare Metal Instances. For virtual machines, these metric values are zero. + preprocessing: + - type: JSONPATH + parameters: + - $.SmartnicBufferDropsFromNetwork + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oci.compute.vnic.metrics.get[{#ID}]' + tags: + - tag: component + value: network + - tag: vnic + value: '{#ID}' + graph_prototypes: + - uuid: 7a02ebf104a24f3ebd1631003dc7365c + name: 'VNIC [{#NAME}]: Network bytes in' + graph_items: + - color: 00D936 + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.bytes.ingr[{#ID}]' + - uuid: 50306b25bef24d95acd2d9ae9e0c1f6f + name: 'VNIC [{#NAME}]: Network bytes out' + graph_items: + - color: 2196F3 + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.bytes.egr[{#ID}]' + - uuid: 4f3c1eabc2be43b68c4a76a6bed17761 + name: 'VNIC [{#NAME}]: Network packets dropped by connection tracking table' + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.conntrack.util[{#ID}]' + - sortorder: '1' + color: 00D936 + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.packets.ingr.drop[{#ID}]' + - sortorder: '2' + color: 0208bf + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.packets.egr.drop[{#ID}]' + - uuid: 3d9f549442ac455eb0e5296594eac004 + name: 'VNIC [{#NAME}]: Network packets dropped by security list' + graph_items: + - color: 00D936 + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.packets.ingr.drop[{#ID}]' + - sortorder: '1' + color: 0208bf + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.packets.egr.drop[{#ID}]' + - uuid: 2c4626b63df0468caef94e405e499aaa + name: 'VNIC [{#NAME}]: Network packets in' + graph_items: + - color: 00D936 + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.packets.ingr[{#ID}]' + - sortorder: '1' + color: 008C23 + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.packets.ingr.throttled[{#ID}]' + - uuid: 4fe14e23a0414b8787749aababc35ceb + name: 'VNIC [{#NAME}]: Network packets out' + graph_items: + - color: 2196F3 + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.packets.egr[{#ID}]' + - sortorder: '1' + color: 0208bf + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.packets.egr.throttled[{#ID}]' + - uuid: fdaad88126dd486b948348e993217c8f + name: 'VNIC [{#NAME}]: Smartnic buffer drops' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.net.smartnic.drops[{#ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Compute by HTTP' + key: 'oci.compute.vnic.host.smartnic.drops[{#ID}]' + master_item: + key: oci.compute.vnic.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATE}' + path: $.state + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: cloud + - tag: target + value: oci + - tag: target + value: oracle-cloud-infrastructure + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Oracle Cloud Compute", e.g. {$HTTP.TLS.VERIFY:"Oracle Cloud Compute"}.' + - macro: '{$OCI.COMPUTE.CPU.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about CPU resource utilization.' + - macro: '{$OCI.COMPUTE.CPU.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about CPU resource utilization.' + - macro: '{$OCI.COMPUTE.MEM.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about memory resource utilization.' + - macro: '{$OCI.COMPUTE.MEM.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about memory resource utilization.' + - macro: '{$OCI.COMPUTE.VNIC.CONNTRACK.UTIL.HIGH}' + value: '90' + description: 'Sets the percentage threshold for creating a "high" severity event about VNIC connection tracking table utilization.' + - macro: '{$OCI.COMPUTE.VNIC.CONNTRACK.UTIL.WARN}' + value: '75' + description: 'Sets the percentage threshold for creating a "warning" severity event about VNIC connection tracking table utilization.' + - macro: '{$OCI.COMPUTE.VNIC.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of VNIC names to allow in discovery.' + - macro: '{$OCI.COMPUTE.VNIC.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of VNIC names to ignore in discovery.' + - macro: '{$OCI.COMPUTE.VNIC.DISCOVERY.STATE.MATCHES}' + value: '.*' + description: 'Sets the regex string of VNIC states to allow in discovery.' + - macro: '{$OCI.COMPUTE.VNIC.DISCOVERY.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of VNIC states to ignore in discovery.' + - macro: '{$OCI.HTTP.PROXY}' + description: 'Set an HTTP proxy for OCI API requests if needed.' + - macro: '{$OCI.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + dashboards: + - uuid: edab80c89bcf43d6ada2e4ed5477d36f + name: 'OCI Compute: Overview' + pages: + - name: Main + display_period: '60' + widgets: + - type: item + name: State + width: '27' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: 'Current State' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.availability.get + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Disk bytes read' + 'y': '4' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Disk Bytes Read' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.read + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '20' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Disk read I/O' + 'y': '7' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Disk Read I/O' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.io.read + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '20' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Disk bytes written' + x: '15' + 'y': '4' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Disk Bytes Written' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.written + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '20' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Disk write I/O' + x: '15' + 'y': '7' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Disk Write I/O' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.io.write + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '20' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: Availability + x: '27' + width: '15' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: STRING + name: description + value: Availability + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.availability.get + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '20' + - type: item + name: 'Net bytes in' + x: '30' + 'y': '4' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF0000 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Net Bytes In' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.network.in + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Net bytes out' + x: '30' + 'y': '7' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF0000 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Net Bytes Out' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.network.out + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Load average' + x: '42' + width: '30' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Load Average' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.load.avg + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: CPU + x: '48' + 'y': '4' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: CPU + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 145C96 + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.cpu.util + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Memory allocation stalls' + x: '48' + 'y': '7' + width: '24' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FBC02D + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Memory Allocation Stalls' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.mem.stalls + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: gauge + name: Memory + x: '60' + 'y': '4' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Memory + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 145C96 + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.mem.util + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - name: CPU/Mem + display_period: '30' + widgets: + - type: gauge + name: CPU + width: '24' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: CPU + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 145C96 + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.cpu.util + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'CPU utilization' + 'y': '3' + width: '24' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Cpu utilization' + - type: STRING + name: reference + value: ABAAA + - type: gauge + name: Memory + x: '24' + width: '48' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: STRING + name: description + value: Memory + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: empty_color + value: 145C96 + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.mem.util + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: STRING + name: value_arc_color + value: FFFFFF + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Memory utilization' + x: '24' + 'y': '3' + width: '24' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Memory utilization' + - type: STRING + name: reference + value: ABAAB + - type: graph + name: 'Memory allocation stalls' + x: '48' + 'y': '3' + width: '24' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Memory allocation stalls' + - type: STRING + name: reference + value: ABAAC + - name: 'Net In/Out' + display_period: '30' + widgets: + - type: item + name: 'Net bytes in' + width: '36' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF0000 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Net Bytes In' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.network.in + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Network bytes in' + 'y': '3' + width: '36' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Network bytes in' + - type: STRING + name: reference + value: ACAAA + - type: item + name: 'Net bytes out' + x: '36' + width: '36' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF0000 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Net Bytes Out' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.network.out + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Network bytes out' + x: '36' + 'y': '3' + width: '36' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Network bytes out' + - type: STRING + name: reference + value: ACAAC + - name: Disk + display_period: '30' + widgets: + - type: item + name: 'Disk bytes read' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Disk Bytes Read' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.read + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Disk bytes read' + 'y': '3' + width: '18' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Disk bytes read' + - type: STRING + name: reference + value: ADAAA + - type: item + name: 'Disk bytes written' + x: '18' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Disk Bytes Written' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.written + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Disk bytes written' + x: '18' + 'y': '3' + width: '18' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Disk bytes written' + - type: STRING + name: reference + value: ADAAB + - type: item + name: 'Disk read i/o' + x: '36' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Disk Read I/O' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.io.read + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Disk read i/o' + x: '36' + 'y': '3' + width: '18' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Disk bytes read I/O' + - type: STRING + name: reference + value: ADAAC + - type: item + name: 'Disk write i/o' + x: '54' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Disk Write I/O' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.io.write + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Disk write i/o' + x: '54' + 'y': '3' + width: '18' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Disk bytes write I/O' + - type: STRING + name: reference + value: ADAAD + - name: 'VNIC In/Out' + display_period: '30' + widgets: + - type: item + name: 'Total bytes in' + width: '6' + height: '11' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF0000 + - type: INTEGER + name: decimal_places + value: '1' + - type: INTEGER + name: decimal_size + value: '4' + - type: STRING + name: description + value: Ingress + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_size + value: '3' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.network.in + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '2' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '4' + - type: graph + name: 'Network bytes in' + x: '6' + width: '30' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Network bytes in' + - type: STRING + name: reference + value: AEAAA + - type: INTEGER + name: show_legend + value: '0' + - type: graphprototype + name: 'VNIC bytes in' + x: '6' + 'y': '3' + width: '30' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'VNIC [{#NAME}]: Network bytes in' + - type: STRING + name: reference + value: AEAAB + - type: graphprototype + name: 'VNIC packets in' + x: '6' + 'y': '7' + width: '30' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'VNIC [{#NAME}]: Network packets in' + - type: STRING + name: reference + value: AEAAC + - type: item + name: 'Total bytes out' + x: '36' + width: '6' + height: '11' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF0000 + - type: INTEGER + name: decimal_places + value: '1' + - type: INTEGER + name: decimal_size + value: '4' + - type: STRING + name: description + value: Egress + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_size + value: '3' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.network.out + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '2' + - type: STRING + name: value_color + value: FFFFFF + - type: INTEGER + name: value_size + value: '4' + - type: graph + name: 'Network bytes out' + x: '42' + width: '30' + height: '3' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'OCI Compute: Network bytes out' + - type: STRING + name: reference + value: AEAAD + - type: INTEGER + name: show_legend + value: '0' + - type: graphprototype + name: 'VNIC bytes out' + x: '42' + 'y': '3' + width: '30' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'VNIC [{#NAME}]: Network bytes out' + - type: STRING + name: reference + value: AEAAE + - type: graphprototype + name: 'VNIC packets out' + x: '42' + 'y': '7' + width: '30' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'VNIC [{#NAME}]: Network packets out' + - type: STRING + name: reference + value: AEAAF + - name: 'VNIC Detailed' + display_period: '30' + widgets: + - type: graphprototype + name: 'Connection tracking table' + width: '24' + height: '11' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'VNIC [{#NAME}]: Network packets dropped by connection tracking table' + - type: STRING + name: reference + value: AFAAA + - type: graphprototype + name: 'Security list' + x: '24' + width: '24' + height: '11' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'VNIC [{#NAME}]: Network packets dropped by security list' + - type: STRING + name: reference + value: AFAAB + - type: graphprototype + name: Smartnic + x: '48' + width: '24' + height: '11' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Oracle Cloud Compute by HTTP' + name: 'VNIC [{#NAME}]: Smartnic buffer drops' + - type: STRING + name: reference + value: AFAAC + valuemaps: + - uuid: 9e238671edca4ed7b58eefacc861a77d + name: 'Compute instance availability' + mappings: + - value: '0' + newvalue: Available + - value: '1' + newvalue: Unavailable + - uuid: c336821eced54261afb0d10a0de6601d + name: 'Compute instance state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Moving + - value: '2' + newvalue: Provisioning + - value: '3' + newvalue: Running + - value: '4' + newvalue: Starting + - value: '5' + newvalue: Stopping + - value: '6' + newvalue: Stopped + - value: '7' + newvalue: 'Creating image' + - value: '8' + newvalue: Terminating + - value: '9' + newvalue: Terminated + - uuid: dce0b4413ede4dbca55f89cbc86736b3 + name: 'Generic Bool' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: 8fdcb86d1dde4d2489239dd61fbd8b08 + name: 'VNIC attachment state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Attaching + - value: '2' + newvalue: Attached + - value: '3' + newvalue: Detaching + - value: '4' + newvalue: Detached + graphs: + - uuid: 70f0b43207cd4e28bf93e0b41ad45a10 + name: 'OCI Compute: Cpu utilization' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.cpu.util + - uuid: 944bf71570b549ce8682d3f1beea5c57 + name: 'OCI Compute: Disk bytes read' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.read + - uuid: 39ece65d2b2b402abee59432cc3a3cea + name: 'OCI Compute: Disk bytes read I/O' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.io.read + - uuid: f073ce71549946509fe9f021b3c2d2e9 + name: 'OCI Compute: Disk bytes write I/O' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.io.write + - uuid: 784735022c1e40fc9cf7d065e95124f3 + name: 'OCI Compute: Disk bytes written' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.disk.written + - uuid: 9f4a1426c49f47bfade03875a6af0a60 + name: 'OCI Compute: Memory allocation stalls' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.mem.stalls + - uuid: db9ad56d9e334de0a3ba7f6c3862fb76 + name: 'OCI Compute: Memory utilization' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.mem.util + - uuid: 609ba54782934bb8b60696588bf57038 + name: 'OCI Compute: Network bytes in' + graph_items: + - color: 00D936 + item: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.network.in + - uuid: 807729ba0afb4710a33307286d5c027a + name: 'OCI Compute: Network bytes out' + graph_items: + - color: 2196F3 + item: + host: 'Oracle Cloud Compute by HTTP' + key: oci.compute.network.out diff --git a/Oracle_Cloud_Networking_by_HTTP.yaml b/Oracle_Cloud_Networking_by_HTTP.yaml new file mode 100644 index 0000000..33ca5c8 --- /dev/null +++ b/Oracle_Cloud_Networking_by_HTTP.yaml @@ -0,0 +1,617 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: 62d99b55585e41dd89736f5f46074dcb + template: 'Oracle Cloud Networking by HTTP' + name: 'Oracle Cloud Networking by HTTP' + description: | + This template monitors Oracle Cloud Infrastructure (OCI) single virtual network card availability and discovers + attached subnets and monitors their availability. + + This template is not meant to be used independently, but together with Oracle Cloud by HTTP as a template for + LLD host prototypes. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 7b2fdfb034ba4657a731ab11ffa175f6 + name: 'Get VCN state' + type: SCRIPT + key: oci.vcn.state.get + delay: 5m + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'vcn_id', 'http_status_code'], params); + var oci = new OCI('VCN', 'Get VCN status', params); + + return JSON.stringify(oci.extractData('get', oci.executeRequest('get', '/20160918/vcns/' + encodeURIComponent(params['vcn_id']), ''), 'lifecycleState')); + description: 'State of the virtual cloud network.' + valuemap: + name: 'Lifecycle state' + preprocessing: + - type: STR_REPLACE + parameters: + - '"' + - '' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'PROVISIONING': 1, + 'AVAILABLE': 2, + 'TERMINATING': 3, + 'TERMINATED': 4, + 'UPDATING': 5 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.CORE.HOST}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Networking"}' + - name: user_ocid + value: '{$OCI.API.USER}' + - name: vcn_id + value: '{$OCI.VCN.ID}' + tags: + - tag: component + value: network + triggers: + - uuid: 8a5a94ea28db43df93e85d26703f9e7c + expression: 'min(/Oracle Cloud Networking by HTTP/oci.vcn.state.get,5m) = 3 or min(/Oracle Cloud Networking by HTTP/oci.vcn.state.get,5m) = 4' + name: 'OCI VCN: VCN state terminated' + priority: HIGH + description: 'Virtual cloud network state is "terminated" or "terminating".' + tags: + - tag: scope + value: availability + - uuid: 80c3f4d6696c40a78ddb2c00378eeae1 + expression: 'min(/Oracle Cloud Networking by HTTP/oci.vcn.state.get,5m) = 0' + name: 'OCI VCN: VCN state unknown' + priority: WARNING + description: 'Virtual cloud network state is unknown.' + tags: + - tag: scope + value: availability + - uuid: 83236aeedf5e4ba39f0425c21f745690 + name: 'Get subnets' + type: SCRIPT + key: oci.vcn.subnets.get + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'vcn_id', 'http_status_code', 'compartment_id'], params); + var oci = new OCI('VCN', 'Get subnets', params); + + return JSON.stringify(oci.extractData('get', oci.executeRequest('get', '/20160918/subnets', '?compartmentId=' + encodeURIComponent(params['compartment_id']) + '&vcnId=' + encodeURIComponent(params['vcn_id'])), ['id', 'displayName', 'lifecycleState', 'freeformTags'])); + description: 'Get data about subnets linked to the particular VCN.' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.CORE.HOST}' + - name: compartment_id + value: '{$OCI.VCN.COMPARTMENT.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Networking"}' + - name: user_ocid + value: '{$OCI.API.USER}' + - name: vcn_id + value: '{$OCI.VCN.ID}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 6aca3a2d8b9a4231ae9364611ed4df82 + name: 'Subnet discovery' + type: DEPENDENT + key: oci.vcn.subnet.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$OCI.VCN.SUBNET.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$OCI.VCN.SUBNET.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STATE}' + value: '{$OCI.VCN.SUBNET.DISCOVERY.STATE.MATCHES}' + formulaid: C + - macro: '{#STATE}' + value: '{$OCI.VCN.SUBNET.DISCOVERY.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discover subnets linked to the particular VCN.' + item_prototypes: + - uuid: 759c6bff98fb4cb3bc8c9269513339bf + name: 'Subnet [{#NAME}]: Get subnet state' + type: DEPENDENT + key: 'oci.vcn.subnet.state[{#ID}]' + delay: '0' + description: 'Current state of subnet.' + valuemap: + name: 'Lifecycle state' + preprocessing: + - type: JSONPATH + parameters: + - '$..[?(@.id == ''{#ID}'')].state.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'PROVISIONING': 1, + 'AVAILABLE': 2, + 'TERMINATING': 3, + 'TERMINATED': 4 + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.vcn.subnets.get + tags: + - tag: component + value: network + - tag: subnet + value: '{#ID}' + trigger_prototypes: + - uuid: f048db860c0c4134acdbcbf19ea554eb + expression: 'min(/Oracle Cloud Networking by HTTP/oci.vcn.subnet.state[{#ID}],5m) = 3 or min(/Oracle Cloud Networking by HTTP/oci.vcn.subnet.state[{#ID}],5m) = 4' + name: 'OCI VCN: Subnet [{#NAME}]: Subnet state terminated' + priority: HIGH + description: 'Virtual cloud network subnet state is "terminated" or "terminating".' + tags: + - tag: scope + value: availability + - uuid: d34e5b8c571b41f9ba5dc11453431860 + expression: 'min(/Oracle Cloud Networking by HTTP/oci.vcn.subnet.state[{#ID}],5m) = 0' + name: 'OCI VCN: Subnet [{#NAME}]: Subnet state unknown' + priority: WARNING + description: 'Virtual cloud network subnet state is unknown.' + tags: + - tag: scope + value: availability + master_item: + key: oci.vcn.subnets.get + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATE}' + path: $.state + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: cloud + - tag: target + value: oci + - tag: target + value: oracle-cloud-infrastructure + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Oracle Cloud Networking", e.g. {$HTTP.TLS.VERIFY:"Oracle Cloud Networking"}.' + - macro: '{$OCI.HTTP.PROXY}' + description: 'Set an HTTP proxy for OCI API requests if needed.' + - macro: '{$OCI.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + - macro: '{$OCI.VCN.SUBNET.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of VCN subnet names to allow in discovery.' + - macro: '{$OCI.VCN.SUBNET.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of VCN subnet names to ignore in discovery.' + - macro: '{$OCI.VCN.SUBNET.DISCOVERY.STATE.MATCHES}' + value: '.*' + description: 'Sets the regex string of VCN subnet states to allow in discovery.' + - macro: '{$OCI.VCN.SUBNET.DISCOVERY.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of VCN subnet states to ignore in discovery.' + valuemaps: + - uuid: abf7b45647ee4a339df92bf06b12f0df + name: 'Lifecycle state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Provisioning + - value: '2' + newvalue: Available + - value: '3' + newvalue: Terminating + - value: '4' + newvalue: Terminated + - value: '5' + newvalue: Updating diff --git a/Oracle_Cloud_Object_Storage_by_HTTP.yaml b/Oracle_Cloud_Object_Storage_by_HTTP.yaml new file mode 100644 index 0000000..70f6f67 --- /dev/null +++ b/Oracle_Cloud_Object_Storage_by_HTTP.yaml @@ -0,0 +1,1546 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + templates: + - uuid: e8f89476695848e99ba900a5664d290b + template: 'Oracle Cloud Object Storage by HTTP' + name: 'Oracle Cloud Object Storage by HTTP' + description: | + This template monitors Oracle Cloud Infrastructure (OCI) object storage resources. + + This template is not meant to be used independently, but together with Oracle Cloud by HTTP as a template for + LLD host prototypes. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Cloud + items: + - uuid: 8a216ff99ea84e169ba24305a5501b45 + name: 'Client-side error count' + type: DEPENDENT + key: oci.obj.storage.client.errors + delay: '0' + value_type: FLOAT + description: 'The total number of 4xx errors for requests made in a bucket.' + preprocessing: + - type: JSONPATH + parameters: + - $.ClientErrors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.obj.storage.metrics.frequent.get + tags: + - tag: component + value: storage + - uuid: 3d41eed5ab23438d9f2a87c48bb3def4 + name: 'First byte latency time' + type: DEPENDENT + key: oci.obj.storage.latency.byte + delay: '0' + value_type: FLOAT + units: s + description: 'The per-request time measured from the time Object Storage receives the complete request to when Object Storage returns the first byte of the response.' + preprocessing: + - type: JSONPATH + parameters: + - $.FirstByteLatency + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.obj.storage.metrics.frequent.get + tags: + - tag: component + value: storage + - uuid: a47bb44ccb35489e965432c332bd8892 + name: 'Overall latency time' + type: DEPENDENT + key: oci.obj.storage.latency.overall + delay: '0' + value_type: FLOAT + units: s + description: | + The per-request time from the first byte received by Object Storage to the last byte sent from + Object Storage. + preprocessing: + - type: JSONPATH + parameters: + - $.TotalRequestLatency + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.obj.storage.metrics.frequent.get + tags: + - tag: component + value: storage + - uuid: 5463c35f2c48408997532001025989fa + name: 'Get frequent metrics' + type: SCRIPT + key: oci.obj.storage.metrics.frequent.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + function buildMql(id, metrics, defaultStatistic, resourceType) { + resourceType = resourceType === '' || resourceType === undefined ? 'resourceId' : resourceType; + this.query = '[' + params['req_interval'] + 'm]{' + resourceType + '=' + id + '}.'; + + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + const metric = ((Array.isArray(metrics[i]) ? metrics[i] : [metrics[i], defaultStatistic])); + metrics[i] = [metric[0], this.query + metric[1]]; + } + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'bucket_name', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Object storage', 'Get metrics ' + params['req_interval'] + 'm', params); + + const metrics = [ + 'AllRequests', + 'ClientErrors', + 'FirstByteLatency', + 'PostRequests', + 'PutRequests', + 'TotalRequestLatency' + ]; + buildMql(params['bucket_name'], metrics, 'mean', 'resourceDisplayName'); + + var result = {}; + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + result[metrics[i][0]] = oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), metrics[i][0] + metrics[i][1] + '()', 'oci_objectstorage'), 'aggregatedDatapoints'); + } + return JSON.stringify(result); + description: 'Gets all metrics related to a specific bucket that have frequent update time (100 milliseconds).' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: bucket_name + value: '{$OCI.OBJECT.STORAGE.BUCKET}' + - name: compartment_id + value: '{$OCI.OBJECT.STORAGE.COMPARTMENT.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '1' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Object Storage"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: raw + - uuid: 4a12f1c73e8f40be9136a095ad147775 + name: 'Get hourly metrics' + type: SCRIPT + key: oci.obj.storage.metrics.hourly.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + function buildMql(id, metrics, defaultStatistic, resourceType) { + resourceType = resourceType === '' || resourceType === undefined ? 'resourceId' : resourceType; + this.query = '[' + params['req_interval'] + 'm]{' + resourceType + '=' + id + '}.'; + + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + const metric = ((Array.isArray(metrics[i]) ? metrics[i] : [metrics[i], defaultStatistic])); + metrics[i] = [metric[0], this.query + metric[1]]; + } + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'bucket_name', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Object storage', 'Get metrics ' + params['req_interval'] + 'm', params); + + const metrics = [ + 'ObjectCount', + 'StoredBytes', + 'UncommittedParts' + ]; + buildMql(params['bucket_name'], metrics, 'mean', 'resourceDisplayName') + + var result = {}; + for (var i = 0, metricsLength = metrics.length; i < metricsLength; i++) { + result[metrics[i][0]] = oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), metrics[i][0] + metrics[i][1] + '()', 'oci_objectstorage'), 'aggregatedDatapoints'); + } + return JSON.stringify(result); + description: 'Gets all metrics related to specific bucket that have update time of 1 hour.' + timeout: 30s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: bucket_name + value: '{$OCI.OBJECT.STORAGE.BUCKET}' + - name: compartment_id + value: '{$OCI.OBJECT.STORAGE.COMPARTMENT.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '60' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Object Storage"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: raw + - uuid: 5bb5ba3011e94e43bb1fdc79668c9537 + name: 'Get enabled object lifecycle management' + type: SCRIPT + key: oci.obj.storage.metrics.olm.get + delay: 3h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'bucket_name', 'http_status_code', 'req_interval', 'compartment_id'], params); + var oci = new OCI('Object storage', 'Get metrics ' + params['req_interval'] + 'm', params); + const mql = 'EnabledOLM[' + params['req_interval'] + 'm]{resourceDisplayName=' + params['bucket_name'] + '}.mean()'; + + return JSON.stringify(oci.extractData('post', oci.executeRequest('post', '/20180401/metrics/actions/summarizeMetricsData', '?compartmentId=' + encodeURIComponent(params['compartment_id']), mql, 'oci_objectstorage'), 'aggregatedDatapoints')); + description: | + Indicates whether a bucket has any executable Object Lifecycle Management policies configured. `EnabledOLM` emits: + + 1 - if policies are configured + 0 - if no policies are configured + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.TELEMETRY.HOST}' + - name: bucket_name + value: '{$OCI.OBJECT.STORAGE.BUCKET}' + - name: compartment_id + value: '{$OCI.OBJECT.STORAGE.COMPARTMENT.ID}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: req_interval + value: '180' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud Object Storage"}' + - name: user_ocid + value: '{$OCI.API.USER}' + tags: + - tag: component + value: storage + triggers: + - uuid: 5d9652a8736247c2bcac15cf02012824 + expression: 'last(/Oracle Cloud Object Storage by HTTP/oci.obj.storage.metrics.olm.get,#1)<>last(/Oracle Cloud Object Storage by HTTP/oci.obj.storage.metrics.olm.get,#2) and length(last(/Oracle Cloud Object Storage by HTTP/oci.obj.storage.metrics.olm.get))>0' + name: 'OCI Object Storage: Object lifecycle management policy has changed' + priority: INFO + description: 'The object lifecycle management policy configuration has changed.' + tags: + - tag: scope + value: notice + - uuid: 867aa1736d4c40a18a4f660023d117f4 + name: 'Number of objects' + type: DEPENDENT + key: oci.obj.storage.objects + delay: '0' + value_type: FLOAT + description: 'The count of objects in the bucket, excluding any multipart upload parts that have not been discarded (aborted) or committed.' + preprocessing: + - type: JSONPATH + parameters: + - $.ObjectCount + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: oci.obj.storage.metrics.hourly.get + tags: + - tag: component + value: storage + - uuid: a3d83de1735d4c409192d187d793f7b2 + name: 'All requests count' + type: DEPENDENT + key: oci.obj.storage.requests + delay: '0' + value_type: FLOAT + description: 'The total number of all HTTP requests made in a bucket.' + preprocessing: + - type: JSONPATH + parameters: + - $.AllRequests + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.obj.storage.metrics.frequent.get + tags: + - tag: component + value: storage + - uuid: 2baef7eb0b1348499eda8fb9fd11e0c8 + name: 'Post object request count' + type: DEPENDENT + key: oci.obj.storage.requests.post + delay: '0' + value_type: FLOAT + description: 'The total number of HTTP `POST` requests made in a bucket.' + preprocessing: + - type: JSONPATH + parameters: + - $.PostRequests + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.obj.storage.metrics.frequent.get + tags: + - tag: component + value: storage + - uuid: 1853b681b5e64a0f9c172e6166a430ae + name: 'Put object request count' + type: DEPENDENT + key: oci.obj.storage.requests.put + delay: '0' + value_type: FLOAT + description: 'The total number of `PutObject` requests made in a bucket.' + preprocessing: + - type: JSONPATH + parameters: + - $.PutRequests + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: oci.obj.storage.metrics.frequent.get + tags: + - tag: component + value: storage + - uuid: 61901f89399c413186c9df957760c2d5 + name: 'Bucket size' + type: DEPENDENT + key: oci.obj.storage.size + delay: '0' + value_type: FLOAT + units: B + description: 'The size of the bucket, excluding any multipart upload parts that have not been discarded (aborted) or committed.' + preprocessing: + - type: JSONPATH + parameters: + - $.StoredBytes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: oci.obj.storage.metrics.hourly.get + tags: + - tag: component + value: storage + - uuid: a4dc04db6b294aef865d137e5fdd0dc2 + name: 'Incomplete multipart upload size' + type: DEPENDENT + key: oci.obj.storage.size.incomplete + delay: '0' + value_type: FLOAT + units: B + description: 'The size of any multipart upload parts that have not been discarded (aborted) or committed.' + preprocessing: + - type: JSONPATH + parameters: + - $.UncommittedParts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: oci.obj.storage.metrics.hourly.get + tags: + - tag: component + value: storage + tags: + - tag: class + value: cloud + - tag: target + value: oci + - tag: target + value: oracle-cloud-infrastructure + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Oracle Cloud Object Storage", e.g. {$HTTP.TLS.VERIFY:"Oracle Cloud Object Storage"}.' + - macro: '{$OCI.HTTP.PROXY}' + description: 'Set an HTTP proxy for OCI API requests if needed.' + - macro: '{$OCI.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + dashboards: + - uuid: 6dd3714db62046249cf3ff50a09091e2 + name: 'OCI Object Storage: Overview' + pages: + - name: Overview + display_period: '30' + widgets: + - type: item + name: 'Overall latency time' + width: '30' + height: '5' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Overall Latency Time' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.latency.overall + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Bucket Size' + 'y': '5' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Bucket Size' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.size + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Client-side error count' + 'y': '8' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF0000 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Client-side Error Count' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.client.errors + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Number of objects' + x: '15' + 'y': '5' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 00D936 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Number of Objects' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.objects + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Incomplete multipart upload size' + x: '15' + 'y': '8' + width: '15' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: FF0000 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Incomplete Multipart Upload Size' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.size.incomplete + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'First byte latency time' + x: '30' + width: '30' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'First Byte Latency Time' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.latency.byte + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'All requests' + x: '30' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'All Requests' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.requests + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: Requests + x: '30' + 'y': '6' + width: '42' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + name: 'OCI Object Storage: Requests' + - type: STRING + name: reference + value: AAAAA + - type: item + name: 'Post object requests' + x: '48' + 'y': '3' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Post Object Requests' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.requests.post + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'OLM status' + x: '60' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'OLM Status' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.metrics.olm.get + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: item + name: 'Put object requests' + x: '60' + 'y': '3' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 2196F3 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Post Object Requests' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.requests.post + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - name: Latency + display_period: '30' + widgets: + - type: item + name: 'Overall latency time' + width: '36' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Overall Latency Time' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.latency.overall + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'Overall latency' + 'y': '3' + width: '36' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + name: 'OCI Object Storage: Overall latency' + - type: STRING + name: reference + value: ABAAA + - type: item + name: 'First byte latency time' + x: '36' + width: '36' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: bg_color + value: 6C00D9 + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'First Byte Latency Time' + - type: STRING + name: desc_color + value: FFFFFF + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.latency.byte + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: units_color + value: FFFFFF + - type: INTEGER + name: units_size + value: '25' + - type: STRING + name: value_color + value: FFFFFF + - type: graph + name: 'First byte latency' + x: '36' + 'y': '3' + width: '36' + height: '8' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle Cloud Object Storage by HTTP' + name: 'OCI Object Storage: First byte latency' + - type: STRING + name: reference + value: ABAAB + graphs: + - uuid: fa3fab6874614a3cbea45dee87660253 + name: 'OCI Object Storage: Bucket size' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.size + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.objects + - uuid: 2c32d269e0274b26a40b0b5069abda7c + name: 'OCI Object Storage: Client-side error count' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.client.errors + - uuid: 445af3dbf17e4046b5350fd1b4b3734b + name: 'OCI Object Storage: First byte latency' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.latency.byte + - uuid: 15fb3f080d6244a48d1a7c98f69a2793 + name: 'OCI Object Storage: Incomplete multipart upload size' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.size.incomplete + - uuid: 0f71c9aa038d437fa28312c58d417ad1 + name: 'OCI Object Storage: Overall latency' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.latency.overall + - uuid: 49c9abb27e194d1788ee1c62688ff57b + name: 'OCI Object Storage: Requests' + graph_items: + - color: 199C0D + item: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.requests + - sortorder: '1' + color: F63100 + item: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.requests.post + - sortorder: '2' + color: 00611C + item: + host: 'Oracle Cloud Object Storage by HTTP' + key: oci.obj.storage.requests.put diff --git a/Oracle_Cloud_by_HTTP.yaml b/Oracle_Cloud_by_HTTP.yaml new file mode 100644 index 0000000..e67dd3d --- /dev/null +++ b/Oracle_Cloud_by_HTTP.yaml @@ -0,0 +1,1723 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: c2c162144c2d4c5491c8801193af4945 + name: Templates/Cloud + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + - uuid: 748ad4d098d447d492bb935c907f652f + name: Databases + - uuid: 137f19e6e2dc4219b33553b812627bc2 + name: 'Virtual machines' + templates: + - uuid: 057558a26d934b4683d73a7058499d62 + template: 'Oracle Cloud by HTTP' + name: 'Oracle Cloud by HTTP' + description: | + Monitor resources of Oracle Cloud Infrastructure (OCI) services. + + This template handles discovery of various OCI services. + + Read the template documentation prior to using this template. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Cloud + discovery_rules: + - uuid: 72fa6dfedfd8497298c5930f48594e72 + name: 'Block volumes discovery' + type: SCRIPT + key: oci.block.volumes.discovery + delay: 1h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function prepareCompartments(compartments, tenancy) { + if (typeof compartments === 'undefined' || compartments === '') { + return [tenancy]; + } else { + return compartments.split(',') + } + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'http_status_code'], params); + var oci = new OCI('Block volume', 'Get volumes', params); + var compartments = prepareCompartments(params['compartment_ocid'], params['tenancy_ocid']); + + var buffer = []; + compartments.forEach(function (compartment) { + Array.prototype.push.apply(buffer, oci.extractData('get', oci.executeRequest('get', '/20160918/volumes', '?compartmentId=' + encodeURIComponent(compartment)), ['id', 'displayName', 'lifecycleState', 'freeformTags'], compartment)); + }) + return JSON.stringify(buffer); + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$OCI.VOLUME.BLOCK.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$OCI.VOLUME.BLOCK.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STATE}' + value: '{$OCI.VOLUME.BLOCK.DISCOVERY.STATE.MATCHES}' + formulaid: C + - macro: '{#STATE}' + value: '{$OCI.VOLUME.BLOCK.DISCOVERY.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discover block volumes.' + host_prototypes: + - uuid: 5030f7dadd5b40558e07a4545d7346bd + host: 'OCI Block Volume - {#ID}' + name: 'OCI Block Volume - {#ID}' + group_links: + - group: + name: Applications + templates: + - name: 'Oracle Cloud Block Volume by HTTP' + macros: + - macro: '{$OCI.VOLUME.BLOCK.COMPARTMENT.ID}' + value: '{#COMPARTMENT}' + description: 'Block volume compartment ID.' + - macro: '{$OCI.VOLUME.BLOCK.ID}' + value: '{#ID}' + description: 'Block volume ID.' + tags: + - tag: oci-block-vol-name + value: '{#NAME}' + - tag: oci-compartment-id + value: '{#COMPARTMENT}' + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.CORE.HOST}' + - name: compartment_ocid + value: '{$OCI.API.COMPARTMENT.VOLUME.BLOCK}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud"}' + - name: user_ocid + value: '{$OCI.API.USER}' + lld_macro_paths: + - lld_macro: '{#COMPARTMENT}' + path: $.compartment + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATE}' + path: $.state + - uuid: 90982afdf2f9430bb1c5a3755d8e6c6d + name: 'Boot volumes discovery' + type: SCRIPT + key: oci.boot.volumes.discovery + delay: 1h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function prepareCompartments(compartments, tenancy) { + if (typeof compartments === 'undefined' || compartments === '') { + return [tenancy]; + } else { + return compartments.split(',') + } + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'http_status_code'], params); + var oci = new OCI('Boot volume', 'Get volumes', params); + var compartments = prepareCompartments(params['compartment_ocid'], params['tenancy_ocid']); + + var buffer = []; + compartments.forEach(function (compartment) { + Array.prototype.push.apply(buffer, oci.extractData('get', oci.executeRequest('get', '/20160918/bootVolumes', '?compartmentId=' + encodeURIComponent(compartment)), ['id', 'displayName', 'lifecycleState', 'freeformTags'], compartment)); + }) + return JSON.stringify(buffer); + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$OCI.VOLUME.BOOT.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$OCI.VOLUME.BOOT.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STATE}' + value: '{$OCI.VOLUME.BOOT.DISCOVERY.STATE.MATCHES}' + formulaid: C + - macro: '{#STATE}' + value: '{$OCI.VOLUME.BOOT.DISCOVERY.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discover boot volumes.' + host_prototypes: + - uuid: 914b808a4a014f6e824a3b9c53f1b492 + host: 'OCI Boot Volume - {#ID}' + name: 'OCI Boot Volume - {#ID}' + group_links: + - group: + name: Applications + templates: + - name: 'Oracle Cloud Boot Volume by HTTP' + macros: + - macro: '{$OCI.VOLUME.BOOT.COMPARTMENT.ID}' + value: '{#COMPARTMENT}' + description: 'Boot volume compartment ID.' + - macro: '{$OCI.VOLUME.BOOT.ID}' + value: '{#ID}' + description: 'Boot volume ID.' + tags: + - tag: oci-boot-vol-name + value: '{#NAME}' + - tag: oci-compartment-id + value: '{#COMPARTMENT}' + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.CORE.HOST}' + - name: compartment_ocid + value: '{$OCI.API.COMPARTMENT.VOLUME.BOOT}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud"}' + - name: user_ocid + value: '{$OCI.API.USER}' + lld_macro_paths: + - lld_macro: '{#COMPARTMENT}' + path: $.compartment + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATE}' + path: $.state + - uuid: ea4bbd0e9737406693aa0051cf861115 + name: 'Compute instances discovery' + type: SCRIPT + key: oci.compute.discovery + delay: 1h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function prepareCompartments(compartments, tenancy) { + if (typeof compartments === 'undefined' || compartments === '') { + return [tenancy]; + } else { + return compartments.split(',') + } + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'http_status_code'], params); + var oci = new OCI('Compute', 'Get instances', params); + var compartments = prepareCompartments(params['compartment_ocid'], params['tenancy_ocid']); + + var buffer = []; + compartments.forEach(function (compartment) { + Array.prototype.push.apply(buffer, oci.extractData('get', oci.executeRequest('get', '/20160918/instances', '?compartmentId=' + encodeURIComponent(compartment)), ['id', 'displayName', 'lifecycleState', 'freeformTags', 'availabilityDomain'], compartment)); + }) + return JSON.stringify(buffer); + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$OCI.COMPUTE.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$OCI.COMPUTE.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STATE}' + value: '{$OCI.COMPUTE.DISCOVERY.STATE.MATCHES}' + formulaid: C + - macro: '{#STATE}' + value: '{$OCI.COMPUTE.DISCOVERY.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discover compute instances.' + host_prototypes: + - uuid: 9337374066e04291b2f94f8ad5470f54 + host: 'OCI Compute - {#ID}' + name: 'OCI Compute - {#ID}' + group_links: + - group: + name: 'Virtual machines' + templates: + - name: 'Oracle Cloud Compute by HTTP' + macros: + - macro: '{$OCI.COMPUTE.AVAILABILITY.DOMAIN}' + value: '{#DOMAIN}' + description: 'Availability domain for instance.' + - macro: '{$OCI.COMPUTE.COMPARTMENT.ID}' + value: '{#COMPARTMENT}' + description: 'Compartment ID of OCI compute instance.' + - macro: '{$OCI.COMPUTE.INSTANCE.ID}' + value: '{#ID}' + description: 'ID of OCI compute instance.' + tags: + - tag: oci-compartment-id + value: '{#COMPARTMENT}' + - tag: oci-compute-name + value: '{#NAME}' + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.CORE.HOST}' + - name: compartment_ocid + value: '{$OCI.API.COMPARTMENT.COMPUTE}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud"}' + - name: user_ocid + value: '{$OCI.API.USER}' + lld_macro_paths: + - lld_macro: '{#COMPARTMENT}' + path: $.compartment + - lld_macro: '{#DOMAIN}' + path: $.domain + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATE}' + path: $.state + - uuid: c69611c5b86043b28c8ce2bc0627b377 + name: 'Autonomous database discovery' + type: SCRIPT + key: oci.object.autonomous.db.discovery + delay: 1h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function prepareCompartments(compartments, tenancy) { + if (typeof compartments === 'undefined' || compartments === '') { + return [tenancy]; + } else { + return compartments.split(',') + } + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'http_status_code'], params); + var oci = new OCI('Autonomous DB', 'Get DBs', params); + var compartments = prepareCompartments(params['compartment_ocid'], params['tenancy_ocid']); + + var buffer = []; + compartments.forEach(function (compartment) { + Array.prototype.push.apply(buffer, oci.extractData('get', oci.executeRequest('get', '/20160918/autonomousDatabases', '?compartmentId=' + encodeURIComponent(compartment)), ['id', 'dbName', 'lifecycleState', 'freeformTags'], compartment)); + }) + return JSON.stringify(buffer); + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$OCI.AUTONOMOUS.DB.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$OCI.AUTONOMOUS.DB.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STATE}' + value: '{$OCI.AUTONOMOUS.DB.DISCOVERY.STATE.MATCHES}' + formulaid: C + - macro: '{#STATE}' + value: '{$OCI.AUTONOMOUS.DB.DISCOVERY.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discover autonomous databases.' + host_prototypes: + - uuid: 88d0076a057c441ab5a531cfcb650e84 + host: 'OCI Autonomous DB - {#NAME}' + name: 'OCI Autonomous DB - {#NAME}' + group_links: + - group: + name: Databases + templates: + - name: 'Oracle Cloud Autonomous Database by HTTP' + macros: + - macro: '{$OCI.AUTONOMOUS.DB.COMPARTMENT.ID}' + value: '{#COMPARTMENT}' + description: 'Autonomous database compartment ID.' + - macro: '{$OCI.AUTONOMOUS.DB.ID}' + value: '{#ID}' + description: 'ID of OCI autonomous database.' + tags: + - tag: oci-aut-db-name + value: '{#NAME}' + - tag: oci-compartment-id + value: '{#COMPARTMENT}' + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.AUTONOMOUS.DB.HOST}' + - name: compartment_ocid + value: '{$OCI.API.COMPARTMENT.AUTONOMOUS.DB}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud"}' + - name: user_ocid + value: '{$OCI.API.USER}' + lld_macro_paths: + - lld_macro: '{#COMPARTMENT}' + path: $.compartment + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATE}' + path: $.state + - uuid: e1949f127af04efeb8c192f23e45b58a + name: 'Object storage discovery' + type: SCRIPT + key: oci.object.storage.discovery + delay: 1h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function prepareCompartments(compartments, tenancy) { + if (typeof compartments === 'undefined' || compartments === '') { + return [tenancy]; + } else { + return compartments.split(',') + } + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'http_status_code'], params); + var oci = new OCI('Object storage', 'Get buckets', params); + var compartments = prepareCompartments(params['compartment_ocid'], params['tenancy_ocid']); + const namespace = JSON.parse(oci.executeRequest('get', '/n', '')); + + var buffer = []; + compartments.forEach(function (compartment) { + Array.prototype.push.apply(buffer, oci.extractData('get', oci.executeRequest('get', '/n/' + encodeURIComponent(namespace) + '/b/', '?compartmentId=' + encodeURIComponent(compartment) + '&fields=tags'), ['name', 'freeformTags'], compartment)); + }) + return JSON.stringify(buffer); + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$OCI.OBJECT.STORAGE.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$OCI.OBJECT.STORAGE.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discover object storage.' + host_prototypes: + - uuid: f71e979727ce42daa80a34da5ffb296f + host: 'OCI Bucket - {#NAME}' + name: 'OCI Bucket - {#NAME}' + group_links: + - group: + name: Applications + templates: + - name: 'Oracle Cloud Object Storage by HTTP' + macros: + - macro: '{$OCI.OBJECT.STORAGE.BUCKET}' + value: '{#NAME}' + description: 'Object storage bucket name.' + - macro: '{$OCI.OBJECT.STORAGE.COMPARTMENT.ID}' + value: '{#COMPARTMENT}' + description: 'Object storage bucket compartment ID.' + tags: + - tag: oci-compartment-id + value: '{#COMPARTMENT}' + - tag: oci-obj-store-name + value: '{#NAME}' + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.OBJECT.STORAGE.HOST}' + - name: compartment_ocid + value: '{$OCI.API.COMPARTMENT.OBJECT.STORAGE}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud"}' + - name: user_ocid + value: '{$OCI.API.USER}' + lld_macro_paths: + - lld_macro: '{#COMPARTMENT}' + path: $.compartment + - lld_macro: '{#NAME}' + path: $.name + - uuid: 378d760173924bf48fbc25c74a520a8b + name: 'Virtual cloud networks discovery' + type: SCRIPT + key: oci.vcn.discovery + delay: 1h + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + function validateZabbixParams(requiredParams, allParams) { + requiredParams.forEach(function (field) { + if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + } + + function prepareCompartments(compartments, tenancy) { + if (typeof compartments === 'undefined' || compartments === '') { + return [tenancy]; + } else { + return compartments.split(',') + } + } + + function OCI(service, action, params) { + this.zabbixLogPrefix = '[ OCI ] [ ' + service + ' ] [ ' + action + ' ]'; + this.tls = new CTlsConfig(params.tls_verify); + this.request = new HttpRequest(this.tls.options); + + this.hash = function (string) { + return sha256(string); + }; + + this.sign = function (string) { + return sign('sha256', params['private_key'], string); + }; + + this.encode = function (hash) { + const hexArr = hash.match(/.{1,2}/g); + var uInt8Array = new Uint8Array(hexArr.length); + hexArr.forEach(function (hex, idx) { + uInt8Array[idx] = parseInt(hex, 16); + }); + return btoa(uInt8Array); + }; + + this.getDate = function () { + const weekdayShortList = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; + const monthShortList = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; + const today = new Date(); + return weekdayShortList[today.getUTCDay()] + ', ' + today.getUTCDate() + ' ' + monthShortList[today.getUTCMonth()] + ' ' + today.getUTCFullYear() + ' ' + today.getUTCHours() + ':' + today.getUTCMinutes() + ':' + today.getUTCSeconds() + ' GMT'; + }; + + this.executeRequest = function (httpMethod, apiPath, apiParams, mql, namespace) { + var headers = '(request-target) date host'; + const contentTypeHeader = 'content-type: application/json'; + const dateHeader = 'date: ' + this.getDate(); + const hostHeader = 'host: ' + params['api_host']; + const requestTarget = '(request-target): ' + httpMethod + ' ' + apiPath + apiParams; + var signingString = requestTarget + '\n' + dateHeader + '\n' + hostHeader; + var reqHeaders = [contentTypeHeader, dateHeader]; + + if (httpMethod === 'post') { + var body = JSON.stringify({ + 'namespace': namespace, + 'query': mql + }); + headers = headers + ' x-content-sha256 content-type content-length'; + const bodyHeader = 'x-content-sha256: ' + this.encode(this.hash(body)); + const bodyLengthHeader = 'content-length: ' + body.length; + signingString = signingString + '\n' + bodyHeader + '\n' + contentTypeHeader + '\n' + bodyLengthHeader; + reqHeaders.push(bodyHeader, bodyLengthHeader); + } + + const signature = this.encode(this.sign(signingString)); + + reqHeaders.push('Authorization: Signature version="1",keyId="' + params['tenancy_ocid'] + '/' + params['user_ocid'] + '/' + params['fingerprint'] + '",algorithm="rsa-sha256",headers="' + headers + '",signature="' + signature + '"'); + for (var header = 0, headerLength = reqHeaders.length; header < headerLength; header++) { + this.request.addHeader(reqHeaders[header]); + } + + if (params['http_proxy']) { + this.request.setProxy(params['http_proxy']); + Zabbix.log(4, this.zabbixLogPrefix + ' Using http proxy: ' + params['http_proxy']); + } + + if (httpMethod === 'post') { + var apiRateLimitExceeded = false; + do { + const response = this.request.post('https://' + params['api_host'] + apiPath + apiParams, body); + + try { + if (JSON.parse(response)['code'] === 'TooManyRequests') { + + apiRateLimitExceeded = true; + Zabbix.sleep(1000); + } else { + apiRateLimitExceeded = false; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the response: ' + JSON.stringify(response)); + throw 'Could not parse the response. See logs for more information.'; + } + } while (apiRateLimitExceeded); + } else { + const response = this.request.get('https://' + params['api_host'] + apiPath + apiParams); + } + + this.request.clearHeader(); + + if (this.request.getStatus() === parseInt(params['http_status_code'])) { + return response; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Unexpected HTTP response code: ' + this.request.getStatus()); + throw 'Unexpected HTTP response code: ' + this.request.getStatus(); + } + }; + + this.extractData = function (httpMethod, data, keys, compartment) { + try { + data = JSON.parse(data); + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not parse the received JSON object: ' + data); + throw 'Could not parse received JSON object. See logs for more information.'; + } + + if (typeof keys == 'object') { + var returnBuffer = []; + for (var dataObj = 0, dataLength = data.length; dataObj < dataLength; dataObj++) { + + var objectBuffer = {}; + for (var key = 0, keysLength = keys.length; key < keysLength; key++) { + if (data[dataObj][keys[key]] || data[dataObj][keys[key]] == null) { + objectBuffer[keys[key].match(/^[a-z]+$|[A-Z][a-z]+$/)[0].toLowerCase()] = data[dataObj][keys[key]]; + } else { + Zabbix.log(3, this.zabbixLogPrefix + ' Received an unexpected JSON object. Could not get value for key "' + keys[key] + '" in JSON: ' + JSON.stringify(data[dataObj])); + throw 'Received an unexpected JSON object. See logs for more information.'; + } + } + if (typeof compartment != 'undefined' && compartment != '') objectBuffer['compartment'] = compartment; + returnBuffer.push(objectBuffer); + } + return returnBuffer; + } + + try { + if (httpMethod === 'get') { + return data[keys]; + } else { + if (data.length === 0) { + return 0; + } + data = data[0][keys]; + return data[data.length - 1]['value']; + } + } catch (error) { + Zabbix.log(3, this.zabbixLogPrefix + ' Could not find key "' + keys + '" in JSON: ' + JSON.stringify(data)); + throw 'Could not find required key in JSON object. See logs for more information.'; + } + }; + } + + + const params = JSON.parse(value); + validateZabbixParams(['tenancy_ocid', 'user_ocid', 'private_key', 'fingerprint', 'api_host', 'http_status_code'], params); + var oci = new OCI('VCN', 'Get VCNs', params); + var compartments = prepareCompartments(params['compartment_ocid'], params['tenancy_ocid']); + + var buffer = []; + compartments.forEach(function (compartment) { + Array.prototype.push.apply(buffer, oci.extractData('get', oci.executeRequest('get', '/20160918/vcns', '?compartmentId=' + encodeURIComponent(compartment)), ['id', 'displayName', 'lifecycleState', 'freeformTags'], compartment)); + }) + return JSON.stringify(buffer); + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$OCI.VCN.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$OCI.VCN.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STATE}' + value: '{$OCI.VCN.DISCOVERY.STATE.MATCHES}' + formulaid: C + - macro: '{#STATE}' + value: '{$OCI.VCN.DISCOVERY.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discover virtual cloud networks (VCNs).' + host_prototypes: + - uuid: 5329fee3dbc643ebbb99472c67a0a207 + host: 'OCI VCN - {#ID}' + name: 'OCI VCN - {#ID}' + group_links: + - group: + name: Applications + templates: + - name: 'Oracle Cloud Networking by HTTP' + macros: + - macro: '{$OCI.VCN.COMPARTMENT.ID}' + value: '{#COMPARTMENT}' + description: 'Compartment ID of OCI VCN (virtual cloud network).' + - macro: '{$OCI.VCN.ID}' + value: '{#ID}' + description: 'ID of the OCI VCN (virtual cloud network).' + tags: + - tag: oci-compartment-id + value: '{#COMPARTMENT}' + - tag: oci-vcn-name + value: '{#NAME}' + timeout: 10s + parameters: + - name: api_host + value: '{$OCI.API.CORE.HOST}' + - name: compartment_ocid + value: '{$OCI.API.COMPARTMENT.VCN}' + - name: fingerprint + value: '{$OCI.API.FINGERPRINT}' + - name: http_proxy + value: '{$OCI.HTTP.PROXY}' + - name: http_status_code + value: '{$OCI.HTTP.RETURN.CODE.OK}' + - name: private_key + value: '{$OCI.API.PRIVATE.KEY}' + - name: tenancy_ocid + value: '{$OCI.API.TENANCY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Oracle Cloud"}' + - name: user_ocid + value: '{$OCI.API.USER}' + lld_macro_paths: + - lld_macro: '{#COMPARTMENT}' + path: $.compartment + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATE}' + path: $.state + tags: + - tag: class + value: cloud + - tag: target + value: oci + - tag: target + value: oracle-cloud-infrastructure + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Oracle Cloud", e.g. {$HTTP.TLS.VERIFY:"Oracle Cloud"}.' + - macro: '{$OCI.API.AUTONOMOUS.DB.HOST}' + description: 'Host for OCI Autonomous Database API endpoint.' + - macro: '{$OCI.API.COMPARTMENT.AUTONOMOUS.DB}' + description: 'Compartment OCIDs for autonomous databases. Can be a single value or a comma separated list of values.' + - macro: '{$OCI.API.COMPARTMENT.COMPUTE}' + description: 'Compartment OCIDs for compute instances. Can be a single value or a comma separated list of values.' + - macro: '{$OCI.API.COMPARTMENT.OBJECT.STORAGE}' + description: 'Compartment OCIDs for object storage buckets. Can be a single value or a comma separated list of values.' + - macro: '{$OCI.API.COMPARTMENT.VCN}' + description: 'Compartment OCIDs for virtual cloud networks. Can be a single value or a comma separated list of values.' + - macro: '{$OCI.API.COMPARTMENT.VOLUME.BLOCK}' + description: 'Compartment OCIDs for block volumes. Can be a single value or a comma separated list of values.' + - macro: '{$OCI.API.COMPARTMENT.VOLUME.BOOT}' + description: 'Compartment OCIDs for boot volumes. Can be a single value or a comma separated list of values.' + - macro: '{$OCI.API.CORE.HOST}' + description: 'Host for OCI Core Services API endpoint.' + - macro: '{$OCI.API.FINGERPRINT}' + type: SECRET_TEXT + description: 'Fingerprint of private key.' + - macro: '{$OCI.API.OBJECT.STORAGE.HOST}' + description: 'Host for OCI Object Storage API endpoint.' + - macro: '{$OCI.API.PRIVATE.KEY}' + type: SECRET_TEXT + description: 'Entire private key for API access.' + - macro: '{$OCI.API.TELEMETRY.HOST}' + description: 'Host for OCI Monitoring API endpoint.' + - macro: '{$OCI.API.TENANCY}' + description: 'OCID of tenancy.' + - macro: '{$OCI.API.USER}' + description: 'OCID of user.' + - macro: '{$OCI.AUTONOMOUS.DB.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of autonomous database names to allow in discovery.' + - macro: '{$OCI.AUTONOMOUS.DB.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of autonomous database names to ignore in discovery.' + - macro: '{$OCI.AUTONOMOUS.DB.DISCOVERY.STATE.MATCHES}' + value: '.*' + description: 'Sets the regex string of autonomous database states to allow in discovery.' + - macro: '{$OCI.AUTONOMOUS.DB.DISCOVERY.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of autonomous database states to ignore in discovery.' + - macro: '{$OCI.COMPUTE.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of compute instance names to allow in discovery.' + - macro: '{$OCI.COMPUTE.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of compute instance names to ignore in discovery.' + - macro: '{$OCI.COMPUTE.DISCOVERY.STATE.MATCHES}' + value: '.*' + description: 'Sets the regex string of compute instance states to allow in discovery.' + - macro: '{$OCI.COMPUTE.DISCOVERY.STATE.NOT_MATCHES}' + value: TERMINATED + description: 'Sets the regex string of compute instance states to ignore in discovery.' + - macro: '{$OCI.HTTP.PROXY}' + description: 'Set an HTTP proxy for OCI API requests if needed.' + - macro: '{$OCI.HTTP.RETURN.CODE.OK}' + value: '200' + description: 'Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.' + - macro: '{$OCI.OBJECT.STORAGE.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Set an HTTP proxy for OCI API requests if needed.' + - macro: '{$OCI.OBJECT.STORAGE.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Set an HTTP proxy for OCI API requests if needed.' + - macro: '{$OCI.VCN.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of virtual cloud network names to allow in discovery.' + - macro: '{$OCI.VCN.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of virtual cloud network names to ignore in discovery.' + - macro: '{$OCI.VCN.DISCOVERY.STATE.MATCHES}' + value: '.*' + description: 'Sets the regex string of virtual cloud network states to allow in discovery.' + - macro: '{$OCI.VCN.DISCOVERY.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of virtual cloud network states to ignore in discovery.' + - macro: '{$OCI.VOLUME.BLOCK.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of block volume names to allow in discovery.' + - macro: '{$OCI.VOLUME.BLOCK.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of block volume names to ignore in discovery.' + - macro: '{$OCI.VOLUME.BLOCK.DISCOVERY.STATE.MATCHES}' + value: '.*' + description: 'Sets the regex string of block volume states to allow in discovery.' + - macro: '{$OCI.VOLUME.BLOCK.DISCOVERY.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of block volume states to ignore in discovery.' + - macro: '{$OCI.VOLUME.BOOT.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of boot volume names to allow in discovery.' + - macro: '{$OCI.VOLUME.BOOT.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of boot volume names to ignore in discovery.' + - macro: '{$OCI.VOLUME.BOOT.DISCOVERY.STATE.MATCHES}' + value: '.*' + description: 'Sets the regex string of boot volume states to allow in discovery.' + - macro: '{$OCI.VOLUME.BOOT.DISCOVERY.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of boot volume states to ignore in discovery.' diff --git a/Oracle_by_ODBC.yaml b/Oracle_by_ODBC.yaml new file mode 100644 index 0000000..dd12393 --- /dev/null +++ b/Oracle_by_ODBC.yaml @@ -0,0 +1,3000 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 00ade9277d7c41e8b57d638b22d54372 + template: 'Oracle by ODBC' + name: 'Oracle by ODBC' + description: | + 1. Create an Oracle user for monitoring. + + 2. Set the hostname or IP address of the Oracle DB instance, user name and password in host macros ({$ORACLE.HOST}, {$ORACLE.USER} and {$ORACLE.PASSWORD}). + Do not forget to install the Microsoft ODBC driver on the Zabbix server or the Zabbix proxy. + See Oracle documentation for instructions: https://www.oracle.com/database/technologies/releasenote-odbc-ic.html. + + Note! Credentials in the odbc.ini do not work for Oracle. + Note! Be sure that ODBC connects to Oracle with session parameter NLS_NUMERIC_CHARACTERS= '.,' It is important for correct display float numbers in Zabbix. + The "Service's TCP port state" item uses {$ORACLE.HOST} and {$ORACLE.PORT} macros to check the availability of the listener. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + items: + - uuid: 76591a03cf684d30ae15eca8519ce1dd + name: 'Get archive log' + type: ODBC + key: 'db.odbc.get[get_archivelog,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT d.dest_name + FROM v$archive_dest d , v$database db WHERE d.status != 'INACTIVE' AND db.log_mode = 'ARCHIVELOG'; + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the destinations of the log archive.' + tags: + - tag: component + value: raw + - uuid: 10f3da9afb674ff18956aa99229de8dd + name: 'Get ASM disk groups' + type: ODBC + key: 'db.odbc.get[get_asm,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: 'SELECT name AS dgname FROM v$asm_diskgroup;' + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the ASM disk groups.' + tags: + - tag: component + value: raw + - uuid: 7ca479f46bb2435f9f9cb62d404fa37c + name: 'Get database' + type: ODBC + key: 'db.odbc.get[get_db,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: 'SELECT name as DBNAME, DECODE(CDB, ''YES'', ''CDB'', ''No-CDB'') AS TYPE FROM V$DATABASE;' + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the databases in the database management system (DBMS).' + tags: + - tag: component + value: raw + - uuid: dde19b79507648bd80a82a0575bf8671 + name: 'Get instance state' + type: ODBC + key: 'db.odbc.get[get_instance_state,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT + INSTANCE_NAME, + HOST_NAME, + VERSION || '-' || EDITION AS VERSION, + floor((SYSDATE - startup_time)*60*60*24) AS UPTIME, + decode(status,'STARTED',1,'MOUNTED',2,'OPEN',3,'OPEN MIGRATE',4, 0) AS STATUS, + decode(archiver,'STOPPED',1,'STARTED',2,'FAILED',3, 0) AS ARCHIVER, + decode(instance_role,'PRIMARY_INSTANCE',1,'SECONDARY_INSTANCE',2, 0) AS INSTANCE_ROLE + FROM v$instance; + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the state of the current instance.' + tags: + - tag: component + value: raw + - uuid: de5aa291b7da4733ad26d517e8ff55cf + name: 'Get PDB' + type: ODBC + key: 'db.odbc.get[get_pdb,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: 'SELECT CON_ID, name as DBNAME FROM V$PDBS;' + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the pluggable database (PDB) in DBMS.' + tags: + - tag: component + value: raw + - uuid: 3839683749974cdeafd9178bdccb38d6 + name: 'Get system metrics' + type: ODBC + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + delay: 0;m0-59 + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT 'SYS::' || METRIC_NAME AS METRIC, ROUND(VALUE,3) as VALUE + FROM V$SYSMETRIC WHERE GROUP_ID = 2 + UNION + SELECT 'SYSPARAM::' || INITCAP(NAME) AS METRIC, to_number(VALUE) + FROM V$SYSTEM_PARAMETER WHERE NAME IN ('sessions', 'processes', 'db_files') + UNION + SELECT 'SESSION::Long time locked' ,count(*) FROM V$SESSION s WHERE s.BLOCKING_SESSION IS NOT NULL AND s.BLOCKING_SESSION_STATUS='VALID' AND s.SECONDS_IN_WAIT > {$ORACLE.SESSION.LOCK.MAX.TIME} + UNION + SELECT 'SESSION::Lock rate' ,(cnt_block / cnt_all)* 100 pct + FROM ( SELECT COUNT(*) cnt_block FROM v$session WHERE blocking_session IS NOT NULL), ( SELECT COUNT(*) cnt_all FROM v$session) + UNION + SELECT 'SESSION::Long time locked' ,count(*) FROM V$SESSION s WHERE s.BLOCKING_SESSION IS NOT NULL AND s.BLOCKING_SESSION_STATUS='VALID' AND s.SECONDS_IN_WAIT > {$ORACLE.SESSION.LOCK.MAX.TIME} + UNION + SELECT 'SESSION::Total', COUNT(*) AS VALUE FROM V$SESSION + UNION + SELECT 'SESSION::Concurrency rate', NVL(ROUND(SUM(duty_act.cnt*100 / num_cores.val)), 0) + FROM + ( SELECT DECODE(session_state, 'ON CPU', 'CPU', wait_class) wait_class, ROUND(COUNT(*)/(60 * 15), 1) cnt + FROM v$active_session_history sh + WHERE sh.sample_time >= SYSDATE - 15 / 1440 AND DECODE(session_state, 'ON CPU', 'CPU', wait_class) IN('Concurrency') + GROUP BY DECODE(session_state, 'ON CPU', 'CPU', wait_class)) duty_act, + ( SELECT SUM(value) val FROM v$osstat WHERE stat_name = 'NUM_CPU_CORES') num_cores + UNION + SELECT 'PGA::' || INITCAP(NAME), VALUE FROM V$PGASTAT + UNION + SELECT 'FRA::Space Limit' AS METRIC, space_limit AS VALUE FROM V$RECOVERY_FILE_DEST + UNION + SELECT 'FRA::Space Used', space_used AS VALUE FROM V$RECOVERY_FILE_DEST + UNION + SELECT 'FRA::Space Reclaimable', space_reclaimable AS VALUE FROM V$RECOVERY_FILE_DEST + UNION + SELECT 'FRA::Number Of Files', number_of_files AS VALUE FROM V$RECOVERY_FILE_DEST + UNION + SELECT 'FRA::Usable Pct', DECODE(space_limit, 0, 0,(100-(100 *(space_used-space_reclaimable)/ space_limit))) AS VALUE FROM V$RECOVERY_FILE_DEST + UNION + SELECT 'FRA::Restore Point', COUNT(*) AS VALUE FROM V$RESTORE_POINT + UNION + SELECT 'PROC::Procnum', COUNT(*) FROM v$process + UNION + SELECT 'DATAFILE::Count', COUNT(*) FROM v$datafile + UNION + SELECT 'SGA::' || INITCAP(pool), SUM(bytes) FROM V$SGASTAT + WHERE pool IN ( 'java pool', 'large pool' ) GROUP BY pool + UNION + SELECT 'SGA::Shared Pool', SUM(bytes) FROM V$SGASTAT + WHERE pool = 'shared pool' AND name NOT IN ('library cache', 'dictionary cache', 'free memory', 'sql area') + UNION + SELECT 'SGA::' || INITCAP(name), bytes FROM V$SGASTAT + WHERE pool IS NULL AND name IN ('log_buffer', 'fixed_sga') + UNION + SELECT 'SGA::Buffer_Cache', SUM(bytes) FROM V$SGASTAT + WHERE pool IS NULL AND name IN ('buffer_cache', 'db_block_buffers') + UNION + SELECT 'REDO::Available', count(*) from v$log t where t.status in ('INACTIVE', 'UNUSED') + UNION + SELECT 'USER::Expire password', ROUND(DECODE(SIGN(NVL(u.expiry_date, SYSDATE + 999) - SYSDATE),-1, 0, NVL(u.expiry_date, SYSDATE + 999) - SYSDATE)) exp_passwd_days_before + FROM dba_users u WHERE username = UPPER('{$ORACLE.USER}'); + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the values of the system metrics.' + tags: + - tag: component + value: raw + - uuid: 2310462a8936465c8a62d8586ab0ba65 + name: 'Get tablespace' + type: ODBC + key: 'db.odbc.get[get_tablespace,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT + CON_ID, + NVL(CON$NAME, 'DB') CON_NAME, + TABLESPACE_NAME TABLESPACE, + CONTENTS + FROM + CDB_TABLESPACES; + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets tablespaces in DBMS.' + tags: + - tag: component + value: raw + - uuid: 7ee99dfbd8dd4048bc2867aaa2fc335e + name: 'Service''s TCP port state' + key: 'net.tcp.service[tcp,{$ORACLE.HOST},{$ORACLE.PORT}]' + delay: 30s + description: 'Checks the availability of Oracle on the TCP port.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + - uuid: 6b6ce717919e45df93015a8f65337055 + name: 'Active parallel sessions' + type: DEPENDENT + key: oracle.active_parallel_sessions + delay: '0' + value_type: FLOAT + description: 'The number of active parallel sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Active Parallel Sessions'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + - uuid: 928b095ffe57404eb6863b06b466524d + name: 'Active serial sessions' + type: DEPENDENT + key: oracle.active_serial_sessions + delay: '0' + value_type: FLOAT + description: 'The number of active serial sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Active Serial Sessions'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + - uuid: 70633c6c4e27410dabcf035dd583f820 + name: 'Average active sessions' + type: DEPENDENT + key: oracle.active_sessions + delay: '0' + value_type: FLOAT + description: 'The average number of active sessions at a point in time that are either working or waiting.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Average Active Sessions'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + - uuid: eb9f4179a87249fc9df9989f58502a12 + name: 'Archiver state' + type: DEPENDENT + key: oracle.archiver_state + delay: '0' + description: 'The status of automatic archiving.' + valuemap: + name: 'Oracle archiver state' + preprocessing: + - type: JSONPATH + parameters: + - $..ARCHIVER.first() + master_item: + key: 'db.odbc.get[get_instance_state,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: 836e01f5247a468dbf1866a744979376 + name: 'Buffer cache hit ratio' + type: DEPENDENT + key: oracle.buffer_cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of buffer cache hits ((LogRead - PhyRead)/LogRead).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Buffer Cache Hit Ratio'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: cache + - uuid: dedafce88267427a8f0b51d74de28c58 + name: 'Global cache blocks corrupted' + type: DEPENDENT + key: oracle.cache_blocks_corrupt + delay: '0' + units: Rps + description: 'The number of blocks that encountered corruption or checksum failure during the interconnect.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Global Cache Blocks Corrupted'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: cache + - uuid: d0d0dbbf1869487d957e60d03e8e3512 + name: 'Global cache blocks lost' + type: DEPENDENT + key: oracle.cache_blocks_lost + delay: '0' + units: Rps + description: 'The number of lost global cache blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Global Cache Blocks Lost'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: cache + - uuid: 50ea6f52e01c44e5b9039add026faaa2 + name: 'Cursor cache hit ratio' + type: DEPENDENT + key: oracle.cursor_cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of cursor cache hits (CursorCacheHit/SoftParse).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Cursor Cache Hit Ratio'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: cache + - uuid: 82228fbb70bf4660aa64bdde2f57686d + name: 'Database CPU time ratio' + type: DEPENDENT + key: oracle.database_cpu_time_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio calculated by dividing the total CPU (used by the database) by the Oracle time model statistic DB time.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Database CPU Time Ratio'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: cpu + - uuid: 877272b0b9424d279b1efaa6536eb19b + name: 'Database wait time ratio' + type: DEPENDENT + key: oracle.database_wait_time_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'Wait time - the time that the server process spends waiting for available shared resources to be released by other server processes such as latches, locks, data buffers, etc.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Database Wait Time Ratio'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: 751fe010337e40a5a12fc24d327ffcee + name: 'Datafiles count' + type: DEPENDENT + key: oracle.db_files_count + delay: '0' + description: 'The current number of datafiles.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''DATAFILE::Count'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: datafiles + - uuid: a0e263bf207042058b5d9d2e735e05eb + name: 'Datafiles limit' + type: DEPENDENT + key: oracle.db_files_limit + delay: '0' + description: 'The maximum allowable number of datafiles.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYSPARAM::Db_Files'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: datafiles + - uuid: 22d9cccf44924f99aaf444c80b3beab9 + name: 'Disk sort per second' + type: DEPENDENT + key: oracle.disk_sorts + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of sorts going to disk per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Disk Sort Per Sec'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: 46e0598b703a412e96a3b18e2248e754 + name: 'Enqueue timeouts per second' + type: DEPENDENT + key: oracle.enqueue_timeouts_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'Enqueue timeouts per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Enqueue Timeouts Per Sec'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: beca246cadb44e48a20bc8809624a6f4 + name: 'FRA, Number of files' + type: DEPENDENT + key: oracle.fra_number_of_files + delay: '0' + description: 'The number of files in the FRA.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''FRA::Number Of Files'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: fra + - uuid: 61eb041ea3b349df88cb3495b383fbe4 + name: 'FRA, Number of restore points' + type: DEPENDENT + key: oracle.fra_restore_point + delay: '0' + value_type: FLOAT + description: 'Number of restore points in the FRA.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''FRA::Restore Point'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: fra + - uuid: 375e094a1a024a19b8e69e4f362c0163 + name: 'FRA, Space limit' + type: DEPENDENT + key: oracle.fra_space_limit + delay: '0' + units: B + description: 'The maximum amount of disk space (in bytes) that the database can use for the Fast Recovery Area (FRA).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''FRA::Space Limit'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: fra + - uuid: 4028e389cc9e4b24946657f1ded1ba47 + name: 'FRA, Space reclaimable' + type: DEPENDENT + key: oracle.fra_space_reclaimable + delay: '0' + units: B + description: 'The total amount of disk space (in bytes) that can be created by deleting obsolete, redundant, and other low-priority files from the FRA.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''FRA::Space Reclaimable'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: fra + - uuid: 40b03e917c3c4c0385536336e48affcb + name: 'FRA, Used space' + type: DEPENDENT + key: oracle.fra_space_used + delay: '0' + units: B + description: 'The amount of disk space (in bytes) used by FRA files created in the current and all the previous FRAs.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''FRA::Space Used'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: fra + - uuid: b29c93eecf9d4d1b8c5de1ce9721801f + name: 'FRA, Usable space in %' + type: DEPENDENT + key: oracle.fra_usable_pct + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of space usable in the FRA.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''FRA::Usable Pct'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: fra + - uuid: 3243beb0fe70425f8d71938a52f765ae + name: 'GC CR block received per second' + type: DEPENDENT + key: oracle.gc_cr_block_received_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The global cache (GC) and the consistent read (CR) block received per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::GC CR Block Received Per Second'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: cache + - uuid: cc3c9200deed42e5a8e187e82c123009 + name: 'Instance role' + type: DEPENDENT + key: oracle.instance.role + delay: '0' + description: 'Indicates whether the instance is an active instance or an inactive secondary instance.' + valuemap: + name: 'Oracle instance role' + preprocessing: + - type: JSONPATH + parameters: + - $..INSTANCE_ROLE.first() + master_item: + key: 'db.odbc.get[get_instance_state,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: 3da27d558e034236a42b3b94bfa13159 + name: 'Instance hostname' + type: DEPENDENT + key: oracle.instance_hostname + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the host machine.' + preprocessing: + - type: JSONPATH + parameters: + - $..HOST_NAME.first() + master_item: + key: 'db.odbc.get[get_instance_state,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + triggers: + - uuid: 618a3e3c82dc4ccba82477afdd100a98 + expression: 'last(/Oracle by ODBC/oracle.instance_hostname,#1)<>last(/Oracle by ODBC/oracle.instance_hostname,#2) and length(last(/Oracle by ODBC/oracle.instance_hostname))>0' + name: 'Oracle: Instance hostname has changed' + event_name: 'Oracle: Instance hostname has changed (new hostname received: {ITEM.VALUE})' + priority: INFO + description: 'An Oracle Database instance hostname has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4e5df3339a2940c6b3cdad6f5b65234b + name: 'Instance name' + type: DEPENDENT + key: oracle.instance_name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the instance.' + preprocessing: + - type: JSONPATH + parameters: + - $..INSTANCE_NAME.first() + master_item: + key: 'db.odbc.get[get_instance_state,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + triggers: + - uuid: 2fe53d1d931e4eb38fef10a3171c1665 + expression: 'last(/Oracle by ODBC/oracle.instance_name,#1)<>last(/Oracle by ODBC/oracle.instance_name,#2) and length(last(/Oracle by ODBC/oracle.instance_name))>0' + name: 'Oracle: Instance name has changed' + event_name: 'Oracle: Instance name has changed (new name received: {ITEM.VALUE})' + priority: INFO + description: 'An Oracle Database instance name has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 632a953eead74114bdaf640bbf5929a5 + name: 'Instance status' + type: DEPENDENT + key: oracle.instance_status + delay: '0' + description: 'The status of the instance.' + valuemap: + name: 'Oracle instance status' + preprocessing: + - type: JSONPATH + parameters: + - $..STATUS.first() + master_item: + key: 'db.odbc.get[get_instance_state,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: 9a3084287a354fb0b0eb5de377a6de92 + name: 'Library cache hit ratio' + type: DEPENDENT + key: oracle.library_cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of library cache hits (Hits/Pins).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Library Cache Hit Ratio'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: cache + - uuid: ac44884b2518485eae4bc7caf46799a8 + name: 'Logons per second' + type: DEPENDENT + key: oracle.logons_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of logon attempts.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Logons Per Sec'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: f7691a5d7ef74a4d99cac61835052fba + name: 'Long table scans per second' + type: DEPENDENT + key: oracle.long_table_scans_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of long table scans per second. A table is considered long if it is not cached and if its high water mark is greater than five blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Long Table Scans Per Sec'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: 49445baea18640ea844f869c51aee565 + name: 'Memory sorts ratio' + type: DEPENDENT + key: oracle.memory_sorts_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sorts (from `ORDER BY` clauses or index building) that are done to disk vs. in-memory.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Memory Sorts Ratio'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: 786188c7719048cb863450f98ab921ac + name: 'PGA, Global memory bound' + type: DEPENDENT + key: oracle.pga_global_bound + delay: '0' + units: B + description: 'The maximum size of a work area executed in automatic mode.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''PGA::Global Memory Bound'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + - tag: component + value: pga + - uuid: 1f532b6599f34db285b60a8879638d75 + name: 'PGA, Aggregate target parameter' + type: DEPENDENT + key: oracle.pga_target + delay: '0' + units: B + description: 'The current value of the `PGA_AGGREGATE_TARGET` initialization parameter. If this parameter is not set, then its value is "0" and automatic management of the PGA memory is disabled.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''PGA::Aggregate Pga Target Parameter'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + - tag: component + value: pga + - uuid: 001bf0d526cb455386f5a63e6bb8f410 + name: 'Physical reads per second' + type: DEPENDENT + key: oracle.physical_reads_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'Reads per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Physical Reads Per Sec'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: disk + - uuid: 2f305e09eafd4f7a9360f138be20a631 + name: 'Physical reads bytes per second' + type: DEPENDENT + key: oracle.physical_read_bytes_rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Read bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Physical Read Bytes Per Sec'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: disk + - uuid: d20f81d99e6647479abcc9ffcbc208fc + name: 'Physical writes per second' + type: DEPENDENT + key: oracle.physical_writes_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'Writes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Physical Writes Per Sec'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: disk + - uuid: e2e21384fbae431a88f1eef610b0307b + name: 'Physical writes bytes per second' + type: DEPENDENT + key: oracle.physical_write_bytes_rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Write bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Physical Write Bytes Per Sec'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: disk + - uuid: 533ae91bb94e4077870aa362a8cea7e5 + name: 'Number of processes' + type: DEPENDENT + key: oracle.processes_count + delay: '0' + description: 'The current number of user processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''PROC::Procnum'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: system + - uuid: 721c04b5f3ba42d0ae7acceb5876c360 + name: 'Processes limit' + type: DEPENDENT + key: oracle.processes_limit + delay: '0' + description: 'The maximum number of user processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYSPARAM::Processes'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: system + - uuid: 65064008eef54657b7b7f2beeba70b0a + name: 'Redo logs available to switch' + type: DEPENDENT + key: oracle.redo_logs_available + delay: '0' + description: 'The number of inactive/unused redo logs available for log switching.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''REDO::Available'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + triggers: + - uuid: 1348b1e854e64d34b6b00be118f045c3 + expression: 'max(/Oracle by ODBC/oracle.redo_logs_available,5m) < {$ORACLE.REDO.MIN.WARN}' + name: 'Oracle: Number of REDO logs available for switching is too low' + event_name: 'Oracle: Number of REDO logs available for switching is too low (less {$ORACLE.REDO.MIN.WARN} for 5 min)' + priority: WARNING + description: 'The number of inactive/unused redos available for log switching is low (risk of database downtime).' + tags: + - tag: scope + value: capacity + - uuid: ab298981f26a4ec6849e1155ce35ee76 + name: 'Rows per sort' + type: DEPENDENT + key: oracle.rows_per_sort + delay: '0' + value_type: FLOAT + description: 'The average number of rows per sort for all types of sorts performed.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Rows Per Sort'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: ddbdd3d7d40d42b9b9711470516a5aec + name: 'SQL service response time' + type: DEPENDENT + key: oracle.service_response_time + delay: '0' + value_type: FLOAT + units: s + description: 'The Structured Query Language (SQL) service response time expressed in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::SQL Service Response Time'')].VALUE.first()' + - type: MULTIPLIER + parameters: + - '0.01' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: e269a27f3c3f47ae86fef231da2a6fce + name: 'Active background sessions' + type: DEPENDENT + key: oracle.session_active_background + delay: '0' + value_type: FLOAT + description: 'The number of active background sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SESSION::Active Background'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + - uuid: 6e8defc1e3e2485784d8bef6e2b988c7 + name: 'Active user sessions' + type: DEPENDENT + key: oracle.session_active_user + delay: '0' + value_type: FLOAT + description: 'The number of active user sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SESSION::Active User'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + - uuid: a3f2b314a6354d238d6604afa2333ae6 + name: 'Sessions concurrency' + type: DEPENDENT + key: oracle.session_concurrency_rate + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of concurrency. Concurrency is a database behavior when different transactions request to change the same resource. In the case of modifying data transactions, it sequentially temporarily blocks the right to change the data, and the rest of the transactions wait for access. When the access to a resource is locked for a long time, the concurrency grows (like the transaction queue), often leaving an extremely negative impact on performance. A high contention value does not indicate the root cause of the problem, but is a signal to search for it.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SESSION::Concurrency rate'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + triggers: + - uuid: 7099e4a160c1446395b9e5b721db7b38 + expression: 'min(/Oracle by ODBC/oracle.session_concurrency_rate,5m) > {$ORACLE.CONCURRENCY.MAX.WARN}' + name: 'Oracle: Too high database concurrency' + event_name: 'Oracle: Too high database concurrency (over {$ORACLE.CONCURRENCY.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'The concurrency rate exceeds `{$ORACLE.CONCURRENCY.MAX.WARN}`%. A high contention value does not indicate the root cause of the problem, but is a signal to review resource consumption (determine the "heaviest" queries in the database, trace sessions, etc.) This will help find the root cause and possible optimization points both in database configuration and the logic of building queries.' + tags: + - tag: scope + value: performance + - uuid: 3459ae7c82454882a9655db8a83120fd + name: 'Session count' + type: DEPENDENT + key: oracle.session_count + delay: '0' + value_type: FLOAT + description: 'The session count.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SESSION::Total'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + - uuid: 5abf01d0bad442e7817752ae01dfc2d2 + name: 'Inactive user sessions' + type: DEPENDENT + key: oracle.session_inactive_user + delay: '0' + value_type: FLOAT + description: 'The number of inactive user sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SESSION::Inactive User'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + - uuid: ebc142a0784041d2bbe982c4d766b98f + name: 'Sessions limit' + type: DEPENDENT + key: oracle.session_limit + delay: '0' + description: 'The user and system sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYSPARAM::Sessions'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + - uuid: 64361f8862e8482d86a8bdd71c709142 + name: 'Sessions lock rate' + type: DEPENDENT + key: oracle.session_lock_rate + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of locked sessions. Locks are mechanisms that prevent destructive interaction between transactions accessing the same resource - either user objects, such as tables and rows or system objects not visible to users, such as shared data structures in memory and data dictionary rows.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SESSION::Lock rate'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + triggers: + - uuid: 9a75f3a039094ca89c2ba7e3fa93b1a8 + expression: 'min(/Oracle by ODBC/oracle.session_lock_rate,5m) > {$ORACLE.SESSIONS.LOCK.MAX.WARN}' + name: 'Oracle: Too many locked sessions' + event_name: 'Oracle: Too many locked sessions (over {$ORACLE.SESSIONS.LOCK.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'The number of locked sessions exceeds `{$ORACLE.SESSIONS.LOCK.MAX.WARN}`% of the running sessions.' + tags: + - tag: scope + value: performance + - uuid: a9669cb6290b4a158e7f02c1f079b6f9 + name: 'Sessions locked over {$ORACLE.SESSION.LOCK.MAX.TIME}s' + type: DEPENDENT + key: oracle.session_long_time_locked + delay: '0' + value_type: FLOAT + description: 'The count of the prolongedly locked sessions. (You can change the duration of the maximum session lock in seconds for a query using the `{$ORACLE.SESSION.LOCK.MAX.TIME}` macro. Default = 600 s).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SESSION::Long time locked'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: sessions + triggers: + - uuid: a8f5ec966f5e4c72baad1380eda4d0a2 + expression: 'min(/Oracle by ODBC/oracle.session_long_time_locked,5m) > {$ORACLE.SESSION.LONG.LOCK.MAX.WARN}' + name: 'Oracle: Too many sessions locked' + event_name: 'Oracle: Too many sessions locked over {$ORACLE.SESSION.LOCK.MAX.TIME}s (over {$ORACLE.SESSION.LONG.LOCK.MAX.WARN} for 5 min)' + priority: WARNING + description: 'The number of locked sessions exceeding `{$ORACLE.SESSION.LOCK.MAX.TIME}` seconds is too high. Long-term locks can negatively affect the database performance. Therefore, if they are detected, you should first find the most difficult queries from the database point of view and then analyze possible resource leaks.' + tags: + - tag: scope + value: performance + - uuid: 94fe3a129f08415bb7e02a862bd9e8a8 + name: 'SGA, buffer cache' + type: DEPENDENT + key: oracle.sga_buffer_cache + delay: '0' + units: B + description: 'The size of standard block cache.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SGA::Buffer_Cache'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: cache + - tag: component + value: sga + - uuid: 062fbd601d6f41208e364c80f1d08b1e + name: 'SGA, fixed' + type: DEPENDENT + key: oracle.sga_fixed + delay: '0' + units: B + description: 'The fixed System Global Area (SGA) is an internal housekeeping area.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SGA::Fixed_Sga'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + - tag: component + value: sga + - uuid: 614066ff91e144dbae58b4920c1db932 + name: 'SGA, java pool' + type: DEPENDENT + key: oracle.sga_java_pool + delay: '0' + units: B + description: 'The memory is allocated from the Java pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SGA::Java Pool'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + - tag: component + value: sga + - uuid: 0f726310d4a8426188658f7c093c3989 + name: 'SGA, large pool' + type: DEPENDENT + key: oracle.sga_large_pool + delay: '0' + units: B + description: 'The memory is allocated from a large pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SGA::Large Pool'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + - tag: component + value: sga + - uuid: 03e9cea3887447349c9116b89b1be026 + name: 'SGA, log buffer' + type: DEPENDENT + key: oracle.sga_log_buffer + delay: '0' + units: B + description: 'The number of bytes allocated for the redo log buffer.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SGA::Log_Buffer'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + - tag: component + value: sga + - uuid: eb4c2f63ef8449d99794e5fdb7fed7bf + name: 'SGA, shared pool' + type: DEPENDENT + key: oracle.sga_shared_pool + delay: '0' + units: B + description: 'The memory is allocated from a shared pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SGA::Shared Pool'')].VALUE.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + - tag: component + value: sga + - uuid: b14b0126cf64436ea206ec151984cd95 + name: 'Shared pool free %' + type: DEPENDENT + key: oracle.shared_pool_free + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free memory of a shared pool expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Shared Pool Free %'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + triggers: + - uuid: 8facfa98bcd3447ea53d0a3d09ada933 + expression: 'max(/Oracle by ODBC/oracle.shared_pool_free,5m)<{$ORACLE.SHARED.FREE.MIN.WARN}' + name: 'Oracle: Shared pool free is too low' + event_name: 'Oracle: Shared pool free is too low (less {$ORACLE.SHARED.FREE.MIN.WARN}% for 5m)' + priority: WARNING + description: 'The free memory percent of the shared pool has been less than `{$ORACLE.SHARED.FREE.MIN.WARN}`% for the last 5 minutes.' + tags: + - tag: scope + value: capacity + - uuid: 8b3e958d76d14ef7a6869634106f1277 + name: 'Total sorts per user call' + type: DEPENDENT + key: oracle.sorts_per_user_call + delay: '0' + value_type: FLOAT + description: 'The total sorts per user call.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Total Sorts Per User Call'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: fc2cff59b0804989989179e1dbc338b5 + name: 'Temp space used' + type: DEPENDENT + key: oracle.temp_space_used + delay: '0' + value_type: FLOAT + units: B + description: 'Used temporary space.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::Temp Space Used'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: 085c097ab3b34f07b262caf80703b469 + name: 'PGA, Total allocated' + type: DEPENDENT + key: oracle.total_pga_allocated + delay: '0' + units: B + description: 'The current amount of the PGA memory allocated by the instance. The Oracle Database attempts to keep this number below the value of the `PGA_AGGREGATE_TARGET` initialization parameter. However, it is possible for the PGA allocated to exceed that value by a small percentage and for a short period of time when the work area workload is increasing very rapidly or when `PGA_AGGREGATE_TARGET` is set to a small value.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''PGA::Total Pga Allocated'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + - tag: component + value: pga + - uuid: c2c18a0a502d4fbe91db25d29ae57d45 + name: 'PGA, Total freeable' + type: DEPENDENT + key: oracle.total_pga_freeable + delay: '0' + units: B + description: 'The number of bytes of the PGA memory in all processes that could be freed back to the OS.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''PGA::Total Freeable Pga Memory'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + - tag: component + value: pga + - uuid: e0e88ce92ece4ca0b776f09dc4ec5039 + name: 'PGA, Total inuse' + type: DEPENDENT + key: oracle.total_pga_used + delay: '0' + units: B + description: 'The amount of Program Global Area (PGA) memory currently consumed by work areas. This number can be used to determine how much memory is consumed by other consumers of the PGA memory (for example, PL/SQL or Java).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''PGA::Total Pga Inuse'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: memory + - tag: component + value: pga + - uuid: 3c817d2b45fc471aa86771ce1739de6f + name: Uptime + type: DEPENDENT + key: oracle.uptime + delay: '0' + trends: '0' + units: s + description: 'The Oracle instance uptime expressed in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $..UPTIME.first() + master_item: + key: 'db.odbc.get[get_instance_state,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + triggers: + - uuid: 03a4fb1d6e684c9b82c1317699c71468 + expression: 'nodata(/Oracle by ODBC/oracle.uptime,5m)=1' + name: 'Oracle: Failed to fetch info data' + event_name: 'Oracle: Failed to fetch info data (or no data for 5m)' + priority: WARNING + description: 'Zabbix has not received any data for the items for the last 5 minutes. The database might be unavailable for connecting.' + dependencies: + - name: 'Oracle: Port {$ORACLE.PORT} is unavailable' + expression: 'max(/Oracle by ODBC/net.tcp.service[tcp,{$ORACLE.HOST},{$ORACLE.PORT}],#3)=0 and max(/Oracle by ODBC/proc.num[,,,"tnslsnr LISTENER"],#3)>0' + tags: + - tag: scope + value: availability + - uuid: 431201a1ce0d47948751c7e4e6bbeb92 + expression: 'last(/Oracle by ODBC/oracle.uptime)<10m' + name: 'Oracle: Host has been restarted' + event_name: 'Oracle: {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: ad275dbbe8af483b93d37e416c3f1fd2 + name: 'User ''{$ORACLE.USER}'' expire password' + type: DEPENDENT + key: oracle.user_expire_password + delay: '0' + value_type: FLOAT + units: days + description: 'The number of days before the Zabbix account password expires.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''USER::Expire password'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + triggers: + - uuid: a909d8cccacf4470a3e2da88b4e5c3d5 + expression: 'last(/Oracle by ODBC/oracle.user_expire_password) < {$ORACLE.EXPIRE.PASSWORD.MIN.WARN}' + name: 'Oracle: Zabbix account will expire soon' + event_name: 'Oracle: Zabbix account will expire soon (under {$ORACLE.EXPIRE.PASSWORD.MIN.WARN} days)' + priority: WARNING + description: 'The password for the Zabbix user in the database expires soon.' + tags: + - tag: scope + value: notice + - uuid: 3455378f6ecf4ecb93a69d2387e4a57d + name: 'User rollbacks per second' + type: DEPENDENT + key: oracle.user_rollbacks_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of times that users manually issued the `ROLLBACK` statement or an error occurred during the users'' transactions.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.METRIC==''SYS::User Rollbacks Per Sec'')].VALUE.first()' + master_item: + key: 'db.odbc.get[get_system_metrics,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + - uuid: 45143cb0d0284608bf48897885a91bbb + name: Version + type: DEPENDENT + key: oracle.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The Oracle Server version.' + preprocessing: + - type: JSONPATH + parameters: + - $..VERSION.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'db.odbc.get[get_instance_state,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: application + triggers: + - uuid: a5dd4fe627c44afebdfe7beeefc4ec3d + expression: 'last(/Oracle by ODBC/oracle.version,#1)<>last(/Oracle by ODBC/oracle.version,#2) and length(last(/Oracle by ODBC/oracle.version))>0' + name: 'Oracle: Version has changed' + event_name: 'Oracle: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + description: 'The Oracle Database version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bf89a6ced768432a9cc3c27e1e3159d0 + name: 'Number of LISTENER processes' + key: 'proc.num[,,,"tnslsnr LISTENER"]' + delay: 30s + description: 'The number of running listener processes.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + triggers: + - uuid: eb5e531eb3f142569775349a126d1ab0 + expression: 'max(/Oracle by ODBC/proc.num[,,,"tnslsnr LISTENER"],#3)=0' + name: 'Oracle: LISTENER process is not running' + priority: DISASTER + description: 'The Oracle listener process is not running.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: a527b14b1cee4115be5c5e9387af821b + name: 'Archive log discovery' + type: DEPENDENT + key: oracle.archivelog.discovery + delay: '0' + description: 'Used for the discovery of the log archive.' + item_prototypes: + - uuid: 1a6e01f90dca47459975632c14ce5a39 + name: 'Archivelog ''{#DEST_NAME}'': Get archive log info' + type: ODBC + key: 'db.odbc.get[get_archivelog_{#DEST_NAME}_stat,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT + d.dest_name, DECODE (d.status, 'VALID',3, 'DEFERRED', 2, 'ERROR', 1, 0) AS status, + d.log_sequence, + d.error + FROM v$archive_dest d , v$database db + WHERE d.dest_name = '{#DEST_NAME}' AND d.status != 'INACTIVE' AND db.log_mode = 'ARCHIVELOG'; + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the archive log statistics.' + preprocessing: + - type: JSONPATH + parameters: + - $.first() + error_handler: DISCARD_VALUE + tags: + - tag: component + value: archive-log + - tag: component + value: raw + - uuid: 06e47a56685e4dd784628c40d5038c88 + name: 'Archivelog ''{#DEST_NAME}'': Error' + type: DEPENDENT + key: 'oracle.archivelog_error["{#DEST_NAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Displays the error message.' + preprocessing: + - type: JSONPATH + parameters: + - $.ERROR + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_archivelog_{#DEST_NAME}_stat,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: archive-log + - tag: destination + value: '{#DEST_NAME}' + - uuid: 1948e6bfaa48451cac6ee83a16b07826 + name: 'Archivelog ''{#DEST_NAME}'': Last sequence' + type: DEPENDENT + key: 'oracle.archivelog_log_sequence["{#DEST_NAME}"]' + delay: '0' + description: 'Identifies the sequence number of the last archived redo log to be archived.' + preprocessing: + - type: JSONPATH + parameters: + - $.LOG_SEQUENCE + master_item: + key: 'db.odbc.get[get_archivelog_{#DEST_NAME}_stat,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: archive-log + - tag: destination + value: '{#DEST_NAME}' + - uuid: 0d561969fc2942fea854541a03b6a490 + name: 'Archivelog ''{#DEST_NAME}'': Status' + type: DEPENDENT + key: 'oracle.archivelog_log_status["{#DEST_NAME}"]' + delay: '0' + description: | + Identifies the current status of the destination where: + 1 - VALID; + 2 - DEFERRED; + 3 - ERROR; + 0 - UNKNOWN. + valuemap: + name: 'Oracle Archivelog status' + preprocessing: + - type: JSONPATH + parameters: + - $.STATUS + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'db.odbc.get[get_archivelog_{#DEST_NAME}_stat,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: archive-log + - tag: destination + value: '{#DEST_NAME}' + trigger_prototypes: + - uuid: 1202e75015304115a4ccdab027617816 + expression: 'last(/Oracle by ODBC/oracle.archivelog_log_status["{#DEST_NAME}"])<2' + name: 'Oracle: Archivelog ''{#DEST_NAME}'': Log Archive is not valid' + priority: HIGH + description: | + The trigger will launch if the archive log destination is not in one of these states: + 2 - DEFERRED; + 3 - VALID. + tags: + - tag: scope + value: availability + master_item: + key: 'db.odbc.get[get_archivelog,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + lld_macro_paths: + - lld_macro: '{#DEST_NAME}' + path: $.DEST_NAME + - uuid: c40708b755c7464bb064b7bffc584381 + name: 'ASM disk groups discovery' + type: DEPENDENT + key: oracle.asm.discovery + delay: '0' + description: 'Used for discovering the ASM disk groups.' + item_prototypes: + - uuid: 63fad55a2ced487aa30017b33bf1692e + name: 'ASM ''{#DGNAME}'': Get ASM stats' + type: ODBC + key: 'db.odbc.get[get_asm_{#DGNAME}_stat,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT + name AS dgname, + ROUND(total_mb / DECODE(TYPE, 'NORMAL', 2, 'HIGH', 3, 'EXTERN', 1)*1024*1024) AS size_byte, + ROUND(usable_file_mb*1024*1024 ) AS free_size_byte, + ROUND(100-(usable_file_mb /(total_mb / DECODE(TYPE, 'NORMAL', 2, 'HIGH', 3, 'EXTERN', 1)))* 100, 2) AS used_percent + FROM v$asm_diskgroup_stat + WHERE name = '{#DGNAME}'; + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the ASM disk group statistics.' + preprocessing: + - type: JSONPATH + parameters: + - $.first() + error_handler: DISCARD_VALUE + tags: + - tag: component + value: asm + - tag: component + value: raw + - uuid: da6116af9f54452ab1694af8eef9f38d + name: 'ASM ''{#DGNAME}'': Free size' + type: DEPENDENT + key: 'oracle.asm_free_size["{#DGNAME}"]' + delay: '0' + units: B + description: 'The free size of the ASM disk group.' + preprocessing: + - type: JSONPATH + parameters: + - $.FREE_SIZE_BYTE + master_item: + key: 'db.odbc.get[get_asm_{#DGNAME}_stat,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: asm + - tag: disk-group + value: '{#DGNAME}' + - uuid: 7f2a51d7eeb64c5b8929dcb0e3a49273 + name: 'ASM ''{#DGNAME}'': Total size' + type: DEPENDENT + key: 'oracle.asm_total_size["{#DGNAME}"]' + delay: '0' + units: B + description: 'The total size of the ASM disk group.' + preprocessing: + - type: JSONPATH + parameters: + - $.SIZE_BYTE + master_item: + key: 'db.odbc.get[get_asm_{#DGNAME}_stat,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: asm + - tag: disk-group + value: '{#DGNAME}' + - uuid: 9c87a9089a19468f85eb1d3c28893092 + name: 'ASM ''{#DGNAME}'': Used size, percent' + type: DEPENDENT + key: 'oracle.asm_used_pct["{#DGNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Usage of the ASM disk group expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.USED_PERCENT + master_item: + key: 'db.odbc.get[get_asm_{#DGNAME}_stat,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: asm + - tag: disk-group + value: '{#DGNAME}' + trigger_prototypes: + - uuid: 756a8b4b04bc4aadab6b4b4cc856ad32 + expression: 'min(/Oracle by ODBC/oracle.asm_used_pct["{#DGNAME}"],5m)>{$ORACLE.ASM.USED.PCT.MAX.HIGH}' + name: 'Oracle: ASM ''{#DGNAME}'': Disk group usage is too high' + event_name: 'Oracle: ASM ''{#DGNAME}'': Disk group usage is too high (over {$ORACLE.ASM.USED.PCT.MAX.HIGH}% for 5m)' + priority: HIGH + description: 'The usage of the ASM disk group expressed in % exceeds `{$ORACLE.ASM.USED.PCT.MAX.WARN}`.' + tags: + - tag: scope + value: capacity + - uuid: d65971e0f3994dfcbcbde145c9866678 + expression: 'min(/Oracle by ODBC/oracle.asm_used_pct["{#DGNAME}"],5m)>{$ORACLE.ASM.USED.PCT.MAX.WARN}' + name: 'Oracle: ASM ''{#DGNAME}'': Disk group usage is too high' + event_name: 'Oracle: ASM ''{#DGNAME}'': Disk group usage is too high (over {$ORACLE.ASM.USED.PCT.MAX.WARN}% for 5m)' + priority: WARNING + description: 'The usage of the ASM disk group expressed in % exceeds `{$ORACLE.ASM.USED.PCT.MAX.WARN}`.' + dependencies: + - name: 'Oracle: ASM ''{#DGNAME}'': Disk group usage is too high' + expression: 'min(/Oracle by ODBC/oracle.asm_used_pct["{#DGNAME}"],5m)>{$ORACLE.ASM.USED.PCT.MAX.HIGH}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 75f9f07dbae84443900aad10095e37f9 + name: 'ASM ''{#DGNAME}'': ASM disk group ''{#DGNAME}''' + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: 'oracle.asm_free_size["{#DGNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: 'oracle.asm_total_size["{#DGNAME}"]' + master_item: + key: 'db.odbc.get[get_asm,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + lld_macro_paths: + - lld_macro: '{#DGNAME}' + path: $.DGNAME + - uuid: 0f65936b86314c269b7720a9ff3f1c14 + name: 'Database discovery' + type: DEPENDENT + key: oracle.db.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$ORACLE.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DBNAME}' + value: '{$ORACLE.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for database discovery.' + item_prototypes: + - uuid: 5de7c786988d49d0b50f28d2d622db62 + name: 'Database ''{#DBNAME}'': Get CDB and No-CDB info' + type: ODBC + key: 'db.odbc.get[get_cdb_{#DBNAME}_info,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT name as DBNAME, + DECODE(open_mode, 'MOUNTED', 1, 'READ ONLY', 2, 'READ WRITE', 3, 'READ ONLY WITH APPLY', 4, 'MIGRATE', 5, 0) AS open_mode, + DECODE(database_role, 'SNAPSHOT STANDBY', 1, 'LOGICAL STANDBY', 2, 'PHYSICAL STANDBY', 3, 'PRIMARY', 4, 'FAR SYNC', 5, 0) AS ROLE, + DECODE(force_logging, 'YES',1,'NO',0,0) AS force_logging, + DECODE(log_mode, 'MANUAL',2 ,'ARCHIVELOG',1,'NOARCHIVELOG',0,0) AS log_mode + FROM v$database + WHERE name = '{#DBNAME}'; + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the information about the CDB and non-CDB database on an instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.first() + error_handler: DISCARD_VALUE + tags: + - tag: component + value: cdb + - tag: component + value: raw + - uuid: 075885bfd41d43aba7861ae49e9abbee + name: 'Database ''{#DBNAME}'': Force logging' + type: DEPENDENT + key: 'oracle.db_force_logging["{#DBNAME}"]' + delay: '0' + description: 'Indicates whether the database is under force logging mode (`YES`/`NO`).' + valuemap: + name: 'Oracle force log status' + preprocessing: + - type: JSONPATH + parameters: + - $.FORCE_LOGGING + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'db.odbc.get[get_cdb_{#DBNAME}_info,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - tag: type + value: '{#TYPE}' + - uuid: 9b88e24d523e4111b2ff65ae26650e04 + name: 'Database ''{#DBNAME}'': Log mode' + type: DEPENDENT + key: 'oracle.db_log_mode["{#DBNAME}"]' + delay: '0' + description: | + The archive log mode where: + 0 - NOARCHIVELOG; + 1 - ARCHIVELOG; + 2 - MANUAL. + valuemap: + name: 'Oracle log mode' + preprocessing: + - type: JSONPATH + parameters: + - $.LOG_MODE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'db.odbc.get[get_cdb_{#DBNAME}_info,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - tag: type + value: '{#TYPE}' + - uuid: f1971909355f4ef48c32695b5d204d56 + name: 'Database ''{#DBNAME}'': Open status' + type: DEPENDENT + key: 'oracle.db_open_mode["{#DBNAME}"]' + delay: '0' + description: | + 1 - MOUNTED; + 2 - READ WRITE; + 3 - READ ONLY; + 4 - READ ONLY WITH APPLY (a physical standby database is open in real-time query mode). + valuemap: + name: 'Oracle DB open status' + preprocessing: + - type: JSONPATH + parameters: + - $.OPEN_MODE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'db.odbc.get[get_cdb_{#DBNAME}_info,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: 9bf80a9372ef4b3898fd5a4f0c3cec7c + expression: 'last(/Oracle by ODBC/oracle.db_open_mode["{#DBNAME}"],#1)<>last(/Oracle by ODBC/oracle.db_open_mode["{#DBNAME}"],#2)' + name: 'Oracle: Database ''{#DBNAME}'': Open status has changed' + event_name: 'Oracle: Database ''{#DBNAME}'': Open status has changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'The Oracle Database open status has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Oracle: Database ''{#DBNAME}'': Open status in mount mode' + expression: 'last(/Oracle by ODBC/oracle.db_open_mode["{#DBNAME}"])=1' + tags: + - tag: scope + value: notice + - uuid: 3620ac4e75644789a2f0245dbb948771 + expression: 'last(/Oracle by ODBC/oracle.db_open_mode["{#DBNAME}"])=1' + name: 'Oracle: Database ''{#DBNAME}'': Open status in mount mode' + priority: WARNING + description: 'The Oracle Database is in a mounted state.' + tags: + - tag: scope + value: notice + - uuid: 949d1e5fc4424b2bb0ffd220f00f6a79 + name: 'Database ''{#DBNAME}'': Role' + type: DEPENDENT + key: 'oracle.db_role["{#DBNAME}"]' + delay: '0' + description: | + The current role of the database where: + 1 - SNAPSHOT STANDBY; + 2 - LOGICAL STANDBY; + 3 - PHYSICAL STANDBY; + 4 - PRIMARY; + 5 - FAR SYNC. + valuemap: + name: 'Oracle DB role' + preprocessing: + - type: JSONPATH + parameters: + - $.ROLE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'db.odbc.get[get_cdb_{#DBNAME}_info,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: fb5ccc917a8344d7945b8867a1982d6b + expression: 'last(/Oracle by ODBC/oracle.db_role["{#DBNAME}"],#1)<>last(/Oracle by ODBC/oracle.db_role["{#DBNAME}"],#2)' + name: 'Oracle: Database ''{#DBNAME}'': Role has changed' + event_name: 'Oracle: Database ''{#DBNAME}'': Role has changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'The Oracle Database role has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + trigger_prototypes: + - uuid: 9c17e0fdd6fe409e8f298433e58b7445 + expression: 'last(/Oracle by ODBC/oracle.db_force_logging["{#DBNAME}"]) = 0 and last(/Oracle by ODBC/oracle.db_log_mode["{#DBNAME}"]) = 1' + name: 'Oracle: Database ''{#DBNAME}'': Force logging is deactivated for DB with active Archivelog' + priority: WARNING + description: 'Force logging mode is a very important metric for databases in `ARCHIVELOG`. This feature allows to forcibly write all the transactions to the redo log.' + tags: + - tag: scope + value: performance + master_item: + key: 'db.odbc.get[get_db,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + lld_macro_paths: + - lld_macro: '{#DBNAME}' + path: $.DBNAME + - lld_macro: '{#TYPE}' + path: $.TYPE + - uuid: 2611e69f735a42b190852589658dd591 + name: 'PDB discovery' + type: DEPENDENT + key: oracle.pdb.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$ORACLE.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DBNAME}' + value: '{$ORACLE.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of the pluggable database (PDB).' + item_prototypes: + - uuid: cedcebd0b7ce474c9681022fcc75df1c + name: 'Database ''{#DBNAME}'': Get PDB info' + type: ODBC + key: 'db.odbc.get[get_pdb_{#CON_ID}_info,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT + name as DBNAME, + DECODE(open_mode, 'MOUNTED', 1, 'READ ONLY', 2, 'READ WRITE', 3, 'READ ONLY WITH APPLY', 4, 'MIGRATE', 5, 0) AS open_mode + FROM v$pdbs + WHERE CON_ID = '{#CON_ID}'; + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the information about the PDB database on an instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.first() + error_handler: DISCARD_VALUE + tags: + - tag: component + value: pdb + - tag: component + value: raw + - uuid: 975d302e3e9a4316b6d63256b88b5006 + name: 'Database ''{#DBNAME}'': Open status' + type: DEPENDENT + key: 'oracle.pdb_open_mode["{#CON_ID}"]' + delay: '0' + description: | + 1 - MOUNTED; + 2 - READ WRITE; + 3 - READ ONLY; + 4 - READ ONLY WITH APPLY (a physical standby database is open in real-time query mode). + valuemap: + name: 'Oracle DB open status' + preprocessing: + - type: JSONPATH + parameters: + - $.OPEN_MODE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'db.odbc.get[get_pdb_{#CON_ID}_info,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - tag: type + value: pdb + trigger_prototypes: + - uuid: 3dbb9379f8024924b197037acfbbdac4 + expression: 'last(/Oracle by ODBC/oracle.pdb_open_mode["{#CON_ID}"],#1)<>last(/Oracle by ODBC/oracle.pdb_open_mode["{#CON_ID}"],#2)' + name: 'Oracle: Database ''{#DBNAME}'': Open status has changed' + event_name: 'Oracle: Database ''{#DBNAME}'': Open status has changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'The Oracle Database open status has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5f8ed69b2c074a29b9975baf10a2a2f8 + expression: 'last(/Oracle by ODBC/oracle.pdb_open_mode["{#CON_ID}"])=1' + name: 'Oracle: Database ''{#DBNAME}'': Open status in mount mode' + priority: WARNING + description: 'The Oracle Database is in a mounted state.' + tags: + - tag: scope + value: notice + master_item: + key: 'db.odbc.get[get_pdb,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + lld_macro_paths: + - lld_macro: '{#CON_ID}' + path: $.CON_ID + - lld_macro: '{#DBNAME}' + path: $.DBNAME + - uuid: c8de553c98f64e59b40bf927f6447ad1 + name: 'Tablespace discovery' + type: DEPENDENT + key: oracle.tablespace.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CON_NAME}' + value: '{$ORACLE.TABLESPACE.CONTAINER.MATCHES}' + formulaid: A + - macro: '{#CON_NAME}' + value: '{$ORACLE.TABLESPACE.CONTAINER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TABLESPACE}' + value: '{$ORACLE.TABLESPACE.NAME.MATCHES}' + formulaid: C + - macro: '{#TABLESPACE}' + value: '{$ORACLE.TABLESPACE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Used for the discovery of tablespaces in DBMS.' + item_prototypes: + - uuid: 972be2e777e44c539d0ddd7918b79e88 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Get tablespaces stats' + type: ODBC + key: 'db.odbc.get[get_{#CON_ID}_tablespace_{#TABLESPACE}_stats,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT df.CON_NAME, + df.TABLESPACE_NAME AS TABLESPACE, + df.CONTENTS AS TYPE, + NVL(SUM(df.BYTES), 0) AS FILE_BYTES, + NVL(SUM(df.MAX_BYTES), 0) AS MAX_BYTES, + NVL(SUM(f.FREE), 0) AS FREE_BYTES, + NVL(SUM(df.BYTES) - SUM(f.FREE), 0) AS USED_BYTES, + ROUND(CASE SUM(df.MAX_BYTES) + WHEN 0 THEN 0 + ELSE (SUM(df.BYTES) / SUM(df.MAX_BYTES) * 100) + END, 2) AS USED_PCT_MAX, + ROUND(CASE SUM(df.BYTES) + WHEN 0 THEN 0 + ELSE (NVL(SUM(df.BYTES) - SUM(f.FREE), 0)) / SUM(df.BYTES) * 100 + END, 2) AS USED_FILE_PCT, + ROUND(CASE SUM(df.MAX_BYTES) + WHEN 0 THEN 0 + ELSE NVL(SUM(df.BYTES) - SUM(f.FREE), 0) / SUM(df.MAX_BYTES) * 100 + END, 2) AS USED_FROM_MAX_PCT, + CASE df.STATUS + WHEN 'ONLINE' THEN 1 + WHEN 'OFFLINE' THEN 2 + WHEN 'READ ONLY' THEN 3 + ELSE 0 + END AS STATUS + FROM (SELECT ct.CON$NAME AS CON_NAME, + cdf.FILE_ID, + ct.CONTENTS, + ct.STATUS, + cdf.FILE_NAME, + cdf.TABLESPACE_NAME, + TRUNC(cdf.BYTES) AS BYTES, + TRUNC(GREATEST(cdf.BYTES, cdf.MAXBYTES)) AS MAX_BYTES + FROM CDB_DATA_FILES cdf, + CDB_TABLESPACES ct + WHERE cdf.TABLESPACE_NAME = ct.TABLESPACE_NAME + AND cdf.CON_ID = ct.CON_ID + AND (ct.CON_ID = '{#CON_ID}' or (ct.CON$NAME is null and ct.CON_ID = 0)) + AND cdf.TABLESPACE_NAME = '{#TABLESPACE}' + AND ct.CONTENTS = '{#CONTENTS}') df, + (SELECT TRUNC(SUM(BYTES)) AS FREE, + FILE_ID + FROM CDB_FREE_SPACE + GROUP BY FILE_ID) f + WHERE df.FILE_ID = f.FILE_ID (+) + GROUP BY df.CON_NAME, + df.TABLESPACE_NAME, + df.CONTENTS, + df.STATUS + UNION ALL + SELECT Y.CON_NAME, + Y.NAME AS TABLESPACE, + Y.CONTENTS AS TYPE, + NVL(SUM(Y.BYTES), 0) AS FILE_BYTES, + NVL(SUM(Y.MAX_BYTES), 0) AS MAX_BYTES, + NVL(MAX(NVL(Y.FREE_BYTES, 0)), 0) AS FREE_BYTES, + NVL(SUM(Y.BYTES) - MAX(Y.FREE_BYTES), 0) AS USED_BYTES, + ROUND(CASE SUM(Y.MAX_BYTES) + WHEN 0 THEN 0 + ELSE (SUM(Y.BYTES) / SUM(Y.MAX_BYTES) * 100) + END, 2) AS USED_PCT_MAX, + ROUND(CASE SUM(Y.BYTES) + WHEN 0 THEN 0 + ELSE (NVL(SUM(Y.BYTES) - MAX(Y.FREE_BYTES), 0)) / SUM(Y.BYTES) * 100 + END, 2) AS USED_FILE_PCT, + ROUND(CASE SUM(Y.MAX_BYTES) + WHEN 0 THEN 0 + ELSE (NVL(SUM(Y.BYTES) - MAX(Y.FREE_BYTES), 0)) / SUM(Y.MAX_BYTES) * 100 + END, 2) AS USED_FROM_MAX_PCT, + CASE Y.STATUS + WHEN 'ONLINE' THEN 1 + WHEN 'OFFLINE' THEN 2 + WHEN 'READ ONLY' THEN 3 + ELSE 0 + END AS STATUS + FROM (SELECT ct.CON$NAME AS CON_NAME, + ctf.TABLESPACE_NAME AS NAME, + ct.CONTENTS, + ctf.STATUS AS STATUS, + ctf.BYTES AS BYTES, + (SELECT ((f.TOTAL_BLOCKS - s.TOT_USED_BLOCKS) * vp.VALUE) + FROM (SELECT CON_ID, + TABLESPACE_NAME, + SUM(USED_BLOCKS) TOT_USED_BLOCKS + FROM V$SORT_SEGMENT + WHERE TABLESPACE_NAME != 'DUMMY' + GROUP BY CON_ID, + TABLESPACE_NAME) s, + (SELECT CON_ID, + TABLESPACE_NAME, + SUM(BLOCKS) TOTAL_BLOCKS + FROM CDB_TEMP_FILES + WHERE TABLESPACE_NAME != 'DUMMY' + GROUP BY CON_ID, + TABLESPACE_NAME) f, + (SELECT VALUE + FROM V$PARAMETER + WHERE NAME = 'db_block_size') vp + WHERE f.TABLESPACE_NAME = s.TABLESPACE_NAME + AND f.TABLESPACE_NAME = ctf.TABLESPACE_NAME + AND f.CON_ID = s.CON_ID + AND f.CON_ID = ct.CON_ID) AS FREE_BYTES, + CASE + WHEN ctf.MAXBYTES = 0 THEN ctf.BYTES + ELSE ctf.MAXBYTES + END AS MAX_BYTES + FROM CDB_TEMP_FILES ctf, + CDB_TABLESPACES ct + WHERE ctf.TABLESPACE_NAME = ct.TABLESPACE_NAME + AND ctf.CON_ID = ct.CON_ID + AND (ct.CON_ID = '{#CON_ID}' or (ct.CON$NAME is null and ct.CON_ID = 0)) + AND ctf.TABLESPACE_NAME = '{#TABLESPACE}' + AND ct.CONTENTS = '{#CONTENTS}') Y + GROUP BY Y.CON_NAME, + Y.NAME, + Y.CONTENTS, + Y.STATUS; + username: '{$ORACLE.USER}' + password: '{$ORACLE.PASSWORD}' + description: 'Gets the statistics of the tablespace.' + preprocessing: + - type: JSONPATH + parameters: + - $.first() + error_handler: DISCARD_VALUE + tags: + - tag: component + value: raw + - tag: component + value: tablespaces + - uuid: 46956fd7e5d8462798b85cd7b425a794 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace allocated, bytes' + type: DEPENDENT + key: 'oracle.tbs_alloc_bytes["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + units: B + description: 'Currently allocated bytes for the tablespace (sum of the current size of datafiles).' + preprocessing: + - type: JSONPATH + parameters: + - $.FILE_BYTES + master_item: + key: 'db.odbc.get[get_{#CON_ID}_tablespace_{#TABLESPACE}_stats,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + - uuid: 8c3284a21872423499ee15fd7b0038f1 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace free, bytes' + type: DEPENDENT + key: 'oracle.tbs_free_bytes["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + units: B + description: 'Free bytes of the allocated space.' + preprocessing: + - type: JSONPATH + parameters: + - $.FREE_BYTES + master_item: + key: 'db.odbc.get[get_{#CON_ID}_tablespace_{#TABLESPACE}_stats,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + - uuid: afd8c1a01b64408fbc6f8f95fbb13593 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace MAX size, bytes' + type: DEPENDENT + key: 'oracle.tbs_max_bytes["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + units: B + description: 'The maximum size of the tablespace.' + preprocessing: + - type: JSONPATH + parameters: + - $.MAX_BYTES + master_item: + key: 'db.odbc.get[get_{#CON_ID}_tablespace_{#TABLESPACE}_stats,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + - uuid: 42c7812a75d5433ab8a275498635c81c + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Open status' + type: DEPENDENT + key: 'oracle.tbs_status["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + description: | + The tablespace status where: + 1 - ONLINE; + 2 - OFFLINE; + 3 - READ ONLY. + valuemap: + name: 'Oracle tablespace status' + preprocessing: + - type: JSONPATH + parameters: + - $.STATUS + master_item: + key: 'db.odbc.get[get_{#CON_ID}_tablespace_{#TABLESPACE}_stats,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + trigger_prototypes: + - uuid: 3c5f54f41f95440aa18ca5316aeb50f6 + expression: 'last(/Oracle by ODBC/oracle.tbs_status["{#CON_ID}","{#TABLESPACE}"])=2' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace is OFFLINE' + priority: WARNING + description: 'The tablespace is in the offline state.' + tags: + - tag: scope + value: availability + - uuid: 05c2af5a765842a1a70f2f67355db1b3 + expression: 'last(/Oracle by ODBC/oracle.tbs_status["{#CON_ID}","{#TABLESPACE}"],#1)<>last(/Oracle by ODBC/oracle.tbs_status["{#CON_ID}","{#TABLESPACE}"],#2)' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace status has changed' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace status has changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'Oracle tablespace status has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace is OFFLINE' + expression: 'last(/Oracle by ODBC/oracle.tbs_status["{#CON_ID}","{#TABLESPACE}"])=2' + tags: + - tag: scope + value: capacity + - uuid: b9cc0eabdcbc404fb0df2a2a082411f1 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace used, bytes' + type: DEPENDENT + key: 'oracle.tbs_used_bytes["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + units: B + description: 'Currently used bytes for the tablespace (current size of datafiles minus the free space).' + preprocessing: + - type: JSONPATH + parameters: + - $.USED_BYTES + master_item: + key: 'db.odbc.get[get_{#CON_ID}_tablespace_{#TABLESPACE}_stats,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + - uuid: 877961c286e448238f58cff9c51088c8 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage, percent' + type: DEPENDENT + key: 'oracle.tbs_used_file_pct["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Used bytes/allocated bytes*100.' + preprocessing: + - type: JSONPATH + parameters: + - $.USED_FILE_PCT + master_item: + key: 'db.odbc.get[get_{#CON_ID}_tablespace_{#TABLESPACE}_stats,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + trigger_prototypes: + - uuid: 78c293ae7ded42b0b05d50af99762017 + expression: 'min(/Oracle by ODBC/oracle.tbs_used_file_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.MAX.HIGH}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage is too high (over {$ORACLE.TBS.USED.PCT.MAX.HIGH}% for 5m).' + priority: HIGH + description: 'The usage of the tablespace `{#TABLESPACE}` exceeds `{$ORACLE.TBS.USED.PCT.MAX.HIGH}`%' + tags: + - tag: scope + value: capacity + - uuid: e6f2cb4ade52464b97f5e0f5e05ab61b + expression: 'min(/Oracle by ODBC/oracle.tbs_used_file_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.MAX.WARN}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage is too high (over {$ORACLE.TBS.USED.PCT.MAX.WARN}% for 5m).' + priority: WARNING + description: 'The usage of the tablespace `{#TABLESPACE}` exceeds `{$ORACLE.TBS.USED.PCT.MAX.WARN}`%' + dependencies: + - name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage is too high' + expression: 'min(/Oracle by ODBC/oracle.tbs_used_file_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.MAX.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 94ecf43024cd41cf891df319cc615b50 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage from MAX, percent' + type: DEPENDENT + key: 'oracle.tbs_used_from_max_pct["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Used bytes/max bytes*100.' + preprocessing: + - type: JSONPATH + parameters: + - $.USED_FROM_MAX_PCT + master_item: + key: 'db.odbc.get[get_{#CON_ID}_tablespace_{#TABLESPACE}_stats,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + trigger_prototypes: + - uuid: 1db3eee269ea4554bc363338868c8830 + expression: 'min(/Oracle by ODBC/oracle.tbs_used_from_max_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage from MAX is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage from MAX is too high (over {$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}% for 5m).' + priority: HIGH + description: 'The usage of the tablespace `{#TABLESPACE}` from MAX exceeds `{$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}`%' + tags: + - tag: scope + value: capacity + - uuid: 062309da61ff407eb96201f530544a02 + expression: 'min(/Oracle by ODBC/oracle.tbs_used_from_max_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.FROM.MAX.WARN}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage from MAX is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage from MAX is too high (over {$ORACLE.TBS.USED.PCT.FROM.MAX.WARN}% for 5m).' + priority: WARNING + description: 'The usage of the tablespace `{#TABLESPACE}` from MAX exceeds `{$ORACLE.TBS.USED.PCT.FROM.MAX.WARN}`%' + dependencies: + - name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage from MAX is too high' + expression: 'min(/Oracle by ODBC/oracle.tbs_used_from_max_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: c3a904455ff244e1a30bf32f0b4ea0d7 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace allocated, percent' + type: DEPENDENT + key: 'oracle.tbs_used_pct["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Allocated bytes/max bytes*100.' + preprocessing: + - type: JSONPATH + parameters: + - $.USED_PCT_MAX + master_item: + key: 'db.odbc.get[get_{#CON_ID}_tablespace_{#TABLESPACE}_stats,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + trigger_prototypes: + - uuid: a8aa7255866d4a5ba71d2f89a1d234fe + expression: 'min(/Oracle by ODBC/oracle.tbs_used_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization is too high (over {$ORACLE.TBS.UTIL.PCT.MAX.HIGH}% for 5m).' + priority: HIGH + description: 'The utilization of the tablespace `{#TABLESPACE}` exceeds `{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}`%' + tags: + - tag: scope + value: capacity + - uuid: 9469e51bd69e4baba82de4fd4e5eb14c + expression: 'min(/Oracle by ODBC/oracle.tbs_used_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.UTIL.PCT.MAX.WARN}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization is too high (over {$ORACLE.TBS.UTIL.PCT.MAX.WARN}% for 5m).' + priority: WARNING + description: 'The utilization of the tablespace `{#TABLESPACE}` exceeds `{$ORACLE.TBS.UTIL.PCT.MAX.WARN}`%' + dependencies: + - name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization is too high' + expression: 'min(/Oracle by ODBC/oracle.tbs_used_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: a9f3bc52aa0340feb35600ad249e82d3 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace ''{#TABLESPACE}''' + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: 'oracle.tbs_alloc_bytes["{#CON_ID}","{#TABLESPACE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: 'oracle.tbs_max_bytes["{#CON_ID}","{#TABLESPACE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Oracle by ODBC' + key: 'oracle.tbs_used_bytes["{#CON_ID}","{#TABLESPACE}"]' + master_item: + key: 'db.odbc.get[get_tablespace,,"Driver={$ORACLE.DRIVER};DBQ=//{$ORACLE.HOST}:{$ORACLE.PORT}/{$ORACLE.SERVICE};"]' + lld_macro_paths: + - lld_macro: '{#CONTENTS}' + path: $.CONTENTS + - lld_macro: '{#CON_ID}' + path: $.CON_ID + - lld_macro: '{#CON_NAME}' + path: $.CON_NAME + - lld_macro: '{#TABLESPACE}' + path: $.TABLESPACE + tags: + - tag: class + value: database + - tag: target + value: oracle + macros: + - macro: '{$ORACLE.ASM.USED.PCT.MAX.HIGH}' + value: '95' + description: 'The maximum percentage of used space in the Automatic Storage Management (ASM) disk group for the High trigger expression.' + - macro: '{$ORACLE.ASM.USED.PCT.MAX.WARN}' + value: '90' + description: 'The maximum percentage of used space in the Automatic Storage Management (ASM) disk group for the Warning trigger expression.' + - macro: '{$ORACLE.CONCURRENCY.MAX.WARN}' + value: '80' + description: 'The maximum percentage of session concurrency for the Warning trigger expression.' + - macro: '{$ORACLE.DB.FILE.MAX.WARN}' + value: '80' + description: 'The maximum percentage of used database files for the Warning trigger expression.' + - macro: '{$ORACLE.DBNAME.MATCHES}' + value: '.*' + description: 'Used in database discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.DBNAME.NOT_MATCHES}' + value: PDB\$SEED + description: 'Used in database discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.DRIVER}' + value: '' + description: 'Oracle driver path. For example: `/usr/lib/oracle/21/client64/lib/libsqora.so.21.1`' + - macro: '{$ORACLE.EXPIRE.PASSWORD.MIN.WARN}' + value: '7' + description: 'The number of days before the password expires for the Warning trigger expression.' + - macro: '{$ORACLE.HOST}' + value: '' + description: 'The hostname or IP address of the Oracle DB instance.' + - macro: '{$ORACLE.PASSWORD}' + value: '' + description: 'Oracle user''s password.' + - macro: '{$ORACLE.PGA.USE.MAX.WARN}' + value: '90' + description: 'Alert threshold for the maximum percentage of the Program Global Area (PGA) usage for the Warning trigger expression.' + - macro: '{$ORACLE.PORT}' + value: '1521' + description: 'Oracle Database TCP port.' + - macro: '{$ORACLE.PROCESSES.MAX.WARN}' + value: '80' + description: 'Alert threshold for the maximum percentage of active processes for the Warning trigger expression.' + - macro: '{$ORACLE.REDO.MIN.WARN}' + value: '3' + description: 'Alert threshold for the minimum number of redo logs for the Warning trigger expression.' + - macro: '{$ORACLE.SERVICE}' + value: '' + description: 'Oracle Service Name.' + - macro: '{$ORACLE.SESSION.LOCK.MAX.TIME}' + value: '600' + description: 'The maximum duration of the session lock in seconds to count the session as a prolongedly locked query.' + - macro: '{$ORACLE.SESSION.LONG.LOCK.MAX.WARN}' + value: '3' + description: 'Alert threshold for the maximum number of the prolongedly locked sessions for the Warning trigger expression.' + - macro: '{$ORACLE.SESSIONS.LOCK.MAX.WARN}' + value: '20' + description: 'Alert threshold for the maximum percentage of locked sessions for the Warning trigger expression.' + - macro: '{$ORACLE.SESSIONS.MAX.WARN}' + value: '80' + description: 'Alert threshold for the maximum percentage of active sessions for the Warning trigger expression.' + - macro: '{$ORACLE.SHARED.FREE.MIN.WARN}' + value: '5' + description: 'Alert threshold for the minimum percentage of free shared pool for the Warning trigger expression.' + - macro: '{$ORACLE.TABLESPACE.CONTAINER.MATCHES}' + value: '.*' + description: 'Used in tablespace discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.TABLESPACE.CONTAINER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in tablespace discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.TABLESPACE.NAME.MATCHES}' + value: '.*' + description: 'Used in tablespace discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.TABLESPACE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in tablespace discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}' + value: '95' + description: 'High severity alert threshold for the maximum percentage of tablespace usage (used bytes/max bytes) for the High trigger expression.' + - macro: '{$ORACLE.TBS.USED.PCT.FROM.MAX.WARN}' + value: '90' + description: 'Warning severity alert threshold for the maximum percentage of tablespace usage from maximum tablespace size (used bytes/max bytes) for the Warning trigger expression.' + - macro: '{$ORACLE.TBS.USED.PCT.MAX.HIGH}' + value: '95' + description: 'High severity alert threshold for the maximum percentage of tablespace usage (used bytes/allocated bytes) for the High trigger expression.' + - macro: '{$ORACLE.TBS.USED.PCT.MAX.WARN}' + value: '90' + description: 'Warning severity alert threshold for the maximum percentage of tablespace usage (used bytes/allocated bytes) for the Warning trigger expression.' + - macro: '{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}' + value: '90' + description: 'High severity alert threshold for the maximum percentage of tablespace utilization (allocated bytes/max bytes) for the High trigger expression.' + - macro: '{$ORACLE.TBS.UTIL.PCT.MAX.WARN}' + value: '80' + description: 'Warning severity alert threshold for the maximum percentage of tablespace utilization (allocated bytes/max bytes) for the High trigger expression.' + - macro: '{$ORACLE.USER}' + value: '' + description: 'Oracle username.' + dashboards: + - uuid: 8bb7593dc22d43d5ba7a16cb7b94d8a3 + name: 'Oracle Performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by ODBC' + name: 'Oracle: Cache Hit Ratios' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by ODBC' + name: 'Oracle: Physical Read\Write Rate' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by ODBC' + name: 'Oracle: Datafiles' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by ODBC' + name: 'Oracle: Processes' + - type: STRING + name: reference + value: AAAAG + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by ODBC' + name: 'Oracle: SGA Memory Usage' + - type: STRING + name: reference + value: AAAAI + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by ODBC' + name: 'Oracle: Sort Operations' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by ODBC' + name: 'Oracle: Physical Read\Write Rate, Bytes' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by ODBC' + name: 'Oracle: PGA' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by ODBC' + name: 'Oracle: Sessions' + - type: STRING + name: reference + value: AAAAH + valuemaps: + - uuid: 79af6c068ba141ba9806f4341edd9266 + name: 'Oracle Archivelog status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Error + - value: '2' + newvalue: Deferred + - value: '3' + newvalue: Valid + - uuid: 3afaab75342c4be186fb4f595ed62a31 + name: 'Oracle archiver state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Stopped + - value: '2' + newvalue: Started + - value: '3' + newvalue: Failed + - uuid: d0912db18fe54941b9345ebf869fd1a6 + name: 'Oracle DB open status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Mounted + - value: '2' + newvalue: 'Read Only' + - value: '3' + newvalue: Read-Write + - value: '4' + newvalue: 'Read Only with Apply' + - uuid: df05d594141f42ebb294cf6adca5fd6b + name: 'Oracle DB role' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: 'Snapshot standby' + - value: '2' + newvalue: 'Logical standby' + - value: '3' + newvalue: 'Physical standby' + - value: '4' + newvalue: Primary + - value: '5' + newvalue: 'Far sync' + - uuid: f00ca5c45ab84df788820af2642e4784 + name: 'Oracle force log status' + mappings: + - value: '0' + newvalue: 'No' + - value: '1' + newvalue: 'Yes' + - uuid: 97b689d7ddc04bcd9b9f92af6ba783bd + name: 'Oracle instance role' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Primary + - value: '2' + newvalue: Secondary + - uuid: 41e105c52bf045899c3c4a1cb4e16865 + name: 'Oracle instance status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Started + - value: '2' + newvalue: Mounted + - value: '3' + newvalue: Open + - value: '4' + newvalue: 'Open migrate' + - uuid: 809554f521d645ea8e8850c3b1f41579 + name: 'Oracle log mode' + mappings: + - value: '0' + newvalue: NOARCHIVELOG + - value: '1' + newvalue: ARCHIVELOG + - value: '2' + newvalue: MANUAL + - uuid: c6633e4ef9a84fa7b843529479a06158 + name: 'Oracle tablespace status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Online + - value: '2' + newvalue: Offline + - value: '3' + newvalue: Read-Only + - uuid: 45ad479873b84113a98fa21b21081c65 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 7b0bde98c6c54e67b0aa8b3339fe464d + expression: 'max(/Oracle by ODBC/net.tcp.service[tcp,{$ORACLE.HOST},{$ORACLE.PORT}],#3)=0 and max(/Oracle by ODBC/proc.num[,,,"tnslsnr LISTENER"],#3)>0' + name: 'Oracle: Port {$ORACLE.PORT} is unavailable' + priority: DISASTER + description: 'The TCP port of the Oracle Server service is currently unavailable.' + tags: + - tag: scope + value: availability + - uuid: 38471058988c46f4b81af9f77637914a + expression: 'min(/Oracle by ODBC/oracle.processes_count,5m) * 100 / last(/Oracle by ODBC/oracle.processes_limit) > {$ORACLE.PROCESSES.MAX.WARN}' + name: 'Oracle: Too many active processes' + event_name: 'Oracle: Too many active processes (over {$ORACLE.PROCESSES.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'Active processes are using more than `{$ORACLE.PROCESSES.MAX.WARN}`% of the available number of processes.' + tags: + - tag: scope + value: capacity + - uuid: 4a055da31f09489ea0f03e4582ee4333 + expression: 'min(/Oracle by ODBC/oracle.session_count,5m) * 100 / last(/Oracle by ODBC/oracle.session_limit) > {$ORACLE.SESSIONS.MAX.WARN}' + name: 'Oracle: Too many active sessions' + event_name: 'Oracle: Too many active sessions (over {$ORACLE.SESSIONS.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'Active sessions are using more than `{$ORACLE.SESSIONS.MAX.WARN}`% of the available sessions.' + tags: + - tag: scope + value: capacity + - uuid: 5752d92063f84aaa818bc85b135cd4fd + expression: 'min(/Oracle by ODBC/oracle.db_files_count,5m) * 100 / last(/Oracle by ODBC/oracle.db_files_limit) > {$ORACLE.DB.FILE.MAX.WARN}' + name: 'Oracle: Too many database files' + event_name: 'Oracle: Too many database files (over {$ORACLE.DB.FILE.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'The number of datafiles is higher than `{$ORACLE.DB.FILE.MAX.WARN}`% of the available datafile limit.' + tags: + - tag: scope + value: capacity + - uuid: 476001f0f52a45f59942d73c643371c1 + expression: 'min(/Oracle by ODBC/oracle.total_pga_used,5m) * 100 / last(/Oracle by ODBC/oracle.pga_target) > {$ORACLE.PGA.USE.MAX.WARN}' + name: 'Oracle: Total PGA inuse is too high' + event_name: 'Oracle: Total PGA inuse is too high (over {$ORACLE.PGA.USE.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'The total PGA currently consumed by work areas is more than `{$ORACLE.PGA.USE.MAX.WARN}`% of `PGA_AGGREGATE_TARGET`.' + tags: + - tag: scope + value: capacity + graphs: + - uuid: cf491b94c7674160ba36e2105026c834 + name: 'Oracle: Cache Hit Ratios' + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: oracle.buffer_cache_hit_ratio + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: oracle.library_cache_hit_ratio + - uuid: 72ad9e81bb5147e6827499143d256068 + name: 'Oracle: Datafiles' + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: oracle.db_files_count + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: oracle.db_files_limit + - uuid: dba3f3b856114d50b826a15cacd1d896 + name: 'Oracle: PGA' + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: oracle.total_pga_used + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: oracle.pga_target + - sortorder: '2' + color: 00611C + item: + host: 'Oracle by ODBC' + key: oracle.total_pga_allocated + - uuid: 3d1c6ffe69f34695b30d132d99d41dbb + name: 'Oracle: Physical Read\Write Rate' + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: oracle.physical_writes_rate + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: oracle.physical_reads_rate + - uuid: 5002e9a128524991b16dbea89e0f4b07 + name: 'Oracle: Physical Read\Write Rate, Bytes' + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: oracle.physical_write_bytes_rate + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: oracle.physical_read_bytes_rate + - uuid: 044e0b3a485547b7b41939a78be80784 + name: 'Oracle: Processes' + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: oracle.processes_count + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: oracle.processes_limit + - uuid: eef29b959d334e4b9ba3a4d83a571f1f + name: 'Oracle: Sessions' + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: oracle.session_count + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: oracle.session_active_background + - sortorder: '2' + color: 00611C + item: + host: 'Oracle by ODBC' + key: oracle.session_inactive_user + - sortorder: '3' + color: F7941D + item: + host: 'Oracle by ODBC' + key: oracle.session_active_user + - sortorder: '4' + color: FC6EA3 + item: + host: 'Oracle by ODBC' + key: oracle.session_limit + - uuid: dd6a3c604ba446e793526564527c5c2f + name: 'Oracle: SGA Memory Usage' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: oracle.sga_java_pool + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: oracle.sga_large_pool + - sortorder: '2' + color: 00611C + item: + host: 'Oracle by ODBC' + key: oracle.sga_shared_pool + - sortorder: '3' + color: F7941D + item: + host: 'Oracle by ODBC' + key: oracle.sga_log_buffer + - sortorder: '4' + color: FC6EA3 + item: + host: 'Oracle by ODBC' + key: oracle.sga_fixed + - sortorder: '5' + color: 6C59DC + item: + host: 'Oracle by ODBC' + key: oracle.sga_buffer_cache + - uuid: 48e400ae300642d2ac1b3f3e9d47acc0 + name: 'Oracle: Sort Operations' + graph_items: + - color: 199C0D + item: + host: 'Oracle by ODBC' + key: oracle.memory_sorts_ratio + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by ODBC' + key: oracle.disk_sorts diff --git a/Oracle_by_Zabbix_agent_2.yaml b/Oracle_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..53fec9b --- /dev/null +++ b/Oracle_by_Zabbix_agent_2.yaml @@ -0,0 +1,2584 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: d670c32f007d438c9dcd32db57d2b691 + template: 'Oracle by Zabbix agent 2' + name: 'Oracle by Zabbix agent 2' + description: | + Get metrics from Oracle Database using Zabbix agent 2. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + items: + - uuid: 9d24ae0f86d54b73a35d9c15d4e082cb + name: 'Active parallel sessions' + type: DEPENDENT + key: oracle.active_parallel_sessions + delay: '0' + value_type: FLOAT + description: 'The number of active parallel sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Active Parallel Sessions'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: sessions + - uuid: 7e4eb79b9b674c5ba57e790fae0fb410 + name: 'Active serial sessions' + type: DEPENDENT + key: oracle.active_serial_sessions + delay: '0' + value_type: FLOAT + description: 'The number of active serial sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Active Serial Sessions'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: sessions + - uuid: 9763dd0b223540e4820fd3b8f3281ec3 + name: 'Average active sessions' + type: DEPENDENT + key: oracle.active_sessions + delay: '0' + value_type: FLOAT + description: 'The average number of active sessions at a point in time that are either working or waiting.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Average Active Sessions'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: sessions + - uuid: a5533a1c354a4c8dbfec39c9b0637ba2 + name: 'Archiver state' + type: DEPENDENT + key: oracle.archiver_state + delay: '0' + description: 'The status of automatic archiving.' + valuemap: + name: 'Oracle archiver state' + preprocessing: + - type: JSONPATH + parameters: + - $..archiver.first() + master_item: + key: 'oracle.instance.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: a5f5251364a44a90a66bb2096f53a48a + name: 'Buffer cache hit ratio' + type: DEPENDENT + key: oracle.buffer_cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of buffer cache hits ((LogRead - PhyRead)/LogRead).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Buffer Cache Hit Ratio'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: cache + - uuid: 1483e7a312154438a9b09d0b696568f0 + name: 'Global cache blocks corrupted' + type: DEPENDENT + key: oracle.cache_blocks_corrupt + delay: '0' + units: Rps + description: 'The number of blocks that encountered corruption or checksum failure during the interconnect.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Global Cache Blocks Corrupted'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: cache + - uuid: 3589d4b2b9114f9cabb027f85f5349ab + name: 'Global cache blocks lost' + type: DEPENDENT + key: oracle.cache_blocks_lost + delay: '0' + units: Rps + description: 'The number of lost global cache blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Global Cache Blocks Lost'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: cache + - uuid: fd1ea13484984d0baffc45ea02a33a7c + name: 'Cursor cache hit ratio' + type: DEPENDENT + key: oracle.cursor_cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of cursor cache hits (CursorCacheHit/SoftParse).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Cursor Cache Hit Ratio'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: cache + - uuid: 9fd6475d1b824c74b2b3dad1db4f494a + name: 'Database CPU time ratio' + type: DEPENDENT + key: oracle.database_cpu_time_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio calculated by dividing the total CPU (used by the database) by the Oracle time model statistic DB time.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Database CPU Time Ratio'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: cpu + - uuid: 9fc7f2e986cd4c97ad8778f06dd04822 + name: 'Database wait time ratio' + type: DEPENDENT + key: oracle.database_wait_time_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'Wait time - the time that the server process spends waiting for available shared resources to be released by other server processes such as latches, locks, data buffers, etc.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Database Wait Time Ratio'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: 12efa23a53eb468ea7b0713b8f610542 + name: 'Datafiles count' + key: 'oracle.datafiles.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + description: 'The current number of datafiles.' + preprocessing: + - type: JSONPATH + parameters: + - $.datafile_num + tags: + - tag: component + value: datafiles + - uuid: cdd3d4f1baea4f2ea122e058704d43e9 + name: 'Datafiles limit' + type: DEPENDENT + key: oracle.db_files_limit + delay: '0' + description: 'The maximum allowable number of datafiles.' + preprocessing: + - type: JSONPATH + parameters: + - $.db_files + master_item: + key: 'oracle.sys.params["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: datafiles + - uuid: 9692f4f771844438a3f9224455c504b6 + name: 'Disk sort per second' + type: DEPENDENT + key: oracle.disk_sorts + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of sorts going to disk per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Disk Sort Per Sec'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: 7dc5745f2a124119b058d23195ba5058 + name: 'Enqueue timeouts per second' + type: DEPENDENT + key: oracle.enqueue_timeouts_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'Enqueue timeouts per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Enqueue Timeouts Per Sec'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: 1aa391bbd2484793a31dc9f0dce51b46 + name: 'Get FRA stats' + key: 'oracle.fra.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get FRA statistics.' + tags: + - tag: component + value: raw + - uuid: 5e09413cb3a14a3a87e2ead6b838ce1f + name: 'FRA, Number of files' + type: DEPENDENT + key: oracle.fra_number_of_files + delay: '0' + description: 'The number of files in the FRA.' + preprocessing: + - type: JSONPATH + parameters: + - $.number_of_files + master_item: + key: 'oracle.fra.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: fra + - uuid: 68f50e7513d642f789a27dfce03ca1b8 + name: 'FRA, Number of restore points' + type: DEPENDENT + key: oracle.fra_restore_point + delay: '0' + value_type: FLOAT + description: 'Number of restore points in the FRA.' + preprocessing: + - type: JSONPATH + parameters: + - $.restore_point + master_item: + key: 'oracle.fra.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: fra + - uuid: f7f16828d46a4054a30a22e955542d6a + name: 'FRA, Space limit' + type: DEPENDENT + key: oracle.fra_space_limit + delay: '0' + units: B + description: 'The maximum amount of disk space (in bytes) that the database can use for the Fast Recovery Area (FRA).' + preprocessing: + - type: JSONPATH + parameters: + - $.space_limit + master_item: + key: 'oracle.fra.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: fra + - uuid: 92d7abac10dc47a7bec1bd420a41c78c + name: 'FRA, Space reclaimable' + type: DEPENDENT + key: oracle.fra_space_reclaimable + delay: '0' + units: B + description: 'The total amount of disk space (in bytes) that can be created by deleting obsolete, redundant, and other low-priority files from the FRA.' + preprocessing: + - type: JSONPATH + parameters: + - $.space_reclaimable + master_item: + key: 'oracle.fra.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: fra + - uuid: 1e02a10018124f4db85ef9822a605b61 + name: 'FRA, Used space' + type: DEPENDENT + key: oracle.fra_space_used + delay: '0' + units: B + description: 'The amount of disk space (in bytes) used by FRA files created in the current and all the previous FRAs.' + preprocessing: + - type: JSONPATH + parameters: + - $.space_used + master_item: + key: 'oracle.fra.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: fra + - uuid: 887c56e1b9f1415db5def1e1f502a6ae + name: 'FRA, Usable space in %' + type: DEPENDENT + key: oracle.fra_usable_pct + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of space usable in the FRA.' + preprocessing: + - type: JSONPATH + parameters: + - $.usable_pct + master_item: + key: 'oracle.fra.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: fra + - uuid: e8725c1d79e34fbc8331677fe3d4459e + name: 'GC CR block received per second' + type: DEPENDENT + key: oracle.gc_cr_block_received_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The global cache (GC) and the consistent read (CR) block received per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''GC CR Block Received Per Second'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: cache + - uuid: 2c7dd0c162b742d08a2432c8bdde4ce2 + name: 'Get instance state' + key: 'oracle.instance.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the state of the current instance.' + tags: + - tag: component + value: application + - uuid: 021a98326c8f402693e4fba9fb3c25de + name: 'Instance role' + type: DEPENDENT + key: oracle.instance.role + delay: '0' + description: 'Indicates whether the instance is an active instance or an inactive secondary instance.' + valuemap: + name: 'Oracle instance role' + preprocessing: + - type: JSONPATH + parameters: + - $.role + master_item: + key: 'oracle.instance.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: cd0e2c8f164443588ad19647506c0eea + name: 'Instance hostname' + type: DEPENDENT + key: oracle.instance_hostname + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the host machine.' + preprocessing: + - type: JSONPATH + parameters: + - $..hostname.first() + master_item: + key: 'oracle.instance.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 346ef7cacf534988892970d699ef4028 + expression: 'last(/Oracle by Zabbix agent 2/oracle.instance_hostname,#1)<>last(/Oracle by Zabbix agent 2/oracle.instance_hostname,#2) and length(last(/Oracle by Zabbix agent 2/oracle.instance_hostname))>0' + name: 'Oracle: Instance hostname has changed' + event_name: 'Oracle: Instance hostname has changed (new hostname received: {ITEM.VALUE})' + priority: INFO + description: 'An Oracle Database instance hostname has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0cc90c2554a7412eafe42c33dd1e9ede + name: 'Instance name' + type: DEPENDENT + key: oracle.instance_name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.instance + master_item: + key: 'oracle.instance.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + triggers: + - uuid: ed394860378642d5b9f220327ead6766 + expression: 'last(/Oracle by Zabbix agent 2/oracle.instance_name,#1)<>last(/Oracle by Zabbix agent 2/oracle.instance_name,#2) and length(last(/Oracle by Zabbix agent 2/oracle.instance_name))>0' + name: 'Oracle: Instance name has changed' + event_name: 'Oracle: Instance name has changed (new name received: {ITEM.VALUE})' + priority: INFO + description: 'An Oracle Database instance name has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f51053d243ef41089b5e635fd1abb5f3 + name: 'Instance status' + type: DEPENDENT + key: oracle.instance_status + delay: '0' + description: 'The status of the instance.' + valuemap: + name: 'Oracle instance status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + master_item: + key: 'oracle.instance.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: b2551269bf4541dfae378b9e48d1f5da + name: 'Library cache hit ratio' + type: DEPENDENT + key: oracle.library_cache_hit_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The ratio of library cache hits (Hits/Pins).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Library Cache Hit Ratio'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: cache + - uuid: 13a938f495ee464a8ed3f2575cd191b9 + name: 'Logons per second' + type: DEPENDENT + key: oracle.logons_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of logon attempts.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Logons Per Sec'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: 440f42943ebc436fb75bd5d8397fe876 + name: 'Long table scans per second' + type: DEPENDENT + key: oracle.long_table_scans_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of long table scans per second. A table is considered long if it is not cached and if its high water mark is greater than five blocks.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Long Table Scans Per Sec'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: 4769432ae04641758daabd5b27deaa01 + name: 'Memory sorts ratio' + type: DEPENDENT + key: oracle.memory_sorts_ratio + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sorts (from `ORDER BY` clauses or index building) that are done to disk vs. in-memory.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Memory Sorts Ratio'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: 4926809f2c244b33b1a0650510a30fa4 + name: 'Get PGA stats' + key: 'oracle.pga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get PGA statistics.' + tags: + - tag: component + value: raw + - uuid: 749a1281ba84475193897a3362f6f873 + name: 'PGA, Global memory bound' + type: DEPENDENT + key: oracle.pga_global_bound + delay: '0' + units: B + description: 'The maximum size of a work area executed in automatic mode.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''global memory bound'']' + master_item: + key: 'oracle.pga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + - tag: component + value: pga + - uuid: 2b5797f046434125b65daf31121fdd81 + name: 'PGA, Aggregate target parameter' + type: DEPENDENT + key: oracle.pga_target + delay: '0' + units: B + description: 'The current value of the `PGA_AGGREGATE_TARGET` initialization parameter. If this parameter is not set, then its value is "0" and automatic management of the PGA memory is disabled.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''aggregate PGA target parameter'']' + master_item: + key: 'oracle.pga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + - tag: component + value: pga + - uuid: e96ff6a018dc4553b9ad7f2dc87f4d99 + name: 'Physical reads per second' + type: DEPENDENT + key: oracle.physical_reads_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'Reads per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Physical Reads Per Sec'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: disk + - uuid: 92bf88b7b07048b785ca37d9b97cd78b + name: 'Physical reads bytes per second' + type: DEPENDENT + key: oracle.physical_read_bytes_rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Read bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Physical Read Bytes Per Sec'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: disk + - uuid: b71df51181c1464486ced05c95bdc938 + name: 'Physical writes per second' + type: DEPENDENT + key: oracle.physical_writes_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'Writes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Physical Writes Per Sec'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: disk + - uuid: e34abb4139fe43ae8b27edbe6ad12c8d + name: 'Physical writes bytes per second' + type: DEPENDENT + key: oracle.physical_write_bytes_rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Write bytes per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Physical Write Bytes Per Sec'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: disk + - uuid: 7f4d8ea4912944ec8bf32edff9e3b5ae + name: Ping + key: 'oracle.ping["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + delay: 30s + description: 'Test the connection to Oracle Database state.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: df6b0f5dd50848cc8c2e67947df0a5e1 + expression: 'last(/Oracle by Zabbix agent 2/oracle.ping["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"])=0' + name: 'Oracle: Connection to database is unavailable' + priority: DISASTER + description: 'Connection to Oracle Database is currently unavailable.' + tags: + - tag: scope + value: availability + - uuid: ce9dabcce58d408d8188fe7caa71e666 + name: 'Number of processes' + key: 'oracle.proc.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + description: 'The current number of user processes.' + preprocessing: + - type: JSONPATH + parameters: + - $.proc_num + tags: + - tag: component + value: system + - uuid: cdb59700d4a24fb3bea9d2b63d5d7938 + name: 'Processes limit' + type: DEPENDENT + key: oracle.processes_limit + delay: '0' + description: 'The maximum number of user processes.' + preprocessing: + - type: JSONPATH + parameters: + - $.processes + master_item: + key: 'oracle.sys.params["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: system + - uuid: 898a5325c2a2469dabb6a2356107dd66 + name: 'Redo logs available to switch' + key: 'oracle.redolog.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + description: 'The number of inactive/unused redo logs available for log switching.' + preprocessing: + - type: JSONPATH + parameters: + - $.available + tags: + - tag: component + value: application + triggers: + - uuid: 18dba6067a254bdd99a363c3d7b9bdb2 + expression: 'max(/Oracle by Zabbix agent 2/oracle.redolog.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"],5m) < {$ORACLE.REDO.MIN.WARN}' + name: 'Oracle: Number of REDO logs available for switching is too low' + event_name: 'Oracle: Number of REDO logs available for switching is too low (less {$ORACLE.REDO.MIN.WARN} for 5 min)' + priority: WARNING + description: 'The number of inactive/unused redos available for log switching is low (risk of database downtime).' + tags: + - tag: scope + value: capacity + - uuid: e8aca0dfd1d74d3b9b042d3ed3070e42 + name: 'Rows per sort' + type: DEPENDENT + key: oracle.rows_per_sort + delay: '0' + value_type: FLOAT + description: 'The average number of rows per sort for all types of sorts performed.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Rows Per Sort'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: 0458d6dd9bde4f2aa51319e3c23f5eae + name: 'SQL service response time' + type: DEPENDENT + key: oracle.service_response_time + delay: '0' + value_type: FLOAT + units: s + description: 'The Structured Query Language (SQL) service response time expressed in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''SQL Service Response Time'']' + - type: MULTIPLIER + parameters: + - '0.01' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: 41d61d167bf044fe9f0d9815b4fd27e6 + name: 'Get sessions stats' + key: 'oracle.sessions.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{$ORACLE.SESSION.LOCK.MAX.TIME}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get sessions statistics. {$ORACLE.SESSION.LOCK.MAX.TIME} -- maximum seconds in the current wait condition for counting long time locked sessions. Default: 600 seconds.' + tags: + - tag: component + value: raw + - uuid: 89811a05632c478d97165f629dadd5b9 + name: 'Active background sessions' + type: DEPENDENT + key: oracle.session_active_background + delay: '0' + value_type: FLOAT + description: 'The number of active background sessions.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_background + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'oracle.sessions.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{$ORACLE.SESSION.LOCK.MAX.TIME}"]' + tags: + - tag: component + value: sessions + - uuid: a7ef5969fff545968d7c133bc67baaac + name: 'Active user sessions' + type: DEPENDENT + key: oracle.session_active_user + delay: '0' + value_type: FLOAT + description: 'The number of active user sessions.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_user + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'oracle.sessions.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{$ORACLE.SESSION.LOCK.MAX.TIME}"]' + tags: + - tag: component + value: sessions + - uuid: d91119f30b95418bab67f929737e6bf8 + name: 'Sessions concurrency' + type: DEPENDENT + key: oracle.session_concurrency_rate + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of concurrency. Concurrency is a database behavior when different transactions request to change the same resource. In the case of modifying data transactions, it sequentially temporarily blocks the right to change the data, and the rest of the transactions wait for access. When the access to a resource is locked for a long time, the concurrency grows (like the transaction queue), often leaving an extremely negative impact on performance. A high contention value does not indicate the root cause of the problem, but is a signal to search for it.' + preprocessing: + - type: JSONPATH + parameters: + - $.concurrency_rate + master_item: + key: 'oracle.sessions.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{$ORACLE.SESSION.LOCK.MAX.TIME}"]' + tags: + - tag: component + value: sessions + triggers: + - uuid: ff16c7bbeaa5439f98ffe12ce7deff71 + expression: 'min(/Oracle by Zabbix agent 2/oracle.session_concurrency_rate,5m) > {$ORACLE.CONCURRENCY.MAX.WARN}' + name: 'Oracle: Too high database concurrency' + event_name: 'Oracle: Too high database concurrency (over {$ORACLE.CONCURRENCY.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'The concurrency rate exceeds `{$ORACLE.CONCURRENCY.MAX.WARN}`%. A high contention value does not indicate the root cause of the problem, but is a signal to review resource consumption (determine the "heaviest" queries in the database, trace sessions, etc.) This will help find the root cause and possible optimization points both in database configuration and the logic of building queries.' + tags: + - tag: scope + value: performance + - uuid: cfd7559ac25e4c0a837048e675f4d995 + name: 'Session count' + type: DEPENDENT + key: oracle.session_count + delay: '0' + value_type: FLOAT + description: 'The session count.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + master_item: + key: 'oracle.sessions.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{$ORACLE.SESSION.LOCK.MAX.TIME}"]' + tags: + - tag: component + value: sessions + - uuid: 2222705798fd464492c6f692dd9a0392 + name: 'Inactive user sessions' + type: DEPENDENT + key: oracle.session_inactive_user + delay: '0' + value_type: FLOAT + description: 'The number of inactive user sessions.' + preprocessing: + - type: JSONPATH + parameters: + - $.inactive_user + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'oracle.sessions.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{$ORACLE.SESSION.LOCK.MAX.TIME}"]' + tags: + - tag: component + value: sessions + - uuid: 381c97858785442389cd6ab74d0ee285 + name: 'Sessions limit' + type: DEPENDENT + key: oracle.session_limit + delay: '0' + description: 'The user and system sessions.' + preprocessing: + - type: JSONPATH + parameters: + - $.sessions + master_item: + key: 'oracle.sys.params["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: sessions + - uuid: c1717acc82784151b5afc6ad08ce3145 + name: 'Sessions lock rate' + type: DEPENDENT + key: oracle.session_lock_rate + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of locked sessions. Locks are mechanisms that prevent destructive interaction between transactions accessing the same resource - either user objects, such as tables and rows or system objects not visible to users, such as shared data structures in memory and data dictionary rows.' + preprocessing: + - type: JSONPATH + parameters: + - $.lock_rate + master_item: + key: 'oracle.sessions.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{$ORACLE.SESSION.LOCK.MAX.TIME}"]' + tags: + - tag: component + value: sessions + triggers: + - uuid: 504e5d964de645679ce448165dadd027 + expression: 'min(/Oracle by Zabbix agent 2/oracle.session_lock_rate,5m) > {$ORACLE.SESSIONS.LOCK.MAX.WARN}' + name: 'Oracle: Too many locked sessions' + event_name: 'Oracle: Too many locked sessions (over {$ORACLE.SESSIONS.LOCK.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'The number of locked sessions exceeds `{$ORACLE.SESSIONS.LOCK.MAX.WARN}`% of the running sessions.' + tags: + - tag: scope + value: performance + - uuid: c279df21264642369d65a6c72a11698d + name: 'Sessions locked over {$ORACLE.SESSION.LOCK.MAX.TIME}s' + type: DEPENDENT + key: oracle.session_long_time_locked + delay: '0' + value_type: FLOAT + description: 'The count of the prolongedly locked sessions. (You can change the duration of the maximum session lock in seconds for a query using the `{$ORACLE.SESSION.LOCK.MAX.TIME}` macro. Default = 600 s).' + preprocessing: + - type: JSONPATH + parameters: + - $.long_time_locked + master_item: + key: 'oracle.sessions.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{$ORACLE.SESSION.LOCK.MAX.TIME}"]' + tags: + - tag: component + value: sessions + triggers: + - uuid: 5abc07cd48514a0dac90ce946ce6bc3a + expression: 'min(/Oracle by Zabbix agent 2/oracle.session_long_time_locked,5m) > {$ORACLE.SESSION.LONG.LOCK.MAX.WARN}' + name: 'Oracle: Too many sessions locked' + event_name: 'Oracle: Too many sessions locked over {$ORACLE.SESSION.LOCK.MAX.TIME}s (over {$ORACLE.SESSION.LONG.LOCK.MAX.WARN} for 5 min)' + priority: WARNING + description: 'The number of locked sessions exceeding `{$ORACLE.SESSION.LOCK.MAX.TIME}` seconds is too high. Long-term locks can negatively affect the database performance. Therefore, if they are detected, you should first find the most difficult queries from the database point of view and then analyze possible resource leaks.' + tags: + - tag: scope + value: performance + - uuid: 1bafc80a94fb454785362593b8a73be3 + name: 'Get SGA stats' + key: 'oracle.sga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get SGA statistics.' + tags: + - tag: component + value: raw + - uuid: 7ad06a6ccb834c5c95f30c319a48446c + name: 'SGA, buffer cache' + type: DEPENDENT + key: oracle.sga_buffer_cache + delay: '0' + units: B + description: 'The size of standard block cache.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffer_cache + master_item: + key: 'oracle.sga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: cache + - tag: component + value: sga + - uuid: 39dc67c29cce4742acf832949dc57760 + name: 'SGA, fixed' + type: DEPENDENT + key: oracle.sga_fixed + delay: '0' + units: B + description: 'The fixed System Global Area (SGA) is an internal housekeeping area.' + preprocessing: + - type: JSONPATH + parameters: + - $.fixed_sga + master_item: + key: 'oracle.sga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + - tag: component + value: sga + - uuid: 562c02f282974020add8f98e9865fb9d + name: 'SGA, java pool' + type: DEPENDENT + key: oracle.sga_java_pool + delay: '0' + units: B + description: 'The memory is allocated from the Java pool.' + preprocessing: + - type: JSONPATH + parameters: + - $.java_pool + master_item: + key: 'oracle.sga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + - tag: component + value: sga + - uuid: 35e3346e273a46339e7b5d3721584d3a + name: 'SGA, large pool' + type: DEPENDENT + key: oracle.sga_large_pool + delay: '0' + units: B + description: 'The memory is allocated from a large pool.' + preprocessing: + - type: JSONPATH + parameters: + - $.large_pool + master_item: + key: 'oracle.sga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + - tag: component + value: sga + - uuid: 77c17fc1056745c4949b3476c3b920d4 + name: 'SGA, log buffer' + type: DEPENDENT + key: oracle.sga_log_buffer + delay: '0' + units: B + description: 'The number of bytes allocated for the redo log buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.log_buffer + master_item: + key: 'oracle.sga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + - tag: component + value: sga + - uuid: b64f3cad53814e989c576d3ce51bf42d + name: 'SGA, shared pool' + type: DEPENDENT + key: oracle.sga_shared_pool + delay: '0' + units: B + description: 'The memory is allocated from a shared pool.' + preprocessing: + - type: JSONPATH + parameters: + - $.shared_pool + master_item: + key: 'oracle.sga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + - tag: component + value: sga + - uuid: 517c7b3bbf8d40988e6a8289319eaec9 + name: 'Shared pool free %' + type: DEPENDENT + key: oracle.shared_pool_free + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free memory of a shared pool expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Shared Pool Free %'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + triggers: + - uuid: 80dbf89c86764cf09d2c5ec834e8940c + expression: 'max(/Oracle by Zabbix agent 2/oracle.shared_pool_free,5m)<{$ORACLE.SHARED.FREE.MIN.WARN}' + name: 'Oracle: Shared pool free is too low' + event_name: 'Oracle: Shared pool free is too low (less {$ORACLE.SHARED.FREE.MIN.WARN}% for 5m)' + priority: WARNING + description: 'The free memory percent of the shared pool has been less than `{$ORACLE.SHARED.FREE.MIN.WARN}`% for the last 5 minutes.' + tags: + - tag: scope + value: capacity + - uuid: 28c7030b02714d5ea402fe6f2a3d769a + name: 'Total sorts per user call' + type: DEPENDENT + key: oracle.sorts_per_user_call + delay: '0' + value_type: FLOAT + description: 'The total sorts per user call.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Total Sorts Per User Call'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: eccce1efc85d46199b3147ec586e1cd5 + name: 'Get system metrics' + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + delay: 0;m0-59 + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the values of the system metrics.' + tags: + - tag: component + value: raw + - uuid: d59cca864e8044d89f9b4689ec712511 + name: 'Get system parameters' + key: 'oracle.sys.params["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get a set of system parameter values.' + tags: + - tag: component + value: raw + - uuid: 48f54a0324a64e80aaf22d5cd26798cd + name: 'Temp space used' + type: DEPENDENT + key: oracle.temp_space_used + delay: '0' + value_type: FLOAT + units: B + description: 'Used temporary space.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''Temp Space Used'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: 1a4efb793cff4224b0ae02272be2fe85 + name: 'PGA, Total allocated' + type: DEPENDENT + key: oracle.total_pga_allocated + delay: '0' + units: B + description: 'The current amount of the PGA memory allocated by the instance. The Oracle Database attempts to keep this number below the value of the `PGA_AGGREGATE_TARGET` initialization parameter. However, it is possible for the PGA allocated to exceed that value by a small percentage and for a short period of time when the work area workload is increasing very rapidly or when `PGA_AGGREGATE_TARGET` is set to a small value.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''total PGA allocated'']' + master_item: + key: 'oracle.pga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + - tag: component + value: pga + - uuid: 264b73d153694b52a47ac0219a8de66c + name: 'PGA, Total freeable' + type: DEPENDENT + key: oracle.total_pga_freeable + delay: '0' + units: B + description: 'The number of bytes of the PGA memory in all processes that could be freed back to the OS.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''total freeable PGA memory'']' + master_item: + key: 'oracle.pga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + - tag: component + value: pga + - uuid: 3f3083748a4f42998b135b1b4f88d11a + name: 'PGA, Total inuse' + type: DEPENDENT + key: oracle.total_pga_used + delay: '0' + units: B + description: 'The amount of Program Global Area (PGA) memory currently consumed by work areas. This number can be used to determine how much memory is consumed by other consumers of the PGA memory (for example, PL/SQL or Java).' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''total PGA inuse'']' + master_item: + key: 'oracle.pga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: memory + - tag: component + value: pga + - uuid: 4f1a9efea8594486b226307a52e35474 + name: Uptime + type: DEPENDENT + key: oracle.uptime + delay: '0' + trends: '0' + units: s + description: 'The Oracle instance uptime expressed in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime + master_item: + key: 'oracle.instance.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + triggers: + - uuid: bcdaf519783f453e81d7064207f8bd30 + expression: 'nodata(/Oracle by Zabbix agent 2/oracle.uptime,30m)=1' + name: 'Oracle: Failed to fetch info data' + event_name: 'Oracle: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for the items for the last 5 minutes. The database might be unavailable for connecting.' + tags: + - tag: scope + value: availability + - uuid: 5eae478e85834eee91b94680d529dcdb + expression: 'last(/Oracle by Zabbix agent 2/oracle.uptime)<10m' + name: 'Oracle: Host has been restarted' + event_name: 'Oracle: {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: 73ff311f3d5c4e93b5919f5633fc09f9 + name: 'User''s expire password' + key: 'oracle.user.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + value_type: FLOAT + units: days + description: 'The number of days before the Zabbix account password expires.' + preprocessing: + - type: JSONPATH + parameters: + - $.exp_passwd_days_before + tags: + - tag: component + value: application + triggers: + - uuid: 5eaa700c3bb74399ad2d26c382397415 + expression: 'last(/Oracle by Zabbix agent 2/oracle.user.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]) < {$ORACLE.EXPIRE.PASSWORD.MIN.WARN}' + name: 'Oracle: Zabbix account will expire soon' + event_name: 'Oracle: Zabbix account will expire soon (under {$ORACLE.EXPIRE.PASSWORD.MIN.WARN} days)' + priority: WARNING + description: 'The password for the Zabbix user in the database expires soon.' + tags: + - tag: scope + value: notice + - uuid: cec9a53d637e42c79e2a838588ceeaca + name: 'User rollbacks per second' + type: DEPENDENT + key: oracle.user_rollbacks_rate + delay: '0' + value_type: FLOAT + units: Rps + description: 'The number of times that users manually issued the `ROLLBACK` statement or an error occurred during the users'' transactions.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''User Rollbacks Per Sec'']' + master_item: + key: 'oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + tags: + - tag: component + value: application + - uuid: 04c0b90a0a7c4d6a95f51d006a65a530 + name: Version + key: 'oracle.version["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + delay: 15m + value_type: CHAR + trends: '0' + description: 'The Oracle Server version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: application + triggers: + - uuid: 4a68bcb6149c4c839e263c949343add8 + expression: 'last(/Oracle by Zabbix agent 2/oracle.version["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"],#1)<>last(/Oracle by Zabbix agent 2/oracle.version["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"],#2) and length(last(/Oracle by Zabbix agent 2/oracle.version["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]))>0' + name: 'Oracle: Version has changed' + event_name: 'Oracle: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + description: 'The Oracle Database version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: e2f1ce8c037f4efa9bdb98166d344be6 + name: 'Archive log discovery' + key: 'oracle.archive.discovery["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + delay: 1h + description: 'Destinations of the log archive.' + item_prototypes: + - uuid: 1ad93880e4314d68b9e1aa4e00f03b6e + name: 'Archivelog ''{#DEST_NAME}'': Get archive log info' + key: 'oracle.archive.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DEST_NAME}"]' + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the archive log statistics.' + tags: + - tag: component + value: archive-log + - tag: component + value: raw + - uuid: 46ae0ac79493430a94ac50f79dc053ba + name: 'Archivelog ''{#DEST_NAME}'': Error' + type: DEPENDENT + key: 'oracle.archivelog_error["{#DEST_NAME}"]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Displays the error message.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#DEST_NAME}''].error.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oracle.archive.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DEST_NAME}"]' + tags: + - tag: component + value: archive-log + - tag: destination + value: '{#DEST_NAME}' + - uuid: ce76a8ece06f4a17bfaf08b4351346d5 + name: 'Archivelog ''{#DEST_NAME}'': Last sequence' + type: DEPENDENT + key: 'oracle.archivelog_log_sequence["{#DEST_NAME}"]' + delay: '0' + description: 'Identifies the sequence number of the last archived redo log to be archived.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#DEST_NAME}''].log_sequence.first()' + master_item: + key: 'oracle.archive.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DEST_NAME}"]' + tags: + - tag: component + value: archive-log + - tag: destination + value: '{#DEST_NAME}' + - uuid: a411a4e1c8ca4ea2a1ece92075cd0325 + name: 'Archivelog ''{#DEST_NAME}'': Status' + type: DEPENDENT + key: 'oracle.archivelog_log_status["{#DEST_NAME}"]' + delay: '0' + description: | + Identifies the current status of the destination where: + 1 - VALID; + 2 - DEFERRED; + 3 - ERROR; + 0 - UNKNOWN. + valuemap: + name: 'Oracle Archivelog status' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#DEST_NAME}''].status.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'oracle.archive.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DEST_NAME}"]' + tags: + - tag: component + value: archive-log + - tag: destination + value: '{#DEST_NAME}' + trigger_prototypes: + - uuid: e2d393c0ff2f420097e19890bcbe215c + expression: 'last(/Oracle by Zabbix agent 2/oracle.archivelog_log_status["{#DEST_NAME}"])<2' + name: 'Oracle: Archivelog ''{#DEST_NAME}'': Log Archive is not valid' + priority: HIGH + description: | + The trigger will launch if the archive log destination is not in one of these states: + 2 - DEFERRED; + 3 - VALID. + tags: + - tag: scope + value: availability + - uuid: 59840e68757644afbcf6ec49a6f5e95d + name: 'Database discovery' + key: 'oracle.db.discovery["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$ORACLE.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DBNAME}' + value: '{$ORACLE.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Scanning databases in the database management system (DBMS).' + item_prototypes: + - uuid: 1bad65e85d8b482d9cd83b1d202f8d8c + name: 'Database ''{#DBNAME}'': Get CDB and No-CDB info' + key: 'oracle.cdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DBNAME}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the information about the CDB and non-CDB database on an instance.' + tags: + - tag: component + value: cdb + - tag: component + value: raw + - uuid: d9d1575b767b46e0aefe65a270f2d01b + name: 'Database ''{#DBNAME}'': Force logging' + type: DEPENDENT + key: 'oracle.db_force_logging["{#DBNAME}"]' + delay: '0' + description: 'Indicates whether the database is under force logging mode (`YES`/`NO`).' + valuemap: + name: 'Oracle force log status' + preprocessing: + - type: JSONPATH + parameters: + - '$..{#DBNAME}.force_logging.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'oracle.cdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - tag: type + value: '{#TYPE}' + - uuid: a499423d6e8d44f2bc11beceb30c5fc1 + name: 'Database ''{#DBNAME}'': Log mode' + type: DEPENDENT + key: 'oracle.db_log_mode["{#DBNAME}"]' + delay: '0' + description: | + The archive log mode where: + 0 - NOARCHIVELOG; + 1 - ARCHIVELOG; + 2 - MANUAL. + valuemap: + name: 'Oracle log mode' + preprocessing: + - type: JSONPATH + parameters: + - '$..{#DBNAME}.log_mode.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'oracle.cdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - tag: type + value: '{#TYPE}' + - uuid: 0b0cfebb30aa4d21b8ff91f887fdffde + name: 'Database ''{#DBNAME}'': Open status' + type: DEPENDENT + key: 'oracle.db_open_mode["{#DBNAME}"]' + delay: '0' + description: | + 1 - MOUNTED; + 2 - READ WRITE; + 3 - READ ONLY; + 4 - READ ONLY WITH APPLY (a physical standby database is open in real-time query mode). + valuemap: + name: 'Oracle DB open status' + preprocessing: + - type: JSONPATH + parameters: + - '$..{#DBNAME}.open_mode.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'oracle.cdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: fb642c2cfeb142409c67a7755d1047cc + expression: 'last(/Oracle by Zabbix agent 2/oracle.db_open_mode["{#DBNAME}"],#1)<>last(/Oracle by Zabbix agent 2/oracle.db_open_mode["{#DBNAME}"],#2)' + name: 'Oracle: Database ''{#DBNAME}'': Open status has changed' + event_name: 'Oracle: Database ''{#DBNAME}'': Open status has changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'The Oracle Database open status has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Oracle: Database ''{#DBNAME}'': Open status in mount mode' + expression: 'last(/Oracle by Zabbix agent 2/oracle.db_open_mode["{#DBNAME}"])=1' + tags: + - tag: scope + value: notice + - uuid: ef1c57d8f7d34c02bf0b7347d9fddf54 + expression: 'last(/Oracle by Zabbix agent 2/oracle.db_open_mode["{#DBNAME}"])=1' + name: 'Oracle: Database ''{#DBNAME}'': Open status in mount mode' + priority: WARNING + description: 'The Oracle Database is in a mounted state.' + tags: + - tag: scope + value: notice + - uuid: 560b010dcdfc445cbd4e266b88b60e24 + name: 'Database ''{#DBNAME}'': Role' + type: DEPENDENT + key: 'oracle.db_role["{#DBNAME}"]' + delay: '0' + description: | + The current role of the database where: + 1 - SNAPSHOT STANDBY; + 2 - LOGICAL STANDBY; + 3 - PHYSICAL STANDBY; + 4 - PRIMARY; + 5 - FAR SYNC. + valuemap: + name: 'Oracle DB role' + preprocessing: + - type: JSONPATH + parameters: + - '$..{#DBNAME}.role.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'oracle.cdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DBNAME}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: 24fef0b751fd4d089eced3c210954b4f + expression: 'last(/Oracle by Zabbix agent 2/oracle.db_role["{#DBNAME}"],#1)<>last(/Oracle by Zabbix agent 2/oracle.db_role["{#DBNAME}"],#2)' + name: 'Oracle: Database ''{#DBNAME}'': Role has changed' + event_name: 'Oracle: Database ''{#DBNAME}'': Role has changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'The Oracle Database role has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + trigger_prototypes: + - uuid: 049473f763d84700b62abf5c914390fe + expression: 'last(/Oracle by Zabbix agent 2/oracle.db_force_logging["{#DBNAME}"]) = 0 and last(/Oracle by Zabbix agent 2/oracle.db_log_mode["{#DBNAME}"]) = 1' + name: 'Oracle: Database ''{#DBNAME}'': Force logging is deactivated for DB with active Archivelog' + priority: WARNING + description: 'Force logging mode is a very important metric for databases in `ARCHIVELOG`. This feature allows to forcibly write all the transactions to the redo log.' + tags: + - tag: scope + value: performance + - uuid: 8d31eea973a7408abf0eb25ca7ba70c6 + name: 'ASM disk groups discovery' + key: 'oracle.diskgroups.discovery["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + delay: 1h + description: 'The ASM disk groups.' + item_prototypes: + - uuid: 8b4e5c9385d04a39b2187e093ffca213 + name: 'ASM ''{#DGNAME}'': Free size' + type: DEPENDENT + key: 'oracle.asm_free_size["{#DGNAME}"]' + delay: '0' + units: B + description: 'The free size of the ASM disk group.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#DGNAME}''].free_bytes.first()' + master_item: + key: 'oracle.diskgroups.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DGNAME}"]' + tags: + - tag: component + value: asm + - tag: disk-group + value: '{#DGNAME}' + - uuid: b80f69f44dd24eae82a301dbefb0c60f + name: 'ASM ''{#DGNAME}'': Total size' + type: DEPENDENT + key: 'oracle.asm_total_size["{#DGNAME}"]' + delay: '0' + units: B + description: 'The total size of the ASM disk group.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#DGNAME}''].total_bytes.first()' + master_item: + key: 'oracle.diskgroups.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DGNAME}"]' + tags: + - tag: component + value: asm + - tag: disk-group + value: '{#DGNAME}' + - uuid: e2a0ac73040f401bb05ff88140f6665b + name: 'ASM ''{#DGNAME}'': Used size, percent' + type: DEPENDENT + key: 'oracle.asm_used_pct["{#DGNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Usage of the ASM disk group expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#DGNAME}''].used_pct.first()' + master_item: + key: 'oracle.diskgroups.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DGNAME}"]' + tags: + - tag: component + value: asm + - tag: disk-group + value: '{#DGNAME}' + trigger_prototypes: + - uuid: b8aa1b00e2574e35bf71554cabfffcfc + expression: 'min(/Oracle by Zabbix agent 2/oracle.asm_used_pct["{#DGNAME}"],5m)>{$ORACLE.ASM.USED.PCT.MAX.HIGH}' + name: 'Oracle: ASM ''{#DGNAME}'': Disk group usage is too high' + event_name: 'Oracle: ASM ''{#DGNAME}'': Disk group usage is too high (over {$ORACLE.ASM.USED.PCT.MAX.HIGH}% for 5m)' + priority: HIGH + description: 'The usage of the ASM disk group expressed in % exceeds `{$ORACLE.ASM.USED.PCT.MAX.HIGH}`.' + tags: + - tag: scope + value: capacity + - uuid: af6ff1d099524209b2806b1257e9a8e3 + expression: 'min(/Oracle by Zabbix agent 2/oracle.asm_used_pct["{#DGNAME}"],5m)>{$ORACLE.ASM.USED.PCT.MAX.WARN}' + name: 'Oracle: ASM ''{#DGNAME}'': Disk group usage is too high' + event_name: 'Oracle: ASM ''{#DGNAME}'': Disk group usage is too high (over {$ORACLE.ASM.USED.PCT.MAX.WARN}% for 5m)' + priority: WARNING + description: 'The usage of the ASM disk group expressed in % exceeds `{$ORACLE.ASM.USED.PCT.MAX.WARN}`.' + dependencies: + - name: 'Oracle: ASM ''{#DGNAME}'': Disk group usage is too high' + expression: 'min(/Oracle by Zabbix agent 2/oracle.asm_used_pct["{#DGNAME}"],5m)>{$ORACLE.ASM.USED.PCT.MAX.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: cb703b07fc514ce5aedc561896bcd53f + name: 'ASM ''{#DGNAME}'': Get ASM stats' + key: 'oracle.diskgroups.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DGNAME}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the ASM disk group statistics.' + tags: + - tag: component + value: asm + - tag: component + value: raw + graph_prototypes: + - uuid: f42e49e6743f4b08b5bdc3ab284b26f3 + name: 'ASM ''{#DGNAME}'': ASM disk group ''{#DGNAME}''' + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: 'oracle.asm_free_size["{#DGNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: 'oracle.asm_total_size["{#DGNAME}"]' + - uuid: 479a56fe538f46c094cc4b595d070776 + name: 'PDB discovery' + key: 'oracle.pdb.discovery["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$ORACLE.DBNAME.MATCHES}' + formulaid: A + - macro: '{#DBNAME}' + value: '{$ORACLE.DBNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Scanning a pluggable database (PDB) in DBMS.' + item_prototypes: + - uuid: ca4452418d2641bd87fa75e946c2bf98 + name: 'Database ''{#DBNAME}'': Get PDB info' + key: 'oracle.pdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#CON_ID}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the information about the PDB database on an instance.' + tags: + - tag: component + value: pdb + - tag: component + value: raw + - uuid: c52e96105cea45cea1b18201b325ba53 + name: 'Database ''{#DBNAME}'': Open status' + type: DEPENDENT + key: 'oracle.pdb_open_mode["{#CON_ID}"]' + delay: '0' + description: | + 1 - MOUNTED; + 2 - READ WRITE; + 3 - READ ONLY; + 4 - READ ONLY WITH APPLY (a physical standby database is open in real-time query mode). + valuemap: + name: 'Oracle DB open status' + preprocessing: + - type: JSONPATH + parameters: + - '$..{#DBNAME}.open_mode.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 15m + master_item: + key: 'oracle.pdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#CON_ID}"]' + tags: + - tag: component + value: database + - tag: database + value: '{#DBNAME}' + - tag: type + value: pdb + trigger_prototypes: + - uuid: 61f48e1d858f4e95a603b32ee1c409dc + expression: 'last(/Oracle by Zabbix agent 2/oracle.pdb_open_mode["{#CON_ID}"],#1)<>last(/Oracle by Zabbix agent 2/oracle.pdb_open_mode["{#CON_ID}"],#2)' + name: 'Oracle: Database ''{#DBNAME}'': Open status has changed' + event_name: 'Oracle: Database ''{#DBNAME}'': Open status has changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'The Oracle Database open status has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a6921cc3b42843dcb5624b3bb172f996 + expression: 'last(/Oracle by Zabbix agent 2/oracle.pdb_open_mode["{#CON_ID}"])=1' + name: 'Oracle: Database ''{#DBNAME}'': Open status in mount mode' + priority: WARNING + description: 'The Oracle Database is in a mounted state.' + tags: + - tag: scope + value: notice + - uuid: 46ee5f42a15b43a58f7ef0ce5e3638d3 + name: 'Tablespace discovery' + key: 'oracle.ts.discovery["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#CON_NAME}' + value: '{$ORACLE.TABLESPACE.CONTAINER.MATCHES}' + formulaid: A + - macro: '{#CON_NAME}' + value: '{$ORACLE.TABLESPACE.CONTAINER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TABLESPACE}' + value: '{$ORACLE.TABLESPACE.NAME.MATCHES}' + formulaid: C + - macro: '{#TABLESPACE}' + value: '{$ORACLE.TABLESPACE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Scanning tablespaces in DBMS.' + item_prototypes: + - uuid: 14a26a84cfe947089843ed93cd7707c8 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace allocated, bytes' + type: DEPENDENT + key: 'oracle.tbs_alloc_bytes["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + units: B + description: 'Currently allocated bytes for the tablespace (sum of the current size of datafiles).' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#TABLESPACE}''].file_bytes.first()' + master_item: + key: 'oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}","{#CON_ID}"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + - uuid: d7263b6da6c04c7798909a8448f526ab + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace free, bytes' + type: DEPENDENT + key: 'oracle.tbs_free_bytes["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + units: B + description: 'Free bytes of the allocated space.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#TABLESPACE}''].free_bytes.first()' + master_item: + key: 'oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}","{#CON_ID}"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + - uuid: d2d919d303b244829c797245e08c2fe5 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace MAX size, bytes' + type: DEPENDENT + key: 'oracle.tbs_max_bytes["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + units: B + description: 'The maximum size of the tablespace.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#TABLESPACE}''].max_bytes.first()' + master_item: + key: 'oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}","{#CON_ID}"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + - uuid: de6892ac5ca4499db01dd02c0444aafc + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Open status' + type: DEPENDENT + key: 'oracle.tbs_status["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + description: | + The tablespace status where: + 1 - ONLINE; + 2 - OFFLINE; + 3 - READ ONLY. + valuemap: + name: 'Oracle tablespace status' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#TABLESPACE}''].status.first()' + master_item: + key: 'oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}","{#CON_ID}"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + trigger_prototypes: + - uuid: 832f908ca3b84a3c9a030b5d33b96016 + expression: 'last(/Oracle by Zabbix agent 2/oracle.tbs_status["{#CON_ID}","{#TABLESPACE}"])=2' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace is OFFLINE' + priority: WARNING + description: 'The tablespace is in the offline state.' + tags: + - tag: scope + value: availability + - uuid: 2e84836974b340b5b916eed08e1fcdf4 + expression: 'last(/Oracle by Zabbix agent 2/oracle.tbs_status["{#CON_ID}","{#TABLESPACE}"],#1)<>last(/Oracle by Zabbix agent 2/oracle.tbs_status["{#CON_ID}","{#TABLESPACE}"],#2)' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace status has changed' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace status has changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'Oracle tablespace status has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace is OFFLINE' + expression: 'last(/Oracle by Zabbix agent 2/oracle.tbs_status["{#CON_ID}","{#TABLESPACE}"])=2' + tags: + - tag: scope + value: notice + - uuid: ab56fee407e143db912dffcf24fb0106 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace used, bytes' + type: DEPENDENT + key: 'oracle.tbs_used_bytes["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + units: B + description: 'Currently used bytes for the tablespace (current size of datafiles minus the free space).' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#TABLESPACE}''].used_bytes.first()' + master_item: + key: 'oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}","{#CON_ID}"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + - uuid: 358615a3e372462e9cec05df1df22743 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage, percent' + type: DEPENDENT + key: 'oracle.tbs_used_file_pct["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Used bytes/allocated bytes*100.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#TABLESPACE}''].used_file_pct.first()' + master_item: + key: 'oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}","{#CON_ID}"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + trigger_prototypes: + - uuid: bbc86236064348ee9150dfdd07623061 + expression: 'min(/Oracle by Zabbix agent 2/oracle.tbs_used_file_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.MAX.HIGH}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage is too high (over {$ORACLE.TBS.USED.PCT.MAX.HIGH}% for 5m).' + priority: HIGH + description: 'The usage of the tablespace `{#TABLESPACE}` exceeds `{$ORACLE.TBS.USED.PCT.MAX.HIGH}`%' + tags: + - tag: scope + value: capacity + - uuid: ba298d35aaaa4386b4f03914dcf1cb27 + expression: 'min(/Oracle by Zabbix agent 2/oracle.tbs_used_file_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.MAX.WARN}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage is too high (over {$ORACLE.TBS.USED.PCT.MAX.WARN}% for 5m).' + priority: WARNING + description: 'The usage of the tablespace `{#TABLESPACE}` exceeds `{$ORACLE.TBS.USED.PCT.MAX.WARN}`%' + dependencies: + - name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage is too high' + expression: 'min(/Oracle by Zabbix agent 2/oracle.tbs_used_file_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.MAX.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 93f6abb8363e4ee2ad2801090cf006b0 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage from MAX, percent' + type: DEPENDENT + key: 'oracle.tbs_used_from_max_pct["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Used bytes/max bytes*100.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#TABLESPACE}''].used_from_max_pct.first()' + master_item: + key: 'oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}","{#CON_ID}"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + trigger_prototypes: + - uuid: dd246e51d0b343f0b18b18dc802dfbc2 + expression: 'min(/Oracle by Zabbix agent 2/oracle.tbs_used_from_max_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.FROM.MAX.WARN}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace usage from MAX is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization from MAX is too high (over {$ORACLE.TBS.USED.PCT.FROM.MAX.WARN}% for 5m).' + priority: WARNING + description: 'The usage of the tablespace `{#TABLESPACE}` from MAX exceeds `{$ORACLE.TBS.USED.PCT.FROM.MAX.WARN}`%' + dependencies: + - name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization from MAX is too high' + expression: 'min(/Oracle by Zabbix agent 2/oracle.tbs_used_from_max_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: a82c07893e04440ea9c0e5e7f8f79602 + expression: 'min(/Oracle by Zabbix agent 2/oracle.tbs_used_from_max_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization from MAX is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization from MAX is too high (over {$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}% for 5m).' + priority: HIGH + description: 'The usage of the tablespace `{#TABLESPACE}` from MAX exceeds `{$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}`%' + tags: + - tag: scope + value: capacity + - uuid: 5d6293b33a46488c88a75dc898bf7059 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace allocated, percent' + type: DEPENDENT + key: 'oracle.tbs_used_pct["{#CON_ID}","{#TABLESPACE}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Allocated bytes/max bytes*100.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#TABLESPACE}''].used_pct_max.first()' + master_item: + key: 'oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}","{#CON_ID}"]' + tags: + - tag: component + value: tablespaces + - tag: contents + value: '{#CONTENTS}' + - tag: database + value: '{#CON_NAME}' + - tag: tablespace + value: '{#TABLESPACE}' + trigger_prototypes: + - uuid: 451108a2251848ea8719378d5c0abb42 + expression: 'min(/Oracle by Zabbix agent 2/oracle.tbs_used_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization is too high (over {$ORACLE.TBS.UTIL.PCT.MAX.HIGH}% for 5m).' + priority: HIGH + description: 'The utilization of the tablespace `{#TABLESPACE}` exceeds `{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}`%' + tags: + - tag: scope + value: capacity + - uuid: 2530cb03fb4e4e728396834f0db89466 + expression: 'min(/Oracle by Zabbix agent 2/oracle.tbs_used_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.UTIL.PCT.MAX.WARN}' + name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization is too high' + event_name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization is too high (over {$ORACLE.TBS.UTIL.PCT.MAX.WARN}% for 5m).' + priority: WARNING + description: 'The utilization of the tablespace `{#TABLESPACE}` exceeds `{$ORACLE.TBS.UTIL.PCT.MAX.WARN}`%' + dependencies: + - name: 'Oracle: ''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace utilization is too high' + expression: 'min(/Oracle by Zabbix agent 2/oracle.tbs_used_pct["{#CON_ID}","{#TABLESPACE}"],5m)>{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 97ac4acedcde465b8d004a8ac476dd99 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Get tablespaces stats' + key: 'oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}","{#CON_ID}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets the statistics of the tablespace.' + tags: + - tag: component + value: raw + - tag: component + value: tablespaces + graph_prototypes: + - uuid: 4b20cce21abb453f9aab0dbce75ff060 + name: '''{#CON_NAME}'' TBS ''{#TABLESPACE}'': Tablespace ''{#TABLESPACE}''' + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: 'oracle.tbs_alloc_bytes["{#CON_ID}","{#TABLESPACE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: 'oracle.tbs_max_bytes["{#CON_ID}","{#TABLESPACE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'Oracle by Zabbix agent 2' + key: 'oracle.tbs_used_bytes["{#CON_ID}","{#TABLESPACE}"]' + tags: + - tag: class + value: database + - tag: target + value: oracle + macros: + - macro: '{$ORACLE.ASM.USED.PCT.MAX.HIGH}' + value: '95' + description: 'The maximum percentage of used space in the Automatic Storage Management (ASM) disk group for the High trigger expression.' + - macro: '{$ORACLE.ASM.USED.PCT.MAX.WARN}' + value: '90' + description: 'The maximum percentage of used space in the Automatic Storage Management (ASM) disk group for the Warning trigger expression.' + - macro: '{$ORACLE.CONCURRENCY.MAX.WARN}' + value: '80' + description: 'The maximum percentage of session concurrency for the Warning trigger expression.' + - macro: '{$ORACLE.CONNSTRING}' + value: 'tcp://localhost:1521' + description: 'Oracle URI or a session name.' + - macro: '{$ORACLE.DB.FILE.MAX.WARN}' + value: '80' + description: 'The maximum percentage of used database files for the Warning trigger expression.' + - macro: '{$ORACLE.DBNAME.MATCHES}' + value: '.*' + description: 'Used in database discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.DBNAME.NOT_MATCHES}' + value: PDB\$SEED + description: 'Used in database discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.EXPIRE.PASSWORD.MIN.WARN}' + value: '7' + description: 'The number of days before the password expires for the Warning trigger expression.' + - macro: '{$ORACLE.PASSWORD}' + value: zabbix_password + description: 'Oracle user''s password.' + - macro: '{$ORACLE.PGA.USE.MAX.WARN}' + value: '90' + description: 'Alert threshold for the maximum percentage of the Program Global Area (PGA) usage for the Warning trigger expression.' + - macro: '{$ORACLE.PROCESSES.MAX.WARN}' + value: '80' + description: 'Alert threshold for the maximum percentage of active processes for the Warning trigger expression.' + - macro: '{$ORACLE.REDO.MIN.WARN}' + value: '3' + description: 'Alert threshold for the minimum number of redo logs for the Warning trigger expression.' + - macro: '{$ORACLE.SERVICE}' + value: ORA + description: 'Oracle Service Name.' + - macro: '{$ORACLE.SESSION.LOCK.MAX.TIME}' + value: '600' + description: 'The maximum duration of the session lock in seconds to count the session as a prolongedly locked query.' + - macro: '{$ORACLE.SESSION.LONG.LOCK.MAX.WARN}' + value: '3' + description: 'Alert threshold for the maximum number of the prolongedly locked sessions for the Warning trigger expression.' + - macro: '{$ORACLE.SESSIONS.LOCK.MAX.WARN}' + value: '20' + description: 'Alert threshold for the maximum percentage of locked sessions for the Warning trigger expression.' + - macro: '{$ORACLE.SESSIONS.MAX.WARN}' + value: '80' + description: 'Alert threshold for the maximum percentage of active sessions for the Warning trigger expression.' + - macro: '{$ORACLE.SHARED.FREE.MIN.WARN}' + value: '5' + description: 'Alert threshold for the minimum percentage of free shared pool for the Warning trigger expression.' + - macro: '{$ORACLE.TABLESPACE.CONTAINER.MATCHES}' + value: '.*' + description: 'Used in tablespace discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.TABLESPACE.CONTAINER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in tablespace discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.TABLESPACE.NAME.MATCHES}' + value: '.*' + description: 'Used in tablespace discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.TABLESPACE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in tablespace discovery. It can be overridden on the host or linked template level.' + - macro: '{$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}' + value: '95' + description: 'High severity alert threshold for the maximum percentage of tablespace usage (used bytes/max bytes) for the High trigger expression.' + - macro: '{$ORACLE.TBS.USED.PCT.FROM.MAX.WARN}' + value: '90' + description: 'Warning severity alert threshold for the maximum percentage of tablespace usage from maximum tablespace size (used bytes/max bytes) for the Warning trigger expression.' + - macro: '{$ORACLE.TBS.USED.PCT.MAX.HIGH}' + value: '95' + description: 'High severity alert threshold for the maximum percentage of tablespace usage (used bytes/allocated bytes) for the High trigger expression.' + - macro: '{$ORACLE.TBS.USED.PCT.MAX.WARN}' + value: '90' + description: 'Warning severity alert threshold for the maximum percentage of tablespace usage (used bytes/allocated bytes) for the Warning trigger expression.' + - macro: '{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}' + value: '90' + description: 'High severity alert threshold for the maximum percentage of tablespace utilization (allocated bytes/max bytes) for the High trigger expression.' + - macro: '{$ORACLE.TBS.UTIL.PCT.MAX.WARN}' + value: '80' + description: 'Warning severity alert threshold for the maximum percentage of tablespace utilization (allocated bytes/max bytes) for the High trigger expression.' + - macro: '{$ORACLE.USER}' + value: zabbix + description: 'Oracle username.' + dashboards: + - uuid: 60f2fa6384884e09a7c475e7c04b1515 + name: 'Oracle Performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by Zabbix agent 2' + name: 'Oracle: Cache Hit Ratios' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by Zabbix agent 2' + name: 'Oracle: Physical Read\Write Rate' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by Zabbix agent 2' + name: 'Oracle: Datafiles' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by Zabbix agent 2' + name: 'Oracle: Processes' + - type: STRING + name: reference + value: AAAAG + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by Zabbix agent 2' + name: 'Oracle: SGA Memory Usage' + - type: STRING + name: reference + value: AAAAI + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by Zabbix agent 2' + name: 'Oracle: Sort Operations' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by Zabbix agent 2' + name: 'Oracle: Physical Read\Write Rate, Bytes' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by Zabbix agent 2' + name: 'Oracle: PGA' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Oracle by Zabbix agent 2' + name: 'Oracle: Sessions' + - type: STRING + name: reference + value: AAAAH + valuemaps: + - uuid: 5a90da8dd6124159a7f82a7a996f0a53 + name: 'Oracle Archivelog status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Error + - value: '2' + newvalue: Deferred + - value: '3' + newvalue: Valid + - uuid: f39e64058fef423bb858ba45834a3455 + name: 'Oracle archiver state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Stopped + - value: '2' + newvalue: Started + - value: '3' + newvalue: Failed + - uuid: 015a0c94ba2644c6aa343d3f792a4072 + name: 'Oracle DB open status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Mounted + - value: '2' + newvalue: 'Read Only' + - value: '3' + newvalue: Read-Write + - value: '4' + newvalue: 'Read Only with Apply' + - uuid: afade10cda4e453982355342ba9d8d9f + name: 'Oracle DB role' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: 'Snapshot standby' + - value: '2' + newvalue: 'Logical standby' + - value: '3' + newvalue: 'Physical standby' + - value: '4' + newvalue: Primary + - value: '5' + newvalue: 'Far sync' + - uuid: 1d9f4a44f2f94a799768f147cb712331 + name: 'Oracle force log status' + mappings: + - value: '0' + newvalue: 'No' + - value: '1' + newvalue: 'Yes' + - uuid: 53d97b73db8449959420e03114d345c3 + name: 'Oracle instance role' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Primary + - value: '2' + newvalue: Secondary + - uuid: 4893318c780f47719e12e839c9a846c2 + name: 'Oracle instance status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Started + - value: '2' + newvalue: Mounted + - value: '3' + newvalue: Open + - value: '4' + newvalue: 'Open migrate' + - uuid: 910dd4a87f75434289fa2e345778d18d + name: 'Oracle log mode' + mappings: + - value: '0' + newvalue: NOARCHIVELOG + - value: '1' + newvalue: ARCHIVELOG + - value: '2' + newvalue: MANUAL + - uuid: f14ed94cf12740a19e221ddaa4855c54 + name: 'Oracle tablespace status' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Online + - value: '2' + newvalue: Offline + - value: '3' + newvalue: Read-Only + - uuid: 31c489581d8b4246942c663b88fbaf9f + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 3f265c15b3d042d79b1aa598f7249738 + expression: 'min(/Oracle by Zabbix agent 2/oracle.proc.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"],5m) * 100 / last(/Oracle by Zabbix agent 2/oracle.processes_limit) > {$ORACLE.PROCESSES.MAX.WARN}' + name: 'Oracle: Too many active processes' + event_name: 'Oracle: Too many active processes (over {$ORACLE.PROCESSES.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'Active processes are using more than `{$ORACLE.PROCESSES.MAX.WARN}`% of the available number of processes.' + tags: + - tag: scope + value: capacity + - uuid: d9977c48c6e7435eafde4cabc43bb5fc + expression: 'min(/Oracle by Zabbix agent 2/oracle.session_count,5m) * 100 / last(/Oracle by Zabbix agent 2/oracle.session_limit) > {$ORACLE.SESSIONS.MAX.WARN}' + name: 'Oracle: Too many active sessions' + event_name: 'Oracle: Too many active sessions (over {$ORACLE.SESSIONS.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'Active sessions are using more than `{$ORACLE.SESSIONS.MAX.WARN}`% of the available sessions.' + tags: + - tag: scope + value: capacity + - uuid: 362882973d0b45d1a09a687353734032 + expression: 'min(/Oracle by Zabbix agent 2/oracle.datafiles.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"],5m) * 100 / last(/Oracle by Zabbix agent 2/oracle.db_files_limit) > {$ORACLE.DB.FILE.MAX.WARN}' + name: 'Oracle: Too many database files' + event_name: 'Oracle: Too many database files (over {$ORACLE.DB.FILE.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'The number of datafiles is higher than `{$ORACLE.DB.FILE.MAX.WARN}`% of the available datafile limit.' + tags: + - tag: scope + value: capacity + - uuid: aecb78fc9a7549f2b8e68325530bcd99 + expression: 'min(/Oracle by Zabbix agent 2/oracle.total_pga_used,5m) * 100 / last(/Oracle by Zabbix agent 2/oracle.pga_target) > {$ORACLE.PGA.USE.MAX.WARN}' + name: 'Oracle: Total PGA inuse is too high' + event_name: 'Oracle: Total PGA inuse is too high (over {$ORACLE.PGA.USE.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'The total PGA in use is more than `{$ORACLE.PGA.USE.MAX.WARN}`% of `PGA_AGGREGATE_TARGET`.' + tags: + - tag: scope + value: capacity + graphs: + - uuid: 41d6905fa6654468b7e872973265c5b6 + name: 'Oracle: Cache Hit Ratios' + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.buffer_cache_hit_ratio + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.library_cache_hit_ratio + - uuid: 292f08d249d344db882a3447cc268ca6 + name: 'Oracle: Datafiles' + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: 'oracle.datafiles.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.db_files_limit + - uuid: 4b4d2430750c4885b4764c3b602dc091 + name: 'Oracle: PGA' + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.total_pga_used + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.pga_target + - sortorder: '2' + color: 00611C + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.total_pga_allocated + - uuid: 4e02f667b98042f6ac538692a074a982 + name: 'Oracle: Physical Read\Write Rate' + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.physical_writes_rate + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.physical_reads_rate + - uuid: 2bfd6cda93da4201a73c3d16caea8284 + name: 'Oracle: Physical Read\Write Rate, Bytes' + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.physical_write_bytes_rate + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.physical_read_bytes_rate + - uuid: e51ad4ba7cca491faf7564a8d26bc1da + name: 'Oracle: Processes' + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: 'oracle.proc.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.processes_limit + - uuid: 3323be96dd454a92ade913ab6c2b589c + name: 'Oracle: Sessions' + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.session_count + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.session_active_background + - sortorder: '2' + color: 00611C + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.session_inactive_user + - sortorder: '3' + color: F7941D + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.session_active_user + - sortorder: '4' + color: FC6EA3 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.session_limit + - uuid: ad7c9a7b4c7a4b4885cb1e91e7e79d3d + name: 'Oracle: SGA Memory Usage' + type: STACKED + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.sga_java_pool + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.sga_large_pool + - sortorder: '2' + color: 00611C + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.sga_shared_pool + - sortorder: '3' + color: F7941D + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.sga_log_buffer + - sortorder: '4' + color: FC6EA3 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.sga_fixed + - sortorder: '5' + color: 6C59DC + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.sga_buffer_cache + - uuid: 3bbd3756a40d40f4b80851eb288d7822 + name: 'Oracle: Sort Operations' + graph_items: + - color: 199C0D + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.memory_sorts_ratio + - sortorder: '1' + color: F63100 + item: + host: 'Oracle by Zabbix agent 2' + key: oracle.disk_sorts diff --git a/PFSense_by_SNMP.yaml b/PFSense_by_SNMP.yaml new file mode 100644 index 0000000..60c475f --- /dev/null +++ b/PFSense_by_SNMP.yaml @@ -0,0 +1,2358 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 16f281aeb8904d3db8b66dda94611fcc + template: 'PFSense by SNMP' + name: 'PFSense by SNMP' + description: | + Template for monitoring pfSense by SNMP + Setup: + 1. Enable SNMP daemon at Services in pfSense web interface https://docs.netgate.com/pfsense/en/latest/services/snmp.html + 2. Setup firewall rule to get access from Zabbix proxy or Zabbix server by SNMP https://docs.netgate.com/pfsense/en/latest/firewall/index.html#managing-firewall-rules + 3. Link template to the host + + + MIBs used: + BEGEMOT-PF-MIB + HOST-RESOURCES-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Applications + items: + - uuid: d6c5fbb55a764f9dbe4fd4ad0f76517b + name: 'SNMP walk pf network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12325.1.200.1.8.2]' + key: net.if.pf.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: BEGEMOT-PF-MIB + SNMP walk through pfInterfacesIfTable. The collected data used in network interfaces LLD for dependent item prototypes. + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - pfInterfacesIfDescr + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.2 + - '0' + - pfInterfacesIfRefsRule + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.6 + - '0' + - pfInterfacesIf4BytesInPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.7 + - '0' + - pfInterfacesIf4BytesInBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.8 + - '0' + - pfInterfacesIf4BytesOutPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.9 + - '0' + - pfInterfacesIf4BytesOutBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.10 + - '0' + - pfInterfacesIf4PktsInPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.11 + - '0' + - pfInterfacesIf4PktsInBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.12 + - '0' + - pfInterfacesIf4PktsOutPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.13 + - '0' + - pfInterfacesIf4PktsOutBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.14 + - '0' + - pfInterfacesIf6BytesInPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.15 + - '0' + - pfInterfacesIf6BytesInBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.16 + - '0' + - pfInterfacesIf6BytesOutPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.17 + - '0' + - pfInterfacesIf6BytesOutBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.18 + - '0' + - pfInterfacesIf6PktsInPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.19 + - '0' + - pfInterfacesIf6PktsInBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.20 + - '0' + - pfInterfacesIf6PktsOutPass + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.21 + - '0' + - pfInterfacesIf6PktsOutBlock + - 1.3.6.1.4.1.12325.1.200.1.8.2.1.22 + - '0' + tags: + - tag: component + value: raw + - uuid: 17910f8996e5430e9491ff34a881013e + name: 'SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: a2a331bc385344a1877a45f3887b7d91 + name: 'DHCP server status' + type: DEPENDENT + key: pfsense.dhcpd.status + delay: '0' + description: | + MIB: HOST-RESOURCES-MIB + The status of DHCP server process. + valuemap: + name: 'Services status' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.hrSWRunName == ''dhcpd'')].hrSWRunStatus.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: pfsense.sw.walk + tags: + - tag: component + value: application + triggers: + - uuid: 80fc3672290d45d49c250ccc120f3606 + expression: 'last(/PFSense by SNMP/pfsense.dhcpd.status)=0' + name: 'PFSense: DHCP server is not running' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check DHCP server settings https://docs.netgate.com/pfsense/en/latest/services/dhcp/index.html' + tags: + - tag: scope + value: availability + - uuid: 6a03330a20354f76b8496b9a8eac0c0a + name: 'DNS server status' + type: DEPENDENT + key: pfsense.dns.status + delay: '0' + description: | + MIB: HOST-RESOURCES-MIB + The status of DNS server process. + valuemap: + name: 'Services status' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.hrSWRunName == ''unbound'')].hrSWRunStatus.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: pfsense.sw.walk + tags: + - tag: component + value: application + triggers: + - uuid: 67b862f6aa3a4833af44d513aad517b5 + expression: 'last(/PFSense by SNMP/pfsense.dns.status)=0' + name: 'PFSense: DNS server is not running' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check DNS server settings https://docs.netgate.com/pfsense/en/latest/services/dns/index.html' + tags: + - tag: scope + value: availability + - uuid: 18a8140ca46a47e0b4a3612be5338ada + name: 'State of nginx process' + type: DEPENDENT + key: pfsense.nginx.status + delay: '0' + description: | + MIB: HOST-RESOURCES-MIB + The status of nginx process. + valuemap: + name: 'Services status' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.hrSWRunName == ''nginx'')].hrSWRunStatus.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: pfsense.sw.walk + tags: + - tag: component + value: application + triggers: + - uuid: 9f7a47055ee64edcbb70b047a35f7774 + expression: 'last(/PFSense by SNMP/pfsense.nginx.status)=0' + name: 'PFSense: Web server is not running' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check nginx service status.' + tags: + - tag: scope + value: availability + - uuid: 3739cb57166343e3955d00fa31d55bd3 + name: 'Packets with bad offset' + type: DEPENDENT + key: pfsense.packets.bad.offset + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.2.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: pfsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: 519dbf4fa71b48e8b70c1260caffea14 + name: 'Fragmented packets' + type: DEPENDENT + key: pfsense.packets.fragment + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.3.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: pfsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: d4a0686adfa7421ea472e64d94bee70b + name: 'Packets matched a filter rule' + type: DEPENDENT + key: pfsense.packets.match + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.1.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: pfsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: ca30df62467645b6a04f791bf22d7b91 + name: 'Packets dropped due to memory limitation' + type: DEPENDENT + key: pfsense.packets.mem.drop + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.6.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: pfsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: 82360caa98ca4f209499db3c55b0c330 + name: 'Normalized packets' + type: DEPENDENT + key: pfsense.packets.normalize + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.5.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: pfsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: cf4fbeeb1a6a4d9dbb69adf90b54de3a + name: 'Short packets' + type: DEPENDENT + key: pfsense.packets.short + delay: '0' + value_type: FLOAT + units: pps + description: | + MIB: BEGEMOT-PF-MIB + True if the packet was logged with the specified packet filter reason code. The known codes are: match, bad-offset, fragment, short, normalize, and memory. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.12325.1.200.1.2.4.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: pfsense.pf_counters.walk + tags: + - tag: component + value: network + - uuid: 600896282920468baf2e47ab75ee9b31 + name: 'Packet filter running status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.1.1.0]' + key: pfsense.pf.status + description: | + MIB: BEGEMOT-PF-MIB + True if packet filter is currently enabled. + valuemap: + name: 'SNMPv2-TC::TruthValue' + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 4a7ff4c437054ce88c6c069ffcb6434f + expression: 'last(/PFSense by SNMP/pfsense.pf.status)<>1' + name: 'PFSense: Packet filter is not running' + opdata: 'Current running state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Please check PF status.' + tags: + - tag: scope + value: availability + - uuid: 32f632670d8742f28c18251fc59184a0 + name: 'SNMP walk pf counters' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.12325.1.200.1.2]' + key: pfsense.pf_counters.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: BEGEMOT-PF-MIB + SNMP walk through pfCounter. The collected data used in dependent pf counter items. + tags: + - tag: component + value: raw + - uuid: 6d0cf4a1a284453991e12daf921fed9a + name: 'Firewall rules count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.11.1.0]' + key: pfsense.rules.count + description: | + MIB: BEGEMOT-PF-MIB + The number of labeled filter rules on this system. + tags: + - tag: component + value: firewall + - uuid: c13b50c508e04851baf09c1c865241fc + name: 'Source tracking table current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.4.1.0]' + key: pfsense.source.tracking.table.count + description: | + MIB: BEGEMOT-PF-MIB + Number of entries in the source tracking table. + tags: + - tag: component + value: network + - uuid: 58e12f73fd4243a89d62bbdc7e307cf9 + name: 'Source tracking table limit' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.5.2.0]' + key: pfsense.source.tracking.table.limit + description: | + MIB: BEGEMOT-PF-MIB + Maximum number of 'sticky-address' or 'source-track' rules in the ruleset. + tags: + - tag: component + value: network + - uuid: 8fb3a344b39241bbb3bf78092fa17ec8 + name: 'Source tracking table utilization in %' + type: CALCULATED + key: pfsense.source.tracking.table.pused + value_type: FLOAT + units: '%' + params: 'last(//pfsense.source.tracking.table.count) * 100 / last(//pfsense.source.tracking.table.limit)' + description: 'Utilization of source tracking table in %.' + tags: + - tag: component + value: network + triggers: + - uuid: 7983ee28646d4327ae0814c88c7b213f + expression: 'min(/PFSense by SNMP/pfsense.source.tracking.table.pused,#3)>{$SOURCE.TRACKING.TABLE.UTIL.MAX}' + name: 'PFSense: Source tracking table usage is high' + event_name: 'PFSense: Source tracking table usage more than {$SOURCE.TRACKING.TABLE.UTIL.MAX}.' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the number of sticky connections https://docs.netgate.com/pfsense/en/latest/monitoring/status/firewall-states-sources.html' + tags: + - tag: scope + value: capacity + - uuid: f0eab94d244b46c29363b630850ed709 + name: 'States table current' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.3.1.0]' + key: pfsense.state.table.count + description: | + MIB: BEGEMOT-PF-MIB + Number of entries in the state table. + tags: + - tag: component + value: network + - uuid: 8500a1db240b48d7bca514371a89c641 + name: 'States table limit' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.12325.1.200.1.5.1.0]' + key: pfsense.state.table.limit + description: | + MIB: BEGEMOT-PF-MIB + Maximum number of 'keep state' rules in the ruleset. + tags: + - tag: component + value: network + - uuid: 5e96cadaafca4e51ad62dba4fec5220a + name: 'States table utilization in %' + type: CALCULATED + key: pfsense.state.table.pused + value_type: FLOAT + units: '%' + params: 'last(//pfsense.state.table.count) * 100 / last(//pfsense.state.table.limit)' + description: 'Utilization of state table in %.' + tags: + - tag: component + value: network + triggers: + - uuid: ce0e7dec597e4148abd9b699c787decd + expression: 'min(/PFSense by SNMP/pfsense.state.table.pused,#3)>{$STATE.TABLE.UTIL.MAX}' + name: 'PFSense: State table usage is high' + event_name: 'PFSense: State table usage more than {$STATE.TABLE.UTIL.MAX}.' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Please check the number of connections https://docs.netgate.com/pfsense/en/latest/config/advanced-firewall-nat.html#config-advanced-firewall-maxstates' + tags: + - tag: scope + value: capacity + - uuid: 5f426d3f9ac94ffa978bae0e8f6a3e71 + name: 'SNMP walk software' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.4.2.1.2,1.3.6.1.2.1.25.4.2.1.7]' + key: pfsense.sw.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + SNMP walk through hrSWRunTable. The collected data used in dependent service status items. + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - hrSWRunName + - 1.3.6.1.2.1.25.4.2.1.2 + - '0' + - hrSWRunStatus + - 1.3.6.1.2.1.25.4.2.1.7 + - '0' + tags: + - tag: component + value: raw + - uuid: 585c88310a704e119aa5fc7f7f9c3804 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d06bdb79a48c438798286a89680eb3e1 + expression: 'max(/PFSense by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'PFSense: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 441ad463ea5544f89cb56b0b8f7763f9 + name: 'Network interfaces discovery' + type: DEPENDENT + key: pfsense.net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '@Network interfaces for discovery' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: b20cd75f9b8543c894862003121893c1 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 traffic blocked' + type: DEPENDENT + key: 'net.if.in.block.v4.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv4 bits per second blocked coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesInBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 850a471b36de4bcebf9d8831f52953de + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 packets blocked' + type: DEPENDENT + key: 'net.if.in.block.v4.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv4 packets blocked coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsInBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 96de779174c8486d97269a43f0d4a8f4 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 traffic blocked' + type: DEPENDENT + key: 'net.if.in.block.v6.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv6 bits per second blocked coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesInBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2582b09afee14e658c9c9c8b845818b9 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 packets blocked' + type: DEPENDENT + key: 'net.if.in.block.v6.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv6 packets blocked coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsInBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: eea8bd3342824bed8b4e3768c069e8b3 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4915f853f848404988ce7ae3a22e7991 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f5cbc2b7d91f4fa5aab8eb96d8a0550f + expression: 'min(/PFSense by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/PFSense by SNMP/net.if.in.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: High input error rate' + event_name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: High input error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/PFSense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: availability + - uuid: fcda9fb8fff14106940543836177e3e3 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 traffic passed' + type: DEPENDENT + key: 'net.if.in.pass.v4.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv4 bits per second passed coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesInPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a895016cc42341729beb3ec41e30e1dc + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv4 packets passed' + type: DEPENDENT + key: 'net.if.in.pass.v4.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv4 packets passed coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsInPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1ed0a16478074997a3254fd1025a438d + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 traffic passed' + type: DEPENDENT + key: 'net.if.in.pass.v6.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv6 bits per second passed coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesInPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5eb85cf165424dde93e028468c310593 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound IPv6 packets passed' + type: DEPENDENT + key: 'net.if.in.pass.v6.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv6 packets passed coming in on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsInPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 4fefa40765144566a5c507ef19f884d6 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Bits received' + type: DEPENDENT + key: 'net.if.in[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b9c94af7fae9462a9659261366c03e4f + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 traffic blocked' + type: DEPENDENT + key: 'net.if.out.block.v4.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv4 bits per second blocked going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesOutBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 03c616505a6746ffa8027efd95aad00d + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 packets blocked' + type: DEPENDENT + key: 'net.if.out.block.v4.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv4 packets blocked going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsOutBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c81392868fe04ba5bd82dcffa3065e73 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 traffic blocked' + type: DEPENDENT + key: 'net.if.out.block.v6.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv6 bits per second blocked going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesOutBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 41a658c922614223b5473eb4e01a3336 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 packets blocked' + type: DEPENDENT + key: 'net.if.out.block.v6.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv6 packets blocked going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsOutBlock.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: feb327e6f99e41c3a0194d1578a46e50 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 72d053e5bf3b4330a99382b8a2efcdf7 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 5fb5f37490d04dbc8e0553c6aa881547 + expression: 'min(/PFSense by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/PFSense by SNMP/net.if.out.errors[{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: High output error rate' + event_name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: High output error rate ( > {$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + dependencies: + - name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/PFSense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: availability + - uuid: 29e2a5d7299b4419bbb29a98c068d46f + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 traffic passed' + type: DEPENDENT + key: 'net.if.out.pass.v4.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv4 bits per second passed going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesOutPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e073f3fd38ed4aeaba85dfa5b74cc066 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv4 packets passed' + type: DEPENDENT + key: 'net.if.out.pass.v4.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv4 packets passed going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsOutPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3b472db1999640c3a0ef0c75ddae7940 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 traffic passed' + type: DEPENDENT + key: 'net.if.out.pass.v6.bps[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: BEGEMOT-PF-MIB + IPv6 bits per second passed going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesOutPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a5ba6a1a6dbf4788b77eee825f85eed1 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound IPv6 packets passed' + type: DEPENDENT + key: 'net.if.out.pass.v6.pps[{#SNMPINDEX}]' + delay: '0' + units: pps + description: | + MIB: BEGEMOT-PF-MIB + The number of IPv6 packets passed going out on this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsOutPass.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: afd513d29ecc4360ab0baf0a7ae3bb53 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Bits sent' + type: DEPENDENT + key: 'net.if.out[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ecde40c612da452599e2e7b2f1979e83 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Rules references count' + type: DEPENDENT + key: 'net.if.rules.refs[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: BEGEMOT-PF-MIB + The number of rules referencing this interface. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIfRefsRule.first()' + master_item: + key: net.if.pf.walk + tags: + - tag: component + value: firewall + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: eb2f06d673094e10bab8e1d774b26997 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Speed' + type: DEPENDENT + key: 'net.if.speed[{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2af41422c46141fba0432818b076bca3 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Operational status' + type: DEPENDENT + key: 'net.if.status[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d4392162d62541aeb148718ddd7f5d57 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/PFSense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + tags: + - tag: scope + value: availability + - uuid: 86f6e925d8a64e31a44b5338c92b31ec + name: 'Interface [{#IFNAME}({#IFALIAS})]: Interface type' + type: DEPENDENT + key: 'net.if.type[{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: eb3090605ba14407a91736ac9768d65a + expression: | + change(/PFSense by SNMP/net.if.speed[{#SNMPINDEX}])<0 and last(/PFSense by SNMP/net.if.speed[{#SNMPINDEX}])>0 + and ( + last(/PFSense by SNMP/net.if.type[{#SNMPINDEX}])=6 or + last(/PFSense by SNMP/net.if.type[{#SNMPINDEX}])=7 or + last(/PFSense by SNMP/net.if.type[{#SNMPINDEX}])=11 or + last(/PFSense by SNMP/net.if.type[{#SNMPINDEX}])=62 or + last(/PFSense by SNMP/net.if.type[{#SNMPINDEX}])=69 or + last(/PFSense by SNMP/net.if.type[{#SNMPINDEX}])=117 + ) + and + (last(/PFSense by SNMP/net.if.status[{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/PFSense by SNMP/net.if.speed[{#SNMPINDEX}])>0 and last(/PFSense by SNMP/net.if.speed[{#SNMPINDEX}],#2)>0) or + (last(/PFSense by SNMP/net.if.status[{#SNMPINDEX}])=2) + name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + dependencies: + - name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/PFSense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: capacity + - uuid: 90c99a9c4ce44b3ca929c4b3200286fb + expression: | + (avg(/PFSense by SNMP/net.if.in[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/PFSense by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/PFSense by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/PFSense by SNMP/net.if.in[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/PFSense by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: High inbound bandwidth usage' + event_name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: High inbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'In: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/PFSense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + - uuid: 6be52ce31bab4250b421de1bfe84263c + expression: | + (avg(/PFSense by SNMP/net.if.out[{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/PFSense by SNMP/net.if.speed[{#SNMPINDEX}])) and + last(/PFSense by SNMP/net.if.speed[{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/PFSense by SNMP/net.if.out[{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/PFSense by SNMP/net.if.speed[{#SNMPINDEX}])' + name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: High outbound bandwidth usage' + event_name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: High outbound bandwidth usage ( > {$IF.UTIL.MAX:"{#IFNAME}"}% )' + opdata: 'Out: {ITEM.LASTVALUE1}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + dependencies: + - name: 'PFSense: Interface [{#IFNAME}({#IFALIAS})]: Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/PFSense by SNMP/net.if.status[{#SNMPINDEX}])=2)' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 4679de2da218418e9564f0cc5a13e31a + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound packet filter traffic' + graph_items: + - color: 1A7C11 + item: + host: 'PFSense by SNMP' + key: 'net.if.in.pass.v4.bps[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'PFSense by SNMP' + key: 'net.if.in.block.v4.bps[{#SNMPINDEX}]' + - sortorder: '2' + color: 2774A4 + item: + host: 'PFSense by SNMP' + key: 'net.if.in.pass.v6.bps[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + item: + host: 'PFSense by SNMP' + key: 'net.if.in.block.v6.bps[{#SNMPINDEX}]' + - sortorder: '4' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.in.pass.v4.pps[{#SNMPINDEX}]' + - sortorder: '5' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.in.block.v4.pps[{#SNMPINDEX}]' + - sortorder: '6' + color: AC8C14 + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.in.pass.v6.pps[{#SNMPINDEX}]' + - sortorder: '7' + color: 611F27 + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.in.block.v6.pps[{#SNMPINDEX}]' + - uuid: 3acc01b7ad11441ca2ea4dab13274efa + name: 'Interface [{#IFNAME}({#IFALIAS})]: Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'PFSense by SNMP' + key: 'net.if.in[{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: 2774A4 + item: + host: 'PFSense by SNMP' + key: 'net.if.out[{#SNMPINDEX}]' + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.out.errors[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.in.errors[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.out.discards[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.in.discards[{#SNMPINDEX}]' + - uuid: 58b7aa7618274c9e9285d4c0b63c2ca8 + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound packet filter traffic' + graph_items: + - color: 1A7C11 + item: + host: 'PFSense by SNMP' + key: 'net.if.out.pass.v4.bps[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'PFSense by SNMP' + key: 'net.if.out.block.v4.bps[{#SNMPINDEX}]' + - sortorder: '2' + color: 2774A4 + item: + host: 'PFSense by SNMP' + key: 'net.if.out.pass.v6.bps[{#SNMPINDEX}]' + - sortorder: '3' + color: A54F10 + item: + host: 'PFSense by SNMP' + key: 'net.if.out.block.v6.bps[{#SNMPINDEX}]' + - sortorder: '4' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.out.pass.v4.pps[{#SNMPINDEX}]' + - sortorder: '5' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.out.block.v4.pps[{#SNMPINDEX}]' + - sortorder: '6' + color: AC8C14 + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.out.pass.v6.pps[{#SNMPINDEX}]' + - sortorder: '7' + color: 611F27 + yaxisside: RIGHT + item: + host: 'PFSense by SNMP' + key: 'net.if.out.block.v6.pps[{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: pfsense + macros: + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Threshold of error packets rate for warning trigger. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Threshold of interface bandwidth utilization for warning trigger in %. Can be used with interface name as context.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for operational state of the interface for link down trigger. Can be used with interface name as context.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status.' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^pflog[0-9.]*$|^pfsync[0-9.]*$)' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6).' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in filters of network interfaces discovery rule.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP availability trigger.' + - macro: '{$SOURCE.TRACKING.TABLE.UTIL.MAX}' + value: '90' + description: 'Threshold of source tracking table utilization trigger in %.' + - macro: '{$STATE.TABLE.UTIL.MAX}' + value: '90' + description: 'Threshold of state table utilization trigger in %.' + dashboards: + - uuid: e12c87ecce2a4f568e4c68356d175793 + name: 'PFSense: Overview' + pages: + - name: 'Packet filter' + widgets: + - type: graph + width: '72' + height: '10' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PFSense by SNMP' + name: 'PFSense: Packet filter reason codes' + - type: STRING + name: reference + value: AAAAA + - name: 'Network traffic' + widgets: + - type: graphprototype + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PFSense by SNMP' + name: 'Interface [{#IFNAME}({#IFALIAS})]: Inbound packet filter traffic' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PFSense by SNMP' + name: 'Interface [{#IFNAME}({#IFALIAS})]: Outbound packet filter traffic' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '20' + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PFSense by SNMP' + name: 'Interface [{#IFNAME}({#IFALIAS})]: Network traffic' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 2216d8afb349448394590770ff99e56a + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '3' + newvalue: testing + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 3165b9b6c79e446f9d1029571518004e + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: fc5652614ee94cd8b437b3058886e857 + name: 'Services status' + mappings: + - value: '0' + newvalue: 'not running' + - value: '2' + newvalue: running + - uuid: f6bb441b7a65446c96c546bd3f3140ee + name: 'SNMPv2-TC::TruthValue' + mappings: + - value: '1' + newvalue: 'true' + - value: '2' + newvalue: 'false' + - uuid: d553e33d8b104a5e89d88500e85fa5fc + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + graphs: + - uuid: cd45a63b52d7470db6b4574027433c8e + name: 'PFSense: Packet filter reason codes' + type: STACKED + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PFSense by SNMP' + key: pfsense.packets.match + - sortorder: '1' + color: F63100 + item: + host: 'PFSense by SNMP' + key: pfsense.packets.bad.offset + - sortorder: '2' + color: 00611C + item: + host: 'PFSense by SNMP' + key: pfsense.packets.fragment + - sortorder: '3' + color: F7941D + item: + host: 'PFSense by SNMP' + key: pfsense.packets.short + - sortorder: '4' + color: FC6EA3 + item: + host: 'PFSense by SNMP' + key: pfsense.packets.normalize + - sortorder: '5' + color: 6C59DC + item: + host: 'PFSense by SNMP' + key: pfsense.packets.mem.drop diff --git a/PHP-FPM_by_HTTP.yaml b/PHP-FPM_by_HTTP.yaml new file mode 100644 index 0000000..81c7eb2 --- /dev/null +++ b/PHP-FPM_by_HTTP.yaml @@ -0,0 +1,510 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 49c77ce207f8478da53e761526d6eca5 + template: 'PHP-FPM by HTTP' + name: 'PHP-FPM by HTTP' + description: | + Get PHP-FPM metrics using the Zabbix HTTP agent. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: a03bc5c2dc824b8f970ca1d2b7b4637f + name: 'Accepted connections per second' + type: DEPENDENT + key: php-fpm.conn_accepted.rate + delay: '0' + value_type: FLOAT + description: 'The number of accepted requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''accepted conn'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: connections + - uuid: a9ae24915703483ea95a346c625ed70e + name: 'Get ping page' + type: HTTP_AGENT + key: php-fpm.get_ping + history: '0' + value_type: TEXT + trends: '0' + url: '{$PHP_FPM.SCHEME}://{$PHP_FPM.HOST}:{$PHP_FPM.PORT}/{$PHP_FPM.PING.PAGE}' + retrieve_mode: BOTH + tags: + - tag: component + value: health + - uuid: b91063d42d4b454089b58e29ee3bdb38 + name: 'Get status page' + type: HTTP_AGENT + key: php-fpm.get_status + history: '0' + value_type: TEXT + trends: '0' + url: '{$PHP_FPM.SCHEME}://{$PHP_FPM.HOST}:{$PHP_FPM.PORT}/{$PHP_FPM.STATUS.PAGE}?json' + tags: + - tag: component + value: raw + - uuid: cf2fe31db5084bc5b363ef7d0d691c25 + name: 'Listen queue' + type: DEPENDENT + key: php-fpm.listen_queue + delay: '0' + description: 'The current number of connections that have been initiated but not yet accepted.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''listen queue'']' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: listen-queue + - uuid: 56876a76bd3a4c6c90b033c19a59f6d1 + name: 'Listen queue, len' + type: DEPENDENT + key: php-fpm.listen_queue_len + delay: '0' + description: 'The size of the socket queue of pending connections.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''listen queue len'']' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: listen-queue + - uuid: a8829ff906e847c2b97a32b1ded60523 + name: 'Listen queue, max' + type: DEPENDENT + key: php-fpm.listen_queue_max + delay: '0' + description: 'The maximum number of requests in the queue of pending connections since this FPM pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max listen queue'']' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: listen-queue + - uuid: 314c3f19311f47acb93b046ab2625c75 + name: 'Queue usage' + type: CALCULATED + key: php-fpm.listen_queue_usage + value_type: FLOAT + units: '%' + params: 'last(//php-fpm.listen_queue)/(last(//php-fpm.listen_queue_len)+(last(//php-fpm.listen_queue_len)=0))*100' + description: 'The utilization of the queue.' + tags: + - tag: component + value: listen-queue + triggers: + - uuid: 1ad5018fb19d4a9cb9e627f964bfd627 + expression: 'min(/PHP-FPM by HTTP/php-fpm.listen_queue_usage,15m) > {$PHP_FPM.QUEUE.WARN.MAX}' + name: 'PHP-FPM: Queue utilization is high' + event_name: 'PHP-FPM: Queue utilization is high (over {$PHP_FPM.QUEUE.WARN.MAX}% for 15m)' + priority: WARNING + description: | + The queue for this pool has reached `{$PHP_FPM.QUEUE.WARN.MAX}%` of its maximum capacity. + Items in the queue represent the current number of connections that have been initiated on this pool but not yet accepted. + tags: + - tag: scope + value: performance + - uuid: dcb11355c5ae4c6ab5f1326aa1c7bbd6 + name: 'Max children reached' + type: DEPENDENT + key: php-fpm.max_children + delay: '0' + description: 'The number of times that `pm.max_children` has been reached since the PHP-FPM pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max children reached'']' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: application + - uuid: 226939bd485a4381a5c0a6d4511acbc3 + name: 'Pool name' + type: DEPENDENT + key: php-fpm.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the current pool.' + preprocessing: + - type: JSONPATH + parameters: + - $.pool + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: application + - uuid: 6a090c078ace46bd958b42225c63f5ca + name: Ping + type: DEPENDENT + key: php-fpm.ping + delay: '0' + valuemap: + name: 'Service state' + preprocessing: + - type: REGEX + parameters: + - '{$PHP_FPM.PING.REPLY}($|\r?\n)' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: php-fpm.get_ping + tags: + - tag: component + value: health + triggers: + - uuid: 5dcc607026d24e63b2f099540a5d8e9b + expression: 'last(/PHP-FPM by HTTP/php-fpm.ping)=0 or nodata(/PHP-FPM by HTTP/php-fpm.ping,3m)=1' + name: 'PHP-FPM: Service is down' + priority: HIGH + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 923243cbb4b647389a38b4788aad3141 + name: 'Processes, active' + type: DEPENDENT + key: php-fpm.processes_active + delay: '0' + description: 'The total number of active processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''active processes'']' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: memory + - uuid: 79402b0cac4d4a409b39db4bf71557d2 + name: 'Processes, idle' + type: DEPENDENT + key: php-fpm.processes_idle + delay: '0' + description: 'The total number of idle processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''idle processes'']' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: system + - uuid: 9632f44f9b2648f299e9f61a39daf92f + name: 'Processes, max active' + type: DEPENDENT + key: php-fpm.processes_max_active + delay: '0' + description: 'The highest value of "active processes" since the PHP-FPM server was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max active processes'']' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: application + - uuid: e69faadd7a9d457e8f56d283871b946a + name: 'Processes, total' + type: DEPENDENT + key: php-fpm.processes_total + delay: '0' + description: 'The total number of server processes currently running.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''total processes'']' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: system + - uuid: 084848b2d6bd4b8a88424b1ec9055b0f + name: 'Process manager' + type: DEPENDENT + key: php-fpm.process_manager + delay: '0' + value_type: CHAR + trends: '0' + description: 'The method used by the process manager to control the number of child processes for this pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''process manager'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: application + triggers: + - uuid: 8cfa50bcea744075954d0a9c8a132330 + expression: 'last(/PHP-FPM by HTTP/php-fpm.process_manager,#1)<>last(/PHP-FPM by HTTP/php-fpm.process_manager,#2)' + name: 'PHP-FPM: Manager changed' + event_name: 'PHP-FPM: Manager changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'The PHP-FPM manager has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0dd9e388e2584e0090ed65bab39183f9 + name: 'Slow requests' + type: DEPENDENT + key: php-fpm.slow_requests + delay: '0' + description: 'The number of requests that has exceeded your `request_slowlog_timeout` value.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''slow requests'']' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: application + triggers: + - uuid: 63bd00ee25af4b42a37dad1d742c66c0 + expression: 'min(/PHP-FPM by HTTP/php-fpm.slow_requests,#3)>0' + name: 'PHP-FPM: Detected slow requests' + priority: WARNING + description: | + The PHP-FPM has detected a slow request. + The slow request means that it took more time to execute than expected (defined in the configuration of your pool). + tags: + - tag: scope + value: performance + - uuid: 9a625629fc0a4222acfefa0409ec1c72 + name: 'Start time' + type: DEPENDENT + key: php-fpm.start_time + delay: '0' + units: unixtime + description: 'The time when this pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''start time'']' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: application + - uuid: 093024c740b946a0bd6637ba9e3e0dad + name: Uptime + type: DEPENDENT + key: php-fpm.uptime + delay: '0' + units: s + description: 'It indicates how long has this pool been running.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''start since'']' + master_item: + key: php-fpm.get_status + tags: + - tag: component + value: application + triggers: + - uuid: b44815446b3b464f883f4d0e799b020e + expression: 'nodata(/PHP-FPM by HTTP/php-fpm.uptime,30m)=1' + name: 'PHP-FPM: Failed to fetch info data' + event_name: 'PHP-FPM: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for items for the last 30 minutes.' + manual_close: 'YES' + dependencies: + - name: 'PHP-FPM: Service is down' + expression: 'last(/PHP-FPM by HTTP/php-fpm.ping)=0 or nodata(/PHP-FPM by HTTP/php-fpm.ping,3m)=1' + tags: + - tag: scope + value: notice + - uuid: 9ed4047bdcd74e649814c5d004ba78c7 + expression: 'last(/PHP-FPM by HTTP/php-fpm.uptime)<10m' + name: 'PHP-FPM: Pool has been restarted' + event_name: 'PHP-FPM: Pool has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d49adb58e8bb4453911270e5dce1e03e + name: Version + type: DEPENDENT + key: php-fpm.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current version of the PHP. You can get it from the HTTP-Header "X-Powered-By"; it may not work if you have changed the default HTTP-headers.' + preprocessing: + - type: REGEX + parameters: + - '^[.\s\S]*X-Powered-By: PHP/([.\d]{1,})' + - \1 + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: php-fpm.get_ping + tags: + - tag: component + value: application + triggers: + - uuid: d6c891de92c34bdba80a2ba88f975271 + expression: 'last(/PHP-FPM by HTTP/php-fpm.version,#1)<>last(/PHP-FPM by HTTP/php-fpm.version,#2) and length(last(/PHP-FPM by HTTP/php-fpm.version))>0' + name: 'PHP-FPM: Version has changed' + event_name: 'PHP-FPM: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The PHP-FPM version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + tags: + - tag: class + value: application + - tag: target + value: php-fpm + macros: + - macro: '{$PHP_FPM.HOST}' + value: localhost + description: 'The hostname or IP address of the PHP-FPM status for a host or container.' + - macro: '{$PHP_FPM.PING.PAGE}' + value: ping + description: 'The path of the PHP-FPM ping page.' + - macro: '{$PHP_FPM.PING.REPLY}' + value: pong + description: 'The expected reply to the ping.' + - macro: '{$PHP_FPM.PORT}' + value: '80' + description: 'The port of the PHP-FPM status host or container.' + - macro: '{$PHP_FPM.QUEUE.WARN.MAX}' + value: '80' + description: 'The maximum percent of the PHP-FPM queue usage for a trigger expression.' + - macro: '{$PHP_FPM.SCHEME}' + value: http + description: 'Request scheme which may be http or https' + - macro: '{$PHP_FPM.STATUS.PAGE}' + value: status + description: 'The path of the PHP-FPM status page.' + dashboards: + - uuid: 3faff0de92724362adda98a08229ef4f + name: 'PHP-FPM: Overview' + pages: + - name: Main + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PHP-FPM by HTTP' + name: 'PHP-FPM: Process' + - type: STRING + name: reference + value: AAAAA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PHP-FPM by HTTP' + name: 'PHP-FPM: Queue' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 8e8fa515c14c4ac181db791c2c68c518 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 6c69974487f34fea9850ac63fd45adbc + name: 'PHP-FPM: Process' + graph_items: + - color: 199C0D + item: + host: 'PHP-FPM by HTTP' + key: php-fpm.processes_max_active + - sortorder: '1' + color: F63100 + item: + host: 'PHP-FPM by HTTP' + key: php-fpm.processes_idle + - sortorder: '2' + color: 00611C + item: + host: 'PHP-FPM by HTTP' + key: php-fpm.processes_total + - sortorder: '3' + color: F7941D + item: + host: 'PHP-FPM by HTTP' + key: php-fpm.processes_active + - uuid: 250e7f6e07064675872b81a8881f4f31 + name: 'PHP-FPM: Queue' + graph_items: + - color: 199C0D + item: + host: 'PHP-FPM by HTTP' + key: php-fpm.listen_queue_len + - sortorder: '1' + color: F63100 + item: + host: 'PHP-FPM by HTTP' + key: php-fpm.listen_queue + - sortorder: '2' + color: 00611C + item: + host: 'PHP-FPM by HTTP' + key: php-fpm.listen_queue_max diff --git a/PHP-FPM_by_Zabbix_agent.yaml b/PHP-FPM_by_Zabbix_agent.yaml new file mode 100644 index 0000000..deb060d --- /dev/null +++ b/PHP-FPM_by_Zabbix_agent.yaml @@ -0,0 +1,664 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 1cbda0970410435684135884d0cb7090 + template: 'PHP-FPM by Zabbix agent' + name: 'PHP-FPM by Zabbix agent' + description: | + Get PHP-FPM metrics using Zabbix agent running on Linux. + + Note that depending on your OS distribution, the PHP-FPM process name may vary. Please, check the actual name in the line "Name" from /proc//status file (https://www.zabbix.com/documentation/7.0/manual/appendix/items/proc_mem_num_notes) and change {$PHP_FPM.PROCESS.NAME.PARAMETER} macro if needed. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 9ae9e2a8003a48a7a482ef6d6ae9886c + name: 'Accepted connections per second' + type: DEPENDENT + key: php-fpm.conn_accepted.rate + delay: '0' + value_type: FLOAT + description: 'The number of accepted requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''accepted conn'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: connections + - uuid: edc6b68194fe499facfb6b22425ff0d4 + name: 'Listen queue' + type: DEPENDENT + key: php-fpm.listen_queue + delay: '0' + description: 'The current number of connections that have been initiated but not yet accepted.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''listen queue'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: listen-queue + - uuid: aff9f072b06a4b56afb0e0f44b2c83a4 + name: 'Listen queue, len' + type: DEPENDENT + key: php-fpm.listen_queue_len + delay: '0' + description: 'The size of the socket queue of pending connections.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''listen queue len'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: listen-queue + - uuid: de0a543bee5a46c88085b2aba2f4976f + name: 'Listen queue, max' + type: DEPENDENT + key: php-fpm.listen_queue_max + delay: '0' + description: 'The maximum number of requests in the queue of pending connections since this FPM pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max listen queue'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: listen-queue + - uuid: dfabcd55c13449c29a48b70fdce77674 + name: 'Queue usage' + type: CALCULATED + key: php-fpm.listen_queue_usage + value_type: FLOAT + units: '%' + params: 'last(//php-fpm.listen_queue)/(last(//php-fpm.listen_queue_len)+(last(//php-fpm.listen_queue_len)=0))*100' + description: 'The utilization of the queue.' + tags: + - tag: component + value: application + triggers: + - uuid: a11264f0e1174b7fb81b457dad1a745f + expression: 'min(/PHP-FPM by Zabbix agent/php-fpm.listen_queue_usage,15m) > {$PHP_FPM.QUEUE.WARN.MAX}' + name: 'PHP-FPM: Queue utilization is high' + event_name: 'PHP-FPM: Queue utilization is high (over {$PHP_FPM.QUEUE.WARN.MAX}% for 15m)' + priority: WARNING + description: | + The queue for this pool has reached `{$PHP_FPM.QUEUE.WARN.MAX}%` of its maximum capacity. + Items in the queue represent the current number of connections that have been initiated on this pool but not yet accepted. + tags: + - tag: scope + value: capacity + - uuid: e9d49669cf58492a9d5ef7ff997e1a40 + name: 'Max children reached' + type: DEPENDENT + key: php-fpm.max_children + delay: '0' + description: 'The number of times that `pm.max_children` has been reached since the PHP-FPM pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max children reached'']' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: 830e04be30f04e50ac0fa4783ecdc677 + name: 'Pool name' + type: DEPENDENT + key: php-fpm.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the current pool.' + preprocessing: + - type: JSONPATH + parameters: + - $.pool + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: 250f346008984a95829dba08d0f95838 + name: Ping + type: DEPENDENT + key: php-fpm.ping + delay: '0' + valuemap: + name: 'Service state' + preprocessing: + - type: REGEX + parameters: + - '{$PHP_FPM.PING.REPLY}($|\r?\n)' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.PING.PAGE}","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: health + - uuid: 8ebee5fc8c854a96b34ed743e3dd0154 + name: 'Processes, active' + type: DEPENDENT + key: php-fpm.processes_active + delay: '0' + description: 'The total number of active processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''active processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: system + - uuid: 11cfd028325242a58d61d9e83aee640b + name: 'Processes, idle' + type: DEPENDENT + key: php-fpm.processes_idle + delay: '0' + description: 'The total number of idle processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''idle processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: system + - uuid: 3858218f90684bb19cbe27fc9aedf404 + name: 'Processes, max active' + type: DEPENDENT + key: php-fpm.processes_max_active + delay: '0' + description: 'The highest value of "active processes" since the PHP-FPM server was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max active processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: a79af6cf38ec45518055c64aa7f1f5a2 + name: 'Processes, total' + type: DEPENDENT + key: php-fpm.processes_total + delay: '0' + description: 'The total number of server processes currently running.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''total processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: system + - uuid: 5ab12fc9f4ef49e5bbf7b2c6a840879e + name: 'Process manager' + type: DEPENDENT + key: php-fpm.process_manager + delay: '0' + value_type: CHAR + trends: '0' + description: 'The method used by the process manager to control the number of child processes for this pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''process manager'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 231e0fbfb6e94f34b790576766244602 + expression: 'last(/PHP-FPM by Zabbix agent/php-fpm.process_manager,#1)<>last(/PHP-FPM by Zabbix agent/php-fpm.process_manager,#2)' + name: 'PHP-FPM: Manager changed' + event_name: 'PHP-FPM: Manager changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'The PHP-FPM manager has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4d17b6d89ac94d0880eac6962ebf7347 + name: 'Slow requests' + type: DEPENDENT + key: php-fpm.slow_requests + delay: '0' + description: 'The number of requests that has exceeded your `request_slowlog_timeout` value.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''slow requests'']' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: f30147d8e92f48aa8fedc2d28b8d7c70 + expression: 'min(/PHP-FPM by Zabbix agent/php-fpm.slow_requests,#3)>0' + name: 'PHP-FPM: Detected slow requests' + priority: WARNING + description: | + The PHP-FPM has detected a slow request. + The slow request means that it took more time to execute than expected (defined in the configuration of your pool). + tags: + - tag: scope + value: performance + - uuid: 4e4d6eda8fbb4dd2ba7f48fba5723473 + name: 'Start time' + type: DEPENDENT + key: php-fpm.start_time + delay: '0' + units: unixtime + description: 'The time when this pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''start time'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: 2a19b306712a47999e70d3ec30e39b05 + name: Uptime + type: DEPENDENT + key: php-fpm.uptime + delay: '0' + units: s + description: 'It indicates how long has this pool been running.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''start since'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: c6966a6c3ff0452ab4fd112c9299e624 + expression: 'last(/PHP-FPM by Zabbix agent/php-fpm.uptime)<10m' + name: 'PHP-FPM: Pool has been restarted' + event_name: 'PHP-FPM: Pool has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b53e2e356317468f9d6d3272eb755650 + name: Version + type: DEPENDENT + key: php-fpm.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current version of the PHP. You can get it from the HTTP-Header "X-Powered-By"; it may not work if you have changed the default HTTP-headers.' + preprocessing: + - type: REGEX + parameters: + - '^[.\s\S]*X-Powered-By: PHP/([.\d]{1,})' + - \1 + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.PING.PAGE}","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: fb110a37f0fc4a62b51df72e33bc3448 + expression: 'last(/PHP-FPM by Zabbix agent/php-fpm.version,#1)<>last(/PHP-FPM by Zabbix agent/php-fpm.version,#2) and length(last(/PHP-FPM by Zabbix agent/php-fpm.version))>0' + name: 'PHP-FPM: Version has changed' + event_name: 'PHP-FPM: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The PHP-FPM version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 71ea0957d99a4d48b18e73a21494c849 + name: 'Get processes summary' + key: 'proc.get[{$PHP_FPM.PROCESS.NAME.PARAMETER},,,summary]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The aggregated data of summary metrics for all processes.' + tags: + - tag: component + value: raw + - uuid: c0c438492c63453496e83938745ffffc + name: php-fpm_ping + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.PING.PAGE}","{$PHP_FPM.PORT}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: health + - uuid: 09ec73291f21417ab8f19f56fda3331f + name: 'Get status page' + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: REGEX + parameters: + - '^[.\s\S]*({.+})' + - \1 + tags: + - tag: component + value: raw + discovery_rules: + - uuid: a8abec999ac74339b077d226bdbcfcc9 + name: 'PHP-FPM process discovery' + type: DEPENDENT + key: php-fpm.proc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#PHP_FPM.NAME}' + value: '{$PHP_FPM.PROCESS_NAME}' + formulaid: A + description: 'The discovery of the PHP-FPM summary processes.' + item_prototypes: + - uuid: 985005cdf7b44332a59a5f7da7528d88 + name: 'Get process data' + type: DEPENDENT + key: 'php-fpm.proc.get[{#PHP_FPM.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The summary metrics aggregated by a process `{#PHP_FPM.NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@["name"]=="{#PHP_FPM.NAME}")].first()' + error_handler: CUSTOM_VALUE + error_handler_params: 'Failed to retrieve process {#PHP_FPM.NAME} data' + master_item: + key: 'proc.get[{$PHP_FPM.PROCESS.NAME.PARAMETER},,,summary]' + tags: + - tag: component + value: raw + - uuid: ab8dc0d1ce344fe8ae6a22716a168fbd + name: 'Number of running processes' + type: DEPENDENT + key: 'php-fpm.proc.num[{#PHP_FPM.NAME}]' + delay: '0' + description: 'The number of running processes `{#PHP_FPM.NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - $.processes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'php-fpm.proc.get[{#PHP_FPM.NAME}]' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 21a03d0ada634602ae9089a2cf3b4d70 + expression: 'last(/PHP-FPM by Zabbix agent/php-fpm.proc.num[{#PHP_FPM.NAME}])=0' + name: 'PHP-FPM: Process is not running' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: ef771994ec9e482babf872d9f867d500 + name: 'Memory usage, %' + type: DEPENDENT + key: 'php-fpm.proc.pmem[{#PHP_FPM.NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of real memory used by a process `{#PHP_FPM.NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - $.pmem + error_handler: DISCARD_VALUE + master_item: + key: 'php-fpm.proc.get[{#PHP_FPM.NAME}]' + tags: + - tag: component + value: memory + - uuid: f55a5ef29f864d0a8c1af25df2372f7c + name: 'Memory usage (rss)' + type: DEPENDENT + key: 'php-fpm.proc.rss[{#PHP_FPM.NAME}]' + delay: '0' + units: B + description: 'The summary of resident set size memory used by a process `{#PHP_FPM.NAME}` expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.rss + error_handler: DISCARD_VALUE + master_item: + key: 'php-fpm.proc.get[{#PHP_FPM.NAME}]' + tags: + - tag: component + value: memory + - uuid: 4efc6da713264e629f987106b8252355 + name: 'Memory usage (vsize)' + type: DEPENDENT + key: 'php-fpm.proc.vmem[{#PHP_FPM.NAME}]' + delay: '0' + units: B + description: 'The summary of virtual memory used by a process `{#PHP_FPM.NAME}` expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.vsize + error_handler: DISCARD_VALUE + master_item: + key: 'php-fpm.proc.get[{#PHP_FPM.NAME}]' + tags: + - tag: component + value: memory + - uuid: a709eaae52ad4128a129c618db6525d2 + name: 'CPU utilization' + key: 'proc.cpu.util[{#PHP_FPM.NAME}]' + value_type: FLOAT + units: '%' + description: 'The percentage of the CPU utilization by a process `{#PHP_FPM.NAME}`.' + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: bdf9962aee2049a8aec000b037b94d60 + expression: 'nodata(/PHP-FPM by Zabbix agent/php-fpm.uptime,30m)=1 and last(/PHP-FPM by Zabbix agent/php-fpm.proc.num[{#PHP_FPM.NAME}])>0' + name: 'PHP-FPM: Failed to fetch info data' + event_name: 'PHP-FPM: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for items for the last 30 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 10d92102d7a24327ada7869a41119fee + expression: '(last(/PHP-FPM by Zabbix agent/php-fpm.ping)=0 or nodata(/PHP-FPM by Zabbix agent/php-fpm.ping,3m)=1) and last(/PHP-FPM by Zabbix agent/php-fpm.proc.num[{#PHP_FPM.NAME}])>0' + name: 'PHP-FPM: Service is down' + priority: HIGH + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 628b350f5fb6439fb4965f4e053f66d5 + name: 'PHP-FPM: Memory usage[{#PHP_FPM.NAME}]' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'PHP-FPM by Zabbix agent' + key: 'php-fpm.proc.vmem[{#PHP_FPM.NAME}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'PHP-FPM by Zabbix agent' + key: 'php-fpm.proc.rss[{#PHP_FPM.NAME}]' + master_item: + key: 'proc.get[{$PHP_FPM.PROCESS.NAME.PARAMETER},,,summary]' + lld_macro_paths: + - lld_macro: '{#PHP_FPM.NAME}' + path: $.name + tags: + - tag: class + value: application + - tag: target + value: php-fpm + macros: + - macro: '{$PHP_FPM.HOST}' + value: localhost + description: 'The hostname or IP address of the PHP-FPM status for a host or container.' + - macro: '{$PHP_FPM.PING.PAGE}' + value: ping + description: 'The path of the PHP-FPM ping page.' + - macro: '{$PHP_FPM.PING.REPLY}' + value: pong + description: 'The expected reply to the ping.' + - macro: '{$PHP_FPM.PORT}' + value: '80' + description: 'The port of the PHP-FPM status host or container.' + - macro: '{$PHP_FPM.PROCESS.NAME.PARAMETER}' + description: 'The process name of the PHP-FPM used in the item key `proc.get`. It could be specified if the correct process name is known.' + - macro: '{$PHP_FPM.PROCESS_NAME}' + value: php-fpm + description: 'The process name filter for the PHP-FPM process discovery. May vary depending on your OS distribution.' + - macro: '{$PHP_FPM.QUEUE.WARN.MAX}' + value: '80' + description: 'The maximum percent of the PHP-FPM queue usage for a trigger expression.' + - macro: '{$PHP_FPM.STATUS.PAGE}' + value: status + description: 'The path of the PHP-FPM status page.' + dashboards: + - uuid: aec4ea16594a47719de221154e43d547 + name: 'PHP-FPM: Overview' + pages: + - name: Main + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PHP-FPM by Zabbix agent' + name: 'PHP-FPM: Process' + - type: STRING + name: reference + value: AAAAA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PHP-FPM by Zabbix agent' + name: 'PHP-FPM: Queue' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 1caa1e7c41e14c7492ab8112f93ea068 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 36cd028132d94585877ad5726f0f9e3d + name: 'PHP-FPM: Process' + graph_items: + - color: 199C0D + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.processes_max_active + - sortorder: '1' + color: F63100 + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.processes_idle + - sortorder: '2' + color: 00611C + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.processes_total + - sortorder: '3' + color: F7941D + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.processes_active + - uuid: 768a3e8aaa4741239887b55be5842f4a + name: 'PHP-FPM: Queue' + graph_items: + - color: 199C0D + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.listen_queue_len + - sortorder: '1' + color: F63100 + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.listen_queue + - sortorder: '2' + color: 00611C + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.listen_queue_max diff --git a/PHP-FPM_by_Zabbix_agent_active.yaml b/PHP-FPM_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..689399d --- /dev/null +++ b/PHP-FPM_by_Zabbix_agent_active.yaml @@ -0,0 +1,668 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: a9e83f950e9f41a78474d523c8376338 + template: 'PHP-FPM by Zabbix agent active' + name: 'PHP-FPM by Zabbix agent active' + description: | + Get PHP-FPM metrics using Zabbix agent running on Linux. + + Note that depending on your OS distribution, the PHP-FPM process name may vary. Please, check the actual name in the line "Name" from /proc//status file (https://www.zabbix.com/documentation/7.0/manual/appendix/items/proc_mem_num_notes) and change {$PHP_FPM.PROCESS.NAME.PARAMETER} macro if needed. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: b7e7fa57f21a440da82f4cecd2ee4354 + name: 'Accepted connections per second' + type: DEPENDENT + key: php-fpm.conn_accepted.rate + delay: '0' + value_type: FLOAT + description: 'The number of accepted requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''accepted conn'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 0f340ff9525d4c6ca842defe43bdfcd1 + name: 'Listen queue' + type: DEPENDENT + key: php-fpm.listen_queue + delay: '0' + description: 'The current number of connections that have been initiated but not yet accepted.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''listen queue'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: listen-queue + - uuid: 1d49d094424b428595b712a8f9d9debd + name: 'Listen queue, len' + type: DEPENDENT + key: php-fpm.listen_queue_len + delay: '0' + description: 'The size of the socket queue of pending connections.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''listen queue len'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: listen-queue + - uuid: 27e0a653944e42f7a83536460e25ddc6 + name: 'Listen queue, max' + type: DEPENDENT + key: php-fpm.listen_queue_max + delay: '0' + description: 'The maximum number of requests in the queue of pending connections since this FPM pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max listen queue'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: listen-queue + - uuid: bea3630fd88448228cd3e6b5808bac5f + name: 'Queue usage' + type: CALCULATED + key: php-fpm.listen_queue_usage + value_type: FLOAT + units: '%' + params: 'last(//php-fpm.listen_queue)/(last(//php-fpm.listen_queue_len)+(last(//php-fpm.listen_queue_len)=0))*100' + description: 'The utilization of the queue.' + tags: + - tag: component + value: application + triggers: + - uuid: ffe46ce6fa4545ac8b2f035488c1b7ba + expression: 'min(/PHP-FPM by Zabbix agent active/php-fpm.listen_queue_usage,15m) > {$PHP_FPM.QUEUE.WARN.MAX}' + name: 'PHP-FPM: Queue utilization is high' + event_name: 'PHP-FPM: Queue utilization is high (over {$PHP_FPM.QUEUE.WARN.MAX}% for 15m)' + priority: WARNING + description: | + The queue for this pool has reached `{$PHP_FPM.QUEUE.WARN.MAX}%` of its maximum capacity. + Items in the queue represent the current number of connections that have been initiated on this pool but not yet accepted. + tags: + - tag: scope + value: capacity + - uuid: 66c7229e59504c5ba2e669e46bf74630 + name: 'Max children reached' + type: DEPENDENT + key: php-fpm.max_children + delay: '0' + description: 'The number of times that `pm.max_children` has been reached since the PHP-FPM pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max children reached'']' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: b7d1aa5426ef45ca939e9de82f495008 + name: 'Pool name' + type: DEPENDENT + key: php-fpm.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the current pool.' + preprocessing: + - type: JSONPATH + parameters: + - $.pool + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: 1385ea3b68944c30b0ce427ead889902 + name: Ping + type: DEPENDENT + key: php-fpm.ping + delay: '0' + valuemap: + name: 'Service state' + preprocessing: + - type: REGEX + parameters: + - '{$PHP_FPM.PING.REPLY}($|\r?\n)' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.PING.PAGE}","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: health + - uuid: 22535e01c27b498bae7fc1738760a4a3 + name: 'Processes, active' + type: DEPENDENT + key: php-fpm.processes_active + delay: '0' + description: 'The total number of active processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''active processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: system + - uuid: ab4d02aafd3241549e2224d287c19962 + name: 'Processes, idle' + type: DEPENDENT + key: php-fpm.processes_idle + delay: '0' + description: 'The total number of idle processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''idle processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: system + - uuid: 057b859639cb4fcc92896cb144b1a709 + name: 'Processes, max active' + type: DEPENDENT + key: php-fpm.processes_max_active + delay: '0' + description: 'The highest value of "active processes" since the PHP-FPM server was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max active processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: 269355114f664ee5947382f62216ce1a + name: 'Processes, total' + type: DEPENDENT + key: php-fpm.processes_total + delay: '0' + description: 'The total number of server processes currently running.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''total processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: system + - uuid: 7bd25d99f654482f9e86d50546e51aa2 + name: 'Process manager' + type: DEPENDENT + key: php-fpm.process_manager + delay: '0' + value_type: CHAR + trends: '0' + description: 'The method used by the process manager to control the number of child processes for this pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''process manager'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 380943ae41cd48e5b903f433216f3cd1 + expression: 'last(/PHP-FPM by Zabbix agent active/php-fpm.process_manager,#1)<>last(/PHP-FPM by Zabbix agent active/php-fpm.process_manager,#2)' + name: 'PHP-FPM: Manager changed' + event_name: 'PHP-FPM: Manager changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'The PHP-FPM manager has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ae81f04c1f9a4f53a09815690d5d43ac + name: 'Slow requests' + type: DEPENDENT + key: php-fpm.slow_requests + delay: '0' + description: 'The number of requests that has exceeded your `request_slowlog_timeout` value.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''slow requests'']' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 4a25c3fecad74df7ba59be94dd1df7cf + expression: 'min(/PHP-FPM by Zabbix agent active/php-fpm.slow_requests,#3)>0' + name: 'PHP-FPM: Detected slow requests' + priority: WARNING + description: | + The PHP-FPM has detected a slow request. + The slow request means that it took more time to execute than expected (defined in the configuration of your pool). + tags: + - tag: scope + value: performance + - uuid: cbd3d52676694f5f807310919511ee51 + name: 'Start time' + type: DEPENDENT + key: php-fpm.start_time + delay: '0' + units: unixtime + description: 'The time when this pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''start time'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: 4b730deac04448a68dfdcea90a83c0b4 + name: Uptime + type: DEPENDENT + key: php-fpm.uptime + delay: '0' + units: s + description: 'It indicates how long has this pool been running.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''start since'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 77e61db3d40d4bd1ba518d27dfd05491 + expression: 'last(/PHP-FPM by Zabbix agent active/php-fpm.uptime)<10m' + name: 'PHP-FPM: Pool has been restarted' + event_name: 'PHP-FPM: Pool has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0807e0c9c77f45ff9b39f6c587b33107 + name: Version + type: DEPENDENT + key: php-fpm.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current version of the PHP. You can get it from the HTTP-Header "X-Powered-By"; it may not work if you have changed the default HTTP-headers.' + preprocessing: + - type: REGEX + parameters: + - '^[.\s\S]*X-Powered-By: PHP/([.\d]{1,})' + - \1 + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.PING.PAGE}","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 27684ff67232429dad79e0eae323945d + expression: 'last(/PHP-FPM by Zabbix agent active/php-fpm.version,#1)<>last(/PHP-FPM by Zabbix agent active/php-fpm.version,#2) and length(last(/PHP-FPM by Zabbix agent active/php-fpm.version))>0' + name: 'PHP-FPM: Version has changed' + event_name: 'PHP-FPM: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The PHP-FPM version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2e72b191ec3b481f800e100e69a85691 + name: 'Get processes summary' + type: ZABBIX_ACTIVE + key: 'proc.get[{$PHP_FPM.PROCESS.NAME.PARAMETER},,,summary]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The aggregated data of summary metrics for all processes.' + tags: + - tag: component + value: raw + - uuid: ca300d24e4434dd8bc5e86ea859eb9f6 + name: php-fpm_ping + type: ZABBIX_ACTIVE + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.PING.PAGE}","{$PHP_FPM.PORT}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: health + - uuid: de356fd730494b27a701cb900cd5c9b1 + name: 'Get status page' + type: ZABBIX_ACTIVE + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + history: '0' + value_type: TEXT + trends: '0' + preprocessing: + - type: REGEX + parameters: + - '^[.\s\S]*({.+})' + - \1 + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 57c2c152cf1e4a84863d77bd05289f50 + name: 'PHP-FPM process discovery' + type: DEPENDENT + key: php-fpm.proc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#PHP_FPM.NAME}' + value: '{$PHP_FPM.PROCESS_NAME}' + formulaid: A + description: 'The discovery of the PHP-FPM summary processes.' + item_prototypes: + - uuid: 42cac727ddf24220bf93f8b987450694 + name: 'Get process data' + type: DEPENDENT + key: 'php-fpm.proc.get[{#PHP_FPM.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The summary metrics aggregated by a process `{#PHP_FPM.NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@["name"]=="{#PHP_FPM.NAME}")].first()' + error_handler: CUSTOM_VALUE + error_handler_params: 'Failed to retrieve process {#PHP_FPM.NAME} data' + master_item: + key: 'proc.get[{$PHP_FPM.PROCESS.NAME.PARAMETER},,,summary]' + tags: + - tag: component + value: raw + - uuid: 95e07134044443c894a4ea47404b548e + name: 'Number of running processes' + type: DEPENDENT + key: 'php-fpm.proc.num[{#PHP_FPM.NAME}]' + delay: '0' + description: 'The number of running processes `{#PHP_FPM.NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - $.processes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'php-fpm.proc.get[{#PHP_FPM.NAME}]' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 86aabcdb709c4199b6c64e321875c60d + expression: 'last(/PHP-FPM by Zabbix agent active/php-fpm.proc.num[{#PHP_FPM.NAME}])=0' + name: 'PHP-FPM: Process is not running' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: cceec896a859443e9323a8d738e5620f + name: 'Memory usage, %' + type: DEPENDENT + key: 'php-fpm.proc.pmem[{#PHP_FPM.NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of real memory used by a process `{#PHP_FPM.NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - $.pmem + error_handler: DISCARD_VALUE + master_item: + key: 'php-fpm.proc.get[{#PHP_FPM.NAME}]' + tags: + - tag: component + value: memory + - uuid: 2001d850797548389aca5d2b90e68dc1 + name: 'Memory usage (rss)' + type: DEPENDENT + key: 'php-fpm.proc.rss[{#PHP_FPM.NAME}]' + delay: '0' + units: B + description: 'The summary of resident set size memory used by a process `{#PHP_FPM.NAME}` expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.rss + error_handler: DISCARD_VALUE + master_item: + key: 'php-fpm.proc.get[{#PHP_FPM.NAME}]' + tags: + - tag: component + value: memory + - uuid: 8a1114f7c4604d43b16627fcc9cc7604 + name: 'Memory usage (vsize)' + type: DEPENDENT + key: 'php-fpm.proc.vmem[{#PHP_FPM.NAME}]' + delay: '0' + units: B + description: 'The summary of virtual memory used by a process `{#PHP_FPM.NAME}` expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.vsize + error_handler: DISCARD_VALUE + master_item: + key: 'php-fpm.proc.get[{#PHP_FPM.NAME}]' + tags: + - tag: component + value: memory + - uuid: 65c8bd5634d84552b401c15237b74de8 + name: 'CPU utilization' + type: ZABBIX_ACTIVE + key: 'proc.cpu.util[{#PHP_FPM.NAME}]' + value_type: FLOAT + units: '%' + description: 'The percentage of the CPU utilization by a process `{#PHP_FPM.NAME}`.' + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: f28aac156ea142c4b92e8d5a29ed79f2 + expression: 'nodata(/PHP-FPM by Zabbix agent active/php-fpm.uptime,30m)=1 and last(/PHP-FPM by Zabbix agent active/php-fpm.proc.num[{#PHP_FPM.NAME}])>0' + name: 'PHP-FPM: Failed to fetch info data' + event_name: 'PHP-FPM: Failed to fetch info data (or no data for 30m)' + priority: INFO + description: 'Zabbix has not received any data for items for the last 30 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f33109ac78a84debb66fa4ed92384f99 + expression: '(last(/PHP-FPM by Zabbix agent active/php-fpm.ping)=0 or nodata(/PHP-FPM by Zabbix agent active/php-fpm.ping,3m)=1) and last(/PHP-FPM by Zabbix agent active/php-fpm.proc.num[{#PHP_FPM.NAME}])>0' + name: 'PHP-FPM: Service is down' + priority: HIGH + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 3e0a2769bfd74c72bba0736e483fa3a1 + name: 'PHP-FPM: Memory usage[{#PHP_FPM.NAME}]' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'PHP-FPM by Zabbix agent active' + key: 'php-fpm.proc.vmem[{#PHP_FPM.NAME}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'PHP-FPM by Zabbix agent active' + key: 'php-fpm.proc.rss[{#PHP_FPM.NAME}]' + master_item: + key: 'proc.get[{$PHP_FPM.PROCESS.NAME.PARAMETER},,,summary]' + lld_macro_paths: + - lld_macro: '{#PHP_FPM.NAME}' + path: $.name + tags: + - tag: class + value: application + - tag: target + value: php-fpm + macros: + - macro: '{$PHP_FPM.HOST}' + value: localhost + description: 'The hostname or IP address of the PHP-FPM status for a host or container.' + - macro: '{$PHP_FPM.PING.PAGE}' + value: ping + description: 'The path of the PHP-FPM ping page.' + - macro: '{$PHP_FPM.PING.REPLY}' + value: pong + description: 'The expected reply to the ping.' + - macro: '{$PHP_FPM.PORT}' + value: '80' + description: 'The port of the PHP-FPM status host or container.' + - macro: '{$PHP_FPM.PROCESS.NAME.PARAMETER}' + description: 'The process name of the PHP-FPM used in the item key `proc.get`. It could be specified if the correct process name is known.' + - macro: '{$PHP_FPM.PROCESS_NAME}' + value: php-fpm + description: 'The process name filter for the PHP-FPM process discovery. May vary depending on your OS distribution.' + - macro: '{$PHP_FPM.QUEUE.WARN.MAX}' + value: '80' + description: 'The maximum percent of the PHP-FPM queue usage for a trigger expression.' + - macro: '{$PHP_FPM.STATUS.PAGE}' + value: status + description: 'The path of the PHP-FPM status page.' + dashboards: + - uuid: 62e8b6d8dfe04592b4fe73cb251990ae + name: 'PHP-FPM: Overview' + pages: + - name: Main + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PHP-FPM by Zabbix agent active' + name: 'PHP-FPM: Process' + - type: STRING + name: reference + value: AAAAA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PHP-FPM by Zabbix agent active' + name: 'PHP-FPM: Queue' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: a4bc71640e694328a20fe200c7c5fece + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 493023e7a76b4bbba062c7fa79c6395c + name: 'PHP-FPM: Process' + graph_items: + - color: 199C0D + item: + host: 'PHP-FPM by Zabbix agent active' + key: php-fpm.processes_max_active + - sortorder: '1' + color: F63100 + item: + host: 'PHP-FPM by Zabbix agent active' + key: php-fpm.processes_idle + - sortorder: '2' + color: 00611C + item: + host: 'PHP-FPM by Zabbix agent active' + key: php-fpm.processes_total + - sortorder: '3' + color: F7941D + item: + host: 'PHP-FPM by Zabbix agent active' + key: php-fpm.processes_active + - uuid: 4555442cca864b45ba34904f4e8d44d8 + name: 'PHP-FPM: Queue' + graph_items: + - color: 199C0D + item: + host: 'PHP-FPM by Zabbix agent active' + key: php-fpm.listen_queue_len + - sortorder: '1' + color: F63100 + item: + host: 'PHP-FPM by Zabbix agent active' + key: php-fpm.listen_queue + - sortorder: '2' + color: 00611C + item: + host: 'PHP-FPM by Zabbix agent active' + key: php-fpm.listen_queue_max diff --git a/Palo_Alto_PA-440_by_HTTP.yaml b/Palo_Alto_PA-440_by_HTTP.yaml new file mode 100644 index 0000000..ccfa03e --- /dev/null +++ b/Palo_Alto_PA-440_by_HTTP.yaml @@ -0,0 +1,4145 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: edc752f178f94b9dbaee459ec7bacc66 + template: 'Palo Alto PA-440 by HTTP' + name: 'Palo Alto PA-440 by HTTP' + description: | + This template is designed for the effortless deployment of Palo Alto PA-440 monitoring by Zabbix via XML API and doesn't require any external scripts. + + Setup: + + Configure a user for monitoring. Note that in order to retrieve the device certificate information, superuser privileges are required. If you opt for a user with limited access (for security reasons), the device certificate expiration metrics will not be discovered. + + Superuser privileges user (full access to all data): + 1. Add a new administrator user. Go to "Device" > "Administrators" and click "Add". + 2. Enter the necessary details. Set the "Administrator Type" to "Dynamic" and select the built-in "Superuser" role. Commit the changes. + + Limited privileges user (no access to device certificate data): + 1. Create a new Admin Role. Go to "Device" > "Admin Role" and click "Add". + 2. Enter the necessary details. Adjust the list of permissions: + - Restrict access to all sections in the "Web UI" tab + - Allow access to the "Configuration" and "Operational Requests" sections in the "XML API" tab + - Check that the access to CLI is set to "None" in the "Command Line" tab + - Restrict access to all sections in the "REST API" tab + 3. Add a new administrator user. Go to "Device" > "Administrators" and click "Add". + 4. Enter the necessary details. Set the "Administrator Type" to "Role Based" and select the profile that was created in the previous steps. Commit the changes. + + Set the host macros: + 1. Set the firewall XML API endpoint URL in the "{$PAN.PA440.API.URL}" macro in the format "://[:port]/api" (port is optional). + 2. Set the name of the user that you created in the "{$PAN.PA440.USER}" macro. + 3. Set the password of the user that you created in the "{$PAN.PA440.PASSWORD}" macro. + + For more details about PAN-OS API, refer to the official documentation: + https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-panorama-api + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-0 + groups: + - name: 'Templates/Network devices' + items: + - uuid: de2197db515d46cab5349720285ed40e + name: 'App-ID release date' + type: DEPENDENT + key: pan.pa440.app_id.release_date + delay: '0' + value_type: CHAR + trends: '0' + description: 'Currently installed application definition release date. If no release date is found, the value is discarded.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.system[''app-release-date'']' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.system_info.get + tags: + - tag: component + value: app-id + - tag: component + value: system + - uuid: 03a2a4e32463409f94e08b72c5c1ac78 + name: 'App-ID version' + type: DEPENDENT + key: pan.pa440.app_id.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Currently installed application definition version. If no application definition is found, 0 is returned.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.system[''app-version'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.system_info.get + tags: + - tag: component + value: app-id + - tag: component + value: system + - uuid: 4bdcedebb6dd4fd4951a13c52749b89d + name: 'Get device certificate' + type: HTTP_AGENT + key: pan.pa440.certificate.device.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the information about the device certificate. Note that superuser privileges are required to obtain the device certificate data.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: raw + - uuid: 278c6f5c85bf4c659afa0b08f4c56c23 + name: 'Get device certificate check' + type: DEPENDENT + key: pan.pa440.certificate.device.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const item_data = JSON.parse(value); + + var zbx_error_msg = ''; + + if (item_data.response['@status'] !== 'success') { + zbx_error_msg = 'Unknown error. Test the item manually and check the retrieved value.'; + + if (item_data.response.msg && item_data.response.msg.line) { + zbx_error_msg = item_data.response.msg.line; + } + + if (item_data.response.result && item_data.response.result.msg) { + zbx_error_msg = item_data.response.result.msg; + } + } + + return zbx_error_msg; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pan.pa440.certificate.device.get + tags: + - tag: component + value: status + triggers: + - uuid: 44ab6b7c72bd4ccbbab3daed1f229417 + expression: 'length(last(/Palo Alto PA-440 by HTTP/pan.pa440.certificate.device.get.check))>0' + name: 'PA-440: Failed to get device certificate data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 0d8d933aff9a4523aa784722616aa40f + name: 'Get certificates' + type: HTTP_AGENT + key: pan.pa440.certificate.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the information about the certificates on the device.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + - type: JAVASCRIPT + parameters: + - | + var certificates = JSON.parse(value), + result = { + response: { + '@status': 'success', + data: [] + } + }; + + if (certificates.response['@status'] !== 'success') { + certificates.response.data = []; + return JSON.stringify(certificates); + } + + if (certificates.response.result && certificates.response.result.certificate && certificates.response.result.certificate.entry) { + result.response.data = Array.isArray(certificates.response.result.certificate.entry) ? certificates.response.result.certificate.entry : [certificates.response.result.certificate.entry]; + + return JSON.stringify(result); + } + + return JSON.stringify(result); + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: config + - name: action + value: get + - name: xpath + value: /config/shared/certificate + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: raw + - uuid: e0e93584fbfb46578bb8272aa6326f1c + name: 'Get certificate check' + type: DEPENDENT + key: pan.pa440.certificate.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const item_data = JSON.parse(value); + + var zbx_error_msg = ''; + + if (item_data.response['@status'] !== 'success') { + zbx_error_msg = 'Unknown error. Test the item manually and check the retrieved value.'; + + if (item_data.response.msg && item_data.response.msg.line) { + zbx_error_msg = item_data.response.msg.line; + } + + if (item_data.response.result && item_data.response.result.msg) { + zbx_error_msg = item_data.response.result.msg; + } + } + + return zbx_error_msg; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pan.pa440.certificate.get + tags: + - tag: component + value: status + triggers: + - uuid: a323a25e3808440ab38b412b62e14300 + expression: 'length(last(/Palo Alto PA-440 by HTTP/pan.pa440.certificate.get.check))>0' + name: 'PA-440: Failed to get certificate data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 4e4ddb2794524f2a889328609dd8ea8f + name: 'CPU temperature' + type: DEPENDENT + key: pan.pa440.cpu.temp + delay: '0' + units: ℃ + description: 'The CPU temperature in degrees Celsius.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.thermal.Slot1.entry.DegreesC + master_item: + key: pan.pa440.environmentals.get + tags: + - tag: component + value: cpu + - tag: component + value: environment + - uuid: fb94a1c35199494b8750bdc7f3d87e06 + name: 'Data Plane: CPU utilization, in %' + type: DEPENDENT + key: pan.pa440.data_plane.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of time over the last minute that this processor was not idle. Implementations may approximate this one-minute smoothing period if necessary.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result + - type: REGEX + parameters: + - '(?m)^sys\.monitor\.s1\.dp0\.exports:.*1minavg''?:\s*(\d+)' + - \1 + master_item: + key: pan.pa440.system_state.get + tags: + - tag: component + value: cpu + - uuid: d971daee3e2340a981b0c079adf3abdc + name: 'Get system environmentals' + type: HTTP_AGENT + key: pan.pa440.environmentals.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the system environment state information.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: raw + - uuid: 16477bcf87d94ec89e7f6e8cb6f76612 + name: 'Get system environmental check' + type: DEPENDENT + key: pan.pa440.environmentals.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const item_data = JSON.parse(value); + + var zbx_error_msg = ''; + + if (item_data.response['@status'] !== 'success') { + zbx_error_msg = 'Unknown error. Test the item manually and check the retrieved value.'; + + if (item_data.response.msg && item_data.response.msg.line) { + zbx_error_msg = item_data.response.msg.line; + } + + if (item_data.response.result && item_data.response.result.msg) { + zbx_error_msg = item_data.response.result.msg; + } + } + + return zbx_error_msg; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pan.pa440.environmentals.get + tags: + - tag: component + value: status + triggers: + - uuid: c9ba92783cb74e64817790ff25e710d4 + expression: 'length(last(/Palo Alto PA-440 by HTTP/pan.pa440.environmentals.get.check))>0' + name: 'PA-440: Failed to get environmental data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: f33d2dec35174826b41865bac4921704 + name: 'GlobalProtect client package version' + type: DEPENDENT + key: pan.pa440.gp.client.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Currently installed GlobalProtect client package version. If package is not installed, "0.0.0" is returned.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.system[''global-protect-client-package-version'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.system_info.get + tags: + - tag: component + value: global-protect + - tag: component + value: system + - uuid: 81e26d3d45fb4cf9a085ecaf980dfc76 + name: 'Get HA info' + type: HTTP_AGENT + key: pan.pa440.ha.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the high availability information.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: raw + - uuid: dc15e5dad66c4e0eafb9426a9fe8f573 + name: 'Get HA info check' + type: DEPENDENT + key: pan.pa440.ha.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const item_data = JSON.parse(value); + + var zbx_error_msg = ''; + + if (item_data.response['@status'] !== 'success') { + zbx_error_msg = 'Unknown error. Test the item manually and check the retrieved value.'; + + if (item_data.response.msg && item_data.response.msg.line) { + zbx_error_msg = item_data.response.msg.line; + } + + if (item_data.response.result && item_data.response.result.msg) { + zbx_error_msg = item_data.response.result.msg; + } + } + + return zbx_error_msg; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pan.pa440.ha.get + tags: + - tag: component + value: status + triggers: + - uuid: ed84f048159a47dc8b839d00c339cfc3 + expression: 'length(last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.get.check))>0' + name: 'PA-440: Failed to get HA data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 105dc2a9c708468eaec05721bbf69a05 + name: 'Host name' + type: DEPENDENT + key: pan.pa440.hostname + delay: '0' + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.system.hostname + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.system_info.get + tags: + - tag: component + value: system + - uuid: 296fb66ceb8d45e0aa923bf7227711b5 + name: 'Get licenses' + type: HTTP_AGENT + key: pan.pa440.licenses.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the information about installed licenses.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + - type: JAVASCRIPT + parameters: + - | + function parseDate(date_string) { + var parts = date_string.split(' '), + months = { + 'January': 0, 'February': 1, 'March': 2, 'April': 3, + 'May': 4, 'June': 5, 'July': 6, 'August': 7, + 'September': 8, 'October': 9, 'November': 10, 'December': 11 + }; + + var month = months[parts[0]], + day = parseInt(parts[1].replace(',', ''), 10), + year = parseInt(parts[2], 10); + + var date = new Date(year, month, day); + + return Math.floor(date.getTime() / 1000); + } + + var licenses = JSON.parse(value), + result = { + response: { + '@status': 'success', + data: [] + } + }; + + if (licenses.response['@status'] !== 'success') { + licenses.response.data = []; + return JSON.stringify(licenses); + } + + if (licenses.response.result && licenses.response.result.licenses && licenses.response.result.licenses.entry) { + result.response.data = Array.isArray(licenses.response.result.licenses.entry) ? licenses.response.result.licenses.entry : [licenses.response.result.licenses.entry]; + + for (var i in result.response.data) { + if (result.response.data[i].expires !== 'Never') { + result.response.data[i].expires = parseDate(result.response.data[i].expires); + } + } + + return JSON.stringify(result); + } + + return JSON.stringify(result); + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: raw + - uuid: 5d12d627046c48f3958ad75f7f1b544a + name: 'Get license check' + type: DEPENDENT + key: pan.pa440.licenses.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const item_data = JSON.parse(value); + + var zbx_error_msg = ''; + + if (item_data.response['@status'] !== 'success') { + zbx_error_msg = 'Unknown error. Test the item manually and check the retrieved value.'; + + if (item_data.response.msg && item_data.response.msg.line) { + zbx_error_msg = item_data.response.msg.line; + } + + if (item_data.response.result && item_data.response.result.msg) { + zbx_error_msg = item_data.response.result.msg; + } + } + + return zbx_error_msg; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pan.pa440.licenses.get + tags: + - tag: component + value: status + triggers: + - uuid: 475e2a36b81840cd9f4c4eb1f9d12109 + expression: 'length(last(/Palo Alto PA-440 by HTTP/pan.pa440.licenses.get.check))>0' + name: 'PA-440: Failed to get license data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 63f1642de18b48a889c6bd9110a53c9b + name: 'Management Plane: CPU utilization, in %' + type: DEPENDENT + key: pan.pa440.management_plane.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of time over the last minute that this processor was not idle. Implementations may approximate this one-minute smoothing period if necessary.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result + - type: REGEX + parameters: + - '(?m)^sys\.monitor\.s1\.mp\.exports:.*1minavg''?:\s*(\d+)' + - \1 + master_item: + key: pan.pa440.system_state.get + tags: + - tag: component + value: cpu + - uuid: eadbb5eb7839483fafa8ba2297787ae0 + name: 'PAN-OS version' + type: DEPENDENT + key: pan.pa440.os.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Full software version. The first two components of the full version are the major and minor versions. The third component indicates the maintenance release number.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.system[''sw-version'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.system_info.get + tags: + - tag: component + value: system + - uuid: 2c88e39db8634c5baa03e9e6bd974e52 + name: 'Get OSPF neighbors' + type: HTTP_AGENT + key: pan.pa440.ospf.neighbors.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the OSPF neighbor information.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + - type: JAVASCRIPT + parameters: + - | + var ospf_neighbors = JSON.parse(value), + result = { + response: { + '@status': 'success', + data: [] + } + }; + + if (ospf_neighbors.response['@status'] !== 'success') { + ospf_neighbors.response.data = []; + return JSON.stringify(ospf_neighbors); + } + + if (ospf_neighbors.response.result.entry) { + result.response.data = Array.isArray(ospf_neighbors.response.result.entry) ? ospf_neighbors.response.result.entry : [ospf_neighbors.response.result.entry]; + + return JSON.stringify(result); + } + + return JSON.stringify(result); + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: raw + - uuid: 7810a8b930cd463080d020f41ef0db63 + name: 'Get OSPF neighbor check' + type: DEPENDENT + key: pan.pa440.ospf.neighbors.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const item_data = JSON.parse(value); + + var zbx_error_msg = ''; + + if (item_data.response['@status'] !== 'success') { + zbx_error_msg = 'Unknown error. Test the item manually and check the retrieved value.'; + + if (item_data.response.msg && item_data.response.msg.line) { + zbx_error_msg = item_data.response.msg.line; + } + + if (item_data.response.result && item_data.response.result.msg) { + zbx_error_msg = item_data.response.result.msg; + } + } + + return zbx_error_msg; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pan.pa440.ospf.neighbors.get + tags: + - tag: component + value: status + triggers: + - uuid: b828df38af09484c8ed6c9fd726f8757 + expression: 'length(last(/Palo Alto PA-440 by HTTP/pan.pa440.ospf.neighbors.get.check))>0' + name: 'PA-440: Failed to get OSPF neighbor data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: b4dda8f48f734b9bae0a1c55bd2faf45 + name: 'Get OSPFv3 neighbors' + type: HTTP_AGENT + key: pan.pa440.ospfv3.neighbors.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the OSPFv3 neighbor information.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + - type: JAVASCRIPT + parameters: + - | + var ospfv3_neighbors = JSON.parse(value), + result = { + response: { + '@status': 'success', + data: [] + } + }; + + if (ospfv3_neighbors.response['@status'] !== 'success') { + ospfv3_neighbors.response.data = []; + return JSON.stringify(ospfv3_neighbors); + } + + if (ospfv3_neighbors.response.result.entry) { + result.response.data = Array.isArray(ospfv3_neighbors.response.result.entry) ? ospfv3_neighbors.response.result.entry : [ospfv3_neighbors.response.result.entry]; + + return JSON.stringify(result); + } + + return JSON.stringify(result); + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: raw + - uuid: b7fd9012cfb54266b7b89e7ff96f45a8 + name: 'Get OSPFv3 neighbor check' + type: DEPENDENT + key: pan.pa440.ospfv3.neighbors.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const item_data = JSON.parse(value); + + var zbx_error_msg = ''; + + if (item_data.response['@status'] !== 'success') { + zbx_error_msg = 'Unknown error. Test the item manually and check the retrieved value.'; + + if (item_data.response.msg && item_data.response.msg.line) { + zbx_error_msg = item_data.response.msg.line; + } + + if (item_data.response.result && item_data.response.result.msg) { + zbx_error_msg = item_data.response.result.msg; + } + } + + return zbx_error_msg; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pan.pa440.ospfv3.neighbors.get + tags: + - tag: component + value: status + triggers: + - uuid: c879700d2fc84426907962068eae225f + expression: 'length(last(/Palo Alto PA-440 by HTTP/pan.pa440.ospfv3.neighbors.get.check))>0' + name: 'PA-440: Failed to get OSPFv3 neighbor data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 9b651e03cb2648bbbcca396ad0d403b2 + name: 'Serial number' + type: DEPENDENT + key: pan.pa440.serial_number + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number of the unit. If not available, an empty string is returned.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.system.serial + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.system_info.get + tags: + - tag: component + value: inventory + - tag: component + value: system + - uuid: 62f42a97bd8249ef9a74a23198286816 + name: 'Sessions: Active, total' + type: DEPENDENT + key: pan.pa440.sessions.active.total + delay: '0' + description: 'Total number of active sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result[''num-active'']' + master_item: + key: pan.pa440.session_info.get + tags: + - tag: component + value: session + - uuid: cdb99f2e3ca84cada0273ad2649080c4 + name: 'Sessions: ICMP, active' + type: DEPENDENT + key: pan.pa440.sessions.icmp.active + delay: '0' + description: 'Total number of active ICMP sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result[''num-icmp'']' + master_item: + key: pan.pa440.session_info.get + tags: + - tag: component + value: session + - uuid: 28358716ad684d4588451bcf74ce8c1f + name: 'Sessions: Supported, total' + type: DEPENDENT + key: pan.pa440.sessions.supported.total + delay: '0' + description: 'Total number of supported sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result[''num-max'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.session_info.get + tags: + - tag: component + value: session + - uuid: 8af55240d4e34bfab3b04c128bb4f54a + name: 'Sessions: Session table utilization, in %' + type: DEPENDENT + key: pan.pa440.sessions.table_util + delay: '0' + value_type: FLOAT + units: '%' + description: 'Session table utilization in percent.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const session_data = JSON.parse(value); + + return session_data.response.result['num-active'] / session_data.response.result['num-max'] * 100; + master_item: + key: pan.pa440.session_info.get + tags: + - tag: component + value: session + - uuid: b70edca62b6c4a609d3c1dba707726ea + name: 'Sessions: TCP, active' + type: DEPENDENT + key: pan.pa440.sessions.tcp.active + delay: '0' + description: 'Total number of active TCP sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result[''num-tcp'']' + master_item: + key: pan.pa440.session_info.get + tags: + - tag: component + value: session + - uuid: 1f48afa7b8cf4ab68497cb4b6a323a29 + name: 'Sessions: UDP, active' + type: DEPENDENT + key: pan.pa440.sessions.udp.active + delay: '0' + description: 'Total number of active UDP sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result[''num-udp'']' + master_item: + key: pan.pa440.session_info.get + tags: + - tag: component + value: session + - uuid: f3defb28d70a4a0f9ebd036d65e1fda2 + name: 'Get session info' + type: HTTP_AGENT + key: pan.pa440.session_info.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the information about sessions.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: raw + - uuid: 185bb269726f49ec9903dfea32c17c84 + name: 'Get session info check' + type: DEPENDENT + key: pan.pa440.session_info.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const item_data = JSON.parse(value); + + var zbx_error_msg = ''; + + if (item_data.response['@status'] !== 'success') { + zbx_error_msg = 'Unknown error. Test the item manually and check the retrieved value.'; + + if (item_data.response.msg && item_data.response.msg.line) { + zbx_error_msg = item_data.response.msg.line; + } + + if (item_data.response.result && item_data.response.result.msg) { + zbx_error_msg = item_data.response.result.msg; + } + } + + return zbx_error_msg; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pan.pa440.session_info.get + tags: + - tag: component + value: status + triggers: + - uuid: d7577936d64a4e7b9e62868dacce625d + expression: 'length(last(/Palo Alto PA-440 by HTTP/pan.pa440.session_info.get.check))>0' + name: 'PA-440: Failed to get session info data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 5133c9b5e7284141ba1da1d1d1c726f8 + name: 'Get system info' + type: HTTP_AGENT + key: pan.pa440.system_info.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the general system information.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: raw + - uuid: e864518eac5c412299cbe0561813bff3 + name: 'Get system info check' + type: DEPENDENT + key: pan.pa440.system_info.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const item_data = JSON.parse(value); + + var zbx_error_msg = ''; + + if (item_data.response['@status'] !== 'success') { + zbx_error_msg = 'Unknown error. Test the item manually and check the retrieved value.'; + + if (item_data.response.msg && item_data.response.msg.line) { + zbx_error_msg = item_data.response.msg.line; + } + + if (item_data.response.result && item_data.response.result.msg) { + zbx_error_msg = item_data.response.result.msg; + } + } + + return zbx_error_msg; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pan.pa440.system_info.get + tags: + - tag: component + value: status + triggers: + - uuid: 38cd1ff8e5494e93a40662b9306c0807 + expression: 'length(last(/Palo Alto PA-440 by HTTP/pan.pa440.system_info.get.check))>0' + name: 'PA-440: Failed to get system info data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 7bbaec54328a472e99c47edca0aa13c0 + name: 'Get system state' + type: HTTP_AGENT + key: pan.pa440.system_state.get + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the system state information. Used with a filter to retrieve CPU utilization metrics.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: 'sys.monitor.s1.*.exports' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: raw + - uuid: 473dd3928ad945a2aa2c8ba31301c75d + name: 'Get system state check' + type: DEPENDENT + key: pan.pa440.system_state.get.check + delay: '0' + value_type: TEXT + trends: '0' + description: 'Data collection check. Check the latest values for details.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const item_data = JSON.parse(value); + + var zbx_error_msg = ''; + + if (item_data.response['@status'] !== 'success') { + zbx_error_msg = 'Unknown error. Test the item manually and check the retrieved value.'; + + if (item_data.response.msg && item_data.response.msg.line) { + zbx_error_msg = item_data.response.msg.line; + } + + if (item_data.response.result && item_data.response.result.msg) { + zbx_error_msg = item_data.response.result.msg; + } + } + + return zbx_error_msg; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pan.pa440.system_state.get + tags: + - tag: component + value: status + triggers: + - uuid: 920dc027510941a38648816064d8bf18 + expression: 'length(last(/Palo Alto PA-440 by HTTP/pan.pa440.system_state.get.check))>0' + name: 'PA-440: Failed to get system state data from the API' + priority: HIGH + description: 'Failed to get data from the API. Check the latest values for details.' + tags: + - tag: scope + value: availability + - uuid: 29af24fd3b23440e92a3d96fb96dad22 + name: 'Threat version' + type: DEPENDENT + key: pan.pa440.threat.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Currently installed threat definition version. If no threat definition is found, "0" is returned.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.system[''threat-version'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.system_info.get + tags: + - tag: component + value: system + - tag: component + value: threat + - uuid: a833b2bc69eb41599d916825ac89f9d7 + name: Uptime + type: DEPENDENT + key: pan.pa440.uptime + delay: '0' + units: uptime + description: 'The system uptime.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.system.uptime + - type: JAVASCRIPT + parameters: + - | + const uptime_pattern = /(?:(\d+)\s+days?,\s+)?(\d+):(\d+):(\d+)/; + + const match = value.match(uptime_pattern); + + if (match) { + const days = parseInt(match[1] || "0", 10), + hours = parseInt(match[2], 10), + minutes = parseInt(match[3], 10), + seconds = parseInt(match[4], 10); + + return days * 86400 + hours * 3600 + minutes * 60 + seconds; + } else { + throw 'Incorrect uptime string received: ' + value + '. Expected format: D days, HH:mm:ss'; + } + master_item: + key: pan.pa440.system_info.get + tags: + - tag: component + value: system + - uuid: 09afd20686404eec944a8b3489b2c826 + name: 'URL filtering version' + type: DEPENDENT + key: pan.pa440.url_filtering.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Currently installed URL filtering version. If no URL filtering is installed, "0" is returned.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.system[''url-filtering-version'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.system_info.get + tags: + - tag: component + value: system + - tag: component + value: url-filtering + discovery_rules: + - uuid: 94f62f452c3947f688e99fcea7f07b04 + name: 'BGP peer discovery' + type: HTTP_AGENT + key: pan.pa440.bgp.peer.discovery + delay: 1h + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#PEER}' + value: '{$PAN.PA440.BGP.PEER.NAME.MATCHES}' + formulaid: A + - macro: '{#PEER}' + value: '{$PAN.PA440.BGP.PEER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#PEERGROUP}' + value: '{$PAN.PA440.BGP.PEER.GROUP.MATCHES}' + formulaid: C + - macro: '{#PEERGROUP}' + value: '{$PAN.PA440.BGP.PEER.GROUP.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovers BGP peers.' + item_prototypes: + - uuid: 8cb01b4d3dbe403bae338af458c38b7b + name: 'BGP peer [{#PEER}]: Get data' + type: HTTP_AGENT + key: 'pan.pa440.bgp.peer.get[{#PEERGROUP}, {#PEERADDR}, {#PEER}]' + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the information about the peer.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '{#PEER}' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: bgp + - tag: component + value: network + - tag: component + value: raw + - tag: peer + value: '{#PEER}' + - tag: peer-address + value: '{#PEERADDR}' + - tag: peer-group + value: '{#PEERGROUP}' + - uuid: 2b24b1d15040412793116d2d5c59b307 + name: 'BGP peer [{#PEER}]: Status duration' + type: DEPENDENT + key: 'pan.pa440.bgp.peer.status.duration[{#PEERGROUP}, {#PEERADDR}, {#PEER}]' + delay: '0' + units: s + description: 'The duration of the current state of the BGP peer.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.entry[''status-duration'']' + master_item: + key: 'pan.pa440.bgp.peer.get[{#PEERGROUP}, {#PEERADDR}, {#PEER}]' + tags: + - tag: component + value: bgp + - tag: component + value: network + - tag: peer + value: '{#PEER}' + - tag: peer-address + value: '{#PEERADDR}' + - tag: peer-group + value: '{#PEERGROUP}' + trigger_prototypes: + - uuid: 9aee65b49c89455e90e08a6d9c362a53 + expression: '{$PAN.PA440.BGP.CONTROL:"{#PEER}"}=1 and last(/Palo Alto PA-440 by HTTP/pan.pa440.bgp.peer.status.duration[{#PEERGROUP}, {#PEERADDR}, {#PEER}])<10m' + name: 'PA-440: BGP peer [{#PEER}]: Session status duration has been reset' + opdata: 'State duration: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The duration of the session status with the peer has been reset.' + tags: + - tag: scope + value: availability + - uuid: 6549bd0d259947c3b18c2fdc2c0f7b2c + name: 'BGP peer [{#PEER}]: Status' + type: DEPENDENT + key: 'pan.pa440.bgp.peer.status[{#PEERGROUP}, {#PEERADDR}, {#PEER}]' + delay: '0' + description: 'The current state of the BGP peer.' + valuemap: + name: 'BGP peer status' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.entry.status + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Idle', + 'Connect', + 'Active', + 'OpenSent', + 'OpenConfirm', + 'Established' + ].indexOf(value); + + return idx !== -1 ? idx : 8; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'pan.pa440.bgp.peer.get[{#PEERGROUP}, {#PEERADDR}, {#PEER}]' + tags: + - tag: component + value: bgp + - tag: component + value: network + - tag: peer + value: '{#PEER}' + - tag: peer-address + value: '{#PEERADDR}' + - tag: peer-group + value: '{#PEERGROUP}' + trigger_prototypes: + - uuid: 6d336040133543ada2e916338a6f77eb + expression: '{$PAN.PA440.BGP.CONTROL:"{#PEER}"}=1 and last(/Palo Alto PA-440 by HTTP/pan.pa440.bgp.peer.status[{#PEERGROUP}, {#PEERADDR}, {#PEER}])<>5 and last(/Palo Alto PA-440 by HTTP/pan.pa440.bgp.peer.status[{#PEERGROUP}, {#PEERADDR}, {#PEER}])<>0' + name: 'PA-440: BGP peer [{#PEER}]: Session is not Established or Idle' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: HIGH + description: 'The session with the peer is not "Established" or "Idle".' + tags: + - tag: scope + value: availability + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + - type: JAVASCRIPT + parameters: + - | + var bgp_peers = JSON.parse(value), + result = []; + + if (bgp_peers.response.result && bgp_peers.response.result.entry) { + var peers = Array.isArray(bgp_peers.response.result.entry) ? bgp_peers.response.result.entry : [bgp_peers.response.result.entry]; + + result = peers.map(function (peer) { + return { + '{#PEER}': peer['@peer'], + '{#PEERGROUP}': peer['peer-group'], + '{#PEERADDR}': peer['peer-address'].replace(/:\d+$/, '') + } + }); + + return JSON.stringify(result); + } + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 72aa0f2e12cc48d7a11fcee0621e8450 + name: 'Device certificate discovery' + type: DEPENDENT + key: pan.pa440.certificate.device.discovery + delay: '0' + description: 'Discovers device certificate metrics. Note that superuser privileges are required to obtain the device certificate data.' + item_prototypes: + - uuid: 2c6a819bbab548d08ce78c9cb3a76be9 + name: 'Device certificate: Expires on' + type: DEPENDENT + key: 'pan.pa440.certificate.device.expires[{#SINGLETON}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The expiration date of the device certificate.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result[''device-certificate''][''not_valid_after'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.certificate.device.get + tags: + - tag: component + value: certificate + - uuid: 0f0be52887fa400d8a278047c7340975 + name: 'Device certificate: Expires in' + type: DEPENDENT + key: 'pan.pa440.certificate.device.expires_in[{#SINGLETON}]' + delay: '0' + units: s + description: 'The time in seconds until the device certificate expiration.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result[''device-certificate''][''seconds-to-expire'']' + master_item: + key: pan.pa440.certificate.device.get + tags: + - tag: component + value: certificate + trigger_prototypes: + - uuid: 90156f312ddb48498f5475539317bfa3 + expression: 'last(/Palo Alto PA-440 by HTTP/pan.pa440.certificate.device.expires_in[{#SINGLETON}])<{$PAN.PA440.CERT.DEVICE.EXPIRY.WARN}' + name: 'PA-440: Device certificate: Expires soon' + event_name: 'PA-440: Device certificate: Expires soon (less than {$PAN.PA440.CERT.DEVICE.EXPIRY.WARN} until it expires)' + opdata: 'Device certificate expires in: {ITEM.LASTVALUE}' + priority: WARNING + description: 'The device certificate will expire in less than `{$PAN.PA440.CERT.DEVICE.EXPIRY.WARN}`.' + tags: + - tag: scope + value: performance + master_item: + key: pan.pa440.certificate.device.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const dev_certificate = JSON.parse(value); + + if (dev_certificate.response.result && dev_certificate.response.result['device-certificate'] && dev_certificate.response.result['device-certificate'].status === 'success') { + return JSON.stringify([{'{#SINGLETON}': ''}]); + } + + return JSON.stringify([]); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: fbcd5fd8228045a5aebc41c3a1ee5d57 + name: 'Certificate discovery' + type: DEPENDENT + key: pan.pa440.certificates.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CERTNAME}' + value: '{$PAN.PA440.CERT.NAME.MATCHES}' + formulaid: A + - macro: '{#CERTNAME}' + value: '{$PAN.PA440.CERT.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#EXPIRES}' + value: Never + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Discovers certificates on the device. Only the certificates with an expiration date are discovered.' + item_prototypes: + - uuid: 027e22db808c4d399758ca0c7dda8c30 + name: 'Certificate [{#CERTNAME}]: Expires on' + type: DEPENDENT + key: 'pan.pa440.certificate.expires[{#CERTNAME}]' + delay: '0' + units: unixtime + description: 'The expiration date for the certificate.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.data[?(@[''@name''] == "{#CERTNAME}")][''expiry-epoch''].first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.certificate.get + tags: + - tag: component + value: certificate + trigger_prototypes: + - uuid: bb48cead5efb4979bfd7ae72131b56a3 + expression: '(last(/Palo Alto PA-440 by HTTP/pan.pa440.certificate.expires[{#CERTNAME}]) - now())<{$PAN.PA440.CERT.EXPIRY.WARN:"{#CERTNAME}"}' + name: 'PA-440: Certificate [{#CERTNAME}]: Expires soon' + event_name: 'PA-440: Certificate [{#CERTNAME}]: Expires soon (less than {$PAN.PA440.CERT.EXPIRY.WARN} until it expires)' + opdata: 'Certificate expires on: {ITEM.LASTVALUE}' + priority: WARNING + description: 'The certificate will expire in less than `{$PAN.PA440.CERT.EXPIRY.WARN:"{#CERTNAME}"}`.' + dependencies: + - name: 'PA-440: Certificate [{#CERTNAME}]: Has expired' + expression: '(last(/Palo Alto PA-440 by HTTP/pan.pa440.certificate.expires[{#CERTNAME}]) - now())<0' + tags: + - tag: scope + value: availability + - uuid: 8d546a0d064941439f5a603854e1f484 + expression: '(last(/Palo Alto PA-440 by HTTP/pan.pa440.certificate.expires[{#CERTNAME}]) - now())<0' + name: 'PA-440: Certificate [{#CERTNAME}]: Has expired' + priority: HIGH + description: 'The certificate has expired.' + tags: + - tag: scope + value: availability + master_item: + key: pan.pa440.certificate.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var certificates = JSON.parse(value), + result = []; + + result = certificates.response.data.map(function (certificate) { + return { + '{#CERTNAME}': certificate['@name'], + '{#EXPIRES}': certificate['expiry-epoch'] ? certificate['expiry-epoch'] : 'Never' + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 252cc5be29874b32b7f3cc45699345df + name: 'HA metric discovery' + type: DEPENDENT + key: pan.pa440.ha.discovery + delay: '0' + description: 'Discovers high availability metrics.' + item_prototypes: + - uuid: 1d681dfe12694efaa419dbb651a46341 + name: 'HA state reason' + type: DEPENDENT + key: 'pan.pa440.ha.local[state_reason{#SINGLETON}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + The reason for the current state of high availability. May be absent in the master item data in some cases; set to an empty string if not found. + + Information about high availability states: + https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/high-availability/ha-firewall-states + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.group[''local-info''][''state-reason'']' + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pan.pa440.ha.get + tags: + - tag: component + value: ha + - tag: component + value: local-ha + - uuid: 42a27d95b28e47949a1c19e9e4728622 + name: 'HA state' + type: DEPENDENT + key: 'pan.pa440.ha.local[state{#SINGLETON}]' + delay: '0' + description: | + The current state of high availability. + + Information about high availability states: + https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/high-availability/ha-firewall-states + valuemap: + name: 'HA state' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.group[''local-info''].state' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'initial', + 'active', + 'passive', + 'active-primary', + 'active-secondary', + 'tentative', + 'non-functional', + 'suspended' + ].indexOf(value); + + return idx !== -1 ? idx : 8; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pan.pa440.ha.get + tags: + - tag: component + value: ha + - tag: component + value: local-ha + trigger_prototypes: + - uuid: abc088274f3f4eb996cd00832cb0bfa7 + expression: | + (last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}])=1 and last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}],#2)=2) or + (last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}])=2 and last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}],#2)=1) or + (last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}])=3 and last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}],#2)=4) or + (last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}])=4 and last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}],#2)=3) + name: 'PA-440: HA state has been changed' + event_name: 'PA-440: HA state has been changed to "{ITEM.VALUE}"' + opdata: 'Current HA state: {ITEM.LASTVALUE}' + priority: HIGH + description: | + The high availability state has changed. The following state transitions are checked: + + 1. Active-Passive HA mode: + - "passive" > "active" + - "active" > "passive" + + 2. Active-Active HA mode: + - "active-secondary" > "active-primary" + - "active-primary" > "active-secondary" + + Information about high availability states: + https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/high-availability/ha-firewall-states + tags: + - tag: scope + value: availability + - uuid: e23d3e505d7245c3948eeddf070ed186 + name: 'HA peer state' + type: DEPENDENT + key: 'pan.pa440.ha.peer[state{#SINGLETON}]' + delay: '0' + description: | + The current peer state of high availability. + + Information about high availability states: + https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/high-availability/ha-firewall-states + valuemap: + name: 'HA state' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.group[''peer-info''].state' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'initial', + 'active', + 'passive', + 'active-primary', + 'active-secondary', + 'tentative', + 'non-functional', + 'suspended' + ].indexOf(value); + + return idx !== -1 ? idx : 8; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pan.pa440.ha.get + tags: + - tag: component + value: ha + - tag: component + value: peer-ha + - uuid: cea682854ccf4d8b81c75db57c92bc38 + name: 'HA configuration synchronization status' + type: DEPENDENT + key: 'pan.pa440.ha[config_sync_status{#SINGLETON}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current state of the running configuration synchronization.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.group[''running-sync'']' + master_item: + key: pan.pa440.ha.get + tags: + - tag: component + value: ha + trigger_prototypes: + - uuid: 58498c3e502240239687ae446b3ff81f + expression: 'count(/Palo Alto PA-440 by HTTP/pan.pa440.ha[config_sync_status{#SINGLETON}],{$PAN.PA440.HA.CONFIG_SYNC.THRESH},"iregexp","^(?:synchronized|synchronization in progress)$")=0' + name: 'PA-440: Configuration is not synchronized with HA peer' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: HIGH + description: 'This trigger indicates that the configuration cannot be synchronized with the HA peer. Please debug this manually by checking the logs (Monitor > Logs > System).' + tags: + - tag: scope + value: availability + - uuid: f7f29f1d68234eebbfb10c11cacc51e1 + name: 'HA mode' + type: DEPENDENT + key: 'pan.pa440.ha[mode{#SINGLETON}]' + delay: '0' + description: | + The current mode of high availability. Possible values: + + 0 - Active-Passive + 1 - Active-Active + 2 - Unknown + valuemap: + name: 'HA mode' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.group.mode + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'Active-Passive', + 'Active-Active', + ].indexOf(value); + + return idx !== -1 ? idx : 2; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: pan.pa440.ha.get + tags: + - tag: component + value: ha + trigger_prototypes: + - uuid: eff0a2435b98474eab352f796ea4811f + expression: 'last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}])=6 and length(last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state_reason{#SINGLETON}]))>0' + name: 'PA-440: HA is in "non-functional" state' + opdata: 'Current HA state: {ITEM.LASTVALUE}. State reason: {ITEM.LASTVALUE2}' + priority: HIGH + description: | + Error state due to a dataplane failure or a configuration mismatch such as: only one firewall configured for packet forwarding, VR sync, or QoS sync. + + In active/passive mode, all of the causes listed for the tentative state cause the non-functional state: + - Failure of a firewall. + - Failure of a monitored object (a link or path). + - The firewall leaves the suspended or non-functional state. + + Information about high availability states: + https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/high-availability/ha-firewall-states + tags: + - tag: scope + value: availability + - uuid: 98000f629d564d1096d5e5763caf772c + expression: 'last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}])=7 and not (find(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state_reason{#SINGLETON}],,"iregexp","^User requested$")=1 and {$PAN.PA440.HA.STATE.IGNORE_USER_SUSPENDED}=1)' + name: 'PA-440: HA is in "suspended" state' + opdata: 'Current HA state: {ITEM.LASTVALUE}. State reason: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: | + The device is disabled and won't pass data traffic; although HA communications still occur, the device doesn't participate in the HA election process. It can't move to a HA functional state without user intervention. + + The following case is excluded from the trigger's logic by default (can be changed by setting the `{$PAN.PA440.HA.STATE.IGNORE_USER_SUSPENDED}` macro value to "0"): the user suspends the device for HA manually. + + Information about high availability states: + https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/high-availability/ha-firewall-states + tags: + - tag: scope + value: availability + - uuid: dafe751acbb545ab8bb14358b7032a4e + expression: 'last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state{#SINGLETON}])=5 and length(last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.local[state_reason{#SINGLETON}]))>0' + name: 'PA-440: HA is in "tentative" state' + opdata: 'Current HA state: {ITEM.LASTVALUE}. State reason: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: | + State of a firewall (in an active/active configuration) caused by one of the following: + - Failure of a firewall. + - Failure of a monitored object (a link or path). + - The firewall leaves the suspended or non-functional state. + + A firewall in the tentative state synchronizes sessions and configurations from the peer. + + Information about high availability states: + https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/high-availability/ha-firewall-states + tags: + - tag: scope + value: availability + master_item: + key: pan.pa440.ha.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const ha_data = JSON.parse(value); + + if (ha_data.response.result.enabled === 'yes') { + return JSON.stringify([ + { + '{#SINGLETON}': '', + '{#HAMODE}': ha_data.response.result.group.mode + } + ]); + } + + return JSON.stringify([]); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + overrides: + - name: 'Do not create tentative state trigger for Active-Passive mode' + step: '1' + filter: + conditions: + - macro: '{#HAMODE}' + value: ^Active-Passive$ + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + value: 'HA is in "tentative" state' + discover: NO_DISCOVER + - uuid: d234577c40cc49c1a8e4bda7f4a75741 + name: 'HA link discovery' + type: DEPENDENT + key: pan.pa440.ha.links.discovery + delay: '0' + description: | + Discovers high availability link metrics. + + Information about high availability links: + https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/high-availability/ha-concepts/ha-links-and-backup-links + item_prototypes: + - uuid: 2e4374dd561b4c018e4a90acd6f19d27 + name: 'HA link [{#HALINK}]: Status' + type: DEPENDENT + key: 'pan.pa440.ha.peer.link.state[{#HALINK}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + The current state of the high availability link. + + Information about high availability links: + https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/high-availability/ha-concepts/ha-links-and-backup-links + valuemap: + name: 'HA state' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.group[''peer-info''][''{#HALINK}''][''conn-status'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pan.pa440.ha.get + tags: + - tag: component + value: ha + - tag: component + value: ha-link + - tag: component + value: peer-ha + - tag: ha-link + value: '{#HALINK}' + trigger_prototypes: + - uuid: a70728ec16c14f528ddcfcefdb1b4c94 + expression: 'last(/Palo Alto PA-440 by HTTP/pan.pa440.ha.peer.link.state[{#HALINK}])="down"' + name: 'PA-440: HA link [{#HALINK}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: HIGH + description: 'The status of the high availability link is "down".' + tags: + - tag: scope + value: availability + master_item: + key: pan.pa440.ha.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var ha_data = JSON.parse(value), + result = []; + + if (ha_data.response.result.group['peer-info']) { + for (var link in ha_data.response.result.group['peer-info']) { + if (/^conn-ha\d+(-backup)?$/.test(link)){ + result.push({'{#HALINK}': link}); + } + } + } + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 77eb005985d24e8bbe2ca56ea7c82f86 + name: 'Hardware network interface discovery' + type: HTTP_AGENT + key: pan.pa440.if.hw.discovery + delay: 1h + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$PAN.PA440.IF.HW.IFNAME.MATCHES}' + formulaid: A + - macro: '{#IFNAME}' + value: '{$PAN.PA440.IF.HW.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovers hardware network interfaces.' + item_prototypes: + - uuid: 521ba4a790d745f588d3a53dd7d93e72 + name: 'Interface [{#IFNAME}]: Bits received, per second' + type: DEPENDENT + key: 'pan.pa440.if.hw.bits.in.rate[{#IFNAME}]' + delay: '0' + units: bps + description: 'The number of bits received per second by the interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.ifnet.counters.hw.entry.port[''rx-bytes'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: 'pan.pa440.if.hw.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: hardware + - uuid: f399ad09d3a746b6a6650355e285bb3a + name: 'Interface [{#IFNAME}]: Bits sent, per second' + type: DEPENDENT + key: 'pan.pa440.if.hw.bits.out.rate[{#IFNAME}]' + delay: '0' + units: bps + description: 'The number of bits sent per second by the interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.ifnet.counters.hw.entry.port[''tx-bytes'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: 'pan.pa440.if.hw.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: hardware + - uuid: 19bcb77f16e44adbae1abd384b7c8105 + name: 'Interface [{#IFNAME}]: Get data' + type: HTTP_AGENT + key: 'pan.pa440.if.hw.get[{#IFNAME}]' + delay: 3m + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the interface statistics.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '{#IFNAME}' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: component + value: raw + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: hardware + - uuid: bca68b06a8114e9da005c59afc32ef1e + name: 'Interface [{#IFNAME}]: Inbound packets discarded, per second' + type: DEPENDENT + key: 'pan.pa440.if.hw.packets.in.discards.rate[{#IFNAME}]' + delay: '0' + description: 'The number of inbound packets per second which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.ifnet.counters.hw.entry.port[''rx-discards'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pan.pa440.if.hw.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: hardware + - uuid: d80bddb621f94d7085e6dbc64f45de66 + name: 'Interface [{#IFNAME}]: Inbound packets with errors, per second' + type: DEPENDENT + key: 'pan.pa440.if.hw.packets.in.errors.rate[{#IFNAME}]' + delay: '0' + description: 'The number of inbound packets per second that contained errors preventing them from being deliverable to a higher-layer protocol.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.ifnet.counters.hw.entry.port[''rx-error'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pan.pa440.if.hw.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: hardware + - uuid: 5e79436836ba4871af0d67cca08db379 + name: 'Interface [{#IFNAME}]: Outbound packets with errors, per second' + type: DEPENDENT + key: 'pan.pa440.if.hw.packets.out.errors.rate[{#IFNAME}]' + delay: '0' + description: 'The number of outbound packets per second that contained errors preventing them from being deliverable to a higher-layer protocol.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.result.ifnet.counters.hw.entry.port[''tx-error'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pan.pa440.if.hw.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: hardware + - uuid: 6969f818f52c4349b16b543879e16195 + name: 'Interface [{#IFNAME}]: Speed' + type: DEPENDENT + key: 'pan.pa440.if.hw.speed[{#IFNAME}]' + delay: '0' + units: bps + description: 'The current bandwidth of the interface. The item is created only for interfaces that report the actual speed in units of 1,000,000 bits.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.hw.speed + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'pan.pa440.if.hw.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: hardware + - uuid: f74af7a4b22f448fa3cc0b0e3a19ff83 + name: 'Interface [{#IFNAME}]: Status' + type: DEPENDENT + key: 'pan.pa440.if.hw.status[{#IFNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current state of the interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.hw.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'pan.pa440.if.hw.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: hardware + trigger_prototypes: + - uuid: a32d21255ee641329da2e64900862d83 + expression: '{$PAN.PA440.IF.HW.CONTROL:"{#IFNAME}"}=1 and last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}])="down" and (last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}])<>last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}])<>"down" or {$PAN.PA440.IF.HW.CONTROL:"{#IFNAME}"}=0' + name: 'PA-440: Interface [{#IFNAME}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operational status is "down". + 2. `{$PAN.PA440.IF.HW.CONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status has changed to "down" from some other state (it does not fire for "eternal off" interfaces). + + WARNING: if closed manually - it will not fire again on the next poll because of `last(/TEMPLATE_NAME/METRIC)<>last(/TEMPLATE_NAME/METRIC,#2)`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + trigger_prototypes: + - uuid: e4ae8d6b2c9b4962afdad9dfd93f2554 + expression: | + (avg(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.bits.in.rate[{#IFNAME}],15m)>({$PAN.PA440.IF.HW.UTIL.MAX:"{#IFNAME}"}/100)*last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.speed[{#IFNAME}]) or + avg(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.bits.out.rate[{#IFNAME}],15m)>({$PAN.PA440.IF.HW.UTIL.MAX:"{#IFNAME}"}/100)*last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.speed[{#IFNAME}])) and + last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.speed[{#IFNAME}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.bits.in.rate[{#IFNAME}],15m)<(({$PAN.PA440.IF.HW.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.speed[{#IFNAME}]) and + avg(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.bits.out.rate[{#IFNAME}],15m)<(({$PAN.PA440.IF.HW.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.speed[{#IFNAME}]) + name: 'PA-440: Interface [{#IFNAME}]: High bandwidth usage' + event_name: 'PA-440: Interface [{#IFNAME}]: High bandwidth usage (>{$PAN.PA440.IF.HW.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'PA-440: Interface [{#IFNAME}]: Link down' + expression: '{$PAN.PA440.IF.HW.CONTROL:"{#IFNAME}"}=1 and last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}])="down" and (last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}])<>last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}],#2))' + recovery_expression: 'last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}])<>"down" or {$PAN.PA440.IF.HW.CONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 9056fb0e68c94a408a5c77d3d8de28fd + expression: | + min(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.packets.in.errors.rate[{#IFNAME}],5m)>{$PAN.PA440.IF.HW.ERRORS.WARN:"{#IFNAME}"} + or min(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.packets.out.errors.rate[{#IFNAME}],5m)>{$PAN.PA440.IF.HW.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.packets.in.errors.rate[{#IFNAME}],5m)<{$PAN.PA440.IF.HW.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.packets.out.errors.rate[{#IFNAME}],5m)<{$PAN.PA440.IF.HW.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'PA-440: Interface [{#IFNAME}]: High error rate' + event_name: 'PA-440: Interface [{#IFNAME}]: High error rate (>{$PAN.PA440.IF.HW.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'Errors in: {ITEM.LASTVALUE}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$PAN.PA440.IF.HW.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'PA-440: Interface [{#IFNAME}]: Link down' + expression: '{$PAN.PA440.IF.HW.CONTROL:"{#IFNAME}"}=1 and last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}])="down" and (last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}])<>last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}],#2))' + recovery_expression: 'last(/Palo Alto PA-440 by HTTP/pan.pa440.if.hw.status[{#IFNAME}])<>"down" or {$PAN.PA440.IF.HW.CONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 8b770f2163c747c1a5ce35586235d266 + name: 'Interface [{#IFNAME}]: Network traffic (bits, per second)' + graph_items: + - color: 199C0D + item: + host: 'Palo Alto PA-440 by HTTP' + key: 'pan.pa440.if.hw.bits.in.rate[{#IFNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Palo Alto PA-440 by HTTP' + key: 'pan.pa440.if.hw.bits.out.rate[{#IFNAME}]' + - uuid: 01523de30af74fe7bb11354c13ef01cd + name: 'Interface [{#IFNAME}]: Network traffic (packets, per second)' + graph_items: + - color: 199C0D + item: + host: 'Palo Alto PA-440 by HTTP' + key: 'pan.pa440.if.hw.packets.in.discards.rate[{#IFNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Palo Alto PA-440 by HTTP' + key: 'pan.pa440.if.hw.packets.in.errors.rate[{#IFNAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'Palo Alto PA-440 by HTTP' + key: 'pan.pa440.if.hw.packets.out.errors.rate[{#IFNAME}]' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: 'hardware' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + - type: JAVASCRIPT + parameters: + - | + var interfaces = JSON.parse(value), + result; + + if (Array.isArray(interfaces.response.result.hw.entry) && interfaces.response.result.hw.entry.length > 0) { + result = interfaces.response.result.hw.entry.map(function (interface) { + return { + '{#IFNAME}': interface.name, + '{#IFSPEED}': interface.speed + }; + }); + + return JSON.stringify(result); + } + + return JSON.stringify([]); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'Do not create speed item and trigger if not supported' + step: '1' + filter: + conditions: + - macro: '{#IFSPEED}' + value: \d+ + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Speed + discover: NO_DISCOVER + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'High bandwidth usage' + discover: NO_DISCOVER + - uuid: 0328c545f98e4e2e90648b5990d365c7 + name: 'Logical network interface discovery' + type: HTTP_AGENT + key: pan.pa440.if.sw.discovery + delay: 1h + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$PAN.PA440.IF.SW.IFNAME.MATCHES}' + formulaid: A + - macro: '{#IFNAME}' + value: '{$PAN.PA440.IF.SW.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFZONE}' + value: '{$PAN.PA440.IF.SW.IFZONE.MATCHES}' + formulaid: C + - macro: '{#IFZONE}' + value: '{$PAN.PA440.IF.SW.IFZONE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#VSYS}' + value: '{$PAN.PA440.IF.SW.VSYS.MATCHES}' + formulaid: E + - macro: '{#VSYS}' + value: '{$PAN.PA440.IF.SW.VSYS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovers logical network interfaces.' + item_prototypes: + - uuid: 72bf5045ffb1495bb4ac3c383d8ce4b7 + name: 'VSYS [{#VSYS}]: Interface [{#IFNAME}]: Bits received, per second' + type: DEPENDENT + key: 'pan.pa440.if.sw.bits.in.rate[{#VSYS}, {#IFNAME}]' + delay: '0' + units: bps + description: 'The number of bits received per second by the interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.ifnet.counters.ifnet.entry.ibytes + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: 'pan.pa440.if.sw.get[{#VSYS}, {#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: logical + - tag: vsys + value: '{#VSYS}' + - uuid: 90351d2ad6f345908fec41a175971d12 + name: 'VSYS [{#VSYS}]: Interface [{#IFNAME}]: Bits sent, per second' + type: DEPENDENT + key: 'pan.pa440.if.sw.bits.out.rate[{#VSYS}, {#IFNAME}]' + delay: '0' + units: bps + description: 'The number of bits sent by the interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.ifnet.counters.ifnet.entry.obytes + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: 'pan.pa440.if.sw.get[{#VSYS}, {#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: logical + - tag: vsys + value: '{#VSYS}' + - uuid: b7bc2017a9f240c793d526612738e0f8 + name: 'VSYS [{#VSYS}]: Interface [{#IFNAME}]: Get data' + type: HTTP_AGENT + key: 'pan.pa440.if.sw.get[{#VSYS}, {#IFNAME}]' + delay: 3m + history: '0' + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$PAN.PA440.USER}' + password: '{$PAN.PA440.PASSWORD}' + description: 'Get the interface statistics.' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: '{#IFNAME}' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: component + value: raw + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: logical + - tag: vsys + value: '{#VSYS}' + - uuid: 78cda9d3e61e4862aefc617486145a88 + name: 'VSYS [{#VSYS}]: Interface [{#IFNAME}]: Inbound packets dropped, per second' + type: DEPENDENT + key: 'pan.pa440.if.sw.packets.in.drops.rate[{#VSYS}, {#IFNAME}]' + delay: '0' + description: 'The number of inbound packets per second which were chosen to be dropped even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.ifnet.counters.ifnet.entry.idrops + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pan.pa440.if.sw.get[{#VSYS}, {#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: logical + - tag: vsys + value: '{#VSYS}' + - uuid: d18f406d5a02460881abcedc62ceab22 + name: 'VSYS [{#VSYS}]: Interface [{#IFNAME}]: Inbound packets with errors, per second' + type: DEPENDENT + key: 'pan.pa440.if.sw.packets.in.errors.rate[{#VSYS}, {#IFNAME}]' + delay: '0' + description: 'The number of inbound packets per second that contained errors preventing them from being deliverable to a higher-layer protocol.' + preprocessing: + - type: JSONPATH + parameters: + - $.response.result.ifnet.counters.ifnet.entry.ierrors + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pan.pa440.if.sw.get[{#VSYS}, {#IFNAME}]' + tags: + - tag: component + value: interface + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - tag: interface-type + value: logical + - tag: vsys + value: '{#VSYS}' + trigger_prototypes: + - uuid: 0d56493b020a42e2b967c183384437ac + expression: 'min(/Palo Alto PA-440 by HTTP/pan.pa440.if.sw.packets.in.errors.rate[{#VSYS}, {#IFNAME}],5m)>{$PAN.PA440.IF.SW.ERRORS.WARN:"{#IFNAME}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Palo Alto PA-440 by HTTP/pan.pa440.if.sw.packets.in.errors.rate[{#VSYS}, {#IFNAME}],5m)<{$PAN.PA440.IF.SW.ERRORS.WARN:"{#IFNAME}"}*0.8' + name: 'PA-440: VSYS [{#VSYS}]: Interface [{#IFNAME}]: High error rate' + event_name: 'PA-440: VSYS [{#VSYS}]: Interface [{#IFNAME}]: High error rate (>{$PAN.PA440.IF.SW.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'Errors in: {ITEM.LASTVALUE}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$PAN.PA440.IF.SW.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 2f6b291347914c36b106b6365eb937e9 + name: 'VSYS [{#VSYS}]: Interface [{#IFNAME}]: Network traffic (bits, per second)' + graph_items: + - color: 199C0D + item: + host: 'Palo Alto PA-440 by HTTP' + key: 'pan.pa440.if.sw.bits.in.rate[{#VSYS}, {#IFNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Palo Alto PA-440 by HTTP' + key: 'pan.pa440.if.sw.bits.out.rate[{#VSYS}, {#IFNAME}]' + - uuid: ee8dff49f3174c7ab056dc7e4232c9ae + name: 'VSYS [{#VSYS}]: Interface [{#IFNAME}]: Network traffic (packets, per second)' + graph_items: + - color: 199C0D + item: + host: 'Palo Alto PA-440 by HTTP' + key: 'pan.pa440.if.sw.packets.in.drops.rate[{#VSYS}, {#IFNAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Palo Alto PA-440 by HTTP' + key: 'pan.pa440.if.sw.packets.in.errors.rate[{#VSYS}, {#IFNAME}]' + timeout: '{$PAN.PA440.TIMEOUT}' + url: '{$PAN.PA440.API.URL}' + query_fields: + - name: type + value: op + - name: cmd + value: 'logical' + status_codes: '' + http_proxy: '{$PAN.PA440.HTTP_PROXY}' + preprocessing: + - type: XML_TO_JSON + parameters: + - '' + - type: JAVASCRIPT + parameters: + - | + var interfaces = JSON.parse(value), + result; + + if (Array.isArray(interfaces.response.result.ifnet.entry) && interfaces.response.result.ifnet.entry.length > 0) { + result = interfaces.response.result.ifnet.entry.map(function (interface) { + return { + '{#IFNAME}': interface.name, + '{#VSYS}': interface.vsys, + '{#IFZONE}': interface.zone !== null ? interface.zone : "null" + }; + }); + + return JSON.stringify(result); + } + + return JSON.stringify([]); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'Add zone tag' + step: '1' + filter: + conditions: + - macro: '{#IFZONE}' + value: ^null$ + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: .+ + tags: + - tag: zone + value: '{#IFZONE}' + - uuid: 337aa791737645bfa8d5fcd5958651ab + name: 'License discovery' + type: DEPENDENT + key: pan.pa440.licenses.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DESCRIPTION}' + value: '{$PAN.PA440.LICENSE.DESC.MATCHES}' + formulaid: A + - macro: '{#DESCRIPTION}' + value: '{$PAN.PA440.LICENSE.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#EXPIRES}' + value: Never + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#FEATURE}' + value: '{$PAN.PA440.LICENSE.FEATURE.MATCHES}' + formulaid: D + - macro: '{#FEATURE}' + value: '{$PAN.PA440.LICENSE.FEATURE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: E + description: 'Discovers licenses installed on the device. Only the licenses with an expiration date are discovered.' + item_prototypes: + - uuid: 1ba835176e0d4adc8b7dc7b87926df3d + name: 'License [{#FEATURE}]: Expired' + type: DEPENDENT + key: 'pan.pa440.license.expired[{#FEATURE}]' + delay: '0' + description: 'Indicates whether the license `{#DESCRIPTION}` has expired.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - '$.response.data[?(@.feature == "{#FEATURE}")].expired.first()' + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.licenses.get + tags: + - tag: component + value: license + trigger_prototypes: + - uuid: 7afa85f66ba8421d89dde638c55ac051 + expression: 'last(/Palo Alto PA-440 by HTTP/pan.pa440.license.expired[{#FEATURE}])=1' + name: 'PA-440: License [{#FEATURE}]: Has expired' + opdata: 'Current license state: {ITEM.LASTVALUE}' + priority: HIGH + description: 'The license `{#DESCRIPTION}` has expired.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 0ac5de4e64224f1a994690d2d6662a04 + name: 'License [{#FEATURE}]: Expires on' + type: DEPENDENT + key: 'pan.pa440.license.expires[{#FEATURE}]' + delay: '0' + units: unixtime + description: 'The expiration date for the license `{#DESCRIPTION}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.data[?(@.feature == "{#FEATURE}")].expires.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: pan.pa440.licenses.get + tags: + - tag: component + value: license + trigger_prototypes: + - uuid: 5613f1f1fa5943669eb07010e04dee80 + expression: '(last(/Palo Alto PA-440 by HTTP/pan.pa440.license.expires[{#FEATURE}]) - now())<{$PAN.PA440.LICENSE.EXPIRY.WARN:"{#FEATURE}"}' + name: 'PA-440: License [{#FEATURE}]: Expires soon' + event_name: 'PA-440: License [{#FEATURE}]: Expires soon (less than {$PAN.PA440.LICENSE.EXPIRY.WARN:"{#FEATURE}"} until it expires)' + opdata: 'License expires on: {ITEM.LASTVALUE}' + priority: WARNING + description: 'The license will expire in less than `{$PAN.PA440.LICENSE.EXPIRY.WARN:"{#FEATURE}"}`.' + tags: + - tag: scope + value: availability + master_item: + key: pan.pa440.licenses.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var licenses = JSON.parse(value), + result = []; + + result = licenses.response.data.map(function (license) { + return { + '{#FEATURE}': license.feature, + '{#DESCRIPTION}': license.description, + '{#EXPIRES}': license.expires + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: ddce2171fab146b180616efe16884fc7 + name: 'OSPF neighbor discovery' + type: DEPENDENT + key: pan.pa440.ospf.neighbor.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NEIGHBORADDR}' + value: '{$PAN.PA440.OSPF.NEIGHBOR.ADDR.MATCHES}' + formulaid: A + - macro: '{#NEIGHBORADDR}' + value: '{$PAN.PA440.OSPF.NEIGHBOR.ADDR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NEIGHBORAREA}' + value: '{$PAN.PA440.OSPF.NEIGHBOR.AREA.MATCHES}' + formulaid: C + - macro: '{#NEIGHBORAREA}' + value: '{$PAN.PA440.OSPF.NEIGHBOR.AREA.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + enabled_lifetime_type: DISABLE_NEVER + description: 'Discovers OSPF neighbors.' + item_prototypes: + - uuid: 2d7fccc0df1141c28bf28a7c2553237e + name: 'OSPF neighbor [{#NEIGHBORADDR}]: Status' + type: DEPENDENT + key: 'pan.pa440.ospf.neighbor.status[{#NEIGHBORAREA}, {#NEIGHBORADDR}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current state of the OSPF neighbor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.data[?(@[''neighbor-address''] == "{#NEIGHBORADDR}")].status.first()' + master_item: + key: pan.pa440.ospf.neighbors.get + tags: + - tag: component + value: network + - tag: component + value: ospf + - tag: neighbor-address + value: '{#NEIGHBORADDR}' + - tag: neighbor-area + value: '{#NEIGHBORAREA}' + trigger_prototypes: + - uuid: 25be340cf3f446dda2497627bb228e8b + expression: '{$PAN.PA440.OSPF.CONTROL:"{#NEIGHBORADDR}"}=1 and nodata(/Palo Alto PA-440 by HTTP/pan.pa440.ospf.neighbor.status[{#NEIGHBORAREA}, {#NEIGHBORADDR}],5m)=1' + name: 'PA-440: OSPF neighbor [{#NEIGHBORADDR}]: Neighbor is not found anymore' + priority: HIGH + description: 'The neighbor is not found anymore and the neighborship is gone. Please investigate if this is planned.' + tags: + - tag: scope + value: availability + - uuid: b8b45278b4e8421b8c7289dfb54f331e + expression: '{$PAN.PA440.OSPF.CONTROL:"{#NEIGHBORADDR}"}=1 and last(/Palo Alto PA-440 by HTTP/pan.pa440.ospf.neighbor.status[{#NEIGHBORAREA}, {#NEIGHBORADDR}])<>"full" and last(/Palo Alto PA-440 by HTTP/pan.pa440.ospf.neighbor.status[{#NEIGHBORAREA}, {#NEIGHBORADDR}])<>"2way"' + name: 'PA-440: OSPF neighbor [{#NEIGHBORADDR}]: Status is not full or 2way' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: HIGH + description: 'The status of the neighbor is not "full" or "2way". This may indicate issues with the OSPF session.' + tags: + - tag: scope + value: availability + master_item: + key: pan.pa440.ospf.neighbors.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var ospf_neighbors = JSON.parse(value), + result = []; + + result = ospf_neighbors.response.data.map(function (neighbor) { + return { + '{#NEIGHBORADDR}': neighbor['neighbor-address'], + '{#NEIGHBORAREA}': neighbor['area-id'] + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 3f466e987bb841b2a941feeaa6551f59 + name: 'OSPFv3 neighbor discovery' + type: DEPENDENT + key: pan.pa440.ospfv3.neighbor.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NEIGHBORADDR}' + value: '{$PAN.PA440.OSPFV3.NEIGHBOR.ADDR.MATCHES}' + formulaid: A + - macro: '{#NEIGHBORADDR}' + value: '{$PAN.PA440.OSPFV3.NEIGHBOR.ADDR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NEIGHBORAREA}' + value: '{$PAN.PA440.OSPFV3.NEIGHBOR.AREA.MATCHES}' + formulaid: C + - macro: '{#NEIGHBORAREA}' + value: '{$PAN.PA440.OSPFV3.NEIGHBOR.AREA.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + enabled_lifetime_type: DISABLE_NEVER + description: 'Discovers OSPFv3 neighbors.' + item_prototypes: + - uuid: 4a227a5e31d34affb5008d6018f711de + name: 'OSPFv3 neighbor [{#NEIGHBORADDR}]: Status' + type: DEPENDENT + key: 'pan.pa440.ospfv3.neighbor.status[{#NEIGHBORAREA}, {#NEIGHBORADDR}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current status of the OSPFv3 neighbor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.response.data[?(@[''neighbor-link-local''] == "{#NEIGHBORADDR}")].state.first()' + master_item: + key: pan.pa440.ospfv3.neighbors.get + tags: + - tag: component + value: network + - tag: component + value: ospfv3 + - tag: neighbor-address + value: '{#NEIGHBORADDR}' + - tag: neighbor-area + value: '{#NEIGHBORAREA}' + trigger_prototypes: + - uuid: d554fa457f5549d5ae8f991abc4841f4 + expression: '{$PAN.PA440.OSPFV3.CONTROL:"{#NEIGHBORADDR}"}=1 and nodata(/Palo Alto PA-440 by HTTP/pan.pa440.ospfv3.neighbor.status[{#NEIGHBORAREA}, {#NEIGHBORADDR}],5m)=1' + name: 'PA-440: OSPFv3 neighbor [{#NEIGHBORADDR}]: Neighbor is not found anymore' + priority: HIGH + description: 'The neighbor is not found anymore and the neighborship is gone. Please investigate if this is planned.' + tags: + - tag: scope + value: availability + - uuid: d05690d42a264dffa07f33983bc85f59 + expression: '{$PAN.PA440.OSPFV3.CONTROL:"{#NEIGHBORADDR}"}=1 and last(/Palo Alto PA-440 by HTTP/pan.pa440.ospfv3.neighbor.status[{#NEIGHBORAREA}, {#NEIGHBORADDR}])<>"full" and last(/Palo Alto PA-440 by HTTP/pan.pa440.ospfv3.neighbor.status[{#NEIGHBORAREA}, {#NEIGHBORADDR}])<>"2way"' + name: 'PA-440: OSPFv3 neighbor [{#NEIGHBORADDR}]: Status is not full or 2way' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: HIGH + description: 'The status of the neighbor is not "full" or "2way". This may indicate issues with the OSPF session.' + tags: + - tag: scope + value: availability + master_item: + key: pan.pa440.ospfv3.neighbors.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var ospfv3_neighbors = JSON.parse(value), + result = []; + + result = ospfv3_neighbors.response.data.map(function (neighbor) { + return { + '{#NEIGHBORADDR}': neighbor['neighbor-link-local'], + '{#NEIGHBORAREA}': neighbor['area-id'] + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: network + - tag: target + value: pa-440 + - tag: target + value: paloalto + macros: + - macro: '{$PAN.PA440.API.URL}' + description: 'The firewall XML API endpoint in the format `://[:port]/api` (port is optional).' + - macro: '{$PAN.PA440.BGP.CONTROL}' + value: '1' + description: 'The BGP session triggers will fire only for peers where the context macro equals "1".' + - macro: '{$PAN.PA440.BGP.PEER.GROUP.MATCHES}' + value: .+ + description: 'The BGP peer group regex filter to use in BGP peer discovery - for including.' + - macro: '{$PAN.PA440.BGP.PEER.GROUP.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The BGP peer group regex filter to use in BGP peer discovery - for excluding.' + - macro: '{$PAN.PA440.BGP.PEER.NAME.MATCHES}' + value: .+ + description: 'The BGP peer name regex filter to use in BGP peer discovery - for including.' + - macro: '{$PAN.PA440.BGP.PEER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The BGP peer name regex filter to use in BGP peer discovery - for excluding.' + - macro: '{$PAN.PA440.CERT.DEVICE.EXPIRY.WARN}' + value: 7d + description: 'The time threshold until the device certificate expires; used in the device certificate expiry trigger. Can be set to an evaluation period in seconds (time suffixes can be used).' + - macro: '{$PAN.PA440.CERT.EXPIRY.WARN}' + value: 7d + description: 'The time threshold until the certificate expires; used in the certificate expiry trigger. Can be set to an evaluation period in seconds (time suffixes can be used). Can be used with the certificate name as context.' + - macro: '{$PAN.PA440.CERT.NAME.MATCHES}' + value: .+ + description: 'The certificate name regex filter to use in certificate discovery - for including.' + - macro: '{$PAN.PA440.CERT.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The certificate name regex filter to use in certificate discovery - for excluding.' + - macro: '{$PAN.PA440.HA.CONFIG_SYNC.THRESH}' + value: '#1' + description: 'The threshold for the configuration synchronization trigger. Can be set to an evaluation period in seconds (time suffixes can be used) or an evaluation range of the latest collected values (if preceded by a hash mark).' + - macro: '{$PAN.PA440.HA.STATE.IGNORE_USER_SUSPENDED}' + value: '1' + description: 'Controls whether the HA "suspended" state trigger should fire if the state is caused by the user request. "1" - ignored, "0" - not ignored.' + - macro: '{$PAN.PA440.HTTP_PROXY}' + description: 'The HTTP proxy for HTTP agent items (set if needed). If the macro is empty, then no proxy is used.' + - macro: '{$PAN.PA440.IF.HW.CONTROL}' + value: '1' + description: 'The link status triggers will fire only for hardware interfaces where the context macro equals "1".' + - macro: '{$PAN.PA440.IF.HW.ERRORS.WARN}' + value: '2' + description: 'The warning threshold of the packet error rate for hardware interfaces. Can be used with the hardware interface name as context.' + - macro: '{$PAN.PA440.IF.HW.IFNAME.MATCHES}' + value: .+ + description: 'The interface name regex filter to use in hardware interface discovery - for including.' + - macro: '{$PAN.PA440.IF.HW.IFNAME.NOT_MATCHES}' + value: '^(?:tunnel|vlan|loopback)$' + description: 'The interface name regex filter to use in hardware interface discovery - for excluding.' + - macro: '{$PAN.PA440.IF.HW.UTIL.MAX}' + value: '90' + description: 'The threshold in the hardware interface utilization triggers.' + - macro: '{$PAN.PA440.IF.SW.ERRORS.WARN}' + value: '2' + description: 'The warning threshold of the packet error rate for logical interfaces. Can be used with the logical interface name as context.' + - macro: '{$PAN.PA440.IF.SW.IFNAME.MATCHES}' + value: .+ + description: 'The interface name regex filter to use in logical interface discovery - for including.' + - macro: '{$PAN.PA440.IF.SW.IFNAME.NOT_MATCHES}' + value: '^(?:tunnel|vlan|loopback)$' + description: 'The interface name regex filter to use in logical interface discovery - for excluding.' + - macro: '{$PAN.PA440.IF.SW.IFZONE.MATCHES}' + value: .+ + description: 'The interface zone name regex filter to use in logical interface discovery - for including.' + - macro: '{$PAN.PA440.IF.SW.IFZONE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The interface zone name regex filter to use in logical interface discovery - for excluding.' + - macro: '{$PAN.PA440.IF.SW.VSYS.MATCHES}' + value: .+ + description: 'The interface virtual system name regex filter to use in logical interface discovery - for including.' + - macro: '{$PAN.PA440.IF.SW.VSYS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The interface virtual system name regex filter to use in logical interface discovery - for excluding.' + - macro: '{$PAN.PA440.LICENSE.DESC.MATCHES}' + value: .+ + description: 'The license feature description regex filter to use in license discovery - for including.' + - macro: '{$PAN.PA440.LICENSE.DESC.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The license feature description regex filter to use in license discovery - for excluding.' + - macro: '{$PAN.PA440.LICENSE.EXPIRY.WARN}' + value: 7d + description: 'The time threshold until the license expires; used in the license expiry trigger. Can be set to an evaluation period in seconds (time suffixes can be used). Can be used with the license feature name as context.' + - macro: '{$PAN.PA440.LICENSE.FEATURE.MATCHES}' + value: .+ + description: 'The license feature name regex filter to use in license discovery - for including.' + - macro: '{$PAN.PA440.LICENSE.FEATURE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The license feature name regex filter to use in license discovery - for excluding.' + - macro: '{$PAN.PA440.OSPF.CONTROL}' + value: '1' + description: 'The OSPF neighbor triggers will fire only for neighbors where the context macro equals "1".' + - macro: '{$PAN.PA440.OSPF.NEIGHBOR.ADDR.MATCHES}' + value: .+ + description: 'The OSPF neighbor address regex filter to use in OSPF neighbor discovery - for including.' + - macro: '{$PAN.PA440.OSPF.NEIGHBOR.ADDR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The OSPF neighbor address regex filter to use in OSPF neighbor discovery - for excluding.' + - macro: '{$PAN.PA440.OSPF.NEIGHBOR.AREA.MATCHES}' + value: .+ + description: 'The OSPF neighbor area regex filter to use in OSPF neighbor discovery - for including.' + - macro: '{$PAN.PA440.OSPF.NEIGHBOR.AREA.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The OSPF neighbor area regex filter to use in OSPF neighbor discovery - for excluding.' + - macro: '{$PAN.PA440.OSPFV3.CONTROL}' + value: '1' + description: 'The OSPFv3 neighbor triggers will fire only for neighbors where the context macro equals "1".' + - macro: '{$PAN.PA440.OSPFV3.NEIGHBOR.ADDR.MATCHES}' + value: .+ + description: 'The OSPFv3 neighbor address regex filter to use in OSPFv3 neighbor discovery - for including.' + - macro: '{$PAN.PA440.OSPFV3.NEIGHBOR.ADDR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The OSPFv3 neighbor address regex filter to use in OSPFv3 neighbor discovery - for excluding.' + - macro: '{$PAN.PA440.OSPFV3.NEIGHBOR.AREA.MATCHES}' + value: .+ + description: 'The OSPFv3 neighbor area regex filter to use in OSPFv3 neighbor discovery - for including.' + - macro: '{$PAN.PA440.OSPFV3.NEIGHBOR.AREA.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'The OSPFv3 neighbor area regex filter to use in OSPFv3 neighbor discovery - for excluding.' + - macro: '{$PAN.PA440.PASSWORD}' + type: SECRET_TEXT + description: 'The password of the user that is used for monitoring.' + - macro: '{$PAN.PA440.TIMEOUT}' + value: 15s + description: 'The timeout threshold for the HTTP items that retrieve data from the API.' + - macro: '{$PAN.PA440.USER}' + value: zbx_monitor + description: 'The name of the user that is used for monitoring.' + dashboards: + - uuid: e5df35b446eb4ad8a5b831595505ba82 + name: 'PA-440: Overview' + auto_start: 'NO' + pages: + - name: 'PA-440: Overview' + widgets: + - type: item + name: 'Host name' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Host name' + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.hostname + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'App-ID version' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'App-ID version' + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.app_id.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'CPU temperature' + 'y': '6' + width: '9' + height: '4' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'CPU temperature' + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_size + value: '13' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.cpu.temp + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Management Plane: CPU utilization' + 'y': '10' + width: '9' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: | + Management Plane: + CPU utilization + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.management_plane.cpu.util + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Data Plane: CPU utilization' + 'y': '13' + width: '9' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: | + Data Plane: + CPU utilization + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.data_plane.cpu.util + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Session table utilization' + 'y': '16' + width: '9' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: | + Session table + utilization + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.sessions.table_util + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_size + value: '35' + - type: svggraph + name: 'CPU temperature' + x: '9' + 'y': '6' + width: '63' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 33CD35 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.cpu.temp + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: CMATO + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'CPU utilization' + x: '9' + 'y': '10' + width: '63' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 33CD35 + - type: STRING + name: ds.0.color.1 + value: 1976D2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.data_plane.cpu.util + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.management_plane.cpu.util + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: UZDOW + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: Sessions + x: '9' + 'y': '16' + width: '63' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 33CD35 + - type: STRING + name: ds.0.color.1 + value: 1976D2 + - type: STRING + name: ds.0.color.2 + value: FF465C + - type: STRING + name: ds.0.color.3 + value: B39DDB + - type: STRING + name: ds.0.color.4 + value: 546E7A + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.sessions.active.total + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.sessions.icmp.active + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.sessions.supported.total + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.sessions.tcp.active + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.sessions.udp.active + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: YBKLR + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: item + name: Uptime + x: '18' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: Uptime + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.uptime + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Global Protect Client Package version' + x: '18' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Global Protect Client Package version' + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.gp.client.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'PAN-OS version' + x: '36' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'PAN-OS version' + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.os.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Threat version' + x: '36' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Threat version' + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.threat.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Serial number' + x: '54' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Serial number' + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.serial_number + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'URL filtering version' + x: '54' + 'y': '3' + width: '18' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'URL filtering version' + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Palo Alto PA-440 by HTTP' + key: pan.pa440.url_filtering.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - name: 'PA-440: High availability' + widgets: + - type: honeycomb + name: 'HA status' + width: '72' + height: '7' + fields: + - type: STRING + name: items.0 + value: 'HA*' + - type: INTEGER + name: item_tags.0.operator + value: '3' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: ha-link + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: LIIYW + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: honeycomb + name: 'HA links status' + 'y': '7' + width: '72' + height: '7' + fields: + - type: STRING + name: items.0 + value: 'HA*' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: ha-link + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: UUYVO + - type: INTEGER + name: secondary_label_units_show + value: '0' + - name: 'PA-440: Hardware interfaces' + widgets: + - type: honeycomb + name: 'Interface status' + width: '72' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'Interface [*]: Status' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: XPPXE + - type: svggraph + name: 'Incoming traffic, per second' + 'y': '6' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '006274' + - type: STRING + name: ds.0.items.0 + value: 'Interface [*]: Bits received' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: BKLSC + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Inbound packets discarded, per second' + 'y': '11' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 9C640A + - type: STRING + name: ds.0.items.0 + value: 'Interface [*]: Inbound packets discarded, per second' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: MCEQW + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Outbound packets with errors, per second' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 33309A + - type: STRING + name: ds.0.items.0 + value: 'Interface [*]: Outbound packets with errors, per second' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: JJHYR + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Outgoing traffic, per second' + x: '36' + 'y': '6' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: B51B1B + - type: STRING + name: ds.0.items.0 + value: 'Interface [*]: Bits sent' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: EZSOH + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Inbound packets with errors, per second' + x: '36' + 'y': '11' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: D73DEB + - type: STRING + name: ds.0.items.0 + value: 'Interface [*]: Inbound packets with errors, per second' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: IFNOL + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - name: 'PA-440: Logical interfaces' + widgets: + - type: svggraph + name: 'Incoming traffic, per second' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '006274' + - type: STRING + name: ds.0.items.0 + value: 'VSYS [*]: Interface [*]: Bits received' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: GMLGQ + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Inbound packets dropped, per second' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 9C640A + - type: STRING + name: ds.0.items.0 + value: 'VSYS [*]: Interface [*]: Inbound packets dropped, per second' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: GFVBV + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Outgoing traffic, per second' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: B51B1B + - type: STRING + name: ds.0.items.0 + value: 'VSYS [*]: Interface [*]: Bits sent' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: OVKRL + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - type: svggraph + name: 'Inbound packets with errors, per second' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: D73DEB + - type: STRING + name: ds.0.items.0 + value: 'VSYS [*]: Interface [*]: Inbound packets with errors, per second' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: JGICJ + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: working_time + value: '1' + - name: 'PA-440: BGP peers' + widgets: + - type: honeycomb + name: 'BGP peer status' + width: '72' + height: '7' + fields: + - type: STRING + name: items.0 + value: 'BGP peer [*]: Status' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: LCIXC + - type: INTEGER + name: secondary_label_units_show + value: '0' + - name: 'PA-440: OSPF neighbors' + widgets: + - type: honeycomb + name: 'OSPF neighbor status' + width: '72' + height: '7' + fields: + - type: STRING + name: items.0 + value: 'OSPF neighbor [*]: Status' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: QLHBH + - type: INTEGER + name: secondary_label_units_show + value: '0' + - name: 'PA-440: OSPFv3 neighbors' + widgets: + - type: honeycomb + name: 'OSPFv3 neighbor status' + width: '72' + height: '7' + fields: + - type: STRING + name: items.0 + value: 'OSPFv3 neighbor [*]: Status' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: QLHBJ + - type: INTEGER + name: secondary_label_units_show + value: '0' + valuemaps: + - uuid: 8f6bef0b83a440ec9e54676840809c47 + name: 'BGP peer status' + mappings: + - value: '0' + newvalue: Idle + - value: '1' + newvalue: Connect + - value: '2' + newvalue: Active + - value: '3' + newvalue: OpenSent + - value: '4' + newvalue: OpenConfirm + - value: '5' + newvalue: Established + - value: '6' + newvalue: Unknown + - uuid: 75f5d630b1b74c7c8233b44422bba5eb + name: Boolean + mappings: + - value: '0' + newvalue: 'false' + - value: '1' + newvalue: 'true' + - uuid: 1ce2f4a43b274e719e9e44d24cb826bd + name: 'HA mode' + mappings: + - value: '0' + newvalue: Active-Passive + - value: '1' + newvalue: Active-Active + - value: '2' + newvalue: Unknown + - uuid: 3148f488405c4c3a8ca055891550bda1 + name: 'HA state' + mappings: + - value: '0' + newvalue: initial + - value: '1' + newvalue: active + - value: '2' + newvalue: passive + - value: '3' + newvalue: active-primary + - value: '4' + newvalue: active-secondary + - value: '5' + newvalue: tentative + - value: '6' + newvalue: non-functional + - value: '7' + newvalue: suspended + - value: '8' + newvalue: unknown diff --git a/PostgreSQL_by_ODBC.yaml b/PostgreSQL_by_ODBC.yaml new file mode 100644 index 0000000..0eb1a3e --- /dev/null +++ b/PostgreSQL_by_ODBC.yaml @@ -0,0 +1,2925 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: e0a7c3e725c445228b03116dc6114fe9 + template: 'PostgreSQL by ODBC' + name: 'PostgreSQL by ODBC' + description: | + This template is designed for the effortless deployment of PostgreSQL monitoring by Zabbix via ODBC and doesn't require any external scripts. + + Setup: + + 1. Create the PostgreSQL user for monitoring (`` at your discretion) and inherit permissions from the default role `pg_monitor`: + CREATE USER zbx_monitor WITH PASSWORD '' INHERIT; + GRANT pg_monitor TO zbx_monitor; + + 2. Edit the `pg_hba.conf` configuration file to allow TCP connections for the user `zbx_monitor`. You can check the PostgreSQL documentation for examples (https://www.postgresql.org/docs/current/auth-pg-hba-conf.html). + + 3. Install the PostgreSQL ODBC driver. + + 4. Set up the connection string with the `{$PG.CONNSTRING.ODBC}` macro. The minimum required parameters are: + - `Driver=` - set the name of the driver which will be used for monitoring (from the `odbcinst.ini` file) or specify the path to the driver file (for example `/usr/lib64/psqlodbcw.so`); + - `Servername=` - set the host name or IP address of the PostgreSQL instance; + - `Port=` - adjust the port number if needed. + + If you want to use SSL/TLS encryption to protect communications with the remote PostgreSQL instance, you can also specify encryption parameters here. + + It is assumed that you set up the PostgreSQL instance to work in the desired encryption mode. Check the PostgreSQL documentation (https://www.postgresql.org/docs/current/ssl-tcp.html) for details. + + For example, to enable required encryption in transport mode without identity checks, the connection string could look like this (replace `` with the address of the PostgreSQL instance): + Servername=;Port=5432;Driver=/usr/lib64/psqlodbcw.so;SSLmode=require + + 5. Set the password that you specified in step 1 in the macro `{$PG.PASSWORD}`. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384190-%C2%A0discussion-thread-for-official-zabbix-template-db-postgresql + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + items: + - uuid: 9440208c49134347809eff39109c644f + name: 'Get archive' + type: ODBC + key: 'db.odbc.select[pgsql.archive,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + WITH values AS ( + SELECT + 4096/(ceil(pg_settings.setting::numeric/1024/1024))::int AS segment_parts_count, + setting::bigint AS segment_size, + ('x' || substring(pg_stat_archiver.last_archived_wal from 9 for 8))::bit(32)::int AS last_wal_div, + ('x' || substring(pg_stat_archiver.last_archived_wal from 17 for 8))::bit(32)::int AS last_wal_mod, + CASE WHEN pg_is_in_recovery() THEN NULL + ELSE ('x' || substring(pg_walfile_name(pg_current_wal_lsn()) from 9 for 8))::bit(32)::int END AS current_wal_div, + CASE WHEN pg_is_in_recovery() THEN NULL + ELSE ('x' || substring(pg_walfile_name(pg_current_wal_lsn()) from 17 for 8))::bit(32)::int END AS current_wal_mod + FROM pg_settings, pg_stat_archiver + WHERE pg_settings.name = 'wal_segment_size') + SELECT json_build_object( + 'archived_count', (SELECT archived_count FROM pg_stat_archiver), + 'failed_count', (SELECT failed_count FROM pg_stat_archiver), + 'count_files', (SELECT greatest(coalesce((segment_parts_count - last_wal_mod) + ((current_wal_div - last_wal_div - 1) * segment_parts_count) + current_wal_mod - 1, 0), 0) FROM values), + 'size_files', (SELECT greatest(coalesce(((segment_parts_count - last_wal_mod) + ((current_wal_div - last_wal_div - 1) * segment_parts_count) + current_wal_mod - 1) * segment_size, 0), 0) FROM values) + ) AS result + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Collect archive status metrics.' + tags: + - tag: component + value: raw + - uuid: dd79edeb2d65420fb58d587e411c440f + name: 'Count of autovacuum workers' + type: ODBC + key: 'db.odbc.select[pgsql.autovacuum.count,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + value_type: FLOAT + params: | + SELECT count(*) + FROM pg_catalog.pg_stat_activity + WHERE backend_type = 'autovacuum worker' + AND state <> 'idle' + AND pid <> pg_catalog.pg_backend_pid() + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Number of autovacuum workers.' + tags: + - tag: component + value: system + - uuid: 1d267b6aed064d03b4f464b27c1e897e + name: 'Get connections sum' + type: ODBC + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT row_to_json(T) + FROM ( + SELECT + sum(CASE WHEN state = 'active' THEN 1 ELSE 0 END) AS active, + sum(CASE WHEN state = 'idle' THEN 1 ELSE 0 END) AS idle, + sum(CASE WHEN state = 'idle in transaction' THEN 1 ELSE 0 END) AS idle_in_transaction, + sum(CASE WHEN state = 'idle in transaction (aborted)' THEN 1 ELSE 0 END) AS idle_in_transaction_aborted, + sum(CASE WHEN state = 'fastpath function call' THEN 1 ELSE 0 END) AS fastpath_function_call, + sum(CASE WHEN state = 'disabled' THEN 1 ELSE 0 END) AS disabled, + count(*) AS total, + count(*)*100/(SELECT current_setting('max_connections')::int) AS total_pct, + sum(CASE WHEN wait_event IS NOT NULL THEN 1 ELSE 0 END) AS waiting, + (SELECT count(*) FROM pg_prepared_xacts) AS prepared + FROM pg_stat_activity WHERE datid IS NOT NULL AND state IS NOT NULL) T + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: | + Collect all metrics from pg_stat_activity: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW + tags: + - tag: component + value: raw + - uuid: 0f93764d56574a288467ad16dce11a17 + name: 'Get dbstat' + type: ODBC + key: 'db.odbc.select[pgsql.dbstat,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT json_object_agg(coalesce (datname,'null'), row_to_json(T)) FROM ( + SELECT datname, + numbackends AS numbackends, + xact_commit AS xact_commit, + xact_rollback AS xact_rollback, + blks_read AS blks_read, + blks_hit AS blks_hit, + tup_returned AS tup_returned, + tup_fetched AS tup_fetched, + tup_inserted AS tup_inserted, + tup_updated AS tup_updated, + tup_deleted AS tup_deleted, + conflicts AS conflicts, + temp_files AS temp_files, + temp_bytes AS temp_bytes, + deadlocks AS deadlocks, + blk_read_time AS blk_read_time, + blk_write_time AS blk_write_time + FROM pg_catalog.pg_stat_database WHERE datname IS NOT NULL) T; + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: | + Collect all metrics from pg_stat_database per database: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-DATABASE-VIEW + tags: + - tag: component + value: raw + - uuid: 6ea1a17fad8b4ef3aba8b49a0922a77d + name: 'Get dbstat sum' + type: ODBC + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT row_to_json(T) FROM ( + SELECT sum(numbackends) AS numbackends, + sum(xact_commit) AS xact_commit, + sum(xact_rollback) AS xact_rollback, + sum(blks_read) AS blks_read, + sum(blks_hit) AS blks_hit, + sum(tup_returned) AS tup_returned, + sum(tup_fetched) AS tup_fetched, + sum(tup_inserted) AS tup_inserted, + sum(tup_updated) AS tup_updated, + sum(tup_deleted) AS tup_deleted, + sum(conflicts) AS conflicts, + sum(temp_files) AS temp_files, + sum(temp_bytes) AS temp_bytes, + sum(deadlocks) AS deadlocks, + sum(blk_read_time) AS blk_read_time, + sum(blk_write_time) AS blk_write_time + FROM pg_stat_database) T + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: | + Collect all metrics from pg_stat_database as sums for all databases: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-DATABASE-VIEW + tags: + - tag: component + value: raw + - uuid: efa015e294684fdeb711a0fde1256cf9 + name: 'Get locks' + type: ODBC + key: 'db.odbc.select[pgsql.locks,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + WITH T AS + (SELECT db.datname dbname, + lower(replace(Q.mode, 'Lock', '')) AS MODE, + coalesce(T.qty, 0) val + FROM pg_database db + JOIN ( + VALUES ('AccessShareLock') ,('RowShareLock') ,('RowExclusiveLock') ,('ShareUpdateExclusiveLock') ,('ShareLock') ,('ShareRowExclusiveLock') ,('ExclusiveLock') ,('AccessExclusiveLock')) Q(MODE) ON TRUE NATURAL + LEFT JOIN + (SELECT datname, + MODE, + count(MODE) qty + FROM pg_locks lc + RIGHT JOIN pg_database db ON db.oid = lc.database + GROUP BY 1, 2) T + WHERE NOT db.datistemplate + ORDER BY 1, 2) + SELECT json_object_agg(dbname, row_to_json(T2)) + FROM + (SELECT dbname, + sum(val) AS total, + sum(CASE + WHEN MODE = 'accessexclusive' THEN val + END) AS accessexclusive, + sum(CASE + WHEN MODE = 'accessshare' THEN val + END) AS accessshare, + sum(CASE + WHEN MODE = 'exclusive' THEN val + END) AS EXCLUSIVE, + sum(CASE + WHEN MODE = 'rowexclusive' THEN val + END) AS rowexclusive, + sum(CASE + WHEN MODE = 'rowshare' THEN val + END) AS rowshare, + sum(CASE + WHEN MODE = 'share' THEN val + END) AS SHARE, + sum(CASE + WHEN MODE = 'sharerowexclusive' THEN val + END) AS sharerowexclusive, + sum(CASE + WHEN MODE = 'shareupdateexclusive' THEN val + END) AS shareupdateexclusive + FROM T + GROUP BY dbname) T2 + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: | + Collect all metrics from pg_locks per database: + https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-TABLES + tags: + - tag: component + value: raw + - uuid: 266a9b5c1e604d97ac5a74ccdb598c97 + name: 'Age of oldest xid' + type: ODBC + key: 'db.odbc.select[pgsql.oldest.xid,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + value_type: FLOAT + params: | + SELECT greatest(max(age(backend_xmin)), max(age(backend_xid))) + FROM pg_catalog.pg_stat_activity + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Age of oldest xid.' + tags: + - tag: component + value: transactions + triggers: + - uuid: 4d32971898d441fb94d5f029649dddfa + expression: 'last(/PostgreSQL by ODBC/db.odbc.select[pgsql.oldest.xid,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]) > 18000000' + name: 'PostgreSQL: Oldest xid is too big' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 3c16a3c2db7641c2b6958649d7b4809e + name: Ping + type: ODBC + key: 'db.odbc.select[pgsql.ping,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + params: 'SELECT 1' + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Used to test a connection to see if it is alive. It is set to 0 if the query is unsuccessful.' + valuemap: + name: 'Service state' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 758e569b51954fcf82c7cb3fa391c882 + expression: 'last(/PostgreSQL by ODBC/db.odbc.select[pgsql.ping,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"])=0' + name: 'PostgreSQL: Service is down' + priority: HIGH + description: 'Last test of a connection was unsuccessful.' + tags: + - tag: scope + value: availability + - uuid: ee6b3f64e07d4acd875dbd83dccd51d0 + name: 'Get queries' + type: ODBC + key: 'db.odbc.select[pgsql.queries,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + WITH T AS + (SELECT db.datname, + coalesce(T.query_time_max, 0) query_time_max, + coalesce(T.tx_time_max, 0) tx_time_max, + coalesce(T.mro_time_max, 0) mro_time_max, + coalesce(T.query_time_sum, 0) query_time_sum, + coalesce(T.tx_time_sum, 0) tx_time_sum, + coalesce(T.mro_time_sum, 0) mro_time_sum, + coalesce(T.query_slow_count, 0) query_slow_count, + coalesce(T.tx_slow_count, 0) tx_slow_count, + coalesce(T.mro_slow_count, 0) mro_slow_count + FROM pg_database db NATURAL + LEFT JOIN ( + SELECT datname, + extract(epoch FROM now())::integer ts, + coalesce(max(extract('epoch' FROM (clock_timestamp() - query_start))::integer * (state NOT IN ('idle', 'idle in transaction', 'idle in transaction (aborted)') AND query !~* E'^(\\s*(--[^\\n]*\\n|/\\*.*\\*/|\\n))*(autovacuum|VACUUM|ANALYZE|REINDEX|CLUSTER|CREATE|ALTER|TRUNCATE|DROP)')::integer), 0) query_time_max, + coalesce(max(extract('epoch' FROM (clock_timestamp() - query_start))::integer * (state NOT IN ('idle') AND query !~* E'^(\\s*(--[^\\n]*\\n|/\\*.*\\*/|\\n))*(autovacuum|VACUUM|ANALYZE|REINDEX|CLUSTER|CREATE|ALTER|TRUNCATE|DROP)')::integer), 0) tx_time_max, + coalesce(max(extract('epoch' FROM (clock_timestamp() - query_start))::integer * (state NOT IN ('idle') AND query ~* E'^(\\s*(--[^\\n]*\\n|/\\*.*\\*/|\\n))*(autovacuum|VACUUM|ANALYZE|REINDEX|CLUSTER|CREATE|ALTER|TRUNCATE|DROP)')::integer), 0) mro_time_max, + coalesce(sum(extract('epoch' FROM (clock_timestamp() - query_start))::integer * (state NOT IN ('idle', 'idle in transaction', 'idle in transaction (aborted)') AND query !~* E'^(\\s*(--[^\\n]*\\n|/\\*.*\\*/|\\n))*(autovacuum|VACUUM|ANALYZE|REINDEX|CLUSTER|CREATE|ALTER|TRUNCATE|DROP)')::integer), 0) query_time_sum, + coalesce(sum(extract('epoch' FROM (clock_timestamp() - query_start))::integer * (state NOT IN ('idle') AND query !~* E'^(\\s*(--[^\\n]*\\n|/\\*.*\\*/|\\n))*(autovacuum|VACUUM|ANALYZE|REINDEX|CLUSTER|CREATE|ALTER|TRUNCATE|DROP)')::integer), 0) tx_time_sum, + coalesce(sum(extract('epoch' FROM (clock_timestamp() - query_start))::integer * (state NOT IN ('idle') AND query ~* E'^(\\s*(--[^\\n]*\\n|/\\*.*\\*/|\\n))*(autovacuum|VACUUM|ANALYZE|REINDEX|CLUSTER|CREATE|ALTER|TRUNCATE|DROP)')::integer), 0) mro_time_sum, + + coalesce(sum((extract('epoch' FROM (clock_timestamp() - query_start)) > {$PG.QUERY_ETIME.MAX.WARN})::integer * (state NOT IN ('idle', 'idle in transaction', 'idle in transaction (aborted)') AND query !~* E'^(\\s*(--[^\\n]*\\n|/\\*.*\\*/|\\n))*(autovacuum|VACUUM|ANALYZE|REINDEX|CLUSTER|CREATE|ALTER|TRUNCATE|DROP)')::integer), 0) query_slow_count, + coalesce(sum((extract('epoch' FROM (clock_timestamp() - query_start)) > {$PG.QUERY_ETIME.MAX.WARN})::integer * (state NOT IN ('idle') AND query !~* E'^(\\s*(--[^\\n]*\\n|/\\*.*\\*/|\\n))*(autovacuum|VACUUM|ANALYZE|REINDEX|CLUSTER|CREATE|ALTER|TRUNCATE|DROP)')::integer), 0) tx_slow_count, + coalesce(sum((extract('epoch' FROM (clock_timestamp() - query_start)) > {$PG.QUERY_ETIME.MAX.WARN})::integer * (state NOT IN ('idle') AND query ~* E'^(\\s*(--[^\\n]*\\n|/\\*.*\\*/|\\n))*(autovacuum|VACUUM|ANALYZE|REINDEX|CLUSTER|CREATE|ALTER|TRUNCATE|DROP)')::integer), 0) mro_slow_count + FROM pg_stat_activity + WHERE pid <> pg_backend_pid() + GROUP BY 1) T + WHERE NOT db.datistemplate ) + SELECT json_object_agg(datname, row_to_json(T)) + FROM T + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Collect all metrics by query execution time.' + tags: + - tag: component + value: raw + - uuid: d156db3cb35049a88179060583961156 + name: 'Replication: Standby count' + type: ODBC + key: 'db.odbc.select[pgsql.replication.count,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + params: 'SELECT count(*) FROM pg_stat_replication' + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Number of standby servers.' + tags: + - tag: component + value: replication + - uuid: 669d87ebf9324d6eaa26c3cb44efc850 + name: 'Replication: Lag in bytes' + type: ODBC + key: 'db.odbc.select[pgsql.replication.lag.b,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + units: B + params: | + SELECT + CASE + WHEN NOT pg_is_in_recovery() OR pg_last_wal_receive_lsn() = pg_last_wal_replay_lsn() THEN 0 + ELSE COALESCE(EXTRACT(EPOCH FROM now() - pg_last_xact_replay_timestamp())::integer, 0) + END AS lag + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Replication lag with master, in bytes.' + tags: + - tag: component + value: replication + - uuid: bb87b83d35784d3ea5be2263fa3722b0 + name: 'Replication: Lag in seconds' + type: ODBC + key: 'db.odbc.select[pgsql.replication.lag.sec,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + units: s + params: | + SELECT + CASE + WHEN NOT pg_is_in_recovery() OR pg_last_wal_receive_lsn() = pg_last_wal_replay_lsn() THEN 0 + ELSE COALESCE(EXTRACT(EPOCH FROM now() - pg_last_xact_replay_timestamp())::integer, 0) + END AS lag + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Replication lag with master, in seconds.' + tags: + - tag: component + value: replication + - uuid: 3f2b5c02a6be40d4837205f68aaacabb + name: 'Get replication' + type: ODBC + key: 'db.odbc.select[pgsql.replication.process,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT json_object_agg(application_name, row_to_json(T)) + FROM ( + SELECT + application_name, + EXTRACT(epoch FROM COALESCE(flush_lag,'0'::interval)) AS flush_lag, + EXTRACT(epoch FROM COALESCE(replay_lag,'0'::interval)) AS replay_lag, + EXTRACT(epoch FROM COALESCE(write_lag, '0'::interval)) AS write_lag + FROM pg_stat_replication + ) T + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Collect metrics from the pg_stat_replication, which contains information about the WAL sender process, showing statistics about replication to that sender''s connected standby server.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + tags: + - tag: component + value: raw + - uuid: f8205cdd902a4a688b5bcb7f65d8e41d + name: 'Replication: Recovery role' + type: ODBC + key: 'db.odbc.select[pgsql.replication.recovery_role,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + params: 'SELECT pg_is_in_recovery()::int' + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Replication role: 1 — recovery is still in progress (standby mode), 0 — master mode.' + valuemap: + name: 'PostgreSQL recovery role' + tags: + - tag: component + value: replication + - uuid: 6cc8c748f6174d3dba9aa9b39570b006 + name: 'Replication: Status' + type: ODBC + key: 'db.odbc.select[pgsql.replication.status,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + params: | + SELECT + CASE + WHEN NOT pg_is_in_recovery() THEN 2 + ELSE (SELECT count(*) FROM pg_stat_wal_receiver) + END AS repl_status + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Replication status: 0 — streaming is down, 1 — streaming is up, 2 — master mode.' + valuemap: + name: 'PostgreSQL replication status' + tags: + - tag: component + value: replication + - uuid: 817c494132044fff88ea4c9fcaacb60a + name: Uptime + type: ODBC + key: 'db.odbc.select[pgsql.uptime,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + value_type: FLOAT + units: uptime + params: 'SELECT date_part(''epoch'', now() - pg_postmaster_start_time())' + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Time since the server started.' + tags: + - tag: component + value: application + triggers: + - uuid: 22077f0b0ee54becb43ef9ab808c3e43 + expression: 'last(/PostgreSQL by ODBC/db.odbc.select[pgsql.uptime,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]) < 10m' + name: 'PostgreSQL: Service has been restarted' + event_name: 'PostgreSQL: Service has been restarted (uptime < 10m)' + priority: AVERAGE + description: 'PostgreSQL uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 4bfb0c1697f043d9acf640b84cc8d945 + name: Version + type: ODBC + key: 'db.odbc.select[pgsql.version,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + delay: 15m + value_type: CHAR + trends: '0' + params: 'SELECT version()' + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'PostgreSQL version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + triggers: + - uuid: fd409b64f83943edaf43845a12bf8ace + expression: 'last(/PostgreSQL by ODBC/db.odbc.select[pgsql.version,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"],#1)<>last(/PostgreSQL by ODBC/db.odbc.select[pgsql.version,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"],#2) and length(last(/PostgreSQL by ODBC/db.odbc.select[pgsql.version,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]))>0' + name: 'PostgreSQL: Version has changed' + event_name: 'PostgreSQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 0b76450dd17d47a1829f51960dcb1374 + name: 'Version (numeric)' + type: ODBC + key: 'db.odbc.select[pgsql.version.num,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + delay: 15m + trends: '0' + params: 'SELECT current_setting(''server_version_num'')' + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Reports the version number of the server as an integer.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: 8af13c6154744e9596a0f96dfbf09d8b + name: 'Get WAL' + type: ODBC + key: 'db.odbc.select[pgsql.wal.stat,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT row_to_json(T) + FROM ( + SELECT + CASE + WHEN pg_is_in_recovery() THEN 0 + ELSE pg_wal_lsn_diff(pg_current_wal_lsn(),'0/00000000') + END AS WRITE, + CASE + WHEN NOT pg_is_in_recovery() THEN 0 + ELSE pg_wal_lsn_diff(pg_last_wal_receive_lsn(),'0/00000000') + END AS RECEIVE, + count(*) + FROM pg_ls_waldir() AS COUNT + ) T + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Collect write-ahead log (WAL) metrics.' + tags: + - tag: component + value: raw + - uuid: d69d40f3e7064f668b0bf150ff73aafc + name: 'Archive: Count of archived files' + type: DEPENDENT + key: pgsql.archive.count_archived_files + delay: '0' + value_type: FLOAT + description: 'Count of archived files.' + preprocessing: + - type: JSONPATH + parameters: + - $.archived_count + master_item: + key: 'db.odbc.select[pgsql.archive,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: archive + - uuid: c1cc1236cf0c412a84e7d1ff3fec14e5 + name: 'Archive: Count of files in archive_status need to archive' + type: DEPENDENT + key: pgsql.archive.count_files_to_archive + delay: '0' + value_type: FLOAT + description: 'Count of files to archive.' + preprocessing: + - type: JSONPATH + parameters: + - $.count_files + master_item: + key: 'db.odbc.select[pgsql.archive,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: archive + - uuid: 1ea44a48aaf042debc078ad920dd4f02 + name: 'Archive: Count of failed attempts to archive files' + type: DEPENDENT + key: pgsql.archive.failed_trying_to_archive + delay: '0' + value_type: FLOAT + description: 'Count of failed attempts to archive files.' + preprocessing: + - type: JSONPATH + parameters: + - $.failed_count + master_item: + key: 'db.odbc.select[pgsql.archive,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: archive + - uuid: 13f563e6152a482fb48415d81f916af2 + name: 'Archive: Size of files need to archive' + type: DEPENDENT + key: pgsql.archive.size_files_to_archive + delay: '0' + value_type: FLOAT + description: 'Size of files to archive.' + preprocessing: + - type: JSONPATH + parameters: + - $.size_files + master_item: + key: 'db.odbc.select[pgsql.archive,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: archive + - uuid: 9b8faf03797f4dccb9573b664805478a + name: 'Bgwriter LLD' + type: DEPENDENT + key: pgsql.bgwriter.lld + delay: '0' + history: '0' + value_type: CHAR + trends: '0' + description: 'LLD data for "bgwriter" metrics discovery.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var version_num = parseInt(value, 10), + result = [{ + '{#BELOW_V17}': 'false', + '{#SINGLETON}': '' + }]; + + if (version_num < 170000) { + result[0]['{#BELOW_V17}'] = 'true'; + } + + return JSON.stringify(result); + master_item: + key: 'db.odbc.select[pgsql.version.num,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: raw + - uuid: 6444043a810b4b2f89740c1c794a47c0 + name: 'Cache hit ratio, %' + type: CALCULATED + key: pgsql.cache.hit + value_type: FLOAT + units: '%' + params: 'last(//pgsql.dbstat.sum.blks_hit.rate) * 100 / (last(//pgsql.dbstat.sum.blks_hit.rate) + last(//pgsql.dbstat.sum.blks_read.rate))' + description: 'Cache hit ratio.' + tags: + - tag: component + value: cache + - uuid: 5e3e5b6a244c4dfdacc7167196e28d7d + name: 'Connections sum: Active' + type: DEPENDENT + key: pgsql.connections.sum.active + delay: '0' + description: 'Total number of connections executing a query.' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: connections + - uuid: 2dd753d41b5e4c4098fef4fe5ac51060 + name: 'Connections sum: Disabled' + type: DEPENDENT + key: pgsql.connections.sum.disabled + delay: '0' + description: 'Total number of disabled connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.disabled + master_item: + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: connections + - uuid: 6d379fe1fe424ed68dea03a90da81da0 + name: 'Connections sum: Fastpath function call' + type: DEPENDENT + key: pgsql.connections.sum.fastpath_function_call + delay: '0' + description: 'Total number of connections executing a fast-path function.' + preprocessing: + - type: JSONPATH + parameters: + - $.fastpath_function_call + master_item: + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: connections + - uuid: 8b777c5628c4462580f1ae70790fb584 + name: 'Connections sum: Idle' + type: DEPENDENT + key: pgsql.connections.sum.idle + delay: '0' + description: 'Total number of connections waiting for a new client command.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + master_item: + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: connections + - uuid: 7851bc86735e46a48fd5c82d83ef066a + name: 'Connections sum: Idle in transaction' + type: DEPENDENT + key: pgsql.connections.sum.idle_in_transaction + delay: '0' + description: 'Total number of connections in a transaction state but not executing a query.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle_in_transaction + master_item: + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: connections + - uuid: 9267653f21b445beaacd3de3e55ad4ae + name: 'Connections sum: Idle in transaction (aborted)' + type: DEPENDENT + key: pgsql.connections.sum.idle_in_transaction_aborted + delay: '0' + description: 'Total number of connections in a transaction state but not executing a query, and where one of the statements in the transaction caused an error.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle_in_transaction_aborted + master_item: + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: connections + - uuid: 512e90360d4d4b95aa23014181697afe + name: 'Connections sum: Prepared' + type: DEPENDENT + key: pgsql.connections.sum.prepared + delay: '0' + description: | + Total number of prepared transactions: + https://www.postgresql.org/docs/current/sql-prepare-transaction.html + preprocessing: + - type: JSONPATH + parameters: + - $.prepared + master_item: + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: connections + - uuid: 4d092ed405e2410f9e1a4cdb31249fe0 + name: 'Connections sum: Total' + type: DEPENDENT + key: pgsql.connections.sum.total + delay: '0' + description: 'Total number of connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + master_item: + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: connections + - uuid: 2b2ca7abb85b4ae1992cbfc6902206a1 + name: 'Connections sum: Total, %' + type: DEPENDENT + key: pgsql.connections.sum.total_pct + delay: '0' + units: '%' + description: 'Total number of connections, in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_pct + master_item: + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 3b6662191c3b46ac930af02797a7162b + expression: 'min(/PostgreSQL by ODBC/pgsql.connections.sum.total_pct,5m) > {$PG.CONN_TOTAL_PCT.MAX.WARN}' + name: 'PostgreSQL: Total number of connections is too high' + event_name: 'PostgreSQL: Total number of connections is too high (over {$PG.CONN_TOTAL_PCT.MAX.WARN}% in 5m)' + priority: AVERAGE + description: 'Total number of current connections exceeds the limit of {$PG.CONN_TOTAL_PCT.MAX.WARN}% out of the maximum number of concurrent connections to the database server (the "max_connections" setting).' + tags: + - tag: scope + value: performance + - uuid: 7f525a9b9b6a494db660649388b8cb21 + name: 'Connections sum: Waiting' + type: DEPENDENT + key: pgsql.connections.sum.waiting + delay: '0' + description: | + Total number of waiting connections: + https://www.postgresql.org/docs/current/monitoring-stats.html#WAIT-EVENT-TABLE + preprocessing: + - type: JSONPATH + parameters: + - $.waiting + master_item: + key: 'db.odbc.select[pgsql.connections.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: connections + - uuid: 6cb6aaa39f494f13b792ea0d1570f0af + name: 'Dbstat: Hit blocks read per second' + type: DEPENDENT + key: pgsql.dbstat.sum.blks_hit.rate + delay: '0' + value_type: FLOAT + description: 'Number of times per second disk blocks were found already in the buffer cache.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_hit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: cache + - uuid: 8861dbcc607b481e9f7ca6b3081530a8 + name: 'Dbstat: Disk blocks read per second' + type: DEPENDENT + key: pgsql.dbstat.sum.blks_read.rate + delay: '0' + value_type: FLOAT + description: 'Number of disk blocks read per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: storage + - uuid: a8a7afddbe7546068e3d629747d73848 + name: 'Dbstat: Blocks read time' + type: DEPENDENT + key: pgsql.dbstat.sum.blk_read_time + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent reading data file blocks by backends.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_read_time + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: storage + - uuid: 40b1da9a55cf4312a66dffa9031b9b15 + name: 'Dbstat: Blocks write time' + type: DEPENDENT + key: pgsql.dbstat.sum.blk_write_time + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent writing data file blocks by backends.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_write_time + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: storage + - uuid: ef6c8945243f41e88a08d93e66eec666 + name: 'Dbstat: Conflicts per second' + type: DEPENDENT + key: pgsql.dbstat.sum.conflicts.rate + delay: '0' + value_type: FLOAT + description: 'Number of queries canceled per second due to conflicts with recovery (conflicts occur only on standby servers; see pg_stat_database_conflicts for details).' + preprocessing: + - type: JSONPATH + parameters: + - $.conflicts + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: queries + - uuid: 5adcf2ce06984da2b0b0600d88e88451 + name: 'Dbstat: Deadlocks per second' + type: DEPENDENT + key: pgsql.dbstat.sum.deadlocks.rate + delay: '0' + value_type: FLOAT + description: 'Number of deadlocks detected per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.deadlocks + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: deadlocks + - uuid: 26da7e85356644cdbe4d9efd20e43dd2 + name: 'Dbstat: Backends connected' + type: DEPENDENT + key: pgsql.dbstat.sum.numbackends + delay: '0' + description: 'Number of connected backends.' + preprocessing: + - type: JSONPATH + parameters: + - $.numbackends + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: backends + - uuid: 4c18ecf383154136ad68d5d938fc83d7 + name: 'Dbstat: Number temp bytes per second' + type: DEPENDENT + key: pgsql.dbstat.sum.temp_bytes.rate + delay: '0' + value_type: FLOAT + units: b + description: 'Total amount of data written per second to temporary files by queries.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: storage + - uuid: 0c7ad16e40e3454aaad27a6fe4b5e62d + name: 'Dbstat: Number temp files per second' + type: DEPENDENT + key: pgsql.dbstat.sum.temp_files.rate + delay: '0' + value_type: FLOAT + description: 'Number of temporary files created by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_files + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: storage + - uuid: e3cd2d8ec2b8454f949c69bb00e0db57 + name: 'Dbstat: Rows deleted per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_deleted.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows deleted by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_deleted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: queries + - uuid: 9f09f94dcd6744e8b6a53167b1835a16 + name: 'Dbstat: Rows fetched per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_fetched.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows fetched by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_fetched + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: queries + - uuid: 916291299e624959993f8a585da6c9c0 + name: 'Dbstat: Rows inserted per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_inserted.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows inserted by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_inserted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: queries + - uuid: fc8f68f5068240f3acd2d18443efc624 + name: 'Dbstat: Rows returned per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_returned.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows returned by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_returned + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: queries + - uuid: 802d541dd0314f8fba827e6d28013b5c + name: 'Dbstat: Rows updated per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_updated.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows updated by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_updated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: queries + - uuid: c00a09d04d4443d885006b29c5c14546 + name: 'Dbstat: Committed transactions per second' + type: DEPENDENT + key: pgsql.dbstat.sum.xact_commit.rate + delay: '0' + value_type: FLOAT + description: 'Number of transactions that have been committed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_commit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: transactions + - uuid: 8f2259521add4cc0bd5e274604172d04 + name: 'Dbstat: Roll backed transactions per second' + type: DEPENDENT + key: pgsql.dbstat.sum.xact_rollback.rate + delay: '0' + value_type: FLOAT + description: 'Number of transactions that have been rolled back per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_rollback + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.dbstat.sum,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: transactions + - uuid: 59722a42ba084a4f9a65f6b11f1180f4 + name: 'WAL: Segments count' + type: DEPENDENT + key: pgsql.wal.count + delay: '0' + description: 'Number of WAL segments.' + preprocessing: + - type: JSONPATH + parameters: + - $.count + master_item: + key: 'db.odbc.select[pgsql.wal.stat,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: wal + - uuid: 5ffd0e54dd464b5c941ba40b696beda9 + name: 'WAL: Bytes received' + type: DEPENDENT + key: pgsql.wal.receive + delay: '0' + units: B + description: 'WAL receive, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.receive + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.wal.stat,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: wal + - uuid: 0dec7fe5cbe24fcf802cb387ca8edf98 + name: 'WAL: Bytes written' + type: DEPENDENT + key: pgsql.wal.write + delay: '0' + units: B + description: 'WAL write, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.write + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.wal.stat,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: wal + discovery_rules: + - uuid: 1c51decca55847a8adba4260f53e0acf + name: 'Database discovery' + type: ODBC + key: 'db.odbc.select[pgsql.db.discovery,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + delay: 1h + params: | + WITH T AS ( + SELECT + datname AS "{#DBNAME}" + FROM pg_database + WHERE + NOT datistemplate + AND datallowconn + AND datname != 'postgres' + ) + SELECT '{"data":'|| regexp_replace(coalesce(json_agg(T), '[]'::json)::text, E'[\\n\\r\\s]+', '', 'g') || '}' + FROM T + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$PG.LLD.FILTER.DBNAME}' + formulaid: A + description: | + Discovers databases (DB) in the database management system (DBMS), except: + - templates; + - default "postgres" DB; + - DBs that do not allow connections. + item_prototypes: + - uuid: 98b74e578a3e48f3990bc16eb0217a17 + name: 'DB [{#DBNAME}]: Database age' + type: ODBC + key: 'db.odbc.select[pgsql.db.age,,"Database={#DBNAME};{$PG.CONNSTRING.ODBC}"]' + delay: 10m + params: | + SELECT age(datfrozenxid) + FROM pg_catalog.pg_database + WHERE datname = '{#DBNAME}' + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Database age.' + tags: + - tag: component + value: application + - tag: database + value: '{#DBNAME}' + - uuid: cb7067b756bc4b3eb5be2ee2361df6f8 + name: 'DB [{#DBNAME}]: Bloating tables' + type: ODBC + key: 'db.odbc.select[pgsql.db.bloating_tables,,"Database={#DBNAME};{$PG.CONNSTRING.ODBC}"]' + params: | + SELECT count(*) + FROM pg_catalog.pg_stat_all_tables + WHERE (n_dead_tup/(n_live_tup+n_dead_tup)::float8) > 0.2 + AND (n_live_tup+n_dead_tup) > 50 + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Number of bloating tables.' + tags: + - tag: component + value: tables + - tag: database + value: '{#DBNAME}' + - uuid: f6bc4dd7f66a4a399a16230b6a7a8f2d + name: 'DB [{#DBNAME}]: Database size' + type: ODBC + key: 'db.odbc.select[pgsql.db.size,,"Database={#DBNAME};{$PG.CONNSTRING.ODBC}"]' + delay: 5m + units: B + params: 'SELECT pg_database_size(current_database())' + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: 'Database size.' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: d6c61f75147e414a99dfba56ea8ba422 + name: 'DB [{#DBNAME}]: Blocks hit per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of times per second disk blocks were found already in the buffer cache, so that a read was not necessary.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_hit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: cache + - tag: database + value: '{#DBNAME}' + - uuid: 086c614609174dabab3b7a231353f4fa + name: 'DB [{#DBNAME}]: Disk blocks read per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of disk blocks read per second in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 3ce43b1b7b874278abef353c6c791c95 + name: 'DB [{#DBNAME}]: Disk blocks read time per second' + type: DEPENDENT + key: 'pgsql.dbstat.blk_read_time.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent reading data file blocks by backends per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_read_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 9c443a5bae6b4b4c84e6272cb254a38e + name: 'DB [{#DBNAME}]: Disk blocks write time per second' + type: DEPENDENT + key: 'pgsql.dbstat.blk_write_time.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent writing data file blocks by backends per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_write_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 8a772dae1d8f40978bfcceebfabe87de + name: 'DB [{#DBNAME}]: Detected conflicts per second' + type: DEPENDENT + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of queries canceled due to conflicts with recovery in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.conflicts + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 8dc225c8a2824e5cb62b0ce4dd11dc1e + expression: 'min(/PostgreSQL by ODBC/pgsql.dbstat.conflicts.rate["{#DBNAME}"],5m) > {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Too many recovery conflicts' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Too many recovery conflicts (over {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: AVERAGE + description: | + The primary and standby servers are in many ways loosely connected. Actions on the primary will have an effect on the standby. As a result, there is potential for negative interactions or conflicts between them. + https://www.postgresql.org/docs/current/hot-standby.html#HOT-STANDBY-CONFLICT + tags: + - tag: scope + value: performance + - uuid: c4f382ef370640aa93c265dabe0b6dcd + name: 'DB [{#DBNAME}]: Detected deadlocks per second' + type: DEPENDENT + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of detected deadlocks in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.deadlocks + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: deadlocks + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 7e9c3fad615448deafbd21abdac7936d + expression: 'min(/PostgreSQL by ODBC/pgsql.dbstat.deadlocks.rate["{#DBNAME}"],5m) > {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Deadlock occurred' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Deadlock occurred (over {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: HIGH + description: 'Number of deadlocks detected per second exceeds {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} for 5m.' + tags: + - tag: scope + value: availability + - uuid: 4e977e75b4044928a75dcdd713be1169 + name: 'DB [{#DBNAME}]: Get dbstat' + type: DEPENDENT + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get dbstat metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.select[pgsql.dbstat,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: d65dc8860c6e4e00aca8dfc35c5e3346 + name: 'DB [{#DBNAME}]: Backends connected' + type: DEPENDENT + key: 'pgsql.dbstat.numbackends["{#DBNAME}"]' + delay: '0' + description: 'Number of backends currently connected to this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.numbackends + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: backends + - tag: database + value: '{#DBNAME}' + - uuid: 65ce0c82404340bbb180bdb734573596 + name: 'DB [{#DBNAME}]: Temp_bytes written per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total amount of data written to temporary files by queries in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 9b079ed6377841ee87005af6ebaaa830 + name: 'DB [{#DBNAME}]: Temp_files created per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + delay: '0' + description: 'Total number of temporary files created by queries in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_files + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 207b2e99c61044e091007f45cceb7088 + name: 'DB [{#DBNAME}]: Tuples deleted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows deleted by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_deleted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 7e6add2efe2f4cc79982351c448bd921 + name: 'DB [{#DBNAME}]: Tuples fetched per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows fetched by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_fetched + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 43bb96408a9e4832b7e272770c989593 + name: 'DB [{#DBNAME}]: Tuples inserted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows inserted by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_inserted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 638cde24706448d09fa06c9571657a9d + name: 'DB [{#DBNAME}]: Tuples returned per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of rows returned by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_returned + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 73f71c2f1b9043b48152e91a3e3c41a1 + name: 'DB [{#DBNAME}]: Tuples updated per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows updated by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_updated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 7ff29324ad4c48b7b28faaf3e16efbd6 + name: 'DB [{#DBNAME}]: Commits per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of transactions in this database that have been committed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_commit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: a840bb06684140c8b70406a7f8b14873 + name: 'DB [{#DBNAME}]: Rollbacks per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of transactions in this database that have been rolled back.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_rollback + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: e9fa95b198b14da9b416bd1bc7c00911 + name: 'DB [{#DBNAME}]: Num of accessexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.accessexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of accessexclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.accessexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: fbc1bb60b8214041b64095672995e8ec + name: 'DB [{#DBNAME}]: Num of accessshare locks' + type: DEPENDENT + key: 'pgsql.locks.accessshare["{#DBNAME}"]' + delay: '0' + description: 'Number of accessshare locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.accessshare + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: a98106f8644b4f77b8e2cf1dc7ed9586 + name: 'DB [{#DBNAME}]: Num of exclusive locks' + type: DEPENDENT + key: 'pgsql.locks.exclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of exclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.exclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 350ebc4e054c4290a92293ba625c40dd + name: 'DB [{#DBNAME}]: Get locks' + type: DEPENDENT + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get locks metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.select[pgsql.locks,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 0abfbce470824232a7516747f6f2714a + name: 'DB [{#DBNAME}]: Num of rowexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.rowexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of rowexclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.rowexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 24347f06596f4fc1af2753fbdd0b720c + name: 'DB [{#DBNAME}]: Num of rowshare locks' + type: DEPENDENT + key: 'pgsql.locks.rowshare["{#DBNAME}"]' + delay: '0' + description: 'Number of rowshare locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].rowshare' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: dedcbbc9ee234e778b48947561077850 + name: 'DB [{#DBNAME}]: Num of sharerowexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.sharerowexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of total sharerowexclusive for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.sharerowexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: acaaf4e4ae97426589ea7fe351da0a48 + name: 'DB [{#DBNAME}]: Num of shareupdateexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.shareupdateexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of shareupdateexclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.shareupdateexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 03df53fbfc2f4ac2a5d0793e0ed14f4c + name: 'DB [{#DBNAME}]: Num of share locks' + type: DEPENDENT + key: 'pgsql.locks.share["{#DBNAME}"]' + delay: '0' + description: 'Number of share locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.share + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 02f319126deb4de19d95443304d97c0d + name: 'DB [{#DBNAME}]: Num of locks total' + type: DEPENDENT + key: 'pgsql.locks.total["{#DBNAME}"]' + delay: '0' + description: 'Total number of locks in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 16fd0bd835fd4db7b5ebb635780d9fe6 + name: 'DB [{#DBNAME}]: Get queries' + type: DEPENDENT + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get queries metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.select[pgsql.queries,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 100a8f6b18644a308f8117913862dcf4 + name: 'DB [{#DBNAME}]: Queries slow maintenance count' + type: DEPENDENT + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow maintenance query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: f430eda6eae54a918a03b27f34709f54 + name: 'DB [{#DBNAME}]: Queries max maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max maintenance query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 856a7e26192848e1aadb5bdff25cb92a + name: 'DB [{#DBNAME}]: Queries sum maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum maintenance query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: b324beea02f742c381d8241ba1e9382b + name: 'DB [{#DBNAME}]: Queries slow query count' + type: DEPENDENT + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: bc790cd8e2c24638ad8a6552af1b9bbe + expression: 'min(/PostgreSQL by ODBC/pgsql.queries.query.slow_count["{#DBNAME}"],5m)>{$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Too many slow queries' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Too many slow queries (over {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: WARNING + description: 'The number of detected slow queries exceeds the limit of {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}.' + tags: + - tag: scope + value: performance + - uuid: 0c0717a146344ec4a7abf4e6c35cb7ae + name: 'DB [{#DBNAME}]: Queries max query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: e2e686428e2b4f65b7dcbb9a6a3b0f93 + name: 'DB [{#DBNAME}]: Queries sum query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 06fb68c43e0144e8aa85c0acceeafbfc + name: 'DB [{#DBNAME}]: Queries slow transaction count' + type: DEPENDENT + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow transaction query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 0eced9bbc0d94332a1ec9fb45913b931 + name: 'DB [{#DBNAME}]: Queries max transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max transaction query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: a51a95891cd849de9eeaa6c4dbcbefbe + name: 'DB [{#DBNAME}]: Queries sum transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum transaction query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + graph_prototypes: + - uuid: 7b2e7e0542174a7a996bac8014f9a664 + name: 'DB [{#DBNAME}]: Locks' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.locks.total["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.locks.accessexclusive["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.locks.accessshare["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.locks.exclusive["{#DBNAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.locks.rowexclusive["{#DBNAME}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.locks.rowshare["{#DBNAME}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.locks.sharerowexclusive["{#DBNAME}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.locks.shareupdateexclusive["{#DBNAME}"]' + - sortorder: '8' + color: F230E0 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.locks.share["{#DBNAME}"]' + - uuid: 70065416f33d4a3a9046576a344e965a + name: 'DB [{#DBNAME}]: Number of bloating tables' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by ODBC' + key: 'db.odbc.select[pgsql.db.bloating_tables,,"Database={#DBNAME};{$PG.CONNSTRING.ODBC}"]' + - uuid: f9162816d4f740dd8e4863c726b64105 + name: 'DB [{#DBNAME}]: pg_stat_database metrics' + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + - sortorder: '8' + color: F230E0 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + - sortorder: '9' + color: 5CCD18 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + - sortorder: '10' + color: BB2A02 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + - sortorder: '11' + color: AC41A5 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + - sortorder: '12' + color: 89ABF8 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + - uuid: 79b2ba5736054e8a93e70d7af063a0b9 + name: 'DB [{#DBNAME}]: Queries' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + - sortorder: '5' + drawtype: GRADIENT_LINE + color: 6C59DC + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + - uuid: 7ee8911784824e8380dd07235779a5ea + name: 'DB [{#DBNAME}]: Size' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by ODBC' + key: 'db.odbc.select[pgsql.db.size,,"Database={#DBNAME};{$PG.CONNSTRING.ODBC}"]' + - uuid: 88a09d63e9214cf1bf8ee82ae485f442 + name: 'DB [{#DBNAME}]: Slow queries' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + - uuid: 46a6f3cdfff244a28cb712c4186afc7f + name: 'Replication discovery' + type: ODBC + key: 'db.odbc.select[pgsql.replication.process.discovery,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + delay: 15m + params: | + SELECT json_build_object('data',COALESCE(json_agg(json_build_object('{#APPLICATION_NAME}',application_name)), '[]')) + FROM pg_stat_replication + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#APPLICATION_NAME}' + value: '{$PG.LLD.FILTER.APPLICATION}' + formulaid: A + description: 'Discovers replication lag metrics.' + item_prototypes: + - uuid: 9e7797789d2c47efb9af2c86f8c6a93e + name: 'Application [{#APPLICATION_NAME}]: Get replication' + type: DEPENDENT + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect metrics from the "pg_stat_replication" about the application "{#APPLICATION_NAME}" that is connected to this WAL sender, which contains information about the WAL sender process, showing statistics about replication to that sender''s connected standby server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#APPLICATION_NAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'db.odbc.select[pgsql.replication.process,,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: raw + - uuid: 86109b6d1b084de186dcda5d455da992 + name: 'Application [{#APPLICATION_NAME}]: Replication flush lag' + type: DEPENDENT + key: 'pgsql.replication.process.flush_lag["{#APPLICATION_NAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written and flushed it (but not yet applied it). This can be used to gauge the delay that synchronous_commit level on incurred while committing if this server was configured as a synchronous standby.' + preprocessing: + - type: JSONPATH + parameters: + - $.flush_lag + master_item: + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: replication + - uuid: 2cad17fa29c24f0da0fffe962c337f13 + name: 'Application [{#APPLICATION_NAME}]: Replication replay lag' + type: DEPENDENT + key: 'pgsql.replication.process.replay_lag["{#APPLICATION_NAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written, flushed and applied it. This can be used to gauge the delay that synchronous_commit level remote_apply incurred while committing if this server was configured as a synchronous standby.' + preprocessing: + - type: JSONPATH + parameters: + - $.replay_lag + master_item: + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: replication + - uuid: f5f62a5cac254d5eb891beadd6ca950d + name: 'Application [{#APPLICATION_NAME}]: Replication write lag' + type: DEPENDENT + key: 'pgsql.replication.process.write_lag["{#APPLICATION_NAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written it (but not yet flushed it or applied it). This can be used to gauge the delay that synchronous_commit level remote_write incurred while committing if this server was configured as a synchronous standby.' + preprocessing: + - type: JSONPATH + parameters: + - $.write_lag + master_item: + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: replication + graph_prototypes: + - uuid: 52b70e3a3691467d8ca7a420d2f7f3c5 + name: 'Application [{#APPLICATION_NAME}]: Replication lag' + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.replication.process.flush_lag["{#APPLICATION_NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.replication.process.replay_lag["{#APPLICATION_NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by ODBC' + key: 'pgsql.replication.process.write_lag["{#APPLICATION_NAME}"]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: fee729c8c626409ba1849e0f6d99392c + name: 'Bgwriter metrics discovery (versions above 17)' + type: DEPENDENT + key: pgsql.bgwriter.above_17.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#BELOW_V17}' + value: 'false' + formulaid: A + description: 'Discovers "bgwriter" metrics for PostgreSQL version 17 and above.' + item_prototypes: + - uuid: 46c4d56f21b24f4face87858445e7b5e + name: 'Get bgwriter{#SINGLETON}' + type: ODBC + key: 'db.odbc.select[pgsql.bgwriter.above_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT row_to_json(T) FROM ( + SELECT + psc.num_timed AS checkpoints_timed, + psc.num_requested AS checkpoints_req, + psc.write_time AS checkpoint_write_time, + psc.sync_time AS checkpoint_sync_time, + psc.buffers_written AS buffers_checkpoint, + psb.buffers_clean AS buffers_clean, + psb.maxwritten_clean AS maxwritten_clean, + psb.buffers_alloc AS buffers_alloc + FROM + pg_stat_checkpointer AS psc, + pg_stat_bgwriter AS psb + ) T + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: | + Collect all metrics from pg_stat_bgwriter: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-BGWRITER-VIEW + tags: + - tag: component + value: raw + - uuid: 7c2521a1c02240d6846344cc447ffd45 + name: 'Bgwriter: Buffers allocated per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.buffers_alloc.rate.above_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of buffers allocated per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_alloc + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.above_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 52123eb6463b4d7d990a66398d773e0c + name: 'Checkpoint: Buffers written during checkpoints per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.buffers_checkpoint.rate.above_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of buffers written during checkpoints per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_checkpoint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.above_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: e29ed04f09044901a25e3865acf98965 + name: 'Checkpoint: Buffers written by the background writer per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.buffers_clean.rate.above_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of buffers written by the background writer per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.above_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 28219abecf7a44ff948ce97840263b41 + name: 'Checkpoint: Requested per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.checkpoints_req.rate.above_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of requested checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_req + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.above_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 8065cdd159d84ea69b99983abf0d6beb + name: 'Checkpoint: Scheduled per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.checkpoints_timed.rate.above_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of scheduled checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_timed + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.above_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 5a5d84878d22478aa856228b4486b55d + name: 'Bgwriter: Checkpoint sync time per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.checkpoint_sync_time.rate.above_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are synchronized to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_sync_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.above_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: a84ae8aceaf44abaa33d925757b71b8f + name: 'Checkpoint: Checkpoint write time per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.checkpoint_write_time.rate.above_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are written to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_write_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.above_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 70d6cea0481741d08a572e732b3e237d + name: 'Bgwriter: Number of bgwriter cleaning scan stopped per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.maxwritten_clean.rate.above_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of times the background writer stopped a cleaning scan because it had written too many buffers per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxwritten_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.above_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + master_item: + key: pgsql.bgwriter.lld + - uuid: fcbd89dc14aa4bd99446016d453f850d + name: 'Bgwriter metrics discovery (versions below 17)' + type: DEPENDENT + key: pgsql.bgwriter.below_17.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#BELOW_V17}' + value: 'true' + formulaid: A + description: 'Discovers "bgwriter" metrics for PostgreSQL below version 17.' + item_prototypes: + - uuid: 777e615655634c8bae2e13cef153314b + name: 'Get bgwriter{#SINGLETON}' + type: ODBC + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + history: '0' + value_type: TEXT + trends: '0' + params: | + SELECT row_to_json(T) FROM ( + SELECT checkpoints_timed, + checkpoints_req, + checkpoint_write_time, + checkpoint_sync_time, + buffers_checkpoint AS buffers_checkpoint, + buffers_clean AS buffers_clean, + maxwritten_clean, + buffers_backend AS buffers_backend, + buffers_backend_fsync, + buffers_alloc AS buffers_alloc + FROM pg_stat_bgwriter) T + username: '{$PG.USER}' + password: '{$PG.PASSWORD}' + description: | + Collect all metrics from pg_stat_bgwriter: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-BGWRITER-VIEW + tags: + - tag: component + value: raw + - uuid: cc397d603cec450593a9871dd39e6db6 + name: 'Bgwriter: Buffers allocated per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.buffers_alloc.rate.below_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of buffers allocated per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_alloc + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 09f43b8bf08c41839ef48f8aefc5dd39 + name: 'Bgwriter: Buffers written directly by a backend per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.buffers_backend.rate.below_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of buffers written directly by a backend per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: b734c475147040bfa431390e6b524f4c + name: 'Bgwriter: Times a backend executed its own fsync per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.buffers_backend_fsync.rate.below_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of times a backend had to execute its own fsync call per second (normally the background writer handles those even when the backend does its own write).' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend_fsync + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 38ea04f3a47f4dcda9b61c6866c0efe3 + name: 'Checkpoint: Buffers written during checkpoints per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.buffers_checkpoint.rate.below_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of buffers written during checkpoints per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_checkpoint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 9cf1b0c328d34490a66f79b32be20efd + name: 'Checkpoint: Buffers written by the background writer per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.buffers_clean.rate.below_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of buffers written by the background writer per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 05340503596c48b7b3e7ce763e1b22ef + name: 'Checkpoint: Requested per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.checkpoints_req.rate.below_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of requested checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_req + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 18f66c4149444c7b8b0190ac74488859 + name: 'Checkpoint: Scheduled per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.checkpoints_timed.rate.below_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of scheduled checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_timed + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: e7d10f58ada9468abc4ad7b4a9900c1c + name: 'Bgwriter: Checkpoint sync time per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.checkpoint_sync_time.rate.below_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are synchronized to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_sync_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: c7810e79f2d94f0e9a4f462d76b10a24 + name: 'Checkpoint: Checkpoint write time per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.checkpoint_write_time.rate.below_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are written to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_write_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + - uuid: 987ad2df6df14f1eabe2b1c6eb6713fc + name: 'Bgwriter: Number of bgwriter cleaning scan stopped per second{#SINGLETON}' + type: DEPENDENT + key: 'pgsql.bgwriter.maxwritten_clean.rate.below_17[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of times the background writer stopped a cleaning scan because it had written too many buffers per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxwritten_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'db.odbc.select[pgsql.bgwriter.below_17{#SINGLETON},,"Database={$PG.DATABASE};{$PG.CONNSTRING.ODBC}"]' + tags: + - tag: component + value: bgwriter + master_item: + key: pgsql.bgwriter.lld + tags: + - tag: class + value: database + - tag: target + value: postgresql + macros: + - macro: '{$PG.CONFLICTS.MAX.WARN}' + value: '0' + description: 'Maximum number of recovery conflicts for trigger expression.' + - macro: '{$PG.CONNSTRING.ODBC}' + value: Servername=localhost;Port=5432;Driver=/usr/lib64/psqlodbcw.so + description: 'Connection string for the PostgreSQL instance.' + - macro: '{$PG.CONN_TOTAL_PCT.MAX.WARN}' + value: '90' + description: 'Maximum percentage of current connections for trigger expression.' + - macro: '{$PG.DATABASE}' + value: postgres + description: 'Default PostgreSQL database for the connection.' + - macro: '{$PG.DEADLOCKS.MAX.WARN}' + value: '0' + description: 'Maximum number of detected deadlocks for trigger expression.' + - macro: '{$PG.LLD.FILTER.APPLICATION}' + value: .+ + description: 'Filter of discoverable applications.' + - macro: '{$PG.LLD.FILTER.DBNAME}' + value: .+ + description: 'Filter of discoverable databases.' + - macro: '{$PG.PASSWORD}' + value: '' + description: 'PostgreSQL user password.' + - macro: '{$PG.QUERY_ETIME.MAX.WARN}' + value: '30' + description: 'Execution time limit for count of slow queries.' + - macro: '{$PG.SLOW_QUERIES.MAX.WARN}' + value: '5' + description: 'Slow queries count threshold for a trigger.' + - macro: '{$PG.USER}' + value: zbx_monitor + description: 'PostgreSQL username.' + dashboards: + - uuid: 6f15f8b6e90b4d09b9e1d4fb323ac438 + name: 'PostgreSQL databases' + pages: + - widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by ODBC' + name: 'DB [{#DBNAME}]: pg_stat_database metrics' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by ODBC' + name: 'DB [{#DBNAME}]: Size' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by ODBC' + name: 'DB [{#DBNAME}]: Queries' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by ODBC' + name: 'DB [{#DBNAME}]: Locks' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by ODBC' + name: 'DB [{#DBNAME}]: Number of bloating tables' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by ODBC' + name: 'DB [{#DBNAME}]: Slow queries' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: 6e5062ae5345454f95cb8608b35eddf4 + name: 'PostgreSQL recovery role' + mappings: + - value: '0' + newvalue: Master + - value: '1' + newvalue: Standby + - uuid: 75393338fb514612a5f0ba57cec318b3 + name: 'PostgreSQL replication status' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - value: '2' + newvalue: Master + - uuid: f2af00a32d1e471a98b9e4e6148f68f3 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up diff --git a/PostgreSQL_by_Zabbix_agent.yaml b/PostgreSQL_by_Zabbix_agent.yaml new file mode 100644 index 0000000..303d58b --- /dev/null +++ b/PostgreSQL_by_Zabbix_agent.yaml @@ -0,0 +1,2126 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 399bd1ee587245ecac6f39beaa99886f + template: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL by Zabbix agent' + description: | + This template is designed for the deployment of PostgreSQL monitoring by Zabbix via Zabbix agent and uses user parameters to run SQL queries with the `psql` command-line tool. + + Note: + - The template requires `pg_isready` and `psql` utilities to be installed on the same host with Zabbix agent. + - The template requires files with SQL queries and user parameters that can be found in the Zabbix official repository: + https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/postgresql?at=refs%2Fheads%2Frelease%2F6.0 + + Setup: + + 1. Deploy Zabbix agent and create the PostgreSQL user for monitoring (`` at your discretion) with proper access rights to your PostgreSQL instance. + + For PostgreSQL version 10 and above: + CREATE USER zbx_monitor WITH PASSWORD '' INHERIT; + GRANT pg_monitor TO zbx_monitor; + + For PostgreSQL version 9.6 and below: + CREATE USER zbx_monitor WITH PASSWORD ''; + GRANT SELECT ON pg_stat_database TO zbx_monitor; + ALTER USER zbx_monitor WITH SUPERUSER; + + 2. Copy the `postgresql/` directory to the `zabbix` user home directory - `/var/lib/zabbix/`. The `postgresql/` directory contains the files with SQL queries needed to obtain metrics from PostgreSQL instance. + + If the home directory of the `zabbix` user doesn't exist, create it first: + mkdir -m u=rwx,g=rwx,o= -p /var/lib/zabbix + chown zabbix:zabbix /var/lib/zabbix + + 3. Copy the `template_db_postgresql.conf` file, containing user parameters, to the Zabbix agent configuration directory `/etc/zabbix/zabbix_agentd.d/` and restart Zabbix agent service. + + If you want to use SSL/TLS encryption to protect communications with the remote PostgreSQL instance, you can modify the connection string in user parameters. For example, to enable required encryption in transport mode without identity checks you could append `?sslmode=required` to the end of the connection string for all keys that use `psql`: + UserParameter=pgsql.bgwriter[*], psql -qtAX postgresql://"$3":"$4"@"$1":"$2"/"$5"?sslmode=required -f "/var/lib/zabbix/postgresql/pgsql.bgwriter.sql" + + Consult the PostgreSQL documentation about protection modes (https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-PROTECTION) and client connection parameters (https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLMODE). + + Also, it is assumed that you set up the PostgreSQL instance to work in the desired encryption mode. Check the PostgreSQL documentation (https://www.postgresql.org/docs/current/ssl-tcp.html) for details. + + 4. Edit the `pg_hba.conf` configuration file to allow connections for the user `zbx_monitor`. You can check the PostgreSQL documentation for examples (https://www.postgresql.org/docs/current/auth-pg-hba-conf.html). + + 5. Specify the host name or IP address in the `{$PG.HOST}` macro. Adjust the port number with `{$PG.PORT}` macro if needed. + + 6. Set the password that you specified in step 1 in the macro `{$PG.PASSWORD}`. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384190-%C2%A0discussion-thread-for-official-zabbix-template-db-postgresql + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + items: + - uuid: d17c6c15154d40d1afa5b1eafb2ed93e + name: 'Bgwriter: Buffers allocated per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_alloc.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers allocated per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_alloc + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 2c3ee691d4a54fb6b566739a3a648df4 + name: 'Bgwriter: Buffers written directly by a backend per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_backend.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written directly by a backend per second. Available in PostgreSQL versions prior to 17.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 77e1eb202a6346ce9df0f1bb2c078688 + name: 'Bgwriter: Times a backend executed its own fsync per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_backend_fsync.rate + delay: '0' + value_type: FLOAT + description: 'Number of times a backend had to execute its own fsync call per second (normally the background writer handles those even when the backend does its own write). Available in PostgreSQL versions prior to 17.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend_fsync + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: e29d26a48d0143579bf3acc6655cd659 + name: 'Checkpoint: Buffers written during checkpoints per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_checkpoint.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written during checkpoints per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_checkpoint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 5151183461a54d2bbfaad04b8cab3798 + name: 'Checkpoint: Buffers written by the background writer per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_clean.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written by the background writer per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: ff290c0602b9447e87240c1ecf467050 + name: 'Checkpoint: Requested per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoints_req.rate + delay: '0' + value_type: FLOAT + description: 'Number of requested checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_req + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + triggers: + - uuid: 65e7954489854ad3ad1698dead7c4c02 + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.bgwriter.checkpoints_req.rate) > {$PG.CHECKPOINTS_REQ.MAX.WARN}' + name: 'PostgreSQL: Required checkpoints occur too frequently' + event_name: 'PostgreSQL: Required checkpoints occur too frequently (over {$PG.CHECKPOINTS_REQ.MAX.WARN})' + priority: AVERAGE + description: | + Checkpoints are points in the sequence of transactions at which it is guaranteed that the heap and index data files have been updated with all information written before that checkpoint. At checkpoint time, all dirty data pages are flushed to disk and a special checkpoint record is written to the log file. + https://www.postgresql.org/docs/current/wal-configuration.html + tags: + - tag: scope + value: performance + - uuid: a5271230be8b431cb96580180e099b98 + name: 'Checkpoint: Scheduled per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoints_timed.rate + delay: '0' + value_type: FLOAT + description: 'Number of scheduled checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_timed + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 782d2368763b48ad8663aa9fb75c3326 + name: 'Checkpoint: Checkpoint sync time per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoint_sync_time.rate + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are synchronized to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_sync_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: b5e5f463978c46dd9401963f48ea72eb + name: 'Checkpoint: Checkpoint write time per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoint_write_time.rate + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are written to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_write_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: f273c71f92bf4ac0b6ec5a0a88d1239c + name: 'Bgwriter: Number of bgwriter cleaning scan stopped per second' + type: DEPENDENT + key: pgsql.bgwriter.maxwritten_clean.rate + delay: '0' + value_type: FLOAT + description: 'Number of times the background writer stopped a cleaning scan because it had written too many buffers per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxwritten_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 1fc5ba48a0974bd7bf965b5f130deded + name: 'Get bgwriter' + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: 1h + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_bgwriter: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-BGWRITER-VIEW + tags: + - tag: component + value: raw + triggers: + - uuid: 768d28b9360b46cda3065f5082ba97ac + expression: 'nodata(/PostgreSQL by Zabbix agent/pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],30m) = 1' + name: 'PostgreSQL: Failed to get items' + event_name: 'PostgreSQL: Failed to get items (no data for 30m)' + priority: WARNING + description: 'Zabbix has not received any data for items for the last 30 minutes.' + dependencies: + - name: 'PostgreSQL: Service is down' + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.ping["{$PG.HOST}","{$PG.PORT}"]) = 0' + tags: + - tag: scope + value: availability + - uuid: 70a7581fabd14e05bda762b79811187c + name: 'Cache hit ratio, %' + key: 'pgsql.cache.hit["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + value_type: FLOAT + units: '%' + description: 'Cache hit ratio.' + tags: + - tag: component + value: cache + triggers: + - uuid: 4d87cc71b40f4b59ad27f30f33b15a69 + expression: 'max(/PostgreSQL by Zabbix agent/pgsql.cache.hit["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],5m) < {$PG.CACHE_HITRATIO.MIN.WARN}' + name: 'PostgreSQL: Cache hit ratio too low' + event_name: 'PostgreSQL: Cache hit ratio too low (under {$PG.CACHE_HITRATIO.MIN.WARN} in 5m)' + priority: WARNING + description: 'Cache hit ratio is lower than {$PG.CACHE_HITRATIO.MIN.WARN} for 5m.' + tags: + - tag: scope + value: performance + - uuid: 248cbe5067324b9ca435f2aced5e2a5f + name: 'Config hash' + key: 'pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 15m + value_type: TEXT + trends: '0' + description: 'PostgreSQL configuration hash.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: application + triggers: + - uuid: b727cfa6d3de4063b6a2dcb6cc84e27b + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#1)<>last(/PostgreSQL by Zabbix agent/pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#2) and length(last(/PostgreSQL by Zabbix agent/pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]))>0' + name: 'PostgreSQL: Configuration has changed' + priority: INFO + description: 'PostgreSQL configuration has changed.' + tags: + - tag: scope + value: notice + - uuid: c78116d3acf24e6990ed27ba8008728c + name: 'Connections sum: Active' + type: DEPENDENT + key: pgsql.connections.sum.active + delay: '0' + description: 'Total number of connections executing a query.' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: be6eb6ecbfad420b889c58d1f1550b23 + name: 'Connections sum: Idle' + type: DEPENDENT + key: pgsql.connections.sum.idle + delay: '0' + description: 'Total number of connections waiting for a new client command.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 6471d014722c4072ae045df4c69578e3 + name: 'Connections sum: Idle in transaction' + type: DEPENDENT + key: pgsql.connections.sum.idle_in_transaction + delay: '0' + description: 'Total number of connections in a transaction state but not executing a query.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle_in_transaction + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 197cc14f55db485b891614c7b7ee2a51 + name: 'Connections sum: Prepared' + type: DEPENDENT + key: pgsql.connections.sum.prepared + delay: '0' + description: | + Total number of prepared transactions: + https://www.postgresql.org/docs/current/sql-prepare-transaction.html + preprocessing: + - type: JSONPATH + parameters: + - $.prepared + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 24d23377c7cd4cc5b63f98a261c2501c + name: 'Connections sum: Total' + type: DEPENDENT + key: pgsql.connections.sum.total + delay: '0' + description: 'Total number of connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 488050d9aa8e4c2ea5b3e991ec5ddacc + name: 'Connections sum: Total, %' + type: DEPENDENT + key: pgsql.connections.sum.total_pct + delay: '0' + units: '%' + description: 'Total number of connections, in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_pct + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 54ef12b8ff1e4383a3097c71478ceefa + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.connections.sum.total_pct,5m) > {$PG.CONN_TOTAL_PCT.MAX.WARN}' + name: 'PostgreSQL: Total number of connections is too high' + event_name: 'PostgreSQL: Total number of connections is too high (over {$PG.CONN_TOTAL_PCT.MAX.WARN} in 5m)' + priority: AVERAGE + description: 'Total number of current connections exceeds the limit of {$PG.CONN_TOTAL_PCT.MAX.WARN}% out of the maximum number of concurrent connections to the database server (the "max_connections" setting).' + tags: + - tag: scope + value: performance + - uuid: fadd1333189c4ed29db57cf2acd158d0 + name: 'Connections sum: Waiting' + type: DEPENDENT + key: pgsql.connections.sum.waiting + delay: '0' + description: | + Total number of waiting connections: + https://www.postgresql.org/docs/current/monitoring-stats.html#WAIT-EVENT-TABLE + preprocessing: + - type: JSONPATH + parameters: + - $.waiting + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: b0da0c4856a645ca8ef03405d2d8d4a5 + name: 'Get connections sum' + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_activity: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW + tags: + - tag: component + value: raw + - uuid: b44f263fb33e461e8c3d700fb7688c7b + name: 'Get dbstat' + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_database per database: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-DATABASE-VIEW + tags: + - tag: component + value: raw + - uuid: 7cee21f6225340ef80e9cdef7ce20b10 + name: 'Get locks' + key: 'pgsql.locks["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_locks per database: + https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-TABLES + tags: + - tag: component + value: raw + - uuid: f42bd73b3af6451b8a3a6113dcc1b675 + name: 'Ping time' + key: 'pgsql.ping.time["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + value_type: FLOAT + units: s + description: 'Used to get the `SELECT 1` query execution time.' + preprocessing: + - type: REGEX + parameters: + - 'Time:\s+(\d+\.\d+)\s+ms' + - \1 + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: e19b5630737b4c63886b5df77a3c748c + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.ping.time["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],5m) > {$PG.PING_TIME.MAX.WARN}' + name: 'PostgreSQL: Response too long' + event_name: 'PostgreSQL: Response too long (over {$PG.PING_TIME.MAX.WARN})' + priority: AVERAGE + description: 'Response is taking too long (over {$PG.PING_TIME.MAX.WARN} for 5m).' + dependencies: + - name: 'PostgreSQL: Service is down' + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.ping["{$PG.HOST}","{$PG.PORT}"]) = 0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f5bd615243b344cb88dac1e83436cc85 + name: Ping + key: 'pgsql.ping["{$PG.HOST}","{$PG.PORT}"]' + description: 'Used to test a connection to see if it is alive. It is set to 0 if the instance doesn''t accept the connections.' + valuemap: + name: 'Service state' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return value.search(/accepting connections/)>0 ? 1 : 0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 6d9c2b5353ce4f6baeeb0f254fb7d1e2 + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.ping["{$PG.HOST}","{$PG.PORT}"]) = 0' + name: 'PostgreSQL: Service is down' + priority: HIGH + description: 'Last test of a connection was unsuccessful.' + tags: + - tag: scope + value: availability + - uuid: 47bf580e1e4e48cf9c0e94fcf90288ac + name: 'Get queries' + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{$PG.QUERY_ETIME.MAX.WARN}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect all metrics by query execution time.' + tags: + - tag: component + value: raw + - uuid: d8a509bd011a4ecda5d439295e257e9d + name: 'Replication: Standby count' + key: 'pgsql.replication.count["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Number of standby servers.' + tags: + - tag: component + value: replication + - uuid: 21f8bea1141249c7a4dfafad5bc3ef41 + name: 'Replication: Lag in seconds' + key: 'pgsql.replication.lag.sec["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + units: s + description: 'Replication lag with master, in seconds.' + tags: + - tag: component + value: replication + triggers: + - uuid: 11831c52e86445498eed42de6a629b65 + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.replication.lag.sec["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],5m) > {$PG.REPL_LAG.MAX.WARN}' + name: 'PostgreSQL: Streaming lag with master is too high' + event_name: 'PostgreSQL: Streaming lag with master is too high (over {$PG.REPL_LAG.MAX.WARN} in 5m)' + priority: AVERAGE + description: 'Replication lag with master is higher than {$PG.REPL_LAG.MAX.WARN} for 5m.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 09f696124fca4c5b844bf66c9c912b87 + name: 'Replication: Recovery role' + key: 'pgsql.replication.recovery_role["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Replication role: 1 — recovery is still in progress (standby mode), 0 — master mode.' + valuemap: + name: 'PostgreSQL recovery role' + tags: + - tag: component + value: replication + - uuid: d449017462704508a4aad51a6b45fb30 + name: 'Replication: Status' + key: 'pgsql.replication.status["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Replication status: 0 — streaming is down, 1 — streaming is up, 2 — master mode.' + valuemap: + name: 'PostgreSQL replication status' + tags: + - tag: component + value: replication + triggers: + - uuid: aef1e1d2bab540f8ab738b4a3fad863c + expression: 'max(/PostgreSQL by Zabbix agent/pgsql.replication.status["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],5m)=0' + name: 'PostgreSQL: Replication is down' + priority: AVERAGE + description: 'Replication is enabled and data streaming was down for 5m.' + tags: + - tag: scope + value: availability + - uuid: 4883717865c84c19b48d46f009317de2 + name: 'Transactions: Max active transaction time' + type: DEPENDENT + key: pgsql.transactions.active + delay: '0' + value_type: FLOAT + units: s + description: 'Current max active transaction time.' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: 4c89121d71a14c15b6169417ea69d0a3 + name: 'Transactions: Max idle transaction time' + type: DEPENDENT + key: pgsql.transactions.idle + delay: '0' + value_type: FLOAT + units: s + description: 'Current max idle transaction time.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: 0ee43ddd9da246d19097107b45e4c8e8 + name: 'Transactions: Max prepared transaction time' + type: DEPENDENT + key: pgsql.transactions.prepared + delay: '0' + value_type: FLOAT + units: s + description: 'Current max prepared transaction time.' + preprocessing: + - type: JSONPATH + parameters: + - $.prepared + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: da341b2011714a1f994ecbe96bd52155 + name: 'Transactions: Max waiting transaction time' + type: DEPENDENT + key: pgsql.transactions.waiting + delay: '0' + value_type: FLOAT + units: s + description: 'Current max waiting transaction time.' + preprocessing: + - type: JSONPATH + parameters: + - $.waiting + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: ff26a1c256bd40978f49a7a025538aa1 + name: 'Get transactions' + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect metrics by transaction execution time.' + tags: + - tag: component + value: raw + - uuid: 6418a2f286e64ecabf2295fca063f8af + name: Uptime + key: 'pgsql.uptime["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + units: uptime + description: 'Time since the server started.' + tags: + - tag: component + value: application + triggers: + - uuid: 85565aba402740868a16c0e4639a98fc + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.uptime["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]) < 10m' + name: 'PostgreSQL: Service has been restarted' + event_name: 'PostgreSQL: Service has been restarted (uptime < 10m)' + priority: AVERAGE + description: 'PostgreSQL uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 321525ebcea44396922e96deec2e8ad1 + name: Version + key: 'pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 15m + value_type: CHAR + trends: '0' + description: 'PostgreSQL version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + triggers: + - uuid: 8111eb42b0e74fffb43da474677ebc2f + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#1)<>last(/PostgreSQL by Zabbix agent/pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#2) and length(last(/PostgreSQL by Zabbix agent/pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]))>0' + name: 'PostgreSQL: Version has changed' + event_name: 'PostgreSQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 5385ec7d39514039a641d18cba335ddc + name: 'WAL: Segments count' + type: DEPENDENT + key: pgsql.wal.count + delay: '0' + description: 'Number of WAL segments.' + preprocessing: + - type: JSONPATH + parameters: + - $.count + master_item: + key: 'pgsql.wal.stat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: wal + - uuid: 7cd6c524ecab41f9a22489866d503361 + name: 'Get WAL' + key: 'pgsql.wal.stat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect write-ahead log (WAL) metrics.' + tags: + - tag: component + value: raw + - uuid: 5cc9c67621cc46e0a42b1eb79bda83b3 + name: 'WAL: Bytes written' + type: DEPENDENT + key: pgsql.wal.write + delay: '0' + units: B + description: 'WAL write, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.write + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.wal.stat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: wal + discovery_rules: + - uuid: 5c4c658507394f5bb362e601f7c59d63 + name: 'Database discovery' + key: 'pgsql.discovery.db["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 1h + filter: + conditions: + - macro: '{#DBNAME}' + value: '{$PG.LLD.FILTER.DBNAME}' + formulaid: A + description: | + Discovers databases (DB) in the database management system (DBMS), except: + - templates; + - default "postgres" DB; + - DBs that do not allow connections. + item_prototypes: + - uuid: 69575e9785184ef5be2502e3cc282220 + name: 'DB [{#DBNAME}]: Database size' + key: 'pgsql.db.size["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{#DBNAME}"]' + delay: 15m + units: B + description: 'Database size.' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 615e6567a85e421bb06ab8cac0eaba69 + name: 'DB [{#DBNAME}]: Blocks hit per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of times per second disk blocks were found already in the buffer cache, so that a read was not necessary.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_hit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: cache + - tag: database + value: '{#DBNAME}' + - uuid: 9136517d08b447869e5b8f5fd684c3b9 + name: 'DB [{#DBNAME}]: Disk blocks read per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of disk blocks read per second in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: a76f6d28995441ff9fe28bbc09445e64 + name: 'DB [{#DBNAME}]: Detected conflicts per second' + type: DEPENDENT + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of queries canceled due to conflicts with recovery in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.conflicts + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 3b51f02258bd4e02829f04ca016dd01d + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.dbstat.conflicts.rate["{#DBNAME}"],5m) > {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Too many recovery conflicts' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Too many recovery conflicts (over {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: AVERAGE + description: | + The primary and standby servers are in many ways loosely connected. Actions on the primary will have an effect on the standby. As a result, there is potential for negative interactions or conflicts between them. + https://www.postgresql.org/docs/current/hot-standby.html#HOT-STANDBY-CONFLICT + tags: + - tag: scope + value: performance + - uuid: b874cc2dd80643208c2479ad25fae0ac + name: 'DB [{#DBNAME}]: Detected deadlocks per second' + type: DEPENDENT + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of detected deadlocks in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.deadlocks + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: deadlocks + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 3bee63fa04d94586937e22aafab9bdd8 + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.dbstat.deadlocks.rate["{#DBNAME}"],5m) > {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Deadlock occurred' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Deadlock occurred (over {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: HIGH + description: 'Number of deadlocks detected per second exceeds {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} for 5m.' + tags: + - tag: scope + value: availability + - uuid: 52c20fc8faad42ae8d255990ce14d3cd + name: 'DB [{#DBNAME}]: Get dbstat' + type: DEPENDENT + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get dbstat metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: d235ead54c8b41f9a91398c75383e5d7 + name: 'DB [{#DBNAME}]: Temp_bytes written per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total amount of data written to temporary files by queries in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: af4e35eee1764d3f97d9c1218867f885 + name: 'DB [{#DBNAME}]: Temp_files created per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + delay: '0' + description: 'Total number of temporary files created by queries in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_files + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 35c6f93aefe4439bbc36f2f358440b16 + name: 'DB [{#DBNAME}]: Tuples deleted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows deleted by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_deleted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 92f33d96f8a348088cdba593c0e66929 + name: 'DB [{#DBNAME}]: Tuples fetched per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows fetched by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_fetched + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 8c03c87a44fe43928c32087ca7561e88 + name: 'DB [{#DBNAME}]: Tuples inserted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows inserted by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_inserted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: f6d378f4e38e455fa5a12467fe977657 + name: 'DB [{#DBNAME}]: Tuples returned per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of rows returned by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_returned + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 4c8de8c1064d43ffa18c4f37fead37f7 + name: 'DB [{#DBNAME}]: Tuples updated per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows updated by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_updated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 81c33f5b3c31475fa5f28f4ad149a328 + name: 'DB [{#DBNAME}]: Commits per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of transactions in this database that have been committed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_commit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: 8e5080186d034323be21473099b0b0ce + name: 'DB [{#DBNAME}]: Rollbacks per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of transactions in this database that have been rolled back.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_rollback + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: df9dd9bac2a54f1085b29fb22b394a1f + name: 'DB [{#DBNAME}]: Frozen XID before autovacuum, %' + type: DEPENDENT + key: 'pgsql.frozenxid.prc_before_av["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Preventing Transaction ID Wraparound Failures: + https://www.postgresql.org/docs/current/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND + preprocessing: + - type: JSONPATH + parameters: + - $.prc_before_av + master_item: + key: 'pgsql.frozenxid["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: 44ddd66ea37449cb8fab6979b98dfd3c + name: 'DB [{#DBNAME}]: Frozen XID before stop, %' + type: DEPENDENT + key: 'pgsql.frozenxid.prc_before_stop["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Preventing Transaction ID Wraparound Failures: + https://www.postgresql.org/docs/current/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND + preprocessing: + - type: JSONPATH + parameters: + - $.prc_before_stop + master_item: + key: 'pgsql.frozenxid["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 709df9c1e29a4ff68a3de9423ff7ae58 + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.frozenxid.prc_before_stop["{#DBNAME}"])<{$PG.FROZENXID_PCT_STOP.MIN.HIGH:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: VACUUM FREEZE is required to prevent wraparound' + event_name: 'PostgreSQL: DB [{#DBNAME}]: VACUUM FREEZE is required to prevent wraparound (frozen XID less than {$PG.FROZENXID_PCT_STOP.MIN.HIGH:"{#DBNAME}"} %)' + priority: AVERAGE + description: | + Preventing Transaction ID Wraparound Failures: + https://www.postgresql.org/docs/current/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND + tags: + - tag: scope + value: availability + - uuid: ddf6d0b7b5fe4cbbb540687051b8e5f5 + name: 'DB [{#DBNAME}]: Get frozen XID' + key: 'pgsql.frozenxid["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 3d0acf4b45fc4a72bb2a214222f93f2a + name: 'DB [{#DBNAME}]: Num of locks total' + type: DEPENDENT + key: 'pgsql.locks.total["{#DBNAME}"]' + delay: '0' + description: 'Total number of locks in this database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].total' + master_item: + key: 'pgsql.locks["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: ef7d3c9866df44aa9b378e7f125a34de + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.locks.total["{#DBNAME}"],5m)>{$PG.LOCKS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Number of locks is too high' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Number of locks is too high (over {$PG.LOCKS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: ac226e85268c463786e297944339ccf5 + name: 'DB [{#DBNAME}]: Get queries' + type: DEPENDENT + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get queries metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 939ab05c71ed4be9979662203ebba980 + name: 'DB [{#DBNAME}]: Queries slow maintenance count' + type: DEPENDENT + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow maintenance query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: bbc8f9bf86394cf28e0c2db44ee4711d + name: 'DB [{#DBNAME}]: Queries max maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max maintenance query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: f1427228bfa14ad3b7bb9d63bcfaec59 + name: 'DB [{#DBNAME}]: Queries sum maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum maintenance query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 5d937f46f4684f1e8253ec62e0f75379 + name: 'DB [{#DBNAME}]: Queries slow query count' + type: DEPENDENT + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: facc8f6976664da4ad5567d270f0f311 + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.queries.query.slow_count["{#DBNAME}"],5m)>{$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Too many slow queries' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Too many slow queries (over {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: WARNING + description: 'The number of detected slow queries exceeds the limit of {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}.' + tags: + - tag: scope + value: performance + - uuid: 044cc16d0a2f46b28d88eff86c33b30b + name: 'DB [{#DBNAME}]: Queries max query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: c6232400b39c4564a30a403859ffb4ee + name: 'DB [{#DBNAME}]: Queries sum query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: f7099043ea6345f0a5531f70f9573a3e + name: 'DB [{#DBNAME}]: Queries slow transaction count' + type: DEPENDENT + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow transaction query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: c6800ca30a564766ba745e875cb4e929 + name: 'DB [{#DBNAME}]: Queries max transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max transaction query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 0eda974576794768ac9ddc592ff27e19 + name: 'DB [{#DBNAME}]: Queries sum transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum transaction query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: cafcc00cce824c33a321da0e9ecc7f6e + name: 'DB [{#DBNAME}]: Index scans per second' + type: DEPENDENT + key: 'pgsql.scans.idx.rate["{#DBNAME}"]' + delay: '0' + description: 'Number of index scans in the database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.idx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.scans["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: scans + - tag: database + value: '{#DBNAME}' + - uuid: f07396ca9d224e1b819f22efe6c4259d + name: 'DB [{#DBNAME}]: Sequential scans per second' + type: DEPENDENT + key: 'pgsql.scans.seq.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of sequential scans in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.seq + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.scans["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: scans + - tag: database + value: '{#DBNAME}' + - uuid: 4bf92e4b0fed4d32b808b299d9e1fb0c + name: 'DB [{#DBNAME}]: Get scans' + key: 'pgsql.scans["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Number of scans done for table/index in this database.' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + graph_prototypes: + - uuid: 3f8124b817f2437096c620d62ec2e055 + name: 'DB [{#DBNAME}]: Block hit/read' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + - uuid: 6bd0a0d65b8d43ad946b145cf8a8b533 + name: 'DB [{#DBNAME}]: Database size' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.db.size["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{#DBNAME}"]' + - uuid: 41e765d906324595a396d8985b204ff5 + name: 'DB [{#DBNAME}]: Events' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + - uuid: 2b260fdf7623476095429434b5c79041 + name: 'DB [{#DBNAME}]: Locks' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.locks.total["{#DBNAME}"]' + - uuid: 8a60a92b41b146f49145b86bab559b2e + name: 'DB [{#DBNAME}]: Queries' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + - sortorder: '5' + drawtype: GRADIENT_LINE + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + - uuid: 93518b06f71e46ada3dabefa1726b867 + name: 'DB [{#DBNAME}]: Slow queries' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + - uuid: 779b872280ad46c7a6cdf95c2df7c646 + name: 'DB [{#DBNAME}]: Temp files' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + - uuid: f10be22e3bac4d66936c34ec99446c64 + name: 'DB [{#DBNAME}]: Tuples' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + tags: + - tag: class + value: database + - tag: target + value: postgresql + macros: + - macro: '{$PG.CACHE_HITRATIO.MIN.WARN}' + value: '90' + description: 'Minimum cache hit ratio percentage for trigger expression.' + - macro: '{$PG.CHECKPOINTS_REQ.MAX.WARN}' + value: '5' + description: 'Maximum required checkpoint occurrences for trigger expression.' + - macro: '{$PG.CONFLICTS.MAX.WARN}' + value: '0' + description: 'Maximum number of recovery conflicts for trigger expression.' + - macro: '{$PG.CONN_TOTAL_PCT.MAX.WARN}' + value: '90' + description: 'Maximum percentage of current connections for trigger expression.' + - macro: '{$PG.DATABASE}' + value: postgres + description: 'Default PostgreSQL database for the connection.' + - macro: '{$PG.DEADLOCKS.MAX.WARN}' + value: '0' + description: 'Maximum number of detected deadlocks for trigger expression.' + - macro: '{$PG.FROZENXID_PCT_STOP.MIN.HIGH}' + value: '75' + description: 'Minimum frozen XID before stop percentage for trigger expression.' + - macro: '{$PG.HOST}' + value: localhost + description: 'Hostname or IP of PostgreSQL host.' + - macro: '{$PG.LLD.FILTER.DBNAME}' + value: .+ + description: 'Filter of discoverable databases.' + - macro: '{$PG.LOCKS.MAX.WARN}' + value: '100' + description: 'Maximum number of locks for trigger expression.' + - macro: '{$PG.PASSWORD}' + value: '' + description: 'PostgreSQL user password.' + - macro: '{$PG.PING_TIME.MAX.WARN}' + value: 1s + description: 'Maximum time of connection response for trigger expression.' + - macro: '{$PG.PORT}' + value: '5432' + description: 'PostgreSQL service port.' + - macro: '{$PG.QUERY_ETIME.MAX.WARN}' + value: '30' + description: 'Execution time limit for count of slow queries.' + - macro: '{$PG.REPL_LAG.MAX.WARN}' + value: 10m + description: 'Maximum replication lag time for trigger expression.' + - macro: '{$PG.SLOW_QUERIES.MAX.WARN}' + value: '5' + description: 'Slow queries count threshold for a trigger.' + - macro: '{$PG.USER}' + value: zbx_monitor + description: 'PostgreSQL username.' + dashboards: + - uuid: d95f29826778497a9ed265e0c335fd0f + name: 'PostgreSQL databases' + pages: + - widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB [{#DBNAME}]: Tuples' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB [{#DBNAME}]: Block hit/read' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB [{#DBNAME}]: Locks' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + 'y': '15' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB [{#DBNAME}]: Queries' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB [{#DBNAME}]: Events' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB [{#DBNAME}]: Temp files' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB [{#DBNAME}]: Database size' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB [{#DBNAME}]: Slow queries' + - type: STRING + name: reference + value: AAAAH + - uuid: f2ceabf59fd64ca9828ea55e9b9668bd + name: 'PostgreSQL stat' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL connections' + - type: STRING + name: reference + value: AAAAI + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL ping' + - type: STRING + name: reference + value: AAAAK + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL replication lag' + - type: STRING + name: reference + value: AAAAM + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL bgwriter' + - type: STRING + name: reference + value: AAAAO + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL transactions' + - type: STRING + name: reference + value: AAAAJ + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL uptime' + - type: STRING + name: reference + value: AAAAL + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL WAL' + - type: STRING + name: reference + value: AAAAN + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL checkpoints' + - type: STRING + name: reference + value: AAAAP + valuemaps: + - uuid: 2e376ee568d04e7bbe98cbae4181f313 + name: 'PostgreSQL recovery role' + mappings: + - value: '0' + newvalue: Master + - value: '1' + newvalue: Standby + - uuid: 7f553f18ef6544ceaa4b50c4ebf0e583 + name: 'PostgreSQL replication status' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - value: '2' + newvalue: Master + - uuid: 372bc939f3924aafa13c4821b83a9276 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 6b4b92c62cb94e10b11f218ed35f6211 + name: 'PostgreSQL bgwriter' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.buffers_alloc.rate + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.buffers_clean.rate + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.buffers_backend.rate + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.buffers_checkpoint.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.maxwritten_clean.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.buffers_backend_fsync.rate + - uuid: 4a105d193df64be7898ac19a2f07faa4 + name: 'PostgreSQL checkpoints' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.checkpoints_timed.rate + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.checkpoints_req.rate + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.checkpoint_sync_time.rate + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.checkpoint_write_time.rate + - uuid: 8d41d719832049a5a1fcd6f4da67fb6a + name: 'PostgreSQL connections' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.total + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.total_pct + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.active + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.idle + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.idle_in_transaction + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.prepared + - sortorder: '6' + color: C7A72D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.waiting + - uuid: 1e9a55ee61824779a9f46f42ec21abef + name: 'PostgreSQL ping' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.ping["{$PG.HOST}","{$PG.PORT}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.ping.time["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + - uuid: d8cf31fc39584a63b9384d9c3ebf40ee + name: 'PostgreSQL replication lag' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.replication.lag.sec["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + - uuid: 10d1de74e9d848399ca038055e5cc8ce + name: 'PostgreSQL transactions' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.transactions.active + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.transactions.idle + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.transactions.prepared + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.transactions.waiting + - uuid: 45fe7967596741129b4f2462922636bf + name: 'PostgreSQL uptime' + show_triggers: 'NO' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.uptime["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.cache.hit["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + - uuid: 93ca2dc7a3ff4a458c45e2a56390ce72 + name: 'PostgreSQL WAL' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.wal.write + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.wal.count diff --git a/PostgreSQL_by_Zabbix_agent_2.yaml b/PostgreSQL_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..f29ade9 --- /dev/null +++ b/PostgreSQL_by_Zabbix_agent_2.yaml @@ -0,0 +1,2425 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: d0ef7d659a8f4beaaabfc4b6134e737a + template: 'PostgreSQL by Zabbix agent 2' + name: 'PostgreSQL by Zabbix agent 2' + description: | + This template is designed for the deployment of PostgreSQL monitoring by Zabbix via Zabbix agent 2 and uses a loadable plugin to run SQL queries. + + Setup: + + 1. Deploy Zabbix agent 2 with the PostgreSQL plugin. Starting with Zabbix versions 6.0.10 / 6.2.4 / 6.4 PostgreSQL metrics are moved to a loadable plugin and require installation of a separate package or compilation of the plugin from sources (https://www.zabbix.com/documentation/7.0/manual/extensions/plugins/build). + + 2. Create the PostgreSQL user for monitoring (`` at your discretion) and inherit permissions from the default role `pg_monitor`: + CREATE USER zbx_monitor WITH PASSWORD '' INHERIT; + GRANT pg_monitor TO zbx_monitor; + + 3. Edit the `pg_hba.conf` configuration file to allow connections for the user `zbx_monitor`. You can check the PostgreSQL documentation for examples (https://www.postgresql.org/docs/current/auth-pg-hba-conf.html). + + 4. Set the connection string for the PostgreSQL instance in the `{$PG.CONNSTRING.AGENT2}` macro as URI, such as ``, or specify the named session - ``. + + Note: if you want to use SSL/TLS encryption to protect communications with the remote PostgreSQL instance, a named session must be used. In that case, the instance URI should be specified in the `Plugins.PostgreSQL.Sessions.*.Uri` parameter in the PostgreSQL plugin configuration files alongside all the encryption parameters (type, certificate/key filepaths if needed etc.). + + You can check the PostgreSQL plugin documentation (https://git.zabbix.com/projects/AP/repos/postgresql/browse?at=refs%2Fheads%2Frelease%2F7.0) for details about agent plugin parameters and named sessions. + + Also, it is assumed that you set up the PostgreSQL instance to work in the desired encryption mode. Check the PostgreSQL documentation (https://www.postgresql.org/docs/current/ssl-tcp.html) for details. + + Note that plugin TLS certificate validation relies on checking the Subject Alternative Names (SAN) instead of the Common Name (CN), check the cryptography package documentation (https://pkg.go.dev/crypto/x509) for details. + + For example, to enable required encryption in transport mode without identity checks you could create the file `/etc/zabbix/zabbix_agent2.d/postgresql_myconn.conf` with the following configuration for the named session `myconn` (replace `` with the address of the PostgreSQL instance): + Plugins.PostgreSQL.Sessions.myconn.Uri=tcp://:5432 + Plugins.PostgreSQL.Sessions.myconn.TLSConnect=required + + Then set the `{$PG.CONNSTRING.AGENT2}` macro to `myconn` to use this named session. + + 5. Set the password that you specified in step 2 in the macro `{$PG.PASSWORD}`. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384190-%C2%A0discussion-thread-for-official-zabbix-template-db-postgresql + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Databases + items: + - uuid: 04b1c83463f247b0a42f17c5d0a9ce14 + name: 'Archive: Count of archived files' + type: DEPENDENT + key: pgsql.archive.count_archived_files + delay: '0' + value_type: FLOAT + description: 'Count of archived files.' + preprocessing: + - type: JSONPATH + parameters: + - $.archived_count + master_item: + key: 'pgsql.archive["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: archive + - uuid: 729208d50ef64e50b0bb342899e211c2 + name: 'Archive: Count of files in archive_status need to archive' + type: DEPENDENT + key: pgsql.archive.count_files_to_archive + delay: '0' + value_type: FLOAT + description: 'Count of files to archive.' + preprocessing: + - type: JSONPATH + parameters: + - $.count_files + master_item: + key: 'pgsql.archive["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: archive + - uuid: b60523c62afc4813aeb64cf9598fb7bd + name: 'Archive: Count of failed attempts to archive files' + type: DEPENDENT + key: pgsql.archive.failed_trying_to_archive + delay: '0' + value_type: FLOAT + description: 'Count of failed attempts to archive files.' + preprocessing: + - type: JSONPATH + parameters: + - $.failed_count + master_item: + key: 'pgsql.archive["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: archive + - uuid: 285f434f79864d24a4e66d5a49c539e9 + name: 'Archive: Size of files need to archive' + type: DEPENDENT + key: pgsql.archive.size_files_to_archive + delay: '0' + value_type: FLOAT + description: 'Size of files to archive.' + preprocessing: + - type: JSONPATH + parameters: + - $.size_files + master_item: + key: 'pgsql.archive["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: archive + - uuid: e9f4284fd3a1459e9c519dbdd8ee3425 + name: 'Get archive' + key: 'pgsql.archive["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect archive status metrics.' + tags: + - tag: component + value: raw + - uuid: d9169b4b31554063b9d01d0d27b4beee + name: 'Count of autovacuum workers' + key: 'pgsql.autovacuum.count["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + value_type: FLOAT + description: 'Number of autovacuum workers.' + tags: + - tag: component + value: system + - uuid: c49f777ae0db48879bc946989bfc36f6 + name: 'Bgwriter: Buffers allocated per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_alloc.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers allocated per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_alloc + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 1624e89567824e0493492a3dcc979788 + name: 'Bgwriter: Buffers written directly by a backend per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_backend.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written directly by a backend per second. Available in PostgreSQL versions prior to 17.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 6e5990d8a0854efd83b3e6a57aa2c2f9 + name: 'Bgwriter: Times a backend executed its own fsync per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_backend_fsync.rate + delay: '0' + value_type: FLOAT + description: 'Number of times a backend had to execute its own fsync call per second (normally the background writer handles those even when the backend does its own write). Available in PostgreSQL versions prior to 17.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend_fsync + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 3bf0496d313f4dfea67c95010be54372 + name: 'Checkpoint: Buffers written during checkpoints per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_checkpoint.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written during checkpoints per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_checkpoint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 65f4aeedbc7d40ed9a14e0dbd8024c4b + name: 'Checkpoint: Buffers written by the background writer per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_clean.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written by the background writer per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 23fcb5ee8c19436b827001114961eb16 + name: 'Checkpoint: Requested per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoints_req.rate + delay: '0' + value_type: FLOAT + description: 'Number of requested checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_req + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 9c578a8e072940728cc00d94f52cec8d + name: 'Checkpoint: Scheduled per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoints_timed.rate + delay: '0' + value_type: FLOAT + description: 'Number of scheduled checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_timed + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: b94507037a584b9391f610e59dd34e6c + name: 'Checkpoint: Checkpoint sync time per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoint_sync_time.rate + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are synchronized to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_sync_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 26839587c46043caa2991e973962b954 + name: 'Checkpoint: Checkpoint write time per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoint_write_time.rate + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are written to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_write_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: b83939ecfb094a7e9eb42cd9a7e2695c + name: 'Bgwriter: Number of bgwriter cleaning scan stopped per second' + type: DEPENDENT + key: pgsql.bgwriter.maxwritten_clean.rate + delay: '0' + value_type: FLOAT + description: 'Number of times the background writer stopped a cleaning scan because it had written too many buffers per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxwritten_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 6020e17c25104cbfba182e9cddfe6336 + name: 'Get bgwriter' + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_bgwriter: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-BGWRITER-VIEW + tags: + - tag: component + value: raw + - uuid: b98d2328694f44598f2177b3f93d4b90 + name: 'Cache hit ratio, %' + type: CALCULATED + key: pgsql.cache.hit + value_type: FLOAT + units: '%' + params: 'last(//pgsql.dbstat.sum.blks_hit.rate) * 100 / (last(//pgsql.dbstat.sum.blks_hit.rate) + last(//pgsql.dbstat.sum.blks_read.rate))' + description: 'Cache hit ratio.' + tags: + - tag: component + value: cache + - uuid: 2ea55460f0d34063ae4ab65b74ec852c + name: 'Connections sum: Active' + type: DEPENDENT + key: pgsql.connections.sum.active + delay: '0' + description: 'Total number of connections executing a query.' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 69f14028e98b48d489fbd7345c2213dd + name: 'Connections sum: Disabled' + type: DEPENDENT + key: pgsql.connections.sum.disabled + delay: '0' + description: 'Total number of disabled connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.disabled + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 62a2401041724b4888bf058035dc6a0c + name: 'Connections sum: Fastpath function call' + type: DEPENDENT + key: pgsql.connections.sum.fastpath_function_call + delay: '0' + description: 'Total number of connections executing a fast-path function.' + preprocessing: + - type: JSONPATH + parameters: + - $.fastpath_function_call + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: fc3b357cc8a24c4aad60784d1bfb7e18 + name: 'Connections sum: Idle' + type: DEPENDENT + key: pgsql.connections.sum.idle + delay: '0' + description: 'Total number of connections waiting for a new client command.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: b900a8123dfa48e0ac8fd4b92ae8678d + name: 'Connections sum: Idle in transaction' + type: DEPENDENT + key: pgsql.connections.sum.idle_in_transaction + delay: '0' + description: 'Total number of connections in a transaction state but not executing a query.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle_in_transaction + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 99b0a3e14af44924b0319a0a9f6c16c7 + name: 'Connections sum: Idle in transaction (aborted)' + type: DEPENDENT + key: pgsql.connections.sum.idle_in_transaction_aborted + delay: '0' + description: 'Total number of connections in a transaction state but not executing a query, and where one of the statements in the transaction caused an error.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle_in_transaction_aborted + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 194c41f88e9e44879a70033913dd41d3 + name: 'Connections sum: Prepared' + type: DEPENDENT + key: pgsql.connections.sum.prepared + delay: '0' + description: | + Total number of prepared transactions: + https://www.postgresql.org/docs/current/sql-prepare-transaction.html + preprocessing: + - type: JSONPATH + parameters: + - $.prepared + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 1ec042e5853b430d9d7982c53c3fcf14 + name: 'Connections sum: Total' + type: DEPENDENT + key: pgsql.connections.sum.total + delay: '0' + description: 'Total number of connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 101149dd68994084a1cdab82c9d064f0 + name: 'Connections sum: Total, %' + type: DEPENDENT + key: pgsql.connections.sum.total_pct + delay: '0' + units: '%' + description: 'Total number of connections, in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_pct + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 1d0903401af64d93ac16761808d672ca + expression: 'min(/PostgreSQL by Zabbix agent 2/pgsql.connections.sum.total_pct,5m) > {$PG.CONN_TOTAL_PCT.MAX.WARN}' + name: 'PostgreSQL: Total number of connections is too high' + event_name: 'PostgreSQL: Total number of connections is too high (over {$PG.CONN_TOTAL_PCT.MAX.WARN} in 5m)' + priority: AVERAGE + description: 'Total number of current connections exceeds the limit of {$PG.CONN_TOTAL_PCT.MAX.WARN}% out of the maximum number of concurrent connections to the database server (the "max_connections" setting).' + tags: + - tag: scope + value: performance + - uuid: f2c298008b914434b96da85a985e4a54 + name: 'Connections sum: Waiting' + type: DEPENDENT + key: pgsql.connections.sum.waiting + delay: '0' + description: | + Total number of waiting connections: + https://www.postgresql.org/docs/current/monitoring-stats.html#WAIT-EVENT-TABLE + preprocessing: + - type: JSONPATH + parameters: + - $.waiting + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: e926ecd967f342bf90e9923825147d64 + name: 'Get connections sum' + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_activity: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW + tags: + - tag: component + value: raw + - uuid: 1cab825fac8a49ba96dfbf7a696be729 + name: 'Custom queries' + key: 'pgsql.custom.query["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}",""]' + history: 1h + value_type: TEXT + trends: '0' + status: DISABLED + description: 'Execute custom queries from file *.sql (check for option Plugins.Postgres.CustomQueriesPath at agent configuration).' + tags: + - tag: component + value: application + - uuid: 5c6de0fe332043bfb35c999b10893e4c + name: 'Dbstat: Hit blocks read per second' + type: DEPENDENT + key: pgsql.dbstat.sum.blks_hit.rate + delay: '0' + value_type: FLOAT + description: 'Number of times per second disk blocks were found already in the buffer cache' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_hit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: cache + - uuid: 4dc3f2c23dfd4dfebe024a5c2d4409ae + name: 'Dbstat: Disk blocks read per second' + type: DEPENDENT + key: pgsql.dbstat.sum.blks_read.rate + delay: '0' + value_type: FLOAT + description: 'Number of disk blocks read per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: storage + - uuid: 619211cc2afa4a159f36abf1a17d5476 + name: 'Dbstat: Blocks read time' + type: DEPENDENT + key: pgsql.dbstat.sum.blk_read_time + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent reading data file blocks by backends.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_read_time + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: storage + - uuid: fba3b51d644c4c16ac71b3eda1be1701 + name: 'Dbstat: Blocks write time' + type: DEPENDENT + key: pgsql.dbstat.sum.blk_write_time + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent writing data file blocks by backends.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_write_time + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: storage + - uuid: 1b98b9c95b32424baa68c354496ed2de + name: 'Dbstat: Checksum failures per second' + type: DEPENDENT + key: pgsql.dbstat.sum.checksum_failures.rate + delay: '0' + value_type: FLOAT + description: 'Number of data page checksum failures per second detected (or on a shared object), or NULL if data checksums are not enabled. This metric is available since PostgreSQL 12.' + valuemap: + name: 'PostgreSQL checksum failure status' + preprocessing: + - type: JSONPATH + parameters: + - $.checksum_failures + - type: MATCHES_REGEX + parameters: + - '^\d*$' + error_handler: CUSTOM_VALUE + error_handler_params: '-2' + - type: CHANGE_PER_SECOND + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: system + triggers: + - uuid: 1d67b13f47134a538708c2a14dcfa6b1 + expression: 'last(/PostgreSQL by Zabbix agent 2/pgsql.dbstat.sum.checksum_failures.rate)>0' + name: 'PostgreSQL: Dbstat: Checksum failures detected' + priority: AVERAGE + description: | + Data page checksum failures were detected on that DB instance: + https://www.postgresql.org/docs/current/checksums.html + tags: + - tag: scope + value: availability + - uuid: 0106dfc55ace4dacaff00ce2c98de2ea + name: 'Dbstat: Conflicts per second' + type: DEPENDENT + key: pgsql.dbstat.sum.conflicts.rate + delay: '0' + value_type: FLOAT + description: 'Number of queries canceled per second due to conflicts with recovery (conflicts occur only on standby servers; see pg_stat_database_conflicts for details).' + preprocessing: + - type: JSONPATH + parameters: + - $.conflicts + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: e5d3838e5cf84be9ae83cacf22dc99af + name: 'Dbstat: Deadlocks per second' + type: DEPENDENT + key: pgsql.dbstat.sum.deadlocks.rate + delay: '0' + value_type: FLOAT + description: 'Number of deadlocks detected per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.deadlocks + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: deadlocks + - uuid: c61f60e6f7d24ffe99db480f6bbd9613 + name: 'Dbstat: Backends connected' + type: DEPENDENT + key: pgsql.dbstat.sum.numbackends + delay: '0' + description: 'Number of connected backends.' + preprocessing: + - type: JSONPATH + parameters: + - $.numbackends + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: backends + - uuid: 96cb6b388b2c480ead1568293dd81e70 + name: 'Dbstat: Number temp bytes per second' + type: DEPENDENT + key: pgsql.dbstat.sum.temp_bytes.rate + delay: '0' + value_type: FLOAT + units: b + description: 'Total amount of data written per second to temporary files by queries.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: storage + - uuid: bea47c8a95074ad3997aff64fcfcf49b + name: 'Dbstat: Number temp files per second' + type: DEPENDENT + key: pgsql.dbstat.sum.temp_files.rate + delay: '0' + value_type: FLOAT + description: 'Number of temporary files created by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_files + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: storage + - uuid: 731f4adac9d34eaaaa1f8d5080fdf6ce + name: 'Dbstat: Rows deleted per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_deleted.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows deleted by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_deleted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: 4eb6cc273484453bab1233de085363f5 + name: 'Dbstat: Rows fetched per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_fetched.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows fetched by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_fetched + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: ae250ffa30c94df187c2010011e794aa + name: 'Dbstat: Rows inserted per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_inserted.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows inserted by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_inserted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: 3253ed1c96db4a84974e62b85d80bc0f + name: 'Dbstat: Rows returned per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_returned.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows returned by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_returned + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: 13feadafa00a4bd293fcf1a98ddf1f39 + name: 'Dbstat: Rows updated per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_updated.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows updated by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_updated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: bc8a3b29a6684b7f8a70a54b962f0e7e + name: 'Dbstat: Committed transactions per second' + type: DEPENDENT + key: pgsql.dbstat.sum.xact_commit.rate + delay: '0' + value_type: FLOAT + description: 'Number of transactions that have been committed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_commit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: 8aedfe3e385b447eb75b85f92301665a + name: 'Dbstat: Roll backed transactions per second' + type: DEPENDENT + key: pgsql.dbstat.sum.xact_rollback.rate + delay: '0' + value_type: FLOAT + description: 'Number of transactions that have been rolled back per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_rollback + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: ddddde3084d54f55838b970f44290523 + name: 'Get dbstat sum' + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_database as sums for all databases: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-DATABASE-VIEW + tags: + - tag: component + value: raw + - uuid: 3be06ec14cba44d0892f3271a599c473 + name: 'Get dbstat' + key: 'pgsql.dbstat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_database per database: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-DATABASE-VIEW + tags: + - tag: component + value: raw + - uuid: 7112eeb300c14d959c79715462bf9563 + name: 'Get locks' + key: 'pgsql.locks["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_locks per database: + https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-TABLES + tags: + - tag: component + value: raw + - uuid: 0377fe6f2f8d4539b649c636ab012415 + name: 'Age of oldest xid' + key: 'pgsql.oldest.xid["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + value_type: FLOAT + description: 'Age of oldest xid.' + tags: + - tag: component + value: transactions + triggers: + - uuid: 2a5c11571d9d46f093ed9081f9d51504 + expression: 'last(/PostgreSQL by Zabbix agent 2/pgsql.oldest.xid["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]) > 18000000' + name: 'PostgreSQL: Oldest xid is too big' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 56323e572fa443228987c62039153825 + name: Ping + key: 'pgsql.ping["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Used to test a connection to see if it is alive. It is set to 0 if the query is unsuccessful.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 48a24a78519d47349200f0b41ceec56a + expression: 'last(/PostgreSQL by Zabbix agent 2/pgsql.ping["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"])=0' + name: 'PostgreSQL: Service is down' + priority: HIGH + description: 'Last test of a connection was unsuccessful.' + tags: + - tag: scope + value: availability + - uuid: 01123126fcd54adc84c3bbfa227d9c0c + name: 'Get queries' + key: 'pgsql.queries["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{$PG.QUERY_ETIME.MAX.WARN}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect all metrics by query execution time.' + tags: + - tag: component + value: raw + - uuid: a171db459d6144e4ad294579fb8dc56d + name: 'Replication: Standby count' + key: 'pgsql.replication.count["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Number of standby servers.' + tags: + - tag: component + value: replication + - uuid: da9ce769f9444a3f9600ce64c4ab2857 + name: 'Replication: Lag in bytes' + key: 'pgsql.replication.lag.b["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + units: B + description: 'Replication lag with master, in bytes.' + tags: + - tag: component + value: replication + - uuid: 5a9eb8ee4a484911903688e620eb618b + name: 'Replication: Lag in seconds' + key: 'pgsql.replication.lag.sec["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + units: s + description: 'Replication lag with master, in seconds.' + tags: + - tag: component + value: replication + - uuid: 4120befb754d47e9a931f868c28badb9 + name: 'Get replication' + key: 'pgsql.replication.process["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect metrics from the pg_stat_replication, which contains information about the WAL sender process, showing statistics about replication to that sender''s connected standby server.' + tags: + - tag: component + value: raw + - uuid: 4085b836bf614f3d910818074c386845 + name: 'Replication: Recovery role' + key: 'pgsql.replication.recovery_role["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Replication role: 1 — recovery is still in progress (standby mode), 0 — master mode.' + valuemap: + name: 'PostgreSQL recovery role' + tags: + - tag: component + value: replication + - uuid: 3c83904cbad74ff7a0d10136a233e6c6 + name: 'Replication: Status' + key: 'pgsql.replication.status["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Replication status: 0 — streaming is down, 1 — streaming is up, 2 — master mode.' + valuemap: + name: 'PostgreSQL replication status' + tags: + - tag: component + value: replication + - uuid: efa946a67e5844ecb905c68a2a6b85bb + name: Uptime + key: 'pgsql.uptime["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + value_type: FLOAT + units: uptime + description: 'Time since the server started.' + tags: + - tag: component + value: application + triggers: + - uuid: 5fbabc5f60b74a369a13a260d25cce3c + expression: 'last(/PostgreSQL by Zabbix agent 2/pgsql.uptime["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]) < 10m' + name: 'PostgreSQL: Service has been restarted' + event_name: 'PostgreSQL: Service has been restarted (uptime < 10m)' + priority: AVERAGE + description: 'PostgreSQL uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 523528aad175455fbd1daba161365651 + name: Version + key: 'pgsql.version["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 15m + value_type: CHAR + trends: '0' + description: 'PostgreSQL version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + triggers: + - uuid: 6b3ac2a19e114e1390e6e0793728f576 + expression: 'last(/PostgreSQL by Zabbix agent 2/pgsql.version["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#1)<>last(/PostgreSQL by Zabbix agent 2/pgsql.version["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#2) and length(last(/PostgreSQL by Zabbix agent 2/pgsql.version["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]))>0' + name: 'PostgreSQL: Version has changed' + event_name: 'PostgreSQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 6d5aa6213cf248749cbffdea9aff694f + name: 'WAL: Segments count' + type: DEPENDENT + key: pgsql.wal.count + delay: '0' + description: 'Number of WAL segments.' + preprocessing: + - type: JSONPATH + parameters: + - $.count + master_item: + key: 'pgsql.wal.stat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: wal + - uuid: 0e58a74b8a2d47d28f596196405b22b5 + name: 'WAL: Bytes received' + type: DEPENDENT + key: pgsql.wal.receive + delay: '0' + units: B + description: 'WAL receive, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.receive + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.wal.stat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: wal + - uuid: c3d96741af454f6b9a3a49b6117c31be + name: 'Get WAL' + key: 'pgsql.wal.stat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect write-ahead log (WAL) metrics.' + tags: + - tag: component + value: raw + - uuid: 95f67516be544daf9ad8a1cad2e46114 + name: 'WAL: Bytes written' + type: DEPENDENT + key: pgsql.wal.write + delay: '0' + units: B + description: 'WAL write, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.write + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.wal.stat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: wal + discovery_rules: + - uuid: b1a4bfe1031a40529a7c38ac6bed3c6d + name: 'Database discovery' + key: 'pgsql.db.discovery["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$PG.LLD.FILTER.DBNAME}' + formulaid: A + description: | + Discovers databases (DB) in the database management system (DBMS), except: + - templates; + - DBs that do not allow connections. + item_prototypes: + - uuid: 1419ff1331734a4088349332e118ca94 + name: 'DB [{#DBNAME}]: Database age' + key: 'pgsql.db.age["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + delay: 10m + description: 'Database age.' + tags: + - tag: component + value: application + - tag: database + value: '{#DBNAME}' + - uuid: 4367ba7fdffd459ea2b18e1877bc74ca + name: 'DB [{#DBNAME}]: Bloating tables' + key: 'pgsql.db.bloating_tables["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + description: 'Number of bloating tables.' + tags: + - tag: component + value: tables + - tag: database + value: '{#DBNAME}' + - uuid: b614a0909eec40bc841bf7446e842544 + name: 'DB [{#DBNAME}]: Database size' + key: 'pgsql.db.size["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + delay: 5m + units: B + description: 'Database size.' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 4b1b1a4374c0429cb1790e774f181512 + name: 'DB [{#DBNAME}]: Blocks hit per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of times per second disk blocks were found already in the buffer cache, so that a read was not necessary.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_hit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: cache + - tag: database + value: '{#DBNAME}' + - uuid: 841496e662cc43cf8db7728e96fcba76 + name: 'DB [{#DBNAME}]: Disk blocks read per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of disk blocks read per second in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 0313d02ce8274bc9bcaee54d062300c8 + name: 'DB [{#DBNAME}]: Disk blocks read time per second' + type: DEPENDENT + key: 'pgsql.dbstat.blk_read_time.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent reading data file blocks by backends per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_read_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: e746a7760d554a0e9d41ba01c3be9db5 + name: 'DB [{#DBNAME}]: Disk blocks write time' + type: DEPENDENT + key: 'pgsql.dbstat.blk_write_time.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent writing data file blocks by backends per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_write_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: d44335162082498bbc42e29e938a4de7 + name: 'DB [{#DBNAME}]: Checksum failures' + type: DEPENDENT + key: 'pgsql.dbstat.checksum_failures.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of data page checksum failures detected in this database.' + valuemap: + name: 'PostgreSQL checksum failure status' + preprocessing: + - type: JSONPATH + parameters: + - $.checksum_failures + - type: MATCHES_REGEX + parameters: + - '^\d*$' + error_handler: CUSTOM_VALUE + error_handler_params: '-2' + - type: CHANGE_PER_SECOND + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: system + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 5995403b904349d296227647ca318f5b + expression: 'last(/PostgreSQL by Zabbix agent 2/pgsql.dbstat.checksum_failures.rate["{#DBNAME}"])>0' + name: 'PostgreSQL: DB [{#DBNAME}]: Checksum failures detected' + priority: AVERAGE + description: | + Data page checksum failures were detected on that database: + https://www.postgresql.org/docs/current/checksums.html + tags: + - tag: scope + value: availability + - uuid: 4eb67f16bc2948a7927ed58c9d037466 + name: 'DB [{#DBNAME}]: Detected conflicts per second' + type: DEPENDENT + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of queries canceled due to conflicts with recovery in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.conflicts + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 05ac4216e1a941df8880224ffd38b806 + expression: 'min(/PostgreSQL by Zabbix agent 2/pgsql.dbstat.conflicts.rate["{#DBNAME}"],5m) > {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Too many recovery conflicts' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Too many recovery conflicts (over {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: AVERAGE + description: | + The primary and standby servers are in many ways loosely connected. Actions on the primary will have an effect on the standby. As a result, there is potential for negative interactions or conflicts between them. + https://www.postgresql.org/docs/current/hot-standby.html#HOT-STANDBY-CONFLICT + tags: + - tag: scope + value: performance + - uuid: d53da0cc702f4fe381e4d13d454ec229 + name: 'DB [{#DBNAME}]: Detected deadlocks per second' + type: DEPENDENT + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of detected deadlocks in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.deadlocks + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: deadlocks + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: dd948e3ec19c419e8c9a62ace8d1695f + expression: 'min(/PostgreSQL by Zabbix agent 2/pgsql.dbstat.deadlocks.rate["{#DBNAME}"],5m) > {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Deadlock occurred' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Deadlock occurred (over {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: HIGH + description: 'Number of deadlocks detected per second exceeds {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} for 5m.' + tags: + - tag: scope + value: availability + - uuid: 7ebf1570bebe4b9cb82474fe5aea0562 + name: 'DB [{#DBNAME}]: Get dbstat' + type: DEPENDENT + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get dbstat metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.dbstat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 2e31986867d24bca930d141cc5d9cc0f + name: 'DB [{#DBNAME}]: Backends connected' + type: DEPENDENT + key: 'pgsql.dbstat.numbackends["{#DBNAME}"]' + delay: '0' + description: 'Number of backends currently connected to this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.numbackends + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: backends + - tag: database + value: '{#DBNAME}' + - uuid: 82a2f4b2dc4f4dfe9a0a42144f603a8a + name: 'DB [{#DBNAME}]: Temp_bytes written per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total amount of data written to temporary files by queries in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 480ffc23ca8d41e3ac86bb162007065f + name: 'DB [{#DBNAME}]: Temp_files created per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + delay: '0' + description: 'Total number of temporary files created by queries in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_files + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: cf288751fb894e5291b2d539b4c1a6a1 + name: 'DB [{#DBNAME}]: Tuples deleted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows deleted by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_deleted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: a512a7a075244ccb90ab6824125a405e + name: 'DB [{#DBNAME}]: Tuples fetched per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows fetched by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_fetched + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 2f24c195df5842f1bdf65a11dea3a315 + name: 'DB [{#DBNAME}]: Tuples inserted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows inserted by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_inserted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 175c5051ef0c4a31b76270cacbdd7ed5 + name: 'DB [{#DBNAME}]: Tuples returned per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of rows returned by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_returned + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 9888b495d3f04cceb373c341bd4f1941 + name: 'DB [{#DBNAME}]: Tuples updated per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows updated by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_updated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 5b0ecb9c928c49a6a01b5df6aec931dd + name: 'DB [{#DBNAME}]: Commits per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of transactions in this database that have been committed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_commit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: 1d280198e31649fcb053d4c87a0e869d + name: 'DB [{#DBNAME}]: Rollbacks per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of transactions in this database that have been rolled back.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_rollback + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: 8eb2bd907a0e4385bcac9e0f467f9748 + name: 'DB [{#DBNAME}]: Num of accessexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.accessexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of accessexclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.accessexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 5f783de0d6124fc0ae14522a4ad89189 + name: 'DB [{#DBNAME}]: Num of accessshare locks' + type: DEPENDENT + key: 'pgsql.locks.accessshare["{#DBNAME}"]' + delay: '0' + description: 'Number of accessshare locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.accessshare + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 3c754430815f411e9aa8dde593f6333a + name: 'DB [{#DBNAME}]: Num of exclusive locks' + type: DEPENDENT + key: 'pgsql.locks.exclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of exclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.exclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 2c7759f4c9e442cb80bd54ea3323501b + name: 'DB [{#DBNAME}]: Get locks' + type: DEPENDENT + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get locks metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.locks["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: b1ccea7698264d768da1299ec9d13738 + name: 'DB [{#DBNAME}]: Num of rowexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.rowexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of rowexclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.rowexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: b4b1402b99284f3bbf0ac0dff493449f + name: 'DB [{#DBNAME}]: Num of rowshare locks' + type: DEPENDENT + key: 'pgsql.locks.rowshare["{#DBNAME}"]' + delay: '0' + description: 'Number of rowshare locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.rowshare + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 15eb93e90c1241a99aaff834d69cc5be + name: 'DB [{#DBNAME}]: Num of sharerowexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.sharerowexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of total sharerowexclusive for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.sharerowexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 04e6cec0423f4dddb09e6643561bdf77 + name: 'DB [{#DBNAME}]: Num of shareupdateexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.shareupdateexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of shareupdateexclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.shareupdateexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 8a410cf1f0be41fbb5a976f368f07430 + name: 'DB [{#DBNAME}]: Num of share locks' + type: DEPENDENT + key: 'pgsql.locks.share["{#DBNAME}"]' + delay: '0' + description: 'Number of share locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.share + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: a982064d710644db85ebc1cde67bfe4d + name: 'DB [{#DBNAME}]: Num of locks total' + type: DEPENDENT + key: 'pgsql.locks.total["{#DBNAME}"]' + delay: '0' + description: 'Total number of locks in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 75e704af5cb545fd9f83bec3f147dd04 + name: 'DB [{#DBNAME}]: Get queries' + type: DEPENDENT + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get queries metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.queries["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 4c8934820b7f46a195115c7214d4379c + name: 'DB [{#DBNAME}]: Queries slow maintenance count' + type: DEPENDENT + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow maintenance query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 612c8f83e228406f86e70e8486a51f9b + name: 'DB [{#DBNAME}]: Queries max maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max maintenance query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 9cde2701b5814142b064696dc974f45d + name: 'DB [{#DBNAME}]: Queries sum maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum maintenance query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 9e1191f80c3a4e9aa0d3aba2b2740fef + name: 'DB [{#DBNAME}]: Queries slow query count' + type: DEPENDENT + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 2bb34a2a7dee451cb5419a146d883601 + expression: 'min(/PostgreSQL by Zabbix agent 2/pgsql.queries.query.slow_count["{#DBNAME}"],5m)>{$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Too many slow queries' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Too many slow queries (over {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: WARNING + description: 'The number of detected slow queries exceeds the limit of {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}.' + tags: + - tag: scope + value: performance + - uuid: 73712df30d66494998bf11566eba409f + name: 'DB [{#DBNAME}]: Queries max query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: ba95d84bc11b4df4aece8ddb51042339 + name: 'DB [{#DBNAME}]: Queries sum query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: d31701d52f5941d5a24241c95db52373 + name: 'DB [{#DBNAME}]: Queries slow transaction count' + type: DEPENDENT + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow transaction query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: ecc24b3143254dd4b2fc01c12cefb345 + name: 'DB [{#DBNAME}]: Queries max transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max transaction query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 178926a753614bb58206d82f68280097 + name: 'DB [{#DBNAME}]: Queries sum transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum transaction query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + graph_prototypes: + - uuid: af6eac83efc94d2a9f4a3501207fb5ce + name: 'DB [{#DBNAME}]: Locks' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.locks.total["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.locks.accessexclusive["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.locks.accessshare["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.locks.exclusive["{#DBNAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.locks.rowexclusive["{#DBNAME}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.locks.rowshare["{#DBNAME}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.locks.sharerowexclusive["{#DBNAME}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.locks.shareupdateexclusive["{#DBNAME}"]' + - sortorder: '8' + color: F230E0 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.locks.share["{#DBNAME}"]' + - uuid: 9a518b4bf0f04609863bf9dc4c7f1ea2 + name: 'DB [{#DBNAME}]: Number of bloating tables' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.db.bloating_tables["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + - uuid: 4d46d39a1d1146c19a57b2b5b8086708 + name: 'DB [{#DBNAME}]: pg_stat_database metrics' + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + - sortorder: '8' + color: F230E0 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + - sortorder: '9' + color: 5CCD18 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + - sortorder: '10' + color: BB2A02 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + - sortorder: '11' + color: AC41A5 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + - sortorder: '12' + color: 89ABF8 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + - uuid: 98f4c88e15b742fb80e1ecd8aeab970d + name: 'DB [{#DBNAME}]: Queries' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + - sortorder: '5' + drawtype: GRADIENT_LINE + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + - uuid: 86853d8590344bad84aab1deb3d1cffc + name: 'DB [{#DBNAME}]: Size' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.db.size["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + - uuid: 918a6fd8bd0e49c98f759778f44ab606 + name: 'DB [{#DBNAME}]: Slow queries' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + - uuid: e94f9017c06644a2bbcb48697381556d + name: 'Replication discovery' + key: 'pgsql.replication.process.discovery["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 15m + filter: + evaltype: AND + conditions: + - macro: '{#APPLICATION_NAME}' + value: '{$PG.LLD.FILTER.APPLICATION}' + formulaid: A + description: 'Discovers replication lag metrics.' + item_prototypes: + - uuid: a77e5e6702ff41af9defe102cbeeea74 + name: 'Application [{#APPLICATION_NAME}]: Get replication' + type: DEPENDENT + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect metrics from the "pg_stat_replication" about the application "{#APPLICATION_NAME}" that is connected to this WAL sender, which contains information about the WAL sender process, showing statistics about replication to that sender''s connected standby server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#APPLICATION_NAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.replication.process["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: raw + - uuid: 15b83330044042668e618501160c37e4 + name: 'Application [{#APPLICATION_NAME}]: Replication flush lag' + type: DEPENDENT + key: 'pgsql.replication.process.flush_lag["{#APPLICATION_NAME}"]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - $.flush_lag + master_item: + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: replication + - uuid: 0daf6e3c7843488cb3160a2bd6b09fbf + name: 'Application [{#APPLICATION_NAME}]: Replication replay lag' + type: DEPENDENT + key: 'pgsql.replication.process.replay_lag["{#APPLICATION_NAME}"]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - $.replay_lag + master_item: + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: replication + - uuid: 2d96bc517d3a4c3fbcae8a7f1436bf72 + name: 'Application [{#APPLICATION_NAME}]: Replication write lag' + type: DEPENDENT + key: 'pgsql.replication.process.write_lag["{#APPLICATION_NAME}"]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - $.write_lag + master_item: + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: replication + graph_prototypes: + - uuid: e79dfe2d436d49da898772a9e7345825 + name: 'Application [{#APPLICATION_NAME}]: Replication lag' + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.replication.process.flush_lag["{#APPLICATION_NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.replication.process.replay_lag["{#APPLICATION_NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent 2' + key: 'pgsql.replication.process.write_lag["{#APPLICATION_NAME}"]' + tags: + - tag: class + value: database + - tag: target + value: postgresql + macros: + - macro: '{$PG.CONFLICTS.MAX.WARN}' + value: '0' + description: 'Maximum number of recovery conflicts for trigger expression.' + - macro: '{$PG.CONNSTRING.AGENT2}' + value: 'tcp://localhost:5432' + description: 'URI or named session of the PostgreSQL instance.' + - macro: '{$PG.CONN_TOTAL_PCT.MAX.WARN}' + value: '90' + description: 'Maximum percentage of current connections for trigger expression.' + - macro: '{$PG.DATABASE}' + value: postgres + description: 'Default PostgreSQL database for the connection.' + - macro: '{$PG.DEADLOCKS.MAX.WARN}' + value: '0' + description: 'Maximum number of detected deadlocks for trigger expression.' + - macro: '{$PG.LLD.FILTER.APPLICATION}' + value: .+ + description: 'Filter of discoverable applications.' + - macro: '{$PG.LLD.FILTER.DBNAME}' + value: .+ + description: 'Filter of discoverable databases.' + - macro: '{$PG.PASSWORD}' + value: '' + description: 'PostgreSQL user password.' + - macro: '{$PG.QUERY_ETIME.MAX.WARN}' + value: '30' + description: 'Execution time limit for count of slow queries.' + - macro: '{$PG.SLOW_QUERIES.MAX.WARN}' + value: '5' + description: 'Slow queries count threshold for a trigger.' + - macro: '{$PG.USER}' + value: zbx_monitor + description: 'PostgreSQL username.' + dashboards: + - uuid: e3ae726b06cc4663a3eef5a73909f796 + name: 'PostgreSQL databases' + pages: + - widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2' + name: 'DB [{#DBNAME}]: pg_stat_database metrics' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2' + name: 'DB [{#DBNAME}]: Size' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2' + name: 'DB [{#DBNAME}]: Queries' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2' + name: 'DB [{#DBNAME}]: Locks' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2' + name: 'DB [{#DBNAME}]: Number of bloating tables' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2' + name: 'DB [{#DBNAME}]: Slow queries' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: cd2d975b0d7e4f8e89afb1033fce4ce2 + name: 'PostgreSQL checksum failure status' + mappings: + - value: '-2' + newvalue: 'null' + - uuid: 9f38c01c325248d4b538c0582432b541 + name: 'PostgreSQL recovery role' + mappings: + - value: '0' + newvalue: Master + - value: '1' + newvalue: Standby + - uuid: 0fba38eefa4c4073b46d3f8579fda314 + name: 'PostgreSQL replication status' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - value: '2' + newvalue: Master + - uuid: 6619a58602a44e83950d3d4b5180c0e9 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up diff --git a/PostgreSQL_by_Zabbix_agent_2_active.yaml b/PostgreSQL_by_Zabbix_agent_2_active.yaml new file mode 100644 index 0000000..21f0bba --- /dev/null +++ b/PostgreSQL_by_Zabbix_agent_2_active.yaml @@ -0,0 +1,2450 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 21cca24cec1d40cdb0c2999aa6ac3037 + template: 'PostgreSQL by Zabbix agent 2 active' + name: 'PostgreSQL by Zabbix agent 2 active' + description: | + This template is designed for the deployment of PostgreSQL monitoring by Zabbix via Zabbix agent 2 and uses a loadable plugin to run SQL queries. + + Setup: + + 1. Deploy Zabbix agent 2 with the PostgreSQL plugin. Starting with Zabbix versions 6.0.10 / 6.2.4 / 6.4 PostgreSQL metrics are moved to a loadable plugin and require installation of a separate package or compilation of the plugin from sources (https://www.zabbix.com/documentation/7.0/manual/extensions/plugins/build). + + 2. Create the PostgreSQL user for monitoring (`` at your discretion) and inherit permissions from the default role `pg_monitor`: + CREATE USER zbx_monitor WITH PASSWORD '' INHERIT; + GRANT pg_monitor TO zbx_monitor; + + 3. Edit the `pg_hba.conf` configuration file to allow connections for the user `zbx_monitor`. You can check the PostgreSQL documentation for examples (https://www.postgresql.org/docs/current/auth-pg-hba-conf.html). + + 4. Set the connection string for the PostgreSQL instance in the `{$PG.CONNSTRING.AGENT2}` macro as URI, such as ``, or specify the named session - ``. + + Note: if you want to use SSL/TLS encryption to protect communications with the remote PostgreSQL instance, a named session must be used. In that case, the instance URI should be specified in the `Plugins.PostgreSQL.Sessions.*.Uri` parameter in the PostgreSQL plugin configuration files alongside all the encryption parameters (type, certificate/key filepaths if needed etc.). + + You can check the PostgreSQL plugin documentation (https://git.zabbix.com/projects/AP/repos/postgresql/browse?at=refs%2Fheads%2Frelease%2F7.0) for details about agent plugin parameters and named sessions. + + Also, it is assumed that you set up the PostgreSQL instance to work in the desired encryption mode. Check the PostgreSQL documentation (https://www.postgresql.org/docs/current/ssl-tcp.html) for details. + + Note that plugin TLS certificate validation relies on checking the Subject Alternative Names (SAN) instead of the Common Name (CN), check the cryptography package documentation (https://pkg.go.dev/crypto/x509) for details. + + For example, to enable required encryption in transport mode without identity checks you could create the file `/etc/zabbix/zabbix_agent2.d/postgresql_myconn.conf` with the following configuration for the named session `myconn` (replace `` with the address of the PostgreSQL instance): + Plugins.PostgreSQL.Sessions.myconn.Uri=tcp://:5432 + Plugins.PostgreSQL.Sessions.myconn.TLSConnect=required + + Then set the `{$PG.CONNSTRING.AGENT2}` macro to `myconn` to use this named session. + + 5. Set the password that you specified in step 2 in the macro `{$PG.PASSWORD}`. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384190-%C2%A0discussion-thread-for-official-zabbix-template-db-postgresql + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Databases + items: + - uuid: b760f7ff059e40d7ab9d26fe5cc3fa2d + name: 'Archive: Count of archived files' + type: DEPENDENT + key: pgsql.archive.count_archived_files + delay: '0' + value_type: FLOAT + description: 'Count of archived files.' + preprocessing: + - type: JSONPATH + parameters: + - $.archived_count + master_item: + key: 'pgsql.archive["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: archive + - uuid: 8d7aee551783484d9a321a5e7d57c417 + name: 'Archive: Count of files in archive_status need to archive' + type: DEPENDENT + key: pgsql.archive.count_files_to_archive + delay: '0' + value_type: FLOAT + description: 'Count of files to archive.' + preprocessing: + - type: JSONPATH + parameters: + - $.count_files + master_item: + key: 'pgsql.archive["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: archive + - uuid: 99ada32d0c2f4241bc81a09b0226b661 + name: 'Archive: Count of failed attempts to archive files' + type: DEPENDENT + key: pgsql.archive.failed_trying_to_archive + delay: '0' + value_type: FLOAT + description: 'Count of failed attempts to archive files.' + preprocessing: + - type: JSONPATH + parameters: + - $.failed_count + master_item: + key: 'pgsql.archive["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: archive + - uuid: 842a4e56976a4dcbb41b388bfb3798ea + name: 'Archive: Size of files need to archive' + type: DEPENDENT + key: pgsql.archive.size_files_to_archive + delay: '0' + value_type: FLOAT + description: 'Size of files to archive.' + preprocessing: + - type: JSONPATH + parameters: + - $.size_files + master_item: + key: 'pgsql.archive["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: archive + - uuid: 218b03c8bfb84b07ae0ec9ba0932fff3 + name: 'Get archive' + type: ZABBIX_ACTIVE + key: 'pgsql.archive["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect archive status metrics.' + tags: + - tag: component + value: raw + - uuid: bc14c8544eed47ce9510a803be5708d7 + name: 'Count of autovacuum workers' + type: ZABBIX_ACTIVE + key: 'pgsql.autovacuum.count["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + value_type: FLOAT + description: 'Number of autovacuum workers.' + tags: + - tag: component + value: system + - uuid: eadfb41d59a84315a8b3540005fc9138 + name: 'Bgwriter: Buffers allocated per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_alloc.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers allocated per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_alloc + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 6c1df723638b435a813e144b730bab0a + name: 'Bgwriter: Buffers written directly by a backend per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_backend.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written directly by a backend per second. Available in PostgreSQL versions prior to 17.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 2e0f72740975437d94807cc1ea3a52cd + name: 'Bgwriter: Times a backend executed its own fsync per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_backend_fsync.rate + delay: '0' + value_type: FLOAT + description: 'Number of times a backend had to execute its own fsync call per second (normally the background writer handles those even when the backend does its own write). Available in PostgreSQL versions prior to 17.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend_fsync + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 84bffdbacf8449e48a58a15f3363d3b2 + name: 'Checkpoint: Buffers written during checkpoints per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_checkpoint.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written during checkpoints per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_checkpoint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 98cace696df64de8a5f5106a8c2c52ba + name: 'Checkpoint: Buffers written by the background writer per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_clean.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written by the background writer per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 35b2f1af4e1f45d9b729eb09757ce6e4 + name: 'Checkpoint: Requested per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoints_req.rate + delay: '0' + value_type: FLOAT + description: 'Number of requested checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_req + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: a3d03d5bba4d4bb0a1ed52f684143ca5 + name: 'Checkpoint: Scheduled per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoints_timed.rate + delay: '0' + value_type: FLOAT + description: 'Number of scheduled checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_timed + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 7ff2d5d51057451fb2089e92444feb84 + name: 'Checkpoint: Checkpoint sync time per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoint_sync_time.rate + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are synchronized to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_sync_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 7217bdae3d72478aae2c2cc1c151f203 + name: 'Checkpoint: Checkpoint write time per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoint_write_time.rate + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are written to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_write_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: d0cb711ca251430ab0c1beb5f2617c6d + name: 'Bgwriter: Number of bgwriter cleaning scan stopped per second' + type: DEPENDENT + key: pgsql.bgwriter.maxwritten_clean.rate + delay: '0' + value_type: FLOAT + description: 'Number of times the background writer stopped a cleaning scan because it had written too many buffers per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxwritten_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 8d0dd45f06974d6b8be9cc11404ac1c3 + name: 'Get bgwriter' + type: ZABBIX_ACTIVE + key: 'pgsql.bgwriter["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_bgwriter: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-BGWRITER-VIEW + tags: + - tag: component + value: raw + - uuid: 7b701ad8f20a44958956a6cbfd4e5da2 + name: 'Cache hit ratio, %' + type: CALCULATED + key: pgsql.cache.hit + value_type: FLOAT + units: '%' + params: 'last(//pgsql.dbstat.sum.blks_hit.rate) * 100 / (last(//pgsql.dbstat.sum.blks_hit.rate) + last(//pgsql.dbstat.sum.blks_read.rate))' + description: 'Cache hit ratio.' + tags: + - tag: component + value: cache + - uuid: 20eca5056709454189394db755132cb5 + name: 'Connections sum: Active' + type: DEPENDENT + key: pgsql.connections.sum.active + delay: '0' + description: 'Total number of connections executing a query.' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 8ff6487a87d049ae95a4465b5c3cf438 + name: 'Connections sum: Disabled' + type: DEPENDENT + key: pgsql.connections.sum.disabled + delay: '0' + description: 'Total number of disabled connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.disabled + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: dde39d43bd8e45e29e6ca2ab28d34499 + name: 'Connections sum: Fastpath function call' + type: DEPENDENT + key: pgsql.connections.sum.fastpath_function_call + delay: '0' + description: 'Total number of connections executing a fast-path function.' + preprocessing: + - type: JSONPATH + parameters: + - $.fastpath_function_call + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 4717491488f642f5ad40d93da59793f5 + name: 'Connections sum: Idle' + type: DEPENDENT + key: pgsql.connections.sum.idle + delay: '0' + description: 'Total number of connections waiting for a new client command.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: cda45db6de6d4deeb988235f0c7d9376 + name: 'Connections sum: Idle in transaction' + type: DEPENDENT + key: pgsql.connections.sum.idle_in_transaction + delay: '0' + description: 'Total number of connections in a transaction state but not executing a query.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle_in_transaction + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 503826ace4f848ada43abc60ff7c1ee2 + name: 'Connections sum: Idle in transaction (aborted)' + type: DEPENDENT + key: pgsql.connections.sum.idle_in_transaction_aborted + delay: '0' + description: 'Total number of connections in a transaction state but not executing a query, and where one of the statements in the transaction caused an error.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle_in_transaction_aborted + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 604c4b1fd04249be896c7588bf2c6b23 + name: 'Connections sum: Prepared' + type: DEPENDENT + key: pgsql.connections.sum.prepared + delay: '0' + description: | + Total number of prepared transactions: + https://www.postgresql.org/docs/current/sql-prepare-transaction.html + preprocessing: + - type: JSONPATH + parameters: + - $.prepared + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: d7faa8068a8f4877b77fb5120bbe6d8d + name: 'Connections sum: Total' + type: DEPENDENT + key: pgsql.connections.sum.total + delay: '0' + description: 'Total number of connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 85b9cf0643fc4cf289f8b0ac364e8879 + name: 'Connections sum: Total, %' + type: DEPENDENT + key: pgsql.connections.sum.total_pct + delay: '0' + units: '%' + description: 'Total number of connections, in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_pct + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: f07fbe410afa48e6a08da06f4af504c5 + expression: 'min(/PostgreSQL by Zabbix agent 2 active/pgsql.connections.sum.total_pct,5m) > {$PG.CONN_TOTAL_PCT.MAX.WARN}' + name: 'PostgreSQL: Total number of connections is too high' + event_name: 'PostgreSQL: Total number of connections is too high (over {$PG.CONN_TOTAL_PCT.MAX.WARN} in 5m)' + priority: AVERAGE + description: 'Total number of current connections exceeds the limit of {$PG.CONN_TOTAL_PCT.MAX.WARN}% out of the maximum number of concurrent connections to the database server (the "max_connections" setting).' + tags: + - tag: scope + value: performance + - uuid: 2a05cc636fc0432386a5c6c00ac2777b + name: 'Connections sum: Waiting' + type: DEPENDENT + key: pgsql.connections.sum.waiting + delay: '0' + description: | + Total number of waiting connections: + https://www.postgresql.org/docs/current/monitoring-stats.html#WAIT-EVENT-TABLE + preprocessing: + - type: JSONPATH + parameters: + - $.waiting + master_item: + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 52d9d2342b9c40a2b279dcbe4bcff023 + name: 'Get connections sum' + type: ZABBIX_ACTIVE + key: 'pgsql.connections["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_activity: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW + tags: + - tag: component + value: raw + - uuid: defcba230619484db1a7d6faace8b33d + name: 'Custom queries' + type: ZABBIX_ACTIVE + key: 'pgsql.custom.query["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}",""]' + history: 1h + value_type: TEXT + trends: '0' + status: DISABLED + description: 'Execute custom queries from file *.sql (check for option Plugins.Postgres.CustomQueriesPath at agent configuration).' + tags: + - tag: component + value: application + - uuid: dbdeb7a7fc9f4187b29fb0dae2f2af62 + name: 'Dbstat: Hit blocks read per second' + type: DEPENDENT + key: pgsql.dbstat.sum.blks_hit.rate + delay: '0' + value_type: FLOAT + description: 'Number of times per second disk blocks were found already in the buffer cache' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_hit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: cache + - uuid: 136db4803969403ebf2fdb97e1e3b1ec + name: 'Dbstat: Disk blocks read per second' + type: DEPENDENT + key: pgsql.dbstat.sum.blks_read.rate + delay: '0' + value_type: FLOAT + description: 'Number of disk blocks read per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: storage + - uuid: badd110db2c64debb5619819299d7d47 + name: 'Dbstat: Blocks read time' + type: DEPENDENT + key: pgsql.dbstat.sum.blk_read_time + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent reading data file blocks by backends.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_read_time + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: storage + - uuid: 310219edd25c45b19ca7ee9e3621331a + name: 'Dbstat: Blocks write time' + type: DEPENDENT + key: pgsql.dbstat.sum.blk_write_time + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent writing data file blocks by backends.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_write_time + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: storage + - uuid: f59fe2b665c94405b82bbc523aff1988 + name: 'Dbstat: Checksum failures per second' + type: DEPENDENT + key: pgsql.dbstat.sum.checksum_failures.rate + delay: '0' + value_type: FLOAT + description: 'Number of data page checksum failures per second detected (or on a shared object), or NULL if data checksums are not enabled. This metric is available since PostgreSQL 12.' + valuemap: + name: 'PostgreSQL checksum failure status' + preprocessing: + - type: JSONPATH + parameters: + - $.checksum_failures + - type: MATCHES_REGEX + parameters: + - '^\d*$' + error_handler: CUSTOM_VALUE + error_handler_params: '-2' + - type: CHANGE_PER_SECOND + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: system + triggers: + - uuid: 15357041a8774ae19a6cfa64154a4395 + expression: 'last(/PostgreSQL by Zabbix agent 2 active/pgsql.dbstat.sum.checksum_failures.rate)>0' + name: 'PostgreSQL: Dbstat: Checksum failures detected' + priority: AVERAGE + description: | + Data page checksum failures were detected on that DB instance: + https://www.postgresql.org/docs/current/checksums.html + tags: + - tag: scope + value: availability + - uuid: e53fc92d8d4b4f8690901f4eb736ca8a + name: 'Dbstat: Conflicts per second' + type: DEPENDENT + key: pgsql.dbstat.sum.conflicts.rate + delay: '0' + value_type: FLOAT + description: 'Number of queries canceled per second due to conflicts with recovery (conflicts occur only on standby servers; see pg_stat_database_conflicts for details).' + preprocessing: + - type: JSONPATH + parameters: + - $.conflicts + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: 5ffee9612e844f15bfb1869f9f139171 + name: 'Dbstat: Deadlocks per second' + type: DEPENDENT + key: pgsql.dbstat.sum.deadlocks.rate + delay: '0' + value_type: FLOAT + description: 'Number of deadlocks detected per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.deadlocks + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: deadlocks + - uuid: b7fecc03343045478e54f21a4406e793 + name: 'Dbstat: Backends connected' + type: DEPENDENT + key: pgsql.dbstat.sum.numbackends + delay: '0' + description: 'Number of connected backends.' + preprocessing: + - type: JSONPATH + parameters: + - $.numbackends + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: backends + - uuid: 1e95365a6e9c461aa7f09c407ecc7844 + name: 'Dbstat: Number temp bytes per second' + type: DEPENDENT + key: pgsql.dbstat.sum.temp_bytes.rate + delay: '0' + value_type: FLOAT + units: b + description: 'Total amount of data written per second to temporary files by queries.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: storage + - uuid: 848bf15ec1c840959c83eba95645a810 + name: 'Dbstat: Number temp files per second' + type: DEPENDENT + key: pgsql.dbstat.sum.temp_files.rate + delay: '0' + value_type: FLOAT + description: 'Number of temporary files created by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_files + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: storage + - uuid: db78e1e34e154bfca1e3fbc1fd1f0f20 + name: 'Dbstat: Rows deleted per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_deleted.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows deleted by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_deleted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: 3a1d49dd854d442aa0cafbc8025a942c + name: 'Dbstat: Rows fetched per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_fetched.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows fetched by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_fetched + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: fc3e55d1a7d147049715b064bdf234b0 + name: 'Dbstat: Rows inserted per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_inserted.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows inserted by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_inserted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: a92bc6f9bbbb4bf5b8289568b89642c8 + name: 'Dbstat: Rows returned per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_returned.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows returned by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_returned + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: 9f8498a20db04822b0d03df4d8cb184e + name: 'Dbstat: Rows updated per second' + type: DEPENDENT + key: pgsql.dbstat.sum.tup_updated.rate + delay: '0' + value_type: FLOAT + description: 'Number of rows updated by queries per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_updated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: queries + - uuid: fed4fd91cbf846929795b960266301b7 + name: 'Dbstat: Committed transactions per second' + type: DEPENDENT + key: pgsql.dbstat.sum.xact_commit.rate + delay: '0' + value_type: FLOAT + description: 'Number of transactions that have been committed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_commit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: e3337867025d4cd7bc4d26d663a4fc61 + name: 'Dbstat: Roll backed transactions per second' + type: DEPENDENT + key: pgsql.dbstat.sum.xact_rollback.rate + delay: '0' + value_type: FLOAT + description: 'Number of transactions that have been rolled back per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_rollback + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: 8d84c4ec8d05427f9da4b9a1904a0af4 + name: 'Get dbstat sum' + type: ZABBIX_ACTIVE + key: 'pgsql.dbstat.sum["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_database as sums for all databases: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-DATABASE-VIEW + tags: + - tag: component + value: raw + - uuid: e36f2b3e33e2435d9b95472a7844a1a4 + name: 'Get dbstat' + type: ZABBIX_ACTIVE + key: 'pgsql.dbstat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_database per database: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-DATABASE-VIEW + tags: + - tag: component + value: raw + - uuid: df19db910015411996e25ea5b48f0742 + name: 'Get locks' + type: ZABBIX_ACTIVE + key: 'pgsql.locks["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_locks per database: + https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-TABLES + tags: + - tag: component + value: raw + - uuid: 1a32b0308496460b83ad2698edb21420 + name: 'Age of oldest xid' + type: ZABBIX_ACTIVE + key: 'pgsql.oldest.xid["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + value_type: FLOAT + description: 'Age of oldest xid.' + tags: + - tag: component + value: transactions + triggers: + - uuid: 233757fda5784d9fb264bd0d4a7765ac + expression: 'last(/PostgreSQL by Zabbix agent 2 active/pgsql.oldest.xid["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]) > 18000000' + name: 'PostgreSQL: Oldest xid is too big' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 52edd592df6f49df9bf46b5e93689a1a + name: Ping + type: ZABBIX_ACTIVE + key: 'pgsql.ping["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Used to test a connection to see if it is alive. It is set to 0 if the query is unsuccessful.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: ab52bca5bae940cdad5b7eead56f2ff9 + expression: 'last(/PostgreSQL by Zabbix agent 2 active/pgsql.ping["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"])=0' + name: 'PostgreSQL: Service is down' + priority: HIGH + description: 'Last test of a connection was unsuccessful.' + tags: + - tag: scope + value: availability + - uuid: 060c0efaf60944538bf5fb6ca2828dc6 + name: 'Get queries' + type: ZABBIX_ACTIVE + key: 'pgsql.queries["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{$PG.QUERY_ETIME.MAX.WARN}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect all metrics by query execution time.' + tags: + - tag: component + value: raw + - uuid: f15d0758764c4bd6b607335d9d57b76b + name: 'Replication: Standby count' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.count["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Number of standby servers.' + tags: + - tag: component + value: replication + - uuid: a3297ef8198145848d4e3b16b7b8eb8b + name: 'Replication: Lag in bytes' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.lag.b["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + units: B + description: 'Replication lag with master, in bytes.' + tags: + - tag: component + value: replication + - uuid: 142e93b332e24ecfbd50465bb4af91e7 + name: 'Replication: Lag in seconds' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.lag.sec["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + units: s + description: 'Replication lag with master, in seconds.' + tags: + - tag: component + value: replication + - uuid: aa03fb9cabd8459ea5f5efb90c9e1051 + name: 'Get replication' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.process["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect metrics from the pg_stat_replication, which contains information about the WAL sender process, showing statistics about replication to that sender''s connected standby server.' + tags: + - tag: component + value: raw + - uuid: 226bcc226ffc487ba90d998a03692404 + name: 'Replication: Recovery role' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.recovery_role["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Replication role: 1 — recovery is still in progress (standby mode), 0 — master mode.' + valuemap: + name: 'PostgreSQL recovery role' + tags: + - tag: component + value: replication + - uuid: ef2ac5eaf73c40e09af41bba03b4fac8 + name: 'Replication: Status' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.status["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Replication status: 0 — streaming is down, 1 — streaming is up, 2 — master mode.' + valuemap: + name: 'PostgreSQL replication status' + tags: + - tag: component + value: replication + - uuid: 46b53fcf97a74619a03c2490fe9b71ea + name: Uptime + type: ZABBIX_ACTIVE + key: 'pgsql.uptime["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + value_type: FLOAT + units: uptime + description: 'Time since the server started.' + tags: + - tag: component + value: application + triggers: + - uuid: ec3d8fb289234e84b300b83ce169137f + expression: 'last(/PostgreSQL by Zabbix agent 2 active/pgsql.uptime["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]) < 10m' + name: 'PostgreSQL: Service has been restarted' + event_name: 'PostgreSQL: Service has been restarted (uptime < 10m)' + priority: AVERAGE + description: 'PostgreSQL uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 7a96feee8118450e83e994be87bc5eea + name: Version + type: ZABBIX_ACTIVE + key: 'pgsql.version["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 15m + value_type: CHAR + trends: '0' + description: 'PostgreSQL version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + triggers: + - uuid: 0d8c3bf10b4e42f796f72136768ce6ab + expression: 'last(/PostgreSQL by Zabbix agent 2 active/pgsql.version["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#1)<>last(/PostgreSQL by Zabbix agent 2 active/pgsql.version["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#2) and length(last(/PostgreSQL by Zabbix agent 2 active/pgsql.version["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]))>0' + name: 'PostgreSQL: Version has changed' + event_name: 'PostgreSQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 5fc77f9d1d1d46ed84d71dedaf30de75 + name: 'WAL: Segments count' + type: DEPENDENT + key: pgsql.wal.count + delay: '0' + description: 'Number of WAL segments.' + preprocessing: + - type: JSONPATH + parameters: + - $.count + master_item: + key: 'pgsql.wal.stat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: wal + - uuid: 78f6cd549ecc417880df1851d8427722 + name: 'WAL: Bytes received' + type: DEPENDENT + key: pgsql.wal.receive + delay: '0' + units: B + description: 'WAL receive, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.receive + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.wal.stat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: wal + - uuid: cb2a0f990a39411e9d3c7d95cc7504ee + name: 'Get WAL' + type: ZABBIX_ACTIVE + key: 'pgsql.wal.stat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect write-ahead log (WAL) metrics.' + tags: + - tag: component + value: raw + - uuid: 492f311473f645f19b79f46d07c9950a + name: 'WAL: Bytes written' + type: DEPENDENT + key: pgsql.wal.write + delay: '0' + units: B + description: 'WAL write, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.write + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.wal.stat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: wal + discovery_rules: + - uuid: c5a95125be304bbeba407ce926ad7816 + name: 'Database discovery' + type: ZABBIX_ACTIVE + key: 'pgsql.db.discovery["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DBNAME}' + value: '{$PG.LLD.FILTER.DBNAME}' + formulaid: A + description: | + Discovers databases (DB) in the database management system (DBMS), except: + - templates; + - DBs that do not allow connections. + item_prototypes: + - uuid: 7df48c3384b14356903c38b3b0e1c435 + name: 'DB [{#DBNAME}]: Database age' + type: ZABBIX_ACTIVE + key: 'pgsql.db.age["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + delay: 10m + description: 'Database age.' + tags: + - tag: component + value: application + - tag: database + value: '{#DBNAME}' + - uuid: cd5516d8ea994a9e86aff2081d611176 + name: 'DB [{#DBNAME}]: Bloating tables' + type: ZABBIX_ACTIVE + key: 'pgsql.db.bloating_tables["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + description: 'Number of bloating tables.' + tags: + - tag: component + value: tables + - tag: database + value: '{#DBNAME}' + - uuid: f2d58306483d4bb4a215e245f133b4ad + name: 'DB [{#DBNAME}]: Database size' + type: ZABBIX_ACTIVE + key: 'pgsql.db.size["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + delay: 5m + units: B + description: 'Database size.' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: ce43087066804e828d8a64eb0cc13ac6 + name: 'DB [{#DBNAME}]: Blocks hit per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of times per second disk blocks were found already in the buffer cache, so that a read was not necessary.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_hit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: cache + - tag: database + value: '{#DBNAME}' + - uuid: 01d227b759d7404481e12e0daa90b3bb + name: 'DB [{#DBNAME}]: Disk blocks read per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of disk blocks read per second in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 1592dc3a802944cf8946bfee38652d44 + name: 'DB [{#DBNAME}]: Disk blocks read time per second' + type: DEPENDENT + key: 'pgsql.dbstat.blk_read_time.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent reading data file blocks by backends per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_read_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 491b9e40b3a243d6b22fb24124d98293 + name: 'DB [{#DBNAME}]: Disk blocks write time' + type: DEPENDENT + key: 'pgsql.dbstat.blk_write_time.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: s + description: 'Time spent writing data file blocks by backends per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.blk_write_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 9540fc8baf2c4b0b81e4d8eafe1f57cf + name: 'DB [{#DBNAME}]: Checksum failures' + type: DEPENDENT + key: 'pgsql.dbstat.checksum_failures.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of data page checksum failures detected in this database.' + valuemap: + name: 'PostgreSQL checksum failure status' + preprocessing: + - type: JSONPATH + parameters: + - $.checksum_failures + - type: MATCHES_REGEX + parameters: + - '^\d*$' + error_handler: CUSTOM_VALUE + error_handler_params: '-2' + - type: CHANGE_PER_SECOND + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: system + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: b0a2935d0a984233a530cf47d8fc606b + expression: 'last(/PostgreSQL by Zabbix agent 2 active/pgsql.dbstat.checksum_failures.rate["{#DBNAME}"])>0' + name: 'PostgreSQL: DB [{#DBNAME}]: Checksum failures detected' + priority: AVERAGE + description: | + Data page checksum failures were detected on that database: + https://www.postgresql.org/docs/current/checksums.html + tags: + - tag: scope + value: availability + - uuid: 3e48cd0cf7214f77b8b6d9e76c1def00 + name: 'DB [{#DBNAME}]: Detected conflicts per second' + type: DEPENDENT + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of queries canceled due to conflicts with recovery in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.conflicts + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: d156ed02bcad4123a827a3d7900bed1e + expression: 'min(/PostgreSQL by Zabbix agent 2 active/pgsql.dbstat.conflicts.rate["{#DBNAME}"],5m) > {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Too many recovery conflicts' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Too many recovery conflicts (over {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: AVERAGE + description: | + The primary and standby servers are in many ways loosely connected. Actions on the primary will have an effect on the standby. As a result, there is potential for negative interactions or conflicts between them. + https://www.postgresql.org/docs/current/hot-standby.html#HOT-STANDBY-CONFLICT + tags: + - tag: scope + value: performance + - uuid: 43aab996a12a49c582d46f96f999ab89 + name: 'DB [{#DBNAME}]: Detected deadlocks per second' + type: DEPENDENT + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of detected deadlocks in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.deadlocks + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: deadlocks + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: d188109b522b4ff896ed08fb04cf5f9d + expression: 'min(/PostgreSQL by Zabbix agent 2 active/pgsql.dbstat.deadlocks.rate["{#DBNAME}"],5m) > {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Deadlock occurred' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Deadlock occurred (over {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: HIGH + description: 'Number of deadlocks detected per second exceeds {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} for 5m.' + tags: + - tag: scope + value: availability + - uuid: 02c15c6f80e644269e14e5047f07efb1 + name: 'DB [{#DBNAME}]: Get dbstat' + type: DEPENDENT + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get dbstat metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.dbstat["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 2e8648e519524533b430bdf863561ba4 + name: 'DB [{#DBNAME}]: Backends connected' + type: DEPENDENT + key: 'pgsql.dbstat.numbackends["{#DBNAME}"]' + delay: '0' + description: 'Number of backends currently connected to this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.numbackends + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: backends + - tag: database + value: '{#DBNAME}' + - uuid: d2a01165e7c24969b26cdebe42f53c39 + name: 'DB [{#DBNAME}]: Temp_bytes written per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total amount of data written to temporary files by queries in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 74dc57aaeba74b599cda10817961d5da + name: 'DB [{#DBNAME}]: Temp_files created per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + delay: '0' + description: 'Total number of temporary files created by queries in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_files + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: ec42f02be51b49789d1ad1fc3d636be4 + name: 'DB [{#DBNAME}]: Tuples deleted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows deleted by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_deleted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: ffa697ab71734806aac1102c7d133521 + name: 'DB [{#DBNAME}]: Tuples fetched per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows fetched by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_fetched + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 8fe771d00b5648758c0d568cb1d7b207 + name: 'DB [{#DBNAME}]: Tuples inserted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows inserted by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_inserted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: aeb15898d242406393108df7bfd52881 + name: 'DB [{#DBNAME}]: Tuples returned per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of rows returned by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_returned + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 22dee9fb2db8478caf1fd83f415414ef + name: 'DB [{#DBNAME}]: Tuples updated per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows updated by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_updated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 2bfdd988bca74df5a31dbf3727aa10a0 + name: 'DB [{#DBNAME}]: Commits per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of transactions in this database that have been committed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_commit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: b7edf603e83a48bca580e932fc87c5cf + name: 'DB [{#DBNAME}]: Rollbacks per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of transactions in this database that have been rolled back.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_rollback + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: af381c8bd21c4189b6b8230325c97358 + name: 'DB [{#DBNAME}]: Num of accessexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.accessexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of accessexclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.accessexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: fe133b91b9a3474ab5ed12055c277969 + name: 'DB [{#DBNAME}]: Num of accessshare locks' + type: DEPENDENT + key: 'pgsql.locks.accessshare["{#DBNAME}"]' + delay: '0' + description: 'Number of accessshare locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.accessshare + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 3a28968abd5945cebb1157ae74e2de7d + name: 'DB [{#DBNAME}]: Num of exclusive locks' + type: DEPENDENT + key: 'pgsql.locks.exclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of exclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.exclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: ce03b994ad894100a11816b043d84c23 + name: 'DB [{#DBNAME}]: Get locks' + type: DEPENDENT + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get locks metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.locks["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 8bb0fe1e02ef4ad19f4367dbc67e9bc0 + name: 'DB [{#DBNAME}]: Num of rowexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.rowexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of rowexclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.rowexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 9821b111e1e741a592c962c503129eae + name: 'DB [{#DBNAME}]: Num of rowshare locks' + type: DEPENDENT + key: 'pgsql.locks.rowshare["{#DBNAME}"]' + delay: '0' + description: 'Number of rowshare locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.rowshare + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 94b2491b18d74345b5bd33a523049cbf + name: 'DB [{#DBNAME}]: Num of sharerowexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.sharerowexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of total sharerowexclusive for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.sharerowexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 888f4f0f47b54d708d87b22efa25f0e5 + name: 'DB [{#DBNAME}]: Num of shareupdateexclusive locks' + type: DEPENDENT + key: 'pgsql.locks.shareupdateexclusive["{#DBNAME}"]' + delay: '0' + description: 'Number of shareupdateexclusive locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.shareupdateexclusive + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 70abd9b269f94310875c1777c089741b + name: 'DB [{#DBNAME}]: Num of share locks' + type: DEPENDENT + key: 'pgsql.locks.share["{#DBNAME}"]' + delay: '0' + description: 'Number of share locks for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.share + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 19d118b8a99845ef8d2eaaa5ec38f50d + name: 'DB [{#DBNAME}]: Num of locks total' + type: DEPENDENT + key: 'pgsql.locks.total["{#DBNAME}"]' + delay: '0' + description: 'Total number of locks in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + master_item: + key: 'pgsql.locks.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + - uuid: 15cf79b8fafa442a80a10368f5b5962d + name: 'DB [{#DBNAME}]: Get queries' + type: DEPENDENT + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get queries metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.queries["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: f8c0e60c70d14103b39b1a6218093c0a + name: 'DB [{#DBNAME}]: Queries slow maintenance count' + type: DEPENDENT + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow maintenance query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 8d16b715b12648f5b5dca0f80857e46e + name: 'DB [{#DBNAME}]: Queries max maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max maintenance query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: af2c1c09b2a04911b2e6e892d1051e94 + name: 'DB [{#DBNAME}]: Queries sum maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum maintenance query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: bd070ec5cbcf42a7a2dfa56dd3eca7a3 + name: 'DB [{#DBNAME}]: Queries slow query count' + type: DEPENDENT + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: be059c5eb7b6442b8312ef58b2bc55cc + expression: 'min(/PostgreSQL by Zabbix agent 2 active/pgsql.queries.query.slow_count["{#DBNAME}"],5m)>{$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Too many slow queries' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Too many slow queries (over {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: WARNING + description: 'The number of detected slow queries exceeds the limit of {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}.' + tags: + - tag: scope + value: performance + - uuid: 827abbb549b640f28a7984ba157de73e + name: 'DB [{#DBNAME}]: Queries max query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 93a773701de54ce3a3af3d651167c0a9 + name: 'DB [{#DBNAME}]: Queries sum query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: ee6fb28b33424ffab8e336280cfe5d7e + name: 'DB [{#DBNAME}]: Queries slow transaction count' + type: DEPENDENT + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow transaction query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 73c67fc53f944fb6a15c0e0776ba4cf3 + name: 'DB [{#DBNAME}]: Queries max transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max transaction query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 62771b2b28f94f93b54ea5e31f336938 + name: 'DB [{#DBNAME}]: Queries sum transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum transaction query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + graph_prototypes: + - uuid: 2c0fea3adf254d41b123fb69202c51fe + name: 'DB [{#DBNAME}]: Locks' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.locks.total["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.locks.accessexclusive["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.locks.accessshare["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.locks.exclusive["{#DBNAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.locks.rowexclusive["{#DBNAME}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.locks.rowshare["{#DBNAME}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.locks.sharerowexclusive["{#DBNAME}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.locks.shareupdateexclusive["{#DBNAME}"]' + - sortorder: '8' + color: F230E0 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.locks.share["{#DBNAME}"]' + - uuid: 96144801ca8a4c02ac88c49f0fb4eb7c + name: 'DB [{#DBNAME}]: Number of bloating tables' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.db.bloating_tables["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + - uuid: 55268d2bc7224902836b8ec683b82865 + name: 'DB [{#DBNAME}]: pg_stat_database metrics' + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + - sortorder: '8' + color: F230E0 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + - sortorder: '9' + color: 5CCD18 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + - sortorder: '10' + color: BB2A02 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + - sortorder: '11' + color: AC41A5 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + - sortorder: '12' + color: 89ABF8 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + - uuid: 7d0246026bae4e6680f19626fba2bc02 + name: 'DB [{#DBNAME}]: Queries' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + - sortorder: '5' + drawtype: GRADIENT_LINE + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + - uuid: 9a4b7b68ae0f4291a970e3e1838368c6 + name: 'DB [{#DBNAME}]: Size' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.db.size["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + - uuid: 31c3e16c49ba486db9f6f92714d927b6 + name: 'DB [{#DBNAME}]: Slow queries' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + - uuid: 92ba6c1b038a454d8d8d40399d0967d8 + name: 'Replication discovery' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.process.discovery["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 15m + filter: + evaltype: AND + conditions: + - macro: '{#APPLICATION_NAME}' + value: '{$PG.LLD.FILTER.APPLICATION}' + formulaid: A + description: 'Discovers replication lag metrics.' + item_prototypes: + - uuid: 7d994bb6b0de4f76810e4beaf9c6318c + name: 'Application [{#APPLICATION_NAME}]: Get replication' + type: DEPENDENT + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect metrics from the "pg_stat_replication" about the application "{#APPLICATION_NAME}" that is connected to this WAL sender, which contains information about the WAL sender process, showing statistics about replication to that sender''s connected standby server.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#APPLICATION_NAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.replication.process["{$PG.CONNSTRING.AGENT2}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: raw + - uuid: 33541a2ce9894c71aef710d1e227dab2 + name: 'Application [{#APPLICATION_NAME}]: Replication flush lag' + type: DEPENDENT + key: 'pgsql.replication.process.flush_lag["{#APPLICATION_NAME}"]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - $.flush_lag + master_item: + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: replication + - uuid: 4ef7353e3b904f33ac2b592d5cbfba62 + name: 'Application [{#APPLICATION_NAME}]: Replication replay lag' + type: DEPENDENT + key: 'pgsql.replication.process.replay_lag["{#APPLICATION_NAME}"]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - $.replay_lag + master_item: + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: replication + - uuid: 3beb600f296c4263b92434a46bd946cd + name: 'Application [{#APPLICATION_NAME}]: Replication write lag' + type: DEPENDENT + key: 'pgsql.replication.process.write_lag["{#APPLICATION_NAME}"]' + delay: '0' + value_type: FLOAT + units: s + preprocessing: + - type: JSONPATH + parameters: + - $.write_lag + master_item: + key: 'pgsql.replication.get_metrics["{#APPLICATION_NAME}"]' + tags: + - tag: application + value: '{#APPLICATION_NAME}' + - tag: component + value: replication + graph_prototypes: + - uuid: 3942169cc1eb4715a5f2ca0ee58c33df + name: 'Application [{#APPLICATION_NAME}]: Replication lag' + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.replication.process.flush_lag["{#APPLICATION_NAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.replication.process.replay_lag["{#APPLICATION_NAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent 2 active' + key: 'pgsql.replication.process.write_lag["{#APPLICATION_NAME}"]' + tags: + - tag: class + value: database + - tag: target + value: postgresql + macros: + - macro: '{$PG.CONFLICTS.MAX.WARN}' + value: '0' + description: 'Maximum number of recovery conflicts for trigger expression.' + - macro: '{$PG.CONNSTRING.AGENT2}' + value: 'tcp://localhost:5432' + description: 'URI or named session of the PostgreSQL instance.' + - macro: '{$PG.CONN_TOTAL_PCT.MAX.WARN}' + value: '90' + description: 'Maximum percentage of current connections for trigger expression.' + - macro: '{$PG.DATABASE}' + value: postgres + description: 'Default PostgreSQL database for the connection.' + - macro: '{$PG.DEADLOCKS.MAX.WARN}' + value: '0' + description: 'Maximum number of detected deadlocks for trigger expression.' + - macro: '{$PG.LLD.FILTER.APPLICATION}' + value: .+ + description: 'Filter of discoverable applications.' + - macro: '{$PG.LLD.FILTER.DBNAME}' + value: .+ + description: 'Filter of discoverable databases.' + - macro: '{$PG.PASSWORD}' + value: '' + description: 'PostgreSQL user password.' + - macro: '{$PG.QUERY_ETIME.MAX.WARN}' + value: '30' + description: 'Execution time limit for count of slow queries.' + - macro: '{$PG.SLOW_QUERIES.MAX.WARN}' + value: '5' + description: 'Slow queries count threshold for a trigger.' + - macro: '{$PG.USER}' + value: zbx_monitor + description: 'PostgreSQL username.' + dashboards: + - uuid: ee3e7ee2f7de495997f4749a23f00f48 + name: 'PostgreSQL databases' + pages: + - widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2 active' + name: 'DB [{#DBNAME}]: pg_stat_database metrics' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2 active' + name: 'DB [{#DBNAME}]: Size' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2 active' + name: 'DB [{#DBNAME}]: Queries' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2 active' + name: 'DB [{#DBNAME}]: Locks' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2 active' + name: 'DB [{#DBNAME}]: Number of bloating tables' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent 2 active' + name: 'DB [{#DBNAME}]: Slow queries' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: 9b9961c136c4426bb6d11c749cbb4cfa + name: 'PostgreSQL checksum failure status' + mappings: + - value: '-2' + newvalue: 'null' + - uuid: bf1b2c09ce844d9c8b2735901fe77a03 + name: 'PostgreSQL recovery role' + mappings: + - value: '0' + newvalue: Master + - value: '1' + newvalue: Standby + - uuid: ee126cb6f7e14a93ae1e21106ee8732f + name: 'PostgreSQL replication status' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - value: '2' + newvalue: Master + - uuid: e11dca50f6e4481fa1fda75aeb71cf8c + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up diff --git a/PostgreSQL_by_Zabbix_agent_active.yaml b/PostgreSQL_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..2e86ef2 --- /dev/null +++ b/PostgreSQL_by_Zabbix_agent_active.yaml @@ -0,0 +1,2147 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 7005acc9123e4bc290805a3a16dab9cf + template: 'PostgreSQL by Zabbix agent active' + name: 'PostgreSQL by Zabbix agent active' + description: | + This template is designed for the deployment of PostgreSQL monitoring by Zabbix via Zabbix agent and uses user parameters to run SQL queries with the `psql` command-line tool. + + Note: + - The template requires `pg_isready` and `psql` utilities to be installed on the same host with Zabbix agent. + - The template requires files with SQL queries and user parameters that can be found in the Zabbix official repository: + https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/postgresql?at=refs%2Fheads%2Frelease%2F6.0 + + Setup: + + 1. Deploy Zabbix agent and create the PostgreSQL user for monitoring (`` at your discretion) with proper access rights to your PostgreSQL instance. + + For PostgreSQL version 10 and above: + CREATE USER zbx_monitor WITH PASSWORD '' INHERIT; + GRANT pg_monitor TO zbx_monitor; + + For PostgreSQL version 9.6 and below: + CREATE USER zbx_monitor WITH PASSWORD ''; + GRANT SELECT ON pg_stat_database TO zbx_monitor; + ALTER USER zbx_monitor WITH SUPERUSER; + + 2. Copy the `postgresql/` directory to the `zabbix` user home directory - `/var/lib/zabbix/`. The `postgresql/` directory contains the files with SQL queries needed to obtain metrics from PostgreSQL instance. + + If the home directory of the `zabbix` user doesn't exist, create it first: + mkdir -m u=rwx,g=rwx,o= -p /var/lib/zabbix + chown zabbix:zabbix /var/lib/zabbix + + 3. Copy the `template_db_postgresql.conf` file, containing user parameters, to the Zabbix agent configuration directory `/etc/zabbix/zabbix_agentd.d/` and restart Zabbix agent service. + + If you want to use SSL/TLS encryption to protect communications with the remote PostgreSQL instance, you can modify the connection string in user parameters. For example, to enable required encryption in transport mode without identity checks you could append `?sslmode=required` to the end of the connection string for all keys that use `psql`: + UserParameter=pgsql.bgwriter[*], psql -qtAX postgresql://"$3":"$4"@"$1":"$2"/"$5"?sslmode=required -f "/var/lib/zabbix/postgresql/pgsql.bgwriter.sql" + + Consult the PostgreSQL documentation about protection modes (https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-PROTECTION) and client connection parameters (https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLMODE). + + Also, it is assumed that you set up the PostgreSQL instance to work in the desired encryption mode. Check the PostgreSQL documentation (https://www.postgresql.org/docs/current/ssl-tcp.html) for details. + + 4. Edit the `pg_hba.conf` configuration file to allow connections for the user `zbx_monitor`. You can check the PostgreSQL documentation for examples (https://www.postgresql.org/docs/current/auth-pg-hba-conf.html). + + 5. Specify the host name or IP address in the `{$PG.HOST}` macro. Adjust the port number with `{$PG.PORT}` macro if needed. + + 6. Set the password that you specified in step 1 in the macro `{$PG.PASSWORD}`. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384190-%C2%A0discussion-thread-for-official-zabbix-template-db-postgresql + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + items: + - uuid: d469ec16aa434e3e82695d143abe479a + name: 'Bgwriter: Buffers allocated per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_alloc.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers allocated per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_alloc + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 511c3b3b363f43dd93746b3e0dad0f07 + name: 'Bgwriter: Buffers written directly by a backend per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_backend.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written directly by a backend per second. Available in PostgreSQL versions prior to 17.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 19795654aab941db8a95b092dda58737 + name: 'Bgwriter: Times a backend executed its own fsync per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_backend_fsync.rate + delay: '0' + value_type: FLOAT + description: 'Number of times a backend had to execute its own fsync call per second (normally the background writer handles those even when the backend does its own write). Available in PostgreSQL versions prior to 17.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend_fsync + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: a366775a3079422184cfac96f34173d6 + name: 'Checkpoint: Buffers written during checkpoints per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_checkpoint.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written during checkpoints per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_checkpoint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 62598e17214f44888fa57db4214a3b5f + name: 'Checkpoint: Buffers written by the background writer per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_clean.rate + delay: '0' + value_type: FLOAT + description: 'Number of buffers written by the background writer per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 6c05e2cb877142fe8b1c03ab6566a134 + name: 'Checkpoint: Requested per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoints_req.rate + delay: '0' + value_type: FLOAT + description: 'Number of requested checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_req + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + triggers: + - uuid: 62699d1627fe4141ac59291b138b4f7e + expression: 'last(/PostgreSQL by Zabbix agent active/pgsql.bgwriter.checkpoints_req.rate) > {$PG.CHECKPOINTS_REQ.MAX.WARN}' + name: 'PostgreSQL: Required checkpoints occur too frequently' + event_name: 'PostgreSQL: Required checkpoints occur too frequently (over {$PG.CHECKPOINTS_REQ.MAX.WARN})' + priority: AVERAGE + description: | + Checkpoints are points in the sequence of transactions at which it is guaranteed that the heap and index data files have been updated with all information written before that checkpoint. At checkpoint time, all dirty data pages are flushed to disk and a special checkpoint record is written to the log file. + https://www.postgresql.org/docs/current/wal-configuration.html + tags: + - tag: scope + value: performance + - uuid: 9f4020e7f0294ffb9e15b75982be5a68 + name: 'Checkpoint: Scheduled per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoints_timed.rate + delay: '0' + value_type: FLOAT + description: 'Number of scheduled checkpoints that have been performed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_timed + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: bf59309e2fba4601920c64ab96f4d07e + name: 'Checkpoint: Checkpoint sync time per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoint_sync_time.rate + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are synchronized to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_sync_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 5bd159a9c2794486b0548f701605ccbc + name: 'Checkpoint: Checkpoint write time per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoint_write_time.rate + delay: '0' + value_type: FLOAT + units: s + description: 'Total amount of time per second that has been spent in the portion of checkpoint processing where files are written to disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_write_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 716b6c5c1f304d17ad9784ebee2062e1 + name: 'Bgwriter: Number of bgwriter cleaning scan stopped per second' + type: DEPENDENT + key: pgsql.bgwriter.maxwritten_clean.rate + delay: '0' + value_type: FLOAT + description: 'Number of times the background writer stopped a cleaning scan because it had written too many buffers per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxwritten_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: bgwriter + - uuid: 08043026cea14053a0addd4bdb7b7b8d + name: 'Get bgwriter' + type: ZABBIX_ACTIVE + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: 1h + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_bgwriter: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-BGWRITER-VIEW + tags: + - tag: component + value: raw + triggers: + - uuid: 33ad0c74e4a34656bd911ebc2920e70a + expression: 'nodata(/PostgreSQL by Zabbix agent active/pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],30m) = 1' + name: 'PostgreSQL: Failed to get items' + event_name: 'PostgreSQL: Failed to get items (no data for 30m)' + priority: WARNING + description: 'Zabbix has not received any data for items for the last 30 minutes.' + dependencies: + - name: 'PostgreSQL: Service is down' + expression: 'last(/PostgreSQL by Zabbix agent active/pgsql.ping["{$PG.HOST}","{$PG.PORT}"]) = 0' + tags: + - tag: scope + value: availability + - uuid: 934e6647557f41cba46532a5a5c5d2ea + name: 'Cache hit ratio, %' + type: ZABBIX_ACTIVE + key: 'pgsql.cache.hit["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + value_type: FLOAT + units: '%' + description: 'Cache hit ratio.' + tags: + - tag: component + value: cache + triggers: + - uuid: bd2fd99b03b54916963dd661c959dd2f + expression: 'max(/PostgreSQL by Zabbix agent active/pgsql.cache.hit["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],5m) < {$PG.CACHE_HITRATIO.MIN.WARN}' + name: 'PostgreSQL: Cache hit ratio too low' + event_name: 'PostgreSQL: Cache hit ratio too low (under {$PG.CACHE_HITRATIO.MIN.WARN} in 5m)' + priority: WARNING + description: 'Cache hit ratio is lower than {$PG.CACHE_HITRATIO.MIN.WARN} for 5m.' + tags: + - tag: scope + value: performance + - uuid: 2d028578428949da8fa05d1f62f9f615 + name: 'Config hash' + type: ZABBIX_ACTIVE + key: 'pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 15m + value_type: TEXT + trends: '0' + description: 'PostgreSQL configuration hash.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: application + triggers: + - uuid: 483c370fa82f4c18ac9dbe7b07a4d7ff + expression: 'last(/PostgreSQL by Zabbix agent active/pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#1)<>last(/PostgreSQL by Zabbix agent active/pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#2) and length(last(/PostgreSQL by Zabbix agent active/pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]))>0' + name: 'PostgreSQL: Configuration has changed' + priority: INFO + description: 'PostgreSQL configuration has changed.' + tags: + - tag: scope + value: notice + - uuid: 7866090bfc5d4e1db50b50957b372685 + name: 'Connections sum: Active' + type: DEPENDENT + key: pgsql.connections.sum.active + delay: '0' + description: 'Total number of connections executing a query.' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 7853f5db0cc54865ba0fc3323b4b9810 + name: 'Connections sum: Idle' + type: DEPENDENT + key: pgsql.connections.sum.idle + delay: '0' + description: 'Total number of connections waiting for a new client command.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: b609844ba35149e2a92e43ce5aa4c6f1 + name: 'Connections sum: Idle in transaction' + type: DEPENDENT + key: pgsql.connections.sum.idle_in_transaction + delay: '0' + description: 'Total number of connections in a transaction state but not executing a query.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle_in_transaction + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: dc8be28daed141c789beab5e7c64c660 + name: 'Connections sum: Prepared' + type: DEPENDENT + key: pgsql.connections.sum.prepared + delay: '0' + description: | + Total number of prepared transactions: + https://www.postgresql.org/docs/current/sql-prepare-transaction.html + preprocessing: + - type: JSONPATH + parameters: + - $.prepared + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: c04d920d78e54039bca114e94c655a17 + name: 'Connections sum: Total' + type: DEPENDENT + key: pgsql.connections.sum.total + delay: '0' + description: 'Total number of connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.total + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: ea0eaf2f784f476e9ce72fa119f8badb + name: 'Connections sum: Total, %' + type: DEPENDENT + key: pgsql.connections.sum.total_pct + delay: '0' + units: '%' + description: 'Total number of connections, in percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_pct + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: b4673d7606514a6cb5b3ef61b5b05ce1 + expression: 'min(/PostgreSQL by Zabbix agent active/pgsql.connections.sum.total_pct,5m) > {$PG.CONN_TOTAL_PCT.MAX.WARN}' + name: 'PostgreSQL: Total number of connections is too high' + event_name: 'PostgreSQL: Total number of connections is too high (over {$PG.CONN_TOTAL_PCT.MAX.WARN} in 5m)' + priority: AVERAGE + description: 'Total number of current connections exceeds the limit of {$PG.CONN_TOTAL_PCT.MAX.WARN}% out of the maximum number of concurrent connections to the database server (the "max_connections" setting).' + tags: + - tag: scope + value: performance + - uuid: e19ab5dbf64348158c6033073c1a1058 + name: 'Connections sum: Waiting' + type: DEPENDENT + key: pgsql.connections.sum.waiting + delay: '0' + description: | + Total number of waiting connections: + https://www.postgresql.org/docs/current/monitoring-stats.html#WAIT-EVENT-TABLE + preprocessing: + - type: JSONPATH + parameters: + - $.waiting + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: connections + - uuid: 13cce1cb170f4c9db977cb49fc603f79 + name: 'Get connections sum' + type: ZABBIX_ACTIVE + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_activity: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW + tags: + - tag: component + value: raw + - uuid: bea2e947b16b4a3dac660e664a505904 + name: 'Get dbstat' + type: ZABBIX_ACTIVE + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_stat_database per database: + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-DATABASE-VIEW + tags: + - tag: component + value: raw + - uuid: e5adbe1c2fc74943926cf45ff5efbff3 + name: 'Get locks' + type: ZABBIX_ACTIVE + key: 'pgsql.locks["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Collect all metrics from pg_locks per database: + https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-TABLES + tags: + - tag: component + value: raw + - uuid: 2ab77e9548014233b0945bdeb9c134bd + name: 'Ping time' + type: ZABBIX_ACTIVE + key: 'pgsql.ping.time["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + value_type: FLOAT + units: s + description: 'Used to get the `SELECT 1` query execution time.' + preprocessing: + - type: REGEX + parameters: + - 'Time:\s+(\d+\.\d+)\s+ms' + - \1 + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 0b54c409159f494c969c040d295b5cfb + expression: 'min(/PostgreSQL by Zabbix agent active/pgsql.ping.time["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],5m) > {$PG.PING_TIME.MAX.WARN}' + name: 'PostgreSQL: Response too long' + event_name: 'PostgreSQL: Response too long (over {$PG.PING_TIME.MAX.WARN})' + priority: AVERAGE + description: 'Response is taking too long (over {$PG.PING_TIME.MAX.WARN} for 5m).' + dependencies: + - name: 'PostgreSQL: Service is down' + expression: 'last(/PostgreSQL by Zabbix agent active/pgsql.ping["{$PG.HOST}","{$PG.PORT}"]) = 0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 058b3cd8308b4692a5cb3e89a47886bd + name: Ping + type: ZABBIX_ACTIVE + key: 'pgsql.ping["{$PG.HOST}","{$PG.PORT}"]' + description: 'Used to test a connection to see if it is alive. It is set to 0 if the instance doesn''t accept the connections.' + valuemap: + name: 'Service state' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return value.search(/accepting connections/)>0 ? 1 : 0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 32a43d55902d46b09f602dc89e3a2586 + expression: 'last(/PostgreSQL by Zabbix agent active/pgsql.ping["{$PG.HOST}","{$PG.PORT}"]) = 0' + name: 'PostgreSQL: Service is down' + priority: HIGH + description: 'Last test of a connection was unsuccessful.' + tags: + - tag: scope + value: availability + - uuid: 2a4de36d7b434260b264a63ab444a430 + name: 'Get queries' + type: ZABBIX_ACTIVE + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{$PG.QUERY_ETIME.MAX.WARN}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect all metrics by query execution time.' + tags: + - tag: component + value: raw + - uuid: 401331b4eab0439ca954551bce2f0c2e + name: 'Replication: Standby count' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.count["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Number of standby servers.' + tags: + - tag: component + value: replication + - uuid: 2005dff88ab64458b3970a40e5bf0aff + name: 'Replication: Lag in seconds' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.lag.sec["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + units: s + description: 'Replication lag with master, in seconds.' + tags: + - tag: component + value: replication + triggers: + - uuid: 99adc9f76c0b42a08c22271b9206ce18 + expression: 'min(/PostgreSQL by Zabbix agent active/pgsql.replication.lag.sec["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],5m) > {$PG.REPL_LAG.MAX.WARN}' + name: 'PostgreSQL: Streaming lag with master is too high' + event_name: 'PostgreSQL: Streaming lag with master is too high (over {$PG.REPL_LAG.MAX.WARN} in 5m)' + priority: AVERAGE + description: 'Replication lag with master is higher than {$PG.REPL_LAG.MAX.WARN} for 5m.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 808f71865b934ac68512a3d6fa8b4aab + name: 'Replication: Recovery role' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.recovery_role["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Replication role: 1 — recovery is still in progress (standby mode), 0 — master mode.' + valuemap: + name: 'PostgreSQL recovery role' + tags: + - tag: component + value: replication + - uuid: 5c4061c4081d41fa86741a296378d031 + name: 'Replication: Status' + type: ZABBIX_ACTIVE + key: 'pgsql.replication.status["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + description: 'Replication status: 0 — streaming is down, 1 — streaming is up, 2 — master mode.' + valuemap: + name: 'PostgreSQL replication status' + tags: + - tag: component + value: replication + triggers: + - uuid: 63b498ebd0484bc59f701e4179ed4fb2 + expression: 'max(/PostgreSQL by Zabbix agent active/pgsql.replication.status["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],5m)=0' + name: 'PostgreSQL: Replication is down' + priority: AVERAGE + description: 'Replication is enabled and data streaming was down for 5m.' + tags: + - tag: scope + value: availability + - uuid: ecbeae6a23e74cc89c670daf60f81833 + name: 'Transactions: Max active transaction time' + type: DEPENDENT + key: pgsql.transactions.active + delay: '0' + value_type: FLOAT + units: s + description: 'Current max active transaction time.' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: 406d76761c0b4e0dbe83a14f48874fed + name: 'Transactions: Max idle transaction time' + type: DEPENDENT + key: pgsql.transactions.idle + delay: '0' + value_type: FLOAT + units: s + description: 'Current max idle transaction time.' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: 3e0f09be15284811a4f9864be8aaa1e7 + name: 'Transactions: Max prepared transaction time' + type: DEPENDENT + key: pgsql.transactions.prepared + delay: '0' + value_type: FLOAT + units: s + description: 'Current max prepared transaction time.' + preprocessing: + - type: JSONPATH + parameters: + - $.prepared + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: 2c5f5402e73942ef9a51d7965b9e705b + name: 'Transactions: Max waiting transaction time' + type: DEPENDENT + key: pgsql.transactions.waiting + delay: '0' + value_type: FLOAT + units: s + description: 'Current max waiting transaction time.' + preprocessing: + - type: JSONPATH + parameters: + - $.waiting + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: transactions + - uuid: b22ed1707bd84c4faa010803b2c594fa + name: 'Get transactions' + type: ZABBIX_ACTIVE + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect metrics by transaction execution time.' + tags: + - tag: component + value: raw + - uuid: d310b47d3e38466a980494fb0f9dfb01 + name: Uptime + type: ZABBIX_ACTIVE + key: 'pgsql.uptime["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + units: uptime + description: 'Time since the server started.' + tags: + - tag: component + value: application + triggers: + - uuid: a7c05ccff4c342018777471d1f3a17b7 + expression: 'last(/PostgreSQL by Zabbix agent active/pgsql.uptime["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]) < 10m' + name: 'PostgreSQL: Service has been restarted' + event_name: 'PostgreSQL: Service has been restarted (uptime < 10m)' + priority: AVERAGE + description: 'PostgreSQL uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 9798496e21914a8cbdee1cd85decf3e8 + name: Version + type: ZABBIX_ACTIVE + key: 'pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 15m + value_type: CHAR + trends: '0' + description: 'PostgreSQL version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + triggers: + - uuid: e06391b8cfe74fb5ad3b3bb2718b5e58 + expression: 'last(/PostgreSQL by Zabbix agent active/pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#1)<>last(/PostgreSQL by Zabbix agent active/pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"],#2) and length(last(/PostgreSQL by Zabbix agent active/pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]))>0' + name: 'PostgreSQL: Version has changed' + event_name: 'PostgreSQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: b1c6d3ff86f240df8f2c3a14a47e4df1 + name: 'WAL: Segments count' + type: DEPENDENT + key: pgsql.wal.count + delay: '0' + description: 'Number of WAL segments.' + preprocessing: + - type: JSONPATH + parameters: + - $.count + master_item: + key: 'pgsql.wal.stat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: wal + - uuid: 9ca8653ea8304b5392d1c39111381751 + name: 'Get WAL' + type: ZABBIX_ACTIVE + key: 'pgsql.wal.stat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + description: 'Collect write-ahead log (WAL) metrics.' + tags: + - tag: component + value: raw + - uuid: 08580207e58142a393e310b0d592a7d5 + name: 'WAL: Bytes written' + type: DEPENDENT + key: pgsql.wal.write + delay: '0' + units: B + description: 'WAL write, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.write + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.wal.stat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: wal + discovery_rules: + - uuid: d9625ea888804a8b82d395e1e002c6cd + name: 'Database discovery' + type: ZABBIX_ACTIVE + key: 'pgsql.discovery.db["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + delay: 1h + filter: + conditions: + - macro: '{#DBNAME}' + value: '{$PG.LLD.FILTER.DBNAME}' + formulaid: A + description: | + Discovers databases (DB) in the database management system (DBMS), except: + - templates; + - default "postgres" DB; + - DBs that do not allow connections. + item_prototypes: + - uuid: f8d430b69f4f4f2aa04e2906cc4ab3cd + name: 'DB [{#DBNAME}]: Database size' + type: ZABBIX_ACTIVE + key: 'pgsql.db.size["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{#DBNAME}"]' + delay: 15m + units: B + description: 'Database size.' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: aa8e864297914f25bb6cc6b914871a46 + name: 'DB [{#DBNAME}]: Blocks hit per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of times per second disk blocks were found already in the buffer cache, so that a read was not necessary.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_hit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: cache + - tag: database + value: '{#DBNAME}' + - uuid: 69d6cc93dbff4669a18b6e12fb6e8b7a + name: 'DB [{#DBNAME}]: Disk blocks read per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of disk blocks read per second in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.blks_read + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 8894ff8a7e4641559efd456a9024ef9a + name: 'DB [{#DBNAME}]: Detected conflicts per second' + type: DEPENDENT + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of queries canceled due to conflicts with recovery in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.conflicts + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: e35f79c06fba41dfb9d9c35e4a13a043 + expression: 'min(/PostgreSQL by Zabbix agent active/pgsql.dbstat.conflicts.rate["{#DBNAME}"],5m) > {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Too many recovery conflicts' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Too many recovery conflicts (over {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: AVERAGE + description: | + The primary and standby servers are in many ways loosely connected. Actions on the primary will have an effect on the standby. As a result, there is potential for negative interactions or conflicts between them. + https://www.postgresql.org/docs/current/hot-standby.html#HOT-STANDBY-CONFLICT + tags: + - tag: scope + value: performance + - uuid: 8a3dfbedb1f54b93bc6ca90d9476677c + name: 'DB [{#DBNAME}]: Detected deadlocks per second' + type: DEPENDENT + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of detected deadlocks in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.deadlocks + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: deadlocks + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 5243a46334674a06b52efdef93bce0ec + expression: 'min(/PostgreSQL by Zabbix agent active/pgsql.dbstat.deadlocks.rate["{#DBNAME}"],5m) > {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Deadlock occurred' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Deadlock occurred (over {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: HIGH + description: 'Number of deadlocks detected per second exceeds {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} for 5m.' + tags: + - tag: scope + value: availability + - uuid: f7a0b95d306542ddb8b9730650f4fc27 + name: 'DB [{#DBNAME}]: Get dbstat' + type: DEPENDENT + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get dbstat metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: eabd8d2f4a9d4a48be75d0d56eb48e17 + name: 'DB [{#DBNAME}]: Temp_bytes written per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + delay: '0' + units: B + description: 'Total amount of data written to temporary files by queries in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_bytes + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 51288ac46f5c49ae8cafe421bbb41d29 + name: 'DB [{#DBNAME}]: Temp_files created per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + delay: '0' + description: 'Total number of temporary files created by queries in this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.temp_files + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 7ad48d3b888a4f24a091a597e3189fee + name: 'DB [{#DBNAME}]: Tuples deleted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows deleted by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_deleted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: c0688782315f49aba4a468d9d0bac3e6 + name: 'DB [{#DBNAME}]: Tuples fetched per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows fetched by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_fetched + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 308fc84decc04b738d3e00cdf8427164 + name: 'DB [{#DBNAME}]: Tuples inserted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows inserted by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_inserted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 42125b8816044bc09ec4904ea78402b0 + name: 'DB [{#DBNAME}]: Tuples returned per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of rows returned by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_returned + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 495797c1a134404d88c4216aebff3f28 + name: 'DB [{#DBNAME}]: Tuples updated per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of rows updated by queries in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.tup_updated + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 88b787af729944e8b262ca99dcefe8a3 + name: 'DB [{#DBNAME}]: Commits per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of transactions in this database that have been committed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_commit + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: 2f31f5f8b36c4742b9a74862b17b30c0 + name: 'DB [{#DBNAME}]: Rollbacks per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Total number of transactions in this database that have been rolled back.' + preprocessing: + - type: JSONPATH + parameters: + - $.xact_rollback + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: 50147f7140144de2af4200b9be95535a + name: 'DB [{#DBNAME}]: Frozen XID before autovacuum, %' + type: DEPENDENT + key: 'pgsql.frozenxid.prc_before_av["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Preventing Transaction ID Wraparound Failures: + https://www.postgresql.org/docs/current/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND + preprocessing: + - type: JSONPATH + parameters: + - $.prc_before_av + master_item: + key: 'pgsql.frozenxid["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: 2cf70e1bfa084b92b7155a1f41351069 + name: 'DB [{#DBNAME}]: Frozen XID before stop, %' + type: DEPENDENT + key: 'pgsql.frozenxid.prc_before_stop["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Preventing Transaction ID Wraparound Failures: + https://www.postgresql.org/docs/current/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND + preprocessing: + - type: JSONPATH + parameters: + - $.prc_before_stop + master_item: + key: 'pgsql.frozenxid["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 0c207f7271ad4df19977722a976b8ccc + expression: 'last(/PostgreSQL by Zabbix agent active/pgsql.frozenxid.prc_before_stop["{#DBNAME}"])<{$PG.FROZENXID_PCT_STOP.MIN.HIGH:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: VACUUM FREEZE is required to prevent wraparound' + event_name: 'PostgreSQL: DB [{#DBNAME}]: VACUUM FREEZE is required to prevent wraparound (frozen XID less than {$PG.FROZENXID_PCT_STOP.MIN.HIGH:"{#DBNAME}"} %)' + priority: AVERAGE + description: | + Preventing Transaction ID Wraparound Failures: + https://www.postgresql.org/docs/current/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND + tags: + - tag: scope + value: availability + - uuid: 2e0e02f98b3c45d195f93e1ed8ec343d + name: 'DB [{#DBNAME}]: Get frozen XID' + type: ZABBIX_ACTIVE + key: 'pgsql.frozenxid["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 220503c9eeac46ea8656f7b5a149c29d + name: 'DB [{#DBNAME}]: Num of locks total' + type: DEPENDENT + key: 'pgsql.locks.total["{#DBNAME}"]' + delay: '0' + description: 'Total number of locks in this database.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].total' + master_item: + key: 'pgsql.locks["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 7a235edcda5d4482a9a3f3e5d741ee6e + expression: 'min(/PostgreSQL by Zabbix agent active/pgsql.locks.total["{#DBNAME}"],5m)>{$PG.LOCKS.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Number of locks is too high' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Number of locks is too high (over {$PG.LOCKS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 1e31cbe913ef44b1896fc44cf11cb18c + name: 'DB [{#DBNAME}]: Get queries' + type: DEPENDENT + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get queries metrics for database "{#DBNAME}".' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}'']' + error_handler: DISCARD_VALUE + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: ed9c08ef16c845c08788de774405cbeb + name: 'DB [{#DBNAME}]: Queries slow maintenance count' + type: DEPENDENT + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow maintenance query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: a405b92ed32c4424a4e0136016370da4 + name: 'DB [{#DBNAME}]: Queries max maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max maintenance query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 58406e650bf74db2ab216d35f4ef8f60 + name: 'DB [{#DBNAME}]: Queries sum maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum maintenance query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.mro_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 04b8af083191408284aab798ed5c2ac4 + name: 'DB [{#DBNAME}]: Queries slow query count' + type: DEPENDENT + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: fe5e595cd37c40c3b99aa28a12575b3d + expression: 'min(/PostgreSQL by Zabbix agent active/pgsql.queries.query.slow_count["{#DBNAME}"],5m)>{$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}' + name: 'PostgreSQL: DB [{#DBNAME}]: Too many slow queries' + event_name: 'PostgreSQL: DB [{#DBNAME}]: Too many slow queries (over {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: WARNING + description: 'The number of detected slow queries exceeds the limit of {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}.' + tags: + - tag: scope + value: performance + - uuid: d47d6e5857534981aeb5e92ef6423c7d + name: 'DB [{#DBNAME}]: Queries max query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: a5c184f0d7c74a52983cccb836fe3d61 + name: 'DB [{#DBNAME}]: Queries sum query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.query_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 4b71f7bbc17c4695beb75cfc9bc67da0 + name: 'DB [{#DBNAME}]: Queries slow transaction count' + type: DEPENDENT + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + delay: '0' + description: 'Slow transaction query count for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_slow_count + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 5489fc69a7ce45a0a0c0cff565a62189 + name: 'DB [{#DBNAME}]: Queries max transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + delay: '0' + units: s + description: 'Max transaction query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_time_max + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 3283a1520f1b4adabf01964efdaaa31c + name: 'DB [{#DBNAME}]: Queries sum transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + delay: '0' + units: s + description: 'Sum transaction query time for this database.' + preprocessing: + - type: JSONPATH + parameters: + - $.tx_time_sum + master_item: + key: 'pgsql.queries.get_metrics["{#DBNAME}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 7e7e322396c24c70bb479ae84b79bbcd + name: 'DB [{#DBNAME}]: Index scans per second' + type: DEPENDENT + key: 'pgsql.scans.idx.rate["{#DBNAME}"]' + delay: '0' + description: 'Number of index scans in the database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.idx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.scans["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: scans + - tag: database + value: '{#DBNAME}' + - uuid: c64cdbfa58994f699fb7ad7c3fd38b5f + name: 'DB [{#DBNAME}]: Sequential scans per second' + type: DEPENDENT + key: 'pgsql.scans.seq.rate["{#DBNAME}"]' + delay: '0' + value_type: FLOAT + description: 'Number of sequential scans in this database per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.seq + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.scans["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: scans + - tag: database + value: '{#DBNAME}' + - uuid: 8ee891f2e0ae4c74a24ebffc67380f01 + name: 'DB [{#DBNAME}]: Get scans' + type: ZABBIX_ACTIVE + key: 'pgsql.scans["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Number of scans done for table/index in this database.' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + graph_prototypes: + - uuid: 692254ddbb2646ed8f8f73e28d400d28 + name: 'DB [{#DBNAME}]: Block hit/read' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + - uuid: 0faea1cf0ef4422cabc9af14f3e774e9 + name: 'DB [{#DBNAME}]: Database size' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.db.size["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}","{#DBNAME}"]' + - uuid: 61a7e55b8e614ae58a5e8675babba974 + name: 'DB [{#DBNAME}]: Events' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + - uuid: 1ef3d8b8ac0d48d9b19551ceb60de933 + name: 'DB [{#DBNAME}]: Locks' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.locks.total["{#DBNAME}"]' + - uuid: 27541a985dc04626836b8c11a038f328 + name: 'DB [{#DBNAME}]: Queries' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + - sortorder: '5' + drawtype: GRADIENT_LINE + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + - uuid: 7d858a9a047b453096471773f8a31063 + name: 'DB [{#DBNAME}]: Slow queries' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + - uuid: 806181664b4b4e44b28a099b0281edad + name: 'DB [{#DBNAME}]: Temp files' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + - uuid: e652d9ffb74b4abab75f811dd696bf21 + name: 'DB [{#DBNAME}]: Tuples' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + - sortorder: '2' + color: 00611C + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + - sortorder: '3' + color: F7941D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + tags: + - tag: class + value: database + - tag: target + value: postgresql + macros: + - macro: '{$PG.CACHE_HITRATIO.MIN.WARN}' + value: '90' + description: 'Minimum cache hit ratio percentage for trigger expression.' + - macro: '{$PG.CHECKPOINTS_REQ.MAX.WARN}' + value: '5' + description: 'Maximum required checkpoint occurrences for trigger expression.' + - macro: '{$PG.CONFLICTS.MAX.WARN}' + value: '0' + description: 'Maximum number of recovery conflicts for trigger expression.' + - macro: '{$PG.CONN_TOTAL_PCT.MAX.WARN}' + value: '90' + description: 'Maximum percentage of current connections for trigger expression.' + - macro: '{$PG.DATABASE}' + value: postgres + description: 'Default PostgreSQL database for the connection.' + - macro: '{$PG.DEADLOCKS.MAX.WARN}' + value: '0' + description: 'Maximum number of detected deadlocks for trigger expression.' + - macro: '{$PG.FROZENXID_PCT_STOP.MIN.HIGH}' + value: '75' + description: 'Minimum frozen XID before stop percentage for trigger expression.' + - macro: '{$PG.HOST}' + value: localhost + description: 'Hostname or IP of PostgreSQL host.' + - macro: '{$PG.LLD.FILTER.DBNAME}' + value: .+ + description: 'Filter of discoverable databases.' + - macro: '{$PG.LOCKS.MAX.WARN}' + value: '100' + description: 'Maximum number of locks for trigger expression.' + - macro: '{$PG.PASSWORD}' + value: '' + description: 'PostgreSQL user password.' + - macro: '{$PG.PING_TIME.MAX.WARN}' + value: 1s + description: 'Maximum time of connection response for trigger expression.' + - macro: '{$PG.PORT}' + value: '5432' + description: 'PostgreSQL service port.' + - macro: '{$PG.QUERY_ETIME.MAX.WARN}' + value: '30' + description: 'Execution time limit for count of slow queries.' + - macro: '{$PG.REPL_LAG.MAX.WARN}' + value: 10m + description: 'Maximum replication lag time for trigger expression.' + - macro: '{$PG.SLOW_QUERIES.MAX.WARN}' + value: '5' + description: 'Slow queries count threshold for a trigger.' + - macro: '{$PG.USER}' + value: zbx_monitor + description: 'PostgreSQL username.' + dashboards: + - uuid: 1311b2e221bf4de49c394bf689333810 + name: 'PostgreSQL databases' + pages: + - widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'DB [{#DBNAME}]: Tuples' + - type: STRING + name: reference + value: AAAAA + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'DB [{#DBNAME}]: Block hit/read' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'DB [{#DBNAME}]: Locks' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + 'y': '15' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'DB [{#DBNAME}]: Queries' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'DB [{#DBNAME}]: Events' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'DB [{#DBNAME}]: Temp files' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'DB [{#DBNAME}]: Database size' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'DB [{#DBNAME}]: Slow queries' + - type: STRING + name: reference + value: AAAAH + - uuid: 2d6268f99f9748d18cb0bb4aee1fc550 + name: 'PostgreSQL stat' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'PostgreSQL connections' + - type: STRING + name: reference + value: AAAAI + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'PostgreSQL ping' + - type: STRING + name: reference + value: AAAAK + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'PostgreSQL replication lag' + - type: STRING + name: reference + value: AAAAM + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'PostgreSQL bgwriter' + - type: STRING + name: reference + value: AAAAO + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'PostgreSQL transactions' + - type: STRING + name: reference + value: AAAAJ + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'PostgreSQL uptime' + - type: STRING + name: reference + value: AAAAL + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'PostgreSQL WAL' + - type: STRING + name: reference + value: AAAAN + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'PostgreSQL by Zabbix agent active' + name: 'PostgreSQL checkpoints' + - type: STRING + name: reference + value: AAAAP + valuemaps: + - uuid: 6337031a50574f65aec828b7dd48beaf + name: 'PostgreSQL recovery role' + mappings: + - value: '0' + newvalue: Master + - value: '1' + newvalue: Standby + - uuid: 0e115837e8c54923ad10a9b7adcda3dd + name: 'PostgreSQL replication status' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - value: '2' + newvalue: Master + - uuid: 5bc68afd88094e0fb14572246050181f + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 0f8ec9f5313348bfbe3b11836f6011d6 + name: 'PostgreSQL bgwriter' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.bgwriter.buffers_alloc.rate + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.bgwriter.buffers_clean.rate + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.bgwriter.buffers_backend.rate + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.bgwriter.buffers_checkpoint.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.bgwriter.maxwritten_clean.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.bgwriter.buffers_backend_fsync.rate + - uuid: c15a7590e6594541acb6327852af11fa + name: 'PostgreSQL checkpoints' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.bgwriter.checkpoints_timed.rate + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.bgwriter.checkpoints_req.rate + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.bgwriter.checkpoint_sync_time.rate + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.bgwriter.checkpoint_write_time.rate + - uuid: 6748cbe523f44028bc84899cf3c68881 + name: 'PostgreSQL connections' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.connections.sum.total + - sortorder: '1' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.connections.sum.total_pct + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.connections.sum.active + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.connections.sum.idle + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.connections.sum.idle_in_transaction + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.connections.sum.prepared + - sortorder: '6' + color: C7A72D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.connections.sum.waiting + - uuid: 5705f8c49a6343b39e4a1a574f14b16d + name: 'PostgreSQL ping' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.ping["{$PG.HOST}","{$PG.PORT}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.ping.time["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + - uuid: 8687fc6723b8477ba4c909b4d348303c + name: 'PostgreSQL replication lag' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.replication.lag.sec["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + - uuid: 245d91951a8048d1ad091cdcacb5bbeb + name: 'PostgreSQL transactions' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.transactions.active + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.transactions.idle + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.transactions.prepared + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.transactions.waiting + - uuid: dc9cd08e1f6a4e3594eef539b3d00df9 + name: 'PostgreSQL uptime' + show_triggers: 'NO' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.uptime["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: 'pgsql.cache.hit["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DATABASE}"]' + - uuid: 1fd6ffdc171146d6b05d9891ab56312c + name: 'PostgreSQL WAL' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.wal.write + - sortorder: '1' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent active' + key: pgsql.wal.count diff --git a/Proxmox_VE_by_HTTP.yaml b/Proxmox_VE_by_HTTP.yaml new file mode 100644 index 0000000..c52f9f7 --- /dev/null +++ b/Proxmox_VE_by_HTTP.yaml @@ -0,0 +1,2069 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 4958b76448d74ff1b6d7d6280449beee + template: 'Proxmox VE by HTTP' + name: 'Proxmox VE by HTTP' + description: | + This template is designed for the effortless deployment of Proxmox VE monitoring by Zabbix via HTTP and doesn't require any external scripts. + + Proxmox VE uses a REST like API. The concept is described in Resource Oriented Architecture (ROA). + + Check the API documentation for details: + https://pve.proxmox.com/pve-docs/api-viewer/index.html + + Setup: + + 1. Create an API token for the monitoring user. Important note: for security reasons, it is recommended to create a separate user (Datacenter - Permissions). + + Please provide the necessary access levels for both the User and the Token: + + * Check: ["perm","/",["Sys.Audit"]] + * Check: ["perm","/storage",["Datastore.Audit"]] + * Check: ["perm","/vms",["VM.Audit"]] + + 2. Copy the resulting Token ID and Secret into the host macros '{$PVE.TOKEN.ID}' and '{$PVE.TOKEN.SECRET}'. + + 3. Set the hostname or IP address of the Proxmox VE API host in the '{$PVE.URL.HOST}' macro. You can also change the API port in the '{$PVE.URL.PORT}' macro if necessary. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: 75f8f8c507774f529ade4bc4255f5fd2 + name: 'API service status' + type: SCRIPT + key: proxmox.api.available + delay: 5m + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var params = JSON.parse(value); + var tls = new CTlsConfig(params.tls_verify); + var req = new HttpRequest(tls.options); + req.addHeader('Authorization: PVEAPIToken=' + params.token + '=' + params.secret); + req.get(encodeURI('https://' + params.url + ':' + params.port + '/api2/json/version')); + } catch (error) { + Zabbix.log(3, "Proxmox API failed: " + params.url + " Error: " + error); + if (!Number.isInteger(error)) + return 520; + } + return req.getStatus(); + description: 'Get API service status.' + valuemap: + name: 'HTTP response status code' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + timeout: 10s + parameters: + - name: port + value: '{$PVE.URL.PORT}' + - name: secret + value: '{$PVE.TOKEN.SECRET}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Proxmox VE"}' + - name: token + value: '{$PVE.TOKEN.ID}' + - name: url + value: '{$PVE.URL.HOST}' + tags: + - tag: component + value: system + triggers: + - uuid: 7ef8290fd6e242339d0e56d5e8eedb1a + expression: 'last(/Proxmox VE by HTTP/proxmox.api.available) <> 200' + name: 'Proxmox VE: API service not available' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The API service is not available. Check your network and authorization settings.' + tags: + - tag: scope + value: availability + - uuid: 4fe4fa1323cd481f8aff3bfb716eeae2 + name: 'Get cluster resources' + type: HTTP_AGENT + key: proxmox.cluster.resources + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + description: 'Resources index.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: 'Error getting data' + url: 'https://{$PVE.URL.HOST}:{$PVE.URL.PORT}/api2/json/cluster/resources' + headers: + - name: Authorization + value: 'PVEAPIToken={$PVE.TOKEN.ID}={$PVE.TOKEN.SECRET}' + tags: + - tag: component + value: raw + - uuid: 6e6a5046b8154bafad375813ca210e1f + name: 'Get cluster status' + type: HTTP_AGENT + key: proxmox.cluster.status + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + description: 'Get cluster status information.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: 'Error getting data' + url: 'https://{$PVE.URL.HOST}:{$PVE.URL.PORT}/api2/json/cluster/status' + headers: + - name: Authorization + value: 'PVEAPIToken={$PVE.TOKEN.ID}={$PVE.TOKEN.SECRET}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: e01bb8d7614144ba82e31d91618dee31 + name: 'Cluster discovery' + type: DEPENDENT + key: proxmox.cluster.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#RESOURCE.TYPE}' + value: ^cluster$ + formulaid: A + item_prototypes: + - uuid: 4b5d9197cfa042ceac1415a524912b63 + name: 'Cluster [{#RESOURCE.NAME}]: Quorate' + type: DEPENDENT + key: 'proxmox.cluster.quorate[{#RESOURCE.NAME}]' + delay: '0' + description: 'Indicates if there is a majority of nodes online to make decisions.' + valuemap: + name: 'Cluster quorate' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.[?(@.name == ''{#RESOURCE.NAME}'' && @.type == ''cluster'')].quorate.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: proxmox.cluster.status + tags: + - tag: cluster + value: '{#RESOURCE.NAME}' + - tag: component + value: system + trigger_prototypes: + - uuid: 142e02d47b8a4ac9a9ad28b68b097ebd + expression: 'last(/Proxmox VE by HTTP/proxmox.cluster.quorate[{#RESOURCE.NAME}]) <> 1' + name: 'Proxmox VE: Cluster [{#RESOURCE.NAME}] not quorum' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: HIGH + description: 'Proxmox VE use a quorum-based technique to provide a consistent state among all cluster nodes.' + tags: + - tag: scope + value: availability + master_item: + key: proxmox.cluster.status + lld_macro_paths: + - lld_macro: '{#RESOURCE.NAME}' + path: $.name + - lld_macro: '{#RESOURCE.TYPE}' + path: $.type + - uuid: 78a4018328954d408e415aa0ce7ce41c + name: 'LXC discovery' + type: DEPENDENT + key: proxmox.lxc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#RESOURCE.TYPE}' + value: ^lxc$ + formulaid: A + item_prototypes: + - uuid: dda211b14d7b4c419196a98ee5153307 + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: CPU usage' + type: DEPENDENT + key: 'proxmox.lxc.cpu[{#LXC.ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU load.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.cpu + - type: MULTIPLIER + parameters: + - '100' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: cpu + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: c0436342a19d4d6482fac70d2f04f530 + expression: 'min(/Proxmox VE by HTTP/proxmox.lxc.cpu[{#LXC.ID}],5m) > {$PVE.LXC.CPU.PUSE.MAX.WARN:"{#LXC.ID}"}' + name: 'Proxmox VE: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})] high CPU usage' + event_name: 'Proxmox VE: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})] high CPU usage (over {$PVE.LXC.CPU.PUSE.MAX.WARN:"{#LXC.ID}"}% use)' + opdata: 'Current use: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU usage.' + tags: + - tag: scope + value: performance + - uuid: 8bc1bb78bf1340f3ab8d9f888d081e23 + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Disk read, rate' + type: DEPENDENT + key: 'proxmox.lxc.diskread[{#LXC.ID}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Disk read.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.diskread + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: storage + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: cee89da9e4a842228b30cc708e4d7745 + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Disk write, rate' + type: DEPENDENT + key: 'proxmox.lxc.diskwrite[{#LXC.ID}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Disk write.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.diskwrite + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: storage + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: 3aceb56be70f4b26845aec3ef4765114 + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Disk space usage' + type: DEPENDENT + key: 'proxmox.lxc.disk[{#LXC.ID}]' + delay: '0' + units: B + description: 'Disk space usage.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.disk + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: storage + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: 58efec1a4bb94bfab59d5985d036811e + name: 'LXC [{#NODE.NAME}/{#LXC.NAME}]: Get data' + type: HTTP_AGENT + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get LXC status data.' + url: 'https://{$PVE.URL.HOST}:{$PVE.URL.PORT}/api2/json/nodes/{#NODE.NAME}/{#LXC.ID}/status/current' + headers: + - name: Authorization + value: 'PVEAPIToken={$PVE.TOKEN.ID}={$PVE.TOKEN.SECRET}' + tags: + - tag: component + value: raw + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: 7678ef1622664f98af7d9fe0d7f010db + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Disk space total' + type: DEPENDENT + key: 'proxmox.lxc.maxdisk[{#LXC.ID}]' + delay: '0' + units: B + description: 'Total disk space.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.maxdisk + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: storage + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: 686490c2a07f4a859bc7f1d56056cc5e + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Memory total' + type: DEPENDENT + key: 'proxmox.lxc.maxmem[{#LXC.ID}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The total memory expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.maxmem + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: memory + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: a60eaec875d347bd9247a174ba84f21e + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Memory usage' + type: DEPENDENT + key: 'proxmox.lxc.mem[{#LXC.ID}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Used memory in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.mem + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: memory + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: b19b6b5895d64ed9b4942f955e66dc81 + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Incoming data, rate' + type: DEPENDENT + key: 'proxmox.lxc.netin[{#LXC.ID}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Incoming data rate.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.netin + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: network + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: 5ac20ae95e664a3cb62b58cde4f67471 + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Outgoing data, rate' + type: DEPENDENT + key: 'proxmox.lxc.netout[{#LXC.ID}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Outgoing data rate.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.netout + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: network + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: bd213f6de4db4e1e84894b80acffa330 + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Uptime' + type: DEPENDENT + key: 'proxmox.lxc.uptime[{#LXC.ID}]' + delay: '0' + trends: '0' + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + preprocessing: + - type: JSONPATH + parameters: + - $.data.uptime + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: system + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 0e55935a79b94bc096b6213d500f4f59 + expression: 'last(/Proxmox VE by HTTP/proxmox.lxc.uptime[{#LXC.ID}])<10m' + name: 'Proxmox VE: LXC [{#NODE.NAME}/{#LXC.NAME}] has been restarted' + event_name: 'Proxmox VE: LXC [{#NODE.NAME}/{#LXC.NAME}] has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Proxmox VE: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Not running' + expression: 'last(/Proxmox VE by HTTP/proxmox.lxc.vmstatus[{#LXC.ID}])<>"running"' + tags: + - tag: scope + value: notice + - uuid: 535f521800564b0f83211740aabbc137 + name: 'LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Status' + type: DEPENDENT + key: 'proxmox.lxc.vmstatus[{#LXC.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Status of LXC container.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.status + master_item: + key: 'proxmox.lxc.get.data[{#LXC.ID}]' + tags: + - tag: component + value: system + - tag: lxc + value: '{#LXC.ID}' + - tag: name + value: '{#LXC.NAME}' + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 71623950edf44bcb9453b2e8e63cb97b + expression: 'last(/Proxmox VE by HTTP/proxmox.lxc.vmstatus[{#LXC.ID}])<>"running"' + name: 'Proxmox VE: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Not running' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'LXC state is not "running".' + tags: + - tag: scope + value: notice + trigger_prototypes: + - uuid: 1e362fac13634a3dabebbd6ceb59879f + expression: 'min(/Proxmox VE by HTTP/proxmox.lxc.disk[{#LXC.ID}],5m) / last(/Proxmox VE by HTTP/proxmox.lxc.maxdisk[{#LXC.ID}]) * 100 > {$PVE.LXC.DISK.PUSE.MAX.WARN:"{#LXC.ID}"}' + name: 'Proxmox VE: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: high disk space usage' + event_name: 'Proxmox VE: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})] high disk space usage (over {$PVE.LXC.DISK.PUSE.MAX.WARN:"{#LXC.ID}"}% usage)' + opdata: 'Current use: {ITEM.LASTVALUE1} of {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Disk space usage.' + tags: + - tag: scope + value: performance + - uuid: f59e43f9de01419897aec1b9d4539b48 + expression: 'min(/Proxmox VE by HTTP/proxmox.lxc.mem[{#LXC.ID}],5m) / last(/Proxmox VE by HTTP/proxmox.lxc.maxmem[{#LXC.ID}]) * 100 >{$PVE.LXC.MEMORY.PUSE.MAX.WARN:"{#LXC.ID}"}' + name: 'Proxmox VE: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})] high memory usage' + event_name: 'Proxmox VE: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})] high memory usage (over {$PVE.LXC.MEMORY.PUSE.MAX.WARN:"{#LXC.ID}"}% use)' + opdata: 'Current use: {ITEM.LASTVALUE1} of {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Memory usage.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: faad4c399e6047ea9fd95ffea40ce511 + name: 'Proxmox: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: CPU usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.lxc.cpu[{#LXC.ID}]' + - uuid: a35e067d4a3f45a89714c5ca8ad82fe5 + name: 'Proxmox: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Disk space usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.lxc.disk[{#LXC.ID}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.lxc.maxdisk[{#LXC.ID}]' + - uuid: 2a850f53e5064ee3b4fb99aa191d411d + name: 'Proxmox: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Disk usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.lxc.diskwrite[{#LXC.ID}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.lxc.diskread[{#LXC.ID}]' + - uuid: 54e79a1949ed40988a3901acf21bc3af + name: 'Proxmox: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Memory usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.lxc.mem[{#LXC.ID}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.lxc.maxmem[{#LXC.ID}]' + - uuid: c6f2970f22294c7d8de7548a177596de + name: 'Proxmox: LXC [{#NODE.NAME}/{#LXC.NAME} ({#LXC.ID})]: Network usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.lxc.netin[{#LXC.ID}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.lxc.netout[{#LXC.ID}]' + master_item: + key: proxmox.cluster.resources + lld_macro_paths: + - lld_macro: '{#LXC.ID}' + path: $.id + - lld_macro: '{#LXC.NAME}' + path: $.name + - lld_macro: '{#NODE.NAME}' + path: $.node + - lld_macro: '{#RESOURCE.TYPE}' + path: $.type + - uuid: ba55f69b12ee46faa319203483d8008f + name: 'Node discovery' + type: DEPENDENT + key: proxmox.node.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#RESOURCE.TYPE}' + value: ^node$ + formulaid: A + item_prototypes: + - uuid: c5e50056abda49f190e21f46f8cf7379 + name: 'Node [{#NODE.NAME}]: CPU, usage' + type: DEPENDENT + key: 'proxmox.node.cpu[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU usage.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpu + - type: MULTIPLIER + parameters: + - '100' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: cpu + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 84041dcb7c84426dad538ab32375fdb1 + expression: 'min(/Proxmox VE by HTTP/proxmox.node.cpu[{#NODE.NAME}],5m) > {$PVE.CPU.PUSE.MAX.WARN:"{#NODE.NAME}"}' + name: 'Proxmox VE: Node [{#NODE.NAME}] high CPU usage' + event_name: 'Proxmox VE: Node [{#NODE.NAME}] high CPU usage (over {$PVE.CPU.PUSE.MAX.WARN:"{#NODE.NAME}"}% use)' + opdata: 'Current use: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU usage.' + tags: + - tag: scope + value: performance + - uuid: 78e02931cf5c4c93b9c0092bd407a897 + name: 'Node [{#NODE.NAME}]: CPU, iowait' + type: DEPENDENT + key: 'proxmox.node.iowait[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU iowait time.' + preprocessing: + - type: JSONPATH + parameters: + - $.iowait + - type: MULTIPLIER + parameters: + - '100' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: cpu + - tag: node + value: '{#NODE.NAME}' + - uuid: c31b9d3f9f4d4f6fa5611038bb9a8401 + name: 'Node [{#NODE.NAME}]: Kernel version' + type: DEPENDENT + key: 'proxmox.node.kernelversion[{#NODE.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Kernel version info.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.kversion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'proxmox.node.status[{#NODE.NAME}]' + tags: + - tag: component + value: system + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 4020236474e840acb1bc480eb8c52a1f + expression: 'last(/Proxmox VE by HTTP/proxmox.node.kernelversion[{#NODE.NAME}],#1)<>last(/Proxmox VE by HTTP/proxmox.node.kernelversion[{#NODE.NAME}],#2) and length(last(/Proxmox VE by HTTP/proxmox.node.kernelversion[{#NODE.NAME}]))>0' + name: 'Proxmox VE: Node [{#NODE.NAME}]: Kernel version has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 155bcbfd12f54614ab55d29e0fb5c2aa + name: 'Node [{#NODE.NAME}]: CPU, loadavg' + type: DEPENDENT + key: 'proxmox.node.loadavg[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + description: 'CPU average load.' + preprocessing: + - type: JSONPATH + parameters: + - $.loadavg + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: cpu + - tag: node + value: '{#NODE.NAME}' + - uuid: 59aab7121b1f4ff0b98a38cc75f39fb3 + name: 'Node [{#NODE.NAME}]: Localtime' + type: DEPENDENT + key: 'proxmox.node.localtime[{#NODE.NAME}]' + delay: '0' + units: unixtime + description: 'Seconds since 1970-01-01 00:00:00 (local time).' + preprocessing: + - type: JSONPATH + parameters: + - $.data.localtime + master_item: + key: 'proxmox.node.time[{#NODE.NAME}]' + tags: + - tag: component + value: system + - tag: node + value: '{#NODE.NAME}' + - uuid: 0bb66733d10843438a090bf39eae92e2 + name: 'Node [{#NODE.NAME}]: Memory, total' + type: DEPENDENT + key: 'proxmox.node.memtotal[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Memory total.' + preprocessing: + - type: JSONPATH + parameters: + - $.memtotal + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: memory + - tag: node + value: '{#NODE.NAME}' + - uuid: 04a2028e5d6640958da01c372f4407ec + name: 'Node [{#NODE.NAME}]: Memory, used' + type: DEPENDENT + key: 'proxmox.node.memused[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Memory usage.' + preprocessing: + - type: JSONPATH + parameters: + - $.memused + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: memory + - tag: node + value: '{#NODE.NAME}' + - uuid: 892f3b733a25475cb8fe30eeca3750f2 + name: 'Node [{#NODE.NAME}]: Incoming data, rate' + type: DEPENDENT + key: 'proxmox.node.netin[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Network usage.' + preprocessing: + - type: JSONPATH + parameters: + - $.netin + - type: MULTIPLIER + parameters: + - '8' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: network + - tag: node + value: '{#NODE.NAME}' + - uuid: 3048c6c023bc4fb58a8710d7306052fb + name: 'Node [{#NODE.NAME}]: Outgoing data, rate' + type: DEPENDENT + key: 'proxmox.node.netout[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Network usage.' + preprocessing: + - type: JSONPATH + parameters: + - $.netout + - type: MULTIPLIER + parameters: + - '8' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: network + - tag: node + value: '{#NODE.NAME}' + - uuid: b8c3ff9544d5490286c668d3320d2ee0 + name: 'Node [{#NODE.NAME}]: Status' + type: DEPENDENT + key: 'proxmox.node.online[{#NODE.NAME}]' + delay: '0' + description: 'Indicates if the node is online or offline.' + valuemap: + name: 'Node online' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.[?(@.name == ''{#NODE.NAME}'' && @.type == ''node'')].online.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: proxmox.cluster.status + tags: + - tag: component + value: cluster + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 41b7efb8822948b08de8adace2e124a9 + expression: 'last(/Proxmox VE by HTTP/proxmox.node.online[{#NODE.NAME}]) <> 1' + name: 'Proxmox VE: Node [{#NODE.NAME}] offline' + opdata: 'Current value: {ITEM.LASTVALUE}' + priority: HIGH + description: 'Node offline.' + tags: + - tag: scope + value: availability + - uuid: f220249168d947b6b8b99c068af35650 + name: 'Node [{#NODE.NAME}]: PVE version' + type: DEPENDENT + key: 'proxmox.node.pveversion[{#NODE.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'PVE manager version.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.pveversion + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'proxmox.node.status[{#NODE.NAME}]' + tags: + - tag: component + value: system + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 5b92af55dbd84181bcab0f39e6effbe0 + expression: 'last(/Proxmox VE by HTTP/proxmox.node.pveversion[{#NODE.NAME}],#1)<>last(/Proxmox VE by HTTP/proxmox.node.pveversion[{#NODE.NAME}],#2) and length(last(/Proxmox VE by HTTP/proxmox.node.pveversion[{#NODE.NAME}]))>0' + name: 'Proxmox VE: Node [{#NODE.NAME}]: PVE manager has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 067954795121482093dd7967c6ca6ede + name: 'Node [{#NODE.NAME}]: Root filesystem, total' + type: DEPENDENT + key: 'proxmox.node.roottotal[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Root filesystem total.' + preprocessing: + - type: JSONPATH + parameters: + - $.roottotal + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: storage + - tag: node + value: '{#NODE.NAME}' + - uuid: 2beadf6ba8b04a21b008ddf63bd2fa6b + name: 'Node [{#NODE.NAME}]: Root filesystem, used' + type: DEPENDENT + key: 'proxmox.node.rootused[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Root filesystem usage.' + preprocessing: + - type: JSONPATH + parameters: + - $.rootused + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: storage + - tag: node + value: '{#NODE.NAME}' + - uuid: fa2a60a98fd4445eadff4398ae6872bd + name: 'Node [{#NODE.NAME}]: RRD statistics' + type: HTTP_AGENT + key: 'proxmox.node.rrd[{#NODE.NAME}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Read node RRD statistics.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var rrd_data = JSON.parse(value).data; + return JSON.stringify(rrd_data[rrd_data.length - 2]) + url: 'https://{$PVE.URL.HOST}:{$PVE.URL.PORT}/api2/json/nodes/{#NODE.NAME}/rrddata' + query_fields: + - name: timeframe + value: hour + - name: cf + value: AVERAGE + headers: + - name: Authorization + value: 'PVEAPIToken={$PVE.TOKEN.ID}={$PVE.TOKEN.SECRET}' + tags: + - tag: component + value: raw + - tag: node + value: '{#NODE.NAME}' + - uuid: c1ea4d4f83114c9b96fe81069602f060 + name: 'Node [{#NODE.NAME}]: Status' + type: HTTP_AGENT + key: 'proxmox.node.status[{#NODE.NAME}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Read node status.' + url: 'https://{$PVE.URL.HOST}:{$PVE.URL.PORT}/api2/json/nodes/{#NODE.NAME}/status' + headers: + - name: Authorization + value: 'PVEAPIToken={$PVE.TOKEN.ID}={$PVE.TOKEN.SECRET}' + tags: + - tag: component + value: raw + - tag: node + value: '{#NODE.NAME}' + - uuid: 0dce6e5edd6d4ddab69932796b4301c0 + name: 'Node [{#NODE.NAME}]: Swap filesystem, total' + type: DEPENDENT + key: 'proxmox.node.swaptotal[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Swap total.' + preprocessing: + - type: JSONPATH + parameters: + - $.swaptotal + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: storage + - tag: node + value: '{#NODE.NAME}' + - uuid: 5f42addb719a412da6fd448d38d1a7d0 + name: 'Node [{#NODE.NAME}]: Swap filesystem, used' + type: DEPENDENT + key: 'proxmox.node.swapused[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Swap used.' + preprocessing: + - type: JSONPATH + parameters: + - $.swapused + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.node.rrd[{#NODE.NAME}]' + tags: + - tag: component + value: storage + - tag: node + value: '{#NODE.NAME}' + - uuid: 42d7b4ff315a4cfa9af1aed5e141661d + name: 'Node [{#NODE.NAME}]: Time zone' + type: DEPENDENT + key: 'proxmox.node.timezone[{#NODE.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Time zone.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.timezone + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'proxmox.node.time[{#NODE.NAME}]' + tags: + - tag: component + value: system + - tag: node + value: '{#NODE.NAME}' + - uuid: c0c03653a0af426b8f61c77cabab38a4 + name: 'Node [{#NODE.NAME}]: Time' + type: HTTP_AGENT + key: 'proxmox.node.time[{#NODE.NAME}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Read server time and time zone settings.' + url: 'https://{$PVE.URL.HOST}:{$PVE.URL.PORT}/api2/json/nodes/{#NODE.NAME}/time' + headers: + - name: Authorization + value: 'PVEAPIToken={$PVE.TOKEN.ID}={$PVE.TOKEN.SECRET}' + tags: + - tag: component + value: raw + - tag: node + value: '{#NODE.NAME}' + - uuid: fc7f5811d338484bba5393a8a5718f67 + name: 'Node [{#NODE.NAME}]: Uptime' + type: DEPENDENT + key: 'proxmox.node.uptime[{#NODE.NAME}]' + delay: '0' + trends: '0' + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + preprocessing: + - type: JSONPATH + parameters: + - $.data.uptime + master_item: + key: 'proxmox.node.status[{#NODE.NAME}]' + tags: + - tag: component + value: system + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 529b69b98a86409d914d3464569b7901 + expression: 'last(/Proxmox VE by HTTP/proxmox.node.uptime[{#NODE.NAME}])<10m' + name: 'Proxmox VE: Node [{#NODE.NAME}] has been restarted' + event_name: 'Proxmox VE: Node [{#NODE.NAME}] has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Proxmox VE: Node [{#NODE.NAME}] offline' + expression: 'last(/Proxmox VE by HTTP/proxmox.node.online[{#NODE.NAME}]) <> 1' + tags: + - tag: scope + value: notice + - uuid: 384d479a04f044b192a74743f0a459b4 + name: 'Node [{#NODE.NAME}]: Time' + type: DEPENDENT + key: 'proxmox.node.utctime[{#NODE.NAME}]' + delay: '0' + units: unixtime + description: 'Seconds since 1970-01-01 00:00:00 UTC.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.time + master_item: + key: 'proxmox.node.time[{#NODE.NAME}]' + tags: + - tag: component + value: system + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: a0445b4e1ffd451595ecea0468b4a6a6 + expression: 'min(/Proxmox VE by HTTP/proxmox.node.memused[{#NODE.NAME}],5m) / last(/Proxmox VE by HTTP/proxmox.node.memtotal[{#NODE.NAME}]) * 100 >{$PVE.MEMORY.PUSE.MAX.WARN:"{#NODE.NAME}"}' + name: 'Proxmox VE: Node [{#NODE.NAME}] high memory usage' + event_name: 'Proxmox VE: Node [{#NODE.NAME}] high memory usage (over {$PVE.MEMORY.PUSE.MAX.WARN:"{#NODE.NAME}"}% use)' + opdata: 'Current use: {ITEM.LASTVALUE1} of {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Memory usage.' + tags: + - tag: scope + value: performance + - uuid: 3f88526e10a14319983fe14621ef10f9 + expression: 'min(/Proxmox VE by HTTP/proxmox.node.rootused[{#NODE.NAME}],5m) / last(/Proxmox VE by HTTP/proxmox.node.roottotal[{#NODE.NAME}]) * 100 >{$PVE.ROOT.PUSE.MAX.WARN:"{#NODE.NAME}"}' + name: 'Proxmox VE: Node [{#NODE.NAME}] high root filesystem space usage' + event_name: 'Proxmox VE: Node [{#NODE.NAME}] high root filesystem space usage (over {$PVE.ROOT.PUSE.MAX.WARN:"{#NODE.NAME}"}% use)' + opdata: 'Current use: {ITEM.LASTVALUE1} of {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Root filesystem space usage.' + tags: + - tag: scope + value: capacity + - uuid: f38ccc2e0e40430e801bf98b488e12e4 + expression: 'min(/Proxmox VE by HTTP/proxmox.node.swapused[{#NODE.NAME}],5m) / last(/Proxmox VE by HTTP/proxmox.node.swaptotal[{#NODE.NAME}]) * 100 > {$PVE.SWAP.PUSE.MAX.WARN:"{#NODE.NAME}"} and last(/Proxmox VE by HTTP/proxmox.node.swaptotal[{#NODE.NAME}]) > 0' + name: 'Proxmox VE: Node [{#NODE.NAME}] high swap space usage' + event_name: 'Proxmox VE: Node [{#NODE.NAME}] high swap space usage (over {$PVE.SWAP.PUSE.MAX.WARN:"{#NODE.NAME}"}% use)' + opdata: 'Current use: {ITEM.LASTVALUE1} of {ITEM.LASTVALUE2}' + priority: WARNING + description: 'If there is no swap configured, this trigger is ignored.' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 6c4fddd2a12d4e87987e47611e4a925f + name: 'Proxmox: Node [{#NODE.NAME}]: CPU usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.cpu[{#NODE.NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.iowait[{#NODE.NAME}]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.loadavg[{#NODE.NAME}]' + - uuid: 0d59c329f12b494ebc8ff458a6b4714a + name: 'Proxmox: Node [{#NODE.NAME}]: Memory usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.memused[{#NODE.NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.memtotal[{#NODE.NAME}]' + - uuid: f07213b83a964aac9f51e2857936bef2 + name: 'Proxmox: Node [{#NODE.NAME}]: Network usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.netin[{#NODE.NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.netout[{#NODE.NAME}]' + - uuid: f24340ea09324dd594f84c140f2797cc + name: 'Proxmox: Node [{#NODE.NAME}]: Root filesystem usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.rootused[{#NODE.NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.roottotal[{#NODE.NAME}]' + - uuid: f47c4c734737403d97a630f5f10b7d84 + name: 'Proxmox: Node [{#NODE.NAME}]: Swap usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.swapused[{#NODE.NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.swaptotal[{#NODE.NAME}]' + master_item: + key: proxmox.cluster.resources + lld_macro_paths: + - lld_macro: '{#NODE.NAME}' + path: $.node + - lld_macro: '{#RESOURCE.TYPE}' + path: $.type + - uuid: 31aa7234aa294fce8f4735a9216ddf31 + name: 'QEMU discovery' + type: DEPENDENT + key: proxmox.qemu.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#RESOURCE.TYPE}' + value: ^qemu$ + formulaid: A + item_prototypes: + - uuid: 196bf027d77742ea8960e350d9ea579e + name: 'VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: CPU usage' + type: DEPENDENT + key: 'proxmox.qemu.cpu[{#QEMU.ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU load.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.cpu + - type: MULTIPLIER + parameters: + - '100' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.qemu.get.data[{#QEMU.ID}]' + tags: + - tag: component + value: cpu + - tag: name + value: '{#QEMU.NAME}' + - tag: node + value: '{#NODE.NAME}' + - tag: qemu + value: '{#QEMU.ID}' + trigger_prototypes: + - uuid: 84ed68d7cf2b48a48fc44e9c7a0d9b92 + expression: 'min(/Proxmox VE by HTTP/proxmox.qemu.cpu[{#QEMU.ID}],5m) > {$PVE.VM.CPU.PUSE.MAX.WARN:"{#QEMU.ID}"}' + name: 'Proxmox VE: VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})] high CPU usage' + event_name: 'Proxmox VE: VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})] high CPU usage (over {$PVE.VM.CPU.PUSE.MAX.WARN:"{#QEMU.ID}"}% use)' + opdata: 'Current use: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU usage.' + tags: + - tag: scope + value: performance + - uuid: ffd3c0a6e9764d9ea0091d2fcf0234e2 + name: 'VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Disk read, rate' + type: DEPENDENT + key: 'proxmox.qemu.diskread[{#QEMU.ID}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Disk read.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.diskread + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.qemu.get.data[{#QEMU.ID}]' + tags: + - tag: component + value: storage + - tag: name + value: '{#QEMU.NAME}' + - tag: node + value: '{#NODE.NAME}' + - tag: qemu + value: '{#QEMU.ID}' + - uuid: 7c02301822414849b8dc38ae26c74a7b + name: 'VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Disk write, rate' + type: DEPENDENT + key: 'proxmox.qemu.diskwrite[{#QEMU.ID}]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Disk write.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.diskwrite + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.qemu.get.data[{#QEMU.ID}]' + tags: + - tag: component + value: storage + - tag: name + value: '{#QEMU.NAME}' + - tag: node + value: '{#NODE.NAME}' + - tag: qemu + value: '{#QEMU.ID}' + - uuid: a3562f2f48834a88842da612fb6f464c + name: 'VM [{#NODE.NAME}/{#QEMU.NAME}]: Get data' + type: HTTP_AGENT + key: 'proxmox.qemu.get.data[{#QEMU.ID}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get VM status data.' + url: 'https://{$PVE.URL.HOST}:{$PVE.URL.PORT}/api2/json/nodes/{#NODE.NAME}/{#QEMU.ID}/status/current' + headers: + - name: Authorization + value: 'PVEAPIToken={$PVE.TOKEN.ID}={$PVE.TOKEN.SECRET}' + tags: + - tag: component + value: raw + - tag: name + value: '{#QEMU.NAME}' + - tag: node + value: '{#NODE.NAME}' + - tag: qemu + value: '{#QEMU.ID}' + - uuid: 3c46d7e2f07049fc8f749157cf5627e9 + name: 'VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Memory total' + type: DEPENDENT + key: 'proxmox.qemu.maxmem[{#QEMU.ID}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The total memory expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.maxmem + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.qemu.get.data[{#QEMU.ID}]' + tags: + - tag: component + value: memory + - tag: name + value: '{#QEMU.NAME}' + - tag: node + value: '{#NODE.NAME}' + - tag: qemu + value: '{#QEMU.ID}' + - uuid: 9f4402482af549288f32f108ab801950 + name: 'VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Memory usage' + type: DEPENDENT + key: 'proxmox.qemu.mem[{#QEMU.ID}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Used memory in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.mem + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.qemu.get.data[{#QEMU.ID}]' + tags: + - tag: component + value: memory + - tag: name + value: '{#QEMU.NAME}' + - tag: node + value: '{#NODE.NAME}' + - tag: qemu + value: '{#QEMU.ID}' + - uuid: c3cb5366103743c2823f522482e9f2e4 + name: 'VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Incoming data, rate' + type: DEPENDENT + key: 'proxmox.qemu.netin[{#QEMU.ID}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Incoming data rate.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.netin + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.qemu.get.data[{#QEMU.ID}]' + tags: + - tag: component + value: network + - tag: name + value: '{#QEMU.NAME}' + - tag: node + value: '{#NODE.NAME}' + - tag: qemu + value: '{#QEMU.ID}' + - uuid: 2cd398f1b9814551a7fad7e2bc66f6af + name: 'VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Outgoing data, rate' + type: DEPENDENT + key: 'proxmox.qemu.netout[{#QEMU.ID}]' + delay: '0' + value_type: FLOAT + units: bps + description: 'Outgoing data rate.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.netout + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: 'proxmox.qemu.get.data[{#QEMU.ID}]' + tags: + - tag: component + value: network + - tag: name + value: '{#QEMU.NAME}' + - tag: node + value: '{#NODE.NAME}' + - tag: qemu + value: '{#QEMU.ID}' + - uuid: 77ba70e0ce6f486585f870d3b57033ba + name: 'VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Uptime' + type: DEPENDENT + key: 'proxmox.qemu.uptime[{#QEMU.ID}]' + delay: '0' + trends: '0' + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + preprocessing: + - type: JSONPATH + parameters: + - $.data.uptime + master_item: + key: 'proxmox.qemu.get.data[{#QEMU.ID}]' + tags: + - tag: component + value: system + - tag: name + value: '{#QEMU.NAME}' + - tag: node + value: '{#NODE.NAME}' + - tag: qemu + value: '{#QEMU.ID}' + trigger_prototypes: + - uuid: d4ba1faeb67940a192c1b50460793813 + expression: 'last(/Proxmox VE by HTTP/proxmox.qemu.uptime[{#QEMU.ID}])<10m' + name: 'Proxmox VE: VM [{#NODE.NAME}/{#QEMU.NAME}] has been restarted' + event_name: 'Proxmox VE: VM [{#NODE.NAME}/{#QEMU.NAME}] has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Proxmox VE: VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Not running' + expression: 'last(/Proxmox VE by HTTP/proxmox.qemu.vmstatus[{#QEMU.ID}])<>"running"' + tags: + - tag: scope + value: notice + - uuid: 9b6de7e610c64950a3b477b9dc666751 + name: 'VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Status' + type: DEPENDENT + key: 'proxmox.qemu.vmstatus[{#QEMU.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Status of Virtual Machine.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.status + master_item: + key: 'proxmox.qemu.get.data[{#QEMU.ID}]' + tags: + - tag: component + value: system + - tag: name + value: '{#QEMU.NAME}' + - tag: node + value: '{#NODE.NAME}' + - tag: qemu + value: '{#QEMU.ID}' + trigger_prototypes: + - uuid: 8f57d13f278b459299c565846b4091f5 + expression: 'last(/Proxmox VE by HTTP/proxmox.qemu.vmstatus[{#QEMU.ID}])<>"running"' + name: 'Proxmox VE: VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Not running' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'VM state is not "running".' + tags: + - tag: scope + value: notice + trigger_prototypes: + - uuid: 5305bf2b71aa4b74917379c6e1b3c065 + expression: 'min(/Proxmox VE by HTTP/proxmox.qemu.mem[{#QEMU.ID}],5m) / last(/Proxmox VE by HTTP/proxmox.qemu.maxmem[{#QEMU.ID}]) * 100 >{$PVE.VM.MEMORY.PUSE.MAX.WARN:"{#QEMU.ID}"}' + name: 'Proxmox VE: VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})] high memory usage' + event_name: 'Proxmox VE: VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})] high memory usage (over {$PVE.VM.MEMORY.PUSE.MAX.WARN:"{#QEMU.ID}"}% use)' + opdata: 'Current use: {ITEM.LASTVALUE1} of {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Memory usage.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 602ae1d9d65149ada7aa56cc2d7d9309 + name: 'Proxmox: VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: CPU usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.qemu.cpu[{#QEMU.ID}]' + - uuid: 391421ce25c74c14abe35723965f3357 + name: 'Proxmox: VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Disk usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.qemu.diskwrite[{#QEMU.ID}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.qemu.diskread[{#QEMU.ID}]' + - uuid: 8522e98f30104f67bfdd1aff8b94d280 + name: 'Proxmox: VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Memory usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.qemu.mem[{#QEMU.ID}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.qemu.maxmem[{#QEMU.ID}]' + - uuid: 7141231d90914090a285f35b5630deda + name: 'Proxmox: VM [{#NODE.NAME}/{#QEMU.NAME} ({#QEMU.ID})]: Network usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.qemu.netin[{#QEMU.ID}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.qemu.netout[{#QEMU.ID}]' + master_item: + key: proxmox.cluster.resources + lld_macro_paths: + - lld_macro: '{#NODE.NAME}' + path: $.node + - lld_macro: '{#QEMU.ID}' + path: $.id + - lld_macro: '{#QEMU.NAME}' + path: $.name + - lld_macro: '{#RESOURCE.TYPE}' + path: $.type + - uuid: 61faca6204854bc4af8dc6c5c63ddcd1 + name: 'Storage discovery' + type: DEPENDENT + key: proxmox.storage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#RESOURCE.TYPE}' + value: ^storage$ + formulaid: A + item_prototypes: + - uuid: c803813b43f24390b7e0d79fda824a54 + name: 'Storage [{#NODE.NAME}/{#STORAGE.NAME}]: Content' + type: DEPENDENT + key: 'proxmox.node.content[{#NODE.NAME},{#STORAGE.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Allowed storage content types.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.id == "storage/{#NODE.NAME}/{#STORAGE.NAME}")].content.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: proxmox.cluster.resources + tags: + - tag: component + value: storage + - tag: name + value: '{#STORAGE.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: 0edb3506231648c9820103a337486d63 + name: 'Storage [{#NODE.NAME}/{#STORAGE.NAME}]: Used' + type: DEPENDENT + key: 'proxmox.node.disk[{#NODE.NAME},{#STORAGE.NAME}]' + delay: '0' + units: B + description: 'Used disk space in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.id == "storage/{#NODE.NAME}/{#STORAGE.NAME}")].disk.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: proxmox.cluster.resources + tags: + - tag: component + value: storage + - tag: name + value: '{#STORAGE.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: ced02242ff46454f9c49f3d44bf0de9a + name: 'Storage [{#NODE.NAME}/{#STORAGE.NAME}]: Size' + type: DEPENDENT + key: 'proxmox.node.maxdisk[{#NODE.NAME},{#STORAGE.NAME}]' + delay: '0' + units: B + description: 'Storage size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.id == "storage/{#NODE.NAME}/{#STORAGE.NAME}")].maxdisk.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + master_item: + key: proxmox.cluster.resources + tags: + - tag: component + value: storage + - tag: name + value: '{#STORAGE.NAME}' + - tag: node + value: '{#NODE.NAME}' + - uuid: 4360858342254aecba7a77eb315cc2bb + name: 'Storage [{#NODE.NAME}/{#STORAGE.NAME}]: Type' + type: DEPENDENT + key: 'proxmox.node.plugintype[{#NODE.NAME},{#STORAGE.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'More specific type, if available.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.id == "storage/{#NODE.NAME}/{#STORAGE.NAME}")].plugintype.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: proxmox.cluster.resources + tags: + - tag: component + value: storage + - tag: name + value: '{#STORAGE.NAME}' + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 404d9a8a6fa54d8c880006c9ec32f55a + expression: 'min(/Proxmox VE by HTTP/proxmox.node.disk[{#NODE.NAME},{#STORAGE.NAME}],5m) / last(/Proxmox VE by HTTP/proxmox.node.maxdisk[{#NODE.NAME},{#STORAGE.NAME}]) * 100 >{$PVE.STORAGE.PUSE.MAX.WARN:"{#NODE.NAME}/{#STORAGE.NAME}"}' + name: 'Proxmox VE: Storage [{#NODE.NAME}/{#STORAGE.NAME}] high filesystem space usage' + event_name: 'Proxmox VE: Storage [{#NODE.NAME}/{#STORAGE.NAME}] high filesystem space usage (over {$PVE.STORAGE.PUSE.MAX.WARN:"{#NODE.NAME}/{#STORAGE.NAME}"}% use)' + opdata: 'Current use: {ITEM.LASTVALUE1} of {ITEM.LASTVALUE2}' + priority: WARNING + description: 'Root filesystem space usage.' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 726dbf7dd13b40c8b240cb58f753a9bf + name: 'Proxmox: Storage [{#NODE.NAME}/{#STORAGE.NAME}]: Usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.disk[{#NODE.NAME},{#STORAGE.NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Proxmox VE by HTTP' + key: 'proxmox.node.maxdisk[{#NODE.NAME},{#STORAGE.NAME}]' + master_item: + key: proxmox.cluster.resources + lld_macro_paths: + - lld_macro: '{#NODE.NAME}' + path: $.node + - lld_macro: '{#RESOURCE.TYPE}' + path: $.type + - lld_macro: '{#STORAGE.NAME}' + path: $.storage + tags: + - tag: class + value: software + - tag: target + value: proxmox + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Proxmox VE", e.g. {$HTTP.TLS.VERIFY:"Proxmox VE"}.' + - macro: '{$PVE.CPU.PUSE.MAX.WARN}' + value: '90' + description: 'Maximum used CPU in percentage.' + - macro: '{$PVE.LXC.CPU.PUSE.MAX.WARN}' + value: '90' + description: 'Maximum used CPU in percentage.' + - macro: '{$PVE.LXC.DISK.PUSE.MAX.WARN}' + value: '90' + description: 'Maximum used disk in percentage.' + - macro: '{$PVE.LXC.MEMORY.PUSE.MAX.WARN}' + value: '90' + description: 'Maximum used memory in percentage.' + - macro: '{$PVE.MEMORY.PUSE.MAX.WARN}' + value: '90' + description: 'Maximum used memory in percentage.' + - macro: '{$PVE.ROOT.PUSE.MAX.WARN}' + value: '90' + description: 'Maximum used root space in percentage.' + - macro: '{$PVE.STORAGE.PUSE.MAX.WARN}' + value: '90' + description: 'Maximum used storage space in percentage.' + - macro: '{$PVE.SWAP.PUSE.MAX.WARN}' + value: '90' + description: 'Maximum used swap space in percentage.' + - macro: '{$PVE.TOKEN.ID}' + value: USER@REALM!TOKENID + description: 'API tokens allow stateless access to most parts of the REST API by another system, software or API client.' + - macro: '{$PVE.TOKEN.SECRET}' + value: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx + description: 'Secret key.' + - macro: '{$PVE.URL.HOST}' + value: '' + description: 'The hostname or IP address of the Proxmox VE API host.' + - macro: '{$PVE.URL.PORT}' + value: '8006' + description: 'The API uses the HTTPS protocol and the server listens to port 8006 by default.' + - macro: '{$PVE.VM.CPU.PUSE.MAX.WARN}' + value: '90' + description: 'Maximum used CPU in percentage.' + - macro: '{$PVE.VM.MEMORY.PUSE.MAX.WARN}' + value: '90' + description: 'Maximum used memory in percentage.' + valuemaps: + - uuid: d4bbd08f3a324a57af97a17f819cb3f3 + name: 'Cluster quorate' + mappings: + - value: '1' + newvalue: 'Yes' + - value: '0' + newvalue: 'No' + - uuid: 87034fae192c44dba6c8bb568cd90bbd + name: 'HTTP response status code' + mappings: + - value: '100' + newvalue: Continue + - value: '101' + newvalue: 'Switching Protocols' + - value: '102' + newvalue: Processing + - value: '200' + newvalue: OK + - value: '201' + newvalue: Created + - value: '202' + newvalue: Accepted + - value: '203' + newvalue: 'Non-Authoritative Information' + - value: '204' + newvalue: 'No Content' + - value: '205' + newvalue: 'Reset Content' + - value: '206' + newvalue: 'Partial Content' + - value: '207' + newvalue: Multi-Status + - value: '208' + newvalue: 'Already Reported' + - value: '226' + newvalue: 'IM Used' + - value: '300' + newvalue: 'Multiple Choices' + - value: '301' + newvalue: 'Moved Permanently' + - value: '302' + newvalue: Found + - value: '303' + newvalue: 'See Other' + - value: '304' + newvalue: 'Not Modified' + - value: '305' + newvalue: 'Use Proxy' + - value: '306' + newvalue: 'Switch Proxy' + - value: '307' + newvalue: 'Temporary Redirect' + - value: '308' + newvalue: 'Permanent Redirect/Resume Incomplete' + - value: '400' + newvalue: 'Bad Request' + - value: '401' + newvalue: Unauthorized + - value: '402' + newvalue: 'Payment Required' + - value: '403' + newvalue: Forbidden + - value: '404' + newvalue: 'Not Found' + - value: '405' + newvalue: 'Method Not Allowed' + - value: '406' + newvalue: 'Not Acceptable' + - value: '407' + newvalue: 'Proxy Authentication Required' + - value: '408' + newvalue: 'Request Timeout' + - value: '409' + newvalue: Conflict + - value: '410' + newvalue: Gone + - value: '411' + newvalue: 'Length Required' + - value: '412' + newvalue: 'Precondition Failed' + - value: '413' + newvalue: 'Payload Too Large' + - value: '414' + newvalue: 'Request-URI Too Long' + - value: '415' + newvalue: 'Unsupported Media Type' + - value: '416' + newvalue: 'Requested Range Not Satisfiable' + - value: '417' + newvalue: 'Expectation Failed' + - value: '418' + newvalue: 'I''m a Teapot' + - value: '419' + newvalue: 'Authentication Timeout' + - value: '420' + newvalue: 'Method Failure/Enhance Your Calm' + - value: '421' + newvalue: 'Misdirected Request' + - value: '422' + newvalue: 'Unprocessable Entity' + - value: '423' + newvalue: Locked + - value: '424' + newvalue: 'Failed Dependency' + - value: '426' + newvalue: 'Upgrade Required' + - value: '428' + newvalue: 'Precondition Required' + - value: '429' + newvalue: 'Too Many Requests' + - value: '431' + newvalue: 'Request Header Fields Too Large' + - value: '440' + newvalue: 'Login Timeout' + - value: '444' + newvalue: 'No Response' + - value: '449' + newvalue: 'Retry With' + - value: '450' + newvalue: 'Blocked by Windows Parental Controls' + - value: '451' + newvalue: 'Unavailable for Legal Reasons/Redirect' + - value: '494' + newvalue: 'Request Header Too Large' + - value: '495' + newvalue: 'Cert Error' + - value: '496' + newvalue: 'No Cert' + - value: '497' + newvalue: 'HTTP to HTTPS' + - value: '498' + newvalue: 'Token Expired/Invalid' + - value: '499' + newvalue: 'Client Closed Request/Token Required' + - value: '500' + newvalue: 'Internal Server Error' + - value: '501' + newvalue: 'Not Implemented' + - value: '502' + newvalue: 'Bad Gateway' + - value: '503' + newvalue: 'Service Unavailable' + - value: '504' + newvalue: 'Gateway Timeout' + - value: '505' + newvalue: 'HTTP Version Not Supported' + - value: '506' + newvalue: 'Variant Also Negotiates' + - value: '507' + newvalue: 'Insufficient Storage' + - value: '508' + newvalue: 'Loop Detected' + - value: '509' + newvalue: 'Bandwidth Limit Exceeded' + - value: '510' + newvalue: 'Not Extended' + - value: '511' + newvalue: 'Network Authentication Required' + - value: '520' + newvalue: 'Unknown Error' + - value: '598' + newvalue: 'Network Read Timeout Error' + - value: '599' + newvalue: 'Network Connect Timeout Error' + - uuid: 99c0bc65efb34d298586320bdcf14209 + name: 'Node online' + mappings: + - value: '1' + newvalue: Online + - value: '0' + newvalue: Offline diff --git a/Pure_Storage_FlashArray_v1_by_HTTP.yaml b/Pure_Storage_FlashArray_v1_by_HTTP.yaml new file mode 100644 index 0000000..85cc5d3 --- /dev/null +++ b/Pure_Storage_FlashArray_v1_by_HTTP.yaml @@ -0,0 +1,4717 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 7c2cb727f85b492d88cd56e17127c64d + name: Templates/SAN + templates: + - uuid: ae3ce7156aae4ae79a72742365c884ea + template: 'Pure Storage FlashArray v1 by HTTP' + name: 'Pure Storage FlashArray v1 by HTTP' + description: | + Setup: + 1. Create a host for the Pure Storage FlashArray device and assign to it the "Pure Storage FlashArray v1 by HTTP" template. + 2. Enter your API token from the Purity//FA web interface into the {$PURE.FLASHARRAY.API.TOKEN} macro. + 3. Set your Purity//FA web interface URL as the {$PURE.FLASHARRAY.API.URL} macro value. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/SAN + items: + - uuid: c51f66a1d1c749e0b48a9bebf21c7426 + name: 'Array capacity' + type: DEPENDENT + key: purestorage.flasharray.array.capacity + delay: '0' + units: B + description: 'Total capacity of the array.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.capacity + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: fa0fbc8453ab4c2da3a0416e8f1244fa + name: 'Array data reduction' + type: DEPENDENT + key: purestorage.flasharray.array.drr + delay: '0' + value_type: FLOAT + description: 'The data reduction ratio (DRR) represents the efficiency of data reduction techniques such as compression and deduplication for the array volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.data_reduction + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: f769c0656f934f5c8d515c76ebf2f5ae + name: 'Storage array item errors' + type: DEPENDENT + key: purestorage.flasharray.array.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from array data retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: error + triggers: + - uuid: 99e1a8dbf600466d99d898806a0d020a + expression: 'length(last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.array.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get storage array data'' metric' + priority: WARNING + description: 'An error occurred when trying to get array data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: 559fb36d7bb34145a2afcdc790951041 + name: 'Get array data' + type: DEPENDENT + key: purestorage.flasharray.array.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects array data from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v1"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + storage_array = {}, + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + request.addHeader('Accept: application/json'); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + if (Array.isArray(response) & response.length > 0) { + response = response[0] + } + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['cookie'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected cookie value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + storage_array = getHttpData( + url + 'api/' + version + '/array', + creds.cookie + ); + + storage_array['space'] = getHttpData( + url + 'api/' + version + '/array?space=true', + creds.cookie + ); + + storage_array['monitor'] = getHttpData( + url + 'api/' + version + '/array?action=monitor', + creds.cookie + ); + + storage_array['remote_assist'] = getHttpData( + url + 'api/' + version + '/array/remoteassist', + creds.cookie, {} + ); + + storage_array['phone_home'] = getHttpData( + url + 'api/' + version + '/array/phonehome', + creds.cookie, {} + ); + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'array': storage_array, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: f279b2482fb9422abe2d9f4e52937771 + name: 'Array hostname' + type: DEPENDENT + key: purestorage.flasharray.array.hostname + delay: '0' + value_type: CHAR + trends: '0' + description: 'Host name of the array.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.hostname + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 7fec71312a2841f2b5f615e2e8e061f4 + name: 'Array parity' + type: DEPENDENT + key: purestorage.flasharray.array.parity + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of data that is protected.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.parity + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: ce48a3aee4fc44a386f28ccb26fe4744 + name: 'Array bytes read per second' + type: DEPENDENT + key: purestorage.flasharray.array.read_bytes.rate + delay: '0' + units: Bps + description: 'Number of bytes read per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.monitor.output_per_sec + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 01e22e1c6fa548c68bbc04058497997e + name: 'Array read requests per second' + type: DEPENDENT + key: purestorage.flasharray.array.read_requests.rate + delay: '0' + description: 'Number of read requests processed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.monitor.reads_per_sec + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: ed65950573dc4f5caab6da2a114ad662 + name: 'Array shared space' + type: DEPENDENT + key: purestorage.flasharray.array.shared_space + delay: '0' + units: B + description: 'The physical space occupied by deduplicated data.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.shared_space + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 6bd825261ce64fa5849d8d4a71e24734 + name: 'Array snapshots size' + type: DEPENDENT + key: purestorage.flasharray.array.snapshots_size + delay: '0' + units: B + description: 'The physical space occupied by snapshots.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.snapshots + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 6033bf992db44f1fa74057288fd1c32c + name: 'Array system size' + type: DEPENDENT + key: purestorage.flasharray.array.system_size + delay: '0' + units: B + description: 'The physical space occupied by internal array metadata.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.system + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 10cb260c3ca84e3ab244122123cdc64f + name: 'Array thin provisioning' + type: DEPENDENT + key: purestorage.flasharray.array.thin_provisioning + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of volume sectors that do not contain host-written data because the hosts have not written data to them or the sectors have been explicitly trimmed.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.thin_provisioning + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 0263b3ea58ce4488b7628fba3f0dac73 + name: 'Array total data reduction' + type: DEPENDENT + key: purestorage.flasharray.array.total_drr + delay: '0' + value_type: FLOAT + description: 'The total reduction ratio of all data on the array volume that has been processed by the data deduplication and compression engines.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.total_reduction + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: d4b3cb4a9a7841f4bae08b75658d2309 + name: 'Array microseconds per operation' + type: DEPENDENT + key: purestorage.flasharray.array.usec_per_op + delay: '0' + units: µs + description: 'Average local queue time in microseconds for both read and write operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.monitor.local_queue_usec_per_op + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: bf22bf3ce9874cb5a6dbf89493ed8e0e + name: 'Array microseconds per read' + type: DEPENDENT + key: purestorage.flasharray.array.usec_per_read + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O read request from the array. The average time does not include SAN time, queue time, or QoS rate limit time.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.monitor.usec_per_read_op + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 83fde7a6cfdd4215b181866e1a003be9 + name: 'Array microseconds per write' + type: DEPENDENT + key: purestorage.flasharray.array.usec_per_write + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O write request to the array. The average time does not include SAN time, queue time, or QoS rate limit time.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.monitor.usec_per_write_op + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: bffa5098018742eaadaf5454df230280 + name: 'Array used space' + type: DEPENDENT + key: purestorage.flasharray.array.used_space + delay: '0' + units: B + description: 'The total physical space occupied by system, shared space, volume, and snapshot data.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.total + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 1fc46ce2f857421a9a4f7c2b4cdcee97 + name: 'Array version' + type: DEPENDENT + key: purestorage.flasharray.array.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the array.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 66e9074d811e4836a0d763b090a7c6ed + name: 'Array volumes size' + type: DEPENDENT + key: purestorage.flasharray.array.volumes_size + delay: '0' + units: B + description: 'The physical space occupied by volumes.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.volumes + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 812c713f9237473398328d7316827ec8 + name: 'Array write requests per second' + type: DEPENDENT + key: purestorage.flasharray.array.write_requests.rate + delay: '0' + description: 'Number of write requests processed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.monitor.writes_per_sec + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 2ae599ecbf43447d9b7d3c5956c435bd + name: 'Array bytes written per second' + type: DEPENDENT + key: purestorage.flasharray.array.written_bytes.rate + delay: '0' + units: Bps + description: 'Number of bytes written per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.monitor.input_per_sec + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 37b7fc4e8af740639a009049acdaf229 + name: Authentication + type: SCRIPT + key: purestorage.flasharray.auth + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + cookies = [], + error_msg = ''; + + function getToken(url, data) { + tls.checkURL(url); + var token = null; + var response = request.post(url, JSON.stringify(data)); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + token = JSON.parse(response).api_token; + } + catch (error) { + throw 'Failed to get the API token from Pure Storage API. Check debug log for more information.'; + } + } + + if (token === null || typeof token !== 'string') { + throw 'Something went wrong while getting the API token. Check debug log for more information.'; + } + + return token; + }; + + function createSession(url, data) { + tls.checkURL(url); + var cookies = []; + response = request.post(url, JSON.stringify(data)); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + username = JSON.parse(response).username; + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } else { + throw 'Authentication failed.'; + } + + var headers = request.getHeaders(); + for (key in headers) { + if (key.toLowerCase() == 'set-cookie') { + var entries = headers[key].split(','); + for (idx in entries) { + var value = entries[idx].split(';')[0]; + cookies.push(value); + } + } + } + + return cookies; + }; + + try { + + ['url', 'token', 'username', 'password', 'version'].forEach(function (field) { + var macro = '{$PURE.FLASHARRAY.API.' + field.toUpperCase() + '}'; + if (typeof params[field] === 'undefined' || params[field] === macro) { + throw 'Please set \'' + field + '\' script input parameter to the proper ' + macro + ' macro value.'; + } + }); + ['url', 'version'].forEach(function (field) { + if (typeof params[field] == '') { + throw 'Please set \'' + field + '\' script input parameter to the proper value.'; + } + }); + + if (params.token == '' & params.username == '' & params.password == '') { + throw 'To perform authentication, either a token or a username and password must be specified.'; + } + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url + (!params.url.endsWith('/') ? '/' : '');; + } + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + if (params.token === '') { + if (params.username === '' || params.password === '') { + throw 'Username or password is not specified.'; + } + params.token = getToken( + params.url + 'api/' + params.version + '/auth/apitoken', + {'username': params.username,'password': params.password} + ); + } + cookies = createSession( + params.url + 'api/' + params.version + '/auth/session', + {'api_token': params.token} + ); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'cookie': cookies.join('; '), + 'error': error_msg.toString() + }); + description: | + Pure Storage FlashArray authentication with username and password or API token usage. + Returns a session ID that is required only once and is used for all dependent script items. + A session will expire after 30 minutes. Check the template documentation for details. + timeout: '{$PURE.FLASHARRAY.DATA.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$PURE.FLASHARRAY.HTTP_PROXY}' + - name: password + value: '{$PURE.FLASHARRAY.API.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v1"}' + - name: token + value: '{$PURE.FLASHARRAY.API.TOKEN}' + - name: url + value: '{$PURE.FLASHARRAY.API.URL}' + - name: username + value: '{$PURE.FLASHARRAY.API.USERNAME}' + - name: version + value: '{$PURE.FLASHARRAY.API.VERSION}' + tags: + - tag: component + value: raw + - uuid: 254ba4d842a64dc19cdd42ac9436b0d7 + name: 'Authentication item errors' + type: DEPENDENT + key: purestorage.flasharray.auth.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from the authentication item.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: error + triggers: + - uuid: 748fc12e196f429e8fe04a1ca27779f9 + expression: 'length(last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.auth.errors))>0' + name: 'Pure Storage FlashArray: Authentication has failed' + priority: AVERAGE + description: 'An error occurred when trying to perform authentication in the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: 0ac271e368184318838ed9f0dd7b77ba + name: 'Certificates item errors' + type: DEPENDENT + key: purestorage.flasharray.certificates.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from certificate retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.certificates.get + tags: + - tag: component + value: error + triggers: + - uuid: dc6de5a835ac4e7e91c34f7b711957ce + expression: 'length(last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.certificates.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get certificates'' metric' + priority: WARNING + description: 'An error occurred when trying to get certificate data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: e27cd9105cc74c2fa401bfe1a35f5261 + name: 'Get certificates' + type: DEPENDENT + key: purestorage.flasharray.certificates.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects all certificates from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v1"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + certs = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['cookie'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected cookie value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + certs = getHttpData( + url + 'api/' + version + '/cert', + creds.cookie + ); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'certs': certs, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: 4694be0d85664bc3976c6ff15ce10262 + name: 'Storage hardware item errors' + type: DEPENDENT + key: purestorage.flasharray.hardware.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from hardware retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: error + triggers: + - uuid: 0ee01011e18b4304b3baff456fa62787 + expression: 'length(last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.hardware.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get hardware data'' metric' + priority: WARNING + description: 'An error occurred when trying to get hardware data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: 02d04959c00b4d8e861e205b863c0ece + name: 'Get hardware data' + type: DEPENDENT + key: purestorage.flasharray.hardware.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects hardware from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v1"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + drives = [], + hardware = [], + controllers = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['cookie'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected cookie value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + drives = getHttpData( + url + 'api/' + version + '/drive', + creds.cookie + ); + + controllers = getHttpData( + url + 'api/' + version + '/array?controllers=true', + creds.cookie + ); + + getHttpData( + url + 'api/' + version + '/hardware', + creds.cookie + ).forEach(function (item) { + var applied = false; + drives.forEach(function (drive, index) { + if (drive['name'] && item['name'] && drive['name'] == item['name']) { + drives[index]['hardware'] = item; + applied = true; + } + }); + controllers.forEach(function (ctrl, index) { + if (ctrl['name'] && item['name'] && ctrl['name'] == item['name']) { + controllers[index]['hardware'] = item; + applied = true; + } + }); + if (!applied) { + var nameArray = item['name'].split('.'); + if (nameArray.length > 1) { + item['parent'] = nameArray[0]; + } + hardware.push(item); + } + }); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'drives': drives, + 'hardware': hardware, + 'controllers': controllers, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: b867ded0bdca42e48b5d17cae7f00f17 + name: 'Storage hosts item errors' + type: DEPENDENT + key: purestorage.flasharray.hosts.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from host data retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.hosts.get + tags: + - tag: component + value: error + triggers: + - uuid: d72a25739d1d4a67947115fa1bad84a4 + expression: 'length(last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.hosts.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get hosts'' metric' + priority: WARNING + description: 'An error occurred when trying to get host data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: 7e483238579b40118674edf0c0f21250 + name: 'Get hosts' + type: DEPENDENT + key: purestorage.flasharray.hosts.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects all hosts from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v1"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + hosts = {}, + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + request.addHeader('Accept: application/json'); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['cookie'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected cookie value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + hosts = getHttpData( + url + 'api/' + version + '/host', + creds.cookie + ); + + getHttpData( + url + 'api/' + version + '/host?space=true', + creds.cookie + ).forEach(function (item) { + hosts.forEach(function (host, index) { + if (host['name'] && item['name'] && host['name'] == item['name']) { + hosts[index]['space'] = item; + } + }); + }); + + getHttpData( + url + 'api/' + version + '/host?action=monitor', + creds.cookie + ).forEach(function (item) { + hosts.forEach(function (host, index) { + if (host['name'] && item['name'] && host['name'] == item['name']) { + hosts[index]['monitor'] = item; + } + }); + }); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'hosts': hosts, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: 16b047e98a2f4aec87df0aa48d741843 + name: 'Storage network interfaces item errors' + type: DEPENDENT + key: purestorage.flasharray.net_ifs.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from network interface retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.net_ifs.get + tags: + - tag: component + value: error + triggers: + - uuid: 577eaf4cb56345aca0a901da2fdaa7b1 + expression: 'length(last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.net_ifs.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get network interfaces'' metric' + priority: WARNING + description: 'An error occurred when trying to get network interface data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: bcfa1e2b0bb34baf82b28fad87ba7688 + name: 'Get network interfaces' + type: DEPENDENT + key: purestorage.flasharray.net_ifs.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects all network interfaces from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v1"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + interfaces = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + request.addHeader('Accept: application/json'); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['cookie'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected cookie value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + interfaces = getHttpData( + url + 'api/' + version + '/network', + creds.cookie + ); + + getHttpData( + url + 'api/' + version + '/hardware', + creds.cookie + ).forEach(function (item) { + interfaces.forEach(function (netif, index) { + if (netif['name'] && item['name'] && netif['name'].toLowerCase() == item['name'].toLowerCase()) { + interfaces[index]['name'] = item['name'].toLowerCase(); + interfaces[index]['hardware'] = item; + } + }); + }); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'interfaces': interfaces, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: 1d5a1fa4d56e49fe9188f308babb12ad + name: 'Phone home status' + type: DEPENDENT + key: purestorage.flasharray.phone_home.status + delay: '0' + trends: '0' + description: 'Current status of a manually-initiated phonehome.' + valuemap: + name: 'Connection Status' + preprocessing: + - type: JSONPATH + parameters: + - $.array.phone_home.status + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'disabled', + 'enabled' + ].indexOf(value); + return idx !== -1 ? idx : 2; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + triggers: + - uuid: 5a670b7f0c3e4dc9a5e2fff4cedf3810 + expression: 'last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.phone_home.status)=0' + name: 'Pure Storage FlashArray: Phone Home has been disabled' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Phone Home connects to the Pure1 service and uploads logs for continuous health monitoring.' + tags: + - tag: scope + value: availability + - uuid: 2a116c0e14c149949b5691ad42ccddb1 + name: 'Storage pods item errors' + type: DEPENDENT + key: purestorage.flasharray.pods.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from pod retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.pods.get + tags: + - tag: component + value: error + triggers: + - uuid: 8eddd157ab93413cac5ba6a7cca2ce93 + expression: 'length(last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.pods.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get pods'' metric' + priority: WARNING + description: 'An error occurred when trying to get pod data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: e6a4b00380a64f02a0209c2168d0191f + name: 'Get pods' + type: DEPENDENT + key: purestorage.flasharray.pods.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects all pods from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v1"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + pods = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['cookie'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected cookie value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + pods = getHttpData( + url + 'api/' + version + '/pod', + creds.cookie + ); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'pods': pods, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: 0182ae2fcd5f484685d1a0700ef15f8b + name: 'Remote assist status' + type: DEPENDENT + key: purestorage.flasharray.remote_assist.status + delay: '0' + trends: '0' + description: 'Status of the remote assist connection.' + valuemap: + name: 'Connection Status' + preprocessing: + - type: JSONPATH + parameters: + - $.array.remote_assist.status + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'disconnected', + 'connected' + ].indexOf(value); + return idx !== -1 ? idx : 2; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + triggers: + - uuid: eb043244987b4124b07018e94d99cd21 + expression: 'last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.remote_assist.status)=1' + name: 'Pure Storage FlashArray: RemoteAssist has been enabled' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Purity''s administrator-controlled RemoteAssist feature enables a Technical Support Engineer to communicate directly with the FlashArray via a secure link, effectively establishing an additional administrative session for the duration of the diagnosis and service.' + tags: + - tag: scope + value: security + - uuid: f36a091e06a84158bda3ba468343bf96 + name: 'Storage volumes item errors' + type: DEPENDENT + key: purestorage.flasharray.volumes.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from volume retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.volumes.get + tags: + - tag: component + value: error + triggers: + - uuid: 1ffc3c34fe294c6caf0936169b836627 + expression: 'length(last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.volumes.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get volumes'' metric' + priority: WARNING + description: 'An error occurred when trying to get volume data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: ece41bfbe0ba4037baae8305f5ce6a61 + name: 'Get volumes' + type: DEPENDENT + key: purestorage.flasharray.volumes.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects all volumes from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v1"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + volumes = {}, + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url, cookie) { + tls.checkURL(url); + request.addHeader('Cookie: ' + cookie); + request.addHeader('Accept: application/json'); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['cookie'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected cookie value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + volumes = getHttpData( + url + 'api/' + version + '/volume', + creds.cookie, {} + ); + + getHttpData( + url + 'api/' + version + '/volume?space=true', + creds.cookie + ).forEach(function (item) { + volumes.forEach(function (volume, index) { + if (volume['name'] && item['name'] && volume['name'] == item['name']) { + volumes[index]['space'] = item; + } + }); + }); + + getHttpData( + url + 'api/' + version + '/volume?action=monitor', + creds.cookie + ).forEach(function (item) { + volumes.forEach(function (volume, index) { + if (volume['name'] && item['name'] && volume['name'] == item['name']) { + volumes[index]['monitor'] = item; + } + }); + }); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'volumes': volumes, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 55f1042201c2411e854aea9e0c436c36 + name: 'Certificate discovery' + type: DEPENDENT + key: purestorage.flasharray.cert.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.CERT.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.CERT.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of certificates from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 6485116679eb47fbad1bb587da76314c + name: 'Certificate [{#NAME}]: Common name' + type: DEPENDENT + key: 'purestorage.flasharray.cert.cn[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The common name field listed in the {#NAME} certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.common_name + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.cert.get[{#NAME}]' + tags: + - tag: component + value: certificate + - tag: type + value: '{#TYPE}' + - uuid: 23e5bc6dd2824c92bf4a2cb4c8c56449 + name: 'Certificate [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.cert.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} certificate.' + preprocessing: + - type: JSONPATH + parameters: + - '$.certs[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.certificates.get + tags: + - tag: component + value: raw + - tag: type + value: '{#TYPE}' + - uuid: 47d355c8da7f46a69da89cb125a9097c + name: 'Certificate [{#NAME}]: Issued by' + type: DEPENDENT + key: 'purestorage.flasharray.cert.issued_by[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the authority or organization that issued the {#NAME} certificate, typically including information such as the name of the Certificate Authority (CA) and its digital signature.' + preprocessing: + - type: JSONPATH + parameters: + - $.issued_by + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.cert.get[{#NAME}]' + tags: + - tag: component + value: certificate + - tag: type + value: '{#TYPE}' + - uuid: 1d3825ea91324e36847187cb2c415120 + name: 'Certificate [{#NAME}]: Issued to' + type: DEPENDENT + key: 'purestorage.flasharray.cert.issued_to[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the entity which holds the {#NAME} certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.issued_to + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.cert.get[{#NAME}]' + tags: + - tag: component + value: certificate + - tag: type + value: '{#TYPE}' + - uuid: 9f90d24085614389a0e4d9c14139bf3b + name: 'Certificate [{#NAME}]: Valid from' + type: DEPENDENT + key: 'purestorage.flasharray.cert.valid_from[{#NAME}]' + delay: '0' + units: unixtime + description: 'Indicates the date and time when the {#NAME} certificate takes effect.' + preprocessing: + - type: JSONPATH + parameters: + - $.valid_from + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'purestorage.flasharray.cert.get[{#NAME}]' + tags: + - tag: component + value: certificate + - tag: type + value: '{#TYPE}' + - uuid: 9d898b8feff04af388deed0465745f50 + name: 'Certificate [{#NAME}]: Valid to' + type: DEPENDENT + key: 'purestorage.flasharray.cert.valid_to[{#NAME}]' + delay: '0' + units: unixtime + description: 'Indicates the expiration date and time of the {#NAME} certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.valid_to + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'purestorage.flasharray.cert.get[{#NAME}]' + tags: + - tag: component + value: certificate + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: 1d5940586b7245908c4aa60f56458941 + expression: 'last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.cert.valid_to[{#NAME}]) > 0 and (last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.cert.valid_to[{#NAME}]) - now()) / 86400 < {$PURE.FLASHARRAY.CERT.EXPIRY.WARN}' + name: 'Pure Storage FlashArray: Certificate [{#NAME}]: SSL certificate expires soon' + event_name: 'Pure Storage FlashArray: Certificate [{#NAME}]: SSL certificate expires soon (less than {$PURE.FLASHARRAY.CERT.EXPIRY.WARN} days)' + opdata: 'Expiration date: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Consider reissuing and replacing the {#NAME} certificate.' + tags: + - tag: scope + value: notice + master_item: + key: purestorage.flasharray.certificates.get + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.status + preprocessing: + - type: JSONPATH + parameters: + - $.certs + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 3406d565b5274d4885d83a2185f25dfd + name: 'Controller discovery' + type: DEPENDENT + key: purestorage.flasharray.ctrl.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.CTRL.LLD.FILTER.INDEX.MATCHES}' + formulaid: A + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.CTRL.LLD.FILTER.INDEX.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NAME}' + value: '^CT[0-9]+$' + formulaid: C + description: 'Discovery of controllers from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: e2113791d4e4432a9a81f045a5411661 + name: 'Controller [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} controller.' + preprocessing: + - type: JSONPATH + parameters: + - '$.controllers[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: raw + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: 441c03ccdad4446aabd0785431f20ce3 + name: 'Controller [{#NAME}]: Model' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.model[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Model of the {#NAME} controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: 2b0b25979941487092faa88bc072b0a6 + name: 'Controller [{#NAME}]: Mode' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.mode[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current mode of the {#NAME} controller.' + valuemap: + name: 'Controller Mode' + preprocessing: + - type: JSONPATH + parameters: + - $.mode + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'not present', + 'offline', + 'primary', + 'secondary', + ].indexOf(value); + return idx !== -1 ? idx : 4; + master_item: + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: a31d230425d448bbb5f4963f9478893b + expression: 'last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.ctrl.mode[{#NAME}],#1)<>last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.ctrl.mode[{#NAME}],#2)' + name: 'Pure Storage FlashArray: Controller [{#NAME}]: Mode has been changed' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The mode of the {#NAME} controller has changed.' + tags: + - tag: scope + value: health + - uuid: ebee4ac2d44648ab999f18a1b7ee8b85 + name: 'Controller [{#NAME}]: Serial number' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.serial[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Serial number of the {#NAME} controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.hardware.serial + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: e51fe80fdd604e47a0a7d0fd818f15f1 + name: 'Controller [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current status of the {#NAME} controller.' + valuemap: + name: 'Controller Status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'not ready', + 'ready', + 'updating', + ].indexOf(value); + return idx !== -1 ? idx : 3; + master_item: + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: 7dfab62da75440e0bed46d02133a0f8f + expression: 'last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.ctrl.status[{#NAME}])<>1 and last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.ctrl.status[{#NAME}])<>2' + name: 'Pure Storage FlashArray: Controller [{#NAME}]: Controller is not ready' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Controller {#NAME} status is not "ready" or "updating".' + tags: + - tag: scope + value: health + - uuid: dd63482ca18d48f8840b3db73b997999 + name: 'Controller [{#NAME}]: Version' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.version[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the {#NAME} controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + master_item: + key: purestorage.flasharray.hardware.get + lld_macro_paths: + - lld_macro: '{#INDEX}' + path: $.hardware.index + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.controllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: ad7ad0c1965f40c4aa64dbbdecd0bcbc + name: 'Drive discovery' + type: DEPENDENT + key: purestorage.flasharray.drive.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.DRIVE.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.DRIVE.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#PROTOCOL}' + value: ^null$ + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#TYPE}' + value: ^-$ + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of storage drives from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 488202a55703418d91483c6ed575c427 + name: 'Drive [{#NAME}]: Capacity' + type: DEPENDENT + key: 'purestorage.flasharray.drive.capacity[{#NAME}]' + delay: '0' + units: B + description: 'The capacity of the {#NAME} drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.drive.get[{#NAME}]' + tags: + - tag: component + value: drive + - tag: drive + value: '{#TYPE}' + - tag: protocol + value: '{#PROTOCOL}' + - uuid: e0d18f21c935472d9505dad16b3dac74 + name: 'Drive [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.drive.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} drive.' + preprocessing: + - type: JSONPATH + parameters: + - '$.drives[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: raw + - tag: drive + value: '{#TYPE}' + - tag: protocol + value: '{#PROTOCOL}' + - uuid: 26ed406b5fac46bb98ecccd975ffe8e3 + name: 'Drive [{#NAME}]: Serial number' + type: DEPENDENT + key: 'purestorage.flasharray.drive.serial[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Serial number of the {#NAME} drive device.' + preprocessing: + - type: JSONPATH + parameters: + - $.hardware.serial + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.drive.get[{#NAME}]' + tags: + - tag: component + value: drive + - tag: drive + value: '{#TYPE}' + - tag: protocol + value: '{#PROTOCOL}' + - uuid: 272ec36f403e409c80f248e7d37ea4a9 + name: 'Drive [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.drive.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current status of the {#NAME} drive.' + valuemap: + name: 'Drive Status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'healthy', + 'empty', + 'updating', + 'unused', + 'evacuating', + 'identifying', + 'unhealthy', + 'recovering', + 'unrecognized', + 'failed' + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: 'purestorage.flasharray.drive.get[{#NAME}]' + tags: + - tag: component + value: drive + - tag: drive + value: '{#TYPE}' + - tag: protocol + value: '{#PROTOCOL}' + trigger_prototypes: + - uuid: f29ae0ee3d7444a98183590045d53aa1 + expression: 'last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.drive.status[{#NAME}])<>0 and last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.drive.status[{#NAME}])<>2 and last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.drive.status[{#NAME}])<>3' + name: 'Pure Storage FlashArray: Drive [{#NAME}]: Problem on the drive' + event_name: 'Pure Storage FlashArray: Drive [{#NAME}]: Drive is not healthy or is not ready for use' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Drive {#NAME} status is not "healthy", "updating", or "unused".' + tags: + - tag: scope + value: health + graph_prototypes: + - uuid: 1ef6267285804c4c8994ec197ad7eb54 + name: 'Drive [{#NAME}]: Capacity' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.drive.capacity[{#NAME}]' + master_item: + key: purestorage.flasharray.hardware.get + lld_macro_paths: + - lld_macro: '{#INDEX}' + path: $.hardware.index + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#PROTOCOL}' + path: $.protocol + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.drives + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 3de3fa3b233d486690f58ebb6b40cf18 + name: 'Fan discovery' + type: DEPENDENT + key: purestorage.flasharray.fan.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.FAN.LLD.FILTER.INDEX.MATCHES}' + formulaid: A + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.FAN.LLD.FILTER.INDEX.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NAME}' + value: '.*\.FAN[0-9]+$' + formulaid: C + description: 'Discovery of fans from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 7ad007338fdc40a2aaf589d5e492a97e + name: 'Fan [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.fan.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} fan.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardware[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: raw + - tag: controller + value: '{#CTRL}' + - uuid: 8e0821c8b7154bf596d54ba6917d45bc + name: 'Fan [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.fan.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current status of the {#NAME} fan.' + valuemap: + name: 'Hardware Status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'ok', + 'critical', + 'degraded', + 'device_off', + 'identifying', + 'not_installed', + ].indexOf(value); + return idx !== -1 ? idx : 6; + master_item: + key: 'purestorage.flasharray.fan.get[{#NAME}]' + tags: + - tag: component + value: fan + - tag: controller + value: '{#CTRL}' + trigger_prototypes: + - uuid: c2ec7d246be44c60bc86338ddee9e377 + expression: 'last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.fan.status[{#NAME}])<>0' + name: 'Pure Storage FlashArray: Fan [{#NAME}]: Fan is not healthy' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Fan {#NAME} status is not "ok".' + tags: + - tag: scope + value: health + master_item: + key: purestorage.flasharray.hardware.get + lld_macro_paths: + - lld_macro: '{#CTRL}' + path: $.parent + - lld_macro: '{#INDEX}' + path: $.index + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.hardware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: dbcf02647ac84d67a8bc89cb6e61cb28 + name: 'Host discovery' + type: DEPENDENT + key: purestorage.flasharray.host.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.GROUP.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.NAME.MATCHES}' + formulaid: C + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of storage hosts from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: cbc03265dea84c6886835ecdbba45559 + name: 'Host [{#NAME}]: Data reduction' + type: DEPENDENT + key: 'purestorage.flasharray.host.drr[{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The data reduction ratio (DRR) represents the efficiency of data reduction techniques such as compression and deduplication for the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.data_reduction + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: c96be731c08446b79bca3283a1547974 + name: 'Host [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.host.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} host.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hosts[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hosts.get + tags: + - tag: component + value: raw + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: a8c6bc9697424bd2a9908cdd9d86adc9 + name: 'Host [{#NAME}]: Bytes read per second' + type: DEPENDENT + key: 'purestorage.flasharray.host.read_bytes.rate[{#NAME}]' + delay: '0' + units: Bps + description: 'Number of bytes read from the {#NAME} host volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.output_per_sec + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 7433871757cc476e9deb0fac5325e173 + name: 'Host [{#NAME}]: Read requests per second' + type: DEPENDENT + key: 'purestorage.flasharray.host.read_requests.rate[{#NAME}]' + delay: '0' + description: 'Number of read requests processed on the {#NAME} host volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.reads_per_sec + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 9b0c741b62704bb4926f2d0a9695655f + name: 'Host [{#NAME}]: Size' + type: DEPENDENT + key: 'purestorage.flasharray.host.size[{#NAME}]' + delay: '0' + units: B + description: 'The physical space occupied on the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.size + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: d7ddc5432f7440eeaaf8ea629b8ed366 + name: 'Host [{#NAME}]: Snapshots size' + type: DEPENDENT + key: 'purestorage.flasharray.host.snapshots_size[{#NAME}]' + delay: '0' + units: B + description: 'The physical space occupied by snapshots on the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.snapshots + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 7744894a795c4a1d9aca45c7c02ba069 + name: 'Host [{#NAME}]: Thin provisioning' + type: DEPENDENT + key: 'purestorage.flasharray.host.thin_provisioning[{#NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sectors in the {#NAME} host volume that do not contain host-written data because the hosts have not written data to them or the sectors have been explicitly trimmed.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.thin_provisioning + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 5b53c068d79a4eb29b6e00b2501e6eae + name: 'Host [{#NAME}]: Total data reduction' + type: DEPENDENT + key: 'purestorage.flasharray.host.total_drr[{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The total reduction ratio of all data on the {#NAME} host volume that has been processed by the data deduplication and compression engines.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.total_reduction + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 4de2e3ef869a4c859da7bbed84844d2e + name: 'Host [{#NAME}]: Microseconds per read' + type: DEPENDENT + key: 'purestorage.flasharray.host.usec_per_read[{#NAME}]' + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O read request from the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.usec_per_read_op + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: da26e20fbd06499783569970242d5965 + name: 'Host [{#NAME}]: Microseconds per write' + type: DEPENDENT + key: 'purestorage.flasharray.host.usec_per_write[{#NAME}]' + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O write request to the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.usec_per_write_op + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: d562ce2c6b814a52bb759ff13a115f55 + name: 'Host [{#NAME}]: Used space' + type: DEPENDENT + key: 'purestorage.flasharray.host.used_space[{#NAME}]' + delay: '0' + units: B + description: 'The total physical space occupied by all data on the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.total + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 754e824850d04560ab96ee9227823a2a + name: 'Host [{#NAME}]: Write requests per second' + type: DEPENDENT + key: 'purestorage.flasharray.host.write_requests.rate[{#NAME}]' + delay: '0' + description: 'Number of write requests processed on the {#NAME} host volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.writes_per_sec + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 25859db2b7a046c7b8993918aedf09d0 + name: 'Host [{#NAME}]: Bytes written per second' + type: DEPENDENT + key: 'purestorage.flasharray.host.written_bytes.rate[{#NAME}]' + delay: '0' + units: Bps + description: 'Number of bytes written to the {#NAME} host volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.input_per_sec + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + graph_prototypes: + - uuid: 077a05cbbbcf4b86a200235ef843b144 + name: 'Host [{#NAME}]: Operation latency' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.host.usec_per_read[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.host.usec_per_write[{#NAME}]' + - uuid: 72253c19ec1441fd8474fcb2f8d59623 + name: 'Host [{#NAME}]: Read/write throughput' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.host.written_bytes.rate[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.host.read_bytes.rate[{#NAME}]' + - uuid: 75b44e10db2c4652a3a4affeb9153c23 + name: 'Host [{#NAME}]: Requests per second' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.host.read_requests.rate[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.host.write_requests.rate[{#NAME}]' + - uuid: 2b1554f56cae4cb0a71ac25af2443045 + name: 'Host [{#NAME}]: Space' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + yaxisside: RIGHT + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.host.size[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.host.used_space[{#NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.host.snapshots_size[{#NAME}]' + master_item: + key: purestorage.flasharray.hosts.get + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.hgroup + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.hosts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 478e7c91f114410a818d94b82fd3088e + name: 'Network interface discovery' + type: DEPENDENT + key: purestorage.flasharray.net_if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$PURE.FLASHARRAY.NETIF.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#IFNAME}' + value: '{$PURE.FLASHARRAY.NETIF.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of storage hosts from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 02c0c2d8c86b4346949e88496d451321 + name: 'Interface [{#IFNAME}]: Gateway' + type: DEPENDENT + key: 'purestorage.flasharray.net_if.gateway[{#IFNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Represents the IP address of the gateway for the {#IFNAME} interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.gateway + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.net_if.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: 3f1f5d598ff74ec8a99200f07a6ecefb + name: 'Interface [{#IFNAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.net_if.get[{#IFNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#IFNAME} network interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$.interfaces[?(@.name == "{#IFNAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.net_ifs.get + tags: + - tag: component + value: raw + - tag: interface + value: '{#IFNAME}' + - uuid: fd384edb08c140eaa3beddd95271339a + name: 'Interface [{#IFNAME}]: IP address' + type: DEPENDENT + key: 'purestorage.flasharray.net_if.ip[{#IFNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Represents the IP address of the {#IFNAME} interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.address + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.net_if.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: 4de3a135121740d1aabc6505cca13a38 + name: 'Interface [{#IFNAME}]: MAC address' + type: DEPENDENT + key: 'purestorage.flasharray.net_if.mac[{#IFNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Represents the MAC address of the {#IFNAME} interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.hwaddr + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.net_if.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - uuid: 414795590ee74d75bbbdab30e1d353d6 + name: 'Interface [{#IFNAME}]: Speed' + type: DEPENDENT + key: 'purestorage.flasharray.net_if.speed[{#IFNAME}]' + delay: '0' + units: Bps + description: 'Current bandwidth of the interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.speed + master_item: + key: 'purestorage.flasharray.net_if.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: d2655e4b69fb4c7194efe5020247cdc8 + expression: 'change(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.net_if.speed[{#IFNAME}])<0 and last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.net_if.speed[{#IFNAME}])>0' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(change(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.net_if.speed[{#IFNAME}])>0 and last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.net_if.speed[{#IFNAME}],#2)>0)' + name: 'Pure Storage FlashArray: Interface [{#IFNAME}]: Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 8e3eb09b1c03460286381b8491be48c8 + name: 'Interface [{#IFNAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.net_if.speed[{#IFNAME}]' + master_item: + key: purestorage.flasharray.net_ifs.get + lld_macro_paths: + - lld_macro: '{#IFINDEX}' + path: $.hardware.index + - lld_macro: '{#IFNAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.interfaces + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 0abb8ee6fa884a389a20e105f6fa8709 + name: 'Pod discovery' + type: DEPENDENT + key: purestorage.flasharray.pod.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.POD.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.POD.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of storage pods from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 6149e63e598344e5a6d43e9ec8298e65 + name: 'Pod [{#NAME}]: Number of arrays' + type: DEPENDENT + key: 'purestorage.flasharray.pod.arrays[{#NAME}]' + delay: '0' + description: 'Number of arrays connected to the {#NAME} pod.' + preprocessing: + - type: JSONPATH + parameters: + - $.arrays.length() + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'purestorage.flasharray.pod.get[{#NAME}]' + tags: + - tag: component + value: pod + - tag: pod + value: '{#NAME}' + - uuid: 9612332d9b2d4d0faddabe1c6bc423f8 + name: 'Pod [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.pod.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} pod.' + preprocessing: + - type: JSONPATH + parameters: + - '$.pods[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.pods.get + tags: + - tag: component + value: raw + - tag: pod + value: '{#NAME}' + - uuid: 59e1cdbd663b41c28544ad07d0bb6671 + name: 'Pod [{#NAME}]: Promotion status' + type: DEPENDENT + key: 'purestorage.flasharray.pod.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current promotion status of the {#NAME} pod.' + valuemap: + name: 'Pod Status' + preprocessing: + - type: JSONPATH + parameters: + - $.promotion_status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'demoted', + 'promoted' + ].indexOf(value); + return idx !== -1 ? idx : 2; + master_item: + key: 'purestorage.flasharray.pod.get[{#NAME}]' + tags: + - tag: component + value: pod + - tag: pod + value: '{#NAME}' + master_item: + key: purestorage.flasharray.pods.get + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.pods + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 4750d6030dfc469996553ebe7133ca96 + name: 'Power supply discovery' + type: DEPENDENT + key: purestorage.flasharray.power.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.POWER.LLD.FILTER.INDEX.MATCHES}' + formulaid: A + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.POWER.LLD.FILTER.INDEX.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#VOLT.VALUE}' + value: ^null$ + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Discovery of power supply components from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 4fc1747f0af84d6a88043ef3397a0599 + name: 'Power supply [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.power.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} power supply component.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardware[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: raw + - uuid: 392364b853c84209acf4fbbc4de2fa11 + name: 'Power supply [{#NAME}]: Model' + type: DEPENDENT + key: 'purestorage.flasharray.power.model[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Model of the {#NAME} power supply component.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'purestorage.flasharray.power.get[{#NAME}]' + tags: + - tag: component + value: power + - uuid: 749a7f169b814078b60414c5573fb4ef + name: 'Power supply [{#NAME}]: Serial number' + type: DEPENDENT + key: 'purestorage.flasharray.power.serial[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Serial number of the {#NAME} power supply component.' + preprocessing: + - type: JSONPATH + parameters: + - $.serial + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'purestorage.flasharray.power.get[{#NAME}]' + tags: + - tag: component + value: power + - uuid: 22c677efa3cc446fb679cb0299ed628b + name: 'Power supply [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.power.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current status of the {#NAME} power supply component.' + valuemap: + name: 'Hardware Status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'ok', + 'critical', + 'degraded', + 'device_off', + 'identifying', + 'not_installed', + ].indexOf(value); + return idx !== -1 ? idx : 6; + master_item: + key: 'purestorage.flasharray.power.get[{#NAME}]' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 2b4700d8728f43f09f457bffc1f0f2f6 + expression: 'last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.power.status[{#NAME}])<>0' + name: 'Pure Storage FlashArray: Power supply [{#NAME}]: Power supply is not healthy' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Power supply component {#NAME} status is not "ok".' + tags: + - tag: scope + value: health + - uuid: 5c6d37614d154bf2aaf0802063affe62 + name: 'Power supply [{#NAME}]: Voltage' + type: DEPENDENT + key: 'purestorage.flasharray.power.value[{#NAME}]' + delay: '0' + units: V + description: 'The current voltage value of the {#NAME} power supply component.' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.power.get[{#NAME}]' + tags: + - tag: component + value: power + graph_prototypes: + - uuid: 1cf1118b11d84830804c6f97437877e5 + name: 'Power supply [{#NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.power.value[{#NAME}]' + master_item: + key: purestorage.flasharray.hardware.get + lld_macro_paths: + - lld_macro: '{#INDEX}' + path: $.index + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#VOLT.VALUE}' + path: $.voltage + preprocessing: + - type: JSONPATH + parameters: + - $.hardware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: a8c19abbceee47a0a1f419e4fa3e258e + name: 'Temperature sensor discovery' + type: DEPENDENT + key: purestorage.flasharray.temp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.TEMP.LLD.FILTER.INDEX.MATCHES}' + formulaid: A + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.TEMP.LLD.FILTER.INDEX.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TEMP.VALUE}' + value: ^null$ + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Discovery of temperature sensors from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 9870c41874014f4790febfa0a8c71ba6 + name: 'Sensor [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.temp.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} temperature sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardware[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: raw + - uuid: cc4880c2a9ec456abc20ed20049f2c6c + name: 'Sensor [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.temp.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current status of the {#NAME} temperature sensor.' + valuemap: + name: 'Hardware Status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'ok', + 'critical', + 'degraded', + 'device_off', + 'identifying', + 'not_installed', + ].indexOf(value); + return idx !== -1 ? idx : 6; + master_item: + key: 'purestorage.flasharray.temp.get[{#NAME}]' + tags: + - tag: component + value: sensor + trigger_prototypes: + - uuid: bdf2eaa567dc4c758f531d5d1126bbcd + expression: 'last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.temp.status[{#NAME}])<>0' + name: 'Pure Storage FlashArray: Sensor [{#NAME}]: Sensor is not healthy' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Temperature sensor {#NAME} status is not "ok".' + tags: + - tag: scope + value: health + - uuid: e8fb42ab04fb497c8349934b3c55f11f + name: 'Sensor [{#NAME}]: Temperature' + type: DEPENDENT + key: 'purestorage.flasharray.temp.value[{#NAME}]' + delay: '0' + units: °C + description: 'The current temperature value of the {#NAME} sensor.' + preprocessing: + - type: JSONPATH + parameters: + - $.temperature + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.temp.get[{#NAME}]' + tags: + - tag: component + value: sensor + graph_prototypes: + - uuid: e386829dbc6a4d98920100e8011cc11f + name: 'Sensor [{#NAME}]: Temperature' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.temp.value[{#NAME}]' + master_item: + key: purestorage.flasharray.hardware.get + lld_macro_paths: + - lld_macro: '{#CTRL}' + path: $.parent + - lld_macro: '{#INDEX}' + path: $.index + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TEMP.VALUE}' + path: $.temperature + preprocessing: + - type: JSONPATH + parameters: + - $.hardware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'Controller tag' + step: '1' + filter: + conditions: + - macro: '{#CTRL}' + value: '^CT[0-9]+$' + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: '.*' + tags: + - tag: controller + value: '{#CTRL}' + - name: 'Chassis tag' + step: '2' + filter: + conditions: + - macro: '{#CTRL}' + value: '^CH[0-9]+$' + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: '.*' + tags: + - tag: chassis + value: '{#CTRL}' + - uuid: 380cd5c61b1e4f8a97cc325b0409c98c + name: 'Volume discovery' + type: DEPENDENT + key: purestorage.flasharray.volume.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.VOLUME.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.VOLUME.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of storage volumes from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 5b088eec81d2415687098ee9d32c0a16 + name: 'Volume [{#NAME}]: Data reduction' + type: DEPENDENT + key: 'purestorage.flasharray.volume.drr[{#SN}]' + delay: '0' + value_type: FLOAT + description: 'The data reduction ratio (DRR) represents the efficiency of data reduction techniques such as compression and deduplication for the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.data_reduction + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 670ac91b3d124c17afc15f7bd8d58cd9 + name: 'Volume [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.volume.get[{#SN}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - '$.volumes[?(@.serial == "{#SN}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.volumes.get + tags: + - tag: component + value: raw + - uuid: a1e03e0dcf544dfdbc9863d856c877de + name: 'Volume [{#NAME}]: Bytes read per second' + type: DEPENDENT + key: 'purestorage.flasharray.volume.read_bytes.rate[{#SN}]' + delay: '0' + units: Bps + description: 'Number of bytes read from the {#NAME} volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.output_per_sec + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 0d07b61e01bf483880c31592e242dfa3 + name: 'Volume [{#NAME}]: Read requests per second' + type: DEPENDENT + key: 'purestorage.flasharray.volume.read_requests.rate[{#SN}]' + delay: '0' + description: 'Number of read requests processed on the {#NAME} volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.reads_per_sec + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 9216a5ee2b1d4e1097a088da32b8a0fe + name: 'Volume [{#NAME}]: Shared space' + type: DEPENDENT + key: 'purestorage.flasharray.volume.shared_space[{#SN}]' + delay: '0' + units: B + description: 'The physical space occupied by deduplicated data on the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.shared_space + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: cb34a64b417c4c439ea412419eac764a + name: 'Volume [{#NAME}]: Size' + type: DEPENDENT + key: 'purestorage.flasharray.volume.size[{#SN}]' + delay: '0' + units: B + description: 'The physical space occupied by the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.size + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + trigger_prototypes: + - uuid: ef1f2b670134476386c847a817ea1eb2 + expression: 'last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.volume.size[{#SN}],#1)<>last(/Pure Storage FlashArray v1 by HTTP/purestorage.flasharray.volume.size[{#SN}],#2)' + name: 'Pure Storage FlashArray: Volume [{#NAME}]: Volume size has been changed' + opdata: 'Current size: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Physical space occupied by the {#NAME} volume has been changed.' + tags: + - tag: scope + value: availability + - uuid: 61504507bf9a441e855d700cba0e30cc + name: 'Volume [{#NAME}]: Snapshots size' + type: DEPENDENT + key: 'purestorage.flasharray.volume.snapshots_size[{#SN}]' + delay: '0' + units: B + description: 'The physical space occupied by snapshots on the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.snapshots + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: fa48bfa1a9a74d548f9d366242884f34 + name: 'Volume [{#NAME}]: Thin provisioning' + type: DEPENDENT + key: 'purestorage.flasharray.volume.thin_provisioning[{#SN}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sectors in the {#NAME} volume that do not contain host-written data because the hosts have not written data to them or the sectors have been explicitly trimmed.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.thin_provisioning + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 62a73c80f73d46e8b775bcf4aba136e3 + name: 'Volume [{#NAME}]: Total data reduction' + type: DEPENDENT + key: 'purestorage.flasharray.volume.total_drr[{#SN}]' + delay: '0' + value_type: FLOAT + description: 'The total reduction ratio of all data on the {#NAME} volume that has been processed by the data deduplication and compression engines.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.total_reduction + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: ece36fe874a54139a91e03c8ddb4dace + name: 'Volume [{#NAME}]: Microseconds per read' + type: DEPENDENT + key: 'purestorage.flasharray.volume.usec_per_read[{#SN}]' + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O read request from the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.usec_per_read_op + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 8e2efef7df844077a6fa66234326af99 + name: 'Volume [{#NAME}]: Microseconds per write' + type: DEPENDENT + key: 'purestorage.flasharray.volume.usec_per_write[{#SN}]' + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O write request to the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.usec_per_write_op + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: ada1854c77a1455d89e82c4c551fe29d + name: 'Volume [{#NAME}]: Used space' + type: DEPENDENT + key: 'purestorage.flasharray.volume.used_space[{#SN}]' + delay: '0' + units: B + description: 'The total physical space occupied by all data on the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.total + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: df61b2bb9859455ab3eadee69249daf8 + name: 'Volume [{#NAME}]: Write requests per second' + type: DEPENDENT + key: 'purestorage.flasharray.volume.write_requests.rate[{#SN}]' + delay: '0' + description: 'Number of write requests processed on the {#NAME} volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.writes_per_sec + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 360462b1a04c4bd89296c2b5c1f951a9 + name: 'Volume [{#NAME}]: Bytes written per second' + type: DEPENDENT + key: 'purestorage.flasharray.volume.written_bytes.rate[{#SN}]' + delay: '0' + units: Bps + description: 'Number of bytes written to the {#NAME} volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.monitor.input_per_sec + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + graph_prototypes: + - uuid: 47f783920c744bd7889e546b90082b4a + name: 'Volume [{#NAME}]: Operation latency' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.volume.usec_per_read[{#SN}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.volume.usec_per_write[{#SN}]' + - uuid: 5584b1764e1c442687e920659995f71b + name: 'Volume [{#NAME}]: Read/write throughput' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.volume.written_bytes.rate[{#SN}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.volume.read_bytes.rate[{#SN}]' + - uuid: 9fbcdb66f14f4111a987d1328d11f8a0 + name: 'Volume [{#NAME}]: Requests per second' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.volume.read_requests.rate[{#SN}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.volume.write_requests.rate[{#SN}]' + - uuid: 26e566a88462416c8f0829d47c15128d + name: 'Volume [{#NAME}]: Space' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + yaxisside: RIGHT + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.volume.size[{#SN}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.volume.shared_space[{#SN}]' + - sortorder: '2' + color: 00611C + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.volume.used_space[{#SN}]' + - sortorder: '3' + color: F7941D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: 'purestorage.flasharray.volume.snapshots_size[{#SN}]' + master_item: + key: purestorage.flasharray.volumes.get + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#SN}' + path: $.serial + preprocessing: + - type: JSONPATH + parameters: + - $.volumes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: hardware + - tag: class + value: storage + - tag: target + value: flash-array + - tag: target + value: pure-storage + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items and JavaScript preprocessing: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Pure Storage FlashArray v1", e.g. {$HTTP.TLS.VERIFY:"Pure Storage FlashArray v1"}.' + - macro: '{$PURE.FLASHARRAY.API.PASSWORD}' + type: SECRET_TEXT + description: 'Pure Storage FlashArray Web interface password.' + - macro: '{$PURE.FLASHARRAY.API.TOKEN}' + type: SECRET_TEXT + description: 'Pure Storage FlashArray API token.' + - macro: '{$PURE.FLASHARRAY.API.URL}' + description: 'Pure Storage FlashArray Web interface URL.' + - macro: '{$PURE.FLASHARRAY.API.USERNAME}' + type: SECRET_TEXT + description: 'Pure Storage FlashArray Web interface username.' + - macro: '{$PURE.FLASHARRAY.API.VERSION}' + value: '1.19' + description: 'Pure Storage FlashArray API version.' + - macro: '{$PURE.FLASHARRAY.CERT.EXPIRY.WARN}' + value: '7' + description: 'Number of days until the certificate expires.' + - macro: '{$PURE.FLASHARRAY.CERT.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable certificates by name.' + - macro: '{$PURE.FLASHARRAY.CERT.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable certificates by name.' + - macro: '{$PURE.FLASHARRAY.CTRL.LLD.FILTER.INDEX.MATCHES}' + value: '.*' + description: 'Filter of discoverable controllers by index.' + - macro: '{$PURE.FLASHARRAY.CTRL.LLD.FILTER.INDEX.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable controllers by index.' + - macro: '{$PURE.FLASHARRAY.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for the API.' + - macro: '{$PURE.FLASHARRAY.DRIVE.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable storage drives by name.' + - macro: '{$PURE.FLASHARRAY.DRIVE.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable storage drives by name.' + - macro: '{$PURE.FLASHARRAY.FAN.LLD.FILTER.INDEX.MATCHES}' + value: '.*' + description: 'Filter of discoverable fans by index.' + - macro: '{$PURE.FLASHARRAY.FAN.LLD.FILTER.INDEX.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable fans by index.' + - macro: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.GROUP.MATCHES}' + value: '.*' + description: 'Filter of discoverable hosts by group.' + - macro: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.GROUP.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable hosts by group.' + - macro: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable hosts by name.' + - macro: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable hosts by name.' + - macro: '{$PURE.FLASHARRAY.HTTP_PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format [protocol://][username[:password]@]proxy.example.com[:port]. For more details, see the documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + - macro: '{$PURE.FLASHARRAY.NETIF.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable network interfaces by name.' + - macro: '{$PURE.FLASHARRAY.NETIF.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable network interfaces by name.' + - macro: '{$PURE.FLASHARRAY.POD.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable storage pods by name.' + - macro: '{$PURE.FLASHARRAY.POD.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable storage pods by name.' + - macro: '{$PURE.FLASHARRAY.POWER.LLD.FILTER.INDEX.MATCHES}' + value: '.*' + description: 'Filter of discoverable power supply components by index.' + - macro: '{$PURE.FLASHARRAY.POWER.LLD.FILTER.INDEX.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable power supply components by index.' + - macro: '{$PURE.FLASHARRAY.TEMP.LLD.FILTER.INDEX.MATCHES}' + value: '.*' + description: 'Filter of discoverable temperature sensors by index.' + - macro: '{$PURE.FLASHARRAY.TEMP.LLD.FILTER.INDEX.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable temperature sensors by index.' + - macro: '{$PURE.FLASHARRAY.VOLUME.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable storage volumes by name.' + - macro: '{$PURE.FLASHARRAY.VOLUME.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable storage volumes by name.' + dashboards: + - uuid: b92fba854dba4f01a0aae16baadd25ec + name: 'Pure Storage FlashArray: General' + auto_start: 'NO' + pages: + - name: Array + widgets: + - type: item + name: Hostname + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.hostname + - type: INTEGER + name: show.0 + value: '2' + - type: svggraph + name: 'Array read/write throughput' + 'y': '3' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '009688' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: STRING + name: ds.0.items.0 + value: 'Array bytes read per second' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: ds.1.color + value: FFD54F + - type: INTEGER + name: ds.1.fill + value: '0' + - type: STRING + name: ds.1.items.0 + value: 'Array bytes written per second' + - type: INTEGER + name: ds.1.width + value: '2' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: XGKYU + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Array operation latency' + 'y': '8' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '009688' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: STRING + name: ds.0.items.0 + value: 'Array microseconds per read' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: ds.1.color + value: FFD54F + - type: INTEGER + name: ds.1.fill + value: '0' + - type: STRING + name: ds.1.items.0 + value: 'Array microseconds per write' + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: ds.2.color + value: F44336 + - type: INTEGER + name: ds.2.fill + value: '0' + - type: STRING + name: ds.2.items.0 + value: 'Array microseconds per operation' + - type: INTEGER + name: ds.2.width + value: '2' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: SSNAB + - type: INTEGER + name: righty + value: '0' + - type: item + name: Version + x: '24' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.version + - type: INTEGER + name: show.0 + value: '2' + - type: svggraph + name: 'Array requests per second' + x: '36' + 'y': '3' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '009688' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: STRING + name: ds.0.items.0 + value: 'Array read requests per second' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: ds.1.color + value: FFD54F + - type: INTEGER + name: ds.1.fill + value: '0' + - type: STRING + name: ds.1.items.0 + value: 'Array write requests per second' + - type: INTEGER + name: ds.1.width + value: '2' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: NCUID + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Array space' + x: '36' + 'y': '8' + width: '36' + height: '5' + fields: + - type: INTEGER + name: ds.0.axisy + value: '1' + - type: STRING + name: ds.0.color + value: '009688' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: STRING + name: ds.0.items.0 + value: 'Array capacity' + - type: INTEGER + name: ds.0.width + value: '3' + - type: STRING + name: ds.1.color + value: FFD54F + - type: INTEGER + name: ds.1.fill + value: '0' + - type: STRING + name: ds.1.items.0 + value: 'Array shared space' + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: ds.2.color + value: F44336 + - type: INTEGER + name: ds.2.fill + value: '0' + - type: STRING + name: ds.2.items.0 + value: 'Array snapshots size' + - type: INTEGER + name: ds.2.width + value: '2' + - type: STRING + name: ds.3.color + value: 0080FF + - type: INTEGER + name: ds.3.fill + value: '0' + - type: STRING + name: ds.3.items.0 + value: 'Array volumes size' + - type: INTEGER + name: ds.3.width + value: '2' + - type: STRING + name: ds.4.color + value: 7E57C2 + - type: INTEGER + name: ds.4.fill + value: '0' + - type: STRING + name: ds.4.items.0 + value: 'Array system size' + - type: INTEGER + name: ds.4.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: SFPXY + - type: item + name: Capacity + x: '48' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.capacity + - type: INTEGER + name: show.0 + value: '2' + - name: 'Network interfaces' + widgets: + - type: honeycomb + name: 'Network interfaces' + width: '72' + height: '5' + fields: + - type: STRING + name: bg_color + value: 64B5F6 + - type: STRING + name: items.0 + value: '*Speed' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: interface + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^.+?\[(.*)\]", \1)}' + - type: STRING + name: reference + value: TZTHI + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: Speed + 'y': '5' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: '009688' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: TZTHI._itemid + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: ABHBM + - type: INTEGER + name: righty + value: '0' + - name: Drives + widgets: + - type: honeycomb + name: Drives + width: '72' + height: '5' + fields: + - type: STRING + name: bg_color + value: 64B5F6 + - type: STRING + name: items.0 + value: '*Capacity' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: drive + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^.+?\[(.*)\]", \1)}' + - type: STRING + name: reference + value: YBMRB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: Capacity + 'y': '5' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: '009688' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: YBMRB._itemid + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: IEDRA + - type: INTEGER + name: righty + value: '0' + - name: Volumes + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + name: 'Volume [{#NAME}]: Operation latency' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + name: 'Volume [{#NAME}]: Requests per second' + - type: STRING + name: reference + value: AAAAL + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + name: 'Volume [{#NAME}]: Read/write throughput' + - type: STRING + name: reference + value: AAAAK + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + name: 'Volume [{#NAME}]: Space' + - type: STRING + name: reference + value: AAAAM + - name: Hosts + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + name: 'Host [{#NAME}]: Operation latency' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + name: 'Host [{#NAME}]: Requests per second' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + name: 'Host [{#NAME}]: Read/write throughput' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v1 by HTTP' + name: 'Host [{#NAME}]: Space' + - type: STRING + name: reference + value: AAAAI + - name: Sensors + widgets: + - type: honeycomb + name: Fans + width: '72' + height: '5' + fields: + - type: STRING + name: items.0 + value: '*Status' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: fan + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^.+?\[(.*)\]", \1)}' + - type: STRING + name: reference + value: YQLGC + - type: INTEGER + name: show.0 + value: '1' + - type: STRING + name: thresholds.0.color + value: 26A69A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: E65660 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FCCB1D + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: 90A4AE + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: STRING + name: thresholds.4.color + value: 29B6F6 + - type: STRING + name: thresholds.4.threshold + value: '4' + - type: STRING + name: thresholds.5.color + value: 546E7A + - type: STRING + name: thresholds.5.threshold + value: '5' + - type: honeycomb + name: 'Temperature sensors' + 'y': '5' + width: '72' + height: '5' + fields: + - type: STRING + name: items.0 + value: '*Temperature' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: sensor + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^.+?\[(.*)\]", \1)}' + - type: STRING + name: reference + value: EOKHA + - type: INTEGER + name: secondary_label_bold + value: '0' + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: 26A69A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFCA28 + - type: STRING + name: thresholds.1.threshold + value: '50' + - type: STRING + name: thresholds.2.color + value: E65660 + - type: STRING + name: thresholds.2.threshold + value: '70' + - type: svggraph + name: 'Temperature value' + 'y': '10' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: '009688' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: EOKHA._itemid + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: FDGJA + - type: INTEGER + name: righty + value: '0' + - type: honeycomb + name: 'Power supply' + 'y': '15' + width: '72' + height: '5' + fields: + - type: STRING + name: bg_color + value: 64B5F6 + - type: STRING + name: items.0 + value: '*Voltage' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: power + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^.+?\[(.*)\]", \1)}' + - type: STRING + name: reference + value: MZNPS + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: Voltage + 'y': '20' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: '009688' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: MZNPS._itemid + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: NGVAC + - type: INTEGER + name: righty + value: '0' + valuemaps: + - uuid: df8766d094be4b5aa569a20e9fc1e552 + name: 'Certificate Type' + mappings: + - value: '0' + newvalue: self-signed + - value: '1' + newvalue: imported + - value: '2' + newvalue: other + - uuid: 0e3d616a7682487997fcf4e756bd875a + name: 'Connection Status' + mappings: + - value: '0' + newvalue: disconnected + - value: '1' + newvalue: connected + - value: '2' + newvalue: unknown + - uuid: 2f9f5ae3a2f14408b5fa8c0f82d3d5a6 + name: 'Controller Mode' + mappings: + - value: '0' + newvalue: 'not present' + - value: '1' + newvalue: offline + - value: '2' + newvalue: primary + - value: '3' + newvalue: secondary + - value: '4' + newvalue: unknown + - uuid: 05c72722f9f9460291f50d3663161716 + name: 'Controller Status' + mappings: + - value: '0' + newvalue: 'not ready' + - value: '1' + newvalue: ready + - value: '2' + newvalue: updating + - value: '3' + newvalue: unknown + - uuid: 00a977f4cb4d4962aeae7124e63f460e + name: 'Drive Status' + mappings: + - value: '0' + newvalue: healthy + - value: '1' + newvalue: empty + - value: '2' + newvalue: updating + - value: '3' + newvalue: unused + - value: '4' + newvalue: evacuating + - value: '5' + newvalue: identifying + - value: '6' + newvalue: unhealthy + - value: '7' + newvalue: recovering + - value: '8' + newvalue: unrecognized + - value: '9' + newvalue: failed + - uuid: 788e2982fbd5478da2a4f94e46031439 + name: 'Hardware Status' + mappings: + - value: '0' + newvalue: ok + - value: '1' + newvalue: critical + - value: '2' + newvalue: degraded + - value: '3' + newvalue: device_off + - value: '4' + newvalue: identifying + - value: '5' + newvalue: not_installed + - value: '6' + newvalue: unknown + - uuid: 950c9c6b81e042938ca464a84a57b662 + name: 'Pod Status' + mappings: + - value: '0' + newvalue: demoted + - value: '1' + newvalue: promoted + - value: '2' + newvalue: unknown + - uuid: fe5ac2914b2f46fbbd0516e3ee0959bc + name: 'Service Status' + mappings: + - value: '0' + newvalue: disabled + - value: '1' + newvalue: enabled + - value: '2' + newvalue: unknown + graphs: + - uuid: 8beedac73b0d4f1d99d070e833387014 + name: 'Array operation latency' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.usec_per_read + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.usec_per_write + - sortorder: '2' + color: 00611C + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.usec_per_op + - uuid: 00bd33322bd248708c836557a93fbefa + name: 'Array read/write throughput' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.written_bytes.rate + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.read_bytes.rate + - uuid: e5777cd6a0e844a8a3203114a8761eef + name: 'Array requests per second' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.read_requests.rate + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.write_requests.rate + - uuid: f7fd269311624609940f9b8c803291db + name: 'Array space' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + yaxisside: RIGHT + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.capacity + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.shared_space + - sortorder: '2' + color: 00611C + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.snapshots_size + - sortorder: '3' + color: F7941D + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.volumes_size + - sortorder: '4' + color: FC6EA3 + item: + host: 'Pure Storage FlashArray v1 by HTTP' + key: purestorage.flasharray.array.system_size diff --git a/Pure_Storage_FlashArray_v2_by_HTTP.yaml b/Pure_Storage_FlashArray_v2_by_HTTP.yaml new file mode 100644 index 0000000..c991e47 --- /dev/null +++ b/Pure_Storage_FlashArray_v2_by_HTTP.yaml @@ -0,0 +1,5069 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 7c2cb727f85b492d88cd56e17127c64d + name: Templates/SAN + templates: + - uuid: 44990575121d4798b9e10520604c786c + template: 'Pure Storage FlashArray v2 by HTTP' + name: 'Pure Storage FlashArray v2 by HTTP' + description: | + Setup: + 1. Create a host for the Pure Storage FlashArray device and assign to it the "Pure Storage FlashArray v2 by HTTP" template. + 2. Enter your API token from the Purity//FA web interface into the {$PURE.FLASHARRAY.API.TOKEN} macro. + 3. Set your Purity//FA web interface URL as the {$PURE.FLASHARRAY.API.URL} macro value. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/SAN + items: + - uuid: 84bba6c063984124925eaf8eea874ade + name: 'Critical alerts' + type: DEPENDENT + key: purestorage.flasharray.alert.critical + delay: '0' + description: 'Number of active alerts in the web interface of Pure Storage FlashArray with a severity level of Critical.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[?(@.severity == "critical")].length()' + master_item: + key: purestorage.flasharray.alert.get + tags: + - tag: component + value: alerts + triggers: + - uuid: a56746a2863b4615ab0ed53f9396533d + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.alert.critical)>0' + name: 'Pure Storage FlashArray: Critical alerts have been detected' + opdata: 'Alerts number: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Recommended to refer to the Pure Storage FlashArray web interface to check the alert details.' + tags: + - tag: scope + value: notice + - uuid: 18eac68344f94746bccdce0a070f89fa + name: 'Alerts data item errors' + type: DEPENDENT + key: purestorage.flasharray.alert.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from alert data retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.alert.get + tags: + - tag: component + value: error + triggers: + - uuid: 35cfac4bfa9a41c9bf61129d212cee27 + expression: 'length(last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.alert.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get alerts data'' metric' + priority: WARNING + description: 'An error occurred when trying to get alert data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: e4487e51d7634eb49e8af75ed6536379 + name: 'Get alerts data' + type: DEPENDENT + key: purestorage.flasharray.alert.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects alert data from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + alerts = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url) { + tls.checkURL(url); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response)['items']; + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['token'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected session token value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + request.addHeader('x-auth-token: ' + creds.token); + request.addHeader('Accept: application/json'); + + alerts = getHttpData( + url + 'api/' + version + '/alerts' + ).filter(function (item) { + if (item['state'] == 'open') { + return true; + } + return false; + }); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'alerts': alerts, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: 8d64afad1936495283b3afe15d3f7071 + name: 'Warning alerts' + type: DEPENDENT + key: purestorage.flasharray.alert.warning + delay: '0' + description: 'Number of active alerts in the web interface of Pure Storage FlashArray with a severity level of Warning.' + preprocessing: + - type: JSONPATH + parameters: + - '$..[?(@.severity == "warning")].length()' + master_item: + key: purestorage.flasharray.alert.get + tags: + - tag: component + value: alerts + triggers: + - uuid: 0f53729b5ba1413b87b40a67c930db93 + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.alert.warning)>0' + name: 'Pure Storage FlashArray: Warning alerts have been detected' + opdata: 'Alerts number: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Recommended to refer to the Pure Storage FlashArray web interface to check the alert details.' + tags: + - tag: scope + value: notice + - uuid: c29f9b470c394c49abc347efb8eea82a + name: 'Array capacity' + type: DEPENDENT + key: purestorage.flasharray.array.capacity + delay: '0' + units: B + description: 'Total capacity of the array.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.capacity + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 72ddad3de47d4fbfbce481395e1f5d26 + name: 'Array data reduction' + type: DEPENDENT + key: purestorage.flasharray.array.drr + delay: '0' + value_type: FLOAT + description: 'The data reduction ratio (DRR) represents the efficiency of data reduction techniques such as compression and deduplication for the array volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.data_reduction + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 751e355686e74d3eb7abbba1b6671c67 + name: 'Storage array item errors' + type: DEPENDENT + key: purestorage.flasharray.array.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from array data retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: error + triggers: + - uuid: 4ca738840e004d2cb4f7e5839fe87d86 + expression: 'length(last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.array.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get storage array data'' metric' + priority: WARNING + description: 'An error occurred when trying to get array data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: 2e93f80f7cdb44f29c6e4365d66ad6ca + name: 'Get array data' + type: DEPENDENT + key: purestorage.flasharray.array.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects array data from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + storage_array = {}, + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url) { + tls.checkURL(url); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response)['items']; + if (Array.isArray(response) & response.length > 0) { + response = response[0] + } + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['token'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected session token value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + request.addHeader('x-auth-token: ' + creds.token); + request.addHeader('Accept: application/json'); + + storage_array = getHttpData(url + 'api/' + version + '/arrays'); + + storage_array['performance'] = getHttpData(url + 'api/' + version + '/arrays/performance'); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'array': storage_array, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: fbba015500794db09c3c145adb583177 + name: 'Array hostname' + type: DEPENDENT + key: purestorage.flasharray.array.hostname + delay: '0' + value_type: CHAR + trends: '0' + description: 'Host name of the array.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.name + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: ec77f6ae385b4048b24b2cb0bebd8478 + name: 'Array OS' + type: DEPENDENT + key: purestorage.flasharray.array.os + delay: '0' + value_type: CHAR + trends: '0' + description: 'Operating system of the array.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.os + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: b09195afc5d944208ee3159dd66052ce + name: 'Array parity' + type: DEPENDENT + key: purestorage.flasharray.array.parity + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of data that is protected.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.parity + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 802501778aa743919a29ea4b02a154c4 + name: 'Array physical size' + type: DEPENDENT + key: purestorage.flasharray.array.physical_size + delay: '0' + units: B + description: 'The total physical space occupied by system, shared space, volume, and snapshot data.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.total_physical + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 4330d213f2734eb991e030fad372fc69 + name: 'Array bytes read per second' + type: DEPENDENT + key: purestorage.flasharray.array.read_bytes.rate + delay: '0' + units: Bps + description: 'Number of bytes read per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.performance.read_bytes_per_sec + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 2b4e83098096427398b780b57487731e + name: 'Array read requests per second' + type: DEPENDENT + key: purestorage.flasharray.array.read_requests.rate + delay: '0' + description: 'Number of read requests processed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.performance.reads_per_sec + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: da5cbeda60c74159bf8eed97073e2d95 + name: 'Array shared space' + type: DEPENDENT + key: purestorage.flasharray.array.shared_space + delay: '0' + units: B + description: 'The physical space occupied by deduplicated data.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.shared + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 480438f65c4848f88c2c5ce049843c97 + name: 'Array snapshots size' + type: DEPENDENT + key: purestorage.flasharray.array.snapshots_size + delay: '0' + units: B + description: 'The physical space occupied by snapshots.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.snapshots + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 59ba324b06694ac3980b4ece65f3b8c3 + name: 'Array system size' + type: DEPENDENT + key: purestorage.flasharray.array.system_size + delay: '0' + units: B + description: 'The physical space occupied by internal array metadata.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.system + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 03f32ba70ddd4aaf804c4c8d3020cf3d + name: 'Array thin provisioning' + type: DEPENDENT + key: purestorage.flasharray.array.thin_provisioning + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of volume sectors that do not contain host-written data because the hosts have not written data to them or the sectors have been explicitly trimmed.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.thin_provisioning + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 5c83ae6a3ff14f0fa2b470735afe7af0 + name: 'Array total data reduction' + type: DEPENDENT + key: purestorage.flasharray.array.total_drr + delay: '0' + value_type: FLOAT + description: 'The total reduction ratio of all data on the array volume that has been processed by the data deduplication and compression engines.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.total_reduction + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 0131477d29fb48eebbcaf904d85025a9 + name: 'Array microseconds per operation' + type: DEPENDENT + key: purestorage.flasharray.array.usec_per_op + delay: '0' + units: µs + description: 'Average local queue time in microseconds for both read and write operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.performance.local_queue_usec_per_op + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: a7b37f7e2d104adaa1b9234559b170de + name: 'Array microseconds per read' + type: DEPENDENT + key: purestorage.flasharray.array.usec_per_read + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O read request from the array. The average time does not include SAN time, queue time, or QoS rate limit time.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.performance.usec_per_read_op + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: ed1b118a7262443fa7f4c9bc1f8ca41e + name: 'Array microseconds per write' + type: DEPENDENT + key: purestorage.flasharray.array.usec_per_write + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O write request to the array. The average time does not include SAN time, queue time, or QoS rate limit time.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.performance.usec_per_write_op + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 7a825d5aaec141f79be52dedacd025b5 + name: 'Array used space' + type: DEPENDENT + key: purestorage.flasharray.array.used_space + delay: '0' + units: B + description: 'The total space occupied by system, shared space, volume, and snapshot data.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.space.total_used + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: a681549b875b4f56a6ecc985f1fe7752 + name: 'Array version' + type: DEPENDENT + key: purestorage.flasharray.array.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the array.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: 9affcc3786c947fa9b7a2803740415d8 + name: 'Array write requests per second' + type: DEPENDENT + key: purestorage.flasharray.array.write_requests.rate + delay: '0' + description: 'Number of write requests processed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.performance.writes_per_sec + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: a1b6902f99ee40278f30646fa5a27111 + name: 'Array bytes written per second' + type: DEPENDENT + key: purestorage.flasharray.array.written_bytes.rate + delay: '0' + units: Bps + description: 'Number of bytes written per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.array.performance.write_bytes_per_sec + master_item: + key: purestorage.flasharray.array.get + tags: + - tag: component + value: array + - uuid: bf9a63ef87674ff4a3ec07f7637435cb + name: Authentication + type: SCRIPT + key: purestorage.flasharray.auth + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var params = JSON.parse(value), + tls = new CTlsConfig(params.tls_verify), + request = new HttpRequest(tls.options), + token = '', + error_msg = ''; + + function login(url) { + tls.checkURL(url); + var token = ''; + response = request.post(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + username = JSON.parse(response).username; + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } else { + throw 'Authentication failed.'; + } + + var headers = request.getHeaders(); + for (key in headers) { + if (key.toLowerCase() == 'x-auth-token') { + token = headers[key]; + } + } + + return token; + }; + + try { + + ['url', 'token', 'version'].forEach(function (field) { + var macro = '{$PURE.FLASHARRAY.API.' + field.toUpperCase() + '}'; + if (typeof params[field] === 'undefined' || params[field] === macro) { + throw 'Please set \'' + field + '\' script input parameter to the proper ' + macro + ' macro value.'; + } + }); + ['url', 'version'].forEach(function (field) { + if (typeof params[field] == '') { + throw 'Please set \'' + field + '\' script input parameter to the proper value.'; + } + }); + + if (params.url.indexOf('http://') === -1 && params.url.indexOf('https://') === -1) { + params.url = 'https://' + params.url + (!params.url.endsWith('/') ? '/' : '');; + } + + if (typeof params.http_proxy !== 'undefined' && params.http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && params.http_proxy !== '') { + request.setProxy(params.http_proxy); + } + + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + request.addHeader('api-token: ' + params.token); + token = login( + params.url + 'api/' + params.version + '/login' + ); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'token': token, + 'error': error_msg.toString() + }); + description: | + Pure Storage FlashArray authentication with API token usage. + Returns a session token; it is required only once and is used for all dependent script items. + A session will expire after 30 minutes. Check the template documentation for the details. + timeout: '{$PURE.FLASHARRAY.DATA.TIMEOUT}' + parameters: + - name: http_proxy + value: '{$PURE.FLASHARRAY.HTTP_PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}' + - name: token + value: '{$PURE.FLASHARRAY.API.TOKEN}' + - name: url + value: '{$PURE.FLASHARRAY.API.URL}' + - name: version + value: '{$PURE.FLASHARRAY.API.VERSION}' + tags: + - tag: component + value: raw + - uuid: 9c81b77d59c54158954b57b0637962f2 + name: 'Authentication item errors' + type: DEPENDENT + key: purestorage.flasharray.auth.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from the authentication item.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: error + triggers: + - uuid: bf2b0cb907c64c01bdaf4c26daaba937 + expression: 'length(last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.auth.errors))>0' + name: 'Pure Storage FlashArray: Authentication has failed' + priority: AVERAGE + description: 'An error occurred when trying to perform authentication in the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: 496de11b01214b499de770299ff60364 + name: 'Certificates item errors' + type: DEPENDENT + key: purestorage.flasharray.certificates.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from certificate retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.certificates.get + tags: + - tag: component + value: error + triggers: + - uuid: 8f8183d63de847e28abc795e6f5ae1d0 + expression: 'length(last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.certificates.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get certificates'' metric' + priority: WARNING + description: 'An error occurred when trying to get certificate data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: 2be77186be6d416db147131c13671e50 + name: 'Get certificates' + type: DEPENDENT + key: purestorage.flasharray.certificates.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects all certificates from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + certs = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url) { + tls.checkURL(url); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response)['items']; + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['token'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected session token value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + request.addHeader('x-auth-token: ' + creds.token); + request.addHeader('Accept: application/json'); + + certs = getHttpData(url + 'api/' + version + '/certificates'); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'certs': certs, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: ea659408346a436c9f273f517d9edcc5 + name: 'Storage hardware item errors' + type: DEPENDENT + key: purestorage.flasharray.hardware.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from hardware retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: error + triggers: + - uuid: c5afee5d034d4f78abe061d5f1774745 + expression: 'length(last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.hardware.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get hardware data'' metric' + priority: WARNING + description: 'An error occurred when trying to get hardware data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: e7b56f166f234fbfae58b8dade895abd + name: 'Get hardware data' + type: DEPENDENT + key: purestorage.flasharray.hardware.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects hardware from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + drives = [], + hardware = [], + controllers = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url) { + tls.checkURL(url); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response)['items']; + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['token'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected session token value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + request.addHeader('x-auth-token: ' + creds.token); + request.addHeader('Accept: application/json'); + + drives = getHttpData(url + 'api/' + version + '/drives'); + + controllers = getHttpData(url + 'api/' + version + '/controllers'); + + getHttpData( + url + 'api/' + version + '/hardware' + ).forEach(function (item) { + var applied = false; + drives.forEach(function (drive, index) { + if (drive['name'] && item['name'] && drive['name'] == item['name']) { + drives[index]['hardware'] = item; + applied = true; + } + }); + controllers.forEach(function (ctrl, index) { + if (ctrl['name'] && item['name'] && ctrl['name'] == item['name']) { + controllers[index]['hardware'] = item; + applied = true; + } + }); + if (!applied) { + var nameArray = item['name'].split('.'); + if (nameArray.length > 1) { + item['parent'] = nameArray[0]; + } + hardware.push(item); + } + }); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'drives': drives, + 'hardware': hardware, + 'controllers': controllers, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: 7b6cc9ef29bc46cd80d2cac92f1ebe0f + name: 'Storage hosts item errors' + type: DEPENDENT + key: purestorage.flasharray.hosts.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from host data retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.hosts.get + tags: + - tag: component + value: error + triggers: + - uuid: 6263e31c79bd4c348e5f5474e142f425 + expression: 'length(last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.hosts.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get hosts'' metric' + priority: WARNING + description: 'An error occurred when trying to get host data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: 1ab5da19e46642fd95e38713d54b446e + name: 'Get hosts' + type: DEPENDENT + key: purestorage.flasharray.hosts.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects all hosts from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + hosts = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url) { + tls.checkURL(url); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response)['items']; + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['token'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected session token value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + request.addHeader('x-auth-token: ' + creds.token); + request.addHeader('Accept: application/json'); + + hosts = getHttpData(url + 'api/' + version + '/hosts'); + + getHttpData( + url + 'api/' + version + '/hosts/performance' + ).forEach(function (item) { + hosts.forEach(function (host, index) { + if (host['name'] && item['name'] && host['name'] == item['name']) { + hosts[index]['performance'] = item; + } + }); + }); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'hosts': hosts, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: 48cbf0770c82449796bb648c0b1b9a72 + name: 'Storage network interfaces item errors' + type: DEPENDENT + key: purestorage.flasharray.net_ifs.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from network interface retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.net_ifs.get + tags: + - tag: component + value: error + triggers: + - uuid: 25743805dce04ccfa21f4714cb96ec31 + expression: 'length(last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.net_ifs.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get network interfaces'' metric' + priority: WARNING + description: 'An error occurred when trying to get network interface data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: d4b5f78ac0a24fe3ae06a4d1e46cc613 + name: 'Get network interfaces' + type: DEPENDENT + key: purestorage.flasharray.net_ifs.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects all network interfaces from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + interfaces = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url) { + tls.checkURL(url); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response)['items']; + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['token'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected session token value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + request.addHeader('x-auth-token: ' + creds.token); + request.addHeader('Accept: application/json'); + + interfaces = getHttpData(url + 'api/' + version + '/network-interfaces'); + + getHttpData( + url + 'api/' + version + '/network-interfaces/performance' + ).forEach(function (item) { + interfaces.forEach(function (netif, index) { + if (netif['name'] && item['name'] && netif['name'] == item['name']) { + interfaces[index]['performance'] = item['eth']; + } + }); + }); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'interfaces': interfaces, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: 3dfa393c4e704ed68322366ea80f09fa + name: 'Phone home status' + type: DEPENDENT + key: purestorage.flasharray.phone_home.status + delay: '0' + trends: '0' + description: 'Current status of a manually-initiated phone home.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - $.support.phonehome_enabled + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: purestorage.flasharray.support.get + tags: + - tag: component + value: support + triggers: + - uuid: 9f233a1e8a96439c8e82b93e44d24219 + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.phone_home.status)=0' + name: 'Pure Storage FlashArray: Phone Home has been disabled' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Phone Home connects to the Pure1 service and uploads logs for continuous health monitoring.' + tags: + - tag: scope + value: availability + - uuid: 0cb3c68298984cffb61595a8b8a949cb + name: 'Storage pods item errors' + type: DEPENDENT + key: purestorage.flasharray.pods.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from pod retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.pods.get + tags: + - tag: component + value: error + triggers: + - uuid: d0c9b57785a84604893b92e0bed0c7ec + expression: 'length(last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.pods.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get pods'' metric' + priority: WARNING + description: 'An error occurred when trying to get pod data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: c45d966070b840e69bf07b6946f3404c + name: 'Get pods' + type: DEPENDENT + key: purestorage.flasharray.pods.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects all pods from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + pods = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url) { + tls.checkURL(url); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response)['items']; + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['token'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected session token value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + request.addHeader('x-auth-token: ' + creds.token); + request.addHeader('Accept: application/json'); + + pods = getHttpData(url + 'api/' + version + '/pods'); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'pods': pods, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: a424b8b37edd4deb8bf745f78e00e2a9 + name: 'Remote assist status' + type: DEPENDENT + key: purestorage.flasharray.remote_assist.status + delay: '0' + trends: '0' + description: 'Status of the remote assist connection.' + valuemap: + name: Boolean + preprocessing: + - type: JSONPATH + parameters: + - $.support.remote_assist_active + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: purestorage.flasharray.support.get + tags: + - tag: component + value: support + triggers: + - uuid: 8991c7d3ca95466da03f4ac44fccb872 + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.remote_assist.status)=1' + name: 'Pure Storage FlashArray: RemoteAssist has been enabled' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Purity''s administrator-controlled RemoteAssist feature enables a Technical Support Engineer to communicate directly with the FlashArray via a secure link, effectively establishing an additional administrative session for the duration of the diagnosis and service.' + tags: + - tag: scope + value: security + - uuid: ef6ac77724b54851b0a9316ab3ef8209 + name: 'Support information item errors' + type: DEPENDENT + key: purestorage.flasharray.support.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from support information retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.support.get + tags: + - tag: component + value: error + triggers: + - uuid: 7bd0f901efc14b43b11809e82b6c2324 + expression: 'length(last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.support.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get support information'' metric' + priority: WARNING + description: 'An error occurred when trying to get support information from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: 644edca046a14dd283713e37ef7d3431 + name: 'Get support information' + type: DEPENDENT + key: purestorage.flasharray.support.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects support information from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + support_data = {}, + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url) { + tls.checkURL(url); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response)['items']; + if (Array.isArray(response) & response.length > 0) { + response = response[0] + } + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['token'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected session token value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + request.addHeader('x-auth-token: ' + creds.token); + request.addHeader('Accept: application/json'); + + support_data = getHttpData(url + 'api/' + version + '/support'); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'support': support_data, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + - uuid: 8a7e90cd071247f78cf017769138d811 + name: 'Storage volumes item errors' + type: DEPENDENT + key: purestorage.flasharray.volumes.errors + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Collects errors from volume retrieval.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: purestorage.flasharray.volumes.get + tags: + - tag: component + value: error + triggers: + - uuid: 86ba540265d04be4bd86103b2d67f65e + expression: 'length(last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.volumes.errors))>0' + name: 'Pure Storage FlashArray: There are errors in the ''Get volumes'' metric' + priority: WARNING + description: 'An error occurred when trying to get volume data from the Pure Storage FlashArray API.' + tags: + - tag: scope + value: availability + - uuid: 0e074762c4ad4cf3978b2bbc38a60d4a + name: 'Get volumes' + type: DEPENDENT + key: purestorage.flasharray.volumes.get + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects all volumes from the Pure Storage FlashArray API.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + try { + var creds = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse authentication data from input value.'; + } + + var tls = new CTlsConfig('{{$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}.regsub("^(none|peer|full)$", "\1")}'), + request = new HttpRequest(tls.options), + volumes = [], + error_msg = '', + url = '{$PURE.FLASHARRAY.API.URL}', + version = '{$PURE.FLASHARRAY.API.VERSION}', + http_proxy = '{$PURE.FLASHARRAY.HTTP_PROXY}'; + + function getHttpData(url) { + tls.checkURL(url); + response = request.get(url); + Zabbix.log(4, '[ Pure Storage API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200) { + throw 'Failed to receive data: invalid response status code.'; + } + + if (response !== null) { + try { + response = JSON.parse(response)['items']; + } + catch (error) { + throw 'Failed to parse response received from Pure Storage API. Check debug log for more information.'; + } + } + + if (typeof response !== 'object' || response === null) { + throw 'Cannot process response data: received data is not an object.'; + } + + return response; + }; + + try { + + ['token'].forEach(function (field) { + if (creds[field] === null || creds[field] == '' || typeof creds[field] === 'undefined') { + throw 'Unexpected session token value has been received' + + ((typeof creds.error !== 'undefined' && creds.error != '') ? ': ' + creds.error : ''); + } + }); + + if (url === '{' + '$PURE.FLASHARRAY.API.URL}') { + throw 'Please change {' + '$PURE.FLASHARRAY.API.URL} macro to the proper value.'; + } + + if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1) { + url = 'https://' + url + (!url.endsWith('/') ? '/' : ''); + } + + if (http_proxy !== '{' + '$PURE.FLASHARRAY.HTTP_PROXY}' && http_proxy !== '') { + request.setProxy(http_proxy); + } + + request.addHeader('x-auth-token: ' + creds.token); + request.addHeader('Accept: application/json'); + + volumes = getHttpData(url + 'api/' + version + '/volumes'); + + getHttpData( + url + 'api/' + version + '/volumes/performance' + ).forEach(function (item) { + volumes.forEach(function (volume, index) { + if (volume['name'] && item['name'] && volume['name'] == item['name']) { + volumes[index]['performance'] = item; + } + }); + }); + + } catch (err) { + error_msg = err; + }; + + return JSON.stringify({ + 'volumes': volumes, + 'error': error_msg.toString() + }); + master_item: + key: purestorage.flasharray.auth + tags: + - tag: component + value: raw + discovery_rules: + - uuid: a277352827a8409888e29dcc3681fcf1 + name: 'Certificate discovery' + type: DEPENDENT + key: purestorage.flasharray.cert.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.CERT.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.CERT.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of certificates from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 05f7ad146f2e49c986dac2e53f334dcc + name: 'Certificate [{#NAME}]: Common name' + type: DEPENDENT + key: 'purestorage.flasharray.cert.cn[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The common name field listed in the {#NAME} certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.common_name + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.cert.get[{#NAME}]' + tags: + - tag: component + value: certificate + - tag: type + value: '{#TYPE}' + - uuid: a0cc18565bd84d7ea0af61d655642d67 + name: 'Certificate [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.cert.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} certificate.' + preprocessing: + - type: JSONPATH + parameters: + - '$.certs[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.certificates.get + tags: + - tag: component + value: raw + - tag: type + value: '{#TYPE}' + - uuid: 1094b7082f2a4a09911efe89f179ac72 + name: 'Certificate [{#NAME}]: Issued by' + type: DEPENDENT + key: 'purestorage.flasharray.cert.issued_by[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the authority or organization that issued the {#NAME} certificate, typically including information such as the name of the Certificate Authority (CA) and its digital signature.' + preprocessing: + - type: JSONPATH + parameters: + - $.issued_by + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.cert.get[{#NAME}]' + tags: + - tag: component + value: certificate + - tag: type + value: '{#TYPE}' + - uuid: bed40f78214b4e33b285a863504a7685 + name: 'Certificate [{#NAME}]: Issued to' + type: DEPENDENT + key: 'purestorage.flasharray.cert.issued_to[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the entity which holds the {#NAME} certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.issued_to + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.cert.get[{#NAME}]' + tags: + - tag: component + value: certificate + - tag: type + value: '{#TYPE}' + - uuid: b9ed0b415de84ca6876814c64cac3b01 + name: 'Certificate [{#NAME}]: Valid from' + type: DEPENDENT + key: 'purestorage.flasharray.cert.valid_from[{#NAME}]' + delay: '0' + units: unixtime + description: 'Indicates the date and time when the {#NAME} certificate takes effect.' + preprocessing: + - type: JSONPATH + parameters: + - $.valid_from + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'purestorage.flasharray.cert.get[{#NAME}]' + tags: + - tag: component + value: certificate + - tag: type + value: '{#TYPE}' + - uuid: 628acb8886f24ef8b016ab0b86e780ed + name: 'Certificate [{#NAME}]: Valid to' + type: DEPENDENT + key: 'purestorage.flasharray.cert.valid_to[{#NAME}]' + delay: '0' + units: unixtime + description: 'Indicates the expiration date and time of the {#NAME} certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.valid_to + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'purestorage.flasharray.cert.get[{#NAME}]' + tags: + - tag: component + value: certificate + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: 85724fcc67f84a9a9634ac052e58062e + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.cert.valid_to[{#NAME}]) > 0 and (last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.cert.valid_to[{#NAME}]) - now()) / 86400 < {$PURE.FLASHARRAY.CERT.EXPIRY.WARN}' + name: 'Pure Storage FlashArray: Certificate [{#NAME}]: SSL certificate expires soon' + event_name: 'Pure Storage FlashArray: Certificate [{#NAME}]: SSL certificate expires soon (less than {$PURE.FLASHARRAY.CERT.EXPIRY.WARN} days)' + opdata: 'Expiration date: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Consider reissuing and replacing the {#NAME} certificate.' + tags: + - tag: scope + value: notice + master_item: + key: purestorage.flasharray.certificates.get + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.status + preprocessing: + - type: JSONPATH + parameters: + - $.certs + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 10b6db10a6aa491c805bf404bb50e890 + name: 'Controller discovery' + type: DEPENDENT + key: purestorage.flasharray.ctrl.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.CTRL.LLD.FILTER.INDEX.MATCHES}' + formulaid: A + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.CTRL.LLD.FILTER.INDEX.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TYPE}' + value: ^array_controller$ + formulaid: C + description: 'Discovery of controllers from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 4689b7a160c6440aa2b8dc8be57e2552 + name: 'Controller [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} controller.' + preprocessing: + - type: JSONPATH + parameters: + - '$.controllers[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: raw + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: e60eb4842e8642e2ba64604ae762ffdd + name: 'Controller [{#NAME}]: Model' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.model[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Model of the {#NAME} controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: fd1b9afb97854beca2505e47e7fe8eda + name: 'Controller [{#NAME}]: Mode' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.mode[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current mode of the {#NAME} controller.' + valuemap: + name: 'Controller Mode' + preprocessing: + - type: JSONPATH + parameters: + - $.mode + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'not present', + 'offline', + 'primary', + 'secondary', + ].indexOf(value); + return idx !== -1 ? idx : 4; + master_item: + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: 2c47ef8f79394ffdb0927de83b46d35d + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.ctrl.mode[{#NAME}],#1)<>last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.ctrl.mode[{#NAME}],#2)' + name: 'Pure Storage FlashArray: Controller [{#NAME}]: Mode has been changed' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The mode of the {#NAME} controller has changed.' + tags: + - tag: scope + value: health + - uuid: c6f73ffb3b1d4cf1836d1428897b47d7 + name: 'Controller [{#NAME}]: Serial number' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.serial[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Serial number of the {#NAME} controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.hardware.serial + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: 05db5a7c7bd5451caca3d039122d6464 + name: 'Controller [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current status of the {#NAME} controller.' + valuemap: + name: 'Controller Status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'not ready', + 'ready', + 'updating', + ].indexOf(value); + return idx !== -1 ? idx : 3; + master_item: + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: 42a734f18ddb415d9417beeef8526d1d + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.ctrl.status[{#NAME}])<>1 and last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.ctrl.status[{#NAME}])<>2' + name: 'Pure Storage FlashArray: Controller [{#NAME}]: Controller is not ready' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Controller {#NAME} status is not "ready" or "updating".' + tags: + - tag: scope + value: health + - uuid: a61f7b45f4874f9e84287d88fadd1c64 + name: 'Controller [{#NAME}]: Version' + type: DEPENDENT + key: 'purestorage.flasharray.ctrl.version[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the {#NAME} controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'purestorage.flasharray.ctrl.get[{#NAME}]' + tags: + - tag: component + value: controller + - tag: controller + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + master_item: + key: purestorage.flasharray.hardware.get + lld_macro_paths: + - lld_macro: '{#INDEX}' + path: $.hardware.index + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.controllers + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 08358b801db24ef8ab89bc14fed65ee1 + name: 'Drive discovery' + type: DEPENDENT + key: purestorage.flasharray.drive.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.DRIVE.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.DRIVE.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#PROTOCOL}' + value: ^null$ + operator: NOT_MATCHES_REGEX + formulaid: C + - macro: '{#TYPE}' + value: ^-$ + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of storage drives from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 00c66aeeacba4d0599986597734d8142 + name: 'Drive [{#NAME}]: Capacity' + type: DEPENDENT + key: 'purestorage.flasharray.drive.capacity[{#NAME}]' + delay: '0' + units: B + description: 'The capacity of the {#NAME} drive.' + preprocessing: + - type: JSONPATH + parameters: + - $.capacity + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.drive.get[{#NAME}]' + tags: + - tag: component + value: drive + - tag: drive + value: '{#TYPE}' + - tag: protocol + value: '{#PROTOCOL}' + - uuid: 5857cfccc486417ab32f000f0bd68a65 + name: 'Drive [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.drive.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} drive.' + preprocessing: + - type: JSONPATH + parameters: + - '$.drives[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: raw + - tag: drive + value: '{#TYPE}' + - tag: protocol + value: '{#PROTOCOL}' + - uuid: a374a674bf8143b5b55b518765325755 + name: 'Drive [{#NAME}]: Serial number' + type: DEPENDENT + key: 'purestorage.flasharray.drive.serial[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Serial number of the {#NAME} drive device.' + preprocessing: + - type: JSONPATH + parameters: + - $.hardware.serial + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.drive.get[{#NAME}]' + tags: + - tag: component + value: drive + - tag: drive + value: '{#TYPE}' + - tag: protocol + value: '{#PROTOCOL}' + - uuid: 6681fcb1153d41bd9868b8191c3b8c27 + name: 'Drive [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.drive.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current status of the {#NAME} drive.' + valuemap: + name: 'Drive Status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'healthy', + 'empty', + 'updating', + 'unused', + 'evacuating', + 'identifying', + 'unhealthy', + 'recovering', + 'unrecognized', + 'failed' + ].indexOf(value); + return idx !== -1 ? idx : 10; + master_item: + key: 'purestorage.flasharray.drive.get[{#NAME}]' + tags: + - tag: component + value: drive + - tag: drive + value: '{#TYPE}' + - tag: protocol + value: '{#PROTOCOL}' + trigger_prototypes: + - uuid: f635d481852d4c5e8ba12e7091048f11 + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.drive.status[{#NAME}])<>0 and last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.drive.status[{#NAME}])<>2 and last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.drive.status[{#NAME}])<>3' + name: 'Pure Storage FlashArray: Drive [{#NAME}]: Problem on the drive' + event_name: 'Pure Storage FlashArray: Drive [{#NAME}]: Drive is not healthy or is not ready for use' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Drive {#NAME} status is not "healthy", "updating", or "unused".' + tags: + - tag: scope + value: health + graph_prototypes: + - uuid: 9ebe1a25885a4cc2a09ce54e512bf9df + name: 'Drive [{#NAME}]: Capacity' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.drive.capacity[{#NAME}]' + master_item: + key: purestorage.flasharray.hardware.get + lld_macro_paths: + - lld_macro: '{#INDEX}' + path: $.hardware.index + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#PROTOCOL}' + path: $.protocol + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.drives + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: f712c0d8bfa84a4291db06c04d8d4232 + name: 'Fan discovery' + type: DEPENDENT + key: purestorage.flasharray.fan.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.FAN.LLD.FILTER.INDEX.MATCHES}' + formulaid: A + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.FAN.LLD.FILTER.INDEX.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TYPE}' + value: ^cooling$ + formulaid: C + description: 'Discovery of fans from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 132c553838074d6680daa792453508b6 + name: 'Fan [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.fan.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} fan.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardware[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: raw + - tag: controller + value: '{#CTRL}' + - uuid: a4cf2e954a7d481a8fca45ac6c9798c9 + name: 'Fan [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.fan.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current status of the {#NAME} fan.' + valuemap: + name: 'Hardware Status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'ok', + 'critical', + 'degraded', + 'device_off', + 'identifying', + 'not_installed', + ].indexOf(value); + return idx !== -1 ? idx : 6; + master_item: + key: 'purestorage.flasharray.fan.get[{#NAME}]' + tags: + - tag: component + value: fan + - tag: controller + value: '{#CTRL}' + trigger_prototypes: + - uuid: 04a080d1563f4b50972fcb8f3bf92d66 + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.fan.status[{#NAME}])<>0' + name: 'Pure Storage FlashArray: Fan [{#NAME}]: Fan is not healthy' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Fan {#NAME} status is not "ok".' + tags: + - tag: scope + value: health + master_item: + key: purestorage.flasharray.hardware.get + lld_macro_paths: + - lld_macro: '{#CTRL}' + path: $.parent + - lld_macro: '{#INDEX}' + path: $.index + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.hardware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 350738d6dba64532a7b811efb1e14114 + name: 'Host discovery' + type: DEPENDENT + key: purestorage.flasharray.host.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#GROUP}' + value: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.GROUP.MATCHES}' + formulaid: A + - macro: '{#GROUP}' + value: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.GROUP.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.NAME.MATCHES}' + formulaid: C + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of storage hosts from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: fb4db194933641339a733194b5e1f155 + name: 'Host [{#NAME}]: Data reduction' + type: DEPENDENT + key: 'purestorage.flasharray.host.drr[{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The data reduction ratio (DRR) represents the efficiency of data reduction techniques such as compression and deduplication for the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.data_reduction + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: f3411ac68df2450a9161ae19ed53fa74 + name: 'Host [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.host.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} host.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hosts[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hosts.get + tags: + - tag: component + value: raw + - uuid: 392ba789536a49da97fa75a5773d2998 + name: 'Host [{#NAME}]: Bytes read per second' + type: DEPENDENT + key: 'purestorage.flasharray.host.read_bytes.rate[{#NAME}]' + delay: '0' + units: Bps + description: 'Number of bytes read from the {#NAME} host volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.read_bytes_per_sec + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: a6fa85593cf3461787391586023bf25d + name: 'Host [{#NAME}]: Read requests per second' + type: DEPENDENT + key: 'purestorage.flasharray.host.read_requests.rate[{#NAME}]' + delay: '0' + description: 'Number of read requests processed on the {#NAME} host volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.reads_per_sec + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 483e877a15e544cb934e3f9fa83a730e + name: 'Host [{#NAME}]: Total space provisioned' + type: DEPENDENT + key: 'purestorage.flasharray.host.size[{#NAME}]' + delay: '0' + units: B + description: 'The total provisioned space on the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.total_provisioned + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 81148bd701a2428b89ab01bd1cf2df5d + name: 'Host [{#NAME}]: Snapshots size' + type: DEPENDENT + key: 'purestorage.flasharray.host.snapshots_size[{#NAME}]' + delay: '0' + units: B + description: 'The physical space occupied by snapshots on the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.snapshots + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 6a02fe11f65a4e518213619a943862a2 + name: 'Host [{#NAME}]: Thin provisioning' + type: DEPENDENT + key: 'purestorage.flasharray.host.thin_provisioning[{#NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sectors in the {#NAME} host volume that do not contain host-written data because the hosts have not written data to them or the sectors have been explicitly trimmed.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.thin_provisioning + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: c93b4fae2b8944648cba49bddc19a90b + name: 'Host [{#NAME}]: Total data reduction' + type: DEPENDENT + key: 'purestorage.flasharray.host.total_drr[{#NAME}]' + delay: '0' + value_type: FLOAT + description: 'The total reduction ratio of all data on the {#NAME} host volume that has been processed by the data deduplication and compression engines.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.total_reduction + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: a801a47f6c024b149f9a7ec6219f0bb7 + name: 'Host [{#NAME}]: Microseconds per read' + type: DEPENDENT + key: 'purestorage.flasharray.host.usec_per_read[{#NAME}]' + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O read request from the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.usec_per_read_op + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 087a2758e25349b38e2fb6bed5754ec1 + name: 'Host [{#NAME}]: Microseconds per write' + type: DEPENDENT + key: 'purestorage.flasharray.host.usec_per_write[{#NAME}]' + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O write request to the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.usec_per_write_op + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 4d7cfbf60b374265aa5434af2292faf3 + name: 'Host [{#NAME}]: Used space provisioned' + type: DEPENDENT + key: 'purestorage.flasharray.host.used_provisioned[{#NAME}]' + delay: '0' + units: B + description: 'The provisioned space occupied on the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.used_provisioned + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: 1a03696ee45a42e8a47ae0dc93c5ef0c + name: 'Host [{#NAME}]: Used space' + type: DEPENDENT + key: 'purestorage.flasharray.host.used_space[{#NAME}]' + delay: '0' + units: B + description: 'The total physical space occupied by all data on the {#NAME} host volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.total_used + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: f49de03d39eb48968476a49f50aafd98 + name: 'Host [{#NAME}]: Write requests per second' + type: DEPENDENT + key: 'purestorage.flasharray.host.write_requests.rate[{#NAME}]' + delay: '0' + description: 'Number of write requests processed on the {#NAME} host volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.writes_per_sec + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + - uuid: a7d478d4eda84ed68a647f0dfe457133 + name: 'Host [{#NAME}]: Bytes written per second' + type: DEPENDENT + key: 'purestorage.flasharray.host.written_bytes.rate[{#NAME}]' + delay: '0' + units: Bps + description: 'Number of bytes written to the {#NAME} host volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.write_bytes_per_sec + master_item: + key: 'purestorage.flasharray.host.get[{#NAME}]' + tags: + - tag: component + value: host + - tag: host + value: '{#NAME}' + - tag: host_group + value: '{#GROUP}' + graph_prototypes: + - uuid: b6946844871941cfa2b29bb12ef27d7c + name: 'Host [{#NAME}]: Operation latency' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.host.usec_per_read[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.host.usec_per_write[{#NAME}]' + - uuid: 38aeb1f11b234829be5bc07572f52c9f + name: 'Host [{#NAME}]: Read/write throughput' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.host.written_bytes.rate[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.host.read_bytes.rate[{#NAME}]' + - uuid: 9ad04f712e1d4020bc217845142fef43 + name: 'Host [{#NAME}]: Requests per second' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.host.read_requests.rate[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.host.write_requests.rate[{#NAME}]' + - uuid: f032b259f4e6471fa8381cdd8b7ba0d7 + name: 'Host [{#NAME}]: Space' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + yaxisside: RIGHT + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.host.size[{#NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.host.used_space[{#NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.host.snapshots_size[{#NAME}]' + master_item: + key: purestorage.flasharray.hosts.get + lld_macro_paths: + - lld_macro: '{#GROUP}' + path: $.host_group.name + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.hosts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 3876122f047c4299a08cc7b259c20245 + name: 'Network interface discovery' + type: DEPENDENT + key: purestorage.flasharray.net_if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFNAME}' + value: '{$PURE.FLASHARRAY.NETIF.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#IFNAME}' + value: '{$PURE.FLASHARRAY.NETIF.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFSTATUS}' + value: ^true$ + formulaid: C + description: 'Discovery of storage hosts from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: ecda1262ed1d416a9a1b4f861aa2891b + name: 'Interface [{#IFNAME}]: Gateway' + type: DEPENDENT + key: 'purestorage.flasharray.net_if.gateway[{#IFNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Represents the IP address of the gateway for the {#IFNAME} interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.eth.gateway + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.net_if.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - tag: type + value: '{#IFTYPE}' + - uuid: 81113ca1f6f34e51b8e1565f0e791e80 + name: 'Interface [{#IFNAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.net_if.get[{#IFNAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#IFNAME} network interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$.interfaces[?(@.name == "{#IFNAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.net_ifs.get + tags: + - tag: component + value: raw + - tag: interface + value: '{#IFNAME}' + - tag: type + value: '{#IFTYPE}' + - uuid: af414daaa51f426d975e609b93980f23 + name: 'Interface [{#IFNAME}]: IP address' + type: DEPENDENT + key: 'purestorage.flasharray.net_if.ip[{#IFNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Represents the IP address of the {#IFNAME} interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.eth.address + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.net_if.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - tag: type + value: '{#IFTYPE}' + - uuid: 952d14c340c64e518f663508195e26fd + name: 'Interface [{#IFNAME}]: MAC address' + type: DEPENDENT + key: 'purestorage.flasharray.net_if.mac[{#IFNAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Represents the MAC address of the {#IFNAME} interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.eth.mac_address + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.net_if.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - tag: type + value: '{#IFTYPE}' + - uuid: 6537197c7d384ea59515fb5c7b50ffca + name: 'Interface [{#IFNAME}]: Speed' + type: DEPENDENT + key: 'purestorage.flasharray.net_if.speed[{#IFNAME}]' + delay: '0' + units: Bps + description: 'Current bandwidth of the interface.' + preprocessing: + - type: JSONPATH + parameters: + - $.speed + master_item: + key: 'purestorage.flasharray.net_if.get[{#IFNAME}]' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFNAME}' + - tag: type + value: '{#IFTYPE}' + trigger_prototypes: + - uuid: 88475f72064649679937d01421dabb1d + expression: 'change(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.net_if.speed[{#IFNAME}])<0 and last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.net_if.speed[{#IFNAME}])>0' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: '(change(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.net_if.speed[{#IFNAME}])>0 and last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.net_if.speed[{#IFNAME}],#2)>0)' + name: 'Pure Storage FlashArray: Interface [{#IFNAME}]: Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 803097c68d004c5c8f66bb32688239aa + name: 'Interface [{#IFNAME}]: Speed' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.net_if.speed[{#IFNAME}]' + master_item: + key: purestorage.flasharray.net_ifs.get + lld_macro_paths: + - lld_macro: '{#IFNAME}' + path: $.name + - lld_macro: '{#IFSTATUS}' + path: $.enabled + - lld_macro: '{#IFTYPE}' + path: $.interface_type + preprocessing: + - type: JSONPATH + parameters: + - $.interfaces + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 5cde7579e8514748bddfeb1f662e0012 + name: 'Pod discovery' + type: DEPENDENT + key: purestorage.flasharray.pod.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.POD.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.POD.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of storage pods from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: c5ba49fc925144b18696a91b21b731eb + name: 'Pod [{#NAME}]: Number of arrays' + type: DEPENDENT + key: 'purestorage.flasharray.pod.arrays[{#NAME}]' + delay: '0' + description: 'Number of arrays connected to the {#NAME} pod.' + preprocessing: + - type: JSONPATH + parameters: + - $.array_count + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'purestorage.flasharray.pod.get[{#NAME}]' + tags: + - tag: component + value: pod + - tag: pod + value: '{#NAME}' + - uuid: f22437a516bb4598aa2524318213ed46 + name: 'Pod [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.pod.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} pod.' + preprocessing: + - type: JSONPATH + parameters: + - '$.pods[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.pods.get + tags: + - tag: component + value: raw + - tag: pod + value: '{#NAME}' + - uuid: 3aa31165ce734f14b2e9c66eaf908262 + name: 'Pod [{#NAME}]: Quota' + type: DEPENDENT + key: 'purestorage.flasharray.pod.quota[{#NAME}]' + delay: '0' + units: B + description: 'The quota limit of the {#NAME} pod.' + preprocessing: + - type: JSONPATH + parameters: + - $.quota_limit + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.pod.get[{#NAME}]' + tags: + - tag: component + value: pod + - tag: pod + value: '{#NAME}' + - uuid: 2e8b1130f2814fda958e2793a25493b4 + name: 'Pod [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.pod.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current promotion status of the {#NAME} pod.' + valuemap: + name: 'Pod Status' + preprocessing: + - type: JSONPATH + parameters: + - $.promotion_status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'demoted', + 'promoted' + ].indexOf(value); + return idx !== -1 ? idx : 2; + master_item: + key: 'purestorage.flasharray.pod.get[{#NAME}]' + tags: + - tag: component + value: pod + - tag: pod + value: '{#NAME}' + graph_prototypes: + - uuid: 10ce99eab47a425dbf4ffd7a11dec3a0 + name: 'Pod [{#NAME}]: Quota' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.pod.quota[{#NAME}]' + master_item: + key: purestorage.flasharray.pods.get + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.pods + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: 9ad76b9853f940c6890745f2a0091ad0 + name: 'Power supply discovery' + type: DEPENDENT + key: purestorage.flasharray.power.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.POWER.LLD.FILTER.INDEX.MATCHES}' + formulaid: A + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.POWER.LLD.FILTER.INDEX.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TYPE}' + value: ^power_supply$ + formulaid: C + description: 'Discovery of power supply components from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 6e10b14864134657985453c78d07751d + name: 'Power supply [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.power.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} power supply component.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardware[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: raw + - uuid: 0916fbffa25c4a3290bcf3f19eb1a42c + name: 'Power supply [{#NAME}]: Model' + type: DEPENDENT + key: 'purestorage.flasharray.power.model[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Model of the {#NAME} power supply component.' + preprocessing: + - type: JSONPATH + parameters: + - $.model + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'purestorage.flasharray.power.get[{#NAME}]' + tags: + - tag: component + value: power + - uuid: 6d720dd96a014705a7f34fb595ccdece + name: 'Power supply [{#NAME}]: Serial number' + type: DEPENDENT + key: 'purestorage.flasharray.power.serial[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Serial number of the {#NAME} power supply component.' + preprocessing: + - type: JSONPATH + parameters: + - $.serial + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'purestorage.flasharray.power.get[{#NAME}]' + tags: + - tag: component + value: power + - uuid: a6364f40204545c1aeb9591b032632b5 + name: 'Power supply [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.power.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current status of the {#NAME} power supply component.' + valuemap: + name: 'Hardware Status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'ok', + 'critical', + 'degraded', + 'device_off', + 'identifying', + 'not_installed', + ].indexOf(value); + return idx !== -1 ? idx : 6; + master_item: + key: 'purestorage.flasharray.power.get[{#NAME}]' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: 9288ebad9d474acdb26897ff197a5776 + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.power.status[{#NAME}])<>0' + name: 'Pure Storage FlashArray: Power supply [{#NAME}]: Power supply is not healthy' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Power supply component {#NAME} status is not "ok".' + tags: + - tag: scope + value: health + - uuid: 4fc0212332e44824b15627e436eaba15 + name: 'Power supply [{#NAME}]: Voltage' + type: DEPENDENT + key: 'purestorage.flasharray.power.value[{#NAME}]' + delay: '0' + units: V + description: 'The current voltage value of the {#NAME} power supply component.' + preprocessing: + - type: JSONPATH + parameters: + - $.voltage + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'purestorage.flasharray.power.get[{#NAME}]' + tags: + - tag: component + value: power + graph_prototypes: + - uuid: e1610483759a41cea3b9c4adf3474399 + name: 'Power supply [{#NAME}]: Voltage' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.power.value[{#NAME}]' + master_item: + key: purestorage.flasharray.hardware.get + lld_macro_paths: + - lld_macro: '{#INDEX}' + path: $.index + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + - lld_macro: '{#VOLT.VALUE}' + path: $.voltage + preprocessing: + - type: JSONPATH + parameters: + - $.hardware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + - uuid: d5378b0c37c446cdba79238ce8703044 + name: 'Temperature sensor discovery' + type: DEPENDENT + key: purestorage.flasharray.temp.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.TEMP.LLD.FILTER.INDEX.MATCHES}' + formulaid: A + - macro: '{#INDEX}' + value: '{$PURE.FLASHARRAY.TEMP.LLD.FILTER.INDEX.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TYPE}' + value: ^temp_sensor$ + formulaid: C + description: 'Discovery of temperature sensors from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: 030868b143d94729bc3e696cd40c8009 + name: 'Sensor [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.temp.get[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} temperature sensor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardware[?(@.name == "{#NAME}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.hardware.get + tags: + - tag: component + value: raw + - uuid: 1b57e227c3c64306903c23b989b0f844 + name: 'Sensor [{#NAME}]: Status' + type: DEPENDENT + key: 'purestorage.flasharray.temp.status[{#NAME}]' + delay: '0' + trends: '0' + description: 'The current status of the {#NAME} temperature sensor.' + valuemap: + name: 'Hardware Status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'ok', + 'critical', + 'degraded', + 'device_off', + 'identifying', + 'not_installed', + ].indexOf(value); + return idx !== -1 ? idx : 6; + master_item: + key: 'purestorage.flasharray.temp.get[{#NAME}]' + tags: + - tag: component + value: sensor + trigger_prototypes: + - uuid: 04b761e9af01443ca2541828bb558431 + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.temp.status[{#NAME}])<>0' + name: 'Pure Storage FlashArray: Sensor [{#NAME}]: Sensor is not healthy' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Temperature sensor {#NAME} status is not "ok".' + tags: + - tag: scope + value: health + - uuid: 38030ba18a094d1e9a88ac2d3b0797ce + name: 'Sensor [{#NAME}]: Temperature' + type: DEPENDENT + key: 'purestorage.flasharray.temp.value[{#NAME}]' + delay: '0' + units: °C + description: 'The current temperature value of the {#NAME} sensor.' + preprocessing: + - type: JSONPATH + parameters: + - $.temperature + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'purestorage.flasharray.temp.get[{#NAME}]' + tags: + - tag: component + value: sensor + graph_prototypes: + - uuid: 9503fc3b89674c7185f162fe150ed2a1 + name: 'Sensor [{#NAME}]: Temperature' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.temp.value[{#NAME}]' + master_item: + key: purestorage.flasharray.hardware.get + lld_macro_paths: + - lld_macro: '{#CTRL}' + path: $.parent + - lld_macro: '{#INDEX}' + path: $.index + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TEMP.VALUE}' + path: $.temperature + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.hardware + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + overrides: + - name: 'Controller tag' + step: '1' + filter: + conditions: + - macro: '{#CTRL}' + value: '^CT[0-9]+$' + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: '.*' + tags: + - tag: controller + value: '{#CTRL}' + - name: 'Chassis tag' + step: '2' + filter: + conditions: + - macro: '{#CTRL}' + value: '^CH[0-9]+$' + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: '.*' + tags: + - tag: chassis + value: '{#CTRL}' + - uuid: ba4d4650536142e3a810c33362117dd2 + name: 'Volume discovery' + type: DEPENDENT + key: purestorage.flasharray.volume.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.VOLUME.LLD.FILTER.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$PURE.FLASHARRAY.VOLUME.LLD.FILTER.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of storage volumes from the Pure Storage FlashArray API.' + item_prototypes: + - uuid: ba307ad50abc4edb8387a10bf10a216e + name: 'Volume [{#NAME}]: Data reduction' + type: DEPENDENT + key: 'purestorage.flasharray.volume.drr[{#SN}]' + delay: '0' + value_type: FLOAT + description: 'The data reduction ratio (DRR) represents the efficiency of data reduction techniques such as compression and deduplication for the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.data_reduction + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: d89e5ac32300482791f566ada1ba9640 + name: 'Volume [{#NAME}]: Get data' + type: DEPENDENT + key: 'purestorage.flasharray.volume.get[{#SN}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects data about the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - '$.volumes[?(@.serial == "{#SN}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: purestorage.flasharray.volumes.get + tags: + - tag: component + value: raw + - uuid: f19e37ab55b74659bf687de050a0d39e + name: 'Volume [{#NAME}]: Provisioned space' + type: DEPENDENT + key: 'purestorage.flasharray.volume.provisioned[{#SN}]' + delay: '0' + units: B + description: 'The total provisioned space on the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.total_provisioned + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 950e7e53d9cc4edb88b64b5a2d2bb21c + name: 'Volume [{#NAME}]: Bytes read per second' + type: DEPENDENT + key: 'purestorage.flasharray.volume.read_bytes.rate[{#SN}]' + delay: '0' + units: Bps + description: 'Number of bytes read from the {#NAME} volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.read_bytes_per_sec + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: b17ffe15e5c64c8a974374fb3a92ded0 + name: 'Volume [{#NAME}]: Read requests per second' + type: DEPENDENT + key: 'purestorage.flasharray.volume.read_requests.rate[{#SN}]' + delay: '0' + description: 'Number of read requests processed on the {#NAME} volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.reads_per_sec + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: af4a7394ae2a4580863b5ebb21908a76 + name: 'Volume [{#NAME}]: Shared space' + type: DEPENDENT + key: 'purestorage.flasharray.volume.shared_space[{#SN}]' + delay: '0' + units: B + description: 'The physical space occupied by deduplicated data on the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.shared + - type: NOT_MATCHES_REGEX + parameters: + - ^null$ + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 06a10478a54b415198055ff1f07f3aaa + name: 'Volume [{#NAME}]: Size' + type: DEPENDENT + key: 'purestorage.flasharray.volume.size[{#SN}]' + delay: '0' + units: B + description: 'The physical space occupied by the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.provisioned + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + trigger_prototypes: + - uuid: df02c79ca98240408376ab80921e6a32 + expression: 'last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.volume.size[{#SN}],#1)<>last(/Pure Storage FlashArray v2 by HTTP/purestorage.flasharray.volume.size[{#SN}],#2)' + name: 'Pure Storage FlashArray: Volume [{#NAME}]: Volume size has been changed' + opdata: 'Current size: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Physical space occupied by the {#NAME} volume has been changed.' + tags: + - tag: scope + value: availability + - uuid: f98e3831e39e47d489336d64d4c843c2 + name: 'Volume [{#NAME}]: Snapshots size' + type: DEPENDENT + key: 'purestorage.flasharray.volume.snapshots_size[{#SN}]' + delay: '0' + units: B + description: 'The physical space occupied by snapshots on the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.snapshots + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 01588d46fa944fe8b9d12f1673a3cc1d + name: 'Volume [{#NAME}]: Thin provisioning' + type: DEPENDENT + key: 'purestorage.flasharray.volume.thin_provisioning[{#SN}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of sectors in the {#NAME} volume that do not contain host-written data because the hosts have not written data to them or the sectors have been explicitly trimmed.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.thin_provisioning + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: f5c9e9b3d3ef46d0a3ed9f2a27cb6c4b + name: 'Volume [{#NAME}]: Total data reduction' + type: DEPENDENT + key: 'purestorage.flasharray.volume.total_drr[{#SN}]' + delay: '0' + value_type: FLOAT + description: 'The total reduction ratio of all data on the {#NAME} volume that has been processed by the data deduplication and compression engines.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.total_reduction + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: a94cf17619b147db8d4533dafe865eb0 + name: 'Volume [{#NAME}]: Microseconds per read' + type: DEPENDENT + key: 'purestorage.flasharray.volume.usec_per_read[{#SN}]' + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O read request from the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.usec_per_read_op + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 108613219eb748c388c3d1a1f59c073e + name: 'Volume [{#NAME}]: Microseconds per write' + type: DEPENDENT + key: 'purestorage.flasharray.volume.usec_per_write[{#SN}]' + delay: '0' + units: µs + description: 'Average time in microseconds required to process an I/O write request to the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.usec_per_write_op + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 714127b92f3f49ac9c91e2c8b34e7db1 + name: 'Volume [{#NAME}]: Used provisioned' + type: DEPENDENT + key: 'purestorage.flasharray.volume.used_provisioned[{#SN}]' + delay: '0' + units: B + description: 'The total provisioned space occupied by all data on the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.used_provisioned + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: 68d0c19d00a147dd8f005e93c4d6deb0 + name: 'Volume [{#NAME}]: Used space' + type: DEPENDENT + key: 'purestorage.flasharray.volume.used_space[{#SN}]' + delay: '0' + units: B + description: 'The total physical space occupied by all data on the {#NAME} volume.' + preprocessing: + - type: JSONPATH + parameters: + - $.space.total_used + error_handler: DISCARD_VALUE + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: a1562e3e8fb7443cac236755ead8a811 + name: 'Volume [{#NAME}]: Write requests per second' + type: DEPENDENT + key: 'purestorage.flasharray.volume.write_requests.rate[{#SN}]' + delay: '0' + description: 'Number of write requests processed on the {#NAME} volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.writes_per_sec + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + - uuid: d88ebbbf982c4d678bc4298c7bd445b1 + name: 'Volume [{#NAME}]: Bytes written per second' + type: DEPENDENT + key: 'purestorage.flasharray.volume.written_bytes.rate[{#SN}]' + delay: '0' + units: Bps + description: 'Number of bytes written to the {#NAME} volume per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.performance.write_bytes_per_sec + master_item: + key: 'purestorage.flasharray.volume.get[{#SN}]' + tags: + - tag: component + value: volume + graph_prototypes: + - uuid: c1892f0a8bab42e58597788ea3c6571d + name: 'Volume [{#NAME}]: Operation latency' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.volume.usec_per_read[{#SN}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.volume.usec_per_write[{#SN}]' + - uuid: ee5830d4ac6b484fbc9e6f87b7a5e9b0 + name: 'Volume [{#NAME}]: Read/write throughput' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.volume.written_bytes.rate[{#SN}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.volume.read_bytes.rate[{#SN}]' + - uuid: d15e0ade1de9422eaabe8356b67245d9 + name: 'Volume [{#NAME}]: Requests per second' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.volume.read_requests.rate[{#SN}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.volume.write_requests.rate[{#SN}]' + - uuid: 741b5ad72b354d83a3c60ac7e7b95a1d + name: 'Volume [{#NAME}]: Space' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + yaxisside: RIGHT + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.volume.size[{#SN}]' + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.volume.shared_space[{#SN}]' + - sortorder: '2' + color: 00611C + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.volume.used_space[{#SN}]' + - sortorder: '3' + color: F7941D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: 'purestorage.flasharray.volume.snapshots_size[{#SN}]' + master_item: + key: purestorage.flasharray.volumes.get + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#SN}' + path: $.serial + preprocessing: + - type: JSONPATH + parameters: + - $.volumes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: class + value: hardware + - tag: class + value: storage + - tag: target + value: flash-array + - tag: target + value: pure-storage + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items and JavaScript preprocessing: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Pure Storage FlashArray v2", e.g. {$HTTP.TLS.VERIFY:"Pure Storage FlashArray v2"}.' + - macro: '{$PURE.FLASHARRAY.API.TOKEN}' + type: SECRET_TEXT + description: 'Pure Storage FlashArray API token.' + - macro: '{$PURE.FLASHARRAY.API.URL}' + description: 'Pure Storage FlashArray Web interface URL.' + - macro: '{$PURE.FLASHARRAY.API.VERSION}' + value: '2.36' + description: 'Pure Storage FlashArray API version.' + - macro: '{$PURE.FLASHARRAY.CERT.EXPIRY.WARN}' + value: '7' + description: 'Number of days until the certificate expires.' + - macro: '{$PURE.FLASHARRAY.CERT.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable certificates by name.' + - macro: '{$PURE.FLASHARRAY.CERT.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable certificates by name.' + - macro: '{$PURE.FLASHARRAY.CTRL.LLD.FILTER.INDEX.MATCHES}' + value: '.*' + description: 'Filter of discoverable controllers by index.' + - macro: '{$PURE.FLASHARRAY.CTRL.LLD.FILTER.INDEX.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable controllers by index.' + - macro: '{$PURE.FLASHARRAY.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for the API.' + - macro: '{$PURE.FLASHARRAY.DRIVE.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable storage drives by name.' + - macro: '{$PURE.FLASHARRAY.DRIVE.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable storage drives by name.' + - macro: '{$PURE.FLASHARRAY.FAN.LLD.FILTER.INDEX.MATCHES}' + value: '.*' + description: 'Filter of discoverable fans by index.' + - macro: '{$PURE.FLASHARRAY.FAN.LLD.FILTER.INDEX.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable fans by index.' + - macro: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.GROUP.MATCHES}' + value: '.*' + description: 'Filter of discoverable hosts by group.' + - macro: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.GROUP.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable hosts by group.' + - macro: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable hosts by name.' + - macro: '{$PURE.FLASHARRAY.HOST.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable hosts by name.' + - macro: '{$PURE.FLASHARRAY.HTTP_PROXY}' + description: 'HTTP proxy for API requests. You can specify it using the format [protocol://][username[:password]@]proxy.example.com[:port]. For more details, see the documentation at https://www.zabbix.com/documentation/7.0/manual/config/items/itemtypes/http' + - macro: '{$PURE.FLASHARRAY.NETIF.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable network interfaces by name.' + - macro: '{$PURE.FLASHARRAY.NETIF.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable network interfaces by name.' + - macro: '{$PURE.FLASHARRAY.POD.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable storage pods by name.' + - macro: '{$PURE.FLASHARRAY.POD.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable storage pods by name.' + - macro: '{$PURE.FLASHARRAY.POWER.LLD.FILTER.INDEX.MATCHES}' + value: '.*' + description: 'Filter of discoverable power supply components by index.' + - macro: '{$PURE.FLASHARRAY.POWER.LLD.FILTER.INDEX.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable power supply components by index.' + - macro: '{$PURE.FLASHARRAY.TEMP.LLD.FILTER.INDEX.MATCHES}' + value: '.*' + description: 'Filter of discoverable temperature sensors by index.' + - macro: '{$PURE.FLASHARRAY.TEMP.LLD.FILTER.INDEX.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable temperature sensors by index.' + - macro: '{$PURE.FLASHARRAY.VOLUME.LLD.FILTER.NAME.MATCHES}' + value: '.*' + description: 'Filter of discoverable storage volumes by name.' + - macro: '{$PURE.FLASHARRAY.VOLUME.LLD.FILTER.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discoverable storage volumes by name.' + dashboards: + - uuid: 186b571696774e6ab4ba5a8a38dc9c8d + name: 'Pure Storage FlashArray: General' + auto_start: 'NO' + pages: + - name: Array + widgets: + - type: item + name: Hostname + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.hostname + - type: INTEGER + name: show.0 + value: '2' + - type: svggraph + name: 'Array read/write throughput' + 'y': '3' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '009688' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: STRING + name: ds.0.items.0 + value: 'Array bytes read per second' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: ds.1.color + value: FFD54F + - type: INTEGER + name: ds.1.fill + value: '0' + - type: STRING + name: ds.1.items.0 + value: 'Array bytes written per second' + - type: INTEGER + name: ds.1.width + value: '2' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: XGKYU + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Array operation latency' + 'y': '8' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '009688' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: STRING + name: ds.0.items.0 + value: 'Array microseconds per read' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: ds.1.color + value: FFD54F + - type: INTEGER + name: ds.1.fill + value: '0' + - type: STRING + name: ds.1.items.0 + value: 'Array microseconds per write' + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: ds.2.color + value: F44336 + - type: INTEGER + name: ds.2.fill + value: '0' + - type: STRING + name: ds.2.items.0 + value: 'Array microseconds per operation' + - type: INTEGER + name: ds.2.width + value: '2' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: SSNAB + - type: INTEGER + name: righty + value: '0' + - type: item + name: Version + x: '24' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.version + - type: INTEGER + name: show.0 + value: '2' + - type: svggraph + name: 'Array requests per second' + x: '36' + 'y': '3' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '009688' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: STRING + name: ds.0.items.0 + value: 'Array read requests per second' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: ds.1.color + value: FFD54F + - type: INTEGER + name: ds.1.fill + value: '0' + - type: STRING + name: ds.1.items.0 + value: 'Array write requests per second' + - type: INTEGER + name: ds.1.width + value: '2' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: NCUID + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Array space' + x: '36' + 'y': '8' + width: '36' + height: '5' + fields: + - type: INTEGER + name: ds.0.axisy + value: '1' + - type: STRING + name: ds.0.color + value: '009688' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: STRING + name: ds.0.items.0 + value: 'Array capacity' + - type: INTEGER + name: ds.0.width + value: '3' + - type: STRING + name: ds.1.color + value: FFD54F + - type: INTEGER + name: ds.1.fill + value: '0' + - type: STRING + name: ds.1.items.0 + value: 'Array shared space' + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: ds.2.color + value: F44336 + - type: INTEGER + name: ds.2.fill + value: '0' + - type: STRING + name: ds.2.items.0 + value: 'Array snapshots size' + - type: INTEGER + name: ds.2.width + value: '2' + - type: STRING + name: ds.3.color + value: 0080FF + - type: INTEGER + name: ds.3.fill + value: '0' + - type: STRING + name: ds.3.items.0 + value: 'Array volumes size' + - type: INTEGER + name: ds.3.width + value: '2' + - type: STRING + name: ds.4.color + value: 7E57C2 + - type: INTEGER + name: ds.4.fill + value: '0' + - type: STRING + name: ds.4.items.0 + value: 'Array system size' + - type: INTEGER + name: ds.4.width + value: '2' + - type: INTEGER + name: legend_lines + value: '5' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: SFPXY + - type: item + name: Capacity + x: '48' + width: '24' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.capacity + - type: INTEGER + name: show.0 + value: '2' + - name: 'Network interfaces' + widgets: + - type: honeycomb + name: 'Network interfaces' + width: '72' + height: '5' + fields: + - type: STRING + name: bg_color + value: 64B5F6 + - type: STRING + name: items.0 + value: '*Speed' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: interface + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^.+?\[(.*)\]", \1)}' + - type: STRING + name: reference + value: TZTHI + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: Speed + 'y': '5' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: '009688' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: TZTHI._itemid + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: ABHBM + - type: INTEGER + name: righty + value: '0' + - name: Drives + widgets: + - type: honeycomb + name: Drives + width: '72' + height: '5' + fields: + - type: STRING + name: bg_color + value: 64B5F6 + - type: STRING + name: items.0 + value: '*Capacity' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: drive + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^.+?\[(.*)\]", \1)}' + - type: STRING + name: reference + value: YBMRB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: Capacity + 'y': '5' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: '009688' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: YBMRB._itemid + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: IEDRA + - type: INTEGER + name: righty + value: '0' + - name: Volumes + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + name: 'Volume [{#NAME}]: Operation latency' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + name: 'Volume [{#NAME}]: Requests per second' + - type: STRING + name: reference + value: AAAAL + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + name: 'Volume [{#NAME}]: Read/write throughput' + - type: STRING + name: reference + value: AAAAK + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + name: 'Volume [{#NAME}]: Space' + - type: STRING + name: reference + value: AAAAM + - name: Hosts + widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + name: 'Host [{#NAME}]: Operation latency' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + name: 'Host [{#NAME}]: Requests per second' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + x: '36' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + name: 'Host [{#NAME}]: Read/write throughput' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Pure Storage FlashArray v2 by HTTP' + name: 'Host [{#NAME}]: Space' + - type: STRING + name: reference + value: AAAAI + - name: Sensors + widgets: + - type: honeycomb + name: Fans + width: '72' + height: '5' + fields: + - type: STRING + name: items.0 + value: '*Status' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: fan + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^.+?\[(.*)\]", \1)}' + - type: STRING + name: reference + value: YQLGC + - type: INTEGER + name: show.0 + value: '1' + - type: STRING + name: thresholds.0.color + value: 26A69A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: E65660 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FCCB1D + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: 90A4AE + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: STRING + name: thresholds.4.color + value: 29B6F6 + - type: STRING + name: thresholds.4.threshold + value: '4' + - type: STRING + name: thresholds.5.color + value: 546E7A + - type: STRING + name: thresholds.5.threshold + value: '5' + - type: honeycomb + name: 'Temperature sensors' + 'y': '5' + width: '72' + height: '5' + fields: + - type: STRING + name: items.0 + value: '*Temperature' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: sensor + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^.+?\[(.*)\]", \1)}' + - type: STRING + name: reference + value: EOKHA + - type: INTEGER + name: secondary_label_bold + value: '0' + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: 26A69A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFCA28 + - type: STRING + name: thresholds.1.threshold + value: '50' + - type: STRING + name: thresholds.2.color + value: E65660 + - type: STRING + name: thresholds.2.threshold + value: '70' + - type: svggraph + name: 'Temperature value' + 'y': '10' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: '009688' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: EOKHA._itemid + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: FDGJA + - type: INTEGER + name: righty + value: '0' + - type: honeycomb + name: 'Power supply' + 'y': '15' + width: '72' + height: '5' + fields: + - type: STRING + name: bg_color + value: 64B5F6 + - type: STRING + name: items.0 + value: '*Voltage' + - type: INTEGER + name: item_tags.0.operator + value: '1' + - type: STRING + name: item_tags.0.tag + value: component + - type: STRING + name: item_tags.0.value + value: power + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^.+?\[(.*)\]", \1)}' + - type: STRING + name: reference + value: MZNPS + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: Voltage + 'y': '20' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: '009688' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: MZNPS._itemid + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: NGVAC + - type: INTEGER + name: righty + value: '0' + valuemaps: + - uuid: d2c0016639b2413c85a000746ee56109 + name: Boolean + mappings: + - value: '0' + newvalue: 'false' + - value: '1' + newvalue: 'true' + - uuid: a6f5e4bef3114c4cb08eb4c9e449dfa8 + name: 'Certificate Type' + mappings: + - value: '0' + newvalue: self-signed + - value: '1' + newvalue: imported + - value: '2' + newvalue: other + - uuid: b6aed58a52b742c680173452935c2bca + name: 'Controller Mode' + mappings: + - value: '0' + newvalue: 'not present' + - value: '1' + newvalue: offline + - value: '2' + newvalue: primary + - value: '3' + newvalue: secondary + - value: '4' + newvalue: unknown + - uuid: f315c5769cbd4eb4ac4721751070d247 + name: 'Controller Status' + mappings: + - value: '0' + newvalue: 'not ready' + - value: '1' + newvalue: ready + - value: '2' + newvalue: updating + - value: '3' + newvalue: unknown + - uuid: ed60650d00594c5c9778501ee06fb648 + name: 'Drive Status' + mappings: + - value: '0' + newvalue: healthy + - value: '1' + newvalue: empty + - value: '2' + newvalue: updating + - value: '3' + newvalue: unused + - value: '4' + newvalue: evacuating + - value: '5' + newvalue: identifying + - value: '6' + newvalue: unhealthy + - value: '7' + newvalue: recovering + - value: '8' + newvalue: unrecognized + - value: '9' + newvalue: failed + - uuid: 92c4cbd25c9f45408aa335aac5bec52a + name: 'Hardware Status' + mappings: + - value: '0' + newvalue: ok + - value: '1' + newvalue: critical + - value: '2' + newvalue: degraded + - value: '3' + newvalue: device_off + - value: '4' + newvalue: identifying + - value: '5' + newvalue: not_installed + - value: '6' + newvalue: unknown + - uuid: 0142212de71f42bc9f7521447d89ff0c + name: 'Pod Status' + mappings: + - value: '0' + newvalue: demoted + - value: '1' + newvalue: promoted + - value: '2' + newvalue: unknown + - uuid: 59047ec19a5c4229bce4450f134ac5cc + name: 'Service Status' + mappings: + - value: '0' + newvalue: disabled + - value: '1' + newvalue: enabled + - value: '2' + newvalue: unknown + graphs: + - uuid: abcd6ce5245c48b689fdbc37dbe9c277 + name: 'Array operation latency' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.usec_per_read + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.usec_per_write + - sortorder: '2' + color: 00611C + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.usec_per_op + - uuid: a15810fcd5dc4131a9263bd1c8dd66e3 + name: 'Array read/write throughput' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.written_bytes.rate + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.read_bytes.rate + - uuid: 2af7200064f04041871c8883ebed3305 + name: 'Array requests per second' + graph_items: + - color: 199C0D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.read_requests.rate + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.write_requests.rate + - uuid: 81354a0ede2a43ecbee5805128a1f856 + name: 'Array space' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + yaxisside: RIGHT + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.capacity + - sortorder: '1' + color: F63100 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.shared_space + - sortorder: '2' + color: 00611C + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.snapshots_size + - sortorder: '3' + color: F7941D + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.physical_size + - sortorder: '4' + color: FC6EA3 + item: + host: 'Pure Storage FlashArray v2 by HTTP' + key: purestorage.flasharray.array.system_size diff --git a/QTech_QSW_by_SNMP.yaml b/QTech_QSW_by_SNMP.yaml new file mode 100644 index 0000000..8e4de36 --- /dev/null +++ b/QTech_QSW_by_SNMP.yaml @@ -0,0 +1,1874 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 21f3e79e1d2e4f5e868d1ef81c94bbfd + template: 'QTech QSW by SNMP' + name: 'QTech QSW by SNMP' + description: | + Template Net QTech QSW + + MIBs used: + QTECH-MIB + EtherLike-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + ENTITY-MIB + IF-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 89d60f525bd04be28cc4267d0224cdb6 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fd05f449cbc64dcba10029c246594568 + expression: 'max(/QTech QSW by SNMP/icmpping,#3)=0' + name: 'QTech QSW: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 8f355d66881c47b5be8097dbd1f950d1 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4b2e2d168a0b4da3b5999263f52f3c36 + expression: 'min(/QTech QSW by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/QTech QSW by SNMP/icmppingloss,5m)<100' + name: 'QTech QSW: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'QTech QSW: Unavailable by ICMP ping' + expression: 'max(/QTech QSW by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 6138402da32a40259bb26f217be2df59 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 18f41db36192463eabaa3797034e578a + expression: 'avg(/QTech QSW by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'QTech QSW: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'QTech QSW: High ICMP ping loss' + expression: 'min(/QTech QSW by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/QTech QSW by SNMP/icmppingloss,5m)<100' + - name: 'QTech QSW: Unavailable by ICMP ping' + expression: 'max(/QTech QSW by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ddb9ac31893d4b1d882b0e500d2d6ad7 + name: Temperature + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.27514.100.1.11.9.0]' + key: 'sensor.temp.value[switchTemperature.0]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: QTECH-MIB + Temperature readings of testpoint. + tags: + - tag: component + value: temperature + triggers: + - uuid: 8ca8b9dfed0e4af898d9182150bb1ad0 + expression: 'avg(/QTech QSW by SNMP/sensor.temp.value[switchTemperature.0],5m)>{$TEMP_CRIT}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/QTech QSW by SNMP/sensor.temp.value[switchTemperature.0],5m)<{$TEMP_CRIT}-3' + name: 'QTech QSW: Temperature is above critical threshold' + event_name: 'QTech QSW: Temperature is above critical threshold: >{$TEMP_CRIT}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: b9122f253bf440ccb413d577790e46a0 + expression: 'avg(/QTech QSW by SNMP/sensor.temp.value[switchTemperature.0],5m)>{$TEMP_WARN}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/QTech QSW by SNMP/sensor.temp.value[switchTemperature.0],5m)<{$TEMP_WARN}-3' + name: 'QTech QSW: Temperature is above warning threshold' + event_name: 'QTech QSW: Temperature is above warning threshold: >{$TEMP_WARN}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'QTech QSW: Temperature is above critical threshold' + expression: 'avg(/QTech QSW by SNMP/sensor.temp.value[switchTemperature.0],5m)>{$TEMP_CRIT}' + recovery_expression: 'max(/QTech QSW by SNMP/sensor.temp.value[switchTemperature.0],5m)<{$TEMP_CRIT}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d7607e97e2f549caaefa184c9fee8220 + expression: 'avg(/QTech QSW by SNMP/sensor.temp.value[switchTemperature.0],5m)<{$TEMP_CRIT_LOW}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/QTech QSW by SNMP/sensor.temp.value[switchTemperature.0],5m)>{$TEMP_CRIT_LOW}+3' + name: 'QTech QSW: Temperature is too low' + event_name: 'QTech QSW: Temperature is too low: <{$TEMP_CRIT_LOW}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 568c2b550b944dd084ec4e4486e7ec72 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: b821576134ff4185a3e11b35763b7d1d + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: daab52a7d91b431b8ec579200e53a0c4 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.27514.100.1.11.10.0]' + key: 'system.cpu.util[switchCpuUsage.0]' + value_type: FLOAT + units: '%' + description: | + MIB: QTECH-MIB + The CPU utilization expressed in %. + tags: + - tag: component + value: cpu + triggers: + - uuid: 57bf78318ded4574bde08adfafe94454 + expression: 'min(/QTech QSW by SNMP/system.cpu.util[switchCpuUsage.0],5m)>{$CPU.UTIL.CRIT}' + name: 'QTech QSW: High CPU utilization' + event_name: 'QTech QSW: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 3701b10845d449a3b1a5d67a7d743ca4 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e7dda2d7f577404dbe8e5beba7609617 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.9.1]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: e4682afd0cc547eea9605452b7df79f4 + expression: 'last(/QTech QSW by SNMP/system.hw.firmware,#1)<>last(/QTech QSW by SNMP/system.hw.firmware,#2) and length(last(/QTech QSW by SNMP/system.hw.firmware))>0' + name: 'QTech QSW: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5ff90f06a84a43ac937d3798b360bbd9 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.13.1]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 684868048c1645aea9d8ad94514bd4c6 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.11.1]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 83db3bd248994482a92ba86e5d3ae5ab + expression: 'last(/QTech QSW by SNMP/system.hw.serialnumber,#1)<>last(/QTech QSW by SNMP/system.hw.serialnumber,#2) and length(last(/QTech QSW by SNMP/system.hw.serialnumber))>0' + name: 'QTech QSW: Device has been replaced' + event_name: 'QTech QSW: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 94671639676f476f8b7c37a884d32ed0 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a842a44da43a4d2c906d0c642eb11411 + name: 'Hardware version(revision)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.47.1.1.1.1.8.1]' + key: system.hw.version + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ENTITY-MIB' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: de9a507ae83247398a4708fff2889862 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: aa2a90f772154d0e9354d496afae9939 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 27fa16e646224f88ad3b35ce7a71a18a + expression: 'last(/QTech QSW by SNMP/system.name,#1)<>last(/QTech QSW by SNMP/system.name,#2) and length(last(/QTech QSW by SNMP/system.name))>0' + name: 'QTech QSW: System name has changed' + event_name: 'QTech QSW: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 0123f7f4eab541a786130af4fbb2a534 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 237a5f0537a549b3a63ed7f81d0b6122 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ea6000232033495babf9157a67b89bcc + name: 'Operating system' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.27514.100.1.3.0]' + key: 'system.sw.os[sysSoftwareVersion.0]' + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: QTECH-MIB' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 6431f9a46fcb4a42ab3e04c8289bd07d + expression: 'last(/QTech QSW by SNMP/system.sw.os[sysSoftwareVersion.0],#1)<>last(/QTech QSW by SNMP/system.sw.os[sysSoftwareVersion.0],#2) and length(last(/QTech QSW by SNMP/system.sw.os[sysSoftwareVersion.0]))>0' + name: 'QTech QSW: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'QTech QSW: System name has changed' + expression: 'last(/QTech QSW by SNMP/system.name,#1)<>last(/QTech QSW by SNMP/system.name,#2) and length(last(/QTech QSW by SNMP/system.name))>0' + tags: + - tag: scope + value: notice + - uuid: 609971d1876444659f779ef28ed81ce7 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.27514.100.1.11.6.0]' + key: 'vm.memory.total[switchMemorySize.0]' + units: B + description: | + MIB: QTECH-MIB + The total memory expressed in bytes. + tags: + - tag: component + value: memory + - uuid: 8821718704db4ab4a8af8fbeb61dde93 + name: 'Used memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.27514.100.1.11.7.0]' + key: 'vm.memory.used[switchMemoryBusy.0]' + units: B + description: | + MIB: QTECH-MIB + Used memory in bytes. + tags: + - tag: component + value: memory + - uuid: f2271ace8bd040618f10ec651a634cbc + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[vm.memory.util.0]' + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.used[switchMemoryBusy.0])/last(//vm.memory.total[switchMemorySize.0])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 082a768e190d4e8e97e0857cd3412ea1 + expression: 'min(/QTech QSW by SNMP/vm.memory.util[vm.memory.util.0],5m)>{$MEMORY.UTIL.MAX}' + name: 'QTech QSW: High memory utilization' + event_name: 'QTech QSW: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 3e44eea15b2a4b2c994fb3372c538466 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7a7c0c7501ca484491394fe82c75b401 + expression: 'max(/QTech QSW by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'QTech QSW: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'QTech QSW: Unavailable by ICMP ping' + expression: 'max(/QTech QSW by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 58e5512df6204f7b9b7156055cfa35d4 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.27514.100.1.12.1.3]' + key: fan.discovery + delay: 1h + item_prototypes: + - uuid: bbd9e200b3e849d69fa4084f7ac7f378 + name: '{#SNMPINDEX}: Fan status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.27514.100.1.12.1.3.{#SNMPINDEX}]' + key: 'sensor.fan.status[sysFanStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: QTECH-MIB' + valuemap: + name: 'QTECH-MIB::sysFanStatus' + tags: + - tag: component + value: fan + trigger_prototypes: + - uuid: 9961328558a74e45a3154559ed582e41 + expression: 'count(/QTech QSW by SNMP/sensor.fan.status[sysFanStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' + name: 'QTech QSW: {#SNMPINDEX}: Fan is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 868afe31f18b401f9af17050f7b4f797 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 468b2fe6bbdc4e7e8c41b3c1eff79c50 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 7834edab485241e1bf065c0b314fcfc7 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: f6d6b81658db4ba1b4edc2bf245816ce + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1d1e8f319cf84bc4813e07b4d1637e83 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 69fddbf678284814ba8ec7f68314be5c + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: dfc2d7184bd84c6592072857fc2abc48 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1aade0dd9063467e9fd1841b84e710f5 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 37fffae80d9243d0863909fdae8683a2 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: efa56904fcf54fa5bbd0ba21381dc415 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'QTech QSW: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 950d69eedab445a09d53f002a499d25c + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: cb39728aac4940dda2b3a307d12be813 + expression: | + change(/QTech QSW by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/QTech QSW by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/QTech QSW by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/QTech QSW by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/QTech QSW by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/QTech QSW by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/QTech QSW by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/QTech QSW by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/QTech QSW by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/QTech QSW by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'QTech QSW: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'QTech QSW: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 303873dbb6224b4abc2f678100a72eda + expression: | + (avg(/QTech QSW by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/QTech QSW by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/QTech QSW by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/QTech QSW by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/QTech QSW by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/QTech QSW by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/QTech QSW by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/QTech QSW by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/QTech QSW by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'QTech QSW: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'QTech QSW: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'QTech QSW: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 0e0544466c6845349078ca2a72d2cf6c + expression: | + min(/QTech QSW by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/QTech QSW by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/QTech QSW by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/QTech QSW by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'QTech QSW: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'QTech QSW: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'QTech QSW: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/QTech QSW by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 986751c7fdb14537a5b525a0829f3b63 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'QTech QSW by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'QTech QSW by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'QTech QSW by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'QTech QSW by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'QTech QSW by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'QTech QSW by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - uuid: c646f18c6ab34ff285f5de376fbe3dd3 + name: 'EtherLike-MIB Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2]' + key: net.if.duplex.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFOPERSTATUS}' + value: '1' + formulaid: A + - macro: '{#SNMPVALUE}' + value: (2|3) + formulaid: B + description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' + item_prototypes: + - uuid: a1fa545a0ca74492b635d37e94785d39 + name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}]' + key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' + description: | + MIB: EtherLike-MIB + The current mode of operation of the MAC + entity. 'unknown' indicates that the current + duplex mode could not be determined. + + Management control of the duplex mode is + accomplished through the MAU MIB. When + an interface does not support autonegotiation, + or when autonegotiation is not enabled, the + duplex mode is controlled using + ifMauDefaultType. When autonegotiation is + supported and enabled, duplex mode is controlled + using ifMauAutoNegAdvertisedBits. In either + case, the currently operating duplex mode is + reflected both in this object and in ifMauType. + + Note that this object provides redundant + information with ifMauType. Normally, redundant + objects are discouraged. However, in this + instance, it allows a management application to + determine the duplex status of an interface + without having to know every possible value of + ifMauType. This was felt to be sufficiently + valuable to justify the redundancy. + Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. + valuemap: + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 8688cff304604fd7b015e92ef9f98647 + expression: 'last(/QTech QSW by SNMP/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' + name: 'QTech QSW: Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' + priority: WARNING + description: 'Please check autonegotiation settings and cabling.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + preprocessing: + - type: JAVASCRIPT + parameters: + - | + try { + var data = JSON.parse(value); + } + catch (error) { + throw 'Failed to parse JSON of EtherLike-MIB discovery.'; + } + var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; + data.forEach(function (element) { + fields.forEach(function (field) { + element[field] = element[field] || ''; + }); + }); + return JSON.stringify(data); + - uuid: ca95cd64b34740df80505a2df513dd25 + name: 'PSU Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.27514.100.1.7.1.5]' + key: psu.discovery + delay: 1h + item_prototypes: + - uuid: 124af24c3fb140499431f18e82a00c9d + name: '{#SNMPINDEX}: Power supply status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.27514.100.1.7.1.5.{#SNMPINDEX}]' + key: 'sensor.psu.status[sysPowerStatus.{#SNMPINDEX}]' + delay: 3m + trends: '0' + description: 'MIB: QTECH-MIB' + valuemap: + name: 'QTECH-MIB::sysPowerStatus' + tags: + - tag: component + value: power + trigger_prototypes: + - uuid: d047cf0b9e9f4e169e4a62c60358178d + expression: 'count(/QTech QSW by SNMP/sensor.psu.status[sysPowerStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1' + name: 'QTech QSW: {#SNMPINDEX}: Power supply is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply unit for errors.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: network + - tag: target + value: qsw + - tag: target + value: qtech + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$FAN_CRIT_STATUS}' + value: '1' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$PSU_CRIT_STATUS}' + value: '1' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '75' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '65' + dashboards: + - uuid: 5dd8ed66d2e14cfeb0df6b1cf6aa19ec + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'QTech QSW by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAC + - uuid: 6d98416da7a84f1b877f2ca3d6372514 + name: Resources + pages: + - widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'QTech QSW by SNMP' + name: 'QTech QSW: CPU utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'QTech QSW by SNMP' + name: 'QTech QSW: Memory utilization' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 867a4b73b9c74b8991bd9e7fada4266f + name: 'EtherLike-MIB::dot3StatsDuplexStatus' + mappings: + - value: '1' + newvalue: unknown + - value: '2' + newvalue: halfDuplex + - value: '3' + newvalue: fullDuplex + - uuid: 8be611d8f2c84397b7ded25165d6c63c + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 041993f5fd2c4dec97fe4a1ede37cad5 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: fe2ada3a06844e138b3c4fed1a8c8d2d + name: 'QTECH-MIB::sysFanStatus' + mappings: + - value: '0' + newvalue: normal + - value: '1' + newvalue: abnormal + - uuid: 439cee4220954720aa34725fdc6c365e + name: 'QTECH-MIB::sysPowerStatus' + mappings: + - value: '0' + newvalue: normal + - value: '1' + newvalue: abnormal + - value: '2' + newvalue: 'not available' + - uuid: 56ec9ee320f545d7a9f0941258f298ac + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 1bc8b4e625ae4328b3919b6379680ddd + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 44d6c66a6a1641f8816031c0d5bf4040 + expression: '(last(/QTech QSW by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/QTech QSW by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/QTech QSW by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/QTech QSW by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'QTech QSW: Host has been restarted' + event_name: 'QTech QSW: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'QTech QSW: No SNMP data collection' + expression: 'max(/QTech QSW by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 037fef94d6d64392b0ed9143f8623586 + name: 'QTech QSW: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'QTech QSW by SNMP' + key: 'system.cpu.util[switchCpuUsage.0]' + - uuid: 2d662728c6ca4ff1a690a3eb2ab2e51b + name: 'QTech QSW: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'QTech QSW by SNMP' + key: 'vm.memory.util[vm.memory.util.0]' diff --git a/RabbitMQ_cluster_by_HTTP.yaml b/RabbitMQ_cluster_by_HTTP.yaml new file mode 100644 index 0000000..57c6715 --- /dev/null +++ b/RabbitMQ_cluster_by_HTTP.yaml @@ -0,0 +1,1214 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 8c8474148c2a4eaeabe5a9331ea99d77 + template: 'RabbitMQ cluster by HTTP' + name: 'RabbitMQ cluster by HTTP' + description: | + This template is developed to monitor the messaging broker RabbitMQ cluster by Zabbix that works without any external scripts. + Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. + + The template collects metrics by polling RabbitMQ management plugin with HTTP agent remotely. + + Setup: + + 1. Enable the RabbitMQ management plugin. See the RabbitMQ documentation for the instructions: + https://www.rabbitmq.com/management.html + + 2. Create a user to monitor the service: + + rabbitmqctl add_user zbx_monitor + rabbitmqctl set_permissions -p / zbx_monitor "" "" ".*" + rabbitmqctl set_user_tags zbx_monitor monitoring + + 3. Set the hostname or IP address of the RabbitMQ cluster host in the '{$RABBITMQ.API.CLUSTER_HOST}' macro. You can also change the port in the '{$RABBITMQ.API.PORT}' macro and the scheme in the '{$RABBITMQ.API.SCHEME}' macro if necessary. + + 4. Set the user name and password in the macros '{$RABBITMQ.API.USER}' and '{$RABBITMQ.API.PASSWORD}'. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387226-discussion-thread-for-official-zabbix-template-rabbitmq + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Applications + items: + - uuid: dd74265fcc2d48e2b160e749706c9a6c + name: 'Get exchanges' + type: HTTP_AGENT + key: rabbitmq.get_exchanges + history: 1h + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: 'The HTTP API endpoint that returns exchanges metrics.' + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/exchanges' + tags: + - tag: component + value: raw + - uuid: c0d7c1940dea4cd4a01a94b9629db3ce + name: 'Get overview' + type: HTTP_AGENT + key: rabbitmq.get_overview + history: 1h + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: 'The HTTP API endpoint that returns cluster-wide metrics.' + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview' + tags: + - tag: component + value: raw + triggers: + - uuid: ae7f1953f9b94c9c907d7bd7627d389d + expression: 'nodata(/RabbitMQ cluster by HTTP/rabbitmq.get_overview,30m)=1' + name: 'RabbitMQ cluster: Failed to fetch overview data' + event_name: 'RabbitMQ cluster: Failed to fetch overview data (or no data for 30m)' + priority: WARNING + description: 'Zabbix has not received any data for items for the last 30 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 94ffc83030e84d93a2bcafc9fc1b307b + name: 'Messages acknowledged' + type: DEPENDENT + key: rabbitmq.overview.messages.ack + delay: '0' + description: 'The number of messages delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: b7c9ca566af64e62bc450752d5cd7777 + name: 'Messages acknowledged per second' + type: DEPENDENT + key: rabbitmq.overview.messages.ack.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 5f2ae9a4ca0643c6b3d3e7b1ed36f3e4 + name: 'Messages confirmed' + type: DEPENDENT + key: rabbitmq.overview.messages.confirm + delay: '0' + description: 'The count of confirmed messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.confirm + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 302caaded1ec40a984c13c3eab6f7509 + name: 'Messages confirmed per second' + type: DEPENDENT + key: rabbitmq.overview.messages.confirm.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages confirmed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.confirm_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: fa4dcdd9a76c47fb8b3e0e238077f591 + name: 'Messages delivered' + type: DEPENDENT + key: rabbitmq.overview.messages.deliver_get + delay: '0' + description: 'The sum of messages delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 483b3ccd192a4f7a8142da5fc3303d63 + name: 'Messages delivered per second' + type: DEPENDENT + key: rabbitmq.overview.messages.deliver_get.rate + delay: '0' + value_type: FLOAT + description: 'The rate of the sum of messages (per second) delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: af401642e23241f38b453ce65439a3fb + name: 'Messages published' + type: DEPENDENT + key: rabbitmq.overview.messages.publish + delay: '0' + description: 'The count of published messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: e386d202d87c442c94ea6151af8f1c45 + name: 'Messages published per second' + type: DEPENDENT + key: rabbitmq.overview.messages.publish.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages published per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: ebe18f0f04fe4c098283cfeab6ebb716 + name: 'Messages publish_in' + type: DEPENDENT + key: rabbitmq.overview.messages.publish_in + delay: '0' + description: 'The count of messages published from the channels into this overview.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_in + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 8078d1269b0f4650b2a2c8d0f7de8bfd + name: 'Messages publish_in per second' + type: DEPENDENT + key: rabbitmq.overview.messages.publish_in.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) published from the channels into this overview.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_in_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 8d5523cd5120462f903af9b67e2abb10 + name: 'Messages publish_out' + type: DEPENDENT + key: rabbitmq.overview.messages.publish_out + delay: '0' + description: 'The count of messages published from this overview into queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_out + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: c1a7ca5a475449b4b4d916693acd515b + name: 'Messages publish_out per second' + type: DEPENDENT + key: rabbitmq.overview.messages.publish_out.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) published from this overview into queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_out_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 6c0d428069a84443affba5b1a7f886bc + name: 'Messages returned redeliver' + type: DEPENDENT + key: rabbitmq.overview.messages.redeliver + delay: '0' + description: 'The count of subset of messages in the `deliver_get`, which had the `redelivered` flag set.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 7d239c3cb6604521b1291bce0dbdf10c + name: 'Messages returned redeliver per second' + type: DEPENDENT + key: rabbitmq.overview.messages.redeliver.rate + delay: '0' + value_type: FLOAT + description: 'The rate of subset of messages (per second) in the `deliver_get`, which had the `redelivered` flag set.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 70ab0718b7784a8280c99b6af21d909a + name: 'Messages returned unroutable' + type: DEPENDENT + key: rabbitmq.overview.messages.return_unroutable + delay: '0' + description: 'The count of messages returned to a publisher as unroutable.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.return_unroutable + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: e2983b5d27294b92b658070e0ef0a2ca + name: 'Messages returned unroutable per second' + type: DEPENDENT + key: rabbitmq.overview.messages.return_unroutable.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) returned to a publisher as unroutable.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.return_unroutable_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 787ea966afd741b99bbdce665aebf15a + name: 'Channels total' + type: DEPENDENT + key: rabbitmq.overview.object_totals.channels + delay: '0' + description: 'The total number of channels.' + preprocessing: + - type: JSONPATH + parameters: + - $.object_totals.channels + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: channels + - uuid: 3b488cdb79ac4b95abe55ddec9f74dd1 + name: 'Connections total' + type: DEPENDENT + key: rabbitmq.overview.object_totals.connections + delay: '0' + description: 'The total number of connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.object_totals.connections + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: connections + - uuid: 4b02b27b8091430eb80e6451935848d8 + name: 'Consumers total' + type: DEPENDENT + key: rabbitmq.overview.object_totals.consumers + delay: '0' + description: 'The total number of consumers.' + preprocessing: + - type: JSONPATH + parameters: + - $.object_totals.consumers + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: consumers + - uuid: 1b98a03a243c4b698faa93228cb9cfb0 + name: 'Exchanges total' + type: DEPENDENT + key: rabbitmq.overview.object_totals.exchanges + delay: '0' + description: 'The total number of exchanges.' + preprocessing: + - type: JSONPATH + parameters: + - $.object_totals.exchanges + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: exchanges + - uuid: 011491d6f5954cf3bf37ee45a62a4d86 + name: 'Queues total' + type: DEPENDENT + key: rabbitmq.overview.object_totals.queues + delay: '0' + description: 'The total number of queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.object_totals.queues + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: queues + - uuid: c9bc0b0a61be4412bfc31cb725bbe837 + name: 'Messages total' + type: DEPENDENT + key: rabbitmq.overview.queue_totals.messages + delay: '0' + description: 'The total number of messages (ready, plus unacknowledged).' + preprocessing: + - type: JSONPATH + parameters: + - $.queue_totals.messages + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 7c7e5c4111ff464b913a43b59fcb2e9b + name: 'Messages ready for delivery' + type: DEPENDENT + key: rabbitmq.overview.queue_totals.messages.ready + delay: '0' + description: 'The number of messages ready for delivery.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue_totals.messages_ready + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + - uuid: 3403648d6b964edd8c390e2c175b068a + name: 'Messages unacknowledged' + type: DEPENDENT + key: rabbitmq.overview.queue_totals.messages.unacknowledged + delay: '0' + description: 'The number of unacknowledged messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue_totals.messages_unacknowledged + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: rabbitmq.get_overview + tags: + - tag: component + value: messages + discovery_rules: + - uuid: 8655f85b65cc4eb0a0470db45ca1c963 + name: 'Health Check 3.8.10+ discovery' + type: DEPENDENT + key: rabbitmq.cluster.healthcheck.v3810.discovery + delay: '0' + description: 'Specific metrics for the versions: up to and including 3.8.10.' + item_prototypes: + - uuid: 90db70de99454f7b924d84174a5951fb + name: 'Healthcheck: alarms in effect in the cluster{#SINGLETON}' + type: HTTP_AGENT + key: 'rabbitmq.healthcheck.alarms[{#SINGLETON}]' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: 'Responds a 200 OK if there are no alarms in effect in the cluster, otherwise responds with a 503 Service Unavailable.' + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/health/checks/alarms' + status_codes: '200,503,404' + retrieve_mode: HEADERS + tags: + - tag: component + value: health + - tag: component + value: system + trigger_prototypes: + - uuid: 58592bb4d473497e9942634db2001823 + expression: 'last(/RabbitMQ cluster by HTTP/rabbitmq.healthcheck.alarms[{#SINGLETON}])=0' + name: 'RabbitMQ cluster: There are active alarms in the cluster' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'This is the default API endpoint path: http://{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + master_item: + key: rabbitmq.get_overview + preprocessing: + - type: JSONPATH + parameters: + - $.management_version + - type: JAVASCRIPT + parameters: + - | + var rabbit_version = parseInt(value.split('.')[0]) * 10000 + + parseInt(value.split('.')[1]) * 100 + + parseInt(value.split('.')[2]); + return JSON.stringify(rabbit_version >= 30810 ? [{ '{#SINGLETON}': '' }] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 689cf8096c0c49099e2b56c5b639d3c6 + name: 'Exchanges discovery' + type: DEPENDENT + key: rabbitmq.exchanges.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#EXCHANGE}' + value: '{$RABBITMQ.LLD.FILTER.EXCHANGE.MATCHES}' + formulaid: A + - macro: '{#EXCHANGE}' + value: '{$RABBITMQ.LLD.FILTER.EXCHANGE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'The metrics for an individual exchange.' + item_prototypes: + - uuid: d8cdcef7ad324aebb597e9d2cd32bdf2 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages acknowledged per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.ack.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: fd3d7de712d84721a09248670a7504f1 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages acknowledged' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.ack["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The number of messages delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: bc57ae1a1c1d4e9c96a268906d88dbf8 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages confirmed per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.confirm.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages confirmed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.confirm_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 8fac23c225d449b3a01d495b52131f5c + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages confirmed' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.confirm["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of confirmed messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.confirm + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 18916e7d0fce41d698f57f0f1be5dab1 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages delivered per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.deliver_get.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of the sum of messages (per second) delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: b86cc017bbb247b79e5b0522cf895d33 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages delivered' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.deliver_get["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The sum of messages delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: a4a890d6cbdc40528dee488d8649343d + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages published per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages published per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 24515b4712014fbeb857592664624be3 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages published' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of published messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: d7ecda9c49ee479481b0b96d92113064 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_in per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish_in.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) published from the channels into this overview.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_in_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 02ebc8dacc0b44cd81bd9a83394359ff + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_in' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish_in["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of messages published from the channels into this overview.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_in + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 46a5efc69f2e4928b5744b5ea0cd6ae3 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_out per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish_out.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) published from this overview into queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_out_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: c83921ac67074e169e247dc3392213cf + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_out' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish_out["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of messages published from this overview into queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_out + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 64bc6c65cc2f46b1841bd9852020bf44 + name: 'Exchange {#VHOST}/{#EXCHANGE}/{#TYPE}: Messages redelivered per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.redeliver.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of subset of messages (per second) in the `deliver_get`, which had the `redelivered` flag set.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 3203320d008d484d917827f93b213725 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages redelivered' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.redeliver["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of subset of messages in the `deliver_get`, which had the `redelivered` flag set.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 1aad46c39cc347f59ed953aa6bc23fbe + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages returned unroutable per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.return_unroutable.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) returned to a publisher as unroutable.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.return_unroutable_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: caaaf925f72e42d2b3112098bd05b3d1 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages returned unroutable' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.return_unroutable["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of messages returned to a publisher as unroutable.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.return_unroutable + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 54ec0943af1b4c0c807bcc222f5d70c7 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Get data' + type: DEPENDENT + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The HTTP API endpoint that returns [{#VHOST}][{#EXCHANGE}][{#TYPE}] exchanges metrics' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#EXCHANGE}" && @.vhost == "{#VHOST}" && @.type =="{#TYPE}")].first()' + master_item: + key: rabbitmq.get_exchanges + tags: + - tag: component + value: raw + master_item: + key: rabbitmq.get_exchanges + lld_macro_paths: + - lld_macro: '{#EXCHANGE}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + - lld_macro: '{#VHOST}' + path: $.vhost + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(JSON.parse(value),[''name'',''type'',''vhost'']);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: rabbitmq + macros: + - macro: '{$RABBITMQ.API.CLUSTER_HOST}' + value: '' + description: 'The hostname or IP of the API endpoint for the RabbitMQ cluster.' + - macro: '{$RABBITMQ.API.PASSWORD}' + value: zabbix + - macro: '{$RABBITMQ.API.PORT}' + value: '15672' + description: 'The port of the RabbitMQ API endpoint.' + - macro: '{$RABBITMQ.API.SCHEME}' + value: http + description: 'The request scheme, which may be HTTP or HTTPS.' + - macro: '{$RABBITMQ.API.USER}' + value: zbx_monitor + - macro: '{$RABBITMQ.LLD.FILTER.EXCHANGE.MATCHES}' + value: '.*' + description: 'This macro is used in the discovery of exchanges. It can be overridden at host level or its linked template level.' + - macro: '{$RABBITMQ.LLD.FILTER.EXCHANGE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in the discovery of exchanges. It can be overridden at host level or its linked template level.' + dashboards: + - uuid: 1b64af348f284f74a1f7f03de1d55f7b + name: 'RabbitMQ overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ cluster by HTTP' + name: 'RabbitMQ: Messages' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ cluster by HTTP' + name: 'RabbitMQ: Messages status' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ cluster by HTTP' + name: 'RabbitMQ: Messages per second' + - type: STRING + name: reference + value: AAAAE + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ cluster by HTTP' + name: 'RabbitMQ: Connections' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ cluster by HTTP' + name: 'RabbitMQ: Queues' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 3380e05a15774dad92e77c983448698b + name: 'RabbitMQ healthcheck' + mappings: + - value: '0' + newvalue: Failed + - value: '1' + newvalue: Ok + - value: '2' + newvalue: Error + graphs: + - uuid: 2d72cf70b71a414680cc667c27141653 + name: 'RabbitMQ: Connections' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.object_totals.connections + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.object_totals.channels + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.object_totals.consumers + - uuid: 6a66846adab54906800f80ac025b2003 + name: 'RabbitMQ: Messages' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.queue_totals.messages + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.queue_totals.messages.ready + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.queue_totals.messages.unacknowledged + - uuid: fe3139da95aa4fc7a7db4aac87c52c03 + name: 'RabbitMQ: Messages per second' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.publish.rate + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.ack.rate + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.confirm.rate + - sortorder: '3' + color: F7941D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.deliver_get.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.publish_in.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.publish_out.rate + - sortorder: '6' + color: C7A72D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.redeliver.rate + - sortorder: '7' + color: BA2A5D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.return_unroutable.rate + - uuid: a4a33e6004f34a8cb2709aae632f456d + name: 'RabbitMQ: Messages status' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.publish + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.ack + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.confirm + - sortorder: '3' + color: F7941D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.deliver_get + - sortorder: '4' + color: FC6EA3 + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.publish_in + - sortorder: '5' + color: 6C59DC + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.publish_out + - sortorder: '6' + color: C7A72D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.redeliver + - sortorder: '7' + color: BA2A5D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.messages.return_unroutable + - uuid: 987d5621410d4dc6b66fb72e9aca2357 + name: 'RabbitMQ: Queues' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'RabbitMQ cluster by HTTP' + key: rabbitmq.overview.object_totals.queues diff --git a/RabbitMQ_cluster_by_Zabbix_agent.yaml b/RabbitMQ_cluster_by_Zabbix_agent.yaml new file mode 100644 index 0000000..8566a83 --- /dev/null +++ b/RabbitMQ_cluster_by_Zabbix_agent.yaml @@ -0,0 +1,1191 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 5fa761bc51e4432a90c6c9eece930c4a + template: 'RabbitMQ cluster by Zabbix agent' + name: 'RabbitMQ cluster by Zabbix agent' + description: | + Get cluster metrics from RabbitMQ management plugin provided an HTTP-based API using Zabbix agent. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387226-discussion-thread-for-official-zabbix-template-rabbitmq + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Applications + items: + - uuid: 31908a8287be442681a0ded564977ff2 + name: 'Messages acknowledged' + type: DEPENDENT + key: rabbitmq.overview.messages.ack + delay: '0' + description: 'The number of messages delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: f78fabbd7e3f44dc81b1cf9c90b26f2e + name: 'Messages acknowledged per second' + type: DEPENDENT + key: rabbitmq.overview.messages.ack.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: 45cf9b5cf5cd4b13b0e140383233799f + name: 'Messages confirmed' + type: DEPENDENT + key: rabbitmq.overview.messages.confirm + delay: '0' + description: 'The count of confirmed messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.confirm + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: bc85a070e1e9451b953d85bb519ed63d + name: 'Messages confirmed per second' + type: DEPENDENT + key: rabbitmq.overview.messages.confirm.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages confirmed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.confirm_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: 004da545af4a4f61bd2167281bb9a02b + name: 'Messages delivered' + type: DEPENDENT + key: rabbitmq.overview.messages.deliver_get + delay: '0' + description: 'The sum of messages delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: c00a84c8676544dcbdd74fec13881063 + name: 'Messages delivered per second' + type: DEPENDENT + key: rabbitmq.overview.messages.deliver_get.rate + delay: '0' + value_type: FLOAT + description: 'The rate of the sum of messages (per second) delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: 4215bdf87f0e426f85bd79434a0fb0bb + name: 'Messages published' + type: DEPENDENT + key: rabbitmq.overview.messages.publish + delay: '0' + description: 'The count of published messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: cfadadb681474c7eb0512d1f4d223ff6 + name: 'Messages published per second' + type: DEPENDENT + key: rabbitmq.overview.messages.publish.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages published per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: bb068ac7c6094fb8a59cd1a003e88c39 + name: 'Messages publish_in' + type: DEPENDENT + key: rabbitmq.overview.messages.publish_in + delay: '0' + description: 'The count of messages published from the channels into this overview.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_in + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: db511bf1cd6c465f8fe1ae6b5fa08660 + name: 'Messages publish_in per second' + type: DEPENDENT + key: rabbitmq.overview.messages.publish_in.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) published from the channels into this overview.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_in_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: 23dcb85dd9bc4fefb1a9682956181c2e + name: 'Messages publish_out' + type: DEPENDENT + key: rabbitmq.overview.messages.publish_out + delay: '0' + description: 'The count of messages published from this overview into queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_out + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: 05e4c745be95412995749c352ec0f925 + name: 'Messages publish_out per second' + type: DEPENDENT + key: rabbitmq.overview.messages.publish_out.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) published from this overview into queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_out_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: 650d6a94e381477299c62cfb2a2252cf + name: 'Messages returned redeliver' + type: DEPENDENT + key: rabbitmq.overview.messages.redeliver + delay: '0' + description: 'The count of subset of messages in the `deliver_get`, which had the `redelivered` flag set.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: 6d7eb8880bca4c6e92f65f8a32911599 + name: 'Messages returned redeliver per second' + type: DEPENDENT + key: rabbitmq.overview.messages.redeliver.rate + delay: '0' + value_type: FLOAT + description: 'The rate of subset of messages (per second) in the `deliver_get`, which had the `redelivered` flag set.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: e3faec09ae0a4d7aa8aab50d71de7bb3 + name: 'Messages returned unroutable' + type: DEPENDENT + key: rabbitmq.overview.messages.return_unroutable + delay: '0' + description: 'The count of messages returned to a publisher as unroutable.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.return_unroutable + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: 72267cce69cf490ea626ff3ae17b6362 + name: 'Messages returned unroutable per second' + type: DEPENDENT + key: rabbitmq.overview.messages.return_unroutable.rate + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) returned to a publisher as unroutable.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.return_unroutable_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: 2b03117e863348ee84d94acfe877ef7f + name: 'Channels total' + type: DEPENDENT + key: rabbitmq.overview.object_totals.channels + delay: '0' + description: 'The total number of channels.' + preprocessing: + - type: JSONPATH + parameters: + - $.object_totals.channels + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: channels + - uuid: b3cdd6739a964447b524df4fdd726434 + name: 'Connections total' + type: DEPENDENT + key: rabbitmq.overview.object_totals.connections + delay: '0' + description: 'The total number of connections.' + preprocessing: + - type: JSONPATH + parameters: + - $.object_totals.connections + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: connections + - uuid: c39007dbd4374bee943d61b7e90c0f01 + name: 'Consumers total' + type: DEPENDENT + key: rabbitmq.overview.object_totals.consumers + delay: '0' + description: 'The total number of consumers.' + preprocessing: + - type: JSONPATH + parameters: + - $.object_totals.consumers + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: consumers + - uuid: be0b952e5d08409aa2c65fe143a9193c + name: 'Exchanges total' + type: DEPENDENT + key: rabbitmq.overview.object_totals.exchanges + delay: '0' + description: 'The total number of exchanges.' + preprocessing: + - type: JSONPATH + parameters: + - $.object_totals.exchanges + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: exchanges + - uuid: d7c86b4921f54924af1b72cd2493da1c + name: 'Queues total' + type: DEPENDENT + key: rabbitmq.overview.object_totals.queues + delay: '0' + description: 'The total number of queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.object_totals.queues + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: queues + - uuid: c98b2b3dd2bd4fec9e7c571bc631167b + name: 'Messages total' + type: DEPENDENT + key: rabbitmq.overview.queue_totals.messages + delay: '0' + description: 'The total number of messages (ready, plus unacknowledged).' + preprocessing: + - type: JSONPATH + parameters: + - $.queue_totals.messages + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: efaabe175e5f4fffa8a810ea35753475 + name: 'Messages ready for delivery' + type: DEPENDENT + key: rabbitmq.overview.queue_totals.messages.ready + delay: '0' + description: 'The number of messages ready for delivery.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue_totals.messages_ready + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: 6cf09ed9d244464288c8050b10622e3a + name: 'Messages unacknowledged' + type: DEPENDENT + key: rabbitmq.overview.queue_totals.messages.unacknowledged + delay: '0' + description: 'The number of unacknowledged messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue_totals.messages_unacknowledged + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: messages + - uuid: f015f991bcea4c4dbf83dfb013300010 + name: 'Get exchanges' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/exchanges"]' + history: 1h + value_type: TEXT + trends: '0' + description: 'The HTTP API endpoint that returns exchanges metrics.' + preprocessing: + - type: REGEX + parameters: + - '\n\s?\n(.*)' + - \1 + tags: + - tag: component + value: raw + - uuid: 943eabfb44164908b9135aa4d6478bea + name: 'Get overview' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + history: 1h + value_type: TEXT + trends: '0' + description: 'The HTTP API endpoint that returns cluster-wide metrics.' + preprocessing: + - type: REGEX + parameters: + - '\n\s?\n(.*)' + - \1 + tags: + - tag: component + value: raw + triggers: + - uuid: 000d3e773f6e4ebf89f16daa2ce8c168 + expression: 'nodata(/RabbitMQ cluster by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"],30m)=1' + name: 'RabbitMQ cluster: Failed to fetch overview data' + event_name: 'RabbitMQ cluster: Failed to fetch overview data (or no data for 30m)' + priority: WARNING + description: 'Zabbix has not received any data for items for the last 30 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 406836367f45425fbd181a20dc3d08d7 + name: 'Health Check 3.8.10+ discovery' + type: DEPENDENT + key: rabbitmq.cluster.healthcheck.v3810.discovery + delay: '0' + description: 'Specific metrics for the versions: up to and including 3.8.10.' + item_prototypes: + - uuid: 4c93b04164d24eb8b9dbdab652afc7bc + name: 'Healthcheck: alarms in effect in the cluster{#SINGLETON}' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/health/checks/alarms{#SINGLETON}"]' + description: | + It responds with a status code `200 OK` if there are no alarms in effect in the cluster. + Otherwise, it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: component + value: health + - tag: component + value: system + trigger_prototypes: + - uuid: 032949c387c64223b3125ba1120ae082 + expression: 'last(/RabbitMQ cluster by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/health/checks/alarms{#SINGLETON}"])=0' + name: 'RabbitMQ cluster: There are active alarms in the cluster' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'This is the default API endpoint path: http://{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + preprocessing: + - type: JSONPATH + parameters: + - $.management_version + - type: JAVASCRIPT + parameters: + - | + var rabbit_version = parseInt(value.split('.')[0]) * 10000 + + parseInt(value.split('.')[1]) * 100 + + parseInt(value.split('.')[2]); + return JSON.stringify(rabbit_version >= 30810 ? [{ '{#SINGLETON}': '' }] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e28b4491721d4dbf8eded86a5caeabc2 + name: 'Exchanges discovery' + type: DEPENDENT + key: rabbitmq.exchanges.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#EXCHANGE}' + value: '{$RABBITMQ.LLD.FILTER.EXCHANGE.MATCHES}' + formulaid: A + - macro: '{#EXCHANGE}' + value: '{$RABBITMQ.LLD.FILTER.EXCHANGE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'The metrics for an individual exchange.' + item_prototypes: + - uuid: 68892e56e0074516b5d052dd7178955f + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages acknowledged per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.ack.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: fcf7807f096d4cddb8fa2b3671814dfa + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages acknowledged' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.ack["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The number of messages delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 858f8ce62fa04a31902569a712e58234 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages confirmed per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.confirm.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages confirmed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.confirm_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 38d41b5d815a40ff816f6fad2395b61a + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages confirmed' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.confirm["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of confirmed messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.confirm + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: ab53a6957ea641fe8b2a7f26c4bcc743 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages delivered per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.deliver_get.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of the sum of messages (per second) delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 412e5003ad2d4e80832ee0551a596791 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages delivered' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.deliver_get["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The sum of messages delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 32a0c7af8b9940a482a3a1d63ee90940 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages published per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages published per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 1eccbe4450d74d5f9c5b8f7e6279b214 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages published' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of published messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 3520a523abd1413f88c1c19978e6d562 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_in per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish_in.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) published from the channels into this overview.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_in_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 520d8301e48540679472bf508a6e293b + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_in' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish_in["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of messages published from the channels into this overview.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_in + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 6beb5e40cb8b416a8722ea77abb7355d + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_out per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish_out.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) published from this overview into queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_out_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: beb929ee395e4caba73f3063c24a1d60 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_out' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.publish_out["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of messages published from this overview into queues.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_out + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 7485d5a12fb04a13810ea54b9cc598e1 + name: 'Exchange {#VHOST}/{#EXCHANGE}/{#TYPE}: Messages redelivered per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.redeliver.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of subset of messages (per second) in the `deliver_get`, which had the `redelivered` flag set.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 58a06005659943429122d451acb521e0 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages redelivered' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.redeliver["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of subset of messages in the `deliver_get`, which had the `redelivered` flag set.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 295eeb3bd071400d921efe1f5a924a3e + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages returned unroutable per second' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.return_unroutable.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages (per second) returned to a publisher as unroutable.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.return_unroutable_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 2901eccbd8ef483ba63c5522755155e7 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages returned unroutable' + type: DEPENDENT + key: 'rabbitmq.exchange.messages.return_unroutable["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + description: 'The count of messages returned to a publisher as unroutable.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.return_unroutable + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + tags: + - tag: component + value: messages + - tag: exchange + value: '{#EXCHANGE}' + - tag: type + value: '{#TYPE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 4491f48f732d40c0b7f29010cf4ca046 + name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Get data' + type: DEPENDENT + key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The HTTP API endpoint that returns [{#VHOST}][{#EXCHANGE}][{#TYPE}] exchanges metrics' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#EXCHANGE}" && @.vhost == "{#VHOST}" && @.type =="{#TYPE}")].first()' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/exchanges"]' + tags: + - tag: component + value: raw + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/exchanges"]' + lld_macro_paths: + - lld_macro: '{#EXCHANGE}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + - lld_macro: '{#VHOST}' + path: $.vhost + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(JSON.parse(value),[''name'',''type'',''vhost'']);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: rabbitmq + macros: + - macro: '{$RABBITMQ.API.CLUSTER_HOST}' + value: 127.0.0.1 + description: 'The hostname or IP of the API endpoint for the RabbitMQ cluster.' + - macro: '{$RABBITMQ.API.PASSWORD}' + value: zabbix + - macro: '{$RABBITMQ.API.PORT}' + value: '15672' + description: 'The port of the RabbitMQ API endpoint.' + - macro: '{$RABBITMQ.API.SCHEME}' + value: http + description: 'The request scheme, which may be HTTP or HTTPS.' + - macro: '{$RABBITMQ.API.USER}' + value: zbx_monitor + - macro: '{$RABBITMQ.LLD.FILTER.EXCHANGE.MATCHES}' + value: '.*' + description: 'This macro is used in the discovery of exchanges. It can be overridden at host level or its linked template level.' + - macro: '{$RABBITMQ.LLD.FILTER.EXCHANGE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in the discovery of exchanges. It can be overridden at host level or its linked template level.' + dashboards: + - uuid: a886a871a00d47e28b8648cadae3bc99 + name: 'RabbitMQ overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ cluster by Zabbix agent' + name: 'RabbitMQ: Messages' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ cluster by Zabbix agent' + name: 'RabbitMQ: Messages status' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ cluster by Zabbix agent' + name: 'RabbitMQ: Messages per second' + - type: STRING + name: reference + value: AAAAE + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ cluster by Zabbix agent' + name: 'RabbitMQ: Connections' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ cluster by Zabbix agent' + name: 'RabbitMQ: Queues' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 78275d6daacf42b4b97e3d806dfe81fe + name: 'RabbitMQ healthcheck' + mappings: + - value: '0' + newvalue: Failed + - value: '1' + newvalue: Ok + - value: '2' + newvalue: Error + graphs: + - uuid: 2dbd4f9285a34786a210c6e16d87ed85 + name: 'RabbitMQ: Connections' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.object_totals.connections + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.object_totals.channels + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.object_totals.consumers + - uuid: dca08567e6ce4dcbb60f72a431de5ddf + name: 'RabbitMQ: Messages' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.queue_totals.messages + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.queue_totals.messages.ready + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.queue_totals.messages.unacknowledged + - uuid: ad303b1816a84248a347ef4773bf2c44 + name: 'RabbitMQ: Messages per second' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.publish.rate + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.ack.rate + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.confirm.rate + - sortorder: '3' + color: F7941D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.deliver_get.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.publish_in.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.publish_out.rate + - sortorder: '6' + color: C7A72D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.redeliver.rate + - sortorder: '7' + color: BA2A5D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.return_unroutable.rate + - uuid: 94fa39136a0d42b2997dd3b9a7581621 + name: 'RabbitMQ: Messages status' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.publish + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.ack + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.confirm + - sortorder: '3' + color: F7941D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.deliver_get + - sortorder: '4' + color: FC6EA3 + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.publish_in + - sortorder: '5' + color: 6C59DC + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.publish_out + - sortorder: '6' + color: C7A72D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.redeliver + - sortorder: '7' + color: BA2A5D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.messages.return_unroutable + - uuid: 3205b991eb5443e680b571b23b4a1721 + name: 'RabbitMQ: Queues' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'RabbitMQ cluster by Zabbix agent' + key: rabbitmq.overview.object_totals.queues diff --git a/RabbitMQ_node_by_HTTP.yaml b/RabbitMQ_node_by_HTTP.yaml new file mode 100644 index 0000000..eb33aba --- /dev/null +++ b/RabbitMQ_node_by_HTTP.yaml @@ -0,0 +1,1526 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: b9514029d03b44de9adf24251778dbf3 + template: 'RabbitMQ node by HTTP' + name: 'RabbitMQ node by HTTP' + description: | + This template is developed to monitor the messaging broker RabbitMQ node by Zabbix that works without any external scripts. + Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. + + The template collects metrics by polling RabbitMQ management plugin with HTTP agent remotely. + + Setup: + + 1. Enable the RabbitMQ management plugin. See the RabbitMQ documentation for the instructions: + https://www.rabbitmq.com/management.html + + 2. Create a user to monitor the service: + + rabbitmqctl add_user zbx_monitor + rabbitmqctl set_permissions -p / zbx_monitor "" "" ".*" + rabbitmqctl set_user_tags zbx_monitor monitoring + + 3. Set the hostname or IP address of the RabbitMQ node host in the '{$RABBITMQ.API.HOST}' macro. You can also change the port in the '{$RABBITMQ.API.PORT}' macro and the scheme in the '{$RABBITMQ.API.SCHEME}' macro if necessary. + + 4. Set the user name and password in the macros '{$RABBITMQ.API.USER}' and '{$RABBITMQ.API.PASSWORD}'. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387226-discussion-thread-for-official-zabbix-template-rabbitmq + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: 542f36f0b4e24d99a402a98b6f6fe4c4 + name: 'Service response time' + type: SIMPLE + key: 'net.tcp.service.perf["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"]' + value_type: FLOAT + units: s + tags: + - tag: component + value: system + triggers: + - uuid: 220eedd4f69b43fabe233b5127e09c50 + expression: 'min(/RabbitMQ node by HTTP/net.tcp.service.perf["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"],5m)>{$RABBITMQ.RESPONSE_TIME.MAX.WARN}' + name: 'RabbitMQ node: Service response time is too high' + event_name: 'RabbitMQ node: Service response time is too high (over {$RABBITMQ.RESPONSE_TIME.MAX.WARN}s for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'RabbitMQ node: Service is down' + expression: 'last(/RabbitMQ node by HTTP/net.tcp.service["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"])=0' + tags: + - tag: scope + value: performance + - uuid: f53379f858f74714b15ee12fe6fc2d08 + name: 'Service ping' + type: SIMPLE + key: 'net.tcp.service["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 636356e5255d49d992df4b7a0c7d222d + expression: 'last(/RabbitMQ node by HTTP/net.tcp.service["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"])=0' + name: 'RabbitMQ node: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 14468c29d16440cfb40429f58a0399f4 + name: 'Get nodes' + type: HTTP_AGENT + key: rabbitmq.get_nodes + history: 1h + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: 'The HTTP API endpoint that returns metrics of the nodes.' + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true' + tags: + - tag: component + value: raw + triggers: + - uuid: d4452f05d08343c7a374da412c0f1de6 + expression: 'nodata(/RabbitMQ node by HTTP/rabbitmq.get_nodes,30m)=1' + name: 'RabbitMQ node: Failed to fetch nodes data' + event_name: 'RabbitMQ node: Failed to fetch nodes data (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: 'RabbitMQ node: Service is down' + expression: 'last(/RabbitMQ node by HTTP/net.tcp.service["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: ff7ec5f6e2354c90bffdbd25f9360555 + name: 'Get node overview' + type: HTTP_AGENT + key: rabbitmq.get_node_overview + history: 1h + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: 'The HTTP API endpoint that returns cluster-wide metrics.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/overview' + tags: + - tag: component + value: raw + - uuid: 3d0770d550b24f5ca80289cb723c8386 + name: 'Get queues' + type: HTTP_AGENT + key: rabbitmq.get_queues + history: 1h + value_type: TEXT + trends: '0' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: 'The HTTP API endpoint that returns metrics of the queues metrics.' + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/queues' + tags: + - tag: component + value: raw + - uuid: 8cb8f380645f4d7f8250b110acd47d1c + name: 'Free disk space' + type: DEPENDENT + key: rabbitmq.node.disk_free + delay: '0' + units: B + description: 'The current free disk space.' + preprocessing: + - type: JSONPATH + parameters: + - $.disk_free + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: storage + - uuid: 38099990b854421ca39f178b9c9be016 + name: 'Disk free alarm' + type: DEPENDENT + key: rabbitmq.node.disk_free_alarm + delay: '0' + description: 'It checks whether the node has a disk alarm or not.' + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - $.disk_free_alarm + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: storage + triggers: + - uuid: 093eec2fd9264f158087509d8364dc09 + expression: 'last(/RabbitMQ node by HTTP/rabbitmq.node.disk_free_alarm)=1' + name: 'RabbitMQ node: Free disk space alarm' + event_name: 'RabbitMQ node: Free disk space alarm (Free space threshold has been reached)' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'For more details see [Free Disk Space Alarms](https://www.rabbitmq.com/disk-alarms.html).' + tags: + - tag: scope + value: performance + - uuid: ce9f4b99c77545fb8acd596d72725898 + name: 'Disk free limit' + type: DEPENDENT + key: rabbitmq.node.disk_free_limit + delay: '0' + units: B + description: 'The free space limit of a disk expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.disk_free_limit + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: storage + - uuid: fae24c176bd34b81b0f578883c5c2760 + name: 'Used file descriptors' + type: DEPENDENT + key: rabbitmq.node.fd_used + delay: '0' + description: 'The descriptors of the used file.' + preprocessing: + - type: JSONPATH + parameters: + - $.fd_used + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: storage + - uuid: 70ec112fc828476e96a469e0f94fc415 + name: 'Memory alarm' + type: DEPENDENT + key: rabbitmq.node.mem_alarm + delay: '0' + description: 'It checks whether the host has a memory alarm or not.' + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_alarm + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: memory + triggers: + - uuid: 843be64cfdcd4df5b3fea4726da69c7e + expression: 'last(/RabbitMQ node by HTTP/rabbitmq.node.mem_alarm)=1' + name: 'RabbitMQ node: Memory alarm' + event_name: 'RabbitMQ node: Memory alarm (Memory usage threshold has been reached)' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'For more details see [Memory Alarms](https://www.rabbitmq.com/memory.html).' + tags: + - tag: scope + value: performance + - uuid: 2445b494bf0648248b333d6f0afd95a2 + name: 'Memory limit' + type: DEPENDENT + key: rabbitmq.node.mem_limit + delay: '0' + units: B + description: 'The memory usage with high watermark properties expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_limit + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: memory + - uuid: 9e4f2c0cb6604364ab0a2b4def7466e2 + name: 'Memory used' + type: DEPENDENT + key: rabbitmq.node.mem_used + delay: '0' + units: B + description: 'The memory usage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_used + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: memory + - uuid: 129026dd49124ff2ba4f0bcc7f1fa9de + name: 'Management plugin version' + type: DEPENDENT + key: rabbitmq.node.overview.management_version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of the management plugin in use.' + preprocessing: + - type: JSONPATH + parameters: + - $.management_version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: rabbitmq.get_node_overview + tags: + - tag: component + value: system + - uuid: d63d8001d5134e2590d3e7ca8b62958c + name: 'RabbitMQ version' + type: DEPENDENT + key: rabbitmq.node.overview.rabbitmq_version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of the RabbitMQ on the node, which processed this request.' + preprocessing: + - type: JSONPATH + parameters: + - $.rabbitmq_version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: rabbitmq.get_node_overview + tags: + - tag: component + value: system + triggers: + - uuid: 19989038dfe84fcdb12262ee3782ab41 + expression: 'last(/RabbitMQ node by HTTP/rabbitmq.node.overview.rabbitmq_version,#1)<>last(/RabbitMQ node by HTTP/rabbitmq.node.overview.rabbitmq_version,#2) and length(last(/RabbitMQ node by HTTP/rabbitmq.node.overview.rabbitmq_version))>0' + name: 'RabbitMQ node: Version has changed' + event_name: 'RabbitMQ node: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'RabbitMQ version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ac9282c012bd4249a096a462d21dcf62 + name: 'Number of network partitions' + type: DEPENDENT + key: rabbitmq.node.partitions + delay: '0' + description: 'The number of network partitions, which this node "sees".' + preprocessing: + - type: JSONPATH + parameters: + - $.partitions + - type: JAVASCRIPT + parameters: + - 'return JSON.parse(value).length;' + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: network + triggers: + - uuid: 943d239a9fa5443dac3205c65a4da033 + expression: 'min(/RabbitMQ node by HTTP/rabbitmq.node.partitions,5m)>0' + name: 'RabbitMQ node: Number of network partitions is too high' + event_name: 'RabbitMQ node: Number of network partitions is too high (more than 0 for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'For more details see [Detecting Network Partitions](https://www.rabbitmq.com/partitions.html#detecting).' + tags: + - tag: scope + value: performance + - uuid: 5f819282c32b49039a2dae56b9be23cd + name: 'Is running' + type: DEPENDENT + key: rabbitmq.node.running + delay: '0' + description: 'It "sees" whether the node is running or not.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.running + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: system + triggers: + - uuid: 4b15e72e2133458ebac9c72c5fcb90e6 + expression: 'max(/RabbitMQ node by HTTP/rabbitmq.node.running,5m)=0' + name: 'RabbitMQ node: Node is not running' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'RabbitMQ node is not running.' + dependencies: + - name: 'RabbitMQ node: Service is down' + expression: 'last(/RabbitMQ node by HTTP/net.tcp.service["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"])=0' + tags: + - tag: scope + value: availability + - uuid: ddc906d9a969401ebf520490e62f4086 + name: 'Runtime run queue' + type: DEPENDENT + key: rabbitmq.node.run_queue + delay: '0' + description: 'The average number of Erlang processes waiting to run.' + preprocessing: + - type: JSONPATH + parameters: + - $.run_queue + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: system + - uuid: 16f4f6a6d8f14980a6edcc2d84b0cd8d + name: 'Sockets available' + type: DEPENDENT + key: rabbitmq.node.sockets_total + delay: '0' + description: 'The file descriptors available for use as sockets.' + preprocessing: + - type: JSONPATH + parameters: + - $.sockets_total + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: system + - uuid: 31455694c0994c9d9eaa8af048e88e95 + name: 'Sockets used' + type: DEPENDENT + key: rabbitmq.node.sockets_used + delay: '0' + description: 'The number of file descriptors used as sockets.' + preprocessing: + - type: JSONPATH + parameters: + - $.sockets_used + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: system + - uuid: 65a2fd59ddfe413b9259c547338f3351 + name: Uptime + type: DEPENDENT + key: rabbitmq.node.uptime + delay: '0' + value_type: FLOAT + units: s + description: 'Uptime expressed in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: rabbitmq.get_nodes + tags: + - tag: component + value: system + triggers: + - uuid: 6edfa365704f480da4b35b51b6ed84f4 + expression: 'last(/RabbitMQ node by HTTP/rabbitmq.node.uptime)<10m' + name: 'RabbitMQ node: Host has been restarted' + event_name: 'RabbitMQ node: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: fd10dbe5b1ba407dbb52632ecd713ccf + name: 'Health Check 3.8.9- discovery' + type: DEPENDENT + key: rabbitmq.healthcheck.v389.discovery + delay: '0' + description: 'Specific metrics for the versions: up to and including 3.8.4.' + item_prototypes: + - uuid: 22f9a51fd0ea41148846ecde7dbf4d99 + name: 'Healthcheck{#SINGLETON}' + type: HTTP_AGENT + key: 'rabbitmq.healthcheck[{#SINGLETON}]' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: 'It checks whether the RabbitMQ application is running; and whether the channels and queues can be listed successfully; and that no alarms are in effect.' + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: BOOL_TO_DECIMAL + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/healthchecks/node' + tags: + - tag: component + value: health + - tag: component + value: system + trigger_prototypes: + - uuid: 5c9c080ddd3748a6b5e62ba7765d270d + expression: 'last(/RabbitMQ node by HTTP/rabbitmq.healthcheck[{#SINGLETON}])=0' + name: 'RabbitMQ node: Node healthcheck failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'For more details see [Health Checks](https://www.rabbitmq.com/monitoring.html#health-checks).' + tags: + - tag: scope + value: availability + master_item: + key: rabbitmq.get_node_overview + preprocessing: + - type: JSONPATH + parameters: + - $.management_version + - type: JAVASCRIPT + parameters: + - | + var rabbit_version = parseInt(value.split('.')[0]) * 10000 + + parseInt(value.split('.')[1]) * 100 + + parseInt(value.split('.')[2]); + return JSON.stringify(rabbit_version < 30810 ? [{ '{#SINGLETON}': '' }] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ab89d103c015400fbbeecaaf9bf01400 + name: 'Health Check 3.8.10+ discovery' + type: DEPENDENT + key: rabbitmq.healthcheck.v3810.discovery + delay: '0' + description: 'Specific metrics for the versions: up to and including 3.8.10.' + item_prototypes: + - uuid: d18cd1fd8cd749e4a00b8186fd93345f + name: 'Healthcheck: expiration date on the certificates{#SINGLETON}' + type: HTTP_AGENT + key: 'rabbitmq.healthcheck.certificate_expiration[{#SINGLETON}]' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: | + It checks the expiration date on the certificates for every listener configured to use the Transport Layer Security (TLS). + It responds with a status code `200 OK` if all the certificates are valid (have not expired). + Otherwise, it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/certificate-expiration/1/months' + status_codes: '200,503,404' + retrieve_mode: HEADERS + tags: + - tag: component + value: certificate + - tag: component + value: health + trigger_prototypes: + - uuid: 20f7cd2d1d2448d5b84711caba2f093b + expression: 'last(/RabbitMQ node by HTTP/rabbitmq.healthcheck.certificate_expiration[{#SINGLETON}])=0' + name: 'RabbitMQ node: There are valid TLS certificates expiring in the next month' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'This is the default API endpoint path: http://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + - uuid: e1359646453e43cbaf0b4e1b89bdcdeb + name: 'Healthcheck: local alarms in effect on this node{#SINGLETON}' + type: HTTP_AGENT + key: 'rabbitmq.healthcheck.local_alarms[{#SINGLETON}]' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: | + It responds with a status code `200 OK` if there are no alarms in effect in the cluster. + Otherwise, it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/local-alarms' + status_codes: '200,503,404' + retrieve_mode: HEADERS + tags: + - tag: component + value: health + - tag: component + value: system + trigger_prototypes: + - uuid: 9761757a70bf4f65b9438471a5de2af0 + expression: 'last(/RabbitMQ node by HTTP/rabbitmq.healthcheck.local_alarms[{#SINGLETON}])=0' + name: 'RabbitMQ node: There are active alarms in the node' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'This is the default API endpoint path: http://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + - uuid: 9867c266760a48d981caa1f34f2c3238 + name: 'Healthcheck: classic mirrored queues without synchronized mirrors online{#SINGLETON}' + type: HTTP_AGENT + key: 'rabbitmq.healthcheck.mirror_sync[{#SINGLETON}]' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: | + It checks if there are classic mirrored queues without synchronized mirrors online (queues that would potentially lose data if the target node is shut down). + It responds with a status code `200 OK` if there are no such classic mirrored queues. + Otherwise, it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/node-is-mirror-sync-critical' + status_codes: '200,503,404' + retrieve_mode: HEADERS + tags: + - tag: component + value: health + - tag: component + value: queues + trigger_prototypes: + - uuid: 36b4702437614a3681a5a77acef323fc + expression: 'last(/RabbitMQ node by HTTP/rabbitmq.healthcheck.mirror_sync[{#SINGLETON}])=0' + name: 'RabbitMQ node: There are queues that could potentially lose data if this node goes offline.' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'This is the default API endpoint path: http://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + - uuid: 972b6409c80d4ac796e5472b72ce82ae + name: 'Healthcheck: queues with minimum online quorum{#SINGLETON}' + type: HTTP_AGENT + key: 'rabbitmq.healthcheck.quorum[{#SINGLETON}]' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: | + It checks if there are quorum queues with minimum online quorum (queues that would lose their quorum and availability if the target node is shut down). + It responds with a status code `200 OK` if there are no such quorum queues. + Otherwise, it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/node-is-quorum-critical' + status_codes: '200,503,404' + retrieve_mode: HEADERS + tags: + - tag: component + value: health + - tag: component + value: queues + trigger_prototypes: + - uuid: cfaba160cc0441c09010de05316596bd + expression: 'last(/RabbitMQ node by HTTP/rabbitmq.healthcheck.quorum[{#SINGLETON}])=0' + name: 'RabbitMQ node: There are queues that would lose their quorum and availability if this node is shut down.' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'This is the default API endpoint path: http://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + - uuid: d701b9acae86464282b308df720a1de2 + name: 'Healthcheck: virtual hosts on this node{#SINGLETON}' + type: HTTP_AGENT + key: 'rabbitmq.healthcheck.virtual_hosts[{#SINGLETON}]' + authtype: BASIC + username: '{$RABBITMQ.API.USER}' + password: '{$RABBITMQ.API.PASSWORD}' + description: | + It responds with It responds with a status code `200 OK` if all virtual hosts are running on the target node. + Otherwise it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + url: '{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/virtual-hosts' + status_codes: '200,503,404' + retrieve_mode: HEADERS + tags: + - tag: component + value: health + - tag: component + value: system + trigger_prototypes: + - uuid: d1638953e2794c3e8113ba907837c968 + expression: 'last(/RabbitMQ node by HTTP/rabbitmq.healthcheck.virtual_hosts[{#SINGLETON}])=0' + name: 'RabbitMQ node: There are not running virtual hosts' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'This is the default API endpoint path: http://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + master_item: + key: rabbitmq.get_node_overview + preprocessing: + - type: JSONPATH + parameters: + - $.management_version + - type: JAVASCRIPT + parameters: + - | + var rabbit_version = parseInt(value.split('.')[0]) * 10000 + + parseInt(value.split('.')[1]) * 100 + + parseInt(value.split('.')[2]); + return JSON.stringify(rabbit_version >= 30810 ? [{ '{#SINGLETON}': '' }] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: cc1d85b6045b44b38f588cd9a4c6c62d + name: 'Queues discovery' + type: DEPENDENT + key: rabbitmq.queues.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NODE}' + value: '{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}' + formulaid: A + - macro: '{#QUEUE}' + value: '{$RABBITMQ.LLD.FILTER.QUEUE.MATCHES}' + formulaid: B + - macro: '{#QUEUE}' + value: '{$RABBITMQ.LLD.FILTER.QUEUE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'The metrics for an individual queue.' + item_prototypes: + - uuid: 335ed3ef31e2471b9cdb25537cee4fe8 + name: 'Queue [{#VHOST}][{#QUEUE}]: Get data' + type: DEPENDENT + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The HTTP API endpoint that returns [{#VHOST}][{#QUEUE}] queue metrics' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#QUEUE}" && @.vhost == "{#VHOST}")].first()' + master_item: + key: rabbitmq.get_queues + tags: + - tag: component + value: raw + - uuid: be1c1c6b727a45cca039f0f00f184943 + name: 'Queue [{#VHOST}][{#QUEUE}]: Consumers' + type: DEPENDENT + key: 'rabbitmq.queue.consumers["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The number of consumers.' + preprocessing: + - type: JSONPATH + parameters: + - $.consumers + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: consumers + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 5d420017c0f14f37aa7c7ef986b54a77 + name: 'Queue [{#VHOST}][{#QUEUE}]: Memory' + type: DEPENDENT + key: 'rabbitmq.queue.memory["{#VHOST}/{#QUEUE}"]' + delay: '0' + units: B + description: 'The bytes of memory consumed by the Erlang process associated with the queue, including stack, heap and internal structures.' + preprocessing: + - type: JSONPATH + parameters: + - $.memory + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: memory + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 3902227627d84cad8794604bd4f091fd + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages acknowledged per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.ack.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The number of messages (per second) delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 2f2ca541c80b47cba2b5147a1c77aac5 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages acknowledged' + type: DEPENDENT + key: 'rabbitmq.queue.messages.ack["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The number of messages delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: b8a9c0ca7fda4756a8b79ac83c4bcd07 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages delivered per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.deliver.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The count of messages (per second) delivered to consumers in acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: e150c5d35ed144ca87945ef4f7a0998a + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages delivered' + type: DEPENDENT + key: 'rabbitmq.queue.messages.deliver["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The count of messages delivered to consumers in acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 9b74bc2a830e43e28ad6c44037dbd1d7 + name: 'Queue [{#VHOST}][{#QUEUE}]: Sum of messages delivered per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.deliver_get.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of delivery per second. The sum of messages delivered (per second) to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 837c46d0fd7d4ad18669dcbf62ae7025 + name: 'Queue [{#VHOST}][{#QUEUE}]: Sum of messages delivered' + type: DEPENDENT + key: 'rabbitmq.queue.messages.deliver_get["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The sum of messages delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 232ee8103a5d4fb6b2b41ca641f19088 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages published per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.publish.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of published messages per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: dfafc461ad8a45ba8f08a12ec9f4e2d3 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages published' + type: DEPENDENT + key: 'rabbitmq.queue.messages.publish["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The count of published messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 888dbb2c1b13429b9d20034fcc783f14 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The count of total messages per second in the queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages_details.rate + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: a34e852ddce64d80a88129eef9ba1ab2 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages redelivered per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.redeliver.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages redelivered per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 75501a52ffab4972a5988ac4ae0c82d8 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages redelivered' + type: DEPENDENT + key: 'rabbitmq.queue.messages.redeliver["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The count of subset of messages in the `deliver_get` queue with the `redelivered` flag set.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 171e5dbff18f47c98da2c1a3b7120622 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages total' + type: DEPENDENT + key: 'rabbitmq.queue.messages["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The count of total messages in the queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + trigger_prototypes: + - uuid: b6f52153a22144338e6d002287446ac1 + expression: 'min(/RabbitMQ node by HTTP/rabbitmq.queue.messages["{#VHOST}/{#QUEUE}"],5m)>{$RABBITMQ.MESSAGES.MAX.WARN:"{#QUEUE}"}' + name: 'RabbitMQ node: Too many messages in queue [{#VHOST}][{#QUEUE}]' + event_name: 'RabbitMQ node: Too many messages in queue [{#VHOST}][{#QUEUE}] (over {$RABBITMQ.MESSAGES.MAX.WARN:"{#QUEUE}"} for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: f55c5f66ddac46fd95c5379875342284 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages ready per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages_ready.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The number of messages per second ready to be delivered to clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages_ready_details.rate + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 67c9a8eee9a54eed946ab141927494c4 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages ready' + type: DEPENDENT + key: 'rabbitmq.queue.messages_ready["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The number of messages ready to be delivered to clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages_ready + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: a8cc3296990640a6bf5d7319ba2e8650 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages unacknowledged per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages_unacknowledged.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The number of messages per second delivered to clients but not yet acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages_unacknowledged_details.rate + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: bb6a84983caa486482e241c6bf7e9534 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages unacknowledged' + type: DEPENDENT + key: 'rabbitmq.queue.messages_unacknowledged["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The number of messages delivered to clients but not yet acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages_unacknowledged + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + graph_prototypes: + - uuid: 4e6b194fd13f4b97a66ee4d335958003 + name: 'RabbitMQ: Queue [{#VHOST}][{#QUEUE}]: Messages per second' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.ack.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.deliver.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '3' + color: F7941D + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.deliver_get.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.publish.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages_ready.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.redeliver.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages_unacknowledged.rate["{#VHOST}/{#QUEUE}"]' + - uuid: adba8787c1d14670a5ca3bf07d9dc663 + name: 'RabbitMQ: Queue [{#VHOST}][{#QUEUE}]: Messages status' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages["{#VHOST}/{#QUEUE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.ack["{#VHOST}/{#QUEUE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.deliver["{#VHOST}/{#QUEUE}"]' + - sortorder: '3' + color: F7941D + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.deliver_get["{#VHOST}/{#QUEUE}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.publish["{#VHOST}/{#QUEUE}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages_ready["{#VHOST}/{#QUEUE}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages.redeliver["{#VHOST}/{#QUEUE}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'RabbitMQ node by HTTP' + key: 'rabbitmq.queue.messages_unacknowledged["{#VHOST}/{#QUEUE}"]' + master_item: + key: rabbitmq.get_queues + lld_macro_paths: + - lld_macro: '{#NODE}' + path: $.node + - lld_macro: '{#QUEUE}' + path: $.name + - lld_macro: '{#VHOST}' + path: $.vhost + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(JSON.parse(value),[''node'',''name'',''vhost'']);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: rabbitmq + macros: + - macro: '{$RABBITMQ.API.HOST}' + value: '' + description: 'The hostname or IP of the API endpoint for the RabbitMQ.' + - macro: '{$RABBITMQ.API.PASSWORD}' + value: zabbix + - macro: '{$RABBITMQ.API.PORT}' + value: '15672' + description: 'The port of the RabbitMQ API endpoint.' + - macro: '{$RABBITMQ.API.SCHEME}' + value: http + description: 'The request scheme, which may be HTTP or HTTPS.' + - macro: '{$RABBITMQ.API.USER}' + value: zbx_monitor + - macro: '{$RABBITMQ.CLUSTER.NAME}' + value: rabbit + description: 'The name of the RabbitMQ cluster.' + - macro: '{$RABBITMQ.LLD.FILTER.QUEUE.MATCHES}' + value: '.*' + description: 'This macro is used in the discovery of queues. It can be overridden at host level or its linked template level.' + - macro: '{$RABBITMQ.LLD.FILTER.QUEUE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in the discovery of queues. It can be overridden at host level or its linked template level.' + - macro: '{$RABBITMQ.MESSAGES.MAX.WARN}' + value: '1000' + description: 'The maximum number of messages in the queue for a trigger expression.' + - macro: '{$RABBITMQ.NODE.NAME}' + description: 'The name of the RabbitMQ node.' + - macro: '{$RABBITMQ.RESPONSE_TIME.MAX.WARN}' + value: '10' + description: 'The maximum response time by the RabbitMQ expressed in seconds for a trigger expression.' + dashboards: + - uuid: 5e70f5ff6706442abc83ec1b206d9fe4 + name: 'RabbitMQ node status' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by HTTP' + name: 'RabbitMQ: Node status' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by HTTP' + name: 'RabbitMQ: Disk free' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by HTTP' + name: 'RabbitMQ: File descriptors' + - type: STRING + name: reference + value: AAAAE + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by HTTP' + name: 'RabbitMQ: Uptime' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by HTTP' + name: 'RabbitMQ: Memory used' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by HTTP' + name: 'RabbitMQ: Sockets' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: e65c3d3e8ea443a281b37c51ca461c26 + name: 'Alarm state' + mappings: + - value: '0' + newvalue: Ok + - value: '1' + newvalue: Alarm + - uuid: 55188bbb2ede4300a6292b373ee36ab7 + name: 'RabbitMQ healthcheck' + mappings: + - value: '0' + newvalue: Failed + - value: '1' + newvalue: Ok + - value: '2' + newvalue: Error + - uuid: aaf7d0b8b306412b8a3272343708518f + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 02f7ec07b4384795bbf5212e9ea06fb0 + name: 'RabbitMQ: Disk free' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'RabbitMQ node by HTTP' + key: rabbitmq.node.disk_free + - sortorder: '1' + drawtype: BOLD_LINE + color: FF0000 + item: + host: 'RabbitMQ node by HTTP' + key: rabbitmq.node.disk_free_limit + - uuid: 71eff9e96a8b46acbe1cf00d1e0cc388 + name: 'RabbitMQ: File descriptors' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ node by HTTP' + key: rabbitmq.node.fd_used + - uuid: d4e9c478e03c4ecab7538c3baa77f61f + name: 'RabbitMQ: Memory used' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'RabbitMQ node by HTTP' + key: rabbitmq.node.mem_used + - sortorder: '1' + drawtype: BOLD_LINE + color: FF0000 + item: + host: 'RabbitMQ node by HTTP' + key: rabbitmq.node.mem_limit + - uuid: e6497c3e2847407ca8f912e34d9357b4 + name: 'RabbitMQ: Node status' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'RabbitMQ node by HTTP' + key: rabbitmq.node.running + - uuid: f3c071a0c20340f1bf86ecd66b911bb2 + name: 'RabbitMQ: Sockets' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'RabbitMQ node by HTTP' + key: rabbitmq.node.sockets_used + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ node by HTTP' + key: rabbitmq.node.sockets_total + - uuid: 415ce1917ecc4575bcbeeaf3b01df4cb + name: 'RabbitMQ: Uptime' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ node by HTTP' + key: rabbitmq.node.uptime diff --git a/RabbitMQ_node_by_Zabbix_agent.yaml b/RabbitMQ_node_by_Zabbix_agent.yaml new file mode 100644 index 0000000..65c7c6a --- /dev/null +++ b/RabbitMQ_node_by_Zabbix_agent.yaml @@ -0,0 +1,1623 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: d5dc11ae9ab143a89c4be534bbb35188 + template: 'RabbitMQ node by Zabbix agent' + name: 'RabbitMQ node by Zabbix agent' + description: | + Get node metrics from RabbitMQ management plugin provided an HTTP-based API using Zabbix agent. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387226-discussion-thread-for-official-zabbix-template-rabbitmq + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: b1f191f9077f4382b5b87e0085ae2622 + name: 'Service response time' + key: 'net.tcp.service.perf["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"]' + value_type: FLOAT + units: s + tags: + - tag: component + value: system + - uuid: 6229b623f5ff40f9a65e9573b3b86e3f + name: 'Service ping' + key: 'net.tcp.service["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + - uuid: 8201cc537b124d9292fcf692922ee0ad + name: 'Get processes summary' + key: 'proc.get[{$RABBITMQ.PROCESS.NAME.PARAMETER},,,summary]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The aggregated data of summary metrics for all processes.' + tags: + - tag: component + value: raw + - uuid: 7dad79be93bd46bba7a2540b38080b06 + name: 'Free disk space' + type: DEPENDENT + key: rabbitmq.node.disk_free + delay: '0' + units: B + description: 'The current free disk space.' + preprocessing: + - type: JSONPATH + parameters: + - $.disk_free + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: storage + - uuid: d8de1eb13f024ce99388fc4bb68d6ad0 + name: 'Disk free alarm' + type: DEPENDENT + key: rabbitmq.node.disk_free_alarm + delay: '0' + description: 'It checks whether the node has a disk alarm or not.' + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - $.disk_free_alarm + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: storage + triggers: + - uuid: b68cb12ecd4046fd80a717fb557f04e8 + expression: 'last(/RabbitMQ node by Zabbix agent/rabbitmq.node.disk_free_alarm)=1' + name: 'RabbitMQ node: Free disk space alarm' + event_name: 'RabbitMQ node: Free disk space alarm (Free space threshold has been reached)' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'For more details see [Free Disk Space Alarms](https://www.rabbitmq.com/disk-alarms.html).' + tags: + - tag: scope + value: performance + - uuid: 4e62b476bd11497f9190d1f720f22f75 + name: 'Disk free limit' + type: DEPENDENT + key: rabbitmq.node.disk_free_limit + delay: '0' + units: B + description: 'The free space limit of a disk expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.disk_free_limit + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: storage + - uuid: 09aeab86c69846eb82d27c2f82f46d2b + name: 'Used file descriptors' + type: DEPENDENT + key: rabbitmq.node.fd_used + delay: '0' + description: 'The descriptors of the used file.' + preprocessing: + - type: JSONPATH + parameters: + - $.fd_used + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: storage + - uuid: e059b278ba384133a72dc723c2b2c40b + name: 'Memory alarm' + type: DEPENDENT + key: rabbitmq.node.mem_alarm + delay: '0' + description: 'It checks whether the host has a memory alarm or not.' + valuemap: + name: 'Alarm state' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_alarm + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: memory + triggers: + - uuid: ec6ae727fe774b0fa56bb4d9ad773e35 + expression: 'last(/RabbitMQ node by Zabbix agent/rabbitmq.node.mem_alarm)=1' + name: 'RabbitMQ node: Memory alarm' + event_name: 'RabbitMQ node: Memory alarm (Memory usage threshold has been reached)' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'For more details see [Memory Alarms](https://www.rabbitmq.com/memory.html).' + tags: + - tag: scope + value: performance + - uuid: 54bd4a47d635444e8e2e955325dbb976 + name: 'Memory limit' + type: DEPENDENT + key: rabbitmq.node.mem_limit + delay: '0' + units: B + description: 'The memory usage with high watermark properties expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_limit + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: memory + - uuid: d6a01ec409a6449986c5c0a81ffaf914 + name: 'Memory used' + type: DEPENDENT + key: rabbitmq.node.mem_used + delay: '0' + units: B + description: 'The memory usage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_used + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: memory + - uuid: db91f84a5ad7412c959fbfe4e3b6df88 + name: 'Management plugin version' + type: DEPENDENT + key: rabbitmq.node.overview.management_version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of the management plugin in use.' + preprocessing: + - type: JSONPATH + parameters: + - $.management_version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: system + - uuid: 52a0be5049ee40748761d301a644315b + name: 'RabbitMQ version' + type: DEPENDENT + key: rabbitmq.node.overview.rabbitmq_version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of the RabbitMQ on the node, which processed this request.' + preprocessing: + - type: JSONPATH + parameters: + - $.rabbitmq_version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + tags: + - tag: component + value: system + triggers: + - uuid: daf98bb4593d4697bc51423b2f65ba41 + expression: 'last(/RabbitMQ node by Zabbix agent/rabbitmq.node.overview.rabbitmq_version,#1)<>last(/RabbitMQ node by Zabbix agent/rabbitmq.node.overview.rabbitmq_version,#2) and length(last(/RabbitMQ node by Zabbix agent/rabbitmq.node.overview.rabbitmq_version))>0' + name: 'RabbitMQ node: Version has changed' + event_name: 'RabbitMQ node: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'RabbitMQ version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5e8c1ed0b073461eb14477edac3c756a + name: 'Number of network partitions' + type: DEPENDENT + key: rabbitmq.node.partitions + delay: '0' + description: 'The number of network partitions, which this node "sees".' + preprocessing: + - type: JSONPATH + parameters: + - $.partitions + - type: JAVASCRIPT + parameters: + - 'return JSON.parse(value).length;' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: network + triggers: + - uuid: 5bed266725e94000804b0ecc7bce6209 + expression: 'min(/RabbitMQ node by Zabbix agent/rabbitmq.node.partitions,5m)>0' + name: 'RabbitMQ node: Number of network partitions is too high' + event_name: 'RabbitMQ node: Number of network partitions is too high (more than 0 for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'For more details see [Detecting Network Partitions](https://www.rabbitmq.com/partitions.html#detecting).' + tags: + - tag: scope + value: performance + - uuid: 087fcb3992ef4e35bacd4b6e69ef93d3 + name: 'Is running' + type: DEPENDENT + key: rabbitmq.node.running + delay: '0' + description: 'It "sees" whether the node is running or not.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.running + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: system + - uuid: 1ae6f429e99d4ddaa54aa6adab6b8100 + name: 'Runtime run queue' + type: DEPENDENT + key: rabbitmq.node.run_queue + delay: '0' + description: 'The average number of Erlang processes waiting to run.' + preprocessing: + - type: JSONPATH + parameters: + - $.run_queue + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: system + - uuid: 3aa508520f224150a05a7ebb64d22c5e + name: 'Sockets available' + type: DEPENDENT + key: rabbitmq.node.sockets_total + delay: '0' + description: 'The file descriptors available for use as sockets.' + preprocessing: + - type: JSONPATH + parameters: + - $.sockets_total + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: system + - uuid: de2cbe02ff6c47d78b6c7105709f4805 + name: 'Sockets used' + type: DEPENDENT + key: rabbitmq.node.sockets_used + delay: '0' + description: 'The number of file descriptors used as sockets.' + preprocessing: + - type: JSONPATH + parameters: + - $.sockets_used + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: system + - uuid: a28b6c8cca5544b79c2d9946c1978c7e + name: Uptime + type: DEPENDENT + key: rabbitmq.node.uptime + delay: '0' + value_type: FLOAT + units: s + description: 'Uptime expressed in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + tags: + - tag: component + value: system + triggers: + - uuid: 729c448ebabb417bb7ce17b1634c4484 + expression: 'last(/RabbitMQ node by Zabbix agent/rabbitmq.node.uptime)<10m' + name: 'RabbitMQ node: Host has been restarted' + event_name: 'RabbitMQ node: {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: 61730555a0ae4f798ea740effb82764c + name: 'Get nodes' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"]' + history: 1h + value_type: TEXT + trends: '0' + description: 'The HTTP API endpoint that returns metrics of the nodes.' + preprocessing: + - type: REGEX + parameters: + - '\n\s?\n(.*)' + - \1 + tags: + - tag: component + value: raw + - uuid: 1af326f40cdb407a96b34025062b4743 + name: 'Get node overview' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + history: 1h + value_type: TEXT + trends: '0' + description: 'The HTTP API endpoint that returns cluster-wide metrics.' + preprocessing: + - type: REGEX + parameters: + - '\n\s?\n(.*)' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: raw + - uuid: 7fb61ad564db42d5a373912491f5c9d3 + name: 'Get queues' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/queues"]' + history: 1h + value_type: TEXT + trends: '0' + description: 'The HTTP API endpoint that returns metrics of the queues metrics.' + preprocessing: + - type: REGEX + parameters: + - '\n\s?\n(.*)' + - \1 + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 04ef7d13809c45009553815f60ef5ba8 + name: 'Health Check 3.8.9- discovery' + type: DEPENDENT + key: rabbitmq.healthcheck.v389.discovery + delay: '0' + description: 'Specific metrics for the versions: up to and including 3.8.4.' + item_prototypes: + - uuid: 8b959a9d03dc4ae8bed7292973f4fcc4 + name: 'Healthcheck{#SINGLETON}' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/healthchecks/node{#SINGLETON}"]' + description: 'It checks whether the RabbitMQ application is running; and whether the channels and queues can be listed successfully; and that no alarms are in effect.' + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - '\n\s?\n(.*)' + - \1 + - type: JSONPATH + parameters: + - $.status + - type: BOOL_TO_DECIMAL + parameters: + - '' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + tags: + - tag: component + value: health + - tag: component + value: system + trigger_prototypes: + - uuid: bf6bcbda20ed46cbb779d9c1f446dfa8 + expression: 'last(/RabbitMQ node by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/healthchecks/node{#SINGLETON}"])=0' + name: 'RabbitMQ node: Node healthcheck failed' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'For more details see [Health Checks](https://www.rabbitmq.com/monitoring.html#health-checks).' + tags: + - tag: scope + value: availability + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + preprocessing: + - type: JSONPATH + parameters: + - $.management_version + - type: JAVASCRIPT + parameters: + - | + var rabbit_version = parseInt(value.split('.')[0]) * 10000 + + parseInt(value.split('.')[1]) * 100 + + parseInt(value.split('.')[2]); + return JSON.stringify(rabbit_version < 30810 ? [{ '{#SINGLETON}': '' }] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3c0021a3e57142eb806deb5b47b6700a + name: 'Health Check 3.8.10+ discovery' + type: DEPENDENT + key: rabbitmq.healthcheck.v3810.discovery + delay: '0' + description: 'Specific metrics for the versions: up to and including 3.8.10.' + item_prototypes: + - uuid: 0f1cd729d8f4447db25e0af19eae595d + name: 'Healthcheck: expiration date on the certificates{#SINGLETON}' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/certificate-expiration/1/months{#SINGLETON}"]' + description: | + It checks the expiration date on the certificates for every listener configured to use the Transport Layer Security (TLS). + It responds with a status code `200 OK` if all the certificates are valid (have not expired). + Otherwise, it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: component + value: certificate + - tag: component + value: health + trigger_prototypes: + - uuid: d180912136c74e5cb246655ecab75f57 + expression: 'last(/RabbitMQ node by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/certificate-expiration/1/months{#SINGLETON}"])=0' + name: 'RabbitMQ node: There are valid TLS certificates expiring in the next month' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'It checks if there are valid TLS certificates expiring in the next month. This is the default API endpoint path: http://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + - uuid: 701449b128cb42cdb971fc608ba9f29b + name: 'Healthcheck: local alarms in effect on this node{#SINGLETON}' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/local-alarms{#SINGLETON}"]' + description: | + It responds with a status code `200 OK` if there are no local alarms in effect on the target node. + Otherwise, it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: component + value: health + - tag: component + value: system + trigger_prototypes: + - uuid: 62962f18baa4480294e097fec2cc5e4c + expression: 'last(/RabbitMQ node by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/local-alarms{#SINGLETON}"])=0' + name: 'RabbitMQ node: There are active alarms in the node' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'It checks the active alarms in the nodes via API. This is the default API endpoint path: http://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + - uuid: 7a07966d8dde4f2caa9ff95693b86974 + name: 'Healthcheck: classic mirrored queues without synchronized mirrors online{#SINGLETON}' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/node-is-mirror-sync-critical{#SINGLETON}"]' + description: | + It checks if there are classic mirrored queues without synchronized mirrors online (queues that would potentially lose data if the target node is shut down). + It responds with a status code `200 OK` if there are no such classic mirrored queues. + Otherwise, it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: component + value: health + - tag: component + value: queues + trigger_prototypes: + - uuid: 19e392f9e48e4c8287e04751a2a73843 + expression: 'last(/RabbitMQ node by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/node-is-mirror-sync-critical{#SINGLETON}"])=0' + name: 'RabbitMQ node: There are queues that could potentially lose data if this node goes offline.' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'It checks whether there are queues that could potentially lose data if this node goes offline via API. This is the default API endpoint path: http://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + - uuid: f6ec1bb1cc4741be852136fac2c63333 + name: 'Healthcheck: queues with minimum online quorum{#SINGLETON}' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/node-is-quorum-critical{#SINGLETON}"]' + description: | + It checks if there are quorum queues with minimum online quorum (queues that would lose their quorum and availability if the target node is shut down). + It responds with a status code `200 OK` if there are no such quorum queues. + Otherwise, it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: component + value: health + - tag: component + value: queues + trigger_prototypes: + - uuid: e063b6dde6a0484ba1561861d8b1f0c1 + expression: 'last(/RabbitMQ node by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/node-is-quorum-critical{#SINGLETON}"])=0' + name: 'RabbitMQ node: There are queues that would lose their quorum and availability if this node is shut down.' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'It checks if there are queues that could potentially lose data if this node goes offline via API. This is the default API endpoint path: http://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + - uuid: 0d1ad3daf2bb46dba2c9913c1684a0d4 + name: 'Healthcheck: virtual hosts on this node{#SINGLETON}' + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/virtual-hosts{#SINGLETON}"]' + description: | + It responds with It responds with a status code `200 OK` if all virtual hosts are running on the target node. + Otherwise it responds with a status code `503 Service Unavailable`. + valuemap: + name: 'RabbitMQ healthcheck' + preprocessing: + - type: REGEX + parameters: + - 'HTTP\/[\d.]+\s+(\d{3})' + - \1 + - type: JAVASCRIPT + parameters: + - | + var idx = { + '200': 1, + '503': 0 + } + + return typeof idx[value] === 'undefined' ? 2 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + tags: + - tag: component + value: health + - tag: component + value: system + trigger_prototypes: + - uuid: b61117e5eeff4d41a9a2f1729ec174b2 + expression: 'last(/RabbitMQ node by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/health/checks/virtual-hosts{#SINGLETON}"])=0' + name: 'RabbitMQ node: There are not running virtual hosts' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'It checks if there are not running virtual hosts via API. This is the default API endpoint path: http://{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/index.html.' + tags: + - tag: scope + value: notice + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/overview"]' + preprocessing: + - type: JSONPATH + parameters: + - $.management_version + - type: JAVASCRIPT + parameters: + - | + var rabbit_version = parseInt(value.split('.')[0]) * 10000 + + parseInt(value.split('.')[1]) * 100 + + parseInt(value.split('.')[2]); + return JSON.stringify(rabbit_version >= 30810 ? [{ '{#SINGLETON}': '' }] : []); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 7cdf2316fa664f34b5de4f315bb7caf9 + name: 'RabbitMQ process discovery' + type: DEPENDENT + key: rabbitmq.proc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#RABBITMQ.NAME}' + value: '{$RABBITMQ.PROCESS_NAME}' + formulaid: A + description: 'The discovery of the RabbitMQ summary processes.' + item_prototypes: + - uuid: 0b195bf594c44b1f869b4a7671f61453 + name: 'CPU utilization' + key: 'proc.cpu.util[{#RABBITMQ.NAME}]' + value_type: FLOAT + units: '%' + description: 'The percentage of the CPU utilization by a process {#RABBITMQ.NAME}.' + tags: + - tag: component + value: cpu + - uuid: 882cf9cfecb448f3af17e12bf9aa7bef + name: 'Get process data' + type: DEPENDENT + key: 'rabbitmq.proc.get[{#RABBITMQ.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The summary metrics aggregated by a process {#RABBITMQ.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@["name"]=="{#RABBITMQ.NAME}")].first()' + error_handler: CUSTOM_VALUE + error_handler_params: 'Failed to retrieve process {#RABBITMQ.NAME} data' + master_item: + key: 'proc.get[{$RABBITMQ.PROCESS.NAME.PARAMETER},,,summary]' + tags: + - tag: component + value: raw + - uuid: 8f1c8d2449c44ab590842184d9deb3a6 + name: 'Number of running processes' + type: DEPENDENT + key: 'rabbitmq.proc.num[{#RABBITMQ.NAME}]' + delay: '0' + description: 'The number of running processes {#RABBITMQ.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.processes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'rabbitmq.proc.get[{#RABBITMQ.NAME}]' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 2979bc7d779b404696f7eac273e99ea7 + expression: 'last(/RabbitMQ node by Zabbix agent/rabbitmq.proc.num[{#RABBITMQ.NAME}])=0' + name: 'RabbitMQ node: Process is not running' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 875ab477c06943d7881ee896936ee8a2 + name: 'Memory usage, %' + type: DEPENDENT + key: 'rabbitmq.proc.pmem[{#RABBITMQ.NAME}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of real memory used by a process {#RABBITMQ.NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.pmem + error_handler: DISCARD_VALUE + master_item: + key: 'rabbitmq.proc.get[{#RABBITMQ.NAME}]' + tags: + - tag: component + value: memory + - uuid: 6f13f672d8ce4c9592e0f3f5ec3b0ec4 + name: 'Memory usage (rss)' + type: DEPENDENT + key: 'rabbitmq.proc.rss[{#RABBITMQ.NAME}]' + delay: '0' + units: B + description: 'The summary of resident set size memory used by a process {#RABBITMQ.NAME} expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.rss + error_handler: DISCARD_VALUE + master_item: + key: 'rabbitmq.proc.get[{#RABBITMQ.NAME}]' + tags: + - tag: component + value: memory + - uuid: 4faac75027d14304ab071602df8f2937 + name: 'Memory usage (vsize)' + type: DEPENDENT + key: 'rabbitmq.proc.vmem[{#RABBITMQ.NAME}]' + delay: '0' + units: B + description: 'The summary of virtual memory used by a process {#RABBITMQ.NAME} expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.vsize + error_handler: DISCARD_VALUE + master_item: + key: 'rabbitmq.proc.get[{#RABBITMQ.NAME}]' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 4f2a88d09b1b49879d80e0794ec19e0e + expression: 'nodata(/RabbitMQ node by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/nodes/{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}?memory=true"],30m)=1 and last(/RabbitMQ node by Zabbix agent/rabbitmq.proc.num[{#RABBITMQ.NAME}])>0' + name: 'RabbitMQ node: Failed to fetch nodes data' + event_name: 'RabbitMQ node: Failed to fetch nodes data (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: 'RabbitMQ node: Process is not running' + expression: 'last(/RabbitMQ node by Zabbix agent/rabbitmq.proc.num[{#RABBITMQ.NAME}])=0' + tags: + - tag: scope + value: availability + - uuid: 253acf98446e4790975b330d44dd6b96 + expression: 'max(/RabbitMQ node by Zabbix agent/rabbitmq.node.running,5m)=0 and last(/RabbitMQ node by Zabbix agent/rabbitmq.proc.num[{#RABBITMQ.NAME}])>0' + name: 'RabbitMQ node: Node is not running' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'RabbitMQ node is not running.' + dependencies: + - name: 'RabbitMQ node: Service is down' + expression: 'last(/RabbitMQ node by Zabbix agent/net.tcp.service["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"])=0 and last(/RabbitMQ node by Zabbix agent/rabbitmq.proc.num[{#RABBITMQ.NAME}])>0' + tags: + - tag: scope + value: availability + - uuid: af5cfb0004e04562a9720b9e1b41fd5b + expression: 'last(/RabbitMQ node by Zabbix agent/net.tcp.service["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"])=0 and last(/RabbitMQ node by Zabbix agent/rabbitmq.proc.num[{#RABBITMQ.NAME}])>0' + name: 'RabbitMQ node: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 5cb80a7552d74e44a83d0825f039f89f + expression: 'min(/RabbitMQ node by Zabbix agent/net.tcp.service.perf["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"],5m)>{$RABBITMQ.RESPONSE_TIME.MAX.WARN} and last(/RabbitMQ node by Zabbix agent/rabbitmq.proc.num[{#RABBITMQ.NAME}])>0' + name: 'RabbitMQ node: Service response time is too high' + event_name: 'RabbitMQ node: Service response time is too high (over {$RABBITMQ.RESPONSE_TIME.MAX.WARN}s for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'RabbitMQ node: Service is down' + expression: 'last(/RabbitMQ node by Zabbix agent/net.tcp.service["{$RABBITMQ.API.SCHEME}","{$RABBITMQ.API.HOST}","{$RABBITMQ.API.PORT}"])=0 and last(/RabbitMQ node by Zabbix agent/rabbitmq.proc.num[{#RABBITMQ.NAME}])>0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 180a5d36d48f44fbaf6f86c5cf9e10f9 + name: 'RabbitMQ: Memory usage[{#RABBITMQ.NAME}]' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.proc.vmem[{#RABBITMQ.NAME}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.proc.rss[{#RABBITMQ.NAME}]' + master_item: + key: 'proc.get[{$RABBITMQ.PROCESS.NAME.PARAMETER},,,summary]' + lld_macro_paths: + - lld_macro: '{#RABBITMQ.NAME}' + path: $.name + - uuid: d1d32fc6ae1f445a98144a31214ca825 + name: 'Queues discovery' + type: DEPENDENT + key: rabbitmq.queues.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NODE}' + value: '{$RABBITMQ.CLUSTER.NAME}@{$RABBITMQ.NODE.NAME}' + formulaid: A + - macro: '{#QUEUE}' + value: '{$RABBITMQ.LLD.FILTER.QUEUE.MATCHES}' + formulaid: B + - macro: '{#QUEUE}' + value: '{$RABBITMQ.LLD.FILTER.QUEUE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'The metrics for an individual queue.' + item_prototypes: + - uuid: 158f41423b094efcb90ac273d1e6349c + name: 'Queue [{#VHOST}][{#QUEUE}]: Get data' + type: DEPENDENT + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The HTTP API endpoint that returns [{#VHOST}][{#QUEUE}] queue metrics' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "{#QUEUE}" && @.vhost == "{#VHOST}")].first()' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/queues"]' + tags: + - tag: component + value: raw + - uuid: fcbee789f2864010b26ac69894659e77 + name: 'Queue [{#VHOST}][{#QUEUE}]: Consumers' + type: DEPENDENT + key: 'rabbitmq.queue.consumers["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The number of consumers.' + preprocessing: + - type: JSONPATH + parameters: + - $.consumers + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: consumers + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 4b4491d5fb2b41eeae044c3d28de1b18 + name: 'Queue [{#VHOST}][{#QUEUE}]: Memory' + type: DEPENDENT + key: 'rabbitmq.queue.memory["{#VHOST}/{#QUEUE}"]' + delay: '0' + units: B + description: 'The bytes of memory consumed by the Erlang process associated with the queue, including stack, heap and internal structures.' + preprocessing: + - type: JSONPATH + parameters: + - $.memory + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: memory + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 223fa7a8372f4e9883d376c9f3e1af2e + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages acknowledged per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.ack.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The number of messages (per second) delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 335513a34e6a4909acfa1be278dd31b3 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages acknowledged' + type: DEPENDENT + key: 'rabbitmq.queue.messages.ack["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The number of messages delivered to clients and acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.ack + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 55b774e5aac249edbb8881373060b15b + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages delivered per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.deliver.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The count of messages (per second) delivered to consumers in acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 2a87988327e1483c84d3f1867bab367f + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages delivered' + type: DEPENDENT + key: 'rabbitmq.queue.messages.deliver["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The count of messages delivered to consumers in acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 3f3024da744349b59c7810dfd10d11a3 + name: 'Queue [{#VHOST}][{#QUEUE}]: Sum of messages delivered per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.deliver_get.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of delivery per second. The sum of messages delivered (per second) to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: ad5e9fa0260e4170887fb2dfdc508959 + name: 'Queue [{#VHOST}][{#QUEUE}]: Sum of messages delivered' + type: DEPENDENT + key: 'rabbitmq.queue.messages.deliver_get["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The sum of messages delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.deliver_get + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 393306b9cb0148038d02ad9c48cf1fbb + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages published per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.publish.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of published messages per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 44814c9f6f154fdcbab66249d0777eae + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages published' + type: DEPENDENT + key: 'rabbitmq.queue.messages.publish["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The count of published messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.publish + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 9096e81341374d2fb7dd58e932783afc + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The count of total messages per second in the queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages_details.rate + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 8902103fd86746d0851b75a1262e36a9 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages redelivered per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages.redeliver.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The rate of messages redelivered per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver_details.rate + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 3ac1a4b83c9f4d4c8a438d39aca8e82a + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages redelivered' + type: DEPENDENT + key: 'rabbitmq.queue.messages.redeliver["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The count of subset of messages in the `deliver_get` queue with the `redelivered` flag set.' + preprocessing: + - type: JSONPATH + parameters: + - $.message_stats.redeliver + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: aabd7d6fe6a047d186504386d3a48ae1 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages total' + type: DEPENDENT + key: 'rabbitmq.queue.messages["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The count of total messages in the queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + trigger_prototypes: + - uuid: 58986cee2b4846b3b7bd3caf772d7ac6 + expression: 'min(/RabbitMQ node by Zabbix agent/rabbitmq.queue.messages["{#VHOST}/{#QUEUE}"],5m)>{$RABBITMQ.MESSAGES.MAX.WARN:"{#QUEUE}"}' + name: 'RabbitMQ node: Too many messages in queue [{#VHOST}][{#QUEUE}]' + event_name: 'RabbitMQ node: Too many messages in queue [{#VHOST}][{#QUEUE}] (over {$RABBITMQ.MESSAGES.MAX.WARN:"{#QUEUE}"} for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: d2e1a2857b314ed3818f92312f5d0043 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages ready per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages_ready.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The number of messages per second ready to be delivered to clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages_ready_details.rate + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 4a75c2d9e0354f47b1c8243bad17bd58 + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages ready' + type: DEPENDENT + key: 'rabbitmq.queue.messages_ready["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The number of messages ready to be delivered to clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages_ready + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: d5d88879e3b844d7b03ab956a673daff + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages unacknowledged per second' + type: DEPENDENT + key: 'rabbitmq.queue.messages_unacknowledged.rate["{#VHOST}/{#QUEUE}"]' + delay: '0' + value_type: FLOAT + description: 'The number of messages per second delivered to clients but not yet acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages_unacknowledged_details.rate + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + - uuid: 252dcf1262014ce599a2eec81f7223eb + name: 'Queue [{#VHOST}][{#QUEUE}]: Messages unacknowledged' + type: DEPENDENT + key: 'rabbitmq.queue.messages_unacknowledged["{#VHOST}/{#QUEUE}"]' + delay: '0' + description: 'The number of messages delivered to clients but not yet acknowledged.' + preprocessing: + - type: JSONPATH + parameters: + - $.messages_unacknowledged + master_item: + key: 'rabbitmq.get_exchanges["{#VHOST}/{#QUEUE}"]' + tags: + - tag: component + value: messages + - tag: queue + value: '{#QUEUE}' + - tag: vhost + value: '{#VHOST}' + graph_prototypes: + - uuid: a6223df79d334c29ada36ba20729b885 + name: 'RabbitMQ: Queue [{#VHOST}][{#QUEUE}]: Messages per second' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.ack.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.deliver.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '3' + color: F7941D + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.deliver_get.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.publish.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages_ready.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.redeliver.rate["{#VHOST}/{#QUEUE}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages_unacknowledged.rate["{#VHOST}/{#QUEUE}"]' + - uuid: 03c88aa9d8b94389aafcf607dff1756f + name: 'RabbitMQ: Queue [{#VHOST}][{#QUEUE}]: Messages status' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages["{#VHOST}/{#QUEUE}"]' + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.ack["{#VHOST}/{#QUEUE}"]' + - sortorder: '2' + color: 00611C + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.deliver["{#VHOST}/{#QUEUE}"]' + - sortorder: '3' + color: F7941D + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.deliver_get["{#VHOST}/{#QUEUE}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.publish["{#VHOST}/{#QUEUE}"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages_ready["{#VHOST}/{#QUEUE}"]' + - sortorder: '6' + color: C7A72D + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages.redeliver["{#VHOST}/{#QUEUE}"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'RabbitMQ node by Zabbix agent' + key: 'rabbitmq.queue.messages_unacknowledged["{#VHOST}/{#QUEUE}"]' + master_item: + key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.HOST}:{$RABBITMQ.API.PORT}/api/queues"]' + lld_macro_paths: + - lld_macro: '{#NODE}' + path: $.node + - lld_macro: '{#QUEUE}' + path: $.name + - lld_macro: '{#VHOST}' + path: $.vhost + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(JSON.parse(value),[''node'',''name'',''vhost'']);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: rabbitmq + macros: + - macro: '{$RABBITMQ.API.HOST}' + value: 127.0.0.1 + description: 'The hostname or IP of the API endpoint for the RabbitMQ.' + - macro: '{$RABBITMQ.API.PASSWORD}' + value: zabbix + - macro: '{$RABBITMQ.API.PORT}' + value: '15672' + description: 'The port of the RabbitMQ API endpoint.' + - macro: '{$RABBITMQ.API.SCHEME}' + value: http + description: 'The request scheme, which may be HTTP or HTTPS.' + - macro: '{$RABBITMQ.API.USER}' + value: zbx_monitor + - macro: '{$RABBITMQ.CLUSTER.NAME}' + value: rabbit + description: 'The name of the RabbitMQ cluster.' + - macro: '{$RABBITMQ.LLD.FILTER.QUEUE.MATCHES}' + value: '.*' + description: 'This macro is used in the discovery of queues. It can be overridden at host level or its linked template level.' + - macro: '{$RABBITMQ.LLD.FILTER.QUEUE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in the discovery of queues. It can be overridden at host level or its linked template level.' + - macro: '{$RABBITMQ.MESSAGES.MAX.WARN}' + value: '1000' + description: 'The maximum number of messages in the queue for a trigger expression.' + - macro: '{$RABBITMQ.NODE.NAME}' + description: 'The name of the RabbitMQ node.' + - macro: '{$RABBITMQ.PROCESS.NAME.PARAMETER}' + description: 'The process name of the RabbitMQ server used in the item key `proc.get`. It could be specified if the correct process name is known.' + - macro: '{$RABBITMQ.PROCESS_NAME}' + value: beam.smp + description: 'The process name filter for the RabbitMQ process discovery.' + - macro: '{$RABBITMQ.RESPONSE_TIME.MAX.WARN}' + value: '10' + description: 'The maximum response time by the RabbitMQ expressed in seconds for a trigger expression.' + dashboards: + - uuid: ce0af043ed2c4e7c988674c9ecb787d6 + name: 'RabbitMQ node status' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by Zabbix agent' + name: 'RabbitMQ: Node status' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by Zabbix agent' + name: 'RabbitMQ: Disk free' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by Zabbix agent' + name: 'RabbitMQ: File descriptors' + - type: STRING + name: reference + value: AAAAE + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by Zabbix agent' + name: 'RabbitMQ: Uptime' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by Zabbix agent' + name: 'RabbitMQ: Memory used' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'RabbitMQ node by Zabbix agent' + name: 'RabbitMQ: Sockets' + - type: STRING + name: reference + value: AAAAF + valuemaps: + - uuid: ce579def20ac488dbce1ff69baaa8c50 + name: 'Alarm state' + mappings: + - value: '0' + newvalue: Ok + - value: '1' + newvalue: Alarm + - uuid: 08ee896f31a1457a8e9b4f6f251700d4 + name: 'RabbitMQ healthcheck' + mappings: + - value: '0' + newvalue: Failed + - value: '1' + newvalue: Ok + - value: '2' + newvalue: Error + - uuid: c369d410303349b4973431b6ff8dcb85 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 72472749150041d59a52ce5abb3dc03e + name: 'RabbitMQ: Disk free' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'RabbitMQ node by Zabbix agent' + key: rabbitmq.node.disk_free + - sortorder: '1' + drawtype: BOLD_LINE + color: FF0000 + item: + host: 'RabbitMQ node by Zabbix agent' + key: rabbitmq.node.disk_free_limit + - uuid: 132133fc0fd04002a5a50fc0d5169e6a + name: 'RabbitMQ: File descriptors' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ node by Zabbix agent' + key: rabbitmq.node.fd_used + - uuid: a5949ccf83434f1fb26cfe0a3671085e + name: 'RabbitMQ: Memory used' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'RabbitMQ node by Zabbix agent' + key: rabbitmq.node.mem_used + - sortorder: '1' + drawtype: BOLD_LINE + color: FF0000 + item: + host: 'RabbitMQ node by Zabbix agent' + key: rabbitmq.node.mem_limit + - uuid: 358fb67c294d4486a79797818ebde851 + name: 'RabbitMQ: Node status' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'RabbitMQ node by Zabbix agent' + key: rabbitmq.node.running + - uuid: 7e5fec850547465091a38f78268a207f + name: 'RabbitMQ: Sockets' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'RabbitMQ node by Zabbix agent' + key: rabbitmq.node.sockets_used + - sortorder: '1' + color: F63100 + item: + host: 'RabbitMQ node by Zabbix agent' + key: rabbitmq.node.sockets_total + - uuid: bf2b0b66f4d94549aae9cbe04dfe9bd2 + name: 'RabbitMQ: Uptime' + graph_items: + - color: 199C0D + item: + host: 'RabbitMQ node by Zabbix agent' + key: rabbitmq.node.uptime diff --git a/Redis_by_Zabbix_agent_2.yaml b/Redis_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..4ee5008 --- /dev/null +++ b/Redis_by_Zabbix_agent_2.yaml @@ -0,0 +1,3023 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: e111446745a1425b862f8727ae63bce4 + template: 'Redis by Zabbix agent 2' + name: 'Redis by Zabbix agent 2' + description: | + Get Redis metrics from plugin for the New Zabbix Agent (zabbix-agent2). + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/389050-discussion-thread-for-official-zabbix-template-redis + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Databases + items: + - uuid: bc4989f098954259924cbee6717519a7 + name: 'Blocked clients' + type: DEPENDENT + key: redis.clients.blocked + delay: '0' + description: 'Retrieves blocked clients from the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.blocked_clients + master_item: + key: redis.clients.info_raw + tags: + - tag: component + value: connections + - uuid: 6140e8ff18fe41c6b65165b0f5346c7b + name: 'Connected clients' + type: DEPENDENT + key: redis.clients.connected + delay: '0' + description: 'Monitors the number of active Redis server clients.' + preprocessing: + - type: JSONPATH + parameters: + - $.connected_clients + master_item: + key: redis.clients.info_raw + tags: + - tag: component + value: connections + - uuid: daff9d68e5c6439082842959224ff709 + name: 'Get Client info' + type: DEPENDENT + key: redis.clients.info_raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Extracts client-related information from the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.Clients + error_handler: DISCARD_VALUE + master_item: + key: 'redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"]' + tags: + - tag: component + value: raw + - uuid: 3f5d6532f403436c823e1461e49e54c2 + name: 'Max input buffer' + type: DEPENDENT + key: redis.clients.max_input_buffer + delay: '0' + description: 'Monitors maximum input buffer size of Redis server clients.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var clients = JSON.parse(value) + return clients.client_recent_max_input_buffer || clients.client_biggest_input_buf + master_item: + key: redis.clients.info_raw + tags: + - tag: component + value: connections + - uuid: 44788aa774e64fe685fe6496a9bea97d + name: 'Max output buffer' + type: DEPENDENT + key: redis.clients.max_output_buffer + delay: '0' + description: 'Monitors maximum output buffer size of Redis server clients.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var clients = JSON.parse(value) + return clients.client_recent_max_output_buffer || clients.client_longest_output_list + master_item: + key: redis.clients.info_raw + tags: + - tag: component + value: connections + - uuid: 74f9fe26bdaf4a7bb86214bd7d500363 + name: 'Cluster enabled' + type: DEPENDENT + key: redis.cluster.enabled + delay: '0' + description: 'Indicates if Redis server cluster mode is enabled.' + valuemap: + name: 'Redis flag' + preprocessing: + - type: JSONPATH + parameters: + - $.Cluster.cluster_enabled + master_item: + key: 'redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"]' + tags: + - tag: component + value: system + - uuid: 066486e3be25406185e624611eeb167a + name: 'Max clients' + type: DEPENDENT + key: redis.config.maxclients + delay: '0' + description: | + Max number of connected clients at the same time. + Once the limit is reached Redis will close all the new connections sending an error "max number of clients reached". + preprocessing: + - type: JSONPATH + parameters: + - $.maxclients + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'redis.config["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.PATTERN}","{$REDIS.USERNAME}"]' + tags: + - tag: component + value: connections + - uuid: bf68f3ecc3544ef0af00889139caf313 + name: 'Get config' + key: 'redis.config["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.PATTERN}","{$REDIS.USERNAME}"]' + history: 1h + value_type: TEXT + trends: '0' + description: 'Extracts Redis server info.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: raw + triggers: + - uuid: 819b379b51c34616820f86d21c703b27 + expression: 'last(/Redis by Zabbix agent 2/redis.config["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.PATTERN}","{$REDIS.USERNAME}"],#1)<>last(/Redis by Zabbix agent 2/redis.config["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.PATTERN}","{$REDIS.USERNAME}"],#2) and length(last(/Redis by Zabbix agent 2/redis.config["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.PATTERN}","{$REDIS.USERNAME}"]))>0' + name: 'Redis: Configuration has changed' + priority: INFO + description: 'Redis configuration has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3aa0abb0b391474a9bd40d0b3e1cd4da + name: 'Get CPU info' + type: DEPENDENT + key: redis.cpu.info_raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Extracts CPU usage data from the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.CPU + error_handler: DISCARD_VALUE + master_item: + key: 'redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"]' + tags: + - tag: component + value: raw + - uuid: 99d427f1f76a468c9878225abb8cebbd + name: 'CPU sys' + type: DEPENDENT + key: redis.cpu.sys + delay: '0' + value_type: FLOAT + units: s + description: 'Retrieves Redis Server CPU usage (system).' + preprocessing: + - type: JSONPATH + parameters: + - $.used_cpu_sys + master_item: + key: redis.cpu.info_raw + tags: + - tag: component + value: cpu + - uuid: 1bfce9a62c924510a9cac3b04320d838 + name: 'CPU sys children' + type: DEPENDENT + key: redis.cpu.sys_children + delay: '0' + value_type: FLOAT + units: s + description: 'Retrieves system CPU usage of the Redis server child processes.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_cpu_sys_children + master_item: + key: redis.cpu.info_raw + tags: + - tag: component + value: cpu + - uuid: 83e7c9f5b8a24c949d72125671d6d39a + name: 'CPU user' + type: DEPENDENT + key: redis.cpu.user + delay: '0' + value_type: FLOAT + units: s + description: 'Collects user CPU usage data from the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_cpu_user + master_item: + key: redis.cpu.info_raw + tags: + - tag: component + value: cpu + - uuid: 8bc18ca0c79d4a81811b600cf3fe8ddd + name: 'CPU user children' + type: DEPENDENT + key: redis.cpu.user_children + delay: '0' + value_type: FLOAT + units: s + description: 'Retrieves user-level CPU usage of Redis server child processes.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_cpu_user_children + master_item: + key: redis.cpu.info_raw + tags: + - tag: component + value: cpu + - uuid: 720f146ffe7e481482e11db4b99634c8 + name: 'Get info' + key: 'redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"]' + history: 1h + value_type: TEXT + trends: '0' + description: 'Retrieves general Redis server information and statistics.' + tags: + - tag: component + value: raw + triggers: + - uuid: 0a5176877ba24df8b5d38c8cc544f0a8 + expression: 'nodata(/Redis by Zabbix agent 2/redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"],30m)=1' + name: 'Redis: Failed to fetch INFO' + event_name: 'Redis: Failed to fetch INFO (or no data for 30m)' + priority: WARNING + description: 'Zabbix has not received any item data for the last 30 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Redis: Service is down' + expression: 'last(/Redis by Zabbix agent 2/redis.ping["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.USERNAME}"])=0' + tags: + - tag: scope + value: availability + - uuid: 52a4cad66c3c47ffab8762050f48e4af + name: 'Get Keyspace info' + type: DEPENDENT + key: redis.keyspace.info_raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Extracts keyspace data from the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.Keyspace + error_handler: DISCARD_VALUE + master_item: + key: 'redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"]' + tags: + - tag: component + value: raw + - uuid: 5fe2afa1c8ff434a876822ea0b290659 + name: 'Memory fragmentation ratio' + type: DEPENDENT + key: redis.memory.fragmentation_ratio + delay: '0' + value_type: FLOAT + description: | + Ratio between used_memory_rss and used_memory. + Note: This metric does not measure memory fragmentation directly. + It includes other process overheads such as shared libraries, code, stack, and other allocator overheads + (see allocator_frag_ratio for actual fragmentation). + preprocessing: + - type: JSONPATH + parameters: + - $.mem_fragmentation_ratio + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: b4f76d36ac5b45f7b58b6f9b0d2a669d + name: 'Get Memory info' + type: DEPENDENT + key: redis.memory.info_raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Extracts memory data from the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.Memory + error_handler: DISCARD_VALUE + master_item: + key: 'redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"]' + tags: + - tag: component + value: raw + - uuid: 5fef1d341a974cc5aa164e550aff1537 + name: 'Memory used' + type: DEPENDENT + key: redis.memory.used_memory + delay: '0' + units: B + description: 'Monitors the memory used by the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_memory + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: de026d98fd9146b78f9a0be2c0b9de10 + name: 'Memory used Lua' + type: DEPENDENT + key: redis.memory.used_memory_lua + delay: '0' + units: B + description: 'Monitors the memory used by Lua scripts in the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_memory_lua + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: d3f05ab1c0404f01875afb964d9820e2 + name: 'Memory used peak' + type: DEPENDENT + key: redis.memory.used_memory_peak + delay: '0' + units: B + description: 'Monitors peak memory usage of the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_memory_peak + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: ef06ae3dd4784702ad0d281da94c294d + name: 'Memory used RSS' + type: DEPENDENT + key: redis.memory.used_memory_rss + delay: '0' + units: B + description: 'Monitors resident memory (RSS) used by the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_memory_rss + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 86501872c68c4e9fa4b55aaacebb3c3c + name: 'AOF current rewrite time sec' + type: DEPENDENT + key: redis.persistence.aof_current_rewrite_time_sec + delay: '0' + value_type: FLOAT + units: s + description: 'Monitors the current AOF rewrite time on the Redis server.' + valuemap: + name: 'Redis bgsave time' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_current_rewrite_time_sec + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: d298e1ce9aa1481391a48754e2a648b0 + name: 'AOF enabled' + type: DEPENDENT + key: redis.persistence.aof_enabled + delay: '0' + description: 'Indicates if AOF persistence is enabled on the Redis server.' + valuemap: + name: 'Redis flag' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_enabled + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: e2e62cc728c04169afeb051000042e28 + name: 'AOF last bgrewrite status' + type: DEPENDENT + key: redis.persistence.aof_last_bgrewrite_status + delay: '0' + description: 'Shows the status of the last AOF background rewrite on the Redis server.' + valuemap: + name: 'Redis bgwrite status' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_last_bgrewrite_status + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 5a14501541c44699b81e3a89cc93d628 + name: 'AOF last rewrite time sec' + type: DEPENDENT + key: redis.persistence.aof_last_rewrite_time_sec + delay: '0' + value_type: FLOAT + units: s + description: 'Shows the duration of the last AOF rewrite in seconds on the Redis server.' + valuemap: + name: 'Redis bgsave time' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_last_rewrite_time_sec + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 2cfd96e347d341219238bdaf65f1846d + name: 'AOF last write status' + type: DEPENDENT + key: redis.persistence.aof_last_write_status + delay: '0' + description: 'Shows the status of the last AOF write on the Redis server.' + valuemap: + name: 'Redis bgwrite status' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_last_write_status + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + triggers: + - uuid: 324e0e8fac514ba99d67aea7eb0ddf7c + expression: 'last(/Redis by Zabbix agent 2/redis.persistence.aof_last_write_status)=0' + name: 'Redis: Last AOF write operation failed' + priority: WARNING + description: 'Detailed information about persistence: https://redis.io/topics/persistence' + tags: + - tag: scope + value: notice + - uuid: 3f4866909425447a828600e9b44ace5b + name: 'AOF rewrite in progress' + type: DEPENDENT + key: redis.persistence.aof_rewrite_in_progress + delay: '0' + description: 'Indicates if an AOF rewrite is currently in progress on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_rewrite_in_progress + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 83d243cc46304694954e08c0b03a3527 + name: 'AOF rewrite scheduled' + type: DEPENDENT + key: redis.persistence.aof_rewrite_scheduled + delay: '0' + description: 'Indicates if an AOF rewrite is scheduled on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_rewrite_scheduled + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: ce5f961bbf7247e2b210aa026694b256 + name: 'Get Persistence info' + type: DEPENDENT + key: redis.persistence.info_raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects persistence data from the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.Persistence + error_handler: DISCARD_VALUE + master_item: + key: 'redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"]' + tags: + - tag: component + value: raw + - uuid: 90df2d442dc049d690044b92e0888c31 + name: 'Dump loading' + type: DEPENDENT + key: redis.persistence.loading + delay: '0' + description: 'Indicates if the Redis server is currently loading a dump file.' + valuemap: + name: 'Redis flag' + preprocessing: + - type: JSONPATH + parameters: + - $.loading + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 5b1ecad187764429a22cbeb69afa3a28 + name: 'RDB bgsave in progress' + type: DEPENDENT + key: redis.persistence.rdb_bgsave_in_progress + delay: '0' + description: 'Indicates if an RDB `BGSAVE` is currently in progress on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.rdb_bgsave_in_progress + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: ea673953a3014dc091ec62a20ee53945 + name: 'RDB changes since last save' + type: DEPENDENT + key: redis.persistence.rdb_changes_since_last_save + delay: '0' + description: 'Shows the number of changes since the last RDB save on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.rdb_changes_since_last_save + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: d8c4d8fceeb5482a951999eedd350f73 + name: 'RDB current bgsave time sec' + type: DEPENDENT + key: redis.persistence.rdb_current_bgsave_time_sec + delay: '0' + value_type: FLOAT + units: s + description: 'Monitors the current RDB `BGSAVE` duration in the Redis server.' + valuemap: + name: 'Redis bgsave time' + preprocessing: + - type: JSONPATH + parameters: + - $.rdb_current_bgsave_time_sec + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: e25772b422314949a564f219d6f725bc + name: 'RDB last bgsave status' + type: DEPENDENT + key: redis.persistence.rdb_last_bgsave_status + delay: '0' + description: 'Shows the status of the last RDB `BGSAVE` operation in the Redis server.' + valuemap: + name: 'Redis bgwrite status' + preprocessing: + - type: JSONPATH + parameters: + - $.rdb_last_bgsave_status + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + triggers: + - uuid: 44e427ae3ce7419dbac3059be11e31ef + expression: 'last(/Redis by Zabbix agent 2/redis.persistence.rdb_last_bgsave_status)=0' + name: 'Redis: Last RDB save operation failed' + priority: WARNING + description: 'Detailed information about persistence: https://redis.io/topics/persistence' + tags: + - tag: scope + value: notice + - uuid: f506941104e34db08c0d8f5a6d9d9710 + name: 'RDB last bgsave time sec' + type: DEPENDENT + key: redis.persistence.rdb_last_bgsave_time_sec + delay: '0' + value_type: FLOAT + units: s + description: 'Monitors the last RDB `BGSAVE` duration in the Redis server.' + valuemap: + name: 'Redis bgsave time' + preprocessing: + - type: JSONPATH + parameters: + - $.rdb_last_bgsave_time_sec + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 04e1c21ca49246d7aba062cd001a8c00 + name: 'RDB last save time' + type: DEPENDENT + key: redis.persistence.rdb_last_save_time + delay: '0' + description: 'Shows the timestamp of the last RDB save on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.rdb_last_save_time + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 5949fadcbe2b405baff0668e81627278 + name: Ping + key: 'redis.ping["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.USERNAME}"]' + description: 'Verifies Redis server connectivity.' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 62353f9ed6204b70ba270827c3922244 + expression: 'last(/Redis by Zabbix agent 2/redis.ping["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.USERNAME}"])=0' + name: 'Redis: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 6680a01fb98c4504bed6458ba6cde146 + name: 'Connected slaves' + type: DEPENDENT + key: redis.replication.connected_slaves + delay: '0' + description: 'Shows the number of connected Redis slave servers.' + preprocessing: + - type: JSONPATH + parameters: + - $.connected_slaves + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + triggers: + - uuid: 6d213088211a4bb38ff97b59113dccd9 + expression: 'last(/Redis by Zabbix agent 2/redis.replication.connected_slaves,#1)<>last(/Redis by Zabbix agent 2/redis.replication.connected_slaves,#2)' + recovery_mode: NONE + name: 'Redis: Number of slaves has changed' + priority: INFO + description: 'Redis number of slaves has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 57d121578bc848d787419221ac8dcabe + name: 'Get Replication info' + type: DEPENDENT + key: redis.replication.info_raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Extracts replication data from the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.Replication + error_handler: DISCARD_VALUE + master_item: + key: 'redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"]' + tags: + - tag: component + value: raw + - uuid: 37fa1595299c4a3ea091039f4db47cf3 + name: 'Master replication offset' + type: DEPENDENT + key: redis.replication.master_repl_offset + delay: '0' + units: B + description: 'Shows the master replication offset on the Redis server.' + valuemap: + name: 'Redis repl offset' + preprocessing: + - type: JSONPATH + parameters: + - $.master_repl_offset + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: cf067374339e44e5a4ba2cd70d4fec3a + name: 'Replication backlog active' + type: DEPENDENT + key: redis.replication.repl_backlog_active + delay: '0' + description: 'Indicates if the replication backlog is active on the Redis server.' + valuemap: + name: 'Redis flag' + preprocessing: + - type: JSONPATH + parameters: + - $.repl_backlog_active + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: b4ea8df4d73144f99ffd4f5f6e6359ef + name: 'Replication backlog first byte offset' + type: DEPENDENT + key: redis.replication.repl_backlog_first_byte_offset + delay: '0' + units: B + description: 'Shows the offset of the first byte in the Redis server replication backlog.' + preprocessing: + - type: JSONPATH + parameters: + - $.repl_backlog_first_byte_offset + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: 081cd9df926d48cea7e5c68f7761ddb1 + name: 'Replication backlog history length' + type: DEPENDENT + key: redis.replication.repl_backlog_histlen + delay: '0' + description: 'Shows the length of the Redis server replication backlog history.' + preprocessing: + - type: JSONPATH + parameters: + - $.repl_backlog_histlen + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: a437a46aafe3413884975fc480091bb5 + name: 'Replication backlog size' + type: DEPENDENT + key: redis.replication.repl_backlog_size + delay: '0' + units: B + description: 'Shows the size of the Redis server replication backlog.' + preprocessing: + - type: JSONPATH + parameters: + - $.repl_backlog_size + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: d8371457697744159aabc3bdece4af2e + name: 'Replication role' + type: DEPENDENT + key: redis.replication.role + delay: '0' + value_type: CHAR + trends: '0' + description: 'Shows the Redis server replication role (master or slave) from the replication info.' + preprocessing: + - type: JSONPATH + parameters: + - $.role + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + triggers: + - uuid: d24f7aabefb345e791b3bb276f30ac8c + expression: 'last(/Redis by Zabbix agent 2/redis.replication.role,#1)<>last(/Redis by Zabbix agent 2/redis.replication.role,#2) and length(last(/Redis by Zabbix agent 2/redis.replication.role))>0' + recovery_mode: NONE + name: 'Redis: Replication role has changed' + event_name: 'Redis: Replication role has changed (new role: {ITEM.VALUE})' + priority: WARNING + description: 'Redis replication role has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6ac72e70dc98478aa5c7730f59440c19 + name: 'Get Server info' + type: DEPENDENT + key: redis.server.info_raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Retrieves Redis server information.' + preprocessing: + - type: JSONPATH + parameters: + - $.Server + error_handler: DISCARD_VALUE + master_item: + key: 'redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"]' + tags: + - tag: component + value: raw + - uuid: 8a08d4f30b78448986b9fd94cafd398c + name: 'Process id' + type: DEPENDENT + key: redis.server.process_id + delay: '0' + description: 'Retrieves the Redis server process identifier.' + preprocessing: + - type: JSONPATH + parameters: + - $.process_id + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: redis.server.info_raw + tags: + - tag: component + value: os + - uuid: b2deab550d984b3e93741c53019e7f89 + name: 'Redis mode' + type: DEPENDENT + key: redis.server.redis_mode + delay: '0' + value_type: CHAR + trends: '0' + description: 'Retrieves the current Redis server mode (`standalone`, `sentinel`, or `cluster`).' + preprocessing: + - type: JSONPATH + parameters: + - $.redis_mode + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: redis.server.info_raw + tags: + - tag: component + value: system + - uuid: 9699d6a6563b498ea73f88a4c1dd9cf1 + name: 'Redis version' + type: DEPENDENT + key: redis.server.redis_version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.redis_version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: redis.server.info_raw + tags: + - tag: component + value: application + triggers: + - uuid: 6e307546b26344deb83f2295c90e9a33 + expression: 'last(/Redis by Zabbix agent 2/redis.server.redis_version,#1)<>last(/Redis by Zabbix agent 2/redis.server.redis_version,#2) and length(last(/Redis by Zabbix agent 2/redis.server.redis_version))>0' + name: 'Redis: Version has changed' + event_name: 'Redis: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Redis version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8c28e54f9e5d40d6b69c1f5b39b85054 + name: 'TCP port' + type: DEPENDENT + key: redis.server.tcp_port + delay: '0' + description: 'Shows the TCP port used by the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.tcp_port + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: redis.server.info_raw + tags: + - tag: component + value: network + - uuid: af225edd976146f2920bc05afb703f14 + name: Uptime + type: DEPENDENT + key: redis.server.uptime + delay: '0' + units: s + description: 'Shows Redis server uptime.' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime_in_seconds + master_item: + key: redis.server.info_raw + tags: + - tag: component + value: application + triggers: + - uuid: 4961e91eed2a4e83899d135315748b0e + expression: 'last(/Redis by Zabbix agent 2/redis.server.uptime)<10m' + name: 'Redis: Host has been restarted' + event_name: 'Redis: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'The host uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 51a65fa1d27e4fcd915c5019687e7bc9 + name: 'Slowlog entries per second' + key: 'redis.slowlog.count["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.USERNAME}"]' + description: 'Tracks `SLOWLOG` entry rate on the Redis server.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: application + triggers: + - uuid: 37fb0255e49c42c8913e56fe4aaa1d14 + expression: 'min(/Redis by Zabbix agent 2/redis.slowlog.count["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.USERNAME}"],5m)>{$REDIS.SLOWLOG.COUNT.MAX.WARN}' + name: 'Redis: Too many entries in the slowlog' + event_name: 'Redis: Too many entries in the slowlog (over {$REDIS.SLOWLOG.COUNT.MAX.WARN} per second in 5m)' + priority: INFO + tags: + - tag: scope + value: performance + - uuid: eca69284ac8e4ae3a7e965b6549e9343 + name: 'Evicted keys' + type: DEPENDENT + key: redis.stats.evicted_keys + delay: '0' + description: 'Number of keys evicted by the Redis server due to the `maxmemory` limit.' + preprocessing: + - type: JSONPATH + parameters: + - $.evicted_keys + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: keys + - uuid: 0a77355cfba348bb8884d2405892ed5d + name: 'Expired keys' + type: DEPENDENT + key: redis.stats.expired_keys + delay: '0' + description: 'Total number of keys expired on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.expired_keys + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: keys + - uuid: edcd97d79c2a4213b2bbefa36f37881d + name: 'Get Stats info' + type: DEPENDENT + key: redis.stats.info_raw + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Collects Redis server statistics.' + preprocessing: + - type: JSONPATH + parameters: + - $.Stats + error_handler: DISCARD_VALUE + master_item: + key: 'redis.info["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.SECTION}","{$REDIS.USERNAME}"]' + tags: + - tag: component + value: raw + - uuid: 5841b6f2a76b432080029367e7008cd1 + name: 'Instantaneous input bytes per second' + type: DEPENDENT + key: redis.stats.instantaneous_input.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Instantaneous network read rate in KB/sec on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.instantaneous_input_kbps + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: network + - uuid: 3552b285d7ca41f796c1838e268a92c1 + name: 'Instantaneous operations per sec' + type: DEPENDENT + key: redis.stats.instantaneous_ops.rate + delay: '0' + description: 'Shows the number of operations processed per second by the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.instantaneous_ops_per_sec + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: operations + - uuid: 86c05ed58e8448e9b7307a3c82e182af + name: 'Instantaneous output bytes per second' + type: DEPENDENT + key: redis.stats.instantaneous_output.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Instantaneous network write rate in KB/sec on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.instantaneous_output_kbps + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: network + - uuid: 66d30a422e704174ae7700e1dd006aa1 + name: 'Keyspace hits' + type: DEPENDENT + key: redis.stats.keyspace_hits + delay: '0' + description: 'Number of successful key lookups in the Redis main dictionary.' + preprocessing: + - type: JSONPATH + parameters: + - $.keyspace_hits + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: keys + - uuid: e24da63a83dc4223bed35cf80fc22300 + name: 'Keyspace misses' + type: DEPENDENT + key: redis.stats.keyspace_misses + delay: '0' + description: 'Number of failed key lookups in the Redis server main dictionary.' + preprocessing: + - type: JSONPATH + parameters: + - $.keyspace_misses + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: keys + - uuid: 1f11810f06d44e498a895c516f902f95 + name: 'Latest fork usec' + type: DEPENDENT + key: redis.stats.latest_fork_usec + delay: '0' + units: s + description: 'Duration of the latest Redis server fork operation in microseconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.latest_fork_usec + - type: MULTIPLIER + parameters: + - '1.0E-5' + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: operations + - uuid: 2662dfd3524749998306f1d7afe33019 + name: 'Migrate cached sockets' + type: DEPENDENT + key: redis.stats.migrate_cached_sockets + delay: '0' + description: 'Number of sockets currently open for the Redis server `MIGRATE` operations.' + preprocessing: + - type: JSONPATH + parameters: + - $.migrate_cached_sockets + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: connections + - uuid: 186e6bda0a0e463bb8218a58f227ff2b + name: 'Pubsub channels' + type: DEPENDENT + key: redis.stats.pubsub_channels + delay: '0' + description: 'Total number of Redis server pub/sub channels with active client subscriptions.' + preprocessing: + - type: JSONPATH + parameters: + - $.pubsub_channels + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: subscribes + - uuid: 1e0711a2b40e4fea88c0c57a1f6d2b30 + name: 'Pubsub patterns' + type: DEPENDENT + key: redis.stats.pubsub_patterns + delay: '0' + description: 'Total number of Redis pub/sub patterns with active client subscriptions.' + preprocessing: + - type: JSONPATH + parameters: + - $.pubsub_patterns + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: subscribes + - uuid: 65135267c836435d872325a7129e5857 + name: 'Rejected connections' + type: DEPENDENT + key: redis.stats.rejected_connections + delay: '0' + description: 'Number of connections rejected by the Redis server due to the `maxclients` limit.' + preprocessing: + - type: JSONPATH + parameters: + - $.rejected_connections + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: connections + triggers: + - uuid: 5bf0680529ce496b8fe419e2732c69d1 + expression: 'last(/Redis by Zabbix agent 2/redis.stats.rejected_connections)>0' + name: 'Redis: Connections are rejected' + priority: HIGH + description: | + Number of connections rejected after Redis server reached the `maxclients` limit. + + https://redis.io/topics/clients + tags: + - tag: scope + value: availability + - uuid: 37135fd8b7e94c41bc21e802f21baeb4 + name: 'Sync full' + type: DEPENDENT + key: redis.stats.sync_full + delay: '0' + description: 'Number of full resynchronizations with Redis server replicas.' + preprocessing: + - type: JSONPATH + parameters: + - $.sync_full + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: replication + - uuid: cb5b6380b164419280fdcd98077c5d8f + name: 'Sync partial err' + type: DEPENDENT + key: redis.stats.sync_partial_err + delay: '0' + description: 'Number of denied partial resynchronization requests on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.sync_partial_err + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: replication + - uuid: 231560fd350e4b5096b242dddecd7c8b + name: 'Sync partial ok' + type: DEPENDENT + key: redis.stats.sync_partial_ok + delay: '0' + description: 'Number of accepted partial resynchronization requests on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.sync_partial_ok + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: replication + - uuid: 278ff045f367443380fcd594dba77d53 + name: 'Total commands processed' + type: DEPENDENT + key: redis.stats.total_commands_processed + delay: '0' + description: 'Total number of commands processed by the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_commands_processed + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: commands + - uuid: c9afbbbec8a44926887389a590f1df91 + name: 'Total connections received' + type: DEPENDENT + key: redis.stats.total_connections_received + delay: '0' + description: 'Total number of connections received by the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_connections_received + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: connections + - uuid: 838cb6cbfd8a42e1b9cfa4a60670324a + name: 'Total net input bytes' + type: DEPENDENT + key: redis.stats.total_net_input_bytes + delay: '0' + units: B + description: 'Total number of bytes read by the Redis server from the network.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_net_input_bytes + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: network + - uuid: 762f6b06eb094de896d265fcf3f9a603 + name: 'Total net output bytes' + type: DEPENDENT + key: redis.stats.total_net_output_bytes + delay: '0' + units: B + description: 'Total number of bytes written by the Redis server to the network.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_net_output_bytes + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: network + discovery_rules: + - uuid: 527a3526b0e64225bb3dcf2dbbfbda5b + name: 'Process metrics discovery' + key: 'proc.num["{$REDIS.LLD.PROCESS_NAME}"]' + delay: 1h + description: 'Collect metrics by Zabbix agent if it exists.' + item_prototypes: + - uuid: 376a8861723c45c3bde08573c7ab2ed9 + name: 'CPU utilization' + key: 'proc.cpu.util["{$REDIS.PROCESS_NAME}{#SINGLETON}"]' + value_type: FLOAT + units: '%' + description: 'Process CPU utilization percentage.' + tags: + - tag: component + value: cpu + - uuid: 9d68e00f913a4faea5a334d361f324b0 + name: 'Memory usage (rss)' + key: 'proc.mem["{$REDIS.PROCESS_NAME}{#SINGLETON}",,,,rss]' + units: B + description: 'Resident Set Size memory used by the process, in bytes.' + tags: + - tag: component + value: memory + - uuid: 325cabaa95994a58bf30992586ba7544 + name: 'Memory usage (vsize)' + key: 'proc.mem["{$REDIS.PROCESS_NAME}{#SINGLETON}",,,,vsize]' + units: B + description: 'Virtual memory size used by the process, in bytes.' + tags: + - tag: component + value: memory + - uuid: d9ccc25e5d1b4f05b22354a7672b518c + name: 'Number of running processes' + key: 'proc.num["{$REDIS.PROCESS_NAME}{#SINGLETON}"]' + description: 'Number of running processes on the Redis server.' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 590bd23c52b74dd7951dcf74903ac2ed + expression: 'last(/Redis by Zabbix agent 2/proc.num["{$REDIS.PROCESS_NAME}{#SINGLETON}"])=0' + name: 'Redis: Process is not running' + priority: HIGH + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: e26f8c31c3654febbeda2ffb97438c36 + name: 'Redis: Memory usage{#SINGLETON}' + graph_items: + - color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: 'proc.mem["{$REDIS.PROCESS_NAME}{#SINGLETON}",,,,vsize]' + - sortorder: '1' + color: F63100 + item: + host: 'Redis by Zabbix agent 2' + key: 'proc.mem["{$REDIS.PROCESS_NAME}{#SINGLETON}",,,,rss]' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value > 0 ? [{''{#SINGLETON}'': ''''}] : []);' + - uuid: 0f7966f47fda4b41856163ffb438bf27 + name: 'Keyspace discovery' + type: DEPENDENT + key: redis.keyspace.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DB}' + value: '{$REDIS.LLD.FILTER.DB.MATCHES}' + formulaid: A + - macro: '{#DB}' + value: '{$REDIS.LLD.FILTER.DB.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Metrics for individual Redis server keyspaces.' + item_prototypes: + - uuid: 38fcb8524f1b4f50a4945333fc6c7536 + name: 'DB {#DB}: Average TTL' + type: DEPENDENT + key: 'redis.db.avg_ttl["{#DB}"]' + delay: '0' + units: s + description: 'Average TTL.' + preprocessing: + - type: JSONPATH + parameters: + - $.avg_ttl + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: 'redis.db.info_raw["{#DB}"]' + tags: + - tag: component + value: keys + - tag: database + value: '{#DB}' + - uuid: bde12d459b7b4e23a22ed6188b57bb25 + name: 'DB {#DB}: Expires' + type: DEPENDENT + key: 'redis.db.expires["{#DB}"]' + delay: '0' + description: 'Number of keys with an expiration set.' + preprocessing: + - type: JSONPATH + parameters: + - $.expires + master_item: + key: 'redis.db.info_raw["{#DB}"]' + tags: + - tag: component + value: keys + - tag: database + value: '{#DB}' + - uuid: 983d5c7da67d42399105d5477c54c1e6 + name: 'DB {#DB}: Get Keyspace info' + type: DEPENDENT + key: 'redis.db.info_raw["{#DB}"]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets information about the keyspace of database `{#DB}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DB}'']' + error_handler: DISCARD_VALUE + master_item: + key: redis.keyspace.info_raw + tags: + - tag: component + value: raw + - tag: database + value: '{#DB}' + - uuid: 2bae0d2f8b8348bcad207b61ef6286c3 + name: 'DB {#DB}: Keys' + type: DEPENDENT + key: 'redis.db.keys["{#DB}"]' + delay: '0' + description: 'Total number of keys.' + preprocessing: + - type: JSONPATH + parameters: + - $.keys + master_item: + key: 'redis.db.info_raw["{#DB}"]' + tags: + - tag: component + value: keys + - tag: database + value: '{#DB}' + graph_prototypes: + - uuid: 3271f3a143dc43f38a674b6cbae8cd0d + name: 'DB {#DB}: Keys' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: 'redis.db.keys["{#DB}"]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Redis by Zabbix agent 2' + key: 'redis.db.expires["{#DB}"]' + master_item: + key: redis.keyspace.info_raw + preprocessing: + - type: JAVASCRIPT + parameters: + - | + return JSON.stringify(Object.keys(JSON.parse(value)) + .map(function (v){return {"{#DB}": v}})); + - uuid: a3fb00d4bbc24779b6c7223b867f4d2c + name: 'Version 4+ metrics discovery' + type: DEPENDENT + key: redis.metrics.v4.discovery + delay: '0' + description: 'Additional metrics for versions 4+.' + item_prototypes: + - uuid: b7e8d996335f41158b3c6a8961319db0 + name: 'Active defrag running{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.active_defrag_running[{#SINGLETON}]' + delay: '0' + description: 'Flag indicating if active defragmentation is active.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_defrag_running + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 2065e38cd7e5417abfd0b80116b0d77b + name: 'Lazyfree pending objects{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.lazyfree_pending_objects[{#SINGLETON}]' + delay: '0' + description: 'The number of objects waiting to be freed (as a result of calling `UNLINK`, or `FLUSHDB` and `FLUSHALL` with the `ASYNC` option).' + preprocessing: + - type: JSONPATH + parameters: + - $.lazyfree_pending_objects + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 2c5c700b53374dac86d805384b6bc9b0 + name: 'Max memory{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.maxmemory[{#SINGLETON}]' + delay: '0' + units: B + description: 'Maximum amount of memory allocated to the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxmemory + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 0f094be6d0fa4afda3aa7916fac4d3a3 + name: 'Max memory policy{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.maxmemory_policy[{#SINGLETON}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The value of the `maxmemory-policy` configuration directive.' + preprocessing: + - type: JSONPATH + parameters: + - $.maxmemory_policy + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: bf804c6ee44640168e15ca62803b7f10 + name: 'Total system memory{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.total_system_memory[{#SINGLETON}]' + delay: '0' + units: B + description: 'The total amount of memory of the Redis host.' + preprocessing: + - type: JSONPATH + parameters: + - $.total_system_memory + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 1c0e0355d5cd429f9a914fb67f29e366 + name: 'Memory used dataset{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.used_memory_dataset[{#SINGLETON}]' + delay: '0' + units: B + description: 'The size in bytes of the dataset.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_memory_dataset + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 4e5937420b3843568d9f36b40c0a3c28 + name: 'Memory used dataset %{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.used_memory_dataset_perc[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of `used_memory_dataset` out of the net memory usage (`used_memory` minus `used_memory_startup`).' + preprocessing: + - type: JSONPATH + parameters: + - $.used_memory_dataset_perc + - type: REGEX + parameters: + - (.+)% + - \1 + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: e085382c18f3473f9d2271024cd61e93 + name: 'Memory used overhead{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.used_memory_overhead[{#SINGLETON}]' + delay: '0' + units: B + description: 'The sum in bytes of all overheads that the server allocated for managing its internal data structures.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_memory_overhead + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 5da63141e8b145a38954736806602b4a + name: 'Memory used peak %{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.used_memory_peak_perc[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of `used_memory_peak` out of `used_memory`.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_memory_peak_perc + - type: REGEX + parameters: + - (.+)% + - \1 + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: dabd2918056b4b999f4b30bd8e64e8a1 + name: 'Memory used startup{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.used_memory_startup[{#SINGLETON}]' + delay: '0' + units: B + description: 'Initial amount of memory consumed by Redis at startup, in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_memory_startup + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 9da41967290742cb8daa2f69ac1d6966 + name: 'AOF last CoW size{#SINGLETON}' + type: DEPENDENT + key: 'redis.persistence.aof_last_cow_size[{#SINGLETON}]' + delay: '0' + units: B + description: 'The size in bytes of copy-on-write allocations during the last AOF rewrite operation.' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_last_cow_size + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 768839c72e3f4be89e30dd0d140c9d03 + name: 'RDB last CoW size{#SINGLETON}' + type: DEPENDENT + key: 'redis.persistence.rdb_last_cow_size[{#SINGLETON}]' + delay: '0' + units: B + description: 'The size in bytes of copy-on-write allocations during the last RDB save operation.' + preprocessing: + - type: JSONPATH + parameters: + - $.rdb_last_cow_size + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: bead155d26054d0487622f29b86dcd2b + name: 'Replication second offset{#SINGLETON}' + type: DEPENDENT + key: 'redis.replication.second_repl_offset[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Offset up to which replication IDs are accepted.' + valuemap: + name: 'Redis repl offset' + preprocessing: + - type: JSONPATH + parameters: + - $.second_repl_offset + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: 14d062351a114e8eafa2b2b889317903 + name: 'Executable path{#SINGLETON}' + type: DEPENDENT + key: 'redis.server.executable[{#SINGLETON}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The path to the server''s executable.' + preprocessing: + - type: JSONPATH + parameters: + - $.executable + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: redis.server.info_raw + tags: + - tag: component + value: system + - uuid: 5458542148954618a6d22df1effffe57 + name: 'Active defrag hits{#SINGLETON}' + type: DEPENDENT + key: 'redis.stats.active_defrag_hits[{#SINGLETON}]' + delay: '0' + description: 'Number of value reallocations performed by the active defragmentation process.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_defrag_hits + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: memory + - uuid: f8b424743dd24691be2bd07d5538b16a + name: 'Active defrag key hits{#SINGLETON}' + type: DEPENDENT + key: 'redis.stats.active_defrag_key_hits[{#SINGLETON}]' + delay: '0' + description: 'Number of keys that were actively defragmented.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_defrag_key_hits + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: keys + - uuid: 8aba0ad8d7314b6b8cf1e80cb0afb618 + name: 'Active defrag key misses{#SINGLETON}' + type: DEPENDENT + key: 'redis.stats.active_defrag_key_misses[{#SINGLETON}]' + delay: '0' + description: 'Number of keys that were skipped by the active defragmentation process.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_defrag_key_misses + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: keys + - uuid: 3c20cca8b4a84c619d90d64a34386dfa + name: 'Active defrag misses{#SINGLETON}' + type: DEPENDENT + key: 'redis.stats.active_defrag_misses[{#SINGLETON}]' + delay: '0' + description: 'Number of aborted value reallocations started by the active defragmentation process.' + preprocessing: + - type: JSONPATH + parameters: + - $.active_defrag_misses + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: memory + - uuid: a34f4e33a0cb4381b5c3b7a507e90bee + name: 'Expired stale %{#SINGLETON}' + type: DEPENDENT + key: 'redis.stats.expired_stale_perc[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Number of stale keys expired by the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.expired_stale_perc + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: keys + - uuid: 81667ae170b04ac0980e122566c5ed8e + name: 'Expired time cap reached count{#SINGLETON}' + type: DEPENDENT + key: 'redis.stats.expired_time_cap_reached_count[{#SINGLETON}]' + delay: '0' + description: 'Number of keys expired due to reaching the time limit on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.expired_time_cap_reached_count + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: cycles + - uuid: 93bf8753d6b242f1b8d2288fb926e01b + name: 'Slave expires tracked keys{#SINGLETON}' + type: DEPENDENT + key: 'redis.stats.slave_expires_tracked_keys[{#SINGLETON}]' + delay: '0' + description: 'The number of keys tracked for expiry purposes (applicable only to writable replicas).' + preprocessing: + - type: JSONPATH + parameters: + - $.slave_expires_tracked_keys + master_item: + key: redis.stats.info_raw + tags: + - tag: component + value: keys + trigger_prototypes: + - uuid: 0c3560588d2d421c843c006ef5fa4645 + expression: 'last(/Redis by Zabbix agent 2/redis.memory.used_memory)/(min(/Redis by Zabbix agent 2/redis.memory.maxmemory[{#SINGLETON}],5m)+(min(/Redis by Zabbix agent 2/redis.memory.maxmemory[{#SINGLETON}],5m)=0))*100*(min(/Redis by Zabbix agent 2/redis.memory.maxmemory[{#SINGLETON}],5m)>0)>{$REDIS.MEM.PUSED.MAX.WARN}' + name: 'Redis: Memory usage is too high' + event_name: 'Redis: Memory usage is too high (over {$REDIS.MEM.PUSED.MAX.WARN}% in 5m)' + priority: WARNING + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + master_item: + key: redis.server.info_raw + preprocessing: + - type: JSONPATH + parameters: + - $.redis_version + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(parseInt(value.split(''.'')[0]) >= 4 ? [{''{#SINGLETON}'': ''''}] : []);' + - uuid: f7a9f1e26bb54cb6adf74ee9f30d88cd + name: 'Version 5+ metrics discovery' + type: DEPENDENT + key: redis.metrics.v5.discovery + delay: '0' + description: 'Additional metrics for versions 5+.' + item_prototypes: + - uuid: adc25c08108e4fcaa3b41d2897d0a0c6 + name: 'Allocator active{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.allocator_active[{#SINGLETON}]' + delay: '0' + description: 'Active memory allocated by the Redis server allocator.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocator_active + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 81ef89fc751746ac8254a55a2b2e4ea7 + name: 'Allocator allocated{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.allocator_allocated[{#SINGLETON}]' + delay: '0' + description: 'Total memory allocated by the Redis server allocator.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocator_allocated + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 23e034630d7246f7ba993d5c6db2d6bb + name: 'Allocator fragmentation bytes{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.allocator_frag_bytes[{#SINGLETON}]' + delay: '0' + units: B + description: 'Memory fragmentation in bytes reported by the Redis server allocator.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocator_frag_bytes + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 690a13b13d134f648b4b8381f6a185f0 + name: 'Allocator fragmentation ratio{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.allocator_frag_ratio[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Memory fragmentation ratio of the Redis server allocator.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocator_frag_ratio + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 0abd6a9adb034536b3a389e0af2af732 + name: 'Allocator resident{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.allocator_resident[{#SINGLETON}]' + delay: '0' + description: 'Resident memory used by the Redis server allocator.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocator_resident + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: b5ecad496c554ccaad495d2f112b5e2f + name: 'Allocator RSS bytes{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.allocator_rss_bytes[{#SINGLETON}]' + delay: '0' + units: B + description: 'Resident Set Size (RSS) in bytes used by the Redis server allocator.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocator_rss_bytes + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 643fe70e1a7f488196b053722a2df9c2 + name: 'Allocator RSS ratio{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.allocator_rss_ratio[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'RSS ratio of the Redis server allocator.' + preprocessing: + - type: JSONPATH + parameters: + - $.allocator_rss_ratio + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 40a639acab5a415a8fb48b7520b7d198 + name: 'Memory fragmentation bytes{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.fragmentation_bytes[{#SINGLETON}]' + delay: '0' + units: B + description: 'Total memory fragmentation in bytes on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_fragmentation_bytes + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: 70c53f60d020440c8f7cba83b32f58c9 + name: 'Memory AOF buffer{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.mem_aof_buffer[{#SINGLETON}]' + delay: '0' + description: 'Size of the AOF buffer on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_aof_buffer + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - tag: component + value: persistence + - uuid: d64718269f20470e9661ff7c479dc300 + name: 'Memory clients normal{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.mem_clients_normal[{#SINGLETON}]' + delay: '0' + description: 'Memory used by normal client connections on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_clients_normal + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: e685ab11ab534f8abd1a7e2ee35839e8 + name: 'Memory clients slaves{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.mem_clients_slaves[{#SINGLETON}]' + delay: '0' + description: 'Memory used by slave client connections on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_clients_slaves + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: f6c9bfda015d47d0b34f466e95356a5d + name: 'Memory not counted for evict{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.not_counted_for_evict[{#SINGLETON}]' + delay: '0' + description: 'Memory not counted for eviction on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_not_counted_for_evict + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: eaac8b142fc540ad9c7563e145819643 + name: 'Memory number of cached scripts{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.number_of_cached_scripts[{#SINGLETON}]' + delay: '0' + description: 'Number of scripts cached in the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.number_of_cached_scripts + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: a221fd161be641c1a8091d0bfd1d2157 + name: 'Memory replication backlog{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.replication_backlog[{#SINGLETON}]' + delay: '0' + description: 'Memory used by the Redis server replication backlog.' + preprocessing: + - type: JSONPATH + parameters: + - $.mem_replication_backlog + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - tag: component + value: replication + - uuid: e699ad3b29ca486f91688684ffde6b73 + name: 'Memory RSS overhead bytes{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.rss_overhead_bytes[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Memory RSS overhead in bytes on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.rss_overhead_bytes + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: d4d51ae4ce214699ba760fcb62289a51 + name: 'Memory RSS overhead ratio{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.rss_overhead_ratio[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + description: 'Memory RSS overhead ratio on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.rss_overhead_ratio + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + - uuid: e3733b2993cb4199bfac8b0711d4bb72 + name: 'Memory used scripts{#SINGLETON}' + type: DEPENDENT + key: 'redis.memory.used_memory_scripts[{#SINGLETON}]' + delay: '0' + description: 'Memory used by scripts on the Redis server.' + preprocessing: + - type: JSONPATH + parameters: + - $.used_memory_scripts + master_item: + key: redis.memory.info_raw + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: a6e21d0527bf461f87de7adb81482730 + expression: 'min(/Redis by Zabbix agent 2/redis.memory.allocator_rss_ratio[{#SINGLETON}],15m)>{$REDIS.MEM.ALLOC_RSS_RATIO.MAX.WARN} and last(/Redis by Zabbix agent 2/redis.memory.allocator_rss_bytes[{#SINGLETON}])>{$REDIS.MEM.ALLOC_RSS_BYTES.MIN}' + name: 'Redis: Allocator RSS ratio is too high' + event_name: 'Redis: Allocator RSS ratio is too high (over {$REDIS.MEM.ALLOC_RSS_RATIO.MAX.WARN} in 15m)' + priority: WARNING + description: | + Ratio between allocator_resident and allocator_active. + Indicates pages that the allocator can and probably will soon release + back to the OS. If sustained, consider running MEMORY PURGE. + tags: + - tag: scope + value: performance + - uuid: c0b8bfdb5d2d416094b82011791b55a2 + expression: 'min(/Redis by Zabbix agent 2/redis.memory.allocator_frag_ratio[{#SINGLETON}],15m)>{$REDIS.MEM.ALLOC_FRAG_RATIO.MAX.WARN} and last(/Redis by Zabbix agent 2/redis.memory.allocator_frag_bytes[{#SINGLETON}])>{$REDIS.MEM.ALLOC_FRAG_BYTES.MIN}' + name: 'Redis: Memory allocator fragmentation is too high' + event_name: 'Redis: Memory allocator fragmentation is too high (over {$REDIS.MEM.ALLOC_FRAG_RATIO.MAX.WARN} in 15m)' + priority: WARNING + description: | + Memory fragmentation at the allocator level indicates how efficiently the memory allocator is using physical memory: + - Value over 1.5 means the allocator has significantly more fragmented memory than necessary. + Consider enabling active defragmentation (activedefrag yes) or restarting Redis to reclaim fragmented memory. + - Low fragmentation (close to 1.0) is normal and expected. + tags: + - tag: scope + value: performance + - uuid: 3444356bd5d246e18f5dde9c44d82405 + expression: 'min(/Redis by Zabbix agent 2/redis.memory.rss_overhead_ratio[{#SINGLETON}],15m)>{$REDIS.MEM.RSS_OVERHEAD_RATIO.MAX.WARN} and last(/Redis by Zabbix agent 2/redis.memory.rss_overhead_bytes[{#SINGLETON}])>{$REDIS.MEM.RSS_OVERHEAD_BYTES.MIN}' + name: 'Redis: RSS overhead ratio is too high' + event_name: 'Redis: RSS overhead ratio is too high (over {$REDIS.MEM.RSS_OVERHEAD_RATIO.MAX.WARN} in 15m)' + priority: WARNING + description: | + Ratio between used_memory_rss (the process RSS) and allocator_resident. + Includes RSS overheads that are not allocator or heap related. + If sustained, investigate persistence configuration (BGSAVE frequency, AOF rewrite settings). + tags: + - tag: scope + value: performance + master_item: + key: redis.server.info_raw + preprocessing: + - type: JSONPATH + parameters: + - $.redis_version + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(parseInt(value.split(''.'')[0]) >= 5 ? [{''{#SINGLETON}'': ''''}] : []);' + - uuid: ac3a22522a2c4fa1a256794dd2292480 + name: 'AOF metrics discovery' + type: DEPENDENT + key: redis.persistence.aof.discovery + delay: '0' + description: 'If AOF is activated, additional metrics will be added.' + item_prototypes: + - uuid: e68a7b6931324bd79268a5151717505e + name: 'AOF base size{#SINGLETON}' + type: DEPENDENT + key: 'redis.persistence.aof_base_size[{#SINGLETON}]' + delay: '0' + units: B + description: 'AOF file size on latest startup or rewrite.' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_base_size + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 875ace20e5c94044ae63f36d98ac6256 + name: 'AOF buffer length{#SINGLETON}' + type: DEPENDENT + key: 'redis.persistence.aof_buffer_length[{#SINGLETON}]' + delay: '0' + units: B + description: 'Size of the AOF buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_buffer_length + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 679bd919383a4106916a84fae5be47bb + name: 'AOF current size{#SINGLETON}' + type: DEPENDENT + key: 'redis.persistence.aof_current_size[{#SINGLETON}]' + delay: '0' + units: B + description: 'AOF current file size.' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_current_size + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: ff9955c770aa4e0883cc72bf1d762be7 + name: 'AOF delayed fsync{#SINGLETON}' + type: DEPENDENT + key: 'redis.persistence.aof_delayed_fsync[{#SINGLETON}]' + delay: '0' + description: 'Count of delayed `fsync` jobs.' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_delayed_fsync + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 0606ef5762b04d91abba95269eb77ae2 + name: 'AOF pending background I/O fsync{#SINGLETON}' + type: DEPENDENT + key: 'redis.persistence.aof_pending_bio_fsync[{#SINGLETON}]' + delay: '0' + description: 'Number of pending `fsync` jobs in the background I/O queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_pending_bio_fsync + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 194061b8ad6c484ca8c732d69eeb0f1e + name: 'AOF pending rewrite{#SINGLETON}' + type: DEPENDENT + key: 'redis.persistence.aof_pending_rewrite[{#SINGLETON}]' + delay: '0' + description: 'Flag indicating an AOF rewrite operation is pending.' + valuemap: + name: 'Redis flag' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_pending_rewrite + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + - uuid: 1a39f5854ae948759deadac0ae57e9f7 + name: 'AOF rewrite buffer length{#SINGLETON}' + type: DEPENDENT + key: 'redis.persistence.aof_rewrite_buffer_length[{#SINGLETON}]' + delay: '0' + units: B + description: 'Size of the AOF rewrite buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.aof_rewrite_buffer_length + error_handler: DISCARD_VALUE + master_item: + key: redis.persistence.info_raw + tags: + - tag: component + value: persistence + master_item: + key: redis.persistence.info_raw + preprocessing: + - type: JAVASCRIPT + parameters: + - | + return JSON.stringify(JSON.parse(value).aof_enabled === '1' + ? [{'{#SINGLETON}': ''}] + : []); + - uuid: 4379bad5624a4a5db0c86c5332cf5cc9 + name: 'Replication metrics discovery' + type: DEPENDENT + key: redis.replication.master.discovery + delay: '0' + description: 'If the instance is the master and the slaves are connected, additional metrics are provided.' + item_prototypes: + - uuid: 2d26ebb0a5024378b59b3f0ee8e7fff4 + name: 'Redis slave {#SLAVE_IP}:{#SLAVE_PORT}: Replication lag in bytes' + type: DEPENDENT + key: 'redis.replication.lag_bytes["{#SLAVE_IP}:{#SLAVE_PORT}"]' + delay: '0' + units: B + description: 'Replication lag, in bytes.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var repl = JSON.parse(value); + var res = Object.keys(repl) + .filter(function (v) {return v.match(/slave\d+/)}) + .filter(function (v) {return (repl[v].ip === "{#SLAVE_IP}" && repl[v].port === "{#SLAVE_PORT}")}) + .map(function (v) {return repl[v].offset})[0]; + + if (res === undefined) { + throw 'Slave {#SLAVE_IP}:{#SLAVE_PORT} is no longer available.'; + } + + return res; + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + graph_prototypes: + - uuid: 0bce553a5a1240e2b097754dba8f6939 + name: 'Redis slave {#SLAVE_IP}:{#SLAVE_PORT}: Replication lag bytes' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: 'redis.replication.lag_bytes["{#SLAVE_IP}:{#SLAVE_PORT}"]' + master_item: + key: redis.replication.info_raw + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var repl = JSON.parse(value); + return JSON.stringify(Object.keys(repl) + .filter(function (v) {return v.match(/slave\d+/)}) + .map(function (v){ + return {"{#SLAVE_IP}": repl[v].ip, "{#SLAVE_PORT}": repl[v].port} + })); + - uuid: ca9296a7acb548789865ac716a54ce10 + name: 'Slave metrics discovery' + type: DEPENDENT + key: redis.replication.slave.discovery + delay: '0' + description: 'If the instance is a replica, additional metrics are provided.' + item_prototypes: + - uuid: 92e4b2133a6a4ec28e739bbef94ab992 + name: 'Master host{#SINGLETON}' + type: DEPENDENT + key: 'redis.replication.master_host[{#SINGLETON}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Host or IP address of the master.' + preprocessing: + - type: JSONPATH + parameters: + - $.master_host + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: 0acbeb8633da41be9bfb56627a946fd9 + name: 'Master last I/O seconds ago{#SINGLETON}' + type: DEPENDENT + key: 'redis.replication.master_last_io_seconds_ago[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Number of seconds since the last interaction with the master.' + preprocessing: + - type: JSONPATH + parameters: + - $.master_last_io_seconds_ago + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + trigger_prototypes: + - uuid: 292f477d970d4a138d2d1b2c45d965dd + expression: 'min(/Redis by Zabbix agent 2/redis.replication.master_last_io_seconds_ago[{#SINGLETON}],5m)>{$REDIS.REPL.LAG.MAX.WARN}' + name: 'Redis: Replication lag with master is too high' + event_name: 'Redis: Replication lag with master is too high (over {$REDIS.REPL.LAG.MAX.WARN} in 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 8024463a9f644e6e91def5a0e88abd4b + name: 'Master link status{#SINGLETON}' + type: DEPENDENT + key: 'redis.replication.master_link_status[{#SINGLETON}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Status of the link (up/down).' + preprocessing: + - type: JSONPATH + parameters: + - $.master_link_status + - type: BOOL_TO_DECIMAL + parameters: + - '' + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: da63a0b31bed47edaba3f802738fa4fd + name: 'Master port{#SINGLETON}' + type: DEPENDENT + key: 'redis.replication.master_port[{#SINGLETON}]' + delay: '0' + description: 'TCP port the master is listening on.' + preprocessing: + - type: JSONPATH + parameters: + - $.master_port + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: 6835a260e66741159ee10046265a1ea4 + name: 'Master sync in progress{#SINGLETON}' + type: DEPENDENT + key: 'redis.replication.master_sync_in_progress[{#SINGLETON}]' + delay: '0' + description: 'Indicates the master is syncing to the replica.' + preprocessing: + - type: JSONPATH + parameters: + - $.master_sync_in_progress + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: 3f92dfa07237495ca7696bb4b078eb93 + name: 'Slave priority{#SINGLETON}' + type: DEPENDENT + key: 'redis.replication.slave_priority[{#SINGLETON}]' + delay: '0' + description: 'The priority of the instance as a candidate for failover.' + preprocessing: + - type: JSONPATH + parameters: + - $.slave_priority + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: f38492a49f214ec8b71fdc51d243281e + name: 'Slave priority{#SINGLETON}' + type: DEPENDENT + key: 'redis.replication.slave_read_only[{#SINGLETON}]' + delay: '0' + description: 'Flag indicating if the replica is read-only.' + preprocessing: + - type: JSONPATH + parameters: + - $.slave_read_only + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + - uuid: 7eb23d1d96ea489c9e0b39b7839147bd + name: 'Slave replication offset{#SINGLETON}' + type: DEPENDENT + key: 'redis.replication.slave_repl_offset[{#SINGLETON}]' + delay: '0' + units: B + description: 'The replication offset of the replica instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.slave_repl_offset + master_item: + key: redis.replication.info_raw + tags: + - tag: component + value: replication + graph_prototypes: + - uuid: bbc5fb3021be4c3381e48fe623b611f0 + name: 'Redis: Replication lag time{#SINGLETON}' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: 'redis.replication.master_last_io_seconds_ago[{#SINGLETON}]' + master_item: + key: redis.replication.info_raw + preprocessing: + - type: JAVASCRIPT + parameters: + - | + return JSON.stringify(JSON.parse(value).role === 'slave' + ? [{'{#SINGLETON}': ''}] + : []); + tags: + - tag: class + value: database + - tag: target + value: redis + macros: + - macro: '{$REDIS.CLIENTS.PRC.MAX.WARN}' + value: '80' + description: 'Threshold for the maximum percentage of connected Redis clients.' + - macro: '{$REDIS.CONN.URI}' + value: 'tcp://localhost:6379' + description: | + Connection string in URI format. + When set, this parameter overrides the value specified in the `Server` option of the configuration file. + Otherwise, the plugin's default value is used: `tcp://localhost:6379`. + - macro: '{$REDIS.LLD.FILTER.DB.MATCHES}' + value: '.*' + description: 'Regex pattern for databases to include during discovery.' + - macro: '{$REDIS.LLD.FILTER.DB.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Regex pattern for databases to exclude during discovery.' + - macro: '{$REDIS.LLD.PROCESS_NAME}' + value: redis-server + description: 'Redis process name used during LLD.' + - macro: '{$REDIS.MEM.ALLOC_FRAG_BYTES.MIN}' + value: 100M + description: 'Minimum allocator fragmentation bytes required before the memory fragmentation trigger fires.' + - macro: '{$REDIS.MEM.ALLOC_FRAG_RATIO.MAX.WARN}' + value: '1.5' + description: 'Threshold for the Redis memory allocator fragmentation ratio.' + - macro: '{$REDIS.MEM.ALLOC_RSS_BYTES.MIN}' + value: 100M + description: 'Minimum allocator RSS bytes required before the allocator RSS ratio trigger fires.' + - macro: '{$REDIS.MEM.ALLOC_RSS_RATIO.MAX.WARN}' + value: '1.5' + description: 'Threshold for the Redis allocator RSS ratio.' + - macro: '{$REDIS.MEM.PUSED.MAX.WARN}' + value: '90' + description: 'Maximum percentage of memory used by the Redis server.' + - macro: '{$REDIS.MEM.RSS_OVERHEAD_BYTES.MIN}' + value: 100M + description: 'Minimum RSS overhead bytes required before the RSS overhead ratio trigger fires.' + - macro: '{$REDIS.MEM.RSS_OVERHEAD_RATIO.MAX.WARN}' + value: '1.5' + description: 'Threshold for the Redis RSS overhead ratio.' + - macro: '{$REDIS.PASSWORD}' + type: SECRET_TEXT + description: 'Password for Redis server authentication.' + - macro: '{$REDIS.PATTERN}' + description: 'Pattern for filtering Redis server configuration parameters.' + - macro: '{$REDIS.PROCESS_NAME}' + value: redis-server + description: 'Name of the Redis server process to monitor.' + - macro: '{$REDIS.REPL.LAG.MAX.WARN}' + value: 30s + description: 'Maximum replication lag allowed between Redis master and replica, in seconds.' + - macro: '{$REDIS.SECTION}' + description: 'Section of Redis server information to retrieve.' + - macro: '{$REDIS.SLOWLOG.COUNT.MAX.WARN}' + value: '1' + description: 'Slowlog entry rate threshold that triggers a warning.' + - macro: '{$REDIS.USERNAME}' + description: 'Username for Redis server authentication.' + dashboards: + - uuid: 7c5bdd7bc74648c4891abc6649d105d0 + name: 'Redis: Overview' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Clients' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Commands' + - type: STRING + name: reference + value: AAAAC + - type: graph + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Persistence' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Slowlog' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + 'y': '20' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Replication lag time{#SINGLETON}' + - type: STRING + name: reference + value: AAAAI + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Keyspace' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Expired keys' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Slaves' + - type: STRING + name: reference + value: AAAAF + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Uptime' + - type: STRING + name: reference + value: AAAAH + - uuid: ee4c29eb7a0f443fafb7e7d3b9df7b24 + name: 'Redis: Performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: CPU' + - type: STRING + name: reference + value: AAAAJ + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Memory' + - type: STRING + name: reference + value: AAAAL + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Network' + - type: STRING + name: reference + value: AAAAK + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Redis by Zabbix agent 2' + name: 'Redis: Memory fragmentation' + - type: STRING + name: reference + value: AAAAM + valuemaps: + - uuid: 82f4dc4ef0c9471d82dbe3605f4f31d0 + name: 'Redis bgsave time' + mappings: + - value: '-1' + newvalue: Inactive + - uuid: 098c2240a8e947fc9f6f0a677ffcbc0e + name: 'Redis bgwrite status' + mappings: + - value: '0' + newvalue: Error + - value: '1' + newvalue: Ok + - uuid: 3b6cd97c65d14e10bdabf5c42d767ad9 + name: 'Redis flag' + mappings: + - value: '0' + newvalue: 'No' + - value: '1' + newvalue: 'Yes' + - uuid: 47c80efdf46745f1959eee76f68014e7 + name: 'Redis repl offset' + mappings: + - value: '-1' + newvalue: Undefined + - uuid: ae3eec95cd1c440ba6c67ed5d7b7b915 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 65e4652dbebe47c4b46e47bb8a17aac6 + expression: 'min(/Redis by Zabbix agent 2/redis.clients.connected,5m)/last(/Redis by Zabbix agent 2/redis.config.maxclients)*100>{$REDIS.CLIENTS.PRC.MAX.WARN}' + name: 'Redis: Total number of connected clients is too high' + event_name: 'Redis: Total number of connected clients is too high (over {$REDIS.CLIENTS.PRC.MAX.WARN}% in 5m)' + priority: WARNING + description: | + When the number of clients reaches the value of the `maxclients` parameter, new connections will be rejected. + + https://redis.io/topics/clients#maximum-number-of-clients + tags: + - tag: scope + value: performance + graphs: + - uuid: c04e813d482a4709b13aa2a98911e11d + name: 'Redis: Clients' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.clients.connected + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Redis by Zabbix agent 2' + key: redis.clients.blocked + - uuid: 8643a1b690dc456b8daacc4b2b0810d4 + name: 'Redis: Commands' + graph_items: + - color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.stats.instantaneous_ops.rate + - uuid: 765c0125e8d549dc88279f65f38b6ed9 + name: 'Redis: CPU' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.cpu.sys + - sortorder: '1' + color: F63100 + item: + host: 'Redis by Zabbix agent 2' + key: redis.cpu.sys_children + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Redis by Zabbix agent 2' + key: redis.cpu.user + - sortorder: '3' + color: F7941D + item: + host: 'Redis by Zabbix agent 2' + key: redis.cpu.user_children + - uuid: fd25ac6239064cd29dc1939cd15005de + name: 'Redis: Expired keys' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.stats.expired_keys + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Redis by Zabbix agent 2' + key: redis.stats.evicted_keys + - uuid: 24cff7af388e41a8899e2916f12224d1 + name: 'Redis: Keyspace' + graph_items: + - color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.stats.keyspace_hits + - sortorder: '1' + color: F63100 + item: + host: 'Redis by Zabbix agent 2' + key: redis.stats.keyspace_misses + - uuid: a3ea32878f25481998e0fde7ba00a11b + name: 'Redis: Memory' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.memory.used_memory + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Redis by Zabbix agent 2' + key: redis.memory.used_memory_rss + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'Redis by Zabbix agent 2' + key: redis.memory.used_memory_peak + - uuid: ff8d6320a8e246a39d35ccb93220eb3a + name: 'Redis: Memory fragmentation' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.memory.fragmentation_ratio + - uuid: b3db4cc8247647faae0d3c2389f37d80 + name: 'Redis: Network' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.stats.instantaneous_input.rate + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Redis by Zabbix agent 2' + key: redis.stats.instantaneous_output.rate + - uuid: 81fde2046d2340119b2002da2b75df16 + name: 'Redis: Persistence' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.persistence.rdb_last_bgsave_time_sec + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Redis by Zabbix agent 2' + key: redis.persistence.aof_last_rewrite_time_sec + - uuid: 1ace370516b74875977788d44ab478e5 + name: 'Redis: Slaves' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.replication.connected_slaves + - uuid: 8dd9935cb7a24004b9783c3f1a445f1b + name: 'Redis: Slowlog' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: 'redis.slowlog.count["{$REDIS.CONN.URI}","{$REDIS.PASSWORD}","{$REDIS.USERNAME}"]' + - uuid: 32d954e849e64fe99bd8846b54aadede + name: 'Redis: Uptime' + graph_items: + - color: 199C0D + item: + host: 'Redis by Zabbix agent 2' + key: redis.server.uptime diff --git a/Remote_Zabbix_proxy_health.yaml b/Remote_Zabbix_proxy_health.yaml new file mode 100644 index 0000000..0aaa123 --- /dev/null +++ b/Remote_Zabbix_proxy_health.yaml @@ -0,0 +1,2438 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 970c2342146549768e6b91a26089bcdf + template: 'Remote Zabbix proxy health' + name: 'Remote Zabbix proxy health' + description: | + This template is designed to monitor internal Zabbix metrics on the remote Zabbix proxy. + + Specify the address of the remote Zabbix proxy by updating the {$ZABBIX.PROXY.ADDRESS} and {$ZABBIX.PROXY.PORT} macros. Don't forget to adjust the "StatsAllowedIP" parameter in the remote proxy's configuration file to allow the collection of statistics. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Applications + items: + - uuid: 061bac7060704850b42ae063aba8c076 + name: 'Discovery queue' + type: DEPENDENT + key: discovery_queue + delay: '0' + description: 'The count of values enqueued in the discovery queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.discovery_queue + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: e6654e9406b74b28909dc166b2805125 + name: 'Preprocessing queue' + type: DEPENDENT + key: preprocessing_queue + delay: '0' + description: 'The number of values enqueued in the preprocessing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing_queue + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 6732baab363145b4bf3211896ea70a6b + name: 'Preprocessing direct throughput' + type: DEPENDENT + key: preprocessing_throughput_direct + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the direct throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 58e6a944fdd549dabc5103d1f1f7b37e + name: 'Preprocessing queued throughput' + type: DEPENDENT + key: preprocessing_throughput_queued + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the queued throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 87cd65b2e4ec44669dbd9a404a1c0323 + name: 'Preprocessing direct VPS' + type: DEPENDENT + key: preprocessing_vps_direct + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of direct preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 96be72679ce84c0888982c9c23337258 + name: 'Preprocessing queued VPS' + type: DEPENDENT + key: preprocessing_vps_queued + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of queued preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 55b74e2521be4ec4bd74f28fafa1fc89 + name: 'Utilization of agent poller data collector processes, in %' + type: DEPENDENT + key: process.agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes agent poller not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: c35b8290fb2840e9bb403f54ad0e7b97 + expression: 'avg(/Remote Zabbix proxy health/process.agent_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.agent_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"agent poller"}' + name: 'Zabbix proxy: Utilization of agent poller processes is high' + event_name: 'Zabbix proxy: Utilization of agent poller processes over {$ZABBIX.PROXY.UTIL.MAX:"agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 189d41565cdf4f459468c43d1b1d0961 + name: 'Utilization of availability manager internal processes, in %' + type: DEPENDENT + key: process.availability_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the availability manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''availability manager''].busy.avg' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 77e66d2f6b0e48fa8a7ec5dd213eab35 + expression: 'avg(/Remote Zabbix proxy health/process.availability_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"availability manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.availability_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"availability manager"}' + name: 'Zabbix proxy: Utilization of availability manager processes is high' + event_name: 'Zabbix proxy: Utilization of availability manager processes over {$ZABBIX.PROXY.UTIL.MAX:"availability manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the availability manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: e71c85b839d2447ba9a8bec8aa0fb794 + name: 'Utilization of browser poller data collector processes, in %' + type: DEPENDENT + key: process.browser_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the browser poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''browser poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "browser poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 8458680e160d4f2ba1d1d2c20453dfe4 + expression: 'avg(/Remote Zabbix proxy health/process.browser_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"browser poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.browser_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"browser poller"}' + name: 'Zabbix proxy: Utilization of browser poller processes is high' + event_name: 'Zabbix proxy: Utilization of browser poller processes over {$ZABBIX.PROXY.UTIL.MAX:"browser poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the browser poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 457a086236ab40eda5c9758eabacb73d + name: 'Utilization of configuration syncer internal processes, in %' + type: DEPENDENT + key: process.configuration_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''configuration syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes configuration syncer not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 67089f59f77641c8ab487e2c44d563a2 + expression: 'avg(/Remote Zabbix proxy health/process.configuration_syncer.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"configuration syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.configuration_syncer.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"configuration syncer"}' + name: 'Zabbix proxy: Utilization of configuration syncer processes is high' + event_name: 'Zabbix proxy: Utilization of configuration syncer processes over {$ZABBIX.PROXY.UTIL.MAX:"configuration syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: ff9c1cb7fb234ad2b793c4f296b79834 + name: 'Utilization of data sender internal processes, in %' + type: DEPENDENT + key: process.data_sender.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the data sender processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''data sender''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes data sender not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: f2208ef37274449fb2b61f5f55e615f1 + expression: 'avg(/Remote Zabbix proxy health/process.data_sender.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"data sender"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.data_sender.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"data sender"}' + name: 'Zabbix proxy: Utilization of data sender processes is high' + event_name: 'Zabbix proxy: Utilization of data sender processes over {$ZABBIX.PROXY.UTIL.MAX:"data sender"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the data sender, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 879ef97241444ef9ac679e7f601557a0 + name: 'Utilization of discovery manager internal processes, in %' + type: DEPENDENT + key: process.discovery_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 8d0651ac99ba4c28b9525885e04ecb98 + expression: 'avg(/Remote Zabbix proxy health/process.discovery_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"discovery manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.discovery_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"discovery manager"}' + name: 'Zabbix proxy: Utilization of discovery manager processes is high' + event_name: 'Zabbix proxy: Utilization of discovery manager processes over {$ZABBIX.PROXY.UTIL.MAX:"discovery manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 59ab4f96b9704b94b95cdb2f96c3736f + name: 'Utilization of discovery worker internal processes, in %' + type: DEPENDENT + key: process.discovery_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery worker" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 63c45f37a5cd41c091ba3af451325220 + expression: 'avg(/Remote Zabbix proxy health/process.discovery_worker.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"discovery worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.discovery_worker.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"discovery worker"}' + name: 'Zabbix proxy: Utilization of discovery worker processes is high' + event_name: 'Zabbix proxy: Utilization of discovery worker processes over {$ZABBIX.PROXY.UTIL.MAX:"discovery worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c710e445710b4d98bd4ebcd5770c7d5a + name: 'Utilization of history syncer internal processes, in %' + type: DEPENDENT + key: process.history_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''history syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes history syncer not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 872ca8a02ff948d0ab4f5000249bbf5b + expression: 'avg(/Remote Zabbix proxy health/process.history_syncer.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"history syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.history_syncer.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"history syncer"}' + name: 'Zabbix proxy: Utilization of history syncer processes is high' + event_name: 'Zabbix proxy: Utilization of history syncer processes over {$ZABBIX.PROXY.UTIL.MAX:"history syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 50c3587febc14c118ca2868c24e42770 + name: 'Utilization of housekeeper internal processes, in %' + type: DEPENDENT + key: process.housekeeper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the housekeeper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''housekeeper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes housekeeper not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 43d8ef15170e4edd80eea85ad9990d73 + expression: 'avg(/Remote Zabbix proxy health/process.housekeeper.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.housekeeper.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"housekeeper"}' + name: 'Zabbix proxy: Utilization of housekeeper processes is high' + event_name: 'Zabbix proxy: Utilization of housekeeper processes over {$ZABBIX.PROXY.UTIL.MAX:"housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: b93aad197c1d411f8845ae7c591d1759 + name: 'Utilization of http agent poller data collector processes, in %' + type: DEPENDENT + key: process.http_agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes http agent poller not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 460ddec16c564c6dbc706b21747aa622 + expression: 'avg(/Remote Zabbix proxy health/process.http_agent_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"http agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.http_agent_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"http agent poller"}' + name: 'Zabbix proxy: Utilization of http agent poller processes is high' + event_name: 'Zabbix proxy: Utilization of http agent poller processes over {$ZABBIX.PROXY.UTIL.MAX:"http agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 4f335477bd654368a7870dc5cd21e114 + name: 'Utilization of http poller data collector processes, in %' + type: DEPENDENT + key: process.http_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes http poller not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 9c391ba5350d401b9ca56f7cd29cd457 + expression: 'avg(/Remote Zabbix proxy health/process.http_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"http poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.http_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"http poller"}' + name: 'Zabbix proxy: Utilization of http poller processes is high' + event_name: 'Zabbix proxy: Utilization of http poller processes over {$ZABBIX.PROXY.UTIL.MAX:"http poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: f03927fd354a490e95521e5922a19ad3 + name: 'Utilization of icmp pinger data collector processes, in %' + type: DEPENDENT + key: process.icmp_pinger.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the icmp pinger processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''icmp pinger''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes icmp pinger not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 8a0abc8ff0dd42b0926b5840fe5b0e2f + expression: 'avg(/Remote Zabbix proxy health/process.icmp_pinger.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"icmp pinger"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.icmp_pinger.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"icmp pinger"}' + name: 'Zabbix proxy: Utilization of icmp pinger processes is high' + event_name: 'Zabbix proxy: Utilization of icmp pinger processes over {$ZABBIX.PROXY.UTIL.MAX:"icmp pinger"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the icmp pinger, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 2474dabb131247f0bce1d43075cee215 + name: 'Utilization of internal poller data collector processes, in %' + type: DEPENDENT + key: process.internal_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the internal poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''internal poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "internal poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 5bea08baaad04d4e8d15540e931e0336 + expression: 'avg(/Remote Zabbix proxy health/process.internal_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"internal poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.internal_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"internal poller"}' + name: 'Zabbix proxy: Utilization of internal poller processes is high' + event_name: 'Zabbix proxy: Utilization of internal poller processes over {$ZABBIX.PROXY.UTIL.MAX:"internal poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the internal poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: fb560cce51714f9c8b5164f7587930e5 + name: 'Utilization of ipmi manager internal processes, in %' + type: DEPENDENT + key: process.ipmi_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes ipmi manager not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: a2aed809416b46beba8ed63554d9b7d5 + expression: 'avg(/Remote Zabbix proxy health/process.ipmi_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"ipmi manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.ipmi_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"ipmi manager"}' + name: 'Zabbix proxy: Utilization of ipmi manager processes is high' + event_name: 'Zabbix proxy: Utilization of ipmi manager processes over {$ZABBIX.PROXY.UTIL.MAX:"ipmi manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c4ff983246e7450f96af03da274df151 + name: 'Utilization of ipmi poller data collector processes, in %' + type: DEPENDENT + key: process.ipmi_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes ipmi poller not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: e7c748c36e5740d684a5c4c68682f321 + expression: 'avg(/Remote Zabbix proxy health/process.ipmi_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"ipmi poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.ipmi_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"ipmi poller"}' + name: 'Zabbix proxy: Utilization of ipmi poller processes is high' + event_name: 'Zabbix proxy: Utilization of ipmi poller processes over {$ZABBIX.PROXY.UTIL.MAX:"ipmi poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c37b027a671449dca92cfbf1b15e711f + name: 'Utilization of java poller data collector processes, in %' + type: DEPENDENT + key: process.java_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the java poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''java poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes java poller not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: ef46070fc30b46c7be1ce3574e578449 + expression: 'avg(/Remote Zabbix proxy health/process.java_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"java poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.java_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"java poller"}' + name: 'Zabbix proxy: Utilization of java poller processes is high' + event_name: 'Zabbix proxy: Utilization of java poller processes over {$ZABBIX.PROXY.UTIL.MAX:"java poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the java poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 7c0d7d097e004d0db25eab55ceb6b87c + name: 'Utilization of ODBC poller data collector processes, in %' + type: DEPENDENT + key: process.odbc_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ODBC poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''odbc poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes odbc poller not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 7f83ff01200c4862aa22057b079da6f8 + expression: 'avg(/Remote Zabbix proxy health/process.odbc_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"ODBC poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.odbc_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"ODBC poller"}' + name: 'Zabbix proxy: Utilization of ODBC poller processes is high' + event_name: 'Zabbix proxy: Utilization of ODBC poller processes over {$ZABBIX.PROXY.UTIL.MAX:"ODBC poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ODBC poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: e44b8cc43d5c49c5a81ed33c5cc44c82 + name: 'Utilization of poller data collector processes, in %' + type: DEPENDENT + key: process.poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes poller not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 6afb9db9e11842c28c059abd31c7a134 + expression: 'avg(/Remote Zabbix proxy health/process.poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"poller"}' + name: 'Zabbix proxy: Utilization of poller processes is high' + event_name: 'Zabbix proxy: Utilization of poller processes over {$ZABBIX.PROXY.UTIL.MAX:"poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c4746528d75a41898a7ded21701de019 + name: 'Utilization of preprocessing manager internal processes, in %' + type: DEPENDENT + key: process.preprocessing_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes preprocessing manager not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 4c681b0775b54fd79e4aba669e219967 + expression: 'avg(/Remote Zabbix proxy health/process.preprocessing_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"preprocessing manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.preprocessing_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"preprocessing manager"}' + name: 'Zabbix proxy: Utilization of preprocessing manager processes is high' + event_name: 'Zabbix proxy: Utilization of preprocessing manager processes over {$ZABBIX.PROXY.UTIL.MAX:"preprocessing manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 5b10c9859c3443459b5e993015ae68fc + name: 'Utilization of preprocessing worker internal processes, in %' + type: DEPENDENT + key: process.preprocessing_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes preprocessing worker not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: f1c97c56e2d04cabaaa4c9b41e2bbad3 + expression: 'avg(/Remote Zabbix proxy health/process.preprocessing_worker.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"preprocessing worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.preprocessing_worker.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"preprocessing worker"}' + name: 'Zabbix proxy: Utilization of preprocessing worker processes is high' + event_name: 'Zabbix proxy: Utilization of preprocessing worker processes over {$ZABBIX.PROXY.UTIL.MAX:"preprocessing worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: fbfe2a05b2914c9d8b1b39aa7320aaf3 + name: 'Utilization of self-monitoring internal processes, in %' + type: DEPENDENT + key: process.self-monitoring.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the self-monitoring processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''self-monitoring''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes self-monitoring not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: fee719ea91524972897c19ce4b17bd54 + expression: 'avg(/Remote Zabbix proxy health/process.self-monitoring.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"self-monitoring"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.self-monitoring.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"self-monitoring"}' + name: 'Zabbix proxy: Utilization of self-monitoring processes is high' + event_name: 'Zabbix proxy: Utilization of self-monitoring processes over {$ZABBIX.PROXY.UTIL.MAX:"self-monitoring"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the self-monitoring, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: f31066273dde41c2aee2a319c1a1af9a + name: 'Utilization of snmp poller data collector processes, in %' + type: DEPENDENT + key: process.snmp_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes snmp poller not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: e9c89574068443f89c369df8618506e6 + expression: 'avg(/Remote Zabbix proxy health/process.snmp_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"snmp poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.snmp_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"snmp poller"}' + name: 'Zabbix proxy: Utilization of snmp poller processes is high' + event_name: 'Zabbix proxy: Utilization of snmp poller processes over {$ZABBIX.PROXY.UTIL.MAX:"snmp poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 3c06aed8f9ca4790b23132498e32701f + name: 'Utilization of snmp trapper data collector processes, in %' + type: DEPENDENT + key: process.snmp_trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes snmp trapper not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 9ca70574386f4b968bcda64a5d267d58 + expression: 'avg(/Remote Zabbix proxy health/process.snmp_trapper.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"snmp trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.snmp_trapper.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"snmp trapper"}' + name: 'Zabbix proxy: Utilization of snmp trapper processes is high' + event_name: 'Zabbix proxy: Utilization of snmp trapper processes over {$ZABBIX.PROXY.UTIL.MAX:"snmp trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 48ab13daaf0541bdbf317226c753472c + name: 'Utilization of task manager internal processes, in %' + type: DEPENDENT + key: process.task_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the task manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''task manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes task manager not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 9d7d15a747484530a61102175cbc4478 + expression: 'avg(/Remote Zabbix proxy health/process.task_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"task manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.task_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"task manager"}' + name: 'Zabbix proxy: Utilization of task manager processes is high' + event_name: 'Zabbix proxy: Utilization of task manager processes over {$ZABBIX.PROXY.UTIL.MAX:"task manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the task manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d37a6ebb128d4221a34c8d78736ea90b + name: 'Utilization of trapper data collector processes, in %' + type: DEPENDENT + key: process.trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes trapper not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 49a9e3e1b17146f7861daf6994956d4f + expression: 'avg(/Remote Zabbix proxy health/process.trapper.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.trapper.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"trapper"}' + name: 'Zabbix proxy: Utilization of trapper processes is high' + event_name: 'Zabbix proxy: Utilization of trapper processes over {$ZABBIX.PROXY.UTIL.MAX:"trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a0c56d8570eb4cb39e119fc61d7092d1 + name: 'Utilization of unreachable poller data collector processes, in %' + type: DEPENDENT + key: process.unreachable_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the unreachable poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''unreachable poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes unreachable poller not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: e446ec803eaf4ace9b7d1fdc7a89cba6 + expression: 'avg(/Remote Zabbix proxy health/process.unreachable_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"unreachable poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.unreachable_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"unreachable poller"}' + name: 'Zabbix proxy: Utilization of unreachable poller processes is high' + event_name: 'Zabbix proxy: Utilization of unreachable poller processes over {$ZABBIX.PROXY.UTIL.MAX:"unreachable poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the unreachable poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 54d7e2578b594022ad406b40c9dd57fe + name: 'Utilization of vmware collector data collector processes, in %' + type: DEPENDENT + key: process.vmware_collector.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the vmware collector processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''vmware collector''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes vmware collector not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 30147687074f45e7ab0dce81a1b7cf07 + expression: 'avg(/Remote Zabbix proxy health/process.vmware_collector.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"vmware collector"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix proxy health/process.vmware_collector.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"vmware collector"}' + name: 'Zabbix proxy: Utilization of vmware collector processes is high' + event_name: 'Zabbix proxy: Utilization of vmware collector processes over {$ZABBIX.PROXY.UTIL.MAX:"vmware collector"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the vmware collector, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 0e27243e5c844357a57a1c32869863a4 + name: 'Proxy memory buffer, % used' + type: DEPENDENT + key: proxy_buffer.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + Statistics and availability of Zabbix proxy memory buffer usage statistics. Percentage of used proxy memory buffer. + Proxy memory buffer is used to store the new historical data and upload from it without accessing database. + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.[''proxy buffer''].memory.pused' + error_handler: CUSTOM_ERROR + error_handler_params: 'Proxy memory buffer is disabled.' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 4c04e5a21a91485e9562ef951877a5f3 + expression: 'max(/Remote Zabbix proxy health/proxy_buffer.buffer.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"proxy buffer"}' + name: 'Zabbix proxy: Excessive proxy memory buffer usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"proxy buffer"}% used in the proxy memory buffer' + priority: AVERAGE + description: 'Consider increasing ProxyMemoryBufferSize in the zabbix_proxy.conf configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 4bfed9e5c4b449c490a26ea67f1106cd + name: 'Proxy buffer, state changes' + type: DEPENDENT + key: proxy_buffer.state.changes + delay: '0' + description: 'The number of state changes between disk/memory buffer modes since proxy start.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.[''proxy buffer''].[''state change'']' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: ddca62888fab477a84b215812c7bf57d + name: 'Proxy buffer, state' + type: DEPENDENT + key: proxy_buffer.state.current + delay: '0' + description: | + The current working state of proxy buffer where the new data is being stored. Possible values: + + 0 - disk (also returned when memory buffer is disabled); + 1 - memory. + valuemap: + name: 'Proxy buffer mode' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.[''proxy buffer''].state' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: a283182189c4414c9a123f7511603009 + name: 'Zabbix proxy check' + type: DEPENDENT + key: proxy_check + delay: '0' + trends: '0' + description: 'Flag indicating whether it is a proxy or not.' + valuemap: + name: 'Zabbix proxy check' + preprocessing: + - type: JSONPATH + parameters: + - $.data.triggers + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: IN_RANGE + parameters: + - '' + - '0' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 7c54b686ce754537b7f379ec1af4e630 + expression: 'last(/Remote Zabbix proxy health/proxy_check)=1' + name: 'Zabbix proxy: Wrong template assigned' + event_name: 'Zabbix proxy: Zabbix proxy template is assigned to Zabbix server' + priority: DISASTER + description: 'Check that the template has been selected correctly.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 72dd891d7ced4cefb7de988dadf81f3b + name: 'Configuration cache, % used' + type: DEPENDENT + key: rcache.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix configuration cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.rcache.pused + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 6aaad09f92f3419c9aa7164f2191a45a + expression: 'max(/Remote Zabbix proxy health/rcache.buffer.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"configuration cache"}' + name: 'Zabbix proxy: Excessive configuration cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"configuration cache"}% used in the configuration cache' + priority: AVERAGE + description: 'Consider increasing `CacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 2f314a33e06444d88fd99b5442b10a9e + expression: 'nodata(/Remote Zabbix proxy health/rcache.buffer.pused,{$ZABBIX.PROXY.NODATA_TIMEOUT})=1' + name: 'Zabbix proxy: Failed to fetch stats data' + event_name: 'Zabbix proxy: Failed to fetch stats data (or no data for {$ZABBIX.PROXY.NODATA_TIMEOUT})' + priority: WARNING + description: 'Zabbix has not received statistics data for `{$ZABBIX.PROXY.NODATA_TIMEOUT}`.' + tags: + - tag: scope + value: availability + - uuid: 0df481994c454884b6be2e2132248af7 + name: 'Required VPS' + type: DEPENDENT + key: requiredperformance + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The required performance of a proxy (the number of values that need to be collected per second).' + preprocessing: + - type: JSONPATH + parameters: + - $.data.requiredperformance + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 28d87aef584644e9a3adcde33966b4e1 + name: Uptime + type: DEPENDENT + key: uptime + delay: '0' + units: uptime + description: 'Uptime of the Zabbix proxy process in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.uptime + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 8940efd3c68b4ded80ea1e89d55dfa7c + expression: 'last(/Remote Zabbix proxy health/uptime)<10m' + name: 'Zabbix proxy: {HOST.NAME} has been restarted' + event_name: 'Zabbix proxy: {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: ba19f24c2e234ac89a12a4a7aceeff93 + name: Version + type: DEPENDENT + key: version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of Zabbix proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 224ec99fda0d443cba8a6c75da5a27cb + expression: 'last(/Remote Zabbix proxy health/version,#1)<>last(/Remote Zabbix proxy health/version,#2) and length(last(/Remote Zabbix proxy health/version))>0' + name: 'Zabbix proxy: Version has changed' + event_name: 'Zabbix proxy: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Zabbix proxy version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7e6ffd55fe6842219f6e0d3c81ffa309 + name: 'VMware cache, % used' + type: DEPENDENT + key: vmware.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix vmware cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vmware.pused + error_handler: CUSTOM_ERROR + error_handler_params: 'No vmware collector processes started' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: ac2a42046de340e1968802d92678947c + expression: 'max(/Remote Zabbix proxy health/vmware.buffer.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"vmware cache"}' + name: 'Zabbix proxy: Excessive vmware cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"vmware cache"}% used in the vmware cache' + priority: AVERAGE + description: 'Consider increasing `VMwareCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 2abf18f2a9c9412ca81d615f45d4ca5f + name: 'History write cache, % used' + type: DEPENDENT + key: wcache.history.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history buffer. + The history cache is used to store item values. A high number indicates database performance problems. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.history.pused + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: c14095c38d17486fa8fde22bd5a9d737 + expression: 'max(/Remote Zabbix proxy health/wcache.history.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"history cache"}' + name: 'Zabbix proxy: Excessive history cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"history cache"}% used in the history cache' + priority: AVERAGE + description: 'Consider increasing `HistoryCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: a907ff2d6d8e4389b116eb3ec01dacfe + name: 'History index cache, % used' + type: DEPENDENT + key: wcache.index.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history index buffer. + The history index cache is used to index values stored in the history cache. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.index.pused + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 43f9a4fc049e45e5b8bbb0980b518dd0 + expression: 'max(/Remote Zabbix proxy health/wcache.index.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"index cache"}' + name: 'Zabbix proxy: Excessive history index cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"index cache"}% used in the history index cache' + priority: AVERAGE + description: 'Consider increasing `HistoryIndexCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 0238a93001a3438988b9b5cc4cbcc68e + name: 'Number of processed values per second' + type: DEPENDENT + key: wcache.values + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The total number of values processed by Zabbix server or Zabbix proxy, except unsupported items. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.all + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: f20ff449693a479895b7f3b450b93787 + name: 'Number of processed numeric (float) values per second' + type: DEPENDENT + key: wcache.values.float + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (float) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.float + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: b20b00f97a424b8e9c69ebb749a94d65 + name: 'Number of processed log values per second' + type: DEPENDENT + key: wcache.values.log + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed log values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.log + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 927b1387d969466eba000855837887c7 + name: 'Number of processed not supported values per second' + type: DEPENDENT + key: wcache.values.not_supported + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of times the item processing resulted in an item becoming unsupported or remaining in that state. + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.values[''not supported'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 334584cfea704011b8ae70436e47e2ff + name: 'Number of processed character values per second' + type: DEPENDENT + key: wcache.values.str + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed character values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.str + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 35b053f8ce89430b989387eb3075b582 + name: 'Number of processed text values per second' + type: DEPENDENT + key: wcache.values.text + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed text values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.text + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: c53f480b861249c4a1ca12571faa4487 + name: 'Number of processed numeric (unsigned) values per second' + type: DEPENDENT + key: wcache.values.uint + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (unsigned) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.uint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: c9b9ee0faefd4cefbac32f548539266e + name: 'Queue over 10 minutes' + type: INTERNAL + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue,10m]' + description: 'The number of monitored items in the queue that are delayed by at least 10 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + triggers: + - uuid: 71cd927153ef4b8480a8f13fc6b4def8 + expression: 'min(/Remote Zabbix proxy health/zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue,10m],10m)>100' + name: 'Zabbix proxy: More than 100 items have been missing data for over 10 minutes' + priority: WARNING + description: 'Indicates potential issues with network connectivity, agent failures, or unresponsive monitored resources that require attention.' + tags: + - tag: scope + value: performance + - uuid: 128bcd3c019946b593f3256858cf8397 + name: Queue + type: INTERNAL + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue]' + description: 'The number of monitored items in the queue that are delayed by at least 6 seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + - uuid: c3d4e015efe7459f8207096a04b296f0 + name: 'Zabbix stats' + type: INTERNAL + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Zabbix server statistics master item.' + tags: + - tag: component + value: raw + tags: + - tag: class + value: software + - tag: target + value: proxy + - tag: target + value: zabbix + macros: + - macro: '{$ZABBIX.PROXY.ADDRESS}' + description: 'IP/DNS/network mask list of proxies to be remotely queried (default is 127.0.0.1).' + - macro: '{$ZABBIX.PROXY.NODATA_TIMEOUT}' + value: 5m + description: 'The time threshold after which statistics are considered unavailable. Used in trigger expressions.' + - macro: '{$ZABBIX.PROXY.PORT}' + description: 'Port of proxy to be remotely queried (default is 10051).' + - macro: '{$ZABBIX.PROXY.UTIL.MAX}' + value: '75' + description: 'Default maximum threshold for percentage utilization triggers (use macro context for specification).' + - macro: '{$ZABBIX.PROXY.UTIL.MIN}' + value: '65' + description: 'Default minimum threshold for percentage utilization triggers (use macro context for specification).' + dashboards: + - uuid: cd580518d9d5434296a1ed9701b71a77 + name: 'Remote Zabbix proxy health' + auto_start: 'NO' + pages: + - name: Performance + widgets: + - type: svggraph + name: 'Cache usage, in %' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: STRING + name: ds.0.color.2 + value: ff7f00 + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: a6cee3 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: rcache.buffer.pused + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: wcache.index.pused + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix proxy health' + key: wcache.history.pused + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Remote Zabbix proxy health' + key: vmware.buffer.pused + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Remote Zabbix proxy health' + key: proxy_buffer.buffer.pused + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Server performance' + 'y': '6' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: wcache.values + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: 'zabbix[stats,{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACC + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Values processed' + 'y': '11' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: wcache.values.uint + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: wcache.values.float + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix proxy health' + key: wcache.values.not_supported + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Remote Zabbix proxy health' + key: wcache.values.str + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Remote Zabbix proxy health' + key: wcache.values.log + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Remote Zabbix proxy health' + key: wcache.values.text + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACD + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing throughput' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: preprocessing_throughput_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: preprocessing_throughput_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABV + - type: svggraph + name: 'Internal queues' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffff99 + - type: STRING + name: ds.0.color.1 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: preprocessing_queue + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: discovery_queue + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACB + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing VPS' + x: '36' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: preprocessing_vps_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: preprocessing_vps_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABW + - name: Processes + widgets: + - type: svggraph + name: 'Utilization: Discovery processes' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 7e57c2 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: process.discovery_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: process.discovery_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: discovery_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABH + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Synchronous gathering processes' + 'y': '6' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: ff7f00 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: 17becf + - type: STRING + name: ds.0.color.5 + value: a6cee3 + - type: STRING + name: ds.0.color.6 + value: fb9a99 + - type: STRING + name: ds.0.color.7 + value: bcbd22 + - type: STRING + name: ds.0.color.8 + value: fdbf6f + - type: STRING + name: ds.0.color.9 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: process.poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: process.internal_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix proxy health' + key: process.ipmi_poller.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Remote Zabbix proxy health' + key: process.ipmi_manager.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Remote Zabbix proxy health' + key: process.http_poller.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Remote Zabbix proxy health' + key: process.java_poller.avg.busy + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Remote Zabbix proxy health' + key: process.vmware_collector.avg.busy + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Remote Zabbix proxy health' + key: process.browser_poller.avg.busy + - type: ITEM + name: ds.0.itemids.8 + value: + host: 'Remote Zabbix proxy health' + key: process.odbc_poller.avg.busy + - type: ITEM + name: ds.0.itemids.9 + value: + host: 'Remote Zabbix proxy health' + key: process.icmp_pinger.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABJ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Asynchronous gathering processes' + 'y': '13' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: process.agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: process.http_agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix proxy health' + key: process.snmp_poller.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABK + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Core' + 'y': '19' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: STRING + name: ds.0.color.2 + value: ff7f00 + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: a6cee3 + - type: STRING + name: ds.0.color.5 + value: fdbf6f + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: process.configuration_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: process.history_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix proxy health' + key: process.self-monitoring.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Remote Zabbix proxy health' + key: process.task_manager.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Remote Zabbix proxy health' + key: process.data_sender.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Remote Zabbix proxy health' + key: process.housekeeper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABL + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Gathering processes: Trappers' + 'y': '25' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: fdbf6f + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: process.snmp_trapper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABM + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Data exchange with server' + 'y': '30' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: '000080' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: process.data_sender.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABO + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Preprocessing processes' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: fdbf6f + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: process.preprocessing_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: process.preprocessing_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: preprocessing_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABI + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Availability processes' + x: '36' + 'y': '25' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 6a3d9a + - type: STRING + name: ds.0.color.1 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix proxy health' + key: process.unreachable_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix proxy health' + key: process.availability_manager.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABN + - type: INTEGER + name: show_problems + value: '1' + - name: Statuses + widgets: + - type: item + name: 'Zabbix proxy version' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Remote Zabbix proxy health' + key: version + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: Uptime + x: '18' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Remote Zabbix proxy health' + key: uptime + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Proxy buffer state' + x: '36' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Remote Zabbix proxy health' + key: proxy_buffer.state.current + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + valuemaps: + - uuid: 70f06f62852c428b94f1f2447d58a6c8 + name: 'Proxy buffer mode' + mappings: + - value: '0' + newvalue: Disk + - value: '1' + newvalue: Memory + - uuid: d9fa93ed96d1497c9049f8f30267e9ed + name: 'Zabbix proxy check' + mappings: + - value: '0' + newvalue: 'True' + - value: '1' + newvalue: 'False' diff --git a/Remote_Zabbix_server_health.yaml b/Remote_Zabbix_server_health.yaml new file mode 100644 index 0000000..ac78e52 --- /dev/null +++ b/Remote_Zabbix_server_health.yaml @@ -0,0 +1,3996 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 79b16cbbe593444eae3de66de0cb566b + template: 'Remote Zabbix server health' + name: 'Remote Zabbix server health' + description: | + This template is designed to monitor internal Zabbix metrics on the remote Zabbix server. + + Specify the address of the remote Zabbix server by changing the {$ZABBIX.SERVER.ADDRESS} and {$ZABBIX.SERVER.PORT} macros. Don't forget to adjust the "StatsAllowedIP" parameter in the remote server's configuration file to allow the collection of statistics. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-7 + groups: + - name: Templates/Applications + items: + - uuid: 94235a52be114cb6a99cfc90834144e7 + name: 'Connector queue' + type: DEPENDENT + key: connector_queue + delay: '0' + description: 'The count of values enqueued in the connector queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.connector_queue + error_handler: CUSTOM_ERROR + error_handler_params: 'No "connector" processes started. Please check "StartConnectors" parameter in the server configuration file.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: c417ffdf78144a01811935d31e02af69 + name: 'Discovery queue' + type: DEPENDENT + key: discovery_queue + delay: '0' + description: 'The count of values enqueued in the discovery queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.discovery_queue + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: adcf44e5179644b0bee34103d3d3688e + name: 'LLD queue' + type: DEPENDENT + key: lld_queue + delay: '0' + description: 'The number of values enqueued in the low-level discovery processing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.lld_queue + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 9881f258f69d459195b5a19c56c523a8 + name: 'Preprocessing queue' + type: DEPENDENT + key: preprocessing_queue + delay: '0' + description: 'The number of values enqueued in the preprocessing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queue + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 68411db7353c44e2baed0b9def5f9ac5 + name: 'Preprocessing direct throughput' + type: DEPENDENT + key: preprocessing_throughput_direct + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the direct throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 2f59c93854b746229eea6362c45d2a59 + name: 'Preprocessing queued throughput' + type: DEPENDENT + key: preprocessing_throughput_queued + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the queued throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 8bcb650b956542b698b5a6cc9bb18e14 + name: 'Preprocessing direct VPS' + type: DEPENDENT + key: preprocessing_vps_direct + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of direct preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 394df7f1611949bba82b22416cf06f3e + name: 'Preprocessing queued VPS' + type: DEPENDENT + key: preprocessing_vps_queued + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of queued preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: f9ce1b8b5b384a7ebbf0a1c6d19948b1 + name: 'Utilization of agent poller data collector processes, in %' + type: DEPENDENT + key: process.agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "agent poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: f47c5db67da54295950939e7f18ed062 + expression: 'avg(/Remote Zabbix server health/process.agent_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.agent_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"agent poller"}' + name: 'Zabbix server: Utilization of agent poller processes is high' + event_name: 'Zabbix server: Utilization of agent poller processes over {$ZABBIX.SERVER.UTIL.MAX:"agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d8071d9c280c468cb70b19be50c756a5 + name: 'Utilization of alerter internal processes, in %' + type: DEPENDENT + key: process.alerter.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alerter processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''alerter''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "alerter" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: d4aae59fe9294da5b1c724b051af1683 + expression: 'avg(/Remote Zabbix server health/process.alerter.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"alerter"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.alerter.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"alerter"}' + name: 'Zabbix server: Utilization of alerter processes is high' + event_name: 'Zabbix server: Utilization of alerter processes over {$ZABBIX.SERVER.UTIL.MAX:"alerter"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alerter, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 14347f8309934849a2ac13974e4b66d1 + name: 'Utilization of alert manager internal processes, in %' + type: DEPENDENT + key: process.alert_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alert manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''alert manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "alert manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 310f33d488ae4f5faa245c96f8dc583c + expression: 'avg(/Remote Zabbix server health/process.alert_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"alert manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.alert_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"alert manager"}' + name: 'Zabbix server: Utilization of alert manager processes is high' + event_name: 'Zabbix server: Utilization of alert manager processes over {$ZABBIX.SERVER.UTIL.MAX:"alert manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alert manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 236699e6400c4ae3a20868c79fd35027 + name: 'Utilization of alert syncer internal processes, in %' + type: DEPENDENT + key: process.alert_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alert syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''alert syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "alert syncer" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 0eb23de05fac4aeab4ee4aa337545b16 + expression: 'avg(/Remote Zabbix server health/process.alert_syncer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"alert syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.alert_syncer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"alert syncer"}' + name: 'Zabbix server: Utilization of alert syncer processes is high' + event_name: 'Zabbix server: Utilization of alert syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"alert syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alert syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 44ae7bbbca5346a4926bf1208e00deb8 + name: 'Utilization of availability manager internal processes, in %' + type: DEPENDENT + key: process.availability_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the availability manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''availability manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "availability manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: ae06acfebdb3452b88359f1634c53876 + expression: 'avg(/Remote Zabbix server health/process.availability_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"availability manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.availability_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"availability manager"}' + name: 'Zabbix server: Utilization of availability manager processes is high' + event_name: 'Zabbix server: Utilization of availability manager processes over {$ZABBIX.SERVER.UTIL.MAX:"availability manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the availability manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 2270009e1b4c4cbb9cce4001b46df2ce + name: 'Utilization of browser poller data collector processes, in %' + type: DEPENDENT + key: process.browser_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the browser poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''browser poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "browser poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 5c41e353d4a4442d992240214443ee4d + expression: 'avg(/Remote Zabbix server health/process.browser_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"browser poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.browser_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"browser poller"}' + name: 'Zabbix server: Utilization of browser poller processes is high' + event_name: 'Zabbix server: Utilization of browser poller processes over {$ZABBIX.SERVER.UTIL.MAX:"browser poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the browser poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 439e81aed41e4fd7ba7f2e4a97ca1a91 + name: 'Utilization of configuration syncer internal processes, in %' + type: DEPENDENT + key: process.configuration_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''configuration syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "configuration syncer" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: f1caa410beea429eb91daaec8f027eb3 + expression: 'avg(/Remote Zabbix server health/process.configuration_syncer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.configuration_syncer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"configuration syncer"}' + name: 'Zabbix server: Utilization of configuration syncer processes is high' + event_name: 'Zabbix server: Utilization of configuration syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"configuration syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: f8946a8a36774b00a01645ae77228a55 + name: 'Utilization of configuration syncer worker internal processes, in %' + type: DEPENDENT + key: process.configuration_syncer_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''configuration syncer worker''].busy.avg' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 4b33128b800f4d1384127b61a7dd7492 + expression: 'avg(/Remote Zabbix server health/process.configuration_syncer_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration syncer worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.configuration_syncer_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"configuration syncer worker"}' + name: 'Zabbix server: Utilization of configuration syncer worker processes is high' + event_name: 'Zabbix server: Utilization of configuration syncer worker processes over {$ZABBIX.SERVER.UTIL.MAX:"configuration syncer worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: b7564d4eb40848dbb299e74cd525a07d + name: 'Utilization of connector manager internal processes, in %' + type: DEPENDENT + key: process.connector_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the connector manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''connector manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "connector manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: abe4c864b41a4a43b2ce963ed55a3f17 + expression: 'avg(/Remote Zabbix server health/process.connector_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"connector manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.connector_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"connector manager"}' + name: 'Zabbix server: Utilization of connector manager processes is high' + event_name: 'Zabbix server: Utilization of connector manager processes over {$ZABBIX.SERVER.UTIL.MAX:"connector manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the connector manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9a75eee4853a44b1b5087e0fea6c5bcb + name: 'Utilization of connector worker internal processes, in %' + type: DEPENDENT + key: process.connector_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the connector worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''connector worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "connector worker" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: ba984299c08f44b2a99c6fee187bcf01 + expression: 'avg(/Remote Zabbix server health/process.connector_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"connector worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.connector_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"connector worker"}' + name: 'Zabbix server: Utilization of connector worker processes is high' + event_name: 'Zabbix server: Utilization of connector worker processes over {$ZABBIX.SERVER.UTIL.MAX:"connector worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the connector worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 09c61eeecc354f2da1a8efcc100d5f5c + name: 'Utilization of discovery manager internal processes, in %' + type: DEPENDENT + key: process.discovery_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 96418e054e834497baffbd9ed0a4f6bf + expression: 'avg(/Remote Zabbix server health/process.discovery_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"discovery manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.discovery_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"discovery manager"}' + name: 'Zabbix server: Utilization of discovery manager processes is high' + event_name: 'Zabbix server: Utilization of discovery manager processes over {$ZABBIX.SERVER.UTIL.MAX:"discovery manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 6bfbac5f75c54f2c87a35f1786ed73e8 + name: 'Utilization of discovery worker internal processes, in %' + type: DEPENDENT + key: process.discovery_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery worker" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: fd92a81e2c614aa8826f7ff92fad801a + expression: 'avg(/Remote Zabbix server health/process.discovery_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"discovery worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.discovery_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"discovery worker"}' + name: 'Zabbix server: Utilization of discovery worker processes is high' + event_name: 'Zabbix server: Utilization of discovery worker processes over {$ZABBIX.SERVER.UTIL.MAX:"discovery worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d8110a23217142b9b10f2eda00a96f39 + name: 'Utilization of escalator internal processes, in %' + type: DEPENDENT + key: process.escalator.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the escalator processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''escalator''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "escalator" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: de07be1b10d9446abed4a387dd4980dd + expression: 'avg(/Remote Zabbix server health/process.escalator.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"escalator"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.escalator.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"escalator"}' + name: 'Zabbix server: Utilization of escalator processes is high' + event_name: 'Zabbix server: Utilization of escalator processes over {$ZABBIX.SERVER.UTIL.MAX:"escalator"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the escalator, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: edefe2732df14bc3933b8e1ff65fbd21 + name: 'Utilization of history poller internal processes, in %' + type: DEPENDENT + key: process.history_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''history poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "history poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 655c59a6151d4ce985a833d9f91efc2a + expression: 'avg(/Remote Zabbix server health/process.history_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"history poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.history_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"history poller"}' + name: 'Zabbix server: Utilization of history poller processes is high' + event_name: 'Zabbix server: Utilization of history poller processes over {$ZABBIX.SERVER.UTIL.MAX:"history poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 2b651866c6f04880888a770e9a08a167 + name: 'Utilization of history syncer internal processes, in %' + type: DEPENDENT + key: process.history_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''history syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "history syncer" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: b8e6a6ce3667459bad05afa850e99bc0 + expression: 'avg(/Remote Zabbix server health/process.history_syncer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"history syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.history_syncer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"history syncer"}' + name: 'Zabbix server: Utilization of history syncer processes is high' + event_name: 'Zabbix server: Utilization of history syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"history syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8eb5b40740a349fbb14ed39dd840fc85 + name: 'Utilization of housekeeper internal processes, in %' + type: DEPENDENT + key: process.housekeeper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the housekeeper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''housekeeper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "housekeeper" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: b879623a755e4b79972c2ad3189886a2 + expression: 'avg(/Remote Zabbix server health/process.housekeeper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.housekeeper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"housekeeper"}' + name: 'Zabbix server: Utilization of housekeeper processes is high' + event_name: 'Zabbix server: Utilization of housekeeper processes over {$ZABBIX.SERVER.UTIL.MAX:"housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 1d0a012bf32d43e2b7af6307dd0bf39f + name: 'Utilization of http agent poller data collector processes, in %' + type: DEPENDENT + key: process.http_agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "http agent poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 79604a0e6fe040b391f00d97ad11f56c + expression: 'avg(/Remote Zabbix server health/process.http_agent_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"http agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.http_agent_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"http agent poller"}' + name: 'Zabbix server: Utilization of http agent poller processes is high' + event_name: 'Zabbix server: Utilization of http agent poller processes over {$ZABBIX.SERVER.UTIL.MAX:"http agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 02371dc53214403dbf34ff9e970408ef + name: 'Utilization of http poller data collector processes, in %' + type: DEPENDENT + key: process.http_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "http poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: f7b4217cdd4b46b1949a5e6ac5fc3d02 + expression: 'avg(/Remote Zabbix server health/process.http_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"http poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.http_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"http poller"}' + name: 'Zabbix server: Utilization of http poller processes is high' + event_name: 'Zabbix server: Utilization of http poller processes over {$ZABBIX.SERVER.UTIL.MAX:"http poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 3a2dfedfac164b69a01105137eefd5e9 + name: 'Utilization of icmp pinger data collector processes, in %' + type: DEPENDENT + key: process.icmp_pinger.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the icmp pinger processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''icmp pinger''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "icmp pinger" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 312d404ff20740f38385ebe7c3e36d8f + expression: 'avg(/Remote Zabbix server health/process.icmp_pinger.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"icmp pinger"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.icmp_pinger.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"icmp pinger"}' + name: 'Zabbix server: Utilization of icmp pinger processes is high' + event_name: 'Zabbix server: Utilization of icmp pinger processes over {$ZABBIX.SERVER.UTIL.MAX:"icmp pinger"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the icmp pinger, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c8257547b30e424b9b6893896b2d8dd7 + name: 'Utilization of internal poller data collector processes, in %' + type: DEPENDENT + key: process.internal_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the internal poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''internal poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "internal poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: a84501d9e5b74b4990a896f8719b980d + expression: 'avg(/Remote Zabbix server health/process.internal_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"internal poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.internal_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"internal poller"}' + name: 'Zabbix server: Utilization of internal poller processes is high' + event_name: 'Zabbix server: Utilization of internal poller processes over {$ZABBIX.SERVER.UTIL.MAX:"internal poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the internal poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 52a05106bc5e4e05b04142827f394662 + name: 'Utilization of ipmi manager internal processes, in %' + type: DEPENDENT + key: process.ipmi_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "ipmi manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 3fe728ab8de9447c899b2a919b885cec + expression: 'avg(/Remote Zabbix server health/process.ipmi_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"ipmi manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.ipmi_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"ipmi manager"}' + name: 'Zabbix server: Utilization of ipmi manager processes is high' + event_name: 'Zabbix server: Utilization of ipmi manager processes over {$ZABBIX.SERVER.UTIL.MAX:"ipmi manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 849f8b11cc984c758c4947fe256e3310 + name: 'Utilization of ipmi poller data collector processes, in %' + type: DEPENDENT + key: process.ipmi_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "ipmi poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: dbf27d6a629a4a2cb75e04849b93ac0f + expression: 'avg(/Remote Zabbix server health/process.ipmi_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"ipmi poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.ipmi_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"ipmi poller"}' + name: 'Zabbix server: Utilization of ipmi poller processes is high' + event_name: 'Zabbix server: Utilization of ipmi poller processes over {$ZABBIX.SERVER.UTIL.MAX:"ipmi poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: e55654715f8143c597c858d7eb522e31 + name: 'Utilization of java poller data collector processes, in %' + type: DEPENDENT + key: process.java_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the java poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''java poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "java poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 304a2dcf77c8494fb18f52cc6bae73a9 + expression: 'avg(/Remote Zabbix server health/process.java_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"java poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.java_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"java poller"}' + name: 'Zabbix server: Utilization of java poller processes is high' + event_name: 'Zabbix server: Utilization of java poller processes over {$ZABBIX.SERVER.UTIL.MAX:"java poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the java poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: b8504e03317649399dabfffc2758d77c + name: 'Utilization of LLD manager internal processes, in %' + type: DEPENDENT + key: process.lld_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the LLD manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''lld manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "LLD manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 4027f813da2549cfb99e1bb5e04e1d28 + expression: 'avg(/Remote Zabbix server health/process.lld_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"LLD manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.lld_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"LLD manager"}' + name: 'Zabbix server: Utilization of LLD manager processes is high' + event_name: 'Zabbix server: Utilization of LLD manager processes over {$ZABBIX.SERVER.UTIL.MAX:"LLD manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the LLD manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c4d708a59d314de6814f4936ec6b0a99 + name: 'Utilization of LLD worker internal processes, in %' + type: DEPENDENT + key: process.lld_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the LLD worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''lld worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "LLD worker" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: ef1e836e906e4cf79b9fc8a11818c0a6 + expression: 'avg(/Remote Zabbix server health/process.lld_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"LLD worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.lld_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"LLD worker"}' + name: 'Zabbix server: Utilization of LLD worker processes is high' + event_name: 'Zabbix server: Utilization of LLD worker processes over {$ZABBIX.SERVER.UTIL.MAX:"LLD worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the LLD worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8a21a0281ae24e0788edc8c9b875a421 + name: 'Utilization of ODBC poller data collector processes, in %' + type: DEPENDENT + key: process.odbc_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ODBC poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''odbc poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes odbc poller not started' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: eadd70080005430c8b11666d7e93a095 + expression: 'avg(/Remote Zabbix server health/process.odbc_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"ODBC poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.odbc_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"ODBC poller"}' + name: 'Zabbix server: Utilization of ODBC poller processes is high' + event_name: 'Zabbix server: Utilization of ODBC poller processes over {$ZABBIX.SERVER.UTIL.MAX:"ODBC poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ODBC poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 61df12fa054b46f4b50596807dbc90c3 + name: 'Utilization of poller data collector processes, in %' + type: DEPENDENT + key: process.poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 689ed5dd9bbd4873a825dfa675378d50 + expression: 'avg(/Remote Zabbix server health/process.poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"poller"}' + name: 'Zabbix server: Utilization of poller processes is high' + event_name: 'Zabbix server: Utilization of poller processes over {$ZABBIX.SERVER.UTIL.MAX:"poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 42e9efb8e5e54b26b84372dc53e823b3 + name: 'Utilization of preprocessing manager internal processes, in %' + type: DEPENDENT + key: process.preprocessing_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "preprocessing manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: b43f04a35e17415bb81bfb59357d45ac + expression: 'avg(/Remote Zabbix server health/process.preprocessing_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"preprocessing manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.preprocessing_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"preprocessing manager"}' + name: 'Zabbix server: Utilization of preprocessing manager processes is high' + event_name: 'Zabbix server: Utilization of preprocessing manager processes over {$ZABBIX.SERVER.UTIL.MAX:"preprocessing manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 90bd4b46d63845b98a2c430aac157ea5 + name: 'Utilization of preprocessing worker internal processes, in %' + type: DEPENDENT + key: process.preprocessing_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "preprocessing worker" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 1c28310eb72047449437ee94854029fa + expression: 'avg(/Remote Zabbix server health/process.preprocessing_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"preprocessing worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.preprocessing_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"preprocessing worker"}' + name: 'Zabbix server: Utilization of preprocessing worker processes is high' + event_name: 'Zabbix server: Utilization of preprocessing worker processes over {$ZABBIX.SERVER.UTIL.MAX:"preprocessing worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c75afd4bc7794328a96ac261dc4776aa + name: 'Utilization of proxy group manager internal processes, in %' + type: DEPENDENT + key: process.proxy_group_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the proxy group manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''proxy group manager''].busy.avg' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 06bdef8b23c3459c99e180afdb1a8b2c + expression: 'avg(/Remote Zabbix server health/process.proxy_group_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"proxy group manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.proxy_group_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"proxy group manager"}' + name: 'Zabbix server: Utilization of proxy group manager processes is high' + event_name: 'Zabbix server: Utilization of proxy group manager processes over {$ZABBIX.SERVER.UTIL.MAX:"proxy group manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the proxy group manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 4c5eb5acc8a447afa47d732988dafbd9 + name: 'Utilization of proxy poller data collector processes, in %' + type: DEPENDENT + key: process.proxy_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the proxy poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''proxy poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "proxy poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: c0d2c7c008cb45ee8b032b7c83018ae1 + expression: 'avg(/Remote Zabbix server health/process.proxy_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"proxy poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.proxy_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"proxy poller"}' + name: 'Zabbix server: Utilization of proxy poller processes is high' + event_name: 'Zabbix server: Utilization of proxy poller processes over {$ZABBIX.SERVER.UTIL.MAX:"proxy poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the proxy poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 032c86725d7d479e8e0a8cf0ea14b349 + name: 'Utilization of report manager internal processes, in %' + type: DEPENDENT + key: process.report_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the report manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''report manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "report manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 32d6f18edd5a45e1999f294f227c600f + expression: 'avg(/Remote Zabbix server health/process.report_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"report manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.report_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"report manager"}' + name: 'Zabbix server: Utilization of report manager processes is high' + event_name: 'Zabbix server: Utilization of report manager processes over {$ZABBIX.SERVER.UTIL.MAX:"report manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the report manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 0a91377a6d5a460aa716164b201db6c0 + name: 'Utilization of report writer internal processes, in %' + type: DEPENDENT + key: process.report_writer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the report writer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''report writer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "report writer" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 83fa871d54f74c89a7c85d429d40da53 + expression: 'avg(/Remote Zabbix server health/process.report_writer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"report writer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.report_writer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"report writer"}' + name: 'Zabbix server: Utilization of report writer processes is high' + event_name: 'Zabbix server: Utilization of report writer processes over {$ZABBIX.SERVER.UTIL.MAX:"report writer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the report writer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 044bb995bcae42568979fd958383fc60 + name: 'Utilization of self-monitoring internal processes, in %' + type: DEPENDENT + key: process.self-monitoring.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the self-monitoring processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''self-monitoring''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "self-monitoring" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 0d9b8d1f2d7d454ab472320ac172252c + expression: 'avg(/Remote Zabbix server health/process.self-monitoring.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"self-monitoring"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.self-monitoring.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"self-monitoring"}' + name: 'Zabbix server: Utilization of self-monitoring processes is high' + event_name: 'Zabbix server: Utilization of self-monitoring processes over {$ZABBIX.SERVER.UTIL.MAX:"self-monitoring"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the self-monitoring, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 99da1d8bd47447d282542d40c1edea00 + name: 'Utilization of service manager internal processes, in %' + type: DEPENDENT + key: process.service_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the service manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''service manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "service manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 001c9e2027ca4e7c8f5dc5b78681c573 + expression: 'avg(/Remote Zabbix server health/process.service_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"service manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.service_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"service manager"}' + name: 'Zabbix server: Utilization of service manager processes is high' + event_name: 'Zabbix server: Utilization of service manager processes over {$ZABBIX.SERVER.UTIL.MAX:"service manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the service manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: faec2628848140549aa8cb1cb247b4ea + name: 'Utilization of snmp poller data collector processes, in %' + type: DEPENDENT + key: process.snmp_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "snmp poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 18407657b6a647e292a3625180ccb313 + expression: 'avg(/Remote Zabbix server health/process.snmp_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"snmp poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.snmp_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"snmp poller"}' + name: 'Zabbix server: Utilization of snmp poller processes is high' + event_name: 'Zabbix server: Utilization of snmp poller processes over {$ZABBIX.SERVER.UTIL.MAX:"snmp poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 643036d74a10414f94dc357efbbd42b2 + name: 'Utilization of snmp trapper data collector processes, in %' + type: DEPENDENT + key: process.snmp_trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "snmp trapper" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 4726331c52284261aa3f347448c1c3c5 + expression: 'avg(/Remote Zabbix server health/process.snmp_trapper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"snmp trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.snmp_trapper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"snmp trapper"}' + name: 'Zabbix server: Utilization of snmp trapper processes is high' + event_name: 'Zabbix server: Utilization of snmp trapper processes over {$ZABBIX.SERVER.UTIL.MAX:"snmp trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 7fad0515db154228b5baabb51d647a9f + name: 'Utilization of task manager internal processes, in %' + type: DEPENDENT + key: process.task_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the task manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''task manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "task manager" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 07d29e82b74a4cc5b0d701458af302b7 + expression: 'avg(/Remote Zabbix server health/process.task_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"task manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.task_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"task manager"}' + name: 'Zabbix server: Utilization of task manager processes is high' + event_name: 'Zabbix server: Utilization of task manager processes over {$ZABBIX.SERVER.UTIL.MAX:"task manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the task manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 105eae2d56d34d91b540f93009a575aa + name: 'Utilization of timer internal processes, in %' + type: DEPENDENT + key: process.timer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the timer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''timer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "timer" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 72f3b3f143a94f5a9b4b2c509425954e + expression: 'avg(/Remote Zabbix server health/process.timer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"timer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.timer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"timer"}' + name: 'Zabbix server: Utilization of timer processes is high' + event_name: 'Zabbix server: Utilization of timer processes over {$ZABBIX.SERVER.UTIL.MAX:"timer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the timer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9c90b3a087e1495caa17a00bebb70145 + name: 'Utilization of trapper data collector processes, in %' + type: DEPENDENT + key: process.trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "trapper" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: d31285f177224c4cb570373f6a730019 + expression: 'avg(/Remote Zabbix server health/process.trapper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.trapper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"trapper"}' + name: 'Zabbix server: Utilization of trapper processes is high' + event_name: 'Zabbix server: Utilization of trapper processes over {$ZABBIX.SERVER.UTIL.MAX:"trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 56dca0db33264d4b9c8fd769fbdff7b5 + name: 'Utilization of trigger housekeeper internal processes, in %' + type: DEPENDENT + key: process.trigger_housekeeper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trigger housekeeper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''trigger housekeeper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "trigger housekeeper" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 9c0daf6e85884122aa8c5b8432709c92 + expression: 'avg(/Remote Zabbix server health/process.trigger_housekeeper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"trigger housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.trigger_housekeeper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"trigger housekeeper"}' + name: 'Zabbix server: Utilization of trigger housekeeper processes is high' + event_name: 'Zabbix server: Utilization of trigger housekeeper processes over {$ZABBIX.SERVER.UTIL.MAX:"trigger housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trigger housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8d43954f6b9843009353c560a4f84157 + name: 'Utilization of unreachable poller data collector processes, in %' + type: DEPENDENT + key: process.unreachable_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the unreachable poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''unreachable poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "unreachable poller" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: d254ccddc7dd4e1ebf1eaa5113270e85 + expression: 'avg(/Remote Zabbix server health/process.unreachable_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"unreachable poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.unreachable_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"unreachable poller"}' + name: 'Zabbix server: Utilization of unreachable poller processes is high' + event_name: 'Zabbix server: Utilization of unreachable poller processes over {$ZABBIX.SERVER.UTIL.MAX:"unreachable poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the unreachable poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9f02a181362b42b882d869353fae93ce + name: 'Utilization of vmware collector data collector processes, in %' + type: DEPENDENT + key: process.vmware_collector.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the vmware collector processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''vmware collector''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "vmware collector" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 5929cfbe23494a41a20a4c05854f9578 + expression: 'avg(/Remote Zabbix server health/process.vmware_collector.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"vmware collector"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Remote Zabbix server health/process.vmware_collector.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"vmware collector"}' + name: 'Zabbix server: Utilization of vmware collector processes is high' + event_name: 'Zabbix server: Utilization of vmware collector processes over {$ZABBIX.SERVER.UTIL.MAX:"vmware collector"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the vmware collector, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 750964513e1d44d7b138980d6cac2188 + name: 'Configuration cache, % used' + type: DEPENDENT + key: rcache.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix configuration cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.rcache.pused + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 9d5f36b486ab4781a5f58210143785e9 + expression: 'max(/Remote Zabbix server health/rcache.buffer.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration cache"}' + name: 'Zabbix server: Excessive configuration cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"configuration cache"}% used in the configuration cache' + priority: AVERAGE + description: 'Consider increasing `CacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 07fbcbe743f84727838c982a51d36441 + expression: 'nodata(/Remote Zabbix server health/rcache.buffer.pused,{$ZABBIX.SERVER.NODATA_TIMEOUT})=1' + name: 'Zabbix server: Failed to fetch stats data' + event_name: 'Zabbix server: Failed to fetch stats data (or no data for {$ZABBIX.SERVER.NODATA_TIMEOUT})' + priority: WARNING + description: 'Zabbix has not received statistics data for `{$ZABBIX.SERVER.NODATA_TIMEOUT}`.' + tags: + - tag: scope + value: availability + - uuid: b6f47aa7b1b7407da7acd634a9859038 + name: 'Zabbix server check' + type: DEPENDENT + key: server_check + delay: '0' + trends: '0' + description: 'Flag indicating whether it is a server or not.' + valuemap: + name: 'Zabbix server check' + preprocessing: + - type: JSONPATH + parameters: + - $.data.triggers + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: IN_RANGE + parameters: + - '' + - '0' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 49e7153a96e74b60aad73cd91a792098 + expression: 'last(/Remote Zabbix server health/server_check)=0' + name: 'Zabbix server: Wrong template assigned' + event_name: 'Zabbix server: Zabbix server template is assigned to Zabbix proxy' + priority: DISASTER + description: 'Check that the template has been selected correctly.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1625b3470fbf4bd7aa5b7051e328b37c + name: 'Trend function cache, % of unique requests' + type: DEPENDENT + key: tcache.pitems + delay: '0' + value_type: FLOAT + units: '%' + description: | + The effectiveness statistics of the Zabbix trend function cache. The percentage of cached items calculated from the sum of the cached items plus requests. + A low percentage most likely means that the cache size can be reduced. + preprocessing: + - type: JSONPATH + parameters: + - $.data.tcache.pitems + error_handler: CUSTOM_ERROR + error_handler_params: 'Not supported in this version.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 2c8bf95e97dd48679e34591c72626c90 + name: 'Trend function cache, % of misses' + type: DEPENDENT + key: tcache.pmisses + delay: '0' + value_type: FLOAT + units: '%' + description: 'The effectiveness statistics of the Zabbix trend function cache. The percentage of cache misses.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.tcache.pmisses + error_handler: CUSTOM_ERROR + error_handler_params: 'Not supported in this version.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 9f9d8d1fcd08498698e37b5889502b47 + name: 'Value cache, % used' + type: DEPENDENT + key: vcache.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix value cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.buffer.pused + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: d35671cd02034aeba3c7c71ed618f4ee + expression: 'max(/Remote Zabbix server health/vcache.buffer.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"value cache"}' + name: 'Zabbix server: Excessive value cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"value cache"}% used in the value cache' + priority: AVERAGE + description: 'Consider increasing `ValueCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 9bd0079126974bf2a61f552de2cdf880 + name: 'Value cache hits' + type: DEPENDENT + key: vcache.cache.hits + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The effectiveness statistics of Zabbix value cache. The number of cache hits (history values taken from the cache).' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.cache.hits + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: e8c372778d4e434e98d3fba5ea603a50 + name: 'Value cache misses' + type: DEPENDENT + key: vcache.cache.misses + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The effectiveness statistics of Zabbix value cache. The number of cache misses (history values taken from the database).' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.cache.misses + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 1a1daeb7267f4ed4bf75c70699d487b6 + name: 'Value cache operating mode' + type: DEPENDENT + key: vcache.cache.mode + delay: '0' + units: '!vps' + description: 'The operating mode of the value cache.' + valuemap: + name: 'Value cache operating mode' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.cache.mode + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 95e8823159fc4baeb13d656be176ac16 + expression: 'last(/Remote Zabbix server health/vcache.cache.mode)=1' + name: 'Zabbix server: Zabbix value cache working in low-memory mode' + priority: HIGH + description: 'Once low-memory mode has been switched on, the value cache will remain in this state for 24 hours, even if the problem that triggered this mode is resolved sooner.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: f0eab81aaf464b809ea4d487548e57c6 + name: Version + type: DEPENDENT + key: version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of Zabbix server.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 93a52f22c79b40539fcd3a26183daad9 + expression: 'last(/Remote Zabbix server health/version,#1)<>last(/Remote Zabbix server health/version,#2) and length(last(/Remote Zabbix server health/version))>0' + name: 'Zabbix server: Version has changed' + event_name: 'Zabbix server: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Zabbix server version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9e2b2133916e4ce29ed4e9ca07c74123 + name: 'VMware cache, % used' + type: DEPENDENT + key: vmware.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix vmware cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vmware.pused + error_handler: CUSTOM_ERROR + error_handler_params: 'No "vmware collector" processes started.' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 08e6c62dd52b4a0694be910c4f4fa997 + expression: 'max(/Remote Zabbix server health/vmware.buffer.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"vmware cache"}' + name: 'Zabbix server: Excessive vmware cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"vmware cache"}% used in the vmware cache' + priority: AVERAGE + description: 'Consider increasing `VMwareCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 850743f411d9458cbf5d6de410d15edc + name: 'Number of values synchronized with the database per second' + type: DEPENDENT + key: vps.written + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Average quantity of values written to the database, recalculated once per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vps.written_total + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 98f47a07e2ba4294a9eb2aa1df2ba9f3 + name: 'History write cache, % used' + type: DEPENDENT + key: wcache.history.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history buffer. + The history cache is used to store item values. A high number indicates database performance problems. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.history.pused + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: a66914bd7f2e4442a8b555deacebb4c9 + expression: 'max(/Remote Zabbix server health/wcache.history.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"history cache"}' + name: 'Zabbix server: Excessive history cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"history cache"}% used in the history cache' + priority: AVERAGE + description: 'Consider increasing `HistoryCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: b1add70210a44b668f06cc3e062173ad + name: 'History index cache, % used' + type: DEPENDENT + key: wcache.index.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history index buffer. + The history index cache is used to index values stored in the history cache. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.index.pused + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 6aedbc1768ed4f949890248af98fdaa2 + expression: 'max(/Remote Zabbix server health/wcache.index.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"index cache"}' + name: 'Zabbix server: Excessive history index cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"index cache"}% used in the history index cache' + priority: AVERAGE + description: 'Consider increasing `HistoryIndexCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 1f79208bb2ec4e4eb26e6e1b95c3635e + name: 'Trend write cache, % used' + type: DEPENDENT + key: wcache.trend.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used trend buffer. + The trend cache stores the aggregate of all items that have received data for the current hour. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.trend.pused + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 742a4938fdd24026921b375a67cea921 + expression: 'max(/Remote Zabbix server health/wcache.trend.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"trend cache"}' + name: 'Zabbix server: Excessive trends cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"trend cache"}% used in the trends cache' + priority: AVERAGE + description: 'Consider increasing `TrendCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 34fe014843974248a98a45596ce43e1a + name: 'Number of processed values per second' + type: DEPENDENT + key: wcache.values + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The total number of values processed by Zabbix server or Zabbix proxy, except unsupported items. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.all + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 206f4fcb1e6d4e468a172e330f56b8aa + name: 'Number of processed numeric (float) values per second' + type: DEPENDENT + key: wcache.values.float + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (float) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.float + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: e2f3dc320d54446b80862eabe6fa0be5 + name: 'Number of processed log values per second' + type: DEPENDENT + key: wcache.values.log + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed log values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.log + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 82e088caf6e14c1cab700ad7fcc96263 + name: 'Number of processed not supported values per second' + type: DEPENDENT + key: wcache.values.not_supported + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of times the item processing resulted in an item becoming unsupported or remaining in that state. + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.values[''not supported'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 99415cd1920a4e7f8b99f3c71e7eba97 + name: 'Number of processed character values per second' + type: DEPENDENT + key: wcache.values.str + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed character values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.str + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 7172378f31a44a36a095a2c2afed763b + name: 'Number of processed text values per second' + type: DEPENDENT + key: wcache.values.text + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed text values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.text + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 7865ba7a928945f4a148acf623b72537 + name: 'Number of processed numeric (unsigned) values per second' + type: DEPENDENT + key: wcache.values.uint + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (unsigned) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.uint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 1e6a7ebfc0de47fd823ff59458317172 + name: 'Zabbix proxies stats' + type: DEPENDENT + key: zabbix.proxies.stats + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix proxies'' statistics.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.proxy + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: raw + - uuid: 95c8bab7640a4227b8ce6cac06e1a08b + name: 'Queue over 10 minutes' + type: INTERNAL + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue,10m]' + description: 'The number of monitored items in the queue that are delayed by at least 10 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + triggers: + - uuid: c8eddec1bb9740bb8ca05f74bd023fcc + expression: 'min(/Remote Zabbix server health/zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue,10m],10m)>100' + name: 'Zabbix server: More than 100 items have been missing data for over 10 minutes' + priority: WARNING + description: 'Indicates potential issues with network connectivity, agent failures, or unresponsive monitored resources that require attention.' + tags: + - tag: scope + value: performance + - uuid: c140ebe6c0404ee6b17b5ada2de09f28 + name: Queue + type: INTERNAL + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue]' + description: 'The number of monitored items in the queue that are delayed by at least 6 seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + - uuid: b9a588fee45047b6b991015e7e83f3f2 + name: 'Zabbix stats' + type: INTERNAL + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix server statistics.' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 0557f879881a4d558410444737ae3738 + name: 'High availability cluster node discovery' + type: DEPENDENT + key: zabbix.nodes.discovery + delay: '0' + description: 'LLD rule with item and trigger prototypes for node discovery.' + item_prototypes: + - uuid: caca3ccdcec141a3a9c3233ba72b8d0d + name: 'Cluster node [{#NODE.NAME}]: Address' + type: DEPENDENT + key: 'zabbix.node.address[{#NODE.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The IPv4 address of a node.' + preprocessing: + - type: JSONPATH + parameters: + - $.address + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: a9ded61c4dba4abb9213aec9af00a604 + name: 'Cluster node [{#NODE.NAME}]: Last access age' + type: DEPENDENT + key: 'zabbix.node.lastaccess.age[{#NODE.ID}]' + delay: '0' + units: uptime + description: 'The time between the database''s `unix_timestamp()` and the last access time.' + preprocessing: + - type: JSONPATH + parameters: + - $.lastaccess_age + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 0968e4fe51eb4c2b98a508090014aba0 + name: 'Cluster node [{#NODE.NAME}]: Last access time' + type: DEPENDENT + key: 'zabbix.node.lastaccess.time[{#NODE.ID}]' + delay: '0' + units: unixtime + description: 'Last access time.' + preprocessing: + - type: JSONPATH + parameters: + - $.lastaccess + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 525b8142186b488eacb5db7a6044b3c4 + name: 'Cluster node [{#NODE.NAME}]: Stats' + type: DEPENDENT + key: 'zabbix.node.stats[{#NODE.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Provides the statistics of a node.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.ha[?(@.id=="{#NODE.ID}")].first()' + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: cluster + - tag: component + value: raw + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 2b629362886546cab34396352b93835a + name: 'Cluster node [{#NODE.NAME}]: Status' + type: DEPENDENT + key: 'zabbix.nodes.status[{#NODE.ID}]' + delay: '0' + description: 'The status of a node.' + valuemap: + name: 'Cluster node status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 5d68b55175924cb4adde600a019496c4 + expression: 'last(/Remote Zabbix server health/zabbix.nodes.status[{#NODE.ID}],#1)<>last(/Remote Zabbix server health/zabbix.nodes.status[{#NODE.ID}],#2)' + name: 'Zabbix server: Cluster node [{#NODE.NAME}]: Status changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The state of the node has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + lld_macro_paths: + - lld_macro: '{#NODE.ID}' + path: $.id + - lld_macro: '{#NODE.NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.data.ha + - type: JAVASCRIPT + parameters: + - | + var hacluster = JSON.parse(value); + + result = hacluster.map(function (hanode) { + return { + 'id': hanode.id, + 'name': hanode.name + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: db52e7ced392405184955a884ad9dd00 + name: 'Zabbix proxy discovery' + type: DEPENDENT + key: zabbix.proxy.discovery + delay: '0' + description: 'LLD rule with item and trigger prototypes for proxy discovery.' + item_prototypes: + - uuid: b1fe4bb454a543a78cfa84810e320b46 + name: 'Proxy [{#PROXY.NAME}]: Certificate' + type: DEPENDENT + key: 'zabbix.proxy.cert[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.cert + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: fb38b7fa4daa4ab28338f96d9f903ff8 + name: 'Proxy [{#PROXY.NAME}]: Compatibility' + type: DEPENDENT + key: 'zabbix.proxy.compatibility[{#PROXY.NAME}]' + delay: '0' + description: | + Version of proxy compared to Zabbix server version. + + Possible values: + 0 - Undefined; + 1 - Current version (proxy and server have the same major version); + 2 - Outdated version (proxy version is older than server version, but is partially supported); + 3 - Unsupported version (proxy version is older than server previous LTS release version or server major version is older than proxy major version). + valuemap: + name: Compatibility + preprocessing: + - type: JSONPATH + parameters: + - $.compatibility + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + trigger_prototypes: + - uuid: 84365975ffa5450db47edd42adbae719 + expression: 'last(/Remote Zabbix server health/zabbix.proxy.compatibility[{#PROXY.NAME}],#1)=3' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy is not supported' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Zabbix proxy version is older than server previous LTS release version or server major version is older than proxy major version.' + tags: + - tag: scope + value: availability + - uuid: 53dbaf21b8934ea9bada97431d4b3e23 + expression: 'last(/Remote Zabbix server health/zabbix.proxy.compatibility[{#PROXY.NAME}],#1)=2' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy is outdated' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy version is older than server version, but is partially supported. Only data collection and remote execution is available.' + tags: + - tag: scope + value: availability + - uuid: 7c5a679fd7a34abca9d70e87150bb682 + name: 'Proxy [{#PROXY.NAME}]: Compression' + type: DEPENDENT + key: 'zabbix.proxy.compression[{#PROXY.NAME}]' + delay: '0' + description: 'The compression status of a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.compression + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 5db51524aa24458eaa1fa318adc77430 + name: 'Proxy [{#PROXY.NAME}]: Host count' + type: DEPENDENT + key: 'zabbix.proxy.hosts[{#PROXY.NAME}]' + delay: '0' + description: 'The number of enabled hosts assigned to a proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.hosts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 84c3d0ad89574545b0756a6385c09961 + name: 'Proxy [{#PROXY.NAME}]: Item count' + type: DEPENDENT + key: 'zabbix.proxy.items[{#PROXY.NAME}]' + delay: '0' + description: 'The number of enabled items on enabled hosts assigned to a proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.items + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 41f1158a246942379cd425bb9293636f + name: 'Proxy [{#PROXY.NAME}]: Last seen, in seconds' + type: DEPENDENT + key: 'zabbix.proxy.last_seen[{#PROXY.NAME}]' + delay: '0' + value_type: FLOAT + description: 'The time when a proxy was last seen by a server.' + valuemap: + name: 'Last seen' + preprocessing: + - type: JSONPATH + parameters: + - $.last_seen + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + trigger_prototypes: + - uuid: 21bf9805e0de4e3ba674de388834958e + expression: 'last(/Remote Zabbix server health/zabbix.proxy.last_seen[{#PROXY.NAME}],#1)>{$ZABBIX.PROXY.LAST_SEEN.MAX}' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy last seen' + event_name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy last seen more than {$ZABBIX.PROXY.LAST_SEEN.MAX} seconds ago' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy is not updating the configuration data.' + tags: + - tag: scope + value: availability + - uuid: d58a33ae396943009d359bb0cae9baba + expression: 'last(/Remote Zabbix server health/zabbix.proxy.last_seen[{#PROXY.NAME}],#1)=-1' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy never seen' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy is not updating the configuration data.' + tags: + - tag: scope + value: availability + - uuid: 56c5b47e6fa444a596db755d60b0cbaa + name: 'Proxy [{#PROXY.NAME}]: Mode' + type: DEPENDENT + key: 'zabbix.proxy.mode[{#PROXY.NAME}]' + delay: '0' + description: 'The mode of Zabbix proxy.' + valuemap: + name: 'Proxy mode' + preprocessing: + - type: JSONPATH + parameters: + - $.passive + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: a3b5f778c9b2450aad72ec97b6a52d50 + name: 'Proxy [{#PROXY.NAME}]: PSK' + type: DEPENDENT + key: 'zabbix.proxy.psk[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.psk + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 8f93b4b7a5bc4c8a9a2a0fefdb0d8274 + name: 'Proxy [{#PROXY.NAME}]: Required VPS' + type: DEPENDENT + key: 'zabbix.proxy.requiredperformance[{#PROXY.NAME}]' + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The required performance of a proxy (the number of values that need to be collected per second).' + preprocessing: + - type: JSONPATH + parameters: + - $.requiredperformance + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 285d4a878d3e43cc930d5a82bb103f13 + name: 'Proxy [{#PROXY.NAME}]: Stats' + type: DEPENDENT + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The statistics for the discovered proxy.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name=="{#PROXY.NAME}")].first()' + master_item: + key: zabbix.proxies.stats + tags: + - tag: component + value: proxy + - tag: component + value: raw + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: c3b50d734d944d0fbb59b29324e28554 + name: 'Proxy [{#PROXY.NAME}]: Unencrypted' + type: DEPENDENT + key: 'zabbix.proxy.unencrypted[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.unencrypted + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 6486e23a16ba495d9fc40305425e8010 + name: 'Proxy [{#PROXY.NAME}]: Version' + type: DEPENDENT + key: 'zabbix.proxy.version[{#PROXY.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'A version of Zabbix proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + master_item: + key: zabbix.proxies.stats + lld_macro_paths: + - lld_macro: '{#PROXY.GROUP}' + path: $.proxy_group + - lld_macro: '{#PROXY.NAME}' + path: $.name + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var proxies = JSON.parse(value); + + result = proxies.map(function (proxy) { + return { + 'name': proxy.name, + 'proxy_group': proxy.proxy_group + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Tag proxy-group if exists' + step: '1' + filter: + conditions: + - macro: '{#PROXY.GROUP}' + operator: EXISTS + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + tags: + - tag: proxy-group + value: '{#PROXY.GROUP}' + tags: + - tag: class + value: software + - tag: target + value: server + - tag: target + value: zabbix + macros: + - macro: '{$ZABBIX.PROXY.LAST_SEEN.MAX}' + value: '600' + description: 'The maximum number of seconds that Zabbix proxy has not been seen.' + - macro: '{$ZABBIX.SERVER.ADDRESS}' + description: 'IP/DNS/network mask list of servers to be remotely queried (default is 127.0.0.1).' + - macro: '{$ZABBIX.SERVER.NODATA_TIMEOUT}' + value: 5m + description: 'The time threshold after which statistics are considered unavailable. Used in trigger expressions.' + - macro: '{$ZABBIX.SERVER.PORT}' + description: 'Port of server to be remotely queried (default is 10051).' + - macro: '{$ZABBIX.SERVER.UTIL.MAX}' + value: '75' + description: 'Default maximum threshold for percentage utilization triggers (use macro context for specification).' + - macro: '{$ZABBIX.SERVER.UTIL.MAX:"value cache"}' + value: '95' + description: 'Maximum threshold for value cache utilization triggers.' + - macro: '{$ZABBIX.SERVER.UTIL.MIN}' + value: '65' + description: 'Default minimum threshold for percentage utilization triggers (use macro context for specification).' + dashboards: + - uuid: 6a654650e39d4968918df85f9be47584 + name: 'Remote Zabbix server health' + auto_start: 'NO' + pages: + - name: Performance + widgets: + - type: svggraph + name: 'Cache usage, in %' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: wcache.trend.pused + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: rcache.buffer.pused + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix server health' + key: wcache.index.pused + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Remote Zabbix server health' + key: wcache.history.pused + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Remote Zabbix server health' + key: vcache.buffer.pused + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Remote Zabbix server health' + key: vmware.buffer.pused + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Server performance' + 'y': '6' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: wcache.values + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: vps.written + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix server health' + key: 'zabbix[stats,{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACC + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Values processed' + 'y': '11' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: wcache.values.uint + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: wcache.values.float + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix server health' + key: wcache.values.not_supported + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Remote Zabbix server health' + key: wcache.values.str + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Remote Zabbix server health' + key: wcache.values.log + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Remote Zabbix server health' + key: wcache.values.text + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACD + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Value cache effectiveness' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: vcache.cache.hits + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: vcache.cache.misses + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACE + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing throughput' + 'y': '21' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: preprocessing_throughput_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: preprocessing_throughput_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABV + - type: svggraph + name: 'Internal queues' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: d62728 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: preprocessing_queue + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: lld_queue + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix server health' + key: discovery_queue + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Remote Zabbix server health' + key: connector_queue + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACB + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Trend cache effectiveness, in %' + x: '36' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: tcache.pitems + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: tcache.pmisses + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACF + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing VPS' + x: '36' + 'y': '21' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: preprocessing_vps_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: preprocessing_vps_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABW + - name: Processes + widgets: + - type: svggraph + name: 'Utilization: LLD processes' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.lld_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.lld_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Remote Zabbix server health' + key: lld_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABI + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Preprocessing processes' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.preprocessing_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.preprocessing_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Remote Zabbix server health' + key: preprocessing_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABK + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Synchronous gathering processes' + 'y': '12' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: ff7f00 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: 17becf + - type: STRING + name: ds.0.color.5 + value: a6cee3 + - type: STRING + name: ds.0.color.6 + value: fb9a99 + - type: STRING + name: ds.0.color.7 + value: bcbd22 + - type: STRING + name: ds.0.color.8 + value: ffca58 + - type: STRING + name: ds.0.color.9 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.internal_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix server health' + key: process.ipmi_poller.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Remote Zabbix server health' + key: process.ipmi_manager.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Remote Zabbix server health' + key: process.http_poller.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Remote Zabbix server health' + key: process.java_poller.avg.busy + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Remote Zabbix server health' + key: process.vmware_collector.avg.busy + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Remote Zabbix server health' + key: process.browser_poller.avg.busy + - type: ITEM + name: ds.0.itemids.8 + value: + host: 'Remote Zabbix server health' + key: process.odbc_poller.avg.busy + - type: ITEM + name: ds.0.itemids.9 + value: + host: 'Remote Zabbix server health' + key: process.icmp_pinger.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABM + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Asynchronous gathering processes' + 'y': '19' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.http_agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix server health' + key: process.snmp_poller.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABN + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Core' + 'y': '25' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: STRING + name: ds.0.color.6 + value: a6cee3 + - type: STRING + name: ds.0.color.7 + value: ff465c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.configuration_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.configuration_syncer_worker.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix server health' + key: process.history_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Remote Zabbix server health' + key: process.self-monitoring.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Remote Zabbix server health' + key: process.service_manager.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Remote Zabbix server health' + key: process.task_manager.avg.busy + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Remote Zabbix server health' + key: process.timer.avg.busy + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Remote Zabbix server health' + key: process.history_poller.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '8' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABO + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Gathering processes: Trappers' + 'y': '31' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: ffca58 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.snmp_trapper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABQ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Alerting processes' + 'y': '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 17becf + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: d62728 + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.alert_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.alert_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix server health' + key: process.alerter.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Remote Zabbix server health' + key: process.escalator.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '4' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABS + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Proxy management and data exchange' + 'y': '41' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: '000080' + - type: STRING + name: ds.0.color.2 + value: '808000' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.proxy_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Remote Zabbix server health' + key: process.proxy_group_manager.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABU + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Discovery processes' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 7e57c2 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.discovery_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.discovery_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Remote Zabbix server health' + key: discovery_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABJ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Connector processes' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: b2df8a + - type: STRING + name: ds.0.color.1 + value: ffca58 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.connector_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.connector_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Remote Zabbix server health' + key: connector_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABL + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Housekeeping' + x: '36' + 'y': '25' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: cab2d6 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.housekeeper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.trigger_housekeeper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABP + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Availability processes' + x: '36' + 'y': '31' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 6a3d9a + - type: STRING + name: ds.0.color.1 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.unreachable_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.availability_manager.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABR + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Reporting processes' + x: '36' + 'y': '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: e377c2 + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Remote Zabbix server health' + key: process.report_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Remote Zabbix server health' + key: process.report_writer.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABT + - type: INTEGER + name: show_problems + value: '1' + - name: Statuses + widgets: + - type: item + name: 'Zabbix server version' + width: '16' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Remote Zabbix server health' + key: version + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: honeycomb + name: 'High availability: Node state' + x: '16' + width: '56' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'Cluster node [*]: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Cluster node \[(.*)]: Status","\1")}' + - type: STRING + name: reference + value: BAAAA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: b2df8a + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: '878787' + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: e31a1c + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: 33a02c + - type: STRING + name: thresholds.3.threshold + value: '3' + valuemaps: + - uuid: 25ab0f5c570b4a7e9d15bd41db79fe25 + name: 'Cluster node status' + mappings: + - value: '0' + newvalue: Standby + - value: '1' + newvalue: Stopped + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Active + - uuid: 2498ad0b91d742888acccd435ba52962 + name: Compatibility + mappings: + - value: '0' + newvalue: Undefined + - value: '1' + newvalue: Current + - value: '2' + newvalue: Outdated + - value: '3' + newvalue: Unsupported + - uuid: 53d1560f612540d98a2983516b4b9f8c + name: 'Last seen' + mappings: + - value: '-1' + newvalue: Never + - uuid: cdbd6c1bc69b4dcf925a1048a970139b + name: 'Proxy mode' + mappings: + - value: '0' + newvalue: Active + - value: '1' + newvalue: Passive + - uuid: 7a5e7def958c4f16b9380d4b81f609c9 + name: 'Service state' + mappings: + - value: '0' + newvalue: 'Off' + - value: '1' + newvalue: 'On' + - uuid: 5dff563dde3c45d8b6d92525111384c6 + name: 'Value cache operating mode' + mappings: + - value: '0' + newvalue: Normal + - value: '1' + newvalue: 'Low memory' + - uuid: 4eaa5f12801d43d9a5cfa2bca736ccc3 + name: 'Zabbix server check' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' diff --git a/Ribbon_SBC_Edge_by_HTTP.yaml b/Ribbon_SBC_Edge_by_HTTP.yaml new file mode 100644 index 0000000..948491f --- /dev/null +++ b/Ribbon_SBC_Edge_by_HTTP.yaml @@ -0,0 +1,5515 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 6095f32a1e6f432a8a053e6245891632 + template: 'Ribbon SBC Edge by HTTP' + name: 'Ribbon SBC Edge by HTTP' + description: | + The Ribbon Session Border Controller Edge (SBC Edge) is a security and interoperability solution for medium-sized businesses and large branch offices. + + This template is designed for the effortless deployment of Ribbon SBC Edge monitoring and doesn't require any external scripts. + + More details can be found in the official Ribbon documentation: + - REST API Reference: https://publicdoc.rbbn.com/spaces/UXAPIDOC/pages/17400598/Configuration+Resources + - REST API User's Guide: https://publicdoc.rbbn.com/spaces/UXAPIDOC/pages/387008766/REST+API+User+s+Guide + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 1c2a712b43194ee2b3dc923647a69086 + name: 'Get active alarms' + type: SCRIPT + key: ribbon.alarm.get + delay: '{$RIBBON.INTERVAL:"get_alarm"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Ribbon = { + params: {}, + request: null, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + Ribbon.request = new HttpRequest(Ribbon.tls.options); + }, + + getRequest: function (url) { + var response; + + if (typeof Ribbon.params.proxy !== 'undefined' && Ribbon.params.proxy !== '') { + Ribbon.request.setProxy(Ribbon.params.proxy); + } + + Zabbix.log(4, '[ Ribbon SBC Edge ] Sending request: ' + Ribbon.params.url + url); + + response = Ribbon.request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC Edge ] Received response with status code ' + Ribbon.request.getStatus() + ': ' + response); + + if (Ribbon.request.getStatus() < 200 || Ribbon.request.getStatus() >= 300) { + throw 'Cannot connect to Ribbon SBC. Check debug log for more information.'; + } + + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from Ribbon SBC API. Check debug log for more information.'; + } + + return response; + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + login: function () { + var response = "", + cookies = "", + payload = 'Username=' + encodeURIComponent(Ribbon.params.username) + '&Password=' + encodeURIComponent(Ribbon.params.password); + + Ribbon.request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = Ribbon.request.post(Ribbon.params.url + '/rest/login', payload); + + var headers = Ribbon.request.getHeaders(); + for (var key in headers) { + if (key.toLowerCase() == 'set-cookie') { + cookies = headers[key]; + } + } + + Ribbon.request.addHeader('Cookie', cookies); + }, + + logout: function () { + var response = Ribbon.request.post(Ribbon.params.url + '/rest/logout'); + + return JSON.parse(XML.toJson(response)); + } + }; + + try { + var result = {}; + + Ribbon.setParams(JSON.parse(value)); + Ribbon.login(); + + var activealarm_list = Ribbon.getField(Ribbon.getRequest("/rest/activealarm"), 'root.activealarm_list'), + count = Ribbon.getField(activealarm_list, '@count'); + + if (count !== '0') { + var activealarm = Ribbon.getField(activealarm_list, 'activealarm_pk'); + + if (!Array.isArray(activealarm)) { + activealarm = [activealarm]; + } + + for (var alarm in activealarm) { + var id = Ribbon.getField(activealarm[alarm], '@id'); + result[id] = Ribbon.getField(Ribbon.getRequest("/rest/activealarm/" + id), 'root.activealarm'); + } + } + + Ribbon.logout(); + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC Edge ] Alarms ERROR: ' + error); + error_msg = 'Failed to get active alarm from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets the active alarms.' + timeout: '{$RIBBON.TIMEOUT}' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 28eed9b2ddb7440b9bb5b1183a9d6ff3 + name: 'Get certificate info' + type: SCRIPT + key: ribbon.cert.get + delay: '{$RIBBON.INTERVAL:"get_certificate"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Ribbon = { + params: {}, + request: null, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + Ribbon.request = new HttpRequest(Ribbon.tls.options); + }, + + getRequest: function (url) { + var response; + + if (typeof Ribbon.params.proxy !== 'undefined' && Ribbon.params.proxy !== '') { + Ribbon.request.setProxy(Ribbon.params.proxy); + } + + Zabbix.log(4, '[ Ribbon SBC Edge ] Sending request: ' + Ribbon.params.url + url); + + response = Ribbon.request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC Edge ] Received response with status code ' + Ribbon.request.getStatus() + ': ' + response); + + if (Ribbon.request.getStatus() < 200 || Ribbon.request.getStatus() >= 300) { + throw 'Cannot connect to Ribbon SBC. Check debug log for more information.'; + } + + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from Ribbon SBC API. Check debug log for more information.'; + } + + return response; + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + login: function () { + var response = "", + cookies = "", + payload = 'Username=' + encodeURIComponent(Ribbon.params.username) + '&Password=' + encodeURIComponent(Ribbon.params.password); + + Ribbon.request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = Ribbon.request.post(Ribbon.params.url + '/rest/login', payload); + + var headers = Ribbon.request.getHeaders(); + for (var key in headers) { + if (key.toLowerCase() == 'set-cookie') { + cookies = headers[key]; + } + } + + Ribbon.request.addHeader('Cookie', cookies); + }, + + logout: function () { + var response = Ribbon.request.post(Ribbon.params.url + '/rest/logout'); + + return JSON.parse(XML.toJson(response)); + } + }; + + try { + var result = {}; + + Ribbon.setParams(JSON.parse(value)); + Ribbon.login(); + + var certificate_list = Ribbon.getField(Ribbon.getRequest("/rest/certificate"), 'root.certificate_list'), + count = Ribbon.getField(certificate_list, '@count'); + + if (count !== '0') { + var certificate = Ribbon.getField(certificate_list, 'certificate_pk'); + + if (!Array.isArray(certificate)) { + certificate = [certificate]; + } + + for (var cert in certificate) { + var id = Ribbon.getField(certificate[cert], '@id'); + result[id] = Ribbon.getField(Ribbon.getRequest("/rest/certificate/" + id), 'root.certificate'); + } + } + + Ribbon.logout(); + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC Edge ] Certificate ERROR: ' + error); + error_msg = 'Failed to get certificate data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets certificate information.' + timeout: '{$RIBBON.TIMEOUT}' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: c1f97c4fd20142b2918303dc0839cfee + name: 'ASM Operating System License Type' + type: DEPENDENT + key: ribbon.chassis.asm.license.type + delay: '0' + description: | + The ASM Operating System version that is licensed by the factory. + Possible values: + - Unknown + - Win2008R2 + - Win2012R2 + - Win2019 + valuemap: + name: 'Ribbon: ASM Operating System License Type' + preprocessing: + - type: JSONPATH + parameters: + - $.chassis.AsmOsLicenseType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: system + - uuid: 432c7e601ca3411ca301f69523c9e497 + name: 'Chassis board bottom temperature' + type: DEPENDENT + key: ribbon.chassis.board.bottom.temp + delay: '0' + units: '!°C' + description: 'Indicates the temperature on the bottom of the main board in degrees Celsius.' + preprocessing: + - type: JSONPATH + parameters: + - $.chassis.rt_Chassis_BoardBottom_Temp1 + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: sensor + triggers: + - uuid: 35998716d90f4b3382042312bdef9ced + expression: 'avg(/Ribbon SBC Edge by HTTP/ribbon.chassis.board.bottom.temp,5m)>{$RIBBON.TEMP.BOTTOM.MAIN.BOARD.CRIT}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Ribbon SBC Edge by HTTP/ribbon.chassis.board.bottom.temp,5m)<{$RIBBON.TEMP.BOTTOM.MAIN.BOARD.CRIT}-3' + name: 'Ribbon: Temperature on the bottom of the main board is above critical threshold' + event_name: 'Ribbon: Temperature on the bottom of the main board is above critical threshold: >{$RIBBON.TEMP.BOTTOM.MAIN.BOARD.CRIT}' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature the bottom of the main board value.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: e5d80421a325463bbe3e6b45263d6f29 + name: 'Chassis board top temperature' + type: DEPENDENT + key: ribbon.chassis.board.top.temp + delay: '0' + units: '!°C' + description: 'Indicates the temperature on the top of the main board in degrees Celsius.' + preprocessing: + - type: JSONPATH + parameters: + - $.chassis.rt_Chassis_BoardTop_Temp2 + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: sensor + triggers: + - uuid: f80c73ecab184a9aa4428839e34e8f79 + expression: 'avg(/Ribbon SBC Edge by HTTP/ribbon.chassis.board.top.temp,5m)>{$RIBBON.TEMP.TOP.MAIN.BOARD.CRIT}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Ribbon SBC Edge by HTTP/ribbon.chassis.board.top.temp,5m)<{$RIBBON.TEMP.TOP.MAIN.BOARD.CRIT}-3' + name: 'Ribbon: Temperature on the top of the main board is above critical threshold' + event_name: 'Ribbon: Temperature on the top of the main board is above critical threshold: >{$RIBBON.TEMP.TOP.MAIN.BOARD.CRIT}' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature of on the top of the main board value.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8030911f70f54e90af72087fbfad8195 + name: 'Chassis core switch temperature' + type: DEPENDENT + key: ribbon.chassis.core.switch.temp + delay: '0' + units: '!°C' + description: 'Indicates the core switch temperature in degrees Celsius.' + preprocessing: + - type: JSONPATH + parameters: + - $.chassis.rt_Chassis_CoreSwitch_Temp + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: sensor + triggers: + - uuid: 89c191a345064655b861f500d8ced4c3 + expression: 'avg(/Ribbon SBC Edge by HTTP/ribbon.chassis.core.switch.temp,5m)>{$RIBBON.TEMP.CORE.CRIT}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Ribbon SBC Edge by HTTP/ribbon.chassis.core.switch.temp,5m)<{$RIBBON.TEMP.CORE.CRIT}-3' + name: 'Ribbon: Temperature on chassis core switch is above critical threshold' + event_name: 'Ribbon: Temperature on chassis core switch is above critical threshold: >{$RIBBON.TEMP.CORE.CRIT}' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature of chassis core switch value.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 838b633a55734788973aa9cf96a8db87 + name: 'Chassis Status' + type: DEPENDENT + key: ribbon.chassis.status + delay: '0' + description: | + Indicates the hardware initialization state for this card. + Possible values: + - None + - Card Idle + - Card Detected + - Card Activating + - Card Activated + - Card Remove Requested + - Card Removing + - Card Removed + - Card Downloading + - Card Failed + - Card Disabled Long Loop + - MAX + valuemap: + name: 'Ribbon: System status' + preprocessing: + - type: JSONPATH + parameters: + - $.chassis.rt_Status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: system + triggers: + - uuid: a778de02ee3147709551bfd4fd363db1 + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.chassis.status)=9' + name: 'Ribbon: Chassis status - Card Failed' + priority: AVERAGE + description: 'The current chassis status - Card Failed.' + tags: + - tag: scope + value: availability + - uuid: 22a66eac1fe24e3fa389035229dffd66 + name: 'Chassis type' + type: DEPENDENT + key: ribbon.chassis.type + delay: '0' + value_type: CHAR + trends: '0' + description: | + Indicates the hardware or software platform type of the SBC system. + For hardware appliances, identifies whether the device is an SBC1000 or SBC2000. + For software-based deployments (SWe), indicates the virtual or software chassis type. + preprocessing: + - type: JSONPATH + parameters: + - $.chassis.rt_Chassis_Type + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: system + - uuid: f04175a8aea44c60a372be27b266ffc0 + name: 'CPU Load average 1m' + type: DEPENDENT + key: ribbon.cpu.load.avg1 + delay: '0' + value_type: FLOAT + description: 'Average number of processes over the last minute waiting to run because the CPU is busy.' + preprocessing: + - type: JSONPATH + parameters: + - $.historicalstatistics.rt_CPULoadAverage1m + - type: MULTIPLIER + parameters: + - '0.01' + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: cpu + - uuid: 3643fd54c5d0406792bfd0183585f2de + name: 'CPU Load average 5m' + type: DEPENDENT + key: ribbon.cpu.load.avg5 + delay: '0' + value_type: FLOAT + description: 'Average number of processes over the last five minutes waiting to run because the CPU is busy.' + preprocessing: + - type: JSONPATH + parameters: + - $.historicalstatistics.rt_CPULoadAverage5m + - type: MULTIPLIER + parameters: + - '0.01' + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: cpu + - uuid: 44669fba4717429688730da02f80b8fd + name: 'CPU Load average 15m' + type: DEPENDENT + key: ribbon.cpu.load.avg15 + delay: '0' + value_type: FLOAT + description: 'Average number of processes over the last fifteen minutes waiting to run because the CPU is busy.' + preprocessing: + - type: JSONPATH + parameters: + - $.historicalstatistics.rt_CPULoadAverage15m + - type: MULTIPLIER + parameters: + - '0.01' + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: cpu + - uuid: 9d29d99112ef4b89bd3d53bf2820072c + name: 'CPU usage' + type: DEPENDENT + key: ribbon.cpu.usage + delay: '0' + units: '%' + description: 'Average CPU usage in percent.' + preprocessing: + - type: JSONPATH + parameters: + - $.historicalstatistics.rt_CPUUsage + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: cpu + triggers: + - uuid: 07f6e1ede4df44b88834391d527206ac + expression: 'min(/Ribbon SBC Edge by HTTP/ribbon.cpu.usage,5m)>{$RIBBON.CPU.UTIL.CRIT}' + name: 'Ribbon: High CPU utilization' + event_name: 'Ribbon: High CPU utilization (over {$RIBBON.CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: availability + - uuid: e488322bded4491eb43e5f1a4e55240c + name: 'Get disk partition' + type: SCRIPT + key: ribbon.disk.get + delay: '{$RIBBON.INTERVAL:"get_disk"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Ribbon = { + params: {}, + request: null, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + Ribbon.request = new HttpRequest(Ribbon.tls.options); + }, + + getRequest: function (url) { + var response; + + if (typeof Ribbon.params.proxy !== 'undefined' && Ribbon.params.proxy !== '') { + Ribbon.request.setProxy(Ribbon.params.proxy); + } + + Zabbix.log(4, '[ Ribbon SBC Edge ] Sending request: ' + Ribbon.params.url + url); + + response = Ribbon.request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC Edge ] Received response with status code ' + Ribbon.request.getStatus() + ': ' + response); + + if (Ribbon.request.getStatus() < 200 || Ribbon.request.getStatus() >= 300) { + throw 'Cannot connect to Ribbon SBC. Check debug log for more information.'; + } + + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from Ribbon SBC API. Check debug log for more information.'; + } + + return response; + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + login: function () { + var response = "", + cookies = "", + payload = 'Username=' + encodeURIComponent(Ribbon.params.username) + '&Password=' + encodeURIComponent(Ribbon.params.password); + + Ribbon.request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = Ribbon.request.post(Ribbon.params.url + '/rest/login', payload); + + var headers = Ribbon.request.getHeaders(); + for (var key in headers) { + if (key.toLowerCase() == 'set-cookie') { + cookies = headers[key]; + } + } + + Ribbon.request.addHeader('Cookie', cookies); + }, + + logout: function () { + var response = Ribbon.request.post(Ribbon.params.url + '/rest/logout'); + + return JSON.parse(XML.toJson(response)); + } + }; + + try { + var result = {}; + + Ribbon.setParams(JSON.parse(value)); + Ribbon.login(); + + var diskpartition_list = Ribbon.getField(Ribbon.getRequest("/rest/diskpartition"), 'root.diskpartition_list'), + count = Ribbon.getField(diskpartition_list, '@count'); + + if (count !== '0') { + var diskpartition = Ribbon.getField(diskpartition_list, 'diskpartition_pk'); + + if (!Array.isArray(diskpartition)) { + diskpartition = [diskpartition]; + } + + for (var disk in diskpartition) { + var id = Ribbon.getField(diskpartition[disk], '@id'); + result[id] = Ribbon.getField(Ribbon.getRequest("/rest/diskpartition/" + id), 'root.diskpartition'); + } + } + + Ribbon.logout(); + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC Edge ] Disk ERROR: ' + error); + error_msg = 'Failed to get disk data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets the system disk partition.' + timeout: '{$RIBBON.TIMEOUT}' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 4523833235224d2cbfafbc9612c61241 + name: 'Get DSP cards' + type: SCRIPT + key: ribbon.dsp.card.get + delay: '{$RIBBON.INTERVAL:"get_dsp_card"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Ribbon = { + params: {}, + request: null, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + Ribbon.request = new HttpRequest(Ribbon.tls.options); + }, + + getRequest: function (url) { + var response; + + if (typeof Ribbon.params.proxy !== 'undefined' && Ribbon.params.proxy !== '') { + Ribbon.request.setProxy(Ribbon.params.proxy); + } + + Zabbix.log(4, '[ Ribbon SBC Edge ] Sending request: ' + Ribbon.params.url + url); + + response = Ribbon.request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC Edge ] Received response with status code ' + Ribbon.request.getStatus() + ': ' + response); + + if (Ribbon.request.getStatus() < 200 || Ribbon.request.getStatus() >= 300) { + throw 'Cannot connect to Ribbon SBC. Check debug log for more information.'; + } + + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from Ribbon SBC API. Check debug log for more information.'; + } + + return response; + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + login: function () { + var response = "", + cookies = "", + payload = 'Username=' + encodeURIComponent(Ribbon.params.username) + '&Password=' + encodeURIComponent(Ribbon.params.password); + + Ribbon.request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = Ribbon.request.post(Ribbon.params.url + '/rest/login', payload); + + var headers = Ribbon.request.getHeaders(); + for (var key in headers) { + if (key.toLowerCase() == 'set-cookie') { + cookies = headers[key]; + } + } + + Ribbon.request.addHeader('Cookie', cookies); + }, + + logout: function () { + var response = Ribbon.request.post(Ribbon.params.url + '/rest/logout'); + + return JSON.parse(XML.toJson(response)); + } + }; + + try { + var result = {}; + + Ribbon.setParams(JSON.parse(value)); + Ribbon.login(); + + var dspcard_list = Ribbon.getField(Ribbon.getRequest("/rest/dspcard"), 'root.dspcard_list'), + count = Ribbon.getField(dspcard_list, '@count'); + + if (count !== '0') { + var dspcard = Ribbon.getField(dspcard_list, 'dspcard_pk'); + + if (!Array.isArray(dspcard)) { + dspcard = [dspcard]; + } + + for (var card in dspcard) { + var id = Ribbon.getField(dspcard[card], '@id'); + result[id] = Ribbon.getField(Ribbon.getRequest("/rest/dspcard/" + id), 'root.dspcard'); + } + + } + + Ribbon.logout(); + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC Edge ] DSP Card ERROR: ' + error); + error_msg = 'Failed to get DSP card data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets DSP card data.' + timeout: '{$RIBBON.TIMEOUT}' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: c16a04d4ac1041509c563c46b05d4d65 + name: 'Get fan' + type: SCRIPT + key: ribbon.fan.get + delay: '{$RIBBON.INTERVAL:"get_fan"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Ribbon = { + params: {}, + request: null, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + Ribbon.request = new HttpRequest(Ribbon.tls.options); + }, + + getRequest: function (url) { + var response; + + if (typeof Ribbon.params.proxy !== 'undefined' && Ribbon.params.proxy !== '') { + Ribbon.request.setProxy(Ribbon.params.proxy); + } + + Zabbix.log(4, '[ Ribbon SBC Edge ] Sending request: ' + Ribbon.params.url + url); + + response = Ribbon.request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC Edge ] Received response with status code ' + Ribbon.request.getStatus() + ': ' + response); + + if (Ribbon.request.getStatus() < 200 || Ribbon.request.getStatus() >= 300) { + throw 'Cannot connect to Ribbon SBC. Check debug log for more information.'; + } + + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from Ribbon SBC API. Check debug log for more information.'; + } + + return response; + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + login: function () { + var response = "", + cookies = "", + payload = 'Username=' + encodeURIComponent(Ribbon.params.username) + '&Password=' + encodeURIComponent(Ribbon.params.password); + + Ribbon.request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = Ribbon.request.post(Ribbon.params.url + '/rest/login', payload); + + var headers = Ribbon.request.getHeaders(); + for (var key in headers) { + if (key.toLowerCase() == 'set-cookie') { + cookies = headers[key]; + } + } + + Ribbon.request.addHeader('Cookie', cookies); + }, + + logout: function () { + var response = Ribbon.request.post(Ribbon.params.url + '/rest/logout'); + + return JSON.parse(XML.toJson(response)); + } + }; + + try { + var result = {}; + + Ribbon.setParams(JSON.parse(value)); + Ribbon.login(); + + var fan_list = Ribbon.getField(Ribbon.getRequest("/rest/fan"), 'root.fan_list'), + count = Ribbon.getField(fan_list, '@count'); + + if (count !== '0') { + var fans = Ribbon.getField(fan_list, 'fan_pk'); + + if (!Array.isArray(fans)) { + fans = [fans]; + } + + for (var fan in fans) { + var id = Ribbon.getField(fans[fan], '@id'); + result[id] = Ribbon.getField(Ribbon.getRequest("/rest/fan/" + id), 'root.fan'); + } + } + + Ribbon.logout(); + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC Edge ] Fan ERROR: ' + error); + error_msg = 'Failed to get fans data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets fan data.' + timeout: '{$RIBBON.TIMEOUT}' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 0b35ef10ea54481690fce00029a9742b + name: 'File descriptor usage' + type: DEPENDENT + key: ribbon.fd.usage + delay: '0' + description: 'Number of file descriptors used by the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.historicalstatistics.rt_FDUsage + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: storage + - uuid: b3c2f1999f174d879852ac08971fb7ec + name: 'License class' + type: DEPENDENT + key: ribbon.license.class + delay: '0' + description: | + Indicates the version of license format. + 0 - This is a v1 or legacy SBC 1000/2000 license. + 1 - This is a v2 or legacy SWe Edge license. + 2 - This is a v3 or new SWe Edge license. + valuemap: + name: 'Ribbon: License class' + preprocessing: + - type: JSONPATH + parameters: + - $.license.LicenseClass + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: license + - uuid: 576d439b408049abad82432453dc6572 + name: 'License expiration date' + type: DEPENDENT + key: ribbon.license.expiration.date + delay: '0' + value_type: CHAR + trends: '0' + description: 'Shows when the license is due to expire. This attribute is only applicable to the SBC 1000 and 2000.' + preprocessing: + - type: JSONPATH + parameters: + - $.license.ExpirationDate + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: license + - uuid: 5f3e2f3e1b1c4f2fa6f3e8b1c9e4d5a6 + name: 'SIP Channels licensed' + type: DEPENDENT + key: ribbon.license.sip.channels + delay: '0' + description: 'Displays the total number of SIP channel licenses purchased for the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.license.SIPChannels + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: license + - uuid: a7370c87a0ce4c30b6f3606fd2cae3cf + name: 'Available SIP Channels licensed' + type: DEPENDENT + key: ribbon.license.sip.channels.available + delay: '0' + description: 'Displays the total number of SIP Channel licenses currently available for use on the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.license.AvailableSIPCh + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: license + - uuid: d4e5f6a7b8c94d1e9f0a1b2c3d4e5f6a + name: 'SIP Registrations licensed' + type: DEPENDENT + key: ribbon.license.sip.registrations + delay: '0' + description: 'Displays the total number of SIP registration licenses purchased for the system. Deprecated on SWe Edge since SIP registration feature is now free.' + preprocessing: + - type: JSONPATH + parameters: + - $.license.SIPRegistrations + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: license + - uuid: f3a781257fe04f1ebc72c7c21ff75dd5 + name: 'SIP Registrations available' + type: DEPENDENT + key: ribbon.license.sip.registrations.available + delay: '0' + description: 'Displays the total number of SIP registration licenses currently available for use on the system. Deprecated on SWe Edge since SIP registration feature is now free.' + preprocessing: + - type: JSONPATH + parameters: + - $.license.AvailableSIPReg + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: license + - uuid: 29fea51d87d94d268eeb37de47c3ac0e + name: 'License type' + type: DEPENDENT + key: ribbon.license.type + delay: '0' + description: | + Shows the type of license. + 0 - No license installed. + 1 - Node license is installed. + 2 - Base license is installed. + valuemap: + name: 'Ribbon: License type' + preprocessing: + - type: JSONPATH + parameters: + - $.license.LicenseType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: license + - uuid: caa51fc4d639432b96b6b20304be74a2 + name: 'Memory usage' + type: DEPENDENT + key: ribbon.memory.usage + delay: '0' + units: '%' + description: 'Average usage of system memory in percent.' + preprocessing: + - type: JSONPATH + parameters: + - $.historicalstatistics.rt_MemoryUsage + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: memory + triggers: + - uuid: cd378b8df60c43d98e866f72c240b08e + expression: 'min(/Ribbon SBC Edge by HTTP/ribbon.memory.usage,5m)>{$RIBBON.MEMORY.UTIL.CRIT}' + name: 'Ribbon: High memory utilization' + event_name: 'Ribbon: High memory utilization (over {$RIBBON.MEMORY.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'Memory utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: availability + - uuid: 14f5043b667145018111d537c3e3fea6 + name: 'Get interface' + type: SCRIPT + key: ribbon.net.if.get + delay: '{$RIBBON.INTERVAL:"get_interface"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Ribbon = { + params: {}, + request: null, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + Ribbon.request = new HttpRequest(Ribbon.tls.options); + }, + + getRequest: function (url) { + var response; + + if (typeof Ribbon.params.proxy !== 'undefined' && Ribbon.params.proxy !== '') { + Ribbon.request.setProxy(Ribbon.params.proxy); + } + + Zabbix.log(4, '[ Ribbon SBC Edge ] Sending request: ' + Ribbon.params.url + url); + + response = Ribbon.request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC Edge ] Received response with status code ' + Ribbon.request.getStatus() + ': ' + response); + + if (Ribbon.request.getStatus() < 200 || Ribbon.request.getStatus() >= 300) { + throw 'Cannot connect to Ribbon SBC. Check debug log for more information.'; + } + + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from Ribbon SBC API. Check debug log for more information.'; + } + + return response; + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + login: function () { + var response = "", + cookies = "", + payload = 'Username=' + encodeURIComponent(Ribbon.params.username) + '&Password=' + encodeURIComponent(Ribbon.params.password); + + Ribbon.request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = Ribbon.request.post(Ribbon.params.url + '/rest/login', payload); + + var headers = Ribbon.request.getHeaders(); + for (var key in headers) { + if (key.toLowerCase() == 'set-cookie') { + cookies = headers[key]; + } + } + + Ribbon.request.addHeader('Cookie', cookies); + }, + + logout: function () { + var response = Ribbon.request.post(Ribbon.params.url + '/rest/logout'); + + return JSON.parse(XML.toJson(response)); + } + }; + + try { + var result = {}; + + Ribbon.setParams(JSON.parse(value)); + Ribbon.login(); + + var ethernetport_list = Ribbon.getField(Ribbon.getRequest("/rest/ethernetport"), 'root.ethernetport_list'), + count = Ribbon.getField(ethernetport_list, '@count'); + + if (count !== '0') { + var ethernetport = Ribbon.getField(ethernetport_list, 'ethernetport_pk'); + + if (!Array.isArray(ethernetport)) { + ethernetport = [ethernetport]; + } + + for (var eth in ethernetport) { + var id = Ribbon.getField(ethernetport[eth], '@id'); + result[id] = Ribbon.getField(Ribbon.getRequest("/rest/ethernetport/" + id), 'root.ethernetport'); + } + } + + Ribbon.logout(); + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC Edge ] Interface ERROR: ' + error); + error_msg = 'Failed to get interface data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets the system ethernet port statistics.' + timeout: '{$RIBBON.TIMEOUT}' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 4f060e13a75c44a1b468ab5546bf58e2 + name: 'Number of call attempts' + type: DEPENDENT + key: ribbon.number.call.attempts + delay: '0' + description: 'Total number of call attempts system-wide since the system came up.' + preprocessing: + - type: JSONPATH + parameters: + - $.systemcallstats.rt_NumCallAttempts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: application + - uuid: a865d9559e7947efb3a6055fb6433d85 + name: 'Number of call currently up' + type: DEPENDENT + key: ribbon.number.call.currently + delay: '0' + description: 'Number of currently connected calls system-wide.' + preprocessing: + - type: JSONPATH + parameters: + - $.systemcallstats.rt_NumCallCurrentlyUp + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: application + - uuid: 86db48bf6e4f44428910f46a4c67c029 + name: 'Number of call failed' + type: DEPENDENT + key: ribbon.number.call.failed + delay: '0' + description: 'Total number of failed calls system-wide since the system came up.' + preprocessing: + - type: JSONPATH + parameters: + - $.systemcallstats.rt_NumCallFailed + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: application + - uuid: 5e70a41d4f5a4f1a8ac4c753220554a8 + name: 'Number of call succeeded' + type: DEPENDENT + key: ribbon.number.call.succeeded + delay: '0' + description: 'Total number of successful calls system-wide since the system came up.' + preprocessing: + - type: JSONPATH + parameters: + - $.systemcallstats.rt_NumCallSucceeded + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: application + - uuid: 23900dbafdfc4c5ca70cfaef5432a5e6 + name: 'Get power supply' + type: SCRIPT + key: ribbon.psu.get + delay: '{$RIBBON.INTERVAL:"get_psu"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Ribbon = { + params: {}, + request: null, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + Ribbon.request = new HttpRequest(Ribbon.tls.options); + }, + + getRequest: function (url) { + var response; + + if (typeof Ribbon.params.proxy !== 'undefined' && Ribbon.params.proxy !== '') { + Ribbon.request.setProxy(Ribbon.params.proxy); + } + + Zabbix.log(4, '[ Ribbon SBC Edge ] Sending request: ' + Ribbon.params.url + url); + + response = Ribbon.request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC Edge ] Received response with status code ' + Ribbon.request.getStatus() + ': ' + response); + + if (Ribbon.request.getStatus() < 200 || Ribbon.request.getStatus() >= 300) { + throw 'Cannot connect to Ribbon SBC. Check debug log for more information.'; + } + + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from Ribbon SBC API. Check debug log for more information.'; + } + + return response; + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + login: function () { + var response = "", + cookies = "", + payload = 'Username=' + encodeURIComponent(Ribbon.params.username) + '&Password=' + encodeURIComponent(Ribbon.params.password); + + Ribbon.request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = Ribbon.request.post(Ribbon.params.url + '/rest/login', payload); + + var headers = Ribbon.request.getHeaders(); + for (var key in headers) { + if (key.toLowerCase() == 'set-cookie') { + cookies = headers[key]; + } + } + + Ribbon.request.addHeader('Cookie', cookies); + }, + + logout: function () { + var response = Ribbon.request.post(Ribbon.params.url + '/rest/logout'); + + return JSON.parse(XML.toJson(response)); + } + }; + + try { + var result = {}; + + Ribbon.setParams(JSON.parse(value)); + Ribbon.login(); + + var powersupply_list = Ribbon.getField(Ribbon.getRequest("/rest/powersupply"), 'root.powersupply_list'), + count = Ribbon.getField(powersupply_list, '@count'); + + if (count !== '0') { + var powersupply = Ribbon.getField(powersupply_list, 'powersupply_pk'); + + if (!Array.isArray(powersupply)) { + powersupply = [powersupply]; + } + + for (var psu in powersupply) { + var id = Ribbon.getField(powersupply[psu], '@id'); + result[id] = Ribbon.getField(Ribbon.getRequest("/rest/powersupply/" + id), 'root.powersupply'); + } + } + + Ribbon.logout(); + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC Edge ] PSU ERROR: ' + error); + error_msg = 'Failed to get powersupply data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets PSU data.' + timeout: '{$RIBBON.TIMEOUT}' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: eca3e34854254afc8b886f0e26b5d084 + name: 'Get SIP servers' + type: SCRIPT + key: ribbon.sip.server.get + delay: '{$RIBBON.INTERVAL:"get_sip_server"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Ribbon = { + params: {}, + request: null, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + Ribbon.request = new HttpRequest(Ribbon.tls.options); + }, + + getRequest: function (url) { + var response; + + if (typeof Ribbon.params.proxy !== 'undefined' && Ribbon.params.proxy !== '') { + Ribbon.request.setProxy(Ribbon.params.proxy); + } + + Zabbix.log(4, '[ Ribbon SBC Edge ] Sending request: ' + Ribbon.params.url + url); + + response = Ribbon.request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC Edge ] Received response with status code ' + Ribbon.request.getStatus() + ': ' + response); + + if (Ribbon.request.getStatus() < 200 || Ribbon.request.getStatus() >= 300) { + throw 'Cannot connect to Ribbon SBC. Check debug log for more information.'; + } + + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from Ribbon SBC API. Check debug log for more information.'; + } + + return response; + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + login: function () { + var response = "", + cookies = "", + payload = 'Username=' + encodeURIComponent(Ribbon.params.username) + '&Password=' + encodeURIComponent(Ribbon.params.password); + + Ribbon.request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = Ribbon.request.post(Ribbon.params.url + '/rest/login', payload); + + var headers = Ribbon.request.getHeaders(); + for (var key in headers) { + if (key.toLowerCase() == 'set-cookie') { + cookies = headers[key]; + } + } + + Ribbon.request.addHeader('Cookie', cookies); + }, + + logout: function () { + var response = Ribbon.request.post(Ribbon.params.url + '/rest/logout'); + + return JSON.parse(XML.toJson(response)); + } + }; + + try { + var metrics, + result = {}; + + Ribbon.setParams(JSON.parse(value)); + Ribbon.login(); + + var sipservertable_list = Ribbon.getField(Ribbon.getRequest("/rest/sipservertable"), 'root.sipservertable_list'), + count = Ribbon.getField(sipservertable_list, '@count'); + + if (count !== '0') { + var sipservertable = Ribbon.getField(sipservertable_list, 'sipservertable_pk'); + + if (!Array.isArray(sipservertable)) { + sipservertable = [sipservertable]; + } + + for (var sipserver in sipservertable) { + var id = Ribbon.getField(sipservertable[sipserver], '@id'); + + result[id] = Ribbon.getField(Ribbon.getRequest("/rest/sipservertable/" + id), 'root.sipservertable'); + + if (typeof result[id].Sequence !== 'null' && result[id].Sequence === '1') { + result[id].metrics = Ribbon.getField(Ribbon.getRequest("/rest/sipservertable/" + id + "/sipserver/1"), 'root.sipserver'); + } + } + } + + Ribbon.logout(); + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC Edge ] SIP ERROR: ' + error); + error_msg = 'Failed to get SIP server data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets SIP server data.' + timeout: '{$RIBBON.TIMEOUT}' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: ff3c9af32b8b4201b621760455828b91 + name: 'Get SIP Signaling Group' + type: SCRIPT + key: ribbon.sip.signal.group.get + delay: '{$RIBBON.INTERVAL:"get_sip_sg"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Ribbon = { + params: {}, + request: null, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + Ribbon.request = new HttpRequest(Ribbon.tls.options); + }, + + getRequest: function (url) { + var response; + + if (typeof Ribbon.params.proxy !== 'undefined' && Ribbon.params.proxy !== '') { + Ribbon.request.setProxy(Ribbon.params.proxy); + } + + Zabbix.log(4, '[ Ribbon SBC Edge ] Sending request: ' + Ribbon.params.url + url); + + response = Ribbon.request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC Edge ] Received response with status code ' + Ribbon.request.getStatus() + ': ' + response); + + if (Ribbon.request.getStatus() < 200 || Ribbon.request.getStatus() >= 300) { + throw 'Cannot connect to Ribbon SBC. Check debug log for more information.'; + } + + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from Ribbon SBC API. Check debug log for more information.'; + } + + return response; + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + login: function () { + var response = "", + cookies = "", + payload = 'Username=' + encodeURIComponent(Ribbon.params.username) + '&Password=' + encodeURIComponent(Ribbon.params.password); + + Ribbon.request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = Ribbon.request.post(Ribbon.params.url + '/rest/login', payload); + + var headers = Ribbon.request.getHeaders(); + for (var key in headers) { + if (key.toLowerCase() == 'set-cookie') { + cookies = headers[key]; + } + } + + Ribbon.request.addHeader('Cookie', cookies); + }, + + logout: function () { + var response = Ribbon.request.post(Ribbon.params.url + '/rest/logout'); + + return JSON.parse(XML.toJson(response)); + } + }; + + try { + var result = {}; + + Ribbon.setParams(JSON.parse(value)); + Ribbon.login(); + + var sipsg_list = Ribbon.getField(Ribbon.getRequest("/rest/sipsg"), 'root.sipsg_list'), + count = Ribbon.getField(sipsg_list, '@count'); + + if (count !== '0') { + var sipsg = Ribbon.getField(sipsg_list, 'sipsg_pk'); + + if (!Array.isArray(sipsg)) { + sipsg = [sipsg]; + } + + for (var group in sipsg) { + var id = Ribbon.getField(sipsg[group], '@id'); + + result[id] = Ribbon.getField(Ribbon.getRequest("/rest/sipsg/" + id), 'root.sipsg'); + } + } + + Ribbon.logout(); + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC Edge ] SIPsg ERROR: ' + error); + error_msg = 'Failed to get data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets SIP Signaling Group data.' + timeout: '{$RIBBON.TIMEOUT}' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 7a2c9c562b6641bcbe45cb50386368b2 + name: 'DNS server 1' + type: DEPENDENT + key: ribbon.system.dns.server1 + delay: '0' + value_type: CHAR + trends: '0' + description: 'Primary DNS server currently in use on the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.system.rt_DNSServer1IP + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: network + triggers: + - uuid: 729be287a380479c9d916610432038c0 + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.system.dns.server1,#1)<>last(/Ribbon SBC Edge by HTTP/ribbon.system.dns.server1,#2) and length(last(/Ribbon SBC Edge by HTTP/ribbon.system.dns.server1))>0' + name: 'Ribbon: DNS server 1 has been changed' + event_name: 'Ribbon: DNS server 1 has been changed on ({ITEM.LASTVALUE1})' + priority: WARNING + description: 'The DNS server 1 has been changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 963ffed43764435cb0cedaa46bde6665 + name: 'DNS server 2' + type: DEPENDENT + key: ribbon.system.dns.server2 + delay: '0' + value_type: CHAR + trends: '0' + description: 'Secondary DNS server currently in use on the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.system.rt_DNSServer2IP + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: network + triggers: + - uuid: 0fab918917b7407b983b4e0da3cab4a5 + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.system.dns.server2,#1)<>last(/Ribbon SBC Edge by HTTP/ribbon.system.dns.server2,#2) and length(last(/Ribbon SBC Edge by HTTP/ribbon.system.dns.server2))>0' + name: 'Ribbon: DNS server 2 has been changed' + event_name: 'Ribbon: DNS server 2 has been changed on ({ITEM.LASTVALUE1})' + priority: WARNING + description: 'The DNS server 2 has been changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 84eaf3b4cac446e19f22e05610fcf6ad + name: 'Node name' + type: DEPENDENT + key: ribbon.system.node.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'Sets the DNS host name for the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.system.NodeName + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: system + - uuid: 3266a81e84e64d91b4f08eeab1b53287 + name: 'Serial number' + type: DEPENDENT + key: ribbon.system.serial.number + delay: '0' + value_type: CHAR + trends: '0' + description: 'Sets the serial number of the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.system.SerialNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: system + - uuid: 652980a128b546b983c3f044efe89068 + name: 'Software base build number' + type: DEPENDENT + key: ribbon.system.software.base.build + delay: '0' + value_type: CHAR + trends: '0' + description: 'The exact build: machine, time, and date. It should be reported whenever reporting any bug or crash related to the current software.' + preprocessing: + - type: JSONPATH + parameters: + - $.system.rt_Software_Base_BuildNumber + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: system + - uuid: 039e1092659940e7bc6470f45c661162 + name: 'Software base version' + type: DEPENDENT + key: ribbon.system.software.base.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Base software version.' + preprocessing: + - type: JSONPATH + parameters: + - $.system.rt_Software_Base_Version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: system + - uuid: 764f62d23312409ba5f924ff4e2f1338 + name: 'Get system stats' + type: SCRIPT + key: ribbon.system.stats.get + delay: '{$RIBBON.INTERVAL:"get_system_stats"}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Ribbon = { + params: {}, + request: null, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + Ribbon.request = new HttpRequest(Ribbon.tls.options); + }, + + getRequest: function (url) { + var response; + + if (typeof Ribbon.params.proxy !== 'undefined' && Ribbon.params.proxy !== '') { + Ribbon.request.setProxy(Ribbon.params.proxy); + } + + Zabbix.log(4, '[ Ribbon SBC Edge ] Sending request: ' + Ribbon.params.url + url); + + response = Ribbon.request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC Edge ] Received response with status code ' + Ribbon.request.getStatus() + ': ' + response); + + if (Ribbon.request.getStatus() < 200 || Ribbon.request.getStatus() >= 300) { + throw 'Cannot connect to Ribbon SBC. Check debug log for more information.'; + } + + try { + response = JSON.parse(XML.toJson(response)); + } + catch (error) { + throw 'Failed to parse response received from Ribbon SBC API. Check debug log for more information.'; + } + + return response; + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + login: function () { + var response = "", + cookies = "", + payload = 'Username=' + encodeURIComponent(Ribbon.params.username) + '&Password=' + encodeURIComponent(Ribbon.params.password); + + Ribbon.request.addHeader('Content-Type', 'application/x-www-form-urlencoded'); + response = Ribbon.request.post(Ribbon.params.url + '/rest/login', payload); + + var headers = Ribbon.request.getHeaders(); + for (var key in headers) { + if (key.toLowerCase() == 'set-cookie') { + cookies = headers[key]; + } + } + + Ribbon.request.addHeader('Cookie', cookies); + }, + + logout: function () { + var response = Ribbon.request.post(Ribbon.params.url + '/rest/logout'); + + return JSON.parse(XML.toJson(response)); + } + }; + + try { + var result = {}; + + Ribbon.setParams(JSON.parse(value)); + Ribbon.login(); + + result.system = Ribbon.getField(Ribbon.getRequest("/rest/system"), 'root.system'); + result.systemcallstats = Ribbon.getField(Ribbon.getRequest("/rest/systemcallstats"), 'root.systemcallstats'); + result.historicalstatistics = Ribbon.getField(Ribbon.getRequest("/rest/system/historicalstatistics/1"), 'root.historicalstatistics'); + result.chassis = Ribbon.getField(Ribbon.getRequest("/rest/chassis"), 'root.chassis'); + result.license = Ribbon.getField(Ribbon.getRequest("/rest/license"), 'root.license'); + + Ribbon.logout(); + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC Edge ] System data ERROR: ' + error); + error_msg = 'Failed to get system data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets the system statistics.' + timeout: '{$RIBBON.TIMEOUT}' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: b64aa9a227264033ad34a9f928dcf7de + name: Status + type: DEPENDENT + key: ribbon.system.status + delay: '0' + trends: '0' + description: | + Indicates the hardware initialization state for this card. + Possible values: + - None + - Card Idle + - Card Detected + - Card Activating + - Card Activated + - Card Remove Requested + - Card Removing + - Card Removed + - Card Downloading + - Card Failed + - Card Disabled Long Loop + - MAX + valuemap: + name: 'Ribbon: System status' + preprocessing: + - type: JSONPATH + parameters: + - $.system.Status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: system + triggers: + - uuid: 01f76a527a4743618027c9dc972ce132 + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.system.status)=9' + name: 'Ribbon: System status - Card Failed' + priority: AVERAGE + description: 'The current system status - Card Failed.' + tags: + - tag: scope + value: availability + - uuid: 48de69c997174406a13920203a70acab + name: 'Memory total' + type: DEPENDENT + key: ribbon.system.total.memory + delay: '0' + units: B + description: 'Indicates the amount of RAM available in the system.' + preprocessing: + - type: JSONPATH + parameters: + - $.system.TotalSystemMemory + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: memory + - uuid: 1f7989838b6242979e24046ece70b2e7 + name: 'Temporary partition usage' + type: DEPENDENT + key: ribbon.tmp.part.usage + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of the temporary partition used.' + preprocessing: + - type: JSONPATH + parameters: + - $.historicalstatistics.rt_TmpPartUsage + master_item: + key: ribbon.system.stats.get + tags: + - tag: component + value: memory + discovery_rules: + - uuid: f4b48b81b6f4449596ea9f2380888483 + name: 'Alarm discovery' + type: DEPENDENT + key: ribbon.alarm.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#ALARM.EVENT.ID}' + value: '{$RIBBON.ALARM.DISCOVERY.EVENT.ID.MATCHES}' + formulaid: A + - macro: '{#ALARM.EVENT.ID}' + value: '{$RIBBON.ALARM.DISCOVERY.EVENT.ID.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ALARM.STATE}' + value: '{$RIBBON.ALARM.DISCOVERY.STATE.MATCHES}' + formulaid: C + - macro: '{#ALARM.STATE}' + value: '{$RIBBON.ALARM.DISCOVERY.STATE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Used for discovering active alarms.' + item_prototypes: + - uuid: 0a69e67c013040f5b760d606498c00d9 + name: 'Alarm [{#ALARM.EVENT.ID}.{#ALARM.EVENT.SUB.ID}]: Source: [{#ALARM.SOURCE}]: Severity' + type: DEPENDENT + key: 'ribbon.alarm.severity[{#ALARM.ID}]' + delay: '0' + description: 'Severity of `{#ALARM.CONDITION}` event.' + valuemap: + name: 'Ribbon: Alarm Severity' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#ALARM.ID}.aSeverity' + master_item: + key: ribbon.alarm.get + tags: + - tag: alarm + value: '{#ALARM.EVENT.ID}.{#ALARM.EVENT.SUB.ID}' + - tag: component + value: alarm + trigger_prototypes: + - uuid: 1adce8721d334165a94ace0c2bd6efaa + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.alarm.severity[{#ALARM.ID}])=4' + name: 'Ribbon: Alarm [{#ALARM.EVENT.ID}.{#ALARM.EVENT.SUB.ID}]: Source: [{#ALARM.SOURCE}]: Severity is critical' + opdata: 'Current severity: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The alarm `{#ALARM.CONDITION}` severity is critical.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 9581ed26f3e44956b6fc1c9b6899f92f + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.alarm.severity[{#ALARM.ID}])=3' + name: 'Ribbon: Alarm [{#ALARM.EVENT.ID}.{#ALARM.EVENT.SUB.ID}]: Source: [{#ALARM.SOURCE}]: Severity is major' + opdata: 'Current severity: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The alarm `{#ALARM.CONDITION}` severity is major.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 596ac083d1714cc1ae6d6649c60c614a + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.alarm.severity[{#ALARM.ID}])=2' + name: 'Ribbon: Alarm [{#ALARM.EVENT.ID}.{#ALARM.EVENT.SUB.ID}]: Source: [{#ALARM.SOURCE}]: Severity is minor' + opdata: 'Current severity: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The alarm `{#ALARM.CONDITION}` severity is minor.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: ribbon.alarm.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value === '' || value === '{}') { + return '[]'; + }; + + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#ALARM.ID}": json_data[entity]["@id"], + "{#ALARM.EVENT.ID}": json_data[entity]["EventID"], + "{#ALARM.EVENT.SUB.ID}": json_data[entity]["EventSubID"], + "{#ALARM.CONDITION}": json_data[entity]["Condition"], + "{#ALARM.SOURCE}": json_data[entity]["InstanceOID"], + "{#ALARM.STATE}": json_data[entity]["aState"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 97cc15da89f441b8b7a830124e0e8ab7 + name: 'Certificate discovery' + type: DEPENDENT + key: ribbon.cert.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CERT.NAME}' + value: '{$RIBBON.CERTIFICATE.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#CERT.NAME}' + value: '{$RIBBON.CERTIFICATE.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for discovering certificates.' + item_prototypes: + - uuid: 1234567890ab4cdebcdef1234567890a + name: 'Certificate [{#CERT.NAME}]: Raw data' + type: DEPENDENT + key: 'ribbon.cert.status.raw.data[{#CERT.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for "{#CERT.NAME}" certificate.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#CERT.ID}' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.cert.get + tags: + - tag: certificate + value: '{#CERT.NAME}' + - tag: component + value: certificate + - tag: component + value: raw + - uuid: 98b1be079a8c485cbe468d332f2709d6 + name: 'Certificate [{#CERT.NAME}]: Valid until' + type: DEPENDENT + key: 'ribbon.cert.status.valid.until[{#CERT.ID}]' + delay: '0' + units: unixtime + description: 'Indicates the expiration date of this certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.CertEndDateEpoch + master_item: + key: 'ribbon.cert.status.raw.data[{#CERT.ID}]' + tags: + - tag: certificate + value: '{#CERT.NAME}' + - tag: component + value: certificate + - uuid: 606295f441714240a9cb20276cc21664 + name: 'Certificate [{#CERT.NAME}]: Status' + type: DEPENDENT + key: 'ribbon.cert.status[{#CERT.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Displays the status of the certificate validation and verification against the trusted CA.' + preprocessing: + - type: JSONPATH + parameters: + - $.CertVerifyStatus + master_item: + key: 'ribbon.cert.status.raw.data[{#CERT.ID}]' + tags: + - tag: certificate + value: '{#CERT.NAME}' + - tag: component + value: certificate + trigger_prototypes: + - uuid: ca28f7431d134a6cadbbf039e342e843 + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.cert.status[{#CERT.ID}])<>"OK"' + name: 'Ribbon: Certificate [{#CERT.NAME}]: Status in not OK' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The certificate status is not OK.' + tags: + - tag: scope + value: availability + master_item: + key: ribbon.cert.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value === '' || value === '{}') { + return '[]'; + }; + + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#CERT.ID}": json_data[entity]["@id"], + "{#CERT.NAME}": json_data[entity]["CertCommonName"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f7409cc2f49945c79e659caa7e86f53f + name: 'Disk partition discovery' + type: DEPENDENT + key: ribbon.disk.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DISK.NAME}' + value: '{$RIBBON.DISK.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#DISK.NAME}' + value: '{$RIBBON.DISK.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#DISK.TYPE}' + value: '{$RIBBON.DISK.DISCOVERY.TYPE.MATCHES}' + formulaid: C + - macro: '{#DISK.TYPE}' + value: '{$RIBBON.DISK.DISCOVERY.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Used for discovering system disk partition.' + item_prototypes: + - uuid: a2c476e67fbb48da914834cbe2146975 + name: 'Disk [{#DISK.NAME}]: Raw data' + type: DEPENDENT + key: 'ribbon.disk.raw.data[{#DISK.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data of the disk partition.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#DISK.ID}' + master_item: + key: ribbon.disk.get + tags: + - tag: component + value: capacity + - tag: component + value: raw + - tag: disk + value: '{#DISK.NAME}' + - uuid: f8236f0b24304091b72aad4a44ec86ef + name: 'Disk [{#DISK.NAME}]: Available' + type: DEPENDENT + key: 'ribbon.disk.size.available[{#DISK.ID}]' + delay: '0' + units: B + description: 'Amount of memory in bytes, available for use in the file system.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_MemoryAvailable + master_item: + key: 'ribbon.disk.raw.data[{#DISK.ID}]' + tags: + - tag: component + value: capacity + - tag: disk + value: '{#DISK.NAME}' + - uuid: b7e0cc62963f4b9cab987b1bbd91e521 + name: 'Disk [{#DISK.NAME}]: Size' + type: DEPENDENT + key: 'ribbon.disk.size.max[{#DISK.ID}]' + delay: '0' + units: B + description: 'Specifies the maximum amount of memory, in bytes available in this partition.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_MaximumSize + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'ribbon.disk.raw.data[{#DISK.ID}]' + tags: + - tag: component + value: capacity + - tag: disk + value: '{#DISK.NAME}' + - uuid: e866506e32c44931ac3a3eb280b2a372 + name: 'Disk [{#DISK.NAME}]: Used' + type: DEPENDENT + key: 'ribbon.disk.size.used[{#DISK.ID}]' + delay: '0' + units: B + description: 'Amount of memory in bytes, used by the existing files in the file system.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_MemoryUsed + master_item: + key: 'ribbon.disk.raw.data[{#DISK.ID}]' + tags: + - tag: component + value: capacity + - tag: disk + value: '{#DISK.NAME}' + - uuid: 0b75d8331cc5411f830d8f2303be8eda + name: 'Disk [{#DISK.NAME}]: Type' + type: DEPENDENT + key: 'ribbon.disk.type[{#DISK.ID}]' + delay: '0' + description: | + Identifies the user-friendly physical device holding the partition. + Possible values: + - Configuration + - Logs + - Temp + - Core File + - ASM Module + - Software Update + - Internal Logs + - System + - Others + - Packet Capture Logs + valuemap: + name: 'Ribbon: Disk type' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_PartitionType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'ribbon.disk.raw.data[{#DISK.ID}]' + tags: + - tag: component + value: capacity + - tag: disk + value: '{#DISK.NAME}' + - uuid: ba402d0de10d49ba9cf9dbd3c5e42497 + name: 'Disk [{#DISK.NAME}]: Utilization' + type: DEPENDENT + key: 'ribbon.disk.usage.percent[{#DISK.ID}]' + delay: '0' + units: '!%' + description: 'Amount of memory used by this partition, expressed as a percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_CurrentUsage + master_item: + key: 'ribbon.disk.raw.data[{#DISK.ID}]' + tags: + - tag: component + value: capacity + - tag: disk + value: '{#DISK.NAME}' + trigger_prototypes: + - uuid: 1ef41f56bb1e42bf83fc14a98c60bdc3 + expression: 'min(/Ribbon SBC Edge by HTTP/ribbon.disk.usage.percent[{#DISK.ID}],5m)>{$RIBBON.DISK.USED.MAX:"{#DISK.NAME}"}' + name: 'Ribbon: Disk [{#DISK.NAME}]: Disk space usage is high' + event_name: 'Ribbon: Disk [{#DISK.NAME}]: Disk space usage is high (more {$RIBBON.DISK.USED.MAX:"{#DISK.NAME}"}% for 5m)' + opdata: 'Current usage: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'Disk space usage is larger than the threshold.' + tags: + - tag: scope + value: availability + master_item: + key: ribbon.disk.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value === '' || value === '{}') { + return '[]'; + }; + + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#DISK.ID}": json_data[entity]["@id"], + "{#DISK.NAME}": json_data[entity].rt_PartitionName, + "{#DISK.TYPE}": json_data[entity].rt_PartitionType + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3c631d9182514870baa83f42d0eebe3d + name: 'DSP card discovery' + type: DEPENDENT + key: ribbon.dsp.card.discovery + delay: '0' + description: 'Used for discovering DSP cards.' + item_prototypes: + - uuid: 398b159419f84b0f8a0ec54db3d24bb5 + name: 'DSP Card [{#DSP.CARD.ID}]: Available' + type: DEPENDENT + key: 'ribbon.dsp.card.available[{#DSP.CARD.ID}]' + delay: '0' + description: | + Identifies whether a DSP Module is installed in this slot. + Possible values: + - False + - True + valuemap: + name: 'Ribbon: Bool' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_Available + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.dsp.card.raw.data[{#DSP.CARD.ID}]' + tags: + - tag: component + value: dsp + - tag: dsp_card + value: '{#DSP.CARD.ID}' + - uuid: 95f176c173374542902d170864f1e2ca + name: 'DSP Card [{#DSP.CARD.ID}]: Channels in use' + type: DEPENDENT + key: 'ribbon.dsp.card.channels.in.use[{#DSP.CARD.ID}]' + delay: '0' + description: 'Indicates the number of channels currently in use on the DSP Module.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_ChannelsInUse + master_item: + key: 'ribbon.dsp.card.raw.data[{#DSP.CARD.ID}]' + tags: + - tag: component + value: dsp + - tag: dsp_card + value: '{#DSP.CARD.ID}' + - uuid: 668923672d8a43b58a38e66c0a80f6fb + name: 'DSP Card [{#DSP.CARD.ID}]: CPU usage' + type: DEPENDENT + key: 'ribbon.dsp.card.cpu.usage.percent[{#DSP.CARD.ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Indicates the current CPU level for this DSP. Only applicable if the DSP is available.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_CPUUsage + error_handler: DISCARD_VALUE + master_item: + key: 'ribbon.dsp.card.raw.data[{#DSP.CARD.ID}]' + tags: + - tag: component + value: cpu + - tag: component + value: dsp + - tag: dsp_card + value: '{#DSP.CARD.ID}' + trigger_prototypes: + - uuid: c3b9a4aabfc644c598226cdbad79b267 + expression: 'avg(/Ribbon SBC Edge by HTTP/ribbon.dsp.card.cpu.usage.percent[{#DSP.CARD.ID}],15m)>{$RIBBON.DSP.CARD.CPU.USAGE.CRIT:"{#DSP.CARD.ID}"}' + name: 'Ribbon: DSP Card [{#DSP.CARD.ID}]: CPU usage is high' + event_name: 'Ribbon: DSP Card [{#DSP.CARD.ID}]: CPU usage is high (more than {$RIBBON.DSP.CARD.CPU.USAGE.CRIT:"{#DSP.CARD.ID}"}% for 15m)' + opdata: 'Current usage: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The DSP card CPU usage is higher than the threshold.' + tags: + - tag: scope + value: availability + - uuid: 27fe538ff91e4004a85da110d11837dc + name: 'DSP Card [{#DSP.CARD.ID}]: Location' + type: DEPENDENT + key: 'ribbon.dsp.card.location[{#DSP.CARD.ID}]' + delay: '0' + description: | + The hardware module's location within the SBC. + Possible values: + - Unknown + - LineCard1 + - LineCard2 + - DSPCard1 + - DSPCard2 + - DSPCard3 + - DSPCard4 + - DSPCard5 + - DSPCard6 + - BITS_WAN + - SFP + - COMExpress + - Mainboard + - PSU1 + - PSU2 + - UX1000_Telco_1 + - UX1000_Telco_2 + - UX1000_Telco_3 + - UX1000_Telco_4 + - UX1000_Telco_5 + - UX1000_Telco_6 + - UX1000_DS1_Telco + - UX1000_DS1_WAN + - MAX + valuemap: + name: 'Ribbon: Card Location' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_Location + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'ribbon.dsp.card.raw.data[{#DSP.CARD.ID}]' + tags: + - tag: component + value: dsp + - tag: dsp_card + value: '{#DSP.CARD.ID}' + - uuid: 6e27897765784155a72d8a82befd4b45 + name: 'DSP Card [{#DSP.CARD.ID}]: Raw data' + type: DEPENDENT + key: 'ribbon.dsp.card.raw.data[{#DSP.CARD.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for `{#DSP.CARD.ID}` DSP card.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#DSP.CARD.ID}' + master_item: + key: ribbon.dsp.card.get + tags: + - tag: component + value: dsp + - tag: component + value: raw + - tag: dsp_card + value: '{#DSP.CARD.ID}' + - uuid: aaf0b56a5e3545ec86dd680990ebeb15 + name: 'DSP Card [{#DSP.CARD.ID}]: Service status' + type: DEPENDENT + key: 'ribbon.dsp.card.service.status[{#DSP.CARD.ID}]' + delay: '0' + description: | + Indicates the status of the DSP Module + `Detected` - The module is detected by the SBC software but is not initialized or available for signal processing tasks. + `Available` - The module is ready for signal processing tasks. + valuemap: + name: 'Ribbon: Service status' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_ServiceStatus + master_item: + key: 'ribbon.dsp.card.raw.data[{#DSP.CARD.ID}]' + tags: + - tag: component + value: dsp + - tag: dsp_card + value: '{#DSP.CARD.ID}' + trigger_prototypes: + - uuid: 92385745ac444bcbb513e7783c7d4042 + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.dsp.card.service.status[{#DSP.CARD.ID}])=0' + name: 'Ribbon: DSP Card [{#DSP.CARD.ID}]: Service status is Detected' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The DSP card service status is Detected.' + tags: + - tag: scope + value: availability + - uuid: 5e2f3f3e1f1e4f2fa6f3e8b1c4d5e6f7 + name: 'DSP Card [{#DSP.CARD.ID}]: Status' + type: DEPENDENT + key: 'ribbon.dsp.card.status[{#DSP.CARD.ID}]' + delay: '0' + description: | + Indicates the hardware initialization state for this DSP card. + Possible values: + - None + - Card Idle + - Card Detected + - Card Activating + - Card Activated + - Card Remove Requested + - Card Removing + - Card Removed + - Card Downloading + - Card Failed + - Card Disabled Long Loop + - MAX + valuemap: + name: 'Ribbon: System status' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_Status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.dsp.card.raw.data[{#DSP.CARD.ID}]' + tags: + - tag: component + value: dsp + - tag: component + value: system + - tag: dsp_card + value: '{#DSP.CARD.ID}' + trigger_prototypes: + - uuid: 9998a0a93f314d69a7a36ac6bfe5a258 + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.dsp.card.status[{#DSP.CARD.ID}])=9' + name: 'Ribbon: DSP Card [{#DSP.CARD.ID}]: Status is FAILED' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The DSP card status is failed.' + tags: + - tag: scope + value: availability + - uuid: 22e8b25b626449b7856a3f61a16e11a7 + name: 'DSP Card [{#DSP.CARD.ID}]: Updated time' + type: DEPENDENT + key: 'ribbon.dsp.card.updated.time[{#DSP.CARD.ID}]' + delay: '0' + units: uptime + description: 'Indicates the time, when this DSP reported it''s CPU usage.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_UpdatedTime + master_item: + key: 'ribbon.dsp.card.raw.data[{#DSP.CARD.ID}]' + tags: + - tag: component + value: dsp + - tag: dsp_card + value: '{#DSP.CARD.ID}' + master_item: + key: ribbon.dsp.card.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value === '' || value === '{}') { + return '[]'; + }; + + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#DSP.CARD.ID}": json_data[entity]["@id"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 18f07f6f15be4778977006db87fad929 + name: 'Fan discovery' + type: DEPENDENT + key: ribbon.fan.discovery + delay: '0' + description: 'Used for discovering fans.' + item_prototypes: + - uuid: 85033b1d2e6449a494580d60a7a34d80 + name: 'Fan [{#FAN.ID}]: Speed' + type: DEPENDENT + key: 'ribbon.fan.speed[{#FAN.ID}]' + delay: '0' + units: '!RPM' + description: 'Indicates the speed of the fan in RPM.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#FAN.ID}.Fan_Speed' + master_item: + key: ribbon.fan.get + tags: + - tag: component + value: fan + - tag: component + value: sensor + master_item: + key: ribbon.fan.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value === '' || value === '{}') { + return '[]'; + }; + + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#FAN.ID}": json_data[entity]["@id"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3647c72235f7420a9937749a04eb1ed4 + name: 'Network interface discovery' + type: DEPENDENT + key: ribbon.net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#INTERFACE.NAME}' + value: '{$RIBBON.INTERFACE.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#INTERFACE.NAME}' + value: '{$RIBBON.INTERFACE.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#INTERFACE.TYPE}' + value: '{$RIBBON.INTERFACE.DISCOVERY.TYPE.MATCHES}' + formulaid: C + - macro: '{#INTERFACE.TYPE}' + value: '{$RIBBON.INTERFACE.DISCOVERY.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Used for discovering system interfaces.' + item_prototypes: + - uuid: 2c3fd61a0881477d9cf1f12bcff5e499 + name: 'Interface [{#INTERFACE.NAME}]: Config interface state' + type: DEPENDENT + key: 'ribbon.net.if.config.state[{#INTERFACE.ID}]' + delay: '0' + description: | + Specifies the Administrative State of the resource. + Possible values: + - Disabled + - Enabled + valuemap: + name: 'Ribbon: Config interface state' + preprocessing: + - type: JSONPATH + parameters: + - $.ConfigIEState + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.net.if.raw.data[{#INTERFACE.ID}]' + tags: + - tag: component + value: network + - tag: interface + value: '{#INTERFACE.NAME}' + - uuid: 7d6db1ff5b2144cda406798bfaa5a4f6 + name: 'Interface [{#INTERFACE.NAME}]: Bits received' + type: DEPENDENT + key: 'ribbon.net.if.in.octets[{#INTERFACE.ID}]' + delay: '0' + units: bps + description: 'Displays the number of received bits on this port.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_ifInOctets + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: 'ribbon.net.if.raw.data[{#INTERFACE.ID}]' + tags: + - tag: component + value: network + - tag: interface + value: '{#INTERFACE.NAME}' + - uuid: c47ba8091f6e47758d5c67b3e7af9687 + name: 'Interface [{#INTERFACE.NAME}]: Networking mode' + type: DEPENDENT + key: 'ribbon.net.if.networking.mode[{#INTERFACE.ID}]' + delay: '0' + description: | + Specifies if the port is in switched mode or routed mode. + Possible values: + - Switch + - Route + valuemap: + name: 'Ribbon: Networking mode' + preprocessing: + - type: JSONPATH + parameters: + - $.ifNetworkingMode + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'ribbon.net.if.raw.data[{#INTERFACE.ID}]' + tags: + - tag: component + value: network + - tag: interface + value: '{#INTERFACE.NAME}' + - uuid: e9d6248bc3e84fc4973c35ce89dc775c + name: 'Interface [{#INTERFACE.NAME}]: Operational status' + type: DEPENDENT + key: 'ribbon.net.if.operator.state[{#INTERFACE.ID}]' + delay: '0' + description: | + The operational status of the interface. + Possible values: + - Up + - Down + valuemap: + name: 'Ribbon: Operational status' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_ifOperatorStatus + master_item: + key: 'ribbon.net.if.raw.data[{#INTERFACE.ID}]' + tags: + - tag: component + value: network + - tag: interface + value: '{#INTERFACE.NAME}' + - uuid: ed237fe950c049859f62be677e38c645 + name: 'Interface [{#INTERFACE.NAME}]: Bits sent' + type: DEPENDENT + key: 'ribbon.net.if.out.octets[{#INTERFACE.ID}]' + delay: '0' + units: bps + description: 'Displays the number of transmitted bits on this port.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_ifOutOctets + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: 'ribbon.net.if.raw.data[{#INTERFACE.ID}]' + tags: + - tag: component + value: network + - tag: interface + value: '{#INTERFACE.NAME}' + - uuid: 408a4289df4b4203b705bbc896b3b489 + name: 'Interface [{#INTERFACE.NAME}]: Raw data' + type: DEPENDENT + key: 'ribbon.net.if.raw.data[{#INTERFACE.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data of the interface.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#INTERFACE.ID}' + master_item: + key: ribbon.net.if.get + tags: + - tag: component + value: network + - tag: component + value: raw + - tag: interface + value: '{#INTERFACE.NAME}' + - uuid: 537994b412f646298847c9f1556ccfcc + name: 'Interface [{#INTERFACE.NAME}]: Speed' + type: DEPENDENT + key: 'ribbon.net.if.speed[{#INTERFACE.ID}]' + delay: '0' + description: | + An estimate of the interface's current bandwidth in bits per second. + Possible values: + - 10 Mbps + - 100 Mbps + - 1000 Mbps + - Auto + valuemap: + name: 'Ribbon: Interface speed' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_ifSpeed + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'ribbon.net.if.raw.data[{#INTERFACE.ID}]' + tags: + - tag: component + value: network + - tag: interface + value: '{#INTERFACE.NAME}' + - uuid: 6f16fc284492411a945786a25ea88a8f + name: 'Interface [{#INTERFACE.NAME}]: Interface type' + type: DEPENDENT + key: 'ribbon.net.if.type[{#INTERFACE.ID}]' + delay: '0' + description: | + Specifies the interface type. + Possible values: + - Ethernet + - VLAN + - QINQ + - BONDED + - BRIDGE + valuemap: + name: 'Ribbon: Interface Type' + preprocessing: + - type: JSONPATH + parameters: + - $.ifType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'ribbon.net.if.raw.data[{#INTERFACE.ID}]' + tags: + - tag: component + value: network + - tag: interface + value: '{#INTERFACE.NAME}' + trigger_prototypes: + - uuid: 131026a699674931b135604f1dea4b66 + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.net.if.operator.state[{#INTERFACE.ID}])=1 and last(/Ribbon SBC Edge by HTTP/ribbon.net.if.config.state[{#INTERFACE.ID}])=1' + name: 'Ribbon: Interface [{#INTERFACE.NAME}]: Operational status is DOWN' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The operational status of the interface is down.' + tags: + - tag: scope + value: availability + master_item: + key: ribbon.net.if.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value === '' || value === '{}') { + return '[]'; + }; + + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#INTERFACE.ID}": json_data[entity]["@id"], + "{#INTERFACE.NAME}": json_data[entity].ifName, + "{#INTERFACE.TYPE}": json_data[entity].ifType + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3e140fc4939e4d69b1eddbc34f67d33c + name: 'Power supply discovery' + type: DEPENDENT + key: ribbon.psu.discovery + delay: '0' + description: 'Used for discovering the power supply.' + item_prototypes: + - uuid: 9deb137ec4884586afea405ed144b00a + name: 'PSU [{#PSU.ID}]: AC input good' + type: DEPENDENT + key: 'ribbon.psu.ac.input.good[{#PSU.ID}]' + delay: '0' + description: | + Indicates whether the AC power input for this power supply is in a good state. + Possible values: + - False + - True + valuemap: + name: 'Ribbon: Bool' + preprocessing: + - type: JSONPATH + parameters: + - $.ACInputGood + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + tags: + - tag: component + value: psu + - tag: psu + value: '{#PSU.ID}' + trigger_prototypes: + - uuid: 6f70c36a7c144c5ebf3fe6911d4c8d07 + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.psu.ac.input.good[{#PSU.ID}]) = 0' + name: 'Ribbon: PSU [{#PSU.ID}]: AC input is not OK' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The AC power input of the power supply reports a bad state.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 88ca7c8494824e24871f9b63d5ab663c + name: 'PSU [{#PSU.ID}]: Current in' + type: DEPENDENT + key: 'ribbon.psu.current.in[{#PSU.ID}]' + delay: '0' + value_type: FLOAT + units: A + description: 'Input current of this power supply in amperes.' + preprocessing: + - type: JSONPATH + parameters: + - $.CurrentIn + master_item: + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + tags: + - tag: component + value: psu + - tag: psu + value: '{#PSU.ID}' + - uuid: 763bfd2a314543e8b33962f3e6fa4d54 + name: 'PSU [{#PSU.ID}]: Current out' + type: DEPENDENT + key: 'ribbon.psu.current.out[{#PSU.ID}]' + delay: '0' + value_type: FLOAT + units: A + description: 'Output current of this power supply in amperes.' + preprocessing: + - type: JSONPATH + parameters: + - $.CurrentOut + master_item: + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + tags: + - tag: component + value: psu + - tag: psu + value: '{#PSU.ID}' + - uuid: 0269a8584a8a470ca10cdce57be13f0d + name: 'PSU [{#PSU.ID}]: Fan1 speed' + type: DEPENDENT + key: 'ribbon.psu.fan1.speed[{#PSU.ID}]' + delay: '0' + units: '!RPM' + description: 'The speed of the first fan on this power supply in RPM.' + preprocessing: + - type: JSONPATH + parameters: + - $.Fan1_Speed + master_item: + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + tags: + - tag: component + value: fan + - tag: component + value: psu + - tag: psu + value: '{#PSU.ID}' + - uuid: 3b496cc4557743908d6da52171c4c5b6 + name: 'PSU [{#PSU.ID}]: Fan2 speed' + type: DEPENDENT + key: 'ribbon.psu.fan2.speed[{#PSU.ID}]' + delay: '0' + units: '!RPM' + description: 'The speed of the second fan on this power supply in RPM.' + preprocessing: + - type: JSONPATH + parameters: + - $.Fan2_Speed + master_item: + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + tags: + - tag: component + value: fan + - tag: component + value: psu + - tag: psu + value: '{#PSU.ID}' + - uuid: abb2d6a045674ddcbfe8befb489ea8cc + name: 'PSU [{#PSU.ID}]: Power in' + type: DEPENDENT + key: 'ribbon.psu.power.in[{#PSU.ID}]' + delay: '0' + units: W + description: 'Input power of this power supply in watts.' + preprocessing: + - type: JSONPATH + parameters: + - $.PowerIn + master_item: + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + tags: + - tag: component + value: psu + - tag: psu + value: '{#PSU.ID}' + - uuid: 7a0631c2afc44200bc466b07dd2e2861 + name: 'PSU [{#PSU.ID}]: Power out' + type: DEPENDENT + key: 'ribbon.psu.power.out[{#PSU.ID}]' + delay: '0' + units: W + description: 'Output power of this power supply in watts.' + preprocessing: + - type: JSONPATH + parameters: + - $.PowerOut + master_item: + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + tags: + - tag: component + value: psu + - tag: psu + value: '{#PSU.ID}' + - uuid: 6363fec4ace74dbeb1ca7cc8d2874ba5 + name: 'PSU [{#PSU.ID}]: Raw data' + type: DEPENDENT + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for this power supply.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#PSU.ID}' + master_item: + key: ribbon.psu.get + tags: + - tag: component + value: psu + - tag: component + value: raw + - tag: psu + value: '{#PSU.ID}' + - uuid: 2dcb0fac8c294186ad3f1003c6b4f552 + name: 'PSU [{#PSU.ID}]: Temperature' + type: DEPENDENT + key: 'ribbon.psu.temp[{#PSU.ID}]' + delay: '0' + value_type: FLOAT + units: °C + description: 'Temperature of this power supply in degrees Celsius.' + preprocessing: + - type: JSONPATH + parameters: + - $.Temp + master_item: + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + tags: + - tag: component + value: psu + - tag: psu + value: '{#PSU.ID}' + trigger_prototypes: + - uuid: 0084aa4adf6949b888fc30e5643dd96b + expression: 'avg(/Ribbon SBC Edge by HTTP/ribbon.psu.temp[{#PSU.ID}],5m)>{$RIBBON.TEMP.PSU.CRIT}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Ribbon SBC Edge by HTTP/ribbon.psu.temp[{#PSU.ID}],5m)<{$RIBBON.TEMP.PSU.CRIT}-3' + name: 'Ribbon: PSU [{#PSU.ID}]: Temperature on power supply is above critical threshold' + event_name: 'Ribbon: PSU [{#PSU.ID}]: Temperature is above critical threshold: >{$RIBBON.TEMP.PSU.CRIT}' + opdata: 'Current temperature: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature of power supply value.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d91ff2d143b9418b91933ab52c6361eb + name: 'PSU [{#PSU.ID}]: Voltage in' + type: DEPENDENT + key: 'ribbon.psu.voltage.in[{#PSU.ID}]' + delay: '0' + units: V + description: 'Input voltage of this power supply.' + preprocessing: + - type: JSONPATH + parameters: + - $.VoltageIn + master_item: + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + tags: + - tag: component + value: psu + - tag: psu + value: '{#PSU.ID}' + - uuid: f6591d2a5a7f445d9ea20d52355640fd + name: 'PSU [{#PSU.ID}]: Voltage out' + type: DEPENDENT + key: 'ribbon.psu.voltage.out[{#PSU.ID}]' + delay: '0' + value_type: FLOAT + units: V + description: 'Output voltage of this power supply.' + preprocessing: + - type: JSONPATH + parameters: + - $.VoltageOut + master_item: + key: 'ribbon.psu.raw.data[{#PSU.ID}]' + tags: + - tag: component + value: psu + - tag: psu + value: '{#PSU.ID}' + master_item: + key: ribbon.psu.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value === '' || value === '{}') { + return '[]'; + }; + + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#PSU.ID}": json_data[entity]["@id"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b2237143db0c42b1bf8f470909df889e + name: 'SIP server discovery' + type: DEPENDENT + key: ribbon.sip.server.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SIP.SEQUENCE}' + value: '1' + formulaid: A + - macro: '{#SIP.SERVER.NAME}' + value: '{$RIBBON.SIP.SERVER.DISCOVERY.NAME.MATCHES}' + formulaid: B + - macro: '{#SIP.SERVER.NAME}' + value: '{$RIBBON.SIP.SERVER.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'Used for discovering SIP servers.' + item_prototypes: + - uuid: aac31d5ee67c4f33b7d602e83acbd288 + name: 'SIP Server [{#SIP.SERVER.NAME}]:[{#SIP.SERVER.DESCR}]: Downtime' + type: DEPENDENT + key: 'ribbon.sip.server.downtime[{#SIP.SERVER.NAME}]' + delay: '0' + description: 'Displays the time for which server was down due to not responding to options request or dns failures.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_DownTime + master_item: + key: 'ribbon.sip.server.raw.data[{#SIP.SERVER.NAME}]' + tags: + - tag: component + value: sip-server + - tag: sip_server + value: '{#SIP.SERVER.NAME}' + - uuid: e5e2790fba5f4cfe8c610b326a1b1040 + name: 'SIP Server [{#SIP.SERVER.NAME}]:[{#SIP.SERVER.DESCR}]: Host' + type: DEPENDENT + key: 'ribbon.sip.server.host[{#SIP.SERVER.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Specifies the IP address or FQDN where this Signaling Group sends SIP messages. If an FQDN is configured all the associated servers are included and used according to the server selection configuration element.' + preprocessing: + - type: JSONPATH + parameters: + - $.Host + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'ribbon.sip.server.raw.data[{#SIP.SERVER.NAME}]' + tags: + - tag: component + value: sip-server + - tag: sip_server + value: '{#SIP.SERVER.NAME}' + - uuid: 3860ea61774d4e3b80cf2c43c477af93 + name: 'SIP Server [{#SIP.SERVER.NAME}]:[{#SIP.SERVER.DESCR}]: Port' + type: DEPENDENT + key: 'ribbon.sip.server.port[{#SIP.SERVER.NAME}]' + delay: '0' + description: 'Specifies the port number to send SIP messages.' + preprocessing: + - type: JSONPATH + parameters: + - $.Port + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'ribbon.sip.server.raw.data[{#SIP.SERVER.NAME}]' + tags: + - tag: component + value: sip-server + - tag: sip_server + value: '{#SIP.SERVER.NAME}' + - uuid: 0418fc972e4b499daa407e571d4bc0fe + name: 'SIP Server [{#SIP.SERVER.NAME}]:[{#SIP.SERVER.DESCR}]: Raw data' + type: DEPENDENT + key: 'ribbon.sip.server.raw.data[{#SIP.SERVER.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for this SIP server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#SIP.SERVER.ID}.metrics' + master_item: + key: ribbon.sip.server.get + tags: + - tag: component + value: raw + - tag: component + value: sip + - tag: sip_server + value: '{#SIP.SERVER.NAME}' + - uuid: 7f0c7b0461104e838dbe9e5e88635198 + name: 'SIP Server [{#SIP.SERVER.NAME}]:[{#SIP.SERVER.DESCR}]: Status' + type: DEPENDENT + key: 'ribbon.sip.server.status[{#SIP.SERVER.NAME}]' + delay: '0' + description: 'Indicates the status of the SIP server.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_ServerStatus + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.sip.server.raw.data[{#SIP.SERVER.NAME}]' + tags: + - tag: component + value: sip-server + - tag: sip_server + value: '{#SIP.SERVER.NAME}' + - uuid: a556865ccad74d6aa3a36ef2411ba673 + name: 'SIP Server [{#SIP.SERVER.NAME}]:[{#SIP.SERVER.DESCR}]: Transactions failed' + type: DEPENDENT + key: 'ribbon.sip.server.transactions.failed[{#SIP.SERVER.NAME}]' + delay: '0' + description: 'Displays the number of failed SBC client transactions with the server.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_TransactionFalures + master_item: + key: 'ribbon.sip.server.raw.data[{#SIP.SERVER.NAME}]' + tags: + - tag: component + value: sip-server + - tag: sip_server + value: '{#SIP.SERVER.NAME}' + trigger_prototypes: + - uuid: 2034204162de44b097c5bfd08c3b170e + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.sip.server.transactions.failed[{#SIP.SERVER.NAME}])>{$RIBBON.SIP.SERVER.TRANSACTIONS.FAILED.MAX:"{#SIP.SERVER.NAME}"}' + name: 'Ribbon: SIP Server [{#SIP.SERVER.NAME}]: Failed transactions are high' + event_name: 'Ribbon: SIP Server [{#SIP.SERVER.NAME}]: Failed transactions are high (more than {$RIBBON.SIP.SERVER.TRANSACTIONS.FAILED.MAX:"{#SIP.SERVER.NAME}"})' + opdata: 'Current failed transactions: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The number of failed transactions is higher than the threshold.' + tags: + - tag: scope + value: availability + - uuid: 6f80f25094a14f82bf0102fd1acae965 + name: 'SIP Server [{#SIP.SERVER.NAME}]:[{#SIP.SERVER.DESCR}]: Transactions' + type: DEPENDENT + key: 'ribbon.sip.server.transactions[{#SIP.SERVER.NAME}]' + delay: '0' + description: 'Displays the number of SBC client transactions with the server.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_Transactions + master_item: + key: 'ribbon.sip.server.raw.data[{#SIP.SERVER.NAME}]' + tags: + - tag: component + value: sip-server + - tag: sip_server + value: '{#SIP.SERVER.NAME}' + - uuid: 2f4a25ae814446f59e8a7b0cf6494369 + name: 'SIP Server [{#SIP.SERVER.NAME}]:[{#SIP.SERVER.DESCR}]: Type' + type: DEPENDENT + key: 'ribbon.sip.server.type[{#SIP.SERVER.NAME}]' + delay: '0' + description: | + Specifies the method to use to lookup SIP servers + `eConventionalSrvr` - A configured server entry defined by IP or FQDN. + `eSrvRecordTemplateSrvr` - This is not an actual server but a template which will populate the server(s) once the SRV Query gets a response from DNS. + `eSrvRecordSrvr`- The actual server created after SRV Query." + valuemap: + name: 'Ribbon: SIP Server Type' + preprocessing: + - type: JSONPATH + parameters: + - $.ServerType + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'ribbon.sip.server.raw.data[{#SIP.SERVER.NAME}]' + tags: + - tag: component + value: sip-server + - tag: sip_server + value: '{#SIP.SERVER.NAME}' + - uuid: fabeaa0f64364fd5b70e71b41924309e + name: 'SIP Server [{#SIP.SERVER.NAME}]:[{#SIP.SERVER.DESCR}]: Uptime' + type: DEPENDENT + key: 'ribbon.sip.server.uptime[{#SIP.SERVER.NAME}]' + delay: '0' + description: 'Displays the time for which the server was functioning and responding to SIP Options.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_UpTime + master_item: + key: 'ribbon.sip.server.raw.data[{#SIP.SERVER.NAME}]' + tags: + - tag: component + value: sip-server + - tag: sip_server + value: '{#SIP.SERVER.NAME}' + master_item: + key: ribbon.sip.server.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value === '' || value === '{}') { + return '[]'; + }; + + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#SIP.SERVER.ID}": json_data[entity]["@id"], + "{#SIP.SERVER.DESCR}": json_data[entity]["Description"], + "{#SIP.SERVER.NAME}": json_data[entity]["StringName"], + "{#SIP.SEQUENCE}": json_data[entity]["Sequence"] ? json_data[entity]["Sequence"] : 0 + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5f3e2d6e2c1b4f2fa9e8b7c6d5a4b3c2 + name: 'SIP signal group discovery' + type: DEPENDENT + key: ribbon.sip.signal.group.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SIP.SIGNAL.GROUP.DESCR}' + value: '{$RIBBON.SIP.SIGNAL.GROUP.DISCOVERY.DESCR.MATCHES}' + formulaid: A + - macro: '{#SIP.SIGNAL.GROUP.DESCR}' + value: '{$RIBBON.SIP.SIGNAL.GROUP.DISCOVERY.DESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for discovering SIP signal groups.' + item_prototypes: + - uuid: cfbe8c0b00894c5486ce3f04e911d3d1 + name: 'SIP Signal Group [{#SIP.SIGNAL.GROUP.DESCR}]: Number of channels' + type: DEPENDENT + key: 'ribbon.sip.signal.group.number.of.channels[{#SIP.SIGNAL.GROUP.ID}]' + delay: '0' + description: 'Provides the number of channels currently provisioned on this signaling group.' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_NumberOfChannels + master_item: + key: 'ribbon.sip.signal.group.raw.data[{#SIP.SIGNAL.GROUP.ID}]' + tags: + - tag: component + value: sip-signal-group + - tag: sip_signal_group + value: '{#SIP.SIGNAL.GROUP.DESCR}' + - uuid: d4f5e6a7b8c94d3e9f0a1b2c3d4e5f60 + name: 'SIP Signal Group [{#SIP.SIGNAL.GROUP.DESCR}]: Raw data' + type: DEPENDENT + key: 'ribbon.sip.signal.group.raw.data[{#SIP.SIGNAL.GROUP.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for this SIP signal group.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#SIP.SIGNAL.GROUP.ID}' + master_item: + key: ribbon.sip.signal.group.get + tags: + - tag: component + value: raw + - tag: component + value: sip-signal-group + - tag: sip_signal_group + value: '{#SIP.SIGNAL.GROUP.DESCR}' + - uuid: 87f113bfa57641718b9d06f1713cf1db + name: 'SIP Signal Group [{#SIP.SIGNAL.GROUP.DESCR}]: Status' + type: DEPENDENT + key: 'ribbon.sip.signal.group.status[{#SIP.SIGNAL.GROUP.ID}]' + delay: '0' + description: | + Provides the runtime operational status of the signaling group. + Possible values: + - sgsUP + - sgsDOWN + - sgsUpDraining + - sgsUpDrained + - sgsUpPeersDown + - sgsNONE_EXISTS + valuemap: + name: 'Ribbon: SIP Signaling status' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_Status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.sip.signal.group.raw.data[{#SIP.SIGNAL.GROUP.ID}]' + tags: + - tag: component + value: sip-signal-group + - tag: sip_signal_group + value: '{#SIP.SIGNAL.GROUP.DESCR}' + trigger_prototypes: + - uuid: b53a522d91eb48c386cc525f67bd3d39 + expression: 'last(/Ribbon SBC Edge by HTTP/ribbon.sip.signal.group.status[{#SIP.SIGNAL.GROUP.ID}])=1' + name: 'Ribbon: SIP Signal Group [{#SIP.SIGNAL.GROUP.DESCR}]: Status is DOWN' + opdata: 'Current status: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The SIP signaling group status is down.' + tags: + - tag: scope + value: availability + - uuid: 0772710a64294b43b71f0d7bf6687644 + name: 'SIP Signal Group [{#SIP.SIGNAL.GROUP.DESCR}]: Type' + type: DEPENDENT + key: 'ribbon.sip.signal.group.type[{#SIP.SIGNAL.GROUP.ID}]' + delay: '0' + description: | + Provides the signaling type of the signaling group. + Possible values: + - sgISDN + - sgSIP + - sgCAS + valuemap: + name: 'Ribbon: SIP Signaling Type' + preprocessing: + - type: JSONPATH + parameters: + - $.rt_Type + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.sip.signal.group.raw.data[{#SIP.SIGNAL.GROUP.ID}]' + tags: + - tag: component + value: sip-signal-group + - tag: sip_signal_group + value: '{#SIP.SIGNAL.GROUP.DESCR}' + master_item: + key: ribbon.sip.signal.group.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + if (value === '' || value === '{}') { + return '[]'; + }; + + const json_data = JSON.parse(value); + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#SIP.SIGNAL.GROUP.ID}": json_data[entity]["@id"], + "{#SIP.SIGNAL.GROUP.DESCR}": json_data[entity]["Description"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: subclass + value: communication + - tag: target + value: ribbon + - tag: target + value: ribbon-sbc-edge + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Ribbon SBC Edge", e.g. {$HTTP.TLS.VERIFY:"Ribbon SBC Edge"}.' + - macro: '{$RIBBON.ALARM.DISCOVERY.EVENT.ID.MATCHES}' + value: '.*' + description: 'Sets of the alarm event ID to be allowed in discovery. See the https://publicdoc.rbbn.com/spaces/UXDOC70/pages/122292177/Alarms+and+Events+Reference for possible values.' + - macro: '{$RIBBON.ALARM.DISCOVERY.EVENT.ID.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets of the alarm event ID to be ignored in discovery.' + - macro: '{$RIBBON.ALARM.DISCOVERY.STATE.MATCHES}' + value: '.*' + description: 'Sets of the alarm state to be allowed in discovery.' + - macro: '{$RIBBON.ALARM.DISCOVERY.STATE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets of the alarm state to be ignored in discovery.' + - macro: '{$RIBBON.CERTIFICATE.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of the certificate name to be allowed in discovery.' + - macro: '{$RIBBON.CERTIFICATE.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of the certificate name to be ignored in discovery.' + - macro: '{$RIBBON.CPU.UTIL.CRIT}' + value: '90' + description: 'The threshold of CPU usage in percent.' + - macro: '{$RIBBON.DISK.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of the disk name to be allowed in discovery.' + - macro: '{$RIBBON.DISK.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of the disk name to be ignored in discovery.' + - macro: '{$RIBBON.DISK.DISCOVERY.TYPE.MATCHES}' + value: '.*' + description: 'Sets the regex string of the disk type to be allowed in discovery.' + - macro: '{$RIBBON.DISK.DISCOVERY.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of the disk type to be ignored in discovery.' + - macro: '{$RIBBON.DISK.USED.MAX}' + value: '90' + description: 'The threshold of the disk usage in percent.' + - macro: '{$RIBBON.DSP.CARD.CPU.USAGE.CRIT}' + value: '90' + description: 'The threshold of DSP card CPU usage in percent.' + - macro: '{$RIBBON.INTERFACE.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of the interface name to be allowed in discovery.' + - macro: '{$RIBBON.INTERFACE.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of the interface name to be ignored in discovery.' + - macro: '{$RIBBON.INTERFACE.DISCOVERY.TYPE.MATCHES}' + value: '.*' + description: 'Sets the regex string of the interface type to be allowed in discovery.' + - macro: '{$RIBBON.INTERFACE.DISCOVERY.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of the interface type to be ignored in discovery.' + - macro: '{$RIBBON.INTERVAL}' + value: 1m + description: 'The update interval for the script items that retrieve data from the API. Can be used with context if needed (check the context values in relevant items).' + - macro: '{$RIBBON.INTERVAL:"get_alarm"}' + value: 5m + description: 'The update interval for the script item that retrieve the active alarms.' + - macro: '{$RIBBON.INTERVAL:"get_certificate"}' + value: 5m + description: 'The update interval for the script item that retrieve the certificate info.' + - macro: '{$RIBBON.INTERVAL:"get_disk"}' + value: 5m + description: 'The update interval for the script item that retrieve the disk partition data.' + - macro: '{$RIBBON.INTERVAL:"get_dsp_card"}' + value: 5m + description: 'The update interval for the script item that retrieve the DSP card data.' + - macro: '{$RIBBON.INTERVAL:"get_fan"}' + value: 15m + description: 'The update interval for the script item that retrieve the fan data.' + - macro: '{$RIBBON.INTERVAL:"get_interface"}' + value: 1m + description: 'The update interval for the script item that retrieve the interface data.' + - macro: '{$RIBBON.INTERVAL:"get_psu"}' + value: 5m + description: 'The update interval for the script item that retrieve the power supply data.' + - macro: '{$RIBBON.INTERVAL:"get_sip_server"}' + value: 5m + description: 'The update interval for the script item that retrieve the SIP server data.' + - macro: '{$RIBBON.INTERVAL:"get_system_stats"}' + value: 1m + description: 'The update interval for the script item that retrieve the system stats.' + - macro: '{$RIBBON.MEMORY.UTIL.CRIT}' + value: '90' + description: 'The threshold of memory usage in percent.' + - macro: '{$RIBBON.PASSWORD}' + type: SECRET_TEXT + description: 'Ribbon SBC user password.' + - macro: '{$RIBBON.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$RIBBON.SIP.SERVER.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of the SIP server name to be allowed in discovery.' + - macro: '{$RIBBON.SIP.SERVER.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of the SIP server name to be ignored in discovery.' + - macro: '{$RIBBON.SIP.SERVER.TRANSACTIONS.FAILED.MAX}' + value: '100' + description: 'The threshold of the SIP server failed transactions.' + - macro: '{$RIBBON.SIP.SIGNAL.GROUP.DISCOVERY.DESCR.MATCHES}' + value: '.*' + description: 'Sets the regex string of the SIP signal group description to be allowed in discovery.' + - macro: '{$RIBBON.SIP.SIGNAL.GROUP.DISCOVERY.DESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of the SIP signal group description to be ignored in discovery.' + - macro: '{$RIBBON.TEMP.BOTTOM.MAIN.BOARD.CRIT}' + value: '80' + description: 'The threshold of temperature on the bottom of the main board in degrees Celsius.' + - macro: '{$RIBBON.TEMP.CORE.CRIT}' + value: '80' + description: 'The threshold of core switch temperature in degrees Celsius.' + - macro: '{$RIBBON.TEMP.PSU.CRIT}' + value: '80' + description: 'The threshold of power supply temperature in degrees Celsius.' + - macro: '{$RIBBON.TEMP.TOP.MAIN.BOARD.CRIT}' + value: '80' + description: 'The threshold of temperature on the top of the main board in degrees Celsius.' + - macro: '{$RIBBON.TIMEOUT}' + value: 60s + description: 'The timeout threshold for the script items that retrieve data from the API.' + - macro: '{$RIBBON.URL}' + description: 'Ribbon SBC API IP.' + - macro: '{$RIBBON.USERNAME}' + description: 'Ribbon SBC username.' + dashboards: + - uuid: 2d0d73cf6b2e4779a20cbcceede080ad + name: 'Ribbon: Overview' + pages: + - name: 'Ribbon: Overview' + widgets: + - type: gauge + name: 'CPU utilization' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'CPU utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.cpu.usage + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFBF59 + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: E45959 + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: svggraph + name: 'Resource usage' + 'y': '4' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 0D47A1 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.data_set_label + value: 'CPU usage' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.cpu.usage + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: FF465C + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '5' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.memory.usage + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: INTEGER + name: righty + value: '1' + - type: STRING + name: righty_max + value: '100' + - type: STRING + name: righty_min + value: '0' + - type: item + name: 'Chassis Status' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: desc_size + value: '20' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.chassis.status + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: gauge + name: 'Memory utilization' + x: '18' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Memory utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.memory.usage + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFBF59 + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: E45959 + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: item + name: 'Chassis type' + x: '18' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: desc_size + value: '20' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.chassis.type + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Node name' + x: '36' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_size + value: '20' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.system.node.name + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Software base build number' + x: '36' + 'y': '2' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_size + value: '20' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.system.software.base.build + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: Calls + x: '36' + 'y': '4' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FDD835 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.data_set_label + value: 'Number of call attempts' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.number.call.attempts + - type: STRING + name: ds.1.color.0 + value: 03A9F4 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: STRING + name: ds.1.data_set_label + value: 'Number of call currently up' + - type: INTEGER + name: ds.1.fill + value: '5' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.number.call.currently + - type: STRING + name: ds.2.color.0 + value: F4511E + - type: INTEGER + name: ds.2.dataset_type + value: '0' + - type: STRING + name: ds.2.data_set_label + value: 'Number of call failed' + - type: INTEGER + name: ds.2.fill + value: '5' + - type: ITEM + name: ds.2.itemids.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.number.call.failed + - type: STRING + name: ds.3.color.0 + value: 66BB6A + - type: INTEGER + name: ds.3.dataset_type + value: '0' + - type: STRING + name: ds.3.data_set_label + value: 'Number of call succeeded' + - type: INTEGER + name: ds.3.fill + value: '5' + - type: ITEM + name: ds.3.itemids.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.number.call.succeeded + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '4' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: item + name: 'ASM Operating System License Type' + x: '36' + 'y': '10' + width: '36' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: desc_size + value: '20' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.chassis.asm.license.type + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Serial number' + x: '54' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_size + value: '20' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.system.serial.number + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Software base version' + x: '54' + 'y': '2' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_size + value: '20' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.system.software.base.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - name: 'Ribbon: Resources' + widgets: + - type: svggraph + name: 'Chassis temperature' + width: '36' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00C48C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.data_set_label + value: 'Chassis board bottom' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.chassis.board.bottom.temp + - type: STRING + name: ds.1.color.0 + value: 1976D2 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: STRING + name: ds.1.data_set_label + value: 'Chassis board top' + - type: INTEGER + name: ds.1.fill + value: '5' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.chassis.board.top.temp + - type: STRING + name: ds.2.color.0 + value: E45959 + - type: INTEGER + name: ds.2.dataset_type + value: '0' + - type: STRING + name: ds.2.data_set_label + value: 'Chassis core switch' + - type: INTEGER + name: ds.2.fill + value: '5' + - type: ITEM + name: ds.2.itemids.0 + value: + host: 'Ribbon SBC Edge by HTTP' + key: ribbon.chassis.core.switch.temp + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: svggraph + name: 'Interface bits received' + 'y': '4' + width: '36' + height: '4' + fields: + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: 'Interface*Bits received' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAG + - type: svggraph + name: 'Interface bits sent' + 'y': '8' + width: '36' + height: '4' + fields: + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: 'Interface*Bits sent' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAI + - type: honeycomb + name: 'Disk usage percent' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Disk*Utilization' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Disk\s\[(.*)\]","\1")}' + - type: STRING + name: reference + value: AAAAF + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFBF59 + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: E45959 + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: honeycomb + name: 'Fan speed' + x: '36' + 'y': '4' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Fan*Speed' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Fan\s\[(.*)\]","Fan: \1")}' + - type: STRING + name: reference + value: AAAAH + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: honeycomb + name: 'Interface Operational status' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Interface*Operational status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Interface\s\[(.*)\]","If: \1")}' + - type: STRING + name: reference + value: AAAAJ + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: E65660 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: 3BC97D + - type: STRING + name: thresholds.1.threshold + value: '0' + - name: 'Ribbon: DSP Card' + widgets: + - type: itemnavigator + width: '12' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'DSP Card [*]: CPU usage' + - type: STRING + name: reference + value: DAHTV + - type: gauge + name: 'CPU utilization' + x: '12' + width: '16' + height: '5' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'CPU utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: STRING + name: itemid._reference + value: DAHTV._itemid + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFBF59 + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: E45959 + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: honeycomb + name: 'Service status' + x: '28' + width: '22' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'DSP Card [*]: Service status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("DSP Card\s\[(.*)\]","Card: \1")}' + - type: STRING + name: reference + value: HPEXB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: E45959 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 00C48C + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: honeycomb + name: Available + x: '50' + width: '22' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'DSP Card [*]: Available' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("DSP Card\s\[(.*)\]","Card: \1")}' + - type: STRING + name: reference + value: DVNSR + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: E45959 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 00C48C + - type: STRING + name: thresholds.1.threshold + value: '1' + - name: 'Ribbon: PSU' + widgets: + - type: svggraph + name: 'PSU power in' + width: '36' + height: '4' + fields: + - type: STRING + name: ds.0.color + value: E45959 + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: 'PSU*Power in' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAK + - type: svggraph + name: 'PSU Voltage in' + 'y': '4' + width: '24' + height: '4' + fields: + - type: STRING + name: ds.0.color + value: E45959 + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: 'PSU*Voltage in' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAM + - type: svggraph + name: 'PSU Current in' + 'y': '8' + width: '24' + height: '4' + fields: + - type: STRING + name: ds.0.color + value: E45959 + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: 'PSU*Current in' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAP + - type: svggraph + name: 'PSU Voltage out' + x: '24' + 'y': '4' + width: '24' + height: '4' + fields: + - type: STRING + name: ds.0.color + value: 00C48C + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: 'PSU*Voltage out' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAN + - type: svggraph + name: 'PSU Current out' + x: '24' + 'y': '8' + width: '24' + height: '4' + fields: + - type: STRING + name: ds.0.color + value: 00C48C + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: 'PSU*Current out' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAQ + - type: svggraph + name: 'PSU power out' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: ds.0.color + value: 00C48C + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: 'PSU*Power out' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAL + - type: honeycomb + name: 'PSU Fan speed' + x: '48' + 'y': '4' + width: '24' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'PSU*Fan*speed' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("PSU\s\[(.*)\].*Fan(\d)","PSU: \1 Fan: \2")}' + - type: STRING + name: reference + value: AAAAO + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: svggraph + name: 'PSU Temperature' + x: '48' + 'y': '8' + width: '24' + height: '4' + fields: + - type: STRING + name: ds.0.color + value: 3d6edf + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: 'PSU*Temperature' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAR + - name: Alarms + widgets: + - type: honeycomb + width: '72' + height: '8' + fields: + - type: STRING + name: items.0 + value: 'Alarm [*]: Source: [*]: Severity' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: PLLDM + - type: STRING + name: thresholds.0.color + value: 29B6F6 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FFEE58 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FF8000 + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: STRING + name: thresholds.3.color + value: FF0000 + - type: STRING + name: thresholds.3.threshold + value: '4' + valuemaps: + - uuid: 9cd4e329a1154ebe8ca53cee6dc6c94f + name: 'Ribbon: Alarm Severity' + mappings: + - value: '0' + newvalue: INDETERMINATE + - value: '1' + newvalue: WARNING + - value: '2' + newvalue: MINOR + - value: '3' + newvalue: MAJOR + - value: '4' + newvalue: CRITICAL + - uuid: 3d340848400b4dc59da9d48bd3609bae + name: 'Ribbon: ASM Operating System License Type' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Win2008R2 + - value: '2' + newvalue: Win2012R2 + - value: '3' + newvalue: Win2019 + - uuid: b8451f08019b4b04b176acfb836de8ce + name: 'Ribbon: Bool' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: 0d4b6e2459f446f7bc51a43d484c0a88 + name: 'Ribbon: Card Location' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: LineCard1 + - value: '2' + newvalue: LineCard2 + - value: '3' + newvalue: DSPCard1 + - value: '4' + newvalue: DSPCard2 + - value: '5' + newvalue: DSPCard3 + - value: '6' + newvalue: DSPCard4 + - value: '7' + newvalue: DSPCard5 + - value: '8' + newvalue: DSPCard6 + - value: '9' + newvalue: BITS_WAN + - value: '10' + newvalue: SFP + - value: '11' + newvalue: COMExpress + - value: '12' + newvalue: Mainboard + - value: '13' + newvalue: PSU1 + - value: '14' + newvalue: PSU2 + - value: '15' + newvalue: UX1000_Telco_1 + - value: '16' + newvalue: UX1000_Telco_2 + - value: '17' + newvalue: UX1000_Telco_3 + - value: '18' + newvalue: UX1000_Telco_4 + - value: '19' + newvalue: UX1000_Telco_5 + - value: '20' + newvalue: UX1000_Telco_6 + - value: '21' + newvalue: UX1000_DS1_Telco + - value: '22' + newvalue: UX1000_DS1_WAN + - value: '23' + newvalue: MAX + - uuid: 38b59bdd6f4b4390ae853247ed21897d + name: 'Ribbon: Config interface state' + mappings: + - value: '0' + newvalue: Disabled + - value: '1' + newvalue: Enabled + - uuid: 1030653f7dad40efb62e6af9d8c75b41 + name: 'Ribbon: Disk type' + mappings: + - value: '0' + newvalue: Configuration + - value: '1' + newvalue: Logs + - value: '2' + newvalue: Temp + - value: '3' + newvalue: 'Core File' + - value: '4' + newvalue: 'ASM Module' + - value: '5' + newvalue: 'Software Update' + - value: '6' + newvalue: 'Internal Logs' + - value: '7' + newvalue: System + - value: '8' + newvalue: Others + - value: '9' + newvalue: 'Packet Capture Logs' + - uuid: f783799e74a9482db3868b8e4713101a + name: 'Ribbon: Interface speed' + mappings: + - value: '0' + newvalue: '10 Mbps' + - value: '1' + newvalue: '100 Mbps' + - value: '2' + newvalue: '1000 Mbps' + - value: '3' + newvalue: Auto + - uuid: c713bf35021b4acc87c18bf7555d4016 + name: 'Ribbon: Interface Type' + mappings: + - value: '0' + newvalue: Ethernet + - value: '1' + newvalue: VLAN + - value: '2' + newvalue: QINQ + - value: '3' + newvalue: BONDED + - value: '4' + newvalue: BRIDGE + - uuid: 23e45cd16d4c43eea1c3a085904d6d1d + name: 'Ribbon: License class' + mappings: + - value: '0' + newvalue: lt1k2kLegacy + - value: '1' + newvalue: ltLegacy + - value: '2' + newvalue: ltRibbon + - uuid: 5f1e2b3e1c5e4b2fa6f3e8b1c4d5e6f9 + name: 'Ribbon: License type' + mappings: + - value: '0' + newvalue: ltNone + - value: '1' + newvalue: ltLicense + - value: '2' + newvalue: ltBaseLiecnse + - uuid: 2e08efb9e354424499526bbff51a61e3 + name: 'Ribbon: Networking mode' + mappings: + - value: '0' + newvalue: Switch + - value: '1' + newvalue: Route + - uuid: f16e30cc4010463ebd7daeadca0962ce + name: 'Ribbon: Operational status' + mappings: + - value: '0' + newvalue: Up + - value: '1' + newvalue: Down + - uuid: d11c36edb8984267b85dd1d44e338790 + name: 'Ribbon: Service status' + mappings: + - value: '0' + newvalue: Detected + - value: '1' + newvalue: Available + - uuid: 4f3e2b3e1c5e4b2fa6f3e8b1c4d5e6f8 + name: 'Ribbon: SIP Server Type' + mappings: + - value: '0' + newvalue: eConventionalSrvr + - value: '1' + newvalue: eSrvRecordTemplateSrvr + - value: '2' + newvalue: eSrvRecordSrvr + - uuid: 27fe7c8b631943bc940d51bdd2ae3d85 + name: 'Ribbon: SIP Signaling status' + mappings: + - value: '0' + newvalue: sgsUP + - value: '1' + newvalue: sgsDOWN + - value: '2' + newvalue: sgsUpDraining + - value: '3' + newvalue: sgsUpDrained + - value: '4' + newvalue: sgsUpPeersDown + - value: '5' + newvalue: sgsNONE_EXISTS + - uuid: 83e2c8a2821a4c5da37d2675c64d1596 + name: 'Ribbon: SIP Signaling Type' + mappings: + - value: '0' + newvalue: sgISDN + - value: '1' + newvalue: sgSIP + - value: '2' + newvalue: sgCAS + - uuid: bd7bb2d61072409ca8fa5273dc7caa7f + name: 'Ribbon: System status' + mappings: + - value: '0' + newvalue: None + - value: '1' + newvalue: 'Card Idle' + - value: '2' + newvalue: 'Card Detected' + - value: '3' + newvalue: 'Card Activating' + - value: '4' + newvalue: 'Card Activated' + - value: '5' + newvalue: 'Card Remove Requested' + - value: '6' + newvalue: 'Card Removing' + - value: '7' + newvalue: 'Card Removed' + - value: '8' + newvalue: 'Card Downloading' + - value: '9' + newvalue: 'Card Failed' + - value: '10' + newvalue: 'Card Disabled Long Loop' + - value: '11' + newvalue: MAX diff --git a/Ribbon_SBC_SWe_CE_by_HTTP.yaml b/Ribbon_SBC_SWe_CE_by_HTTP.yaml new file mode 100644 index 0000000..cf2d7b9 --- /dev/null +++ b/Ribbon_SBC_SWe_CE_by_HTTP.yaml @@ -0,0 +1,2415 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 682ac14a5d294f4790ac8411ab6c33bf + template: 'Ribbon SBC SWe CE by HTTP' + name: 'Ribbon SBC SWe CE by HTTP' + description: | + The Ribbon SBC Software Edition (SBC SWe) provides the same feature set as the award-winning SBC 5400 and SBC 7000 appliance, without requiring dedicated hardware. + This gives enterprises the flexibility to deploy SBC functionality in a variety of environments – in their own data centers, on private cloud infrastructure, or in a public cloud. + + This template is designed for the effortless deployment of Ribbon SBC SWe Core monitoring and doesn't require any external scripts. + + The template can be used in discovery as well as manually linked to a host. To use this template manually linked to a host, attach it to the host and manually set the value of the `{$RIBBON.CE.NAME}` macro. + + More details can be found in the official documentation: + - REST API Reference: https://publicdoc.rbbn.com/spaces/SBXCONFAPIDOC/pages/360972436/RESTCONF+API+Reference+Guide + - REST API User Guide: https://publicdoc.rbbn.com/spaces/SBXCONFAPIDOC/pages/444760643/RESTCONF+API+User+Guide + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 53fe44969b1f46c0a5e42e781faa755c + name: 'Application uptime' + type: DEPENDENT + key: ribbon.server.application.uptime + delay: '0' + units: uptime + description: 'Indicates the application uptime on the server in days/hours/minutes/seconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverStatus[0].applicationUpTime' + - type: JAVASCRIPT + parameters: + - | + const data = value; + var days = 0, hours = 0, minutes = 0, seconds = 0; + + const daysMatch = data.match(/(\d+)\s+Days?/i); + + if (daysMatch) { + days = parseInt(daysMatch[1], 10); + data = data.replace(daysMatch[0], "").trim(); + } + + const timeMatch = data.match(/(\d+):(\d+):(\d+)/); + + if (!timeMatch) { + throw "Unknown uptime format"; + } + + hours = parseInt(timeMatch[1], 10); + minutes = parseInt(timeMatch[2], 10); + seconds = parseInt(timeMatch[3], 10); + + return days * 86400 + hours * 3600 + minutes * 60 + seconds; + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: application + triggers: + - uuid: 3bca39ea0896453481f881b98d792ca0 + expression: 'last(/Ribbon SBC SWe CE by HTTP/ribbon.server.application.uptime)<10m' + name: 'Ribbon: Application has been restarted' + event_name: 'Ribbon: Application has been restarted (uptime < 10m)' + opdata: 'Current uptime: {ITEM.LASTVALUE}' + priority: INFO + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d4e375f01fe24ee0aeeb6befc8485fc7 + name: 'Application version' + type: DEPENDENT + key: ribbon.server.application.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the application version currently running on the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverStatus[0].applicationVersion' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: application + - uuid: 8d0ee4b3eb0046baaa87d3658b2bdecd + name: 'CPU utilization' + type: DEPENDENT + key: ribbon.server.cpu.util + delay: '0' + value_type: FLOAT + units: '!%' + description: 'The average CPU utilization for this interval (in percent).' + preprocessing: + - type: JSONPATH + parameters: + - $.cpuUtilCurrentStatistics + - type: JAVASCRIPT + parameters: + - | + const data = JSON.parse(value); + + var sum = 0, + count = 0; + + for (var key in data) { + if (data.hasOwnProperty(key)) { + sum += data[key].average; + count++; + } + } + + if (count == 0) { + return 0; + } + + return sum / count; + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: cpu + triggers: + - uuid: afaba0a2b0264838a790b6c98ec1b28e + expression: 'min(/Ribbon SBC SWe CE by HTTP/ribbon.server.cpu.util,5m) > {$RIBBON.CPU.UTIL.CRIT}' + name: 'Ribbon: High cpu utilization' + event_name: 'Ribbon: High cpu utilization (>{$RIBBON.CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: f5edd11ffb28493cad8010c009ce873c + name: 'Get data' + type: SCRIPT + key: ribbon.server.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + + var Ribbon = { + params: {}, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + }, + + getRequest: function (url) { + var response, request = new HttpRequest(Ribbon.tls.options); + + if (typeof Ribbon.params.http_proxy !== 'undefined' && Ribbon.params.http_proxy !== '') { + request.setProxy(Ribbon.params.http_proxy); + }; + + request.addHeader('Content-Type: application/yang-data+json'); + request.addHeader('Authorization: Basic ' + btoa(Ribbon.params.username + ':' + Ribbon.params.password)); + + Zabbix.log(4, '[ Ribbon SBC SWe core ] Sending request: ' + url); + + response = request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC SWe core ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + filterByServerName: function (data, param_name, key_field) { + var result = {}; + + for (var key in data) { + if (typeof data[key] === 'object' && data[key] !== null && typeof data[key][param_name] !== 'undefined') { + if (data[key][param_name] === Ribbon.params.server_name) { + result[data[key][key_field]] = data[key]; + }; + } + }; + + return result; + }, + + getMetricsData: function (endpoints) { + var data = {}; + + Object.keys(endpoints).forEach(function (key) { + data[key] = Ribbon.getField(Ribbon.getRequest(endpoints[key]['url']), endpoints[key]['path']); + }); + + return data; + } + }; + + + + try { + var result = {}; + + Ribbon.setParams(JSON.parse(value)); + + var endpoints = { + 'serverStatus': { + 'url': '/restconf/data/sonusSystem:system/serverStatus=' + Ribbon.params.server_name, + 'path': 'sonusSystem:serverStatus'}, + 'memoryUtilCurrentStatistics': { + 'url': '/restconf/data/sonusSystem:system/memoryUtilCurrentStatistics=' + Ribbon.params.server_name, + 'path': 'sonusSystem:memoryUtilCurrentStatistics'}, + 'cpuUtilCurrentStatistics': { + 'url': '/restconf/data/sonusSystem:system/cpuUtilCurrentStatistics', + 'path': 'sonusSystem:cpuUtilCurrentStatistics'}, + 'hardDiskUsage': { + 'url': '/restconf/data/sonusSystem:system/hardDiskUsage', + 'path': 'sonusSystem:hardDiskUsage'}, + 'ethernetPort': { + 'url': '/restconf/data/sonusSystem:system/sonusOrcaSystem:ethernetPort', + 'path': 'sonusOrcaSystem:ethernetPort'}, + }; + + result = Ribbon.getMetricsData(endpoints); + + var ethernet_fields = [ + 'packetPortStatus', + 'mgmtPortStatus', + 'portRedundancyGroupStatus', + 'portMonitorStatus' + ] + + for (var key in ethernet_fields) { + var item = ethernet_fields[key]; + if (typeof result[item] === 'object' || typeof result[item] !== null) { + result[item] = Ribbon.filterByServerName(result['ethernetPort'][item], 'ceName', 'portName'); + }; + }; + + result['cpuUtilCurrentStatistics'] = Ribbon.filterByServerName(result['cpuUtilCurrentStatistics'], 'ceName', 'cpu'); + result['hardDiskUsage'] = Ribbon.filterByServerName(result['hardDiskUsage'], 'serverName', 'partition'); + delete result['ethernetPort']; + + return JSON.stringify(result); + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC SWe core ] ERROR: ' + error); + error_msg = 'Failed to get data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets the server information.' + timeout: '30' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: server_name + value: '{$RIBBON.CE.NAME}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC SWe CE"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 48536769afc946aca214d49e7f2bebda + name: 'Get data check' + type: DEPENDENT + key: ribbon.server.data.get.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks that the Ribbon metric data has been received correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: status + triggers: + - uuid: b71110508de943589a1576596d3927ac + expression: 'length(last(/Ribbon SBC SWe CE by HTTP/ribbon.server.data.get.check))>0' + name: 'Ribbon: Failed to get metric data' + event_name: 'Ribbon: Failed to get API metrics for the Ribbon SBC' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get API metrics from the Ribbon SBC.' + tags: + - tag: scope + value: availability + - uuid: 92ceb828307d4c7998ecf2840eee9fb4 + name: 'Server hardware sub type' + type: DEPENDENT + key: ribbon.server.hw.sub.type + delay: '0' + value_type: CHAR + trends: '0' + description: 'Identifies the type of server module the indexed slot has been configured to accept. Server modules other than this type are rejected by the System Manager.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverStatus[0].hwSubType' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: system + - uuid: 7688b74edba64cc6a85a153fd9aad473 + name: 'Server hardware type' + type: DEPENDENT + key: ribbon.server.hw.type + delay: '0' + value_type: CHAR + trends: '0' + description: 'Identifies the type of server module the indexed slot has been configured to accept. Server modules other than this type are rejected by the System Manager.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverStatus[0].hwType' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: system + - uuid: 04ed02cc396c4cad82712d9aab24a6fc + name: 'Memory utilization' + type: DEPENDENT + key: ribbon.server.memory.util + delay: '0' + units: '!%' + description: 'The average memory utilization for this interval (in percent).' + preprocessing: + - type: JSONPATH + parameters: + - '$.memoryUtilCurrentStatistics[0].average' + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: memory + triggers: + - uuid: 60da0d3d45a3463aace6239ccf0ed3bf + expression: 'min(/Ribbon SBC SWe CE by HTTP/ribbon.server.memory.util,5m) > {$RIBBON.MEMORY.UTIL.CRIT}' + name: 'Ribbon: High memory utilization' + event_name: 'Ribbon: High memory utilization (>{$RIBBON.MEMORY.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: 232bfd9f0553416da0569cd1978fc7a2 + name: 'Server name' + type: DEPENDENT + key: ribbon.server.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'Identifies the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverStatus[0].name' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: system + - uuid: ae5da694c3c24639aa0605fe93e5efdf + name: 'Platform version' + type: DEPENDENT + key: ribbon.server.platform.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the platform version currently running on the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverStatus[0].platformVersion' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: application + - uuid: fb6cde6215d1496c94bd9be990527529 + name: Role + type: DEPENDENT + key: ribbon.server.role + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the redundancy role of the server (for management entities).' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverStatus[0].mgmtRedundancyRole' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: application + triggers: + - uuid: 943cab49e4bc4f4e96f82e8264fa49ac + expression: 'last(/Ribbon SBC SWe CE by HTTP/ribbon.server.role)<>last(/Ribbon SBC SWe CE by HTTP/ribbon.server.role,#2)' + name: 'Ribbon: Role has been changed' + event_name: 'Ribbon: Role has been changed' + opdata: 'Current role: {ITEM.LASTVALUE}' + priority: INFO + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 31ee06ce57e8451fa5c98f7185ee6b3d + name: 'Serial number' + type: DEPENDENT + key: ribbon.server.serial.number + delay: '0' + value_type: CHAR + trends: '0' + description: 'Identifies the serial number of the server module. This is the serial number assigned to the server module during manufacturing.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverStatus[0].serialNum' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: system + - uuid: 6279c6ef1262473494342fde1c10e444 + name: 'Swap utilization' + type: DEPENDENT + key: ribbon.server.swap.util + delay: '0' + units: '!%' + description: 'The average swap utilization for this interval (in percent).' + preprocessing: + - type: JSONPATH + parameters: + - '$.memoryUtilCurrentStatistics[0].averageSwap' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: memory + triggers: + - uuid: 637a10aaa46e454abf78a8841efb75cf + expression: 'min(/Ribbon SBC SWe CE by HTTP/ribbon.server.swap.util,5m) > {$RIBBON.SWAP.UTIL.CRIT}' + name: 'Ribbon: High swap utilization' + event_name: 'Ribbon: High swap utilization (>{$RIBBON.SWAP.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: 2a2a30ae5d744bf19d2b2104062b8fe6 + name: 'Sync status' + type: DEPENDENT + key: ribbon.server.sync.status + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the inter-CE data synchronization state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverStatus[0].syncStatus' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: system + triggers: + - uuid: 58c3e53e7b3c4f61ab33c8230681589c + expression: 'last(/Ribbon SBC SWe CE by HTTP/ribbon.server.sync.status)<>"syncCompleted"' + name: 'Ribbon: Synchronization status in not complete' + event_name: 'Ribbon: Sync status is not "syncCompleted"' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: e714e798cf4e4301b55525ba50f2e363 + name: Uptime + type: DEPENDENT + key: ribbon.server.uptime + delay: '0' + units: uptime + description: 'Indicates the server module uptime in days/hours/minutes/seconds.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverStatus[0].upTime' + - type: JAVASCRIPT + parameters: + - | + const data = value; + var days = 0, hours = 0, minutes = 0, seconds = 0; + + const daysMatch = data.match(/(\d+)\s+Days?/i); + + if (daysMatch) { + days = parseInt(daysMatch[1], 10); + data = data.replace(daysMatch[0], "").trim(); + } + + const timeMatch = data.match(/(\d+):(\d+):(\d+)/); + + if (!timeMatch) { + throw "Unknown uptime format"; + } + + hours = parseInt(timeMatch[1], 10); + minutes = parseInt(timeMatch[2], 10); + seconds = parseInt(timeMatch[3], 10); + + return days * 86400 + hours * 3600 + minutes * 60 + seconds; + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: system + triggers: + - uuid: f8efa94e91304890bdbf6bc25637efca + expression: 'last(/Ribbon SBC SWe CE by HTTP/ribbon.server.uptime)<10m' + name: 'Ribbon: Server has been restarted' + event_name: 'Ribbon: Server has been restarted (uptime < 10m)' + opdata: 'Current uptime: {ITEM.LASTVALUE}' + priority: INFO + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: d886ff2a43f34450bc88de7d4956a226 + name: 'CPU discovery' + type: DEPENDENT + key: ribbon.cpu.discovery + delay: '0' + description: 'Used for the discovery of CPU.' + item_prototypes: + - uuid: 539d896b890e40fc80140e485c66c9e7 + name: 'CPU [{#CPU.NUM}]: Utilization' + type: DEPENDENT + key: 'ribbon.sync.cpu.util[{#CPU.NUM}]' + delay: '0' + units: '!%' + description: 'The average CPU utilization for this interval (in percent).' + preprocessing: + - type: JSONPATH + parameters: + - '$.cpuUtilCurrentStatistics.["{#CPU.NUM}"].average' + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: cpu + - tag: cpu + value: '{#CPU.NUM}' + master_item: + key: ribbon.server.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value)["cpuUtilCurrentStatistics"]; + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#CPU.NUM}": json_data[entity]["cpu"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 7237f40c48c34b7f99d9e4af7e59f06c + name: 'FS discovery' + type: DEPENDENT + key: ribbon.fs.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FS}' + value: '{$RIBBON.FS.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#FS}' + value: '{$RIBBON.FS.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of disks.' + item_prototypes: + - uuid: 63e10a5cfd714ef4889a19b9bd009160 + name: 'FS [{#FS}]: Free' + type: DEPENDENT + key: 'ribbon.fs.free[{#FS}]' + delay: '0' + units: B + description: 'Indicates free hard disk space.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardDiskUsage.["{#FS}"].freeDiskSpace' + - type: TRIM + parameters: + - KBytes + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: storage + - tag: fs + value: '{#FS}' + - uuid: ae352dc364764946ba31c76e76ebb659 + name: 'FS [{#FS}]: Role' + type: DEPENDENT + key: 'ribbon.fs.role[{#FS}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Role of the server for the indicated partition.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardDiskUsage.["{#FS}"].role' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: storage + - tag: fs + value: '{#FS}' + - uuid: 3b2f0c9499e9457a9198fa04c757c8ba + name: 'FS [{#FS}]: Sync status' + type: DEPENDENT + key: 'ribbon.fs.sync.status[{#FS}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Partition''s synchronization status with the peer server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardDiskUsage.["{#FS}"].syncStatus' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: storage + - tag: fs + value: '{#FS}' + - uuid: 3b67f185d6e446868178259a0d5a5168 + name: 'FS [{#FS}]: Total size' + type: DEPENDENT + key: 'ribbon.fs.total[{#FS}]' + delay: '0' + units: B + description: 'Capacity of the disk.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardDiskUsage.["{#FS}"].totalDiskSpace' + - type: TRIM + parameters: + - KBytes + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: storage + - tag: fs + value: '{#FS}' + - uuid: 0ed4aa224e4b4182ac0c5383b7d583d9 + name: 'FS [{#FS}]: Utilization' + type: DEPENDENT + key: 'ribbon.fs.util[{#FS}]' + delay: '0' + units: '!%' + description: 'Indicates used hard disk space.' + preprocessing: + - type: JSONPATH + parameters: + - '$.hardDiskUsage.["{#FS}"].usedDiskSpace' + - type: TRIM + parameters: + - '%' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: storage + - tag: fs + value: '{#FS}' + trigger_prototypes: + - uuid: ac708d850c12469da39cd8765d1277de + expression: 'min(/Ribbon SBC SWe CE by HTTP/ribbon.fs.util[{#FS}],5m) > {$RIBBON.DISK.UTIL.CRIT}' + name: 'Ribbon: FS [{#FS}]: High disk space utilization' + event_name: 'Ribbon: FS [{#FS}]: High disk space utilization (>{$RIBBON.DISK.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'Disk space utilization exceeds the critical threshold.' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 796eb031342a4fd88fb1a5d08d9018ec + name: 'FS [{#FS}]: Utilization' + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Ribbon SBC SWe CE by HTTP' + key: 'ribbon.fs.util[{#FS}]' + master_item: + key: ribbon.server.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value)["hardDiskUsage"]; + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#FS}": json_data[entity]["partition"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 76524552160645cc83eb8d238d2dbb7b + name: 'Management port discovery' + type: DEPENDENT + key: ribbon.mgmt.port.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#PORT}' + value: '{$RIBBON.MANAGEMENT.PORT.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#PORT}' + value: '{$RIBBON.MANAGEMENT.PORT.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of management ports.' + item_prototypes: + - uuid: a46e3f7fb43b499189cdac13701c6203 + name: 'Management port [{#PORT}]: Duplex mode' + type: DEPENDENT + key: 'ribbon.mgmt.port.duplex.mode[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The negotiated interface duplex mode.' + preprocessing: + - type: JSONPATH + parameters: + - '$.mgmtPortStatus.["{#PORT}"].duplexMode' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: mgmt-port + - tag: component + value: network + - tag: mgmt-port + value: '{#PORT}' + - uuid: aab28dc7b149479ca4061527a3ae580a + name: 'Management port [{#PORT}]: Link state' + type: DEPENDENT + key: 'ribbon.mgmt.port.link.state[{#PORT}]' + delay: '0' + description: | + The state of the interface. + Possible values: + 0 - null + 1 - admnDisabled + 2 - admnEnabledPortDown + 3 - admnEnabledPortUp + 4 - admnDisabledNoLicense + 5 - admnEnabledPortDownInvalidSfpWrongSpeed + 6 - admnEnabledPortDownInvalidSfpNonSonus + 7 - unknown + valuemap: + name: 'Ribbon: Port link state' + preprocessing: + - type: JSONPATH + parameters: + - '$.mgmtPortStatus.["{#PORT}"].linkState' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'null', + 'admnDisabled', + 'admnEnabledPortDown', + 'admnEnabledPortUp', + 'admnDisabledNoLicense', + 'admnEnabledPortDownInvalidSfpWrongSpeed', + 'admnEnabledPortDownInvalidSfpNonSonus' + ].indexOf(value); + + return idx !== -1 ? idx : 7; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: mgmt-port + - tag: component + value: network + - tag: mgmt-port + value: '{#PORT}' + trigger_prototypes: + - uuid: 6722ff0530a2403baf02a64ce197e86d + expression: 'last(/Ribbon SBC SWe CE by HTTP/ribbon.mgmt.port.link.state[{#PORT}])=2 or last(/Ribbon SBC SWe CE by HTTP/ribbon.mgmt.port.link.state[{#PORT}])=5 or last(/Ribbon SBC SWe CE by HTTP/ribbon.mgmt.port.link.state[{#PORT}])=6' + name: 'Ribbon: Management port [{#PORT}]: Link state is down' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The management port link state is `down`.' + tags: + - tag: scope + value: availability + - uuid: e8859ed1e9a04b46b7a646d0a9111366 + name: 'Management port [{#PORT}]: RX bandwidth' + type: DEPENDENT + key: 'ribbon.mgmt.port.rx.bandwidth[{#PORT}]' + delay: '0' + units: bps + description: 'Actual Rx bandwidth in use on this port, bytes/sec.' + preprocessing: + - type: JSONPATH + parameters: + - '$.mgmtPortStatus.["{#PORT}"].rxActualBandwidth' + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: mgmt-port + - tag: component + value: network + - tag: mgmt-port + value: '{#PORT}' + - uuid: d530914bee3645e8b26a85703a78c22d + name: 'Management port [{#PORT}]: Negotiated speed' + type: DEPENDENT + key: 'ribbon.mgmt.port.speed[{#PORT}]' + delay: '0' + description: | + The negotiated interface speed. When statistics are generated for EMS, `negotiatedSpeed` will be displayed as an integer value. + Possible values: + 0 - speed10Mbps + 1 - speed100Mbps + 2 - speed1000Mbps + 3 - speed10000Mbps + 4 - unknown + valuemap: + name: 'Ribbon: Port negotiated speed' + preprocessing: + - type: JSONPATH + parameters: + - '$.mgmtPortStatus.["{#PORT}"].negotiatedSpeed' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'speed10Mbps', + 'speed100Mbps', + 'speed1000Mbps', + 'speed10000Mbps', + 'unknown' + ].indexOf(value); + + return idx !== -1 ? idx : 4; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: mgmt-port + - tag: component + value: network + - tag: mgmt-port + value: '{#PORT}' + - uuid: f20e8343c3234ae8b0a5334e3b19329f + name: 'Management port [{#PORT}]: TX bandwidth' + type: DEPENDENT + key: 'ribbon.mgmt.port.tx.bandwidth[{#PORT}]' + delay: '0' + units: bps + description: 'Actual Tx bandwidth in use on this port, bytes/sec.' + preprocessing: + - type: JSONPATH + parameters: + - '$.mgmtPortStatus.["{#PORT}"].txActualBandwidth' + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: mgmt-port + - tag: component + value: network + - tag: mgmt-port + value: '{#PORT}' + graph_prototypes: + - uuid: c5e51691c6664520812ab3019ed51a68 + name: 'Management port [{#PORT}]: Usage' + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Ribbon SBC SWe CE by HTTP' + key: 'ribbon.mgmt.port.rx.bandwidth[{#PORT}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FFD54F + yaxisside: RIGHT + item: + host: 'Ribbon SBC SWe CE by HTTP' + key: 'ribbon.mgmt.port.tx.bandwidth[{#PORT}]' + master_item: + key: ribbon.server.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value)['mgmtPortStatus']; + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#PORT}": json_data[entity]["portName"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 17140ceb74cb41179e4162a3d630b877 + name: 'Port monitor discovery' + type: DEPENDENT + key: ribbon.monitor.port.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#PORT}' + value: '{$RIBBON.MONITOR.PORT.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#PORT}' + value: '{$RIBBON.MONITOR.PORT.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of port monitors.' + item_prototypes: + - uuid: a58d013e850f43b6b3b17f996028ce2b + name: 'Port monitor [{#PORT}]: Failures' + type: DEPENDENT + key: 'ribbon.monitor.port.failures[{#PORT}]' + delay: '0' + description: 'The current number of failures on this port monitor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portMonitorStatus.["{#PORT}"].failures' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-monitor + - tag: port-monitor + value: '{#PORT}' + - uuid: cfdab9b29ee14646adeeff87544bfa3d + name: 'Port monitor [{#PORT}]: Fault state' + type: DEPENDENT + key: 'ribbon.monitor.port.fault.state[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The fault state of the physical port.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portMonitorStatus.["{#PORT}"].faultState' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-monitor + - tag: port-monitor + value: '{#PORT}' + - uuid: d5b86019dfa34f4083b172396e422d56 + name: 'Port monitor [{#PORT}]: Group name' + type: DEPENDENT + key: 'ribbon.monitor.port.group.name[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of this port group.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portMonitorStatus.["{#PORT}"].prgName' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-monitor + - tag: port-monitor + value: '{#PORT}' + - uuid: 0dcb5ae132b746ff9a4aeb65db577841 + name: 'Port monitor [{#PORT}]: Link failures' + type: DEPENDENT + key: 'ribbon.monitor.port.link.failures[{#PORT}]' + delay: '0' + description: 'The current number of link failures on this port monitor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portMonitorStatus.["{#PORT}"].linkFailures' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-monitor + - tag: port-monitor + value: '{#PORT}' + - uuid: e184efcae96748678a67135000dd51e1 + name: 'Port monitor [{#PORT}]: Name' + type: DEPENDENT + key: 'ribbon.monitor.port.name[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of this port monitor.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portMonitorStatus.["{#PORT}"].pmName' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-monitor + - tag: port-monitor + value: '{#PORT}' + - uuid: 77f9fab4056546aa912ec7fadd80cb5e + name: 'Port monitor [{#PORT}]: Physical name' + type: DEPENDENT + key: 'ribbon.monitor.port.physical.name[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the physical port.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portMonitorStatus.["{#PORT}"].portName' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-monitor + - tag: port-monitor + value: '{#PORT}' + - uuid: 556ac689e8294d449a1694f131654406 + name: 'Port monitor [{#PORT}]: Role' + type: DEPENDENT + key: 'ribbon.monitor.port.role[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The role of the physical port.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portMonitorStatus.["{#PORT}"].role' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-monitor + - tag: port-monitor + value: '{#PORT}' + - uuid: 803fc65d7a134ef1ba577eec3f6a4373 + name: 'Port monitor [{#PORT}]: State' + type: DEPENDENT + key: 'ribbon.monitor.port.state[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The link state of the physical port.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portMonitorStatus.["{#PORT}"].state' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-monitor + - tag: port-monitor + value: '{#PORT}' + trigger_prototypes: + - uuid: 155d1f5ee1af400e8ba07cc03eb49e4a + expression: 'last(/Ribbon SBC SWe CE by HTTP/ribbon.monitor.port.state[{#PORT}])<>"up"' + name: 'Ribbon: Port monitor [{#PORT}]: State is not "up"' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The port monitor state is not `up`.' + tags: + - tag: scope + value: availability + master_item: + key: ribbon.server.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value)['portMonitorStatus']; + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#PORT}": json_data[entity]["pmName"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 541e87264085447da3c82118f81a257a + name: 'Packet port discovery' + type: DEPENDENT + key: ribbon.packet.port.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#PORT}' + value: '{$RIBBON.PACKET.PORT.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#PORT}' + value: '{$RIBBON.PACKET.PORT.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of packet ports.' + item_prototypes: + - uuid: 71872e6ceec74c1e8b88882a16ff5501 + name: 'Packet port [{#PORT}]: Link state' + type: DEPENDENT + key: 'ribbon.packet.port.link.state[{#PORT}]' + delay: '0' + description: | + The state of the interface. When statistics are generated for EMS, `linkState` will be displayed as an integer value. + Possible values: + 0 - null + 1 - admnDisabled + 2 - admnEnabledPortDown + 3 - admnEnabledPortUp + 4 - admnDisabledNoLicense + 5 - admnEnabledPortDownInvalidSfpWrongSpeed + 6 - admnEnabledPortDownInvalidSfpNonSonus + 7 - unknown + valuemap: + name: 'Ribbon: Port link state' + preprocessing: + - type: JSONPATH + parameters: + - '$.packetPortStatus.["{#PORT}"].linkState' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'null', + 'admnDisabled', + 'admnEnabledPortDown', + 'admnEnabledPortUp', + 'admnDisabledNoLicense', + 'admnEnabledPortDownInvalidSfpWrongSpeed', + 'admnEnabledPortDownInvalidSfpNonSonus' + ].indexOf(value); + + return idx !== -1 ? idx : 7; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: packet-port + - tag: packet-port + value: '{#PORT}' + trigger_prototypes: + - uuid: c43c708c4709464ca16b5e8840e0ebab + expression: 'last(/Ribbon SBC SWe CE by HTTP/ribbon.packet.port.link.state[{#PORT}])=2 or last(/Ribbon SBC SWe CE by HTTP/ribbon.packet.port.link.state[{#PORT}])=5 or last(/Ribbon SBC SWe CE by HTTP/ribbon.packet.port.link.state[{#PORT}])=6' + name: 'Ribbon: Packet port [{#PORT}]: Link state is down' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The packet port link state is `down`.' + tags: + - tag: scope + value: availability + - uuid: 8ccfc427d4d64aef886cb1e05c30ce8c + name: 'Packet port [{#PORT}]: RX bandwidth' + type: DEPENDENT + key: 'ribbon.packet.port.rx.bandwidth[{#PORT}]' + delay: '0' + units: bps + description: 'Actual Rx bandwidth in use on this port, bytes/sec.' + preprocessing: + - type: JSONPATH + parameters: + - '$.packetPortStatus.["{#PORT}"].rxActualBandwidth' + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: packet-port + - tag: packet-port + value: '{#PORT}' + - uuid: b5e0ec12b3d24e53a416efcd00f5820f + name: 'Packet port [{#PORT}]: Negotiated speed' + type: DEPENDENT + key: 'ribbon.packet.port.speed[{#PORT}]' + delay: '0' + description: | + The interface speed. Packet port speed is not negotiable. When statistics are generated for EMS, `negotiatedSpeed` will be displayed as an integer value. + Possible values: + 0 - speed10Mbps + 1 - speed100Mbps + 2 - speed1000Mbps + 3 - speed10000Mbps + 4 - unknown + valuemap: + name: 'Ribbon: Port negotiated speed' + preprocessing: + - type: JSONPATH + parameters: + - '$.packetPortStatus.["{#PORT}"].negotiatedSpeed' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'speed10Mbps', + 'speed100Mbps', + 'speed1000Mbps', + 'speed10000Mbps', + 'unknown' + ].indexOf(value); + + return idx !== -1 ? idx : 4; + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: packet-port + - tag: packet-port + value: '{#PORT}' + - uuid: 9b01ae59d2c94386ba69bdcb42aa959e + name: 'Packet port [{#PORT}]: TX bandwidth' + type: DEPENDENT + key: 'ribbon.packet.port.tx.bandwidth[{#PORT}]' + delay: '0' + units: bps + description: 'Actual Tx bandwidth in use on this port, bytes/sec.' + preprocessing: + - type: JSONPATH + parameters: + - '$.packetPortStatus.["{#PORT}"].txActualBandwidth' + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: packet-port + - tag: packet-port + value: '{#PORT}' + - uuid: 058cbca2f7264418a627a373b9388ccf + name: 'Packet port [{#PORT}]: Utilization' + type: DEPENDENT + key: 'ribbon.packet.port.util[{#PORT}]' + delay: '0' + units: '!%' + description: 'Percentage of maximum bandwidth allocated on this port.' + preprocessing: + - type: JSONPATH + parameters: + - '$.packetPortStatus.["{#PORT}"].bandwidthUsage' + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: packet-port + - tag: packet-port + value: '{#PORT}' + trigger_prototypes: + - uuid: 75a8459f83074875bf9221ed1f1b2d31 + expression: 'min(/Ribbon SBC SWe CE by HTTP/ribbon.packet.port.util[{#PORT}],5m) > {$RIBBON.PORT.UTIL.CRIT}' + name: 'Ribbon: Packet port [{#PORT}]: High port utilization' + event_name: 'Ribbon: Packet port [{#PORT}]: High port utilization (>{$RIBBON.PORT.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'Packet port utilization exceeds the critical threshold.' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 7dea3cb8675a4f0b9afe14c80d2aa7b7 + name: 'Packet port [{#PORT}]: usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Ribbon SBC SWe CE by HTTP' + key: 'ribbon.packet.port.rx.bandwidth[{#PORT}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: FFD54F + yaxisside: RIGHT + item: + host: 'Ribbon SBC SWe CE by HTTP' + key: 'ribbon.packet.port.tx.bandwidth[{#PORT}]' + - uuid: 0e0e6ad3b7f34a4fbab81f268c24c54f + name: 'Packet port [{#PORT}]: Utilization' + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Ribbon SBC SWe CE by HTTP' + key: 'ribbon.packet.port.util[{#PORT}]' + master_item: + key: ribbon.server.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value)['packetPortStatus']; + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#PORT}": json_data[entity]["portName"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5ab71e8e5c62406d8bdba0aa378884fd + name: 'Port redundancy group discovery' + type: DEPENDENT + key: ribbon.redundancy.port.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#PORT}' + value: '{$RIBBON.REDUNDANCY.PORT.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#PORT}' + value: '{$RIBBON.REDUNDANCY.PORT.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of port redundancy groups.' + item_prototypes: + - uuid: 2977345b2dea4b7e9ab7a3ad6a8dfcfa + name: 'Port redundancy group [{#PORT}]: Failure count' + type: DEPENDENT + key: 'ribbon.redundancy.port.failure.count[{#PORT}]' + delay: '0' + description: 'The current number of port monitors within this port redundancy group that have declared themselves failed.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portRedundancyGroupStatus.["{#PORT}"].failureCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-redundancy-group + - tag: port-redundancy-group + value: '{#PORT}' + - uuid: 584cd50cb78e4e8095b6bc9ddf0a2261 + name: 'Port redundancy group [{#PORT}]: Group name' + type: DEPENDENT + key: 'ribbon.redundancy.port.group.name[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of this port redundancy group.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portRedundancyGroupStatus.["{#PORT}"].prgName' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-redundancy-group + - tag: port-redundancy-group + value: '{#PORT}' + - uuid: f270fe8558044b56aa9720519163d3cb + name: 'Port redundancy group [{#PORT}]: Redundancy mode' + type: DEPENDENT + key: 'ribbon.redundancy.port.mode[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The VM redundancy mode of the CE.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portRedundancyGroupStatus.["{#PORT}"].vmRedundancyMode' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-redundancy-group + - tag: port-redundancy-group + value: '{#PORT}' + - uuid: 83c514742beb4fe3a49ab1f6f743d267 + name: 'Port redundancy group [{#PORT}]: Port name' + type: DEPENDENT + key: 'ribbon.redundancy.port.name[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The name of the physical/logical port.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portRedundancyGroupStatus.["{#PORT}"].portName' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-redundancy-group + - tag: port-redundancy-group + value: '{#PORT}' + - uuid: d99e6938b3a04771b68d14f7e976bfbb + name: 'Port redundancy group [{#PORT}]: State' + type: DEPENDENT + key: 'ribbon.redundancy.port.state[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The state of the logical port.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portRedundancyGroupStatus.["{#PORT}"].state' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-redundancy-group + - tag: port-redundancy-group + value: '{#PORT}' + trigger_prototypes: + - uuid: 2c00a80067284cb8a961e566248e5e81 + expression: 'last(/Ribbon SBC SWe CE by HTTP/ribbon.redundancy.port.state[{#PORT}])<>"up"' + name: 'Ribbon: Port redundancy group [{#PORT}]: State is not "up"' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The port redundancy group state is not `up`.' + tags: + - tag: scope + value: availability + - uuid: d64a16c2a12f4819a2fc66ff6cbe24f6 + name: 'Port redundancy group [{#PORT}]: Type' + type: DEPENDENT + key: 'ribbon.redundancy.port.type[{#PORT}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Interface type of this port redundancy group.' + preprocessing: + - type: JSONPATH + parameters: + - '$.portRedundancyGroupStatus.["{#PORT}"].interfaceType' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.server.data.get + tags: + - tag: component + value: network + - tag: component + value: port-redundancy-group + - tag: port-redundancy-group + value: '{#PORT}' + master_item: + key: ribbon.server.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value)['portRedundancyGroupStatus']; + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#PORT}": json_data[entity]["portName"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: subclass + value: communication + - tag: target + value: ribbon + - tag: target + value: ribbon-swe-ce + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Ribbon SBC SWe CE", e.g. {$HTTP.TLS.VERIFY:"Ribbon SBC SWe CE"}.' + - macro: '{$RIBBON.CE.NAME}' + description: 'Ribbon SBC CE name.' + - macro: '{$RIBBON.CPU.UTIL.CRIT}' + value: '90' + description: 'The threshold of CPU usage in percent.' + - macro: '{$RIBBON.DISK.UTIL.CRIT}' + value: '90' + description: 'The threshold of disk usage in percent.' + - macro: '{$RIBBON.FS.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of file system names to be allowed in discovery.' + - macro: '{$RIBBON.FS.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of file system names to be ignored in discovery.' + - macro: '{$RIBBON.MANAGEMENT.PORT.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of management port names to be allowed in discovery.' + - macro: '{$RIBBON.MANAGEMENT.PORT.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of management port names to be ignored in discovery.' + - macro: '{$RIBBON.MEMORY.UTIL.CRIT}' + value: '90' + description: 'The threshold of memory usage in percent.' + - macro: '{$RIBBON.MONITOR.PORT.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of monitor port names to be allowed in discovery.' + - macro: '{$RIBBON.MONITOR.PORT.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of monitor port names to be ignored in discovery.' + - macro: '{$RIBBON.PACKET.PORT.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of packet port names to be allowed in discovery.' + - macro: '{$RIBBON.PACKET.PORT.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of packet port names to be ignored in discovery.' + - macro: '{$RIBBON.PASSWORD}' + type: SECRET_TEXT + description: 'Ribbon SBC user password.' + - macro: '{$RIBBON.PORT.UTIL.CRIT}' + value: '90' + description: 'The threshold of packet port usage in percent.' + - macro: '{$RIBBON.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$RIBBON.REDUNDANCY.PORT.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of port redundancy group names to be allowed in discovery.' + - macro: '{$RIBBON.REDUNDANCY.PORT.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of port redundancy group names to be ignored in discovery.' + - macro: '{$RIBBON.SWAP.UTIL.CRIT}' + value: '90' + description: 'The threshold of swap usage in percent.' + - macro: '{$RIBBON.URL}' + description: 'Ribbon SBC API IP.' + - macro: '{$RIBBON.USERNAME}' + description: 'Ribbon SBC username.' + dashboards: + - uuid: 35c2fd2886fe4c2889d2cc25ff577d45 + name: 'Ribbon SWe CE overview' + pages: + - name: 'Ribbon: Overview' + widgets: + - type: gauge + name: 'CPU utilization' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'CPU utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.cpu.util + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 81C784 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: honeycomb + name: 'Filesystem util' + 'y': '4' + width: '36' + height: '8' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: 'FS*Utilization' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("FS.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: 81C784 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 8BC34A + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF8F00 + - type: STRING + name: thresholds.2.threshold + value: '80' + - type: STRING + name: thresholds.3.color + value: E65660 + - type: STRING + name: thresholds.3.threshold + value: '90' + - type: gauge + name: 'Memory utilization' + x: '18' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Memory utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.memory.util + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 81C784 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: gauge + name: 'Swap utilization' + x: '36' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Swap utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.swap.util + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 81C784 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: item + name: 'Server name' + x: '36' + 'y': '4' + width: '36' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.name + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Serial number' + x: '36' + 'y': '6' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.serial.number + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Platform version' + x: '36' + 'y': '8' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.platform.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Application version' + x: '36' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.application.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Role + x: '54' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.role + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Application uptime' + x: '54' + 'y': '2' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.application.uptime + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Server hardware type' + x: '54' + 'y': '6' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.hw.type + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Server hardware sub type' + x: '54' + 'y': '8' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.hw.sub.type + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Sync status' + x: '54' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.sync.status + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - name: 'Ribbon: Ports' + widgets: + - type: honeycomb + name: 'Packet port link state' + width: '36' + height: '6' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: 'Packet port*Link state' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Packet port.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAABA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Management port link state' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: 'Management port*Link state' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Management port.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAABC + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: 'Packet port utilization' + x: '36' + width: '36' + height: '6' + fields: + - type: INTEGER + name: ds.0.fill + value: '5' + - type: STRING + name: ds.0.items.0 + value: 'Packet port*Utilization' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABB + - type: honeycomb + name: 'Port redundancy group state' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: 'Port redundancy group*State' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Port redundancy group.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAABD + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + valuemaps: + - uuid: 6925e3c1ff3c43409e744cd05b6a813c + name: 'Ribbon: Port link state' + mappings: + - value: '0' + newvalue: 'null' + - value: '1' + newvalue: admnDisabled + - value: '2' + newvalue: admnEnabledPortDown + - value: '3' + newvalue: admnEnabledPortUp + - value: '4' + newvalue: admnDisabledNoLicense + - value: '5' + newvalue: admnEnabledPortDownInvalidSfpWrongSpeed + - value: '6' + newvalue: admnEnabledPortDownInvalidSfpNonSonus + - value: '7' + newvalue: unknown + - uuid: 8ea3cb267eb645168aee7d6706a65007 + name: 'Ribbon: Port negotiated speed' + mappings: + - value: '0' + newvalue: speed10Mbps + - value: '1' + newvalue: speed100Mbps + - value: '2' + newvalue: speed1000Mbps + - value: '3' + newvalue: speed10000Mbps + - value: '4' + newvalue: unknown + graphs: + - uuid: cf37627bd3854f14a6ae5b633a012c9b + name: 'CPU utilization' + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.cpu.util + - uuid: 29612db53a7944aaa2e9e8d42679b513 + name: 'Memory utilization' + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.memory.util + - uuid: 0f6c5e0d65b7466cb9c65944dea13836 + name: 'Swap utilization' + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 81C784 + item: + host: 'Ribbon SBC SWe CE by HTTP' + key: ribbon.server.swap.util diff --git a/Ribbon_SBC_SWe_Core_by_HTTP.yaml b/Ribbon_SBC_SWe_Core_by_HTTP.yaml new file mode 100644 index 0000000..48fa7cf --- /dev/null +++ b/Ribbon_SBC_SWe_Core_by_HTTP.yaml @@ -0,0 +1,2627 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: b917e122785c4bd4bd004e69badc93de + template: 'Ribbon SBC SWe Core by HTTP' + name: 'Ribbon SBC SWe Core by HTTP' + description: | + The Ribbon SBC Software Edition (SBC SWe) provides the same feature set as the award-winning SBC 5400 and SBC 7000 appliances, without requiring dedicated hardware. + This gives enterprises the flexibility to deploy SBC functionality in a variety of environments – in their own data centers, on private cloud infrastructure, or in a public cloud. + + This template is designed for the effortless deployment of Ribbon SBC SWe Core monitoring and doesn't require any external scripts. + + More details can be found in the official documentation: + - REST API Reference Guide: https://publicdoc.rbbn.com/spaces/SBXCONFAPIDOC/pages/360972436/RESTCONF+API+Reference+Guide + - REST API User Guide: https://publicdoc.rbbn.com/spaces/SBXCONFAPIDOC/pages/444760643/RESTCONF+API+User+Guide + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Network devices' + items: + - uuid: f1058597a3b6411f93893076e454bda6 + name: 'Call status: Active' + type: DEPENDENT + key: ribbon.system.call.active + delay: '0' + description: 'Current number of active managed calls on this server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].activeCalls' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 5ed0bad322164073aaf5db9b1791a3d8 + name: 'Call status: Attempts' + type: DEPENDENT + key: ribbon.system.call.attempts + delay: '0' + description: 'Number of call attempts on this server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].callAttempts' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 6e5ec53168d14b3d951e48f7c0e28c2c + name: 'Call status: Completions' + type: DEPENDENT + key: ribbon.system.call.completions + delay: '0' + description: 'Total number of completed call attempts on this server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].callCompletions' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: e3855ac0b82b4af6990b704eff03afbd + name: 'Call statistics: Concurrent calls' + type: DEPENDENT + key: ribbon.system.call.concurrent + delay: '0' + description: 'The current high water mark of the total number of active calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].callCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: d1ff4e8e50fc44ebb52414e2c872c4ec + name: 'Call statistics: Encrypt calls' + type: DEPENDENT + key: ribbon.system.call.encrypt + delay: '0' + description: 'The current high water mark of the total number of encrypt calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].callCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: a6b366b5cdad4e41bdd4aacdfbf006c9 + name: 'Call statistics: NICE recorded calls' + type: DEPENDENT + key: ribbon.system.call.nice.rec + delay: '0' + description: 'The current high water mark of the total number of NICE recording calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].niceRecCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: c32af5bd2a62410eb15963aa81bbd0a9 + name: 'Call rate congestion level' + type: DEPENDENT + key: ribbon.system.call.rate.level + delay: '0' + description: 'The current call rate congestion level.' + preprocessing: + - type: JSONPATH + parameters: + - '$.CongestionStatus[0].systemCongestionCallRateLevel' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 9e1836504f604cc2a96ae8354d245376 + name: 'Call statistics: SIP recorded calls' + type: DEPENDENT + key: ribbon.system.call.sip.rec + delay: '0' + description: 'The current high water mark of the total number of SIP recording calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].sipRecCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 52684c20d4134677b946d2c901e0e1fd + name: 'Call statistics: SRTP calls' + type: DEPENDENT + key: ribbon.system.call.srtp + delay: '0' + description: 'The current high water mark of the total number of active SRTP calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].srtpCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: a6909ad4316642b6ba038de1dd678f56 + name: 'Call status: Stable' + type: DEPENDENT + key: ribbon.system.call.stable + delay: '0' + description: 'Current number of stable managed calls on this server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].stableCalls' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 2be5c70ea19744159c89e3bec6975f37 + name: 'Call status: Total' + type: DEPENDENT + key: ribbon.system.call.total + delay: '0' + description: 'Total number of calls on this server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].totalCalls' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 1645dc510644472180fbd4bd49765cb7 + name: 'Call statistics: Transcoded calls' + type: DEPENDENT + key: ribbon.system.call.transcode.rec + delay: '0' + description: 'The current high water mark of the total number of transcoded sessions.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].transcodeCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 9ff0738420f94ef19f633f2216813c77 + name: 'Call status: Updates' + type: DEPENDENT + key: ribbon.system.call.updates + delay: '0' + description: 'Number of call updates (modifications) on this server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].callUpdates' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: a639e7401f4e440ebc48495d1ed276b7 + name: 'Call statistics: Video calls' + type: DEPENDENT + key: ribbon.system.call.video + delay: '0' + description: 'The current high water mark of the total number of active enhanced video calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].enhancedVideoCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 55cd46b62b16462d97200cac6dee8e3d + name: 'System congestion level' + type: DEPENDENT + key: ribbon.system.congestion.level + delay: '0' + description: 'The current system congestion level.' + preprocessing: + - type: JSONPATH + parameters: + - '$.CongestionStatus[0].systemCongestionMCLevel' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: system + - uuid: 4e84c38990724c91848046cfafd877a3 + name: 'CPU congestion level' + type: DEPENDENT + key: ribbon.system.cpu.level + delay: '0' + description: 'The current CPU congestion level.' + preprocessing: + - type: JSONPATH + parameters: + - '$.CongestionStatus[0].systemCongestionCPULevel' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: system + - uuid: 210a0b4b387d4b32a4c6eac6ae014201 + name: 'Get data' + type: SCRIPT + key: ribbon.system.data.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + + var Ribbon = { + params: {}, + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Ribbon.params = params; + + if (typeof Ribbon.params.url === 'string') { + if (Ribbon.params.url.endsWith('/')) { + Ribbon.params.url = Ribbon.params.url.slice(0,-1); + } + } + + Ribbon.tls = new CTlsConfig(params.tls_verify); + Ribbon.tls.checkURL(Ribbon.params.url); + }, + + getRequest: function (url) { + var response, request = new HttpRequest(Ribbon.tls.options); + + if (typeof Ribbon.params.http_proxy !== 'undefined' && Ribbon.params.http_proxy !== '') { + request.setProxy(Ribbon.params.http_proxy); + }; + + request.addHeader('Content-Type: application/yang-data+json'); + request.addHeader('Authorization: Basic ' + btoa(Ribbon.params.username + ':' + Ribbon.params.password)); + + Zabbix.log(4, '[ Ribbon SBC SWe core ] Sending request: ' + url); + + response = request.get(Ribbon.params.url + url); + + Zabbix.log(4, '[ Ribbon SBC SWe core ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API. Check debug log for more information.'; + } + }, + + getField: function (data, path) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path; + } + data = data[step]; + } + + return data; + }, + + filterByServerName: function (data, param_name, key_field) { + var result = {}; + + for (var key in data) { + if (typeof data[key] === 'object' && data[key] !== null && typeof data[key][param_name] !== 'undefined') { + if (data[key][param_name] === Ribbon.params.server_name) { + result[data[key][key_field]] = data[key]; + }; + } + }; + + return result; + }, + + getMetricsData: function (endpoints) { + var data = {}; + + Object.keys(endpoints).forEach(function (key) { + data[key] = Ribbon.getField(Ribbon.getRequest(endpoints[key]['url']), endpoints[key]['path']); + }); + + return data; + } + }; + + + + try { + Ribbon.setParams(JSON.parse(value)); + + endpoints = { + 'serverAdmin': { 'url': '/restconf/data/sonusSystem:system/serverAdmin', 'path': 'sonusSystem:serverAdmin' }, + 'admin': { 'url': '/restconf/data/sonusSystem:system/admin', 'path': 'sonusSystem:admin' }, + 'syncStatus': { 'url': '/restconf/data/sonusSystem:system/syncStatus', 'path': 'sonusSystem:syncStatus' }, + 'CongestionStatistics': { + 'url': '/restconf/data/sonusSystem:system/sonusOrcaSystem:systemCongestionCurrentStatistics', + 'path': 'sonusOrcaSystem:systemCongestionCurrentStatistics' + }, + 'CongestionStatus': { 'url': '/restconf/data/sonusSystem:system/sonusOrcaSystem:systemCongestionStatus', 'path': 'sonusOrcaSystem:systemCongestionStatus' }, + 'callCountStatus': { 'url': '/restconf/data/sonusGlobal:global/sonusActiveCall:callCountStatus', 'path': 'sonusActiveCall:callCountStatus' }, + 'callCountCurrentStatistics': { 'url': '/restconf/data/sonusGlobal:global/callCountCurrentStatistics', 'path': 'sonusGlobal:callCountCurrentStatistics' }, + 'licenseInfo': { 'url': '/restconf/data/sonusSystem:system/licenseInfo', 'path': 'sonusSystem:licenseInfo' }, + 'dnsGroup': { 'url': '/restconf/data/sonusAddressContext:addressContext=default/sonusDns:dnsGroup=', 'path': 'sonusDns:dnsGroup' }, + 'globalTrunkGroupStatus': { 'url': '/restconf/data/sonusGlobal:global/sonusGlobalTrunkGroup:globalTrunkGroupStatus=', 'path': 'sonusGlobalTrunkGroup:globalTrunkGroupStatus' } + }; + + + return JSON.stringify(Ribbon.getMetricsData(endpoints)); + + } + catch (error) { + Zabbix.log(3, '[ Ribbon SBC SWe core ] ERROR: ' + error); + error_msg = 'Failed to get data from API:' + error; + + return JSON.stringify({ 'error': error_msg }); + } + description: 'Gets the system information.' + timeout: '30' + parameters: + - name: password + value: '{$RIBBON.PASSWORD}' + - name: proxy + value: '{$RIBBON.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Ribbon SBC SWe Core"}' + - name: url + value: '{$RIBBON.URL}' + - name: username + value: '{$RIBBON.USERNAME}' + tags: + - tag: component + value: raw + - uuid: f3d28176e1234b99aadb19c81b83850a + name: 'Get data check' + type: DEPENDENT + key: ribbon.system.data.get.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Checks that the Ribbon metric data has been received correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: status + triggers: + - uuid: 50ed5b65a1b048c99c9f5f5101630fe6 + expression: 'length(last(/Ribbon SBC SWe Core by HTTP/ribbon.system.data.get.check))>0' + name: 'Ribbon: Failed to get metric data' + event_name: 'Ribbon: Failed to get API metrics for the Ribbon' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Failed to get API metrics for the Ribbon.' + tags: + - tag: scope + value: availability + - uuid: ea77f9d8f1ba4a9fbe40549ce0d17091 + name: 'DSP congestion level' + type: DEPENDENT + key: ribbon.system.dsp.rate.level + delay: '0' + description: 'The current DSP congestion level.' + preprocessing: + - type: JSONPATH + parameters: + - '$.CongestionStatus[0].systemCongestionDSPLevel' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: system + - uuid: 93d7698912ce4805aa9dafe927699233 + name: 'Call status: Emergency establishing' + type: DEPENDENT + key: ribbon.system.emergency.call.establishing + delay: '0' + description: 'Number of establishing emergency calls (i.e. not yet stable).' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].totalCallsEmergEstablishing' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: eb174749ba8e4f74abdd4fb60627f761 + name: 'Call status: Emergency stable' + type: DEPENDENT + key: ribbon.system.emergency.call.stable + delay: '0' + description: 'Number of stable emergency calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].totalCallsEmergStable' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 0209ccef35384da29d1bb002788a3fa8 + name: 'Management mode' + type: DEPENDENT + key: ribbon.system.haMode + delay: '0' + value_type: CHAR + trends: '0' + description: | + Management mode of the system. Possible values: + - haMode1to1 + - haModeNto1 + valuemap: + name: 'Ribbon: System HA status' + preprocessing: + - type: JSONPATH + parameters: + - '$.admin[0].haMode' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'haMode1to1', + 'haModeNto1', + 'unknown' + ].indexOf(value); + + return idx !== -1 ? idx : 2; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: system + - uuid: fafaaff0021e4ae8bfd53d55a0e83bc2 + name: 'Call statistics: HPC queue abandons' + type: DEPENDENT + key: ribbon.system.hpc.queue.abandons + delay: '0' + description: 'The current number of HPC calls that were placed in HPC Call Queuing queues, but were subsequently abandoned before they could be completed.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].hpcQueueAbandons' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 220d681a8be3491aa96c0d4bcb90c101 + name: 'Call statistics: HPC queue attempts' + type: DEPENDENT + key: ribbon.system.hpc.queue.attempts + delay: '0' + description: 'The current number of HPC calls that were successfully placed on HPC Call Queuing queues.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].hpcQueueAttempts' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: e1ef92e48d6a4f048624f9ad26f06fa8 + name: 'Call statistics: HPC queue overflows' + type: DEPENDENT + key: ribbon.system.hpc.queue.overflows + delay: '0' + description: 'The current number of HPC calls for which HPC call queuing attempts were unsuccessful because queues were full.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].hpcQueueOverflows' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 4f2b31343898463d847d3ddefcadb3ee + name: 'Call statistics: HPC queue timeouts' + type: DEPENDENT + key: ribbon.system.hpc.queue.timeouts + delay: '0' + description: 'The current number of HPC calls removed from HPC Call Queuing queues due to expiration of the queue timeout timer.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].hpcQueueTimeouts' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: a5cf7bc5ff094df69ecae1c97c627171 + name: 'IRTT congestion level' + type: DEPENDENT + key: ribbon.system.irtt.rate.level + delay: '0' + description: 'The current IRTT congestion level.' + preprocessing: + - type: JSONPATH + parameters: + - '$.CongestionStatus[0].systemCongestionIRTTLevel' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: system + - uuid: f91884e60fcb407c9163678620f3f8aa + name: 'System name' + type: DEPENDENT + key: ribbon.system.name + delay: '0' + value_type: CHAR + trends: '0' + description: 'Name of the system.' + preprocessing: + - type: JSONPATH + parameters: + - '$.admin[0].actualSystemName' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: system + - uuid: 7172b4e5f9da4e5ebd8afe5e553457f5 + name: 'Call status: Signalling active' + type: DEPENDENT + key: ribbon.system.non.call.active + delay: '0' + description: 'Current number of active non-call associated signalling channels in the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].activeCallsNonUser' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 7e8c3eaf11124075aa9ecfdf08c4a2cd + name: 'Call status: Signalling stable' + type: DEPENDENT + key: ribbon.system.non.call.stable + delay: '0' + description: 'Current number of stable non-call associated signalling channels in the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].stableCallsNonUser' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: cb23fde59fb34988aba1132eaace6df6 + name: 'Call status: Signalling total' + type: DEPENDENT + key: ribbon.system.non.call.total + delay: '0' + description: 'Total number of non-user calls on this server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountStatus[0].totalCallsNonUser' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: acb2541b36294604b5c6bb260cccdd09 + name: 'Call statistics: MRF sessions' + type: DEPENDENT + key: ribbon.system.session.mrf + delay: '0' + description: 'The current high water mark of the total number of MRF calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].mrfSessionsCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 5856ac0adb1d4d7fb2aee5c3f41af29a + name: 'Call statistics: SLB sessions' + type: DEPENDENT + key: ribbon.system.session.slb + delay: '0' + description: 'The current high water mark of the total number of SLB calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].slbSessionsCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: d546591b91314e35b4823af140a25c52 + name: 'Call statistics: SOSBC sessions' + type: DEPENDENT + key: ribbon.system.session.sosbc + delay: '0' + description: 'The current high water mark of the total number of SOSBC calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].sosbcSessionsCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + - uuid: 3f72e3c4ad8c44398a70975456b27b25 + name: 'Call statistics: WebSocket sessions' + type: DEPENDENT + key: ribbon.system.session.websocket + delay: '0' + description: 'The current high water mark of the total number of WebSocket calls.' + preprocessing: + - type: JSONPATH + parameters: + - '$.callCountCurrentStatistics[0].webSocketSessionsCount' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: calls + - tag: component + value: system + discovery_rules: + - uuid: 1feaa9fc301f4bc7be3b18c73ba0562e + name: 'Call engine discovery' + type: DEPENDENT + key: ribbon.ce.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#CE.HW.TYPE}' + value: '{$RIBBON.CE.DISCOVERY.HW.TYPE.MATCHES}' + formulaid: A + - macro: '{#CE.HW.TYPE}' + value: '{$RIBBON.CE.DISCOVERY.HW.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#CE.NAME}' + value: '{$RIBBON.CE.DISCOVERY.NAME.MATCHES}' + formulaid: C + - macro: '{#CE.NAME}' + value: '{$RIBBON.CE.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#CE.ROLE}' + value: '{$RIBBON.CE.DISCOVERY.ROLE.MATCHES}' + formulaid: E + - macro: '{#CE.ROLE}' + value: '{$RIBBON.CE.DISCOVERY.ROLE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Used for the discovery of call engines.' + item_prototypes: + - uuid: 6dc847b33a0744da9f9830b1b4359f96 + name: 'Call engine [{#CE.NAME}]: HW sub-type' + type: DEPENDENT + key: 'ribbon.ce.hw.sub.type[{#CE.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'HW sub-type of the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverAdmin.[?(@.name == "{#CE.NAME}")].hwSubType.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: call-engine-name + value: '{#CE.NAME}' + - tag: component + value: call-engine + - uuid: f324e184bb244bd3b03065401d851efb + name: 'Call engine [{#CE.NAME}]: HW type' + type: DEPENDENT + key: 'ribbon.ce.hw.type[{#CE.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'HW type of the server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverAdmin.[?(@.name == "{#CE.NAME}")].hwType.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: call-engine-name + value: '{#CE.NAME}' + - tag: component + value: call-engine + - uuid: d239b5defa964c719a93814a94d7f1b2 + name: 'Call engine [{#CE.NAME}]: Name' + type: DEPENDENT + key: 'ribbon.ce.name[{#CE.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Name of the CE instance provided by the user.' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverAdmin.[?(@.name == "{#CE.NAME}")].actualCeName.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: ribbon.system.data.get + tags: + - tag: call-engine-name + value: '{#CE.NAME}' + - tag: component + value: call-engine + - uuid: 10c202d6dd844e1aa3fbe8433d3fee2d + name: 'Call engine [{#CE.NAME}]: Role' + type: DEPENDENT + key: 'ribbon.ce.role[{#CE.NAME}]' + delay: '0' + description: 'Server admin role. When set to primary, the role designates a server for internal processing.' + valuemap: + name: 'Ribbon: Call engine role' + preprocessing: + - type: JSONPATH + parameters: + - '$.serverAdmin.[?(@.name == "{#CE.NAME}")].role.first()' + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'primary', + 'secondary' + ].indexOf(value); + + return idx !== -1 ? idx : 2; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.system.data.get + tags: + - tag: call-engine-name + value: '{#CE.NAME}' + - tag: component + value: call-engine + host_prototypes: + - uuid: df47e752f85d4c22a519b4f9e6e04ab9 + host: '{#CE.NAME}' + name: '{#CE.NAME}' + group_links: + - group: + name: Applications + templates: + - name: 'Ribbon SBC SWe CE by HTTP' + macros: + - macro: '{$RIBBON.CE.NAME}' + value: '{#CE.NAME}' + description: 'Name of call engine.' + master_item: + key: ribbon.system.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value)["serverAdmin"]; + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#CE.NAME}": json_data[entity]["name"], + "{#CE.ROLE}": json_data[entity]["role"], + "{#CE.HW.TYPE}": json_data[entity]["hwType"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 1dc609eea19f4c56a055d6ecd0ca3c1f + name: 'DNS discovery' + type: DEPENDENT + key: ribbon.dns.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DNS.GROUP}' + value: '{$RIBBON.DNS.GROUP.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#DNS.GROUP}' + value: '{$RIBBON.DNS.GROUP.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#DNS.STATE}' + value: enabled + formulaid: C + description: 'Used for the discovery of DNS statistics.' + item_prototypes: + - uuid: aeb501d0b80847868e80c796912f4bd1 + name: 'DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: TCP connection failed' + type: DEPENDENT + key: 'ribbon.dns.connection.failed[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + delay: '0' + description: 'Total number of DNS TCP connection failed.' + preprocessing: + - type: JSONPATH + parameters: + - $.tcpConnectionFailed + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.dns.get.stats.data[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + tags: + - tag: component + value: dns + - tag: dns-group + value: '{#DNS.GROUP}' + - tag: dns-ip + value: '{#DNS.IP}' + - tag: dns-server + value: '{#DNS.SERVER}' + - tag: dns-type + value: '{#DNS.TYPE}' + - uuid: 3426b7302ef449b38e2ea49047569329 + name: 'DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: TCP connection torn down' + type: DEPENDENT + key: 'ribbon.dns.connection.torn.down[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + delay: '0' + description: 'Total number of DNS TCP connection torn down.' + preprocessing: + - type: JSONPATH + parameters: + - $.tcpConnectiontorndown + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.dns.get.stats.data[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + tags: + - tag: component + value: dns + - tag: dns-group + value: '{#DNS.GROUP}' + - tag: dns-ip + value: '{#DNS.IP}' + - tag: dns-server + value: '{#DNS.SERVER}' + - tag: dns-type + value: '{#DNS.TYPE}' + - uuid: 036858d6e02a482a87da5c66c2bb3a4f + name: 'DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: TCP connection' + type: DEPENDENT + key: 'ribbon.dns.connection[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + delay: '0' + description: 'Total number of DNS TCP connection.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalTcpConnection + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.dns.get.stats.data[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + tags: + - tag: component + value: dns + - tag: dns-group + value: '{#DNS.GROUP}' + - tag: dns-ip + value: '{#DNS.IP}' + - tag: dns-server + value: '{#DNS.SERVER}' + - tag: dns-type + value: '{#DNS.TYPE}' + - uuid: 8981ce984a194bfbbe535753a81a9099 + name: 'DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: Errors' + type: DEPENDENT + key: 'ribbon.dns.errors[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + delay: '0' + description: 'Total number of DNS errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.dns.get.stats.data[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + tags: + - tag: component + value: dns + - tag: dns-group + value: '{#DNS.GROUP}' + - tag: dns-ip + value: '{#DNS.IP}' + - tag: dns-server + value: '{#DNS.SERVER}' + - tag: dns-type + value: '{#DNS.TYPE}' + trigger_prototypes: + - uuid: e1bc3be5563147c3a38ee20f99f9330c + expression: 'last(/Ribbon SBC SWe Core by HTTP/ribbon.dns.errors[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]) >= {$RIBBON.DNS.ERRORS.TRIGGER.THRESHOLD}' + name: 'Ribbon: DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: High number of errors' + opdata: 'Current number of errors: {ITEM.LASTVALUE}' + priority: WARNING + description: 'The number of DNS errors is high.' + tags: + - tag: scope + value: availability + - uuid: d34426bc96e44b77a85b65f433bb0f27 + name: 'DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: Raw data' + type: DEPENDENT + key: 'ribbon.dns.get.stats.data[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data of the DNS statistics.' + preprocessing: + - type: JSONPATH + parameters: + - '$.dnsGroup[?(@.name=="{#DNS.GROUP}")].dnsServerStatistics[?(@.ipAddress=="{#DNS.IP}")].first()' + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: dns + - tag: component + value: raw + - tag: dns-group + value: '{#DNS.GROUP}' + - tag: dns-ip + value: '{#DNS.IP}' + - tag: dns-server + value: '{#DNS.SERVER}' + - tag: dns-type + value: '{#DNS.TYPE}' + - uuid: 02a9cf1f50e3466b9a100e5dc108d16e + name: 'DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: Query' + type: DEPENDENT + key: 'ribbon.dns.query[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + delay: '0' + description: 'Total number of DNS queries received by the server.' + preprocessing: + - type: JSONPATH + parameters: + - $.queries + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.dns.get.stats.data[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + tags: + - tag: component + value: dns + - tag: dns-group + value: '{#DNS.GROUP}' + - tag: dns-ip + value: '{#DNS.IP}' + - tag: dns-server + value: '{#DNS.SERVER}' + - tag: dns-type + value: '{#DNS.TYPE}' + - uuid: 67a79aebf33046f397ecc565d3e95695 + name: 'DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: Referrals' + type: DEPENDENT + key: 'ribbon.dns.referrals[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + delay: '0' + description: 'Total number of DNS referrals.' + preprocessing: + - type: JSONPATH + parameters: + - $.referrals + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.dns.get.stats.data[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + tags: + - tag: component + value: dns + - tag: dns-group + value: '{#DNS.GROUP}' + - tag: dns-ip + value: '{#DNS.IP}' + - tag: dns-server + value: '{#DNS.SERVER}' + - tag: dns-type + value: '{#DNS.TYPE}' + - uuid: 2729f041ee1b451da2af1676acab928f + name: 'DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: Timeouts' + type: DEPENDENT + key: 'ribbon.dns.timeouts[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + delay: '0' + description: 'Total number of DNS timeouts.' + preprocessing: + - type: JSONPATH + parameters: + - $.timeouts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.dns.get.stats.data[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]' + tags: + - tag: component + value: dns + - tag: dns-group + value: '{#DNS.GROUP}' + - tag: dns-ip + value: '{#DNS.IP}' + - tag: dns-server + value: '{#DNS.SERVER}' + - tag: dns-type + value: '{#DNS.TYPE}' + trigger_prototypes: + - uuid: bc7d79451e4340f9b1c8417236fd1433 + expression: 'last(/Ribbon SBC SWe Core by HTTP/ribbon.dns.errors[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}])/last(/Ribbon SBC SWe Core by HTTP/ribbon.dns.query[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}])*100>{$RIBBON.DNS.ERRORS.PERCENT.TRIGGER.THRESHOLD}' + name: 'Ribbon: DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: High percentage of errors' + opdata: 'Current error: {ITEM.LASTVALUE1} of {ITEM.LASTVALUE2} queries' + priority: WARNING + description: 'The percentage of DNS errors is high.' + tags: + - tag: scope + value: availability + - uuid: c3f4e1d5b1e14f2fa9f3e6d3e8b7a6c1 + expression: 'last(/Ribbon SBC SWe Core by HTTP/ribbon.dns.timeouts[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}])/last(/Ribbon SBC SWe Core by HTTP/ribbon.dns.query[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}])*100>{$RIBBON.DNS.TIMEOUTS.PERCENT.TRIGGER.THRESHOLD}' + name: 'Ribbon: DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: High percentage of timeouts' + opdata: 'Current timeouts: {ITEM.LASTVALUE1} of {ITEM.LASTVALUE2} queries' + priority: WARNING + description: 'The percentage of DNS timeouts is high.' + tags: + - tag: scope + value: availability + master_item: + key: ribbon.system.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value), + dns = getField(data, 'dnsGroup'), + dns_servers = []; + + function getField(data, path, defaultValue) { + var steps = path.split('.'), + step = steps.shift(); + + while (typeof step !== 'undefined') { + if (typeof data === 'undefined' || typeof data[step] === 'undefined') { + return defaultValue; + } + + data = data[step]; + step = steps.shift(); + } + return data; + }; + + dns.forEach(function (item) { + + var group = getField(item, "name"), + type = getField(item, "type"), + servers = getField(item, "server", {}), + servers = Array.isArray(servers) ? servers : [servers]; + + servers.forEach(function (server) { + dns_servers.push({ + "{#DNS.GROUP}": group, + "{#DNS.TYPE}": type, + "{#DNS.SERVER}": getField(server, "name", ''), + "{#DNS.IP}": getField(server, "ipAddress", ''), + "{#DNS.STATE}": getField(server, "state", '') + }); + }); + }); + + return JSON.stringify(dns_servers); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 1e3d38f447114daab812c98af635dc30 + name: 'License discovery' + type: DEPENDENT + key: ribbon.license.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#LICENSE.NAME}' + value: '{$RIBBON.LICENSE.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#LICENSE.NAME}' + value: '{$RIBBON.LICENSE.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of license info.' + item_prototypes: + - uuid: 4d378c397f214642aa2348bf60719805 + name: 'License [{#LICENSE.NAME}]: Expiry date' + type: DEPENDENT + key: 'ribbon.license.expiry.date[{#LICENSE.NAME}/{#LICENSE.SOURCE}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Expiry date of the license.' + preprocessing: + - type: JSONPATH + parameters: + - '$.licenseInfo.[?(@.featureName == "{#LICENSE.NAME}" && @.source == "{#LICENSE.SOURCE}")].expirationDate.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: license + - tag: license-name + value: '{#LICENSE.NAME}' + - uuid: 76038b1448e54068a32195e88b96578f + name: 'License [{#LICENSE.NAME}]: Current usage' + type: DEPENDENT + key: 'ribbon.license.usage.current[{#LICENSE.NAME}/{#LICENSE.SOURCE}]' + delay: '0' + description: 'Current usage of the license.' + preprocessing: + - type: JSONPATH + parameters: + - '$.licenseInfo.[?(@.featureName == "{#LICENSE.NAME}" && @.source == "{#LICENSE.SOURCE}")].inUse.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: license + - tag: license-name + value: '{#LICENSE.NAME}' + - uuid: 0e9b831e5d75425fa8f71ea23a21826a + name: 'License [{#LICENSE.NAME}]: Usage limit' + type: DEPENDENT + key: 'ribbon.license.usage.limit[{#LICENSE.NAME}/{#LICENSE.SOURCE}]' + delay: '0' + description: 'Usage limit of the license.' + preprocessing: + - type: JSONPATH + parameters: + - '$.licenseInfo.[?(@.featureName == "{#LICENSE.NAME}" && @.source == "{#LICENSE.SOURCE}")].usageLimit.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: license + - tag: license-name + value: '{#LICENSE.NAME}' + master_item: + key: ribbon.system.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value)["licenseInfo"]; + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#LICENSE.NAME}": json_data[entity]["featureName"], + "{#LICENSE.SOURCE}": json_data[entity]["source"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f10278da819b4ba5b76f505e4289f63a + name: 'Sync module discovery' + type: DEPENDENT + key: ribbon.sync.module.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#SYNC.MODULE}' + value: '{$RIBBON.SYNC.MODULE.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#SYNC.MODULE}' + value: '{$RIBBON.SYNC.MODULE.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of sync modules.' + item_prototypes: + - uuid: 9478b97203694c498e8a88b2d2cd7c35 + name: 'Module [{#SYNC.MODULE}]: Sync status' + type: DEPENDENT + key: 'ribbon.sync.module.status[{#SYNC.MODULE}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Indicates the inter-CE data synchronization state.' + preprocessing: + - type: JSONPATH + parameters: + - '$.syncStatus.[?(@.syncModule == "{#SYNC.MODULE}")].status.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: sync-module + - tag: module + value: '{#SYNC.MODULE}' + trigger_prototypes: + - uuid: 851d014e5d454d29a38ec4754ce1d6ac + expression: 'last(/Ribbon SBC SWe Core by HTTP/ribbon.sync.module.status[{#SYNC.MODULE}])<>"syncCompleted"' + name: 'Ribbon: Module [{#SYNC.MODULE}]: Sync status is not "Completed"' + opdata: 'Current status: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The module sync status is not "Completed".' + tags: + - tag: scope + value: availability + master_item: + key: ribbon.system.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value)['syncStatus']; + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#SYNC.MODULE}": json_data[entity]["syncModule"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: cde1b0d0f05e4cdea40c15756057e3ef + name: 'Trunk group discovery' + type: DEPENDENT + key: ribbon.trunk.group.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#TRUNK.GROUP}' + value: '{$RIBBON.TRUNK.GROUP.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#TRUNK.GROUP}' + value: '{$RIBBON.TRUNK.GROUP.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for the discovery of trunk group statistics.' + item_prototypes: + - uuid: 3dc2bc687ac34b56b6baeebee2eee175 + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Total available calls' + type: DEPENDENT + key: 'ribbon.trunk.available.calls[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + value_type: FLOAT + description: 'The sum of all available or unblocked calls for this trunk group.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalCallsAvailable + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + tags: + - tag: component + value: calls + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + - uuid: a80bd3155466423e962d93833c29a7d7 + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Bandwidth available' + type: DEPENDENT + key: 'ribbon.trunk.bw.available[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + value_type: FLOAT + units: '!kbit/s' + description: 'Available bandwidth for allocation (in Kbits/sec).' + preprocessing: + - type: JSONPATH + parameters: + - $.bwAvailable + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + tags: + - tag: component + value: bandwidth + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + - uuid: 59f4808a47dc498085febaf9a6346ea3 + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Bandwidth current limit' + type: DEPENDENT + key: 'ribbon.trunk.bw.current.limit[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + value_type: FLOAT + units: '!kbit/s' + description: 'The current bandwidth limit for this IP trunk group. It is initially set to the configured bandwidth limit, but may be reduced due to packet outage detection events (in Kbits/sec).' + preprocessing: + - type: JSONPATH + parameters: + - $.bwCurrentLimit + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + tags: + - tag: component + value: bandwidth + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + - uuid: 2a94701789934237a306d4cee56a6931 + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Bandwidth inbound usage' + type: DEPENDENT + key: 'ribbon.trunk.bw.inbound.usage[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + value_type: FLOAT + units: '!kbit/s' + description: 'Bandwidth in use for inbound traffic (in Kbits/sec).' + preprocessing: + - type: JSONPATH + parameters: + - $.bwInboundUsage + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + tags: + - tag: component + value: bandwidth + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + - uuid: 2218ec6ed3e7470d98a42153f4fe5bb7 + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Bandwidth outbound usage' + type: DEPENDENT + key: 'ribbon.trunk.bw.outbound.usage[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + value_type: FLOAT + units: '!kbit/s' + description: 'Bandwidth in use for outbound traffic (in Kbits/sec).' + preprocessing: + - type: JSONPATH + parameters: + - $.bwOutboundUsage + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + tags: + - tag: component + value: bandwidth + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + - uuid: 320d5534056742589e120c743f3c7a99 + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Raw data' + type: DEPENDENT + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data of trunk group statistics.' + preprocessing: + - type: JSONPATH + parameters: + - '$.globalTrunkGroupStatus[?(@.name=="{#TRUNK.GROUP}" && @.zone == "{#TRUNK.ZONE}")].first()' + master_item: + key: ribbon.system.data.get + tags: + - tag: component + value: raw + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + - uuid: 769834a24caa42c4b4dbd223142eed68 + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Inbound call usage' + type: DEPENDENT + key: 'ribbon.trunk.inbound.usage.calls[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + value_type: FLOAT + description: 'Relevant only for IP trunk groups configured for inbound or both directions. Reflects the current inbound or incoming usage count of the IP trunk group (in number of calls).' + preprocessing: + - type: JSONPATH + parameters: + - $.inboundCallsUsage + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + tags: + - tag: component + value: calls + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + - uuid: 89721a0f5621478f9ed6b76258e7f690 + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Outbound call usage' + type: DEPENDENT + key: 'ribbon.trunk.outbound.usage.calls[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + value_type: FLOAT + description: 'This reflects the current outbound, non-priority usage count of this IP trunk group (in number of calls).' + preprocessing: + - type: JSONPATH + parameters: + - $.outboundCallsUsage + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + tags: + - tag: component + value: calls + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + - uuid: fbb82a63eed74bf781ac725bcf68ce4f + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Packet out detect state' + type: DEPENDENT + key: 'ribbon.trunk.packet.out.detect.state[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + description: 'Indicates the packet outage detection state of the trunk. `normal` - No packet outage declared. `packetOutageState` - Packet outage declared. The current bandwidth limit may be reduced according to the outage detection policy.' + valuemap: + name: 'Ribbon: Trunk packet out detect state' + preprocessing: + - type: JSONPATH + parameters: + - $.packetOutDetectState + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'packetOutageState', + 'normal' + ].indexOf(value); + + return idx !== -1 ? idx : 2; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + tags: + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + trigger_prototypes: + - uuid: d18a4f15d3134cdcb8ce70556bfbcbee + expression: 'last(/Ribbon SBC SWe Core by HTTP/ribbon.trunk.packet.out.detect.state[{#TRUNK.GROUP}/{#TRUNK.ZONE}])<>1' + name: 'Ribbon: Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Packet out detect state is not "normal"' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'Indicates that a packet outage has been declared on this trunk.' + tags: + - tag: scope + value: availability + - uuid: ff1e154269e647b5add00b88dd3b3891 + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Priority call usage' + type: DEPENDENT + key: 'ribbon.trunk.priority.usage.calls[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + value_type: FLOAT + description: 'Relevant only for IP trunk groups that are configured with priority call reservation enabled. Reflects the current priority usage count of the IP trunk group (in number of calls).' + preprocessing: + - type: JSONPATH + parameters: + - $.priorityCallUsage + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + tags: + - tag: component + value: calls + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + - uuid: bdbe03787d544f41bdbcbb8e3eb6c621 + name: 'Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: State' + type: DEPENDENT + key: 'ribbon.trunk.state[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'Current operational state of the IP trunk group.' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]' + tags: + - tag: component + value: trunk + - tag: trunk-group + value: '{#TRUNK.GROUP}' + - tag: trunk-zone + value: '{#TRUNK.ZONE}' + trigger_prototypes: + - uuid: 4caad3b7c12d4ac897a7534babf1a9a2 + expression: 'last(/Ribbon SBC SWe Core by HTTP/ribbon.trunk.state[{#TRUNK.GROUP}/{#TRUNK.ZONE}])<>"inService"' + name: 'Ribbon: Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: State is not "inService"' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: WARNING + description: 'Indicates that the trunk is not in service.' + tags: + - tag: scope + value: availability + master_item: + key: ribbon.system.data.get + preprocessing: + - type: JAVASCRIPT + parameters: + - | + const json_data = JSON.parse(value)["globalTrunkGroupStatus"]; + var output_data = []; + + for (var entity in json_data) { + output_data.push({ + "{#TRUNK.GROUP}": json_data[entity]["name"], + "{#TRUNK.ZONE}": json_data[entity]["zone"] + }); + }; + + return JSON.stringify(output_data); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: subclass + value: communication + - tag: target + value: ribbon + - tag: target + value: ribbon-swe-core + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Ribbon SBC SWe Core", e.g. {$HTTP.TLS.VERIFY:"Ribbon SBC SWe Core"}.' + - macro: '{$RIBBON.CE.DISCOVERY.HW.TYPE.MATCHES}' + value: '.*' + description: 'Sets the regex string of call engine hardware types to be allowed in discovery.' + - macro: '{$RIBBON.CE.DISCOVERY.HW.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of call engine hardware types to be ignored in discovery.' + - macro: '{$RIBBON.CE.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of call engine names to be allowed in discovery.' + - macro: '{$RIBBON.CE.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of call engine names to be ignored in discovery.' + - macro: '{$RIBBON.CE.DISCOVERY.ROLE.MATCHES}' + value: '.*' + description: 'Sets the regex string of call engine roles to be allowed in discovery.' + - macro: '{$RIBBON.CE.DISCOVERY.ROLE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of call engine roles to be ignored in discovery.' + - macro: '{$RIBBON.DNS.ERRORS.PERCENT.TRIGGER.THRESHOLD}' + value: '70' + description: 'The threshold of DNS errors in percent.' + - macro: '{$RIBBON.DNS.ERRORS.TRIGGER.THRESHOLD}' + value: '1000' + description: 'The threshold of DNS errors.' + - macro: '{$RIBBON.DNS.GROUP.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of DNS group names to be allowed in discovery.' + - macro: '{$RIBBON.DNS.GROUP.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of DNS group names to be ignored in discovery.' + - macro: '{$RIBBON.DNS.TIMEOUTS.PERCENT.TRIGGER.THRESHOLD}' + value: '70' + description: 'The threshold of DNS timeouts in percent.' + - macro: '{$RIBBON.LICENSE.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of license names to be allowed in discovery.' + - macro: '{$RIBBON.LICENSE.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of license names to be ignored in discovery.' + - macro: '{$RIBBON.PASSWORD}' + type: SECRET_TEXT + description: 'Ribbon SBC user password.' + - macro: '{$RIBBON.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + - macro: '{$RIBBON.SYNC.MODULE.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of sync module names to be allowed in discovery.' + - macro: '{$RIBBON.SYNC.MODULE.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of sync module names to be ignored in discovery.' + - macro: '{$RIBBON.TRUNK.GROUP.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of trunk group names to be allowed in discovery.' + - macro: '{$RIBBON.TRUNK.GROUP.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of trunk group names to be ignored in discovery.' + - macro: '{$RIBBON.URL}' + description: 'Ribbon SBC API IP.' + - macro: '{$RIBBON.USERNAME}' + description: 'Ribbon SBC username.' + dashboards: + - uuid: 02584a811ff84a01ab69ac2640d8ea1d + name: 'Ribbon SWe core overview' + pages: + - name: 'Ribbon: Overview' + widgets: + - type: item + name: 'System name' + width: '36' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.name + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: 'Call statistic' + 'y': '2' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FFD54F + - type: STRING + name: ds.0.color.1 + value: 0EC9AC + - type: STRING + name: ds.0.color.2 + value: 524BBC + - type: STRING + name: ds.0.color.3 + value: ED1248 + - type: STRING + name: ds.0.color.4 + value: D1E754 + - type: STRING + name: ds.0.color.5 + value: 2AB5FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.concurrent + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.encrypt + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.nice.rec + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.sip.rec + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.srtp + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.video + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAA + - type: svggraph + name: 'HPC queue' + 'y': '8' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FFD54F + - type: STRING + name: ds.0.color.1 + value: 0EC9AC + - type: STRING + name: ds.0.color.2 + value: 524BBC + - type: STRING + name: ds.0.color.3 + value: ED1248 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.hpc.queue.abandons + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.hpc.queue.attempts + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.hpc.queue.overflows + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.hpc.queue.timeouts + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '4' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: item + name: 'Management mode' + x: '36' + width: '36' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.haMode + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: honeycomb + name: 'Congestion level' + x: '36' + 'y': '2' + width: '36' + height: '6' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: 'Call rate congestion level' + - type: STRING + name: items.1 + value: 'CPU congestion level' + - type: STRING + name: items.2 + value: 'DSP congestion level' + - type: STRING + name: items.3 + value: 'IRTT congestion level' + - type: STRING + name: items.4 + value: 'System congestion level' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(.*)congestion level", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: 81C784 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: CDDC39 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FF8F00 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: E65660 + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: svggraph + name: 'Call status' + x: '36' + 'y': '8' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FFD54F + - type: STRING + name: ds.0.color.1 + value: 0EC9AC + - type: STRING + name: ds.0.color.2 + value: 524BBC + - type: STRING + name: ds.0.color.3 + value: ED1248 + - type: STRING + name: ds.0.color.4 + value: D1E754 + - type: STRING + name: ds.0.color.5 + value: 2AB5FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.active + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.attempts + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.stable + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.completions + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.total + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.updates + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '3' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAD + - name: 'Ribbon: DNS' + widgets: + - type: svggraph + name: Query + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color + value: A1887F + - type: STRING + name: ds.0.items.0 + value: '''DNS *: Query''' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: ECVDV + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: Timeouts + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color + value: 1565C0 + - type: STRING + name: ds.0.items.0 + value: 'DNS *: Timeouts' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: OZIZA + - type: INTEGER + name: righty + value: '0' + - type: INTEGER + name: simple_triggers + value: '1' + - type: svggraph + name: Errors + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color + value: FF5722 + - type: STRING + name: ds.0.items.0 + value: 'DNS *: Errors' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: MPGLZ + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: Connections + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color + value: 7E57C2 + - type: STRING + name: ds.0.items.0 + value: 'DNS *: TCP connection' + - type: STRING + name: ds.1.items.0 + value: 'DNS *: TCP connection failed' + - type: STRING + name: ds.2.color + value: FFD54F + - type: STRING + name: ds.2.items.0 + value: 'DNS *: TCP connection torn down' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: EAGUY + - type: INTEGER + name: righty + value: '0' + - name: 'Ribbon: Trunk' + widgets: + - type: svggraph + name: Calls + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color + value: 3949AB + - type: STRING + name: ds.0.items.0 + value: 'Trunk *: Total available calls' + - type: STRING + name: ds.1.items.0 + value: 'Trunk *: Inbound calls usage' + - type: STRING + name: ds.2.color + value: FFD54F + - type: STRING + name: ds.2.items.0 + value: 'Trunk *: Outbound calls usage' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: NOKXU + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: Bandwidth + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color + value: 7CB342 + - type: STRING + name: ds.0.items.0 + value: 'Trunk *: Bandwidth available' + - type: STRING + name: ds.1.color + value: CC6600 + - type: STRING + name: ds.1.items.0 + value: 'Trunk *: Bandwidth inbound usage' + - type: STRING + name: ds.2.items.0 + value: 'Trunk *: Bandwidth outbound usage' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: ZETRZ + - type: INTEGER + name: righty + value: '0' + valuemaps: + - uuid: 4d1dd88f5c48462fa55ba7bd73476cb7 + name: 'Ribbon: Call engine role' + mappings: + - value: '0' + newvalue: primary + - value: '1' + newvalue: secondary + - value: '2' + newvalue: unknown + - uuid: bed1403dbaf0419987856c5c33a061b6 + name: 'Ribbon: System HA status' + mappings: + - value: '0' + newvalue: haMode1to1 + - value: '1' + newvalue: haModeNto1 + - value: '2' + newvalue: unknown + - uuid: 1262d32d602344e49fae29f64f6c2eb7 + name: 'Ribbon: Trunk packet out detect state' + mappings: + - value: '0' + newvalue: packetOutageState + - value: '1' + newvalue: normal + - value: '2' + newvalue: unknown + graphs: + - uuid: 476512eb28de43c6bcc2bfdfc2240904 + name: 'Call statistics' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.video + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.srtp + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.encrypt + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.concurrent + - uuid: db7a698f6488496f8a1bbdb00545141e + name: 'Call status' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.total + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.updates + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.stable + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.active + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.completions + - sortorder: '5' + drawtype: GRADIENT_LINE + color: 6C59DC + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.call.attempts + - uuid: 9f0b5130421143f592f9d068d4e1c5f3 + name: 'Emergency call status' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.emergency.call.stable + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.emergency.call.establishing + - uuid: 1041f98ee1cf44d29fa37b7b716c6a53 + name: 'HPC queue' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.hpc.queue.timeouts + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.hpc.queue.abandons + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.hpc.queue.overflows + - sortorder: '3' + drawtype: GRADIENT_LINE + color: F7941D + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.hpc.queue.attempts + - uuid: 33b98206ab36464eb434307807227c9c + name: 'Signalling call status' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.non.call.total + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.non.call.stable + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Ribbon SBC SWe Core by HTTP' + key: ribbon.system.non.call.active diff --git a/SMART_by_Zabbix_agent_2.yaml b/SMART_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..5a16dfd --- /dev/null +++ b/SMART_by_Zabbix_agent_2.yaml @@ -0,0 +1,963 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: 7b6c6228b25f4586b42cd1bf37ff8034 + template: 'SMART by Zabbix agent 2' + name: 'SMART by Zabbix agent 2' + description: | + The template for monitoring S.M.A.R.T. attributes of physical disk that works without any external scripts. It collects metrics by Zabbix agent 2 version 5.0 and later with Smartmontools version 7.1 and later. Disk discovery LLD rule finds all HDD, SSD, NVMe disks with S.M.A.R.T. enabled. Attribute discovery LLD rule have pre-defined Vendor Specific Attributes for each disk, and will be discovered if attribute is present. + + Setup: + + 1. Install Zabbix agent 2 and Smartmontools 7.1 or newer. + + 2. Ensure the path to the "smartctl" executable is correctly specified. You can either provide the full path to the executable (e.g., "/usr/sbin/smartctl" on Linux or "C:\Program Files\smartctl\smartctl.exe" on Windows) in the configuration file or ensure that the folder containing the "smartctl" executable is added to the system's environment variables ("PATH"). This applies to both Linux and Windows systems. + + Example for Linux: + Plugins.Smart.Path=/usr/sbin/smartctl + + Example for Windows: + Plugins.Smart.Path="C:\Program Files\smartctl\smartctl.exe" + + 3. Grant Zabbix agent 2 super/admin user privileges for the "smartctl" utility (not required for Windows). Example for Linux (add the line that grants execution of the "smartctl" utility without the password): + + - Run the "visudo" command to edit the "sudoers" file: + sudo visudo + + - Add the permission line and save the changes: + zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/415662-discussion-thread-for-official-zabbix-smart-disk-monitoring + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Server hardware' + discovery_rules: + - uuid: 4575af2717ec4bf78645edb84a966c84 + name: 'Disk discovery' + key: 'smart.disk.discovery[{$SMART.DISK.DISCOVERY.TYPE}]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$SMART.DISK.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$SMART.DISK.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery SMART disks.' + item_prototypes: + - uuid: 643de316ae644f6d8fd92d1f03ae0360 + name: '[{#NAME}]: Bad_Block_Rate' + type: DEPENDENT + key: 'smart.disk.attribute.bad_block_rate[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'Percentage of used reserve blocks divided by total reserve blocks.' + preprocessing: + - type: JSONPATH + parameters: + - $.bad_block_rate.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 2a055383835247bc83745c84fdc5dea9 + name: '[{#NAME}]: Power_Cycle_Count' + type: DEPENDENT + key: 'smart.disk.attribute.power_cycle_count[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'This attribute indicates the count of full hard disk power on/off cycles.' + preprocessing: + - type: JSONPATH + parameters: + - $.power_cycle_count.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: e1fbae7fe66c453997d9aa6e6eb3b5cb + name: '[{#NAME}]: Program_Fail_Count_Chip' + type: DEPENDENT + key: 'smart.disk.attribute.program_fail_count_chip[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'The total number of flash program operation failures since the drive was deployed.' + preprocessing: + - type: JSONPATH + parameters: + - $.program_fail_count_chip.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: abb098035cbd4c5b9e2d15c1e95d8e34 + name: '[{#NAME}]: Raw_Read_Error_Rate' + type: DEPENDENT + key: 'smart.disk.attribute.raw_read_error_rate[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'Stores data related to the rate of hardware read errors that occurred when reading data from a disk surface. The raw value has different structure for different vendors and is often not meaningful as a decimal number. For some drives, this number may increase during normal operation without necessarily signifying errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.raw_read_error_rate.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 5601bfa6a38940b6b8d695bf029f534c + name: '[{#NAME}]: Reallocated_Sector_Ct' + type: DEPENDENT + key: 'smart.disk.attribute.reallocated_sector_ct[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'Disk discovered attribute.' + preprocessing: + - type: JSONPATH + parameters: + - $.reallocated_sector_ct.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: f538f4708280451eb30d20433d133012 + name: '[{#NAME}]: Reported_Uncorrect' + type: DEPENDENT + key: 'smart.disk.attribute.reported_uncorrect[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'The count of errors that could not be recovered using hardware ECC.' + preprocessing: + - type: JSONPATH + parameters: + - $.reported_uncorrect.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 70ac7d6cdf29431cacf02fc716c8ab0c + name: '[{#NAME}]: Seek_Error_Rate' + type: DEPENDENT + key: 'smart.disk.attribute.seek_error_rate[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'Rate of seek errors of the magnetic heads. If there is a partial failure in the mechanical positioning system, then seek errors will arise. Such a failure may be due to numerous factors, such as damage to a servo, or thermal widening of the hard disk. The raw value has different structure for different vendors and is often not meaningful as a decimal number. For some drives, this number may increase during normal operation without necessarily signifying errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.seek_error_rate.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 6e08c65d77ca4155b396c9615b2f45b3 + name: '[{#NAME}]: Spin_Up_Time' + type: DEPENDENT + key: 'smart.disk.attribute.spin_up_time[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'Average time of spindle spin up (from zero RPM to fully operational [milliseconds]).' + preprocessing: + - type: JSONPATH + parameters: + - $.spin_up_time.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: e428eb3368e94dbc955f2bebf8feb202 + name: '[{#NAME}]: Start_Stop_Count' + type: DEPENDENT + key: 'smart.disk.attribute.start_stop_count[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'A tally of spindle start/stop cycles. The spindle turns on, and hence the count is increased, both when the hard disk is turned on after having before been turned entirely off (disconnected from power source) and when the hard disk returns from having previously been put to sleep mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.start_stop_count.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: c186f7ce1b8d4311997c84fd5c239819 + name: '[{#NAME}]: Critical warning' + type: DEPENDENT + key: 'smart.disk.critical_warning[{#NAME}]' + delay: '0' + description: 'This field indicates critical warnings for the state of the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.critical_warning + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 72f16a701cee4119b0b1865671fd448d + name: '[{#NAME}]: Smartctl error' + type: DEPENDENT + key: 'smart.disk.error[{#NAME}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'This metric will contain smartctl errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 849a9d5c9b9d4b969a09ab5cf4629ded + name: '[{#NAME}]: Exit status' + type: DEPENDENT + key: 'smart.disk.es[{#NAME}]' + delay: '0' + description: | + The exit statuses of smartctl are defined by a bitmask but in decimal value. The eight different bits in the exit status have the following meanings for ATA disks; some of these values may also be returned for SCSI disks. + Bit 0: Command line did not parse. + Bit 1: Device open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode (see '-n' option above). + Bit 2: Some SMART or other ATA command to the disk failed, or there was a checksum error in a SMART data structure (see '-b' option above). + Bit 3: SMART status check returned "DISK FAILING". + Bit 4: We found prefail Attributes <= threshold. + Bit 5: SMART status check returned "DISK OK" but we found that some (usage or prefail) Attributes have been <= threshold at some time in the past. + Bit 6: The device error log contains records of errors. + Bit 7: The device self-test log contains records of errors. [ATA only] Failed self-tests outdated by a newer successful extended self-test are ignored. + preprocessing: + - type: JSONPATH + parameters: + - $.exit_status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + trigger_prototypes: + - uuid: c51b609f267c45c3bcb4a3f5f40b6d35 + expression: | + ( count(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),8) = 8 ) + or ( bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),8) = 8 + and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),8) > bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),8) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Check returned "DISK FAILING"' + priority: HIGH + description: 'SMART status check returned "DISK FAILING".' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 12ed61dfd27c4666883c4240a5726d06 + expression: | + ( count(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),1) = 1 ) + or ( bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),1) = 1 + and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),1) > bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),1) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Command line did not parse' + priority: HIGH + description: 'Command line did not parse.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9b960cb324774b3fa5e3d39aeb3141e2 + expression: | + ( count(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),2) = 2 ) + or ( bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),2) = 2 + and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),2) > bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),2) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Device open failed' + priority: HIGH + description: 'Device open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ccff1b75f69a47cdbb5a04c58d201a0f + expression: | + ( count(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),64) = 64 ) + or ( bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),64) = 64 + and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),64) > bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),64) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Error log contains records' + priority: HIGH + description: 'The device error log contains records of errors.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 69fb021abcc841b7b35cc93358ef085c + expression: | + ( count(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),128) = 128 ) + or ( bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),128) = 128 + and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),128) > bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),128) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Self-test log contains records' + priority: HIGH + description: | + The device self-test log contains records of errors. [ATA only] + Failed self-tests outdated by a newer successful extended self-test are ignored. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4ad2fbb5b6e349f6852a489b99a2760d + expression: | + ( count(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),32) = 32 ) + or ( bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),32) = 32 + and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),32) > bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),32) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Some Attributes have been <= threshold' + priority: HIGH + description: | + SMART status check returned "DISK OK" but we found that some (usage + or prefail) Attributes have been <= threshold at some time in the past. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 592e647842d048e3985e65726cdc838c + expression: | + ( count(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),4) = 4 ) + or ( bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),4) = 4 + and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),4) > bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),4) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Some command to the disk failed' + priority: HIGH + description: | + Some SMART or other ATA command to the disk failed, + or there was a checksum error in a SMART data structure. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ec137781d51249c89d8891a35a596445 + expression: | + ( count(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),16) = 16 ) + or ( bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),16) = 16 + and bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),16) > bitand(last(/SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),16) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Some prefail Attributes <= threshold' + priority: HIGH + description: 'We found prefail Attributes <= threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 805e1d6f91e741ac93e87bd7d62860d5 + name: '[{#NAME}]: Get disk attributes' + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - tag: component + value: storage + - uuid: 365f9642f2764116923bb3e014eefa22 + name: '[{#NAME}]: Power on hours' + type: DEPENDENT + key: 'smart.disk.hours[{#NAME}]' + delay: '0' + description: | + Count of hours in power-on state. The raw value of this attribute + shows total count of hours (or minutes, or seconds, depending on manufacturer) + in power-on state. "By default, the total expected lifetime of a hard disk + in perfect condition is defined as 5 years (running every day and night on + all days). This is equal to 1825 days in 24/7 mode or 43800 hours." On some + pre-2005 drives, this raw value may advance erratically and/or "wrap around" + (reset to zero periodically). https://en.wikipedia.org/wiki/S.M.A.R.T.#Known_ATA_S.M.A.R.T._attributes + preprocessing: + - type: JSONPATH + parameters: + - $.power_on_time + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 8478d6421fb044339e2118848ac6d56b + name: '[{#NAME}]: Media errors' + type: DEPENDENT + key: 'smart.disk.media_errors[{#NAME}]' + delay: '0' + description: | + Contains the number of occurrences where the controller detected + an unrecovered data integrity error. Errors such as uncorrectable ECC, CRC + checksum failure, or LBA tag mismatch are included in this field. + preprocessing: + - type: JSONPATH + parameters: + - $.media_errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: b6abf9b52c694600b63fce4a68fc0fbd + name: '[{#NAME}]: Device model' + type: DEPENDENT + key: 'smart.disk.model[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.model_name + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: inventory + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 6ce46d274a694eac9700bd02a936f4be + name: '[{#NAME}]: Percentage used' + type: DEPENDENT + key: 'smart.disk.percentage_used[{#NAME}]' + delay: '0' + units: '%' + description: | + Contains a vendor specific estimate of the percentage of NVM subsystem + life used based on the actual usage and the manufacturer's prediction of NVM + life. A value of 100 indicates that the estimated endurance of the NVM in + the NVM subsystem has been consumed, but may not indicate an NVM subsystem + failure. The value is allowed to exceed 100. Percentages greater than 254 + shall be represented as 255. This value shall be updated once per power-on + hour (when the controller is not in a sleep state). + preprocessing: + - type: JSONPATH + parameters: + - $.percentage_used + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + trigger_prototypes: + - uuid: e2bc2b0e195446d7973037be8e41eb6f + expression: 'last(/SMART by Zabbix agent 2/smart.disk.percentage_used[{#NAME}])>90' + name: 'SMART: [{#NAME}]: NVMe disk percentage using is over 90% of estimated endurance' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 62f98419c8034f389a5be3755eac8938 + name: '[{#NAME}]: Serial number' + type: DEPENDENT + key: 'smart.disk.sn[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.serial_number + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: inventory + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + trigger_prototypes: + - uuid: 7257c02f398f4338ace1eb3a07cb7362 + expression: 'last(/SMART by Zabbix agent 2/smart.disk.sn[{#NAME}],#1)<>last(/SMART by Zabbix agent 2/smart.disk.sn[{#NAME}],#2) and length(last(/SMART by Zabbix agent 2/smart.disk.sn[{#NAME}]))>0' + name: 'SMART: [{#NAME}]: Disk has been replaced' + event_name: 'SMART: [{#NAME}]: Disk has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2f5b054d7a644e029a195d17f525c191 + name: '[{#NAME}]: Temperature' + type: DEPENDENT + key: 'smart.disk.temperature[{#NAME}]' + delay: '0' + units: °C + description: 'Current drive temperature.' + preprocessing: + - type: JSONPATH + parameters: + - $.temperature + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: temperature + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + trigger_prototypes: + - uuid: cd09aebe3ca146119cdf5b977bf6b018 + expression: 'avg(/SMART by Zabbix agent 2/smart.disk.temperature[{#NAME}],5m)>{$SMART.TEMPERATURE.MAX.CRIT}' + name: 'SMART: [{#NAME}]: Average disk temperature is critical' + event_name: 'SMART: [{#NAME}]: Average disk temperature is critical (over {$SMART.TEMPERATURE.MAX.CRIT}°C for 5m)' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: aaa5acb3196b481f894998c0ca5ea165 + expression: 'avg(/SMART by Zabbix agent 2/smart.disk.temperature[{#NAME}],5m)>{$SMART.TEMPERATURE.MAX.WARN}' + name: 'SMART: [{#NAME}]: Average disk temperature is too high' + event_name: 'SMART: [{#NAME}]: Average disk temperature is too high (over {$SMART.TEMPERATURE.MAX.WARN}°C for 5m)' + priority: WARNING + dependencies: + - name: 'SMART: [{#NAME}]: Average disk temperature is critical' + expression: 'avg(/SMART by Zabbix agent 2/smart.disk.temperature[{#NAME}],5m)>{$SMART.TEMPERATURE.MAX.CRIT}' + tags: + - tag: scope + value: notice + - uuid: 0dc4b9566aad4f7b87e747f49f4c017a + name: '[{#NAME}]: Self-test in progress' + type: DEPENDENT + key: 'smart.disk.test.progress[{#NAME}]' + delay: '0' + description: 'Reports if disk currently is executing SMART self-test.' + valuemap: + name: 'Smart self-test' + preprocessing: + - type: JSONPATH + parameters: + - $.self_test_in_progress + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'true': 1, + 'false': 2, + 'null': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: health + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 434b338d88e041dd9b6a0b7aaa403076 + name: '[{#NAME}]: Self-test passed' + type: DEPENDENT + key: 'smart.disk.test[{#NAME}]' + delay: '0' + description: 'The disk is passed the SMART self-test or not.' + valuemap: + name: 'Smart self-test' + preprocessing: + - type: JSONPATH + parameters: + - $.self_test_passed + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'true': 1, + 'false': 2, + 'null': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: health + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + trigger_prototypes: + - uuid: 5fa97df4012e45279fb55724f617ef4a + expression: 'last(/SMART by Zabbix agent 2/smart.disk.test[{#NAME}])=2 and last(/SMART by Zabbix agent 2/smart.disk.test.progress[{#NAME}])=2' + name: 'SMART: [{#NAME}]: Disk self-test is not passed' + opdata: 'Result: {ITEM.LASTVALUE1}, test in progress: {ITEM.LASTVALUE2}' + priority: HIGH + tags: + - tag: scope + value: notice + overrides: + - name: Self-test + step: '1' + filter: + conditions: + - macro: '{#DISKTYPE}' + value: nvme + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Self-test + discover: NO_DISCOVER + - name: 'Not NVMe' + step: '2' + filter: + conditions: + - macro: '{#DISKTYPE}' + value: nvme + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Media|Percentage|Critical + discover: NO_DISCOVER + - name: Raw_Read_Error_Rate + step: '3' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Raw_Read_Error_Rate + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Raw_Read_Error_Rate + discover: DISCOVER + - name: Spin_Up_Time + step: '4' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Spin_Up_Time + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Spin_Up_Time + discover: DISCOVER + - name: Start_Stop_Count + step: '5' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Start_Stop_Count + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Start_Stop_Count + discover: DISCOVER + - name: Power_Cycle_Count + step: '6' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Power_Cycle_Count + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Power_Cycle_Count + discover: DISCOVER + - name: Reported_Uncorrect + step: '7' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Reported_Uncorrect + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Reported_Uncorrect + discover: DISCOVER + - name: Seek_Error_Rate + step: '8' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Seek_Error_Rate + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Seek_Error_Rate + discover: DISCOVER + - name: Bad_Block_Rate + step: '9' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Bad_Block_Rate + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Bad_Block_Rate + discover: DISCOVER + - name: Program_Fail_Count_Chip + step: '10' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Program_Fail_Count_Chip + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Program_Fail_Count_Chip + discover: DISCOVER + - name: Reallocated_Sector_Ct + step: '11' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Reallocated_Sector_Ct + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Reallocated_Sector_Ct + discover: DISCOVER + tags: + - tag: class + value: storage + - tag: target + value: hdd + - tag: target + value: ssd + macros: + - macro: '{$SMART.DISK.DISCOVERY.TYPE}' + value: name + description: 'This macro is responsible for changing how SMART disks get discovered. Only "name" or "id" values allowed.' + - macro: '{$SMART.DISK.NAME.MATCHES}' + value: '^.*$' + description: 'This macro is used in the filter of attribute and disk discoveries. It can be overridden on the host or linked on the template level.' + - macro: '{$SMART.DISK.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in the filter of attribute and disk discoveries. It can be overridden on the host or linked on the template level.' + - macro: '{$SMART.TEMPERATURE.MAX.CRIT}' + value: '65' + description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.' + - macro: '{$SMART.TEMPERATURE.MAX.WARN}' + value: '50' + description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.' + dashboards: + - uuid: 074166cdd4d54f7e89bd7488283ba5be + name: 'SMART: Overview' + pages: + - name: Temperature + widgets: + - type: graphprototype + width: '72' + height: '20' + fields: + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'SMART by Zabbix agent 2' + key: 'smart.disk.temperature[{#NAME}]' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + - type: INTEGER + name: source_type + value: '3' + - name: 'Power On' + widgets: + - type: graphprototype + width: '72' + height: '20' + fields: + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'SMART by Zabbix agent 2' + key: 'smart.disk.hours[{#NAME}]' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: rows + value: '5' + - type: INTEGER + name: source_type + value: '3' + valuemaps: + - uuid: 82b0797d499544a4832cda04b163109a + name: 'Smart self-test' + mappings: + - value: '0' + newvalue: Undefined + - value: '1' + newvalue: 'True' + - value: '2' + newvalue: 'False' + - value: '3' + newvalue: 'Null' diff --git a/SMART_by_Zabbix_agent_2_active.yaml b/SMART_by_Zabbix_agent_2_active.yaml new file mode 100644 index 0000000..ade056a --- /dev/null +++ b/SMART_by_Zabbix_agent_2_active.yaml @@ -0,0 +1,965 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: e518b1340ce44d7389d2cc7c304a97b4 + template: 'SMART by Zabbix agent 2 active' + name: 'SMART by Zabbix agent 2 active' + description: | + The template for monitoring S.M.A.R.T. attributes of physical disk that works without any external scripts. It collects metrics by Zabbix agent 2 version 5.0 and later with Smartmontools version 7.1 and later. Disk discovery LLD rule finds all HDD, SSD, NVMe disks with S.M.A.R.T. enabled. Attribute discovery LLD rule have pre-defined Vendor Specific Attributes for each disk, and will be discovered if attribute is present. + + Setup: + + 1. Install Zabbix agent 2 and Smartmontools 7.1 or newer. + + 2. Ensure the path to the "smartctl" executable is correctly specified. You can either provide the full path to the executable (e.g., "/usr/sbin/smartctl" on Linux or "C:\Program Files\smartctl\smartctl.exe" on Windows) in the configuration file or ensure that the folder containing the "smartctl" executable is added to the system's environment variables ("PATH"). This applies to both Linux and Windows systems. + + Example for Linux: + Plugins.Smart.Path=/usr/sbin/smartctl + + Example for Windows: + Plugins.Smart.Path="C:\Program Files\smartctl\smartctl.exe" + + 3. Grant Zabbix agent 2 super/admin user privileges for the "smartctl" utility (not required for Windows). Example for Linux (add the line that grants execution of the "smartctl" utility without the password): + + - Run the "visudo" command to edit the "sudoers" file: + sudo visudo + + - Add the permission line and save the changes: + zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/415662-discussion-thread-for-official-zabbix-smart-disk-monitoring + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Server hardware' + discovery_rules: + - uuid: 0a56a348d4a446938beae1eae5ec8993 + name: 'Disk discovery' + type: ZABBIX_ACTIVE + key: 'smart.disk.discovery[{$SMART.DISK.DISCOVERY.TYPE}]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$SMART.DISK.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$SMART.DISK.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery SMART disks.' + item_prototypes: + - uuid: b3891b80915c4e2488f2f87cb173474a + name: '[{#NAME}]: Bad_Block_Rate' + type: DEPENDENT + key: 'smart.disk.attribute.bad_block_rate[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'Percentage of used reserve blocks divided by total reserve blocks.' + preprocessing: + - type: JSONPATH + parameters: + - $.bad_block_rate.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 512c44706bff48fda2ef444713d93b29 + name: '[{#NAME}]: Power_Cycle_Count' + type: DEPENDENT + key: 'smart.disk.attribute.power_cycle_count[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'This attribute indicates the count of full hard disk power on/off cycles.' + preprocessing: + - type: JSONPATH + parameters: + - $.power_cycle_count.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 0ab9412116924ca2a9561b44e4c9d6da + name: '[{#NAME}]: Program_Fail_Count_Chip' + type: DEPENDENT + key: 'smart.disk.attribute.program_fail_count_chip[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'The total number of flash program operation failures since the drive was deployed.' + preprocessing: + - type: JSONPATH + parameters: + - $.program_fail_count_chip.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: f794dc07c88a4690be8512e029f0b50c + name: '[{#NAME}]: Raw_Read_Error_Rate' + type: DEPENDENT + key: 'smart.disk.attribute.raw_read_error_rate[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'Stores data related to the rate of hardware read errors that occurred when reading data from a disk surface. The raw value has different structure for different vendors and is often not meaningful as a decimal number. For some drives, this number may increase during normal operation without necessarily signifying errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.raw_read_error_rate.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 643276ac0dab47b8974e849a1574ac2a + name: '[{#NAME}]: Reallocated_Sector_Ct' + type: DEPENDENT + key: 'smart.disk.attribute.reallocated_sector_ct[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'Disk discovered attribute.' + preprocessing: + - type: JSONPATH + parameters: + - $.reallocated_sector_ct.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: fa253069f1c74a0b9ee3dca5eafef17a + name: '[{#NAME}]: Reported_Uncorrect' + type: DEPENDENT + key: 'smart.disk.attribute.reported_uncorrect[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'The count of errors that could not be recovered using hardware ECC.' + preprocessing: + - type: JSONPATH + parameters: + - $.reported_uncorrect.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 99df8858bc6d4fb4a9fb4abd29b6c852 + name: '[{#NAME}]: Seek_Error_Rate' + type: DEPENDENT + key: 'smart.disk.attribute.seek_error_rate[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'Rate of seek errors of the magnetic heads. If there is a partial failure in the mechanical positioning system, then seek errors will arise. Such a failure may be due to numerous factors, such as damage to a servo, or thermal widening of the hard disk. The raw value has different structure for different vendors and is often not meaningful as a decimal number. For some drives, this number may increase during normal operation without necessarily signifying errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.seek_error_rate.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 422ba65b87444329b5a23d03ce89dda7 + name: '[{#NAME}]: Spin_Up_Time' + type: DEPENDENT + key: 'smart.disk.attribute.spin_up_time[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'Average time of spindle spin up (from zero RPM to fully operational [milliseconds]).' + preprocessing: + - type: JSONPATH + parameters: + - $.spin_up_time.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: eee36c13fc6248f6894188102d215638 + name: '[{#NAME}]: Start_Stop_Count' + type: DEPENDENT + key: 'smart.disk.attribute.start_stop_count[{#NAME}]' + delay: '0' + discover: NO_DISCOVER + description: 'A tally of spindle start/stop cycles. The spindle turns on, and hence the count is increased, both when the hard disk is turned on after having before been turned entirely off (disconnected from power source) and when the hard disk returns from having previously been put to sleep mode.' + preprocessing: + - type: JSONPATH + parameters: + - $.start_stop_count.value + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: attribute + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: ad6a9f6f7293495c916bb0aac0bc9729 + name: '[{#NAME}]: Critical warning' + type: DEPENDENT + key: 'smart.disk.critical_warning[{#NAME}]' + delay: '0' + description: 'This field indicates critical warnings for the state of the controller.' + preprocessing: + - type: JSONPATH + parameters: + - $.critical_warning + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: b96b496a854f4165a44662bd93400b27 + name: '[{#NAME}]: Smartctl error' + type: DEPENDENT + key: 'smart.disk.error[{#NAME}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'This metric will contain smartctl errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 952376ecd47a498cab40ec6872d20454 + name: '[{#NAME}]: Exit status' + type: DEPENDENT + key: 'smart.disk.es[{#NAME}]' + delay: '0' + description: | + The exit statuses of smartctl are defined by a bitmask but in decimal value. The eight different bits in the exit status have the following meanings for ATA disks; some of these values may also be returned for SCSI disks. + Bit 0: Command line did not parse. + Bit 1: Device open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode (see '-n' option above). + Bit 2: Some SMART or other ATA command to the disk failed, or there was a checksum error in a SMART data structure (see '-b' option above). + Bit 3: SMART status check returned "DISK FAILING". + Bit 4: We found prefail Attributes <= threshold. + Bit 5: SMART status check returned "DISK OK" but we found that some (usage or prefail) Attributes have been <= threshold at some time in the past. + Bit 6: The device error log contains records of errors. + Bit 7: The device self-test log contains records of errors. [ATA only] Failed self-tests outdated by a newer successful extended self-test are ignored. + preprocessing: + - type: JSONPATH + parameters: + - $.exit_status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + trigger_prototypes: + - uuid: ec00e4aa70fa4bea92c559e145ca2e18 + expression: | + ( count(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),8) = 8 ) + or ( bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),8) = 8 + and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),8) > bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2),8) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Check returned "DISK FAILING"' + priority: HIGH + description: 'SMART status check returned "DISK FAILING".' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 612c964798d74ab2af23cc6ec5a1d754 + expression: | + ( count(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),1) = 1 ) + or ( bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),1) = 1 + and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),1) > bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2),1) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Command line did not parse' + priority: HIGH + description: 'Command line did not parse.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 3591c8077a894f6b8deaaf8055ca940e + expression: | + ( count(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),2) = 2 ) + or ( bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),2) = 2 + and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),2) > bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2),2) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Device open failed' + priority: HIGH + description: 'Device open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b524364e077a4f898a93af34ef4e6e7f + expression: | + ( count(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),64) = 64 ) + or ( bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),64) = 64 + and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),64) > bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2),64) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Error log contains records' + priority: HIGH + description: 'The device error log contains records of errors.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5e56f837d39b49a89d1f6ca3c45b5737 + expression: | + ( count(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),128) = 128 ) + or ( bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),128) = 128 + and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),128) > bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2),128) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Self-test log contains records' + priority: HIGH + description: | + The device self-test log contains records of errors. [ATA only] + Failed self-tests outdated by a newer successful extended self-test are ignored. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 541318ea2fd14fb4a6f8e8a8df1e4d36 + expression: | + ( count(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),32) = 32 ) + or ( bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),32) = 32 + and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),32) > bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2),32) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Some Attributes have been <= threshold' + priority: HIGH + description: | + SMART status check returned "DISK OK" but we found that some (usage + or prefail) Attributes have been <= threshold at some time in the past. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 00eba731f9ae495f9fe38020897c9aef + expression: | + ( count(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),4) = 4 ) + or ( bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),4) = 4 + and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),4) > bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2),4) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Some command to the disk failed' + priority: HIGH + description: | + Some SMART or other ATA command to the disk failed, + or there was a checksum error in a SMART data structure. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 04dc576b815e432a9cf6d8fee6b08bae + expression: | + ( count(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),16) = 16 ) + or ( bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),16) = 16 + and bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}]),16) > bitand(last(/SMART by Zabbix agent 2 active/smart.disk.es[{#NAME}],#2),16) ) + recovery_mode: NONE + name: 'SMART: [{#NAME}]: Some prefail Attributes <= threshold' + priority: HIGH + description: 'We found prefail Attributes <= threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b26489a8ba12495dbb9687ef52ab1396 + name: '[{#NAME}]: Get disk attributes' + type: ZABBIX_ACTIVE + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + history: '0' + value_type: TEXT + trends: '0' + tags: + - tag: component + value: raw + - tag: component + value: storage + - uuid: e5bbd606e330469389bf081588b88d17 + name: '[{#NAME}]: Power on hours' + type: DEPENDENT + key: 'smart.disk.hours[{#NAME}]' + delay: '0' + description: | + Count of hours in power-on state. The raw value of this attribute + shows total count of hours (or minutes, or seconds, depending on manufacturer) + in power-on state. "By default, the total expected lifetime of a hard disk + in perfect condition is defined as 5 years (running every day and night on + all days). This is equal to 1825 days in 24/7 mode or 43800 hours." On some + pre-2005 drives, this raw value may advance erratically and/or "wrap around" + (reset to zero periodically). https://en.wikipedia.org/wiki/S.M.A.R.T.#Known_ATA_S.M.A.R.T._attributes + preprocessing: + - type: JSONPATH + parameters: + - $.power_on_time + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 0861b008b09a41799978e085625aaa4a + name: '[{#NAME}]: Media errors' + type: DEPENDENT + key: 'smart.disk.media_errors[{#NAME}]' + delay: '0' + description: | + Contains the number of occurrences where the controller detected + an unrecovered data integrity error. Errors such as uncorrectable ECC, CRC + checksum failure, or LBA tag mismatch are included in this field. + preprocessing: + - type: JSONPATH + parameters: + - $.media_errors + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: f48fe3366b194eb4942411cc776c8633 + name: '[{#NAME}]: Device model' + type: DEPENDENT + key: 'smart.disk.model[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.model_name + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: inventory + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: d5cef21c49994c3e8e12ef6471d7cdcd + name: '[{#NAME}]: Percentage used' + type: DEPENDENT + key: 'smart.disk.percentage_used[{#NAME}]' + delay: '0' + units: '%' + description: | + Contains a vendor specific estimate of the percentage of NVM subsystem + life used based on the actual usage and the manufacturer's prediction of NVM + life. A value of 100 indicates that the estimated endurance of the NVM in + the NVM subsystem has been consumed, but may not indicate an NVM subsystem + failure. The value is allowed to exceed 100. Percentages greater than 254 + shall be represented as 255. This value shall be updated once per power-on + hour (when the controller is not in a sleep state). + preprocessing: + - type: JSONPATH + parameters: + - $.percentage_used + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: storage + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + trigger_prototypes: + - uuid: 68f373252bee4f9e8f3b33d04fc1adbd + expression: 'last(/SMART by Zabbix agent 2 active/smart.disk.percentage_used[{#NAME}])>90' + name: 'SMART: [{#NAME}]: NVMe disk percentage using is over 90% of estimated endurance' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: 189d8e8d16ed40229ba3ca52b75d2dc4 + name: '[{#NAME}]: Serial number' + type: DEPENDENT + key: 'smart.disk.sn[{#NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.serial_number + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: inventory + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + trigger_prototypes: + - uuid: 2d5cf100fe094c819d725ee598d37de8 + expression: 'last(/SMART by Zabbix agent 2 active/smart.disk.sn[{#NAME}],#1)<>last(/SMART by Zabbix agent 2 active/smart.disk.sn[{#NAME}],#2) and length(last(/SMART by Zabbix agent 2 active/smart.disk.sn[{#NAME}]))>0' + name: 'SMART: [{#NAME}]: Disk has been replaced' + event_name: 'SMART: [{#NAME}]: Disk has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e79eaaf7ee0d40e7b91fc019f5edb19e + name: '[{#NAME}]: Temperature' + type: DEPENDENT + key: 'smart.disk.temperature[{#NAME}]' + delay: '0' + units: °C + description: 'Current drive temperature.' + preprocessing: + - type: JSONPATH + parameters: + - $.temperature + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: temperature + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + trigger_prototypes: + - uuid: 7f46b24934854866849dd758cb5999d5 + expression: 'avg(/SMART by Zabbix agent 2 active/smart.disk.temperature[{#NAME}],5m)>{$SMART.TEMPERATURE.MAX.CRIT}' + name: 'SMART: [{#NAME}]: Average disk temperature is critical' + event_name: 'SMART: [{#NAME}]: Average disk temperature is critical (over {$SMART.TEMPERATURE.MAX.CRIT}°C for 5m)' + priority: AVERAGE + tags: + - tag: scope + value: notice + - uuid: c903a37f4b004e1593ef85ac893c3f6c + expression: 'avg(/SMART by Zabbix agent 2 active/smart.disk.temperature[{#NAME}],5m)>{$SMART.TEMPERATURE.MAX.WARN}' + name: 'SMART: [{#NAME}]: Average disk temperature is too high' + event_name: 'SMART: [{#NAME}]: Average disk temperature is too high (over {$SMART.TEMPERATURE.MAX.WARN}°C for 5m)' + priority: WARNING + dependencies: + - name: 'SMART: [{#NAME}]: Average disk temperature is critical' + expression: 'avg(/SMART by Zabbix agent 2 active/smart.disk.temperature[{#NAME}],5m)>{$SMART.TEMPERATURE.MAX.CRIT}' + tags: + - tag: scope + value: notice + - uuid: d9b2164e304c4a00a921cf11a0194e79 + name: '[{#NAME}]: Self-test in progress' + type: DEPENDENT + key: 'smart.disk.test.progress[{#NAME}]' + delay: '0' + description: 'Reports if disk currently is executing SMART self-test.' + valuemap: + name: 'Smart self-test' + preprocessing: + - type: JSONPATH + parameters: + - $.self_test_in_progress + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'true': 1, + 'false': 2, + 'null': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: health + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + - uuid: 2475415cc95b4103b2933f921e62dd36 + name: '[{#NAME}]: Self-test passed' + type: DEPENDENT + key: 'smart.disk.test[{#NAME}]' + delay: '0' + description: 'The disk is passed the SMART self-test or not.' + valuemap: + name: 'Smart self-test' + preprocessing: + - type: JSONPATH + parameters: + - $.self_test_passed + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'true': 1, + 'false': 2, + 'null': 3, + }; + + return typeof idx[value] === 'undefined' ? 0 : idx[value]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]' + tags: + - tag: component + value: health + - tag: diskname + value: '{#NAME}' + - tag: disktype + value: '{#DISKTYPE}' + trigger_prototypes: + - uuid: 304bd042b7644a31bb74a1e71808d196 + expression: 'last(/SMART by Zabbix agent 2 active/smart.disk.test[{#NAME}])=2 and last(/SMART by Zabbix agent 2 active/smart.disk.test.progress[{#NAME}])=2' + name: 'SMART: [{#NAME}]: Disk self-test is not passed' + opdata: 'Result: {ITEM.LASTVALUE1}, test in progress: {ITEM.LASTVALUE2}' + priority: HIGH + tags: + - tag: scope + value: notice + overrides: + - name: Self-test + step: '1' + filter: + conditions: + - macro: '{#DISKTYPE}' + value: nvme + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Self-test + discover: NO_DISCOVER + - name: 'Not NVMe' + step: '2' + filter: + conditions: + - macro: '{#DISKTYPE}' + value: nvme + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Media|Percentage|Critical + discover: NO_DISCOVER + - name: Raw_Read_Error_Rate + step: '3' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Raw_Read_Error_Rate + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Raw_Read_Error_Rate + discover: DISCOVER + - name: Spin_Up_Time + step: '4' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Spin_Up_Time + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Spin_Up_Time + discover: DISCOVER + - name: Start_Stop_Count + step: '5' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Start_Stop_Count + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Start_Stop_Count + discover: DISCOVER + - name: Power_Cycle_Count + step: '6' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Power_Cycle_Count + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Power_Cycle_Count + discover: DISCOVER + - name: Reported_Uncorrect + step: '7' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Reported_Uncorrect + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Reported_Uncorrect + discover: DISCOVER + - name: Seek_Error_Rate + step: '8' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Seek_Error_Rate + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Seek_Error_Rate + discover: DISCOVER + - name: Bad_Block_Rate + step: '9' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Bad_Block_Rate + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Bad_Block_Rate + discover: DISCOVER + - name: Program_Fail_Count_Chip + step: '10' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Program_Fail_Count_Chip + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Program_Fail_Count_Chip + discover: DISCOVER + - name: Reallocated_Sector_Ct + step: '11' + filter: + conditions: + - macro: '{#ATTRIBUTES}' + value: Reallocated_Sector_Ct + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: Reallocated_Sector_Ct + discover: DISCOVER + tags: + - tag: class + value: storage + - tag: target + value: hdd + - tag: target + value: ssd + macros: + - macro: '{$SMART.DISK.DISCOVERY.TYPE}' + value: name + description: 'This macro is responsible for changing how SMART disks get discovered. Only "name" or "id" values allowed.' + - macro: '{$SMART.DISK.NAME.MATCHES}' + value: '^.*$' + description: 'This macro is used in the filter of attribute and disk discoveries. It can be overridden on the host or linked on the template level.' + - macro: '{$SMART.DISK.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in the filter of attribute and disk discoveries. It can be overridden on the host or linked on the template level.' + - macro: '{$SMART.TEMPERATURE.MAX.CRIT}' + value: '65' + description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.' + - macro: '{$SMART.TEMPERATURE.MAX.WARN}' + value: '50' + description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.' + dashboards: + - uuid: 3168a06be7744331b78574fbbc28826e + name: 'SMART: Overview' + pages: + - name: Temperature + widgets: + - type: graphprototype + width: '72' + height: '20' + fields: + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'SMART by Zabbix agent 2 active' + key: 'smart.disk.temperature[{#NAME}]' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + - type: INTEGER + name: source_type + value: '3' + - name: 'Power On' + widgets: + - type: graphprototype + width: '72' + height: '20' + fields: + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'SMART by Zabbix agent 2 active' + key: 'smart.disk.hours[{#NAME}]' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: rows + value: '5' + - type: INTEGER + name: source_type + value: '3' + valuemaps: + - uuid: 404d3c19ceef4e8e9c14d5e34bbd2a7b + name: 'Smart self-test' + mappings: + - value: '0' + newvalue: Undefined + - value: '1' + newvalue: 'True' + - value: '2' + newvalue: 'False' + - value: '3' + newvalue: 'Null' diff --git a/Solaris_by_Zabbix_agent.yaml b/Solaris_by_Zabbix_agent.yaml new file mode 100644 index 0000000..adc7fe1 --- /dev/null +++ b/Solaris_by_Zabbix_agent.yaml @@ -0,0 +1,1110 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: eaf36c98b91843b7b79bd5184a23d377 + template: 'Solaris by Zabbix agent' + name: 'Solaris by Zabbix agent' + description: | + This is an official Solaris OS template. It requires Zabbix agent 7.0 or newer. + + Notes on filesystem (FS) discovery: + - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default. + - BTRFS allocates a default of 10% of the volume for its own needs. + - To mitigate potential disasters, FS usage triggers are based on the maximum available space. + - Utilization formula: 'pused = 100 - 100 * (available / total - free + available)' + - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: 0a64ce48b94b4886af4bd97beab5f93d + name: 'Host name of Zabbix agent running' + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: d708ce58ad214d19a740824512e8be6a + name: 'Zabbix agent ping' + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + - uuid: 633a1d74569f4f61892dabf7e0acf6c1 + name: 'Version of Zabbix agent running' + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: 2fa6d58a5c7d48da90b1caf521e867cd + name: 'Maximum number of processes' + key: kernel.maxproc + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + tags: + - tag: component + value: processes + triggers: + - uuid: 2a567bc9d5584dfea986b5b70c89fc65 + expression: 'last(/Solaris by Zabbix agent/kernel.maxproc)<256' + name: 'Solaris: Configured max number of processes is too low' + priority: INFO + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: 7c8c8421fb514e67bc9f14cefe4018f3 + name: 'Number of running processes' + key: 'proc.num[,,run]' + description: 'The number of processes in a running state.' + tags: + - tag: component + value: processes + triggers: + - uuid: 6504ba0f7fa445ea9083af008d52c525 + expression: 'avg(/Solaris by Zabbix agent/proc.num[,,run],5m)>30' + name: 'Solaris: Too many processes running' + priority: WARNING + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: 74c805e8bfd947348b206a0d33bfc461 + name: 'Number of processes' + key: 'proc.num[]' + description: 'The total number of processes in any state.' + tags: + - tag: component + value: processes + triggers: + - uuid: cc2731add899436ca2c12fff13c838fb + expression: 'avg(/Solaris by Zabbix agent/proc.num[],5m)>300' + name: 'Solaris: Too many processes' + priority: WARNING + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: 1812e26de9ad4a36abb5498154e6ea3c + name: 'Host boot time' + key: system.boottime + delay: 10m + units: unixtime + tags: + - tag: component + value: os + - uuid: 8186ed95ed8c4d6eb52ea2e718984170 + name: 'Interrupts per second' + key: system.cpu.intr + units: ips + description: 'Number of interrupts processed.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: 1a7cc53a5497427da28f882b1b185fad + name: 'Processor load (1 min average per core)' + key: 'system.cpu.load[percpu,avg1]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + triggers: + - uuid: e7ef1c2b702440a3a7a20a544446a068 + expression: 'avg(/Solaris by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5' + name: 'Solaris: Processor load is too high' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 5b053b6c00464f8b8f5fc49fffda1394 + name: 'Processor load (5 min average per core)' + key: 'system.cpu.load[percpu,avg5]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: c13c2ff556594c5d985420dc974659cf + name: 'Processor load (15 min average per core)' + key: 'system.cpu.load[percpu,avg15]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 320f8803624f4ad2b9e66f1a08f5a145 + name: 'Context switches per second' + key: system.cpu.switches + units: sps + description: 'The combined rate at which all processors on the computer are switched from one thread to another.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: a653205d5ce4462089da4ed4d6f97f3a + name: 'CPU idle time' + key: 'system.cpu.util[,idle]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent doing nothing.' + tags: + - tag: component + value: cpu + - uuid: 9bee92be803c48489509e41c19718abc + name: 'CPU iowait time' + key: 'system.cpu.util[,iowait]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has been waiting for the I/O to complete.' + tags: + - tag: component + value: cpu + triggers: + - uuid: 280634a65c9d4702a4913c9c2cd5869c + expression: 'avg(/Solaris by Zabbix agent/system.cpu.util[,iowait],5m)>20' + name: 'Solaris: Disk I/O is overloaded' + priority: WARNING + description: 'Extended OS wait times for I/O operations may signal potential performance issues with the storage system.' + tags: + - tag: scope + value: performance + - uuid: bb32808bf73f489399ecb3e02bc18194 + name: 'CPU system time' + key: 'system.cpu.util[,system]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running the kernel and its processes.' + tags: + - tag: component + value: cpu + - uuid: d30ad6a457df4e39819b76fc1be7a562 + name: 'CPU user time' + key: 'system.cpu.util[,user]' + value_type: FLOAT + units: '%' + description: 'Time the CPU has spent running users'' processes that are not niced.' + tags: + - tag: component + value: cpu + - uuid: 1945e624e1864f2ba543f9438b1733f1 + name: 'Host name' + key: system.hostname + delay: 1h + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: cc5a9c97827f4091b83af8be33d58560 + expression: 'last(/Solaris by Zabbix agent/system.hostname,#1)<>last(/Solaris by Zabbix agent/system.hostname,#2)' + name: 'Solaris: Hostname was changed' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 0a0a8ab7047b400aaffe99917349291e + name: 'Host local time' + key: system.localtime + units: unixtime + description: 'The local system time of the host.' + tags: + - tag: component + value: os + - uuid: 71597a2dfdeb4c63acf7505ffb7f4f08 + name: 'Free swap space' + key: 'system.swap.size[,free]' + units: B + description: 'The free space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: b2ee2b52a64841e282915d6de3c7f739 + name: 'Free swap space in %' + key: 'system.swap.size[,pfree]' + value_type: FLOAT + units: '%' + description: 'The free space of the swap volume/file expressed in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 7be6856162ca445388b13e524f01a3c2 + expression: 'last(/Solaris by Zabbix agent/system.swap.size[,pfree])<50' + name: 'Solaris: Lack of free swap space' + priority: WARNING + description: 'It probably means that the systems requires more physical memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 0e7ea1fd204c44f3b0a7880eac21a0df + name: 'Total swap space' + key: 'system.swap.size[,total]' + delay: 1h + units: B + description: 'Total space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 034f7934cdb54cc6b99194fac9197bfb + name: 'System information' + key: system.uname + delay: 1h + value_type: CHAR + trends: '0' + description: 'Information as normally returned by `uname -a`.' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: dc293e688ac54ac0aee61e398d8bc5c5 + expression: 'last(/Solaris by Zabbix agent/system.uname,#1)<>last(/Solaris by Zabbix agent/system.uname,#2)' + name: 'Solaris: Host information was changed' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: c15a8b1b6cbd446bad669ead64a172a1 + name: 'System uptime' + key: system.uptime + delay: 10m + units: uptime + tags: + - tag: component + value: os + triggers: + - uuid: 56284beb4a464017b3aa2f4c00bc271f + expression: 'change(/Solaris by Zabbix agent/system.uptime)<0' + name: 'Solaris: Server has just been restarted' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: a2c0d69124424e49aa4fc1f2416ffc37 + name: 'Number of logged in users' + key: system.users.num + description: 'The number of users who are currently logged in.' + tags: + - tag: component + value: security + - uuid: 5dd55b892d1b4828bfc570d6bf48251d + name: 'Checksum of /etc/passwd' + key: 'vfs.file.cksum[/etc/passwd,sha256]' + delay: 15m + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: security + triggers: + - uuid: 50e5be0acabb41658ec82772d9ec234e + expression: 'last(/Solaris by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/Solaris by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)' + name: 'Solaris: /etc/passwd has been changed' + priority: WARNING + tags: + - tag: scope + value: security + - uuid: 897f991e6f8f433bbd52a958f4f54c08 + name: 'Get filesystems' + key: vfs.fs.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.' + tags: + - tag: component + value: raw + - uuid: 6888f0dd6b2e418f8c28a0ee59648fa3 + name: 'Available memory' + key: 'vm.memory.size[available]' + units: B + description: 'Defined as free + cached + buffers.' + tags: + - tag: component + value: memory + triggers: + - uuid: a0769befcb4e4c649557926824d7dbf3 + expression: 'last(/Solaris by Zabbix agent/vm.memory.size[available])<20M' + name: 'Solaris: Lack of available memory on server' + priority: AVERAGE + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: d96d5ebfa074428e957335b5fa58189b + name: 'Total memory' + key: 'vm.memory.size[total]' + delay: 1h + units: B + description: 'Total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 46dc8d0138314f41962dc357d1e4af20 + name: 'Zabbix agent availability' + type: INTERNAL + key: 'zabbix[host,agent,available]' + description: 'Used for monitoring agent availability status' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: 4ca39fa4a86c45e19e03eff89edd239b + expression: 'max(/Solaris by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0' + name: 'Solaris: Zabbix agent is not available' + event_name: 'Solaris: Zabbix agent is not available (for {$AGENT.TIMEOUT})' + priority: AVERAGE + description: 'For passive checks only; the availability of the agent(s) and a host is used with `{$AGENT.TIMEOUT}` as the time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 6a47f796859241c1aa30f0d731cacf52 + name: 'Network interface discovery' + key: net.if.discovery + delay: 1h + filter: + conditions: + - macro: '{#IFNAME}' + value: '@Network interfaces for discovery' + formulaid: A + description: 'Used for the discovery of network interfaces.' + item_prototypes: + - uuid: 548f317737ee4facbed4a371f3476352 + name: 'Interface {#IFNAME}: Incoming network traffic' + key: 'net.if.in[{#IFNAME}]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interfaces + - tag: interfaces + value: '{#IFNAME}' + - uuid: 02dbf0af85294ab0bbf042fca79448cc + name: 'Interface {#IFNAME}: Outgoing network traffic' + key: 'net.if.out[{#IFNAME}]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: interfaces + - tag: interfaces + value: '{#IFNAME}' + graph_prototypes: + - uuid: 61d0d627f36e4b1b97fec7857ac99ac1 + name: 'Interface {#IFNAME}: Network traffic' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 00AA00 + item: + host: 'Solaris by Zabbix agent' + key: 'net.if.in[{#IFNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 3333FF + item: + host: 'Solaris by Zabbix agent' + key: 'net.if.out[{#IFNAME}]' + - uuid: 3abf31160b404cf095daca79f2a03188 + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: vfs.fs.dependent.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'The discovery of mounted filesystems with different types.' + item_prototypes: + - uuid: aa40b3df2229405193c373b00064e420 + name: 'FS [{#FSNAME}]: Inodes: Free, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free metadata space expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.inodes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: dcf89ee9976944e3af1357fadc028d22 + expression: 'min(/Solaris by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + name: 'Solaris: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'Solaris: {#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: a56d85c866814b5e9273815beafba98c + expression: 'min(/Solaris by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' + name: 'Solaris: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'Solaris: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + dependencies: + - name: 'Solaris: FS [{#FSNAME}]: Running out of free inodes' + expression: 'min(/Solaris by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: e4c935091c6c49f185ef0e93963388ff + name: 'FS [{#FSNAME}]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + delay: '0' + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.free + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: e2805fb218d64ddd8ea58beae73e1343 + name: 'FS [{#FSNAME}]: Space: Available, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Deprecated metric. + Space availability expressed as a percentage, calculated using the current and maximum available spaces. + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: deprecated + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 3b4f23722c49429ba5b6a6ecccb52d95 + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pused + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 091ecfd7c946472aa370e98f1d97ffe6 + expression: 'min(/Solaris by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'Solaris: FS [{#FSNAME}]: Space is critically low' + event_name: 'Solaris: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: e93165ebd8d94064836405c8c377bf62 + expression: 'min(/Solaris by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'Solaris: FS [{#FSNAME}]: Space is low' + event_name: 'Solaris: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'Solaris: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/Solaris by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: e15cfb60494944db8e9b2fe929d91fef + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + delay: '0' + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.total + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 0da8a65250ec4027b3093772f5c26532 + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + delay: '0' + units: B + description: 'Used storage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.used + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 2076c4c4799646d9b42f881369a36f7d + name: 'FS [{#FSNAME}]: Get data' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},data]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Intermediate data of `{#FSNAME}` filesystem.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.fsname==''{#FSNAME}'')].first()' + master_item: + key: vfs.fs.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: de8a43c30de44e83b381b75254735a10 + name: 'FS [{#FSNAME}]: Option: Read-only' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},readonly]' + delay: '0' + description: 'The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.' + preprocessing: + - type: JSONPATH + parameters: + - $.options + error_handler: DISCARD_VALUE + - type: REGEX + parameters: + - '(?:^|,)ro\b' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: cbbcf1204cf345ceaaf2a9b12996f52f + expression: 'last(/Solaris by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/Solaris by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=1' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Solaris by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=0' + name: 'Solaris: FS [{#FSNAME}]: Filesystem has become read-only' + priority: AVERAGE + description: 'The filesystem has become read-only, possibly due to an I/O error. Available only for Zabbix agents 6.4 and higher.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: e6dd13c45cac48db8aead11e9af0cd9d + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'Solaris by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + - uuid: 38a43d8fa8fb40f2aa59dd6a8f069f90 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Solaris by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Solaris by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'Solaris by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + master_item: + key: vfs.fs.get + lld_macro_paths: + - lld_macro: '{#FSNAME}' + path: $.fsname + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'fsname': filesystem.fsname, + 'fstype': filesystem.fstype + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Skip metadata collection for dynamic FS' + step: '1' + filter: + conditions: + - macro: '{#FSTYPE}' + value: ^(btrfs|zfs)$ + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Inodes + discover: NO_DISCOVER + tags: + - tag: class + value: os + - tag: target + value: solaris + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 3m + description: 'Timeout after which the agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (in passive mode).' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: 7a8dd74f9e2d4df090a76d0fc1eabdcf + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Solaris by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Solaris by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + - type: STRING + name: reference + value: AAAEC + - uuid: 774e5b14c75c49b4a3a4196ce1ccdaf7 + name: 'System performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Solaris by Zabbix agent' + name: 'CPU load' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Solaris by Zabbix agent' + name: 'Memory usage' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Solaris by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEA + - type: graph + 'y': '15' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Solaris by Zabbix agent' + key: 'proc.num[]' + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Solaris by Zabbix agent' + name: 'CPU utilization' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Solaris by Zabbix agent' + name: 'Swap usage' + - type: STRING + name: reference + value: AAAAD + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Solaris by Zabbix agent' + key: 'proc.num[,,run]' + - type: STRING + name: reference + value: AAAAF + - type: INTEGER + name: source_type + value: '1' + valuemaps: + - uuid: 2a704279b6e946a99b88bdebd4f99653 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 5db838501e354313888d84800658ed6a + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up + graphs: + - uuid: 9a3df2f49bf24b4597c6e488e1016f78 + name: 'CPU jumps' + graph_items: + - color: '009900' + item: + host: 'Solaris by Zabbix agent' + key: system.cpu.switches + - sortorder: '1' + color: '000099' + item: + host: 'Solaris by Zabbix agent' + key: system.cpu.intr + - uuid: f66887f0152c484d80b8fe77d5fd2cdd + name: 'CPU load' + ymin_type_1: FIXED + graph_items: + - color: '009900' + item: + host: 'Solaris by Zabbix agent' + key: 'system.cpu.load[percpu,avg1]' + - sortorder: '1' + color: '000099' + item: + host: 'Solaris by Zabbix agent' + key: 'system.cpu.load[percpu,avg5]' + - sortorder: '2' + color: '990000' + item: + host: 'Solaris by Zabbix agent' + key: 'system.cpu.load[percpu,avg15]' + - uuid: 2b7e4221d79e4db8bf0463e0bb347eb0 + name: 'CPU utilization' + show_triggers: 'NO' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: '999900' + item: + host: 'Solaris by Zabbix agent' + key: 'system.cpu.util[,iowait]' + - sortorder: '1' + color: '990000' + item: + host: 'Solaris by Zabbix agent' + key: 'system.cpu.util[,system]' + - sortorder: '2' + color: '000099' + item: + host: 'Solaris by Zabbix agent' + key: 'system.cpu.util[,user]' + - sortorder: '3' + color: '009900' + item: + host: 'Solaris by Zabbix agent' + key: 'system.cpu.util[,idle]' + - uuid: 150f0e2062a844a9a8bfcaca92ffbf39 + name: 'Memory usage' + ymin_type_1: FIXED + ymax_type_1: ITEM + ymax_item_1: + host: 'Solaris by Zabbix agent' + key: 'vm.memory.size[total]' + graph_items: + - drawtype: GRADIENT_LINE + color: 00C800 + item: + host: 'Solaris by Zabbix agent' + key: 'vm.memory.size[available]' + - uuid: 061e20f2db6e4a43b35780702b3ebbfa + name: 'Swap usage' + width: '600' + height: '340' + show_work_period: 'NO' + show_triggers: 'NO' + type: PIE + show_3d: 'YES' + graph_items: + - color: AA0000 + type: GRAPH_SUM + item: + host: 'Solaris by Zabbix agent' + key: 'system.swap.size[,total]' + - sortorder: '1' + color: 00AA00 + item: + host: 'Solaris by Zabbix agent' + key: 'system.swap.size[,free]' diff --git a/Squid_by_SNMP.yaml b/Squid_by_SNMP.yaml new file mode 100644 index 0000000..f359ae9 --- /dev/null +++ b/Squid_by_SNMP.yaml @@ -0,0 +1,1191 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 8e5236f799b347a8ae90a979198be85e + template: 'Squid by SNMP' + name: 'Squid by SNMP' + description: | + Template for monitoring Squid caching proxy via SNMP + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/409339-discussion-thread-for-official-zabbix-template-squid + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 86cc718ce21b4ff9b0a09479ae3fc130 + name: 'Service ping' + type: SIMPLE + key: 'net.tcp.service[tcp,,{$SQUID.HTTP.PORT}]' + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7e0f0a9e8a9d4f6193946e4f8cd4a2e3 + expression: 'last(/Squid by SNMP/net.tcp.service[tcp,,{$SQUID.HTTP.PORT}])=0' + name: 'Squid: Port {$SQUID.HTTP.PORT} is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 6d7f0f6b0f89462e96e86940b779eb69 + name: 'CPU usage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.5.0]' + key: 'squid[cacheCpuUsage]' + value_type: FLOAT + units: '%' + description: 'The percentage use of the CPU' + tags: + - tag: component + value: cpu + - uuid: 960b137ab773492ab3073e108575e4fc + name: 'File descriptor count - current used' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.12.0]' + key: 'squid[cacheCurrentFileDescrCnt]' + value_type: FLOAT + description: 'Number of file descriptors in use' + tags: + - tag: component + value: system + - uuid: 37b45201f8444583b01e0df5af2bc14e + name: 'File descriptor count - current maximum' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.13.0]' + key: 'squid[cacheCurrentFileDescrMax]' + value_type: FLOAT + description: 'Highest number of file descriptors in use' + tags: + - tag: component + value: system + - uuid: 910afdc20767408f90d1bc5b7a9fd6a4 + name: 'Objects LRU expiration age' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.8.0]' + key: 'squid[cacheCurrentLRUExpiration]' + value_type: FLOAT + units: s + description: 'Storage LRU Expiration Age' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: objects + - uuid: 26b8b1a25dc74099b61813905477b414 + name: 'File descriptor count - current reserved' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.11.0]' + key: 'squid[cacheCurrentResFileDescrCnt]' + value_type: FLOAT + description: 'Reserved number of file descriptors' + tags: + - tag: component + value: system + - uuid: 35f3009401b6449d95988d9ee7a621a7 + name: 'Cache swap current size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.1.14.0]' + key: 'squid[cacheCurrentSwapSize]' + value_type: FLOAT + units: B + description: 'Storage Swap Size' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 0789a0fa3e3b42a08a5e5bf8d0307970 + name: 'Objects unlinkd requests' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.9.0]' + key: 'squid[cacheCurrentUnlinkRequests]' + value_type: FLOAT + description: 'Requests given to unlinkd' + tags: + - tag: component + value: objects + - uuid: 6bc024be663b466ca677941130e11f50 + name: 'File descriptor count - current available' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.10.0]' + key: 'squid[cacheCurrentUnusedFDescrCnt]' + value_type: FLOAT + description: 'Available number of file descriptors' + tags: + - tag: component + value: system + triggers: + - uuid: 40c41c87e46443f886506da5e580657e + expression: 'last(/Squid by SNMP/squid[cacheCurrentUnusedFDescrCnt])<{$SQUID.FILE.DESC.WARN.MIN}' + name: 'Squid: Squid is running out of file descriptors' + event_name: 'Squid: Squid is running out of file descriptors (<{$SQUID.FILE.DESC.WARN.MIN})' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 1aecf10756f949999c8f3fe5ce9c2a32 + name: 'DNS server replies per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.4.3.2.0]' + key: 'squid[cacheDnsReplies]' + value_type: FLOAT + description: 'Number of external dns server replies' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: dns + - tag: component + value: replies + - uuid: e5f647c77bdb498e9cc286795bc4077c + name: 'DNS server requests per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.4.3.1.0]' + key: 'squid[cacheDnsRequests]' + value_type: FLOAT + description: 'Number of external dns server requests' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: dns + - tag: component + value: requests + - uuid: 3f4366896dd84b8ab78d6e3dc8a6ab63 + name: 'DNS service time per 5 minutes' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.8.5]' + key: 'squid[cacheDnsSvcTime.5]' + value_type: FLOAT + units: s + description: 'DNS service time per 5 minutes' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: dns + - uuid: 99448052f1a34e15a5c042124db7b651 + name: 'DNS service time per hour' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.8.60]' + key: 'squid[cacheDnsSvcTime.60]' + value_type: FLOAT + units: s + description: 'DNS service time per hour' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: dns + - uuid: 0aea1fe702004d65919fc010c971c3b5 + name: 'FQDN cache hits per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.4.2.3.0]' + key: 'squid[cacheFqdnHits]' + value_type: FLOAT + description: 'Number of FQDN Cache hits' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: dns + - tag: component + value: hits + - uuid: 2dea9b707b844d32b65a2d479ddb7d72 + name: 'FQDN cache misses per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.4.2.6.0]' + key: 'squid[cacheFqdnMisses]' + value_type: FLOAT + description: 'Number of FQDN Cache misses' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: dns + - tag: component + value: misses + - uuid: 1dad3f381c174b869c73f55cd831b40a + name: 'FQDN cache requests per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.4.2.2.0]' + key: 'squid[cacheFqdnRequests]' + value_type: FLOAT + description: 'Number of FQDN Cache requests' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: dns + - tag: component + value: requests + - uuid: 633a70cd41c44f2c895148a7ae394acd + name: 'HTTP all service time per 5 minutes' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.2.5]' + key: 'squid[cacheHttpAllSvcTime.5]' + value_type: FLOAT + units: s + description: 'HTTP all service time per 5 minutes' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: http + - uuid: d3aa021743134d97af9dd8840b0ef692 + name: 'HTTP all service time per hour' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.2.60]' + key: 'squid[cacheHttpAllSvcTime.60]' + value_type: FLOAT + units: s + description: 'HTTP all service time per hour' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: http + - uuid: 7f5bd8f89ea0495ea87c294fb8c606dd + name: 'HTTP Errors sent per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.1.3.0]' + key: 'squid[cacheHttpErrors]' + value_type: FLOAT + description: 'Number of HTTP Errors sent to clients' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: errors + - tag: component + value: http + - uuid: 0c4fd7c154a44442a3cec82ba4026b7d + name: 'HTTP hit service time per 5 minutes' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.5.5]' + key: 'squid[cacheHttpHitSvcTime.5]' + value_type: FLOAT + units: s + description: 'HTTP hit service time per 5 minutes' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: hits + - tag: component + value: http + - uuid: a642c99d6c3f4f5e8ec218459fd76f04 + name: 'HTTP hit service time per hour' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.5.60]' + key: 'squid[cacheHttpHitSvcTime.60]' + value_type: FLOAT + units: s + description: 'HTTP hit service time per hour' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: hits + - tag: component + value: http + - uuid: adfe3e2fc775400991d2ea2f06218daf + name: 'HTTP Hits sent from cache per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.1.2.0]' + key: 'squid[cacheHttpHits]' + value_type: FLOAT + description: 'Number of HTTP Hits sent to clients from cache' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: hits + - tag: component + value: http + - uuid: f2366a6008cb4dc7856904ea5c6631dd + name: 'HTTP traffic received per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.1.4.0]' + key: 'squid[cacheHttpInKb]' + value_type: FLOAT + units: Bps + description: 'Number of HTTP traffic received from clients' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: http + - tag: component + value: network + - uuid: f8fa271a272442369b6cbc4fb1a2decc + name: 'HTTP miss service time per 5 minutes' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.3.5]' + key: 'squid[cacheHttpMissSvcTime.5]' + value_type: FLOAT + units: s + description: 'HTTP miss service time per 5 minutes' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: http + - tag: component + value: misses + - uuid: 23e5a3bd6e9a4c50a7d54336a6afc1e1 + name: 'HTTP miss service time per hour' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.3.60]' + key: 'squid[cacheHttpMissSvcTime.60]' + value_type: FLOAT + units: s + description: 'HTTP miss service time per hour' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: http + - tag: component + value: misses + - uuid: ff6b7946363d44bba5721c82c8f84df7 + name: 'HTTP traffic sent per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.1.5.0]' + key: 'squid[cacheHttpOutKb]' + value_type: FLOAT + units: Bps + description: 'Number of HTTP traffic sent to clients' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: http + - tag: component + value: network + - uuid: bde307ead15d48859a97e35e52327d50 + name: 'ICP traffic received per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.1.9.0]' + key: 'squid[cacheIcpKbRecv]' + value_type: FLOAT + units: Bps + description: 'Number of ICP traffic received' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: icp + - tag: component + value: network + - uuid: 7234b612b50a45e0a1bb69654e2e784d + name: 'ICP traffic transmitted per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.1.8.0]' + key: 'squid[cacheIcpKbSent]' + value_type: FLOAT + units: Bps + description: 'Number of ICP traffic transmitted' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: icp + - tag: component + value: network + - uuid: 9ee83c13fa6d41dfb8bfea91c02341b9 + name: 'ICP messages received per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.1.7.0]' + key: 'squid[cacheIcpPktsRecv]' + value_type: FLOAT + description: 'Number of ICP messages received' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: icp + - uuid: dee7d8cf211b4ad0a645a8d6d4f24c31 + name: 'ICP messages sent per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.1.6.0]' + key: 'squid[cacheIcpPktsSent]' + value_type: FLOAT + description: 'Number of ICP messages sent' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: icp + - uuid: cb9d0c300beb47568e99ff7966e1b10e + name: 'ICP query service time per 5 minutes' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.6.5]' + key: 'squid[cacheIcpQuerySvcTime.5]' + value_type: FLOAT + units: s + description: 'ICP query service time per 5 minutes' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: icp + - tag: component + value: queries + - uuid: 9130a0bc53144fe992b701aa9159ff70 + name: 'ICP query service time per hour' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.6.60]' + key: 'squid[cacheIcpQuerySvcTime.60]' + value_type: FLOAT + units: s + description: 'ICP query service time per hour' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: icp + - tag: component + value: queries + - uuid: 35a7585432b3467585ff98b23e610d82 + name: 'ICP reply service time per 5 minutes' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.7.5]' + key: 'squid[cacheIcpReplySvcTime.5]' + value_type: FLOAT + units: s + description: 'ICP reply service time per 5 minutes' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: icp + - tag: component + value: replies + - uuid: 94eab55af41a465196588d08acbacb56 + name: 'ICP reply service time per hour' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.7.60]' + key: 'squid[cacheIcpReplySvcTime.60]' + value_type: FLOAT + units: s + description: 'ICP reply service time per hour' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: icp + - tag: component + value: replies + - uuid: c5409583483e4024aabaab500bcb637a + name: 'IP cache hits per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.4.1.3.0]' + key: 'squid[cacheIpHits]' + value_type: FLOAT + description: 'Number of IP Cache hits' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: hits + - tag: component + value: ip + - uuid: 8e474d2fd410472bb03024d2a2361b5d + name: 'IP cache misses per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.4.1.6.0]' + key: 'squid[cacheIpMisses]' + value_type: FLOAT + description: 'Number of IP Cache misses' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ip + - tag: component + value: misses + - uuid: dc837a887c3c463a9011d923dbbfbc0f + name: 'IP cache requests per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.4.1.2.0]' + key: 'squid[cacheIpRequests]' + value_type: FLOAT + description: 'Number of IP Cache requests' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: ip + - tag: component + value: requests + - uuid: 70786920f94f41eeb0fc525c2e6431cf + name: 'Memory maximum resident size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.6.0]' + key: 'squid[cacheMaxResSize]' + value_type: FLOAT + units: B + description: 'Maximum Resident Size' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: d84c3a3633784f77bf9375bf59da490b + name: 'Memory maximum cache size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.2.5.1.0]' + key: 'squid[cacheMemMaxSize]' + value_type: FLOAT + units: B + description: 'The value of the cache_mem parameter' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: memory + - uuid: c14fe87f87ca48f39bbe765db60e0a41 + name: 'Memory cache usage' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.3.0]' + key: 'squid[cacheMemUsage]' + value_type: FLOAT + units: B + description: 'Total accounted memory' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 387bbd61d3bd469baa6c560afe8a18ae + name: 'Objects count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.7.0]' + key: 'squid[cacheNumObjCount]' + value_type: FLOAT + description: 'Number of objects stored by the cache' + tags: + - tag: component + value: objects + - uuid: 1e648a20db904e92ae4ec0c3f9037a99 + name: 'HTTP requests received per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.1.1.0]' + key: 'squid[cacheProtoClientHttpRequests]' + value_type: FLOAT + description: 'Number of HTTP requests received' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: http + - tag: component + value: requests + - uuid: 31f3e3bb57d645ff8df6b9b8d1b70a49 + name: 'Byte hit ratio per 1 minute' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.10.1]' + key: 'squid[cacheRequestByteRatio.1]' + value_type: FLOAT + description: 'Byte Hit Ratios' + tags: + - tag: component + value: hits + - uuid: e19775b9c83648d58655a1130c5771e4 + name: 'Byte hit ratio per 5 minutes' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.10.5]' + key: 'squid[cacheRequestByteRatio.5]' + value_type: FLOAT + description: 'Byte Hit Ratios' + tags: + - tag: component + value: hits + - uuid: ffb3fc17631f4cd6b55ed6eefd2e6cea + name: 'Byte hit ratio per 1 hour' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.10.60]' + key: 'squid[cacheRequestByteRatio.60]' + value_type: FLOAT + description: 'Byte Hit Ratios' + tags: + - tag: component + value: hits + - uuid: a4ba5af69dd64fd8acf707ee1eaaeb32 + name: 'Request hit ratio per 1 minute' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.9.1]' + key: 'squid[cacheRequestHitRatio.1]' + value_type: FLOAT + description: 'Byte Hit Ratios' + tags: + - tag: component + value: hits + - tag: component + value: requests + - uuid: b5ae7935e9be40e18c3020820a7865c7 + name: 'Request hit ratio per 5 minutes' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.9.5]' + key: 'squid[cacheRequestHitRatio.5]' + value_type: FLOAT + description: 'Byte Hit Ratios' + tags: + - tag: component + value: hits + - tag: component + value: requests + - uuid: b09f7a1d9dc340b88106016586099dba + name: 'Request hit ratio per 1 hour' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.2.2.1.9.60]' + key: 'squid[cacheRequestHitRatio.60]' + value_type: FLOAT + description: 'Byte Hit Ratios' + tags: + - tag: component + value: hits + - tag: component + value: requests + - uuid: 69e4fb088c6949ac94eabcb892df46ab + name: 'Cache swap high water mark' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.2.5.3.0]' + key: 'squid[cacheSwapHighWM]' + value_type: FLOAT + units: '%' + description: 'Cache Swap High Water Mark' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 221e583d7cf2455b9d848462de4b1e9a + name: 'Cache swap low water mark' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.2.5.4.0]' + key: 'squid[cacheSwapLowWM]' + value_type: FLOAT + units: '%' + description: 'Cache Swap Low Water Mark' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 215aefddd30e41aea54e30678f290215 + name: 'Cache swap directory size' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.2.5.2.0]' + key: 'squid[cacheSwapMaxSize]' + value_type: FLOAT + units: B + description: 'The total of the cache_dir space allocated' + preprocessing: + - type: MULTIPLIER + parameters: + - '1048576' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 38ad99f9b30c4d729030ceab6575f4f5 + name: 'Sys page faults per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.3.1.1.0]' + key: 'squid[cacheSysPageFaults]' + value_type: FLOAT + description: 'Page faults with physical I/O' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: faults + - uuid: 67460731d9c94166870874239c9a60da + name: Uptime + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.1.3.0]' + key: 'squid[cacheUptime]' + delay: 5m + units: s + description: 'The Uptime of the cache in timeticks (in hundredths of a second) with preprocessing' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: application + triggers: + - uuid: 89efc9400197427fa718395286dd3583 + expression: 'last(/Squid by SNMP/squid[cacheUptime])<10m' + name: 'Squid: Squid has been restarted' + event_name: 'Squid: Squid has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d7c7f0faa1f64745be774e30e6f0b68f + name: Version + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.3495.1.2.3.0]' + key: 'squid[cacheVersionId]' + value_type: TEXT + trends: '0' + description: 'Cache Software Version' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: application + triggers: + - uuid: c5991152d2da4df7ae0d978233c5a859 + expression: 'last(/Squid by SNMP/squid[cacheVersionId],#1)<>last(/Squid by SNMP/squid[cacheVersionId],#2) and length(last(/Squid by SNMP/squid[cacheVersionId]))>0' + name: 'Squid: Squid version has been changed' + event_name: 'Squid: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Squid version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + tags: + - tag: class + value: application + - tag: target + value: squid + macros: + - macro: '{$SQUID.FILE.DESC.WARN.MIN}' + value: '100' + description: 'The threshold for minimum number of available file descriptors' + - macro: '{$SQUID.HTTP.PORT}' + value: '3128' + description: 'http_port configured in squid.conf (Default: 3128)' + - macro: '{$SQUID.PAGE.FAULT.WARN}' + value: '90' + description: 'The threshold for sys page faults rate in percent of received HTTP requests' + - macro: '{$SQUID.SNMP.COMMUNITY}' + value: public + description: 'SNMP community allowed by ACL in squid.conf' + - macro: '{$SQUID.SNMP.PORT}' + value: '3401' + description: 'snmp_port configured in squid.conf (Default: 3401)' + dashboards: + - uuid: 0d026f3b6eb44b46b21e2aa9ce8a030e + name: 'Squid: Overview' + pages: + - name: 'Resource usage' + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Squid by SNMP' + name: 'Squid: Memory' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Squid by SNMP' + name: 'Squid: File descriptor usage' + - type: STRING + name: reference + value: AAAAB + - name: 'Service timing statistics' + widgets: + - type: graph + width: '72' + height: '10' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Squid by SNMP' + name: 'Squid: Service timing statistics' + - type: STRING + name: reference + value: AAAAC + - name: 'Other statistics' + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Squid by SNMP' + name: 'Squid: HTTP Traffic' + - type: STRING + name: reference + value: AAAAD + - type: graph + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Squid by SNMP' + name: 'Squid: Objects cache statistics' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '10' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Squid by SNMP' + name: 'Squid: Domain name (FQDN) cache statistics' + - type: STRING + name: reference + value: AAAAF + - type: graph + 'y': '15' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Squid by SNMP' + name: 'Squid: DNS lookup statistics' + - type: STRING + name: reference + value: AAAAG + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Squid by SNMP' + name: 'Squid: IP address cache statistics' + - type: STRING + name: reference + value: AAAAH + valuemaps: + - uuid: 1bd791d250e441aeb1c73e499d96e98e + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 89a1cfe0f02f4da880f197c2e5605db8 + expression: 'avg(/Squid by SNMP/squid[cacheSysPageFaults],5m)>avg(/Squid by SNMP/squid[cacheProtoClientHttpRequests],5m)/100*{$SQUID.PAGE.FAULT.WARN}' + name: 'Squid: High sys page faults rate' + event_name: 'Squid: High sys page faults rate (>{$SQUID.PAGE.FAULT.WARN}% of received HTTP requests)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 5676f1e02dc7413fb1a34543ccaf1384 + expression: 'last(/Squid by SNMP/squid[cacheCurrentSwapSize])>last(/Squid by SNMP/squid[cacheSwapHighWM])*last(/Squid by SNMP/squid[cacheSwapMaxSize])/100' + name: 'Squid: Swap usage is more than high watermark' + event_name: 'Squid: Swap usage is more than high watermark (>{ITEM.VALUE2}%)' + opdata: 'Used: {ITEM.LASTVALUE1}' + priority: HIGH + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 2cf87472ebf74239bb782580448f696c + expression: 'last(/Squid by SNMP/squid[cacheCurrentSwapSize])>last(/Squid by SNMP/squid[cacheSwapLowWM])*last(/Squid by SNMP/squid[cacheSwapMaxSize])/100' + name: 'Squid: Swap usage is more than low watermark' + event_name: 'Squid: Swap usage is more than low watermark (>{ITEM.VALUE2}%)' + opdata: 'Used: {ITEM.LASTVALUE1}' + priority: WARNING + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graphs: + - uuid: d8bb2c1dac8a4cb5999d29227a8510e6 + name: 'Squid: DNS lookup statistics' + graph_items: + - color: 199C0D + item: + host: 'Squid by SNMP' + key: 'squid[cacheDnsRequests]' + - sortorder: '1' + color: F63100 + item: + host: 'Squid by SNMP' + key: 'squid[cacheDnsReplies]' + - uuid: e301cc76e0ff4e22bc66a46b19230c33 + name: 'Squid: Domain name (FQDN) cache statistics' + graph_items: + - color: 199C0D + item: + host: 'Squid by SNMP' + key: 'squid[cacheFqdnRequests]' + - sortorder: '1' + color: F63100 + item: + host: 'Squid by SNMP' + key: 'squid[cacheFqdnHits]' + - sortorder: '2' + color: 00611C + item: + host: 'Squid by SNMP' + key: 'squid[cacheFqdnMisses]' + - uuid: 22556883f0a04b6999013d1a5ce58382 + name: 'Squid: File descriptor usage' + graph_items: + - color: 199C0D + item: + host: 'Squid by SNMP' + key: 'squid[cacheCurrentFileDescrCnt]' + - sortorder: '1' + color: F63100 + item: + host: 'Squid by SNMP' + key: 'squid[cacheCurrentUnusedFDescrCnt]' + - sortorder: '2' + color: 00611C + item: + host: 'Squid by SNMP' + key: 'squid[cacheCurrentResFileDescrCnt]' + - uuid: 647af850b9914d7b803c7f509f4c4f71 + name: 'Squid: HTTP Traffic' + graph_items: + - color: 199C0D + item: + host: 'Squid by SNMP' + key: 'squid[cacheHttpInKb]' + - sortorder: '1' + color: F63100 + item: + host: 'Squid by SNMP' + key: 'squid[cacheHttpOutKb]' + - uuid: c3d9ac16b3e24067b1041b93ee8aaebe + name: 'Squid: IP address cache statistics' + graph_items: + - color: 199C0D + item: + host: 'Squid by SNMP' + key: 'squid[cacheIpRequests]' + - sortorder: '1' + color: F63100 + item: + host: 'Squid by SNMP' + key: 'squid[cacheIpHits]' + - sortorder: '2' + color: 00611C + item: + host: 'Squid by SNMP' + key: 'squid[cacheIpMisses]' + - uuid: 7b9f0d0f6558432b83375e2fcd082812 + name: 'Squid: Memory' + graph_items: + - color: 199C0D + item: + host: 'Squid by SNMP' + key: 'squid[cacheMaxResSize]' + - sortorder: '1' + color: F63100 + item: + host: 'Squid by SNMP' + key: 'squid[cacheMemMaxSize]' + - sortorder: '2' + color: 00611C + item: + host: 'Squid by SNMP' + key: 'squid[cacheMemUsage]' + - uuid: d4b916fb3ea14e55b3e9799b85d8e40b + name: 'Squid: Objects cache statistics' + graph_items: + - color: 199C0D + item: + host: 'Squid by SNMP' + key: 'squid[cacheNumObjCount]' + - sortorder: '1' + color: F63100 + item: + host: 'Squid by SNMP' + key: 'squid[cacheCurrentUnlinkRequests]' + - uuid: af823298924d47b09e17eeff093da448 + name: 'Squid: Service timing statistics' + graph_items: + - color: 199C0D + item: + host: 'Squid by SNMP' + key: 'squid[cacheHttpAllSvcTime.5]' + - sortorder: '1' + color: F63100 + item: + host: 'Squid by SNMP' + key: 'squid[cacheHttpAllSvcTime.60]' + - sortorder: '2' + color: 00611C + item: + host: 'Squid by SNMP' + key: 'squid[cacheHttpMissSvcTime.5]' + - sortorder: '3' + color: F7941D + item: + host: 'Squid by SNMP' + key: 'squid[cacheHttpMissSvcTime.60]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'Squid by SNMP' + key: 'squid[cacheHttpHitSvcTime.5]' + - sortorder: '5' + color: 6C59DC + item: + host: 'Squid by SNMP' + key: 'squid[cacheHttpHitSvcTime.60]' + - sortorder: '6' + color: C7A72D + item: + host: 'Squid by SNMP' + key: 'squid[cacheIcpQuerySvcTime.5]' + - sortorder: '7' + color: BA2A5D + item: + host: 'Squid by SNMP' + key: 'squid[cacheIcpQuerySvcTime.60]' + - sortorder: '8' + color: F230E0 + item: + host: 'Squid by SNMP' + key: 'squid[cacheIcpReplySvcTime.5]' + - sortorder: '9' + color: 5CCD18 + item: + host: 'Squid by SNMP' + key: 'squid[cacheIcpReplySvcTime.60]' + - sortorder: '10' + color: BB2A02 + item: + host: 'Squid by SNMP' + key: 'squid[cacheDnsSvcTime.5]' + - sortorder: '11' + color: AC41A5 + item: + host: 'Squid by SNMP' + key: 'squid[cacheDnsSvcTime.60]' diff --git a/Stormshield_SNS_by_SNMP.yaml b/Stormshield_SNS_by_SNMP.yaml new file mode 100644 index 0000000..ff4f5f2 --- /dev/null +++ b/Stormshield_SNS_by_SNMP.yaml @@ -0,0 +1,5951 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: 1945f22f8ba84ce89454d9513979a3c6 + template: 'Stormshield SNS by SNMP' + name: 'Stormshield SNS by SNMP' + description: | + The template for monitoring SNS firewall by SNMP. + + MIBs used: + HOST-RESOURCES-MIB + UCD-SNMP-MIB + STORMSHIELD-ASQ-STATS-MIB + STORMSHIELD-AUTOUPDATE-MIB + STORMSHIELD-HA-MIB + STORMSHIELD-PROPERTY-MIB + STORMSHIELD-HEALTH-MONITOR-MIB + STORMSHIELD-IF-MIB + STORMSHIELD-SYSTEM-MONITOR-MIB + STORMSHIELD-IPSEC-STATS-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: 'Templates/Network devices' + - name: 'Templates/Operating systems' + items: + - uuid: 3b54cafc125347c1987be674fd38d01c + name: 'ASQ TCP connection count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.12.1.23.0]' + key: 'asq.alarm.stateful.tcp[snsASQStatsStatefulTcpConn.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-ASQ-STATS-MIB + ASQ stateful TCP connection count. + tags: + - tag: component + value: asq + - uuid: 8ecf661fe8904c41a03ea2153ae10622 + name: 'ASQ UDP connection count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.12.1.33.0]' + key: 'asq.alarm.stateful.udp[snsASQStatsStatefulUdpConn.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-ASQ-STATS-MIB + ASQ stateful UDP connection count. + tags: + - tag: component + value: asq + - uuid: d5045cd3a7714e8088b7cdc5dbf55a36 + name: 'ASQ major alarm count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.12.1.12.0]' + key: 'asq.alarm.stateful[snsASQStatsStatefulMajorAlarm.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-ASQ-STATS-MIB + ASQ major alarm count. + tags: + - tag: component + value: asq + - uuid: 6c18d83d5cdf463c94f587295b416291 + name: 'ASQ minor alarm count' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.12.1.11.0]' + key: 'asq.alarm.stateful[snsASQStatsStatefulMinorAlarm.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-ASQ-STATS-MIB + ASQ minor alarm count. + tags: + - tag: component + value: asq + - uuid: fc06ecf1f0f74692a43bdf15b569ffcd + name: 'HA: Faulty HA links' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.11.6.0]' + key: 'ha.links.faulty[snsNbFaultyHALinks.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-HA-MIB + Number of faulty HA links. + tags: + - tag: component + value: ha + triggers: + - uuid: 93808f7abb4f40fdad41a174557de441 + expression: 'last(/Stormshield SNS by SNMP/ha.links.faulty[snsNbFaultyHALinks.0],#1)>0' + name: 'SNS: Faulty HA link' + event_name: 'SNS: Faulty HA link' + priority: AVERAGE + description: 'There is at least one faulty HA link.' + tags: + - tag: scope + value: availability + - uuid: 0e0ce46444494ec08d2217ca8cf4f304 + name: 'HA: Active firewalls' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.11.3.0]' + key: 'ha.node.active[snsNbActiveNode.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-HA-MIB + Number of active firewalls. + tags: + - tag: component + value: ha + - uuid: 95e8d34b1bc9469f8eaa82c86b6be35a + name: 'HA: Firewalls in the cluster' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.11.1.0]' + key: 'ha.node.count[snsNbNode.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-HA-MIB + Number of firewalls in the HA cluster. + tags: + - tag: component + value: ha + - uuid: a9a90c5a38914dfbbd07441a0e5ee711 + name: 'HA: Firewalls not replying' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.11.2.0]' + key: 'ha.node.dead[snsNbDeadNode.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-HA-MIB + Number of firewalls registered in the HA cluster but not replying. + tags: + - tag: component + value: ha + - uuid: dd16514bb5114dd5bee0686bd23f107c + name: 'HA: Synchronization status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.11.8.0]' + key: 'ha.sync.status[snsHASyncStatus.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-HA-MIB + Firewall configuration synchronization status: + 1: Synced, + 0: Not synced, + -1: Unknown/Error. + valuemap: + name: 'STORMSHIELD-HA-MIB::snsHASyncStatus' + tags: + - tag: component + value: ha + triggers: + - uuid: c03dce70e912493d8a65942d381ab734 + expression: 'last(/Stormshield SNS by SNMP/ha.sync.status[snsHASyncStatus.0],#1)<0' + name: 'SNS: HA synchronization error' + event_name: 'SNS: HA synchronization error' + priority: AVERAGE + description: 'The cluster HA is not synchronized properly.' + tags: + - tag: scope + value: availability + - uuid: 34d96118f6a64fb2aa9a5a042e00ad7c + name: 'Available memory' + type: CALCULATED + key: host.memory.available + value_type: FLOAT + units: B + params: '(last(//host.memory.buffer[memBuffer.0]))+(last(//host.memory.cached[memCached.0]))+(last(//host.memory.free[memAvailReal.0]))' + description: | + Available memory in bytes + (Available = Free + Cached + Buffer). + tags: + - tag: component + value: memory + - uuid: b2b597c8671b450c807423a9982efdb1 + name: 'Buffer memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.14.0]' + key: 'host.memory.buffer[memBuffer.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: FLOAT + units: B + description: | + MIB: UCD-SNMP-MIB + Buffer memory in bytes. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000' + tags: + - tag: component + value: memory + - uuid: 81305b3e1e1340c1b22b8d15d7c0771f + name: 'Cached memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.15.0]' + key: 'host.memory.cached[memCached.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: FLOAT + units: B + description: | + MIB: UCD-SNMP-MIB + Cached memory in bytes. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000' + tags: + - tag: component + value: memory + - uuid: 98722552df3840e4947f102c0df6b46e + name: 'Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.6.0]' + key: 'host.memory.free[memAvailReal.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: FLOAT + units: B + description: | + MIB: UCD-SNMP-MIB + Free memory in bytes. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000' + tags: + - tag: component + value: memory + - uuid: d3c0c7c5bc54493398327d0d6b5f546a + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.5.0]' + key: 'host.memory.total[memTotalReal.0]' + delay: '{$SNS.SNMP.INTERVAL}' + units: B + description: | + MIB: UCD-SNMP-MIB + Total physical memory (RAM) installed in bytes. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + - uuid: 5a51165096db494ba71c909aa04528be + name: 'Used memory' + type: CALCULATED + key: host.memory.used + value_type: FLOAT + units: B + params: '(last(//host.memory.total[memTotalReal.0]))-(last(//host.memory.available))' + description: 'Used memory in bytes.' + tags: + - tag: component + value: memory + - uuid: c5cab917e3834f4691b8961bc8d7156d + name: 'Memory utilization' + type: CALCULATED + key: host.memory.utilization + units: '%' + params: '(last(//host.memory.used)/last(//host.memory.total[memTotalReal.0]))*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: aefdc86298f3437d8b16233515818d16 + expression: 'min(/Stormshield SNS by SNMP/host.memory.utilization,5m)>{$SNS.MEMORY.UTIL.MAX}' + name: 'SNS: High memory utilization' + event_name: 'SNS: High memory utilization (>{$SNS.MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 3d1ab35757d446a3931e8104089e014d + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + Host accessibility by ICMP. + 0 - ICMP ping failed. + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: ab962296020f44f08f1bd8eacce24723 + expression: 'max(/Stormshield SNS by SNMP/icmpping,#3)=0' + name: 'SNS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: f2aabf4cde2d4f109e2de2b7c2db3db8 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'Percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 02dfe125bff5452f8916962a407b0975 + expression: 'min(/Stormshield SNS by SNMP/icmppingloss,5m)>{$SNS.ICMP.LOSS.WARN} and min(/Stormshield SNS by SNMP/icmppingloss,5m)<100' + name: 'SNS: High ICMP ping loss' + priority: WARNING + description: 'ICMP ping loss detected.' + dependencies: + - name: 'SNS: Unavailable by ICMP ping' + expression: 'max(/Stormshield SNS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 67b9296c12284844844ac2da201946d3 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f4de52338acf4e4baf91c328688bb0ab + expression: 'avg(/Stormshield SNS by SNMP/icmppingsec,5m)>{$SNS.ICMP.RESPONSE.TIME.WARN}' + name: 'SNS: High ICMP ping response time' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'SNS: High ICMP ping loss' + expression: 'min(/Stormshield SNS by SNMP/icmppingloss,5m)>{$SNS.ICMP.LOSS.WARN} and min(/Stormshield SNS by SNMP/icmppingloss,5m)<100' + - name: 'SNS: Unavailable by ICMP ping' + expression: 'max(/Stormshield SNS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ef452e74af2e470bb5f5eea1b6180567 + name: 'VPN: Incoming policies' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.13.1.1.0]' + key: 'ipsec.policies.in[snsIPSECStatsSPDIn.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-IPSEC-STATS-MIB + Number of incoming security policies. + tags: + - tag: component + value: policy + - tag: component + value: vpn + - uuid: 0ca1adf24df84b67bfa7324885ccf3e4 + name: 'VPN: Outgoing policies' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.13.1.2.0]' + key: 'ipsec.policies.out[snsIPSECStatsSPDOut.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-IPSEC-STATS-MIB + Number of outgoing security policies. + tags: + - tag: component + value: policy + - tag: component + value: vpn + - uuid: e220854737454a1e80f0bfbb1064cfc4 + name: 'Active filtering policy name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.8.1.1.3.1]' + key: 'policy.filter[snsPolicySlotName]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-POLICY-MIB + Active filtering policy name. + preprocessing: + - type: NOT_MATCHES_REGEX + parameters: + - ^$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: policy + - uuid: 7c2bc4cbe7384538bb15a479a2b73151 + name: 'Active IPsec policy name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.8.1.1.3.2]' + key: 'policy.ipsec[snsPolicySlotNameIPsec]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-POLICY-MIB + Active IPsec policy name. + preprocessing: + - type: NOT_MATCHES_REGEX + parameters: + - ^$ + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: policy + - uuid: e4c3c5803ec2484e92abd589798b5c69 + name: Model + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.0.1.0]' + key: 'property.hardware.model[snsModel.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-PROPERTY-MIB + Firewall model. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: hardware + - uuid: 079208ed1d684585863ab7f142b6e70d + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.18.4.0]' + key: 'property.hardware.name[snsSystemName.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-PROPERTY-MIB + Stormshield Firewall system name. + tags: + - tag: component + value: hardware + triggers: + - uuid: 15f4897a3e544effbfc99ce75a8e9d7a + expression: 'last(/Stormshield SNS by SNMP/property.hardware.name[snsSystemName.0],#1)<>last(/Stormshield SNS by SNMP/property.hardware.name[snsSystemName.0],#2) and length(last(/Stormshield SNS by SNMP/property.hardware.name[snsSystemName.0]))>0' + name: 'SNS: System name has changed' + event_name: 'SNS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: 2ff5ef13ef154f56b4ab1b964afe17b7 + name: 'System node name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.18.16.0]' + key: 'property.hardware.node_name[snsSystemNodeName.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-PROPERTY-MIB + Stormshield Firewall system node name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: hardware + - uuid: 437da1f0d02849569ef252800b95ff53 + name: 'Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.0.3.0]' + key: 'property.hardware.serial[snsSerialNumber.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-PROPERTY-MIB + Stormshield Firewall serial number. + tags: + - tag: component + value: hardware + triggers: + - uuid: 4220ad1db8134603958030547495591c + expression: 'last(/Stormshield SNS by SNMP/property.hardware.serial[snsSerialNumber.0],#1)<>last(/Stormshield SNS by SNMP/property.hardware.serial[snsSerialNumber.0],#2) and length(last(/Stormshield SNS by SNMP/property.hardware.serial[snsSerialNumber.0]))>0' + name: 'SNS: Device has been replaced' + event_name: 'SNS: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e80718fcb8534828abc87998911931cd + name: Version + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.0.2.0]' + key: 'property.hardware.version[snsVersion.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-PROPERTY-MIB + Stormshield Firewall version. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: hardware + - uuid: 2582b2562a514db782e2eaf71c81ac93 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'Used for collecting all SNMP traps unmatched by other `snmptrap` items.' + tags: + - tag: component + value: network + - uuid: af3ce032c24e4f55b86e98ad2a5e7726 + name: 'SNMP walk CPU temperature' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11256.1.10.7.1]' + key: sns.cpu.temp.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering CPU temperature from the Stormshield MIB.' + tags: + - tag: component + value: raw + - uuid: 95ccc4d528f74321bafa41b5e575b458 + name: 'SNMP walk CPU usage' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1]' + key: sns.cpu.usage.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering CPU usage from the HOST-RESOURCES-MIB.' + tags: + - tag: component + value: raw + - uuid: deab9f5bf0ee4e3bbfc9a3238d1aa04a + name: 'SNMP walk disk' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11256.1.10.5.1]' + key: sns.disk.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering disks from the Stormshield MIB.' + tags: + - tag: component + value: raw + - uuid: 4fe3286ec83043818baada4d5db6b264 + name: 'SNMP walk fan' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11256.1.10.9.1]' + key: sns.fan.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering fans from the Stormshield MIB.' + tags: + - tag: component + value: raw + - uuid: f54b159bee384956ab4f92af6f5ce947 + name: 'SNMP walk HA members' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11256.1.11.7.1]' + key: sns.ha.members.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering HA members from the Stormshield MIB.' + tags: + - tag: component + value: raw + - uuid: e7492893d8ff4bf7981a3fe6ee4f8ddc + name: 'SNMP walk health' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11256.1.16.2.1]' + key: sns.health.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering health status from the Stormshield MIB.' + tags: + - tag: component + value: raw + - uuid: 4ee4c13cd9fa482faecf88f67eed0dc2 + name: 'SNMP walk memory' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11256.1.10.10.1]' + key: sns.memory.util.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering system memory utilization from the STORMSHIELD-SYSTEM-MONITOR-MIB.' + tags: + - tag: component + value: raw + - uuid: 70868b549569460b8e293a2c20123779 + name: 'SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11256.1.4.1.1]' + key: sns.net.if.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering network interfaces from the Stormshield MIB.' + tags: + - tag: component + value: raw + - uuid: df01ada741ee489cad6282fce353b660 + name: 'SNMP walk power supply' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11256.1.10.6.1]' + key: sns.psu.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering the power supply from the Stormshield MIB.' + tags: + - tag: component + value: raw + - uuid: 2296efb070324644bd699e1d1f96c262 + name: 'SNMP walk storage' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.5,1.3.6.1.2.1.25.2.3.1.6]' + key: sns.storage.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering storage from the HOST-RESOURCES-MIB.' + tags: + - tag: component + value: raw + - uuid: 5d468c2d00d84fb39ba8f03e6c89c7a5 + name: 'SNMP walk autoupdate' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11256.1.9.1.1]' + key: sns.update.auto.walk + delay: '{$SNS.SNMP.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Used for discovering updates from the Stormshield MIB.' + tags: + - tag: component + value: raw + - uuid: 921c52d6d3884b10bdd3f3fa73c392d8 + name: Date + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.10.1.0]' + key: 'system.date[snsDate.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Stormshield Firewall current date (%Y-%m-%d %T). + tags: + - tag: component + value: system + - uuid: e48ced68e7584aeaacde9995d8d0c634 + name: Uptime + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.10.2.0]' + key: 'system.hardware.uptime[snsUptime.0]' + delay: '{$SNS.SNMP.INTERVAL}' + value_type: FLOAT + units: uptime + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Stormshield Firewall uptime. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + function toTimestamp(value) { + var parts = value.split(":"); + + var d = parseInt(parts[0], 10); + var h = parseInt(parts[1], 10); + var mi = parseInt(parts[2], 10); + var s = parseInt(parts[3], 10); + + if ([d, h, mi, s].some(isNaN)) return 0; + + return (d*86400+h*3600+mi*60+s); + } + + return toTimestamp(value); + tags: + - tag: component + value: hardware + triggers: + - uuid: baf8de16b11b4f408c7a34869ebf53b8 + expression: 'last(/Stormshield SNS by SNMP/system.hardware.uptime[snsUptime.0])<10m' + name: 'SNS: Device has been restarted' + event_name: 'SNS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + tags: + - tag: scope + value: notice + - uuid: 97be1dab5f934083bcc112c7ca5ab440 + name: 'ASQ connection memory utilization' + type: DEPENDENT + key: 'system.memory.conn[snsMemConn.0]' + delay: '0' + units: '%' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Utilization percentage of ASQ connection memory. + + Warning: This OID might not be functional for SNS versions lower than 5.0. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.11256.1.10.10.1.5.0 + - '0' + error_handler: DISCARD_VALUE + master_item: + key: sns.memory.util.walk + tags: + - tag: component + value: memory + - uuid: cd8b2605feb8410ab871a393128c89bb + name: 'Data tracking memory utilization' + type: DEPENDENT + key: 'system.memory.data_track[snsMemDataTrack.0]' + delay: '0' + units: '%' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Utilization percentage of data tracking memory. + + Warning: This OID might not be functional for SNS versions lower than 5.0. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.11256.1.10.10.1.7.0 + - '0' + error_handler: DISCARD_VALUE + master_item: + key: sns.memory.util.walk + tags: + - tag: component + value: memory + - uuid: 442f3113a21d4041964eeb3a37c9db94 + name: 'Etherstate connection memory utilization' + type: DEPENDENT + key: 'system.memory.ether[snsMemEther.0]' + delay: '0' + units: '%' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Utilization percentage of etherstate connection memory. + + Warning: This OID might not be functional for SNS versions lower than 5.0. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.11256.1.10.10.1.6.0 + - '0' + error_handler: DISCARD_VALUE + master_item: + key: sns.memory.util.walk + tags: + - tag: component + value: memory + - uuid: 99aafd4514434990ae54bbfabb28057e + name: 'Fragment memory utilization' + type: DEPENDENT + key: 'system.memory.frag[snsMemFrag.0]' + delay: '0' + units: '%' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Fragment memory utilization percentage. + + Warning: This OID might not be functional for SNS versions lower than 5.0. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.11256.1.10.10.1.3.0 + - '0' + error_handler: DISCARD_VALUE + master_item: + key: sns.memory.util.walk + tags: + - tag: component + value: memory + - uuid: 686ed185b40e433892951539d3305a4d + name: 'Protected host memory utilization' + type: DEPENDENT + key: 'system.memory.host[snsMemHost.0]' + delay: '0' + units: '%' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Protected host memory utilization percentage. + + Warning: This OID might not be functional for SNS versions lower than 5.0. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.11256.1.10.10.1.2.0 + - '0' + error_handler: DISCARD_VALUE + master_item: + key: sns.memory.util.walk + tags: + - tag: component + value: memory + - uuid: 80a0a595776d461384e12834b7f43098 + name: 'ICMP memory utilization' + type: DEPENDENT + key: 'system.memory.icmp[snsMemIcmp.0]' + delay: '0' + units: '%' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + ICMP memory utilization percentage. + + Warning: This OID might not be functional for SNS versions lower than 5.0. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.11256.1.10.10.1.4.0 + - '0' + error_handler: DISCARD_VALUE + master_item: + key: sns.memory.util.walk + tags: + - tag: component + value: memory + - uuid: 86300acc41ba4a84b947ff9e24360083 + name: 'Socket memory utilization' + type: DEPENDENT + key: 'system.memory.mbuf[snsMemMbuf.0]' + delay: '0' + units: '%' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Socket memory utilization percentage. + + Warning: This OID might not be functional for SNS versions lower than 5.0. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.11256.1.10.10.1.10.0 + - '0' + error_handler: DISCARD_VALUE + master_item: + key: sns.memory.util.walk + tags: + - tag: component + value: memory + - uuid: f3cab29a36104841bb8215d65eabe8bb + name: 'System memory utilization' + type: DEPENDENT + key: 'system.memory.system[snsMemSystem.0]' + delay: '0' + units: '%' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Current memory utilization percentage. + + Warning: This OID might not be functional for SNS versions lower than 5.0. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.11256.1.10.10.1.8.0 + - '0' + error_handler: DISCARD_VALUE + master_item: + key: sns.memory.util.walk + tags: + - tag: component + value: memory + - uuid: 56a9edbf6b0a4f0b95d3a5388cce4aad + name: 'User memory utilization' + type: DEPENDENT + key: 'system.memory.user[snsMemUser.0]' + delay: '0' + units: '%' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + User-space memory utilization percentage. + + Warning: This OID might not be functional for SNS versions lower than 5.0. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.11256.1.10.10.1.9.0 + - '0' + error_handler: DISCARD_VALUE + master_item: + key: sns.memory.util.walk + tags: + - tag: component + value: memory + - uuid: b079600b3bbe455c9b64ac1a474a4c9a + name: 'VPN: Number of dead VPN tunnels' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.13.2.4.0]' + key: 'vpn.tunnel.dead[snsIPSECStatsSADDead.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-IPSEC-STATS-MIB + Number of dead security associations. + tags: + - tag: component + value: vpn + - uuid: 277fd3430bff4ee79d61a2b87609d075 + name: 'VPN: Number of dying VPN tunnels' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.13.2.3.0]' + key: 'vpn.tunnel.dying[snsIPSECStatsSADDying.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-IPSEC-STATS-MIB + Number of security associations at end of life. + tags: + - tag: component + value: vpn + - uuid: bd0aa23c91f74d8f98a479c106bc37c4 + name: 'VPN: Number of mature VPN tunnels' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11256.1.13.2.2.0]' + key: 'vpn.tunnel.mature[snsIPSECStatsSADMature.0]' + delay: '{$SNS.SNMP.INTERVAL}' + description: | + MIB: STORMSHIELD-IPSEC-STATS-MIB + Number of established security associations. + tags: + - tag: component + value: vpn + - uuid: fdbf9cb6403846d98c6f9c3bd51a5c47 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to the availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown. + valuemap: + name: 'Host availability' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e300402891ea46be8cfd697d3936a339 + expression: 'max(/Stormshield SNS by SNMP/zabbix[host,snmp,available],{$SNS.SNMP.TIMEOUT})=0' + name: 'SNS: No SNMP data collection' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'SNS: Unavailable by ICMP ping' + expression: 'max(/Stormshield SNS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 2fc5de70139442aebc59a445a4abee21 + name: 'CPU temperature discovery' + type: DEPENDENT + key: cpu.temperature.discovery + delay: '0' + description: 'Used for discovering the CPU temperature from the Stormshield MIB.' + item_prototypes: + - uuid: ff474617c5024f369d6612278215632b + name: 'CPU [{#CPU_ID}]: Temperature' + type: DEPENDENT + key: 'system.cpu.temperature[snsCpuTemp.{#SNMPINDEX}]' + delay: '0' + units: °C + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Temperature in degrees Celsius. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.10.7.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: sns.cpu.temp.walk + tags: + - tag: component + value: CPU + graph_prototypes: + - uuid: 3009cfbebcea42289116107645cc08ea + name: 'SNS: CPU [{#CPU_ID}]: Temperature degrees in celsius' + graph_items: + - color: 1A7C11 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'system.cpu.temperature[snsCpuTemp.{#SNMPINDEX}]' + master_item: + key: sns.cpu.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU_ID}' + - 1.3.6.1.4.1.11256.1.10.7.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 94e616ac778d476897743bc0cd065572 + name: 'CPU usage discovery' + type: DEPENDENT + key: cpu.usage.discovery + delay: '0' + description: 'Used for discovering the CPU usage from the Stormshield MIB.' + item_prototypes: + - uuid: e9ea57097a134d7f8541200e533d4039 + name: 'CPU [{#SNMPINDEX}]: Usage' + type: DEPENDENT + key: 'system.cpu.usage[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average percentage of time that this processor was not idle over the last minute. + Implementations may approximate this one minute smoothing period if necessary. + Note that cpu 196608 = cpu 0, 196609 = 1, ... + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: sns.cpu.usage.walk + tags: + - tag: component + value: CPU + trigger_prototypes: + - uuid: b5196431336b42b08b0beab3208c19de + expression: 'min(/Stormshield SNS by SNMP/system.cpu.usage[hrProcessorLoad.{#SNMPINDEX}],5m)>{$SNS.CPU.UTIL.CRIT}' + name: 'SNS: CPU [{#SNMPINDEX}]: CPU utilization too high' + event_name: 'SNS: CPU utilization too high (over {$SNS.CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: availability + - uuid: 889712b67ab549eaa8e76370d20dcddd + expression: 'min(/Stormshield SNS by SNMP/system.cpu.usage[hrProcessorLoad.{#SNMPINDEX}],5m)>{$SNS.CPU.UTIL.WARN}' + name: 'SNS: CPU [{#SNMPINDEX}]: High CPU utilization' + event_name: 'SNS: High CPU utilization (over {$SNS.CPU.UTIL.WARN}% for 5m)' + priority: WARNING + description: 'The CPU utilization is high. The system might be slow to respond.' + dependencies: + - name: 'SNS: CPU [{#SNMPINDEX}]: CPU utilization too high' + expression: 'min(/Stormshield SNS by SNMP/system.cpu.usage[hrProcessorLoad.{#SNMPINDEX}],5m)>{$SNS.CPU.UTIL.CRIT}' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: f5eebe195e3141019a1dace85415cf23 + name: 'SNS: CPU [{#SNMPINDEX}]: Usage in %' + graph_items: + - color: 1A7C11 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'system.cpu.usage[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: sns.cpu.usage.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#CPU_ID}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 205bfdee322c49bfb35bd718620425e1 + name: 'Disk discovery' + type: DEPENDENT + key: disk.discovery + delay: '0' + description: 'Used for discovering disks from the Stormshield MIB.' + item_prototypes: + - uuid: d0c7739d80ca41d793827d2e1bc726c0 + name: 'Disk [{#DISK_ID}]: Disk name' + type: DEPENDENT + key: 'system.disk.name[snsDiskEntryDiskName.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Name of the disk. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.10.5.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: sns.disk.walk + tags: + - tag: component + value: system + - uuid: 91a7e52635df431b9ef03323c86cf342 + name: 'Disk [{#DISK_ID}]: Member of a RAID array' + type: DEPENDENT + key: 'system.disk.RAID[snsDiskEntryIsRaid.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Indicates whether the disk is part of a RAID array. + valuemap: + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsDiskEntryIsRaid' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.10.5.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sns.disk.walk + tags: + - tag: component + value: system + - uuid: 18bd74399fd54991ad7de633f33bc5a6 + name: 'Disk [{#DISK_ID}]: SMART info test result' + type: DEPENDENT + key: 'system.disk.result[snsDiskEntrySmartResult.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Result of the SMART diagnostic tests. + valuemap: + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsDiskEntrySmartResult' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.10.5.1.3.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'passed': 1, + 'failed': 2 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.disk.walk + tags: + - tag: component + value: system + - uuid: 3ed28b431dd24952b07378a51e3adb69 + name: 'Disk [{#DISK_ID}]: RAID status' + type: DEPENDENT + key: 'system.disk.status[snsDiskEntryRaidStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + RAID status. + valuemap: + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsDiskEntryRaidStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.10.5.1.5.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'degraded': 1, + 'missing': 2, + 'optimal': 3 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.disk.walk + tags: + - tag: component + value: system + master_item: + key: sns.disk.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#DISK_ID}' + - 1.3.6.1.4.1.11256.1.10.5.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 98ffa94f4d634dd9a43711c7c2aecd88 + name: 'Fan discovery' + type: DEPENDENT + key: fan.discovery + delay: '0' + description: 'Used for discovering the fan from the Stormshield MIB.' + item_prototypes: + - uuid: 6773438fe2934437be8444414b2dd725 + name: 'Fan [{#FAN_ID}]: Fan name' + type: DEPENDENT + key: 'system.fan.name[snsFanName.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Name of the fan. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.10.9.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: sns.fan.walk + tags: + - tag: component + value: system + - uuid: 333faca808f948fc99bc2f54f58c7658 + name: 'Fan [{#FAN_ID}]: Fan speed' + type: DEPENDENT + key: 'system.fan.speed[snsFanRpm.{#SNMPINDEX}]' + delay: '0' + units: '!rpm' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Speed of the fan. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.10.9.1.4.{#SNMPINDEX}' + - '0' + master_item: + key: sns.fan.walk + tags: + - tag: component + value: system + - uuid: f6d54e9b53b14c179208e25f11d91c17 + name: 'Fan [{#FAN_ID}]: Fan status' + type: DEPENDENT + key: 'system.fan.status[snsFanStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Status of the fan. + valuemap: + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsFanStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.10.9.1.3.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'failure': 1, + 'running': 2, + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sns.fan.walk + tags: + - tag: component + value: system + master_item: + key: sns.fan.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#FAN_ID}' + - 1.3.6.1.4.1.11256.1.10.9.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f467d602ecf6428b8e270d2847d029ae + name: 'HA members discovery' + type: DEPENDENT + key: ha.members.discovery + delay: '0' + description: 'Used for discovering HA members from the Stormshield MIB.' + item_prototypes: + - uuid: b8cd8cf98e31467d8f9f76255b99b67b + name: 'HA members [{#HA_ID}]: Firewall active/passive' + type: DEPENDENT + key: 'ha.active[snsHAActive.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HA-MIB + Indicates whether the firewall is active. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.11.7.1.10.{#SNMPINDEX}' + - '0' + master_item: + key: sns.ha.members.walk + tags: + - tag: component + value: ha + - uuid: 0f1f82c877a545749006e96e41e3eec5 + name: 'HA members [{#HA_ID}]: HA licence' + type: DEPENDENT + key: 'ha.license[snsHALicence.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HA-MIB + HA licence. + valuemap: + name: 'STORMSHIELD-HA-MIB::snsHALicence' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.11.7.1.6.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'slave': 1, + 'master': 2 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.ha.members.walk + tags: + - tag: component + value: ha + - uuid: 49c2856094884edfaf1a8aabe9f5695d + name: 'HA members [{#HA_ID}]: Firewall model' + type: DEPENDENT + key: 'ha.model[snsModel.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-HA-MIB + Firewall model. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.11.7.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: sns.ha.members.walk + tags: + - tag: component + value: ha + - uuid: 6acd9f4e764046558918dea106f15cc2 + name: 'HA members [{#HA_ID}]: Is online' + type: DEPENDENT + key: 'ha.online[snsOnline.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HA-MIB + Firewall is online. + valuemap: + name: 'STORMSHIELD-HA-MIB::snsOnline' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.11.7.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: sns.ha.members.walk + tags: + - tag: component + value: ha + - uuid: 025487d110d945b79e1fb7450b7a2de2 + name: 'HA members [{#HA_ID}]: HA priority' + type: DEPENDENT + key: 'ha.priority[snsHAPriority.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HA-MIB + HA priority. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.11.7.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: sns.ha.members.walk + tags: + - tag: component + value: ha + - uuid: f1799047cb354bf38b9ff737206f60db + name: 'HA members [{#HA_ID}]: HA quality' + type: DEPENDENT + key: 'ha.quality[snsHAQuality.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HA-MIB + HA quality. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.11.7.1.7.{#SNMPINDEX}' + - '0' + master_item: + key: sns.ha.members.walk + tags: + - tag: component + value: ha + - uuid: d2c5605f753646779e010830401c74e4 + name: 'HA members [{#HA_ID}]: Firewall serial' + type: DEPENDENT + key: 'ha.serial[snsFwSerial.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-HA-MIB + Firewall serial number. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.11.7.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: sns.ha.members.walk + tags: + - tag: component + value: ha + - uuid: 364ebaf569d14b0ab26998fab81ae368 + name: 'HA members [{#HA_ID}]: Firewall status' + type: DEPENDENT + key: 'ha.status[snsHAStatusForced.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HA-MIB + HA status forced: + -2: Unknown forced status + -1: No peer found + 0: No forced status + 1: Forced active + 2: Forced passive + valuemap: + name: 'STORMSHIELD-HA-MIB::snsHAStatusForced' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.11.7.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: sns.ha.members.walk + tags: + - tag: component + value: ha + - uuid: 333309281fa74231a2276b6b2af0edf5 + name: 'HA members [{#HA_ID}]: Firewall uptime' + type: DEPENDENT + key: 'ha.uptime[snsHAUptime.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: uptime + description: | + MIB: STORMSHIELD-HA-MIB + Firewall uptime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.11.7.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: sns.ha.members.walk + tags: + - tag: component + value: ha + master_item: + key: sns.ha.members.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#HA_ID}' + - 1.3.6.1.4.1.11256.1.11.7.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: eb1bbc3d5f2545b29a20ec6fe7d04265 + name: 'Health status discovery' + type: DEPENDENT + key: health.discovery + delay: '0' + description: 'Used for discovering the health status from the Stormshield MIB.' + item_prototypes: + - uuid: b595804c6b4c420f9520aed3a0cd034b + name: 'Health status firewall [{#HEALTH_ID}]: Certificates' + type: DEPENDENT + key: 'health.certificates.status[snsCertHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield Firewall. + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.11.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + - uuid: 1642f7cde504440eb8a90506074010eb + name: 'Health status firewall [{#HEALTH_ID}]: CPU' + type: DEPENDENT + key: 'health.cpu.status[snsCpuHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield Firewall CPU: + - `Good` if CPU load is 90% or lower + - `Minor` if CPU load is above 90% for less than 5 minutes + - `Major` if CPU load is above 90% for more than 5 minutes + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.7.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + - uuid: a726528c1db14fefb41eb9ec3b76f2e1 + name: 'Health status firewall [{#HEALTH_ID}]: CPU temperature' + type: DEPENDENT + key: 'health.cpu.temperature[snsCpuTempHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield Firewall CPU temperature: + - `Good`; at least 20°C below max temperature + - `Minor`; less than 20°C below max temperature + - `Major`; 5°C below max temperature + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.15.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + trigger_prototypes: + - uuid: d2480be0a3d44a89bc27f3560bbe1e77 + expression: 'last(/Stormshield SNS by SNMP/health.cpu.temperature[snsCpuTempHealth.{#SNMPINDEX}])=5' + name: 'SNS: Health status firewall [{#HEALTH_ID}]: CPU is overheating' + event_name: 'SNS: The CPU is overheating' + priority: HIGH + description: 'The CPU is not working correctly and has raised an alarm.' + tags: + - tag: scope + value: availability + - uuid: 9ace914f22e64f27b974bcfb6076a78c + name: 'Health status firewall [{#HEALTH_ID}]: CRLs' + type: DEPENDENT + key: 'health.crl.status[snsCRLHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield firewall CRLs. + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.12.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + - uuid: 34219ae916b849f0b1c7dec26f153694 + name: 'Health status firewall [{#HEALTH_ID}]: Disk' + type: DEPENDENT + key: 'health.disk.status[snsDiskHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield Firewall disk: + - `Good` if the disks are working correctly + - `Minor` if the disks are not working correctly + - `Major` if the disks are not working correctly and have raised an alarm + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.9.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + trigger_prototypes: + - uuid: f9403a9d6f354c32ae42c719e8f2f4df + expression: 'last(/Stormshield SNS by SNMP/health.disk.status[snsDiskHealth.{#SNMPINDEX}])=5' + name: 'SNS: Health status firewall [{#HEALTH_ID}]: The disk is not working correctly' + event_name: 'SNS: The disk is not working correctly' + priority: HIGH + description: 'The disks are not working correctly and have raised an alarm.' + tags: + - tag: scope + value: availability + - uuid: 6b1b1a042fb040b6a7aaaa29b7666b9d + name: 'Health status firewall [{#HEALTH_ID}]: Fans' + type: DEPENDENT + key: 'health.fan.status[snsFanHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield Firewall fans: + - `Good` if the fans are working correctly + - `Minor` if the fans are not working correctly + - `Major` if the fans are not working correctly and have raised an alarm + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.6.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + trigger_prototypes: + - uuid: 925e62403192466b9e5d79340fff7f18 + expression: 'last(/Stormshield SNS by SNMP/health.fan.status[snsFanHealth.{#SNMPINDEX}])=5' + name: 'SNS: Health status firewall [{#HEALTH_ID}]: The fan is not working correctly' + event_name: 'SNS: The fan is not working correctly' + priority: AVERAGE + description: 'The fans are not working correctly and have raised an alarm.' + tags: + - tag: scope + value: availability + - uuid: 26ed671f5dc641e8abee510e05f4f351 + name: 'Health status firewall [{#HEALTH_ID}]: HA link' + type: DEPENDENT + key: 'health.ha.link.status[snsHaLinkHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield Firewall HA link: + - `Good` if the HA link is working correctly + - `Minor` if the HA link is not working correctly (may be down) + - `Major` if the HA link is not working (is down) + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.4.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + trigger_prototypes: + - uuid: a8a3b2d803b64242a68c5dd66fdc7b38 + expression: 'last(/Stormshield SNS by SNMP/health.ha.link.status[snsHaLinkHealth.{#SNMPINDEX}])=5' + name: 'SNS: Health status firewall [{#HEALTH_ID}]: HA link is down' + event_name: 'SNS: HA link is down' + priority: HIGH + description: 'The HA link is not working (is down).' + tags: + - tag: scope + value: availability + - uuid: 219821bed46641cbbdf3270e3529e3fd + name: 'Health status firewall [{#HEALTH_ID}]: HA mode' + type: DEPENDENT + key: 'health.ha.mode.status[snsHaModeHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current status of Stormshield Firewall HA mode: + - `None` if HA is not active + - `Active` if the firewall is the active status + - `Passive` if the firewall is the passive status + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.3.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + - uuid: 149b3ce5f5f649789395b08ff794a66e + name: 'Health status firewall [{#HEALTH_ID}]: Memory' + type: DEPENDENT + key: 'health.memory.status[snsMemHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield Firewall memory: + - `Good` if memory load is 80% or lower + - `Minor` if memory load is above 80% for less than 15 minutes + - `Major` if memory load is above 80% for more than 15 minutes + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.8.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + - uuid: 3c96db8dddb148478a58c6261a06a2d8 + name: 'Health status firewall [{#HEALTH_ID}]: Admin password' + type: DEPENDENT + key: 'health.password.status[snsPasswdHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield Firewall Admin Password: + - `Good` if the date when the admin password was last changed is less than a year ago + - `Minor` if the date when the admin password was last changed is more than a year ago + - `Major` if the admin password is the default password + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.14.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + trigger_prototypes: + - uuid: 1eb323d145f246b48b0ca194b29f3638 + expression: 'last(/Stormshield SNS by SNMP/health.password.status[snsPasswdHealth.{#SNMPINDEX}])=5' + name: 'SNS: Health status firewall [{#HEALTH_ID}]: Admin password is not secured' + event_name: 'SNS: Admin password is not secured' + priority: HIGH + description: 'The admin password is the default password; please change it.' + tags: + - tag: scope + value: notice + - uuid: db9d21f5b3fb42abbe8a6c776fd1a269 + name: 'Health status firewall [{#HEALTH_ID}]: Power supply' + type: DEPENDENT + key: 'health.power.status[snsPowerSupplyHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield Firewall power supply: + - `Good` if the power supply is working correctly + - `Minor` if the power supply is not working correctly + - `Major` if the power supply is not working correctly and has raised an alarm. + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.5.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + trigger_prototypes: + - uuid: 816a07c6a4ca4da7990a5d345a17a4cb + expression: 'last(/Stormshield SNS by SNMP/health.power.status[snsPowerSupplyHealth.{#SNMPINDEX}])=5' + name: 'SNS: Health status firewall [{#HEALTH_ID}]: The power supply is not working correctly' + event_name: 'SNS: The power supply is not working correctly' + priority: HIGH + description: 'The power supply is not working correctly and has raised an alarm.' + tags: + - tag: scope + value: availability + - uuid: 5e6662ef9c5940cb972547886413a5e2 + name: 'Health status firewall [{#HEALTH_ID}]: RAID' + type: DEPENDENT + key: 'health.raid.status[snsRaidHealth.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-HEALTH-MONITOR-MIB + Current health status of Stormshield Firewall RAID: + - `Good` if the RAID is working in optimal mode + - `Minor` if the RAID is not working in optimal mode + - `Major` if the RAID is not working in optimal mode and has raised an alarm + valuemap: + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.16.2.1.10.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'n/a': 1, + 'none': 2, + 'active': 3, + 'passive': 4, + 'major': 5, + 'minor': 6, + 'good': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.health.walk + tags: + - tag: component + value: health + trigger_prototypes: + - uuid: 305c5ab2338349efad3bedcda622922d + expression: 'last(/Stormshield SNS by SNMP/health.raid.status[snsRaidHealth.{#SNMPINDEX}])=5' + name: 'SNS: Health status firewall [{#HEALTH_ID}]: The RAID is not working correctly' + event_name: 'SNS: The RAID is not working correctly' + priority: AVERAGE + description: 'The RAID is not working in optimal mode and has raised an alarm.' + tags: + - tag: scope + value: availability + master_item: + key: sns.health.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#HEALTH_ID}' + - 1.3.6.1.4.1.11256.1.16.2.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 3d44b2c118aa49cf84db72090d56386d + name: 'Network interface discovery' + type: DEPENDENT + key: network.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IF_NAME}' + value: '{$SNS.NET.IF.IFNAME.MATCHES}' + formulaid: A + - macro: '{#IF_NAME}' + value: '{$SNS.NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Used for discovering network interfaces from the Stormshield MIB.' + item_prototypes: + - uuid: 2856ed811ce94fcdb7e1f0a53ee137dd + name: 'Interface [{#IF_NAME}]: Accepted packets' + type: DEPENDENT + key: 'net.if.accepted[snsifPktAccepted.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-IF-MIB + Number of accepted packets. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.11.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: 6c8fa9e6b6c844c1a0e6cc459e113a2d + name: 'Interface [{#IF_NAME}]: Blocked packets' + type: DEPENDENT + key: 'net.if.blocked[snsifPktBlocked.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-IF-MIB + Number of packets that have been blocked. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.12.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: 0f09154ae902486480f851250c97eef6 + name: 'Interface [{#IF_NAME}]: TCP connection established' + type: DEPENDENT + key: 'net.if.established[snsifTcpConn.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-IF-MIB + TCP connection established. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.21.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: f5c0c2563007456b8499e54ccfb40f5c + name: 'Interface [{#IF_NAME}]: UDP connection established' + type: DEPENDENT + key: 'net.if.established[snsifUdpConn.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-IF-MIB + UDP connection established. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.22.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: 22e48329645347aab3ea9d4e59020522 + name: 'Interface [{#IF_NAME}]: Max input flow rate' + type: DEPENDENT + key: 'net.if.in.max[snsifInMaxThroughput.{#SNMPINDEX}]' + delay: '0' + units: Bps + description: | + MIB: STORMSHIELD-IF-MIB + Maximum incoming throughput in B/s. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.27.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: 9ff9c28639d64ab8bbb3fdf923af6674 + name: 'Interface [{#IF_NAME}]: Incoming current throughput' + type: DEPENDENT + key: 'net.if.in[snsifInCurThroughput.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: STORMSHIELD-IF-MIB + Current incoming throughput in B/s. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.25.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: d8a307f9d7de43a69715603bc3d5234f + name: 'Interface [{#IF_NAME}]: Incoming TCP data bytes' + type: DEPENDENT + key: 'net.if.in[snsifInTcpBytes.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: STORMSHIELD-IF-MIB + Incoming TCP data bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.31.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: 9217cb7c112d4fc3bfdccacb665f17a0 + name: 'Interface [{#IF_NAME}]: Incoming data bytes' + type: DEPENDENT + key: 'net.if.in[snsifInTotalBytes.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: STORMSHIELD-IF-MIB + Incoming data bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.29.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: f7d9c2ee246d4e228572bbb26f9fc6a9 + name: 'Interface [{#IF_NAME}]: Incoming UDP data bytes' + type: DEPENDENT + key: 'net.if.in[snsifInUdpBytes.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: STORMSHIELD-IF-MIB + Incoming UDP data bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.33.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: 3658031cb71f49db9d8165a2ccc362e5 + name: 'Interface [{#IF_NAME}]: Max output flow rate' + type: DEPENDENT + key: 'net.if.max_out[snsifOutMaxThroughput.{#SNMPINDEX}]' + delay: '0' + units: Bps + description: | + MIB: STORMSHIELD-IF-MIB + Maximum outgoing throughput in B/s. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.28.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: e18aa78ed6cc4445a80aa663d302efda + name: 'Interface [{#IF_NAME}]: System interface name' + type: DEPENDENT + key: 'net.if.name[snsifName.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-IF-MIB + System interface name. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: b08262d794224dd596f475f839309369 + name: 'Interface [{#IF_NAME}]: Outgoing current throughput' + type: DEPENDENT + key: 'net.if.out[snsifOutCurThroughput.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: STORMSHIELD-IF-MIB + Current outgoing throughput in B/s. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.26.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: 8c79eda2435c4333b18150006825e32d + name: 'Interface [{#IF_NAME}]: Outgoing TCP data bytes' + type: DEPENDENT + key: 'net.if.out[snsifOutTcpBytes.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: STORMSHIELD-IF-MIB + Outgoing TCP data bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.32.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: e2017818401f4cb6badd3d1ef1027f87 + name: 'Interface [{#IF_NAME}]: Outgoing data bytes' + type: DEPENDENT + key: 'net.if.out[snsifOutTotalBytes.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: STORMSHIELD-IF-MIB + Outgoing data bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.30.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: 0edacb02864046b799966b8f0eb3222f + name: 'Interface [{#IF_NAME}]: Outgoing UDP data bytes' + type: DEPENDENT + key: 'net.if.out[snsifOutUdpBytes.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: STORMSHIELD-IF-MIB + Outgoing UDP data bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.34.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: 2d6d2437279c4373b3c400f47b225be5 + name: 'Interface [{#IF_NAME}]: Interface protected' + type: DEPENDENT + key: 'net.if.protected[snsifProtected.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-IF-MIB + Indicates whether the interface is protected. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.37.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: 24d06317e62d443aab02954cc1ef13f8 + name: 'Interface [{#IF_NAME}]: Current TCP connection count' + type: DEPENDENT + key: 'net.if.TCP_count[snsifTcpConnCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-IF-MIB + Current TCP connection count. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.23.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + - uuid: cd41efc0083b4b1da6771ee8489c6631 + name: 'Interface [{#IF_NAME}]: Current UDP connection count' + type: DEPENDENT + key: 'net.if.UDP_count[snsifUdpConnCount.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-IF-MIB + Current UDP connection count. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.4.1.1.24.{#SNMPINDEX}' + - '0' + master_item: + key: sns.net.if.walk + tags: + - tag: component + value: network + - tag: interface + value: '{#IF_NAME}' + graph_prototypes: + - uuid: e4ab949e8b4d4fe09aab03740e12864d + name: 'SNS: Interface [{#IF_NAME}]: Network traffic' + graph_items: + - color: 1A7C11 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'net.if.in[snsifInTotalBytes.{#SNMPINDEX}]' + - sortorder: '1' + color: '274482' + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'net.if.out[snsifOutTotalBytes.{#SNMPINDEX}]' + - sortorder: '2' + color: F63100 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'net.if.in[snsifInTcpBytes.{#SNMPINDEX}]' + - sortorder: '3' + color: 2774A4 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'net.if.out[snsifOutTcpBytes.{#SNMPINDEX}]' + - sortorder: '4' + color: 6C59DC + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'net.if.in[snsifInUdpBytes.{#SNMPINDEX}]' + - sortorder: '5' + color: AC8C14 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'net.if.out[snsifOutUdpBytes.{#SNMPINDEX}]' + - sortorder: '6' + color: A54F10 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'net.if.accepted[snsifPktAccepted.{#SNMPINDEX}]' + - sortorder: '7' + color: FC6EA3 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'net.if.blocked[snsifPktBlocked.{#SNMPINDEX}]' + master_item: + key: sns.net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IF_ID}' + - 1.3.6.1.4.1.11256.1.4.1.1.1 + - '0' + - '{#IF_NAME}' + - 1.3.6.1.4.1.11256.1.4.1.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: bcc8c701b453409b8d00006fcc7515bb + name: 'Power supply discovery' + type: DEPENDENT + key: psu.discovery + delay: '0' + description: 'Used for discovering power supplies from the Stormshield MIB.' + item_prototypes: + - uuid: df7dd3abb56542dcb9e94bf05ab49bea + name: 'PSU [{#POWER_ID}]: Power status' + type: DEPENDENT + key: 'system.psu.power[snsPowerSupplyPowered.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Indicates whether the power supply is powered by electricity. + valuemap: + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsPowerSupplyPowered' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.10.6.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: sns.psu.walk + tags: + - tag: component + value: system + - uuid: bd32f31d949f4f7cb36a181942ac69bb + name: 'PSU [{#POWER_ID}]: Status' + type: DEPENDENT + key: 'system.psu.status[snsPowerSupplyStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-SYSTEM-MONITOR-MIB + Indicates the status of the power supply. + valuemap: + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsPowerSupplyStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.10.6.1.3.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'notfound': 1, + 'dummy': 2, + 'optional_not_powered': 3, + 'failed': 4, + 'ok': 5 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + master_item: + key: sns.psu.walk + tags: + - tag: component + value: system + master_item: + key: sns.psu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#POWER_ID}' + - 1.3.6.1.4.1.11256.1.10.6.1.1 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4e129e7982214b58855c3cdb42a9f91e + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#STORAGE_DESCR}' + value: '{$SNS.STORAGE.DESCR.MATCHES}' + formulaid: A + - macro: '{#STORAGE_DESCR}' + value: '{$SNS.STORAGE.DESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STORAGE_TYPE}' + value: '{$SNS.STORAGE.TYPE.MATCHES}' + formulaid: C + - macro: '{#STORAGE_TYPE}' + value: '{$SNS.STORAGE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Used for discovering storage from the Stormshield MIB.' + item_prototypes: + - uuid: 78657f8ffd554090bb46d55cdf06c730 + name: 'Storage [{#STORAGE_DESCR}]: Storage size' + type: DEPENDENT + key: 'host.storage.size[hrStorageSizedata.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: B + description: | + MIB: HOST-RESOURCES-MIB + Total memory in the data file in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '4096' + master_item: + key: sns.storage.walk + tags: + - tag: component + value: storage + - uuid: 90825a58e4a7428e955638492cb654b6 + name: 'Storage [{#STORAGE_DESCR}]: Used storage' + type: DEPENDENT + key: 'host.storage.used[hrStorageUseddata.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: B + description: | + MIB: HOST-RESOURCES-MIB + Used memory in the data file in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '4096' + master_item: + key: sns.storage.walk + tags: + - tag: component + value: storage + - uuid: 3f24a44e6b194774af99b1570e9043b3 + name: 'Storage [{#STORAGE_DESCR}]: Utilization' + type: CALCULATED + key: 'host.storage.utilization[.{#SNMPINDEX}]' + units: '%' + params: '(last(//host.storage.used[hrStorageUseddata.{#SNMPINDEX}])/last(//host.storage.size[hrStorageSizedata.{#SNMPINDEX}]))*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: storage + trigger_prototypes: + - uuid: 3e69f180bb9f4ae8a28a9d3433723f1f + expression: 'min(/Stormshield SNS by SNMP/host.storage.utilization[.{#SNMPINDEX}],5m)>{$SNS.MEMORY.UTIL.MAX}' + name: 'SNS: Storage [{#STORAGE_DESCR}]: Utilization is high' + event_name: 'SNS: High storage utilization (>{$SNS.MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The data file is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + master_item: + key: sns.storage.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - '{#STORAGE_DESCR}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 53f93c7ce4d940609334343031dc7705 + name: 'Autoupdate discovery' + type: DEPENDENT + key: update.auto.discovery + delay: '0' + description: 'Used for discovering updates from the Stormshield MIB.' + item_prototypes: + - uuid: 1ca1980a3dc7400b98235b18ecb4fc9c + name: 'Autoupdate [{#UPDATE_NAME}]: Last update date' + type: DEPENDENT + key: 'system.update.last[snsAutoupdateLast.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: STORMSHIELD-AUTOUPDATE-MIB + Date of the last update of a subsystem. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.9.1.1.4.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: sns.update.auto.walk + tags: + - tag: component + value: system + - uuid: 144fdb66d21647b99ca67908c5b240cd + name: 'Autoupdate [{#UPDATE_NAME}]: Update state' + type: DEPENDENT + key: 'system.update.state[snsAutoupdateState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: STORMSHIELD-AUTOUPDATE-MIB + State of the update of a subsystem. + valuemap: + name: 'STORMSHIELD-AUTOUPDATE-MIB::snsAutoupdateState' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11256.1.9.1.1.3.{#SNMPINDEX}' + - '0' + - type: JAVASCRIPT + parameters: + - | + const idx = { + 'never started': 1, + 'not available': 2, + 'running': 3, + 'broken': 4, + 'failed': 5, + 'uptodate': 6, + 'manually uptodate': 7 + }; + + return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()]; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: sns.update.auto.walk + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 7226b9ba8d3947a59bf0d709b843b472 + expression: '(last(/Stormshield SNS by SNMP/system.update.state[snsAutoupdateState.{#SNMPINDEX}])=4) or (last(/Stormshield SNS by SNMP/system.update.state[snsAutoupdateState.{#SNMPINDEX}])=5)' + name: 'SNS: Autoupdate [{#UPDATE_NAME}]: Not up to date' + event_name: 'SNS: Autoupdate not up to date' + priority: INFO + description: 'The autoupdate is not up to date (never started or started more than a year ago).' + tags: + - tag: scope + value: notice + master_item: + key: sns.update.auto.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#UPDATE_ID}' + - 1.3.6.1.4.1.11256.1.9.1.1.1 + - '0' + - '{#UPDATE_NAME}' + - 1.3.6.1.4.1.11256.1.9.1.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: subclass + value: firewall + - tag: subclass + value: security + - tag: target + value: sns + - tag: target + value: stormshield + macros: + - macro: '{$SNS.CPU.UTIL.CRIT}' + value: '95' + description: 'Threshold of CPU utilization for Critical trigger in %.' + - macro: '{$SNS.CPU.UTIL.WARN}' + value: '85' + description: 'Threshold of CPU utilization for Warning trigger in %.' + - macro: '{$SNS.DISK.FREE.CRIT}' + value: '10' + description: 'Threshold of free disk space for Critical trigger in %.' + - macro: '{$SNS.DISK.FREE.WARN}' + value: '20' + description: 'Threshold of free disk space for Warning trigger in %.' + - macro: '{$SNS.ICMP.LOSS.WARN}' + value: '20' + description: 'Threshold of ICMP packet loss for Warning trigger in %.' + - macro: '{$SNS.ICMP.RESPONSE.TIME.WARN}' + value: '0.15' + description: 'Threshold of average ICMP response time for Warning trigger in seconds.' + - macro: '{$SNS.MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold for memory utilization trigger in %.' + - macro: '{$SNS.NET.IF.IFNAME.MATCHES}' + value: '.*' + description: 'Sets regex string of network interface names to allow in discovery.' + - macro: '{$SNS.NET.IF.IFNAME.NOT_MATCHES}' + value: ^(sslvpn|ipsec) + description: 'Sets regex string of network interface names to ignore in discovery.' + - macro: '{$SNS.SNMP.INTERVAL}' + value: 1m + description: 'Time interval for SNMP agent items.' + - macro: '{$SNS.SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for SNMP availability trigger.' + - macro: '{$SNS.STORAGE.DESCR.MATCHES}' + value: ^(/data|/log)$ + description: 'Sets regex string of storage descriptions to allow in discovery.' + - macro: '{$SNS.STORAGE.DESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets regex string of storage descriptions to ignore in discovery.' + - macro: '{$SNS.STORAGE.TYPE.MATCHES}' + value: .1.3.6.1.2.1.25.2.1.4 + description: 'Sets regex string of storage types to allow in discovery.' + - macro: '{$SNS.STORAGE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets regex string of storage types to ignore in discovery.' + dashboards: + - uuid: 68b246ab40c24a9f9057d58bcea37cac + name: Main + auto_start: 'NO' + pages: + - name: Overview + display_period: '60' + widgets: + - type: item + name: Name + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: Name + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'property.hardware.name[snsSystemName.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Firmware version' + 'y': '2' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Firmware version' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'property.hardware.version[snsVersion.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'System date' + 'y': '4' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'System date' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'system.date[snsDate.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: gauge + name: 'Memory utilization' + 'y': '6' + width: '24' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Memory utilization' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: host.memory.utilization + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: item + name: 'Total memory' + 'y': '10' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Total memory' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'host.memory.total[memTotalReal.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Buffer memory' + 'y': '12' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Buffer memory' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'host.memory.buffer[memBuffer.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Model + x: '12' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: Model + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'property.hardware.model[snsModel.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Serial number' + x: '12' + 'y': '2' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Serial number' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'property.hardware.serial[snsSerialNumber.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: Uptime + x: '12' + 'y': '4' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: Uptime + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'system.hardware.uptime[snsUptime.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Available memory' + x: '12' + 'y': '10' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Available memory' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: host.memory.available + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Cached memory' + x: '12' + 'y': '12' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Cached memory' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'host.memory.cached[memCached.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: problems + name: Problems + x: '24' + width: '48' + height: '6' + - type: honeycomb + name: 'CPU utilization' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'CPU [*]: Usage' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("CPU\s\[(\d+)\]:\sUsage", CPU \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: BBDAB + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: honeycomb + name: 'Storage utilization' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Storage [*]: Utilization' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Storage\s\[(.+)\]:\sUtilization", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: BBDAC + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: item + name: 'SNMP agent availability' + x: '24' + 'y': '12' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'SNMP agent availability' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'zabbix[host,snmp,available]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FFD54F + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'ICMP ping' + x: '36' + 'y': '12' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'ICMP ping' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: icmpping + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'ICMP response time' + x: '48' + 'y': '12' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'ICMP response time' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: icmppingsec + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'ICMP loss' + x: '60' + 'y': '12' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'ICMP loss' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: icmppingloss + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - name: 'Interfaces: Traffic' + widgets: + - type: honeycomb + name: 'Incoming current throughput' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Incoming current throughput' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\].*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFTRX + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: bps + - type: STRING + name: thresholds.0.color + value: 8BCC3A + - type: STRING + name: thresholds.0.threshold + value: '100' + - type: honeycomb + name: 'Outgoing current throughput' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Outgoing current throughput' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\].*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFTTX + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: bps + - type: STRING + name: thresholds.0.color + value: 00A2E5 + - type: STRING + name: thresholds.0.threshold + value: '100' + - type: svggraph + name: 'Network interfaces traffic' + 'y': '6' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 8BCC3A + - type: STRING + name: ds.0.color.1 + value: 00A2E5 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: IFTRX._itemid + - type: STRING + name: ds.0.itemids.1._reference + value: IFTTX._itemid + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: IFTGR + - type: INTEGER + name: working_time + value: '1' + - name: 'Interfaces: Packets' + widgets: + - type: honeycomb + name: 'Accepted packets' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Accepted packets' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\].*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFPAC + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: honeycomb + name: 'Blocked packets' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Blocked packets' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\].*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFPBL + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: svggraph + name: 'Accepted/Blocked packets' + 'y': '6' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: STRING + name: ds.0.color.1 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: IFPAC._itemid + - type: STRING + name: ds.0.itemids.1._reference + value: IFPBL._itemid + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: IFTGR + - type: INTEGER + name: working_time + value: '1' + - name: CPU + widgets: + - type: honeycomb + name: 'CPU usage' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'CPU [*]: Usage' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("CPU\s\[(\d+)\]:\sUsage", CPU \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: CPUUS + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: '%' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: honeycomb + name: 'CPU temperature' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'CPU*: Temperature' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("CPU\s\[(\d+)\]:\sTemperature", CPU \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: CPUTM + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: °C + - type: svggraph + name: CPU + 'y': '6' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: CPUUS._itemid + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: FF465C + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: STRING + name: ds.1.itemids.0._reference + value: CPUTM._itemid + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: reference + value: CPUGR + - type: INTEGER + name: righty + value: '1' + - type: INTEGER + name: working_time + value: '1' + - name: Memory + widgets: + - type: gauge + name: 'Memory utilization' + width: '24' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Memory utilization' + - type: INTEGER + name: desc_size + value: '8' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: host.memory.utilization + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: INTEGER + name: value_arc_size + value: '35' + - type: INTEGER + name: value_bold + value: '1' + - type: item + name: 'Total memory' + 'y': '4' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Total memory' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'host.memory.total[memTotalReal.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Buffer memory' + 'y': '6' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Buffer memory' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'host.memory.buffer[memBuffer.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Available memory' + x: '12' + 'y': '4' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Available memory' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: host.memory.available + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Cached memory' + x: '12' + 'y': '6' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: STRING + name: description + value: 'Cached memory' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'host.memory.cached[memCached.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '35' + - type: honeycomb + name: 'Memory utilization' + x: '24' + width: '48' + height: '6' + fields: + - type: STRING + name: items.0 + value: '* memory utilization' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(.+) memory utilization", \1)}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: MEMUH + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: '%' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: svggraph + name: 'Memory utilization' + x: '24' + 'y': '6' + width: '48' + height: '8' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: MEMUH._itemid + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: MEMGR + - type: INTEGER + name: working_time + value: '1' + - name: Disk + widgets: + - type: honeycomb + name: 'Disk name' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Disk*: Disk name' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Disk\s\[(.+)\].*", Disk \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: DSKNA + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: honeycomb + name: 'Member of a RAID array' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Disk*: Member of a RAID array' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Disk\s\[(.+)\].*", Disk \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: DSKRM + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '25' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: honeycomb + name: 'RAID status' + 'y': '6' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Disk*: RAID status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Disk\s\[(.+)\].*", Disk \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: DSKRS + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '25' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: honeycomb + name: 'SMART info test result' + 'y': '9' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Disk*: SMART info test result' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Disk\s\[(.+)\].*", Disk \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: DSKSM + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '25' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: FF465C + - type: STRING + name: thresholds.1.threshold + value: '2' + - name: Fan + widgets: + - type: honeycomb + name: 'Fan status' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Fan*: Fan status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Fan\s\[(.+)\].*", Fan \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: FANST + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '25' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: honeycomb + name: 'Fan speed' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Fan*: Fan speed' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Fan\s\[(.+)\].*", Fan \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: FANSP + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: rpm + - type: svggraph + name: 'Fan speed' + 'y': '6' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: FANSP._itemid + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: FANGR + - type: INTEGER + name: working_time + value: '1' + - name: PSU + widgets: + - type: honeycomb + name: 'PSU power status' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'PSU*: Power status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("PSU\s\[(.+)\].*", PSU \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: PSUPS + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '25' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: honeycomb + name: 'PSU status' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'PSU*: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("PSU\s\[(.+)\].*", PSU \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: PSUST + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '25' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '4' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '5' + - name: HA + widgets: + - type: item + name: 'Active firewalls' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Active firewalls' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'ha.node.active[snsNbActiveNode.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Firewalls in the cluster' + 'y': '2' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Firewalls in the cluster' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'ha.node.count[snsNbNode.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Synchronization status' + 'y': '4' + width: '24' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Synchronization status' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'ha.sync.status[snsHASyncStatus.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: svggraph + name: 'HA quality' + 'y': '6' + width: '24' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 0EC9AC + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: HAHQL._itemid + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: HAHQG + - type: INTEGER + name: working_time + value: '1' + - type: item + name: 'Faulty HA links' + x: '12' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Faulty HA links' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'ha.links.faulty[snsNbFaultyHALinks.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Firewalls not replying' + x: '12' + 'y': '2' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Firewalls not replying' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'ha.node.dead[snsNbDeadNode.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: honeycomb + name: 'Is online' + x: '24' + width: '48' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'HA members*: Is online' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("HA members\s\[(.+)\].*", HA \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HAHON + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: honeycomb + name: 'HA quality' + x: '24' + 'y': '3' + width: '48' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'HA members*: HA quality' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("HA members\s\[(.+)\].*", HA \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HAHQL + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: honeycomb + name: 'HA priority' + x: '24' + 'y': '6' + width: '48' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'HA members*: HA priority' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("HA members\s\[(.+)\].*", HA \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HAHPR + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: honeycomb + name: 'Firewall status' + x: '24' + 'y': '9' + width: '48' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'HA members*: Firewall status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("HA members\s\[(.+)\].*", HA \1)}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HAHFS + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - name: Autoupdate + widgets: + - type: honeycomb + name: 'Update state' + width: '72' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'Autoupdate*: Update state' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Autoupdate\s\[(.+)\].*", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AUUST + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '4' + - type: STRING + name: thresholds.1.color + value: 0EC9AC + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: honeycomb + name: 'Last update date' + 'y': '6' + width: '72' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'Autoupdate*: Last update date' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Autoupdate\s\[(.+)\].*", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AUUDT + - type: INTEGER + name: secondary_label_units_show + value: '0' + - name: VPN + widgets: + - type: item + name: 'Incoming policies' + width: '14' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Incoming policies' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'ipsec.policies.in[snsIPSECStatsSPDIn.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: svggraph + name: 'VPN data' + 'y': '2' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: F5B218 + - type: STRING + name: ds.0.color.1 + value: F57018 + - type: STRING + name: ds.0.color.2 + value: 18A5F5 + - type: STRING + name: ds.0.color.3 + value: '466475' + - type: STRING + name: ds.0.color.4 + value: '756746' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'ipsec.policies.in[snsIPSECStatsSPDIn.0]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Stormshield SNS by SNMP' + key: 'ipsec.policies.out[snsIPSECStatsSPDOut.0]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Stormshield SNS by SNMP' + key: 'vpn.tunnel.mature[snsIPSECStatsSADMature.0]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Stormshield SNS by SNMP' + key: 'vpn.tunnel.dying[snsIPSECStatsSADDying.0]' + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Stormshield SNS by SNMP' + key: 'vpn.tunnel.dead[snsIPSECStatsSADDead.0]' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: FANGR + - type: INTEGER + name: working_time + value: '1' + - type: item + name: 'Outgoing policies' + x: '14' + width: '14' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Outgoing policies' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'ipsec.policies.in[snsIPSECStatsSPDIn.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Number of mature VPN tunnels' + x: '28' + width: '14' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Number of mature VPN tunnels' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'vpn.tunnel.mature[snsIPSECStatsSADMature.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Number of dying VPN tunnels' + x: '42' + width: '14' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Number of dying VPN tunnels' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'vpn.tunnel.dying[snsIPSECStatsSADDying.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Number of dead VPN tunnels' + x: '56' + width: '16' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Number of dead VPN tunnels' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'vpn.tunnel.dead[snsIPSECStatsSADDead.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - name: 'Policies & ASQ' + widgets: + - type: item + name: Policies + width: '14' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: Policies + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_size + value: '35' + - type: INTEGER + name: desc_v_pos + value: '1' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'policy.filter[snsPolicySlotName]' + - type: INTEGER + name: show.0 + value: '1' + - type: item + name: 'Active filtering policy name' + 'y': '2' + width: '14' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Active filtering policy name' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'policy.filter[snsPolicySlotName]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Active IPsec policy name' + 'y': '4' + width: '14' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Active IPsec policy name' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'policy.ipsec[snsPolicySlotNameIPsec]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: ASQ + x: '16' + width: '28' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: ASQ + - type: INTEGER + name: desc_bold + value: '1' + - type: INTEGER + name: desc_size + value: '35' + - type: INTEGER + name: desc_v_pos + value: '1' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'asq.alarm.stateful[snsASQStatsStatefulMajorAlarm.0]' + - type: INTEGER + name: show.0 + value: '1' + - type: item + name: 'ASQ major alarm count' + x: '16' + 'y': '2' + width: '14' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'ASQ major alarm count' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'asq.alarm.stateful[snsASQStatsStatefulMajorAlarm.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'ASQ minor alarm count' + x: '16' + 'y': '4' + width: '14' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'ASQ minor alarm count' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'asq.alarm.stateful[snsASQStatsStatefulMinorAlarm.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'ASQ TCP connection count' + x: '30' + 'y': '2' + width: '14' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'ASQ TCP connection count' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'asq.alarm.stateful.tcp[snsASQStatsStatefulTcpConn.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'ASQ UDP connection count' + x: '30' + 'y': '4' + width: '14' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'ASQ UDP connection count' + - type: ITEM + name: itemid.0 + value: + host: 'Stormshield SNS by SNMP' + key: 'asq.alarm.stateful.udp[snsASQStatsStatefulUdpConn.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - name: 'Health status' + widgets: + - type: honeycomb + name: 'Admin password' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: Admin password' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTAP + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: Certificates + 'y': '3' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: Certificates' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTCR + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: CPU + 'y': '6' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: CPU' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTCU + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: 'CPU temperature' + 'y': '9' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: CPU temperature' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTCT + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: CRLs + x: '24' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: CRLs' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTCL + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: Disk + x: '24' + 'y': '3' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: Disk' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTDS + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: Fans + x: '24' + 'y': '6' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: Fans' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTFN + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: 'HA link' + x: '24' + 'y': '9' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: HA link' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTHL + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: 'HA mode' + x: '48' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: HA mode' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTHM + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: Memory + x: '48' + 'y': '3' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: Memory' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTMM + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: 'Power supply' + x: '48' + 'y': '6' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: Power supply' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTPS + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + - type: honeycomb + name: RAID + x: '48' + 'y': '9' + width: '24' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Health status firewall [*]: RAID' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Health status firewall\s\[(.+)\]:\s(.*)", #\1 \2)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: HSTRD + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '20' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '5' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '6' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '7' + valuemaps: + - uuid: 1ba10b4dfec646359ae363d8c374667c + name: 'Host availability' + mappings: + - value: '0' + newvalue: 'Not available' + - value: '1' + newvalue: Available + - value: '2' + newvalue: Unknown + - uuid: 30e84601ccc9488c9f1c81dbf02df4b3 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: afd4fdd6212547a281a842b806f9b520 + name: 'STORMSHIELD-AUTOUPDATE-MIB::snsAutoupdateState' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: 'Never started' + - value: '2' + newvalue: 'Not available' + - value: '3' + newvalue: Running + - value: '4' + newvalue: Broken + - value: '5' + newvalue: Failed + - value: '6' + newvalue: 'Up to date' + - value: '7' + newvalue: 'Manually up to date' + - uuid: ee09eb3b1fa049b7bcd9ad51a49d39f4 + name: 'STORMSHIELD-HA-MIB::snsHALicence' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Slave + - value: '2' + newvalue: Master + - uuid: 2063c82a4fd54f228655d1c42dd249ce + name: 'STORMSHIELD-HA-MIB::snsHAStatusForced' + mappings: + - value: '-2' + newvalue: 'Unknown forced status' + - value: '-1' + newvalue: 'No peer found' + - value: '0' + newvalue: 'No forced status' + - value: '1' + newvalue: 'Forced active' + - value: '2' + newvalue: 'Forced passive' + - uuid: 1c7e7fe23de34086b5009a995ee4e71f + name: 'STORMSHIELD-HA-MIB::snsHASyncStatus' + mappings: + - value: '-1' + newvalue: 'Unknown / Error' + - value: '0' + newvalue: 'Not synced' + - value: '1' + newvalue: Synced + - uuid: 0761fc9c63674cf6914d2d0c36df4391 + name: 'STORMSHIELD-HA-MIB::snsOnline' + mappings: + - value: '0' + newvalue: 'Not online' + - value: '1' + newvalue: Online + - uuid: 278a31a580424daebcc73cc0f7f75764 + name: 'STORMSHIELD-HEALTH-MONITOR-MIB::*' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: N/A + - value: '2' + newvalue: None + - value: '3' + newvalue: Active + - value: '4' + newvalue: Passive + - value: '5' + newvalue: Major + - value: '6' + newvalue: Minor + - value: '7' + newvalue: Good + - uuid: 0c3077b6a7ab46f29226e493fbf7f60a + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsDiskEntryIsRaid' + mappings: + - value: '0' + newvalue: 'Not in RAID' + - value: '1' + newvalue: 'In RAID' + - uuid: 72383baf0804476fb75d1451a344554d + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsDiskEntryRaidStatus' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Degraded + - value: '2' + newvalue: Missing + - value: '3' + newvalue: Optimal + - uuid: ac297c469fb348d4ab231e43f935f682 + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsDiskEntrySmartResult' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Passed + - value: '2' + newvalue: Failed + - uuid: 5ae9550fd2cf4c3f8361ca95b82b3c2f + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsFanStatus' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Failure + - value: '2' + newvalue: Running + - uuid: fc9b6cf135884b0d8dcd4b159304751b + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsPowerSupplyPowered' + mappings: + - value: '0' + newvalue: 'Not powered' + - value: '1' + newvalue: Powered + - uuid: 5a30cfb4e78742b0bc421abc334b7953 + name: 'STORMSHIELD-SYSTEM-MONITOR-MIB::snsPowerSupplyStatus' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: 'Not found' + - value: '2' + newvalue: Dummy + - value: '3' + newvalue: 'Optional not powered' + - value: '4' + newvalue: Failed + - value: '5' + newvalue: OK + graphs: + - uuid: b975fcc533c24f2d99f03b424cf23779 + name: 'SNS: Memory usage' + graph_items: + - color: '274482' + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: 'host.memory.total[memTotalReal.0]' + - sortorder: '1' + color: 1A7C11 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: host.memory.available + - sortorder: '2' + color: F63100 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: host.memory.used + - uuid: 1f8d7ea4dd0f4a5ea68b6ff3174c4c7f + name: 'SNS: Memory utilization' + graph_items: + - color: 1A7C11 + calc_fnc: ALL + item: + host: 'Stormshield SNS by SNMP' + key: host.memory.utilization diff --git a/Supermicro_Aten_by_SNMP.yaml b/Supermicro_Aten_by_SNMP.yaml new file mode 100644 index 0000000..7bbd508 --- /dev/null +++ b/Supermicro_Aten_by_SNMP.yaml @@ -0,0 +1,459 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: e960332b3f6c46a1956486d4f3f99fce + name: 'Templates/Server hardware' + templates: + - uuid: cf0947cc05d3450b9a6d66b2eb180482 + template: 'Supermicro Aten by SNMP' + name: 'Supermicro Aten by SNMP' + description: | + Template Server Supermicro Aten + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + ATEN-IPMI-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Server hardware' + items: + - uuid: 7c60cd8613094b95bfd0ad45d04bc0e8 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 680c72ab6bb441779553b198081e3bf4 + expression: 'max(/Supermicro Aten by SNMP/icmpping,#3)=0' + name: 'Supermicro Aten: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 4a8bd0d13bab4666aaf4c53b7722ec74 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e2e4bfca2d0c4f8ebd64bef322d2a368 + expression: 'min(/Supermicro Aten by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Supermicro Aten by SNMP/icmppingloss,5m)<100' + name: 'Supermicro Aten: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Supermicro Aten: Unavailable by ICMP ping' + expression: 'max(/Supermicro Aten by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: feb1b9189b904b42b17ac4e1db49806e + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: b6fb489c6a624b2994c5e50ba75539b2 + expression: 'avg(/Supermicro Aten by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Supermicro Aten: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Supermicro Aten: High ICMP ping loss' + expression: 'min(/Supermicro Aten by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Supermicro Aten by SNMP/icmppingloss,5m)<100' + - name: 'Supermicro Aten: Unavailable by ICMP ping' + expression: 'max(/Supermicro Aten by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: cadc501d69624baa8ad292c2c8f6fd52 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: ccba865de57a41718b53ff1f82b2ca87 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 70f51b4370c64c2bab2c811359ef690b + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 8b0320157a0144a0b2f1d7df7cbbe08a + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 52169be1d3924c638476a290590066f3 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: afa2acff36034dccb96a1946e7039f39 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 07b7a49bffea4c03a022eed632754f47 + expression: 'last(/Supermicro Aten by SNMP/system.name,#1)<>last(/Supermicro Aten by SNMP/system.name,#2) and length(last(/Supermicro Aten by SNMP/system.name))>0' + name: 'Supermicro Aten: System name has changed' + event_name: 'Supermicro Aten: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: cc33c0e22893432280d642c75020a222 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a0c0d3ee729b4a159719271232024b45 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e205f1aa96a448a2955e988fa8528600 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: caeb9732846b4ae586ee103ac0c4a65b + expression: 'max(/Supermicro Aten by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Supermicro Aten: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Supermicro Aten: Unavailable by ICMP ping' + expression: 'max(/Supermicro Aten by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: e31995e21b3942e58b7ed451f57f0360 + name: 'FAN Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.21317.1.3.1.2,{#SENSOR_DESCR},1.3.6.1.4.1.21317.1.3.1.13]' + key: fan.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR_DESCR}' + value: 'FAN.*' + formulaid: A + - macro: '{#SNMPVALUE}' + value: '[1-9]+' + formulaid: B + description: 'Scanning ATEN-IPMI-MIB::sensorTable with filter: not connected FAN sensors (Value = 0)' + item_prototypes: + - uuid: 5309e5fab7a44b11a8f045db2868a544 + name: '{#SENSOR_DESCR}: Fan speed, %' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.21317.1.3.1.2.{#SNMPINDEX}]' + key: 'sensor.fan.speed.percentage[sensorReading.{#SNMPINDEX}]' + units: '%' + description: | + MIB: ATEN-IPMI-MIB + A textual string containing information about the interface. + This string should include the name of the manufacturer, the product name and the version of the interface hardware/software. + tags: + - tag: component + value: fan + - uuid: c03c556ed8e441099513aaacaf4a3752 + name: 'Temperature Discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.21317.1.3.1.2,{#SENSOR_DESCR},1.3.6.1.4.1.21317.1.3.1.13]' + key: tempDescr.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#SENSOR_DESCR}' + value: '.*Temp.*' + formulaid: A + - macro: '{#SNMPVALUE}' + value: '[1-9]+' + formulaid: B + description: 'Scanning ATEN-IPMI-MIB::sensorTable with filter: not connected temp sensors (Value = 0)' + item_prototypes: + - uuid: fe3acdb63d884c10bc5abe7edf001ceb + name: '{#SENSOR_DESCR}: Temperature' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.21317.1.3.1.2.{#SNMPINDEX}]' + key: 'sensor.temp.value[sensorReading.{#SNMPINDEX}]' + delay: 3m + value_type: FLOAT + units: °C + description: | + MIB: ATEN-IPMI-MIB + A textual string containing information about the interface. + This string should include the name of the manufacturer, the product name and the version of the interface hardware/software. + tags: + - tag: component + value: temperature + trigger_prototypes: + - uuid: 1a48aee477d54d34bdea47fc6027968c + expression: 'avg(/Supermicro Aten by SNMP/sensor.temp.value[sensorReading.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_DESCR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Supermicro Aten by SNMP/sensor.temp.value[sensorReading.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_DESCR}"}-3' + name: 'Supermicro Aten: {#SENSOR_DESCR}: Temperature is above critical threshold' + event_name: 'Supermicro Aten: {#SENSOR_DESCR}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SENSOR_DESCR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 2c2914d1c8c846d180ee308fa861540e + expression: 'avg(/Supermicro Aten by SNMP/sensor.temp.value[sensorReading.{#SNMPINDEX}],5m)>{$TEMP_WARN:"{#SENSOR_DESCR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'max(/Supermicro Aten by SNMP/sensor.temp.value[sensorReading.{#SNMPINDEX}],5m)<{$TEMP_WARN:"{#SENSOR_DESCR}"}-3' + name: 'Supermicro Aten: {#SENSOR_DESCR}: Temperature is above warning threshold' + event_name: 'Supermicro Aten: {#SENSOR_DESCR}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SENSOR_DESCR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available' + dependencies: + - name: 'Supermicro Aten: {#SENSOR_DESCR}: Temperature is above critical threshold' + expression: 'avg(/Supermicro Aten by SNMP/sensor.temp.value[sensorReading.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"{#SENSOR_DESCR}"}' + recovery_expression: 'max(/Supermicro Aten by SNMP/sensor.temp.value[sensorReading.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"{#SENSOR_DESCR}"}-3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 1439e7a34bbf4046836890f208f99a48 + expression: 'avg(/Supermicro Aten by SNMP/sensor.temp.value[sensorReading.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"{#SENSOR_DESCR}"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Supermicro Aten by SNMP/sensor.temp.value[sensorReading.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"{#SENSOR_DESCR}"}+3' + name: 'Supermicro Aten: {#SENSOR_DESCR}: Temperature is too low' + event_name: 'Supermicro Aten: {#SENSOR_DESCR}: Temperature is too low: <{$TEMP_CRIT_LOW:"{#SENSOR_DESCR}"}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + tags: + - tag: class + value: hardware + - tag: target + value: aten + - tag: target + value: supermicro + macros: + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$TEMP_CRIT}' + value: '60' + - macro: '{$TEMP_CRIT_LOW}' + value: '5' + - macro: '{$TEMP_WARN}' + value: '50' + valuemaps: + - uuid: e6794dc7602149a3b4fdbfeef45f6e8e + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 1fbe26c5dcb3457f98f84a240aa790cd + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 37aab043ea474548ab1e54e504720bed + expression: '(last(/Supermicro Aten by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Supermicro Aten by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Supermicro Aten by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Supermicro Aten by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Supermicro Aten: Host has been restarted' + event_name: 'Supermicro Aten: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Supermicro Aten: No SNMP data collection' + expression: 'max(/Supermicro Aten by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/Systemd_by_Zabbix_agent_2.yaml b/Systemd_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..d4bb2df --- /dev/null +++ b/Systemd_by_Zabbix_agent_2.yaml @@ -0,0 +1,386 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 90ac276995294a6aa88462c032d2ddaf + template: 'Systemd by Zabbix agent 2' + name: 'Systemd by Zabbix agent 2' + description: | + Get systemd units metrics from plugin for the zabbix-agent2. + 1. Setup and configure zabbix-agent2 compiled with the Systemd monitoring plugin. + 2. Set filters with macros if you want to override default filter parameters. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + discovery_rules: + - uuid: 0dfbc5994c1e44a6a1a2aa8ecc2f0347 + name: 'Service units discovery' + key: 'systemd.unit.discovery[service]' + delay: 30m + filter: + evaltype: AND + conditions: + - macro: '{#UNIT.ACTIVESTATE}' + value: '{$SYSTEMD.ACTIVESTATE.SERVICE.MATCHES}' + formulaid: A + - macro: '{#UNIT.ACTIVESTATE}' + value: '{$SYSTEMD.ACTIVESTATE.SERVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#UNIT.NAME}' + value: '{$SYSTEMD.NAME.SERVICE.MATCHES}' + formulaid: C + - macro: '{#UNIT.NAME}' + value: '{$SYSTEMD.NAME.SERVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#UNIT.UNITFILESTATE}' + value: '{$SYSTEMD.UNITFILESTATE.SERVICE.MATCHES}' + formulaid: E + - macro: '{#UNIT.UNITFILESTATE}' + value: '{$SYSTEMD.UNITFILESTATE.SERVICE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + enabled_lifetime_type: DISABLE_NEVER + description: 'Discover systemd service units and their details.' + item_prototypes: + - uuid: 78587e9b16b5431bbccd2855998171fa + name: '{#UNIT.NAME}: Active state' + type: DEPENDENT + key: 'systemd.service.active_state["{#UNIT.NAME}"]' + delay: '0' + description: 'State value that reflects whether the unit is currently active or not. The following states are currently defined: "active", "reloading", "inactive", "failed", "activating", and "deactivating".' + valuemap: + name: 'Unit Active State' + preprocessing: + - type: JSONPATH + parameters: + - $.ActiveState.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'systemd.unit.get["{#UNIT.NAME}"]' + tags: + - tag: component + value: service + trigger_prototypes: + - uuid: 5237bd423307449b8a58f692082d2a0a + expression: 'last(/Systemd by Zabbix agent 2/systemd.service.active_state["{#UNIT.NAME}"])<>1' + name: 'Systemd: {#UNIT.NAME}: Service is not running' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: bed610e6ce33494b817eb787e34e18c2 + name: '{#UNIT.NAME}: Load state' + type: DEPENDENT + key: 'systemd.service.load_state["{#UNIT.NAME}"]' + delay: '0' + description: 'State value that reflects whether the configuration file of this unit has been loaded. The following states are currently defined: "loaded", "error", and "masked".' + valuemap: + name: 'Unit Load State' + preprocessing: + - type: JSONPATH + parameters: + - $.LoadState.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'systemd.unit.get["{#UNIT.NAME}"]' + tags: + - tag: component + value: service + - uuid: f1174eb5abf74e028a75ab9bb8eec649 + name: '{#UNIT.NAME}: Unit file state' + type: DEPENDENT + key: 'systemd.service.unitfile_state["{#UNIT.NAME}"]' + delay: '0' + description: 'Encodes the install state of the unit file of FragmentPath. It currently knows the following states: "enabled", "enabled-runtime", "linked", "linked-runtime", "masked", "masked-runtime", "static", "disabled", and "invalid".' + valuemap: + name: 'Unit File State' + preprocessing: + - type: JSONPATH + parameters: + - $.UnitFileState.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 30m + master_item: + key: 'systemd.unit.get["{#UNIT.NAME}"]' + tags: + - tag: component + value: service + - uuid: a35992b54d944a389c1bb44748a37fdb + name: '{#UNIT.NAME}: Active time' + type: DEPENDENT + key: 'systemd.service.uptime["{#UNIT.NAME}"]' + delay: '0' + value_type: FLOAT + units: uptime + description: 'Number of seconds since unit entered the active state.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + data = JSON.parse(value); + if (data.ActiveEnterTimestamp > data.ActiveExitTimestamp) { + return Math.floor(Date.now() / 1000) - Number(data.ActiveEnterTimestamp) / 1000000; + } + return null; + master_item: + key: 'systemd.unit.get["{#UNIT.NAME}"]' + tags: + - tag: component + value: service + trigger_prototypes: + - uuid: e2292c5ead924500a06d38b6356930c7 + expression: 'last(/Systemd by Zabbix agent 2/systemd.service.uptime["{#UNIT.NAME}"])<10m' + name: 'Systemd: {#UNIT.NAME} has been restarted' + event_name: 'Systemd: {#UNIT.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bdb94d1182114985a8734de7d5d92380 + name: '{#UNIT.NAME}: Get unit info' + key: 'systemd.unit.get["{#UNIT.NAME}"]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Returns all properties of a systemd service unit. + Unit description: {#UNIT.DESCRIPTION}. + tags: + - tag: component + value: raw + - tag: component + value: unit + - uuid: 5c337762ae7b43a98fcb9dc3102a8467 + name: 'Socket units discovery' + key: 'systemd.unit.discovery[socket]' + delay: 30m + filter: + evaltype: AND + conditions: + - macro: '{#UNIT.ACTIVESTATE}' + value: '{$SYSTEMD.ACTIVESTATE.SOCKET.MATCHES}' + formulaid: A + - macro: '{#UNIT.ACTIVESTATE}' + value: '{$SYSTEMD.ACTIVESTATE.SOCKET.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#UNIT.NAME}' + value: '{$SYSTEMD.NAME.SOCKET.MATCHES}' + formulaid: C + - macro: '{#UNIT.NAME}' + value: '{$SYSTEMD.NAME.SOCKET.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#UNIT.UNITFILESTATE}' + value: '{$SYSTEMD.UNITFILESTATE.SOCKET.MATCHES}' + formulaid: E + - macro: '{#UNIT.UNITFILESTATE}' + value: '{$SYSTEMD.UNITFILESTATE.SOCKET.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + enabled_lifetime_type: DISABLE_NEVER + description: 'Discover systemd socket units and their details.' + item_prototypes: + - uuid: 462ee6b9e70146c8ab6a917c182f3ce7 + name: '{#UNIT.NAME}: Connections accepted per sec' + type: DEPENDENT + key: 'systemd.socket.conn_accepted.rate["{#UNIT.NAME}"]' + delay: '0' + description: 'The number of accepted socket connections (NAccepted) per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.NAccepted + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'systemd.unit.get["{#UNIT.NAME}",Socket]' + tags: + - tag: component + value: socket + - uuid: 258a899aba9546db956b8e235738bd89 + name: '{#UNIT.NAME}: Connections connected' + type: DEPENDENT + key: 'systemd.socket.conn_count["{#UNIT.NAME}"]' + delay: '0' + description: 'The current number of socket connections (NConnections).' + preprocessing: + - type: JSONPATH + parameters: + - $.NConnections + master_item: + key: 'systemd.unit.get["{#UNIT.NAME}",Socket]' + tags: + - tag: component + value: socket + - uuid: 83ffad5a484d48e388ac658511d4b803 + name: '{#UNIT.NAME}: Get unit info' + key: 'systemd.unit.get["{#UNIT.NAME}",Socket]' + history: '0' + value_type: TEXT + trends: '0' + description: | + Returns all properties of a systemd socket unit. + Unit description: {#UNIT.DESCRIPTION}. + tags: + - tag: component + value: raw + - tag: component + value: socket + tags: + - tag: class + value: software + - tag: target + value: systemd + macros: + - macro: '{$SYSTEMD.ACTIVESTATE.SERVICE.MATCHES}' + value: .+ + description: 'Filter of systemd service units by active state.' + - macro: '{$SYSTEMD.ACTIVESTATE.SERVICE.NOT_MATCHES}' + value: ^inactive$ + description: 'Filter of systemd service units by active state.' + - macro: '{$SYSTEMD.ACTIVESTATE.SOCKET.MATCHES}' + value: .+ + description: 'Filter of systemd socket units by active state.' + - macro: '{$SYSTEMD.ACTIVESTATE.SOCKET.NOT_MATCHES}' + value: ^inactive$ + description: 'Filter of systemd socket units by active state.' + - macro: '{$SYSTEMD.NAME.SERVICE.MATCHES}' + value: .+ + description: 'Filter of systemd service units by name.' + - macro: '{$SYSTEMD.NAME.SERVICE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter of systemd service units by name.' + - macro: '{$SYSTEMD.NAME.SOCKET.MATCHES}' + value: .+ + description: 'Filter of systemd socket units by name.' + - macro: '{$SYSTEMD.NAME.SOCKET.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter of systemd socket units by name.' + - macro: '{$SYSTEMD.UNITFILESTATE.SERVICE.MATCHES}' + value: ^enabled$ + description: 'Filter of systemd service units by unit file state.' + - macro: '{$SYSTEMD.UNITFILESTATE.SERVICE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter of systemd service units by unit file state.' + - macro: '{$SYSTEMD.UNITFILESTATE.SOCKET.MATCHES}' + value: ^enabled$ + description: 'Filter of systemd socket units by unit file state.' + - macro: '{$SYSTEMD.UNITFILESTATE.SOCKET.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter of systemd socket units by unit file state.' + dashboards: + - uuid: 35c40e164dc64c3997206b042a49f5c4 + name: 'Systemd: Overview' + pages: + - name: Services + widgets: + - type: graphprototype + width: '72' + height: '20' + fields: + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'Systemd by Zabbix agent 2' + key: 'systemd.service.active_state["{#UNIT.NAME}"]' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + - type: INTEGER + name: source_type + value: '3' + - name: Sockets + widgets: + - type: graphprototype + width: '72' + height: '20' + fields: + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'Systemd by Zabbix agent 2' + key: 'systemd.socket.conn_count["{#UNIT.NAME}"]' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: rows + value: '5' + - type: INTEGER + name: source_type + value: '3' + valuemaps: + - uuid: fe20979701834a80a823c514d11c19e7 + name: 'Unit Active State' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: active + - value: '2' + newvalue: reloading + - value: '3' + newvalue: inactive + - value: '4' + newvalue: failed + - value: '5' + newvalue: activating + - value: '6' + newvalue: deactivating + - uuid: e0a5e55e5a074a26935386c5e29a0e36 + name: 'Unit File State' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: enabled + - value: '2' + newvalue: enabled-runtime + - value: '3' + newvalue: linked + - value: '4' + newvalue: linked-runtime + - value: '5' + newvalue: masked + - value: '6' + newvalue: masked-runtime + - value: '7' + newvalue: static + - value: '8' + newvalue: disabled + - value: '9' + newvalue: invalid + - uuid: 0309ef57e92a4ea2ae4404a685f0e7b8 + name: 'Unit Load State' + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: loaded + - value: '2' + newvalue: error + - value: '3' + newvalue: masked diff --git a/TP-LINK_by_SNMP.yaml b/TP-LINK_by_SNMP.yaml new file mode 100644 index 0000000..95128fa --- /dev/null +++ b/TP-LINK_by_SNMP.yaml @@ -0,0 +1,1741 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 2b9039885edf45b8bdd39f16dd069133 + template: 'TP-LINK by SNMP' + name: 'TP-LINK by SNMP' + description: | + Template Net TP-LINK + + MIBs used: + TPLINK-SYSINFO-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + TPLINK-SYSMONITOR-MIB + IF-MIB + + Known Issues: + + Description: Default sysLocation, sysName and sysContact is not filled with proper data. Real hostname and location can be found only in private branch (TPLINK-SYSINFO-MIB). Please check whether this problem exists in the latest firmware: https://www.tp-link.com/en/support/download/t2600g-28ts/#Firmware + Version: 2.0.0 Build 20170628 Rel.55184 (Beta) + Device: T2600G-28TS 2.0 + + Description: The Serial number of the product (tpSysInfoSerialNum) is missing in HW versions prior to V2_170323 + Version: Prior to version V2_170323 + Device: T2600G-28TS 2.0 + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: e9f5ba061b7e41e7bac26aeec105f4da + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 5b86c558f99d4ff5a8abca830df6e86e + expression: 'max(/TP-LINK by SNMP/icmpping,#3)=0' + name: 'TP-LINK: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 71567de591174a64aafd48aebae0b4f4 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 421d12d2c2a0405ba31c869c4d481b70 + expression: 'min(/TP-LINK by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/TP-LINK by SNMP/icmppingloss,5m)<100' + name: 'TP-LINK: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'TP-LINK: Unavailable by ICMP ping' + expression: 'max(/TP-LINK by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: dde3ad74c18847f4a91bee29b20a6364 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4d1df00b9476483fa77e6064708abf58 + expression: 'avg(/TP-LINK by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'TP-LINK: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'TP-LINK: High ICMP ping loss' + expression: 'min(/TP-LINK by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/TP-LINK by SNMP/icmppingloss,5m)<100' + - name: 'TP-LINK: Unavailable by ICMP ping' + expression: 'max(/TP-LINK by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0cf11e0dfd3b47f1a0a5d8f011e6517b + name: 'TP-LINK: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.10,1.3.6.1.2.1.2.2.1.16,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.2.2.1.5]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 707bcd801726449d9a7d3de0fa650c0a + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 2b293fd8a3e346f9be437ae539dca3c3 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: ae66a99ae15d4fe98e513745978c2ce4 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11863.6.4.1.1.1.1.1,1.3.6.1.4.1.11863.6.4.1.1.1.1.3]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering TPLINK-SYSMONITOR-MIB::tpSysMonitorCpuTable, displays the CPU utilization of all UNITs.' + tags: + - tag: component + value: raw + - uuid: 4727c07daa0c413aa4bbc293198f9cde + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 1d20905fda0442b8b7b0eefcf473afd9 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11863.6.1.1.6.0]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: TPLINK-SYSINFO-MIB + The software version of the product. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: ee797ebfc568468d8a3e9a8b388afb6d + expression: 'last(/TP-LINK by SNMP/system.hw.firmware,#1)<>last(/TP-LINK by SNMP/system.hw.firmware,#2) and length(last(/TP-LINK by SNMP/system.hw.firmware))>0' + name: 'TP-LINK: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a571370a974c43deb9b5bb531d4dc4ce + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11863.6.1.1.5.0]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: TPLINK-SYSINFO-MIB + The hardware version of the product. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: d2cc080e7e7f49a19bb27737c749ba36 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11863.6.1.1.8.0]' + key: system.hw.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: TPLINK-SYSINFO-MIB + The Serial number of the product. + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 57a906ac8f994ebaa2543a5eb4949db7 + expression: 'last(/TP-LINK by SNMP/system.hw.serialnumber,#1)<>last(/TP-LINK by SNMP/system.hw.serialnumber,#2) and length(last(/TP-LINK by SNMP/system.hw.serialnumber))>0' + name: 'TP-LINK: Device has been replaced' + event_name: 'TP-LINK: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 964e73aa4e534b50bd1d93e137ca41f1 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 20690cbfeb924ec79f67200da3e0577c + name: 'Hardware version(revision)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.11863.6.1.1.5.0]' + key: system.hw.version + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: TPLINK-SYSINFO-MIB + The hardware version of the product. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 3cfe39b7d7f9401190de46aa86a04686 + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 72bc86c14222404cad76bc04836d11eb + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 367bce2d38fe4ecbbe23c34bc7ec6226 + expression: 'last(/TP-LINK by SNMP/system.name,#1)<>last(/TP-LINK by SNMP/system.name,#2) and length(last(/TP-LINK by SNMP/system.name))>0' + name: 'TP-LINK: System name has changed' + event_name: 'TP-LINK: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: cb63d68e6d0143049534225d1d69da12 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 78034b7a1d964b199f6a12c43821c27e + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4ac2fe58877e4a8ab1dedb38fe41ef3e + name: 'SNMP walk memory' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.11863.6.4.1.2.1.1.1,1.3.6.1.4.1.11863.6.4.1.2.1.1.2]' + key: vm.memory.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering TPLINK-SYSMONITOR-MIB::tpSysMonitorMemoryTable, displays the memory utilization of all UNITs.' + tags: + - tag: component + value: raw + - uuid: b6cd5b22d8014aa18fdb7735d77cc84c + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7b533ce3df8c4405a04f90dd1e850a32 + expression: 'max(/TP-LINK by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'TP-LINK: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'TP-LINK: Unavailable by ICMP ping' + expression: 'max(/TP-LINK by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 5325de505855448a8c785066374ba201 + name: 'CPU Discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: 'Discovering TPLINK-SYSMONITOR-MIB::tpSysMonitorCpuTable, displays the CPU utilization of all UNITs.' + item_prototypes: + - uuid: 84929a905e144746b047a20bbfb7ae40 + name: '#{#SNMPVALUE}: CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[tpSysMonitorCpu1Minute.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: TPLINK-SYSMONITOR-MIB + Displays the CPU utilization in 1 minute. + Reference: http://www.tp-link.com/faq-1330.html + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11863.6.4.1.1.1.1.3.{#SNMPINDEX}' + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 667a09c4f1c04a1a84c7c79adb9cbc70 + expression: 'min(/TP-LINK by SNMP/system.cpu.util[tpSysMonitorCpu1Minute.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'TP-LINK: #{#SNMPVALUE}: High CPU utilization' + event_name: 'TP-LINK: #{#SNMPVALUE}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 6ec1580dfdcb46ec933cf2e4ef3122da + name: '#{#SNMPVALUE}: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'TP-LINK by SNMP' + key: 'system.cpu.util[tpSysMonitorCpu1Minute.{#SNMPINDEX}]' + master_item: + key: system.cpu.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.11863.6.4.1.1.1.1.1 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 7a3144453fc644b3bd42dec4ba843bef + name: 'Memory Discovery' + type: DEPENDENT + key: memory.discovery + delay: '0' + description: 'Discovering TPLINK-SYSMONITOR-MIB::tpSysMonitorMemoryTable, displays the memory utilization of all UNITs.' + item_prototypes: + - uuid: 5800682fc8f8439eb404707f995ec9a6 + name: '#{#SNMPVALUE}: Memory utilization' + type: DEPENDENT + key: 'vm.memory.util[tpSysMonitorMemoryUtilization.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: TPLINK-SYSMONITOR-MIB + Displays the memory utilization. + Reference: http://www.tp-link.com/faq-1330.html + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.11863.6.4.1.2.1.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: vm.memory.walk + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 3bd3af786eb34b5e9a05f3113fce8007 + expression: 'min(/TP-LINK by SNMP/vm.memory.util[tpSysMonitorMemoryUtilization.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'TP-LINK: #{#SNMPVALUE}: High memory utilization' + event_name: 'TP-LINK: #{#SNMPVALUE}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 7c0b7c99942e41348c2dc3350f2323cc + name: '#{#SNMPVALUE}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'TP-LINK by SNMP' + key: 'vm.memory.util[tpSysMonitorMemoryUtilization.{#SNMPINDEX}]' + master_item: + key: vm.memory.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.4.1.11863.6.4.1.2.1.1.1 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: eec7aaed43e14fbca8c07cdc68d8b683 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 27f1c9ccfc744b5eb215d032fbbe2ff8 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 738de59c4df9435d8076751a33098685 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a9393bc9e68c4c27b01320f776c037cb + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface,including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and another times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 86798974d9f143bf81e5fa40ac792835 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: aa20e57e43bd4252b232e9f18ab73391 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 694efd29271f4109a3008cd3404c2d54 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.16.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: b06b4597959c44d6b998b506257e0f7f + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, + this object should contain the nominal bandwidth. + If the bandwidth of the interface is greater than the maximum value reportable by this object then + this object should report its maximum value (4,294,967,295) and ifHighSpeed must be used to report the interface's speed. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.5.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 5m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 25c78dd4d9ff466980d06912c8ca79db + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ce16733da6d24beb9cea97d61368e21b + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'TP-LINK: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 7d5f2f31ef3f49809e1011fed5347942 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: ebcdfd6d8c974c06810375d98e7d76c7 + expression: | + change(/TP-LINK by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])<0 and last(/TP-LINK by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 + and ( + last(/TP-LINK by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/TP-LINK by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/TP-LINK by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/TP-LINK by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/TP-LINK by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/TP-LINK by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/TP-LINK by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 and last(/TP-LINK by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}],#2)>0) or + (last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'TP-LINK: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'TP-LINK: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: ae472f99d7ab480c947293f09c4b9dbb + expression: | + (avg(/TP-LINK by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/TP-LINK by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) or + avg(/TP-LINK by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/TP-LINK by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])) and + last(/TP-LINK by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/TP-LINK by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/TP-LINK by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) and + avg(/TP-LINK by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/TP-LINK by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) + name: 'TP-LINK: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'TP-LINK: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'TP-LINK: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: ec28cbfaaf6245a194fe001555d05e5c + expression: | + min(/TP-LINK by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/TP-LINK by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/TP-LINK by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/TP-LINK by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'TP-LINK: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'TP-LINK: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'TP-LINK: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/TP-LINK by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: bd2e806179a24ca6bd4b2a8d13810061 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'TP-LINK by SNMP' + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'TP-LINK by SNMP' + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'TP-LINK by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'TP-LINK by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'TP-LINK by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'TP-LINK by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: tp-link + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '95' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + dashboards: + - uuid: badebb168da14b07856c04774bf07102 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TP-LINK by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + valuemaps: + - uuid: ca6bcc5f345b46ffaa445d38a90ddcae + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 7eaf5db3b1f047bd9a8f5acdfdaf59ad + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 0d9190336b1d47569f423067889d7a4d + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 090a2707e81e42829504663cf37b8223 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 63b45803131d4391abfa313a222339e5 + expression: '(last(/TP-LINK by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/TP-LINK by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/TP-LINK by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/TP-LINK by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'TP-LINK: Host has been restarted' + event_name: 'TP-LINK: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'TP-LINK: No SNMP data collection' + expression: 'max(/TP-LINK by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice diff --git a/TiDB_PD_by_HTTP.yaml b/TiDB_PD_by_HTTP.yaml new file mode 100644 index 0000000..6bd6ed1 --- /dev/null +++ b/TiDB_PD_by_HTTP.yaml @@ -0,0 +1,1079 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 43596328d4d74a5592906a9e08e3fd96 + template: 'TiDB PD by HTTP' + name: 'TiDB PD by HTTP' + description: | + The template to monitor PD server of TiDB cluster by Zabbix that works without any external scripts. + Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. + Don't forget to change the macros {$PD.URL}, {$PD.PORT}. + + Template `TiDB PD by HTTP` — collects metrics by HTTP agent from PD /metrics endpoint and from monitoring API. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + items: + - uuid: 5ddd6354810347e4b4995a65d8429daf + name: 'Get cluster metrics' + type: DEPENDENT + key: pd.cluster_status.get_metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get cluster metrics.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "pd_cluster_status")]' + error_handler: DISCARD_VALUE + master_item: + key: pd.get_metrics + tags: + - tag: component + value: raw + - uuid: 3a1fd879a08a445cbf438f3d68078111 + name: 'Get instance metrics' + type: HTTP_AGENT + key: pd.get_metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get TiDB PD instance metrics.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: PROMETHEUS_TO_JSON + parameters: + - '' + url: '{$PD.URL}:{$PD.PORT}/metrics' + tags: + - tag: component + value: raw + - uuid: 7eb740eed4eb43a0a449e1c1436e582b + name: 'Get instance status' + type: HTTP_AGENT + key: pd.get_status + history: '0' + value_type: TEXT + trends: '0' + description: 'Get TiDB PD instance status info.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"status": "0"}' + url: '{$PD.URL}:{$PD.PORT}/pd/api/v1/status' + tags: + - tag: component + value: health + - tag: component + value: raw + - uuid: 101266930d0747748bf3cbd9259e2818 + name: 'gRPC Commands total, rate' + type: DEPENDENT + key: pd.grpc_command.rate + delay: '0' + value_type: FLOAT + description: 'The rate at which gRPC commands are completed.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "grpc_server_handling_seconds_count")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: pd.get_metrics + tags: + - tag: component + value: grpc + - uuid: d6b8c44bcea14a08b7f5ed85bd596542 + name: 'Get gRPC command metrics' + type: DEPENDENT + key: pd.grpc_commands.get_metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get gRPC command metrics.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "grpc_server_handling_seconds_count")]' + error_handler: DISCARD_VALUE + master_item: + key: pd.get_metrics + tags: + - tag: component + value: raw + - uuid: 7d7581a14a4e4de197a000337d7b8c41 + name: 'Get region metrics' + type: DEPENDENT + key: pd.regions.get_metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get region metrics.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "pd_scheduler_region_heartbeat")]' + error_handler: DISCARD_VALUE + master_item: + key: pd.get_metrics + tags: + - tag: component + value: raw + - uuid: 6e6cc3d28b884372a2380b4732af438f + name: 'Get region label metrics' + type: DEPENDENT + key: pd.region_labels.get_metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get region label metrics.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "pd_regions_label_level")]' + error_handler: DISCARD_VALUE + master_item: + key: pd.get_metrics + tags: + - tag: component + value: raw + - uuid: 6d97b65149ef4880ae547fb3e82a68c0 + name: 'Get region status metrics' + type: DEPENDENT + key: pd.region_status.get_metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get region status metrics.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "pd_regions_status")]' + error_handler: DISCARD_VALUE + master_item: + key: pd.get_metrics + tags: + - tag: component + value: raw + - uuid: 78c65105fd4a4f24b67176331ee685b5 + name: 'Get scheduler metrics' + type: DEPENDENT + key: pd.scheduler.get_metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get scheduler metrics.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "pd_scheduler_status" && @.labels.type == "allow")]' + error_handler: DISCARD_VALUE + master_item: + key: pd.get_metrics + tags: + - tag: component + value: raw + - uuid: c18f702f68bf4fed94a598daffdada8a + name: Status + type: DEPENDENT + key: pd.status + delay: '0' + value_type: CHAR + trends: '0' + description: 'Status of PD instance.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pd.get_status + tags: + - tag: component + value: health + triggers: + - uuid: ab1d0d23dad844099e42debb71512887 + expression: 'last(/TiDB PD by HTTP/pd.status)=0' + name: 'TiDB PD: Instance is not responding' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 0b71c8a5104b46ebbeabe0d708b6676e + name: Uptime + type: DEPENDENT + key: pd.uptime + delay: '0' + value_type: FLOAT + units: uptime + description: 'The runtime of each PD instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.start_timestamp + - type: JAVASCRIPT + parameters: + - 'return (Math.floor(Date.now() / 1000) - Number(value));' + master_item: + key: pd.get_status + tags: + - tag: component + value: application + triggers: + - uuid: 9f47a19f6f424df598e74c5a653ebf27 + expression: 'last(/TiDB PD by HTTP/pd.uptime)<10m' + name: 'TiDB PD: Instance has been restarted' + event_name: 'TiDB PD: Instance has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c7e8e9bf01d04e5db25bd8eaafff3b80 + name: Version + type: DEPENDENT + key: pd.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the PD instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: pd.get_status + tags: + - tag: component + value: application + triggers: + - uuid: 6fb6045405af4c89b09750f57ada472a + expression: 'last(/TiDB PD by HTTP/pd.version,#1)<>last(/TiDB PD by HTTP/pd.version,#2) and length(last(/TiDB PD by HTTP/pd.version))>0' + name: 'TiDB PD: Version has changed' + event_name: 'TiDB PD: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'PD version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: cd1f27cf5f1d4f6f84032386ec7f8abb + name: 'Cluster metrics discovery' + type: DEPENDENT + key: pd.cluster.discovery + delay: '0' + description: 'Discovery cluster specific metrics.' + item_prototypes: + - uuid: fe49e1de54214fb0ac882feb42fdee3b + name: 'Number of regions' + type: DEPENDENT + key: 'pd.cluster_status.leader_count[{#SINGLETON}]' + delay: '0' + description: 'The total count of cluster Regions.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "leader_count")].value.first()' + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: regions + - uuid: 0950ba514e05447c8cfe726ec2d76944 + name: 'Current peer count' + type: DEPENDENT + key: 'pd.cluster_status.region_count[{#SINGLETON}]' + delay: '0' + description: 'The current count of all cluster peers.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "region_count")].value.first()' + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: peers + - uuid: d39f58372e3f464c87b2ec42acdf2061 + name: 'Storage capacity' + type: DEPENDENT + key: 'pd.cluster_status.storage_capacity[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The total storage capacity for this TiDB cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "storage_capacity")].value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: storage + - uuid: c72e6a2f89d041c4bf764021b9bc182c + name: 'Storage size' + type: DEPENDENT + key: 'pd.cluster_status.storage_size[{#SINGLETON}]' + delay: '0' + value_type: FLOAT + units: B + description: 'The storage size that is currently used by the TiDB cluster.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "storage_size")].value.first()' + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: storage + - uuid: 517cea991add45319d30047ac96fd9e4 + name: 'Disconnect stores' + type: DEPENDENT + key: 'pd.cluster_status.store_disconnected[{#SINGLETON}]' + delay: '0' + description: 'The count of disconnected stores.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "store_disconnected_count")].value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: stores + trigger_prototypes: + - uuid: 077d39f8ea194081a9d0c5dfdec4d1b5 + expression: 'last(/TiDB PD by HTTP/pd.cluster_status.store_disconnected[{#SINGLETON}])>0' + name: 'TiDB PD: There are disconnected TiKV nodes' + priority: WARNING + description: 'PD does not receive a TiKV heartbeat within 20 seconds. Normally a TiKV heartbeat comes in every 10 seconds.' + tags: + - tag: scope + value: availability + - uuid: 7125a7c858264f339e879c1389c6c027 + name: 'Down stores' + type: DEPENDENT + key: 'pd.cluster_status.store_down[{#SINGLETON}]' + delay: '0' + description: 'The count of down stores.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "store_down_count")].value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: stores + trigger_prototypes: + - uuid: 526b935d3fa04825b7544eb6efd50ab5 + expression: 'last(/TiDB PD by HTTP/pd.cluster_status.store_down[{#SINGLETON}])>0' + name: 'TiDB PD: There are offline TiKV nodes' + priority: AVERAGE + description: 'PD has not received a TiKV heartbeat for a long time.' + tags: + - tag: scope + value: availability + - uuid: c3bd9d1e0f6c427ab5232e57769030d1 + name: 'Lowspace stores' + type: DEPENDENT + key: 'pd.cluster_status.store_low_space[{#SINGLETON}]' + delay: '0' + description: 'The count of low space stores.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "store_low_space_count")].value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: stores + trigger_prototypes: + - uuid: 87ef0f211afd4d58adec05007ef1d263 + expression: 'last(/TiDB PD by HTTP/pd.cluster_status.store_low_space[{#SINGLETON}])>0' + name: 'TiDB PD: There are low space TiKV nodes' + priority: AVERAGE + description: 'Indicates that there is no sufficient space on the TiKV node.' + tags: + - tag: scope + value: capacity + - uuid: 3c24fb49463b45f199dbc3955e87d01b + name: 'Offline stores' + type: DEPENDENT + key: 'pd.cluster_status.store_offline[{#SINGLETON}]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "store_offline_count")].value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: stores + - uuid: 476a1b6e3c9b4b41ae1637f0e12801c9 + name: 'Tombstone stores' + type: DEPENDENT + key: 'pd.cluster_status.store_tombstone[{#SINGLETON}]' + delay: '0' + description: 'The count of tombstone stores.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "store_tombstone_count")].value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: stores + - uuid: 89db2b996fbe41bdb6b82ccf75139090 + name: 'Unhealth stores' + type: DEPENDENT + key: 'pd.cluster_status.store_unhealth[{#SINGLETON}]' + delay: '0' + description: 'The count of unhealthy stores.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "store_unhealth_count")].value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: stores + - uuid: ff80108e2a5e45779a428a6fd31ea089 + name: 'Normal stores' + type: DEPENDENT + key: 'pd.cluster_status.store_up[{#SINGLETON}]' + delay: '0' + description: 'The count of healthy storage instances.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "store_up_count")].value.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: pd.cluster_status.get_metrics + tags: + - tag: component + value: cluster + - tag: component + value: stores + trigger_prototypes: + - uuid: 843d566b33bc401390c2a633d08bb033 + expression: 'min(/TiDB PD by HTTP/pd.cluster_status.storage_size[{#SINGLETON}],5m)/last(/TiDB PD by HTTP/pd.cluster_status.storage_capacity[{#SINGLETON}])*100>{$PD.STORAGE_USAGE.MAX.WARN}' + name: 'TiDB PD: Current storage usage is too high' + event_name: 'TiDB PD: Current storage usage is too high (over {$PD.STORAGE_USAGE.MAX.WARN}% for 5m)' + priority: WARNING + description: 'Over {$PD.STORAGE_USAGE.MAX.WARN}% of the cluster space is occupied.' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 270de7aa73cf454cb147a3f5b39ebb35 + name: 'TiDB cluster: Storage Usage[{#SINGLETON}]' + graph_items: + - color: 199C0D + item: + host: 'TiDB PD by HTTP' + key: 'pd.cluster_status.storage_size[{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'TiDB PD by HTTP' + key: 'pd.cluster_status.storage_capacity[{#SINGLETON}]' + - uuid: 929dfe6f2ad74c9983ef6b11884b3abc + name: 'TiDB cluster: Stores number by states[{#SINGLETON}]' + graph_items: + - color: 199C0D + item: + host: 'TiDB PD by HTTP' + key: 'pd.cluster_status.store_up[{#SINGLETON}]' + - sortorder: '1' + color: F63100 + item: + host: 'TiDB PD by HTTP' + key: 'pd.cluster_status.store_down[{#SINGLETON}]' + - sortorder: '2' + color: 00611C + item: + host: 'TiDB PD by HTTP' + key: 'pd.cluster_status.store_unhealth[{#SINGLETON}]' + - sortorder: '3' + color: F7941D + item: + host: 'TiDB PD by HTTP' + key: 'pd.cluster_status.store_low_space[{#SINGLETON}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'TiDB PD by HTTP' + key: 'pd.cluster_status.store_tombstone[{#SINGLETON}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'TiDB PD by HTTP' + key: 'pd.cluster_status.store_disconnected[{#SINGLETON}]' + - sortorder: '6' + color: C7A72D + item: + host: 'TiDB PD by HTTP' + key: 'pd.cluster_status.store_offline[{#SINGLETON}]' + master_item: + key: pd.cluster_status.get_metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value != "[]" ? [{ ''{#SINGLETON}'': '''' }] : []);' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 113c6ba7d7f74051b042241441c43db0 + name: 'gRPC commands discovery' + type: DEPENDENT + key: pd.grpc_command.discovery + delay: '0' + description: 'Discovery grpc commands specific metrics.' + item_prototypes: + - uuid: 7b96abc0e68a405ea5693f4f445936fe + name: 'gRPC Commands: {#GRPC_METHOD}, rate' + type: DEPENDENT + key: 'pd.grpc_command.rate[{#GRPC_METHOD}]' + delay: '0' + value_type: FLOAT + description: 'The rate per command type at which gRPC commands are completed.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.grpc_method == "{#GRPC_METHOD}")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: pd.grpc_commands.get_metrics + tags: + - tag: component + value: grpc + - tag: grpc_method + value: '{#GRPC_METHOD}' + master_item: + key: pd.grpc_commands.get_metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var grpc_method = item.labels.grpc_method; + if (!(lookup[grpc_method])) { + lookup[grpc_method] = 1; + result.push({ "{#GRPC_METHOD}": grpc_method }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 2cb28d7c862d442a84b5942eb4b54e2f + name: 'Region discovery' + type: DEPENDENT + key: pd.region.discovery + delay: '0' + description: 'Discovery region specific metrics.' + item_prototypes: + - uuid: 024bf1d31bbd40a49d683d962887c6e0 + name: 'Region heartbeat: error, rate' + type: DEPENDENT + key: 'pd.region_heartbeat.error.rate[{#STORE_ADDRESS}]' + delay: '0' + value_type: FLOAT + description: 'The count of heartbeats with the error status per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "report" && @.labels.status == "err")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pd.region_heartbeat.get_metrics[{#STORE_ADDRESS}]' + tags: + - tag: address + value: '{#STORE_ADDRESS}' + - tag: component + value: regions + - uuid: 963c4d34d2664e6aba984f746b80b5c4 + name: 'Get metrics: {#STORE_ADDRESS}' + type: DEPENDENT + key: 'pd.region_heartbeat.get_metrics[{#STORE_ADDRESS}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get region metrics for {#STORE_ADDRESS}.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.address == "{#STORE_ADDRESS}")]' + error_handler: DISCARD_VALUE + master_item: + key: pd.regions.get_metrics + tags: + - tag: address + value: '{#STORE_ADDRESS}' + - tag: component + value: raw + - uuid: 1d1d686f5c544a89a691a9b75e5c3b11 + name: 'Region heartbeat: active, rate' + type: DEPENDENT + key: 'pd.region_heartbeat.ok.rate[{#STORE_ADDRESS}]' + delay: '0' + value_type: FLOAT + description: 'The count of heartbeats with the ok status per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "report" && @.labels.status == "ok")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pd.region_heartbeat.get_metrics[{#STORE_ADDRESS}]' + tags: + - tag: address + value: '{#STORE_ADDRESS}' + - tag: component + value: regions + - uuid: c44f934ce8a144afa95252041535ef44 + name: 'Region schedule push: total, rate' + type: DEPENDENT + key: 'pd.region_heartbeat.push.err.rate[{#STORE_ADDRESS}]' + delay: '0' + value_type: FLOAT + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "push")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pd.region_heartbeat.get_metrics[{#STORE_ADDRESS}]' + tags: + - tag: address + value: '{#STORE_ADDRESS}' + - tag: component + value: regions + - uuid: ea76344669de4251a0e7bef35d70494a + name: 'Region heartbeat: total, rate' + type: DEPENDENT + key: 'pd.region_heartbeat.rate[{#STORE_ADDRESS}]' + delay: '0' + value_type: FLOAT + description: 'The count of heartbeats reported to PD per instance per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "report")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pd.region_heartbeat.get_metrics[{#STORE_ADDRESS}]' + tags: + - tag: address + value: '{#STORE_ADDRESS}' + - tag: component + value: regions + master_item: + key: pd.regions.get_metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var address = item.labels.address; + if (!(lookup[address])) { + lookup[address] = 1; + result.push({ "{#STORE_ADDRESS}": address }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 771ba9e078a14ca489eb2acf906080e9 + name: 'Region labels discovery' + type: DEPENDENT + key: pd.region_labels.discovery + delay: '0' + description: 'Discovery region labels specific metrics.' + item_prototypes: + - uuid: 117efc3f2fe64c51a18cd3be162185ea + name: 'Regions label: {#TYPE}' + type: DEPENDENT + key: 'pd.region_labels[{#TYPE}]' + delay: '0' + value_type: FLOAT + description: 'The number of Regions in different label levels.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "{#TYPE}")].value.first()' + master_item: + key: pd.region_labels.get_metrics + tags: + - tag: component + value: regions + - tag: type + value: '{#TYPE}' + master_item: + key: pd.region_labels.get_metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#TYPE}": item.labels.type, + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: ffbf9adaa72842fdbb49c008625c1575 + name: 'Region status discovery' + type: DEPENDENT + key: pd.region_status.discovery + delay: '0' + description: 'Discovery region status specific metrics.' + item_prototypes: + - uuid: 45ef4940b0454492b70116d8958c9b11 + name: 'Regions status: {#TYPE}' + type: DEPENDENT + key: 'pd.region_status[{#TYPE}]' + delay: '0' + value_type: FLOAT + description: 'The health status of Regions indicated via the count of unusual Regions including pending peers, down peers, extra peers, offline peers, missing peers, learner peers and incorrect namespaces.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "{#TYPE}")].value.first()' + master_item: + key: pd.region_status.get_metrics + tags: + - tag: component + value: regions + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: 2bc6b48bbfd8436e80903ea947571501 + expression: 'min(/TiDB PD by HTTP/pd.region_status[{#TYPE}],5m)>0' + name: 'TiDB PD: There are unresponsive peers' + discover: NO_DISCOVER + priority: WARNING + description: 'The number of Regions with an unresponsive peer reported by the Raft leader.' + tags: + - tag: scope + value: availability + - uuid: 1f80bd81d11345f59699617113a0cad5 + expression: 'min(/TiDB PD by HTTP/pd.region_status[{#TYPE}],5m)>{$PD.MISS_REGION.MAX.WARN}' + name: 'TiDB PD: Too many missed regions' + event_name: 'TiDB PD: Too many missed regions (over {$PD.MISS_REGION.MAX.WARN} in 5m)' + discover: NO_DISCOVER + priority: WARNING + description: 'The number of Region replicas is smaller than the value of max-replicas. When a TiKV machine is down and its downtime exceeds max-down-time, it usually leads to missing replicas for some Regions during a period of time. When a TiKV node is made offline, it might result in a small number of Regions with missing replicas.' + tags: + - tag: scope + value: availability + master_item: + key: pd.region_status.get_metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#TYPE}": item.labels.type, + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Too many missed regions trigger' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: miss_peer_region_count + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Too many missed regions' + discover: DISCOVER + status: ENABLED + - name: 'Unresponsive peers trigger' + step: '2' + filter: + conditions: + - macro: '{#TYPE}' + value: down_peer_region_count + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'There are unresponsive peers' + discover: DISCOVER + status: ENABLED + - uuid: b4b8007810ad4f7ba8da212cdde5b71b + name: 'Running scheduler discovery' + type: DEPENDENT + key: pd.scheduler.discovery + delay: '0' + description: 'Discovery scheduler specific metrics.' + item_prototypes: + - uuid: c6748a20540f49b293795bc72480dda7 + name: 'Scheduler status: {#KIND}' + type: DEPENDENT + key: 'pd.scheduler[{#KIND}]' + delay: '0' + value_type: FLOAT + description: 'The current running schedulers.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.kind == "{#KIND}")].value.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: pd.scheduler.get_metrics + tags: + - tag: component + value: scheduler + - tag: scheduler + value: '{#KIND}' + master_item: + key: pd.scheduler.get_metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#KIND}": item.labels.kind, + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: database + - tag: target + value: pd + - tag: target + value: tidb + macros: + - macro: '{$PD.MISS_REGION.MAX.WARN}' + value: '100' + description: 'Maximum number of missed regions' + - macro: '{$PD.PORT}' + value: '2379' + description: 'The port of PD server metrics web endpoint' + - macro: '{$PD.STORAGE_USAGE.MAX.WARN}' + value: '80' + description: 'Maximum percentage of cluster space used' + - macro: '{$PD.URL}' + value: localhost + description: 'PD server URL' + dashboards: + - uuid: 5111f9dc22c645e09fd8d936ad71c792 + name: 'PD: Overview' + pages: + - name: Main + widgets: + - type: item + name: Status + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'TiDB PD by HTTP' + key: pd.status + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: graphprototype + 'y': '2' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TiDB PD by HTTP' + name: 'TiDB cluster: Storage Usage[{#SINGLETON}]' + - type: STRING + name: reference + value: AAAAA + - type: item + name: Uptime + x: '12' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'TiDB PD by HTTP' + key: pd.uptime + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: item + name: Version + x: '24' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'TiDB PD by HTTP' + key: pd.version + - type: INTEGER + name: show.0 + value: '2' + - type: graphprototype + x: '36' + 'y': '2' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TiDB PD by HTTP' + name: 'TiDB cluster: Stores number by states[{#SINGLETON}]' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: bce54cbdf2b8487985f9c7847a4c4918 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up diff --git a/TiDB_TiKV_by_HTTP.yaml b/TiDB_TiKV_by_HTTP.yaml new file mode 100644 index 0000000..9ccd209 --- /dev/null +++ b/TiDB_TiKV_by_HTTP.yaml @@ -0,0 +1,1117 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 3a0bbbb2ec0a4c58bba3ba3a3d6ce660 + template: 'TiDB TiKV by HTTP' + name: 'TiDB TiKV by HTTP' + description: | + The template to monitor TiKV server of TiDB cluster by Zabbix that works without any external scripts. + Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. + Don't forget to change the macros {$TIKV.URL}, {$TIKV.PORT}. + + Template `TiDB TiKV by HTTP` — collects metrics by HTTP agent from TiKV /metrics endpoint. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + items: + - uuid: 449a7ba908884db3af4ec8ccc0d7ea43 + name: 'Scheduler: High priority commands total, rate' + type: DEPENDENT + key: tikv.commands_pri.high.rate + delay: '0' + value_type: FLOAT + description: 'Total count of high priority commands per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_scheduler_commands_pri_total" && @.labels.priority == "high")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: scheduler + - uuid: b5ce79ee79804e76bb7b91e17915159c + name: 'Scheduler: Low priority commands total, rate' + type: DEPENDENT + key: tikv.commands_pri.low.rate + delay: '0' + value_type: FLOAT + description: 'Total count of low priority commands per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_scheduler_commands_pri_total" && @.labels.priority == "low")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: scheduler + - uuid: df3fa02457ac47168fad251727b300ff + name: 'Scheduler: Normal priority commands total, rate' + type: DEPENDENT + key: tikv.commands_pri.normal.rate + delay: '0' + value_type: FLOAT + description: 'Total count of normal priority commands per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_scheduler_commands_pri_total" && @.labels.priority == "normal")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: scheduler + - uuid: dbf8288b5cab4e8a95b5e7c4355676bd + name: 'Coprocessor: Requests, rate' + type: DEPENDENT + key: tikv.coprocessor_request.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'Total number of coprocessor requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - $..value.sum() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.coprocessor_requests.metrics + tags: + - tag: component + value: coprocessor + - uuid: a4166b4e9f454e0388ee813bcf9ed429 + name: 'Get coprocessor requests metrics' + type: DEPENDENT + key: tikv.coprocessor_requests.metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get metrics of coprocessor requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_coprocessor_request_duration_seconds_count")]' + error_handler: DISCARD_VALUE + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: raw + - uuid: d6185382a1974b9194e68bea4f14eb75 + name: 'Coprocessor: Errors, rate' + type: DEPENDENT + key: tikv.coprocessor_request_error.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'Total number of push down request error per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_coprocessor_request_error")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: coprocessor + triggers: + - uuid: 31eca27ff6ce4ed78ee428ed3b8d8806 + expression: 'min(/TiDB TiKV by HTTP/tikv.coprocessor_request_error.rate,5m)>{$TIKV.COPROCESSOR.ERRORS.MAX.WARN}' + name: 'TiDB TiKV: Too many coprocessor request error' + event_name: 'TiDB TiKV: Too many coprocessor request error (over {$TIKV.COPROCESSOR.ERRORS.MAX.WARN} in 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 5567ebf02fb6441dbb6672e1bc77b3ab + name: 'Coprocessor: Response size, rate' + type: DEPENDENT + key: tikv.coprocessor_response_bytes.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'The total size of coprocessor response per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_coprocessor_response_bytes")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: coprocessor + - uuid: 237f6ba2973e472d8c20de1d61b4695c + name: 'Coprocessor: RocksDB ops, rate' + type: DEPENDENT + key: tikv.coprocessor_rocksdb_perf.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'Total number of RocksDB internal operations from PerfContext per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_coprocessor_rocksdb_perf")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: coprocessor + - uuid: bfcec759c0894cf89c5267fc6b3862d7 + name: 'Coprocessor: Scan keys, rate' + type: DEPENDENT + key: tikv.coprocessor_scan_keys_sum.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'Total number of scan keys observed per request per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_coprocessor_scan_keys")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: coprocessor + - uuid: a76665b7a9924f8cbd4a455bc248d790 + name: 'CPU util' + type: DEPENDENT + key: tikv.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU usage ratio on TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_thread_cpu_seconds_total")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: cpu + - uuid: 4558a5a11c304584bf24a7c3d2eace23 + name: 'Bytes read' + type: DEPENDENT + key: tikv.engine_flow_bytes.read + delay: '0' + value_type: FLOAT + units: Bps + description: 'The total bytes of read in TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_engine_flow_bytes" && @.labels.db == "kv" && @.labels.type =~ "bytes_read|iter_bytes_read")].value.sum()' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: storage + - uuid: 0d44c3c9a7f34905b0404ae39a3bc881 + name: 'Bytes write' + type: DEPENDENT + key: tikv.engine_flow_bytes.write + delay: '0' + value_type: FLOAT + units: Bps + description: 'The total bytes of write in TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_engine_flow_bytes" && @.labels.db == "kv" && @.labels.type == "wal_file_bytes")].value.first()' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: storage + - uuid: f79d5daea61842b18e39c7289657ddf5 + name: 'Store size' + type: DEPENDENT + key: tikv.engine_size + delay: '0' + value_type: FLOAT + units: B + description: 'The storage size of TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_engine_size_bytes")].value.sum()' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: storage + - uuid: 418bcc8c0bc440468efe833bef02929d + name: 'Get instance metrics' + type: HTTP_AGENT + key: tikv.get_metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get TiKV instance metrics.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: PROMETHEUS_TO_JSON + parameters: + - '' + url: '{$TIKV.URL}:{$TIKV.PORT}/metrics' + tags: + - tag: component + value: raw + - uuid: fed3db7222fa41a8bf51d2ad860a22d4 + name: 'Total query, rate' + type: DEPENDENT + key: tikv.grpc_msg.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'The total QPS in TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - $..value.sum() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.grpc_msgs.metrics + tags: + - tag: component + value: queries + - uuid: bb14162b05c84458a66996c08deffb1e + name: 'Get QPS metrics' + type: DEPENDENT + key: tikv.grpc_msgs.metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get QPS metrics in TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_grpc_msg_duration_seconds_count")]' + error_handler: DISCARD_VALUE + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: raw + - uuid: c68db41c184d44d98445cc66489ef39c + name: 'Total query errors, rate' + type: DEPENDENT + key: tikv.grpc_msg_fail.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'The total number of gRPC message handling failure per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_grpc_msg_fail_total")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: grpc + - uuid: 3ef3b7bf8c2645e8a953e68fdf246274 + name: 'Get failure msg metrics' + type: DEPENDENT + key: tikv.messages.failure.metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get metrics of reporting failure messages.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_server_report_failure_msg_total")]' + error_handler: DISCARD_VALUE + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: raw + - uuid: 7afa5147a1e247a5b8914d8739d31f15 + name: 'Server: failure messages total, rate' + type: DEPENDENT + key: tikv.messages.failure.rate + delay: '0' + value_type: FLOAT + description: 'Total number of reporting failure messages per second.' + preprocessing: + - type: JSONPATH + parameters: + - $..value.sum() + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.messages.failure.metrics + tags: + - tag: component + value: application + - uuid: e6137dd87faa496497b23cadaa37dca9 + name: 'Regions, count' + type: DEPENDENT + key: tikv.region_count + delay: '0' + description: 'The number of regions collected in TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_raftstore_region_count" && @.labels.type == "region" )].value.first()' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: regions + - uuid: 2ab7643435794ec6b5a2c3eb1dd7e913 + name: 'Regions, leader' + type: DEPENDENT + key: tikv.region_leader + delay: '0' + description: 'The number of leaders in TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_raftstore_region_count" && @.labels.type == "leader" )].value.first()' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: regions + - uuid: 1c480fa23eaa42bcb367bb5afdcb65b9 + name: 'RSS memory usage' + type: DEPENDENT + key: tikv.rss_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Resident memory size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "process_resident_memory_bytes")].value.first()' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: memory + - uuid: c99a6d9591674723a45de6a0ace68088 + name: 'Get scheduler metrics' + type: DEPENDENT + key: tikv.scheduler.metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get metrics of scheduler commands.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_scheduler_stage_total")]' + error_handler: DISCARD_VALUE + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: raw + - uuid: 62f856cf22804262aef64e9369049332 + name: 'Scheduler: Commands total, rate' + type: DEPENDENT + key: tikv.scheduler_commands.rate + delay: '0' + value_type: FLOAT + description: 'Total number of commands per second.' + preprocessing: + - type: JSONPATH + parameters: + - $..value.sum() + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.scheduler.metrics + tags: + - tag: component + value: scheduler + - uuid: 33a1b2f676134cf1b81771fbaf152f59 + name: 'Scheduler: Pending commands' + type: DEPENDENT + key: tikv.scheduler_contex + delay: '0' + description: 'The total number of pending commands. The scheduler receives commands from clients, executes them against the MVCC layer storage engine.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_scheduler_contex_total")].value.first()' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: scheduler + triggers: + - uuid: 0f21c02b8e1c45d9bbe0c3313cea1a23 + expression: 'min(/TiDB TiKV by HTTP/tikv.scheduler_contex,5m)>{$TIKV.PENDING_COMMANDS.MAX.WARN}' + name: 'TiDB TiKV: Too many pending commands' + event_name: 'TiDB TiKV: Too many pending commands (over {$TIKV.PENDING_COMMANDS.MAX.WARN} for 5m)' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: 8f5c9d2b9eca4a489d764420ee06e4b6 + name: 'Scheduler: Busy, rate' + type: DEPENDENT + key: tikv.scheduler_too_busy.rate + delay: '0' + value_type: FLOAT + description: 'The total count of too busy schedulers per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_scheduler_too_busy_total")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: scheduler + - uuid: 0a2d0a119bcd406aadfc5c014186c5d3 + name: 'Snapshot: Applying' + type: DEPENDENT + key: tikv.snapshot.applying + delay: '0' + description: 'The total amount of raftstore snapshot traffic.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_raftstore_snapshot_traffic_total" && @.labels.type == "applying")].value.first()' + error_handler: DISCARD_VALUE + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: snapshot + - uuid: 58559be859d64887a1b919e36aa1e336 + name: 'Snapshot: Receiving' + type: DEPENDENT + key: tikv.snapshot.receiving + delay: '0' + description: 'The total amount of raftstore snapshot traffic.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_raftstore_snapshot_traffic_total" && @.labels.type == "receiving")].value.first()' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: snapshot + - uuid: 0ae6a2024ed3488498e22bc542d27619 + name: 'Snapshot: Sending' + type: DEPENDENT + key: tikv.snapshot.sending + delay: '0' + description: 'The total amount of raftstore snapshot traffic.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_raftstore_snapshot_traffic_total" && @.labels.type == "sending")].value.first()' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: snapshot + - uuid: ce31318a420d40668e62a47fe19d3d40 + name: 'Storage: commands total, rate' + type: DEPENDENT + key: tikv.storage_command.rate + delay: '0' + value_type: FLOAT + description: 'Total number of commands received per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_storage_command_total")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: commands + - uuid: fbfaa0d967c049c0a1bbcec5afea4bf2 + name: 'Available size' + type: DEPENDENT + key: tikv.store_size.available + delay: '0' + value_type: FLOAT + units: B + description: 'The available capacity of TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "available")].value.first()' + master_item: + key: tikv.store_size.metrics + tags: + - tag: component + value: storage + - uuid: 1e0c1c071b604e77998797c2f9d41dfc + name: 'Capacity size' + type: DEPENDENT + key: tikv.store_size.capacity + delay: '0' + value_type: FLOAT + units: B + description: 'The capacity size of TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "capacity")].value.first()' + master_item: + key: tikv.store_size.metrics + tags: + - tag: component + value: storage + - uuid: fd4b786239d9426d9a882af47a5abe01 + name: 'Get store size metrics' + type: DEPENDENT + key: tikv.store_size.metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get capacity metrics of TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_store_size_bytes")]' + error_handler: DISCARD_VALUE + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: raw + - uuid: f2632dbd773140398a7d61608d85f392 + name: Uptime + type: DEPENDENT + key: tikv.uptime + delay: '0' + value_type: FLOAT + units: uptime + description: 'The runtime of each TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="process_start_time_seconds")].value.first()' + - type: JAVASCRIPT + parameters: + - 'return (Math.floor(Date.now() / 1000) - Number(value));' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: application + triggers: + - uuid: ca06602fa0b64a2ba0c51ed4835c52b2 + expression: 'last(/TiDB TiKV by HTTP/tikv.uptime)<10m' + name: 'TiDB TiKV: Instance has been restarted' + event_name: 'TiDB TiKV: Instance has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8b7c2dc8c60e491db76cafd2d0e1234b + name: 'Snapshot: Pending tasks' + type: DEPENDENT + key: tikv.worker_pending_task + delay: '0' + description: 'The number of tasks currently running by the worker or pending.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_worker_pending_task_total")].value.first()' + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: snapshot + triggers: + - uuid: f26874f910e34933983685ae43a90bee + expression: 'min(/TiDB TiKV by HTTP/tikv.worker_pending_task,5m)>{$TIKV.PENDING_TASKS.MAX.WARN}' + name: 'TiDB TiKV: Too many pending tasks' + event_name: 'TiDB TiKV: Too many pending tasks (over {$TIKV.PENDING_TASKS.MAX.WARN} for 5m)' + priority: AVERAGE + tags: + - tag: scope + value: performance + discovery_rules: + - uuid: f1c7de94679e40a4ac6f569e05ad61d0 + name: 'Coprocessor metrics discovery' + type: DEPENDENT + key: tikv.coprocessor.discovery + delay: '0' + description: 'Discovery coprocessor metrics.' + item_prototypes: + - uuid: e5176f11fe694efba01c4a2b14f5929d + name: 'Coprocessor: {#REQ_TYPE} metrics' + type: DEPENDENT + key: 'tikv.coprocessor_request.metrics[{#REQ_TYPE}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get metrics of {#REQ_TYPE} requests.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.req == "{#REQ_TYPE}")]' + error_handler: DISCARD_VALUE + master_item: + key: tikv.get_metrics + tags: + - tag: component + value: raw + - tag: request + value: '{#REQ_TYPE}' + - uuid: ecbe08549fef42d5aad0369e861b4c20 + name: 'Coprocessor: {#REQ_TYPE} requests, rate' + type: DEPENDENT + key: 'tikv.coprocessor_request.rate[{#REQ_TYPE}]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'Total number of coprocessor requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_coprocessor_request_duration_seconds_count")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'tikv.coprocessor_request.metrics[{#REQ_TYPE}]' + tags: + - tag: component + value: coprocessor + - tag: request + value: '{#REQ_TYPE}' + - uuid: 08060401409b4fff97430c595fec7b82 + name: 'Coprocessor: {#REQ_TYPE} errors, rate' + type: DEPENDENT + key: 'tikv.coprocessor_request_error.rate[{#REQ_TYPE}]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'Total number of push down request error per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_coprocessor_request_error")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'tikv.coprocessor_request.metrics[{#REQ_TYPE}]' + tags: + - tag: component + value: coprocessor + - tag: request + value: '{#REQ_TYPE}' + - uuid: bff6ee970f7349edba6cac1cd0da70ed + name: 'Coprocessor: {#REQ_TYPE} RocksDB ops, rate' + type: DEPENDENT + key: 'tikv.coprocessor_rocksdb_perf.rate[{#REQ_TYPE}]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'Total number of RocksDB internal operations from PerfContext per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_coprocessor_rocksdb_perf")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'tikv.coprocessor_request.metrics[{#REQ_TYPE}]' + tags: + - tag: component + value: coprocessor + - tag: request + value: '{#REQ_TYPE}' + - uuid: 8ef93de8a25b4f35b2e54f6ced4a5bd2 + name: 'Coprocessor: {#REQ_TYPE} scan keys, rate' + type: DEPENDENT + key: 'tikv.coprocessor_scan_keys.rate[{#REQ_TYPE}]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'Total number of scan keys observed per request per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tikv_coprocessor_scan_keys_count")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'tikv.coprocessor_request.metrics[{#REQ_TYPE}]' + tags: + - tag: component + value: coprocessor + - tag: request + value: '{#REQ_TYPE}' + master_item: + key: tikv.coprocessor_requests.metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#REQ_TYPE}": item.labels.req, + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 39e4031ee41143ed9d0c84492f817125 + name: 'QPS metrics discovery' + type: DEPENDENT + key: tikv.qps.discovery + delay: '0' + description: 'Discovery QPS metrics.' + item_prototypes: + - uuid: 3b1d1b10cee6465c822152072189ebbe + name: 'Query: {#TYPE}, rate' + type: DEPENDENT + key: 'tikv.grpc_msg.rate[{#TYPE}]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'The QPS per command in TiKV instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "{#TYPE}")].value.first()' + error_handler: CUSTOM_VALUE + master_item: + key: tikv.grpc_msgs.metrics + tags: + - tag: component + value: grpc + - tag: type + value: '{#TYPE}' + master_item: + key: tikv.grpc_msgs.metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#TYPE}": item.labels.type, + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 7168e631146546129284cbf9c52b2025 + name: 'Scheduler metrics discovery' + type: DEPENDENT + key: tikv.scheduler.discovery + delay: '0' + description: 'Discovery scheduler metrics.' + item_prototypes: + - uuid: c4f902a0be5444b2babb1775b89a6827 + name: 'Scheduler: commands {#STAGE}, rate' + type: DEPENDENT + key: 'tikv.scheduler_stage.rate[{#STAGE}]' + delay: '0' + value_type: FLOAT + description: 'Total number of commands on each stage per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.stage == "{#STAGE}")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.scheduler.metrics + tags: + - tag: component + value: scheduler + - tag: stage + value: '{#STAGE}' + master_item: + key: tikv.scheduler.metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var stage = item.labels.stage; + if (!(lookup[stage])) { + lookup[stage] = 1; + result.push({ "{#STAGE}": stage }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5ebd2e2131ab4a9f8ca63f0e490b04a3 + name: 'Server errors discovery' + type: DEPENDENT + key: tikv.server_report_failure.discovery + delay: '0' + description: 'Discovery server errors metrics.' + item_prototypes: + - uuid: 064e74b5484e42e4acf3122c8ead4826 + name: 'Store_id {#STORE_ID}: failure messages "{#TYPE}", rate' + type: DEPENDENT + key: 'tikv.messages.failure.rate[{#STORE_ID},{#TYPE}]' + delay: '0' + value_type: FLOAT + description: 'Total number of reporting failure messages. The metric has two labels: type and store_id. type represents the failure type, and store_id represents the destination peer store id.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.store_id == "{#STORE_ID}" && @.labels.type == "{#TYPE}")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tikv.messages.failure.metrics + tags: + - tag: component + value: stores + - tag: message-type + value: '{#TYPE}' + - tag: store + value: '{#STORE_ID}' + trigger_prototypes: + - uuid: 1f65b64824d64852aaa609df5f3e27fd + expression: 'min(/TiDB TiKV by HTTP/tikv.messages.failure.rate[{#STORE_ID},{#TYPE}],5m)>{$TIKV.STORE.ERRORS.MAX.WARN}' + name: 'TiDB TiKV: Store_id {#STORE_ID}: Too many failure messages "{#TYPE}"' + event_name: 'TiDB TiKV: Store_id {#STORE_ID}: Too many failure messages "{#TYPE}" (over {$TIKV.STORE.ERRORS.MAX.WARN} in 5m)' + discover: NO_DISCOVER + priority: WARNING + description: 'Indicates that the remote TiKV cannot be connected.' + tags: + - tag: scope + value: availability + master_item: + key: tikv.messages.failure.metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#STORE_ID}": item.labels.store_id, + "{#TYPE}": item.labels.type, + + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Too many unreachable messages trigger' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: unreachable + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Too many failure messages' + discover: DISCOVER + status: ENABLED + tags: + - tag: class + value: database + - tag: target + value: tidb + - tag: target + value: tikv + macros: + - macro: '{$TIKV.COPROCESSOR.ERRORS.MAX.WARN}' + value: '1' + description: 'Maximum number of coprocessor request errors' + - macro: '{$TIKV.PENDING_COMMANDS.MAX.WARN}' + value: '1' + description: 'Maximum number of pending commands' + - macro: '{$TIKV.PENDING_TASKS.MAX.WARN}' + value: '1' + description: 'Maximum number of tasks currently running by the worker or pending' + - macro: '{$TIKV.PORT}' + value: '20180' + description: 'The port of TiKV server metrics web endpoint' + - macro: '{$TIKV.STORE.ERRORS.MAX.WARN}' + value: '1' + description: 'Maximum number of failure messages' + - macro: '{$TIKV.URL}' + value: localhost + description: 'TiKV server URL' + dashboards: + - uuid: 5d700978ddb447e59b2536732377d27b + name: 'TiKV: Overview' + pages: + - name: Main + widgets: + - type: item + name: Uptime + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'TiDB TiKV by HTTP' + key: tikv.uptime + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: graph + 'y': '2' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TiDB TiKV by HTTP' + name: 'TiKV: Snapshot state count' + - type: STRING + name: reference + value: AAAAA + - type: graph + x: '36' + 'y': '2' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TiDB TiKV by HTTP' + name: 'TiKV: Scheduler priority commands rate' + - type: STRING + name: reference + value: AAAAB + graphs: + - uuid: cdca8a2bb2bb486da8c57740acc431d6 + name: 'TiKV: Scheduler priority commands rate' + graph_items: + - color: 199C0D + item: + host: 'TiDB TiKV by HTTP' + key: tikv.commands_pri.normal.rate + - sortorder: '1' + color: F63100 + item: + host: 'TiDB TiKV by HTTP' + key: tikv.commands_pri.high.rate + - sortorder: '2' + color: 00611C + item: + host: 'TiDB TiKV by HTTP' + key: tikv.commands_pri.low.rate + - uuid: 93a38153ed8b44a49849cb1f920f50a4 + name: 'TiKV: Snapshot state count' + graph_items: + - color: 199C0D + item: + host: 'TiDB TiKV by HTTP' + key: tikv.snapshot.applying + - sortorder: '1' + color: F63100 + item: + host: 'TiDB TiKV by HTTP' + key: tikv.snapshot.receiving + - sortorder: '2' + color: 00611C + item: + host: 'TiDB TiKV by HTTP' + key: tikv.snapshot.sending diff --git a/TiDB_by_HTTP.yaml b/TiDB_by_HTTP.yaml new file mode 100644 index 0000000..00d52dc --- /dev/null +++ b/TiDB_by_HTTP.yaml @@ -0,0 +1,1305 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 8ec72ebbe3204d7789429640abcac610 + template: 'TiDB by HTTP' + name: 'TiDB by HTTP' + description: | + The template to monitor TiDB server of TiDB cluster by Zabbix that works without any external scripts. + Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. + Don't forget to change the macros {$TIDB.URL}, {$TIDB.PORT}. + + Template `TiDB by HTTP` — collects metrics by HTTP agent from PD /metrics endpoint and from monitoring API. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + items: + - uuid: f6c68d3961e04d5185ab38c12fa25532 + name: CPU + type: DEPENDENT + key: tidb.cpu.util + delay: '0' + value_type: FLOAT + units: '%' + description: 'Total user and system CPU usage ratio.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="process_cpu_seconds_total")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '100' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: cpu + - uuid: e1da33fc95ab46bcbe6bc6a68154d172 + name: 'DDL waiting jobs' + type: DEPENDENT + key: tidb.ddl_waiting_jobs + delay: '0' + value_type: FLOAT + description: 'The number of TiDB operations that resolve locks per second. When TiDB''s read or write request encounters a lock, it tries to resolve the lock.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_ddl_waiting_jobs")].value.sum()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: operations + triggers: + - uuid: 4125d55d9931455091d2f3a0b25e9678 + expression: 'min(/TiDB by HTTP/tidb.ddl_waiting_jobs,5m)>{$TIDB.DDL.WAITING.MAX.WARN}' + name: 'TiDB: Too many DDL waiting jobs' + event_name: 'TiDB: Too many DDL waiting jobs (over {$TIDB.DDL.WAITING.MAX.WARN} for 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 0fe0c1dee67e469d9d38193ef7b040ec + name: 'Load schema failed, rate' + type: DEPENDENT + key: tidb.domain_load_schema.failed.rate + delay: '0' + value_type: FLOAT + description: 'The total number of failures to reload the latest schema information in TiDB per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_domain_load_schema_total && @.labels.type == "failed"")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: domain + triggers: + - uuid: b4948f37af804c01a2b8887f9e89ec90 + expression: 'min(/TiDB by HTTP/tidb.domain_load_schema.failed.rate,5m)>{$TIDB.SCHEMA_LOAD_ERRORS.MAX.WARN}' + name: 'TiDB: Too many schema lease errors' + event_name: 'TiDB: Too many schema lease errors (over {$TIDB.SCHEMA_LOAD_ERRORS.MAX.WARN} for 5m)' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: b0e960ddac4d43a3860e8a06dfe09e03 + name: 'Load schema total, rate' + type: DEPENDENT + key: tidb.domain_load_schema.rate + delay: '0' + value_type: FLOAT + description: 'The statistics of the schemas that TiDB obtains from TiKV per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_domain_load_schema_total")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: domain + - uuid: 8fffe502bd2f42368e60d2110f1c3319 + name: 'Failed Query, rate' + type: DEPENDENT + key: tidb.execute_error.rate + delay: '0' + value_type: FLOAT + description: 'The number of error occurred when executing SQL statements per second (such as syntax errors and primary key conflicts).' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_server_execute_error_total")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: sql + - uuid: 954f5e433a7c44128d7772b87d493270 + name: 'Get instance metrics' + type: HTTP_AGENT + key: tidb.get_metrics + history: '0' + value_type: TEXT + trends: '0' + description: 'Get TiDB instance metrics.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + - type: PROMETHEUS_TO_JSON + parameters: + - '' + url: '{$TIDB.URL}:{$TIDB.PORT}/metrics' + tags: + - tag: component + value: raw + - uuid: e95ebe1050b8404f8274e243203fdecc + name: 'Get instance status' + type: HTTP_AGENT + key: tidb.get_status + history: '0' + value_type: TEXT + trends: '0' + description: 'Get TiDB instance status info.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '{"status": "0"}' + url: '{$TIDB.URL}:{$TIDB.PORT}/status' + tags: + - tag: component + value: health + - tag: component + value: raw + - uuid: 14cf8296365048a59fd42f03966b1e1e + name: 'Goroutine count' + type: DEPENDENT + key: tidb.goroutines + delay: '0' + description: 'The number of Goroutines on TiDB instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="go_goroutines")].value.first()' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: goroutines + - uuid: 78e60bd44e3e4a4a859705c94ef94420 + name: 'Heap memory usage' + type: DEPENDENT + key: tidb.heap_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Number of heap bytes that are in use.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="go_memstats_heap_inuse_bytes")].value.first()' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: memory + triggers: + - uuid: 575a4821ed8c4a1881b7f9bd264b1929 + expression: 'min(/TiDB by HTTP/tidb.heap_bytes,5m)>{$TIDB.HEAP.USAGE.MAX.WARN}' + name: 'TiDB: Heap memory usage is too high' + event_name: 'TiDB: Heap memory usage is too high (over {$TIDB.HEAP.USAGE.MAX.WARN} for 5m)' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 104c09cb47f640fb804c136a09aa3bd2 + name: 'Keep alive, rate' + type: DEPENDENT + key: tidb.monitor_keep_alive.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of times that the metrics are refreshed on TiDB instance per minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_monitor_keep_alive_total")].value.first()' + error_handler: DISCARD_VALUE + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: health + triggers: + - uuid: eb3c09904fa843d78401b00eff4f6a08 + expression: 'max(/TiDB by HTTP/tidb.monitor_keep_alive.rate,5m)<{$TIDB.MONITOR_KEEP_ALIVE.MAX.WARN}' + name: 'TiDB: Too few keep alive operations' + event_name: 'TiDB: Too few keep alive operations (less {$TIDB.MONITOR_KEEP_ALIVE.MAX.WARN} for 5m)' + priority: AVERAGE + description: 'Indicates whether the TiDB process still exists. If the number of times for tidb_monitor_keep_alive_total increases less than 10 per minute, the TiDB process might already exit and an alert is triggered.' + tags: + - tag: scope + value: availability + - uuid: d3ef55b9fd8b4a2aa1cbbc48f15203cb + name: 'Time jump back, rate' + type: DEPENDENT + key: tidb.monitor_time_jump_back.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of times that the operating system rewinds every second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_monitor_time_jump_back_total")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: application + triggers: + - uuid: c3c1f6eab224453b92534d5393aca2b7 + expression: 'min(/TiDB by HTTP/tidb.monitor_time_jump_back.rate,5m)>{$TIDB.TIME_JUMP_BACK.MAX.WARN}' + name: 'TiDB: Too many time jump backs' + event_name: 'TiDB: Too many time jump backs (over {$TIDB.TIME_JUMP_BACK.MAX.WARN} for 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: dce76be0ccbe44969bb09ad29d599790 + name: 'PD TSO commands, rate' + type: DEPENDENT + key: tidb.pd_tso_cmd.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of TSO commands that TiDB obtains from PD per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="pd_client_cmd_handle_cmds_duration_seconds_count" && @.labels.type == "tso")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: pd-commands + - uuid: 2bde50849f5541c3ac8aa5b26f5b8b52 + name: 'PD TSO requests, rate' + type: DEPENDENT + key: tidb.pd_tso_request.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of TSO requests that TiDB obtains from PD per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="pd_client_request_handle_requests_duration_seconds_count" && @.labels.type == "tso")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: pd-commands + - uuid: ad8764623b8e46238efc0a94f0766a5b + name: 'Open file descriptors, max' + type: DEPENDENT + key: tidb.process_max_fds + delay: '0' + value_type: FLOAT + description: 'Maximum number of open file descriptors.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="process_max_fds")].value.first()' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: fds + - uuid: 04b3d6bf810c449db1e4b79be6b263a9 + name: 'Open file descriptors' + type: DEPENDENT + key: tidb.process_open_fds + delay: '0' + value_type: FLOAT + description: 'Number of open file descriptors.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="process_open_fds")].value.first()' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: fds + - uuid: fbee374d0fda4679a693ccccc26e5713 + name: 'RSS memory usage' + type: DEPENDENT + key: tidb.rss_bytes + delay: '0' + value_type: FLOAT + units: B + description: 'Resident memory size in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="process_resident_memory_bytes")].value.first()' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: memory + - uuid: 651140aae7334994a31d24568c08a9ab + name: 'Total "error" server query, rate' + type: DEPENDENT + key: tidb.server_query.error.rate + delay: '0' + value_type: FLOAT + units: Qps + description: 'The number of queries on TiDB instance per second with failure of command execution results.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.result == "Error")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.server_query.get_metrics + tags: + - tag: component + value: queries + - uuid: d563866ed3be46b991175c0250495cc7 + name: 'Get total server query metrics' + type: DEPENDENT + key: tidb.server_query.get_metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get information about server queries.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name == "tidb_server_query_total")]' + error_handler: DISCARD_VALUE + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: raw + - uuid: 00374eab11a14ab1b4e636996519ab80 + name: 'Total "ok" server query, rate' + type: DEPENDENT + key: tidb.server_query.ok.rate + delay: '0' + value_type: FLOAT + units: Qps + description: 'The number of queries on TiDB instance per second with success of command execution results.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.result == "OK")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.server_query.get_metrics + tags: + - tag: component + value: queries + - uuid: 938e7bb83c714e198db55f3bb009daaf + name: 'Total server query, rate' + type: DEPENDENT + key: tidb.server_query.rate + delay: '0' + value_type: FLOAT + units: Qps + description: 'The number of queries per second on TiDB instance.' + preprocessing: + - type: JSONPATH + parameters: + - $..value.sum() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.server_query.get_metrics + tags: + - tag: component + value: queries + - uuid: 84824ff459b74679b33e34a1f1e8cc69 + name: 'Schema lease "change" errors, rate' + type: DEPENDENT + key: tidb.session_schema_lease_error.change.rate + delay: '0' + value_type: FLOAT + description: | + The number of schema lease errors per second. + "change" means that the schema has changed + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_session_schema_lease_error_total && @.labels.type == "change"")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: sessions + - uuid: fe35df7cc7de4b0b8d616b042da99d69 + name: 'Schema lease "outdate" errors , rate' + type: DEPENDENT + key: tidb.session_schema_lease_error.outdate.rate + delay: '0' + value_type: FLOAT + description: | + The number of schema lease errors per second. + "outdate" errors means that the schema cannot be updated, which is a more serious error and triggers an alert. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_session_schema_lease_error_total && @.labels.type == "outdate"")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: sessions + triggers: + - uuid: b077eb1afe6a4da79707987324fb40c8 + expression: 'min(/TiDB by HTTP/tidb.session_schema_lease_error.outdate.rate,5m)>{$TIDB.SCHEMA_LEASE_ERRORS.MAX.WARN}' + name: 'TiDB: Too many schema lease errors' + event_name: 'TiDB: Too many schema lease errors (over {$TIDB.SCHEMA_LEASE_ERRORS.MAX.WARN} for 5m)' + priority: AVERAGE + description: 'The latest schema information is not reloaded in TiDB within one lease.' + tags: + - tag: scope + value: availability + - uuid: e4979490578848ecb9716c43050463ce + name: 'Get SQL statements metrics' + type: DEPENDENT + key: tidb.statement_total.get_metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get SQL statements metrics.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_executor_statement_total")]' + error_handler: DISCARD_VALUE + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: raw + - uuid: fe8cf5e5c7704db797e76fd9d64e6d17 + name: 'SQL statements, rate' + type: DEPENDENT + key: tidb.statement_total.rate + delay: '0' + value_type: FLOAT + description: 'The total number of SQL statements executed per second.' + preprocessing: + - type: JSONPATH + parameters: + - $..value.sum() + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.statement_total.get_metrics + tags: + - tag: component + value: sql + - uuid: ed86585a496b4b438c521c4765d76b11 + name: Status + type: DEPENDENT + key: tidb.status + delay: '0' + value_type: CHAR + trends: '0' + description: 'Status of PD instance.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.status + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: tidb.get_status + tags: + - tag: component + value: health + triggers: + - uuid: 82a638ac4a3f4b349ee7bb0d53bc1f29 + expression: 'last(/TiDB by HTTP/tidb.status)=0' + name: 'TiDB: Instance is not responding' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: b5db09e71f2341b8ac1b9e48cbdefc82 + name: 'Server connections' + type: DEPENDENT + key: tidb.tidb_server_connections + delay: '0' + description: 'The connection number of current TiDB instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_server_connections")].value.first()' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: connections + - uuid: 73992d4be61e443eafcc03aaa1bbf4a5 + name: 'Server critical error, rate' + type: DEPENDENT + key: tidb.tidb_server_critical_error_total.rate + delay: '0' + value_type: FLOAT + description: 'The number of critical errors occurred in TiDB per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_server_critical_error_total")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: server + - uuid: f1e2436ced3c456a85650e0622715777 + name: 'Server panic, rate' + type: DEPENDENT + key: tidb.tidb_server_panic_total.rate + delay: '0' + value_type: FLOAT + description: 'The number of panics occurred in TiDB per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_server_panic_total")].value.first()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: server + triggers: + - uuid: c457465731c947eab7b477186d8ba876 + expression: 'last(/TiDB by HTTP/tidb.tidb_server_panic_total.rate)>0' + name: 'TiDB: There are panicked TiDB threads' + priority: AVERAGE + description: 'When a panic occurs, an alert is triggered. The thread is often recovered, otherwise, TiDB will frequently restart.' + tags: + - tag: scope + value: availability + - uuid: dbeb9ccf30834e22bb7e264061274b9b + name: 'Get TiKV client metrics' + type: DEPENDENT + key: tidb.tikvclient.get_metrics + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get TiKV client metrics.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=~"tidb_tikvclient_*")]' + error_handler: DISCARD_VALUE + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: raw + - uuid: 8a63b326356f4fdbb9cb6e73437348be + name: 'KV backoff, rate' + type: DEPENDENT + key: tidb.tikvclient_backoff.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of errors returned by TiKV.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_backoff_total")].value.sum()' + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.tikvclient.get_metrics + tags: + - tag: component + value: tikv-commands + - uuid: aef7cdfd07f1420c970f20c821fed8dd + name: 'Lock resolves, rate' + type: DEPENDENT + key: tidb.tikvclient_lock_resolver_action.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of DDL tasks that are waiting.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_lock_resolver_actions_total")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.tikvclient.get_metrics + tags: + - tag: component + value: tikv-commands + - uuid: c116313e63fa45d89bf44772cc9cb3b8 + name: 'TiClient region errors, rate' + type: DEPENDENT + key: tidb.tikvclient_region_err.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of region related errors returned by TiKV per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_region_err_total")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.tikvclient.get_metrics + tags: + - tag: component + value: regions + triggers: + - uuid: d3cb81c46e414ff2a7e411a877b899ef + expression: 'min(/TiDB by HTTP/tidb.tikvclient_region_err.rate,5m)>{$TIDB.REGION_ERROR.MAX.WARN}' + name: 'TiDB: Too many region related errors' + event_name: 'TiDB: Too many region related errors (over {$TIDB.REGION_ERROR.MAX.WARN} for 5m)' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: 8ddf164df8c9404ba9f7c0f87db3bc2f + name: 'KV commands, rate' + type: DEPENDENT + key: tidb.tikvclient_txn.rate + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of executed KV commands per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_txn_cmd_duration_seconds_count")].value.sum()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.tikvclient.get_metrics + tags: + - tag: component + value: tikv-commands + - uuid: 20c0fffd66c84a16bb4d8f7882c896bc + name: Uptime + type: DEPENDENT + key: tidb.uptime + delay: '0' + value_type: FLOAT + units: uptime + description: 'The runtime of each TiDB instance.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="process_start_time_seconds")].value.first()' + - type: JAVASCRIPT + parameters: + - 'return (Math.floor(Date.now() / 1000) - Number(value));' + master_item: + key: tidb.get_metrics + tags: + - tag: component + value: application + triggers: + - uuid: 91adc4c6b9364693891faf58c8cced75 + expression: 'last(/TiDB by HTTP/tidb.uptime)<10m' + name: 'TiDB: Instance has been restarted' + event_name: 'TiDB: Instance has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 65fa2b077073467387b39bef035b0644 + name: Version + type: DEPENDENT + key: tidb.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of the TiDB instance.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: tidb.get_status + tags: + - tag: component + value: application + triggers: + - uuid: 5f863fc0944848fdad145f42c94dbea3 + expression: 'last(/TiDB by HTTP/tidb.version,#1)<>last(/TiDB by HTTP/tidb.version,#2) and length(last(/TiDB by HTTP/tidb.version))>0' + name: 'TiDB: Version has changed' + event_name: 'TiDB: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'TiDB version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 4db735b652eb451d911f6dc01de6b1ba + name: 'KV metrics discovery' + type: DEPENDENT + key: tidb.kv_ops.discovery + delay: '0' + description: 'Discovery KV specific metrics.' + item_prototypes: + - uuid: 79b0a13b25c745d288c313c4197f2e5c + name: 'KV Commands: {#TYPE}, rate' + type: DEPENDENT + key: 'tidb.tikvclient_txn.rate[{#TYPE}]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of executed KV commands per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_txn_cmd_duration_seconds_count" && @.labels.type == "{#TYPE}")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.tikvclient.get_metrics + tags: + - tag: component + value: tikv-commands + - tag: type + value: '{#TYPE}' + master_item: + key: tidb.tikvclient.get_metrics + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_txn_cmd_duration_seconds_count")]' + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#TYPE}": item.labels.type, + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: bcaf700328b94b59b35cf5bfaf27d5ac + name: 'QPS metrics discovery' + type: DEPENDENT + key: tidb.qps.discovery + delay: '0' + description: 'Discovery QPS specific metrics.' + item_prototypes: + - uuid: f5966b0b3840432a8809a0dbb128ecaf + name: 'Get QPS metrics: {#TYPE}' + type: DEPENDENT + key: 'tidb.qps.get_metrics[{#TYPE}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get QPS metrics of {#TYPE}.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "{#TYPE}")]' + error_handler: DISCARD_VALUE + master_item: + key: tidb.server_query.get_metrics + tags: + - tag: component + value: raw + - tag: type + value: '{#TYPE}' + - uuid: 3b450f5a853247358a8fe6f31f000575 + name: 'Server query "Error": {#TYPE}, rate' + type: DEPENDENT + key: 'tidb.server_query.error.rate[{#TYPE}]' + delay: '0' + value_type: FLOAT + units: Qps + description: 'The number of queries on TiDB instance per second with failure of command execution results.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.result == "Error")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'tidb.qps.get_metrics[{#TYPE}]' + tags: + - tag: component + value: queries + - tag: type + value: '{#TYPE}' + - uuid: 125bdd3eb1b643f4ad00d58fbed455f6 + name: 'Server query "OK": {#TYPE}, rate' + type: DEPENDENT + key: 'tidb.server_query.ok.rate[{#TYPE}]' + delay: '0' + value_type: FLOAT + units: Qps + description: 'The number of queries on TiDB instance per second with success of command execution results.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.result == "OK")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'tidb.qps.get_metrics[{#TYPE}]' + tags: + - tag: component + value: queries + - tag: type + value: '{#TYPE}' + master_item: + key: tidb.server_query.get_metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var lookup = {}, + result = []; + + JSON.parse(value).forEach(function (item) { + var type = item.labels.type; + if (!(lookup[type])) { + lookup[type] = 1; + result.push({ "{#TYPE}": type }); + } + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e3c23b94a9514389b37e3911f79db8f8 + name: 'Statement metrics discovery' + type: DEPENDENT + key: tidb.statement.discover + delay: '0' + description: 'Discovery statement specific metrics.' + item_prototypes: + - uuid: 111ffa26edd247eb9325f5ab5f5f3f94 + name: 'SQL statements: {#TYPE}, rate' + type: DEPENDENT + key: 'tidb.statement.rate[{#TYPE}]' + delay: '0' + value_type: FLOAT + description: 'The number of SQL statements executed per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.labels.type == "{#TYPE}")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.statement_total.get_metrics + tags: + - tag: component + value: sql + - tag: type + value: '{#TYPE}' + master_item: + key: tidb.statement_total.get_metrics + preprocessing: + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#TYPE}": item.labels.type, + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: f9af6d56e612459583a1f5d3b4a7d61b + name: 'KV backoff discovery' + type: DEPENDENT + key: tidb.tikvclient_backoff.discovery + delay: '0' + description: 'Discovery KV backoff specific metrics.' + item_prototypes: + - uuid: a11cf69675654e7ca70dbab255509bb8 + name: 'KV backoff: {#TYPE}, rate' + type: DEPENDENT + key: 'tidb.tikvclient_backoff.rate[{#TYPE}]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of TiDB operations that resolve locks per second. When TiDB''s read or write request encounters a lock, it tries to resolve the lock.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_backoff_total" && @.labels.type == "{#TYPE}")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.tikvclient.get_metrics + tags: + - tag: component + value: tikv-backoff + - tag: type + value: '{#TYPE}' + master_item: + key: tidb.tikvclient.get_metrics + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_backoff_total")]' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#TYPE}": item.labels.type, + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 72d1f090ce9c4f89b06e4195989e4b2b + name: 'GC action results discovery' + type: DEPENDENT + key: tidb.tikvclient_gc_action.discovery + delay: '0' + description: 'Discovery GC action results metrics.' + item_prototypes: + - uuid: e3c19674dcdf4fdea1f8cd82e3df9f72 + name: 'GC action result: {#TYPE}, rate' + type: DEPENDENT + key: 'tidb.tikvclient_gc_action.rate[{#TYPE}]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of results of GC-related operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_gc_action_result" && @.labels.type == "{#TYPE}")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.tikvclient.get_metrics + tags: + - tag: component + value: gc + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: 2d24956d0a4f459fad155590376696c1 + expression: 'min(/TiDB by HTTP/tidb.tikvclient_gc_action.rate[{#TYPE}],5m)>{$TIDB.GC_ACTIONS.ERRORS.MAX.WARN}' + name: 'TiDB: Too many failed GC-related operations' + event_name: 'TiDB: Too many failed GC-related operations (over {$TIDB.GC_ACTIONS.ERRORS.MAX.WARN} in 5m)' + discover: NO_DISCOVER + priority: WARNING + tags: + - tag: scope + value: performance + master_item: + key: tidb.tikvclient.get_metrics + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_gc_action_result")]' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#TYPE}": item.labels.type, + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Failed GC-related operations trigger' + step: '1' + filter: + conditions: + - macro: '{#TYPE}' + value: failed + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: LIKE + value: 'Too many failed GC-related operations' + discover: DISCOVER + status: ENABLED + - uuid: a4f2e1902cc54f0db9e9c345c63285e2 + name: 'Lock resolves discovery' + type: DEPENDENT + key: tidb.tikvclient_lock_resolver_action.discovery + delay: '0' + description: 'Discovery lock resolves specific metrics.' + item_prototypes: + - uuid: 2eebf2ccc44a4cadb0b70e153b70b3a2 + name: 'Lock resolves: {#TYPE}, rate' + type: DEPENDENT + key: 'tidb.tikvclient_lock_resolver_action.rate[{#TYPE}]' + delay: '0' + value_type: FLOAT + units: Ops + description: 'The number of TiDB operations that resolve locks per second. When TiDB''s read or write request encounters a lock, it tries to resolve the lock.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_lock_resolver_actions_total" && @.labels.type == "{#TYPE}")].value.first()' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: tidb.tikvclient.get_metrics + tags: + - tag: component + value: locks + - tag: type + value: '{#TYPE}' + master_item: + key: tidb.tikvclient.get_metrics + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.name=="tidb_tikvclient_lock_resolver_actions_total")]' + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function (item) { + return { + "{#TYPE}": item.labels.type, + }; + }); + return JSON.stringify({ "data": output }); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: database + - tag: target + value: tidb + macros: + - macro: '{$TIDB.DDL.WAITING.MAX.WARN}' + value: '5' + description: 'Maximum number of DDL tasks that are waiting' + - macro: '{$TIDB.GC_ACTIONS.ERRORS.MAX.WARN}' + value: '1' + description: 'Maximum number of GC-related operations failures' + - macro: '{$TIDB.HEAP.USAGE.MAX.WARN}' + value: 10G + description: 'Maximum heap memory used' + - macro: '{$TIDB.MONITOR_KEEP_ALIVE.MAX.WARN}' + value: '10' + description: 'Minimum number of keep alive operations' + - macro: '{$TIDB.OPEN.FDS.MAX.WARN}' + value: '90' + description: 'Maximum percentage of used file descriptors' + - macro: '{$TIDB.PORT}' + value: '10080' + description: 'The port of TiDB server metrics web endpoint' + - macro: '{$TIDB.REGION_ERROR.MAX.WARN}' + value: '50' + description: 'Maximum number of region related errors' + - macro: '{$TIDB.SCHEMA_LEASE_ERRORS.MAX.WARN}' + value: '0' + description: 'Maximum number of schema lease errors' + - macro: '{$TIDB.SCHEMA_LOAD_ERRORS.MAX.WARN}' + value: '1' + description: 'Maximum number of load schema errors' + - macro: '{$TIDB.TIME_JUMP_BACK.MAX.WARN}' + value: '1' + description: 'Maximum number of times that the operating system rewinds every second' + - macro: '{$TIDB.URL}' + value: localhost + description: 'TiDB server URL' + dashboards: + - uuid: 7e70b8a9af42441397241465dbf5e32c + name: 'TiDB: Overview' + pages: + - name: Main + widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TiDB by HTTP' + name: 'TiDB: Memory usage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TiDB by HTTP' + name: 'TiDB: File descriptors' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TiDB by HTTP' + name: 'TiDB: Server query rate' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 047f0303f1bc424a959f5d0ceaab77c7 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: cfd6ba0dbf294b9e9ab6afc7d44be7b3 + expression: 'min(/TiDB by HTTP/tidb.process_open_fds,5m)/last(/TiDB by HTTP/tidb.process_max_fds)*100>{$TIDB.OPEN.FDS.MAX.WARN}' + name: 'TiDB: Current number of open files is too high' + event_name: 'TiDB: Current number of open files is too high (over {$TIDB.OPEN.FDS.MAX.WARN}% for 5m)' + priority: WARNING + description: 'Heavy file descriptor usage (i.e., near the process''s file descriptor limit) indicates a potential file descriptor exhaustion issue.' + tags: + - tag: scope + value: capacity + graphs: + - uuid: ee25671d0b5446348341be56967a74b2 + name: 'TiDB: File descriptors' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'TiDB by HTTP' + key: tidb.process_open_fds + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'TiDB by HTTP' + key: tidb.process_max_fds + - uuid: fb29a5ea3a62416f8eeee804a6f83c46 + name: 'TiDB: Memory usage' + graph_items: + - color: 199C0D + item: + host: 'TiDB by HTTP' + key: tidb.heap_bytes + - sortorder: '1' + color: F63100 + item: + host: 'TiDB by HTTP' + key: tidb.rss_bytes + - uuid: 5ab746ad86ef4710948263d4d6157742 + name: 'TiDB: Server query rate' + graph_items: + - color: 199C0D + item: + host: 'TiDB by HTTP' + key: tidb.server_query.rate + - sortorder: '1' + color: F63100 + item: + host: 'TiDB by HTTP' + key: tidb.server_query.ok.rate + - sortorder: '2' + color: 00611C + item: + host: 'TiDB by HTTP' + key: tidb.server_query.error.rate diff --git a/Travis_CI_by_HTTP.yaml b/Travis_CI_by_HTTP.yaml new file mode 100644 index 0000000..3d60fab --- /dev/null +++ b/Travis_CI_by_HTTP.yaml @@ -0,0 +1,546 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 8cdbe00a2a3046ee962d28d32567968a + template: 'Travis CI by HTTP' + name: 'Travis CI by HTTP' + description: | + Template for monitoring Travis CI https://travis-ci.com + You must set {$TRAVIS.API.TOKEN} and {$TRAVIS.API.URL} macros. + {$TRAVIS.API.TOKEN} is a Travis API authentication token located in User -> Settings -> API authentication. + {$TRAVIS.API.URL} could be in 2 different variations: + - for a private project : api.travis-ci.com + - for an enterprise projects: api.example.com (where you replace example.com with the domain Travis CI is running on) + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: dbdaf09ff13742b988bd0356923f625f + name: 'Builds duration' + type: DEPENDENT + key: travis.builds.duration + delay: '0' + units: s + description: 'Sum of all builds durations in all repos.' + preprocessing: + - type: JSONPATH + parameters: + - $..duration.sum() + error_handler: DISCARD_VALUE + master_item: + key: travis.get_builds + tags: + - tag: component + value: builds + - uuid: e0d31827266f4d1599cb687d15d42747 + name: Builds + type: DEPENDENT + key: travis.builds.total + delay: '0' + description: 'Total count of builds in all repos.' + preprocessing: + - type: JSONPATH + parameters: + - $.builds.length() + master_item: + key: travis.get_builds + tags: + - tag: component + value: builds + - uuid: 08466cd6902441299856cba3ce601510 + name: 'Get builds' + type: HTTP_AGENT + key: travis.get_builds + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting builds using Travis API.' + url: 'https://{$TRAVIS.API.URL}/builds' + query_fields: + - name: limit + value: '0' + headers: + - name: Travis-API-Version + value: '3' + - name: Authorization + value: 'token {$TRAVIS.API.TOKEN}' + tags: + - tag: component + value: builds + - tag: component + value: raw + - uuid: 997172d503c54798800d01c613aca92a + name: 'Get health' + type: HTTP_AGENT + key: travis.get_health + value_type: TEXT + trends: '0' + description: 'Getting home JSON using Travis API.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: JAVASCRIPT + parameters: + - 'return JSON.parse(value).config ? 1 : 0' + url: 'https://{$TRAVIS.API.URL}/' + headers: + - name: Travis-API-Version + value: '3' + - name: Authorization + value: 'token {$TRAVIS.API.TOKEN}' + tags: + - tag: component + value: health + triggers: + - uuid: 6baed695cac34d349a42ab6e8295910d + expression: 'nodata(/Travis CI by HTTP/travis.get_health,30m)=1' + name: 'Travis CI: Failed to fetch home page' + event_name: 'Travis CI: Failed to fetch home 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' + tags: + - tag: scope + value: availability + - uuid: e8398acab5a74505a85ade5d3ca5f590 + expression: 'last(/Travis CI by HTTP/travis.get_health)=0' + name: 'Travis CI: Service is unavailable' + priority: HIGH + description: 'Travis API is unavailable. Please check if the correct macros are set.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 5a01061d1f3d48f8ad0beb4d32e2168d + name: 'Get jobs' + type: HTTP_AGENT + key: travis.get_jobs + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting jobs using Travis API.' + url: 'https://{$TRAVIS.API.URL}/jobs' + headers: + - name: Travis-API-Version + value: '3' + - name: Authorization + value: 'token {$TRAVIS.API.TOKEN}' + tags: + - tag: component + value: jobs + - tag: component + value: raw + - uuid: 5212bfa6de6c4a17b98a80012f617eea + name: 'Get repos' + type: HTTP_AGENT + key: travis.get_repos + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting repos using Travis API.' + url: 'https://{$TRAVIS.API.URL}/repos' + query_fields: + - name: limit + value: '0' + headers: + - name: Travis-API-Version + value: '3' + - name: Authorization + value: 'token {$TRAVIS.API.TOKEN}' + tags: + - tag: component + value: raw + - tag: component + value: repos + - uuid: 81504a37965b402bad9b71507c4a8926 + name: 'Jobs active' + type: DEPENDENT + key: travis.jobs.active + delay: '0' + description: 'Active jobs in all repos.' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.state == "started")].length()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: travis.get_jobs + tags: + - tag: component + value: jobs + - uuid: a1045b05877941bfba97e086ef33234c + name: 'Jobs in queue' + type: DEPENDENT + key: travis.jobs.queue + delay: '0' + description: 'Jobs in queue in all repos.' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs[?(@.state == "received")].length()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: travis.get_jobs + tags: + - tag: component + value: jobs + - uuid: 421a1a1a886c46188047914d5149c075 + name: 'Jobs passed' + type: DEPENDENT + key: travis.jobs.total + delay: '0' + description: 'Total count of passed jobs in all repos.' + preprocessing: + - type: JSONPATH + parameters: + - $.jobs.length() + master_item: + key: travis.get_jobs + tags: + - tag: component + value: jobs + discovery_rules: + - uuid: 0bd67f5bd26f4dbbbda7e2d36efac649 + name: 'Repos metrics discovery' + type: DEPENDENT + key: travis.repos.discovery + delay: '0' + description: 'Metrics for Repos statistics.' + item_prototypes: + - uuid: 3ff94b65151e4378b3ef46d049aff1f7 + name: 'Repo [{#SLUG}]: Builds failed' + type: DEPENDENT + key: 'travis.repo.builds.failed[{#SLUG}]' + delay: '0' + description: 'Count of all failed builds in {#SLUG} repo.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.parse(value).builds.filter(function (e){return e.state !== "passed" && e.state !== "started" }).length' + master_item: + key: 'travis.repo.get_builds[{#SLUG}]' + tags: + - tag: component + value: builds + - tag: repo + value: '{#SLUG}' + - uuid: 0d2f2c7b23284836ad52b4ddc98dcfc8 + name: 'Repo [{#SLUG}]: Builds passed, %' + type: CALCULATED + key: 'travis.repo.builds.passed.pct[{#SLUG}]' + units: '%' + params: 'last(//travis.repo.builds.passed[{#SLUG}])/last(//travis.repo.builds.total[{#SLUG}])*100' + description: 'Percent of passed builds in {#SLUG} repo.' + tags: + - tag: component + value: builds + - tag: repo + value: '{#SLUG}' + trigger_prototypes: + - uuid: 8279ce31c4fe4cb7a03baa8a0149a557 + expression: 'last(/Travis CI by HTTP/travis.repo.builds.passed.pct[{#SLUG}])<{$TRAVIS.BUILDS.SUCCESS.PERCENT}' + name: 'Travis CI: Repo [{#SLUG}]: Percent of successful builds' + event_name: 'Travis CI: Repo [{#SLUG}]: Percent of successful builds are < {$TRAVIS.BUILDS.SUCCESS.PERCENT}%' + priority: WARNING + description: 'Low successful builds rate.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 1b2143c3e6934e0fae5589b4bb0063b5 + name: 'Repo [{#SLUG}]: Builds passed' + type: DEPENDENT + key: 'travis.repo.builds.passed[{#SLUG}]' + delay: '0' + description: 'Count of all passed builds in {#SLUG} repo.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.parse(value).builds.filter(function (e){return e.state == "passed"}).length' + master_item: + key: 'travis.repo.get_builds[{#SLUG}]' + tags: + - tag: component + value: builds + - tag: repo + value: '{#SLUG}' + - uuid: d67070c3c7b44c5b8849a315f5f97c8b + name: 'Repo [{#SLUG}]: Builds total' + type: DEPENDENT + key: 'travis.repo.builds.total[{#SLUG}]' + delay: '0' + description: 'Count of total builds in {#SLUG} repo.' + preprocessing: + - type: JSONPATH + parameters: + - $.builds.length() + master_item: + key: 'travis.repo.get_builds[{#SLUG}]' + tags: + - tag: component + value: builds + - tag: repo + value: '{#SLUG}' + - uuid: 5fa0c9393f224efa8d6b42c3a0f12319 + name: 'Repo [{#SLUG}]: Cache files' + type: DEPENDENT + key: 'travis.repo.caches.files[{#SLUG}]' + delay: '0' + description: 'Count of cache files in {#SLUG} repo.' + preprocessing: + - type: JSONPATH + parameters: + - $.caches.length() + master_item: + key: 'travis.repo.get_caches[{#SLUG}]' + tags: + - tag: component + value: caches + - tag: repo + value: '{#SLUG}' + - uuid: 6fe5a61db38e4a2da25314a18cf10a8e + name: 'Repo [{#SLUG}]: Cache size' + type: DEPENDENT + key: 'travis.repo.caches.size[{#SLUG}]' + delay: '0' + units: B + description: 'Total size of cache files in {#SLUG} repo.' + preprocessing: + - type: JSONPATH + parameters: + - $.caches..size.sum() + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'travis.repo.get_caches[{#SLUG}]' + tags: + - tag: component + value: caches + - tag: repo + value: '{#SLUG}' + - uuid: 2705ff3b0b51434ba0469362aa91c67d + name: 'Repo [{#SLUG}]: Description' + type: DEPENDENT + key: 'travis.repo.description[{#SLUG}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Description of Travis repo (git project description).' + preprocessing: + - type: JSONPATH + parameters: + - '$.repositories[?(@.slug == "{#SLUG}")].description.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: travis.get_repos + tags: + - tag: component + value: repo + - tag: repo + value: '{#SLUG}' + - uuid: ed33292bc0924b9c85cb54443d5aa999 + name: 'Repo [{#SLUG}]: Get builds' + type: HTTP_AGENT + key: 'travis.repo.get_builds[{#SLUG}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting builds of {#SLUG} using Travis API.' + url: 'https://{$TRAVIS.API.URL}/repo/{#ID}/builds' + query_fields: + - name: limit + value: '50' + headers: + - name: Travis-API-Version + value: '3' + - name: Authorization + value: 'token {$TRAVIS.API.TOKEN}' + tags: + - tag: component + value: builds + - tag: component + value: raw + - tag: repo + value: '{#SLUG}' + - uuid: 2e0c047997624373a50001b8399b3d7c + name: 'Repo [{#SLUG}]: Get caches' + type: HTTP_AGENT + key: 'travis.repo.get_caches[{#SLUG}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Getting caches of {#SLUG} using Travis API.' + url: 'https://{$TRAVIS.API.URL}/repo/{#ID}/caches' + query_fields: + - name: limit + value: '50' + headers: + - name: Travis-API-Version + value: '3' + - name: Authorization + value: 'token {$TRAVIS.API.TOKEN}' + tags: + - tag: component + value: caches + - tag: component + value: raw + - tag: repo + value: '{#SLUG}' + - uuid: 7391c532acf649259be018cbf499b565 + name: 'Repo [{#SLUG}]: Last build duration' + type: DEPENDENT + key: 'travis.repo.last_build.duration[{#SLUG}]' + delay: '0' + units: s + description: 'Last build duration in {#SLUG} repo.' + preprocessing: + - type: JSONPATH + parameters: + - '$.builds[0].duration' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'travis.repo.get_builds[{#SLUG}]' + tags: + - tag: component + value: last_build + - tag: repo + value: '{#SLUG}' + - uuid: fbcb7b4001b949889fc85f2499684aae + name: 'Repo [{#SLUG}]: Last build id' + type: DEPENDENT + key: 'travis.repo.last_build.id[{#SLUG}]' + delay: '0' + description: 'Last build id in {#SLUG} repo.' + preprocessing: + - type: JSONPATH + parameters: + - '$.builds[0].id' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'travis.repo.get_builds[{#SLUG}]' + tags: + - tag: component + value: last_build + - tag: repo + value: '{#SLUG}' + - uuid: d9dbe9ffeafa46569fce1ca5ba4897cf + name: 'Repo [{#SLUG}]: Last build number' + type: DEPENDENT + key: 'travis.repo.last_build.number[{#SLUG}]' + delay: '0' + description: 'Last build number in {#SLUG} repo.' + preprocessing: + - type: JSONPATH + parameters: + - '$.builds[0].number' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'travis.repo.get_builds[{#SLUG}]' + tags: + - tag: component + value: last_build + - tag: repo + value: '{#SLUG}' + - uuid: a081582913ca40ee93a6e5fb326c5c64 + name: 'Repo [{#SLUG}]: Last build state' + type: DEPENDENT + key: 'travis.repo.last_build.state[{#SLUG}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Last build state in {#SLUG} repo.' + preprocessing: + - type: JSONPATH + parameters: + - '$.builds[0].state' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'travis.repo.get_builds[{#SLUG}]' + tags: + - tag: component + value: last_build + - tag: repo + value: '{#SLUG}' + trigger_prototypes: + - uuid: 9b26f06ae3854aad8d2c0f4623bb1533 + expression: 'find(/Travis CI by HTTP/travis.repo.last_build.state[{#SLUG}],,"like","errored")=1' + name: 'Travis CI: Repo [{#SLUG}]: Last build status is ''errored''' + priority: WARNING + description: 'Last build status is errored.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: b13d986ae110458a80d74f32bb267ed7 + name: 'Repo [{#SLUG}]: Builds' + graph_items: + - color: 199C0D + item: + host: 'Travis CI by HTTP' + key: 'travis.repo.builds.failed[{#SLUG}]' + - sortorder: '1' + color: F63100 + item: + host: 'Travis CI by HTTP' + key: 'travis.repo.builds.passed[{#SLUG}]' + - sortorder: '2' + color: 00611C + item: + host: 'Travis CI by HTTP' + key: 'travis.repo.builds.total[{#SLUG}]' + master_item: + key: travis.get_repos + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + + JSON.parse(value).repositories.forEach(function (e) { + result.push({ '{#ID}': e.id, '{#SLUG}': e.slug }); + }); + + return JSON.stringify(result) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: service + - tag: target + value: travis + macros: + - macro: '{$TRAVIS.API.TOKEN}' + description: 'Travis API Token' + - macro: '{$TRAVIS.API.URL}' + value: api.travis-ci.com + description: 'Travis API URL' + - macro: '{$TRAVIS.BUILDS.SUCCESS.PERCENT}' + value: '80' + description: 'Percent of successful builds in the repo (for trigger expression)' diff --git a/TrueNAS_CORE_by_SNMP.yaml b/TrueNAS_CORE_by_SNMP.yaml new file mode 100644 index 0000000..b42e7b6 --- /dev/null +++ b/TrueNAS_CORE_by_SNMP.yaml @@ -0,0 +1,3777 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 28e31ef9402d4c1ba2fbc730a288d2d8 + template: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE by SNMP' + description: | + Template for monitoring TrueNAS CORE by SNMP. + + Setup: + 1. Import the template into Zabbix. + 2. Enable SNMP daemon at Services in TrueNAS CORE web interface: https://www.truenas.com/docs/core/uireference/services/snmpscreen/ + 3. Link the template to the host. + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + UCD-DISKIO-MIB + UCD-SNMP-MIB + FREENAS-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: bbebf1aafe8149a7825ffb976d20fd5c + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2cf51ae664644a7f93950c3366d6f6b9 + expression: 'max(/TrueNAS CORE by SNMP/icmpping,#3)=0' + name: 'TrueNAS CORE: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 43b3e4ddfeb34a1abba953cd7503ce2c + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8593009de6804a56b3523f8ec53b784e + expression: 'min(/TrueNAS CORE by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/TrueNAS CORE by SNMP/icmppingloss,5m)<100' + name: 'TrueNAS CORE: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'TrueNAS CORE: Unavailable by ICMP ping' + expression: 'max(/TrueNAS CORE by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 006c38011abf42f69ef5d9238a356faf + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: d952f59905fb405dbdd807df08ae9a92 + expression: 'avg(/TrueNAS CORE by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'TrueNAS CORE: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'TrueNAS CORE: High ICMP ping loss' + expression: 'min(/TrueNAS CORE by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/TrueNAS CORE by SNMP/icmppingloss,5m)<100' + - name: 'TrueNAS CORE: Unavailable by ICMP ping' + expression: 'max(/TrueNAS CORE by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 4324124b621348e6bf51b808e33089dd + name: 'TrueNAS CORE: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: 12720ac373444e33961d97f9903eac0e + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 0d1336b92a9347d58fab43e008ecc11b + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: b41b8db2212848db83a6a0d9369fecdd + name: 'Interrupts per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.11.59.0]' + key: system.cpu.intr + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + Number of interrupts processed. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: 4283476959894b78956973be95d33e72 + name: 'Load average (1m avg)' + type: DEPENDENT + key: system.cpu.load.avg1 + delay: '0' + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + The 1 minute load averages. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.laName == ''Load-1'')].laLoad.first()' + master_item: + key: system.cpu.load.walk + tags: + - tag: component + value: cpu + - uuid: a7885b68d6644a2ab5875e742a7bc06f + name: 'Load average (5m avg)' + type: DEPENDENT + key: system.cpu.load.avg5 + delay: '0' + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + The 5 minutes load averages. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.laName == ''Load-5'')].laLoad.first()' + master_item: + key: system.cpu.load.walk + tags: + - tag: component + value: cpu + - uuid: 5263b1258bd24219a3f1a7d11012b316 + name: 'Load average (15m avg)' + type: DEPENDENT + key: system.cpu.load.avg15 + delay: '0' + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + The 15 minutes load averages. + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.laName == ''Load-15'')].laLoad.first()' + master_item: + key: system.cpu.load.walk + tags: + - tag: component + value: cpu + - uuid: a34ec7a56e5c4b7eb9ecc1bb029735a2 + name: 'SNMP walk CPU load averages' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2021.10.1.2,1.3.6.1.4.1.2021.10.1.3]' + key: system.cpu.load.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: UCD-SNMP-MIB + SNMP walk through laTable. The collected data used in dependent CPU load average items. + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - laName + - 1.3.6.1.4.1.2021.10.1.2 + - '0' + - laLoad + - 1.3.6.1.4.1.2021.10.1.3 + - '0' + tags: + - tag: component + value: cpu + - tag: component + value: raw + - uuid: 94366f840edc4686a230682d623f1f41 + name: 'Number of CPUs' + type: DEPENDENT + key: system.cpu.num + delay: '0' + description: | + MIB: HOST-RESOURCES-MIB + Count the number of CPU cores by counting number of cores discovered in hrProcessorTable using LLD. + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#SNMPVALUE}' + - 1.3.6.1.2.1.25.3.3.1.1 + - '0' + - type: JAVASCRIPT + parameters: + - 'return JSON.parse(value).length;' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: c8740f4489c04eedb072869e27f68a60 + name: 'Context switches per second' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.11.60.0]' + key: system.cpu.switches + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + Number of context switches. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: cpu + - uuid: e6d239830cf743b3adbaad91da793fd6 + name: 'SNMP walk system CPUs' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.4.1.2021.11.11.0,1.3.6.1.4.1.2021.11.50.0,1.3.6.1.4.1.2021.11.51.0,1.3.6.1.4.1.2021.11.52.0,1.3.6.1.4.1.2021.11.54.0,1.3.6.1.4.1.2021.11.56.0]' + key: system.cpu.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Discovering system CPUs. + tags: + - tag: component + value: raw + - uuid: d6ac8d84482244b88e4d2dbc676ea3d4 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: dc3e8cb20837479f8aad2d1948ac8875 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 75c8390f14364962bd92df0c087e765a + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 46b98d1ef62d49a0bb22687dc119acf0 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 4c3b96b22fa345c3a42fe17ed877b527 + expression: 'last(/TrueNAS CORE by SNMP/system.name,#1)<>last(/TrueNAS CORE by SNMP/system.name,#2) and length(last(/TrueNAS CORE by SNMP/system.name))>0' + name: 'TrueNAS CORE: System name has changed' + event_name: 'TrueNAS CORE: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: f21ada8be3c94f9d8e4c75f411f8b85a + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 79abfa4a6842499da1f03805de93c49f + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: e61f086a8a3942569e6c7f67b24e8f86 + name: 'Free swap space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.4.0]' + key: system.swap.free + units: B + description: | + MIB: UCD-SNMP-MIB + The amount of swap space currently unused or available. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 2a075af85eed44c8adba2cb7bc657b40 + name: 'Free swap space in %' + type: CALCULATED + key: system.swap.pfree + value_type: FLOAT + units: '%' + params: 'last(//system.swap.free)/last(//system.swap.total)*100' + description: 'The free space of the swap volume/file expressed in %.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '100' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: b0fc3cd77ed348bb955fc98d8636ab76 + name: 'Total swap space' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.3.0]' + key: system.swap.total + units: B + description: | + MIB: UCD-SNMP-MIB + The total amount of swap space configured for this host. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 8111f8ada49c4559b4773cd32ca3226d + name: 'SNMP walk disk temperatures' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.50536.3.1.2,1.3.6.1.4.1.50536.3.1.3]' + key: truenas.disk.temp.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: FREENAS-MIB + SNMP walk through hddTempTable. The collected data used in disk temperature LLD and dependent item prototypes. + tags: + - tag: component + value: raw + - tag: component + value: storage + - uuid: 2eaaabc61df64756a35aec95650abf7c + name: 'ARC target size of cache' + type: DEPENDENT + key: truenas.zfs.arc.c + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + ARC target size of cache in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.4.6.0 + - '0' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: a4ae886ac205413c85df7c527a9aadb3 + name: 'ARC data size' + type: DEPENDENT + key: truenas.zfs.arc.data + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + ARC data size used in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.4.3.0 + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: e3c72ceecec2478685e4bd5983e48c12 + name: 'ARC cache hit ratio' + type: DEPENDENT + key: truenas.zfs.arc.hit.ratio + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FREENAS-MIB + ARC cache hit ration percentage. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.4.9.0 + - '0' + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: f4c6c12561944975999b59c30744b375 + name: 'ARC hits' + type: DEPENDENT + key: truenas.zfs.arc.hits + delay: '0' + value_type: FLOAT + description: | + MIB: FREENAS-MIB + Total amount of cache hits in the ARC per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.4.4.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: db3cee6cf685446ca880e3ba0c7a51f1 + name: 'ARC metadata size' + type: DEPENDENT + key: truenas.zfs.arc.meta + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + ARC metadata size used in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.4.2.0 + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: d39e5b7524054b5c8121a5b67506fc52 + name: 'ARC cache miss ratio' + type: DEPENDENT + key: truenas.zfs.arc.miss.ratio + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: FREENAS-MIB + ARC cache miss ration percentage. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.4.10.0 + - '0' + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: 51b0901f89ca49f18b5af0c6325190ad + name: 'ARC misses' + type: DEPENDENT + key: truenas.zfs.arc.misses + delay: '0' + value_type: FLOAT + description: | + MIB: FREENAS-MIB + Total amount of cache misses in the ARC per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.4.5.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: 5b00055c79174a65af5168b47fb4dbd1 + name: 'ARC target size of MRU' + type: DEPENDENT + key: truenas.zfs.arc.p + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + ARC target size of MRU in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.4.7.0 + - '0' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: a677b4991bc94e5b929bcf9f6a0c08ee + name: 'ARC size' + type: DEPENDENT + key: truenas.zfs.arc.size + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + ARC size in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.4.1.0 + - '0' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: 629537d839cb44d68ed3f1693abdb2ef + name: 'SNMP walk ARC L2ARC' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.50536.1.4,1.3.6.1.4.1.50536.1.5]' + key: truenas.zfs.arc_l2arc.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: FREENAS-MIB + SNMP walk through arc and l2arc. The collected data used in dependent ARC and L2ARC items. + tags: + - tag: component + value: memory + - tag: component + value: raw + - tag: component + value: zfs + - uuid: 97ca4111c54d43baaf779b293f392037 + name: 'SNMP walk ZFS datasets' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.50536.1.2.1.1.2,1.3.6.1.4.1.50536.1.2.1.1.3,1.3.6.1.4.1.50536.1.2.1.1.4,1.3.6.1.4.1.50536.1.2.1.1.5,1.3.6.1.4.1.50536.1.2.1.1.6]' + key: truenas.zfs.dataset.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: FREENAS-MIB + SNMP walk through datasetTable. The collected data used in ZFS dataset LLD and dependent item prototypes. + tags: + - tag: component + value: raw + - tag: component + value: storage + - uuid: 2b2ca373849045969f6dbcd411a7e688 + name: 'L2ARC hits' + type: DEPENDENT + key: truenas.zfs.l2arc.hits + delay: '0' + value_type: FLOAT + description: | + MIB: FREENAS-MIB + Hits to the L2 cache per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.5.1.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: ff6827a36cc9451f801dcf5a433378de + name: 'L2ARC misses' + type: DEPENDENT + key: truenas.zfs.l2arc.misses + delay: '0' + value_type: FLOAT + description: | + MIB: FREENAS-MIB + Misses to the L2 cache per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.5.2.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: d3408357df26465794eeb6d6706ee05a + name: 'L2ARC read rate' + type: DEPENDENT + key: truenas.zfs.l2arc.read + delay: '0' + value_type: FLOAT + units: Bps + description: | + MIB: FREENAS-MIB + Read rate from L2 cache in bytes per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.5.3.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: ab95d192720b4f5fa897fed6f1aa40e2 + name: 'L2ARC size' + type: DEPENDENT + key: truenas.zfs.l2arc.size + delay: '0' + value_type: FLOAT + units: B + description: | + MIB: FREENAS-MIB + L2ARC size in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.5.5.0 + - '0' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: 1e04b61c5b0242b095c41495f9f28b57 + name: 'L2ARC write rate' + type: DEPENDENT + key: truenas.zfs.l2arc.write + delay: '0' + value_type: FLOAT + units: Bps + description: | + MIB: FREENAS-MIB + Write rate from L2 cache in bytes per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.5.4.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: truenas.zfs.arc_l2arc.walk + tags: + - tag: component + value: memory + - tag: component + value: zfs + - uuid: 73abc73aa39d4dc0a372c274fbea3fa1 + name: 'SNMP walk ZFS pools' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.50536.1.1.1.1.2,1.3.6.1.4.1.50536.1.1.1.1.3,1.3.6.1.4.1.50536.1.1.1.1.4,1.3.6.1.4.1.50536.1.1.1.1.5,1.3.6.1.4.1.50536.1.1.1.1.6,1.3.6.1.4.1.50536.1.1.1.1.7,1.3.6.1.4.1.50536.1.1.1.1.8,1.3.6.1.4.1.50536.1.1.1.1.9,1.3.6.1.4.1.50536.1.1.1.1.10,1.3.6.1.4.1.50536.1.1.1.1.11]' + key: truenas.zfs.pools.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: FREENAS-MIB + SNMP walk through zpoolTable. The collected data used in ZFS pool LLD and dependent item prototypes. + tags: + - tag: component + value: raw + - tag: component + value: storage + - uuid: a504d960680346ad863c5f2117301200 + name: 'ZIL operations 1 second' + type: DEPENDENT + key: truenas.zfs.zil.ops1 + delay: '0' + value_type: FLOAT + description: | + MIB: FREENAS-MIB + The ops column parsed from the command zilstat 1 1. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.6.1.0 + - '0' + master_item: + key: truenas.zfs.zil.walk + tags: + - tag: component + value: log + - tag: component + value: zfs + - uuid: d82112c728704383b873289f0b8bbce6 + name: 'ZIL operations 5 seconds' + type: DEPENDENT + key: truenas.zfs.zil.ops5 + delay: '0' + value_type: FLOAT + description: | + MIB: FREENAS-MIB + The ops column parsed from the command zilstat 5 1. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.6.2.0 + - '0' + master_item: + key: truenas.zfs.zil.walk + tags: + - tag: component + value: log + - tag: component + value: zfs + - uuid: 598dda71f21a410a82ba5b96e1564166 + name: 'ZIL operations 10 seconds' + type: DEPENDENT + key: truenas.zfs.zil.ops10 + delay: '0' + value_type: FLOAT + description: | + MIB: FREENAS-MIB + The ops column parsed from the command zilstat 10 1. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.50536.1.6.3.0 + - '0' + master_item: + key: truenas.zfs.zil.walk + tags: + - tag: component + value: log + - tag: component + value: zfs + - uuid: ffa31756524a4c679f8a059002b43173 + name: 'SNMP walk ZIL' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.50536.1.6]' + key: truenas.zfs.zil.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: FREENAS-MIB + SNMP walk through zil. The collected data used in dependent ZIL items. + tags: + - tag: component + value: log + - tag: component + value: raw + - tag: component + value: zfs + - uuid: b695ddba4fd14b8f85e0c5a9f567e32b + name: 'SNMP walk ZFS volumes' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.50536.1.3.1.1.2,1.3.6.1.4.1.50536.1.3.1.1.3,1.3.6.1.4.1.50536.1.3.1.1.4,1.3.6.1.4.1.50536.1.3.1.1.5,1.3.6.1.4.1.50536.1.3.1.1.6]' + key: truenas.zfs.zvols.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: FREENAS-MIB + SNMP walk through zvolTable. The collected data used in ZFS volume LLD and dependent item prototypes. + tags: + - tag: component + value: raw + - tag: component + value: storage + - uuid: 845cd344b76f4836b472fca60e5426d1 + name: 'SNMP walk block devices' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.4.1.2021.13.15.1.1.2,1.3.6.1.4.1.2021.13.15.1.1.5,1.3.6.1.4.1.2021.13.15.1.1.6,1.3.6.1.4.1.2021.13.15.1.1.9]' + key: vfs.dev.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: UCD-DISKIO-MIB + SNMP walk through diskIOTable. The collected data used in filesystem LLD and dependent item prototypes. + tags: + - tag: component + value: raw + - tag: component + value: storage + - uuid: 43901b6beb7f4f559464775863d19976 + name: 'Available memory' + type: CALCULATED + key: vm.memory.available + units: B + params: last(//vm.memory.free)+last(//vm.memory.buffers)+last(//vm.memory.cached) + description: 'Please note that memory utilization is a rough estimate, since memory available is calculated as free+buffers+cached, which is not 100% accurate, but the best we can get using SNMP.' + tags: + - tag: component + value: memory + - uuid: 3b6007f808e04eefafe236737773ce7f + name: 'Memory (buffers)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.14.0]' + key: vm.memory.buffers + units: B + description: | + MIB: UCD-SNMP-MIB + The total amount of real or virtual memory currently allocated for use as memory buffers. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: ab4c02a4c1fc4ef69a31e9b83a1a9263 + name: 'Memory (cached)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.15.0]' + key: vm.memory.cached + units: B + description: | + MIB: UCD-SNMP-MIB + The total amount of real or virtual memory currently allocated for use as cached memory. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: d55491912c814481b0931e836838e9b0 + name: 'Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.6.0]' + key: vm.memory.free + units: B + description: | + MIB: UCD-SNMP-MIB + The amount of real/physical memory currently unused or available. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: e3802f02a4364e6bb37fb7fe780c4137 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.5.0]' + key: vm.memory.total + units: B + description: | + MIB: UCD-SNMP-MIB + The total memory expressed in bytes. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: c70fad7e758e480fbae726a677a29ead + name: 'Memory utilization' + type: CALCULATED + key: vm.memory.util + value_type: FLOAT + units: '%' + params: '(last(//vm.memory.total)-(last(//vm.memory.free)+last(//vm.memory.buffers)+last(//vm.memory.cached)))/last(//vm.memory.total)*100' + description: 'Please note that memory utilization is a rough estimate, since memory available is calculated as free+buffers+cached, which is not 100% accurate, but the best we can get using SNMP.' + tags: + - tag: component + value: memory + triggers: + - uuid: 3ee054e3d944441d9fd174e13b6a59ee + expression: 'min(/TrueNAS CORE by SNMP/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + name: 'TrueNAS CORE: High memory utilization' + event_name: 'TrueNAS CORE: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + dependencies: + - name: 'TrueNAS CORE: Lack of available memory' + expression: 'min(/TrueNAS CORE by SNMP/vm.memory.available,5m)<{$MEMORY.AVAILABLE.MIN} and last(/TrueNAS CORE by SNMP/vm.memory.total)>0' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: fcbcc100655d478bbf868ffc2a0302d8 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4c5e21bdc561429e9ce4f6f105aae7f6 + expression: 'max(/TrueNAS CORE by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'TrueNAS CORE: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'TrueNAS CORE: Unavailable by ICMP ping' + expression: 'max(/TrueNAS CORE by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: cc40c0d4ea184b12bf15056f103a4654 + name: 'CPU discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + description: 'This discovery will create set of per core CPU metrics from UCD-SNMP-MIB, using {#CPU.COUNT} in preprocessing. That''s the only reason why LLD is used.' + item_prototypes: + - uuid: 03eaea043f2b4aee9ccc562ae5390656 + name: 'CPU idle time' + type: DEPENDENT + key: 'system.cpu.idle[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + The time the CPU has spent doing nothing. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.11.0 + - '0' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: 378d399d09bd4197b20f575f023a9423 + name: 'CPU interrupt time' + type: DEPENDENT + key: 'system.cpu.interrupt[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + The amount of time the CPU has been servicing hardware interrupts. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.56.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: bd17c78973cf482a8916645847a9814f + name: 'CPU iowait time' + type: DEPENDENT + key: 'system.cpu.iowait[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + The amount of time the CPU has been waiting for I/O to complete. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.54.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: e25d8fe2e3b24fff86fe2d91e9b4f16e + name: 'CPU nice time' + type: DEPENDENT + key: 'system.cpu.nice[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + The time the CPU has spent running users' processes that have been niced. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.51.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: 6782830d2a25423fb0db137d66b2f2dd + name: 'CPU system time' + type: DEPENDENT + key: 'system.cpu.system[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + The time the CPU has spent running the kernel and its processes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.52.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: d38eaa9cf17a4778b0b6dfea897e3e6e + name: 'CPU user time' + type: DEPENDENT + key: 'system.cpu.user[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + The time the CPU has spent running users' processes that are not niced. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - 1.3.6.1.4.1.2021.11.50.0 + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: JAVASCRIPT + parameters: + - 'return value/{#CPU.COUNT}' + master_item: + key: system.cpu.walk + tags: + - tag: component + value: cpu + - uuid: 40f51efcbf47483f84c843c00bd1e034 + name: 'CPU utilization' + type: DEPENDENT + key: 'system.cpu.util[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The CPU utilization expressed in %.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100 - value)' + master_item: + key: 'system.cpu.idle[{#SNMPINDEX}]' + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 776551cd5322405e8d7c2b9c30b3a82b + expression: 'min(/TrueNAS CORE by SNMP/system.cpu.util[{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}' + name: 'TrueNAS CORE: High CPU utilization' + event_name: 'TrueNAS CORE: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + dependencies: + - name: 'TrueNAS CORE: Load average is too high' + expression: | + min(/TrueNAS CORE by SNMP/system.cpu.load.avg1,5m)/last(/TrueNAS CORE by SNMP/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN} + and last(/TrueNAS CORE by SNMP/system.cpu.load.avg5)>0 + and last(/TrueNAS CORE by SNMP/system.cpu.load.avg15)>0 + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: ef6bd369fc964266a4324f314d5dbdc2 + name: 'TrueNAS CORE: CPU usage{#SINGLETON}' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: 'system.cpu.system[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'TrueNAS CORE by SNMP' + key: 'system.cpu.user[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'TrueNAS CORE by SNMP' + key: 'system.cpu.nice[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'TrueNAS CORE by SNMP' + key: 'system.cpu.iowait[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'TrueNAS CORE by SNMP' + key: 'system.cpu.interrupt[{#SNMPINDEX}]' + - uuid: 11de3174f0e24212bedd1ef81429db9d + name: 'TrueNAS CORE: CPU utilization{#SINGLETON}' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: 'system.cpu.util[{#SNMPINDEX}]' + master_item: + key: system.cpu.num + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify([{"{#CPU.COUNT}": value, "{#SNMPINDEX}": 0, "{#SINGLETON}":""}])' + - uuid: a78d7feb497e46c9870344e569b01a60 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 3c3873ba5f8c473aa15efef467514d75 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 28d757aaa3834e539f909afc478d11a6 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 5aeeb92e3eeb4b7ca61b3f66b42ea270 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 871849c94071437d9a7a8249bb421597 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 74eac8a7eb5b4998b1fd05ec6ffebaf5 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 604e8060ed2742fab7722d4cd92aa14b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: bdb0895c1c1e4e3abe68e62989454a88 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: e4ce41cb19bc43058ee268a6c513abd4 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 7b3d635ed17b41fc9ac242f2e010be65 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'TrueNAS CORE: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ed51f6b579b040088312d9312378ed4a + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 486e833486c240379f6c7cb34172a402 + expression: | + change(/TrueNAS CORE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/TrueNAS CORE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/TrueNAS CORE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/TrueNAS CORE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/TrueNAS CORE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/TrueNAS CORE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/TrueNAS CORE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/TrueNAS CORE by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/TrueNAS CORE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/TrueNAS CORE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'TrueNAS CORE: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'TrueNAS CORE: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 3b6a73abbc7943c687d579acedb84393 + expression: | + (avg(/TrueNAS CORE by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/TrueNAS CORE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/TrueNAS CORE by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/TrueNAS CORE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/TrueNAS CORE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/TrueNAS CORE by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/TrueNAS CORE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/TrueNAS CORE by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/TrueNAS CORE by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'TrueNAS CORE: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'TrueNAS CORE: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'TrueNAS CORE: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 8ebbfbdd56984e4eb8f52f730aaca429 + expression: | + min(/TrueNAS CORE by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/TrueNAS CORE by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/TrueNAS CORE by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/TrueNAS CORE by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'TrueNAS CORE: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'TrueNAS CORE: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'TrueNAS CORE: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/TrueNAS CORE by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: dacff40c560e41529c48d9025104b2bb + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'TrueNAS CORE by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'TrueNAS CORE by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'TrueNAS CORE by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'TrueNAS CORE by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'TrueNAS CORE by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b3906a308e4c4631a96a4aa188d22c74 + name: 'Disks temperature discovery' + type: DEPENDENT + key: truenas.disk.temp.discovery + delay: '0' + description: 'Disks temperature discovery from FREENAS-MIB.' + item_prototypes: + - uuid: 7de2508fff174bd78b4ea0424a67fbf9 + name: 'Disk [{#DISK_NAME}]'': Temperature' + type: DEPENDENT + key: 'truenas.disk.temp[{#DISK_NAME}]' + delay: '0' + value_type: FLOAT + units: C + description: | + MIB: FREENAS-MIB + The temperature of this HDD in mC. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.3.1.3.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: truenas.disk.temp.walk + tags: + - tag: component + value: storage + - tag: disk + value: '{#DISK_NAME}' + trigger_prototypes: + - uuid: fda99a2e62064414af85c1137cbf0aef + expression: 'avg(/TrueNAS CORE by SNMP/truenas.disk.temp[{#DISK_NAME}],5m) > {$TEMPERATURE.MAX.CRIT:"{#DISK_NAME}"}' + name: 'TrueNAS CORE: Disk [{#DISK_NAME}]'': Average disk temperature is too high' + event_name: 'TrueNAS CORE: Disk [{#DISK_NAME}]'': Average disk temperature is too high (over {$TEMPERATURE.MAX.CRIT:"{#DISK_NAME}"}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk temperature is high.' + tags: + - tag: scope + value: notice + - uuid: 73194e7637a84dca976b218e9f4248c2 + expression: 'avg(/TrueNAS CORE by SNMP/truenas.disk.temp[{#DISK_NAME}],5m) > {$TEMPERATURE.MAX.WARN:"{#DISK_NAME}"}' + name: 'TrueNAS CORE: Disk [{#DISK_NAME}]'': Average disk temperature is too high' + event_name: 'TrueNAS CORE: Disk [{#DISK_NAME}]'': Average disk temperature is too high (over {$TEMPERATURE.MAX.WARN:"{#DISK_NAME}"}C for 5m)' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk temperature is high.' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 0334f7b454644a7cb25864a67dfbf158 + name: 'Disk [{#DISK_NAME}]'': Temperature' + graph_items: + - color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: 'truenas.disk.temp[{#DISK_NAME}]' + master_item: + key: truenas.disk.temp.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#DISK_NAME}' + - 1.3.6.1.4.1.50536.3.1.2 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: f3d22d302e274b12927afd9453bb787a + name: 'ZFS datasets discovery' + type: DEPENDENT + key: truenas.zfs.dataset.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DATASET_NAME}' + value: '{$DATASET.NAME.MATCHES}' + formulaid: A + - macro: '{#DATASET_NAME}' + value: '{$DATASET.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'ZFS datasets discovery from FREENAS-MIB.' + item_prototypes: + - uuid: 3c3eab95b8e74e608fe3b7abab98c76b + name: 'Dataset [{#DATASET_NAME}]: Available space' + type: DEPENDENT + key: 'truenas.dataset.avail[{#DATASET_NAME}]' + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + The available size of the dataset in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.2.1.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#DATASET_ALLOC_UNITS}' + master_item: + key: truenas.zfs.dataset.walk + tags: + - tag: component + value: storage + - tag: dataset + value: '{#DATASET_NAME}' + - uuid: fd6b3a3ebfb041b3a9026fb1b4370ec7 + name: 'Dataset [{#DATASET_NAME}]: Usage in %' + type: CALCULATED + key: 'truenas.dataset.pused[{#DATASET_NAME}]' + value_type: FLOAT + units: '%' + params: 'last(//truenas.dataset.used[{#DATASET_NAME}]) * 100 / last(//truenas.dataset.size.total[{#DATASET_NAME}])' + description: 'The used size of the dataset in %.' + tags: + - tag: component + value: storage + - tag: dataset + value: '{#DATASET_NAME}' + - uuid: 5ead1929891a4152b581f9adf35ce4ce + name: 'Dataset [{#DATASET_NAME}]: Total space' + type: DEPENDENT + key: 'truenas.dataset.size.total[{#DATASET_NAME}]' + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + The size of the dataset in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.2.1.1.4.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#DATASET_ALLOC_UNITS}' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: truenas.zfs.dataset.walk + tags: + - tag: component + value: storage + - tag: dataset + value: '{#DATASET_NAME}' + - uuid: 0e24fceacd64430abed01294ffd28104 + name: 'Dataset [{#DATASET_NAME}]: Used space' + type: DEPENDENT + key: 'truenas.dataset.used[{#DATASET_NAME}]' + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + The used size of the dataset in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.2.1.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#DATASET_ALLOC_UNITS}' + master_item: + key: truenas.zfs.dataset.walk + tags: + - tag: component + value: storage + - tag: dataset + value: '{#DATASET_NAME}' + trigger_prototypes: + - uuid: f759e058ef5345d884662f51db0c222e + expression: 'min(/TrueNAS CORE by SNMP/truenas.dataset.pused[{#DATASET_NAME}],5m) > {$DATASET.PUSED.MAX.WARN:"{#DATASET_NAME}"} and last(/TrueNAS CORE by SNMP/truenas.dataset.avail[{#DATASET_NAME}]) < {$DATASET.FREE.MIN.WARN:"{#POOLNAME}"}' + name: 'TrueNAS CORE: Dataset [{#DATASET_NAME}]: High space usage' + event_name: 'TrueNAS CORE: Dataset [{#DATASET_NAME}]: High space usage (more than {$DATASET.PUSED.MAX.WARN:"{#DATASET_NAME}"}% used)' + opdata: 'Current usage: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + Two conditions should match: + 1. The first condition - utilization of the space should be above `{$DATASET.PUSED.MAX.WARN:"{#DATASET_NAME}"}%.` + 2. The second condition - the dataset free space is less than `{$DATASET.FREE.MIN.WARN:"{#POOLNAME}"}`. + dependencies: + - name: 'TrueNAS CORE: Dataset [{#DATASET_NAME}]: Very high space usage' + expression: 'min(/TrueNAS CORE by SNMP/truenas.dataset.pused[{#DATASET_NAME}],5m) > {$DATASET.PUSED.MAX.CRIT:"{#DATASET_NAME}"} and last(/TrueNAS CORE by SNMP/truenas.dataset.avail[{#DATASET_NAME}]) < {$DATASET.FREE.MIN.CRIT:"{#POOLNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: f0e37c1f63aa4e3090c0dc8c4f0dfe9b + expression: 'min(/TrueNAS CORE by SNMP/truenas.dataset.pused[{#DATASET_NAME}],5m) > {$DATASET.PUSED.MAX.CRIT:"{#DATASET_NAME}"} and last(/TrueNAS CORE by SNMP/truenas.dataset.avail[{#DATASET_NAME}]) < {$DATASET.FREE.MIN.CRIT:"{#POOLNAME}"}' + name: 'TrueNAS CORE: Dataset [{#DATASET_NAME}]: Very high space usage' + event_name: 'TrueNAS CORE: Dataset [{#DATASET_NAME}]: Very high space usage (more than {$DATASET.PUSED.MAX.CRIT:"{#DATASET_NAME}"}% used)' + opdata: 'Current usage: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + Two conditions should match: + 1. The first condition - utilization of the space should be above `{$DATASET.PUSED.MAX.CRIT:"{#DATASET_NAME}"}%.` + 2. The second condition - the dataset free space is less than `{$DATASET.FREE.MIN.CRIT:"{#POOLNAME}"}`. + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 38637298316543bdb9f2c291285f8077 + name: 'Dataset [{#DATASET_NAME}]: Space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'TrueNAS CORE by SNMP' + key: 'truenas.dataset.size.total[{#DATASET_NAME}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'TrueNAS CORE by SNMP' + key: 'truenas.dataset.used[{#DATASET_NAME}]' + master_item: + key: truenas.zfs.dataset.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#DATASET_NAME}' + - 1.3.6.1.4.1.50536.1.2.1.1.2 + - '0' + - '{#DATASET_ALLOC_UNITS}' + - 1.3.6.1.4.1.50536.1.2.1.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: edde9729f6304a9b83d31a1c62356fdd + name: 'ZFS pools discovery' + type: DEPENDENT + key: truenas.zfs.pools.discovery + delay: '0' + description: 'ZFS pools discovery from FREENAS-MIB.' + item_prototypes: + - uuid: 2727c62d279f46b0938b1ef6c3b70fe5 + name: 'Pool [{#POOLNAME}]: Available space' + type: DEPENDENT + key: 'truenas.zpool.avail[{#POOLNAME}]' + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + The available size of the storage pool in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#POOL_ALLOC_UNITS}' + master_item: + key: truenas.zfs.pools.walk + tags: + - tag: component + value: storage + - tag: pool + value: '{#POOLNAME}' + - uuid: 382c3a50845f4d96a44dc22704768d41 + name: 'Pool [{#POOLNAME}]: Health' + type: DEPENDENT + key: 'truenas.zpool.health[{#POOLNAME}]' + delay: '0' + description: | + MIB: FREENAS-MIB + The current health of the containing pool, as reported by zpool status. + valuemap: + name: 'FREENAS-MIB::ZPoolHealthType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.1.1.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: truenas.zfs.pools.walk + tags: + - tag: component + value: health + - tag: component + value: storage + - tag: pool + value: '{#POOLNAME}' + trigger_prototypes: + - uuid: 676c2abdd102484a92db3501ccc2ca51 + expression: 'last(/TrueNAS CORE by SNMP/truenas.zpool.health[{#POOLNAME}]) <> 0' + name: 'TrueNAS CORE: Pool [{#POOLNAME}]: Status is not online' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check pool status.' + tags: + - tag: scope + value: availability + - uuid: 5f972063f958463ab132b8d478092bd8 + name: 'Pool [{#POOLNAME}]: Usage in %' + type: CALCULATED + key: 'truenas.zpool.pused[{#POOLNAME}]' + value_type: FLOAT + units: '%' + params: 'last(//truenas.zpool.used[{#POOLNAME}]) * 100 / last(//truenas.zpool.size.total[{#POOLNAME}])' + description: 'The used size of the storage pool in %.' + tags: + - tag: component + value: storage + - tag: pool + value: '{#POOLNAME}' + - uuid: b5766173631a47ee8c58e24f5c0523b5 + name: 'Pool [{#POOLNAME}]: Read rate' + type: DEPENDENT + key: 'truenas.zpool.read.bytes[{#POOLNAME}]' + delay: '0' + value_type: FLOAT + units: Bps + description: | + MIB: FREENAS-MIB + The bandwidth of all read operations (including metadata), expressed as units per second (averaged since system booted). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#POOL_ALLOC_UNITS}' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: truenas.zfs.pools.walk + tags: + - tag: component + value: storage + - tag: pool + value: '{#POOLNAME}' + - uuid: f32abc8617c6466d8a92219def967bd8 + name: 'Pool [{#POOLNAME}]: Read operations rate' + type: DEPENDENT + key: 'truenas.zpool.read.ops[{#POOLNAME}]' + delay: '0' + value_type: FLOAT + units: IOPS + description: | + MIB: FREENAS-MIB + The number of read I/O operations sent to the pool or device, including metadata requests (averaged since system booted). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.1.1.1.8.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: truenas.zfs.pools.walk + tags: + - tag: component + value: storage + - tag: pool + value: '{#POOLNAME}' + - uuid: 567422ecdcec49faac94540f64a05e3a + name: 'Pool [{#POOLNAME}]: Total space' + type: DEPENDENT + key: 'truenas.zpool.size.total[{#POOLNAME}]' + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + The size of the storage pool in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.1.1.1.4.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#POOL_ALLOC_UNITS}' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: truenas.zfs.pools.walk + tags: + - tag: component + value: storage + - tag: pool + value: '{#POOLNAME}' + - uuid: fe5cf78cdcdd4386982f5cd204d99283 + name: 'Pool [{#POOLNAME}]: Used space' + type: DEPENDENT + key: 'truenas.zpool.used[{#POOLNAME}]' + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + The used size of the storage pool in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.1.1.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#POOL_ALLOC_UNITS}' + master_item: + key: truenas.zfs.pools.walk + tags: + - tag: component + value: storage + - tag: pool + value: '{#POOLNAME}' + - uuid: d11e981ec16c4da0aee6842bdddfe2fd + name: 'Pool [{#POOLNAME}]: Write rate' + type: DEPENDENT + key: 'truenas.zpool.write.bytes[{#POOLNAME}]' + delay: '0' + value_type: FLOAT + units: Bps + description: | + MIB: FREENAS-MIB + The bandwidth of all write operations, expressed as units per second (averaged since system booted). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.1.1.1.11.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#POOL_ALLOC_UNITS}' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: truenas.zfs.pools.walk + tags: + - tag: component + value: storage + - tag: pool + value: '{#POOLNAME}' + - uuid: e4bfc421633a433ca1b895fa4f5cf96e + name: 'Pool [{#POOLNAME}]: Write operations rate' + type: DEPENDENT + key: 'truenas.zpool.write.ops[{#POOLNAME}]' + delay: '0' + value_type: FLOAT + units: IOPS + description: | + MIB: FREENAS-MIB + The number of write I/O operations sent to the pool or device (averaged since system booted). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.1.1.1.9.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: truenas.zfs.pools.walk + tags: + - tag: component + value: storage + - tag: pool + value: '{#POOLNAME}' + trigger_prototypes: + - uuid: 18eef491c14b4f768400b4acca5c7e80 + expression: 'min(/TrueNAS CORE by SNMP/truenas.zpool.pused[{#POOLNAME}],5m) > {$ZPOOL.PUSED.MAX.WARN:"{#POOLNAME}"} and last(/TrueNAS CORE by SNMP/truenas.zpool.avail[{#POOLNAME}]) < {$ZPOOL.FREE.MIN.WARN:"{#POOLNAME}"}' + name: 'TrueNAS CORE: Pool [{#POOLNAME}]: High space usage' + event_name: 'TrueNAS CORE: Pool [{#POOLNAME}]: High space usage (more than {$ZPOOL.PUSED.MAX.WARN:"{#POOLNAME}"}% used)' + opdata: 'Current usage: {ITEM.LASTVALUE1}' + priority: WARNING + description: | + Two conditions should match: + 1. The first condition - utilization of the space should be above `{$ZPOOL.PUSED.MAX.WARN:"{#POOLNAME}"}%.` + 2. The second condition - the pool free space is less than `{$ZPOOL.FREE.MIN.WARN:"{#POOLNAME}"}`. + dependencies: + - name: 'TrueNAS CORE: Pool [{#POOLNAME}]: Very high space usage' + expression: 'min(/TrueNAS CORE by SNMP/truenas.zpool.pused[{#POOLNAME}],5m) > {$ZPOOL.PUSED.MAX.CRIT:"{#POOLNAME}"} and last(/TrueNAS CORE by SNMP/truenas.zpool.avail[{#POOLNAME}]) < {$ZPOOL.FREE.MIN.CRIT:"{#POOLNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: ab01140b8a724c1cbb79be032de8c8b5 + expression: 'min(/TrueNAS CORE by SNMP/truenas.zpool.pused[{#POOLNAME}],5m) > {$ZPOOL.PUSED.MAX.CRIT:"{#POOLNAME}"} and last(/TrueNAS CORE by SNMP/truenas.zpool.avail[{#POOLNAME}]) < {$ZPOOL.FREE.MIN.CRIT:"{#POOLNAME}"}' + name: 'TrueNAS CORE: Pool [{#POOLNAME}]: Very high space usage' + event_name: 'TrueNAS CORE: Pool [{#POOLNAME}]: Very high space usage (more than {$ZPOOL.PUSED.MAX.CRIT:"{#POOLNAME}"}% used)' + opdata: 'Current usage: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + Two conditions should match: + 1. The first condition - utilization of the space should be above `{$ZPOOL.PUSED.MAX.CRIT:"{#POOLNAME}"}%.` + 2. The second condition - the pool free space is less than `{$ZPOOL.FREE.MIN.CRIT:"{#POOLNAME}"}`. + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graph_prototypes: + - uuid: 8c2ed6ea842941b3b306efe87df844be + name: 'Pool [{#POOLNAME}]: Read/write rates' + graph_items: + - color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: 'truenas.zpool.read.bytes[{#POOLNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'TrueNAS CORE by SNMP' + key: 'truenas.zpool.write.bytes[{#POOLNAME}]' + - uuid: 497e60420e314ec3a3de904042ae4756 + name: 'Pool [{#POOLNAME}]: Space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'TrueNAS CORE by SNMP' + key: 'truenas.zpool.size.total[{#POOLNAME}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'TrueNAS CORE by SNMP' + key: 'truenas.zpool.used[{#POOLNAME}]' + master_item: + key: truenas.zfs.pools.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#POOLNAME}' + - 1.3.6.1.4.1.50536.1.1.1.1.2 + - '0' + - '{#POOL_ALLOC_UNITS}' + - 1.3.6.1.4.1.50536.1.1.1.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: dfeb1df58c024b27a0a65206d896975c + name: 'ZFS volumes discovery' + type: DEPENDENT + key: truenas.zfs.zvols.discovery + delay: '0' + description: 'ZFS volumes discovery from FREENAS-MIB.' + item_prototypes: + - uuid: 26967102b3a946c997fbbdcc5c2d78bc + name: 'TrueNAS CORE: ZFS volume [{#ZVOL_NAME}]: Available space' + type: DEPENDENT + key: 'truenas.zvol.avail[{#ZVOL_NAME}]' + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + The available of the ZFS volume in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.3.1.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#ZVOL_ALLOC_UNITS}' + master_item: + key: truenas.zfs.zvols.walk + tags: + - tag: component + value: storage + - tag: volume + value: '{#ZVOL_NAME}' + - uuid: cc01786aff804d6998b039525214ddbd + name: 'TrueNAS CORE: ZFS volume [{#ZVOL_NAME}]: Total space' + type: DEPENDENT + key: 'truenas.zvol.size.total[{#ZVOL_NAME}]' + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + The size of the ZFS volume in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.3.1.1.4.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#ZVOL_ALLOC_UNITS}' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: truenas.zfs.zvols.walk + tags: + - tag: component + value: storage + - tag: volume + value: '{#ZVOL_NAME}' + - uuid: a722d904125d46729c29ad4283d0b1b0 + name: 'TrueNAS CORE: ZFS volume [{#ZVOL_NAME}]: Used space' + type: DEPENDENT + key: 'truenas.zvol.used[{#ZVOL_NAME}]' + delay: '0' + units: B + description: | + MIB: FREENAS-MIB + The used size of the ZFS volume in bytes. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.50536.1.3.1.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '{#ZVOL_ALLOC_UNITS}' + master_item: + key: truenas.zfs.zvols.walk + tags: + - tag: component + value: storage + - tag: volume + value: '{#ZVOL_NAME}' + graph_prototypes: + - uuid: 18746b4b3cfb4d1baf06df7b05a047f9 + name: 'TrueNAS CORE: ZFS volume [{#ZVOL_NAME}]: Space usage' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'TrueNAS CORE by SNMP' + key: 'truenas.zvol.size.total[{#ZVOL_NAME}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'TrueNAS CORE by SNMP' + key: 'truenas.zvol.used[{#ZVOL_NAME}]' + master_item: + key: truenas.zfs.zvols.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#ZVOL_NAME}' + - 1.3.6.1.4.1.50536.1.3.1.1.2 + - '0' + - '{#ZVOL_ALLOC_UNITS}' + - 1.3.6.1.4.1.50536.1.3.1.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 1f992aa87f9e4074a8cba928b2017a03 + name: 'Block devices discovery' + type: DEPENDENT + key: vfs.dev.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.MATCHES}' + formulaid: A + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Block devices are discovered from UCD-DISKIO-MIB::diskIOTable (http://net-snmp.sourceforge.net/docs/mibs/ucdDiskIOMIB.html#diskIOTable).' + item_prototypes: + - uuid: ba220c4106cb4bff9dd60c92aee7919a + name: 'TrueNAS CORE: [{#DEVNAME}]: Disk read rate' + type: DEPENDENT + key: 'vfs.dev.read.rate[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '!r/s' + description: | + MIB: UCD-DISKIO-MIB + The number of read accesses from this device since boot. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2021.13.15.1.1.5.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vfs.dev.walk + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 0dd2f25f1d2a45f2ae265d8550fe7d45 + name: 'TrueNAS CORE: [{#DEVNAME}]: Disk utilization' + type: DEPENDENT + key: 'vfs.dev.util[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + MIB: UCD-DISKIO-MIB + The 1 minute average load of disk (%). + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2021.13.15.1.1.9.{#SNMPINDEX}' + - '0' + master_item: + key: vfs.dev.walk + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 1549def5cf23434b8d0a19ac951eb2ff + name: 'TrueNAS CORE: [{#DEVNAME}]: Disk write rate' + type: DEPENDENT + key: 'vfs.dev.write.rate[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '!w/s' + description: | + MIB: UCD-DISKIO-MIB + The number of write accesses from this device since boot. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.4.1.2021.13.15.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: vfs.dev.walk + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + graph_prototypes: + - uuid: c6e277b4a9e949df9e7bfd6adefc65b5 + name: 'TrueNAS CORE: [{#DEVNAME}]: Read/write rates' + graph_items: + - color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: 'vfs.dev.read.rate[{#SNMPINDEX}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'TrueNAS CORE by SNMP' + key: 'vfs.dev.write.rate[{#SNMPINDEX}]' + master_item: + key: vfs.dev.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#DEVNAME}' + - 1.3.6.1.4.1.2021.13.15.1.1.2 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: hardware + - tag: target + value: truenas-core + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Threshold of CPU utilization for warning trigger in %.' + - macro: '{$DATASET.FREE.MIN.CRIT}' + value: 5G + description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.' + - macro: '{$DATASET.FREE.MIN.WARN}' + value: 5G + description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.' + - macro: '{$DATASET.NAME.MATCHES}' + value: .+ + description: 'This macro is used in datasets discovery. Can be overridden on the host or linked template level' + - macro: '{$DATASET.NAME.NOT_MATCHES}' + value: '^(boot|.+\.system(.+)?$)' + description: 'This macro is used in datasets discovery. Can be overridden on the host or linked template level' + - macro: '{$DATASET.PUSED.MAX.CRIT}' + value: '90' + description: 'Threshold of used dataset space for average severity trigger in %.' + - macro: '{$DATASET.PUSED.MAX.WARN}' + value: '80' + description: 'Threshold of used dataset space for warning trigger in %.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$LOAD_AVG_PER_CPU.MAX.WARN}' + value: '1.5' + description: 'Load per CPU considered sustainable. Tune if needed.' + - macro: '{$MEMORY.AVAILABLE.MIN}' + value: 20M + description: 'Threshold of available memory for trigger in bytes.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'Threshold of memory utilization for trigger in %' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$SWAP.PFREE.MIN.WARN}' + value: '50' + description: 'Threshold of free swap space for warning trigger in %.' + - macro: '{$TEMPERATURE.MAX.CRIT}' + value: '65' + description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.' + - macro: '{$TEMPERATURE.MAX.WARN}' + value: '50' + description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.' + - macro: '{$VFS.DEV.DEVNAME.MATCHES}' + value: .+ + description: 'This macro is used in block devices discovery. Can be overridden on the host or linked template level' + - macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + value: '^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|cd[0-9]*|pass[0-9]*|zram[0-9]*)' + description: 'This macro is used in block devices discovery. Can be overridden on the host or linked template level' + - macro: '{$ZPOOL.FREE.MIN.CRIT}' + value: 5G + description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.' + - macro: '{$ZPOOL.FREE.MIN.WARN}' + value: 5G + description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.' + - macro: '{$ZPOOL.PUSED.MAX.CRIT}' + value: '90' + description: 'Threshold of used pool space for average severity trigger in %.' + - macro: '{$ZPOOL.PUSED.MAX.WARN}' + value: '80' + description: 'Threshold of used pool space for warning trigger in %.' + dashboards: + - uuid: 6db6fb2b5fe04a7095fcbec6e70e76e1 + name: 'TrueNAS CORE: Overview' + pages: + - name: Resources + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE: Memory utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE: Memory usage' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE: CPU usage{#SINGLETON}' + - type: STRING + name: reference + value: AAAAD + - type: graphprototype + 'y': '15' + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE: CPU utilization{#SINGLETON}' + - type: STRING + name: reference + value: AAAAE + - type: graph + 'y': '20' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE: CPU jumps' + - type: STRING + name: reference + value: AAAAG + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE: Swap usage' + - type: STRING + name: reference + value: AAAAC + - type: graph + x: '36' + 'y': '15' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE: System load' + - type: STRING + name: reference + value: AAAAF + - name: Disks + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE: [{#DEVNAME}]: Read/write rates' + - type: STRING + name: reference + value: AAAAH + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'Disk [{#DISK_NAME}]'': Temperature' + - type: STRING + name: reference + value: AAAAI + - name: ZFS + widgets: + - type: graph + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE: ARC hit ratio' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'Pool [{#POOLNAME}]: Space usage' + - type: STRING + name: reference + value: AAAAK + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'Pool [{#POOLNAME}]: Read/write rates' + - type: STRING + name: reference + value: AAAAL + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'TrueNAS CORE: ZFS volume [{#ZVOL_NAME}]: Space usage' + - type: STRING + name: reference + value: AAAAM + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'Dataset [{#DATASET_NAME}]: Space usage' + - type: STRING + name: reference + value: AAAAN + - name: 'Network interfaces' + widgets: + - type: graphprototype + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'TrueNAS CORE by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAO + valuemaps: + - uuid: 1ce70fc8edf2449ea6a0c687f359441a + name: 'FREENAS-MIB::ZPoolHealthType' + mappings: + - value: '0' + newvalue: online + - value: '1' + newvalue: degraded + - value: '2' + newvalue: faulted + - value: '3' + newvalue: offline + - value: '4' + newvalue: unavail + - value: '5' + newvalue: removed + - uuid: 8206c1b8a10840c0908b34c95f8ba4b3 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: f5115f963d0043f6b76ebbd27aaba600 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 8673d9a283674ca2bcd973f5fdff7258 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 0fe93c05f4c94ce8943950210218f6d9 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 6c1708d53693435c87cd27f1568345c1 + expression: 'min(/TrueNAS CORE by SNMP/system.swap.pfree,5m)<{$SWAP.PFREE.MIN.WARN} and last(/TrueNAS CORE by SNMP/system.swap.total)>0' + name: 'TrueNAS CORE: High swap space usage' + event_name: 'TrueNAS CORE: High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)' + opdata: 'Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'If there is no swap configured, this trigger is ignored.' + dependencies: + - name: 'TrueNAS CORE: High memory utilization' + expression: 'min(/TrueNAS CORE by SNMP/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + - name: 'TrueNAS CORE: Lack of available memory' + expression: 'min(/TrueNAS CORE by SNMP/vm.memory.available,5m)<{$MEMORY.AVAILABLE.MIN} and last(/TrueNAS CORE by SNMP/vm.memory.total)>0' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 6864f43129064a0bba5e659b514eb8d9 + expression: '(last(/TrueNAS CORE by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/TrueNAS CORE by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/TrueNAS CORE by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/TrueNAS CORE by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'TrueNAS CORE: Host has been restarted' + event_name: 'TrueNAS CORE: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'TrueNAS CORE: No SNMP data collection' + expression: 'max(/TrueNAS CORE by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + - uuid: 0a04cc4789a14f1090232fce196c0e4d + expression: 'min(/TrueNAS CORE by SNMP/vm.memory.available,5m)<{$MEMORY.AVAILABLE.MIN} and last(/TrueNAS CORE by SNMP/vm.memory.total)>0' + name: 'TrueNAS CORE: Lack of available memory' + event_name: 'TrueNAS CORE: Lack of available memory (<{$MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})' + opdata: 'Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The system is running out of memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: c923ea2cc04848de911ad9a41defaff6 + expression: | + min(/TrueNAS CORE by SNMP/system.cpu.load.avg1,5m)/last(/TrueNAS CORE by SNMP/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN} + and last(/TrueNAS CORE by SNMP/system.cpu.load.avg5)>0 + and last(/TrueNAS CORE by SNMP/system.cpu.load.avg15)>0 + name: 'TrueNAS CORE: Load average is too high' + event_name: 'TrueNAS CORE: Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)' + opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The load average per CPU is too high. The system may be slow to respond.' + tags: + - tag: scope + value: performance + graphs: + - uuid: 621f703356cb4522bef8f1c89732c9cb + name: 'TrueNAS CORE: ARC hit ratio' + type: STACKED + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: truenas.zfs.arc.hit.ratio + - sortorder: '1' + color: F63100 + item: + host: 'TrueNAS CORE by SNMP' + key: truenas.zfs.arc.miss.ratio + - uuid: 977c98430b1241988206b56b3fc40091 + name: 'TrueNAS CORE: CPU jumps' + graph_items: + - color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: system.cpu.switches + - sortorder: '1' + color: F63100 + item: + host: 'TrueNAS CORE by SNMP' + key: system.cpu.intr + - uuid: 5c95f63eaaf049cab4884b2785c5d382 + name: 'TrueNAS CORE: Memory usage' + ymin_type_1: FIXED + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: vm.memory.total + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'TrueNAS CORE by SNMP' + key: vm.memory.available + - uuid: a36f52864942457894638adef660a775 + name: 'TrueNAS CORE: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: vm.memory.util + - uuid: bd67954025d145c8a0eb2f21d53a52f5 + name: 'TrueNAS CORE: Swap usage' + graph_items: + - color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: system.swap.free + - sortorder: '1' + color: F63100 + item: + host: 'TrueNAS CORE by SNMP' + key: system.swap.total + - uuid: f7a0b78f1f814e2b94cec941168eafaa + name: 'TrueNAS CORE: System load' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'TrueNAS CORE by SNMP' + key: system.cpu.load.avg1 + - sortorder: '1' + color: F63100 + item: + host: 'TrueNAS CORE by SNMP' + key: system.cpu.load.avg5 + - sortorder: '2' + color: 00611C + item: + host: 'TrueNAS CORE by SNMP' + key: system.cpu.load.avg15 + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'TrueNAS CORE by SNMP' + key: system.cpu.num diff --git a/Ubiquiti_AirOS_by_SNMP.yaml b/Ubiquiti_AirOS_by_SNMP.yaml new file mode 100644 index 0000000..b7fe5e3 --- /dev/null +++ b/Ubiquiti_AirOS_by_SNMP.yaml @@ -0,0 +1,1628 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 6c235d126c1f4895acfe2156b140a886 + template: 'Ubiquiti AirOS by SNMP' + name: 'Ubiquiti AirOS by SNMP' + description: | + Template Net Ubiquiti AirOS + + MIBs used: + FROGFOOT-RESOURCES-MIB + HOST-RESOURCES-MIB + SNMPv2-MIB + IEEE802dot11-MIB + IF-MIB + + Known Issues: + + Description: UBNT unifi reports speed: like IF-MIB::ifSpeed.1 = Gauge32: 4294967295 for all interfaces + Version: Firmware: BZ.ar7240.v3.7.51.6230.170322.1513 + Device: UBNT UAP-LR + + Description: UBNT AirMax(NanoStation, NanoBridge etc) reports ifSpeed: as 0 for VLAN and wireless(ath0) interfaces + Version: Firmware: XW.ar934x.v5.6-beta4.22359.140521.1836 + Device: NanoStation M5 + + Description: UBNT AirMax(NanoStation, NanoBridge etc) reports always return ifType: as ethernet(6) even for wifi,vlans and other types + Version: Firmware: XW.ar934x.v5.6-beta4.22359.140521.1836 + Device: NanoStation M5 + + Description: ifXTable is not provided in IF-MIB. So Interfaces Simple Template is used instead + Version: all above + Device: NanoStation, UAP-LR + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 473f39f191164f578539e842f18bfe65 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 2a6711992f354095b056b628be78022c + expression: 'max(/Ubiquiti AirOS by SNMP/icmpping,#3)=0' + name: 'Ubiquiti AirOS: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 11297d0102734139aa4fa81eefad9839 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 8e66ba0787b54af2897dd348e5453f10 + expression: 'min(/Ubiquiti AirOS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Ubiquiti AirOS by SNMP/icmppingloss,5m)<100' + name: 'Ubiquiti AirOS: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Ubiquiti AirOS: Unavailable by ICMP ping' + expression: 'max(/Ubiquiti AirOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: d8416e68bab94a568b8fbc67927ae739 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 4ae253aa403a42ad8cd4721e2ffdfbca + expression: 'avg(/Ubiquiti AirOS by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Ubiquiti AirOS: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Ubiquiti AirOS: High ICMP ping loss' + expression: 'min(/Ubiquiti AirOS by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Ubiquiti AirOS by SNMP/icmppingloss,5m)<100' + - name: 'Ubiquiti AirOS: Unavailable by ICMP ping' + expression: 'max(/Ubiquiti AirOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 11edabc72e4a4d69a0dc9c36458fbfbc + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 362b533375e544d9804eba534e5f4935 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 3e092597f217443498eeb8a409f814e4 + name: 'Load average (1m avg)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10002.1.1.1.4.2.1.3.1]' + key: 'system.cpu.load.avg1[loadValue.1]' + value_type: FLOAT + description: | + MIB: FROGFOOT-RESOURCES-MIB + 1 minute load average of processor load. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: cpu + - uuid: 1aaf7d729983431cb28351e7ba0c8235 + name: 'Load average (5m avg)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10002.1.1.1.4.2.1.3.2]' + key: 'system.cpu.load.avg5[loadValue.2]' + value_type: FLOAT + description: | + MIB: FROGFOOT-RESOURCES-MIB + 5 minute load average of processor load. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: cpu + - uuid: e0911150058e43f4b0f26df2d00e57c7 + name: 'Load average (15m avg)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10002.1.1.1.4.2.1.3.3]' + key: 'system.cpu.load.avg15[loadValue.3]' + value_type: FLOAT + description: | + MIB: FROGFOOT-RESOURCES-MIB + 15 minute load average of processor load. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: cpu + - uuid: a05d416bcdde44929f091c4cde2e6537 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9e8ab4b180f24b64bcddfc1606d616d0 + name: 'Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.2.840.10036.3.1.2.1.4.5]' + key: system.hw.firmware + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IEEE802dot11-MIB + Printable string used to identify the manufacturer's product version of the resource. Maximum string length is 128 octets. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: ab4a91cf3c2a4305a59727558c00a1f8 + expression: 'last(/Ubiquiti AirOS by SNMP/system.hw.firmware,#1)<>last(/Ubiquiti AirOS by SNMP/system.hw.firmware,#2) and length(last(/Ubiquiti AirOS by SNMP/system.hw.firmware))>0' + name: 'Ubiquiti AirOS: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e770de183b1e4ffc9348750520719b41 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.2.840.10036.3.1.2.1.3.5]' + key: system.hw.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IEEE802dot11-MIB + A printable string used to identify the manufacturer's product name of the resource. Maximum string length is 128 octets. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 0d47c914219e4da0a7d67631d8171244 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: eabbdf5343fb42bfa3e5f13bc51ad66d + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 5994fe565b1d437f8e9f1d0d8ec83104 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: 15523bce03a24cd6a4818ab655d1d2ad + expression: 'last(/Ubiquiti AirOS by SNMP/system.name,#1)<>last(/Ubiquiti AirOS by SNMP/system.name,#2) and length(last(/Ubiquiti AirOS by SNMP/system.name))>0' + name: 'Ubiquiti AirOS: System name has changed' + event_name: 'Ubiquiti AirOS: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: de270e3ac6874ca59a236a040d82c099 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 2fbfe02459724f089b5bcd31ff6245d9 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 6393f8a84fd4417abdccd8bd867aac7e + name: 'Memory (buffers)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10002.1.1.1.1.3.0]' + key: 'vm.memory.buffers[memBuffer.0]' + units: B + description: | + MIB: FROGFOOT-RESOURCES-MIB + Memory used by kernel buffers (Buffers in /proc/meminfo). + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 224c8d32f0d649b3b94b77e960934f15 + name: 'Memory (cached)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10002.1.1.1.1.4.0]' + key: 'vm.memory.cached[memCache.0]' + units: B + description: | + MIB: FROGFOOT-RESOURCES-MIB + Memory used by the page cache and slabs (Cached and Slab in /proc/meminfo). + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 401b95eff89743cba6942606ac051b01 + name: 'Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10002.1.1.1.1.2.0]' + key: 'vm.memory.free[memFree.0]' + units: B + description: 'MIB: FROGFOOT-RESOURCES-MIB' + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: eefa6d2e8560407f82bbb8783bb399ad + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.10002.1.1.1.1.1.0]' + key: 'vm.memory.total[memTotal.0]' + units: B + description: | + MIB: FROGFOOT-RESOURCES-MIB + The total memory expressed in bytes. + preprocessing: + - type: MULTIPLIER + parameters: + - '1024' + tags: + - tag: component + value: memory + - uuid: 29df9ffb192d4434a88ac6a413b9569d + name: 'Memory utilization' + type: CALCULATED + key: 'vm.memory.util[memoryUsedPercentage]' + value_type: FLOAT + units: '%' + params: '(last(//vm.memory.total[memTotal.0])-(last(//vm.memory.free[memFree.0])+last(//vm.memory.buffers[memBuffer.0])+last(//vm.memory.cached[memCache.0])))/last(//vm.memory.total[memTotal.0])*100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 30c0c80ae6df45bb96c434016e394bba + expression: 'min(/Ubiquiti AirOS by SNMP/vm.memory.util[memoryUsedPercentage],5m)>{$MEMORY.UTIL.MAX}' + name: 'Ubiquiti AirOS: High memory utilization' + event_name: 'Ubiquiti AirOS: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 0aad82f9addd45efa20253da000ec699 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 7735f20ab7fd40b8b34cead6cb306b30 + expression: 'max(/Ubiquiti AirOS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Ubiquiti AirOS: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Ubiquiti AirOS: Unavailable by ICMP ping' + expression: 'max(/Ubiquiti AirOS by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 441118e6712e4f6bae4c9cab7be8d0a2 + name: 'Network interfaces discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' + key: net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: e97fb75ee1254ea092a9fb51b1bac108 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}]' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: cec2d0f88b494cb8b49a8e234108cbbb + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}]' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0610c78c5be54df29ef6833758331896 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}]' + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface,including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and another times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9a129fa67db34b4fa6af29e4c0936f09 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}]' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 016c8fc0a0524df3b5fa9a7d6a28fb94 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}]' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: 3m + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 84be5259caec44cfb5963e8d31c27e71 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.16.{#SNMPINDEX}]' + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + delay: 3m + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 570b2d64c79748ac9c8350fa68933de5 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.5.{#SNMPINDEX}]' + key: 'net.if.speed[ifSpeed.{#SNMPINDEX}]' + delay: 5m + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, + this object should contain the nominal bandwidth. + If the bandwidth of the interface is greater than the maximum value reportable by this object then + this object should report its maximum value (4,294,967,295) and ifHighSpeed must be used to report the interface's speed. + For a sub-layer which has no concept of bandwidth, this object should be zero. + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ec9624acd1d940e49f6cb996551ec66b + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: c360a22671ea4dcda48fc49ec7847c2d + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Ubiquiti AirOS: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 435d93d378d646c388ddccb22bb43dc9 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}]' + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: 1h + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 9ccbb6859cd7422684e1946c1e321b3c + expression: | + change(/Ubiquiti AirOS by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])<0 and last(/Ubiquiti AirOS by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 + and ( + last(/Ubiquiti AirOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Ubiquiti AirOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Ubiquiti AirOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Ubiquiti AirOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Ubiquiti AirOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Ubiquiti AirOS by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Ubiquiti AirOS by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 and last(/Ubiquiti AirOS by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Ubiquiti AirOS: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Ubiquiti AirOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 80e37d44eddf49c89b39dacc8c88ac07 + expression: | + (avg(/Ubiquiti AirOS by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Ubiquiti AirOS by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) or + avg(/Ubiquiti AirOS by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Ubiquiti AirOS by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])) and + last(/Ubiquiti AirOS by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Ubiquiti AirOS by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Ubiquiti AirOS by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) and + avg(/Ubiquiti AirOS by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Ubiquiti AirOS by SNMP/net.if.speed[ifSpeed.{#SNMPINDEX}]) + name: 'Ubiquiti AirOS: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Ubiquiti AirOS: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Ubiquiti AirOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 3d7c8f98d0c447038c630f4e2ad81c06 + expression: | + min(/Ubiquiti AirOS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Ubiquiti AirOS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Ubiquiti AirOS by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Ubiquiti AirOS by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Ubiquiti AirOS: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Ubiquiti AirOS: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Ubiquiti AirOS: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Ubiquiti AirOS by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 756cecebd5e04ffc8f535fa20412734d + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ubiquiti AirOS by SNMP' + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Ubiquiti AirOS by SNMP' + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Ubiquiti AirOS by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Ubiquiti AirOS by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Ubiquiti AirOS by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Ubiquiti AirOS by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 4h + tags: + - tag: class + value: network + - tag: target + value: airos + - tag: target + value: ubiquiti + macros: + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + - macro: '{$IF.UTIL.MAX}' + value: '95' + - macro: '{$IFCONTROL}' + value: '1' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore down(2) administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore notPresent(6)' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + dashboards: + - uuid: 9f32e8b35c17466dbf695110eb21c03d + name: 'Ubiquiti AirOS: General' + pages: + - name: 'Ubiquiti AirOS: General' + widgets: + - type: graph + name: 'Memory utilization' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Ubiquiti AirOS by SNMP' + name: 'Ubiquiti AirOS: Memory utilization' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Load average' + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Ubiquiti AirOS by SNMP' + name: 'Ubiquiti AirOS: Load average' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 2fc5bef495074d0e86641cc136e3dcde + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 5161926438084643a3e2b08dac97cb4f + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: d72bcf64fddb4f4faf3bfb039a36e0e4 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 4ceae86ef7e84797a911fd3d257eaa46 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: 2d9ed5a3b714461bbcdc4c530f955e5b + expression: '(last(/Ubiquiti AirOS by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Ubiquiti AirOS by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Ubiquiti AirOS by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Ubiquiti AirOS by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Ubiquiti AirOS: Host has been restarted' + event_name: 'Ubiquiti AirOS: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Ubiquiti AirOS: No SNMP data collection' + expression: 'max(/Ubiquiti AirOS by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: acb2b7447a6449a591db186a4db81643 + name: 'Ubiquiti AirOS: Load average' + graph_items: + - color: 199C0D + item: + host: 'Ubiquiti AirOS by SNMP' + key: 'system.cpu.load.avg5[loadValue.2]' + - sortorder: '1' + color: F63100 + item: + host: 'Ubiquiti AirOS by SNMP' + key: 'system.cpu.load.avg1[loadValue.1]' + - sortorder: '2' + color: 00611C + item: + host: 'Ubiquiti AirOS by SNMP' + key: 'system.cpu.load.avg15[loadValue.3]' + - uuid: cbce9bb057b14b8eb81f8cbb463442d6 + name: 'Ubiquiti AirOS: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Ubiquiti AirOS by SNMP' + key: 'vm.memory.util[memoryUsedPercentage]' diff --git a/VMware.yaml b/VMware.yaml new file mode 100644 index 0000000..1ba856e --- /dev/null +++ b/VMware.yaml @@ -0,0 +1,1067 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: 56079badd056419383cc26e6a4fcc7e0 + template: VMware + name: VMware + description: | + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Note: To enable discovery of hardware sensors of VMware Hypervisors, set the macro '{$VMWARE.HV.SENSOR.DISCOVERY}' to the value 'true' on the discovered host level. + + Note: To create custom performance counter see documentation: https://www.zabbix.com/documentation/7.0/manual/vm_monitoring/vmware_keys#footnotes. + + Note: To get all supported counters and generate path for custom performance counter see documentation: https://www.zabbix.com/documentation/7.0/manual/appendix/items/perf_counters. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Applications + items: + - uuid: 5a0c711cae454f0e92a492dd1718101f + name: 'Get alarms' + type: SIMPLE + key: 'vmware.alarms.get[{$VMWARE.URL}]' + history: '0' + value_type: TEXT + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Get alarm status.' + tags: + - tag: component + value: raw + - uuid: 5ce209f4d94f460488a74a92a52d92b1 + name: 'Event log' + type: SIMPLE + key: 'vmware.eventlog[{$VMWARE.URL},skip]' + value_type: LOG + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Collect VMware event log. See also: https://www.zabbix.com/documentation/7.0/manual/config/items/preprocessing/examples#filtering_vmware_event_log_records' + tags: + - tag: component + value: log + - uuid: ee2edadb8ce943ef81d25dbbba8667a4 + name: 'Full name' + type: SIMPLE + key: 'vmware.fullname[{$VMWARE.URL}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware service full name.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 91756015645746e68b3f85b4cd1b5abd + name: 'Overall Health VC State error check' + type: DEPENDENT + key: vmware.health.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Data collection error check.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: vmware.health.get + tags: + - tag: component + value: status + triggers: + - uuid: a11ed3829afb48fb99b9feb2dab4a45d + expression: length(last(/VMware/vmware.health.check))>0 + name: 'VMware: Failed to get Overall Health VC State' + opdata: 'Current error: {ITEM.LASTVALUE}' + priority: WARNING + description: 'Failed to get data. Check debug log for more information.' + tags: + - tag: scope + value: availability + - uuid: 889333d3225147e1b1604119050a121f + name: 'Get Overall Health VC State' + type: SCRIPT + key: vmware.health.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Vcenter = { + params: {}, + vmware_api_session_id: '', + health_status: '', + error_msg: '', + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + if (params['url'].endsWith('/')) { + params['url'] = params['url'].slice(0,-1); + } + params['url'] = params['url'].replace('/sdk',''); + + Vcenter.params = params; + Vcenter.tls = new CTlsConfig(params.tls_verify); + Vcenter.tls.checkURL(Vcenter.params.url); + }, + + isGtOrEqVersion: function (first_version, second_version) { + var first = first_version.split('.').map(Number), + second = second_version.split('.').map(Number); + + if (first.length > second.length) { + const max_componens_length = first.length + } + else { + const max_componens_length = second.length + } + + var num_components = first.length; + while (num_components < max_componens_length) { + first.push(0); + num_components = num_components +1; + } + + var num_components = second.length; + while (num_components < max_componens_length) { + second.push(0); + num_components = num_components +1; + } + + if (first[0] > second[0] || + (first[0] === second[0] && first[1] > second[1]) || + (first[0] === second[0] && first[1] === second[1] && first[2] >= second[2])) { + return true; + } + + return false; + }, + + login: function () { + var response, request = new HttpRequest(Vcenter.tls.options); + request.setHttpAuth(HTTPAUTH_BASIC, Vcenter.params.username, Vcenter.params.password); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + + response = request.post(Vcenter.params.url + '/api/session', ''); + if (request.getStatus() >= 200 && request.getStatus() < 300 && (!JSON.parse(response).error)) { + Vcenter.vmware_api_session_id = Vcenter.removeQuotes(response); + return true; + } + + response = request.post(Vcenter.params.url + '/rest/com/vmware/cis/session', ''); + if (request.getStatus() >= 200 && request.getStatus() < 300) { + Vcenter.vmware_api_session_id = JSON.parse(response).value; + return true; + } + + return false; + }, + + logout: function () { + path = '/rest/com/vmware/cis/session'; + if (Vcenter.vmware_api_version && Vcenter.isGtOrEqVersion(Vcenter.vmware_api_version, '7.0.2')) { + path = '/api/session'; + } + + Vcenter.request(Vcenter.params.url + path, 'delete'); + }, + + get_version: function () { + path = '/rest/appliance/system/version'; + + try { + Vcenter.vmware_api_version = Vcenter.request(Vcenter.params.url + path, 'get').version; + return true; + } + catch (error) { + return false; + } + }, + + removeQuotes: function (str){ + if (str.startsWith('"') && str.endsWith('"')) { + return str.slice(1, -1); + } + + return str; + }, + + getHealthStatus: function () { + path = '/api/appliance/health/system'; + if (!Vcenter.isGtOrEqVersion(Vcenter.vmware_api_version, '7.0.2')) { + path = '/rest/appliance/health/system'; + } + + result = Vcenter.removeQuotes(Vcenter.request(Vcenter.params.url + path, 'get')); + + const idx = [ + 'green', + 'yellow', + 'orange', + 'red', + 'gray' + ].indexOf(result.toLowerCase()); + Vcenter.health_status = idx !== -1 ? idx : 5; + }, + + request: function (url, method) { + var response, request = new HttpRequest(Vcenter.tls.options); + + if (typeof Vcenter.params.proxy !== 'undefined' && Vcenter.params.proxy !== '') { + request.setProxy(Vcenter.params.proxy); + } + + request.setHttpAuth(HTTPAUTH_NONE); + request.addHeader("Cookie: vmware-api-session-id=" + Vcenter.vmware_api_session_id); + + Zabbix.log(4, '[ VMware vCenter ] Sending request: ' + url); + + switch (method) { + case 'get': + response = request.get(url); + break; + + case 'post': + response = request.post(url); + break; + + case 'delete': + response = request.delete(url); + break; + + default: + throw 'Unsupported HTTP request method: ' + method; + } + + Zabbix.log(4, '[ VMware vCenter ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Cannot connect to VMware vCenter. Check debug log for more information.'; + } + + if (method !== 'delete' && JSON.parse(response).value) { + return JSON.parse(response).value; + } + else { + return response; + } + } + }; + + try { + Vcenter.setParams(JSON.parse(value)); + + if (Vcenter.login() && Vcenter.get_version() && Vcenter.isGtOrEqVersion(Vcenter.vmware_api_version, '6.5.0')) { + Vcenter.getHealthStatus(); + } + else { + Vcenter.health_status = 6; + } + + if (Vcenter.vmware_api_session_id) { + Vcenter.logout(); + } + } + catch (error) { + Zabbix.log(3, '[ VMware vCenter ] ERROR: ' + error); + Vcenter.error_msg = 'Failed to get data from API:' + error; + } + + return JSON.stringify({'health': Vcenter.health_status, 'error': Vcenter.error_msg}); + description: 'Gets overall health of the system. This item works only with VMware vCenter versions above 6.5.' + timeout: '10' + parameters: + - name: password + value: '{$VMWARE.PASSWORD}' + - name: proxy + value: '{$VMWARE.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"VMware"}' + - name: url + value: '{$VMWARE.URL}' + - name: username + value: '{$VMWARE.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 2d18e0c8b8284c1bafd4bd131dcb640d + name: 'Overall Health VC State' + type: DEPENDENT + key: vmware.health.state + delay: '0' + description: | + VMware Overall health of system. One of the following: + - Gray: No health data is available for this service. + - Green: Service is healthy. + - Yellow: The service is in a healthy state, but experiencing some level of problems. + - Orange: The service health is degraded. The service might have serious problems. + - Red: The service is unavailable, not functioning properly, or will stop functioning soon. + - Not available: The health status is unavailable (not supported on the vCenter or ESXi side). + valuemap: + name: 'VMware Overall Health VC State' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: vmware.health.get + tags: + - tag: component + value: health + triggers: + - uuid: 4058114acbc743e087f5b10e22c997d1 + expression: 'last(/VMware/vmware.health.state)>0 and last(/VMware/vmware.health.state)<>6' + name: 'VMware: Overall Health VC State is not Green' + opdata: 'Current Overall Health VC State: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'One or more components in the appliance might be in an unusable status and the appliance might soon become unresponsive.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: a0ec9145f2234fbea79a28c57ebdb44d + name: Version + type: SIMPLE + key: 'vmware.version[{$VMWARE.URL}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware service version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + discovery_rules: + - uuid: a1f545a8acb5423884a3ef46b0aaa1c6 + name: 'VMware alarm discovery' + type: DEPENDENT + key: vmware.alarms.discovery + delay: '0' + lifetime: '0' + description: 'Discovery of alarms.' + item_prototypes: + - uuid: b52727a894964058a5f0a9701e3f7edb + name: '{#VMWARE.ALARMS.NAME} {#VMWARE.ALARMS.ENTITY.NAME}' + type: DEPENDENT + key: 'vmware.alarms.status["{#VMWARE.ALARMS.KEY}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'VMware alarm status.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.key == "{#VMWARE.ALARMS.KEY}")].key.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'vmware.alarms.get[{$VMWARE.URL}]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: ec5711e1881149ffbf67325f16b960a4 + expression: 'last(/VMware/vmware.alarms.status["{#VMWARE.ALARMS.KEY}"])<>-1' + name: 'VMware: {#VMWARE.ALARMS.NAME} {#VMWARE.ALARMS.ENTITY.NAME}' + description: | + '{#VMWARE.ALARMS.DESC}' + Type: {#VMWARE.ALARMS.ENTITY.TYPE} + UUID: {#VMWARE.ALARMS.ENTITY.UUID} + ID: {#VMWARE.ALARMS.ENTITY.ID} + tags: + - tag: scope + value: notice + master_item: + key: 'vmware.alarms.get[{$VMWARE.URL}]' + lld_macro_paths: + - lld_macro: '{#VMWARE.ALARMS.DESC}' + path: $.description + - lld_macro: '{#VMWARE.ALARMS.ENTITY.ID}' + path: $.entity.id + - lld_macro: '{#VMWARE.ALARMS.ENTITY.NAME}' + path: $.entity.name + - lld_macro: '{#VMWARE.ALARMS.ENTITY.TYPE}' + path: $.entity.type + - lld_macro: '{#VMWARE.ALARMS.ENTITY.UUID}' + path: $.entity.uuid + - lld_macro: '{#VMWARE.ALARMS.KEY}' + path: $.key + - lld_macro: '{#VMWARE.ALARMS.NAME}' + path: $.name + - lld_macro: '{#VMWARE.ALARMS.STATUS}' + path: $.overall_status + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Trigger priority red' + step: '1' + filter: + conditions: + - macro: '{#VMWARE.ALARMS.STATUS}' + value: red + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'VMware: *' + severity: HIGH + - name: 'Trigger priority yellow' + step: '2' + filter: + conditions: + - macro: '{#VMWARE.ALARMS.STATUS}' + value: yellow + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'VMware: *' + severity: WARNING + - name: 'Trigger priority green' + step: '3' + filter: + conditions: + - macro: '{#VMWARE.ALARMS.STATUS}' + value: green + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'VMware: *' + severity: INFO + - uuid: 16ffc933cce74cf28a6edf306aa99782 + name: 'VMware cluster discovery' + type: SIMPLE + key: 'vmware.cluster.discovery[{$VMWARE.URL}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of clusters.' + item_prototypes: + - uuid: 46111f91dd564a459dbc1d396e2e6c76 + name: 'Status of [{#CLUSTER.NAME}] cluster' + type: SIMPLE + key: 'vmware.cluster.status[{$VMWARE.URL},{#CLUSTER.NAME}]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: | + VMware cluster status. One of the following: + - Gray: Unknown; + - Green: OK; + - Yellow: It might have a problem; + - Red: It has a problem. + valuemap: + name: 'VMware status' + tags: + - tag: cluster + value: '{#CLUSTER.NAME}' + - tag: component + value: cluster + trigger_prototypes: + - uuid: 9f7bcea84eb54fe5b79481267e6db341 + expression: 'last(/VMware/vmware.cluster.status[{$VMWARE.URL},{#CLUSTER.NAME}])=3' + name: 'VMware: The [{#CLUSTER.NAME}] status is Red' + priority: HIGH + description: 'A cluster enabled for DRS becomes invalid (red) when the tree is no longer internally consistent, that is, when resource constraints are not observed. See also: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-C7417CAA-BD38-41D0-9529-9E7A5898BB12.html' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: bf1e7838597241228506c5cfb7063950 + expression: 'last(/VMware/vmware.cluster.status[{$VMWARE.URL},{#CLUSTER.NAME}])=2' + name: 'VMware: The [{#CLUSTER.NAME}] status is Yellow' + priority: AVERAGE + description: 'A cluster becomes overcommitted (yellow) when the tree of resource pools and virtual machines is internally consistent but the cluster does not have the capacity to support all the resources reserved by the child resource pools. See also: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-ED8240A0-FB54-4A31-BD3D-F23FE740F10C.html' + dependencies: + - name: 'VMware: The [{#CLUSTER.NAME}] status is Red' + expression: 'last(/VMware/vmware.cluster.status[{$VMWARE.URL},{#CLUSTER.NAME}])=3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 8fb6a45cbe074b0cb6df53758e2c6623 + name: 'VMware datastore discovery' + type: SIMPLE + key: 'vmware.datastore.discovery[{$VMWARE.URL}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of VMware datastores.' + item_prototypes: + - uuid: 4b61838ba4c34e709b25081ae5b059b5 + name: 'Average read latency of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.datastore.read[{$VMWARE.URL},{#DATASTORE.UUID},latency]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Amount of time for a read operation from the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: 54c2631edeb04ef39701ad3bf03be1af + name: 'Average read IOPS of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.datastore.read[{$VMWARE.URL},{#DATASTORE.UUID},rps]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'IOPS for a read operation from the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: 5355c401dc244bc588ccd18767577c93 + name: 'Free space on datastore [{#DATASTORE}] (percentage)' + type: SIMPLE + key: 'vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree]' + delay: 5m + value_type: FLOAT + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware datastore free space (percentage from the total).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + trigger_prototypes: + - uuid: 8783e6c0bb394763afecddfd49929a01 + expression: 'last(/VMware/vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree])<{$VMWARE.DATASTORE.SPACE.CRIT}' + name: 'VMware: [{#DATASTORE}]: Free space is critically low' + event_name: 'VMware: Datastore free space is critically low ([{#DATASTORE}] free space < {$VMWARE.DATASTORE.SPACE.CRIT}%)' + priority: HIGH + description: 'Datastore free space has fallen below the critical threshold.' + tags: + - tag: scope + value: capacity + - uuid: 201980a75d734a42b3fbe1b0d3c9f55c + expression: 'last(/VMware/vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree])<{$VMWARE.DATASTORE.SPACE.WARN}' + name: 'VMware: [{#DATASTORE}]: Free space is low' + event_name: 'VMware: Datastore free space is low ([{#DATASTORE}] free space < {$VMWARE.DATASTORE.SPACE.WARN}%)' + priority: WARNING + description: 'Datastore free space has fallen below the warning threshold.' + dependencies: + - name: 'VMware: [{#DATASTORE}]: Free space is critically low' + expression: 'last(/VMware/vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree])<{$VMWARE.DATASTORE.SPACE.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: 84f13c4fde2d4a17baaf0c8c1eb4f2c0 + name: 'Total size of datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID}]' + delay: 5m + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware datastore space in bytes.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: 540cd0fbc56c4b8ea19f2ff5839ce00d + name: 'Average write latency of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.datastore.write[{$VMWARE.URL},{#DATASTORE.UUID},latency]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Amount of time for a write operation to the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: 0026edd933404faf992d08628c9ab364 + name: 'Average write IOPS of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.datastore.write[{$VMWARE.URL},{#DATASTORE.UUID},rps]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'IOPS for a write operation to the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + overrides: + - name: 'Disable IO perfCounter' + step: '1' + filter: + conditions: + - macro: '{#DATASTORE.TYPE}' + value: vsan|nfs + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Average + discover: NO_DISCOVER + - uuid: a5bc075e89f248e7b411d8f960897a08 + name: 'VMware hypervisor discovery' + type: SIMPLE + key: 'vmware.hv.discovery[{$VMWARE.URL}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of hypervisors.' + host_prototypes: + - uuid: 051a1469d4d045cbbf818fcc843a352e + host: '{#HV.UUID}' + name: '{#HV.NAME}' + group_links: + - group: + name: Applications + group_prototypes: + - name: '{#CLUSTER.NAME} (hypervisor)' + - name: '{#DATACENTER.NAME}' + templates: + - name: 'VMware Hypervisor' + macros: + - macro: '{$VMWARE.HV.UUID}' + value: '{#HV.UUID}' + description: 'UUID of hypervisor.' + custom_interfaces: 'YES' + interfaces: + - ip: '{#HV.IP}' + - uuid: 9fd559f4e88c4677a1b874634dd686f5 + name: 'VMware VM discovery' + type: SIMPLE + key: 'vmware.vm.discovery[{$VMWARE.URL}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#VM.POWERSTATE}' + value: '{$VMWARE.VM.POWERSTATE}' + formulaid: A + description: 'Discovery of guest virtual machines.' + host_prototypes: + - uuid: 23b9ae9d6f33414880db1cb107115810 + host: '{#VM.UUID}' + name: '{#VM.NAME}' + group_links: + - group: + name: Applications + group_prototypes: + - name: '{#CLUSTER.NAME} (vm)' + - name: '{#DATACENTER.NAME}/{#VM.FOLDER} (vm)' + - name: '{#HV.NAME}' + templates: + - name: 'VMware Guest' + macros: + - macro: '{$VMWARE.VM.UUID}' + value: '{#VM.UUID}' + description: 'UUID of guest virtual machine.' + custom_interfaces: 'YES' + interfaces: + - ip: '{#VM.IP}' + tags: + - tag: class + value: software + - tag: target + value: vmware + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "VMware", e.g. {$HTTP.TLS.VERIFY:"VMware"}.' + - macro: '{$VMWARE.DATASTORE.SPACE.CRIT}' + value: '10' + description: 'The critical threshold of the datastore free space.' + - macro: '{$VMWARE.DATASTORE.SPACE.WARN}' + value: '20' + description: 'The warning threshold of the datastore free space.' + - macro: '{$VMWARE.HV.SENSOR.DISCOVERY}' + value: 'false' + description: 'Set "true"/"false" to enable or disable monitoring of hardware sensors.' + - macro: '{$VMWARE.HV.SENSOR.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of hardware sensor names to be allowed in discovery.' + - macro: '{$VMWARE.HV.SENSOR.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of hardware sensor names to be ignored in discovery.' + - macro: '{$VMWARE.PASSWORD}' + type: SECRET_TEXT + description: 'VMware service `{$USERNAME}` user password.' + - macro: '{$VMWARE.PROXY}' + description: 'Sets the HTTP proxy for script items. If this parameter is empty, then no proxy is used.' + - macro: '{$VMWARE.URL}' + description: 'VMware service (vCenter or ESX hypervisor) SDK URL (https://servername/sdk).' + - macro: '{$VMWARE.USERNAME}' + description: 'VMware service user name.' + - macro: '{$VMWARE.VM.POWERSTATE}' + value: poweredOn|poweredOff|suspended + description: 'Possibility to filter out VMs by power state.' + dashboards: + - uuid: 00e64ad19fff4dc9af2ab2c0c1ccc290 + name: Overview + pages: + - name: 'VMware: Overview' + widgets: + - type: honeycomb + name: 'Overall status' + width: '15' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: items.0 + value: 'Overall Health VC State' + - type: STRING + name: primary_label + value: 'Overall status' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: 80FF00 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFFF00 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FFBF00 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: FF465C + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: STRING + name: thresholds.4.color + value: D2D2D2 + - type: STRING + name: thresholds.4.threshold + value: '4' + - type: STRING + name: thresholds.5.color + value: D2D2D2 + - type: STRING + name: thresholds.5.threshold + value: '5' + - type: STRING + name: thresholds.6.color + value: 90A4AE + - type: STRING + name: thresholds.6.threshold + value: '6' + - type: honeycomb + name: 'Total size of datastore' + 'y': '4' + width: '36' + height: '8' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: 'Total size of datastore*' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("datastore.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: item + name: 'Full name' + x: '15' + width: '57' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: VMware + key: 'vmware.fullname[{$VMWARE.URL}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Version + x: '15' + 'y': '2' + width: '57' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: VMware + key: 'vmware.version[{$VMWARE.URL}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: honeycomb + name: 'Free space on datastore' + x: '36' + 'y': '4' + width: '36' + height: '8' + fields: + - type: STRING + name: items.0 + value: 'Free space on datastore*' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("datastore.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '10' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '20' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '30' + - name: 'VMware: Datastore' + widgets: + - type: graphprototype + name: 'Average read IOps of the datastore' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: VMware + key: 'vmware.datastore.read[{$VMWARE.URL},{#DATASTORE.UUID},rps]' + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average read latency of the datastore' + 'y': '6' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: VMware + key: 'vmware.datastore.read[{$VMWARE.URL},{#DATASTORE.UUID},latency]' + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average write IOps of the datastore' + x: '36' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: VMware + key: 'vmware.datastore.write[{$VMWARE.URL},{#DATASTORE.UUID},rps]' + - type: STRING + name: reference + value: AAAAF + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average write latency of the datastore' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: VMware + key: 'vmware.datastore.write[{$VMWARE.URL},{#DATASTORE.UUID},latency]' + - type: STRING + name: reference + value: AAAAG + - type: INTEGER + name: source_type + value: '3' + valuemaps: + - uuid: 7e24ccef9d754cb4805df5b1f27f4ef4 + name: 'VMware Overall Health VC State' + mappings: + - value: '0' + newvalue: Green + - value: '1' + newvalue: Yellow + - value: '2' + newvalue: Orange + - value: '3' + newvalue: Red + - value: '4' + newvalue: Gray + - value: '5' + newvalue: Unknown + - value: '6' + newvalue: 'Not available' + - uuid: 3c59c22905054d42ac4ee8b72fe5f270 + name: 'VMware status' + mappings: + - value: '0' + newvalue: Gray + - value: '1' + newvalue: Green + - value: '2' + newvalue: Yellow + - value: '3' + newvalue: Red diff --git a/VMware_FQDN.yaml b/VMware_FQDN.yaml new file mode 100644 index 0000000..11b45f5 --- /dev/null +++ b/VMware_FQDN.yaml @@ -0,0 +1,1073 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + host_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Applications + templates: + - uuid: ca02e82e6c414d0aa7aedc8d78468a49 + template: 'VMware FQDN' + name: 'VMware FQDN' + description: | + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + Note: To enable discovery of hardware sensors of VMware Hypervisors, set the macro '{$VMWARE.HV.SENSOR.DISCOVERY}' to the value 'true' on the discovered host level. + + Note: To create custom performance counter see documentation: https://www.zabbix.com/documentation/7.0/manual/vm_monitoring/vmware_keys#footnotes. + + Note: To get all supported counters and generate path for custom performance counter see documentation: https://www.zabbix.com/documentation/7.0/manual/appendix/items/perf_counters. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Applications + items: + - uuid: b9e3684632314721aed3119df6a06976 + name: 'Get alarms' + type: SIMPLE + key: 'vmware.alarms.get[{$VMWARE.URL}]' + history: '0' + value_type: TEXT + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Get alarm status.' + tags: + - tag: component + value: raw + - uuid: 64b8a28c1a904540930ebfec5af04872 + name: 'Event log' + type: SIMPLE + key: 'vmware.eventlog[{$VMWARE.URL},skip]' + value_type: LOG + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Collect VMware event log. See also: https://www.zabbix.com/documentation/7.0/manual/config/items/preprocessing/examples#filtering_vmware_event_log_records' + tags: + - tag: component + value: log + - uuid: ebb8417eceb541b1b51909c745642f05 + name: 'Full name' + type: SIMPLE + key: 'vmware.fullname[{$VMWARE.URL}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware service full name.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 7d326d9241ae4d2ebd768b56d3826c4f + name: 'Overall Health VC State error check' + type: DEPENDENT + key: vmware.health.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Data collection error check.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: vmware.health.get + tags: + - tag: component + value: status + triggers: + - uuid: 7fe1b44b0e7549d8af9030a1c58b2aa3 + expression: 'length(last(/VMware FQDN/vmware.health.check))>0' + name: 'VMware FQDN: Failed to get Overall Health VC State' + opdata: 'Current error: {ITEM.LASTVALUE}' + priority: WARNING + description: 'Failed to get data. Check debug log for more information.' + tags: + - tag: scope + value: availability + - uuid: 7445c01436234092ad5d093d872b0682 + name: 'Get Overall Health VC State' + type: SCRIPT + key: vmware.health.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Vcenter = { + params: {}, + vmware_api_session_id: '', + health_status: '', + error_msg: '', + + setParams: function (params) { + ['url', 'username', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + if (params['url'].endsWith('/')) { + params['url'] = params['url'].slice(0,-1); + } + params['url'] = params['url'].replace('/sdk',''); + + Vcenter.params = params; + Vcenter.tls = new CTlsConfig(params.tls_verify); + Vcenter.tls.checkURL(Vcenter.params.url); + }, + + isGtOrEqVersion: function (first_version, second_version) { + var first = first_version.split('.').map(Number), + second = second_version.split('.').map(Number); + + if (first.length > second.length) { + const max_componens_length = first.length + } + else { + const max_componens_length = second.length + } + + var num_components = first.length; + while (num_components < max_componens_length) { + first.push(0); + num_components = num_components +1; + } + + var num_components = second.length; + while (num_components < max_componens_length) { + second.push(0); + num_components = num_components +1; + } + + if (first[0] > second[0] || + (first[0] === second[0] && first[1] > second[1]) || + (first[0] === second[0] && first[1] === second[1] && first[2] >= second[2])) { + return true; + } + + return false; + }, + + login: function () { + var response, request = new HttpRequest(Vcenter.tls.options); + request.setHttpAuth(HTTPAUTH_BASIC, Vcenter.params.username, Vcenter.params.password); + request.addHeader('Accept: application/json'); + request.addHeader('Content-Type: application/json'); + + response = request.post(Vcenter.params.url + '/api/session', ''); + if (request.getStatus() >= 200 && request.getStatus() < 300 && (!JSON.parse(response).error)) { + Vcenter.vmware_api_session_id = Vcenter.removeQuotes(response); + return true; + } + + response = request.post(Vcenter.params.url + '/rest/com/vmware/cis/session', ''); + if (request.getStatus() >= 200 && request.getStatus() < 300) { + Vcenter.vmware_api_session_id = JSON.parse(response).value; + return true; + } + + return false; + }, + + logout: function () { + path = '/rest/com/vmware/cis/session'; + if (Vcenter.vmware_api_version && Vcenter.isGtOrEqVersion(Vcenter.vmware_api_version, '7.0.2')) { + path = '/api/session'; + } + + Vcenter.request(Vcenter.params.url + path, 'delete'); + }, + + get_version: function () { + path = '/rest/appliance/system/version'; + + try { + Vcenter.vmware_api_version = Vcenter.request(Vcenter.params.url + path, 'get').version; + return true; + } + catch (error) { + return false; + } + }, + + removeQuotes: function (str){ + if (str.startsWith('"') && str.endsWith('"')) { + return str.slice(1, -1); + } + + return str; + }, + + getHealthStatus: function () { + path = '/api/appliance/health/system'; + if (!Vcenter.isGtOrEqVersion(Vcenter.vmware_api_version, '7.0.2')) { + path = '/rest/appliance/health/system'; + } + + result = Vcenter.removeQuotes(Vcenter.request(Vcenter.params.url + path, 'get')); + + const idx = [ + 'green', + 'yellow', + 'orange', + 'red', + 'gray' + ].indexOf(result.toLowerCase()); + Vcenter.health_status = idx !== -1 ? idx : 5; + }, + + request: function (url, method) { + var response, request = new HttpRequest(Vcenter.tls.options); + + if (typeof Vcenter.params.proxy !== 'undefined' && Vcenter.params.proxy !== '') { + request.setProxy(Vcenter.params.proxy); + } + + request.setHttpAuth(HTTPAUTH_NONE); + request.addHeader("Cookie: vmware-api-session-id=" + Vcenter.vmware_api_session_id); + + Zabbix.log(4, '[ VMware vCenter ] Sending request: ' + url); + + switch (method) { + case 'get': + response = request.get(url); + break; + + case 'post': + response = request.post(url); + break; + + case 'delete': + response = request.delete(url); + break; + + default: + throw 'Unsupported HTTP request method: ' + method; + } + + Zabbix.log(4, '[ VMware vCenter ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() < 200 || request.getStatus() >= 300) { + throw 'Cannot connect to VMware vCenter. Check debug log for more information.'; + } + + if (method !== 'delete' && JSON.parse(response).value) { + return JSON.parse(response).value; + } + else { + return response; + } + } + }; + + try { + Vcenter.setParams(JSON.parse(value)); + + if (Vcenter.login() && Vcenter.get_version() && Vcenter.isGtOrEqVersion(Vcenter.vmware_api_version, '6.5.0')) { + Vcenter.getHealthStatus(); + } + else { + Vcenter.health_status = 6; + } + + if (Vcenter.vmware_api_session_id) { + Vcenter.logout(); + } + } + catch (error) { + Zabbix.log(3, '[ VMware vCenter ] ERROR: ' + error); + Vcenter.error_msg = 'Failed to get data from API:' + error; + } + + return JSON.stringify({'health': Vcenter.health_status, 'error': Vcenter.error_msg}); + description: 'Gets overall health of the system. This item works only with VMware vCenter versions above 6.5.' + timeout: '10' + parameters: + - name: password + value: '{$VMWARE.PASSWORD}' + - name: proxy + value: '{$VMWARE.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"VMware FQDN"}' + - name: url + value: '{$VMWARE.URL}' + - name: username + value: '{$VMWARE.USERNAME}' + tags: + - tag: component + value: raw + - uuid: 5007e23b563f4d9fb47de91d349a563a + name: 'Overall Health VC State' + type: DEPENDENT + key: vmware.health.state + delay: '0' + description: | + VMware Overall health of system. One of the following: + - Gray: No health data is available for this service. + - Green: Service is healthy. + - Yellow: The service is in a healthy state, but experiencing some level of problems. + - Orange: The service health is degraded. The service might have serious problems. + - Red: The service is unavailable, not functioning properly, or will stop functioning soon. + - Not available: The health status is unavailable (not supported on the vCenter or ESXi side). + valuemap: + name: 'VMware Overall Health VC State' + preprocessing: + - type: JSONPATH + parameters: + - $.health + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: vmware.health.get + tags: + - tag: component + value: health + triggers: + - uuid: 426ea642132848b8b77d42d2235c244c + expression: 'last(/VMware FQDN/vmware.health.state)>0 and last(/VMware FQDN/vmware.health.state)<>6' + name: 'VMware FQDN: Overall Health VC State is not Green' + opdata: 'Current Overall Health VC State: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'One or more components in the appliance might be in an unusable status and the appliance might soon become unresponsive.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: edfdedd78e9c4c299a1555bd13b2f677 + name: Version + type: SIMPLE + key: 'vmware.version[{$VMWARE.URL}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware service version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + discovery_rules: + - uuid: e108f082ec8a4283a5650fdcff4cacad + name: 'VMware alarm discovery' + type: DEPENDENT + key: vmware.alarms.discovery + delay: '0' + lifetime: '0' + description: 'Discovery of alarms.' + item_prototypes: + - uuid: 8e08a252b7344e10850bd177045e9a55 + name: '{#VMWARE.ALARMS.NAME} {#VMWARE.ALARMS.ENTITY.NAME}' + type: DEPENDENT + key: 'vmware.alarms.status["{#VMWARE.ALARMS.KEY}"]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'VMware alarm status.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.key == "{#VMWARE.ALARMS.KEY}")].key.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '-1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'vmware.alarms.get[{$VMWARE.URL}]' + tags: + - tag: component + value: alarms + trigger_prototypes: + - uuid: 156400a8c7c04b25b99c540824168a36 + expression: 'last(/VMware FQDN/vmware.alarms.status["{#VMWARE.ALARMS.KEY}"])<>-1' + name: 'VMware FQDN: {#VMWARE.ALARMS.NAME} {#VMWARE.ALARMS.ENTITY.NAME}' + description: | + '{#VMWARE.ALARMS.DESC}' + Type: {#VMWARE.ALARMS.ENTITY.TYPE} + UUID: {#VMWARE.ALARMS.ENTITY.UUID} + ID: {#VMWARE.ALARMS.ENTITY.ID} + tags: + - tag: scope + value: notice + master_item: + key: 'vmware.alarms.get[{$VMWARE.URL}]' + lld_macro_paths: + - lld_macro: '{#VMWARE.ALARMS.DESC}' + path: $.description + - lld_macro: '{#VMWARE.ALARMS.ENTITY.ID}' + path: $.entity.id + - lld_macro: '{#VMWARE.ALARMS.ENTITY.NAME}' + path: $.entity.name + - lld_macro: '{#VMWARE.ALARMS.ENTITY.TYPE}' + path: $.entity.type + - lld_macro: '{#VMWARE.ALARMS.ENTITY.UUID}' + path: $.entity.uuid + - lld_macro: '{#VMWARE.ALARMS.KEY}' + path: $.key + - lld_macro: '{#VMWARE.ALARMS.NAME}' + path: $.name + - lld_macro: '{#VMWARE.ALARMS.STATUS}' + path: $.overall_status + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Trigger priority red' + step: '1' + filter: + conditions: + - macro: '{#VMWARE.ALARMS.STATUS}' + value: red + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'VMware: *' + severity: HIGH + - name: 'Trigger priority yellow' + step: '2' + filter: + conditions: + - macro: '{#VMWARE.ALARMS.STATUS}' + value: yellow + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'VMware: *' + severity: WARNING + - name: 'Trigger priority green' + step: '3' + filter: + conditions: + - macro: '{#VMWARE.ALARMS.STATUS}' + value: green + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: 'VMware: *' + severity: INFO + - uuid: dc0a844c06f7456b8643f9f9672e6b8e + name: 'VMware cluster discovery' + type: SIMPLE + key: 'vmware.cluster.discovery[{$VMWARE.URL}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of clusters.' + item_prototypes: + - uuid: 41fbb29592f9495e92d88240ce2ba7a5 + name: 'Status of [{#CLUSTER.NAME}] cluster' + type: SIMPLE + key: 'vmware.cluster.status[{$VMWARE.URL},{#CLUSTER.NAME}]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: | + VMware cluster status. One of the following: + - Gray: Unknown; + - Green: OK; + - Yellow: It might have a problem; + - Red: It has a problem. + valuemap: + name: 'VMware status' + tags: + - tag: cluster + value: '{#CLUSTER.NAME}' + - tag: component + value: cluster + trigger_prototypes: + - uuid: 962adf853de24f589e34df7ddd560885 + expression: 'last(/VMware FQDN/vmware.cluster.status[{$VMWARE.URL},{#CLUSTER.NAME}])=3' + name: 'VMware FQDN: The [{#CLUSTER.NAME}] status is Red' + priority: HIGH + description: 'A cluster enabled for DRS becomes invalid (red) when the tree is no longer internally consistent, that is, when resource constraints are not observed. See also: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-C7417CAA-BD38-41D0-9529-9E7A5898BB12.html' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 44d12ca67931452194d1e1071136015d + expression: 'last(/VMware FQDN/vmware.cluster.status[{$VMWARE.URL},{#CLUSTER.NAME}])=2' + name: 'VMware FQDN: The [{#CLUSTER.NAME}] status is Yellow' + priority: AVERAGE + description: 'A cluster becomes overcommitted (yellow) when the tree of resource pools and virtual machines is internally consistent but the cluster does not have the capacity to support all the resources reserved by the child resource pools. See also: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-ED8240A0-FB54-4A31-BD3D-F23FE740F10C.html' + dependencies: + - name: 'VMware FQDN: The [{#CLUSTER.NAME}] status is Red' + expression: 'last(/VMware FQDN/vmware.cluster.status[{$VMWARE.URL},{#CLUSTER.NAME}])=3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3cd02594ee644dbe88bdfc4f4257ae05 + name: 'VMware datastore discovery' + type: SIMPLE + key: 'vmware.datastore.discovery[{$VMWARE.URL}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of VMware datastores.' + item_prototypes: + - uuid: 0ed09f26cbad4d96bea297da4215d73b + name: 'Average read latency of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.datastore.read[{$VMWARE.URL},{#DATASTORE.UUID},latency]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Amount of time for a read operation from the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: c2687322c7914ec3b5519b73f1723aeb + name: 'Average read IOPS of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.datastore.read[{$VMWARE.URL},{#DATASTORE.UUID},rps]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'IOPS for a read operation from the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: a2b1785fc773404e9ce69bcd868c5b88 + name: 'Free space on datastore [{#DATASTORE}] (percentage)' + type: SIMPLE + key: 'vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree]' + delay: 5m + value_type: FLOAT + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware datastore free space (percentage from the total).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + trigger_prototypes: + - uuid: 8eaaf5e25c464162acf2c93c2fab4606 + expression: 'last(/VMware FQDN/vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree])<{$VMWARE.DATASTORE.SPACE.CRIT}' + name: 'VMware FQDN: [{#DATASTORE}]: Free space is critically low' + event_name: 'VMware FQDN: Datastore free space is critically low ([{#DATASTORE}] free space < {$VMWARE.DATASTORE.SPACE.CRIT}%)' + priority: HIGH + description: 'Datastore free space has fallen below the critical threshold.' + tags: + - tag: scope + value: capacity + - uuid: 574963524fda419baae5d07c32f2fb89 + expression: 'last(/VMware FQDN/vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree])<{$VMWARE.DATASTORE.SPACE.WARN}' + name: 'VMware FQDN: [{#DATASTORE}]: Free space is low' + event_name: 'VMware FQDN: Datastore free space is low ([{#DATASTORE}] free space < {$VMWARE.DATASTORE.SPACE.WARN}%)' + priority: WARNING + description: 'Datastore free space has fallen below the warning threshold.' + dependencies: + - name: 'VMware FQDN: [{#DATASTORE}]: Free space is critically low' + expression: 'last(/VMware FQDN/vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree])<{$VMWARE.DATASTORE.SPACE.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: 78fb4b4b0eec44a99207f8354773269d + name: 'Total size of datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID}]' + delay: 5m + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware datastore space in bytes.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: d9570c0822cc4996a7dda1ddb9426404 + name: 'Average write latency of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.datastore.write[{$VMWARE.URL},{#DATASTORE.UUID},latency]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Amount of time for a write operation to the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: a72c4a6247be4f968c1740de556732bd + name: 'Average write IOPS of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.datastore.write[{$VMWARE.URL},{#DATASTORE.UUID},rps]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'IOPS for a write operation to the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + overrides: + - name: 'Disable IO perfCounter' + step: '1' + filter: + conditions: + - macro: '{#DATASTORE.TYPE}' + value: vsan|nfs + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Average + discover: NO_DISCOVER + - uuid: 988bb85b325449b29780eeda15c73620 + name: 'VMware hypervisor discovery' + type: SIMPLE + key: 'vmware.hv.discovery[{$VMWARE.URL}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of hypervisors.' + host_prototypes: + - uuid: 51cf7ea3e6a74f7e8dde628dbc5347a3 + host: '{#HV.UUID}' + name: '{#HV.NAME}' + group_links: + - group: + name: Applications + group_prototypes: + - name: '{#CLUSTER.NAME} (hypervisor)' + - name: '{#DATACENTER.NAME}' + templates: + - name: 'VMware Hypervisor' + macros: + - macro: '{$VMWARE.HV.UUID}' + value: '{#HV.UUID}' + description: 'UUID of hypervisor.' + custom_interfaces: 'YES' + interfaces: + - ip: '{#HV.IP}' + - uuid: a7e2f6830442433cbe515e8bd72ee0b8 + name: 'VMware VM FQDN discovery' + type: SIMPLE + key: 'vmware.vm.discovery[{$VMWARE.URL}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#VM.DNS}' + value: ^$ + operator: NOT_MATCHES_REGEX + formulaid: A + - macro: '{#VM.POWERSTATE}' + value: '{$VMWARE.VM.POWERSTATE}' + formulaid: B + description: 'Discovery of guest virtual machines.' + host_prototypes: + - uuid: a12e25c500a14fcf99295c207371ca1b + host: '{#VM.DNS}' + name: '{#VM.NAME}' + group_links: + - group: + name: Applications + group_prototypes: + - name: '{#CLUSTER.NAME} (vm)' + - name: '{#DATACENTER.NAME}/{#VM.FOLDER} (vm)' + - name: '{#HV.NAME}' + templates: + - name: 'VMware Guest' + macros: + - macro: '{$VMWARE.VM.UUID}' + value: '{#VM.UUID}' + description: 'UUID of guest virtual machine.' + custom_interfaces: 'YES' + interfaces: + - ip: '{#VM.IP}' + tags: + - tag: class + value: software + - tag: target + value: vmware + - tag: target + value: vmware-fqdn + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "VMware FQDN", e.g. {$HTTP.TLS.VERIFY:"VMware FQDN"}.' + - macro: '{$VMWARE.DATASTORE.SPACE.CRIT}' + value: '10' + description: 'The critical threshold of the datastore free space.' + - macro: '{$VMWARE.DATASTORE.SPACE.WARN}' + value: '20' + description: 'The warning threshold of the datastore free space.' + - macro: '{$VMWARE.HV.SENSOR.DISCOVERY}' + value: 'false' + description: 'Set "true"/"false" to enable or disable monitoring of hardware sensors.' + - macro: '{$VMWARE.HV.SENSOR.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of hardware sensor names to be allowed in discovery.' + - macro: '{$VMWARE.HV.SENSOR.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of hardware sensor names to be ignored in discovery.' + - macro: '{$VMWARE.PASSWORD}' + type: SECRET_TEXT + description: 'VMware service `{$USERNAME}` user password.' + - macro: '{$VMWARE.PROXY}' + description: 'Sets the HTTP proxy for script items. If this parameter is empty, then no proxy is used.' + - macro: '{$VMWARE.URL}' + description: 'VMware service (vCenter or ESX hypervisor) SDK URL (https://servername/sdk).' + - macro: '{$VMWARE.USERNAME}' + description: 'VMware service user name.' + - macro: '{$VMWARE.VM.POWERSTATE}' + value: poweredOn|poweredOff|suspended + description: 'Possibility to filter out VMs by power state.' + dashboards: + - uuid: 90bc032e4b384e4891f6067267343abc + name: Overview + pages: + - name: 'VMware: Overview' + widgets: + - type: honeycomb + name: 'Overall status' + width: '15' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: items.0 + value: 'Overall Health VC State' + - type: STRING + name: primary_label + value: 'Overall status' + - type: STRING + name: reference + value: AAAAA + - type: STRING + name: thresholds.0.color + value: 80FF00 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFFF00 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FFBF00 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: FF465C + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: STRING + name: thresholds.4.color + value: D2D2D2 + - type: STRING + name: thresholds.4.threshold + value: '4' + - type: STRING + name: thresholds.5.color + value: D2D2D2 + - type: STRING + name: thresholds.5.threshold + value: '5' + - type: STRING + name: thresholds.6.color + value: 90A4AE + - type: STRING + name: thresholds.6.threshold + value: '6' + - type: honeycomb + name: 'Total size of datastore' + 'y': '4' + width: '36' + height: '8' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: 'Total size of datastore*' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("datastore.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: item + name: 'Full name' + x: '15' + width: '57' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware FQDN' + key: 'vmware.fullname[{$VMWARE.URL}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Version + x: '15' + 'y': '2' + width: '57' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware FQDN' + key: 'vmware.version[{$VMWARE.URL}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: honeycomb + name: 'Free space on datastore' + x: '36' + 'y': '4' + width: '36' + height: '8' + fields: + - type: STRING + name: items.0 + value: 'Free space on datastore*' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("datastore.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '10' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '20' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '30' + - name: 'VMware: Datastore' + widgets: + - type: graphprototype + name: 'Average read IOps of the datastore' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware FQDN' + key: 'vmware.datastore.read[{$VMWARE.URL},{#DATASTORE.UUID},rps]' + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average read latency of the datastore' + 'y': '6' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware FQDN' + key: 'vmware.datastore.read[{$VMWARE.URL},{#DATASTORE.UUID},latency]' + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average write IOps of the datastore' + x: '36' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware FQDN' + key: 'vmware.datastore.write[{$VMWARE.URL},{#DATASTORE.UUID},rps]' + - type: STRING + name: reference + value: AAAAF + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average write latency of the datastore' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware FQDN' + key: 'vmware.datastore.write[{$VMWARE.URL},{#DATASTORE.UUID},latency]' + - type: STRING + name: reference + value: AAAAG + - type: INTEGER + name: source_type + value: '3' + valuemaps: + - uuid: 30aec8e3198e4b91b1182514be8a8f6b + name: 'VMware Overall Health VC State' + mappings: + - value: '0' + newvalue: Green + - value: '1' + newvalue: Yellow + - value: '2' + newvalue: Orange + - value: '3' + newvalue: Red + - value: '4' + newvalue: Gray + - value: '5' + newvalue: Unknown + - value: '6' + newvalue: 'Not available' + - uuid: 5e5e3b01ef334bd39441568ebd0c31c0 + name: 'VMware status' + mappings: + - value: '0' + newvalue: Gray + - value: '1' + newvalue: Green + - value: '2' + newvalue: Yellow + - value: '3' + newvalue: Red diff --git a/VMware_Guest.yaml b/VMware_Guest.yaml new file mode 100644 index 0000000..903db46 --- /dev/null +++ b/VMware_Guest.yaml @@ -0,0 +1,2516 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 7942fb93ae3b47cf9ca0ea4beb0675ce + template: 'VMware Guest' + name: 'VMware Guest' + description: | + Note: To enable trigger for free space for guest VM, set macro '{$VMWARE.VM.FS.TRIGGER.USED}' to the value '1' on the discovered host level. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Applications + items: + - uuid: 061eed2d40d5427092b50172ea0a9c41 + name: 'Cluster name' + type: SIMPLE + key: 'vmware.vm.cluster.name[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Cluster name of the guest VM.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: cluster + - uuid: 20332e3c1ea54266a02ad500bc9ec1ca + name: 'Snapshot consolidation needed' + type: SIMPLE + key: 'vmware.vm.consolidationneeded[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: | + Displays whether snapshot consolidation is needed or not. One of the following: + - True; + - False. + valuemap: + name: 'VMware Consolidation' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'true', + 'false' + ].indexOf(value); + return idx !== -1 ? idx : 2; + tags: + - tag: component + value: storage + triggers: + - uuid: 28627af63fe64e79b08ad752dee5205e + expression: 'last(/VMware Guest/vmware.vm.consolidationneeded[{$VMWARE.URL},{$VMWARE.VM.UUID}])=0' + name: 'VMware Guest: Snapshot consolidation needed' + priority: AVERAGE + description: 'Snapshot consolidation needed.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 31389342688f4b0696a49431923a528f + name: 'CPU latency in percent' + type: SIMPLE + key: 'vmware.vm.cpu.latency[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + value_type: FLOAT + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Percentage of time the VM is unable to run because it is contending for access to the physical CPU(s).' + tags: + - tag: component + value: cpu + - uuid: bbfb146e74144160b2e47c0f2cdc6c20 + name: 'Number of virtual CPUs' + type: SIMPLE + key: 'vmware.vm.cpu.num[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Number of virtual CPUs assigned to the guest.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: cpu + - uuid: f4d72109b7ee4e0bb65aab1de85b6b05 + name: 'CPU readiness latency in percent' + type: SIMPLE + key: 'vmware.vm.cpu.readiness[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + value_type: FLOAT + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Percentage of time that the virtual machine was ready, but was unable to get scheduled to run on the physical CPU.' + tags: + - tag: component + value: cpu + - uuid: ff0a31df94784cfbbf10deca55f76145 + name: 'CPU ready' + type: SIMPLE + key: 'vmware.vm.cpu.ready[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: ms + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Time that the VM was ready, but unable to get scheduled to run on the physical CPU during the last measurement interval (VMware vCenter/ESXi Server performance counter sampling interval - 20 seconds).' + tags: + - tag: component + value: cpu + - uuid: 50de05f27f33425cb207a3fdece7ecb1 + name: 'CPU swap-in latency in percent' + type: SIMPLE + key: 'vmware.vm.cpu.swapwait[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Percentage of CPU time spent waiting for a swap-in.' + tags: + - tag: component + value: cpu + - uuid: 50606be978814b51b4bae54340965cdc + name: 'CPU usage in percent' + type: SIMPLE + key: 'vmware.vm.cpu.usage.perf[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + value_type: FLOAT + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'CPU usage as a percentage during the interval.' + tags: + - tag: component + value: cpu + - uuid: ea416ff054cc4031ac6b5cf446156540 + name: 'CPU usage' + type: SIMPLE + key: 'vmware.vm.cpu.usage[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: Hz + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Current upper-bound on CPU usage. The upper-bound is based on the host the VM is current running on, as well as limits configured on the VM itself or any parent resource pool. Valid while the VM is running.' + tags: + - tag: component + value: cpu + - uuid: 3e70b5d443b942db974b5f92a7acce19 + name: 'Datacenter name' + type: SIMPLE + key: 'vmware.vm.datacenter.name[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Datacenter name of the guest VM.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: datacenter + - uuid: e645130999db470fbbf14a8055c95b23 + name: 'Guest memory swapped' + type: SIMPLE + key: 'vmware.vm.guest.memory.size.swapped[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Amount of guest physical memory that is swapped out to the swap space.' + tags: + - tag: component + value: memory + - uuid: 521a0396514845e3bc5d3dc54ec3d940 + name: 'Uptime of guest OS' + type: SIMPLE + key: 'vmware.vm.guest.osuptime[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: uptime + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Total time elapsed since the last operating system boot-up (in seconds). Data is collected if Guest OS Add-ons (VMware Tools) are installed.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '0' + - 'Performance counter data is not available.' + tags: + - tag: component + value: system + - uuid: fedec469a1d040ae971e0013102e1e7c + name: 'Hypervisor name' + type: SIMPLE + key: 'vmware.vm.hv.name[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Hypervisor name of the guest VM.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: hypervisor + - uuid: fbe7477fd85a4ee39a9226b2c6995446 + name: 'Ballooned memory' + type: SIMPLE + key: 'vmware.vm.memory.size.ballooned[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The amount of guest physical memory that is currently reclaimed through the balloon driver.' + tags: + - tag: component + value: memory + - uuid: 9e7b9360e4d84e9397b5f0a7ab074726 + name: 'Compressed memory' + type: SIMPLE + key: 'vmware.vm.memory.size.compressed[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The amount of memory currently in the compression cache for this VM.' + tags: + - tag: component + value: memory + - uuid: 04a40f805fed4ddfa1590274a996a019 + name: 'Host memory consumed' + type: SIMPLE + key: 'vmware.vm.memory.size.consumed[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Amount of host physical memory consumed for backing up guest physical memory pages.' + tags: + - tag: component + value: memory + - uuid: 6563409185804ed89b49dfde92edfa10 + name: 'Private memory' + type: SIMPLE + key: 'vmware.vm.memory.size.private[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Amount of memory backed by host memory and not being shared.' + tags: + - tag: component + value: memory + - uuid: c6a539ee57bf48f78342358c391c65ea + name: 'Shared memory' + type: SIMPLE + key: 'vmware.vm.memory.size.shared[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The amount of guest physical memory shared through transparent page sharing.' + tags: + - tag: component + value: memory + - uuid: b064f0e0a53f4f6588827100becb4335 + name: 'Swapped memory' + type: SIMPLE + key: 'vmware.vm.memory.size.swapped[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The amount of guest physical memory swapped out to the VM''s swap device by ESX.' + tags: + - tag: component + value: memory + - uuid: e960399726a240de9ecc12eff65415ae + name: 'Guest memory usage' + type: SIMPLE + key: 'vmware.vm.memory.size.usage.guest[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The amount of guest physical memory that is being used by the VM.' + tags: + - tag: component + value: memory + - uuid: 6fcbe4e95fce445aa417b9738004391f + name: 'Host memory usage' + type: SIMPLE + key: 'vmware.vm.memory.size.usage.host[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The amount of host physical memory allocated to the VM, accounting for the amount saved from memory sharing with other VMs.' + tags: + - tag: component + value: memory + - uuid: 9533bc39366443fe8a3808190801441a + name: 'Memory size' + type: SIMPLE + key: 'vmware.vm.memory.size[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + delay: 1h + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Total size of configured memory.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: memory + - uuid: e82daa73e03e43b9838d9e414d710e38 + name: 'Host memory usage in percent' + type: SIMPLE + key: 'vmware.vm.memory.usage[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + value_type: FLOAT + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Percentage of host physical memory that has been consumed.' + tags: + - tag: component + value: memory + - uuid: 0943ff346c9d4cc69fc773843066c473 + name: 'Power state' + type: SIMPLE + key: 'vmware.vm.powerstate[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: | + The current power state of the VM. One of the following: + - Powered off; + - Powered on; + - Suspended. + valuemap: + name: 'VMware VirtualMachinePowerState' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: power + - uuid: deb129a3dcb04008a8fbdc64c6f11c7f + name: 'Boot time' + type: SIMPLE + key: 'vmware.vm.property[{$VMWARE.URL},{$VMWARE.VM.UUID},runtime.bootTime]' + units: unixtime + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'System boot time.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - 'return Math.floor(Date.parse(value)/1000);' + tags: + - tag: component + value: system + - uuid: de013bcc700f4878ab80aa3fdd87cc8c + name: 'Snapshot count' + type: DEPENDENT + key: vmware.vm.snapshot.count + delay: '0' + description: 'Snapshot count of the guest VM.' + preprocessing: + - type: JSONPATH + parameters: + - $.count + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'vmware.vm.snapshot.get[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + tags: + - tag: component + value: storage + - uuid: 550350d76aa346c49ef828418ebc53be + name: 'Get snapshots' + type: SIMPLE + key: 'vmware.vm.snapshot.get[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Snapshots of the guest VM.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: raw + - uuid: da2d382ba9554661ba476e1f3d5294b3 + name: 'Snapshot latest date' + type: DEPENDENT + key: vmware.vm.snapshot.latestdate + delay: '0' + value_type: CHAR + trends: '0' + description: 'Latest snapshot date of the guest VM.' + preprocessing: + - type: JSONPATH + parameters: + - $.latestdate + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'vmware.vm.snapshot.get[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + tags: + - tag: component + value: storage + - uuid: 2e68d5709d4f46b49b62d37a890e4193 + name: 'VM state' + type: SIMPLE + key: 'vmware.vm.state[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: | + VMware virtual machine state. One of the following: + - Not running; + - Resetting; + - Running; + - Shutting down; + - Standby; + - Unknown. + valuemap: + name: 'VMware Virtual Machine state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'notRunning', + 'resetting', + 'running', + 'shuttingDown', + 'standby', + 'unknown' + ].indexOf(value); + return idx !== -1 ? idx : 5; + tags: + - tag: component + value: health + - tag: component + value: system + triggers: + - uuid: 6ebb2a2de81e4bacbb32d1b767c3cb04 + expression: 'last(/VMware Guest/vmware.vm.state[{$VMWARE.URL},{$VMWARE.VM.UUID}]) <> 2' + name: 'VMware Guest: VM is not running' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'VMware virtual machine is not running.' + tags: + - tag: scope + value: notice + - uuid: 13173517c99e4a87aa6750392d14b255 + name: 'Committed storage space' + type: SIMPLE + key: 'vmware.vm.storage.committed[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Total storage space, in bytes, committed to this VM across all datastores.' + tags: + - tag: component + value: storage + - uuid: 8183cf2c54774d7eb544f645d5c26b8c + name: 'Uncommitted storage space' + type: SIMPLE + key: 'vmware.vm.storage.uncommitted[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Additional storage space, in bytes, potentially used by this VM on all datastores.' + tags: + - tag: component + value: storage + - uuid: 35aa9ee1743e4c1787c426da20f48097 + name: 'Unshared storage space' + type: SIMPLE + key: 'vmware.vm.storage.unshared[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Total storage space, in bytes, occupied by the VM across all datastores that is not shared with any other VM.' + tags: + - tag: component + value: storage + - uuid: 6089b7822620423aa2b2e66066d33217 + name: 'VMware Tools status' + type: SIMPLE + key: 'vmware.vm.tools[{$VMWARE.URL},{$VMWARE.VM.UUID},status]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: | + Monitoring of VMware Tools. One of the following: + - Guest tools executing scripts: VMware Tools is starting. + - Guest tools not running: VMware Tools is not running. + - Guest tools running: VMware Tools is running. + valuemap: + name: 'VMware Tools status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'guestToolsExecutingScripts', + 'guestToolsNotRunning', + 'guestToolsRunning' + ].indexOf(value); + return idx !== -1 ? idx : 10; + tags: + - tag: component + value: system + triggers: + - uuid: 132d6e490fea42e390de64ce389ad538 + expression: 'last(/VMware Guest/vmware.vm.tools[{$VMWARE.URL},{$VMWARE.VM.UUID},status]) = 1' + name: 'VMware Guest: VMware Tools is not running' + priority: WARNING + description: 'VMware Tools is not running on the VM.' + dependencies: + - name: 'VMware Guest: VM is not running' + expression: 'last(/VMware Guest/vmware.vm.state[{$VMWARE.URL},{$VMWARE.VM.UUID}]) <> 2' + tags: + - tag: scope + value: notice + - uuid: 3870a0d8bfd1474db6e096a1a9a246b3 + name: 'VMware Tools version' + type: SIMPLE + key: 'vmware.vm.tools[{$VMWARE.URL},{$VMWARE.VM.UUID},version]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Monitoring of the VMware Tools version.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 4c3b010d7ea74da6b0dc1dd4e625bbb0 + name: Uptime + type: SIMPLE + key: 'vmware.vm.uptime[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + units: uptime + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'System uptime.' + tags: + - tag: component + value: system + discovery_rules: + - uuid: 914634668bab4266bd641ee224dbc1e4 + name: 'Network device discovery' + type: SIMPLE + key: 'vmware.vm.net.if.discovery[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of all network devices.' + item_prototypes: + - uuid: 1a7452a0061b45b1b1904e3ff64cf49f + name: 'Number of bytes received on interface [{#IFBACKINGDEVICE}]/[{#IFDESC}]' + type: SIMPLE + key: 'vmware.vm.net.if.in[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME},bps]' + units: Bps + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine network interface input statistics (bytes per second).' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFDESC}' + - uuid: 863c3aee5d9248d48adbf86832fa6c8e + name: 'Number of packets received on interface [{#IFBACKINGDEVICE}]/[{#IFDESC}]' + type: SIMPLE + key: 'vmware.vm.net.if.in[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME},pps]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine network interface input statistics (packets per second).' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFDESC}' + - uuid: 0993e42664a14cd7936351c55b1d64a4 + name: 'Number of bytes transmitted on interface [{#IFBACKINGDEVICE}]/[{#IFDESC}]' + type: SIMPLE + key: 'vmware.vm.net.if.out[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME},bps]' + units: Bps + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine network interface output statistics (bytes per second).' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFDESC}' + - uuid: 144a2ed3f76e49af92462e0fea275ede + name: 'Number of packets transmitted on interface [{#IFBACKINGDEVICE}]/[{#IFDESC}]' + type: SIMPLE + key: 'vmware.vm.net.if.out[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME},pps]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine network interface output statistics (packets per second).' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFDESC}' + - uuid: 9c3cd13576cc4c0a8972fa188f911e96 + name: 'Network utilization on interface [{#IFBACKINGDEVICE}]/[{#IFDESC}]' + type: SIMPLE + key: 'vmware.vm.net.if.usage[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME}]' + units: Bps + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine network utilization (combined transmit and receive rates) during the interval.' + tags: + - tag: component + value: interface + - tag: interface + value: '{#IFDESC}' + - uuid: b1543bdfb5a342d7ad694c87248fe173 + name: 'Disk device discovery' + type: SIMPLE + key: 'vmware.vm.vfs.dev.discovery[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of all disk devices.' + item_prototypes: + - uuid: a4886b1072314819aaf21183949c94bb + name: 'Average number of outstanding read requests to the disk [{#DISKDESC}]' + type: SIMPLE + key: 'vmware.vm.storage.readoio[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME}]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Average number of outstanding read requests to the virtual disk during the collection interval.' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DISKDESC}' + - uuid: 172e4882d39f49d486ab5590163fdd4b + name: 'Average read latency from the disk [{#DISKDESC}]' + type: SIMPLE + key: 'vmware.vm.storage.totalreadlatency[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME}]' + units: '!ms' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The average time a read from the virtual disk takes.' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DISKDESC}' + - uuid: 4fe54828be084b15bb92507106756a5f + name: 'Average write latency to the disk [{#DISKDESC}]' + type: SIMPLE + key: 'vmware.vm.storage.totalwritelatency[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME}]' + units: '!ms' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The average time a write to the virtual disk takes.' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DISKDESC}' + - uuid: a74614af101c404eb7ebec10319dca05 + name: 'Average number of outstanding write requests to the disk [{#DISKDESC}]' + type: SIMPLE + key: 'vmware.vm.storage.writeoio[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME}]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Average number of outstanding write requests to the virtual disk during the collection interval.' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DISKDESC}' + - uuid: bd151efc8a0b41e9b64cbf21303fc659 + name: 'Average number of bytes read from the disk [{#DISKDESC}]' + type: SIMPLE + key: 'vmware.vm.vfs.dev.read[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME},bps]' + units: Bps + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine disk device read statistics (bytes per second).' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DISKDESC}' + - uuid: e6248013150d4f23a0774f6cc80e8df3 + name: 'Average number of reads from the disk [{#DISKDESC}]' + type: SIMPLE + key: 'vmware.vm.vfs.dev.read[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME},ops]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine disk device read statistics (operations per second).' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DISKDESC}' + - uuid: 7ea68380b855460b8e51281223659661 + name: 'Average number of bytes written to the disk [{#DISKDESC}]' + type: SIMPLE + key: 'vmware.vm.vfs.dev.write[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME},bps]' + units: Bps + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine disk device write statistics (bytes per second).' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DISKDESC}' + - uuid: 8344a1066f5c4ef49894d2d18fac2339 + name: 'Average number of writes to the disk [{#DISKDESC}]' + type: SIMPLE + key: 'vmware.vm.vfs.dev.write[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME},ops]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine disk device write statistics (operations per second).' + tags: + - tag: component + value: disk + - tag: disk + value: '{#DISKDESC}' + - uuid: 44ff9ef164dc4d20acf06b3368d64456 + name: 'Mounted filesystem discovery' + type: SIMPLE + key: 'vmware.vm.vfs.fs.discovery[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of all guest file systems.' + item_prototypes: + - uuid: 622e96310f9d4f54b4ed82f655fa153b + name: 'Free disk space on [{#FSNAME}]' + type: SIMPLE + key: 'vmware.vm.vfs.fs.size[{$VMWARE.URL},{$VMWARE.VM.UUID},{#FSNAME},free]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine file system statistics (bytes).' + tags: + - tag: component + value: filesystem + - tag: filesystem + value: '{#FSNAME}' + - uuid: 3103537bb1d24633a064d173b3b530f2 + name: 'Free disk space on [{#FSNAME}] (percentage)' + type: SIMPLE + key: 'vmware.vm.vfs.fs.size[{$VMWARE.URL},{$VMWARE.VM.UUID},{#FSNAME},pfree]' + value_type: FLOAT + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine file system statistics (percentage).' + tags: + - tag: component + value: filesystem + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 19c60e68a55d4910a278b6242ead7686 + expression: 'max(/VMware Guest/vmware.vm.vfs.fs.size[{$VMWARE.URL},{$VMWARE.VM.UUID},{#FSNAME},pfree],5m)<{$VMWARE.VM.FS.PFREE.MIN.CRIT:"{#FSNAME}"} and {$VMWARE.VM.FS.TRIGGER.USED:"{#FSNAME}"}=1' + name: 'VMware Guest: [{#FSNAME}]: Disk space is critically low' + event_name: 'VMware Guest: [{#FSNAME}]: Disk space is critically low (below {$VMWARE.VM.FS.PFREE.MIN.CRIT:"{#FSNAME}"}% for 5m)' + opdata: 'Space free: {ITEM.LASTVALUE}' + priority: AVERAGE + description: 'The disk free space on [{#FSNAME}] has been less than `{$VMWARE.VM.FS.PFREE.MIN.CRIT:"{#FSNAME}"}`% for 5m.' + manual_close: 'YES' + tags: + - tag: scope + value: capacity + - uuid: cc995d4c595d46ee80954fd4bb3e0b1b + expression: 'max(/VMware Guest/vmware.vm.vfs.fs.size[{$VMWARE.URL},{$VMWARE.VM.UUID},{#FSNAME},pfree],5m)<{$VMWARE.VM.FS.PFREE.MIN.WARN:"{#FSNAME}"} and {$VMWARE.VM.FS.TRIGGER.USED:"{#FSNAME}"}=1' + name: 'VMware Guest: [{#FSNAME}]: Disk space is low' + event_name: 'VMware Guest: [{#FSNAME}]: Disk space is low (below {$VMWARE.VM.FS.PFREE.MIN.WARN:"{#FSNAME}"}% for 5m)' + opdata: 'Space free: {ITEM.LASTVALUE}' + priority: WARNING + description: 'The disk free space on [{#FSNAME}] has been less than `{$VMWARE.VM.FS.PFREE.MIN.WARN:"{#FSNAME}"}`% for 5m.' + manual_close: 'YES' + dependencies: + - name: 'VMware Guest: [{#FSNAME}]: Disk space is critically low' + expression: 'max(/VMware Guest/vmware.vm.vfs.fs.size[{$VMWARE.URL},{$VMWARE.VM.UUID},{#FSNAME},pfree],5m)<{$VMWARE.VM.FS.PFREE.MIN.CRIT:"{#FSNAME}"} and {$VMWARE.VM.FS.TRIGGER.USED:"{#FSNAME}"}=1' + tags: + - tag: scope + value: capacity + - uuid: 08d05eac03994b56867ec302a346735c + name: 'Total disk space on [{#FSNAME}]' + type: SIMPLE + key: 'vmware.vm.vfs.fs.size[{$VMWARE.URL},{$VMWARE.VM.UUID},{#FSNAME},total]' + delay: 1h + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine total disk space (bytes).' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: filesystem + - tag: filesystem + value: '{#FSNAME}' + - uuid: 09bb15da42464d8295d5e94b1d42cc87 + name: 'Used disk space on [{#FSNAME}]' + type: SIMPLE + key: 'vmware.vm.vfs.fs.size[{$VMWARE.URL},{$VMWARE.VM.UUID},{#FSNAME},used]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware virtual machine used disk space (bytes).' + tags: + - tag: component + value: filesystem + - tag: filesystem + value: '{#FSNAME}' + tags: + - tag: class + value: software + - tag: target + value: vmware + - tag: target + value: vmware-guest + macros: + - macro: '{$VMWARE.PASSWORD}' + type: SECRET_TEXT + description: 'VMware service `{$USERNAME}` user password.' + - macro: '{$VMWARE.URL}' + description: 'VMware service (vCenter or ESX hypervisor) SDK URL (https://servername/sdk).' + - macro: '{$VMWARE.USERNAME}' + description: 'VMware service user name.' + - macro: '{$VMWARE.VM.FS.PFREE.MIN.CRIT}' + value: '10' + description: 'VMware guest free space threshold for the critical trigger.' + - macro: '{$VMWARE.VM.FS.PFREE.MIN.WARN}' + value: '20' + description: 'VMware guest free space threshold for the warning trigger.' + - macro: '{$VMWARE.VM.FS.TRIGGER.USED}' + value: '0' + description: 'VMware guest used free space trigger. Set to "1"/"0" to enable or disable the trigger.' + dashboards: + - uuid: ea7f45fa45e4429abb2fd3a675765483 + name: 'Guest VM overview' + pages: + - name: 'VMware: Guest VM Overview' + widgets: + - type: gauge + name: 'CPU utilization' + width: '21' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'CPU usage' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.usage.perf[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: svggraph + name: 'CPU and memory usage in percents' + 'y': '4' + width: '42' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 4FC3F7 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.usage.perf[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: ds.0.width + value: '3' + - type: STRING + name: ds.1.color.0 + value: FFAB91 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '5' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.usage[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: item + name: 'Number of virtual CPUs' + 'y': '8' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.num[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Committed storage space' + 'y': '10' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.storage.committed[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Memory size' + x: '15' + 'y': '8' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Uncommitted storage space' + x: '15' + 'y': '10' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.storage.uncommitted[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: gauge + name: 'Host memory usage' + x: '21' + width: '21' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Host memory usage' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.usage[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: item + name: 'VMware Tools version' + x: '30' + 'y': '8' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.tools[{$VMWARE.URL},{$VMWARE.VM.UUID},version]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: Uptime + x: '30' + 'y': '10' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.uptime[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'VM state' + x: '42' + width: '30' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.state[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: STRING + name: thresholds.0.color + value: FFBF00 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFBF00 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: 32CD32 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: FFECB3 + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: STRING + name: thresholds.4.color + value: FFECB3 + - type: STRING + name: thresholds.4.threshold + value: '4' + - type: STRING + name: thresholds.5.color + value: D2D2D2 + - type: STRING + name: thresholds.5.threshold + value: '5' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'VM Tools status' + x: '42' + 'y': '2' + width: '30' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.tools[{$VMWARE.URL},{$VMWARE.VM.UUID},status]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: STRING + name: thresholds.0.color + value: FFBF00 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFBF00 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: 32CD32 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: D2D2D2 + - type: STRING + name: thresholds.3.threshold + value: '10' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Cluster name' + x: '42' + 'y': '4' + width: '30' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cluster.name[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Datacenter name' + x: '42' + 'y': '6' + width: '30' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.datacenter.name[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Hypervisor name' + x: '42' + 'y': '8' + width: '30' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.hv.name[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Snapshot count' + x: '42' + 'y': '10' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: vmware.vm.snapshot.count + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Snapshot latest date' + x: '54' + 'y': '10' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: vmware.vm.snapshot.latestdate + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '30' + - name: 'VMware: CPU' + widgets: + - type: svggraph + name: 'CPU usage' + width: '51' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 0288D1 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.usage.perf[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: svggraph + name: 'CPU latency' + 'y': '6' + width: '51' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.latency[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: STRING + name: ds.1.color.0 + value: CE93D8 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.readiness[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: ds.1.transparency + value: '6' + - type: STRING + name: ds.2.color.0 + value: FF4000 + - type: INTEGER + name: ds.2.dataset_type + value: '0' + - type: ITEM + name: ds.2.itemids.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.swapwait[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: ds.2.transparency + value: '6' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: item + name: 'Number of virtual CPUs' + x: '51' + width: '21' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.num[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'CPU usage' + x: '51' + 'y': '2' + width: '21' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.usage[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'CPU ready' + x: '51' + 'y': '4' + width: '21' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.ready[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'CPU latency in percents' + x: '51' + 'y': '6' + width: '21' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.latency[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'CPU readiness latency in percent' + x: '51' + 'y': '8' + width: '21' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.readiness[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'CPU readiness latency in percent' + x: '51' + 'y': '10' + width: '21' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.cpu.swapwait[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - name: 'VMware: Memory' + widgets: + - type: svggraph + name: 'Host memory usage in percent' + width: '51' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: EF9A9A + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '4' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.usage[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: ds.0.transparency + value: '6' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: svggraph + name: 'Host memory usage' + 'y': '4' + width: '51' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: F06292 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.usage.guest[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: ds.0.transparency + value: '3' + - type: STRING + name: ds.1.color.0 + value: BF00FF + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.consumed[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: ds.1.transparency + value: '3' + - type: STRING + name: ds.2.color.0 + value: 90CAF9 + - type: INTEGER + name: ds.2.dataset_type + value: '0' + - type: ITEM + name: ds.2.itemids.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.usage.host[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: ds.2.transparency + value: '3' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAG + - type: item + name: 'Guest memory swapped' + 'y': '10' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.guest.memory.size.swapped[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Swapped memory' + x: '12' + 'y': '10' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.swapped[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Private memory' + x: '24' + 'y': '10' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.private[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Shared memory' + x: '36' + 'y': '10' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.shared[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Ballooned memory' + x: '48' + 'y': '10' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.ballooned[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Memory size' + x: '51' + width: '21' + height: '4' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '25' + - type: INTEGER + name: desc_size + value: '7' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Guest memory usage' + x: '51' + 'y': '4' + width: '21' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.usage.guest[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Host memory consumed' + x: '51' + 'y': '6' + width: '21' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.consumed[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Host memory usage' + x: '51' + 'y': '8' + width: '21' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.usage.host[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Compressed memory' + x: '60' + 'y': '10' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.memory.size.compressed[{$VMWARE.URL},{$VMWARE.VM.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - name: 'VMware: Storage' + widgets: + - type: graphprototype + name: 'Average number of bytes read from the disk' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.vfs.dev.read[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME},bps]' + - type: STRING + name: reference + value: AAAAH + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average read latency to the disk' + 'y': '6' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.storage.totalreadlatency[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME}]' + - type: STRING + name: reference + value: AAAAJ + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average number of bytes written to the disk' + x: '36' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.vfs.dev.write[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME},bps]' + - type: STRING + name: reference + value: AAAAK + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average write latency to the disk' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.storage.totalwritelatency[{$VMWARE.URL},{$VMWARE.VM.UUID},{#DISKNAME}]' + - type: STRING + name: reference + value: AAAAL + - type: INTEGER + name: source_type + value: '3' + - name: 'VMware: Filesystem' + widgets: + - type: honeycomb + name: 'Total disk space' + width: '36' + height: '6' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: 'Total disk space on*' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("space on.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAM + - type: graphprototype + name: 'Free disk space' + 'y': '6' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.vfs.fs.size[{$VMWARE.URL},{$VMWARE.VM.UUID},{#FSNAME},free]' + - type: STRING + name: reference + value: AAAAN + - type: INTEGER + name: source_type + value: '3' + - type: honeycomb + name: 'Free disk space' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: items.0 + value: 'Free disk space on*(percentage)' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("space on.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAO + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '10' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '20' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '30' + - type: graphprototype + name: 'Free disk space (percentage)' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.vfs.fs.size[{$VMWARE.URL},{$VMWARE.VM.UUID},{#FSNAME},pfree]' + - type: STRING + name: reference + value: AAAAP + - type: INTEGER + name: source_type + value: '3' + - name: 'VMware: Network' + widgets: + - type: graphprototype + name: 'Network utilization on interface' + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.net.if.usage[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME}]' + - type: STRING + name: reference + value: AAAAQ + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Number of bytes received on interface' + 'y': '4' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.net.if.in[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME},bps]' + - type: STRING + name: reference + value: AAAAR + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Number of packets received on interface' + 'y': '8' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.net.if.in[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME},pps]' + - type: STRING + name: reference + value: AAAAS + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Number of bytes transmitted on interface' + x: '36' + 'y': '4' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.net.if.out[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME},bps]' + - type: STRING + name: reference + value: AAAAT + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Number of packets transmitted on interface' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Guest' + key: 'vmware.vm.net.if.out[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME},pps]' + - type: STRING + name: reference + value: AAAAU + - type: INTEGER + name: source_type + value: '3' + valuemaps: + - uuid: be14ef9303f040859e6edbb13d9b64c5 + name: 'VMware Consolidation' + mappings: + - value: '0' + newvalue: 'True' + - value: '1' + newvalue: 'False' + - value: '2' + newvalue: Unknown + - uuid: 64586743ecc74b5a8b7b849cd4521f48 + name: 'VMware Tools status' + mappings: + - value: '0' + newvalue: 'Guest tools is executing scripts' + - value: '1' + newvalue: 'Guest tools is not running' + - value: '2' + newvalue: 'Guest tools is running' + - value: '10' + newvalue: Unknown + - uuid: 78f08f5c5c0047b999a2e8daa96cf8b7 + name: 'VMware VirtualMachinePowerState' + mappings: + - value: '0' + newvalue: 'Powered off' + - value: '1' + newvalue: 'Powered on' + - value: '2' + newvalue: Suspended + - uuid: 68d712e1c43c4e2d84619c9fcb965919 + name: 'VMware Virtual Machine state' + mappings: + - value: '0' + newvalue: 'Not running' + - value: '1' + newvalue: Resetting + - value: '2' + newvalue: Running + - value: '3' + newvalue: 'Shutting down' + - value: '4' + newvalue: Standby + - value: '5' + newvalue: Unknown + triggers: + - uuid: da703e83e2e146569c173fd9bc6988dd + expression: '(now() - last(/VMware Guest/vmware.vm.property[{$VMWARE.URL},{$VMWARE.VM.UUID},runtime.bootTime]) < 10m) and last(/VMware Guest/vmware.vm.powerstate[{$VMWARE.URL},{$VMWARE.VM.UUID}]) = 1' + name: 'VMware Guest: VM has been restarted' + event_name: 'VMware Guest: VM has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/VMware_Hypervisor.yaml b/VMware_Hypervisor.yaml new file mode 100644 index 0000000..ab1897e --- /dev/null +++ b/VMware_Hypervisor.yaml @@ -0,0 +1,2062 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 5899b2f0aced4085b5ac25d0461b3425 + template: 'VMware Hypervisor' + name: 'VMware Hypervisor' + description: | + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. + + This template can be used in discovery as well as manually linked to a host. To use this template as manually linked to a host, attach it to the host and set manually the value of '{$VMWARE.HV.UUID}' macro. + + Note: To create custom performance counter see documentation: https://www.zabbix.com/documentation/7.0/manual/vm_monitoring/vmware_keys#footnotes. + + Note: To get all supported counters and generate path for custom performance counter see documentation: https://www.zabbix.com/documentation/7.0/manual/appendix/items/perf_counters. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-5 + groups: + - name: Templates/Applications + items: + - uuid: 3010cb082f23478b858912f944347530 + name: 'Hypervisor ping' + type: SIMPLE + key: 'icmpping[]' + description: | + Checks if the hypervisor is running and accepting ICMP pings. One of the following: + - Down; + - Up. + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: ab84a61566a5402db59efd40d20714a5 + expression: 'last(/VMware Hypervisor/icmpping[])=0' + name: 'VMware Hypervisor: Hypervisor is down' + priority: AVERAGE + description: 'The service is unavailable or is not accepting ICMP pings.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: af4d0877fda84753816c817ad76162f1 + name: 'Cluster name' + type: SIMPLE + key: 'vmware.hv.cluster.name[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Cluster name of the guest VM.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: cluster + - uuid: 0e9fd4e6d6e446f08afe7b4b9431bc62 + name: 'Connection state' + type: SIMPLE + key: 'vmware.hv.connectionstate[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: | + VMware hypervisor connection state. One of the following: + - Connected; + - Disconnected; + - Not responding. + valuemap: + name: 'VMware Connection state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'connected', + 'disconnected', + 'notResponding' + ].indexOf(value); + return idx !== -1 ? idx : 3; + tags: + - tag: component + value: availability + - uuid: c4ebd62118464e7a8d1945f80d70f8ae + name: 'CPU usage in percent' + type: SIMPLE + key: 'vmware.hv.cpu.usage.perf[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + value_type: FLOAT + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'CPU usage as a percentage during the interval.' + tags: + - tag: component + value: cpu + - uuid: 1bff6fbd300d4455a787a273d957bba3 + name: 'CPU usage' + type: SIMPLE + key: 'vmware.hv.cpu.usage[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + units: Hz + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Aggregated CPU usage across all cores on the host in Hz. This is only available if the host is connected.' + tags: + - tag: component + value: cpu + - uuid: aad168c33cd14f76aa14ab5ca26498ec + name: 'CPU utilization' + type: SIMPLE + key: 'vmware.hv.cpu.utilization[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + value_type: FLOAT + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'CPU utilization as a percentage during the interval depends on power management or hyper-threading.' + tags: + - tag: component + value: cpu + - uuid: e4d27d7f9b9048d4ae6c60cbdd6c0091 + name: 'Datacenter name' + type: SIMPLE + key: 'vmware.hv.datacenter.name[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Datacenter name of the hypervisor.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: datacenter + - uuid: 5c29837f75f04d7f9a5786691b3dd991 + name: 'Full name' + type: SIMPLE + key: 'vmware.hv.fullname[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The complete product name, including the version information.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: ad0053d57b834e6a9776c08e1c455d55 + name: 'CPU frequency' + type: SIMPLE + key: 'vmware.hv.hw.cpu.freq[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + units: Hz + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The speed of the CPU cores. This is an average value if there are multiple speeds. The product of CPU frequency and the number of cores is approximately equal to the sum of the MHz for all the individual cores on the host.' + tags: + - tag: component + value: cpu + - uuid: 3f0c35fcef9e4699ac5a1c51d80f8da4 + name: 'CPU model' + type: SIMPLE + key: 'vmware.hv.hw.cpu.model[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The CPU model.' + tags: + - tag: component + value: cpu + - uuid: c99a5bf2e3904f97b3d361ca20af7883 + name: 'CPU cores' + type: SIMPLE + key: 'vmware.hv.hw.cpu.num[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Number of physical CPU cores on the host. Physical CPU cores are the processors contained by a CPU package.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: cpu + - uuid: 89cb0a4809e7454a862f398a0e9d6bed + name: 'CPU threads' + type: SIMPLE + key: 'vmware.hv.hw.cpu.threads[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Number of physical CPU threads on the host.' + tags: + - tag: component + value: cpu + - uuid: ce89c38e6e5d4338a30ee150be1b2b67 + name: 'Total memory' + type: SIMPLE + key: 'vmware.hv.hw.memory[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The physical memory size.' + tags: + - tag: component + value: memory + - uuid: 7ed7ac26da384bcda976badf24ebbec1 + name: Model + type: SIMPLE + key: 'vmware.hv.hw.model[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The system model identification.' + tags: + - tag: component + value: system + - uuid: 6c4aab55b3e640779a25ac90b9ca2a43 + name: 'Bios UUID' + type: SIMPLE + key: 'vmware.hv.hw.uuid[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The hardware BIOS identification.' + tags: + - tag: component + value: system + - uuid: aec06090d16d4bdd8ed3494b448f19d8 + name: Vendor + type: SIMPLE + key: 'vmware.hv.hw.vendor[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The hardware vendor identification.' + tags: + - tag: component + value: system + - uuid: 21020a79436a49c38caf8941f6b68da3 + name: 'Ballooned memory' + type: SIMPLE + key: 'vmware.hv.memory.size.ballooned[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'The amount of guest physical memory that is currently reclaimed through the balloon driver. Sum of all guest VMs.' + tags: + - tag: component + value: memory + - uuid: 93d680d6886d446badbbe995ddd9ba9c + name: 'Used memory' + type: SIMPLE + key: 'vmware.hv.memory.used[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Physical memory usage on the host.' + tags: + - tag: component + value: memory + - uuid: 33f78ab6ee6c4e7585a83a60cdecab6f + name: 'Number of bytes received' + type: SIMPLE + key: 'vmware.hv.network.in[{$VMWARE.URL},{$VMWARE.HV.UUID},bps]' + units: Bps + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware hypervisor network input statistics (bytes per second).' + tags: + - tag: component + value: network + - uuid: 8f935e9718294cd4a67d02f4723a1713 + name: 'Number of broadcasts received' + type: SIMPLE + key: 'vmware.hv.network.in[{$VMWARE.URL},{$VMWARE.HV.UUID},broadcast]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware hypervisor network input statistics (broadcasts).' + tags: + - tag: component + value: network + - uuid: 720c58685828440bacda845bfd848d6a + name: 'Number of dropped received packets' + type: SIMPLE + key: 'vmware.hv.network.in[{$VMWARE.URL},{$VMWARE.HV.UUID},dropped]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware hypervisor network input statistics (packets dropped).' + tags: + - tag: component + value: network + - uuid: 0084eb8fd76241b8938bb1dad5a3f160 + name: 'Number of errors received' + type: SIMPLE + key: 'vmware.hv.network.in[{$VMWARE.URL},{$VMWARE.HV.UUID},errors]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware hypervisor network input statistics (errors).' + tags: + - tag: component + value: network + - uuid: b013afcba08b47f4a5b590a59f464a58 + name: 'Number of bytes transmitted' + type: SIMPLE + key: 'vmware.hv.network.out[{$VMWARE.URL},{$VMWARE.HV.UUID},bps]' + units: Bps + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware hypervisor network output statistics (bytes per second).' + tags: + - tag: component + value: network + - uuid: 16496c407daa43b9863c05416b294992 + name: 'Number of broadcasts transmitted' + type: SIMPLE + key: 'vmware.hv.network.out[{$VMWARE.URL},{$VMWARE.HV.UUID},broadcast]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware hypervisor network output statistics (broadcasts).' + tags: + - tag: component + value: network + - uuid: f001256bbfc34cc0898c5eaef422973e + name: 'Number of dropped transmitted packets' + type: SIMPLE + key: 'vmware.hv.network.out[{$VMWARE.URL},{$VMWARE.HV.UUID},dropped]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware hypervisor network output statistics (packets dropped).' + tags: + - tag: component + value: network + - uuid: 5f549d8708f24160b04a4a74db29042a + name: 'Number of errors transmitted' + type: SIMPLE + key: 'vmware.hv.network.out[{$VMWARE.URL},{$VMWARE.HV.UUID},errors]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware hypervisor network output statistics (errors).' + tags: + - tag: component + value: network + - uuid: e4116d7c7e234c5ebd5784f42ade1f2e + name: 'Power usage maximum allowed' + type: SIMPLE + key: 'vmware.hv.power[{$VMWARE.URL},{$VMWARE.HV.UUID},max]' + units: '!W' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Maximum allowed power usage.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: power + - uuid: 179a981cf30f4f77869e3b50dc2bc333 + name: 'Power usage' + type: SIMPLE + key: 'vmware.hv.power[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + units: '!W' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Current power usage.' + tags: + - tag: component + value: power + - uuid: 3c9d6ffb53624758ad888bf70f69218c + name: 'Get sensors' + type: SIMPLE + key: 'vmware.hv.sensors.get[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + history: '0' + value_type: TEXT + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Master item for sensor data.' + tags: + - tag: component + value: raw + - uuid: 0cec294521314c5482233b5b96e90c8d + name: 'Overall status' + type: SIMPLE + key: 'vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: | + The overall alarm status of the host. One of the following: + - Gray: Unknown; + - Green: OK; + - Yellow: It might have a problem; + - Red: It has a problem. + valuemap: + name: 'VMware status' + tags: + - tag: component + value: health + triggers: + - uuid: 378511e0f1794874a68aef1b43561ee5 + expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3' + name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Red' + priority: HIGH + description: 'One or more components in the appliance might be in an unusable status and the appliance might soon become unresponsive. Security patches might be available.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ef6ca4d7033c4c8cb963eb7d493b3c7b + expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2' + name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Yellow' + priority: AVERAGE + description: 'One or more components in the appliance might soon become overloaded.' + dependencies: + - name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Red' + expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: ecad96137494476293b57a0440de3f65 + name: Uptime + type: SIMPLE + key: 'vmware.hv.uptime[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + units: uptime + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'System uptime.' + tags: + - tag: component + value: system + triggers: + - uuid: 01d316b0a8cf4998b344f0c4ef1daa32 + expression: 'last(/VMware Hypervisor/vmware.hv.uptime[{$VMWARE.URL},{$VMWARE.HV.UUID}])<10m' + name: 'VMware Hypervisor: Hypervisor has been restarted' + event_name: 'VMware Hypervisor: Hypervisor has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 222ad20887cf479b8e81a4c338078d17 + name: Version + type: SIMPLE + key: 'vmware.hv.version[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Dot-separated version string.' + tags: + - tag: component + value: system + - uuid: 2045df572e864834bd4bd97046353f4e + name: 'Number of guest VMs' + type: SIMPLE + key: 'vmware.hv.vm.num[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Number of guest virtual machines.' + tags: + - tag: component + value: system + discovery_rules: + - uuid: fb7774df87994355baff7402d9fabcc2 + name: 'Datastore discovery' + type: SIMPLE + key: 'vmware.hv.datastore.discovery[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of VMware datastores.' + item_prototypes: + - uuid: 65e6c165c3674953b2845d4101a9a6bf + name: 'Multipath count for datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID}]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Number of available datastore paths.' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + trigger_prototypes: + - uuid: 8f1de4827ba446ef902ca5fa44109c6d + expression: 'last(/VMware Hypervisor/vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID}],#1)<>last(/VMware Hypervisor/vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID}],#2) and last(/VMware Hypervisor/vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID}])<{#MULTIPATH.COUNT}' + name: 'VMware Hypervisor: The multipath count has been changed' + event_name: 'VMware Hypervisor: The multipath count for datastore [{#DATASTORE}] has been changed' + opdata: 'Current: {ITEM.LASTVALUE}, Registered: {#MULTIPATH.COUNT}' + priority: AVERAGE + description: 'The number of available datastore paths is less than registered (`{#MULTIPATH.COUNT}`).' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 259d1ff4bde143248f7ee2f7f880cb62 + name: 'Average read latency of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.hv.datastore.read[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},latency]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Average amount of time for a read operation from the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: 1d7761e9ad0c48c1a3f6b1b48290c16b + name: 'Average read IOPS of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.hv.datastore.read[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},rps]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Average IOPS for a read operation from the datastore.' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: f36245398cc4460a9cb4ec741612693b + name: 'Free space on datastore [{#DATASTORE}] (percentage)' + type: SIMPLE + key: 'vmware.hv.datastore.size[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},pfree]' + delay: 5m + value_type: FLOAT + units: '%' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware datastore free space (percentage from the total).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + trigger_prototypes: + - uuid: 79c83ed72685487a9ef139c42eea1106 + expression: 'last(/VMware Hypervisor/vmware.hv.datastore.size[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},pfree])<{$VMWARE.HV.DATASTORE.SPACE.CRIT}' + name: 'VMware Hypervisor: [{#DATASTORE}]: Free space is critically low' + event_name: 'VMware Hypervisor: Datastore free space is critically low ([{#DATASTORE}] free space < {$VMWARE.HV.DATASTORE.SPACE.CRIT}%)' + priority: HIGH + description: 'Datastore free space has fallen below the critical threshold.' + tags: + - tag: scope + value: capacity + - uuid: 5bc64ee899444a01a5bc315290256cdf + expression: 'last(/VMware Hypervisor/vmware.hv.datastore.size[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},pfree])<{$VMWARE.HV.DATASTORE.SPACE.WARN}' + name: 'VMware Hypervisor: [{#DATASTORE}]: Free space is low' + event_name: 'VMware Hypervisor: Datastore free space is low ([{#DATASTORE}] free space < {$VMWARE.HV.DATASTORE.SPACE.WARN}%)' + priority: WARNING + description: 'Datastore free space has fallen below the warning threshold.' + dependencies: + - name: 'VMware Hypervisor: [{#DATASTORE}]: Free space is critically low' + expression: 'last(/VMware Hypervisor/vmware.hv.datastore.size[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},pfree])<{$VMWARE.HV.DATASTORE.SPACE.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: cc83e8f5ec08483db75482706bf01aba + name: 'Total size of datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.hv.datastore.size[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID}]' + delay: 5m + units: B + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware datastore space in bytes.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: 9db980d8f5f44af5ad11a5949d80031d + name: 'Average write latency of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.hv.datastore.write[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},latency]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Average amount of time for a write operation to the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + - uuid: 4514c4ccf00142e48b243f69dee0b533 + name: 'Average write IOPS of the datastore [{#DATASTORE}]' + type: SIMPLE + key: 'vmware.hv.datastore.write[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},rps]' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Average IOPS for a write operation to the datastore (milliseconds).' + tags: + - tag: component + value: datastore + - tag: datastore + value: '{#DATASTORE}' + - tag: type + value: '{#DATASTORE.TYPE}' + overrides: + - name: 'Disable IO perfCounter' + step: '1' + filter: + conditions: + - macro: '{#DATASTORE.TYPE}' + value: vsan|nfs + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Average + discover: NO_DISCOVER + - name: 'Disable Multipath perfCounter' + step: '2' + filter: + conditions: + - macro: '{#DATASTORE.TYPE}' + value: vsan + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: 'Multipath count for datastore' + discover: NO_DISCOVER + - uuid: deb31adf69634837839e2d8f87167f28 + name: 'Healthcheck discovery' + type: DEPENDENT + key: vmware.hv.healthcheck.discovery + delay: '0' + description: 'VMware Rollup Health State sensor discovery.' + item_prototypes: + - uuid: fabb7524dd454daa942266e5565ce40e + name: 'Health state rollup' + type: DEPENDENT + key: 'vmware.hv.sensor.health.state[{#SINGLETON}]' + delay: '0' + description: | + The host's Rollup Health State sensor value. One of the following: + - Gray: Unknown; + - Green: OK; + - Yellow: It might have a problem; + - Red: It has a problem. + valuemap: + name: 'VMware status' + preprocessing: + - type: JSONPATH + parameters: + - '$..HostNumericSensorInfo[?(@.name=="VMware Rollup Health State")].healthState.label.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'gray', + 'green', + 'yellow', + 'red' + ].indexOf(value.toLowerCase()); + return idx !== -1 ? idx : 0; + master_item: + key: 'vmware.hv.sensors.get[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + tags: + - tag: component + value: health + trigger_prototypes: + - uuid: 9f2a65161946436986aacf6c9a637673 + expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])=3' + name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Red' + priority: HIGH + description: 'One or more components in the appliance might be in an unusable status and the appliance might soon become unresponsive. Security patches might be available.' + dependencies: + - name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Red' + expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: dc4f84eb8d2143bb80999fbc58f38928 + expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])=2' + name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Yellow' + priority: AVERAGE + description: 'One or more components in the appliance might soon become overloaded.' + dependencies: + - name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Red' + expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])=3' + - name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Red' + expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3' + - name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Yellow' + expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: 'vmware.hv.sensors.get[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + preprocessing: + - type: JSONPATH + parameters: + - '$..HostNumericSensorInfo[?(@.name=="VMware Rollup Health State")]' + error_handler: CUSTOM_VALUE + error_handler_params: '[]' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value != "[]" ? [{''{#SINGLETON}'': ''''}] : []);' + - uuid: cabe1fbdd4e04ef396afaa5dfd1a3423 + name: 'Network interface discovery' + type: SIMPLE + key: 'vmware.hv.net.if.discovery[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + delay: 1h + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'Discovery of VMware hypervisor network interfaces.' + item_prototypes: + - uuid: 706acba4535e4135b824d53763868a5f + name: '[{#IFNAME}] network interface speed' + type: SIMPLE + key: 'vmware.hv.network.linkspeed[{$VMWARE.URL},{$VMWARE.HV.UUID},{#IFNAME}]' + units: bps + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware hypervisor network interface speed.' + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + tags: + - tag: component + value: network + - tag: interface + value: '{#IFNAME}' + - uuid: ace5c21254804024a6571a5d030383a0 + name: 'Sensor discovery' + type: DEPENDENT + key: vmware.hv.sensors.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$VMWARE.HV.SENSOR.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: 'VMware Rollup Health State' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NAME}' + value: '{$VMWARE.HV.SENSOR.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'VMware hardware sensor discovery. The data is retrieved from numeric sensor probes and provides information about the health of the physical system.' + item_prototypes: + - uuid: d9a7725ccb0647069b331c5e3e51aeaf + name: 'Sensor [{#NAME}] health state' + type: DEPENDENT + key: 'vmware.hv.sensor.state["{#NAME}"]' + delay: '0' + description: | + VMware hardware sensor health state. One of the following: + - Gray: Unknown; + - Green: OK; + - Yellow: It might have a problem; + - Red: It has a problem. + valuemap: + name: 'VMware status' + preprocessing: + - type: JSONPATH + parameters: + - '$..HostNumericSensorInfo[?(@.name=="{#NAME}")].healthState.label.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: JAVASCRIPT + parameters: + - | + const idx = [ + 'gray', + 'green', + 'yellow', + 'red' + ].indexOf(value.toLowerCase()); + return idx !== -1 ? idx : 0; + master_item: + key: 'vmware.hv.sensors.get[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + tags: + - tag: component + value: health + - tag: component + value: sensor + - tag: type + value: '{#TYPE}' + trigger_prototypes: + - uuid: f591aa480fb94996be8225176bc9c95c + expression: 'last(/VMware Hypervisor/vmware.hv.sensor.state["{#NAME}"])=3' + name: 'VMware Hypervisor: Sensor [{#NAME}] health state is Red' + priority: HIGH + description: 'One or more components in the appliance might be in an unusable status and the appliance might soon become unresponsive.' + dependencies: + - name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Red' + expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: c49e1b853f07417abb3812fd03da0bc3 + expression: 'last(/VMware Hypervisor/vmware.hv.sensor.state["{#NAME}"])=2' + name: 'VMware Hypervisor: Sensor [{#NAME}] health state is Yellow' + priority: AVERAGE + description: 'One or more components in the appliance might soon become overloaded.' + dependencies: + - name: 'VMware Hypervisor: Sensor [{#NAME}] health state is Red' + expression: 'last(/VMware Hypervisor/vmware.hv.sensor.state["{#NAME}"])=3' + - name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Red' + expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3' + - name: 'VMware Hypervisor: The {$VMWARE.HV.UUID} health is Yellow' + expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + master_item: + key: 'vmware.hv.sensors.get[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = [], + sensors = JSON.parse(value)['val']['HostNumericSensorInfo'], + discovery_flag = '{$VMWARE.HV.SENSOR.DISCOVERY}'.toLowerCase().trim(); + + if (!(discovery_flag == 'true' || discovery_flag == 'false')) { + throw 'Incorrect value of macro "{$' + 'VMWARE.HV.SENSOR.DISCOVERY}". Can be used only "true" or "false". Actual value: ' + discovery_flag; + } + + if (discovery_flag !== 'true' || typeof sensors === "undefined") { + return JSON.stringify([]); + } + + sensors.forEach(function(sensor) { + result.push({"{#NAME}": sensor['name'], "{#TYPE}": sensor['sensorType'].toLowerCase()}); + }) + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 7f7ed06754fb4c59ac2d893b85169981 + name: 'Serial number discovery' + type: DEPENDENT + key: vmware.hv.serial.number.discovery + delay: '0' + description: 'VMware hypervisor serial number discovery. This item works only with VMware hypervisor versions above 6.7.' + item_prototypes: + - uuid: fcd12a13f97848b78b610e86a24417b2 + name: 'Serial number' + type: SIMPLE + key: 'vmware.hv.hw.serialnumber[{$VMWARE.URL},{#VMWARE.HV.UUID}]' + delay: 1h + value_type: CHAR + trends: '0' + username: '{$VMWARE.USERNAME}' + password: '{$VMWARE.PASSWORD}' + description: 'VMware hypervisor serial number.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + master_item: + key: 'vmware.hv.version[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - type: JAVASCRIPT + parameters: + - | + function isGtOrEqVersion(first_version, second_version) { + var first = first_version.split('.').map(Number), + second = second_version.split('.').map(Number); + + if (first.length > second.length) { + const max_componens_length = first.length + } + else { + const max_componens_length = second.length + } + + var num_components = first.length; + while (num_components < max_componens_length) { + first.push(0); + num_components = num_components +1; + } + + var num_components = second.length; + while (num_components < max_componens_length) { + second.push(0); + num_components = num_components +1; + } + + if (first[0] > second[0] || + (first[0] === second[0] && first[1] > second[1]) || + (first[0] === second[0] && first[1] === second[1] && first[2] >= second[2])) { + + return true; + } + + return false; + } + + try { + const vmware_version = value; + const hypervisor_uuid = '{$VMWARE.HV.UUID}'; + + if (isGtOrEqVersion(vmware_version, '6.7.0')) { + return JSON.stringify([{'{#VMWARE.HV.UUID}': hypervisor_uuid}]); + } + + return JSON.stringify([]); + } + catch (error) { + Zabbix.log(3, '[ VMware Serial Number Discovery ] ERROR: ' + error); + throw 'Failed to process data:' + error; + } + tags: + - tag: class + value: software + - tag: target + value: vmware + - tag: target + value: vmware-hypervisor + macros: + - macro: '{$VMWARE.HV.DATASTORE.SPACE.CRIT}' + value: '10' + description: 'The critical threshold of the datastore free space.' + - macro: '{$VMWARE.HV.DATASTORE.SPACE.WARN}' + value: '20' + description: 'The warning threshold of the datastore free space.' + - macro: '{$VMWARE.HV.SENSOR.DISCOVERY}' + value: 'false' + description: 'Set to "true"/"false" to enable or disable the monitoring of hardware sensors.' + - macro: '{$VMWARE.HV.SENSOR.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Sets the regex string of hardware sensor names to be allowed in discovery.' + - macro: '{$VMWARE.HV.SENSOR.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the regex string of hardware sensor names to be ignored in discovery.' + - macro: '{$VMWARE.HV.UUID}' + description: 'UUID of hypervisor.' + - macro: '{$VMWARE.PASSWORD}' + type: SECRET_TEXT + description: 'VMware service `{$USERNAME}` user password.' + - macro: '{$VMWARE.URL}' + description: 'VMware service (vCenter or ESX hypervisor) SDK URL (https://servername/sdk).' + - macro: '{$VMWARE.USERNAME}' + description: 'VMware service user name.' + dashboards: + - uuid: 1d1da8e6d38a4ea5a99d39cc31a8c435 + name: 'Hypervisor overview' + pages: + - name: 'VMware: Hypervisor Overview' + widgets: + - type: gauge + name: 'CPU utilization' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'CPU utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.cpu.utilization[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 0EC9AC + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: item + name: 'Cluster name' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.cluster.name[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: svggraph + name: 'Used memory' + 'y': '6' + width: '51' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.memory.used[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAB + - type: item + name: 'Hypervisor ping' + x: '18' + width: '12' + height: '4' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_size + value: '7' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'icmpping[]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: STRING + name: thresholds.0.color + value: F44336 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 32CD32 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Datacenter name' + x: '18' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.datacenter.name[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Overall status' + x: '30' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_size + value: '7' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: STRING + name: thresholds.0.color + value: D2D2D2 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 32CD32 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FFF176 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: F44336 + - type: STRING + name: thresholds.3.threshold + value: '3' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Full name' + x: '36' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.fullname[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Connection state' + x: '48' + width: '24' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.connectionstate[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: STRING + name: thresholds.0.color + value: 32CD32 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: F44336 + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FFDAB9 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: Uptime + x: '48' + 'y': '2' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.uptime[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'Total memory' + x: '51' + 'y': '6' + width: '21' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.hw.memory[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Used memory' + x: '51' + 'y': '9' + width: '21' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.memory.used[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: Version + x: '54' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.version[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - type: item + name: 'Number of guest VMs' + x: '60' + 'y': '2' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.vm.num[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: value_bold + value: '0' + - name: 'VMware: CPU' + widgets: + - type: item + name: 'CPU cores' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.hw.cpu.num[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: value_bold + value: '0' + - type: svggraph + name: 'CPU utilization' + 'y': '2' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.cpu.utilization[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAC + - type: svggraph + name: 'CPU usage' + 'y': '7' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.cpu.usage[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAI + - type: item + name: 'CPU threads' + x: '15' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.hw.cpu.threads[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'CPU frequency' + x: '30' + width: '15' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.hw.cpu.freq[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: units_bold + value: '0' + - type: INTEGER + name: value_bold + value: '0' + - type: item + name: 'CPU model' + x: '45' + width: '27' + hide_header: 'YES' + fields: + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.hw.cpu.model[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: value_bold + value: '0' + - type: INTEGER + name: value_size + value: '35' + - name: 'VMware: Network' + widgets: + - type: svggraph + name: 'Number of broadcast' + width: '36' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.network.in[{$VMWARE.URL},{$VMWARE.HV.UUID},broadcast]' + - type: STRING + name: ds.1.color.0 + value: FF465C + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '5' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.network.out[{$VMWARE.URL},{$VMWARE.HV.UUID},broadcast]' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: svggraph + name: 'Number of bytes' + 'y': '4' + width: '36' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.network.in[{$VMWARE.URL},{$VMWARE.HV.UUID},bps]' + - type: STRING + name: ds.1.color.0 + value: FF465C + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '5' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.network.out[{$VMWARE.URL},{$VMWARE.HV.UUID},bps]' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: graphprototype + name: 'Network interface speed' + 'y': '8' + width: '72' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.network.linkspeed[{$VMWARE.URL},{$VMWARE.HV.UUID},{#IFNAME}]' + - type: STRING + name: reference + value: AAAAF + - type: INTEGER + name: source_type + value: '3' + - type: svggraph + name: 'Number of dropped' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.network.in[{$VMWARE.URL},{$VMWARE.HV.UUID},dropped]' + - type: STRING + name: ds.1.color.0 + value: FF465C + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '5' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.network.out[{$VMWARE.URL},{$VMWARE.HV.UUID},dropped]' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAG + - type: svggraph + name: 'Number of errors' + x: '36' + 'y': '4' + width: '36' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00BFFF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '5' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.network.in[{$VMWARE.URL},{$VMWARE.HV.UUID},errors]' + - type: STRING + name: ds.1.color.0 + value: FF465C + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '5' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.network.out[{$VMWARE.URL},{$VMWARE.HV.UUID},errors]' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAH + - name: 'VMware: Datastore' + widgets: + - type: honeycomb + name: 'Total size of datastore' + width: '24' + height: '4' + fields: + - type: STRING + name: bg_color + value: 81D4FA + - type: STRING + name: items.0 + value: 'Total size of datastore*' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("datastore.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAJ + - type: graphprototype + name: 'Average read IOps of the datastore' + 'y': '4' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.datastore.read[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},rps]' + - type: STRING + name: reference + value: AAAAK + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average read latency of the datastore' + 'y': '8' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.datastore.read[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},latency]' + - type: STRING + name: reference + value: AAAAP + - type: INTEGER + name: source_type + value: '3' + - type: honeycomb + name: 'Free space on datastore' + x: '24' + width: '24' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Free space on datastore*' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("datastore.\[(.*)\]", \1)}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: AAAAL + - type: STRING + name: thresholds.0.color + value: FF465C + - type: STRING + name: thresholds.0.threshold + value: '10' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '20' + - type: STRING + name: thresholds.2.color + value: 0EC9AC + - type: STRING + name: thresholds.2.threshold + value: '30' + - type: graphprototype + name: 'Average write IOps of the datastore' + x: '36' + 'y': '4' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.datastore.write[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},rps]' + - type: STRING + name: reference + value: AAAAM + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Average write latency of the datastore' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.datastore.write[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},latency]' + - type: STRING + name: reference + value: AAAAN + - type: INTEGER + name: source_type + value: '3' + - type: graphprototype + name: 'Free space on datastore' + x: '48' + width: '24' + height: '4' + fields: + - type: INTEGER + name: columns + value: '1' + - type: ITEM_PROTOTYPE + name: itemid.0 + value: + host: 'VMware Hypervisor' + key: 'vmware.hv.datastore.size[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE.UUID},pfree]' + - type: STRING + name: reference + value: AAAAO + - type: INTEGER + name: source_type + value: '3' + valuemaps: + - uuid: 25d04e2838af4fcca9ddd21df6781497 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: 66bedf62dffd4402a037a6ef0f93f228 + name: 'VMware Connection state' + mappings: + - value: '0' + newvalue: Connected + - value: '1' + newvalue: Disconnected + - value: '2' + newvalue: 'Not responding' + - value: '3' + newvalue: Unknown + - uuid: 2b324fd8d7624874a3a81449b62c2cd6 + name: 'VMware status' + mappings: + - value: '0' + newvalue: Gray + - value: '1' + newvalue: Green + - value: '2' + newvalue: Yellow + - value: '3' + newvalue: Red diff --git a/Veeam_Backup_Enterprise_Manager_by_HTTP.yaml b/Veeam_Backup_Enterprise_Manager_by_HTTP.yaml new file mode 100644 index 0000000..501f9b6 --- /dev/null +++ b/Veeam_Backup_Enterprise_Manager_by_HTTP.yaml @@ -0,0 +1,498 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 2ce384bafd524db5b910d7f55bca1fbb + template: 'Veeam Backup Enterprise Manager by HTTP' + name: 'Veeam Backup Enterprise Manager by HTTP' + description: | + This template is designed to monitor Veeam Backup Enterprise Manager. + + NOTE: The REST API may not be available for some editions, see (https://www.veeam.com/licensing-pricing.html) for more details. + + Setup: + 1. Create a user to monitor the service, or use an existing read-only account. + Similarly to the user authentication in the Veeam Backup Enterprise Manager Web UI, + the client authentication in the REST API dictates which operations a client is allowed to perform when working with the REST API. + That is, if the client is authenticated using an account that does not have enough permissions to perform some actions, it will not be able to execute them. + You can also obtain the collected jobs if you are logged in under an account having only `Portal Administrator` role. + See (https://helpcenter.veeam.com/docs/backup/em_rest/http_authentication.html?ver=110) for more details. + 2. Link the template to a host. + 3. Configure the following macros: {$VEEAM.MANAGER.API.URL}, {$VEEAM.MANAGER.USER}, {$VEEAM.MANAGER.PASSWORD}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: a1b612cd8e274a27a834dbdb69fe7d08 + name: 'Failed Job Runs' + type: DEPENDENT + key: veeam.manager.failed.jobs + delay: '0' + description: 'Informs about the failed job runs.' + preprocessing: + - type: JSONPATH + parameters: + - $.JobStatistics.FailedJobRuns + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: veeam.manager.get.metrics + tags: + - tag: component + value: reports + triggers: + - uuid: 4885d43f36b541219be87b5e5ea19088 + expression: 'last(/Veeam Backup Enterprise Manager by HTTP/veeam.manager.failed.jobs)>{$VEEAM.MANAGER.JOB.MAX.FAIL}' + name: 'Veeam Backup: Failed job runs is too high' + event_name: 'Veeam Backup: Failed job runs is too high (over {$VEEAM.MANAGER.JOB.MAX.FAIL})' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: e698c05dae9f4d2f8323ce718e9ed83b + name: 'Get errors' + type: DEPENDENT + key: veeam.manager.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'The errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: veeam.manager.get.metrics + tags: + - tag: component + value: status + triggers: + - uuid: 83316e2168414042aeb9d98857534baa + expression: 'length(last(/Veeam Backup Enterprise Manager by HTTP/veeam.manager.get.errors))>0' + name: 'Veeam Backup: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: 525a61ff4fb747efab6ac58d1ac8b7c4 + name: 'Get metrics' + type: SCRIPT + key: veeam.manager.get.metrics + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Veeam = { + params: {}, + + setParams: function (params) { + ['api_endpoint', 'user', 'password'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Veeam.params = params; + if (typeof Veeam.params.api_endpoint === 'string' && !Veeam.params.api_endpoint.endsWith('/')) { + Veeam.params.api_endpoint += '/'; + } + + Veeam.tls = new CTlsConfig(params.tls_verify); + Veeam.tls.checkURL(Veeam.params.api_endpoint); + }, + + request: function (url) { + var response, request = new HttpRequest(Veeam.tls.options); + if (typeof Veeam.params.http_proxy !== 'undefined' && Veeam.params.http_proxy !== '') { + request.setProxy(Veeam.params.http_proxy); + } + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Basic ' + btoa(Veeam.params.user + ':' + Veeam.params.password)); + request.post(Veeam.params.api_endpoint + 'api/sessionMngr'); + response = request.get(url); + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getMetricsData: function() { + var data = {}; + endpoints = { + 'backupFiles': 'api/backupFiles', + }; + reports_summary = Veeam.request(Veeam.params.api_endpoint + 'api/reports/summary') + if (typeof reports_summary !== 'object' || reports_summary.hasOwnProperty('Links') === false) + throw 'Failed response parse. Check debug log for more information.'; + reports_summary.Links.forEach(function (field) { + data[field.Name] = Veeam.request(field.Href) + }) + Object.keys(endpoints).forEach(function (key) { + data[key] = Veeam.request(Veeam.params.api_endpoint + endpoints[key]); + if (typeof data[key] !== 'object' || data[key].hasOwnProperty('Refs') === false) + throw 'Failed response parse. Check debug log for more information.'; + data[key].Refs.forEach(function (field) { + data[field.Name] = Veeam.request(field.Href) + }) + }) + return data; + } + + }; + try { + Veeam.setParams(JSON.parse(value)); + return JSON.stringify(Veeam.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ VEEAM MANAGER ] ERROR: ' + error); + return JSON.stringify({'error': error}); + } + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$VEEAM.MANAGER.DATA.TIMEOUT}' + parameters: + - name: api_endpoint + value: '{$VEEAM.MANAGER.API.URL}' + - name: http_proxy + value: '{$VEEAM.MANAGER.HTTP.PROXY}' + - name: password + value: '{$VEEAM.MANAGER.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Veeam Backup Enterprise Manager"}' + - name: user + value: '{$VEEAM.MANAGER.USER}' + tags: + - tag: component + value: raw + - uuid: a0a1e67c99c64bd1a801c87eeda3977b + name: 'Running Jobs' + type: DEPENDENT + key: veeam.manager.running.jobs + delay: '0' + description: 'Informs about the running jobs.' + preprocessing: + - type: JSONPATH + parameters: + - $.JobStatistics.RunningJobs + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: veeam.manager.get.metrics + tags: + - tag: component + value: reports + - uuid: d7510e46c6094e09979ea7dad2828cef + name: 'Scheduled Backup Jobs' + type: DEPENDENT + key: veeam.manager.scheduled.backup.jobs + delay: '0' + description: 'Informs about the scheduled backup jobs.' + preprocessing: + - type: JSONPATH + parameters: + - $.JobStatistics.ScheduledBackupJobs + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: veeam.manager.get.metrics + tags: + - tag: component + value: reports + - uuid: de9f62198b5b42cdb25460315f4af949 + name: 'Scheduled Jobs' + type: DEPENDENT + key: veeam.manager.scheduled.jobs + delay: '0' + description: 'Informs about the scheduled jobs.' + preprocessing: + - type: JSONPATH + parameters: + - $.JobStatistics.ScheduledJobs + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: veeam.manager.get.metrics + tags: + - tag: component + value: reports + - uuid: 599a25d753ce4f5d8542d08569f2a136 + name: 'Scheduled Replica Jobs' + type: DEPENDENT + key: veeam.manager.scheduled.replica.jobs + delay: '0' + description: 'Informs about the scheduled replica jobs.' + preprocessing: + - type: JSONPATH + parameters: + - $.JobStatistics.ScheduledReplicaJobs + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: veeam.manager.get.metrics + tags: + - tag: component + value: reports + - uuid: 7d96ebb849c94d5b89656bdfa6398a1d + name: 'Total Job Runs' + type: DEPENDENT + key: veeam.manager.scheduled.total.jobs + delay: '0' + description: 'Informs about the total job runs.' + preprocessing: + - type: JSONPATH + parameters: + - $.JobStatistics.TotalJobRuns + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: veeam.manager.get.metrics + tags: + - tag: component + value: reports + - uuid: b39d33c9d5c544a2996736dbdccfcaff + name: 'Warnings Job Runs' + type: DEPENDENT + key: veeam.manager.warning.jobs + delay: '0' + description: 'Informs about the warning job runs.' + preprocessing: + - type: JSONPATH + parameters: + - $.JobStatistics.WarningsJobRuns + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: veeam.manager.get.metrics + tags: + - tag: component + value: reports + triggers: + - uuid: f65998e99bb24e02a2810b632a4a3f4e + expression: 'last(/Veeam Backup Enterprise Manager by HTTP/veeam.manager.warning.jobs)>{$VEEAM.MANAGER.JOB.MAX.WARN}' + name: 'Veeam Backup: Warning job runs is too high' + event_name: 'Veeam Backup: Warning job runs is too high (over {$VEEAM.MANAGER.JOB.MAX.WARN})' + priority: WARNING + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: d07b06fbd84d493bb38d61ac0824e794 + name: 'Backup Files discovery' + type: DEPENDENT + key: veeam.backup.files.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$BACKUP.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$BACKUP.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TYPE}' + value: '{$BACKUP.TYPE.MATCHES}' + formulaid: C + - macro: '{#TYPE}' + value: '{$BACKUP.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of all backup files created on, or imported to the backup servers that are connected to Veeam Backup Enterprise Manager.' + item_prototypes: + - uuid: d3f87401602c48d3a837504ed08902db + name: 'Compression ratio [{#NAME}]' + type: DEPENDENT + key: 'veeam.backup.compress.ratio[{#NAME}]' + delay: '0' + description: 'Gets the data compression ratio with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#NAME}''].BackupFile.CompressRatio' + error_handler: DISCARD_VALUE + master_item: + key: veeam.manager.get.metrics + tags: + - tag: backup + value: '{#NAME}' + - tag: component + value: backups + - uuid: 0c5be137b40949c4946a09c57ccc7796 + name: 'Data Size [{#NAME}]' + type: DEPENDENT + key: 'veeam.backup.data.size[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Gets the data size with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#NAME}''].BackupFile.DataSize' + error_handler: DISCARD_VALUE + master_item: + key: veeam.manager.get.metrics + tags: + - tag: backup + value: '{#NAME}' + - tag: component + value: backups + - uuid: 62d0b0341bac40f9a63f0fbf3639e0d0 + name: 'Deduplication Ratio [{#NAME}]' + type: DEPENDENT + key: 'veeam.backup.deduplication.ratio[{#NAME}]' + delay: '0' + description: 'Gets the data deduplication ratio with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#NAME}''].BackupFile.DeduplicationRatio' + error_handler: DISCARD_VALUE + master_item: + key: veeam.manager.get.metrics + tags: + - tag: backup + value: '{#NAME}' + - tag: component + value: backups + - uuid: 098cc39afb88483f93a98c96fc1450d1 + name: 'Backup Size [{#NAME}]' + type: DEPENDENT + key: 'veeam.backup.file.size[{#NAME}]' + delay: '0' + value_type: FLOAT + units: B + description: 'Gets the backup size with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''{#NAME}''].BackupFile.BackupSize' + error_handler: DISCARD_VALUE + master_item: + key: veeam.manager.get.metrics + tags: + - tag: backup + value: '{#NAME}' + - tag: component + value: backups + master_item: + key: veeam.manager.get.metrics + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.Name + - lld_macro: '{#TYPE}' + path: $.Type + - lld_macro: '{#UID}' + path: $.UID + - lld_macro: '{#URL}' + path: $.Href + preprocessing: + - type: JSONPATH + parameters: + - $.backupFiles.Refs + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: software + - tag: target + value: veeam + macros: + - macro: '{$BACKUP.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in backup discovery rule.' + - macro: '{$BACKUP.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in backup discovery rule.' + - macro: '{$BACKUP.TYPE.MATCHES}' + value: '.*' + description: 'This macro is used in backup discovery rule.' + - macro: '{$BACKUP.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in backup discovery rule.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Veeam Backup Enterprise Manager", e.g. {$HTTP.TLS.VERIFY:"Veeam Backup Enterprise Manager"}.' + - macro: '{$VEEAM.MANAGER.API.URL}' + value: 'https://localhost:9398' + description: 'Veeam Backup Enterprise Manager API endpoint is a URL in the format: `://:`.' + - macro: '{$VEEAM.MANAGER.DATA.TIMEOUT}' + value: '10' + description: 'A response timeout for API.' + - macro: '{$VEEAM.MANAGER.HTTP.PROXY}' + description: 'Sets the HTTP proxy to `http_proxy` value. If this parameter is empty, then no proxy is used.' + - macro: '{$VEEAM.MANAGER.JOB.MAX.FAIL}' + value: '5' + description: 'The maximum score of failed jobs (for a trigger expression).' + - macro: '{$VEEAM.MANAGER.JOB.MAX.WARN}' + value: '10' + description: 'The maximum score of warning jobs (for a trigger expression).' + - macro: '{$VEEAM.MANAGER.PASSWORD}' + type: SECRET_TEXT + description: 'The `password` of the Veeam Backup Enterprise Manager account.' + - macro: '{$VEEAM.MANAGER.USER}' + type: SECRET_TEXT + description: 'The `user name` of the Veeam Backup Enterprise Manager account .' diff --git a/Veeam_Backup_and_Replication_by_HTTP.yaml b/Veeam_Backup_and_Replication_by_HTTP.yaml new file mode 100644 index 0000000..594c174 --- /dev/null +++ b/Veeam_Backup_and_Replication_by_HTTP.yaml @@ -0,0 +1,841 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 738085dde4e749d49199e5e6fd4d56ab + template: 'Veeam Backup and Replication by HTTP' + name: 'Veeam Backup and Replication by HTTP' + description: | + This template is designed to monitor Veeam Backup and Replication. + + NOTE: The RESTful API may not be available for some editions, see (https://www.veeam.com/licensing-pricing.html) for more details. + + Setup: + 1. Create a user to monitor the service or use an existing read-only account. + See (https://helpcenter.veeam.com/docs/backup/vbr_rest/reference/vbr-rest-v1-rev2.html?ver=110#tag/Login/operation/CreateToken!path=grant_type&t=request) for more details. + 2. Link the template to a host. + 3. Configure the following macros: {$VEEAM.API.URL}, {$VEEAM.USER}, and {$VEEAM.PASSWORD}. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Applications + items: + - uuid: 87224dc0114446689f0fcfc4f0f83c17 + name: 'Get errors' + type: DEPENDENT + key: veeam.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'The errors from API requests.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: veeam.get.metrics + tags: + - tag: component + value: status + triggers: + - uuid: 3487d31a2aa540009f006c6a4eff8c79 + expression: 'length(last(/Veeam Backup and Replication by HTTP/veeam.get.errors))>0' + name: 'Veeam Backup: There are errors in requests to API' + opdata: '{ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Zabbix has received errors in response to API requests.' + tags: + - tag: scope + value: availability + - uuid: f8ef587e6d204e7da6e27e56b1131ca4 + name: 'Get metrics' + type: SCRIPT + key: veeam.get.metrics + delay: 5m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var Veeam = { + params: {}, + token: '', + + setParams: function (params) { + ['api_endpoint', 'user', 'password', 'created_after'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + Veeam.params = params; + if (typeof Veeam.params.api_endpoint === 'string' && !Veeam.params.api_endpoint.endsWith('/')) { + Veeam.params.api_endpoint += '/'; + } + if (Veeam.params.created_after >= 365 || Veeam.params.created_after <= 1) { + throw 'Incorrect "created_after" parameter given: ' + Veeam.params.created_after + '\nMust be between 1 and 365 days.'; + } + + Veeam.tls = new CTlsConfig(params.tls_verify); + Veeam.tls.checkURL(Veeam.params.api_endpoint); + }, + + login: function () { + + var resp, login = new HttpRequest(Veeam.tls.options); + if (typeof Veeam.params.http_proxy !== 'undefined' && Veeam.params.http_proxy !== '') { + login.setProxy(Veeam.params.http_proxy); + } + login.addHeader('Content-Type: application/x-www-form-urlencoded'); + login.addHeader('x-api-version: 1.0-rev2'); + resp = login.post(Veeam.params.api_endpoint + 'api/oauth2/token', + 'grant_type=password&username=' + encodeURIComponent(Veeam.params.user) + '&password=' + encodeURIComponent(Veeam.params.password)); + + if (login.getStatus() !== 200 || resp === null) { + throw 'Login failed with status code ' + login.getStatus() + ': ' + resp; + } + + try { + resp = JSON.parse(resp); + } + catch (error) { + throw 'Failed to parse authentication token for the logon session.'; + } + if (!resp.hasOwnProperty('access_token')) { + throw 'Auth response does not contain access token.'; + } + Veeam.token = resp['access_token']; + + }, + + request: function (url) { + + var response, request = new HttpRequest(Veeam.tls.options); + if (typeof Veeam.params.http_proxy !== 'undefined' && Veeam.params.http_proxy !== '') { + request.setProxy(Veeam.params.http_proxy); + } + if (Veeam.token) { + request.addHeader('Authorization: Bearer ' + Veeam.token); + request.addHeader('x-api-version: 1.0-rev2'); + response = request.get(url); + } + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API.'; + } + }, + + getMetricsData: function () { + var data = {}; + ms = 86400000; + start_date = new Date((new Date().getTime()) - ms * Veeam.params.created_after).toISOString().replace(/\.\d+/, ''); + endpoints = { + 'proxies': 'api/v1/backupInfrastructure/proxies', + 'managedServers': 'api/v1/backupInfrastructure/managedServers', + 'repositories_states': 'api/v1/backupInfrastructure/repositories/states', + 'jobs_states': 'api/v1/jobs/states', + 'sessions': 'api/v1/sessions?createdAfterFilter=' + encodeURIComponent(start_date) + }; + + Object.keys(endpoints).forEach(function (key) { + data[key] = Veeam.request(Veeam.params.api_endpoint + endpoints[key]); + }); + + return data; + } + }; + + try { + Veeam.setParams(JSON.parse(value)); + Veeam.login(); + return JSON.stringify(Veeam.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ VEEAM ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'The result of API requests is expressed in the JSON.' + timeout: '{$VEEAM.DATA.TIMEOUT}' + parameters: + - name: api_endpoint + value: '{$VEEAM.API.URL}' + - name: created_after + value: '{$CREATED.AFTER}' + - name: http_proxy + value: '{$VEEAM.HTTP.PROXY}' + - name: password + value: '{$VEEAM.PASSWORD}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"Veeam Backup and Replication"}' + - name: user + value: '{$VEEAM.USER}' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 02bac44761384a579575c16ef1740f32 + name: 'Jobs states discovery' + type: DEPENDENT + key: veeam.job.state.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#JOB.STATUS}' + value: '{$JOB.STATUS.MATCHES}' + formulaid: A + - macro: '{#JOB.STATUS}' + value: '{$JOB.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#NAME}' + value: '{$JOB.NAME.MATCHES}' + formulaid: C + - macro: '{#NAME}' + value: '{$JOB.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#TYPE}' + value: '{$JOB.TYPE.MATCHES}' + formulaid: E + - macro: '{#TYPE}' + value: '{$JOB.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovery of the jobs states.' + item_prototypes: + - uuid: 120a6bf888e74e0c9b054c3bdd50473f + name: 'Job states [{#NAME}] [{#TYPE}]: Last result' + type: DEPENDENT + key: 'veeam.jobs.last.result[{#ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'The result of the session. The enums used: `None`, `Success`, `Warning`, `Failed`.' + preprocessing: + - type: JSONPATH + parameters: + - $.lastResult + master_item: + key: 'veeam.jobs.states.raw[{#ID}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - tag: workload + value: '{#WORKLOAD}' + trigger_prototypes: + - uuid: 337b1cafc2674b4fb44e5baf1076183b + expression: 'find(/Veeam Backup and Replication by HTTP/veeam.jobs.last.result[{#ID}],,"like","Failed")=1' + name: 'Veeam Backup: Last result job failed' + event_name: 'Veeam Backup: Failed job [{#NAME}]' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: cd2bc50b71184c5ebf39b75a2dafa483 + name: 'Job states [{#NAME}] [{#TYPE}]: Get data' + type: DEPENDENT + key: 'veeam.jobs.states.raw[{#ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets raw data from the job states with the name `[{#NAME}]`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.jobs_states.data.[?(@.id==''{#ID}'')].first()' + master_item: + key: veeam.get.metrics + tags: + - tag: component + value: jobs + - tag: component + value: raw + - uuid: 6f3837f27334466b814728036dd65c1d + name: 'Job states [{#NAME}] [{#TYPE}]: Status' + type: DEPENDENT + key: 'veeam.jobs.status[{#ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'The current status of the job. The enums used: `running`, `inactive`, `disabled`.' + preprocessing: + - type: JSONPATH + parameters: + - $.status + master_item: + key: 'veeam.jobs.states.raw[{#ID}]' + tags: + - tag: component + value: jobs + - tag: job + value: '{#NAME}' + - tag: workload + value: '{#WORKLOAD}' + master_item: + key: veeam.get.metrics + lld_macro_paths: + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#JOB.STATUS}' + path: $.status + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#REPOSITORY.NAME}' + path: $.repositoryName + - lld_macro: '{#TYPE}' + path: $.type + - lld_macro: '{#WORKLOAD}' + path: $.workload + preprocessing: + - type: JSONPATH + parameters: + - $.jobs_states.data + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 4b1925bd0295403b8eb0d99b2f947296 + name: 'Proxies discovery' + type: DEPENDENT + key: veeam.proxies.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PROXIES.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$PROXIES.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TYPE}' + value: '{$PROXIES.TYPE.MATCHES}' + formulaid: C + - macro: '{#TYPE}' + value: '{$PROXIES.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of proxies.' + item_prototypes: + - uuid: 1daea1ba8ac144fc9e22296720af0b22 + name: 'Proxy [{#NAME}] [{#TYPE}]: Max Task Count' + type: DEPENDENT + key: 'veeam.proxy.maxtask[{#NAME}]' + delay: '0' + description: 'The maximum number of concurrent tasks.' + preprocessing: + - type: JSONPATH + parameters: + - $.server.maxTaskCount + master_item: + key: 'veeam.proxy.raw[{#NAME}]' + tags: + - tag: component + value: proxies + - tag: proxy + value: '{#NAME}' + - uuid: 40d85eb402274838b00765ab91de3896 + name: 'Proxy [{#NAME}] [{#TYPE}]: Get data' + type: DEPENDENT + key: 'veeam.proxy.raw[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets raw data collected by the proxy with the name `[{#NAME}]`, `[{#TYPE}]`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.proxies.data.[?(@.id==''{#ID}'')].first()' + master_item: + key: veeam.get.metrics + tags: + - tag: component + value: proxies + - tag: component + value: raw + - tag: proxy + value: '{#NAME}' + - uuid: 4c304283f1ad480b8251a72ade27620f + name: 'Proxy [{#NAME}] [{#TYPE}]: Host name' + type: DEPENDENT + key: 'veeam.proxy.server.name[{#NAME}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'The name of the proxy server.' + preprocessing: + - type: JSONPATH + parameters: + - $.name + master_item: + key: 'veeam.proxy.server.raw[{#NAME}]' + tags: + - tag: component + value: proxies + - tag: proxy + value: '{#NAME}' + - uuid: 83e2e092ae1f4e1a9b4a426076f76467 + name: 'Server [{#NAME}]: Get data' + type: DEPENDENT + key: 'veeam.proxy.server.raw[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets raw data collected by the proxy server.' + preprocessing: + - type: JSONPATH + parameters: + - '$.managedServers.data.[?(@.id==''{#HOSTID}'')].first()' + master_item: + key: veeam.get.metrics + tags: + - tag: component + value: proxies + - tag: component + value: raw + - tag: proxy + value: '{#NAME}' + - uuid: 7dca605f25854e89a7e18702e8a48fc7 + name: 'Proxy [{#NAME}] [{#TYPE}]: Host type' + type: DEPENDENT + key: 'veeam.proxy.server.type[{#NAME}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'The type of the proxy server.' + preprocessing: + - type: JSONPATH + parameters: + - $.type + master_item: + key: 'veeam.proxy.server.raw[{#NAME}]' + tags: + - tag: component + value: proxies + - tag: proxy + value: '{#NAME}' + master_item: + key: veeam.get.metrics + lld_macro_paths: + - lld_macro: '{#DESCRIPTION}' + path: $.description + - lld_macro: '{#HOSTID}' + path: $.server.hostId + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.proxies.data + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 27db09e55a3c4d638f7c10109d9b76be + name: 'Repositories discovery' + type: DEPENDENT + key: veeam.repositories.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$REPOSITORIES.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$REPOSITORIES.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TYPE}' + value: '{$REPOSITORIES.TYPE.MATCHES}' + formulaid: C + - macro: '{#TYPE}' + value: '{$REPOSITORIES.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of repositories.' + item_prototypes: + - uuid: 1c925cfa0a2b46838588471aa58a1591 + name: 'Repository [{#NAME}] [{#TYPE}]: Get data' + type: DEPENDENT + key: 'veeam.repositories.raw[{#NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets raw data from repository with the name: `[{#NAME}]`, `[{#TYPE}]`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.repositories_states.data.[?(@.id==''{#ID}'')].first()' + master_item: + key: veeam.get.metrics + tags: + - tag: component + value: raw + - tag: component + value: repositories + - tag: repository + value: '{#NAME}' + - uuid: 80a13587e8cc40ba886f987fcde23c13 + name: 'Repository [{#NAME}] [{#TYPE}]: Used space [{#PATH}]' + type: DEPENDENT + key: 'veeam.repository.capacity[{#NAME}]' + delay: '0' + value_type: FLOAT + units: '!GB' + description: 'Used space by repositories expressed in gigabytes (GB).' + preprocessing: + - type: JSONPATH + parameters: + - $.usedSpaceGB + master_item: + key: 'veeam.repositories.raw[{#NAME}]' + tags: + - tag: component + value: repositories + - tag: repository + value: '{#NAME}' + - uuid: 882451efee0a4ce8aabc2d2f3955d0be + name: 'Repository [{#NAME}] [{#TYPE}]: Free space [{#PATH}]' + type: DEPENDENT + key: 'veeam.repository.free.space[{#NAME}]' + delay: '0' + value_type: FLOAT + units: '!GB' + description: 'Free space of repositories expressed in gigabytes (GB).' + preprocessing: + - type: JSONPATH + parameters: + - $.freeGB + master_item: + key: 'veeam.repositories.raw[{#NAME}]' + tags: + - tag: component + value: repositories + - tag: repository + value: '{#NAME}' + master_item: + key: veeam.get.metrics + lld_macro_paths: + - lld_macro: '{#DESCRIPTION}' + path: $.description + - lld_macro: '{#HOSTID}' + path: $.server.hostId + - lld_macro: '{#HOSTNAME}' + path: $.hostName + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#PATH}' + path: $.path + - lld_macro: '{#TYPE}' + path: $.type + preprocessing: + - type: JSONPATH + parameters: + - $.repositories_states.data + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + - uuid: 06b4e666bede4d4b9f29ab7e94dcb442 + name: 'Sessions discovery' + type: DEPENDENT + key: veeam.sessions.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$SESSION.NAME.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$SESSION.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#TYPE}' + value: '{$SESSION.TYPE.MATCHES}' + formulaid: C + - macro: '{#TYPE}' + value: '{$SESSION.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Discovery of sessions.' + item_prototypes: + - uuid: 7224f41e5c614268bf6997ad8a49710b + name: 'Session [{#NAME}] [{#TYPE}]: Message' + type: DEPENDENT + key: 'veeam.sessions.message[{#ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'A message that explains the session result.' + preprocessing: + - type: JSONPATH + parameters: + - $.result.message + master_item: + key: 'veeam.sessions.raw[{#ID}]' + tags: + - tag: component + value: sessions + - tag: creation-date + value: '{#CREATION.TIME}' + - tag: session + value: '{#NAME}' + - uuid: 3f449f47943b4877a32e89774712510f + name: 'Session progress percent [{#NAME}] [{#TYPE}]' + type: DEPENDENT + key: 'veeam.sessions.progress.percent[{#ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The progress of the session expressed as percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.progressPercent + master_item: + key: 'veeam.sessions.raw[{#ID}]' + tags: + - tag: component + value: sessions + - tag: creation-date + value: '{#CREATION.TIME}' + - tag: session + value: '{#NAME}' + - uuid: f82984e1180946c6b4bff1f46987555d + name: 'Session [{#NAME}] [{#TYPE}]: Get data' + type: DEPENDENT + key: 'veeam.sessions.raw[{#ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets raw data from session with the name: `[{#NAME}]`, `[{#TYPE}]`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.sessions.data.[?(@.id==''{#ID}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: veeam.get.metrics + tags: + - tag: component + value: raw + - tag: session + value: '{#NAME}' + - uuid: 5fb9dcb62bfe4d1dae94beefa329691d + name: 'Session [{#NAME}] [{#TYPE}]: Result' + type: DEPENDENT + key: 'veeam.sessions.result[{#ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'The result of the session. The enums used: `None`, `Success`, `Warning`, `Failed`.' + preprocessing: + - type: JSONPATH + parameters: + - $.result.result + master_item: + key: 'veeam.sessions.raw[{#ID}]' + tags: + - tag: component + value: sessions + - tag: creation-date + value: '{#CREATION.TIME}' + - tag: session + value: '{#NAME}' + trigger_prototypes: + - uuid: eeb93a10f3d04eee819587c6fa4ce8f8 + expression: 'find(/Veeam Backup and Replication by HTTP/veeam.sessions.result[{#ID}],,"like","Failed")=1' + name: 'Veeam Backup: Last result session failed' + event_name: 'Veeam Backup: Failed session [{#NAME}]' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 8c7092e721eb4f8f8b53a07f0fb710a0 + name: 'Session [{#NAME}] [{#TYPE}]: State' + type: DEPENDENT + key: 'veeam.sessions.state[{#ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'The state of the session. The enums used: `Stopped`, `Starting`, `Stopping`, `Working`, `Pausing`, `Resuming`, `WaitingTape`, `Idle`, `Postprocessing`, `WaitingRepository`, `WaitingSlot`.' + preprocessing: + - type: JSONPATH + parameters: + - $.state + master_item: + key: 'veeam.sessions.raw[{#ID}]' + tags: + - tag: component + value: sessions + - tag: creation-date + value: '{#CREATION.TIME}' + - tag: session + value: '{#NAME}' + master_item: + key: veeam.get.metrics + lld_macro_paths: + - lld_macro: '{#CREATION.TIME}' + path: $.creationTime + - lld_macro: '{#END.TIME}' + path: $.endTime + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATE}' + path: $.state + - lld_macro: '{#TYPE}' + path: $.sessionType + preprocessing: + - type: JSONPATH + parameters: + - $.sessions.data + - type: JAVASCRIPT + parameters: + - | + obj = JSON.parse(value, function (key, value) { + if (key == 'creationTime') return new Date(value).toDateString(); + return value; + }); + return JSON.stringify(obj); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: class + value: software + - tag: target + value: veeam + macros: + - macro: '{$CREATED.AFTER}' + value: '7' + description: 'Returns sessions that are created after chosen days.' + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Veeam Backup and Replication", e.g. {$HTTP.TLS.VERIFY:"Veeam Backup and Replication"}.' + - macro: '{$JOB.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in discovery rule to evaluate the states of jobs.' + - macro: '{$JOB.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in discovery rule to evaluate the states of jobs.' + - macro: '{$JOB.STATUS.MATCHES}' + value: '.*' + description: 'This macro is used in discovery rule to evaluate the states of jobs.' + - macro: '{$JOB.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in discovery rule to evaluate the states of jobs.' + - macro: '{$JOB.TYPE.MATCHES}' + value: '.*' + description: 'This macro is used in discovery rule to evaluate the states of jobs.' + - macro: '{$JOB.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in discovery rule to evaluate the states of jobs.' + - macro: '{$PROXIES.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in proxies discovery rule.' + - macro: '{$PROXIES.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in proxies discovery rule.' + - macro: '{$PROXIES.TYPE.MATCHES}' + value: '.*' + description: 'This macro is used in proxies discovery rule.' + - macro: '{$PROXIES.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in proxies discovery rule.' + - macro: '{$REPOSITORIES.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in repositories discovery rule.' + - macro: '{$REPOSITORIES.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in repositories discovery rule.' + - macro: '{$REPOSITORIES.TYPE.MATCHES}' + value: '.*' + description: 'This macro is used in repositories discovery rule.' + - macro: '{$REPOSITORIES.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in repositories discovery rule.' + - macro: '{$SESSION.NAME.MATCHES}' + value: '.*' + description: 'This macro is used in discovery rule to evaluate sessions.' + - macro: '{$SESSION.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in discovery rule to evaluate sessions.' + - macro: '{$SESSION.TYPE.MATCHES}' + value: '.*' + description: 'This macro is used in discovery rule to evaluate sessions.' + - macro: '{$SESSION.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'This macro is used in discovery rule to evaluate sessions.' + - macro: '{$VEEAM.API.URL}' + value: 'https://localhost:9419' + description: 'The Veeam API endpoint is a URL in the format `://:`.' + - macro: '{$VEEAM.DATA.TIMEOUT}' + value: '10' + description: 'A response timeout for the API.' + - macro: '{$VEEAM.HTTP.PROXY}' + description: 'Sets the HTTP proxy to `http_proxy` value. If this parameter is empty, then no proxy is used.' + - macro: '{$VEEAM.PASSWORD}' + type: SECRET_TEXT + description: 'The `password` of the Veeam Backup and Replication account. It is used to obtain an access token.' + - macro: '{$VEEAM.USER}' + type: SECRET_TEXT + description: 'The `username` of the Veeam Backup and Replication account. It is used to obtain an access token.' diff --git a/VeloCloud_SD-WAN_Edge_by_HTTP.yaml b/VeloCloud_SD-WAN_Edge_by_HTTP.yaml new file mode 100644 index 0000000..68c4158 --- /dev/null +++ b/VeloCloud_SD-WAN_Edge_by_HTTP.yaml @@ -0,0 +1,2425 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 6fd1bd7226934f498169202ba4e9a482 + template: 'VeloCloud SD-WAN Edge by HTTP' + name: 'VeloCloud SD-WAN Edge by HTTP' + description: | + Template for monitoring VeloCloud SD-WAN Edges https://www.arista.com/en/solutions/sd-wan + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 79aa9ebb1ce64944a78a7c8d7603f53b + name: 'Activation state' + type: DEPENDENT + key: velocloud.edge.activation + delay: '0' + description: 'Edge activation state.' + valuemap: + name: 'Edge activation state' + preprocessing: + - type: JSONPATH + parameters: + - $..activationState.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + switch (value) { + case 'PENDING': + return 0; + case 'ACTIVATED': + return 1; + default: + return 10; + } + master_item: + key: velocloud.edge.get.data + tags: + - tag: component + value: edge + - tag: component + value: system + - uuid: 8a57dfd93a334b8bb606ae3b4f0c5cb7 + name: 'CPU core temperature' + type: DEPENDENT + key: velocloud.edge.cpu.core.temp + delay: '0' + units: °C + description: 'Temperature of the CPU core.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpuCoreTemp.max + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: velocloud.edge.status.metric.get + tags: + - tag: component + value: cpu + - uuid: 89f694d5b7784af5a5cd853e30a722e5 + name: 'CPU usage in percent' + type: DEPENDENT + key: velocloud.edge.cpu.usage + delay: '0' + value_type: FLOAT + units: '%' + description: 'CPU usage as a percentage.' + preprocessing: + - type: JSONPATH + parameters: + - $.cpuPct.max + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: velocloud.edge.status.metric.get + tags: + - tag: component + value: cpu + triggers: + - uuid: c8a6374d35fd49bf8952873b63570ae2 + expression: 'min(/VeloCloud SD-WAN Edge by HTTP/velocloud.edge.cpu.usage,15m)>{$VELOCLOUD.EDGE.CPU.UTIL.WARN}' + name: 'VeloCloud Edge: High CPU utilization' + event_name: 'VeloCloud Edge: High CPU utilization (over {$VELOCLOUD.EDGE.CPU.UTIL.WARN}% for 15m)' + opdata: 'Current CPU usage: {ITEM.LASTVALUE1}%' + priority: WARNING + description: 'The system is experiencing high CPU usage.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: cecb2a3698704c4c89ef12eb3bb39222 + name: Description + type: DEPENDENT + key: velocloud.edge.description + delay: '0' + value_type: TEXT + trends: '0' + description: 'Edge description.' + preprocessing: + - type: JSONPATH + parameters: + - $..description.first() + - type: STR_REPLACE + parameters: + - 'null' + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: velocloud.edge.get.data + tags: + - tag: component + value: edge + - tag: component + value: system + - uuid: e875793d90e04672b1ac4ffa79c0e40a + name: 'Flow count' + type: DEPENDENT + key: velocloud.edge.flow.count + delay: '0' + description: 'Number of flows.' + preprocessing: + - type: JSONPATH + parameters: + - $.flowCount.max + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: velocloud.edge.status.metric.get + tags: + - tag: component + value: system + - uuid: e159cb72d8c44b4aab356eebc15da589 + name: 'Get edge data' + type: HTTP_AGENT + key: velocloud.edge.get.data + delay: '{$VELOCLOUD.EDGE.FREQUENCY}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Edge data in JSON format.' + timeout: '{$VELOCLOUD.EDGE.DATA.TIMEOUT}' + url: 'https://{$VELOCLOUD.URL}/portal/rest/edge/getEdge' + posts: '{ "enterpriseId": {$VELOCLOUD.ENTERPRISE.ID}, "id": {$VELOCLOUD.EDGE.ID} }' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Token {$VELOCLOUD.TOKEN}' + request_method: POST + tags: + - tag: component + value: raw + - uuid: f0b94440c1db4638b79b48aee74f770f + name: 'Get edge data collection errors' + type: DEPENDENT + key: velocloud.edge.get.data.error + delay: '0' + value_type: TEXT + trends: '0' + description: 'Verify that data collection completed without errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: velocloud.edge.get.data + tags: + - tag: component + value: system + triggers: + - uuid: 411e557e080b470f8dfb8267b78a0851 + expression: 'length(last(/VeloCloud SD-WAN Edge by HTTP/velocloud.edge.get.data.error))>0' + name: 'VeloCloud Edge: Failed to get metric data' + priority: WARNING + description: 'Failed to get API metrics for Edge.' + tags: + - tag: scope + value: notice + - uuid: 37aac853345e4b9f954cca4b37ae4047 + name: 'Get edge peer data' + type: SCRIPT + key: velocloud.edge.get.peer.data + delay: '{$VELOCLOUD.EDGE.FREQUENCY}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var VeloCloud = { + params: {}, + + setParams: function (params) { + ['url', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + VeloCloud.params = params; + + if (VeloCloud.params.token === '{' + '$VELOCLOUD.TOKEN}') { + throw 'Please change {' + '$VELOCLOUD.TOKEN} macro with the proper value.'; + } + if (!VeloCloud.params.url.startsWith('http://') && !VeloCloud.params.url.startsWith('https://')) { + VeloCloud.params.url = 'https://' + params.url; + } + if (!VeloCloud.params.url.endsWith('/')) { + VeloCloud.params.url += '/'; + } + + VeloCloud.tls = new CTlsConfig(params.tls_verify); + VeloCloud.tls.checkURL(VeloCloud.params.url); + }, + + getField: function (data, path, trace) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path + ' - ' + trace; + } + data = data[step]; + } + + return data; + }, + + request: function (url, body) { + + var response, request = new HttpRequest(VeloCloud.tls.options); + + if (typeof VeloCloud.params.http_proxy !== 'undefined' && VeloCloud.params.http_proxy !== '') { + request.setProxy(VeloCloud.params.http_proxy); + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Token ' + VeloCloud.params.token); + + response = request.post(url, body); + + Zabbix.log(4, '[ SD-WAN API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from SD-WAN API. Check debug log for more information.'; + } + if (response.error && response.error.message) { + throw response.error.message; + } + + return response; + + }, + + getMetricsData: function () { + var edge_sdwan = [], + edge_sdwan_path = []; + + + response_edge_sdwan = VeloCloud.request(VeloCloud.params.url + 'portal/rest/edge/getEdgeSDWANPeers', JSON.stringify({ enterpriseId: Number(VeloCloud.params.enterprise_id), edgeId: Number(VeloCloud.params.edge_id) })); + + if (!Array.isArray(response_edge_sdwan)) { + response_edge_sdwan = [response_edge_sdwan]; + } + + for (var e in response_edge_sdwan) { + data = { + enterpriseId: Number(VeloCloud.params.enterprise_id), + edgeId: Number(VeloCloud.params.edge_id), + peerLogicalId: VeloCloud.getField(response_edge_sdwan[e], 'deviceLogicalId', 'error get peerLogicalId') + }; + response_edge_sdwan_path = VeloCloud.request(VeloCloud.params.url + 'portal/rest/metrics/getEdgeSDWANPeerPathMetrics', JSON.stringify(data)); + edge_sdwan_path = edge_sdwan_path.concat(response_edge_sdwan_path); + + response_edge_sdwan[e].edgeId = Number(VeloCloud.params.edge_id); + response_edge_sdwan[e].edgeName = VeloCloud.params.edge_name; + response_edge_sdwan[e].enterpriseId = Number(VeloCloud.params.enterprise_id); + } + + edge_sdwan = edge_sdwan.concat(response_edge_sdwan); + + return { edgeSDWan: edge_sdwan, edgeSDWanPath: edge_sdwan_path }; + + } + } + + try { + VeloCloud.setParams(JSON.parse(value)); + return JSON.stringify(VeloCloud.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ VeloCloud ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'Edge peer metric data in JSON format.' + timeout: '{$VELOCLOUD.EDGE.DATA.TIMEOUT}' + parameters: + - name: edge_id + value: '{$VELOCLOUD.EDGE.ID}' + - name: edge_name + value: '{$VELOCLOUD.EDGE.NAME}' + - name: enterprise_id + value: '{$VELOCLOUD.ENTERPRISE.ID}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"VeloCloud SD-WAN Edge"}' + - name: token + value: '{$VELOCLOUD.TOKEN}' + - name: url + value: '{$VELOCLOUD.URL}' + tags: + - tag: component + value: raw + - uuid: 09290826633842e39c25839307046872 + name: 'Handoff queue drops' + type: DEPENDENT + key: velocloud.edge.handoff.queue.drops + delay: '0' + description: 'Packets dropped from the handoff queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.handoffQueueDrops.max + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: velocloud.edge.status.metric.get + tags: + - tag: component + value: system + - uuid: ff105efa22c4445e8fc3236ccb7eb32a + name: 'HA state' + type: DEPENDENT + key: velocloud.edge.ha_state + delay: '0' + description: 'Edge high availability state.' + valuemap: + name: 'Edge HA status' + preprocessing: + - type: JSONPATH + parameters: + - $..haState.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + switch (value) { + case 'UNCONFIGURED': + return 0; + case 'READY': + return 1; + case 'PENDING_INIT': + return 2; + case 'FAILED': + return 3; + default: + return 10; + } + master_item: + key: velocloud.edge.get.data + tags: + - tag: component + value: edge + - tag: component + value: system + triggers: + - uuid: 182bf6b988be490dbfa580b304fce19c + expression: 'last(/VeloCloud SD-WAN Edge by HTTP/velocloud.edge.ha_state)=3' + name: 'VeloCloud Edge: HA state is in "FAILED" state' + priority: WARNING + description: 'High availability state is "FAILED".' + tags: + - tag: scope + value: availability + - uuid: c155979946c44782b7eb64de0a9e80fd + name: 'Get link metric data' + type: HTTP_AGENT + key: velocloud.edge.link.get.data + delay: '{$VELOCLOUD.EDGE.FREQUENCY}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Link metric data in JSON format.' + timeout: '{$VELOCLOUD.EDGE.DATA.TIMEOUT}' + url: 'https://{$VELOCLOUD.URL}/portal/rest/monitoring/getAggregateEdgeLinkMetrics' + posts: '{ "enterpriseId": {$VELOCLOUD.ENTERPRISE.ID}, "id": {$VELOCLOUD.EDGE.ID} }' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Token {$VELOCLOUD.TOKEN}' + request_method: POST + tags: + - tag: component + value: raw + - uuid: 2bc1862325494b9bb7ffabfc3c67c527 + name: 'Memory usage in percent' + type: DEPENDENT + key: velocloud.edge.memory.usage + delay: '0' + value_type: FLOAT + units: '%' + description: 'Percentage of memory usage.' + preprocessing: + - type: JSONPATH + parameters: + - $.memoryPct.max + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: velocloud.edge.status.metric.get + tags: + - tag: component + value: memory + triggers: + - uuid: 03e08de7977f4299a46e65d3ef0c8d8f + expression: 'min(/VeloCloud SD-WAN Edge by HTTP/velocloud.edge.memory.usage,15m)>{$VELOCLOUD.EDGE.MEMORY.UTIL.WARN}' + name: 'VeloCloud Edge: High memory utilization' + event_name: 'VeloCloud Edge: High memory utilization (over {$VELOCLOUD.EDGE.MEMORY.UTIL.WARN}% for 15m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 08e7d1bb35634163b6d8afbde9e580ef + name: 'Model number' + type: DEPENDENT + key: velocloud.edge.model + delay: '0' + value_type: TEXT + trends: '0' + description: 'Edge model number.' + inventory_link: MODEL + preprocessing: + - type: JSONPATH + parameters: + - $..modelNumber.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: velocloud.edge.get.data + tags: + - tag: component + value: edge + - tag: component + value: system + - uuid: f6f3f357d8d84c528bc5c1b6ae9ac868 + name: 'Service uptime' + type: DEPENDENT + key: velocloud.edge.service_uptime + delay: '0' + units: uptime + description: 'Edge service uptime.' + preprocessing: + - type: JSONPATH + parameters: + - $..serviceUpSince.first() + - type: JAVASCRIPT + parameters: + - | + value == '0000-00-00 00:00:00' ? value = 0 : value = Math.round((Date.now() - new Date(value).valueOf()) / 1000); + return value; + master_item: + key: velocloud.edge.get.data + tags: + - tag: component + value: system + - uuid: 9c2607c18dd740fdaa6ccaf07b2e4605 + name: 'Site city' + type: SCRIPT + key: velocloud.edge.site.city + delay: 15m + value_type: CHAR + trends: '0' + params: 'var inventory = JSON.stringify({$VELOCLOUD.EDGE.INVENTORY}), site = JSON.parse(inventory); if (site && site.city) { return site.city; } return '''';' + description: 'Edge site city.' + inventory_link: SITE_CITY + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + timeout: 10s + tags: + - tag: component + value: inventory + - uuid: f42d576a55e1483597120086a1ad82bb + name: 'Site contact email' + type: SCRIPT + key: velocloud.edge.site.contact.email + delay: 15m + value_type: CHAR + trends: '0' + params: 'var inventory = JSON.stringify({$VELOCLOUD.EDGE.INVENTORY}), site = JSON.parse(inventory); if (site && site.contactEmail) { return site.contactEmail; } return '''';' + description: 'Edge site contact email.' + inventory_link: POC_1_EMAIL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + timeout: 10s + tags: + - tag: component + value: inventory + - uuid: 3af49b08f5e045dda5e6fde965c57a36 + name: 'Site contact name' + type: SCRIPT + key: velocloud.edge.site.contact.name + delay: 15m + value_type: CHAR + trends: '0' + params: 'var inventory = JSON.stringify({$VELOCLOUD.EDGE.INVENTORY}), site = JSON.parse(inventory); if (site && site.contactName) { return site.contactName; } return '''';' + description: 'Edge site contact name.' + inventory_link: POC_1_NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + timeout: 10s + tags: + - tag: component + value: inventory + - uuid: 1202af89193f4e86a016b5b77abf904c + name: 'Site country' + type: SCRIPT + key: velocloud.edge.site.country + delay: 15m + value_type: CHAR + trends: '0' + params: 'var inventory = JSON.stringify({$VELOCLOUD.EDGE.INVENTORY}), site = JSON.parse(inventory); if (site && site.country) { return site.country; } return '''';' + description: 'Edge site country.' + inventory_link: SITE_COUNTRY + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + timeout: 10s + tags: + - tag: component + value: inventory + - uuid: b3e6b124960a4f169aba84bb3d65e618 + name: 'Site latitude' + type: SCRIPT + key: velocloud.edge.site.latitude + delay: 15m + value_type: CHAR + trends: '0' + params: 'var inventory = JSON.stringify({$VELOCLOUD.EDGE.INVENTORY}), site = JSON.parse(inventory); if (site && site.lat) { return site.lat; } return '''';' + description: 'Edge site location latitude.' + inventory_link: LOCATION_LAT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + timeout: 10s + tags: + - tag: component + value: inventory + - uuid: a603e0982b5b40f79c4d2d6b9c7d0499 + name: 'Site longitude' + type: SCRIPT + key: velocloud.edge.site.longitude + delay: 15m + value_type: CHAR + trends: '0' + params: 'var inventory = JSON.stringify({$VELOCLOUD.EDGE.INVENTORY}), site = JSON.parse(inventory); if (site && site.lon) { return site.lon; } return '''';' + description: 'Edge site location longitude.' + inventory_link: LOCATION_LON + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + timeout: 10s + tags: + - tag: component + value: inventory + - uuid: 9afbf4ea56724985b225e351abba686e + name: 'Site state' + type: SCRIPT + key: velocloud.edge.site.state + delay: 15m + value_type: CHAR + trends: '0' + params: 'var inventory = JSON.stringify({$VELOCLOUD.EDGE.INVENTORY}), site = JSON.parse(inventory); if (site && site.state) { return site.state; } return '''';' + description: 'Edge site state.' + inventory_link: SITE_STATE + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + timeout: 10s + tags: + - tag: component + value: inventory + - uuid: a262b95d6bd142acbb5f60d3a5197e0b + name: 'Software version' + type: DEPENDENT + key: velocloud.edge.software_version + delay: '0' + value_type: TEXT + trends: '0' + description: 'Edge software version.' + preprocessing: + - type: JSONPATH + parameters: + - $..softwareVersion.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: velocloud.edge.get.data + tags: + - tag: component + value: system + - uuid: 719ede2402b248a49b01565eeadee98d + name: State + type: DEPENDENT + key: velocloud.edge.state + delay: '0' + description: 'Edge state.' + valuemap: + name: 'Edge states' + preprocessing: + - type: JSONPATH + parameters: + - $..edgeState.first() + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + switch (value) { + case 'OFFLINE': + return 0; + case 'CONNECTED': + return 1; + case 'NEVER_ACTIVATED': + return 2; + default: + return 10; + } + master_item: + key: velocloud.edge.get.data + tags: + - tag: component + value: system + triggers: + - uuid: 962d2d0c6f124424b2e5a7aca89d293f + expression: 'last(/VeloCloud SD-WAN Edge by HTTP/velocloud.edge.state)=0' + name: 'VeloCloud Edge: Edge is in "OFFLINE" state' + priority: WARNING + description: 'Edge state is "OFFLINE".' + tags: + - tag: scope + value: availability + - uuid: fe7c54e7cdd143e0ac7a7fb173905202 + name: 'Get edge status metrics' + type: HTTP_AGENT + key: velocloud.edge.status.metric.get + delay: 15m + history: '0' + value_type: TEXT + trends: '0' + description: 'Edge status metrics in JSON format.' + url: 'https://{$VELOCLOUD.URL}/portal/rest/metrics/getEdgeStatusMetrics' + posts: '{ "enterpriseId": {$VELOCLOUD.ENTERPRISE.ID}, "edgeId": {$VELOCLOUD.EDGE.ID} }' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Token {$VELOCLOUD.TOKEN}' + request_method: POST + tags: + - tag: component + value: raw + - uuid: a32cf2363fda411eb55b9103c67c95f3 + name: 'System uptime' + type: DEPENDENT + key: velocloud.edge.system_uptime + delay: '0' + units: uptime + description: 'Edge system uptime.' + preprocessing: + - type: JSONPATH + parameters: + - $..systemUpSince.first() + - type: JAVASCRIPT + parameters: + - | + value == '0000-00-00 00:00:00' ? value = 0 : value = Math.round((Date.now() - new Date(value).valueOf()) / 1000); + return value; + master_item: + key: velocloud.edge.get.data + tags: + - tag: component + value: system + triggers: + - uuid: 32e7a8a9b28a4f288254b8fbcba058dd + expression: 'last(/VeloCloud SD-WAN Edge by HTTP/velocloud.edge.system_uptime)>0 and last(/VeloCloud SD-WAN Edge by HTTP/velocloud.edge.system_uptime)<600' + name: 'VeloCloud Edge: Edge has been restarted' + event_name: 'VeloCloud Edge: Edge has been restarted (uptime < 10m)' + priority: WARNING + description: 'Edge was restarted.' + tags: + - tag: scope + value: notice + - uuid: d700795b93814e4e8e24d08ebdbc311b + name: 'Tunnel count' + type: DEPENDENT + key: velocloud.edge.tunnel.count + delay: '0' + description: 'Total number of active tunnels.' + preprocessing: + - type: JSONPATH + parameters: + - $.tunnelCount.max + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: velocloud.edge.status.metric.get + tags: + - tag: component + value: system + - uuid: 8253db4d5b8e407fa29f5ad47e98ee97 + name: 'Tunnel count V6' + type: DEPENDENT + key: velocloud.edge.tunnel.count.v6 + delay: '0' + description: 'Total number of IPv6 tunnels.' + preprocessing: + - type: JSONPATH + parameters: + - $.tunnelCountV6.max + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: velocloud.edge.status.metric.get + tags: + - tag: component + value: system + discovery_rules: + - uuid: e334e0f58230456f83b5efc3801bd775 + name: 'Link metric discovery' + type: DEPENDENT + key: velocloud.link.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$VELOCLOUD.LLD.LINKS.NAME.FILTER.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$VELOCLOUD.LLD.LINKS.NAME.FILTER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Metrics for link statistics.' + item_prototypes: + - uuid: 7067ea17701b4c92af83ae0fdecbac0d + name: 'Link [{#NAME}]:[{#IP}]: Raw data' + type: DEPENDENT + key: 'velocloud.get.link[{#ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for this VeloCloud link.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.linkId==''{#ID}'')].first()' + master_item: + key: velocloud.edge.link.get.data + tags: + - tag: component + value: raw + - uuid: ca85601c81d943119e8e61a3eb878479 + name: 'Link [{#NAME}]:[{#IP}]: Best latency rx, ms' + type: DEPENDENT + key: 'velocloud.link.best_latency_rx[{#ID}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'Best receive latency in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.bestLatencyMsRx + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + - uuid: 924da40ad2024275a08aef84de24569a + name: 'Link [{#NAME}]:[{#IP}]: Best latency tx, ms' + type: DEPENDENT + key: 'velocloud.link.best_latency_tx[{#ID}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'Best transmit latency in milliseconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.bestLatencyMsTx + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + - uuid: 05f14fbb358a46408f33fb6b08d7ea6d + name: 'Link [{#NAME}]:[{#IP}]: Best loss rx, %' + type: DEPENDENT + key: 'velocloud.link.best_loss_rx.pct[{#ID}]' + delay: '0' + value_type: FLOAT + description: 'Best receive loss in percent.' + preprocessing: + - type: JSONPATH + parameters: + - $.bestLossPctRx + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + - uuid: 2dbe6a58e02e42f4afec515daff6948f + name: 'Link [{#NAME}]:[{#IP}]: Best loss tx, %' + type: DEPENDENT + key: 'velocloud.link.best_loss_tx.pct[{#ID}]' + delay: '0' + value_type: FLOAT + description: 'Best transmit loss in percent.' + preprocessing: + - type: JSONPATH + parameters: + - $.bestLossPctTx + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + - uuid: c1e039d841c1461fb6afb4a5b589e029 + name: 'Link [{#NAME}]:[{#IP}]: Bytes in' + type: DEPENDENT + key: 'velocloud.link.bytes_rx[{#ID}]' + delay: '0' + units: B + description: 'Received bytes for link.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytesRx + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + - uuid: 91a0963dc57144e39902dbf49cfa07de + name: 'Link [{#NAME}]:[{#IP}]: Bytes out' + type: DEPENDENT + key: 'velocloud.link.bytes_tx[{#ID}]' + delay: '0' + units: B + description: 'Transmitted bytes for link.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytesTx + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + - uuid: d74da7b2097d4ebcbafdf37d1a77150d + name: 'Link [{#NAME}]:[{#IP}]: Last active' + type: DEPENDENT + key: 'velocloud.link.last_active[{#ID}]' + delay: '0' + units: s + description: 'Time since last activity for link, in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.link.linkLastActive + - type: JAVASCRIPT + parameters: + - 'return Math.round((Date.now() - new Date(value).valueOf()) / 1000);' + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + - uuid: ae9c4dc8bc7542a0a36c8879c3ad54df + name: 'Link [{#NAME}]:[{#IP}]: Packets in' + type: DEPENDENT + key: 'velocloud.link.packets_rx[{#ID}]' + delay: '0' + units: '!packets' + description: 'Received packets for link.' + preprocessing: + - type: JSONPATH + parameters: + - $.packetsRx + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + - uuid: 583457c341cf41529e98b7631d8b52d6 + name: 'Link [{#NAME}]:[{#IP}]: Packets out' + type: DEPENDENT + key: 'velocloud.link.packets_tx[{#ID}]' + delay: '0' + units: '!packets' + description: 'Transmitted packets for link.' + preprocessing: + - type: JSONPATH + parameters: + - $.packetsTx + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + - uuid: ebb11f5f2445427cb6e4dbe82d63017c + name: 'Link [{#NAME}]:[{#IP}]: State' + type: DEPENDENT + key: 'velocloud.link.state[{#ID}]' + delay: '0' + description: 'Link state.' + valuemap: + name: 'Link states' + preprocessing: + - type: JSONPATH + parameters: + - $.link.linkState + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - type: JAVASCRIPT + parameters: + - | + switch (value) { + case 'UNSTABLE': + return 0; + case 'STABLE': + return 1; + case 'DISCONNECTED': + return 2; + default: + return 10; + } + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + trigger_prototypes: + - uuid: 7505955885414bdbbee9b93227a2c69e + expression: 'last(/VeloCloud SD-WAN Edge by HTTP/velocloud.link.state[{#ID}])<>1' + name: 'VeloCloud Edge: Link [{#NAME}]:[{#IP}]: Link state is not "STABLE"' + priority: WARNING + description: 'Link state is not "STABLE".' + tags: + - tag: scope + value: availability + - uuid: 547fd14177874f0eb9871248589e55c5 + name: 'Link [{#NAME}]:[{#IP}]: Total bytes' + type: DEPENDENT + key: 'velocloud.link.total_bytes[{#ID}]' + delay: '0' + units: B + description: 'Total bytes for link.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalBytes + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + - uuid: 849d47a34d7742eeb660b25871d6f43a + name: 'Link [{#NAME}]:[{#IP}]: Total packets' + type: DEPENDENT + key: 'velocloud.link.total_packets[{#ID}]' + delay: '0' + units: '!packets' + description: 'Total packets for link.' + preprocessing: + - type: JSONPATH + parameters: + - $.totalPackets + master_item: + key: 'velocloud.get.link[{#ID}]' + tags: + - tag: component + value: link + - tag: enterprise + value: '{#ENTERPRISE}' + - tag: interface + value: '{#IF}' + - tag: ip + value: '{#IP}' + - tag: name + value: '{#NAME}' + graph_prototypes: + - uuid: 3d166d25437640faa3f708dbfec91d85 + name: 'Link [{#NAME}]:[{#IP}]:[{#ID}]: Best latency' + graph_items: + - color: 199C0D + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.link.best_latency_rx[{#ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.link.best_latency_tx[{#ID}]' + - uuid: 01e93c93fd0545a4bbb6c14bcea5f862 + name: 'Link [{#NAME}]:[{#IP}]:[{#ID}]: Best loss' + graph_items: + - color: 199C0D + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.link.best_loss_rx.pct[{#ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.link.best_loss_tx.pct[{#ID}]' + - uuid: 3023541e671242618f3a0860e38c76a9 + name: 'Link [{#NAME}]:[{#IP}]:[{#ID}]: Bytes summary' + graph_items: + - color: 199C0D + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.link.bytes_rx[{#ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.link.bytes_tx[{#ID}]' + - sortorder: '2' + color: 00611C + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.link.total_bytes[{#ID}]' + - uuid: a27f4d1877e541beb18c3144988e48fa + name: 'Link [{#NAME}]:[{#IP}]:[{#ID}]: Packets summary' + graph_items: + - color: 199C0D + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.link.packets_rx[{#ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.link.packets_tx[{#ID}]' + - sortorder: '2' + color: 00611C + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.link.total_packets[{#ID}]' + master_item: + key: velocloud.edge.link.get.data + lld_macro_paths: + - lld_macro: '{#ENTERPRISE}' + path: $.link.enterpriseName + - lld_macro: '{#ID}' + path: $.link.linkId + - lld_macro: '{#IF}' + path: $.link.interface + - lld_macro: '{#IP}' + path: $.link.linkIpAddress + - lld_macro: '{#NAME}' + path: $.link.displayName + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e3c8ac51bd304a96ab9fb7876b1b70f6 + name: 'SD-WAN peer path metric discovery' + type: DEPENDENT + key: velocloud.sdwan.path.discovery + delay: '0' + description: 'Metrics for SD-WAN peer paths.' + item_prototypes: + - uuid: a9cd1da8eb3e4844a39119e8fac033e9 + name: 'Path [{#NAME}]:[{#SOURCE} => {#DESTINATION}]: Raw data' + type: DEPENDENT + key: 'velocloud.get.sdwan_path[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for VeloCloud SD-WAN peer path.' + preprocessing: + - type: JSONPATH + parameters: + - '$.edgeSDWanPath[?(@.source.linkName==''{#NAME}'' && @.source.linkLogicalId==''{#LINK.LOGICAL.ID}'' && @.source.deviceName==''{#SOURCE}'' && @.destination.deviceName==''{#DESTINATION}'')].first()' + master_item: + key: velocloud.edge.get.peer.data + tags: + - tag: component + value: raw + - tag: component + value: sd-wan-path + - uuid: 54e1f10281d64c859a7a210fa091ee4d + name: 'Path [{#NAME}]:[{#SOURCE} => {#DESTINATION}]: Bytes in' + type: DEPENDENT + key: 'velocloud.sdwan.path.bytes_rx[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + delay: '0' + units: B + description: 'Bytes received for SD-WAN peer path.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.bytesRx + master_item: + key: 'velocloud.get.sdwan_path[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + tags: + - tag: component + value: sd-wan-path + - tag: destination + value: '{#DESTINATION}' + - tag: path + value: '{#NAME}' + - tag: source + value: '{#SOURCE}' + - uuid: 57873613524b4cc29600971457b4ea85 + name: 'Path [{#NAME}]:[{#SOURCE} => {#DESTINATION}]: Bytes out' + type: DEPENDENT + key: 'velocloud.sdwan.path.bytes_tx[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + delay: '0' + units: B + description: 'Bytes transmitted for SD-WAN peer path.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.bytesTx + master_item: + key: 'velocloud.get.sdwan_path[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + tags: + - tag: component + value: sd-wan-path + - tag: destination + value: '{#DESTINATION}' + - tag: path + value: '{#NAME}' + - tag: source + value: '{#SOURCE}' + - uuid: 37d693c024c14b168689d860fbdafb14 + name: 'Path [{#NAME}]:[{#SOURCE} => {#DESTINATION}]: Packets in' + type: DEPENDENT + key: 'velocloud.sdwan.path.packets_rx[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + delay: '0' + units: '!packets' + description: 'Packets received for SD-WAN peer path.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.packetsRx + master_item: + key: 'velocloud.get.sdwan_path[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + tags: + - tag: component + value: sd-wan-path + - tag: destination + value: '{#DESTINATION}' + - tag: path + value: '{#NAME}' + - tag: source + value: '{#SOURCE}' + - uuid: 61141a5b812c47ebb00ab042a2acee8f + name: 'Path [{#NAME}]:[{#SOURCE} => {#DESTINATION}]: Packets out' + type: DEPENDENT + key: 'velocloud.sdwan.path.packets_tx[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + delay: '0' + units: '!packets' + description: 'Packets transmitted for SD-WAN peer path.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.packetsTx + master_item: + key: 'velocloud.get.sdwan_path[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + tags: + - tag: component + value: sd-wan-path + - tag: destination + value: '{#DESTINATION}' + - tag: path + value: '{#NAME}' + - tag: source + value: '{#SOURCE}' + - uuid: 3a858422652644cdbede50a3b86097be + name: 'Path [{#NAME}]:[{#SOURCE} => {#DESTINATION}]: Packet loss in' + type: DEPENDENT + key: 'velocloud.sdwan.path.packet_loss_rx[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Received packet loss for SD-WAN peer path.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.packetLossRx + master_item: + key: 'velocloud.get.sdwan_path[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + tags: + - tag: component + value: sd-wan-path + - tag: destination + value: '{#DESTINATION}' + - tag: path + value: '{#NAME}' + - tag: source + value: '{#SOURCE}' + - uuid: 75369efc91734964b8a5872fc921c684 + name: 'Path [{#NAME}]:[{#SOURCE} => {#DESTINATION}]: Packet loss out' + type: DEPENDENT + key: 'velocloud.sdwan.path.packet_loss_tx[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Transmitted packet loss for SD-WAN peer path.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.packetLossTx + master_item: + key: 'velocloud.get.sdwan_path[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + tags: + - tag: component + value: sd-wan-path + - tag: destination + value: '{#DESTINATION}' + - tag: path + value: '{#NAME}' + - tag: source + value: '{#SOURCE}' + - uuid: 2a52d7cab0604ff2bb87e17d6e3cfda1 + name: 'Path [{#NAME}]:[{#SOURCE} => {#DESTINATION}]: Bytes total' + type: DEPENDENT + key: 'velocloud.sdwan.path.total_bytes[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + delay: '0' + units: B + description: 'Total bytes for SD-WAN peer path.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.totalBytes + master_item: + key: 'velocloud.get.sdwan_path[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + tags: + - tag: component + value: sd-wan-path + - tag: destination + value: '{#DESTINATION}' + - tag: path + value: '{#NAME}' + - tag: source + value: '{#SOURCE}' + - uuid: e071f96cdb7f48909e6afba191fa31f2 + name: 'Path [{#NAME}]:[{#SOURCE} => {#DESTINATION}]: Total packets' + type: DEPENDENT + key: 'velocloud.sdwan.path.total_packets[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + delay: '0' + units: '!packets' + description: 'Total packets for SD-WAN peer path.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.totalPackets + master_item: + key: 'velocloud.get.sdwan_path[{#NAME}/{#SOURCE}/{#DESTINATION}/{#LINK.LOGICAL.ID}]' + tags: + - tag: component + value: sd-wan-path + - tag: destination + value: '{#DESTINATION}' + - tag: path + value: '{#NAME}' + - tag: source + value: '{#SOURCE}' + master_item: + key: velocloud.edge.get.peer.data + lld_macro_paths: + - lld_macro: '{#DESTINATION}' + path: $.destination.deviceName + - lld_macro: '{#LINK.LOGICAL.ID}' + path: $.source.linkLogicalId + - lld_macro: '{#NAME}' + path: $.source.linkName + - lld_macro: '{#SOURCE}' + path: $.source.deviceName + preprocessing: + - type: JSONPATH + parameters: + - $.edgeSDWanPath + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 5fcdbf684e29440f92d9a5718931966e + name: 'SD-WAN peer metric discovery' + type: DEPENDENT + key: velocloud.sdwan.peer.discovery + delay: '0' + description: 'Metrics for SD-WAN peers.' + item_prototypes: + - uuid: b49bcac20607419084db11943224e85f + name: 'SD-WAN Peer [{#NAME}]:[{#TYPE}]: Raw data' + type: DEPENDENT + key: 'velocloud.get.sdwan.peer[{#EDGE.ID}/{#ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for VeloCloud SD-WAN peer.' + preprocessing: + - type: JSONPATH + parameters: + - '$.edgeSDWan[?(@.deviceLogicalId==''{#ID}'' && @.edgeId==''{#EDGE.ID}'')].first()' + master_item: + key: velocloud.edge.get.peer.data + tags: + - tag: component + value: raw + - tag: component + value: sd-wan-peer + - uuid: f10ff8d7db5e4c08835aa317d975854a + name: 'SD-WAN Peer [{#NAME}]:[{#TYPE}]: Dead path' + type: DEPENDENT + key: 'velocloud.sdwan.peer.dead_path[{#EDGE.ID}/{#ID}]' + delay: '0' + description: 'Number of dead paths for SD-WAN peer.' + preprocessing: + - type: JSONPATH + parameters: + - $.pathStatusCount.dead + master_item: + key: 'velocloud.get.sdwan.peer[{#EDGE.ID}/{#ID}]' + tags: + - tag: component + value: sd-wan-peer + - tag: edge + value: '{#EDGE}' + - tag: peer + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: 917d56352c444a8babf0b499540b8cf3 + name: 'SD-WAN Peer [{#NAME}]:[{#TYPE}]: Description' + type: DEPENDENT + key: 'velocloud.sdwan.peer.description[{#EDGE.ID}/{#ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Description of SD-WAN peer.' + preprocessing: + - type: JSONPATH + parameters: + - $.description + - type: STR_REPLACE + parameters: + - 'null' + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'velocloud.get.sdwan.peer[{#EDGE.ID}/{#ID}]' + tags: + - tag: component + value: sd-wan-peer + - tag: edge + value: '{#EDGE}' + - tag: peer + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: 7e3d1fa5d1224972b5db03e6ff52cd6b + name: 'SD-WAN Peer [{#NAME}]:[{#TYPE}]: Stable path' + type: DEPENDENT + key: 'velocloud.sdwan.peer.stable_path[{#EDGE.ID}/{#ID}]' + delay: '0' + description: 'Number of stable paths for SD-WAN peer.' + preprocessing: + - type: JSONPATH + parameters: + - $.pathStatusCount.stable + master_item: + key: 'velocloud.get.sdwan.peer[{#EDGE.ID}/{#ID}]' + tags: + - tag: component + value: sd-wan-peer + - tag: edge + value: '{#EDGE}' + - tag: peer + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: 8db7e0a4e7db4a1e85a785468a601a5f + name: 'SD-WAN Peer [{#NAME}]:[{#TYPE}]: Standby path' + type: DEPENDENT + key: 'velocloud.sdwan.peer.standby_path[{#EDGE.ID}/{#ID}]' + delay: '0' + description: 'Number of standby paths for SD-WAN peer.' + preprocessing: + - type: JSONPATH + parameters: + - $.pathStatusCount.standby + master_item: + key: 'velocloud.get.sdwan.peer[{#EDGE.ID}/{#ID}]' + tags: + - tag: component + value: sd-wan-peer + - tag: edge + value: '{#EDGE}' + - tag: peer + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: 91c755ccf2d4463583a96d0fc8806507 + name: 'SD-WAN Peer [{#NAME}]:[{#TYPE}]: Total path' + type: DEPENDENT + key: 'velocloud.sdwan.peer.total_path[{#EDGE.ID}/{#ID}]' + delay: '0' + description: 'Number of total paths for SD-WAN peer.' + preprocessing: + - type: JSONPATH + parameters: + - $.pathStatusCount.total + master_item: + key: 'velocloud.get.sdwan.peer[{#EDGE.ID}/{#ID}]' + tags: + - tag: component + value: sd-wan-peer + - tag: edge + value: '{#EDGE}' + - tag: peer + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: b7451d0fb6f4487f981c183dd6680f62 + name: 'SD-WAN Peer [{#NAME}]:[{#TYPE}]: Unknown path' + type: DEPENDENT + key: 'velocloud.sdwan.peer.unknown_path[{#EDGE.ID}/{#ID}]' + delay: '0' + description: 'Number of unknown paths for SD-WAN peer.' + preprocessing: + - type: JSONPATH + parameters: + - $.pathStatusCount.unknown + master_item: + key: 'velocloud.get.sdwan.peer[{#EDGE.ID}/{#ID}]' + tags: + - tag: component + value: sd-wan-peer + - tag: edge + value: '{#EDGE}' + - tag: peer + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + - uuid: 7c4ba627011a447e89232e082c15174c + name: 'SD-WAN Peer [{#NAME}]:[{#TYPE}]: Unstable path' + type: DEPENDENT + key: 'velocloud.sdwan.peer.unstable_path[{#EDGE.ID}/{#ID}]' + delay: '0' + description: 'Number of unstable paths for SD-WAN peer.' + preprocessing: + - type: JSONPATH + parameters: + - $.pathStatusCount.unstable + master_item: + key: 'velocloud.get.sdwan.peer[{#EDGE.ID}/{#ID}]' + tags: + - tag: component + value: sd-wan-peer + - tag: edge + value: '{#EDGE}' + - tag: peer + value: '{#NAME}' + - tag: type + value: '{#TYPE}' + graph_prototypes: + - uuid: acc5c04f97724dbfa18293211ebbd70c + name: 'SD-WAN Peer [{#NAME}]:[{#TYPE}]: {#EDGE.ID}: Path overview' + graph_items: + - color: 199C0D + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.sdwan.peer.stable_path[{#EDGE.ID}/{#ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.sdwan.peer.dead_path[{#EDGE.ID}/{#ID}]' + - sortorder: '2' + color: 00611C + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.sdwan.peer.standby_path[{#EDGE.ID}/{#ID}]' + - sortorder: '3' + color: F7941D + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.sdwan.peer.unknown_path[{#EDGE.ID}/{#ID}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: 'velocloud.sdwan.peer.unstable_path[{#EDGE.ID}/{#ID}]' + master_item: + key: velocloud.edge.get.peer.data + lld_macro_paths: + - lld_macro: '{#EDGE.ID}' + path: $.edgeId + - lld_macro: '{#EDGE}' + path: $.edgeName + - lld_macro: '{#ID}' + path: $.deviceLogicalId + - lld_macro: '{#NAME}' + path: $.peerName + - lld_macro: '{#TYPE}' + path: $.peerType + preprocessing: + - type: JSONPATH + parameters: + - $.edgeSDWan + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: velocloud-sd-wan-edge + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for the script item: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "VeloCloud SD-WAN Edge", e.g. {$HTTP.TLS.VERIFY:"VeloCloud SD-WAN Edge"}.' + - macro: '{$VELOCLOUD.EDGE.CPU.UTIL.WARN}' + value: '80' + description: 'Warning threshold of cluster service CPU utilization expressed in percent.' + - macro: '{$VELOCLOUD.EDGE.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for API.' + - macro: '{$VELOCLOUD.EDGE.FREQUENCY}' + value: 15m + description: 'Update interval for raw item collection.' + - macro: '{$VELOCLOUD.EDGE.ID}' + description: 'SD-WAN Edge ID.' + - macro: '{$VELOCLOUD.EDGE.MEMORY.UTIL.WARN}' + value: '70' + description: 'Warning threshold of cluster memory utilization expressed in percent.' + - macro: '{$VELOCLOUD.ENTERPRISE.ID}' + description: 'SD-WAN Enterprise ID.' + - macro: '{$VELOCLOUD.LLD.LINKS.NAME.FILTER.MATCHES}' + value: '.*' + description: 'Filter for discoverable links by name.' + - macro: '{$VELOCLOUD.LLD.LINKS.NAME.FILTER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered links by name.' + - macro: '{$VELOCLOUD.TOKEN}' + type: SECRET_TEXT + description: 'VeloCloud SD-WAN Orchestrator API token.' + - macro: '{$VELOCLOUD.URL}' + description: 'VeloCloud SD-WAN Orchestrator URL, e.g., `vco.velocloud.net`.' + dashboards: + - uuid: e286e61fd48b42e0b2cc10375f947966 + name: 'VeloCloud: General' + pages: + - name: Overview + widgets: + - type: item + width: '14' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: velocloud.edge.activation + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '15' + - type: gauge + name: 'CPU usage' + 'y': '4' + width: '14' + height: '5' + fields: + - type: INTEGER + name: angle + value: '270' + - type: ITEM + name: itemid.0 + value: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: velocloud.edge.cpu.usage + - type: INTEGER + name: show.0 + value: '3' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: show.3 + value: '5' + - type: STRING + name: thresholds.0.color + value: 2196F3 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF8000 + - type: STRING + name: thresholds.1.threshold + value: '60' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '80' + - type: INTEGER + name: th_arc_size + value: '20' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: units_bold + value: '1' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_bold + value: '1' + - type: INTEGER + name: value_size + value: '20' + - type: gauge + name: 'Memory usage' + 'y': '9' + width: '14' + height: '5' + fields: + - type: INTEGER + name: angle + value: '270' + - type: ITEM + name: itemid.0 + value: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: velocloud.edge.memory.usage + - type: INTEGER + name: show.0 + value: '3' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: show.3 + value: '5' + - type: STRING + name: thresholds.0.color + value: 9CCC65 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FF8000 + - type: STRING + name: thresholds.1.threshold + value: '60' + - type: STRING + name: thresholds.2.color + value: FF465C + - type: STRING + name: thresholds.2.threshold + value: '80' + - type: INTEGER + name: th_arc_size + value: '20' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: units_bold + value: '1' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_bold + value: '1' + - type: INTEGER + name: value_size + value: '20' + - type: geomap + name: 'Edge geo' + 'y': '14' + width: '72' + height: '7' + fields: + - type: STRING + name: default_view + value: '40.6892494,-74.0466891,10' + - type: STRING + name: reference + value: FZFLX + - type: item + x: '14' + width: '14' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: velocloud.edge.ha_state + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '15' + - type: svggraph + name: 'Best latency sent' + x: '14' + 'y': '4' + width: '58' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 388E3C + - type: STRING + name: ds.0.items.0 + value: '*Best latency tx, ms' + - type: STRING + name: reference + value: FDBBC + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Best latency received' + x: '14' + 'y': '9' + width: '58' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 1565C0 + - type: STRING + name: ds.0.items.0 + value: '*Best latency rx, ms' + - type: STRING + name: reference + value: XMHZG + - type: INTEGER + name: righty + value: '0' + - type: item + x: '28' + width: '14' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: velocloud.edge.model + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '20' + - type: item + x: '42' + width: '14' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: velocloud.edge.software_version + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '20' + - type: item + x: '56' + width: '16' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VeloCloud SD-WAN Edge by HTTP' + key: velocloud.edge.system_uptime + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '20' + - name: Links + widgets: + - type: svggraph + name: 'Output packets' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 5E35B1 + - type: STRING + name: ds.0.items.0 + value: 'Link *: Packets out' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '4' + - type: STRING + name: reference + value: FFCAF + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Best loss tx' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '795548' + - type: STRING + name: ds.0.items.0 + value: 'Link *: Best loss tx, %' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: FCDDA + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Incoming traffic' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 78909C + - type: STRING + name: ds.0.items.0 + value: 'Link *: Bytes in' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: FEECA + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Input packets' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 0D47A1 + - type: STRING + name: ds.0.items.0 + value: 'Link *: Packets in' + - type: INTEGER + name: legend_lines + value: '4' + - type: STRING + name: reference + value: AEBCF + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Best loss rx' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: AC3C00 + - type: STRING + name: ds.0.items.0 + value: 'Link *: Best loss rx, %' + - type: STRING + name: reference + value: ACDAE + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Outgoing traffic' + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 9575CD + - type: STRING + name: ds.0.items.0 + value: 'Link *: Bytes out' + - type: STRING + name: reference + value: AEBFA + - type: INTEGER + name: righty + value: '0' + - name: 'SD-WAN peers' + widgets: + - type: honeycomb + name: 'Stable path' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'SD-WAN Peer [*]:[*]: Stable path' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: YWRAS + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Unstable path' + 'y': '4' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'SD-WAN Peer [*]:[*]: Unstable path' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: AGOOH + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Unknown path' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'SD-WAN Peer [*]:[*]: Unknown path' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: ACDEB + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Standby path' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'SD-WAN Peer [*]:[*]: Standby path' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: XGHBR + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Dead path' + x: '36' + 'y': '4' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'SD-WAN Peer [*]:[*]: Dead path' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: CBFDD + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: honeycomb + name: 'Total path' + x: '36' + 'y': '8' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'SD-WAN Peer [*]:[*]: Total path' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: INTEGER + name: primary_label_bold + value: '1' + - type: STRING + name: reference + value: ABBEA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - name: 'SD-WAN peers path' + widgets: + - type: svggraph + name: 'Output packets' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 5E35B1 + - type: STRING + name: ds.0.items.0 + value: 'Path *: Packets out' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: legend_lines + value: '4' + - type: STRING + name: reference + value: EBDDA + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Packet loss in' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '795548' + - type: STRING + name: ds.0.items.0 + value: 'Path *: Packet loss in' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: DBDFF + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Incoming traffic' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 78909C + - type: STRING + name: ds.0.items.0 + value: 'Path *: Bytes in' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: CBDAC + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Input packets' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 0D47A1 + - type: STRING + name: ds.0.items.0 + value: 'Path *: Packets in' + - type: INTEGER + name: legend_lines + value: '4' + - type: STRING + name: reference + value: FDDAB + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Packet loss out' + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: AC3C00 + - type: STRING + name: ds.0.items.0 + value: 'Path *: Packet loss out' + - type: STRING + name: reference + value: BFDDC + - type: INTEGER + name: righty + value: '0' + - type: svggraph + name: 'Outgoing traffic' + x: '36' + 'y': '10' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: 9575CD + - type: STRING + name: ds.0.items.0 + value: 'Path *: Bytes out' + - type: STRING + name: reference + value: DCBAD + - type: INTEGER + name: righty + value: '0' + valuemaps: + - uuid: fb5c3e8c7565458b80e55f16c3e088d7 + name: 'Edge activation state' + mappings: + - value: '0' + newvalue: PENDING + - value: '1' + newvalue: ACTIVATED + - value: '10' + newvalue: UNKNOWN + - uuid: 017a5a34c8984720ae2032855255fb76 + name: 'Edge HA status' + mappings: + - value: '0' + newvalue: UNCONFIGURED + - value: '1' + newvalue: READY + - value: '2' + newvalue: PENDING_INIT + - value: '3' + newvalue: FAILED + - value: '10' + newvalue: UNKNOWN + - uuid: 1ca0e7345c1b4bfd89da2009cf81a6a8 + name: 'Edge states' + mappings: + - value: '0' + newvalue: OFFLINE + - value: '1' + newvalue: CONNECTED + - value: '2' + newvalue: NEVER_ACTIVATED + - value: '10' + newvalue: UNKNOWN + - uuid: 4233328ae66d4961ab1709bd9fbaa791 + name: 'Link states' + mappings: + - value: '0' + newvalue: UNSTABLE + - value: '1' + newvalue: STABLE + - value: '2' + newvalue: DISCONNECTED + - value: '10' + newvalue: UNKNOWN diff --git a/VeloCloud_SD-WAN_by_HTTP.yaml b/VeloCloud_SD-WAN_by_HTTP.yaml new file mode 100644 index 0000000..224edbd --- /dev/null +++ b/VeloCloud_SD-WAN_by_HTTP.yaml @@ -0,0 +1,1068 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + host_groups: + - uuid: f2481361f99448eea617b7b1d4765566 + name: 'Discovered hosts' + templates: + - uuid: e1ca624566424496bff9d90c261ab37b + template: 'VeloCloud SD-WAN by HTTP' + name: 'VeloCloud SD-WAN by HTTP' + description: | + Template for monitoring VeloCloud SD-WAN https://www.arista.com/en/support/velocloud-resources + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 3d96f6e755934bc8a4ee7300a165adae + name: 'Get data' + type: SCRIPT + key: velocloud.get + delay: '{$VELOCLOUD.SDWAN.FREQUENCY}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var VeloCloud = { + params: {}, + + setParams: function (params) { + ['url', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + VeloCloud.params = params; + + if (VeloCloud.params.token === '{' + '$VELOCLOUD.TOKEN}') { + throw 'Please change {' + '$VELOCLOUD.TOKEN} macro with the proper value.'; + } + if (!VeloCloud.params.url.startsWith('http://') && !VeloCloud.params.url.startsWith('https://')) { + VeloCloud.params.url = 'https://' + params.url; + } + if (!VeloCloud.params.url.endsWith('/')) { + VeloCloud.params.url += '/'; + } + + VeloCloud.tls = new CTlsConfig(params.tls_verify); + VeloCloud.tls.checkURL(VeloCloud.params.url); + }, + + getField: function (data, path, trace) { + const steps = path.split('.'); + + for (var i = 0; i < steps.length; i++) { + var step = steps[i]; + if (typeof data !== 'object' || typeof data[step] === 'undefined') { + throw 'Required field was not found: ' + path + ' - ' + trace; + } + data = data[step]; + } + + return data; + }, + + request: function (url, body) { + + var response, request = new HttpRequest(VeloCloud.tls.options); + + if (typeof VeloCloud.params.http_proxy !== 'undefined' && VeloCloud.params.http_proxy !== '') { + request.setProxy(VeloCloud.params.http_proxy); + } + + request.addHeader('Content-Type: application/json'); + request.addHeader('Authorization: Token ' + VeloCloud.params.token); + + response = request.post(url, body); + + Zabbix.log(4, '[ SD-WAN API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + try { + response = JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from SD-WAN API. Check debug log for more information.'; + } + if (response.error && response.error.message) { + throw response.error.message; + } + + return response; + + }, + + getMetricsData: function () { + var enterprises = [], + edges = []; + + if (typeof VeloCloud.params.enterprise_id !== 'undefined' && VeloCloud.params.enterprise_id !== '') { + response_edges = VeloCloud.request(VeloCloud.params.url + 'portal/rest/enterprise/getEnterpriseEdges', + JSON.stringify({ + enterpriseId: Number(VeloCloud.params.enterprise_id), + with: ['site'], + fieldsNeeded: [ + "id", + "enterpriseId", + "name" + ] + })); + + edges = response_edges; + + } else { + + enterprises = VeloCloud.getField(VeloCloud.request(VeloCloud.params.url + 'portal/rest/monitoring/getAggregates', '{}'), 'enterprises', 'error get enterprises'); + + if (!Array.isArray(enterprises)) { + enterprises = [enterprises]; + } + for (var i in enterprises) { + response_edges = VeloCloud.request(VeloCloud.params.url + 'portal/rest/enterprise/getEnterpriseEdges', JSON.stringify({ + enterpriseId: VeloCloud.getField(enterprises[i], 'id', 'error get enterpriseId'), + with: ['site'], + fieldsNeeded: [ + "id", + "enterpriseId", + "name" + ] + })); + edges = edges.concat(response_edges); + } + + } + + return { edges: edges, enterprises: enterprises }; + } + } + + try { + VeloCloud.setParams(JSON.parse(value)); + return JSON.stringify(VeloCloud.getMetricsData()); + } + catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ VeloCloud ] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'JSON result from VeloCloud API requests.' + timeout: '{$VELOCLOUD.SDWAN.DATA.TIMEOUT}' + parameters: + - name: enterprise_id + value: '{$VELOCLOUD.ENTERPRISE.ID}' + - name: http_proxy + value: '{$VELOCLOUD.HTTP_PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"VeloCloud SD-WAN"}' + - name: token + value: '{$VELOCLOUD.TOKEN}' + - name: url + value: '{$VELOCLOUD.URL}' + tags: + - tag: component + value: raw + - uuid: 0e201ebcdc2f491f901a883f9cc3ce69 + name: 'Get network gateway data collection errors' + type: DEPENDENT + key: velocloud.get.edges.error + delay: '0' + value_type: TEXT + trends: '0' + description: 'Errors from aggregate data collection for network gateways.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: velocloud.network.gateway.get + tags: + - tag: component + value: application + triggers: + - uuid: 40aad027b5fc43babe9f5bcb2d458453 + expression: 'length(last(/VeloCloud SD-WAN by HTTP/velocloud.get.edges.error))>0' + name: 'VeloCloud: There are errors in network gateways item' + priority: WARNING + description: 'There are errors in the aggregate script item for network gateways.' + tags: + - tag: scope + value: notice + - uuid: 8a54309d8abc4fc7816b168329243de4 + name: 'Get data collection errors' + type: DEPENDENT + key: velocloud.get.error + delay: '0' + value_type: TEXT + trends: '0' + description: 'Errors from aggregate data collection.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: velocloud.get + tags: + - tag: component + value: application + triggers: + - uuid: a0623655a2fa4f60962ad560b8bb5a13 + expression: 'length(last(/VeloCloud SD-WAN by HTTP/velocloud.get.error))>0' + name: 'VeloCloud: There are errors in aggregate script item' + priority: WARNING + description: 'There are errors in the aggregate script item.' + tags: + - tag: scope + value: notice + - uuid: d7444ca3a03b468385b5cccad55c0492 + name: 'Get version info errors' + type: DEPENDENT + key: velocloud.info.get.error + delay: '0' + value_type: TEXT + trends: '0' + description: 'Errors from version info response.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: velocloud.version.info.get + tags: + - tag: component + value: application + triggers: + - uuid: cbdb8c53e1f1496facd1225e38bf98eb + expression: 'length(last(/VeloCloud SD-WAN by HTTP/velocloud.info.get.error))>0' + name: 'VeloCloud: There are errors in version info item' + priority: WARNING + description: 'There are errors in the version info item.' + tags: + - tag: scope + value: notice + - uuid: 5fdaf4757bf34657984cb7f071c304cb + name: 'Get network gateways' + type: HTTP_AGENT + key: velocloud.network.gateway.get + delay: '{$VELOCLOUD.SDWAN.FREQUENCY}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets network gateway information.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + url: 'https://{$VELOCLOUD.URL}/portal/rest/network/getNetworkGateways' + posts: '{ "with": ["site"] }' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Token {$VELOCLOUD.TOKEN}' + request_method: POST + tags: + - tag: component + value: raw + - uuid: 3f589e2191c5419fb89cc33639595ae9 + name: 'Orchestrator API version' + type: DEPENDENT + key: velocloud.orchestrator.api_version + delay: '0' + value_type: TEXT + trends: '0' + description: 'Version of VeloCloud SD-WAN Orchestrator API.' + preprocessing: + - type: JSONPATH + parameters: + - $.apiVersion + master_item: + key: velocloud.version.info.get + tags: + - tag: component + value: orchestrator + triggers: + - uuid: 5a95d9c614e74c2c8b6181fc8dff2226 + expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.api_version,#1)<>last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.api_version,#2) and length(last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.api_version))>0' + name: 'VeloCloud: Orchestrator API version has changed' + priority: AVERAGE + description: 'The VeloCloud Orchestrator API version has changed.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ab24d8fc4c2a4130bca1b4b6d4f311ae + name: 'Orchestrator build' + type: DEPENDENT + key: velocloud.orchestrator.build + delay: '0' + value_type: CHAR + trends: '0' + description: 'Build of VeloCloud SD-WAN Orchestrator API.' + preprocessing: + - type: JSONPATH + parameters: + - $.build + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: velocloud.version.info.get + tags: + - tag: component + value: orchestrator + triggers: + - uuid: 37c16b3cbd8b4680ab85a1fea819611f + expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.build,#1)<>last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.build,#2) and length(last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.build))>0' + name: 'VeloCloud: Orchestrator build has changed' + priority: INFO + description: 'The VeloCloud Orchestrator build has changed.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1f60b61051494ab495de4dfe2cd83450 + name: 'Orchestrator version' + type: DEPENDENT + key: velocloud.orchestrator.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of VMware SD-WAN Orchestrator API.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: velocloud.version.info.get + tags: + - tag: component + value: orchestrator + triggers: + - uuid: a1d8e4d61a804c8fb11b33f590f0885c + expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.version,#1)<>last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.version,#2) and length(last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.version))>0' + name: 'VeloCloud: Orchestrator version has changed' + priority: INFO + description: 'The VeloCloud Orchestrator version has changed.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1206789df5b44af7ba1c5416662344dd + name: 'System properties' + type: HTTP_AGENT + key: velocloud.system.properties + delay: 6h + value_type: TEXT + trends: '0' + description: 'System properties of VMware SD-WAN.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + url: 'https://{$VELOCLOUD.URL}/portal/rest/systemProperty/getSystemProperties' + posts: '{ "normalize": true }' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Token {$VELOCLOUD.TOKEN}' + request_method: POST + tags: + - tag: component + value: application + triggers: + - uuid: 58541dfe798843fa822276e84a32b919 + expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.system.properties,#1)<>last(/VeloCloud SD-WAN by HTTP/velocloud.system.properties,#2)' + name: 'VeloCloud: System properties have changed' + priority: INFO + description: 'The system properties have changed.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d0d6978941fb45dda2791e9c0e2cf7c7 + name: 'Get version info data' + type: HTTP_AGENT + key: velocloud.version.info.get + delay: '{$VELOCLOUD.SDWAN.FREQUENCY}' + history: '0' + value_type: TEXT + trends: '0' + description: 'Gets system version information.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + url: 'https://{$VELOCLOUD.URL}/portal/rest/system/getVersionInfo' + posts: '{}' + headers: + - name: Content-Type + value: application/json + - name: Authorization + value: 'Token {$VELOCLOUD.TOKEN}' + request_method: POST + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 522ba6551cc64094b60a136d07c9921d + name: 'Edge discovery' + type: DEPENDENT + key: velocloud.edge.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#EDGE.NAME}' + value: '{$VELOCLOUD.LLD.EDGES.NAME.FILTER.MATCHES}' + formulaid: A + - macro: '{#EDGE.NAME}' + value: '{$VELOCLOUD.LLD.EDGES.NAME.FILTER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#EDGE.STATE}' + value: '{$VELOCLOUD.LLD.EDGES.STATE.FILTER.MATCHES}' + formulaid: C + - macro: '{#EDGE.STATE}' + value: '{$VELOCLOUD.LLD.EDGES.STATE.FILTER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Get Edge instances.' + host_prototypes: + - uuid: 5896745a4b844f1a826d5dd060bc2b5b + host: '{#EDGE.NAME}' + name: '{#EDGE.NAME}' + inventory_mode: AUTOMATIC + group_links: + - group: + name: 'Discovered hosts' + templates: + - name: 'VeloCloud SD-WAN Edge by HTTP' + macros: + - macro: '{$VELOCLOUD.EDGE.ID}' + value: '{#EDGE.ID}' + description: 'SD-WAN Edge id.' + - macro: '{$VELOCLOUD.EDGE.INVENTORY}' + value: '{#EDGE.INVENTORY}' + description: 'SD-WAN Edge inventory.' + - macro: '{$VELOCLOUD.EDGE.NAME}' + value: '{#EDGE.NAME}' + description: 'SD-WAN Edge name.' + - macro: '{$VELOCLOUD.ENTERPRISE.ID}' + value: '{#ENTERPRISE.ID}' + description: 'SD-WAN Enterprise id.' + tags: + - tag: city + value: '{#EDGE.CITY}' + - tag: country + value: '{#EDGE.COUNTRY}' + - tag: service + value: edge + master_item: + key: velocloud.get + lld_macro_paths: + - lld_macro: '{#EDGE.CITY}' + path: $.site.city + - lld_macro: '{#EDGE.COUNTRY}' + path: $.site.country + - lld_macro: '{#EDGE.ID}' + path: $.id + - lld_macro: '{#EDGE.INVENTORY}' + path: $.site + - lld_macro: '{#EDGE.NAME}' + path: $.name + - lld_macro: '{#EDGE.STATE}' + path: $.site.state + - lld_macro: '{#ENTERPRISE.ID}' + path: $.enterpriseId + preprocessing: + - type: JSONPATH + parameters: + - $.edges + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: e2879e0ce6e44203b0615c36ba626cc0 + name: 'Gateway metric discovery' + type: DEPENDENT + key: velocloud.gateway.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$VELOCLOUD.LLD.GATEWAYS.FILTER.MATCHES}' + formulaid: A + - macro: '{#NAME}' + value: '{$VELOCLOUD.LLD.GATEWAYS.FILTER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Metrics for gateway statistics.' + item_prototypes: + - uuid: 52859166849d4cdf860664f8d3b8088d + name: 'Gateway [{#NAME}]: Connected edges' + type: DEPENDENT + key: 'velocloud.gateway.connected_edges[{#ID}]' + delay: '0' + description: 'Edges connected to gateway.' + preprocessing: + - type: JSONPATH + parameters: + - $.connectedEdges + master_item: + key: 'velocloud.get.gateway[{#ID}]' + tags: + - tag: city + value: '{#CITY}' + - tag: component + value: gateway + - tag: name + value: '{#NAME}' + - tag: state + value: '{#STATE}' + trigger_prototypes: + - uuid: f0d7bdb2ac3540258ab6a276b43a382c + expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.gateway.connected_edges[{#ID}],#1)<>last(/VeloCloud SD-WAN by HTTP/velocloud.gateway.connected_edges[{#ID}],#2)' + name: 'VeloCloud: Gateway [{#NAME}]: The number of connected edges has changed' + priority: WARNING + description: 'The number of connected Edges has changed.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5e588efb83be4dc2bc29eaa0a6630718 + name: 'Gateway [{#NAME}]: Description' + type: DEPENDENT + key: 'velocloud.gateway.description[{#ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Gateway description.' + preprocessing: + - type: JSONPATH + parameters: + - $.description + - type: STR_REPLACE + parameters: + - 'null' + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'velocloud.get.gateway[{#ID}]' + tags: + - tag: city + value: '{#CITY}' + - tag: component + value: gateway + - tag: name + value: '{#NAME}' + - tag: state + value: '{#STATE}' + - uuid: 7f2a0a68386744cb84fab35df8c55a07 + name: 'Gateway [{#NAME}]: IP address' + type: DEPENDENT + key: 'velocloud.gateway.ip_address[{#ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Gateway IP address.' + preprocessing: + - type: JSONPATH + parameters: + - $.ipAddress + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'velocloud.get.gateway[{#ID}]' + tags: + - tag: city + value: '{#CITY}' + - tag: component + value: gateway + - tag: name + value: '{#NAME}' + - tag: state + value: '{#STATE}' + - uuid: b304460854f0485189f88df12483b5ac + name: 'Gateway [{#NAME}]: Service uptime' + type: DEPENDENT + key: 'velocloud.gateway.service_uptime[{#ID}]' + delay: '0' + units: uptime + description: 'Gateway service uptime.' + preprocessing: + - type: JSONPATH + parameters: + - $.serviceUpSince + - type: JAVASCRIPT + parameters: + - | + value == '0000-00-00 00:00:00' ? value = 0 : value = Math.round((Date.now() - new Date(value).valueOf()) / 1000); + return value; + master_item: + key: 'velocloud.get.gateway[{#ID}]' + tags: + - tag: city + value: '{#CITY}' + - tag: component + value: gateway + - tag: name + value: '{#NAME}' + - tag: state + value: '{#STATE}' + - uuid: 91784583eda943a7ace430413450391c + name: 'Gateway [{#NAME}]: State' + type: DEPENDENT + key: 'velocloud.gateway.state[{#ID}]' + delay: '0' + value_type: TEXT + trends: '0' + description: 'Gateway state.' + preprocessing: + - type: JSONPATH + parameters: + - $.gatewayState + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'velocloud.get.gateway[{#ID}]' + tags: + - tag: city + value: '{#CITY}' + - tag: component + value: gateway + - tag: name + value: '{#NAME}' + - tag: state + value: '{#STATE}' + - uuid: d902600ef51640ffaaa4384ce505bcc2 + name: 'Gateway [{#NAME}]: System uptime' + type: DEPENDENT + key: 'velocloud.gateway.system_uptime[{#ID}]' + delay: '0' + units: uptime + description: 'Gateway system uptime.' + preprocessing: + - type: JSONPATH + parameters: + - $.systemUpSince + - type: JAVASCRIPT + parameters: + - | + value == '0000-00-00 00:00:00' ? value = 0 : value = Math.round((Date.now() - new Date(value).valueOf()) / 1000); + return value; + master_item: + key: 'velocloud.get.gateway[{#ID}]' + tags: + - tag: city + value: '{#CITY}' + - tag: component + value: gateway + - tag: name + value: '{#NAME}' + - tag: state + value: '{#STATE}' + trigger_prototypes: + - uuid: e51ea2da27284067bd3ec8fa4faffdde + expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.gateway.system_uptime[{#ID}])>0 and last(/VeloCloud SD-WAN by HTTP/velocloud.gateway.system_uptime[{#ID}])<600' + name: 'VeloCloud: Gateway [{#NAME}]: Gateway has been restarted' + event_name: 'VeloCloud: Gateway [{#NAME}]: Gateway has been restarted (uptime < 10m)' + priority: WARNING + description: 'Gateway was restarted.' + tags: + - tag: scope + value: notice + - uuid: 66c8fe8095724fb38966b05ef5d77a37 + name: 'Gateway [{#NAME}]: Utilization CPU' + type: DEPENDENT + key: 'velocloud.gateway.utilization.cpu[{#ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Gateway CPU utilization.' + preprocessing: + - type: JSONPATH + parameters: + - $.utilizationDetail.cpu + master_item: + key: 'velocloud.get.gateway[{#ID}]' + tags: + - tag: city + value: '{#CITY}' + - tag: component + value: cpu + - tag: component + value: gateway + - tag: name + value: '{#NAME}' + - tag: state + value: '{#STATE}' + - uuid: b510c38771464024a66dc20ce9d75505 + name: 'Gateway [{#NAME}]: Utilization load' + type: DEPENDENT + key: 'velocloud.gateway.utilization.load[{#ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Gateway load.' + preprocessing: + - type: JSONPATH + parameters: + - $.utilizationDetail.load + master_item: + key: 'velocloud.get.gateway[{#ID}]' + tags: + - tag: city + value: '{#CITY}' + - tag: component + value: gateway + - tag: name + value: '{#NAME}' + - tag: state + value: '{#STATE}' + - uuid: ad83565ae40f480dacd56e63bd475ddc + name: 'Gateway [{#NAME}]: Utilization memory' + type: DEPENDENT + key: 'velocloud.gateway.utilization.memory[{#ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Gateway memory utilization.' + preprocessing: + - type: JSONPATH + parameters: + - $.utilizationDetail.memory + master_item: + key: 'velocloud.get.gateway[{#ID}]' + tags: + - tag: city + value: '{#CITY}' + - tag: component + value: gateway + - tag: component + value: memory + - tag: name + value: '{#NAME}' + - tag: state + value: '{#STATE}' + - uuid: b10c51350f604a8195e9c0176ca2de85 + name: 'Gateway [{#NAME}]: Utilization overall' + type: DEPENDENT + key: 'velocloud.gateway.utilization.overall[{#ID}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Gateway overall utilization.' + preprocessing: + - type: JSONPATH + parameters: + - $.utilizationDetail.overall + master_item: + key: 'velocloud.get.gateway[{#ID}]' + tags: + - tag: city + value: '{#CITY}' + - tag: component + value: gateway + - tag: name + value: '{#NAME}' + - tag: state + value: '{#STATE}' + - uuid: 5c11969073ab415abe08c74626bd5dd1 + name: 'Gateway [{#NAME}]: Raw data' + type: DEPENDENT + key: 'velocloud.get.gateway[{#ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data for VeloCloud gateway.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.id==''{#ID}'')].first()' + master_item: + key: velocloud.network.gateway.get + tags: + - tag: component + value: raw + graph_prototypes: + - uuid: d8d9b176f439436ba6fe69ec8bc6409e + name: 'Gateway [{#NAME}]: Utilization' + graph_items: + - color: 199C0D + item: + host: 'VeloCloud SD-WAN by HTTP' + key: 'velocloud.gateway.utilization.cpu[{#ID}]' + - sortorder: '1' + color: F63100 + item: + host: 'VeloCloud SD-WAN by HTTP' + key: 'velocloud.gateway.utilization.load[{#ID}]' + - sortorder: '2' + color: 00611C + item: + host: 'VeloCloud SD-WAN by HTTP' + key: 'velocloud.gateway.utilization.memory[{#ID}]' + - sortorder: '3' + color: F7941D + item: + host: 'VeloCloud SD-WAN by HTTP' + key: 'velocloud.gateway.utilization.overall[{#ID}]' + master_item: + key: velocloud.network.gateway.get + lld_macro_paths: + - lld_macro: '{#CITY}' + path: $.site.city + - lld_macro: '{#ID}' + path: $.id + - lld_macro: '{#NAME}' + path: $.name + - lld_macro: '{#STATE}' + path: $.site.state + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: velocloud-sd-wan + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "VeloCloud SD-WAN", e.g. {$HTTP.TLS.VERIFY:"VeloCloud SD-WAN"}.' + - macro: '{$VELOCLOUD.ENTERPRISE.ID}' + description: 'VeloCloud SD-WAN Enterprise ID. Specify a single Enterprise ID (requires READ EDGE privileges). By default parameter is empty, data will be retrieved for all Enterprises (privileges required: READ ENTERPRISE and READ EDGE).' + - macro: '{$VELOCLOUD.HTTP_PROXY}' + description: 'The HTTP proxy for script items (set if needed). If the macro is empty, then no proxy is used.' + - macro: '{$VELOCLOUD.LLD.EDGES.NAME.FILTER.MATCHES}' + value: '.*' + description: 'Filter for discoverable Edges by name.' + - macro: '{$VELOCLOUD.LLD.EDGES.NAME.FILTER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Edges by name.' + - macro: '{$VELOCLOUD.LLD.EDGES.STATE.FILTER.MATCHES}' + value: '.*' + description: 'Filter for discoverable Edges by state.' + - macro: '{$VELOCLOUD.LLD.EDGES.STATE.FILTER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered Edges by state.' + - macro: '{$VELOCLOUD.LLD.GATEWAYS.FILTER.MATCHES}' + value: '.*' + description: 'Filter for discoverable gateways.' + - macro: '{$VELOCLOUD.LLD.GATEWAYS.FILTER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered gateways.' + - macro: '{$VELOCLOUD.SDWAN.DATA.TIMEOUT}' + value: 15s + description: 'Response timeout for API.' + - macro: '{$VELOCLOUD.SDWAN.FREQUENCY}' + value: 1h + description: 'Update interval for raw item, expressed in hours.' + - macro: '{$VELOCLOUD.TOKEN}' + type: SECRET_TEXT + description: 'VeloCloud SD-WAN Orchestrator API token.' + - macro: '{$VELOCLOUD.URL}' + description: 'VeloCloud SD-WAN Orchestrator URL, e.g., `vco.velocloud.net`.' + dashboards: + - uuid: 05278fc67ef34ec191e6a76f12e13627 + name: 'VeloCloud: General' + pages: + - name: Overview + widgets: + - type: item + width: '24' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VeloCloud SD-WAN by HTTP' + key: velocloud.orchestrator.api_version + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '15' + - type: item + x: '24' + width: '24' + height: '4' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'VeloCloud SD-WAN by HTTP' + key: velocloud.orchestrator.build + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '4' + - type: INTEGER + name: value_size + value: '15' + - type: item + x: '48' + width: '24' + height: '4' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'VeloCloud SD-WAN by HTTP' + key: velocloud.orchestrator.version + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: value_size + value: '20' + - name: Gateways + widgets: + - type: honeycomb + name: State + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Gateway [*]: State' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: YWRAS + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: 'Utilization load' + 'y': '4' + width: '36' + height: '4' + fields: + - type: STRING + name: ds.0.color + value: 78909C + - type: STRING + name: ds.0.items.0 + value: 'Gateway [*]: Utilization load' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: CBDAC + - type: INTEGER + name: righty + value: '0' + - type: honeycomb + name: 'IP address' + x: '36' + width: '36' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'Gateway [*]: IP address' + - type: STRING + name: primary_label + value: '{ITEM.NAME}' + - type: STRING + name: reference + value: XGHBR + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: svggraph + name: 'Utilization overall' + x: '36' + 'y': '4' + width: '36' + height: '4' + fields: + - type: STRING + name: ds.0.color + value: 78909C + - type: STRING + name: ds.0.items.0 + value: 'Gateway [*]: Utilization overall' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: CBFDD + - type: INTEGER + name: righty + value: '0' diff --git a/Vyatta_Virtual_Router_by_SNMP.yaml b/Vyatta_Virtual_Router_by_SNMP.yaml new file mode 100644 index 0000000..268dc9a --- /dev/null +++ b/Vyatta_Virtual_Router_by_SNMP.yaml @@ -0,0 +1,3879 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 33c77d08d94242b88703eea0fb6c2d91 + template: 'Vyatta Virtual Router by SNMP' + name: 'Vyatta Virtual Router by SNMP' + description: | + Template for Vyatta Virtual Router 1908e + + MIBs used: + * SNMPv2-MIB + * HOST-RESOURCES-MIB + * UCD-SNMP-MIB + * IF-MIB + * DISMAN-EVENT-MIB + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 31b95860d1e34a89add4d17fa5be63a0 + name: 'SNMP walk BGP peers' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.15.3.1.2, 1.3.6.1.2.1.15.3.1.7, 1.3.6.1.2.1.15.3.1.9, 1.3.6.1.2.1.15.3.1.15, 1.3.6.1.2.1.15.3.1.18]' + key: bgp.peers.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: BGP4-MIB + Scanning `BGP4-MIB::bgpPeerTable`. + tags: + - tag: component + value: raw + - uuid: e61652a7ede744b886289e3b30c50078 + name: 'SNMP walk host devices' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.3.2.1.2, 1.3.6.1.2.1.25.3.2.1.3, 1.3.6.1.2.1.25.3.2.1.5, 1.3.6.1.2.1.25.3.3.1.2]' + key: devices.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Scanning `HOST-RESOURCES-MIB::hrDeviceTable`. + tags: + - tag: component + value: raw + - uuid: 9cd55fc0774c4f2fbf6e7c68736b3758 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 295be4e3e67a4c428ddde66aefc8d8c3 + expression: 'max(/Vyatta Virtual Router by SNMP/icmpping,#3)=0' + name: 'Vyatta: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: c23f857d5a784a2eb38bfd4c3b74886e + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: f88294d91bd3444ebe8b417c5199c356 + expression: 'min(/Vyatta Virtual Router by SNMP/icmppingloss,5m)>{$VYATTA.ICMP.LOSS.WARN} and min(/Vyatta Virtual Router by SNMP/icmppingloss,5m)<100' + name: 'Vyatta: High ICMP ping loss' + event_name: 'Vyatta: High ICMP ping loss (over {$VYATTA.ICMP.LOSS.WARN}% for 5m)' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packet loss detected.' + dependencies: + - name: 'Vyatta: Unavailable by ICMP ping' + expression: 'max(/Vyatta Virtual Router by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 3c7668cbcf6f41ffab596e9598a511ad + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 3a4aa6a5e1d942b0bb55c7fc05dde684 + expression: 'avg(/Vyatta Virtual Router by SNMP/icmppingsec,5m)>{$VYATTA.ICMP.RESPONSE.TIME.WARN}' + name: 'Vyatta: High ICMP ping response time' + event_name: 'Vyatta: High ICMP ping response time (over {$VYATTA.ICMP.RESPONSE.TIME.WARN}s for 5m)' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Vyatta: High ICMP ping loss' + expression: 'min(/Vyatta Virtual Router by SNMP/icmppingloss,5m)>{$VYATTA.ICMP.LOSS.WARN} and min(/Vyatta Virtual Router by SNMP/icmppingloss,5m)<100' + - name: 'Vyatta: Unavailable by ICMP ping' + expression: 'max(/Vyatta Virtual Router by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 180899a053a14a40897ad12d588fb9cf + name: 'SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.2, 1.3.6.1.2.1.2.2.1.3, 1.3.6.1.2.1.2.2.1.7, 1.3.6.1.2.1.2.2.1.8, 1.3.6.1.2.1.2.2.1.13, 1.3.6.1.2.1.2.2.1.14, 1.3.6.1.2.1.2.2.1.19, 1.3.6.1.2.1.2.2.1.20, 1.3.6.1.2.1.31.1.1.1.1, 1.3.6.1.2.1.31.1.1.1.6, 1.3.6.1.2.1.31.1.1.1.10, 1.3.6.1.2.1.31.1.1.1.15, 1.3.6.1.2.1.31.1.1.1.18]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: IF-MIB + Scanning `IF-MIB::ifTable` and `IF-MIB::ifXTable`. + tags: + - tag: component + value: raw + - uuid: c140911664a54b09b7bb46770128a613 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other `snmptrap` items.' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: 13a09af7f2b74335a3bf94c05a5ae0d7 + name: 'SNMP walk storage' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.2, 1.3.6.1.2.1.25.2.3.1.3, 1.3.6.1.2.1.25.2.3.1.5, 1.3.6.1.2.1.25.2.3.1.6]' + key: storage.walk + history: '0' + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + Scanning `HOST-RESOURCES-MIB::hrStorageTable`. + tags: + - tag: component + value: raw + - uuid: c4b99f49ebff4f5aaf035e5c6566a45f + name: 'System contact' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + System contact details. + tags: + - tag: component + value: system + - uuid: 87479da85c584c57a464366db246beaf + name: 'CPU idle time' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.11.11.0]' + key: system.cpu.idle + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Average time the CPU has spent doing nothing. + tags: + - tag: component + value: cpu + - uuid: 5c1a7561151a4de09f5f469d44e5764f + name: 'Load average (1m avg)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.10.1.3.1]' + key: system.cpu.load.avg1 + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + Average number of processes being executed or waiting over the last minute. + tags: + - tag: component + value: cpu + - uuid: 28bd53e15fd94d6a99b3bd542e4c1552 + name: 'Load average (5m avg)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.10.1.3.2]' + key: system.cpu.load.avg5 + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + Average number of processes being executed or waiting over the last 5 minutes. + tags: + - tag: component + value: cpu + - uuid: b5faf8fa767f4b588563e8dff9e67587 + name: 'Load average (15m avg)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.10.1.3.3]' + key: system.cpu.load.avg15 + value_type: FLOAT + description: | + MIB: UCD-SNMP-MIB + Average number of processes being executed or waiting over the last 15 minutes. + tags: + - tag: component + value: cpu + - uuid: 6b834e333ee8433697af044589a00ed9 + name: 'Number of CPUs' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.11.67.0]' + key: system.cpu.num + description: | + MIB: UCD-SNMP-MIB + Number of processors. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: cpu + - uuid: ddb528dc3a4140ce8177c6643159cdee + name: 'CPU system time' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.11.10.0]' + key: system.cpu.system + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Average time the CPU has spent running the kernel and its processes. + tags: + - tag: component + value: cpu + - uuid: 4eb677f3f20c4335894be734e9f8e3ee + name: 'CPU user time' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.11.9.0]' + key: system.cpu.user + value_type: FLOAT + units: '%' + description: | + MIB: UCD-SNMP-MIB + Average time the CPU has spent running user processes that are not niced. + tags: + - tag: component + value: cpu + - uuid: 5fd7949bead24697bdfb88fdb3953be8 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + System description. + tags: + - tag: component + value: system + - uuid: b54bd244a7d64bc98343ad93d515f3de + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + System contact details. + tags: + - tag: component + value: system + - uuid: 1f5d87c99d0245f7a98e4c855f0d6052 + name: 'Memory (buffers)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.14.0]' + key: 'system.memory.buffers[memBuffer.0]' + units: B + description: | + MIB: UCD-SNMP-MIB + The total amount of real or virtual memory currently allocated for use as memory buffers. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000' + tags: + - tag: component + value: memory + - uuid: d9f5d6d581254c2998a087e7ec8e5829 + name: 'Memory (cached)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.15.0]' + key: 'system.memory.cached[memCached.0]' + units: B + description: | + MIB: UCD-SNMP-MIB + The total amount of real or virtual memory currently allocated for use as cached memory. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000' + tags: + - tag: component + value: memory + - uuid: 9f7482d89ecd40a4904db6c11624ced3 + name: 'Free memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.6.0]' + key: 'system.memory.free[memAvailReal.0]' + units: B + description: | + MIB: UCD-SNMP-MIB + The amount of real/physical memory currently unused or available. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000' + tags: + - tag: component + value: memory + - uuid: aac219c55e614915baac6e382945b231 + name: 'Total memory' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.2021.4.5.0]' + key: 'system.memory.total[memTotalReal.0]' + units: B + description: | + MIB: UCD-SNMP-MIB + The total amount of real/physical memory installed on this host. + preprocessing: + - type: MULTIPLIER + parameters: + - '1000' + tags: + - tag: component + value: memory + - uuid: 5713761897054b199b11516654b8d3f5 + name: 'Memory utilization, %' + type: CALCULATED + key: system.memory.util + value_type: FLOAT + units: '%' + params: '(last(//system.memory.total[memTotalReal.0]) - (last(//system.memory.free[memAvailReal.0]) + last(//system.memory.buffers[memBuffer.0]) + last(//system.memory.cached[memCached.0]))) / last(//system.memory.total[memTotalReal.0]) * 100' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + tags: + - tag: component + value: memory + triggers: + - uuid: a56dca7d427d43f8958325a5f9152a09 + expression: 'min(/Vyatta Virtual Router by SNMP/system.memory.util, 5m) > {$VYATTA.MEMORY.USED.WARN}' + name: 'Vyatta: Memory utilization is high' + event_name: 'Vyatta: Memory utilization is high (>{$VYATTA.MEMORY.USED.WARN} for over 5m)' + priority: WARNING + description: 'Memory utilization is high.' + dependencies: + - name: 'Vyatta: Memory utilization is too high' + expression: 'min(/Vyatta Virtual Router by SNMP/system.memory.util, 5m) > {$VYATTA.MEMORY.USED.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 9e071152a1814b619c9d9d79c88c149c + expression: 'min(/Vyatta Virtual Router by SNMP/system.memory.util, 5m) > {$VYATTA.MEMORY.USED.HIGH}' + name: 'Vyatta: Memory utilization is too high' + event_name: 'Vyatta: Memory utilization is too high (>{$VYATTA.MEMORY.USED.HIGH} for over 5m)' + priority: HIGH + description: 'Memory utilization is too high.' + tags: + - tag: scope + value: capacity + - uuid: 24e4f749136e43d39df31ffac86adc31 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: 'system.name[sysName.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + System name. + tags: + - tag: component + value: system + - uuid: 64bfceeb04de48c99749ded0d63cd39d + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + System object ID. + tags: + - tag: component + value: system + - uuid: b8654c54a80f42778237a3c4eff8d3bd + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.uptime.hardware[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from `sysUpTime` in the SNMPv2-MIB [RFC1907] because `sysUpTime` is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 539e2a396aae4d2bafbc6f7b9b8822d4 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.uptime.network[sysUpTimeInstance]' + value_type: FLOAT + units: uptime + description: | + MIB: DISMAN-EVENT-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 39a6adfd468e45309efe3b0eb7e18202 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: 'Host availability' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 0990c1aadc3849bf881a4068ae97aedc + expression: 'max(/Vyatta Virtual Router by SNMP/zabbix[host,snmp,available],{$VYATTA.SNMP.TIMEOUT})=0' + name: 'Vyatta: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Vyatta: Unavailable by ICMP ping' + expression: 'max(/Vyatta Virtual Router by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 89ad5c092c1f4d95a817fe35b10f74d9 + name: 'BGP peer discovery' + type: DEPENDENT + key: bgp.peer.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#BGP_PEER_REMOTE_ADDR}' + value: '{$VYATTA.DISCOVERY.BGP.REMOTE.ADDR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + - macro: '{#SNMPINDEX}' + value: '{$VYATTA.DISCOVERY.BGP.REMOTE.ADDR.MATCHES}' + formulaid: B + - macro: '{#SNMPINDEX}' + value: '{$VYATTA.DISCOVERY.BGP.REMOTE.ADDR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: C + description: 'BGP4-MIB::bgpPeer discovery.' + item_prototypes: + - uuid: 0f879918305142d689efa0bcc4061bd1 + name: 'BGP AS [{#BGP_PEER_REMOTE_AS}]: Peer [{#SNMPINDEX}]: FSM established transitions, per second' + type: DEPENDENT + key: 'bgp.fsm.established.transitions[bgpPeerFsmEstablishedTransitions.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + description: | + MIB: BGP4-MIB + Rate of transitions of the BGP FSM into the Established state for this peer, expressed as transitions per second. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.15.3.1.15.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: bgp.peers.walk + tags: + - tag: address + value: '{#SNMPINDEX}' + - tag: as + value: '{#BGP_PEER_REMOTE_AS}' + - tag: component + value: bgp + - tag: component + value: network + - uuid: 33d51b57f6f94d65963b5c137a4a91ff + name: 'BGP AS [{#BGP_PEER_REMOTE_AS}]: Peer [{#SNMPINDEX}]: Hold time' + type: DEPENDENT + key: 'bgp.hold.time[bgpPeerHoldTime.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: s + description: | + MIB: BGP4-MIB + Time interval in seconds for the Hold Timer established with the peer. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.15.3.1.18.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: bgp.peers.walk + tags: + - tag: address + value: '{#SNMPINDEX}' + - tag: as + value: '{#BGP_PEER_REMOTE_AS}' + - tag: component + value: bgp + - tag: component + value: network + - uuid: 63569acec667424d9ed3c16deb68266d + name: 'BGP AS [{#BGP_PEER_REMOTE_AS}]: Peer [{#SNMPINDEX}]: Remote address' + type: DEPENDENT + key: 'bgp.remote.addr[bgpPeerRemoteAddr.{#SNMPINDEX}]' + delay: '0' + value_type: CHAR + trends: '0' + description: | + MIB: BGP4-MIB + The BGP peer remote address. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.15.3.1.7.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: bgp.peers.walk + tags: + - tag: address + value: '{#SNMPINDEX}' + - tag: as + value: '{#BGP_PEER_REMOTE_AS}' + - tag: component + value: bgp + - tag: component + value: network + - uuid: 0d2ea55a220c4fccba9e2e668b800a60 + name: 'BGP AS [{#BGP_PEER_REMOTE_AS}]: Peer [{#SNMPINDEX}]: Remote AS' + type: DEPENDENT + key: 'bgp.remote.as[bgpPeerRemoteAs.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: BGP4-MIB + The remote autonomous system number received in the BGP OPEN message. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.15.3.1.9.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: bgp.peers.walk + tags: + - tag: address + value: '{#SNMPINDEX}' + - tag: as + value: '{#BGP_PEER_REMOTE_AS}' + - tag: component + value: bgp + - tag: component + value: network + - uuid: 3a5a8b71be45458ca6520f534df27cb8 + name: 'BGP AS [{#BGP_PEER_REMOTE_AS}]: Peer [{#SNMPINDEX}]: Connection state' + type: DEPENDENT + key: 'bgp.state[bgpPeerState.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: BGP4-MIB + The BGP peer connection state. + valuemap: + name: 'BGP peer state' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.15.3.1.2.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: bgp.peers.walk + tags: + - tag: address + value: '{#SNMPINDEX}' + - tag: as + value: '{#BGP_PEER_REMOTE_AS}' + - tag: component + value: bgp + - tag: component + value: network + trigger_prototypes: + - uuid: a1aa65db0c3f443abe09f1f215412e4c + expression: 'last(/Vyatta Virtual Router by SNMP/bgp.state[bgpPeerState.{#SNMPINDEX}])<>6' + name: 'Vyatta: BGP AS [{#BGP_PEER_REMOTE_AS}]: Peer [{#SNMPINDEX}]: State is not Established' + opdata: 'Current state: {ITEM.LASTVALUE}' + priority: HIGH + description: 'The peer connection state is not "Established".' + tags: + - tag: scope + value: availability + master_item: + key: bgp.peers.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#BGP_PEER_REMOTE_ADDR}' + - 1.3.6.1.2.1.15.3.1.7 + - '0' + - '{#BGP_PEER_REMOTE_AS}' + - 1.3.6.1.2.1.15.3.1.9 + - '0' + error_handler: CUSTOM_ERROR + error_handler_params: 'BGP instance is not running' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8a38fbfa070e46cfb7643b9bd91c4817 + name: 'CPU discovery' + type: DEPENDENT + key: cpu.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#TYPE}' + value: '{$VYATTA.DISCOVERY.CPU.MATCHES}' + formulaid: A + - macro: '{#TYPE}' + value: '{$VYATTA.DISCOVERY.CPU.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + item_prototypes: + - uuid: a23544bf7c56405aaf4ba61ee6d6dc8f + name: 'CPU [{#DESCRIPTION}][{#SNMPINDEX}]: Status' + type: DEPENDENT + key: 'cpu.status[hrDeviceStatus.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: HOST-RESOURCES-MIB + The current operational state of the device described by this row of the table. + * `unknown(1)` indicates that the current state of the device is unknown. + * `running(2)` indicates that the device is up and running and that no unusual error conditions are known. + * `warning(3)` indicates that the agent has been informed of an unusual error condition by the operational software (e.g., a disk device driver) but that the device is still operational. + * `testing(4)` indicates that the device is not available for use because it is in the testing state. + * `down(5)` is used only when the agent has been informed that the device is not available for any use. + valuemap: + name: 'HOST-RESOURCES-MIB::hrDeviceStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.2.1.5.{#SNMPINDEX}' + - '0' + master_item: + key: devices.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 121927a633ba4d1d95d38457c7dca003 + expression: 'last(/Vyatta Virtual Router by SNMP/cpu.status[hrDeviceStatus.{#SNMPINDEX}]) <> 2' + name: 'Vyatta: CPU [{#DESCRIPTION}][{#SNMPINDEX}]: CPU abnormal state' + priority: HIGH + description: 'CPU utilization is too high.' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 0cff8ea287f14b1084ac52008817d6bd + name: 'CPU [{#DESCRIPTION}][{#SNMPINDEX}]: Utilization, %' + type: DEPENDENT + key: 'cpu.utilization[hrProcessorLoad.{#SNMPINDEX}]' + delay: '0' + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that this processor was not idle. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' + - '0' + master_item: + key: devices.walk + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 7948f5b2eaf44f3f99672fb4be7e3b6a + expression: 'min(/Vyatta Virtual Router by SNMP/cpu.utilization[hrProcessorLoad.{#SNMPINDEX}], 5m) > {$VYATTA.CPU.USED.WARN}' + name: 'Vyatta: CPU [{#DESCRIPTION}][{#SNMPINDEX}]: CPU utilization is high' + event_name: 'Vyatta: CPU [{#DESCRIPTION}][{#SNMPINDEX}]: CPU utilization is high (>{$VYATTA.CPU.USED.WARN} for over 5m)' + priority: WARNING + description: 'CPU utilization is high.' + dependencies: + - name: 'Vyatta: CPU [{#DESCRIPTION}][{#SNMPINDEX}]: CPU utilization is too high' + expression: 'min(/Vyatta Virtual Router by SNMP/cpu.utilization[hrProcessorLoad.{#SNMPINDEX}], 5m) > {$VYATTA.CPU.USED.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 780584cbd65c46339f4ba04b5b682e9d + expression: 'min(/Vyatta Virtual Router by SNMP/cpu.utilization[hrProcessorLoad.{#SNMPINDEX}], 5m) > {$VYATTA.CPU.USED.HIGH}' + name: 'Vyatta: CPU [{#DESCRIPTION}][{#SNMPINDEX}]: CPU utilization is too high' + event_name: 'Vyatta: CPU [{#DESCRIPTION}][{#SNMPINDEX}]: CPU utilization is too high (>{$VYATTA.CPU.USED.HIGH} for over 5m)' + priority: HIGH + description: 'CPU utilization is too high.' + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 488302ccbe4047d0abbbb0c9a115a4e7 + name: 'CPU [{#DESCRIPTION}][{#SNMPINDEX}]: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Vyatta Virtual Router by SNMP' + key: 'cpu.utilization[hrProcessorLoad.{#SNMPINDEX}]' + master_item: + key: devices.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#TYPE}' + - 1.3.6.1.2.1.25.3.2.1.2 + - '0' + - '{#DESCRIPTION}' + - 1.3.6.1.2.1.25.3.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 6134e0f1e63d48b399d1d99f2e200a4b + name: 'Network interface discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$VYATTA.DISCOVERY.IFACE.ADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$VYATTA.DISCOVERY.IFACE.ADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$VYATTA.DISCOVERY.IFACE.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$VYATTA.DISCOVERY.IFACE.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$VYATTA.DISCOVERY.IFACE.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$VYATTA.DISCOVERY.IFACE.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$VYATTA.DISCOVERY.IFACE.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$VYATTA.DISCOVERY.IFACE.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$VYATTA.DISCOVERY.IFACE.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$VYATTA.DISCOVERY.IFACE.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$VYATTA.DISCOVERY.IFACE.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$VYATTA.DISCOVERY.IFACE.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + item_prototypes: + - uuid: 0fd1b14144c04ca88d2f22eae5fc8f17 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: fa6827aae5ff47ad883def44815b0f5e + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: d2d777d1006e4af9b11f518dec439340 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Bits received' + type: DEPENDENT + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, including framing characters. This object is a 64-bit version of `ifInOctets`. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a1a28b609d61401ebcfba4fce096792c + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ce289cb583e34cab9677e0e24eb1ffc3 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. + For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. + Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2c0336b89498463d92f1773097e09014 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Bits sent' + type: DEPENDENT + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of `ifOutOctets`. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: ceeb5cdb54ee42a096c391f6438edb20 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 362b9269e9294c9c953c31ab111fe2e5 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The `testing(3)` state indicates that no operational packet scan be passed + - If `ifAdminStatus` is `down(2)`, then `ifOperStatus` should be `down(2)` + - If `ifAdminStatus` is changed to `up(1)`, then `ifOperStatus` should change to `up(1)` if the interface is ready to transmit and receive network traffic + - It should change to `dormant(5)` if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the `down(2)` state if and only if there is a fault that prevents it from going to the `up(1)` state + - It should remain in the `notPresent(6)` state if the interface has missing (typically, hardware) components + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b832172ce9994c838920c04df3154c02 + expression: | + {$VYATTA.IFCONTROL:"{#IFNAME}"}=1 and last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and + (last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2)) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$VYATTA.IFCONTROL:"{#IFNAME}"}=0' + name: 'Vyatta: Interface [{#IFNAME}][{#IFALIAS}]: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$VYATTA.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces). + + WARNING: if closed manually - it will not fire again on the next poll because of `.diff`. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 7fe4aa478e774dc1a74356eab2df65d7 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for `ifType` are assigned by the Internet Assigned Numbers Authority (IANA) through updating the syntax of the `IANAifType` textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 3873dd1e6a4449eb9d4b2f835549c082 + expression: | + change(/Vyatta Virtual Router by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Vyatta Virtual Router by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Vyatta Virtual Router by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Vyatta Virtual Router by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Vyatta Virtual Router by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Vyatta Virtual Router by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Vyatta Virtual Router by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Vyatta Virtual Router by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Vyatta Virtual Router by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Vyatta Virtual Router by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Vyatta: Interface [{#IFNAME}][{#IFALIAS}]: Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Vyatta: Interface [{#IFNAME}][{#IFALIAS}]: Link down' + expression: | + {$VYATTA.IFCONTROL:"{#IFNAME}"}=1 and last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and + (last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2)) + recovery_expression: 'last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$VYATTA.IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 0cf252aaa8bf429c9c9c7340e8d83d0d + expression: | + (avg(/Vyatta Virtual Router by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Vyatta Virtual Router by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Vyatta Virtual Router by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Vyatta Virtual Router by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Vyatta Virtual Router by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Vyatta Virtual Router by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Vyatta Virtual Router by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Vyatta Virtual Router by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Vyatta Virtual Router by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Vyatta: Interface [{#IFNAME}][{#IFALIAS}]: High bandwidth usage' + event_name: 'Vyatta: Interface [{#IFNAME}][{#IFALIAS}]: High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Vyatta: Interface [{#IFNAME}][{#IFALIAS}]: Link down' + expression: | + {$VYATTA.IFCONTROL:"{#IFNAME}"}=1 and last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and + (last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2)) + recovery_expression: 'last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$VYATTA.IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 63a2ca4b750546e1a95a7a6aadcdff6b + expression: | + min(/Vyatta Virtual Router by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Vyatta Virtual Router by SNMP/net.if.out.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Vyatta Virtual Router by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Vyatta Virtual Router by SNMP/net.if.out.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Vyatta: Interface [{#IFNAME}][{#IFALIAS}]: High error rate' + event_name: 'Vyatta: Interface [{#IFNAME}][{#IFALIAS}]: High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'Errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Vyatta: Interface [{#IFNAME}][{#IFALIAS}]: Link down' + expression: | + {$VYATTA.IFCONTROL:"{#IFNAME}"}=1 and last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and + (last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2)) + recovery_expression: 'last(/Vyatta Virtual Router by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$VYATTA.IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + graph_prototypes: + - uuid: 0049016b880945a5b129d172c74bc0ca + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Vyatta Virtual Router by SNMP' + key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Vyatta Virtual Router by SNMP' + key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' + - uuid: a2d6187ba68246269bfc96ee57ede300 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Packets discarded' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Vyatta Virtual Router by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Vyatta Virtual Router by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - uuid: 9a161f45a8804d119fff8e41a4b2a4c9 + name: 'Interface [{#IFNAME}][{#IFALIAS}]: Packets with errors' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Vyatta Virtual Router by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Vyatta Virtual Router by SNMP' + key: 'net.if.out.errors[ifInErrors.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 4f07c208d82e479094662f1cffef4293 + name: 'Storage discovery' + type: DEPENDENT + key: storage.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#STORAGE_NAME}' + value: '{$VYATTA.DISCOVERY.STORAGE.NAME.MATCHES}' + formulaid: A + - macro: '{#STORAGE_NAME}' + value: '{$VYATTA.DISCOVERY.STORAGE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#STORAGE_TYPE}' + value: '{$VYATTA.DISCOVERY.STORAGE.TYPE.MATCHES}' + formulaid: C + - macro: '{#STORAGE_TYPE}' + value: '{$VYATTA.DISCOVERY.STORAGE.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 1ee68cea0fed47da831652d3de011532 + name: 'Storage [{#STORAGE_NAME}]: Storage utilization, %' + type: CALCULATED + key: 'storage.size.percent[hrStorageUsed.{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: '(last(//storage.used[hrStorageUsed.{#SNMPINDEX}]) / last(//storage.size[hrStorageSize.{#SNMPINDEX}])) * 100' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return Math.round(value * 100) / 100;' + tags: + - tag: component + value: storage + trigger_prototypes: + - uuid: 7cc45fc012b64650a4705fec30ed539d + expression: 'min(/Vyatta Virtual Router by SNMP/storage.size.percent[hrStorageUsed.{#SNMPINDEX}], 5m) > {$VYATTA.STORAGE.USED.WARN}' + name: 'Vyatta: Storage [{#STORAGE_NAME}]: Storage utilization is high' + event_name: 'Vyatta: {#STORAGE}: Utilization is high (>{$VYATTA.STORAGE.USED.WARN} for over 5m)' + priority: WARNING + description: 'Storage utilization is high.' + dependencies: + - name: 'Vyatta: Storage [{#STORAGE_NAME}]: Storage utilization is too high' + expression: 'min(/Vyatta Virtual Router by SNMP/storage.size.percent[hrStorageUsed.{#SNMPINDEX}], 5m) > {$VYATTA.STORAGE.USED.HIGH}' + tags: + - tag: scope + value: capacity + - uuid: 3f2ca086a98f42bd974000e564d94ea7 + expression: 'min(/Vyatta Virtual Router by SNMP/storage.size.percent[hrStorageUsed.{#SNMPINDEX}], 5m) > {$VYATTA.STORAGE.USED.HIGH}' + name: 'Vyatta: Storage [{#STORAGE_NAME}]: Storage utilization is too high' + event_name: 'Vyatta: {#STORAGE}: Utilization is high (>{$VYATTA.STORAGE.USED.HIGH} for over 5m)' + priority: HIGH + description: 'Storage utilization is too high.' + tags: + - tag: scope + value: capacity + - uuid: 21e238374ab14a579745bc303f109e77 + name: 'Storage [{#STORAGE_NAME}]: Total size' + type: DEPENDENT + key: 'storage.size[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + master_item: + key: storage.walk + tags: + - tag: component + value: storage + - uuid: 64d1791c1ad545f6aa56314b37a27072 + name: 'Storage [{#STORAGE_NAME}]: Used size' + type: DEPENDENT + key: 'storage.used[hrStorageUsed.{#SNMPINDEX}]' + delay: '0' + units: B + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1024' + master_item: + key: storage.walk + tags: + - tag: component + value: storage + graph_prototypes: + - uuid: b8d837f4ca7440dd81d1da5af7d7a087 + name: 'Storage [{#STORAGE_NAME}]: Storage utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Vyatta Virtual Router by SNMP' + key: 'storage.size.percent[hrStorageUsed.{#SNMPINDEX}]' + master_item: + key: storage.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#STORAGE_TYPE}' + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - '{#STORAGE_NAME}' + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: network + - tag: target + value: vyatta + - tag: target + value: vyatta-1908e + macros: + - macro: '{$VYATTA.CPU.USED.HIGH}' + value: '95' + description: 'High severity threshold of CPU utilization.' + - macro: '{$VYATTA.CPU.USED.WARN}' + value: '80' + description: 'Warning threshold of CPU utilization.' + - macro: '{$VYATTA.DISCOVERY.BGP.REMOTE.ADDR.MATCHES}' + value: '.*' + description: 'Sets the IP regex filter to use in BGP peer discovery for including.' + - macro: '{$VYATTA.DISCOVERY.BGP.REMOTE.ADDR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the IP regex filter to use in BGP peer discovery for excluding.' + - macro: '{$VYATTA.DISCOVERY.CPU.MATCHES}' + value: ^.+\.3$ + description: 'Sets the OID regex filter to use in CPU discovery for including. Matches `hrDeviceProcessor` from MIB: HOST-RESOURCES-TYPES - the device type identifier used for a CPU.' + - macro: '{$VYATTA.DISCOVERY.CPU.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the OID regex filter to use in CPU discovery for excluding. Matches `hrDeviceProcessor` from MIB: HOST-RESOURCES-TYPES - the device type identifier used for a CPU.' + - macro: '{$VYATTA.DISCOVERY.IFACE.ADMINSTATUS.MATCHES}' + value: '.*' + description: 'Sets the administrative status regex filter to use in network interface discovery for including.' + - macro: '{$VYATTA.DISCOVERY.IFACE.ADMINSTATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the administrative status regex filter to use in network interface discovery for excluding.' + - macro: '{$VYATTA.DISCOVERY.IFACE.IFALIAS.MATCHES}' + value: '.*' + description: 'Sets the alias regex filter to use in network interface discovery for including.' + - macro: '{$VYATTA.DISCOVERY.IFACE.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the alias regex filter to use in network interface discovery for excluding.' + - macro: '{$VYATTA.DISCOVERY.IFACE.IFDESCR.MATCHES}' + value: '.*' + description: 'Sets the description regex filter to use in network interface discovery for including.' + - macro: '{$VYATTA.DISCOVERY.IFACE.IFDESCR.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the description regex filter to use in network interface discovery for excluding.' + - macro: '{$VYATTA.DISCOVERY.IFACE.IFNAME.MATCHES}' + value: '^.*$' + description: 'Sets the name regex filter to use in network interface discovery for including.' + - macro: '{$VYATTA.DISCOVERY.IFACE.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Sets the name regex filter to use in network interface discovery for excluding. Filters out `loopbacks`, `nulls`, docker `veth` links, and `docker0 bridge` by default.' + - macro: '{$VYATTA.DISCOVERY.IFACE.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Sets the operative status regex filter to use in network interface discovery for including.' + - macro: '{$VYATTA.DISCOVERY.IFACE.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Sets the operative status regex filter to use in network interface discovery for excluding. Ignore `notPresent(6)`.' + - macro: '{$VYATTA.DISCOVERY.IFACE.IFTYPE.MATCHES}' + value: '.*' + description: 'Sets the type regex filter to use in network interface discovery for including.' + - macro: '{$VYATTA.DISCOVERY.IFACE.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the type regex filter to use in network interface discovery for excluding.' + - macro: '{$VYATTA.DISCOVERY.STORAGE.NAME.MATCHES}' + value: '.*' + description: 'Sets the name regex filter to use in storage discovery for including.' + - macro: '{$VYATTA.DISCOVERY.STORAGE.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the name regex filter to use in storage discovery for excluding.' + - macro: '{$VYATTA.DISCOVERY.STORAGE.TYPE.MATCHES}' + value: '.*(\.4|hrStorageFixedDisk)$' + description: 'Sets the type regex filter to use in storage discovery for including.' + - macro: '{$VYATTA.DISCOVERY.STORAGE.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Sets the type regex filter to use in storage discovery for excluding.' + - macro: '{$VYATTA.ICMP.LOSS.WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$VYATTA.ICMP.RESPONSE.TIME.WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$VYATTA.IFCONTROL}' + value: '1' + description: 'Macro for the operational state of the interface for the link down trigger. Can be used with the interface name as context.' + - macro: '{$VYATTA.LOAD_AVG_PER_CPU.MAX.WARN}' + value: '1.0' + description: 'Load per CPU considered sustainable. Tune if needed.' + - macro: '{$VYATTA.MEMORY.USED.HIGH}' + value: '95' + description: 'High severity threshold of memory utilization.' + - macro: '{$VYATTA.MEMORY.USED.WARN}' + value: '80' + description: 'Warning threshold of memory utilization.' + - macro: '{$VYATTA.SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$VYATTA.STORAGE.USED.HIGH}' + value: '95' + description: 'High severity threshold of storage utilization.' + - macro: '{$VYATTA.STORAGE.USED.WARN}' + value: '80' + description: 'Warning threshold of storage utilization.' + dashboards: + - uuid: 23e44027bbf84385a71fe1b2a6beb196 + name: Overview + pages: + - name: Overview + widgets: + - type: item + name: 'System name' + width: '20' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'System name' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.name[sysName.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '15' + - type: item + name: 'System location' + 'y': '4' + width: '20' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'System location' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.location[sysLocation.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '15' + - type: item + name: 'System contact' + 'y': '7' + width: '20' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'System contact' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.contact[sysContact.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '15' + - type: item + name: 'System description' + 'y': '10' + width: '20' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'System description' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.descr[sysDescr.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '15' + - type: item + name: 'Uptime (hardware)' + x: '20' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Uptime (hardware)' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.uptime.hardware[hrSystemUptime.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_size + value: '15' + - type: item + name: 'Uptime (network)' + x: '20' + 'y': '3' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Uptime (network)' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.uptime.network[sysUpTimeInstance]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'SNMP agent availability' + x: '20' + 'y': '5' + width: '12' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'SNMP agent availability' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'zabbix[host,snmp,available]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: thresholds.0.color + value: E45959 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 00C48C + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: FFBF59 + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: INTEGER + name: units_show + value: '0' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'ICMP ping' + x: '20' + 'y': '7' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '15' + - type: STRING + name: description + value: 'ICMP ping' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: icmpping + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: STRING + name: thresholds.0.color + value: E45959 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: 00C48C + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'ICMP response time' + x: '20' + 'y': '9' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: STRING + name: description + value: 'ICMP response time' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: icmppingsec + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'ICMP loss' + x: '20' + 'y': '11' + width: '12' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: STRING + name: description + value: 'ICMP loss' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: icmppingloss + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '25' + - type: svggraph + name: 'System load' + x: '32' + width: '40' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 00C48C + - type: STRING + name: ds.0.color.1 + value: 7499FF + - type: STRING + name: ds.0.color.2 + value: FFBF59 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.load.avg1 + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.load.avg5 + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.load.avg15 + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: 97AAB3 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.num + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '4' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: CPULO + - type: INTEGER + name: righty + value: '1' + - type: STRING + name: righty_min + value: '0' + - type: gauge + name: 'Memory utilization' + x: '32' + 'y': '5' + width: '20' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Memory utilization' + - type: INTEGER + name: desc_size + value: '8' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.memory.util + - type: INTEGER + name: rf_rate + value: '30' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: show.2 + value: '5' + - type: STRING + name: units + value: '%' + - type: INTEGER + name: units_bold + value: '1' + - type: INTEGER + name: units_size + value: '15' + - type: INTEGER + name: value_bold + value: '1' + - type: INTEGER + name: value_size + value: '20' + - type: item + name: 'Total memory' + x: '32' + 'y': '9' + width: '20' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: STRING + name: description + value: 'Total memory' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.memory.total[memTotalReal.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Free memory' + x: '32' + 'y': '11' + width: '20' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: STRING + name: description + value: 'Free memory' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.memory.free[memAvailReal.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_size + value: '25' + - type: honeycomb + name: 'CPU utilization' + x: '52' + 'y': '5' + width: '20' + height: '4' + fields: + - type: STRING + name: items.0 + value: 'CPU [*]: Utilization, %' + - type: STRING + name: primary_label + value: 'CPU .{{ITEM.NAME}.regsub("^.*\]\[(.*)\].*$","\1")}' + - type: STRING + name: reference + value: CPUUT + - type: STRING + name: secondary_label_units + value: '%' + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFBF59 + - type: STRING + name: thresholds.1.threshold + value: '80' + - type: STRING + name: thresholds.2.color + value: E45959 + - type: STRING + name: thresholds.2.threshold + value: '95' + - type: item + name: 'Cached memory' + x: '52' + 'y': '9' + width: '20' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: STRING + name: description + value: 'Cached memory' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.memory.cached[memCached.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Buffer memory' + x: '52' + 'y': '11' + width: '20' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '20' + - type: STRING + name: description + value: 'Buffer memory' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.memory.buffers[memBuffer.0]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '1' + - type: INTEGER + name: units_size + value: '20' + - type: INTEGER + name: value_size + value: '25' + - name: 'Interfaces: Traffic' + widgets: + - type: honeycomb + name: 'Operational status' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Operational status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\]\[.*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFTST + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: E45959 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FFBF59 + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: STRING + name: thresholds.3.color + value: FFBF59 + - type: STRING + name: thresholds.3.threshold + value: '5' + - type: STRING + name: thresholds.4.color + value: FFBF59 + - type: STRING + name: thresholds.4.threshold + value: '6' + - type: STRING + name: thresholds.5.color + value: FFBF59 + - type: STRING + name: thresholds.5.threshold + value: '7' + - type: honeycomb + name: 'Bits received' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Bits received' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\]\[.*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFTBR + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: bps + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '100' + - type: honeycomb + name: 'Bits sent' + 'y': '6' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Bits sent' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\]\[.*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFTBS + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: bps + - type: STRING + name: thresholds.0.color + value: 7499FF + - type: STRING + name: thresholds.0.threshold + value: '100' + - type: svggraph + name: 'Network interfaces traffic' + 'y': '9' + width: '72' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00C48C + - type: STRING + name: ds.0.color.1 + value: 7499FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: IFTBR._itemid + - type: STRING + name: ds.0.itemids.1._reference + value: IFTBS._itemid + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: IFTGR + - type: INTEGER + name: working_time + value: '1' + - name: 'Interfaces: Errors' + widgets: + - type: honeycomb + name: 'Operational status' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Operational status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\]\[.*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFEST + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: E45959 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FFBF59 + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: STRING + name: thresholds.3.color + value: FFBF59 + - type: STRING + name: thresholds.3.threshold + value: '5' + - type: STRING + name: thresholds.4.color + value: FFBF59 + - type: STRING + name: thresholds.4.threshold + value: '6' + - type: STRING + name: thresholds.5.color + value: FFBF59 + - type: STRING + name: thresholds.5.threshold + value: '7' + - type: honeycomb + name: 'Inbound packets with errors' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Inbound packets with errors' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\]\[.*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFEIE + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: E45959 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: honeycomb + name: 'Outbound packets with errors' + 'y': '6' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Outbound packets with errors' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\]\[.*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFEOE + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: E45959 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: svggraph + name: 'Network interfaces packets with errors' + 'y': '9' + width: '72' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00C48C + - type: STRING + name: ds.0.color.1 + value: 7499FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: IFEIE._itemid + - type: STRING + name: ds.0.itemids.1._reference + value: IFEOE._itemid + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: IFEGR + - type: INTEGER + name: working_time + value: '1' + - name: 'Interfaces: Discards' + widgets: + - type: honeycomb + name: 'Operational status' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Operational status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\]\[.*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFDST + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: E45959 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: FFBF59 + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: STRING + name: thresholds.3.color + value: FFBF59 + - type: STRING + name: thresholds.3.threshold + value: '5' + - type: STRING + name: thresholds.4.color + value: FFBF59 + - type: STRING + name: thresholds.4.threshold + value: '6' + - type: STRING + name: thresholds.5.color + value: FFBF59 + - type: STRING + name: thresholds.5.threshold + value: '7' + - type: honeycomb + name: 'Inbound packets discarded' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Inbound packets discarded' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\]\[.*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFDID + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: E45959 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: honeycomb + name: 'Outbound packets discarded' + 'y': '6' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Interface*: Outbound packets discarded' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Interface\s\[(.+)\]\[.*$","\1")}' + - type: INTEGER + name: primary_label_size + value: '25' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: IFDOD + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: E45959 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: svggraph + name: 'Network interfaces packets discarded' + 'y': '9' + width: '72' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00C48C + - type: STRING + name: ds.0.color.1 + value: 7499FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: IFDID._itemid + - type: STRING + name: ds.0.itemids.1._reference + value: IFDOD._itemid + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: IFDGR + - type: INTEGER + name: working_time + value: '1' + - name: 'BGP: Peers' + widgets: + - type: honeycomb + name: 'Connection state' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'BGP*Connection state' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(\[\d{1,3}(?:\.\d{1,3}){3}\])","Peer: \1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: BGPCN + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '25' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: E45959 + - type: STRING + name: thresholds.0.threshold + value: '1' + - type: STRING + name: thresholds.1.color + value: E45959 + - type: STRING + name: thresholds.1.threshold + value: '2' + - type: STRING + name: thresholds.2.color + value: E45959 + - type: STRING + name: thresholds.2.threshold + value: '4' + - type: STRING + name: thresholds.3.color + value: E45959 + - type: STRING + name: thresholds.3.threshold + value: '5' + - type: STRING + name: thresholds.4.color + value: 00C48C + - type: STRING + name: thresholds.4.threshold + value: '6' + - type: honeycomb + name: 'FSM established transitions (per second)' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'BGP*FSM established transitions, per second' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(\[\d{1,3}(?:\.\d{1,3}){3}\])","Peer: \1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: BGPFS + - type: INTEGER + name: secondary_label_size + value: '25' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: E45959 + - type: STRING + name: thresholds.1.threshold + value: '0.01' + - type: honeycomb + name: 'Hold time' + 'y': '6' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'BGP*Hold time' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("(\[\d{1,3}(?:\.\d{1,3}){3}\])","Peer: \1")}' + - type: INTEGER + name: primary_label_size + value: '15' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: BGPHT + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: INTEGER + name: secondary_label_size + value: '25' + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: INTEGER + name: secondary_label_units_show + value: '0' + - type: svggraph + name: 'FSM established transitions (per second) and connection state' + 'y': '9' + width: '72' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00C48C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: BGPCN._itemid + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: 7499FF + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: STRING + name: ds.1.itemids.0._reference + value: BGPFS._itemid + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: lefty_max + value: '6' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: reference + value: BGPGP + - type: INTEGER + name: righty + value: '1' + - type: STRING + name: righty_min + value: '0' + - type: INTEGER + name: severities.0 + value: '4' + - type: INTEGER + name: severities.1 + value: '5' + - type: INTEGER + name: show_problems + value: '1' + - name: CPU + widgets: + - type: svggraph + name: 'System load' + width: '72' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00C48C + - type: STRING + name: ds.0.color.1 + value: 7499FF + - type: STRING + name: ds.0.color.2 + value: FFBF59 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.load.avg1 + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.load.avg5 + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.load.avg15 + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: 97AAB3 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.num + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: reference + value: CPULO + - type: INTEGER + name: righty + value: '1' + - type: STRING + name: righty_min + value: '0' + - type: svggraph + name: 'CPU usage' + 'y': '4' + width: '72' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00C48C + - type: STRING + name: ds.0.color.1 + value: 7499FF + - type: STRING + name: ds.0.color.2 + value: FFBF59 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: INTEGER + name: ds.0.fill + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.system + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.user + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.idle + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_columns + value: '3' + - type: STRING + name: reference + value: CPUUG + - type: svggraph + name: 'CPU [{#DESCRIPTION}][{#SNMPINDEX}]: CPU utilization' + 'y': '8' + width: '72' + height: '6' + fields: + - type: INTEGER + name: ds.0.fill + value: '0' + - type: STRING + name: ds.0.items.0 + value: 'CPU [*]: Utilization, %' + - type: INTEGER + name: ds.0.width + value: '2' + - type: STRING + name: reference + value: CPUUT + - name: 'Storage: Utilization' + widgets: + - type: honeycomb + name: 'Storage utilization' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Storage*: Storage utilization, %' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Storage\s\[(.+)\].*$","\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: STOUT + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: '%' + - type: STRING + name: thresholds.0.color + value: 00C48C + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFBF59 + - type: STRING + name: thresholds.1.threshold + value: '80' + - type: STRING + name: thresholds.2.color + value: E45959 + - type: STRING + name: thresholds.2.threshold + value: '95' + - type: honeycomb + name: 'Total size' + 'y': '3' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Storage*: Total size' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Storage\s\[(.+)\].*$","\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: STOTS + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: b + - type: honeycomb + name: 'Used size' + 'y': '6' + width: '72' + height: '3' + fields: + - type: STRING + name: items.0 + value: 'Storage*: Used size' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("^Storage\s\[(.+)\].*$","\1")}' + - type: INTEGER + name: primary_label_size_type + value: '1' + - type: STRING + name: reference + value: STOUS + - type: INTEGER + name: secondary_label_size_type + value: '1' + - type: STRING + name: secondary_label_units + value: b + - type: svggraph + name: 'Storage data' + 'y': '9' + width: '72' + height: '4' + fields: + - type: STRING + name: ds.0.color.0 + value: 00C48C + - type: STRING + name: ds.0.color.1 + value: 7499FF + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: STRING + name: ds.0.itemids.0._reference + value: STOTS._itemid + - type: STRING + name: ds.0.itemids.1._reference + value: STOUS._itemid + - type: INTEGER + name: ds.0.missingdatafunc + value: '3' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: E45959 + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: STRING + name: ds.1.itemids.0._reference + value: STOUT._itemid + - type: INTEGER + name: ds.1.missingdatafunc + value: '3' + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: lefty_min + value: '0' + - type: STRING + name: reference + value: STOGR + - type: INTEGER + name: righty + value: '1' + - type: STRING + name: righty_max + value: '100' + - type: STRING + name: righty_min + value: '0' + - type: INTEGER + name: working_time + value: '1' + valuemaps: + - uuid: ea6e1f12288943f5890837c8cb38431e + name: 'BGP peer state' + mappings: + - value: '1' + newvalue: Idle + - value: '2' + newvalue: Connect + - value: '3' + newvalue: Active + - value: '4' + newvalue: Opensent + - value: '5' + newvalue: Openconfirm + - value: '6' + newvalue: Established + - uuid: 0af4bd0246d3414a946fdb800a964a43 + name: 'HOST-RESOURCES-MIB::hrDeviceStatus' + mappings: + - value: '1' + newvalue: Unknown + - value: '2' + newvalue: Running + - value: '3' + newvalue: Warning + - value: '4' + newvalue: Testing + - value: '5' + newvalue: Down + - uuid: 1d9b43546b654370a6f38ed6fe4d4b43 + name: 'Host availability' + mappings: + - value: '0' + newvalue: 'Not available' + - value: '1' + newvalue: Available + - value: '2' + newvalue: Unknown + - uuid: 692e46f1836c4e2682a0dc882fec89a0 + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 7a288ac5cdbf429b9d568b12b312ad70 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 31a78150623d4ce39a0c98a59bfa5c47 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: ab635805cfb74121827f3f31e985e875 + expression: '(last(/Vyatta Virtual Router by SNMP/system.uptime.hardware[hrSystemUptime.0])>0 and last(/Vyatta Virtual Router by SNMP/system.uptime.hardware[hrSystemUptime.0])<10m) or (last(/Vyatta Virtual Router by SNMP/system.uptime.hardware[hrSystemUptime.0])=0 and last(/Vyatta Virtual Router by SNMP/system.uptime.network[sysUpTimeInstance])<10m)' + name: 'Vyatta: Host has been restarted' + event_name: 'Vyatta: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Vyatta: No SNMP data collection' + expression: 'max(/Vyatta Virtual Router by SNMP/zabbix[host,snmp,available],{$VYATTA.SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + - uuid: 14ad5e7b60624d5bbcd7124278d23a48 + expression: | + min(/Vyatta Virtual Router by SNMP/system.cpu.load.avg1,5m)/last(/Vyatta Virtual Router by SNMP/system.cpu.num)>{$VYATTA.LOAD_AVG_PER_CPU.MAX.WARN} + and last(/Vyatta Virtual Router by SNMP/system.cpu.load.avg5)>0 + and last(/Vyatta Virtual Router by SNMP/system.cpu.load.avg15)>0 + name: 'Vyatta: Load average is too high' + event_name: 'Vyatta: Load average is too high (per CPU load over {$VYATTA.LOAD_AVG_PER_CPU.MAX.WARN} for 5m)' + opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}' + priority: AVERAGE + description: 'The load average per CPU is too high. The system may be slow to respond.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + graphs: + - uuid: dfd6533466a74f348ba660166166ce85 + name: 'CPU usage' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.system + - sortorder: '1' + color: F63100 + item: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.user + - sortorder: '2' + color: 00611C + item: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.idle + - uuid: ab9f0c1098fd46a991ee8afab8987916 + name: 'Memory utilization' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.memory.total[memTotalReal.0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Vyatta Virtual Router by SNMP' + key: 'system.memory.free[memAvailReal.0]' + - sortorder: '2' + drawtype: GRADIENT_LINE + color: 00611C + item: + host: 'Vyatta Virtual Router by SNMP' + key: system.memory.util + - uuid: 517cd4cc43394fe98ff85c921e32e602 + name: 'System load' + ymin_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.load.avg1 + - sortorder: '1' + color: F63100 + item: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.load.avg5 + - sortorder: '2' + color: 00611C + item: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.load.avg15 + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Vyatta Virtual Router by SNMP' + key: system.cpu.num diff --git a/Website_by_Browser.yaml b/Website_by_Browser.yaml new file mode 100644 index 0000000..eef8f95 --- /dev/null +++ b/Website_by_Browser.yaml @@ -0,0 +1,1071 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 2526dce71d714e31bd545e96370c67b2 + template: 'Website by Browser' + name: 'Website by Browser' + description: | + The template to monitor a website's availability and performance on the website by Browser. + + Zabbix server uses a web browser to perform navigation and collect performance metrics. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: b5d5b396dfdc4fc99e4c2d0216728027 + name: 'Website {$WEBSITE.DOMAIN} Get data' + type: BROWSER + key: website.get.data + delay: '{$WEBSITE.GET.DATA.INTERVAL}' + history: '0' + value_type: TEXT + trends: '0' + params: | + const Website = { + params: {}, + + setParams(params) { + ['scheme', 'domain','width', 'height'].forEach(function (field) { + if (typeof params !== 'object' || !params[field]) { + throw new Error('Required param is not set: ' + field + '.'); + } + }); + this.params = params; + }, + + getOptions(browser) { + switch ((browser || '').trim().toLowerCase()) { + case 'firefox': + return Browser.firefoxOptions(); + case 'safari': + return Browser.safariOptions(); + case 'edge': + return Browser.edgeOptions(); + default: + return Browser.chromeOptions(); + } + }, + + getPerformance() { + const browser = new Browser(Website.getOptions(Website.params.browser)); + const url = Website.params.scheme + '://' + Website.params.domain + '/' + Website.params.path + const screenshot = ''; + browser.setScreenSize(Number(Website.params.width), Number(Website.params.height)) + browser.navigate(url); + browser.collectPerfEntries(); + screenshot = browser.getScreenshot(); + const result = browser.getResult(); + result.screenshot = screenshot; + + return JSON.stringify(result); + } + }; + + try { + Website.setParams(JSON.parse(value)); + return Website.getPerformance(); + + } catch (error) { + error += (String(error).endsWith('.')) ? '' : '.'; + Zabbix.log(3, '[ Website get metrics] ERROR: ' + error); + return JSON.stringify({ 'error': error }); + } + description: 'Returns the JSON with performance counters of the requested website.' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + parameters: + - name: browser + value: '{$WEBSITE.BROWSER}' + - name: domain + value: '{$WEBSITE.DOMAIN}' + - name: height + value: '{$WEBSITE.SCREEN.HEIGHT}' + - name: path + value: '{$WEBSITE.PATH}' + - name: scheme + value: '{$WEBSITE.SCHEME}' + - name: width + value: '{$WEBSITE.SCREEN.WIDTH}' + tags: + - tag: component + value: raw + - uuid: 0de3b06fb406427499b0d4831774b540 + name: 'Get metrics check' + type: DEPENDENT + key: website.metrics.check + delay: '0' + value_type: CHAR + trends: '0' + description: 'Check that the performance counters of the requested website data has been received correctly.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: CUSTOM_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: website.get.data + tags: + - tag: component + value: status + triggers: + - uuid: 56970ddca5b94afdb2186741edd85362 + expression: 'length(last(/Website by Browser/website.metrics.check))>0' + name: 'Website by Browser: Failed to get metrics data' + event_name: 'Website by Browser: Failed to get JSON of the requested website ''{$WEBSITE.DOMAIN}''' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Failed to get JSON with performance counters of the requested website ''{$WEBSITE.DOMAIN}''.' + tags: + - tag: scope + value: availability + - uuid: d96d4723a8e34393bf4e3e2973eafc48 + name: 'Website {$WEBSITE.DOMAIN} Navigation DNS lookup time' + type: DEPENDENT + key: website.navigation.dns_lookup_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spent on DNS lookup (domainLookupEnd - domainLookupStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.dns_lookup_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: 760e0d852a924648a8f75bb24b888445 + name: 'Website {$WEBSITE.DOMAIN} Navigation domContentLoaded time' + type: DEPENDENT + key: website.navigation.dom_content_loaded_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spent on DOM content loading (domContentLoadedEventEnd - domContentLoadedEventStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.dom_content_loading_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: 6056b72c640a4560b90ee49df1e66171 + name: 'Website {$WEBSITE.DOMAIN} Navigation encodedBody size' + type: DEPENDENT + key: website.navigation.encoded_size + delay: '0' + value_type: FLOAT + trends: '0' + units: B + description: 'Measuring of encoded size (encodedBodySize).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.encoded_size + error_handler: DISCARD_VALUE + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: cc0e03d92cb34298a952b06f7185efd6 + name: 'Website {$WEBSITE.DOMAIN} Navigation load event time' + type: DEPENDENT + key: website.navigation.load_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of load finished time (loadEventEnd).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.load_finished + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + triggers: + - uuid: a2d63bfe681848fdb984f3b579262086 + expression: 'last(/Website by Browser/website.navigation.load_time)>{$WEBSITE.NAVIGATION.LOAD.MAX.WARN}' + name: 'Website by Browser: Website navigation load event time is too slow' + event_name: 'Website by Browser: Website {$WEBSITE.DOMAIN} navigation load event time > {$WEBSITE.NAVIGATION.LOAD.MAX.WARN}' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Website by Browser: Failed to get metrics data' + expression: 'length(last(/Website by Browser/website.metrics.check))>0' + tags: + - tag: scope + value: notice + - uuid: 12d8df72ebfc493d90f4b47773e4101e + name: 'Website {$WEBSITE.DOMAIN} Navigation request time' + type: DEPENDENT + key: website.navigation.request_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spend on the request (responseStart - requestStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.request_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: 326c2f6a5d0340418a7d2f4416477fd4 + name: 'Website {$WEBSITE.DOMAIN} Navigation resource fetch time' + type: DEPENDENT + key: website.navigation.resource_fetch_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spent to fetch the resource (without redirects) (responseEnd - fetchStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.resource_fetch_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: 37d268e1ba1c42e98eeb1717e92d7c17 + name: 'Website {$WEBSITE.DOMAIN} Navigation response time' + type: DEPENDENT + key: website.navigation.response_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spend on the response (responseEnd - responseStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.response_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: 35487bbb10ab47fe9d210cf1d4c0695d + name: 'Website {$WEBSITE.DOMAIN} Navigation service worker processing time' + type: DEPENDENT + key: website.navigation.service_worker_processing_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of sum of time spend on browser''s service worker processing (fetchStart - workerStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.service_worker_processing_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: 5adf88f1c63145bfb544a6e590b1b8ce + name: 'Website {$WEBSITE.DOMAIN} Navigation TCP handshake time' + type: DEPENDENT + key: website.navigation.tcp_handshake_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spent on TCP handshake (connectEnd - connectStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.tcp_handshake_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: 34663a973a5d4b22a841d6a751dbe09c + name: 'Website {$WEBSITE.DOMAIN} Navigation TLS negotiation time' + type: DEPENDENT + key: website.navigation.tls_negotiation_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spent on TLS negotiation (requestStart - secureConnectionStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.tls_negotiation_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: ae62ce5db2054f40ac7e281437d38f53 + name: 'Website {$WEBSITE.DOMAIN} Navigation decodedBody size' + type: DEPENDENT + key: website.navigation.total_size + delay: '0' + value_type: FLOAT + trends: '0' + units: B + description: 'Measuring of total size (decodedBodySize).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.total_size + error_handler: DISCARD_VALUE + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: 7c1d1abd30b445d69f3b73ff4a1ba356 + name: 'Website {$WEBSITE.DOMAIN} Navigation transfer size' + type: DEPENDENT + key: website.navigation.transferred_size + delay: '0' + value_type: FLOAT + trends: '0' + units: B + description: 'Measuring of transferred size (transferSize).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.navigation.transferred_size + error_handler: DISCARD_VALUE + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: navigation + - uuid: 3557ae18d19e49839fb3012e79949b49 + name: 'Website {$WEBSITE.DOMAIN} Resource DNS lookup time' + type: DEPENDENT + key: website.resource.dns_lookup_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spent on DNS lookup (domainLookupEnd - domainLookupStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.dns_lookup_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: 6e29d13df9d94b22b84c3522ea451917 + name: 'Website {$WEBSITE.DOMAIN} Resource domContentLoaded time' + type: DEPENDENT + key: website.resource.dom_content_loaded_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spent on DOM content loading (domContentLoadedEventEnd - domContentLoadedEventStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.dom_content_loading_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: 09a5ead05ce64371aa731cf566b9b0f9 + name: 'Website {$WEBSITE.DOMAIN} Resource encodedBody size' + type: DEPENDENT + key: website.resource.encoded_size + delay: '0' + value_type: FLOAT + trends: '0' + units: B + description: 'Measuring of encoded size (encodedBodySize).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.encoded_size + error_handler: DISCARD_VALUE + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: 8e051253fc8c46aa9da009cb022d9023 + name: 'Website {$WEBSITE.DOMAIN} Resource fetch time' + type: DEPENDENT + key: website.resource.fetch_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spent to fetch the resource (without redirects) (responseEnd - fetchStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.resource_fetch_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: fa84484786754da7b68a9ec3c50d63c4 + name: 'Website {$WEBSITE.DOMAIN} Resource load event time' + type: DEPENDENT + key: website.resource.load_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of load finished time (loadEventEnd).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.load_finished + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + triggers: + - uuid: 1f7fbe56f5bf49468fb597a2ff986cd7 + expression: 'last(/Website by Browser/website.resource.load_time)>{$WEBSITE.RESOURCE.LOAD.MAX.WARN}' + name: 'Website by Browser: Website resource load event time is too slow' + event_name: 'Website by Browser: Website {$WEBSITE.DOMAIN} resource load event time > ''{$WEBSITE.RESOURCE.LOAD.MAX.WARN}''' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + dependencies: + - name: 'Website by Browser: Failed to get metrics data' + expression: 'length(last(/Website by Browser/website.metrics.check))>0' + tags: + - tag: scope + value: notice + - uuid: a53c136efe8141028f09cc1ca8277c10 + name: 'Website {$WEBSITE.DOMAIN} Resource request time' + type: DEPENDENT + key: website.resource.request_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spend on the request (responseStart - requestStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.request_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: f99d69f39c404d5a94cf00a96a3f0701 + name: 'Website {$WEBSITE.DOMAIN} Resource response time' + type: DEPENDENT + key: website.resource.response_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spend on the response (responseEnd - responseStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.response_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: b2199d4d0cc146aeb268e41fe65ca7ac + name: 'Website {$WEBSITE.DOMAIN} Resource service worker processing time' + type: DEPENDENT + key: website.resource.service_worker_processing_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of sum of time spend on browser''s service worker processing (fetchStart - workerStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.service_worker_processing_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: 5b57473fffbf45d5bc3ca33e903e0b35 + name: 'Website {$WEBSITE.DOMAIN} Resource TCP handshake time' + type: DEPENDENT + key: website.resource.tcp_handshake_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spent on TCP handshake (connectEnd - connectStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.tcp_handshake_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: 61071f340c6b47f2ac05fbd15e393dd3 + name: 'Website {$WEBSITE.DOMAIN} Resource TLS negotiation time' + type: DEPENDENT + key: website.resource.tls_negotiation_time + delay: '0' + value_type: FLOAT + trends: '0' + units: s + description: 'Measuring of time spent on TLS negotiation (requestStart - secureConnectionStart).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.tls_negotiation_time + error_handler: DISCARD_VALUE + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: 479d7c890adf46ac88e11a146f193f56 + name: 'Website {$WEBSITE.DOMAIN} Resource decodedBody size' + type: DEPENDENT + key: website.resource.total_size + delay: '0' + value_type: FLOAT + trends: '0' + units: B + description: 'Measuring of total size (decodedBodySize).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.total_size + error_handler: DISCARD_VALUE + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: 6b98ca6df6894be29b4ab7c645cac92d + name: 'Website {$WEBSITE.DOMAIN} Resource transfer size' + type: DEPENDENT + key: website.resource.transferred_size + delay: '0' + value_type: FLOAT + trends: '0' + units: B + description: 'Measuring of transferred size (transferSize).' + preprocessing: + - type: JSONPATH + parameters: + - $.performance_data.summary.resource.transferred_size + error_handler: DISCARD_VALUE + master_item: + key: website.get.data + tags: + - tag: component + value: application + - tag: performance + value: resource + - uuid: 931d98f67f9f45069711558083f40d33 + name: 'Website {$WEBSITE.DOMAIN} Screenshot' + type: DEPENDENT + key: website.screenshot + delay: '0' + value_type: BINARY + trends: '0' + description: 'Website {$WEBSITE.DOMAIN} screenshot.' + preprocessing: + - type: JSONPATH + parameters: + - $.screenshot + error_handler: DISCARD_VALUE + master_item: + key: website.get.data + tags: + - tag: component + value: application + tags: + - tag: class + value: application + - tag: target + value: browser + macros: + - macro: '{$WEBSITE.BROWSER}' + value: chrome + description: 'Browser to be used for data collection.' + - macro: '{$WEBSITE.DOMAIN}' + value: www.example.com + description: 'The domain name.' + - macro: '{$WEBSITE.GET.DATA.INTERVAL}' + value: 0s;m/15 + description: 'Update interval for get raw data item.' + - macro: '{$WEBSITE.NAVIGATION.LOAD.MAX.WARN}' + value: '5' + description: 'The maximum browser response time expressed in seconds for a trigger expression.' + - macro: '{$WEBSITE.PATH}' + description: 'The path to resource.' + - macro: '{$WEBSITE.RESOURCE.LOAD.MAX.WARN}' + value: '5' + description: 'The maximum browser response time expressed in seconds for a trigger expression.' + - macro: '{$WEBSITE.SCHEME}' + value: https + description: 'The request scheme, which may be either HTTP or HTTPS.' + - macro: '{$WEBSITE.SCREEN.HEIGHT}' + value: '1080' + description: 'Screen size height in pixels, used for screenshot.' + - macro: '{$WEBSITE.SCREEN.WIDTH}' + value: '1920' + description: 'Screen size width in pixels, used for screenshot.' + dashboards: + - uuid: 5afcfa0ecebd40d9a8fe16491ea7615e + name: 'Website overview' + pages: + - name: Screenshots + widgets: + - type: itemhistory + name: Screenshots + width: '16' + height: '10' + hide_header: 'YES' + fields: + - type: ITEM + name: columns.0.itemid + value: + host: 'Website by Browser' + key: website.screenshot + - type: STRING + name: columns.0.name + value: Screenshot + - type: INTEGER + name: columns.0.show_thumbnail + value: '1' + - type: INTEGER + name: layout + value: '1' + - type: STRING + name: reference + value: MBTYI + - type: INTEGER + name: show_timestamp + value: '1' + - type: svggraph + name: 'Load time' + x: '16' + width: '28' + height: '5' + fields: + - type: INTEGER + name: ds.0.fill + value: '4' + - type: STRING + name: ds.0.items.0 + value: 'Website {$WEBSITE.DOMAIN} Navigation load event time' + - type: INTEGER + name: ds.0.width + value: '2' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color + value: FFD54F + - type: INTEGER + name: ds.1.fill + value: '4' + - type: STRING + name: ds.1.items.0 + value: 'Website {$WEBSITE.DOMAIN} Resource load event time' + - type: INTEGER + name: ds.1.missingdatafunc + value: '1' + - type: INTEGER + name: ds.1.width + value: '2' + - type: STRING + name: reference + value: OVVDR + - type: INTEGER + name: severities.0 + value: '2' + - type: INTEGER + name: severities.1 + value: '3' + - type: INTEGER + name: severities.2 + value: '4' + - type: INTEGER + name: severities.3 + value: '5' + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Navigation timing' + x: '16' + 'y': '5' + width: '28' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: FF7043 + - type: STRING + name: ds.0.items.0 + value: 'Website {$WEBSITE.DOMAIN} Navigation resource fetch time' + - type: STRING + name: ds.1.color + value: FFD54F + - type: STRING + name: ds.1.items.0 + value: 'Website {$WEBSITE.DOMAIN} Navigation DNS lookup time' + - type: STRING + name: ds.2.color + value: 546E7A + - type: STRING + name: ds.2.items.0 + value: 'Website {$WEBSITE.DOMAIN} Navigation TCP handshake time' + - type: STRING + name: ds.3.items.0 + value: 'Website {$WEBSITE.DOMAIN} Navigation TLS negotiation time' + - type: STRING + name: ds.4.color + value: 3949AB + - type: STRING + name: ds.4.items.0 + value: 'Website {$WEBSITE.DOMAIN} Navigation request time' + - type: STRING + name: ds.5.color + value: 388E3C + - type: STRING + name: ds.5.items.0 + value: 'Website {$WEBSITE.DOMAIN} Navigation response time' + - type: STRING + name: reference + value: FBLXC + - type: svggraph + name: 'Navigation size' + x: '44' + width: '28' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: '666699' + - type: STRING + name: ds.0.items.0 + value: 'Website {$WEBSITE.DOMAIN} Navigation decodedBody size' + - type: INTEGER + name: ds.0.type + value: '3' + - type: STRING + name: ds.1.color + value: FFD54F + - type: STRING + name: ds.1.items.0 + value: 'Website {$WEBSITE.DOMAIN} Navigation encodedBody size' + - type: INTEGER + name: ds.1.type + value: '3' + - type: STRING + name: ds.2.color + value: 0EC9AC + - type: STRING + name: ds.2.items.0 + value: 'Website {$WEBSITE.DOMAIN} Navigation transfer size' + - type: INTEGER + name: ds.2.type + value: '3' + - type: STRING + name: reference + value: PXXYQ + - type: INTEGER + name: severities.0 + value: '2' + - type: INTEGER + name: severities.1 + value: '3' + - type: INTEGER + name: severities.2 + value: '4' + - type: INTEGER + name: severities.3 + value: '5' + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Resource timing' + x: '44' + 'y': '5' + width: '28' + height: '5' + fields: + - type: STRING + name: ds.0.color + value: FF8000 + - type: STRING + name: ds.0.items.0 + value: 'Website {$WEBSITE.DOMAIN} Resource resource fetch time' + - type: STRING + name: ds.1.items.0 + value: 'Website {$WEBSITE.DOMAIN} Resource DNS lookup time' + - type: STRING + name: ds.2.color + value: FFD54F + - type: STRING + name: ds.2.items.0 + value: 'Website {$WEBSITE.DOMAIN} Resource TCP handshake time' + - type: STRING + name: ds.3.color + value: 0EC9AC + - type: STRING + name: ds.3.items.0 + value: 'Website {$WEBSITE.DOMAIN} Resource TLS negotiation time' + - type: STRING + name: ds.4.color + value: 524BBC + - type: STRING + name: ds.4.items.0 + value: 'Website {$WEBSITE.DOMAIN} Resource request time' + - type: STRING + name: ds.5.color + value: ED1248 + - type: STRING + name: ds.5.items.0 + value: 'Website {$WEBSITE.DOMAIN} Resource response time' + - type: STRING + name: reference + value: ZLUHM + graphs: + - uuid: c373d777570a42fda3cea03d24bed67f + name: 'Performance Navigation Timing' + graph_items: + - color: 199C0D + item: + host: 'Website by Browser' + key: website.navigation.dns_lookup_time + - sortorder: '1' + color: F63100 + item: + host: 'Website by Browser' + key: website.navigation.tcp_handshake_time + - sortorder: '2' + color: 00611C + item: + host: 'Website by Browser' + key: website.navigation.tls_negotiation_time + - sortorder: '3' + color: F7941D + item: + host: 'Website by Browser' + key: website.navigation.dom_content_loaded_time + - sortorder: '4' + color: FC6EA3 + item: + host: 'Website by Browser' + key: website.navigation.resource_fetch_time + - sortorder: '5' + color: 6C59DC + item: + host: 'Website by Browser' + key: website.navigation.service_worker_processing_time + - sortorder: '6' + color: C7A72D + item: + host: 'Website by Browser' + key: website.navigation.request_time + - sortorder: '7' + color: BA2A5D + item: + host: 'Website by Browser' + key: website.navigation.response_time + - uuid: 3301237b56ea455b8e1344bb467d11b0 + name: 'Performance Resource Timing' + graph_items: + - color: 199C0D + item: + host: 'Website by Browser' + key: website.resource.dns_lookup_time + - sortorder: '1' + color: F63100 + item: + host: 'Website by Browser' + key: website.resource.tcp_handshake_time + - sortorder: '2' + color: 00611C + item: + host: 'Website by Browser' + key: website.resource.tls_negotiation_time + - sortorder: '3' + color: F7941D + item: + host: 'Website by Browser' + key: website.resource.dom_content_loaded_time + - sortorder: '4' + color: FC6EA3 + item: + host: 'Website by Browser' + key: website.resource.fetch_time + - sortorder: '5' + color: 6C59DC + item: + host: 'Website by Browser' + key: website.resource.service_worker_processing_time + - sortorder: '6' + color: C7A72D + item: + host: 'Website by Browser' + key: website.resource.request_time + - sortorder: '7' + color: BA2A5D + item: + host: 'Website by Browser' + key: website.resource.response_time diff --git a/Website_certificate_by_Zabbix_agent_2.yaml b/Website_certificate_by_Zabbix_agent_2.yaml new file mode 100644 index 0000000..a8850d9 --- /dev/null +++ b/Website_certificate_by_Zabbix_agent_2.yaml @@ -0,0 +1,292 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 5630ec1b1baf449abe1bc5521f85fe6c + template: 'Website certificate by Zabbix agent 2' + name: 'Website certificate by Zabbix agent 2' + description: | + The template to monitor TLS/SSL certificate on the website by Zabbix agent 2 that works without any external scripts. + + Zabbix agent 2 with the WebCertificate plugin requests certificate using the web.certificate.get key and returns JSON with certificate attributes. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/428309-discussion-thread-for-official-zabbix-template-tls-ssl-certificates-monitoring + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 42068372fbce4c12a4f3193fc490d4ec + name: 'Subject alternative name' + type: DEPENDENT + key: cert.alternative_names + delay: '0' + value_type: TEXT + trends: '0' + description: 'The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate. Defined options include an Internet electronic mail address, a DNS name, an IP address, and a Uniform Resource Identifier (URI).' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.alternative_names + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: 946e205aaa84433a8bf1fe46b9362acd + name: Issuer + type: DEPENDENT + key: cert.issuer + delay: '0' + value_type: TEXT + trends: '0' + description: 'The field identifies the entity that has signed and issued the certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.issuer + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: f124443debb447a792beb8265d2918ee + name: 'Last validation status' + type: DEPENDENT + key: cert.message + delay: '0' + value_type: TEXT + trends: '0' + description: 'Last check result message.' + preprocessing: + - type: JSONPATH + parameters: + - $.result.message + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: e34bffac86ef41e2865fe8410c2d0aa0 + name: 'Expires on' + type: DEPENDENT + key: cert.not_after + delay: '0' + units: unixtime + description: 'The date on which the certificate validity period ends.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.not_after.timestamp + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + triggers: + - uuid: 8a0e3e73527a45618afe94707234f4c6 + expression: '(last(/Website certificate by Zabbix agent 2/cert.not_after) - now()) / 86400 < {$CERT.EXPIRY.WARN}' + name: 'Certificate: SSL certificate expires soon' + event_name: 'Certificate: SSL certificate expires soon (less than {$CERT.EXPIRY.WARN} days)' + priority: WARNING + description: 'The SSL certificate should be updated or it will become untrusted.' + dependencies: + - name: 'Certificate: SSL certificate is invalid' + expression: 'find(/Website certificate by Zabbix agent 2/cert.validation,,"like","invalid")=1' + tags: + - tag: scope + value: notice + - uuid: c3ba835b28db4f1486ae4be87c3fe55f + name: 'Valid from' + type: DEPENDENT + key: cert.not_before + delay: '0' + units: unixtime + description: 'The date on which the certificate validity period begins.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.not_before.timestamp + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: 08b47b376f0f4f999bd1110696465fd9 + name: 'Public key algorithm' + type: DEPENDENT + key: cert.public_key_algorithm + delay: '0' + value_type: CHAR + trends: '0' + description: 'The digital signature algorithm is used to verify the signature of a certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.public_key_algorithm + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: d7d4e592cc6741fcba9c21b5195b8544 + name: 'Serial number' + type: DEPENDENT + key: cert.serial_number + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number is a positive integer assigned by the CA to each certificate. It is unique for each certificate issued by a given CA. Non-conforming CAs may issue certificates with serial numbers that are negative or zero.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.serial_number + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: 848cd98e80764f61bbe526316c70da11 + name: Fingerprint + type: DEPENDENT + key: cert.sha1_fingerprint + delay: '0' + value_type: CHAR + trends: '0' + description: 'The Certificate Signature (SHA1 Fingerprint or Thumbprint) is the hash of the entire certificate in DER form.' + preprocessing: + - type: JSONPATH + parameters: + - $.sha1_fingerprint + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + triggers: + - uuid: 7a4c69a5235e444cb7294e6b7189b2b6 + expression: 'last(/Website certificate by Zabbix agent 2/cert.sha1_fingerprint) <> last(/Website certificate by Zabbix agent 2/cert.sha1_fingerprint,#2)' + name: 'Certificate: Fingerprint has changed' + event_name: 'Certificate: Fingerprint has changed (new version: {ITEM.VALUE})' + priority: INFO + description: | + The SSL certificate fingerprint has changed. If you did not update the certificate, it may mean your certificate has been hacked. Acknowledge to close the problem manually. + There could be multiple valid certificates on some installations. In this case, the trigger will have a false positive. You can ignore it or disable the trigger. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 67d4cb73b1e74c5f9e63423e9bbdd3a6 + name: 'Signature algorithm' + type: DEPENDENT + key: cert.signature_algorithm + delay: '0' + value_type: CHAR + trends: '0' + description: 'The algorithm identifier for the algorithm used by the CA to sign the certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.signature_algorithm + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: b44c554d025446c6b1761a5fde250f9f + name: Subject + type: DEPENDENT + key: cert.subject + delay: '0' + value_type: TEXT + trends: '0' + description: 'The field identifies the entity associated with the public key stored in the subject public key field.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.subject + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: 4fc3c39291ea4e3aa6ee04fcec4e1a8d + name: 'Validation result' + type: DEPENDENT + key: cert.validation + delay: '0' + value_type: CHAR + trends: '0' + description: 'The certificate validation result. Possible values: valid/invalid/valid-but-self-signed' + preprocessing: + - type: JSONPATH + parameters: + - $.result.value + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + triggers: + - uuid: 854c791b765a4ae2982ce6436d6e78ca + expression: 'find(/Website certificate by Zabbix agent 2/cert.validation,,"like","invalid")=1' + name: 'Certificate: SSL certificate is invalid' + priority: HIGH + description: 'SSL certificate has expired or it is issued for another domain.' + tags: + - tag: scope + value: security + - uuid: a8b04dfe285d47e39c9d360ea43fcdbe + name: Version + type: DEPENDENT + key: cert.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of the encoded certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.version + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: ec072b3b1c6847b79acac9f18d14df8a + name: Get + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + delay: 15m + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the JSON with attributes of a certificate of the requested site.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: raw + tags: + - tag: class + value: software + - tag: target + value: certificate + macros: + - macro: '{$CERT.EXPIRY.WARN}' + value: '7' + description: 'Number of days until the certificate expires.' + - macro: '{$CERT.WEBSITE.HOSTNAME}' + value: '' + description: 'The website DNS name for the connection.' + - macro: '{$CERT.WEBSITE.IP}' + description: 'The website IP address for the connection.' + - macro: '{$CERT.WEBSITE.PORT}' + value: '443' + description: 'The TLS/SSL port number of the website.' diff --git a/Website_certificate_by_Zabbix_agent_2_active.yaml b/Website_certificate_by_Zabbix_agent_2_active.yaml new file mode 100644 index 0000000..a2c0049 --- /dev/null +++ b/Website_certificate_by_Zabbix_agent_2_active.yaml @@ -0,0 +1,293 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: de38542cf4f24fafab33520677f392c4 + template: 'Website certificate by Zabbix agent 2 active' + name: 'Website certificate by Zabbix agent 2 active' + description: | + The template to monitor TLS/SSL certificate on the website by Zabbix agent 2 that works without any external scripts. + + Zabbix agent 2 with the WebCertificate plugin requests certificate using the web.certificate.get key and returns JSON with certificate attributes. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/428309-discussion-thread-for-official-zabbix-template-tls-ssl-certificates-monitoring + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: adad17766cd84e6cb5966b26c79bebbc + name: 'Subject alternative name' + type: DEPENDENT + key: cert.alternative_names + delay: '0' + value_type: TEXT + trends: '0' + description: 'The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate. Defined options include an Internet electronic mail address, a DNS name, an IP address, and a Uniform Resource Identifier (URI).' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.alternative_names + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: 7095e5e326ae4f29b86e281d8fc24afc + name: Issuer + type: DEPENDENT + key: cert.issuer + delay: '0' + value_type: TEXT + trends: '0' + description: 'The field identifies the entity that has signed and issued the certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.issuer + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: dd0cdc1cf7d0430cb3e7601a68df1aed + name: 'Last validation status' + type: DEPENDENT + key: cert.message + delay: '0' + value_type: TEXT + trends: '0' + description: 'Last check result message.' + preprocessing: + - type: JSONPATH + parameters: + - $.result.message + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: 4a1b4f5d6bb64e0389c6a206b0d3749e + name: 'Expires on' + type: DEPENDENT + key: cert.not_after + delay: '0' + units: unixtime + description: 'The date on which the certificate validity period ends.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.not_after.timestamp + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + triggers: + - uuid: 1f7fc868d3ad428f8114278a4f27c77e + expression: '(last(/Website certificate by Zabbix agent 2 active/cert.not_after) - now()) / 86400 < {$CERT.EXPIRY.WARN}' + name: 'Certificate: SSL certificate expires soon' + event_name: 'Certificate: SSL certificate expires soon (less than {$CERT.EXPIRY.WARN} days)' + priority: WARNING + description: 'The SSL certificate should be updated or it will become untrusted.' + dependencies: + - name: 'Certificate: SSL certificate is invalid' + expression: 'find(/Website certificate by Zabbix agent 2 active/cert.validation,,"like","invalid")=1' + tags: + - tag: scope + value: notice + - uuid: 3df42217148c45888f9cda3e8a273ad6 + name: 'Valid from' + type: DEPENDENT + key: cert.not_before + delay: '0' + units: unixtime + description: 'The date on which the certificate validity period begins.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.not_before.timestamp + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: d4f08f2bcb104036bede781b3c693ce4 + name: 'Public key algorithm' + type: DEPENDENT + key: cert.public_key_algorithm + delay: '0' + value_type: CHAR + trends: '0' + description: 'The digital signature algorithm is used to verify the signature of a certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.public_key_algorithm + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: b799fe9cde49472996debe89e32f9161 + name: 'Serial number' + type: DEPENDENT + key: cert.serial_number + delay: '0' + value_type: CHAR + trends: '0' + description: 'The serial number is a positive integer assigned by the CA to each certificate. It is unique for each certificate issued by a given CA. Non-conforming CAs may issue certificates with serial numbers that are negative or zero.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.serial_number + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: bb13668b3dac4ef789ab90eb6e04da1f + name: Fingerprint + type: DEPENDENT + key: cert.sha1_fingerprint + delay: '0' + value_type: CHAR + trends: '0' + description: 'The Certificate Signature (SHA1 Fingerprint or Thumbprint) is the hash of the entire certificate in DER form.' + preprocessing: + - type: JSONPATH + parameters: + - $.sha1_fingerprint + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + triggers: + - uuid: 59089233c1ed4aa2b9316ccd9e443c49 + expression: 'last(/Website certificate by Zabbix agent 2 active/cert.sha1_fingerprint) <> last(/Website certificate by Zabbix agent 2 active/cert.sha1_fingerprint,#2)' + name: 'Certificate: Fingerprint has changed' + event_name: 'Certificate: Fingerprint has changed (new version: {ITEM.VALUE})' + priority: INFO + description: | + The SSL certificate fingerprint has changed. If you did not update the certificate, it may mean your certificate has been hacked. Acknowledge to close the problem manually. + There could be multiple valid certificates on some installations. In this case, the trigger will have a false positive. You can ignore it or disable the trigger. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 42c021f833e344ff86fd75d5fcc67f23 + name: 'Signature algorithm' + type: DEPENDENT + key: cert.signature_algorithm + delay: '0' + value_type: CHAR + trends: '0' + description: 'The algorithm identifier for the algorithm used by the CA to sign the certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.signature_algorithm + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: 4ce885041af04d52943dbc137a419c04 + name: Subject + type: DEPENDENT + key: cert.subject + delay: '0' + value_type: TEXT + trends: '0' + description: 'The field identifies the entity associated with the public key stored in the subject public key field.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.subject + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: 5722c8d0794a4f948cec737a80a2f646 + name: 'Validation result' + type: DEPENDENT + key: cert.validation + delay: '0' + value_type: CHAR + trends: '0' + description: 'The certificate validation result. Possible values: valid/invalid/valid-but-self-signed' + preprocessing: + - type: JSONPATH + parameters: + - $.result.value + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + triggers: + - uuid: faccfa7095aa4708bf6e1d60b2b57b1b + expression: 'find(/Website certificate by Zabbix agent 2 active/cert.validation,,"like","invalid")=1' + name: 'Certificate: SSL certificate is invalid' + priority: HIGH + description: 'SSL certificate has expired or it is issued for another domain.' + tags: + - tag: scope + value: security + - uuid: 5f7e2edfa6e24fd0a8608b8a2423b183 + name: Version + type: DEPENDENT + key: cert.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of the encoded certificate.' + preprocessing: + - type: JSONPATH + parameters: + - $.x509.version + master_item: + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + tags: + - tag: component + value: cert + - uuid: cfc056393df34d3ab8f66f1d1bfc7c0b + name: Get + type: ZABBIX_ACTIVE + key: 'web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]' + delay: 15m + history: '0' + value_type: TEXT + trends: '0' + description: 'Returns the JSON with attributes of a certificate of the requested site.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: raw + tags: + - tag: class + value: software + - tag: target + value: certificate + macros: + - macro: '{$CERT.EXPIRY.WARN}' + value: '7' + description: 'Number of days until the certificate expires.' + - macro: '{$CERT.WEBSITE.HOSTNAME}' + value: '' + description: 'The website DNS name for the connection.' + - macro: '{$CERT.WEBSITE.IP}' + description: 'The website IP address for the connection.' + - macro: '{$CERT.WEBSITE.PORT}' + value: '443' + description: 'The TLS/SSL port number of the website.' diff --git a/WildFly_Domain_by_JMX.yaml b/WildFly_Domain_by_JMX.yaml new file mode 100644 index 0000000..24addd0 --- /dev/null +++ b/WildFly_Domain_by_JMX.yaml @@ -0,0 +1,346 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 4b27e636b6ad4ce68511d344d5604999 + template: 'WildFly Domain by JMX' + name: 'WildFly Domain by JMX' + description: | + Official JMX Template for WildFly. + The metrics are collected by JMX. This template works with Domain Controller. + You can set {$WILDFLY.USER} and {$WILDFLY.PASSWORD} macros in the template for using on the host level. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: aa30358b46024aef8fa2e3ba387c4fb9 + name: Uptime + type: JMX + key: 'jmx["java.lang:type=Runtime","Uptime"]' + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'WildFly server uptime.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + triggers: + - uuid: 926f1767aae74529a972c7b8b09f4442 + expression: 'last(/WildFly Domain by JMX/jmx["java.lang:type=Runtime","Uptime"])<10m' + name: 'WildFly Domain: WildFly: Host has been restarted' + event_name: 'WildFly Domain: WildFly: {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: 5c0653e99ddb4f26ae12ce4d6ce9892c + name: 'Launch type' + type: JMX + key: 'jmx["jboss.as:management-root=server","launchType"]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The manner in which the server process was launched. Either "DOMAIN" for a domain mode server launched by a Host Controller, "STANDALONE" for a standalone server launched from the command line, or "EMBEDDED" for a standalone server launched as an embedded part of an application running in the same virtual machine.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + - uuid: 5412059106e844ae89f6f84b4da42388 + name: Name + type: JMX + key: 'jmx["jboss.as:management-root=server","name"]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: | + For standalone mode: The name of this server. If not set, defaults to the runtime value of InetAddress.getLocalHost().getHostName(). + For domain mode: The name given to this domain + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + - uuid: d5e2f5e277874567a5d46196fd032298 + name: 'Process type' + type: JMX + key: 'jmx["jboss.as:management-root=server","processType"]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The type of process represented by this root resource.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + - uuid: f1bb15824f384e21bb9ae1224abd18e0 + name: Version + type: JMX + key: 'jmx["jboss.as:management-root=server","productVersion"]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The version of the WildFly Core based product release.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + triggers: + - uuid: 76d500211fd9479fafbd0fb7d41ffd68 + expression: 'last(/WildFly Domain by JMX/jmx["jboss.as:management-root=server","productVersion"],#1)<>last(/WildFly Domain by JMX/jmx["jboss.as:management-root=server","productVersion"],#2) and length(last(/WildFly Domain by JMX/jmx["jboss.as:management-root=server","productVersion"]))>0' + name: 'WildFly Domain: WildFly: Version has changed' + event_name: 'WildFly Domain: WildFly: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'WildFly version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 3af697e56771487abee9f62e453fb0c3 + name: 'Deployments discovery' + type: JMX + key: 'jmx.get[beans,"jboss.as.expr:deployment=*,server-group=*"]' + delay: 1h + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#DEPLOYMENT}' + value: '{$WILDFLY.DEPLOYMENT.MATCHES}' + formulaid: A + - macro: '{#DEPLOYMENT}' + value: '{$WILDFLY.DEPLOYMENT.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery deployments metrics.' + item_prototypes: + - uuid: e6b1bebba5da4ce493ba7edf869c37b3 + name: 'WildFly deployment [{#DEPLOYMENT}]: Enabled' + type: JMX + key: 'jmx["{#JMXOBJ}",enabled]' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'Boolean indicating whether the deployment content is currently deployed in the runtime (or should be deployed in the runtime the next time the server starts).' + valuemap: + name: 'WildFly flag' + preprocessing: + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: deployments + - tag: deployment + value: '{#DEPLOYMENT}' + - tag: server-group + value: '{#SERVER_GROUP}' + - uuid: 45d729721df34ef297109b58027ca4c1 + name: 'WildFly deployment [{#DEPLOYMENT}]: Managed' + type: JMX + key: 'jmx["{#JMXOBJ}",managed]' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'Indicates if the deployment is managed (aka uses the ContentRepository).' + valuemap: + name: 'WildFly flag' + preprocessing: + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: deployments + - tag: deployment + value: '{#DEPLOYMENT}' + - tag: server-group + value: '{#SERVER_GROUP}' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + lld_macro_paths: + - lld_macro: '{#DEPLOYMENT}' + path: $.properties.deployment + - lld_macro: '{#JMXOBJ}' + path: $.object + - lld_macro: '{#SERVER_GROUP}' + path: '$.properties.["server-group"]' + - uuid: da7f7dfad0c1440a8980693870364baa + name: 'Servers discovery' + type: JMX + key: 'jmx.get[beans,"jboss.as:host=master,server-config=*"]' + delay: 1h + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#SERVER}' + value: '{$WILDFLY.SERVER.MATCHES}' + formulaid: A + - macro: '{#SERVER}' + value: '{$WILDFLY.SERVER.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery instances in domain.' + item_prototypes: + - uuid: d0938bbf20854315bd5cf17491b0ae1c + name: 'Server {#SERVER}: Autostart' + type: JMX + key: 'jmx["{#JMXOBJ}",autoStart]' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'Whether or not this server should be started when the Host Controller starts.' + valuemap: + name: 'WildFly flag' + preprocessing: + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: servers + - tag: server + value: '{#SERVER}' + - uuid: bd544e2d41c148f993b84ca7d1aad4a9 + name: 'Server {#SERVER}: Server group' + type: JMX + key: 'jmx["{#JMXOBJ}",group]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The name of a server group from the domain model.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: servers + - tag: server + value: '{#SERVER}' + trigger_prototypes: + - uuid: da5368f2eec040bbb05f13faa6375052 + expression: 'last(/WildFly Domain by JMX/jmx["{#JMXOBJ}",group],#1)<>last(/WildFly Domain by JMX/jmx["{#JMXOBJ}",group],#2) and length(last(/WildFly Domain by JMX/jmx["{#JMXOBJ}",group]))>0' + name: 'WildFly Domain: Server {#SERVER}: Server group has changed' + event_name: 'WildFly Domain: Server {#SERVER}: Server group has changed (new group: {ITEM.VALUE})' + priority: INFO + description: 'Server group has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 64a8a71b3d254a479ce4e5ea82f566ee + name: 'Server {#SERVER}: Status' + type: JMX + key: 'jmx["{#JMXOBJ}",status]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The current status of the server.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: servers + - tag: server + value: '{#SERVER}' + trigger_prototypes: + - uuid: 79409a9fae6442c9ad655655a752365d + expression: 'last(/WildFly Domain by JMX/jmx["{#JMXOBJ}",status],#1)<>last(/WildFly Domain by JMX/jmx["{#JMXOBJ}",status],#2) and length(last(/WildFly Domain by JMX/jmx["{#JMXOBJ}",status]))>0' + name: 'WildFly Domain: Server {#SERVER}: Server status has changed' + event_name: 'WildFly Domain: Server {#SERVER}: Server status has changed (new status: {ITEM.VALUE})' + priority: WARNING + description: 'Server status has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + lld_macro_paths: + - lld_macro: '{#JMXOBJ}' + path: $.object + - lld_macro: '{#SERVER}' + path: '$.properties.["server-config"]' + tags: + - tag: class + value: application + - tag: target + value: wildfly-domain + macros: + - macro: '{$WILDFLY.DEPLOYMENT.MATCHES}' + value: '.*' + description: 'Filter of discoverable deployments' + - macro: '{$WILDFLY.DEPLOYMENT.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered deployments' + - macro: '{$WILDFLY.JMX.PROTOCOL}' + value: remote+http + - macro: '{$WILDFLY.PASSWORD}' + value: zabbix + - macro: '{$WILDFLY.SERVER.MATCHES}' + value: '.*' + description: 'Filter of discoverable servers' + - macro: '{$WILDFLY.SERVER.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered servers' + - macro: '{$WILDFLY.USER}' + value: zabbix + valuemaps: + - uuid: e23e06cfd0ce4e069b9d996f101f6ee6 + name: 'WildFly flag' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' diff --git a/WildFly_Server_by_JMX.yaml b/WildFly_Server_by_JMX.yaml new file mode 100644 index 0000000..19ff422 --- /dev/null +++ b/WildFly_Server_by_JMX.yaml @@ -0,0 +1,1528 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 2bf5827343f0420792ad953f290baa05 + template: 'WildFly Server by JMX' + name: 'WildFly Server by JMX' + description: | + Official JMX Template for WildFly. + The metrics are collected by JMX. This template works with standalone and domain instances. + You can set {$WILDFLY.USER} and {$WILDFLY.PASSWORD} macros in the template for using on the host level. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: 9b9fce7f4b4945fea45feaa5b213c186 + name: Uptime + type: JMX + key: 'jmx["java.lang:type=Runtime","Uptime"]' + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'WildFly server uptime.' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + triggers: + - uuid: 8a4fab49eb1e4ebbb1459d9b0f848771 + expression: 'nodata(/WildFly Server by JMX/jmx["java.lang:type=Runtime","Uptime"],15m)=1' + name: 'WildFly Server: Failed to fetch info data' + event_name: 'WildFly Server: Failed to fetch info data (or no data for 15m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 15 minutes' + tags: + - tag: scope + value: availability + - uuid: 71db189440ec4355aa06262e3200d47e + expression: 'last(/WildFly Server by JMX/jmx["java.lang:type=Runtime","Uptime"])<10m' + name: 'WildFly Server: Host has been restarted' + event_name: 'WildFly Server: {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: daf104c5cafe4879b79fb30fca99c838 + name: 'Launch type' + type: JMX + key: 'jmx["jboss.as:management-root=server","launchType"]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The manner in which the server process was launched. Either "DOMAIN" for a domain mode server launched by a Host Controller, "STANDALONE" for a standalone server launched from the command line, or "EMBEDDED" for a standalone server launched as an embedded part of an application running in the same virtual machine.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + - uuid: b3c30ba00ac54677a944cda7ec8536af + name: Name + type: JMX + key: 'jmx["jboss.as:management-root=server","name"]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: | + For standalone mode: The name of this server. If not set, defaults to the runtime value of InetAddress.getLocalHost().getHostName(). + For domain mode: The name given to this domain. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + - uuid: 98dd8a8de5f240998bebaf28c8d1bbe2 + name: 'Process type' + type: JMX + key: 'jmx["jboss.as:management-root=server","processType"]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The type of process represented by this root resource.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + - uuid: 0238c33ca0f045a7b1376cd5b3048bf0 + name: Version + type: JMX + key: 'jmx["jboss.as:management-root=server","productVersion"]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The version of the WildFly Core based product release.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + triggers: + - uuid: 2923ab6f81d64579b6ba778bc0467042 + expression: 'last(/WildFly Server by JMX/jmx["jboss.as:management-root=server","productVersion"],#1)<>last(/WildFly Server by JMX/jmx["jboss.as:management-root=server","productVersion"],#2) and length(last(/WildFly Server by JMX/jmx["jboss.as:management-root=server","productVersion"]))>0' + name: 'WildFly Server: Version has changed' + event_name: 'WildFly Server: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'WildFly version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 855c96cf1b3d4ef691f7693ba5f8357f + name: 'Runtime configuration state' + type: JMX + key: 'jmx["jboss.as:management-root=server","runtimeConfigurationState"]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The current persistent configuration state, one of starting, ok, reload-required, restart-required, stopping or stopped.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + triggers: + - uuid: c5702304641748e4bb04be89f3a38326 + expression: 'find(/WildFly Server by JMX/jmx["jboss.as:management-root=server","runtimeConfigurationState"],,"like","ok")=0' + name: 'WildFly Server: Server needs to restart for configuration change.' + priority: WARNING + tags: + - tag: scope + value: notice + - uuid: cd57068c6e18440a8e14c0b4fc5c6c78 + name: 'Server controller state' + type: JMX + key: 'jmx["jboss.as:management-root=server","serverState"]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The current state of the server controller; either STARTING, RUNNING, RESTART_REQUIRED, RELOAD_REQUIRED or STOPPING.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: application + triggers: + - uuid: 81de7058e3b64f73a14e03728dcf1c9b + expression: 'find(/WildFly Server by JMX/jmx["jboss.as:management-root=server","serverState"],,"like","running")=0' + name: 'WildFly Server: Server controller is not in RUNNING state' + priority: WARNING + dependencies: + - name: 'WildFly Server: Server needs to restart for configuration change.' + expression: 'find(/WildFly Server by JMX/jmx["jboss.as:management-root=server","runtimeConfigurationState"],,"like","ok")=0' + tags: + - tag: scope + value: availability + - uuid: 2986d57975334b0bbf6bd687df457c26 + name: 'Transactions: Aborted, rate' + type: JMX + key: 'jmx["jboss.as:subsystem=transactions","numberOfAbortedTransactions"]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of aborted (i.e. rolledback) transactions per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: transactions + - uuid: 035752468405481a9e0c4c60e662eadc + name: 'Transactions: Application rollbacks, rate' + type: JMX + key: 'jmx["jboss.as:subsystem=transactions","numberOfApplicationRollbacks"]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of transactions that have been rolled back by application request. This includes those that timeout, since the timeout behavior is considered an attribute of the application configuration.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: transactions + - uuid: 2c157932072e416baed45a2350a3bd66 + name: 'Transactions: Committed, rate' + type: JMX + key: 'jmx["jboss.as:subsystem=transactions","numberOfCommittedTransactions"]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of committed transactions.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: transactions + - uuid: 82958fc3169c42d2bb0c9dc29e341b8f + name: 'Transactions: Heuristics, rate' + type: JMX + key: 'jmx["jboss.as:subsystem=transactions","numberOfHeuristics"]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of transactions which have terminated with heuristic outcomes.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: transactions + - uuid: 50ba79375dbf48c8b86c3d8654576186 + name: 'Transactions: Current' + type: JMX + key: 'jmx["jboss.as:subsystem=transactions","numberOfInflightTransactions"]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of transactions that have begun but not yet terminated.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: transactions + - uuid: 6ca1501ec2904b7b875d2f9bfa127e10 + name: 'Transactions: Nested, rate' + type: JMX + key: 'jmx["jboss.as:subsystem=transactions","numberOfNestedTransactions"]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The total number of nested (sub) transactions created.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: transactions + - uuid: b1f782b6d71b4cc698a3f0d3b9d03a8d + name: 'Transactions: ResourceRollbacks, rate' + type: JMX + key: 'jmx["jboss.as:subsystem=transactions","numberOfResourceRollbacks"]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of transactions that rolled back due to resource (participant) failure.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: transactions + - uuid: 6ca6b59da5da4d7cb6fbacd2bdd37996 + name: 'Transactions: System rollbacks, rate' + type: JMX + key: 'jmx["jboss.as:subsystem=transactions","numberOfSystemRollbacks"]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of transactions that have been rolled back due to internal system errors.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: transactions + - uuid: 90f1a21c335b42928455d31635bfd11d + name: 'Transactions: Timed out, rate' + type: JMX + key: 'jmx["jboss.as:subsystem=transactions","numberOfTimedOutTransactions"]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of transactions that have rolled back due to timeout.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: transactions + - uuid: a0c40292c62e4d51a96db3e07967b17c + name: 'Transactions: Total, rate' + type: JMX + key: 'jmx["jboss.as:subsystem=transactions","numberOfTransactions"]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The total number of transactions (top-level and nested) created per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: transactions + discovery_rules: + - uuid: 9dbbe152925245f8a1f3bf5c32ae49c0 + name: 'Deployments discovery' + type: JMX + key: 'jmx.get[beans,"jboss.as.expr:deployment=*"]' + delay: 1h + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + filter: + evaltype: AND + conditions: + - macro: '{#DEPLOYMENT}' + value: '{$WILDFLY.DEPLOYMENT.MATCHES}' + formulaid: A + - macro: '{#DEPLOYMENT}' + value: '{$WILDFLY.DEPLOYMENT.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery deployments metrics.' + item_prototypes: + - uuid: 52d99e3f76b4464fbf47271243682d05 + name: 'Deployment [{#DEPLOYMENT}]: Enabled time' + type: JMX + key: 'jmx["{#JMXOBJ}",enabledTime]' + units: unixtime + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'Indicates if the deployment is managed (aka uses the ContentRepository).' + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: deployments + - tag: deployment + value: '{#DEPLOYMENT}' + - uuid: 8942cf5bc803401cac2f4d9ea943f1fe + name: 'Deployment [{#DEPLOYMENT}]: Enabled' + type: JMX + key: 'jmx["{#JMXOBJ}",enabled]' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'Boolean indicating whether the deployment content is currently deployed in the runtime (or should be deployed in the runtime the next time the server starts).' + valuemap: + name: 'WildFly flag' + preprocessing: + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: deployments + - tag: deployment + value: '{#DEPLOYMENT}' + - uuid: f633e596ddcc4620a193243c80a6633b + name: 'Deployment [{#DEPLOYMENT}]: Managed' + type: JMX + key: 'jmx["{#JMXOBJ}",managed]' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'Indicates if the deployment is managed (aka uses the ContentRepository).' + valuemap: + name: 'WildFly flag' + preprocessing: + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: deployments + - tag: deployment + value: '{#DEPLOYMENT}' + - uuid: 498f0d31a5044b91b4aa8af621011919 + name: 'Deployment [{#DEPLOYMENT}]: Persistent' + type: JMX + key: 'jmx["{#JMXOBJ}",persistent]' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'Indicates if the deployment is managed (aka uses the ContentRepository).' + valuemap: + name: 'WildFly flag' + preprocessing: + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: deployments + - tag: deployment + value: '{#DEPLOYMENT}' + - uuid: d5dd67dc20c54ef1921da9c9a068ad29 + name: 'Deployment [{#DEPLOYMENT}]: Status' + type: JMX + key: 'jmx["{#JMXOBJ}",status]' + value_type: CHAR + trends: '0' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: | + The current runtime status of a deployment. + Possible status modes are OK, FAILED, and STOPPED. + FAILED indicates a dependency is missing or a service could not start. + STOPPED indicates that the deployment was not enabled or was manually stopped. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: deployments + - tag: deployment + value: '{#DEPLOYMENT}' + trigger_prototypes: + - uuid: 6b432b25debe4277a971bc8a906e07b1 + expression: 'last(/WildFly Server by JMX/jmx["{#JMXOBJ}",status],#1)<>last(/WildFly Server by JMX/jmx["{#JMXOBJ}",status],#2) and length(last(/WildFly Server by JMX/jmx["{#JMXOBJ}",status]))>0' + name: 'WildFly Server: Deployment [{#DEPLOYMENT}]: Deployment status has changed' + event_name: 'WildFly Server: Deployment [{#DEPLOYMENT}]: Deployment status has changed (new status: {ITEM.VALUE})' + priority: WARNING + description: 'Deployment status has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + lld_macro_paths: + - lld_macro: '{#DEPLOYMENT}' + path: $.properties.deployment + - lld_macro: '{#JMXOBJ}' + path: $.object + - uuid: 8e3d5fe1a5a348169c15217bd083abf5 + name: 'JDBC metrics discovery' + type: JMX + key: 'jmx.get[beans,"jboss.as:subsystem=datasources,data-source=*,statistics=jdbc"]' + delay: 1h + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + item_prototypes: + - uuid: 6c0c0f94300148eda82224da1bc73bd1 + name: '{#JMX_DATA_SOURCE}: Cache access, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheAccessCount]' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of times that the statement cache was accessed per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: cache + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 0857fb4d2d2447a0b0dede21bb4b4bd5 + name: '{#JMX_DATA_SOURCE}: Cache add, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheAddCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of statements added to the statement cache per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: cache + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: bf368224ed444311ae1af4098c4bdb1f + name: '{#JMX_DATA_SOURCE}: Cache current size' + type: JMX + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheCurrentSize]' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of prepared and callable statements currently cached in the statement cache.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: cache + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 9c08f05299774a538a52be2c11e62cda + name: '{#JMX_DATA_SOURCE}: Cache delete, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheDeleteCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of statements discarded from the cache per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: cache + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: dbe7bc3d9a8a46c6a84b956f0a9e33be + name: '{#JMX_DATA_SOURCE}: Cache hit, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheHitCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of times that statements from the cache were used per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: cache + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 0e81a30b802941c4bc0e34a10a8d0573 + name: '{#JMX_DATA_SOURCE}: Cache miss, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheMissCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of times that a statement request could not be satisfied with a statement from the cache per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: cache + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 81dbce02ad4d492ebebd1a205bea1b43 + name: '{#JMX_DATA_SOURCE}: Statistics enabled' + type: JMX + key: 'jmx["{#JMXOBJ}",statisticsEnabled, "JDBC"]' + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'Define whether runtime statistics are enabled or not.' + valuemap: + name: 'WildFly flag' + preprocessing: + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + trigger_prototypes: + - uuid: 2996a48892a640d69154de332c673755 + expression: 'last(/WildFly Server by JMX/jmx["{#JMXOBJ}",statisticsEnabled, "JDBC"])=0' + name: 'WildFly Server: {#JMX_DATA_SOURCE}: JDBC monitoring statistic is not enabled' + priority: INFO + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 322b26787ab444db90a1be3da2717dd2 + name: '{#JMX_DATA_SOURCE}: Cache operations' + graph_items: + - color: 199C0D + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheAddCount]' + - sortorder: '1' + color: F63100 + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheAccessCount]' + - sortorder: '2' + color: 00611C + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheDeleteCount]' + - sortorder: '3' + color: F7941D + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheHitCount]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",PreparedStatementCacheMissCount]' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + lld_macro_paths: + - lld_macro: '{#JMXOBJ}' + path: $.object + - lld_macro: '{#JMX_DATA_SOURCE}' + path: '$.properties.["data-source"]' + - uuid: f8fd6899dafb4247853bd3ed3fbabd48 + name: 'Pools metrics discovery' + type: JMX + key: 'jmx.get[beans,"jboss.as:subsystem=datasources,data-source=*,statistics=pool"]' + delay: 1h + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + item_prototypes: + - uuid: 06d61e390b0e403e81b1eaa77815cde2 + name: '{#JMX_DATA_SOURCE}: Connections: Active' + type: JMX + key: 'jmx["{#JMXOBJ}",ActiveCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of open connections.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + trigger_prototypes: + - uuid: ea551068ebd04d349eba3f45a72f2610 + expression: 'max(/WildFly Server by JMX/jmx["{#JMXOBJ}",ActiveCount],5m)=0' + name: 'WildFly Server: {#JMX_DATA_SOURCE}: There are no active connections for 5m' + priority: WARNING + tags: + - tag: scope + value: capacity + - uuid: 64565b71c26b463d8ea83ee5ee18284f + name: '{#JMX_DATA_SOURCE}: Connections: Available' + type: JMX + key: 'jmx["{#JMXOBJ}",AvailableCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The available count.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: adf534b46aba4f28acea58ea46197edd + name: '{#JMX_DATA_SOURCE}: Blocking time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",AverageBlockingTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'Average Blocking Time for pool.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 788691ba487e422a913d408361f99e4d + name: '{#JMX_DATA_SOURCE}: Connections: Creating time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",AverageCreationTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time spent creating a physical connection.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 52320ebbe70244e3ad52b0766cd03d8d + name: '{#JMX_DATA_SOURCE}: Connections: Get time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",AverageGetTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time spent obtaining a physical connection.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: c3a313b3d1c34e6b99ae73d5195e7fac + name: '{#JMX_DATA_SOURCE}: Connections: Pool time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",AveragePoolTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time for a physical connection spent in the pool.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: a76602ba784a4d40a3672a80487c878a + name: '{#JMX_DATA_SOURCE}: Connections: Usage time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",AverageUsageTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time spent using a physical connection' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: ba111d0ad76848c39c54ffc37d04e561 + name: '{#JMX_DATA_SOURCE}: Connections: Blocking failure, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",BlockingFailureCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of failures trying to obtain a physical connection per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: c01eb89708224899a9ac8e90ee79bcca + name: '{#JMX_DATA_SOURCE}: Connections: Created, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",CreatedCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The created per second' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 606ed51ce8e549c7af20d7c1c5f78e6e + name: '{#JMX_DATA_SOURCE}: Connections: Destroyed, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",DestroyedCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The destroyed count.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: a02eb0060fbb4f598d654d93c286c543 + name: '{#JMX_DATA_SOURCE}: Connections: Idle' + type: JMX + key: 'jmx["{#JMXOBJ}",IdleCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of physical connections currently idle.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: a5eed78c02274f6180eb667091087ce0 + name: '{#JMX_DATA_SOURCE}: Connections: In use' + type: JMX + key: 'jmx["{#JMXOBJ}",InUseCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of physical connections currently in use.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 2f3e82a1c2f2472f95e4a85e3b182739 + name: '{#JMX_DATA_SOURCE}: Connections: Used, max' + type: JMX + key: 'jmx["{#JMXOBJ}",MaxUsedCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The maximum number of connections used.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: fb9a55168c8a4082a19f846ca10adc85 + name: '{#JMX_DATA_SOURCE}: Statistics enabled' + type: JMX + key: 'jmx["{#JMXOBJ}",statisticsEnabled]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'Define whether runtime statistics are enabled or not.' + valuemap: + name: 'WildFly flag' + preprocessing: + - type: BOOL_TO_DECIMAL + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + trigger_prototypes: + - uuid: 4ea71ba3572647b29a60077bc511052a + expression: 'last(/WildFly Server by JMX/jmx["{#JMXOBJ}",statisticsEnabled])=0' + name: 'WildFly Server: {#JMX_DATA_SOURCE}: Pools monitoring statistic is not enabled' + priority: INFO + description: 'Zabbix has not received data for items for the last 15 minutes' + tags: + - tag: scope + value: notice + - uuid: 727ff33cec8e4223bc5054c53d0de88b + name: '{#JMX_DATA_SOURCE}: Connections: Timed out, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",TimedOut]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The timed out connections per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + trigger_prototypes: + - uuid: d70d1703fdc64926abe602324814ea4c + expression: 'last(/WildFly Server by JMX/jmx["{#JMXOBJ}",TimedOut])>0' + name: 'WildFly Server: {#JMX_DATA_SOURCE}: There are timeout connections' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 4832c8d39e0d4329af6876c594a3d741 + name: '{#JMX_DATA_SOURCE}: Connections: Wait' + type: JMX + key: 'jmx["{#JMXOBJ}",WaitCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of requests that had to wait to obtain a physical connection.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: connections + - tag: component + value: datasources + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + trigger_prototypes: + - uuid: 2e38504216d84f3b9fe43b0bea86e388 + expression: 'min(/WildFly Server by JMX/jmx["{#JMXOBJ}",WaitCount],5m)>{$WILDFLY.CONN.WAIT.MAX.WARN}' + name: 'WildFly Server: {#JMX_DATA_SOURCE}: Too many waiting connections' + event_name: 'WildFly Server: {#JMX_DATA_SOURCE}: Too many waiting connections (over {$WILDFLY.CONN.WAIT.MAX.WARN} for 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: c22389aa983a4cdca504e3cc41126f03 + name: '{#JMX_DATA_SOURCE}: XA: Commit time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",XACommitAverageTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time for a XAResource commit invocation.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 2510b507e62c4574af32bb0a283995e8 + name: '{#JMX_DATA_SOURCE}: XA: Commit, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",XACommitCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of XAResource commit invocations per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 6f15c885d49e4c1a89bd52b0b4ff0035 + name: '{#JMX_DATA_SOURCE}: XA: End time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",XAEndAverageTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time for a XAResource end invocation.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: c51dd8821ace4724ae965d7ca6f3ebdd + name: '{#JMX_DATA_SOURCE}: XA: End, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",XAEndCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of XAResource end invocations per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: b5028a44fa2b4347abe11177d61567e2 + name: '{#JMX_DATA_SOURCE}: XA: Forget time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",XAForgetAverageTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time for a XAResource forget invocation.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 685173455b424a5aa5463670c1718314 + name: '{#JMX_DATA_SOURCE}: XA: Forget, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",XAForgetCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of XAResource forget invocations per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 4513aff93c8a404389aaf58b28aab5b1 + name: '{#JMX_DATA_SOURCE}: XA: Prepare time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",XAPrepareAverageTime]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time for a XAResource prepare invocation.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 96c723883cfa416b9e030e5d42836de3 + name: '{#JMX_DATA_SOURCE}: XA: Prepare, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",XAPrepareCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of XAResource prepare invocations per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 30f0474a666547c39e0d793decd0be57 + name: '{#JMX_DATA_SOURCE}: XA: Recover time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",XARecoverAverageTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time for a XAResource recover invocation.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: d7a3de25f6a74c75b65bc9c83decc1ac + name: '{#JMX_DATA_SOURCE}: XA: Recover, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",XARecoverCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of XAResource recover invocations per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: bd64f91e953249e993c3c388f3382ff4 + name: '{#JMX_DATA_SOURCE}: XA: Rollback time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",XARollbackAverageTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time for a XAResource rollback invocation.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: 0c0749b041124e1ebb11396344517c01 + name: '{#JMX_DATA_SOURCE}: XA: Rollback, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",XARollbackCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of XAResource rollback invocations per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: ab9c32db31d84a46967c1f601f11f610 + name: '{#JMX_DATA_SOURCE}: XA: Start time, avg' + type: JMX + key: 'jmx["{#JMXOBJ}",XAStartAverageTime]' + value_type: FLOAT + units: s + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The average time for a XAResource start invocation.' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + - uuid: ef5b00e1dcab4addbc72a0c191e3728b + name: '{#JMX_DATA_SOURCE}: XA: Start rate' + type: JMX + key: 'jmx["{#JMXOBJ}",XAStartCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of XAResource start invocations per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: datasources + - tag: component + value: xa + - tag: datasource + value: '{#JMX_DATA_SOURCE}' + trigger_prototypes: + - uuid: 6a40b3e94cc0441abc95fe3bc94397bf + expression: 'min(/WildFly Server by JMX/jmx["{#JMXOBJ}",InUseCount],5m)/last(/WildFly Server by JMX/jmx["{#JMXOBJ}",AvailableCount])*100>{$WILDFLY.CONN.USAGE.WARN.MAX}' + name: 'WildFly Server: {#JMX_DATA_SOURCE}: Connection usage is too high' + event_name: 'WildFly Server: {#JMX_DATA_SOURCE}: Connection usage is too high (over {$WILDFLY.CONN.USAGE.WARN.MAX} in 5m)' + priority: HIGH + tags: + - tag: scope + value: capacity + graph_prototypes: + - uuid: 65db851d241b4fe4b6a5d9796d475e55 + name: '{#JMX_DATA_SOURCE}: Connections' + graph_items: + - color: 199C0D + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",ActiveCount]' + - sortorder: '1' + color: F63100 + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",AvailableCount]' + - sortorder: '2' + color: 00611C + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",InUseCount]' + - sortorder: '3' + color: F7941D + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",MaxUsedCount]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",TimedOut]' + - sortorder: '5' + color: 6C59DC + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",WaitCount]' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + lld_macro_paths: + - lld_macro: '{#JMXOBJ}' + path: $.object + - lld_macro: '{#JMX_DATA_SOURCE}' + path: '$.properties.["data-source"]' + - uuid: 0a566b1e160649cdb5fda18d3b157733 + name: 'Undertow metrics discovery' + type: JMX + key: 'jmx.get[beans,"jboss.as:subsystem=undertow,server=*,http-listener=*"]' + delay: 1h + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + item_prototypes: + - uuid: dde94dd2df61495582234d709552fe17 + name: 'Listener {#HTTP_LISTENER}: Bytes received, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",bytesReceived]' + value_type: FLOAT + units: Bps + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of bytes that have been received by this listener per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: network + - tag: component + value: undertow + - tag: http_listener + value: '{#HTTP_LISTENER}' + - tag: server + value: '{#SERVER}' + - uuid: 36451d29d7074b8ebdb3f366eeaa84df + name: 'Listener {#HTTP_LISTENER}: Bytes sent, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",bytesSent]' + value_type: FLOAT + units: Bps + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of bytes that have been sent out on this listener per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: network + - tag: component + value: undertow + - tag: http_listener + value: '{#HTTP_LISTENER}' + - tag: server + value: '{#SERVER}' + - uuid: a34cb42c703a4996ab9a4c7a08e71eeb + name: 'Listener {#HTTP_LISTENER}: Errors, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",errorCount]' + value_type: FLOAT + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of 500 responses that have been sent by this listener per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: undertow + - tag: http_listener + value: '{#HTTP_LISTENER}' + - tag: server + value: '{#SERVER}' + trigger_prototypes: + - uuid: 504b88b04a204335a10f56cc3d852ba5 + expression: 'last(/WildFly Server by JMX/jmx["{#JMXOBJ}",errorCount])>0' + name: 'WildFly Server: Listener {#HTTP_LISTENER}: There are 500 responses by this listener.' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 2e7a581b104a4d4a8a0d9235b899635a + name: 'Listener {#HTTP_LISTENER}: Requests, rate' + type: JMX + key: 'jmx["{#JMXOBJ}",requestCount]' + value_type: FLOAT + units: Rps + username: '{$WILDFLY.USER}' + password: '{$WILDFLY.PASSWORD}' + description: 'The number of requests this listener has served per second.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + tags: + - tag: component + value: undertow + - tag: http_listener + value: '{#HTTP_LISTENER}' + - tag: server + value: '{#SERVER}' + graph_prototypes: + - uuid: 980c07db8fc5450db560a94df1250bf5 + name: 'Listener {#HTTP_LISTENER}: Requests' + graph_items: + - color: 199C0D + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",requestCount]' + - sortorder: '1' + color: F63100 + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",errorCount]' + - uuid: 7d982b6efde6432f9d3f96a4300eae00 + name: 'Listener {#HTTP_LISTENER}: Throughput' + graph_items: + - color: 199C0D + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",bytesReceived]' + - sortorder: '1' + color: F63100 + item: + host: 'WildFly Server by JMX' + key: 'jmx["{#JMXOBJ}",bytesSent]' + jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}' + lld_macro_paths: + - lld_macro: '{#HTTP_LISTENER}' + path: '$.properties.["http-listener"]' + - lld_macro: '{#JMXOBJ}' + path: $.object + - lld_macro: '{#SERVER}' + path: '$.properties.["server"]' + tags: + - tag: class + value: application + - tag: target + value: wildfly-server + macros: + - macro: '{$WILDFLY.CONN.USAGE.WARN.MAX}' + value: '80' + description: 'The maximum connection usage percent for trigger expression.' + - macro: '{$WILDFLY.CONN.WAIT.MAX.WARN}' + value: '300' + description: 'The maximum number of waiting connections for trigger expression.' + - macro: '{$WILDFLY.DEPLOYMENT.MATCHES}' + value: '.*' + description: 'Filter of discoverable deployments' + - macro: '{$WILDFLY.DEPLOYMENT.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered deployments' + - macro: '{$WILDFLY.JMX.PROTOCOL}' + value: remote+http + - macro: '{$WILDFLY.PASSWORD}' + value: zabbix + - macro: '{$WILDFLY.USER}' + value: zabbix + valuemaps: + - uuid: 4004b5f2501f44a69dc86afce3daa4d1 + name: 'WildFly flag' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + graphs: + - uuid: 69e213dfd33d49a8b057068a89e4cef1 + name: 'WildFly: Transactions' + graph_items: + - color: 199C0D + item: + host: 'WildFly Server by JMX' + key: 'jmx["jboss.as:subsystem=transactions","numberOfTimedOutTransactions"]' + - sortorder: '1' + color: F63100 + item: + host: 'WildFly Server by JMX' + key: 'jmx["jboss.as:subsystem=transactions","numberOfSystemRollbacks"]' + - sortorder: '2' + color: 00611C + item: + host: 'WildFly Server by JMX' + key: 'jmx["jboss.as:subsystem=transactions","numberOfResourceRollbacks"]' + - sortorder: '3' + color: F7941D + item: + host: 'WildFly Server by JMX' + key: 'jmx["jboss.as:subsystem=transactions","numberOfNestedTransactions"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'WildFly Server by JMX' + key: 'jmx["jboss.as:subsystem=transactions","numberOfHeuristics"]' + - sortorder: '5' + color: 6C59DC + item: + host: 'WildFly Server by JMX' + key: 'jmx["jboss.as:subsystem=transactions","numberOfCommittedTransactions"]' + - sortorder: '6' + color: C7A72D + item: + host: 'WildFly Server by JMX' + key: 'jmx["jboss.as:subsystem=transactions","numberOfApplicationRollbacks"]' + - sortorder: '7' + color: BA2A5D + item: + host: 'WildFly Server by JMX' + key: 'jmx["jboss.as:subsystem=transactions","numberOfAbortedTransactions"]' + - sortorder: '8' + color: F230E0 + item: + host: 'WildFly Server by JMX' + key: 'jmx["jboss.as:subsystem=transactions","numberOfTransactions"]' diff --git a/Windows_by_SNMP.yaml b/Windows_by_SNMP.yaml new file mode 100644 index 0000000..5f56aec --- /dev/null +++ b/Windows_by_SNMP.yaml @@ -0,0 +1,2103 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: f9a59315c8944853bb91c0a9ec3056d7 + template: 'Windows by SNMP' + name: 'Windows by SNMP' + description: | + This is an official Windows template. It requires an SNMP client. + + MIBs used: + HOST-RESOURCES-MIB + SNMPv2-MIB + IF-MIB + + Known Issues: + + Description: + 64-bit I/O is not supported even though `IfxTable` is present. + Currently, Windows gets its interface status from MIB-2. Since these 64-bit SNMP counters (`ifHCInOctets`, `ifHCOutOctets`, etc.) are defined as an extension to IF-MIB, Microsoft has not implemented it. + Version: Win2008, Win2012R2. + + Description: MIB is not supported + Version: WindowsXP + + Description: EtherLike MIB is not supported + Version: any + + Description: + HOST-RESOURCES-MIB::hrStorageSize is limited to number 2147483647. + Storage size is calculated using: `hrStorageSize` and `hrStorageAllocationUnits`. + Allocation size of 512 bytes, sets the limit of monitored device to 1TB. + Version: any + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: d751b3ead8cd4509a3f87c9bb4c89f00 + name: 'ICMP ping' + type: SIMPLE + key: icmpping + description: | + The host accessibility by ICMP ping. + + 0 - ICMP ping fails; + 1 - ICMP ping successful. + valuemap: + name: 'Service state' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: 08e22bd77606469d9e03183ec70dc89d + expression: 'max(/Windows by SNMP/icmpping,#3)=0' + name: 'Windows: Unavailable by ICMP ping' + priority: HIGH + description: 'Last three attempts returned timeout. Please check device connectivity.' + tags: + - tag: scope + value: availability + - uuid: 9e311b1e5e8841da85c5ec6145d9c75f + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + value_type: FLOAT + units: '%' + description: 'The percentage of lost packets.' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fa81e50132464ec486ea72929d18d778 + expression: 'min(/Windows by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Windows by SNMP/icmppingloss,5m)<100' + name: 'Windows: High ICMP ping loss' + opdata: 'Loss: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'ICMP packets loss detected.' + dependencies: + - name: 'Windows: Unavailable by ICMP ping' + expression: 'max(/Windows by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: fba6328e6e6240f28c1b901a9c2fc376 + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + value_type: FLOAT + units: s + description: 'The ICMP ping response time (in seconds).' + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: fba819f734de4b469fb7851501e55b21 + expression: 'avg(/Windows by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' + name: 'Windows: High ICMP ping response time' + opdata: 'Value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Average ICMP response time is too high.' + dependencies: + - name: 'Windows: High ICMP ping loss' + expression: 'min(/Windows by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Windows by SNMP/icmppingloss,5m)<100' + - name: 'Windows: Unavailable by ICMP ping' + expression: 'max(/Windows by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 649fb89829c04fe9bec44e942aeb2b42 + name: 'Windows: SNMP walk network interfaces' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.10,1.3.6.1.2.1.2.2.1.16,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.31.1.1.1.15,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20]' + key: net.if.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'Discovering interfaces from IF-MIB.' + tags: + - tag: component + value: raw + - uuid: b75c480b7ec648a5b2762b20fc5c2ed8 + name: 'SNMP traps (fallback)' + type: SNMP_TRAP + key: snmptrap.fallback + delay: '0' + value_type: LOG + trends: '0' + description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' + logtimefmt: 'hh:mm:sszyyyy/MM/dd' + tags: + - tag: component + value: network + - uuid: dd26c7a0a46240279bb907b8a1253029 + name: 'System contact details' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: 'system.contact[sysContact.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 16a592f6b9f64403999f92d677f1cd2e + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'discovery[{#CPU.UTIL},1.3.6.1.2.1.25.3.3.1.2]' + key: system.cpu.util + value_type: FLOAT + units: '%' + description: | + MIB: HOST-RESOURCES-MIB + The average, over the last minute, of the percentage of time that processors was not idle. + Implementations may approximate this one minute smoothing period if necessary. + preprocessing: + - type: JSONPATH + parameters: + - '$..[''{#CPU.UTIL}''].avg()' + tags: + - tag: component + value: cpu + triggers: + - uuid: ad2261f1ab77449cb1279725e8cf02f9 + expression: 'min(/Windows by SNMP/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + name: 'Windows: High CPU utilization' + event_name: 'Windows: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: e95e030765e84abfa5a51194e81ac719 + name: 'System description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: 'system.descr[sysDescr.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + A textual description of the entity. This value should + include the full name and version identification of the system's hardware type, software operating-system, and + networking software. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 422d9e4a985347959d5ef07278a6a12c + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: 'system.hw.uptime[hrSystemUptime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: d19b9bfdfe7344a28eaf69a1b7961adb + name: 'System location' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: 'system.location[sysLocation.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 9feb2f561b3d4356bc6ef2cac955a495 + name: 'System name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: system.name + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + triggers: + - uuid: e257b5cf5d9949028c690722e4153612 + expression: 'last(/Windows by SNMP/system.name,#1)<>last(/Windows by SNMP/system.name,#2) and length(last(/Windows by SNMP/system.name))>0' + name: 'Windows: System name has changed' + event_name: 'Windows: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - tag: scope + value: security + - uuid: af7f47f4cf884282bbd9d296ba61b1c2 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: 'system.net.uptime[sysUpTime.0]' + delay: 30s + trends: '0' + units: uptime + description: | + MIB: SNMPv2-MIB + Time (in hundredths of a second) since the network management portion of the system was last re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: c9e67b57c15747e8ab4f67e24837ce49 + name: 'System object ID' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.2.0]' + key: 'system.objectid[sysObjectID.0]' + delay: 15m + value_type: CHAR + trends: '0' + description: | + MIB: SNMPv2-MIB + The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: bab2a178a60c4dddae8f11f8be344339 + name: 'Windows: SNMP walk mounted filesystems' + type: SNMP_AGENT + snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]' + key: vfs.fs.walk + history: '0' + value_type: TEXT + trends: '0' + description: 'HOST-RESOURCES-MIB::hrStorage discovery.' + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - hrStorageType + - 1.3.6.1.2.1.25.2.3.1.2 + - '0' + - hrStorageDescr + - 1.3.6.1.2.1.25.2.3.1.3 + - '0' + - hrStorageAllocationUnits + - 1.3.6.1.2.1.25.2.3.1.4 + - '0' + - hrStorageSize + - 1.3.6.1.2.1.25.2.3.1.5 + - '0' + - hrStorageUsed + - 1.3.6.1.2.1.25.2.3.1.6 + - '0' + tags: + - tag: component + value: raw + - uuid: 4863042ade2143a0b34e1fc9403742b0 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + description: | + Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - not available + 1 - available + 2 - unknown + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: a20254c09f7a4d4d9793da7b075121f3 + expression: 'max(/Windows by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'Windows: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + dependencies: + - name: 'Windows: Unavailable by ICMP ping' + expression: 'max(/Windows by SNMP/icmpping,#3)=0' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: 3c6bc0ce8a4c4452a3bd0c0c67a6995c + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.MATCHES}' + formulaid: A + - macro: '{#IFADMINSTATUS}' + value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: C + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: E + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: G + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: H + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.MATCHES}' + formulaid: I + - macro: '{#IFOPERSTATUS}' + value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: J + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.MATCHES}' + formulaid: K + - macro: '{#IFTYPE}' + value: '{$NET.IF.IFTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: L + description: 'Discovering interfaces from IF-MIB.' + item_prototypes: + - uuid: 9208bd833e4044f395ac14c8213885de + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: DEPENDENT + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of inbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 758aca2642c146ddad89ed9934077533 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: DEPENDENT + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 713b5c5067174b90b686737606616664 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: DEPENDENT + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface,including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and another times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 2d76edd04b2c4d35a15fc04749edfedc + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: DEPENDENT + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + The number of outbound packets which were chosen to be discarded + even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. + One possible reason for discarding such a packet could be to free up buffer space. + Discontinuities in the value of this counter can occur at re-initialization of the management system, + and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 40fe302325ff452997f34cb05d517c59 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: DEPENDENT + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + delay: '0' + description: | + MIB: IF-MIB + For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3m + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 48652cf9a87142d39df11617f354df36 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: DEPENDENT + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + delay: '0' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.16.{#SNMPINDEX}' + - '0' + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 389b55d85fcc49219a055d0db005c715 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' + delay: '0' + trends: '0' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`. + For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. + For a sub-layer which has no concept of bandwidth, this object should be zero. + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' + - '0' + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 71e55a8fd22c443e8a39a44c4c22433b + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The current operational state of the interface. + - The testing(3) state indicates that no operational packet scan be passed + - If ifAdminStatus is down(2) then ifOperStatus should be down(2) + - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic + - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) + - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state + - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. + valuemap: + name: 'IF-MIB::ifOperStatus' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' + - '0' + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 101b888ea92348689bbc499bbe15b212 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: ad62c98e35b24d0082c07ea4543963ad + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type[ifType.{#SNMPINDEX}]' + delay: '0' + trends: '0' + description: | + MIB: IF-MIB + The type of interface. + Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), + through updating the syntax of the IANAifType textual convention. + valuemap: + name: 'IF-MIB::ifType' + preprocessing: + - type: SNMP_WALK_VALUE + parameters: + - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: net.if.walk + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: fe3e2d20c6eb475ba9f0e8f0c5766720 + expression: | + change(/Windows by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Windows by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + and ( + last(/Windows by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or + last(/Windows by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or + last(/Windows by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or + last(/Windows by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or + last(/Windows by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or + last(/Windows by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117 + ) + and + (last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + (change(/Windows by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Windows by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or + (last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 5ab179badc3747438cf988c437b7b735 + expression: | + (avg(/Windows by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Windows by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or + avg(/Windows by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Windows by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and + last(/Windows by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Windows by SNMP/net.if.in[ifInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Windows by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and + avg(/Windows by SNMP/net.if.out[ifOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Windows by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 8acdf247d86b4b2785c92266291682ac + expression: | + min(/Windows by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Windows by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Windows by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Windows by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' + recovery_expression: 'last(/Windows by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 616105fbea704079b1257feb370367a5 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Windows by SNMP' + key: 'net.if.in[ifInOctets.{#SNMPINDEX}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Windows by SNMP' + key: 'net.if.out[ifOutOctets.{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Windows by SNMP' + key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Windows by SNMP' + key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Windows by SNMP' + key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Windows by SNMP' + key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' + master_item: + key: net.if.walk + preprocessing: + - type: SNMP_WALK_TO_JSON + parameters: + - '{#IFOPERSTATUS}' + - 1.3.6.1.2.1.2.2.1.8 + - '0' + - '{#IFADMINSTATUS}' + - 1.3.6.1.2.1.2.2.1.7 + - '0' + - '{#IFALIAS}' + - 1.3.6.1.2.1.31.1.1.1.18 + - '0' + - '{#IFNAME}' + - 1.3.6.1.2.1.31.1.1.1.1 + - '0' + - '{#IFDESCR}' + - 1.3.6.1.2.1.2.2.1.2 + - '0' + - '{#IFTYPE}' + - 1.3.6.1.2.1.2.2.1.3 + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b2c0a897e22d438f8b1bbff44e493b13 + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: 'vfs.fs.discovery[snmp]' + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' + item_prototypes: + - uuid: 1524fab7760340b1a6eb8f5368d11edd + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.pused[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'The space utilization expressed in % for {#FSNAME}.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var obj = JSON.parse(value); + + var total = obj["hrStorageSize"]; + var used = obj["hrStorageUsed"]; + + if (total <= 0) { + return 0; + } else { + return (100 * used / total); + } + master_item: + key: 'vfs.fs.walk.data[hrStorage.{#SNMPINDEX}]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + trigger_prototypes: + - uuid: 597ea2f6059746c0b2e5b7312f764224 + expression: 'min(/Windows by SNMP/vfs.fs.pused[{#SNMPINDEX}],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'Windows: FS [{#FSNAME}]: Space is critically low' + event_name: 'Windows: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: 'The storage space usage exceeds the ''{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%'' limit.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 028b24edaf9c4640a2316845f50a4a7e + expression: 'min(/Windows by SNMP/vfs.fs.pused[{#SNMPINDEX}],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'Windows: FS [{#FSNAME}]: Space is low' + event_name: 'Windows: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: 'The storage space usage exceeds the ''{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%'' limit.' + manual_close: 'YES' + dependencies: + - name: 'Windows: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/Windows by SNMP/vfs.fs.pused[{#SNMPINDEX}],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 19d244950a414faa86cbcaf0d2859cbd + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in units of hrStorageAllocationUnits. + This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. + For example, the amount of main storage allocated to a buffer pool might be modified or the amount of disk space allocated to virtual storage might be modified. + preprocessing: + - type: JSONPATH + parameters: + - $.hrStorageSize + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + master_item: + key: 'vfs.fs.walk.data[hrStorage.{#SNMPINDEX}]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 2d00ecfcea564fef8b94d293d023b709 + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: JSONPATH + parameters: + - $.hrStorageUsed + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + master_item: + key: 'vfs.fs.walk.data[hrStorage.{#SNMPINDEX}]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - uuid: 0dbd5de181fe44e1970e2f9622ad76b1 + name: 'FS [{#FSNAME}]: Get data' + type: DEPENDENT + key: 'vfs.fs.walk.data[hrStorage.{#SNMPINDEX}]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: | + HOST-RESOURCES-MIB::hrStorage. + Intermediate data for subsequent processing. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + + result = data.filter(function(obj) { + return obj["{\#SNMPINDEX}"] === "{#SNMPINDEX}"; + })[0]; + + return JSON.stringify(result); + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + graph_prototypes: + - uuid: 323304e5268b4430984706d38ac77a96 + name: 'FS [{#FSNAME}]: Space usage graph, in %' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'Windows by SNMP' + key: 'vfs.fs.pused[{#SNMPINDEX}]' + - uuid: 2c1a1d995f8646dd82739a56e411ccf4 + name: 'FS [{#FSNAME}]: Space utilization chart' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '969696' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Windows by SNMP' + key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' + - sortorder: '1' + color: C80000 + calc_fnc: LAST + item: + host: 'Windows by SNMP' + key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + lld_macro_paths: + - lld_macro: '{#ALLOC_UNITS}' + path: $.hrStorageAllocationUnits + - lld_macro: '{#FSNAME}' + path: $.hrStorageDescr + - lld_macro: '{#FSTYPE}' + path: $.hrStorageType + - lld_macro: '{#SNMPINDEX}' + path: $.index + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'hrStorageDescr': filesystem.hrStorageDescr, + 'hrStorageType': filesystem.hrStorageType, + 'hrStorageAllocationUnits': filesystem.hrStorageAllocationUnits, + 'index': filesystem['{#SNMPINDEX}'] + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 23bb0567e4194546a09da96ded5182dd + name: 'Memory discovery' + type: DEPENDENT + key: vm.memory.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#MEMNAME}' + value: '{$MEMORY.NAME.MATCHES}' + formulaid: A + - macro: '{#MEMNAME}' + value: '{$MEMORY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#MEMTYPE}' + value: '{$MEMORY.TYPE.MATCHES}' + formulaid: C + - macro: '{#MEMTYPE}' + value: '{$MEMORY.TYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'HOST-RESOURCES-MIB::hrStorage discovery with memory filter' + item_prototypes: + - uuid: ef95155004f64f9f95a794c1e5fe9131 + name: '{#MEMNAME}: Get data' + type: DEPENDENT + key: 'vm.memory.data[{#SNMPINDEX}]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var data = JSON.parse(value); + + result = data.filter(function(obj) { + return obj["{\#SNMPINDEX}"] === "{#SNMPINDEX}"; + })[0]; + + return JSON.stringify(result); + master_item: + key: vfs.fs.walk + tags: + - tag: component + value: memory + - tag: component + value: raw + - uuid: 71453175f6f54027a8e428b7438af99a + name: '{#MEMNAME}: Used' + type: DEPENDENT + key: 'vm.memory.used[hrStorageUsed.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. + preprocessing: + - type: JSONPATH + parameters: + - $.hrStorageUsed + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + master_item: + key: 'vm.memory.data[{#SNMPINDEX}]' + tags: + - tag: component + value: memory + - uuid: 5ccc66d7a78f4501b794bd46759c738b + name: '{#MEMNAME}: Utilization' + type: DEPENDENT + key: 'vm.memory.util[{#SNMPINDEX}]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Memory utilization in %.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var obj = JSON.parse(value); + + var total = obj["hrStorageSize"]; + var used = obj["hrStorageUsed"]; + + if (total <= 0) { + return 0; + } else { + return (100 * used / total); + } + master_item: + key: 'vm.memory.data[{#SNMPINDEX}]' + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: ab4b4ad08664454096f5e2cf3b7da1e9 + expression: 'min(/Windows by SNMP/vm.memory.util[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'Windows: {#MEMNAME}: High memory utilization' + event_name: 'Windows: {#MEMNAME}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: ea1c8d22d38042f7ac824d59b9d6a720 + name: '{#MEMNAME}: Total' + type: DEPENDENT + key: 'vm.memory.walk.data.total[hrStorageSize.{#SNMPINDEX}]' + delay: '0' + units: B + description: | + MIB: HOST-RESOURCES-MIB + The size of the storage represented by this entry, in units of hrStorageAllocationUnits. + This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. + For example, the amount of main memory allocated to a buffer pool might be modified or the amount of disk space allocated to virtual memory might be modified. + preprocessing: + - type: JSONPATH + parameters: + - $.hrStorageSize + - type: MULTIPLIER + parameters: + - '{#ALLOC_UNITS}' + master_item: + key: 'vm.memory.data[{#SNMPINDEX}]' + tags: + - tag: component + value: memory + graph_prototypes: + - uuid: 864bc9c487984f68b4da443b8af6c448 + name: '{#MEMNAME}: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Windows by SNMP' + key: 'vm.memory.util[{#SNMPINDEX}]' + master_item: + key: vfs.fs.walk + lld_macro_paths: + - lld_macro: '{#ALLOC_UNITS}' + path: $.hrStorageAllocationUnits + - lld_macro: '{#MEMNAME}' + path: $.hrStorageDescr + - lld_macro: '{#MEMTYPE}' + path: $.hrStorageType + - lld_macro: '{#SNMPINDEX}' + path: $.index + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'hrStorageDescr': filesystem.hrStorageDescr, + 'hrStorageType': filesystem.hrStorageType, + 'hrStorageAllocationUnits': filesystem.hrStorageAllocationUnits, + 'index': filesystem['{#SNMPINDEX}'] + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: os + - tag: target + value: windows + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'Critical threshold of CPU utilization expressed in %.' + - macro: '{$ICMP_LOSS_WARN}' + value: '20' + description: 'Warning threshold of ICMP packet loss in %.' + - macro: '{$ICMP_RESPONSE_TIME_WARN}' + value: '0.15' + description: 'Warning threshold of the average ICMP response time in seconds.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".' + - macro: '{$MEMORY.NAME.MATCHES}' + value: '.*' + description: 'Used in memory discovery. Can be overridden on the host or linked template level.' + - macro: '{$MEMORY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in memory discovery. Can be overridden on the host or linked template level if you need to filter out results.' + - macro: '{$MEMORY.TYPE.MATCHES}' + value: '.*(\.2|hrStorageRam)$' + description: 'Used in memory discovery. Can be overridden on the host or linked template level.' + - macro: '{$MEMORY.TYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in memory discovery. Can be overridden on the host or linked template level if you need to filter out results.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'The warning threshold of the "Physical memory: Memory utilization" item.' + - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' + value: '^.*$' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' + value: ^2$ + description: 'Ignore `down(2)` administrative status' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: Miniport|Virtual|Teredo|Kernel|Loopback|Bluetooth|HTTPS|6to4|QoS|Layer|isatap|ISATAP + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' + description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0` bridge by default.' + - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' + value: '^.*$' + description: 'Used for network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' + value: ^6$ + description: 'Ignore `notPresent(6)`' + - macro: '{$NET.IF.IFTYPE.MATCHES}' + value: '.*' + description: 'Used in network interface discovery rule filters.' + - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in network interface discovery rule filters.' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'Time interval for the SNMP availability trigger.' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: '.*(\.4|\.9|hrStorageFixedDisk|hrStorageFlashMemory)$' + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: e032b55da5994e3abebba924fede59ec + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by SNMP' + name: 'FS [{#FSNAME}]: Space utilization chart' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by SNMP' + name: 'FS [{#FSNAME}]: Space usage graph, in %' + - type: STRING + name: reference + value: AAAEC + - uuid: 8aeb65d3f8b645d28994cdc680c0f0fd + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by SNMP' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAA + - uuid: 3b28bdbfdb6d4cf1a69c7466a4f059f3 + name: 'System performance' + pages: + - widgets: + - type: graphprototype + width: '36' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by SNMP' + name: '{#MEMNAME}: Memory utilization' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by SNMP' + name: 'FS [{#FSNAME}]: Space utilization chart' + - type: STRING + name: reference + value: AAAEA + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Windows by SNMP' + name: 'Windows: CPU utilization' + - type: STRING + name: reference + value: AAAAB + valuemaps: + - uuid: 2357d81186e34d5b91db98c2350e0bdf + name: 'IF-MIB::ifOperStatus' + mappings: + - value: '1' + newvalue: up + - value: '2' + newvalue: down + - value: '4' + newvalue: unknown + - value: '5' + newvalue: dormant + - value: '6' + newvalue: notPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: b3f64ce647bc4647a692f2e3bafa3760 + name: 'IF-MIB::ifType' + mappings: + - value: '1' + newvalue: other + - value: '2' + newvalue: regular1822 + - value: '3' + newvalue: hdh1822 + - value: '4' + newvalue: ddnX25 + - value: '5' + newvalue: rfc877x25 + - value: '6' + newvalue: ethernetCsmacd + - value: '7' + newvalue: iso88023Csmacd + - value: '8' + newvalue: iso88024TokenBus + - value: '9' + newvalue: iso88025TokenRing + - value: '10' + newvalue: iso88026Man + - value: '11' + newvalue: starLan + - value: '12' + newvalue: proteon10Mbit + - value: '13' + newvalue: proteon80Mbit + - value: '14' + newvalue: hyperchannel + - value: '15' + newvalue: fddi + - value: '16' + newvalue: lapb + - value: '17' + newvalue: sdlc + - value: '18' + newvalue: ds1 + - value: '19' + newvalue: e1 + - value: '20' + newvalue: basicISDN + - value: '21' + newvalue: primaryISDN + - value: '22' + newvalue: propPointToPointSerial + - value: '23' + newvalue: ppp + - value: '24' + newvalue: softwareLoopback + - value: '25' + newvalue: eon + - value: '26' + newvalue: ethernet3Mbit + - value: '27' + newvalue: nsip + - value: '28' + newvalue: slip + - value: '29' + newvalue: ultra + - value: '30' + newvalue: ds3 + - value: '31' + newvalue: sip + - value: '32' + newvalue: frameRelay + - value: '33' + newvalue: rs232 + - value: '34' + newvalue: para + - value: '35' + newvalue: arcnet + - value: '36' + newvalue: arcnetPlus + - value: '37' + newvalue: atm + - value: '38' + newvalue: miox25 + - value: '39' + newvalue: sonet + - value: '40' + newvalue: x25ple + - value: '41' + newvalue: iso88022llc + - value: '42' + newvalue: localTalk + - value: '43' + newvalue: smdsDxi + - value: '44' + newvalue: frameRelayService + - value: '45' + newvalue: v35 + - value: '46' + newvalue: hssi + - value: '47' + newvalue: hippi + - value: '48' + newvalue: modem + - value: '49' + newvalue: aal5 + - value: '50' + newvalue: sonetPath + - value: '51' + newvalue: sonetVT + - value: '52' + newvalue: smdsIcip + - value: '53' + newvalue: propVirtual + - value: '54' + newvalue: propMultiplexor + - value: '55' + newvalue: ieee80212 + - value: '56' + newvalue: fibreChannel + - value: '57' + newvalue: hippiInterface + - value: '58' + newvalue: frameRelayInterconnect + - value: '59' + newvalue: aflane8023 + - value: '60' + newvalue: aflane8025 + - value: '61' + newvalue: cctEmul + - value: '62' + newvalue: fastEther + - value: '63' + newvalue: isdn + - value: '64' + newvalue: v11 + - value: '65' + newvalue: v36 + - value: '66' + newvalue: g703at64k + - value: '67' + newvalue: g703at2mb + - value: '68' + newvalue: qllc + - value: '69' + newvalue: fastEtherFX + - value: '70' + newvalue: channel + - value: '71' + newvalue: ieee80211 + - value: '72' + newvalue: ibm370parChan + - value: '73' + newvalue: escon + - value: '74' + newvalue: dlsw + - value: '75' + newvalue: isdns + - value: '76' + newvalue: isdnu + - value: '77' + newvalue: lapd + - value: '78' + newvalue: ipSwitch + - value: '79' + newvalue: rsrb + - value: '80' + newvalue: atmLogical + - value: '81' + newvalue: ds0 + - value: '82' + newvalue: ds0Bundle + - value: '83' + newvalue: bsc + - value: '84' + newvalue: async + - value: '85' + newvalue: cnr + - value: '86' + newvalue: iso88025Dtr + - value: '87' + newvalue: eplrs + - value: '88' + newvalue: arap + - value: '89' + newvalue: propCnls + - value: '90' + newvalue: hostPad + - value: '91' + newvalue: termPad + - value: '92' + newvalue: frameRelayMPI + - value: '93' + newvalue: x213 + - value: '94' + newvalue: adsl + - value: '95' + newvalue: radsl + - value: '96' + newvalue: sdsl + - value: '97' + newvalue: vdsl + - value: '98' + newvalue: iso88025CRFPInt + - value: '99' + newvalue: myrinet + - value: '100' + newvalue: voiceEM + - value: '101' + newvalue: voiceFXO + - value: '102' + newvalue: voiceFXS + - value: '103' + newvalue: voiceEncap + - value: '104' + newvalue: voiceOverIp + - value: '105' + newvalue: atmDxi + - value: '106' + newvalue: atmFuni + - value: '107' + newvalue: atmIma + - value: '108' + newvalue: pppMultilinkBundle + - value: '109' + newvalue: ipOverCdlc + - value: '110' + newvalue: ipOverClaw + - value: '111' + newvalue: stackToStack + - value: '112' + newvalue: virtualIpAddress + - value: '113' + newvalue: mpc + - value: '114' + newvalue: ipOverAtm + - value: '115' + newvalue: iso88025Fiber + - value: '116' + newvalue: tdlc + - value: '117' + newvalue: gigabitEthernet + - value: '118' + newvalue: hdlc + - value: '119' + newvalue: lapf + - value: '120' + newvalue: v37 + - value: '121' + newvalue: x25mlp + - value: '122' + newvalue: x25huntGroup + - value: '123' + newvalue: trasnpHdlc + - value: '124' + newvalue: interleave + - value: '125' + newvalue: fast + - value: '126' + newvalue: ip + - value: '127' + newvalue: docsCableMaclayer + - value: '128' + newvalue: docsCableDownstream + - value: '129' + newvalue: docsCableUpstream + - value: '130' + newvalue: a12MppSwitch + - value: '131' + newvalue: tunnel + - value: '132' + newvalue: coffee + - value: '133' + newvalue: ces + - value: '134' + newvalue: atmSubInterface + - value: '135' + newvalue: l2vlan + - value: '136' + newvalue: l3ipvlan + - value: '137' + newvalue: l3ipxvlan + - value: '138' + newvalue: digitalPowerline + - value: '139' + newvalue: mediaMailOverIp + - value: '140' + newvalue: dtm + - value: '141' + newvalue: dcn + - value: '142' + newvalue: ipForward + - value: '143' + newvalue: msdsl + - value: '144' + newvalue: ieee1394 + - value: '145' + newvalue: if-gsn + - value: '146' + newvalue: dvbRccMacLayer + - value: '147' + newvalue: dvbRccDownstream + - value: '148' + newvalue: dvbRccUpstream + - value: '149' + newvalue: atmVirtual + - value: '150' + newvalue: mplsTunnel + - value: '151' + newvalue: srp + - value: '152' + newvalue: voiceOverAtm + - value: '153' + newvalue: voiceOverFrameRelay + - value: '154' + newvalue: idsl + - value: '155' + newvalue: compositeLink + - value: '156' + newvalue: ss7SigLink + - value: '157' + newvalue: propWirelessP2P + - value: '158' + newvalue: frForward + - value: '159' + newvalue: rfc1483 + - value: '160' + newvalue: usb + - value: '161' + newvalue: ieee8023adLag + - value: '162' + newvalue: bgppolicyaccounting + - value: '163' + newvalue: frf16MfrBundle + - value: '164' + newvalue: h323Gatekeeper + - value: '165' + newvalue: h323Proxy + - value: '166' + newvalue: mpls + - value: '167' + newvalue: mfSigLink + - value: '168' + newvalue: hdsl2 + - value: '169' + newvalue: shdsl + - value: '170' + newvalue: ds1FDL + - value: '171' + newvalue: pos + - value: '172' + newvalue: dvbAsiIn + - value: '173' + newvalue: dvbAsiOut + - value: '174' + newvalue: plc + - value: '175' + newvalue: nfas + - value: '176' + newvalue: tr008 + - value: '177' + newvalue: gr303RDT + - value: '178' + newvalue: gr303IDT + - value: '179' + newvalue: isup + - value: '180' + newvalue: propDocsWirelessMaclayer + - value: '181' + newvalue: propDocsWirelessDownstream + - value: '182' + newvalue: propDocsWirelessUpstream + - value: '183' + newvalue: hiperlan2 + - value: '184' + newvalue: propBWAp2Mp + - value: '185' + newvalue: sonetOverheadChannel + - value: '186' + newvalue: digitalWrapperOverheadChannel + - value: '187' + newvalue: aal2 + - value: '188' + newvalue: radioMAC + - value: '189' + newvalue: atmRadio + - value: '190' + newvalue: imt + - value: '191' + newvalue: mvl + - value: '192' + newvalue: reachDSL + - value: '193' + newvalue: frDlciEndPt + - value: '194' + newvalue: atmVciEndPt + - value: '195' + newvalue: opticalChannel + - value: '196' + newvalue: opticalTransport + - value: '197' + newvalue: propAtm + - value: '198' + newvalue: voiceOverCable + - value: '199' + newvalue: infiniband + - value: '200' + newvalue: teLink + - value: '201' + newvalue: q2931 + - value: '202' + newvalue: virtualTg + - value: '203' + newvalue: sipTg + - value: '204' + newvalue: sipSig + - value: '205' + newvalue: docsCableUpstreamChannel + - value: '206' + newvalue: econet + - value: '207' + newvalue: pon155 + - value: '208' + newvalue: pon622 + - value: '209' + newvalue: bridge + - value: '210' + newvalue: linegroup + - value: '211' + newvalue: voiceEMFGD + - value: '212' + newvalue: voiceFGDEANA + - value: '213' + newvalue: voiceDID + - value: '214' + newvalue: mpegTransport + - value: '215' + newvalue: sixToFour + - value: '216' + newvalue: gtp + - value: '217' + newvalue: pdnEtherLoop1 + - value: '218' + newvalue: pdnEtherLoop2 + - value: '219' + newvalue: opticalChannelGroup + - value: '220' + newvalue: homepna + - value: '221' + newvalue: gfp + - value: '222' + newvalue: ciscoISLvlan + - value: '223' + newvalue: actelisMetaLOOP + - value: '224' + newvalue: fcipLink + - value: '225' + newvalue: rpr + - value: '226' + newvalue: qam + - value: '227' + newvalue: lmp + - value: '228' + newvalue: cblVectaStar + - value: '229' + newvalue: docsCableMCmtsDownstream + - value: '230' + newvalue: adsl2 + - value: '231' + newvalue: macSecControlledIF + - value: '232' + newvalue: macSecUncontrolledIF + - value: '233' + newvalue: aviciOpticalEther + - value: '234' + newvalue: atmbond + - value: '235' + newvalue: voiceFGDOS + - value: '236' + newvalue: mocaVersion1 + - value: '237' + newvalue: ieee80216WMAN + - value: '238' + newvalue: adsl2plus + - value: '239' + newvalue: dvbRcsMacLayer + - value: '240' + newvalue: dvbTdm + - value: '241' + newvalue: dvbRcsTdma + - value: '242' + newvalue: x86Laps + - value: '243' + newvalue: wwanPP + - value: '244' + newvalue: wwanPP2 + - value: '245' + newvalue: voiceEBS + - value: '246' + newvalue: ifPwType + - value: '247' + newvalue: ilan + - value: '248' + newvalue: pip + - value: '249' + newvalue: aluELP + - value: '250' + newvalue: gpon + - value: '251' + newvalue: vdsl2 + - value: '252' + newvalue: capwapDot11Profile + - value: '253' + newvalue: capwapDot11Bss + - value: '254' + newvalue: capwapWtpVirtualRadio + - value: '255' + newvalue: bits + - value: '256' + newvalue: docsCableUpstreamRfPort + - value: '257' + newvalue: cableDownstreamRfPort + - value: '258' + newvalue: vmwareVirtualNic + - value: '259' + newvalue: ieee802154 + - value: '260' + newvalue: otnOdu + - value: '261' + newvalue: otnOtu + - value: '262' + newvalue: ifVfiType + - value: '263' + newvalue: g9981 + - value: '264' + newvalue: g9982 + - value: '265' + newvalue: g9983 + - value: '266' + newvalue: aluEpon + - value: '267' + newvalue: aluEponOnu + - value: '268' + newvalue: aluEponPhysicalUni + - value: '269' + newvalue: aluEponLogicalLink + - value: '270' + newvalue: aluGponOnu + - value: '271' + newvalue: aluGponPhysicalUni + - value: '272' + newvalue: vmwareNicTeam + - value: '277' + newvalue: docsOfdmDownstream + - value: '278' + newvalue: docsOfdmaUpstream + - value: '279' + newvalue: gfast + - value: '280' + newvalue: sdci + - value: '281' + newvalue: xboxWireless + - value: '282' + newvalue: fastdsl + - value: '283' + newvalue: docsCableScte55d1FwdOob + - value: '284' + newvalue: docsCableScte55d1RetOob + - value: '285' + newvalue: docsCableScte55d2DsOob + - value: '286' + newvalue: docsCableScte55d2UsOob + - value: '287' + newvalue: docsCableNdf + - value: '288' + newvalue: docsCableNdr + - value: '289' + newvalue: ptm + - value: '290' + newvalue: ghn + - uuid: 43b61695bdf347cb8ec9bd23e7cdbc88 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - uuid: a979f49c325344e0b6c064b829a21f62 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + triggers: + - uuid: b7a0b390f8844d2aa05ee849d12495f7 + expression: '(last(/Windows by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Windows by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Windows by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Windows by SNMP/system.net.uptime[sysUpTime.0])<10m)' + name: 'Windows: Host has been restarted' + event_name: 'Windows: {HOST.NAME} has been restarted (uptime < 10m)' + priority: WARNING + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + dependencies: + - name: 'Windows: No SNMP data collection' + expression: 'max(/Windows by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + tags: + - tag: scope + value: notice + graphs: + - uuid: 1be13ea06a404fc88ced6c6a972290c8 + name: 'Windows: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Windows by SNMP' + key: system.cpu.util diff --git a/Windows_by_Zabbix_agent.yaml b/Windows_by_Zabbix_agent.yaml new file mode 100644 index 0000000..cf09c4e --- /dev/null +++ b/Windows_by_Zabbix_agent.yaml @@ -0,0 +1,1827 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: 13b06904a6bf41cbb795e3193d896340 + template: 'Windows by Zabbix agent' + name: 'Windows by Zabbix agent' + description: | + This is an official Windows template. It requires Zabbix agent 7.0 or newer. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387224-discussion-thread-for-official-zabbix-template-for-windows + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: af550a1bfe74428eb24492d8af3b405e + name: 'Host name of Zabbix agent running' + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: f81e2ce0d1104f9aaf1fc49284ed0ed4 + name: 'Zabbix agent ping' + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + - uuid: 5707443d739d4689bde192e75ff4bd0f + name: 'Version of Zabbix agent running' + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: 5219a246de0641a89685a961cdd08c0b + name: 'Cache bytes' + key: 'perf_counter_en["\Memory\Cache Bytes"]' + units: B + description: 'Cache Bytes is the sum of the Memory\\System Cache Resident Bytes, Memory\\System Driver Resident Bytes, Memory\\System Code Resident Bytes, and Memory\\Pool Paged Resident Bytes counters. This counter displays the last observed value only; it is not an average.' + tags: + - tag: component + value: memory + - uuid: 2ea74fafb9334de095adcb47cced578d + name: 'Free system page table entries' + key: 'perf_counter_en["\Memory\Free System Page Table Entries"]' + description: 'This indicates the number of page table entries not currently in use by the system. If the number is less than 5,000, there may be a memory leak or you running out of memory.' + tags: + - tag: component + value: memory + triggers: + - uuid: e3118e2e6109460f80cc2d56795ed42f + expression: 'max(/Windows by Zabbix agent/perf_counter_en["\Memory\Free System Page Table Entries"],5m)<{$MEM.PAGE_TABLE_CRIT.MIN}' + name: 'Windows: Number of free system page table entries is too low' + event_name: 'Windows: Number of free system page table entries is too low (less {$MEM.PAGE_TABLE_CRIT.MIN} for 5m)' + priority: WARNING + description: '`Memory\Free System Page Table Entries` has been less than `{$MEM.PAGE_TABLE_CRIT.MIN}` for 5 minutes. If the number is less than 5,000, there may be a memory leak.' + dependencies: + - name: 'Windows: High memory utilization' + expression: 'min(/Windows by Zabbix agent/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + tags: + - tag: scope + value: capacity + - uuid: 6c41d254585a4d7b81a0c5766a8913c1 + name: 'Memory page faults per second' + key: 'perf_counter_en["\Memory\Page Faults/sec"]' + value_type: FLOAT + description: 'Page Faults/sec is the average number of pages faulted per second. It is measured in number of pages faulted per second because only one page is faulted in each fault operation, hence this is also equal to the number of page fault operations. This counter includes both hard faults (those that require disk access) and soft faults (where the faulted page is found elsewhere in physical memory.) Most processors can handle large numbers of soft faults without significant consequence. However, hard faults, which require disk access, can cause significant delays.' + tags: + - tag: component + value: memory + - uuid: 287163bc5b0441c4bf51489432a278eb + name: 'Memory pages per second' + key: 'perf_counter_en["\Memory\Pages/sec"]' + value_type: FLOAT + description: | + This measures the rate at which pages are read from or written to disk to resolve hard page faults. + If the value is greater than 1,000, as a result of excessive paging, there may be a memory leak. + tags: + - tag: component + value: memory + triggers: + - uuid: ab4c9a66d16f42e6a32f6144f4d2a3ca + expression: 'min(/Windows by Zabbix agent/perf_counter_en["\Memory\Pages/sec"],5m)>{$MEM.PAGE_SEC.CRIT.MAX}' + name: 'Windows: The Memory Pages/sec is too high' + event_name: 'Windows: The Memory Pages/sec is too high (over {$MEM.PAGE_SEC.CRIT.MAX} for 5m)' + priority: WARNING + description: 'The Memory Pages/sec in the last 5 minutes exceeds `{$MEM.PAGE_SEC.CRIT.MAX}`. If the value is greater than 1,000, as a result of excessive paging, there may be a memory leak.' + dependencies: + - name: 'Windows: High memory utilization' + expression: 'min(/Windows by Zabbix agent/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + tags: + - tag: scope + value: capacity + - uuid: fb822cb2a17948208a61bd6661c496df + name: 'Memory pool non-paged' + key: 'perf_counter_en["\Memory\Pool Nonpaged Bytes"]' + units: B + description: | + This measures the size, in bytes, of the non-paged pool. This is an area of system memory for objects that cannot be written to disk but instead must remain in physical memory as long as they are allocated. + There is a possible memory leak if the value is greater than 175MB (or 100MB with the /3GB switch). Consequently, Event ID 2019 is recorded in the system event log. + tags: + - tag: component + value: memory + - uuid: b99a722d267d455fad3c07c53302b20f + name: 'Used swap space in %' + key: 'perf_counter_en["\Paging file(_Total)\% Usage"]' + value_type: FLOAT + units: '%' + description: 'The used space of swap volume/file in percent.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: ee1f116fdab34969a6e6f5e1c25fc3d2 + name: 'CPU DPC time' + key: 'perf_counter_en["\Processor Information(_total)\% DPC Time"]' + value_type: FLOAT + units: '%' + description: 'Processor DPC time is the time that a single processor spent receiving and servicing deferred procedure calls (DPCs). DPCs are interrupts that run at a lower priority than standard interrupts. `% DPC Time` is a component of `% Privileged Time` because DPCs are executed in privileged mode. If a high `% DPC Time` is sustained, there may be a processor bottleneck or an application or hardware related issue that can significantly diminish overall system performance.' + tags: + - tag: component + value: cpu + - uuid: e403552481b04ebdba2e8a019f114f20 + name: 'CPU interrupt time' + key: 'perf_counter_en["\Processor Information(_total)\% Interrupt Time"]' + value_type: FLOAT + units: '%' + description: 'The processor information `% Interrupt Time` counter indicates how much time the processor spends handling hardware interrupts during sample intervals. It reflects the activity of devices like the system clock, mouse, disk drivers, and network cards. A value above 20% suggests possible hardware issues.' + tags: + - tag: component + value: cpu + triggers: + - uuid: f67bedcb282349b2aac052baf4963480 + expression: 'min(/Windows by Zabbix agent/perf_counter_en["\Processor Information(_total)\% Interrupt Time"],5m)>{$CPU.INTERRUPT.CRIT.MAX}' + name: 'Windows: CPU interrupt time is too high' + event_name: 'Windows: CPU interrupt time is too high (over {$CPU.INTERRUPT.CRIT.MAX}% for 5m)' + priority: WARNING + description: 'The CPU Interrupt Time in the last 5 minutes exceeds `{$CPU.INTERRUPT.CRIT.MAX}`%.' + dependencies: + - name: 'Windows: High CPU utilization' + expression: 'min(/Windows by Zabbix agent/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 37448f05afe340a3891d05528c9d1adc + name: 'CPU privileged time' + key: 'perf_counter_en["\Processor Information(_total)\% Privileged Time"]' + value_type: FLOAT + units: '%' + description: 'The processor information `% Privileged Time` counter shows the percent of time that the processor is spent executing in Kernel (or Privileged) mode. Privileged mode includes services interrupts inside Interrupt Service Routines (ISRs), executing Deferred Procedure Calls (DPCs), Device Driver calls and other kernel-mode functions of the Windows Operating System.' + tags: + - tag: component + value: cpu + triggers: + - uuid: 4d099256b3ba42f1b90143e2014900dd + expression: 'min(/Windows by Zabbix agent/perf_counter_en["\Processor Information(_total)\% Privileged Time"],5m)>{$CPU.PRIV.CRIT.MAX}' + name: 'Windows: CPU privileged time is too high' + event_name: 'Windows: CPU privileged time is too high (over {$CPU.PRIV.CRIT.MAX}% for 5m)' + priority: WARNING + description: 'The CPU privileged time in the last 5 minutes exceeds {$CPU.PRIV.CRIT.MAX}%.' + dependencies: + - name: 'Windows: CPU interrupt time is too high' + expression: 'min(/Windows by Zabbix agent/perf_counter_en["\Processor Information(_total)\% Interrupt Time"],5m)>{$CPU.INTERRUPT.CRIT.MAX}' + - name: 'Windows: High CPU utilization' + expression: 'min(/Windows by Zabbix agent/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 575912d512624143b564ca0fbfd0bb8f + name: 'CPU user time' + key: 'perf_counter_en["\Processor Information(_total)\% User Time"]' + value_type: FLOAT + units: '%' + description: 'The processor information `% User Time` counter shows the percent of time that the processor(s) is spent executing in User mode.' + tags: + - tag: component + value: cpu + - uuid: 2322a85bfc1049a3b5c892d83b5d5054 + name: 'Context switches per second' + key: 'perf_counter_en["\System\Context Switches/sec"]' + value_type: FLOAT + description: | + Context Switches/sec is the combined rate at which all processors on the computer are switched from one thread to another. + Context switches occur when a running thread voluntarily relinquishes the processor, is preempted by a higher priority ready thread, or switches between user-mode and privileged (kernel) mode to use an Executive or subsystem service. + It is the sum of Thread\\Context Switches/sec for all threads running on all processors in the computer and is measured in numbers of switches. + There are context switch counters on the System and Thread objects. This counter displays the difference between the values observed in the last two samples, divided by the duration of the sample interval. + tags: + - tag: component + value: cpu + - uuid: 002af28df72f4a788c88bc022d88c6dd + name: 'CPU queue length' + key: 'perf_counter_en["\System\Processor Queue Length"]' + value_type: FLOAT + description: 'The Processor Queue Length shows the number of threads that are observed as delayed in the processor Ready Queue and are waiting to be executed.' + tags: + - tag: component + value: cpu + - uuid: 630b7b2af6274936ab80b1dd774113e5 + name: 'Number of threads' + key: 'perf_counter_en["\System\Threads"]' + description: 'The number of threads used by all running processes.' + tags: + - tag: component + value: os + - uuid: b305029532f84daf93c8da2d181ac3a1 + name: 'Number of processes' + key: 'proc.num[]' + description: 'The number of processes.' + tags: + - tag: component + value: os + - uuid: c2ed8e2efab04564b6c70ee8ad14730f + name: 'CPU utilization' + key: system.cpu.util + value_type: FLOAT + units: '%' + description: 'CPU utilization expressed in %.' + tags: + - tag: component + value: cpu + triggers: + - uuid: 806aa232f56640ab98aacc79491fc4d7 + expression: 'min(/Windows by Zabbix agent/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + name: 'Windows: High CPU utilization' + event_name: 'Windows: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: cb056886ce72426e833a0445f9263906 + name: 'System name' + key: system.hostname + delay: 1h + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 6b50d36a4e29468a9546e880f3004399 + expression: 'change(/Windows by Zabbix agent/system.hostname) and length(last(/Windows by Zabbix agent/system.hostname))>0' + name: 'Windows: System name has changed' + event_name: 'Windows: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 94c4dfe23e2e4c6e995a3a715941a8eb + name: 'System local time' + key: system.localtime + units: unixtime + description: 'The local system time of the host.' + tags: + - tag: component + value: system + triggers: + - uuid: 37ca2366c8474cc8a49a605e93377601 + expression: 'fuzzytime(/Windows by Zabbix agent/system.localtime,{$SYSTEM.FUZZYTIME.MAX})=0' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'fuzzytime(/Windows by Zabbix agent/system.localtime,{$SYSTEM.FUZZYTIME.MIN})=1' + name: 'Windows: System time is out of sync' + event_name: 'Windows: System time is out of sync (diff with Zabbix server > {$SYSTEM.FUZZYTIME.MAX})' + priority: WARNING + description: 'The host''s system time is different from Zabbix server time.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7e8b3476db6d4322a10cd1a28cbdb7ea + name: 'Operating system architecture' + key: system.sw.arch + delay: 1h + value_type: CHAR + trends: '0' + description: 'The architecture of the operating system.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + - uuid: c86dd0a8dbba468696cc09a9f9575769 + name: 'Operating system' + key: system.sw.os + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 9d5648eb580b41fca95d750113287567 + expression: 'change(/Windows by Zabbix agent/system.sw.os) and length(last(/Windows by Zabbix agent/system.sw.os))>0' + name: 'Windows: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Windows: System name has changed' + expression: 'change(/Windows by Zabbix agent/system.hostname) and length(last(/Windows by Zabbix agent/system.hostname))>0' + tags: + - tag: scope + value: notice + - uuid: 11cac38334544e5cbb028cfd473cb39e + name: 'Free swap space' + type: CALCULATED + key: system.swap.free + units: B + params: 'last(//system.swap.size[,total]) - last(//system.swap.size[,total]) / 100 * last(//perf_counter_en["\Paging file(_Total)\% Usage"])' + description: 'The free space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 9c7e3c843a3045df81dddc5d18de267c + name: 'Free swap space in %' + type: DEPENDENT + key: system.swap.pfree + delay: '0' + value_type: FLOAT + units: '%' + description: 'The free space of the swap volume/file expressed in %.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100 - value)' + master_item: + key: 'perf_counter_en["\Paging file(_Total)\% Usage"]' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: f981835baf04494eaff2f33f159e0ab5 + name: 'Total swap space' + key: 'system.swap.size[,total]' + units: B + description: 'The total space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: b103a2c22fe344f886e9dc9f4e4a65ec + name: 'System description' + key: system.uname + delay: 15m + value_type: CHAR + trends: '0' + description: 'System description of the host.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 12503fbf4400488e9b5ff0488f164cb6 + name: Uptime + key: system.uptime + delay: 30s + trends: '0' + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + tags: + - tag: component + value: system + triggers: + - uuid: d27b9eab4034439f91dff41fe6f043ab + expression: 'last(/Windows by Zabbix agent/system.uptime)<10m' + name: 'Windows: Host has been restarted' + event_name: 'Windows: Host has been restarted (uptime < 10m)' + priority: WARNING + description: 'The device uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: f59d6794a6b94e93aced78a688507677 + name: 'Get filesystems' + key: vfs.fs.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.' + tags: + - tag: component + value: raw + - uuid: 09e9a345a0f445b1a65685911f5eb9b0 + name: 'Total memory' + key: 'vm.memory.size[total]' + units: B + description: 'Total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: 1cbf45e11dab453797fe291639aa0c01 + name: 'Used memory' + key: 'vm.memory.size[used]' + units: B + description: 'Used memory in bytes.' + tags: + - tag: component + value: memory + - uuid: 3b1e4ecaa04a46e9b0aee956918f0713 + name: 'Memory utilization' + type: CALCULATED + key: vm.memory.util + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.size[used]) / last(//vm.memory.size[total]) * 100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: b442993bb2a6404a8ebcb7be39d16ce6 + expression: 'min(/Windows by Zabbix agent/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + name: 'Windows: High memory utilization' + event_name: 'Windows: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 08b70a5b80fd435ba393e3deb3ca5adb + name: 'Windows: Network interfaces WMI get' + key: 'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data of `win32_networkadapter.`' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: raw + - uuid: 83c8c6f15b524a2fb04fc90d04d3e8a2 + name: 'Number of cores' + key: 'wmi.get[root/cimv2,"Select NumberOfLogicalProcessors from Win32_ComputerSystem"]' + description: 'The number of logical processors available on the computer.' + tags: + - tag: component + value: cpu + - uuid: 3dcb0f79342b4ded97cdec0794472266 + name: 'Zabbix agent availability' + type: INTERNAL + key: 'zabbix[host,agent,available]' + description: 'Used for monitoring the availability status of the agent.' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: 05beb4500cae480892fad0739f99807d + expression: 'max(/Windows by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0' + name: 'Windows: Zabbix agent is not available' + event_name: 'Windows: Zabbix agent is not available (for {$AGENT.TIMEOUT})' + priority: AVERAGE + description: 'For passive agents only, host availability is used with `{$AGENT.TIMEOUT}` as a time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: ba19d6566fdb4a668d4363769d1fee01 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: A + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: C + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: E + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovery of installed network interfaces.' + item_prototypes: + - uuid: 8a7bb1e8afd24d32a65fa2116ba439ce + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + key: 'net.if.in["{#IFGUID}",dropped]' + delay: 3m + description: 'The number of incoming packets dropped on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 6e1f3dfb91024095a20870ee94d01822 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + key: 'net.if.in["{#IFGUID}",errors]' + delay: 3m + description: 'The number of incoming packets with errors on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 82accc942f5747a2b399484466625051 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + key: 'net.if.in["{#IFGUID}"]' + delay: 3m + units: bps + description: 'Incoming traffic on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 9ddb9aaf863a45c0affbd90e4a6fa393 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + key: 'net.if.out["{#IFGUID}",dropped]' + delay: 3m + description: 'The number of outgoing packets dropped on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 38c8a1aa95b343e39e23e7b508521dad + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + key: 'net.if.out["{#IFGUID}",errors]' + delay: 3m + description: 'The number of outgoing packets with errors on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 3b090da19af842189bb6fa56d49ceec3 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + key: 'net.if.out["{#IFGUID}"]' + delay: 3m + units: bps + description: 'Outgoing traffic on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 0445b842d1ce4c7f9fd5716c78a079c4 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed["{#IFGUID}"]' + delay: '0' + trends: '0' + units: bps + description: 'Estimated bandwidth of the network interface if any.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.GUID == "{#IFGUID}")].Speed.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: JAVASCRIPT + parameters: + - 'return (value==''9223372036854775807'' ? 0 : value)' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: c495bffb7e244e5caf5dc013d839b758 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status["{#IFGUID}"]' + delay: '0' + trends: '0' + description: 'The operational status of the network interface.' + valuemap: + name: 'Win32_NetworkAdapter::NetConnectionStatus' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.GUID == "{#IFGUID}")].NetConnectionStatus.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: a9b1c61ac4a6481aab93d40c6fb93462 + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"])<>2 and (last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"],#1)<>last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"])=2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. + No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 11ce3d38745a49f58f713fcef1a913c5 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type["{#IFGUID}"]' + delay: '0' + trends: '0' + description: 'The type of the network interface.' + valuemap: + name: 'Win32_NetworkAdapter::AdapterTypeId' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.GUID == "{#IFGUID}")].AdapterTypeId.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: b2191521a7a54985a19740e3ee2674f2 + expression: | + change(/Windows by Zabbix agent/net.if.speed["{#IFGUID}"])<0 and + last(/Windows by Zabbix agent/net.if.speed["{#IFGUID}"])>0 and + last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"])=2 + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"])<>2 and (last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"],#1)<>last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"],#2))' + recovery_expression: 'last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"])=2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: capacity + - uuid: c93048183c3942808c60d6dd61963bc0 + expression: | + (avg(/Windows by Zabbix agent/net.if.in["{#IFGUID}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Windows by Zabbix agent/net.if.speed["{#IFGUID}"]) or + avg(/Windows by Zabbix agent/net.if.out["{#IFGUID}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Windows by Zabbix agent/net.if.speed["{#IFGUID}"])) and + last(/Windows by Zabbix agent/net.if.speed["{#IFGUID}"])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Windows by Zabbix agent/net.if.in["{#IFGUID}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Windows by Zabbix agent/net.if.speed["{#IFGUID}"]) and + avg(/Windows by Zabbix agent/net.if.out["{#IFGUID}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Windows by Zabbix agent/net.if.speed["{#IFGUID}"]) + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"])<>2 and (last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"],#1)<>last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"],#2))' + recovery_expression: 'last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"])=2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: a4fa6e161bb64b98b25b1a2a501a83f4 + expression: | + min(/Windows by Zabbix agent/net.if.in["{#IFGUID}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Windows by Zabbix agent/net.if.out["{#IFGUID}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Windows by Zabbix agent/net.if.in["{#IFGUID}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Windows by Zabbix agent/net.if.out["{#IFGUID}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"])<>2 and (last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"],#1)<>last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"],#2))' + recovery_expression: 'last(/Windows by Zabbix agent/net.if.status["{#IFGUID}"])=2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 5cbfad75590746718cf4eabbeeea43f3 + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Windows by Zabbix agent' + key: 'net.if.in["{#IFGUID}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Windows by Zabbix agent' + key: 'net.if.out["{#IFGUID}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Windows by Zabbix agent' + key: 'net.if.out["{#IFGUID}",errors]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Windows by Zabbix agent' + key: 'net.if.in["{#IFGUID}",errors]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Windows by Zabbix agent' + key: 'net.if.out["{#IFGUID}",dropped]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Windows by Zabbix agent' + key: 'net.if.in["{#IFGUID}",dropped]' + master_item: + key: 'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function(net){ + return { + "{#IFNAME}": net.Name, + "{#IFDESCR}": net.Description, + "{#IFALIAS}": net.NetConnectionID, + "{#IFGUID}": net.GUID + }}) + return JSON.stringify({"data": output}) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 8f155ebc6fd045b3b7548010af1a73c7 + name: 'Physical disks discovery' + key: 'perf_instance_en.discovery[PhysicalDisk]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.MATCHES}' + formulaid: A + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of installed physical disks.' + item_prototypes: + - uuid: 821f46bbf9d7432e9ea0d5f93a868269 + name: '{#DEVNAME}: Disk utilization by idle time' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\% Idle Time",60]' + value_type: FLOAT + units: '%' + description: 'This item is the percentage of elapsed time that the selected disk drive was busy servicing read or writes requests based on idle time.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100 - value)' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + trigger_prototypes: + - uuid: 4777fa000fa9460baab1fd7bc7e40604 + expression: 'min(/Windows by Zabbix agent/perf_counter_en["\PhysicalDisk({#DEVNAME})\% Idle Time",60],15m)>{$VFS.DEV.UTIL.MAX.WARN}' + name: 'Windows: {#DEVNAME}: Disk is overloaded' + event_name: 'Windows: {#DEVNAME}: Disk is overloaded (util > {$VFS.DEV.UTIL.MAX.WARN}% for 15m)' + priority: WARNING + description: 'The disk appears to be under heavy load.' + manual_close: 'YES' + dependencies: + - name: 'Windows: {#DEVNAME}: Disk read request responses are too high' + expression: 'min(/Windows by Zabbix agent/perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Read",60],15m) > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"}' + - name: 'Windows: {#DEVNAME}: Disk write request responses are too high' + expression: 'min(/Windows by Zabbix agent/perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Write",60],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}' + tags: + - tag: scope + value: performance + - uuid: 77e33448596a498ba211d23a1977e9ca + name: '{#DEVNAME}: Average disk read queue length' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk Read Queue Length",60]' + value_type: FLOAT + description: 'Average disk read queue, the number of requests outstanding on the disk at the time the performance data is collected.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 7d91ed70bc3b4ef2a7991b3a5ba3bde4 + name: '{#DEVNAME}: Disk read request avg waiting time' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Read",60]' + value_type: FLOAT + units: s + description: 'The average time for read requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + trigger_prototypes: + - uuid: 85a8c002b3d84121ad2e73c8aced0987 + expression: 'min(/Windows by Zabbix agent/perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Read",60],15m) > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"}' + name: 'Windows: {#DEVNAME}: Disk read request responses are too high' + event_name: 'Windows: {#DEVNAME}: Disk read request responses are too high (read > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"}s for 15m)' + priority: WARNING + description: 'This trigger might indicate the disk {#DEVNAME} saturation.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 898784d050664f8eaf197ebebc16077e + name: '{#DEVNAME}: Disk write request avg waiting time' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Write",60]' + value_type: FLOAT + units: s + description: 'The average time for write requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + trigger_prototypes: + - uuid: db6809fd85e241948fb5ef76cb7cc17b + expression: 'min(/Windows by Zabbix agent/perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Write",60],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}' + name: 'Windows: {#DEVNAME}: Disk write request responses are too high' + event_name: 'Windows: {#DEVNAME}: Disk write request responses are too high (write > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}s for 15m)' + priority: WARNING + description: 'This trigger might indicate the disk {#DEVNAME} saturation.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 71a2c065efaa437fb7296972f516bd82 + name: '{#DEVNAME}: Average disk write queue length' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk Write Queue Length",60]' + value_type: FLOAT + description: 'Average disk write queue, the number of requests outstanding on the disk at the time the performance data is collected.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: b49884669dbf43cc95ea3d27fb23698c + name: '{#DEVNAME}: Disk average queue size (avgqu-sz)' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Current Disk Queue Length",60]' + value_type: FLOAT + description: 'The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 390c6e4f2c134ae2939810892eefd6f7 + name: '{#DEVNAME}: Disk read rate' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Reads/sec",60]' + value_type: FLOAT + units: '!r/s' + description: 'Rate of read operations on the disk.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 6353d621a9c4415c94247208fc996075 + name: '{#DEVNAME}: Disk write rate' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Writes/sec",60]' + value_type: FLOAT + units: '!w/s' + description: 'Rate of write operations on the disk.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + graph_prototypes: + - uuid: 6d37f811023b4f65a071b1deb9b1b8ec + name: '{#DEVNAME}: Disk average queue length' + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk Read Queue Length",60]' + - sortorder: '1' + color: F63100 + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk Write Queue Length",60]' + - uuid: f54bdfb7e0c7471f80b8ca599bc4f904 + name: '{#DEVNAME}: Disk average waiting time' + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Read",60]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Write",60]' + - uuid: 339a20ba0d3f4ba4a05aee0611124819 + name: '{#DEVNAME}: Disk read/write rates' + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Reads/sec",60]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Writes/sec",60]' + - uuid: bc71dc24634742028a5c8384dcaa0f32 + name: '{#DEVNAME}: Disk utilization and queue' + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Current Disk Queue Length",60]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\% Idle Time",60]' + preprocessing: + - type: STR_REPLACE + parameters: + - '{#INSTANCE}' + - '{#DEVNAME}' + - uuid: cabcad5c3520448f8e1bf222be348b81 + name: 'Windows services discovery' + key: service.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#SERVICE.NAME}' + value: '{$SERVICE.NAME.MATCHES}' + formulaid: A + - macro: '{#SERVICE.NAME}' + value: '{$SERVICE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SERVICE.STARTUPNAME}' + value: '{$SERVICE.STARTUPNAME.MATCHES}' + formulaid: C + - macro: '{#SERVICE.STARTUPNAME}' + value: '{$SERVICE.STARTUPNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Used for the discovery of Windows services of different types as defined in the template''s macros.' + item_prototypes: + - uuid: dd5a027d75fc4ff1a3bb6e69c0d8d592 + name: 'State of service "{#SERVICE.NAME}" ({#SERVICE.DISPLAYNAME})' + key: 'service.info["{#SERVICE.NAME}",state]' + valuemap: + name: 'Windows service state' + tags: + - tag: component + value: system + - tag: name + value: '{#SERVICE.DISPLAYNAME}' + - tag: service + value: '{#SERVICE.NAME}' + trigger_prototypes: + - uuid: 4708592603db4577b26cb6daade41754 + expression: 'min(/Windows by Zabbix agent/service.info["{#SERVICE.NAME}",state],#3)<>0' + name: 'Windows: "{#SERVICE.NAME}" ({#SERVICE.DISPLAYNAME}) is not running' + event_name: 'Windows: "{#SERVICE.NAME}" ({#SERVICE.DISPLAYNAME}) is not running (startup type {#SERVICE.STARTUPNAME})' + priority: AVERAGE + description: 'The service has a state other than "Running" for the last three times.' + tags: + - tag: scope + value: notice + - uuid: c22b79b52f9148728095bda2796a753e + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: vfs.fs.dependent.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSDRIVETYPE}' + value: '{$VFS.FS.FSDRIVETYPE.MATCHES}' + formulaid: A + - macro: '{#FSDRIVETYPE}' + value: '{$VFS.FS.FSDRIVETYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: C + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: E + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovery of filesystems of different types.' + item_prototypes: + - uuid: e2c12d52e2f14720b9458b89a8b4e41a + name: 'FS [{#FSLABEL}({#FSNAME})]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + delay: '0' + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.free + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 7bf3bd42cdf444389e6953090900c620 + name: 'FS [{#FSLABEL}({#FSNAME})]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pused + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: d3e99134a1d04894918f2c92ff38cb92 + expression: 'min(/Windows by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSLABEL}({#FSNAME})"}' + name: 'Windows: FS [{#FSLABEL}({#FSNAME})]: Space is critically low' + event_name: 'Windows: FS [{#FSLABEL}({#FSNAME})]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSLABEL}({#FSNAME})"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 97115bbe4f6b4a8cb2873b8fa01f95d3 + expression: 'min(/Windows by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSLABEL}({#FSNAME})"}' + name: 'Windows: FS [{#FSLABEL}({#FSNAME})]: Space is low' + event_name: 'Windows: FS [{#FSLABEL}({#FSNAME})]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSLABEL}({#FSNAME})"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'Windows: FS [{#FSLABEL}({#FSNAME})]: Space is critically low' + expression: 'min(/Windows by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSLABEL}({#FSNAME})"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 69378521b7e844ec89afe753a7cba30e + name: 'FS [{#FSLABEL}({#FSNAME})]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + delay: '0' + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.total + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: a29509b4b7f24c25a768e88e0c23c154 + name: 'FS [{#FSLABEL}({#FSNAME})]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + delay: '0' + units: B + description: 'Used storage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.used + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: bf93dcebfe504ac0a45cf3ef76cd1dc7 + name: 'FS [{#FSLABEL}({#FSNAME})]: Get data' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},data]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Intermediate data of `{#FSNAME}` filesystem.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.fsname==''{#FSNAME}'')].first()' + master_item: + key: vfs.fs.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + graph_prototypes: + - uuid: b948d7a79a974b2b9f5d32c4a19d7410 + name: 'FS [{#FSLABEL}({#FSNAME})]: Space usage graph, in %' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'Windows by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + - uuid: f80e47b8d4db4c378f25056c02b72382 + name: 'FS [{#FSLABEL}({#FSNAME})]: Space utilization chart' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Windows by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Windows by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'Windows by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + master_item: + key: vfs.fs.get + lld_macro_paths: + - lld_macro: '{#FSDRIVETYPE}' + path: $.fsdrivetype + - lld_macro: '{#FSLABEL}' + path: $.fslabel + - lld_macro: '{#FSNAME}' + path: $.fsname + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'fsname': filesystem.fsname, + 'fstype': filesystem.fstype, + 'fslabel': filesystem.fslabel, + 'fsdrivetype': filesystem.fsdrivetype + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: os + - tag: target + value: windows + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 3m + description: 'Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode).' + - macro: '{$CPU.INTERRUPT.CRIT.MAX}' + value: '50' + description: 'The critical threshold of the % Interrupt Time counter.' + - macro: '{$CPU.PRIV.CRIT.MAX}' + value: '30' + description: 'The threshold of the % Privileged Time counter.' + - macro: '{$CPU.QUEUE.CRIT.MAX}' + value: '3' + description: 'The threshold of the Processor Queue Length counter.' + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of the CPU utilization expressed in %.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for the interface operational state for the "link down" trigger. Can be used with interface name as context.' + - macro: '{$MEM.PAGE_SEC.CRIT.MAX}' + value: '1000' + description: 'The warning threshold of the Memory Pages/sec counter.' + - macro: '{$MEM.PAGE_TABLE_CRIT.MIN}' + value: '5000' + description: 'The warning threshold of the Free System Page Table Entries counter.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'The warning threshold of the Memory util item.' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_THIS + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_THIS + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: Miniport|Virtual|Teredo|Kernel|Loopback|Bluetooth|HTTPS|6to4|QoS|Layer + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.NAME.MATCHES}' + value: '^.*$' + description: 'Used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.NAME.NOT_MATCHES}' + value: '^(?:RemoteRegistry|MMCSS|gupdate|SysmonLog|clr_optimization_v.+|sppsvc|gpsvc|Pml Driver HPZ12|Net Driver HPZ12|MapsBroker|IntelAudioService|Intel\(R\) TPM Provisioning Service|dbupdate|DoSvc|CDPUserSvc_.+|WpnUserService_.+|OneSyncSvc_.+|WbioSrvc|BITS|tiledatamodelsvc|GISvc|ShellHWDetection|TrustedInstaller|TabletInputService|CDPSvc|wuauserv|edgeupdate|cbdhsvc_.+)$' + description: 'Used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.STARTUPNAME.MATCHES}' + value: '^(?:automatic|automatic delayed)$' + description: 'Used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.STARTUPNAME.NOT_MATCHES}' + value: '^(?:manual|disabled)$' + description: 'Used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SWAP.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the minimum free swap.' + - macro: '{$SYSTEM.FUZZYTIME.MAX}' + value: 60s + description: 'The upper threshold for difference of system time.' + - macro: '{$SYSTEM.FUZZYTIME.MIN}' + value: 10s + description: 'The lower threshold for difference of system time. Used in recovery expression to avoid trigger flapping.' + - macro: '{$VFS.DEV.DEVNAME.MATCHES}' + value: '.*' + description: 'Used in physical disk discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + value: _Total + description: 'Used in physical disk discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.READ.AWAIT.WARN}' + value: '0.02' + description: 'Disk read average response time (in s) before the trigger fires.' + - macro: '{$VFS.DEV.UTIL.MAX.WARN}' + value: '95' + description: 'The warning threshold of disk time utilization in percent.' + - macro: '{$VFS.DEV.WRITE.AWAIT.WARN}' + value: '0.02' + description: 'Disk write average response time (in s) before the trigger fires.' + - macro: '{$VFS.FS.FSDRIVETYPE.MATCHES}' + value: fixed + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSDRIVETYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: '.*' + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: '^(?:/dev|/sys|/run|/proc|.+/shm$)' + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: '.*' + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: 4959d0164ef44866a529ba390a997666 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent' + name: 'FS [{#FSLABEL}({#FSNAME})]: Space utilization chart' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent' + name: 'FS [{#FSLABEL}({#FSNAME})]: Space usage graph, in %' + - type: STRING + name: reference + value: AAAEC + - uuid: 49212562a208434d9766aa82240230fd + name: 'Network interfaces' + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAI + - uuid: 5f494fac9dc94bf3827b67ea212240f2 + name: 'System performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Windows by Zabbix agent' + name: 'Windows: CPU usage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Windows by Zabbix agent' + name: 'Windows: Memory utilization' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent' + name: 'FS [{#FSLABEL}({#FSNAME})]: Space utilization chart' + - type: STRING + name: reference + value: AAAEA + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent' + name: '{#DEVNAME}: Disk read/write rates' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent' + name: '{#DEVNAME}: Disk utilization and queue' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + 'y': '25' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAH + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\System\Processor Queue Length"]' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Windows by Zabbix agent' + name: 'Windows: Swap usage' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 9b087b9bfa09434ea0d0b5c32577abcc + name: 'Win32_NetworkAdapter::AdapterTypeId' + mappings: + - value: '0' + newvalue: 'Ethernet 802.3' + - value: '1' + newvalue: 'Token Ring 802.5' + - value: '2' + newvalue: 'Fiber Distributed Data Interface (FDDI)' + - value: '3' + newvalue: 'Wide Area Network (WAN)' + - value: '4' + newvalue: LocalTalk + - value: '5' + newvalue: 'Ethernet using DIX header format' + - value: '6' + newvalue: ARCNET + - value: '7' + newvalue: 'ARCNET (878.2)' + - value: '8' + newvalue: ATM + - value: '9' + newvalue: Wireless + - value: '10' + newvalue: 'Infrared Wireless' + - value: '11' + newvalue: Bpc + - value: '12' + newvalue: CoWan + - value: '13' + newvalue: '1394' + - uuid: 7e549195e83446228db8bf1101bea83d + name: 'Win32_NetworkAdapter::NetConnectionStatus' + mappings: + - value: '0' + newvalue: Disconnected + - value: '1' + newvalue: Connecting + - value: '2' + newvalue: Connected + - value: '3' + newvalue: Disconnecting + - value: '4' + newvalue: 'Hardware Not Present' + - value: '5' + newvalue: 'Hardware Disabled' + - value: '6' + newvalue: 'Hardware Malfunction' + - value: '7' + newvalue: 'Media Disconnected' + - value: '8' + newvalue: Authenticating + - value: '9' + newvalue: 'Authentication Succeeded' + - value: '10' + newvalue: 'Authentication Failed' + - value: '11' + newvalue: 'Invalid Address' + - value: '12' + newvalue: 'Credentials Required' + - uuid: 3f685167f97c492598ad445fc938560f + name: 'Windows service state' + mappings: + - value: '0' + newvalue: Running + - value: '1' + newvalue: Paused + - value: '2' + newvalue: 'Start pending' + - value: '3' + newvalue: 'Pause pending' + - value: '4' + newvalue: 'Continue pending' + - value: '5' + newvalue: 'Stop pending' + - value: '6' + newvalue: Stopped + - value: '7' + newvalue: Unknown + - value: '255' + newvalue: 'No such service' + - uuid: c80233756c9d43769f334d632da07b8c + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 5d3e53f3090448c7aaf081eb32b28ced + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up + triggers: + - uuid: 8b1baeb26e154f99aefeaba3ea4fa63b + expression: 'min(/Windows by Zabbix agent/perf_counter_en["\System\Processor Queue Length"],5m) - last(/Windows by Zabbix agent/wmi.get[root/cimv2,"Select NumberOfLogicalProcessors from Win32_ComputerSystem"]) * 2 > {$CPU.QUEUE.CRIT.MAX}' + name: 'Windows: CPU queue length is too high' + event_name: 'Windows: CPU queue length is too high (over {$CPU.QUEUE.CRIT.MAX} for 5m)' + priority: WARNING + description: 'The CPU Queue Length in the last 5 minutes exceeds `{$CPU.QUEUE.CRIT.MAX}`. According to actual observations, PQL should not exceed the number of cores * 2. To fine-tune the conditions, use the macro `{$CPU.QUEUE.CRIT.MAX }`.' + dependencies: + - name: 'Windows: High CPU utilization' + expression: 'min(/Windows by Zabbix agent/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 7c23e03060ce42b094aac2f8aea1a9ad + expression: 'max(/Windows by Zabbix agent/system.swap.pfree,5m)<{$SWAP.PFREE.MIN.WARN} and last(/Windows by Zabbix agent/system.swap.size[,total])>0' + name: 'Windows: High swap space usage' + event_name: 'Windows: High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)' + opdata: 'Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'This trigger is ignored, if there is no swap configured' + dependencies: + - name: 'Windows: High memory utilization' + expression: 'min(/Windows by Zabbix agent/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + tags: + - tag: scope + value: performance + graphs: + - uuid: 02ec085b49614b30a45287a7e88a8da1 + name: 'Windows: CPU jumps' + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\System\Context Switches/sec"]' + - sortorder: '1' + color: F63100 + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\Processor Information(_total)\% Interrupt Time"]' + - uuid: 0c2db401fe574282ab0beb6955049330 + name: 'Windows: CPU usage' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\Processor Information(_total)\% User Time"]' + - sortorder: '1' + color: F63100 + item: + host: 'Windows by Zabbix agent' + key: 'perf_counter_en["\Processor Information(_total)\% Privileged Time"]' + - uuid: 5de711b16f3845659289483f6deb4761 + name: 'Windows: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Windows by Zabbix agent' + key: system.cpu.util + - uuid: 1b86c8f6fe3343e6838c5d02f4f64b2b + name: 'Windows: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Windows by Zabbix agent' + key: vm.memory.util + - uuid: 518f6bcdcefc4cf493244798ccd09ec1 + name: 'Windows: Swap usage' + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent' + key: system.swap.free + - sortorder: '1' + color: F63100 + item: + host: 'Windows by Zabbix agent' + key: 'system.swap.size[,total]' diff --git a/Windows_by_Zabbix_agent_active.yaml b/Windows_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..243f7a8 --- /dev/null +++ b/Windows_by_Zabbix_agent_active.yaml @@ -0,0 +1,1875 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: 5fdd2ca8b8f84962aaea5a218b46ea7d + template: 'Windows by Zabbix agent active' + name: 'Windows by Zabbix agent active' + description: | + This is an official Windows template. It requires Zabbix agent 7.0 or newer. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387224-discussion-thread-for-official-zabbix-template-for-windows + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: 042ce35b908748c8bdd322f818c52c85 + name: 'Host name of Zabbix agent running' + type: ZABBIX_ACTIVE + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: bd8864ac5450401b9ad479c1ee455805 + name: 'Zabbix agent ping' + type: ZABBIX_ACTIVE + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + triggers: + - uuid: e77c3b1849b64d45a3078794057a2582 + expression: 'nodata(/Windows by Zabbix agent active/agent.ping,{$AGENT.NODATA_TIMEOUT})=1' + name: 'Windows: Zabbix agent is not available' + event_name: 'Windows: Zabbix agent is not available (or nodata for {$AGENT.NODATA_TIMEOUT})' + priority: AVERAGE + description: 'For active agents, `nodata()` with `agent.ping` is used with `{$AGENT.NODATA_TIMEOUT}` as a time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 41cec8b443a94efc9ebca6f66c46ad8a + name: 'Version of Zabbix agent running' + type: ZABBIX_ACTIVE + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: 20dceb831b1a4d63af7635656239c495 + name: 'Cache bytes' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Memory\Cache Bytes"]' + units: B + description: 'Cache Bytes is the sum of the Memory\\System Cache Resident Bytes, Memory\\System Driver Resident Bytes, Memory\\System Code Resident Bytes, and Memory\\Pool Paged Resident Bytes counters. This counter displays the last observed value only; it is not an average.' + tags: + - tag: component + value: memory + - uuid: 71bb18af403248c7818d16444a2eec06 + name: 'Free system page table entries' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Memory\Free System Page Table Entries"]' + description: 'This indicates the number of page table entries not currently in use by the system. If the number is less than 5,000, there may be a memory leak or you running out of memory.' + tags: + - tag: component + value: memory + triggers: + - uuid: 37d6b965dd184b66b37018d4375d3e56 + expression: 'max(/Windows by Zabbix agent active/perf_counter_en["\Memory\Free System Page Table Entries"],5m)<{$MEM.PAGE_TABLE_CRIT.MIN}' + name: 'Windows: Number of free system page table entries is too low' + event_name: 'Windows: Number of free system page table entries is too low (less {$MEM.PAGE_TABLE_CRIT.MIN} for 5m)' + priority: WARNING + description: '`Memory\Free System Page Table Entries` has been less than `{$MEM.PAGE_TABLE_CRIT.MIN}` for 5 minutes. If the number is less than 5,000, there may be a memory leak.' + dependencies: + - name: 'Windows: High memory utilization' + expression: 'min(/Windows by Zabbix agent active/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + tags: + - tag: scope + value: capacity + - uuid: 19ec57305ba34ed890e2e4c8a500a214 + name: 'Memory page faults per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Memory\Page Faults/sec"]' + value_type: FLOAT + description: 'Page Faults/sec is the average number of pages faulted per second. It is measured in number of pages faulted per second because only one page is faulted in each fault operation, hence this is also equal to the number of page fault operations. This counter includes both hard faults (those that require disk access) and soft faults (where the faulted page is found elsewhere in physical memory.) Most processors can handle large numbers of soft faults without significant consequence. However, hard faults, which require disk access, can cause significant delays.' + tags: + - tag: component + value: memory + - uuid: 920faa3a434d46d48f99395e16ef04ec + name: 'Memory pages per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Memory\Pages/sec"]' + value_type: FLOAT + description: | + This measures the rate at which pages are read from or written to disk to resolve hard page faults. + If the value is greater than 1,000, as a result of excessive paging, there may be a memory leak. + tags: + - tag: component + value: memory + triggers: + - uuid: 05da8b30835e440fb1228fb9a0bc24a4 + expression: 'min(/Windows by Zabbix agent active/perf_counter_en["\Memory\Pages/sec"],5m)>{$MEM.PAGE_SEC.CRIT.MAX}' + name: 'Windows: The Memory Pages/sec is too high' + event_name: 'Windows: The Memory Pages/sec is too high (over {$MEM.PAGE_SEC.CRIT.MAX} for 5m)' + priority: WARNING + description: 'The Memory Pages/sec in the last 5 minutes exceeds `{$MEM.PAGE_SEC.CRIT.MAX}`. If the value is greater than 1,000, as a result of excessive paging, there may be a memory leak.' + dependencies: + - name: 'Windows: High memory utilization' + expression: 'min(/Windows by Zabbix agent active/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + tags: + - tag: scope + value: capacity + - uuid: 3af0a0717da747849c2b5a2ebfa61a2c + name: 'Memory pool non-paged' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Memory\Pool Nonpaged Bytes"]' + units: B + description: | + This measures the size, in bytes, of the non-paged pool. This is an area of system memory for objects that cannot be written to disk but instead must remain in physical memory as long as they are allocated. + There is a possible memory leak if the value is greater than 175MB (or 100MB with the /3GB switch). Consequently, Event ID 2019 is recorded in the system event log. + tags: + - tag: component + value: memory + - uuid: 4f7b86eff6c84193a2f9187fff578416 + name: 'Used swap space in %' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Paging file(_Total)\% Usage"]' + value_type: FLOAT + units: '%' + description: 'The used space of swap volume/file in percent.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 553249b52ca7492c87386d051ec53db9 + name: 'CPU DPC time' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Processor Information(_total)\% DPC Time"]' + value_type: FLOAT + units: '%' + description: 'Processor DPC time is the time that a single processor spent receiving and servicing deferred procedure calls (DPCs). DPCs are interrupts that run at a lower priority than standard interrupts. `% DPC Time` is a component of `% Privileged Time` because DPCs are executed in privileged mode. If a high `% DPC Time` is sustained, there may be a processor bottleneck or an application or hardware related issue that can significantly diminish overall system performance.' + tags: + - tag: component + value: cpu + - uuid: 32a32b9fea5d49989668a96bc52db87b + name: 'CPU interrupt time' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Processor Information(_total)\% Interrupt Time"]' + value_type: FLOAT + units: '%' + description: 'The processor information `% Interrupt Time` counter indicates how much time the processor spends handling hardware interrupts during sample intervals. It reflects the activity of devices like the system clock, mouse, disk drivers, and network cards. A value above 20% suggests possible hardware issues.' + tags: + - tag: component + value: cpu + triggers: + - uuid: 2eb661f6a42f40ce8cc25cef542763a9 + expression: 'min(/Windows by Zabbix agent active/perf_counter_en["\Processor Information(_total)\% Interrupt Time"],5m)>{$CPU.INTERRUPT.CRIT.MAX}' + name: 'Windows: CPU interrupt time is too high' + event_name: 'Windows: CPU interrupt time is too high (over {$CPU.INTERRUPT.CRIT.MAX}% for 5m)' + priority: WARNING + description: 'The CPU Interrupt Time in the last 5 minutes exceeds `{$CPU.INTERRUPT.CRIT.MAX}`%.' + dependencies: + - name: 'Windows: High CPU utilization' + expression: 'min(/Windows by Zabbix agent active/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 0747e92e52cc4a6a9b83c6f94889bff1 + name: 'CPU privileged time' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Processor Information(_total)\% Privileged Time"]' + value_type: FLOAT + units: '%' + description: 'The processor information `% Privileged Time` counter shows the percent of time that the processor is spent executing in Kernel (or Privileged) mode. Privileged mode includes services interrupts inside Interrupt Service Routines (ISRs), executing Deferred Procedure Calls (DPCs), Device Driver calls and other kernel-mode functions of the Windows Operating System.' + tags: + - tag: component + value: cpu + triggers: + - uuid: cee69c70da6a415186b922305d0cabdc + expression: 'min(/Windows by Zabbix agent active/perf_counter_en["\Processor Information(_total)\% Privileged Time"],5m)>{$CPU.PRIV.CRIT.MAX}' + name: 'Windows: CPU privileged time is too high' + event_name: 'Windows: CPU privileged time is too high (over {$CPU.PRIV.CRIT.MAX}% for 5m)' + priority: WARNING + description: 'The CPU privileged time in the last 5 minutes exceeds {$CPU.PRIV.CRIT.MAX}%.' + dependencies: + - name: 'Windows: CPU interrupt time is too high' + expression: 'min(/Windows by Zabbix agent active/perf_counter_en["\Processor Information(_total)\% Interrupt Time"],5m)>{$CPU.INTERRUPT.CRIT.MAX}' + - name: 'Windows: High CPU utilization' + expression: 'min(/Windows by Zabbix agent active/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 954a81efad4c4791bee052194b900268 + name: 'CPU user time' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\Processor Information(_total)\% User Time"]' + value_type: FLOAT + units: '%' + description: 'The processor information `% User Time` counter shows the percent of time that the processor(s) is spent executing in User mode.' + tags: + - tag: component + value: cpu + - uuid: f23957a6fb9a44a3a7010b19b16e77b5 + name: 'Context switches per second' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\System\Context Switches/sec"]' + value_type: FLOAT + description: | + Context Switches/sec is the combined rate at which all processors on the computer are switched from one thread to another. + Context switches occur when a running thread voluntarily relinquishes the processor, is preempted by a higher priority ready thread, or switches between user-mode and privileged (kernel) mode to use an Executive or subsystem service. + It is the sum of Thread\\Context Switches/sec for all threads running on all processors in the computer and is measured in numbers of switches. + There are context switch counters on the System and Thread objects. This counter displays the difference between the values observed in the last two samples, divided by the duration of the sample interval. + tags: + - tag: component + value: cpu + - uuid: c1da358e5c8f40279c703d93896aa571 + name: 'CPU queue length' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\System\Processor Queue Length"]' + value_type: FLOAT + description: 'The Processor Queue Length shows the number of threads that are observed as delayed in the processor Ready Queue and are waiting to be executed.' + tags: + - tag: component + value: cpu + - uuid: c738b97ec0dc49f380ed0e4a27ae9bb6 + name: 'Number of threads' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\System\Threads"]' + description: 'The number of threads used by all running processes.' + tags: + - tag: component + value: os + - uuid: 5229689338ae4a559d3c94a98032131e + name: 'Number of processes' + type: ZABBIX_ACTIVE + key: 'proc.num[]' + description: 'The number of processes.' + tags: + - tag: component + value: os + - uuid: 0f3ffe45092d461a91a1296cd6cfb19f + name: 'CPU utilization' + type: ZABBIX_ACTIVE + key: system.cpu.util + value_type: FLOAT + units: '%' + description: 'CPU utilization expressed in %.' + tags: + - tag: component + value: cpu + triggers: + - uuid: ab3cbf18088a4d7a82f6c678ce49ffce + expression: 'min(/Windows by Zabbix agent active/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + name: 'Windows: High CPU utilization' + event_name: 'Windows: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 5d99b356e30444a0b99e597506f35a69 + name: 'System name' + type: ZABBIX_ACTIVE + key: system.hostname + delay: 1h + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 3aea75603e584d2f9dc96e7f3cc2b7fa + expression: 'change(/Windows by Zabbix agent active/system.hostname) and length(last(/Windows by Zabbix agent active/system.hostname))>0' + name: 'Windows: System name has changed' + event_name: 'Windows: System name has changed (new name: {ITEM.VALUE})' + priority: INFO + description: 'The name of the system has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 89f928affba54c4a8dc7abead09cac68 + name: 'System local time' + type: ZABBIX_ACTIVE + key: system.localtime + units: unixtime + description: 'The local system time of the host.' + tags: + - tag: component + value: system + - uuid: 16a7ae509f0c4f9d8631efae88fe6324 + name: 'Operating system architecture' + type: ZABBIX_ACTIVE + key: system.sw.arch + delay: 1h + value_type: CHAR + trends: '0' + description: 'The architecture of the operating system.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + - uuid: 5159e7263d7a42e499380b70e9d6490a + name: 'Operating system' + type: ZABBIX_ACTIVE + key: system.sw.os + delay: 1h + value_type: CHAR + trends: '0' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 01bbea22605947dca9638229cf56e4e1 + expression: 'change(/Windows by Zabbix agent active/system.sw.os) and length(last(/Windows by Zabbix agent active/system.sw.os))>0' + name: 'Windows: Operating system description has changed' + priority: INFO + description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Windows: System name has changed' + expression: 'change(/Windows by Zabbix agent active/system.hostname) and length(last(/Windows by Zabbix agent active/system.hostname))>0' + tags: + - tag: scope + value: notice + - uuid: 9d6f14cc540846ab98052bf741a4247b + name: 'Free swap space' + type: CALCULATED + key: system.swap.free + units: B + params: 'last(//system.swap.size[,total]) - last(//system.swap.size[,total]) / 100 * last(//perf_counter_en["\Paging file(_Total)\% Usage"])' + description: 'The free space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: e91b5f08c6b745bca975797ea4abd02a + name: 'Free swap space in %' + type: DEPENDENT + key: system.swap.pfree + delay: '0' + value_type: FLOAT + units: '%' + description: 'The free space of the swap volume/file expressed in %.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100 - value)' + master_item: + key: 'perf_counter_en["\Paging file(_Total)\% Usage"]' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: b5af29f7b8ee451895b49c0444e929f4 + name: 'Total swap space' + type: ZABBIX_ACTIVE + key: 'system.swap.size[,total]' + units: B + description: 'The total space of the swap volume/file expressed in bytes.' + tags: + - tag: component + value: memory + - tag: component + value: storage + - uuid: 8fa1259420ad486ab6e2520c9b047073 + name: 'System description' + type: ZABBIX_ACTIVE + key: system.uname + delay: 15m + value_type: CHAR + trends: '0' + description: 'System description of the host.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 695053710ea14cc48692b5cb260d0dfb + name: Uptime + type: ZABBIX_ACTIVE + key: system.uptime + delay: 30s + trends: '0' + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + tags: + - tag: component + value: system + triggers: + - uuid: 4114e248a3b347f4a2fefc7816f2e940 + expression: 'last(/Windows by Zabbix agent active/system.uptime)<10m' + name: 'Windows: Host has been restarted' + event_name: 'Windows: Host has been restarted (uptime < 10m)' + priority: WARNING + description: 'The device uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 60a17a94a9ad4e4192547d0a6a1e1d25 + name: 'Get filesystems' + type: ZABBIX_ACTIVE + key: vfs.fs.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.' + tags: + - tag: component + value: raw + - uuid: 83185781999742268a7742695c5d3ee3 + name: 'Total memory' + type: ZABBIX_ACTIVE + key: 'vm.memory.size[total]' + units: B + description: 'Total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: f85ec8917f084c7d9b6bc36e186d74d6 + name: 'Used memory' + type: ZABBIX_ACTIVE + key: 'vm.memory.size[used]' + units: B + description: 'Used memory in bytes.' + tags: + - tag: component + value: memory + - uuid: 9b62965a4670472b8c672dc1021bb8fd + name: 'Memory utilization' + type: CALCULATED + key: vm.memory.util + value_type: FLOAT + units: '%' + params: 'last(//vm.memory.size[used]) / last(//vm.memory.size[total]) * 100' + description: 'Memory utilization in %.' + tags: + - tag: component + value: memory + triggers: + - uuid: 610a0893be834c11b35a0472dcabab7c + expression: 'min(/Windows by Zabbix agent active/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + name: 'Windows: High memory utilization' + event_name: 'Windows: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: c35940d1a12e4b96b7114ac8dbbfcec4 + name: 'Windows: Network interfaces WMI get' + type: ZABBIX_ACTIVE + key: 'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]' + history: '0' + value_type: TEXT + trends: '0' + description: 'Raw data of `win32_networkadapter.`' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: raw + - uuid: 3dcf69f6637f496ca0406e0ed403f03c + name: 'Number of cores' + type: ZABBIX_ACTIVE + key: 'wmi.get[root/cimv2,"Select NumberOfLogicalProcessors from Win32_ComputerSystem"]' + description: 'The number of logical processors available on the computer.' + tags: + - tag: component + value: cpu + - uuid: 1ac6ebdb5c98415b94cb44da5feeac7f + name: 'Active agent availability' + type: INTERNAL + key: 'zabbix[host,active_agent,available]' + description: | + Availability of active checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - unknown + 1 - available + 2 - not available + valuemap: + name: zabbix.host.active_agent.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: bad86dfaf5274927bce35ad314a2d21a + expression: 'min(/Windows by Zabbix agent active/zabbix[host,active_agent,available],{$AGENT.TIMEOUT})=2' + name: 'Windows: Active checks are not available' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Active checks are considered unavailable. Agent has not sent a heartbeat for a prolonged time.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c05c8d1be5614ffab1688cc92db32f12 + name: 'Network interfaces discovery' + type: DEPENDENT + key: net.if.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.MATCHES}' + formulaid: A + - macro: '{#IFALIAS}' + value: '{$NET.IF.IFALIAS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.MATCHES}' + formulaid: C + - macro: '{#IFDESCR}' + value: '{$NET.IF.IFDESCR.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.MATCHES}' + formulaid: E + - macro: '{#IFNAME}' + value: '{$NET.IF.IFNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovery of installed network interfaces.' + item_prototypes: + - uuid: 344f0ce5ba5244cb90cc08db556e6f9c + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' + type: ZABBIX_ACTIVE + key: 'net.if.in["{#IFGUID}",dropped]' + delay: 3m + description: 'The number of incoming packets dropped on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a2461163f9b44b678008e3d5fd96a168 + name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' + type: ZABBIX_ACTIVE + key: 'net.if.in["{#IFGUID}",errors]' + delay: 3m + description: 'The number of incoming packets with errors on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: a8f69dac86d646b194f9b204f22aeb3b + name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' + type: ZABBIX_ACTIVE + key: 'net.if.in["{#IFGUID}"]' + delay: 3m + units: bps + description: 'Incoming traffic on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 46d947876b844223bb500f29cbf82273 + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' + type: ZABBIX_ACTIVE + key: 'net.if.out["{#IFGUID}",dropped]' + delay: 3m + description: 'The number of outgoing packets dropped on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1f5854d4ad5d4b65b63e5ca9ffa5007c + name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' + type: ZABBIX_ACTIVE + key: 'net.if.out["{#IFGUID}",errors]' + delay: 3m + description: 'The number of outgoing packets with errors on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 1adceed263804e089108bb2cc1aa51e1 + name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' + type: ZABBIX_ACTIVE + key: 'net.if.out["{#IFGUID}"]' + delay: 3m + units: bps + description: 'Outgoing traffic on the network interface.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 820ca9809e6f46af8aa3f41195f246d9 + name: 'Interface {#IFNAME}({#IFALIAS}): Speed' + type: DEPENDENT + key: 'net.if.speed["{#IFGUID}"]' + delay: '0' + trends: '0' + units: bps + description: 'Estimated bandwidth of the network interface if any.' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.GUID == "{#IFGUID}")].Speed.first()' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: JAVASCRIPT + parameters: + - 'return (value==''9223372036854775807'' ? 0 : value)' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + - uuid: 929917f16ecd4369a5535fe8178248d6 + name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' + type: DEPENDENT + key: 'net.if.status["{#IFGUID}"]' + delay: '0' + trends: '0' + description: 'The operational status of the network interface.' + valuemap: + name: 'Win32_NetworkAdapter::NetConnectionStatus' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.GUID == "{#IFGUID}")].NetConnectionStatus.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: f9d1ac2feb0e43249cc849166ca9014c + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"])<>2 and (last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"],#1)<>last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"],#2))' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"])=2 or {$IFCONTROL:"{#IFNAME}"}=0' + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. + No new trigger will be fired if this interface is down. + 3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 1e513ffd8cd24a39a04b2140dce65b62 + name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' + type: DEPENDENT + key: 'net.if.type["{#IFGUID}"]' + delay: '0' + trends: '0' + description: 'The type of the network interface.' + valuemap: + name: 'Win32_NetworkAdapter::AdapterTypeId' + preprocessing: + - type: JSONPATH + parameters: + - '$[?(@.GUID == "{#IFGUID}")].AdapterTypeId.first()' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]' + tags: + - tag: component + value: network + - tag: description + value: '{#IFALIAS}' + - tag: interface + value: '{#IFNAME}' + trigger_prototypes: + - uuid: 27a60f88cbd0457291153105ace75e4d + expression: | + change(/Windows by Zabbix agent active/net.if.speed["{#IFGUID}"])<0 and + last(/Windows by Zabbix agent active/net.if.speed["{#IFGUID}"])>0 and + last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"])=2 + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' + opdata: 'Current reported speed: {ITEM.LASTVALUE1}' + priority: INFO + description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"])<>2 and (last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"],#1)<>last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"],#2))' + recovery_expression: 'last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"])=2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: capacity + - uuid: a9ead42a45f5496a84a6a2bc619cece4 + expression: | + (avg(/Windows by Zabbix agent active/net.if.in["{#IFGUID}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Windows by Zabbix agent active/net.if.speed["{#IFGUID}"]) or + avg(/Windows by Zabbix agent active/net.if.out["{#IFGUID}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Windows by Zabbix agent active/net.if.speed["{#IFGUID}"])) and + last(/Windows by Zabbix agent active/net.if.speed["{#IFGUID}"])>0 + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + avg(/Windows by Zabbix agent active/net.if.in["{#IFGUID}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Windows by Zabbix agent active/net.if.speed["{#IFGUID}"]) and + avg(/Windows by Zabbix agent active/net.if.out["{#IFGUID}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Windows by Zabbix agent active/net.if.speed["{#IFGUID}"]) + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' + event_name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' + opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' + manual_close: 'YES' + dependencies: + - name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"])<>2 and (last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"],#1)<>last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"],#2))' + recovery_expression: 'last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"])=2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: performance + - uuid: 1945fd9bc15c471fb050d0a5430245a6 + expression: | + min(/Windows by Zabbix agent active/net.if.in["{#IFGUID}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + or min(/Windows by Zabbix agent active/net.if.out["{#IFGUID}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: | + max(/Windows by Zabbix agent active/net.if.in["{#IFGUID}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + and max(/Windows by Zabbix agent active/net.if.out["{#IFGUID}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 + name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High error rate' + event_name: 'Windows: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' + opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' + manual_close: 'YES' + dependencies: + - name: 'Windows: Interface {#IFNAME}({#IFALIAS}): Link down' + expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"])<>2 and (last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"],#1)<>last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"],#2))' + recovery_expression: 'last(/Windows by Zabbix agent active/net.if.status["{#IFGUID}"])=2 or {$IFCONTROL:"{#IFNAME}"}=0' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 1181f5ffedb643d4953c9fd5df14a21e + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Windows by Zabbix agent active' + key: 'net.if.in["{#IFGUID}"]' + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'Windows by Zabbix agent active' + key: 'net.if.out["{#IFGUID}"]' + - sortorder: '2' + color: 00611C + yaxisside: RIGHT + item: + host: 'Windows by Zabbix agent active' + key: 'net.if.out["{#IFGUID}",errors]' + - sortorder: '3' + color: F7941D + yaxisside: RIGHT + item: + host: 'Windows by Zabbix agent active' + key: 'net.if.in["{#IFGUID}",errors]' + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'Windows by Zabbix agent active' + key: 'net.if.out["{#IFGUID}",dropped]' + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'Windows by Zabbix agent active' + key: 'net.if.in["{#IFGUID}",dropped]' + master_item: + key: 'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + output = JSON.parse(value).map(function(net){ + return { + "{#IFNAME}": net.Name, + "{#IFDESCR}": net.Description, + "{#IFALIAS}": net.NetConnectionID, + "{#IFGUID}": net.GUID + }}) + return JSON.stringify({"data": output}) + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: b2a9c04e3e0846ab89d5dbc39d273567 + name: 'Physical disks discovery' + type: ZABBIX_ACTIVE + key: 'perf_instance_en.discovery[PhysicalDisk]' + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.MATCHES}' + formulaid: A + - macro: '{#DEVNAME}' + value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'Discovery of installed physical disks.' + item_prototypes: + - uuid: 714bbd069d34400895df413fe4627543 + name: '{#DEVNAME}: Disk utilization by idle time' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\% Idle Time",60]' + value_type: FLOAT + units: '%' + description: 'This item is the percentage of elapsed time that the selected disk drive was busy servicing read or writes requests based on idle time.' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return (100 - value)' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + trigger_prototypes: + - uuid: 00031ae791d6424dbd29c91be91a249f + expression: 'min(/Windows by Zabbix agent active/perf_counter_en["\PhysicalDisk({#DEVNAME})\% Idle Time",60],15m)>{$VFS.DEV.UTIL.MAX.WARN}' + name: 'Windows: {#DEVNAME}: Disk is overloaded' + event_name: 'Windows: {#DEVNAME}: Disk is overloaded (util > {$VFS.DEV.UTIL.MAX.WARN}% for 15m)' + priority: WARNING + description: 'The disk appears to be under heavy load.' + manual_close: 'YES' + dependencies: + - name: 'Windows: {#DEVNAME}: Disk read request responses are too high' + expression: 'min(/Windows by Zabbix agent active/perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Read",60],15m) > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"}' + - name: 'Windows: {#DEVNAME}: Disk write request responses are too high' + expression: 'min(/Windows by Zabbix agent active/perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Write",60],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}' + tags: + - tag: scope + value: performance + - uuid: abdcdffc92114fda93d4893c772cf14a + name: '{#DEVNAME}: Average disk read queue length' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk Read Queue Length",60]' + value_type: FLOAT + description: 'Average disk read queue, the number of requests outstanding on the disk at the time the performance data is collected.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 208b3a3868844e85a7e3e5f3940d744d + name: '{#DEVNAME}: Disk read request avg waiting time' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Read",60]' + value_type: FLOAT + units: s + description: 'The average time for read requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + trigger_prototypes: + - uuid: f6c28fa8eef542a786b29d745dd2e56f + expression: 'min(/Windows by Zabbix agent active/perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Read",60],15m) > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"}' + name: 'Windows: {#DEVNAME}: Disk read request responses are too high' + event_name: 'Windows: {#DEVNAME}: Disk read request responses are too high (read > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"}s for 15m)' + priority: WARNING + description: 'This trigger might indicate the disk {#DEVNAME} saturation.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 6a162aca790c48a7bd726d54494d67e9 + name: '{#DEVNAME}: Disk write request avg waiting time' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Write",60]' + value_type: FLOAT + units: s + description: 'The average time for write requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + trigger_prototypes: + - uuid: 9a0c7aa60e0e40d8abec9be6d6d49190 + expression: 'min(/Windows by Zabbix agent active/perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Write",60],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}' + name: 'Windows: {#DEVNAME}: Disk write request responses are too high' + event_name: 'Windows: {#DEVNAME}: Disk write request responses are too high (write > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}s for 15m)' + priority: WARNING + description: 'This trigger might indicate the disk {#DEVNAME} saturation.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: ba3a369741544f6c88a476a4f2d30ab2 + name: '{#DEVNAME}: Average disk write queue length' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk Write Queue Length",60]' + value_type: FLOAT + description: 'Average disk write queue, the number of requests outstanding on the disk at the time the performance data is collected.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 24d15f53439148919e11d5811f25adf1 + name: '{#DEVNAME}: Disk average queue size (avgqu-sz)' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Current Disk Queue Length",60]' + value_type: FLOAT + description: 'The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: c1424c1c2fe647a8baf3357c34ae261e + name: '{#DEVNAME}: Disk read rate' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Reads/sec",60]' + value_type: FLOAT + units: '!r/s' + description: 'Rate of read operations on the disk.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + - uuid: 4d10e563bbd1402daa1c9c8516095aa8 + name: '{#DEVNAME}: Disk write rate' + type: ZABBIX_ACTIVE + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Writes/sec",60]' + value_type: FLOAT + units: '!w/s' + description: 'Rate of write operations on the disk.' + tags: + - tag: component + value: storage + - tag: disk + value: '{#DEVNAME}' + graph_prototypes: + - uuid: e249ca7462a14508bdbdbf748102015a + name: '{#DEVNAME}: Disk average queue length' + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk Read Queue Length",60]' + - sortorder: '1' + color: F63100 + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk Write Queue Length",60]' + - uuid: 790265fa66e14e97badadfce392ef8df + name: '{#DEVNAME}: Disk average waiting time' + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Read",60]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Avg. Disk sec/Write",60]' + - uuid: 024945537eab4facb18483b6f3ce8d3e + name: '{#DEVNAME}: Disk read/write rates' + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Reads/sec",60]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Writes/sec",60]' + - uuid: 70de55df5604410d8a67cdca31957b03 + name: '{#DEVNAME}: Disk utilization and queue' + graph_items: + - color: 199C0D + yaxisside: RIGHT + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\Current Disk Queue Length",60]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\PhysicalDisk({#DEVNAME})\% Idle Time",60]' + preprocessing: + - type: STR_REPLACE + parameters: + - '{#INSTANCE}' + - '{#DEVNAME}' + - uuid: dbde6e6c7c13436b9bd20230f1d309ed + name: 'Windows services discovery' + type: ZABBIX_ACTIVE + key: service.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#SERVICE.NAME}' + value: '{$SERVICE.NAME.MATCHES}' + formulaid: A + - macro: '{#SERVICE.NAME}' + value: '{$SERVICE.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#SERVICE.STARTUPNAME}' + value: '{$SERVICE.STARTUPNAME.MATCHES}' + formulaid: C + - macro: '{#SERVICE.STARTUPNAME}' + value: '{$SERVICE.STARTUPNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'Used for the discovery of Windows services of different types as defined in the template''s macros.' + item_prototypes: + - uuid: d6379e85f1974734abbe60fef1a6ca1d + name: 'State of service "{#SERVICE.NAME}" ({#SERVICE.DISPLAYNAME})' + type: ZABBIX_ACTIVE + key: 'service.info["{#SERVICE.NAME}",state]' + valuemap: + name: 'Windows service state' + tags: + - tag: component + value: system + - tag: name + value: '{#SERVICE.DISPLAYNAME}' + - tag: service + value: '{#SERVICE.NAME}' + trigger_prototypes: + - uuid: c6f2c1c32cdf401091e4439624a24fab + expression: 'min(/Windows by Zabbix agent active/service.info["{#SERVICE.NAME}",state],#3)<>0' + name: 'Windows: "{#SERVICE.NAME}" ({#SERVICE.DISPLAYNAME}) is not running' + event_name: 'Windows: "{#SERVICE.NAME}" ({#SERVICE.DISPLAYNAME}) is not running (startup type {#SERVICE.STARTUPNAME})' + priority: AVERAGE + description: 'The service has a state other than "Running" for the last three times.' + tags: + - tag: scope + value: notice + - uuid: 4fbbdf83609e48e68011f6c394c652f9 + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: vfs.fs.dependent.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSDRIVETYPE}' + value: '{$VFS.FS.FSDRIVETYPE.MATCHES}' + formulaid: A + - macro: '{#FSDRIVETYPE}' + value: '{$VFS.FS.FSDRIVETYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: C + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: E + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: F + description: 'Discovery of filesystems of different types.' + item_prototypes: + - uuid: 821daa0e25a2456ca637e441a844dfe6 + name: 'FS [{#FSLABEL}({#FSNAME})]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + delay: '0' + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.free + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 8949201f93ab46f0a0ad95ca6ce6124c + name: 'FS [{#FSLABEL}({#FSNAME})]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pused + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 5bed682545044584852888d96454df86 + expression: 'min(/Windows by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSLABEL}({#FSNAME})"}' + name: 'Windows: FS [{#FSLABEL}({#FSNAME})]: Space is critically low' + event_name: 'Windows: FS [{#FSLABEL}({#FSNAME})]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSLABEL}({#FSNAME})"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 1e5e9718c5a14099b9421ff7956b2f33 + expression: 'min(/Windows by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSLABEL}({#FSNAME})"}' + name: 'Windows: FS [{#FSLABEL}({#FSNAME})]: Space is low' + event_name: 'Windows: FS [{#FSLABEL}({#FSNAME})]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSLABEL}({#FSNAME})"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'Windows: FS [{#FSLABEL}({#FSNAME})]: Space is critically low' + expression: 'min(/Windows by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSLABEL}({#FSNAME})"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: d45f2c3469dd424486bdee586e4a61eb + name: 'FS [{#FSLABEL}({#FSNAME})]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + delay: '0' + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.total + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: ddd24d7eaa5742ac9d6cbae42bcfa1ae + name: 'FS [{#FSLABEL}({#FSNAME})]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + delay: '0' + units: B + description: 'Used storage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.used + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: b9ad1677ea6841309c7dc3a304b61c37 + name: 'FS [{#FSLABEL}({#FSNAME})]: Get data' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},data]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Intermediate data of `{#FSNAME}` filesystem.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.fsname==''{#FSNAME}'')].first()' + master_item: + key: vfs.fs.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + graph_prototypes: + - uuid: 478c7beb397a48318994fc96acc2c4da + name: 'FS [{#FSLABEL}({#FSNAME})]: Space usage graph, in %' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'Windows by Zabbix agent active' + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + - uuid: 8d0581d07b92406aa9f007f6d03ad24e + name: 'FS [{#FSLABEL}({#FSNAME})]: Space utilization chart' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'Windows by Zabbix agent active' + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'Windows by Zabbix agent active' + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'Windows by Zabbix agent active' + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + master_item: + key: vfs.fs.get + lld_macro_paths: + - lld_macro: '{#FSDRIVETYPE}' + path: $.fsdrivetype + - lld_macro: '{#FSLABEL}' + path: $.fslabel + - lld_macro: '{#FSNAME}' + path: $.fsname + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'fsname': filesystem.fsname, + 'fstype': filesystem.fstype, + 'fslabel': filesystem.fslabel, + 'fsdrivetype': filesystem.fsdrivetype + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: os + - tag: target + value: windows + macros: + - macro: '{$AGENT.NODATA_TIMEOUT}' + value: 30m + description: 'No data timeout for active agents. Consider to keep it relatively high.' + - macro: '{$AGENT.TIMEOUT}' + value: 5m + description: 'Timeout after which agent is considered unavailable.' + - macro: '{$CPU.INTERRUPT.CRIT.MAX}' + value: '50' + description: 'The critical threshold of the % Interrupt Time counter.' + - macro: '{$CPU.PRIV.CRIT.MAX}' + value: '30' + description: 'The threshold of the % Privileged Time counter.' + - macro: '{$CPU.QUEUE.CRIT.MAX}' + value: '3' + description: 'The threshold of the Processor Queue Length counter.' + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + description: 'The critical threshold of the CPU utilization expressed in %.' + - macro: '{$IF.ERRORS.WARN}' + value: '2' + description: 'Warning threshold of error packet rate. Can be used with interface name as context.' + - macro: '{$IF.UTIL.MAX}' + value: '90' + description: 'Used as a threshold in the interface utilization trigger.' + - macro: '{$IFCONTROL}' + value: '1' + description: 'Macro for the interface operational state for the "link down" trigger. Can be used with interface name as context.' + - macro: '{$MEM.PAGE_SEC.CRIT.MAX}' + value: '1000' + description: 'The warning threshold of the Memory Pages/sec counter.' + - macro: '{$MEM.PAGE_TABLE_CRIT.MIN}' + value: '5000' + description: 'The warning threshold of the Free System Page Table Entries counter.' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + description: 'The warning threshold of the Memory util item.' + - macro: '{$NET.IF.IFALIAS.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' + value: CHANGE_THIS + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFDESCR.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' + value: CHANGE_THIS + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.MATCHES}' + value: '.*' + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' + value: Miniport|Virtual|Teredo|Kernel|Loopback|Bluetooth|HTTPS|6to4|QoS|Layer + description: 'Used in Network interface discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.NAME.MATCHES}' + value: '^.*$' + description: 'Used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.NAME.NOT_MATCHES}' + value: '^(?:RemoteRegistry|MMCSS|gupdate|SysmonLog|clr_optimization_v.+|sppsvc|gpsvc|Pml Driver HPZ12|Net Driver HPZ12|MapsBroker|IntelAudioService|Intel\(R\) TPM Provisioning Service|dbupdate|DoSvc|CDPUserSvc_.+|WpnUserService_.+|OneSyncSvc_.+|WbioSrvc|BITS|tiledatamodelsvc|GISvc|ShellHWDetection|TrustedInstaller|TabletInputService|CDPSvc|wuauserv|edgeupdate|cbdhsvc_.+)$' + description: 'Used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.STARTUPNAME.MATCHES}' + value: '^(?:automatic|automatic delayed)$' + description: 'Used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SERVICE.STARTUPNAME.NOT_MATCHES}' + value: '^(?:manual|disabled)$' + description: 'Used in Service discovery. Can be overridden on the host or linked template level.' + - macro: '{$SWAP.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the minimum free swap.' + - macro: '{$VFS.DEV.DEVNAME.MATCHES}' + value: '.*' + description: 'Used in physical disk discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}' + value: _Total + description: 'Used in physical disk discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.DEV.READ.AWAIT.WARN}' + value: '0.02' + description: 'Disk read average response time (in s) before the trigger fires.' + - macro: '{$VFS.DEV.UTIL.MAX.WARN}' + value: '95' + description: 'The warning threshold of disk time utilization in percent.' + - macro: '{$VFS.DEV.WRITE.AWAIT.WARN}' + value: '0.02' + description: 'Disk write average response time (in s) before the trigger fires.' + - macro: '{$VFS.FS.FSDRIVETYPE.MATCHES}' + value: fixed + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSDRIVETYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: '.*' + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: '^(?:/dev|/sys|/run|/proc|.+/shm$)' + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: '.*' + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: 681dd7ed662243709a406069f4a4a206 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent active' + name: 'FS [{#FSLABEL}({#FSNAME})]: Space utilization chart' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent active' + name: 'FS [{#FSLABEL}({#FSNAME})]: Space usage graph, in %' + - type: STRING + name: reference + value: AAAEC + - uuid: 59033ebe1b084a86b820fc59049db125 + name: 'Network interfaces' + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent active' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAI + - uuid: 234161507ccb4d83b111cb31e0db8ae5 + name: 'System performance' + pages: + - widgets: + - type: graph + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Windows by Zabbix agent active' + name: 'Windows: CPU usage' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Windows by Zabbix agent active' + name: 'Windows: Memory utilization' + - type: STRING + name: reference + value: AAAAC + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent active' + name: 'FS [{#FSLABEL}({#FSNAME})]: Space utilization chart' + - type: STRING + name: reference + value: AAAEA + - type: graphprototype + 'y': '15' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent active' + name: '{#DEVNAME}: Disk read/write rates' + - type: STRING + name: reference + value: AAAAF + - type: graphprototype + 'y': '20' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent active' + name: '{#DEVNAME}: Disk utilization and queue' + - type: STRING + name: reference + value: AAAAG + - type: graphprototype + 'y': '25' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Windows by Zabbix agent active' + name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' + - type: STRING + name: reference + value: AAAAH + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\System\Processor Queue Length"]' + - type: STRING + name: reference + value: AAAAB + - type: INTEGER + name: source_type + value: '1' + - type: graph + x: '36' + 'y': '5' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Windows by Zabbix agent active' + name: 'Windows: Swap usage' + - type: STRING + name: reference + value: AAAAD + valuemaps: + - uuid: 224ca38281f04c83844763251505cdce + name: 'Win32_NetworkAdapter::AdapterTypeId' + mappings: + - value: '0' + newvalue: 'Ethernet 802.3' + - value: '1' + newvalue: 'Token Ring 802.5' + - value: '2' + newvalue: 'Fiber Distributed Data Interface (FDDI)' + - value: '3' + newvalue: 'Wide Area Network (WAN)' + - value: '4' + newvalue: LocalTalk + - value: '5' + newvalue: 'Ethernet using DIX header format' + - value: '6' + newvalue: ARCNET + - value: '7' + newvalue: 'ARCNET (878.2)' + - value: '8' + newvalue: ATM + - value: '9' + newvalue: Wireless + - value: '10' + newvalue: 'Infrared Wireless' + - value: '11' + newvalue: Bpc + - value: '12' + newvalue: CoWan + - value: '13' + newvalue: '1394' + - uuid: 850e339a24de4ef6a0a881dc57bfa3a6 + name: 'Win32_NetworkAdapter::NetConnectionStatus' + mappings: + - value: '0' + newvalue: Disconnected + - value: '1' + newvalue: Connecting + - value: '2' + newvalue: Connected + - value: '3' + newvalue: Disconnecting + - value: '4' + newvalue: 'Hardware Not Present' + - value: '5' + newvalue: 'Hardware Disabled' + - value: '6' + newvalue: 'Hardware Malfunction' + - value: '7' + newvalue: 'Media Disconnected' + - value: '8' + newvalue: Authenticating + - value: '9' + newvalue: 'Authentication Succeeded' + - value: '10' + newvalue: 'Authentication Failed' + - value: '11' + newvalue: 'Invalid Address' + - value: '12' + newvalue: 'Credentials Required' + - uuid: e29ffb786c21406aa2338e3d35b484ef + name: 'Windows service state' + mappings: + - value: '0' + newvalue: Running + - value: '1' + newvalue: Paused + - value: '2' + newvalue: 'Start pending' + - value: '3' + newvalue: 'Pause pending' + - value: '4' + newvalue: 'Continue pending' + - value: '5' + newvalue: 'Stop pending' + - value: '6' + newvalue: Stopped + - value: '7' + newvalue: Unknown + - value: '255' + newvalue: 'No such service' + - uuid: 131de6a1016e43019d7cac2ce76901d4 + name: zabbix.host.active_agent.available + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: available + - value: '2' + newvalue: 'not available' + - uuid: 0b50ea7e6695421da023ece0a23bed10 + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up + triggers: + - uuid: 384393bb344e497382ea10e7fce7fcb3 + expression: 'min(/Windows by Zabbix agent active/perf_counter_en["\System\Processor Queue Length"],5m) - last(/Windows by Zabbix agent active/wmi.get[root/cimv2,"Select NumberOfLogicalProcessors from Win32_ComputerSystem"]) * 2 > {$CPU.QUEUE.CRIT.MAX}' + name: 'Windows: CPU queue length is too high' + event_name: 'Windows: CPU queue length is too high (over {$CPU.QUEUE.CRIT.MAX} for 5m)' + priority: WARNING + description: 'The CPU Queue Length in the last 5 minutes exceeds `{$CPU.QUEUE.CRIT.MAX}`. According to actual observations, PQL should not exceed the number of cores * 2. To fine-tune the conditions, use the macro `{$CPU.QUEUE.CRIT.MAX }`.' + dependencies: + - name: 'Windows: High CPU utilization' + expression: 'min(/Windows by Zabbix agent active/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' + tags: + - tag: scope + value: performance + - uuid: ac93631f79584e2d9909f4bb2f12c866 + expression: 'max(/Windows by Zabbix agent active/system.swap.pfree,5m)<{$SWAP.PFREE.MIN.WARN} and last(/Windows by Zabbix agent active/system.swap.size[,total])>0' + name: 'Windows: High swap space usage' + event_name: 'Windows: High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)' + opdata: 'Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}' + priority: WARNING + description: 'This trigger is ignored, if there is no swap configured' + dependencies: + - name: 'Windows: High memory utilization' + expression: 'min(/Windows by Zabbix agent active/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}' + tags: + - tag: scope + value: performance + graphs: + - uuid: 133a9930f45b448abbf35fe3a00d10c6 + name: 'Windows: CPU jumps' + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\System\Context Switches/sec"]' + - sortorder: '1' + color: F63100 + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\Processor Information(_total)\% Interrupt Time"]' + - uuid: 2a650f6de7804835a9a02db021649fca + name: 'Windows: CPU usage' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\Processor Information(_total)\% User Time"]' + - sortorder: '1' + color: F63100 + item: + host: 'Windows by Zabbix agent active' + key: 'perf_counter_en["\Processor Information(_total)\% Privileged Time"]' + - uuid: 0865f60b2cd845aea2f2daad93c3bf83 + name: 'Windows: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Windows by Zabbix agent active' + key: system.cpu.util + - uuid: f09c95d4637140c89a7b43165906db96 + name: 'Windows: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'Windows by Zabbix agent active' + key: vm.memory.util + - uuid: 441075d89a7045c283a7da9dd74e2a1b + name: 'Windows: Swap usage' + graph_items: + - color: 199C0D + item: + host: 'Windows by Zabbix agent active' + key: system.swap.free + - sortorder: '1' + color: F63100 + item: + host: 'Windows by Zabbix agent active' + key: 'system.swap.size[,total]' diff --git a/YugabyteDB_Cluster_by_HTTP.yaml b/YugabyteDB_Cluster_by_HTTP.yaml new file mode 100644 index 0000000..1fea5e6 --- /dev/null +++ b/YugabyteDB_Cluster_by_HTTP.yaml @@ -0,0 +1,4596 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: f5fff9a83f774f4688692ad58aa35d45 + template: 'YugabyteDB Cluster by HTTP' + name: 'YugabyteDB Cluster by HTTP' + description: | + This template is designed for the deployment of YugabyteDB clusters monitoring by Zabbix via HTTP and doesn't require any external scripts. This template will be automatically connected to discovered entities with all required parameters pre-defined. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: Templates/Databases + items: + - uuid: 4872cb50f8284ff6aa07c530156f324e + name: 'YSQL connections average used' + type: DEPENDENT + key: yugabytedb.cluster.connection.count + delay: '0' + description: 'Cumulative number of connections to the YSQL backend for all nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.AVERAGE_YSQL_CONNECTION_COUNT + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: connection + - uuid: 5bfd7adb38334116a5a54e2a0e2847f9 + name: 'YSQL connections limit' + type: DEPENDENT + key: yugabytedb.cluster.connection.limit + delay: '0' + description: 'The limit of the number of connections to the YSQL backend for all nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_CONNECTION_LIMIT + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: connection + - uuid: 187e373dd49a4214b1862393538ff209 + name: 'YSQL connections maximum used' + type: DEPENDENT + key: yugabytedb.cluster.connection.max + delay: '0' + description: 'Maximum of used connections to the YSQL backend for all nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_MAX_CONNECTION_COUNT + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: connection + - uuid: a7c388d2e66b48469e47a55cbb6ec614 + name: 'YSQL connections utilization' + type: CALCULATED + key: yugabytedb.cluster.connection.utilization + value_type: FLOAT + units: '%' + params: '(last(//yugabytedb.cluster.connection.count)/last(//yugabytedb.cluster.connection.limit))*100' + description: 'Cumulative number of connections to the YSQL backend for all nodes, expressed in percent.' + tags: + - tag: component + value: cluster + - tag: component + value: connection + triggers: + - uuid: 5caf42a5309a4f0f834b6058f4741a44 + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.connection.utilization,5m) > {$YUGABYTEDB.CONNECTION.UTILIZATION.WARN}' + name: 'YugabyteDB Cluster: Average utilization of connections is high' + event_name: 'YugabyteDB Cluster: Average utilization of connections is high (over {$YUGABYTEDB.CONNECTION.UTILIZATION.WARN}% for 5m)' + opdata: 'Current connections utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'YugabyteDB Cluster uses more than {$YUGABYTEDB.CONNECTION.UTILIZATION.WARN}% of the connection limit.' + dependencies: + - name: 'YugabyteDB Cluster: Average utilization of connections is too high' + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.connection.utilization,5m) > {$YUGABYTEDB.CONNECTION.UTILIZATION.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 68d2710963394afe8218178c98e88c62 + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.connection.utilization,5m) > {$YUGABYTEDB.CONNECTION.UTILIZATION.CRIT}' + name: 'YugabyteDB Cluster: Average utilization of connections is too high' + event_name: 'YugabyteDB Cluster: Average utilization of connections is too high (over {$YUGABYTEDB.CONNECTION.UTILIZATION.CRIT}% for 5m)' + opdata: 'Current connections utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'YugabyteDB Cluster uses more than {$YUGABYTEDB.CONNECTION.UTILIZATION.CRIT}% of the connection limit.' + tags: + - tag: scope + value: performance + - uuid: 8065a31bd61b494a9edf94692c4846ff + name: 'CPU utilization' + type: DEPENDENT + key: yugabytedb.cluster.cpu.utilization + delay: '0' + value_type: FLOAT + units: '%' + description: 'The percentage of CPU use being consumed by the tablet or master server Yugabyte processes, as well as other processes, if any.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.CPU_USAGE + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: cpu + triggers: + - uuid: 22340ce9ea2e457fa4270498bfc53666 + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.cpu.utilization,5m) > {$YUGABYTEDB.CPU.UTILIZATION.WARN}' + name: 'YugabyteDB Cluster: CPU utilization is high' + event_name: 'YugabyteDB Cluster: CPU utilization is high (over {$YUGABYTEDB.CPU.UTILIZATION.WARN}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'YugabyteDB Cluster CPU utilization is more than {$YUGABYTEDB.CPU.UTILIZATION.WARN}%. The system might be slow to respond.' + dependencies: + - name: 'YugabyteDB Cluster: CPU utilization is too high' + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.cpu.utilization,5m) > {$YUGABYTEDB.CPU.UTILIZATION.CRIT}' + tags: + - tag: scope + value: performance + - uuid: ed88478e0a784c8dbbe95c20b08c167e + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.cpu.utilization,5m) > {$YUGABYTEDB.CPU.UTILIZATION.CRIT}' + name: 'YugabyteDB Cluster: CPU utilization is too high' + event_name: 'YugabyteDB Cluster: CPU utilization is too high (over {$YUGABYTEDB.CPU.UTILIZATION.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'YugabyteDB Cluster CPU utilization is more than {$YUGABYTEDB.CPU.UTILIZATION.CRIT}%. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 03b2e6e400334c0eb6e6b2c7efe8ddcf + name: 'Disk space provisioned' + type: DEPENDENT + key: yugabytedb.cluster.disk.provisioned + delay: '0' + value_type: FLOAT + units: B + description: 'Shows the amount of disk space provisioned for the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.PROVISIONED_DISK_SPACE_GB + - type: MULTIPLIER + parameters: + - '1073741824' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: storage + - uuid: 2e59d947823e4e6b8a3eb9cd28cb8602 + name: 'Disk read, Bps' + type: DEPENDENT + key: yugabytedb.cluster.disk.read.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'The number of bytes being read from disk per second, averaged over each node.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DISK_BYTES_READ_MB_PER_SEC + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: storage + - uuid: 7a7c47740d01462f82ccb8649de19a23 + name: 'Disk read OPS' + type: DEPENDENT + key: yugabytedb.cluster.disk.read.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The number of read operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.READ_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: performance + - uuid: 03cd79b37aa543d4ba3ce9fb154513f2 + name: 'Disk space usage' + type: DEPENDENT + key: yugabytedb.cluster.disk.usage + delay: '0' + value_type: FLOAT + units: B + description: 'Shows the amount of disk space used by the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DISK_USAGE_GB + - type: MULTIPLIER + parameters: + - '1073741824' + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: storage + - uuid: b2de999838914ca2bfc2c4fdfd22db74 + name: 'Disk space utilization' + type: CALCULATED + key: yugabytedb.cluster.disk.utilization + value_type: FLOAT + units: '%' + params: '(last(//yugabytedb.cluster.disk.usage)/last(//yugabytedb.cluster.disk.provisioned))*100' + description: 'Shows the percentage of disk space used by the cluster.' + tags: + - tag: component + value: cluster + - tag: component + value: storage + triggers: + - uuid: 3571704c29e040b198a6e72d7526c98a + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.disk.utilization,5m) > {$YUGABYTEDB.DISK.UTILIZATION.CRIT}' + name: 'YugabyteDB Cluster: Storage space is critically low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'YugabyteDB Cluster uses more than {$YUGABYTEDB.DISK.UTILIZATION.CRIT}% of disk space.' + tags: + - tag: scope + value: capacity + - uuid: 21623809368a43b0bdfb127f2fdea22c + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.disk.utilization,5m) > {$YUGABYTEDB.DISK.UTILIZATION.WARN}' + name: 'YugabyteDB Cluster: Storage space is low' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'YugabyteDB Cluster uses more than {$YUGABYTEDB.DISK.UTILIZATION.WARN}% of disk space.' + dependencies: + - name: 'YugabyteDB Cluster: Storage space is critically low' + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.disk.utilization,5m) > {$YUGABYTEDB.DISK.UTILIZATION.CRIT}' + tags: + - tag: scope + value: capacity + - uuid: c528c1692fe84e7c85ec99f5802dea15 + name: 'Disk write, Bps' + type: DEPENDENT + key: yugabytedb.cluster.disk.write.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'The number of bytes being written to disk per second, averaged over each node.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.DISK_BYTES_WRITTEN_MB_PER_SEC + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: storage + - uuid: 0badafcd38d34e4faa70f95ba501658a + name: 'Disk write OPS' + type: DEPENDENT + key: yugabytedb.cluster.disk.write.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The number of write operations per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.WRITE_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: performance + - uuid: d8f71197e0e147fea4de2a17d4b1ad81 + name: 'Get cluster' + type: SCRIPT + key: yugabytedb.cluster.get + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var YugabyteDB = { + params: {}, + clusters: [], + error_msg: '', + + setParams: function (params) { + ['account_id', 'project_id', 'token', 'cluster_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + YugabyteDB.params = params; + YugabyteDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(YugabyteDB.tls.options); + if (typeof YugabyteDB.params.proxy !== 'undefined' && YugabyteDB.params.proxy !== '') { + request.setProxy(YugabyteDB.params.proxy); + } + if (YugabyteDB.params.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + YugabyteDB.params.token); + } + + Zabbix.log(4, '[ YugabyteDB ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ YugabyteDB ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API:' + error; + } + } + + }; + + try { + YugabyteDB.setParams(JSON.parse(value)); + + cluster = YugabyteDB.request( + 'https://cloud.yugabyte.com/api/public/v1/accounts/' + YugabyteDB.params.account_id + '/projects/' + YugabyteDB.params.project_id + '/clusters/' + YugabyteDB.params.cluster_id + ) + + YugabyteDB.clusters = cluster.data; + } + catch (error) { + Zabbix.log(3, '[ YugabyteDB ] ERROR: ' + error); + YugabyteDB.error_msg = 'Failed to get data from API:' + error; + } + + return JSON.stringify({'data': YugabyteDB.clusters, 'error': YugabyteDB.error_msg}); + description: 'Get raw data about clusters.' + timeout: 10s + parameters: + - name: account_id + value: '{$YUGABYTEDB.ACCOUNT.ID}' + - name: cluster_id + value: '{$YUGABYTEDB.CLUSTER.ID}' + - name: project_id + value: '{$YUGABYTEDB.PROJECT.ID}' + - name: proxy + value: '{$YUGABYTEDB.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"YugabyteDB Cluster"}' + - name: token + value: '{$YUGABYTEDB.ACCESS.TOKEN}' + tags: + - tag: component + value: raw + - uuid: fe9960991a4540e795a0a113cd251271 + name: 'Get cluster item error' + type: DEPENDENT + key: yugabytedb.cluster.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the cluster item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: error + - uuid: e5415e8c03ac4a61aa10a6b35a18b084 + name: 'Health state' + type: DEPENDENT + key: yugabytedb.cluster.health.state + delay: '0' + description: | + Current state regarding the health of the cluster: + - HEALTHY + - NEEDS_ATTENTION + - UNHEALTHY + - UNKNOWN + valuemap: + name: 'YugabyteDB Health state' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var cluster = JSON.parse(value); + + const idx = [ + 'HEALTHY', + 'NEEDS_ATTENTION', + 'UNHEALTHY', + 'UNKNOWN', + ].indexOf(cluster.data.info.health_info.state); + return idx !== -1 ? idx : 3; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: cluster + triggers: + - uuid: e111a563fb9947eda48a56ad5ef59891 + expression: 'last(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.health.state,#1) <> 0' + name: 'YugabyteDB Cluster: Cluster is not healthy' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'YugabyteDB Cluster is not healthy.' + tags: + - tag: scope + value: availability + - uuid: 955291127a4e483693c1db6690a1beab + name: 'Memory total' + type: DEPENDENT + key: yugabytedb.cluster.memory.total + delay: '0' + value_type: FLOAT + units: B + description: 'Shows the amount of RAM provisioned to the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.MEMORY_TOTAL_GB + - type: MULTIPLIER + parameters: + - '1073741824' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: memory + - uuid: 682d46a939cf4ec186d4081e7a8eee42 + name: 'Memory usage' + type: DEPENDENT + key: yugabytedb.cluster.memory.usage + delay: '0' + value_type: FLOAT + units: B + description: 'Shows the amount of RAM used on the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.MEMORY_USAGE_GB + - type: MULTIPLIER + parameters: + - '1073741824' + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: memory + - uuid: 18e6de024a7a4ae48901f455dbd0a373 + name: 'Memory utilization' + type: CALCULATED + key: yugabytedb.cluster.memory.utilization + value_type: FLOAT + units: '%' + params: '(last(//yugabytedb.cluster.memory.usage)/last(//yugabytedb.cluster.memory.total))*100' + description: 'Shows the amount of RAM used on the cluster, expressed in percent.' + tags: + - tag: component + value: cluster + - tag: component + value: memory + triggers: + - uuid: 5614204dbeca4b799989a13717824f07 + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.memory.utilization,5m) > {$YUGABYTEDB.MEMORY.CLUSTER.UTILIZATION.WARN}' + name: 'YugabyteDB Cluster: Memory utilization is high' + event_name: 'YugabyteDB Cluster: Memory utilization is high (>{$YUGABYTEDB.MEMORY.CLUSTER.UTILIZATION.WARN} for 5m)' + opdata: 'Current memory utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'YugabyteDB Cluster uses more than {$YUGABYTEDB.MEMORY.CLUSTER.UTILIZATION.WARN}% of memory.' + dependencies: + - name: 'YugabyteDB Cluster: Memory utilization is too high' + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.memory.utilization,5m) > {$YUGABYTEDB.MEMORY.CLUSTER.UTILIZATION.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 27a8c6b07e474581be53f5d896387f45 + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.memory.utilization,5m) > {$YUGABYTEDB.MEMORY.CLUSTER.UTILIZATION.CRIT}' + name: 'YugabyteDB Cluster: Memory utilization is too high' + event_name: 'YugabyteDB Cluster: Memory utilization is too high (>{$YUGABYTEDB.MEMORY.CLUSTER.UTILIZATION.CRIT} for 5m)' + opdata: 'Current memory utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'YugabyteDB Cluster uses more than {$YUGABYTEDB.MEMORY.CLUSTER.UTILIZATION.CRIT}% of memory.' + tags: + - tag: scope + value: performance + - uuid: 9c51b3d15ac448388e23c74d4e5bba3a + name: 'Get cluster metrics' + type: SCRIPT + key: yugabytedb.cluster.metric.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var YugabyteDB = { + params: {}, + metrics: {}, + error_msg: '', + + setParams: function (params) { + ['account_id', 'project_id', 'token', 'cluster_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + YugabyteDB.params = params; + YugabyteDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(YugabyteDB.tls.options); + if (typeof YugabyteDB.params.proxy !== 'undefined' && YugabyteDB.params.proxy !== '') { + request.setProxy(YugabyteDB.params.proxy); + } + if (YugabyteDB.params.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + YugabyteDB.params.token); + } + + Zabbix.log(4, '[ YugabyteDB ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ YugabyteDB ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API:' + error; + } + }, + + + get_last_values: function (values) { + var max_timestamp = 0; + var last_value = 0; + for (e in values) { + if (values[e][0] > max_timestamp) { + max_timestamp = values[e][0]; + last_value = values[e][1]; + }; + }; + return last_value; + }, + + + get_start_time: function() { + return Math.floor(Date.now() / 1000 - 300); + } + + }; + + metrics = [ + "CPU_USAGE", + "DISK_USAGE_GB", + "PROVISIONED_DISK_SPACE_GB", + "READ_OPS_PER_SEC", + "WRITE_OPS_PER_SEC", + "AVERAGE_READ_LATENCY_MS", + "AVERAGE_WRITE_LATENCY_MS", + "YSQL_CONNECTION_LIMIT", + "AVERAGE_YSQL_CONNECTION_COUNT", + "NODE_CLOCK_SKEW", + "DISK_BYTES_READ_MB_PER_SEC", + "DISK_BYTES_WRITTEN_MB_PER_SEC", + "FOLLOWER_LAG_MS", + "MEMORY_TOTAL_GB", + "MEMORY_USAGE_GB", + "NETWORK_RECEIVE_BYTES_MB_PER_SEC", + "NETWORK_TRANSMIT_BYTES_MB_PER_SEC", + "NETWORK_RECEIVE_ERRORS_PER_SEC", + "NETWORK_TRANSMIT_ERRORS_PER_SEC", + "MASTER_UP_STATUS", + "TSERVER_UP_STATUS", + "YSQL_MAX_CONNECTION_COUNT" + ] + + try { + YugabyteDB.setParams(JSON.parse(value)); + + var size = 6 + + for (var i = 0; i < Math.ceil(metrics.length/size); i++) { + var values = YugabyteDB.request( + 'https://cloud.yugabyte.com/api/public/v1/accounts/' + YugabyteDB.params.account_id + '/projects/' + YugabyteDB.params.project_id + '/clusters/' + YugabyteDB.params.cluster_id + '/metrics?metrics=' + metrics.slice((i * size), (i * size) + size).join('%2C') + '&start_time=' + YugabyteDB.get_start_time() + ); + + values.data.forEach(function (e) { + YugabyteDB.metrics[e.name] = YugabyteDB.get_last_values(e.values) + }); + }; + } + catch (error) { + Zabbix.log(3, '[ YugabyteDB ] ERROR: ' + error); + error_msg = 'Failed to get data from API:' + error; + } + + return JSON.stringify({'metrics': YugabyteDB.metrics, 'error': YugabyteDB.error_msg}); + description: 'Getting metrics for the cluster.' + timeout: 5s + parameters: + - name: account_id + value: '{$YUGABYTEDB.ACCOUNT.ID}' + - name: cluster_id + value: '{$YUGABYTEDB.CLUSTER.ID}' + - name: project_id + value: '{$YUGABYTEDB.PROJECT.ID}' + - name: proxy + value: '{$YUGABYTEDB.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"YugabyteDB Cluster"}' + - name: token + value: '{$YUGABYTEDB.ACCESS.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 58b766758f7644369d3a1d125e012c07 + name: 'Get cluster metrics item error' + type: DEPENDENT + key: yugabytedb.cluster.metric.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the cluster item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: error + - uuid: 91ace5e3a9a3428eb209e539c25f43b4 + name: 'Network receive, Bps' + type: DEPENDENT + key: yugabytedb.cluster.network.receive.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'The size of network packets received per second, averaged over nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.NETWORK_RECEIVE_BYTES_MB_PER_SEC + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: network + - uuid: 3503d33b5c35433093565aac0890c717 + name: 'Network receive error, rate' + type: DEPENDENT + key: yugabytedb.cluster.network.receive.error.rate + delay: '0' + value_type: FLOAT + description: 'The number of errors related to network packets received per second, averaged over nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.NETWORK_RECEIVE_ERRORS_PER_SEC + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: network + - uuid: 51e7acc58c824737af2b48475ede228d + name: 'Network transmit, Bps' + type: DEPENDENT + key: yugabytedb.cluster.network.transmit.bps + delay: '0' + value_type: FLOAT + units: Bps + description: 'The size of network packets transmitted per second, averaged over nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.NETWORK_TRANSMIT_BYTES_MB_PER_SEC + - type: MULTIPLIER + parameters: + - '1048576' + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: network + - uuid: 86c23bbe2d29444b85a6435508c53e28 + name: 'Network transmit error, rate' + type: DEPENDENT + key: yugabytedb.cluster.network.transmit.error.rate + delay: '0' + value_type: FLOAT + description: 'The number of errors related to network packets transmitted per second, averaged over nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.NETWORK_TRANSMIT_ERRORS_PER_SEC + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: network + - uuid: a64c4ba3b34045aba315dbb500aa86c4 + name: 'Number of nodes' + type: DEPENDENT + key: yugabytedb.cluster.node.number + delay: '0' + description: 'How many nodes are in the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.spec.cluster_info.num_nodes + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: cluster + - uuid: c04d594c1a39437f8e5f47b42ccf9fba + name: 'Clock skew' + type: DEPENDENT + key: yugabytedb.cluster.node.skew + delay: '0' + units: s + description: 'The clock drift and skew across different nodes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.NODE_CLOCK_SKEW + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: DISCARD_VALUE + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: performance + - uuid: 5497290f85d44d2c95ca0be3d2b030a3 + name: 'Get cluster query statistic' + type: SCRIPT + key: yugabytedb.cluster.query.statistic.get + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var YugabyteDB = { + params: {}, + metrics: {}, + error_msg: '', + + setParams: function (params) { + ['account_id', 'project_id', 'token', 'cluster_id'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + YugabyteDB.params = params; + YugabyteDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(YugabyteDB.tls.options); + if (typeof YugabyteDB.params.proxy !== 'undefined' && YugabyteDB.params.proxy !== '') { + request.setProxy(YugabyteDB.params.proxy); + } + if (YugabyteDB.params.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + YugabyteDB.params.token); + } + + Zabbix.log(4, '[ YugabyteDB ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ YugabyteDB ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API:' + error; + } + }, + + + get_last_values: function (values) { + var max_timestamp = 0; + var last_value = 0; + for (e in values) { + if (values[e][0] > max_timestamp) { + max_timestamp = values[e][0]; + last_value = values[e][1]; + }; + }; + return last_value; + }, + + + get_start_time: function() { + return Math.floor(Date.now() / 1000 - 300); + } + + }; + + metrics = [ + "YSQL_SELECT_OPS_PER_SEC", + "YSQL_DELETE_OPS_PER_SEC", + "YSQL_INSERT_OPS_PER_SEC", + "YSQL_UPDATE_OPS_PER_SEC", + "YSQL_OTHER_OPS_PER_SEC", + "YSQL_TRANSACTION_OPS_PER_SEC", + "YSQL_SELECT_LATENCY_MS", + "YSQL_DELETE_LATENCY_MS", + "YSQL_INSERT_LATENCY_MS", + "YSQL_UPDATE_LATENCY_MS", + "YSQL_OTHER_LATENCY_MS", + "YSQL_TRANSACTION_LATENCY_MS", + "YCQL_SELECT_OPS_PER_SEC", + "YCQL_DELETE_OPS_PER_SEC", + "YCQL_INSERT_OPS_PER_SEC", + "YCQL_OTHER_OPS_PER_SEC", + "YCQL_UPDATE_OPS_PER_SEC", + "YCQL_TRANSACTION_OPS_PER_SEC", + "YCQL_SELECT_LATENCY_MS", + "YCQL_DELETE_LATENCY_MS", + "YCQL_INSERT_LATENCY_MS", + "YCQL_OTHER_LATENCY_MS", + "YCQL_UPDATE_LATENCY_MS", + "YCQL_TRANSACTION_LATENCY_MS" + ] + + try { + YugabyteDB.setParams(JSON.parse(value)); + + var size = 6 + + for (var i = 0; i < Math.ceil(metrics.length/size); i++) { + var values = YugabyteDB.request( + 'https://cloud.yugabyte.com/api/public/v1/accounts/' + YugabyteDB.params.account_id + '/projects/' + YugabyteDB.params.project_id + '/clusters/' + YugabyteDB.params.cluster_id + '/metrics?metrics=' + metrics.slice((i * size), (i * size) + size).join('%2C') + '&start_time=' + YugabyteDB.get_start_time() + ); + + values.data.forEach(function (e) { + YugabyteDB.metrics[e.name] = YugabyteDB.get_last_values(e.values) + }); + }; + } + catch (error) { + Zabbix.log(3, '[ YugabyteDB ] ERROR: ' + error); + error_msg = 'Failed to get data from API:' + error; + return JSON.stringify({'error': error_msg}); + } + + return JSON.stringify({'metrics': YugabyteDB.metrics, 'error': YugabyteDB.error_msg}); + description: 'Getting SQL statistics for the cluster.' + timeout: 5s + parameters: + - name: account_id + value: '{$YUGABYTEDB.ACCOUNT.ID}' + - name: cluster_id + value: '{$YUGABYTEDB.CLUSTER.ID}' + - name: project_id + value: '{$YUGABYTEDB.PROJECT.ID}' + - name: proxy + value: '{$YUGABYTEDB.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"YugabyteDB Cluster"}' + - name: token + value: '{$YUGABYTEDB.ACCESS.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 0d9d39db84de4879b6c0fac044537e55 + name: 'Get cluster query statistic item error' + type: DEPENDENT + key: yugabytedb.cluster.query.statistic.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the cluster query statistics item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: error + - uuid: e116d1dfe5c94a64b47c66b0898e2c5a + name: 'Average read latency' + type: DEPENDENT + key: yugabytedb.cluster.read.latency + delay: '0' + value_type: FLOAT + units: s + description: 'The average latency of read operations at the tablet level.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.AVERAGE_READ_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: performance + - uuid: 4fd495d88f824bd2b18a3c885dc45d28 + name: 'Software version' + type: DEPENDENT + key: yugabytedb.cluster.software.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current version of YugabyteDB installed on the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.info.software_version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: cluster + triggers: + - uuid: 27fdbe72229343029ede51c7705c28c4 + expression: 'last(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.software.version,#1) <> last(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.software.version,#2) and length(last(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.software.version)) > 0' + name: 'YugabyteDB Cluster: Cluster software version has changed' + event_name: 'YugabyteDB Cluster: Cluster software version has changed (new version: {ITEM.VALUE})' + opdata: 'Current version: {ITEM.LASTVALUE1}' + priority: INFO + description: 'YugabyteDB Cluster software version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 70e1cee9adc149afb7f1765384b587e2 + name: State + type: DEPENDENT + key: yugabytedb.cluster.state + delay: '0' + description: | + The current state of the cluster. One of the following: + - INVALID + - QUEUED + - INIT + - BOOTSTRAPPING + - VPC_PEERING + - NETWORK_CREATING + - PROVISIONING + - CONFIGURING + - CREATING_LB + - UPDATING_LB + - ACTIVE + - PAUSING + - PAUSED + - RESUMING + - UPDATING + - MAINTENANCE + - RESTORE + - FAILED + - CREATE_FAILED + - DELETING + - STARTING_NODE + - STOPPING_NODE + - REBOOTING_NODE + - CREATE_READ_REPLICA_FAILED + - DELETE_READ_REPLICA_FAILED + - DELETE_CLUSTER_FAILED + - EDIT_CLUSTER_FAILED + - EDIT_READ_REPLICA_FAILED + - PAUSE_CLUSTER_FAILED + - RESUME_CLUSTER_FAILED + - RESTORE_BACKUP_FAILED + - CERTIFICATE_ROTATION_FAILED + - UPGRADE_CLUSTER_FAILED + - UPGRADE_CLUSTER_GFLAGS_FAILED + - UPGRADE_CLUSTER_OS_FAILED + - UPGRADE_CLUSTER_SOFTWARE_FAILED + - START_NODE_FAILED + - STOP_NODE_FAILED + - REBOOT_NODE_FAILED + - CONFIGURE_CMK + - ENABLING_CMK + - DISABLING_CMK + - UPDATING_CMK + - ROTATING_CMK + - STOPPING_METRICS_EXPORTER + - STARTING_METRICS_EXPORTER + - CONFIGURING_METRICS_EXPORTER + - STOP_METRICS_EXPORTER_FAILED + - START_METRICS_EXPORTER_FAILED + - CONFIGURE_METRICS_EXPORTER_FAILED + - REMOVING_METRICS_EXPORTER + - REMOVE_METRICS_EXPORTER_FAILED + valuemap: + name: 'YugabyteDB Cluster state' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var cluster = JSON.parse(value); + + const idx = [ + 'INVALID', + 'QUEUED', + 'INIT', + 'BOOTSTRAPPING', + 'VPC_PEERING', + 'NETWORK_CREATING', + 'PROVISIONING', + 'CONFIGURING', + 'CREATING_LB', + 'UPDATING_LB', + 'ACTIVE', + 'PAUSING', + 'PAUSED', + 'RESUMING', + 'UPDATING', + 'MAINTENANCE', + 'RESTORE', + 'FAILED', + 'CREATE_FAILED', + 'DELETING', + 'STARTING_NODE', + 'STOPPING_NODE', + 'REBOOTING_NODE', + 'CREATE_READ_REPLICA_FAILED', + 'DELETE_READ_REPLICA_FAILED', + 'DELETE_CLUSTER_FAILED', + 'EDIT_CLUSTER_FAILED', + 'EDIT_READ_REPLICA_FAILED', + 'PAUSE_CLUSTER_FAILED', + 'RESUME_CLUSTER_FAILED', + 'RESTORE_BACKUP_FAILED', + 'CERTIFICATE_ROTATION_FAILED', + 'UPGRADE_CLUSTER_FAILED', + 'UPGRADE_CLUSTER_GFLAGS_FAILED', + 'UPGRADE_CLUSTER_OS_FAILED', + 'UPGRADE_CLUSTER_SOFTWARE_FAILED', + 'START_NODE_FAILED', + 'STOP_NODE_FAILED', + 'REBOOT_NODE_FAILED', + 'CONFIGURE_CMK', + 'ENABLING_CMK', + 'DISABLING_CMK', + 'UPDATING_CMK', + 'ROTATING_CMK', + 'STOPPING_METRICS_EXPORTER', + 'STARTING_METRICS_EXPORTER', + 'CONFIGURING_METRICS_EXPORTER', + 'STOP_METRICS_EXPORTER_FAILED', + 'START_METRICS_EXPORTER_FAILED', + 'CONFIGURE_METRICS_EXPORTER_FAILED', + 'REMOVING_METRICS_EXPORTER', + 'REMOVE_METRICS_EXPORTER_FAILED' + ].indexOf(cluster.data.info.state); + return idx !== -1 ? idx : 60; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: cluster + - uuid: a9b902783af24e5f8d56139e803d85aa + name: Type + type: DEPENDENT + key: yugabytedb.cluster.type + delay: '0' + description: 'The kind of cluster deployment: SYNCHRONOUS or GEO_PARTITIONED.' + valuemap: + name: 'YugabyteDB Cluster type' + preprocessing: + - type: JSONPATH + parameters: + - $.data.spec.cluster_info.cluster_type + - type: STR_REPLACE + parameters: + - SYNCHRONOUS + - '0' + - type: STR_REPLACE + parameters: + - GEO_PARTITIONED + - '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: cluster + - uuid: fde822561b0c4a9196e52006c6ae459f + name: 'Average write latency' + type: DEPENDENT + key: yugabytedb.cluster.write.latency + delay: '0' + value_type: FLOAT + units: s + description: 'The average latency of write operations at the tablet level.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.AVERAGE_WRITE_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.metric.get + tags: + - tag: component + value: cluster + - tag: component + value: performance + - uuid: 6e303d8bbd3540dcba8e6336e395df01 + name: 'YB controller version' + type: DEPENDENT + key: yugabytedb.cluster.ybc.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The current version of the YB controller installed on the cluster.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.info.ybc_version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: cluster + triggers: + - uuid: d927b0d668fc413db697a2360ac806a6 + expression: 'last(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.ybc.version,#1) <> last(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.ybc.version,#2) and length(last(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.ybc.version)) > 0' + name: 'YugabyteDB Cluster: YB controller version has changed' + event_name: 'YugabyteDB Cluster: YB controller version has changed (new version: {ITEM.VALUE})' + opdata: 'Current version: {ITEM.LASTVALUE1}' + priority: INFO + description: 'YugabyteDB Cluster YB controller version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9034de71bb9a4d5babb77f4433deb9a1 + name: 'YCQL DELETE average latency' + type: DEPENDENT + key: yugabytedb.cluster.ycql.delete.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing DELETE statements through the YCQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_DELETE_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 31473b597b274acc894bde4415efc1df + name: 'YCQL DELETE OPS' + type: DEPENDENT + key: yugabytedb.cluster.ycql.delete.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of DELETE statements executed through the YCQL API per second. This does not include index writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_DELETE_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 02b74ef8873a464786ff68b80fa2bc72 + name: 'YCQL INSERT average latency' + type: DEPENDENT + key: yugabytedb.cluster.ycql.insert.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing INSERT statements through the YCQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_INSERT_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: bc9776051ac5494da1450837ce2541f0 + name: 'YCQL INSERT OPS' + type: DEPENDENT + key: yugabytedb.cluster.ycql.insert.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of INSERT statements executed through the YCQL API per second. This does not include index writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_INSERT_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 267399592fef42c58b5885d1fc4e821d + name: 'YCQL OTHER average latency' + type: DEPENDENT + key: yugabytedb.cluster.ycql.other.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing OTHER statements through the YCQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_OTHER_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 8e6f1197d23e4398a40c08232ecbaf88 + name: 'YCQL OTHER OPS' + type: DEPENDENT + key: yugabytedb.cluster.ycql.other.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of OTHER statements executed through the YCQL API per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_OTHER_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 438badfcc37c437f94988a211fc1ca1d + name: 'YCQL SELECT average latency' + type: DEPENDENT + key: yugabytedb.cluster.ycql.select.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing SELECT statements through the YCQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_SELECT_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: e663d79a6b404c9fb369c213f51a2f62 + name: 'YCQL SELECT OPS' + type: DEPENDENT + key: yugabytedb.cluster.ycql.select.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of SELECT statements executed through the YCQL API per second. This does not include index writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_SELECT_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: e0a86eaf9be4426c9ae8948980cf9855 + name: 'YCQL transaction average latency' + type: DEPENDENT + key: yugabytedb.cluster.ycql.transaction.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing transactions through the YCQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_TRANSACTION_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 4b81ff96ce054cd480073217281eedf7 + name: 'YCQL transaction OPS' + type: DEPENDENT + key: yugabytedb.cluster.ycql.transaction.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of transactions executed through the YCQL API per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_TRANSACTION_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: c5af4d0a6cb44292882071bcfb39f689 + name: 'YCQL UPDATE average latency' + type: DEPENDENT + key: yugabytedb.cluster.ycql.update.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing UPDATE statements through the YCQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_UPDATE_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 6120fea6606f4a98ac417559e80aad13 + name: 'YCQL UPDATE OPS' + type: DEPENDENT + key: yugabytedb.cluster.ycql.update.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of UPDATE statements executed through the YCQL API per second. This does not include index writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YCQL_UPDATE_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 662f390c33154db199f13a065f68eebf + name: 'YSQL DELETE average latency' + type: DEPENDENT + key: yugabytedb.cluster.ysql.delete.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing DELETE statements through the YSQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_DELETE_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 3a6e9b4837c44babb020fe1e579db573 + name: 'YSQL DELETE OPS' + type: DEPENDENT + key: yugabytedb.cluster.ysql.delete.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of DELETE statements executed through the YSQL API per second. This does not include index writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_DELETE_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: e0dda63d599041a8b9781da7c4b52433 + name: 'YSQL INSERT average latency' + type: DEPENDENT + key: yugabytedb.cluster.ysql.insert.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing INSERT statements through the YSQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_INSERT_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 8074080c8e7244eaaf4353a92a80a82a + name: 'YSQL INSERT OPS' + type: DEPENDENT + key: yugabytedb.cluster.ysql.insert.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of INSERT statements executed through the YSQL API per second. This does not include index writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_INSERT_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: e007bb3d98fd4442ab84a2227be63e8b + name: 'YSQL OTHER average latency' + type: DEPENDENT + key: yugabytedb.cluster.ysql.other.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing OTHER statements through the YSQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_OTHER_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 502162acb66941d19b567a5172a56600 + name: 'YSQL OTHER OPS' + type: DEPENDENT + key: yugabytedb.cluster.ysql.other.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of OTHER statements executed through the YSQL API per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_OTHER_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 9d6bea98b3a54bdbbe2b141417148927 + name: 'YSQL SELECT average latency' + type: DEPENDENT + key: yugabytedb.cluster.ysql.select.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing SELECT statements through the YSQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_SELECT_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 03053740519b4756886897b45ed3f73c + name: 'YSQL SELECT OPS' + type: DEPENDENT + key: yugabytedb.cluster.ysql.select.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of SELECT statements executed through the YSQL API per second. This does not include index writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_SELECT_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 57a5c002be714c8da7afc0d30d9a891d + name: 'YSQL transaction average latency' + type: DEPENDENT + key: yugabytedb.cluster.ysql.transaction.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing transactions through the YSQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_TRANSACTION_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: bd63dbe655734d66bbf9409500cc4a3f + name: 'YSQL transaction OPS' + type: DEPENDENT + key: yugabytedb.cluster.ysql.transaction.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of transactions executed through the YSQL API per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_TRANSACTION_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 02b4d8b704754dab83188bced7f5d98e + name: 'YSQL UPDATE average latency' + type: DEPENDENT + key: yugabytedb.cluster.ysql.update.latency + delay: '0' + value_type: FLOAT + units: s + description: 'Average time of executing UPDATE statements through the YSQL API.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_UPDATE_LATENCY_MS + - type: MULTIPLIER + parameters: + - '0.001' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 2557d7cf5f0d429886999d6eba2d9182 + name: 'YSQL UPDATE OPS' + type: DEPENDENT + key: yugabytedb.cluster.ysql.update.ops + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The count of UPDATE statements executed through the YSQL API per second. This does not include index writes.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.YSQL_UPDATE_OPS_PER_SEC + master_item: + key: yugabytedb.cluster.query.statistic.get + tags: + - tag: component + value: cluster + - tag: component + value: statistic + - uuid: 88c3b743cbe24ea9a0046dc0854a36be + name: 'Get keyspace' + type: SCRIPT + key: yugabytedb.keyspace.get + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var YugabyteDB = { + params: {}, + keyspaces: {}, + error_msg: '', + + setParams: function (params) { + ['account_id', 'project_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + YugabyteDB.params = params; + YugabyteDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(YugabyteDB.tls.options); + if (typeof YugabyteDB.params.proxy !== 'undefined' && YugabyteDB.params.proxy !== '') { + request.setProxy(YugabyteDB.params.proxy); + } + if (YugabyteDB.params.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + YugabyteDB.params.token); + } + + Zabbix.log(4, '[ YugabyteDB ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ YugabyteDB ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API:' + error; + } + }, + + + get_keyspace: function (tables) { + var table_info = {}; + var result = []; + for (var table in tables['data']) { + var table_name = tables['data'][table]['keyspace']; + if (typeof table_info[table_name] !== 'undefined') { + table_info[table_name]['size_bytes'] += tables['data'][table]['size_bytes'] + table_info[table_name]['wal_size_bytes'] += tables['data'][table]['wal_size_bytes'] + } + else { + table_info[table_name] = { + 'keyspace_name': table_name, + 'size_bytes': tables['data'][table]['size_bytes'], + 'wal_size_bytes': tables['data'][table]['wal_size_bytes'], + 'type': tables['data'][table]['type']} + } + } + for (keyspace in table_info) { + result.push(table_info[keyspace]) + } + return result; + } + + }; + + try { + YugabyteDB.setParams(JSON.parse(value)); + + var tables = YugabyteDB.request( + 'https://cloud.yugabyte.com/api/public/v1/accounts/' + YugabyteDB.params.account_id + '/projects/' + YugabyteDB.params.project_id + '/clusters/' + YugabyteDB.params.cluster_id + '/tables' + ) + + YugabyteDB.keyspaces = YugabyteDB.get_keyspace(tables); + } + catch (error) { + Zabbix.log(3, '[ YugabyteDB ] ERROR: ' + error); + error_msg = 'Failed to get data from API:' + error; + } + + return JSON.stringify({'keyspaces': YugabyteDB.keyspaces, 'error': YugabyteDB.error_msg}); + description: 'Get raw data about keyspaces.' + timeout: 10s + parameters: + - name: account_id + value: '{$YUGABYTEDB.ACCOUNT.ID}' + - name: cluster_id + value: '{$YUGABYTEDB.CLUSTER.ID}' + - name: project_id + value: '{$YUGABYTEDB.PROJECT.ID}' + - name: proxy + value: '{$YUGABYTEDB.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"YugabyteDB Cluster"}' + - name: token + value: '{$YUGABYTEDB.ACCESS.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 59f34be153c049ecac1c4e08487a18c0 + name: 'Get keyspace item error' + type: DEPENDENT + key: yugabytedb.keyspace.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the keyspace item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.keyspace.get + tags: + - tag: component + value: error + - uuid: 734486b27ba64138bae356c7b14c8dbc + name: 'Get node' + type: SCRIPT + key: yugabytedb.node.get + delay: 10m + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var YugabyteDB = { + params: {}, + nodes: {}, + error_msg: '', + + setParams: function (params) { + ['account_id', 'project_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + YugabyteDB.params = params; + YugabyteDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(YugabyteDB.tls.options); + if (typeof YugabyteDB.params.proxy !== 'undefined' && YugabyteDB.params.proxy !== '') { + request.setProxy(YugabyteDB.params.proxy); + } + if (YugabyteDB.params.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + YugabyteDB.params.token); + } + + Zabbix.log(4, '[ YugabyteDB ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ YugabyteDB ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API:' + error; + } + } + + }; + + try { + YugabyteDB.setParams(JSON.parse(value)); + + var node = YugabyteDB.request( + 'https://cloud.yugabyte.com/api/public/v1/accounts/' + YugabyteDB.params.account_id + '/projects/' + YugabyteDB.params.project_id + '/clusters/' + YugabyteDB.params.cluster_id + '/nodes' + ) + YugabyteDB.nodes = node.data; + } + catch (error) { + Zabbix.log(3, '[ YugabyteDB ] ERROR: ' + error); + error_msg = 'Failed to get data from API:' + error; + } + + return JSON.stringify({'nodes': YugabyteDB.nodes, 'error': YugabyteDB.error_msg}); + description: 'Get raw data about nodes.' + timeout: 10s + parameters: + - name: account_id + value: '{$YUGABYTEDB.ACCOUNT.ID}' + - name: cluster_id + value: '{$YUGABYTEDB.CLUSTER.ID}' + - name: project_id + value: '{$YUGABYTEDB.PROJECT.ID}' + - name: proxy + value: '{$YUGABYTEDB.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"YugabyteDB Cluster"}' + - name: token + value: '{$YUGABYTEDB.ACCESS.TOKEN}' + tags: + - tag: component + value: raw + - uuid: 401d87f7dace497699df56f749bf821e + name: 'Get node item error' + type: DEPENDENT + key: yugabytedb.node.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the node item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.node.get + tags: + - tag: component + value: error + discovery_rules: + - uuid: 71d2f03d4657413fa8eabe5d411bed25 + name: 'Keyspace discovery' + type: DEPENDENT + key: yugabytedb.keyspace.discovery + delay: '0' + description: 'Discovery of the available keyspaces.' + item_prototypes: + - uuid: c1e48062d9ee4bbebd170370216d477a + name: 'YugabyteDB Keyspace [{#KEYSPACE.NAME}]: Get keyspace info' + type: DEPENDENT + key: 'yugabytedb.keyspace.get[{#KEYSPACE.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get raw data about the keyspace [{#KEYSPACE.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.keyspaces.[?(@.keyspace_name==''{#KEYSPACE.NAME}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: yugabytedb.keyspace.get + tags: + - tag: component + value: raw + - tag: keyspace + value: '{#KEYSPACE.NAME}' + - uuid: 18ca22e5976741c595854de8fbf12d1e + name: 'YugabyteDB Keyspace [{#KEYSPACE.NAME}]: SST size' + type: DEPENDENT + key: 'yugabytedb.keyspace.sst.size[{#KEYSPACE.NAME}]' + delay: '0' + units: B + description: 'The size of the table''s SST.' + preprocessing: + - type: JSONPATH + parameters: + - $.size_bytes + master_item: + key: 'yugabytedb.keyspace.get[{#KEYSPACE.NAME}]' + tags: + - tag: component + value: keyspace + - tag: keyspace + value: '{#KEYSPACE.NAME}' + - uuid: 8dbbdc125336426d9c8fcb7909a7ab89 + name: 'YugabyteDB Keyspace [{#KEYSPACE.NAME}]: Type' + type: DEPENDENT + key: 'yugabytedb.keyspace.type[{#KEYSPACE.NAME}]' + delay: '0' + description: 'The type of keyspace: YSQL or YCQL.' + valuemap: + name: 'YugabyteDB Keyspace type' + preprocessing: + - type: JSONPATH + parameters: + - $.type + - type: STR_REPLACE + parameters: + - YSQL + - '0' + - type: STR_REPLACE + parameters: + - YCQL + - '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'yugabytedb.keyspace.get[{#KEYSPACE.NAME}]' + tags: + - tag: component + value: keyspace + - tag: keyspace + value: '{#KEYSPACE.NAME}' + - uuid: 9c23b2c7fe4b4aad8ab32ead6af179e7 + name: 'YugabyteDB Keyspace [{#KEYSPACE.NAME}]: Wal size' + type: DEPENDENT + key: 'yugabytedb.keyspace.wal.size[{#KEYSPACE.NAME}]' + delay: '0' + units: B + description: 'The size of the table''s WAL.' + preprocessing: + - type: JSONPATH + parameters: + - $.wal_size_bytes + master_item: + key: 'yugabytedb.keyspace.get[{#KEYSPACE.NAME}]' + tags: + - tag: component + value: keyspace + - tag: keyspace + value: '{#KEYSPACE.NAME}' + graph_prototypes: + - uuid: 193792ab844947e88ca58c20292d6666 + name: 'YugabyteDB Keyspace [{#KEYSPACE.NAME}]: Keyspace size' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: 'yugabytedb.keyspace.wal.size[{#KEYSPACE.NAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: 'yugabytedb.keyspace.sst.size[{#KEYSPACE.NAME}]' + master_item: + key: yugabytedb.keyspace.get + lld_macro_paths: + - lld_macro: '{#KEYSPACE.NAME}' + path: $.keyspace_name + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var keyspaces = JSON.parse(value); + + for (var keyspace in keyspaces.keyspaces) { + result.push({ + "keyspace_name": keyspaces.keyspaces[keyspace]['keyspace_name'] + }); + }; + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + - uuid: dc4c32c8868e4dd0b02c2fec843b5dac + name: 'Node discovery' + type: DEPENDENT + key: yugabytedb.node.discovery + delay: '0' + description: 'Discovery of the nodes for all clusters.' + item_prototypes: + - uuid: a7b100dd55e6406cb481762f2fb7c421 + name: 'YugabyteDB Node [{#NODE.NAME}]: Total CPU cores' + type: DEPENDENT + key: 'yugabytedb.node.cpu.num.cores[{#NODE.NAME}]' + delay: '0' + units: Cores + description: 'The number of cores for the node [{#NODE.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - $.data.spec.cluster_info.node_info.num_cores + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 0a540fa45f33410fb93fd750717ae431 + name: 'YugabyteDB Node [{#NODE.NAME}]: Total disk size' + type: DEPENDENT + key: 'yugabytedb.node.disk.size.total[{#NODE.NAME}]' + delay: '0' + units: '!GB' + description: 'The disk size (GB) for the node [{#NODE.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - $.data.spec.cluster_info.node_info.disk_size_gb + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: f2c813fba0394826abcb35a50b773a41 + name: 'YugabyteDB Node [{#NODE.NAME}]: Get node info' + type: DEPENDENT + key: 'yugabytedb.node.get[{#NODE.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Get raw data about the node [{#NODE.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - '$.nodes.[?(@.name==''{#NODE.NAME}'')].first()' + error_handler: DISCARD_VALUE + master_item: + key: yugabytedb.node.get + tags: + - tag: component + value: raw + - tag: node + value: '{#NODE.NAME}' + - uuid: 9fa8a6a8476e485c8eebeeaa5763c3c5 + name: 'YugabyteDB Node [{#NODE.NAME}]: Disk IOPS limit' + type: DEPENDENT + key: 'yugabytedb.node.iops.limit[{#NODE.NAME}]' + delay: '0' + units: '!IOPS' + description: 'The IOPS to provision for the node [{#NODE.NAME}] for each disk.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.spec.cluster_info.node_info.disk_iops + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 27e087e59b0f425584f57fda13398ea0 + name: 'YugabyteDB Node [{#NODE.NAME}]: Disk IOPS utilization' + type: CALCULATED + key: 'yugabytedb.node.iops.utilization[{#NODE.NAME}]' + value_type: FLOAT + units: '%' + params: '((last(//yugabytedb.node.read.ops[{#NODE.NAME}]) + last(//yugabytedb.node.write.ops[{#NODE.NAME}]))/last(//yugabytedb.node.iops.limit[{#NODE.NAME}]))*100' + description: 'Shows the utilization of provisioned IOPS.' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: c19790737c854c8e8848781b5ccf5b1f + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.node.iops.utilization[{#NODE.NAME}],5m) > {$YUGABYTEDB.IOPS.UTILIZATION.WARN}' + name: 'YugabyteDB Cluster: YugabyteDB Node [{#NODE.NAME}]: Node disk IOPS utilization is high' + event_name: 'YugabyteDB Cluster: YugabyteDB Node [{#NODE.NAME}]: Node disk IOPS utilization is high (over {$YUGABYTEDB.IOPS.UTILIZATION.WARN} for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'IOPS utilization on the node [{#NODE.NAME}] is more than {$YUGABYTEDB.IOPS.UTILIZATION.WARN}% of the provisioned IOPS.' + dependencies: + - name: 'YugabyteDB Cluster: YugabyteDB Node [{#NODE.NAME}]: Node disk IOPS utilization is too high' + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.node.iops.utilization[{#NODE.NAME}],5m) > {$YUGABYTEDB.IOPS.UTILIZATION.CRIT}' + tags: + - tag: scope + value: performance + - uuid: 27f43e701e4e47c4aad2fa6c9a118fb1 + expression: 'min(/YugabyteDB Cluster by HTTP/yugabytedb.node.iops.utilization[{#NODE.NAME}],5m) > {$YUGABYTEDB.IOPS.UTILIZATION.CRIT}' + name: 'YugabyteDB Cluster: YugabyteDB Node [{#NODE.NAME}]: Node disk IOPS utilization is too high' + event_name: 'YugabyteDB Cluster: YugabyteDB Node [{#NODE.NAME}]: Node disk IOPS utilization is too high (over {$YUGABYTEDB.IOPS.UTILIZATION.CRIT} for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'IOPS utilization on the node [{#NODE.NAME}] is more than {$YUGABYTEDB.IOPS.UTILIZATION.CRIT}% of the provisioned IOPS.' + tags: + - tag: scope + value: performance + - uuid: cec0b919572a4dc8bec57f7da073b18f + name: 'YugabyteDB Node [{#NODE.NAME}]: Node is master' + type: DEPENDENT + key: 'yugabytedb.node.master[{#NODE.NAME}]' + delay: '0' + description: | + The current role of the node [{#NODE.NAME}]: + 0 = False + 1 = True + valuemap: + name: 'YugabyteDB Bool status' + preprocessing: + - type: JSONPATH + parameters: + - $.is_master + - type: STR_REPLACE + parameters: + - 'true' + - '1' + - type: STR_REPLACE + parameters: + - 'false' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'yugabytedb.node.get[{#NODE.NAME}]' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: a75c7247ac654dc6b62ea88c9f609804 + name: 'YugabyteDB Node [{#NODE.NAME}]: Total memory, bytes' + type: DEPENDENT + key: 'yugabytedb.node.memory.total[{#NODE.NAME}]' + delay: '0' + units: B + description: 'The amount of RAM for the node [{#NODE.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - $.data.spec.cluster_info.node_info.memory_mb + - type: MULTIPLIER + parameters: + - '1048576' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.cluster.get + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 03a684fb8e824ae2a21af206f03c06e3 + name: 'YugabyteDB Node [{#NODE.NAME}]: Read OPS' + type: DEPENDENT + key: 'yugabytedb.node.read.ops[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The amount of read operations per second for the node [{#NODE.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.read_ops_per_sec + master_item: + key: 'yugabytedb.node.get[{#NODE.NAME}]' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: fc64e30fea8349b2b4d4de3c23ea8fd7 + name: 'YugabyteDB Node [{#NODE.NAME}]: Node is read replica' + type: DEPENDENT + key: 'yugabytedb.node.read.replica[{#NODE.NAME}]' + delay: '0' + description: | + This item indicates if the node [{#NODE.NAME}] is a read replica: + 0 = False + 1 = True + valuemap: + name: 'YugabyteDB Bool status' + preprocessing: + - type: JSONPATH + parameters: + - $.is_read_replica + - type: STR_REPLACE + parameters: + - 'true' + - '1' + - type: STR_REPLACE + parameters: + - 'false' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'yugabytedb.node.get[{#NODE.NAME}]' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: d77f37a386514286ac3fd4a37ad0e21e + name: 'YugabyteDB Node [{#NODE.NAME}]: Region' + type: DEPENDENT + key: 'yugabytedb.node.region[{#NODE.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The cloud information for the node [{#NODE.NAME}] about the region.' + preprocessing: + - type: JSONPATH + parameters: + - $.cloud_info.region + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'yugabytedb.node.get[{#NODE.NAME}]' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 71b0a67ae775473eaaed77349b781ace + name: 'YugabyteDB Node [{#NODE.NAME}]: Total SST file size' + type: DEPENDENT + key: 'yugabytedb.node.sst.file.size.total[{#NODE.NAME}]' + delay: '0' + units: B + description: 'The size of all SST files.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.total_sst_file_size_bytes + master_item: + key: 'yugabytedb.node.get[{#NODE.NAME}]' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: ec3598775f434cc88c0880fd2f944a14 + name: 'YugabyteDB Node [{#NODE.NAME}]: Uncompressed SST file size' + type: DEPENDENT + key: 'yugabytedb.node.sst.file.size.uncompressed[{#NODE.NAME}]' + delay: '0' + units: B + description: 'The size of uncompressed SST files.' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.uncompressed_sst_file_size_bytes + master_item: + key: 'yugabytedb.node.get[{#NODE.NAME}]' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: bfc6070e65d041ca83ab1290aa0654aa + name: 'YugabyteDB Node [{#NODE.NAME}]: Node status' + type: DEPENDENT + key: 'yugabytedb.node.status[{#NODE.NAME}]' + delay: '0' + description: | + The current status of the node [{#NODE.NAME}]: + 0 = Down + 1 = Up + valuemap: + name: 'YugabyteDB Node status' + preprocessing: + - type: JSONPATH + parameters: + - $.is_node_up + - type: STR_REPLACE + parameters: + - 'true' + - '1' + - type: STR_REPLACE + parameters: + - 'false' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'yugabytedb.node.get[{#NODE.NAME}]' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 3bdaff0934564a809dc565357c50486d + expression: 'max(/YugabyteDB Cluster by HTTP/yugabytedb.node.status[{#NODE.NAME}],3m) = 0' + name: 'YugabyteDB Cluster: YugabyteDB Node [{#NODE.NAME}]: Node is down' + priority: AVERAGE + description: 'The node [{#NODE.NAME}] is down.' + tags: + - tag: scope + value: availability + - uuid: 488ef7da37704fc690109350dfb04f06 + name: 'YugabyteDB Node [{#NODE.NAME}]: Node is TServer' + type: DEPENDENT + key: 'yugabytedb.node.tserver[{#NODE.NAME}]' + delay: '0' + description: | + This item indicates if the node [{#NODE.NAME}] is a TServer node: + 0 = False + 1 = True + valuemap: + name: 'YugabyteDB Bool status' + preprocessing: + - type: JSONPATH + parameters: + - $.is_tserver + - type: STR_REPLACE + parameters: + - 'true' + - '1' + - type: STR_REPLACE + parameters: + - 'false' + - '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'yugabytedb.node.get[{#NODE.NAME}]' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: f11fcb4fd9184a74bfd1081c10124735 + name: 'YugabyteDB Node [{#NODE.NAME}]: Write OPS' + type: DEPENDENT + key: 'yugabytedb.node.write.ops[{#NODE.NAME}]' + delay: '0' + value_type: FLOAT + units: '!OPS' + description: 'The amount of write operations per second for the node [{#NODE.NAME}].' + preprocessing: + - type: JSONPATH + parameters: + - $.metrics.write_ops_per_sec + master_item: + key: 'yugabytedb.node.get[{#NODE.NAME}]' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + - uuid: 899786037cb24cd3a0378592e3096131 + name: 'YugabyteDB Node [{#NODE.NAME}]: Zone' + type: DEPENDENT + key: 'yugabytedb.node.zone[{#NODE.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The cloud information for the node [{#NODE.NAME}] about the zone.' + preprocessing: + - type: JSONPATH + parameters: + - $.cloud_info.zone + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'yugabytedb.node.get[{#NODE.NAME}]' + tags: + - tag: component + value: node + - tag: node + value: '{#NODE.NAME}' + graph_prototypes: + - uuid: d8c91639bca24d709bcdd8d788ba940c + name: 'YugabyteDB Node [{#NODE.NAME}]: Node disk IOPS number' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + yaxisside: RIGHT + item: + host: 'YugabyteDB Cluster by HTTP' + key: 'yugabytedb.node.iops.utilization[{#NODE.NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: 'yugabytedb.node.read.ops[{#NODE.NAME}]' + - sortorder: '2' + color: 00611C + item: + host: 'YugabyteDB Cluster by HTTP' + key: 'yugabytedb.node.write.ops[{#NODE.NAME}]' + - uuid: e8020fae71e54c98bc3c5ed9b585fead + name: 'YugabyteDB Node [{#NODE.NAME}]: SST size' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: 'yugabytedb.node.sst.file.size.uncompressed[{#NODE.NAME}]' + - sortorder: '1' + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: 'yugabytedb.node.sst.file.size.total[{#NODE.NAME}]' + master_item: + key: yugabytedb.node.get + lld_macro_paths: + - lld_macro: '{#NODE.NAME}' + path: $.node_name + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var nodes = JSON.parse(value); + + for (var node in nodes.nodes) { + result.push({ + "node_name": nodes.nodes[node]['name'] + }); + }; + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: class + value: database + - tag: target + value: yugabytedb + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "YugabyteDB Cluster", e.g. {$HTTP.TLS.VERIFY:"YugabyteDB Cluster"}.' + - macro: '{$YUGABYTEDB.CLUSTER.ID}' + value: '' + description: 'ID of cluster.' + - macro: '{$YUGABYTEDB.CLUSTER.NAME}' + value: '' + description: 'Name of cluster.' + - macro: '{$YUGABYTEDB.CONNECTION.UTILIZATION.CRIT}' + value: '90' + description: 'The percentage of connections in the cluster - for the High trigger expression.' + - macro: '{$YUGABYTEDB.CONNECTION.UTILIZATION.WARN}' + value: '75' + description: 'The percentage of connections in the cluster - for the Warning trigger expression.' + - macro: '{$YUGABYTEDB.CPU.UTILIZATION.CRIT}' + value: '90' + description: 'The threshold of CPU utilization for the High trigger expression, expressed in percent.' + - macro: '{$YUGABYTEDB.CPU.UTILIZATION.WARN}' + value: '75' + description: 'The threshold of CPU utilization for the Warning trigger expression, expressed in percent.' + - macro: '{$YUGABYTEDB.DISK.UTILIZATION.CRIT}' + value: '90' + description: 'The percentage of disk use in the cluster - for the High trigger expression.' + - macro: '{$YUGABYTEDB.DISK.UTILIZATION.WARN}' + value: '75' + description: 'The percentage of disk use in the cluster - for the Warning trigger expression.' + - macro: '{$YUGABYTEDB.IOPS.UTILIZATION.CRIT}' + value: '90' + description: 'The percentage of IOPS use on the node - for the High trigger expression.' + - macro: '{$YUGABYTEDB.IOPS.UTILIZATION.WARN}' + value: '75' + description: 'The percentage of IOPS use on the node - for the Warning trigger expression.' + - macro: '{$YUGABYTEDB.MEMORY.CLUSTER.UTILIZATION.CRIT}' + value: '90' + description: 'The percentage of memory use on the cluster - for the High trigger expression.' + - macro: '{$YUGABYTEDB.MEMORY.CLUSTER.UTILIZATION.WARN}' + value: '70' + description: 'The percentage of memory use on the cluster - for the Warning trigger expression.' + - macro: '{$YUGABYTEDB.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' + dashboards: + - uuid: c1ea734dbfc245afa17afe478982c09d + name: 'YugabyteDB Cluster: Overview' + pages: + - name: 'YugabyteDB Cluster: Overview' + widgets: + - type: gauge + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'CPU utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.cpu.utilization + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 66BB6A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '80' + - type: STRING + name: thresholds.2.color + value: FF0000 + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: svggraph + name: 'YugabyteDB Cluster: Average latency' + 'y': '4' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: B0AF07 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.read.latency + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.write.latency + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAD + - type: INTEGER + name: simple_triggers + value: '1' + - type: gauge + x: '18' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Memory utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.memory.utilization + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 66BB6A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF0000 + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: gauge + x: '36' + width: '18' + height: '4' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Disk space utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.utilization + - type: INTEGER + name: scale_size + value: '10' + - type: STRING + name: thresholds.0.color + value: 66BB6A + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFD54F + - type: STRING + name: thresholds.1.threshold + value: '70' + - type: STRING + name: thresholds.2.color + value: FF0000 + - type: STRING + name: thresholds.2.threshold + value: '90' + - type: INTEGER + name: th_show_arc + value: '1' + - type: INTEGER + name: th_show_labels + value: '1' + - type: STRING + name: units + value: '%' + - type: item + x: '36' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'Number of nodes' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.node.number + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: item + x: '36' + 'y': '6' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'YSQL connection average used' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.connection.count + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: item + x: '36' + 'y': '8' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'YSQL transaction OPS' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.transaction.ops + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: STRING + name: units + value: OPS + - type: INTEGER + name: units_size + value: '20' + - type: item + x: '54' + width: '18' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Health state' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.health.state + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: thresholds.0.color + value: 81C784 + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: FFF59D + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: A5A5A5 + - type: STRING + name: thresholds.2.threshold + value: '3' + - type: STRING + name: thresholds.3.color + value: FF465C + - type: STRING + name: thresholds.3.threshold + value: '2' + - type: item + x: '54' + 'y': '2' + width: '18' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Cluster state' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.state + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: item + x: '54' + 'y': '4' + width: '18' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'Software version' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.software.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: item + x: '54' + 'y': '6' + width: '18' + hide_header: 'YES' + fields: + - type: STRING + name: description + value: 'YB controller version' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ybc.version + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: item + x: '54' + 'y': '8' + width: '18' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'YCQL transaction OPS' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.transaction.ops + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: STRING + name: units + value: OPS + - type: INTEGER + name: units_size + value: '20' + - name: 'YugabyteDB Cluster: Cluster' + widgets: + - type: svggraph + name: 'YugabyteDB Cluster: Memory utilization' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.memory.utilization + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: simple_triggers + value: '1' + - type: item + 'y': '6' + width: '36' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Memory total' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.memory.total + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: B + - type: svggraph + name: 'YugabyteDB Cluster: CPU utilization' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.cpu.utilization + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAF + - type: INTEGER + name: simple_triggers + value: '1' + - type: item + x: '36' + 'y': '6' + width: '36' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '45' + - type: STRING + name: description + value: 'Memory usage' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.memory.usage + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: STRING + name: units + value: B + - name: 'YugabyteDB Cluster: Disk' + widgets: + - type: svggraph + name: 'YugabyteDB Cluster: Disk r\w usage, Bps' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: B0AF07 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.read.bps + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.write.bps + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAG + - type: INTEGER + name: simple_triggers + value: '1' + - type: svggraph + name: 'YugabyteDB Cluster: Disk space usage, bytes' + 'y': '5' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: B0AF07 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.usage + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAH + - type: INTEGER + name: simple_triggers + value: '1' + - type: svggraph + name: 'YugabyteDB Cluster: Disk r\w OPS' + x: '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: B0AF07 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.read.ops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.write.ops + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAI + - type: INTEGER + name: simple_triggers + value: '1' + - type: item + name: 'Disk space utilization' + x: '36' + 'y': '5' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '40' + - type: STRING + name: description + value: 'Disk space utilization' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.utilization + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: value_size + value: '40' + - type: item + name: 'Disk space provisioned' + x: '36' + 'y': '8' + width: '12' + height: '3' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_size + value: '40' + - type: STRING + name: description + value: 'Disk space provisioned' + - type: INTEGER + name: desc_size + value: '10' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.provisioned + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: STRING + name: units + value: B + - type: INTEGER + name: units_size + value: '25' + - type: INTEGER + name: value_size + value: '40' + - type: piechart + name: 'YugabyteDB Cluster: Disk space' + x: '48' + 'y': '5' + width: '24' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 388E3C + - type: STRING + name: ds.0.color.1 + value: B0AF07 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.usage + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.provisioned + - type: INTEGER + name: ds.0.type.0 + value: '0' + - type: INTEGER + name: ds.0.type.1 + value: '1' + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: space + value: '3' + - name: 'YugabyteDB Cluster: Network' + widgets: + - type: svggraph + name: 'YugabyteDB Cluster: Received/Transmit, Bps' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: B0AF07 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.network.receive.bps + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.network.transmit.bps + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAK + - type: svggraph + name: 'YugabyteDB Cluster: Connections utilization' + 'y': '6' + width: '48' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.connection.utilization + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAL + - type: INTEGER + name: simple_triggers + value: '1' + - type: svggraph + name: 'YugabyteDB Cluster: Received/Transmit, error/sec' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: B0AF07 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.network.receive.error.rate + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.network.transmit.error.rate + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAM + - type: item + x: '48' + 'y': '6' + width: '24' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'YSQL connection limit' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.connection.limit + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: item + x: '48' + 'y': '8' + width: '24' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'YSQL connection maximum used' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.connection.max + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - type: item + x: '48' + 'y': '10' + width: '24' + hide_header: 'YES' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: STRING + name: description + value: 'YSQL connection average used' + - type: INTEGER + name: desc_v_pos + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.connection.count + - type: INTEGER + name: show.0 + value: '1' + - type: INTEGER + name: show.1 + value: '2' + - type: INTEGER + name: show.2 + value: '4' + - name: 'YugabyteDB Cluster: Query statistic' + widgets: + - type: svggraph + name: 'YugabyteDB Cluster: YCQL OPS' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: B0AF07 + - type: STRING + name: ds.0.color.2 + value: 0EC9AC + - type: STRING + name: ds.0.color.3 + value: 524BBC + - type: STRING + name: ds.0.color.4 + value: ED1248 + - type: STRING + name: ds.0.color.5 + value: D1E754 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.select.ops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.update.ops + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.delete.ops + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.insert.ops + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.other.ops + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.transaction.ops + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAN + - type: svggraph + name: 'YugabyteDB Cluster: YSQL OPS' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: B0AF07 + - type: STRING + name: ds.0.color.2 + value: 0EC9AC + - type: STRING + name: ds.0.color.3 + value: 524BBC + - type: STRING + name: ds.0.color.4 + value: ED1248 + - type: STRING + name: ds.0.color.5 + value: D1E754 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.select.ops + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.update.ops + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.delete.ops + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.insert.ops + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.other.ops + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.transaction.ops + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAO + - type: svggraph + name: 'YugabyteDB Cluster: YCQL latency' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: B0AF07 + - type: STRING + name: ds.0.color.2 + value: 0EC9AC + - type: STRING + name: ds.0.color.3 + value: 524BBC + - type: STRING + name: ds.0.color.4 + value: ED1248 + - type: STRING + name: ds.0.color.5 + value: D1E754 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.select.latency + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.update.latency + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.delete.latency + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.insert.latency + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.other.latency + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.transaction.latency + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAP + - type: svggraph + name: 'YugabyteDB Cluster: YSQL latency' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: FF465C + - type: STRING + name: ds.0.color.1 + value: B0AF07 + - type: STRING + name: ds.0.color.2 + value: 0EC9AC + - type: STRING + name: ds.0.color.3 + value: 524BBC + - type: STRING + name: ds.0.color.4 + value: ED1248 + - type: STRING + name: ds.0.color.5 + value: D1E754 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.select.latency + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.update.latency + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.delete.latency + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.insert.latency + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.other.latency + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.transaction.latency + - type: INTEGER + name: legend_columns + value: '1' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAAAQ + - name: 'YugabyteDB Cluster: Node' + widgets: + - type: graphprototype + name: 'YugabyteDB Cluster: Node Disk IOPS' + width: '36' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + name: 'YugabyteDB Node [{#NODE.NAME}]: Node disk IOPS number' + - type: STRING + name: reference + value: AAAAR + - type: INTEGER + name: rows + value: '2' + - type: graphprototype + name: 'YugabyteDB Cluster: Node SST size' + x: '36' + width: '36' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + name: 'YugabyteDB Node [{#NODE.NAME}]: SST size' + - type: STRING + name: reference + value: AAAAS + - type: INTEGER + name: rows + value: '2' + - name: 'YugabyteDB Cluster: Keyspace' + widgets: + - type: graphprototype + name: 'YugabyteDB Cluster: Keyspace size' + width: '72' + height: '10' + fields: + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'YugabyteDB Cluster by HTTP' + name: 'YugabyteDB Keyspace [{#KEYSPACE.NAME}]: Keyspace size' + - type: STRING + name: reference + value: AAAAT + - type: INTEGER + name: rows + value: '2' + valuemaps: + - uuid: 8bac0bddc0f144aa901cd15d9cfd0825 + name: 'YugabyteDB Bool status' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' + - uuid: 7d6fa95c4346489fae2cdefa436bc9b6 + name: 'YugabyteDB Cluster state' + mappings: + - value: '0' + newvalue: INVALID + - value: '1' + newvalue: QUEUED + - value: '2' + newvalue: INIT + - value: '3' + newvalue: BOOTSTRAPPING + - value: '4' + newvalue: 'VPC PEERING' + - value: '5' + newvalue: 'NETWORK CREATING' + - value: '6' + newvalue: PROVISIONING + - value: '7' + newvalue: CONFIGURING + - value: '8' + newvalue: 'CREATING LB' + - value: '9' + newvalue: 'UPDATING LB' + - value: '10' + newvalue: ACTIVE + - value: '11' + newvalue: PAUSING + - value: '12' + newvalue: PAUSED + - value: '13' + newvalue: RESUMING + - value: '14' + newvalue: UPDATING + - value: '15' + newvalue: MAINTENANCE + - value: '16' + newvalue: RESTORE + - value: '17' + newvalue: FAILED + - value: '18' + newvalue: 'CREATE FAILED' + - value: '19' + newvalue: DELETING + - value: '20' + newvalue: 'STARTING NODE' + - value: '21' + newvalue: 'STOPPING NODE' + - value: '22' + newvalue: 'REBOOTING NODE' + - value: '23' + newvalue: 'CREATE READ REPLICA FAILED' + - value: '24' + newvalue: 'DELETE READ REPLICA FAILED' + - value: '25' + newvalue: 'DELETE CLUSTER FAILED' + - value: '26' + newvalue: 'EDIT CLUSTER FAILED' + - value: '27' + newvalue: 'EDIT READ REPLICA FAILED' + - value: '28' + newvalue: 'PAUSE CLUSTER FAILED' + - value: '29' + newvalue: 'RESUME CLUSTER FAILED' + - value: '30' + newvalue: 'RESTORE BACKUP FAILED' + - value: '31' + newvalue: 'CERTIFICATE ROTATION FAILED' + - value: '32' + newvalue: 'UPGRADE CLUSTER FAILED' + - value: '33' + newvalue: 'UPGRADE CLUSTER GFLAGS FAILED' + - value: '34' + newvalue: 'UPGRADE CLUSTER OS FAILED' + - value: '35' + newvalue: 'UPGRADE CLUSTER SOFTWARE FAILED' + - value: '36' + newvalue: 'START NODE FAILED' + - value: '37' + newvalue: 'STOP NODE FAILED' + - value: '38' + newvalue: 'REBOOT NODE FAILED' + - value: '39' + newvalue: 'CONFIGURE CMK' + - value: '40' + newvalue: 'ENABLING CMK' + - value: '41' + newvalue: 'DISABLING CMK' + - value: '42' + newvalue: 'UPDATING CMK' + - value: '43' + newvalue: 'ROTATING CMK' + - value: '44' + newvalue: 'STOPPING METRICS EXPORTER' + - value: '45' + newvalue: 'STARTING METRICS EXPORTER' + - value: '46' + newvalue: 'CONFIGURING METRICS EXPORTER' + - value: '47' + newvalue: 'STOP METRICS EXPORTER FAILED' + - value: '48' + newvalue: 'START METRICS EXPORTER FAILED' + - value: '49' + newvalue: 'CONFIGURE METRICS EXPORTER FAILED' + - value: '50' + newvalue: 'REMOVING METRICS EXPORTER' + - value: '51' + newvalue: 'REMOVE METRICS EXPORTER FAILED' + - value: '60' + newvalue: UNKNOWN + - uuid: 10b748dae0334399a004e0e412682ccb + name: 'YugabyteDB Cluster type' + mappings: + - value: '0' + newvalue: SYNCHRONOUS + - value: '1' + newvalue: GEO_PARTITIONED + - uuid: 73aa9e520a2d491c883f7e65b6187fd2 + name: 'YugabyteDB Health state' + mappings: + - value: '0' + newvalue: HEALTHY + - value: '1' + newvalue: 'NEEDS ATTENTION' + - value: '2' + newvalue: UNHEALTHY + - value: '3' + newvalue: UNKNOWN + - uuid: 8d5264a7981d4e39bab56d4241dda9f3 + name: 'YugabyteDB Keyspace type' + mappings: + - value: '0' + newvalue: YSQL + - value: '1' + newvalue: YCQL + - uuid: 63244be33897496d8f9599aca76e34e1 + name: 'YugabyteDB Node status' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + triggers: + - uuid: 12afa59565304d648e7a0165ea367a2a + expression: 'length(last(/YugabyteDB Cluster by HTTP/yugabytedb.node.get.errors)) > 0 or length(last(/YugabyteDB Cluster by HTTP/yugabytedb.keyspace.get.errors)) > 0 or length(last(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.get.errors)) > 0' + name: 'YugabyteDB Cluster: Failed to fetch data' + priority: WARNING + description: 'Failed to fetch data from the YugabyteDB API.' + tags: + - tag: scope + value: availability + - uuid: 93ea4576b31f44ca8ceef6db0ff12e2d + expression: 'length(last(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.query.statistic.get.errors)) > 0 or length(last(/YugabyteDB Cluster by HTTP/yugabytedb.cluster.metric.get.errors)) > 0' + name: 'YugabyteDB Cluster: Failed to fetch metric data' + priority: WARNING + description: 'Failed to fetch cluster metrics or cluster statistics.' + tags: + - tag: scope + value: availability + graphs: + - uuid: 2b52c11e2a8e4281b76aed17facd5666 + name: 'YugabyteDB Cluster: Average latency' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.write.latency + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.read.latency + - uuid: 719c31e55e1d41cfa7e3735ea6250593 + name: 'YugabyteDB Cluster: Connections' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.connection.count + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.connection.max + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.connection.limit + - uuid: f7fb23fb03b149cd908bf040dda9ff6c + name: 'YugabyteDB Cluster: Connections utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.connection.utilization + - uuid: 67ada72929dd445c96687b1782ff773e + name: 'YugabyteDB Cluster: CPU usage' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.cpu.utilization + - uuid: effb3cb75dc14d62b9a704c7358bd1f3 + name: 'YugabyteDB Cluster: Disc space usage' + graph_items: + - color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.provisioned + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.usage + - uuid: 3c13b0a318dd4a609cc67a10124274dc + name: 'YugabyteDB Cluster: Disc space utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.utilization + - uuid: f0983e69bb504ff6afe07d09bf5cb5a2 + name: 'YugabyteDB Cluster: Disk operations number' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.write.ops + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.read.ops + - uuid: 2ed45b6d26874d30abc14ba798b73cb1 + name: 'YugabyteDB Cluster: Disk usage rate' + graph_items: + - drawtype: BOLD_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.write.bps + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.disk.read.bps + - uuid: fb9ea2cc4af642f19ce384764838fce7 + name: 'YugabyteDB Cluster: Memory usage' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.memory.usage + - sortorder: '1' + drawtype: BOLD_LINE + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.memory.total + - uuid: 5fb91db735074557abd584a5cac434d3 + name: 'YugabyteDB Cluster: Memory utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.memory.utilization + - uuid: c845efa993de438899899f722f02cb11 + name: 'YugabyteDB Cluster: Network error' + graph_items: + - color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.network.transmit.error.rate + - sortorder: '1' + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.network.receive.error.rate + - uuid: 50d707e6f8584688a52049df58ad39d4 + name: 'YugabyteDB Cluster: Network rate' + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.network.transmit.bps + - sortorder: '1' + drawtype: GRADIENT_LINE + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.network.receive.bps + - uuid: d69b497ed5204b07994128984c776102 + name: 'YugabyteDB Cluster: YCQL latency' + graph_items: + - color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.select.latency + - sortorder: '1' + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.update.latency + - sortorder: '2' + color: 00611C + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.delete.latency + - sortorder: '3' + color: F7941D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.insert.latency + - sortorder: '4' + color: FC6EA3 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.other.latency + - sortorder: '5' + color: 6C59DC + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.transaction.latency + - uuid: 2c8bdf3c24ec47d481fdcac99be6a450 + name: 'YugabyteDB Cluster: YCQL operations' + graph_items: + - color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.select.ops + - sortorder: '1' + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.update.ops + - sortorder: '2' + color: 00611C + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.delete.ops + - sortorder: '3' + color: F7941D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.insert.ops + - sortorder: '4' + color: FC6EA3 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.other.ops + - sortorder: '5' + color: 6C59DC + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ycql.transaction.ops + - uuid: 17ac5a90c1b14300898fd23429e3dd11 + name: 'YugabyteDB Cluster: YSQL latency' + graph_items: + - color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.select.latency + - sortorder: '1' + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.update.latency + - sortorder: '2' + color: 00611C + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.delete.latency + - sortorder: '3' + color: F7941D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.insert.latency + - sortorder: '4' + color: FC6EA3 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.other.latency + - sortorder: '5' + color: 6C59DC + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.transaction.latency + - uuid: aadd49cf14f84aacaf34b3d7963be2b3 + name: 'YugabyteDB Cluster: YSQL operations' + graph_items: + - color: 199C0D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.select.ops + - sortorder: '1' + color: F63100 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.update.ops + - sortorder: '2' + color: 00611C + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.delete.ops + - sortorder: '3' + color: F7941D + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.insert.ops + - sortorder: '4' + color: FC6EA3 + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.other.ops + - sortorder: '5' + color: 6C59DC + item: + host: 'YugabyteDB Cluster by HTTP' + key: yugabytedb.cluster.ysql.transaction.ops diff --git a/YugabyteDB_by_HTTP.yaml b/YugabyteDB_by_HTTP.yaml new file mode 100644 index 0000000..cabfeba --- /dev/null +++ b/YugabyteDB_by_HTTP.yaml @@ -0,0 +1,257 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + host_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Databases + templates: + - uuid: bc056b1724e748bba50928f8cc605f8e + template: 'YugabyteDB by HTTP' + name: 'YugabyteDB by HTTP' + description: | + This template is designed for the deployment of YugabyteDB monitoring by Zabbix via HTTP and doesn't require any external scripts. + + To set up the template: + + 1. Set your account ID as a value of the {$YUGABYTEDB.ACCOUNT.ID} macro. The account ID is the unique identifier for your customer account in YugabyteDB Managed. You can access the account ID from your profile in the YugabyteDB Managed user interface. To get your account ID, log in to YugabyteDB Managed and click the user profile icon. + See YugabyteDB documentation for instructions: + https://yugabyte.stoplight.io/docs/managed-apis/tvsjh28t5ivmw-getting-started#account-id + + 2. Set your project ID as a value of the {$YUGABYTEDB.PROJECT.ID} macro. The project ID is the unique identifier for a YugabyteDB Managed project. You can access the project ID from your profile in the YugabyteDB Managed user interface (along with the account ID). + See YugabyteDB documentation for instructions: + https://yugabyte.stoplight.io/docs/managed-apis/tvsjh28t5ivmw-getting-started#project-id + + 3. Generate the API access token and specify it as a value of the {$YUGABYTEDB.ACCESS.TOKEN} macro. + See YugabyteDB documentation for instructions: + https://docs.yugabyte.com/preview/yugabyte-cloud/managed-automation/managed-apikeys/#create-an-api-key + + NOTE: If needed, you can specify a HTTP proxy for the template to use by changing the value of the {$YUGABYTEDB.PROXY} user macro. + + IMPORTANT! The value of the {$YUGABYTEDB.ACCESS.TOKEN} macro is stored as plain (not secret) text by default. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-3 + groups: + - name: Templates/Databases + items: + - uuid: 25196b29de6c45c18485f2aefe306818 + name: 'Get cluster' + type: SCRIPT + key: yugabytedb.clusters.get + delay: 1h + history: '0' + value_type: TEXT + trends: '0' + params: | + const CTlsConfig = function (raw_value) { + raw_value = String(raw_value).trim().toLowerCase(); + + if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { + raw_value = 'full'; + } + + this.options = { + SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), + SSLVerifyHost: (raw_value === 'full') + }; + + this.enabled = (raw_value !== 'none'); + + this.checkURL = function (url) { + if (this.enabled && !/^https:\/\//i.test(url)) { + throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; + } + + return url; + }; + } + + + var YugabyteDB = { + params: {}, + clusters: [], + error_msg: '', + + setParams: function (params) { + ['account_id', 'project_id', 'token'].forEach(function (field) { + if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { + throw 'Required param is not set: ' + field + '.'; + } + }); + + YugabyteDB.params = params; + YugabyteDB.tls = new CTlsConfig(params.tls_verify); + }, + + + request: function (url, data) { + if (typeof data === 'undefined' || data === null) { + data = ''; + } + + var response, request = new HttpRequest(YugabyteDB.tls.options); + if (typeof YugabyteDB.params.proxy !== 'undefined' && YugabyteDB.params.proxy !== '') { + request.setProxy(YugabyteDB.params.proxy); + } + if (YugabyteDB.params.token) { + request.addHeader('Accept: application/json'); + request.addHeader('Authorization: Bearer ' + YugabyteDB.params.token); + } + + Zabbix.log(4, '[ YugabyteDB ] Sending request: ' + url); + + response = request.get(url); + + Zabbix.log(4, '[ YugabyteDB ] Received response with status code ' + request.getStatus() + ': ' + response); + + if (request.getStatus() !== 200 || response === null) { + throw 'Request failed with status code ' + request.getStatus() + ': ' + response; + } + + try { + return JSON.parse(response); + } + catch (error) { + throw 'Failed to parse response received from API:' + error; + } + } + + }; + + try { + YugabyteDB.setParams(JSON.parse(value)); + + clusters = YugabyteDB.request( + 'https://cloud.yugabyte.com/api/public/v1/accounts/' + YugabyteDB.params.account_id + '/projects/' + YugabyteDB.params.project_id + '/clusters' + ) + + YugabyteDB.clusters = clusters.data; + } + catch (error) { + Zabbix.log(3, '[ YugabyteDB ] ERROR: ' + error); + YugabyteDB.error_msg = 'Failed to get data from API:' + error; + } + + return JSON.stringify({'clusters': YugabyteDB.clusters, 'error': YugabyteDB.error_msg}); + description: 'Get raw data about clusters.' + timeout: 10s + parameters: + - name: account_id + value: '{$YUGABYTEDB.ACCOUNT.ID}' + - name: project_id + value: '{$YUGABYTEDB.PROJECT.ID}' + - name: proxy + value: '{$YUGABYTEDB.PROXY}' + - name: tls_verify + value: '{$HTTP.TLS.VERIFY:"YugabyteDB"}' + - name: token + value: '{$YUGABYTEDB.ACCESS.TOKEN}' + tags: + - tag: component + value: raw + - uuid: f5a43644d4d341658b8818077e24ccb3 + name: 'Get clusters item error' + type: DEPENDENT + key: yugabytedb.clusters.get.errors + delay: '0' + value_type: TEXT + trends: '0' + description: 'Item for gathering all the cluster item errors.' + preprocessing: + - type: JSONPATH + parameters: + - $.error + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: yugabytedb.clusters.get + tags: + - tag: component + value: error + triggers: + - uuid: add4067f699f401887d259ee35b4d654 + expression: 'length(last(/YugabyteDB by HTTP/yugabytedb.clusters.get.errors)) > 0' + name: 'YugabyteDB: Failed to fetch data' + priority: WARNING + description: 'Failed to fetch data about cluster.' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: b882ad93a75046b09794c7f229482006 + name: 'Cluster discovery' + type: DEPENDENT + key: yugabytedb.cluster.discovery + delay: '0' + description: 'Discovery of the available clusters.' + host_prototypes: + - uuid: 1a7ec22ad5ad41e0bcb04c01c2c45e4e + host: '{#CLUSTER.ID}' + name: 'YugabyteDB Cluster [{#CLUSTER.NAME}]' + group_links: + - group: + name: Databases + templates: + - name: 'YugabyteDB Cluster by HTTP' + macros: + - macro: '{$YUGABYTEDB.CLUSTER.ID}' + value: '{#CLUSTER.ID}' + description: 'ID of cluster.' + - macro: '{$YUGABYTEDB.CLUSTER.NAME}' + value: '{#CLUSTER.NAME}' + description: 'Name of cluster.' + tags: + - tag: cluster + value: '{#CLUSTER.NAME}' + master_item: + key: yugabytedb.clusters.get + lld_macro_paths: + - lld_macro: '{#CLUSTER.ID}' + path: $.cluster_id + - lld_macro: '{#CLUSTER.NAME}' + path: $.cluster_name + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var result = []; + var clusters = JSON.parse(value); + + for (var cluster in clusters['clusters']) { + result.push({ + "cluster_id": clusters['clusters'][cluster]['info']['id'], + "cluster_name": clusters['clusters'][cluster]['spec']['name'] + }); + }; + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: class + value: database + - tag: target + value: yugabytedb + macros: + - macro: '{$HTTP.TLS.VERIFY}' + value: full + description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "YugabyteDB", e.g. {$HTTP.TLS.VERIFY:"YugabyteDB"}.' + - macro: '{$YUGABYTEDB.ACCESS.TOKEN}' + value: '' + description: 'Access token for the YugabyteDB API.' + - macro: '{$YUGABYTEDB.ACCOUNT.ID}' + value: '' + description: 'YugabyteDB account ID.' + - macro: '{$YUGABYTEDB.PROJECT.ID}' + value: '' + description: 'YugabyteDB project ID.' + - macro: '{$YUGABYTEDB.PROXY}' + description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' diff --git a/ZYXEL_AAM1212-51_IES-612_by_SNMP.yaml b/ZYXEL_AAM1212-51_IES-612_by_SNMP.yaml new file mode 100644 index 0000000..8631e8e --- /dev/null +++ b/ZYXEL_AAM1212-51_IES-612_by_SNMP.yaml @@ -0,0 +1,1113 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 3a71dcdcfe0b4a0e8284d8939d335cce + template: 'ZYXEL AAM1212-51 IES-612 by SNMP' + name: 'ZYXEL AAM1212-51 IES-612 by SNMP' + description: | + ZYXEL AAM1212-51 / IES-612 + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ADSL-LINE-MIB + ZYXEL-IESCOMMON-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL AAM1212-51 / IES-612 + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 5b6932995b634a5792d3948ba79312e5 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 40839f3008b84e3c9ffa8858bd2ab616 + expression: 'max(/ZYXEL AAM1212-51 IES-612 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: 9b04315c5e9a41eea5f50623c83f21d0 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.aam1212.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 6b29fd2b27fe4788bef1e4072430d5bd + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.1.3.1.4.0.0]' + key: zyxel.aam1212.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-IESCOMMON-MIB' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 02ba3941993f48ca8d5f40b3b19804e8 + expression: 'last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.fwversion,#1)<>last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.fwversion,#2) and length(last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5197238bef51468c80e6a4180babee5b + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.aam1212.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: ea699e392c154a79927a056ff050c59d + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.aam1212.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: d2cabaa6e083489b8b11e6a349ba1bc9 + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.aam1212.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 31840a6849f7437bbb77334128c9e90b + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.aam1212.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 5a3f459afc4f42fb90849e98c7639a96 + expression: 'last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.model)<>"AAM1212-51 / IES-612"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel AAM1212-51 / IES-612, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 59628c9211c444228b6d8d9ddb30af54 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.aam1212.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 6fe78b9b065243b8bcebf8f6c234f868 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.aam1212.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 33df8d594d7f4e4aa148927b117f30df + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.1.2.1.3.0]' + key: zyxel.aam1212.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IESCOMMON-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 7528520bca7c4524b7451aeaca440cc5 + expression: 'last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.serialnumber,#1)<>last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.serialnumber,#2) and length(last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4efb46536e8a43e78cd26ae90bd2ab83 + name: 'Alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.1.3.1.8.0.0]' + key: zyxel.aam1212.slot.alarm + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IESCOMMON-MIB + This variable indicates the alarm status of the module. + It is a bit map represented a sum, therefore, it can represent + multiple defects simultaneously. The moduleNoDefect should be set + if and only if no other flag is set. + The various bit positions are: + 1 moduleNoDefect + 2 moduleOverHeat + 3 moduleFanRpmLow + 4 moduleVoltageLow + 5 moduleThermalSensorFailure + 6 modulePullOut + 7 powerDC48VAFailure + 8 powerDC48VBFailure + 9 extAlarmInputTrigger + 10 moduleDown + 11 mscSwitchOverOK + 12 networkTopologyChange + 13 macSpoof + 14 cpuHigh + 15 memoryUsageHigh + 16 packetBufferUsageHigh + 17 loopguardOccurence + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var valueArray = [ + 'moduleNoDefect', + 'moduleOverHeat', + 'moduleFanRpmLow', + 'moduleVoltageLow', + 'moduleThermalSensorFailure', + 'modulePullOut', + 'powerDC48VAFailure', + 'powerDC48VBFailure', + 'extAlarmInputTrigger', + 'moduleDown', + 'mscSwitchOverOK', + 'networkTopologyChange', + 'macSpoof', + 'cpuHigh', + 'memoryUsageHigh', + 'packetBufferUsageHigh', + 'loopguardOccurence' + ]; + var base2 = parseInt(value).toString(2); + var outArray = []; + for (var i = 0; i < base2.length; ++i) { + if (base2[base2.length - 1 - i] === '1') outArray.push(valueArray[i]); + } + return outArray.join(); + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + triggers: + - uuid: eec541b07a434770b2a3301825cc5e82 + expression: 'find(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.slot.alarm,,"like","moduleNoDefect")=0' + name: 'ZYXEL: Port {#SNMPINDEX} alarm' + priority: AVERAGE + description: 'The slot reported an error.' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: c0fa2c901419420eaaa2a64e59fbad29 + name: 'ADSL interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.2.1.2.2.1.2,{#ZYXEL.IF.LINKSTATUS},1.3.6.1.2.1.2.2.1.8]' + key: zyxel.aam1212.net.adsl.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: adsl + formulaid: C + item_prototypes: + - uuid: 8b8e4d329490481983d2a1b0209e18a1 + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL AAM1212-51 / IES-612 port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 010b15528a8d498bb8f77db9c548bc8e + name: 'Port {#SNMPINDEX}: ATUC attenuation' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.5.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.atuc.atn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured difference in the total power transmitted by + the peer ATU and the total power received by this ATU. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL AAM1212-51 / IES-612, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 0c78247a1003496abab584a526777a40 + expression: 'min(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.adsl.atuc.atn[{#SNMPINDEX}],5m)>{$ZYXEL.ADSL.ATN.MAX}' + name: 'ZYXEL: High the DSL line attenuation in Port {#SNMPINDEX}' + event_name: 'ZYXEL: High the DSL line attenuation in Port {#SNMPINDEX} (>{$ZYXEL.ADSL.ATN.MAX}dB for 5m)' + priority: WARNING + description: 'The reductions in amplitude of the downstream and upstream DSL signals.' + tags: + - tag: scope + value: capacity + - uuid: 382d9f2f9458423eb887b6fd28697c3a + name: 'Port {#SNMPINDEX}: ATUC output power' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.atuc.outpwr[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured total output power transmitted by this ATU. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL AAM1212-51 / IES-612, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a273e455881948a895eb60b453ce8f61 + name: 'Port {#SNMPINDEX}: ATUC noise margin' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.4.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.atuc.snrmgn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Noise Margin as seen by this ATU with respect to its + received signal in tenth dB. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL AAM1212-51 / IES-612, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 14cbae6c16c245b09ed46e0cc01a556c + expression: 'min(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.adsl.atuc.snrmgn[{#SNMPINDEX}],5m)<{$ZYXEL.ADSL.SNR.MIN}' + name: 'ZYXEL: Low the DSL line noise margins in Port {#SNMPINDEX}' + event_name: 'ZYXEL: Low the DSL line noise margins in Port {#SNMPINDEX} (<{$ZYXEL.ADSL.SNR.MIN}dB for 5m)' + priority: WARNING + description: 'Signal-to-noise margin (SNR Margin) which is the difference between the actual SNR and the SNR required to sync at a specific speed' + tags: + - tag: scope + value: capacity + - uuid: 3bfa258832dd49cca9ced6d5d78252d1 + name: 'Port {#SNMPINDEX}: ATUR attenuation' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.5.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.atur.atn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured difference in the total power transmitted by + the peer ATU and the total power received by this ATU. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: e917c9a8d6bb4af3a40c6c5b41f90c22 + expression: 'min(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.adsl.atur.atn[{#SNMPINDEX}],5m)>{$ZYXEL.ADSL.ATN.MAX}' + name: 'ZYXEL: High the DSL line attenuation in Port {#SNMPINDEX}' + event_name: 'ZYXEL: High the DSL line attenuation in Port {#SNMPINDEX} (>{$ZYXEL.ADSL.ATN.MAX}dB for 5m)' + priority: WARNING + description: 'The reductions in amplitude of the downstream and upstream DSL signals.' + tags: + - tag: scope + value: capacity + - uuid: da2105dce83d4f619b69a9c8e5875bac + name: 'Port {#SNMPINDEX}: ATUR output power' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.7.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.atur.outpwr[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured total output power transmitted by this ATU. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e59b98a685874f888557eb3d1c41a828 + name: 'Port {#SNMPINDEX}: ATUR noise margin' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.4.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.atur.snrmgn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Noise Margin as seen by this ATU with respect to its + received signal in tenth dB. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 125b08332e2f409985cade88ab3842f1 + expression: 'min(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.adsl.atur.snrmgn[{#SNMPINDEX}],5m)<{$ZYXEL.ADSL.SNR.MIN}' + name: 'ZYXEL: Low the DSL line noise margins in Port {#SNMPINDEX}' + event_name: 'ZYXEL: Low the DSL line noise margins in Port {#SNMPINDEX} (<{$ZYXEL.ADSL.SNR.MIN}dB for 5m)' + priority: WARNING + description: 'Signal-to-noise margin (SNR Margin) which is the difference between the actual SNR and the SNR required to sync at a specific speed' + tags: + - tag: scope + value: capacity + - uuid: 70fa53318d354503b44b70696cb8ccd2 + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 53241d402d0f4b4ca826f9712ad1af69 + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 53ff6ee2132a4503890c35919baa2fd8 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL AAM1212-51 / IES-612 port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 956fc99c2c5341a2b29ba2f302cc0a3a + expression: 'last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.adsl.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.adsl.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.adsl.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.adsl.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 021b85f4efea4be9834e7959ed2471f5 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.16.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.adsl.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 09d34a6f9dd2499b8759e15301eefdb5 + name: 'ZYXEL AAM1212-51 / IES-612: ADSL port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL AAM1212-51 IES-612 by SNMP' + key: 'zyxel.aam1212.net.adsl.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL AAM1212-51 IES-612 by SNMP' + key: 'zyxel.aam1212.net.adsl.out.traffic[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 8e327f4a888b417db390148e7a894d10 + name: 'Ethernet interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.2.1.2.2.1.2,{#ZYXEL.IF.LINKSTATUS},1.3.6.1.2.1.2.2.1.8]' + key: zyxel.aam1212.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: enet + formulaid: C + item_prototypes: + - uuid: d68dd1f83f5f41f4b372cc0a2261f30e + name: 'Port {#ZYXEL.IF.NAME}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL AAM1212-51 / IES-612 port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: f5dd08da51664f1d82a16b0826cdb9ce + name: 'Port {#ZYXEL.IF.NAME}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e2a630669e924f069b98d11a32737411 + name: 'Port {#ZYXEL.IF.NAME}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 6232538bf48a4f12a1f85164dc95bcf8 + name: 'Port {#ZYXEL.IF.NAME}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL AAM1212-51 / IES-612 port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 805f49836f794aad9ee00f66dd90ffc1 + expression: 'last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#ZYXEL.IF.NAME}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d69676fc00e64c97afd7da416891b0ef + name: 'Port {#ZYXEL.IF.NAME}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.aam1212.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 4f5b714c04a44fbb9a64399c831b2980 + name: 'ZYXEL AAM1212-51 / IES-612: Ethernet port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL AAM1212-51 IES-612 by SNMP' + key: 'zyxel.aam1212.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL AAM1212-51 IES-612 by SNMP' + key: 'zyxel.aam1212.net.if.out.traffic[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 4bc61b4441a840a79bbd118a1d3cf66e + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.ID},1.3.6.1.4.1.890.1.5.13.1.2.3.1.1,{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.13.1.2.3.1.5]' + key: zyxel.aam1212.temp.discovery + delay: 1h + description: 'An entry in tempTable.' + item_prototypes: + - uuid: 82045c5b71b04c62b7525db28f292ad2 + name: 'Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.2.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.aam1212.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-IESCOMMON-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: 321b2efb6e8e4117949b3644cc101ff2 + expression: 'last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 00cd199f1e114fcbafbd3dd19c1b2f47 + name: 'ZYXEL AAM1212-51 / IES-612: "Temperature {#ZYXEL.TEMP.ID}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL AAM1212-51 IES-612 by SNMP' + key: 'zyxel.aam1212.temp[{#SNMPINDEX}]' + - uuid: fbb48a267b7646a98246da0357a1ee95 + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.13.1.2.2.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.13.1.2.2.1.5]' + key: zyxel.aam1212.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: 9e73d63d1af2473599e17ab214f03b32 + name: 'Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.aam1212.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-IESCOMMON-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: a7aa1ae207bb462bb23d3f2fca2c3533 + expression: 'last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: afdd9501f85c4c9f9a81b8f16968990b + name: 'ZYXEL AAM1212-51 / IES-612: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL AAM1212-51 IES-612 by SNMP' + key: 'zyxel.aam1212.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.SENSOR.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000; + item["{#ZYXEL.VOLT.THRESH.HIGH}"] /= 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: aam1212-51 + - tag: target + value: dslam + - tag: target + value: zyxel + macros: + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.ADSL.ATN.MAX}' + value: '40' + description: 'Type the maximum signal attenuation' + - macro: '{$ZYXEL.ADSL.SNR.MIN}' + value: '8' + description: 'Type the minimum signal to noise margin (0-31 dB)' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + value: '.*' + description: 'Filter of discoverable link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + value: '2' + description: 'Filter to exclude discovered by link types.' + dashboards: + - uuid: 82c428eb915e45f3af759b9d9f44d90e + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '10' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL AAM1212-51 IES-612 by SNMP' + name: 'ZYXEL AAM1212-51 / IES-612: Ethernet port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '4' + valuemaps: + - uuid: 2b7c7c3eecb743e8a30ab3adc74ffd06 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: db7f61bebcac452c8081b2c58d1013d8 + name: 'ZYXEL AAM1212-51 / IES-612 port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: 6c2a29dac43340399990340fe26a7a72 + name: 'ZYXEL AAM1212-51 / IES-612 port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + triggers: + - uuid: 819190f68248439292fc4622c3eec5a9 + expression: '(last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.hw.uptime)>0 and last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.hw.uptime)<10m) or (last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.hw.uptime)=0 and last(/ZYXEL AAM1212-51 IES-612 by SNMP/zyxel.aam1212.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/ZYXEL_ES3500-8PD_by_SNMP.yaml b/ZYXEL_ES3500-8PD_by_SNMP.yaml new file mode 100644 index 0000000..dce4ad3 --- /dev/null +++ b/ZYXEL_ES3500-8PD_by_SNMP.yaml @@ -0,0 +1,1409 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: b8a6f34fd5c447b1b9310746a96f4e80 + template: 'ZYXEL ES3500-8PD by SNMP' + name: 'ZYXEL ES3500-8PD by SNMP' + description: | + ZYXEL ES3500-8PD + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ZYXEL-ES3500-8PD-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL ES3500-8PD + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 294a49fc36e848cc9f9959624c9a5ab3 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 3bbbd93c114f4bf5b8f4788ca6825afd + expression: 'max(/ZYXEL ES3500-8PD by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: 6d513a036f8547219b1120fc4fffff1d + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.3500_8pd.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: e7fd0f225802477aabbbcbfe5ac4a7f6 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.12.7.0]' + key: zyxel.3500_8pd.cpuusage + value_type: FLOAT + units: '%' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Show device CPU load in %, it's the snapshot of CPU load when + getting the values. + tags: + - tag: component + value: cpu + triggers: + - uuid: 3cf67f911a854d2ebeb9e006f3f97738 + expression: 'min(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.cpuusage,5m)>{$CPU.UTIL.CRIT}' + name: 'ZYXEL: High CPU utilization' + event_name: 'ZYXEL: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 8749f59cbfeb4c43b7753901f3219716 + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMP.ARRAY},1.3.6.1.4.1.890.1.5.8.72.1]' + key: zyxel.3500_8pd.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-ES3500-8PD-MIB' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var tmpObj = {}; + inArray.forEach(function(item, i, arr) { + tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"] + }); + var strOut = 'V' + tmpObj["1.0"] + '.' + tmpObj["2.0"] + + '(' + tmpObj["3.0"] + '.' + tmpObj["4.0"] + ')_' + + tmpObj["7.0"] + '.' + tmpObj["6.0"] + '.' + tmpObj["5.0"]; + return strOut; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: inventory + triggers: + - uuid: bd6d0fe201094c00b6c93d7c04c27729 + expression: 'last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.fwversion,#1)<>last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.fwversion,#2) and length(last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ef45d91672ea43c3aa24cbc21f37d391 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.3500_8pd.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cbccb45e9d1d4b529cce2d43e6c96a24 + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.3500_8pd.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 1479a543105a4cf2b524bf8d042afd00 + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.3500_8pd.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: c753caf7686e49968931df18076a5d4f + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.3500_8pd.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: e03ca45643354a18a9d6ffbb38a07654 + expression: 'last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.model)<>"ES3500-8PD"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel ES3500-8PD, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 2072ac4b4437425a9ef1496b90c64990 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.3500_8pd.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: bbd24719955740e0acc2316a945dac38 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.3500_8pd.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 93a3b8ef959e41fe822abb959f090939 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.1.10.0]' + key: zyxel.3500_8pd.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 83548aba74c148e28e6611d5abfb9694 + expression: 'last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.serialnumber,#1)<>last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.serialnumber,#2) and length(last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: dfc515bfe86642e784735637bdb6c0a7 + name: 'Memory pool discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.MEMORY.NAME},1.3.6.1.4.1.890.1.5.8.72.124.1.1.2]' + key: zyxel.3500_8pd.memory.discovery + delay: 1h + item_prototypes: + - uuid: ae5a9303d10a49fba04064bb77b40b61 + name: 'Memory "{#ZYXEL.MEMORY.NAME}" utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.124.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.memory[{#SNMPINDEX}]' + units: '%' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Utilization of memory pool in %. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: c59c3730eea44cf7a842fe46aa12fa3d + expression: 'min(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.memory[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'ZYXEL: High memory utilization in "{#ZYXEL.MEMORY.NAME}" pool' + event_name: 'ZYXEL: High memory utilization in "{#ZYXEL.MEMORY.NAME}" pool (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: c71d57f8ed0b470faae1bfd7033fbcf0 + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.4.1.890.1.5.8.72.24.1.1.3,{#ZYXEL.IF.LINKUPTYPE},1.3.6.1.4.1.890.1.5.8.72.24.1.1.5]' + key: zyxel.3500_8pd.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 91a0a38a0f60464cb97c65f375e8fbb7 + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL ES3500-8PD port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 1daef38185b14a96b8f0fce757c48677 + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 4de0488610054ed9bd869dc48a07174e + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 55cf0d86b8bc4a6fa6806c9f8bce7ee9 + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 0ce5c7ae49284615a41aba4cdd0f565b + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 34a86d17de7e4725aa6e5893c1e52526 + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b1c630d6f06748b88d695dfdb734cd19 + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: f24ad30d48ca427eb3b19d4459cab733 + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.3500_8pd.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3500_8pd.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 8c141ab269eb4a8891937a1847312890 + name: 'Port {#SNMPINDEX}: Link type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.24.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.link_type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Physical connection type + valuemap: + name: 'ZYXEL ES3500-8PD operational mode port link up type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 018c1028b7904fbea8b1bb0d2fac1621 + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.24.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 4f75b84c02b4496db2cbedca8df00c04 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL ES3500-8PD port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 27ba4832c79d447186ae6de254aad9d7 + expression: 'last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bb4c00143a4f4cc2b445daeffdcf6b57 + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 103385b00f6442beab10712ca42d5719 + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 08cd8a42816040d582d3192a9d8c2fb7 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: df030eba0fd548d5be224e2fe120373c + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: cabb6da9aa3e4ae0ae6938b3f3d47138 + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.3500_8pd.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3500_8pd.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5200e032f5f6438e8326799208072845 + name: 'Port {#SNMPINDEX}: Speed Duplex' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.24.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.net.if.speed_duplex[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Transmission mode + valuemap: + name: 'ZYXEL ES3500-8PD operational mode port speed duplex' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: a4b7fd4158464655a71732de5ebc9a9d + name: 'ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: 4e20dd0297a94188a6e4032df91432dc + name: 'ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: c57f41ad6c084a358668e4d7a57b902e + name: 'ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 21d6664eb56c41b388b4f4709a81d33d + name: 'SFP with DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.WARN.MAX},1.3.6.1.4.1.890.1.5.8.72.117.2.1.5,{#ZYXEL.SFP.WARN.MIN},1.3.6.1.4.1.890.1.5.8.72.117.2.1.6,{#ZYXEL.SFP.DESCRIPTION},1.3.6.1.4.1.890.1.5.8.72.117.2.1.8]' + key: zyxel.3500_8pd.sfp.ddm.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP DDM module discovery.' + item_prototypes: + - uuid: 3a93aa9a9e2e44318f08c3eff86ce7bb + name: 'SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.117.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.sfp.ddm[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: FLOAT + units: '!{#ZYXEL.SFP.UNIT}' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Transceiver module DDM data ({#ZYXEL.SFP.DESCRIPTION}). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 8ce109a9f09b41458a4e9d8698238ad0 + expression: 'last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.sfp.ddm[{#SNMPINDEX}]) > {#ZYXEL.SFP.WARN.MAX}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION} (over {#ZYXEL.SFP.WARN.MAX}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The upper threshold value of the parameter is exceeded' + tags: + - tag: scope + value: notice + - uuid: 6ecef48a1fdd4e16afe9472f59e0ad1a + expression: 'last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.sfp.ddm[{#SNMPINDEX}]) < {#ZYXEL.SFP.WARN.MIN}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION} (less than {#ZYXEL.SFP.WARN.MIN}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The parameter values are less than the lower threshold' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: c114cc7fee5c4c8fa3301db0eb3b60f7 + name: 'ZYXEL ES3500-8PD: SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.sfp.ddm[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = { + 'Temperature': '°C', + 'Voltage': 'V', + 'TxBias': 'mA', + 'TxPower': 'dbm', + 'RxPower': 'dbm' + }; + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SFP.PORT}'] = item['{#SNMPINDEX}'].split('.')[0]; + item['{#ZYXEL.SFP.UNIT}'] = nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']] === undefined ? "" : nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']]; + item['{#ZYXEL.SFP.WARN.MAX}'] /= 100; + item['{#ZYXEL.SFP.WARN.MIN}'] /= 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: a003b7fdc07b4ac6a063379b892943fa + name: 'SFP without DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.STATUS},1.3.6.1.4.1.890.1.5.8.72.117.1.1.2]' + key: zyxel.3500_8pd.sfp.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP module discovery.' + item_prototypes: + - uuid: 12345032490f4d24aeb7bfb07eae59fb + name: 'SFP {#SNMPINDEX}: Date code' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.117.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.sfp.datecode[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Transceiver module vendor's manufacturing date code. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 2b30a4497cbd497886c52ae79ad03a01 + name: 'SFP {#SNMPINDEX}: Part number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.117.1.1.4.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.sfp.part[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 25aa375ed4a345e6b975bcb238cf530d + name: 'SFP {#SNMPINDEX}: Revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.117.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.sfp.revision[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Revision level for part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 3f24d3aa58624ed0ad7a137fc9b1611a + name: 'SFP {#SNMPINDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.117.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.sfp.serialnumber[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Serial number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 46739144d51b441886d544829749cf21 + expression: 'last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.sfp.serialnumber[{#SNMPINDEX}],#1)<>last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.sfp.serialnumber[{#SNMPINDEX}],#2) and length(last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.sfp.serialnumber[{#SNMPINDEX}]))>0' + name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced' + event_name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced (new serial number received)' + priority: INFO + description: 'SFP {#SNMPINDEX} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 054942c20bca4459b26e41aca8657e4c + name: 'SFP {#SNMPINDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.117.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.sfp.status[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Transceiver module status. + valuemap: + name: 'ZYXEL ES3500-8PD SFP status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 7621973ef61b47c9bc034eec3d008957 + name: 'SFP {#SNMPINDEX}: Transceiver' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.117.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.sfp.transceiver[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Transceiver module type names. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 715feecd140b4e9ca350b41490f7c7f9 + name: 'SFP {#SNMPINDEX}: Vendor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.117.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.sfp.vendor[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + Transceiver module vendor name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 9c8f5212222a42bcbd42f8d848476804 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.8.72.9.2.1.5]' + key: zyxel.3500_8pd.temp.discovery + delay: 1h + description: | + An entry in tempTable. + Index of temperature unit. 1:MAC, 2:CPU, 3:PHY + item_prototypes: + - uuid: f884edb984ab42ce8abffed0f66a2347 + name: 'Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.9.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-ES3500-8PD-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: 51fad2cd7daf49ad9027f44fd9ea81af + expression: 'last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: a1931b48befb4c76a4d5a7ff6c15cbaf + name: 'ZYXEL ES3500-8PD: Temperature "{#ZYXEL.TEMP.ID}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.temp[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"}; + var outArr = []; + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]] + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 5cd3ac86665c459cbbee3178fca6560f + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.72.9.3.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.8.72.9.3.1.5]' + key: zyxel.3500_8pd.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: 01838a79d7304d838798bd2d6b427936 + name: 'Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.72.9.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_8pd.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-ES3500-8PD-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 2cce1a60cfea4bb89e1b9582f6045d3c + expression: 'last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 94ee588ae558416da5bcf4c199797d93 + name: 'ZYXEL ES3500-8PD: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: 'zyxel.3500_8pd.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: es3500-8pd + - tag: target + value: switch + - tag: target + value: zyxel + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + value: 1|2 + description: | + Filter of discoverable link types. + 0 - Down link + 1 - Cooper link + 2 - Fiber link + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + value: 1|2 + description: | + Filter of discoverable status. + 0 - OK with DDM + 1 - OK without DDM + 2 - nonoperational + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by status.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable SFP modules name.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + value: N/A + description: 'Filter to exclude discovered SFP modules by name.' + - macro: '{$ZYXEL.LLD.SFP.UPDATE}' + value: 10m + description: 'Receiving data from the SFP module is slow, we do not recommend setting the interval less than 10 minutes.' + dashboards: + - uuid: db61810d6deb4c68a9f3c83bdbca6f7a + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL ES3500-8PD by SNMP' + name: 'ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: 494c8983c4cf453789d2f0bbbe5cbbf3 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 7cfe02e1eb224f6abe5216aaec31402c + name: 'ZYXEL ES3500-8PD operational mode port link up type' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Cooper + - value: '2' + newvalue: Fiber + - uuid: b568c9f69a1a4dd5951f1121523475c9 + name: 'ZYXEL ES3500-8PD operational mode port speed duplex' + mappings: + - value: '0' + newvalue: auto + - value: '1' + newvalue: '10M half' + - value: '2' + newvalue: '10M full' + - value: '3' + newvalue: '100M half' + - value: '4' + newvalue: '100M full' + - value: '5' + newvalue: '1G full' + - uuid: 4a20dd55c16b4c9082f267c532a4507a + name: 'ZYXEL ES3500-8PD port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: 17635045a1ee4b8bba21b7d44634c57f + name: 'ZYXEL ES3500-8PD port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 875833a6ca71431da2b3747c4c1e3008 + name: 'ZYXEL ES3500-8PD SFP status' + mappings: + - value: '1' + newvalue: 'OK with DDM' + - value: '2' + newvalue: 'OK without DDM' + - value: '3' + newvalue: nonoperational + triggers: + - uuid: eb7a268bfa324366953221e3c1788127 + expression: '(last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.hw.uptime)>0 and last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.hw.uptime)<10m) or (last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.hw.uptime)=0 and last(/ZYXEL ES3500-8PD by SNMP/zyxel.3500_8pd.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 2d266c1cab6e462b89975538acc18266 + name: 'ZYXEL ES3500-8PD: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ZYXEL ES3500-8PD by SNMP' + key: zyxel.3500_8pd.cpuusage diff --git a/ZYXEL_GS-4012F_by_SNMP.yaml b/ZYXEL_GS-4012F_by_SNMP.yaml new file mode 100644 index 0000000..1165ea7 --- /dev/null +++ b/ZYXEL_GS-4012F_by_SNMP.yaml @@ -0,0 +1,1116 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 73f123bb9ffe4587a0269c7e8752b2ed + template: 'ZYXEL GS-4012F by SNMP' + name: 'ZYXEL GS-4012F by SNMP' + description: | + ZYXEL GS-4012F + + MIBs used: + ZYXEL-GS4012F-MIB + RFC1213-MIB + HOST-RESOURCES-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL GS-4012F + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 2839fec9602a4162bb0acfb1be89fd57 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 07b74d3face24c838c7efe8dfb87564e + expression: 'max(/ZYXEL GS-4012F by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: 831444715edf4a12baf6a5727ba9276c + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.4012f.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: e2a6ce044f6d40bebb50927cc70bd593 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.20.12.7.0]' + key: zyxel.4012f.cpuusage + value_type: FLOAT + units: '%' + description: | + MIB: ZYXEL-GS4012F-MIB + Show device CPU load in %, it's the snapshot of CPU load when + getting the values. + tags: + - tag: component + value: cpu + triggers: + - uuid: 2052d9e6becd48e5a3aed8037eaf9e87 + expression: 'min(/ZYXEL GS-4012F by SNMP/zyxel.4012f.cpuusage,5m)>{$CPU.UTIL.CRIT}' + name: 'ZYXEL: High CPU utilization' + event_name: 'ZYXEL: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: adb85140eb8c4b6489078dc79bd61a87 + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMP.ARRAY},1.3.6.1.4.1.890.1.5.8.20.1]' + key: zyxel.4012f.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-GS4012F-MIB' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var tmpObj = {}; + inArray.forEach(function(item, i, arr) { + tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"] + }); + var strOut = 'V' + tmpObj["1.0"] + '.' + tmpObj["2.0"] + + '(' + tmpObj["3.0"] + '.' + tmpObj["4.0"] + ')_' + + tmpObj["7.0"] + '.' + tmpObj["6.0"] + '.' + tmpObj["5.0"]; + return strOut; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: inventory + triggers: + - uuid: ecde6db248674039a30874f29e704e65 + expression: 'last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.fwversion,#1)<>last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.fwversion,#2) and length(last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 1f979fc1f31c4766949cfc343d3c231a + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.4012f.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: f55214647bab4544adb7d9a63e8be69d + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.4012f.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 770d70d2ebcb4978b6c6fae0692ab77f + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.4012f.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 25c5e9b3d34f4bb8805e2a6c43934f51 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.4012f.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 1ba1faabe15c4d46adaa4dc74c5dc05c + expression: 'last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.model)<>"GS-4012F"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel GS-4012F, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 38fb81dca1db49bc83343ba197bfe980 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.4012f.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 1c14e77679fe4ee6b167036d8888867e + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.4012f.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 0080e896f1384245887a191d87496fa9 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.20.1.10.0]' + key: zyxel.4012f.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-GS4012F-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: ae941404115d4b10809bce603528ceaa + expression: 'last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.serialnumber,#1)<>last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.serialnumber,#2) and length(last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 344cd89247db49ba854ab6edb504086d + name: 'Fan discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.FANRPM.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.20.9.1.1.5]' + key: zyxel.4012f.fan.discovery + delay: 1h + description: 'An entry in fanRpmTable.' + item_prototypes: + - uuid: 0f7fb278c896436c96fb1b5006ee4e06 + name: 'Fan #{#SNMPINDEX}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.20.9.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.4012f.fan[{#SNMPINDEX}]' + units: '!rpm' + description: | + MIB: ZYXEL-GS4012F-MIB + Current speed in Revolutions Per Minute (RPM) on the fan. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: c91993daf9e44102a04b1ff2b72bf773 + expression: 'last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.fan[{#SNMPINDEX}])<{#ZYXEL.FANRPM.THRESH.LOW}' + name: 'ZYXEL: FAN{#SNMPINDEX} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 9c17e54a98324a9bb35c3a4234efe55f + name: 'ZYXEL GS-4012F: Fan #{#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.fan[{#SNMPINDEX}]' + - uuid: 2f731cdb2e2943fbae17b6858859eb7a + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.4.1.890.1.5.8.20.23.1.1.3,{#ZYXEL.IF.LINKUPTYPE},1.3.6.1.4.1.890.1.5.8.20.23.1.1.5]' + key: zyxel.4012f.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 2b87dc4104704d3891ac061aaa81c629 + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL GS-4012F port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 32abe2903d1c4652a74a44c5154f1451 + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 42040f2ca85e4f80bdc4bdc9d0ef5966 + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a71a364726524a6e9d00eb4098fa5faa + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 8dda9a8e70bc44c5acca08284eb94bac + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 7240d04927a742dd93844c1fcc68dba0 + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 4b7a80cf38d44dd9b270dcbc5c44ecfc + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 8c0eca407f47404a86d26c5fb1885f87 + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.4012f.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.4012f.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a63165d407e740c38cab55aefeccbca8 + name: 'Port {#SNMPINDEX}: Link type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.20.23.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.link_type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-GS4012F-MIB + Physical connection type + valuemap: + name: 'ZYXEL GS-4012F operational mode port link up type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5c439eae60184abd8ec9b209cda19f8b + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.20.23.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-GS4012F-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 033b0e5b141b437c805b845f2e3f54a0 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL GS-4012F port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 9c332411a6db46acaab2b49ccabd2970 + expression: 'last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0f3decaec17a4812aac826056cce9e8a + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5ac33c29b537409cb6347548290e5ecc + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 69ab1d86cd0347b49e2500a1d8e7e6a8 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 870c54f85d57473c8b48ed896d5e2b2b + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 98fffdb492a149b7b684e3867b113d37 + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.4012f.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.4012f.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 64037c50f0344d02ae06690e91c7ead8 + name: 'Port {#SNMPINDEX}: Speed Duplex' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.20.23.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.4012f.net.if.speed_duplex[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-GS4012F-MIB + Transmission mode + valuemap: + name: 'ZYXEL GS-4012F operational mode port speed duplex' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 1cad0c1a40a8472da2edee9cd889e6cf + name: 'ZYXEL GS-4012F: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: ca2e18634f87486987251a2894eabaa0 + name: 'ZYXEL GS-4012F: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: 3223519ee24947c5a82b584fc3f2dd3d + name: 'ZYXEL GS-4012F: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: de7fbcbcaa8a460d8048e7816ccc1a87 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.8.20.9.2.1.5]' + key: zyxel.4012f.temp.discovery + delay: 1h + description: | + An entry in tempTable. + Index of temperature unit. 1:MAC, 2:CPU, 3:PHY + item_prototypes: + - uuid: ee82e6f1916a4ce7b5cd77f0249cc2af + name: 'Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.20.9.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.4012f.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-GS4012F-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: 719aad00708e4fd3b99997834c5d68b2 + expression: 'last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: f2dbed78c1d2440480cff0d1b243a546 + name: 'ZYXEL GS-4012F: Temperature "{#ZYXEL.TEMP.ID}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.temp[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"}; + var outArr = []; + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]] + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 88047112669f4d7eae81c8bb514ddecb + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.20.9.3.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.8.20.9.3.1.5]' + key: zyxel.4012f.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: b5cb92c8d63a41158e7072b8ebf33ca1 + name: 'Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.20.9.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.4012f.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-GS4012F-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 7d28666404bd4cedb687214846f89d4a + expression: 'last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 021bf935acc542d89a0a26120e995671 + name: 'ZYXEL GS-4012F: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL GS-4012F by SNMP' + key: 'zyxel.4012f.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: gs-4012f + - tag: target + value: switch + - tag: target + value: zyxel + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + value: 1|2 + description: | + Filter of discoverable link types. + 0 - Down link + 1 - Cooper link + 2 - Fiber link + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + dashboards: + - uuid: b3135c2af7284dfdb15f37aea90d3ad0 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL GS-4012F by SNMP' + name: 'ZYXEL GS-4012F: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: c6ba6086ed584ba0a4dd58ffe8564fbf + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 82cce670bef64a47b326bb8b1a2f6cd8 + name: 'ZYXEL GS-4012F operational mode port link up type' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Cooper + - value: '2' + newvalue: Fiber + - uuid: d7d38cadffc240f9a01434546659d036 + name: 'ZYXEL GS-4012F operational mode port speed duplex' + mappings: + - value: '0' + newvalue: auto + - value: '1' + newvalue: '10M half' + - value: '2' + newvalue: '10M full' + - value: '3' + newvalue: '100M half' + - value: '4' + newvalue: '100M full' + - value: '5' + newvalue: '1G full' + - uuid: 7456d212b8f44f7da215fc86f39e3956 + name: 'ZYXEL GS-4012F port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: afa699db0bfc4cfbb48729932967230e + name: 'ZYXEL GS-4012F port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + triggers: + - uuid: 93c70a5dd2504d0d9b13a17af942d45e + expression: '(last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.hw.uptime)>0 and last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.hw.uptime)<10m) or (last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.hw.uptime)=0 and last(/ZYXEL GS-4012F by SNMP/zyxel.4012f.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 966ba518f4e045ed98d2edf65df45078 + name: 'ZYXEL GS-4012F: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ZYXEL GS-4012F by SNMP' + key: zyxel.4012f.cpuusage diff --git a/ZYXEL_IES-500x_by_SNMP.yaml b/ZYXEL_IES-500x_by_SNMP.yaml new file mode 100644 index 0000000..ac4a737 --- /dev/null +++ b/ZYXEL_IES-500x_by_SNMP.yaml @@ -0,0 +1,2147 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 3db86b0d235e4c7b80f7d6144ca08925 + template: 'ZYXEL IES-500x by SNMP' + name: 'ZYXEL IES-500x by SNMP' + description: | + ZYXEL IES-500x + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ADSL-LINE-MIB + ZYXEL-IES5000-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL IES-500x + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: dbaf039727f542a6935223c944fab95d + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 73967d1d3d01458c8e947a1aacb838b0 + expression: 'max(/ZYXEL IES-500x by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: 5bc150cfc9b147e68b5d15a750546a3f + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.ies500x.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 5fa56229a8854d62bb6c516da873d63b + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.ies500x.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cd669772d4454a359f1c372dce4a01de + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.ies500x.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 591148b198854413aed834874bf8f137 + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.ies500x.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: aa26dcc1d8c54feaaa70d42c6ff4d1c7 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.ies500x.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: d4b378535f5c4299af1295029e94f9d1 + expression: 'not(last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.model)="IES-5000" or last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.model)="IES-5005")' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel IES-500x, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: ee9da829778e4da69fde78f72b5b0783 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.ies500x.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 28df2d29a94d429d811dd40ceb510fcf + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.ies500x.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + discovery_rules: + - uuid: 2ddba614e41f4014abef703418439e2a + name: 'Packet buffer discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.BUFFERHIGHTHRESH},1.3.6.1.4.1.890.1.5.13.5.11.3.5.1.4]' + key: zyxel.ies500x.buffer.discovery + delay: 1h + description: 'A table that contains packet buffer usage information.' + item_prototypes: + - uuid: ac3d27ace5b54f80ad1dd9182d01c0fa + name: 'Slot {#ZYXEL.SLOT.ID}: Packet buffer utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.5.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies500x.buffer[{#SNMPINDEX}]' + units: '%' + description: | + MIB: ZYXEL-IES5000-MIB + The packet buffer usage in the past 60 seconds. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: b02248180f314948bdbb68e8b940cb99 + expression: 'min(/ZYXEL IES-500x by SNMP/zyxel.ies500x.buffer[{#SNMPINDEX}],5m)>{#ZYXEL.BUFFERHIGHTHRESH}' + name: 'ZYXEL: High Packet buffer utilization in Slot {#ZYXEL.SLOT.ID}' + event_name: 'ZYXEL: High Packet buffer utilization in Slot {#ZYXEL.SLOT.ID} (>{#ZYXEL.BUFFERHIGHTHRESH}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free buffer.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 83573a387ef24596bf7e4171506a9ea5 + name: 'ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID}: Packet buffer utilization' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.buffer[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.SENSOR.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 72237ffed25148bea512b9a977e0bbde + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.CPU.THRESH.HIGH},1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.4]' + key: zyxel.ies500x.cpu.discovery + delay: 1h + description: | + A table that contains CPU utilization information. + This table is supported by R1.03 and later versions. + item_prototypes: + - uuid: 570e8cb266cd4b38819f2091d3981f24 + name: 'Slot {#ZYXEL.SLOT.ID}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies500x.cpu[{#SNMPINDEX}]' + units: '%' + description: | + MIB: ZYXEL-IES5000-MIB + The CPU utilization in the past 60 seconds. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: e2e689642a884509a5254e946deaf69f + expression: 'min(/ZYXEL IES-500x by SNMP/zyxel.ies500x.cpu[{#SNMPINDEX}],5m)>{#ZYXEL.CPU.THRESH.HIGH}' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} high CPU utilization' + event_name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} high CPU utilization (over {#ZYXEL.CPU.THRESH.HIGH}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: c9a9a54478ba46bbb91b4945c977a823 + name: 'ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID}: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.cpu[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.SENSOR.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 6b75915015194d40b043d69754b0e8e9 + name: 'Fan discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.FANRPM.THRESH.HIGH},1.3.6.1.4.1.890.1.5.13.5.11.3.1.1.7,{#ZYXEL.FANRPM.THRESH.LOW},1.3.6.1.4.1.890.1.5.13.5.11.3.1.1.5]' + key: zyxel.ies500x.fan.discovery + delay: 1h + description: 'An entry in fanRpmTable.' + item_prototypes: + - uuid: 5edaea71cd9e4190912a9d4a916436b3 + name: 'Fan #{#SNMPINDEX}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies500x.fan[{#SNMPINDEX}]' + units: '!rpm' + description: | + MIB: ZYXEL-IES5000-MIB + Current speed in Revolutions Per Minute (RPM) on the fan. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: 9e249839db314f05a7a3cd16172ae9a7 + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.fan[{#SNMPINDEX}])<{#ZYXEL.FANRPM.THRESH.LOW} or last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.fan[{#SNMPINDEX}])>{#ZYXEL.FANRPM.THRESH.HIGH}' + name: 'ZYXEL: FAN{#SNMPINDEX} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 79f318a961b5418e888de36f8ffe17e7 + name: 'ZYXEL IES-500x: Fan #{#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.fan[{#SNMPINDEX}]' + - uuid: 3b33b6eb85b14bfba025b0cd4909fa3e + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.MEMORYHIGHTHRESH},1.3.6.1.4.1.890.1.5.13.5.11.3.6.1.4]' + key: zyxel.ies500x.memory.discovery + delay: 1h + description: 'A table that contains memory usage information.' + item_prototypes: + - uuid: 61d07cbd85734ea6933182cbcb77b6a8 + name: 'Slot {#ZYXEL.SLOT.ID}: Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.6.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies500x.memory[{#SNMPINDEX}]' + units: '%' + description: | + MIB: ZYXEL-IES5000-MIB + The memory usage in the past 60 seconds. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: c3099861742f4303af838a0bf3921fac + expression: 'min(/ZYXEL IES-500x by SNMP/zyxel.ies500x.memory[{#SNMPINDEX}],5m)>{#ZYXEL.MEMORYHIGHTHRESH}' + name: 'ZYXEL: High memory utilization in Slot {#ZYXEL.SLOT.ID} pool' + event_name: 'ZYXEL: High memory utilization in Slot {#ZYXEL.SLOT.ID} pool (>{#ZYXEL.MEMORYHIGHTHRESH}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 0b72c4f49d434e0c9a7de3a6617511ea + name: 'ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID}: Memory utilization' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.memory[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.SENSOR.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: f3cb59dc48924203bc34da090f084665 + name: 'ADSL interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.2.1.31.1.1.1.1,{#ZYXEL.IF.LINKSTATUS},1.3.6.1.2.1.2.2.1.8,{#ZYXEL.IF.DESC},1.3.6.1.2.1.31.1.1.1.18]' + key: zyxel.ies500x.net.adsl.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.DESC}' + value: '{$ZYXEL.LLD.FILTER.IF.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.DESC}' + value: '{$ZYXEL.LLD.FILTER.IF.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#ZYXEL.IF.NAME}' + value: adsl + formulaid: E + item_prototypes: + - uuid: be9de0c5e397414bbef8edd74d0f6500 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES-500x port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 3a97021a210442c3bdc461060fbe700b + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUC attenuation' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.5.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.atuc.atn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured difference in the total power transmitted by + the peer ATU and the total power received by this ATU. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL IES-500x, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 375982ea68ec4800aa27a50a89fd79d5 + expression: 'min(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.adsl.atuc.atn[{#SNMPINDEX}],5m)>{$ZYXEL.ADSL.ATN.MAX}' + name: 'ZYXEL: High the DSL line attenuation in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}' + event_name: 'ZYXEL: High the DSL line attenuation in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID} (>{$ZYXEL.ADSL.ATN.MAX}dB for 5m)' + priority: WARNING + description: 'The reductions in amplitude of the downstream and upstream DSL signals.' + tags: + - tag: scope + value: capacity + - uuid: 62f3eb71d01946a68d799aa6ed1d29a3 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUC output power' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.atuc.outpwr[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured total output power transmitted by this ATU. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL IES-500x, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 540251c3a4024e4289194130853be305 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUC noise margin' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.4.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.atuc.snrmgn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Noise Margin as seen by this ATU with respect to its + received signal in tenth dB. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL IES-500x, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 8d2f57548d4e47f2981a4fd79d065246 + expression: 'min(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.adsl.atuc.snrmgn[{#SNMPINDEX}],5m)<{$ZYXEL.ADSL.SNR.MIN}' + name: 'ZYXEL: Low the DSL line noise margins in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}' + event_name: 'ZYXEL: Low the DSL line noise margins in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID} (<{$ZYXEL.ADSL.SNR.MIN}dB for 5m)' + priority: WARNING + description: 'Signal-to-noise margin (SNR Margin) which is the difference between the actual SNR and the SNR required to sync at a specific speed' + tags: + - tag: scope + value: capacity + - uuid: a664c452a98d4478b4663aa7cca9c19c + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUR attenuation' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.5.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.atur.atn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured difference in the total power transmitted by + the peer ATU and the total power received by this ATU. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 1dec7ed135a348b1a1cebb3b4319d77f + expression: 'min(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.adsl.atur.atn[{#SNMPINDEX}],5m)>{$ZYXEL.ADSL.ATN.MAX}' + name: 'ZYXEL: High the DSL line attenuation in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}' + event_name: 'ZYXEL: High the DSL line attenuation in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID} (>{$ZYXEL.ADSL.ATN.MAX}dB for 5m)' + priority: WARNING + description: 'The reductions in amplitude of the downstream and upstream DSL signals.' + tags: + - tag: scope + value: capacity + - uuid: 91a4b40293d54fe8bc8894303055cba3 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUR output power' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.atur.outpwr[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured total output power transmitted by this ATU. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 691ffcf882c54ebe8d0dfa305d8497e0 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUR noise margin' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.4.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.atur.snrmgn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Noise Margin as seen by this ATU with respect to its + received signal in tenth dB. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 7f8f4a2bff14464fbe2f956be87ad56d + expression: 'min(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.adsl.atur.snrmgn[{#SNMPINDEX}],5m)<{$ZYXEL.ADSL.SNR.MIN}' + name: 'ZYXEL: Low the DSL line noise margins in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}' + event_name: 'ZYXEL: Low the DSL line noise margins in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID} (<{$ZYXEL.ADSL.SNR.MIN}dB for 5m)' + priority: WARNING + description: 'Signal-to-noise margin (SNR Margin) which is the difference between the actual SNR and the SNR required to sync at a specific speed' + tags: + - tag: scope + value: capacity + - uuid: c00cf2ee74c0476f9118594d04e6640d + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 3df0ee0298c2445f81e1aca8ee748a50 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 05799441c906425d8f584ead3e9b909b + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: fff4c400f6774b9ba5e47fbeb214e5ec + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 4ffe4823f03b4c738b305f03ae4f1d55 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 514910a945e34befa0ecc22ea0b89783 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 216ad17a0c3348d7a250697f768a6481 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES-500x port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 8afcc973a7e94a0782a057205cc1b8ed + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.adsl.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.adsl.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.adsl.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.adsl.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7eec054602cb4f988999d80b29f25a32 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 420fa08f36bf487cb0af6dc64f335e7b + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 70a1342e17634500ac9c896c66177de6 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5c2f168d421e4b81a3d62e415ec8218a + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.adsl.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: a98704946d534a06909de85a05d75224 + name: 'ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.adsl.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.adsl.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.adsl.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.adsl.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.adsl.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.adsl.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: 184fddf8b22047e6a7ff4c5837642e60 + name: 'ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.adsl.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.adsl.out.traffic[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = Math.floor(item['{#SNMPINDEX}'] / 100); + item['{#ZYXEL.PORTID}'] = item['{#SNMPINDEX}'] % 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 5121e130194244869e45f9f7bda7cd01 + name: 'Ethernet interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.2.1.31.1.1.1.1,{#ZYXEL.IF.LINKSTATUS},1.3.6.1.2.1.2.2.1.8,{#ZYXEL.IF.DESC},1.3.6.1.2.1.31.1.1.1.18]' + key: zyxel.ies500x.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.DESC}' + value: '{$ZYXEL.LLD.FILTER.IF.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.DESC}' + value: '{$ZYXEL.LLD.FILTER.IF.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#ZYXEL.IF.NAME}' + value: enet + formulaid: E + item_prototypes: + - uuid: bc53c15035a94ed4a7537f0ab119d738 + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES-500x port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 7bd13f8dd37c417dbbc92abbcbefbdde + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 7ab66a4640ee4852ad0e587eb1076f9d + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 0b1508bec31642c381b4bab5b1c394fb + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5a77fb99febd45feaadbb4f1c6f58ead + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a4375745658546598b786c43bafb629f + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: eb00c7f533b24a06b3b9b926dc8aff2d + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: c90cfe865d7a4fdd89970e086b04a9a7 + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.ies500x.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.ies500x.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) <> 0) /( last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: bbbd8624e0e24db8b062625a2de1785b + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: d3e519c9648c4c58a7e55a9c90d8a3c0 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES-500x port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 71a10836f3094184bba728a0cf4d005a + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7816c8845baa498a96cc6d0a4049357c + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: bbd80eaceee848019cfef5e20f0c356a + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: c9f694268c334213a39c09dbadcdd067 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: f929a7e5d0b741c4b557715fbc5a7e1f + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.ies500x.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 74beae2dcc424702a906aa736e9f9d0f + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.ies500x.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.ies500x.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) <> 0) /( last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: cb09087451b3472ab5d04f18c829acc9 + name: 'ZYXEL IES-500x: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: 82fd413110454b88ab811229cc598eeb + name: 'ZYXEL IES-500x: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: c4cbf45592f8421eacc85a833509a819 + name: 'ZYXEL IES-500x: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 3edd9015b1794d39819acf0a2fdc35ba + name: 'Slot discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SLOTSTATUS},1.3.6.1.4.1.890.1.5.13.5.6.3.1.7,{#ZYXEL.SLOT.ID},1.3.6.1.4.1.890.1.5.13.5.6.3.1.1]' + key: zyxel.ies500x.slot.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SLOTSTATUS}' + value: '{$ZYXEL.LLD.FILTER.SLOT.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SLOTSTATUS}' + value: '{$ZYXEL.LLD.FILTER.SLOT.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'The table which contains the slot information in a chassis.' + item_prototypes: + - uuid: e3a25e0a2532495291446bd1a6641926 + name: 'Slot {#ZYXEL.SLOT.ID}: Alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.alarm[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + This variable indicates the alarm status of the module. + It is a bit map represented a sum, therefore, it can represent + multiple defects simultaneously. The moduleNoDefect should be set + if and only if no other flag is set. + The various bit positions are: + 1 moduleNoDefect + 2 moduleOverHeat + 3 moduleFanRpmLow + 4 moduleVoltageLow + 5 moduleThermalSensorFailure + 6 modulePullOut + 7 powerDC48VAFailure + 8 powerDC48VBFailure + 9 extAlarmInputTrigger + 10 moduleDown + 11 mscSwitchOverOK + 12 networkTopologyChange + 13 macSpoof + 14 cpuHigh + 15 memoryUsageHigh + 16 packetBufferUsageHigh + 17 loopguardOccurence + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var valueArray = [ + 'moduleNoDefect', + 'moduleOverHeat', + 'moduleFanRpmLow', + 'moduleVoltageLow', + 'moduleThermalSensorFailure', + 'modulePullOut', + 'powerDC48VAFailure', + 'powerDC48VBFailure', + 'extAlarmInputTrigger', + 'moduleDown', + 'mscSwitchOverOK', + 'networkTopologyChange', + 'macSpoof', + 'cpuHigh', + 'memoryUsageHigh', + 'packetBufferUsageHigh', + 'loopguardOccurence' + ]; + var base2 = parseInt(value).toString(2); + var outArray = []; + for (var i = 0; i < base2.length; ++i) { + if (base2[base2.length - 1 - i] === '1') outArray.push(valueArray[i]); + } + return outArray.join(); + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: d2dd1a23dbbb467e90ab99ff59a817a2 + expression: 'find(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.alarm[{#SNMPINDEX}],,"like","moduleNoDefect")=0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} alarm' + priority: AVERAGE + description: 'The slot reported an error.' + tags: + - tag: scope + value: notice + - uuid: a58ef41b02d94d16abe294bc26fc0874 + name: 'Slot {#ZYXEL.SLOT.ID}: DSL modem code version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.6.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.cv.ver[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The DSL modem code version of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: firmware + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 1b163693dc87407db836021da67bdccc + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.cv.ver[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.cv.ver[{#SNMPINDEX}],#2) and length(last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.cv.ver[{#SNMPINDEX}]))>0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID}: DSL modem code has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bf65cd99df724b64a4cad64c0681ab27 + name: 'Slot {#ZYXEL.SLOT.ID}: Description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.3.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.desc[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The descriptions of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + - uuid: 081fb5758fb6412890a54630d737f239 + name: 'Slot {#ZYXEL.SLOT.ID}: Driver version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.5.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.dv.ver[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The DSL driver of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: firmware + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 44f7087bcb524593a419887c199fb613 + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.dv.ver[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.dv.ver[{#SNMPINDEX}],#2) and length(last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.dv.ver[{#SNMPINDEX}]))>0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID}: Driver has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6b3a925397094b00aa31efee03a226fa + name: 'Slot {#ZYXEL.SLOT.ID}: Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.4.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.fw.ver[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The firmware version of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: firmware + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 6de6e5adadf04a79813ed7778b454043 + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.fw.ver[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.fw.ver[{#SNMPINDEX}],#2) and length(last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.fw.ver[{#SNMPINDEX}]))>0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID}: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c16e15224326406ba5f4c58a1c2e3b2c + name: 'Slot {#ZYXEL.SLOT.ID}: Hardware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.10.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.hw.ver[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The hardware version of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: firmware + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 42969016e9c846a8954ebf95d2ff0ffc + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.hw.ver[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.hw.ver[{#SNMPINDEX}],#2) and length(last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.hw.ver[{#SNMPINDEX}]))>0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID}: Hardware version has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: eed64c81e4b54ccd9d7f0e5b86ede083 + name: 'Slot {#ZYXEL.SLOT.ID}: MAC address 1' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.12.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.mac1[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The MAC Address of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + - uuid: d0fdd2a7dcb348b58dd3bea0357f84b3 + name: 'Slot {#ZYXEL.SLOT.ID}: MAC address 2' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.13.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.mac2[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The MAC Address of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + - uuid: 6f9532e9368344ad8f7d35273e14c358 + name: 'Slot {#ZYXEL.SLOT.ID}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.9.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.serial[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The serial number of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 0994c0ab8b004dc280d1a036e7043cc0 + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.serial[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.serial[{#SNMPINDEX}],#2) and length(last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.serial[{#SNMPINDEX}]))>0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} has been replaced' + event_name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} has been replaced (new serial number received)' + priority: INFO + description: 'Slot {#ZYXEL.SLOT.ID} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 7b8791b7c91e4c14aa56a29617a6fa81 + name: 'Slot {#ZYXEL.SLOT.ID}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.status[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-IES5000-MIB + The module state of the plug-in card. + valuemap: + name: 'ZYXEL IES-500x module status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + - uuid: 9387847247134f3296e077713407686e + name: 'Slot {#ZYXEL.SLOT.ID}: Type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-IES5000-MIB + Card type of the plug-in card. + valuemap: + name: 'ZYXEL IES-500x module type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + - uuid: be141094a1ee4b2391bf8684ddca86e6 + name: 'Slot {#ZYXEL.SLOT.ID}: Uptime' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.11.{#SNMPINDEX}]' + key: 'zyxel.ies500x.slot.uptime[{#SNMPINDEX}]' + units: s + description: | + MIB: ZYXEL-IES5000-MIB + The time (in seconds) since the plug-in card was last re-initialized. + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 6717069c115147b095321f2c4c5ec51b + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.slot.uptime[{#SNMPINDEX}])<10m' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} has been restarted' + event_name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c2d924fbfe3b44a58454e6a4392aa6a8 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.LOW},1.3.6.1.4.1.890.1.5.13.5.11.3.3.1.7,{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.13.5.11.3.3.1.5]' + key: zyxel.ies500x.temp.discovery + delay: 1h + description: 'An entry in tempTable.' + item_prototypes: + - uuid: c8f98b46dbc3464eaa390c504198f550 + name: 'Slot {#ZYXEL.SLOT.ID}: Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies500x.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-IES5000-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: c4993b2d52e04808862ac0d043b0e982 + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH} or last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.temp[{#SNMPINDEX}])<{#ZYXEL.TEMP.THRESH.LOW}' + name: 'ZYXEL: Temperature Slot {#ZYXEL.SLOT.ID} Sensor: {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 3b8799c609344e749de0da409b666714 + name: 'ZYXEL IES-500x: "Temperature Slot {#ZYXEL.SLOT.ID} Sensor: {#ZYXEL.TEMP.ID}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.temp[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.TEMP.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + outArr.push(item); + }); + return JSON.stringify(outArr); + - uuid: dbc4a230a0bd408b9847b1507c248062 + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.HIGH},1.3.6.1.4.1.890.1.5.13.5.11.3.2.1.8,{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.13.5.11.3.2.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.13.5.11.3.2.1.5]' + key: zyxel.ies500x.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: 1b3485d6cc6847639d75d4dbcfda99ea + name: 'Slot {#ZYXEL.SLOT.ID}: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies500x.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-IES5000-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 55bc511ff2094a86b10c542e896d10e2 + expression: 'last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW} or last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.volt[{#SNMPINDEX}])>{#ZYXEL.VOLT.THRESH.HIGH}' + name: 'ZYXEL: Voltage Slot {#ZYXEL.SLOT.ID} {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: bf0cfa212f934287b8dd3e405f8d1de3 + name: 'ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID}: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-500x by SNMP' + key: 'zyxel.ies500x.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.SENSOR.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000; + item["{#ZYXEL.VOLT.THRESH.HIGH}"] /= 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: dslam + - tag: target + value: ies-5000 + - tag: target + value: ies-5005 + - tag: target + value: zyxel + macros: + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.ADSL.ATN.MAX}' + value: '40' + description: 'Type the maximum signal attenuation' + - macro: '{$ZYXEL.ADSL.SNR.MIN}' + value: '8' + description: 'Type the minimum signal to noise margin (0-31 dB)' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.DESC.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + value: '.*' + description: 'Filter of discoverable link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + value: '2' + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.SLOT.STATUS.MATCHES}' + value: '.*' + description: 'Filter by discoverable slot status.' + - macro: '{$ZYXEL.LLD.FILTER.SLOT.STATUS.NOT_MATCHES}' + value: '1' + description: 'Filter to exclude discovered slots by status.' + dashboards: + - uuid: 0efca78d067b40eea6f371b9404cef1b + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL IES-500x by SNMP' + name: 'ZYXEL IES-500x: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: 10dd3d9951014a38bc3517df54381a66 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: efd6a6086011465ca956b1664f7d6474 + name: 'ZYXEL IES-500x module status' + mappings: + - value: '1' + newvalue: Empty + - value: '2' + newvalue: Up + - value: '3' + newvalue: Down + - value: '4' + newvalue: Testing + - value: '5' + newvalue: Standby + - uuid: 892651d2b1e3431490f2c531a50e2732 + name: 'ZYXEL IES-500x module type' + mappings: + - value: '1' + newvalue: unknown + - value: '101' + newvalue: msc1000G + - value: '102' + newvalue: alc1248G_51 + - value: '103' + newvalue: alc1248G_53 + - value: '104' + newvalue: slc1248G_22 + - value: '105' + newvalue: vlc1224G_41 + - value: '106' + newvalue: msc1024G + - value: '107' + newvalue: alc1272G_51 + - value: '108' + newvalue: vop1248G_61_SIP + - value: '109' + newvalue: msc1000GA + - value: '110' + newvalue: vlc1324G_51 + - value: '111' + newvalue: msc1224G + - value: '112' + newvalue: vop1248G_61_H248 + - value: '113' + newvalue: vlc1348G_51 + - value: '114' + newvalue: elc1220G_55 + - value: '115' + newvalue: msc1024GA + - value: '116' + newvalue: vlc1324G_53 + - value: '117' + newvalue: ima1408G_81 + - value: '118' + newvalue: vlc1424G_56 + - value: '119' + newvalue: slc1348G_22 + - value: '120' + newvalue: vlc1348G_53 + - value: '121' + newvalue: alc1372G_51 + - value: '122' + newvalue: msc1024GB + - value: '123' + newvalue: msc1224GB + - value: '124' + newvalue: vop1372G_61_H248 + - uuid: 9174dafc199e438994256eff4dd87bdd + name: 'ZYXEL IES-500x port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: f64c046f1eca45e09dad683603f4674b + name: 'ZYXEL IES-500x port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + triggers: + - uuid: d618295a763f42cd9063fad5cd600c34 + expression: '(last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.hw.uptime)>0 and last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.hw.uptime)<10m) or (last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.hw.uptime)=0 and last(/ZYXEL IES-500x by SNMP/zyxel.ies500x.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/ZYXEL_IES-6000_by_SNMP.yaml b/ZYXEL_IES-6000_by_SNMP.yaml new file mode 100644 index 0000000..5026885 --- /dev/null +++ b/ZYXEL_IES-6000_by_SNMP.yaml @@ -0,0 +1,2145 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 3645654baaf04f11927b171bcb048349 + template: 'ZYXEL IES-6000 by SNMP' + name: 'ZYXEL IES-6000 by SNMP' + description: | + ZYXEL IES-6000 + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ADSL-LINE-MIB + ZYXEL-IES5000-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL IES-6000 + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: ab61e5047280486885692ba89781c9fd + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 41eb76d6be3e47b8b0ca1296470372aa + expression: 'max(/ZYXEL IES-6000 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: c4856aae926047078d33bc760833ec12 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.ies6000.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 006a65489cfc4231acad12cdb501a55c + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.ies6000.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 631f2bc2963c4abb8d01b5cca6179d77 + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.ies6000.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 663131027cc84bd188fb4e5bd240777c + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.ies6000.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: a91730326e1c4479bb330110a15ee689 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.ies6000.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 7f6f8bdde2644182a892792ff2bb7c68 + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.model)<>"IES-6000"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel IES-6000, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 2062eb7816e242668936c020e6e1d532 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.ies6000.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: e79a790f3ca54943997f1d0b3e74943d + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.ies6000.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + discovery_rules: + - uuid: 6023c8a68b5547dcab838414cbf544ea + name: 'Packet buffer discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.BUFFERHIGHTHRESH},1.3.6.1.4.1.890.1.5.13.5.11.3.5.1.4]' + key: zyxel.ies6000.buffer.discovery + delay: 1h + description: 'A table that contains packet buffer usage information.' + item_prototypes: + - uuid: 5de9037f3a1444adbcf5bcfbe4618ad6 + name: 'Slot {#ZYXEL.SLOT.ID}: Packet buffer utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.5.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies6000.buffer[{#SNMPINDEX}]' + units: '%' + description: | + MIB: ZYXEL-IES5000-MIB + The packet buffer usage in the past 60 seconds. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 1173ae0cf9f440f595366a6da7a4c672 + expression: 'min(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.buffer[{#SNMPINDEX}],5m)>{#ZYXEL.BUFFERHIGHTHRESH}' + name: 'ZYXEL: High Packet buffer utilization in Slot {#ZYXEL.SLOT.ID}' + event_name: 'ZYXEL: High Packet buffer utilization in Slot {#ZYXEL.SLOT.ID} (>{#ZYXEL.BUFFERHIGHTHRESH}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free buffer.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: fcb46fd73a884e60b1ba3d4e8873bbce + name: 'ZYXEL IES-6000: Slot {#ZYXEL.SLOT.ID}: Packet buffer utilization' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.buffer[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.SENSOR.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 1aace4fa8bdc49d28d8785aeadcdc8d4 + name: 'CPU discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.CPU.THRESH.HIGH},1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.4]' + key: zyxel.ies6000.cpu.discovery + delay: 1h + description: | + A table that contains CPU utilization information. + This table is supported by R1.03 and later versions. + item_prototypes: + - uuid: 209b18dabcaa4d6a8870864eec2fc898 + name: 'Slot {#ZYXEL.SLOT.ID}: CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.4.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies6000.cpu[{#SNMPINDEX}]' + units: '%' + description: | + MIB: ZYXEL-IES5000-MIB + The CPU utilization in the past 60 seconds. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: 0d882e8f017e46c78727437bd55759d4 + expression: 'min(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.cpu[{#SNMPINDEX}],5m)>{#ZYXEL.CPU.THRESH.HIGH}' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} high CPU utilization' + event_name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} high CPU utilization (over {#ZYXEL.CPU.THRESH.HIGH}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 6c3837433afe4a1cb64038c62743be15 + name: 'ZYXEL IES-6000: Slot {#ZYXEL.SLOT.ID}: CPU utilization' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.cpu[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.SENSOR.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: abd64129536e4b43b5718adde7979c18 + name: 'Fan discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.FANRPM.THRESH.HIGH},1.3.6.1.4.1.890.1.5.13.5.11.3.1.1.7,{#ZYXEL.FANRPM.THRESH.LOW},1.3.6.1.4.1.890.1.5.13.5.11.3.1.1.5]' + key: zyxel.ies6000.fan.discovery + delay: 1h + description: 'An entry in fanRpmTable.' + item_prototypes: + - uuid: cfb5021170ca4365a72e76fca74efd9c + name: 'Fan #{#SNMPINDEX}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies6000.fan[{#SNMPINDEX}]' + units: '!rpm' + description: | + MIB: ZYXEL-IES5000-MIB + Current speed in Revolutions Per Minute (RPM) on the fan. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: d5f65aebabf741798dcd0b452302aefb + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.fan[{#SNMPINDEX}])<{#ZYXEL.FANRPM.THRESH.LOW} or last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.fan[{#SNMPINDEX}])>{#ZYXEL.FANRPM.THRESH.HIGH}' + name: 'ZYXEL: FAN{#SNMPINDEX} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 48736da52a8947e6a69cef3a9980bfbb + name: 'ZYXEL IES-6000: Fan #{#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.fan[{#SNMPINDEX}]' + - uuid: 691c50d10ae342e0b9825c9d72a4cff9 + name: 'Memory discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.MEMORYHIGHTHRESH},1.3.6.1.4.1.890.1.5.13.5.11.3.6.1.4]' + key: zyxel.ies6000.memory.discovery + delay: 1h + description: 'A table that contains memory usage information.' + item_prototypes: + - uuid: 41168b2146274e8d8d93d49e89b0f018 + name: 'Slot {#ZYXEL.SLOT.ID}: Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.6.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies6000.memory[{#SNMPINDEX}]' + units: '%' + description: | + MIB: ZYXEL-IES5000-MIB + The memory usage in the past 60 seconds. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 64108d56dc6d43148f67503383fc6705 + expression: 'min(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.memory[{#SNMPINDEX}],5m)>{#ZYXEL.MEMORYHIGHTHRESH}' + name: 'ZYXEL: High memory utilization in Slot {#ZYXEL.SLOT.ID} pool' + event_name: 'ZYXEL: High memory utilization in Slot {#ZYXEL.SLOT.ID} pool (>{#ZYXEL.MEMORYHIGHTHRESH}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: c85c2345f80448feb2253a10ec16778a + name: 'ZYXEL IES-6000: Slot {#ZYXEL.SLOT.ID}: Memory utilization' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.memory[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.SENSOR.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: cc124fe17126405f82fd61f248fe1abe + name: 'ADSL interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.2.1.31.1.1.1.1,{#ZYXEL.IF.LINKSTATUS},1.3.6.1.2.1.2.2.1.8,{#ZYXEL.IF.DESC},1.3.6.1.2.1.31.1.1.1.18]' + key: zyxel.ies6000.net.adsl.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.DESC}' + value: '{$ZYXEL.LLD.FILTER.IF.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.DESC}' + value: '{$ZYXEL.LLD.FILTER.IF.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#ZYXEL.IF.NAME}' + value: adsl + formulaid: E + item_prototypes: + - uuid: d8a6e995233245cd8ac684232add71f0 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES-6000 port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: dfd46b4bf39140b391bb2a8ab21db668 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUC attenuation' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.5.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.atuc.atn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured difference in the total power transmitted by + the peer ATU and the total power received by this ATU. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL IES-6000, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: e1233b29eb764b0bb5a2ce35f79060bf + expression: 'min(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.adsl.atuc.atn[{#SNMPINDEX}],5m)>{$ZYXEL.ADSL.ATN.MAX}' + name: 'ZYXEL: High the DSL line attenuation in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}' + event_name: 'ZYXEL: High the DSL line attenuation in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID} (>{$ZYXEL.ADSL.ATN.MAX}dB for 5m)' + priority: WARNING + description: 'The reductions in amplitude of the downstream and upstream DSL signals.' + tags: + - tag: scope + value: capacity + - uuid: 0b77f799291548de84478dff54742afe + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUC output power' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.atuc.outpwr[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured total output power transmitted by this ATU. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL IES-6000, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 292d33986274498b819ab0b6b3ac3c21 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUC noise margin' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.4.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.atuc.snrmgn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Noise Margin as seen by this ATU with respect to its + received signal in tenth dB. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL IES-6000, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: d7392fd0c372459bb21b9a85a47ccb8c + expression: 'min(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.adsl.atuc.snrmgn[{#SNMPINDEX}],5m)<{$ZYXEL.ADSL.SNR.MIN}' + name: 'ZYXEL: Low the DSL line noise margins in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}' + event_name: 'ZYXEL: Low the DSL line noise margins in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID} (<{$ZYXEL.ADSL.SNR.MIN}dB for 5m)' + priority: WARNING + description: 'Signal-to-noise margin (SNR Margin) which is the difference between the actual SNR and the SNR required to sync at a specific speed' + tags: + - tag: scope + value: capacity + - uuid: f6d71feb40954a88a2fa5ebe35af25cb + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUR attenuation' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.5.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.atur.atn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured difference in the total power transmitted by + the peer ATU and the total power received by this ATU. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 2ef5b800bb4148ce82bed8c4bf977a35 + expression: 'min(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.adsl.atur.atn[{#SNMPINDEX}],5m)>{$ZYXEL.ADSL.ATN.MAX}' + name: 'ZYXEL: High the DSL line attenuation in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}' + event_name: 'ZYXEL: High the DSL line attenuation in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID} (>{$ZYXEL.ADSL.ATN.MAX}dB for 5m)' + priority: WARNING + description: 'The reductions in amplitude of the downstream and upstream DSL signals.' + tags: + - tag: scope + value: capacity + - uuid: c4d523e2ef9c4d7d901383e19876af80 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUR output power' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.atur.outpwr[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured total output power transmitted by this ATU. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ad834d61ca834dd987784180211320f7 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: ATUR noise margin' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.4.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.atur.snrmgn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Noise Margin as seen by this ATU with respect to its + received signal in tenth dB. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: ba6eb4b3b6904b5dac4c057d3f6f3c17 + expression: 'min(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.adsl.atur.snrmgn[{#SNMPINDEX}],5m)<{$ZYXEL.ADSL.SNR.MIN}' + name: 'ZYXEL: Low the DSL line noise margins in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}' + event_name: 'ZYXEL: Low the DSL line noise margins in Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID} (<{$ZYXEL.ADSL.SNR.MIN}dB for 5m)' + priority: WARNING + description: 'Signal-to-noise margin (SNR Margin) which is the difference between the actual SNR and the SNR required to sync at a specific speed' + tags: + - tag: scope + value: capacity + - uuid: 2349bae6bb864a4f8c6c8d9b0087503f + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: fd6e0cff15834d9ea5d5f5f570608abb + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: eff728cc8d824bb98a840e07c0c370ed + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: f689c73f2aae4b4aa1688c584c88a562 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 26a0ded897e745208787710bca306658 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 8d0583741866478cb77f21e4e8e982ec + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ba66aeea219840929dfbc7b8cb61b2ab + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES-6000 port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 3fbe4b16a94648089df78829ee7e683f + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.adsl.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.adsl.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.adsl.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.adsl.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d4911b93b2084ca5b4e1c5a91bbb50af + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: d2d5d679e4974b3099111cb79506cbab + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 982554d0208a422d94b53a55ca566239 + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 49c3f935e21248b69ea351e1210cc62d + name: 'Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.adsl.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: e8a72d0fe2d745ffbffae11b379297e4 + name: 'ZYXEL IES-6000: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.adsl.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.adsl.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.adsl.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.adsl.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.adsl.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.adsl.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: 60c44917db2045c19efd64718a9f37cf + name: 'ZYXEL IES-6000: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.adsl.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.adsl.out.traffic[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = Math.floor(item['{#SNMPINDEX}'] / 100); + item['{#ZYXEL.PORTID}'] = item['{#SNMPINDEX}'] % 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 8f9073a53cee4e6fb8c36feda5185900 + name: 'Ethernet interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.2.1.31.1.1.1.1,{#ZYXEL.IF.LINKSTATUS},1.3.6.1.2.1.2.2.1.8,{#ZYXEL.IF.DESC},1.3.6.1.2.1.31.1.1.1.18]' + key: zyxel.ies6000.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.DESC}' + value: '{$ZYXEL.LLD.FILTER.IF.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.DESC}' + value: '{$ZYXEL.LLD.FILTER.IF.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + - macro: '{#ZYXEL.IF.NAME}' + value: enet + formulaid: E + item_prototypes: + - uuid: c96f6a48c03f4a92a5a75a6e6d603079 + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES-6000 port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a70d2041768945a6906ab0cbe0f518ae + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: cee8836a0e00466fbe72a5de85007a49 + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a37e15f8480e47bf8b8f542e65df0a80 + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: c3c7164096c845b599267186f66aa8ee + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 03aeeb2bb9c9454ebd91714fff1eb713 + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: c2b9296b58bf4617b86348c82f88b1c2 + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 2dc6ed1aacb84706bccd26c9c4e1e944 + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.ies6000.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.ies6000.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) <> 0) /( last(//zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: c4a8c8d0b51d496cbae4089ffee1e531 + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 00c015d42840420c9878ef84177c8d42 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES-6000 port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: a9aac7e6c66a4a69a77f8c165f9a9d5c + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}])=2 and (last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}],#2))=1' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ff5b7d95366d47c68589c65b4b0dcb15 + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e88787c50f654d5295d03b55d94810bf + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ac2959db86d44152b4a87294ee817dd7 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: c11fc8f0eacc42e5a6ca2443bdca60ce + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.ies6000.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 6ef41c7cc0074674b43d583a8fa36868 + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.ies6000.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.ies6000.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) <> 0) /( last(//zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 006679b6dfd64b65ad13de41be74783d + name: 'ZYXEL IES-6000: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: 6c545945185743b2929edf1b81fe0872 + name: 'ZYXEL IES-6000: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: b7085154d7694b9aba49b56bc412d458 + name: 'ZYXEL IES-6000: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 10a176c3da924a95939cd35c0d0be862 + name: 'Slot discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SLOTSTATUS},1.3.6.1.4.1.890.1.5.13.5.6.3.1.7,{#ZYXEL.SLOT.ID},1.3.6.1.4.1.890.1.5.13.5.6.3.1.1]' + key: zyxel.ies6000.slot.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SLOTSTATUS}' + value: '{$ZYXEL.LLD.FILTER.SLOT.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SLOTSTATUS}' + value: '{$ZYXEL.LLD.FILTER.SLOT.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'The table which contains the slot information in a chassis.' + item_prototypes: + - uuid: 7be6d40418f94284902c742fef1ada43 + name: 'Slot {#ZYXEL.SLOT.ID}: Alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.alarm[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + This variable indicates the alarm status of the module. + It is a bit map represented a sum, therefore, it can represent + multiple defects simultaneously. The moduleNoDefect should be set + if and only if no other flag is set. + The various bit positions are: + 1 moduleNoDefect + 2 moduleOverHeat + 3 moduleFanRpmLow + 4 moduleVoltageLow + 5 moduleThermalSensorFailure + 6 modulePullOut + 7 powerDC48VAFailure + 8 powerDC48VBFailure + 9 extAlarmInputTrigger + 10 moduleDown + 11 mscSwitchOverOK + 12 networkTopologyChange + 13 macSpoof + 14 cpuHigh + 15 memoryUsageHigh + 16 packetBufferUsageHigh + 17 loopguardOccurence + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var valueArray = [ + 'moduleNoDefect', + 'moduleOverHeat', + 'moduleFanRpmLow', + 'moduleVoltageLow', + 'moduleThermalSensorFailure', + 'modulePullOut', + 'powerDC48VAFailure', + 'powerDC48VBFailure', + 'extAlarmInputTrigger', + 'moduleDown', + 'mscSwitchOverOK', + 'networkTopologyChange', + 'macSpoof', + 'cpuHigh', + 'memoryUsageHigh', + 'packetBufferUsageHigh', + 'loopguardOccurence' + ]; + var base2 = parseInt(value).toString(2); + var outArray = []; + for (var i = 0; i < base2.length; ++i) { + if (base2[base2.length - 1 - i] === '1') outArray.push(valueArray[i]); + } + return outArray.join(); + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: c3f610ab856e42c7bb6460f552779e12 + expression: 'find(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.alarm[{#SNMPINDEX}],,"like","moduleNoDefect")=0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} alarm' + priority: AVERAGE + description: 'The slot reported an error.' + tags: + - tag: scope + value: notice + - uuid: 6ce4b55490ed425b8fbc1ad337071730 + name: 'Slot {#ZYXEL.SLOT.ID}: DSL modem code version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.6.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.cv.ver[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The DSL modem code version of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: firmware + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: c62327e51d27445b893e80bf77c9696c + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.cv.ver[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.cv.ver[{#SNMPINDEX}],#2) and length(last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.cv.ver[{#SNMPINDEX}]))>0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID}: DSL modem code has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 780fdca5ba10495d8ae1dfec6a655d4a + name: 'Slot {#ZYXEL.SLOT.ID}: Description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.3.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.desc[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The descriptions of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + - uuid: a0dc5b9a8968401a832dfd76cda474f1 + name: 'Slot {#ZYXEL.SLOT.ID}: Driver version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.5.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.dv.ver[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The DSL driver of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: firmware + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 63a4bdc73f8c49a7abb914f47e162dec + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.dv.ver[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.dv.ver[{#SNMPINDEX}],#2) and length(last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.dv.ver[{#SNMPINDEX}]))>0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID}: Driver has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e74a7678743c4739b98160a9cf3d516b + name: 'Slot {#ZYXEL.SLOT.ID}: Firmware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.4.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.fw.ver[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The firmware version of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: firmware + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 7a2ef454d9624fd78416d2e1345be9a5 + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.fw.ver[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.fw.ver[{#SNMPINDEX}],#2) and length(last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.fw.ver[{#SNMPINDEX}]))>0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID}: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 96ee73d987be4576b6b40f21d43ebbac + name: 'Slot {#ZYXEL.SLOT.ID}: Hardware version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.10.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.hw.ver[{#SNMPINDEX}]' + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The hardware version of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: firmware + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 537f28be56984664822b574a2064453b + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.hw.ver[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.hw.ver[{#SNMPINDEX}],#2) and length(last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.hw.ver[{#SNMPINDEX}]))>0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID}: Hardware version has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: aa0c1799930a46d9a658f26bf3549a18 + name: 'Slot {#ZYXEL.SLOT.ID}: MAC address 1' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.12.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.mac1[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The MAC Address of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + - uuid: 6fdbc67b2612400c9e8372b310ca496e + name: 'Slot {#ZYXEL.SLOT.ID}: MAC address 2' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.13.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.mac2[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The MAC Address of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + - uuid: 5edbf1b21ca5436a9522f5dcfe80b61d + name: 'Slot {#ZYXEL.SLOT.ID}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.9.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.serial[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IES5000-MIB + The serial number of the plug-in card. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 3fbbcffe1c46497d89fe0d987a5f6eff + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.serial[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.serial[{#SNMPINDEX}],#2) and length(last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.serial[{#SNMPINDEX}]))>0' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} has been replaced' + event_name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} has been replaced (new serial number received)' + priority: INFO + description: 'Slot {#ZYXEL.SLOT.ID} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5eeedb8e70764975872bd6dc6bc10821 + name: 'Slot {#ZYXEL.SLOT.ID}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.status[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-IES5000-MIB + The module state of the plug-in card. + valuemap: + name: 'ZYXEL IES-6000 module status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + - uuid: ea78751ce7954aa5b84caf9bdfcfeefd + name: 'Slot {#ZYXEL.SLOT.ID}: Type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-IES5000-MIB + Card type of the plug-in card. + valuemap: + name: 'ZYXEL IES-6000 module type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + - uuid: 37de3e96e8d8420192e6aae7a56ff9ef + name: 'Slot {#ZYXEL.SLOT.ID}: Uptime' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.6.3.1.11.{#SNMPINDEX}]' + key: 'zyxel.ies6000.slot.uptime[{#SNMPINDEX}]' + units: s + description: | + MIB: ZYXEL-IES5000-MIB + The time (in seconds) since the plug-in card was last re-initialized. + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + trigger_prototypes: + - uuid: 50e43c41d0e241238b65da25c12d1616 + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.slot.uptime[{#SNMPINDEX}])<10m' + name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} has been restarted' + event_name: 'ZYXEL: Slot {#ZYXEL.SLOT.ID} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 65972390ff734a088e984ac6531833c6 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.LOW},1.3.6.1.4.1.890.1.5.13.5.11.3.3.1.7,{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.13.5.11.3.3.1.5]' + key: zyxel.ies6000.temp.discovery + delay: 1h + description: 'An entry in tempTable.' + item_prototypes: + - uuid: 352f409f553f4805854690b51d83b061 + name: 'Slot {#ZYXEL.SLOT.ID}: Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies6000.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-IES5000-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: c517b703b5084e9b8053fb139e3350ae + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH} or last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.temp[{#SNMPINDEX}])<{#ZYXEL.TEMP.THRESH.LOW}' + name: 'ZYXEL: Temperature Slot {#ZYXEL.SLOT.ID} Sensor: {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 8e885ce1061b4400abce9eaad1271ea1 + name: 'ZYXEL IES-6000: "Temperature Slot {#ZYXEL.SLOT.ID} Sensor: {#ZYXEL.TEMP.ID}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.temp[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.TEMP.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + outArr.push(item); + }); + return JSON.stringify(outArr); + - uuid: 86ee5ab94e9a49dca526ce6e3d9c95fa + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.HIGH},1.3.6.1.4.1.890.1.5.13.5.11.3.2.1.8,{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.13.5.11.3.2.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.13.5.11.3.2.1.5]' + key: zyxel.ies6000.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: 36940f27f78248d48ed8caf34fc15721 + name: 'Slot {#ZYXEL.SLOT.ID}: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.5.11.3.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies6000.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-IES5000-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 14c98fc8b4864a3c87062510a079d948 + expression: 'last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW} or last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.volt[{#SNMPINDEX}])>{#ZYXEL.VOLT.THRESH.HIGH}' + name: 'ZYXEL: Voltage Slot {#ZYXEL.SLOT.ID} {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: d7f01a58a08a4403818242a907152f78 + name: 'ZYXEL IES-6000: Slot {#ZYXEL.SLOT.ID}: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES-6000 by SNMP' + key: 'zyxel.ies6000.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.SENSOR.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000; + item["{#ZYXEL.VOLT.THRESH.HIGH}"] /= 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: dslam + - tag: target + value: ies-6000 + - tag: target + value: zyxel + macros: + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.ADSL.ATN.MAX}' + value: '40' + description: 'Type the maximum signal attenuation' + - macro: '{$ZYXEL.ADSL.SNR.MIN}' + value: '8' + description: 'Type the minimum signal to noise margin (0-31 dB)' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.DESC.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + value: '.*' + description: 'Filter of discoverable link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + value: '2' + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.SLOT.STATUS.MATCHES}' + value: '.*' + description: 'Filter by discoverable slot status.' + - macro: '{$ZYXEL.LLD.FILTER.SLOT.STATUS.NOT_MATCHES}' + value: '1' + description: 'Filter to exclude discovered slots by status.' + dashboards: + - uuid: 38c74d46e279422f9e612d93596f37ad + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL IES-6000 by SNMP' + name: 'ZYXEL IES-6000: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: 5247e9e5efcd4b29b864e336619eafcf + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 0236177f088340ff8ce5adb9361b8df8 + name: 'ZYXEL IES-6000 module status' + mappings: + - value: '1' + newvalue: Empty + - value: '2' + newvalue: Up + - value: '3' + newvalue: Down + - value: '4' + newvalue: Testing + - value: '5' + newvalue: Standby + - uuid: 7ad4e124b8184fb8abc454c70c67e309 + name: 'ZYXEL IES-6000 module type' + mappings: + - value: '1' + newvalue: unknown + - value: '101' + newvalue: msc1000G + - value: '102' + newvalue: alc1248G_51 + - value: '103' + newvalue: alc1248G_53 + - value: '104' + newvalue: slc1248G_22 + - value: '105' + newvalue: vlc1224G_41 + - value: '106' + newvalue: msc1024G + - value: '107' + newvalue: alc1272G_51 + - value: '108' + newvalue: vop1248G_61_SIP + - value: '109' + newvalue: msc1000GA + - value: '110' + newvalue: vlc1324G_51 + - value: '111' + newvalue: msc1224G + - value: '112' + newvalue: vop1248G_61_H248 + - value: '113' + newvalue: vlc1348G_51 + - value: '114' + newvalue: elc1220G_55 + - value: '115' + newvalue: msc1024GA + - value: '116' + newvalue: vlc1324G_53 + - value: '117' + newvalue: ima1408G_81 + - value: '118' + newvalue: vlc1424G_56 + - value: '119' + newvalue: slc1348G_22 + - value: '120' + newvalue: vlc1348G_53 + - value: '121' + newvalue: alc1372G_51 + - value: '122' + newvalue: msc1024GB + - value: '123' + newvalue: msc1224GB + - value: '124' + newvalue: vop1372G_61_H248 + - uuid: b20f50ac559f45369de16c04f5ccf523 + name: 'ZYXEL IES-6000 port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: 2f3b061e1d6f46a3b8216b2398fc2896 + name: 'ZYXEL IES-6000 port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + triggers: + - uuid: 7a52520cc3dc4350bd7aa14260899f1c + expression: '(last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.hw.uptime)>0 and last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.hw.uptime)<10m) or (last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.hw.uptime)=0 and last(/ZYXEL IES-6000 by SNMP/zyxel.ies6000.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/ZYXEL_IES1248-51_by_SNMP.yaml b/ZYXEL_IES1248-51_by_SNMP.yaml new file mode 100644 index 0000000..1d72235 --- /dev/null +++ b/ZYXEL_IES1248-51_by_SNMP.yaml @@ -0,0 +1,1168 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 8e6d7067cd094e56a52db999b3199edc + template: 'ZYXEL IES1248-51 by SNMP' + name: 'ZYXEL IES1248-51 by SNMP' + description: | + ZYXEL IES1248-51 + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ADSL-LINE-MIB + ZYXEL-IESCOMMON-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL IES1248-51 + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 03cf90df51e0466c8b31744ce820276f + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 40466f29b8e54dc88cb49e818fc48281 + expression: 'max(/ZYXEL IES1248-51 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: a01b8490f3b94ac5ab500d67171cfe1a + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.ies1248.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 56974ccbede04e9eb966951ac3c88250 + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.1.3.1.4.0.0]' + key: zyxel.ies1248.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-IESCOMMON-MIB' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: b64e891456674457ab4abf994b097277 + expression: 'last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.fwversion,#1)<>last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.fwversion,#2) and length(last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4b55d1aaee3b441bab6edaaf738065e4 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.ies1248.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 600e6a8b9dd549b69f64f1a536bce7de + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.ies1248.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: ad09c90a951a4c41b935a70f58f5c26a + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.ies1248.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 427ef42e55ca498db16d078ed41e7ad9 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.ies1248.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 21b638f9f1154b6bb78a652d8e54c1c2 + expression: 'last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.model)<>"IES1248-51"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel IES1248-51, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 8c6546b670d4455aa1234c35bb033ac7 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.ies1248.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: ba41848140394ac29fe9b77e77627f20 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.ies1248.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 0d30380bb9a24bd1939d16287d5d0711 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.1.2.1.3.0]' + key: zyxel.ies1248.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IESCOMMON-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 2f2972169c164053a8d439b0e572b0c6 + expression: 'last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.serialnumber,#1)<>last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.serialnumber,#2) and length(last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: bafdca2040ba44be911fd1e5a09f3298 + name: 'Alarm status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.1.3.1.8.0.0]' + key: zyxel.ies1248.slot.alarm + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-IESCOMMON-MIB + This variable indicates the alarm status of the module. + It is a bit map represented a sum, therefore, it can represent + multiple defects simultaneously. The moduleNoDefect should be set + if and only if no other flag is set. + The various bit positions are: + 1 moduleNoDefect + 2 moduleOverHeat + 3 moduleFanRpmLow + 4 moduleVoltageLow + 5 moduleThermalSensorFailure + 6 modulePullOut + 7 powerDC48VAFailure + 8 powerDC48VBFailure + 9 extAlarmInputTrigger + 10 moduleDown + 11 mscSwitchOverOK + 12 networkTopologyChange + 13 macSpoof + 14 cpuHigh + 15 memoryUsageHigh + 16 packetBufferUsageHigh + 17 loopguardOccurence + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var valueArray = [ + 'moduleNoDefect', + 'moduleOverHeat', + 'moduleFanRpmLow', + 'moduleVoltageLow', + 'moduleThermalSensorFailure', + 'modulePullOut', + 'powerDC48VAFailure', + 'powerDC48VBFailure', + 'extAlarmInputTrigger', + 'moduleDown', + 'mscSwitchOverOK', + 'networkTopologyChange', + 'macSpoof', + 'cpuHigh', + 'memoryUsageHigh', + 'packetBufferUsageHigh', + 'loopguardOccurence' + ]; + var base2 = parseInt(value).toString(2); + var outArray = []; + for (var i = 0; i < base2.length; ++i) { + if (base2[base2.length - 1 - i] === '1') outArray.push(valueArray[i]); + } + return outArray.join(); + tags: + - tag: component + value: line-card + - tag: interface + value: 'slot-{#ZYXEL.SLOT.ID}' + triggers: + - uuid: 6b1b1b27241f42229e8b159320371356 + expression: 'find(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.slot.alarm,,"like","moduleNoDefect")=0' + name: 'ZYXEL: Port {#SNMPINDEX} alarm' + priority: AVERAGE + description: 'The slot reported an error.' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 9ffacb42c2fe4abd9e8d10e4b8803fc2 + name: 'Fan discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.FANRPM.THRESH.LOW},1.3.6.1.4.1.890.1.5.13.1.2.1.1.5]' + key: zyxel.ies1248.fan.discovery + delay: 1h + description: 'An entry in fanRpmTable.' + item_prototypes: + - uuid: d420958f89f04467b5aa4d41c565160b + name: 'Fan #{#SNMPINDEX}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.2.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies1248.fan[{#SNMPINDEX}]' + units: '!rpm' + description: | + MIB: ZYXEL-IESCOMMON-MIB + Current speed in Revolutions Per Minute (RPM) on the fan. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: 86f18f4e598443ab9e0ec30554d78e1a + expression: 'last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.fan[{#SNMPINDEX}])<{#ZYXEL.FANRPM.THRESH.LOW}' + name: 'ZYXEL: FAN{#SNMPINDEX} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: f8d2136dab70403a98da660bcf4c02a2 + name: 'ZYXEL IES1248-51: Fan #{#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES1248-51 by SNMP' + key: 'zyxel.ies1248.fan[{#SNMPINDEX}]' + - uuid: 47dc5ba65f25444c961b7684d65bbc07 + name: 'ADSL interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.2.1.2.2.1.2,{#ZYXEL.IF.LINKSTATUS},1.3.6.1.2.1.2.2.1.8]' + key: zyxel.ies1248.net.adsl.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: adsl + formulaid: C + item_prototypes: + - uuid: ca789e47cbfc4ee080a25e7003e92fad + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES1248-51 port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 7c13234155f343bc90bf1584a7f0fb3f + name: 'Port {#SNMPINDEX}: ATUC attenuation' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.5.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.atuc.atn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured difference in the total power transmitted by + the peer ATU and the total power received by this ATU. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL IES1248-51, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 23e50c0031c1457596b1366a40606ef9 + expression: 'min(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.adsl.atuc.atn[{#SNMPINDEX}],5m)>{$ZYXEL.ADSL.ATN.MAX}' + name: 'ZYXEL: High the DSL line attenuation in Port {#SNMPINDEX}' + event_name: 'ZYXEL: High the DSL line attenuation in Port {#SNMPINDEX} (>{$ZYXEL.ADSL.ATN.MAX}dB for 5m)' + priority: WARNING + description: 'The reductions in amplitude of the downstream and upstream DSL signals.' + tags: + - tag: scope + value: capacity + - uuid: 524bf397c9a640c48716fa20e4c45034 + name: 'Port {#SNMPINDEX}: ATUC output power' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.atuc.outpwr[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured total output power transmitted by this ATU. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL IES1248-51, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ed1768b17f0f434392c5cbc91ddd5222 + name: 'Port {#SNMPINDEX}: ATUC noise margin' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.2.1.4.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.atuc.snrmgn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Noise Margin as seen by this ATU with respect to its + received signal in tenth dB. + The Info Atuc fields show data acquired from the ATUC (ADSL Termination Unit - Central), in this case ZYXEL IES1248-51, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 23bbc44b2f114afe99a8175a2b7f0ddd + expression: 'min(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.adsl.atuc.snrmgn[{#SNMPINDEX}],5m)<{$ZYXEL.ADSL.SNR.MIN}' + name: 'ZYXEL: Low the DSL line noise margins in Port {#SNMPINDEX}' + event_name: 'ZYXEL: Low the DSL line noise margins in Port {#SNMPINDEX} (<{$ZYXEL.ADSL.SNR.MIN}dB for 5m)' + priority: WARNING + description: 'Signal-to-noise margin (SNR Margin) which is the difference between the actual SNR and the SNR required to sync at a specific speed' + tags: + - tag: scope + value: capacity + - uuid: 0dd3a9f10abb4a8a92f627228c9fbb52 + name: 'Port {#SNMPINDEX}: ATUR attenuation' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.5.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.atur.atn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured difference in the total power transmitted by + the peer ATU and the total power received by this ATU. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 2132fed26fe54a7daa017b7264c37f1c + expression: 'min(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.adsl.atur.atn[{#SNMPINDEX}],5m)>{$ZYXEL.ADSL.ATN.MAX}' + name: 'ZYXEL: High the DSL line attenuation in Port {#SNMPINDEX}' + event_name: 'ZYXEL: High the DSL line attenuation in Port {#SNMPINDEX} (>{$ZYXEL.ADSL.ATN.MAX}dB for 5m)' + priority: WARNING + description: 'The reductions in amplitude of the downstream and upstream DSL signals.' + tags: + - tag: scope + value: capacity + - uuid: 54c5b104d96945eca7cf402a2e910f90 + name: 'Port {#SNMPINDEX}: ATUR output power' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.atur.outpwr[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Measured total output power transmitted by this ATU. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 9744b18d3eec4bd2954ec7ea29e341fd + name: 'Port {#SNMPINDEX}: ATUR noise margin' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.10.94.1.1.3.1.4.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.atur.snrmgn[{#SNMPINDEX}]' + value_type: FLOAT + units: dB + description: | + MIB: ADSL-LINE-MIB + Noise Margin as seen by this ATU with respect to its + received signal in tenth dB. + The Info Atur fields show data acquired from the ATUR (ADSL Termination Unit - Remote), in this case the subscriber's ADSL modem or router, during negotiation/provisioning message interchanges. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 2d8f752b376f4c10bc8efbd39c8f45a9 + expression: 'min(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.adsl.atur.snrmgn[{#SNMPINDEX}],5m)<{$ZYXEL.ADSL.SNR.MIN}' + name: 'ZYXEL: Low the DSL line noise margins in Port {#SNMPINDEX}' + event_name: 'ZYXEL: Low the DSL line noise margins in Port {#SNMPINDEX} (<{$ZYXEL.ADSL.SNR.MIN}dB for 5m)' + priority: WARNING + description: 'Signal-to-noise margin (SNR Margin) which is the difference between the actual SNR and the SNR required to sync at a specific speed' + tags: + - tag: scope + value: capacity + - uuid: b7f622f72f98417cab3954717d311080 + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: bff933861d744ee5a3229c2c6b1dc4c0 + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 25c07c59e30e42b191162fa40066c8b8 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES1248-51 port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 93a58c14939d4c3491646171910fe5ad + expression: 'last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.adsl.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.adsl.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.adsl.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.adsl.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6df1c990c9dc49caa151dfc989d055b9 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.16.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.adsl.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 7c9c5ff332394b97a311225de08b6bc6 + name: 'ZYXEL IES1248-51: ADSL port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES1248-51 by SNMP' + key: 'zyxel.ies1248.net.adsl.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES1248-51 by SNMP' + key: 'zyxel.ies1248.net.adsl.out.traffic[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 4b32903336ad4c9e826cfd65a89a8960 + name: 'Ethernet interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.2.1.2.2.1.2,{#ZYXEL.IF.LINKSTATUS},1.3.6.1.2.1.2.2.1.8]' + key: zyxel.ies1248.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKSTATUS}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: enet + formulaid: C + item_prototypes: + - uuid: 8d402a2674084fdb9d26bc5caeafc34f + name: 'Port {#ZYXEL.IF.NAME}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES1248-51 port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: de5cf230831840cc985b63ba58d05059 + name: 'Port {#ZYXEL.IF.NAME}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: eeb4236d4ebe4cb396413f13d1fa669b + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: cd0bbc3c587a47e6a2a2307343a377b7 + name: 'Port {#ZYXEL.IF.NAME}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL IES1248-51 port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 8d90a989c82a4890a3a1a0b8eeb53462 + expression: 'last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#ZYXEL.IF.NAME}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2e39a01f6315444cb3ae47836945b514 + name: 'Port {#ZYXEL.IF.NAME}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.ies1248.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 1988adb1e96b423a8df3c55ea2f63d47 + name: 'ZYXEL IES1248-51: Ethernet port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES1248-51 by SNMP' + key: 'zyxel.ies1248.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL IES1248-51 by SNMP' + key: 'zyxel.ies1248.net.if.out.traffic[{#SNMPINDEX}]' + overrides: + - name: 'Trigger disabled' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '.*' + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - name: 'Trigger enabled' + step: '2' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: DISCOVER + - uuid: f8e1575174f9414e9ddf1459a420b2d6 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.ID},1.3.6.1.4.1.890.1.5.13.1.2.3.1.1,{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.13.1.2.3.1.5]' + key: zyxel.ies1248.temp.discovery + delay: 1h + description: 'An entry in tempTable.' + item_prototypes: + - uuid: 3049c6b2d6024949bbb240c9104418e6 + name: 'Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.2.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies1248.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-IESCOMMON-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: f0d7f5282c784224b0cd5f76d3c2ad90 + expression: 'last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: a5ec11a8936746c492fcf2e4462c7ca7 + name: 'ZYXEL IES1248-51: "Temperature {#ZYXEL.TEMP.ID}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES1248-51 by SNMP' + key: 'zyxel.ies1248.temp[{#SNMPINDEX}]' + - uuid: a2df63bd07f24277acf36e7a3854bd81 + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.13.1.2.2.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.13.1.2.2.1.5]' + key: zyxel.ies1248.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: 747034dc53c34554ad141a70dd5905f0 + name: 'Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.13.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.ies1248.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-IESCOMMON-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 9815420fe46c45ce8731b9688b4a543e + expression: 'last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: ebbc2726558c4504aa6bd22844d0bc83 + name: 'ZYXEL IES1248-51: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL IES1248-51 by SNMP' + key: 'zyxel.ies1248.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SLOT.ID}'] = item['{#SNMPINDEX}'].split('.')[1]; + item['{#ZYXEL.SENSOR.ID}'] = item['{#SNMPINDEX}'].split('.')[2]; + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000; + item["{#ZYXEL.VOLT.THRESH.HIGH}"] /= 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: aam1248-51 + - tag: target + value: dslam + - tag: target + value: zyxel + macros: + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.ADSL.ATN.MAX}' + value: '40' + description: 'Type the maximum signal attenuation' + - macro: '{$ZYXEL.ADSL.SNR.MIN}' + value: '8' + description: 'Type the minimum signal to noise margin (0-31 dB)' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.MATCHES}' + value: '.*' + description: 'Filter of discoverable link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKSTATUS.NOT_MATCHES}' + value: '2' + description: 'Filter to exclude discovered by link types.' + dashboards: + - uuid: aa5d1f3c1e8248eeb605bec4183d95ed + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL IES1248-51 by SNMP' + name: 'ZYXEL IES1248-51: Ethernet port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: 34ea860866f24498927b73f4ce438837 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: b933d3a98256457d906de8f7da377bac + name: 'ZYXEL IES1248-51 port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: e780cc91765849a0ace3d2eb2e4824a0 + name: 'ZYXEL IES1248-51 port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + triggers: + - uuid: bbccceac3dc24b9ab76a820fe5be4788 + expression: '(last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.hw.uptime)>0 and last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.hw.uptime)<10m) or (last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.hw.uptime)=0 and last(/ZYXEL IES1248-51 by SNMP/zyxel.ies1248.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice diff --git a/ZYXEL_MES-3528_by_SNMP.yaml b/ZYXEL_MES-3528_by_SNMP.yaml new file mode 100644 index 0000000..a4e1d1a --- /dev/null +++ b/ZYXEL_MES-3528_by_SNMP.yaml @@ -0,0 +1,1256 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 249de8d8d21e4dda9c3f766ab6201378 + template: 'ZYXEL MES-3528 by SNMP' + name: 'ZYXEL MES-3528 by SNMP' + description: | + ZYXEL MES-3528 + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ZYXEL-MES3528-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL MES-3528 + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 836a8ccc430a4ede87906b9f9eef8471 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 0e38d148fc29439488b3b23ee308b1d9 + expression: 'max(/ZYXEL MES-3528 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: 7f947ff733314b23be2cea634a1fba75 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.3528.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: c7bd32a8835842d7b469f2323cc8a308 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.12.7.0]' + key: zyxel.3528.cpuusage + value_type: FLOAT + units: '%' + description: | + MIB: ZYXEL-MES3528-MIB + Show device CPU load in %, it's the snapshot of CPU load when + getting the values. + tags: + - tag: component + value: cpu + triggers: + - uuid: 247a25a4976a45eca78853aea112cdd6 + expression: 'min(/ZYXEL MES-3528 by SNMP/zyxel.3528.cpuusage,5m)>{$CPU.UTIL.CRIT}' + name: 'ZYXEL: High CPU utilization' + event_name: 'ZYXEL: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: c650e217f92c4e2ca1ec94f391dfe706 + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMP.ARRAY},1.3.6.1.4.1.890.1.5.8.51.1]' + key: zyxel.3528.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-MES3528-MIB' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var tmpObj = {}; + inArray.forEach(function(item, i, arr) { + tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"] + }); + var strOut = 'V' + tmpObj["1.0"] + '.' + tmpObj["2.0"] + + '(' + tmpObj["3.0"] + '.' + tmpObj["4.0"] + ')_' + + tmpObj["7.0"] + '.' + tmpObj["6.0"] + '.' + tmpObj["5.0"]; + return strOut; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: inventory + triggers: + - uuid: 7c4cfa75447a4eeda874d916d052eb6e + expression: 'last(/ZYXEL MES-3528 by SNMP/zyxel.3528.fwversion,#1)<>last(/ZYXEL MES-3528 by SNMP/zyxel.3528.fwversion,#2) and length(last(/ZYXEL MES-3528 by SNMP/zyxel.3528.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9293989c2bd14bc4a12cdd40a9c7f229 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.3528.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 679445d352f14db4b5401efa5661447d + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.3528.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 1b4f56edba2a486a9c48ccafaa10eb09 + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.3528.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 050fbf9b7c544678b79b37572984f698 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.3528.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: b98e244abe2a4bd481be50048234afe6 + expression: 'last(/ZYXEL MES-3528 by SNMP/zyxel.3528.model)<>"MES-3528"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel MES-3528, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 2411ebd40ee94b6285f4a6abf6127e04 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.3528.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 351295fe155543c18930541c20ccac58 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.3528.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: ea25cf79e45f40398580afd48e0bb9c8 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.1.10.0]' + key: zyxel.3528.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3528-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: d08bc1ffb11e4bbc98851c30595e996c + expression: 'last(/ZYXEL MES-3528 by SNMP/zyxel.3528.serialnumber,#1)<>last(/ZYXEL MES-3528 by SNMP/zyxel.3528.serialnumber,#2) and length(last(/ZYXEL MES-3528 by SNMP/zyxel.3528.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: ebe2a413217c4239805f3f592f551b7c + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.4.1.890.1.5.8.51.24.1.1.3,{#ZYXEL.IF.LINKUPTYPE},1.3.6.1.4.1.890.1.5.8.51.24.1.1.5]' + key: zyxel.3528.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 6dc0efb31738415a884d15020d9e30a9 + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MES-3528 port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e719364c125048e8a1fb6712e507863b + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b2225fa57c0d468b9b0a40b220d50639 + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 9f1720f6286a4b038724563a32f97844 + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 184f7cfcfe964ea9b2b310a666c77420 + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 41f4b8bb9e1c461e8ef834348589e468 + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 681460dffc9242fba072eacd503fd190 + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: c2792996d52045c9ad4c955f6330264e + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.3528.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3528.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 9a45866adc3043ad81c7778b4334b317 + name: 'Port {#SNMPINDEX}: Link type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.24.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.link_type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-MES3528-MIB + Physical connection type + valuemap: + name: 'ZYXEL MES-3528 operational mode port link up type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5a30094c57b54d89b1d61a73616e186e + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.24.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3528-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 1ed72a56523b48e89b964f6c4afc8800 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MES-3528 port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: c23272db35f44fe6958e3b5e31a52974 + expression: 'last(/ZYXEL MES-3528 by SNMP/zyxel.3528.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL MES-3528 by SNMP/zyxel.3528.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL MES-3528 by SNMP/zyxel.3528.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL MES-3528 by SNMP/zyxel.3528.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 873ba4c47c1c4525b52d53e6d98e8b6e + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 9dae4fa8d9c2494aa01478dc9605b066 + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 63f92516450d4dbcbea481231caf89f6 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: d7b17c5521a94b13b3ef6528fedcf5e0 + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 3dd1d62e9cdb402b888b7ccbe3cbb182 + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.3528.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3528.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 284e41a49397492590bbcf34e1881553 + name: 'Port {#SNMPINDEX}: Speed Duplex' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.24.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.3528.net.if.speed_duplex[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-MES3528-MIB + Transmission mode + valuemap: + name: 'ZYXEL MES-3528 operational mode port speed duplex' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: d021344604284e9ca127851ae1cb95ff + name: 'ZYXEL MES-3528: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: 936c27e914044b0eb31f874995c0571c + name: 'ZYXEL MES-3528: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: f50ceeef9c6446a685127383176fe811 + name: 'ZYXEL MES-3528: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: a4850c41f31a4bdfa3506c2ef3077d88 + name: 'SFP with DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.WARN.MAX},1.3.6.1.4.1.890.1.5.8.51.117.2.1.5,{#ZYXEL.SFP.WARN.MIN},1.3.6.1.4.1.890.1.5.8.51.117.2.1.6,{#ZYXEL.SFP.DESCRIPTION},1.3.6.1.4.1.890.1.5.8.51.117.2.1.8]' + key: zyxel.3528.sfp.ddm.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP DDM module discovery.' + item_prototypes: + - uuid: 732084ce0daf4e8085c43e16982e4aba + name: 'SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.117.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3528.sfp.ddm[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: FLOAT + units: '!{#ZYXEL.SFP.UNIT}' + description: | + MIB: ZYXEL-MES3528-MIB + Transceiver module DDM data ({#ZYXEL.SFP.DESCRIPTION}). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: f9e2991ea38343c8b2c9815bf733aef8 + expression: 'last(/ZYXEL MES-3528 by SNMP/zyxel.3528.sfp.ddm[{#SNMPINDEX}]) > {#ZYXEL.SFP.WARN.MAX}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION} (over {#ZYXEL.SFP.WARN.MAX}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The upper threshold value of the parameter is exceeded' + tags: + - tag: scope + value: notice + - uuid: 341bff907cd943219bbed92773d9b005 + expression: 'last(/ZYXEL MES-3528 by SNMP/zyxel.3528.sfp.ddm[{#SNMPINDEX}]) < {#ZYXEL.SFP.WARN.MIN}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION} (less than {#ZYXEL.SFP.WARN.MIN}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The parameter values are less than the lower threshold' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: ed8f780aa61845309aebfa522e3e9f3d + name: 'ZYXEL MES-3528: SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES-3528 by SNMP' + key: 'zyxel.3528.sfp.ddm[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = { + 'Temperature': '°C', + 'Voltage': 'V', + 'TxBias': 'mA', + 'TxPower': 'dbm', + 'RxPower': 'dbm' + }; + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SFP.PORT}'] = item['{#SNMPINDEX}'].split('.')[0]; + item['{#ZYXEL.SFP.UNIT}'] = nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']] === undefined ? "" : nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']]; + item['{#ZYXEL.SFP.WARN.MAX}'] /= 100; + item['{#ZYXEL.SFP.WARN.MIN}'] /= 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 0c1fabd98e134f9dab698bb0794afa93 + name: 'SFP without DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.STATUS},1.3.6.1.4.1.890.1.5.8.51.117.1.1.2]' + key: zyxel.3528.sfp.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP module discovery.' + item_prototypes: + - uuid: 2d09724ecd8147d298ae2a2486921ccb + name: 'SFP {#SNMPINDEX}: Date code' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.117.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3528.sfp.datecode[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3528-MIB + Transceiver module vendor's manufacturing date code. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 9d9e08755fa444efb408d3db30843098 + name: 'SFP {#SNMPINDEX}: Part number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.117.1.1.4.{#SNMPINDEX}]' + key: 'zyxel.3528.sfp.part[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3528-MIB + Part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 90952405b1504eabb6e5436eaa179f5a + name: 'SFP {#SNMPINDEX}: Revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.117.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3528.sfp.revision[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3528-MIB + Revision level for part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 83d084e9a0554e8eae31b0bd38aefe72 + name: 'SFP {#SNMPINDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.117.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3528.sfp.serialnumber[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3528-MIB + Serial number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 5cd22f26211a428099d2a41c5c41efab + expression: 'last(/ZYXEL MES-3528 by SNMP/zyxel.3528.sfp.serialnumber[{#SNMPINDEX}],#1)<>last(/ZYXEL MES-3528 by SNMP/zyxel.3528.sfp.serialnumber[{#SNMPINDEX}],#2) and length(last(/ZYXEL MES-3528 by SNMP/zyxel.3528.sfp.serialnumber[{#SNMPINDEX}]))>0' + name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced' + event_name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced (new serial number received)' + priority: INFO + description: 'SFP {#SNMPINDEX} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ecbd3db41592408d8e9fe0d1d6078a3f + name: 'SFP {#SNMPINDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.117.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3528.sfp.status[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + description: | + MIB: ZYXEL-MES3528-MIB + Transceiver module status. + valuemap: + name: 'ZYXEL MES-3528 SFP status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 049cbbcea720493f9638d08f928710cb + name: 'SFP {#SNMPINDEX}: Transceiver' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.117.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3528.sfp.transceiver[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3528-MIB + Transceiver module type names. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5ece25cae49f47169a335be40dee744a + name: 'SFP {#SNMPINDEX}: Vendor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.51.117.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3528.sfp.vendor[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3528-MIB + Transceiver module vendor name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + tags: + - tag: class + value: network + - tag: target + value: mes-3528 + - tag: target + value: switch + - tag: target + value: zyxel + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + value: 1|2 + description: | + Filter of discoverable link types. + 0 - Down link + 1 - Cooper link + 2 - Fiber link + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + value: 1|2 + description: | + Filter of discoverable status. + 0 - OK with DDM + 1 - OK without DDM + 2 - nonoperational + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by status.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable SFP modules name.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + value: N/A + description: 'Filter to exclude discovered SFP modules by name.' + - macro: '{$ZYXEL.LLD.SFP.UPDATE}' + value: 10m + description: 'Receiving data from the SFP module is slow, we do not recommend setting the interval less than 10 minutes.' + dashboards: + - uuid: db6fc11845d34e63af5423b5ad7cf539 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL MES-3528 by SNMP' + name: 'ZYXEL MES-3528: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: ac3d8b1e51074733a8bce57814528d83 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 042fc0ecdef34baab224062d4f746b96 + name: 'ZYXEL MES-3528 operational mode port link up type' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Cooper + - value: '2' + newvalue: Fiber + - uuid: cce63413576040fe8df5969886da993d + name: 'ZYXEL MES-3528 operational mode port speed duplex' + mappings: + - value: '0' + newvalue: auto + - value: '1' + newvalue: '10M half' + - value: '2' + newvalue: '10M full' + - value: '3' + newvalue: '100M half' + - value: '4' + newvalue: '100M full' + - value: '5' + newvalue: '1G full' + - uuid: 6220d70f35404dd6834674510e0ae9ea + name: 'ZYXEL MES-3528 port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: 36e992f6794a492e87c3c5a9749e26b3 + name: 'ZYXEL MES-3528 port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: da9692b414de47d5bac9cd3287492e0b + name: 'ZYXEL MES-3528 SFP status' + mappings: + - value: '1' + newvalue: 'OK with DDM' + - value: '2' + newvalue: 'OK without DDM' + - value: '3' + newvalue: nonoperational + triggers: + - uuid: d138c874f4de4f3a97a0c615d589826a + expression: '(last(/ZYXEL MES-3528 by SNMP/zyxel.3528.hw.uptime)>0 and last(/ZYXEL MES-3528 by SNMP/zyxel.3528.hw.uptime)<10m) or (last(/ZYXEL MES-3528 by SNMP/zyxel.3528.hw.uptime)=0 and last(/ZYXEL MES-3528 by SNMP/zyxel.3528.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 6a05d499aec2421e9a7e758fba82255a + name: 'ZYXEL MES-3528: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ZYXEL MES-3528 by SNMP' + key: zyxel.3528.cpuusage diff --git a/ZYXEL_MES3500-10_by_SNMP.yaml b/ZYXEL_MES3500-10_by_SNMP.yaml new file mode 100644 index 0000000..e795163 --- /dev/null +++ b/ZYXEL_MES3500-10_by_SNMP.yaml @@ -0,0 +1,1409 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 21a95afef0e74fb19691693090403d1d + template: 'ZYXEL MES3500-10 by SNMP' + name: 'ZYXEL MES3500-10 by SNMP' + description: | + ZYXEL MES3500-10 + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ZYXEL-MES3500-10-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL MES3500-10 + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 1ec18d9656654a9e9114ba2b5ff965b1 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: c33a4bffd5464934b4b9f1e7160806e1 + expression: 'max(/ZYXEL MES3500-10 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: 84a1eb118ad2453ca5a5ccca6111516b + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.3500_10.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: dd6585221297476885e900c54a820ae7 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.12.7.0]' + key: zyxel.3500_10.cpuusage + value_type: FLOAT + units: '%' + description: | + MIB: ZYXEL-MES3500-10-MIB + Show device CPU load in %, it's the snapshot of CPU load when + getting the values. + tags: + - tag: component + value: cpu + triggers: + - uuid: 0d31c154f8f34ed18a99558f7839bbb6 + expression: 'min(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.cpuusage,5m)>{$CPU.UTIL.CRIT}' + name: 'ZYXEL: High CPU utilization' + event_name: 'ZYXEL: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 144931a31b2a4a52978679a6a029fc8e + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMP.ARRAY},1.3.6.1.4.1.890.1.5.8.80.1]' + key: zyxel.3500_10.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-MES3500-10-MIB' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var tmpObj = {}; + inArray.forEach(function(item, i, arr) { + tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"] + }); + var strOut = 'V' + tmpObj["1.0"] + '.' + tmpObj["2.0"] + + '(' + tmpObj["3.0"] + '.' + tmpObj["4.0"] + ')_' + + tmpObj["7.0"] + '.' + tmpObj["6.0"] + '.' + tmpObj["5.0"]; + return strOut; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: inventory + triggers: + - uuid: db567c7693b6437e89ef7a5b78c889f9 + expression: 'last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.fwversion,#1)<>last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.fwversion,#2) and length(last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d0d33209ea1249e588f2e81807ae6403 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.3500_10.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 0005f568cd384734b9f21e846648cd5f + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.3500_10.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 3bc8285eebad410996c4697022038345 + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.3500_10.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: b270937507f345f88421cf1825c29917 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.3500_10.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 27f1cb5a297c4b1eafd4056317a37f01 + expression: 'last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.model)<>"MES3500-10"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel MES3500-10, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 831783fc67ab49b1be0ae5132fb2d8df + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.3500_10.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: d581384242074b07a4c5cd03a562827c + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.3500_10.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a0d17f11a5624f4e8520ee5e583ad322 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.1.10.0]' + key: zyxel.3500_10.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-10-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: ee14abdf61b04a90adf6e2afcc3d73f4 + expression: 'last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.serialnumber,#1)<>last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.serialnumber,#2) and length(last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: ae66d16a5531489580d394e040950ecb + name: 'Memory pool discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.MEMORY.NAME},1.3.6.1.4.1.890.1.5.8.80.124.1.1.2]' + key: zyxel.3500_10.memory.discovery + delay: 1h + item_prototypes: + - uuid: 20c3127430534c049073c43a039fd29d + name: 'Memory "{#ZYXEL.MEMORY.NAME}" utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.124.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3500_10.memory[{#SNMPINDEX}]' + units: '%' + description: | + MIB: ZYXEL-MES3500-10-MIB + Utilization of memory pool in %. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 91609e57df4941faa9fee17051f8ac24 + expression: 'min(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.memory[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'ZYXEL: High memory utilization in "{#ZYXEL.MEMORY.NAME}" pool' + event_name: 'ZYXEL: High memory utilization in "{#ZYXEL.MEMORY.NAME}" pool (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: b8cd74eeb2b94ceeba49157ccb617bb8 + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.4.1.890.1.5.8.80.24.1.1.3,{#ZYXEL.IF.LINKUPTYPE},1.3.6.1.4.1.890.1.5.8.80.24.1.1.5]' + key: zyxel.3500_10.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: d300b380e4bc44f89ac7a40083d424ed + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MES3500-10 port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5a4b1c62b5834ecea8a90b71cb7c5f2e + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: bba418acc01d4732891c775c68bad518 + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 7c6f62ebe1ec48e080c0edb36cf2304c + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 846dfcfcdd974d1e9f8ec71f54f8933b + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b1843c913e6d4f638e43da1c92807a4f + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 31e8e47755804816882d2070ecfca130 + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e4963aa170554edebb356515c04aaafb + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.3500_10.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3500_10.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 66572368d798449baa945b3985156e07 + name: 'Port {#SNMPINDEX}: Link type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.24.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.link_type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-MES3500-10-MIB + Physical connection type + valuemap: + name: 'ZYXEL MES3500-10 operational mode port link up type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 4c45f11441f4450e9f310ffb1d999a68 + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.24.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-10-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a2269b48020a46c193830f8cc1ef3595 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MES3500-10 port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: fb9bb0e2ceb643f495b93bbaf04b0cc1 + expression: 'last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 521a2ac2ff0c42c282380c45bd12706f + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 7638a07162bd4668b086f0d07d4a6513 + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: f563a76ec9ae4f62ad1601f1d91549d2 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 8888c9da5191443facfec4c865181d18 + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: dffcc1796e8b4a3c84f9d925b3644215 + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.3500_10.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3500_10.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a54d1c46a1c842b88854be651c4e4caa + name: 'Port {#SNMPINDEX}: Speed Duplex' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.24.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.3500_10.net.if.speed_duplex[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-MES3500-10-MIB + Transmission mode + valuemap: + name: 'ZYXEL MES3500-10 operational mode port speed duplex' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 914bb954a2ef42939825074378d001bc + name: 'ZYXEL MES3500-10: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: 9b6213d6ab0248bd9bfd62a5af0846a7 + name: 'ZYXEL MES3500-10: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: c209a6e8cdb748978b90584432f0a09e + name: 'ZYXEL MES3500-10: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 1c6952a276fa454bb83f64a11424b7ec + name: 'SFP with DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.WARN.MAX},1.3.6.1.4.1.890.1.5.8.80.117.2.1.5,{#ZYXEL.SFP.WARN.MIN},1.3.6.1.4.1.890.1.5.8.80.117.2.1.6,{#ZYXEL.SFP.DESCRIPTION},1.3.6.1.4.1.890.1.5.8.80.117.2.1.8]' + key: zyxel.3500_10.sfp.ddm.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP DDM module discovery.' + item_prototypes: + - uuid: 13ddb64324c4401da5e742a93698e2f6 + name: 'SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.117.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_10.sfp.ddm[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: FLOAT + units: '!{#ZYXEL.SFP.UNIT}' + description: | + MIB: ZYXEL-MES3500-10-MIB + Transceiver module DDM data ({#ZYXEL.SFP.DESCRIPTION}). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: bc09d6c1771d4d04afe86f49dbd98852 + expression: 'last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.sfp.ddm[{#SNMPINDEX}]) > {#ZYXEL.SFP.WARN.MAX}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION} (over {#ZYXEL.SFP.WARN.MAX}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The upper threshold value of the parameter is exceeded' + tags: + - tag: scope + value: notice + - uuid: d05ae92b624347cc9a8fe1154995f3f9 + expression: 'last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.sfp.ddm[{#SNMPINDEX}]) < {#ZYXEL.SFP.WARN.MIN}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION} (less than {#ZYXEL.SFP.WARN.MIN}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The parameter values are less than the lower threshold' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 1b5db1876c0a4acf9d45ac26a9739778 + name: 'ZYXEL MES3500-10: SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.sfp.ddm[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = { + 'Temperature': '°C', + 'Voltage': 'V', + 'TxBias': 'mA', + 'TxPower': 'dbm', + 'RxPower': 'dbm' + }; + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SFP.PORT}'] = item['{#SNMPINDEX}'].split('.')[0]; + item['{#ZYXEL.SFP.UNIT}'] = nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']] === undefined ? "" : nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']]; + item['{#ZYXEL.SFP.WARN.MAX}'] /= 100; + item['{#ZYXEL.SFP.WARN.MIN}'] /= 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: fb3dea0bae0e45b0a9ca4969a7b33843 + name: 'SFP without DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.STATUS},1.3.6.1.4.1.890.1.5.8.80.117.1.1.2]' + key: zyxel.3500_10.sfp.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP module discovery.' + item_prototypes: + - uuid: aab3e0e09bc64de0a2e7322cfb4da68e + name: 'SFP {#SNMPINDEX}: Date code' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.117.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_10.sfp.datecode[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-10-MIB + Transceiver module vendor's manufacturing date code. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 2f338f7f29464e0b88ebe7d3ec69050a + name: 'SFP {#SNMPINDEX}: Part number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.117.1.1.4.{#SNMPINDEX}]' + key: 'zyxel.3500_10.sfp.part[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-10-MIB + Part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 53582950f20e474ba4b6f46c42bc3216 + name: 'SFP {#SNMPINDEX}: Revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.117.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3500_10.sfp.revision[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-10-MIB + Revision level for part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: cecd4ba3b9014400a2d5d5b1b98f5463 + name: 'SFP {#SNMPINDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.117.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3500_10.sfp.serialnumber[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-10-MIB + Serial number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 8832e1fa622449f582218cf5a7bf6b75 + expression: 'last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.sfp.serialnumber[{#SNMPINDEX}],#1)<>last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.sfp.serialnumber[{#SNMPINDEX}],#2) and length(last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.sfp.serialnumber[{#SNMPINDEX}]))>0' + name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced' + event_name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced (new serial number received)' + priority: INFO + description: 'SFP {#SNMPINDEX} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b09aad7939cb4897bff413ef956bebfe + name: 'SFP {#SNMPINDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.117.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_10.sfp.status[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + description: | + MIB: ZYXEL-MES3500-10-MIB + Transceiver module status. + valuemap: + name: 'ZYXEL MES3500-10 SFP status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 3878fecf990d4cb6aba13225b2bbfa59 + name: 'SFP {#SNMPINDEX}: Transceiver' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.117.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_10.sfp.transceiver[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-10-MIB + Transceiver module type names. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 3c8dfe57cab242c2ade6139e8666e621 + name: 'SFP {#SNMPINDEX}: Vendor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.117.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_10.sfp.vendor[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-10-MIB + Transceiver module vendor name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 39ef9d256f8847fca6077524f01270c1 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.8.80.9.2.1.5]' + key: zyxel.3500_10.temp.discovery + delay: 1h + description: | + An entry in tempTable. + Index of temperature unit. 1:MAC, 2:CPU, 3:PHY + item_prototypes: + - uuid: 60f580a757814d2a9b320b6810a8f65d + name: 'Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.9.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_10.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-MES3500-10-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: 6970c577993343dfaa97f4317acf0f08 + expression: 'last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 0c7b7b235f174e048bd3da37d1ed0913 + name: 'ZYXEL MES3500-10: Temperature "{#ZYXEL.TEMP.ID}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.temp[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"}; + var outArr = []; + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]] + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: c78ffbc1aa2547a2a5c387ecc68cac1f + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.80.9.3.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.8.80.9.3.1.5]' + key: zyxel.3500_10.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: 2f842775bf27436ab28278754594e5b9 + name: 'Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.80.9.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_10.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-MES3500-10-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: c86b60bc2d0842e28f0718314db4cde0 + expression: 'last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 909d64e8063647de90f9fd61375c40a9 + name: 'ZYXEL MES3500-10: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: 'zyxel.3500_10.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: mes3500-10 + - tag: target + value: switch + - tag: target + value: zyxel + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + value: 1|2 + description: | + Filter of discoverable link types. + 0 - Down link + 1 - Cooper link + 2 - Fiber link + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + value: 1|2 + description: | + Filter of discoverable status. + 0 - OK with DDM + 1 - OK without DDM + 2 - nonoperational + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by status.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable SFP modules name.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + value: N/A + description: 'Filter to exclude discovered SFP modules by name.' + - macro: '{$ZYXEL.LLD.SFP.UPDATE}' + value: 10m + description: 'Receiving data from the SFP module is slow, we do not recommend setting the interval less than 10 minutes.' + dashboards: + - uuid: e448f23393064910b8f1e7197da3a539 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL MES3500-10 by SNMP' + name: 'ZYXEL MES3500-10: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: 7ad9362759b542d98a67796dd13fc5d4 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 064efc8dae8e47ae9c14713c7b31a36c + name: 'ZYXEL MES3500-10 operational mode port link up type' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Cooper + - value: '2' + newvalue: Fiber + - uuid: 4ad7b4bf94494c93bdcbf36af095d5c3 + name: 'ZYXEL MES3500-10 operational mode port speed duplex' + mappings: + - value: '0' + newvalue: auto + - value: '1' + newvalue: '10M half' + - value: '2' + newvalue: '10M full' + - value: '3' + newvalue: '100M half' + - value: '4' + newvalue: '100M full' + - value: '5' + newvalue: '1G full' + - uuid: e6a8dc82d4ca4b989daafd66ef1ab2ce + name: 'ZYXEL MES3500-10 port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: a96f6ed4d9e34a0cb79cee8bdbd672f5 + name: 'ZYXEL MES3500-10 port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 8e9755ff129740298ab5f5497c6c17a2 + name: 'ZYXEL MES3500-10 SFP status' + mappings: + - value: '1' + newvalue: 'OK with DDM' + - value: '2' + newvalue: 'OK without DDM' + - value: '3' + newvalue: nonoperational + triggers: + - uuid: 9899ada82b0e4507948a8a0068e5640d + expression: '(last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.hw.uptime)>0 and last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.hw.uptime)<10m) or (last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.hw.uptime)=0 and last(/ZYXEL MES3500-10 by SNMP/zyxel.3500_10.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: d44501ff36e1430da2080397868bb8aa + name: 'ZYXEL MES3500-10: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ZYXEL MES3500-10 by SNMP' + key: zyxel.3500_10.cpuusage diff --git a/ZYXEL_MES3500-24S_by_SNMP.yaml b/ZYXEL_MES3500-24S_by_SNMP.yaml new file mode 100644 index 0000000..9cb8590 --- /dev/null +++ b/ZYXEL_MES3500-24S_by_SNMP.yaml @@ -0,0 +1,1440 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 89eef2fe23964f44bf9aec6d00e39efd + template: 'ZYXEL MES3500-24S by SNMP' + name: 'ZYXEL MES3500-24S by SNMP' + description: | + ZYXEL MES3500-24S + + MIBs used: + ZYXEL-TRANSCEIVER-MIB + IF-MIB + RFC1213-MIB + HOST-RESOURCES-MIB + ZYXEL-HW-MONITOR-MIB + ZYXEL-PORT-MIB + ZYXEL-ES-COMMON + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL MGS3520-28 + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 4b5994ccefe5492b8ee81c88f4871efe + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: d80bc493096b4da4857651e7e28829e7 + expression: 'max(/ZYXEL MES3500-24S by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: aa2cb34bb8a24ea883d13039175e7955 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.3500_24s.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 6fccaef6a6f84d97b825d46b62955b76 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.2.4.0]' + key: zyxel.3500_24s.cpuusage + value_type: FLOAT + units: '%' + description: | + MIB: ZYXEL-ES-COMMON + Show device CPU load in %, it's the snapshot of CPU load when + getting the values. + tags: + - tag: component + value: cpu + triggers: + - uuid: 7bf51ce2b7a64f3f8151edc224c601e8 + expression: 'min(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.cpuusage,5m)>{$CPU.UTIL.CRIT}' + name: 'ZYXEL: High CPU utilization' + event_name: 'ZYXEL: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 37410c60fd224987920640313a0b229b + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.1.6.0]' + key: zyxel.3500_24s.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-ES-COMMON' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 182e8b14935445268c096a3e4fdb5795 + expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.fwversion,#1)<>last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.fwversion,#2) and length(last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: feff31efc5b04b14bf19ec256a6660fb + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.3500_24s.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a2ee7e4d0dbc463aa9fc997f14740d0b + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.3500_24s.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 082f2005c90d4edebdddedd1ee946793 + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.3500_24s.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 1e8654e4f9ba487f971f5dc4c1fd5c9d + name: 'Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.2.5.0]' + key: zyxel.3500_24s.memusage + description: | + MIB: ZYXEL-ES-COMMON + Show device memory usage in %. + tags: + - tag: component + value: memory + triggers: + - uuid: d3a4dca93ad946589b1b83e0fe647dde + expression: 'min(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.memusage,5m)>{$MEMORY.UTIL.MAX}' + name: 'ZYXEL: High memory utilization' + event_name: 'ZYXEL: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: a7d255bd093744ef853335e1b961bef7 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.3500_24s.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 96c011542d5b4473934e0de9e442479c + expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.model)<>"MES3500-24S"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel MES3500-24S series, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 9225792a06444aabb120c390c68c2a06 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.3500_24s.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: b3f7ffa22b174e2c8ed8bf0deeb62b42 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.3500_24s.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a9e8c7ae033b4f7e95aadd663f3656d9 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.1.12.0]' + key: zyxel.3500_24s.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-ES-COMMON + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 90268ffbf33049d6adc6ed96badd67ec + expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.serialnumber,#1)<>last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.serialnumber,#2) and length(last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: a76d8952c6424abe926a5b9453bbc75d + name: 'Fan discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.FANRPM.THRESH.LOW},1.3.6.1.4.1.890.1.15.3.26.1.1.1.6,{#ZYXEL.FAN.DESCRIPTION},1.3.6.1.4.1.890.1.15.3.26.1.1.1.2]' + key: zyxel.3500_24s.fan.discovery + delay: 1h + description: 'An entry in fanRpmTable.' + item_prototypes: + - uuid: 4f8bcd1fc9b54f3e94009c5a098ca4e0 + name: '{#ZYXEL.FAN.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.26.1.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.fan[{#SNMPINDEX}]' + units: '!rpm' + description: | + MIB: ZYXEL-HW-MONITOR-MIB + Current speed in Revolutions Per Minute (RPM) on the fan. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: 19846f8e671945c68b065ac53ebb2d38 + expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.fan[{#SNMPINDEX}])<{#ZYXEL.FANRPM.THRESH.LOW}' + name: 'ZYXEL: {#ZYXEL.FAN.DESCRIPTION} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: ed81cba771d34db3b50262ff0bbc73b4 + name: 'ZYXEL MES3500-24S: Fan #{#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.fan[{#SNMPINDEX}]' + - uuid: 75336fa715834ade8a5434520543bf1c + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.4.1.890.1.15.3.61.1.1.1.3,{#ZYXEL.IF.LINKUPTYPE},1.3.6.1.4.1.890.1.15.3.61.2.1.1.2]' + key: zyxel.3500_24s.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 40967a08563e4f62b56d0f3983a5b76a + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MES3500-24S port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: d4f846a781f543539e05bc139e01a462 + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 27ac6ebffd2e47ecb9ebbece3ef3bb68 + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e406bba0c87a4607bc36d4be74ac5abb + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 18a759f3be5247b282fe7f685ae4d18b + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 6b87de872fa84ec8bc9c1058716617ff + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 6e04ed7c0b154deeb1a32150aff18b26 + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 197cf5fd63d541439b282e154bcd4ef1 + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.3500_24s.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3500_24s.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: f357ac3f816d4232a2ba6ff571d95773 + name: 'Port {#SNMPINDEX}: Link type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.61.2.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.link_type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-PORT-MIB + The entry shows the linkUp cable type (copper, fiber, xfp or cx4) for the combo ports. + valuemap: + name: 'ZYXEL MES3500-24S operational mode port link up type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5a6debce6aa6420e8c76f50c24fb541e + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.61.1.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-PORT-MIB + Descriptive name that identifies this port. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 419b897845244642a84a1bd224ec72a6 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MES3500-24S port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 60f1b7c76a6b410db3f3a2ae40c3b74c + expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 2ca954bd5d90447288da9ac4d75ec976 + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b229348293cd47b39e826f5be1285928 + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 445163f587b24339adc9155bff798f7d + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 8f080d3c0bd045e59d22585878bccbff + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 43b466a87757484dae36abe07e946bff + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.3500_24s.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3500_24s.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ff93002a2b5341a8a287fdc78c7e9c6d + name: 'Port {#SNMPINDEX}: Speed Duplex' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.61.1.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.net.if.speed_duplex[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-PORT-MIB + Select The speed and the duplex mode of the Ethernet connection on this port. Selecting Auto + (auto-negotiation) allows one port to negotiate with a peer port automatically to obtain the + connection speed and duplex mode that both ends support. When auto-negotiation is turned on, + a port on the Switch negotiates with the peer automatically to determine the connection speed + and duplex mode. If the peer port does not support auto-negotiation or turns off this feature, + the Switch determines the connection speed by detecting the signal on the cable and using half + duplex mode. Thus requiring you to make sure that the settings of the peer port are the same in + order to connect. + valuemap: + name: 'ZYXEL MES3500-24S operational mode port speed duplex' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 86f5f836fba94de9aed70cf58c6cf1d4 + name: 'ZYXEL MES3500-24S: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: f9f04b1fffeb49d3995957c026a5de5b + name: 'ZYXEL MES3500-24S: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: a9d922236e12416a85f07c7caff3e3cb + name: 'ZYXEL MES3500-24S: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: f90783a6170c4802a1833ae25008b618 + name: 'SFP with DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.WARN.MAX},1.3.6.1.4.1.890.1.15.3.84.1.2.1.4,{#ZYXEL.SFP.WARN.MIN},1.3.6.1.4.1.890.1.15.3.84.1.2.1.5,{#ZYXEL.SFP.DESCRIPTION},1.3.6.1.4.1.890.1.15.3.84.1.2.1.7]' + key: zyxel.3500_24s.sfp.ddm.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP DDM module discovery.' + item_prototypes: + - uuid: 69d7fcbc7e3242c99737ef98efbac0a7 + name: 'SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.2.1.6.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.sfp.ddm[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: FLOAT + units: '!{#ZYXEL.SFP.UNIT}' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Transceiver module DDM data ({#ZYXEL.SFP.DESCRIPTION}). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 2a75ca5b7ef444d0a96dcf2d7c824f03 + expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.sfp.ddm[{#SNMPINDEX}]) > {#ZYXEL.SFP.WARN.MAX}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION} (over {#ZYXEL.SFP.WARN.MAX}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The upper threshold value of the parameter is exceeded' + tags: + - tag: scope + value: notice + - uuid: f2989317c3f847da84979dde3b4f4db4 + expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.sfp.ddm[{#SNMPINDEX}]) < {#ZYXEL.SFP.WARN.MIN}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION} (less than {#ZYXEL.SFP.WARN.MIN}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The parameter values are less than the lower threshold' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: e5e5d83e9f9e429fb51ff79245335065 + name: 'ZYXEL MES3500-24S: SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.sfp.ddm[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = { + 'Temperature': '°C', + 'Voltage': 'V', + 'TxBias': 'mA', + 'TxPower': 'dbm', + 'RxPower': 'dbm' + }; + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SFP.PORT}'] = item['{#SNMPINDEX}'].split('.')[0]; + item['{#ZYXEL.SFP.UNIT}'] = nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']] === undefined ? "" : nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']]; + item['{#ZYXEL.SFP.WARN.MAX}'] /= 100; + item['{#ZYXEL.SFP.WARN.MIN}'] /= 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 98536d7e95c145e6ba5d3a5531c570ce + name: 'SFP without DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.STATUS},1.3.6.1.4.1.890.1.15.3.84.1.1.1.1]' + key: zyxel.3500_24s.sfp.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP module discovery.' + item_prototypes: + - uuid: 7232bba1aed34b5aaeb2d4ce3ad8250f + name: 'SFP {#SNMPINDEX}: Date code' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.sfp.datecode[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Transceiver module vendor's manufacturing date code. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 745310ab6da449aa8150956c076a2223 + name: 'SFP {#SNMPINDEX}: Part number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.sfp.part[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 4565c91a0641405ba4e3d853b5db86e5 + name: 'SFP {#SNMPINDEX}: Revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.sfp.revision[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Revision level for part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b0fa1b76a33041bcab473b17b7b74eef + name: 'SFP {#SNMPINDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.4.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.sfp.serialnumber[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Serial number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: f6533a3fe07c4f0290e7758ac4183a1f + expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.sfp.serialnumber[{#SNMPINDEX}],#1)<>last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.sfp.serialnumber[{#SNMPINDEX}],#2) and length(last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.sfp.serialnumber[{#SNMPINDEX}]))>0' + name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced' + event_name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced (new serial number received)' + priority: INFO + description: 'SFP {#SNMPINDEX} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 80aa0e87f7b24dfe9b525be735aa1ec3 + name: 'SFP {#SNMPINDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.sfp.status[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Transceiver module type. + valuemap: + name: 'ZYXEL MES3500-24S SFP status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5175fe53ba2d4bb6a3ad1aa673b67777 + name: 'SFP {#SNMPINDEX}: Transceiver' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.sfp.transceiver[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Transceiver module type names. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 17c99b32a9674426807fdf5d469b324a + name: 'SFP {#SNMPINDEX}: Vendor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.sfp.vendor[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Transceiver module vendor name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 774dd069aeb948569d21396dd8dceea1 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.15.3.26.1.2.1.6,{#ZYXEL.TEMPDESCRIPTION},1.3.6.1.4.1.890.1.15.3.26.1.2.1.2]' + key: zyxel.3500_24s.temp.discovery + delay: 1h + description: 'An entry in tempTable.' + item_prototypes: + - uuid: 64975a8449d7457c84715f27eb5018fc + name: 'Temperature "{#ZYXEL.TEMPDESCRIPTION}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.26.1.2.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-HW-MONITOR-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: c6db10ac3bec446e9152545119b555bc + expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMPDESCRIPTION} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: c238ae64f1ca4e948b36cb423669c864 + name: 'ZYXEL MES3500-24S: Temperature "{#ZYXEL.TEMPDESCRIPTION}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.temp[{#SNMPINDEX}]' + - uuid: e8a886916c37490f9ba6b29c57d7331e + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.15.3.26.1.3.1.7,{#ZYXEL.DESCRIPTION},1.3.6.1.4.1.890.1.15.3.26.1.3.1.2]' + key: zyxel.3500_24s.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: 6134a567c193489aa1ca32d03c0c2c42 + name: 'Nominal "{#ZYXEL.DESCRIPTION}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.26.1.3.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_24s.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-HW-MONITOR-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 52ac34f156aa434dace3447bb5745b34 + expression: 'last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.DESCRIPTION} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: a94a590eed624cac8ece4ff2956419d8 + name: 'ZYXEL MES3500-24S: Nominal "{#ZYXEL.DESCRIPTION}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: 'zyxel.3500_24s.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: mes3500-24s + - tag: target + value: switch + - tag: target + value: zyxel + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + value: 1|2|3|4 + description: | + Filter of discoverable link types. + 0 - Down link + 1 - Cooper link + 2 - Fiber link + 3 - XFP + 4 - CX4 + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + value: 1|2 + description: | + Filter of discoverable status. + 0 - OK with DDM + 1 - OK without DDM + 2 - nonoperational + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by status.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable SFP modules name.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + value: N/A + description: 'Filter to exclude discovered SFP modules by name.' + - macro: '{$ZYXEL.LLD.SFP.UPDATE}' + value: 10m + description: 'Receiving data from the SFP module is slow, we do not recommend setting the interval less than 10 minutes.' + dashboards: + - uuid: 577773197a9e48a184be6186a868de87 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL MES3500-24S by SNMP' + name: 'ZYXEL MES3500-24S: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: 9e4265c1129d482fa12a09e657a7cda3 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 615d399b1a6045359dfc262b364b4c55 + name: 'ZYXEL MES3500-24S operational mode port link up type' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Cooper + - value: '2' + newvalue: Fiber + - value: '3' + newvalue: XFP + - value: '4' + newvalue: CX4 + - uuid: 4217cd5f5c1f4b438cd4701c023da375 + name: 'ZYXEL MES3500-24S operational mode port speed duplex' + mappings: + - value: '0' + newvalue: auto + - value: '1' + newvalue: '10M half' + - value: '2' + newvalue: '10M full' + - value: '3' + newvalue: '100M half' + - value: '4' + newvalue: '100M full' + - value: '5' + newvalue: '1G full' + - value: '6' + newvalue: '10G full' + - value: '7' + newvalue: '12G full' + - value: '8' + newvalue: '40G full' + - value: '9' + newvalue: '1G auto' + - uuid: 7e705fdb791341b8a1c86ee7d85fbfea + name: 'ZYXEL MES3500-24S port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: 08e22f2eac034c9db9bba73040cea453 + name: 'ZYXEL MES3500-24S port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 161770392cdb4dcd92c3596b5ad6d06a + name: 'ZYXEL MES3500-24S SFP status' + mappings: + - value: '1' + newvalue: 'OK with DDM' + - value: '2' + newvalue: 'OK without DDM' + - value: '3' + newvalue: nonoperational + triggers: + - uuid: 6c8fce36fd9c49569be0ba2bfb70f478 + expression: '(last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.hw.uptime)>0 and last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.hw.uptime)<10m) or (last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.hw.uptime)=0 and last(/ZYXEL MES3500-24S by SNMP/zyxel.3500_24s.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 055310b8a5c94d94aeeaf75ff5d2de55 + name: 'ZYXEL MES3500-24S: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ZYXEL MES3500-24S by SNMP' + key: zyxel.3500_24s.cpuusage diff --git a/ZYXEL_MES3500-24_by_SNMP.yaml b/ZYXEL_MES3500-24_by_SNMP.yaml new file mode 100644 index 0000000..022db27 --- /dev/null +++ b/ZYXEL_MES3500-24_by_SNMP.yaml @@ -0,0 +1,1409 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 292970ad91204722b5e5cb3233fc0026 + template: 'ZYXEL MES3500-24 by SNMP' + name: 'ZYXEL MES3500-24 by SNMP' + description: | + ZYXEL MES3500-24 + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ZYXEL-MES3500-24-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL MES3500-24 + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 7d30d099448e408bb7be13881e4149ed + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 96435fde17384c6bb4f9811ad9ca184a + expression: 'max(/ZYXEL MES3500-24 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: 7e1745e5130f4b7cb2b31814fecd6792 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.3500_24.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 31029f8a8cc541908b8f765b27254ecd + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.12.7.0]' + key: zyxel.3500_24.cpuusage + value_type: FLOAT + units: '%' + description: | + MIB: ZYXEL-MES3500-24-MIB + Show device CPU load in %, it's the snapshot of CPU load when + getting the values. + tags: + - tag: component + value: cpu + triggers: + - uuid: 911d1c7e921f43af8ab3c0035be57a27 + expression: 'min(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.cpuusage,5m)>{$CPU.UTIL.CRIT}' + name: 'ZYXEL: High CPU utilization' + event_name: 'ZYXEL: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 53e694b360254f2896301e78cf982650 + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMP.ARRAY},1.3.6.1.4.1.890.1.5.8.68.1]' + key: zyxel.3500_24.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-MES3500-24-MIB' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var tmpObj = {}; + inArray.forEach(function(item, i, arr) { + tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"] + }); + var strOut = 'V' + tmpObj["1.0"] + '.' + tmpObj["2.0"] + + '(' + tmpObj["3.0"] + '.' + tmpObj["4.0"] + ')_' + + tmpObj["7.0"] + '.' + tmpObj["6.0"] + '.' + tmpObj["5.0"]; + return strOut; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: inventory + triggers: + - uuid: f3daea29a34b4cf992d3c23ba8a64d2e + expression: 'last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.fwversion,#1)<>last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.fwversion,#2) and length(last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: fb480642cad3440a8637d871add07b8f + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.3500_24.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 5aa2128d8530415f855a0d33b7fb9c7f + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.3500_24.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: a8209492e29040a3896abf35019e6cdd + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.3500_24.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 1820c7b7d903402dab0d7c8fb251f9bc + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.3500_24.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: ab363c150ecd447ea4d3a3a9c311b992 + expression: 'last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.model)<>"MES3500-24"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel MES3500-24, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: b5fc886ab5b94f929e866d4a2e9c5648 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.3500_24.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 00c831c6cc9d415e91319b6bec15423d + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.3500_24.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: b5243eb2c7664203acb4f5e6bc8da296 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.1.10.0]' + key: zyxel.3500_24.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-24-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: a475d29129664eec82fc7ed85cb74df9 + expression: 'last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.serialnumber,#1)<>last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.serialnumber,#2) and length(last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 263079e9c77c4539b248a5b62b5f1b0f + name: 'Memory pool discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.MEMORY.NAME},1.3.6.1.4.1.890.1.5.8.68.124.1.1.2]' + key: zyxel.3500_24.memory.discovery + delay: 1h + item_prototypes: + - uuid: b41542121d724e1a82e72687ecce6cf2 + name: 'Memory "{#ZYXEL.MEMORY.NAME}" utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.124.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3500_24.memory[{#SNMPINDEX}]' + units: '%' + description: | + MIB: ZYXEL-MES3500-24-MIB + Utilization of memory pool in %. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 66802198e0764ee29cdf557378b5566b + expression: 'min(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.memory[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'ZYXEL: High memory utilization in "{#ZYXEL.MEMORY.NAME}" pool' + event_name: 'ZYXEL: High memory utilization in "{#ZYXEL.MEMORY.NAME}" pool (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: 0f57f2a82f764b908fbc8f4d828203c6 + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.4.1.890.1.5.8.68.24.1.1.3,{#ZYXEL.IF.LINKUPTYPE},1.3.6.1.4.1.890.1.5.8.68.24.1.1.5]' + key: zyxel.3500_24.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 8320028ac1ca4ef8b0dce4817281887a + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MES3500-24 port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 7309a7b73c2848088c282096c334d541 + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 72efe5b4f1584d438739298561b3c8ab + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: f11f5928218a4b619b31b597895a13b2 + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 22a65221bc194c03909956179180808a + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e759a09d0f504567bd2fc0dd9c0d8395 + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 16df754a1ac94c0588e1b6be5e175ed7 + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5051b4a19bad47a8b546fbfb6d5ea85e + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.3500_24.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3500_24.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 25f6b400af8a40b29bf83ac988bc3cd8 + name: 'Port {#SNMPINDEX}: Link type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.24.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.link_type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-MES3500-24-MIB + Physical connection type + valuemap: + name: 'ZYXEL MES3500-24 operational mode port link up type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 6d860666d83b4886b04bb1ff2ecb19d9 + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.24.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-24-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: adf6ce16961240a9a7775de2e41df3d1 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MES3500-24 port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 5a9faa35f7d547a987e78075832cf38e + expression: 'last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 9119a0ba755e426580310376d6a70b5f + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b13b8fecada34eed8f40ee79e2a12295 + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: d15d6b6ab8af4d5d8501784bb590af08 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 08e0d078c5224b0885ea8c03af9328e4 + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 40b0f81094014f6cb667c143b5345795 + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.3500_24.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3500_24.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a814c27268e648f18ac9c82d5a5f78cb + name: 'Port {#SNMPINDEX}: Speed Duplex' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.24.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.3500_24.net.if.speed_duplex[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-MES3500-24-MIB + Transmission mode + valuemap: + name: 'ZYXEL MES3500-24 operational mode port speed duplex' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 2b07fe7c9bd14177b8cc8c05e3975ac9 + name: 'ZYXEL MES3500-24: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: b4c385f72ca243c8a7681c8220229d8d + name: 'ZYXEL MES3500-24: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: ae845a9a10204c40a1a044002f5b1a72 + name: 'ZYXEL MES3500-24: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 302fdabe174e425d9f32d36694453331 + name: 'SFP with DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.WARN.MAX},1.3.6.1.4.1.890.1.5.8.68.117.2.1.5,{#ZYXEL.SFP.WARN.MIN},1.3.6.1.4.1.890.1.5.8.68.117.2.1.6,{#ZYXEL.SFP.DESCRIPTION},1.3.6.1.4.1.890.1.5.8.68.117.2.1.8]' + key: zyxel.3500_24.sfp.ddm.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP DDM module discovery.' + item_prototypes: + - uuid: 096d50d830f144079fe0231bae2528e5 + name: 'SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.117.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_24.sfp.ddm[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: FLOAT + units: '!{#ZYXEL.SFP.UNIT}' + description: | + MIB: ZYXEL-MES3500-24-MIB + Transceiver module DDM data ({#ZYXEL.SFP.DESCRIPTION}). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: ef830e34f83347bebba87a72208d805b + expression: 'last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.sfp.ddm[{#SNMPINDEX}]) > {#ZYXEL.SFP.WARN.MAX}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION} (over {#ZYXEL.SFP.WARN.MAX}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The upper threshold value of the parameter is exceeded' + tags: + - tag: scope + value: notice + - uuid: 229f44666e6043a1a8e34437ad24e3ae + expression: 'last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.sfp.ddm[{#SNMPINDEX}]) < {#ZYXEL.SFP.WARN.MIN}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION} (less than {#ZYXEL.SFP.WARN.MIN}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The parameter values are less than the lower threshold' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 14b916383368427cad794b92d5d706e9 + name: 'ZYXEL MES3500-24: SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.sfp.ddm[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = { + 'Temperature': '°C', + 'Voltage': 'V', + 'TxBias': 'mA', + 'TxPower': 'dbm', + 'RxPower': 'dbm' + }; + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SFP.PORT}'] = item['{#SNMPINDEX}'].split('.')[0]; + item['{#ZYXEL.SFP.UNIT}'] = nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']] === undefined ? "" : nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']]; + item['{#ZYXEL.SFP.WARN.MAX}'] /= 100; + item['{#ZYXEL.SFP.WARN.MIN}'] /= 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 998d08685c72456b959b47adabf48f3f + name: 'SFP without DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.STATUS},1.3.6.1.4.1.890.1.5.8.68.117.1.1.2]' + key: zyxel.3500_24.sfp.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP module discovery.' + item_prototypes: + - uuid: f17e1f42abda43c7974afb415fa1544d + name: 'SFP {#SNMPINDEX}: Date code' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.117.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3500_24.sfp.datecode[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-24-MIB + Transceiver module vendor's manufacturing date code. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b8b4d20515d748ac9bc77f8223294861 + name: 'SFP {#SNMPINDEX}: Part number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.117.1.1.4.{#SNMPINDEX}]' + key: 'zyxel.3500_24.sfp.part[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-24-MIB + Part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 380d4a1f3aa041fea4108c08d7108344 + name: 'SFP {#SNMPINDEX}: Revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.117.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3500_24.sfp.revision[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-24-MIB + Revision level for part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 24dc72b317284f568e962b461bbb33de + name: 'SFP {#SNMPINDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.117.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3500_24.sfp.serialnumber[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-24-MIB + Serial number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: f84b378d79b74174842cc49af29c2a0c + expression: 'last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.sfp.serialnumber[{#SNMPINDEX}],#1)<>last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.sfp.serialnumber[{#SNMPINDEX}],#2) and length(last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.sfp.serialnumber[{#SNMPINDEX}]))>0' + name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced' + event_name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced (new serial number received)' + priority: INFO + description: 'SFP {#SNMPINDEX} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 0b8041b750ed4734b70cce707c4782ad + name: 'SFP {#SNMPINDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.117.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_24.sfp.status[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + description: | + MIB: ZYXEL-MES3500-24-MIB + Transceiver module status. + valuemap: + name: 'ZYXEL MES3500-24 SFP status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: cf254d7b5d0d4525b8f871863a1ced2d + name: 'SFP {#SNMPINDEX}: Transceiver' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.117.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3500_24.sfp.transceiver[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-24-MIB + Transceiver module type names. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: cda45fc5cf1d44779e1a5eda3f120df2 + name: 'SFP {#SNMPINDEX}: Vendor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.117.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3500_24.sfp.vendor[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MES3500-24-MIB + Transceiver module vendor name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 034f5965d39940d29ac58641f3b01183 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.8.68.9.2.1.5]' + key: zyxel.3500_24.temp.discovery + delay: 1h + description: | + An entry in tempTable. + Index of temperature unit. 1:MAC, 2:CPU, 3:PHY + item_prototypes: + - uuid: 0ab57df406f64806a6ad93660258f08c + name: 'Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.9.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_24.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-MES3500-24-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: 9963d3848c774563881689da1bcddefc + expression: 'last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 5e06e88aca5b492aa9c623e4ef727b5d + name: 'ZYXEL MES3500-24: Temperature "{#ZYXEL.TEMP.ID}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.temp[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"}; + var outArr = []; + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]] + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 2197368f67d548b7a7c6b0fe5edb5a2d + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.68.9.3.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.8.68.9.3.1.5]' + key: zyxel.3500_24.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: fc5ca0139747408aa65d960577bd4dbc + name: 'Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.68.9.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.3500_24.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-MES3500-24-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 2eef8cabb2e141dd8b6d1868ebc79db4 + expression: 'last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 40f7ab2435d345279b8a7a52bad06dcd + name: 'ZYXEL MES3500-24: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: 'zyxel.3500_24.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: mes3500-24 + - tag: target + value: switch + - tag: target + value: zyxel + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + value: 1|2 + description: | + Filter of discoverable link types. + 0 - Down link + 1 - Cooper link + 2 - Fiber link + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + value: 1|2 + description: | + Filter of discoverable status. + 0 - OK with DDM + 1 - OK without DDM + 2 - nonoperational + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by status.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable SFP modules name.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + value: N/A + description: 'Filter to exclude discovered SFP modules by name.' + - macro: '{$ZYXEL.LLD.SFP.UPDATE}' + value: 10m + description: 'Receiving data from the SFP module is slow, we do not recommend setting the interval less than 10 minutes.' + dashboards: + - uuid: 4fd9d55bded94d53811920d5247e07a2 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL MES3500-24 by SNMP' + name: 'ZYXEL MES3500-24: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: dbb03955eb7043dda4dea1a9d7e8e043 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: c0f699295af740e2aabbb06c6718e8f8 + name: 'ZYXEL MES3500-24 operational mode port link up type' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Cooper + - value: '2' + newvalue: Fiber + - uuid: f94441e46ffe4908a8a57089cbdaeaa7 + name: 'ZYXEL MES3500-24 operational mode port speed duplex' + mappings: + - value: '0' + newvalue: auto + - value: '1' + newvalue: '10M half' + - value: '2' + newvalue: '10M full' + - value: '3' + newvalue: '100M half' + - value: '4' + newvalue: '100M full' + - value: '5' + newvalue: '1G full' + - uuid: df2213aff9984b3f837f99944f3c9bc0 + name: 'ZYXEL MES3500-24 port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: 679674c6b9364083a1eb1c9c9be136a2 + name: 'ZYXEL MES3500-24 port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: f12de6ba6b4c4556b276f9d5d509ffcf + name: 'ZYXEL MES3500-24 SFP status' + mappings: + - value: '1' + newvalue: 'OK with DDM' + - value: '2' + newvalue: 'OK without DDM' + - value: '3' + newvalue: nonoperational + triggers: + - uuid: c389b0db83bc404e8cb84ce65db79700 + expression: '(last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.hw.uptime)>0 and last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.hw.uptime)<10m) or (last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.hw.uptime)=0 and last(/ZYXEL MES3500-24 by SNMP/zyxel.3500_24.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: ae7d968e6ec942efb4e0b20fd75a5eac + name: 'ZYXEL MES3500-24: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ZYXEL MES3500-24 by SNMP' + key: zyxel.3500_24.cpuusage diff --git a/ZYXEL_MGS-3712F_by_SNMP.yaml b/ZYXEL_MGS-3712F_by_SNMP.yaml new file mode 100644 index 0000000..8f3f113 --- /dev/null +++ b/ZYXEL_MGS-3712F_by_SNMP.yaml @@ -0,0 +1,1418 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 01deb47efa1f4a9092de67fd61820a7d + template: 'ZYXEL MGS-3712F by SNMP' + name: 'ZYXEL MGS-3712F by SNMP' + description: | + ZYXEL MGS-3712F + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ZYXEL-MGS3712F-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL MGS-3712F + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 2bd320c5d71d471e8b68a5f30e1aa5d9 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: c4244d60e8aa4cc380442992c031b2fd + expression: 'max(/ZYXEL MGS-3712F by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: 71ba1c991114432c9dca4f39b30e7872 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.3712f.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 69432e1306ae46eab178082cb5ed7bc3 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.11.7.0]' + key: zyxel.3712f.cpuusage + value_type: FLOAT + units: '%' + description: | + MIB: ZYXEL-MGS3712F-MIB + Show device CPU load in %, it's the snapshot of CPU load when + getting the values. + tags: + - tag: component + value: cpu + triggers: + - uuid: 084cf3c89c9c48eeac9131d831a4f71b + expression: 'min(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.cpuusage,5m)>{$CPU.UTIL.CRIT}' + name: 'ZYXEL: High CPU utilization' + event_name: 'ZYXEL: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 4ced5f4185284f32b767036ffe41302c + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMP.ARRAY},1.3.6.1.4.1.890.1.5.8.48.1]' + key: zyxel.3712f.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-MGS3712F-MIB' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var tmpObj = {}; + inArray.forEach(function(item, i, arr) { + tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"] + }); + var strOut = 'V' + tmpObj["1.0"] + '.' + tmpObj["2.0"] + + '(' + tmpObj["3.0"] + '.' + tmpObj["4.0"] + ')_' + + tmpObj["7.0"] + '.' + tmpObj["6.0"] + '.' + tmpObj["5.0"]; + return strOut; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: inventory + triggers: + - uuid: fbf62d3f9ce54baab9a16f3e123811ef + expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.fwversion,#1)<>last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.fwversion,#2) and length(last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 29bc66a7a2c949549fc2e4c6fa841ab0 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.3712f.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 98c18ebb978448098922d7930e2ed00b + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.3712f.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: bfd1233a36e94dfe93cd02ac95a7218e + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.3712f.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: e734e8fe661043ac84d55a2497a50cf5 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.3712f.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: bf3d28b088db48a59aaa9e88f6b13cb8 + expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.model)<>"MGS-3712F"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel MGS-3712F, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 026c51d2e28943e98056a934355a0161 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.3712f.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: e5e21fdb6dae4dc49038f0801c87a5c6 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.3712f.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 97eaf488887c42b89a4e6f6103ceeef6 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.1.10.0]' + key: zyxel.3712f.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: ccb3fe676cd742af954b8c5e7898e5f0 + expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.serialnumber,#1)<>last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.serialnumber,#2) and length(last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 0f15b0a5b34d4849800ea65b1f5e0916 + name: 'Fan discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.FANRPM.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.48.8.1.1.5]' + key: zyxel.3712f.fan.discovery + delay: 1h + description: 'An entry in fanRpmTable.' + item_prototypes: + - uuid: 12073ba0a2894561bfa130aeca7c8aba + name: 'Fan #{#SNMPINDEX}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.8.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3712f.fan[{#SNMPINDEX}]' + units: '!rpm' + description: | + MIB: ZYXEL-MGS3712F-MIB + Current speed in Revolutions Per Minute (RPM) on the fan. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: 4672af40f7434a419d063c6f00f4f9f8 + expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.fan[{#SNMPINDEX}])<{#ZYXEL.FANRPM.THRESH.LOW}' + name: 'ZYXEL: FAN{#SNMPINDEX} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 09b10e607e14466d8c49512955f6f30e + name: 'ZYXEL MGS-3712F: Fan #{#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.fan[{#SNMPINDEX}]' + - uuid: 4e39a7b918fd44a1bd3986380d116e9f + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.4.1.890.1.5.8.48.22.1.1.3,{#ZYXEL.IF.LINKUPTYPE},1.3.6.1.4.1.890.1.5.8.48.22.1.1.5]' + key: zyxel.3712f.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 84b7463fd2ff40f4b854ad5331fbf0da + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MGS-3712F port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ba54ef4ceafd4445bab7f2365c6c4404 + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 1955d72ae95a4c53922a4a209c48af45 + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 8971f0814f9f4a90a9163b83804665f1 + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b3f54f3b51474b608ae5f4cec6990b1a + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a4a13a2309d94ea7a6f935796c1f4623 + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a1b595cd244340aea0dd9343a36619b6 + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 13f394481ad045ed8db3693be14ed2f1 + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.3712f.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3712f.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: c173d9fb0e4645f8b1b5cdd70881ea0a + name: 'Port {#SNMPINDEX}: Link type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.22.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.link_type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-MGS3712F-MIB + Physical connection type + valuemap: + name: 'ZYXEL MGS-3712F operational mode port link up type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b0dc3f51f7f544e6ac7c14d4aaf5b7a6 + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.22.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 0c940b9948f043b5a58e59cfd1e3f585 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MGS-3712F port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: d92c1f55c21e4780ada69269d95c5f45 + expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 759ec75f1155444187f970e3141e219b + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 9cfa5cdeb08c403ea487107303fb52c9 + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 44c57404960045998f6b11129c5c9e74 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: d618cdab510147dba8781669b62535d5 + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 4ae2370776ea425095a8856ac4a51868 + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.3712f.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3712f.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 9dabada8160e47138c2416002346fc2d + name: 'Port {#SNMPINDEX}: Speed Duplex' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.22.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.3712f.net.if.speed_duplex[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transmission mode + valuemap: + name: 'ZYXEL MGS-3712F operational mode port speed duplex' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 6d6da920b3b841d2a348016bfa4fd529 + name: 'ZYXEL MGS-3712F: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: 337c2059cb87491fbacae5690da55ca7 + name: 'ZYXEL MGS-3712F: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: 3e75d1f6271943eaaf19644716fe4e40 + name: 'ZYXEL MGS-3712F: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: d48eedbbb8ad448da866d11d6f40ce91 + name: 'SFP with DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.WARN.MAX},1.3.6.1.4.1.890.1.5.8.48.117.2.1.5,{#ZYXEL.SFP.WARN.MIN},1.3.6.1.4.1.890.1.5.8.48.117.2.1.6,{#ZYXEL.SFP.DESCRIPTION},1.3.6.1.4.1.890.1.5.8.48.117.2.1.8]' + key: zyxel.3712f.sfp.ddm.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP DDM module discovery.' + item_prototypes: + - uuid: d9accdfbf4e44ef28a191f6c9fd864b1 + name: 'SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.117.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3712f.sfp.ddm[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: FLOAT + units: '!{#ZYXEL.SFP.UNIT}' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transceiver module DDM data ({#ZYXEL.SFP.DESCRIPTION}). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 1ef8b878bd334f1eac9d9c4258d1f4f2 + expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.sfp.ddm[{#SNMPINDEX}]) > {#ZYXEL.SFP.WARN.MAX}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION} (over {#ZYXEL.SFP.WARN.MAX}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The upper threshold value of the parameter is exceeded' + tags: + - tag: scope + value: notice + - uuid: 6605455fa4764a578feff4ce12a20883 + expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.sfp.ddm[{#SNMPINDEX}]) < {#ZYXEL.SFP.WARN.MIN}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION} (less than {#ZYXEL.SFP.WARN.MIN}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The parameter values are less than the lower threshold' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 1ea36937222d40b0a714b47fb0fceb36 + name: 'ZYXEL MGS-3712F: SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.sfp.ddm[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = { + 'Temperature': '°C', + 'Voltage': 'V', + 'TxBias': 'mA', + 'TxPower': 'dbm', + 'RxPower': 'dbm' + }; + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SFP.PORT}'] = item['{#SNMPINDEX}'].split('.')[0]; + item['{#ZYXEL.SFP.UNIT}'] = nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']] === undefined ? "" : nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']]; + item['{#ZYXEL.SFP.WARN.MAX}'] /= 100; + item['{#ZYXEL.SFP.WARN.MIN}'] /= 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: b3d39eb65ab547de92862c93ca9ea2b0 + name: 'SFP without DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.STATUS},1.3.6.1.4.1.890.1.5.8.48.117.1.1.2]' + key: zyxel.3712f.sfp.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP module discovery.' + item_prototypes: + - uuid: 430c8c876a974a0f8df8d79222bb7dcd + name: 'SFP {#SNMPINDEX}: Date code' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.117.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3712f.sfp.datecode[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transceiver module vendor's manufacturing date code. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 519c8737de814a6aabce25ea8ef52c1a + name: 'SFP {#SNMPINDEX}: Part number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.117.1.1.4.{#SNMPINDEX}]' + key: 'zyxel.3712f.sfp.part[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ea54a5a49aa4447ba77a28b4b110a77a + name: 'SFP {#SNMPINDEX}: Revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.117.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3712f.sfp.revision[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Revision level for part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: bb97e6edd8574888b6892a0d49849406 + name: 'SFP {#SNMPINDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.117.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3712f.sfp.serialnumber[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Serial number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 8fc46b61f7854893839a307700627d18 + expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.sfp.serialnumber[{#SNMPINDEX}],#1)<>last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.sfp.serialnumber[{#SNMPINDEX}],#2) and length(last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.sfp.serialnumber[{#SNMPINDEX}]))>0' + name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced' + event_name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced (new serial number received)' + priority: INFO + description: 'SFP {#SNMPINDEX} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b0a81abdecad42788715ad879c2d03fa + name: 'SFP {#SNMPINDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.117.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3712f.sfp.status[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transceiver module status. + valuemap: + name: 'ZYXEL MGS-3712F SFP status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: db78a10438534c53bc0bc7ce09d784cd + name: 'SFP {#SNMPINDEX}: Transceiver' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.117.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3712f.sfp.transceiver[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transceiver module type names. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 536d22ea7a654bf99b26eeaa8e6761f7 + name: 'SFP {#SNMPINDEX}: Vendor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.117.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3712f.sfp.vendor[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transceiver module vendor name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a6e733335bb24801bf006586185ffaff + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.8.48.8.2.1.5]' + key: zyxel.3712f.temp.discovery + delay: 1h + description: | + An entry in tempTable. + Index of temperature unit. 1:MAC, 2:CPU, 3:PHY + item_prototypes: + - uuid: 02ba756962cf4ab3b3c90817e4c5f053 + name: 'Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.8.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3712f.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-MGS3712F-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: b0d3093a36984493a7ffe87c7c4d408e + expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 75294455e2ce4c2cb902c6b58549c8d8 + name: 'ZYXEL MGS-3712F: Temperature "{#ZYXEL.TEMP.ID}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.temp[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"}; + var outArr = []; + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]] + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 4ccedd9f504346eda12af79b21362322 + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.48.8.3.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.8.48.8.3.1.5]' + key: zyxel.3712f.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: d1f0e62a6fad4d578c0d524278c7ad3d + name: 'Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.48.8.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.3712f.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-MGS3712F-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 9a15b78bae564c879a5c95290cde63fe + expression: 'last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: fd954391176a47728eec01caed2234b5 + name: 'ZYXEL MGS-3712F: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: 'zyxel.3712f.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: mgs-3712f + - tag: target + value: switch + - tag: target + value: zyxel + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + value: 1|2 + description: | + Filter of discoverable link types. + 0 - Down link + 1 - Cooper link + 2 - Fiber link + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + value: 1|2 + description: | + Filter of discoverable status. + 0 - OK with DDM + 1 - OK without DDM + 2 - nonoperational + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by status.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable SFP modules name.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + value: N/A + description: 'Filter to exclude discovered SFP modules by name.' + - macro: '{$ZYXEL.LLD.SFP.UPDATE}' + value: 10m + description: 'Receiving data from the SFP module is slow, we do not recommend setting the interval less than 10 minutes.' + dashboards: + - uuid: 42acb2b1e0794607b68140124eee22a1 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL MGS-3712F by SNMP' + name: 'ZYXEL MGS-3712F: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: bf6cbe819fb94c85becf4364c47ef1c4 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 2695f35dedcf41e1aade2037e931c57e + name: 'ZYXEL MGS-3712F operational mode port link up type' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Cooper + - value: '2' + newvalue: Fiber + - uuid: c2b235ab2e6042568c096fdfb466f7dc + name: 'ZYXEL MGS-3712F operational mode port speed duplex' + mappings: + - value: '0' + newvalue: auto + - value: '1' + newvalue: '10M half' + - value: '2' + newvalue: '10M full' + - value: '3' + newvalue: '100M half' + - value: '4' + newvalue: '100M full' + - value: '5' + newvalue: '1G full' + - uuid: d145d8ee5ad2423f906335d30bfef592 + name: 'ZYXEL MGS-3712F port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: 655823ba854540c78a8078d4e7594bf9 + name: 'ZYXEL MGS-3712F port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: bf0d94784c404b209d4c75c8f582a5c6 + name: 'ZYXEL MGS-3712F SFP status' + mappings: + - value: '1' + newvalue: 'OK with DDM' + - value: '2' + newvalue: 'OK without DDM' + - value: '3' + newvalue: nonoperational + triggers: + - uuid: 6a31fdd61b9f4aa99c8ad15ff243c6b2 + expression: '(last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.hw.uptime)>0 and last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.hw.uptime)<10m) or (last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.hw.uptime)=0 and last(/ZYXEL MGS-3712F by SNMP/zyxel.3712f.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 85bd11f116ef4e3b9695dc783c625f05 + name: 'ZYXEL MGS-3712F: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ZYXEL MGS-3712F by SNMP' + key: zyxel.3712f.cpuusage diff --git a/ZYXEL_MGS-3712_by_SNMP.yaml b/ZYXEL_MGS-3712_by_SNMP.yaml new file mode 100644 index 0000000..7820ab2 --- /dev/null +++ b/ZYXEL_MGS-3712_by_SNMP.yaml @@ -0,0 +1,1418 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 8ea7299983f24d0a913606e334f0e526 + template: 'ZYXEL MGS-3712 by SNMP' + name: 'ZYXEL MGS-3712 by SNMP' + description: | + ZYXEL MGS-3712 + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ZYXEL-MGS3712F-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL MGS-3712 + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 8777bb95a4b64fd293e96b25febf3915 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 60787fd1204b42bfb515b1b204c1d14f + expression: 'max(/ZYXEL MGS-3712 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: b93b020818034096a973d8e171a099b2 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.3712.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 4d13bad4f29f41b1890fa9e2709dd461 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.11.7.0]' + key: zyxel.3712.cpuusage + value_type: FLOAT + units: '%' + description: | + MIB: ZYXEL-MGS3712F-MIB + Show device CPU load in %, it's the snapshot of CPU load when + getting the values. + tags: + - tag: component + value: cpu + triggers: + - uuid: b1ca06637dbe4c9ca84e2811e780d5d5 + expression: 'min(/ZYXEL MGS-3712 by SNMP/zyxel.3712.cpuusage,5m)>{$CPU.UTIL.CRIT}' + name: 'ZYXEL: High CPU utilization' + event_name: 'ZYXEL: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: efc31527c7af48729c1d5a229b115c55 + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMP.ARRAY},1.3.6.1.4.1.890.1.5.8.47.1]' + key: zyxel.3712.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-MGS3712F-MIB' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var tmpObj = {}; + inArray.forEach(function(item, i, arr) { + tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"] + }); + var strOut = 'V' + tmpObj["1.0"] + '.' + tmpObj["2.0"] + + '(' + tmpObj["3.0"] + '.' + tmpObj["4.0"] + ')_' + + tmpObj["7.0"] + '.' + tmpObj["6.0"] + '.' + tmpObj["5.0"]; + return strOut; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: inventory + triggers: + - uuid: de7d7e7d976c4b9894259c4e7fb5a4dd + expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.fwversion,#1)<>last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.fwversion,#2) and length(last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 801ba0a2d20f440d822eb042146b8d16 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.3712.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: a52f578cc57448f0a43641c75be89ce9 + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.3712.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 26236c6667c9411393fb45af2324e318 + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.3712.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: fc5d5cfb35a14ed597623db67433dcac + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.3712.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: e0b4c4f09f6f496cb035af320fcf96a0 + expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.model)<>"MGS-3712"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel MGS-3712, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 409fb8c9b315474db7602fba18702a1d + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.3712.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 692e0384fcf44ec1ac6df0d8925358e3 + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.3712.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 91afb18daedc403a866302ef943beef7 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.1.10.0]' + key: zyxel.3712.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 4a9495748e09477ca5f12443fff533c9 + expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.serialnumber,#1)<>last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.serialnumber,#2) and length(last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: 8402d05803ff481497a5e6f95874e983 + name: 'Fan discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.FANRPM.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.47.8.1.1.5]' + key: zyxel.3712.fan.discovery + delay: 1h + description: 'An entry in fanRpmTable.' + item_prototypes: + - uuid: 568dd120eb8b409dbc8c19d5869c6978 + name: 'Fan #{#SNMPINDEX}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.8.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3712.fan[{#SNMPINDEX}]' + units: '!rpm' + description: | + MIB: ZYXEL-MGS3712F-MIB + Current speed in Revolutions Per Minute (RPM) on the fan. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: edc0057dbdb64fd584cc968c5d8bb41f + expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.fan[{#SNMPINDEX}])<{#ZYXEL.FANRPM.THRESH.LOW}' + name: 'ZYXEL: FAN{#SNMPINDEX} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 06d4f886b788464fad9f0da91d78b0e4 + name: 'ZYXEL MGS-3712: Fan #{#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.fan[{#SNMPINDEX}]' + - uuid: 1568af5125ee4005abc1860e0610f7c4 + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.4.1.890.1.5.8.47.22.1.1.3,{#ZYXEL.IF.LINKUPTYPE},1.3.6.1.4.1.890.1.5.8.47.22.1.1.5]' + key: zyxel.3712.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 9a97d9e95dba4ba88e08ccbd48acce07 + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MGS-3712 port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: f6e2db1bdfd0451a9ca896ade8df790f + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ae4776dea7aa44e7a403aa8bab391a30 + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5c48f1894ae449528d0ef9844c22dee2 + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 83b692f16c7f40899fb802686dccffb5 + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: a9880181229d44e0a60f173820eb5d67 + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 2555e749de034c2db2c7a800a8785695 + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ca42c0b40bf74f03b544b9d0dd678223 + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.3712.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3712.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 4a4c54e3736246e1a534afa93303b481 + name: 'Port {#SNMPINDEX}: Link type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.22.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.link_type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-MGS3712F-MIB + Physical connection type + valuemap: + name: 'ZYXEL MGS-3712 operational mode port link up type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 2b4c245972454f24b703d4cb29581dfc + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.22.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e12e5d4b36db44c38968652a048f1a26 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MGS-3712 port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: e21751b08fe740f2ad9ad6bde6b879c4 + expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: a28bbd54c2e54e90b7280f84e964c681 + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 1f6f7e4f23ee4208a5288dd6eaf0aed8 + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 2e5d50c95f4942e08f54feb989058cd0 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 8580f10654ea4020ae08d2917fdb8b17 + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: d8b945fc71534a00ba35867d62bc8703 + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.3712.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3712.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b8c053a89b32400595d4a0673cfa1e81 + name: 'Port {#SNMPINDEX}: Speed Duplex' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.22.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.3712.net.if.speed_duplex[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transmission mode + valuemap: + name: 'ZYXEL MGS-3712 operational mode port speed duplex' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: b2bed2a4ab7b42119009f4aabd979656 + name: 'ZYXEL MGS-3712: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: 489edc6b24844d8cb5c718a8a4d45a3c + name: 'ZYXEL MGS-3712: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: 1466f28d9f014bb39396cda181630fc4 + name: 'ZYXEL MGS-3712: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 65477e8c3f8948aea5f6101b08e307cc + name: 'SFP with DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.WARN.MAX},1.3.6.1.4.1.890.1.5.8.47.117.2.1.5,{#ZYXEL.SFP.WARN.MIN},1.3.6.1.4.1.890.1.5.8.47.117.2.1.6,{#ZYXEL.SFP.DESCRIPTION},1.3.6.1.4.1.890.1.5.8.47.117.2.1.8]' + key: zyxel.3712.sfp.ddm.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP DDM module discovery.' + item_prototypes: + - uuid: cd2434237f264fd0aa57a9816eb9cdb1 + name: 'SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.117.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3712.sfp.ddm[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: FLOAT + units: '!{#ZYXEL.SFP.UNIT}' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transceiver module DDM data ({#ZYXEL.SFP.DESCRIPTION}). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: e9d242819d7345a0b44cc14a392f05fa + expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.sfp.ddm[{#SNMPINDEX}]) > {#ZYXEL.SFP.WARN.MAX}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION} (over {#ZYXEL.SFP.WARN.MAX}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The upper threshold value of the parameter is exceeded' + tags: + - tag: scope + value: notice + - uuid: 177c2fe88ec24e3d9a5ea9f6b3f346d9 + expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.sfp.ddm[{#SNMPINDEX}]) < {#ZYXEL.SFP.WARN.MIN}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION} (less than {#ZYXEL.SFP.WARN.MIN}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The parameter values are less than the lower threshold' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 2d432abf28354f4193d93b21bc5f1507 + name: 'ZYXEL MGS-3712: SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.sfp.ddm[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = { + 'Temperature': '°C', + 'Voltage': 'V', + 'TxBias': 'mA', + 'TxPower': 'dbm', + 'RxPower': 'dbm' + }; + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SFP.PORT}'] = item['{#SNMPINDEX}'].split('.')[0]; + item['{#ZYXEL.SFP.UNIT}'] = nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']] === undefined ? "" : nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']]; + item['{#ZYXEL.SFP.WARN.MAX}'] /= 100; + item['{#ZYXEL.SFP.WARN.MIN}'] /= 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: e780a6c3b3db45d9b539bba14ca89ef9 + name: 'SFP without DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.STATUS},1.3.6.1.4.1.890.1.5.8.47.117.1.1.2]' + key: zyxel.3712.sfp.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP module discovery.' + item_prototypes: + - uuid: 434d614d231d41c49810342cb3d09797 + name: 'SFP {#SNMPINDEX}: Date code' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.117.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3712.sfp.datecode[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transceiver module vendor's manufacturing date code. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 184be2048cf64e7abf703cb16e1e128b + name: 'SFP {#SNMPINDEX}: Part number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.117.1.1.4.{#SNMPINDEX}]' + key: 'zyxel.3712.sfp.part[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 80d2606b4d644993b13f7efd001ed096 + name: 'SFP {#SNMPINDEX}: Revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.117.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3712.sfp.revision[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Revision level for part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 2d974479665844ae86511d471e190d51 + name: 'SFP {#SNMPINDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.117.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3712.sfp.serialnumber[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Serial number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: aaa3492aa0c64e8a973d1a755fd24f50 + expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.sfp.serialnumber[{#SNMPINDEX}],#1)<>last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.sfp.serialnumber[{#SNMPINDEX}],#2) and length(last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.sfp.serialnumber[{#SNMPINDEX}]))>0' + name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced' + event_name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced (new serial number received)' + priority: INFO + description: 'SFP {#SNMPINDEX} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 46e11863a74f481aaea204148fe8b5b7 + name: 'SFP {#SNMPINDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.117.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3712.sfp.status[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transceiver module status. + valuemap: + name: 'ZYXEL MGS-3712 SFP status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e2e07835d3ef431ea6c5559151dee258 + name: 'SFP {#SNMPINDEX}: Transceiver' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.117.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3712.sfp.transceiver[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transceiver module type names. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 18f798a7ca0d4ea4a24a58c3bcdb9edd + name: 'SFP {#SNMPINDEX}: Vendor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.117.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3712.sfp.vendor[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-MGS3712F-MIB + Transceiver module vendor name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 6a39668b647f49f19591451cc977cc92 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.8.47.8.2.1.5]' + key: zyxel.3712.temp.discovery + delay: 1h + description: | + An entry in tempTable. + Index of temperature unit. 1:MAC, 2:CPU, 3:PHY + item_prototypes: + - uuid: e1703024fdee4c6c812e9c0204510705 + name: 'Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.8.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3712.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-MGS3712F-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: b5ba7daf05204f2b987b879a3d44fac2 + expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 952122594bf14cad9ce00e202209388a + name: 'ZYXEL MGS-3712: Temperature "{#ZYXEL.TEMP.ID}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.temp[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"}; + var outArr = []; + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]] + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: fdaa0461127c489fac83161e9d388e8f + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.47.8.3.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.8.47.8.3.1.5]' + key: zyxel.3712.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: 5ef499ecbada4691a5598d99c2a362eb + name: 'Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.47.8.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.3712.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-MGS3712F-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 02a7a32af7a440b6a7199b425305fdde + expression: 'last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 67b6c6c6085e45cbbb58fb93c1b6eb2f + name: 'ZYXEL MGS-3712: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: 'zyxel.3712.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: mgs-3712 + - tag: target + value: switch + - tag: target + value: zyxel + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + value: 1|2 + description: | + Filter of discoverable link types. + 0 - Down link + 1 - Cooper link + 2 - Fiber link + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + value: 1|2 + description: | + Filter of discoverable status. + 0 - OK with DDM + 1 - OK without DDM + 2 - nonoperational + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by status.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable SFP modules name.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + value: N/A + description: 'Filter to exclude discovered SFP modules by name.' + - macro: '{$ZYXEL.LLD.SFP.UPDATE}' + value: 10m + description: 'Receiving data from the SFP module is slow, we do not recommend setting the interval less than 10 minutes.' + dashboards: + - uuid: 03dc93374fae4d94821303539a651047 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL MGS-3712 by SNMP' + name: 'ZYXEL MGS-3712: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: 6e923e1e3ed34b8f87357b5fd7407c54 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 7c5d7efbd17f48619a3f4211a269b38d + name: 'ZYXEL MGS-3712 operational mode port link up type' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Cooper + - value: '2' + newvalue: Fiber + - uuid: da42da17340044ea83521107ac4dee04 + name: 'ZYXEL MGS-3712 operational mode port speed duplex' + mappings: + - value: '0' + newvalue: auto + - value: '1' + newvalue: '10M half' + - value: '2' + newvalue: '10M full' + - value: '3' + newvalue: '100M half' + - value: '4' + newvalue: '100M full' + - value: '5' + newvalue: '1G full' + - uuid: 7e107b2d754945dbaf833955fcae7f48 + name: 'ZYXEL MGS-3712 port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: ed71a5038bf34198a3a56b0020ad728e + name: 'ZYXEL MGS-3712 port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: b89570749c5d4dcb9378b7951803b8e4 + name: 'ZYXEL MGS-3712 SFP status' + mappings: + - value: '1' + newvalue: 'OK with DDM' + - value: '2' + newvalue: 'OK without DDM' + - value: '3' + newvalue: nonoperational + triggers: + - uuid: eefe29ad784d40d3980a4cb1118dd816 + expression: '(last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.hw.uptime)>0 and last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.hw.uptime)<10m) or (last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.hw.uptime)=0 and last(/ZYXEL MGS-3712 by SNMP/zyxel.3712.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 21c2da2f53e44f6a8b3fc722e415b4c8 + name: 'ZYXEL MGS-3712: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ZYXEL MGS-3712 by SNMP' + key: zyxel.3712.cpuusage diff --git a/ZYXEL_MGS3520-28x_by_SNMP.yaml b/ZYXEL_MGS3520-28x_by_SNMP.yaml new file mode 100644 index 0000000..1b636eb --- /dev/null +++ b/ZYXEL_MGS3520-28x_by_SNMP.yaml @@ -0,0 +1,1442 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: 9cc843a085bb4ee5af0dc4d764a7eee9 + template: 'ZYXEL MGS3520-28x by SNMP' + name: 'ZYXEL MGS3520-28x by SNMP' + description: | + ZYXEL MGS3520-28x + + MIBs used: + ZYXEL-TRANSCEIVER-MIB + IF-MIB + RFC1213-MIB + HOST-RESOURCES-MIB + ZYXEL-HW-MONITOR-MIB + ZYXEL-PORT-MIB + ZYXEL-ES-COMMON + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL MGS3520-28 + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: dd305c07637b49c985aef490fb237359 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: 3bf5d80d383e4e98853caa02063d69c9 + expression: 'max(/ZYXEL MGS3520-28x by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: be1d951beb564638a6102fe4b35fede0 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.3520_28.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: abdb31aeb0034998b91ab8f9b475409f + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.2.4.0]' + key: zyxel.3520_28.cpuusage + value_type: FLOAT + units: '%' + description: | + MIB: ZYXEL-ES-COMMON + Show device CPU load in %, it's the snapshot of CPU load when + getting the values. + tags: + - tag: component + value: cpu + triggers: + - uuid: 96ed7ee3906541ea9cb2c95cf4da1a62 + expression: 'min(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.cpuusage,5m)>{$CPU.UTIL.CRIT}' + name: 'ZYXEL: High CPU utilization' + event_name: 'ZYXEL: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: dd0ab3fa502b43969eec05ffd687450e + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.1.6.0]' + key: zyxel.3520_28.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-ES-COMMON' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 3785991565b948c2a1e1a2a140c42df4 + expression: 'last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.fwversion,#1)<>last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.fwversion,#2) and length(last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8f050b29d1eb43e4a150383c9edd2467 + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.3520_28.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: d9923ed59ef14cbebfe2f6d24c0d8414 + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.3520_28.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 65116a646d734290926de9444a58ff2d + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.3520_28.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 89d6942524f84e6d80d02a80be25ce57 + name: 'Memory utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.2.5.0]' + key: zyxel.3520_28.memusage + description: | + MIB: ZYXEL-ES-COMMON + Show device memory usage in %. + tags: + - tag: component + value: memory + triggers: + - uuid: 1a999dff1dd9481083681741e71aba76 + expression: 'min(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.memusage,5m)>{$MEMORY.UTIL.MAX}' + name: 'ZYXEL: High memory utilization' + event_name: 'ZYXEL: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 2dced10921704f8a9ccaabb2f951af15 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.3520_28.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: d72bc70a67014d818d593d6c484fc9ee + expression: 'not(last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.model)="MGS3520-28" or last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.model)="MGS3520-28F")' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel MGS3520-28x series, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: bccc98beb7ea45d6a7463de339e8877e + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.3520_28.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 78959009721a453c8b8a2c49eb26c90c + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.3520_28.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 095d82b3c92340debb324844a6c7f8a8 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.1.12.0]' + key: zyxel.3520_28.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-ES-COMMON + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: e953886c5a464fc18bb1e221d801901c + expression: 'last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.serialnumber,#1)<>last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.serialnumber,#2) and length(last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: e56b6958ca184f549d86502ad9aa10bc + name: 'Fan discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.FANRPM.THRESH.LOW},1.3.6.1.4.1.890.1.15.3.26.1.1.1.6,{#ZYXEL.FAN.DESCRIPTION},1.3.6.1.4.1.890.1.15.3.26.1.1.1.2]' + key: zyxel.3520_28.fan.discovery + delay: 1h + description: 'An entry in fanRpmTable.' + item_prototypes: + - uuid: dd26e2542d174248af94102230e3b590 + name: '{#ZYXEL.FAN.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.26.1.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3520_28.fan[{#SNMPINDEX}]' + units: '!rpm' + description: | + MIB: ZYXEL-HW-MONITOR-MIB + Current speed in Revolutions Per Minute (RPM) on the fan. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: 9eedeb7aaba943c0947896cd50b39c7f + expression: 'last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.fan[{#SNMPINDEX}])<{#ZYXEL.FANRPM.THRESH.LOW}' + name: 'ZYXEL: {#ZYXEL.FAN.DESCRIPTION} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 8599554de97e46e2bb7d3575d97f9453 + name: 'ZYXEL MGS3520-28x: Fan #{#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.fan[{#SNMPINDEX}]' + - uuid: 800ea9596e6f4fa0b59966f9e9e7cf74 + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.4.1.890.1.15.3.61.1.1.1.3,{#ZYXEL.IF.LINKUPTYPE},1.3.6.1.4.1.890.1.15.3.61.2.1.1.2]' + key: zyxel.3520_28.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 43cf7ba65c39475b9614ed4b95e9b398 + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MGS3520-28x port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: de6bab43bf544489976261919ae52e98 + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 01f3cc6551bb4703b199e6c996ad48ce + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 68b987f900c0467ea77a8c8eb661f6d0 + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ddcef9809ee34de5bec1acbdc8abc162 + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e8c2a3a8ba654311bc90901502983b7a + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 003eb52b5fe44f509b3c04eef9cc2aa7 + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 8e060cde0fae44d792080fbc7da5a2a1 + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.3520_28.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3520_28.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 15a2c17e0bba4f0d824790c3caa9840f + name: 'Port {#SNMPINDEX}: Link type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.61.2.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.link_type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-PORT-MIB + The entry shows the linkUp cable type (copper, fiber, xfp or cx4) for the combo ports. + valuemap: + name: 'ZYXEL MGS3520-28x operational mode port link up type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: f42c5604726d4d21a840418e5668287c + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.61.1.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-PORT-MIB + Descriptive name that identifies this port. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: cfd32eee855647b79c95d6f151f13407 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL MGS3520-28x port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: abb9d47ee9624d6f9805e6eedd5532c5 + expression: 'last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 26f87786719c4192949536c74c146b4d + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 4227a6eb8cce4dd8ab582ffce2788e6e + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 9a7eb0b7569d4111a33d84d03b5018e4 + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 768be526caa345b2b23996016a19e217 + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e2b22f4c39974628a4476120b310a6fb + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.3520_28.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.3520_28.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 285f30d057f8438ab0d94367bcd6bdfc + name: 'Port {#SNMPINDEX}: Speed Duplex' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.61.1.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.3520_28.net.if.speed_duplex[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-PORT-MIB + Select The speed and the duplex mode of the Ethernet connection on this port. Selecting Auto + (auto-negotiation) allows one port to negotiate with a peer port automatically to obtain the + connection speed and duplex mode that both ends support. When auto-negotiation is turned on, + a port on the Switch negotiates with the peer automatically to determine the connection speed + and duplex mode. If the peer port does not support auto-negotiation or turns off this feature, + the Switch determines the connection speed by detecting the signal on the cable and using half + duplex mode. Thus requiring you to make sure that the settings of the peer port are the same in + order to connect. + valuemap: + name: 'ZYXEL MGS3520-28x operational mode port speed duplex' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: a7a2aec27f0045eba26e86e8cb08853a + name: 'ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: b5446d1f3394422d81ca94dd617d6e95 + name: 'ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: 7314e57ea54c42d2ac6a341943204c04 + name: 'ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: c313274b317c42cab5b7dd3c88d0c14b + name: 'SFP with DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.WARN.MAX},1.3.6.1.4.1.890.1.15.3.84.1.2.1.4,{#ZYXEL.SFP.WARN.MIN},1.3.6.1.4.1.890.1.15.3.84.1.2.1.5,{#ZYXEL.SFP.DESCRIPTION},1.3.6.1.4.1.890.1.15.3.84.1.2.1.7]' + key: zyxel.3520_28.sfp.ddm.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP DDM module discovery.' + item_prototypes: + - uuid: f3f9077d771544bfa666f58b6ae59e9c + name: 'SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.2.1.6.{#SNMPINDEX}]' + key: 'zyxel.3520_28.sfp.ddm[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: FLOAT + units: '!{#ZYXEL.SFP.UNIT}' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Transceiver module DDM data ({#ZYXEL.SFP.DESCRIPTION}). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 27cd25ea30fa4f1c9b7b431218241d0c + expression: 'last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.sfp.ddm[{#SNMPINDEX}]) > {#ZYXEL.SFP.WARN.MAX}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION} (over {#ZYXEL.SFP.WARN.MAX}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The upper threshold value of the parameter is exceeded' + tags: + - tag: scope + value: notice + - uuid: 1188909e81c14c23aa9eefbb25a4c367 + expression: 'last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.sfp.ddm[{#SNMPINDEX}]) < {#ZYXEL.SFP.WARN.MIN}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION} (less than {#ZYXEL.SFP.WARN.MIN}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The parameter values are less than the lower threshold' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 5d6e873606684351a68d649a8f7cd5d4 + name: 'ZYXEL MGS3520-28x: SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.sfp.ddm[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = { + 'Temperature': '°C', + 'Voltage': 'V', + 'TxBias': 'mA', + 'TxPower': 'dbm', + 'RxPower': 'dbm' + }; + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SFP.PORT}'] = item['{#SNMPINDEX}'].split('.')[0]; + item['{#ZYXEL.SFP.UNIT}'] = nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']] === undefined ? "" : nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']]; + item['{#ZYXEL.SFP.WARN.MAX}'] /= 100; + item['{#ZYXEL.SFP.WARN.MIN}'] /= 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: f7ab574d01c848f3a46eed870c5099a4 + name: 'SFP without DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.STATUS},1.3.6.1.4.1.890.1.15.3.84.1.1.1.1]' + key: zyxel.3520_28.sfp.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP module discovery.' + item_prototypes: + - uuid: da89b981488d4a71b1a4c70032669ddc + name: 'SFP {#SNMPINDEX}: Date code' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.3520_28.sfp.datecode[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Transceiver module vendor's manufacturing date code. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 743a5eaf2c1049d4bf517c7e6f1f350d + name: 'SFP {#SNMPINDEX}: Part number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.3520_28.sfp.part[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: e40f07be73ca4e15acc109f8565f491b + name: 'SFP {#SNMPINDEX}: Revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.3520_28.sfp.revision[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Revision level for part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 42db7a2affe54f059015adeae188efea + name: 'SFP {#SNMPINDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.4.{#SNMPINDEX}]' + key: 'zyxel.3520_28.sfp.serialnumber[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Serial number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: b9c3894fed8140c684be7c1fe2bbca8d + expression: 'last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.sfp.serialnumber[{#SNMPINDEX}],#1)<>last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.sfp.serialnumber[{#SNMPINDEX}],#2) and length(last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.sfp.serialnumber[{#SNMPINDEX}]))>0' + name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced' + event_name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced (new serial number received)' + priority: INFO + description: 'SFP {#SNMPINDEX} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8ff52d1298f74fa0a211c80373c25f9b + name: 'SFP {#SNMPINDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.3520_28.sfp.status[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Transceiver module type. + valuemap: + name: 'ZYXEL MGS3520-28x SFP status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b11f1d31e3a04b39b6e9ec40a800a7d5 + name: 'SFP {#SNMPINDEX}: Transceiver' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.3520_28.sfp.transceiver[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Transceiver module type names. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 2656c166a30d4ee19465c8e9b2986a10 + name: 'SFP {#SNMPINDEX}: Vendor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.84.1.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.3520_28.sfp.vendor[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-TRANSCEIVER-MIB + Transceiver module vendor name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 0fa2bd401cc14847a8fd366b895a6a51 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.15.3.26.1.2.1.6,{#ZYXEL.TEMPDESCRIPTION},1.3.6.1.4.1.890.1.15.3.26.1.2.1.2]' + key: zyxel.3520_28.temp.discovery + delay: 1h + description: 'An entry in tempTable.' + item_prototypes: + - uuid: bbdae35cdac341ce8f092b693ced4210 + name: 'Temperature "{#ZYXEL.TEMPDESCRIPTION}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.26.1.2.1.3.{#SNMPINDEX}]' + key: 'zyxel.3520_28.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-HW-MONITOR-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: c2d4142fb8934eb7b66f5a5e4fa04398 + expression: 'last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMPDESCRIPTION} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 96fcc6df9a324347a550dd0df84ac15a + name: 'ZYXEL MGS3520-28x: Temperature "{#ZYXEL.TEMPDESCRIPTION}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.temp[{#SNMPINDEX}]' + - uuid: b390ed15aca64c49b654734ef35a9d60 + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.15.3.26.1.3.1.7,{#ZYXEL.DESCRIPTION},1.3.6.1.4.1.890.1.15.3.26.1.3.1.2]' + key: zyxel.3520_28.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: 2b00ed37531f4dfc81aa2669cf227854 + name: 'Nominal "{#ZYXEL.DESCRIPTION}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.15.3.26.1.3.1.3.{#SNMPINDEX}]' + key: 'zyxel.3520_28.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-HW-MONITOR-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 22b6f2f48eae4167b31c8fe3ccbc138a + expression: 'last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.DESCRIPTION} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 74f0c4aba0db42869c1797c0631b7d03 + name: 'ZYXEL MGS3520-28x: Nominal "{#ZYXEL.DESCRIPTION}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: 'zyxel.3520_28.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.VOLT.THRESH.LOW}"] /= 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: mgs3520-28 + - tag: target + value: mgs3520-28f + - tag: target + value: switch + - tag: target + value: zyxel + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + value: 1|2|3|4 + description: | + Filter of discoverable link types. + 0 - Down link + 1 - Cooper link + 2 - Fiber link + 3 - XFP + 4 - CX4 + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + value: 1|2 + description: | + Filter of discoverable status. + 0 - OK with DDM + 1 - OK without DDM + 2 - nonoperational + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by status.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable SFP modules name.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + value: N/A + description: 'Filter to exclude discovered SFP modules by name.' + - macro: '{$ZYXEL.LLD.SFP.UPDATE}' + value: 10m + description: 'Receiving data from the SFP module is slow, we do not recommend setting the interval less than 10 minutes.' + dashboards: + - uuid: 49d9e51af89b42759fc2443d3d465f19 + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL MGS3520-28x by SNMP' + name: 'ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: 5c5037a96f084a8182a5fb00f49ff285 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 2b38ddd0e1a34cfab7dd6af9ebf28aca + name: 'ZYXEL MGS3520-28x operational mode port link up type' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Cooper + - value: '2' + newvalue: Fiber + - value: '3' + newvalue: XFP + - value: '4' + newvalue: CX4 + - uuid: f23ebe496cfc4e659a09eff530b81a24 + name: 'ZYXEL MGS3520-28x operational mode port speed duplex' + mappings: + - value: '0' + newvalue: auto + - value: '1' + newvalue: '10M half' + - value: '2' + newvalue: '10M full' + - value: '3' + newvalue: '100M half' + - value: '4' + newvalue: '100M full' + - value: '5' + newvalue: '1G full' + - value: '6' + newvalue: '10G full' + - value: '7' + newvalue: '12G full' + - value: '8' + newvalue: '40G full' + - value: '9' + newvalue: '1G auto' + - uuid: 3e0566598e394d80988fb49cd3215922 + name: 'ZYXEL MGS3520-28x port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: 2ffe41460977466cb09bc241b8d22739 + name: 'ZYXEL MGS3520-28x port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 4443c6780c8f4d16a5f1efd5426db02e + name: 'ZYXEL MGS3520-28x SFP status' + mappings: + - value: '1' + newvalue: 'OK with DDM' + - value: '2' + newvalue: 'OK without DDM' + - value: '3' + newvalue: nonoperational + triggers: + - uuid: 308761b6dffb44c7b827f6ca76312233 + expression: '(last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.hw.uptime)>0 and last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.hw.uptime)<10m) or (last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.hw.uptime)=0 and last(/ZYXEL MGS3520-28x by SNMP/zyxel.3520_28.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: 13d4a0c9f81647c8ba9f712617c45402 + name: 'ZYXEL MGS3520-28x: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ZYXEL MGS3520-28x by SNMP' + key: zyxel.3520_28.cpuusage diff --git a/ZYXEL_XGS-4728F_by_SNMP.yaml b/ZYXEL_XGS-4728F_by_SNMP.yaml new file mode 100644 index 0000000..57958a4 --- /dev/null +++ b/ZYXEL_XGS-4728F_by_SNMP.yaml @@ -0,0 +1,1457 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 36bff6c29af64692839d077febfc7079 + name: 'Templates/Network devices' + templates: + - uuid: ab18a5665b7d4bed876881b5c4e8ce51 + template: 'ZYXEL XGS-4728F by SNMP' + name: 'ZYXEL XGS-4728F by SNMP' + description: | + ZYXEL XGS-4728F + + MIBs used: + RFC1213-MIB + HOST-RESOURCES-MIB + ZYXEL-XGS4728F-MIB + IF-MIB + + Known Issues: + + Description: Incorrect handling of SNMP bulk requests. Disable the use of bulk requests in the SNMP interface settings. + Version: all versions firmware + Device: ZYXEL XGS-4728F + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/422668-discussion-thread-for-official-zabbix-templates-for-zyxel + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: 'Templates/Network devices' + items: + - uuid: 8b2b855bc92447dda391d251db268dc9 + name: 'SNMP agent availability' + type: INTERNAL + key: 'zabbix[host,snmp,available]' + valuemap: + name: 'SNMP available' + tags: + - tag: component + value: network + triggers: + - uuid: fd9a321842544253896e5a4c1a58ced3 + expression: 'max(/ZYXEL XGS-4728F by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' + name: 'ZYXEL: No SNMP data collection' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' + tags: + - tag: scope + value: availability + - uuid: 23ae05ce4d5c4022a716ed9e8e701ae9 + name: Contact + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.4.0]' + key: zyxel.4728f.contact + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The textual identification of the contact person + for this managed node, together with information + on how to contact this person. + inventory_link: CONTACT + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 1cccb7e7616944aa8747508e96f54968 + name: 'CPU utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.12.7.0]' + key: zyxel.4728f.cpuusage + value_type: FLOAT + units: '%' + description: | + MIB: ZYXEL-XGS4728F-MIB + Show device CPU load in %, it's the snapshot of CPU load when + getting the values. + tags: + - tag: component + value: cpu + triggers: + - uuid: 20f368f955f74fc9b8380b1bbff7e057 + expression: 'min(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.cpuusage,5m)>{$CPU.UTIL.CRIT}' + name: 'ZYXEL: High CPU utilization' + event_name: 'ZYXEL: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' + opdata: 'Current utilization: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The CPU utilization is too high. The system might be slow to respond.' + tags: + - tag: scope + value: performance + - uuid: 222a051f0b84433faa6f29237b6d1552 + name: 'ZyNOS F/W Version' + type: SNMP_AGENT + snmp_oid: 'discovery[{#SNMP.ARRAY},1.3.6.1.4.1.890.1.5.8.46.1]' + key: zyxel.4728f.fwversion + delay: 1h + value_type: CHAR + trends: '0' + description: 'MIB: ZYXEL-XGS4728F-MIB' + inventory_link: SOFTWARE_FULL + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var tmpObj = {}; + inArray.forEach(function(item, i, arr) { + tmpObj[item["{#SNMPINDEX}"]] = item["{#SNMP.ARRAY}"] + }); + var strOut = 'V' + tmpObj["1.0"] + '.' + tmpObj["2.0"] + + '(' + tmpObj["3.0"] + '.' + tmpObj["4.0"] + ')_' + + tmpObj["7.0"] + '.' + tmpObj["6.0"] + '.' + tmpObj["5.0"]; + return strOut; + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: inventory + triggers: + - uuid: 5da304609e8c45d980c46579f6848f0a + expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.fwversion,#1)<>last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.fwversion,#2) and length(last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.fwversion))>0' + name: 'ZYXEL: Firmware has changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'Firmware version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 17bdc70663744ede94d7b94602eb881c + name: 'Uptime (hardware)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]' + key: zyxel.4728f.hw.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: HOST-RESOURCES-MIB + The amount of time since this host was last initialized. + Note that this is different from sysUpTime in the SNMPv2-MIB + [RFC1907] because sysUpTime is the uptime of the + network management portion of the system. + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: cc5065f635bc486cb90898f842fa8a61 + name: Location + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.6.0]' + key: zyxel.4728f.location + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + The physical location of this node (e.g., + `telephone closet, 3rd floor'). + inventory_link: LOCATION + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: 9a646e8e82c844c08754c7e72e161712 + name: 'MAC address' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.6.1]' + key: zyxel.4728f.mac + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + The interface's address at the protocol layer + immediately `below' the network layer in the + protocol stack. For interfaces which do not have + such an address (e.g., a serial line), this object + should contain an octet string of zero length. + inventory_link: MACADDRESS_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: a152c262c465441da0f1924bc7614a23 + name: 'Hardware model name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.1.0]' + key: zyxel.4728f.model + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + A textual description of the entity. This value + should include the full name and version + identification of the system's hardware type, + software operating-system, and networking + software. It is mandatory that this only contain + printable ASCII characters. + inventory_link: MODEL + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 0329f3f5aa6a4315a4f3611ad662103e + expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.model)<>"XGS-4728F"' + name: 'ZYXEL: Template does not match hardware' + priority: INFO + description: 'This template is for Zyxel XGS-4728F, but connected to {ITEM.VALUE}' + tags: + - tag: scope + value: notice + - uuid: 49e365a43809409f8d4636f88e4d64a9 + name: 'Host name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.5.0]' + key: zyxel.4728f.name + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: RFC1213-MIB + An administratively-assigned name for this + managed node. By convention, this is the node's + fully-qualified domain name. + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + - uuid: b3302cbfbae64d55a638240ffb368b9c + name: 'Uptime (network)' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.1.3.0]' + key: zyxel.4728f.net.uptime + delay: 30s + trends: '0' + units: uptime + description: | + MIB: RFC1213-MIB + The time (in hundredths of a second) since the + network management portion of the system was last + re-initialized. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + tags: + - tag: component + value: system + - uuid: 79c80ac11d854edea93a598c4b28ffc0 + name: 'Hardware serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.1.10.0]' + key: zyxel.4728f.serialnumber + delay: 1h + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-XGS4728F-MIB + Serial number + inventory_link: SERIALNO_A + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: inventory + triggers: + - uuid: 4df7c31c3079411baabd4ae66e580652 + expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.serialnumber,#1)<>last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.serialnumber,#2) and length(last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.serialnumber))>0' + name: 'ZYXEL: Device has been replaced' + event_name: 'ZYXEL: Device has been replaced (new serial number received)' + priority: INFO + description: 'Device serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + discovery_rules: + - uuid: bc0d797343b240bdbd5765dc2e7821fd + name: 'Fan discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.FANRPM.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.46.9.1.1.5]' + key: zyxel.4728f.fan.discovery + delay: 1h + description: 'An entry in fanRpmTable.' + item_prototypes: + - uuid: 6ac1481e18bd419d884a556306e57f18 + name: 'Fan #{#SNMPINDEX}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.9.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.4728f.fan[{#SNMPINDEX}]' + units: '!rpm' + description: | + MIB: ZYXEL-XGS4728F-MIB + Current speed in Revolutions Per Minute (RPM) on the fan. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: fan + - tag: component + value: sensor + trigger_prototypes: + - uuid: 012219b8b16941b59d1f9a3f685e9f38 + expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.fan[{#SNMPINDEX}])<{#ZYXEL.FANRPM.THRESH.LOW}' + name: 'ZYXEL: FAN{#SNMPINDEX} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the fan unit' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 96aed516a0254866b0d0b43095b8a5b7 + name: 'ZYXEL XGS-4728F: Fan #{#SNMPINDEX}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.fan[{#SNMPINDEX}]' + - uuid: 06f0e151e2a146028f80e60031d49b48 + name: 'Memory pool discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.MEMORY.NAME},1.3.6.1.4.1.890.1.5.8.46.124.1.1.2]' + key: zyxel.4728f.memory.discovery + delay: 1h + item_prototypes: + - uuid: ead18ee81f074ab68e4104345e5b4b2b + name: 'Memory "{#ZYXEL.MEMORY.NAME}" utilization' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.124.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.4728f.memory[{#SNMPINDEX}]' + units: '%' + description: | + MIB: ZYXEL-XGS4728F-MIB + Utilization of memory pool in %. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: memory + trigger_prototypes: + - uuid: 90b328c3b56c417eb938091338bd07fc + expression: 'min(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.memory[{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' + name: 'ZYXEL: High memory utilization in "{#ZYXEL.MEMORY.NAME}" pool' + event_name: 'ZYXEL: High memory utilization in "{#ZYXEL.MEMORY.NAME}" pool (>{$MEMORY.UTIL.MAX}% for 5m)' + priority: AVERAGE + description: 'The system is running out of free memory.' + tags: + - tag: scope + value: performance + - uuid: 75a0f2676e134b6e8ab9e8c11ac17d57 + name: 'Interface discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.IF.NAME},1.3.6.1.4.1.890.1.5.8.46.23.1.1.3,{#ZYXEL.IF.LINKUPTYPE},1.3.6.1.4.1.890.1.5.8.46.23.1.1.5]' + key: zyxel.4728f.net.if.discovery + delay: 1h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.IF.LINKUPTYPE}' + value: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + formulaid: C + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + item_prototypes: + - uuid: 36f7fdbfa4164677ad91351be394f050 + name: 'Port {#SNMPINDEX}: Administrative status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.adminstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The desired state of the interface. The + testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL XGS-4728F port admin status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: dbc94a6eabd64eefbe97f57f8831e834 + name: 'Port {#SNMPINDEX}: Interface name' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.descr[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: IF-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 840096d5a418425c851ea7d236b7e34e + name: 'Port {#SNMPINDEX}: Link speed' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + An estimate of the interface's current bandwidth in bits per second + preprocessing: + - type: MULTIPLIER + parameters: + - '1000000' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 0105dea3226d46f8868aa07aa3f416a2 + name: 'Port {#SNMPINDEX}: Incoming broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.9.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.in.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a broadcast + address at this sub-layer. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: de7b202e7240422dbdbc40e78689e6fe + name: 'Port {#SNMPINDEX}: Incoming multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.in.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were addressed to a multicast + address at this sub-layer. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 075b04bdaff54a2cafc1b177e59df3be + name: 'Port {#SNMPINDEX}: Incoming traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.in.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets received on the interface, + including framing characters. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: c2a8e3985ed1414789b1bfe226de6d37 + name: 'Port {#SNMPINDEX}: Incoming unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.in.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The number of packets, delivered by this sub-layer to a + higher (sub-)layer, which were not addressed to a multicast + or broadcast address at this sub-layer + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 72f7ee1e5099452aa4804d988adfb7a5 + name: 'Port {#SNMPINDEX}: Incoming utilization' + type: CALCULATED + key: 'zyxel.4728f.net.if.in.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.4728f.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: db488317d10e43eea21ecaa74d7a58dc + name: 'Port {#SNMPINDEX}: Link type' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.23.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.link_type[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-XGS4728F-MIB + Physical connection type + valuemap: + name: 'ZYXEL XGS-4728F operational mode port link up type' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 8877747043f94216b92ef7f097925d8e + name: 'Port {#SNMPINDEX}: Interface description' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.23.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.name[{#SNMPINDEX}]' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-XGS4728F-MIB + A textual string containing information about the interface + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b091be1b0a8f415b82d73b3537cf6187 + name: 'Port {#SNMPINDEX}: Operational status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.operstatus[{#SNMPINDEX}]' + description: | + MIB: IF-MIB + The current operational state of the interface. + The testing(3) state indicates that no operational + packets can be passed. + valuemap: + name: 'ZYXEL XGS-4728F port operational status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 3f3ce5111d47490382cb0c18e2d36f77 + expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.net.if.operstatus[{#SNMPINDEX}],#2)' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.net.if.operstatus[{#SNMPINDEX}])<>2' + name: 'ZYXEL: Port {#SNMPINDEX}: Link down' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: | + This trigger expression works as follows: + 1. It can be triggered if the operations status is down. + 2. `{ $IFCONTROL:"{#IFNAME}" }=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down. + 3. The trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.) + + WARNING: if closed manually - it will not fire again on the next poll, because of .diff. + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ad7378144b254962aad0a73fb151e097 + name: 'Port {#SNMPINDEX}: Outgoing broadcast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.13.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.out.broadcastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + broadcast address at this sub-layer, including those that + were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 67b776b7f51e4b24bad3b616979d7f98 + name: 'Port {#SNMPINDEX}: Outgoing multicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.12.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.out.multicastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were addressed to a + multicast address at this sub-layer, including those that + were discarded or not sent. For a MAC layer protocol, this + includes both Group and Functional addresses. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 4afef8d3601646f1bfc81090b090c11c + name: 'Port {#SNMPINDEX}: Outgoing traffic' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.out.traffic[{#SNMPINDEX}]' + units: bps + description: | + MIB: IF-MIB + The total number of octets transmitted out of the + interface, including framing characters. This object is a + 64-bit version of ifOutOctets. + preprocessing: + - type: MULTIPLIER + parameters: + - '8' + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: ba1b314aacd0449fa0c9730fdb8ee3f9 + name: 'Port {#SNMPINDEX}: Outgoing unicast packages' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.out.ucastpkts[{#SNMPINDEX}]' + units: packets/s + description: | + MIB: IF-MIB + The total number of packets that higher-level protocols + requested be transmitted, and which were not addressed to a + multicast or broadcast address at this sub-layer, including + those that were discarded or not sent. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 7941df5f5b884b33bcda9951e4b0158d + name: 'Port {#SNMPINDEX}: Outgoing utilization' + type: CALCULATED + key: 'zyxel.4728f.net.if.out.util[{#SNMPINDEX}]' + value_type: FLOAT + units: '%' + params: 'last(//zyxel.4728f.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' + description: 'Interface utilization percentage' + preprocessing: + - type: IN_RANGE + parameters: + - '0' + - '100' + error_handler: DISCARD_VALUE + - type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: f56f1c0cf5d34435895ea489eb71b84a + name: 'Port {#SNMPINDEX}: Speed Duplex' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.23.1.1.1.{#SNMPINDEX}]' + key: 'zyxel.4728f.net.if.speed_duplex[{#SNMPINDEX}]' + description: | + MIB: ZYXEL-XGS4728F-MIB + Transmission mode + valuemap: + name: 'ZYXEL XGS-4728F operational mode port speed duplex' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + graph_prototypes: + - uuid: 18c2bd830caa49308459d64ef85cfc71 + name: 'ZYXEL XGS-4728F: Port {#SNMPINDEX}: Packets traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.net.if.in.ucastpkts[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.net.if.out.ucastpkts[{#SNMPINDEX}]' + - sortorder: '2' + color: 00611C + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.net.if.in.multicastpkts[{#SNMPINDEX}]' + - sortorder: '3' + color: F7941D + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.net.if.out.multicastpkts[{#SNMPINDEX}]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.net.if.in.broadcastpkts[{#SNMPINDEX}]' + - sortorder: '5' + color: 6C59DC + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.net.if.out.broadcastpkts[{#SNMPINDEX}]' + - uuid: a8c07b7801d64c24bfedf10ea193f697 + name: 'ZYXEL XGS-4728F: Port {#SNMPINDEX}: Traffic' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.net.if.in.traffic[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.net.if.out.traffic[{#SNMPINDEX}]' + - uuid: 37e8454c3fa04f88be36d875638110c6 + name: 'ZYXEL XGS-4728F: Port {#SNMPINDEX}: Utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 199C0D + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.net.if.out.util[{#SNMPINDEX}]' + - sortorder: '1' + color: F63100 + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.net.if.in.util[{#SNMPINDEX}]' + overrides: + - name: 'Don''t create triggers for matching interface' + step: '1' + filter: + conditions: + - macro: '{#ZYXEL.IF.NAME}' + value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: A + operations: + - operationobject: TRIGGER_PROTOTYPE + operator: REGEXP + value: '.*' + discover: NO_DISCOVER + - uuid: 6e0b5b991865448780e042d98168d72c + name: 'SFP with DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.WARN.MAX},1.3.6.1.4.1.890.1.5.8.46.117.2.1.5,{#ZYXEL.SFP.WARN.MIN},1.3.6.1.4.1.890.1.5.8.46.117.2.1.6,{#ZYXEL.SFP.DESCRIPTION},1.3.6.1.4.1.890.1.5.8.46.117.2.1.8]' + key: zyxel.4728f.sfp.ddm.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.DESCRIPTION}' + value: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP DDM module discovery.' + item_prototypes: + - uuid: 0071554e36064f7ea40d680a0c310b27 + name: 'SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.117.2.1.7.{#SNMPINDEX}]' + key: 'zyxel.4728f.sfp.ddm[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: FLOAT + units: '!{#ZYXEL.SFP.UNIT}' + description: | + MIB: ZYXEL-XGS4728F-MIB + Transceiver module DDM data ({#ZYXEL.SFP.DESCRIPTION}). + preprocessing: + - type: MULTIPLIER + parameters: + - '0.01' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 6h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 409c52cfed074352810bacfd52aa89f0 + expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.sfp.ddm[{#SNMPINDEX}]) > {#ZYXEL.SFP.WARN.MAX}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: High {#ZYXEL.SFP.DESCRIPTION} (over {#ZYXEL.SFP.WARN.MAX}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The upper threshold value of the parameter is exceeded' + tags: + - tag: scope + value: notice + - uuid: a2c40df40a334f6da00a438eb70f8374 + expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.sfp.ddm[{#SNMPINDEX}]) < {#ZYXEL.SFP.WARN.MIN}' + name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION}' + event_name: 'ZYXEL: SFP {#ZYXEL.SFP.PORT}: Low {#ZYXEL.SFP.DESCRIPTION} (less than {#ZYXEL.SFP.WARN.MIN}{#ZYXEL.SFP.UNIT})' + priority: WARNING + description: 'The parameter values are less than the lower threshold' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 109ff7d258524b82bdbf4662e612795b + name: 'ZYXEL XGS-4728F: SFP {#ZYXEL.SFP.PORT}: {#ZYXEL.SFP.DESCRIPTION}' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.sfp.ddm[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = { + 'Temperature': '°C', + 'Voltage': 'V', + 'TxBias': 'mA', + 'TxPower': 'dbm', + 'RxPower': 'dbm' + }; + var outArr = []; + inArray.forEach(function (item, i, arr) { + item['{#ZYXEL.SFP.PORT}'] = item['{#SNMPINDEX}'].split('.')[0]; + item['{#ZYXEL.SFP.UNIT}'] = nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']] === undefined ? "" : nameMap[item['{#ZYXEL.SFP.DESCRIPTION}']]; + item['{#ZYXEL.SFP.WARN.MAX}'] /= 100; + item['{#ZYXEL.SFP.WARN.MIN}'] /= 100; + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: f8112c4b07ed4bb1b918f58dbb9ec294 + name: 'SFP without DDM discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.SFP.STATUS},1.3.6.1.4.1.890.1.5.8.46.117.1.1.2]' + key: zyxel.4728f.sfp.discovery + delay: 12h + filter: + evaltype: AND + conditions: + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + formulaid: A + - macro: '{#ZYXEL.SFP.STATUS}' + value: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'SFP module discovery.' + item_prototypes: + - uuid: 59c000d4324d4e8ca07203843bbea7b5 + name: 'SFP {#SNMPINDEX}: Date code' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.117.1.1.7.{#SNMPINDEX}]' + key: 'zyxel.4728f.sfp.datecode[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-XGS4728F-MIB + Transceiver module vendor's manufacturing date code. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: c585762763604f83a9d14b7df21188ee + name: 'SFP {#SNMPINDEX}: Part number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.117.1.1.4.{#SNMPINDEX}]' + key: 'zyxel.4728f.sfp.part[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-XGS4728F-MIB + Part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 33395170c38043828cedbfbedea959cc + name: 'SFP {#SNMPINDEX}: Revision' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.117.1.1.6.{#SNMPINDEX}]' + key: 'zyxel.4728f.sfp.revision[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-XGS4728F-MIB + Revision level for part number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 175f4200563549a0ae1ebaed18eeb636 + name: 'SFP {#SNMPINDEX}: Serial number' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.117.1.1.5.{#SNMPINDEX}]' + key: 'zyxel.4728f.sfp.serialnumber[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-XGS4728F-MIB + Serial number provided by transceiver module vendor. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + trigger_prototypes: + - uuid: 632be557ffed439e98425eaa59361e50 + expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.sfp.serialnumber[{#SNMPINDEX}],#1)<>last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.sfp.serialnumber[{#SNMPINDEX}],#2) and length(last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.sfp.serialnumber[{#SNMPINDEX}]))>0' + name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced' + event_name: 'ZYXEL: SFP {#SNMPINDEX} has been replaced (new serial number received)' + priority: INFO + description: 'SFP {#SNMPINDEX} serial number has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5d3d0c6135924b2088b2f97d30a743cb + name: 'SFP {#SNMPINDEX}: Status' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.117.1.1.2.{#SNMPINDEX}]' + key: 'zyxel.4728f.sfp.status[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + description: | + MIB: ZYXEL-XGS4728F-MIB + Transceiver module status. + valuemap: + name: 'ZYXEL XGS-4728F SFP status' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: b16f7fe769a74ea99aafaa60a97d286c + name: 'SFP {#SNMPINDEX}: Transceiver' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.117.1.1.8.{#SNMPINDEX}]' + key: 'zyxel.4728f.sfp.transceiver[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-XGS4728F-MIB + Transceiver module type names. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: 5abb9b467e934873808b4b49bdd74f5f + name: 'SFP {#SNMPINDEX}: Vendor' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.117.1.1.3.{#SNMPINDEX}]' + key: 'zyxel.4728f.sfp.vendor[{#SNMPINDEX}]' + delay: '{$ZYXEL.LLD.SFP.UPDATE}' + value_type: CHAR + trends: '0' + description: | + MIB: ZYXEL-XGS4728F-MIB + Transceiver module vendor name. + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: network + - tag: description + value: '{#ZYXEL.IF.NAME}' + - tag: interface + value: '{#SNMPINDEX}' + - uuid: fa0881c21d834db1b421ae727254bff9 + name: 'Temperature discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.TEMP.THRESH.HIGH},1.3.6.1.4.1.890.1.5.8.46.9.2.1.5]' + key: zyxel.4728f.temp.discovery + delay: 1h + description: | + An entry in tempTable. + Index of temperature unit. 1:MAC, 2:CPU, 3:PHY + item_prototypes: + - uuid: db030cd64cdc471cb5298ceb9973155a + name: 'Temperature "{#ZYXEL.TEMP.ID}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.9.2.1.2.{#SNMPINDEX}]' + key: 'zyxel.4728f.temp[{#SNMPINDEX}]' + units: '!°C' + description: | + MIB: ZYXEL-XGS4728F-MIB + The current temperature measured at this sensor + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: temperature + trigger_prototypes: + - uuid: 6181f094ae4c4cf4ae4b2e198e2f9b6e + expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.temp[{#SNMPINDEX}])>{#ZYXEL.TEMP.THRESH.HIGH}' + name: 'ZYXEL: Temperature {#ZYXEL.TEMP.ID} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the temperature' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 1068300241bb430b8c51048303922e55 + name: 'ZYXEL XGS-4728F: Temperature "{#ZYXEL.TEMP.ID}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.temp[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var nameMap = {"1":"MAC", "2":"CPU", "3":"PHY"}; + var outArr = []; + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.TEMP.ID}"] = nameMap[item["{#SNMPINDEX}"]] + outArr.push(item) + }); + return JSON.stringify(outArr); + - uuid: 1fa3870c99d6408dbf78c7f2ad87341d + name: 'Voltage discovery' + type: SNMP_AGENT + snmp_oid: 'discovery[{#ZYXEL.VOLT.THRESH.LOW},1.3.6.1.4.1.890.1.5.8.46.9.3.1.6,{#ZYXEL.VOLT.NOMINAL},1.3.6.1.4.1.890.1.5.8.46.9.3.1.5]' + key: zyxel.4728f.volt.discovery + delay: 1h + description: 'An entry in voltageTable.' + item_prototypes: + - uuid: 2999674cc176471887c1878b881b8422 + name: 'Nominal "{#ZYXEL.VOLT.NOMINAL}"' + type: SNMP_AGENT + snmp_oid: 'get[1.3.6.1.4.1.890.1.5.8.46.9.3.1.2.{#SNMPINDEX}]' + key: 'zyxel.4728f.volt[{#SNMPINDEX}]' + value_type: FLOAT + units: V + description: | + MIB: ZYXEL-XGS4728F-MIB + The current voltage reading. + preprocessing: + - type: MULTIPLIER + parameters: + - '0.001' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: sensor + - tag: component + value: voltage + trigger_prototypes: + - uuid: 631202a132dc44afa90b0537f9957ee1 + expression: 'last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.volt[{#SNMPINDEX}])<{#ZYXEL.VOLT.THRESH.LOW}' + name: 'ZYXEL: Voltage {#ZYXEL.VOLT.NOMINAL} is in critical state' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Please check the power supply' + tags: + - tag: scope + value: notice + graph_prototypes: + - uuid: 560c37d174e741a6a2590d17574123ed + name: 'ZYXEL XGS-4728F: Nominal "{#ZYXEL.VOLT.NOMINAL}"' + graph_items: + - color: 199C0D + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: 'zyxel.4728f.volt[{#SNMPINDEX}]' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var inArray = JSON.parse(value); + var outArr = [] + inArray.forEach(function(item, i, arr) { + item["{#ZYXEL.VOLT.NOMINAL}"] = "+" + item["{#ZYXEL.VOLT.NOMINAL}"] / 1000 + "V"; + item["{#ZYXEL.VOLT.THRESH.LOW}"] = item["{#ZYXEL.VOLT.THRESH.LOW}"] / 1000; + outArr.push(item) + }); + return JSON.stringify(outArr); + tags: + - tag: class + value: network + - tag: target + value: switch + - tag: target + value: xgs-4728f + - tag: target + value: zyxel + macros: + - macro: '{$CPU.UTIL.CRIT}' + value: '90' + - macro: '{$MEMORY.UTIL.MAX}' + value: '90' + - macro: '{$SNMP.TIMEOUT}' + value: 5m + description: 'The time interval for SNMP agent availability trigger expression.' + - macro: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Triggers will be created only for interfaces whose description contains the value of this macro' + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.MATCHES}' + value: 1|2 + description: | + Filter of discoverable link types. + 0 - Down link + 1 - Cooper link + 2 - Fiber link + - macro: '{$ZYXEL.LLD.FILTER.IF.LINKUPTYPE.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by link types.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.MATCHES}' + value: '.*' + description: 'Filter by discoverable interface names.' + - macro: '{$ZYXEL.LLD.FILTER.IF.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered interfaces by name.' + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.MATCHES}' + value: 1|2 + description: | + Filter of discoverable status. + 0 - OK with DDM + 1 - OK without DDM + 2 - nonoperational + - macro: '{$ZYXEL.LLD.FILTER.SFP.STATUS.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered by status.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.MATCHES}' + value: '.*' + description: 'Filter by discoverable SFP modules name.' + - macro: '{$ZYXEL.LLD.FILTER.SFPDDM.DESC.NOT_MATCHES}' + value: N/A + description: 'Filter to exclude discovered SFP modules by name.' + - macro: '{$ZYXEL.LLD.SFP.UPDATE}' + value: 10m + description: 'Receiving data from the SFP module is slow, we do not recommend setting the interval less than 10 minutes.' + dashboards: + - uuid: d3ba728ed3e142619d86208285ce16af + name: 'Network interfaces' + pages: + - widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'ZYXEL XGS-4728F by SNMP' + name: 'ZYXEL XGS-4728F: Port {#SNMPINDEX}: Traffic' + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: rows + value: '5' + valuemaps: + - uuid: a7acf3b0ac684d4e80c560bcd3dd2dc6 + name: 'SNMP available' + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: 042ccfb45b0a4ef7bc8842f731dd8c4f + name: 'ZYXEL XGS-4728F operational mode port link up type' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Cooper + - value: '2' + newvalue: Fiber + - value: '3' + newvalue: XFP + - value: '4' + newvalue: CX4 + - uuid: d466ff32531d4eaea989c07aa5989d6b + name: 'ZYXEL XGS-4728F operational mode port speed duplex' + mappings: + - value: '0' + newvalue: auto + - value: '1' + newvalue: '10M half' + - value: '2' + newvalue: '10M full' + - value: '3' + newvalue: '100M half' + - value: '4' + newvalue: '100M full' + - value: '5' + newvalue: '1G full' + - uuid: 250f228ead4b433f987d42014255a617 + name: 'ZYXEL XGS-4728F port admin status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - uuid: ed13145eeefd44dda083716080725e60 + name: 'ZYXEL XGS-4728F port operational status' + mappings: + - value: '1' + newvalue: Up + - value: '2' + newvalue: Down + - value: '3' + newvalue: Testing + - value: '4' + newvalue: Unknown + - value: '5' + newvalue: Dormant + - value: '6' + newvalue: NotPresent + - value: '7' + newvalue: lowerLayerDown + - uuid: 49b0a85b7da947ab91e47ed2f2123907 + name: 'ZYXEL XGS-4728F SFP status' + mappings: + - value: '1' + newvalue: 'OK with DDM' + - value: '2' + newvalue: 'OK without DDM' + - value: '3' + newvalue: nonoperational + triggers: + - uuid: 36b9a7d3d3fb45f782a5ea05de6816f9 + expression: '(last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.hw.uptime)>0 and last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.hw.uptime)<10m) or (last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.hw.uptime)=0 and last(/ZYXEL XGS-4728F by SNMP/zyxel.4728f.net.uptime)<10m)' + name: 'ZYXEL: Host has been restarted' + event_name: 'ZYXEL: {HOST.NAME} has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + graphs: + - uuid: dfd68fb23bf349068005997de6b0515a + name: 'ZYXEL XGS-4728F: CPU utilization' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 199C0D + item: + host: 'ZYXEL XGS-4728F by SNMP' + key: zyxel.4728f.cpuusage diff --git a/Zabbix_agent.yaml b/Zabbix_agent.yaml new file mode 100644 index 0000000..4c03647 --- /dev/null +++ b/Zabbix_agent.yaml @@ -0,0 +1,154 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 8aa4557f6c3f4aadbc03447fca3af9f6 + template: 'Zabbix agent' + name: 'Zabbix agent' + description: | + Use this template for agents reachable from Zabbix server/proxy (passive mode). + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-0 + groups: + - name: Templates/Applications + items: + - uuid: f46c6142cf434df1b6abe9334bf6c84c + name: 'Host name of Zabbix agent running' + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 37a952edc12f47d6ac6f3ca04eb41326 + name: 'Zabbix agent ping' + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + - uuid: 3a6af03a083b4366bd1d4c6ccf06ca88 + name: 'Version of Zabbix agent running' + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: 49708b126e3844b898d2625f77c0030c + name: 'Zabbix agent availability' + type: INTERNAL + key: 'zabbix[host,agent,available]' + description: 'Used for monitoring the availability status of the agent.' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: 6767f9c764bb42dfa961baacf879f45c + expression: 'max(/Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0' + name: 'Zabbix agent is not available' + event_name: 'Zabbix agent is not available (for {$AGENT.TIMEOUT})' + priority: AVERAGE + description: 'For passive agents only, host availability is used with `{$AGENT.TIMEOUT}` as a time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + tags: + - tag: class + value: software + - tag: target + value: zabbix-agent + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 3m + description: 'Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode).' + dashboards: + - uuid: 9dbe822be2c0418592b33289b820256f + name: 'Zabbix agent: Overview' + pages: + - name: Main + widgets: + - type: item + name: 'Agent availability' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix agent' + key: agent.ping + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: Version + x: '18' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix agent' + key: agent.version + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix agent' + key: agent.ping + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: source_type + value: '1' + valuemaps: + - uuid: 0d5e922550954e6bad89b22f1d9d0c65 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: e5a39fd666b04b70b6eea53e2373b564 + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up diff --git a/Zabbix_agent_active.yaml b/Zabbix_agent_active.yaml new file mode 100644 index 0000000..b26329e --- /dev/null +++ b/Zabbix_agent_active.yaml @@ -0,0 +1,177 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 650bec3f2f364a478b82317396949459 + template: 'Zabbix agent active' + name: 'Zabbix agent active' + description: | + Use this template instead of 'Zabbix agent' for agents running in active mode only. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-0 + groups: + - name: Templates/Applications + items: + - uuid: ca27c17d8ca34643a7db8b99d2cc3025 + name: 'Host name of Zabbix agent running' + type: ZABBIX_ACTIVE + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 0f86ec6cde2249f7946c678f9fd2665a + name: 'Zabbix agent ping' + type: ZABBIX_ACTIVE + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + triggers: + - uuid: 6bbb74c522d44baea8c6ceb666423da2 + expression: 'nodata(/Zabbix agent active/agent.ping,{$AGENT.NODATA_TIMEOUT})=1' + name: 'Zabbix agent is not available' + event_name: 'Zabbix agent is not available (or nodata for {$AGENT.NODATA_TIMEOUT})' + priority: AVERAGE + description: 'For active agents, `nodata()` with `agent.ping` is used with `{$AGENT.NODATA_TIMEOUT}` as a time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 41fb0f76fa1d464f8ab67f744fc29e8b + name: 'Version of Zabbix agent running' + type: ZABBIX_ACTIVE + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: 0fd83c56dce244738607cd6585a6acb3 + name: 'Active agent availability' + type: INTERNAL + key: 'zabbix[host,active_agent,available]' + description: | + Availability of active checks on the host. The value of this item corresponds to availability icons in the host list. + Possible values: + 0 - unknown + 1 - available + 2 - not available + valuemap: + name: zabbix.host.active_agent.available + tags: + - tag: component + value: health + - tag: component + value: network + triggers: + - uuid: e91c556b0ff64292b9b9b5709a5d74b3 + expression: 'min(/Zabbix agent active/zabbix[host,active_agent,available],{$AGENT.TIMEOUT})=2' + name: 'Active checks are not available' + opdata: 'Current state: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Active checks are considered unavailable. Agent has not sent a heartbeat for a prolonged time.' + tags: + - tag: scope + value: availability + tags: + - tag: class + value: software + - tag: target + value: zabbix-agent + macros: + - macro: '{$AGENT.NODATA_TIMEOUT}' + value: 30m + description: 'No data timeout for active agents. Consider to keep it relatively high.' + - macro: '{$AGENT.TIMEOUT}' + value: 5m + description: 'Timeout after which agent is considered unavailable.' + dashboards: + - uuid: 27dea14380314e67906525ad3d2a995a + name: 'Zabbix agent active: Overview' + pages: + - name: Main + widgets: + - type: item + name: 'Agent availability' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix agent active' + key: agent.ping + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: Version + x: '18' + width: '18' + height: '3' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix agent active' + key: agent.version + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: graph + x: '36' + width: '36' + height: '5' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix agent active' + key: agent.ping + - type: STRING + name: reference + value: AAAAA + - type: INTEGER + name: source_type + value: '1' + valuemaps: + - uuid: 9f93aabb08794395b1c62cf784fc58c3 + name: zabbix.host.active_agent.available + mappings: + - value: '0' + newvalue: unknown + - value: '1' + newvalue: available + - value: '2' + newvalue: 'not available' + - uuid: 9bf3eef7e8d8402ca6f826b377ea2db6 + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up diff --git a/Zabbix_proxy_health.yaml b/Zabbix_proxy_health.yaml new file mode 100644 index 0000000..01a58e9 --- /dev/null +++ b/Zabbix_proxy_health.yaml @@ -0,0 +1,2081 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: dd114bf0fb2f46bc84840f1bb24e2b23 + template: 'Zabbix proxy health' + name: 'Zabbix proxy health' + description: | + This template is designed to monitor internal Zabbix metrics on the local Zabbix proxy. + + Link this template to the local Zabbix proxy host. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: ca8a1cafec6e44a4b31f9ec5a6ed00cb + name: 'Discovery queue' + type: INTERNAL + key: 'zabbix[discovery_queue]' + description: 'The count of values enqueued in the discovery queue.' + tags: + - tag: component + value: system + - uuid: 04c6d40c682d49c996f0ec986fb6b73d + name: 'Zabbix preprocessing' + type: INTERNAL + key: 'zabbix[preprocessing]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix server''s preprocessing statistics.' + tags: + - tag: component + value: raw + - uuid: 0230306272c24858b49243ef1c61e2ec + name: 'Preprocessing queue' + type: DEPENDENT + key: 'zabbix[preprocessing_queue]' + delay: '0' + description: 'The number of values enqueued in the preprocessing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.queue + master_item: + key: 'zabbix[preprocessing]' + tags: + - tag: component + value: system + - uuid: 2383d1301bda41fcaff369972b75f244 + name: 'Preprocessing direct throughput' + type: DEPENDENT + key: 'zabbix[preprocessing_throughput_direct]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the direct throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.direct.size + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[preprocessing]' + tags: + - tag: component + value: system + - uuid: c0a8e2338288411f88078afe0874a296 + name: 'Preprocessing queued throughput' + type: DEPENDENT + key: 'zabbix[preprocessing_throughput_queued]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the queued throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.queued.size + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[preprocessing]' + tags: + - tag: component + value: system + - uuid: 7f96b7f3a93b48f086568331860b7705 + name: 'Preprocessing direct VPS' + type: DEPENDENT + key: 'zabbix[preprocessing_vps_direct]' + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of direct preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.direct.count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[preprocessing]' + tags: + - tag: component + value: system + - uuid: 415eebc4407b4c83935b2ec6d0d9b4a3 + name: 'Preprocessing queued VPS' + type: DEPENDENT + key: 'zabbix[preprocessing_vps_queued]' + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of queued preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.queued.count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[preprocessing]' + tags: + - tag: component + value: system + - uuid: 998df832cf58436ea7707331338d5f3b + name: 'Utilization of agent poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,agent poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the agent poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 5abbe55bf614492d982e4af0f11b01e2 + expression: 'avg(/Zabbix proxy health/zabbix[process,agent poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,agent poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"agent poller"}' + name: 'Zabbix proxy: Utilization of agent poller processes is high' + event_name: 'Zabbix proxy: Utilization of agent poller processes over {$ZABBIX.PROXY.UTIL.MAX:"agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 5131f979c17a4346a95f8ba77e7133a4 + name: 'Utilization of availability manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,availability manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the availability manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 5a8375a8eee642f2940ed813ee062336 + expression: 'avg(/Zabbix proxy health/zabbix[process,availability manager,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"availability manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,availability manager,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"availability manager"}' + name: 'Zabbix proxy: Utilization of availability manager processes is high' + event_name: 'Zabbix proxy: Utilization of availability manager processes over {$ZABBIX.PROXY.UTIL.MAX:"availability manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the availability manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 3ec67d79691b432c8a357fedfec77e6d + name: 'Utilization of browser poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,browser poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the browser poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 5cdced4b0c064f62802c360fa84408db + expression: 'avg(/Zabbix proxy health/zabbix[process,browser poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"browser poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,browser poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"browser poller"}' + name: 'Zabbix proxy: Utilization of browser poller processes is high' + event_name: 'Zabbix proxy: Utilization of browser poller processes over {$ZABBIX.PROXY.UTIL.MAX:"browser poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the browser poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 3d1bfa64a447427da0b463c3617b212e + name: 'Utilization of configuration syncer internal processes, in %' + type: INTERNAL + key: 'zabbix[process,configuration syncer,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 27eb861e2e6f43f69f17b8ba65bfedcc + expression: 'avg(/Zabbix proxy health/zabbix[process,configuration syncer,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"configuration syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,configuration syncer,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"configuration syncer"}' + name: 'Zabbix proxy: Utilization of configuration syncer processes is high' + event_name: 'Zabbix proxy: Utilization of configuration syncer processes over {$ZABBIX.PROXY.UTIL.MAX:"configuration syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 69eefd6aba164d71b0a2b8d2df06e9a3 + name: 'Utilization of data sender internal processes, in %' + type: INTERNAL + key: 'zabbix[process,data sender,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the data sender processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: e8fd57784b9e4289aa4515cfa7c6c4ad + expression: 'avg(/Zabbix proxy health/zabbix[process,data sender,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"data sender"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,data sender,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"data sender"}' + name: 'Zabbix proxy: Utilization of data sender processes is high' + event_name: 'Zabbix proxy: Utilization of data sender processes over {$ZABBIX.PROXY.UTIL.MAX:"data sender"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the data sender, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 930bf9db6c754a17ab5026961d6369ba + name: 'Utilization of discovery manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,discovery manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: e1dd2821756d489cb5443c924e57c356 + expression: 'avg(/Zabbix proxy health/zabbix[process,discovery manager,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"discovery manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,discovery manager,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"discovery manager"}' + name: 'Zabbix proxy: Utilization of discovery manager processes is high' + event_name: 'Zabbix proxy: Utilization of discovery manager processes over {$ZABBIX.PROXY.UTIL.MAX:"discovery manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: eeee7e927a854b61b166a13b8eb98f28 + name: 'Utilization of discovery worker internal processes, in %' + type: INTERNAL + key: 'zabbix[process,discovery worker,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery worker processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: ff023c3fce664dff9fdcb3f8724f4832 + expression: 'avg(/Zabbix proxy health/zabbix[process,discovery worker,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"discovery worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,discovery worker,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"discovery worker"}' + name: 'Zabbix proxy: Utilization of discovery worker processes is high' + event_name: 'Zabbix proxy: Utilization of discovery worker processes over {$ZABBIX.PROXY.UTIL.MAX:"discovery worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 7dde8cd03e5043a2bd484f7213a5f112 + name: 'Utilization of history syncer internal processes, in %' + type: INTERNAL + key: 'zabbix[process,history syncer,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history syncer processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 52fb303ec9164aa28821117f3a559fe3 + expression: 'avg(/Zabbix proxy health/zabbix[process,history syncer,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"history syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,history syncer,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"history syncer"}' + name: 'Zabbix proxy: Utilization of history syncer processes is high' + event_name: 'Zabbix proxy: Utilization of history syncer processes over {$ZABBIX.PROXY.UTIL.MAX:"history syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 31f0355f4d7c4de6b0d6f206d1ca9fa3 + name: 'Utilization of housekeeper internal processes, in %' + type: INTERNAL + key: 'zabbix[process,housekeeper,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the housekeeper processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: b6cbede80a4847ed94a0ba818b7ca261 + expression: 'avg(/Zabbix proxy health/zabbix[process,housekeeper,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,housekeeper,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"housekeeper"}' + name: 'Zabbix proxy: Utilization of housekeeper processes is high' + event_name: 'Zabbix proxy: Utilization of housekeeper processes over {$ZABBIX.PROXY.UTIL.MAX:"housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 584c5ee90cff40e2befc38061ce8e7e7 + name: 'Utilization of http agent poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,http agent poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http agent poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: a5d7a54efea843c495795d14bbff166b + expression: 'avg(/Zabbix proxy health/zabbix[process,http agent poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"http agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,http agent poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"http agent poller"}' + name: 'Zabbix proxy: Utilization of http agent poller processes is high' + event_name: 'Zabbix proxy: Utilization of http agent poller processes over {$ZABBIX.PROXY.UTIL.MAX:"http agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 782b11dbe3ce47e3b9098c43d83057ad + name: 'Utilization of http poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,http poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: e93e5a3dd27f4d378bbfe2c8e5b009e7 + expression: 'avg(/Zabbix proxy health/zabbix[process,http poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"http poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,http poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"http poller"}' + name: 'Zabbix proxy: Utilization of http poller processes is high' + event_name: 'Zabbix proxy: Utilization of http poller processes over {$ZABBIX.PROXY.UTIL.MAX:"http poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9b899ab317b447d1a82d1136e0a2ff6f + name: 'Utilization of icmp pinger data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,icmp pinger,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the icmp pinger processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: d514f4a08bcd4fe2b696015a74ffafcf + expression: 'avg(/Zabbix proxy health/zabbix[process,icmp pinger,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"icmp pinger"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,icmp pinger,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"icmp pinger"}' + name: 'Zabbix proxy: Utilization of icmp pinger processes is high' + event_name: 'Zabbix proxy: Utilization of icmp pinger processes over {$ZABBIX.PROXY.UTIL.MAX:"icmp pinger"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the icmp pinger, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a1278ad64af9401a834cd09b0c2f5766 + name: 'Utilization of internal poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,internal poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the internal poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 3bc0e6ab1a9e470682d049840df4ce5a + expression: 'avg(/Zabbix proxy health/zabbix[process,internal poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"internal poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,internal poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"internal poller"}' + name: 'Zabbix proxy: Utilization of internal poller processes is high' + event_name: 'Zabbix proxy: Utilization of internal poller processes over {$ZABBIX.PROXY.UTIL.MAX:"internal poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the internal poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 52b3123dfef94d8bba1b1a13314a9d4f + name: 'Utilization of ipmi manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,ipmi manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 751e3000367f42d9af0d4418f3472a91 + expression: 'avg(/Zabbix proxy health/zabbix[process,ipmi manager,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"ipmi manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,ipmi manager,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"ipmi manager"}' + name: 'Zabbix proxy: Utilization of ipmi manager processes is high' + event_name: 'Zabbix proxy: Utilization of ipmi manager processes over {$ZABBIX.PROXY.UTIL.MAX:"ipmi manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 7cfb2f1504dd4b0aaac804b132d49bc5 + name: 'Utilization of ipmi poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,ipmi poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 99ce9f0ed6204860b7b943e9e3a5fbc0 + expression: 'avg(/Zabbix proxy health/zabbix[process,ipmi poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"ipmi poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,ipmi poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"ipmi poller"}' + name: 'Zabbix proxy: Utilization of ipmi poller processes is high' + event_name: 'Zabbix proxy: Utilization of ipmi poller processes over {$ZABBIX.PROXY.UTIL.MAX:"ipmi poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 02214c0c38394bef8d648369584ae30b + name: 'Utilization of java poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,java poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the java poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 5b8cc59c21b145739e346479124c48f5 + expression: 'avg(/Zabbix proxy health/zabbix[process,java poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"java poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,java poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"java poller"}' + name: 'Zabbix proxy: Utilization of java poller processes is high' + event_name: 'Zabbix proxy: Utilization of java poller processes over {$ZABBIX.PROXY.UTIL.MAX:"java poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the java poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 06bdbdcfdbc04c24ad387b256e430801 + name: 'Utilization of ODBC poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,odbc poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ODBC poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 3177430235ac4eeaa23b8c39987989cc + expression: 'avg(/Zabbix proxy health/zabbix[process,odbc poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"ODBC poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,odbc poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"ODBC poller"}' + name: 'Zabbix proxy: Utilization of ODBC poller processes is high' + event_name: 'Zabbix proxy: Utilization of ODBC poller processes over {$ZABBIX.PROXY.UTIL.MAX:"ODBC poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ODBC poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 334398ad893e4146bc1b9370eef9df59 + name: 'Utilization of poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 3f93b378367e48f89abe304ccb624047 + expression: 'avg(/Zabbix proxy health/zabbix[process,poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"poller"}' + name: 'Zabbix proxy: Utilization of poller processes is high' + event_name: 'Zabbix proxy: Utilization of poller processes over {$ZABBIX.PROXY.UTIL.MAX:"poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 20705fe12d4c40a4a27306b66ec9a69d + name: 'Utilization of preprocessing manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,preprocessing manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 1ed29eb53708417a827adbdf4d8f145b + expression: 'avg(/Zabbix proxy health/zabbix[process,preprocessing manager,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"preprocessing manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,preprocessing manager,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"preprocessing manager"}' + name: 'Zabbix proxy: Utilization of preprocessing manager processes is high' + event_name: 'Zabbix proxy: Utilization of preprocessing manager processes over {$ZABBIX.PROXY.UTIL.MAX:"preprocessing manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9c7916375cf841fb8edaf383b93a0522 + name: 'Utilization of preprocessing worker internal processes, in %' + type: INTERNAL + key: 'zabbix[process,preprocessing worker,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing worker processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 22831f081149400a86cb18930de0cc20 + expression: 'avg(/Zabbix proxy health/zabbix[process,preprocessing worker,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"preprocessing worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,preprocessing worker,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"preprocessing worker"}' + name: 'Zabbix proxy: Utilization of preprocessing worker processes is high' + event_name: 'Zabbix proxy: Utilization of preprocessing worker processes over {$ZABBIX.PROXY.UTIL.MAX:"preprocessing worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 1fd488bbb4af450cb2b5e8c81b739f29 + name: 'Utilization of self-monitoring internal processes, in %' + type: INTERNAL + key: 'zabbix[process,self-monitoring,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the self-monitoring processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: cc9569f75bd44b5cbce4a4c556cd2949 + expression: 'avg(/Zabbix proxy health/zabbix[process,self-monitoring,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"self-monitoring"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,self-monitoring,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"self-monitoring"}' + name: 'Zabbix proxy: Utilization of self-monitoring processes is high' + event_name: 'Zabbix proxy: Utilization of self-monitoring processes over {$ZABBIX.PROXY.UTIL.MAX:"self-monitoring"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the self-monitoring, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 96b04e9605e04b26a280bc62da92879b + name: 'Utilization of snmp poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,snmp poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 811e08cb2382482db4054a4665e328d7 + expression: 'avg(/Zabbix proxy health/zabbix[process,snmp poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"snmp poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,snmp poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"snmp poller"}' + name: 'Zabbix proxy: Utilization of snmp poller processes is high' + event_name: 'Zabbix proxy: Utilization of snmp poller processes over {$ZABBIX.PROXY.UTIL.MAX:"snmp poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 77ab21500d734deea86938a1a90035e0 + name: 'Utilization of snmp trapper data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,snmp trapper,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp trapper processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: bb0a46beffbc457faea9362d4325c676 + expression: 'avg(/Zabbix proxy health/zabbix[process,snmp trapper,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"snmp trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,snmp trapper,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"snmp trapper"}' + name: 'Zabbix proxy: Utilization of snmp trapper processes is high' + event_name: 'Zabbix proxy: Utilization of snmp trapper processes over {$ZABBIX.PROXY.UTIL.MAX:"snmp trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 94d1aa1bff2d499f9e29dd9cafd04b9e + name: 'Utilization of task manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,task manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the task manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 9a42dad8cef04138944f3a1b8c797f4e + expression: 'avg(/Zabbix proxy health/zabbix[process,task manager,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"task manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,task manager,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"task manager"}' + name: 'Zabbix proxy: Utilization of task manager processes is high' + event_name: 'Zabbix proxy: Utilization of task manager processes over {$ZABBIX.PROXY.UTIL.MAX:"task manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the task manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8d99635291d14ae8a5ba7d794540bde2 + name: 'Utilization of trapper data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,trapper,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trapper processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 95ad6d80dc9c4f46a4e255d13f1b01a3 + expression: 'avg(/Zabbix proxy health/zabbix[process,trapper,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,trapper,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"trapper"}' + name: 'Zabbix proxy: Utilization of trapper processes is high' + event_name: 'Zabbix proxy: Utilization of trapper processes over {$ZABBIX.PROXY.UTIL.MAX:"trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 7b0f5b75d4854b84a7e1f51975732e25 + name: 'Utilization of unreachable poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,unreachable poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the unreachable poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: a28abd3f43f843af9646a1f8b1ca056a + expression: 'avg(/Zabbix proxy health/zabbix[process,unreachable poller,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"unreachable poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,unreachable poller,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"unreachable poller"}' + name: 'Zabbix proxy: Utilization of unreachable poller processes is high' + event_name: 'Zabbix proxy: Utilization of unreachable poller processes over {$ZABBIX.PROXY.UTIL.MAX:"unreachable poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the unreachable poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a5a7076a175c400f866a4d873d12e1e4 + name: 'Utilization of vmware collector data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,vmware collector,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the vmware collector processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: a1051b5ac8334125a40cb36a95605284 + expression: 'avg(/Zabbix proxy health/zabbix[process,vmware collector,avg,busy],10m)>{$ZABBIX.PROXY.UTIL.MAX:"vmware collector"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health/zabbix[process,vmware collector,avg,busy],10m)<{$ZABBIX.PROXY.UTIL.MIN:"vmware collector"}' + name: 'Zabbix proxy: Utilization of vmware collector processes is high' + event_name: 'Zabbix proxy: Utilization of vmware collector processes over {$ZABBIX.PROXY.UTIL.MAX:"vmware collector"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the vmware collector, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: e60cdba498a94c19955696f40d5e1b32 + name: 'Proxy memory buffer, % used' + type: INTERNAL + key: 'zabbix[proxy_buffer,buffer,pused]' + value_type: FLOAT + units: '%' + description: | + Statistics and availability of Zabbix proxy memory buffer usage statistics. Percentage of used proxy memory buffer. + Proxy memory buffer is used to store the new historical data and upload from it without accessing database. + tags: + - tag: component + value: system + triggers: + - uuid: 9b6cb370c00f4ebda91cdf247adc4780 + expression: 'max(/Zabbix proxy health/zabbix[proxy_buffer,buffer,pused],10m)>{$ZABBIX.PROXY.UTIL.MAX:"proxy buffer"}' + name: 'Zabbix proxy: Excessive proxy memory buffer usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"proxy buffer"}% used in the proxy memory buffer' + priority: AVERAGE + description: 'Consider increasing ProxyMemoryBufferSize in the zabbix_proxy.conf configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 1f5fbc277a574ce7a418439695f124ca + name: 'Proxy buffer, state changes' + type: INTERNAL + key: 'zabbix[proxy_buffer,state,changes]' + description: 'The number of state changes between disk/memory buffer modes since proxy start.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: c970e56eda504a4d89b051439dda9787 + name: 'Proxy buffer, state' + type: INTERNAL + key: 'zabbix[proxy_buffer,state,current]' + description: | + The current working state of proxy buffer where the new data is being stored. Possible values: + + 0 - disk (also returned when memory buffer is disabled); + 1 - memory. + valuemap: + name: 'Proxy buffer mode' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: system + - uuid: 3b66d42ec1fa4dc7a41750aacf6e68f3 + name: 'Values waiting to be sent' + type: INTERNAL + key: 'zabbix[proxy_history]' + description: 'The number of values in the proxy history table waiting to be sent to the server.' + tags: + - tag: component + value: system + - uuid: 2fa1c8d8fcb94d4c83cf4e291420a690 + name: 'Queue over 10 minutes' + type: INTERNAL + key: 'zabbix[queue,10m]' + description: 'The number of monitored items in the queue that are delayed by at least 10 minutes.' + tags: + - tag: component + value: system + triggers: + - uuid: f28d8231e0f2486bb68963719359789c + expression: 'min(/Zabbix proxy health/zabbix[queue,10m],10m)>100' + name: 'Zabbix proxy: More than 100 items have been missing data for over 10 minutes' + priority: WARNING + description: 'Indicates potential issues with network connectivity, agent failures, or unresponsive monitored resources that require attention.' + tags: + - tag: scope + value: performance + - uuid: cfbb623cca754fd49d4f606ab52f658d + name: Queue + type: INTERNAL + key: 'zabbix[queue]' + description: 'The number of monitored items in the queue that are delayed by at least 6 seconds.' + tags: + - tag: component + value: system + - uuid: 606d1d43812341db8260a233295a4a4e + name: 'Configuration cache, % used' + type: INTERNAL + key: 'zabbix[rcache,buffer,pused]' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix configuration cache. The percentage of used data buffer.' + tags: + - tag: component + value: system + triggers: + - uuid: 98ae52367f69476dbeb9c50e5f28b429 + expression: 'max(/Zabbix proxy health/zabbix[rcache,buffer,pused],10m)>{$ZABBIX.PROXY.UTIL.MAX:"configuration cache"}' + name: 'Zabbix proxy: Excessive configuration cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"configuration cache"}% used in the configuration cache' + priority: AVERAGE + description: 'Consider increasing `CacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: ef820395239d4a108980fe53017a89fc + name: 'Required VPS' + type: INTERNAL + key: 'zabbix[requiredperformance]' + value_type: FLOAT + units: '!vps' + description: 'The required performance of a proxy (the number of values that need to be collected per second).' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + tags: + - tag: component + value: system + - uuid: 7a5c163672d1422aa663c2606d1166e5 + name: 'Zabbix proxy check' + type: INTERNAL + key: 'zabbix[triggers]' + trends: '0' + description: 'Flag indicating whether it is a proxy or not.' + valuemap: + name: 'Zabbix proxy check' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: IN_RANGE + parameters: + - '' + - '0' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 714e140b408d4b219fbee840e800b841 + expression: 'last(/Zabbix proxy health/zabbix[triggers])=1' + name: 'Zabbix proxy: Wrong template assigned' + event_name: 'Zabbix proxy: Zabbix proxy template is assigned to Zabbix server' + priority: DISASTER + description: 'Check that the template has been selected correctly.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: ef920914bc00432ea4d4007d09e081df + name: Uptime + type: INTERNAL + key: 'zabbix[uptime]' + units: uptime + description: 'Uptime of the Zabbix proxy process in seconds.' + tags: + - tag: component + value: system + triggers: + - uuid: b505a16c50f64adb8c5528907925f798 + expression: 'last(/Zabbix proxy health/zabbix[uptime])<10m' + name: 'Zabbix proxy: {HOST.NAME} has been restarted' + event_name: 'Zabbix proxy: {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: 4d38d6d107714c96ae2ed2af44fddb60 + name: Version + type: INTERNAL + key: 'zabbix[version]' + value_type: CHAR + trends: '0' + description: 'The version of Zabbix proxy.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: bf7eef07faf14fc4b2603ae952f001da + expression: 'last(/Zabbix proxy health/zabbix[version],#1)<>last(/Zabbix proxy health/zabbix[version],#2) and length(last(/Zabbix proxy health/zabbix[version]))>0' + name: 'Zabbix proxy: Version has changed' + event_name: 'Zabbix proxy: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Zabbix proxy version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: fc7412c1a02240b7931d3511743a2662 + name: 'VMware cache, % used' + type: INTERNAL + key: 'zabbix[vmware,buffer,pused]' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix vmware cache. The percentage of used data buffer.' + tags: + - tag: component + value: system + triggers: + - uuid: 69707cc61b7d408f8683dae435183d4f + expression: 'max(/Zabbix proxy health/zabbix[vmware,buffer,pused],10m)>{$ZABBIX.PROXY.UTIL.MAX:"vmware cache"}' + name: 'Zabbix proxy: Excessive vmware cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"vmware cache"}% used in the vmware cache' + priority: AVERAGE + description: 'Consider increasing `VMwareCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: aec73d2a7e444702b352c75998bf636e + name: 'History write cache, % used' + type: INTERNAL + key: 'zabbix[wcache,history,pused]' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history buffer. + The history cache is used to store item values. A high number indicates database performance problems. + tags: + - tag: component + value: system + triggers: + - uuid: dc5a87f6c62d47b08ddd4578aa5f293f + expression: 'max(/Zabbix proxy health/zabbix[wcache,history,pused],10m)>{$ZABBIX.PROXY.UTIL.MAX:"history cache"}' + name: 'Zabbix proxy: Excessive history cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"history cache"}% used in the history cache' + priority: AVERAGE + description: 'Consider increasing `HistoryCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 8c4c7802497d4de4988278edc29f8eb1 + name: 'History index cache, % used' + type: INTERNAL + key: 'zabbix[wcache,index,pused]' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history index buffer. + The history index cache is used to index values stored in the history cache. + tags: + - tag: component + value: system + triggers: + - uuid: 92b94edb126d48af9e5e959357e2107b + expression: 'max(/Zabbix proxy health/zabbix[wcache,index,pused],10m)>{$ZABBIX.PROXY.UTIL.MAX:"index cache"}' + name: 'Zabbix proxy: Excessive history index cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"index cache"}% used in the history index cache' + priority: AVERAGE + description: 'Consider increasing `HistoryIndexCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: ba5efd0ed21d4ac39e1375788b7198de + name: 'Number of processed numeric (float) values per second' + type: INTERNAL + key: 'zabbix[wcache,values,float]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (float) values. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 47cdd6ef01734ec1ab15b0ab43d147ca + name: 'Number of processed log values per second' + type: INTERNAL + key: 'zabbix[wcache,values,log]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed log values. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 46574db1d70545f6af89e8607d22f5bb + name: 'Number of processed not supported values per second' + type: INTERNAL + key: 'zabbix[wcache,values,not supported]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of times the item processing resulted in an item becoming unsupported or remaining in that state. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 5f0c3ed0998e499aaa1e4a30726928fc + name: 'Number of processed character values per second' + type: INTERNAL + key: 'zabbix[wcache,values,str]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed character values. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 1c259b08b3ff445f9b2f24a02c07c5db + name: 'Number of processed text values per second' + type: INTERNAL + key: 'zabbix[wcache,values,text]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed text values. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 8e4b9641b173415c8608ee4863bcd547 + name: 'Number of processed numeric (unsigned) values per second' + type: INTERNAL + key: 'zabbix[wcache,values,uint]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (unsigned) values. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 5229b786efc84f01bb31f2819c47d9f4 + name: 'Number of processed values per second' + type: INTERNAL + key: 'zabbix[wcache,values]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The total number of values processed by Zabbix server or Zabbix proxy, except unsupported items. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + tags: + - tag: class + value: software + - tag: target + value: proxy + - tag: target + value: zabbix + macros: + - macro: '{$ZABBIX.PROXY.UTIL.MAX}' + value: '75' + description: 'Default maximum threshold for percentage utilization triggers (use macro context for specification).' + - macro: '{$ZABBIX.PROXY.UTIL.MIN}' + value: '65' + description: 'Default minimum threshold for percentage utilization triggers (use macro context for specification).' + dashboards: + - uuid: c12bdb602db645a292d0cbba39d58e9f + name: 'Zabbix proxy health' + auto_start: 'NO' + pages: + - name: Performance + widgets: + - type: svggraph + name: 'Cache usage, in %' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: STRING + name: ds.0.color.2 + value: ff7f00 + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: a6cee3 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[rcache,buffer,pused]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[wcache,index,pused]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health' + key: 'zabbix[wcache,history,pused]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health' + key: 'zabbix[vmware,buffer,pused]' + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health' + key: 'zabbix[proxy_buffer,buffer,pused]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Server performance' + 'y': '6' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[wcache,values]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[queue]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACC + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Values processed' + 'y': '11' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[wcache,values,uint]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[wcache,values,float]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health' + key: 'zabbix[wcache,values,not supported]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health' + key: 'zabbix[wcache,values,str]' + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health' + key: 'zabbix[wcache,values,log]' + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix proxy health' + key: 'zabbix[wcache,values,text]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACD + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Values to send' + 'y': '16' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[proxy_history]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACE + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing throughput' + 'y': '21' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[preprocessing_throughput_queued]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[preprocessing_throughput_direct]' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABV + - type: svggraph + name: 'Internal queues' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffff99 + - type: STRING + name: ds.0.color.1 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[preprocessing_queue]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[discovery_queue]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACB + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing VPS' + x: '36' + 'y': '21' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[preprocessing_vps_queued]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[preprocessing_vps_direct]' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABW + - name: Processes + widgets: + - type: svggraph + name: 'Utilization: Discovery processes' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 7e57c2 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,discovery manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,discovery worker,avg,busy]' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[discovery_queue]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABH + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Synchronous gathering processes' + 'y': '6' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: ff7f00 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: 17becf + - type: STRING + name: ds.0.color.5 + value: a6cee3 + - type: STRING + name: ds.0.color.6 + value: fb9a99 + - type: STRING + name: ds.0.color.7 + value: bcbd22 + - type: STRING + name: ds.0.color.8 + value: fdbf6f + - type: STRING + name: ds.0.color.9 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,internal poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,ipmi poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,ipmi manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,http poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,java poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,vmware collector,avg,busy]' + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,browser poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.8 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,odbc poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.9 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,icmp pinger,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABJ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Asynchronous gathering processes' + 'y': '13' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,agent poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,http agent poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,snmp poller,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABK + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Core' + 'y': '19' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: STRING + name: ds.0.color.2 + value: ff7f00 + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: a6cee3 + - type: STRING + name: ds.0.color.5 + value: fdbf6f + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,configuration syncer,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,history syncer,avg,busy]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,self-monitoring,avg,busy]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,task manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,data sender,avg,busy]' + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,housekeeper,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABL + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Gathering processes: Trappers' + 'y': '25' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: fdbf6f + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,trapper,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,snmp trapper,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABM + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Data exchange with server' + 'y': '30' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: '000080' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,trapper,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,data sender,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABO + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Preprocessing processes' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: fdbf6f + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,preprocessing manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,preprocessing worker,avg,busy]' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[preprocessing_queue]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABI + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Availability processes' + x: '36' + 'y': '25' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 6a3d9a + - type: STRING + name: ds.0.color.1 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,unreachable poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health' + key: 'zabbix[process,availability manager,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABN + - type: INTEGER + name: show_problems + value: '1' + - name: Statuses + widgets: + - type: item + name: 'Zabbix proxy version' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[version]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: Uptime + x: '18' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[uptime]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Proxy buffer state' + x: '36' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix proxy health' + key: 'zabbix[proxy_buffer,state,current]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + valuemaps: + - uuid: 10388a0c06864ac483377f4ad3a91854 + name: 'Proxy buffer mode' + mappings: + - value: '0' + newvalue: Disk + - value: '1' + newvalue: Memory + - uuid: f9f6987645b341b68ba5449c9b741459 + name: 'Zabbix proxy check' + mappings: + - value: '0' + newvalue: 'True' + - value: '1' + newvalue: 'False' diff --git a/Zabbix_proxy_health_by_Zabbix_agent.yaml b/Zabbix_proxy_health_by_Zabbix_agent.yaml new file mode 100644 index 0000000..e1f9f39 --- /dev/null +++ b/Zabbix_proxy_health_by_Zabbix_agent.yaml @@ -0,0 +1,2435 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 8cd15d3b39654eb7b7423e6b109037b2 + template: 'Zabbix proxy health by Zabbix agent' + name: 'Zabbix proxy health by Zabbix agent' + description: | + This template is designed to monitor internal Zabbix metrics on the remote Zabbix proxy via the passive Zabbix agent. + + Specify the address of the remote Zabbix proxy by changing the {$ZABBIX.PROXY.ADDRESS} and {$ZABBIX.PROXY.PORT} macros. Don't forget to adjust the "StatsAllowedIP" parameter in the remote proxy's configuration file to allow the collection of statistics. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: 8846a48c4acc4224a4e773469c159968 + name: 'Discovery queue' + type: DEPENDENT + key: discovery_queue + delay: '0' + description: 'The count of values enqueued in the discovery queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.discovery_queue + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 7ace08ac0d134dbd8e38f0eed7832006 + name: 'Preprocessing queue' + type: DEPENDENT + key: preprocessing_queue + delay: '0' + description: 'The number of values enqueued in the preprocessing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing_queue + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: d910dadfc937429a83dd4d83ea1e9596 + name: 'Preprocessing direct throughput' + type: DEPENDENT + key: preprocessing_throughput_direct + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the direct throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: da3bb292d0f645358a7e7629386e7029 + name: 'Preprocessing queued throughput' + type: DEPENDENT + key: preprocessing_throughput_queued + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the queued throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: bfd2eefae1ed42c598658376f0c00863 + name: 'Preprocessing direct VPS' + type: DEPENDENT + key: preprocessing_vps_direct + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of direct preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 274bd50bfd174e1299c58b4787b80920 + name: 'Preprocessing queued VPS' + type: DEPENDENT + key: preprocessing_vps_queued + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of queued preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: a312044e08a84606b1cff94b32b7869b + name: 'Utilization of agent poller data collector processes, in %' + type: DEPENDENT + key: process.agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes agent poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 2bc7af614177457381d7dac14073b167 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.agent_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.agent_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"agent poller"}' + name: 'Zabbix proxy: Utilization of agent poller processes is high' + event_name: 'Zabbix proxy: Utilization of agent poller processes over {$ZABBIX.PROXY.UTIL.MAX:"agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 61d39ded8711431285a6fbc083d8caed + name: 'Utilization of availability manager internal processes, in %' + type: DEPENDENT + key: process.availability_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the availability manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''availability manager''].busy.avg' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: b93bf2d4f9094eefa462588f4121f339 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.availability_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"availability manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.availability_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"availability manager"}' + name: 'Zabbix proxy: Utilization of availability manager processes is high' + event_name: 'Zabbix proxy: Utilization of availability manager processes over {$ZABBIX.PROXY.UTIL.MAX:"availability manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the availability manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 6e0797f6789c4185a10e308428137582 + name: 'Utilization of browser poller data collector processes, in %' + type: DEPENDENT + key: process.browser_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the browser poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''browser poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "browser poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: edc46311472f4d26a08989a1cc5fc4ad + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.browser_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"browser poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.browser_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"browser poller"}' + name: 'Zabbix proxy: Utilization of browser poller processes is high' + event_name: 'Zabbix proxy: Utilization of browser poller processes over {$ZABBIX.PROXY.UTIL.MAX:"browser poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the browser poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 0ee53f651442409990eb622b564a2775 + name: 'Utilization of configuration syncer internal processes, in %' + type: DEPENDENT + key: process.configuration_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''configuration syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes configuration syncer not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: fdbac62718014e8ba5b9663ecd2c87cf + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.configuration_syncer.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"configuration syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.configuration_syncer.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"configuration syncer"}' + name: 'Zabbix proxy: Utilization of configuration syncer processes is high' + event_name: 'Zabbix proxy: Utilization of configuration syncer processes over {$ZABBIX.PROXY.UTIL.MAX:"configuration syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 013e6f87c56c4a579458feeba5691be6 + name: 'Utilization of data sender internal processes, in %' + type: DEPENDENT + key: process.data_sender.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the data sender processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''data sender''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes data sender not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 638a37f1268d4545bd037b88eb0f46b5 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.data_sender.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"data sender"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.data_sender.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"data sender"}' + name: 'Zabbix proxy: Utilization of data sender processes is high' + event_name: 'Zabbix proxy: Utilization of data sender processes over {$ZABBIX.PROXY.UTIL.MAX:"data sender"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the data sender, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 2fafb029d58546c3a6deabd4038e76cd + name: 'Utilization of discovery manager internal processes, in %' + type: DEPENDENT + key: process.discovery_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: e4a34e7e45964602a329c04bedf0be11 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.discovery_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"discovery manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.discovery_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"discovery manager"}' + name: 'Zabbix proxy: Utilization of discovery manager processes is high' + event_name: 'Zabbix proxy: Utilization of discovery manager processes over {$ZABBIX.PROXY.UTIL.MAX:"discovery manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: b244b8cb318546c19b83b0af3b0bb093 + name: 'Utilization of discovery worker internal processes, in %' + type: DEPENDENT + key: process.discovery_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery worker" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: afd226d5a01c444bbe7ec7cc8e890385 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.discovery_worker.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"discovery worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.discovery_worker.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"discovery worker"}' + name: 'Zabbix proxy: Utilization of discovery worker processes is high' + event_name: 'Zabbix proxy: Utilization of discovery worker processes over {$ZABBIX.PROXY.UTIL.MAX:"discovery worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 32359f807d68434d83ee667da762b1c8 + name: 'Utilization of history syncer internal processes, in %' + type: DEPENDENT + key: process.history_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''history syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes history syncer not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: edc13a63baa94f898c5b90cffd568725 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.history_syncer.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"history syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.history_syncer.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"history syncer"}' + name: 'Zabbix proxy: Utilization of history syncer processes is high' + event_name: 'Zabbix proxy: Utilization of history syncer processes over {$ZABBIX.PROXY.UTIL.MAX:"history syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 52bcf9b7c2ae4787887bbd650b10105a + name: 'Utilization of housekeeper internal processes, in %' + type: DEPENDENT + key: process.housekeeper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the housekeeper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''housekeeper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes housekeeper not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 6db57127f7b74e3293be2942442665a5 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.housekeeper.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.housekeeper.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"housekeeper"}' + name: 'Zabbix proxy: Utilization of housekeeper processes is high' + event_name: 'Zabbix proxy: Utilization of housekeeper processes over {$ZABBIX.PROXY.UTIL.MAX:"housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 5913d66abf674eb0a73f8e1821b41b5b + name: 'Utilization of http agent poller data collector processes, in %' + type: DEPENDENT + key: process.http_agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes http agent poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 2e968911946b437da198218d0c9c53d7 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.http_agent_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"http agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.http_agent_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"http agent poller"}' + name: 'Zabbix proxy: Utilization of http agent poller processes is high' + event_name: 'Zabbix proxy: Utilization of http agent poller processes over {$ZABBIX.PROXY.UTIL.MAX:"http agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d473cf000bd94347ac6326209e9b1cb6 + name: 'Utilization of http poller data collector processes, in %' + type: DEPENDENT + key: process.http_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes http poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: a968792590324fd88c887619859b6aaa + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.http_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"http poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.http_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"http poller"}' + name: 'Zabbix proxy: Utilization of http poller processes is high' + event_name: 'Zabbix proxy: Utilization of http poller processes over {$ZABBIX.PROXY.UTIL.MAX:"http poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: fb0cd69bbafd45068e1429ab891a89d9 + name: 'Utilization of icmp pinger data collector processes, in %' + type: DEPENDENT + key: process.icmp_pinger.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the icmp pinger processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''icmp pinger''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes icmp pinger not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 4accc46c86674786a09962d2ba865fad + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.icmp_pinger.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"icmp pinger"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.icmp_pinger.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"icmp pinger"}' + name: 'Zabbix proxy: Utilization of icmp pinger processes is high' + event_name: 'Zabbix proxy: Utilization of icmp pinger processes over {$ZABBIX.PROXY.UTIL.MAX:"icmp pinger"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the icmp pinger, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 91eb0701b6a54ccd955f67223b64e84c + name: 'Utilization of internal poller data collector processes, in %' + type: DEPENDENT + key: process.internal_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the internal poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''internal poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "internal poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: eb18c6abd7244d1b9addd5c0c411eef4 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.internal_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"internal poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.internal_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"internal poller"}' + name: 'Zabbix proxy: Utilization of internal poller processes is high' + event_name: 'Zabbix proxy: Utilization of internal poller processes over {$ZABBIX.PROXY.UTIL.MAX:"internal poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the internal poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 6baa5907fc4747d2ba5b0095c12fbe9d + name: 'Utilization of ipmi manager internal processes, in %' + type: DEPENDENT + key: process.ipmi_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes ipmi manager not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 8b7ba23a9571419985996aaa5545c093 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.ipmi_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"ipmi manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.ipmi_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"ipmi manager"}' + name: 'Zabbix proxy: Utilization of ipmi manager processes is high' + event_name: 'Zabbix proxy: Utilization of ipmi manager processes over {$ZABBIX.PROXY.UTIL.MAX:"ipmi manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 842f2465e5614597be977fdb7b72ba63 + name: 'Utilization of ipmi poller data collector processes, in %' + type: DEPENDENT + key: process.ipmi_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes ipmi poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: f108f03ff3174bf0be5bab5f8dd3edd9 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.ipmi_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"ipmi poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.ipmi_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"ipmi poller"}' + name: 'Zabbix proxy: Utilization of ipmi poller processes is high' + event_name: 'Zabbix proxy: Utilization of ipmi poller processes over {$ZABBIX.PROXY.UTIL.MAX:"ipmi poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 0a4560d7e2ca4c1a88997d2353fd624c + name: 'Utilization of java poller data collector processes, in %' + type: DEPENDENT + key: process.java_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the java poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''java poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes java poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 6e21610d53534d17a46e82ba77d94839 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.java_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"java poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.java_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"java poller"}' + name: 'Zabbix proxy: Utilization of java poller processes is high' + event_name: 'Zabbix proxy: Utilization of java poller processes over {$ZABBIX.PROXY.UTIL.MAX:"java poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the java poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a3d0a85f9e9b4c59b5d8165a8f390ff1 + name: 'Utilization of ODBC poller data collector processes, in %' + type: DEPENDENT + key: process.odbc_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ODBC poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''odbc poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes odbc poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: f792aff9eafc495e82717b11e15c61eb + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.odbc_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"ODBC poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.odbc_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"ODBC poller"}' + name: 'Zabbix proxy: Utilization of ODBC poller processes is high' + event_name: 'Zabbix proxy: Utilization of ODBC poller processes over {$ZABBIX.PROXY.UTIL.MAX:"ODBC poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ODBC poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 459a5b2aba7e43638dd151d32b7b5244 + name: 'Utilization of poller data collector processes, in %' + type: DEPENDENT + key: process.poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: b0e501fd7ee44bfb8e4b76b8ed3f7bcf + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"poller"}' + name: 'Zabbix proxy: Utilization of poller processes is high' + event_name: 'Zabbix proxy: Utilization of poller processes over {$ZABBIX.PROXY.UTIL.MAX:"poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 4378cc82528d46d8be81f99e0e7e7f23 + name: 'Utilization of preprocessing manager internal processes, in %' + type: DEPENDENT + key: process.preprocessing_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes preprocessing manager not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 16d99a3deb574313ac1c9d3514b2174e + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.preprocessing_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"preprocessing manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.preprocessing_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"preprocessing manager"}' + name: 'Zabbix proxy: Utilization of preprocessing manager processes is high' + event_name: 'Zabbix proxy: Utilization of preprocessing manager processes over {$ZABBIX.PROXY.UTIL.MAX:"preprocessing manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a8700cc1c2f8486fa09a90f19bbd877e + name: 'Utilization of preprocessing worker internal processes, in %' + type: DEPENDENT + key: process.preprocessing_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes preprocessing worker not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 44b4036596a648249665be9bdaf99001 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.preprocessing_worker.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"preprocessing worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.preprocessing_worker.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"preprocessing worker"}' + name: 'Zabbix proxy: Utilization of preprocessing worker processes is high' + event_name: 'Zabbix proxy: Utilization of preprocessing worker processes over {$ZABBIX.PROXY.UTIL.MAX:"preprocessing worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 362cff08ec00461795dd514cf1757360 + name: 'Utilization of self-monitoring internal processes, in %' + type: DEPENDENT + key: process.self-monitoring.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the self-monitoring processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''self-monitoring''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes self-monitoring not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: bf4a1a0d24da4929afd8ef77cc8e0aee + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.self-monitoring.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"self-monitoring"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.self-monitoring.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"self-monitoring"}' + name: 'Zabbix proxy: Utilization of self-monitoring processes is high' + event_name: 'Zabbix proxy: Utilization of self-monitoring processes over {$ZABBIX.PROXY.UTIL.MAX:"self-monitoring"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the self-monitoring, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a2dd22ed51df44ae86f86555dc3ba3c2 + name: 'Utilization of snmp poller data collector processes, in %' + type: DEPENDENT + key: process.snmp_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes snmp poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 3fab2971d5eb46d8953bc34af262eef7 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.snmp_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"snmp poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.snmp_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"snmp poller"}' + name: 'Zabbix proxy: Utilization of snmp poller processes is high' + event_name: 'Zabbix proxy: Utilization of snmp poller processes over {$ZABBIX.PROXY.UTIL.MAX:"snmp poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 48204005c3ec441e990e132caa4968a0 + name: 'Utilization of snmp trapper data collector processes, in %' + type: DEPENDENT + key: process.snmp_trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes snmp trapper not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: c67d6cf7bb414ba5bf5e295323ceca3e + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.snmp_trapper.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"snmp trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.snmp_trapper.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"snmp trapper"}' + name: 'Zabbix proxy: Utilization of snmp trapper processes is high' + event_name: 'Zabbix proxy: Utilization of snmp trapper processes over {$ZABBIX.PROXY.UTIL.MAX:"snmp trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 919f3c24e8bf4099aabd25a843613f35 + name: 'Utilization of task manager internal processes, in %' + type: DEPENDENT + key: process.task_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the task manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''task manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes task manager not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: fbba9326edf24178b4ef43de4c545fcc + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.task_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"task manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.task_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"task manager"}' + name: 'Zabbix proxy: Utilization of task manager processes is high' + event_name: 'Zabbix proxy: Utilization of task manager processes over {$ZABBIX.PROXY.UTIL.MAX:"task manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the task manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a5ef0fec5c864de98519e340d2d182bb + name: 'Utilization of trapper data collector processes, in %' + type: DEPENDENT + key: process.trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes trapper not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 7ab1c8f1b661480da56f12d7e9df525d + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.trapper.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.trapper.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"trapper"}' + name: 'Zabbix proxy: Utilization of trapper processes is high' + event_name: 'Zabbix proxy: Utilization of trapper processes over {$ZABBIX.PROXY.UTIL.MAX:"trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 2455887b313847d39d318078b29120e7 + name: 'Utilization of unreachable poller data collector processes, in %' + type: DEPENDENT + key: process.unreachable_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the unreachable poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''unreachable poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes unreachable poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 0dd4fe44dd7c45a589b95af7410e44e1 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.unreachable_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"unreachable poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.unreachable_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"unreachable poller"}' + name: 'Zabbix proxy: Utilization of unreachable poller processes is high' + event_name: 'Zabbix proxy: Utilization of unreachable poller processes over {$ZABBIX.PROXY.UTIL.MAX:"unreachable poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the unreachable poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 2bea24eb5d8d42b48049e340ea385aad + name: 'Utilization of vmware collector data collector processes, in %' + type: DEPENDENT + key: process.vmware_collector.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the vmware collector processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''vmware collector''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes vmware collector not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: e4c5051b01aa4c3bbad9237e7c593308 + expression: 'avg(/Zabbix proxy health by Zabbix agent/process.vmware_collector.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"vmware collector"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent/process.vmware_collector.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"vmware collector"}' + name: 'Zabbix proxy: Utilization of vmware collector processes is high' + event_name: 'Zabbix proxy: Utilization of vmware collector processes over {$ZABBIX.PROXY.UTIL.MAX:"vmware collector"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the vmware collector, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c98b4b21c1744546898dbb8b1dfead42 + name: 'Proxy memory buffer, % used' + type: DEPENDENT + key: proxy_buffer.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + Statistics and availability of Zabbix proxy memory buffer usage statistics. Percentage of used proxy memory buffer. + Proxy memory buffer is used to store the new historical data and upload from it without accessing database. + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.[''proxy buffer''].memory.pused' + error_handler: CUSTOM_ERROR + error_handler_params: 'Proxy memory buffer is disabled.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: c784f7f231c34461a63d0a5cb2ce4a45 + expression: 'max(/Zabbix proxy health by Zabbix agent/proxy_buffer.buffer.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"proxy buffer"}' + name: 'Zabbix proxy: Excessive proxy memory buffer usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"proxy buffer"}% used in the proxy memory buffer' + priority: AVERAGE + description: 'Consider increasing ProxyMemoryBufferSize in the zabbix_proxy.conf configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 0f120fc684234c9a9ee5a9f6666f3413 + name: 'Proxy buffer, state changes' + type: DEPENDENT + key: proxy_buffer.state.changes + delay: '0' + description: 'The number of state changes between disk/memory buffer modes since proxy start.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.[''proxy buffer''].[''state change'']' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 38bfb3b653914ca2add4bc219d50dc32 + name: 'Proxy buffer, state' + type: DEPENDENT + key: proxy_buffer.state.current + delay: '0' + description: | + The current working state of proxy buffer where the new data is being stored. Possible values: + + 0 - disk (also returned when memory buffer is disabled); + 1 - memory. + valuemap: + name: 'Proxy buffer mode' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.[''proxy buffer''].state' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 562d546ed5e8413b8c756b3b47a4f720 + name: 'Zabbix proxy check' + type: DEPENDENT + key: proxy_check + delay: '0' + trends: '0' + description: 'Flag indicating whether it is a proxy or not.' + valuemap: + name: 'Zabbix proxy check' + preprocessing: + - type: JSONPATH + parameters: + - $.data.triggers + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: IN_RANGE + parameters: + - '' + - '0' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 315fc2009a02420cbe059ac199171d6d + expression: 'last(/Zabbix proxy health by Zabbix agent/proxy_check)=1' + name: 'Zabbix proxy: Wrong template assigned' + event_name: 'Zabbix proxy: Zabbix proxy template is assigned to Zabbix server' + priority: DISASTER + description: 'Check that the template has been selected correctly.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 06aa2a793fa3415281aefdf937e5ddee + name: 'Configuration cache, % used' + type: DEPENDENT + key: rcache.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix configuration cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.rcache.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 523f092b9f8b41f9b652eeb7fdafe40c + expression: 'max(/Zabbix proxy health by Zabbix agent/rcache.buffer.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"configuration cache"}' + name: 'Zabbix proxy: Excessive configuration cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"configuration cache"}% used in the configuration cache' + priority: AVERAGE + description: 'Consider increasing `CacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 013a980007284540964d72be2de27a0d + expression: 'nodata(/Zabbix proxy health by Zabbix agent/rcache.buffer.pused,{$ZABBIX.PROXY.NODATA_TIMEOUT})=1' + name: 'Zabbix proxy: Failed to fetch stats data' + event_name: 'Zabbix proxy: Failed to fetch stats data (or no data for {$ZABBIX.PROXY.NODATA_TIMEOUT})' + priority: WARNING + description: 'Zabbix has not received statistics data for `{$ZABBIX.PROXY.NODATA_TIMEOUT}`.' + tags: + - tag: scope + value: availability + - uuid: b2446bae74174e25b0cca1f32aef8553 + name: 'Required VPS' + type: DEPENDENT + key: requiredperformance + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The required performance of a proxy (the number of values that need to be collected per second).' + preprocessing: + - type: JSONPATH + parameters: + - $.data.requiredperformance + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 1c36d8e963a64ee1aa93a1a9568370a3 + name: Uptime + type: DEPENDENT + key: uptime + delay: '0' + units: uptime + description: 'Uptime of the Zabbix proxy process in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.uptime + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 187bc575a0a14bbc84ad86225ddbcb61 + expression: 'last(/Zabbix proxy health by Zabbix agent/uptime)<10m' + name: 'Zabbix proxy: {HOST.NAME} has been restarted' + event_name: 'Zabbix proxy: {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: fe584f47643f4ae8be825c00854719ad + name: Version + type: DEPENDENT + key: version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of Zabbix proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 0a95e8c307074bc4ba9f55d9f172ff0a + expression: 'last(/Zabbix proxy health by Zabbix agent/version,#1)<>last(/Zabbix proxy health by Zabbix agent/version,#2) and length(last(/Zabbix proxy health by Zabbix agent/version))>0' + name: 'Zabbix proxy: Version has changed' + event_name: 'Zabbix proxy: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Zabbix proxy version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: c41ad12215a94aca827b31c427f8f2e1 + name: 'VMware cache, % used' + type: DEPENDENT + key: vmware.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix vmware cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vmware.pused + error_handler: CUSTOM_ERROR + error_handler_params: 'No vmware collector processes started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 04c4161b994046fe9d657da0a5a1c3db + expression: 'max(/Zabbix proxy health by Zabbix agent/vmware.buffer.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"vmware cache"}' + name: 'Zabbix proxy: Excessive vmware cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"vmware cache"}% used in the vmware cache' + priority: AVERAGE + description: 'Consider increasing `VMwareCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 735347973ba04edd8f930ffafd81ee6d + name: 'History write cache, % used' + type: DEPENDENT + key: wcache.history.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history buffer. + The history cache is used to store item values. A high number indicates database performance problems. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.history.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 042eaacf59f74383b29c0a8130ae4b16 + expression: 'max(/Zabbix proxy health by Zabbix agent/wcache.history.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"history cache"}' + name: 'Zabbix proxy: Excessive history cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"history cache"}% used in the history cache' + priority: AVERAGE + description: 'Consider increasing `HistoryCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 248bb7f1ab5546ccaa0fdc529e746e04 + name: 'History index cache, % used' + type: DEPENDENT + key: wcache.index.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history index buffer. + The history index cache is used to index values stored in the history cache. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.index.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: fa7be5e77ff04e728db5ee0369708dde + expression: 'max(/Zabbix proxy health by Zabbix agent/wcache.index.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"index cache"}' + name: 'Zabbix proxy: Excessive history index cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"index cache"}% used in the history index cache' + priority: AVERAGE + description: 'Consider increasing `HistoryIndexCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 1006c5bf5fbc47c1a367f74d29e72257 + name: 'Number of processed values per second' + type: DEPENDENT + key: wcache.values + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The total number of values processed by Zabbix server or Zabbix proxy, except unsupported items. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.all + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 0117f333d91846fbb10d4941a258ec5b + name: 'Number of processed numeric (float) values per second' + type: DEPENDENT + key: wcache.values.float + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (float) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.float + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: fae6ad936ab94641a6e0446a5dbe2e3a + name: 'Number of processed log values per second' + type: DEPENDENT + key: wcache.values.log + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed log values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.log + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 49e235b0e2514255bf395db06df1660a + name: 'Number of processed not supported values per second' + type: DEPENDENT + key: wcache.values.not_supported + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of times the item processing resulted in an item becoming unsupported or remaining in that state. + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.values[''not supported'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 505ac45e931b45959df5b78524fe7916 + name: 'Number of processed character values per second' + type: DEPENDENT + key: wcache.values.str + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed character values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.str + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 4e293845715644c199b295f3701c553e + name: 'Number of processed text values per second' + type: DEPENDENT + key: wcache.values.text + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed text values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.text + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 53811a399df5460eae32ea7fbbd3ae3c + name: 'Number of processed numeric (unsigned) values per second' + type: DEPENDENT + key: wcache.values.uint + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (unsigned) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.uint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: d4da5073f23d47c1adc55b30117bb1e0 + name: 'Queue over 10 minutes' + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue,10m]' + description: 'The number of monitored items in the queue that are delayed by at least 10 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + triggers: + - uuid: 73460db4082c4feaac254b6ed790045a + expression: 'min(/Zabbix proxy health by Zabbix agent/zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue,10m],10m)>100' + name: 'Zabbix proxy: More than 100 items have been missing data for over 10 minutes' + priority: WARNING + description: 'Indicates potential issues with network connectivity, agent failures, or unresponsive monitored resources that require attention.' + tags: + - tag: scope + value: performance + - uuid: b05149cb78b44bc08ccd72b58a34aded + name: Queue + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue]' + description: 'The number of monitored items in the queue that are delayed by at least 6 seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + - uuid: 32495fbb4c6642378a5871323b11cb08 + name: 'Zabbix stats' + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix proxy statistics.' + tags: + - tag: component + value: raw + tags: + - tag: class + value: software + - tag: target + value: proxy + - tag: target + value: zabbix + macros: + - macro: '{$ZABBIX.PROXY.ADDRESS}' + description: 'IP/DNS/network mask list of proxies to be remotely queried (default is 127.0.0.1).' + - macro: '{$ZABBIX.PROXY.NODATA_TIMEOUT}' + value: 5m + description: 'The time threshold after which statistics are considered unavailable. Used in trigger expressions.' + - macro: '{$ZABBIX.PROXY.PORT}' + description: 'Port of proxy to be remotely queried (default is 10051).' + - macro: '{$ZABBIX.PROXY.UTIL.MAX}' + value: '75' + description: 'Default maximum threshold for percentage utilization triggers (use macro context for specification).' + - macro: '{$ZABBIX.PROXY.UTIL.MIN}' + value: '65' + description: 'Default minimum threshold for percentage utilization triggers (use macro context for specification).' + dashboards: + - uuid: 707ef24a70ff433eb28a70cd0f78bf66 + name: 'Zabbix proxy health' + auto_start: 'NO' + pages: + - name: Performance + widgets: + - type: svggraph + name: 'Cache usage, in %' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: STRING + name: ds.0.color.2 + value: ff7f00 + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: a6cee3 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: rcache.buffer.pused + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: wcache.index.pused + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: wcache.history.pused + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: vmware.buffer.pused + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: proxy_buffer.buffer.pused + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Server performance' + 'y': '6' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: wcache.values + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACC + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Values processed' + 'y': '11' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: wcache.values.uint + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: wcache.values.float + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: wcache.values.not_supported + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: wcache.values.str + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: wcache.values.log + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: wcache.values.text + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACD + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing throughput' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: preprocessing_throughput_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: preprocessing_throughput_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABV + - type: svggraph + name: 'Internal queues' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffff99 + - type: STRING + name: ds.0.color.1 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: preprocessing_queue + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: discovery_queue + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACB + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing VPS' + x: '36' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: preprocessing_vps_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: preprocessing_vps_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABW + - name: Processes + widgets: + - type: svggraph + name: 'Utilization: Discovery processes' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 7e57c2 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.discovery_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.discovery_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: discovery_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABH + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Synchronous gathering processes' + 'y': '6' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: ff7f00 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: 17becf + - type: STRING + name: ds.0.color.5 + value: a6cee3 + - type: STRING + name: ds.0.color.6 + value: fb9a99 + - type: STRING + name: ds.0.color.7 + value: bcbd22 + - type: STRING + name: ds.0.color.8 + value: fdbf6f + - type: STRING + name: ds.0.color.9 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.internal_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.ipmi_poller.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.ipmi_manager.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.http_poller.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.java_poller.avg.busy + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.vmware_collector.avg.busy + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.browser_poller.avg.busy + - type: ITEM + name: ds.0.itemids.8 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.odbc_poller.avg.busy + - type: ITEM + name: ds.0.itemids.9 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.icmp_pinger.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABJ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Asynchronous gathering processes' + 'y': '13' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.http_agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.snmp_poller.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABK + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Core' + 'y': '19' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: STRING + name: ds.0.color.2 + value: ff7f00 + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: a6cee3 + - type: STRING + name: ds.0.color.5 + value: fdbf6f + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.configuration_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.history_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.self-monitoring.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.task_manager.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.data_sender.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.housekeeper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABL + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Gathering processes: Trappers' + 'y': '25' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: fdbf6f + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.snmp_trapper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABM + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Data exchange with server' + 'y': '30' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: '000080' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.data_sender.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABO + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Preprocessing processes' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: fdbf6f + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.preprocessing_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.preprocessing_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: preprocessing_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABI + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Availability processes' + x: '36' + 'y': '25' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 6a3d9a + - type: STRING + name: ds.0.color.1 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.unreachable_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: process.availability_manager.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABN + - type: INTEGER + name: show_problems + value: '1' + - name: Statuses + widgets: + - type: item + name: 'Zabbix proxy version' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: version + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: Uptime + x: '18' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: uptime + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Proxy buffer state' + x: '36' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix proxy health by Zabbix agent' + key: proxy_buffer.state.current + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + valuemaps: + - uuid: 22c73bf5429d4e9baf358fe6c177a033 + name: 'Proxy buffer mode' + mappings: + - value: '0' + newvalue: Disk + - value: '1' + newvalue: Memory + - uuid: 942633fa91474837afc5ce050cb86cb4 + name: 'Zabbix proxy check' + mappings: + - value: '0' + newvalue: 'True' + - value: '1' + newvalue: 'False' diff --git a/Zabbix_proxy_health_by_Zabbix_agent_active.yaml b/Zabbix_proxy_health_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..926fbc2 --- /dev/null +++ b/Zabbix_proxy_health_by_Zabbix_agent_active.yaml @@ -0,0 +1,2438 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 02aac022a62c48bba810d07bbaa712cc + template: 'Zabbix proxy health by Zabbix agent active' + name: 'Zabbix proxy health by Zabbix agent active' + description: | + This template is designed to monitor internal Zabbix metrics on the remote Zabbix proxy via the active Zabbix agent. + + Specify the address of the remote Zabbix proxy by changing the {$ZABBIX.PROXY.ADDRESS} and {$ZABBIX.PROXY.PORT} macros. Don't forget to adjust the "StatsAllowedIP" parameter in the remote proxy's configuration file to allow the collection of statistics. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-4 + groups: + - name: Templates/Applications + items: + - uuid: 19639a8badd8427580ca4ef1a3f3e037 + name: 'Discovery queue' + type: DEPENDENT + key: discovery_queue + delay: '0' + description: 'The count of values enqueued in the discovery queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.discovery_queue + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: b8bba41ac6fb47b987d4b50363b5682e + name: 'Preprocessing queue' + type: DEPENDENT + key: preprocessing_queue + delay: '0' + description: 'The number of values enqueued in the preprocessing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing_queue + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 3e1694c299ac40e79729b490402b8cf6 + name: 'Preprocessing direct throughput' + type: DEPENDENT + key: preprocessing_throughput_direct + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the direct throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 35d405920f4e4c0cb5b731e3cbbef1ee + name: 'Preprocessing queued throughput' + type: DEPENDENT + key: preprocessing_throughput_queued + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the queued throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: cdcfe3d536ea4648a8f39e15cc19e9bf + name: 'Preprocessing direct VPS' + type: DEPENDENT + key: preprocessing_vps_direct + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of direct preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 066b91a9049e4ce9b8680dc36ff8cf87 + name: 'Preprocessing queued VPS' + type: DEPENDENT + key: preprocessing_vps_queued + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of queued preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: defab1c17e114e8d9a752579036b42dd + name: 'Utilization of agent poller data collector processes, in %' + type: DEPENDENT + key: process.agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes agent poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 781f2b17fc384acebdcbb008a3f24bc1 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.agent_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.agent_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"agent poller"}' + name: 'Zabbix proxy: Utilization of agent poller processes is high' + event_name: 'Zabbix proxy: Utilization of agent poller processes over {$ZABBIX.PROXY.UTIL.MAX:"agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 5212844ce04048a08d7c88f9d914b4c6 + name: 'Utilization of availability manager internal processes, in %' + type: DEPENDENT + key: process.availability_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the availability manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''availability manager''].busy.avg' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 60c4627e26e24f5583b13ac51c652bb6 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.availability_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"availability manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.availability_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"availability manager"}' + name: 'Zabbix proxy: Utilization of availability manager processes is high' + event_name: 'Zabbix proxy: Utilization of availability manager processes over {$ZABBIX.PROXY.UTIL.MAX:"availability manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the availability manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d54d7e00c2b547c891d56fd11791673c + name: 'Utilization of browser poller data collector processes, in %' + type: DEPENDENT + key: process.browser_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the browser poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''browser poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "browser poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 9ceb9623900f4fd097c96be779088a1a + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.browser_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"browser poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.browser_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"browser poller"}' + name: 'Zabbix proxy: Utilization of browser poller processes is high' + event_name: 'Zabbix proxy: Utilization of browser poller processes over {$ZABBIX.PROXY.UTIL.MAX:"browser poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the browser poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: bc6b359fb245474ab52a2f07a4fd130b + name: 'Utilization of configuration syncer internal processes, in %' + type: DEPENDENT + key: process.configuration_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''configuration syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes configuration syncer not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 4fc6ad715b6d4eea89c47e9a80cc1bd2 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.configuration_syncer.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"configuration syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.configuration_syncer.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"configuration syncer"}' + name: 'Zabbix proxy: Utilization of configuration syncer processes is high' + event_name: 'Zabbix proxy: Utilization of configuration syncer processes over {$ZABBIX.PROXY.UTIL.MAX:"configuration syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d6dbae1eb33f4235807462e0043fe89c + name: 'Utilization of data sender internal processes, in %' + type: DEPENDENT + key: process.data_sender.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the data sender processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''data sender''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes data sender not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 53a13b3f8ae746a5aa698c48beeb782f + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.data_sender.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"data sender"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.data_sender.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"data sender"}' + name: 'Zabbix proxy: Utilization of data sender processes is high' + event_name: 'Zabbix proxy: Utilization of data sender processes over {$ZABBIX.PROXY.UTIL.MAX:"data sender"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the data sender, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 02289431d3634e80931617d145759057 + name: 'Utilization of discovery manager internal processes, in %' + type: DEPENDENT + key: process.discovery_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: ac5583b00510498ea9f0cf75835dc8c9 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.discovery_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"discovery manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.discovery_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"discovery manager"}' + name: 'Zabbix proxy: Utilization of discovery manager processes is high' + event_name: 'Zabbix proxy: Utilization of discovery manager processes over {$ZABBIX.PROXY.UTIL.MAX:"discovery manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 67edf3a9ef824014be826ea4cc13d7ae + name: 'Utilization of discovery worker internal processes, in %' + type: DEPENDENT + key: process.discovery_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery worker" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 2368cc40dca345dc81b4e06f6c652f5a + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.discovery_worker.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"discovery worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.discovery_worker.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"discovery worker"}' + name: 'Zabbix proxy: Utilization of discovery worker processes is high' + event_name: 'Zabbix proxy: Utilization of discovery worker processes over {$ZABBIX.PROXY.UTIL.MAX:"discovery worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: beaa4c6f193e4dfcbd1988319156a2c8 + name: 'Utilization of history syncer internal processes, in %' + type: DEPENDENT + key: process.history_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''history syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes history syncer not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: f56becd9ed784dcf9f97fa703269b46e + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.history_syncer.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"history syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.history_syncer.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"history syncer"}' + name: 'Zabbix proxy: Utilization of history syncer processes is high' + event_name: 'Zabbix proxy: Utilization of history syncer processes over {$ZABBIX.PROXY.UTIL.MAX:"history syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 00ea59e1231947a5b16312326906d3a8 + name: 'Utilization of housekeeper internal processes, in %' + type: DEPENDENT + key: process.housekeeper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the housekeeper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''housekeeper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes housekeeper not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: f81451219df048ce92a35b9673548358 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.housekeeper.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.housekeeper.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"housekeeper"}' + name: 'Zabbix proxy: Utilization of housekeeper processes is high' + event_name: 'Zabbix proxy: Utilization of housekeeper processes over {$ZABBIX.PROXY.UTIL.MAX:"housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: fed4a2ec074748c5acc8d027156257ae + name: 'Utilization of http agent poller data collector processes, in %' + type: DEPENDENT + key: process.http_agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes http agent poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: b0bd0d9770fc4276be324b97150c691c + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.http_agent_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"http agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.http_agent_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"http agent poller"}' + name: 'Zabbix proxy: Utilization of http agent poller processes is high' + event_name: 'Zabbix proxy: Utilization of http agent poller processes over {$ZABBIX.PROXY.UTIL.MAX:"http agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 92372873a1724cb9a02e0472d0662483 + name: 'Utilization of http poller data collector processes, in %' + type: DEPENDENT + key: process.http_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes http poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 43b21d9aff8441cba1c0db97e7b193e0 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.http_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"http poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.http_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"http poller"}' + name: 'Zabbix proxy: Utilization of http poller processes is high' + event_name: 'Zabbix proxy: Utilization of http poller processes over {$ZABBIX.PROXY.UTIL.MAX:"http poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 7f031eb8ecef40ba853054c471fe7b0a + name: 'Utilization of icmp pinger data collector processes, in %' + type: DEPENDENT + key: process.icmp_pinger.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the icmp pinger processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''icmp pinger''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes icmp pinger not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 417d421e076342e5b38ab7a925dc7ee6 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.icmp_pinger.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"icmp pinger"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.icmp_pinger.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"icmp pinger"}' + name: 'Zabbix proxy: Utilization of icmp pinger processes is high' + event_name: 'Zabbix proxy: Utilization of icmp pinger processes over {$ZABBIX.PROXY.UTIL.MAX:"icmp pinger"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the icmp pinger, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 39209185bab1415a9a12b70be0e568f9 + name: 'Utilization of internal poller data collector processes, in %' + type: DEPENDENT + key: process.internal_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the internal poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''internal poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "internal poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 60dacadac60641789e7f8eb2a6441498 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.internal_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"internal poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.internal_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"internal poller"}' + name: 'Zabbix proxy: Utilization of internal poller processes is high' + event_name: 'Zabbix proxy: Utilization of internal poller processes over {$ZABBIX.PROXY.UTIL.MAX:"internal poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the internal poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 6b5f54fc00dc456e98c1669d49d84b59 + name: 'Utilization of ipmi manager internal processes, in %' + type: DEPENDENT + key: process.ipmi_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes ipmi manager not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 773bcda0a0d44428bd66f619df41a94d + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.ipmi_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"ipmi manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.ipmi_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"ipmi manager"}' + name: 'Zabbix proxy: Utilization of ipmi manager processes is high' + event_name: 'Zabbix proxy: Utilization of ipmi manager processes over {$ZABBIX.PROXY.UTIL.MAX:"ipmi manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: aa601feb9b97499995b8abfe1a001029 + name: 'Utilization of ipmi poller data collector processes, in %' + type: DEPENDENT + key: process.ipmi_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes ipmi poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 520d3b11a75c42cd911ec3e8639c7325 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.ipmi_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"ipmi poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.ipmi_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"ipmi poller"}' + name: 'Zabbix proxy: Utilization of ipmi poller processes is high' + event_name: 'Zabbix proxy: Utilization of ipmi poller processes over {$ZABBIX.PROXY.UTIL.MAX:"ipmi poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 081941c3f18743c2b62217b84e8421a1 + name: 'Utilization of java poller data collector processes, in %' + type: DEPENDENT + key: process.java_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the java poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''java poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes java poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 48c63db097c94a52a13cfea9d53a5d6e + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.java_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"java poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.java_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"java poller"}' + name: 'Zabbix proxy: Utilization of java poller processes is high' + event_name: 'Zabbix proxy: Utilization of java poller processes over {$ZABBIX.PROXY.UTIL.MAX:"java poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the java poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: af2a9d4b24084528bfe60204ca385fcd + name: 'Utilization of ODBC poller data collector processes, in %' + type: DEPENDENT + key: process.odbc_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ODBC poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''odbc poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes odbc poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: d3d1b01114b14de1b5a432fb574713f1 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.odbc_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"ODBC poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.odbc_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"ODBC poller"}' + name: 'Zabbix proxy: Utilization of ODBC poller processes is high' + event_name: 'Zabbix proxy: Utilization of ODBC poller processes over {$ZABBIX.PROXY.UTIL.MAX:"ODBC poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ODBC poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: ab3a54eb85d548e38dba2f6642372cb4 + name: 'Utilization of poller data collector processes, in %' + type: DEPENDENT + key: process.poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 1d7cee57cd28400790ea8fea6901d0a9 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"poller"}' + name: 'Zabbix proxy: Utilization of poller processes is high' + event_name: 'Zabbix proxy: Utilization of poller processes over {$ZABBIX.PROXY.UTIL.MAX:"poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: afb08d2d0f33405980c319ac25a31224 + name: 'Utilization of preprocessing manager internal processes, in %' + type: DEPENDENT + key: process.preprocessing_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes preprocessing manager not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: a3692dec8449492b8c1c0fc0ffc38ba7 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.preprocessing_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"preprocessing manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.preprocessing_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"preprocessing manager"}' + name: 'Zabbix proxy: Utilization of preprocessing manager processes is high' + event_name: 'Zabbix proxy: Utilization of preprocessing manager processes over {$ZABBIX.PROXY.UTIL.MAX:"preprocessing manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 060a18c681c340ab8ba85b92ac73fff0 + name: 'Utilization of preprocessing worker internal processes, in %' + type: DEPENDENT + key: process.preprocessing_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes preprocessing worker not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: cbdfa6eab86547a9bcc15308cb24ecec + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.preprocessing_worker.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"preprocessing worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.preprocessing_worker.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"preprocessing worker"}' + name: 'Zabbix proxy: Utilization of preprocessing worker processes is high' + event_name: 'Zabbix proxy: Utilization of preprocessing worker processes over {$ZABBIX.PROXY.UTIL.MAX:"preprocessing worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 1deace63f8e7490b86fb58161dd938b4 + name: 'Utilization of self-monitoring internal processes, in %' + type: DEPENDENT + key: process.self-monitoring.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the self-monitoring processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''self-monitoring''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes self-monitoring not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 8c731df045474ff78961106f51943a2d + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.self-monitoring.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"self-monitoring"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.self-monitoring.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"self-monitoring"}' + name: 'Zabbix proxy: Utilization of self-monitoring processes is high' + event_name: 'Zabbix proxy: Utilization of self-monitoring processes over {$ZABBIX.PROXY.UTIL.MAX:"self-monitoring"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the self-monitoring, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 09fcd6d6ff724ca7b73e3d460f858bd3 + name: 'Utilization of snmp poller data collector processes, in %' + type: DEPENDENT + key: process.snmp_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes snmp poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 37f76a103450441c91dc980877685fdf + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.snmp_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"snmp poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.snmp_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"snmp poller"}' + name: 'Zabbix proxy: Utilization of snmp poller processes is high' + event_name: 'Zabbix proxy: Utilization of snmp poller processes over {$ZABBIX.PROXY.UTIL.MAX:"snmp poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 456aec8079074dcbb20d547d90dcb8b9 + name: 'Utilization of snmp trapper data collector processes, in %' + type: DEPENDENT + key: process.snmp_trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes snmp trapper not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 125f0015cbab441f8fb585273b1be59d + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.snmp_trapper.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"snmp trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.snmp_trapper.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"snmp trapper"}' + name: 'Zabbix proxy: Utilization of snmp trapper processes is high' + event_name: 'Zabbix proxy: Utilization of snmp trapper processes over {$ZABBIX.PROXY.UTIL.MAX:"snmp trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 452f67fd89764adfb638a9ea0a902063 + name: 'Utilization of task manager internal processes, in %' + type: DEPENDENT + key: process.task_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the task manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''task manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes task manager not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 639ce0f06fa4454784458426fedce080 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.task_manager.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"task manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.task_manager.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"task manager"}' + name: 'Zabbix proxy: Utilization of task manager processes is high' + event_name: 'Zabbix proxy: Utilization of task manager processes over {$ZABBIX.PROXY.UTIL.MAX:"task manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the task manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 155b770a61d1483c9fda1d1530c62080 + name: 'Utilization of trapper data collector processes, in %' + type: DEPENDENT + key: process.trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes trapper not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: dd4185cd7ff646ccaee1d7c36eba58b4 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.trapper.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.trapper.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"trapper"}' + name: 'Zabbix proxy: Utilization of trapper processes is high' + event_name: 'Zabbix proxy: Utilization of trapper processes over {$ZABBIX.PROXY.UTIL.MAX:"trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 7eeed993f1874749849ac988a92835ba + name: 'Utilization of unreachable poller data collector processes, in %' + type: DEPENDENT + key: process.unreachable_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the unreachable poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''unreachable poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes unreachable poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 353e0603f5454b92806bc27442e4675a + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.unreachable_poller.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"unreachable poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.unreachable_poller.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"unreachable poller"}' + name: 'Zabbix proxy: Utilization of unreachable poller processes is high' + event_name: 'Zabbix proxy: Utilization of unreachable poller processes over {$ZABBIX.PROXY.UTIL.MAX:"unreachable poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the unreachable poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d38cebfe55ff45338051302e99b90454 + name: 'Utilization of vmware collector data collector processes, in %' + type: DEPENDENT + key: process.vmware_collector.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the vmware collector processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''vmware collector''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes vmware collector not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 19212b4c55a5412a8358486ccec73867 + expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.vmware_collector.avg.busy,10m)>{$ZABBIX.PROXY.UTIL.MAX:"vmware collector"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix proxy health by Zabbix agent active/process.vmware_collector.avg.busy,10m)<{$ZABBIX.PROXY.UTIL.MIN:"vmware collector"}' + name: 'Zabbix proxy: Utilization of vmware collector processes is high' + event_name: 'Zabbix proxy: Utilization of vmware collector processes over {$ZABBIX.PROXY.UTIL.MAX:"vmware collector"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the vmware collector, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 1ec67a7436c84892ac8eba71461a5cb3 + name: 'Proxy memory buffer, % used' + type: DEPENDENT + key: proxy_buffer.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + Statistics and availability of Zabbix proxy memory buffer usage statistics. Percentage of used proxy memory buffer. + Proxy memory buffer is used to store the new historical data and upload from it without accessing database. + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.[''proxy buffer''].memory.pused' + error_handler: CUSTOM_ERROR + error_handler_params: 'Proxy memory buffer is disabled.' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 58582605c4644fffaabca8e403ae7529 + expression: 'max(/Zabbix proxy health by Zabbix agent active/proxy_buffer.buffer.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"proxy buffer"}' + name: 'Zabbix proxy: Excessive proxy memory buffer usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"proxy buffer"}% used in the proxy memory buffer' + priority: AVERAGE + description: 'Consider increasing ProxyMemoryBufferSize in the zabbix_proxy.conf configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 30b187882593400aa4bf703b83ac48e9 + name: 'Proxy buffer, state changes' + type: DEPENDENT + key: proxy_buffer.state.changes + delay: '0' + description: 'The number of state changes between disk/memory buffer modes since proxy start.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.[''proxy buffer''].[''state change'']' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: ecbad291c31f4a94988256d78671e7fe + name: 'Proxy buffer, state' + type: DEPENDENT + key: proxy_buffer.state.current + delay: '0' + description: | + The current working state of proxy buffer where the new data is being stored. Possible values: + + 0 - disk (also returned when memory buffer is disabled); + 1 - memory. + valuemap: + name: 'Proxy buffer mode' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.[''proxy buffer''].state' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: 96e28e7707a546df86283808245a259b + name: 'Zabbix proxy check' + type: DEPENDENT + key: proxy_check + delay: '0' + trends: '0' + description: 'Flag indicating whether it is a proxy or not.' + valuemap: + name: 'Zabbix proxy check' + preprocessing: + - type: JSONPATH + parameters: + - $.data.triggers + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: IN_RANGE + parameters: + - '' + - '0' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 90d305b0cf7246c19aedc74b4c566148 + expression: 'last(/Zabbix proxy health by Zabbix agent active/proxy_check)=1' + name: 'Zabbix proxy: Wrong template assigned' + event_name: 'Zabbix proxy: Zabbix proxy template is assigned to Zabbix server' + priority: DISASTER + description: 'Check that the template has been selected correctly.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 91dd05ad3bef4c14a988bd2f759eff59 + name: 'Configuration cache, % used' + type: DEPENDENT + key: rcache.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix configuration cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.rcache.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 280ce16d51a04a2c98574da85639df8a + expression: 'max(/Zabbix proxy health by Zabbix agent active/rcache.buffer.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"configuration cache"}' + name: 'Zabbix proxy: Excessive configuration cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"configuration cache"}% used in the configuration cache' + priority: AVERAGE + description: 'Consider increasing `CacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 78ee655520bb495097142ba6b4ac30ab + expression: 'nodata(/Zabbix proxy health by Zabbix agent active/rcache.buffer.pused,{$ZABBIX.PROXY.NODATA_TIMEOUT})=1' + name: 'Zabbix proxy: Failed to fetch stats data' + event_name: 'Zabbix proxy: Failed to fetch stats data (or no data for {$ZABBIX.PROXY.NODATA_TIMEOUT})' + priority: WARNING + description: 'Zabbix has not received statistics data for `{$ZABBIX.PROXY.NODATA_TIMEOUT}`.' + tags: + - tag: scope + value: availability + - uuid: ac3a8cf2873a44669454c1fdd03145b3 + name: 'Required VPS' + type: DEPENDENT + key: requiredperformance + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The required performance of a proxy (the number of values that need to be collected per second).' + preprocessing: + - type: JSONPATH + parameters: + - $.data.requiredperformance + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + - uuid: bb60426c6fa1471e80f6214fbb66c66a + name: Uptime + type: DEPENDENT + key: uptime + delay: '0' + units: uptime + description: 'Uptime of the Zabbix proxy process in seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.uptime + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: f31a41c673c541e89fa0d4792506316a + expression: 'last(/Zabbix proxy health by Zabbix agent active/uptime)<10m' + name: 'Zabbix proxy: {HOST.NAME} has been restarted' + event_name: 'Zabbix proxy: {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: 0642b827f604424daf5429cccee0a3b7 + name: Version + type: DEPENDENT + key: version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of Zabbix proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 2e0d640f83e14fd1940d195bbb133ed8 + expression: 'last(/Zabbix proxy health by Zabbix agent active/version,#1)<>last(/Zabbix proxy health by Zabbix agent active/version,#2) and length(last(/Zabbix proxy health by Zabbix agent active/version))>0' + name: 'Zabbix proxy: Version has changed' + event_name: 'Zabbix proxy: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Zabbix proxy version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 6bb9f2511eb446558b5a75842a7e5018 + name: 'VMware cache, % used' + type: DEPENDENT + key: vmware.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix vmware cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vmware.pused + error_handler: CUSTOM_ERROR + error_handler_params: 'No vmware collector processes started' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: a0ed7fac6d7c4b1ea5e66e476dfdc9d1 + expression: 'max(/Zabbix proxy health by Zabbix agent active/vmware.buffer.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"vmware cache"}' + name: 'Zabbix proxy: Excessive vmware cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"vmware cache"}% used in the vmware cache' + priority: AVERAGE + description: 'Consider increasing `VMwareCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: f08835beb38c4b58ab337cb87f3ae56c + name: 'History write cache, % used' + type: DEPENDENT + key: wcache.history.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history buffer. + The history cache is used to store item values. A high number indicates database performance problems. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.history.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: eba5460898154090bb57db9b6f80aefb + expression: 'max(/Zabbix proxy health by Zabbix agent active/wcache.history.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"history cache"}' + name: 'Zabbix proxy: Excessive history cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"history cache"}% used in the history cache' + priority: AVERAGE + description: 'Consider increasing `HistoryCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 5e78de0022cf4c69a727001fbe5dafd1 + name: 'History index cache, % used' + type: DEPENDENT + key: wcache.index.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history index buffer. + The history index cache is used to index values stored in the history cache. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.index.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 0ed6244bfe5f405face0941e87c9233a + expression: 'max(/Zabbix proxy health by Zabbix agent active/wcache.index.pused,10m)>{$ZABBIX.PROXY.UTIL.MAX:"index cache"}' + name: 'Zabbix proxy: Excessive history index cache usage' + event_name: 'Zabbix proxy: More than {$ZABBIX.PROXY.UTIL.MAX:"index cache"}% used in the history index cache' + priority: AVERAGE + description: 'Consider increasing `HistoryIndexCacheSize` in the `zabbix_proxy.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 6579ae03a0b34806adb0fb996a96fec8 + name: 'Number of processed values per second' + type: DEPENDENT + key: wcache.values + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The total number of values processed by Zabbix server or Zabbix proxy, except unsupported items. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.all + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: b7cc386e51754e3f889e7023d25e6c9a + name: 'Number of processed numeric (float) values per second' + type: DEPENDENT + key: wcache.values.float + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (float) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.float + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 3a1e8466b5e84178938530c41e83afb7 + name: 'Number of processed log values per second' + type: DEPENDENT + key: wcache.values.log + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed log values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.log + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 30f6e1cf5d88497194233967cdae1e9c + name: 'Number of processed not supported values per second' + type: DEPENDENT + key: wcache.values.not_supported + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of times the item processing resulted in an item becoming unsupported or remaining in that state. + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.values[''not supported'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 26f80a634144408d96d489971307effc + name: 'Number of processed character values per second' + type: DEPENDENT + key: wcache.values.str + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed character values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.str + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 0784afdd396d4697be033476b49cd779 + name: 'Number of processed text values per second' + type: DEPENDENT + key: wcache.values.text + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed text values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.text + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 0f00c626c85742858dfd658e5823cfbf + name: 'Number of processed numeric (unsigned) values per second' + type: DEPENDENT + key: wcache.values.uint + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (unsigned) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.uint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 38016356b0c2422baeaaf83add1c07dd + name: 'Queue over 10 minutes' + type: ZABBIX_ACTIVE + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue,10m]' + description: 'The number of monitored items in the queue that are delayed by at least 10 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + triggers: + - uuid: 1bdab54e366e423aa9320baeec90f57b + expression: 'min(/Zabbix proxy health by Zabbix agent active/zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue,10m],10m)>100' + name: 'Zabbix proxy: More than 100 items have been missing data for over 10 minutes' + priority: WARNING + description: 'Indicates potential issues with network connectivity, agent failures, or unresponsive monitored resources that require attention.' + tags: + - tag: scope + value: performance + - uuid: 35c77ed090df4bb58f29a50db9584325 + name: Queue + type: ZABBIX_ACTIVE + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue]' + description: 'The number of monitored items in the queue that are delayed by at least 6 seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + - uuid: ca89ec32d7ac45aba86a319cdb4f3b0d + name: 'Zabbix stats' + type: ZABBIX_ACTIVE + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix proxy statistics.' + tags: + - tag: component + value: raw + tags: + - tag: class + value: software + - tag: target + value: proxy + - tag: target + value: zabbix + macros: + - macro: '{$ZABBIX.PROXY.ADDRESS}' + description: 'IP/DNS/network mask list of proxies to be remotely queried (default is 127.0.0.1).' + - macro: '{$ZABBIX.PROXY.NODATA_TIMEOUT}' + value: 5m + description: 'The time threshold after which statistics are considered unavailable. Used in trigger expressions.' + - macro: '{$ZABBIX.PROXY.PORT}' + description: 'Port of proxy to be remotely queried (default is 10051).' + - macro: '{$ZABBIX.PROXY.UTIL.MAX}' + value: '75' + description: 'Default maximum threshold for percentage utilization triggers (use macro context for specification).' + - macro: '{$ZABBIX.PROXY.UTIL.MIN}' + value: '65' + description: 'Default minimum threshold for percentage utilization triggers (use macro context for specification).' + dashboards: + - uuid: df9b385da30a4a049516fdfb75d7d958 + name: 'Zabbix proxy health' + auto_start: 'NO' + pages: + - name: Performance + widgets: + - type: svggraph + name: 'Cache usage, in %' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: STRING + name: ds.0.color.2 + value: ff7f00 + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: a6cee3 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: rcache.buffer.pused + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: wcache.index.pused + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: wcache.history.pused + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: vmware.buffer.pused + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: proxy_buffer.buffer.pused + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Server performance' + 'y': '6' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: wcache.values + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: 'zabbix.stats[{$ZABBIX.PROXY.ADDRESS},{$ZABBIX.PROXY.PORT},queue]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACC + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Values processed' + 'y': '11' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: wcache.values.uint + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: wcache.values.float + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: wcache.values.not_supported + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: wcache.values.str + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: wcache.values.log + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: wcache.values.text + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACD + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing throughput' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: preprocessing_throughput_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: preprocessing_throughput_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABV + - type: svggraph + name: 'Internal queues' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffff99 + - type: STRING + name: ds.0.color.1 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: preprocessing_queue + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: discovery_queue + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACB + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing VPS' + x: '36' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: preprocessing_vps_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: preprocessing_vps_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABW + - name: Processes + widgets: + - type: svggraph + name: 'Utilization: Discovery processes' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 7e57c2 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.discovery_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.discovery_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: discovery_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABH + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Synchronous gathering processes' + 'y': '6' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: ff7f00 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: 17becf + - type: STRING + name: ds.0.color.5 + value: a6cee3 + - type: STRING + name: ds.0.color.6 + value: fb9a99 + - type: STRING + name: ds.0.color.7 + value: bcbd22 + - type: STRING + name: ds.0.color.8 + value: fdbf6f + - type: STRING + name: ds.0.color.9 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.internal_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.ipmi_poller.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.ipmi_manager.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.http_poller.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.java_poller.avg.busy + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.vmware_collector.avg.busy + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.browser_poller.avg.busy + - type: ITEM + name: ds.0.itemids.8 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.odbc_poller.avg.busy + - type: ITEM + name: ds.0.itemids.9 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.icmp_pinger.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABJ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Asynchronous gathering processes' + 'y': '13' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.http_agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.snmp_poller.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABK + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Core' + 'y': '19' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: STRING + name: ds.0.color.2 + value: ff7f00 + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: a6cee3 + - type: STRING + name: ds.0.color.5 + value: fdbf6f + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.configuration_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.history_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.self-monitoring.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.task_manager.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.data_sender.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.housekeeper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '6' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABL + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Gathering processes: Trappers' + 'y': '25' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: fdbf6f + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.snmp_trapper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABM + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Data exchange with server' + 'y': '30' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: '000080' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.data_sender.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABO + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Preprocessing processes' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: fdbf6f + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.preprocessing_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.preprocessing_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: preprocessing_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABI + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Availability processes' + x: '36' + 'y': '25' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 6a3d9a + - type: STRING + name: ds.0.color.1 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.unreachable_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: process.availability_manager.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABN + - type: INTEGER + name: show_problems + value: '1' + - name: Statuses + widgets: + - type: item + name: 'Zabbix proxy version' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: version + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: Uptime + x: '18' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: uptime + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: item + name: 'Proxy buffer state' + x: '36' + width: '18' + height: '3' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix proxy health by Zabbix agent active' + key: proxy_buffer.state.current + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + valuemaps: + - uuid: 550df0eb013b4103ad00dc3cc478189d + name: 'Proxy buffer mode' + mappings: + - value: '0' + newvalue: Disk + - value: '1' + newvalue: Memory + - uuid: c5cae9ab19384c9f85fe31f7e22ab8c7 + name: 'Zabbix proxy check' + mappings: + - value: '0' + newvalue: 'True' + - value: '1' + newvalue: 'False' diff --git a/Zabbix_server_health.yaml b/Zabbix_server_health.yaml new file mode 100644 index 0000000..7d3463a --- /dev/null +++ b/Zabbix_server_health.yaml @@ -0,0 +1,3718 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: e2d2b4e4ac28483996cc11fe42823d57 + template: 'Zabbix server health' + name: 'Zabbix server health' + description: | + This template is designed to monitor internal Zabbix metrics on the local Zabbix server. + + Link this template to the local Zabbix server host. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Applications + items: + - uuid: f9d60d6dcbe14cd4aaec08aec6ca1856 + name: 'Zabbix stats cluster' + type: INTERNAL + key: 'zabbix[cluster,discovery,nodes]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix cluster statistics.' + tags: + - tag: component + value: raw + - uuid: 1a185ce77d4e4dd49be5b9ded51c1460 + name: 'Connector queue' + type: INTERNAL + key: 'zabbix[connector_queue]' + description: 'The count of values enqueued in the connector queue.' + tags: + - tag: component + value: system + - uuid: 8e02b4a9afbb4ae994f2210aac8aab83 + name: 'Discovery queue' + type: INTERNAL + key: 'zabbix[discovery_queue]' + description: 'The count of values enqueued in the discovery queue.' + tags: + - tag: component + value: system + - uuid: d596a84dece14aa59ca53e9f53b21edb + name: 'LLD queue' + type: INTERNAL + key: 'zabbix[lld_queue]' + description: 'The number of values enqueued in the low-level discovery processing queue.' + tags: + - tag: component + value: system + - uuid: 5d253eac13394305a85d6c01a4a0774e + name: 'Zabbix preprocessing' + type: INTERNAL + key: 'zabbix[preprocessing]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix server''s preprocessing statistics.' + tags: + - tag: component + value: raw + - uuid: 97485f6c9efb443caa54b44c15fdbfeb + name: 'Preprocessing queue' + type: DEPENDENT + key: 'zabbix[preprocessing_queue]' + delay: '0' + description: 'The number of values enqueued in the preprocessing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.queue + master_item: + key: 'zabbix[preprocessing]' + tags: + - tag: component + value: system + - uuid: 3f584bc48eac4e64ae605334230c1107 + name: 'Preprocessing direct throughput' + type: DEPENDENT + key: 'zabbix[preprocessing_throughput_direct]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the direct throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.direct.size + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[preprocessing]' + tags: + - tag: component + value: system + - uuid: 4476af46c9114bec80cbc555cd81ee69 + name: 'Preprocessing queued throughput' + type: DEPENDENT + key: 'zabbix[preprocessing_throughput_queued]' + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the queued throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.queued.size + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[preprocessing]' + tags: + - tag: component + value: system + - uuid: 98117bb63066414b85281a39cd0482ac + name: 'Preprocessing direct VPS' + type: DEPENDENT + key: 'zabbix[preprocessing_vps_direct]' + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of direct preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.direct.count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[preprocessing]' + tags: + - tag: component + value: system + - uuid: 7b0dce0a5b0e4271940945d4d65bfd9c + name: 'Preprocessing queued VPS' + type: DEPENDENT + key: 'zabbix[preprocessing_vps_queued]' + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of queued preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.queued.count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix[preprocessing]' + tags: + - tag: component + value: system + - uuid: 47f983079b064558976fb3cf5d50d742 + name: 'Utilization of agent poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,agent poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the agent poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 01c490b526144241930b908b64c92c97 + expression: 'avg(/Zabbix server health/zabbix[process,agent poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,agent poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"agent poller"}' + name: 'Zabbix server: Utilization of agent poller processes is high' + event_name: 'Zabbix server: Utilization of agent poller processes over {$ZABBIX.SERVER.UTIL.MAX:"agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: cac7bb12993945fe848df86f7c4502ed + name: 'Utilization of alerter internal processes, in %' + type: INTERNAL + key: 'zabbix[process,alerter,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alerter processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 20963ffd33864196ab909b60d7acdc0a + expression: 'avg(/Zabbix server health/zabbix[process,alerter,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"alerter"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,alerter,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"alerter"}' + name: 'Zabbix server: Utilization of alerter processes is high' + event_name: 'Zabbix server: Utilization of alerter processes over {$ZABBIX.SERVER.UTIL.MAX:"alerter"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alerter, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d098ea71dd22428a8a8a42cf299699b7 + name: 'Utilization of alert manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,alert manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alert manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: c7f8ac54e4d3409788b8a456046ee461 + expression: 'avg(/Zabbix server health/zabbix[process,alert manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"alert manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,alert manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"alert manager"}' + name: 'Zabbix server: Utilization of alert manager processes is high' + event_name: 'Zabbix server: Utilization of alert manager processes over {$ZABBIX.SERVER.UTIL.MAX:"alert manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alert manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: eea69b4541844ebbbbf634594c14a8f2 + name: 'Utilization of alert syncer internal processes, in %' + type: INTERNAL + key: 'zabbix[process,alert syncer,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alert syncer processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: e2a487335f2748a6b26d867290c9cfe4 + expression: 'avg(/Zabbix server health/zabbix[process,alert syncer,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"alert syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,alert syncer,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"alert syncer"}' + name: 'Zabbix server: Utilization of alert syncer processes is high' + event_name: 'Zabbix server: Utilization of alert syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"alert syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alert syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8677812221994919a46f6cbba16ad447 + name: 'Utilization of availability manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,availability manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the availability manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 048c947b3b0a440b80ad6ebfc1a43f10 + expression: 'avg(/Zabbix server health/zabbix[process,availability manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"availability manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,availability manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"availability manager"}' + name: 'Zabbix server: Utilization of availability manager processes is high' + event_name: 'Zabbix server: Utilization of availability manager processes over {$ZABBIX.SERVER.UTIL.MAX:"availability manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the availability manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: dd20332db0c64a63a82378c1e8b2685c + name: 'Utilization of browser poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,browser poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the browser poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: c260a09bb64c438bb4d3b720ecf51bc6 + expression: 'avg(/Zabbix server health/zabbix[process,browser poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"browser poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,browser poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"browser poller"}' + name: 'Zabbix server: Utilization of browser poller processes is high' + event_name: 'Zabbix server: Utilization of browser poller processes over {$ZABBIX.SERVER.UTIL.MAX:"browser poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the browser poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 301e7fe93a024444b19766e665e9d156 + name: 'Utilization of configuration syncer internal processes, in %' + type: INTERNAL + key: 'zabbix[process,configuration syncer,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 63d681dba0b94487886a1d9b3360d1d1 + expression: 'avg(/Zabbix server health/zabbix[process,configuration syncer,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,configuration syncer,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"configuration syncer"}' + name: 'Zabbix server: Utilization of configuration syncer processes is high' + event_name: 'Zabbix server: Utilization of configuration syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"configuration syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: dfb04028770e4e3e8a154304b82284ba + name: 'Utilization of configuration syncer worker internal processes, in %' + type: INTERNAL + key: 'zabbix[process,configuration syncer worker,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer worker processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: c5fe6915d3a34e13b7a2fd1326e3781a + expression: 'avg(/Zabbix server health/zabbix[process,configuration syncer worker,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration syncer worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,configuration syncer worker,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"configuration syncer worker"}' + name: 'Zabbix server: Utilization of configuration syncer worker processes is high' + event_name: 'Zabbix server: Utilization of configuration syncer worker processes over {$ZABBIX.SERVER.UTIL.MAX:"configuration syncer worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 2fcfd911ae8647149bad91c883abf41d + name: 'Utilization of connector manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,connector manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the connector manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 5d72f9b951144e6797e19315b3a2da2b + expression: 'avg(/Zabbix server health/zabbix[process,connector manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"connector manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,connector manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"connector manager"}' + name: 'Zabbix server: Utilization of connector manager processes is high' + event_name: 'Zabbix server: Utilization of connector manager processes over {$ZABBIX.SERVER.UTIL.MAX:"connector manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the connector manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 1c8c3b3045384a39af8baa9e40f2b487 + name: 'Utilization of connector worker internal processes, in %' + type: INTERNAL + key: 'zabbix[process,connector worker,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the connector worker processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: c6322f7a90d847b5a630bc9c64ce3c1b + expression: 'avg(/Zabbix server health/zabbix[process,connector worker,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"connector worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,connector worker,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"connector worker"}' + name: 'Zabbix server: Utilization of connector worker processes is high' + event_name: 'Zabbix server: Utilization of connector worker processes over {$ZABBIX.SERVER.UTIL.MAX:"connector worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the connector worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 0a06a1b172c14e068cfc4ecee1511ffc + name: 'Utilization of discovery manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,discovery manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 5af0558db3264b43981aafa8969ce433 + expression: 'avg(/Zabbix server health/zabbix[process,discovery manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"discovery manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,discovery manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"discovery manager"}' + name: 'Zabbix server: Utilization of discovery manager processes is high' + event_name: 'Zabbix server: Utilization of discovery manager processes over {$ZABBIX.SERVER.UTIL.MAX:"discovery manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a88bad7225d3417da697220615252226 + name: 'Utilization of discovery worker internal processes, in %' + type: INTERNAL + key: 'zabbix[process,discovery worker,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery worker processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 8dc524466ce04c0e97b613305fee0153 + expression: 'avg(/Zabbix server health/zabbix[process,discovery worker,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"discovery worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,discovery worker,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"discovery worker"}' + name: 'Zabbix server: Utilization of discovery worker processes is high' + event_name: 'Zabbix server: Utilization of discovery worker processes over {$ZABBIX.SERVER.UTIL.MAX:"discovery worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d12ce718fad34644b92d98cf2096e7df + name: 'Utilization of escalator internal processes, in %' + type: INTERNAL + key: 'zabbix[process,escalator,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the escalator processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 9895b4318f50487d9c7f25abd48bb1a1 + expression: 'avg(/Zabbix server health/zabbix[process,escalator,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"escalator"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,escalator,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"escalator"}' + name: 'Zabbix server: Utilization of escalator processes is high' + event_name: 'Zabbix server: Utilization of escalator processes over {$ZABBIX.SERVER.UTIL.MAX:"escalator"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the escalator, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8de74bea977141469cf2d594bc907968 + name: 'Utilization of history poller internal processes, in %' + type: INTERNAL + key: 'zabbix[process,history poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history poller processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 9a76cde4aaea4e8eb48f725e9653037b + expression: 'avg(/Zabbix server health/zabbix[process,history poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"history poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,history poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"history poller"}' + name: 'Zabbix server: Utilization of history poller processes is high' + event_name: 'Zabbix server: Utilization of history poller processes over {$ZABBIX.SERVER.UTIL.MAX:"history poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 4d92eb7b411345cfbd6e2ea2ff5c1788 + name: 'Utilization of history syncer internal processes, in %' + type: INTERNAL + key: 'zabbix[process,history syncer,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history syncer processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: a99ffd43a05e40f7abee83aa8c6c3ce5 + expression: 'avg(/Zabbix server health/zabbix[process,history syncer,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"history syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,history syncer,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"history syncer"}' + name: 'Zabbix server: Utilization of history syncer processes is high' + event_name: 'Zabbix server: Utilization of history syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"history syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 23f448b5acba472881857647ca1bb614 + name: 'Utilization of housekeeper internal processes, in %' + type: INTERNAL + key: 'zabbix[process,housekeeper,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the housekeeper processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: faa349f84dc043658fe51294ad87f766 + expression: 'avg(/Zabbix server health/zabbix[process,housekeeper,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,housekeeper,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"housekeeper"}' + name: 'Zabbix server: Utilization of housekeeper processes is high' + event_name: 'Zabbix server: Utilization of housekeeper processes over {$ZABBIX.SERVER.UTIL.MAX:"housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 71934ae835034df5b9ce97eeb859b96b + name: 'Utilization of http agent poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,http agent poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http agent poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 3ba6561155df4cebb1111a6f229c483a + expression: 'avg(/Zabbix server health/zabbix[process,http agent poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"http agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,http agent poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"http agent poller"}' + name: 'Zabbix server: Utilization of http agent poller processes is high' + event_name: 'Zabbix server: Utilization of http agent poller processes over {$ZABBIX.SERVER.UTIL.MAX:"http agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 419e937c4a1d4fa09c4b50ca88cbe3e2 + name: 'Utilization of http poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,http poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: c296c1ecdba44bd5b826ab4a86bbc300 + expression: 'avg(/Zabbix server health/zabbix[process,http poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"http poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,http poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"http poller"}' + name: 'Zabbix server: Utilization of http poller processes is high' + event_name: 'Zabbix server: Utilization of http poller processes over {$ZABBIX.SERVER.UTIL.MAX:"http poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d5d469d5eb2e4e0ca0afc89b603d4065 + name: 'Utilization of icmp pinger data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,icmp pinger,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the icmp pinger processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: d5c6ea5711594a9587ab8d7094f1f481 + expression: 'avg(/Zabbix server health/zabbix[process,icmp pinger,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"icmp pinger"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,icmp pinger,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"icmp pinger"}' + name: 'Zabbix server: Utilization of icmp pinger processes is high' + event_name: 'Zabbix server: Utilization of icmp pinger processes over {$ZABBIX.SERVER.UTIL.MAX:"icmp pinger"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the icmp pinger, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 912dd7b55d244aa9bbc3af17ba168b13 + name: 'Utilization of internal poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,internal poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the internal poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 9bf9a345764740b79eb7e36398992593 + expression: 'avg(/Zabbix server health/zabbix[process,internal poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"internal poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,internal poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"internal poller"}' + name: 'Zabbix server: Utilization of internal poller processes is high' + event_name: 'Zabbix server: Utilization of internal poller processes over {$ZABBIX.SERVER.UTIL.MAX:"internal poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the internal poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 24b6b466929347f0a8164c89ba5624fe + name: 'Utilization of ipmi manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,ipmi manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 9ce0c874e5924b308827e8be5a9bf0eb + expression: 'avg(/Zabbix server health/zabbix[process,ipmi manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"ipmi manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,ipmi manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"ipmi manager"}' + name: 'Zabbix server: Utilization of ipmi manager processes is high' + event_name: 'Zabbix server: Utilization of ipmi manager processes over {$ZABBIX.SERVER.UTIL.MAX:"ipmi manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c11d415de9c64fd6911f82d49db140d3 + name: 'Utilization of ipmi poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,ipmi poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 5a4f841292fd4bb5bec2e28340c9e4c2 + expression: 'avg(/Zabbix server health/zabbix[process,ipmi poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"ipmi poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,ipmi poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"ipmi poller"}' + name: 'Zabbix server: Utilization of ipmi poller processes is high' + event_name: 'Zabbix server: Utilization of ipmi poller processes over {$ZABBIX.SERVER.UTIL.MAX:"ipmi poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a8168691df3d43f1a1e106062f18ee06 + name: 'Utilization of java poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,java poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the java poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: d7705ba9c3f74554ac21c59c9a0dcc11 + expression: 'avg(/Zabbix server health/zabbix[process,java poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"java poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,java poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"java poller"}' + name: 'Zabbix server: Utilization of java poller processes is high' + event_name: 'Zabbix server: Utilization of java poller processes over {$ZABBIX.SERVER.UTIL.MAX:"java poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the java poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 5e0ffccdaa51459c90d4868e61b1c6a8 + name: 'Utilization of LLD manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,lld manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the LLD manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 39109dabd9454844996864834292c0c4 + expression: 'avg(/Zabbix server health/zabbix[process,lld manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"LLD manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,lld manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"LLD manager"}' + name: 'Zabbix server: Utilization of LLD manager processes is high' + event_name: 'Zabbix server: Utilization of LLD manager processes over {$ZABBIX.SERVER.UTIL.MAX:"LLD manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the LLD manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 0b7b36eea80448ac8d11f7f30fb355da + name: 'Utilization of LLD worker internal processes, in %' + type: INTERNAL + key: 'zabbix[process,lld worker,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the LLD worker processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 8eca01d6e0e64f5795d3a5b5e4aa593d + expression: 'avg(/Zabbix server health/zabbix[process,lld worker,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"LLD worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,lld worker,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"LLD worker"}' + name: 'Zabbix server: Utilization of LLD worker processes is high' + event_name: 'Zabbix server: Utilization of LLD worker processes over {$ZABBIX.SERVER.UTIL.MAX:"LLD worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the LLD worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: f8d593ff5690419f8679a5b8303f3a66 + name: 'Utilization of ODBC poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,odbc poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ODBC poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: f536b921e9444c6eb0ac805ab9302af9 + expression: 'avg(/Zabbix server health/zabbix[process,odbc poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"ODBC poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,odbc poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"ODBC poller"}' + name: 'Zabbix server: Utilization of ODBC poller processes is high' + event_name: 'Zabbix server: Utilization of ODBC poller processes over {$ZABBIX.SERVER.UTIL.MAX:"ODBC poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ODBC poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: cbec202e15be49de93dc0c5f58824ae3 + name: 'Utilization of poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: bb50da4052134ef1a478bface291b50a + expression: 'avg(/Zabbix server health/zabbix[process,poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"poller"}' + name: 'Zabbix server: Utilization of poller processes is high' + event_name: 'Zabbix server: Utilization of poller processes over {$ZABBIX.SERVER.UTIL.MAX:"poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: fc7999dd8d2d41a5a80eeb4b6c4c9b13 + name: 'Utilization of preprocessing manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,preprocessing manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 6e7a117afa7e41e2a783f8afc42434fa + expression: 'avg(/Zabbix server health/zabbix[process,preprocessing manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"preprocessing manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,preprocessing manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"preprocessing manager"}' + name: 'Zabbix server: Utilization of preprocessing manager processes is high' + event_name: 'Zabbix server: Utilization of preprocessing manager processes over {$ZABBIX.SERVER.UTIL.MAX:"preprocessing manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 6af695693d41434a96c0c6a020580828 + name: 'Utilization of preprocessing worker internal processes, in %' + type: INTERNAL + key: 'zabbix[process,preprocessing worker,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing worker processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: e2cbdcc8b4844943a67d1f51587e599c + expression: 'avg(/Zabbix server health/zabbix[process,preprocessing worker,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"preprocessing worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,preprocessing worker,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"preprocessing worker"}' + name: 'Zabbix server: Utilization of preprocessing worker processes is high' + event_name: 'Zabbix server: Utilization of preprocessing worker processes over {$ZABBIX.SERVER.UTIL.MAX:"preprocessing worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 306334d48ce6427d93ca8fbe292b8a11 + name: 'Utilization of proxy group manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,proxy group manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the proxy group manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 67db7f858e0348feb7cfe26f2afa1bd6 + expression: 'avg(/Zabbix server health/zabbix[process,proxy group manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"proxy group manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,proxy group manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"proxy group manager"}' + name: 'Zabbix server: Utilization of proxy group manager processes is high' + event_name: 'Zabbix server: Utilization of proxy group manager processes over {$ZABBIX.SERVER.UTIL.MAX:"proxy group manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the proxy group manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: baf22e095078435d978a6c4374500db4 + name: 'Utilization of proxy poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,proxy poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the proxy poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 6a884c1fbf254637bb74b68571ee2ffa + expression: 'avg(/Zabbix server health/zabbix[process,proxy poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"proxy poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,proxy poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"proxy poller"}' + name: 'Zabbix server: Utilization of proxy poller processes is high' + event_name: 'Zabbix server: Utilization of proxy poller processes over {$ZABBIX.SERVER.UTIL.MAX:"proxy poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the proxy poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 3db38f5d250741fd833aec23e09bc52e + name: 'Utilization of report manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,report manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the report manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 82f774b4a47247f49db1ab0480a69eae + expression: 'avg(/Zabbix server health/zabbix[process,report manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"report manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,report manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"report manager"}' + name: 'Zabbix server: Utilization of report manager processes is high' + event_name: 'Zabbix server: Utilization of report manager processes over {$ZABBIX.SERVER.UTIL.MAX:"report manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the report manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9c74858428cb4578b8a9095140b64d52 + name: 'Utilization of report writer internal processes, in %' + type: INTERNAL + key: 'zabbix[process,report writer,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the report writer processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 03158d902b854b3495aa76042f361bea + expression: 'avg(/Zabbix server health/zabbix[process,report writer,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"report writer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,report writer,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"report writer"}' + name: 'Zabbix server: Utilization of report writer processes is high' + event_name: 'Zabbix server: Utilization of report writer processes over {$ZABBIX.SERVER.UTIL.MAX:"report writer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the report writer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 6fc9c055d4894c19b3b1075db106d995 + name: 'Utilization of self-monitoring internal processes, in %' + type: INTERNAL + key: 'zabbix[process,self-monitoring,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the self-monitoring processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: bf730ed3313f45248f483289c704f5e9 + expression: 'avg(/Zabbix server health/zabbix[process,self-monitoring,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"self-monitoring"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,self-monitoring,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"self-monitoring"}' + name: 'Zabbix server: Utilization of self-monitoring processes is high' + event_name: 'Zabbix server: Utilization of self-monitoring processes over {$ZABBIX.SERVER.UTIL.MAX:"self-monitoring"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the self-monitoring, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 4f6c2b59437c4345b348d78b5d2242db + name: 'Utilization of service manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,service manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the service manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: c4cdbce205e843d6b882503961a15376 + expression: 'avg(/Zabbix server health/zabbix[process,service manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"service manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,service manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"service manager"}' + name: 'Zabbix server: Utilization of service manager processes is high' + event_name: 'Zabbix server: Utilization of service manager processes over {$ZABBIX.SERVER.UTIL.MAX:"service manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the service manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: aa5db45e74834355a80566316017d6d4 + name: 'Utilization of snmp poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,snmp poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 3fab1765b54b4036a03ca1fb69763e81 + expression: 'avg(/Zabbix server health/zabbix[process,snmp poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"snmp poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,snmp poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"snmp poller"}' + name: 'Zabbix server: Utilization of snmp poller processes is high' + event_name: 'Zabbix server: Utilization of snmp poller processes over {$ZABBIX.SERVER.UTIL.MAX:"snmp poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: cb9a7c4f3373496da97f3e0b8c978366 + name: 'Utilization of snmp trapper data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,snmp trapper,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp trapper processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 821611786e5e49bf941cbca370d6ed6b + expression: 'avg(/Zabbix server health/zabbix[process,snmp trapper,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"snmp trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,snmp trapper,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"snmp trapper"}' + name: 'Zabbix server: Utilization of snmp trapper processes is high' + event_name: 'Zabbix server: Utilization of snmp trapper processes over {$ZABBIX.SERVER.UTIL.MAX:"snmp trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: caeb7ecc88cc4c14bb80f901284be9a5 + name: 'Utilization of task manager internal processes, in %' + type: INTERNAL + key: 'zabbix[process,task manager,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the task manager processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 37c1c6ec07474a8a95b06c3c28e4bf96 + expression: 'avg(/Zabbix server health/zabbix[process,task manager,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"task manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,task manager,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"task manager"}' + name: 'Zabbix server: Utilization of task manager processes is high' + event_name: 'Zabbix server: Utilization of task manager processes over {$ZABBIX.SERVER.UTIL.MAX:"task manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the task manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 3af0ec03af6542e18aaff505e3806089 + name: 'Utilization of timer internal processes, in %' + type: INTERNAL + key: 'zabbix[process,timer,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the timer processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 0c7715df608f4736a7077ff2f6098adc + expression: 'avg(/Zabbix server health/zabbix[process,timer,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"timer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,timer,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"timer"}' + name: 'Zabbix server: Utilization of timer processes is high' + event_name: 'Zabbix server: Utilization of timer processes over {$ZABBIX.SERVER.UTIL.MAX:"timer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the timer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 0dd727eddfaf45a9a819a9d64c5b72c7 + name: 'Utilization of trapper data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,trapper,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trapper processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 197c04bbf5204ce7ac80630f2948b6b0 + expression: 'avg(/Zabbix server health/zabbix[process,trapper,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,trapper,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"trapper"}' + name: 'Zabbix server: Utilization of trapper processes is high' + event_name: 'Zabbix server: Utilization of trapper processes over {$ZABBIX.SERVER.UTIL.MAX:"trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: ad2199d0152d4deb8259699ebd1f3da5 + name: 'Utilization of trigger housekeeper internal processes, in %' + type: INTERNAL + key: 'zabbix[process,trigger housekeeper,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trigger housekeeper processes have been busy for the last minute.' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 5ffa02f393d34c49bcb9eed2b2b89704 + expression: 'avg(/Zabbix server health/zabbix[process,trigger housekeeper,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"trigger housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,trigger housekeeper,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"trigger housekeeper"}' + name: 'Zabbix server: Utilization of trigger housekeeper processes is high' + event_name: 'Zabbix server: Utilization of trigger housekeeper processes over {$ZABBIX.SERVER.UTIL.MAX:"trigger housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trigger housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 4fd24bdb8935435e8617c9607b9c6ca1 + name: 'Utilization of unreachable poller data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,unreachable poller,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the unreachable poller processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: b0168864ef6849f185deb6ef22a056fa + expression: 'avg(/Zabbix server health/zabbix[process,unreachable poller,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"unreachable poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,unreachable poller,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"unreachable poller"}' + name: 'Zabbix server: Utilization of unreachable poller processes is high' + event_name: 'Zabbix server: Utilization of unreachable poller processes over {$ZABBIX.SERVER.UTIL.MAX:"unreachable poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the unreachable poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: bad00e43cd064a0fb3a4b65b71bea926 + name: 'Utilization of vmware collector data collector processes, in %' + type: INTERNAL + key: 'zabbix[process,vmware collector,avg,busy]' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the vmware collector processes have been busy for the last minute.' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 7e0881bb1b384deba18439ae098a7fbd + expression: 'avg(/Zabbix server health/zabbix[process,vmware collector,avg,busy],10m)>{$ZABBIX.SERVER.UTIL.MAX:"vmware collector"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health/zabbix[process,vmware collector,avg,busy],10m)<{$ZABBIX.SERVER.UTIL.MIN:"vmware collector"}' + name: 'Zabbix server: Utilization of vmware collector processes is high' + event_name: 'Zabbix server: Utilization of vmware collector processes over {$ZABBIX.SERVER.UTIL.MAX:"vmware collector"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the vmware collector, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 6fb9d6a8d3f84c679e7af4b9ef437239 + name: 'Zabbix proxies stats' + type: INTERNAL + key: 'zabbix[proxy,discovery]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix proxies'' statistics.' + tags: + - tag: component + value: raw + - uuid: efba7193b9aa48c385e98c9babfaa689 + name: 'Zabbix proxy groups stats' + type: INTERNAL + key: 'zabbix[proxy group,discovery]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix proxy groups'' statistics.' + tags: + - tag: component + value: raw + - uuid: 2b2f695ed1ef4a7a871c80df9c911e90 + name: 'Queue over 10 minutes' + type: INTERNAL + key: 'zabbix[queue,10m]' + description: 'The number of monitored items in the queue that are delayed by at least 10 minutes.' + tags: + - tag: component + value: system + triggers: + - uuid: 53883a57e663421ca5fa794067a267b4 + expression: 'min(/Zabbix server health/zabbix[queue,10m],10m)>100' + name: 'Zabbix server: More than 100 items have been missing data for over 10 minutes' + priority: WARNING + description: 'Indicates potential issues with network connectivity, agent failures, or unresponsive monitored resources that require attention.' + tags: + - tag: scope + value: performance + - uuid: aaf58555c0774e848f51a351b6ae8462 + name: Queue + type: INTERNAL + key: 'zabbix[queue]' + description: 'The number of monitored items in the queue that are delayed by at least 6 seconds.' + tags: + - tag: component + value: system + - uuid: ac2aebc15b084d049538b12e9513c08d + name: 'Configuration cache, % used' + type: INTERNAL + key: 'zabbix[rcache,buffer,pused]' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix configuration cache. The percentage of used data buffer.' + tags: + - tag: component + value: system + triggers: + - uuid: 088a0e0ac64442a29de4d86f11c87438 + expression: 'max(/Zabbix server health/zabbix[rcache,buffer,pused],10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration cache"}' + name: 'Zabbix server: Excessive configuration cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"configuration cache"}% used in the configuration cache' + priority: AVERAGE + description: 'Consider increasing `CacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: b14a5ba6c93f4d6c9dfd820640d34e9b + name: 'Trend function cache, % of unique requests' + type: INTERNAL + key: 'zabbix[tcache,cache,pitems]' + value_type: FLOAT + units: '%' + description: | + The effectiveness statistics of the Zabbix trend function cache. The percentage of cached items calculated from the sum of the cached items plus requests. + A low percentage most likely means that the cache size can be reduced. + tags: + - tag: component + value: system + - uuid: 6db1280cb0134e81af8e070ae2356e7b + name: 'Trend function cache, % of misses' + type: INTERNAL + key: 'zabbix[tcache,cache,pmisses]' + value_type: FLOAT + units: '%' + description: 'The effectiveness statistics of the Zabbix trend function cache. The percentage of cache misses.' + tags: + - tag: component + value: system + - uuid: 9a2d6f239ea642b9b231801db68638b5 + name: 'Zabbix server check' + type: INTERNAL + key: 'zabbix[triggers]' + trends: '0' + description: 'Flag indicating whether it is a server or not.' + valuemap: + name: 'Zabbix server check' + preprocessing: + - type: CHECK_NOT_SUPPORTED + parameters: + - '-1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: IN_RANGE + parameters: + - '' + - '0' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 3b0969d950ac4f9e878d0f7d72d83af2 + expression: 'last(/Zabbix server health/zabbix[triggers])=0' + name: 'Zabbix server: Wrong template assigned' + event_name: 'Zabbix server: Zabbix server template is assigned to Zabbix proxy' + priority: DISASTER + description: 'Check that the template has been selected correctly.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 559ca5966e404c948f99cabf7a9077e8 + name: 'Value cache, % used' + type: INTERNAL + key: 'zabbix[vcache,buffer,pused]' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix value cache. The percentage of used data buffer.' + tags: + - tag: component + value: system + triggers: + - uuid: cdca16919f6648ebbe6119e7c23a98c7 + expression: 'max(/Zabbix server health/zabbix[vcache,buffer,pused],10m)>{$ZABBIX.SERVER.UTIL.MAX:"value cache"}' + name: 'Zabbix server: Excessive value cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"value cache"}% used in the value cache' + priority: AVERAGE + description: 'Consider increasing `ValueCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 69b14487a9744dbb866f2e6ee131d0e5 + name: 'Value cache hits' + type: INTERNAL + key: 'zabbix[vcache,cache,hits]' + value_type: FLOAT + units: '!vps' + description: 'The effectiveness statistics of Zabbix value cache. The number of cache hits (history values taken from the cache).' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: system + - uuid: c78439859fd248cdb15e1eee37be2220 + name: 'Value cache misses' + type: INTERNAL + key: 'zabbix[vcache,cache,misses]' + value_type: FLOAT + units: '!vps' + description: 'The effectiveness statistics of Zabbix value cache. The number of cache misses (history values taken from the database).' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: system + - uuid: 07379df0114445b7b06818736f011ca6 + name: 'Value cache operating mode' + type: INTERNAL + key: 'zabbix[vcache,cache,mode]' + units: '!vps' + description: 'The operating mode of the value cache.' + valuemap: + name: 'Value cache operating mode' + tags: + - tag: component + value: system + triggers: + - uuid: ee3db7e7bc104f1598ca36e735bce53f + expression: 'last(/Zabbix server health/zabbix[vcache,cache,mode])=1' + name: 'Zabbix server: Zabbix value cache working in low-memory mode' + priority: HIGH + description: 'Once low-memory mode has been switched on, the value cache will remain in this state for 24 hours, even if the problem that triggered this mode is resolved sooner.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 140cf84640564a60bcd107bebf9ac2e3 + name: Version + type: INTERNAL + key: 'zabbix[version]' + value_type: CHAR + trends: '0' + description: 'The version of Zabbix server.' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + triggers: + - uuid: 456403a2063c4e2298f9e3f60a7a3180 + expression: 'last(/Zabbix server health/zabbix[version],#1)<>last(/Zabbix server health/zabbix[version],#2) and length(last(/Zabbix server health/zabbix[version]))>0' + name: 'Zabbix server: Version has changed' + event_name: 'Zabbix server: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Zabbix server version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d273413004094604ad247c0ff9695879 + name: 'VMware cache, % used' + type: INTERNAL + key: 'zabbix[vmware,buffer,pused]' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix vmware cache. The percentage of used data buffer.' + tags: + - tag: component + value: system + triggers: + - uuid: 2df2ed6520c44ee880f35912f869583e + expression: 'max(/Zabbix server health/zabbix[vmware,buffer,pused],10m)>{$ZABBIX.SERVER.UTIL.MAX:"vmware cache"}' + name: 'Zabbix server: Excessive vmware cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"vmware cache"}% used in the vmware cache' + priority: AVERAGE + description: 'Consider increasing `VMwareCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 0f61de4dcc1b469a94dd024e1b932936 + name: 'Number of values synchronized with the database per second' + type: INTERNAL + key: 'zabbix[vps,written]' + value_type: FLOAT + units: '!vps' + description: 'Average quantity of values written to the database, recalculated once per minute.' + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 1ae8253bb4da434da3ea6bcb0352115d + name: 'History write cache, % used' + type: INTERNAL + key: 'zabbix[wcache,history,pused]' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history buffer. + The history cache is used to store item values. A high number indicates database performance problems. + tags: + - tag: component + value: system + triggers: + - uuid: 5d63483588964e49b1f870dfb770bf04 + expression: 'max(/Zabbix server health/zabbix[wcache,history,pused],10m)>{$ZABBIX.SERVER.UTIL.MAX:"history cache"}' + name: 'Zabbix server: Excessive history cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"history cache"}% used in the history cache' + priority: AVERAGE + description: 'Consider increasing `HistoryCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 9fc7faf5455e4e78bdb1406f947bfa08 + name: 'History index cache, % used' + type: INTERNAL + key: 'zabbix[wcache,index,pused]' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history index buffer. + The history index cache is used to index values stored in the history cache. + tags: + - tag: component + value: system + triggers: + - uuid: 24245fbc55b743319162dd1edb37c5a0 + expression: 'max(/Zabbix server health/zabbix[wcache,index,pused],10m)>{$ZABBIX.SERVER.UTIL.MAX:"index cache"}' + name: 'Zabbix server: Excessive history index cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"index cache"}% used in the history index cache' + priority: AVERAGE + description: 'Consider increasing `HistoryIndexCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 5cca0fc9878d4e068467d5a3b8558ed5 + name: 'Trend write cache, % used' + type: INTERNAL + key: 'zabbix[wcache,trend,pused]' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used trend buffer. + The trend cache stores the aggregate of all items that have received data for the current hour. + tags: + - tag: component + value: system + triggers: + - uuid: 34426156de6b4690918117a23ccc1138 + expression: 'max(/Zabbix server health/zabbix[wcache,trend,pused],10m)>{$ZABBIX.SERVER.UTIL.MAX:"trend cache"}' + name: 'Zabbix server: Excessive trends cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"trend cache"}% used in the trends cache' + priority: AVERAGE + description: 'Consider increasing `TrendCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: de63f78f36e74361b6c9993d12d8b7c8 + name: 'Number of processed numeric (float) values per second' + type: INTERNAL + key: 'zabbix[wcache,values,float]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (float) values. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: dae76dc6c4ce4707be7cf9534efc0233 + name: 'Number of processed log values per second' + type: INTERNAL + key: 'zabbix[wcache,values,log]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed log values. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: c99a99cf7e1e44918736ab860694d3a4 + name: 'Number of processed not supported values per second' + type: INTERNAL + key: 'zabbix[wcache,values,not supported]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of times the item processing resulted in an item becoming unsupported or remaining in that state. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: b58fdd85cd6a48489d0b983ee8ebe97b + name: 'Number of processed character values per second' + type: INTERNAL + key: 'zabbix[wcache,values,str]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed character values. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 5397d6d4dedc44c29ff25b8fd5611003 + name: 'Number of processed text values per second' + type: INTERNAL + key: 'zabbix[wcache,values,text]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed text values. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 47132a8565c943c0abbd4918d6af9339 + name: 'Number of processed numeric (unsigned) values per second' + type: INTERNAL + key: 'zabbix[wcache,values,uint]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (unsigned) values. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: db364af6bcb24881850f3979933fccb0 + name: 'Number of processed values per second' + type: INTERNAL + key: 'zabbix[wcache,values]' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The total number of values processed by Zabbix server or Zabbix proxy, except unsupported items. + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: component + value: nvps + - tag: component + value: system + discovery_rules: + - uuid: 32bf5c3b8f1f4d10b26806ae0d2adb25 + name: 'High availability cluster node discovery' + type: DEPENDENT + key: zabbix.nodes.discovery + delay: '0' + description: 'LLD rule with item and trigger prototypes for node discovery.' + item_prototypes: + - uuid: c5cb7ffbd314494cb1801ae804e9c76e + name: 'Cluster node [{#NODE.NAME}]: Address' + type: DEPENDENT + key: 'zabbix.node.address[{#NODE.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The IPv4 address of a node.' + preprocessing: + - type: JSONPATH + parameters: + - $.address + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: f444de7cdd7a4f3bb7f4b1f2e86e16d7 + name: 'Cluster node [{#NODE.NAME}]: Last access age' + type: DEPENDENT + key: 'zabbix.node.lastaccess.age[{#NODE.ID}]' + delay: '0' + units: uptime + description: 'The time between the database''s `unix_timestamp()` and the last access time.' + preprocessing: + - type: JSONPATH + parameters: + - $.lastaccess_age + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 2e33f747803b45d7a9b94c171bf36f61 + name: 'Cluster node [{#NODE.NAME}]: Last access time' + type: DEPENDENT + key: 'zabbix.node.lastaccess.time[{#NODE.ID}]' + delay: '0' + units: unixtime + description: 'Last access time.' + preprocessing: + - type: JSONPATH + parameters: + - $.lastaccess + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 4cf654a5bbb74ad69847b4ff15d0b623 + name: 'Cluster node [{#NODE.NAME}]: Stats' + type: DEPENDENT + key: 'zabbix.node.stats[{#NODE.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Provides the statistics of a node.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.id=="{#NODE.ID}")].first()' + master_item: + key: 'zabbix[cluster,discovery,nodes]' + tags: + - tag: component + value: cluster + - tag: component + value: raw + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 1e4de6a913764a22862c0265d329b592 + name: 'Cluster node [{#NODE.NAME}]: Status' + type: DEPENDENT + key: 'zabbix.node.status[{#NODE.ID}]' + delay: '0' + description: 'The status of a node.' + valuemap: + name: 'Cluster node status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 8d48978fb5724d19a950aa6eb8a3dd75 + expression: 'last(/Zabbix server health/zabbix.node.status[{#NODE.ID}],#1)<>last(/Zabbix server health/zabbix.node.status[{#NODE.ID}],#2)' + name: 'Zabbix server: Cluster node [{#NODE.NAME}]: Status changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The state of the node has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: 'zabbix[cluster,discovery,nodes]' + lld_macro_paths: + - lld_macro: '{#NODE.ID}' + path: $.id + - lld_macro: '{#NODE.NAME}' + path: $.name + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var hacluster = JSON.parse(value); + + result = hacluster.map(function (hanode) { + return { + 'id': hanode.id, + 'name': hanode.name + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: d6e3db2614914c1b977c7eb1b748bda6 + name: 'Zabbix proxy discovery' + type: DEPENDENT + key: zabbix.proxy.discovery + delay: '0' + description: 'LLD rule with item and trigger prototypes for proxy discovery.' + item_prototypes: + - uuid: 5cf1d8eae42740c88e2700ec619fc0e7 + name: 'Proxy [{#PROXY.NAME}]: Certificate' + type: DEPENDENT + key: 'zabbix.proxy.cert[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.cert + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 38498bb9fc884b2082ff5ecf76cc401e + name: 'Proxy [{#PROXY.NAME}]: Compatibility' + type: DEPENDENT + key: 'zabbix.proxy.compatibility[{#PROXY.NAME}]' + delay: '0' + description: | + Version of proxy compared to Zabbix server version. + + Possible values: + 0 - Undefined; + 1 - Current version (proxy and server have the same major version); + 2 - Outdated version (proxy version is older than server version, but is partially supported); + 3 - Unsupported version (proxy version is older than server previous LTS release version or server major version is older than proxy major version). + valuemap: + name: Compatibility + preprocessing: + - type: JSONPATH + parameters: + - $.compatibility + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + trigger_prototypes: + - uuid: d3b969b57fc74a2e96b8cf90f3159847 + expression: 'last(/Zabbix server health/zabbix.proxy.compatibility[{#PROXY.NAME}],#1)=3' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy is not supported' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Zabbix proxy version is older than server previous LTS release version or server major version is older than proxy major version.' + tags: + - tag: scope + value: availability + - uuid: 519cd429ab184d9ba08a50968dc3e1e6 + expression: 'last(/Zabbix server health/zabbix.proxy.compatibility[{#PROXY.NAME}],#1)=2' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy is outdated' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy version is older than server version, but is partially supported. Only data collection and remote execution is available.' + tags: + - tag: scope + value: availability + - uuid: 5983273711b64a93bd30c7ba983f2b35 + name: 'Proxy [{#PROXY.NAME}]: Compression' + type: DEPENDENT + key: 'zabbix.proxy.compression[{#PROXY.NAME}]' + delay: '0' + description: 'The compression status of a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.compression + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 01c4a2f48dce46e0a931fc7ab906800d + name: 'Proxy [{#PROXY.NAME}]: Host count' + type: DEPENDENT + key: 'zabbix.proxy.hosts[{#PROXY.NAME}]' + delay: '0' + description: 'The number of enabled hosts assigned to a proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.hosts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 187a005cd52c4ed69919b0356c1ccd39 + name: 'Proxy [{#PROXY.NAME}]: Item count' + type: DEPENDENT + key: 'zabbix.proxy.items[{#PROXY.NAME}]' + delay: '0' + description: 'The number of enabled items on enabled hosts assigned to a proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.items + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: f8c915861df843bc9c95ec8034d66fb7 + name: 'Proxy [{#PROXY.NAME}]: Last seen, in seconds' + type: DEPENDENT + key: 'zabbix.proxy.last_seen[{#PROXY.NAME}]' + delay: '0' + value_type: FLOAT + description: 'The time when a proxy was last seen by a server.' + valuemap: + name: 'Last seen' + preprocessing: + - type: JSONPATH + parameters: + - $.last_seen + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + trigger_prototypes: + - uuid: ee5eb0e4962b4bb59ac316a4110c86e3 + expression: 'last(/Zabbix server health/zabbix.proxy.last_seen[{#PROXY.NAME}],#1)>{$ZABBIX.PROXY.LAST_SEEN.MAX}' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy last seen' + event_name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy last seen more than {$ZABBIX.PROXY.LAST_SEEN.MAX} seconds ago' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy is not updating the configuration data.' + tags: + - tag: scope + value: availability + - uuid: 541732183fa747d6b7a05351172720bc + expression: 'last(/Zabbix server health/zabbix.proxy.last_seen[{#PROXY.NAME}],#1)=-1' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy never seen' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy is not updating the configuration data.' + tags: + - tag: scope + value: availability + - uuid: 357461ce5cd24632a1359c8ab31e0422 + name: 'Proxy [{#PROXY.NAME}]: Mode' + type: DEPENDENT + key: 'zabbix.proxy.mode[{#PROXY.NAME}]' + delay: '0' + description: 'The mode of Zabbix proxy.' + valuemap: + name: 'Proxy mode' + preprocessing: + - type: JSONPATH + parameters: + - $.passive + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: a68564ff50284903bdc38432638a653b + name: 'Proxy [{#PROXY.NAME}]: PSK' + type: DEPENDENT + key: 'zabbix.proxy.psk[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.psk + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 3e45db48df464b91a4951f13dd298cd5 + name: 'Proxy [{#PROXY.NAME}]: Required VPS' + type: DEPENDENT + key: 'zabbix.proxy.requiredperformance[{#PROXY.NAME}]' + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The required performance of a proxy (the number of values that need to be collected per second).' + preprocessing: + - type: JSONPATH + parameters: + - $.requiredperformance + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 76b3dc42b38b4f4a9d6979a64e8f6a4b + name: 'Proxy [{#PROXY.NAME}]: Stats' + type: DEPENDENT + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The statistics for the discovered proxy.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name=="{#PROXY.NAME}")].first()' + master_item: + key: 'zabbix[proxy,discovery]' + tags: + - tag: component + value: proxy + - tag: component + value: raw + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 8986a7d452c448de88dcb054541064e4 + name: 'Proxy [{#PROXY.NAME}]: Unencrypted' + type: DEPENDENT + key: 'zabbix.proxy.unencrypted[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.unencrypted + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 22da7ee85c044e128ceb47225ce7aaba + name: 'Proxy [{#PROXY.NAME}]: Version' + type: DEPENDENT + key: 'zabbix.proxy.version[{#PROXY.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'A version of Zabbix proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + master_item: + key: 'zabbix[proxy,discovery]' + lld_macro_paths: + - lld_macro: '{#PROXY.GROUP}' + path: $.proxy_group + - lld_macro: '{#PROXY.NAME}' + path: $.name + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var proxies = JSON.parse(value); + + result = proxies.map(function (proxy) { + return { + 'name': proxy.name, + 'proxy_group': proxy.proxy_group + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Tag proxy-group if exists' + step: '1' + filter: + conditions: + - macro: '{#PROXY.GROUP}' + operator: EXISTS + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + tags: + - tag: proxy-group + value: '{#PROXY.GROUP}' + - uuid: 60eaeee3a90542aeae9762d36c804cce + name: 'Zabbix proxy groups discovery' + type: DEPENDENT + key: zabbix.proxy.groups.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#PROXY.GROUP.NAME}' + value: '{$PROXY.GROUP.DISCOVERY.NAME.MATCHES}' + formulaid: A + - macro: '{#PROXY.GROUP.NAME}' + value: '{$PROXY.GROUP.DISCOVERY.NAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + description: 'LLD rule with item and trigger prototypes for proxy groups discovery.' + item_prototypes: + - uuid: f48cf3314ff6460596468e7e6b8525de + name: 'Proxy group [{#PROXY.GROUP.NAME}]: Available proxies, in %' + type: DEPENDENT + key: 'zabbix.proxy.group.avail.proxies.percent[{#PROXY.GROUP.NAME}]' + delay: '0' + units: '%' + description: 'Percentage of available proxies in the Zabbix proxy group.' + preprocessing: + - type: JSONPATH + parameters: + - $.pavailable + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.group.stats[{#PROXY.GROUP.NAME}]' + tags: + - tag: component + value: proxy-group + - tag: proxy-group-name + value: '{#PROXY.GROUP.NAME}' + trigger_prototypes: + - uuid: bbbaf1aaa1a64e57bad2ec53cc0e96f6 + expression: 'max(/Zabbix server health/zabbix.proxy.group.avail.proxies.percent[{#PROXY.GROUP.NAME}],3m)<{$PROXY.GROUP.AVAIL.PERCENT.MIN}' + name: 'Zabbix server: Proxy group [{#PROXY.GROUP.NAME}]: Availability too low' + event_name: 'Zabbix server: Proxy group [{#PROXY.GROUP.NAME}]: Availability below {$PROXY.GROUP.AVAIL.PERCENT.MIN}%' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The availability of proxies in a proxy group is below {$PROXY.GROUP.AVAIL.PERCENT.MIN}% for at least 3 minutes.' + tags: + - tag: scope + value: availability + - uuid: 848a42e7022f4cfab65044e710859f80 + name: 'Proxy group [{#PROXY.GROUP.NAME}]: Available proxies' + type: DEPENDENT + key: 'zabbix.proxy.group.avail.proxies[{#PROXY.GROUP.NAME}]' + delay: '0' + description: 'Count of available proxies in the Zabbix proxy group.' + preprocessing: + - type: JSONPATH + parameters: + - $.available + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.group.stats[{#PROXY.GROUP.NAME}]' + tags: + - tag: component + value: proxy-group + - tag: proxy-group-name + value: '{#PROXY.GROUP.NAME}' + - uuid: 7fa43a19cb4a448bbf7b1bc3ddf17594 + name: 'Proxy group [{#PROXY.GROUP.NAME}]: Failover period' + type: DEPENDENT + key: 'zabbix.proxy.group.failover[{#PROXY.GROUP.NAME}]' + delay: '0' + value_type: FLOAT + units: s + description: 'Failover period in the Zabbix proxy group.' + valuemap: + name: 'Proxy group invalid value' + preprocessing: + - type: JSONPATH + parameters: + - $.failover_delay + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.group.settings[{#PROXY.GROUP.NAME}]' + tags: + - tag: component + value: proxy-group + - tag: proxy-group-name + value: '{#PROXY.GROUP.NAME}' + trigger_prototypes: + - uuid: 9d38306e2e1741eba5a910ccf380c484 + expression: 'last(/Zabbix server health/zabbix.proxy.group.failover[{#PROXY.GROUP.NAME}],#1)=-1' + name: 'Zabbix server: Proxy group [{#PROXY.GROUP.NAME}]: Failover invalid value' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Proxy group failover has an invalid value.' + tags: + - tag: scope + value: notice + - uuid: 150df878b45d4a259131f8bdf9e89fc1 + name: 'Proxy group [{#PROXY.GROUP.NAME}]: Minimum number of proxies' + type: DEPENDENT + key: 'zabbix.proxy.group.online.min[{#PROXY.GROUP.NAME}]' + delay: '0' + value_type: FLOAT + description: 'Minimum number of proxies online in the Zabbix proxy group.' + valuemap: + name: 'Proxy group invalid value' + preprocessing: + - type: JSONPATH + parameters: + - $.min_online + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.group.settings[{#PROXY.GROUP.NAME}]' + tags: + - tag: component + value: proxy-group + - tag: proxy-group-name + value: '{#PROXY.GROUP.NAME}' + trigger_prototypes: + - uuid: ba1aa13dc8204c76be4fa85a6411de4d + expression: 'last(/Zabbix server health/zabbix.proxy.group.online.min[{#PROXY.GROUP.NAME}],#1)=-1' + name: 'Zabbix server: Proxy group [{#PROXY.GROUP.NAME}]: Minimum number of proxies invalid value' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Proxy group minimum number of proxies has an invalid value.' + tags: + - tag: scope + value: notice + - uuid: b493eccc24ea4343ae3caf0651d46b6c + name: 'Proxy group [{#PROXY.GROUP.NAME}]: Settings' + type: DEPENDENT + key: 'zabbix.proxy.group.settings[{#PROXY.GROUP.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The settings for the discovered proxy group.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data[?(@.name=="{#PROXY.GROUP.NAME}")].first()' + master_item: + key: 'zabbix[proxy group,discovery]' + tags: + - tag: component + value: proxy-group + - tag: component + value: raw + - tag: proxy-group-name + value: '{#PROXY.GROUP.NAME}' + - uuid: 8a2d84926a4b4e9a810dfac576dd8451 + name: 'Proxy group [{#PROXY.GROUP.NAME}]: State' + type: DEPENDENT + key: 'zabbix.proxy.group.state[{#PROXY.GROUP.NAME}]' + delay: '0' + description: | + State of the Zabbix proxy group. + + Possible values: + 0 - unknown; + 1 - offline; + 2 - recovering; + 3 - online; + 4 - degrading. + valuemap: + name: 'Proxy group state' + preprocessing: + - type: JSONPATH + parameters: + - $.state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.group.stats[{#PROXY.GROUP.NAME}]' + tags: + - tag: component + value: proxy-group + - tag: proxy-group-name + value: '{#PROXY.GROUP.NAME}' + trigger_prototypes: + - uuid: 770cb8447a26472c9d825c874fccc030 + expression: 'last(/Zabbix server health/zabbix.proxy.group.state[{#PROXY.GROUP.NAME}],#1)=4' + name: 'Zabbix server: Proxy group [{#PROXY.GROUP.NAME}]: Status "degrading"' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'The state of the Zabbix proxy group is "degrading".' + dependencies: + - name: 'Zabbix server: Proxy group [{#PROXY.GROUP.NAME}]: Status "offline"' + expression: 'last(/Zabbix server health/zabbix.proxy.group.state[{#PROXY.GROUP.NAME}],#1)=1' + tags: + - tag: scope + value: availability + - uuid: ecd98a89c19045dea28c2c635f3b5db9 + expression: 'last(/Zabbix server health/zabbix.proxy.group.state[{#PROXY.GROUP.NAME}],#1)=1' + name: 'Zabbix server: Proxy group [{#PROXY.GROUP.NAME}]: Status "offline"' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'The state of the Zabbix proxy group is "offline".' + tags: + - tag: scope + value: availability + - uuid: e0c6041d678b46df8f633bda8ab24a1a + expression: 'last(/Zabbix server health/zabbix.proxy.group.state[{#PROXY.GROUP.NAME}],#1)<>last(/Zabbix server health/zabbix.proxy.group.state[{#PROXY.GROUP.NAME}],#2) and length(last(/Zabbix server health/zabbix.proxy.group.state[{#PROXY.GROUP.NAME}]))>0' + name: 'Zabbix server: Proxy group [{#PROXY.GROUP.NAME}]: Status changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The state of the Zabbix proxy group has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + dependencies: + - name: 'Zabbix server: Proxy group [{#PROXY.GROUP.NAME}]: Status "degrading"' + expression: 'last(/Zabbix server health/zabbix.proxy.group.state[{#PROXY.GROUP.NAME}],#1)=4' + tags: + - tag: scope + value: availability + - uuid: aab08b95d317451089604077e6d8543c + name: 'Proxy group [{#PROXY.GROUP.NAME}]: Stats' + type: DEPENDENT + key: 'zabbix.proxy.group.stats[{#PROXY.GROUP.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The statistics for the discovered proxy group.' + preprocessing: + - type: JSONPATH + parameters: + - '$.rtdata["{#PROXY.GROUP.NAME}"]' + master_item: + key: 'zabbix[proxy group,discovery]' + tags: + - tag: component + value: proxy-group + - tag: component + value: raw + - tag: proxy-group-name + value: '{#PROXY.GROUP.NAME}' + master_item: + key: 'zabbix[proxy group,discovery]' + lld_macro_paths: + - lld_macro: '{#PROXY.GROUP.NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.data + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: class + value: software + - tag: target + value: server + - tag: target + value: zabbix + macros: + - macro: '{$PROXY.GROUP.AVAIL.PERCENT.MIN}' + value: '75' + description: 'Minimum threshold for the proxy group availability percentage triggers.' + - macro: '{$PROXY.GROUP.DISCOVERY.NAME.MATCHES}' + value: '.*' + description: 'Filter to include discovered proxy groups by their name.' + - macro: '{$PROXY.GROUP.DISCOVERY.NAME.NOT_MATCHES}' + value: CHANGE_IF_NEEDED + description: 'Filter to exclude discovered proxy groups by their name.' + - macro: '{$ZABBIX.PROXY.LAST_SEEN.MAX}' + value: '600' + description: 'The maximum number of seconds that Zabbix proxy has not been seen.' + - macro: '{$ZABBIX.SERVER.UTIL.MAX}' + value: '75' + description: 'Default maximum threshold for percentage utilization triggers (use macro context for specification).' + - macro: '{$ZABBIX.SERVER.UTIL.MAX:"value cache"}' + value: '95' + description: 'Maximum threshold for the value cache utilization trigger.' + - macro: '{$ZABBIX.SERVER.UTIL.MIN}' + value: '65' + description: 'Default minimum threshold for percentage utilization triggers (use macro context for specification).' + dashboards: + - uuid: 6815a90fb9b745fd8f1b1f47697893d6 + name: 'Zabbix server health' + auto_start: 'NO' + pages: + - name: Performance + widgets: + - type: svggraph + name: 'Cache usage, in %' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[wcache,trend,pused]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[rcache,buffer,pused]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health' + key: 'zabbix[wcache,index,pused]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health' + key: 'zabbix[wcache,history,pused]' + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health' + key: 'zabbix[vcache,buffer,pused]' + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health' + key: 'zabbix[vmware,buffer,pused]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Server performance' + 'y': '6' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[wcache,values]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[vps,written]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health' + key: 'zabbix[queue]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACC + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Values processed' + 'y': '11' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[wcache,values,uint]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[wcache,values,float]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health' + key: 'zabbix[wcache,values,not supported]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health' + key: 'zabbix[wcache,values,str]' + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health' + key: 'zabbix[wcache,values,log]' + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health' + key: 'zabbix[wcache,values,text]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACD + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Value cache effectiveness' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[vcache,cache,hits]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[vcache,cache,misses]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACE + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing throughput' + 'y': '21' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[preprocessing_throughput_queued]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[preprocessing_throughput_direct]' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABV + - type: svggraph + name: 'Internal queues' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: d62728 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[preprocessing_queue]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[lld_queue]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health' + key: 'zabbix[discovery_queue]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health' + key: 'zabbix[connector_queue]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACB + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Trend cache effectiveness, in %' + x: '36' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[tcache,cache,pitems]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[tcache,cache,pmisses]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACF + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing VPS' + x: '36' + 'y': '21' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[preprocessing_vps_queued]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[preprocessing_vps_direct]' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABW + - name: Processes + widgets: + - type: svggraph + name: 'Utilization: LLD processes' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,lld manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,lld worker,avg,busy]' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[lld_queue]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABI + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Preprocessing processes' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,preprocessing manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,preprocessing worker,avg,busy]' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[preprocessing_queue]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABK + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Synchronous gathering processes' + 'y': '12' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: ff7f00 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: 17becf + - type: STRING + name: ds.0.color.5 + value: a6cee3 + - type: STRING + name: ds.0.color.6 + value: fb9a99 + - type: STRING + name: ds.0.color.7 + value: bcbd22 + - type: STRING + name: ds.0.color.8 + value: ffca58 + - type: STRING + name: ds.0.color.9 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,internal poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health' + key: 'zabbix[process,ipmi poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health' + key: 'zabbix[process,ipmi manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health' + key: 'zabbix[process,http poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health' + key: 'zabbix[process,java poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Zabbix server health' + key: 'zabbix[process,vmware collector,avg,busy]' + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Zabbix server health' + key: 'zabbix[process,browser poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.8 + value: + host: 'Zabbix server health' + key: 'zabbix[process,odbc poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.9 + value: + host: 'Zabbix server health' + key: 'zabbix[process,icmp pinger,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABM + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Asynchronous gathering processes' + 'y': '19' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,agent poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,http agent poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health' + key: 'zabbix[process,snmp poller,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABN + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Core' + 'y': '25' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: STRING + name: ds.0.color.6 + value: a6cee3 + - type: STRING + name: ds.0.color.7 + value: ff465c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,configuration syncer,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,configuration syncer worker,avg,busy]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health' + key: 'zabbix[process,history syncer,avg,busy]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health' + key: 'zabbix[process,self-monitoring,avg,busy]' + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health' + key: 'zabbix[process,service manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health' + key: 'zabbix[process,task manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Zabbix server health' + key: 'zabbix[process,timer,avg,busy]' + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Zabbix server health' + key: 'zabbix[process,history poller,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '8' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABO + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Gathering processes: Trappers' + 'y': '31' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: ffca58 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,trapper,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,snmp trapper,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABQ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Alerting processes' + 'y': '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 17becf + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: d62728 + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,alert manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,alert syncer,avg,busy]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health' + key: 'zabbix[process,alerter,avg,busy]' + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health' + key: 'zabbix[process,escalator,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '4' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABS + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Proxy management and data exchange' + 'y': '41' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: '000080' + - type: STRING + name: ds.0.color.2 + value: '808000' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,trapper,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,proxy poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health' + key: 'zabbix[process,proxy group manager,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABU + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Discovery processes' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 7e57c2 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,discovery manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,discovery worker,avg,busy]' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[discovery_queue]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABJ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Connector processes' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: b2df8a + - type: STRING + name: ds.0.color.1 + value: ffca58 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,connector manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,connector worker,avg,busy]' + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[connector_queue]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABL + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Housekeeping' + x: '36' + 'y': '25' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: cab2d6 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,housekeeper,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,trigger housekeeper,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABP + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Availability processes' + x: '36' + 'y': '31' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 6a3d9a + - type: STRING + name: ds.0.color.1 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,unreachable poller,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,availability manager,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABR + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Reporting processes' + x: '36' + 'y': '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: e377c2 + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health' + key: 'zabbix[process,report manager,avg,busy]' + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health' + key: 'zabbix[process,report writer,avg,busy]' + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABT + - type: INTEGER + name: show_problems + value: '1' + - name: Statuses + widgets: + - type: item + name: 'Zabbix server version' + width: '16' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix server health' + key: 'zabbix[version]' + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: honeycomb + name: 'High availability: Node state' + x: '16' + width: '56' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'Cluster node [*]: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Cluster node \[(.*)]: Status","\1")}' + - type: STRING + name: reference + value: BAAAA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: b2df8a + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: '878787' + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: e31a1c + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: 33a02c + - type: STRING + name: thresholds.3.threshold + value: '3' + valuemaps: + - uuid: cee1681b12ff49b6b7d442a851e870b4 + name: 'Cluster node status' + mappings: + - value: '0' + newvalue: Standby + - value: '1' + newvalue: Stopped + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Active + - uuid: b985f0f026be4889923f5d16393e5383 + name: Compatibility + mappings: + - value: '0' + newvalue: Undefined + - value: '1' + newvalue: Current + - value: '2' + newvalue: Outdated + - value: '3' + newvalue: Unsupported + - uuid: 3b60aa68965f47baba665e354e0e79de + name: 'Last seen' + mappings: + - value: '-1' + newvalue: Never + - uuid: 8c23fc3b231b439a8eec4d0d60859c90 + name: 'Proxy group invalid value' + mappings: + - value: '-1' + newvalue: 'Invalid value' + - uuid: acd6475b06334535be452cd984a11f6b + name: 'Proxy group state' + mappings: + - value: '0' + newvalue: Unknown + - value: '1' + newvalue: Offline + - value: '2' + newvalue: Recovering + - value: '3' + newvalue: Online + - value: '4' + newvalue: Degrading + - uuid: 7c52b5e2d2434edeba089e136a7eb845 + name: 'Proxy mode' + mappings: + - value: '0' + newvalue: Active + - value: '1' + newvalue: Passive + - uuid: 0d2da53a4e404248b9d156b5a7342002 + name: 'Service state' + mappings: + - value: '0' + newvalue: 'Off' + - value: '1' + newvalue: 'On' + - uuid: 97bbea700550483bbd8405b4dd9d8005 + name: 'Value cache operating mode' + mappings: + - value: '0' + newvalue: Normal + - value: '1' + newvalue: 'Low memory' + - uuid: 9b8fe61b528547f49598075e79fb6623 + name: 'Zabbix server check' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' diff --git a/Zabbix_server_health_by_Zabbix_agent.yaml b/Zabbix_server_health_by_Zabbix_agent.yaml new file mode 100644 index 0000000..376a895 --- /dev/null +++ b/Zabbix_server_health_by_Zabbix_agent.yaml @@ -0,0 +1,3993 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: d31c888d12aa4bf68f280bc242501743 + template: 'Zabbix server health by Zabbix agent' + name: 'Zabbix server health by Zabbix agent' + description: | + This template is designed to monitor Zabbix server metrics via the passive Zabbix agent. + + Specify the address of the remote Zabbix server by changing the {$ZABBIX.SERVER.ADDRESS} and {$ZABBIX.SERVER.PORT} macros. Don't forget to adjust the "StatsAllowedIP" parameter in the remote server's configuration file to allow the collection of statistics. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Applications + items: + - uuid: 67db1347c8774d22870995569f40a698 + name: 'Connector queue' + type: DEPENDENT + key: connector_queue + delay: '0' + description: 'The count of values enqueued in the connector queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.connector_queue + error_handler: CUSTOM_ERROR + error_handler_params: 'No "connector" processes started. Please check "StartConnectors" parameter in the server configuration file.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 233d8a6776b743948a56b4cae17a189a + name: 'Discovery queue' + type: DEPENDENT + key: discovery_queue + delay: '0' + description: 'The count of values enqueued in the discovery queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.discovery_queue + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: af0386eb01f7465da3167558fed66b11 + name: 'LLD queue' + type: DEPENDENT + key: lld_queue + delay: '0' + description: 'The number of values enqueued in the low-level discovery processing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.lld_queue + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 2e0e211d720d496ab43b31c3330fa2d6 + name: 'Preprocessing queue' + type: DEPENDENT + key: preprocessing_queue + delay: '0' + description: 'The number of values enqueued in the preprocessing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queue + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: fa0ff0c1292d4aa8b555c8d4589f0cf0 + name: 'Preprocessing direct throughput' + type: DEPENDENT + key: preprocessing_throughput_direct + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the direct throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 2d956b642f834e0894fe223113d2c4c3 + name: 'Preprocessing queued throughput' + type: DEPENDENT + key: preprocessing_throughput_queued + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the queued throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 77bbca63827143a3b50fb9b88e6aadca + name: 'Preprocessing direct VPS' + type: DEPENDENT + key: preprocessing_vps_direct + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of direct preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: bc0f044ffadc4cf2b0aa537ad202796f + name: 'Preprocessing queued VPS' + type: DEPENDENT + key: preprocessing_vps_queued + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of queued preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 26244cb39b2140a19331ee2813946d1f + name: 'Utilization of agent poller data collector processes, in %' + type: DEPENDENT + key: process.agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "agent poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 6a89e07170e14a9c95154a64fb0248fc + expression: 'avg(/Zabbix server health by Zabbix agent/process.agent_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.agent_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"agent poller"}' + name: 'Zabbix server: Utilization of agent poller processes is high' + event_name: 'Zabbix server: Utilization of agent poller processes over {$ZABBIX.SERVER.UTIL.MAX:"agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 5b48951a5868404a94fd644208554144 + name: 'Utilization of alerter internal processes, in %' + type: DEPENDENT + key: process.alerter.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alerter processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''alerter''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "alerter" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: a1f644d8d3e34b658c57ef671422038d + expression: 'avg(/Zabbix server health by Zabbix agent/process.alerter.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"alerter"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.alerter.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"alerter"}' + name: 'Zabbix server: Utilization of alerter processes is high' + event_name: 'Zabbix server: Utilization of alerter processes over {$ZABBIX.SERVER.UTIL.MAX:"alerter"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alerter, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: e7bd566b2db444579b59abae5a2d6bfe + name: 'Utilization of alert manager internal processes, in %' + type: DEPENDENT + key: process.alert_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alert manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''alert manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "alert manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 0a9ebdc127bf42ccbbeeeffe02b57095 + expression: 'avg(/Zabbix server health by Zabbix agent/process.alert_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"alert manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.alert_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"alert manager"}' + name: 'Zabbix server: Utilization of alert manager processes is high' + event_name: 'Zabbix server: Utilization of alert manager processes over {$ZABBIX.SERVER.UTIL.MAX:"alert manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alert manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 237aa592438e45e6b38943c14f5afa72 + name: 'Utilization of alert syncer internal processes, in %' + type: DEPENDENT + key: process.alert_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alert syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''alert syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "alert syncer" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: bc7ed4d8ea2a455d813ff1146a010a6f + expression: 'avg(/Zabbix server health by Zabbix agent/process.alert_syncer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"alert syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.alert_syncer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"alert syncer"}' + name: 'Zabbix server: Utilization of alert syncer processes is high' + event_name: 'Zabbix server: Utilization of alert syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"alert syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alert syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: aeb1631d9bcf401ab7e5f62d717b443c + name: 'Utilization of availability manager internal processes, in %' + type: DEPENDENT + key: process.availability_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the availability manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''availability manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "availability manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 956b94177f544386bb4add58df433ca6 + expression: 'avg(/Zabbix server health by Zabbix agent/process.availability_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"availability manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.availability_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"availability manager"}' + name: 'Zabbix server: Utilization of availability manager processes is high' + event_name: 'Zabbix server: Utilization of availability manager processes over {$ZABBIX.SERVER.UTIL.MAX:"availability manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the availability manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8015717df8a54d2680f6bc77be78277d + name: 'Utilization of browser poller data collector processes, in %' + type: DEPENDENT + key: process.browser_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the browser poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''browser poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "browser poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 8df9cc8b0e1f462cae4898c6a54020fc + expression: 'avg(/Zabbix server health by Zabbix agent/process.browser_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"browser poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.browser_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"browser poller"}' + name: 'Zabbix server: Utilization of browser poller processes is high' + event_name: 'Zabbix server: Utilization of browser poller processes over {$ZABBIX.SERVER.UTIL.MAX:"browser poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the browser poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 26bbe7da8a6544ae857f3828f7aad187 + name: 'Utilization of configuration syncer internal processes, in %' + type: DEPENDENT + key: process.configuration_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''configuration syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "configuration syncer" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: cb4f8f5ad7e24fbcbc64ab8006643124 + expression: 'avg(/Zabbix server health by Zabbix agent/process.configuration_syncer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.configuration_syncer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"configuration syncer"}' + name: 'Zabbix server: Utilization of configuration syncer processes is high' + event_name: 'Zabbix server: Utilization of configuration syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"configuration syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 97ce279dac1843a299c1b1dfba4923cd + name: 'Utilization of configuration syncer worker internal processes, in %' + type: DEPENDENT + key: process.configuration_syncer_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''configuration syncer worker''].busy.avg' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 5e4ee9a96013447ebe40b745c105fd03 + expression: 'avg(/Zabbix server health by Zabbix agent/process.configuration_syncer_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration syncer worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.configuration_syncer_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"configuration syncer worker"}' + name: 'Zabbix server: Utilization of configuration syncer worker processes is high' + event_name: 'Zabbix server: Utilization of configuration syncer worker processes over {$ZABBIX.SERVER.UTIL.MAX:"configuration syncer worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 4ad318d0b2824f348c8579fb41bf13bf + name: 'Utilization of connector manager internal processes, in %' + type: DEPENDENT + key: process.connector_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the connector manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''connector manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "connector manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: eb8957d071b74a80bf3279444473cddb + expression: 'avg(/Zabbix server health by Zabbix agent/process.connector_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"connector manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.connector_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"connector manager"}' + name: 'Zabbix server: Utilization of connector manager processes is high' + event_name: 'Zabbix server: Utilization of connector manager processes over {$ZABBIX.SERVER.UTIL.MAX:"connector manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the connector manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 1ccf61dc603341cca5dda60c03a5443a + name: 'Utilization of connector worker internal processes, in %' + type: DEPENDENT + key: process.connector_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the connector worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''connector worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "connector worker" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 79881c61531b4446a8f3107127ce36ed + expression: 'avg(/Zabbix server health by Zabbix agent/process.connector_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"connector worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.connector_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"connector worker"}' + name: 'Zabbix server: Utilization of connector worker processes is high' + event_name: 'Zabbix server: Utilization of connector worker processes over {$ZABBIX.SERVER.UTIL.MAX:"connector worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the connector worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a69a1684823a40789dbed2cfad68fddc + name: 'Utilization of discovery manager internal processes, in %' + type: DEPENDENT + key: process.discovery_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 622a1cf7158c407789313819e74310cd + expression: 'avg(/Zabbix server health by Zabbix agent/process.discovery_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"discovery manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.discovery_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"discovery manager"}' + name: 'Zabbix server: Utilization of discovery manager processes is high' + event_name: 'Zabbix server: Utilization of discovery manager processes over {$ZABBIX.SERVER.UTIL.MAX:"discovery manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 6ce4dc23c5a74d20ab00c51174fa0693 + name: 'Utilization of discovery worker internal processes, in %' + type: DEPENDENT + key: process.discovery_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery worker" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 38b49ca5610244b782c66e068727264f + expression: 'avg(/Zabbix server health by Zabbix agent/process.discovery_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"discovery worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.discovery_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"discovery worker"}' + name: 'Zabbix server: Utilization of discovery worker processes is high' + event_name: 'Zabbix server: Utilization of discovery worker processes over {$ZABBIX.SERVER.UTIL.MAX:"discovery worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 5bd7ba1eb4aa46dba8f593008badc7ce + name: 'Utilization of escalator internal processes, in %' + type: DEPENDENT + key: process.escalator.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the escalator processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''escalator''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "escalator" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 21eb9b4f3b204a348738b74752c9927d + expression: 'avg(/Zabbix server health by Zabbix agent/process.escalator.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"escalator"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.escalator.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"escalator"}' + name: 'Zabbix server: Utilization of escalator processes is high' + event_name: 'Zabbix server: Utilization of escalator processes over {$ZABBIX.SERVER.UTIL.MAX:"escalator"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the escalator, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: b8502bfa3d89444caf68f0a61bfd80c0 + name: 'Utilization of history poller internal processes, in %' + type: DEPENDENT + key: process.history_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''history poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "history poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: a1886afb06824e1091220fbe5193461f + expression: 'avg(/Zabbix server health by Zabbix agent/process.history_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"history poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.history_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"history poller"}' + name: 'Zabbix server: Utilization of history poller processes is high' + event_name: 'Zabbix server: Utilization of history poller processes over {$ZABBIX.SERVER.UTIL.MAX:"history poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: ac78caab34df45ea99a72578c742ef96 + name: 'Utilization of history syncer internal processes, in %' + type: DEPENDENT + key: process.history_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''history syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "history syncer" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: f738b0289c324e78989436bb92493720 + expression: 'avg(/Zabbix server health by Zabbix agent/process.history_syncer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"history syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.history_syncer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"history syncer"}' + name: 'Zabbix server: Utilization of history syncer processes is high' + event_name: 'Zabbix server: Utilization of history syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"history syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 98a0a770a1484dcaa15a30bd4aa67667 + name: 'Utilization of housekeeper internal processes, in %' + type: DEPENDENT + key: process.housekeeper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the housekeeper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''housekeeper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "housekeeper" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 96ceff1b787e41b0a02a2d2221f57f6e + expression: 'avg(/Zabbix server health by Zabbix agent/process.housekeeper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.housekeeper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"housekeeper"}' + name: 'Zabbix server: Utilization of housekeeper processes is high' + event_name: 'Zabbix server: Utilization of housekeeper processes over {$ZABBIX.SERVER.UTIL.MAX:"housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: f7df477e29514cbcbef8ed98d3b3088d + name: 'Utilization of http agent poller data collector processes, in %' + type: DEPENDENT + key: process.http_agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "http agent poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: e4d7add47be94419824f333fcc48880f + expression: 'avg(/Zabbix server health by Zabbix agent/process.http_agent_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"http agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.http_agent_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"http agent poller"}' + name: 'Zabbix server: Utilization of http agent poller processes is high' + event_name: 'Zabbix server: Utilization of http agent poller processes over {$ZABBIX.SERVER.UTIL.MAX:"http agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 987678076aee4877abe79ca4fe13c0f5 + name: 'Utilization of http poller data collector processes, in %' + type: DEPENDENT + key: process.http_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "http poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: f254894eb0fb491989e803af02e707d2 + expression: 'avg(/Zabbix server health by Zabbix agent/process.http_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"http poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.http_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"http poller"}' + name: 'Zabbix server: Utilization of http poller processes is high' + event_name: 'Zabbix server: Utilization of http poller processes over {$ZABBIX.SERVER.UTIL.MAX:"http poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 72764d3afa1844d6984b7be20e6700cb + name: 'Utilization of icmp pinger data collector processes, in %' + type: DEPENDENT + key: process.icmp_pinger.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the icmp pinger processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''icmp pinger''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "icmp pinger" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: b1ebb6969696476da6a90c6f0d8de5eb + expression: 'avg(/Zabbix server health by Zabbix agent/process.icmp_pinger.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"icmp pinger"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.icmp_pinger.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"icmp pinger"}' + name: 'Zabbix server: Utilization of icmp pinger processes is high' + event_name: 'Zabbix server: Utilization of icmp pinger processes over {$ZABBIX.SERVER.UTIL.MAX:"icmp pinger"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the icmp pinger, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 686ee39bdc284684993e46ae250ceb82 + name: 'Utilization of internal poller data collector processes, in %' + type: DEPENDENT + key: process.internal_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the internal poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''internal poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "internal poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 99fad58c6c5244f58d71e4d45840f355 + expression: 'avg(/Zabbix server health by Zabbix agent/process.internal_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"internal poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.internal_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"internal poller"}' + name: 'Zabbix server: Utilization of internal poller processes is high' + event_name: 'Zabbix server: Utilization of internal poller processes over {$ZABBIX.SERVER.UTIL.MAX:"internal poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the internal poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 75882e08301a424aa282a65c300e45ec + name: 'Utilization of ipmi manager internal processes, in %' + type: DEPENDENT + key: process.ipmi_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "ipmi manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 19f8d398245a4fa993467451571eb06a + expression: 'avg(/Zabbix server health by Zabbix agent/process.ipmi_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"ipmi manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.ipmi_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"ipmi manager"}' + name: 'Zabbix server: Utilization of ipmi manager processes is high' + event_name: 'Zabbix server: Utilization of ipmi manager processes over {$ZABBIX.SERVER.UTIL.MAX:"ipmi manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 4b3315753f2648fe839415d253274225 + name: 'Utilization of ipmi poller data collector processes, in %' + type: DEPENDENT + key: process.ipmi_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "ipmi poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: eb82596e6a25422fbbb2da9910616557 + expression: 'avg(/Zabbix server health by Zabbix agent/process.ipmi_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"ipmi poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.ipmi_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"ipmi poller"}' + name: 'Zabbix server: Utilization of ipmi poller processes is high' + event_name: 'Zabbix server: Utilization of ipmi poller processes over {$ZABBIX.SERVER.UTIL.MAX:"ipmi poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 72964a592b434862855ae82ee4a51a47 + name: 'Utilization of java poller data collector processes, in %' + type: DEPENDENT + key: process.java_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the java poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''java poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "java poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 21114bc6d4be4ab393141ddc34eaec5f + expression: 'avg(/Zabbix server health by Zabbix agent/process.java_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"java poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.java_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"java poller"}' + name: 'Zabbix server: Utilization of java poller processes is high' + event_name: 'Zabbix server: Utilization of java poller processes over {$ZABBIX.SERVER.UTIL.MAX:"java poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the java poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: bd339e2ee2b743e4bbf7c4614fc9142b + name: 'Utilization of LLD manager internal processes, in %' + type: DEPENDENT + key: process.lld_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the LLD manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''lld manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "LLD manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 8b1e71a2be054aa9913b0d0ab980d7a3 + expression: 'avg(/Zabbix server health by Zabbix agent/process.lld_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"LLD manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.lld_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"LLD manager"}' + name: 'Zabbix server: Utilization of LLD manager processes is high' + event_name: 'Zabbix server: Utilization of LLD manager processes over {$ZABBIX.SERVER.UTIL.MAX:"LLD manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the LLD manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 76c3dd1ec25d4cb38d5a02681103fd01 + name: 'Utilization of LLD worker internal processes, in %' + type: DEPENDENT + key: process.lld_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the LLD worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''lld worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "LLD worker" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 26ab68bbf6a54277aeaa51f41b413da6 + expression: 'avg(/Zabbix server health by Zabbix agent/process.lld_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"LLD worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.lld_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"LLD worker"}' + name: 'Zabbix server: Utilization of LLD worker processes is high' + event_name: 'Zabbix server: Utilization of LLD worker processes over {$ZABBIX.SERVER.UTIL.MAX:"LLD worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the LLD worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a18f1241d78b463eae7dcb6442cb14de + name: 'Utilization of ODBC poller data collector processes, in %' + type: DEPENDENT + key: process.odbc_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ODBC poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''odbc poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes odbc poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: f089d9f2c2f844f5acd69be08a8e048a + expression: 'avg(/Zabbix server health by Zabbix agent/process.odbc_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"ODBC poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.odbc_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"ODBC poller"}' + name: 'Zabbix server: Utilization of ODBC poller processes is high' + event_name: 'Zabbix server: Utilization of ODBC poller processes over {$ZABBIX.SERVER.UTIL.MAX:"ODBC poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ODBC poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 37a4b686f8bd42c49fdcde2d1d2aa0c5 + name: 'Utilization of poller data collector processes, in %' + type: DEPENDENT + key: process.poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 7d20639bec7a456685f7fce4bf70fb2e + expression: 'avg(/Zabbix server health by Zabbix agent/process.poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"poller"}' + name: 'Zabbix server: Utilization of poller processes is high' + event_name: 'Zabbix server: Utilization of poller processes over {$ZABBIX.SERVER.UTIL.MAX:"poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a8ce38ce9ade40d6accfeda76a2f67ce + name: 'Utilization of preprocessing manager internal processes, in %' + type: DEPENDENT + key: process.preprocessing_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "preprocessing manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: b7e3dc93732f49d49d2a2f28251a9927 + expression: 'avg(/Zabbix server health by Zabbix agent/process.preprocessing_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"preprocessing manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.preprocessing_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"preprocessing manager"}' + name: 'Zabbix server: Utilization of preprocessing manager processes is high' + event_name: 'Zabbix server: Utilization of preprocessing manager processes over {$ZABBIX.SERVER.UTIL.MAX:"preprocessing manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8350ba81df6641e388d9f7975aa35085 + name: 'Utilization of preprocessing worker internal processes, in %' + type: DEPENDENT + key: process.preprocessing_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "preprocessing worker" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 87573b80d7124db284f1be3137ac3243 + expression: 'avg(/Zabbix server health by Zabbix agent/process.preprocessing_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"preprocessing worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.preprocessing_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"preprocessing worker"}' + name: 'Zabbix server: Utilization of preprocessing worker processes is high' + event_name: 'Zabbix server: Utilization of preprocessing worker processes over {$ZABBIX.SERVER.UTIL.MAX:"preprocessing worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 7b2e318316204619a6d0ec5fed697c76 + name: 'Utilization of proxy group manager internal processes, in %' + type: DEPENDENT + key: process.proxy_group_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the proxy group manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''proxy group manager''].busy.avg' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 528a1cc095c3485682af50d837b05912 + expression: 'avg(/Zabbix server health by Zabbix agent/process.proxy_group_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"proxy group manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.proxy_group_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"proxy group manager"}' + name: 'Zabbix server: Utilization of proxy group manager processes is high' + event_name: 'Zabbix server: Utilization of proxy group manager processes over {$ZABBIX.SERVER.UTIL.MAX:"proxy group manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the proxy group manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 36d5be78c569416cbf9fc7e304fdc841 + name: 'Utilization of proxy poller data collector processes, in %' + type: DEPENDENT + key: process.proxy_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the proxy poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''proxy poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "proxy poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 76b0b9bc6e38423681ab359159f9ca32 + expression: 'avg(/Zabbix server health by Zabbix agent/process.proxy_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"proxy poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.proxy_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"proxy poller"}' + name: 'Zabbix server: Utilization of proxy poller processes is high' + event_name: 'Zabbix server: Utilization of proxy poller processes over {$ZABBIX.SERVER.UTIL.MAX:"proxy poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the proxy poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 586a94a15daa4c5e92d08a7b9a513569 + name: 'Utilization of report manager internal processes, in %' + type: DEPENDENT + key: process.report_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the report manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''report manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "report manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: e4c4974ca3c540d9935bf2bf6a1a9f2f + expression: 'avg(/Zabbix server health by Zabbix agent/process.report_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"report manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.report_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"report manager"}' + name: 'Zabbix server: Utilization of report manager processes is high' + event_name: 'Zabbix server: Utilization of report manager processes over {$ZABBIX.SERVER.UTIL.MAX:"report manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the report manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 54f4b6d1b41b4a229281d94e50040e67 + name: 'Utilization of report writer internal processes, in %' + type: DEPENDENT + key: process.report_writer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the report writer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''report writer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "report writer" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 196346fa19dc43b6989c403da4bae618 + expression: 'avg(/Zabbix server health by Zabbix agent/process.report_writer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"report writer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.report_writer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"report writer"}' + name: 'Zabbix server: Utilization of report writer processes is high' + event_name: 'Zabbix server: Utilization of report writer processes over {$ZABBIX.SERVER.UTIL.MAX:"report writer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the report writer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8bb2d6405fa344e89acca08eb2989347 + name: 'Utilization of self-monitoring internal processes, in %' + type: DEPENDENT + key: process.self-monitoring.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the self-monitoring processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''self-monitoring''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "self-monitoring" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: fe7628ada2c748d99d5e768f19d6925e + expression: 'avg(/Zabbix server health by Zabbix agent/process.self-monitoring.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"self-monitoring"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.self-monitoring.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"self-monitoring"}' + name: 'Zabbix server: Utilization of self-monitoring processes is high' + event_name: 'Zabbix server: Utilization of self-monitoring processes over {$ZABBIX.SERVER.UTIL.MAX:"self-monitoring"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the self-monitoring, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 41a5e11bd0244b9b936f89337a70bf7b + name: 'Utilization of service manager internal processes, in %' + type: DEPENDENT + key: process.service_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the service manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''service manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "service manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 273d3f4894754d92980827d67424626f + expression: 'avg(/Zabbix server health by Zabbix agent/process.service_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"service manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.service_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"service manager"}' + name: 'Zabbix server: Utilization of service manager processes is high' + event_name: 'Zabbix server: Utilization of service manager processes over {$ZABBIX.SERVER.UTIL.MAX:"service manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the service manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: b3e03fd8df2a44c6b81b988aba962af0 + name: 'Utilization of snmp poller data collector processes, in %' + type: DEPENDENT + key: process.snmp_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "snmp poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 8d67b86d96214e63aa4150957d0f5448 + expression: 'avg(/Zabbix server health by Zabbix agent/process.snmp_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"snmp poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.snmp_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"snmp poller"}' + name: 'Zabbix server: Utilization of snmp poller processes is high' + event_name: 'Zabbix server: Utilization of snmp poller processes over {$ZABBIX.SERVER.UTIL.MAX:"snmp poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: cf3f6a2ab158418d9457dc5263bd00e6 + name: 'Utilization of snmp trapper data collector processes, in %' + type: DEPENDENT + key: process.snmp_trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "snmp trapper" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 6b792b961a894028885cca471e58ea7d + expression: 'avg(/Zabbix server health by Zabbix agent/process.snmp_trapper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"snmp trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.snmp_trapper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"snmp trapper"}' + name: 'Zabbix server: Utilization of snmp trapper processes is high' + event_name: 'Zabbix server: Utilization of snmp trapper processes over {$ZABBIX.SERVER.UTIL.MAX:"snmp trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: e73efbdec67a459e9cec663a527d8eb4 + name: 'Utilization of task manager internal processes, in %' + type: DEPENDENT + key: process.task_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the task manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''task manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "task manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 54324394c6da4fec99824d20620e5130 + expression: 'avg(/Zabbix server health by Zabbix agent/process.task_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"task manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.task_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"task manager"}' + name: 'Zabbix server: Utilization of task manager processes is high' + event_name: 'Zabbix server: Utilization of task manager processes over {$ZABBIX.SERVER.UTIL.MAX:"task manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the task manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 24a5de4abfa5464fb2c689ab45331013 + name: 'Utilization of timer internal processes, in %' + type: DEPENDENT + key: process.timer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the timer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''timer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "timer" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: be3754033f584791aef90bf94cc03155 + expression: 'avg(/Zabbix server health by Zabbix agent/process.timer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"timer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.timer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"timer"}' + name: 'Zabbix server: Utilization of timer processes is high' + event_name: 'Zabbix server: Utilization of timer processes over {$ZABBIX.SERVER.UTIL.MAX:"timer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the timer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 87cd3e5ac5a443ce933902092afe2aef + name: 'Utilization of trapper data collector processes, in %' + type: DEPENDENT + key: process.trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "trapper" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 499ac8c8ac274b0a9c4e1e4e2604c393 + expression: 'avg(/Zabbix server health by Zabbix agent/process.trapper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.trapper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"trapper"}' + name: 'Zabbix server: Utilization of trapper processes is high' + event_name: 'Zabbix server: Utilization of trapper processes over {$ZABBIX.SERVER.UTIL.MAX:"trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a4440e906d5e44459cdd89a8e65e49f1 + name: 'Utilization of trigger housekeeper internal processes, in %' + type: DEPENDENT + key: process.trigger_housekeeper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trigger housekeeper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''trigger housekeeper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "trigger housekeeper" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 2f024c50a951453abcd7a7998c270e9e + expression: 'avg(/Zabbix server health by Zabbix agent/process.trigger_housekeeper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"trigger housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.trigger_housekeeper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"trigger housekeeper"}' + name: 'Zabbix server: Utilization of trigger housekeeper processes is high' + event_name: 'Zabbix server: Utilization of trigger housekeeper processes over {$ZABBIX.SERVER.UTIL.MAX:"trigger housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trigger housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 4ea198b2d4544d35b713135f0e6abe1d + name: 'Utilization of unreachable poller data collector processes, in %' + type: DEPENDENT + key: process.unreachable_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the unreachable poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''unreachable poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "unreachable poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: cd76cc2f895349319716aa3533181529 + expression: 'avg(/Zabbix server health by Zabbix agent/process.unreachable_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"unreachable poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.unreachable_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"unreachable poller"}' + name: 'Zabbix server: Utilization of unreachable poller processes is high' + event_name: 'Zabbix server: Utilization of unreachable poller processes over {$ZABBIX.SERVER.UTIL.MAX:"unreachable poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the unreachable poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c06eefb4ce3742a6890e99b7340b8c1c + name: 'Utilization of vmware collector data collector processes, in %' + type: DEPENDENT + key: process.vmware_collector.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the vmware collector processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''vmware collector''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "vmware collector" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 1aa12e51e357423ab198e6dcbba6e4f8 + expression: 'avg(/Zabbix server health by Zabbix agent/process.vmware_collector.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"vmware collector"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent/process.vmware_collector.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"vmware collector"}' + name: 'Zabbix server: Utilization of vmware collector processes is high' + event_name: 'Zabbix server: Utilization of vmware collector processes over {$ZABBIX.SERVER.UTIL.MAX:"vmware collector"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the vmware collector, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 449b05f7fefa4960bc4f50d300b60b30 + name: 'Configuration cache, % used' + type: DEPENDENT + key: rcache.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix configuration cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.rcache.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 363da6f7c0ad4d289939d1e3ffdd8cf6 + expression: 'max(/Zabbix server health by Zabbix agent/rcache.buffer.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration cache"}' + name: 'Zabbix server: Excessive configuration cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"configuration cache"}% used in the configuration cache' + priority: AVERAGE + description: 'Consider increasing `CacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: a9eb076bb3234e05a46a6884c04a53aa + expression: 'nodata(/Zabbix server health by Zabbix agent/rcache.buffer.pused,{$ZABBIX.SERVER.NODATA_TIMEOUT})=1' + name: 'Zabbix server: Failed to fetch stats data' + event_name: 'Zabbix server: Failed to fetch stats data (or no data for {$ZABBIX.SERVER.NODATA_TIMEOUT})' + priority: WARNING + description: 'Zabbix has not received statistics data for `{$ZABBIX.SERVER.NODATA_TIMEOUT}`.' + tags: + - tag: scope + value: availability + - uuid: d02caf97af874b929d78bccdcf80a1fd + name: 'Zabbix server check' + type: DEPENDENT + key: server_check + delay: '0' + trends: '0' + description: 'Flag indicating whether it is a server or not.' + valuemap: + name: 'Zabbix server check' + preprocessing: + - type: JSONPATH + parameters: + - $.data.triggers + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: IN_RANGE + parameters: + - '' + - '0' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: a682723b57304a8a8fe824c97524c268 + expression: 'last(/Zabbix server health by Zabbix agent/server_check)=0' + name: 'Zabbix server: Wrong template assigned' + event_name: 'Zabbix server: Zabbix server template is assigned to Zabbix proxy' + priority: DISASTER + description: 'Check that the template has been selected correctly.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: af615158ecc546a5bde2dcc39c4477cd + name: 'Trend function cache, % of unique requests' + type: DEPENDENT + key: tcache.pitems + delay: '0' + value_type: FLOAT + units: '%' + description: | + The effectiveness statistics of the Zabbix trend function cache. The percentage of cached items calculated from the sum of the cached items plus requests. + A low percentage most likely means that the cache size can be reduced. + preprocessing: + - type: JSONPATH + parameters: + - $.data.tcache.pitems + error_handler: CUSTOM_ERROR + error_handler_params: 'Not supported in this version.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: d7a302b1eced46308c5d308eff7940f7 + name: 'Trend function cache, % of misses' + type: DEPENDENT + key: tcache.pmisses + delay: '0' + value_type: FLOAT + units: '%' + description: 'The effectiveness statistics of the Zabbix trend function cache. The percentage of cache misses.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.tcache.pmisses + error_handler: CUSTOM_ERROR + error_handler_params: 'Not supported in this version.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 667bde86aa124656a1470574203dabe8 + name: 'Value cache, % used' + type: DEPENDENT + key: vcache.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix value cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.buffer.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 3d2b9badc0ba4751b341127eca43b060 + expression: 'max(/Zabbix server health by Zabbix agent/vcache.buffer.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"value cache"}' + name: 'Zabbix server: Excessive value cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"value cache"}% used in the value cache' + priority: AVERAGE + description: 'Consider increasing `ValueCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 774a9545d7ec487eb7a3fa57075c4521 + name: 'Value cache hits' + type: DEPENDENT + key: vcache.cache.hits + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The effectiveness statistics of Zabbix value cache. The number of cache hits (history values taken from the cache).' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.cache.hits + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 350489880982410188ed0e09a1a29763 + name: 'Value cache misses' + type: DEPENDENT + key: vcache.cache.misses + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The effectiveness statistics of Zabbix value cache. The number of cache misses (history values taken from the database).' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.cache.misses + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 29f324a479dd4fcd8e7c25c11a979725 + name: 'Value cache operating mode' + type: DEPENDENT + key: vcache.cache.mode + delay: '0' + units: '!vps' + description: 'The operating mode of the value cache.' + valuemap: + name: 'Value cache operating mode' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.cache.mode + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: da2f0e99f5fb45009ee61f9801db17ce + expression: 'last(/Zabbix server health by Zabbix agent/vcache.cache.mode)=1' + name: 'Zabbix server: Zabbix value cache working in low-memory mode' + priority: HIGH + description: 'Once low-memory mode has been switched on, the value cache will remain in this state for 24 hours, even if the problem that triggered this mode is resolved sooner.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 54c43b70ee6a43d1827ce5da810694ed + name: Version + type: DEPENDENT + key: version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of Zabbix server.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 067dbedff25c4536ace271693d5c404d + expression: 'last(/Zabbix server health by Zabbix agent/version,#1)<>last(/Zabbix server health by Zabbix agent/version,#2) and length(last(/Zabbix server health by Zabbix agent/version))>0' + name: 'Zabbix server: Version has changed' + event_name: 'Zabbix server: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Zabbix server version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8ddbd31c13c447979d1fb57e942b1b34 + name: 'VMware cache, % used' + type: DEPENDENT + key: vmware.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix vmware cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vmware.pused + error_handler: CUSTOM_ERROR + error_handler_params: 'No "vmware collector" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 448b0d2931084946bdbe30994cc21a2a + expression: 'max(/Zabbix server health by Zabbix agent/vmware.buffer.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"vmware cache"}' + name: 'Zabbix server: Excessive vmware cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"vmware cache"}% used in the vmware cache' + priority: AVERAGE + description: 'Consider increasing `VMwareCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: f5f751c4bd844086a5f7bf9d442dd761 + name: 'Number of values synchronized with the database per second' + type: DEPENDENT + key: vps.written + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Average quantity of values written to the database, recalculated once per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vps.written_total + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 07d74d4c2c1d4ce29dce164d68cbab73 + name: 'History write cache, % used' + type: DEPENDENT + key: wcache.history.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history buffer. + The history cache is used to store item values. A high number indicates database performance problems. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.history.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 0b0c54160c6442c6ac4ab3807d3e3cbf + expression: 'max(/Zabbix server health by Zabbix agent/wcache.history.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"history cache"}' + name: 'Zabbix server: Excessive history cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"history cache"}% used in the history cache' + priority: AVERAGE + description: 'Consider increasing `HistoryCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 8f8d3ca8c2f14b6d950946345e1c0659 + name: 'History index cache, % used' + type: DEPENDENT + key: wcache.index.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history index buffer. + The history index cache is used to index values stored in the history cache. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.index.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 11838eec73024ff2abaa9473d3171bb4 + expression: 'max(/Zabbix server health by Zabbix agent/wcache.index.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"index cache"}' + name: 'Zabbix server: Excessive history index cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"index cache"}% used in the history index cache' + priority: AVERAGE + description: 'Consider increasing `HistoryIndexCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: e938f95f91414497a9a72166ee143dea + name: 'Trend write cache, % used' + type: DEPENDENT + key: wcache.trend.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used trend buffer. + The trend cache stores the aggregate of all items that have received data for the current hour. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.trend.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 13b1ca9fa8f64deb9bd2bec2e919ee9a + expression: 'max(/Zabbix server health by Zabbix agent/wcache.trend.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"trend cache"}' + name: 'Zabbix server: Excessive trends cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"trend cache"}% used in the trends cache' + priority: AVERAGE + description: 'Consider increasing `TrendCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 463b804470ef435995c09199b691904e + name: 'Number of processed values per second' + type: DEPENDENT + key: wcache.values + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The total number of values processed by Zabbix server or Zabbix proxy, except unsupported items. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.all + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 529bbc2ab85f4e088b1c6f65a38b06d6 + name: 'Number of processed numeric (float) values per second' + type: DEPENDENT + key: wcache.values.float + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (float) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.float + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 538e8a635b08414fbd0ce505cf2bd754 + name: 'Number of processed log values per second' + type: DEPENDENT + key: wcache.values.log + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed log values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.log + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: d2d3b7dd52194d898eb58e4ea731447c + name: 'Number of processed not supported values per second' + type: DEPENDENT + key: wcache.values.not_supported + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of times the item processing resulted in an item becoming unsupported or remaining in that state. + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.values[''not supported'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 060002e74f8d4e2c9aa24c167ddd8658 + name: 'Number of processed character values per second' + type: DEPENDENT + key: wcache.values.str + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed character values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.str + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 1a4bcfd5660b4e4a84848ccec5ff2a28 + name: 'Number of processed text values per second' + type: DEPENDENT + key: wcache.values.text + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed text values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.text + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 9ea10574cd3147c88d7e613cde988765 + name: 'Number of processed numeric (unsigned) values per second' + type: DEPENDENT + key: wcache.values.uint + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (unsigned) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.uint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 406e909296024280b7cdc76d288a398d + name: 'Zabbix proxies stats' + type: DEPENDENT + key: zabbix.proxies.stats + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix proxies'' statistics.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.proxy + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: raw + - uuid: f3871d3395204212bffd236d80d208f7 + name: 'Queue over 10 minutes' + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue,10m]' + description: 'The number of monitored items in the queue that are delayed by at least 10 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + triggers: + - uuid: 3396dbfc687e4bbe80f9c38defbbb8e7 + expression: 'min(/Zabbix server health by Zabbix agent/zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue,10m],10m)>100' + name: 'Zabbix server: More than 100 items have been missing data for over 10 minutes' + priority: WARNING + description: 'Indicates potential issues with network connectivity, agent failures, or unresponsive monitored resources that require attention.' + tags: + - tag: scope + value: performance + - uuid: e03e82b05bb140e7ae52be6d1d1ef869 + name: Queue + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue]' + description: 'The number of monitored items in the queue that are delayed by at least 6 seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + - uuid: 7084c5c4b6cd4bf6a0b2ab23f171e5de + name: 'Zabbix stats' + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix server statistics.' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: 6615363e42424accbaf9a2e385240de6 + name: 'High availability cluster node discovery' + type: DEPENDENT + key: zabbix.nodes.discovery + delay: '0' + description: 'LLD rule with item and trigger prototypes for node discovery.' + item_prototypes: + - uuid: b05e4297dc57492cb09ef11eb4042906 + name: 'Cluster node [{#NODE.NAME}]: Address' + type: DEPENDENT + key: 'zabbix.node.address[{#NODE.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The IPv4 address of a node.' + preprocessing: + - type: JSONPATH + parameters: + - $.address + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 27bbff6ffee847f68a9f533af0b653e9 + name: 'Cluster node [{#NODE.NAME}]: Last access age' + type: DEPENDENT + key: 'zabbix.node.lastaccess.age[{#NODE.ID}]' + delay: '0' + units: uptime + description: 'The time between the database''s `unix_timestamp()` and the last access time.' + preprocessing: + - type: JSONPATH + parameters: + - $.lastaccess_age + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 41547b3b694c49d79288dbf6f0b6d6cc + name: 'Cluster node [{#NODE.NAME}]: Last access time' + type: DEPENDENT + key: 'zabbix.node.lastaccess.time[{#NODE.ID}]' + delay: '0' + units: unixtime + description: 'Last access time.' + preprocessing: + - type: JSONPATH + parameters: + - $.lastaccess + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 72bec5b0e4314f78b272a0851c690d4b + name: 'Cluster node [{#NODE.NAME}]: Stats' + type: DEPENDENT + key: 'zabbix.node.stats[{#NODE.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Provides the statistics of a node.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.ha[?(@.id=="{#NODE.ID}")].first()' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: cluster + - tag: component + value: raw + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: a2b9c365c340441c9505ab9fdfafc0fe + name: 'Cluster node [{#NODE.NAME}]: Status' + type: DEPENDENT + key: 'zabbix.nodes.status[{#NODE.ID}]' + delay: '0' + description: 'The status of a node.' + valuemap: + name: 'Cluster node status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 6b9b6640b1dd4307b65840d465d40431 + expression: 'last(/Zabbix server health by Zabbix agent/zabbix.nodes.status[{#NODE.ID}],#1)<>last(/Zabbix server health by Zabbix agent/zabbix.nodes.status[{#NODE.ID}],#2)' + name: 'Zabbix server: Cluster node [{#NODE.NAME}]: Status changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The state of the node has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + lld_macro_paths: + - lld_macro: '{#NODE.ID}' + path: $.id + - lld_macro: '{#NODE.NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.data.ha + - type: JAVASCRIPT + parameters: + - | + var hacluster = JSON.parse(value); + + result = hacluster.map(function (hanode) { + return { + 'id': hanode.id, + 'name': hanode.name + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 53e742e9dfe8498f9075d507bd1fe957 + name: 'Zabbix proxy discovery' + type: DEPENDENT + key: zabbix.proxy.discovery + delay: '0' + description: 'LLD rule with item and trigger prototypes for proxy discovery.' + item_prototypes: + - uuid: 8381ffae3f204e788c160dd571faf2cb + name: 'Proxy [{#PROXY.NAME}]: Certificate' + type: DEPENDENT + key: 'zabbix.proxy.cert[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.cert + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: afc3fe7016b440ad8fb99ee80b585267 + name: 'Proxy [{#PROXY.NAME}]: Compatibility' + type: DEPENDENT + key: 'zabbix.proxy.compatibility[{#PROXY.NAME}]' + delay: '0' + description: | + Version of proxy compared to Zabbix server version. + + Possible values: + 0 - Undefined; + 1 - Current version (proxy and server have the same major version); + 2 - Outdated version (proxy version is older than server version, but is partially supported); + 3 - Unsupported version (proxy version is older than server previous LTS release version or server major version is older than proxy major version). + valuemap: + name: Compatibility + preprocessing: + - type: JSONPATH + parameters: + - $.compatibility + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + trigger_prototypes: + - uuid: d3f1ce16f1d343af955a2226d87efaa8 + expression: 'last(/Zabbix server health by Zabbix agent/zabbix.proxy.compatibility[{#PROXY.NAME}],#1)=3' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy is not supported' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Zabbix proxy version is older than server previous LTS release version or server major version is older than proxy major version.' + tags: + - tag: scope + value: availability + - uuid: 9558abc739f44660a03b3d273a689647 + expression: 'last(/Zabbix server health by Zabbix agent/zabbix.proxy.compatibility[{#PROXY.NAME}],#1)=2' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy is outdated' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy version is older than server version, but is partially supported. Only data collection and remote execution is available.' + tags: + - tag: scope + value: availability + - uuid: c15ee99bd6fb42bea19e3fb121cfce0d + name: 'Proxy [{#PROXY.NAME}]: Compression' + type: DEPENDENT + key: 'zabbix.proxy.compression[{#PROXY.NAME}]' + delay: '0' + description: 'The compression status of a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.compression + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 0d9b3aa276cd4629955663d79adffa50 + name: 'Proxy [{#PROXY.NAME}]: Host count' + type: DEPENDENT + key: 'zabbix.proxy.hosts[{#PROXY.NAME}]' + delay: '0' + description: 'The number of enabled hosts assigned to a proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.hosts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 05836b0ac4884c69ba8312286017b25d + name: 'Proxy [{#PROXY.NAME}]: Item count' + type: DEPENDENT + key: 'zabbix.proxy.items[{#PROXY.NAME}]' + delay: '0' + description: 'The number of enabled items on enabled hosts assigned to a proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.items + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: d2a358737c0d447c906b5156a539c5d5 + name: 'Proxy [{#PROXY.NAME}]: Last seen, in seconds' + type: DEPENDENT + key: 'zabbix.proxy.last_seen[{#PROXY.NAME}]' + delay: '0' + value_type: FLOAT + description: 'The time when a proxy was last seen by a server.' + valuemap: + name: 'Last seen' + preprocessing: + - type: JSONPATH + parameters: + - $.last_seen + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + trigger_prototypes: + - uuid: 03c66875e25e450abc2cec1c44706de1 + expression: 'last(/Zabbix server health by Zabbix agent/zabbix.proxy.last_seen[{#PROXY.NAME}],#1)>{$ZABBIX.PROXY.LAST_SEEN.MAX}' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy last seen' + event_name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy last seen more than {$ZABBIX.PROXY.LAST_SEEN.MAX} seconds ago' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy is not updating the configuration data.' + tags: + - tag: scope + value: availability + - uuid: df8e40481b814d00b3bbabc4f5bb80d7 + expression: 'last(/Zabbix server health by Zabbix agent/zabbix.proxy.last_seen[{#PROXY.NAME}],#1)=-1' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy never seen' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy is not updating the configuration data.' + tags: + - tag: scope + value: availability + - uuid: 51314d483e444e6c86b3585d1d37b152 + name: 'Proxy [{#PROXY.NAME}]: Mode' + type: DEPENDENT + key: 'zabbix.proxy.mode[{#PROXY.NAME}]' + delay: '0' + description: 'The mode of Zabbix proxy.' + valuemap: + name: 'Proxy mode' + preprocessing: + - type: JSONPATH + parameters: + - $.passive + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 712b5cf03d574384abc9c57964157b12 + name: 'Proxy [{#PROXY.NAME}]: PSK' + type: DEPENDENT + key: 'zabbix.proxy.psk[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.psk + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 5f4e9356c6e34d178b87cafdfc522e6e + name: 'Proxy [{#PROXY.NAME}]: Required VPS' + type: DEPENDENT + key: 'zabbix.proxy.requiredperformance[{#PROXY.NAME}]' + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The required performance of a proxy (the number of values that need to be collected per second).' + preprocessing: + - type: JSONPATH + parameters: + - $.requiredperformance + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 578af553e8ef46ffaaae04fea8cfbf39 + name: 'Proxy [{#PROXY.NAME}]: Stats' + type: DEPENDENT + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The statistics for the discovered proxy.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name=="{#PROXY.NAME}")].first()' + master_item: + key: zabbix.proxies.stats + tags: + - tag: component + value: proxy + - tag: component + value: raw + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: d83316ca1e8e49fdb02385642c749acb + name: 'Proxy [{#PROXY.NAME}]: Unencrypted' + type: DEPENDENT + key: 'zabbix.proxy.unencrypted[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.unencrypted + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 47df0dd4f9bf4c49a70ad26ad381c4a4 + name: 'Proxy [{#PROXY.NAME}]: Version' + type: DEPENDENT + key: 'zabbix.proxy.version[{#PROXY.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'A version of Zabbix proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + master_item: + key: zabbix.proxies.stats + lld_macro_paths: + - lld_macro: '{#PROXY.GROUP}' + path: $.proxy_group + - lld_macro: '{#PROXY.NAME}' + path: $.name + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var proxies = JSON.parse(value); + + result = proxies.map(function (proxy) { + return { + 'name': proxy.name, + 'proxy_group': proxy.proxy_group + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Tag proxy-group if exists' + step: '1' + filter: + conditions: + - macro: '{#PROXY.GROUP}' + operator: EXISTS + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + tags: + - tag: proxy-group + value: '{#PROXY.GROUP}' + tags: + - tag: class + value: software + - tag: target + value: server + - tag: target + value: zabbix + macros: + - macro: '{$ZABBIX.PROXY.LAST_SEEN.MAX}' + value: '600' + description: 'The maximum number of seconds that Zabbix proxy has not been seen.' + - macro: '{$ZABBIX.SERVER.ADDRESS}' + description: 'IP/DNS/network mask list of servers to be remotely queried (default is 127.0.0.1).' + - macro: '{$ZABBIX.SERVER.NODATA_TIMEOUT}' + value: 5m + description: 'The time threshold after which statistics are considered unavailable. Used in trigger expressions.' + - macro: '{$ZABBIX.SERVER.PORT}' + description: 'Port of server to be remotely queried (default is 10051).' + - macro: '{$ZABBIX.SERVER.UTIL.MAX}' + value: '75' + description: 'Default maximum threshold for percentage utilization triggers (use macro context for specification).' + - macro: '{$ZABBIX.SERVER.UTIL.MAX:"value cache"}' + value: '95' + description: 'Maximum threshold for value cache utilization triggers.' + - macro: '{$ZABBIX.SERVER.UTIL.MIN}' + value: '65' + description: 'Default minimum threshold for percentage utilization triggers (use macro context for specification).' + dashboards: + - uuid: dcb92016508d4aef8e48fbad302ad34b + name: 'Zabbix server health' + auto_start: 'NO' + pages: + - name: Performance + widgets: + - type: svggraph + name: 'Cache usage, in %' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: wcache.trend.pused + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: rcache.buffer.pused + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent' + key: wcache.index.pused + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent' + key: wcache.history.pused + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health by Zabbix agent' + key: vcache.buffer.pused + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health by Zabbix agent' + key: vmware.buffer.pused + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Server performance' + 'y': '6' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: wcache.values + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: vps.written + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent' + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACC + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Values processed' + 'y': '11' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: wcache.values.uint + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: wcache.values.float + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent' + key: wcache.values.not_supported + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent' + key: wcache.values.str + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health by Zabbix agent' + key: wcache.values.log + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health by Zabbix agent' + key: wcache.values.text + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACD + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Value cache effectiveness' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: vcache.cache.hits + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: vcache.cache.misses + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACE + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing throughput' + 'y': '21' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: preprocessing_throughput_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: preprocessing_throughput_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABV + - type: svggraph + name: 'Internal queues' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffff99 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: d62728 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: preprocessing_queue + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: lld_queue + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent' + key: discovery_queue + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent' + key: connector_queue + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACB + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Trend cache effectiveness, in %' + x: '36' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ffff99 + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: tcache.pitems + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: tcache.pmisses + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACF + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing VPS' + x: '36' + 'y': '21' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: preprocessing_vps_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: preprocessing_vps_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABW + - name: Processes + widgets: + - type: svggraph + name: 'Utilization: LLD processes' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.lld_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.lld_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: lld_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABI + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Preprocessing processes' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.preprocessing_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.preprocessing_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: preprocessing_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABK + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Synchronous gathering processes' + 'y': '12' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: ff7f00 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: 17becf + - type: STRING + name: ds.0.color.5 + value: a6cee3 + - type: STRING + name: ds.0.color.6 + value: fb9a99 + - type: STRING + name: ds.0.color.7 + value: bcbd22 + - type: STRING + name: ds.0.color.8 + value: ffca58 + - type: STRING + name: ds.0.color.9 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.internal_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.ipmi_poller.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.ipmi_manager.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.http_poller.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.java_poller.avg.busy + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.vmware_collector.avg.busy + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.browser_poller.avg.busy + - type: ITEM + name: ds.0.itemids.8 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.odbc_poller.avg.busy + - type: ITEM + name: ds.0.itemids.9 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.icmp_pinger.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABM + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Asynchronous gathering processes' + 'y': '19' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.http_agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.snmp_poller.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABN + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Core' + 'y': '25' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: STRING + name: ds.0.color.6 + value: a6cee3 + - type: STRING + name: ds.0.color.7 + value: ff465c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.configuration_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.configuration_syncer_worker.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.history_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.self-monitoring.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.service_manager.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.task_manager.avg.busy + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.timer.avg.busy + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.history_poller.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '8' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABO + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Gathering processes: Trappers' + 'y': '31' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: ffca58 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.snmp_trapper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABQ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Alerting processes' + 'y': '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 17becf + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: d62728 + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.alert_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.alert_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.alerter.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.escalator.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '4' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABS + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Proxy management and data exchange' + 'y': '41' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: '000080' + - type: STRING + name: ds.0.color.2 + value: '808000' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.proxy_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.proxy_group_manager.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABU + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Discovery processes' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 7e57c2 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.discovery_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.discovery_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: discovery_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABJ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Connector processes' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: b2df8a + - type: STRING + name: ds.0.color.1 + value: ffca58 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.connector_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.connector_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: connector_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABL + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Housekeeping' + x: '36' + 'y': '25' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: cab2d6 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.housekeeper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.trigger_housekeeper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABP + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Availability processes' + x: '36' + 'y': '31' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 6a3d9a + - type: STRING + name: ds.0.color.1 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.unreachable_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.availability_manager.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABR + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Reporting processes' + x: '36' + 'y': '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: e377c2 + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.report_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent' + key: process.report_writer.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABT + - type: INTEGER + name: show_problems + value: '1' + - name: Statuses + widgets: + - type: item + name: 'Zabbix server version' + width: '16' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix server health by Zabbix agent' + key: version + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: honeycomb + name: 'High availability: Node state' + x: '16' + width: '56' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'Cluster node [*]: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Cluster node \[(.*)]: Status","\1")}' + - type: STRING + name: reference + value: BAAAA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: b2df8a + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: '878787' + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: e31a1c + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: 33a02c + - type: STRING + name: thresholds.3.threshold + value: '3' + valuemaps: + - uuid: c9ec732079f64b5d9e8d4b7c628580e3 + name: 'Cluster node status' + mappings: + - value: '0' + newvalue: Standby + - value: '1' + newvalue: Stopped + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Active + - uuid: ee5e7ff1e0e041eca7483ea45213d3a5 + name: Compatibility + mappings: + - value: '0' + newvalue: Undefined + - value: '1' + newvalue: Current + - value: '2' + newvalue: Outdated + - value: '3' + newvalue: Unsupported + - uuid: edc03d2774094cfcb20afbe8476c85fb + name: 'Last seen' + mappings: + - value: '-1' + newvalue: Never + - uuid: 7247343b21ed4fd4823f9148a3245805 + name: 'Proxy mode' + mappings: + - value: '0' + newvalue: Active + - value: '1' + newvalue: Passive + - uuid: 253052f6133b498eb7248bc3d66fa18e + name: 'Service state' + mappings: + - value: '0' + newvalue: 'Off' + - value: '1' + newvalue: 'On' + - uuid: cfe65eb3384047dfaf31a8d4b09c4de1 + name: 'Value cache operating mode' + mappings: + - value: '0' + newvalue: Normal + - value: '1' + newvalue: 'Low memory' + - uuid: bf89fa6047464f668db6b324abf0cc3e + name: 'Zabbix server check' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' diff --git a/Zabbix_server_health_by_Zabbix_agent_active.yaml b/Zabbix_server_health_by_Zabbix_agent_active.yaml new file mode 100644 index 0000000..6acbaaf --- /dev/null +++ b/Zabbix_server_health_by_Zabbix_agent_active.yaml @@ -0,0 +1,3996 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 6d6c147c87de4af1b09cf0f55bac50a0 + template: 'Zabbix server health by Zabbix agent active' + name: 'Zabbix server health by Zabbix agent active' + description: | + This template is designed to monitor Zabbix server metrics via the active Zabbix agent. + + Specify the address of the remote Zabbix server by changing the {$ZABBIX.SERVER.ADDRESS} and {$ZABBIX.SERVER.PORT} macros. Don't forget to adjust the "StatsAllowedIP" parameter in the remote server's configuration file to allow the collection of statistics. + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-6 + groups: + - name: Templates/Applications + items: + - uuid: 9b49a702d9874dfab715523b87a98a1a + name: 'Connector queue' + type: DEPENDENT + key: connector_queue + delay: '0' + description: 'The count of values enqueued in the connector queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.connector_queue + error_handler: CUSTOM_ERROR + error_handler_params: 'No "connector" processes started. Please check "StartConnectors" parameter in the server configuration file.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 97af4a2fb95049ba836f7b2ea1b8ac29 + name: 'Discovery queue' + type: DEPENDENT + key: discovery_queue + delay: '0' + description: 'The count of values enqueued in the discovery queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.discovery_queue + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 6f925d7628d84fffa4837da1984db203 + name: 'LLD queue' + type: DEPENDENT + key: lld_queue + delay: '0' + description: 'The number of values enqueued in the low-level discovery processing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.lld_queue + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 0247833bf1ba4f7c87fa13c5dbc00308 + name: 'Preprocessing queue' + type: DEPENDENT + key: preprocessing_queue + delay: '0' + description: 'The number of values enqueued in the preprocessing queue.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queue + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: ee855be0a5214ff288f1f4d053fb13d6 + name: 'Preprocessing direct throughput' + type: DEPENDENT + key: preprocessing_throughput_direct + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the direct throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 4ee40b08e9a44f448595fcbb0e8c9ece + name: 'Preprocessing queued throughput' + type: DEPENDENT + key: preprocessing_throughput_queued + delay: '0' + value_type: FLOAT + units: Bps + description: 'Reflects the queued throughput of the preprocessing.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.size + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: bdf65137d0ce48ba9aff14984c84a072 + name: 'Preprocessing direct VPS' + type: DEPENDENT + key: preprocessing_vps_direct + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of direct preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.direct.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: cf136f14d2af413baf0c5f7cbe564b9e + name: 'Preprocessing queued VPS' + type: DEPENDENT + key: preprocessing_vps_queued + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Reflects the count of queued preprocessing values per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.preprocessing.queued.count + error_handler: DISCARD_VALUE + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: b74f03a8047b49af9a2dace775acf8ec + name: 'Utilization of agent poller data collector processes, in %' + type: DEPENDENT + key: process.agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "agent poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 52051812fdb04a63acda8c59090db059 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.agent_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.agent_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"agent poller"}' + name: 'Zabbix server: Utilization of agent poller processes is high' + event_name: 'Zabbix server: Utilization of agent poller processes over {$ZABBIX.SERVER.UTIL.MAX:"agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 1f92d15a59a54aa485361deafbee15e8 + name: 'Utilization of alerter internal processes, in %' + type: DEPENDENT + key: process.alerter.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alerter processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''alerter''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "alerter" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 55929cbec22d4bceb43c05615cc30aa4 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.alerter.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"alerter"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.alerter.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"alerter"}' + name: 'Zabbix server: Utilization of alerter processes is high' + event_name: 'Zabbix server: Utilization of alerter processes over {$ZABBIX.SERVER.UTIL.MAX:"alerter"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alerter, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 101445ba757f4c1a9986df4b2302aae7 + name: 'Utilization of alert manager internal processes, in %' + type: DEPENDENT + key: process.alert_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alert manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''alert manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "alert manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 161bc98198524413a00490196add9b2b + expression: 'avg(/Zabbix server health by Zabbix agent active/process.alert_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"alert manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.alert_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"alert manager"}' + name: 'Zabbix server: Utilization of alert manager processes is high' + event_name: 'Zabbix server: Utilization of alert manager processes over {$ZABBIX.SERVER.UTIL.MAX:"alert manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alert manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c8dec4c38b9c4ad3987bf6a9d200fa6e + name: 'Utilization of alert syncer internal processes, in %' + type: DEPENDENT + key: process.alert_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the alert syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''alert syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "alert syncer" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: bed49050d02e4be5b64d6763101f81f4 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.alert_syncer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"alert syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.alert_syncer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"alert syncer"}' + name: 'Zabbix server: Utilization of alert syncer processes is high' + event_name: 'Zabbix server: Utilization of alert syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"alert syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the alert syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d54f576d30bd492d9379f250f506af7c + name: 'Utilization of availability manager internal processes, in %' + type: DEPENDENT + key: process.availability_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the availability manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''availability manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "availability manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 7cda574ff0af44a88b3cde965dec3c1b + expression: 'avg(/Zabbix server health by Zabbix agent active/process.availability_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"availability manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.availability_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"availability manager"}' + name: 'Zabbix server: Utilization of availability manager processes is high' + event_name: 'Zabbix server: Utilization of availability manager processes over {$ZABBIX.SERVER.UTIL.MAX:"availability manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the availability manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: f976e0d8a109418c926882e02f520eaf + name: 'Utilization of browser poller data collector processes, in %' + type: DEPENDENT + key: process.browser_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the browser poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''browser poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "browser poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 8090b7e65f0743938d34d031c04786c2 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.browser_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"browser poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.browser_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"browser poller"}' + name: 'Zabbix server: Utilization of browser poller processes is high' + event_name: 'Zabbix server: Utilization of browser poller processes over {$ZABBIX.SERVER.UTIL.MAX:"browser poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the browser poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 282ed37443d54b54ab033be9d8d70b23 + name: 'Utilization of configuration syncer internal processes, in %' + type: DEPENDENT + key: process.configuration_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''configuration syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "configuration syncer" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 0968f49341bf4d4c90fb2a9281f0e61b + expression: 'avg(/Zabbix server health by Zabbix agent active/process.configuration_syncer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.configuration_syncer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"configuration syncer"}' + name: 'Zabbix server: Utilization of configuration syncer processes is high' + event_name: 'Zabbix server: Utilization of configuration syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"configuration syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: ba32bcaa13214c0fab6d98e0909d5c94 + name: 'Utilization of configuration syncer worker internal processes, in %' + type: DEPENDENT + key: process.configuration_syncer_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the configuration syncer worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''configuration syncer worker''].busy.avg' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: b17ce9330f784c608e85c3d2d8e4665a + expression: 'avg(/Zabbix server health by Zabbix agent active/process.configuration_syncer_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration syncer worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.configuration_syncer_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"configuration syncer worker"}' + name: 'Zabbix server: Utilization of configuration syncer worker processes is high' + event_name: 'Zabbix server: Utilization of configuration syncer worker processes over {$ZABBIX.SERVER.UTIL.MAX:"configuration syncer worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the configuration syncer worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 23c553180c134b8e813d721c80dcc76d + name: 'Utilization of connector manager internal processes, in %' + type: DEPENDENT + key: process.connector_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the connector manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''connector manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "connector manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: aeea0a0f2394447483ba8274c072ee95 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.connector_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"connector manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.connector_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"connector manager"}' + name: 'Zabbix server: Utilization of connector manager processes is high' + event_name: 'Zabbix server: Utilization of connector manager processes over {$ZABBIX.SERVER.UTIL.MAX:"connector manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the connector manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 77ee49931238400d81c597b146d291cd + name: 'Utilization of connector worker internal processes, in %' + type: DEPENDENT + key: process.connector_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the connector worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''connector worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "connector worker" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 0a12645bdd92487486281070bd3b6ff9 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.connector_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"connector worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.connector_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"connector worker"}' + name: 'Zabbix server: Utilization of connector worker processes is high' + event_name: 'Zabbix server: Utilization of connector worker processes over {$ZABBIX.SERVER.UTIL.MAX:"connector worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the connector worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: d2ac8e1c42704bc9aea9fcfe50fbdbdd + name: 'Utilization of discovery manager internal processes, in %' + type: DEPENDENT + key: process.discovery_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 96e3bce31fff4037a4586d0b815cf290 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.discovery_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"discovery manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.discovery_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"discovery manager"}' + name: 'Zabbix server: Utilization of discovery manager processes is high' + event_name: 'Zabbix server: Utilization of discovery manager processes over {$ZABBIX.SERVER.UTIL.MAX:"discovery manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9e1200fc5d0a4ccfaff4fb1926b2ef31 + name: 'Utilization of discovery worker internal processes, in %' + type: DEPENDENT + key: process.discovery_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the discovery worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''discovery worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "discovery worker" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 134b0d08ae6b43a1b136793b3084bfd3 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.discovery_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"discovery worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.discovery_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"discovery worker"}' + name: 'Zabbix server: Utilization of discovery worker processes is high' + event_name: 'Zabbix server: Utilization of discovery worker processes over {$ZABBIX.SERVER.UTIL.MAX:"discovery worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the discovery worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 27f7bcbcc7fa4c91a8f82bbc2f470cd5 + name: 'Utilization of escalator internal processes, in %' + type: DEPENDENT + key: process.escalator.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the escalator processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''escalator''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "escalator" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: bbb663f67af94a50bfc834487750385b + expression: 'avg(/Zabbix server health by Zabbix agent active/process.escalator.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"escalator"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.escalator.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"escalator"}' + name: 'Zabbix server: Utilization of escalator processes is high' + event_name: 'Zabbix server: Utilization of escalator processes over {$ZABBIX.SERVER.UTIL.MAX:"escalator"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the escalator, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 617a44fb20704e7c8ab1c7847df082d6 + name: 'Utilization of history poller internal processes, in %' + type: DEPENDENT + key: process.history_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''history poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "history poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: f307a979059d46e2b4a77a7756728996 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.history_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"history poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.history_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"history poller"}' + name: 'Zabbix server: Utilization of history poller processes is high' + event_name: 'Zabbix server: Utilization of history poller processes over {$ZABBIX.SERVER.UTIL.MAX:"history poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: ebdb96a5d7264126895181f1256de4a4 + name: 'Utilization of history syncer internal processes, in %' + type: DEPENDENT + key: process.history_syncer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the history syncer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''history syncer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "history syncer" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: dfe7bf1d932d4451906ccdf1716c06e5 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.history_syncer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"history syncer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.history_syncer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"history syncer"}' + name: 'Zabbix server: Utilization of history syncer processes is high' + event_name: 'Zabbix server: Utilization of history syncer processes over {$ZABBIX.SERVER.UTIL.MAX:"history syncer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the history syncer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9be1900382ee432f912882f61d457d55 + name: 'Utilization of housekeeper internal processes, in %' + type: DEPENDENT + key: process.housekeeper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the housekeeper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''housekeeper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "housekeeper" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: b69548aebe7646b69848b66ea9c55cdc + expression: 'avg(/Zabbix server health by Zabbix agent active/process.housekeeper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.housekeeper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"housekeeper"}' + name: 'Zabbix server: Utilization of housekeeper processes is high' + event_name: 'Zabbix server: Utilization of housekeeper processes over {$ZABBIX.SERVER.UTIL.MAX:"housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: cc48cb65a5ad417a81bfc25b1c41aa3b + name: 'Utilization of http agent poller data collector processes, in %' + type: DEPENDENT + key: process.http_agent_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http agent poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http agent poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "http agent poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: e64d4c1bd8334e65a40fdf1212931eba + expression: 'avg(/Zabbix server health by Zabbix agent active/process.http_agent_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"http agent poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.http_agent_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"http agent poller"}' + name: 'Zabbix server: Utilization of http agent poller processes is high' + event_name: 'Zabbix server: Utilization of http agent poller processes over {$ZABBIX.SERVER.UTIL.MAX:"http agent poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http agent poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 91a0bab07ace4721aa91fdf4c943d1fc + name: 'Utilization of http poller data collector processes, in %' + type: DEPENDENT + key: process.http_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the http poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''http poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "http poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 6e0171b059c14e0e901b9fe6ae1b87b7 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.http_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"http poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.http_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"http poller"}' + name: 'Zabbix server: Utilization of http poller processes is high' + event_name: 'Zabbix server: Utilization of http poller processes over {$ZABBIX.SERVER.UTIL.MAX:"http poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the http poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: f3604ea1b796405b97b0c0d1628e07ac + name: 'Utilization of icmp pinger data collector processes, in %' + type: DEPENDENT + key: process.icmp_pinger.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the icmp pinger processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''icmp pinger''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "icmp pinger" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 1e25430b01b34700b0ff8133e18d5f87 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.icmp_pinger.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"icmp pinger"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.icmp_pinger.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"icmp pinger"}' + name: 'Zabbix server: Utilization of icmp pinger processes is high' + event_name: 'Zabbix server: Utilization of icmp pinger processes over {$ZABBIX.SERVER.UTIL.MAX:"icmp pinger"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the icmp pinger, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 0f53768b5c4a4958b081c70793aa3fdf + name: 'Utilization of internal poller data collector processes, in %' + type: DEPENDENT + key: process.internal_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the internal poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''internal poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "internal poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: eb8a30975bef4bf4bafd4e69d7e94cd3 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.internal_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"internal poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.internal_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"internal poller"}' + name: 'Zabbix server: Utilization of internal poller processes is high' + event_name: 'Zabbix server: Utilization of internal poller processes over {$ZABBIX.SERVER.UTIL.MAX:"internal poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the internal poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 3c45bdcba13a4783984696ae2ff6eb46 + name: 'Utilization of ipmi manager internal processes, in %' + type: DEPENDENT + key: process.ipmi_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "ipmi manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 5c1b160b10d4463092051485a3489ddf + expression: 'avg(/Zabbix server health by Zabbix agent active/process.ipmi_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"ipmi manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.ipmi_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"ipmi manager"}' + name: 'Zabbix server: Utilization of ipmi manager processes is high' + event_name: 'Zabbix server: Utilization of ipmi manager processes over {$ZABBIX.SERVER.UTIL.MAX:"ipmi manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 47a99733ef2b4e36a4ac58e29b63c810 + name: 'Utilization of ipmi poller data collector processes, in %' + type: DEPENDENT + key: process.ipmi_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ipmi poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''ipmi poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "ipmi poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 3118da52346341d880b440c83d41e17a + expression: 'avg(/Zabbix server health by Zabbix agent active/process.ipmi_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"ipmi poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.ipmi_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"ipmi poller"}' + name: 'Zabbix server: Utilization of ipmi poller processes is high' + event_name: 'Zabbix server: Utilization of ipmi poller processes over {$ZABBIX.SERVER.UTIL.MAX:"ipmi poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ipmi poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 933b92aecdbd4765867d679d3db4746e + name: 'Utilization of java poller data collector processes, in %' + type: DEPENDENT + key: process.java_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the java poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''java poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "java poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 16a9e28d6c1f4bc6b933623aa6e6b067 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.java_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"java poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.java_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"java poller"}' + name: 'Zabbix server: Utilization of java poller processes is high' + event_name: 'Zabbix server: Utilization of java poller processes over {$ZABBIX.SERVER.UTIL.MAX:"java poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the java poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 30b7e2b8626c49d58b9b57490ad7ef3d + name: 'Utilization of LLD manager internal processes, in %' + type: DEPENDENT + key: process.lld_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the LLD manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''lld manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "LLD manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 9128e4acba994c4898ac265e556eb709 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.lld_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"LLD manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.lld_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"LLD manager"}' + name: 'Zabbix server: Utilization of LLD manager processes is high' + event_name: 'Zabbix server: Utilization of LLD manager processes over {$ZABBIX.SERVER.UTIL.MAX:"LLD manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the LLD manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8d38e7792a4649e49864271e9371abdc + name: 'Utilization of LLD worker internal processes, in %' + type: DEPENDENT + key: process.lld_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the LLD worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''lld worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "LLD worker" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 495c1295b5fe43a78f5a86c2844022e3 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.lld_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"LLD worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.lld_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"LLD worker"}' + name: 'Zabbix server: Utilization of LLD worker processes is high' + event_name: 'Zabbix server: Utilization of LLD worker processes over {$ZABBIX.SERVER.UTIL.MAX:"LLD worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the LLD worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 0fd4be9abb814541878730c77a118b4f + name: 'Utilization of ODBC poller data collector processes, in %' + type: DEPENDENT + key: process.odbc_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the ODBC poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''odbc poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'Processes odbc poller not started' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: e790935b8a5d4e088dc2edff813ecbf9 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.odbc_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"ODBC poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.odbc_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"ODBC poller"}' + name: 'Zabbix server: Utilization of ODBC poller processes is high' + event_name: 'Zabbix server: Utilization of ODBC poller processes over {$ZABBIX.SERVER.UTIL.MAX:"ODBC poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the ODBC poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: c18525d18ae0460fbc1605ec2be08087 + name: 'Utilization of poller data collector processes, in %' + type: DEPENDENT + key: process.poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: a2aa7457b1444736aee85b246317ece0 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"poller"}' + name: 'Zabbix server: Utilization of poller processes is high' + event_name: 'Zabbix server: Utilization of poller processes over {$ZABBIX.SERVER.UTIL.MAX:"poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: ce96c2ee2cc74adb99d7fe4d3cac1507 + name: 'Utilization of preprocessing manager internal processes, in %' + type: DEPENDENT + key: process.preprocessing_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "preprocessing manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 27cf66b388224931b8b839a10f027b10 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.preprocessing_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"preprocessing manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.preprocessing_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"preprocessing manager"}' + name: 'Zabbix server: Utilization of preprocessing manager processes is high' + event_name: 'Zabbix server: Utilization of preprocessing manager processes over {$ZABBIX.SERVER.UTIL.MAX:"preprocessing manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 5d5d66cb32384b1294acdcfc99eb731f + name: 'Utilization of preprocessing worker internal processes, in %' + type: DEPENDENT + key: process.preprocessing_worker.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the preprocessing worker processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''preprocessing worker''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "preprocessing worker" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: b6d5460fe0c640169574c9fdf3538773 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.preprocessing_worker.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"preprocessing worker"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.preprocessing_worker.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"preprocessing worker"}' + name: 'Zabbix server: Utilization of preprocessing worker processes is high' + event_name: 'Zabbix server: Utilization of preprocessing worker processes over {$ZABBIX.SERVER.UTIL.MAX:"preprocessing worker"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the preprocessing worker, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9b799bcc2e0a46bca8811d5b5fb8ad9d + name: 'Utilization of proxy group manager internal processes, in %' + type: DEPENDENT + key: process.proxy_group_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the proxy group manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''proxy group manager''].busy.avg' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: da4eb00198b54da8b621136df8299c80 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.proxy_group_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"proxy group manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.proxy_group_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"proxy group manager"}' + name: 'Zabbix server: Utilization of proxy group manager processes is high' + event_name: 'Zabbix server: Utilization of proxy group manager processes over {$ZABBIX.SERVER.UTIL.MAX:"proxy group manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the proxy group manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 3d9eaec2c0984ed48edd973f6b32614b + name: 'Utilization of proxy poller data collector processes, in %' + type: DEPENDENT + key: process.proxy_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the proxy poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''proxy poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "proxy poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: df0010ebd7e848beadafba435765b1e0 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.proxy_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"proxy poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.proxy_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"proxy poller"}' + name: 'Zabbix server: Utilization of proxy poller processes is high' + event_name: 'Zabbix server: Utilization of proxy poller processes over {$ZABBIX.SERVER.UTIL.MAX:"proxy poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the proxy poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 47eba63d72b24dd3b57354b16cc8dd6a + name: 'Utilization of report manager internal processes, in %' + type: DEPENDENT + key: process.report_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the report manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''report manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "report manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: a5836478648f4448a8e3ce85d08daa4e + expression: 'avg(/Zabbix server health by Zabbix agent active/process.report_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"report manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.report_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"report manager"}' + name: 'Zabbix server: Utilization of report manager processes is high' + event_name: 'Zabbix server: Utilization of report manager processes over {$ZABBIX.SERVER.UTIL.MAX:"report manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the report manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 69ede6567bb44228ae8cfa1258c1bed0 + name: 'Utilization of report writer internal processes, in %' + type: DEPENDENT + key: process.report_writer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the report writer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''report writer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "report writer" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 545c0bf735524164b3d77e455d03e8af + expression: 'avg(/Zabbix server health by Zabbix agent active/process.report_writer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"report writer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.report_writer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"report writer"}' + name: 'Zabbix server: Utilization of report writer processes is high' + event_name: 'Zabbix server: Utilization of report writer processes over {$ZABBIX.SERVER.UTIL.MAX:"report writer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the report writer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8968f305c67a4b929a18d2f8911d044c + name: 'Utilization of self-monitoring internal processes, in %' + type: DEPENDENT + key: process.self-monitoring.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the self-monitoring processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''self-monitoring''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "self-monitoring" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 2a6c0c7ba1f4406695b938af44d6884d + expression: 'avg(/Zabbix server health by Zabbix agent active/process.self-monitoring.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"self-monitoring"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.self-monitoring.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"self-monitoring"}' + name: 'Zabbix server: Utilization of self-monitoring processes is high' + event_name: 'Zabbix server: Utilization of self-monitoring processes over {$ZABBIX.SERVER.UTIL.MAX:"self-monitoring"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the self-monitoring, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 39ecbb836a2647bb989807a31b30b791 + name: 'Utilization of service manager internal processes, in %' + type: DEPENDENT + key: process.service_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the service manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''service manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "service manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 3b9a86fd759641a78bcd43cfccc625b3 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.service_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"service manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.service_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"service manager"}' + name: 'Zabbix server: Utilization of service manager processes is high' + event_name: 'Zabbix server: Utilization of service manager processes over {$ZABBIX.SERVER.UTIL.MAX:"service manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the service manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9a2fe1441aa84b35bbb076ed8429321f + name: 'Utilization of snmp poller data collector processes, in %' + type: DEPENDENT + key: process.snmp_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "snmp poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 680e6203ce4849d0aa3b2ca16c9757f2 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.snmp_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"snmp poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.snmp_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"snmp poller"}' + name: 'Zabbix server: Utilization of snmp poller processes is high' + event_name: 'Zabbix server: Utilization of snmp poller processes over {$ZABBIX.SERVER.UTIL.MAX:"snmp poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 59857e15812347d0b231fa237acd3089 + name: 'Utilization of snmp trapper data collector processes, in %' + type: DEPENDENT + key: process.snmp_trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the snmp trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''snmp trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "snmp trapper" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 60a0295d8b7b471db7e42ab32223cc57 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.snmp_trapper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"snmp trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.snmp_trapper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"snmp trapper"}' + name: 'Zabbix server: Utilization of snmp trapper processes is high' + event_name: 'Zabbix server: Utilization of snmp trapper processes over {$ZABBIX.SERVER.UTIL.MAX:"snmp trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the snmp trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 8a0c0e7b1c8c40d38e032f27e503c75e + name: 'Utilization of task manager internal processes, in %' + type: DEPENDENT + key: process.task_manager.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the task manager processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''task manager''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "task manager" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 337a17c96f8f410790841f2f2807eba7 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.task_manager.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"task manager"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.task_manager.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"task manager"}' + name: 'Zabbix server: Utilization of task manager processes is high' + event_name: 'Zabbix server: Utilization of task manager processes over {$ZABBIX.SERVER.UTIL.MAX:"task manager"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the task manager, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: f1006194bd594541997308ce9d68a4a6 + name: 'Utilization of timer internal processes, in %' + type: DEPENDENT + key: process.timer.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the timer processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''timer''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "timer" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: 2498dbd86bc449b9afc80e4eeb6d19e9 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.timer.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"timer"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.timer.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"timer"}' + name: 'Zabbix server: Utilization of timer processes is high' + event_name: 'Zabbix server: Utilization of timer processes over {$ZABBIX.SERVER.UTIL.MAX:"timer"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the timer, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 63085203f3fe415da1e8d3be108b3688 + name: 'Utilization of trapper data collector processes, in %' + type: DEPENDENT + key: process.trapper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trapper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''trapper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "trapper" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 414276c3e1f749cfa210b5c8978d38df + expression: 'avg(/Zabbix server health by Zabbix agent active/process.trapper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"trapper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.trapper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"trapper"}' + name: 'Zabbix server: Utilization of trapper processes is high' + event_name: 'Zabbix server: Utilization of trapper processes over {$ZABBIX.SERVER.UTIL.MAX:"trapper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trapper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: a17f1501fc924767adc3c6d98b630053 + name: 'Utilization of trigger housekeeper internal processes, in %' + type: DEPENDENT + key: process.trigger_housekeeper.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the trigger housekeeper processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''trigger housekeeper''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "trigger housekeeper" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: internal-process + triggers: + - uuid: b84fd09565a3470d81d9483551e74a4c + expression: 'avg(/Zabbix server health by Zabbix agent active/process.trigger_housekeeper.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"trigger housekeeper"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.trigger_housekeeper.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"trigger housekeeper"}' + name: 'Zabbix server: Utilization of trigger housekeeper processes is high' + event_name: 'Zabbix server: Utilization of trigger housekeeper processes over {$ZABBIX.SERVER.UTIL.MAX:"trigger housekeeper"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the trigger housekeeper, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: e08abc511b6b4f0c8decb626ca6f6780 + name: 'Utilization of unreachable poller data collector processes, in %' + type: DEPENDENT + key: process.unreachable_poller.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the unreachable poller processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''unreachable poller''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "unreachable poller" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 6d110c9dcb49446b9ff76e1f8e25d250 + expression: 'avg(/Zabbix server health by Zabbix agent active/process.unreachable_poller.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"unreachable poller"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.unreachable_poller.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"unreachable poller"}' + name: 'Zabbix server: Utilization of unreachable poller processes is high' + event_name: 'Zabbix server: Utilization of unreachable poller processes over {$ZABBIX.SERVER.UTIL.MAX:"unreachable poller"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the unreachable poller, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 96d3c75e95e44d638125f9f67e62dd76 + name: 'Utilization of vmware collector data collector processes, in %' + type: DEPENDENT + key: process.vmware_collector.avg.busy + delay: '0' + value_type: FLOAT + units: '%' + description: 'The average percentage of the time during which the vmware collector processes have been busy for the last minute.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.process[''vmware collector''].busy.avg' + error_handler: CUSTOM_ERROR + error_handler_params: 'No "vmware collector" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: gathering-process + triggers: + - uuid: 5248479b4921499bbe3004d7de0d5bec + expression: 'avg(/Zabbix server health by Zabbix agent active/process.vmware_collector.avg.busy,10m)>{$ZABBIX.SERVER.UTIL.MAX:"vmware collector"}' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Zabbix server health by Zabbix agent active/process.vmware_collector.avg.busy,10m)<{$ZABBIX.SERVER.UTIL.MIN:"vmware collector"}' + name: 'Zabbix server: Utilization of vmware collector processes is high' + event_name: 'Zabbix server: Utilization of vmware collector processes over {$ZABBIX.SERVER.UTIL.MAX:"vmware collector"}%' + priority: AVERAGE + description: 'Indicates potential performance issues with the vmware collector, which may affect monitoring efficiency and response times.' + tags: + - tag: scope + value: performance + - uuid: 9a91a17f14ac471094b7741c5eaeb84d + name: 'Configuration cache, % used' + type: DEPENDENT + key: rcache.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix configuration cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.rcache.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 1d6d78c512d34286950c00b7a0ceb810 + expression: 'max(/Zabbix server health by Zabbix agent active/rcache.buffer.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"configuration cache"}' + name: 'Zabbix server: Excessive configuration cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"configuration cache"}% used in the configuration cache' + priority: AVERAGE + description: 'Consider increasing `CacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 407dc6ff910a46dd9cb72d9ccce66fce + expression: 'nodata(/Zabbix server health by Zabbix agent active/rcache.buffer.pused,{$ZABBIX.SERVER.NODATA_TIMEOUT})=1' + name: 'Zabbix server: Failed to fetch stats data' + event_name: 'Zabbix server: Failed to fetch stats data (or no data for {$ZABBIX.SERVER.NODATA_TIMEOUT})' + priority: WARNING + description: 'Zabbix has not received statistics data for `{$ZABBIX.SERVER.NODATA_TIMEOUT}`.' + tags: + - tag: scope + value: availability + - uuid: 244d6fafb5774ce09a02267369ebe627 + name: 'Zabbix server check' + type: DEPENDENT + key: server_check + delay: '0' + trends: '0' + description: 'Flag indicating whether it is a server or not.' + valuemap: + name: 'Zabbix server check' + preprocessing: + - type: JSONPATH + parameters: + - $.data.triggers + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: IN_RANGE + parameters: + - '' + - '0' + error_handler: CUSTOM_VALUE + error_handler_params: '1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: b8f39d2f4b0a458eafde5d0442bf073f + expression: 'last(/Zabbix server health by Zabbix agent active/server_check)=0' + name: 'Zabbix server: Wrong template assigned' + event_name: 'Zabbix server: Zabbix server template is assigned to Zabbix proxy' + priority: DISASTER + description: 'Check that the template has been selected correctly.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 8ab73f9ddc8c4eabaef323693c350b0e + name: 'Trend function cache, % of unique requests' + type: DEPENDENT + key: tcache.pitems + delay: '0' + value_type: FLOAT + units: '%' + description: | + The effectiveness statistics of the Zabbix trend function cache. The percentage of cached items calculated from the sum of the cached items plus requests. + A low percentage most likely means that the cache size can be reduced. + preprocessing: + - type: JSONPATH + parameters: + - $.data.tcache.pitems + error_handler: CUSTOM_ERROR + error_handler_params: 'Not supported in this version.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: 2f23e8e930554c62aec0b11d3f1568b7 + name: 'Trend function cache, % of misses' + type: DEPENDENT + key: tcache.pmisses + delay: '0' + value_type: FLOAT + units: '%' + description: 'The effectiveness statistics of the Zabbix trend function cache. The percentage of cache misses.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.tcache.pmisses + error_handler: CUSTOM_ERROR + error_handler_params: 'Not supported in this version.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: ff55defb24074bf8b2346046f4fb3cda + name: 'Value cache, % used' + type: DEPENDENT + key: vcache.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix value cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.buffer.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 0d970aa35f8a4086b1a5534bdbbc7480 + expression: 'max(/Zabbix server health by Zabbix agent active/vcache.buffer.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"value cache"}' + name: 'Zabbix server: Excessive value cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"value cache"}% used in the value cache' + priority: AVERAGE + description: 'Consider increasing `ValueCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 4bce063f5d374efcb1a2ffcd2658b153 + name: 'Value cache hits' + type: DEPENDENT + key: vcache.cache.hits + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The effectiveness statistics of Zabbix value cache. The number of cache hits (history values taken from the cache).' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.cache.hits + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: e7510966d6ce41d3aa383e83d3fe7ec1 + name: 'Value cache misses' + type: DEPENDENT + key: vcache.cache.misses + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The effectiveness statistics of Zabbix value cache. The number of cache misses (history values taken from the database).' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.cache.misses + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + - uuid: c7d7b0e80bf040aabc9f1350e24ba994 + name: 'Value cache operating mode' + type: DEPENDENT + key: vcache.cache.mode + delay: '0' + units: '!vps' + description: 'The operating mode of the value cache.' + valuemap: + name: 'Value cache operating mode' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vcache.cache.mode + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: afa69411eaf94f029b319c2b03c969c6 + expression: 'last(/Zabbix server health by Zabbix agent active/vcache.cache.mode)=1' + name: 'Zabbix server: Zabbix value cache working in low-memory mode' + priority: HIGH + description: 'Once low-memory mode has been switched on, the value cache will remain in this state for 24 hours, even if the problem that triggered this mode is resolved sooner.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 92d7e426ec744ea196032825231df258 + name: Version + type: DEPENDENT + key: version + delay: '0' + value_type: CHAR + trends: '0' + description: 'The version of Zabbix server.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: a5c77cd2518844c9a27ced51d57b0a69 + expression: 'last(/Zabbix server health by Zabbix agent active/version,#1)<>last(/Zabbix server health by Zabbix agent active/version,#2) and length(last(/Zabbix server health by Zabbix agent active/version))>0' + name: 'Zabbix server: Version has changed' + event_name: 'Zabbix server: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Zabbix server version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: e2244cdef6774aaf97b244ac6617316f + name: 'VMware cache, % used' + type: DEPENDENT + key: vmware.buffer.pused + delay: '0' + value_type: FLOAT + units: '%' + description: 'The availability statistics of Zabbix vmware cache. The percentage of used data buffer.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vmware.pused + error_handler: CUSTOM_ERROR + error_handler_params: 'No "vmware collector" processes started.' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 8ef38ec3297344c48ee6a1c632481f2e + expression: 'max(/Zabbix server health by Zabbix agent active/vmware.buffer.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"vmware cache"}' + name: 'Zabbix server: Excessive vmware cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"vmware cache"}% used in the vmware cache' + priority: AVERAGE + description: 'Consider increasing `VMwareCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 90ee7e364f7e4b64802482ea189a1d84 + name: 'Number of values synchronized with the database per second' + type: DEPENDENT + key: vps.written + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'Average quantity of values written to the database, recalculated once per minute.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.vps.written_total + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: a7c9054d62324c61a6b7dba48683617e + name: 'History write cache, % used' + type: DEPENDENT + key: wcache.history.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history buffer. + The history cache is used to store item values. A high number indicates database performance problems. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.history.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 2cb075a78bf248aea1f18afe56a8406c + expression: 'max(/Zabbix server health by Zabbix agent active/wcache.history.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"history cache"}' + name: 'Zabbix server: Excessive history cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"history cache"}% used in the history cache' + priority: AVERAGE + description: 'Consider increasing `HistoryCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 9a6c936674fb47daa2625604acb78f51 + name: 'History index cache, % used' + type: DEPENDENT + key: wcache.index.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used history index buffer. + The history index cache is used to index values stored in the history cache. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.index.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: 4be3fd672e3c464b94a23fa3b51176df + expression: 'max(/Zabbix server health by Zabbix agent active/wcache.index.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"index cache"}' + name: 'Zabbix server: Excessive history index cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"index cache"}% used in the history index cache' + priority: AVERAGE + description: 'Consider increasing `HistoryIndexCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 55cb808101fe4fc8ace522c3f57e6c97 + name: 'Trend write cache, % used' + type: DEPENDENT + key: wcache.trend.pused + delay: '0' + value_type: FLOAT + units: '%' + description: | + The statistics and availability of Zabbix write cache. The percentage of used trend buffer. + The trend cache stores the aggregate of all items that have received data for the current hour. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.trend.pused + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: system + triggers: + - uuid: ae75c7ba703e42b7a443e14f3b47c38d + expression: 'max(/Zabbix server health by Zabbix agent active/wcache.trend.pused,10m)>{$ZABBIX.SERVER.UTIL.MAX:"trend cache"}' + name: 'Zabbix server: Excessive trends cache usage' + event_name: 'Zabbix server: More than {$ZABBIX.SERVER.UTIL.MAX:"trend cache"}% used in the trends cache' + priority: AVERAGE + description: 'Consider increasing `TrendCacheSize` in the `zabbix_server.conf` configuration file.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: b031a389ab79493f8bf84df55673805f + name: 'Number of processed values per second' + type: DEPENDENT + key: wcache.values + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The total number of values processed by Zabbix server or Zabbix proxy, except unsupported items. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.all + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 2b8411ca3fe048bbbe99631322cd2f88 + name: 'Number of processed numeric (float) values per second' + type: DEPENDENT + key: wcache.values.float + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (float) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.float + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: ccefd74e15e14ead8914aab1874bcf9b + name: 'Number of processed log values per second' + type: DEPENDENT + key: wcache.values.log + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed log values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.log + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: c6f051ebbcac4f1383cad1cac88b4710 + name: 'Number of processed not supported values per second' + type: DEPENDENT + key: wcache.values.not_supported + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of times the item processing resulted in an item becoming unsupported or remaining in that state. + preprocessing: + - type: JSONPATH + parameters: + - '$.data.wcache.values[''not supported'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 8c2f87ab4b484d6ab206b19a50959088 + name: 'Number of processed character values per second' + type: DEPENDENT + key: wcache.values.str + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed character values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.str + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: f1c2ae5c89204efe81d67248587971c2 + name: 'Number of processed text values per second' + type: DEPENDENT + key: wcache.values.text + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed text values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.text + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: cb37f569c18247099e9b15951d76fdb4 + name: 'Number of processed numeric (unsigned) values per second' + type: DEPENDENT + key: wcache.values.uint + delay: '0' + value_type: FLOAT + units: '!vps' + description: | + The statistics and availability of Zabbix write cache. + The number of processed numeric (unsigned) values. + preprocessing: + - type: JSONPATH + parameters: + - $.data.wcache.values.uint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: nvps + - tag: component + value: system + - uuid: 868fe1403673438d8d65d09609754a97 + name: 'Zabbix proxies stats' + type: DEPENDENT + key: zabbix.proxies.stats + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix proxies'' statistics.' + preprocessing: + - type: JSONPATH + parameters: + - $.data.proxy + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: raw + - uuid: 99be4e08ef924b49a3237bc4970e61c2 + name: 'Queue over 10 minutes' + type: ZABBIX_ACTIVE + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue,10m]' + description: 'The number of monitored items in the queue that are delayed by at least 10 minutes.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + triggers: + - uuid: 26f00ef4bbae4b94a8228232072722aa + expression: 'min(/Zabbix server health by Zabbix agent active/zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue,10m],10m)>100' + name: 'Zabbix server: More than 100 items have been missing data for over 10 minutes' + priority: WARNING + description: 'Indicates potential issues with network connectivity, agent failures, or unresponsive monitored resources that require attention.' + tags: + - tag: scope + value: performance + - uuid: ef3a71dd5daf4c8cbfa75ed66ef7dee7 + name: Queue + type: ZABBIX_ACTIVE + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue]' + description: 'The number of monitored items in the queue that are delayed by at least 6 seconds.' + preprocessing: + - type: JSONPATH + parameters: + - $.queue + tags: + - tag: component + value: system + - uuid: 6bc7fdba3ff846cb87f916b05e303572 + name: 'Zabbix stats' + type: ZABBIX_ACTIVE + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + history: '0' + value_type: TEXT + trends: '0' + description: 'The master item of Zabbix server statistics.' + tags: + - tag: component + value: raw + discovery_rules: + - uuid: c0b766a1f6f640faa911b4ac4c5d7bb6 + name: 'High availability cluster node discovery' + type: DEPENDENT + key: zabbix.nodes.discovery + delay: '0' + description: 'LLD rule with item and trigger prototypes for node discovery.' + item_prototypes: + - uuid: 7c38495cd55044e29ced4ce5b095f86f + name: 'Cluster node [{#NODE.NAME}]: Address' + type: DEPENDENT + key: 'zabbix.node.address[{#NODE.ID}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'The IPv4 address of a node.' + preprocessing: + - type: JSONPATH + parameters: + - $.address + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 89843094ec7944eea6a7cad2b4280e2d + name: 'Cluster node [{#NODE.NAME}]: Last access age' + type: DEPENDENT + key: 'zabbix.node.lastaccess.age[{#NODE.ID}]' + delay: '0' + units: uptime + description: 'The time between the database''s `unix_timestamp()` and the last access time.' + preprocessing: + - type: JSONPATH + parameters: + - $.lastaccess_age + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 81e699b0d3a349d0bb74071b0fb75f8f + name: 'Cluster node [{#NODE.NAME}]: Last access time' + type: DEPENDENT + key: 'zabbix.node.lastaccess.time[{#NODE.ID}]' + delay: '0' + units: unixtime + description: 'Last access time.' + preprocessing: + - type: JSONPATH + parameters: + - $.lastaccess + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 23101227cb3a4f4782bc9399c6a198ff + name: 'Cluster node [{#NODE.NAME}]: Stats' + type: DEPENDENT + key: 'zabbix.node.stats[{#NODE.ID}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'Provides the statistics of a node.' + preprocessing: + - type: JSONPATH + parameters: + - '$.data.ha[?(@.id=="{#NODE.ID}")].first()' + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + tags: + - tag: component + value: cluster + - tag: component + value: raw + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + - uuid: 39751d281a5b40e8a1bb267f97982b6e + name: 'Cluster node [{#NODE.NAME}]: Status' + type: DEPENDENT + key: 'zabbix.nodes.status[{#NODE.ID}]' + delay: '0' + description: 'The status of a node.' + valuemap: + name: 'Cluster node status' + preprocessing: + - type: JSONPATH + parameters: + - $.status + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.node.stats[{#NODE.ID}]' + tags: + - tag: component + value: cluster + - tag: node-id + value: '{#NODE.ID}' + - tag: node-name + value: '{#NODE.NAME}' + trigger_prototypes: + - uuid: 3f5929a797014c4795ea812d14713da8 + expression: 'last(/Zabbix server health by Zabbix agent active/zabbix.nodes.status[{#NODE.ID}],#1)<>last(/Zabbix server health by Zabbix agent active/zabbix.nodes.status[{#NODE.ID}],#2)' + name: 'Zabbix server: Cluster node [{#NODE.NAME}]: Status changed' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: INFO + description: 'The state of the node has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + master_item: + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT}]' + lld_macro_paths: + - lld_macro: '{#NODE.ID}' + path: $.id + - lld_macro: '{#NODE.NAME}' + path: $.name + preprocessing: + - type: JSONPATH + parameters: + - $.data.ha + - type: JAVASCRIPT + parameters: + - | + var hacluster = JSON.parse(value); + + result = hacluster.map(function (hanode) { + return { + 'id': hanode.id, + 'name': hanode.name + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + - uuid: 9ae3dd3caef84e539d7a51495795f0b6 + name: 'Zabbix proxy discovery' + type: DEPENDENT + key: zabbix.proxy.discovery + delay: '0' + description: 'LLD rule with item and trigger prototypes for proxy discovery.' + item_prototypes: + - uuid: 2ba040518c6f47689ae14fcbae0be50f + name: 'Proxy [{#PROXY.NAME}]: Certificate' + type: DEPENDENT + key: 'zabbix.proxy.cert[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.cert + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 4364a9257de94337a8f3b646b5a0c64a + name: 'Proxy [{#PROXY.NAME}]: Compatibility' + type: DEPENDENT + key: 'zabbix.proxy.compatibility[{#PROXY.NAME}]' + delay: '0' + description: | + Version of proxy compared to Zabbix server version. + + Possible values: + 0 - Undefined; + 1 - Current version (proxy and server have the same major version); + 2 - Outdated version (proxy version is older than server version, but is partially supported); + 3 - Unsupported version (proxy version is older than server previous LTS release version or server major version is older than proxy major version). + valuemap: + name: Compatibility + preprocessing: + - type: JSONPATH + parameters: + - $.compatibility + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + trigger_prototypes: + - uuid: ebb05d922d0b4115a7f543ec27884bb0 + expression: 'last(/Zabbix server health by Zabbix agent active/zabbix.proxy.compatibility[{#PROXY.NAME}],#1)=3' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy is not supported' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: HIGH + description: 'Zabbix proxy version is older than server previous LTS release version or server major version is older than proxy major version.' + tags: + - tag: scope + value: availability + - uuid: ecb8145b4d1742c5b63b70571d578841 + expression: 'last(/Zabbix server health by Zabbix agent active/zabbix.proxy.compatibility[{#PROXY.NAME}],#1)=2' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy is outdated' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy version is older than server version, but is partially supported. Only data collection and remote execution is available.' + tags: + - tag: scope + value: availability + - uuid: 20dcd000b9fc48b9a82558c51cc32664 + name: 'Proxy [{#PROXY.NAME}]: Compression' + type: DEPENDENT + key: 'zabbix.proxy.compression[{#PROXY.NAME}]' + delay: '0' + description: 'The compression status of a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.compression + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 081329ebe9854457ae4a437e54370063 + name: 'Proxy [{#PROXY.NAME}]: Host count' + type: DEPENDENT + key: 'zabbix.proxy.hosts[{#PROXY.NAME}]' + delay: '0' + description: 'The number of enabled hosts assigned to a proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.hosts + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 23f760b8e7bb4a168c743f9392c78619 + name: 'Proxy [{#PROXY.NAME}]: Item count' + type: DEPENDENT + key: 'zabbix.proxy.items[{#PROXY.NAME}]' + delay: '0' + description: 'The number of enabled items on enabled hosts assigned to a proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.items + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 75fd83f274174aa39866096801f58b35 + name: 'Proxy [{#PROXY.NAME}]: Last seen, in seconds' + type: DEPENDENT + key: 'zabbix.proxy.last_seen[{#PROXY.NAME}]' + delay: '0' + value_type: FLOAT + description: 'The time when a proxy was last seen by a server.' + valuemap: + name: 'Last seen' + preprocessing: + - type: JSONPATH + parameters: + - $.last_seen + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + trigger_prototypes: + - uuid: 9e2c54be71674f98b10fc0b40c79d807 + expression: 'last(/Zabbix server health by Zabbix agent active/zabbix.proxy.last_seen[{#PROXY.NAME}],#1)>{$ZABBIX.PROXY.LAST_SEEN.MAX}' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy last seen' + event_name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy last seen more than {$ZABBIX.PROXY.LAST_SEEN.MAX} seconds ago' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy is not updating the configuration data.' + tags: + - tag: scope + value: availability + - uuid: 4fb72306aa814ac1a6f1376d012cab7b + expression: 'last(/Zabbix server health by Zabbix agent active/zabbix.proxy.last_seen[{#PROXY.NAME}],#1)=-1' + name: 'Zabbix server: Proxy [{#PROXY.NAME}]: Zabbix proxy never seen' + opdata: 'Current value: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Zabbix proxy is not updating the configuration data.' + tags: + - tag: scope + value: availability + - uuid: d11a0ed453644b719b181f7c7da9aed9 + name: 'Proxy [{#PROXY.NAME}]: Mode' + type: DEPENDENT + key: 'zabbix.proxy.mode[{#PROXY.NAME}]' + delay: '0' + description: 'The mode of Zabbix proxy.' + valuemap: + name: 'Proxy mode' + preprocessing: + - type: JSONPATH + parameters: + - $.passive + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 7348feaca28843c293b58e8c8dcb4611 + name: 'Proxy [{#PROXY.NAME}]: PSK' + type: DEPENDENT + key: 'zabbix.proxy.psk[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.psk + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 5ee3fb58653a4a228a0d02cd72937b19 + name: 'Proxy [{#PROXY.NAME}]: Required VPS' + type: DEPENDENT + key: 'zabbix.proxy.requiredperformance[{#PROXY.NAME}]' + delay: '0' + value_type: FLOAT + units: '!vps' + description: 'The required performance of a proxy (the number of values that need to be collected per second).' + preprocessing: + - type: JSONPATH + parameters: + - $.requiredperformance + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 49d2bf1f174a4bd69a6ca089cfefa448 + name: 'Proxy [{#PROXY.NAME}]: Stats' + type: DEPENDENT + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The statistics for the discovered proxy.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.name=="{#PROXY.NAME}")].first()' + master_item: + key: zabbix.proxies.stats + tags: + - tag: component + value: proxy + - tag: component + value: raw + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 04144956e5cd434b8558919e7035a1d8 + name: 'Proxy [{#PROXY.NAME}]: Unencrypted' + type: DEPENDENT + key: 'zabbix.proxy.unencrypted[{#PROXY.NAME}]' + delay: '0' + description: 'The encryption status for connections from a proxy.' + valuemap: + name: 'Service state' + preprocessing: + - type: JSONPATH + parameters: + - $.unencrypted + - type: JAVASCRIPT + parameters: + - 'return value === ''false'' ? 0 : 1' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + - uuid: 88c2717be026453a8d4a2c10108e5daa + name: 'Proxy [{#PROXY.NAME}]: Version' + type: DEPENDENT + key: 'zabbix.proxy.version[{#PROXY.NAME}]' + delay: '0' + value_type: CHAR + trends: '0' + description: 'A version of Zabbix proxy.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 12h + master_item: + key: 'zabbix.proxy.stats[{#PROXY.NAME}]' + tags: + - tag: component + value: proxy + - tag: proxy-name + value: '{#PROXY.NAME}' + master_item: + key: zabbix.proxies.stats + lld_macro_paths: + - lld_macro: '{#PROXY.GROUP}' + path: $.proxy_group + - lld_macro: '{#PROXY.NAME}' + path: $.name + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var proxies = JSON.parse(value); + + result = proxies.map(function (proxy) { + return { + 'name': proxy.name, + 'proxy_group': proxy.proxy_group + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Tag proxy-group if exists' + step: '1' + filter: + conditions: + - macro: '{#PROXY.GROUP}' + operator: EXISTS + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + tags: + - tag: proxy-group + value: '{#PROXY.GROUP}' + tags: + - tag: class + value: software + - tag: target + value: server + - tag: target + value: zabbix + macros: + - macro: '{$ZABBIX.PROXY.LAST_SEEN.MAX}' + value: '600' + description: 'The maximum number of seconds that Zabbix proxy has not been seen.' + - macro: '{$ZABBIX.SERVER.ADDRESS}' + description: 'IP/DNS/network mask list of servers to be remotely queried (default is 127.0.0.1).' + - macro: '{$ZABBIX.SERVER.NODATA_TIMEOUT}' + value: 5m + description: 'The time threshold after which statistics are considered unavailable. Used in trigger expression.' + - macro: '{$ZABBIX.SERVER.PORT}' + description: 'Port of server to be remotely queried (default is 10051).' + - macro: '{$ZABBIX.SERVER.UTIL.MAX}' + value: '75' + description: 'Default maximum threshold for percentage utilization triggers (use macro context for specification).' + - macro: '{$ZABBIX.SERVER.UTIL.MAX:"value cache"}' + value: '95' + description: 'Maximum threshold for value cache utilization triggers.' + - macro: '{$ZABBIX.SERVER.UTIL.MIN}' + value: '65' + description: 'Default minimum threshold for percentage utilization triggers (use macro context for specification).' + dashboards: + - uuid: 4903e2c2ba9240e18ecb4153cee44e4f + name: 'Zabbix server health' + auto_start: 'NO' + pages: + - name: Performance + widgets: + - type: svggraph + name: 'Cache usage, in %' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: wcache.trend.pused + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: rcache.buffer.pused + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent active' + key: wcache.index.pused + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent active' + key: wcache.history.pused + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health by Zabbix agent active' + key: vcache.buffer.pused + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health by Zabbix agent active' + key: vmware.buffer.pused + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACA + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Server performance' + 'y': '6' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: wcache.values + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: vps.written + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent active' + key: 'zabbix.stats[{$ZABBIX.SERVER.ADDRESS},{$ZABBIX.SERVER.PORT},queue]' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACC + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Values processed' + 'y': '11' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: wcache.values.uint + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: wcache.values.float + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent active' + key: wcache.values.not_supported + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent active' + key: wcache.values.str + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health by Zabbix agent active' + key: wcache.values.log + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health by Zabbix agent active' + key: wcache.values.text + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACD + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Value cache effectiveness' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 33a02c + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: vcache.cache.hits + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: vcache.cache.misses + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACE + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing throughput' + 'y': '21' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: preprocessing_throughput_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: preprocessing_throughput_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABV + - type: svggraph + name: 'Internal queues' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: d62728 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: preprocessing_queue + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: lld_queue + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent active' + key: discovery_queue + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent active' + key: connector_queue + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACB + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Trend cache effectiveness, in %' + x: '36' + 'y': '16' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: tcache.pitems + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: tcache.pmisses + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_lines_mode + value: '1' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAACF + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Preprocessing VPS' + x: '36' + 'y': '21' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: ff465c + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: preprocessing_vps_queued + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: preprocessing_vps_direct + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABW + - name: Processes + widgets: + - type: svggraph + name: 'Utilization: LLD processes' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.lld_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.lld_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: lld_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABI + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Preprocessing processes' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: 7e57c2 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.preprocessing_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.preprocessing_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: INTEGER + name: ds.1.fill + value: '2' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: preprocessing_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABK + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Synchronous gathering processes' + 'y': '12' + width: '72' + height: '7' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: ff7f00 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: STRING + name: ds.0.color.3 + value: b15928 + - type: STRING + name: ds.0.color.4 + value: 17becf + - type: STRING + name: ds.0.color.5 + value: a6cee3 + - type: STRING + name: ds.0.color.6 + value: fb9a99 + - type: STRING + name: ds.0.color.7 + value: bcbd22 + - type: STRING + name: ds.0.color.8 + value: ffca58 + - type: STRING + name: ds.0.color.9 + value: e31a1c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.internal_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.ipmi_poller.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.ipmi_manager.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.http_poller.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.java_poller.avg.busy + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.vmware_collector.avg.busy + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.browser_poller.avg.busy + - type: ITEM + name: ds.0.itemids.8 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.odbc_poller.avg.busy + - type: ITEM + name: ds.0.itemids.9 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.icmp_pinger.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '10' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABM + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Asynchronous gathering processes' + 'y': '19' + width: '72' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: 6a3d9a + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.http_agent_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.snmp_poller.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABN + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Core' + 'y': '25' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 1f78b4 + - type: STRING + name: ds.0.color.1 + value: 33a02c + - type: STRING + name: ds.0.color.2 + value: e31a1c + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: STRING + name: ds.0.color.4 + value: 6a3d9a + - type: STRING + name: ds.0.color.5 + value: b15928 + - type: STRING + name: ds.0.color.6 + value: a6cee3 + - type: STRING + name: ds.0.color.7 + value: ff465c + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.configuration_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.configuration_syncer_worker.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.history_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.self-monitoring.avg.busy + - type: ITEM + name: ds.0.itemids.4 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.service_manager.avg.busy + - type: ITEM + name: ds.0.itemids.5 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.task_manager.avg.busy + - type: ITEM + name: ds.0.itemids.6 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.timer.avg.busy + - type: ITEM + name: ds.0.itemids.7 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.history_poller.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '8' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABO + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Gathering processes: Trappers' + 'y': '31' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: ffca58 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.snmp_trapper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABQ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Alerting processes' + 'y': '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 17becf + - type: STRING + name: ds.0.color.1 + value: bcbd22 + - type: STRING + name: ds.0.color.2 + value: d62728 + - type: STRING + name: ds.0.color.3 + value: ff7f00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.alert_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.alert_syncer.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.alerter.avg.busy + - type: ITEM + name: ds.0.itemids.3 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.escalator.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '4' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABS + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Proxy management and data exchange' + 'y': '41' + width: '72' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: cab2d6 + - type: STRING + name: ds.0.color.1 + value: '000080' + - type: STRING + name: ds.0.color.2 + value: '808000' + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.trapper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.proxy_poller.avg.busy + - type: ITEM + name: ds.0.itemids.2 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.proxy_group_manager.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABU + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Discovery processes' + x: '36' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: 7e57c2 + - type: STRING + name: ds.0.color.1 + value: 1f78b4 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.discovery_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.discovery_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: discovery_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABJ + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Connector processes' + x: '36' + 'y': '6' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: b2df8a + - type: STRING + name: ds.0.color.1 + value: ffca58 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.connector_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.connector_worker.avg.busy + - type: INTEGER + name: ds.1.axisy + value: '1' + - type: STRING + name: ds.1.color.0 + value: ff465c + - type: INTEGER + name: ds.1.dataset_type + value: '0' + - type: ITEM + name: ds.1.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: connector_queue + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '3' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABL + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Internal processes: Housekeeping' + x: '36' + 'y': '25' + width: '36' + height: '6' + fields: + - type: STRING + name: ds.0.color.0 + value: ffca58 + - type: STRING + name: ds.0.color.1 + value: cab2d6 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.housekeeper.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.trigger_housekeeper.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABP + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Availability processes' + x: '36' + 'y': '31' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: 6a3d9a + - type: STRING + name: ds.0.color.1 + value: b15928 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.unreachable_poller.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.availability_manager.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABR + - type: INTEGER + name: show_problems + value: '1' + - type: svggraph + name: 'Utilization: Reporting processes' + x: '36' + 'y': '36' + width: '36' + height: '5' + fields: + - type: STRING + name: ds.0.color.0 + value: e377c2 + - type: STRING + name: ds.0.color.1 + value: ffdf00 + - type: INTEGER + name: ds.0.dataset_type + value: '0' + - type: ITEM + name: ds.0.itemids.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.report_manager.avg.busy + - type: ITEM + name: ds.0.itemids.1 + value: + host: 'Zabbix server health by Zabbix agent active' + key: process.report_writer.avg.busy + - type: STRING + name: lefty_max + value: '100' + - type: STRING + name: lefty_min + value: '0' + - type: INTEGER + name: legend_lines + value: '2' + - type: INTEGER + name: legend_statistic + value: '1' + - type: STRING + name: reference + value: AAABT + - type: INTEGER + name: show_problems + value: '1' + - name: Statuses + widgets: + - type: item + name: 'Zabbix server version' + width: '16' + height: '5' + fields: + - type: INTEGER + name: decimal_places + value: '0' + - type: ITEM + name: itemid.0 + value: + host: 'Zabbix server health by Zabbix agent active' + key: version + - type: INTEGER + name: show.0 + value: '2' + - type: INTEGER + name: show.1 + value: '3' + - type: INTEGER + name: show.2 + value: '4' + - type: INTEGER + name: time_h_pos + value: '2' + - type: INTEGER + name: time_size + value: '9' + - type: INTEGER + name: time_v_pos + value: '2' + - type: INTEGER + name: value_size + value: '25' + - type: honeycomb + name: 'High availability: Node state' + x: '16' + width: '56' + height: '5' + fields: + - type: STRING + name: items.0 + value: 'Cluster node [*]: Status' + - type: STRING + name: primary_label + value: '{{ITEM.NAME}.regsub("Cluster node \[(.*)]: Status","\1")}' + - type: STRING + name: reference + value: BAAAA + - type: INTEGER + name: secondary_label_decimal_places + value: '0' + - type: STRING + name: thresholds.0.color + value: b2df8a + - type: STRING + name: thresholds.0.threshold + value: '0' + - type: STRING + name: thresholds.1.color + value: '878787' + - type: STRING + name: thresholds.1.threshold + value: '1' + - type: STRING + name: thresholds.2.color + value: e31a1c + - type: STRING + name: thresholds.2.threshold + value: '2' + - type: STRING + name: thresholds.3.color + value: 33a02c + - type: STRING + name: thresholds.3.threshold + value: '3' + valuemaps: + - uuid: f1f6de972fbc4675bee0426bcb15838c + name: 'Cluster node status' + mappings: + - value: '0' + newvalue: Standby + - value: '1' + newvalue: Stopped + - value: '2' + newvalue: Unavailable + - value: '3' + newvalue: Active + - uuid: 2e74275424ff4939a9f1a02424fcb42e + name: Compatibility + mappings: + - value: '0' + newvalue: Undefined + - value: '1' + newvalue: Current + - value: '2' + newvalue: Outdated + - value: '3' + newvalue: Unsupported + - uuid: 2e9f0571bae14b6485ae5cb79f2cb3b3 + name: 'Last seen' + mappings: + - value: '-1' + newvalue: Never + - uuid: ae285f32e1884d75bd485ad08106ee9c + name: 'Proxy mode' + mappings: + - value: '0' + newvalue: Active + - value: '1' + newvalue: Passive + - uuid: 2fa179c8f5f2482ca216270b91896e50 + name: 'Service state' + mappings: + - value: '0' + newvalue: 'Off' + - value: '1' + newvalue: 'On' + - uuid: a73ec20cb9e9412296b6d604505376da + name: 'Value cache operating mode' + mappings: + - value: '0' + newvalue: Normal + - value: '1' + newvalue: 'Low memory' + - uuid: c2fbdc79f9614caf99aa266087a7317d + name: 'Zabbix server check' + mappings: + - value: '0' + newvalue: 'False' + - value: '1' + newvalue: 'True' diff --git a/Zookeeper_by_HTTP.yaml b/Zookeeper_by_HTTP.yaml new file mode 100644 index 0000000..1d2b450 --- /dev/null +++ b/Zookeeper_by_HTTP.yaml @@ -0,0 +1,1289 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: b606eda347ea4663a33ad4d12a482750 + template: 'Zookeeper by HTTP' + name: 'Zookeeper by HTTP' + description: | + This template is designed for the effortless deployment of Apache Zookeeper monitoring by Zabbix via HTTP and doesn't require any external scripts. + + This template works with standalone and cluster instances. Metrics are collected from each Zookeeper node by requests to AdminServer + + Setup: + + 1. Enable the AdminServer and configure the parameters according to the official documentation: + https://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_adminserver_config + + 2. Set the hostname or IP address of the Apache Zookeeper host in the '{$ZOOKEEPER.HOST}' macro. You can also change the '{$ZOOKEEPER.COMMAND_URL}', '{$ZOOKEEPER.PORT}' and '{$ZOOKEEPER.SCHEME}' macros if necessary. + + You can discuss this template or leave feedback on our forum: + https://www.zabbix.com/forum/zabbix-suggestions-and-feedback + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-1 + groups: + - name: Templates/Applications + items: + - uuid: c7e7e728371a45ef81c35929a713ab4a + name: 'Approximate data size' + type: DEPENDENT + key: zookeeper.approximate_data_size + delay: '0' + units: B + description: 'Data tree size in bytes.The size includes the znode path and its value.' + preprocessing: + - type: JSONPATH + parameters: + - $.approximate_data_size + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: disk + - uuid: 260f60267bda40099f323292d7f0b8fd + name: 'Election time, avg' + type: DEPENDENT + key: zookeeper.avg_election_time + delay: '0' + value_type: FLOAT + units: ms + description: 'Time between entering and leaving election.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var metrics = JSON.parse(value), + res = metrics.avg_election_time || metrics['election_time{quantile="0.5"}']; + if (isNaN(res)) { + return 0; + } + return res; + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: application + - uuid: 28aa45a47df64503a9553a05794f512a + name: 'Fsync time, avg' + type: DEPENDENT + key: zookeeper.avg_fsynctime + delay: '0' + value_type: FLOAT + units: ms + description: 'Time to fsync transaction log.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var metrics = JSON.parse(value), + res = metrics.avg_fsynctime || metrics['fsynctime{quantile="0.5"}']; + if (isNaN(res)) { + return 0; + } + return res; + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: disk + - uuid: 243ea1e324d5464a88c8847e721cd38b + name: 'Latency, avg' + type: DEPENDENT + key: zookeeper.avg_latency + delay: '0' + value_type: FLOAT + units: ms + description: 'The average amount of time it takes for the server to respond to a client request.' + preprocessing: + - type: JSONPATH + parameters: + - $.avg_latency + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: requests + - uuid: 6195a64eb23341f0964d8d9ffbf9e624 + name: 'Snapshot write time, avg' + type: DEPENDENT + key: zookeeper.avg_snapshottime + delay: '0' + value_type: FLOAT + units: ms + description: 'Average time to write a snapshot.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var metrics = JSON.parse(value), + res = metrics['snapshottime{quantile="0.5"}'] || metrics.avg_snapshottime ; + if (isNaN(res)) { + return 0; + } + return res; + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: disk + - uuid: f227c61a498f47f6ba1862a741da3789 + name: 'Bytes received per sec' + type: DEPENDENT + key: zookeeper.bytes_received_count.rate + delay: '0' + value_type: FLOAT + units: Bps + description: 'Number of bytes received per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes_received_count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: network + - uuid: b9a97ebbaf7d416998e24553cee3559c + name: Elections + type: DEPENDENT + key: zookeeper.cnt_election_time + delay: '0' + description: 'Number of elections happened.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var metrics = JSON.parse(value); + if (metrics.server_state === "standalone") { + return 0 + } + else { + return metrics.cnt_election_time || metrics.election_time_count + } + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: application + - uuid: 01d490987f954950b7ce3a107aefa200 + name: Fsync + type: DEPENDENT + key: zookeeper.cnt_fsynctime + delay: '0' + description: 'Count of performed fsyncs.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var metrics = JSON.parse(value) + return metrics.cnt_fsynctime || metrics.fsynctime_count + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: disk + - uuid: 159bf1c1f29846a582e201c143239182 + name: 'Snapshot writes' + type: DEPENDENT + key: zookeeper.cnt_snapshottime + delay: '0' + description: 'Count of performed snapshot writes.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var metrics = JSON.parse(value) + return metrics.snapshottime_count || metrics.cnt_snapshottime + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: disk + - uuid: 10b17f0682c44e2391b8ee191ed355c1 + name: 'Commit per sec' + type: DEPENDENT + key: zookeeper.commit_count.rate + delay: '0' + value_type: FLOAT + description: 'The number of commits performed per second' + preprocessing: + - type: JSONPATH + parameters: + - $.commit_count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: operations + - uuid: 1c0ff2c8d4844ed4b815f2a793dd6e7b + name: 'Drop connections per sec' + type: DEPENDENT + key: zookeeper.connection_drop_count.rate + delay: '0' + value_type: FLOAT + description: 'Rate of connection drops.' + preprocessing: + - type: JSONPATH + parameters: + - $.connection_drop_count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: connections + - uuid: 640195274cda47ed83faa4f0c6529818 + name: 'Rejected connections per sec' + type: DEPENDENT + key: zookeeper.connection_rejected.rate + delay: '0' + value_type: FLOAT + description: 'Rate of connection rejected.' + preprocessing: + - type: JSONPATH + parameters: + - $.connection_rejected + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: connections + - uuid: 1498099b44d3424093f7cea55cb256e8 + name: 'Revalidate connections per sec' + type: DEPENDENT + key: zookeeper.connection_revalidate_count.rate + delay: '0' + value_type: FLOAT + description: 'Rate of connection revalidations.' + preprocessing: + - type: JSONPATH + parameters: + - $.connection_revalidate_count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: connections + - uuid: 3e8e3bc9910e4c3c898e1371790a35f0 + name: 'Diff syncs per sec' + type: DEPENDENT + key: zookeeper.diff_count.rate + delay: '0' + value_type: FLOAT + description: 'Number of diff syncs performed per second' + preprocessing: + - type: JSONPATH + parameters: + - $.diff_count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: operations + - uuid: 1a581bf18a364868b6eb47bbafcaa105 + name: 'Ephemeral nodes count' + type: DEPENDENT + key: zookeeper.ephemerals_count + delay: '0' + description: 'Number of ephemeral nodes that a zookeeper server has in its data tree.' + preprocessing: + - type: JSONPATH + parameters: + - $.ephemerals_count + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: application + - uuid: f682f5d6e1664f919872f309371e4079 + name: 'Get connections stats' + type: HTTP_AGENT + key: zookeeper.get_connections_stats + history: '0' + value_type: TEXT + trends: '0' + description: 'Get information on client connections to server. Note, depending on the number of client connections this operation may be expensive (i.e. impact server performance).' + url: '{$ZOOKEEPER.SCHEME}://{$ZOOKEEPER.HOST}:{$ZOOKEEPER.PORT}/{$ZOOKEEPER.COMMAND_URL}/connections' + tags: + - tag: component + value: connections + - tag: component + value: raw + - uuid: cf7e83297d6343fb87dcd7848f62ce41 + name: 'Get server metrics' + type: HTTP_AGENT + key: zookeeper.get_metrics + history: '0' + value_type: TEXT + trends: '0' + url: '{$ZOOKEEPER.SCHEME}://{$ZOOKEEPER.HOST}:{$ZOOKEEPER.PORT}/{$ZOOKEEPER.COMMAND_URL}/monitor' + tags: + - tag: component + value: raw + - uuid: 0f8e7ac6f753483d86744b2ab6aa28dd + name: 'Global sessions' + type: DEPENDENT + key: zookeeper.global_sessions + delay: '0' + description: 'Number of global sessions.' + preprocessing: + - type: JSONPATH + parameters: + - $.global_sessions + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: sessions + - uuid: 72519325755b4c27931c674756313ebb + name: 'Local sessions' + type: DEPENDENT + key: zookeeper.local_sessions + delay: '0' + description: 'Number of local sessions.' + preprocessing: + - type: JSONPATH + parameters: + - $.local_sessions + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: sessions + - uuid: 8a784676586d4b719a0b5c1327a0645f + name: 'Looking per sec' + type: DEPENDENT + key: zookeeper.looking_count.rate + delay: '0' + value_type: FLOAT + description: 'Rate of transitions into looking state.' + preprocessing: + - type: JSONPATH + parameters: + - $.looking_count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: operations + - uuid: 350a5b566e054e8390bb43ce0b2916c6 + name: 'File descriptors, max' + type: DEPENDENT + key: zookeeper.max_file_descriptor_count + delay: '0' + description: 'Maximum number of file descriptors that a zookeeper server can open.' + preprocessing: + - type: JSONPATH + parameters: + - $.max_file_descriptor_count + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: fds + - uuid: 185f5c3fdfde43afa55ed4c38c0878dc + name: 'Latency, max' + type: DEPENDENT + key: zookeeper.max_latency + delay: '0' + value_type: FLOAT + units: ms + description: 'The maximum amount of time it takes for the server to respond to a client request.' + preprocessing: + - type: JSONPATH + parameters: + - $.max_latency + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: requests + - uuid: a4b3d6d9cfb14454b83475b89fe44e06 + name: 'Latency, min' + type: DEPENDENT + key: zookeeper.min_latency + delay: '0' + value_type: FLOAT + units: ms + description: 'The minimum amount of time it takes for the server to respond to a client request.' + preprocessing: + - type: JSONPATH + parameters: + - $.min_latency + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: requests + - uuid: 86ba6a7967e8462cb6ff4be126e21a44 + name: 'Alive connections' + type: DEPENDENT + key: zookeeper.num_alive_connections + delay: '0' + description: 'Number of active clients connected to a zookeeper server.' + preprocessing: + - type: JSONPATH + parameters: + - $.num_alive_connections + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: connections + - uuid: e441c926d2f947708b39d7615520405d + name: 'File descriptors, open' + type: DEPENDENT + key: zookeeper.open_file_descriptor_count + delay: '0' + description: 'Number of file descriptors that a zookeeper server has open.' + preprocessing: + - type: JSONPATH + parameters: + - $.open_file_descriptor_count + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: fds + - uuid: 88ede9687323440183d665d38938212e + name: 'Outstanding requests' + type: DEPENDENT + key: zookeeper.outstanding_requests + delay: '0' + description: 'The number of queued requests when the server is under load and is receiving more sustained requests than it can process.' + preprocessing: + - type: JSONPATH + parameters: + - $.outstanding_requests + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: requests + triggers: + - uuid: ac27f2d8b34546d1bdc6d7ab858c04a1 + expression: 'min(/Zookeeper by HTTP/zookeeper.outstanding_requests,5m)>{$ZOOKEEPER.OUTSTANDING_REQ.MAX.WARN}' + name: 'Zookeeper: Too many queued requests' + event_name: 'Zookeeper: Too many queued requests (over {$ZOOKEEPER.OUTSTANDING_REQ.MAX.WARN}% for 5 min)' + priority: AVERAGE + description: 'Number of queued requests in the server. This goes up when the server receives more requests than it can process.' + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: 3295ed3fdb504014b351eba81bf55ccf + name: 'Packets received per sec' + type: DEPENDENT + key: zookeeper.packets_received.rate + delay: '0' + value_type: FLOAT + description: 'The number of zookeeper packets received by a server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.packets_received + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: network + - uuid: ecef658cb34247e2838e0f7313dba0bf + name: 'Packets sent per sec' + type: DEPENDENT + key: zookeeper.packets_sent + delay: '0' + value_type: FLOAT + description: 'The number of zookeeper packets sent from a server per second.' + preprocessing: + - type: JSONPATH + parameters: + - $.packets_sent + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: network + - uuid: 8295b8c4c1f44ba48987f36b54b43ab8 + name: 'Revalidate per sec' + type: DEPENDENT + key: zookeeper.revalidate_count.rate + delay: '0' + value_type: FLOAT + description: 'Rate of revalidations.' + preprocessing: + - type: JSONPATH + parameters: + - $.revalidate_count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: operations + - uuid: 44a1f40fb3604fcda9fedc4beeb87baf + name: 'Server mode' + type: DEPENDENT + key: zookeeper.server_state + delay: '0' + value_type: CHAR + trends: '0' + description: 'Mode of the server. In an ensemble, this may either be leader or follower. Otherwise, it is standalone' + preprocessing: + - type: JSONPATH + parameters: + - $.server_state + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: application + triggers: + - uuid: 494624353875401eaf65f7eb0273ca35 + expression: 'last(/Zookeeper by HTTP/zookeeper.server_state,#1)<>last(/Zookeeper by HTTP/zookeeper.server_state,#2) and length(last(/Zookeeper by HTTP/zookeeper.server_state))>0' + name: 'Zookeeper: Server mode has changed' + event_name: 'Zookeeper: Server mode has changed (new mode: {ITEM.VALUE})' + priority: INFO + description: 'Zookeeper node state has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d143981fdaee4c51bcbb773579be25f0 + name: 'Snap syncs per sec' + type: DEPENDENT + key: zookeeper.snap_count.rate + delay: '0' + value_type: FLOAT + description: 'Number of snap syncs performed per second' + preprocessing: + - type: JSONPATH + parameters: + - $.snap_count + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: operations + - uuid: cea535cfb32940f29aee3c17734e8c51 + name: Uptime + type: DEPENDENT + key: zookeeper.uptime + delay: '0' + units: s + description: 'Uptime that a peer has been in a table leading/following/observing state.' + preprocessing: + - type: JSONPATH + parameters: + - $.uptime + - type: MULTIPLIER + parameters: + - '0.001' + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: application + triggers: + - uuid: db35b5c75fc543ef8ffe766a0671fd6d + expression: 'nodata(/Zookeeper by HTTP/zookeeper.uptime,10m)=1' + name: 'Zookeeper: Failed to fetch info data' + event_name: 'Zookeeper: Failed to fetch info data (or no data for 10m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 10 minutes' + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: 86a65edd19e14fa9aea1ff40220f895c + name: Version + type: DEPENDENT + key: zookeeper.version + delay: '0' + value_type: CHAR + trends: '0' + description: 'Version of Zookeeper server.' + preprocessing: + - type: JSONPATH + parameters: + - $.version + - type: REGEX + parameters: + - '^([0-9\.]+)' + - \1 + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: application + triggers: + - uuid: 2a091bcfafe84ea9aee5238ce5e25651 + expression: 'last(/Zookeeper by HTTP/zookeeper.version,#1)<>last(/Zookeeper by HTTP/zookeeper.version,#2) and length(last(/Zookeeper by HTTP/zookeeper.version))>0' + name: 'Zookeeper: Version has changed' + event_name: 'Zookeeper: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'Zookeeper version has changed. Acknowledge to close the problem manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 5cbc4414c19146ff87e15f21c77808c9 + name: 'Watch count' + type: DEPENDENT + key: zookeeper.watch_count + delay: '0' + description: 'Number of watches currently set on the local ZooKeeper process.' + preprocessing: + - type: JSONPATH + parameters: + - $.watch_count + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: application + - uuid: 07925b71e3fe421eac9b338fc23713d0 + name: 'Znode count' + type: DEPENDENT + key: zookeeper.znode_count + delay: '0' + description: 'The number of znodes in the ZooKeeper namespace (the data)' + preprocessing: + - type: JSONPATH + parameters: + - $.znode_count + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: application + discovery_rules: + - uuid: e0f576ea5ae44289866fb726079ddbf8 + name: 'Clients discovery' + type: HTTP_AGENT + key: zookeeper.clients + delay: 1h + description: | + Get list of client connections. + Note, depending on the number of client connections this operation may be expensive (i.e. impact server performance). + item_prototypes: + - uuid: b5a378d3785542dca169b1bc1c02189f + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Latency, avg' + type: DEPENDENT + key: 'zookeeper.avg_latency[{#TYPE},{#CLIENT}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The average amount of time it takes for the server to respond to a client request.' + preprocessing: + - type: JSONPATH + parameters: + - $.avg_latency + master_item: + key: 'zookeeper.client_info[{#TYPE},{#CLIENT}]' + tags: + - tag: client + value: '{#CLIENT}' + - tag: component + value: clients + - tag: component + value: requests + - tag: type + value: '{#TYPE}' + - uuid: 76f3b4f0a73d4565bdb5391ac9af9f24 + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Get client info' + type: DEPENDENT + key: 'zookeeper.client_info[{#TYPE},{#CLIENT}]' + delay: '0' + history: '0' + value_type: TEXT + trends: '0' + description: 'The item gets information about "{#CLIENT}" client of "{#TYPE}" type.' + preprocessing: + - type: JSONPATH + parameters: + - '$.{#TYPE}.[?(@.remote_socket_address == "{#ADDRESS}")].first()' + error_handler: DISCARD_VALUE + master_item: + key: zookeeper.get_connections_stats + tags: + - tag: client + value: '{#CLIENT}' + - tag: component + value: raw + - tag: type + value: '{#TYPE}' + - uuid: 2a36ecfb56754bcb8bdc91da76316fb4 + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Latency, max' + type: DEPENDENT + key: 'zookeeper.max_latency[{#TYPE},{#CLIENT}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The maximum amount of time it takes for the server to respond to a client request.' + preprocessing: + - type: JSONPATH + parameters: + - $.max_latency + master_item: + key: 'zookeeper.client_info[{#TYPE},{#CLIENT}]' + tags: + - tag: client + value: '{#CLIENT}' + - tag: component + value: clients + - tag: component + value: requests + - tag: type + value: '{#TYPE}' + - uuid: 6a245634ec9b4aa0b2df8360b42ac8aa + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Latency, min' + type: DEPENDENT + key: 'zookeeper.min_latency[{#TYPE},{#CLIENT}]' + delay: '0' + value_type: FLOAT + units: ms + description: 'The minimum amount of time it takes for the server to respond to a client request.' + preprocessing: + - type: JSONPATH + parameters: + - $.min_latency + master_item: + key: 'zookeeper.client_info[{#TYPE},{#CLIENT}]' + tags: + - tag: client + value: '{#CLIENT}' + - tag: component + value: clients + - tag: component + value: requests + - tag: type + value: '{#TYPE}' + - uuid: 89805694583b453e99f833e850b5c5dc + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Outstanding requests' + type: DEPENDENT + key: 'zookeeper.outstanding_requests[{#TYPE},{#CLIENT}]' + delay: '0' + description: 'The number of queued requests when the server is under load and is receiving more sustained requests than it can process.' + preprocessing: + - type: JSONPATH + parameters: + - $.outstanding_requests + master_item: + key: 'zookeeper.client_info[{#TYPE},{#CLIENT}]' + tags: + - tag: client + value: '{#CLIENT}' + - tag: component + value: clients + - tag: component + value: requests + - tag: type + value: '{#TYPE}' + - uuid: e68a429aa986477e894b2a4437b6ec4a + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Packets received per sec' + type: DEPENDENT + key: 'zookeeper.packets_received[{#TYPE},{#CLIENT}]' + delay: '0' + value_type: FLOAT + description: 'The number of packets received.' + preprocessing: + - type: JSONPATH + parameters: + - $.packets_received + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zookeeper.client_info[{#TYPE},{#CLIENT}]' + tags: + - tag: client + value: '{#CLIENT}' + - tag: component + value: clients + - tag: component + value: network + - tag: type + value: '{#TYPE}' + - uuid: c748207b3f3e4a7ca6bb8ff3ecc8959b + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Packets sent per sec' + type: DEPENDENT + key: 'zookeeper.packets_sent[{#TYPE},{#CLIENT}]' + delay: '0' + value_type: FLOAT + description: 'The number of packets sent.' + preprocessing: + - type: JSONPATH + parameters: + - $.packets_sent + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'zookeeper.client_info[{#TYPE},{#CLIENT}]' + tags: + - tag: client + value: '{#CLIENT}' + - tag: component + value: clients + - tag: component + value: network + - tag: type + value: '{#TYPE}' + graph_prototypes: + - uuid: 9ea4e5af47124317ba7f4502af97bc9c + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Latency' + graph_items: + - color: 199C0D + item: + host: 'Zookeeper by HTTP' + key: 'zookeeper.max_latency[{#TYPE},{#CLIENT}]' + - sortorder: '1' + color: F63100 + item: + host: 'Zookeeper by HTTP' + key: 'zookeeper.min_latency[{#TYPE},{#CLIENT}]' + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'Zookeeper by HTTP' + key: 'zookeeper.avg_latency[{#TYPE},{#CLIENT}]' + - uuid: b41e4ca001fe4a6789b1b4490861bd26 + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Packets' + graph_items: + - color: 199C0D + item: + host: 'Zookeeper by HTTP' + key: 'zookeeper.packets_sent[{#TYPE},{#CLIENT}]' + - sortorder: '1' + color: F63100 + item: + host: 'Zookeeper by HTTP' + key: 'zookeeper.packets_received[{#TYPE},{#CLIENT}]' + url: '{$ZOOKEEPER.SCHEME}://{$ZOOKEEPER.HOST}:{$ZOOKEEPER.PORT}/{$ZOOKEEPER.COMMAND_URL}/connections' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var source = JSON.parse(value), + data = []; + + source.connections.forEach(function(v){ + data.push({ + "{#ADDRESS}": v.remote_socket_address, + "{#CLIENT}": v.remote_socket_address.split(':')[0], + "{#TYPE}": "connections"}) + }); + + source.secure_connections.forEach(function(v){ + data.push({ + "{#ADDRESS}": v.remote_socket_address, + "{#CLIENT}":v.remote_socket_address.split(':')[0], + "{#TYPE}": "secure_connections"}) + }); + + return JSON.stringify(data); + - uuid: 70e9fabfdfe446edae67a340f648612f + name: 'Leader metrics discovery' + type: DEPENDENT + key: zookeeper.metrics.leader + delay: '0' + description: 'Additional metrics for leader node' + item_prototypes: + - uuid: 3a9b38e228a0438eae354cfc885b81ab + name: 'Learners{#SINGLETON}' + type: DEPENDENT + key: 'zookeeper.learners[{#SINGLETON}]' + delay: '0' + description: 'Number of learners.' + preprocessing: + - type: JSONPATH + parameters: + - $.learners + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: cluster + - uuid: c6ae1476b69f43108f843508a02343a7 + name: 'Pending syncs{#SINGLETON}' + type: DEPENDENT + key: 'zookeeper.pending_syncs[{#SINGLETON}]' + delay: '0' + description: 'Number of pending syncs to carry out to ZooKeeper ensemble followers.' + preprocessing: + - type: JSONPATH + parameters: + - $.pending_syncs + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: operations + trigger_prototypes: + - uuid: 004e26cca4934d1992b3c894f36b5643 + expression: 'min(/Zookeeper by HTTP/zookeeper.pending_syncs[{#SINGLETON}],5m)>{$ZOOKEEPER.PENDING_SYNCS.MAX.WARN}' + name: 'Zookeeper: Too many pending syncs' + event_name: 'Zookeeper: Too many pending syncs (over {$ZOOKEEPER.PENDING_SYNCS.MAX.WARN}% for 5 min)' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: performance + - uuid: d5297a5598e94ef5acb1f6affdf51eee + name: 'Quorum size{#SINGLETON}' + type: DEPENDENT + key: 'zookeeper.quorum_size[{#SINGLETON}]' + delay: '0' + preprocessing: + - type: JSONPATH + parameters: + - $.quorum_size + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: cluster + - uuid: 406d13a8d38a47498e939a118ec0329a + name: 'Synced followers{#SINGLETON}' + type: DEPENDENT + key: 'zookeeper.synced_followers[{#SINGLETON}]' + delay: '0' + description: 'Number of synced followers reported when a node server_state is leader.' + preprocessing: + - type: JSONPATH + parameters: + - $.synced_followers + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: cluster + - uuid: 71c9de2ed85d4a5fb2306b24b9ca67d3 + name: 'Synced non-voting follower{#SINGLETON}' + type: DEPENDENT + key: 'zookeeper.synced_non_voting_followers[{#SINGLETON}]' + delay: '0' + description: 'Number of synced voting followers reported when a node server_state is leader.' + preprocessing: + - type: JSONPATH + parameters: + - $.synced_non_voting_followers + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: cluster + - uuid: 299da1a6343b47a4a25efe2d8581965e + name: 'Synced observers{#SINGLETON}' + type: DEPENDENT + key: 'zookeeper.synced_observers[{#SINGLETON}]' + delay: '0' + description: 'Number of synced observers.' + preprocessing: + - type: JSONPATH + parameters: + - $.synced_observers + master_item: + key: zookeeper.get_metrics + tags: + - tag: component + value: cluster + trigger_prototypes: + - uuid: 4b0df830eef84e78a04a6980b627b8d0 + expression: 'last(/Zookeeper by HTTP/zookeeper.synced_followers[{#SINGLETON}]) < last(/Zookeeper by HTTP/zookeeper.quorum_size[{#SINGLETON}])-1' + name: 'Zookeeper: Too few active followers' + priority: AVERAGE + description: 'The number of followers should equal the total size of your ZooKeeper ensemble, minus 1 (the leader is not included in the follower count). If the ensemble fails to maintain quorum, all automatic failover features are suspended.' + tags: + - tag: scope + value: availability + master_item: + key: zookeeper.get_metrics + preprocessing: + - type: JSONPATH + parameters: + - $.server_state + - type: JAVASCRIPT + parameters: + - 'return JSON.stringify(value == ''leader'' ? [{''{#SINGLETON}'': ''''}] : []);' + tags: + - tag: class + value: application + - tag: target + value: zookeeper + macros: + - macro: '{$ZOOKEEPER.COMMAND_URL}' + value: commands + description: 'The URL for listing and issuing commands relative to the root URL (admin.commandURL).' + - macro: '{$ZOOKEEPER.FILE_DESCRIPTORS.MAX.WARN}' + value: '85' + description: 'Maximum percentage of file descriptors usage alert threshold (for trigger expression).' + - macro: '{$ZOOKEEPER.HOST}' + value: '' + description: 'The hostname or IP address of the Apache Zookeeper host.' + - macro: '{$ZOOKEEPER.OUTSTANDING_REQ.MAX.WARN}' + value: '10' + description: 'Maximum number of outstanding requests (for trigger expression).' + - macro: '{$ZOOKEEPER.PENDING_SYNCS.MAX.WARN}' + value: '10' + description: 'Maximum number of pending syncs from the followers (for trigger expression).' + - macro: '{$ZOOKEEPER.PORT}' + value: '8080' + description: 'The port the embedded Jetty server listens on (admin.serverPort).' + - macro: '{$ZOOKEEPER.SCHEME}' + value: http + description: 'Request scheme which may be http or https' + dashboards: + - uuid: 3c684a537ed74a0884ae663b97b23a9c + name: 'Zookeeper: Overview' + pages: + - name: Main + widgets: + - type: item + name: Mode + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Zookeeper by HTTP' + key: zookeeper.server_state + - type: INTEGER + name: show.0 + value: '2' + - type: graph + 'y': '2' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Zookeeper by HTTP' + name: 'Zookeeper: Nodes' + - type: STRING + name: reference + value: AAAAA + - type: graph + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Zookeeper by HTTP' + name: 'Zookeeper: Latency' + - type: STRING + name: reference + value: AAAAC + - type: item + name: Uptime + x: '12' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Zookeeper by HTTP' + key: zookeeper.uptime + - type: INTEGER + name: show.0 + value: '4' + - type: INTEGER + name: show.1 + value: '2' + - type: item + name: Version + x: '24' + width: '12' + fields: + - type: ITEM + name: itemid.0 + value: + host: 'Zookeeper by HTTP' + key: zookeeper.version + - type: INTEGER + name: show.0 + value: '2' + - type: graph + x: '36' + 'y': '2' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Zookeeper by HTTP' + name: 'Zookeeper: Packets' + - type: STRING + name: reference + value: AAAAB + - type: graph + x: '36' + 'y': '7' + width: '36' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'Zookeeper by HTTP' + name: 'Zookeeper: File descriptors usage' + - type: STRING + name: reference + value: AAAAD + - name: Clients + widgets: + - type: graphprototype + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Zookeeper by HTTP' + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Latency' + - type: STRING + name: reference + value: AAAAE + - type: INTEGER + name: rows + value: '3' + - type: graphprototype + x: '36' + width: '36' + height: '15' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'Zookeeper by HTTP' + name: 'Zookeeper client {#TYPE} [{#CLIENT}]: Packets' + - type: STRING + name: reference + value: AAAAF + - type: INTEGER + name: rows + value: '3' + triggers: + - uuid: 53a97045bfd8473899849e429e3e7017 + expression: 'min(/Zookeeper by HTTP/zookeeper.open_file_descriptor_count,5m) * 100 / last(/Zookeeper by HTTP/zookeeper.max_file_descriptor_count) > {$ZOOKEEPER.FILE_DESCRIPTORS.MAX.WARN}' + name: 'Zookeeper: Too many file descriptors used' + event_name: 'Zookeeper: Too many file descriptors used (over {$ZOOKEEPER.FILE_DESCRIPTORS.MAX.WARN}% for 5 min)' + priority: WARNING + description: 'Number of file descriptors used more than {$ZOOKEEPER.FILE_DESCRIPTORS.MAX.WARN}% of the available number of file descriptors.' + tags: + - tag: scope + value: capacity + graphs: + - uuid: 0553c91abfac4f8fb452b6b367055261 + name: 'Zookeeper: File descriptors usage' + graph_items: + - color: 199C0D + item: + host: 'Zookeeper by HTTP' + key: zookeeper.max_file_descriptor_count + - sortorder: '1' + color: F63100 + item: + host: 'Zookeeper by HTTP' + key: zookeeper.open_file_descriptor_count + - uuid: e4a53bcc70fa4688832dce28ca5f9c4a + name: 'Zookeeper: Latency' + graph_items: + - color: 199C0D + item: + host: 'Zookeeper by HTTP' + key: zookeeper.max_latency + - sortorder: '1' + color: F63100 + item: + host: 'Zookeeper by HTTP' + key: zookeeper.min_latency + - sortorder: '2' + drawtype: BOLD_LINE + color: 00611C + item: + host: 'Zookeeper by HTTP' + key: zookeeper.avg_latency + - uuid: 34d7f20585404aabac415c832c09a7ed + name: 'Zookeeper: Nodes' + graph_items: + - color: 199C0D + item: + host: 'Zookeeper by HTTP' + key: zookeeper.znode_count + - sortorder: '1' + color: F63100 + item: + host: 'Zookeeper by HTTP' + key: zookeeper.ephemerals_count + - uuid: 8724517184844ee79c47f36b895cd564 + name: 'Zookeeper: Packets' + graph_items: + - color: 199C0D + item: + host: 'Zookeeper by HTTP' + key: zookeeper.packets_sent + - sortorder: '1' + color: F63100 + item: + host: 'Zookeeper by HTTP' + key: zookeeper.packets_received.rate diff --git a/macOS_by_Zabbix_agent.yaml b/macOS_by_Zabbix_agent.yaml new file mode 100644 index 0000000..82221dd --- /dev/null +++ b/macOS_by_Zabbix_agent.yaml @@ -0,0 +1,847 @@ +zabbix_export: + version: '7.0' + template_groups: + - uuid: 846977d1dfed4968bc5f8bdb363285bc + name: 'Templates/Operating systems' + templates: + - uuid: f895df5b37494f668cde1a2388d7af8b + template: 'macOS by Zabbix agent' + name: 'macOS by Zabbix agent' + description: | + This is an official macOS template. It requires Zabbix agent 7.0 or newer. + + Notes on filesystem (FS) discovery: + - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default. + - BTRFS allocates a default of 10% of the volume for its own needs. + - To mitigate potential disasters, FS usage triggers are based on the maximum available space. + - Utilization formula: 'pused = 100 - 100 * (available / total - free + available)' + - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume. + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/ + + Generated by official Zabbix template tool "Templator" + vendor: + name: Zabbix + version: 7.0-2 + groups: + - name: 'Templates/Operating systems' + items: + - uuid: 96c93b959e884934808b4d3c3b2f93d6 + name: 'Host name of Zabbix agent running' + key: agent.hostname + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: system + - uuid: 3e70e8cc76bb4099a3a6b96f5669f059 + name: 'Zabbix agent ping' + key: agent.ping + description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.' + valuemap: + name: 'Zabbix agent ping status' + tags: + - tag: component + value: system + - uuid: 32e67f37a30c4fb28db9119d9e26a996 + name: 'Version of Zabbix agent running' + key: agent.version + delay: 1h + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + - uuid: d25aa1f2eae445ceb18b7e4ee5383585 + name: 'Maximum number of opened files' + key: kernel.maxfiles + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + tags: + - tag: component + value: os + triggers: + - uuid: 933b14ead0974a9c96d36c833da90ebb + expression: 'last(/macOS by Zabbix agent/kernel.maxfiles)<1024' + name: 'macOS: Configured max number of opened files is too low' + priority: INFO + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: 5c376cae54854613a1533eb804bcee56 + name: 'Maximum number of processes' + key: kernel.maxproc + delay: 1h + description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.' + tags: + - tag: component + value: os + triggers: + - uuid: 0e89b2e0cad948c0b81bc223d2ed673c + expression: 'last(/macOS by Zabbix agent/kernel.maxproc)<256' + name: 'macOS: Configured max number of processes is too low' + priority: INFO + tags: + - tag: scope + value: notice + - tag: scope + value: performance + - uuid: 951d874e6b644f9787c7a0d267bafcf8 + name: 'Incoming network traffic on en0' + key: 'net.if.in[en0]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - uuid: ac875bd25d484d38b16cb02c30be6b67 + name: 'Outgoing network traffic on en0' + key: 'net.if.out[en0]' + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + tags: + - tag: component + value: network + - uuid: 928f973c004447d099a79e09a8b98cee + name: 'Host boot time' + key: system.boottime + delay: 10m + units: unixtime + tags: + - tag: component + value: os + - uuid: 5abd63bb64114794ae6d253dcc12afb4 + name: 'Processor load (1 min average per core)' + key: 'system.cpu.load[percpu,avg1]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + triggers: + - uuid: 3cf40421e61b41bab7697bbf9a2649d6 + expression: 'avg(/macOS by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5' + name: 'macOS: Processor load is too high' + priority: WARNING + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 7e569411a7b4415098d21aaa44068dee + name: 'Processor load (5 min average per core)' + key: 'system.cpu.load[percpu,avg5]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 1ddc219f824541ca9c9ef30afda56df2 + name: 'Processor load (15 min average per core)' + key: 'system.cpu.load[percpu,avg15]' + value_type: FLOAT + description: 'Calculated as the system CPU load divided by the number of CPU cores.' + tags: + - tag: component + value: cpu + - uuid: 9c0230c0bb944523bd781c37304bb87b + name: 'Host name' + key: system.hostname + delay: 1h + value_type: CHAR + trends: '0' + description: 'The host name of the system.' + inventory_link: NAME + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: ffb713a281a543879e4196e4207bdd62 + expression: 'last(/macOS by Zabbix agent/system.hostname,#1)<>last(/macOS by Zabbix agent/system.hostname,#2)' + name: 'macOS: Hostname was changed' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 5a7ce2c61d3a4696ac76e0406308e61b + name: 'Host local time' + key: system.localtime + units: unixtime + description: 'The local system time of the host.' + tags: + - tag: component + value: os + - uuid: 5c73ff0f28d24d92955c667e5245cfa0 + name: 'System information' + key: system.uname + delay: 1h + value_type: CHAR + trends: '0' + description: 'Information as normally returned by `uname -a`.' + inventory_link: OS + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: os + triggers: + - uuid: 55d8650af70d4aeea56345985e454df9 + expression: 'last(/macOS by Zabbix agent/system.uname,#1)<>last(/macOS by Zabbix agent/system.uname,#2)' + name: 'macOS: Host information was changed' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 34c001a77a904224aa90338590375870 + name: 'System uptime' + key: system.uptime + delay: 10m + units: uptime + description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".' + tags: + - tag: component + value: os + triggers: + - uuid: 1f0cc03186cc4bb98483927f425df8e9 + expression: 'change(/macOS by Zabbix agent/system.uptime)<0' + name: 'macOS: Server has just been restarted' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 31ea6bafabbe440ea1b8d1b6cea74444 + name: 'Number of logged in users' + key: system.users.num + description: 'The number of users who are currently logged in.' + tags: + - tag: component + value: os + - tag: component + value: security + - uuid: 6df0d9e8694d45dfa11e433d8de7be41 + name: 'Checksum of /etc/passwd' + key: 'vfs.file.cksum[/etc/passwd,sha256]' + delay: 15m + value_type: CHAR + trends: '0' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: security + triggers: + - uuid: 39cfe50a3d2a46ad9a53b9ec7443ec18 + expression: 'last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)' + name: 'macOS: /etc/passwd has been changed' + priority: WARNING + tags: + - tag: scope + value: security + - uuid: bf99f88e47a64ecab98de4f3cfe6592f + name: 'Get filesystems' + key: vfs.fs.get + history: '0' + value_type: TEXT + trends: '0' + description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.' + tags: + - tag: component + value: raw + - uuid: daf35c33bb84443f893bb06bfe10f870 + name: 'Available memory' + key: 'vm.memory.size[available]' + units: B + description: 'Defined as free + cached + buffers.' + tags: + - tag: component + value: memory + triggers: + - uuid: c38dfc1b95d1463585d378f60d6a689a + expression: 'last(/macOS by Zabbix agent/vm.memory.size[available])<20M' + name: 'macOS: Lack of available memory on server' + priority: AVERAGE + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 83c0218324a548c4a01054801a4d8b0b + name: 'Total memory' + key: 'vm.memory.size[total]' + delay: 1h + units: B + description: 'Total memory expressed in bytes.' + tags: + - tag: component + value: memory + - uuid: d00cf9691f6c446fa35dab03b2201aa4 + name: 'Zabbix agent availability' + type: INTERNAL + key: 'zabbix[host,agent,available]' + description: 'Used for monitoring the availability status of the agent.' + valuemap: + name: zabbix.host.available + tags: + - tag: component + value: system + triggers: + - uuid: 0766e9c2a02f46e7adbb86dbef67556f + expression: 'max(/macOS by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0' + name: 'macOS: Zabbix agent is not available' + event_name: 'macOS: Zabbix agent is not available (for {$AGENT.TIMEOUT})' + priority: AVERAGE + description: 'For passive checks only; the availability of the agent(s) and a host is used with `{$AGENT.TIMEOUT}` as the time threshold.' + manual_close: 'YES' + tags: + - tag: scope + value: availability + discovery_rules: + - uuid: c537fbe006d7434dab08add1dcf87537 + name: 'Mounted filesystem discovery' + type: DEPENDENT + key: vfs.fs.dependent.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.MATCHES}' + formulaid: A + - macro: '{#FSNAME}' + value: '{$VFS.FS.FSNAME.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: B + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.MATCHES}' + formulaid: C + - macro: '{#FSTYPE}' + value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + operator: NOT_MATCHES_REGEX + formulaid: D + description: 'The discovery of mounted filesystems with different types. Note that the option to exclude dmg software images from discovery is available only with Zabbix agents 6.4 and higher.' + item_prototypes: + - uuid: b7560dc2b6f743458128961cc962bcd3 + name: 'FS [{#FSNAME}]: Inodes: Free, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Free metadata space expressed in %.' + preprocessing: + - type: JSONPATH + parameters: + - $.inodes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: a1173b22ee4443eda7132f784f5f17bd + expression: 'min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + name: 'macOS: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'macOS: {#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: AVERAGE + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 91cccd7935854a47bf4ca184b1d4d09a + expression: 'min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' + name: 'macOS: FS [{#FSNAME}]: Running out of free inodes' + event_name: 'macOS: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)' + opdata: 'Free inodes: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.' + dependencies: + - name: 'macOS: FS [{#FSNAME}]: Running out of free inodes' + expression: 'min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: capacity + - tag: scope + value: performance + - uuid: 29340ac4c5d3419cb4508641e85d787d + name: 'FS [{#FSNAME}]: Space: Available' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + delay: '0' + units: B + description: 'Available storage space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.free + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 6d9aa50bddb642499ad575a0cc71146b + name: 'FS [{#FSNAME}]: Space: Available, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pfree]' + delay: '0' + value_type: FLOAT + units: '%' + description: | + Deprecated metric. + Space availability expressed as a percentage, calculated using the current and maximum available spaces. + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pfree + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: deprecated + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 8630aad4545e4a9ea3bcd4feabfb0444 + name: 'FS [{#FSNAME}]: Space: Used, in %' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + delay: '0' + value_type: FLOAT + units: '%' + description: 'Calculated as the percentage of currently used space compared to the maximum available space.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.pused + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + trigger_prototypes: + - uuid: 7282d1a9ff1543f5afdb73b8fd985fec + expression: 'min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + name: 'macOS: FS [{#FSNAME}]: Space is critically low' + event_name: 'macOS: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: AVERAGE + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: 673dbc5aec474abda3a3b392d31b6c11 + expression: 'min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' + name: 'macOS: FS [{#FSNAME}]: Space is low' + event_name: 'macOS: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)' + opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%' + priority: WARNING + description: | + The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit. + The trigger expression is based on the current used and maximum available spaces. + Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. + manual_close: 'YES' + dependencies: + - name: 'macOS: FS [{#FSNAME}]: Space is critically low' + expression: 'min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' + tags: + - tag: scope + value: availability + - tag: scope + value: capacity + - uuid: c311ced2b4204b368af1c8a8c27f9c99 + name: 'FS [{#FSNAME}]: Space: Total' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + delay: '0' + units: B + description: 'Total space expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.total + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: 748612098b4e4befa0f39f11b99eced4 + name: 'FS [{#FSNAME}]: Space: Used' + type: DEPENDENT + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + delay: '0' + units: B + description: 'Used storage expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.bytes.used + master_item: + key: 'vfs.fs.dependent[{#FSNAME},data]' + tags: + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + - uuid: c035c0bc26a24f58900e1af301007914 + name: 'FS [{#FSNAME}]: Get data' + type: DEPENDENT + key: 'vfs.fs.dependent[{#FSNAME},data]' + delay: '0' + history: 1h + value_type: TEXT + trends: '0' + description: 'Intermediate data of `{#FSNAME}` filesystem.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@.fsname==''{#FSNAME}'')].first()' + master_item: + key: vfs.fs.get + tags: + - tag: component + value: raw + - tag: component + value: storage + - tag: filesystem + value: '{#FSNAME}' + - tag: fstype + value: '{#FSTYPE}' + graph_prototypes: + - uuid: b0cd424a8eac438ba76df6052a2bdab6 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + width: '600' + height: '340' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: F63100 + calc_fnc: ALL + item: + host: 'macOS by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},pused]' + - uuid: 110b798942874e9d817d6028b1ea2101 + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + width: '600' + height: '340' + type: PIE + show_3d: 'YES' + graph_items: + - color: '787878' + calc_fnc: LAST + type: GRAPH_SUM + item: + host: 'macOS by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},total]' + - sortorder: '1' + color: F63100 + calc_fnc: LAST + item: + host: 'macOS by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},used]' + - sortorder: '2' + color: 199C09 + calc_fnc: LAST + item: + host: 'macOS by Zabbix agent' + key: 'vfs.fs.dependent.size[{#FSNAME},free]' + master_item: + key: vfs.fs.get + lld_macro_paths: + - lld_macro: '{#FSNAME}' + path: $.fsname + - lld_macro: '{#FSOPTIONS}' + path: $.fsoptions + - lld_macro: '{#FSTYPE}' + path: $.fstype + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var filesystems = JSON.parse(value); + + result = filesystems.map(function (filesystem) { + return { + 'fsname': filesystem.fsname, + 'fstype': filesystem.fstype, + 'fsoptions': filesystem.fsoptions + }; + }); + + return JSON.stringify(result); + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + overrides: + - name: 'Exclude dmg' + step: '1' + filter: + evaltype: AND + conditions: + - macro: '{#FSOPTIONS}' + value: '(?:^|,)noowners\b' + formulaid: A + - macro: '{#FSOPTIONS}' + value: '(?:^|,)read-only\b' + formulaid: B + - macro: '{#FSOPTIONS}' + operator: EXISTS + formulaid: C + - macro: '{#FSTYPE}' + value: hfs + formulaid: D + operations: + - operationobject: ITEM_PROTOTYPE + operator: REGEXP + value: .+ + discover: NO_DISCOVER + - name: 'Skip metadata collection for dynamic FS' + step: '2' + filter: + conditions: + - macro: '{#FSTYPE}' + value: ^(btrfs|zfs)$ + formulaid: A + operations: + - operationobject: ITEM_PROTOTYPE + operator: LIKE + value: Inodes + discover: NO_DISCOVER + tags: + - tag: class + value: os + - tag: target + value: macos + macros: + - macro: '{$AGENT.TIMEOUT}' + value: 3m + description: 'Timeout after which the agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (in passive mode).' + - macro: '{$VFS.FS.FSNAME.MATCHES}' + value: .+ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' + value: ^(/dev|/sys|/run|/proc|.+/shm$) + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.MATCHES}' + value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' + value: ^\s$ + description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}' + value: '10' + description: 'The critical threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}' + value: '20' + description: 'The warning threshold of the filesystem metadata utilization.' + - macro: '{$VFS.FS.PUSED.MAX.CRIT}' + value: '90' + description: 'The critical threshold of the filesystem utilization.' + - macro: '{$VFS.FS.PUSED.MAX.WARN}' + value: '80' + description: 'The warning threshold of the filesystem utilization.' + dashboards: + - uuid: 7cd39af9717141d398b86f3e8ea1d9e0 + name: Filesystems + pages: + - name: Overview + widgets: + - type: graphprototype + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'macOS by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEB + - type: graphprototype + 'y': '5' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'macOS by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' + - type: STRING + name: reference + value: AAAEC + - uuid: d66f39e86e2047289acea0bc9a218807 + name: 'System performance' + pages: + - widgets: + - type: graph + name: 'CPU load' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'macOS by Zabbix agent' + name: 'macOS: CPU load' + - type: STRING + name: reference + value: AAAAA + - type: graph + name: 'Memory usage' + 'y': '5' + width: '72' + height: '5' + fields: + - type: GRAPH + name: graphid.0 + value: + host: 'macOS by Zabbix agent' + name: 'macOS: Memory usage' + - type: STRING + name: reference + value: AAAAB + - type: graphprototype + 'y': '10' + width: '72' + height: '5' + fields: + - type: INTEGER + name: columns + value: '3' + - type: GRAPH_PROTOTYPE + name: graphid.0 + value: + host: 'macOS by Zabbix agent' + name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' + - type: STRING + name: reference + value: AAAEA + valuemaps: + - uuid: 0355844b2bee4fb59bddda6175ef4810 + name: zabbix.host.available + mappings: + - value: '0' + newvalue: 'not available' + - value: '1' + newvalue: available + - value: '2' + newvalue: unknown + - uuid: a72caf871acf4776a891a612932fbf2e + name: 'Zabbix agent ping status' + mappings: + - value: '1' + newvalue: Up + graphs: + - uuid: f0e648fb4c5345748b11a7bdb05f6526 + name: 'macOS: CPU load' + ymin_type_1: FIXED + graph_items: + - color: '009900' + item: + host: 'macOS by Zabbix agent' + key: 'system.cpu.load[percpu,avg1]' + - sortorder: '1' + color: '000099' + item: + host: 'macOS by Zabbix agent' + key: 'system.cpu.load[percpu,avg5]' + - sortorder: '2' + color: '990000' + item: + host: 'macOS by Zabbix agent' + key: 'system.cpu.load[percpu,avg15]' + - uuid: 5c942cb1fe5b440aa9428d45ee85e09c + name: 'macOS: Memory usage' + ymin_type_1: FIXED + ymax_type_1: ITEM + ymax_item_1: + host: 'macOS by Zabbix agent' + key: 'vm.memory.size[total]' + graph_items: + - drawtype: GRADIENT_LINE + color: 00C800 + item: + host: 'macOS by Zabbix agent' + key: 'vm.memory.size[available]' + - uuid: 5c4b08f992c541dbb02835bbd4f0a55e + name: 'macOS: Network traffic on en0' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 00AA00 + item: + host: 'macOS by Zabbix agent' + key: 'net.if.in[en0]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 3333FF + item: + host: 'macOS by Zabbix agent' + key: 'net.if.out[en0]'